@blockrun/clawrouter 0.12.71 → 0.12.72
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 +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50737,7 +50737,9 @@ function installSkillsToWorkspace(logger) {
|
|
|
50737
50737
|
if (!existsSync3(bundledSkillsDir)) {
|
|
50738
50738
|
return;
|
|
50739
50739
|
}
|
|
50740
|
-
const
|
|
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 });
|
|
50742
50744
|
const entries = readdirSync(bundledSkillsDir, { withFileTypes: true });
|
|
50743
50745
|
let installed = 0;
|
|
@@ -50746,7 +50748,7 @@ function installSkillsToWorkspace(logger) {
|
|
|
50746
50748
|
const skillName = entry.name;
|
|
50747
50749
|
const srcSkillFile = join10(bundledSkillsDir, skillName, "SKILL.md");
|
|
50748
50750
|
if (!existsSync3(srcSkillFile)) continue;
|
|
50749
|
-
const destDir = join10(workspaceSkillsDir,
|
|
50751
|
+
const destDir = join10(workspaceSkillsDir, skillName);
|
|
50750
50752
|
const destSkillFile = join10(destDir, "SKILL.md");
|
|
50751
50753
|
let needsUpdate = true;
|
|
50752
50754
|
if (existsSync3(destSkillFile)) {
|