//! Server-Sent Events (SSE) handler for real-time agent event streaming.
pub use handler;
// Reused by the v2 WS multiplex (`agent.{sid}` channel):
// - `MAX_BATCH_MS` clamps the untrusted `?batch_ms=` query the same way the v1
// SSE handler does.
// - `Coalescer` is the exact same token-merge buffer the v1 SSE path uses; the
// WS forwarder reuses it rather than reimplementing coalescing.
pub use MAX_BATCH_MS;
pub use Coalescer;
// Reused by the v2 WS `agent.{sid}` forwarder to keep the channel open while
// child sub-agents are still running (parity with the v1 SSE stream, which does
// not close on the parent terminal while descendants survive).
pub use has_running_child;