Skip to main content

systemprompt_runtime/managed/
mod.rs

1//! Application-owned orchestration over the managed marketplace domain.
2//!
3//! Inventory refresh and Git credential resolution. The domain owns content
4//! and storage; this layer binds it to configured roots and secrets.
5//!
6//! Copyright (c) systemprompt.io — Business Source License 1.1.
7//! See <https://systemprompt.io> for licensing details.
8
9pub mod git_sources;
10pub mod inventory;
11
12#[derive(Debug, thiserror::Error)]
13pub enum OrchestrationError {
14    #[error(transparent)]
15    Managed(#[from] systemprompt_marketplace::managed::ManagedError),
16    #[error("Configured inventory could not be loaded; previous inventory retained: {0}")]
17    InventoryLoad(#[source] systemprompt_loader::ConfigLoadError),
18    #[error("Git credentials are unavailable: {0}")]
19    CredentialsUnavailable(#[source] systemprompt_config::SecretsBootstrapError),
20    #[error("Git credential reference is unresolved")]
21    CredentialUnresolved,
22    #[error("Operation requires a registered Git source")]
23    NotGitSource,
24}