opencode-swarm 7.98.1 → 7.99.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 (45) hide show
  1. package/README.md +1 -0
  2. package/dist/cli/{config-doctor-7yrxfa6b.js → config-doctor-9fhfy6p7.js} +2 -2
  3. package/dist/cli/{evidence-summary-service-g4x5e3e3.js → evidence-summary-service-4hs44n2c.js} +6 -6
  4. package/dist/cli/{gate-evidence-nphg8hay.js → gate-evidence-ywys9vfs.js} +4 -4
  5. package/dist/cli/guardrail-explain-ktm6szbm.js +30 -0
  6. package/dist/cli/{guardrail-log-53z1cf46.js → guardrail-log-ya49kpwn.js} +3 -3
  7. package/dist/cli/{index-91qtsbce.js → index-3naa2ajc.js} +1 -1
  8. package/dist/cli/{index-attgb1ma.js → index-4pt2py5p.js} +17 -15
  9. package/dist/cli/{index-sf08zj91.js → index-5fxjagjt.js} +2 -2
  10. package/dist/cli/{index-471qxz9g.js → index-7hnwnw5g.js} +11 -1
  11. package/dist/cli/{index-kv4dd5c5.js → index-9b7qp18e.js} +1 -1
  12. package/dist/cli/{index-hb10a2g8.js → index-f7nma02k.js} +2 -2
  13. package/dist/cli/{index-0rgde8qc.js → index-ft4gehk1.js} +2 -2
  14. package/dist/cli/{index-gnd1280x.js → index-h9ptj4b1.js} +1 -1
  15. package/dist/cli/{index-zgba613y.js → index-hw8r3e5p.js} +1108 -792
  16. package/dist/cli/{index-mh1ej70w.js → index-r8f89sm9.js} +2 -2
  17. package/dist/cli/{index-zy22fg5h.js → index-svf2zjxs.js} +5 -1
  18. package/dist/cli/{index-xchgryg4.js → index-vn263hqt.js} +16 -2
  19. package/dist/cli/{index-fjxjb66n.js → index-vwyjkzgs.js} +3 -3
  20. package/dist/cli/{index-gn8n22th.js → index-we94wkty.js} +19 -3
  21. package/dist/cli/{index-4c5jpmn9.js → index-wwnjw0fb.js} +11 -11
  22. package/dist/cli/{index-5z2e78tv.js → index-xsswhy6k.js} +1 -1
  23. package/dist/cli/index.js +13 -13
  24. package/dist/cli/{knowledge-store-pa58msy5.js → knowledge-store-tsa8ezka.js} +4 -4
  25. package/dist/cli/{pending-delegations-shqbvfjc.js → pending-delegations-c785p5n2.js} +3 -3
  26. package/dist/cli/{pr-subscriptions-2565fpsc.js → pr-subscriptions-fqrzm0tv.js} +4 -4
  27. package/dist/cli/{schema-mygkbbe9.js → schema-nz638xc3.js} +5 -1
  28. package/dist/cli/{skill-generator-3tkwcg4x.js → skill-generator-99rrfwae.js} +5 -5
  29. package/dist/cli/{telemetry-aa1ma1dr.js → telemetry-jm7t8031.js} +1 -1
  30. package/dist/commands/close.d.ts +2 -1
  31. package/dist/commands/costs.d.ts +4 -0
  32. package/dist/commands/index.d.ts +1 -0
  33. package/dist/commands/registry.d.ts +9 -2
  34. package/dist/config/evidence-schema.d.ts +44 -44
  35. package/dist/config/index.d.ts +2 -2
  36. package/dist/config/schema.d.ts +24 -0
  37. package/dist/hooks/system-enhancer.d.ts +1 -1
  38. package/dist/hooks/utils.d.ts +3 -1
  39. package/dist/index.js +2978 -2337
  40. package/dist/plan/manager.d.ts +1 -1
  41. package/dist/services/cost-accounting.d.ts +65 -0
  42. package/dist/state.d.ts +3 -3
  43. package/dist/telemetry.d.ts +2 -1
  44. package/package.json +1 -1
  45. package/dist/cli/guardrail-explain-cm08h4mt.js +0 -30
