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
refactor(channels): tidy channel re-exports and imports
Steven Enamakel5c7ba14f4652
diff --git a/crates/openhuman-core/src/channels/context.rs b/crates/openhuman-core/src/channels/context.rsindex 4356e68409..b7a0dbd856 100644--- a/crates/openhuman-core/src/channels/context.rs+++ b/crates/openhuman-core/src/channels/context.rs@@ -10,14 +10,15 @@ use std::path::PathBuf;use std::sync::{Arc, Mutex};use tinytools::Tool;+pub(crate) use tinychannels_bus::context::ChannelRouteSelection;pub(crate) use tinychannels_bus::{- CHANNEL_MESSAGE_TIMEOUT_SECS, CHANNEL_TYPING_REFRESH_INTERVAL_SECS, ChannelRouteSelection,- DEFAULT_CHANNEL_INITIAL_BACKOFF_SECS, DEFAULT_CHANNEL_MAX_BACKOFF_SECS, MAX_CHANNEL_HISTORY,+ CHANNEL_TYPING_REFRESH_INTERVAL_SECS, DEFAULT_CHANNEL_INITIAL_BACKOFF_SECS,+ DEFAULT_CHANNEL_MAX_BACKOFF_SECS, MAX_CHANNEL_HISTORY,};#[cfg(test)]pub(crate) use tinychannels::context::{- MIN_CHANNEL_MESSAGE_TIMEOUT_SECS, effective_channel_message_timeout_secs,+ effective_channel_message_timeout_secs, MIN_CHANNEL_MESSAGE_TIMEOUT_SECS,};pub(crate) type TurnModelSourceCacheMap = Arc<Mutex<HashMap<String, TurnModelSource>>>;diff --git a/crates/openhuman-core/src/channels/host/adapters.rs b/crates/openhuman-core/src/channels/host/adapters.rsindex 1d87aabc58..2d02730749 100644--- a/crates/openhuman-core/src/channels/host/adapters.rs+++ b/crates/openhuman-core/src/channels/host/adapters.rs@@ -4,7 +4,6 @@//! voice, persistence, allowlist, and event operations.use crate::config::Config;-use std::sync::Arc;const LOG_PREFIX: &str = "[channels_host]";diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rsindex 80a4ef1447..a96d0d334b 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs@@ -21,8 +21,8 @@ pub(crate) use processor::progressive::{};pub(crate) use processor::{- process_channel_message, process_channel_runtime_message, reset_durable_channel_session,- run_message_dispatch_loop, RuntimeChannelMessage,+ process_channel_runtime_message, reset_durable_channel_session, run_message_dispatch_loop,+ RuntimeChannelMessage,};// `channel_has_approval_surface` stays pub(crate) on processor; re-export sodiff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rsindex 866abd2f9e..352ecfde89 100644--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs@@ -6,6 +6,7 @@ use crate::channels::runtime::dispatch::RuntimeChannelMessage;use crate::config::Config;use crate::modules::channel_runtime::ChannelRuntimeLease;use anyhow::{Context, Result};+#[cfg(test)]use async_trait::async_trait;use std::collections::HashMap;use std::sync::{Arc, OnceLock, Weak};@@ -20,7 +21,6 @@ use tinychannels_bus::SendMessage;use tinychannels_bus::{ChannelInteraction, ChannelInteractionResult};#[cfg(test)]use tinychannels_runtime::Channel;-#[cfg(test)]use tokio::sync::mpsc;/// Channel objects sharing one captured config, callback object and module lease.