@wipcomputer/wip-ldm-os 0.4.49 → 0.4.51
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/SKILL.md +1 -1
- package/lib/deploy.mjs +19 -8
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ license: MIT
|
|
|
9
9
|
compatibility: Requires git, npm, node. Node.js 18+.
|
|
10
10
|
metadata:
|
|
11
11
|
display-name: "LDM OS"
|
|
12
|
-
version: "0.4.
|
|
12
|
+
version: "0.4.51"
|
|
13
13
|
homepage: "https://github.com/wipcomputer/wip-ldm-os"
|
|
14
14
|
author: "Parker Todd Brooks"
|
|
15
15
|
category: infrastructure
|
package/lib/deploy.mjs
CHANGED
|
@@ -671,15 +671,28 @@ function installSkill(repoPath, toolName) {
|
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
try {
|
|
674
|
+
// Deploy to OpenClaw (~/.openclaw/skills/)
|
|
674
675
|
mkdirSync(ocSkillDir, { recursive: true });
|
|
675
676
|
cpSync(skillSrc, ocSkillDest);
|
|
676
|
-
|
|
677
|
+
|
|
678
|
+
// Deploy to Claude Code (~/.claude/skills/) - standard discovery path
|
|
679
|
+
const ccSkillDir = join(HOME, '.claude', 'skills', toolName);
|
|
680
|
+
if (existsSync(join(HOME, '.claude'))) {
|
|
681
|
+
mkdirSync(ccSkillDir, { recursive: true });
|
|
682
|
+
cpSync(skillSrc, join(ccSkillDir, 'SKILL.md'));
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
ok(`Skill: deployed to ~/.openclaw/skills/ and ~/.claude/skills/`);
|
|
677
686
|
|
|
678
687
|
// Deploy references/ if it exists (Agent Skills Spec pattern)
|
|
679
688
|
const refsSrc = join(repoPath, 'references');
|
|
680
689
|
if (existsSync(refsSrc)) {
|
|
681
|
-
|
|
682
|
-
cpSync(refsSrc,
|
|
690
|
+
// To OpenClaw skill dir
|
|
691
|
+
cpSync(refsSrc, join(ocSkillDir, 'references'), { recursive: true });
|
|
692
|
+
// To Claude Code skill dir
|
|
693
|
+
if (existsSync(ccSkillDir)) {
|
|
694
|
+
cpSync(refsSrc, join(ccSkillDir, 'references'), { recursive: true });
|
|
695
|
+
}
|
|
683
696
|
|
|
684
697
|
// Also deploy to home (settings/docs/skills/) so all agents can read them
|
|
685
698
|
try {
|
|
@@ -822,11 +835,9 @@ export function installSingleTool(toolPath) {
|
|
|
822
835
|
}
|
|
823
836
|
|
|
824
837
|
if (interfaces.skill) {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
skip(`Skill: ${toolName} installed but not enabled`);
|
|
829
|
-
}
|
|
838
|
+
// Skills always deploy regardless of enabled state.
|
|
839
|
+
// They're instruction files (SKILL.md), not running code.
|
|
840
|
+
if (installSkill(toolPath, toolName)) installed++;
|
|
830
841
|
}
|
|
831
842
|
|
|
832
843
|
if (interfaces.module) {
|