@kyan-du/agent-wechat-openclaw 0.12.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +216 -0
- package/dist/index.js +7629 -0
- package/openclaw.plugin.json +56 -0
- package/package.json +52 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "wechat",
|
|
3
|
+
"channels": ["wechat"],
|
|
4
|
+
"configSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {}
|
|
8
|
+
},
|
|
9
|
+
"channelConfigs": {
|
|
10
|
+
"wechat": {
|
|
11
|
+
"label": "WeChat",
|
|
12
|
+
"description": "WeChat messaging via agent-wechat container.",
|
|
13
|
+
"schema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"enabled": { "type": "boolean" },
|
|
18
|
+
"serverUrl": { "type": "string" },
|
|
19
|
+
"token": { "type": "string" },
|
|
20
|
+
"dmPolicy": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["open", "allowlist", "disabled"]
|
|
23
|
+
},
|
|
24
|
+
"allowFrom": { "type": "array", "items": { "type": "string" } },
|
|
25
|
+
"groupPolicy": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": ["open", "allowlist", "disabled"]
|
|
28
|
+
},
|
|
29
|
+
"groupAllowFrom": { "type": "array", "items": { "type": "string" } },
|
|
30
|
+
"groups": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"enabled": { "type": "boolean" },
|
|
36
|
+
"requireMention": { "type": "boolean" },
|
|
37
|
+
"groupPolicy": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": ["open", "allowlist", "disabled"]
|
|
40
|
+
},
|
|
41
|
+
"allowFrom": { "type": "array", "items": { "type": "string" } }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"pollIntervalMs": { "type": "integer", "minimum": 100 },
|
|
46
|
+
"authPollIntervalMs": { "type": "integer", "minimum": 1000 },
|
|
47
|
+
"catchUpMode": { "type": "string", "enum": ["read-only", "latest"] },
|
|
48
|
+
"catchUpMaxMessages": { "type": "integer", "minimum": 1 },
|
|
49
|
+
"catchUpMaxAgeMs": { "type": "integer", "minimum": 1000 },
|
|
50
|
+
"catchUpChatBudget": { "type": "integer", "minimum": 1 },
|
|
51
|
+
"mediaPartDelayMs": { "type": "integer", "minimum": 0 }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kyan-du/agent-wechat-openclaw",
|
|
3
|
+
"version": "0.12.0-next.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"openclaw.plugin.json",
|
|
8
|
+
"!dist/.release-metafile.json"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "esbuild index.ts --bundle --format=esm --platform=node --outfile=dist/index.js --metafile=dist/.release-metafile.json --external:openclaw",
|
|
12
|
+
"typecheck": "tsc --noEmit",
|
|
13
|
+
"test": "node --test --experimental-strip-types src/*.test.ts"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@kyan-du/agent-wechat-shared": "workspace:*",
|
|
17
|
+
"@types/node": "^22",
|
|
18
|
+
"esbuild": "^0.25.0",
|
|
19
|
+
"openclaw": "^2026.5.12",
|
|
20
|
+
"typescript": "^5.4.5"
|
|
21
|
+
},
|
|
22
|
+
"openclaw": {
|
|
23
|
+
"extensions": [
|
|
24
|
+
"./dist/index.js"
|
|
25
|
+
],
|
|
26
|
+
"channel": {
|
|
27
|
+
"id": "wechat",
|
|
28
|
+
"label": "WeChat",
|
|
29
|
+
"selectionLabel": "WeChat (\u5fae\u4fe1)",
|
|
30
|
+
"aliases": [
|
|
31
|
+
"weixin"
|
|
32
|
+
],
|
|
33
|
+
"order": 80
|
|
34
|
+
},
|
|
35
|
+
"install": {
|
|
36
|
+
"npmSpec": "@kyan-du/agent-wechat-openclaw"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public",
|
|
41
|
+
"provenance": true
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/kyan-du/agent-wechat.git",
|
|
46
|
+
"directory": "packages/openclaw-extension"
|
|
47
|
+
},
|
|
48
|
+
"main": "./dist/index.js",
|
|
49
|
+
"exports": {
|
|
50
|
+
".": "./dist/index.js"
|
|
51
|
+
}
|
|
52
|
+
}
|