agent-ecosystem/test/main/utils
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
..
AgentCliLaunch.live-e2e.test.ts test(team): harden live launch smoke matrix 2026-05-09 05:52:26 +03:00
atomicWrite.test.ts feat(docs): restructure VitePress IA, improve onboarding/troubleshooting docs 2026-05-15 23:34:06 +03:00
childProcess.test.ts fix(opencode): recover empty bridge output sends 2026-05-25 00:41:54 +03:00
cliPathMerge.test.ts fix(opencode): preserve packaged runtime env 2026-05-18 21:48:06 +03:00
costCalculation.test.ts feat: enhance task assignment notifications and improve message clarity 2026-03-14 23:05:42 +02:00
electronUserDataMigration.test.ts feat(team): open persisted attachments in editor 2026-05-25 21:30:56 +03:00
jsonl.test.ts fix(provenance): classify synthetic user turns 2026-05-26 23:51:17 +03:00
jsonlLineReader.test.ts perf: replace readline with a chunked line generator in team JSONL readers 2026-05-30 15:58:09 +03:00
pathDecoder.test.ts fix(windows): align session paths and validators 2026-04-25 20:23:03 +03:00
pathValidation.test.ts feat(team): open persisted attachments in editor 2026-05-25 21:30:56 +03:00
regexValidation.test.ts Initialize project structure with essential configuration files including .editorconfig, .gitattributes, .gitignore, and TypeScript settings. Add build and linting configurations, along with README, LICENSE, and contribution guidelines. Set up Tailwind CSS and ESLint for styling and code quality. Include initial package.json and pnpm workspace configuration for dependency management. 2026-02-11 15:52:00 +09:00
runtimePathBinaryResolver.test.ts fix(runtime): bound binary path discovery 2026-05-22 00:17:54 +03:00
safeWebContentsSend.test.ts Guard renderer IPC sends during crash recovery 2026-03-27 17:07:40 +02:00
shellEnv.integration.test.ts fix(runtime): bound binary path discovery 2026-05-22 00:17:54 +03:00
shellEnv.test.ts fix(runtime): bound binary path discovery 2026-05-22 00:17:54 +03:00
startupTelemetry.test.ts perf(startup): defer heavy startup work 2026-05-25 23:14:59 +03:00
teamNotificationBuilder.test.ts fix(team): retain launch status and clarify notifications 2026-05-03 13:18:53 +03:00
tokenizer.test.ts Initialize project structure with essential configuration files including .editorconfig, .gitattributes, .gitignore, and TypeScript settings. Add build and linting configurations, along with README, LICENSE, and contribution guidelines. Set up Tailwind CSS and ESLint for styling and code quality. Include initial package.json and pnpm workspace configuration for dependency management. 2026-02-11 15:52:00 +09:00
toolApprovalRules.test.ts feat: add --permission-prompt-tool stdio support with granular tool approval 2026-03-08 22:22:30 +02:00
windowsElevation.test.ts fix(windows): harden elevated runtime detection 2026-05-22 18:43:50 +03:00
windowsElevationRuntime.test.ts fix(windows): harden elevated runtime detection 2026-05-22 18:43:50 +03:00
windowsProcessTable.test.ts fix(windows): harden runtime project compatibility 2026-04-26 11:44:35 +03:00