@wipcomputer/wip-ldm-os 0.4.7 → 0.4.8

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 +13 -2
  2. package/bin/ldm.js +16 -4
  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.7"
8
+ version: "0.4.8"
9
9
  homepage: "https://github.com/wipcomputer/wip-ldm-os"
10
10
  author: "Parker Todd Brooks"
11
11
  category: infrastructure
@@ -162,7 +162,18 @@ ldm status 2>&1
162
162
 
163
163
  **Use the output of `ldm status` as your summary.** Do not say "up to date" if `ldm status` shows updates available. Do not make your own summary without running `ldm status` first.
164
164
 
165
- When the user wants to update:
165
+ When the user asks for a dry run or wants to update, run `ldm install --dry-run` and display the results as a **table**:
166
+
167
+ ```
168
+ | Extension | Current | Available | Package |
169
+ |-----------|---------|-----------|---------|
170
+ | wip-branch-guard | v1.9.30 | v1.9.36 | @wipcomputer/wip-branch-guard |
171
+ | memory-crystal | v0.7.24 | v0.7.26 | @wipcomputer/memory-crystal |
172
+ ```
173
+
174
+ **Always show a table.** Never collapse updates into a paragraph or bullet list. Every update gets its own row. Show ALL updates, not a summary.
175
+
176
+ When the user says "install":
166
177
  ```bash
167
178
  ldm install # update all registered extensions
168
179
  ldm doctor # verify everything works
package/bin/ldm.js CHANGED
@@ -684,12 +684,24 @@ async function cmdInstallCatalog() {
684
684
 
685
685
  if (DRY_RUN) {
686
686
  if (npmUpdates.length > 0) {
687
- console.log(` Would update ${npmUpdates.length} extension(s) from npm:`);
687
+ // Table output
688
+ const nameW = Math.max(10, ...npmUpdates.map(e => e.name.length));
689
+ const curW = Math.max(7, ...npmUpdates.map(e => e.currentVersion.length + 1));
690
+ const latW = Math.max(9, ...npmUpdates.map(e => e.latestVersion.length + 1));
691
+ const pkgW = Math.max(7, ...npmUpdates.map(e => e.catalogNpm.length));
692
+
693
+ const pad = (s, w) => s + ' '.repeat(Math.max(0, w - s.length));
694
+ const hr = ` ${'─'.repeat(nameW + curW + latW + pkgW + 13)}`;
695
+
696
+ console.log('');
697
+ console.log(` ${npmUpdates.length} update(s) available:`);
698
+ console.log('');
699
+ console.log(` ${pad('Extension', nameW)} │ ${pad('Current', curW)} │ ${pad('Available', latW)} │ ${pad('Package', pkgW)}`);
700
+ console.log(hr);
688
701
  for (const e of npmUpdates) {
689
- console.log(` ${e.name}: v${e.currentVersion} -> v${e.latestVersion} (${e.catalogNpm})`);
702
+ console.log(` ${pad(e.name, nameW)} ${pad('v' + e.currentVersion, curW)} ${pad('v' + e.latestVersion, latW)} ${pad(e.catalogNpm, pkgW)}`);
690
703
  }
691
- }
692
- if (totalUpdates > 0) {
704
+ console.log('');
693
705
  console.log(' No data (crystal.db, agent files) would be touched.');
694
706
  console.log(' Old versions would be moved to ~/.ldm/_trash/ (never deleted).');
695
707
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-ldm-os",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
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",