agent-ecosystem/test/main
777genius 8cb44cd793 perf: replace readline with a chunked line generator in team JSONL readers
readline.createInterface runs an expensive Unicode line-break regex + extra
stream/string-decoder machinery per chunk. The main transcript parser (parseJsonlStream)
already uses a buffer + manual newline split; these per-team readers still used readline.

Add readJsonlLines(): an async generator that yields a JSONL file's lines via a chunked
utf8 stream read + a plain '\n' split (drop-in for 'for await (const line of rl)'), so the
consumers' loop bodies are unchanged. Stream is utf8-decoded before splitting, so multi-byte
chars across chunk boundaries are safe; trailing CR (CRLF) is stripped; empty lines and a
final newline-less line are yielded, matching readline; breaking out of the loop destroys
the stream via the generator's finally.

Adopt it in MemberStatsComputer, TaskBoundaryParser, and FileContentResolver (file-history
scan). Behavior-identical (their existing tests pass: 18 + 6 + 12) plus 6 new tests for the
generator (CRLF, empty lines, no-trailing-newline, early break, multi-byte chunk boundary).

Note: session-browser readline paths (jsonl metadata extractor, metadataExtraction,
SessionContentFilter) are off the launch path and left as-is for now.
2026-05-30 15:58:09 +03:00
..
build chore: checkpoint existing workspace changes 2026-05-23 13:48:35 +03:00
features perf: include process table usage metrics 2026-05-29 12:34:13 +03:00
http feat(team): improve runtime provider workflows 2026-05-17 19:11:26 +03:00
ipc fix(startup): serialize provider runtime checks 2026-05-26 09:12:05 +03:00
services test: cover transcript head metadata cache 2026-05-30 15:51:59 +03:00
utils perf: replace readline with a chunked line generator in team JSONL readers 2026-05-30 15:58:09 +03:00
sentry.test.ts chore: checkpoint frontend workspace updates 2026-05-18 01:57:16 +03:00