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(modules): rustfmt components changes
Steven Enamakel68ce589a6ee1
diff --git a/crates/openhuman-core/src/config/schema/load/branches.rs b/crates/openhuman-core/src/config/schema/load/branches.rsindex 8ebae60106..028d7136e3 100644--- a/crates/openhuman-core/src/config/schema/load/branches.rs+++ b/crates/openhuman-core/src/config/schema/load/branches.rs@@ -10,8 +10,7 @@ use super::env::EnvLookup;use super::impl_load::migration_source;use super::migrate::{migrate_cloud_provider_slugs, migrate_components, migrate_legacy_inference_url,- migrate_legacy_memory_backend,- migrate_legacy_memory_sources, migrate_search_settings,+ migrate_legacy_memory_backend, migrate_legacy_memory_sources, migrate_search_settings,};use super::secrets::decrypt_config_secrets;use anyhow::Result;diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rsindex e3800ecf13..a2578dd29c 100644--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs@@ -7,8 +7,7 @@ use super::dirs::{use super::env::{EnvLookup, ProcessEnv, ProcessEnvWithoutWorkspace};use super::migrate::{migrate_cloud_provider_slugs, migrate_components, migrate_legacy_inference_url,- migrate_legacy_memory_backend,- migrate_search_settings,+ migrate_legacy_memory_backend, migrate_search_settings,};use super::secrets::{decrypt_config_secrets, decrypt_config_secrets_strict, encrypt_config_secrets,diff --git a/crates/openhuman-core/src/modules/boot.rs b/crates/openhuman-core/src/modules/boot.rsindex aedd6c07ed..d380af269d 100644--- a/crates/openhuman-core/src/modules/boot.rs+++ b/crates/openhuman-core/src/modules/boot.rs@@ -40,7 +40,9 @@ pub async fn load_declared_modules(config: &Config) {// Search paths first: an artifact an operator has placed deliberately should// win over a download, and `ensure_loaded` below then finds it already// serving rather than fetching a second copy.- for outcome in super::search_path::load_enabled(runtime.host(), &ops::disabled_lib_stems(config)) {+ for outcome in+ super::search_path::load_enabled(runtime.host(), &ops::disabled_lib_stems(config))+ {match outcome {Ok(info) => log::info!("[modules] loaded '{}' {} from the module search path",diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rsindex 4cdafdfdf2..13034272e8 100644--- a/crates/openhuman-core/src/modules/ops.rs+++ b/crates/openhuman-core/src/modules/ops.rs@@ -616,7 +616,8 @@ fn status_of(config: &Config, record: &ModuleRecord) -> ModuleStatus {},};let plan = source::plan(config, record.id);- let source = (!matches!(state, ModuleState::Unsupported | ModuleState::Disabled)).then_some(plan.served);+ let source =+ (!matches!(state, ModuleState::Unsupported | ModuleState::Disabled)).then_some(plan.served);let detail = detail.or_else(|| plan.fallback.map(str::to_string));ModuleStatus {id: record.id.to_string(),diff --git a/crates/openhuman-core/src/modules/registry.rs b/crates/openhuman-core/src/modules/registry.rsindex 143ea3951b..b149a37e9a 100644--- a/crates/openhuman-core/src/modules/registry.rs+++ b/crates/openhuman-core/src/modules/registry.rs@@ -52,9 +52,9 @@ use records_computer::TINYCOMPUTER;use records_docs_wallet::TINYDOCS;#[cfg(feature = "web3")]use records_docs_wallet::TINYWALLET;-use records_extra::TINYCHANNELS;#[cfg(feature = "modules")]use records_extra::TINYBOX;+use records_extra::TINYCHANNELS;#[cfg(feature = "hosting")]use records_extra::TINYHOSTS;use records_mcp_connectors::{TINYCONNECTORS, TINYMCP};diff --git a/crates/openhuman-core/src/modules/registry_contract_tests.rs b/crates/openhuman-core/src/modules/registry_contract_tests.rsindex e5ce56073e..031b28b18e 100644--- a/crates/openhuman-core/src/modules/registry_contract_tests.rs+++ b/crates/openhuman-core/src/modules/registry_contract_tests.rs@@ -135,7 +135,8 @@ fn every_record_maps_to_a_real_component() {}for (id, _) in COMPONENT_OF {assert!(- ALL.iter().any(|r| r.id == *id) || !cfg!(feature = "modules")+ ALL.iter().any(|r| r.id == *id)+ || !cfg!(feature = "modules")|| matches!(*id, "tinydocs" | "tinywallet" | "tinyvoice" | "tinyhosts"),"mapping for unknown module '{id}'");diff --git a/crates/openhuman-core/src/platform/about_app/ops.rs b/crates/openhuman-core/src/platform/about_app/ops.rsindex 23a0c87d97..0f4ece111c 100644--- a/crates/openhuman-core/src/platform/about_app/ops.rs+++ b/crates/openhuman-core/src/platform/about_app/ops.rs@@ -3,9 +3,9 @@use crate::core::Outcome;use super::types::{Capability, CapabilityCategory, CapabilityStatus};+use super::{all_capabilities, capabilities_by_category, lookup, search};use crate::core::runtime::context::CoreContext;use crate::core::runtime::ComponentSet;-use super::{all_capabilities, capabilities_by_category, lookup, search};/// The `[components]` name backing a capability domain, if one does.pub fn component_for_domain(domain: &str) -> Option<&'static str> {