fix: registerCommand uses 'name' not 'command', fix handler signature, add missing clearState import

- OpenClaw SDK expects 'name' field in OpenClawPluginCommandDefinition, not 'command'
  (caused TypeError: Cannot read properties of undefined reading 'trim')
- Handler receives { config } not { cfg, reply }, returns ReplyPayload
- Add missing clearState import for /wechat-logout command
- Bump version to 1.0.2
This commit is contained in:
HenryXiaoYang
2026-03-10 03:34:52 +08:00
parent 56f91381dd
commit 4117d4fee5
2 changed files with 11 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@henryxiaoyang/wechat-access-unqclawed",
"version": "1.0.1",
"version": "1.0.2",
"type": "module",
"description": "OpenClaw 微信通路插件 — 扫码登录 + AGP WebSocket 双向通信",
"author": "HenryXiaoYang",