/** * global-init command * * Scans a directory tree for AiDex-indexed projects and registers them * in the global database (~/.aidex/global.db). * Also finds unindexed projects (by project markers like .csproj, package.json, etc.) */ export interface GlobalInitParams { path: string; maxDepth?: number; tags?: string; exclude?: string[]; indexUnindexed?: boolean; showProgress?: boolean; } export interface UnindexedProject { path: string; name: string; markers: string[]; estimatedFiles: number; } export interface IndexedProjectResult { name: string; path: string; success: boolean; filesIndexed: number; methodsFound: number; error?: string; } export interface GlobalInitResult { success: boolean; searchPath: string; registered: number; newProjects: number; updatedProjects: number; removedProjects: number; unindexedProjects: UnindexedProject[]; indexedResults?: IndexedProjectResult[]; largeProjects?: UnindexedProject[]; totals: { projects: number; files: number; items: number; methods: number; types: number; }; error?: string; } export type UnindexedRepo = UnindexedProject; export declare function globalInit(params: GlobalInitParams): Promise; /** * Directory names never worth descending into. Used by the global scan AND by * the viewer's file watcher (viewer/server.ts) — one list, so a directory that * is not worth indexing is not worth watching either. */ export declare const DEFAULT_EXCLUDED_DIRS: Set; //# sourceMappingURL=global-init.d.ts.map