spawn/packages/cli/src
Ahmed Abushagur 39f62b8c75
fix(windows): use dirname() instead of unix-only regex for config paths (#2738)
The regex `configPath.replace(/\/[^/]+$/, "")` only matches forward
slashes, so on Windows (which uses backslashes) it returns the full
path unchanged. `mkdirSync` then creates `digitalocean.json` as a
directory, causing EISDIR on the next write.

Replace with `dirname()` from `node:path` which handles both separators.
Affects digitalocean.ts, hetzner.ts, and aws.ts (oauth.ts already used
dirname correctly).

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: PR Reviewer <pr-reviewer@spawn>
Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
2026-03-17 22:22:30 -07:00
..
__tests__ fix(security): resolve symlinks in prompt file validation to prevent bypass (#2744) 2026-03-17 22:21:11 -07:00
aws fix(windows): use dirname() instead of unix-only regex for config paths (#2738) 2026-03-17 22:22:30 -07:00
commands fix(windows): download JS bundle instead of bash wrapper on Windows (#2730) 2026-03-17 19:09:44 -07:00
digitalocean fix(windows): use dirname() instead of unix-only regex for config paths (#2738) 2026-03-17 22:22:30 -07:00
gcp fix(e2e): double GCP cloud-init wait timeout to 10 minutes for Node install (#2713) 2026-03-17 11:51:41 -07:00
hetzner fix(windows): use dirname() instead of unix-only regex for config paths (#2738) 2026-03-17 22:22:30 -07:00
local feat: add Windows PowerShell support — remove bash dependency for local execution (#2727) 2026-03-17 16:35:23 -07:00
shared fix(security): use writeFileSync for credential files — Bun.write ignores mode option (#2742) 2026-03-17 22:09:36 -07:00
sprite fix(sprite): replace personal VM URL with official CDN for keep-alive script (#2701) 2026-03-16 20:04:49 -07:00
flags.ts feat(cli): add spawn link command to reconnect existing deployments (#2675) 2026-03-15 23:11:13 -07:00
guidance-data.ts refactor: remove dead exports only used within their own files (#2431) 2026-03-10 08:51:15 -04:00
history.ts fix(e2e): prevent concurrent history write race and fix GCP HOME env (#2678) 2026-03-15 23:06:23 -07:00
index.ts refactor: replace manual multi-level type guards with toRecord/isString in index.ts (#2731) 2026-03-17 18:40:16 -07:00
manifest.ts feat: rank agents by GitHub stars + add update-stars.sh (#2635) 2026-03-14 15:49:41 -07:00
picker.ts refactor: remove dead exported types from picker.ts and spawn-config.ts (#2553) 2026-03-12 21:43:05 -04:00
security.ts fix(security): resolve symlinks in prompt file validation to prevent bypass (#2744) 2026-03-17 22:21:11 -07:00
unicode-detect.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
update-check.ts feat: add Windows PowerShell support — remove bash dependency for local execution (#2727) 2026-03-17 16:35:23 -07:00