Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/skills/ops_discover/api.rs,crates/openhuman-core/src/

Steven Enamakele61d9a8c0ba5
diff --git a/crates/openhuman-core/src/skills/ops_discover/api.rs b/crates/openhuman-core/src/skills/ops_discover/api.rs
index e9095a0585..3ce48bf399 100644
--- a/crates/openhuman-core/src/skills/ops_discover/api.rs
+++ b/crates/openhuman-core/src/skills/ops_discover/api.rs
@@ -317,7 +317,9 @@ fn flow_generation_for(workspace: &Path, gate: &DiscoveryGate) -> Option<u64> {
#[cfg(feature = "flows")]
{
gate.flow_authoring_enabled()
- .then(|| crate::skills::bundled::flow_authoring::generation_if_current(workspace))
+ .then(|| {
+ crate::skills::bundled::flow_authoring::generation_if_current(workspace, gate)
+ })
.flatten()
}
#[cfg(not(feature = "flows"))]
diff --git a/crates/openhuman-core/src/skills/ops_discover/resource.rs b/crates/openhuman-core/src/skills/ops_discover/resource.rs
index 6c053b5ea3..98ad29644a 100644
--- a/crates/openhuman-core/src/skills/ops_discover/resource.rs
+++ b/crates/openhuman-core/src/skills/ops_discover/resource.rs
@@ -60,10 +60,12 @@ fn read_workflow_resource_with_gate(
}
let generation = crate::skills::bundled::flow_authoring::generation_if_current(
workspace_dir,
+ &gate,
)
.ok_or_else(|| "flow-authoring resources are unavailable".to_string())?;
return crate::skills::bundled::flow_authoring::read_resource(
workspace_dir,
+ &gate,
generation,
&skill,
relative_path,
diff --git a/crates/openhuman-core/src/skills/ops_discover/scan.rs b/crates/openhuman-core/src/skills/ops_discover/scan.rs
index c71518ae1a..950c889542 100644
--- a/crates/openhuman-core/src/skills/ops_discover/scan.rs
+++ b/crates/openhuman-core/src/skills/ops_discover/scan.rs
@@ -53,7 +53,11 @@ pub(super) fn discover_filtered(
&& kinds.contains(&RootKind::Skill)
&& let (Some(workspace), Some(generation)) = (workspace_dir, flow_generation)
&& let Some(flow_authoring) =
- crate::skills::bundled::flow_authoring::materialized_skill(workspace, generation)
+ crate::skills::bundled::flow_authoring::materialized_skill(
+ workspace,
+ gate,
+ generation,
+ )
{
builtin.push(flow_authoring);
}