Skip to content

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

feat(flows): add tinyflows-catalog and tinyflows-sqlite dependencies

Steven Enamakel613d366bcbe6
diff --git a/Cargo.toml b/Cargo.toml
index 9354248c07..80b12ff578 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -145,6 +145,18 @@ tinyplace = "2.0"
# Optional: exclusive to the default-ON `flows` feature (#4797). A slim build
# without `flows` drops this crate and its `jaq-*` JSON-query stack entirely.
tinyflows = { version = "0.8", features = ["mock"], optional = true }
+# The saved-flow catalog and its SQLite backend, split out of this crate's
+# `flows::` domain so a second host storing workflows does not have to reinvent
+# them. `tinyflows-catalog` is the model (flows, revisions, runs, drafts,
+# suggestions, the n8n importer, the save/run safety predicates);
+# `tinyflows-sqlite` is one storage backend for it plus the engine checkpointer.
+#
+# Neither is published, so both are path dependencies 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-sqlite = { path = "vendor/tinyflows/crates/tinyflows-sqlite", optional = true }
# TinyAgents — Rust LLM orchestration framework (LangGraph/LangChain-style):
# durable state graphs, agent-loop harness, model/tool registries, REPL +
# `.rag` workflow language. openhuman's agent engine + orchestration run on this
@@ -1008,7 +1020,7 @@ 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 = ["dep:tinyflows"]
+flows = ["dep:tinyflows", "dep:tinyflows-catalog", "dep:tinyflows-sqlite"]
# 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).
diff --git a/src/openhuman/flows/ops.rs b/src/openhuman/flows/ops.rs
index 8cf70ecf22..b551a9863f 100644
--- a/src/openhuman/flows/ops.rs
+++ b/src/openhuman/flows/ops.rs
@@ -14,7 +14,7 @@ use tokio_util::sync::CancellationToken;
use crate::openhuman::agent::turn_origin::{with_origin, AgentTurnOrigin, TrustedAutomationSource};
use crate::openhuman::config::Config;
-use crate::openhuman::flows::build_registry;
+use tinyflows_catalog::build_registry;
use crate::openhuman::flows::bus;
use crate::openhuman::flows::draft_store;
use crate::openhuman::flows::run_registry;