mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 20:17:45 +00:00
On Windows, globally installed CLI tools via npm/pnpm are .cmd/.bat batch files, not real .exe executables. Node.js spawnSync() without the shell option cannot execute these files and returns ENOENT error. Changes: - Extract isWindows as a global constant at file top - Add shell: isWindows to all CLI execution spawnSync calls - Remove duplicate isWindows declaration in isCliAvailable() Fixes #378 Co-authored-by: Cursor <cursoragent@cursor.com>