opencode-swarm 6.8.0 → 6.9.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 (56) hide show
  1. package/README.md +55 -2
  2. package/dist/build/discovery.d.ts +36 -0
  3. package/dist/config/evidence-schema.d.ts +633 -0
  4. package/dist/config/schema.d.ts +80 -0
  5. package/dist/evidence/manager.d.ts +19 -1
  6. package/dist/index.js +6834 -1041
  7. package/dist/lang/grammars/tree-sitter-bash.wasm +0 -0
  8. package/dist/lang/grammars/tree-sitter-c-sharp.wasm +0 -0
  9. package/dist/lang/grammars/tree-sitter-cpp.wasm +0 -0
  10. package/dist/lang/grammars/tree-sitter-css.wasm +0 -0
  11. package/dist/lang/grammars/tree-sitter-go.wasm +0 -0
  12. package/dist/lang/grammars/tree-sitter-ini.wasm +0 -0
  13. package/dist/lang/grammars/tree-sitter-java.wasm +0 -0
  14. package/dist/lang/grammars/tree-sitter-javascript.wasm +0 -0
  15. package/dist/lang/grammars/tree-sitter-php.wasm +0 -0
  16. package/dist/lang/grammars/tree-sitter-powershell.wasm +0 -0
  17. package/dist/lang/grammars/tree-sitter-python.wasm +0 -0
  18. package/dist/lang/grammars/tree-sitter-regex.wasm +0 -0
  19. package/dist/lang/grammars/tree-sitter-ruby.wasm +0 -0
  20. package/dist/lang/grammars/tree-sitter-rust.wasm +0 -0
  21. package/dist/lang/grammars/tree-sitter-tsx.wasm +0 -0
  22. package/dist/lang/grammars/tree-sitter-typescript.wasm +0 -0
  23. package/dist/lang/grammars/tree-sitter.wasm +0 -0
  24. package/dist/lang/index.d.ts +2 -0
  25. package/dist/lang/registry.d.ts +24 -0
  26. package/dist/lang/runtime.d.ts +35 -0
  27. package/dist/quality/index.d.ts +1 -0
  28. package/dist/quality/metrics.d.ts +20 -0
  29. package/dist/sast/rules/c.d.ts +9 -0
  30. package/dist/sast/rules/csharp.d.ts +9 -0
  31. package/dist/sast/rules/go.d.ts +9 -0
  32. package/dist/sast/rules/index.d.ts +72 -0
  33. package/dist/sast/rules/java.d.ts +9 -0
  34. package/dist/sast/rules/javascript.d.ts +9 -0
  35. package/dist/sast/rules/php.d.ts +9 -0
  36. package/dist/sast/rules/python.d.ts +9 -0
  37. package/dist/sast/semgrep.d.ts +64 -0
  38. package/dist/sast/semgrep.test.d.ts +1 -0
  39. package/dist/sbom/cyclonedx.d.ts +101 -0
  40. package/dist/sbom/detectors/dart.d.ts +7 -0
  41. package/dist/sbom/detectors/dotnet.d.ts +7 -0
  42. package/dist/sbom/detectors/go.d.ts +7 -0
  43. package/dist/sbom/detectors/index.d.ts +53 -0
  44. package/dist/sbom/detectors/java.d.ts +7 -0
  45. package/dist/sbom/detectors/nodejs.d.ts +7 -0
  46. package/dist/sbom/detectors/python.d.ts +7 -0
  47. package/dist/sbom/detectors/rust.d.ts +7 -0
  48. package/dist/sbom/detectors/swift.d.ts +7 -0
  49. package/dist/tools/build-check.d.ts +50 -0
  50. package/dist/tools/index.d.ts +6 -0
  51. package/dist/tools/placeholder-scan.d.ts +26 -0
  52. package/dist/tools/quality-budget.d.ts +24 -0
  53. package/dist/tools/sast-scan.d.ts +52 -0
  54. package/dist/tools/sbom-generate.d.ts +26 -0
  55. package/dist/tools/syntax-check.d.ts +35 -0
  56. package/package.json +7 -2
