Skip to content

Commit fe137db

Browse files
chore: release (#2509)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 16a43ca commit fe137db

File tree

7 files changed

+115
-110
lines changed

7 files changed

+115
-110
lines changed

.changeset/thinking-steps-feature.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

.changeset/thinking-steps-types.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

.changeset/three-turtles-battle.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/types/CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# @slack/types
2+
3+
## 2.20.0
4+
5+
### Minor Changes
6+
7+
- f1fb7bf: feat: add thinking steps types
8+
9+
Added types for Thinking Steps features:
10+
11+
- **Block types**: `PlanBlock` and `TaskCard` for displaying task progress in messages
12+
- **Chunk types**: `MarkdownTextChunk`, `PlanUpdateChunk`, `TaskUpdateChunk` for streaming
13+
- **Source types**: `UrlSourceElements` for displaying sources within task cards
14+
15+
Related PRs:
16+
17+
- [#2471](https://github.com/slackapi/node-slack-sdk/pull/2471) - add task_card and plan blocks
18+
19+
### Example
20+
21+
```js
22+
await client.chat.postMessage({
23+
channel: CHANNEL_ID,
24+
text: "Task progress update",
25+
blocks: [
26+
{
27+
type: "plan",
28+
plan_id: "plan-123",
29+
title: "My Task",
30+
tasks: [
31+
{
32+
type: "task_card",
33+
task_id: "task-124",
34+
title: "Task 1",
35+
status: "complete",
36+
},
37+
{
38+
type: "task_card",
39+
task_id: "task-125",
40+
title: "Task 2",
41+
status: "pending",
42+
},
43+
],
44+
},
45+
],
46+
});
47+
```

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@slack/types",
3-
"version": "2.19.0",
3+
"version": "2.20.0",
44
"description": "Shared type definitions for the Node Slack SDK",
55
"author": "Slack Technologies, LLC",
66
"license": "MIT",

packages/web-api/CHANGELOG.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# @slack/web-api
2+
3+
## 7.14.0
4+
5+
### Minor Changes
6+
7+
- 1fbce32: feat: add thinking steps support to streaming methods
8+
9+
`chat.appendStream`, `chat.startStream`, and `chat.stopStream` now accept a `chunks` parameter for streaming structured content including markdown text, plan updates, and task updates.
10+
11+
Related PRs:
12+
13+
- [#2467](https://github.com/slackapi/node-slack-sdk/pull/2467) - accept chunks as arguments to chat.{start,append,stop}Stream methods
14+
- [#2470](https://github.com/slackapi/node-slack-sdk/pull/2470) - accept chunks as arguments to chat stream helper
15+
- [#2479](https://github.com/slackapi/node-slack-sdk/pull/2479) - add task display mode option to start of chat streams
16+
- [#2481](https://github.com/slackapi/node-slack-sdk/pull/2481) - export the chat streamer and related options from the package
17+
18+
### Example
19+
20+
```js
21+
const stream = new ChatStreamer(client, client.logger, {
22+
channel: CHANNEL_ID,
23+
thread_ts: threadTs,
24+
});
25+
26+
await stream.append({
27+
chunks: [
28+
{
29+
type: "markdown_text",
30+
text: "**Hello!** I am starting to process your request...\n\n",
31+
},
32+
],
33+
});
34+
35+
await stream.append({
36+
chunks: [
37+
{
38+
type: "plan_update",
39+
title: "Processing tasks...",
40+
},
41+
{
42+
type: "task_update",
43+
id: "task-1",
44+
title: "Fetching data from API",
45+
status: "complete",
46+
output: "Successfully retrieved 42 records",
47+
},
48+
],
49+
});
50+
51+
await stream.stop({
52+
chunks: [
53+
{
54+
type: "markdown_text",
55+
text: "\n\n---\n\n✅ **All tasks completed successfully!**\n",
56+
},
57+
],
58+
});
59+
```
60+
61+
### Patch Changes
62+
63+
- 16a43ca: fix(web-api): add channel_id to canvases.create method
64+
- Updated dependencies [f1fb7bf]
65+
- @slack/types@2.20.0

packages/web-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@slack/web-api",
3-
"version": "7.13.0",
3+
"version": "7.14.0",
44
"description": "Official library for using the Slack Platform's Web API",
55
"author": "Slack Technologies, LLC",
66
"license": "MIT",
@@ -50,7 +50,7 @@
5050
},
5151
"dependencies": {
5252
"@slack/logger": "^4.0.0",
53-
"@slack/types": "^2.19.0",
53+
"@slack/types": "^2.20.0",
5454
"@types/node": ">=18.0.0",
5555
"@types/retry": "0.12.0",
5656
"axios": "^1.11.0",

0 commit comments

Comments
 (0)