The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(flows): import catalog types directly from tinyflows_catalog
Steven Enamakelcd58093718cf
diff --git a/crates/openhuman-core/src/flows/builder_tools/connection_reads.rs b/crates/openhuman-core/src/flows/builder_tools/connection_reads.rsindex 1f25959de5..cbde9e358d 100644--- a/crates/openhuman-core/src/flows/builder_tools/connection_reads.rs+++ b/crates/openhuman-core/src/flows/builder_tools/connection_reads.rs@@ -137,13 +137,13 @@ impl Tool for ListFlowConnectionsTool {}}-/// Render one [`crate::flows::types::FlowConnection`] as the+/// Render one [`tinyflows_catalog::types::FlowConnection`] as the/// picker JSON shape the agent reads — ids/display/kind/toolkit/scheme plus/// `platform_user_id` (the connected account's own member id, e.g. Slack/// `U123ABC`, or `null` when no identity has synced yet). Never secret/// material. A free function (rather than inline in `execute`) so the/// mapping is unit-testable without a live Composio backend.-pub(super) fn flow_connection_to_json(c: &crate::flows::types::FlowConnection) -> Value {+pub(super) fn flow_connection_to_json(c: &tinyflows_catalog::types::FlowConnection) -> Value {json!({"connection_ref": c.connection_ref,"kind": c.kind,diff --git a/crates/openhuman-core/src/flows/builder_tools/draft_edit.rs b/crates/openhuman-core/src/flows/builder_tools/draft_edit.rsindex f8a584e5d0..0b38182848 100644--- a/crates/openhuman-core/src/flows/builder_tools/draft_edit.rs+++ b/crates/openhuman-core/src/flows/builder_tools/draft_edit.rs@@ -170,7 +170,7 @@ impl Tool for EditWorkflowTool {Some(flow.id.clone()),flow.name.clone(),graph_json,- crate::flows::DraftOrigin::Chat,+ tinyflows_catalog::DraftOrigin::Chat,) {Ok(created) => {let new_draft_id = created.value.id.clone();diff --git a/crates/openhuman-core/src/flows/builder_tools_draft_id_tests.rs b/crates/openhuman-core/src/flows/builder_tools_draft_id_tests.rsindex 31fba06114..c1830a5ad0 100644--- a/crates/openhuman-core/src/flows/builder_tools_draft_id_tests.rs+++ b/crates/openhuman-core/src/flows/builder_tools_draft_id_tests.rs@@ -21,7 +21,7 @@ async fn cancel_flow_run_cancels_when_flow_id_matches_the_owner() {&flow.id,json!({}),serde_json::Map::new(),- crate::flows::FlowRunTrigger::Rpc,+ tinyflows_catalog::FlowRunTrigger::Rpc,).await.unwrap();@@ -154,7 +154,7 @@ async fn validate_workflow_by_draft_id_checks_the_draft_graph() {None,"Draft".to_string(),valid_graph(),- crate::flows::DraftOrigin::Chat,+ tinyflows_catalog::DraftOrigin::Chat,).unwrap().value;@@ -178,7 +178,7 @@ async fn save_workflow_by_draft_id_persists_the_draft_graph_onto_the_flow() {Some(flow_id.clone()),"Draft".to_string(),valid_graph(),- crate::flows::DraftOrigin::Chat,+ tinyflows_catalog::DraftOrigin::Chat,).unwrap().value;diff --git a/crates/openhuman-core/src/flows/builder_tools_reads_and_catalog_tests.rs b/crates/openhuman-core/src/flows/builder_tools_reads_and_catalog_tests.rsindex 3a34d59962..f30b5eef6c 100644--- a/crates/openhuman-core/src/flows/builder_tools_reads_and_catalog_tests.rs+++ b/crates/openhuman-core/src/flows/builder_tools_reads_and_catalog_tests.rs@@ -153,7 +153,7 @@ async fn list_flow_connections_is_read_only() {#[test]fn list_flow_connections_json_surfaces_platform_user_id() {- use crate::flows::types::FlowConnection;+ use tinyflows_catalog::types::FlowConnection;let with_identity = FlowConnection {connection_ref: "composio:slack:ca_slack1".to_string(),diff --git a/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs b/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rsindex 964f2d1585..3e19210624 100644--- a/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs+++ b/crates/openhuman-core/src/flows/builder_tools_validate_and_create_tests.rs@@ -2,7 +2,7 @@ use super::*;#[tokio::test]async fn edit_workflow_rejects_a_result_that_is_structurally_invalid() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);let draft = ops::flows_draft_create(@@ -38,7 +38,7 @@ async fn edit_workflow_rejects_a_result_that_is_structurally_invalid() {#[tokio::test]async fn edit_workflow_rejects_an_engine_incompatible_result() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);let safe_graph = json!({@@ -99,7 +99,7 @@ async fn edit_workflow_rejects_an_engine_incompatible_result() {#[tokio::test]async fn edit_workflow_does_not_persist_an_incompatible_saved_child_reference() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);let legacy_child = json!({@@ -185,7 +185,7 @@ async fn edit_workflow_does_not_persist_an_incompatible_saved_child_reference()#[tokio::test]async fn edit_workflow_preserves_non_engine_gate_edits_in_the_draft() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);let draft = ops::flows_draft_create(@@ -332,7 +332,7 @@ fn validate_workflow_report_not_ok_when_gate_errors_present() {#[tokio::test]async fn edit_workflow_edits_a_draft_and_writes_back() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);@@ -372,7 +372,7 @@ async fn edit_workflow_edits_a_draft_and_writes_back() {#[cfg(unix)]#[tokio::test]async fn edit_workflow_surfaces_draft_write_back_failure() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};use std::os::unix::fs::PermissionsExt;let tmp = TempDir::new().unwrap();@@ -594,7 +594,7 @@ async fn cancel_flow_run_refuses_a_run_the_caller_does_not_own() {&owner_flow.id,json!({}),serde_json::Map::new(),- crate::flows::FlowRunTrigger::Rpc,+ tinyflows_catalog::FlowRunTrigger::Rpc,).await.unwrap();diff --git a/crates/openhuman-core/src/flows/bus/owner_tests.rs b/crates/openhuman-core/src/flows/bus/owner_tests.rsindex 3a880fb50c..e42664ec4e 100644--- a/crates/openhuman-core/src/flows/bus/owner_tests.rs+++ b/crates/openhuman-core/src/flows/bus/owner_tests.rs@@ -24,8 +24,8 @@ fn a_forgotten_owner_is_resolved_again() {assert!(!OWNERS.lock().unwrap().contains_key("owner-test-flow"));}-fn local_flow(id: &str) -> crate::flows::Flow {- crate::flows::Flow {+fn local_flow(id: &str) -> tinyflows_catalog::Flow {+ tinyflows_catalog::Flow {id: id.to_string(),name: id.to_string(),enabled: true,diff --git a/crates/openhuman-core/src/flows/bus/run_digest.rs b/crates/openhuman-core/src/flows/bus/run_digest.rsindex 365d2dcef4..5a7526b4d5 100644--- a/crates/openhuman-core/src/flows/bus/run_digest.rs+++ b/crates/openhuman-core/src/flows/bus/run_digest.rs@@ -6,7 +6,7 @@use crate::config::Config;use crate::core::events::DomainEvent;use crate::flows::store;-use crate::flows::{flow_meta, flow_tag, FlowRun};+use {crate::flows::flow_meta, crate::flows::flow_tag, tinyflows_catalog::FlowRun};use crate::memory::types::{ForgetParams, ItemsListParams, MAX_LIMIT};use crate::memory::{MemoryError, MemoryResult};use async_trait::async_trait;diff --git a/crates/openhuman-core/src/flows/bus/trigger.rs b/crates/openhuman-core/src/flows/bus/trigger.rsindex 530616458d..61f2ae5ea8 100644--- a/crates/openhuman-core/src/flows/bus/trigger.rs+++ b/crates/openhuman-core/src/flows/bus/trigger.rs@@ -6,7 +6,7 @@use crate::config::Config;use crate::core::events::DomainEvent;use crate::flows::store;-use crate::flows::Flow;+use {tinyflows_catalog::Flow};use async_trait::async_trait;use serde_json::Value;use std::collections::HashSet;@@ -146,7 +146,7 @@ impl FlowTriggerSubscriber {flow_id.to_string(),Value::Null,inputs,- crate::flows::FlowRunTrigger::Schedule,+ tinyflows_catalog::FlowRunTrigger::Schedule,);}@@ -178,7 +178,7 @@ impl FlowTriggerSubscriber {flow.id.clone(),payload.clone(),inputs,- crate::flows::FlowRunTrigger::AppEvent,+ tinyflows_catalog::FlowRunTrigger::AppEvent,);}}@@ -198,7 +198,7 @@ impl FlowTriggerSubscriber {flow_id: String,input: Value,inputs: serde_json::Map<String, Value>,- trigger: crate::flows::FlowRunTrigger,+ trigger: tinyflows_catalog::FlowRunTrigger,) {let Some(guard) = self.try_acquire_dispatch(&flow_id) else {tracing::debug!(target: "flows", %flow_id, "[flows] trigger: flow already running — skipping this tick");diff --git a/crates/openhuman-core/src/flows/bus_subscriber_tests.rs b/crates/openhuman-core/src/flows/bus_subscriber_tests.rsindex 472cf4eca5..005787c9e1 100644--- a/crates/openhuman-core/src/flows/bus_subscriber_tests.rs+++ b/crates/openhuman-core/src/flows/bus_subscriber_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::flows::types::FlowRun;+use tinyflows_catalog::types::FlowRun;use tinyflows::model::TriggerKind;#[test]@@ -324,7 +324,7 @@ async fn digest_writes_run_digest_entry_for_completed_run() {"2026-01-01T00:00:00Z",).unwrap();- let step = crate::flows::FlowRunStep {+ let step = tinyflows_catalog::FlowRunStep {node_id: "n1".to_string(),output: json!({ "sent": 3 }),port: None,@@ -474,7 +474,7 @@ fn render_run_digest_is_bounded_and_includes_key_fields() {status: "completed".to_string(),started_at: "2026-01-01T00:00:00Z".to_string(),finished_at: Some("2026-01-01T00:05:00Z".to_string()),- steps: vec![crate::flows::FlowRunStep {+ steps: vec![tinyflows_catalog::FlowRunStep {node_id: "n1".to_string(),output: json!({ "ok": true }),port: None,diff --git a/crates/openhuman-core/src/flows/bus_tests.rs b/crates/openhuman-core/src/flows/bus_tests.rsindex b723aee811..51f900ccf3 100644--- a/crates/openhuman-core/src/flows/bus_tests.rs+++ b/crates/openhuman-core/src/flows/bus_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::flows::Flow;+use {tinyflows_catalog::Flow};use serde_json::json;use tinyflows::model::{Node, NodeKind, WorkflowGraph};diff --git a/crates/openhuman-core/src/flows/catalogue_tests.rs b/crates/openhuman-core/src/flows/catalogue_tests.rsindex 9e219cd363..4929e9b4ac 100644--- a/crates/openhuman-core/src/flows/catalogue_tests.rs+++ b/crates/openhuman-core/src/flows/catalogue_tests.rs@@ -1,7 +1,7 @@//! Tests for the flow → catalogue-entry mapping.use super::*;-use crate::flows::types::Flow;+use tinyflows_catalog::types::Flow;use tinyflows::model::{Node, NodeKind, WorkflowGraph};fn node(id: &str, kind: NodeKind, config: serde_json::Value) -> Node {diff --git a/crates/openhuman-core/src/flows/discovery_tools.rs b/crates/openhuman-core/src/flows/discovery_tools.rsindex 15be6f6767..b755ad9ffd 100644--- a/crates/openhuman-core/src/flows/discovery_tools.rs+++ b/crates/openhuman-core/src/flows/discovery_tools.rs@@ -34,7 +34,7 @@ use sha2::{Digest, Sha256};use crate::config::Config;use crate::flows::store;-use crate::flows::types::{FlowSuggestion, SuggestionStatus};+use tinyflows_catalog::types::{FlowSuggestion, SuggestionStatus};use tinytools::{PermissionLevel, Tool, ToolResult};/// Hard cap on suggestions accepted in one `suggest_workflows` call. Keeps thediff --git a/crates/openhuman-core/src/flows/discovery_tools_tests.rs b/crates/openhuman-core/src/flows/discovery_tools_tests.rsindex a53e4859b3..2143bf3b5b 100644--- a/crates/openhuman-core/src/flows/discovery_tools_tests.rs+++ b/crates/openhuman-core/src/flows/discovery_tools_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::config::Config;use crate::flows::store;-use crate::flows::types::SuggestionStatus;+use tinyflows_catalog::types::SuggestionStatus;use serde_json::json;use std::sync::Arc;use tempfile::TempDir;diff --git a/crates/openhuman-core/src/flows/mod.rs b/crates/openhuman-core/src/flows/mod.rsindex a173cbdf22..808c7246c4 100644--- a/crates/openhuman-core/src/flows/mod.rs+++ b/crates/openhuman-core/src/flows/mod.rs@@ -49,8 +49,8 @@ pub mod tools;// 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};+use tinyflows_catalog::import::n8n as n8n_import;+use {tinyflows_catalog::build_registry, tinyflows_catalog::run_registry, tinyflows_catalog::types};pub use schemas::{all_controller_schemas as all_flows_controller_schemas,@@ -66,10 +66,7 @@ pub use schemas::{// lives in the sibling `tinyflows` domain and persists each finished step onto// the `flow_runs` row through this function as the run executes.pub use store::{kv_get, kv_set, upsert_flow_run_step};-pub use tinyflows_catalog::{- DraftOrigin, Flow, FlowConnection, FlowDraft, FlowImport, FlowRevision, FlowRun, FlowRunStep,- FlowRunTrigger, FlowSuggestion, FlowValidation, FlowValidationError, SuggestionStatus,-};+use {tinyflows_catalog::DraftOrigin, tinyflows_catalog::Flow, tinyflows_catalog::FlowConnection, tinyflows_catalog::FlowDraft, tinyflows_catalog::FlowImport, tinyflows_catalog::FlowRevision, tinyflows_catalog::FlowRun, tinyflows_catalog::FlowRunStep, tinyflows_catalog::FlowRunTrigger, tinyflows_catalog::FlowSuggestion, tinyflows_catalog::FlowValidation, tinyflows_catalog::FlowValidationError, tinyflows_catalog::SuggestionStatus};pub use {node_contracts::all_node_kind_contracts, node_contracts::node_kind_contract,node_contracts::render_node_kinds_line, node_contracts::render_node_kinds_required,diff --git a/crates/openhuman-core/src/flows/ops.rs b/crates/openhuman-core/src/flows/ops.rsindex 490988997c..a75bc65893 100644--- a/crates/openhuman-core/src/flows/ops.rs+++ b/crates/openhuman-core/src/flows/ops.rs@@ -54,12 +54,12 @@ use crate::config::Config;use crate::core::Outcome;use crate::flows::bus;use crate::flows::draft_store;-use crate::flows::run_registry;+use {tinyflows_catalog::run_registry};use crate::flows::store;-use crate::flows::types::{+use tinyflows_catalog::types::{FlowConnection, FlowRunStep, FlowRunTrigger, FlowSuggestion, SuggestionStatus,};-use crate::flows::{Flow, FlowRun};+use {tinyflows_catalog::Flow, tinyflows_catalog::FlowRun};use crate::security::approval::{ApprovalChatContext, FlowRunContext, APPROVAL_CHAT_CONTEXT, APPROVAL_COPILOT_STREAM_CONTEXT,APPROVAL_FLOW_RUN_CONTEXT,diff --git a/crates/openhuman-core/src/flows/ops/drafts.rs b/crates/openhuman-core/src/flows/ops/drafts.rsindex b7f5e095f4..feced646c9 100644--- a/crates/openhuman-core/src/flows/ops/drafts.rs+++ b/crates/openhuman-core/src/flows/ops/drafts.rs@@ -10,8 +10,8 @@ pub fn flows_draft_create(flow_id: Option<String>,name: String,graph: Value,- origin: crate::flows::DraftOrigin,-) -> Result<Outcome<crate::flows::FlowDraft>, String> {+ origin: tinyflows_catalog::DraftOrigin,+) -> Result<Outcome<tinyflows_catalog::FlowDraft>, String> {let draft = draft_store::create_draft(config, flow_id, name, graph, origin).map_err(|e| e.to_string())?;Ok(Outcome::single_log(draft, "draft created"))@@ -21,7 +21,7 @@ pub fn flows_draft_create(pub fn flows_draft_get(config: &Config,id: &str,-) -> Result<Outcome<crate::flows::FlowDraft>, String> {+) -> Result<Outcome<tinyflows_catalog::FlowDraft>, String> {let draft = draft_store::get_draft(config, id).map_err(|e| e.to_string())?.ok_or_else(|| format!("draft '{id}' not found"))?;@@ -36,14 +36,14 @@ pub fn flows_draft_update(name: Option<String>,graph: Option<Value>,flow_id: Option<Option<String>>,-) -> Result<Outcome<crate::flows::FlowDraft>, String> {+) -> Result<Outcome<tinyflows_catalog::FlowDraft>, String> {let draft =draft_store::update_draft(config, id, name, graph, flow_id).map_err(|e| e.to_string())?;Ok(Outcome::single_log(draft, "draft updated"))}/// Lists all drafts, newest-updated first.-pub fn flows_draft_list(config: &Config) -> Result<Outcome<Vec<crate::flows::FlowDraft>>, String> {+pub fn flows_draft_list(config: &Config) -> Result<Outcome<Vec<tinyflows_catalog::FlowDraft>>, String> {let drafts = draft_store::list_drafts(config).map_err(|e| e.to_string())?;Ok(Outcome::single_log(drafts, "drafts listed"))}diff --git a/crates/openhuman-core/src/flows/ops/updates.rs b/crates/openhuman-core/src/flows/ops/updates.rsindex d181674cd7..2cedc5ac21 100644--- a/crates/openhuman-core/src/flows/ops/updates.rs+++ b/crates/openhuman-core/src/flows/ops/updates.rs@@ -235,7 +235,7 @@ pub fn flows_get_history(config: &Config,id: &str,limit: usize,-) -> Result<Outcome<Vec<crate::flows::FlowRevision>>, String> {+) -> Result<Outcome<Vec<tinyflows_catalog::FlowRevision>>, String> {let revisions = store::list_revisions(config, id, limit).map_err(|e| e.to_string())?;let count = revisions.len();Ok(Outcome::single_log(diff --git a/crates/openhuman-core/src/flows/ops/validation.rs b/crates/openhuman-core/src/flows/ops/validation.rsindex a09e4298fb..e4a07ccf03 100644--- a/crates/openhuman-core/src/flows/ops/validation.rs+++ b/crates/openhuman-core/src/flows/ops/validation.rs@@ -26,7 +26,7 @@ pub(crate) fn validate_and_migrate_graph(graph_json: Value) -> Result<WorkflowGr/// engine, not about OpenHuman. This host used to carry the whole walk.pub(crate) fn engine_compatibility_errors(graph: &WorkflowGraph,-) -> Vec<crate::flows::FlowValidationError> {+) -> Vec<tinyflows_catalog::FlowValidationError> {tinyflows::compat::errors(graph).into_iter().map(to_compat_validation_error)@@ -42,8 +42,8 @@ pub(crate) use tinyflows::compat::UNSUPPORTED_NESTED_CONDITIONAL_FAN_IN;fn to_compat_validation_error(error: tinyflows::compat::CompatibilityError,-) -> crate::flows::FlowValidationError {- crate::flows::FlowValidationError {+) -> tinyflows_catalog::FlowValidationError {+ tinyflows_catalog::FlowValidationError {code: error.code.to_string(),message: error.message,node_id: error.node_id,@@ -81,8 +81,8 @@ pub(crate) use tinyflows::migrate::deserialize_graph as migrate_and_deserialize_/// stays consistent across `flows_validate` and the builder gate stack.pub(crate) fn to_flow_validation_error(err: &tinyflows::error::ValidationError,-) -> crate::flows::FlowValidationError {- crate::flows::FlowValidationError {+) -> tinyflows_catalog::FlowValidationError {+ tinyflows_catalog::FlowValidationError {code: err.code().to_string(),message: err.to_string(),node_id: err.node_id().map(str::to_string),@@ -137,8 +137,8 @@ pub(crate) fn config_aware_engine_compatibility_errors(/// save. Pure (no persistence, no config) — `valid == false` is a normal/// result, NOT an `Err`; `Err` is reserved for internal serialization faults/// (there are none on this path today).-pub fn flows_validate(graph_json: Value) -> Outcome<crate::flows::FlowValidation> {- use crate::flows::FlowValidation;+pub fn flows_validate(graph_json: Value) -> Outcome<tinyflows_catalog::FlowValidation> {+ use {tinyflows_catalog::FlowValidation};tracing::debug!(target: "flows", "[flows] flows_validate: validating candidate graph");// Split migrate/deserialize (a genuinely single failure) from structural// validation (which can surface many problems at once). A pre-validation@@ -153,7 +153,7 @@ pub fn flows_validate(graph_json: Value) -> Outcome<crate::flows::FlowValidationFlowValidation {valid: false,errors: vec![error.clone()],- error_details: vec![crate::flows::FlowValidationError {+ error_details: vec![tinyflows_catalog::FlowValidationError {code: "unparseable_graph".to_string(),message: error,node_id: None,@@ -254,8 +254,8 @@ pub fn flows_validate(graph_json: Value) -> Outcome<crate::flows::FlowValidationpub fn flows_import(graph_json: Value,format: Option<String>,-) -> Result<Outcome<crate::flows::FlowImport>, String> {- use crate::flows::{n8n_import, FlowImport};+) -> Result<Outcome<tinyflows_catalog::FlowImport>, String> {+ use {crate::flows::n8n_import, tinyflows_catalog::FlowImport};let requested = format.as_deref()diff --git a/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs b/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rsindex 154428d101..5625e601de 100644--- a/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs+++ b/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs@@ -457,7 +457,7 @@ fn referenced_child_compatibility_stops_at_saved_workflow_cycles() {#[tokio::test]async fn draft_promote_creates_a_new_flow_and_removes_the_draft() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);@@ -484,7 +484,7 @@ async fn draft_promote_creates_a_new_flow_and_removes_the_draft() {#[tokio::test]async fn draft_promote_with_flow_id_updates_the_existing_flow() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);@@ -517,7 +517,7 @@ async fn draft_promote_with_flow_id_updates_the_existing_flow() {#[tokio::test]async fn draft_promote_of_invalid_graph_is_rejected_and_keeps_the_draft() {- use crate::flows::DraftOrigin;+ use {tinyflows_catalog::DraftOrigin};let tmp = TempDir::new().unwrap();let config = test_config(&tmp);diff --git a/crates/openhuman-core/src/flows/ops_tests.rs b/crates/openhuman-core/src/flows/ops_tests.rsindex d03383fb78..76893e2ac0 100644--- a/crates/openhuman-core/src/flows/ops_tests.rs+++ b/crates/openhuman-core/src/flows/ops_tests.rs@@ -243,7 +243,7 @@ fn http_summary(name: &str, scheme: &str) -> HttpCredentialSummary {// ── Flow Scout suggestion lifecycle ──────────────────────────────────────────fn seed_suggestion(config: &Config, id: &str) {- let s = crate::flows::FlowSuggestion {+ let s = tinyflows_catalog::FlowSuggestion {id: id.to_string(),title: format!("Idea {id}"),one_liner: "does a thing".to_string(),@@ -254,7 +254,7 @@ fn seed_suggestion(config: &Config, id: &str) {suggested_slugs: vec![],build_prompt: "Build a workflow…".to_string(),confidence: 0.5,- status: crate::flows::SuggestionStatus::New,+ status: tinyflows_catalog::SuggestionStatus::New,created_at: "2026-07-05T00:00:00Z".to_string(),source_run_id: None,};diff --git a/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs b/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rsindex 4c8de3580d..66328daefa 100644--- a/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs+++ b/crates/openhuman-core/src/flows/ops_validate_warnings_and_connections_tests.rs@@ -508,7 +508,7 @@ async fn list_suggestions_filters_by_status() {seed_suggestion(&config, "s1");seed_suggestion(&config, "s2");- let active = flows_list_suggestions(&config, Some(crate::flows::SuggestionStatus::New))+ let active = flows_list_suggestions(&config, Some(tinyflows_catalog::SuggestionStatus::New)).await.unwrap();assert_eq!(active.value.len(), 2);@@ -531,7 +531,7 @@ async fn dismiss_and_mark_built_move_suggestions_out_of_active() {assert_eq!(b.value["built"], json!(true));// Neither is in the active (New) set anymore.- let active = flows_list_suggestions(&config, Some(crate::flows::SuggestionStatus::New))+ let active = flows_list_suggestions(&config, Some(tinyflows_catalog::SuggestionStatus::New)).await.unwrap();assert!(active.value.is_empty());diff --git a/crates/openhuman-core/src/flows/schemas_handlers.rs b/crates/openhuman-core/src/flows/schemas_handlers.rsindex 0a8e9e2aa5..737ce0e291 100644--- a/crates/openhuman-core/src/flows/schemas_handlers.rs+++ b/crates/openhuman-core/src/flows/schemas_handlers.rs@@ -147,7 +147,7 @@ fn handle_run(params: Map<String, Value>) -> ControllerFuture {id.trim(),input,inputs,- crate::flows::FlowRunTrigger::Rpc,+ tinyflows_catalog::FlowRunTrigger::Rpc,).await?,)@@ -166,7 +166,7 @@ fn handle_run_detached(params: Map<String, Value>) -> ControllerFuture {id.trim(),input,inputs,- crate::flows::FlowRunTrigger::Rpc,+ tinyflows_catalog::FlowRunTrigger::Rpc,).await?,)@@ -336,7 +336,7 @@ fn handle_list_suggestions(params: Map<String, Value>) -> ControllerFuture {.and_then(Value::as_str).map(str::trim).filter(|s| !s.is_empty())- .map(crate::flows::SuggestionStatus::from_str_lossy);+ .map(tinyflows_catalog::SuggestionStatus::from_str_lossy);to_json(ops::flows_list_suggestions(&config, status).await?)})}@@ -446,7 +446,7 @@ fn handle_draft_create(params: Map<String, Value>) -> ControllerFuture {.get("origin").and_then(Value::as_str).and_then(|s| serde_json::from_value(Value::String(s.to_string())).ok())- .unwrap_or(crate::flows::DraftOrigin::Canvas);+ .unwrap_or(tinyflows_catalog::DraftOrigin::Canvas);to_json(ops::flows_draft_create(&config, flow_id, name, graph, origin,)?)diff --git a/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs b/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rsindex 8e984cc5d6..2a01bc9aaf 100644--- a/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs+++ b/crates/openhuman-core/src/flows/tinyflows/langfuse_export.rs@@ -29,7 +29,7 @@ use tinyagents_harness::{LangfuseAuth, LangfuseClient, LangfuseTraceConfig};use tinyflows::engine::GraphObservation as FlowObservation;use crate::config::Config;-use crate::flows::FlowRunTrigger;+use {tinyflows_catalog::FlowRunTrigger};use crate::security::credentials::session_support::direct_backend_credential;const LOG_TARGET: &str = "flows::langfuse";diff --git a/crates/openhuman-core/src/flows/tinyflows/observability.rs b/crates/openhuman-core/src/flows/tinyflows/observability.rsindex 4c8c92221d..3b2a606099 100644--- a/crates/openhuman-core/src/flows/tinyflows/observability.rs+++ b/crates/openhuman-core/src/flows/tinyflows/observability.rs@@ -32,7 +32,7 @@ use tinyflows::observability::{ExecutionStep, Run, RunObserver, StepStatus};use crate::config::Config;use crate::core::bus::BUS;use crate::core::events::DomainEvent;-use crate::flows::{upsert_flow_run_step, FlowRunStep};+use {crate::flows::upsert_flow_run_step, tinyflows_catalog::FlowRunStep};/// Maps a live [`StepStatus`] to the stable `"success"`/`"error"` string/// persisted on [`FlowRunStep::status`] and published ondiff --git a/crates/openhuman-core/src/flows/tools.rs b/crates/openhuman-core/src/flows/tools.rsindex dbb6caef20..53067f3d15 100644--- a/crates/openhuman-core/src/flows/tools.rs+++ b/crates/openhuman-core/src/flows/tools.rs@@ -304,7 +304,7 @@ impl Tool for RunFlowTool {&flow_id,input,inputs,- crate::flows::types::FlowRunTrigger::Rpc,+ tinyflows_catalog::types::FlowRunTrigger::Rpc,).await{diff --git a/crates/openhuman-core/src/web3/wallet/mod.rs b/crates/openhuman-core/src/web3/wallet/mod.rsindex c514c944c7..e3e8c67b37 100644--- a/crates/openhuman-core/src/web3/wallet/mod.rs+++ b/crates/openhuman-core/src/web3/wallet/mod.rs@@ -75,12 +75,9 @@ pub use schemas::{all_wallet_registered_controllers, schemas, wallet_schemas,};#[cfg(feature = "web3")]-pub use tinywallet_web3::crypto::abi::encode_erc20_transfer;+use {tinywallet_web3::crypto::abi::encode_erc20_transfer};#[cfg(feature = "web3")]-pub use tinywallet_web3::crypto::defaults::{- evm_asset_catalog, explorer_tx_url, EvmNetwork, RpcSource, SolanaCluster,- WalletAssetDefinition, WalletNetworkDefaults,-};+use {tinywallet_web3::crypto::defaults::evm_asset_catalog, tinywallet_web3::crypto::defaults::explorer_tx_url, tinywallet_web3::crypto::defaults::EvmNetwork, tinywallet_web3::crypto::defaults::RpcSource, tinywallet_web3::crypto::defaults::SolanaCluster, tinywallet_web3::crypto::defaults::WalletAssetDefinition, tinywallet_web3::crypto::defaults::WalletNetworkDefaults};#[cfg(feature = "web3")]pub use {ops::reveal_recovery_phrase, ops::setup, ops::status, ops::RevealRecoveryPhraseResult,diff --git a/crates/openhuman-core/src/web3/wallet/ops/types.rs b/crates/openhuman-core/src/web3/wallet/ops/types.rsindex b09dea6ef9..cbea45353d 100644--- a/crates/openhuman-core/src/web3/wallet/ops/types.rs+++ b/crates/openhuman-core/src/web3/wallet/ops/types.rs@@ -5,11 +5,7 @@ use serde::{Deserialize, Serialize};// The wallet's vocabulary lives in `tinywallet-web3`, which the engine and the// tools share; the host keeps only the persisted shape and the setup params.use tinywallet_web3::crypto::wallet::{WalletAccount, WalletSetupSource};-/// Error message returned when the wallet has not been set up yet. Downstream-/// boundaries match against it to classify the condition as an expected user-/// state, so it stays out of Sentry; it is defined once in `tinywallet-web3`-/// so the producer and any classifier cannot drift apart.-+/// Input for creating or replacing the operator wallet.#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]#[serde(rename_all = "camelCase")]pub struct WalletSetupParams {diff --git a/crates/openhuman-core/src/web3/wallet/schemas.rs b/crates/openhuman-core/src/web3/wallet/schemas.rsindex 5ef0ba9155..48fc142630 100644--- a/crates/openhuman-core/src/web3/wallet/schemas.rs+++ b/crates/openhuman-core/src/web3/wallet/schemas.rs@@ -8,7 +8,7 @@ use super::execution::{balances, chain_status, execute_prepared, lookup_tx, network_defaults, prepare_transfer,supported_assets, tx_receipt, tx_status, ExecutePreparedParams, PrepareTransferParams,};-use {super::encode_erc20_transfer, super::EvmNetwork, tinywallet_web3::crypto::wallet::WalletChain};+use {tinywallet_web3::crypto::abi::encode_erc20_transfer, tinywallet_web3::crypto::defaults::EvmNetwork, tinywallet_web3::crypto::wallet::WalletChain};use {super::ops::WalletSetupParams, tinywallet_web3::crypto::wallet::WalletAccount,tinywallet_web3::crypto::wallet::WalletSetupSource,