ai_co_discuss 0.4.47 → 0.4.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.4.47",
3
+ "version": "0.4.48",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
@@ -162,7 +162,8 @@ function start_console(data, target, exe) {
162
162
  const files = { 'host.ps1': `${CONSOLE_HOST}`, 'command.txt': `"${exe}"` };
163
163
  if (target) return run_as_user(data, target, "& (Join-Path $Job 'host.ps1') -Job $Job", { files, wait: false });
164
164
  const folder = owner_folder(files);
165
- spawn(POWERSHELL, ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', join(folder, 'host.ps1'), '-Job', folder], { detached: true, stdio: 'ignore', windowsHide: true }).unref();
165
+ // Not detached: a PowerShell started detached (no console) exits at once with code 0 without running its script.
166
+ spawn(POWERSHELL, ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', join(folder, 'host.ps1'), '-Job', folder], { stdio: 'ignore', windowsHide: true }).unref();
166
167
  return { folder };
167
168
  }
168
169