Skip to content

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

refactor(channels): adjust channel message processing exports

Steven Enamakel24c7b1a0bd43
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
index f5dce4b331..9ef36eadef 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
@@ -21,7 +21,7 @@ pub(crate) use processor::progressive::{
};
pub(crate) use processor::{
- process_channel_runtime_message, reset_durable_channel_session, run_message_dispatch_loop,
+ process_channel_message, process_channel_runtime_message, reset_durable_channel_session, run_message_dispatch_loop,
RuntimeChannelMessage,
};
@@ -33,7 +33,7 @@ use processor::channel_has_approval_surface;
// Re-export internal helpers accessed by test_support (cfg(any(test,
// debug_assertions))) and the inline #[cfg(test)] modules via `super::*`.
#[cfg(any(test, debug_assertions))]
-use helpers::build_channel_context_block;
+pub(crate) use helpers::build_channel_context_block;
#[cfg(test)]
use helpers::select_acknowledgment_reaction;
diff --git a/crates/openhuman-core/src/channels/test_support.rs b/crates/openhuman-core/src/channels/test_support.rs
index 553f9799a4..1351bc4ba3 100644
--- a/crates/openhuman-core/src/channels/test_support.rs
+++ b/crates/openhuman-core/src/channels/test_support.rs
@@ -2,5 +2,5 @@
/// Build the host-owned channel context block for a bus message.
pub fn build_channel_context_block_for_test(msg: &tinychannels_bus::ChannelMessage) -> String {
- crate::channels::runtime::dispatch::helpers::build_channel_context_block(msg)
+ crate::channels::runtime::dispatch::build_channel_context_block(msg)
}