/** * clear command — delete Tool Session rows from the active local evidence store. * * Works against whichever store the host opened for this run: project runtime * after Init, or the user-cache ephemeral store on a no-init first run. Only * Tool Sessions (and cascaded session payloads/findings) are deleted. Parent * Runs/steps/snapshots, reports, graph catalogs, baselines, plugins, and other * runtime state are preserved. Full-state removal is `opensip uninstall --project`. * * Uses Node `readline` for interactive confirmation (Ink's `useInput` * raw-mode requirement is incompatible with prompts on every TTY). * Banners and result lines route through the Ink renderer via the * `clear-done` `CommandResult` shape — no raw ANSI escapes here. */ import type { ClearDoneResult } from '@opensip-cli/contracts'; import type { DataStore } from '@opensip-cli/datastore'; export interface ClearOptions { olderThan?: number; yes: boolean; datastore: DataStore; } /** * Prompt for confirmation (unless --yes), then delete matching Tool Sessions * from the active local evidence store through SessionRepo's write-locked * purge/clear paths (selection + deletion share the datastore write lock and * a single SQLite mutation). * * Returns a `ClearDoneResult` that the renderer turns into the banner * + status line. */ export declare function executeClear(opts: ClearOptions): Promise; //# sourceMappingURL=clear.d.ts.map