@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.
- package/dist/main.cjs +17 -10
- 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
|
-
|
|
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.
|
|
19075
|
-
tag: "v4.5.
|
|
19076
|
-
commit: "
|
|
19077
|
-
npm: "@mutmutco/cli@4.5.
|
|
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.
|
|
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.
|
|
19101
|
-
v3Target: "v4.5.
|
|
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
|
|
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