@mutmutco/cli 3.107.3 → 3.107.5
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 +9 -3
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -32969,6 +32969,7 @@ function registerFleetTrackInventory(program3) {
|
|
|
32969
32969
|
// ../infra/src/version-gate.ts
|
|
32970
32970
|
var HUB_REPO5 = "mutmutco/mmi-hub";
|
|
32971
32971
|
var NO_RELEASE_UNKNOWN = "no published GitHub Release";
|
|
32972
|
+
var NO_VERSION_LOCK_PREFIX = "no distribution-bom.json or package.json version lock at ";
|
|
32972
32973
|
function semverEqual(a, b) {
|
|
32973
32974
|
return versionAtLeast(a, b) && versionAtLeast(b, a);
|
|
32974
32975
|
}
|
|
@@ -32980,16 +32981,18 @@ function semverRelation(a, b) {
|
|
|
32980
32981
|
function classifyRow(row) {
|
|
32981
32982
|
const findings = [];
|
|
32982
32983
|
const reasons = /* @__PURE__ */ new Set();
|
|
32983
|
-
const releaseRequired = row.track !== "trunk";
|
|
32984
|
+
const releaseRequired = row.track !== "trunk" && !row.classifications.includes("no-deploy-surface");
|
|
32985
|
+
const tagIsVersion = Boolean(row.release.version) && row.unknowns.some((u) => u.startsWith(NO_VERSION_LOCK_PREFIX));
|
|
32984
32986
|
for (const unknown of row.unknowns) {
|
|
32985
32987
|
if (!releaseRequired && unknown === NO_RELEASE_UNKNOWN) continue;
|
|
32988
|
+
if (tagIsVersion && unknown.startsWith(NO_VERSION_LOCK_PREFIX)) continue;
|
|
32986
32989
|
reasons.add(unknown);
|
|
32987
32990
|
}
|
|
32988
32991
|
const { version, coordinatedVersion, coordinatedSource, tag } = row.release;
|
|
32989
32992
|
if (releaseRequired && !version && ![...reasons].some((r) => /release/i.test(r))) {
|
|
32990
32993
|
reasons.add(NO_RELEASE_UNKNOWN);
|
|
32991
32994
|
}
|
|
32992
|
-
if (releaseRequired && version && !coordinatedVersion && ![...reasons].some((r) => /version lock|distribution-bom|package\.json/i.test(r))) {
|
|
32995
|
+
if (releaseRequired && version && !coordinatedVersion && !tagIsVersion && ![...reasons].some((r) => /version lock|distribution-bom|package\.json/i.test(r))) {
|
|
32993
32996
|
reasons.add(`coordinated version pointer unknown at ${tag ?? "the release tag"}`);
|
|
32994
32997
|
}
|
|
32995
32998
|
if (version && coordinatedVersion) {
|
|
@@ -33163,6 +33166,9 @@ function buildDeployStatusReport(input) {
|
|
|
33163
33166
|
};
|
|
33164
33167
|
}
|
|
33165
33168
|
function reconcileRunAgainstStamp(stage, lastRun, deployOk) {
|
|
33169
|
+
if (lastRun && deployOk === void 0 && lastRun.conclusion === "success") {
|
|
33170
|
+
return [`the last deploy run for ${stage} succeeded but DEPLOY#${stage} carries no deploy-state stamp \u2014 the deploy predates the stamping step; a redeploy at the same ref will stamp it.`];
|
|
33171
|
+
}
|
|
33166
33172
|
if (!lastRun || deployOk === void 0) return [];
|
|
33167
33173
|
if (lastRun.conclusion === "success" && deployOk === false) {
|
|
33168
33174
|
return [`the last deploy run for ${stage} succeeded but DEPLOY#${stage} is stamped failed \u2014 the run may postdate the stamp, or it shipped without stamping; trust the stamp and re-check the run before promoting.`];
|
|
@@ -33190,7 +33196,7 @@ function formatDeployStatus(r) {
|
|
|
33190
33196
|
`last deploy run: ${formatLastRun(r)}`,
|
|
33191
33197
|
`public URL: ${r.publicUrl ?? "none"}`,
|
|
33192
33198
|
`health probe: ${r.health ? `${r.health.ok ? "ok" : "failed"}${r.health.status ? ` (HTTP ${r.health.status})` : ""}${r.health.error ? ` \u2014 ${r.health.error}` : ""}` : "not probed"}`,
|
|
33193
|
-
`deploy state: ${r.deployOk === void 0 ? "
|
|
33199
|
+
`deploy state: ${r.deployOk === void 0 ? "not stamped" : r.deployOk ? "ok" : "failed"}`
|
|
33194
33200
|
];
|
|
33195
33201
|
if (r.hints.length) {
|
|
33196
33202
|
lines.push("", "hints:", ...r.hints.map((h) => ` - ${h}`));
|
package/package.json
CHANGED