#!/usr/bin/env node /** * Entry point for Cursor session indexing. * * Called by the Cursor stop hook. Receives JSON on stdin: * { * conversation_id: string, // the composerId * workspace_roots: string[], // project directories * transcript_path: string, // path to the JSONL transcript (always complete) * model: string, * status: "completed" | "aborted" | "error", * ... * } * * Strategy: * - Read messages from transcript_path (JSONL written by Cursor before the * hook fires — always complete and race-condition-free). * - Read session title from state.vscdb (best-effort, falls back to first * user message). * - Index new messages into the shared sqlite-vec DB incrementally. * * No retries needed: the transcript file is the authoritative source. */ export {}; //# sourceMappingURL=indexer-cli-cursor.d.ts.map