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): gate provider re-exports behind test config
Steven Enamakeld36d7cc7ace4
diff --git a/crates/openhuman-core/src/channels/providers/mod.rs b/crates/openhuman-core/src/channels/providers/mod.rsindex 790deb1ad7..060784a66d 100644--- a/crates/openhuman-core/src/channels/providers/mod.rs+++ b/crates/openhuman-core/src/channels/providers/mod.rs@@ -7,10 +7,14 @@pub mod relay;+#[cfg(test)]pub use tinychannels::providers::email_channel;+#[cfg(test)]pub use tinychannels::providers::lark;#[cfg(feature = "whatsapp-web")]+#[cfg(test)]pub use tinychannels::providers::whatsapp_web;+#[cfg(test)]pub use tinychannels::providers::{dingtalk, discord, imessage, irc, linq, mattermost, qq, signal, slack, telegram, whatsapp,yuanbao,diff --git a/crates/openhuman-core/src/channels/runtime/startup/credentials.rs b/crates/openhuman-core/src/channels/runtime/startup/credentials.rsindex 8bd1124711..5962d34538 100644--- a/crates/openhuman-core/src/channels/runtime/startup/credentials.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/credentials.rs@@ -51,33 +51,6 @@ pub(super) fn resolve_yuanbao_app_secret(use crate::channels::credentials::resolve_email_password;-/// Supplies `tinychannels`' provider factory with this host's HTTP clients.-///-/// The factory is transport-agnostic on purpose: proxy configuration, TLS-/// backend and timeouts are the embedding host's business. This is where-/// OpenHuman's runtime proxy settings get applied, per channel, using the same-/// `channel.<name>` identifiers the config UI shows.-pub(crate) struct RuntimeProxyClients;--impl tinychannels::HttpClientFactory for RuntimeProxyClients {- fn client_for(&self, channel: &str) -> reqwest::Client {- crate::config::build_runtime_proxy_client(channel)- }-- /// Signal talks to a local `signal-cli` HTTP bridge that may simply not be- /// running. Without a connect timeout that presents as a hang at startup- /// rather than an error, so the default is overridden to keep the 10s bound- /// this host has always used.- fn signal_client(&self) -> reqwest::Client {- crate::config::apply_runtime_proxy_to_builder(- reqwest::Client::builder().connect_timeout(std::time::Duration::from_secs(10)),- "channel.signal",- )- .build()- .unwrap_or_else(|_| reqwest::Client::new())- }-}-/// Resolve channel secrets that live outside the config file.////// Secrets may sit in the keyring, an environment variable or the config, and