/** * Search Controller * * Orchestration layer for project search operations. * Extracts preview generation, glob filtering, and auto-reindex * coordination from the SearchProjectTool. */ import { ContextualSearchRLM } from "../services/search/contextual-search-rlm.js"; export interface ProjectSearchInput { query: string; projectId: string; projectPath?: string; maxResults?: number; minScore?: number; responseMode?: "summary" | "full" | "enriched"; autoReindex?: boolean; include?: string[]; exclude?: string[]; explainScores?: boolean; /** * Files to boost in ranking (from Symbol Graph prefilter). * Results whose filePath is in this list get score * 1.3. */ boostFiles?: string[]; sessionId?: string; } export interface ProjectSearchResult { query: string; projectId: string; responseMode: string; tokenSavings: string; indexStatus: any; recommendations: string[]; filters: { applied: boolean; include: string[]; exclude: string[]; totalResults: number; filteredResults: number; }; results: FormattedResult[]; } interface FormattedResult { id: string; score: number; filePath: string; lineStart?: number; lineEnd?: number; language?: string; preview: string; explanation?: string; content?: string; parentSymbol?: string; fileImports?: string; chunkIndex?: number; totalChunks?: number; } export declare class SearchController { private static instance; private contextualSearch; private constructor(); static getInstance(): SearchController; /** Expose the underlying search engine for direct use by ContextController. */ getSearchEngine(): ContextualSearchRLM; searchProject(input: ProjectSearchInput): Promise; private handleAutoReindex; generatePreview(result: any, _query?: string): string; filterByPatterns(results: any[], include?: string[], exclude?: string[]): any[]; /** * Apply a 30% score boost to results whose filePath is in boostFiles. * Re-sorts by boosted score descending. */ applyBoost(results: any[], boostFiles: string[]): any[]; } export {}; //# sourceMappingURL=search-controller.d.ts.map