aicf-core
Version:
Universal AI Context Format (AICF) - Enterprise-grade AI memory infrastructure with 95.5% compression and zero semantic loss
129 lines • 3.13 kB
TypeScript
interface GeneratorOptions {
preserveExisting?: boolean;
generateTimestamps?: boolean;
includeEvidence?: boolean;
smartTemplates?: boolean;
}
interface AICFData {
source: string;
messages: Message[];
metadata: Record<string, any>;
}
interface Message {
role: string;
content: string;
timestamp?: number;
}
interface Analysis {
sessionType: string;
workAccomplished: string[];
problemsSolved: string[];
decisionsWithRationale: string[];
codeChanges: string[];
methodsCreated: string[];
filesModified: string[];
apiChanges: string[];
}
interface Documentation {
conversationLog: string | null;
technicalDecisions: string | null;
codePatterns: string | null;
problemSolutions: string | null;
designSystem: string | null;
nextSteps: string | null;
}
interface GenerationResult {
sessionType: string;
analysis: Analysis;
documentation: Documentation;
filesGenerated: string[];
}
/**
* Enhanced Markdown Generator
*
* Produces context-aware, intelligent documentation that captures actual
* work accomplished, decisions made, and problems solved - not generic templates.
*/
export declare class EnhancedMarkdownGenerator {
private readonly aiDir;
constructor(_options?: GeneratorOptions);
private ensureDirectories;
/**
* Generate comprehensive documentation from AICF data
*/
generateDocumentation(aicfData: AICFData, _options?: Record<string, any>): Promise<GenerationResult>;
/**
* Perform deep analysis of conversation content
*/
private performDeepAnalysis;
/**
* Extract all text from AICF data
*/
private extractAllText;
/**
* Detect session type
*/
private detectSessionType;
/**
* Extract work accomplished
*/
private extractWorkAccomplished;
/**
* Extract problems solved
*/
private extractProblemsSolved;
/**
* Extract decisions with rationale
*/
private extractDecisionsWithRationale;
/**
* Extract code changes
*/
private extractCodeChanges;
/**
* Extract methods created
*/
private extractMethodsCreated;
/**
* Extract files modified
*/
private extractFilesModified;
/**
* Extract API changes
*/
private extractAPIChanges;
/**
* Classify session
*/
private classifySession;
/**
* Generate intelligent conversation log
*/
private generateIntelligentConversationLog;
/**
* Generate technical decisions
*/
private generateTechnicalDecisions;
/**
* Generate code patterns
*/
private generateCodePatterns;
/**
* Generate problem solutions
*/
private generateProblemSolutions;
/**
* Generate design system
*/
private generateDesignSystem;
/**
* Generate actionable next steps
*/
private generateActionableNextSteps;
/**
* Write documentation files
*/
private writeDocumentationFiles;
}
export {};
//# sourceMappingURL=EnhancedMarkdownGenerator.d.ts.map