@@ -3,12 +3,18 @@ export declare const EVIDENCE_MAX_JSON_BYTES: number;
3
3
  export declare const EVIDENCE_MAX_PATCH_BYTES: number;
4
4
  export declare const EVIDENCE_MAX_TASK_BYTES: number;
5
5
  export declare const EvidenceTypeSchema: z.ZodEnum<{
6
+ placeholder: "placeholder";
7
+ quality_budget: "quality_budget";
6
8
  review: "review";
7
9
  test: "test";
8
10
  diff: "diff";
9
11
  approval: "approval";
10
12
  note: "note";
11
13
  retrospective: "retrospective";
14
+ syntax: "syntax";
15
+ sast: "sast";
16
+ sbom: "sbom";
17
+ build: "build";
12
18
  }>;
13
19
  export type EvidenceType = z.infer<typeof EvidenceTypeSchema>;
14
20
  export declare const EvidenceVerdictSchema: z.ZodEnum<{
@@ -22,12 +28,18 @@ export type EvidenceVerdict = z.infer<typeof EvidenceVerdictSchema>;
22
28
  export declare const BaseEvidenceSchema: z.ZodObject<{
23
29
  task_id: z.ZodString;
24
30
  type: z.ZodEnum<{
31
+ placeholder: "placeholder";
32
+ quality_budget: "quality_budget";
25
33
  review: "review";
26
34
  test: "test";
27
35
  diff: "diff";
28
36
  approval: "approval";
29
37
  note: "note";
30
38
  retrospective: "retrospective";
39
+ syntax: "syntax";
40
+ sast: "sast";
41
+ sbom: "sbom";
42
+ build: "build";
31
43
  }>;
32
44
  timestamp: z.ZodString;
33
45
  agent: z.ZodString;
@@ -181,6 +193,221 @@ export declare const RetrospectiveEvidenceSchema: z.ZodObject<{
181
193
  lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
182
194
  }, z.core.$strip>;
183
195
  export type RetrospectiveEvidence = z.infer<typeof RetrospectiveEvidenceSchema>;
196
+ export declare const SyntaxEvidenceSchema: z.ZodObject<{
197
+ task_id: z.ZodString;
198
+ timestamp: z.ZodString;
199
+ agent: z.ZodString;
200
+ verdict: z.ZodEnum<{
201
+ pass: "pass";
202
+ fail: "fail";
203
+ approved: "approved";
204
+ rejected: "rejected";
205
+ info: "info";
206
+ }>;
207
+ summary: z.ZodString;
208
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
209
+ type: z.ZodLiteral<"syntax">;
210
+ files_checked: z.ZodNumber;
211
+ files_failed: z.ZodNumber;
212
+ skipped_count: z.ZodDefault<z.ZodNumber>;
213
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
214
+ path: z.ZodString;
215
+ language: z.ZodString;
216
+ ok: z.ZodBoolean;
217
+ errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
218
+ line: z.ZodNumber;
219
+ column: z.ZodNumber;
220
+ message: z.ZodString;
221
+ }, z.core.$strip>>>;
222
+ skipped_reason: z.ZodOptional<z.ZodString>;
223
+ }, z.core.$strip>>>;
224
+ }, z.core.$strip>;
225
+ export type SyntaxEvidence = z.infer<typeof SyntaxEvidenceSchema>;
226
+ export declare const PlaceholderEvidenceSchema: z.ZodObject<{
227
+ task_id: z.ZodString;
228
+ timestamp: z.ZodString;
229
+ agent: z.ZodString;
230
+ verdict: z.ZodEnum<{
231
+ pass: "pass";
232
+ fail: "fail";
233
+ approved: "approved";
234
+ rejected: "rejected";
235
+ info: "info";
236
+ }>;
237
+ summary: z.ZodString;
238
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
239
+ type: z.ZodLiteral<"placeholder">;
240
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
241
+ path: z.ZodString;
242
+ line: z.ZodNumber;
243
+ kind: z.ZodEnum<{
244
+ string: "string";
245
+ comment: "comment";
246
+ function_body: "function_body";
247
+ other: "other";
248
+ }>;
249
+ excerpt: z.ZodString;
250
+ rule_id: z.ZodString;
251
+ }, z.core.$strip>>>;
252
+ files_scanned: z.ZodNumber;
253
+ files_with_findings: z.ZodNumber;
254
+ findings_count: z.ZodNumber;
255
+ }, z.core.$strip>;
256
+ export type PlaceholderEvidence = z.infer<typeof PlaceholderEvidenceSchema>;
257
+ export declare const SastEvidenceSchema: z.ZodObject<{
258
+ task_id: z.ZodString;
259
+ timestamp: z.ZodString;
260
+ agent: z.ZodString;
261
+ verdict: z.ZodEnum<{
262
+ pass: "pass";
263
+ fail: "fail";
264
+ approved: "approved";
265
+ rejected: "rejected";
266
+ info: "info";
267
+ }>;
268
+ summary: z.ZodString;
269
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
270
+ type: z.ZodLiteral<"sast">;
271
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
272
+ rule_id: z.ZodString;
273
+ severity: z.ZodEnum<{
274
+ low: "low";
275
+ medium: "medium";
276
+ high: "high";
277
+ critical: "critical";
278
+ }>;
279
+ message: z.ZodString;
280
+ location: z.ZodObject<{
281
+ file: z.ZodString;
282
+ line: z.ZodNumber;
283
+ column: z.ZodOptional<z.ZodNumber>;
284
+ }, z.core.$strip>;
285
+ remediation: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strip>>>;
287
+ engine: z.ZodEnum<{
288
+ tier_a: "tier_a";
289
+ "tier_a+tier_b": "tier_a+tier_b";
290
+ }>;
291
+ files_scanned: z.ZodNumber;
292
+ findings_count: z.ZodNumber;
293
+ findings_by_severity: z.ZodObject<{
294
+ critical: z.ZodNumber;
295
+ high: z.ZodNumber;
296
+ medium: z.ZodNumber;
297
+ low: z.ZodNumber;
298
+ }, z.core.$strip>;
299
+ }, z.core.$strip>;
300
+ export type SastEvidence = z.infer<typeof SastEvidenceSchema>;
301
+ export declare const SbomEvidenceSchema: z.ZodObject<{
302
+ task_id: z.ZodString;
303
+ timestamp: z.ZodString;
304
+ agent: z.ZodString;
305
+ verdict: z.ZodEnum<{
306
+ pass: "pass";
307
+ fail: "fail";
308
+ approved: "approved";
309
+ rejected: "rejected";
310
+ info: "info";
311
+ }>;
312
+ summary: z.ZodString;
313
+ type: z.ZodLiteral<"sbom">;
314
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
315
+ name: z.ZodString;
316
+ version: z.ZodString;
317
+ type: z.ZodEnum<{
318
+ library: "library";
319
+ framework: "framework";
320
+ application: "application";
321
+ }>;
322
+ purl: z.ZodOptional<z.ZodString>;
323
+ license: z.ZodOptional<z.ZodString>;
324
+ }, z.core.$strip>>>;
325
+ metadata: z.ZodObject<{
326
+ timestamp: z.ZodString;
327
+ tool: z.ZodString;
328
+ tool_version: z.ZodString;
329
+ }, z.core.$strip>;
330
+ files: z.ZodArray<z.ZodString>;
331
+ components_count: z.ZodNumber;
332
+ output_path: z.ZodString;
333
+ }, z.core.$strip>;
334
+ export type SbomEvidence = z.infer<typeof SbomEvidenceSchema>;
335
+ export declare const BuildEvidenceSchema: z.ZodObject<{
336
+ task_id: z.ZodString;
337
+ timestamp: z.ZodString;
338
+ agent: z.ZodString;
339
+ verdict: z.ZodEnum<{
340
+ pass: "pass";
341
+ fail: "fail";
342
+ approved: "approved";
343
+ rejected: "rejected";
344
+ info: "info";
345
+ }>;
346
+ summary: z.ZodString;
347
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
348
+ type: z.ZodLiteral<"build">;
349
+ runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
350
+ kind: z.ZodEnum<{
351
+ test: "test";
352
+ build: "build";
353
+ typecheck: "typecheck";
354
+ }>;
355
+ command: z.ZodString;
356
+ cwd: z.ZodString;
357
+ exit_code: z.ZodNumber;
358
+ duration_ms: z.ZodNumber;
359
+ stdout_tail: z.ZodString;
360
+ stderr_tail: z.ZodString;
361
+ }, z.core.$strip>>>;
362
+ files_scanned: z.ZodNumber;
363
+ runs_count: z.ZodNumber;
364
+ failed_count: z.ZodNumber;
365
+ skipped_reason: z.ZodOptional<z.ZodString>;
366
+ }, z.core.$strip>;
367
+ export type BuildEvidence = z.infer<typeof BuildEvidenceSchema>;
368
+ export declare const QualityBudgetEvidenceSchema: z.ZodObject<{
369
+ task_id: z.ZodString;
370
+ timestamp: z.ZodString;
371
+ agent: z.ZodString;
372
+ verdict: z.ZodEnum<{
373
+ pass: "pass";
374
+ fail: "fail";
375
+ approved: "approved";
376
+ rejected: "rejected";
377
+ info: "info";
378
+ }>;
379
+ summary: z.ZodString;
380
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
381
+ type: z.ZodLiteral<"quality_budget">;
382
+ metrics: z.ZodObject<{
383
+ complexity_delta: z.ZodNumber;
384
+ public_api_delta: z.ZodNumber;
385
+ duplication_ratio: z.ZodNumber;
386
+ test_to_code_ratio: z.ZodNumber;
387
+ }, z.core.$strip>;
388
+ thresholds: z.ZodObject<{
389
+ max_complexity_delta: z.ZodNumber;
390
+ max_public_api_delta: z.ZodNumber;
391
+ max_duplication_ratio: z.ZodNumber;
392
+ min_test_to_code_ratio: z.ZodNumber;
393
+ }, z.core.$strip>;
394
+ violations: z.ZodDefault<z.ZodArray<z.ZodObject<{
395
+ type: z.ZodEnum<{
396
+ complexity: "complexity";
397
+ api: "api";
398
+ duplication: "duplication";
399
+ test_ratio: "test_ratio";
400
+ }>;
401
+ message: z.ZodString;
402
+ severity: z.ZodEnum<{
403
+ error: "error";
404
+ warning: "warning";
405
+ }>;
406
+ files: z.ZodArray<z.ZodString>;
407
+ }, z.core.$strip>>>;
408
+ files_analyzed: z.ZodArray<z.ZodString>;
409
+ }, z.core.$strip>;
410
+ export type QualityBudgetEvidence = z.infer<typeof QualityBudgetEvidenceSchema>;
184
411
  export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
