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(host): drop test-only channel host adapters
Steven Enamakel32cfe261abc1
diff --git a/crates/openhuman-core/src/channels/host/adapters.rs b/crates/openhuman-core/src/channels/host/adapters.rsindex 19496b7ffc..e51e52a3e7 100644--- a/crates/openhuman-core/src/channels/host/adapters.rs+++ b/crates/openhuman-core/src/channels/host/adapters.rs@@ -62,14 +62,6 @@ impl ConfigAllowlistStore {}}-#[cfg(test)]-#[async_trait]-impl AllowlistStore for ConfigAllowlistStore {- async fn persist_allowed_identity(&self, channel: &str, identity: &str) -> anyhow::Result<()> {- ConfigAllowlistStore::persist_allowed_identity(self, channel, identity).await- }-}-// ---------------------------------------------------------------------------// EventSink → routes provider events to the right OpenHuman bus// ---------------------------------------------------------------------------@@ -214,15 +206,3 @@ async fn publish_event(domain: &str, kind: &str, payload: serde_json::Value) ->Ok(())}-#[cfg(test)]-#[async_trait]-impl EventSink for OpenHumanEventSink {- async fn publish(- &self,- domain: &str,- kind: &str,- payload: serde_json::Value,- ) -> anyhow::Result<()> {- self.publish_host(domain, kind, payload).await- }-}diff --git a/crates/openhuman-core/src/channels/host/mod.rs b/crates/openhuman-core/src/channels/host/mod.rsindex db5f6564d8..10e8cc3aa0 100644--- a/crates/openhuman-core/src/channels/host/mod.rs+++ b/crates/openhuman-core/src/channels/host/mod.rs@@ -1,7 +1,6 @@//! OpenHuman host callbacks and event subscribers for the TinyChannels module.//!-//! Production startup serves the typed callback surface from `runtime::startup`;-//! legacy provider-trait adapters remain compiled only for their unit tests.+//! Production startup serves the typed callback surface from `runtime::startup`.mod adapters;mod channel_events;@@ -9,51 +8,8 @@ pub(crate) mod remote_control;pub(crate) mod voice;pub(crate) use adapters::{ConfigAllowlistStore, OpenHumanEventSink};-#[cfg(test)]-pub use adapters::{- ConversationHistoryStore, CoreApprovalGate, CoreShutdownRegistry, VoiceSynthesizer,- VoiceTranscriber,-};pub use channel_events::{ChannelApprovalSurfaceSubscriber, ChannelTurnStateSubscriber};-#[cfg(test)]-use std::sync::Arc;--#[cfg(test)]-use tinychannels::host::ChannelHostBuilder;-#[cfg(test)]-use tinychannels::ChannelHost;--#[cfg(test)]-use crate::config::Config;--/// Assemble the full OpenHuman [`ChannelHost`] from a config snapshot.-///-/// Wires every capability OpenHuman can back today: lifecycle (shutdown),-/// STT, TTS, approval-reply parsing, conversation history, and the-/// web-channel event sink. Capabilities OpenHuman cannot yet express portably-/// (turn dispatch, run ledger, pairing) are simply left unset — a provider-/// that needs one degrades gracefully. Emoji reactions are deliberately unset:-/// the local-model reaction gate was removed, so providers never react.-#[cfg(test)]-pub fn build_channel_host(config: Arc<Config>) -> Arc<dyn ChannelHost> {- ChannelHostBuilder::new()- .lifecycle(Arc::new(CoreShutdownRegistry))- .transcriber(Arc::new(VoiceTranscriber {- config: Arc::clone(&config),- }))- .synthesizer(Arc::new(VoiceSynthesizer {- config: Arc::clone(&config),- }))- .approvals(Arc::new(CoreApprovalGate))- .conversations(Arc::new(ConversationHistoryStore {- workspace_dir: config.workspace_dir.clone(),- }))- .events(Arc::new(OpenHumanEventSink))- .allowlist(Arc::new(ConfigAllowlistStore))- .build()-}-#[cfg(test)]#[path = "host_tests.rs"]mod tests;