Conversation
Add the 9 Slack Code (code channel) Web API methods to @slack/web-api: create, archive, setProperties, setView, setCommands, listViews, removeView, getCanvas, setCanvasContent — all requiring the code_channels:manage bot scope. Argument interfaces are hand-typed from the docs #816 method schemas. Per those schemas, getCanvas and setCanvasContent use `channel` (not `channel_id`); the other seven use `channel_id`. Response types follow the repo's auto-generated shape; since these are net-new methods with no java-slack-sdk samples yet, they are hand-written minimal WebAPICallResult extensions rather than codegen output. Only agents.conversations.* names are added — the legacy codeChannels.* names are intentionally not shipped (decision 2026-09-23). Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: e9c0cfc 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 #2748 +/- ##
==========================================
+ Coverage 89.12% 89.24% +0.11%
==========================================
Files 65 65
Lines 10441 10533 +92
Branches 482 482
==========================================
+ Hits 9306 9400 +94
+ Misses 1103 1101 -2
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…+ drop channel remark Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the 9 Slack Code (code channel) Web API methods to
@slack/web-api, under theagents.conversations.*namespace. Slack Code / code channels are going dev-GA; these type the client for that work.All 9 methods require the
code_channels:managebot scope:agents.conversations.create— create a dedicated code channel for an agent sessionagents.conversations.archive— archive a code channelagents.conversations.setProperties— set properties on a code channelagents.conversations.setView— create or update a view in a code channelagents.conversations.setCommands— register agent-defined slash commands (commandsis required)agents.conversations.listViews— list the views attached to a code channelagents.conversations.removeView— remove a view from a code channelagents.conversations.getCanvas— fetch a canvas attached to a code channelagents.conversations.setCanvasContent— replace a plan canvas's markdown contentNotes
getCanvasandsetCanvasContenttakechannel(notchannel_id); the other seven takechannel_id. This asymmetry is intentional and matches the method definitions.WebAPICallResultextensions). Because these are net-new methods with nojava-slack-sdksamples yet, the response files are hand-written minimal/honest stubs rather than codegen output; they can be regenerated once samples land.codeChannels.*names — only theagents.conversations.*names are shipped, per the SDK naming decision (2026-09-23).agents.conversations.*method schemas in docs PR Add TypeScript definitions for events #816.Status
Experimental / draft — pending the API going dev-GA and docs PR #816 landing. Opened as a draft on purpose.
Testing
npm run build --workspace=packages/web-api(tsc typecheck) — cleannpx @biomejs/biome check packages— clean (666 files)npm test --workspace=packages/web-api— 152/152 pass🤖 Generated with Claude Code