The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(web_chat): re-export Surface and TurnIds from module root
Steven Enamakelb0dd39e5a609
diff --git a/crates/openhuman-core/src/channels/providers/relay/progressive.rs b/crates/openhuman-core/src/channels/providers/relay/progressive.rsindex 12e6fdf99d..d5b0b8abd9 100644--- a/crates/openhuman-core/src/channels/providers/relay/progressive.rs+++ b/crates/openhuman-core/src/channels/providers/relay/progressive.rs@@ -18,7 +18,7 @@ pub(crate) struct RelayProgressiveTransport {channel_ref: tinychannels_bus::ChannelRef,conversation: tinychannels_bus::ConversationRef,turn_id: String,- projection: Arc<crate::web_chat::surface::Surface>,+ projection: Arc<crate::web_chat::Surface>,}impl RelayProgressiveTransport {@@ -27,7 +27,7 @@ impl RelayProgressiveTransport {channel_ref: tinychannels_bus::ChannelRef,conversation: tinychannels_bus::ConversationRef,turn_id: String,- projection: Arc<crate::web_chat::surface::Surface>,+ projection: Arc<crate::web_chat::Surface>,) -> Self {Self {channel,@@ -78,7 +78,7 @@ impl RelayProgressiveTransport {// Project canonical events through the same compiled web// adapter used by desktop and TUI turns. Provider delivery is// still performed only by the typed terminal send below.- self.projection.output(event).await;+ self.projection.output(*event).await;Ok(ProgressiveTransportResult::Acknowledged)}ProgressiveTransportRequest::SendTyped {diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rsindex f0eebfe8e1..6f1f7c2cbd 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/progressive.rs@@ -55,9 +55,9 @@ impl NativeProgressiveTarget {request_id,} => {let projection = Arc::new(- crate::web_chat::surface::Surface::new(+ crate::web_chat::Surface::new(ctx,- crate::web_chat::surface::TurnIds {+ crate::web_chat::TurnIds {client_id: client_id.clone(),thread_id: self.conversation.id.clone(),request_id: request_id.clone(),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.rsindex 50ca456290..5eb36eb142 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@@ -285,9 +285,9 @@ async fn compiled_module_hosted_progressive_callback_is_scoped_and_typed() {};let mut web_events = crate::web_chat::subscribe_web_channel_events();let projection = Arc::new(- crate::web_chat::surface::Surface::new(+ crate::web_chat::Surface::new(&crate::core::runtime::DispatchCtx::ambient(),- crate::web_chat::surface::TurnIds {+ crate::web_chat::TurnIds {client_id: "relay-fixture-client".into(),thread_id: "channel:telegram/sender-7/chat-42".into(),request_id: "relay-fixture-request".into(),diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rsindex d18daf9832..03a01c73f8 100644--- a/crates/openhuman-core/src/web_chat/mod.rs+++ b/crates/openhuman-core/src/web_chat/mod.rs@@ -39,6 +39,7 @@ mod schemas;mod session;mod suggestions;mod surface;+pub(crate) use surface::{Surface, TurnIds};mod turn_activity;mod turn_close;mod turn_events;