Skip to main content

Module jsonl

Module jsonl 

Source
Expand description

Incremental line reader for append-only JSONL transcripts.

Harnesses append to their transcript on every event, and a busy session can reach tens of megabytes. Re-parsing the whole file each second is not an option, so the reader remembers its byte offset and only returns lines that arrived since the last call. A partial trailing line (a write in progress) is held back until its newline shows up.

Structsยง

TailReader