@mutmutco/cli 3.5.0 → 3.6.0
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 +10 -8
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -4529,9 +4529,16 @@ function buildSessionStartPlan(verbs) {
|
|
|
4529
4529
|
]
|
|
4530
4530
|
};
|
|
4531
4531
|
}
|
|
4532
|
-
|
|
4532
|
+
var WIN32_TRAMPOLINE = "const{spawn}=require('node:child_process');const a=JSON.parse(process.argv[1]);const c=spawn(a.cmd,a.args,{stdio:'ignore',windowsHide:true,cwd:a.cwd});c.on('exit',x=>process.exit(x??0));c.on('error',()=>process.exit(1));";
|
|
4533
|
+
function spawnDetachedSelf(args, deps, opts = {}) {
|
|
4533
4534
|
try {
|
|
4534
|
-
|
|
4535
|
+
const platform2 = deps.platform ?? process.platform;
|
|
4536
|
+
if (platform2 === "win32") {
|
|
4537
|
+
const payload = JSON.stringify({ cmd: deps.execPath, args: [deps.scriptPath, ...args], cwd: opts.cwd });
|
|
4538
|
+
deps.spawn(deps.execPath, ["-e", WIN32_TRAMPOLINE, payload], { detached: true, stdio: "ignore", windowsHide: true }).unref();
|
|
4539
|
+
return;
|
|
4540
|
+
}
|
|
4541
|
+
deps.spawn(deps.execPath, [deps.scriptPath, ...args], { detached: true, stdio: "ignore", windowsHide: true, ...opts.cwd ? { cwd: opts.cwd } : {} }).unref();
|
|
4535
4542
|
} catch {
|
|
4536
4543
|
}
|
|
4537
4544
|
}
|
|
@@ -19206,12 +19213,7 @@ function scheduleRelatedDiscovery(o) {
|
|
|
19206
19213
|
try {
|
|
19207
19214
|
const args = ["issue", "discover-related", "--number", String(o.number), "--title", o.title, "--body", o.body];
|
|
19208
19215
|
if (o.repo) args.push("--repo", o.repo);
|
|
19209
|
-
(
|
|
19210
|
-
detached: true,
|
|
19211
|
-
stdio: "ignore",
|
|
19212
|
-
windowsHide: true,
|
|
19213
|
-
cwd: process.cwd()
|
|
19214
|
-
}).unref();
|
|
19216
|
+
spawnDetachedSelf(args, { spawn: import_node_child_process12.spawn, execPath: process.execPath, scriptPath: process.argv[1] }, { cwd: process.cwd() });
|
|
19215
19217
|
} catch {
|
|
19216
19218
|
}
|
|
19217
19219
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutmutco/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "MMI Future CLI — the org dev toolbox (board, registry, keyless secrets, release train, bootstrap, doctor) and the cross-IDE engine the plugin's session-start hook drives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|