@mutmutco/cli 3.116.0 → 3.117.1
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 +21 -13
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -11640,26 +11640,33 @@ async function fetchNpmReleasedVersion() {
|
|
|
11640
11640
|
}
|
|
11641
11641
|
var NPM_INSTALL_TIMEOUT_MS = 12e4;
|
|
11642
11642
|
var CLI_VERSION_PROBE_TIMEOUT_MS = 3e4;
|
|
11643
|
+
function resolveNpmSpawn(args) {
|
|
11644
|
+
if (!isWin) return { file: "npm", args };
|
|
11645
|
+
const cli = (0, import_node_path16.join)((0, import_node_path16.dirname)(process.execPath), "node_modules", "npm", "bin", "npm-cli.js");
|
|
11646
|
+
if ((0, import_node_fs17.existsSync)(cli)) return { file: process.execPath, args: [cli, ...args] };
|
|
11647
|
+
return { file: "cmd.exe", args: ["/c", "npm", ...args] };
|
|
11648
|
+
}
|
|
11643
11649
|
async function npmSelfUpdateCli(target, onStep, deps = {}) {
|
|
11644
11650
|
const command = cliUpdateCommand(target);
|
|
11645
11651
|
const args = npmSelfUpdateArgs(`@mutmutco/cli@${target ?? "latest"}`);
|
|
11646
11652
|
onStep?.(command);
|
|
11647
11653
|
let last = "";
|
|
11654
|
+
const spawnSpec = resolveNpmSpawn(args);
|
|
11648
11655
|
const result = await (deps.run ?? runNpmStreaming)({
|
|
11649
|
-
file:
|
|
11650
|
-
args:
|
|
11656
|
+
file: spawnSpec.file,
|
|
11657
|
+
args: spawnSpec.args,
|
|
11651
11658
|
timeoutMs: NPM_INSTALL_TIMEOUT_MS,
|
|
11652
11659
|
onLine: (line) => {
|
|
11653
11660
|
const message = narrateNpmLine(line);
|
|
11654
11661
|
if (!message || message === last) return;
|
|
11655
11662
|
last = message;
|
|
11656
|
-
onStep?.(message);
|
|
11663
|
+
onStep?.(message, { alwaysShow: message.startsWith("downloading ") });
|
|
11657
11664
|
}
|
|
11658
11665
|
});
|
|
11659
11666
|
if (!result.ok) return { ok: false, detail: npmFailureTail(result.output) };
|
|
11660
11667
|
const probe = deps.probeVersion ?? (async () => (await runHostBin("mmi-cli", ["--version"], { timeout: CLI_VERSION_PROBE_TIMEOUT_MS })).stdout);
|
|
11661
11668
|
const verified = await verifyInstalledCli(probe, target);
|
|
11662
|
-
onStep?.(verified.detail);
|
|
11669
|
+
onStep?.(verified.detail, { alwaysShow: true });
|
|
11663
11670
|
return verified.ok ? { ok: true, detail: `${command} exited 0 \u2014 ${verified.detail}` } : { ok: false, detail: `${command} exited 0 but ${verified.detail}` };
|
|
11664
11671
|
}
|
|
11665
11672
|
function kiloConfigListsPlugin(configRoot, home = (0, import_node_os5.homedir)(), read = (p) => (0, import_node_fs17.readFileSync)(p, "utf8"), exists = import_node_fs17.existsSync) {
|
|
@@ -15779,10 +15786,10 @@ var rollout_plan_default = {
|
|
|
15779
15786
|
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)."
|
|
15780
15787
|
},
|
|
15781
15788
|
baseline: {
|
|
15782
|
-
version: "3.
|
|
15783
|
-
tag: "v3.
|
|
15784
|
-
commit: "
|
|
15785
|
-
npm: "@mutmutco/cli@3.
|
|
15789
|
+
version: "3.117.1",
|
|
15790
|
+
tag: "v3.117.1",
|
|
15791
|
+
commit: "b413403fb412",
|
|
15792
|
+
npm: "@mutmutco/cli@3.117.1"
|
|
15786
15793
|
},
|
|
15787
15794
|
exitCriterion: "fleet-n-of-n",
|
|
15788
15795
|
hubOnlyShortcut: "forbidden",
|
|
@@ -15799,14 +15806,14 @@ var rollout_plan_default = {
|
|
|
15799
15806
|
repo: "mutmutco/mmi-hub",
|
|
15800
15807
|
role: "canary",
|
|
15801
15808
|
schedule: "train",
|
|
15802
|
-
v3Target: "v3.
|
|
15809
|
+
v3Target: "v3.117.1"
|
|
15803
15810
|
}
|
|
15804
15811
|
],
|
|
15805
15812
|
rollbackTrigger: "Any red inside the post-cut soak window: `devops train gate` FAIL attributable to the v4 doors, Hub endpoint health probe failure, a v3 client refused while the compat window must still admit it (SUPPORTED_MINOR_WINDOW=2, MIN_CLIENT_VERSION 0.0.0 \u2014 D6a), or npm consumer install/doctor failure on the v4 dist.",
|
|
15806
15813
|
rollback: {
|
|
15807
15814
|
independent: true,
|
|
15808
|
-
mechanism: "npm dist-tag latest -> 3.
|
|
15809
|
-
v3Target: "v3.
|
|
15815
|
+
mechanism: "npm dist-tag latest -> 3.117.1 and redeploy the Hub Lambda from tag v3.117.1 (b413403fb412); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
|
|
15816
|
+
v3Target: "v3.117.1 (@mutmutco/cli@3.117.1, tag commit b413403fb412 \u2014 the preserved latest-v3 distribution, D6b)"
|
|
15810
15817
|
}
|
|
15811
15818
|
},
|
|
15812
15819
|
{
|
|
@@ -38223,8 +38230,9 @@ async function runDoctorClean(opts, io, deps) {
|
|
|
38223
38230
|
const healIntent = (line) => {
|
|
38224
38231
|
if (!opts.json) io.log(`\u21BB ${line}`);
|
|
38225
38232
|
};
|
|
38226
|
-
const healStep = (message) => {
|
|
38227
|
-
if (
|
|
38233
|
+
const healStep = (message, stepOpts) => {
|
|
38234
|
+
if (opts.json) return;
|
|
38235
|
+
if (opts.verbose || stepOpts?.alwaysShow) io.log(`${VERBOSE_INDENT}${message.trim()}`);
|
|
38228
38236
|
};
|
|
38229
38237
|
const releasedNote = deps.releasedVersionNote?.();
|
|
38230
38238
|
let pluginHealed = false;
|
package/package.json
CHANGED