fix(models): spawn npm through the shell on Windows

execFile cannot spawn npm's .cmd shim directly on Windows, so the catalog
sync and drift check failed with spawn npm ENOENT. Route npm invocations
through the shell with argument quoting on Windows and keep direct
execFile calls elsewhere.
This commit is contained in:
Thomas Byr
2026-08-28 17:00:29 +02:00
parent 6f367515d8
commit 425483e0e1
2 changed files with 24 additions and 4 deletions
+2
View File
@@ -2,6 +2,8 @@
## Unreleased
- Fix `npm run sync:commandcode-catalog` and `npm run check:commandcode-catalog` on Windows by spawning npm through the shell.
## 0.6.0 - 2026-08-25
- Allow switching from a vision-capable model to a text-only model by omitting historical image tool results while preserving their text output; direct image prompts still fail clearly.