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//!
10//! Copyright (c) systemprompt.io — Business Source License 1.1.
11//! See <https://systemprompt.io> for licensing details.
12
13pub mod api;
14mod context;
15mod creation;
16mod resolution;
17mod store;
18
19pub use context::CliSessionContext;
20pub use resolution::get_or_create_session;
21pub use store::{clear_all_sessions, clear_session, get_session_for_key, load_session_store};