Skip to content

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

refactor(runtime): update module provider imports and test support

Steven Enamakelbf8325510e05
diff --git a/crates/openhuman-core/src/channels/runtime/startup.rs b/crates/openhuman-core/src/channels/runtime/startup.rs
index b00b2d0491..71cd2fbfb9 100644
--- a/crates/openhuman-core/src/channels/runtime/startup.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup.rs
@@ -326,7 +326,7 @@ use chat_workload::{resolve_chat_workload, ChatWorkloadResolution};
#[cfg(any(test, debug_assertions))]
use credentials::resolve_yuanbao_app_secret;
#[cfg(test)]
-use relay::RelayInboundMessageHandler;
+use crate::channels::providers::relay::RelayInboundMessageHandler;
#[cfg(any(test, debug_assertions))]
#[path = "startup_test_support_tests.rs"]
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs
index 5181c630ad..49368e8792 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs
@@ -8,6 +8,7 @@ use crate::modules::channel_runtime::ChannelRuntimeLease;
use anyhow::{Context, Result};
use std::collections::HashMap;
use std::sync::{Arc, OnceLock, Weak};
+use tokio::sync::mpsc;
use tinybus::module::{ModuleCallError, ModuleClient, ModuleObjectClient};
use tinychannels_bus::module_runtime::{
ChannelIngressKind, ChannelMessagePreparation, ConfiguredChannelInfo,
diff --git a/crates/openhuman-core/src/channels/runtime/test_support.rs b/crates/openhuman-core/src/channels/runtime/test_support.rs
index feaa4675a6..4cd6bdb941 100644
--- a/crates/openhuman-core/src/channels/runtime/test_support.rs
+++ b/crates/openhuman-core/src/channels/runtime/test_support.rs
@@ -4,8 +4,8 @@ pub use super::dispatch::test_support::build_channel_context_block_for_test;
use super::dispatch::{
process_channel_message, process_channel_runtime_message, RuntimeChannelMessage,
};
-pub use super::startup::test_support::resolve_yuanbao_app_secret_for_test;
-use crate::channels::context::{ChannelRuntimeContext, CHANNEL_MESSAGE_TIMEOUT_SECS};
+use crate::channels::context::ChannelRuntimeContext;
+use tinychannels_bus::CHANNEL_MESSAGE_TIMEOUT_SECS;
use crate::channels::ChannelSystemPrompt;
use crate::config::{MultimodalConfig, MultimodalFileConfig, ReliabilityConfig};
use crate::core::events::DomainEvent;