micro-contracts 0.14.4 → 0.15.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.
Files changed (92) hide show
  1. package/README.md +62 -0
  2. package/cli-contract.yaml +706 -69
  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 +328 -28
  92. package/package.json +21 -3
@@ -0,0 +1,1209 @@
1
+ /**
2
+ * AUTO-GENERATED by agent-contracts-runtime. DO NOT EDIT.
3
+ *
4
+ * Regenerate via: npx agent-runtime generate
5
+ */
6
+ import { z } from "zod";
7
+ export declare const OpenapiAuditRequestSchema: z.ZodObject<{
8
+ task_id: z.ZodString;
9
+ context: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ task_id: string;
12
+ context: string;
13
+ }, {
14
+ task_id: string;
15
+ context: string;
16
+ }>;
17
+ export type OpenapiAuditRequest = z.infer<typeof OpenapiAuditRequestSchema>;
18
+ export declare const OpenapiAuditResultSchema: z.ZodObject<{
19
+ summary: z.ZodString;
20
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
21
+ findings: z.ZodArray<z.ZodObject<{
22
+ id: z.ZodOptional<z.ZodString>;
23
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
24
+ category: z.ZodString;
25
+ target: z.ZodOptional<z.ZodString>;
26
+ location: z.ZodOptional<z.ZodString>;
27
+ message: z.ZodString;
28
+ recommendation: z.ZodOptional<z.ZodString>;
29
+ confidence: z.ZodOptional<z.ZodNumber>;
30
+ evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
+ kind: z.ZodOptional<z.ZodEnum<["file", "command", "schema", "diff", "stdout", "stderr", "text"]>>;
32
+ target: z.ZodOptional<z.ZodString>;
33
+ location: z.ZodOptional<z.ZodString>;
34
+ excerpt: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ target?: string | undefined;
37
+ location?: string | undefined;
38
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
39
+ excerpt?: string | undefined;
40
+ }, {
41
+ target?: string | undefined;
42
+ location?: string | undefined;
43
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
44
+ excerpt?: string | undefined;
45
+ }>, "many">>;
46
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ message: string;
49
+ severity: "critical" | "warning" | "error" | "info";
50
+ category: string;
51
+ target?: string | undefined;
52
+ details?: Record<string, unknown> | undefined;
53
+ id?: string | undefined;
54
+ location?: string | undefined;
55
+ recommendation?: string | undefined;
56
+ confidence?: number | undefined;
57
+ evidence?: {
58
+ target?: string | undefined;
59
+ location?: string | undefined;
60
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
61
+ excerpt?: string | undefined;
62
+ }[] | undefined;
63
+ }, {
64
+ message: string;
65
+ severity: "critical" | "warning" | "error" | "info";
66
+ category: string;
67
+ target?: string | undefined;
68
+ details?: Record<string, unknown> | undefined;
69
+ id?: string | undefined;
70
+ location?: string | undefined;
71
+ recommendation?: string | undefined;
72
+ confidence?: number | undefined;
73
+ evidence?: {
74
+ target?: string | undefined;
75
+ location?: string | undefined;
76
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
77
+ excerpt?: string | undefined;
78
+ }[] | undefined;
79
+ }>, "many">;
80
+ recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
+ kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
82
+ title: z.ZodString;
83
+ command: z.ZodOptional<z.ZodString>;
84
+ target: z.ZodOptional<z.ZodString>;
85
+ rationale: z.ZodOptional<z.ZodString>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
88
+ title: string;
89
+ target?: string | undefined;
90
+ command?: string | undefined;
91
+ rationale?: string | undefined;
92
+ }, {
93
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
94
+ title: string;
95
+ target?: string | undefined;
96
+ command?: string | undefined;
97
+ rationale?: string | undefined;
98
+ }>, "many">>;
99
+ metadata: z.ZodOptional<z.ZodObject<{
100
+ tool: z.ZodOptional<z.ZodString>;
101
+ command: z.ZodOptional<z.ZodString>;
102
+ version: z.ZodOptional<z.ZodString>;
103
+ generatedAt: z.ZodOptional<z.ZodString>;
104
+ adapter: z.ZodOptional<z.ZodString>;
105
+ model: z.ZodOptional<z.ZodString>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ adapter?: string | undefined;
108
+ model?: string | undefined;
109
+ command?: string | undefined;
110
+ tool?: string | undefined;
111
+ version?: string | undefined;
112
+ generatedAt?: string | undefined;
113
+ }, {
114
+ adapter?: string | undefined;
115
+ model?: string | undefined;
116
+ command?: string | undefined;
117
+ tool?: string | undefined;
118
+ version?: string | undefined;
119
+ generatedAt?: string | undefined;
120
+ }>>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ summary: string;
123
+ riskLevel: "low" | "medium" | "high" | "critical";
124
+ findings: {
125
+ message: string;
126
+ severity: "critical" | "warning" | "error" | "info";
127
+ category: string;
128
+ target?: string | undefined;
129
+ details?: Record<string, unknown> | undefined;
130
+ id?: string | undefined;
131
+ location?: string | undefined;
132
+ recommendation?: string | undefined;
133
+ confidence?: number | undefined;
134
+ evidence?: {
135
+ target?: string | undefined;
136
+ location?: string | undefined;
137
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
138
+ excerpt?: string | undefined;
139
+ }[] | undefined;
140
+ }[];
141
+ recommendedActions?: {
142
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
143
+ title: string;
144
+ target?: string | undefined;
145
+ command?: string | undefined;
146
+ rationale?: string | undefined;
147
+ }[] | undefined;
148
+ metadata?: {
149
+ adapter?: string | undefined;
150
+ model?: string | undefined;
151
+ command?: string | undefined;
152
+ tool?: string | undefined;
153
+ version?: string | undefined;
154
+ generatedAt?: string | undefined;
155
+ } | undefined;
156
+ }, {
157
+ summary: string;
158
+ riskLevel: "low" | "medium" | "high" | "critical";
159
+ findings: {
160
+ message: string;
161
+ severity: "critical" | "warning" | "error" | "info";
162
+ category: string;
163
+ target?: string | undefined;
164
+ details?: Record<string, unknown> | undefined;
165
+ id?: string | undefined;
166
+ location?: string | undefined;
167
+ recommendation?: string | undefined;
168
+ confidence?: number | undefined;
169
+ evidence?: {
170
+ target?: string | undefined;
171
+ location?: string | undefined;
172
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
173
+ excerpt?: string | undefined;
174
+ }[] | undefined;
175
+ }[];
176
+ recommendedActions?: {
177
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
178
+ title: string;
179
+ target?: string | undefined;
180
+ command?: string | undefined;
181
+ rationale?: string | undefined;
182
+ }[] | undefined;
183
+ metadata?: {
184
+ adapter?: string | undefined;
185
+ model?: string | undefined;
186
+ command?: string | undefined;
187
+ tool?: string | undefined;
188
+ version?: string | undefined;
189
+ generatedAt?: string | undefined;
190
+ } | undefined;
191
+ }>;
192
+ export type OpenapiAuditResult = z.infer<typeof OpenapiAuditResultSchema>;
193
+ export declare const PublishedReviewResultSchema: z.ZodObject<{
194
+ summary: z.ZodString;
195
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
196
+ findings: z.ZodArray<z.ZodObject<{
197
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
198
+ category: z.ZodString;
199
+ message: z.ZodString;
200
+ recommendation: z.ZodOptional<z.ZodString>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ message: string;
203
+ severity: "critical" | "warning" | "error" | "info";
204
+ category: string;
205
+ recommendation?: string | undefined;
206
+ }, {
207
+ message: string;
208
+ severity: "critical" | "warning" | "error" | "info";
209
+ category: string;
210
+ recommendation?: string | undefined;
211
+ }>, "many">;
212
+ publishedEndpoints: z.ZodArray<z.ZodObject<{
213
+ operationId: z.ZodString;
214
+ path: z.ZodString;
215
+ method: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ path: string;
218
+ operationId: string;
219
+ method: string;
220
+ }, {
221
+ path: string;
222
+ operationId: string;
223
+ method: string;
224
+ }>, "many">;
225
+ leakedInternalTypes: z.ZodArray<z.ZodObject<{
226
+ schemaName: z.ZodString;
227
+ referencedBy: z.ZodString;
228
+ reason: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ schemaName: string;
231
+ reason: string;
232
+ referencedBy: string;
233
+ }, {
234
+ schemaName: string;
235
+ reason: string;
236
+ referencedBy: string;
237
+ }>, "many">;
238
+ recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
239
+ kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
240
+ title: z.ZodString;
241
+ command: z.ZodOptional<z.ZodString>;
242
+ target: z.ZodOptional<z.ZodString>;
243
+ rationale: z.ZodOptional<z.ZodString>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
246
+ title: string;
247
+ target?: string | undefined;
248
+ command?: string | undefined;
249
+ rationale?: string | undefined;
250
+ }, {
251
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
252
+ title: string;
253
+ target?: string | undefined;
254
+ command?: string | undefined;
255
+ rationale?: string | undefined;
256
+ }>, "many">>;
257
+ metadata: z.ZodOptional<z.ZodObject<{
258
+ tool: z.ZodOptional<z.ZodString>;
259
+ command: z.ZodOptional<z.ZodString>;
260
+ version: z.ZodOptional<z.ZodString>;
261
+ generatedAt: z.ZodOptional<z.ZodString>;
262
+ adapter: z.ZodOptional<z.ZodString>;
263
+ model: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ adapter?: string | undefined;
266
+ model?: string | undefined;
267
+ command?: string | undefined;
268
+ tool?: string | undefined;
269
+ version?: string | undefined;
270
+ generatedAt?: string | undefined;
271
+ }, {
272
+ adapter?: string | undefined;
273
+ model?: string | undefined;
274
+ command?: string | undefined;
275
+ tool?: string | undefined;
276
+ version?: string | undefined;
277
+ generatedAt?: string | undefined;
278
+ }>>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ summary: string;
281
+ riskLevel: "low" | "medium" | "high" | "critical";
282
+ findings: {
283
+ message: string;
284
+ severity: "critical" | "warning" | "error" | "info";
285
+ category: string;
286
+ recommendation?: string | undefined;
287
+ }[];
288
+ publishedEndpoints: {
289
+ path: string;
290
+ operationId: string;
291
+ method: string;
292
+ }[];
293
+ leakedInternalTypes: {
294
+ schemaName: string;
295
+ reason: string;
296
+ referencedBy: string;
297
+ }[];
298
+ recommendedActions?: {
299
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
300
+ title: string;
301
+ target?: string | undefined;
302
+ command?: string | undefined;
303
+ rationale?: string | undefined;
304
+ }[] | undefined;
305
+ metadata?: {
306
+ adapter?: string | undefined;
307
+ model?: string | undefined;
308
+ command?: string | undefined;
309
+ tool?: string | undefined;
310
+ version?: string | undefined;
311
+ generatedAt?: string | undefined;
312
+ } | undefined;
313
+ }, {
314
+ summary: string;
315
+ riskLevel: "low" | "medium" | "high" | "critical";
316
+ findings: {
317
+ message: string;
318
+ severity: "critical" | "warning" | "error" | "info";
319
+ category: string;
320
+ recommendation?: string | undefined;
321
+ }[];
322
+ publishedEndpoints: {
323
+ path: string;
324
+ operationId: string;
325
+ method: string;
326
+ }[];
327
+ leakedInternalTypes: {
328
+ schemaName: string;
329
+ reason: string;
330
+ referencedBy: string;
331
+ }[];
332
+ recommendedActions?: {
333
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
334
+ title: string;
335
+ target?: string | undefined;
336
+ command?: string | undefined;
337
+ rationale?: string | undefined;
338
+ }[] | undefined;
339
+ metadata?: {
340
+ adapter?: string | undefined;
341
+ model?: string | undefined;
342
+ command?: string | undefined;
343
+ tool?: string | undefined;
344
+ version?: string | undefined;
345
+ generatedAt?: string | undefined;
346
+ } | undefined;
347
+ }>;
348
+ export type PublishedReviewResult = z.infer<typeof PublishedReviewResultSchema>;
349
+ export declare const OverlayProposalResultSchema: z.ZodObject<{
350
+ summary: z.ZodString;
351
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
352
+ findings: z.ZodArray<z.ZodObject<{
353
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
354
+ category: z.ZodString;
355
+ message: z.ZodString;
356
+ recommendation: z.ZodOptional<z.ZodString>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ message: string;
359
+ severity: "critical" | "warning" | "error" | "info";
360
+ category: string;
361
+ recommendation?: string | undefined;
362
+ }, {
363
+ message: string;
364
+ severity: "critical" | "warning" | "error" | "info";
365
+ category: string;
366
+ recommendation?: string | undefined;
367
+ }>, "many">;
368
+ overlayCandidates: z.ZodArray<z.ZodObject<{
369
+ endpoint: z.ZodString;
370
+ overlayType: z.ZodEnum<["auth", "tenancy", "rateLimit", "auditLog", "custom"]>;
371
+ rationale: z.ZodString;
372
+ suggestedConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ rationale: string;
375
+ endpoint: string;
376
+ overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
377
+ suggestedConfig?: Record<string, unknown> | undefined;
378
+ }, {
379
+ rationale: string;
380
+ endpoint: string;
381
+ overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
382
+ suggestedConfig?: Record<string, unknown> | undefined;
383
+ }>, "many">;
384
+ recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
385
+ kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
386
+ title: z.ZodString;
387
+ command: z.ZodOptional<z.ZodString>;
388
+ target: z.ZodOptional<z.ZodString>;
389
+ rationale: z.ZodOptional<z.ZodString>;
390
+ }, "strip", z.ZodTypeAny, {
391
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
392
+ title: string;
393
+ target?: string | undefined;
394
+ command?: string | undefined;
395
+ rationale?: string | undefined;
396
+ }, {
397
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
398
+ title: string;
399
+ target?: string | undefined;
400
+ command?: string | undefined;
401
+ rationale?: string | undefined;
402
+ }>, "many">>;
403
+ metadata: z.ZodOptional<z.ZodObject<{
404
+ tool: z.ZodOptional<z.ZodString>;
405
+ command: z.ZodOptional<z.ZodString>;
406
+ version: z.ZodOptional<z.ZodString>;
407
+ generatedAt: z.ZodOptional<z.ZodString>;
408
+ adapter: z.ZodOptional<z.ZodString>;
409
+ model: z.ZodOptional<z.ZodString>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ adapter?: string | undefined;
412
+ model?: string | undefined;
413
+ command?: string | undefined;
414
+ tool?: string | undefined;
415
+ version?: string | undefined;
416
+ generatedAt?: string | undefined;
417
+ }, {
418
+ adapter?: string | undefined;
419
+ model?: string | undefined;
420
+ command?: string | undefined;
421
+ tool?: string | undefined;
422
+ version?: string | undefined;
423
+ generatedAt?: string | undefined;
424
+ }>>;
425
+ }, "strip", z.ZodTypeAny, {
426
+ summary: string;
427
+ riskLevel: "low" | "medium" | "high" | "critical";
428
+ findings: {
429
+ message: string;
430
+ severity: "critical" | "warning" | "error" | "info";
431
+ category: string;
432
+ recommendation?: string | undefined;
433
+ }[];
434
+ overlayCandidates: {
435
+ rationale: string;
436
+ endpoint: string;
437
+ overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
438
+ suggestedConfig?: Record<string, unknown> | undefined;
439
+ }[];
440
+ recommendedActions?: {
441
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
442
+ title: string;
443
+ target?: string | undefined;
444
+ command?: string | undefined;
445
+ rationale?: string | undefined;
446
+ }[] | undefined;
447
+ metadata?: {
448
+ adapter?: string | undefined;
449
+ model?: string | undefined;
450
+ command?: string | undefined;
451
+ tool?: string | undefined;
452
+ version?: string | undefined;
453
+ generatedAt?: string | undefined;
454
+ } | undefined;
455
+ }, {
456
+ summary: string;
457
+ riskLevel: "low" | "medium" | "high" | "critical";
458
+ findings: {
459
+ message: string;
460
+ severity: "critical" | "warning" | "error" | "info";
461
+ category: string;
462
+ recommendation?: string | undefined;
463
+ }[];
464
+ overlayCandidates: {
465
+ rationale: string;
466
+ endpoint: string;
467
+ overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
468
+ suggestedConfig?: Record<string, unknown> | undefined;
469
+ }[];
470
+ recommendedActions?: {
471
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
472
+ title: string;
473
+ target?: string | undefined;
474
+ command?: string | undefined;
475
+ rationale?: string | undefined;
476
+ }[] | undefined;
477
+ metadata?: {
478
+ adapter?: string | undefined;
479
+ model?: string | undefined;
480
+ command?: string | undefined;
481
+ tool?: string | undefined;
482
+ version?: string | undefined;
483
+ generatedAt?: string | undefined;
484
+ } | undefined;
485
+ }>;
486
+ export type OverlayProposalResult = z.infer<typeof OverlayProposalResultSchema>;
487
+ export declare const GuardrailsAuditResultSchema: z.ZodObject<{
488
+ summary: z.ZodString;
489
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
490
+ findings: z.ZodArray<z.ZodObject<{
491
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
492
+ category: z.ZodString;
493
+ message: z.ZodString;
494
+ recommendation: z.ZodOptional<z.ZodString>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ message: string;
497
+ severity: "critical" | "warning" | "error" | "info";
498
+ category: string;
499
+ recommendation?: string | undefined;
500
+ }, {
501
+ message: string;
502
+ severity: "critical" | "warning" | "error" | "info";
503
+ category: string;
504
+ recommendation?: string | undefined;
505
+ }>, "many">;
506
+ coveredPaths: z.ZodArray<z.ZodString, "many">;
507
+ uncoveredPaths: z.ZodArray<z.ZodString, "many">;
508
+ recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
509
+ kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
510
+ title: z.ZodString;
511
+ command: z.ZodOptional<z.ZodString>;
512
+ target: z.ZodOptional<z.ZodString>;
513
+ rationale: z.ZodOptional<z.ZodString>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
516
+ title: string;
517
+ target?: string | undefined;
518
+ command?: string | undefined;
519
+ rationale?: string | undefined;
520
+ }, {
521
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
522
+ title: string;
523
+ target?: string | undefined;
524
+ command?: string | undefined;
525
+ rationale?: string | undefined;
526
+ }>, "many">>;
527
+ metadata: z.ZodOptional<z.ZodObject<{
528
+ tool: z.ZodOptional<z.ZodString>;
529
+ command: z.ZodOptional<z.ZodString>;
530
+ version: z.ZodOptional<z.ZodString>;
531
+ generatedAt: z.ZodOptional<z.ZodString>;
532
+ adapter: z.ZodOptional<z.ZodString>;
533
+ model: z.ZodOptional<z.ZodString>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ adapter?: string | undefined;
536
+ model?: string | undefined;
537
+ command?: string | undefined;
538
+ tool?: string | undefined;
539
+ version?: string | undefined;
540
+ generatedAt?: string | undefined;
541
+ }, {
542
+ adapter?: string | undefined;
543
+ model?: string | undefined;
544
+ command?: string | undefined;
545
+ tool?: string | undefined;
546
+ version?: string | undefined;
547
+ generatedAt?: string | undefined;
548
+ }>>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ summary: string;
551
+ riskLevel: "low" | "medium" | "high" | "critical";
552
+ findings: {
553
+ message: string;
554
+ severity: "critical" | "warning" | "error" | "info";
555
+ category: string;
556
+ recommendation?: string | undefined;
557
+ }[];
558
+ coveredPaths: string[];
559
+ uncoveredPaths: string[];
560
+ recommendedActions?: {
561
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
562
+ title: string;
563
+ target?: string | undefined;
564
+ command?: string | undefined;
565
+ rationale?: string | undefined;
566
+ }[] | undefined;
567
+ metadata?: {
568
+ adapter?: string | undefined;
569
+ model?: string | undefined;
570
+ command?: string | undefined;
571
+ tool?: string | undefined;
572
+ version?: string | undefined;
573
+ generatedAt?: string | undefined;
574
+ } | undefined;
575
+ }, {
576
+ summary: string;
577
+ riskLevel: "low" | "medium" | "high" | "critical";
578
+ findings: {
579
+ message: string;
580
+ severity: "critical" | "warning" | "error" | "info";
581
+ category: string;
582
+ recommendation?: string | undefined;
583
+ }[];
584
+ coveredPaths: string[];
585
+ uncoveredPaths: string[];
586
+ recommendedActions?: {
587
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
588
+ title: string;
589
+ target?: string | undefined;
590
+ command?: string | undefined;
591
+ rationale?: string | undefined;
592
+ }[] | undefined;
593
+ metadata?: {
594
+ adapter?: string | undefined;
595
+ model?: string | undefined;
596
+ command?: string | undefined;
597
+ tool?: string | undefined;
598
+ version?: string | undefined;
599
+ generatedAt?: string | undefined;
600
+ } | undefined;
601
+ }>;
602
+ export type GuardrailsAuditResult = z.infer<typeof GuardrailsAuditResultSchema>;
603
+ export declare const handoffSchemas: {
604
+ readonly "openapi-audit-request": z.ZodObject<{
605
+ task_id: z.ZodString;
606
+ context: z.ZodString;
607
+ }, "strip", z.ZodTypeAny, {
608
+ task_id: string;
609
+ context: string;
610
+ }, {
611
+ task_id: string;
612
+ context: string;
613
+ }>;
614
+ readonly "openapi-audit-result": z.ZodObject<{
615
+ summary: z.ZodString;
616
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
617
+ findings: z.ZodArray<z.ZodObject<{
618
+ id: z.ZodOptional<z.ZodString>;
619
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
620
+ category: z.ZodString;
621
+ target: z.ZodOptional<z.ZodString>;
622
+ location: z.ZodOptional<z.ZodString>;
623
+ message: z.ZodString;
624
+ recommendation: z.ZodOptional<z.ZodString>;
625
+ confidence: z.ZodOptional<z.ZodNumber>;
626
+ evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
627
+ kind: z.ZodOptional<z.ZodEnum<["file", "command", "schema", "diff", "stdout", "stderr", "text"]>>;
628
+ target: z.ZodOptional<z.ZodString>;
629
+ location: z.ZodOptional<z.ZodString>;
630
+ excerpt: z.ZodOptional<z.ZodString>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ target?: string | undefined;
633
+ location?: string | undefined;
634
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
635
+ excerpt?: string | undefined;
636
+ }, {
637
+ target?: string | undefined;
638
+ location?: string | undefined;
639
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
640
+ excerpt?: string | undefined;
641
+ }>, "many">>;
642
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ message: string;
645
+ severity: "critical" | "warning" | "error" | "info";
646
+ category: string;
647
+ target?: string | undefined;
648
+ details?: Record<string, unknown> | undefined;
649
+ id?: string | undefined;
650
+ location?: string | undefined;
651
+ recommendation?: string | undefined;
652
+ confidence?: number | undefined;
653
+ evidence?: {
654
+ target?: string | undefined;
655
+ location?: string | undefined;
656
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
657
+ excerpt?: string | undefined;
658
+ }[] | undefined;
659
+ }, {
660
+ message: string;
661
+ severity: "critical" | "warning" | "error" | "info";
662
+ category: string;
663
+ target?: string | undefined;
664
+ details?: Record<string, unknown> | undefined;
665
+ id?: string | undefined;
666
+ location?: string | undefined;
667
+ recommendation?: string | undefined;
668
+ confidence?: number | undefined;
669
+ evidence?: {
670
+ target?: string | undefined;
671
+ location?: string | undefined;
672
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
673
+ excerpt?: string | undefined;
674
+ }[] | undefined;
675
+ }>, "many">;
676
+ recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
677
+ kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
678
+ title: z.ZodString;
679
+ command: z.ZodOptional<z.ZodString>;
680
+ target: z.ZodOptional<z.ZodString>;
681
+ rationale: z.ZodOptional<z.ZodString>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
684
+ title: string;
685
+ target?: string | undefined;
686
+ command?: string | undefined;
687
+ rationale?: string | undefined;
688
+ }, {
689
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
690
+ title: string;
691
+ target?: string | undefined;
692
+ command?: string | undefined;
693
+ rationale?: string | undefined;
694
+ }>, "many">>;
695
+ metadata: z.ZodOptional<z.ZodObject<{
696
+ tool: z.ZodOptional<z.ZodString>;
697
+ command: z.ZodOptional<z.ZodString>;
698
+ version: z.ZodOptional<z.ZodString>;
699
+ generatedAt: z.ZodOptional<z.ZodString>;
700
+ adapter: z.ZodOptional<z.ZodString>;
701
+ model: z.ZodOptional<z.ZodString>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ adapter?: string | undefined;
704
+ model?: string | undefined;
705
+ command?: string | undefined;
706
+ tool?: string | undefined;
707
+ version?: string | undefined;
708
+ generatedAt?: string | undefined;
709
+ }, {
710
+ adapter?: string | undefined;
711
+ model?: string | undefined;
712
+ command?: string | undefined;
713
+ tool?: string | undefined;
714
+ version?: string | undefined;
715
+ generatedAt?: string | undefined;
716
+ }>>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ summary: string;
719
+ riskLevel: "low" | "medium" | "high" | "critical";
720
+ findings: {
721
+ message: string;
722
+ severity: "critical" | "warning" | "error" | "info";
723
+ category: string;
724
+ target?: string | undefined;
725
+ details?: Record<string, unknown> | undefined;
726
+ id?: string | undefined;
727
+ location?: string | undefined;
728
+ recommendation?: string | undefined;
729
+ confidence?: number | undefined;
730
+ evidence?: {
731
+ target?: string | undefined;
732
+ location?: string | undefined;
733
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
734
+ excerpt?: string | undefined;
735
+ }[] | undefined;
736
+ }[];
737
+ recommendedActions?: {
738
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
739
+ title: string;
740
+ target?: string | undefined;
741
+ command?: string | undefined;
742
+ rationale?: string | undefined;
743
+ }[] | undefined;
744
+ metadata?: {
745
+ adapter?: string | undefined;
746
+ model?: string | undefined;
747
+ command?: string | undefined;
748
+ tool?: string | undefined;
749
+ version?: string | undefined;
750
+ generatedAt?: string | undefined;
751
+ } | undefined;
752
+ }, {
753
+ summary: string;
754
+ riskLevel: "low" | "medium" | "high" | "critical";
755
+ findings: {
756
+ message: string;
757
+ severity: "critical" | "warning" | "error" | "info";
758
+ category: string;
759
+ target?: string | undefined;
760
+ details?: Record<string, unknown> | undefined;
761
+ id?: string | undefined;
762
+ location?: string | undefined;
763
+ recommendation?: string | undefined;
764
+ confidence?: number | undefined;
765
+ evidence?: {
766
+ target?: string | undefined;
767
+ location?: string | undefined;
768
+ kind?: "text" | "schema" | "file" | "command" | "stdout" | "stderr" | "diff" | undefined;
769
+ excerpt?: string | undefined;
770
+ }[] | undefined;
771
+ }[];
772
+ recommendedActions?: {
773
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
774
+ title: string;
775
+ target?: string | undefined;
776
+ command?: string | undefined;
777
+ rationale?: string | undefined;
778
+ }[] | undefined;
779
+ metadata?: {
780
+ adapter?: string | undefined;
781
+ model?: string | undefined;
782
+ command?: string | undefined;
783
+ tool?: string | undefined;
784
+ version?: string | undefined;
785
+ generatedAt?: string | undefined;
786
+ } | undefined;
787
+ }>;
788
+ readonly "published-review-result": z.ZodObject<{
789
+ summary: z.ZodString;
790
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
791
+ findings: z.ZodArray<z.ZodObject<{
792
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
793
+ category: z.ZodString;
794
+ message: z.ZodString;
795
+ recommendation: z.ZodOptional<z.ZodString>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ message: string;
798
+ severity: "critical" | "warning" | "error" | "info";
799
+ category: string;
800
+ recommendation?: string | undefined;
801
+ }, {
802
+ message: string;
803
+ severity: "critical" | "warning" | "error" | "info";
804
+ category: string;
805
+ recommendation?: string | undefined;
806
+ }>, "many">;
807
+ publishedEndpoints: z.ZodArray<z.ZodObject<{
808
+ operationId: z.ZodString;
809
+ path: z.ZodString;
810
+ method: z.ZodString;
811
+ }, "strip", z.ZodTypeAny, {
812
+ path: string;
813
+ operationId: string;
814
+ method: string;
815
+ }, {
816
+ path: string;
817
+ operationId: string;
818
+ method: string;
819
+ }>, "many">;
820
+ leakedInternalTypes: z.ZodArray<z.ZodObject<{
821
+ schemaName: z.ZodString;
822
+ referencedBy: z.ZodString;
823
+ reason: z.ZodString;
824
+ }, "strip", z.ZodTypeAny, {
825
+ schemaName: string;
826
+ reason: string;
827
+ referencedBy: string;
828
+ }, {
829
+ schemaName: string;
830
+ reason: string;
831
+ referencedBy: string;
832
+ }>, "many">;
833
+ recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
834
+ kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
835
+ title: z.ZodString;
836
+ command: z.ZodOptional<z.ZodString>;
837
+ target: z.ZodOptional<z.ZodString>;
838
+ rationale: z.ZodOptional<z.ZodString>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
841
+ title: string;
842
+ target?: string | undefined;
843
+ command?: string | undefined;
844
+ rationale?: string | undefined;
845
+ }, {
846
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
847
+ title: string;
848
+ target?: string | undefined;
849
+ command?: string | undefined;
850
+ rationale?: string | undefined;
851
+ }>, "many">>;
852
+ metadata: z.ZodOptional<z.ZodObject<{
853
+ tool: z.ZodOptional<z.ZodString>;
854
+ command: z.ZodOptional<z.ZodString>;
855
+ version: z.ZodOptional<z.ZodString>;
856
+ generatedAt: z.ZodOptional<z.ZodString>;
857
+ adapter: z.ZodOptional<z.ZodString>;
858
+ model: z.ZodOptional<z.ZodString>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ adapter?: string | undefined;
861
+ model?: string | undefined;
862
+ command?: string | undefined;
863
+ tool?: string | undefined;
864
+ version?: string | undefined;
865
+ generatedAt?: string | undefined;
866
+ }, {
867
+ adapter?: string | undefined;
868
+ model?: string | undefined;
869
+ command?: string | undefined;
870
+ tool?: string | undefined;
871
+ version?: string | undefined;
872
+ generatedAt?: string | undefined;
873
+ }>>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ summary: string;
876
+ riskLevel: "low" | "medium" | "high" | "critical";
877
+ findings: {
878
+ message: string;
879
+ severity: "critical" | "warning" | "error" | "info";
880
+ category: string;
881
+ recommendation?: string | undefined;
882
+ }[];
883
+ publishedEndpoints: {
884
+ path: string;
885
+ operationId: string;
886
+ method: string;
887
+ }[];
888
+ leakedInternalTypes: {
889
+ schemaName: string;
890
+ reason: string;
891
+ referencedBy: string;
892
+ }[];
893
+ recommendedActions?: {
894
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
895
+ title: string;
896
+ target?: string | undefined;
897
+ command?: string | undefined;
898
+ rationale?: string | undefined;
899
+ }[] | undefined;
900
+ metadata?: {
901
+ adapter?: string | undefined;
902
+ model?: string | undefined;
903
+ command?: string | undefined;
904
+ tool?: string | undefined;
905
+ version?: string | undefined;
906
+ generatedAt?: string | undefined;
907
+ } | undefined;
908
+ }, {
909
+ summary: string;
910
+ riskLevel: "low" | "medium" | "high" | "critical";
911
+ findings: {
912
+ message: string;
913
+ severity: "critical" | "warning" | "error" | "info";
914
+ category: string;
915
+ recommendation?: string | undefined;
916
+ }[];
917
+ publishedEndpoints: {
918
+ path: string;
919
+ operationId: string;
920
+ method: string;
921
+ }[];
922
+ leakedInternalTypes: {
923
+ schemaName: string;
924
+ reason: string;
925
+ referencedBy: string;
926
+ }[];
927
+ recommendedActions?: {
928
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
929
+ title: string;
930
+ target?: string | undefined;
931
+ command?: string | undefined;
932
+ rationale?: string | undefined;
933
+ }[] | undefined;
934
+ metadata?: {
935
+ adapter?: string | undefined;
936
+ model?: string | undefined;
937
+ command?: string | undefined;
938
+ tool?: string | undefined;
939
+ version?: string | undefined;
940
+ generatedAt?: string | undefined;
941
+ } | undefined;
942
+ }>;
943
+ readonly "overlay-proposal-result": z.ZodObject<{
944
+ summary: z.ZodString;
945
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
946
+ findings: z.ZodArray<z.ZodObject<{
947
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
948
+ category: z.ZodString;
949
+ message: z.ZodString;
950
+ recommendation: z.ZodOptional<z.ZodString>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ message: string;
953
+ severity: "critical" | "warning" | "error" | "info";
954
+ category: string;
955
+ recommendation?: string | undefined;
956
+ }, {
957
+ message: string;
958
+ severity: "critical" | "warning" | "error" | "info";
959
+ category: string;
960
+ recommendation?: string | undefined;
961
+ }>, "many">;
962
+ overlayCandidates: z.ZodArray<z.ZodObject<{
963
+ endpoint: z.ZodString;
964
+ overlayType: z.ZodEnum<["auth", "tenancy", "rateLimit", "auditLog", "custom"]>;
965
+ rationale: z.ZodString;
966
+ suggestedConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
967
+ }, "strip", z.ZodTypeAny, {
968
+ rationale: string;
969
+ endpoint: string;
970
+ overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
971
+ suggestedConfig?: Record<string, unknown> | undefined;
972
+ }, {
973
+ rationale: string;
974
+ endpoint: string;
975
+ overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
976
+ suggestedConfig?: Record<string, unknown> | undefined;
977
+ }>, "many">;
978
+ recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
979
+ kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
980
+ title: z.ZodString;
981
+ command: z.ZodOptional<z.ZodString>;
982
+ target: z.ZodOptional<z.ZodString>;
983
+ rationale: z.ZodOptional<z.ZodString>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
986
+ title: string;
987
+ target?: string | undefined;
988
+ command?: string | undefined;
989
+ rationale?: string | undefined;
990
+ }, {
991
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
992
+ title: string;
993
+ target?: string | undefined;
994
+ command?: string | undefined;
995
+ rationale?: string | undefined;
996
+ }>, "many">>;
997
+ metadata: z.ZodOptional<z.ZodObject<{
998
+ tool: z.ZodOptional<z.ZodString>;
999
+ command: z.ZodOptional<z.ZodString>;
1000
+ version: z.ZodOptional<z.ZodString>;
1001
+ generatedAt: z.ZodOptional<z.ZodString>;
1002
+ adapter: z.ZodOptional<z.ZodString>;
1003
+ model: z.ZodOptional<z.ZodString>;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ adapter?: string | undefined;
1006
+ model?: string | undefined;
1007
+ command?: string | undefined;
1008
+ tool?: string | undefined;
1009
+ version?: string | undefined;
1010
+ generatedAt?: string | undefined;
1011
+ }, {
1012
+ adapter?: string | undefined;
1013
+ model?: string | undefined;
1014
+ command?: string | undefined;
1015
+ tool?: string | undefined;
1016
+ version?: string | undefined;
1017
+ generatedAt?: string | undefined;
1018
+ }>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ summary: string;
1021
+ riskLevel: "low" | "medium" | "high" | "critical";
1022
+ findings: {
1023
+ message: string;
1024
+ severity: "critical" | "warning" | "error" | "info";
1025
+ category: string;
1026
+ recommendation?: string | undefined;
1027
+ }[];
1028
+ overlayCandidates: {
1029
+ rationale: string;
1030
+ endpoint: string;
1031
+ overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
1032
+ suggestedConfig?: Record<string, unknown> | undefined;
1033
+ }[];
1034
+ recommendedActions?: {
1035
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1036
+ title: string;
1037
+ target?: string | undefined;
1038
+ command?: string | undefined;
1039
+ rationale?: string | undefined;
1040
+ }[] | undefined;
1041
+ metadata?: {
1042
+ adapter?: string | undefined;
1043
+ model?: string | undefined;
1044
+ command?: string | undefined;
1045
+ tool?: string | undefined;
1046
+ version?: string | undefined;
1047
+ generatedAt?: string | undefined;
1048
+ } | undefined;
1049
+ }, {
1050
+ summary: string;
1051
+ riskLevel: "low" | "medium" | "high" | "critical";
1052
+ findings: {
1053
+ message: string;
1054
+ severity: "critical" | "warning" | "error" | "info";
1055
+ category: string;
1056
+ recommendation?: string | undefined;
1057
+ }[];
1058
+ overlayCandidates: {
1059
+ rationale: string;
1060
+ endpoint: string;
1061
+ overlayType: "custom" | "auth" | "tenancy" | "rateLimit" | "auditLog";
1062
+ suggestedConfig?: Record<string, unknown> | undefined;
1063
+ }[];
1064
+ recommendedActions?: {
1065
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1066
+ title: string;
1067
+ target?: string | undefined;
1068
+ command?: string | undefined;
1069
+ rationale?: string | undefined;
1070
+ }[] | undefined;
1071
+ metadata?: {
1072
+ adapter?: string | undefined;
1073
+ model?: string | undefined;
1074
+ command?: string | undefined;
1075
+ tool?: string | undefined;
1076
+ version?: string | undefined;
1077
+ generatedAt?: string | undefined;
1078
+ } | undefined;
1079
+ }>;
1080
+ readonly "guardrails-audit-result": z.ZodObject<{
1081
+ summary: z.ZodString;
1082
+ riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
1083
+ findings: z.ZodArray<z.ZodObject<{
1084
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
1085
+ category: z.ZodString;
1086
+ message: z.ZodString;
1087
+ recommendation: z.ZodOptional<z.ZodString>;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ message: string;
1090
+ severity: "critical" | "warning" | "error" | "info";
1091
+ category: string;
1092
+ recommendation?: string | undefined;
1093
+ }, {
1094
+ message: string;
1095
+ severity: "critical" | "warning" | "error" | "info";
1096
+ category: string;
1097
+ recommendation?: string | undefined;
1098
+ }>, "many">;
1099
+ coveredPaths: z.ZodArray<z.ZodString, "many">;
1100
+ uncoveredPaths: z.ZodArray<z.ZodString, "many">;
1101
+ recommendedActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1102
+ kind: z.ZodEnum<["run_command", "edit_file", "review", "confirm", "block", "ignore"]>;
1103
+ title: z.ZodString;
1104
+ command: z.ZodOptional<z.ZodString>;
1105
+ target: z.ZodOptional<z.ZodString>;
1106
+ rationale: z.ZodOptional<z.ZodString>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1109
+ title: string;
1110
+ target?: string | undefined;
1111
+ command?: string | undefined;
1112
+ rationale?: string | undefined;
1113
+ }, {
1114
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1115
+ title: string;
1116
+ target?: string | undefined;
1117
+ command?: string | undefined;
1118
+ rationale?: string | undefined;
1119
+ }>, "many">>;
1120
+ metadata: z.ZodOptional<z.ZodObject<{
1121
+ tool: z.ZodOptional<z.ZodString>;
1122
+ command: z.ZodOptional<z.ZodString>;
1123
+ version: z.ZodOptional<z.ZodString>;
1124
+ generatedAt: z.ZodOptional<z.ZodString>;
1125
+ adapter: z.ZodOptional<z.ZodString>;
1126
+ model: z.ZodOptional<z.ZodString>;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ adapter?: string | undefined;
1129
+ model?: string | undefined;
1130
+ command?: string | undefined;
1131
+ tool?: string | undefined;
1132
+ version?: string | undefined;
1133
+ generatedAt?: string | undefined;
1134
+ }, {
1135
+ adapter?: string | undefined;
1136
+ model?: string | undefined;
1137
+ command?: string | undefined;
1138
+ tool?: string | undefined;
1139
+ version?: string | undefined;
1140
+ generatedAt?: string | undefined;
1141
+ }>>;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ summary: string;
1144
+ riskLevel: "low" | "medium" | "high" | "critical";
1145
+ findings: {
1146
+ message: string;
1147
+ severity: "critical" | "warning" | "error" | "info";
1148
+ category: string;
1149
+ recommendation?: string | undefined;
1150
+ }[];
1151
+ coveredPaths: string[];
1152
+ uncoveredPaths: string[];
1153
+ recommendedActions?: {
1154
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1155
+ title: string;
1156
+ target?: string | undefined;
1157
+ command?: string | undefined;
1158
+ rationale?: string | undefined;
1159
+ }[] | undefined;
1160
+ metadata?: {
1161
+ adapter?: string | undefined;
1162
+ model?: string | undefined;
1163
+ command?: string | undefined;
1164
+ tool?: string | undefined;
1165
+ version?: string | undefined;
1166
+ generatedAt?: string | undefined;
1167
+ } | undefined;
1168
+ }, {
1169
+ summary: string;
1170
+ riskLevel: "low" | "medium" | "high" | "critical";
1171
+ findings: {
1172
+ message: string;
1173
+ severity: "critical" | "warning" | "error" | "info";
1174
+ category: string;
1175
+ recommendation?: string | undefined;
1176
+ }[];
1177
+ coveredPaths: string[];
1178
+ uncoveredPaths: string[];
1179
+ recommendedActions?: {
1180
+ kind: "ignore" | "run_command" | "edit_file" | "review" | "confirm" | "block";
1181
+ title: string;
1182
+ target?: string | undefined;
1183
+ command?: string | undefined;
1184
+ rationale?: string | undefined;
1185
+ }[] | undefined;
1186
+ metadata?: {
1187
+ adapter?: string | undefined;
1188
+ model?: string | undefined;
1189
+ command?: string | undefined;
1190
+ tool?: string | undefined;
1191
+ version?: string | undefined;
1192
+ generatedAt?: string | undefined;
1193
+ } | undefined;
1194
+ }>;
1195
+ };
1196
+ export type HandoffTypeId = keyof typeof handoffSchemas;
1197
+ export interface HandoffEnvelope<T extends HandoffTypeId = HandoffTypeId> {
1198
+ readonly type: T;
1199
+ readonly version: number;
1200
+ readonly payload: z.infer<(typeof handoffSchemas)[T]>;
1201
+ }
1202
+ export declare const handoffs: {
1203
+ readonly openapiAuditRequest: (payload: OpenapiAuditRequest) => HandoffEnvelope<"openapi-audit-request">;
1204
+ readonly openapiAuditResult: (payload: OpenapiAuditResult) => HandoffEnvelope<"openapi-audit-result">;
1205
+ readonly publishedReviewResult: (payload: PublishedReviewResult) => HandoffEnvelope<"published-review-result">;
1206
+ readonly overlayProposalResult: (payload: OverlayProposalResult) => HandoffEnvelope<"overlay-proposal-result">;
1207
+ readonly guardrailsAuditResult: (payload: GuardrailsAuditResult) => HandoffEnvelope<"guardrails-audit-result">;
1208
+ };
1209
+ //# sourceMappingURL=handoffs.d.ts.map