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(channels): expose module channel internals and drop unused event
Steven Enamakel873393862de1
diff --git a/crates/openhuman-core/src/channels/runtime/startup.rs b/crates/openhuman-core/src/channels/runtime/startup.rsindex 8092b220a9..0215d71717 100644--- a/crates/openhuman-core/src/channels/runtime/startup.rs+++ b/crates/openhuman-core/src/channels/runtime/startup.rs@@ -6,6 +6,7 @@ mod credentials;mod delivery_import;mod module_providers;mod prompt;+mod progressive_transport;#[cfg(test)]mod relay;mod start_channels;diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rsindex fd38a7e77d..fd567afbe2 100644--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs@@ -32,9 +32,9 @@ pub(super) struct ModuleChannelRuntime {}#[derive(Clone)]-struct ModuleChannel {- name: String,- object: ModuleObjectClient,+pub(super) struct ModuleChannel {+ pub(super) name: String,+ pub(super) object: ModuleObjectClient,interaction: tinychannels_bus::ChannelInteractionInfo,relay: Option<tinychannels_bus::module_relay::RelayReservation>,relay_fronted: bool,@@ -568,7 +568,7 @@ impl ModuleChannel {Ok(())}- async fn interact(&self, interaction: ChannelInteraction) -> anyhow::Result<()> {+ pub(super) async fn interact(&self, interaction: ChannelInteraction) -> anyhow::Result<()> {match self.object.call_confidential::<ChannelInteractionResult>(diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rsindex 928966631b..8a6eb0fb09 100644--- a/crates/openhuman-core/src/core/events.rs+++ b/crates/openhuman-core/src/core/events.rs@@ -353,17 +353,6 @@ pub enum DomainEvent {/// `workspace_dir` does not match their own workspace binding.workspace_dir: std::path::PathBuf,},- /// A native channel turn emitted one canonical progress observation.- /// The payload is deliberately content-free; the provider module owns- /// user-facing delivery and this event only gives host observers a- /// scoped lifecycle signal.- ChannelOutputObserved {- channel: tinychannels_bus::ChannelRef,- conversation: tinychannels_bus::ConversationRef,- turn_id: String,- sequence: u64,- event_kind: String,- },/// A reaction event was received from a channel transport.ChannelReactionReceived {channel: String,@@ -1390,7 +1379,6 @@ impl DomainEvent {Self::ChannelInboundMessage { .. }| Self::ChannelMessageReceived { .. }| Self::ChannelMessageProcessed { .. }- | Self::ChannelOutputObserved { .. }| Self::ChannelReactionReceived { .. }| Self::ChannelReactionSent { .. }| Self::ChannelConnected { .. }@@ -1524,7 +1512,6 @@ impl DomainEvent {Self::ChannelInboundMessage { .. } => "ChannelInboundMessage",Self::ChannelMessageReceived { .. } => "ChannelMessageReceived",Self::ChannelMessageProcessed { .. } => "ChannelMessageProcessed",- Self::ChannelOutputObserved { .. } => "ChannelOutputObserved",Self::ChannelReactionReceived { .. } => "ChannelReactionReceived",Self::ChannelReactionSent { .. } => "ChannelReactionSent",Self::ChannelConnected { .. } => "ChannelConnected",@@ -1630,10 +1617,6 @@ impl DomainEvent {| Self::AgentOrchestrationCompleted { agent_id, .. }| Self::AgentOrchestrationFailed { agent_id, .. } => Some(agent_id.as_str()),Self::ChannelMessageReceived { channel, .. }- | Self::ChannelOutputObserved {- channel: tinychannels_bus::ChannelRef { id: channel, .. },- ..- }| Self::ChannelConnected { channel, .. }| Self::ChannelDisconnected { channel, .. } => Some(channel.as_str()),Self::ToolExecutionStarted { tool_name, .. }