Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style: apply rustfmt after schema migration

Steven Enamakel07136cc77db6
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs b/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs
index b93c9a2863..b4550195b0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs
@@ -514,7 +514,7 @@ impl SecurityGate for OpenHumanSecurityGate {
));
}
Ok(PolicyGateDecision::Prompt) => {
- return Ok(self.park_once(call, channel_approved).await)
+ return Ok(self.park_once(call, channel_approved).await);
}
Ok(PolicyGateDecision::Allow) => {
return Ok(self.settled(channel_approved));
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs
index 253a2f95b6..57f3c5a432 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_tests.rs
@@ -669,7 +669,8 @@ async fn tool_output_leaves_an_oversized_propose_workflow_byte_for_byte_intact()
.await
.unwrap();
assert_eq!(
- result_text(&result), payload,
+ result_text(&result),
+ payload,
"an oversized propose_workflow result must not be truncated by the shared byte-budget backstop"
);
let reparsed: serde_json::Value = serde_json::from_str(&result_text(&result))
@@ -696,7 +697,8 @@ async fn tool_output_truncates_the_same_oversized_payload_for_a_non_exempt_tool(
.await
.unwrap();
assert_ne!(
- result_text(&result), payload,
+ result_text(&result),
+ payload,
"a non-exempt tool's oversized payload should be truncated by the shared byte-budget backstop"
);
assert!(
diff --git a/crates/openhuman-core/src/agent/tinyagents/todos.rs b/crates/openhuman-core/src/agent/tinyagents/todos.rs
index 5c0ffd3ee4..c665001d90 100644
--- a/crates/openhuman-core/src/agent/tinyagents/todos.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/todos.rs
@@ -38,7 +38,7 @@ async fn read_legacy_boards(workspace_dir: &Path) -> Result<Vec<TaskBoard>, Stri
return Err(format!(
"read legacy task boards dir {}: {error}",
dir.display()
- ))
+ ));
}
};
let mut boards = Vec::new();
diff --git a/crates/openhuman-core/src/mcp/server/tools/dispatch.rs b/crates/openhuman-core/src/mcp/server/tools/dispatch.rs
index faeb16bc9b..73bf6ee784 100644
--- a/crates/openhuman-core/src/mcp/server/tools/dispatch.rs
+++ b/crates/openhuman-core/src/mcp/server/tools/dispatch.rs
@@ -1,8 +1,8 @@
-use serde_json::{Map, Value, json};
+use serde_json::{json, Map, Value};
use tinyinference_llm::tool::ToolSchema;
-use crate::agent::Agent;
use crate::agent::harness::AgentDefinitionRegistry;
+use crate::agent::Agent;
use crate::config::rpc as config_rpc;
use crate::core::all;
use crate::security::{SecurityPolicy, ToolOperation};