@wps365/openclaw-wpsxiezuo 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openclaw.plugin.json +165 -36
- package/package.json +1 -1
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "wps-xiezuo",
|
|
3
3
|
"name": "WPS Xiezuo",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.1",
|
|
5
5
|
"description": "WPS Xiezuo OpenClaw Plugin - connect to WPS Open Platform enterprise robot",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"author": "WPS Xiezuo Team",
|
|
@@ -102,27 +102,171 @@
|
|
|
102
102
|
"channelConfigs": {
|
|
103
103
|
"wps-xiezuo": {
|
|
104
104
|
"label": "WPS Xiezuo",
|
|
105
|
-
"description": "WPS
|
|
105
|
+
"description": "WPS 开放平台企业机器人,支持群聊和私聊消息处理,支持单机器人与多机器人配置",
|
|
106
106
|
"schema": {
|
|
107
107
|
"type": "object",
|
|
108
108
|
"additionalProperties": true,
|
|
109
109
|
"properties": {
|
|
110
|
-
"name": {
|
|
111
|
-
"type": "string",
|
|
112
|
-
"description": "账号显示名称(可选)"
|
|
113
|
-
},
|
|
114
110
|
"enabled": {
|
|
115
111
|
"type": "boolean",
|
|
116
112
|
"default": true,
|
|
117
113
|
"description": "启用或禁用此 WPS 账号配置"
|
|
118
114
|
},
|
|
115
|
+
"defaultAccountId": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "多机器人模式下指定默认账号 ID,对应 accounts 中的某个 key"
|
|
118
|
+
},
|
|
119
|
+
"accounts": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"description": "多机器人账号映射表,key 为账号标识,value 为单账号配置。配置此字段后进入多机器人模式。",
|
|
122
|
+
"additionalProperties": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"additionalProperties": true,
|
|
125
|
+
"properties": {
|
|
126
|
+
"name": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "账号显示名称(可选)"
|
|
129
|
+
},
|
|
130
|
+
"enabled": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"default": true,
|
|
133
|
+
"description": "启用或禁用此账号"
|
|
134
|
+
},
|
|
135
|
+
"appId": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"description": "WPS 开放平台应用 ID (Client ID)"
|
|
138
|
+
},
|
|
139
|
+
"appSecret": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "WPS 开放平台应用密钥 (Client Secret)"
|
|
142
|
+
},
|
|
143
|
+
"companyId": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "WPS 企业 ID(可选)"
|
|
146
|
+
},
|
|
147
|
+
"baseUrl": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"default": "https://openapi.wps.cn",
|
|
150
|
+
"description": "WPS 开放平台 API 端点"
|
|
151
|
+
},
|
|
152
|
+
"enableEncryption": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"default": true,
|
|
155
|
+
"description": "启用消息加密"
|
|
156
|
+
},
|
|
157
|
+
"webhookPath": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"default": "/wps/webhook",
|
|
160
|
+
"description": "Webhook 接收路径"
|
|
161
|
+
},
|
|
162
|
+
"webhookPort": {
|
|
163
|
+
"type": "number",
|
|
164
|
+
"default": 3000,
|
|
165
|
+
"minimum": 1,
|
|
166
|
+
"maximum": 65535,
|
|
167
|
+
"description": "Webhook 服务端口"
|
|
168
|
+
},
|
|
169
|
+
"dmPolicy": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"enum": ["disabled", "open", "pairing", "allowlist"],
|
|
172
|
+
"default": "pairing",
|
|
173
|
+
"description": "私聊访问策略:disabled 禁用私聊,open 允许所有私聊,pairing 需要配对,allowlist 仅允许白名单用户"
|
|
174
|
+
},
|
|
175
|
+
"allowFrom": {
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": { "type": "string" },
|
|
178
|
+
"description": "当 dmPolicy 为 allowlist 时,允许的用户 ID 列表"
|
|
179
|
+
},
|
|
180
|
+
"groupPolicy": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"enum": ["open", "allowlist"],
|
|
183
|
+
"default": "open",
|
|
184
|
+
"description": "群聊访问策略:open 允许所有群聊,allowlist 仅允许白名单群组"
|
|
185
|
+
},
|
|
186
|
+
"groupAllowFrom": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": { "type": "string" },
|
|
189
|
+
"description": "当 groupPolicy 为 allowlist 时,允许的群组 ID 列表"
|
|
190
|
+
},
|
|
191
|
+
"requireMention": {
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"default": true,
|
|
194
|
+
"description": "群聊中是否需要 @机器人 才响应"
|
|
195
|
+
},
|
|
196
|
+
"instantAck": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"additionalProperties": true,
|
|
199
|
+
"properties": {
|
|
200
|
+
"enabled": {
|
|
201
|
+
"type": "boolean",
|
|
202
|
+
"default": true,
|
|
203
|
+
"description": "启用即时确认消息"
|
|
204
|
+
},
|
|
205
|
+
"text": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"default": "内容处理中,请稍候...",
|
|
208
|
+
"description": "即时确认消息文本"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"debug": {
|
|
213
|
+
"type": "boolean",
|
|
214
|
+
"default": false,
|
|
215
|
+
"description": "启用调试日志"
|
|
216
|
+
},
|
|
217
|
+
"sdk": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"additionalProperties": true,
|
|
220
|
+
"properties": {
|
|
221
|
+
"enabled": {
|
|
222
|
+
"type": "boolean",
|
|
223
|
+
"default": false
|
|
224
|
+
},
|
|
225
|
+
"logLevel": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"enum": ["debug", "info", "warn", "error"],
|
|
228
|
+
"default": "info"
|
|
229
|
+
},
|
|
230
|
+
"connectTimeoutMs": {
|
|
231
|
+
"type": "number",
|
|
232
|
+
"default": 120000,
|
|
233
|
+
"description": "SDK 连接超时时间(毫秒)"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"mcp": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"additionalProperties": true,
|
|
240
|
+
"properties": {
|
|
241
|
+
"enabled": {
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"default": false
|
|
244
|
+
},
|
|
245
|
+
"mode": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"enum": ["app"],
|
|
248
|
+
"default": "app"
|
|
249
|
+
},
|
|
250
|
+
"toolAllowlist": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"items": { "type": "string" }
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"name": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"description": "账号显示名称(可选,单机器人模式)"
|
|
262
|
+
},
|
|
119
263
|
"appId": {
|
|
120
264
|
"type": "string",
|
|
121
|
-
"description": "WPS 开放平台应用 ID (Client ID)"
|
|
265
|
+
"description": "WPS 开放平台应用 ID (Client ID)(单机器人模式)"
|
|
122
266
|
},
|
|
123
267
|
"appSecret": {
|
|
124
268
|
"type": "string",
|
|
125
|
-
"description": "WPS 开放平台应用密钥 (Client Secret)"
|
|
269
|
+
"description": "WPS 开放平台应用密钥 (Client Secret)(单机器人模式)"
|
|
126
270
|
},
|
|
127
271
|
"companyId": {
|
|
128
272
|
"type": "string",
|
|
@@ -152,36 +296,24 @@
|
|
|
152
296
|
},
|
|
153
297
|
"dmPolicy": {
|
|
154
298
|
"type": "string",
|
|
155
|
-
"enum": [
|
|
156
|
-
"disabled",
|
|
157
|
-
"open",
|
|
158
|
-
"pairing",
|
|
159
|
-
"allowlist"
|
|
160
|
-
],
|
|
299
|
+
"enum": ["disabled", "open", "pairing", "allowlist"],
|
|
161
300
|
"default": "pairing",
|
|
162
301
|
"description": "私聊访问策略:disabled 禁用私聊,open 允许所有私聊,pairing 需要配对,allowlist 仅允许白名单用户"
|
|
163
302
|
},
|
|
164
303
|
"allowFrom": {
|
|
165
304
|
"type": "array",
|
|
166
|
-
"items": {
|
|
167
|
-
"type": "string"
|
|
168
|
-
},
|
|
305
|
+
"items": { "type": "string" },
|
|
169
306
|
"description": "当 dmPolicy 为 allowlist 时,允许的用户 ID 列表"
|
|
170
307
|
},
|
|
171
308
|
"groupPolicy": {
|
|
172
309
|
"type": "string",
|
|
173
|
-
"enum": [
|
|
174
|
-
"open",
|
|
175
|
-
"allowlist"
|
|
176
|
-
],
|
|
310
|
+
"enum": ["open", "allowlist"],
|
|
177
311
|
"default": "open",
|
|
178
312
|
"description": "群聊访问策略:open 允许所有群聊,allowlist 仅允许白名单群组"
|
|
179
313
|
},
|
|
180
314
|
"groupAllowFrom": {
|
|
181
315
|
"type": "array",
|
|
182
|
-
"items": {
|
|
183
|
-
"type": "string"
|
|
184
|
-
},
|
|
316
|
+
"items": { "type": "string" },
|
|
185
317
|
"description": "当 groupPolicy 为 allowlist 时,允许的群组 ID 列表"
|
|
186
318
|
},
|
|
187
319
|
"requireMention": {
|
|
@@ -191,6 +323,7 @@
|
|
|
191
323
|
},
|
|
192
324
|
"instantAck": {
|
|
193
325
|
"type": "object",
|
|
326
|
+
"additionalProperties": true,
|
|
194
327
|
"properties": {
|
|
195
328
|
"enabled": {
|
|
196
329
|
"type": "boolean",
|
|
@@ -219,13 +352,13 @@
|
|
|
219
352
|
},
|
|
220
353
|
"logLevel": {
|
|
221
354
|
"type": "string",
|
|
222
|
-
"enum": [
|
|
223
|
-
"debug",
|
|
224
|
-
"info",
|
|
225
|
-
"warn",
|
|
226
|
-
"error"
|
|
227
|
-
],
|
|
355
|
+
"enum": ["debug", "info", "warn", "error"],
|
|
228
356
|
"default": "info"
|
|
357
|
+
},
|
|
358
|
+
"connectTimeoutMs": {
|
|
359
|
+
"type": "number",
|
|
360
|
+
"default": 120000,
|
|
361
|
+
"description": "SDK 连接超时时间(毫秒)"
|
|
229
362
|
}
|
|
230
363
|
}
|
|
231
364
|
},
|
|
@@ -239,16 +372,12 @@
|
|
|
239
372
|
},
|
|
240
373
|
"mode": {
|
|
241
374
|
"type": "string",
|
|
242
|
-
"enum": [
|
|
243
|
-
"app"
|
|
244
|
-
],
|
|
375
|
+
"enum": ["app"],
|
|
245
376
|
"default": "app"
|
|
246
377
|
},
|
|
247
378
|
"toolAllowlist": {
|
|
248
379
|
"type": "array",
|
|
249
|
-
"items": {
|
|
250
|
-
"type": "string"
|
|
251
|
-
}
|
|
380
|
+
"items": { "type": "string" }
|
|
252
381
|
}
|
|
253
382
|
}
|
|
254
383
|
}
|