pub fn emit_ndjson<T: Serialize>(event_type: &str, data: &T)
Emits an NDJSON event (one JSON line) to stdout.