Skip to content

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

refactor(channels): re-export delivery_succeeded from dispatch module

Steven Enamakel0904888e0565
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
index d85c971fe0..2561e139cb 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/mod.rs
@@ -16,11 +16,13 @@ mod native_runner;
mod processor;
mod routing;
-pub(crate) use processor::progressive::{NativeProgressiveTarget, hosted_relay_target};
+pub(crate) use processor::progressive::{
+ delivery_succeeded, hosted_relay_target, NativeProgressiveTarget,
+};
pub(crate) use processor::{
- RuntimeChannelMessage, process_channel_message, process_channel_runtime_message,
- run_message_dispatch_loop,
+ process_channel_message, process_channel_runtime_message, run_message_dispatch_loop,
+ RuntimeChannelMessage,
};
// `channel_has_approval_surface` stays pub(crate) on processor; re-export so
@@ -36,7 +38,7 @@ use helpers::build_channel_context_block;
use helpers::select_acknowledgment_reaction;
#[cfg(test)]
-use routing::{AgentScoping, build_visible_tool_set};
+use routing::{build_visible_tool_set, AgentScoping};
#[cfg(any(test, debug_assertions))]
use tinychannels_bus as traits;
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
index 99a56570d1..e75bdfe458 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
@@ -36,7 +36,7 @@ pub(crate) struct RuntimeChannelMessage {
pub(crate) imported_history: Vec<tinyagents_session::transcript::TranscriptMessage>,
/// Trusted per-turn callback target installed by a hosted relay. Native
/// configured channels resolve their target from the prepared envelope.
- pub(crate) progressive_target: Option<Arc<super::progressive::NativeProgressiveTarget>>,
+ pub(crate) progressive_target: Option<Arc<progressive::NativeProgressiveTarget>>,
}
impl RuntimeChannelMessage {
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
index 549a0f34a1..d02b368373 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs
@@ -1,6 +1,7 @@
//! Progress projection onto the compiled TinyChannels progressive engine.
use crate::channels::bus::NativeProgressiveReply;
+use std::sync::Arc;
use tinyagents_harness::progress::AgentProgress;
use tinychannels_bus::module_progressive::ChannelOutputEvent;
use tokio::sync::mpsc;
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
index 7f8a358454..8952e076ef 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs
@@ -306,9 +306,9 @@ async fn compiled_module_hosted_progressive_callback_is_scoped_and_typed() {
"must not escape the captured account",
)
.await;
- assert!(
- !crate::channels::runtime::dispatch::processor::progressive::delivery_succeeded(&rejected)
- );
+ assert!(!crate::channels::runtime::dispatch::delivery_succeeded(
+ &rejected
+ ));
assert!(relay.sent().is_empty());
let mut wrong_conversation = conversation.clone();
@@ -321,9 +321,9 @@ async fn compiled_module_hosted_progressive_callback_is_scoped_and_typed() {
"must not escape the captured conversation",
)
.await;
- assert!(
- !crate::channels::runtime::dispatch::processor::progressive::delivery_succeeded(&rejected)
- );
+ assert!(!crate::channels::runtime::dispatch::delivery_succeeded(
+ &rejected
+ ));
assert!(relay.sent().is_empty());
let delivered = run_hosted_compiled_turn(
diff --git a/vendor/tinychannels b/vendor/tinychannels
index 16b21bd3f9..dfd8b6d0c0 160000
--- a/vendor/tinychannels
+++ b/vendor/tinychannels
@@ -1 +1 @@
-Subproject commit 16b21bd3f9922054377813dfdc225b4123f4ef13
+Subproject commit dfd8b6d0c05af2fc8c5c42c93fd8ff0029be8d89