@mutmutco/cli 3.50.0 → 3.51.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
@@ -23706,6 +23706,7 @@ function gcReapable(plan) {
23706
23706
  }
23707
23707
  async function runDoctorClean(opts, io, deps) {
23708
23708
  const apply = Boolean(opts.apply);
23709
+ const applyRepo = apply && opts.repoWrites !== false;
23709
23710
  const [login, isOrgRepo, released, callerArn, reach] = await Promise.all([
23710
23711
  deps.githubLogin(),
23711
23712
  deps.isOrgRepo(),
@@ -23737,7 +23738,7 @@ async function runDoctorClean(opts, io, deps) {
23737
23738
  ];
23738
23739
  if (gi.ok) {
23739
23740
  checks.push({ ok: true, label: "gitignore block", verbose: giEvidence });
23740
- } else if (apply && gi.content && deps.writeGitignore(gi.content)) {
23741
+ } else if (applyRepo && gi.content && deps.writeGitignore(gi.content)) {
23741
23742
  checks.push({ ok: true, label: "gitignore block", detail: "rewrote managed block", verbose: giEvidence });
23742
23743
  restartPending = true;
23743
23744
  } else {
@@ -23836,7 +23837,7 @@ async function runDoctorClean(opts, io, deps) {
23836
23837
  const repoRoot2 = await deps.repoRoot();
23837
23838
  try {
23838
23839
  const plan = await deps.gcPlan("origin", 200);
23839
- if (apply) {
23840
+ if (applyRepo) {
23840
23841
  const r = await deps.applyGcPlan(plan, "origin");
23841
23842
  const reaped = r.removedBranches.length + r.removedRemoteBranches.length + r.removedWorktreeDirs.length + r.removedTrackingRefs.length;
23842
23843
  const detailParts = [];
@@ -23876,7 +23877,7 @@ async function runDoctorClean(opts, io, deps) {
23876
23877
  }
23877
23878
  const scratch = deps.executeScratchGc(repoRoot2, { apply: false });
23878
23879
  const scratchEvidence = scratch.plan.safeAuto.length ? scratch.plan.safeAuto.map((c) => `aged: ${c.path} (${c.reason})`) : ["nothing aged"];
23879
- if (apply && scratch.plan.safeAuto.length > 0) {
23880
+ if (applyRepo && scratch.plan.safeAuto.length > 0) {
23880
23881
  const applied = deps.executeScratchGc(repoRoot2, { apply: true });
23881
23882
  const pruned = applied.applied?.pruned.length ?? 0;
23882
23883
  checks.push({ ok: true, label: "scratch", detail: pruned ? `removed ${pruned} aged item(s)` : "nothing stale", verbose: scratchEvidence });
@@ -26285,10 +26286,10 @@ program2.command("doctor").description("check onboarding gates and auto-heal CLI
26285
26286
  consoleIo.log("MMI Agentic Onboarding: docs/Architecture/agentic-dev-environment.md");
26286
26287
  return;
26287
26288
  }
26288
- const noRepoWrites = opts.repoWrites === false;
26289
26289
  process.exitCode = await runDoctorClean(
26290
26290
  {
26291
- apply: Boolean(opts.apply) && !noRepoWrites,
26291
+ apply: Boolean(opts.apply),
26292
+ repoWrites: opts.repoWrites,
26292
26293
  banner: opts.banner,
26293
26294
  preflight: opts.preflight,
26294
26295
  fast: opts.fast || opts.self,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "3.50.0",
3
+ "version": "3.51.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",