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
ProfileBootstrap/SecretsBootstrap— process-wide cells for the active profile and secrets document, initialised in that order by the entry-crate boot sequence.init_config/build_from_profile— build a runtimesystemprompt_models::Configfrom the active profile.ConfigService,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::MANIFEST_SIGNING_SEED_BYTES;pub use bootstrap::ProfileBootstrap;pub use bootstrap::ProfileBootstrapError;pub use bootstrap::SecretsBootstrap;pub use bootstrap::SecretsBootstrapError;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 error::ConfigError;pub use error::ConfigResult;
Modules§
- bootstrap
- Bootstrap entry points.
- error
- Public error type for
systemprompt-config. - path_
validation - Filesystem existence checks for the paths a profile declares.
- profile_
gateway - Gateway-section post-parse helpers for the profile loader.