openclaw-plugin-wecom 1.1.0 → 1.1.2
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 +8 -19
- package/README_ZH.md +8 -19
- package/index.js +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -41,9 +41,8 @@ Add to your OpenClaw configuration file (`~/.openclaw/openclaw.json`):
|
|
|
41
41
|
```json
|
|
42
42
|
{
|
|
43
43
|
"plugins": {
|
|
44
|
-
"deny": ["wecom"],
|
|
45
44
|
"entries": {
|
|
46
|
-
"
|
|
45
|
+
"wecom": {
|
|
47
46
|
"enabled": true
|
|
48
47
|
}
|
|
49
48
|
}
|
|
@@ -66,8 +65,7 @@ Add to your OpenClaw configuration file (`~/.openclaw/openclaw.json`):
|
|
|
66
65
|
|
|
67
66
|
| Option | Type | Required | Description |
|
|
68
67
|
|--------|------|----------|-------------|
|
|
69
|
-
| `plugins.
|
|
70
|
-
| `plugins.entries.openclaw-plugin-wecom.enabled` | boolean | Yes | Enable the plugin |
|
|
68
|
+
| `plugins.entries.wecom.enabled` | boolean | Yes | Enable the plugin |
|
|
71
69
|
| `channels.wecom.token` | string | Yes | WeCom bot Token |
|
|
72
70
|
| `channels.wecom.encodingAesKey` | string | Yes | WeCom message encryption key (43 chars) |
|
|
73
71
|
| `channels.wecom.commands.allowlist` | array | No | Command allowlist |
|
|
@@ -176,7 +174,7 @@ Prevent regular users from executing sensitive Gateway management commands throu
|
|
|
176
174
|
{
|
|
177
175
|
"plugins": {
|
|
178
176
|
"entries": {
|
|
179
|
-
"
|
|
177
|
+
"wecom": { "enabled": true } // ✅ Correct
|
|
180
178
|
}
|
|
181
179
|
}
|
|
182
180
|
}
|
|
@@ -193,24 +191,15 @@ Prevent regular users from executing sensitive Gateway management commands throu
|
|
|
193
191
|
}
|
|
194
192
|
```
|
|
195
193
|
|
|
196
|
-
### Q: Why does `openclaw doctor`
|
|
194
|
+
### Q: Why does `openclaw doctor` report warnings?
|
|
197
195
|
|
|
198
|
-
**A:**
|
|
196
|
+
**A:** If you see configuration warnings, run:
|
|
199
197
|
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
"plugins": {
|
|
203
|
-
"deny": ["wecom"],
|
|
204
|
-
"entries": {
|
|
205
|
-
"openclaw-plugin-wecom": {
|
|
206
|
-
"enabled": true
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
198
|
+
```bash
|
|
199
|
+
openclaw doctor --fix
|
|
211
200
|
```
|
|
212
201
|
|
|
213
|
-
|
|
202
|
+
This will automatically fix common configuration issues.
|
|
214
203
|
|
|
215
204
|
### Q: How does image sending work?
|
|
216
205
|
|
package/README_ZH.md
CHANGED
|
@@ -41,9 +41,8 @@ npm install openclaw-plugin-wecom
|
|
|
41
41
|
```json
|
|
42
42
|
{
|
|
43
43
|
"plugins": {
|
|
44
|
-
"deny": ["wecom"],
|
|
45
44
|
"entries": {
|
|
46
|
-
"
|
|
45
|
+
"wecom": {
|
|
47
46
|
"enabled": true
|
|
48
47
|
}
|
|
49
48
|
}
|
|
@@ -66,8 +65,7 @@ npm install openclaw-plugin-wecom
|
|
|
66
65
|
|
|
67
66
|
| 配置项 | 类型 | 必填 | 说明 |
|
|
68
67
|
|--------|------|------|------|
|
|
69
|
-
| `plugins.
|
|
70
|
-
| `plugins.entries.openclaw-plugin-wecom.enabled` | boolean | 是 | 启用插件 |
|
|
68
|
+
| `plugins.entries.wecom.enabled` | boolean | 是 | 启用插件 |
|
|
71
69
|
| `channels.wecom.token` | string | 是 | 企业微信机器人 Token |
|
|
72
70
|
| `channels.wecom.encodingAesKey` | string | 是 | 企业微信消息加密密钥(43 位) |
|
|
73
71
|
| `channels.wecom.commands.allowlist` | array | 否 | 允许的指令白名单 |
|
|
@@ -176,7 +174,7 @@ npm install openclaw-plugin-wecom
|
|
|
176
174
|
{
|
|
177
175
|
"plugins": {
|
|
178
176
|
"entries": {
|
|
179
|
-
"
|
|
177
|
+
"wecom": { "enabled": true } // ✅ 正确
|
|
180
178
|
}
|
|
181
179
|
}
|
|
182
180
|
}
|
|
@@ -193,24 +191,15 @@ npm install openclaw-plugin-wecom
|
|
|
193
191
|
}
|
|
194
192
|
```
|
|
195
193
|
|
|
196
|
-
### Q: 为什么 `openclaw doctor`
|
|
194
|
+
### Q: 为什么 `openclaw doctor` 报告警告?
|
|
197
195
|
|
|
198
|
-
**A:**
|
|
196
|
+
**A:** 如果看到配置警告,运行:
|
|
199
197
|
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
"plugins": {
|
|
203
|
-
"deny": ["wecom"],
|
|
204
|
-
"entries": {
|
|
205
|
-
"openclaw-plugin-wecom": {
|
|
206
|
-
"enabled": true
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
198
|
+
```bash
|
|
199
|
+
openclaw doctor --fix
|
|
211
200
|
```
|
|
212
201
|
|
|
213
|
-
|
|
202
|
+
这会自动修复常见的配置问题。
|
|
214
203
|
|
|
215
204
|
### Q: 图片发送是如何工作的?
|
|
216
205
|
|
package/index.js
CHANGED
|
@@ -864,7 +864,7 @@ async function deliverWecomReply({ payload, account, responseUrl, senderId, stre
|
|
|
864
864
|
|
|
865
865
|
const plugin = {
|
|
866
866
|
// Plugin id should match `openclaw.plugin.json` id (and config.plugins.entries key).
|
|
867
|
-
id: "
|
|
867
|
+
id: "wecom",
|
|
868
868
|
name: "Enterprise WeChat",
|
|
869
869
|
description: "Enterprise WeChat AI Bot channel plugin for OpenClaw",
|
|
870
870
|
configSchema: { type: "object", additionalProperties: false, properties: {} },
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-plugin-wecom",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Enterprise WeChat AI Bot channel plugin for OpenClaw",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"fast-xml-parser": "^4.2.0"
|
|
25
25
|
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"openclaw": "*"
|
|
28
|
+
},
|
|
26
29
|
"openclaw": {
|
|
27
30
|
"extensions": [
|
|
28
31
|
"./index.js"
|