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
chore: reformat multi-line expressions and remove stray blank lines\n\nReformat several multi-line function calls and array literals to fit within the standard line length, and remove extraneous blank lines in test modules. These changes are purely cosmetic with no behavioral impact.\n\nAuto-committed-on: dragonfly\n
Steven Enamakelb6b5e2801dc5
diff --git a/src/core/runtime/builder.rs b/src/core/runtime/builder.rsindex c371d2fdb8..b75133176b 100644--- a/src/core/runtime/builder.rs+++ b/src/core/runtime/builder.rs@@ -607,15 +607,14 @@ impl CoreBuilder {/// The init sequence itself is owned by [`CoreContext::init`] (Phase 2,/// Stage A).pub async fn build(self) -> anyhow::Result<CoreRuntime> {- let (ctx, has_operator_token, config) =- CoreContext::init_with_config(- self.host_kind,- &self.token,- self.domains,- self.tool_groups.clone(),- self.config,- )- .await?;+ let (ctx, has_operator_token, config) = CoreContext::init_with_config(+ self.host_kind,+ &self.token,+ self.domains,+ self.tool_groups.clone(),+ self.config,+ )+ .await?;Ok(CoreRuntime {ctx,diff --git a/src/openhuman/agent/harness/subagent_runner/tool_prep.rs b/src/openhuman/agent/harness/subagent_runner/tool_prep.rsindex b23ad60957..6ed7f175d3 100644--- a/src/openhuman/agent/harness/subagent_runner/tool_prep.rs+++ b/src/openhuman/agent/harness/subagent_runner/tool_prep.rs@@ -130,9 +130,7 @@ pub(crate) fn build_text_mode_tool_instructions() -> String {/// this function and the corresponding generator in/// `orchestrator_tools.rs` together.pub(super) fn is_subagent_spawn_tool(name: &str) -> bool {- if name == "spawn_subagent"- || name.starts_with("delegate_")- || name == "agent_prepare_context"+ if name == "spawn_subagent" || name.starts_with("delegate_") || name == "agent_prepare_context"{return true;}diff --git a/src/openhuman/agent/registry/agents/loader.rs b/src/openhuman/agent/registry/agents/loader.rsindex bfd136012b..c57bc35eff 100644--- a/src/openhuman/agent/registry/agents/loader.rs+++ b/src/openhuman/agent/registry/agents/loader.rs@@ -1303,7 +1303,6 @@ mod tests {);}-#[test]fn specialist_agents_are_registered_with_narrow_tools() {let scheduler = find("scheduler_agent");@@ -1515,11 +1514,7 @@ mod tests {// no more, no less.match &def.tools {ToolScope::Named(tools) => {- let expected = [- "memory_recall",- "memory_hybrid_search",- "memory_flavour",- ];+ let expected = ["memory_recall", "memory_hybrid_search", "memory_flavour"];for required in expected {assert!(tools.iter().any(|t| t == required),diff --git a/src/openhuman/cron/seed.rs b/src/openhuman/cron/seed.rsindex 75863298d6..ee8ba5f795 100644--- a/src/openhuman/cron/seed.rs+++ b/src/openhuman/cron/seed.rs@@ -161,7 +161,6 @@ fn seed_morning_briefing(config: &Config) -> Result<()> {Ok(())}-#[cfg(test)]mod tests {use super::*;@@ -198,7 +197,6 @@ mod tests {assert!(d.best_effort);}-#[test]fn seeds_morning_briefing_disabled_and_idempotent() {let tmp = TempDir::new().unwrap();@@ -247,9 +245,6 @@ mod tests {);}---#[test]fn seed_prunes_legacy_welcome_job() {// Simulate the state an earlier build would have left behind:diff --git a/src/openhuman/tools/ops_tests.rs b/src/openhuman/tools/ops_tests.rsindex d71ea3ed39..5d2cf81f4b 100644--- a/src/openhuman/tools/ops_tests.rs+++ b/src/openhuman/tools/ops_tests.rs@@ -1847,10 +1847,7 @@ fn knowledge_default_off() -> Vec<&'static str> {}fn knowledge_always_on() -> Vec<&'static str> {- let mut tools = vec![- "learning_list_facets",- "learning_cache_stats",- ];+ let mut tools = vec!["learning_list_facets", "learning_cache_stats"];// These tools exist only when the skills feature is on (`WorkflowListTool`// / `WorkflowRecentRunsTool` — both `#[cfg(feature = "skills")]`).if cfg!(feature = "skills") {@@ -1949,10 +1946,7 @@ fn knowledge_default_off_tools_retained_when_opted_in() {let mut tools = expansion_tools_for(&tmp);filter_tools_by_user_preference(&mut tools,- &[- "workflow_manage".to_string(),- "learning_manage".to_string(),- ],+ &["workflow_manage".to_string(), "learning_manage".to_string()],);let names = tool_names(&tools);let off_tools = knowledge_default_off();@@ -2541,10 +2535,7 @@ const MEMORY_TOOL_CAPABILITIES: &[(/// Memory-family tools that are deliberately NOT driver-backed. Each entry is/// an argument, not an omission — see `tool_capability`.-const MEMORY_TOOLS_NOT_DRIVER_BACKED: &[&str] = &[- "update_memory_md",- "memory_store_kinds",-];+const MEMORY_TOOLS_NOT_DRIVER_BACKED: &[&str] = &["update_memory_md", "memory_store_kinds"];/// Every `DomainGroup::Memory` tool must be a deliberate decision in/// [`tool_capability`]: either it maps to a capability, or it is listed asdiff --git a/src/openhuman/tools/toolpacks/mod.rs b/src/openhuman/tools/toolpacks/mod.rsindex b3684113e8..859fb36ec2 100644--- a/src/openhuman/tools/toolpacks/mod.rs+++ b/src/openhuman/tools/toolpacks/mod.rs@@ -27,10 +27,10 @@ pub mod registry;pub mod tools;pub mod types;+pub use groups::{GroupMode, ToolGroups, GROUP_COUNT};pub use ops::{append_pack_tools, bind_pack_registry, strip_packed_from_visible};pub use registry::{all_packed_tool_names, pack, pack_for_tool, PACKS};pub use tools::{PackRegistryHandle, LOAD_SKILL, USE_SKILL};-pub use groups::{GroupMode, ToolGroups, GROUP_COUNT};pub use types::ToolPack;#[cfg(test)]diff --git a/src/openhuman/tools/toolpacks/tests.rs b/src/openhuman/tools/toolpacks/tests.rsindex e37974f3a5..767b6476bc 100644--- a/src/openhuman/tools/toolpacks/tests.rs+++ b/src/openhuman/tools/toolpacks/tests.rs@@ -361,10 +361,7 @@ fn every_pack_declares_the_tools_it_is_named_for() {"read_workflow_resource",],),- (- "documents",- &["generate_document", "generate_presentation"],- ),+ ("documents", &["generate_document", "generate_presentation"]),("audio",&[@@ -444,7 +441,10 @@ fn a_packs_owner_still_loses_every_other_pack() {.collect();strip_packed_from_visible(&mut visible, "settings_agent");assert!(visible.contains("doctor_health"));- assert!(!visible.contains("wallet_status"), "non-owned pack survived");+ assert!(+ !visible.contains("wallet_status"),+ "non-owned pack survived"+ );assert!(visible.contains(LOAD_SKILL) && visible.contains(USE_SKILL));}