Skip to main content

stakpak_server/
lib.rs

1pub mod auth;
2pub mod checkpoint_store;
3pub mod context;
4pub mod error;
5pub mod event_log;
6pub mod idempotency;
7pub mod message_bridge;
8pub mod openapi;
9pub mod routes;
10pub mod sandbox;
11pub mod session_actor;
12pub mod session_manager;
13pub mod state;
14pub mod types;
15
16pub use auth::AuthConfig;
17pub use checkpoint_store::CheckpointStore;
18pub use context::{
19    ContextBudget, ContextFile, ContextPriority, EnvironmentContext, GitContext, ProjectContext,
20    SessionContext, SessionContextBuilder,
21};
22pub use error::SessionManagerError;
23pub use event_log::{EventEnvelope, EventLog, EventSubscription, GapDetected};
24pub use idempotency::{IdempotencyRequest, IdempotencyStore, LookupResult, StoredResponse};
25pub use openapi::generate_openapi;
26pub use routes::{protected_router, public_router, router};
27pub use sandbox::{
28    PersistentSandbox, SandboxConfig, SandboxHealth, SandboxMode, SandboxUserMapping,
29    SandboxedMcpServer,
30};
31pub use session_actor::{build_checkpoint_envelope, build_run_context, spawn_session_actor};
32pub use session_manager::SessionManager;
33pub use stakpak_agent_core::{
34    SAFE_AUTOPILOT_TOOLS, ToolApprovalAction, ToolApprovalPolicy, strip_tool_prefix,
35};
36pub use state::AppState;
37pub use types::{AutoApproveOverride, RunConfig, RunOverrides, SessionHandle, SessionRuntimeState};