Expand description
§systemprompt-config
Profile-based configuration for systemprompt.io. This crate is the bootstrap layer: it loads the active profile YAML, the matching secrets document, and installs both into process-wide singletons before any other layer (database, runtime, agent) starts.
§Public surface
BootstrapSequence/presets— type-state-driven startup helper that enforces profile before secrets at compile time.ProfileBootstrap/SecretsBootstrap— process-wide cells for the active profile and secrets document.init_config/build_from_profile— build a runtimesystemprompt_models::Configfrom the active profile.ConfigManager,ConfigValidator— utilities used by thesystemprompt cloud configdeployment pipeline.SkillConfigValidator—DomainConfigimplementation that walksskills/and reports missing or malformed manifests.
§Errors
All public APIs return ConfigResult<T> (i.e.
Result<T, ConfigError>). ConfigError composes the bootstrap,
profile, secrets, schema-validation, and lower-level
serde/std::io errors 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 bootstrap::BootstrapComplete;pub use bootstrap::BootstrapSequence;pub use bootstrap::BootstrapState;pub use bootstrap::JWT_SECRET_MIN_LENGTH;pub use bootstrap::MANIFEST_SIGNING_SEED_BYTES;pub use bootstrap::ProfileBootstrap;pub use bootstrap::ProfileBootstrapError;pub use bootstrap::ProfileInitialized;pub use bootstrap::SecretsBootstrap;pub use bootstrap::SecretsBootstrapError;pub use bootstrap::SecretsInitialized;pub use bootstrap::Uninitialized;pub use bootstrap::build_loaded_secrets_message;pub use bootstrap::decode_seed;pub use bootstrap::generate_seed;pub use bootstrap::load_secrets_from_path;pub use bootstrap::log_secrets_issue;pub use bootstrap::log_secrets_skip;pub use bootstrap::log_secrets_warn;pub use bootstrap::persist_seed;pub use bootstrap::presets;pub use error::ConfigError;pub use error::ConfigResult;
Modules§
- bootstrap
- Bootstrap sequence orchestration.
- error
- Public error type for
systemprompt-config. - profile_
gateway - Gateway catalog resolution for profiles that reference an external
catalog YAML via
gateway.catalog_path.