@capybara-hq/plugin-sdk 0.1.0-rc.0 → 0.1.0-rc.10
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/README.md +3 -3
- package/agent-docs/agent-templates.md +47 -0
- package/agent-docs/concepts.md +63 -0
- package/agent-docs/connector-templates.md +48 -0
- package/agent-docs/extension-points/channel.md +15 -0
- package/agent-docs/extension-points/config-source.md +15 -0
- package/agent-docs/extension-points/connector.md +15 -0
- package/agent-docs/extension-points/counter.md +15 -0
- package/agent-docs/extension-points/directory.md +15 -0
- package/agent-docs/extension-points/file-preview.md +15 -0
- package/agent-docs/extension-points/identity-source.md +15 -0
- package/agent-docs/extension-points/model-provider.md +15 -0
- package/agent-docs/extension-points/object-store.md +15 -0
- package/agent-docs/extension-points/sandbox.md +15 -0
- package/agent-docs/extension-points/secret-store.md +15 -0
- package/agent-docs/extension-points/web-fetch.md +15 -0
- package/agent-docs/extension-points/web-search.md +15 -0
- package/agent-docs/extensions.md +87 -0
- package/agent-docs/plugin-format.md +99 -0
- package/agent-docs/setup.md +46 -0
- package/agent-docs/skills.md +44 -0
- package/agent-docs/tool-naming.md +21 -0
- package/dist/agent-template.d.ts +85 -0
- package/dist/agent-template.js +362 -3
- package/dist/cards.d.ts +7 -0
- package/dist/cards.js +4 -4
- package/dist/channel.d.ts +20 -1
- package/dist/config-ui.d.ts +131 -0
- package/dist/config-ui.js +602 -0
- package/dist/connector-auth.d.ts +2 -0
- package/dist/connector-auth.js +15 -0
- package/dist/ctx.d.ts +86 -4
- package/dist/define-extension.d.ts +5 -1
- package/dist/define-extension.js +1 -0
- package/dist/device-protocol.d.ts +118 -0
- package/dist/device-protocol.js +276 -0
- package/dist/directory.d.ts +11 -2
- package/dist/extension-point.d.ts +9 -0
- package/dist/extension-point.js +17 -12
- package/dist/file-preview.d.ts +9 -1
- package/dist/hooks.d.ts +79 -18
- package/dist/index.d.ts +16 -1
- package/dist/index.js +16 -1
- package/dist/marketplace.d.ts +55 -2
- package/dist/marketplace.js +73 -3
- package/dist/model.d.ts +60 -2
- package/dist/model.js +22 -0
- package/dist/org-access.d.ts +27 -0
- package/dist/org-access.js +35 -0
- package/dist/permissions.d.ts +20 -5
- package/dist/permissions.js +51 -15
- package/dist/plugin-manifest.d.ts +48 -5
- package/dist/plugin-manifest.js +93 -6
- package/dist/sandbox.d.ts +164 -62
- package/dist/sandbox.js +71 -14
- package/dist/secret.d.ts +4 -1
- package/dist/secret.js +5 -2
- package/dist/setup-check.d.ts +115 -0
- package/dist/setup-check.js +142 -0
- package/dist/setup-guide-parse.d.ts +121 -0
- package/dist/setup-guide-parse.js +350 -0
- package/dist/setup-guide-render.d.ts +45 -0
- package/dist/setup-guide-render.js +351 -0
- package/dist/setup-guide.d.ts +94 -0
- package/dist/setup-guide.js +336 -0
- package/dist/skill-invocation.d.ts +12 -8
- package/dist/skill-invocation.js +19 -9
- package/dist/skill.d.ts +23 -3
- package/dist/skill.js +31 -6
- package/dist/theme-assets.d.ts +39 -0
- package/dist/theme-assets.js +449 -0
- package/dist/theme-readability.d.ts +37 -0
- package/dist/theme-readability.js +145 -0
- package/dist/theme-tokens.generated.d.ts +275 -0
- package/dist/theme-tokens.generated.js +167 -0
- package/dist/theme.d.ts +152 -0
- package/dist/theme.js +392 -0
- package/dist/tool-key.d.ts +28 -0
- package/dist/tool-key.js +40 -0
- package/dist/tool.d.ts +11 -3
- package/dist/ui-resolve.d.ts +40 -0
- package/dist/ui-resolve.js +54 -0
- package/dist/ui-slots.d.ts +43 -0
- package/dist/ui-slots.js +168 -0
- package/dist/ui.d.ts +114 -31
- package/dist/ui.js +0 -4
- package/dist/web.d.ts +105 -0
- package/dist/web.js +135 -0
- package/package.json +10 -2
- package/schemas/connector-template.v1.schema.json +3 -0
- package/schemas/marketplace.v1.schema.json +50 -0
- package/schemas/plugin.v1.schema.json +97 -4
- package/schemas/theme.v1.schema.json +225 -0
|
@@ -68,6 +68,25 @@
|
|
|
68
68
|
"en"
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
+
"displayName": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"zh": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"maxLength": 100
|
|
78
|
+
},
|
|
79
|
+
"en": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"maxLength": 100
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": [
|
|
86
|
+
"zh",
|
|
87
|
+
"en"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
71
90
|
"version": {
|
|
72
91
|
"type": "string",
|
|
73
92
|
"maxLength": 256,
|
|
@@ -110,6 +129,37 @@
|
|
|
110
129
|
"maxLength": 2000,
|
|
111
130
|
"pattern": "^https:\\/\\/\\S+$"
|
|
112
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
|
+
},
|
|
146
|
+
"deprecated": {
|
|
147
|
+
"anyOf": [
|
|
148
|
+
{
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "object",
|
|
153
|
+
"properties": {
|
|
154
|
+
"reason": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"minLength": 1,
|
|
157
|
+
"maxLength": 280
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
113
163
|
"source": {
|
|
114
164
|
"anyOf": [
|
|
115
165
|
{
|
|
@@ -28,10 +28,35 @@
|
|
|
28
28
|
"pattern": "\\S"
|
|
29
29
|
},
|
|
30
30
|
"description": {
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
"anyOf": [
|
|
32
|
+
{
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 1024,
|
|
36
|
+
"pattern": "\\S"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"en": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1,
|
|
44
|
+
"maxLength": 1024,
|
|
45
|
+
"pattern": "\\S"
|
|
46
|
+
},
|
|
47
|
+
"zh": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1,
|
|
50
|
+
"maxLength": 1024,
|
|
51
|
+
"pattern": "\\S"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"en"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
}
|
|
59
|
+
]
|
|
35
60
|
},
|
|
36
61
|
"displayName": {
|
|
37
62
|
"type": "object",
|
|
@@ -169,6 +194,54 @@
|
|
|
169
194
|
"additionalProperties": false
|
|
170
195
|
}
|
|
171
196
|
},
|
|
197
|
+
"themes": {
|
|
198
|
+
"maxItems": 10,
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"properties": {
|
|
203
|
+
"path": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"minLength": 3,
|
|
206
|
+
"maxLength": 512,
|
|
207
|
+
"pattern": "^\\.\\/"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": [
|
|
211
|
+
"path"
|
|
212
|
+
],
|
|
213
|
+
"additionalProperties": false
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"setupGuides": {
|
|
217
|
+
"maxItems": 8,
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"id": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
225
|
+
},
|
|
226
|
+
"place": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"enum": [
|
|
229
|
+
"channel-connection",
|
|
230
|
+
"connector-template"
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
"template": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"required": [
|
|
239
|
+
"id",
|
|
240
|
+
"place"
|
|
241
|
+
],
|
|
242
|
+
"additionalProperties": false
|
|
243
|
+
}
|
|
244
|
+
},
|
|
172
245
|
"extension": {
|
|
173
246
|
"type": "object",
|
|
174
247
|
"properties": {
|
|
@@ -310,6 +383,26 @@
|
|
|
310
383
|
"minLength": 3,
|
|
311
384
|
"maxLength": 512,
|
|
312
385
|
"pattern": "^\\.\\/"
|
|
386
|
+
},
|
|
387
|
+
"configSchemas": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"deployment": {
|
|
391
|
+
"type": "object",
|
|
392
|
+
"propertyNames": {
|
|
393
|
+
"type": "string"
|
|
394
|
+
},
|
|
395
|
+
"additionalProperties": {}
|
|
396
|
+
},
|
|
397
|
+
"org": {
|
|
398
|
+
"type": "object",
|
|
399
|
+
"propertyNames": {
|
|
400
|
+
"type": "string"
|
|
401
|
+
},
|
|
402
|
+
"additionalProperties": {}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"additionalProperties": false
|
|
313
406
|
}
|
|
314
407
|
},
|
|
315
408
|
"required": [
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://capybarahq.com/schemas/theme.v1.schema.json",
|
|
4
|
+
"title": "Capybara theme file themes/<id>.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$schema": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"maxLength": 512
|
|
10
|
+
},
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"zh": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"maxLength": 100,
|
|
18
|
+
"pattern": "\\S"
|
|
19
|
+
},
|
|
20
|
+
"en": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 100,
|
|
24
|
+
"pattern": "\\S"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"zh",
|
|
29
|
+
"en"
|
|
30
|
+
],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
},
|
|
33
|
+
"description": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"en": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"maxLength": 1024,
|
|
40
|
+
"pattern": "\\S"
|
|
41
|
+
},
|
|
42
|
+
"zh": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"maxLength": 1024,
|
|
46
|
+
"pattern": "\\S"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"en"
|
|
51
|
+
],
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
},
|
|
54
|
+
"schemes": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"dark": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"color": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"propertyNames": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"maxLength": 64
|
|
65
|
+
},
|
|
66
|
+
"additionalProperties": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"maxLength": 256
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"shadow": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"propertyNames": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"maxLength": 64
|
|
76
|
+
},
|
|
77
|
+
"additionalProperties": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"maxLength": 256
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"radius": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"sm": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"minimum": 0,
|
|
88
|
+
"maximum": 16
|
|
89
|
+
},
|
|
90
|
+
"md": {
|
|
91
|
+
"type": "integer",
|
|
92
|
+
"minimum": 0,
|
|
93
|
+
"maximum": 16
|
|
94
|
+
},
|
|
95
|
+
"bubble": {
|
|
96
|
+
"type": "integer",
|
|
97
|
+
"minimum": 0,
|
|
98
|
+
"maximum": 16
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"additionalProperties": false
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"additionalProperties": false
|
|
105
|
+
},
|
|
106
|
+
"light": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"properties": {
|
|
109
|
+
"color": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"propertyNames": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"maxLength": 64
|
|
114
|
+
},
|
|
115
|
+
"additionalProperties": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"maxLength": 256
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"shadow": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"propertyNames": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"maxLength": 64
|
|
125
|
+
},
|
|
126
|
+
"additionalProperties": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"maxLength": 256
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"radius": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"properties": {
|
|
134
|
+
"sm": {
|
|
135
|
+
"type": "integer",
|
|
136
|
+
"minimum": 0,
|
|
137
|
+
"maximum": 16
|
|
138
|
+
},
|
|
139
|
+
"md": {
|
|
140
|
+
"type": "integer",
|
|
141
|
+
"minimum": 0,
|
|
142
|
+
"maximum": 16
|
|
143
|
+
},
|
|
144
|
+
"bubble": {
|
|
145
|
+
"type": "integer",
|
|
146
|
+
"minimum": 0,
|
|
147
|
+
"maximum": 16
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"additionalProperties": false
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"additionalProperties": false
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"additionalProperties": false
|
|
157
|
+
},
|
|
158
|
+
"fonts": {
|
|
159
|
+
"maxItems": 8,
|
|
160
|
+
"type": "array",
|
|
161
|
+
"items": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"properties": {
|
|
164
|
+
"family": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"pattern": "^[A-Za-z0-9 -]{1,64}$"
|
|
167
|
+
},
|
|
168
|
+
"file": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"maxLength": 512
|
|
171
|
+
},
|
|
172
|
+
"weight": {
|
|
173
|
+
"type": "integer",
|
|
174
|
+
"minimum": 100,
|
|
175
|
+
"maximum": 900
|
|
176
|
+
},
|
|
177
|
+
"style": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"enum": [
|
|
180
|
+
"normal",
|
|
181
|
+
"italic"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"role": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"enum": [
|
|
187
|
+
"prose",
|
|
188
|
+
"mono"
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"required": [
|
|
193
|
+
"family",
|
|
194
|
+
"file",
|
|
195
|
+
"weight",
|
|
196
|
+
"role"
|
|
197
|
+
],
|
|
198
|
+
"additionalProperties": false
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"logo": {
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"mark": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"maxLength": 512
|
|
207
|
+
},
|
|
208
|
+
"wordmark": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"pattern": "\\S"
|
|
211
|
+
},
|
|
212
|
+
"favicon": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"maxLength": 512
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"additionalProperties": false
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": [
|
|
221
|
+
"name",
|
|
222
|
+
"schemes"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false
|
|
225
|
+
}
|