Skip to content

feat(types): streaming chunks, entity unfurls, assistant loading_messages#55

Open
mikeclarke wants to merge 1 commit into
slack-edge:mainfrom
mikeclarke:feat/streaming-chunks-entity-unfurl-types
Open

feat(types): streaming chunks, entity unfurls, assistant loading_messages#55
mikeclarke wants to merge 1 commit into
slack-edge:mainfrom
mikeclarke:feat/streaming-chunks-entity-unfurl-types

Conversation

@mikeclarke
Copy link
Copy Markdown

@mikeclarke mikeclarke commented Jun 6, 2026

Fixes #54.

Adds three request types that lag the current Slack API:

  • chat.startStream / appendStream / stopStream: chunks (blocks | markdown_text | plan_update | task_update) + task_display_mode; appendStream.markdown_text made optional.
  • chat.unfurl: unfurls made optional; add metadata.entities (work-object entity unfurls). Entity types mirror @slack/types EntityMetadata, mapped onto this package's block-kit primitives.
  • assistant.threads.setStatus: optional loading_messages.

Tests cover wire serialization of the new fields. src_deno regenerated via scripts/generate-deno-source.sh (also picks up a prior src/src_deno block-elements drift).

Verified end-to-end against our live Slack API — a real app streamed chunks and rendered the task timeline.

…ing_messages

- chat.startStream/appendStream/stopStream: add `chunks` (AnyMessageChunk:
  blocks | markdown_text | plan_update | task_update) and `task_display_mode`;
  make appendStream `markdown_text` optional
- chat.unfurl: make `unfurls` optional, add `metadata.entities` work-object
  unfurls; port the EntityMetadata type tree from @slack/types into block-kit
- assistant.threads.setStatus: add optional `loading_messages`
- add serialization tests for the new fields
- regenerate src_deno mirror (also syncs a prior block-elements drift)
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.

Add missing types from recent Slack streaming improvements

1 participant