@pi-stef/catalog 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-stef/catalog",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Pi extension for managing skill/package catalogs.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -72,6 +72,11 @@ export async function removeCommand(
72
72
  }
73
73
  }
74
74
 
75
+ // --- Capture source before removing -------------------------------------
76
+ // pi uninstall needs the full source (e.g., "npm:@pi-stef/foo"), not just
77
+ // the catalog key.
78
+ const source = catalog.packages[name].source;
79
+
75
80
  // --- Remove package -------------------------------------------------------
76
81
  const updated = removePackage(catalog, name);
77
82
  writeCatalog(updated, ctx.home);
@@ -80,7 +85,7 @@ export async function removeCommand(
80
85
 
81
86
  // --- Run pi uninstall -----------------------------------------------------
82
87
  try {
83
- await piUninstall(name);
88
+ await piUninstall(source);
84
89
  } catch {
85
90
  ctx.ui.notify(
86
91
  `Warning: package "${name}" removed from catalog but uninstall failed`,