RemoteRegistry
remoteId
when creating sessionsGET /api/health
with 5-second timeout/api/remotes/{name}/refresh-sessions
--hq
- Enable HQ mode--username
- Admin username for HQ access--password
- Admin password for HQ access--hq-url
- URL of the HQ server--hq-username
- Username to authenticate with HQ--hq-password
- Password to authenticate with HQ--name
- Unique name for this remote server--allow-insecure-hq
- Allow HTTP connections to HQ (dev only)--no-hq-auth
- Disable HQ authentication (testing only)GET /api/sessions
- Aggregates from all remotesGET /api/sessions/:id
- Proxied to owning remotePOST /api/sessions/:id/input
- Proxied to owning remoteDELETE /api/sessions/:id
- Proxied to owning remoteGET /api/sessions/:id/stream
- SSE stream proxied from remote/buffers
) are aggregated from all remotes/ws/input
) connections are proxied to the owning remotesrc/server/services/remote-registry.ts
):
src/server/services/hq-client.ts
):
src/server/routes/sessions.ts
):
src/server/services/control-dir-watcher.ts
):
source
field in session objects indicates the remote namesrc/test/e2e/hq-mode.e2e.test.ts
demonstrate:
--allow-insecure-hq
only for local dev)