micro-contracts 0.16.3 → 0.17.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.
Files changed (183) hide show
  1. package/cli-contract.yaml +0 -32
  2. package/dist/micro-contracts.bundle.mjs +4682 -0
  3. package/dist/micro-contracts.bundle.mjs.map +7 -0
  4. package/docs/cli-reference.md +0 -28
  5. package/package.json +20 -23
  6. package/dist/agents/context-builder.d.ts +0 -5
  7. package/dist/agents/context-builder.d.ts.map +0 -1
  8. package/dist/agents/context-builder.js +0 -239
  9. package/dist/agents/context-builder.js.map +0 -1
  10. package/dist/agents/formatter.d.ts +0 -9
  11. package/dist/agents/formatter.d.ts.map +0 -1
  12. package/dist/agents/formatter.js +0 -124
  13. package/dist/agents/formatter.js.map +0 -1
  14. package/dist/agents/index.d.ts +0 -5
  15. package/dist/agents/index.d.ts.map +0 -1
  16. package/dist/agents/index.js +0 -3
  17. package/dist/agents/index.js.map +0 -1
  18. package/dist/agents/orchestrator.d.ts +0 -5
  19. package/dist/agents/orchestrator.d.ts.map +0 -1
  20. package/dist/agents/orchestrator.js +0 -105
  21. package/dist/agents/orchestrator.js.map +0 -1
  22. package/dist/agents/types.d.ts +0 -21
  23. package/dist/agents/types.d.ts.map +0 -1
  24. package/dist/agents/types.js +0 -2
  25. package/dist/agents/types.js.map +0 -1
  26. package/dist/cli/templates.d.ts +0 -22
  27. package/dist/cli/templates.d.ts.map +0 -1
  28. package/dist/cli/templates.js +0 -445
  29. package/dist/cli/templates.js.map +0 -1
  30. package/dist/cli.d.ts +0 -3
  31. package/dist/cli.d.ts.map +0 -1
  32. package/dist/cli.js +0 -1142
  33. package/dist/cli.js.map +0 -1
  34. package/dist/commands/audit-guardrails.d.ts +0 -13
  35. package/dist/commands/audit-guardrails.d.ts.map +0 -1
  36. package/dist/commands/audit-guardrails.js +0 -32
  37. package/dist/commands/audit-guardrails.js.map +0 -1
  38. package/dist/commands/audit-openapi.d.ts +0 -13
  39. package/dist/commands/audit-openapi.d.ts.map +0 -1
  40. package/dist/commands/audit-openapi.js +0 -32
  41. package/dist/commands/audit-openapi.js.map +0 -1
  42. package/dist/commands/propose-overlays.d.ts +0 -13
  43. package/dist/commands/propose-overlays.d.ts.map +0 -1
  44. package/dist/commands/propose-overlays.js +0 -32
  45. package/dist/commands/propose-overlays.js.map +0 -1
  46. package/dist/commands/review-published.d.ts +0 -13
  47. package/dist/commands/review-published.d.ts.map +0 -1
  48. package/dist/commands/review-published.js +0 -32
  49. package/dist/commands/review-published.js.map +0 -1
  50. package/dist/generated/commands.d.ts +0 -2
  51. package/dist/generated/commands.d.ts.map +0 -1
  52. package/dist/generated/commands.js +0 -2
  53. package/dist/generated/commands.js.map +0 -1
  54. package/dist/generated/dsl/agents.d.ts +0 -34
  55. package/dist/generated/dsl/agents.d.ts.map +0 -1
  56. package/dist/generated/dsl/agents.js +0 -98
  57. package/dist/generated/dsl/agents.js.map +0 -1
  58. package/dist/generated/dsl/handoffs.d.ts +0 -457
  59. package/dist/generated/dsl/handoffs.d.ts.map +0 -1
  60. package/dist/generated/dsl/handoffs.js +0 -205
  61. package/dist/generated/dsl/handoffs.js.map +0 -1
  62. package/dist/generated/dsl/index.d.ts +0 -13
  63. package/dist/generated/dsl/index.d.ts.map +0 -1
  64. package/dist/generated/dsl/index.js +0 -10
  65. package/dist/generated/dsl/index.js.map +0 -1
  66. package/dist/generated/dsl/tasks.d.ts +0 -26
  67. package/dist/generated/dsl/tasks.d.ts.map +0 -1
  68. package/dist/generated/dsl/tasks.js +0 -133
  69. package/dist/generated/dsl/tasks.js.map +0 -1
  70. package/dist/generated/dsl/workflows.d.ts +0 -34
  71. package/dist/generated/dsl/workflows.d.ts.map +0 -1
  72. package/dist/generated/dsl/workflows.js +0 -84
  73. package/dist/generated/dsl/workflows.js.map +0 -1
  74. package/dist/generated/index.d.ts +0 -7
  75. package/dist/generated/index.d.ts.map +0 -1
  76. package/dist/generated/index.js +0 -7
  77. package/dist/generated/index.js.map +0 -1
  78. package/dist/generated/policy-runtime.d.ts +0 -114
  79. package/dist/generated/policy-runtime.d.ts.map +0 -1
  80. package/dist/generated/policy-runtime.js +0 -195
  81. package/dist/generated/policy-runtime.js.map +0 -1
  82. package/dist/generated/policy.d.ts +0 -619
  83. package/dist/generated/policy.d.ts.map +0 -1
  84. package/dist/generated/policy.js +0 -802
  85. package/dist/generated/policy.js.map +0 -1
  86. package/dist/generated/program.d.ts +0 -112
  87. package/dist/generated/program.d.ts.map +0 -1
  88. package/dist/generated/program.js +0 -266
  89. package/dist/generated/program.js.map +0 -1
  90. package/dist/generated/schemas.d.ts +0 -778
  91. package/dist/generated/schemas.d.ts.map +0 -1
  92. package/dist/generated/schemas.js +0 -1005
  93. package/dist/generated/schemas.js.map +0 -1
  94. package/dist/generated/types.d.ts +0 -395
  95. package/dist/generated/types.d.ts.map +0 -1
  96. package/dist/generated/types.js +0 -3
  97. package/dist/generated/types.js.map +0 -1
  98. package/dist/generator/dependencyGenerator.d.ts +0 -43
  99. package/dist/generator/dependencyGenerator.d.ts.map +0 -1
  100. package/dist/generator/dependencyGenerator.js +0 -159
  101. package/dist/generator/dependencyGenerator.js.map +0 -1
  102. package/dist/generator/index.d.ts +0 -39
  103. package/dist/generator/index.d.ts.map +0 -1
  104. package/dist/generator/index.js +0 -720
  105. package/dist/generator/index.js.map +0 -1
  106. package/dist/generator/inputHash.d.ts +0 -23
  107. package/dist/generator/inputHash.d.ts.map +0 -1
  108. package/dist/generator/inputHash.js +0 -145
  109. package/dist/generator/inputHash.js.map +0 -1
  110. package/dist/generator/linter.d.ts +0 -26
  111. package/dist/generator/linter.d.ts.map +0 -1
  112. package/dist/generator/linter.js +0 -352
  113. package/dist/generator/linter.js.map +0 -1
  114. package/dist/generator/overlayProcessor.d.ts +0 -90
  115. package/dist/generator/overlayProcessor.d.ts.map +0 -1
  116. package/dist/generator/overlayProcessor.js +0 -541
  117. package/dist/generator/overlayProcessor.js.map +0 -1
  118. package/dist/generator/schemaGenerator.d.ts +0 -10
  119. package/dist/generator/schemaGenerator.d.ts.map +0 -1
  120. package/dist/generator/schemaGenerator.js +0 -299
  121. package/dist/generator/schemaGenerator.js.map +0 -1
  122. package/dist/generator/serviceGenerator.d.ts +0 -41
  123. package/dist/generator/serviceGenerator.d.ts.map +0 -1
  124. package/dist/generator/serviceGenerator.js +0 -296
  125. package/dist/generator/serviceGenerator.js.map +0 -1
  126. package/dist/generator/templateProcessor.d.ts +0 -245
  127. package/dist/generator/templateProcessor.d.ts.map +0 -1
  128. package/dist/generator/templateProcessor.js +0 -821
  129. package/dist/generator/templateProcessor.js.map +0 -1
  130. package/dist/generator/typeGenerator.d.ts +0 -9
  131. package/dist/generator/typeGenerator.d.ts.map +0 -1
  132. package/dist/generator/typeGenerator.js +0 -424
  133. package/dist/generator/typeGenerator.js.map +0 -1
  134. package/dist/generator/typeGenerator.test.d.ts +0 -2
  135. package/dist/generator/typeGenerator.test.d.ts.map +0 -1
  136. package/dist/generator/typeGenerator.test.js +0 -122
  137. package/dist/generator/typeGenerator.test.js.map +0 -1
  138. package/dist/guardrails/allowlist.d.ts +0 -45
  139. package/dist/guardrails/allowlist.d.ts.map +0 -1
  140. package/dist/guardrails/allowlist.js +0 -261
  141. package/dist/guardrails/allowlist.js.map +0 -1
  142. package/dist/guardrails/config.d.ts +0 -40
  143. package/dist/guardrails/config.d.ts.map +0 -1
  144. package/dist/guardrails/config.js +0 -174
  145. package/dist/guardrails/config.js.map +0 -1
  146. package/dist/guardrails/docs.d.ts +0 -24
  147. package/dist/guardrails/docs.d.ts.map +0 -1
  148. package/dist/guardrails/docs.js +0 -138
  149. package/dist/guardrails/docs.js.map +0 -1
  150. package/dist/guardrails/drift.d.ts +0 -23
  151. package/dist/guardrails/drift.d.ts.map +0 -1
  152. package/dist/guardrails/drift.js +0 -127
  153. package/dist/guardrails/drift.js.map +0 -1
  154. package/dist/guardrails/index.d.ts +0 -19
  155. package/dist/guardrails/index.d.ts.map +0 -1
  156. package/dist/guardrails/index.js +0 -23
  157. package/dist/guardrails/index.js.map +0 -1
  158. package/dist/guardrails/lint.d.ts +0 -20
  159. package/dist/guardrails/lint.d.ts.map +0 -1
  160. package/dist/guardrails/lint.js +0 -274
  161. package/dist/guardrails/lint.js.map +0 -1
  162. package/dist/guardrails/manifest.d.ts +0 -63
  163. package/dist/guardrails/manifest.d.ts.map +0 -1
  164. package/dist/guardrails/manifest.js +0 -299
  165. package/dist/guardrails/manifest.js.map +0 -1
  166. package/dist/guardrails/runner.d.ts +0 -43
  167. package/dist/guardrails/runner.d.ts.map +0 -1
  168. package/dist/guardrails/runner.js +0 -365
  169. package/dist/guardrails/runner.js.map +0 -1
  170. package/dist/guardrails/typecheck.d.ts +0 -15
  171. package/dist/guardrails/typecheck.d.ts.map +0 -1
  172. package/dist/guardrails/typecheck.js +0 -104
  173. package/dist/guardrails/typecheck.js.map +0 -1
  174. package/dist/guardrails/types.d.ts +0 -202
  175. package/dist/guardrails/types.d.ts.map +0 -1
  176. package/dist/guardrails/types.js +0 -8
  177. package/dist/guardrails/types.js.map +0 -1
  178. package/dist/index.d.ts.map +0 -1
  179. package/dist/index.js.map +0 -1
  180. package/dist/types.d.ts +0 -583
  181. package/dist/types.d.ts.map +0 -1
  182. package/dist/types.js +0 -305
  183. package/dist/types.js.map +0 -1
@@ -1,778 +0,0 @@
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