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: apply rustfmt formatting across crates
Steven Enamakel5a27bb42738d
diff --git a/crates/openhuman-core/src/core/slots_tests.rs b/crates/openhuman-core/src/core/slots_tests.rsindex 1c9ad395ad..d2fcfd58c5 100644--- a/crates/openhuman-core/src/core/slots_tests.rs+++ b/crates/openhuman-core/src/core/slots_tests.rs@@ -87,7 +87,11 @@ fn a_context_entry_shadows_a_process_entry_in_first() {let ctx = CoreContext::for_test(DomainSet::full(), None);slot.register_in(ctx.extensions(), "context", 2);- assert_eq!(slot.first(), Some(1), "outside the context only the process entry exists");+ assert_eq!(+ slot.first(),+ Some(1),+ "outside the context only the process entry exists"+ );let inside = CoreContext::sync_scope(Arc::clone(&ctx), || {(slot.first(), slot.entries_context_first())});diff --git a/crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rs b/crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rsindex ca2f88763e..b2e9036f49 100644--- a/crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rs+++ b/crates/openhuman-core/src/inference/provider/ops/models/catalog_listing.rs@@ -55,7 +55,9 @@ fn catalog_request(.get(slug).filter(|pem| !pem.is_empty()){- Some(pem) => crate::util::tls::client_with_ca_bundle_with_timeouts(pem, service_key, 30, 10)?,+ Some(pem) => {+ crate::util::tls::client_with_ca_bundle_with_timeouts(pem, service_key, 30, 10)?+ }None => crate::config::build_runtime_proxy_client_with_timeouts(service_key, 30, 10),};Ok(crate::inference::registry::CatalogRequest {diff --git a/crates/openhuman-core/src/inference/registry_tests.rs b/crates/openhuman-core/src/inference/registry_tests.rsindex 5037bbf284..8c4c6cd81d 100644--- a/crates/openhuman-core/src/inference/registry_tests.rs+++ b/crates/openhuman-core/src/inference/registry_tests.rs@@ -227,11 +227,9 @@ async fn a_registered_catalog_receives_the_entrys_provider_key() {}),..Config::default()};- let listing = crate::inference::provider::ops::list_configured_models_from_config(- "p_ephemeral",- &config,- )- .await;+ let listing =+ crate::inference::provider::ops::list_configured_models_from_config("p_ephemeral", &config)+ .await;unregister_catalog(PROVIDER_OPENHUMAN);listing.unwrap();assert_eq!(seen.lock().unwrap().as_str(), "entry-key");diff --git a/crates/openhuman-core/src/modules/connectors_tests.rs b/crates/openhuman-core/src/modules/connectors_tests.rsindex 258e0c27f4..51ad4e1eee 100644--- a/crates/openhuman-core/src/modules/connectors_tests.rs+++ b/crates/openhuman-core/src/modules/connectors_tests.rs@@ -93,7 +93,10 @@ struct DirectBaseScrub(Vec<(&'static str, Option<std::ffi::OsString>)>);impl DirectBaseScrub {fn new() -> Self {- let vars = ["OPENHUMAN_COMPOSIO_DIRECT_BASE_V2", "OPENHUMAN_COMPOSIO_DIRECT_BASE_V3"];+ let vars = [+ "OPENHUMAN_COMPOSIO_DIRECT_BASE_V2",+ "OPENHUMAN_COMPOSIO_DIRECT_BASE_V3",+ ];Self(vars.into_iter().map(|name| {diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rsindex e150d3ca1a..170b042611 100644--- a/crates/openhuman-embed/src/host_internals.rs+++ b/crates/openhuman-embed/src/host_internals.rs@@ -363,9 +363,9 @@ pub mod inference_registry {pub use openhuman_core::inference::registry::{register_catalog, register_catalog_in, register_chat_model, register_chat_model_in,register_embedding, register_embedding_in, unregister_catalog, unregister_chat_model,- unregister_embedding, BoxFuture, CatalogEntry, CatalogLimits, CatalogListing, CatalogRequest,- ChatModelEntry, ChatModelFactory, ChatModelRequest, EmbeddingFactory, EmbeddingRequest,- ReadinessProbe,+ unregister_embedding, BoxFuture, CatalogEntry, CatalogLimits, CatalogListing,+ CatalogRequest, ChatModelEntry, ChatModelFactory, ChatModelRequest, EmbeddingFactory,+ EmbeddingRequest, ReadinessProbe,};}diff --git a/crates/openhuman-rpc/src/host.rs b/crates/openhuman-rpc/src/host.rsindex 70b71145d0..84c031221a 100644--- a/crates/openhuman-rpc/src/host.rs+++ b/crates/openhuman-rpc/src/host.rs@@ -112,8 +112,7 @@ pub fn cli(args: &[String]) -> anyhow::Result<()> {// A one-shot command reads the same backend the server would: the// resolved storage URL, opened on the core's storage runtime so the// backend outlives this call.- let provider =- crate::core_host::storage::block_on_anyhow(session_store_for_boot())?;+ let provider = crate::core_host::storage::block_on_anyhow(session_store_for_boot())?;log::debug!("[rpc:host] cli: storage-backed session store installed");builder = builder.session_store(provider);}diff --git a/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs b/crates/openhuman-tinyhumans/src/inference/managed_catalog.rsindex 8a13eef47b..5b9478951a 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs@@ -32,7 +32,9 @@ const MODELS_PATH: &str = "/openai/v1/models";/// The registry entry for the managed catalog.pub(super) fn entry() -> CatalogEntry {let list: CatalogListing = Arc::new(- |config: Config, request: CatalogRequest| -> BoxFuture<Result<Outcome<serde_json::Value>, String>> {+ |config: Config,+ request: CatalogRequest|+ -> BoxFuture<Result<Outcome<serde_json::Value>, String>> {Box::pin(async move { list_models(&config, request).await })},);@@ -121,9 +123,7 @@ pub(super) async fn list_models(let (token, session_token) = match listing_auth(check, &request.provider_key) {ListingAuth::Session(token) => (token.clone(), true),ListingAuth::ProviderKey(key) => {- log::debug!(- "[tinyhumans][inference] no live session; using the provider-scoped key"- );+ log::debug!("[tinyhumans][inference] no live session; using the provider-scoped key");(key, false)}ListingAuth::Empty(reason) => {diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rsindex de82318da0..45e883f821 100644--- a/tests/storage_desktop_upgrade_e2e.rs+++ b/tests/storage_desktop_upgrade_e2e.rs@@ -430,7 +430,11 @@ async fn a_desktop_upgrade_is_lossless_and_leaves_the_legacy_files_untouched(cas// TinyAgents' run ledger imports `sessions.db` (and appends to it) with// checked batches, which a driver without `ValidatedBatch` refuses.let local = case.backend().for_scope(&Scope::local()).unwrap();- if !local.documents().capabilities().contains(Capability::ValidatedBatch) {+ if !local+ .documents()+ .capabilities()+ .contains(Capability::ValidatedBatch)+ {// Written to the stderr handle, not with `eprintln!`, which the test// harness captures for a passing test: the skip must show in the log.use std::io::Write;