@ai-atomic-framework/cli 0.1.1 → 0.1.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/npm-runtime/layout/schemas/registry.schema.json +622 -0
- package/dist/npm-runtime/layout/schemas/test-report/metrics.schema.json +27 -0
- package/dist/npm-runtime/layout/schemas/test-report.schema.json +459 -0
- package/dist/npm-runtime/manifest.json +22 -4
- package/dist/npm-runtime/runtime.mjs +257 -257
- package/package.json +1 -1
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.ai-atomic-framework.dev/test-report.schema.json",
|
|
4
|
+
"title": "ATM Test Report v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaId",
|
|
9
|
+
"specVersion",
|
|
10
|
+
"migration",
|
|
11
|
+
"atomId",
|
|
12
|
+
"ok",
|
|
13
|
+
"exitCode",
|
|
14
|
+
"generatedAt",
|
|
15
|
+
"repositoryRoot",
|
|
16
|
+
"specPath",
|
|
17
|
+
"hashLock",
|
|
18
|
+
"validation",
|
|
19
|
+
"runnerContract",
|
|
20
|
+
"results",
|
|
21
|
+
"summary",
|
|
22
|
+
"artifacts",
|
|
23
|
+
"evidence"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"schemaId": {
|
|
27
|
+
"const": "atm.testReport"
|
|
28
|
+
},
|
|
29
|
+
"specVersion": {
|
|
30
|
+
"const": "0.1.0"
|
|
31
|
+
},
|
|
32
|
+
"migration": {
|
|
33
|
+
"$ref": "#/$defs/migration"
|
|
34
|
+
},
|
|
35
|
+
"atomId": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
|
|
38
|
+
},
|
|
39
|
+
"ok": {
|
|
40
|
+
"type": "boolean"
|
|
41
|
+
},
|
|
42
|
+
"exitCode": {
|
|
43
|
+
"type": "integer",
|
|
44
|
+
"minimum": 0
|
|
45
|
+
},
|
|
46
|
+
"generatedAt": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "date-time"
|
|
49
|
+
},
|
|
50
|
+
"repositoryRoot": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 1
|
|
53
|
+
},
|
|
54
|
+
"specPath": {
|
|
55
|
+
"type": ["string", "null"]
|
|
56
|
+
},
|
|
57
|
+
"hashLock": {
|
|
58
|
+
"$ref": "#/$defs/hashLock"
|
|
59
|
+
},
|
|
60
|
+
"validation": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"required": ["evidenceRequired", "commandCount"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"evidenceRequired": {
|
|
66
|
+
"type": "boolean"
|
|
67
|
+
},
|
|
68
|
+
"commandCount": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": 0
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"runnerContract": {
|
|
75
|
+
"$ref": "#/$defs/runnerContract"
|
|
76
|
+
},
|
|
77
|
+
"results": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"$ref": "#/$defs/commandResult"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"pluginRuns": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"$ref": "#/$defs/pluginRun"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"gateResults": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"$ref": "#/$defs/gateResult"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"summary": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": ["total", "passed", "failed", "durationMs"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"total": {
|
|
101
|
+
"type": "integer",
|
|
102
|
+
"minimum": 0
|
|
103
|
+
},
|
|
104
|
+
"passed": {
|
|
105
|
+
"type": "integer",
|
|
106
|
+
"minimum": 0
|
|
107
|
+
},
|
|
108
|
+
"failed": {
|
|
109
|
+
"type": "integer",
|
|
110
|
+
"minimum": 0
|
|
111
|
+
},
|
|
112
|
+
"durationMs": {
|
|
113
|
+
"type": "integer",
|
|
114
|
+
"minimum": 0
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"metrics": {
|
|
119
|
+
"$ref": "https://schemas.ai-atomic-framework.dev/test-report/metrics.schema.json"
|
|
120
|
+
},
|
|
121
|
+
"artifacts": {
|
|
122
|
+
"type": "array",
|
|
123
|
+
"items": {
|
|
124
|
+
"$ref": "#/$defs/artifactRecord"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"evidence": {
|
|
128
|
+
"type": "array",
|
|
129
|
+
"items": {
|
|
130
|
+
"$ref": "#/$defs/evidenceRecord"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"$defs": {
|
|
135
|
+
"migration": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": ["strategy", "fromVersion", "notes"],
|
|
139
|
+
"properties": {
|
|
140
|
+
"strategy": {
|
|
141
|
+
"enum": ["none", "additive", "breaking"]
|
|
142
|
+
},
|
|
143
|
+
"fromVersion": {
|
|
144
|
+
"type": ["string", "null"],
|
|
145
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
146
|
+
},
|
|
147
|
+
"notes": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"hashLock": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"additionalProperties": false,
|
|
155
|
+
"required": ["algorithm", "digest", "canonicalization"],
|
|
156
|
+
"properties": {
|
|
157
|
+
"algorithm": {
|
|
158
|
+
"const": "sha256"
|
|
159
|
+
},
|
|
160
|
+
"digest": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
163
|
+
},
|
|
164
|
+
"canonicalization": {
|
|
165
|
+
"enum": ["json-stable-v1", "text-normalized-v1"]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"runnerContract": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"required": ["executionMode", "evidenceRequired", "commands"],
|
|
173
|
+
"properties": {
|
|
174
|
+
"executionMode": {
|
|
175
|
+
"const": "delegated"
|
|
176
|
+
},
|
|
177
|
+
"evidenceRequired": {
|
|
178
|
+
"type": "boolean"
|
|
179
|
+
},
|
|
180
|
+
"profile": {
|
|
181
|
+
"enum": ["quick", "standard", "full"]
|
|
182
|
+
},
|
|
183
|
+
"suite": {
|
|
184
|
+
"type": ["string", "null"]
|
|
185
|
+
},
|
|
186
|
+
"commands": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": {
|
|
189
|
+
"$ref": "#/$defs/commandContract"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"plugins": {
|
|
193
|
+
"type": "array",
|
|
194
|
+
"items": {
|
|
195
|
+
"$ref": "#/$defs/pluginRun"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"gates": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"$ref": "#/$defs/gateContract"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"commandContract": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"additionalProperties": false,
|
|
209
|
+
"required": ["commandId", "commandKind", "command", "required"],
|
|
210
|
+
"properties": {
|
|
211
|
+
"commandId": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"minLength": 1
|
|
214
|
+
},
|
|
215
|
+
"commandKind": {
|
|
216
|
+
"enum": ["test", "typecheck", "lint", "custom"]
|
|
217
|
+
},
|
|
218
|
+
"command": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"minLength": 1
|
|
221
|
+
},
|
|
222
|
+
"required": {
|
|
223
|
+
"type": "boolean"
|
|
224
|
+
},
|
|
225
|
+
"suite": {
|
|
226
|
+
"type": ["string", "null"]
|
|
227
|
+
},
|
|
228
|
+
"key": {
|
|
229
|
+
"type": ["string", "null"]
|
|
230
|
+
},
|
|
231
|
+
"family": {
|
|
232
|
+
"type": ["string", "null"]
|
|
233
|
+
},
|
|
234
|
+
"tiers": {
|
|
235
|
+
"type": "array",
|
|
236
|
+
"items": {
|
|
237
|
+
"enum": ["quick", "standard", "full"]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"dedupeKeys": {
|
|
241
|
+
"type": "array",
|
|
242
|
+
"items": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"costBudgetMs": {
|
|
247
|
+
"type": ["integer", "null"],
|
|
248
|
+
"minimum": 0
|
|
249
|
+
},
|
|
250
|
+
"summary": {
|
|
251
|
+
"type": ["string", "null"]
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"commandResult": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"additionalProperties": false,
|
|
258
|
+
"required": ["commandId", "commandKind", "command", "required", "exitCode", "ok", "durationMs", "stdout", "stderr", "signal"],
|
|
259
|
+
"properties": {
|
|
260
|
+
"commandId": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"minLength": 1
|
|
263
|
+
},
|
|
264
|
+
"commandKind": {
|
|
265
|
+
"enum": ["test", "typecheck", "lint", "custom"]
|
|
266
|
+
},
|
|
267
|
+
"command": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"minLength": 1
|
|
270
|
+
},
|
|
271
|
+
"required": {
|
|
272
|
+
"type": "boolean"
|
|
273
|
+
},
|
|
274
|
+
"exitCode": {
|
|
275
|
+
"type": "integer",
|
|
276
|
+
"minimum": 0
|
|
277
|
+
},
|
|
278
|
+
"ok": {
|
|
279
|
+
"type": "boolean"
|
|
280
|
+
},
|
|
281
|
+
"durationMs": {
|
|
282
|
+
"type": "integer",
|
|
283
|
+
"minimum": 0
|
|
284
|
+
},
|
|
285
|
+
"stdout": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"stderr": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"signal": {
|
|
292
|
+
"type": ["string", "null"]
|
|
293
|
+
},
|
|
294
|
+
"suite": {
|
|
295
|
+
"type": ["string", "null"]
|
|
296
|
+
},
|
|
297
|
+
"key": {
|
|
298
|
+
"type": ["string", "null"]
|
|
299
|
+
},
|
|
300
|
+
"family": {
|
|
301
|
+
"type": ["string", "null"]
|
|
302
|
+
},
|
|
303
|
+
"tiers": {
|
|
304
|
+
"type": "array",
|
|
305
|
+
"items": {
|
|
306
|
+
"enum": ["quick", "standard", "full"]
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"dedupeKeys": {
|
|
310
|
+
"type": "array",
|
|
311
|
+
"items": {
|
|
312
|
+
"type": "string"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"costBudgetMs": {
|
|
316
|
+
"type": ["integer", "null"],
|
|
317
|
+
"minimum": 0
|
|
318
|
+
},
|
|
319
|
+
"summary": {
|
|
320
|
+
"type": ["string", "null"]
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"pluginRun": {
|
|
325
|
+
"type": "object",
|
|
326
|
+
"additionalProperties": true,
|
|
327
|
+
"required": ["pluginId", "status"],
|
|
328
|
+
"properties": {
|
|
329
|
+
"pluginId": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"minLength": 1
|
|
332
|
+
},
|
|
333
|
+
"status": {
|
|
334
|
+
"enum": ["planned", "skipped", "not_applicable"]
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"gateContract": {
|
|
339
|
+
"type": "object",
|
|
340
|
+
"additionalProperties": false,
|
|
341
|
+
"required": ["gateId", "blocking"],
|
|
342
|
+
"properties": {
|
|
343
|
+
"gateId": {
|
|
344
|
+
"enum": ["immutability", "side-effects", "consumer-contract"]
|
|
345
|
+
},
|
|
346
|
+
"blocking": {
|
|
347
|
+
"type": "boolean"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"gateResult": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"additionalProperties": true,
|
|
354
|
+
"required": ["gateId", "status", "blocking", "summary"],
|
|
355
|
+
"properties": {
|
|
356
|
+
"gateId": {
|
|
357
|
+
"enum": ["immutability", "side-effects", "consumer-contract"]
|
|
358
|
+
},
|
|
359
|
+
"status": {
|
|
360
|
+
"enum": ["passed", "failed", "skipped", "not_applicable"]
|
|
361
|
+
},
|
|
362
|
+
"blocking": {
|
|
363
|
+
"type": "boolean"
|
|
364
|
+
},
|
|
365
|
+
"summary": {
|
|
366
|
+
"type": "string"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"artifactRecord": {
|
|
371
|
+
"type": "object",
|
|
372
|
+
"additionalProperties": false,
|
|
373
|
+
"required": ["artifactPath", "artifactKind", "producedBy"],
|
|
374
|
+
"properties": {
|
|
375
|
+
"artifactPath": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"minLength": 1
|
|
378
|
+
},
|
|
379
|
+
"artifactKind": {
|
|
380
|
+
"enum": ["file", "log", "report", "snapshot"]
|
|
381
|
+
},
|
|
382
|
+
"producedBy": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"minLength": 1
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"evidenceRecord": {
|
|
389
|
+
"type": "object",
|
|
390
|
+
"additionalProperties": false,
|
|
391
|
+
"required": ["evidenceKind", "summary", "artifactPaths"],
|
|
392
|
+
"properties": {
|
|
393
|
+
"evidenceKind": {
|
|
394
|
+
"enum": ["validation", "review", "metric", "handoff"]
|
|
395
|
+
},
|
|
396
|
+
"signalKind": {
|
|
397
|
+
"enum": ["user-correction", "recurring-failure", "loaded-but-wrong", "novel-technique", "workflow-success", "metric-regression", "rollback-success"]
|
|
398
|
+
},
|
|
399
|
+
"signalScope": {
|
|
400
|
+
"enum": ["host-local", "repo", "atom", "atom-map", "global"]
|
|
401
|
+
},
|
|
402
|
+
"atomId": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
|
|
405
|
+
},
|
|
406
|
+
"atomMapId": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"pattern": "^ATM-MAP-\\d{4}$"
|
|
409
|
+
},
|
|
410
|
+
"patternTags": {
|
|
411
|
+
"type": "array",
|
|
412
|
+
"items": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"minLength": 1
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"confidence": {
|
|
418
|
+
"type": "number",
|
|
419
|
+
"minimum": 0,
|
|
420
|
+
"maximum": 1
|
|
421
|
+
},
|
|
422
|
+
"recurrence": {
|
|
423
|
+
"type": "object",
|
|
424
|
+
"additionalProperties": false,
|
|
425
|
+
"required": ["window", "count"],
|
|
426
|
+
"properties": {
|
|
427
|
+
"window": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"minLength": 1
|
|
430
|
+
},
|
|
431
|
+
"count": {
|
|
432
|
+
"type": "integer",
|
|
433
|
+
"minimum": 1
|
|
434
|
+
},
|
|
435
|
+
"firstSeenAt": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"format": "date-time"
|
|
438
|
+
},
|
|
439
|
+
"lastSeenAt": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"format": "date-time"
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"summary": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"minLength": 1
|
|
448
|
+
},
|
|
449
|
+
"artifactPaths": {
|
|
450
|
+
"type": "array",
|
|
451
|
+
"items": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"minLength": 1
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
@@ -293,6 +293,24 @@
|
|
|
293
293
|
"bytes": 11312,
|
|
294
294
|
"sha256": "sha256:7c9bbc45846b5f9ea394839ef73b3fc50a5e117833705d396931ca9b2e6986a3"
|
|
295
295
|
},
|
|
296
|
+
{
|
|
297
|
+
"path": "layout/schemas/registry.schema.json",
|
|
298
|
+
"kind": "immutable-runtime-asset",
|
|
299
|
+
"bytes": 15479,
|
|
300
|
+
"sha256": "sha256:2c177c5bee061f90aa72cba26f61663c5b5023d419b5f871ae46bfd09068e3d8"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"path": "layout/schemas/test-report.schema.json",
|
|
304
|
+
"kind": "immutable-runtime-asset",
|
|
305
|
+
"bytes": 10856,
|
|
306
|
+
"sha256": "sha256:6af9980e8d068f24fd07d70dcb50b9c3108e0aaccf7ca59577bc2d0c9dcf3388"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"path": "layout/schemas/test-report/metrics.schema.json",
|
|
310
|
+
"kind": "immutable-runtime-asset",
|
|
311
|
+
"bytes": 594,
|
|
312
|
+
"sha256": "sha256:0e52146f31a9d8da2ec4754ffd07b2be42272a3b65e008abf5a7d8cdd6f0655c"
|
|
313
|
+
},
|
|
296
314
|
{
|
|
297
315
|
"path": "layout/templates/atom.spec.template.json",
|
|
298
316
|
"kind": "immutable-runtime-asset",
|
|
@@ -440,10 +458,10 @@
|
|
|
440
458
|
{
|
|
441
459
|
"path": "runtime.mjs",
|
|
442
460
|
"kind": "runtime-entrypoint",
|
|
443
|
-
"bytes":
|
|
444
|
-
"sha256": "sha256:
|
|
461
|
+
"bytes": 2396460,
|
|
462
|
+
"sha256": "sha256:23872469008e12c6d5049bc221d790b36a6d65826be4b5e381af34c863fde672"
|
|
445
463
|
}
|
|
446
464
|
],
|
|
447
|
-
"fileCount":
|
|
448
|
-
"totalBytes":
|
|
465
|
+
"fileCount": 67,
|
|
466
|
+
"totalBytes": 2660604
|
|
449
467
|
}
|