context-crystallizer
Version:
AI Crystallization Engineering for Large Repositories - Transform massive repositories into crystallized, AI-consumable knowledge through systematic analysis and optimization. Crystallization extracts meaningful context from any readable files.
28 lines • 1.04 kB
TypeScript
import { CrystallizedContext } from '../types/index.js';
export declare class ContextStorage {
private repoPath;
private contextBasePath;
private templateManager;
private allFiles;
private indexMutex;
constructor(repoPath: string);
initialize(allFiles: string[]): Promise<void>;
storeContext(filePath: string, context: Partial<CrystallizedContext>, fileContent?: string, fileMetadata?: {
category: 'config' | 'source' | 'test' | 'docs' | 'other';
estimatedTokens: number;
}): Promise<void>;
getContext(relativePath: string): Promise<CrystallizedContext | null>;
private storeMetadata;
private getContextPath;
private parseMarkdownContext;
private updateIndex;
private regenerateFullIndex;
getContextStatistics(): Promise<{
totalContexts: number;
byCategory: Record<string, number>;
byTemplate: Record<string, number>;
totalTokens: number;
avgTokensPerContext: number;
}>;
}
//# sourceMappingURL=context-storage.d.ts.map