Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(config): re-export config parsing helpers from load module

Steven Enamakelcd145d51e854
diff --git a/crates/openhuman-core/src/config/schema/load/config_file_read.rs b/crates/openhuman-core/src/config/schema/load/config_file_read.rs
index 8191205362..5fa4d02fb4 100644
--- a/crates/openhuman-core/src/config/schema/load/config_file_read.rs
+++ b/crates/openhuman-core/src/config/schema/load/config_file_read.rs
@@ -3,6 +3,8 @@ use std::path::Path;
use std::sync::{Mutex, OnceLock};
use tokio::fs;
+use super::super::Config;
+
/// Guards the "corrupted config read, resetting to defaults" warning so it
/// fires at most once per process lifetime. Without this, a permanently
/// non-UTF-8 config file floods telemetry with hundreds of identical
diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rs
index 602566d819..2136203a13 100644
--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs
+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs
@@ -16,6 +16,10 @@ use anyhow::{Context, Result};
use std::path::Path;
pub(super) use super::config_file_read::read_config_with_recovery_or_default;
+pub(super) use super::config_file_read::{
+ migration_source, parse_config_boxed, parse_toml_off_worker,
+};
+pub(crate) use super::config_file_read::parse_config_with_recovery;
pub(crate) use super::config_file_read::CONFIG_OWNER_MISMATCH_MARKER;
pub(super) use super::parse_source::parse_source_contents;