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
chore: files changed crates/openhuman-core/src/flows/bus/trigger.rs,crates/openhuman-core/src/flows/
Steven Enamakela4d2b86d4a78
diff --git a/crates/openhuman-core/src/flows/bus/trigger.rs b/crates/openhuman-core/src/flows/bus/trigger.rsindex 1831288768..fcc1946f6b 100644--- a/crates/openhuman-core/src/flows/bus/trigger.rs+++ b/crates/openhuman-core/src/flows/bus/trigger.rs@@ -16,7 +16,8 @@ use std::pin::Pin;use std::sync::atomic::{AtomicUsize, Ordering};use std::sync::{Arc, Mutex, RwLock};use tinybus::EventHandler;-use tinyflows_catalog::Flow;+use tinyflows_bus::catalog::Workflow as Flow;+use tinyflows_bus::runs::FlowRunTrigger;use tokio::sync::{mpsc, Mutex as AsyncMutex};fn portability_call<T, A>(config: &Config, member: &'static str, request: A) -> Result<T, String>@@ -42,7 +43,7 @@ pub(crate) fn describe_trigger(config: &Config,flow: &Flow,) -> Result<tinyflows_bus::portability::TriggerDetails, String> {- let graph = serde_json::to_value(&flow.graph).map_err(|error| error.to_string())?;+ let graph = flow.graph.clone();portability_call(config,tinyflows_bus::portability::methods::DESCRIBE_TRIGGER,@@ -55,7 +56,7 @@ pub(super) fn pinned_trigger_inputs(config: &Config,flow: &Flow,) -> Result<serde_json::Map<String, Value>, String> {- let graph = serde_json::to_value(&flow.graph).map_err(|error| error.to_string())?;+ let graph = flow.graph.clone();let value: Value = portability_call(config,tinyflows_bus::portability::methods::PINNED_INPUTS,@@ -76,7 +77,7 @@ pub(super) fn matches_app_event(toolkit: &str,trigger_slug: &str,) -> Result<bool, String> {- let graph = serde_json::to_value(&flow.graph).map_err(|error| error.to_string())?;+ let graph = flow.graph.clone();portability_call(config,tinyflows_bus::portability::methods::APP_EVENT_BINDING,@@ -147,7 +148,7 @@ pub(crate) struct TriggerRunRequest {pub(crate) flow_id: String,pub(crate) input: Value,pub(crate) inputs: serde_json::Map<String, Value>,- pub(crate) trigger: tinyflows_catalog::FlowRunTrigger,+ pub(crate) trigger: FlowRunTrigger,}type RunFuture = Pin<Box<dyn Future<Output = ()> + Send + 'static>>;@@ -263,7 +264,7 @@ impl FlowTriggerSubscriber {flow_id,input: payload,inputs,- trigger: tinyflows_catalog::FlowRunTrigger::AppEvent,+ trigger: FlowRunTrigger::AppEvent,},};self.enqueue_app_event(key, ctx, queued).await;@@ -408,7 +409,7 @@ impl FlowTriggerSubscriber {flow_id: flow_id.clone(),input: Value::Null,inputs,- trigger: tinyflows_catalog::FlowRunTrigger::Schedule,+ trigger: FlowRunTrigger::Schedule,},};self.enqueue_schedule_request(key, ctx, queued).await;diff --git a/crates/openhuman-core/src/flows/catalogue.rs b/crates/openhuman-core/src/flows/catalogue.rsindex b28de34274..8aaf9974f3 100644--- a/crates/openhuman-core/src/flows/catalogue.rs+++ b/crates/openhuman-core/src/flows/catalogue.rs@@ -88,12 +88,12 @@ pub fn flow_entries(config: &Config) -> Vec<Workflow> {entries}-fn entry_for_with_config(config: &Config, flow: tinyflows_catalog::types::Flow) -> Workflow {+fn entry_for_with_config(config: &Config, flow: tinyflows_bus::catalog::Workflow) -> Workflow {let description = describe(config, &flow);entry_with_description(flow, description)}-fn entry_with_description(flow: tinyflows_catalog::types::Flow, description: String) -> Workflow {+fn entry_with_description(flow: tinyflows_bus::catalog::Workflow, description: String) -> Workflow {Workflow {name: flow.name.clone(),// The flow id, because that is what `run_workflow` / `get_flow` take.@@ -111,7 +111,7 @@ fn entry_with_description(flow: tinyflows_catalog::types::Flow, description: Str}/// A structural summary of the flow graph.-fn describe(config: &Config, flow: &tinyflows_catalog::types::Flow) -> String {+fn describe(config: &Config, flow: &tinyflows_bus::catalog::Workflow) -> String {let trigger = match bus::describe_trigger(config, flow) {Ok(details) => details.kind.unwrap_or_else(|| "manual".to_string()),Err(error) => {@@ -127,11 +127,8 @@ fn describe(config: &Config, flow: &tinyflows_catalog::types::Flow) -> String {/// Deliberately structural — trigger, size, paused-ness — because that is all/// the record carries. See the module docs: inventing a purpose from node/// internals would read as authoritative and frequently be wrong.-fn describe_shape(flow: &tinyflows_catalog::types::Flow, trigger: String) -> String {- let steps = flow- .graph- .nodes- .len()+fn describe_shape(flow: &tinyflows_bus::catalog::Workflow, trigger: String) -> String {+ let steps = flow.graph.get("nodes").and_then(serde_json::Value::as_array).map_or(0, Vec::len)// The trigger is not a step the user thinks about..saturating_sub(1);let mut out = format!(@@ -145,7 +142,7 @@ fn describe_shape(flow: &tinyflows_catalog::types::Flow, trigger: String) -> Str}#[cfg(test)]-fn entry_for(flow: tinyflows_catalog::types::Flow) -> Workflow {+fn entry_for(flow: tinyflows_bus::catalog::Workflow) -> Workflow {let tmp = tempfile::TempDir::new().expect("isolated workspace");let config = Config {workspace_dir: tmp.path().join("workspace"),diff --git a/crates/openhuman-core/src/flows/ops.rs b/crates/openhuman-core/src/flows/ops.rsindex 1d909d92e3..af3d46f969 100644--- a/crates/openhuman-core/src/flows/ops.rs+++ b/crates/openhuman-core/src/flows/ops.rs@@ -49,11 +49,10 @@ use crate::flows::store;use crate::security::approval::{ApprovalChatContext, ApprovalTurnContext};use crate::security::turn_origin::{with_origin, AgentTurnOrigin};mod build_registry;-use tinyflows_bus::catalog::{FlowRun, FlowSuggestion, SuggestionStatus};+use tinyflows_bus::catalog::{FlowRun, FlowSuggestion, SuggestionStatus, Workflow as Flow};use tinyflows_bus::runs::FlowRunTrigger;use tokio_util::sync::CancellationToken;-pub(crate) use tinyflows_bus::catalog::Workflow as Flow;/// Overall safety bound on a single `flows_run` / `flows_resume`. Individual/// capabilities have their own timeouts (HTTP, sandbox), but a hung LLM/tooldiff --git a/crates/openhuman-core/src/flows/ops/approval_manifest.rs b/crates/openhuman-core/src/flows/ops/approval_manifest.rsindex 53f68c7d04..fd7fd1e221 100644--- a/crates/openhuman-core/src/flows/ops/approval_manifest.rs+++ b/crates/openhuman-core/src/flows/ops/approval_manifest.rs@@ -36,12 +36,12 @@ use super::*;pub async fn compute_approval_manifest(ctx: &crate::core::runtime::DispatchCtx,config: &Config,- graph: &WorkflowGraph,+ graph: &Value,) -> Result<Vec<Value>, String> {compute_approval_manifest_json(ctx,config,- serde_json::to_value(graph).map_err(|e| e.to_string())?,+ graph.clone(),).await}diff --git a/crates/openhuman-core/src/flows/ops/builder_gates.rs b/crates/openhuman-core/src/flows/ops/builder_gates.rsindex f3cc931fd2..373b41e250 100644--- a/crates/openhuman-core/src/flows/ops/builder_gates.rs+++ b/crates/openhuman-core/src/flows/ops/builder_gates.rs@@ -22,7 +22,7 @@ use crate::core::runtime::DispatchCtx;pub(crate) async fn run_builder_gates(ctx: &DispatchCtx,config: &Config,- graph: &WorkflowGraph,+ graph: &Value,) -> Vec<String> {// The stack order, short-circuiting and mock-run preflight are// `tinyflows::gates::builder_failures`'; the host supplies the stages that@@ -42,12 +42,11 @@ pub(crate) async fn run_builder_gates(};let result = async {let proxy = crate::modules::tinyflows::authoring_proxy(config).await?;- let graph = serde_json::to_value(graph).map_err(|error| error.to_string())?;proxy.call::<Vec<String>>(tinyflows_bus::methods::BUILDER_FAILURES,&(- graph,+ graph.clone(),host.authoring.clone(),vec![crate::flows::caps_host::NATIVE_TOOL_PREFIX.to_string()],),@@ -127,7 +126,7 @@ pub(crate) async fn build_builder_proposal(config: &Config,retry_tool: &str,name: &str,- graph: &WorkflowGraph,+ graph: &Value,require_approval: bool,revision: bool,instruction: Option<String>,@@ -144,13 +143,12 @@ pub(crate) async fn build_builder_proposal());}- let graph_json = serde_json::to_value(graph).map_err(|error| error.to_string())?;- let analysis = super::validation::validate_over_bus(ctx, config, graph_json).await?;+ let analysis = super::validation::validate_over_bus(ctx, config, graph.clone()).await?;let summary = analysis.summary.ok_or_else(|| "TinyFlows validation returned no graph summary".to_string())?;let mut warnings = analysis.warnings;- match graph_wiring_warnings(ctx, config, graph).await {+ match wiring_warnings_json(ctx, config, graph.clone()).await {Ok(wiring_warnings) => warnings.extend(wiring_warnings),Err(error) => {tracing::warn!(target: "flows", %error, "[flows] TinyFlows wiring warnings failed")@@ -173,12 +171,12 @@ pub(crate) async fn build_builder_proposal(// in `run_flow_body`) consumes, so a run right after this proposal reads// the cached result instead of re-probing the network.let inference_readiness = evaluate_inference_readiness(ctx, config, graph).await;- let graph_value = serde_json::to_value(graph).map_err(|e| e.to_string())?;+ let graph_value = graph.clone();tracing::info!(target: "flows",%name,- node_count = graph.nodes.len(),+ node_count = graph.get("nodes").and_then(Value::as_array).map_or(0, Vec::len),require_approval,warning_count = warnings.len(),revision,diff --git a/crates/openhuman-core/src/flows/ops/connections.rs b/crates/openhuman-core/src/flows/ops/connections.rsindex 2f7849693c..661d81ca97 100644--- a/crates/openhuman-core/src/flows/ops/connections.rs+++ b/crates/openhuman-core/src/flows/ops/connections.rs@@ -248,7 +248,7 @@ pub(crate) async fn connected_toolkits(pub async fn compute_required_connections(ctx: &crate::core::runtime::DispatchCtx,config: &Config,- graph: &WorkflowGraph,+ graph: &Value,) -> Vec<Value> {use crate::integrations::composio::contract::toolkit_from_slug;@@ -262,8 +262,8 @@ pub async fn compute_required_connections(}};- for node in &graph.nodes {- if node.kind == NodeKind::ToolCall {+ for node in super::super::host_gates::graph_json::nodes(graph) {+ if node.kind == "tool_call" {if let Some(slug) = node.config.get("slug").and_then(Value::as_str) {// Native OpenHuman tools (`oh:<name>`) need no connection.if slug.starts_with("oh:") {@@ -276,7 +276,9 @@ pub async fn compute_required_connections(}}// An app_event trigger names its toolkit directly.- if let Some(trigger) = graph.trigger() {+ if let Some(trigger) = super::super::host_gates::graph_json::nodes(graph)+ .find(|node| node.kind == "trigger")+ {if let Some(tk) = trigger.config.get("toolkit").and_then(Value::as_str) {push(tk.to_string());}@@ -307,10 +309,7 @@ pub async fn flows_required_connections(config: &Config,graph_json: Value,) -> Result<Outcome<Value>, String> {- let graph: tinyflows::model::WorkflowGraph =- super::validation::migrate_over_bus(ctx, config, graph_json)- .await- .and_then(|graph| serde_json::from_value(graph).map_err(|error| error.to_string()))?;+ let graph = super::validation::migrate_over_bus(ctx, config, graph_json).await?;let required = compute_required_connections(ctx, config, &graph).await;Ok(Outcome::single_log(json!({ "required_connections": required }),diff --git a/crates/openhuman-core/src/flows/ops/definitions.rs b/crates/openhuman-core/src/flows/ops/definitions.rsindex 9c8d61dd29..21414f5fde 100644--- a/crates/openhuman-core/src/flows/ops/definitions.rs+++ b/crates/openhuman-core/src/flows/ops/definitions.rs@@ -89,7 +89,11 @@ pub(crate) async fn flows_create_with_context();let result = store::create_flow(config, name, graph, require_approval).map_err(|e| e.to_string())?;- let flow = result.workflow;+ let tinyflows_bus::catalog::PutWorkflowResult {+ workflow: flow,+ born_disabled,+ approval_forced,+ } = result;if flow.enabled {tracing::debug!(target: "flows", flow_id = %flow.id, "[flows] flows_create: flow is enabled — binding automatic-dispatch trigger");@@ -97,7 +101,7 @@ pub(crate) async fn flows_create_with_context(}let mut logs = vec!["flow created".to_string()];- if result.born_disabled {+ if born_disabled {let trigger_label = match bus::describe_trigger(config, &flow) {Ok(details) => details.kind@@ -112,7 +116,7 @@ pub(crate) async fn flows_create_with_context(Enable it explicitly (flows_set_enabled) when you are ready for it to fire."));}- if result.approval_forced {+ if approval_forced {logs.push("require_approval forced to true because the graph contains outbound side-effect \nodes (tool_call / http_request / code)."diff --git a/crates/openhuman-core/src/flows/ops/execution.rs b/crates/openhuman-core/src/flows/ops/execution.rsindex 07e47403b9..fecb8be7db 100644--- a/crates/openhuman-core/src/flows/ops/execution.rs+++ b/crates/openhuman-core/src/flows/ops/execution.rs@@ -5,7 +5,7 @@use serde_json::json;use tinyagents_graph::GraphObservation;use tinyflows_bus::runs::FlowRunTrigger;-use tinyflows_catalog::Flow;+use tinyflows_bus::catalog::Workflow as Flow;use crate::config::Config;diff --git a/crates/openhuman-core/src/flows/ops/inference_readiness.rs b/crates/openhuman-core/src/flows/ops/inference_readiness.rsindex 873ca9410c..074a509010 100644--- a/crates/openhuman-core/src/flows/ops/inference_readiness.rs+++ b/crates/openhuman-core/src/flows/ops/inference_readiness.rs@@ -10,10 +10,9 @@ pub(super) struct InferenceReadinessEvaluation {/// beside the graph adapter because it depends on TinyFlows node configuration.pub(super) async fn agent_node_role(config: &Config,- node: &tinyflows::model::Node,+ node_config: &Value,) -> &'static str {- if let Some(agent_ref) = node- .config+ if let Some(agent_ref) = node_config.get("agent_ref").and_then(Value::as_str).map(str::trim)@@ -41,7 +40,7 @@ pub(super) async fn agent_node_role(.call::<tinyflows_bus::portability::PreparedAgentRun>(tinyflows_bus::portability::methods::PREPARE_AGENT_RUN,&(tinyflows_bus::portability::PrepareAgentRun {- request: node.config.clone(),+ request: node_config.clone(),entry_model: entry_model.map(str::to_owned),system_prompt: None,effective_iteration_cap,@@ -66,8 +65,7 @@ pub(super) async fn agent_node_role();}}- let pinned_model = node- .config+ let pinned_model = node_config.get("model").and_then(Value::as_str).map(str::trim)@@ -139,15 +137,13 @@ fn format_evaluation(pub(super) async fn evaluate_inference_readiness(ctx: &crate::core::runtime::DispatchCtx,config: &Config,- graph: &WorkflowGraph,+ graph: &Value,) -> Option<InferenceReadinessEvaluation> {let mut roles = Vec::new();- for node in graph- .nodes- .iter()- .filter(|node| node.kind == NodeKind::Agent)+ for node in crate::flows::host_gates::graph_json::nodes(graph)+ .filter(|node| node.kind == "agent"){- roles.push((node.id.clone(), agent_node_role(config, node).await));+ roles.push((node.id.to_owned(), agent_node_role(config, node.config).await));}let evaluation = crate::inference::readiness::evaluate(ctx, config, &roles).await?;let message = format_evaluation(&evaluation);@@ -166,7 +162,7 @@ pub(super) async fn evaluate_inference_readiness(pub(crate) async fn validate_inference_readiness(ctx: &crate::core::runtime::DispatchCtx,config: &Config,- graph: &WorkflowGraph,+ graph: &Value,) -> Vec<String> {let Some(evaluation) = evaluate_inference_readiness(ctx, config, graph).await else {return Vec::new();diff --git a/crates/openhuman-core/src/flows/ops/updates.rs b/crates/openhuman-core/src/flows/ops/updates.rsindex 90ffd66efb..cf2e4d6933 100644--- a/crates/openhuman-core/src/flows/ops/updates.rs+++ b/crates/openhuman-core/src/flows/ops/updates.rs@@ -1,5 +1,4 @@use super::*;-use tinyflows_catalog::graph_policy::{enforce_side_effect_approval, trigger_is_automatic};/// Maps the Catalog bus [`FlowUpdateError`](tinyflows_bus::catalog::FlowUpdateError) to the RPC/// error string. A concurrency conflict is encoded as a JSON object the UI can@@ -139,7 +138,7 @@ async fn flows_update_inner(validate_and_migrate_graph(ctx,config,- serde_json::to_value(&existing.graph).map_err(|error| error.to_string())?,+ existing.graph.clone(),).await?;existing.graph.clone()@@ -156,41 +155,19 @@ async fn flows_update_inner(// `store::update_flow_graph` actually performs its guarded write. That// decision now lives inside `update_flow_graph`, computed against the// row it just re-read there (see its doc comment).- let now_auto = trigger_is_automatic(&graph);- let forced_automatic_disarm = disarm_automatic && now_auto;tracing::debug!(target: "flows",flow_id = %id,- now_auto,currently_enabled = existing.enabled,- forced_automatic_disarm,- "[flows] flows_update: auto-trigger disarm decision inputs (transition itself decided \- store-side against a fresh read, see update_flow_graph)"+ force_disarm_automatic = disarm_automatic,+ "[flows] flows_update: delegating automatic-trigger transition policy to Catalog.PutWorkflow");- // Rule 2 analogue (compound-bypass closure): re-apply the same outbound- // side-effect check `flows_create` applies on save — via the shared- // [`enforce_side_effect_approval`] helper — so an update that *adds* a- // tool_call/http_request/code node to a previously read-only graph can- // never persist `require_approval: false` just because the update path- // trusted the caller's toggle unconditionally.- let (effective_require_approval, side_effect_forced) =- enforce_side_effect_approval(&graph, new_require_approval);- if side_effect_forced {- tracing::info!(- target: "flows",- flow_id = %id,- "[flows] flows_update: forcing require_approval=true — graph contains outbound \- side-effect node(s) (tool_call / http_request / code)"- );- }-tracing::debug!(target: "flows",flow_id = %id,has_expected = expected_version.is_some(),- require_approval = effective_require_approval,- side_effect_forced,+ require_approval = new_require_approval,"[flows] flows_update: persisting changes");// The auto-disarm decision (both the unconditional manual→automatic@@ -204,7 +181,7 @@ async fn flows_update_inner(id,new_name,graph,- effective_require_approval,+ new_require_approval,None,disarm_automatic,expected_version.as_deref(),@@ -218,7 +195,11 @@ async fn flows_update_inner(// happened store-side against a fresh read, so this is purely for the// info log / result message wording below and can't desync from what// was actually persisted.- let should_disarm = now_auto && existing.enabled && !updated.enabled;+ let tinyflows_bus::catalog::PutWorkflowResult {+ workflow: updated,+ born_disabled: should_disarm,+ approval_forced,+ } = updated;if should_disarm {tracing::info!(target: "flows",@@ -267,7 +248,7 @@ async fn flows_update_inner(};logs.push(reason.to_string());}- if side_effect_forced {+ if approval_forced {logs.push("require_approval forced to true because the graph contains outbound side-effect \nodes (tool_call / http_request / code)."@@ -283,7 +264,7 @@ pub fn flows_get_history(config: &Config,id: &str,limit: usize,-) -> Result<Outcome<Vec<tinyflows_catalog::FlowRevision>>, String> {+) -> Result<Outcome<Vec<tinyflows_bus::catalog::WorkflowRevision>>, 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 b8bf709563..4d230381ac 100644--- a/crates/openhuman-core/src/flows/ops/validation.rs+++ b/crates/openhuman-core/src/flows/ops/validation.rs@@ -92,7 +92,7 @@ pub(super) async fn ensure_config_aware_engine_compatible(config: &Config,graph: &Value,) -> Result<(), String> {- match config_aware_engine_compatibility_errors(ctx, config, graph)+ match config_aware_engine_compatibility_errors(ctx, config, graph.clone()).await?.into_iter().next()diff --git a/crates/openhuman-core/src/flows/ops/wiring_warnings.rs b/crates/openhuman-core/src/flows/ops/wiring_warnings.rsindex 1ff977d672..2a66fc5a2a 100644--- a/crates/openhuman-core/src/flows/ops/wiring_warnings.rs+++ b/crates/openhuman-core/src/flows/ops/wiring_warnings.rs@@ -6,17 +6,9 @@ use crate::core::runtime::DispatchCtx;pub(crate) async fn graph_wiring_warnings(context: &DispatchCtx,config: &Config,- graph: &WorkflowGraph,+ graph: &Value,) -> Result<Vec<String>, String> {- let graph = match serde_json::to_value(graph) {- Ok(graph) => graph,- Err(error) => {- return Err(format!(- "wiring warnings could not serialize graph: {error}"- ))- }- };- wiring_warnings(context, config, graph).await+ wiring_warnings(context, config, graph.clone()).await}/// Author-time WARNs for a portable Copilot graph payload.diff --git a/crates/openhuman-core/src/flows/recovery.rs b/crates/openhuman-core/src/flows/recovery.rsindex 8fe1655cf4..e2a4e60133 100644--- a/crates/openhuman-core/src/flows/recovery.rs+++ b/crates/openhuman-core/src/flows/recovery.rs@@ -40,13 +40,6 @@ pub(crate) async fn expire_parked_runs(ctx: &DispatchCtx, config: &Config) -> us/// returns only rows it changed; the runs adapter handles event projection and/// releases retained callback state for those rows.pub(crate) async fn sweep_orphaned_runs_on_boot(ctx: &DispatchCtx, config: &Config) -> usize {- if tinyflows_catalog::run_management::boot_sweep_plan(crate::storage::installed_is_shared())- == tinyflows_catalog::run_management::BootSweepPlan::Nothing- {- tracing::info!(target: "flows", "[flows] boot sweep: skipped, the storage backend is shared");- return 0;- }-crate::storage::agents::for_each_scope(ctx, "flows boot sweep", |scope_ctx| async move {sweep_one_scope(&scope_ctx, config).await})diff --git a/crates/openhuman-core/src/flows/schemas/handlers/builder.rs b/crates/openhuman-core/src/flows/schemas/handlers/builder.rsindex 6b55a72c2f..de85abf9a2 100644--- a/crates/openhuman-core/src/flows/schemas/handlers/builder.rs+++ b/crates/openhuman-core/src/flows/schemas/handlers/builder.rs@@ -78,7 +78,11 @@ pub(in crate::flows::schemas) fn handle_list_suggestions(.and_then(Value::as_str).map(str::trim).filter(|s| !s.is_empty())- .map(tinyflows_catalog::SuggestionStatus::from_str_lossy);+ .map(|status| match status {+ "dismissed" => tinyflows_bus::catalog::SuggestionStatus::Dismissed,+ "built" => tinyflows_bus::catalog::SuggestionStatus::Built,+ _ => tinyflows_bus::catalog::SuggestionStatus::New,+ });to_json(ops::flows_list_suggestions(&config, status).await?)})}diff --git a/crates/openhuman-core/src/flows/schemas/handlers/draft.rs b/crates/openhuman-core/src/flows/schemas/handlers/draft.rsindex 892c3c1739..7eac550431 100644--- a/crates/openhuman-core/src/flows/schemas/handlers/draft.rs+++ b/crates/openhuman-core/src/flows/schemas/handlers/draft.rs@@ -19,7 +19,7 @@ pub(in crate::flows::schemas) fn handle_draft_create(.get("origin").and_then(Value::as_str).and_then(|s| serde_json::from_value(Value::String(s.to_string())).ok())- .unwrap_or(tinyflows_catalog::DraftOrigin::Canvas);+ .unwrap_or(tinyflows_bus::catalog::DraftOrigin::Canvas);to_json(ops::flows_draft_create(&config, flow_id, name, graph, origin,)?)diff --git a/crates/openhuman-core/src/flows/schemas/handlers/run.rs b/crates/openhuman-core/src/flows/schemas/handlers/run.rsindex bd808ae538..5d4fbdef85 100644--- a/crates/openhuman-core/src/flows/schemas/handlers/run.rs+++ b/crates/openhuman-core/src/flows/schemas/handlers/run.rs@@ -18,7 +18,7 @@ pub(in crate::flows::schemas) fn handle_run(id.trim(),input,inputs,- tinyflows_catalog::FlowRunTrigger::Rpc,+ tinyflows_bus::runs::FlowRunTrigger::Rpc,).await?,)@@ -41,7 +41,7 @@ pub(in crate::flows::schemas) fn handle_run_detached(id.trim(),input,inputs,- tinyflows_catalog::FlowRunTrigger::Rpc,+ tinyflows_bus::runs::FlowRunTrigger::Rpc,).await?,)