Skip to content

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

chore(deps): add tinyjuice-bus dependency for compression wire contract

Steven Enamakel67d412f2db4a
diff --git a/Cargo.toml b/Cargo.toml
index 4c8cf8dd96..691220e78c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -513,6 +513,25 @@ tinydocs-bus = { path = "vendor/tinydocs/crates/tinydocs-bus", optional = true }
# Optional: exclusive to the default-ON `voice` feature.
tinyvoice-bus = { path = "vendor/tinyvoice/crates/tinyvoice-bus", optional = true }
+# TinyJuice — the compression wire contract, and nothing else.
+#
+# Same arrangement as `tinydocs-bus` and `tinyvoice-bus`: the payload types, the
+# request and response envelopes, the member names and the contract version, at
+# a cost of `serde`. The router, the compressors, the CCR cache and the rule
+# engine all live in the `tinyjuice` module and are not in this build.
+#
+# `src/openhuman/inference/tokenjuice/types.rs` was a 259-line hand-copy of
+# these types headed "Stable wire types shared with the separately compiled
+# TinyJuice module" — shared by convention and checked by nobody. It is a
+# re-export now.
+#
+# Not optional: `inference::tokenjuice` is always compiled (the compression
+# middleware sits in the agent turn path, which is kernel), so the contract has
+# no gate to hang off.
+#
+# After cloning: `git submodule update --init vendor/tinyjuice`.
+tinyjuice-bus = { path = "vendor/tinyjuice/crates/tinyjuice-bus" }
+
# TinyHosts — the unified hosting API: one `Host` trait over a hosting provider,
# and the `launch` flow that puts a Next.js application, its database, its
# environment and its domains on it in the one order that works.