Skip to content

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

fix(embed): align secret storage and test-only re-exports

Steven Enamakel818b9d8179bb
diff --git a/crates/openhuman-embed/src/runtime/build.rs b/crates/openhuman-embed/src/runtime/build.rs
index 553ed7d1ca..7f011ed54a 100644
--- a/crates/openhuman-embed/src/runtime/build.rs
+++ b/crates/openhuman-embed/src/runtime/build.rs
@@ -295,6 +295,7 @@ fn store_api_key(config: &Config, key: &ApiKey) -> Result<(), RuntimeError> {
config.secrets.encrypt,
key.expose(),
)
+ .map(|_| ())
.map_err(RuntimeError::Build)
}
diff --git a/crates/openhuman-embed/src/runtime/builder.rs b/crates/openhuman-embed/src/runtime/builder.rs
index 8da190c16f..964f734b49 100644
--- a/crates/openhuman-embed/src/runtime/builder.rs
+++ b/crates/openhuman-embed/src/runtime/builder.rs
@@ -28,7 +28,10 @@ use crate::Session;
// Re-exported for the sibling test module and older call sites that reached
// the default triples through this module.
-pub(crate) use super::build::{apply_provider, effective_host_kind};
+pub(crate) use super::build::apply_provider;
+#[cfg(test)]
+pub(crate) use super::build::effective_host_kind;
+#[cfg(test)]
pub(crate) use super::presets::{default_domains, default_services};
#[cfg(test)]
pub(crate) use super::{RuntimeError, RUNTIME_LIVE};