Skip to content

Comments

feat: normalize stream_event contract + add live integration coverage#52

Merged
cpacker merged 2 commits intomainfrom
feat/stream-event-contract-live-tests
Feb 23, 2026
Merged

feat: normalize stream_event contract + add live integration coverage#52
cpacker merged 2 commits intomainfrom
feat/stream-event-contract-live-tests

Conversation

@cpacker
Copy link
Contributor

@cpacker cpacker commented Feb 23, 2026

Summary

  • add explicit SDKStreamEventPayload union to model both content_block-style and message_type-style stream chunks
  • keep strict typing for known message chunk events while allowing unknown/raw passthrough events
  • add extractStreamTextDelta helper for consumers to parse assistant/reasoning text across both stream shapes
  • add unit tests for stream-event parsing
  • add opt-in live integration test suite + fixture recording docs/scripts

Verification

  • bun run check
  • bun test src/tests/stream-events.test.ts

@cpacker cpacker merged commit 63317a2 into main Feb 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant