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
style(tinyflows): reformat module exports and test assertions
Steven Enamakel926f11c172ba
diff --git a/crates/openhuman-core/src/flows/builder_host.rs b/crates/openhuman-core/src/flows/builder_host.rsindex 83bcd473ca..c2621c3712 100644--- a/crates/openhuman-core/src/flows/builder_host.rs+++ b/crates/openhuman-core/src/flows/builder_host.rs@@ -342,12 +342,8 @@ pub(crate) async fn register(context,runtime: tokio::runtime::Handle::try_current().ok(),};- let registration = module::serve_pair(- path.clone(),- host.clone(),- CopilotCapsHost(host),- )- .await?;+ let registration =+ module::serve_pair(path.clone(), host.clone(), CopilotCapsHost(host)).await?;Ok(HostRegistration {_registration: registration,address: CopilotHost {diff --git a/crates/openhuman-core/src/modules/tinyflows.rs b/crates/openhuman-core/src/modules/tinyflows.rsindex fc91f42b1e..cc9274b490 100644--- a/crates/openhuman-core/src/modules/tinyflows.rs+++ b/crates/openhuman-core/src/modules/tinyflows.rs@@ -266,12 +266,12 @@ mod imp {#[path = "tinyflows_fixture.rs"]mod fixture;+#[cfg(all(test, feature = "modules"))]+pub(crate) use imp::serve_pair_after_first;#[cfg(feature = "modules")]pub(crate) use imp::{copilot_invoke_proxy, copilot_proxy, proxy, run_proxy, serve, serve_pair, unserve,};-#[cfg(all(test, feature = "modules"))]-pub(crate) use imp::serve_pair_after_first;#[cfg(not(feature = "modules"))]mod imp {@@ -322,7 +322,9 @@ mod imp {}#[cfg(not(feature = "modules"))]-pub(crate) use imp::{copilot_invoke_proxy, copilot_proxy, proxy, run_proxy, serve, serve_pair, unserve};+pub(crate) use imp::{+ copilot_invoke_proxy, copilot_proxy, proxy, run_proxy, serve, serve_pair, unserve,+};/// Whether the module can serve in this build and configuration (the switch/// is on and the loader exists). Does not load anything.diff --git a/crates/openhuman-core/src/modules/tinyflows_tests.rs b/crates/openhuman-core/src/modules/tinyflows_tests.rsindex 76635f92bd..03f7b97772 100644--- a/crates/openhuman-core/src/modules/tinyflows_tests.rs+++ b/crates/openhuman-core/src/modules/tinyflows_tests.rs@@ -152,7 +152,10 @@ async fn the_copilot_object_answers_tool_catalog_over_its_bus_contract() {async fn cancelling_partial_callback_registration_unserves_and_releases_its_context() {use std::sync::Arc;- let path = format!("/ai/tinyhumans/openhuman/TestRegistration/{}", uuid::Uuid::new_v4());+ let path = format!(+ "/ai/tinyhumans/openhuman/TestRegistration/{}",+ uuid::Uuid::new_v4()+ );let dropped = Arc::new(tokio::sync::Notify::new());let context = Arc::new(());let weak_context = Arc::downgrade(&context);@@ -189,7 +192,10 @@ async fn cancelling_partial_callback_registration_unserves_and_releases_its_cont"ai.tinyhumans.openhuman.TestRegistration",).expect("probe proxy");- assert!(proxy.call::<_, (), serde_json::Value>("Ping", ()).await.is_ok());+ assert!(proxy+ .call::<_, (), serde_json::Value>("Ping", ())+ .await+ .is_ok());registration.abort();let cleanup = dropped.notified();@@ -198,6 +204,12 @@ async fn cancelling_partial_callback_registration_unserves_and_releases_its_cont.await.expect("detached registration settles and unregisters its interface");drop(context);- assert!(weak_context.upgrade().is_none(), "callback context is released");- assert!(proxy.call::<_, (), serde_json::Value>("Ping", ()).await.is_err());+ assert!(+ weak_context.upgrade().is_none(),+ "callback context is released"+ );+ assert!(proxy+ .call::<_, (), serde_json::Value>("Ping", ())+ .await+ .is_err());}