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): drop tinychannels-module dependency
Steven Enamakel6657f83e8ca2
diff --git a/Cargo.lock b/Cargo.lockindex e03ab57a91..02c274bcc3 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -152,7 +152,7 @@ version = "1.1.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -163,7 +163,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"dependencies = ["anstyle","once_cell_polyfill",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -836,7 +836,7 @@ dependencies = ["cap-primitives","cap-std","io-lifetimes 3.0.1",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -853,7 +853,7 @@ dependencies = ["maybe-owned","rustix 1.1.5","rustix-linux-procfs",- "windows-sys 0.61.2",+ "windows-sys 0.60.2","winx",]@@ -1772,7 +1772,7 @@ dependencies = ["libc","option-ext","redox_users",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -2009,7 +2009,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -4164,7 +4164,7 @@ version = "0.50.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -4591,7 +4591,6 @@ dependencies = ["tinybus","tinychannels","tinychannels-bus",- "tinychannels-module","tinychannels-runtime","tinycomputer-bus","tinyconnectors-bus",@@ -4753,7 +4752,6 @@ version = "0.64.15"dependencies = ["log","openhuman-rpc",- "tinychannels-module","tinydocs-module",]@@ -5618,7 +5616,7 @@ dependencies = ["once_cell","socket2","tracing",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -6188,7 +6186,7 @@ dependencies = ["errno","libc","linux-raw-sys 0.12.1",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -6257,7 +6255,7 @@ dependencies = ["security-framework 3.7.0","security-framework-sys","webpki-root-certs",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -6877,7 +6875,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -7213,10 +7211,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"dependencies = ["fastrand",- "getrandom 0.3.4",+ "getrandom 0.4.3","once_cell","rustix 1.1.5",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -7229,7 +7227,7 @@ dependencies = ["parking_lot","rustix 1.1.5","signal-hook",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -7641,7 +7639,7 @@ dependencies = [[[package]]name = "tinychannels"-version = "0.1.26"+version = "0.1.29"dependencies = ["anyhow","async-imap",@@ -7687,38 +7685,21 @@ dependencies = [[[package]]name = "tinychannels-bus"-version = "0.1.26"+version = "0.1.29"dependencies = [+ "anyhow",+ "async-trait","base64 0.23.1","schemars","serde","serde_json","thiserror 2.0.20",-]--[[package]]-name = "tinychannels-module"-version = "0.1.26"-dependencies = [- "anyhow",- "async-trait",- "hex",- "log",- "serde",- "serde_json",- "sha2 0.11.0",- "tinybus",- "tinybus-module",- "tinychannels",- "tinychannels-bus","tokio",- "tracing",- "uuid",][[package]]name = "tinychannels-runtime"-version = "0.1.26"+version = "0.1.29"dependencies = ["anyhow","async-trait",@@ -9679,7 +9660,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex 71c9333fed..23b8cd16cf 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -489,7 +489,7 @@ tokio-tungstenite = { version = "0.29", default-features = false, features = ["c# production channel execution uses the TinyBus module contract above.tinychannels = { path = "../../vendor/tinychannels", features = ["relay-websocket", "email", "lark", "whatsapp-web"] }tinychannels-runtime = { path = "../../vendor/tinychannels/crates/tinychannels-runtime" }-tinychannels-module = { path = "../../vendor/tinychannels/crates/tinychannels-module", features = ["static-link"] }+#TMPOFF tinychannels-module = { path = "../../vendor/tinychannels/crates/tinychannels-module", features = ["static-link"] }tinybox-core = { path = "../../vendor/tinybox/crates/tinybox-core" }# The TinyMemory reference engine (an in-memory `MemoryEngine`) and the# behavioural suite every engine must pass. Memory unit tests bind it as thediff --git a/crates/openhuman-core/src/channels/contract_reexport_tests.rs b/crates/openhuman-core/src/channels/contract_reexport_tests.rsnew file mode 100644index 0000000000..b7440bbb23--- /dev/null+++ b/crates/openhuman-core/src/channels/contract_reexport_tests.rs@@ -0,0 +1,47 @@+//! The host's `Channel` seam is the contract crate's trait, not a copy.+use super::*;+use std::sync::Mutex;++#[derive(Default)]+struct Recorder {+ sent: Mutex<Vec<String>>,+}++#[async_trait::async_trait]+impl tinychannels_bus::Channel for Recorder {+ fn name(&self) -> &str {+ "recorder"+ }+ async fn send(&self, message: &SendMessage) -> anyhow::Result<()> {+ self.sent.lock().unwrap().push(message.content.clone());+ Ok(())+ }+ async fn listen(+ &self,+ _tx: tokio::sync::mpsc::Sender<tinychannels_bus::ChannelMessage>,+ ) -> anyhow::Result<()> {+ Ok(())+ }+}++#[tokio::test]+async fn host_send_ext_routes_through_the_contract_trait() {+ let ch = Recorder::default();+ ChannelSendExt::send_with_outbound_intent(&ch, &SendMessage::new("hi", "u1"))+ .await+ .unwrap();+ assert_eq!(ch.sent.lock().unwrap().as_slice(), ["hi"]);+}++#[test]+fn channel_vocabulary_is_the_contract_crates_own_types() {+ use std::any::TypeId;+ assert_eq!(+ TypeId::of::<dyn Channel>(),+ TypeId::of::<dyn tinychannels_bus::Channel>()+ );+ assert_eq!(+ TypeId::of::<SendMessage>(),+ TypeId::of::<tinychannels_bus::SendMessage>()+ );+}diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rsindex 3ec332a6b2..05ceb3485d 100644--- a/crates/openhuman-core/src/channels/mod.rs+++ b/crates/openhuman-core/src/channels/mod.rs@@ -125,3 +125,7 @@ pub(crate) use runtime::{session, start_channels_with_session};#[cfg(all(test, feature = "channels", feature = "modules"))]#[path = "module_fixture_tests.rs"]pub(crate) mod module_fixture;++#[cfg(test)]+#[path = "contract_reexport_tests.rs"]+mod contract_reexport_tests;