18e3dc7603
- 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
17 lines
378 B
TOML
17 lines
378 B
TOML
name = "workflow-gateway"
|
|
main = "src/index.ts"
|
|
compatibility_date = "2025-04-01"
|
|
|
|
[[kv_namespaces]]
|
|
binding = "ENDPOINTS"
|
|
id = "88b118d1cfab4c049f9c1684848811a3"
|
|
|
|
[durable_objects]
|
|
bindings = [{ name = "AGENT_SOCKET", class_name = "AgentSocket" }]
|
|
|
|
[[migrations]]
|
|
tag = "add-agent-socket"
|
|
new_sqlite_classes = ["AgentSocket"]
|
|
|
|
# GATEWAY_SECRET is set via `wrangler secret put`
|