185
412
  task_id: z.ZodString;
186
413
  timestamp: z.ZodString;
@@ -308,6 +535,209 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
308
535
  }>;
309
536
  top_rejection_reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
310
537
  lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ task_id: z.ZodString;
540
+ timestamp: z.ZodString;
541
+ agent: z.ZodString;
542
+ verdict: z.ZodEnum<{
543
+ pass: "pass";
544
+ fail: "fail";
545
+ approved: "approved";
546
+ rejected: "rejected";
547
+ info: "info";
548
+ }>;
549
+ summary: z.ZodString;
550
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
551
+ type: z.ZodLiteral<"syntax">;
552
+ files_checked: z.ZodNumber;
553
+ files_failed: z.ZodNumber;
554
+ skipped_count: z.ZodDefault<z.ZodNumber>;
555
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
556
+ path: z.ZodString;
557
+ language: z.ZodString;
558
+ ok: z.ZodBoolean;
559
+ errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
560
+ line: z.ZodNumber;
561
+ column: z.ZodNumber;
562
+ message: z.ZodString;
563
+ }, z.core.$strip>>>;
564
+ skipped_reason: z.ZodOptional<z.ZodString>;
565
+ }, z.core.$strip>>>;
566
+ }, z.core.$strip>, z.ZodObject<{
567
+ task_id: z.ZodString;
568
+ timestamp: z.ZodString;
569
+ agent: z.ZodString;
570
+ verdict: z.ZodEnum<{
571
+ pass: "pass";
572
+ fail: "fail";
573
+ approved: "approved";
574
+ rejected: "rejected";
575
+ info: "info";
576
+ }>;
577
+ summary: z.ZodString;
578
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
579
+ type: z.ZodLiteral<"placeholder">;
580
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
581
+ path: z.ZodString;
582
+ line: z.ZodNumber;
583
+ kind: z.ZodEnum<{
584
+ string: "string";
585
+ comment: "comment";
586
+ function_body: "function_body";
587
+ other: "other";
588
+ }>;
589
+ excerpt: z.ZodString;
590
+ rule_id: z.ZodString;
591
+ }, z.core.$strip>>>;
592
+ files_scanned: z.ZodNumber;
593
+ files_with_findings: z.ZodNumber;
594
+ findings_count: z.ZodNumber;
595
+ }, z.core.$strip>, z.ZodObject<{
596
+ task_id: z.ZodString;
597
+ timestamp: z.ZodString;
598
+ agent: z.ZodString;
599
+ verdict: z.ZodEnum<{
600
+ pass: "pass";
601
+ fail: "fail";
602
+ approved: "approved";
603
+ rejected: "rejected";
604
+ info: "info";
605
+ }>;
606
+ summary: z.ZodString;
607
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
608
+ type: z.ZodLiteral<"sast">;
609
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
610
+ rule_id: z.ZodString;
611
+ severity: z.ZodEnum<{
612
+ low: "low";
613
+ medium: "medium";
614
+ high: "high";
615
+ critical: "critical";
616
+ }>;
617
+ message: z.ZodString;
618
+ location: z.ZodObject<{
619
+ file: z.ZodString;
620
+ line: z.ZodNumber;
621
+ column: z.ZodOptional<z.ZodNumber>;
622
+ }, z.core.$strip>;
623
+ remediation: z.ZodOptional<z.ZodString>;
624
+ }, z.core.$strip>>>;
625
+ engine: z.ZodEnum<{
626
+ tier_a: "tier_a";
627
+ "tier_a+tier_b": "tier_a+tier_b";
628
+ }>;
629
+ files_scanned: z.ZodNumber;
630
+ findings_count: z.ZodNumber;
631
+ findings_by_severity: z.ZodObject<{
632
+ critical: z.ZodNumber;
633
+ high: z.ZodNumber;
634
+ medium: z.ZodNumber;
635
+ low: z.ZodNumber;
636
+ }, z.core.$strip>;
637
+ }, z.core.$strip>, z.ZodObject<{
638
+ task_id: z.ZodString;
639
+ timestamp: z.ZodString;
640
+ agent: z.ZodString;
641
+ verdict: z.ZodEnum<{
642
+ pass: "pass";
643
+ fail: "fail";
644
+ approved: "approved";
645
+ rejected: "rejected";
646
+ info: "info";
647
+ }>;
648
+ summary: z.ZodString;
649
+ type: z.ZodLiteral<"sbom">;
650
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
651
+ name: z.ZodString;
652
+ version: z.ZodString;
653
+ type: z.ZodEnum<{
654
+ library: "library";
655
+ framework: "framework";
656
+ application: "application";
657
+ }>;
658
+ purl: z.ZodOptional<z.ZodString>;
659
+ license: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$strip>>>;
661
+ metadata: z.ZodObject<{
662
+ timestamp: z.ZodString;
663
+ tool: z.ZodString;
664
+ tool_version: z.ZodString;
665
+ }, z.core.$strip>;
666
+ files: z.ZodArray<z.ZodString>;
667
+ components_count: z.ZodNumber;
668
+ output_path: z.ZodString;
669
+ }, z.core.$strip>, z.ZodObject<{
670
+ task_id: z.ZodString;
671
+ timestamp: z.ZodString;
672
+ agent: z.ZodString;
673
+ verdict: z.ZodEnum<{
674
+ pass: "pass";
675
+ fail: "fail";
676
+ approved: "approved";
677
+ rejected: "rejected";
678
+ info: "info";
679
+ }>;
680
+ summary: z.ZodString;
681
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
682
+ type: z.ZodLiteral<"build">;
683
+ runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
684
+ kind: z.ZodEnum<{
685
+ test: "test";
686
+ build: "build";
687
+ typecheck: "typecheck";
688
+ }>;
689
+ command: z.ZodString;
690
+ cwd: z.ZodString;
691
+ exit_code: z.ZodNumber;
692
+ duration_ms: z.ZodNumber;
693
+ stdout_tail: z.ZodString;
694
+ stderr_tail: z.ZodString;
695
+ }, z.core.$strip>>>;
696
+ files_scanned: z.ZodNumber;
697
+ runs_count: z.ZodNumber;
698
+ failed_count: z.ZodNumber;
699
+ skipped_reason: z.ZodOptional<z.ZodString>;
700
+ }, z.core.$strip>, z.ZodObject<{
701
+ task_id: z.ZodString;
702
+ timestamp: z.ZodString;
703
+ agent: z.ZodString;
704
+ verdict: z.ZodEnum<{
705
+ pass: "pass";
706
+ fail: "fail";
707
+ approved: "approved";
708
+ rejected: "rejected";
709
+ info: "info";
710
+ }>;
711
+ summary: z.ZodString;
712
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
713
+ type: z.ZodLiteral<"quality_budget">;
714
+ metrics: z.ZodObject<{
715
+ complexity_delta: z.ZodNumber;
716
+ public_api_delta: z.ZodNumber;
717
+ duplication_ratio: z.ZodNumber;
718
+ test_to_code_ratio: z.ZodNumber;
719
+ }, z.core.$strip>;
720
+ thresholds: z.ZodObject<{
721
+ max_complexity_delta: z.ZodNumber;
722
+ max_public_api_delta: z.ZodNumber;
723
+ max_duplication_ratio: z.ZodNumber;
724
+ min_test_to_code_ratio: z.ZodNumber;
725
+ }, z.core.$strip>;
726
+ violations: z.ZodDefault<z.ZodArray<z.ZodObject<{
727
+ type: z.ZodEnum<{
728
+ complexity: "complexity";
729
+ api: "api";
730
+ duplication: "duplication";
731
+ test_ratio: "test_ratio";
732
+ }>;
733
+ message: z.ZodString;
734
+ severity: z.ZodEnum<{
735
+ error: "error";
736
+ warning: "warning";
737
+ }>;
738
+ files: z.ZodArray<z.ZodString>;
739
+ }, z.core.$strip>>>;
740
+ files_analyzed: z.ZodArray<z.ZodString>;
311
741
  }, z.core.$strip>], "type">;
