Stream run activity
Opens a server-sent event stream of a run’s activity: first every event recorded so far
(or those after after_id, to resume after a reconnect), then new events as the daemon
reports them. While at least one person is watching, CliqHub asks the run’s daemon to
stream its events live. A comment line is sent every 30 seconds to keep the connection open.
Requires a realm member (or higher) with the runs.view permission on the realm that owns the run given by run_id (query string).
Authorizations
User PAT (cliq_tok_…, including session-scoped) or realm token (cliq_dt_…).
Query Parameters
The run to follow.
Id of the last event you received; only later events are replayed.
Response
A text/event-stream. Each message has id (the event id), event (the event type) and data.
Each message: id: <event id>, event: <event type> (run.started, phase.started,
phase.completed, phase.input_required, run.completed, …) and
data: { id, event_type, phase, agent, payload, timestamp }. The stream does not end
by itself when the run finishes; close it once you see a run.* end event.