Skip to main content

Crate systemprompt_loader

Crate systemprompt_loader 

Source
Expand description

File and module discovery infrastructure for systemprompt.io.

Reads the active services-config (with include resolution and deduplication), loads profile YAML, writes agent files, and discovers extension manifests under extensions/. Sits one level above systemprompt_config in the dependency graph so that domain crates never need to know how the on-disk layout is structured.

§Modules

§Feature flags

This crate has no Cargo features; everything compiles by default.

Re-exports§

pub use config_loader::ConfigLoader;
pub use config_writer::ConfigWriter;
pub use error::ConfigLoadError;
pub use error::ConfigLoadResult;
pub use error::ConfigWriteError;
pub use error::ConfigWriteResult;
pub use error::ExtensionLoadError;
pub use error::ExtensionLoadResult;
pub use error::ProfileLoadError;
pub use error::ProfileLoadResult;
pub use extension_loader::ExtensionLoader;
pub use extension_loader::ExtensionValidationResult;
pub use extension_registry::ExtensionRegistry;
pub use module_loader::ModuleLoader;
pub use profile_loader::ProfileLoader;

Modules§

config_loader
Reads, parses, and merges the active services configuration.
config_writer
Writes individual agent files and patches the top-level config to drop their includes: entries.
error
Error types raised by the loader infrastructure.
extension_loader
Discovers extensions/<name>/manifest.yaml files and resolves the binaries those manifests reference.
extension_registry
In-memory index of discovered extensions used to resolve binary paths at runtime, with a separate code path for cloud deployments where every binary lives in a single configured directory.
module_loader
Thin wrapper around the inventory-driven extension registry.
profile_loader
Reads, validates, and writes profile YAML files (with embedded gateway / cloud catalogues).