streamRunEvents subscribes to per-run events over WebSocket.
- Method:
streamRunEvents - Scope:
run:read - Transport: WebSocket RPC (streaming only)
- Request:
{ runId, afterSeq? } - Response:
{ streamId, runId, afterSeq, currentSeq }
v1 and include InvalidRequest, Unauthorized, Forbidden, RunNotFound, SeqOutOfRange, and Internal.
- Reconnect: pass the last seen
seqasafterSeq. - Gap resync: if the requested
seqhas been truncated (window default:10000), the stream emitsGapResync { fromSeq, toSeq }with a full run snapshot, then continues. - Heartbeat:
Heartbeatframes are emitted separately from event frames.