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
feat(flows): re-export graph safety predicates from tinyflows-catalog
Steven Enamakel4abe4a0835f7
diff --git a/Cargo.lock b/Cargo.lockindex 37a6570ee2..b5b7b15c1a 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -4157,6 +4157,8 @@ dependencies = ["tinycortex-api","tinydocs-bus","tinyflows",+ "tinyflows-catalog",+ "tinyflows-sqlite","tinyhosts","tinyhumans-sdk","tinyjuice-bus",@@ -6476,6 +6478,34 @@ dependencies = ["tracing",]+[[package]]+name = "tinyflows-catalog"+version = "0.1.0"+dependencies = [+ "serde",+ "serde_json",+ "tinyflows",+ "tokio-util",+ "tracing",+]++[[package]]+name = "tinyflows-sqlite"+version = "0.1.0"+dependencies = [+ "anyhow",+ "async-trait",+ "chrono",+ "rusqlite",+ "serde",+ "serde_json",+ "tinyflows",+ "tinyflows-catalog",+ "tokio",+ "tracing",+ "uuid",+]+[[package]]name = "tinyhosts"version = "0.1.5"diff --git a/src/openhuman/flows/ops.rs b/src/openhuman/flows/ops.rsindex b551a9863f..100b42813e 100644--- a/src/openhuman/flows/ops.rs+++ b/src/openhuman/flows/ops.rs@@ -10,6 +10,15 @@ use chrono::Utc;use serde_json::{json, Value};use sha2::{Digest, Sha256};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+// do at all are properties of the graph, not of this host. Re-exported at+// `ops::` scope because the agent tools and this module's tests already name+// them there.+pub(crate) use tinyflows_catalog::graph_policy::{+ enforce_side_effect_approval, graph_has_actionable_nodes, graph_has_outbound_side_effect,+ trigger_is_automatic,+};use tokio_util::sync::CancellationToken;use crate::openhuman::agent::turn_origin::{with_origin, AgentTurnOrigin, TrustedAutomationSource};