GH-55: feat(sdk/integrations/slack): add Socket Mode ChatBridge + adapter#57
Closed
alekspetrov wants to merge 3 commits into
Closed
GH-55: feat(sdk/integrations/slack): add Socket Mode ChatBridge + adapter#57alekspetrov wants to merge 3 commits into
alekspetrov wants to merge 3 commits into
Conversation
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.
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.
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.