This PR introduces a new extension @haiyanfengli-llc/webhook-server that adds support for WeChat Official Accounts (Weixin Service/Subscription Accounts). It works by exposing a webhook server that interfaces with a self-hosted WeChat Bridge, allowing Clawdbot to send and receive messages from WeChat users. Key Changes: Added extensions/wechat with the plugin implementation. Implemented fastify server for efficient webhook handling. Added full documentation in PLUGIN_USAGE.md . AI/Vibe-Coded: AI-Assisted: Yes (Google Antigravity) Degree of Testing: Lightly tested (Verified with local WeChat Bridge and test account) Understanding: Confirmed (I understand how the webhook/bridge architecture works) Related Links: Companion Bridge Repository
42 lines
944 B
JSON
42 lines
944 B
JSON
{
|
|
"name": "@haiyanfengli-llc/webhook-server",
|
|
"version": "1.0.0",
|
|
"description": "Clawdbot plugin that exposes a webhook server for external integrations",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc -w",
|
|
"test": "vitest run",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"clawdbot.plugin.json"
|
|
],
|
|
"keywords": [
|
|
"clawdbot",
|
|
"plugin",
|
|
"webhook",
|
|
"wechat"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"clawdbot": {
|
|
"extensions": [
|
|
"dist/index.js"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"fastify": "^4.26.1",
|
|
"axios": "^1.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.11.19",
|
|
"typescript": "^5.3.3",
|
|
"vitest": "^1.3.1"
|
|
},
|
|
"peerDependencies": {
|
|
"clawdbot": ">=1.0.0"
|
|
}
|
|
} |