Expand description
Read-only and save checkpoint tools that surface the session’s checkpoint chain.
checkpoint_list and checkpoint_diff are read-only observer tools.
checkpoint_save (Goal 284) lets the agent create explicit restore
points on demand — the only path that creates new shadow-git objects
during a run.
Restoration remains runtime/CLI-driven (see recursive sessions rewind).
Structs§
- Checkpoint
Diff - Checkpoint
List - Checkpoint
Save - Checkpoint
Save Ctx - Context for the on-demand
checkpoint_savetool. - Checkpoint
Tool Ctx - Shared state for the read-only checkpoint tools.
Functions§
- build_
checkpoint_ save_ tool - Build a
CheckpointSavetool wired to the given shared state. - build_
checkpoint_ tools - Build the read-only checkpoint tools for a given session.
Returns
Noneif the shadow repo cannot be opened (e.g. git missing). - build_
checkpoint_ tools_ at - Like
build_checkpoint_tools, but with an explicitshadow_dir, for tests that want to bypasspaths::user_data_dir()resolution.