Skip to content

GH-55: feat(sdk/integrations/slack): add Socket Mode ChatBridge + adapter#57

Closed
alekspetrov wants to merge 3 commits into
mainfrom
pilot/GH-55
Closed

GH-55: feat(sdk/integrations/slack): add Socket Mode ChatBridge + adapter#57
alekspetrov wants to merge 3 commits into
mainfrom
pilot/GH-55

Conversation

@alekspetrov

Copy link
Copy Markdown
Contributor

Completes the Slack connector: Socket Mode ChatBridge + adapter. First SDK runtime dep (gorilla/websocket → go.mod/go.sum).

Recovered from worker commit 1dd2f1c (daemon stalled before push). Closes #55.

Implements core.ChatBridge and core.ChatCapable for Slack via Socket Mode.

- socketmode.go: WebSocket client (SocketModeClient + SocketModeHandler);
  handles connect/reconnect via apps.connections.open, ping/pong heartbeat,
  envelope ack, and all envelope types (events_api, interactive, slash_commands).
  First SDK runtime external dep: github.com/gorilla/websocket v1.5.3.
- bridge.go: core.ChatBridge implementation; maps events_api message/app_mention
  to Action:"message" (sanitized) or Action:"command" for /- prefixed text;
  maps interactive block_actions to Action:"callback" (CallbackID=action_id,
  Data=value); enforces AllowedChannels/AllowedUsers; renders Buttons as Block
  Kit actions block in Send; Edit via chat.update; Ack is no-op (WS-level ack
  handled automatically by SocketModeHandler).
- adapter.go: Adapter with Name()="slack", NewChatBridge, and three compile-time
  core interface assertions.
- types.go: add ThreadTS to InteractiveMessage for threaded sends.
- go.mod + go.sum: gorilla/websocket v1.5.3 (direct dep).

sdk/{core,log,util,testutil} remain stdlib-only.
@alekspetrov alekspetrov closed this Jun 3, 2026
@alekspetrov alekspetrov deleted the pilot/GH-55 branch June 3, 2026 09:19
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.

feat(sdk/integrations/slack): add Socket Mode ChatBridge + adapter (first ext dep: gorilla/websocket)

1 participant