The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
Merge origin/main into profile-direct-providers
Steven Enamakelc882117e1f1a
diff --cc crates/openhuman-core/src/profiles/host.rsindex 726e2fc803,4a16323c6f..fd3bec3f9b--- a/crates/openhuman-core/src/profiles/host.rs+++ b/crates/openhuman-core/src/profiles/host.rs@@@ -221,13 -219,24 +221,29 @@@ impl ProfileHost)}+ /// [`layout::profile_config`] plus the operator's cron limits, which no+ /// profile config can loosen.- fn forced_config(&self, layout: &ProfileLayout, id: &ProfileId) -> Config {++ fn forced_config(&self, layout: &ProfileLayout, id: &ProfileId) -> Result<Config, String> {+ let mut config = layout::profile_config(layout, id);++ // Operator-owned direct providers apply to every config built for a++ // profile, whether it serves chat, relay or cron.++ super::provider_settings::ProfileProviderSettings::from_saas(&self.saas)++ .map_err(|error| error.to_string())?++ .bind(&mut config);+ let cron = &self.saas.cron;+ config.cron.agent_jobs_only = cron.agent_jobs_only;+ config.cron.min_interval_secs = cron.min_interval_secs;+ config.cron.max_active_jobs = cron.max_active_jobs;- config++ Ok(config)+ }+/// The forced config of provisioned profile `id`, without opening it (and/// so without taking a profile slot or its lease).pub async fn provisioned_config(&self, id: &ProfileId) -> Result<Config, String> {if self.registry.get(id).await?.is_none() {return Err(format!("profile {id} is not provisioned"));}- Ok(layout::profile_config(&self.layout_of(id), id))- Ok(self.forced_config(&self.layout_of(id), id))++ self.forced_config(&self.layout_of(id), id)}/// Profile `id`, opening it — and taking its lease — if it is provisioned@@@ -301,10 -310,7 +317,9 @@@profile_lease::release_all(self, vec![(id.clone(), grant)]).await;return Err(OpenError::Storage(error));}- let mut config = layout::profile_config(&layout, id);- let providers = super::provider_settings::ProfileProviderSettings::from_saas(&self.saas)- .map_err(|error| OpenError::Storage(error.to_string()))?;- providers.bind(&mut config);- let mut config = self.forced_config(&layout, id);++ let mut config = self++ .forced_config(&layout, id)++ .map_err(OpenError::Storage)?;if let Some(capabilities) = &self.capabilities {capabilities.configure(&mut config);}diff --cc crates/openhuman-embed/src/profiles.rsindex 9db3564d93,80a44a789f..bfc770fb16--- a/crates/openhuman-embed/src/profiles.rs+++ b/crates/openhuman-embed/src/profiles.rs@@@ -65,9 -65,7 +65,9 @@@ mod hostpub use handle::{ChatReply, ProfileEvents, ProfileHandle, RelayAccepted};pub use openhuman_core::channels::providers::relay::RelayInboundParams as RelayMessage;+/// Validated operator-owned direct inference settings.+pub use openhuman_core::core::runtime::direct_profile_provider::DirectProfileProvider;- pub use openhuman_core::core::runtime::saas::SaasSandboxConfig;+ pub use openhuman_core::core::runtime::saas::{SaasCronConfig, SaasSandboxConfig};pub use openhuman_core::core::runtime::SaasConfig;pub use openhuman_core::profiles::{OpenError, ProfileId, ProfileIdMode, ProfileSummary};pub use openhuman_core::storage::lease::LeaseRecord;