mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
- Added partial-json package for parsing incomplete JSON during streaming
- Tool call arguments now contain partially parsed JSON during toolcall_delta events
- Enables progressive UI updates (e.g., showing file paths before content is complete)
- Arguments are always valid objects (minimum empty {}), never undefined
- Full validation still occurs at toolcall_end when arguments are complete
- Updated all providers (Anthropic, OpenAI Completions/Responses) to use parseStreamingJson
- Added comprehensive documentation and examples in README
- Added test to verify arguments are always defined during streaming
|
||
|---|---|---|
| .. | ||
| data | ||
| abort.test.ts | ||
| agent.test.ts | ||
| empty.test.ts | ||
| enum-test.ts | ||
| generate.test.ts | ||
| handoff.test.ts | ||
| tool-validation.test.ts | ||