/** * cli-query — `code-session-memory query ` command. * * Performs semantic search against the indexed sessions database using an * OpenAI embedding of the query text, then prints matching results to stdout. * * Usage: * npx code-session-memory query "authentication middleware" * npx code-session-memory query "auth flow" --source opencode * npx code-session-memory query "session summary" --source codex * npx code-session-memory query "migration" --limit 10 * npx code-session-memory query "tooling" --source gemini-cli * npx code-session-memory query "error handling" --from 2026-02-01 --to 2026-02-20 * * Requires OPENAI_API_KEY environment variable for embedding generation. */ import type { SessionSource } from "./types"; interface QueryOptions { queryText: string; source?: SessionSource; limit: number; fromMs?: number; toMs?: number; hybrid?: boolean; } /** * Parses `process.argv`-style args into QueryOptions. * The query text is everything up to the first flag (--xxx), joined with spaces. * Throws a descriptive error on bad input. */ export declare function parseQueryArgs(args: string[]): QueryOptions; /** * Parses a date string (ISO 8601 date or datetime) into milliseconds. * For "start" boundary: beginning of the day (00:00:00 UTC). * For "end" boundary: end of the day (23:59:59.999 UTC). * Returns null if the string is not a valid date. */ export declare function parseDateMs(value: string, boundary: "start" | "end"): number | null; export declare function cmdQuery(args: string[]): Promise; export {}; //# sourceMappingURL=cli-query.d.ts.map