@runeya/runeya 2.0.90 → 2.0.91

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.
@@ -0,0 +1,7 @@
1
+ import {
2
+ agentManager
3
+ } from "./chunk-PDRWT47K.js";
4
+ export {
5
+ agentManager
6
+ };
7
+ //# sourceMappingURL=agent-manager-U454MXAX.js.map
@@ -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-JB7MZWZJ.js.map
4842
+ //# sourceMappingURL=chunk-PDRWT47K.js.map