- 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)
39 lines
945 B
JSON
39 lines
945 B
JSON
{
|
||
"id": "wechat-access",
|
||
"channels": ["wechat-access"],
|
||
"configSchema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"enabled": {
|
||
"type": "boolean",
|
||
"description": "是否启用服务号渠道"
|
||
},
|
||
"token": {
|
||
"type": "string",
|
||
"description": "WebSocket 连接 token(手动配置时使用)"
|
||
},
|
||
"wsUrl": {
|
||
"type": "string",
|
||
"description": "WebSocket 网关地址"
|
||
},
|
||
"bypassInvite": {
|
||
"type": "boolean",
|
||
"description": "跳过邀请码验证"
|
||
},
|
||
"authStatePath": {
|
||
"type": "string",
|
||
"description": "自定义 token 持久化路径"
|
||
},
|
||
"environment": {
|
||
"type": "string",
|
||
"enum": ["production", "test"],
|
||
"description": "API 环境(production / test)"
|
||
},
|
||
"accounts": {
|
||
"type": "object",
|
||
"description": "多账号配置"
|
||
}
|
||
}
|
||
}
|
||
}
|