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: compile split skills coverage modules
Steven Enamakel38ab69bd13c2
diff --git a/crates/openhuman-core/src/skills/mod.rs b/crates/openhuman-core/src/skills/mod.rsindex e3b020a1af..285667018f 100644--- a/crates/openhuman-core/src/skills/mod.rs+++ b/crates/openhuman-core/src/skills/mod.rs@@ -54,6 +54,8 @@ pub mod bus;#[cfg(feature = "skills")]pub mod ops;#[cfg(feature = "skills")]+mod ops_discover_resource;+#[cfg(feature = "skills")]pub mod ops_create;#[cfg(feature = "skills")]pub mod ops_discover;diff --git a/crates/openhuman-core/src/skills/ops_discover/resource.rs b/crates/openhuman-core/src/skills/ops_discover/resource.rsindex c6af60e001..893a4acf23 100644--- a/crates/openhuman-core/src/skills/ops_discover/resource.rs+++ b/crates/openhuman-core/src/skills/ops_discover/resource.rs@@ -4,6 +4,7 @@use std::path::Path;use crate::skills::ops_types::{Workflow, WorkflowScope, MAX_WORKFLOW_RESOURCE_BYTES};+use crate::skills::ops_discover_resource::resolve_workflow_for_resource;use super::api::load_workflow_metadata_for_profile;use super::scan::scan_root;@@ -194,46 +195,3 @@ pub fn read_workflow_resource_with_profile(Ok(content)}--fn resolve_workflow_for_resource(- workflows: Vec<Workflow>,- skill_id: &str,-) -> Result<Workflow, String> {- let mut dir_match: Option<Workflow> = None;- let mut name_match: Option<Workflow> = None;-- for workflow in workflows {- if workflow.dir_name == skill_id {- if dir_match.is_some() {- return Err(format!(- "skill id '{skill_id}' is ambiguous across multiple skill directories"- ));- }- dir_match = Some(workflow);- continue;- }-- if workflow.name == skill_id {- if name_match.is_some() {- return Err(format!(- "skill name '{skill_id}' is ambiguous; use the directory id"- ));- }- name_match = Some(workflow);- }- }-- match (dir_match, name_match) {- (Some(dir_skill), Some(name_skill)) => {- if dir_skill.location == name_skill.location {- Ok(dir_skill)- } else {- Err(format!(- "skill id '{skill_id}' matches both a directory id and a different skill name"- ))- }- }- (Some(skill), None) | (None, Some(skill)) => Ok(skill),- (None, None) => Err(format!("skill '{skill_id}' not found")),- }-}diff --git a/crates/openhuman-core/src/skills/tools.rs b/crates/openhuman-core/src/skills/tools.rsindex 1cd332776d..b1b210b4d3 100644--- a/crates/openhuman-core/src/skills/tools.rs+++ b/crates/openhuman-core/src/skills/tools.rs@@ -31,6 +31,8 @@ use crate::tools::traits::{PermissionLevel, Tool};mod helpers;mod read;+#[path = "tools_uninstall.rs"]+mod uninstall;mod write;pub(super) use helpers::{skill_allowed, SkillAllowlist};@@ -38,7 +40,8 @@ pub use read::{WorkflowDescribeTool, WorkflowListTool, WorkflowReadResourceTool, WorkflowReadRunLogTool,WorkflowRecentRunsTool,};-pub use write::{WorkflowCreateTool, WorkflowInstallFromUrlTool, WorkflowUninstallTool};+pub use uninstall::WorkflowUninstallTool;+pub use write::{WorkflowCreateTool, WorkflowInstallFromUrlTool};#[cfg(test)]#[path = "tools_tests.rs"]diff --git a/crates/openhuman-core/src/skills/tools_uninstall.rs b/crates/openhuman-core/src/skills/tools_uninstall.rsindex 06e1c68036..2469d54e65 100644--- a/crates/openhuman-core/src/skills/tools_uninstall.rs+++ b/crates/openhuman-core/src/skills/tools_uninstall.rs@@ -6,6 +6,7 @@ use serde_json::json;use crate::tools::traits::{PermissionLevel, Tool, ToolResult};use crate::skills::ops_install::{uninstall_workflow, UninstallWorkflowParams};+use super::helpers::read_required_str;/// Uninstall a user skill. **Deletes from disk** — default-OFF.pub struct WorkflowUninstallTool;@@ -37,7 +38,7 @@ impl Tool for WorkflowUninstallTool {async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {log::debug!("[tool][skills] uninstall invoked");- let name = super::read_required_str(&args, "name")?;+ let name = read_required_str(&args, "name")?;let outcome = uninstall_workflow(UninstallWorkflowParams { name }, None).map_err(|e| anyhow::anyhow!("uninstall_workflow: {e}"))?;Ok(ToolResult::success(serde_json::to_string(&outcome)?))diff --git a/scripts/ci/rust-coverage-changed.sh b/scripts/ci/rust-coverage-changed.shindex 0fbc6c6a5c..b5006071f4 100755--- a/scripts/ci/rust-coverage-changed.sh+++ b/scripts/ci/rust-coverage-changed.sh@@ -73,10 +73,11 @@ llvm_cov() {bash scripts/ci-cancel-aware.sh cargo llvm-cov --features "${PRODUCT_FEATURES}" "$@"}-# Workspace facade packages have no copy of the core's product feature-# vocabulary. Their dependency on openhuman-core uses the contributor defaults.+# Facade packages mirror the core's feature names. Forward the product set so+# their own feature-gated façade modules (not just their core dependency) are+# compiled and measured too.llvm_cov_package() {- bash scripts/ci-cancel-aware.sh cargo llvm-cov "$@"+ bash scripts/ci-cancel-aware.sh cargo llvm-cov --features "${PRODUCT_FEATURES}" "$@"}# Total libtest cases executed across every scoped/full run in this invocation.