@appsys-sas/devtool-config 0.0.0-stage → 1.0.0
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/LICENSE +201 -0
- package/lib/index.d.ts +90 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +332 -0
- package/lib/index.js.map +1 -0
- package/package.json +36 -3
- package/schema/config.schema.json +792 -0
- package/README.md +0 -3
|
@@ -0,0 +1,792 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://appsys-sas.github.io/devtool/schema/config.json",
|
|
4
|
+
"title": "Devtool configuration",
|
|
5
|
+
"description": "A devtool configuration file: config.yml, config.local.yml or any file they include.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"workspace": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Folder holding your repositories. Relative section paths are resolved from it. Usually personal, in config.local.yml.",
|
|
12
|
+
"examples": ["~/Workspace"]
|
|
13
|
+
},
|
|
14
|
+
"sectionPath": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"default": ".",
|
|
17
|
+
"description": "Path, from the workspace, of the sections that declare no path."
|
|
18
|
+
},
|
|
19
|
+
"include": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": { "type": "string" },
|
|
22
|
+
"description": "Other configuration files to merge over this one, relative to this file. Globs, ~/ and $VAR work.",
|
|
23
|
+
"examples": [["projects/*.yml"]]
|
|
24
|
+
},
|
|
25
|
+
"adt": { "$ref": "#/$defs/adt" },
|
|
26
|
+
"loadBalancers": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"description": "TLS certificates served by the load balancer, by domain. The certificate of a domain also covers its subdomains.",
|
|
29
|
+
"additionalProperties": { "$ref": "#/$defs/loadBalancer" }
|
|
30
|
+
},
|
|
31
|
+
"passthrough": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"description": "TLS connections forwarded untouched by their server name, for tools serving their own certificates.",
|
|
34
|
+
"items": { "$ref": "#/$defs/passthrough" }
|
|
35
|
+
},
|
|
36
|
+
"dns": { "$ref": "#/$defs/dns" },
|
|
37
|
+
"auth": { "$ref": "#/$defs/auth" },
|
|
38
|
+
"integrations": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"description": "Web tools shown under Environment and Configs in the sidebar.",
|
|
41
|
+
"additionalProperties": { "$ref": "#/$defs/integration" }
|
|
42
|
+
},
|
|
43
|
+
"sections": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"description": "Groups of projects shown in the sidebar, by slug.",
|
|
46
|
+
"additionalProperties": { "$ref": "#/$defs/section" }
|
|
47
|
+
},
|
|
48
|
+
"projects": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"description": "Projects (folders) with their commands, services, files and integrations, by slug.",
|
|
51
|
+
"additionalProperties": { "$ref": "#/$defs/project" }
|
|
52
|
+
},
|
|
53
|
+
"environment": { "$ref": "#/$defs/environment" }
|
|
54
|
+
},
|
|
55
|
+
"$defs": {
|
|
56
|
+
"iconName": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "An Iconify icon name, prefix:name.",
|
|
59
|
+
"examples": ["lucide:server", "mdi:email", "simple-icons:docker"]
|
|
60
|
+
},
|
|
61
|
+
"access": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": ["local", "network"],
|
|
64
|
+
"default": "local",
|
|
65
|
+
"description": "Who may connect: local (this machine only) or network (any client of the network)."
|
|
66
|
+
},
|
|
67
|
+
"stringMap": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": { "type": "string" }
|
|
70
|
+
},
|
|
71
|
+
"argument": {
|
|
72
|
+
"anyOf": [
|
|
73
|
+
{ "type": "string" },
|
|
74
|
+
{ "type": "number" },
|
|
75
|
+
{ "$ref": "#/$defs/input" }
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"args": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"description": "The command and its arguments; an item may be an input asked when the command starts. Empty: an interactive shell.",
|
|
81
|
+
"items": { "$ref": "#/$defs/argument" }
|
|
82
|
+
},
|
|
83
|
+
"plainArgs": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"minItems": 1,
|
|
86
|
+
"items": { "type": ["string", "number"] }
|
|
87
|
+
},
|
|
88
|
+
"choice": {
|
|
89
|
+
"anyOf": [
|
|
90
|
+
{ "type": ["string", "number"] },
|
|
91
|
+
{
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": ["label", "value"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"label": { "type": "string" },
|
|
97
|
+
"value": { "type": ["string", "number"] }
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"input": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"description": "An input asked when the command starts: one of choices, a flag or free text.",
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"required": ["name"],
|
|
107
|
+
"properties": {
|
|
108
|
+
"name": { "type": "string", "description": "Label of the input; a flag adds it to the command when ticked." },
|
|
109
|
+
"choices": { "type": "array", "items": { "$ref": "#/$defs/choice" }, "description": "Values to pick from." },
|
|
110
|
+
"optional": { "type": "boolean", "default": false, "description": "A choice may be left empty." },
|
|
111
|
+
"display": { "type": "string", "enum": ["buttons", "dropdown"], "default": "buttons", "description": "How choices are shown." },
|
|
112
|
+
"flag": { "const": true, "description": "A checkbox adding the name when ticked." },
|
|
113
|
+
"text": { "const": true, "description": "Free text, split like a shell does." },
|
|
114
|
+
"default": { "type": ["string", "number", "boolean"], "description": "Value filled in: one of the choices, a boolean for a flag, a text." }
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"answer": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": ["match", "value"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"match": { "type": "string", "description": "Case-insensitive regular expression matched against the output." },
|
|
123
|
+
"value": { "type": "string", "description": "Text typed when it matches. Value blocks are read." }
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"automation": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"properties": {
|
|
129
|
+
"opAccount": { "type": "string", "description": "1Password account (ID or sign-in address) used to read op:// value blocks." },
|
|
130
|
+
"unless": { "$ref": "#/$defs/plainArgs", "description": "A check run first; its success skips the command." },
|
|
131
|
+
"answers": { "type": "array", "items": { "$ref": "#/$defs/answer" }, "description": "Answers typed when the output matches, each once, in order." }
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"restore": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"description": "Command run in the parent folder to bring back a missing folder. %{ADT:PATH} stands for the missing folder.",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": ["args"],
|
|
139
|
+
"properties": {
|
|
140
|
+
"name": { "type": "string", "default": "Restore" },
|
|
141
|
+
"args": { "$ref": "#/$defs/plainArgs" }
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"meta": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"description": "Display settings.",
|
|
147
|
+
"properties": {
|
|
148
|
+
"icon": { "type": "string", "description": "An Iconify name (prefix:name); a bare name gets the lucide: prefix." }
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"killSignal": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"pattern": "^\\s*[Ss][Ii][Gg][A-Za-z0-9]+\\s*$",
|
|
154
|
+
"default": "SIGTERM",
|
|
155
|
+
"description": "Signal sent to stop the command."
|
|
156
|
+
},
|
|
157
|
+
"env": {
|
|
158
|
+
"description": "Environment variables, as a map or a list of maps merged in order. Value blocks are read in commands.",
|
|
159
|
+
"anyOf": [{ "$ref": "#/$defs/stringMap" }, { "type": "array", "items": { "$ref": "#/$defs/stringMap" } }]
|
|
160
|
+
},
|
|
161
|
+
"shortcut": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"pattern": "^(integration|command|files):[^:]+$|^service:[^:]+(:[0-9]+)?$",
|
|
164
|
+
"description": "integration:<slug>, command:<slug>, files:<slug> or service:<slug>[:<index>]."
|
|
165
|
+
},
|
|
166
|
+
"mcpLevel": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"enum": ["allow", "keys", "ask", "deny"],
|
|
169
|
+
"description": "allow, ask (a dialog in the interface), deny, or keys (files only: keys and value types, never values)."
|
|
170
|
+
},
|
|
171
|
+
"mcpRules": {
|
|
172
|
+
"description": "Agent permission: one level for every action, or levels by action.",
|
|
173
|
+
"anyOf": [
|
|
174
|
+
{ "$ref": "#/$defs/mcpLevel" },
|
|
175
|
+
{
|
|
176
|
+
"type": "object",
|
|
177
|
+
"additionalProperties": false,
|
|
178
|
+
"properties": {
|
|
179
|
+
"read": { "$ref": "#/$defs/mcpLevel" },
|
|
180
|
+
"run": { "$ref": "#/$defs/mcpLevel" },
|
|
181
|
+
"input": { "$ref": "#/$defs/mcpLevel" },
|
|
182
|
+
"control": { "$ref": "#/$defs/mcpLevel" },
|
|
183
|
+
"write": { "$ref": "#/$defs/mcpLevel" }
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"mcpList": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"additionalProperties": false,
|
|
191
|
+
"properties": {
|
|
192
|
+
"level": { "type": "string", "enum": ["allow", "ask", "deny"], "description": "Level of what no pattern matches." },
|
|
193
|
+
"allow": { "type": "array", "items": { "type": "string" }, "description": "Patterns allowed; * matches any text." },
|
|
194
|
+
"deny": { "type": "array", "items": { "type": "string" }, "description": "Patterns denied; deny wins over allow." }
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"adt": {
|
|
198
|
+
"type": "object",
|
|
199
|
+
"description": "Settings of the devtool itself.",
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"properties": {
|
|
202
|
+
"displayName": { "type": "string", "pattern": "^[^/]*\\S[^/]*$", "default": "AppSys Devtool", "description": "Name shown in the tab, the sidebar, the notifications and the macOS app." },
|
|
203
|
+
"name": { "type": "string", "pattern": "^[a-z0-9][a-z0-9_-]*$", "description": "Identifier of the MCP server and the macOS app. Default: the display name in lowercase." },
|
|
204
|
+
"icon": { "type": "string", "pattern": "\\.(svg|png|jpe?g|icns)$", "description": "Icon file (SVG, PNG, JPEG or ICNS), relative to the configuration folder." },
|
|
205
|
+
"cacheDir": { "type": "string", "default": "~/.cache/appsys/devtool", "description": "Folder of what the devtool rebuilds or keeps between runs. Given to commands as APPSYS_DEVTOOL_CACHE_DIR." },
|
|
206
|
+
"host": { "type": "string", "description": "Host name serving the interface through the load balancer.", "examples": ["devtool.example.dev"] },
|
|
207
|
+
"access": { "$ref": "#/$defs/access", "description": "Who may open the interface through adt.host." },
|
|
208
|
+
"ports": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"additionalProperties": false,
|
|
211
|
+
"properties": {
|
|
212
|
+
"server": { "type": "integer", "minimum": 1, "default": 6730, "description": "Port of the server and the interface, on 127.0.0.1." },
|
|
213
|
+
"loadBalancer": { "type": "integer", "minimum": 1, "default": 6731, "description": "Port of the load balancer, on every interface." }
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"shell": { "type": "string", "description": "Default shell of the commands. Default: $SHELL." },
|
|
217
|
+
"notifications": { "type": "boolean", "default": true, "description": "Notify when a command ends; the default of every section, project and command." },
|
|
218
|
+
"sidebar": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"additionalProperties": false,
|
|
221
|
+
"properties": {
|
|
222
|
+
"environment": { "type": "boolean", "default": false, "description": "Show the link to the Environment page." },
|
|
223
|
+
"configs": { "type": "boolean", "default": false, "description": "Show the link to the Configs page." },
|
|
224
|
+
"login": { "type": "boolean", "default": false, "description": "Show the sign-in state of the identity provider." },
|
|
225
|
+
"sort": { "type": "string", "enum": ["config", "name", "manual"], "default": "config", "description": "Order of the sections, and default order of their content." },
|
|
226
|
+
"order": { "type": "array", "items": { "type": "string" }, "description": "With sort: manual, the section slugs shown first." }
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"agents": {
|
|
230
|
+
"type": "object",
|
|
231
|
+
"propertyNames": { "pattern": "^[a-zA-Z0-9\\-/_.]+$" },
|
|
232
|
+
"description": "Coding agents started by the agent buttons of pull requests and issues.",
|
|
233
|
+
"additionalProperties": { "$ref": "#/$defs/agent" }
|
|
234
|
+
},
|
|
235
|
+
"agentPrompts": { "$ref": "#/$defs/agentPrompts" },
|
|
236
|
+
"mcp": { "$ref": "#/$defs/mcp" }
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"agent": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"allOf": [{ "$ref": "#/$defs/automation" }],
|
|
242
|
+
"required": ["name"],
|
|
243
|
+
"oneOf": [{ "required": ["args"] }, { "required": ["url"] }],
|
|
244
|
+
"unevaluatedProperties": false,
|
|
245
|
+
"properties": {
|
|
246
|
+
"name": { "type": "string" },
|
|
247
|
+
"icon": { "$ref": "#/$defs/iconName", "default": "lucide:bot" },
|
|
248
|
+
"args": { "$ref": "#/$defs/plainArgs", "description": "Run in a terminal of the project. %{ADT:PROMPT} and %{ADT:CWD} are replaced." },
|
|
249
|
+
"url": { "type": "string", "description": "Opened by the browser. %{ADT:PROMPT} and %{ADT:CWD} are replaced, URL-encoded." },
|
|
250
|
+
"env": { "$ref": "#/$defs/env" }
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"agentPrompts": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"description": "Prompts of the agent actions, by kind of integration.",
|
|
256
|
+
"additionalProperties": false,
|
|
257
|
+
"properties": {
|
|
258
|
+
"pullRequests": {
|
|
259
|
+
"type": "object",
|
|
260
|
+
"additionalProperties": false,
|
|
261
|
+
"properties": { "review": { "type": "string" } }
|
|
262
|
+
},
|
|
263
|
+
"issues": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"additionalProperties": false,
|
|
266
|
+
"properties": { "analyze": { "type": "string" }, "fix": { "type": "string" } }
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"mcp": {
|
|
271
|
+
"type": "object",
|
|
272
|
+
"description": "The MCP server agents connect to, and what they may do.",
|
|
273
|
+
"additionalProperties": false,
|
|
274
|
+
"properties": {
|
|
275
|
+
"enabled": { "type": "boolean", "default": false, "description": "Answer MCP clients of this machine at http://127.0.0.1:<adt.ports.server>/mcp." },
|
|
276
|
+
"notifications": { "type": "boolean", "description": "Notify when an agent asks for permission. Default: adt.notifications." },
|
|
277
|
+
"skills": { "type": "boolean", "default": true, "description": "Serve the agent skills of the devtool over MCP (Skills extension)." },
|
|
278
|
+
"timeout": { "type": "integer", "minimum": 1, "default": 120, "description": "Seconds before an unanswered request is refused." },
|
|
279
|
+
"ownTerminals": { "type": "string", "enum": ["allow", "ask"], "default": "allow", "description": "Typing into and controlling the terminals an agent started itself." },
|
|
280
|
+
"default": { "$ref": "#/$defs/mcpRules", "description": "Levels every other setting inherits. Default: read allow, everything else ask." },
|
|
281
|
+
"commands": { "$ref": "#/$defs/mcpRules" },
|
|
282
|
+
"scripts": { "$ref": "#/$defs/mcpRules" },
|
|
283
|
+
"files": { "$ref": "#/$defs/mcpRules" },
|
|
284
|
+
"terminals": { "$ref": "#/$defs/mcpRules", "description": "Terminals a person opened without a command." },
|
|
285
|
+
"certificates": { "$ref": "#/$defs/mcpRules" },
|
|
286
|
+
"devtool": { "$ref": "#/$defs/mcpRules", "description": "port_owners (read) and reload_config (control)." },
|
|
287
|
+
"integrations": { "$ref": "#/$defs/mcpRules", "description": "list_pull_requests and list_issues (read), refined by the sections, projects and integrations." },
|
|
288
|
+
"clients": { "$ref": "#/$defs/mcpList", "description": "Which agents may connect. Default level: ask." },
|
|
289
|
+
"shell": { "$ref": "#/$defs/mcpList", "description": "Shell commands of run_shell. Default level: deny." }
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"loadBalancer": {
|
|
293
|
+
"type": "object",
|
|
294
|
+
"additionalProperties": false,
|
|
295
|
+
"required": ["crt", "key"],
|
|
296
|
+
"properties": {
|
|
297
|
+
"crt": { "type": "string", "description": "Certificate: a file (relative to the configuration folder) or PEM text." },
|
|
298
|
+
"key": { "type": "string", "description": "Private key: a file or PEM text." },
|
|
299
|
+
"warn": { "type": "integer", "minimum": 1, "default": 30, "description": "Days before the expiry from which the Server page warns." },
|
|
300
|
+
"acme": { "$ref": "#/$defs/acme" },
|
|
301
|
+
"mcp": { "$ref": "#/$defs/mcpRules" }
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"acme": {
|
|
305
|
+
"type": "object",
|
|
306
|
+
"description": "Renewal of the certificate, by lego or by your own command. crt and key must be files.",
|
|
307
|
+
"allOf": [{ "$ref": "#/$defs/automation" }],
|
|
308
|
+
"oneOf": [{ "required": ["lego"] }, { "required": ["command"] }],
|
|
309
|
+
"unevaluatedProperties": false,
|
|
310
|
+
"properties": {
|
|
311
|
+
"trigger": { "type": "string", "enum": ["button", "auto", "both"], "default": "button", "description": "Renew from the Server page, on its own, or both." },
|
|
312
|
+
"before": { "type": "integer", "minimum": 1, "default": 30, "description": "Days before the expiry from which auto renews." },
|
|
313
|
+
"lego": {
|
|
314
|
+
"type": "object",
|
|
315
|
+
"description": "Options of lego run, without their dashes: a value gives --name value, a list repeats it, true gives it alone.",
|
|
316
|
+
"propertyNames": { "not": { "enum": ["path", "cert.name", "accept-tos", "renew-force", "renew-days", "no-random-sleep"] } },
|
|
317
|
+
"additionalProperties": {
|
|
318
|
+
"anyOf": [
|
|
319
|
+
{ "type": ["string", "number", "boolean"] },
|
|
320
|
+
{ "type": "array", "items": { "type": ["string", "number"] } }
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"command": { "$ref": "#/$defs/plainArgs", "description": "Your renewal command, run in the folder of the certificate. %{ADT:CRT} and %{ADT:KEY} are replaced." },
|
|
325
|
+
"env": { "$ref": "#/$defs/env" }
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"passthrough": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"additionalProperties": false,
|
|
331
|
+
"required": ["hosts", "target"],
|
|
332
|
+
"properties": {
|
|
333
|
+
"hosts": { "type": "array", "items": { "type": "string", "pattern": "^(\\*\\.)?[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$" }, "description": "Host names or *.<domain>." },
|
|
334
|
+
"target": { "type": "string", "pattern": "^.+:[0-9]{1,5}$", "description": "<host>:<port> receiving the connections." },
|
|
335
|
+
"access": { "$ref": "#/$defs/access" }
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"dns": {
|
|
339
|
+
"type": "object",
|
|
340
|
+
"description": "Local DNS server answering your own names, every other name resolved by its upstream server or the system.",
|
|
341
|
+
"additionalProperties": false,
|
|
342
|
+
"properties": {
|
|
343
|
+
"enabled": { "type": "boolean", "default": true, "description": "Run the DNS; false in config.local.yml turns off a DNS of the shared configuration." },
|
|
344
|
+
"port": { "type": ["integer", "string"], "default": 53 },
|
|
345
|
+
"upstream": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"description": "DNS server resolving the names without a record, <host>[:<port>] (port 53 by default), such as another devtool's DNS; the system's resolver when missing.",
|
|
348
|
+
"examples": ["127.0.0.1:5353"]
|
|
349
|
+
},
|
|
350
|
+
"access": { "$ref": "#/$defs/access" },
|
|
351
|
+
"records": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"additionalProperties": {
|
|
354
|
+
"type": "object",
|
|
355
|
+
"additionalProperties": false,
|
|
356
|
+
"required": ["names", "address"],
|
|
357
|
+
"properties": {
|
|
358
|
+
"names": { "type": "array", "items": { "type": "string", "pattern": "^(\\*\\.)?[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$" } },
|
|
359
|
+
"address": { "type": "string", "pattern": "^(auto|[0-9]{1,3}(\\.[0-9]{1,3}){3})$", "description": "An IPv4 address, or auto for the current address of this machine." }
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"auth": {
|
|
366
|
+
"type": "object",
|
|
367
|
+
"description": "The identity provider signing the developers in, for the cdn backends and the {{ auth://... }} value blocks.",
|
|
368
|
+
"additionalProperties": false,
|
|
369
|
+
"required": ["issuer", "clientId"],
|
|
370
|
+
"properties": {
|
|
371
|
+
"type": { "type": "string", "enum": ["openid"], "default": "openid", "description": "The kind of identity provider." },
|
|
372
|
+
"name": { "type": "string", "description": "Name of the identity provider shown in the sign-in texts." },
|
|
373
|
+
"issuer": { "type": "string", "pattern": "^https?://", "description": "The OpenID Connect issuer." },
|
|
374
|
+
"clientId": { "type": "string", "description": "Public client of the devtool at the issuer." },
|
|
375
|
+
"callbackPort": { "type": ["integer", "string"], "default": 6732, "description": "Local port the issuer redirects to: http://127.0.0.1:<port>/callback." },
|
|
376
|
+
"scopes": {
|
|
377
|
+
"type": "array",
|
|
378
|
+
"items": { "type": "string" },
|
|
379
|
+
"contains": { "const": "openid" },
|
|
380
|
+
"default": ["openid", "offline_access", "groups", "profile"],
|
|
381
|
+
"description": "Scopes asked at sign-in; add email to read {{ auth://email }}."
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"integration": {
|
|
386
|
+
"type": "object",
|
|
387
|
+
"allOf": [{ "$ref": "#/$defs/automation" }],
|
|
388
|
+
"required": ["name"],
|
|
389
|
+
"unevaluatedProperties": false,
|
|
390
|
+
"properties": {
|
|
391
|
+
"name": { "type": "string" },
|
|
392
|
+
"icon": { "$ref": "#/$defs/iconName" },
|
|
393
|
+
"type": { "type": "string", "enum": ["web", "pullRequests", "issues"], "default": "web" },
|
|
394
|
+
"url": { "type": "string", "description": "web: the page shown. pullRequests and issues: the repository, its origin remote by default." },
|
|
395
|
+
"embed": { "type": "boolean", "default": true, "description": "Show the page inside the devtool; false opens a new tab." },
|
|
396
|
+
"provider": { "type": "string", "enum": ["github", "gitlab"], "description": "The forge, guessed from github.* and gitlab.* hosts." },
|
|
397
|
+
"token": { "type": "string", "description": "Access token of the forge. Value blocks are read." },
|
|
398
|
+
"refresh": { "type": "number", "minimum": 0, "default": 5, "description": "Minutes between two reads, 0 to read from the button only." },
|
|
399
|
+
"badge": { "type": "boolean", "default": true, "description": "Count in the sidebar the pull requests waiting for your review, or the issues assigned to you." },
|
|
400
|
+
"agentReview": { "type": "boolean", "default": false, "description": "pullRequests: a Review button starting an agent." },
|
|
401
|
+
"agentAnalyze": { "type": "boolean", "default": false, "description": "issues: a button asking an agent for a plan." },
|
|
402
|
+
"agentFix": { "type": "boolean", "default": false, "description": "issues: a button asking an agent to fix the issue on its own branch." },
|
|
403
|
+
"agentPrompts": {
|
|
404
|
+
"type": "object",
|
|
405
|
+
"additionalProperties": false,
|
|
406
|
+
"properties": { "review": { "type": "string" }, "analyze": { "type": "string" }, "fix": { "type": "string" } }
|
|
407
|
+
},
|
|
408
|
+
"mcp": { "$ref": "#/$defs/mcpRules", "description": "pullRequests and issues: whether agents may read its items (read). Default: adt.mcp.integrations, then the section and the project." }
|
|
409
|
+
},
|
|
410
|
+
"if": { "properties": { "type": { "const": "web" } } },
|
|
411
|
+
"then": { "required": ["url"] }
|
|
412
|
+
},
|
|
413
|
+
"section": {
|
|
414
|
+
"type": "object",
|
|
415
|
+
"additionalProperties": false,
|
|
416
|
+
"properties": {
|
|
417
|
+
"name": { "type": "string", "description": "Default: the slug." },
|
|
418
|
+
"description": { "type": "string" },
|
|
419
|
+
"path": { "type": "string", "description": "Folder of the section, relative to the workspace. Default: sectionPath." },
|
|
420
|
+
"restore": { "$ref": "#/$defs/restore" },
|
|
421
|
+
"notifications": { "type": "boolean" },
|
|
422
|
+
"mcp": { "$ref": "#/$defs/mcpRules" },
|
|
423
|
+
"integrations": { "type": "object", "additionalProperties": { "$ref": "#/$defs/integration" } },
|
|
424
|
+
"icons": { "type": "array", "items": { "type": "string", "pattern": "^integration:[^:]+$" }, "description": "Integrations shown as icons in the header of the section." },
|
|
425
|
+
"lines": { "type": "array", "items": { "type": "string", "pattern": "^integration:[^:]+$" }, "description": "Integrations shown as rows under the header of the section." },
|
|
426
|
+
"sort": { "type": "string", "enum": ["config", "name", "manual"], "description": "Order of the content. Default: adt.sidebar.sort." },
|
|
427
|
+
"order": { "type": "array", "items": { "type": "string" }, "description": "With sort: manual, project slugs and rows (integration:<slug>) shown first." },
|
|
428
|
+
"meta": { "$ref": "#/$defs/meta" }
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"project": {
|
|
432
|
+
"type": "object",
|
|
433
|
+
"additionalProperties": false,
|
|
434
|
+
"properties": {
|
|
435
|
+
"section": { "type": "string", "description": "Slug of the section holding the project." },
|
|
436
|
+
"name": { "type": "string", "description": "Default: the slug." },
|
|
437
|
+
"description": { "type": "string" },
|
|
438
|
+
"path": { "type": "string", "description": "Folder of the project, relative to its section. Default: the slug." },
|
|
439
|
+
"restore": { "$ref": "#/$defs/restore" },
|
|
440
|
+
"notifications": { "type": "boolean" },
|
|
441
|
+
"env": { "$ref": "#/$defs/env", "description": "Environment of the commands, scripts and terminals of the project; a command's own env wins." },
|
|
442
|
+
"shell": { "type": "string" },
|
|
443
|
+
"killSignal": { "$ref": "#/$defs/killSignal" },
|
|
444
|
+
"mcp": { "$ref": "#/$defs/mcpRules" },
|
|
445
|
+
"default": { "$ref": "#/$defs/projectDefault" },
|
|
446
|
+
"commands": {
|
|
447
|
+
"type": "object",
|
|
448
|
+
"propertyNames": { "not": { "const": "default" } },
|
|
449
|
+
"additionalProperties": { "$ref": "#/$defs/command" }
|
|
450
|
+
},
|
|
451
|
+
"scripts": { "type": "array", "items": { "$ref": "#/$defs/scriptFolder" } },
|
|
452
|
+
"services": { "type": "object", "additionalProperties": { "$ref": "#/$defs/service" } },
|
|
453
|
+
"files": {
|
|
454
|
+
"type": "object",
|
|
455
|
+
"propertyNames": { "not": { "const": "default" } },
|
|
456
|
+
"additionalProperties": { "$ref": "#/$defs/files" }
|
|
457
|
+
},
|
|
458
|
+
"integrations": { "type": "object", "additionalProperties": { "$ref": "#/$defs/integration" } },
|
|
459
|
+
"icons": { "type": "array", "items": { "$ref": "#/$defs/shortcut" }, "description": "Shortcuts shown as icons at the right of the project row." },
|
|
460
|
+
"lines": { "type": "array", "items": { "$ref": "#/$defs/shortcut" }, "description": "Shortcuts shown as rows under the project." },
|
|
461
|
+
"meta": { "$ref": "#/$defs/meta" }
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"projectDefault": {
|
|
465
|
+
"type": "object",
|
|
466
|
+
"additionalProperties": false,
|
|
467
|
+
"required": ["action"],
|
|
468
|
+
"properties": {
|
|
469
|
+
"action": { "$ref": "#/$defs/shortcut", "description": "What the project does by default; command:<slug> becomes its main command." },
|
|
470
|
+
"trigger": { "type": "string", "enum": ["icon", "row", "row-icon"], "default": "icon", "description": "From a button on the row, a click on the row, or both." },
|
|
471
|
+
"icon": { "type": "string", "pattern": "^(own|[^:]+:.+)$", "description": "Icon of the button: an Iconify name, or own for the icon of the integration." }
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"command": {
|
|
475
|
+
"type": "object",
|
|
476
|
+
"allOf": [{ "$ref": "#/$defs/automation" }],
|
|
477
|
+
"required": ["args"],
|
|
478
|
+
"unevaluatedProperties": false,
|
|
479
|
+
"properties": {
|
|
480
|
+
"name": { "type": "string", "description": "Default: the slug." },
|
|
481
|
+
"args": { "$ref": "#/$defs/args" },
|
|
482
|
+
"env": { "$ref": "#/$defs/env", "description": "Environment variables, added on top of the env of the project." },
|
|
483
|
+
"shell": { "type": "string" },
|
|
484
|
+
"killSignal": { "$ref": "#/$defs/killSignal" },
|
|
485
|
+
"detached": { "type": "boolean", "default": false, "description": "Run without a terminal; value blocks and unless are not read." },
|
|
486
|
+
"prompt": { "type": "boolean", "default": false, "description": "Run in the background and show its questions in a dialog, instead of opening its terminal." },
|
|
487
|
+
"startWithSection": { "type": "boolean", "default": false, "description": "Start when the section is started from its header." },
|
|
488
|
+
"form": { "type": "string", "enum": ["dialog", "inline"], "default": "dialog", "description": "Where the inputs are asked on the project page." },
|
|
489
|
+
"notifications": { "type": "boolean" },
|
|
490
|
+
"mcp": { "$ref": "#/$defs/mcpRules" },
|
|
491
|
+
"meta": { "$ref": "#/$defs/meta" }
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"scriptSettings": {
|
|
495
|
+
"type": "object",
|
|
496
|
+
"additionalProperties": false,
|
|
497
|
+
"properties": {
|
|
498
|
+
"prompt": { "type": "boolean" },
|
|
499
|
+
"args": { "$ref": "#/$defs/args" },
|
|
500
|
+
"form": { "type": "string", "enum": ["dialog", "inline"] },
|
|
501
|
+
"mcp": { "$ref": "#/$defs/mcpRules" }
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"scriptFolder": {
|
|
505
|
+
"anyOf": [
|
|
506
|
+
{ "type": "string", "description": "Short form of { path }." },
|
|
507
|
+
{
|
|
508
|
+
"type": "object",
|
|
509
|
+
"additionalProperties": false,
|
|
510
|
+
"required": ["path"],
|
|
511
|
+
"properties": {
|
|
512
|
+
"path": { "type": "string", "description": "Folder of executables, relative to the project." },
|
|
513
|
+
"prompt": { "type": "boolean", "default": false },
|
|
514
|
+
"form": { "type": "string", "enum": ["dialog", "inline"], "default": "inline" },
|
|
515
|
+
"only": { "type": "array", "items": { "type": "string" }, "description": "Glob patterns of the file names kept." },
|
|
516
|
+
"mcp": { "$ref": "#/$defs/mcpRules" },
|
|
517
|
+
"scripts": { "type": "object", "additionalProperties": { "$ref": "#/$defs/scriptSettings" }, "description": "Settings by file name." }
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
]
|
|
521
|
+
},
|
|
522
|
+
"target": {
|
|
523
|
+
"anyOf": [
|
|
524
|
+
{ "type": "integer", "minimum": 1, "maximum": 65535 },
|
|
525
|
+
{ "type": "string", "pattern": "^([0-9]{1,5}|.+:[0-9]{1,5}|https?://.+)$" }
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
"service": {
|
|
529
|
+
"type": "object",
|
|
530
|
+
"additionalProperties": false,
|
|
531
|
+
"required": ["target"],
|
|
532
|
+
"anyOf": [{ "required": ["host"] }, { "required": ["hosts"] }],
|
|
533
|
+
"properties": {
|
|
534
|
+
"host": { "anyOf": [{ "type": "string" }, { "type": "array", "items": { "type": "string" } }], "description": "Host name served." },
|
|
535
|
+
"hosts": { "type": "array", "items": { "type": "string" }, "description": "Host names served." },
|
|
536
|
+
"target": {
|
|
537
|
+
"description": "Where requests go: a local port, <host>:<port> or an http(s) URL; a list shares the requests in turn.",
|
|
538
|
+
"anyOf": [{ "$ref": "#/$defs/target" }, { "type": "array", "items": { "$ref": "#/$defs/target" } }]
|
|
539
|
+
},
|
|
540
|
+
"tls": { "type": "boolean", "description": "Tell the target the request came over HTTPS (x-forwarded-proto)." },
|
|
541
|
+
"path": { "type": "string", "description": "Only requests whose path starts with it; the longest path wins." },
|
|
542
|
+
"pathNot": { "type": "string", "description": "Requests whose path starts with it are left out." },
|
|
543
|
+
"prefix": { "type": "string", "description": "Removed from the path before forwarding." },
|
|
544
|
+
"preserveHost": { "type": "boolean", "description": "Keep the original Host header." },
|
|
545
|
+
"access": { "$ref": "#/$defs/access" }
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
"files": {
|
|
549
|
+
"type": "object",
|
|
550
|
+
"additionalProperties": false,
|
|
551
|
+
"required": ["path"],
|
|
552
|
+
"properties": {
|
|
553
|
+
"name": { "type": "string" },
|
|
554
|
+
"path": { "type": "string", "description": "Folder, relative to the project. It may not exist yet." },
|
|
555
|
+
"type": { "type": "string", "enum": ["files", "agentSkills"], "default": "files", "description": "agentSkills edits one agent skill per folder." },
|
|
556
|
+
"showHidden": { "type": "boolean", "default": false, "description": "Show the files and folders whose name starts with a dot (.env, .github...); .git is never shown." },
|
|
557
|
+
"mcpSkills": {
|
|
558
|
+
"description": "agentSkills: serve its skills over MCP (Skills extension), all of them with true or the skill folders matching globs.",
|
|
559
|
+
"oneOf": [
|
|
560
|
+
{ "type": "boolean" },
|
|
561
|
+
{ "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 }
|
|
562
|
+
],
|
|
563
|
+
"default": false,
|
|
564
|
+
"examples": [true, ["review", "deploy-*"]]
|
|
565
|
+
},
|
|
566
|
+
"restore": { "type": "string", "description": "Slug of a command of the project restoring the folder." },
|
|
567
|
+
"commands": { "type": "array", "items": { "type": "string" }, "description": "Slugs of commands of the project shown with the files." },
|
|
568
|
+
"mcp": { "$ref": "#/$defs/mcpRules" }
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"pull": {
|
|
572
|
+
"type": "object",
|
|
573
|
+
"additionalProperties": false,
|
|
574
|
+
"description": "Pull this item on its own while the server runs.",
|
|
575
|
+
"properties": {
|
|
576
|
+
"cron": { "type": "string", "description": "Cron expression.", "examples": ["0 8 * * 1-5"] },
|
|
577
|
+
"startup": { "type": "boolean", "description": "Pull when the server starts." }
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"encryption": {
|
|
581
|
+
"description": "Encrypts the files before they reach the backend: a key (32 bytes in base64), a password (stretched with scrypt), or a password asked when needed. key and password read value blocks.",
|
|
582
|
+
"oneOf": [
|
|
583
|
+
{ "type": "object", "additionalProperties": false, "required": ["key"], "properties": { "key": { "type": "string", "description": "32 bytes in base64, such as the output of openssl rand -base64 32." } } },
|
|
584
|
+
{ "type": "object", "additionalProperties": false, "required": ["password"], "properties": { "password": { "type": "string" } } },
|
|
585
|
+
{ "type": "object", "additionalProperties": false, "required": ["prompt"], "properties": { "prompt": { "const": true, "description": "Ask the password when a file is unlocked: in the terminal for the CLI, in a dialog of the interface for the server." } } }
|
|
586
|
+
]
|
|
587
|
+
},
|
|
588
|
+
"backendName": { "type": "string", "description": "Name of a backend of environment.backends; the default backend when omitted." },
|
|
589
|
+
"backendShared": {
|
|
590
|
+
"type": "object",
|
|
591
|
+
"properties": {
|
|
592
|
+
"default": { "type": "boolean", "default": false, "description": "Items naming no backend, and the shared configuration, use this one; the first backend when none is marked." },
|
|
593
|
+
"encryption": { "$ref": "#/$defs/encryption" }
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"backend": {
|
|
597
|
+
"description": "Where files of the environment are stored.",
|
|
598
|
+
"oneOf": [
|
|
599
|
+
{
|
|
600
|
+
"type": "object",
|
|
601
|
+
"allOf": [{ "$ref": "#/$defs/backendShared" }],
|
|
602
|
+
"unevaluatedProperties": false,
|
|
603
|
+
"required": ["type", "url"],
|
|
604
|
+
"properties": {
|
|
605
|
+
"type": { "const": "cdn", "description": "A CDN serving the devtool files API, reached with the access token of the auth section." },
|
|
606
|
+
"url": { "type": "string", "pattern": "^https?://", "description": "Base URL of the CDN; files live under <url>/devtool/." }
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"type": "object",
|
|
611
|
+
"allOf": [{ "$ref": "#/$defs/backendShared" }],
|
|
612
|
+
"unevaluatedProperties": false,
|
|
613
|
+
"required": ["type", "bucket"],
|
|
614
|
+
"properties": {
|
|
615
|
+
"type": { "const": "s3", "description": "An S3 bucket, on AWS or any S3 compatible service." },
|
|
616
|
+
"bucket": { "type": "string" },
|
|
617
|
+
"prefix": { "type": "string", "description": "Prefix of the keys of the files." },
|
|
618
|
+
"endpoint": { "type": "string", "description": "Address of an S3 compatible service; AWS when omitted." },
|
|
619
|
+
"region": { "type": "string", "default": "us-east-1" },
|
|
620
|
+
"accessKeyId": { "type": "string", "description": "Value blocks are read; the default AWS credentials when omitted." },
|
|
621
|
+
"secretAccessKey": { "type": "string", "description": "Value blocks are read." },
|
|
622
|
+
"pathStyle": { "type": "boolean", "default": false, "description": "Address the bucket in the path, as MinIO and others expect." }
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"type": "object",
|
|
627
|
+
"allOf": [{ "$ref": "#/$defs/backendShared" }],
|
|
628
|
+
"unevaluatedProperties": false,
|
|
629
|
+
"required": ["type", "host", "username"],
|
|
630
|
+
"properties": {
|
|
631
|
+
"type": { "const": "sftp", "description": "An SFTP server." },
|
|
632
|
+
"host": { "type": "string" },
|
|
633
|
+
"port": { "type": "integer", "minimum": 1, "maximum": 65535, "default": 22 },
|
|
634
|
+
"username": { "type": "string" },
|
|
635
|
+
"path": { "type": "string", "default": ".", "description": "Folder of the files on the server." },
|
|
636
|
+
"privateKey": { "type": "string", "description": "Private key file, ~/ allowed; else the password, else the SSH agent." },
|
|
637
|
+
"passphrase": { "type": "string", "description": "Passphrase of the private key; value blocks are read." },
|
|
638
|
+
"password": { "type": "string", "description": "Value blocks are read." }
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"type": "object",
|
|
643
|
+
"allOf": [{ "$ref": "#/$defs/backendShared" }],
|
|
644
|
+
"unevaluatedProperties": false,
|
|
645
|
+
"required": ["type", "url"],
|
|
646
|
+
"properties": {
|
|
647
|
+
"type": { "const": "git", "description": "A git repository, each push a commit, read and written with the git of the machine." },
|
|
648
|
+
"url": { "type": "string", "description": "Address of the repository, as git clone takes it." },
|
|
649
|
+
"branch": { "type": "string", "default": "main" },
|
|
650
|
+
"path": { "type": "string", "description": "Folder of the files in the repository; its root when omitted." }
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"type": "object",
|
|
655
|
+
"allOf": [{ "$ref": "#/$defs/backendShared" }],
|
|
656
|
+
"unevaluatedProperties": false,
|
|
657
|
+
"required": ["type", "list", "download", "upload", "remove"],
|
|
658
|
+
"properties": {
|
|
659
|
+
"type": { "const": "scripts", "description": "Your own commands, for any storage the other backends do not reach." },
|
|
660
|
+
"cwd": { "type": "string", "default": ".", "description": "Folder the commands run in, relative to the configuration folder." },
|
|
661
|
+
"list": { "$ref": "#/$defs/plainArgs", "description": "Prints { \"files\": [ { \"path\", \"size\", \"updatedAt\", \"version\" } ] }." },
|
|
662
|
+
"download": { "$ref": "#/$defs/plainArgs", "description": "Writes %{ADT:PATH} to %{ADT:FILE}; exits 2 when the file does not exist." },
|
|
663
|
+
"upload": { "$ref": "#/$defs/plainArgs", "description": "Stores %{ADT:FILE} as %{ADT:PATH}." },
|
|
664
|
+
"remove": { "$ref": "#/$defs/plainArgs", "description": "Deletes %{ADT:PATH}." },
|
|
665
|
+
"env": { "$ref": "#/$defs/stringMap", "description": "Environment variables of the commands; value blocks are read." }
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
]
|
|
669
|
+
},
|
|
670
|
+
"encryptionRule": {
|
|
671
|
+
"description": "Encrypts the items whose path matches one of the patterns; the first matching rule wins, the encryption of an item overrides the rules.",
|
|
672
|
+
"type": "object",
|
|
673
|
+
"required": ["paths"],
|
|
674
|
+
"properties": {
|
|
675
|
+
"paths": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Glob patterns of item paths, such as secrets/** or **/*.env.", "examples": [["secrets/**", "**/*.env"]] },
|
|
676
|
+
"key": { "type": "string" },
|
|
677
|
+
"password": { "type": "string" },
|
|
678
|
+
"prompt": { "const": true }
|
|
679
|
+
},
|
|
680
|
+
"oneOf": [{ "required": ["key"] }, { "required": ["password"] }, { "required": ["prompt"] }],
|
|
681
|
+
"additionalProperties": false
|
|
682
|
+
},
|
|
683
|
+
"environment": {
|
|
684
|
+
"type": "object",
|
|
685
|
+
"description": "The development environment shared through its backends.",
|
|
686
|
+
"additionalProperties": false,
|
|
687
|
+
"properties": {
|
|
688
|
+
"backends": {
|
|
689
|
+
"type": "object",
|
|
690
|
+
"description": "Where the files are stored, by name; items choose theirs with backend.",
|
|
691
|
+
"additionalProperties": { "$ref": "#/$defs/backend" }
|
|
692
|
+
},
|
|
693
|
+
"encryption": {
|
|
694
|
+
"type": "array",
|
|
695
|
+
"description": "Encryption of the items by path pattern.",
|
|
696
|
+
"items": { "$ref": "#/$defs/encryptionRule" }
|
|
697
|
+
},
|
|
698
|
+
"folder": { "type": "string", "description": "Local mirror of the files of the backends. Default: the parent of the configuration folder." },
|
|
699
|
+
"mcp": { "$ref": "#/$defs/mcpRules" },
|
|
700
|
+
"files": {
|
|
701
|
+
"type": "array",
|
|
702
|
+
"items": {
|
|
703
|
+
"anyOf": [
|
|
704
|
+
{ "type": "string", "description": "Short form of { path }." },
|
|
705
|
+
{
|
|
706
|
+
"type": "object",
|
|
707
|
+
"additionalProperties": false,
|
|
708
|
+
"properties": {
|
|
709
|
+
"path": { "type": "string" },
|
|
710
|
+
"display": { "type": "boolean", "default": true, "description": "List it in the Configs tab." },
|
|
711
|
+
"local": { "type": "boolean", "default": true, "description": "Offer a personal .local.yml override." },
|
|
712
|
+
"sync": { "type": "boolean", "default": true, "description": "Synchronize it with its backend." },
|
|
713
|
+
"backend": { "$ref": "#/$defs/backendName" },
|
|
714
|
+
"encryption": { "$ref": "#/$defs/encryption" },
|
|
715
|
+
"ignore": {
|
|
716
|
+
"type": "array",
|
|
717
|
+
"items": { "type": "string", "minLength": 1 },
|
|
718
|
+
"description": "Keys of a YAML, JSON, TOML, XML or .env file left out of its synchronization, each copy keeping its own values: dotted paths where * stands for one key or list index and ** for any depth.",
|
|
719
|
+
"examples": [["connections.*.lastUsedAt"]]
|
|
720
|
+
},
|
|
721
|
+
"pull": { "$ref": "#/$defs/pull" },
|
|
722
|
+
"mcp": { "$ref": "#/$defs/mcpRules" }
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
]
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"databases": {
|
|
729
|
+
"type": "array",
|
|
730
|
+
"items": {
|
|
731
|
+
"type": "object",
|
|
732
|
+
"additionalProperties": false,
|
|
733
|
+
"required": ["path", "engine", "container"],
|
|
734
|
+
"properties": {
|
|
735
|
+
"path": { "type": "string", "description": "Archive of the database in the environment folder." },
|
|
736
|
+
"engine": { "type": "string", "enum": ["postgres", "mariadb", "mongodb"] },
|
|
737
|
+
"container": { "type": "string", "description": "Docker container running the database." },
|
|
738
|
+
"backend": { "$ref": "#/$defs/backendName" },
|
|
739
|
+
"encryption": { "$ref": "#/$defs/encryption" },
|
|
740
|
+
"pull": { "$ref": "#/$defs/pull" },
|
|
741
|
+
"mcp": { "$ref": "#/$defs/mcpRules" }
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
"buckets": {
|
|
746
|
+
"type": "array",
|
|
747
|
+
"items": {
|
|
748
|
+
"type": "object",
|
|
749
|
+
"additionalProperties": false,
|
|
750
|
+
"required": ["path", "bucket"],
|
|
751
|
+
"properties": {
|
|
752
|
+
"path": { "type": "string", "description": "Snapshot of the bucket in the environment folder." },
|
|
753
|
+
"bucket": { "type": "string" },
|
|
754
|
+
"backend": { "$ref": "#/$defs/backendName" },
|
|
755
|
+
"encryption": { "$ref": "#/$defs/encryption" },
|
|
756
|
+
"pull": { "$ref": "#/$defs/pull" },
|
|
757
|
+
"mcp": { "$ref": "#/$defs/mcpRules" }
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"redis": {
|
|
762
|
+
"type": "array",
|
|
763
|
+
"items": {
|
|
764
|
+
"type": "object",
|
|
765
|
+
"additionalProperties": false,
|
|
766
|
+
"required": ["path", "url"],
|
|
767
|
+
"properties": {
|
|
768
|
+
"path": { "type": "string", "description": "Dump of the Redis database in the environment folder." },
|
|
769
|
+
"url": { "type": "string", "pattern": "^rediss?://", "examples": ["redis://localhost:6379/0"] },
|
|
770
|
+
"backend": { "$ref": "#/$defs/backendName" },
|
|
771
|
+
"encryption": { "$ref": "#/$defs/encryption" },
|
|
772
|
+
"pull": { "$ref": "#/$defs/pull" },
|
|
773
|
+
"mcp": { "$ref": "#/$defs/mcpRules" }
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
"s3": {
|
|
778
|
+
"type": "object",
|
|
779
|
+
"description": "S3 server holding the buckets.",
|
|
780
|
+
"additionalProperties": false,
|
|
781
|
+
"required": ["endpoint", "accessKeyId", "secretAccessKey"],
|
|
782
|
+
"properties": {
|
|
783
|
+
"endpoint": { "type": "string" },
|
|
784
|
+
"accessKeyId": { "type": "string" },
|
|
785
|
+
"secretAccessKey": { "type": "string" },
|
|
786
|
+
"region": { "type": "string", "default": "us-east-1" }
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|