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 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
- "openclaw-plugin-wecom": {
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.deny` | array | Recommended | Add `["wecom"]` to prevent OpenClaw from auto-enabling built-in channel |
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
- "openclaw-plugin-wecom": { "enabled": true } // ✅ Correct
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` keep reporting "wecom configured, not enabled yet"?
194
+ ### Q: Why does `openclaw doctor` report warnings?
197
195
 
198
- **A:** Add `"deny": ["wecom"]` to your `plugins` configuration:
196
+ **A:** If you see configuration warnings, run:
199
197
 
200
- ```json
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
- **Reason:** OpenClaw tries to auto-enable built-in channel configurations with the id `wecom`. Adding `deny` prevents this auto-enablement, ensuring only the `openclaw-plugin-wecom` plugin is used.
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
- "openclaw-plugin-wecom": {
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.deny` | array | 推荐 | 添加 `["wecom"]` 防止 OpenClaw 自动启用内置 channel |
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
- "openclaw-plugin-wecom": { "enabled": true } // ✅ 正确
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` 一直报错 "wecom configured, not enabled yet"?
194
+ ### Q: 为什么 `openclaw doctor` 报告警告?
197
195
 
198
- **A:** 需要在 `plugins` 配置中添加 `"deny": ["wecom"]`:
196
+ **A:** 如果看到配置警告,运行:
199
197
 
200
- ```json
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
- **原因:** OpenClaw 会尝试自动启用 channel id 为 `wecom` 的内置插件配置,添加 `deny` 可以防止这种自动启用,确保只使用 `openclaw-plugin-wecom` 插件。
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: "openclaw-plugin-wecom",
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: {} },
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "openclaw-plugin-wecom",
2
+ "id": "wecom",
3
3
  "name": "OpenClaw WeCom",
4
4
  "description": "Enterprise WeChat (WeCom) messaging channel plugin for OpenClaw",
5
5
  "channels": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-plugin-wecom",
3
- "version": "1.1.0",
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"