Expand description
§systemprompt-cloud
Cloud API client, credentials management, OAuth login flow, and tenant orchestration for systemprompt.io Cloud deployments. This crate is the bridge between the local CLI/runtime and the systemprompt.io control plane.
§Public surface
CloudApiClient— bearer-token-authenticated REST client.CloudCredentials/CredentialsBootstrap— on-disk and process-wide cloud credentials.StoredTenant/TenantStore— persistent tenants index.CliSession/SessionStore— multi-tenant CLI sessions.run_oauth_flow/run_checkout_callback_flow— browser-driven OAuth and Paddle checkout flows.wait_for_provisioning— SSE + polling watcher for tenant provisioning state.CloudPaths— XDG-aware discovery of credentials, sessions, tenants, and project files.
§Errors
All public APIs return CloudResult<T> (i.e.
Result<T, CloudError>). CloudError composes reqwest,
std::io, serde_json, and the more specific
CredentialsBootstrapError via #[from] so callers can use ?
transparently.
§Feature flags
This crate has no Cargo features — every dependency is required at
compile time. The [package.metadata.docs.rs] section in
Cargo.toml enables all-features = true for parity with the
rest of the workspace.
Re-exports§
pub use api_client::CloudApiClient;pub use checkout::CheckoutCallbackResult;pub use checkout::CheckoutTemplates;pub use checkout::run_checkout_callback_flow;pub use checkout::wait_for_provisioning;pub use cli_session::CliSession;pub use cli_session::LOCAL_SESSION_KEY;pub use cli_session::SessionKey;pub use cli_session::SessionStore;pub use constants::api::PRODUCTION_URL;pub use constants::api::SANDBOX_URL;pub use context::CloudContext;pub use context::ResolvedTenant;pub use credentials::CloudCredentials;pub use credentials_bootstrap::CredentialsBootstrap;pub use credentials_bootstrap::CredentialsBootstrapError;pub use error::CloudError;pub use error::CloudResult;pub use oauth::OAuthTemplates;pub use oauth::run_oauth_flow;pub use paths::CloudPath;pub use paths::CloudPaths;pub use paths::DiscoveredProject;pub use paths::ProfilePath;pub use paths::ProjectContext;pub use paths::ProjectPath;pub use paths::UnifiedContext;pub use paths::get_cloud_paths;pub use paths::resolve_path;pub use tenants::StoredTenant;pub use tenants::TenantStore;pub use tenants::TenantType;
Modules§
- api_
client - systemprompt.io Cloud API client.
- auth
- checkout
- cli_
session - constants
- context
- credentials
- On-disk representation of authenticated cloud credentials.
- credentials_
bootstrap - Process-wide cloud credentials bootstrap.
- error
- Public error type for
systemprompt-cloud. - oauth
- paths
- tenants
- On-disk representation of cloud tenants the CLI knows about.
Structs§
- Checkout
Event - Checkout
Response - Deploy
Response - List
Secrets Response - Provisioning
Event - Registry
Token - User
MeResponse