3 Commits

Author SHA1 Message Date
HenryXiaoYang
4117d4fee5 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
2026-03-10 03:34:52 +08:00
HenryXiaoYang
56f91381dd fix: rename plugin id to wechat-access-unqclawed, add login/logout commands, update README with enable instructions 2026-03-10 03:11:39 +08:00
HenryXiaoYang
ba754ccc31 feat: add WeChat QR code login and AGP WebSocket channel plugin
- Auth module: WeChat OAuth2 scan-to-login flow with terminal QR code
- Token persistence to ~/.openclaw/wechat-access-auth.json (chmod 600)
- Token resolution: config > saved state > interactive login
- Invite code verification (configurable bypass)
- Production/test environment support
- AGP WebSocket client with heartbeat, reconnect, wake detection
- Message handler: Agent dispatch with streaming text and tool calls
- Random device GUID generation (persisted, no real machine ID)
2026-03-10 02:29:06 +08:00