Skip to content

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

chore: files changed crates/openhuman-modules-linked/Cargo.toml,crates/openhuman-modules-linked/src/

Steven Enamakelcb5d81c71800
diff --git a/crates/openhuman-modules-linked/Cargo.toml b/crates/openhuman-modules-linked/Cargo.toml
index 775ce91104..8ce1a0c8c7 100644
--- a/crates/openhuman-modules-linked/Cargo.toml
+++ b/crates/openhuman-modules-linked/Cargo.toml
@@ -17,7 +17,7 @@
# (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,
-# tinysearch, tinywallet, tinyhosts.
+# tinywallet, tinyhosts.
[package]
name = "openhuman-modules-linked"
@@ -30,7 +30,8 @@ publish = false
[features]
default = []
-all = ["tinychannels", "tinydocs"]
+all = ["tinychannels", "tinydocs", "tinysearch"]
+tinysearch = ["dep:tinysearch"]
tinychannels = ["dep:tinychannels-module"]
tinydocs = ["dep:tinydocs-module"]
@@ -41,6 +42,7 @@ log = "0.4"
tinydocs-module = { path = "../../vendor/tinydocs/crates/tinydocs-module", features = ["static-link"], optional = true }
tinychannels-module = { path = "../../vendor/tinychannels/crates/tinychannels-module", features = ["static-link"], optional = true }
+tinysearch = { path = "../../vendor/tinysearch/crates/tinysearch", features = ["static-link"], optional = true }
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)'] }
diff --git a/crates/openhuman-modules-linked/src/lib.rs b/crates/openhuman-modules-linked/src/lib.rs
index fba9d1b7cc..b78362cff0 100644
--- a/crates/openhuman-modules-linked/src/lib.rs
+++ b/crates/openhuman-modules-linked/src/lib.rs
@@ -21,13 +21,13 @@
//! | ---------------- | --------------------------------- |
//! | `tinychannels` | linked |
//! | `tinydocs` | linked (needs tinydocs v0.2.2, whose module crate pins the workspace `tinybus` 0.1.3) |
+//! | `tinysearch` | linked (needs tinysearch v0.5.0) |
//! | `tinybox` | waits: its module crate pins `tinybus =0.1.2`, which cannot unify with the workspace `tinybus` path |
//! | `tinyconnectors` | waits: its workspace pins a `tinybus` the host does not carry (0.1.2 at the pin, 0.1.4 upstream) |
//! | `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` |
-//! | `tinysearch` | waits: no `static-link` |
//! | `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 = "tinysearch")]
+ modules.push(("tinysearch", tinysearch::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..090358b235 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 = "tinysearch").then_some("tinysearch"),
]
.into_iter()
.flatten()
@@ -27,3 +28,12 @@ fn install_makes_the_factory_visible_to_the_core() {
"tinychannels"
));
}
+
+#[cfg(feature = "tinysearch")]
+#[test]
+fn install_registers_tinysearch_for_the_core() {
+ install();
+ assert!(openhuman_rpc::embed::modules::is_linked_registered(
+ "tinysearch"
+ ));
+}