Skip to content

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

refactor(channels): qualify tinychannels_bus types with module_runtime

Steven Enamakel3cda2708645c
diff --git a/crates/openhuman-core/src/channels/controllers/backend.rs b/crates/openhuman-core/src/channels/controllers/backend.rs
index 74b5b0683a..fb251d8124 100644
--- a/crates/openhuman-core/src/channels/controllers/backend.rs
+++ b/crates/openhuman-core/src/channels/controllers/backend.rs
@@ -35,7 +35,7 @@ impl OpenHumanChannelBackend {
/// Deliver module-prepared content through the configured product transport.
pub(crate) async fn send_prepared(
&self,
- prepared: tinychannels_bus::PreparedChannelIntent,
+ prepared: tinychannels_bus::module_runtime::PreparedChannelIntent,
) -> anyhow::Result<ChannelSendMessageResult> {
if tinychannels::relay::relay_runtime_fronts_channel(
&self.config.channels_config,
diff --git a/crates/openhuman-core/src/channels/controllers/schemas.rs b/crates/openhuman-core/src/channels/controllers/schemas.rs
index 01f1b40915..5f39ddca75 100644
--- a/crates/openhuman-core/src/channels/controllers/schemas.rs
+++ b/crates/openhuman-core/src/channels/controllers/schemas.rs
@@ -14,7 +14,7 @@ use super::backend::OpenHumanChannelBackend;
use super::definitions::ChannelAuthMode;
use crate::channels::contract_schema::from_channel_controller_schema;
use crate::security::credentials::channel_credential_provider;
-use tinychannels::{ChannelManager, ChannelsConfig};
+use tinychannels::ChannelManager;
use tinychannels_bus::controllers::{all_channel_controller_schemas, channel_controller_schema};
// ---------------------------------------------------------------------------
diff --git a/crates/openhuman-core/src/modules/channel_controller.rs b/crates/openhuman-core/src/modules/channel_controller.rs
index 37cc0c724e..d74f46b913 100644
--- a/crates/openhuman-core/src/modules/channel_controller.rs
+++ b/crates/openhuman-core/src/modules/channel_controller.rs
@@ -64,14 +64,14 @@ pub(crate) async fn prepare_message(
client: &ModuleClient,
channel: &str,
message: serde_json::Value,
-) -> Result<tinychannels_bus::PreparedChannelIntent, ModuleCallError> {
+) -> Result<tinychannels_bus::module_runtime::PreparedChannelIntent, ModuleCallError> {
client
.call_confidential(
"tinychannels",
methods::PREPARE_OUTBOUND_INTENT,
(
channel,
- tinychannels_bus::ChannelMessagePreparation::Legacy(message),
+ tinychannels_bus::module_runtime::ChannelMessagePreparation::Legacy(message),
),
)
.await