mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-24 00:50:44 +00:00
Windows + Node >= 24: spawning .cmd files with shell=false causes EINVAL. Claude Code v2.1.169 ships as native binary (no cli.js), npm global install creates only claude.cmd. Netcatty detected claude.cmd but spawned it with shell:false -> EINVAL. Changes: - resolveWindowsShimToNativeExe: new function that reads .cmd/.bat shims and resolves to the real .exe using "%~dp0\...\*.exe" pattern matching - prepareCommandForSpawn: tries native exe resolution first, falls back to shell:true wrapping - resolveClaudeCodeExecutableForSdk: when cli.js not found, looks for bin/claude.exe native binary - 3 new tests for shim resolution and spawn spec - Codex CLI unaffected (already handles native exe resolution) Test: 38/38 shellUtils tests pass, npx tsc --noEmit clean