@blockrun/clawrouter 0.12.71 → 0.12.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -50737,16 +50737,20 @@ function installSkillsToWorkspace(logger) {
50737
50737
  if (!existsSync3(bundledSkillsDir)) {
50738
50738
  return;
50739
50739
  }
50740
- const workspaceSkillsDir = join10(homedir7(), ".openclaw", "skills");
50740
+ const profile = (process["env"].OPENCLAW_PROFILE ?? "").trim().toLowerCase();
50741
+ const workspaceDirName = profile && profile !== "default" ? `workspace-${profile}` : "workspace";
50742
+ const workspaceSkillsDir = join10(homedir7(), ".openclaw", workspaceDirName, "skills");
50741
50743
  mkdirSync3(workspaceSkillsDir, { recursive: true });
50744
+ const INTERNAL_SKILLS = /* @__PURE__ */ new Set(["release"]);
50742
50745
  const entries = readdirSync(bundledSkillsDir, { withFileTypes: true });
50743
50746
  let installed = 0;
50744
50747
  for (const entry of entries) {
50745
50748
  if (!entry.isDirectory()) continue;
50746
50749
  const skillName = entry.name;
50750
+ if (INTERNAL_SKILLS.has(skillName)) continue;
50747
50751
  const srcSkillFile = join10(bundledSkillsDir, skillName, "SKILL.md");
50748
50752
  if (!existsSync3(srcSkillFile)) continue;
50749
- const destDir = join10(workspaceSkillsDir, `blockrun-${skillName}`);
50753
+ const destDir = join10(workspaceSkillsDir, skillName);
50750
50754
  const destSkillFile = join10(destDir, "SKILL.md");
50751
50755
  let needsUpdate = true;
50752
50756
  if (existsSync3(destSkillFile)) {