@wipcomputer/wip-ldm-os 0.4.16 → 0.4.17
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/bin/ldm.js +1 -0
- package/lib/deploy.mjs +2 -2
- package/package.json +1 -1
package/SKILL.md
CHANGED
package/bin/ldm.js
CHANGED
|
@@ -52,6 +52,7 @@ if (existsSync(VERSION_PATH)) {
|
|
|
52
52
|
const v = JSON.parse(readFileSync(VERSION_PATH, 'utf8'));
|
|
53
53
|
if (v.version && v.version !== PKG_VERSION) {
|
|
54
54
|
v.version = PKG_VERSION;
|
|
55
|
+
v.installed = new Date().toISOString(); // #86: update install date on CLI upgrade
|
|
55
56
|
v.updated = new Date().toISOString();
|
|
56
57
|
writeFileSync(VERSION_PATH, JSON.stringify(v, null, 2) + '\n');
|
|
57
58
|
}
|
package/lib/deploy.mjs
CHANGED
|
@@ -572,9 +572,9 @@ function installClaudeCodeHook(repoPath, door) {
|
|
|
572
572
|
const extDir = join(LDM_EXTENSIONS, toolName);
|
|
573
573
|
const installedGuard = join(extDir, 'guard.mjs');
|
|
574
574
|
|
|
575
|
-
// Deploy guard.mjs to ~/.ldm/extensions/{toolName}/
|
|
575
|
+
// Deploy guard.mjs to ~/.ldm/extensions/{toolName}/ (#85: always update, not just when missing)
|
|
576
576
|
const srcGuard = join(repoPath, 'guard.mjs');
|
|
577
|
-
if (
|
|
577
|
+
if (existsSync(srcGuard)) {
|
|
578
578
|
try {
|
|
579
579
|
if (!existsSync(extDir)) mkdirSync(extDir, { recursive: true });
|
|
580
580
|
copyFileSync(srcGuard, installedGuard);
|