spawn/cli/src
Ahmed Abushagur 758b575658
feat: add server lifecycle management (reconnect + delete) (#1363)
Wire up connection tracking across all 10 clouds so users can reconnect
to and delete previously spawned servers via `spawn list` and `spawn delete`.

Phase 1 - Connection tracking:
- Extend save_vm_connection() with cloud and metadata params
- Add save_vm_connection to create_server() in all cloud libs
- Extend VMConnection with cloud, deleted, deleted_at, metadata fields

Phase 2 - Delete via interactive picker:
- Add "Delete this server" option to spawn list picker
- Build delete scripts that reuse each cloud's destroy_server()
- Confirmation UX with spinner feedback
- Soft-delete marking in history (deleted records show [deleted])

Phase 3 - Standalone delete command:
- spawn delete (aliases: rm, destroy) with interactive picker
- Filter support: spawn delete -a <agent> -c <cloud>

Also improves reconnect hints for Fly (fly ssh console) and
Daytona (daytona ssh) connections.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 17:06:49 -08:00
..
__tests__ fix: revert .profile writes, use explicit PATH in launch commands (#1260) 2026-02-16 00:43:49 -08:00
commands.ts feat: add server lifecycle management (reconnect + delete) (#1363) 2026-02-16 17:06:49 -08:00
history.ts feat: add server lifecycle management (reconnect + delete) (#1363) 2026-02-16 17:06:49 -08:00
index.ts feat: add server lifecycle management (reconnect + delete) (#1363) 2026-02-16 17:06:49 -08:00
manifest.ts fix: prevent test fixtures from leaking into manifest cache (#1220) 2026-02-15 19:02:21 -08:00
security.ts ux: improve error messages for better clarity and actionability (#1103) 2026-02-14 10:48:22 -05:00
unicode-detect.ts fix: Switch build target from node to bun to fix UTF-8 mojibake 2026-02-10 09:36:28 +00:00
update-check.ts fix: prevent command injection in update-check reExecWithArgs (#951) 2026-02-13 08:34:04 -08:00