Skip to content

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

feat(config): expose default_root_dir_name for testing

Steven Enamakel3d63e9aa1160
diff --git a/crates/openhuman-core/src/config/schema/load/dirs.rs b/crates/openhuman-core/src/config/schema/load/dirs.rs
index 70352b8ef7..9a91f000cc 100644
--- a/crates/openhuman-core/src/config/schema/load/dirs.rs
+++ b/crates/openhuman-core/src/config/schema/load/dirs.rs
@@ -48,6 +48,11 @@ fn default_root_dir_name() -> &'static str {
}
}
+#[cfg(test)]
+pub(crate) fn default_root_dir_name_pub() -> &'static str {
+ default_root_dir_name()
+}
+
/// Returns the root openhuman directory (`~/.openhuman`), independent of any
/// per-user scoping. Used to locate `active_user.toml` and the shared
/// `users/` tree.