312
742
  export type Evidence = z.infer<typeof EvidenceSchema>;
313
743
  export declare const EvidenceBundleSchema: z.ZodObject<{
@@ -440,6 +870,209 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
440
870
  }>;
441
871
  top_rejection_reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
442
872
  lessons_learned: z.ZodDefault<z.ZodArray<z.ZodString>>;
873
+ }, z.core.$strip>, z.ZodObject<{
874
+ task_id: z.ZodString;
875
+ timestamp: z.ZodString;
876
+ agent: z.ZodString;
877
+ verdict: z.ZodEnum<{
878
+ pass: "pass";
879
+ fail: "fail";
880
+ approved: "approved";
881
+ rejected: "rejected";
882
+ info: "info";
883
+ }>;
884
+ summary: z.ZodString;
885
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
886
+ type: z.ZodLiteral<"syntax">;
887
+ files_checked: z.ZodNumber;
888
+ files_failed: z.ZodNumber;
889
+ skipped_count: z.ZodDefault<z.ZodNumber>;
890
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
891
+ path: z.ZodString;
892
+ language: z.ZodString;
893
+ ok: z.ZodBoolean;
894
+ errors: z.ZodDefault<z.ZodArray<z.ZodObject<{
895
+ line: z.ZodNumber;
896
+ column: z.ZodNumber;
897
+ message: z.ZodString;
898
+ }, z.core.$strip>>>;
899
+ skipped_reason: z.ZodOptional<z.ZodString>;
900
+ }, z.core.$strip>>>;
901
+ }, z.core.$strip>, z.ZodObject<{
902
+ task_id: z.ZodString;
903
+ timestamp: z.ZodString;
904
+ agent: z.ZodString;
905
+ verdict: z.ZodEnum<{
906
+ pass: "pass";
907
+ fail: "fail";
908
+ approved: "approved";
909
+ rejected: "rejected";
910
+ info: "info";
911
+ }>;
912
+ summary: z.ZodString;
913
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
914
+ type: z.ZodLiteral<"placeholder">;
915
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
916
+ path: z.ZodString;
917
+ line: z.ZodNumber;
918
+ kind: z.ZodEnum<{
919
+ string: "string";
920
+ comment: "comment";
921
+ function_body: "function_body";
922
+ other: "other";
923
+ }>;
924
+ excerpt: z.ZodString;
925
+ rule_id: z.ZodString;
926
+ }, z.core.$strip>>>;
927
+ files_scanned: z.ZodNumber;
928
+ files_with_findings: z.ZodNumber;
929
+ findings_count: z.ZodNumber;
930
+ }, z.core.$strip>, z.ZodObject<{
931
+ task_id: z.ZodString;
932
+ timestamp: z.ZodString;
933
+ agent: z.ZodString;
934
+ verdict: z.ZodEnum<{
935
+ pass: "pass";
936
+ fail: "fail";
937
+ approved: "approved";
938
+ rejected: "rejected";
939
+ info: "info";
940
+ }>;
941
+ summary: z.ZodString;
942
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
943
+ type: z.ZodLiteral<"sast">;
944
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
945
+ rule_id: z.ZodString;
946
+ severity: z.ZodEnum<{
947
+ low: "low";
948
+ medium: "medium";
949
+ high: "high";
950
+ critical: "critical";
951
+ }>;
952
+ message: z.ZodString;
953
+ location: z.ZodObject<{
954
+ file: z.ZodString;
955
+ line: z.ZodNumber;
956
+ column: z.ZodOptional<z.ZodNumber>;
957
+ }, z.core.$strip>;
958
+ remediation: z.ZodOptional<z.ZodString>;
959
+ }, z.core.$strip>>>;
960
+ engine: z.ZodEnum<{
961
+ tier_a: "tier_a";
962
+ "tier_a+tier_b": "tier_a+tier_b";
963
+ }>;
964
+ files_scanned: z.ZodNumber;
965
+ findings_count: z.ZodNumber;
966
+ findings_by_severity: z.ZodObject<{
967
+ critical: z.ZodNumber;
968
+ high: z.ZodNumber;
969
+ medium: z.ZodNumber;
970
+ low: z.ZodNumber;
971
+ }, z.core.$strip>;
972
+ }, z.core.$strip>, z.ZodObject<{
973
+ task_id: z.ZodString;
974
+ timestamp: z.ZodString;
975
+ agent: z.ZodString;
976
+ verdict: z.ZodEnum<{
977
+ pass: "pass";
978
+ fail: "fail";
979
+ approved: "approved";
980
+ rejected: "rejected";
981
+ info: "info";
982
+ }>;
983
+ summary: z.ZodString;
984
+ type: z.ZodLiteral<"sbom">;
985
+ components: z.ZodDefault<z.ZodArray<z.ZodObject<{
986
+ name: z.ZodString;
987
+ version: z.ZodString;
988
+ type: z.ZodEnum<{
989
+ library: "library";
990
+ framework: "framework";
991
+ application: "application";
992
+ }>;
993
+ purl: z.ZodOptional<z.ZodString>;
994
+ license: z.ZodOptional<z.ZodString>;
995
+ }, z.core.$strip>>>;
996
+ metadata: z.ZodObject<{
997
+ timestamp: z.ZodString;
998
+ tool: z.ZodString;
999
+ tool_version: z.ZodString;
1000
+ }, z.core.$strip>;
1001
+ files: z.ZodArray<z.ZodString>;
1002
+ components_count: z.ZodNumber;
1003
+ output_path: z.ZodString;
1004
+ }, z.core.$strip>, z.ZodObject<{
1005
+ task_id: z.ZodString;
1006
+ timestamp: z.ZodString;
1007
+ agent: z.ZodString;
1008
+ verdict: z.ZodEnum<{
1009
+ pass: "pass";
1010
+ fail: "fail";
1011
+ approved: "approved";
1012
+ rejected: "rejected";
1013
+ info: "info";
1014
+ }>;
1015
+ summary: z.ZodString;
1016
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1017
+ type: z.ZodLiteral<"build">;
1018
+ runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1019
+ kind: z.ZodEnum<{
1020
+ test: "test";
1021
+ build: "build";
1022
+ typecheck: "typecheck";
1023
+ }>;
1024
+ command: z.ZodString;
1025
+ cwd: z.ZodString;
1026
+ exit_code: z.ZodNumber;
1027
+ duration_ms: z.ZodNumber;
1028
+ stdout_tail: z.ZodString;
1029
+ stderr_tail: z.ZodString;
1030
+ }, z.core.$strip>>>;
1031
+ files_scanned: z.ZodNumber;
1032
+ runs_count: z.ZodNumber;
1033
+ failed_count: z.ZodNumber;
1034
+ skipped_reason: z.ZodOptional<z.ZodString>;
1035
+ }, z.core.$strip>, z.ZodObject<{
1036
+ task_id: z.ZodString;
1037
+ timestamp: z.ZodString;
1038
+ agent: z.ZodString;
1039
+ verdict: z.ZodEnum<{
1040
+ pass: "pass";
1041
+ fail: "fail";
1042
+ approved: "approved";
1043
+ rejected: "rejected";
1044
+ info: "info";
1045
+ }>;
1046
+ summary: z.ZodString;
1047
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1048
+ type: z.ZodLiteral<"quality_budget">;
1049
+ metrics: z.ZodObject<{
1050
+ complexity_delta: z.ZodNumber;
1051
+ public_api_delta: z.ZodNumber;
1052
+ duplication_ratio: z.ZodNumber;
1053
+ test_to_code_ratio: z.ZodNumber;
1054
+ }, z.core.$strip>;
1055
+ thresholds: z.ZodObject<{
1056
+ max_complexity_delta: z.ZodNumber;
1057
+ max_public_api_delta: z.ZodNumber;
1058
+ max_duplication_ratio: z.ZodNumber;
1059
+ min_test_to_code_ratio: z.ZodNumber;
1060
+ }, z.core.$strip>;
1061
+ violations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1062
+ type: z.ZodEnum<{
1063
+ complexity: "complexity";
1064
+ api: "api";
1065
+ duplication: "duplication";
1066
+ test_ratio: "test_ratio";
1067
+ }>;
1068
+ message: z.ZodString;
1069
+ severity: z.ZodEnum<{
1070
+ error: "error";
1071
+ warning: "warning";
1072
+ }>;
1073
+ files: z.ZodArray<z.ZodString>;
1074
+ }, z.core.$strip>>>;
1075
+ files_analyzed: z.ZodArray<z.ZodString>;
443
1076
  }, z.core.$strip>], "type">>>;
444
1077
  created_at: z.ZodString;
445
1078
  updated_at: z.ZodString;