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
feat(embed): expose read-only BuilderSummary view
Steven Enamakeld4b255f13918
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rsindex 6e3d31893d..ebafc805c3 100644--- a/crates/openhuman-embed/src/lib.rs+++ b/crates/openhuman-embed/src/lib.rs@@ -135,6 +135,9 @@ pub use harness::{#[cfg(feature = "mcp")]pub use harness::{HttpHeader, McpAuthConfig, McpServer};pub use runtime::{run_from_args, ApiKey, ConfigSource, Runtime, RuntimeBuilder, RuntimeError};+/// Read-only view of a [`RuntimeBuilder`], for the layered crates' tests.+#[doc(hidden)]+pub use runtime::BuilderSummary;/// The types the [`RuntimeBuilder`] seam options take: controller/// extensions, the `tool_search` ranker, embedder hooks, the CLI serverdiff --git a/crates/openhuman-embed/src/runtime/mod.rs b/crates/openhuman-embed/src/runtime/mod.rsindex 8e467879cc..b556a736f7 100644--- a/crates/openhuman-embed/src/runtime/mod.rs+++ b/crates/openhuman-embed/src/runtime/mod.rs@@ -73,10 +73,13 @@ pub(crate) mod builder;mod presets;mod run;mod seams;+mod summary;pub use api_key::ApiKey;pub use builder::{ConfigSource, RuntimeBuilder};pub use run::run_from_args;+#[doc(hidden)]+pub use summary::BuilderSummary;use std::collections::HashMap;use std::path::Path;diff --git a/crates/openhuman-embed/src/runtime/summary_tests.rs b/crates/openhuman-embed/src/runtime/summary_tests.rsindex 8607f2fd3e..d6e5b39414 100644--- a/crates/openhuman-embed/src/runtime/summary_tests.rs+++ b/crates/openhuman-embed/src/runtime/summary_tests.rs@@ -5,7 +5,7 @@ fn summary_reflects_presets_and_knobs() {let summary = RuntimeBuilder::desktop().listen("127.0.0.1", 7790).action_dir("/srv/work")- .token(TokenSource::Fixed("bearer".into()))+ .token(TokenSource::Fixed(std::sync::Arc::new("bearer".to_string()))).summary();assert_eq!(summary.host_kind, HostKind::TauriShell);assert!(matches!(summary.workspace, Workspace::Inherit));