arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
53 lines • 1.48 kB
TypeScript
import type { TechnicalSummary } from "./synthesizer/types.js";
export interface SummarizerOptions {
/**
* Skip cache and force re-summarization
*/
noCache?: boolean;
/**
* Custom cache directory
*/
cacheDir?: string;
/**
* Silent mode (no logging)
*/
silent?: boolean;
}
/**
* Main orchestrator for code summarization pipeline.
*
* Pipeline:
* 1. Extract semantic contract (AST)
* 2. Check cache
* 3. Synthesize summary (LLM) if cache miss
* 4. Store in cache
*/
export declare class CodeSummarizer {
private readonly extractor;
private readonly synthesizer;
private readonly cache;
private readonly projectPath;
private readonly silent;
constructor(projectPath: string, options?: SummarizerOptions);
/**
* Summarize a code file (with caching)
*/
summarize(filePath: string, options?: SummarizerOptions): Promise<TechnicalSummary>;
/**
* Summarize multiple files in parallel
*/
summarizeBatch(filePaths: string[], options?: SummarizerOptions): Promise<Map<string, TechnicalSummary>>;
/**
* Get cache statistics
*/
getCacheStats(): import("./index.js").CacheStats;
/**
* Clean up expired cache entries
*/
cleanupCache(): Promise<number>;
}
/**
* Convert TechnicalSummary to Markdown format
*/
export declare function summaryToMarkdown(summary: TechnicalSummary): string;
//# sourceMappingURL=code-summarizer.d.ts.map