AgentCliHeadlessEvents extension
Headless structured-output header writes (issues #155/#695): the HEP
hep_header frame and the stream-json session line are each the FIRST
stdout line of their mode, emitted the moment the session id exists —
before any agent event can race them. Split into this part (same
library) so AgentCli.runHeadless stays under the CRAP gate.
- on