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): extract config source parsing into its own module
Steven Enamakel4c289cb1e9e9
diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rsindex fa4af5a687..df07a91990 100644--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs@@ -140,3 +140,5 @@ pub(super) async fn read_config_with_recovery_or_default(}}+pub(super) use super::parse_source::parse_source_contents;+diff --git a/crates/openhuman-core/src/config/schema/load/mod.rs b/crates/openhuman-core/src/config/schema/load/mod.rsindex 2f9cd97d6e..62b9610c4b 100644--- a/crates/openhuman-core/src/config/schema/load/mod.rs+++ b/crates/openhuman-core/src/config/schema/load/mod.rs@@ -6,6 +6,7 @@ mod dirs;pub(in crate::config::schema) mod env;mod env_overlay;mod impl_load;+mod parse_source;mod migrate;mod parse;mod saas_scope;diff --git a/crates/openhuman-core/src/config/schema/load/parse_source.rs b/crates/openhuman-core/src/config/schema/load/parse_source.rsindex 7e474e85e9..9722c4d3fd 100644--- a/crates/openhuman-core/src/config/schema/load/parse_source.rs+++ b/crates/openhuman-core/src/config/schema/load/parse_source.rs@@ -1,6 +1,7 @@use anyhow::Result;use std::path::Path;+use super::impl_load::{parse_config_boxed, parse_toml_off_worker};use super::super::Config;/// Parse the text a [`ConfigSource`](super::source::ConfigSource) returned.