Skip to content

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

refactor(channels): widen runtime module visibility to crate

Steven Enamakel6bd7295d1939
diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rs
index f9c4c54592..b57bcb0849 100644
--- a/crates/openhuman-core/src/channels/mod.rs
+++ b/crates/openhuman-core/src/channels/mod.rs
@@ -32,7 +32,7 @@ pub mod providers;
#[cfg(feature = "channels")]
mod routes;
#[cfg(feature = "channels")]
-mod runtime;
+pub(crate) mod runtime;
#[cfg(feature = "channels")]
pub(crate) mod system_prompt;
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
index 6c64addfa8..2252007910 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
@@ -16,7 +16,7 @@
mod approval;
mod bus_turn;
-mod progressive;
+pub(crate) mod progressive;
mod reset;
mod turn;
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
index 37168f8f2c..1dddb86f45 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
@@ -480,7 +480,7 @@ pub(crate) async fn process_channel_runtime_message(
imported_history,
native_target: native_target.clone(),
});
- super::native_runner::run(
+ super::super::native_runner::run(
&ctx.dispatch_ctx(),
session_key.clone(),
request_id,
@@ -491,7 +491,7 @@ pub(crate) async fn process_channel_runtime_message(
}
None if configured_agent_error.is_some() => {
let error = configured_agent_error.expect("checked configured-agent failure");
- super::native_runner::NativeTurnExecution {
+ super::super::native_runner::NativeTurnExecution {
result: Err(error),
delivery_succeeded: None,
queued: false,
@@ -516,7 +516,7 @@ pub(crate) async fn process_channel_runtime_message(
)
.await
.map_err(|error| error.to_string());
- super::native_runner::NativeTurnExecution {
+ super::super::native_runner::NativeTurnExecution {
result,
delivery_succeeded: None,
queued: false,
diff --git a/crates/openhuman-core/src/channels/runtime/mod.rs b/crates/openhuman-core/src/channels/runtime/mod.rs
index 87b8ee69b1..38f5ece3b9 100644
--- a/crates/openhuman-core/src/channels/runtime/mod.rs
+++ b/crates/openhuman-core/src/channels/runtime/mod.rs
@@ -1,6 +1,6 @@
//! Channel runtime entry points.
-mod dispatch;
+pub(crate) mod dispatch;
pub(crate) mod session;
mod startup;
#[cfg(test)]