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
style: apply rustfmt import ordering and formatting
Steven Enamakel715903cdeac3
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions/store_adapter.rs b/crates/openhuman-core/src/agent/orchestration/background_completions/store_adapter.rsindex 461420a20b..546d96b73d 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions/store_adapter.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions/store_adapter.rs@@ -2,8 +2,8 @@use super::*;use tinyagents_tasks::{- CompletionRouterPool, CompletionStoreFallback, CompletionStoreReplaceOutcome,- InMemoryCompletionStore, DEFAULT_MAX_ATTEMPTS, open_driver_completion_store_or_memory,+ open_driver_completion_store_or_memory, CompletionRouterPool, CompletionStoreFallback,+ CompletionStoreReplaceOutcome, InMemoryCompletionStore, DEFAULT_MAX_ATTEMPTS,};pub(in crate::agent::orchestration) fn router_scope_for(diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rsindex 63d80d4152..34e4dc7af5 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs@@ -138,8 +138,8 @@ fn schedule_delivery_inner(.push((thread_id.clone(), delay));#[cfg(not(test))]let _ = delay; // The owner applies debounce/recovery timing inside its delivery API.- // Scoped: the thread -> workspace table is keyed per profile, so the- // delayed task must run under the profile that scheduled it.+ // Scoped: the thread -> workspace table is keyed per profile, so the+ // delayed task must run under the profile that scheduled it.ctx.clone().spawn(async move {let outcome = try_deliver(ctx.clone(), thread_id.clone(), fence.clone(), wait_idle).await;if outcome == DeliveryOutcome::ParentBusy {diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rsindex a36f17ce61..c72e47df3c 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_tenant_tests.rs@@ -9,7 +9,7 @@ use std::path::Path;use std::sync::Arc;use super::background_completions::*;-use super::background_delivery::{Drain, drain_schedule_in};+use super::background_delivery::{drain_schedule_in, Drain};use crate::core::events::DomainEvent;use crate::core::runtime::{ContextOverlay, CoreContext, DomainSet};use crate::tools::toolpacks::ToolGroups;@@ -151,7 +151,7 @@ fn an_unknown_session_is_dropped_in_saas() {/// its own marks.#[tokio::test]async fn busy_marks_are_keyed_by_the_explicit_context() {- use super::busy_guard::{TurnBusy, clear_busy_for_thread, is_busy};+ use super::busy_guard::{clear_busy_for_thread, is_busy, TurnBusy};let _guard = crate::config::TEST_ENV_LOCK.lock().await;let (ws_a, ws_b) = (TestWorkspace::new(), TestWorkspace::new());let alice = DispatchCtx::new(profile(&unique("b-alice"), ws_a.path()));diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rsindex 105b627c64..1e19334f4c 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs@@ -5,7 +5,7 @@use std::path::{Path, PathBuf};use tinyagents_orchestration::subagent::{- FinishedOutcome, WaitError, task_id_for_session_in_records,+ task_id_for_session_in_records, FinishedOutcome, WaitError,};use super::registry::admit_workspace;diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rsindex 6cd14b0499..03cbd66f9a 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/task_ledger.rs@@ -11,12 +11,11 @@ use std::path::{Path, PathBuf};use std::sync::{Arc, OnceLock};use tinyagents_orchestration::subagent::{- WaitError, orphaned_subagent_reason, record_agent_id, record_parent_session,- task_status_label,+ orphaned_subagent_reason, record_agent_id, record_parent_session, task_status_label, WaitError,};use tinyagents_tasks::{- InMemoryTaskStore, OrchestrationTaskFilter, TaskStore, TaskStoreRegistry,- open_driver_task_store_or_memory, reconcile_orphaned_tasks,+ open_driver_task_store_or_memory, reconcile_orphaned_tasks, InMemoryTaskStore,+ OrchestrationTaskFilter, TaskStore, TaskStoreRegistry,};/// One cached ledger: a workspace and the storage scope it was opened for.@@ -97,9 +96,10 @@ pub(super) fn scoped_task_store(workspace_dir: &Path,) -> Result<Arc<dyn TaskStore>, WaitError> {if let Some(context) = ctx.resolved() {- return Ok(crate::core::runtime::CoreContext::sync_scope(context, || {- task_store_for_workspace(workspace_dir)- }));+ return Ok(crate::core::runtime::CoreContext::sync_scope(+ context,+ || task_store_for_workspace(workspace_dir),+ ));}if crate::core::runtime::is_saas() {return Err(WaitError::NotOwned);diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rsindex df8379af89..db9f131cad 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs@@ -13,12 +13,12 @@ use super::types::{mod driver;#[cfg(test)]use driver::record_cancel_reason;-pub use tinyagents_orchestration::subagent::normalize_task_key;pub use driver::{cancel_driver_job_by_task, cancel_driver_job_for_observed_session,cancel_driver_jobs_for_thread, mark_driver_pause_cancelled, resolve_lifecycle_key,DriverTaskCancellation,};+pub use tinyagents_orchestration::subagent::normalize_task_key;pub fn action_root_key(path: Option<&Path>) -> Option<String> {path.map(|p| p.to_string_lossy().to_string())