The --stream path: an async generator yielding a full-meta started line,
one ApiStreamFrameEnvelope per native reply (!re row or !empty)
to the literal command, then a terminating summary envelope (data =
ApiStreamSummary). It never rewrites the command; a <menu>/listen
endpoint is how to follow changes.
Streaming is native-api only — a rest-api (or otherwise unresolved)
transport yields a single error envelope. --count/--duration and
externalSignal (Ctrl-C) bound it. Errors before the first frame
(resolution, validation, confirmation, capability) yield one error envelope
and stop — the CLI keys its exit code on that first envelope. onListening
fires once the command is on the wire (a real barrier for callers that must
act only after that point).
The
--streampath: an async generator yielding a full-metastartedline, one ApiStreamFrameEnvelope per native reply (!rerow or!empty) to the literal command, then a terminating summary envelope (data= ApiStreamSummary). It never rewrites the command; a<menu>/listenendpoint is how to follow changes. Streaming is native-api only — arest-api(or otherwise unresolved) transport yields a single error envelope.--count/--durationandexternalSignal(Ctrl-C) bound it. Errors before the first frame (resolution, validation, confirmation, capability) yield one error envelope and stop — the CLI keys its exit code on that first envelope.onListeningfires once the command is on the wire (a real barrier for callers that must act only after that point).