Repository navigation
feat: optimize stream output formatting for agents and human readability - #10
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new verbose output mode (--verbose / -v) across CLI commands, which outputs completed execution steps and interaction metadata as JSON lines. It also refactors the default output mode (renamed to 'Normal') to be more concise by buffering tool calls and printing them inline with their results. Additionally, a fetchWithTimeout helper is introduced to replace raw fetch calls, and the test suite is updated to directly test the HumanStreamRenderer. The review feedback identifies two critical issues in src/lib/output.ts: first, in verbose mode, handleStepDelta returns early, preventing the accumulation of arguments and results which can cause failures in finalizeStep(); second, the use of single string properties for buffering tool calls in normal mode can lead to overwritten values during parallel tool execution, suggesting a Map keyed by call ID instead.
…cached tokens output in CLI
No description provided.