Skip to content

feat(methods): add agents.sessions examples - #177

Draft
zimeg wants to merge 1 commit into
mainfrom
clack/agents-sessions-method-examples
Draft

feat(methods): add agents.sessions examples#177
zimeg wants to merge 1 commit into
mainfrom
clack/agents-sessions-method-examples

Conversation

@zimeg

@zimeg zimeg commented Aug 20, 2026

Copy link
Copy Markdown
Member

Mirrors the Python examples (slack-samples/bolt-python-examples#201) for the two agents.sessions methods, nested under agents/sessions/ to match.

What's here

  • agents.sessions.rename — Rename an agent session. → agents/sessions/agents-sessions-rename.js
  • agents.sessions.setStatus — Set an agent session's lifecycle status, creating the session if needed. → agents/sessions/agents-sessions-set-status.js
  • A per-family manifest.json (agent view + the agent session bot events) with its .slack/ CLI config
  • An agents section in the methods README

CI now type-checks these nested examples thanks to #178 (which fixed a **-doesn't-recurse false green in the check step); rebased on top of it.

Depends on

client.agents.sessions.{rename,setStatus} are added to @slack/web-api in slackapi/node-slack-sdk#2703. The package stays on the released ^8.0.0 range, so check can't resolve the methods until that ships in a release — hence draft. Verified locally against a build of #2703: the two examples type-check with no agents-related errors. biome check is clean.

🤖 Generated with Claude Code

@zimeg zimeg changed the title Add agents.sessions method examples feat(methods): add agents.sessions examples Aug 20, 2026
@zimeg
zimeg force-pushed the clack/agents-sessions-method-examples branch 2 times, most recently from cd33505 to 974da25 Compare August 20, 2026 16:56
@zimeg zimeg added documentation Improvements or additions to documentation new PR only - a new app is being introduced labels Aug 20, 2026
@zimeg zimeg self-assigned this Aug 20, 2026
@zimeg
zimeg force-pushed the clack/agents-sessions-method-examples branch 3 times, most recently from d08843e to c56b2ed Compare August 20, 2026 17:14
Mirror the Python examples (slack-samples/bolt-python-examples#201) for
the two agents.sessions methods, nested under agents/sessions/ to match:

- agents.sessions.rename    Rename an agent session.
- agents.sessions.setStatus Set an agent session's lifecycle status,
                            creating the session if needed.

Adds the two example scripts, a per-family manifest (agent view + the
agent session bot events) with its .slack CLI config, and an "agents"
section in the methods README.

Requires client.agents.sessions.{rename,setStatus} in @slack/web-api
(adds via slackapi/node-slack-sdk#2703); the package stays on the
released ^8.0.0 range until that ships, so the typecheck can't resolve
the methods until then.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg force-pushed the clack/agents-sessions-method-examples branch from c56b2ed to 9712e05 Compare August 20, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation new PR only - a new app is being introduced

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant