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): correct assertion and reformat install fetch code
Steven Enamakeld9e341ba2c0d
diff --git a/crates/openhuman-core/src/skills/ops.rs b/crates/openhuman-core/src/skills/ops.rsindex aba91e6e32..4c3f1a0ff3 100644--- a/crates/openhuman-core/src/skills/ops.rs+++ b/crates/openhuman-core/src/skills/ops.rs@@ -52,8 +52,7 @@ pub(crate) use super::ops_create::create_workflow_inner;pub(crate) use super::ops_discover::discover_workflows_inner;#[cfg(test)]pub(crate) use super::ops_install::{- install_workflow_from_url_with_home, normalize_install_url,- should_report_install_fetch_status,+ install_workflow_from_url_with_home, normalize_install_url, should_report_install_fetch_status,};#[cfg(test)]pub(crate) use super::ops_types::{diff --git a/crates/openhuman-core/src/skills/ops_discovery_tests.rs b/crates/openhuman-core/src/skills/ops_discovery_tests.rsindex 781e74197e..7809e6b5df 100644--- a/crates/openhuman-core/src/skills/ops_discovery_tests.rs+++ b/crates/openhuman-core/src/skills/ops_discovery_tests.rs@@ -169,10 +169,7 @@ fn read_skill_resource_rejects_empty_inputs() {let err = read_workflow_resource(ws, "demo", Path::new("")).expect_err("empty relative_path must be rejected");- assert!(- err.to_lowercase().contains("relative_path"),- "unexpected: {err}"- );+ assert!(err.contains("non-empty relative path"), "unexpected: {err}");}// ── `discovery_home_dir`: the per-agent "no user roots" switch ───────────diff --git a/crates/openhuman-core/src/skills/ops_install/fetch.rs b/crates/openhuman-core/src/skills/ops_install/fetch.rsindex 6fbfc51708..5b1af02d8e 100644--- a/crates/openhuman-core/src/skills/ops_install/fetch.rs+++ b/crates/openhuman-core/src/skills/ops_install/fetch.rs@@ -298,30 +298,29 @@ pub(crate) async fn install_workflow_from_url_with_home(.join(".openhuman").join("skills");- let target_file = match write_installed_document(&skills_root, &slug, &content)- .map_err(|e| e.to_string())?- {- DocumentWrite::Installed(path) => path,- DocumentWrite::AlreadyInstalled(target_file) => {- tracing::info!(- raw_url = %redacted_raw_url,- fetch_url = %redacted_fetch_url,- slug = %slug,- target = %target_file.display(),- "[skills] install_workflow_from_url: already installed"- );-- return Ok(InstallWorkflowFromUrlOutcome {- url: raw_url,- stdout: format!(- "Skill {slug:?} is already installed at {}",- target_file.display()- ),- stderr: parse_warnings.join("\n"),- new_skills: Vec::new(),- });- }- };+ let target_file =+ match write_installed_document(&skills_root, &slug, &content).map_err(|e| e.to_string())? {+ DocumentWrite::Installed(path) => path,+ DocumentWrite::AlreadyInstalled(target_file) => {+ tracing::info!(+ raw_url = %redacted_raw_url,+ fetch_url = %redacted_fetch_url,+ slug = %slug,+ target = %target_file.display(),+ "[skills] install_workflow_from_url: already installed"+ );++ return Ok(InstallWorkflowFromUrlOutcome {+ url: raw_url,+ stdout: format!(+ "Skill {slug:?} is already installed at {}",+ target_file.display()+ ),+ stderr: parse_warnings.join("\n"),+ new_skills: Vec::new(),+ });+ }+ };let trusted_after = is_workspace_trusted(workspace_dir);let after = discover_workflows_inner(home, Some(workspace_dir), trusted_after);