@mutmutco/cli 4.5.167 → 4.5.169

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 +17 -10
  2. package/package.json +1 -1
package/dist/main.cjs CHANGED
@@ -11013,7 +11013,10 @@ async function verifySecretValue(deps, key, value, _opts) {
11013
11013
  return { ok: false, provider, message: `no provider verifier configured for ${secretLeafName(key)}`, checked: [] };
11014
11014
  }
11015
11015
  async function vaultSlug(deps, opts) {
11016
- return (opts.repo ? opts.repo.split("/").pop() : await deps.slug()).toLowerCase();
11016
+ if (opts.repo) return opts.repo.split("/").pop().toLowerCase();
11017
+ const slug = await deps.slug();
11018
+ if (slug === "-") throw new Error("no repo checkout here: run inside a registered repo checkout (or pass --repo where the command accepts it)");
11019
+ return slug.toLowerCase();
11017
11020
  }
11018
11021
  async function targetRepo(deps, opts) {
11019
11022
  return opts.repo ?? repoOf(await vaultSlug(deps, opts));
@@ -19071,10 +19074,10 @@ var rollout_plan_default = {
19071
19074
  note: "The v4.0.0 stamp happens at cut time (D6e #4463); until then the candidate is the origin/development head artifacts (built cli/dist + npm pack), identity proven by dist content hash (D6a)."
19072
19075
  },
19073
19076
  baseline: {
19074
- version: "4.5.167",
19075
- tag: "v4.5.167",
19076
- commit: "75accc753c8f",
19077
- npm: "@mutmutco/cli@4.5.167"
19077
+ version: "4.5.169",
19078
+ tag: "v4.5.169",
19079
+ commit: "4732697958bc",
19080
+ npm: "@mutmutco/cli@4.5.169"
19078
19081
  },
19079
19082
  exitCriterion: "fleet-n-of-n",
19080
19083
  hubOnlyShortcut: "forbidden",
@@ -19091,14 +19094,14 @@ var rollout_plan_default = {
19091
19094
  repo: "mutmutco/mmi-hub",
19092
19095
  role: "canary",
19093
19096
  schedule: "train",
19094
- v3Target: "v4.5.167"
19097
+ v3Target: "v4.5.169"
19095
19098
  }
19096
19099
  ],
19097
19100
  rollbackTrigger: "Any red inside the post-contract soak window: `devops train gate` FAIL attributable to the v4 doors, Hub endpoint health probe failure, a pre-v4 client admitted instead of receiving actionable HTTP 426, or npm consumer install/doctor failure on the v4-only dist.",
19098
19101
  rollback: {
19099
19102
  independent: true,
19100
- mechanism: "npm dist-tag latest -> 4.5.167 and redeploy the Hub Lambda from tag v4.5.167 (75accc753c8f); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
19101
- v3Target: "v4.5.167 (@mutmutco/cli@4.5.167, tag commit 75accc753c8f \u2014 last known-good release carrying the repo-index v4-only contract)"
19103
+ mechanism: "npm dist-tag latest -> 4.5.169 and redeploy the Hub Lambda from tag v4.5.169 (4732697958bc); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
19104
+ v3Target: "v4.5.169 (@mutmutco/cli@4.5.169, tag commit 4732697958bc \u2014 last known-good release carrying the repo-index v4-only contract)"
19102
19105
  }
19103
19106
  },
19104
19107
  {
@@ -23269,7 +23272,11 @@ async function runTenantRedeploy(deps, options) {
23269
23272
  const ctx = { repo, owner, slug: name.toLowerCase(), login };
23270
23273
  const meta = requireProjectMetaForTrain(await loadProjectMeta(deps, ctx), repo);
23271
23274
  const deployModel = requireDeployModel(meta, repo);
23272
- const ref = options.ref ?? (stage === "dev" || stage === "main" && meta.releaseTrack === "single" ? "development" : stage);
23275
+ const singleTrackMain = stage === "main" && meta.releaseTrack === "single";
23276
+ if (singleTrackMain && options.ref === "main") {
23277
+ throw new Error(`${repo} is single-track: its \`main\` branch is stale, so --ref main would roll main back. Pin --ref <last good deployed SHA or development head>, or omit --ref to deploy development.`);
23278
+ }
23279
+ const ref = options.ref ?? (stage === "dev" || singleTrackMain ? "development" : stage);
23273
23280
  if (!isCentralDispatchModel(deployModel)) {
23274
23281
  throw new Error(`${repo} is ${deployModel}, not a centrally-dispatched model (tenant-container/solo-container/static-cdn) \u2014 there is no central tenant-deploy run to retry (its deploy fires from its own workflow)`);
23275
23282
  }
@@ -57402,7 +57409,7 @@ tenant.command("status <owner/repo> <stage>").description("read tenant runtime r
57402
57409
  console.log(JSON.stringify(result, null, 2));
57403
57410
  if (result.publicProbe?.ok === false || result.edgeCertificate?.missing) process.exitCode = 1;
57404
57411
  });
57405
- tenant.command("redeploy <owner/repo> <stage>").description("re-dispatch the central tenant-deploy.yml for an already-promoted ref (no re-tag/merge); train-authority gated").option("--ref <ref>", "ref to deploy (defaults to the stage branch rc/main, or `development` for dev and for a single-track repo's main)").option("--watch", "block on the dispatched run and report its outcome (gh run watch --exit-status)").option("--json", "machine-readable output").action(async (repo, stage, o) => {
57412
+ tenant.command("redeploy <owner/repo> <stage>").description("re-dispatch the central tenant-deploy.yml for an already-promoted ref (no re-tag/merge); train-authority gated").option("--ref <ref>", "ref to deploy (defaults to the stage branch rc/main, or `development` for dev and for a single-track repo's main, where --ref main is refused)").option("--watch", "block on the dispatched run and report its outcome (gh run watch --exit-status)").option("--json", "machine-readable output").action(async (repo, stage, o) => {
57406
57413
  if (stage !== "dev" && stage !== "rc" && stage !== "main") return fail("runtime tenant redeploy: <stage> must be dev, rc, or main");
57407
57414
  try {
57408
57415
  const raw = await runTenantRedeploy(trainApplyDeps(), { repo, stage, ref: o.ref, watch: o.watch });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/cli",
3
- "version": "4.5.167",
3
+ "version": "4.5.169",
4
4
  "description": "MMI Future CLI — the org dev toolbox and shared cross-IDE engine for every registry-declared MMI coding surface.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",