feat(types): add BlockChunk type to chat.{start,append,stop}Stream methods#2580
feat(types): add BlockChunk type to chat.{start,append,stop}Stream methods#2580
Conversation
🦋 Changeset detectedLatest commit: 4589e89 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2580 +/- ##
=======================================
Coverage 87.50% 87.50%
=======================================
Files 62 62
Lines 10256 10256
Branches 418 418
=======================================
Hits 8974 8974
Misses 1260 1260
Partials 22 22
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
zimeg
left a comment
There was a problem hiding this comment.
@srtaalej Exciting times ahead for streaming chats! I'm marking this with a few changes requested before this merge:
block chunks shown in autocomplete. This doesn't error because arguments are passed through but it might not appear as an expected argument for developers.
📚 todo: This is worth a note in the changesets too! I'm thinking we should document this as a web-api change while still releasing the types changes alongside this 🚀
| * Union type of all possible chunk types | ||
| */ | ||
| export type AnyChunk = MarkdownTextChunk | PlanUpdateChunk | TaskUpdateChunk; | ||
| export type AnyChunk = MarkdownTextChunk | PlanUpdateChunk | TaskUpdateChunk | BlocksChunk; |
There was a problem hiding this comment.
🧮 quibble: Also if possible can we order new entries in alphabetics?
zimeg
left a comment
There was a problem hiding this comment.
@srtaalej Forgive the unexpected editor configurations! I'm finding this appears in a new shell! 📠
This LGTM with the above note and I'm wondering if we want to discuss version schemes for these changes? 🔮
Using a patch version to signal changing fields has been practiced before while a minor might be used for new blocks altogether? Both do seem alright and I'm also curious about releasing this with web-api also since this is surfaced here? 📚
I'm not so confident about calling this a @slack/web-api change but it's something we can add tests for here also with a changeset? 🪬
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ode-slack-sdk into ale-feat-block-chunks
Summary
This PR adds BlocksChunk model class to support the new blocks chunk type in the streaming API (chat.startStream, chat.appendStream, chat.stopStream). Follows the April 16, 2026 changelog which notes updates to the text-streaming API methods to support streaming blocks.
Testing
Sample app.js
Requirements