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.
17 lines • 877 B
TypeScript
import { SearchResult, ContextBundle, CrystallizedContext } from '../types/index.js';
export declare class ContextSearch {
private repoPath;
private contextBasePath;
constructor(repoPath: string);
searchContexts(query: string, maxTokens?: number, category?: string): Promise<SearchResult[]>;
getContextBundle(files: string[], maxTokens?: number): Promise<ContextBundle>;
findRelatedContexts(relativePath: string, maxResults?: number): Promise<SearchResult[]>;
searchByComplexity(complexity: 'low' | 'medium' | 'high', maxResults?: number): Promise<SearchResult[]>;
private calculateRelevance;
private extractHighlights;
private filterByTokenLimit;
private truncateContext;
loadContext(relativePath: string): Promise<CrystallizedContext | null>;
private parseContextFromMarkdown;
}
//# sourceMappingURL=context-search.d.ts.map