Expand description
systemprompt-runtime — application runtime services.
This crate hosts AppContext, the lifecycle AppContextBuilder,
the inventory-driven module API and well-known route registries,
per-module installation helpers, startup validation, and the typed
RuntimeError / RuntimeResult error boundary used by all of
the above.
Public APIs return RuntimeResult<T>. RuntimeError composes
upstream typed errors (ConfigError, RepositoryError,
FilesError, UserError, LoaderError, AnalyticsError,
ProfileBootstrapError, PathError) via #[from] and absorbs
untyped third-party errors into RuntimeError::Internal as strings.
§Feature flags
| Feature | Effect |
|---|---|
| (default) | Core context, builder, registries, validation |
geolocation | Enables MaxMind GeoIP2 loading via maxminddb and pulls in systemprompt-analytics/geolocation |
Macros§
Structs§
- AppContext
- Application-wide runtime container shared across the HTTP server, the scheduler, and CLI commands.
- AppContext
Builder - Assembles an
AppContext, owning the bootstrap order described on the module. - Config
Plane - Resolved configuration, on-disk paths, and the routing derived from them.
- Data
Plane - Database pool and the data-access services layered on it.
- Database
Context - Files
Config Validator - Migration
Config - Module
ApiRegistration - Module
ApiRegistry - Plugins
- Extension, module-API, MCP, and marketplace registries.
- Startup
Validator - Subsystems
- Cross-cutting runtime subsystems: admin identity, authz hook, the event
bridge handle, and the optional
GeoIPreader. - Well
Known Metadata - Well
Known Route
Enums§
Functions§
- create_
request_ span - display_
validation_ report - display_
validation_ warnings - get_
wellknown_ metadata - validate_
database_ path - validate_
system