@@ -22,13 +22,13 @@ export declare const EvidenceTypeSchema: z.ZodEnum<{
22
22
  }>;
23
23
  export type EvidenceType = z.infer<typeof EvidenceTypeSchema>;
24
24
  export declare const EvidenceVerdictSchema: z.ZodEnum<{
25
+ info: "info";
25
26
  warn: "warn";
26
27
  skip: "skip";
27
28
  rejected: "rejected";
28
29
  pass: "pass";
29
30
  fail: "fail";
30
31
  approved: "approved";
31
- info: "info";
32
32
  }>;
33
33
  export type EvidenceVerdict = z.infer<typeof EvidenceVerdictSchema>;
34
34
  export declare const BaseEvidenceSchema: z.ZodObject<{
@@ -54,13 +54,13 @@ export declare const BaseEvidenceSchema: z.ZodObject<{
54
54
  timestamp: z.ZodString;
55
55
  agent: z.ZodString;
56
56
  verdict: z.ZodEnum<{
57
+ info: "info";
57
58
  warn: "warn";
58
59
  skip: "skip";
59
60
  rejected: "rejected";
60
61
  pass: "pass";
61
62
  fail: "fail";
62
63
  approved: "approved";
63
- info: "info";
64
64
  }>;
65
65
  summary: z.ZodString;
66
66
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -71,13 +71,13 @@ export declare const ReviewEvidenceSchema: z.ZodObject<{
71
71
  timestamp: z.ZodString;
72
72
  agent: z.ZodString;
73
73
  verdict: z.ZodEnum<{
74
+ info: "info";
74
75
  warn: "warn";
75
76
  skip: "skip";
76
77
  rejected: "rejected";
77
78
  pass: "pass";
78
79
  fail: "fail";
79
80
  approved: "approved";
80
- info: "info";
81
81
  }>;
82
82
  summary: z.ZodString;
83
83
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -91,8 +91,8 @@ export declare const ReviewEvidenceSchema: z.ZodObject<{
91
91
  issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
92
92
  severity: z.ZodEnum<{
93
93
  error: "error";
94
- warning: "warning";
95
94
  info: "info";
95
+ warning: "warning";
96
96
  }>;
97
97
  message: z.ZodString;
98
98
  file: z.ZodOptional<z.ZodString>;
@@ -105,13 +105,13 @@ export declare const TestEvidenceSchema: z.ZodObject<{
105
105
  timestamp: z.ZodString;
106
106
  agent: z.ZodString;
107
107
  verdict: z.ZodEnum<{
108
+ info: "info";
108
109
  warn: "warn";
109
110
  skip: "skip";
110
111
  rejected: "rejected";
111
112
  pass: "pass";
112
113
  fail: "fail";
113
114
  approved: "approved";
114
- info: "info";
115
115
  }>;
116
116
  summary: z.ZodString;
117
117
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -130,13 +130,13 @@ export declare const DiffEvidenceSchema: z.ZodObject<{
130
130
  timestamp: z.ZodString;
131
131
  agent: z.ZodString;
132
132
  verdict: z.ZodEnum<{
133
+ info: "info";
133
134
  warn: "warn";
134
135
  skip: "skip";
135
136
  rejected: "rejected";
136
137
  pass: "pass";
137
138
  fail: "fail";
138
139
  approved: "approved";
139
- info: "info";
140
140
  }>;
141
141
  summary: z.ZodString;
142
142
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -152,13 +152,13 @@ export declare const ApprovalEvidenceSchema: z.ZodObject<{
152
152
  timestamp: z.ZodString;
153
153
  agent: z.ZodString;
154
154
  verdict: z.ZodEnum<{
155
+ info: "info";
155
156
  warn: "warn";
156
157
  skip: "skip";
157
158
  rejected: "rejected";
158
159
  pass: "pass";
159
160
  fail: "fail";
160
161
  approved: "approved";
161
- info: "info";
162
162
  }>;
163
163
  summary: z.ZodString;
164
164
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -170,13 +170,13 @@ export declare const NoteEvidenceSchema: z.ZodObject<{
170
170
  timestamp: z.ZodString;
171
171
  agent: z.ZodString;
172
172
  verdict: z.ZodEnum<{
173
+ info: "info";
173
174
  warn: "warn";
174
175
  skip: "skip";
175
176
  rejected: "rejected";
176
177
  pass: "pass";
177
178
  fail: "fail";
178
179
  approved: "approved";
179
- info: "info";
180
180
  }>;
181
181
  summary: z.ZodString;
182
182
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -188,13 +188,13 @@ export declare const RetrospectiveEvidenceSchema: z.ZodObject<{
188
188
  timestamp: z.ZodString;
189
189
  agent: z.ZodString;
190
190
  verdict: z.ZodEnum<{
191
+ info: "info";
191
192
  warn: "warn";
192
193
  skip: "skip";
193
194
  rejected: "rejected";
194
195
  pass: "pass";
195
196
  fail: "fail";
196
197
  approved: "approved";
197
- info: "info";
198
198
  }>;
199
199
  summary: z.ZodString;
200
200
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -255,13 +255,13 @@ export declare const SyntaxEvidenceSchema: z.ZodObject<{
255
255
  timestamp: z.ZodString;
256
256
  agent: z.ZodString;
257
257
  verdict: z.ZodEnum<{
258
+ info: "info";
258
259
  warn: "warn";
259
260
  skip: "skip";
260
261
  rejected: "rejected";
261
262
  pass: "pass";
262
263
  fail: "fail";
263
264
  approved: "approved";
264
- info: "info";
265
265
  }>;
266
266
  summary: z.ZodString;
267
267
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -287,13 +287,13 @@ export declare const PlaceholderEvidenceSchema: z.ZodObject<{
287
287
  timestamp: z.ZodString;
288
288
  agent: z.ZodString;
289
289
  verdict: z.ZodEnum<{
290
+ info: "info";
290
291
  warn: "warn";
291
292
  skip: "skip";
292
293
  rejected: "rejected";
293
294
  pass: "pass";
294
295
  fail: "fail";
295
296
  approved: "approved";
296
- info: "info";
297
297
  }>;
298
298
  summary: z.ZodString;
299
299
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -336,13 +336,13 @@ export declare const SastEvidenceSchema: z.ZodObject<{
336
336
  timestamp: z.ZodString;
337
337
  agent: z.ZodString;
338
338
  verdict: z.ZodEnum<{
339
+ info: "info";
339
340
  warn: "warn";
340
341
  skip: "skip";
341
342
  rejected: "rejected";
342
343
  pass: "pass";
343
344
  fail: "fail";
344
345
  approved: "approved";
345
- info: "info";
346
346
  }>;
347
347
  summary: z.ZodString;
348
348
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -415,13 +415,13 @@ export declare const SbomEvidenceSchema: z.ZodObject<{
415
415
  timestamp: z.ZodString;
416
416
  agent: z.ZodString;
417
417
  verdict: z.ZodEnum<{
418
+ info: "info";
418
419
  warn: "warn";
419
420
  skip: "skip";
420
421
  rejected: "rejected";
421
422
  pass: "pass";
422
423
  fail: "fail";
423
424
  approved: "approved";
424
- info: "info";
425
425
  }>;
426
426
  summary: z.ZodString;
427
427
  type: z.ZodLiteral<"sbom">;
@@ -451,13 +451,13 @@ export declare const BuildEvidenceSchema: z.ZodObject<{
451
451
  timestamp: z.ZodString;
452
452
  agent: z.ZodString;
453
453
  verdict: z.ZodEnum<{
454
+ info: "info";
454
455
  warn: "warn";
455
456
  skip: "skip";
456
457
  rejected: "rejected";
457
458
  pass: "pass";
458
459
  fail: "fail";
459
460
  approved: "approved";
460
- info: "info";
461
461
  }>;
462
462
  summary: z.ZodString;
463
463
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -486,13 +486,13 @@ export declare const QualityBudgetEvidenceSchema: z.ZodObject<{
486
486
  timestamp: z.ZodString;
487
487
  agent: z.ZodString;
488
488
  verdict: z.ZodEnum<{
489
+ info: "info";
489
490
  warn: "warn";
490
491
  skip: "skip";
491
492
  rejected: "rejected";
492
493
  pass: "pass";
493
494
  fail: "fail";
494
495
  approved: "approved";
495
- info: "info";
496
496
  }>;
497
497
  summary: z.ZodString;
498
498
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -531,13 +531,13 @@ export declare const SecretscanEvidenceSchema: z.ZodObject<{
531
531
  timestamp: z.ZodString;
532
532
  agent: z.ZodString;
533
533
  verdict: z.ZodEnum<{
534
+ info: "info";
534
535
  warn: "warn";
535
536
  skip: "skip";
536
537
  rejected: "rejected";
537
538
  pass: "pass";
538
539
  fail: "fail";
539
540
  approved: "approved";
540
- info: "info";
541
541
  }>;
542
542
  summary: z.ZodString;
543
543
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -599,13 +599,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
599
599
  timestamp: z.ZodString;
600
600
  agent: z.ZodString;
601
601
  verdict: z.ZodEnum<{
602
+ info: "info";
602
603
  warn: "warn";
603
604
  skip: "skip";
604
605
  rejected: "rejected";
605
606
  pass: "pass";
606
607
  fail: "fail";
607
608
  approved: "approved";
608
- info: "info";
609
609
  }>;
610
610
  summary: z.ZodString;
611
611
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -619,8 +619,8 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
619
619
  issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
620
620
  severity: z.ZodEnum<{
621
621
  error: "error";
622
- warning: "warning";
623
622
  info: "info";
623
+ warning: "warning";
624
624
  }>;
625
625
  message: z.ZodString;
626
626
  file: z.ZodOptional<z.ZodString>;
@@ -631,13 +631,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
631
631
  timestamp: z.ZodString;
632
632
  agent: z.ZodString;
633
633
  verdict: z.ZodEnum<{
634
+ info: "info";
634
635
  warn: "warn";
635
636
  skip: "skip";
636
637
  rejected: "rejected";
637
638
  pass: "pass";
638
639
  fail: "fail";
639
640
  approved: "approved";
640
- info: "info";
641
641
  }>;
642
642
  summary: z.ZodString;
643
643
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -654,13 +654,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
654
654
  timestamp: z.ZodString;
655
655
  agent: z.ZodString;
656
656
  verdict: z.ZodEnum<{
657
+ info: "info";
657
658
  warn: "warn";
658
659
  skip: "skip";
659
660
  rejected: "rejected";
660
661
  pass: "pass";
661
662
  fail: "fail";
662
663
  approved: "approved";
663
- info: "info";
664
664
  }>;
665
665
  summary: z.ZodString;
666
666
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -674,13 +674,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
674
674
  timestamp: z.ZodString;
675
675
  agent: z.ZodString;
676
676
  verdict: z.ZodEnum<{
677
+ info: "info";
677
678
  warn: "warn";
678
679
  skip: "skip";
679
680
  rejected: "rejected";
680
681
  pass: "pass";
681
682
  fail: "fail";
682
683
  approved: "approved";
683
- info: "info";
684
684
  }>;
685
685
  summary: z.ZodString;
686
686
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -690,13 +690,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
690
690
  timestamp: z.ZodString;
691
691
  agent: z.ZodString;
692
692
  verdict: z.ZodEnum<{
693
+ info: "info";
693
694
  warn: "warn";
694
695
  skip: "skip";
695
696
  rejected: "rejected";
696
697
  pass: "pass";
697
698
  fail: "fail";
698
699
  approved: "approved";
699
- info: "info";
700
700
  }>;
701
701
  summary: z.ZodString;
702
702
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -706,13 +706,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
706
706
  timestamp: z.ZodString;
707
707
  agent: z.ZodString;
708
708
  verdict: z.ZodEnum<{
709
+ info: "info";
709
710
  warn: "warn";
710
711
  skip: "skip";
711
712
  rejected: "rejected";
712
713
  pass: "pass";
713
714
  fail: "fail";
714
715
  approved: "approved";
715
- info: "info";
716
716
  }>;
717
717
  summary: z.ZodString;
718
718
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -771,13 +771,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
771
771
  timestamp: z.ZodString;
772
772
  agent: z.ZodString;
773
773
  verdict: z.ZodEnum<{
774
+ info: "info";
774
775
  warn: "warn";
775
776
  skip: "skip";
776
777
  rejected: "rejected";
777
778
  pass: "pass";
778
779
  fail: "fail";
779
780
  approved: "approved";
780
- info: "info";
781
781
  }>;
782
782
  summary: z.ZodString;
783
783
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -801,13 +801,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
801
801
  timestamp: z.ZodString;
802
802
  agent: z.ZodString;
803
803
  verdict: z.ZodEnum<{
804
+ info: "info";
804
805
  warn: "warn";
805
806
  skip: "skip";
806
807
  rejected: "rejected";
807
808
  pass: "pass";
808
809
  fail: "fail";
809
810
  approved: "approved";
810
- info: "info";
811
811
  }>;
812
812
  summary: z.ZodString;
813
813
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -832,13 +832,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
832
832
  timestamp: z.ZodString;
833
833
  agent: z.ZodString;
834
834
  verdict: z.ZodEnum<{
835
+ info: "info";
835
836
  warn: "warn";
836
837
  skip: "skip";
837
838
  rejected: "rejected";
838
839
  pass: "pass";
839
840
  fail: "fail";
840
841
  approved: "approved";
841
- info: "info";
842
842
  }>;
843
843
  summary: z.ZodString;
844
844
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -909,13 +909,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
909
909
  timestamp: z.ZodString;
910
910
  agent: z.ZodString;
911
911
  verdict: z.ZodEnum<{
912
+ info: "info";
912
913
  warn: "warn";
913
914
  skip: "skip";
914
915
  rejected: "rejected";
915
916
  pass: "pass";
916
917
  fail: "fail";
917
918
  approved: "approved";
918
- info: "info";
919
919
  }>;
920
920
  summary: z.ZodString;
921
921
  type: z.ZodLiteral<"sbom">;
@@ -943,13 +943,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
943
943
  timestamp: z.ZodString;
944
944
  agent: z.ZodString;
945
945
  verdict: z.ZodEnum<{
946
+ info: "info";
946
947
  warn: "warn";
947
948
  skip: "skip";
948
949
  rejected: "rejected";
949
950
  pass: "pass";
950
951
  fail: "fail";
951
952
  approved: "approved";
952
- info: "info";
953
953
  }>;
954
954
  summary: z.ZodString;
955
955
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -976,13 +976,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
976
976
  timestamp: z.ZodString;
977
977
  agent: z.ZodString;
978
978
  verdict: z.ZodEnum<{
979
+ info: "info";
979
980
  warn: "warn";
980
981
  skip: "skip";
981
982
  rejected: "rejected";
982
983
  pass: "pass";
983
984
  fail: "fail";
984
985
  approved: "approved";
985
- info: "info";
986
986
  }>;
987
987
  summary: z.ZodString;
988
988
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1019,13 +1019,13 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1019
1019
  timestamp: z.ZodString;
1020
1020
  agent: z.ZodString;
1021
1021
  verdict: z.ZodEnum<{
1022
+ info: "info";
1022
1023
  warn: "warn";
1023
1024
  skip: "skip";
1024
1025
  rejected: "rejected";
1025
1026
  pass: "pass";
1026
1027
  fail: "fail";
1027
1028
  approved: "approved";
1028
- info: "info";
1029
1029
  }>;
1030
1030
  summary: z.ZodString;
1031
1031
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1084,13 +1084,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1084
1084
  timestamp: z.ZodString;
1085
1085
  agent: z.ZodString;
1086
1086
  verdict: z.ZodEnum<{
1087
+ info: "info";
1087
1088
  warn: "warn";
1088
1089
  skip: "skip";
1089
1090
  rejected: "rejected";
1090
1091
  pass: "pass";
1091
1092
  fail: "fail";
1092
1093
  approved: "approved";
1093
- info: "info";
1094
1094
  }>;
1095
1095
  summary: z.ZodString;
1096
1096
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1104,8 +1104,8 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1104
1104
  issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
1105
1105
  severity: z.ZodEnum<{
1106
1106
  error: "error";
1107
- warning: "warning";
1108
1107
  info: "info";
1108
+ warning: "warning";
1109
1109
  }>;
1110
1110
  message: z.ZodString;
1111
1111
  file: z.ZodOptional<z.ZodString>;
@@ -1116,13 +1116,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1116
1116
  timestamp: z.ZodString;
1117
1117
  agent: z.ZodString;
1118
1118
  verdict: z.ZodEnum<{
1119
+ info: "info";
1119
1120
  warn: "warn";
1120
1121
  skip: "skip";
1121
1122
  rejected: "rejected";
1122
1123
  pass: "pass";
1123
1124
  fail: "fail";
1124
1125
  approved: "approved";
1125
- info: "info";
1126
1126
  }>;
1127
1127
  summary: z.ZodString;
1128
1128
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1139,13 +1139,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1139
1139
  timestamp: z.ZodString;
1140
1140
  agent: z.ZodString;
1141
1141
  verdict: z.ZodEnum<{
1142
+ info: "info";
1142
1143
  warn: "warn";
1143
1144
  skip: "skip";
1144
1145
  rejected: "rejected";
1145
1146
  pass: "pass";
1146
1147
  fail: "fail";
1147
1148
  approved: "approved";
1148
- info: "info";
1149
1149
  }>;
1150
1150
  summary: z.ZodString;
1151
1151
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1159,13 +1159,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1159
1159
  timestamp: z.ZodString;
1160
1160
  agent: z.ZodString;
1161
1161
  verdict: z.ZodEnum<{
1162
+ info: "info";
1162
1163
  warn: "warn";
1163
1164
  skip: "skip";
1164
1165
  rejected: "rejected";
1165
1166
  pass: "pass";
1166
1167
  fail: "fail";
1167
1168
  approved: "approved";
1168
- info: "info";
1169
1169
  }>;
1170
1170
  summary: z.ZodString;
1171
1171
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1175,13 +1175,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1175
1175
  timestamp: z.ZodString;
1176
1176
  agent: z.ZodString;
1177
1177
  verdict: z.ZodEnum<{
1178
+ info: "info";
1178
1179
  warn: "warn";
1179
1180
  skip: "skip";
1180
1181
  rejected: "rejected";
1181
1182
  pass: "pass";
1182
1183
  fail: "fail";
1183
1184
  approved: "approved";
1184
- info: "info";
1185
1185
  }>;
1186
1186
  summary: z.ZodString;
1187
1187
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1191,13 +1191,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1191
1191
  timestamp: z.ZodString;
1192
1192
  agent: z.ZodString;
1193
1193
  verdict: z.ZodEnum<{
1194
+ info: "info";
1194
1195
  warn: "warn";
1195
1196
  skip: "skip";
1196
1197
  rejected: "rejected";
1197
1198
  pass: "pass";
1198
1199
  fail: "fail";
1199
1200
  approved: "approved";
1200
- info: "info";
1201
1201
  }>;
1202
1202
  summary: z.ZodString;
1203
1203
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1256,13 +1256,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1256
1256
  timestamp: z.ZodString;
1257
1257
  agent: z.ZodString;
1258
1258
  verdict: z.ZodEnum<{
1259
+ info: "info";
1259
1260
  warn: "warn";
1260
1261
  skip: "skip";
1261
1262
  rejected: "rejected";
1262
1263
  pass: "pass";
1263
1264
  fail: "fail";
1264
1265
  approved: "approved";
1265
- info: "info";
1266
1266
  }>;
1267
1267
  summary: z.ZodString;
1268
1268
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1286,13 +1286,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1286
1286
  timestamp: z.ZodString;
1287
1287
  agent: z.ZodString;
1288
1288
  verdict: z.ZodEnum<{
1289
+ info: "info";
1289
1290
  warn: "warn";
1290
1291
  skip: "skip";
1291
1292
  rejected: "rejected";
1292
1293
  pass: "pass";
1293
1294
  fail: "fail";
1294
1295
  approved: "approved";
1295
- info: "info";
1296
1296
  }>;
1297
1297
  summary: z.ZodString;
1298
1298
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1317,13 +1317,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1317
1317
  timestamp: z.ZodString;
1318
1318
  agent: z.ZodString;
1319
1319
  verdict: z.ZodEnum<{
1320
+ info: "info";
1320
1321
  warn: "warn";
1321
1322
  skip: "skip";
1322
1323
  rejected: "rejected";
1323
1324
  pass: "pass";
1324
1325
  fail: "fail";
1325
1326
  approved: "approved";
1326
- info: "info";
1327
1327
  }>;
1328
1328
  summary: z.ZodString;
1329
1329
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1394,13 +1394,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1394
1394
  timestamp: z.ZodString;
1395
1395
  agent: z.ZodString;
1396
1396
  verdict: z.ZodEnum<{
1397
+ info: "info";
1397
1398
  warn: "warn";
1398
1399
  skip: "skip";
1399
1400
  rejected: "rejected";
1400
1401
  pass: "pass";
1401
1402
  fail: "fail";
1402
1403
  approved: "approved";
1403
- info: "info";
1404
1404
  }>;
1405
1405
  summary: z.ZodString;
1406
1406
  type: z.ZodLiteral<"sbom">;
@@ -1428,13 +1428,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1428
1428
  timestamp: z.ZodString;
1429
1429
  agent: z.ZodString;
1430
1430
  verdict: z.ZodEnum<{
1431
+ info: "info";
1431
1432
  warn: "warn";
1432
1433
  skip: "skip";
1433
1434
  rejected: "rejected";
1434
1435
  pass: "pass";
1435
1436
  fail: "fail";
1436
1437
  approved: "approved";
1437
- info: "info";
1438
1438
  }>;
1439
1439
  summary: z.ZodString;
1440
1440
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1461,13 +1461,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1461
1461
  timestamp: z.ZodString;
1462
1462
  agent: z.ZodString;
1463
1463
  verdict: z.ZodEnum<{
1464
+ info: "info";
1464
1465
  warn: "warn";
1465
1466
  skip: "skip";
1466
1467
  rejected: "rejected";
1467
1468
  pass: "pass";
1468
1469
  fail: "fail";
1469
1470
  approved: "approved";
1470
- info: "info";
1471
1471
  }>;
1472
1472
  summary: z.ZodString;
1473
1473
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1504,13 +1504,13 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
1504
1504
  timestamp: z.ZodString;
1505
1505
  agent: z.ZodString;
1506
1506
  verdict: z.ZodEnum<{
1507
+ info: "info";
1507
1508
  warn: "warn";
1508
1509
  skip: "skip";
1509
1510
  rejected: "rejected";
1510
1511
  pass: "pass";
1511
1512
  fail: "fail";
1512
1513
  approved: "approved";
1513
- info: "info";
1514
1514
  }>;
1515
1515
  summary: z.ZodString;
1516
1516
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -18,7 +18,7 @@ export declare const _internals: {
18
18
  };
19
19
  export type { MigrationStatus, Phase, PhaseStatus, Plan, Task, TaskSize, TaskStatus, } from './plan-schema';
20
20
  export { MigrationStatusSchema, PhaseSchema, PhaseStatusSchema, PlanSchema, TaskSchema, TaskSizeSchema, TaskStatusSchema, } from './plan-schema';
21
- export type { AgentOverrideConfig, AutomationCapabilities, AutomationConfig, AutomationMode, LeanTurboConfig, MemoryConfig, PhaseCompleteConfig, PipelineConfig, PluginConfig, RepoGraphConfig, SkillPropagationConfig, SwarmConfig, TurboConfig, WorktreeIsolationConfig, } from './schema';
22
- export { AgentOverrideConfigSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, AutomationModeSchema, LeanTurboConfigSchema, MemoryConfigSchema, PhaseCompleteConfigSchema, PipelineConfigSchema, PluginConfigSchema, RepoGraphConfigSchema, SkillPropagationConfigSchema, SwarmConfigSchema, TurboConfigSchema, WorktreeIsolationConfigSchema, } from './schema';
21
+ export type { AgentOverrideConfig, AutomationCapabilities, AutomationConfig, AutomationMode, LeanTurboConfig, MemoryConfig, ModelPricingConfig, PhaseCompleteConfig, PipelineConfig, PluginConfig, PricingConfig, RepoGraphConfig, SkillPropagationConfig, SwarmConfig, TurboConfig, WorktreeIsolationConfig, } from './schema';
22
+ export { AgentOverrideConfigSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, AutomationModeSchema, LeanTurboConfigSchema, MemoryConfigSchema, ModelPricingConfigSchema, PhaseCompleteConfigSchema, PipelineConfigSchema, PluginConfigSchema, PricingConfigSchema, RepoGraphConfigSchema, SkillPropagationConfigSchema, SwarmConfigSchema, TurboConfigSchema, WorktreeIsolationConfigSchema, } from './schema';
23
23
  export type { DeltaSpec, Obligation, SpecDelta, SpecRequirement, SpecScenario, SpecSection, SwarmSpec, } from './spec-schema';
24
24
  export { DeltaSpecSchema, ObligationSchema, SpecDeltaSchema, SpecRequirementSchema, SpecScenarioSchema, SpecSectionSchema, SwarmSpecSchema, validateSpecContent, } from './spec-schema';
@@ -132,6 +132,22 @@ export declare const SwarmConfigSchema: z.ZodObject<{
132
132
  }, z.core.$strip>>>;
133
133
  }, z.core.$strip>;
134
134
  export type SwarmConfig = z.infer<typeof SwarmConfigSchema>;
135
+ export declare const ModelPricingConfigSchema: z.ZodObject<{
136
+ input_per_million: z.ZodNumber;
137
+ output_per_million: z.ZodNumber;
138
+ reasoning_per_million: z.ZodOptional<z.ZodNumber>;
139
+ cache_per_million: z.ZodOptional<z.ZodNumber>;
140
+ }, z.core.$strip>;
141
+ export type ModelPricingConfig = z.infer<typeof ModelPricingConfigSchema>;
142
+ export declare const PricingConfigSchema: z.ZodObject<{
143
+ models: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
144
+ input_per_million: z.ZodNumber;
145
+ output_per_million: z.ZodNumber;
146
+ reasoning_per_million: z.ZodOptional<z.ZodNumber>;
147
+ cache_per_million: z.ZodOptional<z.ZodNumber>;
148
+ }, z.core.$strip>>>>;
149
+ }, z.core.$strip>;
150
+ export type PricingConfig = z.infer<typeof PricingConfigSchema>;
135
151
  export declare const HooksConfigSchema: z.ZodObject<{
136
152
  system_enhancer: z.ZodDefault<z.ZodBoolean>;
137
153
  compaction: z.ZodDefault<z.ZodBoolean>;
@@ -1517,6 +1533,14 @@ export declare const PluginConfigSchema: z.ZodObject<{
1517
1533
  enforce_on_agent_switch: z.ZodDefault<z.ZodBoolean>;
1518
1534
  tool_output_mask_threshold: z.ZodDefault<z.ZodNumber>;
1519
1535
  }, z.core.$strip>>;
1536
+ pricing: z.ZodOptional<z.ZodObject<{
1537
+ models: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1538
+ input_per_million: z.ZodNumber;
1539
+ output_per_million: z.ZodNumber;
1540
+ reasoning_per_million: z.ZodOptional<z.ZodNumber>;
1541
+ cache_per_million: z.ZodOptional<z.ZodNumber>;
1542
+ }, z.core.$strip>>>>;
1543
+ }, z.core.$strip>>;
1520
1544
  guardrails: z.ZodOptional<z.ZodObject<{
1521
1545
  enabled: z.ZodDefault<z.ZodBoolean>;
1522
1546
  max_tool_calls: z.ZodDefault<z.ZodNumber>;
@@ -46,4 +46,4 @@ export type ArchitectMode = 'DISCOVER' | 'PLAN' | 'EXECUTE' | 'PHASE-WRAP' | 'UN
46
46
  * @param directory - The project directory to check
47
47
  * @returns The current architect mode based on plan state
48
48
  */
49
- export declare function detectArchitectMode(directory: string): Promise<ArchitectMode>;
49
+ export declare function detectArchitectMode(directory: string, cache?: Map<string, Promise<string | null>>): Promise<ArchitectMode>;