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
revert: drop unrelated cargo fmt churn from pre-push hook
Steven Enamakel515257540817
diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rsindex 0c554079ae..35cb99c9a9 100644--- a/crates/openhuman-core/src/config/schema/mod.rs+++ b/crates/openhuman-core/src/config/schema/mod.rs@@ -135,8 +135,8 @@ mod voice_server;pub use voice_server::{SttEngine, VoiceActivationMode, VoiceServerConfig};pub mod voice_providers;pub use voice_providers::{- generate_voice_provider_id, is_voice_slug_reserved, BuiltinVoiceProvider, VoiceCapability,- VoiceProviderCreds, BUILTIN_VOICE_PROVIDERS,+ generate_voice_provider_id, is_voice_slug_reserved, BuiltinVoiceProvider,+ VoiceCapability, VoiceProviderCreds, BUILTIN_VOICE_PROVIDERS,};mod types;pub use types::*;diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rsindex 5baa4d359a..11deaf8b5a 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs@@ -415,7 +415,10 @@ pub(crate) async fn preflight_composio_args(// (1) Static rules — the same validation the Composio dispatch runs, hoisted// ahead of it. Only the `Err` matters here; the normalized arguments it// returns are recomputed (and used) at dispatch.- if let Err(e) = tinyconnectors::execute::prepare_execute_arguments(slug, Some(args.clone())) {+ if let Err(e) = tinyconnectors::execute::prepare_execute_arguments(+ slug,+ Some(args.clone()),+ ) {tracing::warn!(target: "flows", %slug, error = %e, "[flows] preflight: static arg rule rejected the call — failing before dispatch");return Err(EngineError::Capability(format!("tool_call `{slug}`: {e}")));}diff --git a/crates/openhuman-core/src/integrations/composio/tools/execute.rs b/crates/openhuman-core/src/integrations/composio/tools/execute.rsindex d09a558fdf..f40d27aec4 100644--- a/crates/openhuman-core/src/integrations/composio/tools/execute.rs+++ b/crates/openhuman-core/src/integrations/composio/tools/execute.rs@@ -236,8 +236,9 @@ impl ComposioExecuteTool {iana = %iana,"[composio][dispatcher] applying calendar query defaults pre-dispatch");- let arguments =- tinyconnectors::execute::apply_calendar_query_defaults(&tool, arguments, &iana);+ let arguments = tinyconnectors::execute::apply_calendar_query_defaults(+ &tool, arguments, &iana,+ );// Task-recency window (morning briefing): when the calling agent// installed a window, inject best-effort server-side narrowing fordiff --git a/crates/openhuman-core/src/integrations/composio/trigger_history.rs b/crates/openhuman-core/src/integrations/composio/trigger_history.rsindex 4381208760..197192d2dd 100644--- a/crates/openhuman-core/src/integrations/composio/trigger_history.rs+++ b/crates/openhuman-core/src/integrations/composio/trigger_history.rs@@ -19,7 +19,8 @@ static GLOBAL_TRIGGER_HISTORY: OnceLock<Arc<TriggerArchive>> = OnceLock::new();pub fn init_global(workspace_dir: PathBuf) -> Result<(), String> {let state_dir = workspace_dir.join("state");let archive = Arc::new(- TriggerArchive::open(&state_dir).map_err(|error| format!("[composio][history] {error}"))?,+ TriggerArchive::open(&state_dir)+ .map_err(|error| format!("[composio][history] {error}"))?,);let installed = GLOBAL_TRIGGER_HISTORY.get_or_init(|| archive.clone());if installed.archive_dir() == archive.archive_dir() {diff --git a/crates/openhuman-core/src/memory/auto_recall/mod.rs b/crates/openhuman-core/src/memory/auto_recall/mod.rsindex f8c7cfc1d9..f5c5f368ba 100644--- a/crates/openhuman-core/src/memory/auto_recall/mod.rs+++ b/crates/openhuman-core/src/memory/auto_recall/mod.rs@@ -92,9 +92,9 @@ use crate::agent::tinyagents::host::agent_memory::DEFAULT_AGENT_MEMORY_NAMESPACEuse crate::memory::api::provider::retrieval::{FastRetrieveQuery, RetrievalHit};use crate::memory::api::types::{MemoryTaint, NamespaceMemoryHit};use crate::memory::guard::MemoryGuard;+use tinymemory_guard::GuardPolicy;use std::sync::Arc;use std::time::{Duration, Instant};-use tinymemory_guard::GuardPolicy;/// Most hits a block may carry. Three is enough to answer a question about the/// user and small enough that a wrong guess costs a few lines, not a screen.diff --git a/crates/openhuman-core/src/memory/ops/fallback.rs b/crates/openhuman-core/src/memory/ops/fallback.rsindex 9bf36fe540..d02477c3d8 100644--- a/crates/openhuman-core/src/memory/ops/fallback.rs+++ b/crates/openhuman-core/src/memory/ops/fallback.rs@@ -65,9 +65,7 @@ pub(crate) fn classify_for_engine(external: bool, message: String) -> String {pub(crate) fn classify_rpc_error(message: String) -> String {let external = crate::core::runtime::context::CoreContext::current().and_then(|ctx| ctx.memory().ok())- .is_none_or(|guard| {- guard.policy().class() == crate::core::subsystem::DriverClass::External- });+ .is_none_or(|guard| guard.policy().class() == crate::core::subsystem::DriverClass::External);classify_for_engine(external, message)}diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex 76bc25f6c9..7b891719ba 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -466,10 +466,7 @@ pub fn all_tools_with_runtime(Box::new(ReadDiffTool::new(action_dir.to_path_buf())),Box::new(RunLinterTool::new(action_dir.to_path_buf())),Box::new(RunTestsTool::new(action_dir.to_path_buf())),- Box::new(PushoverTool::new(- security.clone(),- action_dir.to_path_buf(),- )),+ Box::new(PushoverTool::new(security.clone(), action_dir.to_path_buf())),// Audio-toolkit podcast tools — gated with the `voice` feature (they// live in the `audio_toolkit` domain, which is compiled out when voice// is disabled).diff --git a/crates/openhuman-core/src/voice/server/pipeline.rs b/crates/openhuman-core/src/voice/server/pipeline.rsindex c74157dd37..c435d12cd7 100644--- a/crates/openhuman-core/src/voice/server/pipeline.rs+++ b/crates/openhuman-core/src/voice/server/pipeline.rs@@ -13,9 +13,9 @@ use tokio::sync::Mutex;use crate::config::Config;use crate::modules::voice::{is_hallucinated, HallucinationMode};use crate::voice::audio_capture::RecordingHandle;+use tinycomputer_accessibility::paste as text_input;#[cfg(target_os = "macos")]use tinycomputer_accessibility as accessibility;-use tinycomputer_accessibility::paste as text_input;use super::types::{ServerState, VoiceServerConfig, MAX_INITIAL_PROMPT_CHARS, MAX_RECENT_TRANSCRIPTS,diff --git a/crates/openhuman-core/src/web_chat/web_errors/classify.rs b/crates/openhuman-core/src/web_chat/web_errors/classify.rsindex c1a9d0b934..071090d130 100644--- a/crates/openhuman-core/src/web_chat/web_errors/classify.rs+++ b/crates/openhuman-core/src/web_chat/web_errors/classify.rs@@ -9,12 +9,12 @@ use super::budget::{};use super::response_predicates::malformed_history_user_message;use super::retry::{is_non_retryable_rate_limit_text, retry_after_hint};-use super::timeout::is_turn_timeout_error;use tinyinference_llm::failure::{extract_provider_name, is_connection_dropped_text, is_empty_provider_response_text,is_fallback_chain_exhausted, is_malformed_tool_history_text, is_provider_request_rejected_text,is_transient_unavailability_text, parse_retry_after_secs, with_provider_detail,};+use super::timeout::is_turn_timeout_error;/// Structured chat-error envelope produced by [`classify_inference_error`].///diff --git a/crates/openhuman-core/src/web_chat/web_tests.rs b/crates/openhuman-core/src/web_chat/web_tests.rsindex 829de6fde4..6ccc63d700 100644--- a/crates/openhuman-core/src/web_chat/web_tests.rs+++ b/crates/openhuman-core/src/web_chat/web_tests.rs@@ -2,13 +2,14 @@ use super::{all_web_channel_controller_schemas, all_web_channel_registered_controllers, cancel_chat,channel_web_cancel, channel_web_queue_clear, channel_web_queue_remove,channel_web_queue_status, classify_inference_error, drain_queued_turns_for_test,- event_session_id_for, generic_inference_error_user_message, in_flight_entries_for_test,- inference_budget_exceeded_user_message, is_inference_budget_exceeded_error, json_output,- key_for, locale_reply_directive, normalize_model_override, optional_f64, optional_string,- parallel_in_flight_entries_for_test, provider_role_for_model_override, required_string,- schemas, sentry_suppression_reason, set_test_forced_run_chat_task_error,- set_test_run_chat_task_block, start_chat, subscribe_web_channel_events, ChatRequestMetadata,- ClassifiedError, StartChatError, TestRunChatTaskBlock, WebChatParams,+ event_session_id_for, generic_inference_error_user_message,+ in_flight_entries_for_test, inference_budget_exceeded_user_message,+ is_inference_budget_exceeded_error, json_output, key_for, locale_reply_directive,+ normalize_model_override, optional_f64, optional_string, parallel_in_flight_entries_for_test,+ provider_role_for_model_override, required_string, schemas, sentry_suppression_reason,+ set_test_forced_run_chat_task_error, set_test_run_chat_task_block, start_chat,+ subscribe_web_channel_events, ChatRequestMetadata, ClassifiedError, StartChatError,+ TestRunChatTaskBlock, WebChatParams,};use crate::core::TypeSchema;use std::sync::atomic::{AtomicBool, Ordering};