Skip to content

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

fix(ops_discover): handle empty skill list in discovery

Steven Enamakel96885d05a910
diff --git a/crates/openhuman-core/src/skills/ops_discover.rs b/crates/openhuman-core/src/skills/ops_discover.rs
index b3515c0ce3..41e5fbe20a 100644
--- a/crates/openhuman-core/src/skills/ops_discover.rs
+++ b/crates/openhuman-core/src/skills/ops_discover.rs
@@ -6,15 +6,20 @@
//! [`collision`] holds cross-scope name-collision resolution, and
//! [`resource`] holds bundled-resource reading.
-use std::path::Path;
-
-use super::ops_types::{Workflow, WorkflowScope};
-
mod api;
mod collision;
mod resource;
mod scan;
+// Re-imported here (rather than only inside the submodules that need them)
+// so `use super::*` in the `#[path]`-included test files below still finds
+// `Path`, `Workflow`, `WorkflowScope`, and `precedence` exactly as it did
+// before this module was split into submodules.
+#[cfg(test)]
+use std::path::Path;
+#[cfg(test)]
+use super::ops_types::{Workflow, WorkflowScope};
+#[cfg(test)]
use collision::precedence;
pub use api::{