Skip to content

Split AI SDK helpers and add Desktop-compatible Beeper streaming#2

Merged
batuhan merged 1 commit intomainfrom
batuhan/analyze-streaming-and-todevice
May 2, 2026
Merged

Split AI SDK helpers and add Desktop-compatible Beeper streaming#2
batuhan merged 1 commit intomainfrom
batuhan/analyze-streaming-and-todevice

Conversation

@batuhan
Copy link
Copy Markdown
Member

@batuhan batuhan commented May 2, 2026

Summary

  • Split AI SDK convenience adapters into a separate @better-matrix-js/ai-sdk package so the chat adapter stays protocol-focused.
  • Refactor chat streaming into a small streaming/ module with Beeper-only dynamic handling for Beeper homeservers.
  • Align Beeper stream transport with Desktop expectations, including com.beeper.llm deltas, start/finish framing, and terminal stream cleanup.
  • Keep the Matrix adapter thin while preserving generic fallback streaming for non-Beeper homeservers.

Testing

  • Added and updated unit coverage for the Beeper stream envelope, stream framing, and AI SDK adapter helpers.
  • Ran package typechecks and builds for @better-matrix-js/chat-adapter and @better-matrix-js/ai-sdk.
  • Ran package test suites successfully for both packages.

@batuhan batuhan marked this pull request as ready for review May 2, 2026 17:35
@batuhan batuhan merged commit 4828c66 into main May 2, 2026
1 check passed
@batuhan batuhan deleted the batuhan/analyze-streaming-and-todevice branch May 2, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant