@capybara-hq/plugin-sdk 0.1.0-rc.5 → 0.1.0-rc.7
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/agent-docs/connector-templates.md +1 -0
- package/agent-docs/plugin-format.md +11 -0
- package/dist/cards.d.ts +7 -0
- package/dist/cards.js +4 -4
- package/dist/channel.d.ts +20 -1
- package/dist/connector-auth.d.ts +2 -0
- package/dist/connector-auth.js +15 -0
- package/dist/device-protocol.d.ts +118 -0
- package/dist/device-protocol.js +276 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/marketplace.d.ts +26 -0
- package/dist/marketplace.js +43 -1
- package/dist/plugin-manifest.d.ts +12 -0
- package/dist/plugin-manifest.js +61 -0
- package/dist/sandbox.d.ts +24 -2
- package/dist/sandbox.js +41 -8
- package/dist/setup-guide.d.ts +94 -0
- package/dist/setup-guide.js +135 -0
- package/dist/skill-invocation.d.ts +4 -3
- package/dist/skill-invocation.js +5 -4
- package/dist/skill.d.ts +7 -4
- package/dist/skill.js +9 -6
- package/package.json +1 -1
- package/schemas/connector-template.v1.schema.json +3 -0
- package/schemas/marketplace.v1.schema.json +14 -0
- package/schemas/plugin.v1.schema.json +136 -0
package/package.json
CHANGED
|
@@ -129,6 +129,20 @@
|
|
|
129
129
|
"maxLength": 2000,
|
|
130
130
|
"pattern": "^https:\\/\\/\\S+$"
|
|
131
131
|
},
|
|
132
|
+
"icon": {
|
|
133
|
+
"anyOf": [
|
|
134
|
+
{
|
|
135
|
+
"type": "string",
|
|
136
|
+
"maxLength": 2000,
|
|
137
|
+
"pattern": "^https:\\/\\/[^\\s?#]+\\.(?:[sS][vV][gG]|[pP][nN][gG])(?:\\?[^\\s#]*)?$"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "string",
|
|
141
|
+
"maxLength": 512,
|
|
142
|
+
"pattern": "^\\.\\/[^\\s?#]+\\.(?:[sS][vV][gG]|[pP][nN][gG])$"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
132
146
|
"deprecated": {
|
|
133
147
|
"anyOf": [
|
|
134
148
|
{
|
|
@@ -194,6 +194,142 @@
|
|
|
194
194
|
"additionalProperties": false
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
|
+
"setupGuides": {
|
|
198
|
+
"maxItems": 8,
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"properties": {
|
|
203
|
+
"id": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
206
|
+
},
|
|
207
|
+
"place": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"enum": [
|
|
210
|
+
"channel-connection"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"title": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"properties": {
|
|
216
|
+
"en": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"minLength": 1,
|
|
219
|
+
"maxLength": 100,
|
|
220
|
+
"pattern": "\\S"
|
|
221
|
+
},
|
|
222
|
+
"zh": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"minLength": 1,
|
|
225
|
+
"maxLength": 100,
|
|
226
|
+
"pattern": "\\S"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": [
|
|
230
|
+
"en"
|
|
231
|
+
],
|
|
232
|
+
"additionalProperties": false
|
|
233
|
+
},
|
|
234
|
+
"steps": {
|
|
235
|
+
"maxItems": 20,
|
|
236
|
+
"type": "array",
|
|
237
|
+
"items": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"en": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"minLength": 1,
|
|
243
|
+
"maxLength": 2000,
|
|
244
|
+
"pattern": "\\S"
|
|
245
|
+
},
|
|
246
|
+
"zh": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"minLength": 1,
|
|
249
|
+
"maxLength": 2000,
|
|
250
|
+
"pattern": "\\S"
|
|
251
|
+
},
|
|
252
|
+
"mode": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"maxLength": 64
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": [
|
|
258
|
+
"en"
|
|
259
|
+
],
|
|
260
|
+
"additionalProperties": false
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"files": {
|
|
264
|
+
"maxItems": 8,
|
|
265
|
+
"type": "array",
|
|
266
|
+
"items": {
|
|
267
|
+
"type": "object",
|
|
268
|
+
"properties": {
|
|
269
|
+
"path": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"minLength": 3,
|
|
272
|
+
"maxLength": 512,
|
|
273
|
+
"allOf": [
|
|
274
|
+
{
|
|
275
|
+
"pattern": "^\\.\\/"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"pattern": "\\.(?:tmpl|ya?ml|json|txt)$"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"title": {
|
|
283
|
+
"type": "object",
|
|
284
|
+
"properties": {
|
|
285
|
+
"en": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"minLength": 1,
|
|
288
|
+
"maxLength": 100,
|
|
289
|
+
"pattern": "\\S"
|
|
290
|
+
},
|
|
291
|
+
"zh": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"minLength": 1,
|
|
294
|
+
"maxLength": 100,
|
|
295
|
+
"pattern": "\\S"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"required": [
|
|
299
|
+
"en"
|
|
300
|
+
],
|
|
301
|
+
"additionalProperties": false
|
|
302
|
+
},
|
|
303
|
+
"language": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"enum": [
|
|
306
|
+
"yaml",
|
|
307
|
+
"json",
|
|
308
|
+
"text"
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
"mode": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"maxLength": 64
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"required": [
|
|
317
|
+
"path",
|
|
318
|
+
"title",
|
|
319
|
+
"language"
|
|
320
|
+
],
|
|
321
|
+
"additionalProperties": false
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": [
|
|
326
|
+
"id",
|
|
327
|
+
"place",
|
|
328
|
+
"title"
|
|
329
|
+
],
|
|
330
|
+
"additionalProperties": false
|
|
331
|
+
}
|
|
332
|
+
},
|
|
197
333
|
"extension": {
|
|
198
334
|
"type": "object",
|
|
199
335
|
"properties": {
|