@capybara-hq/plugin-sdk 0.1.0-rc.5 → 0.1.0-rc.50

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.
Files changed (130) hide show
  1. package/agent-docs/agent-templates.md +14 -2
  2. package/agent-docs/concepts.md +14 -5
  3. package/agent-docs/connector-templates.md +4 -1
  4. package/agent-docs/extension-points/channel.md +1 -1
  5. package/agent-docs/extension-points/context.md +15 -0
  6. package/agent-docs/extension-points/file-preview.md +2 -0
  7. package/agent-docs/extension-points/model-provider.md +3 -1
  8. package/agent-docs/extension-points/object-store.md +2 -0
  9. package/agent-docs/extension-points/push-provider.md +17 -0
  10. package/agent-docs/extension-points/sandbox.md +2 -2
  11. package/agent-docs/extensions.md +29 -3
  12. package/agent-docs/plugin-format.md +48 -2
  13. package/agent-docs/setup.md +54 -0
  14. package/dist/agent-template.d.ts +15 -6
  15. package/dist/agent-template.js +32 -13
  16. package/dist/avatar-presets.d.ts +8 -0
  17. package/dist/avatar-presets.js +17 -0
  18. package/dist/bootstrap.d.ts +86 -1
  19. package/dist/bootstrap.js +161 -2
  20. package/dist/cards.d.ts +67 -13
  21. package/dist/cards.js +91 -21
  22. package/dist/channel.d.ts +148 -48
  23. package/dist/channel.js +10 -5
  24. package/dist/client-css.d.ts +36 -0
  25. package/dist/client-css.js +326 -0
  26. package/dist/client-section.d.ts +35 -0
  27. package/dist/client-section.js +133 -0
  28. package/dist/config-ui.d.ts +22 -0
  29. package/dist/config-ui.js +64 -4
  30. package/dist/connector-auth.d.ts +7 -2
  31. package/dist/connector-auth.js +29 -8
  32. package/dist/connector.d.ts +74 -32
  33. package/dist/context.d.ts +40 -0
  34. package/dist/context.js +2 -0
  35. package/dist/ctx.d.ts +120 -29
  36. package/dist/define-extension.d.ts +26 -12
  37. package/dist/define-extension.js +11 -4
  38. package/dist/device-denied-paths.d.ts +14 -0
  39. package/dist/device-denied-paths.js +41 -0
  40. package/dist/device-protocol.d.ts +489 -0
  41. package/dist/device-protocol.js +1116 -0
  42. package/dist/extension-point.d.ts +2 -0
  43. package/dist/extension-point.js +6 -2
  44. package/dist/file-preview.d.ts +23 -6
  45. package/dist/git-hosts.d.ts +53 -0
  46. package/dist/git-hosts.js +98 -0
  47. package/dist/hooks.d.ts +125 -20
  48. package/dist/hooks.js +5 -0
  49. package/dist/http-access.d.ts +62 -0
  50. package/dist/http-access.js +12 -0
  51. package/dist/identity.d.ts +38 -9
  52. package/dist/identity.js +21 -1
  53. package/dist/index.d.ts +28 -1
  54. package/dist/index.js +28 -1
  55. package/dist/marketplace.d.ts +26 -0
  56. package/dist/marketplace.js +43 -1
  57. package/dist/model-params.d.ts +41 -22
  58. package/dist/model-params.js +28 -15
  59. package/dist/model.d.ts +206 -71
  60. package/dist/model.js +152 -19
  61. package/dist/net.d.ts +52 -0
  62. package/dist/net.js +34 -0
  63. package/dist/network-classes.d.ts +98 -0
  64. package/dist/network-classes.js +291 -0
  65. package/dist/permissions.d.ts +41 -21
  66. package/dist/permissions.js +101 -42
  67. package/dist/plugin-manifest.d.ts +45 -5
  68. package/dist/plugin-manifest.js +169 -6
  69. package/dist/plugin-package.d.ts +82 -38
  70. package/dist/plugin-package.js +61 -29
  71. package/dist/push.d.ts +75 -0
  72. package/dist/push.js +87 -0
  73. package/dist/sandbox-linux-runtime-source.d.ts +1 -0
  74. package/dist/sandbox-linux-runtime-source.js +2318 -0
  75. package/dist/sandbox-native-runtime-source.d.ts +10 -0
  76. package/dist/sandbox-native-runtime-source.js +476 -0
  77. package/dist/sandbox-operation.d.ts +298 -0
  78. package/dist/sandbox-operation.js +282 -0
  79. package/dist/sandbox-runtime-source.d.ts +19 -0
  80. package/dist/sandbox-runtime-source.js +28 -0
  81. package/dist/sandbox-write-denies.d.ts +139 -0
  82. package/dist/sandbox-write-denies.js +869 -0
  83. package/dist/sandbox.d.ts +190 -16
  84. package/dist/sandbox.js +89 -14
  85. package/dist/secret.d.ts +4 -1
  86. package/dist/secret.js +4 -1
  87. package/dist/setup-check.d.ts +128 -0
  88. package/dist/setup-check.js +142 -0
  89. package/dist/setup-guide-parse.d.ts +121 -0
  90. package/dist/setup-guide-parse.js +350 -0
  91. package/dist/setup-guide-render.d.ts +45 -0
  92. package/dist/setup-guide-render.js +351 -0
  93. package/dist/setup-guide.d.ts +96 -0
  94. package/dist/setup-guide.js +348 -0
  95. package/dist/shell-capabilities.d.ts +231 -0
  96. package/dist/shell-capabilities.js +37 -0
  97. package/dist/shell-environment.d.ts +57 -0
  98. package/dist/shell-environment.js +22 -0
  99. package/dist/skill-invocation.d.ts +4 -3
  100. package/dist/skill-invocation.js +5 -4
  101. package/dist/skill.d.ts +34 -21
  102. package/dist/skill.js +48 -31
  103. package/dist/storage.d.ts +52 -25
  104. package/dist/theme-assets.d.ts +55 -0
  105. package/dist/theme-assets.js +507 -0
  106. package/dist/theme-readability.d.ts +37 -0
  107. package/dist/theme-readability.js +145 -0
  108. package/dist/theme-tokens.generated.d.ts +299 -0
  109. package/dist/theme-tokens.generated.js +184 -0
  110. package/dist/theme.d.ts +190 -0
  111. package/dist/theme.js +471 -0
  112. package/dist/tool.d.ts +69 -26
  113. package/dist/tool.js +29 -9
  114. package/dist/ui-parts.d.ts +23 -0
  115. package/dist/ui-parts.js +348 -0
  116. package/dist/ui-resolve.d.ts +35 -0
  117. package/dist/ui-resolve.js +42 -0
  118. package/dist/ui-slots.d.ts +65 -0
  119. package/dist/ui-slots.js +261 -0
  120. package/dist/ui.d.ts +212 -76
  121. package/dist/ui.js +101 -27
  122. package/dist/url.d.ts +4 -1
  123. package/dist/url.js +4 -1
  124. package/package.json +8 -1
  125. package/schemas/bootstrap-extra.v1.schema.json +172 -0
  126. package/schemas/bootstrap.v1.schema.json +6 -0
  127. package/schemas/connector-template.v1.schema.json +35 -0
  128. package/schemas/marketplace.v1.schema.json +14 -0
  129. package/schemas/plugin.v1.schema.json +116 -3
  130. package/schemas/theme.v1.schema.json +302 -0
