Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(modules-linked): register tinyjuice as a linked module

Steven Enamakelfc97ca8f75f4
diff --git a/crates/openhuman-modules-linked/Cargo.toml b/crates/openhuman-modules-linked/Cargo.toml
index 9b8572ed0a..606f5ee268 100644
--- a/crates/openhuman-modules-linked/Cargo.toml
+++ b/crates/openhuman-modules-linked/Cargo.toml
@@ -16,7 +16,7 @@
# with an exported `linked_module` AND resolves against the workspace `tinybus`
# (0.1.3). These WAIT for the upstream E0.3 work and a re-pin; they have no
# feature here yet (reasons in `src/lib.rs`):
-# tinybox, tinyconnectors, tinyvoice, tinymcp, tinycomputer, tinyjuice,
+# tinybox, tinyconnectors, tinyvoice, tinymcp, tinycomputer,
# tinysearch, tinywallet, tinyhosts.
[package]
diff --git a/crates/openhuman-modules-linked/src/lib.rs b/crates/openhuman-modules-linked/src/lib.rs
index ce6a26acc1..c58e266f76 100644
--- a/crates/openhuman-modules-linked/src/lib.rs
+++ b/crates/openhuman-modules-linked/src/lib.rs
@@ -26,7 +26,7 @@
//! | `tinyvoice` | waits: upstream main needs nested `tinyagents` submodules that collide with the host's in Cargo.lock |
//! | `tinymcp` | waits: `static-link` exists but `linked_module` is not exported |
//! | `tinycomputer` | waits: no `static-link` |
-//! | `tinyjuice` | waits: no `static-link` |
+//! | `tinyjuice` | linked (needs tinyjuice v0.9.0) |
//! | `tinysearch` | waits: v0.5.0 has `static-link` + `linked_module`, but needs `tinybus ^0.1.4` while its nested `vendor/tinybus` is 0.1.2 and the workspace carries 0.1.3, so Cargo cannot resolve the graph |
//! | `tinywallet` | waits: v0.20.0 has `static-link` + `linked_module`, but its nested `vendor/tinybus` (cbb2eea) collides with the workspace `tinybus` (9062dd8) in Cargo.lock; also see the attestation note below |
//! | `tinyhosts` | waits: no module crate yet |
@@ -54,6 +54,8 @@ pub fn linked_modules() -> Vec<(&'static str, LinkedFactory)> {
modules.push(("tinychannels", tinychannels_module::linked_module));
#[cfg(feature = "tinydocs")]
modules.push(("tinydocs", tinydocs_module::linked_module));
+ #[cfg(feature = "tinyjuice")]
+ modules.push(("tinyjuice", tinyjuice_module::linked_module));
modules
}
diff --git a/crates/openhuman-modules-linked/src/lib_tests.rs b/crates/openhuman-modules-linked/src/lib_tests.rs
index d383c7deb0..4862837281 100644
--- a/crates/openhuman-modules-linked/src/lib_tests.rs
+++ b/crates/openhuman-modules-linked/src/lib_tests.rs
@@ -6,6 +6,7 @@ fn every_enabled_feature_registers_exactly_its_own_id() {
let expected: Vec<&str> = [
cfg!(feature = "tinychannels").then_some("tinychannels"),
cfg!(feature = "tinydocs").then_some("tinydocs"),
+ cfg!(feature = "tinyjuice").then_some("tinyjuice"),
]
.into_iter()
.flatten()
@@ -27,3 +28,12 @@ fn install_makes_the_factory_visible_to_the_core() {
"tinychannels"
));
}
+
+#[cfg(feature = "tinyjuice")]
+#[test]
+fn tinyjuice_factory_is_visible_to_the_core() {
+ install();
+ assert!(openhuman_rpc::embed::modules::is_linked_registered(
+ "tinyjuice"
+ ));
+}