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/resource.rs,crates/openhuman-core

Steven Enamakelaa6462f637bd
diff --git a/crates/openhuman-core/src/skills/ops_discover/resource.rs b/crates/openhuman-core/src/skills/ops_discover/resource.rs
index de202ff103..6c053b5ea3 100644
--- a/crates/openhuman-core/src/skills/ops_discover/resource.rs
+++ b/crates/openhuman-core/src/skills/ops_discover/resource.rs
@@ -13,7 +13,6 @@ pub fn read_workflow_resource(
workspace_dir,
skill_id,
relative_path,
- &ctx,
DiscoveryGate::from_dispatch(&ctx),
super::api::discovery_home_dir(),
)
@@ -37,7 +36,6 @@ pub fn read_workflow_resource_for(
&config.workspace_dir,
skill_id,
relative_path,
- ctx,
DiscoveryGate::from_config(ctx, config, None),
home,
)
@@ -47,7 +45,6 @@ fn read_workflow_resource_with_gate(
workspace_dir: &Path,
skill_id: &str,
relative_path: &Path,
- ctx: &crate::core::runtime::DispatchCtx,
gate: DiscoveryGate,
home: Option<std::path::PathBuf>,
) -> Result<String, String> {
@@ -72,6 +69,5 @@ fn read_workflow_resource_with_gate(
relative_path,
);
}
- let _ = ctx;
tinyskills::read_resource(&skill, relative_path).map_err(|error| error.to_string())
}
diff --git a/crates/openhuman-core/src/skills/stub.rs b/crates/openhuman-core/src/skills/stub.rs
index aef5d14ff2..7c150c7878 100644
--- a/crates/openhuman-core/src/skills/stub.rs
+++ b/crates/openhuman-core/src/skills/stub.rs
@@ -37,6 +37,33 @@ pub fn load_workflow_metadata(_workspace_dir: &Path) -> Vec<Workflow> {
Vec::new()
}
+/// Always empty: the disabled skills facade cannot discover configured skills.
+pub fn load_workflow_metadata_for(
+ _ctx: &crate::core::runtime::DispatchCtx,
+ _config: &crate::config::Config,
+) -> Vec<Workflow> {
+ Vec::new()
+}
+
+/// Refuse resource reads when the skills domain is compiled out.
+pub fn read_workflow_resource(
+ _workspace_dir: &Path,
+ _skill_id: &str,
+ _relative_path: &Path,
+) -> Result<String, String> {
+ Err("skills are unavailable in this build".to_string())
+}
+
+/// Refuse scoped resource reads when the skills domain is compiled out.
+pub fn read_workflow_resource_for(
+ _ctx: &crate::core::runtime::DispatchCtx,
+ _config: &crate::config::Config,
+ _skill_id: &str,
+ _relative_path: &Path,
+) -> Result<String, String> {
+ Err("skills are unavailable in this build".to_string())
+}
+
/// No-op: with skills compiled out nothing can discover a bundled skill, so
/// writing one into the workspace would only leave files nothing reads.
///