Commit 9ce41bc
committed
refactor: consolidate snapshot functionality into Store interface
The standalone Checkpointer module was designed but never integrated into
the Agent runtime. All snapshot/fork operations already use Store directly:
- Agent.snapshot() -> Store.saveSnapshot()
- Agent.fork() -> Store.loadSnapshot()
This simplifies the codebase by removing the unused abstraction layer,
making it clearer for developers which API to use.
Removed:
- src/core/checkpointer.ts (MemoryCheckpointer)
- src/core/checkpointers/ (FileCheckpointer, RedisCheckpointer)
- Related tests and exports
Updated documentation to reflect the actual API (snapshot vs checkpoint).1 parent 4fbd2a7 commit 9ce41bc
9 files changed
Lines changed: 6 additions & 522 deletions
File tree
- docs
- src
- core
- checkpointers
- tests
- unit/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
| 148 | + | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
| 152 | + | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments