cli4ai 1.2.3 → 1.2.4

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.
@@ -11,6 +11,8 @@ import { existsSync, readFileSync } from 'fs';
11
11
  import { createInterface } from 'readline';
12
12
  import { platform, homedir } from 'os';
13
13
  import { log } from '../lib/cli.js';
14
+ // Windows compatibility: need shell: true for npx/node commands
15
+ const isWindows = platform() === 'win32';
14
16
  import { findPackage } from './config.js';
15
17
  import { loadManifest } from './manifest.js';
16
18
  import { getSecret } from './secrets.js';
@@ -383,6 +385,7 @@ export async function executeTool(options) {
383
385
  const proc = spawn(execCmd, execArgs, {
384
386
  stdio: 'inherit',
385
387
  cwd: invocationDir,
388
+ shell: isWindows, // Required on Windows for npx/node
386
389
  env: {
387
390
  ...process.env,
388
391
  INIT_CWD: process.env.INIT_CWD ?? invocationDir,
@@ -413,6 +416,7 @@ export async function executeTool(options) {
413
416
  const proc = spawn(execCmd, execArgs, {
414
417
  stdio: ['pipe', 'pipe', 'pipe'],
415
418
  cwd: invocationDir,
419
+ shell: isWindows, // Required on Windows for npx/node
416
420
  env: {
417
421
  ...process.env,
418
422
  INIT_CWD: process.env.INIT_CWD ?? invocationDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli4ai",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "The package manager for AI CLI tools - cli4ai.com",
5
5
  "type": "module",
6
6
  "bin": {