@wipcomputer/wip-ldm-os 0.4.8 → 0.4.10

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 +6 -2
  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.4.8"
8
+ version: "0.4.10"
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
@@ -66,6 +66,8 @@ function acquireInstallLock() {
66
66
  try {
67
67
  if (existsSync(LOCK_PATH)) {
68
68
  const lock = JSON.parse(readFileSync(LOCK_PATH, 'utf8'));
69
+ // Re-entrant: if we already hold the lock, allow it
70
+ if (lock.pid === process.pid) return true;
69
71
  // Check if PID is still alive
70
72
  try {
71
73
  process.kill(lock.pid, 0); // signal 0 = just check if alive
@@ -73,7 +75,9 @@ function acquireInstallLock() {
73
75
  console.log(` Wait for it to finish, or remove ~/.ldm/state/.ldm-install.lock`);
74
76
  return false;
75
77
  } catch {
76
- // PID is dead, stale lock. Clean it up.
78
+ // PID is dead, stale lock. Auto-clean.
79
+ try { unlinkSync(LOCK_PATH); } catch {}
80
+ console.log(` Cleaned stale install lock (PID ${lock.pid} is dead).`);
77
81
  }
78
82
  }
79
83
  mkdirSync(dirname(LOCK_PATH), { recursive: true });
@@ -595,7 +599,7 @@ function autoDetectExtensions() {
595
599
  // ── ldm install (bare): scan system, show real state, update if needed ──
596
600
 
597
601
  async function cmdInstallCatalog() {
598
- if (!DRY_RUN && !acquireInstallLock()) return;
602
+ // No lock here. cmdInstall() already holds it when calling this.
599
603
 
600
604
  autoDetectExtensions();
601
605
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-ldm-os",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
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",