Commit 84b2f14
committed
refactor(internal): extract doStream helpers (Commit 2.9)
- Create stream-usage-tracker.ts for usage accumulation
- Create stream-content-tracker.ts for text/reasoning delta handling
- Create stream-tool-call-handler.ts for tool call state management
- Add REASONING_ID and TEXT_ID constants
- Reduce doStream function from ~300 to ~120 lines (-60%)1 parent 2a2e87c commit 84b2f14
File tree
7 files changed
+813
-750
lines changed- cli/src
- hooks
- utils
- packages/internal/src/openai-compatible/chat
7 files changed
+813
-750
lines changed
0 commit comments