@agentproto/corpus-cli 0.10.2 → 0.11.1
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/cli.mjs +164 -93
- package/dist/cli.mjs.map +1 -1
- package/dist/ports/index.d.ts +37 -1
- package/dist/ports/index.mjs +141 -74
- package/dist/ports/index.mjs.map +1 -1
- 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/TYPES.schema.json +78 -0
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +236 -105
- package/dist/specs/resources/aip-42/draft/AGENT.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 +862 -43
- package/dist/specs/resources/aip-58/draft/event.schema.json +3 -2
- package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +368 -62
- package/dist/specs/resources/aip-62/draft/REVIEW.schema.json +201 -43
- package/dist/specs/resources/aip-63/draft/BROWSER.schema.json +427 -0
- 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 +35 -0
- package/package.json +7 -7
|
@@ -5,23 +5,47 @@
|
|
|
5
5
|
"description": "The YAML frontmatter of a REVIEW.md review manifest, parsed to JSON. Field shapes only: the cross-field rules (unique ids, binding references, prepare/effects rules, implied default binding, explicit bindings when uses[] is present) are normative in AIP-62 and are enforced by the parser, not by this schema. Unknown keys are errors at every level.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
|
-
"required": [
|
|
8
|
+
"required": [
|
|
9
|
+
"kind",
|
|
10
|
+
"id",
|
|
11
|
+
"target",
|
|
12
|
+
"checks"
|
|
13
|
+
],
|
|
9
14
|
"properties": {
|
|
10
|
-
"kind": {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
15
|
+
"kind": {
|
|
16
|
+
"const": "review"
|
|
17
|
+
},
|
|
18
|
+
"id": {
|
|
19
|
+
"$ref": "#/$defs/id"
|
|
20
|
+
},
|
|
21
|
+
"name": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1
|
|
24
|
+
},
|
|
25
|
+
"description": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
14
28
|
"target": {
|
|
15
29
|
"description": "What is reviewed. v1 supports only a git range. The string form \"git-range\" is shorthand for { kind: git-range } with the default base (origin/main). The reviewed range is merge-base(base, HEAD)..HEAD.",
|
|
16
30
|
"oneOf": [
|
|
17
|
-
{
|
|
31
|
+
{
|
|
32
|
+
"const": "git-range"
|
|
33
|
+
},
|
|
18
34
|
{
|
|
19
35
|
"type": "object",
|
|
20
36
|
"additionalProperties": false,
|
|
21
|
-
"required": [
|
|
37
|
+
"required": [
|
|
38
|
+
"kind"
|
|
39
|
+
],
|
|
22
40
|
"properties": {
|
|
23
|
-
"kind": {
|
|
24
|
-
|
|
41
|
+
"kind": {
|
|
42
|
+
"const": "git-range"
|
|
43
|
+
},
|
|
44
|
+
"base": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"default": "origin/main"
|
|
48
|
+
}
|
|
25
49
|
}
|
|
26
50
|
}
|
|
27
51
|
]
|
|
@@ -31,20 +55,30 @@
|
|
|
31
55
|
"minItems": 1,
|
|
32
56
|
"items": {
|
|
33
57
|
"oneOf": [
|
|
34
|
-
{
|
|
35
|
-
|
|
58
|
+
{
|
|
59
|
+
"$ref": "#/$defs/commandCheck"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"$ref": "#/$defs/agentCheck"
|
|
63
|
+
}
|
|
36
64
|
]
|
|
37
65
|
}
|
|
38
66
|
},
|
|
39
67
|
"bindings": {
|
|
40
68
|
"description": "Named lane selections, keyed by binding id. When absent, an implied `default` binding over every non-effects check applies. When `uses` is present, explicit bindings are required.",
|
|
41
69
|
"type": "object",
|
|
42
|
-
"propertyNames": {
|
|
43
|
-
|
|
70
|
+
"propertyNames": {
|
|
71
|
+
"$ref": "#/$defs/id"
|
|
72
|
+
},
|
|
73
|
+
"additionalProperties": {
|
|
74
|
+
"$ref": "#/$defs/binding"
|
|
75
|
+
}
|
|
44
76
|
},
|
|
45
77
|
"uses": {
|
|
46
78
|
"type": "array",
|
|
47
|
-
"items": {
|
|
79
|
+
"items": {
|
|
80
|
+
"$ref": "#/$defs/use"
|
|
81
|
+
}
|
|
48
82
|
},
|
|
49
83
|
"verdict": {
|
|
50
84
|
"type": "object",
|
|
@@ -70,23 +104,50 @@
|
|
|
70
104
|
"pattern": "^[a-z][a-z0-9-]*(?:/[a-z][a-z0-9-]*)?$",
|
|
71
105
|
"maxLength": 129
|
|
72
106
|
},
|
|
73
|
-
"severity": {
|
|
107
|
+
"severity": {
|
|
108
|
+
"enum": [
|
|
109
|
+
"high",
|
|
110
|
+
"medium",
|
|
111
|
+
"low"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
74
114
|
"commandCheck": {
|
|
75
115
|
"type": "object",
|
|
76
116
|
"additionalProperties": false,
|
|
77
|
-
"required": [
|
|
117
|
+
"required": [
|
|
118
|
+
"id",
|
|
119
|
+
"kind",
|
|
120
|
+
"run"
|
|
121
|
+
],
|
|
78
122
|
"properties": {
|
|
79
|
-
"id": {
|
|
80
|
-
|
|
81
|
-
|
|
123
|
+
"id": {
|
|
124
|
+
"$ref": "#/$defs/id"
|
|
125
|
+
},
|
|
126
|
+
"kind": {
|
|
127
|
+
"const": "command"
|
|
128
|
+
},
|
|
129
|
+
"description": {
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
82
132
|
"run": {
|
|
83
133
|
"type": "string",
|
|
84
134
|
"minLength": 1,
|
|
85
135
|
"description": "Executed as `sh -c`. May contain {base}, {head}, {changed} placeholders; {{name}} escapes a literal {name}."
|
|
86
136
|
},
|
|
87
|
-
"cwd": {
|
|
88
|
-
|
|
89
|
-
|
|
137
|
+
"cwd": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 1,
|
|
140
|
+
"description": "Relative to the repo root."
|
|
141
|
+
},
|
|
142
|
+
"blocking": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"default": true
|
|
145
|
+
},
|
|
146
|
+
"timeoutMs": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"exclusiveMinimum": 0,
|
|
149
|
+
"default": 600000
|
|
150
|
+
},
|
|
90
151
|
"effects": {
|
|
91
152
|
"type": "boolean",
|
|
92
153
|
"default": false,
|
|
@@ -97,52 +158,101 @@
|
|
|
97
158
|
"agentCheck": {
|
|
98
159
|
"type": "object",
|
|
99
160
|
"additionalProperties": false,
|
|
100
|
-
"required": [
|
|
161
|
+
"required": [
|
|
162
|
+
"id",
|
|
163
|
+
"kind",
|
|
164
|
+
"preset",
|
|
165
|
+
"rubric"
|
|
166
|
+
],
|
|
101
167
|
"properties": {
|
|
102
|
-
"id": {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"
|
|
168
|
+
"id": {
|
|
169
|
+
"$ref": "#/$defs/id"
|
|
170
|
+
},
|
|
171
|
+
"kind": {
|
|
172
|
+
"const": "agent"
|
|
173
|
+
},
|
|
174
|
+
"description": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"preset": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"minLength": 1
|
|
180
|
+
},
|
|
106
181
|
"rubric": {
|
|
107
182
|
"type": "string",
|
|
108
183
|
"minLength": 1,
|
|
109
184
|
"description": "Path relative to the directory containing REVIEW.md."
|
|
110
185
|
},
|
|
111
|
-
"blockOn": {
|
|
112
|
-
|
|
113
|
-
|
|
186
|
+
"blockOn": {
|
|
187
|
+
"$ref": "#/$defs/severity",
|
|
188
|
+
"default": "high"
|
|
189
|
+
},
|
|
190
|
+
"blocking": {
|
|
191
|
+
"type": "boolean",
|
|
192
|
+
"default": true
|
|
193
|
+
},
|
|
194
|
+
"timeoutMs": {
|
|
195
|
+
"type": "integer",
|
|
196
|
+
"exclusiveMinimum": 0,
|
|
197
|
+
"default": 900000
|
|
198
|
+
},
|
|
114
199
|
"effects": {
|
|
115
200
|
"const": false,
|
|
116
201
|
"description": "An agent check is always a read-only reviewer; effects: true is an error."
|
|
202
|
+
},
|
|
203
|
+
"sandbox": {
|
|
204
|
+
"$ref": "#/$defs/sandboxRef",
|
|
205
|
+
"description": "Optional. Places this check's reviewer session in a sandbox instead of on the host (AIP-36 inline form). Absent by default (host spawn)."
|
|
206
|
+
},
|
|
207
|
+
"fallbackPresets": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"items": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"minLength": 1
|
|
212
|
+
},
|
|
213
|
+
"description": "Ordered fallback reviewers. When `preset`'s reviewer is unavailable (spawn/transport error, errored or empty turn, session exited), the lane runs on the next one. Never consulted after a verdict, a timeout, or a cancel. Must not repeat `preset` or itself."
|
|
117
214
|
}
|
|
118
215
|
}
|
|
119
216
|
},
|
|
120
217
|
"binding": {
|
|
121
218
|
"type": "object",
|
|
122
219
|
"additionalProperties": false,
|
|
123
|
-
"required": [
|
|
220
|
+
"required": [
|
|
221
|
+
"checks"
|
|
222
|
+
],
|
|
124
223
|
"properties": {
|
|
125
224
|
"on": {
|
|
126
225
|
"type": "string",
|
|
226
|
+
"minLength": 1,
|
|
127
227
|
"description": "Informational label (e.g. pre-push, pr). Nothing dispatches on it."
|
|
128
228
|
},
|
|
129
229
|
"prepare": {
|
|
130
230
|
"type": "array",
|
|
131
|
-
"items": {
|
|
231
|
+
"items": {
|
|
232
|
+
"$ref": "#/$defs/checkRef"
|
|
233
|
+
},
|
|
132
234
|
"description": "effects: true command checks, run in order before the range freezes."
|
|
133
235
|
},
|
|
134
236
|
"checks": {
|
|
135
237
|
"type": "array",
|
|
136
238
|
"minItems": 1,
|
|
137
|
-
"items": {
|
|
239
|
+
"items": {
|
|
240
|
+
"$ref": "#/$defs/checkRef"
|
|
241
|
+
}
|
|
138
242
|
},
|
|
139
|
-
"quorum": {
|
|
243
|
+
"quorum": {
|
|
244
|
+
"const": "all-blocking-pass",
|
|
245
|
+
"default": "all-blocking-pass"
|
|
246
|
+
}
|
|
140
247
|
}
|
|
141
248
|
},
|
|
142
249
|
"use": {
|
|
143
250
|
"type": "object",
|
|
144
251
|
"additionalProperties": false,
|
|
145
|
-
"required": [
|
|
252
|
+
"required": [
|
|
253
|
+
"pack",
|
|
254
|
+
"as"
|
|
255
|
+
],
|
|
146
256
|
"properties": {
|
|
147
257
|
"pack": {
|
|
148
258
|
"type": "string",
|
|
@@ -155,26 +265,74 @@
|
|
|
155
265
|
},
|
|
156
266
|
"checks": {
|
|
157
267
|
"type": "array",
|
|
158
|
-
"items": {
|
|
268
|
+
"items": {
|
|
269
|
+
"$ref": "#/$defs/id"
|
|
270
|
+
},
|
|
159
271
|
"description": "Subset of the pack's check ids to import. Default: all."
|
|
160
272
|
},
|
|
161
|
-
"preset": {
|
|
273
|
+
"preset": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"minLength": 1
|
|
276
|
+
},
|
|
162
277
|
"overrides": {
|
|
163
278
|
"type": "object",
|
|
164
|
-
"propertyNames": {
|
|
279
|
+
"propertyNames": {
|
|
280
|
+
"$ref": "#/$defs/id"
|
|
281
|
+
},
|
|
165
282
|
"additionalProperties": {
|
|
166
283
|
"type": "object",
|
|
167
284
|
"additionalProperties": false,
|
|
168
285
|
"properties": {
|
|
169
|
-
"blockOn": {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
286
|
+
"blockOn": {
|
|
287
|
+
"$ref": "#/$defs/severity"
|
|
288
|
+
},
|
|
289
|
+
"blocking": {
|
|
290
|
+
"type": "boolean"
|
|
291
|
+
},
|
|
292
|
+
"timeoutMs": {
|
|
293
|
+
"type": "integer",
|
|
294
|
+
"exclusiveMinimum": 0
|
|
295
|
+
},
|
|
296
|
+
"preset": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"minLength": 1
|
|
299
|
+
},
|
|
300
|
+
"fallbackPresets": {
|
|
301
|
+
"type": "array",
|
|
302
|
+
"items": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"minLength": 1
|
|
305
|
+
}
|
|
306
|
+
}
|
|
173
307
|
}
|
|
174
308
|
}
|
|
175
309
|
},
|
|
176
|
-
"allowCommands": {
|
|
310
|
+
"allowCommands": {
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"default": false
|
|
313
|
+
},
|
|
314
|
+
"fallbackPresets": {
|
|
315
|
+
"type": "array",
|
|
316
|
+
"items": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"minLength": 1
|
|
319
|
+
},
|
|
320
|
+
"description": "Ordered fallback reviewers for every imported agent check (see agentCheck.fallbackPresets)."
|
|
321
|
+
}
|
|
177
322
|
}
|
|
323
|
+
},
|
|
324
|
+
"sandboxRef": {
|
|
325
|
+
"description": "AIP-36 inline SANDBOX form embedded directly in this manifest — a provider slug, or an object naming a provider with its config/env (AIP-36's own frontmatter-only fields such as schema/id/version do not apply here).",
|
|
326
|
+
"anyOf": [
|
|
327
|
+
{
|
|
328
|
+
"type": "string",
|
|
329
|
+
"minLength": 1,
|
|
330
|
+
"description": "A sandbox provider slug (e.g. \"e2b\"); the spec is fully host-derived."
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"$ref": "https://agentproto.sh/schemas/aip-36/SANDBOX.schema.json"
|
|
334
|
+
}
|
|
335
|
+
]
|
|
178
336
|
}
|
|
179
337
|
}
|
|
180
338
|
}
|