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): route create and update through context-aware ops
Steven Enamakel1c727be7ca73
diff --git a/crates/openhuman-core/src/flows/builder_host.rs b/crates/openhuman-core/src/flows/builder_host.rsindex 2eaf8508ad..c5bb590f73 100644--- a/crates/openhuman-core/src/flows/builder_host.rs+++ b/crates/openhuman-core/src/flows/builder_host.rs@@ -85,7 +85,8 @@ impl FlowsHost {wire!(ops::load_flow_graph(&config, &required::<String>(&payload, "id")?)?)}PortOperation::FlowsCreate => {- wire!(ops::flows_create(+ wire!(ops::flows_create_with_context(+ &context,&config,required(&payload, "name")?,required(&payload, "graph")?,@@ -95,7 +96,8 @@ impl FlowsHost {.value)}PortOperation::FlowsUpdate => {- let outcome = ops::flows_update(+ let outcome = ops::flows_update_with_context(+ &context,&config,&required::<String>(&payload, "id")?,optional_field(&payload, "name")?,diff --git a/crates/openhuman-core/src/flows/ops/updates.rs b/crates/openhuman-core/src/flows/ops/updates.rsindex f87a886db6..a0d4c7ca1e 100644--- a/crates/openhuman-core/src/flows/ops/updates.rs+++ b/crates/openhuman-core/src/flows/ops/updates.rs@@ -81,7 +81,7 @@ pub async fn flows_update(graph_json,require_approval,expected_version,- disarm_automatic,+ false,).await}@@ -94,7 +94,6 @@ pub(crate) async fn flows_update_with_context(graph_json: Option<Value>,require_approval: Option<bool>,expected_version: Option<String>,- disarm_automatic: bool,) -> Result<Outcome<Flow>, String> {flows_update_inner(ctx,diff --git a/crates/openhuman-core/src/flows/schemas/handlers/definition.rs b/crates/openhuman-core/src/flows/schemas/handlers/definition.rsindex 3bcf052fa7..969eacf30c 100644--- a/crates/openhuman-core/src/flows/schemas/handlers/definition.rs+++ b/crates/openhuman-core/src/flows/schemas/handlers/definition.rs@@ -24,7 +24,7 @@ pub(in crate::flows::schemas) fn handle_create({ops::strict_gate(&ctx, &config, &graph).await?;}- to_json(ops::flows_create(&config, name, graph, require_approval).await?)+ to_json(ops::flows_create_with_context(&ctx, &config, name, graph, require_approval).await?)})}@@ -130,7 +130,8 @@ pub(in crate::flows::schemas) fn handle_update(}}to_json(- ops::flows_update(+ ops::flows_update_with_context(+ &ctx,&config,id.trim(),name,