feat(feishu): add webhook mode for Lark international#238
Open
Viviadx wants to merge 6 commits intoop7418:mainfrom
Open
feat(feishu): add webhook mode for Lark international#238Viviadx wants to merge 6 commits intoop7418:mainfrom
Viviadx wants to merge 6 commits intoop7418:mainfrom
Conversation
…ational support Lark (international) does not support WebSocket long connection. This adds an alternative 'webhook' mode that starts a local HTTP server on 127.0.0.1 to receive events forwarded via Cloudflare Tunnel. All existing message processing, auth, and send logic is reused unchanged. Mode is controlled by bridge_feishu_mode setting (default: websocket). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds bridge_feishu_mode, bridge_feishu_webhook_port, and bridge_feishu_webhook_verification_token to the settings allowlist. Verification token is masked in GET responses like app_secret. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Standalone Worker project that handles Lark URL verification and forwards events to CodePilot via Cloudflare Tunnel. Free tier: 100k requests/day, zero cost.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Someone is attempting to deploy a commit to the op7418's projects Team on Vercel. A member of the Team first needs to authorize it. |
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
Closes #237
Lark (international) does not support WebSocket long connection for event subscriptions. This PR adds an alternative webhook mode to the Feishu adapter, enabling Lark international users to use the bridge.
Changes
startWebhookServer()that starts a local HTTP server on127.0.0.1:9898. Thestart()method branches onbridge_feishu_modesetting (default:websocket)bridge_feishu_mode,bridge_feishu_webhook_port,bridge_feishu_webhook_verification_token) with maskingArchitecture
Design Principles
httpmodulewebsocket, existing users unaffectedTest plan
🤖 Generated with Claude Code