@capybara-hq/plugin-sdk 0.1.0-rc.7 → 0.1.0-rc.71
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 +1 -1
- package/agent-docs/agent-templates.md +14 -2
- package/agent-docs/concepts.md +14 -5
- package/agent-docs/connector-templates.md +11 -3
- package/agent-docs/extension-points/channel.md +1 -1
- package/agent-docs/extension-points/context.md +15 -0
- package/agent-docs/extension-points/device-provider.md +15 -0
- package/agent-docs/extension-points/file-preview.md +3 -1
- package/agent-docs/extension-points/model-provider.md +3 -1
- package/agent-docs/extension-points/object-store.md +2 -0
- package/agent-docs/extension-points/push-provider.md +17 -0
- package/agent-docs/extensions.md +77 -4
- package/agent-docs/plugin-format.md +51 -12
- package/agent-docs/setup.md +54 -0
- package/dist/agent-template.d.ts +15 -6
- package/dist/agent-template.js +32 -13
- package/dist/avatar-presets.d.ts +8 -0
- package/dist/avatar-presets.js +17 -0
- package/dist/bootstrap.d.ts +109 -1
- package/dist/bootstrap.js +185 -2
- package/dist/cards.d.ts +60 -13
- package/dist/cards.js +88 -18
- package/dist/channel.d.ts +128 -47
- package/dist/channel.js +10 -5
- package/dist/client-css.d.ts +36 -0
- package/dist/client-css.js +326 -0
- package/dist/client-section.d.ts +35 -0
- package/dist/client-section.js +133 -0
- package/dist/config-ui.d.ts +28 -6
- package/dist/config-ui.js +88 -25
- package/dist/config-url-fetch.d.ts +19 -0
- package/dist/config-url-fetch.js +43 -0
- package/dist/connector-auth.d.ts +13 -2
- package/dist/connector-auth.js +82 -8
- package/dist/connector.d.ts +74 -32
- package/dist/context.d.ts +40 -0
- package/dist/context.js +2 -0
- package/dist/ctx.d.ts +210 -30
- package/dist/ctx.js +9 -1
- package/dist/define-extension.d.ts +23 -13
- package/dist/define-extension.js +19 -5
- package/dist/device-denied-paths.d.ts +20 -0
- package/dist/device-denied-paths.js +118 -0
- package/dist/device-operation.d.ts +339 -0
- package/dist/device-operation.js +312 -0
- package/dist/device-protocol.d.ts +285 -50
- package/dist/device-protocol.js +755 -90
- package/dist/device-provider.d.ts +708 -0
- package/dist/device-provider.js +325 -0
- package/dist/device-service.d.ts +52 -0
- package/dist/device-service.js +105 -0
- package/dist/dial-in.d.ts +239 -0
- package/dist/dial-in.js +155 -0
- package/dist/directory.d.ts +15 -12
- package/dist/extension-point.d.ts +2 -0
- package/dist/extension-point.js +7 -3
- package/dist/field-meta.d.ts +19 -0
- package/dist/field-meta.js +54 -0
- package/dist/file-preview.d.ts +43 -10
- package/dist/git-hosts.d.ts +53 -0
- package/dist/git-hosts.js +98 -0
- package/dist/hooks.d.ts +125 -20
- package/dist/hooks.js +5 -0
- package/dist/http-access.d.ts +71 -0
- package/dist/http-access.js +12 -0
- package/dist/identity.d.ts +38 -9
- package/dist/identity.js +21 -1
- package/dist/index.d.ts +31 -4
- package/dist/index.js +31 -4
- package/dist/model-params.d.ts +41 -22
- package/dist/model-params.js +28 -15
- package/dist/model.d.ts +210 -75
- package/dist/model.js +152 -19
- package/dist/net.d.ts +52 -0
- package/dist/net.js +34 -0
- package/dist/network-classes.d.ts +98 -0
- package/dist/network-classes.js +291 -0
- package/dist/permissions.d.ts +65 -22
- package/dist/permissions.js +139 -43
- package/dist/platform-only.d.ts +27 -0
- package/dist/platform-only.js +35 -0
- package/dist/plugin-manifest.d.ts +40 -9
- package/dist/plugin-manifest.js +171 -60
- package/dist/plugin-package.d.ts +82 -39
- package/dist/plugin-package.js +68 -41
- package/dist/push.d.ts +75 -0
- package/dist/push.js +87 -0
- package/dist/sandbox-linux-runtime-source.d.ts +1 -0
- package/dist/sandbox-linux-runtime-source.js +2343 -0
- package/dist/sandbox-native-runtime-source.d.ts +10 -0
- package/dist/sandbox-native-runtime-source.js +476 -0
- package/dist/sandbox-runtime-source.d.ts +47 -0
- package/dist/sandbox-runtime-source.js +73 -0
- package/dist/sandbox-write-denies.d.ts +139 -0
- package/dist/sandbox-write-denies.js +869 -0
- package/dist/secret.d.ts +8 -2
- package/dist/secret.js +11 -4
- package/dist/setup-check.d.ts +128 -0
- package/dist/setup-check.js +142 -0
- package/dist/setup-guide-parse.d.ts +121 -0
- package/dist/setup-guide-parse.js +356 -0
- package/dist/setup-guide-render.d.ts +45 -0
- package/dist/setup-guide-render.js +351 -0
- package/dist/setup-guide.d.ts +86 -72
- package/dist/setup-guide.js +340 -108
- package/dist/shell-capabilities.d.ts +211 -0
- package/dist/shell-capabilities.js +44 -0
- package/dist/shell-environment.d.ts +57 -0
- package/dist/shell-environment.js +21 -0
- package/dist/skill.d.ts +27 -17
- package/dist/skill.js +40 -26
- package/dist/storage.d.ts +52 -25
- package/dist/svg-viewbox.d.ts +10 -0
- package/dist/svg-viewbox.js +24 -0
- package/dist/theme-assets.d.ts +55 -0
- package/dist/theme-assets.js +489 -0
- package/dist/theme-readability.d.ts +37 -0
- package/dist/theme-readability.js +145 -0
- package/dist/theme-tokens.generated.d.ts +299 -0
- package/dist/theme-tokens.generated.js +184 -0
- package/dist/theme.d.ts +190 -0
- package/dist/theme.js +471 -0
- package/dist/tool.d.ts +104 -30
- package/dist/tool.js +29 -9
- package/dist/ui-parts.d.ts +23 -0
- package/dist/ui-parts.js +385 -0
- package/dist/ui-resolve.d.ts +35 -0
- package/dist/ui-resolve.js +42 -0
- package/dist/ui-slots.d.ts +65 -0
- package/dist/ui-slots.js +261 -0
- package/dist/ui.d.ts +232 -77
- package/dist/ui.js +104 -27
- package/dist/url.d.ts +4 -1
- package/dist/url.js +4 -1
- package/dist/web.d.ts +26 -20
- package/package.json +13 -1
- package/schemas/bootstrap-extra.v1.schema.json +186 -0
- package/schemas/bootstrap.v1.schema.json +20 -0
- package/schemas/connector-template.v1.schema.json +62 -4
- package/schemas/plugin.v1.schema.json +93 -143
- package/schemas/theme.v1.schema.json +302 -0
- package/agent-docs/extension-points/sandbox.md +0 -15
- package/dist/org-access.d.ts +0 -27
- package/dist/org-access.js +0 -35
- package/dist/sandbox.d.ts +0 -254
- package/dist/sandbox.js +0 -153
package/dist/web.d.ts
CHANGED
|
@@ -13,30 +13,33 @@ export interface WebSearchResult {
|
|
|
13
13
|
publishedAt?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* A web search provider (`web-search@1`). The kernel passes the
|
|
17
|
-
*
|
|
16
|
+
* A web search provider (`web-search@1`). The kernel passes the extension's effective config for
|
|
17
|
+
* the org (`config`).
|
|
18
18
|
*/
|
|
19
19
|
export interface WebSearchProvider {
|
|
20
20
|
/**
|
|
21
|
-
* False when this org's config lacks what the provider needs
|
|
22
|
-
*
|
|
21
|
+
* False when this org's effective config lacks what the provider needs (see `search`'s
|
|
22
|
+
* `config`).
|
|
23
23
|
*/
|
|
24
|
-
configured?(
|
|
24
|
+
configured?(config: unknown): boolean;
|
|
25
25
|
search(args: {
|
|
26
26
|
query: string;
|
|
27
27
|
/** Hints only: the kernel filters the results again. */
|
|
28
28
|
allowedDomains?: string[];
|
|
29
29
|
blockedDomains?: string[];
|
|
30
30
|
maxResults: number;
|
|
31
|
-
orgConfig: unknown;
|
|
32
31
|
/**
|
|
33
|
-
* The extension's effective
|
|
34
|
-
*
|
|
32
|
+
* The extension's effective config for this org: the platform's deployment config with the
|
|
33
|
+
* org's copy applied to the overridable fields (every field not marked `platformOnly`), or the
|
|
35
34
|
* platform's config (equal to `ctx.config`) while the org follows it. Use it, not `ctx.config`,
|
|
36
|
-
* for work done for this org.
|
|
37
|
-
* always passes it.
|
|
35
|
+
* for work done for this org.
|
|
38
36
|
*/
|
|
39
|
-
config
|
|
37
|
+
config: unknown;
|
|
38
|
+
/**
|
|
39
|
+
* The org the call is made for. Pass it to `configUrlFetch` (`orgId`) or `ctx.net.fetch`, so a
|
|
40
|
+
* URL an org set is checked against that org's network rules. The kernel always sets it.
|
|
41
|
+
*/
|
|
42
|
+
orgId?: string;
|
|
40
43
|
signal: AbortSignal;
|
|
41
44
|
}): Promise<{
|
|
42
45
|
results: WebSearchResult[];
|
|
@@ -63,22 +66,25 @@ export interface WebFetchPage {
|
|
|
63
66
|
*/
|
|
64
67
|
export interface WebFetchProvider {
|
|
65
68
|
/**
|
|
66
|
-
* False when this org's config lacks what the provider needs
|
|
67
|
-
*
|
|
69
|
+
* False when this org's effective config lacks what the provider needs (see `fetch`'s
|
|
70
|
+
* `config`).
|
|
68
71
|
*/
|
|
69
|
-
configured?(
|
|
72
|
+
configured?(config: unknown): boolean;
|
|
70
73
|
fetch(args: {
|
|
71
74
|
/** Already validated and upgraded by the kernel. */
|
|
72
75
|
url: string;
|
|
73
|
-
orgConfig: unknown;
|
|
74
76
|
/**
|
|
75
|
-
* The extension's effective
|
|
76
|
-
*
|
|
77
|
+
* The extension's effective config for this org: the platform's deployment config with the
|
|
78
|
+
* org's copy applied to the overridable fields (every field not marked `platformOnly`), or the
|
|
77
79
|
* platform's config (equal to `ctx.config`) while the org follows it. Use it, not `ctx.config`,
|
|
78
|
-
* for work done for this org.
|
|
79
|
-
|
|
80
|
+
* for work done for this org.
|
|
81
|
+
*/
|
|
82
|
+
config: unknown;
|
|
83
|
+
/**
|
|
84
|
+
* The org the call is made for. Pass it to `configUrlFetch` (`orgId`) or `ctx.net.fetch`, so a
|
|
85
|
+
* URL an org set is checked against that org's network rules. The kernel always sets it.
|
|
80
86
|
*/
|
|
81
|
-
|
|
87
|
+
orgId?: string;
|
|
82
88
|
signal: AbortSignal;
|
|
83
89
|
}): Promise<WebFetchPage>;
|
|
84
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capybara-hq/plugin-sdk",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.71",
|
|
4
4
|
"description": "Capybara plugin SDK: the types and pure functions plugins are written against",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://github.com/capybara-hq/core/tree/main/packages/plugin-sdk#readme",
|
|
12
12
|
"type": "module",
|
|
13
|
+
"sideEffects": false,
|
|
13
14
|
"main": "./dist/index.js",
|
|
14
15
|
"types": "./dist/index.d.ts",
|
|
15
16
|
"exports": {
|
|
@@ -18,6 +19,11 @@
|
|
|
18
19
|
"import": "./dist/index.js",
|
|
19
20
|
"default": "./dist/index.js"
|
|
20
21
|
},
|
|
22
|
+
"./device-protocol": {
|
|
23
|
+
"types": "./dist/device-protocol.d.ts",
|
|
24
|
+
"import": "./dist/device-protocol.js",
|
|
25
|
+
"default": "./dist/device-protocol.js"
|
|
26
|
+
},
|
|
21
27
|
"./package.json": "./package.json"
|
|
22
28
|
},
|
|
23
29
|
"files": [
|
|
@@ -28,7 +34,13 @@
|
|
|
28
34
|
"NOTICE"
|
|
29
35
|
],
|
|
30
36
|
"dependencies": {
|
|
37
|
+
"@types/mdast": "4.0.4",
|
|
31
38
|
"kysely": "^0.29.6",
|
|
39
|
+
"mdast-util-from-markdown": "2.1.0",
|
|
40
|
+
"mdast-util-gfm": "3.1.0",
|
|
41
|
+
"mdast-util-to-markdown": "2.2.0",
|
|
42
|
+
"micromark-extension-gfm": "3.0.0",
|
|
43
|
+
"saxes": "6.0.0",
|
|
32
44
|
"semver": "^7.8.5",
|
|
33
45
|
"yaml": "^2.9.1",
|
|
34
46
|
"zod": "^4.6.7"
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://capybarahq.com/schemas/bootstrap-extra.v1.schema.json",
|
|
4
|
+
"title": "Capybara extra bootstrap manifest bootstrap.extra.json (schemaVersion 1)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$schema": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"maxLength": 2000
|
|
10
|
+
},
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"type": "number",
|
|
13
|
+
"const": 1
|
|
14
|
+
},
|
|
15
|
+
"marketplaces": {
|
|
16
|
+
"maxItems": 50,
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"name": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
24
|
+
},
|
|
25
|
+
"url": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"maxLength": 2000,
|
|
28
|
+
"pattern": "^https:\\/\\/\\S+$"
|
|
29
|
+
},
|
|
30
|
+
"ref": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"maxLength": 256
|
|
34
|
+
},
|
|
35
|
+
"username": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[A-Za-z0-9._-]{1,64}$"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"name",
|
|
42
|
+
"url"
|
|
43
|
+
],
|
|
44
|
+
"additionalProperties": false
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"plugins": {
|
|
48
|
+
"maxItems": 500,
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"oneOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"name": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
58
|
+
},
|
|
59
|
+
"version": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"maxLength": 256,
|
|
62
|
+
"pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\\+[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*)?$"
|
|
63
|
+
},
|
|
64
|
+
"integrity": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"pattern": "^sha512-[A-Za-z0-9+/]{86}==$"
|
|
67
|
+
},
|
|
68
|
+
"required": {
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
"builtin": {
|
|
72
|
+
"type": "boolean"
|
|
73
|
+
},
|
|
74
|
+
"scope": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"all",
|
|
78
|
+
"optional"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"source": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"const": "npm"
|
|
84
|
+
},
|
|
85
|
+
"npm": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"maxLength": 214,
|
|
88
|
+
"pattern": "^(?:@[a-z0-9][a-z0-9._~-]*\\/)?[a-z0-9][a-z0-9._~-]*$"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": [
|
|
92
|
+
"name",
|
|
93
|
+
"version",
|
|
94
|
+
"integrity",
|
|
95
|
+
"source",
|
|
96
|
+
"npm"
|
|
97
|
+
],
|
|
98
|
+
"additionalProperties": false
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"name": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
106
|
+
},
|
|
107
|
+
"version": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"maxLength": 256,
|
|
110
|
+
"pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\\+[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*)?$"
|
|
111
|
+
},
|
|
112
|
+
"integrity": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"pattern": "^sha512-[A-Za-z0-9+/]{86}==$"
|
|
115
|
+
},
|
|
116
|
+
"required": {
|
|
117
|
+
"type": "boolean"
|
|
118
|
+
},
|
|
119
|
+
"builtin": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"scope": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"enum": [
|
|
125
|
+
"all",
|
|
126
|
+
"optional"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"source": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"const": "git"
|
|
132
|
+
},
|
|
133
|
+
"marketplace": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
136
|
+
},
|
|
137
|
+
"commit": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"pattern": "^[0-9a-f]{40}$"
|
|
140
|
+
},
|
|
141
|
+
"path": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"maxLength": 512
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"name",
|
|
148
|
+
"version",
|
|
149
|
+
"integrity",
|
|
150
|
+
"source",
|
|
151
|
+
"marketplace",
|
|
152
|
+
"commit",
|
|
153
|
+
"path"
|
|
154
|
+
],
|
|
155
|
+
"additionalProperties": false
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"defaultTheme": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"plugin": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
|
|
166
|
+
},
|
|
167
|
+
"theme": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"minLength": 1,
|
|
170
|
+
"maxLength": 256
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"required": [
|
|
174
|
+
"plugin",
|
|
175
|
+
"theme"
|
|
176
|
+
],
|
|
177
|
+
"additionalProperties": false
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"required": [
|
|
181
|
+
"schemaVersion",
|
|
182
|
+
"marketplaces",
|
|
183
|
+
"plugins"
|
|
184
|
+
],
|
|
185
|
+
"additionalProperties": false
|
|
186
|
+
}
|
|
@@ -55,6 +55,16 @@
|
|
|
55
55
|
"required": {
|
|
56
56
|
"type": "boolean"
|
|
57
57
|
},
|
|
58
|
+
"builtin": {
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"scope": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"all",
|
|
65
|
+
"optional"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
58
68
|
"source": {
|
|
59
69
|
"type": "string",
|
|
60
70
|
"const": "npm"
|
|
@@ -94,6 +104,16 @@
|
|
|
94
104
|
"required": {
|
|
95
105
|
"type": "boolean"
|
|
96
106
|
},
|
|
107
|
+
"builtin": {
|
|
108
|
+
"type": "boolean"
|
|
109
|
+
},
|
|
110
|
+
"scope": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"enum": [
|
|
113
|
+
"all",
|
|
114
|
+
"optional"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
97
117
|
"source": {
|
|
98
118
|
"type": "string",
|
|
99
119
|
"const": "workspace"
|
|
@@ -27,10 +27,36 @@
|
|
|
27
27
|
"additionalProperties": false
|
|
28
28
|
},
|
|
29
29
|
"description": {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
"anyOf": [
|
|
31
|
+
{
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1,
|
|
34
|
+
"maxLength": 1024,
|
|
35
|
+
"pattern": "\\S"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"zh": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1,
|
|
43
|
+
"maxLength": 1024,
|
|
44
|
+
"pattern": "\\S"
|
|
45
|
+
},
|
|
46
|
+
"en": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"minLength": 1,
|
|
49
|
+
"maxLength": 1024,
|
|
50
|
+
"pattern": "\\S"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"zh",
|
|
55
|
+
"en"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
}
|
|
59
|
+
]
|
|
34
60
|
},
|
|
35
61
|
"icon": {
|
|
36
62
|
"type": "string",
|
|
@@ -97,6 +123,38 @@
|
|
|
97
123
|
]
|
|
98
124
|
}
|
|
99
125
|
},
|
|
126
|
+
"git": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"properties": {
|
|
129
|
+
"hosts": {
|
|
130
|
+
"minItems": 1,
|
|
131
|
+
"maxItems": 8,
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"host": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"maxLength": 253
|
|
139
|
+
},
|
|
140
|
+
"username": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"pattern": "^[A-Za-z0-9._-]{1,64}$"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": [
|
|
146
|
+
"host",
|
|
147
|
+
"username"
|
|
148
|
+
],
|
|
149
|
+
"additionalProperties": false
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": [
|
|
154
|
+
"hosts"
|
|
155
|
+
],
|
|
156
|
+
"additionalProperties": false
|
|
157
|
+
},
|
|
100
158
|
"icon": {
|
|
101
159
|
"type": "string",
|
|
102
160
|
"maxLength": 512
|