/** * System Indexer * * Indexes the user's filesystem INTO the memory system. * When user says "that project" or "save in downloads", * semantic search finds the relevant paths. * * No MCP. No new protocols. Just smart memory use. */ interface MemoryStore { remember(content: string, options?: { type?: 'episodic' | 'semantic' | 'procedural' | 'working'; source?: string; importance?: number; tags?: string[]; }): Promise; search(query: string, options?: { type?: 'episodic' | 'semantic' | 'procedural' | 'working'; limit?: number; minImportance?: number; }): Promise<{ id: string; content: string; importance: number; tags?: string[]; }[]>; forget?(id: string): Promise; } export declare class SystemIndexer { private memory; private home; private indexed; constructor(memory: MemoryStore); /** * Index the user's home directory structure into memory */ indexHome(): Promise<{ projects: number; directories: number; total: number; }>; /** * Index a directory and its subdirectories */ private indexDirectory; /** * Find and index git repositories as projects */ private indexGitRepos; /** * Get detailed info about a git project */ private getProjectInfo; /** * Detect project type by looking at files */ private detectProjectType; /** * Remember a key directory (Downloads, Documents, Desktop, etc.) * These get high importance and multiple aliases for better search */ private rememberKeyDirectory; /** * Store a project in memory */ private rememberProject; /** * Generate a description for a directory */ private describeDirectory; /** * Extract relevant tags from directory contents */ private extractTags; /** * Re-index (clear old filesystem memories and re-scan) */ reindex(): Promise<{ projects: number; directories: number; total: number; }>; } export {};