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(tests): update imports to use tinyflows_bus catalog types
Steven Enamakel213df95be082
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 1bbb46f0ff..e84a7b2f15 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@@ -159,7 +159,7 @@ async fn list_flow_connections_is_read_only() {#[test]fn list_flow_connections_json_surfaces_platform_user_id() {- use tinyflows_catalog::types::FlowConnection;+ use crate::flows::ops::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 86e936c74c..dc7003c9bc 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 tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::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 tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::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 tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::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 tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::catalog::DraftOrigin;let tmp = TempDir::new().unwrap();let config = test_config(&tmp);let draft = ops::flows_draft_create(@@ -303,7 +303,7 @@ async fn validate_workflow_requires_a_base() {#[tokio::test]async fn edit_workflow_edits_a_draft_and_writes_back() {- use tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::catalog::DraftOrigin;let tmp = TempDir::new().unwrap();let config = test_config(&tmp);@@ -343,7 +343,7 @@ async fn edit_workflow_edits_a_draft_and_writes_back() {// actually landed.#[tokio::test]async fn edit_workflow_surfaces_draft_write_back_failure() {- use tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::catalog::DraftOrigin;let tmp = TempDir::new().unwrap();let config = test_config(&tmp);diff --git a/crates/openhuman-core/src/flows/bus_subscriber_tests.rs b/crates/openhuman-core/src/flows/bus_subscriber_tests.rsindex 73e790cedf..9fbbcfd9c5 100644--- a/crates/openhuman-core/src/flows/bus_subscriber_tests.rs+++ b/crates/openhuman-core/src/flows/bus_subscriber_tests.rs@@ -1,5 +1,6 @@use super::*;-use tinyflows_catalog::types::{FlowRun, FlowRunTrigger};+use tinyflows_bus::catalog::{FlowRun, FlowRunStep};+use tinyflows_bus::runs::FlowRunTrigger;#[test]fn name_and_domains_are_stable() {@@ -183,7 +184,7 @@ async fn digest_ignores_cancelled_run() {#[tokio::test]async fn digest_rendering_scrubs_persisted_outputs() {- let step = tinyflows_catalog::FlowRunStep {+ let step = FlowRunStep {node_id: "n1".to_string(),output: json!({"sent": 3,@@ -197,7 +198,7 @@ async fn digest_rendering_scrubs_persisted_outputs() {// Generated synthetic fixture data exercises text-token scrubbing; it is// deterministic test input and never a real credential.let token_output = format!("sk-ant-api03-{}", "0123456789abcdef".repeat(3));- let string_step = tinyflows_catalog::FlowRunStep {+ let string_step = FlowRunStep {node_id: "n2".to_string(),output: json!(token_output.clone()),port: None,@@ -337,7 +338,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![tinyflows_catalog::FlowRunStep {+ steps: vec![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 87652d7143..522085eca6 100644--- a/crates/openhuman-core/src/flows/bus_tests.rs+++ b/crates/openhuman-core/src/flows/bus_tests.rs@@ -1,7 +1,7 @@use super::*;use serde_json::json;-use tinyflows::model::{Node, NodeKind, WorkflowGraph};-use tinyflows_catalog::Flow;+use tinyflows::model::{Node, NodeKind};+use tinyflows_bus::catalog::Workflow as Flow;/// Binds a fresh in-memory reference engine to `config`'s workspace and/// returns it, so the digest tests write and read back through one store.@@ -56,10 +56,10 @@ fn flow_with_trigger_config(id: &str, enabled: bool, trigger_config: Value) -> Fid: id.to_string(),name: id.to_string(),enabled,- graph: WorkflowGraph {- nodes: vec![trigger_node(trigger_config)],- ..Default::default()- },+ graph: json!({+ "nodes": [serde_json::to_value(trigger_node(trigger_config)).unwrap()],+ "edges": []+ }),created_at: "2026-01-01T00:00:00Z".to_string(),updated_at: "2026-01-01T00:00:00Z".to_string(),last_run_at: None,diff --git a/crates/openhuman-core/src/flows/catalogue_tests.rs b/crates/openhuman-core/src/flows/catalogue_tests.rsindex 42c2b52b65..7d6011eb82 100644--- a/crates/openhuman-core/src/flows/catalogue_tests.rs+++ b/crates/openhuman-core/src/flows/catalogue_tests.rs@@ -2,7 +2,7 @@use super::*;use tinyflows::model::{Node, NodeKind, WorkflowGraph};-use tinyflows_catalog::types::Flow;+use tinyflows_bus::catalog::Workflow as Flow;fn node(id: &str, kind: NodeKind, config: serde_json::Value) -> Node {Node {@@ -21,10 +21,10 @@ fn flow(name: &str, enabled: bool, nodes: Vec<Node>) -> Flow {id: "flow-abc-123".to_string(),name: name.to_string(),enabled,- graph: WorkflowGraph {- nodes,- ..Default::default()- },+ graph: serde_json::json!({+ "nodes": serde_json::to_value(nodes).unwrap(),+ "edges": []+ }),created_at: String::new(),updated_at: String::new(),last_run_at: None,diff --git a/crates/openhuman-core/src/flows/discovery_tools_tests.rs b/crates/openhuman-core/src/flows/discovery_tools_tests.rsindex 5ffcd67a03..f2e29bbb77 100644--- a/crates/openhuman-core/src/flows/discovery_tools_tests.rs+++ b/crates/openhuman-core/src/flows/discovery_tools_tests.rs@@ -4,7 +4,7 @@ use crate::flows::store;use serde_json::json;use std::sync::Arc;use tempfile::TempDir;-use tinyflows_catalog::types::SuggestionStatus;+use tinyflows_bus::catalog::SuggestionStatus;fn test_config(tmp: &TempDir) -> Arc<Config> {let config = Config {diff --git a/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs b/crates/openhuman-core/src/flows/ops_agent_binding_tests.rsindex 3fc7ea1092..df8aa98317 100644--- a/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs+++ b/crates/openhuman-core/src/flows/ops_agent_binding_tests.rs@@ -45,29 +45,13 @@ async fn inference_gate_reports_signed_out_for_dynamic_agent_ref_only_graph() {let tmp = TempDir::new().unwrap();let config = test_config(&tmp);- let g = WorkflowGraph {- nodes: vec![- tinyflows::model::Node {- id: "t".to_string(),- kind: NodeKind::Trigger,- type_version: 1,- name: "Manual".to_string(),- config: json!({ "trigger_kind": "manual" }),- ports: Vec::new(),- position: None,- },- tinyflows::model::Node {- id: "a".to_string(),- kind: NodeKind::Agent,- type_version: 1,- name: "Dynamic".to_string(),- config: json!({ "agent_ref": "=nodes.t.item.agent_choice", "prompt": "go" }),- ports: Vec::new(),- position: None,- },+ let g = json!({+ "nodes": [+ { "id": "t", "kind": "trigger", "name": "Manual", "config": { "trigger_kind": "manual" } },+ { "id": "a", "kind": "agent", "name": "Dynamic", "config": { "agent_ref": "=nodes.t.item.agent_choice", "prompt": "go" } }],- ..Default::default()- };+ "edges": []+ });let errors =validate_inference_readiness(&crate::core::runtime::DispatchCtx::ambient(), &config, &g)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 0d4441573c..c45893d21e 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@@ -486,7 +486,7 @@ async fn referenced_child_compatibility_stops_at_saved_workflow_cycles() {#[tokio::test]async fn draft_promote_creates_a_new_flow_and_removes_the_draft() {- use tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::catalog::DraftOrigin;let tmp = TempDir::new().unwrap();let config = test_config(&tmp);@@ -513,7 +513,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 tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::catalog::DraftOrigin;let tmp = TempDir::new().unwrap();let config = test_config(&tmp);@@ -546,7 +546,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 tinyflows_catalog::DraftOrigin;+ use tinyflows_bus::catalog::DraftOrigin;let tmp = TempDir::new().unwrap();let config = test_config(&tmp);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 f4b00c7ec5..8c8296567f 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@@ -449,7 +449,7 @@ async fn list_suggestions_filters_by_status() {seed_suggestion(&config, "s1");seed_suggestion(&config, "s2");- let active = flows_list_suggestions(&config, Some(tinyflows_catalog::SuggestionStatus::New))+ let active = flows_list_suggestions(&config, Some(tinyflows_bus::catalog::SuggestionStatus::New)).await.unwrap();assert_eq!(active.value.len(), 2);@@ -472,7 +472,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(tinyflows_catalog::SuggestionStatus::New))+ let active = flows_list_suggestions(&config, Some(tinyflows_bus::catalog::SuggestionStatus::New)).await.unwrap();assert!(active.value.is_empty());