@@ -0,0 +1,302 @@
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
+ "illustration": {
217
+ "type": "string",
218
+ "maxLength": 512
219
+ },
220
+ "appIcon": {
221
+ "type": "string",
222
+ "maxLength": 512
223
+ },
224
+ "appIconMaskable": {
225
+ "type": "string",
226
+ "maxLength": 512
227
+ }
228
+ },
229
+ "additionalProperties": false
230
+ },
231
+ "decoration": {
232
+ "type": "string",
233
+ "enum": [
234
+ "dither",
235
+ "none"
236
+ ]
237
+ },
238
+ "avatars": {
239
+ "maxItems": 12,
240
+ "type": "array",
241
+ "items": {
242
+ "type": "object",
243
+ "properties": {
244
+ "id": {
245
+ "type": "string",
246
+ "pattern": "^[a-z0-9][a-z0-9-]{0,31}$"
247
+ },
248
+ "name": {
249
+ "type": "object",
250
+ "properties": {
251
+ "en": {
252
+ "type": "string",
253
+ "pattern": "\\S"
254
+ },
255
+ "zh": {
256
+ "type": "string",
257
+ "pattern": "\\S"
258
+ }
259
+ },
260
+ "required": [
261
+ "en"
262
+ ],
263
+ "additionalProperties": false
264
+ },
265
+ "file": {
266
+ "type": "string",
267
+ "maxLength": 512
268
+ }
269
+ },
270
+ "required": [
271
+ "id",
272
+ "name",
273
+ "file"
274
+ ],
275
+ "additionalProperties": false
276
+ }
277
+ },
278
+ "hideAvatarPresets": {
279
+ "type": "array",
280
+ "items": {
281
+ "type": "string",
282
+ "enum": [
283
+ "capybara",
284
+ "black-bear",
285
+ "panda",
286
+ "elephant",
287
+ "fox",
288
+ "owl",
289
+ "penguin",
290
+ "rabbit",
291
+ "turtle",
292
+ "whale"
293
+ ]
294
+ }
295
+ }
296
+ },
297
+ "required": [
298
+ "name",
299
+ "schemes"
300
+ ],
301
+ "additionalProperties": false
302
+ }