@openagents-org/agent-launcher 0.2.27 → 0.2.28

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": "@openagents-org/agent-launcher",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -235,9 +235,11 @@ class OpenClawAdapter extends BaseAdapter {
235
235
  try { pty = require('node-pty'); } catch {}
236
236
 
237
237
  if (pty) {
238
- const shell = IS_WINDOWS ? binary : binary;
238
+ // On Windows, .cmd files can't be spawned directly by pty — use cmd.exe
239
+ const ptyBin = IS_WINDOWS ? (process.env.COMSPEC || 'cmd.exe') : binary;
240
+ const ptyArgs = IS_WINDOWS ? ['/C', binary, ...args] : args;
239
241
  this._log('Spawn: node-pty (line-buffered)');
240
- const proc = pty.spawn(binary, args, {
242
+ const proc = pty.spawn(ptyBin, ptyArgs, {
241
243
  name: 'xterm',
242
244
  cols: 200,
243
245
  rows: 50,