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): expose config ownership helper to parent module
Steven Enamakel4cefcb5b458b
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.rsindex bfb26866e4..f93ffa3b55 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@@ -1,4 +1,4 @@-use anyhow::{Context, Result};+use anyhow::Result;use std::path::Path;use tokio::fs;@@ -124,7 +124,7 @@ pub(crate) const CONFIG_OWNER_MISMATCH_MARKER: &str = "[config owner mismatch]";/// Numeric ids and mode bits are not PII, so this is safe both in the local log/// and in the error chain that reaches the client.#[cfg(unix)]-async fn describe_config_ownership(path: &Path) -> String {+pub(super) async fn describe_config_ownership(path: &Path) -> String {use std::os::unix::fs::{MetadataExt, PermissionsExt};let Ok(meta) = fs::metadata(path).await else {@@ -147,6 +147,6 @@ async fn describe_config_ownership(path: &Path) -> String {}#[cfg(not(unix))]-async fn describe_config_ownership(_path: &Path) -> String {+pub(super) async fn describe_config_ownership(_path: &Path) -> String {String::new()}diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rsindex a08e798356..cb6fa74376 100644--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs@@ -20,7 +20,7 @@ use tokio::fs;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::config_file_read::{- migration_source, parse_config_boxed, parse_toml_off_worker,+ describe_config_ownership, migration_source, parse_config_boxed, parse_toml_off_worker,};pub(super) use super::parse_source::parse_source_contents;