@mutmutco/cli 4.1.7 → 4.1.9
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 +20 -18
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -8220,7 +8220,7 @@ function createDocsIndexDeps(repoRoot2) {
|
|
|
8220
8220
|
|
|
8221
8221
|
// src/gate-budget.ts
|
|
8222
8222
|
var BLESSED_RUN_WITH_BUDGET_SHA = "ea2cf8710949dec53566c29836e29cd7515a4e23";
|
|
8223
|
-
var BLESSED_RUNNER_GATE_SHA = "
|
|
8223
|
+
var BLESSED_RUNNER_GATE_SHA = "a6ee756d94fd95884451381e94408f0348eb11db";
|
|
8224
8224
|
var REMOTE_USE = /^mutmutco\/MMI-Hub\/\.github\/actions\/run-with-budget@(\S+)$/;
|
|
8225
8225
|
var LOCAL_USE = "./.github/actions/run-with-budget";
|
|
8226
8226
|
var FULL_SHA = /^[0-9a-f]{40}$/;
|
|
@@ -13152,10 +13152,10 @@ var rollout_plan_default = {
|
|
|
13152
13152
|
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)."
|
|
13153
13153
|
},
|
|
13154
13154
|
baseline: {
|
|
13155
|
-
version: "4.1.
|
|
13156
|
-
tag: "v4.1.
|
|
13157
|
-
commit: "
|
|
13158
|
-
npm: "@mutmutco/cli@4.1.
|
|
13155
|
+
version: "4.1.9",
|
|
13156
|
+
tag: "v4.1.9",
|
|
13157
|
+
commit: "4edf781e31f0",
|
|
13158
|
+
npm: "@mutmutco/cli@4.1.9"
|
|
13159
13159
|
},
|
|
13160
13160
|
exitCriterion: "fleet-n-of-n",
|
|
13161
13161
|
hubOnlyShortcut: "forbidden",
|
|
@@ -13172,14 +13172,14 @@ var rollout_plan_default = {
|
|
|
13172
13172
|
repo: "mutmutco/mmi-hub",
|
|
13173
13173
|
role: "canary",
|
|
13174
13174
|
schedule: "train",
|
|
13175
|
-
v3Target: "v4.1.
|
|
13175
|
+
v3Target: "v4.1.9"
|
|
13176
13176
|
}
|
|
13177
13177
|
],
|
|
13178
13178
|
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.",
|
|
13179
13179
|
rollback: {
|
|
13180
13180
|
independent: true,
|
|
13181
|
-
mechanism: "npm dist-tag latest -> 4.1.
|
|
13182
|
-
v3Target: "v4.1.
|
|
13181
|
+
mechanism: "npm dist-tag latest -> 4.1.9 and redeploy the Hub Lambda from tag v4.1.9 (4edf781e31f0); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
|
|
13182
|
+
v3Target: "v4.1.9 (@mutmutco/cli@4.1.9, tag commit 4edf781e31f0 \u2014 last known-good release carrying the repo-index v4-only contract)"
|
|
13183
13183
|
}
|
|
13184
13184
|
},
|
|
13185
13185
|
{
|
|
@@ -15941,10 +15941,11 @@ var HUB_REPO3 = "mutmutco/MMI-Hub";
|
|
|
15941
15941
|
function isHubControlRepo(repo) {
|
|
15942
15942
|
return repo.toLowerCase() === HUB_REPO3.toLowerCase();
|
|
15943
15943
|
}
|
|
15944
|
-
function supportsReleaseAbort(
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15944
|
+
function supportsReleaseAbort(_repo, meta, _branchHints) {
|
|
15945
|
+
return DEPLOY_MODELS.includes(meta.deployModel);
|
|
15946
|
+
}
|
|
15947
|
+
function releaseAbortNeedsNpmProof(meta, repo) {
|
|
15948
|
+
return isHubControlRepo(repo) || meta.deployModel === "registry-publish" || meta.publishRequired === true;
|
|
15948
15949
|
}
|
|
15949
15950
|
function resolveReleaseAbortNpmPackage(meta, repo) {
|
|
15950
15951
|
if (isHubControlRepo(repo)) return "@mutmutco/cli";
|
|
@@ -17538,10 +17539,9 @@ async function runReleaseAbort(deps, options = {}) {
|
|
|
17538
17539
|
}
|
|
17539
17540
|
const ctx = await buildTrainApplyContext(deps);
|
|
17540
17541
|
const meta = requireProjectMetaForTrain(await loadProjectMeta(deps, ctx), ctx.repo);
|
|
17541
|
-
|
|
17542
|
-
if (!supportsReleaseAbort(ctx.repo, meta, branchHints)) {
|
|
17542
|
+
if (!supportsReleaseAbort(ctx.repo, meta)) {
|
|
17543
17543
|
throw new Error(
|
|
17544
|
-
|
|
17544
|
+
`release --abort: registry META deployModel ${JSON.stringify(meta.deployModel)} has no proven abort contract; nothing was written`
|
|
17545
17545
|
);
|
|
17546
17546
|
}
|
|
17547
17547
|
await requireCleanTree(deps);
|
|
@@ -17577,8 +17577,10 @@ async function runReleaseAbort(deps, options = {}) {
|
|
|
17577
17577
|
throw new Error(`release --abort: ${tag} is released or its unpublished state could not be proven; nothing was written`);
|
|
17578
17578
|
}
|
|
17579
17579
|
const version = tag.slice(1);
|
|
17580
|
-
|
|
17581
|
-
|
|
17580
|
+
if (releaseAbortNeedsNpmProof(meta, ctx.repo)) {
|
|
17581
|
+
const npmPackage = resolveReleaseAbortNpmPackage(meta, ctx.repo);
|
|
17582
|
+
await proveNpmVersionUnpublished(deps, npmPackage, version, tag);
|
|
17583
|
+
}
|
|
17582
17584
|
await runGitPush(deps, ["push", "origin", "--delete", tag]);
|
|
17583
17585
|
if (await probeRemoteTag(deps, tag)) {
|
|
17584
17586
|
throw new Error(`release --abort: origin still reports ${tag} after deletion; local state was preserved`);
|
|
@@ -42806,7 +42808,7 @@ for (const commandName of ["rcand", "release"]) {
|
|
|
42806
42808
|
{ flags: "--announce-summary-file <path>", description: "agent-curated 3-6 line Hub Slack summary; required for a new MMI-Hub --apply (#883/#3901)" },
|
|
42807
42809
|
{ flags: "--ack <shas>", description: "comma-separated dev shas a human verified are in the candidate, overriding the hotfix-coverage guard for a conflicted port whose -x trailer was lost (#958)" },
|
|
42808
42810
|
{ flags: "--dev", description: "full-track repos release development -> main directly, skipping rc (refuses if rc carries content not in development; no-op on direct-track repos) (#1062)" },
|
|
42809
|
-
{ flags: "--abort", description: "with --apply, delete only a proven unpublished failed release
|
|
42811
|
+
{ flags: "--abort", description: "with --apply, delete only a proven unpublished failed release candidate on any registered deploy model and restore local main for a same-version recut (#3944/#5650/#5657)" },
|
|
42810
42812
|
{ flags: "--retry-publish <run-id>", description: "with --apply, retry failed jobs of one proven Hub publish release run (#3949)" }
|
|
42811
42813
|
];
|
|
42812
42814
|
for (const f of RELEASE_ONLY_FLAGS) {
|
package/package.json
CHANGED