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: sort imports alphabetically across channel modules
Steven Enamakel764ca5b77456
diff --git a/crates/openhuman-core/src/channels/host/channel_events.rs b/crates/openhuman-core/src/channels/host/channel_events.rsindex 3bcdc5ac45..db76f60efb 100644--- a/crates/openhuman-core/src/channels/host/channel_events.rs+++ b/crates/openhuman-core/src/channels/host/channel_events.rs@@ -1,12 +1,12 @@//! Host-owned approval routing and turn events over the channel module.-use crate::channels::{outbound::text_message, Channel};+use crate::channels::{Channel, outbound::text_message};use crate::core::events::DomainEvent;use async_trait::async_trait;use std::collections::HashMap;use std::path::PathBuf;use std::sync::{Arc, Mutex};-use tinybus::module::ModuleClient;use tinybus::EventHandler;+use tinybus::module::ModuleClient;#[derive(Clone)]struct ReplyContext {diff --git a/crates/openhuman-core/src/channels/providers/relay/channel.rs b/crates/openhuman-core/src/channels/providers/relay/channel.rsindex 0f67ca541b..2960e9c9d7 100644--- a/crates/openhuman-core/src/channels/providers/relay/channel.rs+++ b/crates/openhuman-core/src/channels/providers/relay/channel.rs@@ -10,7 +10,7 @@ use std::sync::Mutex;use async_trait::async_trait;use serde_json::json;-use crate::web_chat::{publish_web_channel_event, WebChannelEvent};+use crate::web_chat::{WebChannelEvent, publish_web_channel_event};use tinychannels_bus::channel::{ContentPart, OutboundContentPart};use tinychannels_bus::{Channel, ChannelOutboundMessage};diff --git a/crates/openhuman-core/src/channels/providers/relay/ops.rs b/crates/openhuman-core/src/channels/providers/relay/ops.rsindex 3a9ea146ee..f844f8607f 100644--- a/crates/openhuman-core/src/channels/providers/relay/ops.rs+++ b/crates/openhuman-core/src/channels/providers/relay/ops.rs@@ -3,7 +3,7 @@use std::collections::HashMap;use std::sync::Arc;-use serde_json::{json, Value};+use serde_json::{Value, json};use super::channel::RelayChannel;use super::params::RelayInboundParams;@@ -11,8 +11,8 @@ use super::store::{self, Recorded};use crate::channels::context::MAX_CHANNEL_HISTORY;use crate::channels::outbound::text_message;use crate::channels::runtime::{- build_channel_turn_parts, prepare_runtime_limits, process_channel_runtime_message,- runtime_context, PromptToolDescs, RuntimeChannelMessage,+ PromptToolDescs, RuntimeChannelMessage, build_channel_turn_parts, prepare_runtime_limits,+ process_channel_runtime_message, runtime_context,};use crate::config::Config;use crate::core::Outcome;diff --git a/crates/openhuman-core/src/channels/providers/relay/ops_tests.rs b/crates/openhuman-core/src/channels/providers/relay/ops_tests.rsindex 87a03126e0..0c4e932cd5 100644--- a/crates/openhuman-core/src/channels/providers/relay/ops_tests.rs+++ b/crates/openhuman-core/src/channels/providers/relay/ops_tests.rs@@ -1,6 +1,6 @@use super::super::channel::CHANNEL_OUTBOUND_EVENT;use super::*;-use crate::agent::bus::{mock_agent_run_turn, AgentTurnRequest, AgentTurnResponse};+use crate::agent::bus::{AgentTurnRequest, AgentTurnResponse, mock_agent_run_turn};use crate::core::runtime::{ContextOverlay, CoreContext, DomainSet};use crate::security::turn_origin::AgentTurnOrigin;use std::sync::Mutex;diff --git a/crates/openhuman-core/src/channels/providers/relay/params.rs b/crates/openhuman-core/src/channels/providers/relay/params.rsindex 01eb1edb69..7360772ce5 100644--- a/crates/openhuman-core/src/channels/providers/relay/params.rs+++ b/crates/openhuman-core/src/channels/providers/relay/params.rs@@ -7,7 +7,7 @@ use serde_json::Value;#[cfg(test)]use crate::channels::bus::derive_inbound_thread_id;use tinychannels_bus::{- channel::ContentPart, ChannelInboundEnvelope, ChannelRef, ConversationRef, SenderRef,+ ChannelInboundEnvelope, ChannelRef, ConversationRef, SenderRef, channel::ContentPart,};/// Longest channel name: `telegram`, `imessage`, `discord`, ...diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rsindex 6a549d9bd0..2639ed3dd9 100644--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs@@ -10,11 +10,11 @@ use async_trait::async_trait;use std::collections::HashMap;use std::sync::{Arc, OnceLock, Weak};use tinybus::module::{ModuleCallError, ModuleClient, ModuleObjectClient};+use tinychannels_bus::Channel;use tinychannels_bus::module_runtime::{ChannelIngressKind, ChannelMessagePreparation, ConfiguredChannelInfo,};use tinychannels_bus::module_supervision::ChannelSupervisionPolicy;-use tinychannels_bus::Channel;use tinychannels_bus::{ChannelInteraction, ChannelInteractionResult};use tokio::sync::mpsc;diff --git a/crates/openhuman-core/src/channels/runtime/test_support.rs b/crates/openhuman-core/src/channels/runtime/test_support.rsindex 0919d62f37..40d0586a4b 100644--- a/crates/openhuman-core/src/channels/runtime/test_support.rs+++ b/crates/openhuman-core/src/channels/runtime/test_support.rs@@ -1,12 +1,12 @@//! Debug-build harnesses for raw integration coverage of the channel runtime.pub use super::dispatch::test_support::build_channel_context_block_for_test;-use super::dispatch::{process_channel_runtime_message, RuntimeChannelMessage};+use super::dispatch::{RuntimeChannelMessage, process_channel_runtime_message};pub use super::startup::test_support::resolve_yuanbao_app_secret_for_test;-use crate::agent::bus::{AgentTurnRequest, AgentTurnResponse, AGENT_RUN_TURN_METHOD};-use crate::channels::context::{ChannelRuntimeContext, CHANNEL_MESSAGE_TIMEOUT_SECS};+use crate::agent::bus::{AGENT_RUN_TURN_METHOD, AgentTurnRequest, AgentTurnResponse};use crate::channels::Channel;use crate::channels::ChannelSystemPrompt;+use crate::channels::context::{CHANNEL_MESSAGE_TIMEOUT_SECS, ChannelRuntimeContext};use crate::config::{MultimodalConfig, MultimodalFileConfig, ReliabilityConfig};use crate::core::bus::BUS;use crate::core::events::DomainEvent;