arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
49 lines • 1.35 kB
TypeScript
export interface AutoIndexOptions {
cwd: string;
model?: string;
ollamaHost?: string;
silent?: boolean;
incremental?: boolean;
}
export interface IndexTrigger {
type: "lines_added" | "files_added" | "time_elapsed" | "commits" | "manual";
threshold: number;
last_triggered?: string;
count?: number;
}
export interface AutoIndexConfig {
enabled: boolean;
silent: boolean;
triggers: IndexTrigger[];
exclude_patterns?: string[];
}
/**
* Load auto-index configuration
*/
export declare function loadAutoIndexConfig(cwd: string): Promise<AutoIndexConfig>;
/**
* Check and potentially trigger auto-indexing
*/
export declare function checkAutoIndex(cwd: string): Promise<void>;
/**
* Incrementally update RAG index (only changed files)
*/
export declare function incrementalIndex(options: AutoIndexOptions): Promise<{
added: number;
updated: number;
deleted: number;
skipped: boolean;
}>;
/**
* Install git post-commit hook for auto-indexing
*/
export declare function installAutoIndexHook(cwd: string): Promise<void>;
/**
* Uninstall post-commit hook
*/
export declare function uninstallAutoIndexHook(cwd: string): Promise<void>;
/**
* Show auto-index status
*/
export declare function showAutoIndexStatus(cwd: string): Promise<void>;
//# sourceMappingURL=auto-index.d.ts.map