@agentproto/corpus-cli 0.11.0 → 0.11.2
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/dist/specs/resources/aip-10/draft/KNOWLEDGE.schema.json +2 -2
- package/dist/specs/resources/aip-18/draft/COLLECTION.schema.json +9 -2
- package/dist/specs/resources/aip-19/draft/SECRETS.schema.json +8 -2
- package/dist/specs/resources/aip-20/draft/WORK.schema.json +232 -206
- package/dist/specs/resources/aip-34/draft/EXPORT.schema.json +29 -0
- package/dist/specs/resources/aip-34/draft/LOCK.schema.json +76 -0
- package/dist/specs/resources/aip-34/draft/PRESENCE.schema.json +237 -0
- package/dist/specs/resources/aip-34/draft/TYPES.schema.json +78 -0
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +252 -95
- package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +8 -1
- package/dist/specs/resources/aip-42/draft/AGENT.schema.json +5 -0
- package/dist/specs/resources/aip-45/draft/AGENT-CLI.schema.json +5 -0
- package/dist/specs/resources/aip-49/draft/ASSET.schema.json +10 -0
- package/dist/specs/resources/aip-53/draft/APP.schema.json +841 -65
- package/dist/specs/resources/aip-58/draft/event.schema.json +3 -2
- package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +360 -67
- package/dist/specs/resources/aip-62/draft/REVIEW.schema.json +198 -52
- package/dist/specs/resources/aip-63/draft/BROWSER.schema.json +5 -1
- package/dist/specs/resources/aip-63/draft/RECORDING.schema.json +292 -0
- package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +2 -2
- package/dist/specs/resources/pending/memory/draft/MEMORY.schema.json +321 -0
- package/dist/specs/resources/pending/services/SERVICES.schema.json +55 -0
- package/package.json +7 -7
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
"title": "APP.md frontmatter — app/v1 (agent app bundle + UI surface)",
|
|
5
5
|
"description": "Validates the YAML frontmatter portion of an AIP-53 APP.md manifest — the on-disk form of an AppDefinition. Codifies shipped behaviour: `agents` may be empty for a UI-only app when `ui` is present (packages/app-kit/src/define-app.ts:49-52), and `data` / `category` are carried verbatim (packages/app-kit/src/types.ts).",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": [
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"version"
|
|
10
|
+
],
|
|
8
11
|
"additionalProperties": false,
|
|
9
12
|
"properties": {
|
|
10
13
|
"schema": {
|
|
@@ -34,11 +37,21 @@
|
|
|
34
37
|
"type": "array",
|
|
35
38
|
"items": {
|
|
36
39
|
"type": "object",
|
|
37
|
-
"required": [
|
|
40
|
+
"required": [
|
|
41
|
+
"id",
|
|
42
|
+
"path"
|
|
43
|
+
],
|
|
38
44
|
"additionalProperties": false,
|
|
39
45
|
"properties": {
|
|
40
|
-
"id": {
|
|
41
|
-
|
|
46
|
+
"id": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"minLength": 1
|
|
49
|
+
},
|
|
50
|
+
"path": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 1,
|
|
53
|
+
"description": "Path to the AGENT.md, relative to the app dir."
|
|
54
|
+
}
|
|
42
55
|
}
|
|
43
56
|
},
|
|
44
57
|
"description": "`{ id, path }` refs, one per bundled agent. MAY be empty ONLY when `ui` is present (UI-only app) — see the allOf guard below."
|
|
@@ -47,11 +60,21 @@
|
|
|
47
60
|
"type": "array",
|
|
48
61
|
"items": {
|
|
49
62
|
"type": "object",
|
|
50
|
-
"required": [
|
|
63
|
+
"required": [
|
|
64
|
+
"id",
|
|
65
|
+
"path"
|
|
66
|
+
],
|
|
51
67
|
"additionalProperties": false,
|
|
52
68
|
"properties": {
|
|
53
|
-
"id": {
|
|
54
|
-
|
|
69
|
+
"id": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1
|
|
72
|
+
},
|
|
73
|
+
"path": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"minLength": 1,
|
|
76
|
+
"description": "Path to the WORKFLOW.md, relative to the app dir."
|
|
77
|
+
}
|
|
55
78
|
}
|
|
56
79
|
},
|
|
57
80
|
"description": "`{ id, path }` refs, one per bundled workflow. Every bundled workflow MUST be referenced by at least one agent's workflows[] (attachment invariant, both directions)."
|
|
@@ -66,19 +89,34 @@
|
|
|
66
89
|
"anyOf": [
|
|
67
90
|
{
|
|
68
91
|
"type": "array",
|
|
69
|
-
"items": {
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"minLength": 1
|
|
95
|
+
},
|
|
70
96
|
"uniqueItems": true
|
|
71
97
|
},
|
|
72
98
|
{
|
|
73
99
|
"type": "object",
|
|
74
100
|
"additionalProperties": false,
|
|
75
101
|
"properties": {
|
|
76
|
-
"browser": {
|
|
77
|
-
|
|
78
|
-
|
|
102
|
+
"browser": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"description": "Needs the user's real browser."
|
|
105
|
+
},
|
|
106
|
+
"fs": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"description": "Needs the user's local filesystem beyond app data."
|
|
109
|
+
},
|
|
110
|
+
"gpu": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"description": "Needs a GPU."
|
|
113
|
+
},
|
|
79
114
|
"secrets": {
|
|
80
115
|
"type": "array",
|
|
81
|
-
"items": {
|
|
116
|
+
"items": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"minLength": 1
|
|
119
|
+
},
|
|
82
120
|
"description": "Env/secret names the app needs."
|
|
83
121
|
},
|
|
84
122
|
"apps": {
|
|
@@ -86,13 +124,22 @@
|
|
|
86
124
|
"description": "Other app ids this app depends on — bare ids or { id, version?, workflows? } objects.",
|
|
87
125
|
"items": {
|
|
88
126
|
"anyOf": [
|
|
89
|
-
{
|
|
127
|
+
{
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1
|
|
130
|
+
},
|
|
90
131
|
{
|
|
91
132
|
"type": "object",
|
|
92
|
-
"required": [
|
|
133
|
+
"required": [
|
|
134
|
+
"id"
|
|
135
|
+
],
|
|
93
136
|
"additionalProperties": false,
|
|
94
137
|
"properties": {
|
|
95
|
-
"id": {
|
|
138
|
+
"id": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"minLength": 1,
|
|
141
|
+
"description": "The depended-on app id."
|
|
142
|
+
},
|
|
96
143
|
"version": {
|
|
97
144
|
"type": "string",
|
|
98
145
|
"minLength": 1,
|
|
@@ -100,7 +147,10 @@
|
|
|
100
147
|
},
|
|
101
148
|
"workflows": {
|
|
102
149
|
"type": "array",
|
|
103
|
-
"items": {
|
|
150
|
+
"items": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"minLength": 1
|
|
153
|
+
},
|
|
104
154
|
"description": "Provider workflows (ids from its exposes.workflows) this consumer may call via app_call. Omitted/empty = dependency only, no call permission."
|
|
105
155
|
}
|
|
106
156
|
}
|
|
@@ -112,26 +162,11 @@
|
|
|
112
162
|
}
|
|
113
163
|
]
|
|
114
164
|
},
|
|
115
|
-
"exposes": {
|
|
116
|
-
"type": "object",
|
|
117
|
-
"additionalProperties": false,
|
|
118
|
-
"properties": {
|
|
119
|
-
"agents": {
|
|
120
|
-
"type": "array",
|
|
121
|
-
"items": { "type": "string", "minLength": 1 },
|
|
122
|
-
"description": "Agent ids this app exposes. Every id must name one of the app's own agents."
|
|
123
|
-
},
|
|
124
|
-
"workflows": {
|
|
125
|
-
"type": "array",
|
|
126
|
-
"items": { "type": "string", "minLength": 1 },
|
|
127
|
-
"description": "Workflow ids this app exposes — the callable surface other apps' requires.apps[].workflows entries may name (consumed via the app_call tool). Every id must name one of the app's own workflows."
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"description": "A2A-visible agents/workflows. Ids must exist in the app's agents / workflows."
|
|
131
|
-
},
|
|
132
165
|
"ui": {
|
|
133
166
|
"type": "object",
|
|
134
|
-
"required": [
|
|
167
|
+
"required": [
|
|
168
|
+
"path"
|
|
169
|
+
],
|
|
135
170
|
"additionalProperties": false,
|
|
136
171
|
"properties": {
|
|
137
172
|
"path": {
|
|
@@ -139,11 +174,18 @@
|
|
|
139
174
|
"const": ".agentproto/ui/index.html",
|
|
140
175
|
"description": "The UI surface entry point."
|
|
141
176
|
},
|
|
142
|
-
"title": {
|
|
143
|
-
|
|
177
|
+
"title": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"description": {
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
144
183
|
"tools": {
|
|
145
184
|
"type": "array",
|
|
146
|
-
"items": {
|
|
185
|
+
"items": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"minLength": 1
|
|
188
|
+
},
|
|
147
189
|
"description": "The ui_tool_call / app_tool_call allowlist — every tool a UI-originated call may reach. Enforced server-side on every call."
|
|
148
190
|
},
|
|
149
191
|
"port": {
|
|
@@ -156,49 +198,99 @@
|
|
|
156
198
|
"type": "object",
|
|
157
199
|
"additionalProperties": false,
|
|
158
200
|
"properties": {
|
|
159
|
-
"connectDomains": {
|
|
160
|
-
|
|
201
|
+
"connectDomains": {
|
|
202
|
+
"type": "array",
|
|
203
|
+
"items": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"resourceDomains": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"items": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
161
213
|
}
|
|
214
|
+
},
|
|
215
|
+
"toolScope": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"additionalProperties": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"pattern": "^\\$link\\.[A-Za-z0-9_]+$"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"description": "Argument-level refinement of `tools`, keyed by tool id (which MUST also be in `tools`): argName -> \"$link.<claim>\" reference into a scoped app-link token's claims. Enforced only for calls made under a valid link/session token (AIP-53 link-token scoping); unaffected otherwise."
|
|
162
225
|
}
|
|
163
226
|
},
|
|
164
227
|
"description": "The UI surface. `html` (the full document) is required on the in-memory AppDefinition at defineApp time and is NOT carried in APP.md frontmatter — it is emitted to `ui.path`. Its non-emptiness is enforced by defineApp (conformance rule 5)."
|
|
165
228
|
},
|
|
166
229
|
"artifact": {
|
|
167
230
|
"type": "object",
|
|
168
|
-
"required": [
|
|
231
|
+
"required": [
|
|
232
|
+
"path"
|
|
233
|
+
],
|
|
169
234
|
"additionalProperties": false,
|
|
170
235
|
"properties": {
|
|
171
|
-
"path": {
|
|
172
|
-
|
|
173
|
-
|
|
236
|
+
"path": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"minLength": 1,
|
|
239
|
+
"description": "Emitted bundle path .agentproto/artifact/index.html."
|
|
240
|
+
},
|
|
241
|
+
"title": {
|
|
242
|
+
"type": "string"
|
|
243
|
+
},
|
|
244
|
+
"description": {
|
|
245
|
+
"type": "string"
|
|
246
|
+
}
|
|
174
247
|
}
|
|
175
248
|
},
|
|
176
249
|
"skill": {
|
|
177
250
|
"type": "object",
|
|
178
|
-
"required": [
|
|
251
|
+
"required": [
|
|
252
|
+
"path"
|
|
253
|
+
],
|
|
179
254
|
"additionalProperties": false,
|
|
180
255
|
"properties": {
|
|
181
|
-
"path": {
|
|
182
|
-
|
|
183
|
-
|
|
256
|
+
"path": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"minLength": 1,
|
|
259
|
+
"description": "Emitted bundle path .agentproto/skill (must contain a SKILL.md)."
|
|
260
|
+
},
|
|
261
|
+
"title": {
|
|
262
|
+
"type": "string"
|
|
263
|
+
},
|
|
264
|
+
"description": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
}
|
|
184
267
|
}
|
|
185
268
|
},
|
|
186
269
|
"artifacts": {
|
|
187
270
|
"type": "array",
|
|
188
271
|
"items": {
|
|
189
272
|
"type": "object",
|
|
190
|
-
"required": [
|
|
273
|
+
"required": [
|
|
274
|
+
"type"
|
|
275
|
+
],
|
|
191
276
|
"additionalProperties": false,
|
|
192
277
|
"properties": {
|
|
193
|
-
"type": {
|
|
194
|
-
|
|
278
|
+
"type": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"minLength": 1
|
|
281
|
+
},
|
|
282
|
+
"description": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
}
|
|
195
285
|
}
|
|
196
286
|
},
|
|
197
287
|
"description": "Artifact types this app's agents may produce, declared for discovery."
|
|
198
288
|
},
|
|
199
289
|
"dev": {
|
|
200
290
|
"type": "object",
|
|
201
|
-
"required": [
|
|
291
|
+
"required": [
|
|
292
|
+
"launch"
|
|
293
|
+
],
|
|
202
294
|
"additionalProperties": false,
|
|
203
295
|
"properties": {
|
|
204
296
|
"launch": {
|
|
@@ -206,20 +298,100 @@
|
|
|
206
298
|
"minItems": 1,
|
|
207
299
|
"items": {
|
|
208
300
|
"type": "object",
|
|
209
|
-
"required": [
|
|
301
|
+
"required": [
|
|
302
|
+
"name",
|
|
303
|
+
"runtimeExecutable"
|
|
304
|
+
],
|
|
210
305
|
"additionalProperties": false,
|
|
211
306
|
"properties": {
|
|
212
|
-
"name": {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
"
|
|
307
|
+
"name": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"minLength": 1
|
|
310
|
+
},
|
|
311
|
+
"runtimeExecutable": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"minLength": 1
|
|
314
|
+
},
|
|
315
|
+
"runtimeArgs": {
|
|
316
|
+
"type": "array",
|
|
317
|
+
"items": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"port": {
|
|
322
|
+
"type": "integer",
|
|
323
|
+
"minimum": 1,
|
|
324
|
+
"maximum": 65535
|
|
325
|
+
},
|
|
326
|
+
"url": {
|
|
327
|
+
"type": "string"
|
|
328
|
+
}
|
|
217
329
|
}
|
|
218
|
-
}
|
|
330
|
+
},
|
|
331
|
+
"description": "Dev-only launch recipes. Carried verbatim; NEVER executed by app-kit — `defineApp` validates the shape only (packages/app-kit/src/define-app.ts:62-64) and no loader/emit path runs it. The production hosting surface is `services` (below), not this."
|
|
219
332
|
}
|
|
220
333
|
},
|
|
221
334
|
"description": "Dev-launch configuration, carried verbatim in frontmatter."
|
|
222
335
|
},
|
|
336
|
+
"services": {
|
|
337
|
+
"type": "array",
|
|
338
|
+
"minItems": 1,
|
|
339
|
+
"uniqueItems": true,
|
|
340
|
+
"items": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"required": [
|
|
343
|
+
"name"
|
|
344
|
+
],
|
|
345
|
+
"additionalProperties": false,
|
|
346
|
+
"oneOf": [
|
|
347
|
+
{ "required": ["entry"], "not": { "anyOf": [{ "required": ["command"] }, { "required": ["args"] }] } },
|
|
348
|
+
{ "required": ["command"], "not": { "required": ["entry"] } }
|
|
349
|
+
],
|
|
350
|
+
"properties": {
|
|
351
|
+
"name": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"pattern": "^[a-z][a-z0-9-]*$",
|
|
354
|
+
"description": "Service identifier — kebab-case slug, unique across the array."
|
|
355
|
+
},
|
|
356
|
+
"entry": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"minLength": 1,
|
|
359
|
+
"description": "Legacy shell command line that starts the service (e.g. `pnpm --filter x start`, `node dist/server.js`). Carried verbatim; the loader/`defineApp` never executes it. Exactly one of entry/command."
|
|
360
|
+
},
|
|
361
|
+
"command": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"minLength": 1,
|
|
364
|
+
"description": "Structured (preferred) command form: the binary/script to run, never shell-interpreted — the runner passes it as argv[0]. Exactly one of entry/command."
|
|
365
|
+
},
|
|
366
|
+
"args": {
|
|
367
|
+
"type": "array",
|
|
368
|
+
"minItems": 1,
|
|
369
|
+
"items": { "type": "string" },
|
|
370
|
+
"description": "Structured command form: argv after `command`, passed verbatim. Requires `command`."
|
|
371
|
+
},
|
|
372
|
+
"cwd": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"minLength": 1,
|
|
375
|
+
"description": "Working directory the runner starts the service in; relative paths resolve against the app's installed dir."
|
|
376
|
+
},
|
|
377
|
+
"port": {
|
|
378
|
+
"type": "integer",
|
|
379
|
+
"minimum": 1,
|
|
380
|
+
"maximum": 65535,
|
|
381
|
+
"description": "Optional TCP port the service listens on. Omitted = a service that does not listen. One process per entry, one port."
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"description": "Production hosting surface: one supervised service process per entry — NO dependency graph, NO scaling, NO scheduler. The host (NOT app-kit) spawns exactly one keep-alive service-owner session per entry at install time (later work item) that runs `entry`; `dev.launch` is NOT executed by the loader and is not this surface. Names MUST be unique. See the pending SERVICES schema draft (pending upstream spec PR)."
|
|
386
|
+
},
|
|
387
|
+
"setup": {
|
|
388
|
+
"type": "array",
|
|
389
|
+
"minItems": 1,
|
|
390
|
+
"items": {
|
|
391
|
+
"$ref": "#/$defs/setupStep"
|
|
392
|
+
},
|
|
393
|
+
"description": "OPTIONAL ordered, idempotent post-install configuration pipeline (modelled on the AIP-29 `setup` block). Step ids MUST be unique; `when.step` MUST reference an earlier id. Root `additionalProperties` stays false: this property is added explicitly and only `x-*` vendor steps are open. See AIP-53 § Setup steps."
|
|
394
|
+
},
|
|
223
395
|
"data": {
|
|
224
396
|
"type": "object",
|
|
225
397
|
"additionalProperties": false,
|
|
@@ -234,7 +406,10 @@
|
|
|
234
406
|
},
|
|
235
407
|
"externalReadRoots": {
|
|
236
408
|
"type": "array",
|
|
237
|
-
"items": {
|
|
409
|
+
"items": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"minLength": 1
|
|
412
|
+
},
|
|
238
413
|
"uniqueItems": true,
|
|
239
414
|
"description": "Host directories the app is granted READ-ONLY access to outside its sandboxed dir (absolute or ~-relative). Carried verbatim in frontmatter by emit/load; validated to exist at install time. Read-only everywhere — there is no write/delete path for these roots."
|
|
240
415
|
},
|
|
@@ -242,6 +417,575 @@
|
|
|
242
417
|
"type": "string",
|
|
243
418
|
"minLength": 1,
|
|
244
419
|
"description": "Coarse grouping surfaced in host catalogs/trees (e.g. `book`). Freeform — not validated against a fixed enum."
|
|
420
|
+
},
|
|
421
|
+
"exposes": {
|
|
422
|
+
"type": "object",
|
|
423
|
+
"additionalProperties": false,
|
|
424
|
+
"properties": {
|
|
425
|
+
"agents": {
|
|
426
|
+
"type": "array",
|
|
427
|
+
"items": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"minLength": 1
|
|
430
|
+
},
|
|
431
|
+
"description": "Agent ids this app exposes. Every id must name one of the app's own agents."
|
|
432
|
+
},
|
|
433
|
+
"workflows": {
|
|
434
|
+
"type": "array",
|
|
435
|
+
"items": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"minLength": 1
|
|
438
|
+
},
|
|
439
|
+
"description": "Workflow ids this app exposes — the callable surface other apps' requires.apps[].workflows entries may name (consumed via the app_call tool). Every id must name one of the app's own workflows."
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"description": "A2A-visible agents/workflows. Ids must exist in the app's agents / workflows."
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"$defs": {
|
|
446
|
+
"stepId": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"pattern": "^[a-z][a-z0-9-]*$",
|
|
449
|
+
"description": "Stable step identifier, kebab-case, unique across `setup[]`. Appears in the ledger, audit logs and `--only`."
|
|
450
|
+
},
|
|
451
|
+
"skipIf": {
|
|
452
|
+
"type": "object",
|
|
453
|
+
"required": [
|
|
454
|
+
"cmd"
|
|
455
|
+
],
|
|
456
|
+
"additionalProperties": false,
|
|
457
|
+
"properties": {
|
|
458
|
+
"cmd": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"minLength": 1
|
|
461
|
+
},
|
|
462
|
+
"exit_code": {
|
|
463
|
+
"type": "integer",
|
|
464
|
+
"default": 0
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"description": "AIP-29 `skip_if`: when `cmd` exits with `exit_code` (default 0) the step is skipped and ledgered as `skippedViaSkipIf`."
|
|
468
|
+
},
|
|
469
|
+
"when": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"required": [
|
|
472
|
+
"step"
|
|
473
|
+
],
|
|
474
|
+
"additionalProperties": false,
|
|
475
|
+
"properties": {
|
|
476
|
+
"step": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"description": "Id of an EARLIER step."
|
|
479
|
+
},
|
|
480
|
+
"equals": {
|
|
481
|
+
"description": "Run only when that step's recorded answer equals this value."
|
|
482
|
+
},
|
|
483
|
+
"done": {
|
|
484
|
+
"type": "boolean",
|
|
485
|
+
"description": "Run only when that step is (true) / is not (false) complete."
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"oneOf": [
|
|
489
|
+
{
|
|
490
|
+
"required": [
|
|
491
|
+
"equals"
|
|
492
|
+
]
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"required": [
|
|
496
|
+
"done"
|
|
497
|
+
]
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
"description": "Run the step only if the condition on an earlier step holds. Exactly one of `equals` / `done`."
|
|
501
|
+
},
|
|
502
|
+
"persist": {
|
|
503
|
+
"type": "object",
|
|
504
|
+
"additionalProperties": false,
|
|
505
|
+
"minProperties": 1,
|
|
506
|
+
"maxProperties": 1,
|
|
507
|
+
"properties": {
|
|
508
|
+
"env": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"pattern": "^[A-Z_][A-Z0-9_]*$"
|
|
511
|
+
},
|
|
512
|
+
"secret_slug": {
|
|
513
|
+
"type": "string",
|
|
514
|
+
"minLength": 1
|
|
515
|
+
},
|
|
516
|
+
"cmd": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"minLength": 1,
|
|
519
|
+
"description": "Run with `${value}` substituted (shell-escaped)."
|
|
520
|
+
},
|
|
521
|
+
"answer": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"minLength": 1,
|
|
524
|
+
"description": "Dotted key under which the NON-SECRET value is recorded in the setup record's `answers`. MUST NOT be used for `type: secret`."
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"description": "Where the captured value lands. Exactly one slot."
|
|
528
|
+
},
|
|
529
|
+
"option": {
|
|
530
|
+
"type": "object",
|
|
531
|
+
"required": [
|
|
532
|
+
"value",
|
|
533
|
+
"label"
|
|
534
|
+
],
|
|
535
|
+
"additionalProperties": false,
|
|
536
|
+
"properties": {
|
|
537
|
+
"value": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"minLength": 1
|
|
540
|
+
},
|
|
541
|
+
"label": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"minLength": 1
|
|
544
|
+
},
|
|
545
|
+
"description": {
|
|
546
|
+
"type": "string"
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"setupStep": {
|
|
551
|
+
"oneOf": [
|
|
552
|
+
{
|
|
553
|
+
"title": "cmd step",
|
|
554
|
+
"type": "object",
|
|
555
|
+
"required": [
|
|
556
|
+
"id",
|
|
557
|
+
"kind",
|
|
558
|
+
"cmd"
|
|
559
|
+
],
|
|
560
|
+
"additionalProperties": false,
|
|
561
|
+
"properties": {
|
|
562
|
+
"id": {
|
|
563
|
+
"$ref": "#/$defs/stepId"
|
|
564
|
+
},
|
|
565
|
+
"kind": {
|
|
566
|
+
"const": "cmd"
|
|
567
|
+
},
|
|
568
|
+
"title": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"minLength": 1
|
|
571
|
+
},
|
|
572
|
+
"description": {
|
|
573
|
+
"type": "string"
|
|
574
|
+
},
|
|
575
|
+
"optional": {
|
|
576
|
+
"type": "boolean",
|
|
577
|
+
"default": false,
|
|
578
|
+
"description": "An optional step may be declined or left pending without blocking `ready`."
|
|
579
|
+
},
|
|
580
|
+
"when": {
|
|
581
|
+
"$ref": "#/$defs/when"
|
|
582
|
+
},
|
|
583
|
+
"cmd": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"minLength": 1
|
|
586
|
+
},
|
|
587
|
+
"skip_if": {
|
|
588
|
+
"$ref": "#/$defs/skipIf"
|
|
589
|
+
},
|
|
590
|
+
"persist": {
|
|
591
|
+
"$ref": "#/$defs/persist"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"title": "prompt step",
|
|
597
|
+
"type": "object",
|
|
598
|
+
"required": [
|
|
599
|
+
"id",
|
|
600
|
+
"kind",
|
|
601
|
+
"prompt"
|
|
602
|
+
],
|
|
603
|
+
"additionalProperties": false,
|
|
604
|
+
"properties": {
|
|
605
|
+
"id": {
|
|
606
|
+
"$ref": "#/$defs/stepId"
|
|
607
|
+
},
|
|
608
|
+
"kind": {
|
|
609
|
+
"const": "prompt"
|
|
610
|
+
},
|
|
611
|
+
"title": {
|
|
612
|
+
"type": "string",
|
|
613
|
+
"minLength": 1
|
|
614
|
+
},
|
|
615
|
+
"description": {
|
|
616
|
+
"type": "string"
|
|
617
|
+
},
|
|
618
|
+
"optional": {
|
|
619
|
+
"type": "boolean",
|
|
620
|
+
"default": false,
|
|
621
|
+
"description": "An optional step may be declined or left pending without blocking `ready`."
|
|
622
|
+
},
|
|
623
|
+
"when": {
|
|
624
|
+
"$ref": "#/$defs/when"
|
|
625
|
+
},
|
|
626
|
+
"type": {
|
|
627
|
+
"enum": [
|
|
628
|
+
"text",
|
|
629
|
+
"select",
|
|
630
|
+
"boolean",
|
|
631
|
+
"secret"
|
|
632
|
+
],
|
|
633
|
+
"default": "text"
|
|
634
|
+
},
|
|
635
|
+
"prompt": {
|
|
636
|
+
"type": "string",
|
|
637
|
+
"minLength": 1
|
|
638
|
+
},
|
|
639
|
+
"default": {},
|
|
640
|
+
"options": {
|
|
641
|
+
"type": "array",
|
|
642
|
+
"items": {
|
|
643
|
+
"$ref": "#/$defs/option"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
"skip_if": {
|
|
647
|
+
"$ref": "#/$defs/skipIf"
|
|
648
|
+
},
|
|
649
|
+
"persist": {
|
|
650
|
+
"$ref": "#/$defs/persist"
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"title": "choice step",
|
|
656
|
+
"type": "object",
|
|
657
|
+
"required": [
|
|
658
|
+
"id",
|
|
659
|
+
"kind",
|
|
660
|
+
"prompt",
|
|
661
|
+
"options",
|
|
662
|
+
"default"
|
|
663
|
+
],
|
|
664
|
+
"additionalProperties": false,
|
|
665
|
+
"properties": {
|
|
666
|
+
"id": {
|
|
667
|
+
"$ref": "#/$defs/stepId"
|
|
668
|
+
},
|
|
669
|
+
"kind": {
|
|
670
|
+
"const": "choice"
|
|
671
|
+
},
|
|
672
|
+
"title": {
|
|
673
|
+
"type": "string",
|
|
674
|
+
"minLength": 1
|
|
675
|
+
},
|
|
676
|
+
"description": {
|
|
677
|
+
"type": "string"
|
|
678
|
+
},
|
|
679
|
+
"optional": {
|
|
680
|
+
"type": "boolean",
|
|
681
|
+
"default": false,
|
|
682
|
+
"description": "An optional step may be declined or left pending without blocking `ready`."
|
|
683
|
+
},
|
|
684
|
+
"when": {
|
|
685
|
+
"$ref": "#/$defs/when"
|
|
686
|
+
},
|
|
687
|
+
"prompt": {
|
|
688
|
+
"type": "string",
|
|
689
|
+
"minLength": 1
|
|
690
|
+
},
|
|
691
|
+
"options": {
|
|
692
|
+
"type": "array",
|
|
693
|
+
"minItems": 2,
|
|
694
|
+
"items": {
|
|
695
|
+
"$ref": "#/$defs/option"
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"default": {
|
|
699
|
+
"type": "string",
|
|
700
|
+
"description": "The `value` of one option. Pre-selected, and applied by `--yes`."
|
|
701
|
+
},
|
|
702
|
+
"persist": {
|
|
703
|
+
"$ref": "#/$defs/persist"
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"title": "auth-profile step",
|
|
709
|
+
"type": "object",
|
|
710
|
+
"required": [
|
|
711
|
+
"id",
|
|
712
|
+
"kind"
|
|
713
|
+
],
|
|
714
|
+
"additionalProperties": false,
|
|
715
|
+
"properties": {
|
|
716
|
+
"id": {
|
|
717
|
+
"$ref": "#/$defs/stepId"
|
|
718
|
+
},
|
|
719
|
+
"kind": {
|
|
720
|
+
"const": "auth-profile"
|
|
721
|
+
},
|
|
722
|
+
"title": {
|
|
723
|
+
"type": "string",
|
|
724
|
+
"minLength": 1
|
|
725
|
+
},
|
|
726
|
+
"description": {
|
|
727
|
+
"type": "string"
|
|
728
|
+
},
|
|
729
|
+
"optional": {
|
|
730
|
+
"type": "boolean",
|
|
731
|
+
"default": false,
|
|
732
|
+
"description": "An optional step may be declined or left pending without blocking `ready`."
|
|
733
|
+
},
|
|
734
|
+
"when": {
|
|
735
|
+
"$ref": "#/$defs/when"
|
|
736
|
+
},
|
|
737
|
+
"min": {
|
|
738
|
+
"type": "integer",
|
|
739
|
+
"minimum": 1,
|
|
740
|
+
"default": 1,
|
|
741
|
+
"description": "Complete when at least this many enabled auth profiles exist."
|
|
742
|
+
},
|
|
743
|
+
"harnesses": {
|
|
744
|
+
"type": "array",
|
|
745
|
+
"items": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"minLength": 1
|
|
748
|
+
},
|
|
749
|
+
"description": "Only count profiles usable by these harness slugs. Absent = any."
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"title": "pairing step",
|
|
755
|
+
"type": "object",
|
|
756
|
+
"required": [
|
|
757
|
+
"id",
|
|
758
|
+
"kind",
|
|
759
|
+
"channel"
|
|
760
|
+
],
|
|
761
|
+
"additionalProperties": false,
|
|
762
|
+
"properties": {
|
|
763
|
+
"id": {
|
|
764
|
+
"$ref": "#/$defs/stepId"
|
|
765
|
+
},
|
|
766
|
+
"kind": {
|
|
767
|
+
"const": "pairing"
|
|
768
|
+
},
|
|
769
|
+
"title": {
|
|
770
|
+
"type": "string",
|
|
771
|
+
"minLength": 1
|
|
772
|
+
},
|
|
773
|
+
"description": {
|
|
774
|
+
"type": "string"
|
|
775
|
+
},
|
|
776
|
+
"optional": {
|
|
777
|
+
"type": "boolean",
|
|
778
|
+
"default": false,
|
|
779
|
+
"description": "An optional step may be declined or left pending without blocking `ready`."
|
|
780
|
+
},
|
|
781
|
+
"when": {
|
|
782
|
+
"$ref": "#/$defs/when"
|
|
783
|
+
},
|
|
784
|
+
"channel": {
|
|
785
|
+
"type": "string",
|
|
786
|
+
"minLength": 1,
|
|
787
|
+
"description": "Open set. `telegram` is defined by AIP-53; other values are host-defined."
|
|
788
|
+
},
|
|
789
|
+
"display": {
|
|
790
|
+
"enum": [
|
|
791
|
+
"qr",
|
|
792
|
+
"link",
|
|
793
|
+
"code"
|
|
794
|
+
],
|
|
795
|
+
"default": "qr"
|
|
796
|
+
},
|
|
797
|
+
"timeout_sec": {
|
|
798
|
+
"type": "integer",
|
|
799
|
+
"minimum": 1,
|
|
800
|
+
"default": 300
|
|
801
|
+
},
|
|
802
|
+
"persist": {
|
|
803
|
+
"$ref": "#/$defs/persist"
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"title": "oauth step",
|
|
809
|
+
"type": "object",
|
|
810
|
+
"required": [
|
|
811
|
+
"id",
|
|
812
|
+
"kind",
|
|
813
|
+
"secret_slug"
|
|
814
|
+
],
|
|
815
|
+
"additionalProperties": false,
|
|
816
|
+
"properties": {
|
|
817
|
+
"id": {
|
|
818
|
+
"$ref": "#/$defs/stepId"
|
|
819
|
+
},
|
|
820
|
+
"kind": {
|
|
821
|
+
"const": "oauth"
|
|
822
|
+
},
|
|
823
|
+
"title": {
|
|
824
|
+
"type": "string",
|
|
825
|
+
"minLength": 1
|
|
826
|
+
},
|
|
827
|
+
"description": {
|
|
828
|
+
"type": "string"
|
|
829
|
+
},
|
|
830
|
+
"optional": {
|
|
831
|
+
"type": "boolean",
|
|
832
|
+
"default": false,
|
|
833
|
+
"description": "An optional step may be declined or left pending without blocking `ready`."
|
|
834
|
+
},
|
|
835
|
+
"when": {
|
|
836
|
+
"$ref": "#/$defs/when"
|
|
837
|
+
},
|
|
838
|
+
"secret_slug": {
|
|
839
|
+
"type": "string",
|
|
840
|
+
"minLength": 1
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"title": "external step",
|
|
846
|
+
"type": "object",
|
|
847
|
+
"required": [
|
|
848
|
+
"id",
|
|
849
|
+
"kind",
|
|
850
|
+
"url"
|
|
851
|
+
],
|
|
852
|
+
"additionalProperties": false,
|
|
853
|
+
"properties": {
|
|
854
|
+
"id": {
|
|
855
|
+
"$ref": "#/$defs/stepId"
|
|
856
|
+
},
|
|
857
|
+
"kind": {
|
|
858
|
+
"const": "external"
|
|
859
|
+
},
|
|
860
|
+
"title": {
|
|
861
|
+
"type": "string",
|
|
862
|
+
"minLength": 1
|
|
863
|
+
},
|
|
864
|
+
"description": {
|
|
865
|
+
"type": "string"
|
|
866
|
+
},
|
|
867
|
+
"optional": {
|
|
868
|
+
"type": "boolean",
|
|
869
|
+
"default": false,
|
|
870
|
+
"description": "An optional step may be declined or left pending without blocking `ready`."
|
|
871
|
+
},
|
|
872
|
+
"when": {
|
|
873
|
+
"$ref": "#/$defs/when"
|
|
874
|
+
},
|
|
875
|
+
"url": {
|
|
876
|
+
"type": "string",
|
|
877
|
+
"pattern": "^https://"
|
|
878
|
+
},
|
|
879
|
+
"persist": {
|
|
880
|
+
"$ref": "#/$defs/persist"
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"title": "check step",
|
|
886
|
+
"type": "object",
|
|
887
|
+
"required": [
|
|
888
|
+
"id",
|
|
889
|
+
"kind",
|
|
890
|
+
"check"
|
|
891
|
+
],
|
|
892
|
+
"additionalProperties": false,
|
|
893
|
+
"properties": {
|
|
894
|
+
"id": {
|
|
895
|
+
"$ref": "#/$defs/stepId"
|
|
896
|
+
},
|
|
897
|
+
"kind": {
|
|
898
|
+
"const": "check"
|
|
899
|
+
},
|
|
900
|
+
"title": {
|
|
901
|
+
"type": "string",
|
|
902
|
+
"minLength": 1
|
|
903
|
+
},
|
|
904
|
+
"description": {
|
|
905
|
+
"type": "string"
|
|
906
|
+
},
|
|
907
|
+
"optional": {
|
|
908
|
+
"type": "boolean",
|
|
909
|
+
"default": false,
|
|
910
|
+
"description": "An optional step may be declined or left pending without blocking `ready`."
|
|
911
|
+
},
|
|
912
|
+
"when": {
|
|
913
|
+
"$ref": "#/$defs/when"
|
|
914
|
+
},
|
|
915
|
+
"check": {
|
|
916
|
+
"type": "object",
|
|
917
|
+
"additionalProperties": false,
|
|
918
|
+
"minProperties": 1,
|
|
919
|
+
"maxProperties": 1,
|
|
920
|
+
"properties": {
|
|
921
|
+
"cmd": {
|
|
922
|
+
"type": "object",
|
|
923
|
+
"required": [
|
|
924
|
+
"run"
|
|
925
|
+
],
|
|
926
|
+
"additionalProperties": false,
|
|
927
|
+
"properties": {
|
|
928
|
+
"run": {
|
|
929
|
+
"type": "string",
|
|
930
|
+
"minLength": 1
|
|
931
|
+
},
|
|
932
|
+
"exit_code": {
|
|
933
|
+
"type": "integer",
|
|
934
|
+
"default": 0
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
"tool": {
|
|
939
|
+
"type": "object",
|
|
940
|
+
"required": [
|
|
941
|
+
"id"
|
|
942
|
+
],
|
|
943
|
+
"additionalProperties": false,
|
|
944
|
+
"properties": {
|
|
945
|
+
"id": {
|
|
946
|
+
"type": "string",
|
|
947
|
+
"minLength": 1
|
|
948
|
+
},
|
|
949
|
+
"args": {
|
|
950
|
+
"type": "object"
|
|
951
|
+
},
|
|
952
|
+
"expect": {
|
|
953
|
+
"type": "object",
|
|
954
|
+
"description": "Subset the tool's result object MUST contain."
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"severity": {
|
|
961
|
+
"enum": [
|
|
962
|
+
"required",
|
|
963
|
+
"warn"
|
|
964
|
+
],
|
|
965
|
+
"default": "required"
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"title": "vendor step",
|
|
971
|
+
"type": "object",
|
|
972
|
+
"required": [
|
|
973
|
+
"id",
|
|
974
|
+
"kind"
|
|
975
|
+
],
|
|
976
|
+
"additionalProperties": true,
|
|
977
|
+
"properties": {
|
|
978
|
+
"id": {
|
|
979
|
+
"$ref": "#/$defs/stepId"
|
|
980
|
+
},
|
|
981
|
+
"kind": {
|
|
982
|
+
"type": "string",
|
|
983
|
+
"pattern": "^x-[a-z0-9-]+$"
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
"description": "Vendor extension. The ONLY place in APP.md where unknown keys are tolerated. A host that does not implement the kind MUST fail with `setup_unsupported_step`, never skip it silently (unless `optional: true`)."
|
|
987
|
+
}
|
|
988
|
+
]
|
|
245
989
|
}
|
|
246
990
|
},
|
|
247
991
|
"allOf": [
|
|
@@ -250,23 +994,55 @@
|
|
|
250
994
|
"description": "An app with an empty or absent `agents` array is conforming ONLY when `ui` is present (codifies packages/app-kit/src/define-app.ts:49-52 and the five builtin panels in packages/apps/src/index.ts that ship as agents: []).",
|
|
251
995
|
"if": {
|
|
252
996
|
"anyOf": [
|
|
253
|
-
{
|
|
254
|
-
|
|
997
|
+
{
|
|
998
|
+
"not": {
|
|
999
|
+
"required": [
|
|
1000
|
+
"agents"
|
|
1001
|
+
]
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"properties": {
|
|
1006
|
+
"agents": {
|
|
1007
|
+
"maxItems": 0
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
255
1011
|
]
|
|
256
1012
|
},
|
|
257
|
-
"then": {
|
|
1013
|
+
"then": {
|
|
1014
|
+
"required": [
|
|
1015
|
+
"ui"
|
|
1016
|
+
]
|
|
1017
|
+
}
|
|
258
1018
|
},
|
|
259
1019
|
{
|
|
260
1020
|
"title": "Attachment invariant (structural part)",
|
|
261
1021
|
"description": "A UI-only app bundles zero workflows: a bundled workflow with no referencing agent would be an orphan (conformance rule 3).",
|
|
262
1022
|
"if": {
|
|
263
1023
|
"anyOf": [
|
|
264
|
-
{
|
|
265
|
-
|
|
1024
|
+
{
|
|
1025
|
+
"not": {
|
|
1026
|
+
"required": [
|
|
1027
|
+
"agents"
|
|
1028
|
+
]
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"properties": {
|
|
1033
|
+
"agents": {
|
|
1034
|
+
"maxItems": 0
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
266
1038
|
]
|
|
267
1039
|
},
|
|
268
1040
|
"then": {
|
|
269
|
-
"properties": {
|
|
1041
|
+
"properties": {
|
|
1042
|
+
"workflows": {
|
|
1043
|
+
"maxItems": 0
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
270
1046
|
}
|
|
271
1047
|
}
|
|
272
1048
|
]
|