Skip to content

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

chore: reformat import and call lines for consistency

Steven Enamakel97ef51e62b4a
diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rs
index 9cb4bb79d6..b6ef56e4cc 100644
--- a/crates/openhuman-core/src/config/schema/mod.rs
+++ b/crates/openhuman-core/src/config/schema/mod.rs
@@ -136,8 +136,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.rs
index 11deaf8b5a..5baa4d359a 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
@@ -415,10 +415,7 @@ 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.rs
index f40d27aec4..d09a558fdf 100644
--- a/crates/openhuman-core/src/integrations/composio/tools/execute.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools/execute.rs
@@ -236,9 +236,8 @@ 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 for
diff --git a/crates/openhuman-core/src/integrations/composio/trigger_history.rs b/crates/openhuman-core/src/integrations/composio/trigger_history.rs
index 197192d2dd..4381208760 100644
--- a/crates/openhuman-core/src/integrations/composio/trigger_history.rs
+++ b/crates/openhuman-core/src/integrations/composio/trigger_history.rs
@@ -19,8 +19,7 @@ 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.rs
index f5c5f368ba..f8c7cfc1d9 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_NAMESPACE
use 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/voice/server/pipeline.rs b/crates/openhuman-core/src/voice/server/pipeline.rs
index c435d12cd7..c74157dd37 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.rs
index 071090d130..c1a9d0b934 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.rs
index 6c74f60cd5..47f56b6ad6 100644
--- a/crates/openhuman-core/src/web_chat/web_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests.rs
@@ -2,10 +2,9 @@ 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, key_for, locale_reply_directive,
- normalize_model_override, parallel_in_flight_entries_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, key_for,
+ locale_reply_directive, normalize_model_override, parallel_in_flight_entries_for_test,
provider_role_for_model_override, 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,
diff --git a/tests/config_auth_app_state_connectivity_e2e.rs b/tests/config_auth_app_state_connectivity_e2e.rs
index 21314d0676..e70e633334 100644
--- a/tests/config_auth_app_state_connectivity_e2e.rs
+++ b/tests/config_auth_app_state_connectivity_e2e.rs
@@ -20,8 +20,8 @@ use tempfile::{tempdir, TempDir};
use openhuman_core::config::schema::{
AuditConfig, CapabilityProviderConfig, CapabilityProviderTrustState, DashboardConfig,
DingTalkConfig, DiscordConfig, EventStreamConfig, IrcConfig, LarkConfig, MatrixConfig,
- MemoryConfig, ModelHealthConfig, ProxyConfig, ProxyScope, QQConfig, ResourceLimitsConfig, SandboxConfig,
- SecurityConfig, SlackConfig, TelegramConfig, WebhookConfig, WhatsAppConfig,
+ MemoryConfig, ModelHealthConfig, ProxyConfig, ProxyScope, QQConfig, ResourceLimitsConfig,
+ SandboxConfig, SecurityConfig, SlackConfig, TelegramConfig, WebhookConfig, WhatsAppConfig,
};
use openhuman_core::config::{
clear_active_user, default_projects_dir, pre_login_user_dir, read_active_user_id,