@mutmutco/cli 3.54.0 → 3.55.0

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 (2) hide show
  1. package/dist/main.cjs +6 -5
  2. package/package.json +1 -1
package/dist/main.cjs CHANGED
@@ -22776,9 +22776,13 @@ async function applyPluginHeal(surface, log, opts) {
22776
22776
  const refSupported = await marketplaceAddRefSupported("claude");
22777
22777
  const { steps } = adaptHealStepsForRefSupport(tableSteps, refSupported);
22778
22778
  log(healBannerLine("claude", "claude", refSupported));
22779
+ const pinsPath = (0, import_node_path26.join)((0, import_node_os6.homedir)(), ...KNOWN_MARKETPLACES_RELATIVE);
22780
+ const pins = captureMarketplacePins(readKnownMarketplacesFile(pinsPath), [MMI_MARKETPLACE_NAME, JERV_MARKETPLACE_NAME]);
22779
22781
  for (const step of steps) {
22780
22782
  if (healStepAborts(step, await runClaudePlugin([...step.args]))) return false;
22781
22783
  }
22784
+ const restored = restoreMarketplacePinsOnDisk(pinsPath, pins);
22785
+ if (restored) log(` ${restored}`);
22782
22786
  return true;
22783
22787
  }
22784
22788
  async function healClaudePluginForDoctor(surface = detectSurface(process.env)) {
@@ -22786,14 +22790,11 @@ async function healClaudePluginForDoctor(surface = detectSurface(process.env)) {
22786
22790
  return { ok: false, detail: `not a Claude surface (${surface}) \u2014 no Hub-shipped plugin to reinstall` };
22787
22791
  }
22788
22792
  const steps = [];
22789
- const pinsPath = (0, import_node_path26.join)((0, import_node_os6.homedir)(), ...KNOWN_MARKETPLACES_RELATIVE);
22790
- const before = readKnownMarketplacesFile(pinsPath);
22791
- const pins = captureMarketplacePins(before, [MMI_MARKETPLACE_NAME, JERV_MARKETPLACE_NAME]);
22792
22793
  const ok = await applyPluginHeal(surface, (msg) => steps.push(msg.trim()));
22793
- const restored = ok ? restoreMarketplacePinsOnDisk(pinsPath, pins) : void 0;
22794
+ const pinNote = steps.find((s) => s.startsWith("re-pinned ") || s.includes("re-pin by hand"));
22794
22795
  return {
22795
22796
  ok,
22796
- detail: ok ? `marketplace remove \u2192 add \u2192 install succeeded${restored ? `; ${restored}` : ""}` : `\`claude plugin\` reinstall failed or was skipped${steps.length ? ` (${steps[steps.length - 1]})` : ""}`
22797
+ detail: ok ? `marketplace remove \u2192 add \u2192 install succeeded${pinNote ? `; ${pinNote}` : ""}` : `\`claude plugin\` reinstall failed or was skipped${steps.length ? ` (${steps[steps.length - 1]})` : ""}`
22797
22798
  };
22798
22799
  }
22799
22800
  function readKnownMarketplacesFile(path2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "3.54.0",
3
+ "version": "3.55.0",
4
4
  "description": "MMI Future CLI — the org dev toolbox (board, registry, keyless secrets, release train, bootstrap, doctor) and the cross-IDE engine the plugin's session-start hook drives.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",