Skip to content

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

chore: files changed src/openhuman/config/workspace/ops.rs,src/openhuman/skills/bundled/mod.rs,src/o

Steven Enamakelec6c885eace2
diff --git a/src/openhuman/config/workspace/ops.rs b/src/openhuman/config/workspace/ops.rs
index f59636f728..a287997071 100644
--- a/src/openhuman/config/workspace/ops.rs
+++ b/src/openhuman/config/workspace/ops.rs
@@ -1,7 +1,7 @@
use serde_json::json;
use crate::openhuman::config::rpc as config_rpc;
-use crate::openhuman::skills::init_workflows_dir;
+use crate::openhuman::skills::{init_workflows_dir, install_bundled_skills};
use std::path::Path;
const BOOTSTRAP_FILES: [(&str, &str); 2] = [
@@ -102,6 +102,12 @@ pub async fn init_workspace(force: bool) -> Result<serde_json::Value, String> {
init_workflows_dir(&workspace_dir)
.map_err(|e| format!("failed to initialize skills dir: {e}"))?;
+ // Materialise the skills compiled into this binary. Deliberately not
+ // fallible: a workspace that cannot take a builtin skill boots without it
+ // (the failure is logged per skill) rather than refusing to boot at all —
+ // these are conveniences the model looks up, not state anything depends on.
+ install_bundled_skills(&workspace_dir);
+
// Report what the call actually did, not what it was expected to do.
//
// These two were previously classified from the pre-check alone, which
diff --git a/src/openhuman/skills/bundled/mod.rs b/src/openhuman/skills/bundled/mod.rs
index 26af603320..9d7ecbe12d 100644
--- a/src/openhuman/skills/bundled/mod.rs
+++ b/src/openhuman/skills/bundled/mod.rs
@@ -213,6 +213,16 @@ pub fn install(workspace_dir: &Path) -> InstallReport {
report
}
+/// Boot entry point: install every bundled skill and discard the report.
+///
+/// Separate from [`install`] only so it can have the same signature as the
+/// skills-off stub, which cannot name [`InstallReport`] (that type lives inside
+/// the gate). The one caller logs nothing extra — [`install`] already logs per
+/// skill — so nothing is lost by dropping the report here.
+pub fn install_bundled_skills(workspace_dir: &Path) {
+ let _ = install(workspace_dir);
+}
+
/// Returns `Ok(true)` when the bundle was (re)written, `Ok(false)` when the
/// on-disk copy was already current.
fn install_one(root: &Path, skill: &BundledSkill) -> Result<bool, String> {
diff --git a/src/openhuman/skills/ops.rs b/src/openhuman/skills/ops.rs
index c09f6bf5a7..3c0898e7e6 100644
--- a/src/openhuman/skills/ops.rs
+++ b/src/openhuman/skills/ops.rs
@@ -29,7 +29,7 @@
// Re-export everything that was previously public from this file so external
// callers are unaffected.
-pub use super::bundled::install as install_bundled_skills;
+pub use super::bundled::install_bundled_skills;
pub use super::ops_create::{create_workflow, CreateWorkflowParams, WorkflowCreateInputDef};
pub use super::ops_discover::{
discover_automations, discover_workflows, discover_workflows_with_profile, init_workflows_dir,