- Initialize runtime in register() to fix 'runtime not initialized' error - Move clawdbot from dependencies to devDependencies/peerDependencies - Add security adapter with DM policy (pairing, allowlist, open) - Add pairing adapter for user approval flow - Add status adapter for health checks and diagnostics - Add groups adapter for mention/tool policy resolution - Add reload config prefixes for hot reload support - Add outbound chunker for long messages - Fix verification token enforcement in webhook handler - Add allowFrom validation before processing messages - Add comprehensive input validation in webhook handler - Improve type safety and error handling throughout
815 B
815 B
@clawdbot/lark
Feishu / Lark channel plugin for Clawdbot.
Configuration
Add the following to your clawdbot.config.yaml:
channels:
lark:
enabled: true
appId: "cli_..."
appSecret: "..."
encryptKey: "..." # Optional
verificationToken: "..." # Optional
baseUrl: "https://open.feishu.cn" # Optional, default
webhook:
port: 3000
path: "/lark/webhook"
Setup
- Create an app on Feishu Open Platform.
- Get App ID and App Secret.
- Enable "Bot" capabilities.
- Set up "Event Subscriptions":
- Request URL:
https://your-gateway.com/lark/webhook(must matchwebhook.pathand external URL). - Enable
im.message.receive_v1event.
- Request URL:
- (Optional) Enable "Encrypt Key".
Development
Run pnpm build to compile.