Expand description
Session management for stateful conversations.
Re-exports§
pub use crate::types::TokenUsage;pub use compact::CompactExecutor;pub use compact::CompactStrategy;pub use manager::SessionManager;pub use persistence::MemoryPersistence;pub use persistence::Persistence;pub use persistence::PersistenceFactory;pub use persistence_jsonl::JsonlConfig;jsonlpub use persistence_jsonl::JsonlConfigBuilder;jsonlpub use persistence_jsonl::JsonlEntry;jsonlpub use persistence_jsonl::JsonlPersistence;jsonlpub use persistence_jsonl::SyncMode;jsonlpub use persistence_postgres::PgPoolConfig;postgrespub use persistence_postgres::PostgresConfig;postgrespub use persistence_postgres::PostgresPersistence;postgrespub use persistence_postgres::PostgresSchema;postgrespub use persistence_postgres::SchemaIssue;postgrespub use persistence_redis::RedisConfig;redis-backendpub use persistence_redis::RedisPersistence;redis-backendpub use queue::InputQueue;pub use queue::MergedInput;pub use queue::QueueError;pub use queue::QueuedInput;pub use session_state::ExecutionGuard;pub use session_state::ToolState;pub use state::MessageId;pub use state::MessageMetadata;pub use state::PermissionPolicy;pub use state::Session;pub use state::SessionConfig;pub use state::SessionId;pub use state::SessionMessage;pub use state::SessionMode;pub use state::SessionState;pub use state::SessionType;pub use types::CompactRecord;pub use types::CompactTrigger;pub use types::EnvironmentContext;pub use types::Plan;pub use types::PlanStatus;pub use types::QueueItem;pub use types::QueueOperation;pub use types::QueueStatus;pub use types::SessionStats;pub use types::SessionTree;pub use types::SummarySnapshot;pub use types::TodoItem;pub use types::TodoStatus;pub use types::ToolExecution;pub use types::ToolExecutionFilter;
Modules§
- compact
- Context Compaction (Claude Code CLI compatible)
- manager
- Session lifecycle management.
- persistence
- Session Persistence Backends
- persistence_
jsonl jsonl - JSONL-based persistence backend compatible with Claude Code CLI.
- persistence_
postgres postgres - PostgreSQL session persistence with explicit schema management.
- persistence_
redis redis-backend - Redis persistence backend for sessions.
- queue
- Input queue for handling concurrent user inputs.
- session_
state - Tool state for thread-safe state access.
- state
- Session state management.
- types
- Session-related types for persistence and tracking.