| 1 | import type { ExecutionSnapshot, SnapshotSummary } from '../types'; |
| 2 | |
| 3 | export interface ISnapshotStore { |
| 4 | get: (traceId: string) => Promise<ExecutionSnapshot | null>; |
| 5 | getLatest: () => Promise<ExecutionSnapshot | null>; |
| 6 | list: (options?: { limit?: number }) => Promise<SnapshotSummary[]>; |
| 7 | /** List in-progress partial snapshot filenames */ |
| 8 | listPartials: () => Promise<string[]>; |
| 9 | /** Load in-progress partial snapshot */ |
| 10 | loadPartial: (operationId: string) => Promise<Partial<ExecutionSnapshot> | null>; |
| 11 | |
| 12 | /** Remove partial snapshot (after finalizing) */ |
| 13 | removePartial: (operationId: string) => Promise<void>; |
| 14 | save: (snapshot: ExecutionSnapshot) => Promise<void>; |
| 15 | /** Save in-progress partial snapshot */ |
| 16 | savePartial: (operationId: string, partial: Partial<ExecutionSnapshot>) => Promise<void>; |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected