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(orchestration): reorder imports to satisfy rustfmt
Steven Enamakel667efa981151
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rsindex a2bd1397bc..0bf12a16f4 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs@@ -33,22 +33,22 @@ use std::path::{Path, PathBuf};use std::sync::{Arc, Mutex, OnceLock};use std::time::Duration;-use tinyagents_tasks::{- CompletionRecord, CompletionResult, CompletionRouter, CompletionState, CompletionStatus,- CompletionStore, DriverCompletionStore, InMemoryCompletionStore, NotifyMode, TombstoneOutcome,- DEFAULT_MAX_ATTEMPTS,-};use tinyagents_orchestration::subagent::{DetachedCompletionTarget, DetachedSubagentStatus, record_detached_completion,};+use tinyagents_tasks::{+ CompletionRecord, CompletionResult, CompletionRouter, CompletionState, CompletionStatus,+ CompletionStore, DEFAULT_MAX_ATTEMPTS, DriverCompletionStore, InMemoryCompletionStore,+ NotifyMode, TombstoneOutcome,+};use super::completion_notice::BackgroundCompletionFormatter;-pub(crate) use super::completion_notice::{BackgroundAgentOutcome, AWAITING_INPUT_LABEL};+pub(crate) use super::completion_notice::{AWAITING_INPUT_LABEL, BackgroundAgentOutcome};+pub(crate) use super::completion_target::CompletionTarget;#[cfg(test)]pub(crate) use super::completion_target::tests::{- forget_workspace_for_test, install_store_for_test, TestWorkspace,+ TestWorkspace, forget_workspace_for_test, install_store_for_test,};-pub(crate) use super::completion_target::CompletionTarget;use super::completion_target::{awaiting_input_record_id, awaiting_input_record_prefix};pub(crate) use super::completion_target::{claim_recovery, forget_recovery};diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs b/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rsindex 62916f2308..bb62de5505 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions/thread_index.rs@@ -7,7 +7,7 @@ use std::sync::Arc;use tinyagents_tasks::CompletionRouter;-use super::{router_for_workspace, state, SESSION_THREADS_CAP};+use super::{SESSION_THREADS_CAP, router_for_workspace, state};use crate::core::runtime::DispatchCtx;/// The key of a thread or session id in `HostState`'s maps: per profile ofdiff --git a/crates/openhuman-core/src/agent/orchestration/background_completions_pause_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_completions_pause_tests.rsindex 0bdab2b7d9..0cebd67495 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions_pause_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions_pause_tests.rs@@ -162,10 +162,12 @@ fn delivered_pause_leaves_the_task_key_free_for_a_later_delivery() {.unwrap(),1);- assert!(router- .claim_pending("thread-sequential", usize::MAX)- .unwrap()- .is_empty());+ assert!(+ router+ .claim_pending("thread-sequential", usize::MAX)+ .unwrap()+ .is_empty()+ );}#[test]diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rsindex a048a20fcd..961e15ef7e 100644--- a/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_completions_tests.rs@@ -56,10 +56,12 @@ fn record_is_thread_scoped_and_batches_in_completion_order() {let claimed = router.claim_pending("thread-A", usize::MAX).unwrap();assert_eq!(claimed.len(), 2, "everything ready is claimed as one batch");assert_eq!(claimed[0].result.text, "eiffel");- assert!(router- .claim_pending("thread-A", usize::MAX)- .unwrap()- .is_empty());+ assert!(+ router+ .claim_pending("thread-A", usize::MAX)+ .unwrap()+ .is_empty()+ );}#[test]@@ -79,10 +81,12 @@ fn headless_completion_is_dropped() {let _guard = test_guard();let ws = workspace();record(ws.path(), "sess-headless", "sub-1", "x", None);- assert!(router_for_workspace(ws.path())- .claim_pending("", usize::MAX)- .unwrap()- .is_empty());+ assert!(+ router_for_workspace(ws.path())+ .claim_pending("", usize::MAX)+ .unwrap()+ .is_empty()+ );assert!(recover_pending_threads(&cx(), ws.path()).is_empty());}diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rsindex e56163889d..b8fce0c98e 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs@@ -30,22 +30,18 @@use crate::core::runtime::DispatchCtx;use std::path::{Path, PathBuf};use std::sync::{Arc, OnceLock};-#[cfg(test)]-use std::{- collections::HashSet,- future::Future,- sync::Mutex,-};use std::time::Duration;+#[cfg(test)]+use std::{collections::HashSet, future::Future, sync::Mutex};use async_trait::async_trait;use serde_json::json;+#[cfg(test)]+use tinyagents_tasks::CompletionRouter;use tinyagents_tasks::{CompletionDelivery, CompletionDeliveryConfig, CompletionRecord, DeliveryOutcome,DeliveryTarget, ThreadDeliveryLeases,};-#[cfg(test)]-use tinyagents_tasks::CompletionRouter;use crate::core::bus::BUS;use crate::core::events::DomainEvent;