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: 9a1fec4 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.15% 89.36% +0.20%
==========================================
Files 65 65
Lines 10442 10534 +92
Branches 480 480
==========================================
+ Hits 9310 9414 +104
+ Misses 1100 1090 -10
+ Partials 32 30 -2
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>
Order the 9 agents.conversations method registrations (methods.ts) and their request-argument interfaces (types/request/agents.ts) alphabetically: archive, create, getCanvas, listViews, removeView, setCanvasContent, setCommands, setProperties, setView. Pure reorder; tsc --noEmit clean. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… add type tests Six agents.conversations methods (archive, create, listViews, removeView, setProperties, setView) were bound with bindApiCallWithOptionalArgument, so calling them with no argument type-checked despite channel_id/name being required. Switch all nine to bindApiCall (required argument) for parity with getCanvas/setCanvasContent/setCommands, and add test/types/methods/agents.test-d.ts covering the sad/happy paths for each (tsd clean; tsc --noEmit clean). 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