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): tidy import order and formatting in flow ops
Steven Enamakelea34810b6a94
diff --git a/crates/openhuman-core/src/flows/ops.rs b/crates/openhuman-core/src/flows/ops.rsindex 66d98f353a..6a7bfed089 100644--- a/crates/openhuman-core/src/flows/ops.rs+++ b/crates/openhuman-core/src/flows/ops.rs@@ -34,7 +34,7 @@use std::collections::HashSet;use std::sync::{Arc, LazyLock};-use serde_json::{json, Value};+use serde_json::{Value, json};use tinyflows::model::{NodeKind, TriggerKind, WorkflowGraph};// The save/run safety predicates are `tinyflows-catalog`'s: whether a graph// fires unattended, whether it can act on the world, whether it has anything to@@ -47,11 +47,11 @@ use crate::flows::bus;use crate::flows::draft_store;use crate::flows::store;use tinyflows_catalog::build_registry;+#[cfg(test)]+pub(crate) use tinyflows_catalog::graph_policy::graph_has_actionable_nodes;pub(crate) use tinyflows_catalog::graph_policy::{enforce_side_effect_approval, trigger_is_automatic,};-#[cfg(test)]-pub(crate) use tinyflows_catalog::graph_policy::graph_has_actionable_nodes;use tinyflows_catalog::types::{FlowConnection, FlowRunTrigger, FlowSuggestion, SuggestionStatus};use {tinyflows_catalog::Flow, tinyflows_catalog::FlowRun};diff --git a/crates/openhuman-core/src/flows/ops/connections.rs b/crates/openhuman-core/src/flows/ops/connections.rsindex 7451d9b6bb..903ead2e34 100644--- a/crates/openhuman-core/src/flows/ops/connections.rs+++ b/crates/openhuman-core/src/flows/ops/connections.rs@@ -284,13 +284,10 @@ 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: 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 required = compute_required_connections(ctx, config, &graph).await;Ok(Outcome::single_log(json!({ "required_connections": required }),