stack/packages/stack-cli
Bilal Godil 6aac337428 fix(cli): harden RDE dashboard state + Windows auto-update re-exec
Address PR #1521 review:

- dev-env-state: validate localDashboard on read (mirroring the
  cliUpdateCheck cache). A hand-edited/cross-version state file with a
  non-string version reached parseVersionCore (version.trim()) via
  shouldRestartDashboard -> isVersionNewer inside startDashboardIfNeeded,
  which is outside the auto-update fail-open guard and would crash
  `stack dev`. Malformed records are now treated as 'no dashboard'.

- self-update: re-exec via npx.cmd on Windows now spawns with shell:true.
  After CVE-2024-27980 Node throws EINVAL spawning a .cmd directly without
  a shell, so the auto-update re-exec silently never ran on Windows. args
  stay a clean argv array; runReexec quotes them for the shell at spawn
  time so paths/args with spaces survive.
2026-06-01 14:47:17 -07:00
..
scripts feat(hexclave): PR 3 — native @hexclave/* source rename + delete dual-publish wiring (#1482) 2026-05-29 15:21:59 -07:00
src fix(cli): harden RDE dashboard state + Windows auto-update re-exec 2026-06-01 14:47:17 -07:00
.eslintrc.cjs Stack CLI (#1227) 2026-03-09 13:24:15 -07:00
package.json feat(hexclave): PR 3 — native @hexclave/* source rename + delete dual-publish wiring (#1482) 2026-05-29 15:21:59 -07:00
tsconfig.json Stack CLI (#1227) 2026-03-09 13:24:15 -07:00
tsdown.config.ts stack-cli: cloud/local init flow, auto-create on empty projects, post-setup next-steps (#1383) 2026-05-08 10:47:49 -07:00
vitest.config.ts Fast-start local emulator via RAM snapshot + live secret rotation (#1340) 2026-04-20 14:24:49 -07:00