/** * Quick Retrieve — lightweight scar search for hook invocation. * * Designed to be called from the auto-retrieve UserPromptSubmit hook * via: node dist/hooks/quick-retrieve.js [token_budget] * * Imports the storage layer directly (no MCP overhead). * Routes to: * 1. In-memory vector search (MCP server process with warm cache) * 2. Disk cache keyword search (hook child process reading hook-scars.json) * 3. LocalStorage keyword search (free tier fallback) * * No side effects: no surfaced scar tracking, no variant assignment, * no confirmation gate. Pure retrieval for passive context injection. * * Performance target: <300ms total. */ import type { Project } from "../types/index.js"; export interface QuickRetrieveOptions { project?: Project; tokenBudget?: number; } /** * Perform a quick scar search optimized for hook invocation. * * Returns formatted compact text suitable for additionalContext injection, * or null if no relevant scars found or retrieval level is "none". */ export declare function quickRetrieve(prompt: string, retrievalLevel: string, options?: QuickRetrieveOptions): Promise; //# sourceMappingURL=quick-retrieve.d.ts.map