mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-12 14:20:17 +00:00
Adds `spawn link <ip>` command that re-registers an existing cloud VM in spawn's local state, so commands like `spawn list`, `spawn delete`, and `spawn fix` work on it without reprovisioning. Features: - Auto-detects running agent via SSH (ps aux + which checks) - Auto-detects cloud provider via IMDS metadata endpoints (Hetzner, AWS, DigitalOcean, GCP) - Accepts --agent, --cloud, --user, --name flags to skip auto-detection - TCP connectivity pre-check before SSH attempts - Creates a SpawnRecord in history with full connection info - Offers to connect immediately after linking - Interactive picker fallback when auto-detection fails - Non-interactive mode support (exits with clear error if detection fails without --agent/--cloud flags) Also adds --user / -u to KNOWN_FLAGS for the unknown-flag checker. Fixes #2673 Agent: issue-fixer Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| shared | ||