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
fix(skills): gate flow discovery behind the flows feature
Steven Enamakel4df0a8205936
diff --git a/crates/openhuman-core/src/flows/mod.rs b/crates/openhuman-core/src/flows/mod.rsindex 99cba07f06..dfafffb48f 100644--- a/crates/openhuman-core/src/flows/mod.rs+++ b/crates/openhuman-core/src/flows/mod.rs@@ -36,9 +36,6 @@ pub mod node_contracts;pub mod ops;pub(crate) mod registration;mod schemas;-/// Skills this domain ships inside the binary. Needs BOTH gates: the pages-/// teach flows authoring, and `BundledSkill` is part of the skills subsystem.-#[cfg(feature = "skills")]mod store;/// The tinyflows engine seam (formerly `crate::tinyflows`).pub mod tinyflows;diff --git a/crates/openhuman-core/src/skills/ops_discover.rs b/crates/openhuman-core/src/skills/ops_discover.rsindex f87cdbcd6c..cccfb57fed 100644--- a/crates/openhuman-core/src/skills/ops_discover.rs+++ b/crates/openhuman-core/src/skills/ops_discover.rs@@ -28,6 +28,7 @@ pub(crate) use api::discover_workflows_inner;pub(crate) use api::invalidate_workflow_metadata_cache;pub(crate) use api::load_workflow_metadata_for_domains;pub(crate) use api::load_workflow_metadata_for_with_home;+#[cfg(feature = "flows")]pub(crate) use api::DiscoveryGate;#[cfg(test)]diff --git a/crates/openhuman-core/src/skills/ops_discover/scan.rs b/crates/openhuman-core/src/skills/ops_discover/scan.rsindex 82ff9f4e66..6ed6d8ea72 100644--- a/crates/openhuman-core/src/skills/ops_discover/scan.rs+++ b/crates/openhuman-core/src/skills/ops_discover/scan.rs@@ -42,13 +42,15 @@ pub(super) fn discover_filtered(// first and at the lowest precedence. No trust marker is consulted: the// directory is core-managed and its contents were written from constants// compiled into this binary. See `skills::bundled`.- let mut builtin = match workspace_dir {+ let builtin = match workspace_dir {Some(ws) if kinds.contains(&RootKind::Skill) => {scan_bundled_root(&crate::skills::bundled::builtin_root(ws))}_ => Vec::new(),};#[cfg(feature = "flows")]+ let mut builtin = builtin;+ #[cfg(feature = "flows")]if gate.flow_authoring_enabled() && kinds.contains(&RootKind::Skill) {if let (Some(workspace), Some(generation)) = (workspace_dir, flow_generation) {if let Some(flow_authoring) = crate::skills::bundled::flow_authoring::materialized_skill(