Skip to content

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

feat(flows): re-export types and registries from tinyflows-catalog

Steven Enamakel3382d26e547b
diff --git a/src/openhuman/flows/mod.rs b/src/openhuman/flows/mod.rs
index 636c50c818..d093152044 100644
--- a/src/openhuman/flows/mod.rs
+++ b/src/openhuman/flows/mod.rs
@@ -29,23 +29,28 @@
//! `use`, this family must convert to the facade+stub shape (see `voice/`).
pub mod agents;
-mod build_registry;
pub mod builder_tools;
pub mod bus;
pub mod discovery_tools;
mod draft_store;
pub mod medulla_bridge;
pub mod memory_tools;
-mod n8n_import;
pub mod node_contracts;
pub mod ops;
-mod run_registry;
mod schemas;
mod store;
/// The tinyflows engine seam (formerly `openhuman::tinyflows`).
pub mod tinyflows;
pub mod tools;
-mod types;
+
+// The saved-flow model, the cancellation registries and the format importers
+// are `tinyflows-catalog`'s, not this host's — a graph's identity, revision
+// history, runs, drafts and suggestions are the same shapes for anyone keeping
+// a library of workflows. These aliases keep the existing
+// `flows::types::…` / `flows::run_registry::…` / `flows::n8n_import::…` call
+// sites resolving unchanged while the definitions live upstream.
+pub use tinyflows_catalog::import::n8n as n8n_import;
+pub use tinyflows_catalog::{build_registry, run_registry, types};
pub use schemas::{
all_controller_schemas as all_flows_controller_schemas,
@@ -65,7 +70,7 @@ pub use node_contracts::{
NodeKindContract, PortSpec, NODE_KINDS,
};
pub use store::{kv_get, kv_set, upsert_flow_run_step};
-pub use types::{
+pub use tinyflows_catalog::{
DraftOrigin, Flow, FlowConnection, FlowDraft, FlowImport, FlowRevision, FlowRun, FlowRunStep,
FlowRunTrigger, FlowSuggestion, FlowValidation, FlowValidationError, SuggestionStatus,
};
diff --git a/src/openhuman/flows/tinyflows/mod.rs b/src/openhuman/flows/tinyflows/mod.rs
index d2245585e4..d2ec050e90 100644
--- a/src/openhuman/flows/tinyflows/mod.rs
+++ b/src/openhuman/flows/tinyflows/mod.rs
@@ -8,7 +8,7 @@
//! `memory` node's `MemoryProvider` adapter (`OpenHumanMemory`) lives in its
//! own [`memory_adapter`] module, per this repo's ~500-line file-size
//! convention (`caps.rs` is already large); the durable SQLite checkpoint
-//! backend lives in [`checkpoint_sqlite`]; run observability logging lives
+//! backend lives in `tinyflows_sqlite::checkpoint`; run observability logging lives
//! in [`observability`]; post-run Langfuse export of a run's durable graph
//! observations lives in [`langfuse_export`]. The `flows::` domain
//! (`src/openhuman/flows/ops.rs`) calls [`build_capabilities`] /
@@ -16,9 +16,6 @@
//! [`langfuse_export::export_flow_run_trace`] after it settles.
pub mod caps;
-pub mod checkpoint_sqlite;
-#[cfg(test)]
-mod checkpoint_sqlite_tests;
pub mod langfuse_export;
pub mod memory_adapter;
/// End-to-end coverage for the `memory` node through the REAL engine + real
@@ -30,5 +27,11 @@ pub mod observability;
#[cfg(test)]
mod tests;
+/// The durable SQLite checkpoint store. It lives in `tinyflows-sqlite` — the
+/// schema and the on-disk format are shared with every host that resumes an
+/// interrupted run — and is re-exported under its historical name so existing
+/// `tinyflows::checkpoint_sqlite::…` paths keep resolving.
+pub use tinyflows_sqlite::checkpoint as checkpoint_sqlite;
+
pub use caps::{build_capabilities, open_flow_checkpointer};
pub use memory_adapter::OpenHumanMemory;