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
refactor(config): re-export config_from_toml_str from schema module
Steven Enamakelcb82e08f4cd8
diff --git a/crates/openhuman-core/src/channels/host/adapters.rs b/crates/openhuman-core/src/channels/host/adapters.rsindex ba67129d19..9c6297121e 100644--- a/crates/openhuman-core/src/channels/host/adapters.rs+++ b/crates/openhuman-core/src/channels/host/adapters.rs@@ -249,7 +249,7 @@ impl AllowlistStore for ConfigAllowlistStore {let contents = tokio::fs::read_to_string(&config_path).await.with_context(|| format!("failed to read config file: {}", config_path.display()))?;- let mut config: Config = crate::config::schema::load::config_from_toml_str(&contents)+ let mut config: Config = crate::config::schema::config_from_toml_str(&contents).context("failed to parse config.toml for allowlist")?;config.config_path = config_path;config.workspace_dir = openhuman_dir.join("workspace");diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rsindex ba91256a59..74362ffc37 100644--- a/crates/openhuman-core/src/config/schema/mod.rs+++ b/crates/openhuman-core/src/config/schema/mod.rs@@ -31,6 +31,7 @@ pub mod hosting;pub use hosting::HostingConfig;mod identity_cost;mod load;+pub(crate) use load::config_from_toml_str;pub use load::{action_dir_env_override, active_user_marker_path, active_workspace_dir,active_workspace_dir_cached, active_workspace_snapshot, clear_active_user, default_action_dir,diff --git a/crates/openhuman-core/src/tools/impl/system/proxy_config.rs b/crates/openhuman-core/src/tools/impl/system/proxy_config.rsindex 9a41de8f85..15acd4be63 100644--- a/crates/openhuman-core/src/tools/impl/system/proxy_config.rs+++ b/crates/openhuman-core/src/tools/impl/system/proxy_config.rs@@ -27,7 +27,7 @@ impl ProxyConfigTool {)})?;- let mut parsed: Config = crate::config::schema::load::config_from_toml_str(&contents).map_err(|error| {+ let mut parsed: Config = crate::config::schema::config_from_toml_str(&contents).map_err(|error| {anyhow::anyhow!("Failed to parse config file {}: {error}",self.config.config_path.display()