fix: 修复 openclaw.plugin.json 格式 - 使用 configSchema 替代 config
This commit is contained in:
@@ -17,80 +17,71 @@
|
|||||||
"threads": false,
|
"threads": false,
|
||||||
"blockStreaming": false
|
"blockStreaming": false
|
||||||
},
|
},
|
||||||
"config": {
|
"configSchema": {
|
||||||
"sections": [
|
"type": "object",
|
||||||
{
|
"properties": {
|
||||||
"key": "channels.zhidui-channel",
|
"enabled": {
|
||||||
"label": "智队频道",
|
"type": "boolean",
|
||||||
"description": "智队中枢连接配置",
|
"default": true,
|
||||||
"schema": {
|
"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",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"enabled": {
|
"enabled": { "type": "boolean" },
|
||||||
"type": "boolean",
|
"name": { "type": "string" },
|
||||||
"default": true,
|
"routerUrl": { "type": "string" },
|
||||||
"description": "启用智队频道"
|
"authToken": { "type": "string" },
|
||||||
},
|
"reconnectInterval": { "type": "integer" },
|
||||||
"routerUrl": {
|
"heartbeatInterval": { "type": "integer" },
|
||||||
"type": "string",
|
"heartbeatTimeout": { "type": "integer" },
|
||||||
"format": "uri",
|
"ackTimeout": { "type": "integer" },
|
||||||
"description": "智队中枢 WebSocket 地址"
|
"maxQueueSize": { "type": "integer" }
|
||||||
},
|
}
|
||||||
"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"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
|
"required": ["routerUrl"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user