b12a27830c
- Extracted stream parsing utilities into reusable functions in pi-utils package (readLines, readJsonl, parseJsonlLenient, readSseJson). - Replaced manual buffer management with ConcatSink class for efficient stream handling across multiple modules. - Simplified SSE stream parsing in google-gemini-cli provider by using readSseJson utility instead of manual reader setup. - Refactored MCP stdio transport to use readLines utility for cleaner line-based stream processing. - Updated RPC client and mode to use readJsonl utility, removing duplicate JSONL parsing logic. - Optimized buffer allocations by using allocUnsafe where data is immediately populated and reusing empty buffer instances.