@boringparts/verule 0.1.0 → 0.2.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.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type CheckReport, type FactConflictDetails, type ProjectSummary } from "./index.ts";
2
+ import { type CheckReport, type ProjectSummary } from "./index.ts";
3
3
  export declare const locationSchema: z.ZodObject<{
4
4
  file: z.ZodString;
5
5
  line: z.ZodNumber;
@@ -9,11 +9,17 @@ export declare const locationSchema: z.ZodObject<{
9
9
  start: z.ZodNumber;
10
10
  end: z.ZodNumber;
11
11
  }, z.core.$strip>;
12
+ export declare const summaryDiscoverySourceSchema: z.ZodEnum<{
13
+ builtin: "builtin";
14
+ community: "community";
15
+ local: "local";
16
+ package: "package";
17
+ }>;
12
18
  export declare const evidenceSchema: z.ZodObject<{
13
19
  kind: z.ZodEnum<{
14
- model: "model";
15
20
  note: "note";
16
21
  source: "source";
22
+ summary: "summary";
17
23
  type: "type";
18
24
  }>;
19
25
  message: z.ZodString;
@@ -26,7 +32,13 @@ export declare const evidenceSchema: z.ZodObject<{
26
32
  start: z.ZodNumber;
27
33
  end: z.ZodNumber;
28
34
  }, z.core.$strip>>;
29
- modelId: z.ZodOptional<z.ZodString>;
35
+ summaryId: z.ZodOptional<z.ZodString>;
36
+ summarySource: z.ZodOptional<z.ZodEnum<{
37
+ builtin: "builtin";
38
+ community: "community";
39
+ local: "local";
40
+ package: "package";
41
+ }>>;
30
42
  declaration: z.ZodOptional<z.ZodString>;
31
43
  }, z.core.$strip>;
32
44
  export declare const gapSchema: z.ZodObject<{
@@ -57,9 +69,9 @@ export declare const diagnosticSchema: z.ZodObject<{
57
69
  message: z.ZodString;
58
70
  evidence: z.ZodArray<z.ZodObject<{
59
71
  kind: z.ZodEnum<{
60
- model: "model";
61
72
  note: "note";
62
73
  source: "source";
74
+ summary: "summary";
63
75
  type: "type";
64
76
  }>;
65
77
  message: z.ZodString;
@@ -72,7 +84,13 @@ export declare const diagnosticSchema: z.ZodObject<{
72
84
  start: z.ZodNumber;
73
85
  end: z.ZodNumber;
74
86
  }, z.core.$strip>>;
75
- modelId: z.ZodOptional<z.ZodString>;
87
+ summaryId: z.ZodOptional<z.ZodString>;
88
+ summarySource: z.ZodOptional<z.ZodEnum<{
89
+ builtin: "builtin";
90
+ community: "community";
91
+ local: "local";
92
+ package: "package";
93
+ }>>;
76
94
  declaration: z.ZodOptional<z.ZodString>;
77
95
  }, z.core.$strip>>;
78
96
  projects: z.ZodArray<z.ZodString>;
@@ -131,7 +149,7 @@ export declare const additionalInputSourceSchema: z.ZodDiscriminatedUnion<[z.Zod
131
149
  kind: z.ZodLiteral<"rule">;
132
150
  id: z.ZodString;
133
151
  }, z.core.$strip>, z.ZodObject<{
134
- kind: z.ZodLiteral<"adapter">;
152
+ kind: z.ZodLiteral<"summary">;
135
153
  id: z.ZodString;
136
154
  }, z.core.$strip>], "kind">;
137
155
  export declare const additionalInputEntrySchema: z.ZodObject<{
@@ -144,7 +162,7 @@ export declare const additionalInputEntrySchema: z.ZodObject<{
144
162
  kind: z.ZodLiteral<"rule">;
145
163
  id: z.ZodString;
146
164
  }, z.core.$strip>, z.ZodObject<{
147
- kind: z.ZodLiteral<"adapter">;
165
+ kind: z.ZodLiteral<"summary">;
148
166
  id: z.ZodString;
149
167
  }, z.core.$strip>], "kind">>;
150
168
  }, z.core.$strip>;
@@ -152,11 +170,6 @@ export declare const ruleIdentitySchema: z.ZodObject<{
152
170
  id: z.ZodString;
153
171
  digest: z.ZodString;
154
172
  }, z.core.$strip>;
155
- export declare const modelIdentitySchema: z.ZodObject<{
156
- id: z.ZodString;
157
- version: z.ZodOptional<z.ZodString>;
158
- digest: z.ZodString;
159
- }, z.core.$strip>;
160
173
  export declare const reportIdentitySchema: z.ZodObject<{
161
174
  snapshotDigest: z.ZodString;
162
175
  configDigest: z.ZodString;
@@ -164,11 +177,6 @@ export declare const reportIdentitySchema: z.ZodObject<{
164
177
  id: z.ZodString;
165
178
  digest: z.ZodString;
166
179
  }, z.core.$strip>>;
167
- models: z.ZodArray<z.ZodObject<{
168
- id: z.ZodString;
169
- version: z.ZodOptional<z.ZodString>;
170
- digest: z.ZodString;
171
- }, z.core.$strip>>;
172
180
  }, z.core.$strip>;
173
181
  export declare const observationDetailEntrySchema: z.ZodObject<{
174
182
  kind: z.ZodEnum<{
@@ -203,6 +211,28 @@ export declare const observationDetailEntrySchema: z.ZodObject<{
203
211
  summary: z.ZodString;
204
212
  detail: z.ZodOptional<z.ZodUnknown>;
205
213
  }, z.core.$strip>;
214
+ export declare const engineLoweringMetricsSchema: z.ZodObject<{
215
+ functionsLowered: z.ZodNumber;
216
+ verticesCreated: z.ZodNumber;
217
+ durationMs: z.ZodNumber;
218
+ }, z.core.$strip>;
219
+ export declare const engineIrCacheMetricsSchema: z.ZodObject<{
220
+ functionHits: z.ZodNumber;
221
+ functionMisses: z.ZodNumber;
222
+ filesReused: z.ZodNumber;
223
+ filesInvalidated: z.ZodNumber;
224
+ }, z.core.$strip>;
225
+ export declare const engineSummaryLookupMetricsSchema: z.ZodObject<{
226
+ lookups: z.ZodNumber;
227
+ hits: z.ZodNumber;
228
+ misses: z.ZodNumber;
229
+ hitsBySource: z.ZodObject<{
230
+ local: z.ZodNumber;
231
+ package: z.ZodNumber;
232
+ community: z.ZodNumber;
233
+ builtin: z.ZodNumber;
234
+ }, z.core.$strip>;
235
+ }, z.core.$strip>;
206
236
  export declare const observationSchema: z.ZodObject<{
207
237
  mode: z.ZodEnum<{
208
238
  detail: "detail";
@@ -231,24 +261,34 @@ export declare const observationSchema: z.ZodObject<{
231
261
  candidateCount: z.ZodNumber;
232
262
  checkpointCount: z.ZodNumber;
233
263
  providers: z.ZodArray<z.ZodString>;
234
- nativeAdapters: z.ZodArray<z.ZodObject<{
235
- packageName: z.ZodString;
236
- providerId: z.ZodString;
237
- status: z.ZodEnum<{
238
- loaded: "loaded";
239
- reused: "reused";
240
- }>;
241
- }, z.core.$strip>>;
264
+ lowering: z.ZodObject<{
265
+ functionsLowered: z.ZodNumber;
266
+ verticesCreated: z.ZodNumber;
267
+ durationMs: z.ZodNumber;
268
+ }, z.core.$strip>;
269
+ irCache: z.ZodObject<{
270
+ functionHits: z.ZodNumber;
271
+ functionMisses: z.ZodNumber;
272
+ filesReused: z.ZodNumber;
273
+ filesInvalidated: z.ZodNumber;
274
+ }, z.core.$strip>;
275
+ summaryLookup: z.ZodObject<{
276
+ lookups: z.ZodNumber;
277
+ hits: z.ZodNumber;
278
+ misses: z.ZodNumber;
279
+ hitsBySource: z.ZodObject<{
280
+ local: z.ZodNumber;
281
+ package: z.ZodNumber;
282
+ community: z.ZodNumber;
283
+ builtin: z.ZodNumber;
284
+ }, z.core.$strip>;
285
+ }, z.core.$strip>;
242
286
  limit: z.ZodOptional<z.ZodObject<{
243
287
  maxItems: z.ZodOptional<z.ZodNumber>;
244
288
  maxBytes: z.ZodOptional<z.ZodNumber>;
245
289
  }, z.core.$strip>>;
246
290
  truncated: z.ZodBoolean;
247
291
  droppedCount: z.ZodNumber;
248
- engineExtractions: z.ZodRecord<z.ZodString, z.ZodObject<{
249
- extractions: z.ZodNumber;
250
- candidates: z.ZodNumber;
251
- }, z.core.$strip>>;
252
292
  details: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
293
  kind: z.ZodEnum<{
254
294
  checkpoint: "checkpoint";
@@ -347,13 +387,13 @@ export declare const explainCleanupPathSchema: z.ZodObject<{
347
387
  start: z.ZodNumber;
348
388
  end: z.ZodNumber;
349
389
  }, z.core.$strip>>;
350
- modelIds: z.ZodArray<z.ZodString>;
390
+ summaryIds: z.ZodArray<z.ZodString>;
351
391
  summary: z.ZodString;
352
392
  evidence: z.ZodArray<z.ZodObject<{
353
393
  kind: z.ZodEnum<{
354
- model: "model";
355
394
  note: "note";
356
395
  source: "source";
396
+ summary: "summary";
357
397
  type: "type";
358
398
  }>;
359
399
  message: z.ZodString;
@@ -366,89 +406,16 @@ export declare const explainCleanupPathSchema: z.ZodObject<{
366
406
  start: z.ZodNumber;
367
407
  end: z.ZodNumber;
368
408
  }, z.core.$strip>>;
369
- modelId: z.ZodOptional<z.ZodString>;
409
+ summaryId: z.ZodOptional<z.ZodString>;
410
+ summarySource: z.ZodOptional<z.ZodEnum<{
411
+ builtin: "builtin";
412
+ community: "community";
413
+ local: "local";
414
+ package: "package";
415
+ }>>;
370
416
  declaration: z.ZodOptional<z.ZodString>;
371
417
  }, z.core.$strip>>;
372
418
  }, z.core.$strip>;
373
- export declare const explainGapResolutionSchema: z.ZodObject<{
374
- providerId: z.ZodString;
375
- operation: z.ZodString;
376
- conclusion: z.ZodString;
377
- at: z.ZodOptional<z.ZodObject<{
378
- file: z.ZodString;
379
- line: z.ZodNumber;
380
- column: z.ZodNumber;
381
- endLine: z.ZodNumber;
382
- endColumn: z.ZodNumber;
383
- start: z.ZodNumber;
384
- end: z.ZodNumber;
385
- }, z.core.$strip>>;
386
- }, z.core.$strip>;
387
- export declare const explainLocalGapSchema: z.ZodObject<{
388
- status: z.ZodEnum<{
389
- resolved_by_override: "resolved_by_override";
390
- unresolved: "unresolved";
391
- }>;
392
- factTypeId: z.ZodString;
393
- providerId: z.ZodString;
394
- field: z.ZodOptional<z.ZodString>;
395
- gap: z.ZodObject<{
396
- kind: z.ZodString;
397
- message: z.ZodString;
398
- at: z.ZodOptional<z.ZodObject<{
399
- file: z.ZodString;
400
- line: z.ZodNumber;
401
- column: z.ZodNumber;
402
- endLine: z.ZodNumber;
403
- endColumn: z.ZodNumber;
404
- start: z.ZodNumber;
405
- end: z.ZodNumber;
406
- }, z.core.$strip>>;
407
- }, z.core.$strip>;
408
- subjectLocation: z.ZodOptional<z.ZodObject<{
409
- file: z.ZodString;
410
- line: z.ZodNumber;
411
- column: z.ZodNumber;
412
- endLine: z.ZodNumber;
413
- endColumn: z.ZodNumber;
414
- start: z.ZodNumber;
415
- end: z.ZodNumber;
416
- }, z.core.$strip>>;
417
- resolvedBy: z.ZodOptional<z.ZodObject<{
418
- providerId: z.ZodString;
419
- operation: z.ZodString;
420
- conclusion: z.ZodString;
421
- at: z.ZodOptional<z.ZodObject<{
422
- file: z.ZodString;
423
- line: z.ZodNumber;
424
- column: z.ZodNumber;
425
- endLine: z.ZodNumber;
426
- endColumn: z.ZodNumber;
427
- start: z.ZodNumber;
428
- end: z.ZodNumber;
429
- }, z.core.$strip>>;
430
- }, z.core.$strip>>;
431
- impact: z.ZodOptional<z.ZodString>;
432
- }, z.core.$strip>;
433
- export declare const explainProviderEvaluationSchema: z.ZodObject<{
434
- providerId: z.ZodString;
435
- factTypeId: z.ZodOptional<z.ZodString>;
436
- status: z.ZodEnum<{
437
- evaluated: "evaluated";
438
- reused: "reused";
439
- skipped: "skipped";
440
- }>;
441
- reason: z.ZodOptional<z.ZodString>;
442
- subjectLocation: z.ZodOptional<z.ZodObject<{
443
- file: z.ZodString;
444
- line: z.ZodNumber;
445
- column: z.ZodNumber;
446
- endLine: z.ZodNumber;
447
- endColumn: z.ZodNumber;
448
- start: z.ZodNumber;
449
- end: z.ZodNumber;
450
- }, z.core.$strip>>;
451
- }, z.core.$strip>;
452
419
  export declare const explainResultSchema: z.ZodObject<{
453
420
  ruleId: z.ZodString;
454
421
  target: z.ZodObject<{
@@ -562,71 +529,6 @@ export declare const explainResultSchema: z.ZodObject<{
562
529
  end: z.ZodNumber;
563
530
  }, z.core.$strip>>;
564
531
  }, z.core.$strip>>;
565
- localGaps: z.ZodArray<z.ZodObject<{
566
- status: z.ZodEnum<{
567
- resolved_by_override: "resolved_by_override";
568
- unresolved: "unresolved";
569
- }>;
570
- factTypeId: z.ZodString;
571
- providerId: z.ZodString;
572
- field: z.ZodOptional<z.ZodString>;
573
- gap: z.ZodObject<{
574
- kind: z.ZodString;
575
- message: z.ZodString;
576
- at: z.ZodOptional<z.ZodObject<{
577
- file: z.ZodString;
578
- line: z.ZodNumber;
579
- column: z.ZodNumber;
580
- endLine: z.ZodNumber;
581
- endColumn: z.ZodNumber;
582
- start: z.ZodNumber;
583
- end: z.ZodNumber;
584
- }, z.core.$strip>>;
585
- }, z.core.$strip>;
586
- subjectLocation: z.ZodOptional<z.ZodObject<{
587
- file: z.ZodString;
588
- line: z.ZodNumber;
589
- column: z.ZodNumber;
590
- endLine: z.ZodNumber;
591
- endColumn: z.ZodNumber;
592
- start: z.ZodNumber;
593
- end: z.ZodNumber;
594
- }, z.core.$strip>>;
595
- resolvedBy: z.ZodOptional<z.ZodObject<{
596
- providerId: z.ZodString;
597
- operation: z.ZodString;
598
- conclusion: z.ZodString;
599
- at: z.ZodOptional<z.ZodObject<{
600
- file: z.ZodString;
601
- line: z.ZodNumber;
602
- column: z.ZodNumber;
603
- endLine: z.ZodNumber;
604
- endColumn: z.ZodNumber;
605
- start: z.ZodNumber;
606
- end: z.ZodNumber;
607
- }, z.core.$strip>>;
608
- }, z.core.$strip>>;
609
- impact: z.ZodOptional<z.ZodString>;
610
- }, z.core.$strip>>;
611
- providerEvaluations: z.ZodArray<z.ZodObject<{
612
- providerId: z.ZodString;
613
- factTypeId: z.ZodOptional<z.ZodString>;
614
- status: z.ZodEnum<{
615
- evaluated: "evaluated";
616
- reused: "reused";
617
- skipped: "skipped";
618
- }>;
619
- reason: z.ZodOptional<z.ZodString>;
620
- subjectLocation: z.ZodOptional<z.ZodObject<{
621
- file: z.ZodString;
622
- line: z.ZodNumber;
623
- column: z.ZodNumber;
624
- endLine: z.ZodNumber;
625
- endColumn: z.ZodNumber;
626
- start: z.ZodNumber;
627
- end: z.ZodNumber;
628
- }, z.core.$strip>>;
629
- }, z.core.$strip>>;
630
532
  providers: z.ZodArray<z.ZodString>;
631
533
  cleanupPaths: z.ZodArray<z.ZodObject<{
632
534
  instanceKey: z.ZodString;
@@ -657,13 +559,13 @@ export declare const explainResultSchema: z.ZodObject<{
657
559
  start: z.ZodNumber;
658
560
  end: z.ZodNumber;
659
561
  }, z.core.$strip>>;
660
- modelIds: z.ZodArray<z.ZodString>;
562
+ summaryIds: z.ZodArray<z.ZodString>;
661
563
  summary: z.ZodString;
662
564
  evidence: z.ZodArray<z.ZodObject<{
663
565
  kind: z.ZodEnum<{
664
- model: "model";
665
566
  note: "note";
666
567
  source: "source";
568
+ summary: "summary";
667
569
  type: "type";
668
570
  }>;
669
571
  message: z.ZodString;
@@ -676,7 +578,13 @@ export declare const explainResultSchema: z.ZodObject<{
676
578
  start: z.ZodNumber;
677
579
  end: z.ZodNumber;
678
580
  }, z.core.$strip>>;
679
- modelId: z.ZodOptional<z.ZodString>;
581
+ summaryId: z.ZodOptional<z.ZodString>;
582
+ summarySource: z.ZodOptional<z.ZodEnum<{
583
+ builtin: "builtin";
584
+ community: "community";
585
+ local: "local";
586
+ package: "package";
587
+ }>>;
680
588
  declaration: z.ZodOptional<z.ZodString>;
681
589
  }, z.core.$strip>>;
682
590
  }, z.core.$strip>>;
@@ -773,7 +681,7 @@ export declare const checkReportSchema: z.ZodObject<{
773
681
  kind: z.ZodLiteral<"rule">;
774
682
  id: z.ZodString;
775
683
  }, z.core.$strip>, z.ZodObject<{
776
- kind: z.ZodLiteral<"adapter">;
684
+ kind: z.ZodLiteral<"summary">;
777
685
  id: z.ZodString;
778
686
  }, z.core.$strip>], "kind">>;
779
687
  }, z.core.$strip>>;
@@ -792,9 +700,9 @@ export declare const checkReportSchema: z.ZodObject<{
792
700
  message: z.ZodString;
793
701
  evidence: z.ZodArray<z.ZodObject<{
794
702
  kind: z.ZodEnum<{
795
- model: "model";
796
703
  note: "note";
797
704
  source: "source";
705
+ summary: "summary";
798
706
  type: "type";
799
707
  }>;
800
708
  message: z.ZodString;
@@ -807,7 +715,13 @@ export declare const checkReportSchema: z.ZodObject<{
807
715
  start: z.ZodNumber;
808
716
  end: z.ZodNumber;
809
717
  }, z.core.$strip>>;
810
- modelId: z.ZodOptional<z.ZodString>;
718
+ summaryId: z.ZodOptional<z.ZodString>;
719
+ summarySource: z.ZodOptional<z.ZodEnum<{
720
+ builtin: "builtin";
721
+ community: "community";
722
+ local: "local";
723
+ package: "package";
724
+ }>>;
811
725
  declaration: z.ZodOptional<z.ZodString>;
812
726
  }, z.core.$strip>>;
813
727
  projects: z.ZodArray<z.ZodString>;
@@ -832,11 +746,6 @@ export declare const checkReportSchema: z.ZodObject<{
832
746
  id: z.ZodString;
833
747
  digest: z.ZodString;
834
748
  }, z.core.$strip>>;
835
- models: z.ZodArray<z.ZodObject<{
836
- id: z.ZodString;
837
- version: z.ZodOptional<z.ZodString>;
838
- digest: z.ZodString;
839
- }, z.core.$strip>>;
840
749
  }, z.core.$strip>;
841
750
  inlineIgnores: z.ZodOptional<z.ZodArray<z.ZodObject<{
842
751
  status: z.ZodEnum<{
@@ -898,24 +807,34 @@ export declare const checkReportSchema: z.ZodObject<{
898
807
  candidateCount: z.ZodNumber;
899
808
  checkpointCount: z.ZodNumber;
900
809
  providers: z.ZodArray<z.ZodString>;
901
- nativeAdapters: z.ZodArray<z.ZodObject<{
902
- packageName: z.ZodString;
903
- providerId: z.ZodString;
904
- status: z.ZodEnum<{
905
- loaded: "loaded";
906
- reused: "reused";
907
- }>;
908
- }, z.core.$strip>>;
810
+ lowering: z.ZodObject<{
811
+ functionsLowered: z.ZodNumber;
812
+ verticesCreated: z.ZodNumber;
813
+ durationMs: z.ZodNumber;
814
+ }, z.core.$strip>;
815
+ irCache: z.ZodObject<{
816
+ functionHits: z.ZodNumber;
817
+ functionMisses: z.ZodNumber;
818
+ filesReused: z.ZodNumber;
819
+ filesInvalidated: z.ZodNumber;
820
+ }, z.core.$strip>;
821
+ summaryLookup: z.ZodObject<{
822
+ lookups: z.ZodNumber;
823
+ hits: z.ZodNumber;
824
+ misses: z.ZodNumber;
825
+ hitsBySource: z.ZodObject<{
826
+ local: z.ZodNumber;
827
+ package: z.ZodNumber;
828
+ community: z.ZodNumber;
829
+ builtin: z.ZodNumber;
830
+ }, z.core.$strip>;
831
+ }, z.core.$strip>;
909
832
  limit: z.ZodOptional<z.ZodObject<{
910
833
  maxItems: z.ZodOptional<z.ZodNumber>;
911
834
  maxBytes: z.ZodOptional<z.ZodNumber>;
912
835
  }, z.core.$strip>>;
913
836
  truncated: z.ZodBoolean;
914
837
  droppedCount: z.ZodNumber;
915
- engineExtractions: z.ZodRecord<z.ZodString, z.ZodObject<{
916
- extractions: z.ZodNumber;
917
- candidates: z.ZodNumber;
918
- }, z.core.$strip>>;
919
838
  details: z.ZodOptional<z.ZodArray<z.ZodObject<{
920
839
  kind: z.ZodEnum<{
921
840
  checkpoint: "checkpoint";
@@ -1063,71 +982,6 @@ export declare const checkReportSchema: z.ZodObject<{
1063
982
  end: z.ZodNumber;
1064
983
  }, z.core.$strip>>;
1065
984
  }, z.core.$strip>>;
1066
- localGaps: z.ZodArray<z.ZodObject<{
1067
- status: z.ZodEnum<{
1068
- resolved_by_override: "resolved_by_override";
1069
- unresolved: "unresolved";
1070
- }>;
1071
- factTypeId: z.ZodString;
1072
- providerId: z.ZodString;
1073
- field: z.ZodOptional<z.ZodString>;
1074
- gap: z.ZodObject<{
1075
- kind: z.ZodString;
1076
- message: z.ZodString;
1077
- at: z.ZodOptional<z.ZodObject<{
1078
- file: z.ZodString;
1079
- line: z.ZodNumber;
1080
- column: z.ZodNumber;
1081
- endLine: z.ZodNumber;
1082
- endColumn: z.ZodNumber;
1083
- start: z.ZodNumber;
1084
- end: z.ZodNumber;
1085
- }, z.core.$strip>>;
1086
- }, z.core.$strip>;
1087
- subjectLocation: z.ZodOptional<z.ZodObject<{
1088
- file: z.ZodString;
1089
- line: z.ZodNumber;
1090
- column: z.ZodNumber;
1091
- endLine: z.ZodNumber;
1092
- endColumn: z.ZodNumber;
1093
- start: z.ZodNumber;
1094
- end: z.ZodNumber;
1095
- }, z.core.$strip>>;
1096
- resolvedBy: z.ZodOptional<z.ZodObject<{
1097
- providerId: z.ZodString;
1098
- operation: z.ZodString;
1099
- conclusion: z.ZodString;
1100
- at: z.ZodOptional<z.ZodObject<{
1101
- file: z.ZodString;
1102
- line: z.ZodNumber;
1103
- column: z.ZodNumber;
1104
- endLine: z.ZodNumber;
1105
- endColumn: z.ZodNumber;
1106
- start: z.ZodNumber;
1107
- end: z.ZodNumber;
1108
- }, z.core.$strip>>;
1109
- }, z.core.$strip>>;
1110
- impact: z.ZodOptional<z.ZodString>;
1111
- }, z.core.$strip>>;
1112
- providerEvaluations: z.ZodArray<z.ZodObject<{
1113
- providerId: z.ZodString;
1114
- factTypeId: z.ZodOptional<z.ZodString>;
1115
- status: z.ZodEnum<{
1116
- evaluated: "evaluated";
1117
- reused: "reused";
1118
- skipped: "skipped";
1119
- }>;
1120
- reason: z.ZodOptional<z.ZodString>;
1121
- subjectLocation: z.ZodOptional<z.ZodObject<{
1122
- file: z.ZodString;
1123
- line: z.ZodNumber;
1124
- column: z.ZodNumber;
1125
- endLine: z.ZodNumber;
1126
- endColumn: z.ZodNumber;
1127
- start: z.ZodNumber;
1128
- end: z.ZodNumber;
1129
- }, z.core.$strip>>;
1130
- }, z.core.$strip>>;
1131
985
  providers: z.ZodArray<z.ZodString>;
1132
986
  cleanupPaths: z.ZodArray<z.ZodObject<{
1133
987
  instanceKey: z.ZodString;
@@ -1158,13 +1012,13 @@ export declare const checkReportSchema: z.ZodObject<{
1158
1012
  start: z.ZodNumber;
1159
1013
  end: z.ZodNumber;
1160
1014
  }, z.core.$strip>>;
1161
- modelIds: z.ZodArray<z.ZodString>;
1015
+ summaryIds: z.ZodArray<z.ZodString>;
1162
1016
  summary: z.ZodString;
1163
1017
  evidence: z.ZodArray<z.ZodObject<{
1164
1018
  kind: z.ZodEnum<{
1165
- model: "model";
1166
1019
  note: "note";
1167
1020
  source: "source";
1021
+ summary: "summary";
1168
1022
  type: "type";
1169
1023
  }>;
1170
1024
  message: z.ZodString;
@@ -1177,7 +1031,13 @@ export declare const checkReportSchema: z.ZodObject<{
1177
1031
  start: z.ZodNumber;
1178
1032
  end: z.ZodNumber;
1179
1033
  }, z.core.$strip>>;
1180
- modelId: z.ZodOptional<z.ZodString>;
1034
+ summaryId: z.ZodOptional<z.ZodString>;
1035
+ summarySource: z.ZodOptional<z.ZodEnum<{
1036
+ builtin: "builtin";
1037
+ community: "community";
1038
+ local: "local";
1039
+ package: "package";
1040
+ }>>;
1181
1041
  declaration: z.ZodOptional<z.ZodString>;
1182
1042
  }, z.core.$strip>>;
1183
1043
  }, z.core.$strip>>;
@@ -1309,71 +1169,6 @@ export declare const checkReportSchema: z.ZodObject<{
1309
1169
  end: z.ZodNumber;
1310
1170
  }, z.core.$strip>>;
1311
1171
  }, z.core.$strip>>;
1312
- localGaps: z.ZodArray<z.ZodObject<{
1313
- status: z.ZodEnum<{
1314
- resolved_by_override: "resolved_by_override";
1315
- unresolved: "unresolved";
1316
- }>;
1317
- factTypeId: z.ZodString;
1318
- providerId: z.ZodString;
1319
- field: z.ZodOptional<z.ZodString>;
1320
- gap: z.ZodObject<{
1321
- kind: z.ZodString;
1322
- message: z.ZodString;
1323
- at: z.ZodOptional<z.ZodObject<{
1324
- file: z.ZodString;
1325
- line: z.ZodNumber;
1326
- column: z.ZodNumber;
1327
- endLine: z.ZodNumber;
1328
- endColumn: z.ZodNumber;
1329
- start: z.ZodNumber;
1330
- end: z.ZodNumber;
1331
- }, z.core.$strip>>;
1332
- }, z.core.$strip>;
1333
- subjectLocation: z.ZodOptional<z.ZodObject<{
1334
- file: z.ZodString;
1335
- line: z.ZodNumber;
1336
- column: z.ZodNumber;
1337
- endLine: z.ZodNumber;
1338
- endColumn: z.ZodNumber;
1339
- start: z.ZodNumber;
1340
- end: z.ZodNumber;
1341
- }, z.core.$strip>>;
1342
- resolvedBy: z.ZodOptional<z.ZodObject<{
1343
- providerId: z.ZodString;
1344
- operation: z.ZodString;
1345
- conclusion: z.ZodString;
1346
- at: z.ZodOptional<z.ZodObject<{
1347
- file: z.ZodString;
1348
- line: z.ZodNumber;
1349
- column: z.ZodNumber;
1350
- endLine: z.ZodNumber;
1351
- endColumn: z.ZodNumber;
1352
- start: z.ZodNumber;
1353
- end: z.ZodNumber;
1354
- }, z.core.$strip>>;
1355
- }, z.core.$strip>>;
1356
- impact: z.ZodOptional<z.ZodString>;
1357
- }, z.core.$strip>>;
1358
- providerEvaluations: z.ZodArray<z.ZodObject<{
1359
- providerId: z.ZodString;
1360
- factTypeId: z.ZodOptional<z.ZodString>;
1361
- status: z.ZodEnum<{
1362
- evaluated: "evaluated";
1363
- reused: "reused";
1364
- skipped: "skipped";
1365
- }>;
1366
- reason: z.ZodOptional<z.ZodString>;
1367
- subjectLocation: z.ZodOptional<z.ZodObject<{
1368
- file: z.ZodString;
1369
- line: z.ZodNumber;
1370
- column: z.ZodNumber;
1371
- endLine: z.ZodNumber;
1372
- endColumn: z.ZodNumber;
1373
- start: z.ZodNumber;
1374
- end: z.ZodNumber;
1375
- }, z.core.$strip>>;
1376
- }, z.core.$strip>>;
1377
1172
  providers: z.ZodArray<z.ZodString>;
1378
1173
  cleanupPaths: z.ZodArray<z.ZodObject<{
1379
1174
  instanceKey: z.ZodString;
@@ -1404,13 +1199,13 @@ export declare const checkReportSchema: z.ZodObject<{
1404
1199
  start: z.ZodNumber;
1405
1200
  end: z.ZodNumber;
1406
1201
  }, z.core.$strip>>;
1407
- modelIds: z.ZodArray<z.ZodString>;
1202
+ summaryIds: z.ZodArray<z.ZodString>;
1408
1203
  summary: z.ZodString;
1409
1204
  evidence: z.ZodArray<z.ZodObject<{
1410
1205
  kind: z.ZodEnum<{
1411
- model: "model";
1412
1206
  note: "note";
1413
1207
  source: "source";
1208
+ summary: "summary";
1414
1209
  type: "type";
1415
1210
  }>;
1416
1211
  message: z.ZodString;
@@ -1423,7 +1218,13 @@ export declare const checkReportSchema: z.ZodObject<{
1423
1218
  start: z.ZodNumber;
1424
1219
  end: z.ZodNumber;
1425
1220
  }, z.core.$strip>>;
1426
- modelId: z.ZodOptional<z.ZodString>;
1221
+ summaryId: z.ZodOptional<z.ZodString>;
1222
+ summarySource: z.ZodOptional<z.ZodEnum<{
1223
+ builtin: "builtin";
1224
+ community: "community";
1225
+ local: "local";
1226
+ package: "package";
1227
+ }>>;
1427
1228
  declaration: z.ZodOptional<z.ZodString>;
1428
1229
  }, z.core.$strip>>;
1429
1230
  }, z.core.$strip>>;
@@ -1447,175 +1248,11 @@ export type WireCheckReport = z.infer<typeof checkReportSchema>;
1447
1248
  export type WireProjectSummary = z.infer<typeof projectSummarySchema>;
1448
1249
  export type WireObservation = z.infer<typeof observationSchema>;
1449
1250
  export type WireExplainResult = z.infer<typeof explainResultSchema>;
1450
- export declare const factConflictPartySchema: z.ZodObject<{
1451
- providerId: z.ZodString;
1452
- providers: z.ZodArray<z.ZodString>;
1453
- conclusion: z.ZodUnknown;
1454
- conclusionSummary: z.ZodString;
1455
- evidence: z.ZodArray<z.ZodObject<{
1456
- kind: z.ZodEnum<{
1457
- model: "model";
1458
- note: "note";
1459
- source: "source";
1460
- type: "type";
1461
- }>;
1462
- message: z.ZodString;
1463
- at: z.ZodOptional<z.ZodObject<{
1464
- file: z.ZodString;
1465
- line: z.ZodNumber;
1466
- column: z.ZodNumber;
1467
- endLine: z.ZodNumber;
1468
- endColumn: z.ZodNumber;
1469
- start: z.ZodNumber;
1470
- end: z.ZodNumber;
1471
- }, z.core.$strip>>;
1472
- modelId: z.ZodOptional<z.ZodString>;
1473
- declaration: z.ZodOptional<z.ZodString>;
1474
- }, z.core.$strip>>;
1475
- }, z.core.$strip>;
1476
- export declare const factConflictDetailsSchema: z.ZodObject<{
1477
- factTypeId: z.ZodString;
1478
- projectId: z.ZodString;
1479
- snapshotId: z.ZodNumber;
1480
- subjectHandleId: z.ZodString;
1481
- subjectLocation: z.ZodOptional<z.ZodObject<{
1482
- file: z.ZodString;
1483
- line: z.ZodNumber;
1484
- column: z.ZodNumber;
1485
- endLine: z.ZodNumber;
1486
- endColumn: z.ZodNumber;
1487
- start: z.ZodNumber;
1488
- end: z.ZodNumber;
1489
- }, z.core.$strip>>;
1490
- condition: z.ZodOptional<z.ZodUnknown>;
1491
- reason: z.ZodString;
1492
- parties: z.ZodTuple<[z.ZodObject<{
1493
- providerId: z.ZodString;
1494
- providers: z.ZodArray<z.ZodString>;
1495
- conclusion: z.ZodUnknown;
1496
- conclusionSummary: z.ZodString;
1497
- evidence: z.ZodArray<z.ZodObject<{
1498
- kind: z.ZodEnum<{
1499
- model: "model";
1500
- note: "note";
1501
- source: "source";
1502
- type: "type";
1503
- }>;
1504
- message: z.ZodString;
1505
- at: z.ZodOptional<z.ZodObject<{
1506
- file: z.ZodString;
1507
- line: z.ZodNumber;
1508
- column: z.ZodNumber;
1509
- endLine: z.ZodNumber;
1510
- endColumn: z.ZodNumber;
1511
- start: z.ZodNumber;
1512
- end: z.ZodNumber;
1513
- }, z.core.$strip>>;
1514
- modelId: z.ZodOptional<z.ZodString>;
1515
- declaration: z.ZodOptional<z.ZodString>;
1516
- }, z.core.$strip>>;
1517
- }, z.core.$strip>, z.ZodObject<{
1518
- providerId: z.ZodString;
1519
- providers: z.ZodArray<z.ZodString>;
1520
- conclusion: z.ZodUnknown;
1521
- conclusionSummary: z.ZodString;
1522
- evidence: z.ZodArray<z.ZodObject<{
1523
- kind: z.ZodEnum<{
1524
- model: "model";
1525
- note: "note";
1526
- source: "source";
1527
- type: "type";
1528
- }>;
1529
- message: z.ZodString;
1530
- at: z.ZodOptional<z.ZodObject<{
1531
- file: z.ZodString;
1532
- line: z.ZodNumber;
1533
- column: z.ZodNumber;
1534
- endLine: z.ZodNumber;
1535
- endColumn: z.ZodNumber;
1536
- start: z.ZodNumber;
1537
- end: z.ZodNumber;
1538
- }, z.core.$strip>>;
1539
- modelId: z.ZodOptional<z.ZodString>;
1540
- declaration: z.ZodOptional<z.ZodString>;
1541
- }, z.core.$strip>>;
1542
- }, z.core.$strip>], null>;
1543
- }, z.core.$strip>;
1544
- export type WireFactConflictDetails = z.infer<typeof factConflictDetailsSchema>;
1545
1251
  export declare const checkFailureSchema: z.ZodObject<{
1546
1252
  reportVersion: z.ZodLiteral<"1">;
1547
1253
  code: z.ZodString;
1548
1254
  message: z.ZodString;
1549
- conflict: z.ZodOptional<z.ZodObject<{
1550
- factTypeId: z.ZodString;
1551
- projectId: z.ZodString;
1552
- snapshotId: z.ZodNumber;
1553
- subjectHandleId: z.ZodString;
1554
- subjectLocation: z.ZodOptional<z.ZodObject<{
1555
- file: z.ZodString;
1556
- line: z.ZodNumber;
1557
- column: z.ZodNumber;
1558
- endLine: z.ZodNumber;
1559
- endColumn: z.ZodNumber;
1560
- start: z.ZodNumber;
1561
- end: z.ZodNumber;
1562
- }, z.core.$strip>>;
1563
- condition: z.ZodOptional<z.ZodUnknown>;
1564
- reason: z.ZodString;
1565
- parties: z.ZodTuple<[z.ZodObject<{
1566
- providerId: z.ZodString;
1567
- providers: z.ZodArray<z.ZodString>;
1568
- conclusion: z.ZodUnknown;
1569
- conclusionSummary: z.ZodString;
1570
- evidence: z.ZodArray<z.ZodObject<{
1571
- kind: z.ZodEnum<{
1572
- model: "model";
1573
- note: "note";
1574
- source: "source";
1575
- type: "type";
1576
- }>;
1577
- message: z.ZodString;
1578
- at: z.ZodOptional<z.ZodObject<{
1579
- file: z.ZodString;
1580
- line: z.ZodNumber;
1581
- column: z.ZodNumber;
1582
- endLine: z.ZodNumber;
1583
- endColumn: z.ZodNumber;
1584
- start: z.ZodNumber;
1585
- end: z.ZodNumber;
1586
- }, z.core.$strip>>;
1587
- modelId: z.ZodOptional<z.ZodString>;
1588
- declaration: z.ZodOptional<z.ZodString>;
1589
- }, z.core.$strip>>;
1590
- }, z.core.$strip>, z.ZodObject<{
1591
- providerId: z.ZodString;
1592
- providers: z.ZodArray<z.ZodString>;
1593
- conclusion: z.ZodUnknown;
1594
- conclusionSummary: z.ZodString;
1595
- evidence: z.ZodArray<z.ZodObject<{
1596
- kind: z.ZodEnum<{
1597
- model: "model";
1598
- note: "note";
1599
- source: "source";
1600
- type: "type";
1601
- }>;
1602
- message: z.ZodString;
1603
- at: z.ZodOptional<z.ZodObject<{
1604
- file: z.ZodString;
1605
- line: z.ZodNumber;
1606
- column: z.ZodNumber;
1607
- endLine: z.ZodNumber;
1608
- endColumn: z.ZodNumber;
1609
- start: z.ZodNumber;
1610
- end: z.ZodNumber;
1611
- }, z.core.$strip>>;
1612
- modelId: z.ZodOptional<z.ZodString>;
1613
- declaration: z.ZodOptional<z.ZodString>;
1614
- }, z.core.$strip>>;
1615
- }, z.core.$strip>], null>;
1616
- }, z.core.$strip>>;
1617
1255
  }, z.core.$strip>;
1618
- export declare function toWireFactConflict(conflict: FactConflictDetails): WireFactConflictDetails;
1619
1256
  export declare function toWireProjects(projects: readonly ProjectSummary[]): WireProjectSummary[];
1620
1257
  export declare function toWireReport(report: CheckReport): WireCheckReport;
1621
1258
  export declare function formatDiagnosticsLines(report: WireCheckReport): string[];