@runeya/runeya 2.0.90 → 2.0.92
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/agent-manager-U454MXAX.js +7 -0
- package/{chunk-JB7MZWZJ.js → chunk-PDRWT47K.js} +10 -3
- package/{chunk-JB7MZWZJ.js.map → chunk-PDRWT47K.js.map} +1 -1
- package/{desktop-launcher-4BVDZ3W4.js → desktop-launcher-FHNURZA7.js} +41 -14
- package/desktop-launcher-FHNURZA7.js.map +1 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/{src-5X4QUDVE.js → src-K5L5HTKP.js} +35 -19
- package/src-K5L5HTKP.js.map +1 -0
- package/agent-manager-XUXD6WPM.js +0 -7
- package/desktop-launcher-4BVDZ3W4.js.map +0 -1
- package/src-5X4QUDVE.js.map +0 -1
- /package/{agent-manager-XUXD6WPM.js.map → agent-manager-U454MXAX.js.map} +0 -0
|
@@ -3651,7 +3651,11 @@ async function restartInstance(pid) {
|
|
|
3651
3651
|
cwd: launch.cwd,
|
|
3652
3652
|
env: launch.env,
|
|
3653
3653
|
detached: true,
|
|
3654
|
-
stdio: "ignore"
|
|
3654
|
+
stdio: "ignore",
|
|
3655
|
+
// `detached` demande à Windows une console neuve, et une console neuve est
|
|
3656
|
+
// une fenêtre de commande à l'écran. Le lanceur de bureau cache la sienne :
|
|
3657
|
+
// sans ceci, relancer une instance la ferait réapparaître.
|
|
3658
|
+
windowsHide: true
|
|
3655
3659
|
});
|
|
3656
3660
|
child.on("error", (err) => {
|
|
3657
3661
|
console.log(`[instances] Relance du pid ${pid} impossible :`, err.message);
|
|
@@ -3676,7 +3680,7 @@ var RELAUNCHER = `
|
|
|
3676
3680
|
await new Promise((r) => setTimeout(r, ${POLL_MS}));
|
|
3677
3681
|
}
|
|
3678
3682
|
require('node:child_process')
|
|
3679
|
-
.spawn(p.execPath, p.argv, { cwd: p.cwd, env: p.env, detached: true, stdio: 'ignore' })
|
|
3683
|
+
.spawn(p.execPath, p.argv, { cwd: p.cwd, env: p.env, detached: true, stdio: 'ignore', windowsHide: true })
|
|
3680
3684
|
.unref();
|
|
3681
3685
|
})();
|
|
3682
3686
|
`;
|
|
@@ -3687,6 +3691,9 @@ function spawnRelauncher(record) {
|
|
|
3687
3691
|
const launch = launchOf(record);
|
|
3688
3692
|
const relauncher = spawn(process.execPath, ["-e", RELAUNCHER], {
|
|
3689
3693
|
cwd: launch.cwd,
|
|
3694
|
+
// Une console neuve serait une fenêtre de commande à l'écran, le temps que
|
|
3695
|
+
// le relanceur attende la libération du port. Voir `restartInstance`.
|
|
3696
|
+
windowsHide: true,
|
|
3690
3697
|
env: {
|
|
3691
3698
|
...launch.env,
|
|
3692
3699
|
RUNEYA_RELAUNCH_PAYLOAD: JSON.stringify({ ...launch, port: record.port, timeoutMs: PORT_RELEASE_TIMEOUT_MS })
|
|
@@ -4832,4 +4839,4 @@ export {
|
|
|
4832
4839
|
traefikManager,
|
|
4833
4840
|
agentManager
|
|
4834
4841
|
};
|
|
4835
|
-
//# sourceMappingURL=chunk-
|
|
4842
|
+
//# sourceMappingURL=chunk-PDRWT47K.js.map
|