@andrebuzeli/advanced-memory-markdown-mcp
Version:
Advanced Memory Bank MCP v3.1.5 - Sistema avançado de gerenciamento de memória com isolamento de projetos por IDE, sincronização sob demanda, backup a cada 30min, apenas arquivos .md principais sincronizados, pasta reasoning temporária com limpeza automát
65 lines • 2.47 kB
JavaScript
import { VERSION } from '../version.js';
export class CreativeAnalyzer {
version = VERSION;
memoryManager;
constructor(memoryManager) {
this.memoryManager = memoryManager;
}
async analyzeContent(content, analysisType = 'comprehensive', depth = 'detailed') {
try {
await this.memoryManager.storeMemory(`Creative analysis: ${analysisType} of ${content.length} chars`, ['creative-analysis', analysisType], 6);
const analysis = this.performAnalysis(content, analysisType, depth);
return analysis;
}
catch (error) {
throw new Error(`Creative analysis failed: ${error instanceof Error ? error.message : String(error)}`);
}
}
async generateInsights(theme, creativityLevel = 'balanced', limit = 5) {
const insights = [
`Creative exploration of ${theme}`,
`${theme} offers creative possibilities`,
`Innovative approaches to ${theme}`
];
return insights.slice(0, limit);
}
performAnalysis(content, analysisType, depth) {
const words = content.split(/\s+/).filter(w => w.length > 0);
const sentences = content.split(/[.!?]+/).filter(s => s.trim().length > 0);
return {
analysisType,
depth,
wordCount: words.length,
sentenceCount: sentences.length,
insights: this.generateBasicInsights(content),
suggestions: ['Consider adding more details', 'Explore creative expressions'],
patterns: this.extractPatterns(content),
themes: this.extractThemes(words),
styleElements: ['neutral tone', 'medium complexity', 'objective voice']
};
}
generateBasicInsights(content) {
const insights = [];
if (content.includes('!')) {
insights.push('Expressive tone detected');
}
if (content.includes('?')) {
insights.push('Interactive elements present');
}
return insights;
}
extractPatterns(content) {
const patterns = [];
if (content.includes('\n-') || content.includes('\n*')) {
patterns.push('List structure');
}
return patterns;
}
extractThemes(words) {
const commonWords = words
.filter(w => w.length > 3)
.slice(0, 3);
return commonWords;
}
}
//# sourceMappingURL=creative-analyzer.js.map