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
chore(channels): add startup secret tests for email and yuanbao
Steven Enamakel9ef0692855b5
diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rsindex 05ceb3485d..47abae01cf 100644--- a/crates/openhuman-core/src/channels/mod.rs+++ b/crates/openhuman-core/src/channels/mod.rs@@ -41,70 +41,6 @@ pub(crate) use system_prompt::ChannelSystemPrompt;#[cfg(all(feature = "channels", test))]mod tests;-// Legacy provider paths are retained for unit fixtures only. Production callers-// use the module-backed runtime and the portable bus contracts above.-#[cfg(all(feature = "channels", test))]-pub use providers::dingtalk;-#[cfg(all(feature = "channels", test))]-pub use providers::discord;-#[cfg(all(feature = "channels", test))]-pub use providers::email_channel;-#[cfg(all(feature = "channels", test))]-pub use providers::imessage;-#[cfg(all(feature = "channels", test))]-pub use providers::irc;-#[cfg(all(feature = "channels", test))]-pub use providers::lark;-#[cfg(all(feature = "channels", test))]-pub use providers::linq;-#[cfg(all(feature = "channels", test))]-pub use providers::mattermost;-#[cfg(all(feature = "channels", test))]-pub use providers::qq;-#[cfg(all(feature = "channels", test))]-pub use providers::signal;-#[cfg(all(feature = "channels", test))]-pub use providers::slack;-#[cfg(all(feature = "channels", test))]-pub use providers::telegram;-#[cfg(all(feature = "channels", test))]-pub use providers::whatsapp;-#[cfg(all(feature = "whatsapp-web", test))]-pub use providers::whatsapp_web;-#[cfg(all(feature = "channels", test))]-pub use providers::yuanbao;--#[cfg(all(feature = "channels", test))]-pub use dingtalk::DingTalkChannel;-#[cfg(all(feature = "channels", test))]-pub use discord::DiscordChannel;-#[cfg(all(feature = "channels", test))]-pub use email_channel::EmailChannel;-#[cfg(all(feature = "channels", test))]-pub use imessage::IMessageChannel;-#[cfg(all(feature = "channels", test))]-pub use irc::IrcChannel;-#[cfg(all(feature = "channels", test))]-pub use lark::LarkChannel;-#[cfg(all(feature = "channels", test))]-pub use linq::LinqChannel;-#[cfg(all(feature = "channels", test))]-pub use mattermost::MattermostChannel;-#[cfg(all(feature = "channels", test))]-pub use qq::QQChannel;-#[cfg(all(feature = "channels", test))]-pub use signal::SignalChannel;-#[cfg(all(feature = "channels", test))]-pub use slack::SlackChannel;-#[cfg(all(feature = "channels", test))]-pub use telegram::TelegramChannel;-#[cfg(all(feature = "channels", test))]-pub use whatsapp::WhatsAppChannel;-#[cfg(all(feature = "whatsapp-web", test))]-pub use whatsapp_web::WhatsAppWebChannel;-#[cfg(all(feature = "channels", test))]-pub use yuanbao::YuanbaoChannel;-#[cfg(all(feature = "channels", any(test, debug_assertions)))]pub use runtime::test_support;diff --git a/crates/openhuman-core/src/channels/providers/mod.rs b/crates/openhuman-core/src/channels/providers/mod.rsindex 52918229c2..93e73bb755 100644--- a/crates/openhuman-core/src/channels/providers/mod.rs+++ b/crates/openhuman-core/src/channels/providers/mod.rs@@ -1,4 +1,4 @@-//! Hosted relay entry and test-only provider exports.+//! Hosted relay entry.//!//! Provider transports, and the provider-independent remote control and//! in-chat approvals that used to be Telegram glue, belong to `tinychannels`.@@ -6,16 +6,3 @@//! messages a gateway relays in from a hosted platform.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_email_secret_tests_tests.rs b/crates/openhuman-core/src/channels/runtime/startup_email_secret_tests_tests.rsindex a280ac6834..35914a40e5 100644--- a/crates/openhuman-core/src/channels/runtime/startup_email_secret_tests_tests.rs+++ b/crates/openhuman-core/src/channels/runtime/startup_email_secret_tests_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::channels::email_channel::EmailConfig;+use tinychannels::providers::email_channel::EmailConfig;use crate::security::credentials::AuthService;use std::collections::HashMap;use tempfile::tempdir;diff --git a/crates/openhuman-core/src/channels/runtime/startup_yuanbao_secret_tests_tests.rs b/crates/openhuman-core/src/channels/runtime/startup_yuanbao_secret_tests_tests.rsindex 6084b94b20..36bf78af5c 100644--- a/crates/openhuman-core/src/channels/runtime/startup_yuanbao_secret_tests_tests.rs+++ b/crates/openhuman-core/src/channels/runtime/startup_yuanbao_secret_tests_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::channels::providers::yuanbao::YuanbaoConfig;+use tinychannels::providers::yuanbao::YuanbaoConfig;use crate::security::credentials::AuthService;use std::collections::HashMap;use tempfile::tempdir;