Kind: Class
Source: atloria-monorepo/libs/agent-core/src/context/checkpoint-backend.ts
Implements: CheckpointBackend
Methods
| Method | Signature | Returns |
|---|---|---|
save | save(snap: Snapshot) | void |
load | load(relPath: string) | Snapshot[] |
loadLatest | loadLatest(relPath: string) | `Snapshot |
deleteFile | deleteFile(relPath: string) | void |
deleteFrom | deleteFrom(relPath: string, fromIndex: number) | void |
getTrackedFiles | getTrackedFiles() | string[] |
getTotalCount | getTotalCount() | number |
getSnapshotCount | getSnapshotCount(relPath: string) | number |
clear | clear() | void |
evictOldest | evictOldest() | boolean |
flush | flush() | void |
Properties
| Property | Type |
|---|---|
sessionId | string |
sessionDir | string |
Where it refuses work
DiskBackendstops the work with an early return when!snaps || snaps.length === 0, in 2 places.DiskBackendstops the work with an early return when!snaps, in 2 places.DiskBackendstops the work with an early return whenfromIndex < 0 || fromIndex >= snaps.length.
When something fails
DiskBackendhandles failure in 13 places: it discards it silently in 10, turns it into a return value in 2, and logs it and continues in 1.
Was this page helpful?