Skip to content

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

chore(openhuman-core): add tinyjuice dependency for HTML-to-markdown transform

Steven Enamakelbd436a84ce5b
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 485d0fc6e9..583a22904a 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -537,6 +537,27 @@ tinyvoice-bus = { path = "../../vendor/tinyvoice/crates/tinyvoice-bus", optional
# After cloning: `git submodule update --init vendor/tinyjuice`.
tinyjuice-bus = { path = "../../vendor/tinyjuice/crates/tinyjuice-bus" }
+# TinyJuice — the engine crate, for its pure content transforms only.
+#
+# The router, the CCR cache, the rule engine and ranged retrieval stay behind
+# the loadable-module boundary: those need the module's state, its disk tier and
+# its retrieval markers, and nothing here calls them. What this dependency buys
+# is the stateless half — `compressors::html::html_to_markdown`, which `web_fetch`
+# runs on every HTML response so the model reads a page's prose, headings and
+# links instead of its minified JS.
+#
+# That transform has no business being reimplemented here: it is content
+# handling, TinyJuice owns content handling, and a second copy would drift.
+# Reaching it through TinyBus instead would make a core tool's default output
+# depend on whether an optional cdylib loaded and on `compaction_enabled`
+# (default `false`), which is not a defensible way to decide what a fetched page
+# looks like. See `src/inference/tokenjuice/README.md`.
+#
+# `default-features = false` drops `tinyjuice-treesitter` and with it the three
+# tree-sitter grammars — those serve the code compressor, which lives behind the
+# module boundary and is not called from here.
+tinyjuice = { path = "../../vendor/tinyjuice", default-features = false }
+
# 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.