micro-contracts 0.15.0 → 0.15.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.
Files changed (92) hide show
  1. package/README.md +62 -0
  2. package/cli-contract.yaml +622 -2
  3. package/dist/agents/context-builder.d.ts +5 -0
  4. package/dist/agents/context-builder.d.ts.map +1 -0
  5. package/dist/agents/context-builder.js +239 -0
  6. package/dist/agents/context-builder.js.map +1 -0
  7. package/dist/agents/formatter.d.ts +9 -0
  8. package/dist/agents/formatter.d.ts.map +1 -0
  9. package/dist/agents/formatter.js +124 -0
  10. package/dist/agents/formatter.js.map +1 -0
  11. package/dist/agents/index.d.ts +5 -0
  12. package/dist/agents/index.d.ts.map +1 -0
  13. package/dist/agents/index.js +3 -0
  14. package/dist/agents/index.js.map +1 -0
  15. package/dist/agents/orchestrator.d.ts +5 -0
  16. package/dist/agents/orchestrator.d.ts.map +1 -0
  17. package/dist/agents/orchestrator.js +105 -0
  18. package/dist/agents/orchestrator.js.map +1 -0
  19. package/dist/agents/types.d.ts +21 -0
  20. package/dist/agents/types.d.ts.map +1 -0
  21. package/dist/agents/types.js +2 -0
  22. package/dist/agents/types.js.map +1 -0
  23. package/dist/cli.d.ts +0 -6
  24. package/dist/cli.d.ts.map +1 -1
  25. package/dist/cli.js +814 -1161
  26. package/dist/cli.js.map +1 -1
  27. package/dist/commands/audit-guardrails.d.ts +13 -0
  28. package/dist/commands/audit-guardrails.d.ts.map +1 -0
  29. package/dist/commands/audit-guardrails.js +32 -0
  30. package/dist/commands/audit-guardrails.js.map +1 -0
  31. package/dist/commands/audit-openapi.d.ts +13 -0
  32. package/dist/commands/audit-openapi.d.ts.map +1 -0
  33. package/dist/commands/audit-openapi.js +32 -0
  34. package/dist/commands/audit-openapi.js.map +1 -0
  35. package/dist/commands/propose-overlays.d.ts +13 -0
  36. package/dist/commands/propose-overlays.d.ts.map +1 -0
  37. package/dist/commands/propose-overlays.js +32 -0
  38. package/dist/commands/propose-overlays.js.map +1 -0
  39. package/dist/commands/review-published.d.ts +13 -0
  40. package/dist/commands/review-published.d.ts.map +1 -0
  41. package/dist/commands/review-published.js +32 -0
  42. package/dist/commands/review-published.js.map +1 -0
  43. package/dist/generated/commands.d.ts +2 -0
  44. package/dist/generated/commands.d.ts.map +1 -0
  45. package/dist/generated/commands.js +2 -0
  46. package/dist/generated/commands.js.map +1 -0
  47. package/dist/generated/dsl/agents.d.ts +34 -0
  48. package/dist/generated/dsl/agents.d.ts.map +1 -0
  49. package/dist/generated/dsl/agents.js +98 -0
  50. package/dist/generated/dsl/agents.js.map +1 -0
  51. package/dist/generated/dsl/handoffs.d.ts +1209 -0
  52. package/dist/generated/dsl/handoffs.d.ts.map +1 -0
  53. package/dist/generated/dsl/handoffs.js +205 -0
  54. package/dist/generated/dsl/handoffs.js.map +1 -0
  55. package/dist/generated/dsl/index.d.ts +13 -0
  56. package/dist/generated/dsl/index.d.ts.map +1 -0
  57. package/dist/generated/dsl/index.js +10 -0
  58. package/dist/generated/dsl/index.js.map +1 -0
  59. package/dist/generated/dsl/tasks.d.ts +26 -0
  60. package/dist/generated/dsl/tasks.d.ts.map +1 -0
  61. package/dist/generated/dsl/tasks.js +133 -0
  62. package/dist/generated/dsl/tasks.js.map +1 -0
  63. package/dist/generated/dsl/workflows.d.ts +34 -0
  64. package/dist/generated/dsl/workflows.d.ts.map +1 -0
  65. package/dist/generated/dsl/workflows.js +84 -0
  66. package/dist/generated/dsl/workflows.js.map +1 -0
  67. package/dist/generated/index.d.ts +7 -0
  68. package/dist/generated/index.d.ts.map +1 -0
  69. package/dist/generated/index.js +7 -0
  70. package/dist/generated/index.js.map +1 -0
  71. package/dist/generated/policy-runtime.d.ts +114 -0
  72. package/dist/generated/policy-runtime.d.ts.map +1 -0
  73. package/dist/generated/policy-runtime.js +195 -0
  74. package/dist/generated/policy-runtime.js.map +1 -0
  75. package/dist/generated/policy.d.ts +619 -0
  76. package/dist/generated/policy.d.ts.map +1 -0
  77. package/dist/generated/policy.js +802 -0
  78. package/dist/generated/policy.js.map +1 -0
  79. package/dist/generated/program.d.ts +112 -0
  80. package/dist/generated/program.d.ts.map +1 -0
  81. package/dist/generated/program.js +266 -0
  82. package/dist/generated/program.js.map +1 -0
  83. package/dist/generated/schemas.d.ts +778 -0
  84. package/dist/generated/schemas.d.ts.map +1 -0
  85. package/dist/generated/schemas.js +1005 -0
  86. package/dist/generated/schemas.js.map +1 -0
  87. package/dist/generated/types.d.ts +395 -0
  88. package/dist/generated/types.d.ts.map +1 -0
  89. package/dist/generated/types.js +3 -0
  90. package/dist/generated/types.js.map +1 -0
  91. package/docs/cli-reference.md +300 -0
  92. package/package.json +24 -6
