Skip to content

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

feat(deps): add tinydocs-bus and tinyvoice-bus as optional path dependencies

Steven Enamakelc8a27e20f8e8
diff --git a/Cargo.toml b/Cargo.toml
index be8a2607d6..e06aeced21 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -475,24 +475,43 @@ crossterm = { version = "0.29", optional = true }
unicode-width = { version = "0.2", optional = true }
# TinyDocs — the document wire contract, and nothing else.
#
-# `default-features = false` is load-bearing: it takes the spec types, their
-# size limits, the validation rules and the PNG/JPEG header reader, and leaves
-# every writer behind. Synthesis happens in the `tinydocs` TinyBus module
+# `tinydocs-bus` is the whole dependency: the spec types, their size limits,
+# the validation rules, the PNG/JPEG header reader, the error vocabulary and
+# the member names. It is `serde` + `thiserror` and nothing else — no writer,
+# no `tinybus`, no runtime. Synthesis happens in the `tinydocs` TinyBus module
# (`src/openhuman/modules/`), so this build carries the shape of a document
-# without carrying the code that produces one — which is why `docx-rs`,
+# without carrying the code that produces one, which is why `docx-rs`,
# `ppt-rs` and `pdf-extract` are absent from the graph entirely rather than
# merely gated.
#
# Sharing the contract rather than re-declaring it is the point. The specs are
# what an LLM is shown as a JSON tool schema and what the module validates
# against; two definitions of that would drift, and the drift would be a tool
-# description promising limits the module does not enforce.
+# description promising limits the module does not enforce. This crate carried
+# a verbatim copy of the contract for exactly that reason and paid exactly that
+# risk — `src/openhuman/tools/impl/document/format/` was 1,873 lines that
+# differed from `crates/tinydocs-bus/src/` only in doc-link paths.
#
# Vendored as a path dependency like `tinyhumans-sdk`: the crate is not
# published to crates.io, so there is no `[patch.crates-io]` entry for it.
# After cloning: `git submodule update --init vendor/tinydocs`.
#
# Optional: exclusive to the default-ON `documents` feature.
+tinydocs-bus = { path = "vendor/tinydocs/crates/tinydocs-bus", optional = true }
+
+# TinyVoice — the voice wire contract, and nothing else.
+#
+# Same arrangement as `tinydocs-bus`: member names, the payload types the
+# module answers with, and the contract version, at a cost of `serde`. The
+# processing lives in the `tinyvoice` TinyBus module, so nothing here decodes
+# audio. `src/openhuman/modules/voice.rs` used to redeclare these types with a
+# comment saying it did so because this crate did not depend on TinyVoice;
+# it does now.
+#
+# After cloning: `git submodule update --init vendor/tinyvoice`.
+#
+# Optional: exclusive to the default-ON `voice` feature.
+tinyvoice-bus = { path = "vendor/tinyvoice/crates/tinyvoice-bus", optional = true }
# 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