gestura_core/checkpoints/mod.rs
1//! Checkpoints (snapshots) for agent sessions and related state.
2//!
3//! A checkpoint captures enough state to “rewind” a session in a safe, deterministic way.
4//!
5//! This module is **core-first**: adapters (CLI/GUI) should call into
6//! [`CheckpointManager`] rather than reimplementing storage or retention policies.
7
8pub mod manager;
9pub mod session;
10pub mod store;
11pub mod types;
12
13pub use manager::CheckpointManager;
14pub use store::{FileCheckpointStore, default_checkpoints_dir};
15pub use types::{
16 Checkpoint, CheckpointError, CheckpointId, CheckpointMetadata, CheckpointRetentionPolicy,
17 CheckpointSnapshot,
18};
19
20pub use session::{
21 SESSION_CHECKPOINT_SCHEMA_V1, SessionCheckpointConfig, SessionCheckpointPayload,
22};