Skip to main content

systemprompt_cli/session/
mod.rs

1//! CLI session lifecycle: resolve, create, persist, and clear sessions.
2//!
3//! Re-exports the session surface used across commands: [`CliSessionContext`]
4//! (an authenticated session bound to its profile), [`get_or_create_session`]
5//! (the primary entry point), and the on-disk session store helpers
6//! ([`load_session_store`], [`get_session_for_key`], [`clear_session`],
7//! [`clear_all_sessions`]). The [`api`] submodule carries the remote-session
8//! HTTP surface.
9
10pub mod api;
11mod context;
12mod creation;
13mod resolution;
14mod store;
15
16pub use context::CliSessionContext;
17pub use resolution::get_or_create_session;
18pub use store::{clear_all_sessions, clear_session, get_session_for_key, load_session_store};