web: live run updates over a single app-wide watch (R10)

This commit is contained in:
2026-10-19 14:22:53 +01:00
parent 2fe63012f9
commit 21a6ee3c4d
13 changed files with 1580 additions and 90 deletions
+11
View File
@@ -27,6 +27,17 @@ export const Protocol = Object.freeze({
GET_RUN: "get_run",
RUN: "run",
// Live run state (internal/protocol/runevents.go, Message.kt; R10). `subscribe`
// scopes the watch to a workspace (the blank string means "any") and may carry
// explicit `run_ids`; `unsubscribe` drops the connection's watch; `run_event` is
// the server-pushed compact delta, which arrives without a matching request id
// and is therefore surfaced by client.js as a `frame` event. Both commands are
// send-only: the server may not ack `subscribe` and the Android client never
// awaits a reply.
SUBSCRIBE: "subscribe",
UNSUBSCRIBE: "unsubscribe",
RUN_EVENT: "run_event",
// Omni-search (internal/protocol/search.go): the command and its reply type.
// The per-kind payloads and the kind/limit vocabulary live in src/search.js.
SEARCH: "search",