MCPcopy
hub / github.com/lobehub/lobehub / ISnapshotStore

Interface ISnapshotStore

packages/agent-tracing/src/store/types.ts:3–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { ExecutionSnapshot, SnapshotSummary } from '../types';
2
3export 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}

Callers

nothing calls this directly

Implementers 3

FileSnapshotStorepackages/agent-tracing/src/store/file-
S3SnapshotStoreapps/server/src/modules/AgentTracing/S
FakeSnapshotStoreapps/server/src/services/heterogeneous

Calls

no outgoing calls

Tested by

no test coverage detected