/** * search Tool * * Semantic search of institutional memory without action context. * Unlike recall (which is "I'm about to do X, warn me"), search is * pure exploration ("show me what we know about X"). * * No side effects: no variant assignment, no session state mutation, * no surfaced scar tracking. * * Performance target: 500ms */ import type { Project, PerformanceData } from "../types/index.js"; export type LearningType = "scar" | "win" | "pattern" | "anti_pattern"; export type ScarSeverity = "critical" | "high" | "medium" | "low"; export interface SearchParams { query: string; match_count?: number; project?: Project; severity?: ScarSeverity; learning_type?: LearningType; } export interface SearchResultEntry { id: string; title: string; learning_type: string; severity: string; description: string; counter_arguments?: string[]; similarity: number; source_linear_issue?: string; is_starter?: boolean; } export interface SearchResult { query: string; project: Project; match_count: number; results: SearchResultEntry[]; total_found: number; filters_applied: { severity?: string; learning_type?: string; }; display?: string; performance: PerformanceData; } export declare function search(params: SearchParams): Promise; //# sourceMappingURL=search.d.ts.map