refactor(stream-parsing): restructured stream utilities to use Web standard APIs and generic SSE parsing
- Refactored SSE stream parsing to use generic `readSseJson` utility instead of domain-specific handlers across multiple packages. - Migrated from Node.js Buffer API to Web standard APIs (Uint8Array, TextDecoder, DataView) for cross-platform compatibility. - Simplified stream transformation pipeline by consolidating multiple stream operations into unified `createTextLineSplitter` utility. - Refactored `ptree.ts` to remove complex stream pumping infrastructure and simplify stderr handling with direct async iteration. - Rewrote stream utilities to operate at binary level with byte-level parsing for improved efficiency and reduced string allocations. - Updated TypeScript configuration to include DOM.AsyncIterable type definitions for async iterable DOM API support.
This commit is contained in:
@@ -105,7 +105,8 @@
|
||||
"@types/diff": "^7.0.2",
|
||||
"@types/ms": "^2.1.0",
|
||||
"@types/bun": "^1.3.8",
|
||||
"ms": "^2.1.3"
|
||||
"ms": "^2.1.3",
|
||||
"@types/jsdom": "27.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"coding-agent",
|
||||
|
||||
Reference in New Issue
Block a user