@kyan-du/agent-wechat-openclaw 0.12.0-next.0 → 0.13.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 +12 -12
- package/dist/index.js +1040 -131
- package/openclaw.plugin.json +3 -3
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -81,19 +81,19 @@ If running alongside OpenClaw on the same Docker network, set `serverUrl` to `ht
|
|
|
81
81
|
# Pending P1-B (not available yet): openclaw plugins install @kyan-du/agent-wechat-openclaw
|
|
82
82
|
pnpm --filter @kyan-du/agent-wechat-openclaw build
|
|
83
83
|
node scripts/prepare-openclaw-plugin.mjs
|
|
84
|
-
openclaw plugins install
|
|
84
|
+
openclaw plugins install ./.artifacts/agent-wechat-openclaw.tgz
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
### 3. Configure the channel
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
This plugin registers as channel id `agent-wechat`. Do not use `wechat`, `weixin`, or `微信` — OpenClaw's official catalog maps those aliases to `@tencent-weixin/openclaw-weixin`, so outbound and cron delivery never reach this plugin.
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
openclaw config set channels.wechat.enabled true
|
|
93
|
-
openclaw config set channels.wechat.serverUrl http://localhost:6174
|
|
92
|
+
openclaw config set channels.agent-wechat.enabled true
|
|
93
|
+
openclaw config set channels.agent-wechat.serverUrl http://localhost:6174
|
|
94
94
|
# Optional when the server requires an explicit token:
|
|
95
|
-
openclaw config set channels.wechat.token <token>
|
|
96
|
-
openclaw plugins inspect wechat --runtime
|
|
95
|
+
openclaw config set channels.agent-wechat.token <token>
|
|
96
|
+
openclaw plugins inspect agent-wechat --runtime
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
Or edit `~/.openclaw/openclaw.json` directly:
|
|
@@ -101,7 +101,7 @@ Or edit `~/.openclaw/openclaw.json` directly:
|
|
|
101
101
|
```json
|
|
102
102
|
{
|
|
103
103
|
"channels": {
|
|
104
|
-
"wechat": {
|
|
104
|
+
"agent-wechat": {
|
|
105
105
|
"enabled": true,
|
|
106
106
|
"serverUrl": "http://localhost:6174",
|
|
107
107
|
"dmPolicy": "open",
|
|
@@ -130,7 +130,7 @@ Ask your bot to log in to WeChat:
|
|
|
130
130
|
Your bot should generate a QR code image. Alternatively, use the CLI:
|
|
131
131
|
|
|
132
132
|
```bash
|
|
133
|
-
openclaw channels login --channel wechat
|
|
133
|
+
openclaw channels login --channel agent-wechat
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
### 6. Scan the QR code
|
|
@@ -155,7 +155,7 @@ Once connected, configure how the bot handles direct messages and group chats. Y
|
|
|
155
155
|
|
|
156
156
|
## Configuration Reference
|
|
157
157
|
|
|
158
|
-
All config lives under `channels.wechat` in OpenClaw's config file
|
|
158
|
+
All config lives under `channels.agent-wechat` in OpenClaw's config file. `channels.wechat` is still read as a one-release fallback.
|
|
159
159
|
|
|
160
160
|
| Key | Type | Default | Description |
|
|
161
161
|
|-----|------|---------|-------------|
|
|
@@ -185,14 +185,14 @@ cd agent-wechat
|
|
|
185
185
|
pnpm install && pnpm build
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
###
|
|
188
|
+
### Install a private source build
|
|
189
189
|
|
|
190
190
|
```bash
|
|
191
191
|
node scripts/prepare-openclaw-plugin.mjs
|
|
192
|
-
openclaw plugins install
|
|
192
|
+
openclaw plugins install ./.artifacts/agent-wechat-openclaw.tgz
|
|
193
193
|
```
|
|
194
194
|
|
|
195
|
-
This
|
|
195
|
+
This creates a clean npm archive from the built plugin. OpenClaw installs its runtime dependencies, including the platform-specific `sharp` package, without relying on workspace-hoisted modules. Rebuild and repack after making changes, then restart the gateway.
|
|
196
196
|
|
|
197
197
|
## Architecture
|
|
198
198
|
|