From f46827a159b3b5df941b233cd3530a7b57422c72 Mon Sep 17 00:00:00 2001 From: "feifei.xu" <307327147@qq.com> Date: Sun, 15 Mar 2026 12:30:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20openclaw.plugin.jso?= =?UTF-8?q?n=20=E6=A0=BC=E5=BC=8F=20-=20=E4=BD=BF=E7=94=A8=20configSchema?= =?UTF-8?q?=20=E6=9B=BF=E4=BB=A3=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openclaw.plugin.json | 133 ++++++++++++++++++++----------------------- 1 file changed, 62 insertions(+), 71 deletions(-) diff --git a/openclaw.plugin.json b/openclaw.plugin.json index 6f382c0..019cd21 100644 --- a/openclaw.plugin.json +++ b/openclaw.plugin.json @@ -17,80 +17,71 @@ "threads": false, "blockStreaming": false }, - "config": { - "sections": [ - { - "key": "channels.zhidui-channel", - "label": "智队频道", - "description": "智队中枢连接配置", - "schema": { + "configSchema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true, + "description": "启用智队频道" + }, + "routerUrl": { + "type": "string", + "format": "uri", + "description": "智队中枢 WebSocket 地址" + }, + "authToken": { + "type": "string", + "description": "认证 Token 或 ${ENV_VAR}" + }, + "reconnectInterval": { + "type": "integer", + "minimum": 1000, + "default": 5000, + "description": "重连间隔(毫秒)" + }, + "heartbeatInterval": { + "type": "integer", + "minimum": 1000, + "default": 30000, + "description": "心跳间隔(毫秒)" + }, + "heartbeatTimeout": { + "type": "integer", + "minimum": 1000, + "default": 10000, + "description": "心跳超时(毫秒)" + }, + "ackTimeout": { + "type": "integer", + "minimum": 1000, + "default": 30000, + "description": "消息确认超时(毫秒)" + }, + "maxQueueSize": { + "type": "integer", + "minimum": 1, + "default": 100, + "description": "离线消息队列最大长度" + }, + "accounts": { + "type": "object", + "additionalProperties": { "type": "object", "properties": { - "enabled": { - "type": "boolean", - "default": true, - "description": "启用智队频道" - }, - "routerUrl": { - "type": "string", - "format": "uri", - "description": "智队中枢 WebSocket 地址" - }, - "authToken": { - "type": "string", - "description": "认证 Token 或 ${ENV_VAR}" - }, - "reconnectInterval": { - "type": "integer", - "minimum": 1000, - "default": 5000, - "description": "重连间隔(毫秒)" - }, - "heartbeatInterval": { - "type": "integer", - "minimum": 1000, - "default": 30000, - "description": "心跳间隔(毫秒)" - }, - "heartbeatTimeout": { - "type": "integer", - "minimum": 1000, - "default": 10000, - "description": "心跳超时(毫秒)" - }, - "ackTimeout": { - "type": "integer", - "minimum": 1000, - "default": 30000, - "description": "消息确认超时(毫秒)" - }, - "maxQueueSize": { - "type": "integer", - "minimum": 1, - "default": 100, - "description": "离线消息队列最大长度" - }, - "accounts": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "enabled": { "type": "boolean" }, - "name": { "type": "string" }, - "routerUrl": { "type": "string" }, - "authToken": { "type": "string" }, - "reconnectInterval": { "type": "integer" }, - "heartbeatInterval": { "type": "integer" }, - "heartbeatTimeout": { "type": "integer" }, - "ackTimeout": { "type": "integer" }, - "maxQueueSize": { "type": "integer" } - } - } - } - }, - "required": ["routerUrl"] + "enabled": { "type": "boolean" }, + "name": { "type": "string" }, + "routerUrl": { "type": "string" }, + "authToken": { "type": "string" }, + "reconnectInterval": { "type": "integer" }, + "heartbeatInterval": { "type": "integer" }, + "heartbeatTimeout": { "type": "integer" }, + "ackTimeout": { "type": "integer" }, + "maxQueueSize": { "type": "integer" } + } } } - ] + }, + "required": ["routerUrl"] } }