Skip to content

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

refactor(tui): route feature gates through openhuman-rpc

Steven Enamakel81e27dc55a81
diff --git a/crates/openhuman-tui/Cargo.toml b/crates/openhuman-tui/Cargo.toml
index af4605dbe7..f01aa00480 100644
--- a/crates/openhuman-tui/Cargo.toml
+++ b/crates/openhuman-tui/Cargo.toml
@@ -7,27 +7,61 @@ license.workspace = true
repository.workspace = true
publish = false
+# Every gate forwards to `openhuman-rpc` alone (chain: core -> embed ->
+# tinyhumans -> rpc -> app/cli/tui); `scripts/ci/check-feature-forwarding.mjs`
+# checks the link. `default` is the set the TUI ships with, named explicitly:
+# the core's contributor gates minus `http-server` (the TUI drives the core
+# in-process and never serves it), plus Sentry. It used to arrive implicitly
+# through a bare workspace `openhuman-core` dependency, which turned on the
+# core's whole `default`.
[features]
-default = ["crash-reporting"]
-crash-reporting = ["dep:dotenvy", "dep:sentry", "openhuman-core/crash-reporting"]
+default = [
+ "crash-reporting",
+ "media",
+ "skills",
+ "flows",
+ "mcp",
+ "channels",
+ "scheduler-gate",
+ "file-logging",
+ "modules",
+]
+crash-reporting = ["openhuman-rpc/crash-reporting"]
+jev = ["openhuman-rpc/jev"]
+http-server = ["openhuman-rpc/http-server"]
+inference = ["openhuman-rpc/inference"]
+documents = ["openhuman-rpc/documents"]
+hosting = ["openhuman-rpc/hosting"]
+modules = ["openhuman-rpc/modules"]
+voice = ["openhuman-rpc/voice"]
+web3 = ["openhuman-rpc/web3"]
+runtime-node = ["openhuman-rpc/runtime-node"]
+media = ["openhuman-rpc/media"]
+flows = ["openhuman-rpc/flows"]
+skills = ["openhuman-rpc/skills"]
+mcp = ["openhuman-rpc/mcp"]
+channels = ["openhuman-rpc/channels"]
+whatsapp-web = ["openhuman-rpc/whatsapp-web"]
+file-logging = ["openhuman-rpc/file-logging"]
+scheduler-gate = ["openhuman-rpc/scheduler-gate"]
+e2e-test-support = ["openhuman-rpc/e2e-test-support"]
[[bin]]
name = "openhuman-tui"
path = "src/main.rs"
[dependencies]
-openhuman-core.workspace = true
+# The only openhuman crate the TUI names: its `host::tui` boot, the embed
+# facades (`openhuman_rpc::embed`) and the session owner
+# (`openhuman_rpc::tinyhumans`) all come through it.
openhuman-rpc = { workspace = true, features = ["session-store"] }
-openhuman-tinyhumans.workspace = true
anyhow = "1"
base64 = "0.22"
chrono = "0.4"
crossterm = "0.29"
-dotenvy = { version = "0.15", optional = true }
log = "0.4"
ratatui = "0.30"
serde_json = "1"
-sentry = { version = "0.47.0", default-features = false, optional = true, features = ["backtrace", "contexts", "panic", "tracing", "debug-images", "httpdate"] }
async-trait = "0.1"
tokio = { version = "1", features = ["rt-multi-thread", "sync", "time"] }
unicode-width = "0.2"