@wipcomputer/wip-ldm-os 0.4.21 → 0.4.23

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 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.21"
8
+ version: "0.4.23"
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
@@ -670,8 +670,9 @@ async function cmdInstallCatalog() {
670
670
  console.log(` CLI updated to v${latest}. Re-running with new code...`);
671
671
  console.log('');
672
672
  // Re-exec with the new binary. LDM_SELF_UPDATED prevents infinite loop.
673
- const newArgs = process.argv.slice(1);
674
- execSync(`LDM_SELF_UPDATED=1 ldm ${newArgs.join(' ')}`, { stdio: 'inherit' });
673
+ // process.argv.slice(2) skips 'node' and the script path, keeps just 'install' + flags
674
+ const reArgs = process.argv.slice(2).join(' ') || 'install';
675
+ execSync(`LDM_SELF_UPDATED=1 ldm ${reArgs}`, { stdio: 'inherit' });
675
676
  process.exit(0);
676
677
  } catch (e) {
677
678
  console.log(` ! Self-update failed: ${e.message}. Continuing with v${PKG_VERSION}.`);
package/catalog.json CHANGED
@@ -51,10 +51,10 @@
51
51
  "id": "wip-ai-devops-toolbox",
52
52
  "name": "AI DevOps Toolbox",
53
53
  "description": "Release pipeline, license compliance, repo management, identity file protection.",
54
- "npm": "@wipcomputer/universal-installer",
54
+ "npm": "@wipcomputer/wip-ai-devops-toolbox",
55
55
  "repo": "wipcomputer/wip-ai-devops-toolbox",
56
- "registryMatches": ["wip-repos", "wip-release", "wip-file-guard", "wip-license-hook", "wip-repo-permissions-hook", "universal-installer", "deploy-public", "post-merge-rename", "wip-license-guard", "wip-repo-init", "wip-readme-format", "wip-branch-guard"],
57
- "cliMatches": ["wip-release", "wip-repos", "wip-file-guard", "wip-install", "wip-branch-guard"],
56
+ "registryMatches": ["wip-repos", "wip-release", "wip-file-guard", "wip-license-hook", "wip-repo-permissions-hook", "deploy-public", "post-merge-rename", "wip-license-guard", "wip-repo-init", "wip-readme-format", "wip-branch-guard"],
57
+ "cliMatches": ["wip-release", "wip-repos", "wip-file-guard", "wip-branch-guard"],
58
58
  "recommended": false,
59
59
  "status": "stable",
60
60
  "postInstall": null,
package/lib/deploy.mjs CHANGED
@@ -685,6 +685,34 @@ export function installSingleTool(toolPath) {
685
685
 
686
686
  const toolName = pkg?.name?.replace(/^@\w+\//, '') || basename(toolPath);
687
687
 
688
+ // Migrate ldm-install-* ghost directories (#96)
689
+ // Old installs used /tmp/ldm-install-<name> as source, which leaked into the directory name.
690
+ // If both ldm-install-<name> and <name> exist, remove the ghost and clean the registry.
691
+ const ghostName = `ldm-install-${toolName}`;
692
+ const ghostPath = join(LDM_EXTENSIONS, ghostName);
693
+ if (existsSync(ghostPath) && ghostName !== toolName) {
694
+ if (!DRY_RUN) {
695
+ const trashDir = join(LDM_ROOT, '_trash', new Date().toISOString().split('T')[0]);
696
+ try {
697
+ mkdirSync(trashDir, { recursive: true });
698
+ const trashDest = join(trashDir, ghostName);
699
+ cpSync(ghostPath, trashDest, { recursive: true });
700
+ execSync(`rm -rf "${ghostPath}"`, { stdio: 'pipe' });
701
+ // Clean registry
702
+ const registry = loadRegistry();
703
+ if (registry.extensions?.[ghostName]) {
704
+ delete registry.extensions[ghostName];
705
+ saveRegistry(registry);
706
+ }
707
+ log(`Migrated ghost directory: ${ghostName} -> _trash/ (real name: ${toolName})`);
708
+ } catch (e) {
709
+ log(`Warning: could not migrate ${ghostName}: ${e.message}`);
710
+ }
711
+ } else {
712
+ log(`Would migrate ghost directory: ${ghostName} -> _trash/ (real name: ${toolName})`);
713
+ }
714
+ }
715
+
688
716
  if (!JSON_OUTPUT) {
689
717
  console.log('');
690
718
  console.log(` Installing: ${toolName}${DRY_RUN ? ' (dry run)' : ''}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-ldm-os",
3
- "version": "0.4.21",
3
+ "version": "0.4.23",
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",