@wipcomputer/wip-ldm-os 0.3.3 → 0.3.4

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.
Files changed (3) hide show
  1. package/SKILL.md +1 -1
  2. package/bin/ldm.js +13 -0
  3. package/package.json +1 -1
package/SKILL.md CHANGED
@@ -5,7 +5,7 @@ license: MIT
5
5
  interface: [cli, skill]
6
6
  metadata:
7
7
  display-name: "LDM OS"
8
- version: "0.3.3"
8
+ version: "0.3.4"
9
9
  homepage: "https://github.com/wipcomputer/wip-ldm-os"
10
10
  author: "Parker Todd Brooks"
11
11
  category: infrastructure
package/bin/ldm.js CHANGED
@@ -45,6 +45,19 @@ try {
45
45
  CATALOG = JSON.parse(readFileSync(catalogPath, 'utf8'));
46
46
  } catch {}
47
47
 
48
+ // Auto-sync version.json when CLI version drifts (#33)
49
+ // npm install -g updates the binary but not version.json. Fix it on any CLI invocation.
50
+ if (existsSync(VERSION_PATH)) {
51
+ try {
52
+ const v = JSON.parse(readFileSync(VERSION_PATH, 'utf8'));
53
+ if (v.version && v.version !== PKG_VERSION) {
54
+ v.version = PKG_VERSION;
55
+ v.updated = new Date().toISOString();
56
+ writeFileSync(VERSION_PATH, JSON.stringify(v, null, 2) + '\n');
57
+ }
58
+ } catch {}
59
+ }
60
+
48
61
  const args = process.argv.slice(2);
49
62
  const command = args[0];
50
63
  const DRY_RUN = args.includes('--dry-run');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-ldm-os",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "type": "module",
5
5
  "description": "LDM OS: identity, memory, and sovereignty infrastructure for AI agents",
6
6
  "main": "src/boot/boot-hook.mjs",