fix: 修复 openclaw.plugin.json 格式 - 使用 configSchema 替代 config

This commit is contained in:
2026-03-15 12:30:03 +08:00
parent 3db0311b2f
commit f46827a159

View File

@@ -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"]
}
}