Skip to main content

Crate systemprompt_config

Crate systemprompt_config 

Source
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

§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.

Structs§

ConfigManager
ConfigValidator
DeploymentConfig
EnvironmentConfig
SkillConfigValidator
ValidationReport

Enums§

ConfigValidationError
DeployEnvironment

Functions§

build_from_profile
generate_schema
init_config
init_config_from_profile
load_profile_with_catalog
try_init_config
validate_config
validate_database_config
validate_yaml_file
validate_yaml_str