@wipcomputer/wip-ldm-os 0.4.52 → 0.4.53
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 +13 -3
- 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.53"
|
|
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
|
@@ -86,7 +86,7 @@ function updateRegistry(name, info) {
|
|
|
86
86
|
registry.extensions[name] = {
|
|
87
87
|
...existing,
|
|
88
88
|
...info,
|
|
89
|
-
enabled: existing?.enabled ??
|
|
89
|
+
enabled: existing?.enabled ?? true,
|
|
90
90
|
updatedAt: new Date().toISOString(),
|
|
91
91
|
};
|
|
92
92
|
saveRegistry(registry);
|
|
@@ -650,10 +650,16 @@ function installClaudeCodeHook(repoPath, door) {
|
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
function installSkill(repoPath, toolName) {
|
|
653
|
-
|
|
653
|
+
let skillSrc = join(repoPath, 'SKILL.md');
|
|
654
654
|
const ocSkillDir = join(OC_ROOT, 'skills', toolName);
|
|
655
655
|
const ocSkillDest = join(ocSkillDir, 'SKILL.md');
|
|
656
656
|
|
|
657
|
+
// If the original source is gone (tmp clone cleaned up), use the already-deployed OC copy
|
|
658
|
+
if (!existsSync(skillSrc) && existsSync(ocSkillDest)) {
|
|
659
|
+
skillSrc = ocSkillDest;
|
|
660
|
+
}
|
|
661
|
+
if (!existsSync(skillSrc)) return false;
|
|
662
|
+
|
|
657
663
|
if (existsSync(ocSkillDest)) {
|
|
658
664
|
try {
|
|
659
665
|
const srcContent = readFileSync(skillSrc, 'utf8');
|
|
@@ -685,7 +691,11 @@ function installSkill(repoPath, toolName) {
|
|
|
685
691
|
ok(`Skill: deployed to ~/.openclaw/skills/ and ~/.claude/skills/`);
|
|
686
692
|
|
|
687
693
|
// Deploy references/ if it exists (Agent Skills Spec pattern)
|
|
688
|
-
|
|
694
|
+
let refsSrc = join(repoPath, 'references');
|
|
695
|
+
// Fallback to already-deployed OC copy if source is gone
|
|
696
|
+
if (!existsSync(refsSrc) && existsSync(join(ocSkillDir, 'references'))) {
|
|
697
|
+
refsSrc = join(ocSkillDir, 'references');
|
|
698
|
+
}
|
|
689
699
|
if (existsSync(refsSrc)) {
|
|
690
700
|
// To OpenClaw skill dir
|
|
691
701
|
cpSync(refsSrc, join(ocSkillDir, 'references'), { recursive: true });
|