agent-ecosystem/test
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
..
agent-graph feat: harden opencode and team runtime flows 2026-05-21 01:10:48 +03:00
features fix(codex-account): keep account snapshots fresh 2026-05-26 23:44:40 +03:00
fixtures fix(changes): project opencode upgrades in detail view 2026-04-28 23:34:17 +03:00
main perf: replace readline with a chunked line generator in team JSONL readers 2026-05-30 15:58:09 +03:00
mocks fix(team): avoid full session scan on team open 2026-05-03 09:42:14 +03:00
preload fix(windows): harden elevated runtime detection 2026-05-22 18:43:50 +03:00
renderer wip: team messages panel updates and runtime usage cache refinements 2026-05-30 12:54:11 +03:00
scripts fix(team): stabilize provider live smoke 2026-05-20 01:32:39 +03:00
shared fix(team): reconcile provisioned-but-not-alive bootstrap state 2026-05-27 12:16:41 +03:00
setup.ts feat(runtime): harden MCP launch orchestration 2026-05-21 19:03:47 +03:00