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: reorder imports and fix formatting across multiple files
Steven Enamakel867d141693ac
diff --git a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rsindex d3778afb63..501a3288db 100644--- a/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/langfuse.rs@@ -27,10 +27,10 @@ mod journal_export;mod span_export;pub(crate) use environment::{environment_for_base, ingestion_url, skip_push};+pub(crate) use journal_export::journal_push_ready;#[cfg(test)]pub(crate) use journal_export::push_observations;pub(crate) use journal_export::root_subagent_observations;-pub(crate) use journal_export::journal_push_ready;#[cfg(test)]pub(crate) use span_export::push_spans;diff --git a/crates/openhuman-core/src/agent/progress_tracing/serialize.rs b/crates/openhuman-core/src/agent/progress_tracing/serialize.rsindex 5e266c5c8c..adecb827d3 100644--- a/crates/openhuman-core/src/agent/progress_tracing/serialize.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/serialize.rs@@ -38,7 +38,10 @@ pub(super) fn capture_model_content(value: &serde_json::Value) -> serde_json::Va*content = serde_json::Value::String(format!("{}…[message content truncated]",truncate_chars(- &content.as_str().map(str::to_owned).unwrap_or_else(|| content.to_string()),+ &content+ .as_str()+ .map(str::to_owned)+ .unwrap_or_else(|| content.to_string()),MAX_MODEL_CONTENT_CHARS / 2)));@@ -68,7 +71,10 @@ pub(super) fn capture_model_content(value: &serde_json::Value) -> serde_json::Valet mut kept = fields.clone();if let Some(content) = kept.get_mut("content") {*content = serde_json::Value::String(truncate_chars(- &content.as_str().map(str::to_owned).unwrap_or_else(|| content.to_string()),+ &content+ .as_str()+ .map(str::to_owned)+ .unwrap_or_else(|| content.to_string()),MAX_MODEL_CONTENT_CHARS / 2,));if serde_json::Value::Object(kept.clone())diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rsindex 6bd0806f5c..399f4ec212 100644--- a/crates/openhuman-core/src/config/schema/mod.rs+++ b/crates/openhuman-core/src/config/schema/mod.rs@@ -123,10 +123,10 @@ pub use tools::{BrowserComputerUseConfig, BrowserConfig, ComposioConfig, CurlConfig, GitbooksConfig,HttpHeader, HttpRequestConfig, IntegrationToggle, IntegrationsConfig, McpAuthConfig,McpClientConfig, McpClientIdentityConfig, McpServerConfig, MultimodalConfig,- MultimodalFileConfig, SearchConfig, SearchEngine, SearchEngineCredentials, SearxngConfig, SEARCH_PROVIDERS,+ MultimodalFileConfig, SearchConfig, SearchEngine, SearchEngineCredentials, SearxngConfig,SecretsConfig, SeltzConfig, WebSearchConfig, COMPOSIO_MODE_BACKEND, COMPOSIO_MODE_DIRECT,SEARCH_ENGINE_BRAVE, SEARCH_ENGINE_DISABLED, SEARCH_ENGINE_EXA, SEARCH_ENGINE_MANAGED,- SEARCH_ENGINE_PARALLEL, SEARCH_ENGINE_QUERIT, SEARCH_ENGINE_TAVILY,+ SEARCH_ENGINE_PARALLEL, SEARCH_ENGINE_QUERIT, SEARCH_ENGINE_TAVILY, SEARCH_PROVIDERS,};pub use update::{UpdateConfig, UpdateRestartStrategy};pub use web_chat_config::WebChatConfig;diff --git a/crates/openhuman-core/src/core/cli.rs b/crates/openhuman-core/src/core/cli.rsindex 413635beb4..3eab8331eb 100644--- a/crates/openhuman-core/src/core/cli.rs+++ b/crates/openhuman-core/src/core/cli.rs@@ -10,9 +10,9 @@ use std::collections::BTreeMap;use crate::core::all;use crate::core::jsonrpc::{default_state, invoke_method};-use crate::rpc::parse_json_params;use crate::core::logging::CliLogDefault;use crate::core::{ControllerSchema, TypeSchema};+use crate::rpc::parse_json_params;/// The ASCII banner displayed when the CLI starts.const CLI_BANNER: &str = r#"diff --git a/crates/openhuman-core/src/core/jsonrpc/classify_tests.rs b/crates/openhuman-core/src/core/jsonrpc/classify_tests.rsindex 365b6bf462..0f8722b023 100644--- a/crates/openhuman-core/src/core/jsonrpc/classify_tests.rs+++ b/crates/openhuman-core/src/core/jsonrpc/classify_tests.rs@@ -1,6 +1,6 @@-use super::{is_session_expired_error, is_unconfirmed_unauthorized_error};#[cfg(feature = "http-server")]use super::{classify_failure, is_wallet_not_configured_error, FailureDisposition};+use super::{is_session_expired_error, is_unconfirmed_unauthorized_error};#[test]fn is_session_expired_error_matches_backend_path_401() {@@ -306,7 +306,10 @@ fn classify_failure_routes_each_boundary_class() {);assert_eq!(classify_failure(- &format!("{}totally.made.up.method", crate::core::dispatch::UNKNOWN_METHOD_PREFIX),+ &format!(+ "{}totally.made.up.method",+ crate::core::dispatch::UNKNOWN_METHOD_PREFIX+ ),false),FailureDisposition::UnknownMethod { probe: false }diff --git a/crates/openhuman-core/src/core/jsonrpc/http/mod.rs b/crates/openhuman-core/src/core/jsonrpc/http/mod.rsindex 95399151ca..418547a165 100644--- a/crates/openhuman-core/src/core/jsonrpc/http/mod.rs+++ b/crates/openhuman-core/src/core/jsonrpc/http/mod.rs@@ -64,7 +64,10 @@ pub fn build_core_http_router(socketio_enabled: bool) -> Router {post(rpc_handler::rpc_handler).route_layer(DefaultBodyLimit::max(MAX_RPC_BODY_BYTES)),).route("/ws/dictation", get(dictation::dictation_ws_handler))- .route("/oauth/mcp/callback", get(oauth_mcp::oauth_mcp_callback_handler))+ .route(+ "/oauth/mcp/callback",+ get(oauth_mcp::oauth_mcp_callback_handler),+ )// Dev-only: hand this core (URL + bearer) to a loopback Vite renderer..route("/dev/connect",diff --git a/crates/openhuman-core/src/core/jsonrpc/testing.rs b/crates/openhuman-core/src/core/jsonrpc/testing.rsindex f68f58d902..0d5b161b3f 100644--- a/crates/openhuman-core/src/core/jsonrpc/testing.rs+++ b/crates/openhuman-core/src/core/jsonrpc/testing.rs@@ -24,7 +24,6 @@ impl EnvVarGuard {_lock: lock,}}-}impl Drop for EnvVarGuard {diff --git a/crates/openhuman-core/src/core/runtime/subscribers_tests.rs b/crates/openhuman-core/src/core/runtime/subscribers_tests.rsindex 13de332df0..23fd5a9a04 100644--- a/crates/openhuman-core/src/core/runtime/subscribers_tests.rs+++ b/crates/openhuman-core/src/core/runtime/subscribers_tests.rs@@ -237,7 +237,6 @@ struct EnvVarGuard {}impl EnvVarGuard {-/// Remove the named vars (capturing their prior values) for the guard's/// lifetime, restoring each on `Drop`.fn remove_many(keys: Vec<&'static str>) -> Self {diff --git a/crates/openhuman-core/src/core/socketio.rs b/crates/openhuman-core/src/core/socketio.rsindex c60905dc64..5deede350a 100644--- a/crates/openhuman-core/src/core/socketio.rs+++ b/crates/openhuman-core/src/core/socketio.rs@@ -120,7 +120,9 @@ struct HandshakeAuth {pub(crate) fn origin_is_allowed(origin: Option<&str>) -> bool {origin_is_allowed_with_extra(origin,- std::env::var(crate::rpc::ALLOWED_ORIGINS_ENV).ok().as_deref(),+ std::env::var(crate::rpc::ALLOWED_ORIGINS_ENV)+ .ok()+ .as_deref(),)}diff --git a/crates/openhuman-embed/tests/common/mod.rs b/crates/openhuman-embed/tests/common/mod.rsindex 00cde7e03c..b3fd3d5b07 100644--- a/crates/openhuman-embed/tests/common/mod.rs+++ b/crates/openhuman-embed/tests/common/mod.rs@@ -125,9 +125,12 @@ pub fn tool_results(request: &wiremock::Request) -> String {Some("tool") => Some(content),// The harness may prepend continuation guidance and// the active user request before the tool-result block.- Some("user") if content.contains(PROMPT_TOOL_RESULTS_PREFIX) => {- Some(content.split_once(PROMPT_TOOL_RESULTS_PREFIX)?.1.to_string())- }+ Some("user") if content.contains(PROMPT_TOOL_RESULTS_PREFIX) => Some(+ content+ .split_once(PROMPT_TOOL_RESULTS_PREFIX)?+ .1+ .to_string(),+ ),_ => None,}})