@@ -0,0 +1,778 @@
1
+ export declare const schemas: {
2
+ readonly AgentEvidence: {
3
+ readonly type: "object";
4
+ readonly description: "Evidence supporting an agent finding.";
5
+ readonly required: readonly ["kind"];
6
+ readonly properties: {
7
+ readonly kind: {
8
+ readonly type: "string";
9
+ readonly enum: readonly ["file", "command", "schema", "diff", "stdout", "stderr", "text"];
10
+ };
11
+ readonly target: {
12
+ readonly type: "string";
13
+ readonly description: "Target identifier (file path, command ID, schema name).";
14
+ };
15
+ readonly location: {
16
+ readonly type: "string";
17
+ readonly description: "Location within the target (line number, JSON pointer).";
18
+ };
19
+ readonly excerpt: {
20
+ readonly type: "string";
21
+ readonly description: "Relevant excerpt from the target.";
22
+ };
23
+ };
24
+ };
25
+ readonly AgentFinding: {
26
+ readonly type: "object";
27
+ readonly description: "A single finding from an agent audit or analysis.";
28
+ readonly required: readonly ["severity", "category", "message"];
29
+ readonly properties: {
30
+ readonly id: {
31
+ readonly type: "string";
32
+ readonly description: "Unique finding identifier.";
33
+ };
34
+ readonly severity: {
35
+ readonly type: "string";
36
+ readonly enum: readonly ["info", "warning", "error", "critical"];
37
+ };
38
+ readonly category: {
39
+ readonly type: "string";
40
+ readonly description: "Finding category (e.g. design_quality, public_surface).";
41
+ };
42
+ readonly target: {
43
+ readonly type: "string";
44
+ readonly description: "Target of the finding (path, schema name).";
45
+ };
46
+ readonly location: {
47
+ readonly type: "string";
48
+ readonly description: "Location within the target.";
49
+ };
50
+ readonly message: {
51
+ readonly type: "string";
52
+ };
53
+ readonly recommendation: {
54
+ readonly type: "string";
55
+ };
56
+ readonly confidence: {
57
+ readonly type: "number";
58
+ readonly minimum: 0;
59
+ readonly maximum: 1;
60
+ readonly description: "Confidence score (0-1) for LLM-generated findings.";
61
+ };
62
+ readonly evidence: {
63
+ readonly type: "array";
64
+ readonly items: {
65
+ readonly type: "object";
66
+ readonly description: "Evidence supporting an agent finding.";
67
+ readonly required: readonly ["kind"];
68
+ readonly properties: {
69
+ readonly kind: {
70
+ readonly type: "string";
71
+ readonly enum: readonly ["file", "command", "schema", "diff", "stdout", "stderr", "text"];
72
+ };
73
+ readonly target: {
74
+ readonly type: "string";
75
+ readonly description: "Target identifier (file path, command ID, schema name).";
76
+ };
77
+ readonly location: {
78
+ readonly type: "string";
79
+ readonly description: "Location within the target (line number, JSON pointer).";
80
+ };
81
+ readonly excerpt: {
82
+ readonly type: "string";
83
+ readonly description: "Relevant excerpt from the target.";
84
+ };
85
+ };
86
+ };
87
+ };
88
+ readonly details: {
89
+ readonly type: "object";
90
+ readonly additionalProperties: true;
91
+ };
92
+ };
93
+ };
94
+ readonly AgentRecommendedAction: {
95
+ readonly type: "object";
96
+ readonly description: "A recommended action from an agent audit.";
97
+ readonly required: readonly ["kind", "title"];
98
+ readonly properties: {
99
+ readonly kind: {
100
+ readonly type: "string";
101
+ readonly enum: readonly ["run_command", "edit_file", "review", "confirm", "block", "ignore"];
102
+ };
103
+ readonly title: {
104
+ readonly type: "string";
105
+ };
106
+ readonly command: {
107
+ readonly type: "string";
108
+ readonly description: "CLI command to run (for run_command kind).";
109
+ };
110
+ readonly target: {
111
+ readonly type: "string";
112
+ readonly description: "Target file or resource.";
113
+ };
114
+ readonly rationale: {
115
+ readonly type: "string";
116
+ };
117
+ };
118
+ };
119
+ readonly OpenApiAuditResult: {
120
+ readonly type: "object";
121
+ readonly description: "Top-level result from an agent audit. Canonical schema for agent interoperability across toolchains.";
122
+ readonly required: readonly ["summary", "riskLevel", "findings"];
123
+ readonly properties: {
124
+ readonly summary: {
125
+ readonly type: "string";
126
+ };
127
+ readonly riskLevel: {
128
+ readonly type: "string";
129
+ readonly enum: readonly ["low", "medium", "high", "critical"];
130
+ };
131
+ readonly findings: {
132
+ readonly type: "array";
133
+ readonly items: {
134
+ readonly type: "object";
135
+ readonly description: "A single finding from an agent audit or analysis.";
136
+ readonly required: readonly ["severity", "category", "message"];
137
+ readonly properties: {
138
+ readonly id: {
139
+ readonly type: "string";
140
+ readonly description: "Unique finding identifier.";
141
+ };
142
+ readonly severity: {
143
+ readonly type: "string";
144
+ readonly enum: readonly ["info", "warning", "error", "critical"];
145
+ };
146
+ readonly category: {
147
+ readonly type: "string";
148
+ readonly description: "Finding category (e.g. design_quality, public_surface).";
149
+ };
150
+ readonly target: {
151
+ readonly type: "string";
152
+ readonly description: "Target of the finding (path, schema name).";
153
+ };
154
+ readonly location: {
155
+ readonly type: "string";
156
+ readonly description: "Location within the target.";
157
+ };
158
+ readonly message: {
159
+ readonly type: "string";
160
+ };
161
+ readonly recommendation: {
162
+ readonly type: "string";
163
+ };
164
+ readonly confidence: {
165
+ readonly type: "number";
166
+ readonly minimum: 0;
167
+ readonly maximum: 1;
168
+ readonly description: "Confidence score (0-1) for LLM-generated findings.";
169
+ };
170
+ readonly evidence: {
171
+ readonly type: "array";
172
+ readonly items: {
173
+ readonly type: "object";
174
+ readonly description: "Evidence supporting an agent finding.";
175
+ readonly required: readonly ["kind"];
176
+ readonly properties: {
177
+ readonly kind: {
178
+ readonly type: "string";
179
+ readonly enum: readonly ["file", "command", "schema", "diff", "stdout", "stderr", "text"];
180
+ };
181
+ readonly target: {
182
+ readonly type: "string";
183
+ readonly description: "Target identifier (file path, command ID, schema name).";
184
+ };
185
+ readonly location: {
186
+ readonly type: "string";
187
+ readonly description: "Location within the target (line number, JSON pointer).";
188
+ };
189
+ readonly excerpt: {
190
+ readonly type: "string";
191
+ readonly description: "Relevant excerpt from the target.";
192
+ };
193
+ };
194
+ };
195
+ };
196
+ readonly details: {
197
+ readonly type: "object";
198
+ readonly additionalProperties: true;
199
+ };
200
+ };
201
+ };
202
+ };
203
+ readonly recommendedActions: {
204
+ readonly type: "array";
205
+ readonly items: {
206
+ readonly type: "object";
207
+ readonly description: "A recommended action from an agent audit.";
208
+ readonly required: readonly ["kind", "title"];
209
+ readonly properties: {
210
+ readonly kind: {
211
+ readonly type: "string";
212
+ readonly enum: readonly ["run_command", "edit_file", "review", "confirm", "block", "ignore"];
213
+ };
214
+ readonly title: {
215
+ readonly type: "string";
216
+ };
217
+ readonly command: {
218
+ readonly type: "string";
219
+ readonly description: "CLI command to run (for run_command kind).";
220
+ };
221
+ readonly target: {
222
+ readonly type: "string";
223
+ readonly description: "Target file or resource.";
224
+ };
225
+ readonly rationale: {
226
+ readonly type: "string";
227
+ };
228
+ };
229
+ };
230
+ };
231
+ readonly metadata: {
232
+ readonly type: "object";
233
+ readonly properties: {
234
+ readonly tool: {
235
+ readonly type: "string";
236
+ };
237
+ readonly command: {
238
+ readonly type: "string";
239
+ };
240
+ readonly version: {
241
+ readonly type: "string";
242
+ };
243
+ readonly generatedAt: {
244
+ readonly type: "string";
245
+ };
246
+ readonly adapter: {
247
+ readonly type: "string";
248
+ };
249
+ readonly model: {
250
+ readonly type: "string";
251
+ };
252
+ };
253
+ };
254
+ };
255
+ };
256
+ readonly PublishedReviewResult: {
257
+ readonly type: "object";
258
+ readonly description: "Result from review-published command. Contains published endpoint enumeration and internal type leakage analysis.";
259
+ readonly allOf: readonly [{
260
+ readonly type: "object";
261
+ readonly description: "Top-level result from an agent audit. Canonical schema for agent interoperability across toolchains.";
262
+ readonly required: readonly ["summary", "riskLevel", "findings"];
263
+ readonly properties: {
264
+ readonly summary: {
265
+ readonly type: "string";
266
+ };
267
+ readonly riskLevel: {
268
+ readonly type: "string";
269
+ readonly enum: readonly ["low", "medium", "high", "critical"];
270
+ };
271
+ readonly findings: {
272
+ readonly type: "array";
273
+ readonly items: {
274
+ readonly type: "object";
275
+ readonly description: "A single finding from an agent audit or analysis.";
276
+ readonly required: readonly ["severity", "category", "message"];
277
+ readonly properties: {
278
+ readonly id: {
279
+ readonly type: "string";
280
+ readonly description: "Unique finding identifier.";
281
+ };
282
+ readonly severity: {
283
+ readonly type: "string";
284
+ readonly enum: readonly ["info", "warning", "error", "critical"];
285
+ };
286
+ readonly category: {
287
+ readonly type: "string";
288
+ readonly description: "Finding category (e.g. design_quality, public_surface).";
289
+ };
290
+ readonly target: {
291
+ readonly type: "string";
292
+ readonly description: "Target of the finding (path, schema name).";
293
+ };
294
+ readonly location: {
295
+ readonly type: "string";
296
+ readonly description: "Location within the target.";
297
+ };
298
+ readonly message: {
299
+ readonly type: "string";
300
+ };
301
+ readonly recommendation: {
302
+ readonly type: "string";
303
+ };
304
+ readonly confidence: {
305
+ readonly type: "number";
306
+ readonly minimum: 0;
307
+ readonly maximum: 1;
308
+ readonly description: "Confidence score (0-1) for LLM-generated findings.";
309
+ };
310
+ readonly evidence: {
311
+ readonly type: "array";
312
+ readonly items: {
313
+ readonly type: "object";
314
+ readonly description: "Evidence supporting an agent finding.";
315
+ readonly required: readonly ["kind"];
316
+ readonly properties: {
317
+ readonly kind: {
318
+ readonly type: "string";
319
+ readonly enum: readonly ["file", "command", "schema", "diff", "stdout", "stderr", "text"];
320
+ };
321
+ readonly target: {
322
+ readonly type: "string";
323
+ readonly description: "Target identifier (file path, command ID, schema name).";
324
+ };
325
+ readonly location: {
326
+ readonly type: "string";
327
+ readonly description: "Location within the target (line number, JSON pointer).";
328
+ };
329
+ readonly excerpt: {
330
+ readonly type: "string";
331
+ readonly description: "Relevant excerpt from the target.";
332
+ };
333
+ };
334
+ };
335
+ };
336
+ readonly details: {
337
+ readonly type: "object";
338
+ readonly additionalProperties: true;
339
+ };
340
+ };
341
+ };
342
+ };
343
+ readonly recommendedActions: {
344
+ readonly type: "array";
345
+ readonly items: {
346
+ readonly type: "object";
347
+ readonly description: "A recommended action from an agent audit.";
348
+ readonly required: readonly ["kind", "title"];
349
+ readonly properties: {
350
+ readonly kind: {
351
+ readonly type: "string";
352
+ readonly enum: readonly ["run_command", "edit_file", "review", "confirm", "block", "ignore"];
353
+ };
354
+ readonly title: {
355
+ readonly type: "string";
356
+ };
357
+ readonly command: {
358
+ readonly type: "string";
359
+ readonly description: "CLI command to run (for run_command kind).";
360
+ };
361
+ readonly target: {
362
+ readonly type: "string";
363
+ readonly description: "Target file or resource.";
364
+ };
365
+ readonly rationale: {
366
+ readonly type: "string";
367
+ };
368
+ };
369
+ };
370
+ };
371
+ readonly metadata: {
372
+ readonly type: "object";
373
+ readonly properties: {
374
+ readonly tool: {
375
+ readonly type: "string";
376
+ };
377
+ readonly command: {
378
+ readonly type: "string";
379
+ };
380
+ readonly version: {
381
+ readonly type: "string";
382
+ };
383
+ readonly generatedAt: {
384
+ readonly type: "string";
385
+ };
386
+ readonly adapter: {
387
+ readonly type: "string";
388
+ };
389
+ readonly model: {
390
+ readonly type: "string";
391
+ };
392
+ };
393
+ };
394
+ };
395
+ }, {
396
+ readonly type: "object";
397
+ readonly required: readonly ["publishedEndpoints", "leakedInternalTypes"];
398
+ readonly properties: {
399
+ readonly publishedEndpoints: {
400
+ readonly type: "array";
401
+ readonly items: {
402
+ readonly type: "object";
403
+ readonly required: readonly ["operationId", "path", "method"];
404
+ readonly properties: {
405
+ readonly operationId: {
406
+ readonly type: "string";
407
+ };
408
+ readonly path: {
409
+ readonly type: "string";
410
+ };
411
+ readonly method: {
412
+ readonly type: "string";
413
+ };
414
+ };
415
+ };
416
+ };
417
+ readonly leakedInternalTypes: {
418
+ readonly type: "array";
419
+ readonly items: {
420
+ readonly type: "object";
421
+ readonly required: readonly ["schemaName", "referencedBy", "reason"];
422
+ readonly properties: {
423
+ readonly schemaName: {
424
+ readonly type: "string";
425
+ };
426
+ readonly referencedBy: {
427
+ readonly type: "string";
428
+ };
429
+ readonly reason: {
430
+ readonly type: "string";
431
+ };
432
+ };
433
+ };
434
+ };
435
+ };
436
+ }];
437
+ };
438
+ readonly OverlayProposalResult: {
439
+ readonly type: "object";
440
+ readonly description: "Result from propose-overlays command. Contains overlay candidate proposals with endpoint, type, rationale, and suggested config.";
441
+ readonly allOf: readonly [{
442
+ readonly type: "object";
443
+ readonly description: "Top-level result from an agent audit. Canonical schema for agent interoperability across toolchains.";
444
+ readonly required: readonly ["summary", "riskLevel", "findings"];
445
+ readonly properties: {
446
+ readonly summary: {
447
+ readonly type: "string";
448
+ };
449
+ readonly riskLevel: {
450
+ readonly type: "string";
451
+ readonly enum: readonly ["low", "medium", "high", "critical"];
452
+ };
453
+ readonly findings: {
454
+ readonly type: "array";
455
+ readonly items: {
456
+ readonly type: "object";
457
+ readonly description: "A single finding from an agent audit or analysis.";
458
+ readonly required: readonly ["severity", "category", "message"];
459
+ readonly properties: {
460
+ readonly id: {
461
+ readonly type: "string";
462
+ readonly description: "Unique finding identifier.";
463
+ };
464
+ readonly severity: {
465
+ readonly type: "string";
466
+ readonly enum: readonly ["info", "warning", "error", "critical"];
467
+ };
468
+ readonly category: {
469
+ readonly type: "string";
470
+ readonly description: "Finding category (e.g. design_quality, public_surface).";
471
+ };
472
+ readonly target: {
473
+ readonly type: "string";
474
+ readonly description: "Target of the finding (path, schema name).";
475
+ };
476
+ readonly location: {
477
+ readonly type: "string";
478
+ readonly description: "Location within the target.";
479
+ };
480
+ readonly message: {
481
+ readonly type: "string";
482
+ };
483
+ readonly recommendation: {
484
+ readonly type: "string";
485
+ };
486
+ readonly confidence: {
487
+ readonly type: "number";
488
+ readonly minimum: 0;
489
+ readonly maximum: 1;
490
+ readonly description: "Confidence score (0-1) for LLM-generated findings.";
491
+ };
492
+ readonly evidence: {
493
+ readonly type: "array";
494
+ readonly items: {
495
+ readonly type: "object";
496
+ readonly description: "Evidence supporting an agent finding.";
497
+ readonly required: readonly ["kind"];
498
+ readonly properties: {
499
+ readonly kind: {
500
+ readonly type: "string";
501
+ readonly enum: readonly ["file", "command", "schema", "diff", "stdout", "stderr", "text"];
502
+ };
503
+ readonly target: {
504
+ readonly type: "string";
505
+ readonly description: "Target identifier (file path, command ID, schema name).";
506
+ };
507
+ readonly location: {
508
+ readonly type: "string";
509
+ readonly description: "Location within the target (line number, JSON pointer).";
510
+ };
511
+ readonly excerpt: {
512
+ readonly type: "string";
513
+ readonly description: "Relevant excerpt from the target.";
514
+ };
515
+ };
516
+ };
517
+ };
518
+ readonly details: {
519
+ readonly type: "object";
520
+ readonly additionalProperties: true;
521
+ };
522
+ };
523
+ };
524
+ };
525
+ readonly recommendedActions: {
526
+ readonly type: "array";
527
+ readonly items: {
528
+ readonly type: "object";
529
+ readonly description: "A recommended action from an agent audit.";
530
+ readonly required: readonly ["kind", "title"];
531
+ readonly properties: {
532
+ readonly kind: {
533
+ readonly type: "string";
534
+ readonly enum: readonly ["run_command", "edit_file", "review", "confirm", "block", "ignore"];
535
+ };
536
+ readonly title: {
537
+ readonly type: "string";
538
+ };
539
+ readonly command: {
540
+ readonly type: "string";
541
+ readonly description: "CLI command to run (for run_command kind).";
542
+ };
543
+ readonly target: {
544
+ readonly type: "string";
545
+ readonly description: "Target file or resource.";
546
+ };
547
+ readonly rationale: {
548
+ readonly type: "string";
549
+ };
550
+ };
551
+ };
552
+ };
553
+ readonly metadata: {
554
+ readonly type: "object";
555
+ readonly properties: {
556
+ readonly tool: {
557
+ readonly type: "string";
558
+ };
559
+ readonly command: {
560
+ readonly type: "string";
561
+ };
562
+ readonly version: {
563
+ readonly type: "string";
564
+ };
565
+ readonly generatedAt: {
566
+ readonly type: "string";
567
+ };
568
+ readonly adapter: {
569
+ readonly type: "string";
570
+ };
571
+ readonly model: {
572
+ readonly type: "string";
573
+ };
574
+ };
575
+ };
576
+ };
577
+ }, {
578
+ readonly type: "object";
579
+ readonly required: readonly ["overlayCandidates"];
580
+ readonly properties: {
581
+ readonly overlayCandidates: {
582
+ readonly type: "array";
583
+ readonly items: {
584
+ readonly type: "object";
585
+ readonly required: readonly ["endpoint", "overlayType", "rationale"];
586
+ readonly properties: {
587
+ readonly endpoint: {
588
+ readonly type: "string";
589
+ };
590
+ readonly overlayType: {
591
+ readonly type: "string";
592
+ readonly enum: readonly ["auth", "tenancy", "rateLimit", "auditLog", "custom"];
593
+ };
594
+ readonly rationale: {
595
+ readonly type: "string";
596
+ };
597
+ readonly suggestedConfig: {
598
+ readonly type: "object";
599
+ readonly additionalProperties: true;
600
+ };
601
+ };
602
+ };
603
+ };
604
+ };
605
+ }];
606
+ };
607
+ readonly GuardrailsAuditResult: {
608
+ readonly type: "object";
609
+ readonly description: "Result from audit-guardrails command. Contains drift detection and lint rule coverage analysis.";
610
+ readonly allOf: readonly [{
611
+ readonly type: "object";
612
+ readonly description: "Top-level result from an agent audit. Canonical schema for agent interoperability across toolchains.";
613
+ readonly required: readonly ["summary", "riskLevel", "findings"];
614
+ readonly properties: {
615
+ readonly summary: {
616
+ readonly type: "string";
617
+ };
618
+ readonly riskLevel: {
619
+ readonly type: "string";
620
+ readonly enum: readonly ["low", "medium", "high", "critical"];
621
+ };
622
+ readonly findings: {
623
+ readonly type: "array";
624
+ readonly items: {
625
+ readonly type: "object";
626
+ readonly description: "A single finding from an agent audit or analysis.";
627
+ readonly required: readonly ["severity", "category", "message"];
628
+ readonly properties: {
629
+ readonly id: {
630
+ readonly type: "string";
631
+ readonly description: "Unique finding identifier.";
632
+ };
633
+ readonly severity: {
634
+ readonly type: "string";
635
+ readonly enum: readonly ["info", "warning", "error", "critical"];
636
+ };
637
+ readonly category: {
638
+ readonly type: "string";
639
+ readonly description: "Finding category (e.g. design_quality, public_surface).";
640
+ };
641
+ readonly target: {
642
+ readonly type: "string";
643
+ readonly description: "Target of the finding (path, schema name).";
644
+ };
645
+ readonly location: {
646
+ readonly type: "string";
647
+ readonly description: "Location within the target.";
648
+ };
649
+ readonly message: {
650
+ readonly type: "string";
651
+ };
652
+ readonly recommendation: {
653
+ readonly type: "string";
654
+ };
655
+ readonly confidence: {
656
+ readonly type: "number";
657
+ readonly minimum: 0;
658
+ readonly maximum: 1;
659
+ readonly description: "Confidence score (0-1) for LLM-generated findings.";
660
+ };
661
+ readonly evidence: {
662
+ readonly type: "array";
663
+ readonly items: {
664
+ readonly type: "object";
665
+ readonly description: "Evidence supporting an agent finding.";
666
+ readonly required: readonly ["kind"];
667
+ readonly properties: {
668
+ readonly kind: {
669
+ readonly type: "string";
670
+ readonly enum: readonly ["file", "command", "schema", "diff", "stdout", "stderr", "text"];
671
+ };
672
+ readonly target: {
673
+ readonly type: "string";
674
+ readonly description: "Target identifier (file path, command ID, schema name).";
675
+ };
676
+ readonly location: {
677
+ readonly type: "string";
678
+ readonly description: "Location within the target (line number, JSON pointer).";
679
+ };
680
+ readonly excerpt: {
681
+ readonly type: "string";
682
+ readonly description: "Relevant excerpt from the target.";
683
+ };
684
+ };
685
+ };
686
+ };
687
+ readonly details: {
688
+ readonly type: "object";
689
+ readonly additionalProperties: true;
690
+ };
691
+ };
692
+ };
693
+ };
694
+ readonly recommendedActions: {
695
+ readonly type: "array";
696
+ readonly items: {
697
+ readonly type: "object";
698
+ readonly description: "A recommended action from an agent audit.";
699
+ readonly required: readonly ["kind", "title"];
700
+ readonly properties: {
701
+ readonly kind: {
702
+ readonly type: "string";
703
+ readonly enum: readonly ["run_command", "edit_file", "review", "confirm", "block", "ignore"];
704
+ };
705
+ readonly title: {
706
+ readonly type: "string";
707
+ };
708
+ readonly command: {
709
+ readonly type: "string";
710
+ readonly description: "CLI command to run (for run_command kind).";
711
+ };
712
+ readonly target: {
713
+ readonly type: "string";
714
+ readonly description: "Target file or resource.";
715
+ };
716
+ readonly rationale: {
717
+ readonly type: "string";
718
+ };
719
+ };
720
+ };
721
+ };
722
+ readonly metadata: {
723
+ readonly type: "object";
724
+ readonly properties: {
725
+ readonly tool: {
726
+ readonly type: "string";
727
+ };
728
+ readonly command: {
729
+ readonly type: "string";
730
+ };
731
+ readonly version: {
732
+ readonly type: "string";
733
+ };
734
+ readonly generatedAt: {
735
+ readonly type: "string";
736
+ };
737
+ readonly adapter: {
738
+ readonly type: "string";
739
+ };
740
+ readonly model: {
741
+ readonly type: "string";
742
+ };
743
+ };
744
+ };
745
+ };
746
+ }, {
747
+ readonly type: "object";
748
+ readonly required: readonly ["coveredPaths", "uncoveredPaths"];
749
+ readonly properties: {
750
+ readonly coveredPaths: {
751
+ readonly type: "array";
752
+ readonly items: {
753
+ readonly type: "string";
754
+ };
755
+ };
756
+ readonly uncoveredPaths: {
757
+ readonly type: "array";
758
+ readonly items: {
759
+ readonly type: "string";
760
+ };
761
+ };
762
+ };
763
+ }];
764
+ };
765
+ };
766
+ export declare const generateExitCodes: readonly [0, 1];
767
+ export declare const lintExitCodes: readonly [0, 1];
768
+ export declare const initExitCodes: readonly [0, 1];
769
+ export declare const checkExitCodes: readonly [0, 1];
770
+ export declare const pipelineExitCodes: readonly [0, 1];
771
+ export declare const depsExitCodes: readonly [0, 1];
772
+ export declare const guardrailsInitExitCodes: readonly [0, 1];
773
+ export declare const manifestExitCodes: readonly [0, 1];
774
+ export declare const auditOpenapiExitCodes: readonly [0, 1, 3, 10, 11, 12];
775
+ export declare const reviewPublishedExitCodes: readonly [0, 1, 3, 10, 11, 12];
776
+ export declare const proposeOverlaysExitCodes: readonly [0, 1, 3, 10, 11, 12];
777
+ export declare const auditGuardrailsExitCodes: readonly [0, 1, 3, 10, 11, 12];
778
+ //# sourceMappingURL=schemas.d.ts.map