Expand description
harn run --json: NDJSON event-stream emitter.
Each line is a JsonEnvelope wrapping a RunEventWire. Wire
events tag themselves with event_type for cheap discrimination
by jq-style consumers and carry a strictly monotonic seq
starting at 1. See issue #1755 / epic #1753.
Structs§
- Ndjson
Emitter - Writer that drains
RunEvents, assigns monotonic seq numbers, wraps them inJsonEnvelopes, and emits one NDJSON line per event. Lines are flushed per event so streaming consumers see them as the run progresses.
Enums§
- RunEvent
Wire - Wire form of a single event emitted by
harn run --json. Theevent_typetag is flat so consumers canjq '.data.event_type'.seqis monotonic and process-local — the first event in a run isseq=1.
Constants§
- RUN_
JSON_ SCHEMA_ VERSION - Schema version for the
harn run --jsonevent stream. Bump on any breaking change to the wire shape; agents key off this to negotiate compatibility.