feat: WebSocket reverse-connection gateway Phase 1 (#210) #212

Closed
xingyue wants to merge 1 commits from feat/210-ws-gateway-phase1 into main

1 Commits

Author SHA1 Message Date
xingyue f8835e0016 feat: WebSocket reverse-connection gateway Phase 1 (#210)
- Add AgentSocket Durable Object (holds one WS per agent name)
- Add /ws/connect route with GATEWAY_SECRET auth
- Add ws-client.ts with auto-reconnect (exponential backoff 1s-30s)
- serve defaults to WS mode (no cloudflared needed)
- Keep --tunnel-url and --no-tunnel as fallback options
- Endpoints list merges KV heartbeat + DO WebSocket status

Testing: #211
2026-05-13 11:05:02 +08:00