arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
52 lines • 1.43 kB
TypeScript
export interface RagConfig {
cwd: string;
model?: string;
ollamaHost?: string;
excludePatterns?: string[];
}
export interface IndexStats {
filesIndexed: number;
totalChunks: number;
timeMs: number;
}
/**
* Check if Ollama is installed
*/
export declare function isOllamaInstalled(): Promise<boolean>;
/**
* Install Ollama if not present
*/
export declare function ensureOllamaInstalled(): Promise<void>;
/**
* Check if a specific Ollama model is available
*/
export declare function isModelAvailable(model: string, host?: string): Promise<boolean>;
/**
* Pull an Ollama model if not available
*/
export declare function ensureModelAvailable(model: string, host?: string): Promise<void>;
/**
* Check if Ollama server is running
*/
export declare function isOllamaRunning(host?: string): Promise<boolean>;
/**
* Start Ollama server in the background
*/
export declare function startOllamaServer(): Promise<void>;
export interface BuildIndexOptions extends RagConfig {
progress?: boolean;
parallel?: boolean;
}
/**
* Build RAG index for the codebase with failure handling
*/
export declare function buildIndex(config: BuildIndexOptions): Promise<IndexStats>;
/**
* Search the RAG index
*/
export declare function search(query: string, config: RagConfig, topK?: number): Promise<Array<{
file: string;
chunk: string;
score: number;
}>>;
//# sourceMappingURL=index.d.ts.map