Skip to content

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

refactor(core): simplify tinyflows dependencies

Steven Enamakele4f0bb30cf86
diff --git a/Cargo.lock b/Cargo.lock
index a006c68bbd..5a5d74a1ea 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5450,7 +5450,6 @@ dependencies = [
"tinyflows",
"tinyflows-bus",
"tinyflows-catalog",
- "tinyflows-copilot",
"tinyflows-drivers",
"tinyflows-import",
"tinyflows-module",
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 10f3849323..97aa353ae4 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -71,37 +71,20 @@ tinyflows = { version = "0.8", features = ["mock"], optional = true }
# `tinyflows-schedule` or `tinyflows-drivers`' `schedule` store). It depends on
# serde/chrono alone, like every `*-bus` crate.
tinyflows-bus = { path = "../../vendor/tinyflows/crates/tinyflows-bus" }
-# The saved-flow catalog, split out of this crate's `flows::` domain so a second
-# host storing workflows does not have to reinvent it. `tinyflows-catalog` is
-# the model (flows, revisions, runs, drafts, suggestions, the n8n importer, the
-# save/run safety predicates). tinyflows has no storage backend of its own any
-# more: `tinyflows-drivers` below keeps it on the storage ports.
+# The TinyFlows Catalog wire and DTO contracts used by the host adapter. The
+# module owns catalog rules and storage; OpenHuman calls its bus surface.
#
# Not published, so a path dependency into the same vendored workspace
# `tinyflows` itself comes from — one checkout, one `tinyflows` package, one
# `WorkflowGraph` type. Optional and exclusive to `flows` for the same reason
# the engine is.
tinyflows-catalog = { path = "../../vendor/tinyflows/crates/tinyflows-catalog", optional = true }
-# tinyflows' stores on the storage ports: the flow catalog, flow state and
-# checkpoints (`catalog`, which needs the engine), so they ride the `flows`
-# gate. The cron job/run store is no longer linked: the `tinyflows` module owns
-# it behind `tinyflows_bus::schedule` and reaches the scope's documents through
-# the host's document port (`cron::documents_port`).
-tinyflows-drivers = { path = "../../vendor/tinyflows/crates/tinyflows-drivers", default-features = false, optional = true }
-# The authoring copilot's words: the `workflow_builder` / `flow_discovery`
-# standing archetypes and the turn brief that opens a builder turn. Harness-free
-# by construction — it names no tool trait and no model client — so this host
-# keeps only the wiring: the `Tool` impls, the agent registry entries, and the
-# prompt assembly that appends its own runtime sections.
-tinyflows-copilot = { path = "../../vendor/tinyflows/crates/tinyflows-copilot", optional = true }
# Reads the stores tinyflows hosts used before storage moved onto the ports
-# (`flows.db`, `jobs.db`, `checkpoints.db`, drafts) and copies them into the
-# port-backed stores, read-only (`storage::import`). It needs the engine and the
-# catalog, so those importers ride the `flows` gate (`tinyflows-import/engine`,
-# `store`, `catalog`); the `schedule-read` reader is always on, so a build
-# without `flows` still imports legacy cron jobs: it decodes `jobs.db` into bus
-# records that the host replays through the module's `import_job`/`import_run`
-# store operations (it does not link the scheduler implementation).
+# (`flows.db`, `jobs.db`, `checkpoints.db`, drafts). Only its pure SQLite readers
+# are enabled here: flows and checkpoints use bus records owned by the module;
+# the `schedule-read` reader remains active without the `flows` feature, where
+# the host replays cron records through the module's ImportJob/ImportRun bus
+# members.
tinyflows-import = { path = "../../vendor/tinyflows/crates/tinyflows-import", default-features = false, features = ["schedule-read"] }
# TinyAgents — Rust LLM orchestration framework (LangGraph/LangChain-style):
# durable state graphs, agent-loop harness, model/tool registries, REPL +
@@ -760,7 +743,7 @@ media = ["tinyagents-harness/media"]
# runtime `DomainSet::flows` flag (#4796): the feature narrows the compile-time
# surface, `DomainSet` gates it at runtime.
# NOTE: this gate does NOT drop `tinyagents` itself — 26+ domains consume it.
-flows = ["modules", "dep:tinyflows", "dep:tinyflows-catalog", "dep:tinyflows-copilot", "dep:tinyflows-drivers", "tinyflows-import/flow-read", "tinyflows-import/checkpoint-read", "tinyflows-drivers/catalog", "tinyflows-drivers/schedule"]
+flows = ["modules", "dep:tinyflows", "dep:tinyflows-catalog", "tinyflows-import/flow-read", "tinyflows-import/checkpoint-read"]
# Skills domains: `openhuman::skills` (metadata/discovery/install),
# `openhuman::skill_runtime` (SKILL.md execution + the skill_executor agent),
# and `openhuman::skill_registry` (remote catalogs + the skill_setup agent).