@boringparts/verule 0.0.0-stage → 0.1.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.
@@ -0,0 +1,839 @@
1
+ import { z } from "zod";
2
+ export declare const recomputationScopeSchema: z.ZodObject<{
3
+ recomputedProjects: z.ZodArray<z.ZodString>;
4
+ reusedProjects: z.ZodArray<z.ZodString>;
5
+ recomputedFiles: z.ZodArray<z.ZodString>;
6
+ reusedFiles: z.ZodArray<z.ZodString>;
7
+ removedFiles: z.ZodArray<z.ZodString>;
8
+ invalidatedBy: z.ZodArray<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ export declare const memoryStatsSchema: z.ZodObject<{
11
+ hostRssBytes: z.ZodNumber;
12
+ engineRssBytes: z.ZodOptional<z.ZodNumber>;
13
+ }, z.core.$strip>;
14
+ export declare const watchReportRecordSchema: z.ZodObject<{
15
+ reportVersion: z.ZodLiteral<"1">;
16
+ status: z.ZodEnum<{
17
+ clean: "clean";
18
+ findings: "findings";
19
+ }>;
20
+ projects: z.ZodArray<z.ZodObject<{
21
+ projectId: z.ZodString;
22
+ configFile: z.ZodString;
23
+ entryConfig: z.ZodString;
24
+ entryChain: z.ZodArray<z.ZodString>;
25
+ referencedBy: z.ZodArray<z.ZodString>;
26
+ projectReferences: z.ZodArray<z.ZodString>;
27
+ compilerOptions: z.ZodObject<{
28
+ strict: z.ZodBoolean;
29
+ allowJs: z.ZodBoolean;
30
+ checkJs: z.ZodBoolean;
31
+ composite: z.ZodBoolean;
32
+ target: z.ZodOptional<z.ZodString>;
33
+ module: z.ZodOptional<z.ZodString>;
34
+ moduleResolution: z.ZodOptional<z.ZodString>;
35
+ jsx: z.ZodOptional<z.ZodString>;
36
+ paths: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
37
+ customConditions: z.ZodArray<z.ZodString>;
38
+ }, z.core.$strip>;
39
+ sourceFiles: z.ZodArray<z.ZodString>;
40
+ }, z.core.$strip>>;
41
+ fileOrigins: z.ZodArray<z.ZodObject<{
42
+ file: z.ZodString;
43
+ projects: z.ZodArray<z.ZodObject<{
44
+ projectId: z.ZodString;
45
+ configFile: z.ZodString;
46
+ entryConfig: z.ZodString;
47
+ entryChain: z.ZodArray<z.ZodString>;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strip>>;
50
+ additionalInputs: z.ZodArray<z.ZodObject<{
51
+ file: z.ZodString;
52
+ exists: z.ZodBoolean;
53
+ digest: z.ZodOptional<z.ZodString>;
54
+ sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
55
+ kind: z.ZodLiteral<"config">;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ kind: z.ZodLiteral<"rule">;
58
+ id: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"adapter">;
61
+ id: z.ZodString;
62
+ }, z.core.$strip>], "kind">>;
63
+ }, z.core.$strip>>;
64
+ diagnostics: z.ZodArray<z.ZodObject<{
65
+ id: z.ZodString;
66
+ ruleId: z.ZodString;
67
+ at: z.ZodObject<{
68
+ file: z.ZodString;
69
+ line: z.ZodNumber;
70
+ column: z.ZodNumber;
71
+ endLine: z.ZodNumber;
72
+ endColumn: z.ZodNumber;
73
+ start: z.ZodNumber;
74
+ end: z.ZodNumber;
75
+ }, z.core.$strip>;
76
+ message: z.ZodString;
77
+ evidence: z.ZodArray<z.ZodObject<{
78
+ kind: z.ZodEnum<{
79
+ model: "model";
80
+ note: "note";
81
+ source: "source";
82
+ type: "type";
83
+ }>;
84
+ message: z.ZodString;
85
+ at: z.ZodOptional<z.ZodObject<{
86
+ file: z.ZodString;
87
+ line: z.ZodNumber;
88
+ column: z.ZodNumber;
89
+ endLine: z.ZodNumber;
90
+ endColumn: z.ZodNumber;
91
+ start: z.ZodNumber;
92
+ end: z.ZodNumber;
93
+ }, z.core.$strip>>;
94
+ modelId: z.ZodOptional<z.ZodString>;
95
+ declaration: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strip>>;
97
+ projects: z.ZodArray<z.ZodString>;
98
+ }, z.core.$strip>>;
99
+ gaps: z.ZodArray<z.ZodObject<{
100
+ kind: z.ZodString;
101
+ message: z.ZodString;
102
+ at: z.ZodOptional<z.ZodObject<{
103
+ file: z.ZodString;
104
+ line: z.ZodNumber;
105
+ column: z.ZodNumber;
106
+ endLine: z.ZodNumber;
107
+ endColumn: z.ZodNumber;
108
+ start: z.ZodNumber;
109
+ end: z.ZodNumber;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>>;
112
+ identity: z.ZodObject<{
113
+ snapshotDigest: z.ZodString;
114
+ configDigest: z.ZodString;
115
+ rules: z.ZodArray<z.ZodObject<{
116
+ id: z.ZodString;
117
+ digest: z.ZodString;
118
+ }, z.core.$strip>>;
119
+ models: z.ZodArray<z.ZodObject<{
120
+ id: z.ZodString;
121
+ version: z.ZodOptional<z.ZodString>;
122
+ digest: z.ZodString;
123
+ }, z.core.$strip>>;
124
+ }, z.core.$strip>;
125
+ inlineIgnores: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ status: z.ZodEnum<{
127
+ ambiguous: "ambiguous";
128
+ malformed: "malformed";
129
+ suppressed: "suppressed";
130
+ undetermined: "undetermined";
131
+ unknown_rule: "unknown_rule";
132
+ unused: "unused";
133
+ }>;
134
+ at: z.ZodObject<{
135
+ file: z.ZodString;
136
+ line: z.ZodNumber;
137
+ column: z.ZodNumber;
138
+ endLine: z.ZodNumber;
139
+ endColumn: z.ZodNumber;
140
+ start: z.ZodNumber;
141
+ end: z.ZodNumber;
142
+ }, z.core.$strip>;
143
+ targetLine: z.ZodOptional<z.ZodNumber>;
144
+ ruleId: z.ZodOptional<z.ZodString>;
145
+ reason: z.ZodOptional<z.ZodString>;
146
+ matchedLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
147
+ file: z.ZodString;
148
+ line: z.ZodNumber;
149
+ column: z.ZodNumber;
150
+ endLine: z.ZodNumber;
151
+ endColumn: z.ZodNumber;
152
+ start: z.ZodNumber;
153
+ end: z.ZodNumber;
154
+ }, z.core.$strip>>>;
155
+ message: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$strip>>>;
157
+ observation: z.ZodOptional<z.ZodObject<{
158
+ mode: z.ZodEnum<{
159
+ detail: "detail";
160
+ summary: "summary";
161
+ }>;
162
+ phases: z.ZodObject<{
163
+ configAndOpenMs: z.ZodNumber;
164
+ engineQueryMs: z.ZodNumber;
165
+ ruleExecutionMs: z.ZodNumber;
166
+ totalMs: z.ZodNumber;
167
+ }, z.core.$strip>;
168
+ rpc: z.ZodObject<{
169
+ batches: z.ZodNumber;
170
+ queryBatches: z.ZodNumber;
171
+ bytesSent: z.ZodNumber;
172
+ bytesReceived: z.ZodNumber;
173
+ }, z.core.$strip>;
174
+ overhead: z.ZodObject<{
175
+ checkpointMs: z.ZodNumber;
176
+ encodeMs: z.ZodNumber;
177
+ writeMs: z.ZodNumber;
178
+ }, z.core.$strip>;
179
+ queryCount: z.ZodNumber;
180
+ computedQueryCount: z.ZodNumber;
181
+ reusedQueryCount: z.ZodNumber;
182
+ candidateCount: z.ZodNumber;
183
+ checkpointCount: z.ZodNumber;
184
+ providers: z.ZodArray<z.ZodString>;
185
+ nativeAdapters: z.ZodArray<z.ZodObject<{
186
+ packageName: z.ZodString;
187
+ providerId: z.ZodString;
188
+ status: z.ZodEnum<{
189
+ loaded: "loaded";
190
+ reused: "reused";
191
+ }>;
192
+ }, z.core.$strip>>;
193
+ limit: z.ZodOptional<z.ZodObject<{
194
+ maxItems: z.ZodOptional<z.ZodNumber>;
195
+ maxBytes: z.ZodOptional<z.ZodNumber>;
196
+ }, z.core.$strip>>;
197
+ truncated: z.ZodBoolean;
198
+ droppedCount: z.ZodNumber;
199
+ engineExtractions: z.ZodRecord<z.ZodString, z.ZodObject<{
200
+ extractions: z.ZodNumber;
201
+ candidates: z.ZodNumber;
202
+ }, z.core.$strip>>;
203
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
204
+ kind: z.ZodEnum<{
205
+ checkpoint: "checkpoint";
206
+ engineStep: "engineStep";
207
+ query: "query";
208
+ }>;
209
+ ruleId: z.ZodOptional<z.ZodString>;
210
+ projectId: z.ZodOptional<z.ZodString>;
211
+ provider: z.ZodOptional<z.ZodString>;
212
+ name: z.ZodOptional<z.ZodString>;
213
+ outcome: z.ZodOptional<z.ZodEnum<{
214
+ exclude: "exclude";
215
+ info: "info";
216
+ pass: "pass";
217
+ }>>;
218
+ cacheStatus: z.ZodOptional<z.ZodEnum<{
219
+ computed: "computed";
220
+ reused: "reused";
221
+ }>>;
222
+ candidateCount: z.ZodOptional<z.ZodNumber>;
223
+ durationMs: z.ZodOptional<z.ZodNumber>;
224
+ at: z.ZodOptional<z.ZodObject<{
225
+ file: z.ZodString;
226
+ line: z.ZodNumber;
227
+ column: z.ZodNumber;
228
+ endLine: z.ZodNumber;
229
+ endColumn: z.ZodNumber;
230
+ start: z.ZodNumber;
231
+ end: z.ZodNumber;
232
+ }, z.core.$strip>>;
233
+ summary: z.ZodString;
234
+ detail: z.ZodOptional<z.ZodUnknown>;
235
+ }, z.core.$strip>>>;
236
+ }, z.core.$strip>>;
237
+ explanation: z.ZodOptional<z.ZodObject<{
238
+ ruleId: z.ZodString;
239
+ target: z.ZodObject<{
240
+ file: z.ZodString;
241
+ line: z.ZodOptional<z.ZodNumber>;
242
+ column: z.ZodOptional<z.ZodNumber>;
243
+ }, z.core.$strip>;
244
+ status: z.ZodEnum<{
245
+ blocked_by_gap: "blocked_by_gap";
246
+ covered_by_cleanup: "covered_by_cleanup";
247
+ excluded_by_checkpoint: "excluded_by_checkpoint";
248
+ excluded_by_query: "excluded_by_query";
249
+ not_in_candidates: "not_in_candidates";
250
+ reported: "reported";
251
+ rule_filtered: "rule_filtered";
252
+ suppressed_by_ignore: "suppressed_by_ignore";
253
+ target_not_in_project: "target_not_in_project";
254
+ }>;
255
+ inCandidates: z.ZodBoolean;
256
+ summary: z.ZodString;
257
+ projectsChecked: z.ZodArray<z.ZodString>;
258
+ matchingCandidates: z.ZodArray<z.ZodObject<{
259
+ file: z.ZodString;
260
+ line: z.ZodNumber;
261
+ column: z.ZodNumber;
262
+ endLine: z.ZodNumber;
263
+ endColumn: z.ZodNumber;
264
+ start: z.ZodNumber;
265
+ end: z.ZodNumber;
266
+ }, z.core.$strip>>;
267
+ excludedByQuery: z.ZodOptional<z.ZodObject<{
268
+ queryIndex: z.ZodNumber;
269
+ op: z.ZodString;
270
+ projectId: z.ZodString;
271
+ provider: z.ZodString;
272
+ cacheStatus: z.ZodEnum<{
273
+ computed: "computed";
274
+ reused: "reused";
275
+ }>;
276
+ candidateCount: z.ZodNumber;
277
+ matchedTarget: z.ZodBoolean;
278
+ durationMs: z.ZodNumber;
279
+ summary: z.ZodOptional<z.ZodString>;
280
+ detail: z.ZodOptional<z.ZodUnknown>;
281
+ }, z.core.$strip>>;
282
+ excludedByCheckpoint: z.ZodOptional<z.ZodObject<{
283
+ name: z.ZodString;
284
+ ruleId: z.ZodString;
285
+ projectId: z.ZodString;
286
+ outcome: z.ZodEnum<{
287
+ exclude: "exclude";
288
+ info: "info";
289
+ pass: "pass";
290
+ }>;
291
+ at: z.ZodOptional<z.ZodObject<{
292
+ file: z.ZodString;
293
+ line: z.ZodNumber;
294
+ column: z.ZodNumber;
295
+ endLine: z.ZodNumber;
296
+ endColumn: z.ZodNumber;
297
+ start: z.ZodNumber;
298
+ end: z.ZodNumber;
299
+ }, z.core.$strip>>;
300
+ detail: z.ZodOptional<z.ZodUnknown>;
301
+ }, z.core.$strip>>;
302
+ queries: z.ZodArray<z.ZodObject<{
303
+ queryIndex: z.ZodNumber;
304
+ op: z.ZodString;
305
+ projectId: z.ZodString;
306
+ provider: z.ZodString;
307
+ cacheStatus: z.ZodEnum<{
308
+ computed: "computed";
309
+ reused: "reused";
310
+ }>;
311
+ candidateCount: z.ZodNumber;
312
+ matchedTarget: z.ZodBoolean;
313
+ durationMs: z.ZodNumber;
314
+ summary: z.ZodOptional<z.ZodString>;
315
+ detail: z.ZodOptional<z.ZodUnknown>;
316
+ }, z.core.$strip>>;
317
+ checkpoints: z.ZodArray<z.ZodObject<{
318
+ name: z.ZodString;
319
+ ruleId: z.ZodString;
320
+ projectId: z.ZodString;
321
+ outcome: z.ZodEnum<{
322
+ exclude: "exclude";
323
+ info: "info";
324
+ pass: "pass";
325
+ }>;
326
+ at: z.ZodOptional<z.ZodObject<{
327
+ file: z.ZodString;
328
+ line: z.ZodNumber;
329
+ column: z.ZodNumber;
330
+ endLine: z.ZodNumber;
331
+ endColumn: z.ZodNumber;
332
+ start: z.ZodNumber;
333
+ end: z.ZodNumber;
334
+ }, z.core.$strip>>;
335
+ detail: z.ZodOptional<z.ZodUnknown>;
336
+ }, z.core.$strip>>;
337
+ gaps: z.ZodArray<z.ZodObject<{
338
+ kind: z.ZodString;
339
+ message: z.ZodString;
340
+ at: z.ZodOptional<z.ZodObject<{
341
+ file: z.ZodString;
342
+ line: z.ZodNumber;
343
+ column: z.ZodNumber;
344
+ endLine: z.ZodNumber;
345
+ endColumn: z.ZodNumber;
346
+ start: z.ZodNumber;
347
+ end: z.ZodNumber;
348
+ }, z.core.$strip>>;
349
+ }, z.core.$strip>>;
350
+ localGaps: z.ZodArray<z.ZodObject<{
351
+ status: z.ZodEnum<{
352
+ resolved_by_override: "resolved_by_override";
353
+ unresolved: "unresolved";
354
+ }>;
355
+ factTypeId: z.ZodString;
356
+ providerId: z.ZodString;
357
+ field: z.ZodOptional<z.ZodString>;
358
+ gap: z.ZodObject<{
359
+ kind: z.ZodString;
360
+ message: z.ZodString;
361
+ at: z.ZodOptional<z.ZodObject<{
362
+ file: z.ZodString;
363
+ line: z.ZodNumber;
364
+ column: z.ZodNumber;
365
+ endLine: z.ZodNumber;
366
+ endColumn: z.ZodNumber;
367
+ start: z.ZodNumber;
368
+ end: z.ZodNumber;
369
+ }, z.core.$strip>>;
370
+ }, z.core.$strip>;
371
+ subjectLocation: z.ZodOptional<z.ZodObject<{
372
+ file: z.ZodString;
373
+ line: z.ZodNumber;
374
+ column: z.ZodNumber;
375
+ endLine: z.ZodNumber;
376
+ endColumn: z.ZodNumber;
377
+ start: z.ZodNumber;
378
+ end: z.ZodNumber;
379
+ }, z.core.$strip>>;
380
+ resolvedBy: z.ZodOptional<z.ZodObject<{
381
+ providerId: z.ZodString;
382
+ operation: z.ZodString;
383
+ conclusion: z.ZodString;
384
+ at: z.ZodOptional<z.ZodObject<{
385
+ file: z.ZodString;
386
+ line: z.ZodNumber;
387
+ column: z.ZodNumber;
388
+ endLine: z.ZodNumber;
389
+ endColumn: z.ZodNumber;
390
+ start: z.ZodNumber;
391
+ end: z.ZodNumber;
392
+ }, z.core.$strip>>;
393
+ }, z.core.$strip>>;
394
+ impact: z.ZodOptional<z.ZodString>;
395
+ }, z.core.$strip>>;
396
+ providerEvaluations: z.ZodArray<z.ZodObject<{
397
+ providerId: z.ZodString;
398
+ factTypeId: z.ZodOptional<z.ZodString>;
399
+ status: z.ZodEnum<{
400
+ evaluated: "evaluated";
401
+ reused: "reused";
402
+ skipped: "skipped";
403
+ }>;
404
+ reason: z.ZodOptional<z.ZodString>;
405
+ subjectLocation: z.ZodOptional<z.ZodObject<{
406
+ file: z.ZodString;
407
+ line: z.ZodNumber;
408
+ column: z.ZodNumber;
409
+ endLine: z.ZodNumber;
410
+ endColumn: z.ZodNumber;
411
+ start: z.ZodNumber;
412
+ end: z.ZodNumber;
413
+ }, z.core.$strip>>;
414
+ }, z.core.$strip>>;
415
+ providers: z.ZodArray<z.ZodString>;
416
+ cleanupPaths: z.ZodArray<z.ZodObject<{
417
+ instanceKey: z.ZodString;
418
+ allocationLocation: z.ZodOptional<z.ZodObject<{
419
+ file: z.ZodString;
420
+ line: z.ZodNumber;
421
+ column: z.ZodNumber;
422
+ endLine: z.ZodNumber;
423
+ endColumn: z.ZodNumber;
424
+ start: z.ZodNumber;
425
+ end: z.ZodNumber;
426
+ }, z.core.$strip>>;
427
+ scopeLocation: z.ZodObject<{
428
+ file: z.ZodString;
429
+ line: z.ZodNumber;
430
+ column: z.ZodNumber;
431
+ endLine: z.ZodNumber;
432
+ endColumn: z.ZodNumber;
433
+ start: z.ZodNumber;
434
+ end: z.ZodNumber;
435
+ }, z.core.$strip>;
436
+ cleanupLocations: z.ZodArray<z.ZodObject<{
437
+ file: z.ZodString;
438
+ line: z.ZodNumber;
439
+ column: z.ZodNumber;
440
+ endLine: z.ZodNumber;
441
+ endColumn: z.ZodNumber;
442
+ start: z.ZodNumber;
443
+ end: z.ZodNumber;
444
+ }, z.core.$strip>>;
445
+ modelIds: z.ZodArray<z.ZodString>;
446
+ summary: z.ZodString;
447
+ evidence: z.ZodArray<z.ZodObject<{
448
+ kind: z.ZodEnum<{
449
+ model: "model";
450
+ note: "note";
451
+ source: "source";
452
+ type: "type";
453
+ }>;
454
+ message: z.ZodString;
455
+ at: z.ZodOptional<z.ZodObject<{
456
+ file: z.ZodString;
457
+ line: z.ZodNumber;
458
+ column: z.ZodNumber;
459
+ endLine: z.ZodNumber;
460
+ endColumn: z.ZodNumber;
461
+ start: z.ZodNumber;
462
+ end: z.ZodNumber;
463
+ }, z.core.$strip>>;
464
+ modelId: z.ZodOptional<z.ZodString>;
465
+ declaration: z.ZodOptional<z.ZodString>;
466
+ }, z.core.$strip>>;
467
+ }, z.core.$strip>>;
468
+ inlineIgnore: z.ZodOptional<z.ZodObject<{
469
+ matched: z.ZodBoolean;
470
+ ruleId: z.ZodOptional<z.ZodString>;
471
+ reason: z.ZodOptional<z.ZodString>;
472
+ commentAt: z.ZodOptional<z.ZodObject<{
473
+ file: z.ZodString;
474
+ line: z.ZodNumber;
475
+ column: z.ZodNumber;
476
+ endLine: z.ZodNumber;
477
+ endColumn: z.ZodNumber;
478
+ start: z.ZodNumber;
479
+ end: z.ZodNumber;
480
+ }, z.core.$strip>>;
481
+ }, z.core.$strip>>;
482
+ }, z.core.$strip>>;
483
+ explanations: z.ZodOptional<z.ZodArray<z.ZodObject<{
484
+ ruleId: z.ZodString;
485
+ target: z.ZodObject<{
486
+ file: z.ZodString;
487
+ line: z.ZodOptional<z.ZodNumber>;
488
+ column: z.ZodOptional<z.ZodNumber>;
489
+ }, z.core.$strip>;
490
+ status: z.ZodEnum<{
491
+ blocked_by_gap: "blocked_by_gap";
492
+ covered_by_cleanup: "covered_by_cleanup";
493
+ excluded_by_checkpoint: "excluded_by_checkpoint";
494
+ excluded_by_query: "excluded_by_query";
495
+ not_in_candidates: "not_in_candidates";
496
+ reported: "reported";
497
+ rule_filtered: "rule_filtered";
498
+ suppressed_by_ignore: "suppressed_by_ignore";
499
+ target_not_in_project: "target_not_in_project";
500
+ }>;
501
+ inCandidates: z.ZodBoolean;
502
+ summary: z.ZodString;
503
+ projectsChecked: z.ZodArray<z.ZodString>;
504
+ matchingCandidates: z.ZodArray<z.ZodObject<{
505
+ file: z.ZodString;
506
+ line: z.ZodNumber;
507
+ column: z.ZodNumber;
508
+ endLine: z.ZodNumber;
509
+ endColumn: z.ZodNumber;
510
+ start: z.ZodNumber;
511
+ end: z.ZodNumber;
512
+ }, z.core.$strip>>;
513
+ excludedByQuery: z.ZodOptional<z.ZodObject<{
514
+ queryIndex: z.ZodNumber;
515
+ op: z.ZodString;
516
+ projectId: z.ZodString;
517
+ provider: z.ZodString;
518
+ cacheStatus: z.ZodEnum<{
519
+ computed: "computed";
520
+ reused: "reused";
521
+ }>;
522
+ candidateCount: z.ZodNumber;
523
+ matchedTarget: z.ZodBoolean;
524
+ durationMs: z.ZodNumber;
525
+ summary: z.ZodOptional<z.ZodString>;
526
+ detail: z.ZodOptional<z.ZodUnknown>;
527
+ }, z.core.$strip>>;
528
+ excludedByCheckpoint: z.ZodOptional<z.ZodObject<{
529
+ name: z.ZodString;
530
+ ruleId: z.ZodString;
531
+ projectId: z.ZodString;
532
+ outcome: z.ZodEnum<{
533
+ exclude: "exclude";
534
+ info: "info";
535
+ pass: "pass";
536
+ }>;
537
+ at: z.ZodOptional<z.ZodObject<{
538
+ file: z.ZodString;
539
+ line: z.ZodNumber;
540
+ column: z.ZodNumber;
541
+ endLine: z.ZodNumber;
542
+ endColumn: z.ZodNumber;
543
+ start: z.ZodNumber;
544
+ end: z.ZodNumber;
545
+ }, z.core.$strip>>;
546
+ detail: z.ZodOptional<z.ZodUnknown>;
547
+ }, z.core.$strip>>;
548
+ queries: z.ZodArray<z.ZodObject<{
549
+ queryIndex: z.ZodNumber;
550
+ op: z.ZodString;
551
+ projectId: z.ZodString;
552
+ provider: z.ZodString;
553
+ cacheStatus: z.ZodEnum<{
554
+ computed: "computed";
555
+ reused: "reused";
556
+ }>;
557
+ candidateCount: z.ZodNumber;
558
+ matchedTarget: z.ZodBoolean;
559
+ durationMs: z.ZodNumber;
560
+ summary: z.ZodOptional<z.ZodString>;
561
+ detail: z.ZodOptional<z.ZodUnknown>;
562
+ }, z.core.$strip>>;
563
+ checkpoints: z.ZodArray<z.ZodObject<{
564
+ name: z.ZodString;
565
+ ruleId: z.ZodString;
566
+ projectId: z.ZodString;
567
+ outcome: z.ZodEnum<{
568
+ exclude: "exclude";
569
+ info: "info";
570
+ pass: "pass";
571
+ }>;
572
+ at: z.ZodOptional<z.ZodObject<{
573
+ file: z.ZodString;
574
+ line: z.ZodNumber;
575
+ column: z.ZodNumber;
576
+ endLine: z.ZodNumber;
577
+ endColumn: z.ZodNumber;
578
+ start: z.ZodNumber;
579
+ end: z.ZodNumber;
580
+ }, z.core.$strip>>;
581
+ detail: z.ZodOptional<z.ZodUnknown>;
582
+ }, z.core.$strip>>;
583
+ gaps: z.ZodArray<z.ZodObject<{
584
+ kind: z.ZodString;
585
+ message: z.ZodString;
586
+ at: 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
+ }, z.core.$strip>>;
596
+ localGaps: z.ZodArray<z.ZodObject<{
597
+ status: z.ZodEnum<{
598
+ resolved_by_override: "resolved_by_override";
599
+ unresolved: "unresolved";
600
+ }>;
601
+ factTypeId: z.ZodString;
602
+ providerId: z.ZodString;
603
+ field: z.ZodOptional<z.ZodString>;
604
+ gap: z.ZodObject<{
605
+ kind: z.ZodString;
606
+ message: z.ZodString;
607
+ at: z.ZodOptional<z.ZodObject<{
608
+ file: z.ZodString;
609
+ line: z.ZodNumber;
610
+ column: z.ZodNumber;
611
+ endLine: z.ZodNumber;
612
+ endColumn: z.ZodNumber;
613
+ start: z.ZodNumber;
614
+ end: z.ZodNumber;
615
+ }, z.core.$strip>>;
616
+ }, z.core.$strip>;
617
+ subjectLocation: z.ZodOptional<z.ZodObject<{
618
+ file: z.ZodString;
619
+ line: z.ZodNumber;
620
+ column: z.ZodNumber;
621
+ endLine: z.ZodNumber;
622
+ endColumn: z.ZodNumber;
623
+ start: z.ZodNumber;
624
+ end: z.ZodNumber;
625
+ }, z.core.$strip>>;
626
+ resolvedBy: z.ZodOptional<z.ZodObject<{
627
+ providerId: z.ZodString;
628
+ operation: z.ZodString;
629
+ conclusion: z.ZodString;
630
+ at: z.ZodOptional<z.ZodObject<{
631
+ file: z.ZodString;
632
+ line: z.ZodNumber;
633
+ column: z.ZodNumber;
634
+ endLine: z.ZodNumber;
635
+ endColumn: z.ZodNumber;
636
+ start: z.ZodNumber;
637
+ end: z.ZodNumber;
638
+ }, z.core.$strip>>;
639
+ }, z.core.$strip>>;
640
+ impact: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strip>>;
642
+ providerEvaluations: z.ZodArray<z.ZodObject<{
643
+ providerId: z.ZodString;
644
+ factTypeId: z.ZodOptional<z.ZodString>;
645
+ status: z.ZodEnum<{
646
+ evaluated: "evaluated";
647
+ reused: "reused";
648
+ skipped: "skipped";
649
+ }>;
650
+ reason: z.ZodOptional<z.ZodString>;
651
+ subjectLocation: z.ZodOptional<z.ZodObject<{
652
+ file: z.ZodString;
653
+ line: z.ZodNumber;
654
+ column: z.ZodNumber;
655
+ endLine: z.ZodNumber;
656
+ endColumn: z.ZodNumber;
657
+ start: z.ZodNumber;
658
+ end: z.ZodNumber;
659
+ }, z.core.$strip>>;
660
+ }, z.core.$strip>>;
661
+ providers: z.ZodArray<z.ZodString>;
662
+ cleanupPaths: z.ZodArray<z.ZodObject<{
663
+ instanceKey: z.ZodString;
664
+ allocationLocation: z.ZodOptional<z.ZodObject<{
665
+ file: z.ZodString;
666
+ line: z.ZodNumber;
667
+ column: z.ZodNumber;
668
+ endLine: z.ZodNumber;
669
+ endColumn: z.ZodNumber;
670
+ start: z.ZodNumber;
671
+ end: z.ZodNumber;
672
+ }, z.core.$strip>>;
673
+ scopeLocation: z.ZodObject<{
674
+ file: z.ZodString;
675
+ line: z.ZodNumber;
676
+ column: z.ZodNumber;
677
+ endLine: z.ZodNumber;
678
+ endColumn: z.ZodNumber;
679
+ start: z.ZodNumber;
680
+ end: z.ZodNumber;
681
+ }, z.core.$strip>;
682
+ cleanupLocations: z.ZodArray<z.ZodObject<{
683
+ file: z.ZodString;
684
+ line: z.ZodNumber;
685
+ column: z.ZodNumber;
686
+ endLine: z.ZodNumber;
687
+ endColumn: z.ZodNumber;
688
+ start: z.ZodNumber;
689
+ end: z.ZodNumber;
690
+ }, z.core.$strip>>;
691
+ modelIds: z.ZodArray<z.ZodString>;
692
+ summary: z.ZodString;
693
+ evidence: z.ZodArray<z.ZodObject<{
694
+ kind: z.ZodEnum<{
695
+ model: "model";
696
+ note: "note";
697
+ source: "source";
698
+ type: "type";
699
+ }>;
700
+ message: z.ZodString;
701
+ at: z.ZodOptional<z.ZodObject<{
702
+ file: z.ZodString;
703
+ line: z.ZodNumber;
704
+ column: z.ZodNumber;
705
+ endLine: z.ZodNumber;
706
+ endColumn: z.ZodNumber;
707
+ start: z.ZodNumber;
708
+ end: z.ZodNumber;
709
+ }, z.core.$strip>>;
710
+ modelId: z.ZodOptional<z.ZodString>;
711
+ declaration: z.ZodOptional<z.ZodString>;
712
+ }, z.core.$strip>>;
713
+ }, z.core.$strip>>;
714
+ inlineIgnore: z.ZodOptional<z.ZodObject<{
715
+ matched: z.ZodBoolean;
716
+ ruleId: z.ZodOptional<z.ZodString>;
717
+ reason: z.ZodOptional<z.ZodString>;
718
+ commentAt: z.ZodOptional<z.ZodObject<{
719
+ file: z.ZodString;
720
+ line: z.ZodNumber;
721
+ column: z.ZodNumber;
722
+ endLine: z.ZodNumber;
723
+ endColumn: z.ZodNumber;
724
+ start: z.ZodNumber;
725
+ end: z.ZodNumber;
726
+ }, z.core.$strip>>;
727
+ }, z.core.$strip>>;
728
+ }, z.core.$strip>>>;
729
+ sequence: z.ZodNumber;
730
+ trigger: z.ZodEnum<{
731
+ change: "change";
732
+ initial: "initial";
733
+ }>;
734
+ snapshotId: z.ZodNumber;
735
+ recomputation: z.ZodObject<{
736
+ recomputedProjects: z.ZodArray<z.ZodString>;
737
+ reusedProjects: z.ZodArray<z.ZodString>;
738
+ recomputedFiles: z.ZodArray<z.ZodString>;
739
+ reusedFiles: z.ZodArray<z.ZodString>;
740
+ removedFiles: z.ZodArray<z.ZodString>;
741
+ invalidatedBy: z.ZodArray<z.ZodString>;
742
+ }, z.core.$strip>;
743
+ memory: z.ZodObject<{
744
+ hostRssBytes: z.ZodNumber;
745
+ engineRssBytes: z.ZodOptional<z.ZodNumber>;
746
+ }, z.core.$strip>;
747
+ }, z.core.$strip>;
748
+ export type WireWatchReportRecord = z.infer<typeof watchReportRecordSchema>;
749
+ export declare const watchFailureRecordSchema: z.ZodObject<{
750
+ reportVersion: z.ZodLiteral<"1">;
751
+ sequence: z.ZodNumber;
752
+ trigger: z.ZodEnum<{
753
+ change: "change";
754
+ initial: "initial";
755
+ }>;
756
+ code: z.ZodString;
757
+ message: z.ZodString;
758
+ conflict: z.ZodOptional<z.ZodObject<{
759
+ factTypeId: z.ZodString;
760
+ projectId: z.ZodString;
761
+ snapshotId: z.ZodNumber;
762
+ subjectHandleId: z.ZodString;
763
+ subjectLocation: z.ZodOptional<z.ZodObject<{
764
+ file: z.ZodString;
765
+ line: z.ZodNumber;
766
+ column: z.ZodNumber;
767
+ endLine: z.ZodNumber;
768
+ endColumn: z.ZodNumber;
769
+ start: z.ZodNumber;
770
+ end: z.ZodNumber;
771
+ }, z.core.$strip>>;
772
+ condition: z.ZodOptional<z.ZodUnknown>;
773
+ reason: z.ZodString;
774
+ parties: z.ZodTuple<[z.ZodObject<{
775
+ providerId: z.ZodString;
776
+ providers: z.ZodArray<z.ZodString>;
777
+ conclusion: z.ZodUnknown;
778
+ conclusionSummary: z.ZodString;
779
+ evidence: z.ZodArray<z.ZodObject<{
780
+ kind: z.ZodEnum<{
781
+ model: "model";
782
+ note: "note";
783
+ source: "source";
784
+ type: "type";
785
+ }>;
786
+ message: z.ZodString;
787
+ at: z.ZodOptional<z.ZodObject<{
788
+ file: z.ZodString;
789
+ line: z.ZodNumber;
790
+ column: z.ZodNumber;
791
+ endLine: z.ZodNumber;
792
+ endColumn: z.ZodNumber;
793
+ start: z.ZodNumber;
794
+ end: z.ZodNumber;
795
+ }, z.core.$strip>>;
796
+ modelId: z.ZodOptional<z.ZodString>;
797
+ declaration: z.ZodOptional<z.ZodString>;
798
+ }, z.core.$strip>>;
799
+ }, z.core.$strip>, z.ZodObject<{
800
+ providerId: z.ZodString;
801
+ providers: z.ZodArray<z.ZodString>;
802
+ conclusion: z.ZodUnknown;
803
+ conclusionSummary: z.ZodString;
804
+ evidence: z.ZodArray<z.ZodObject<{
805
+ kind: z.ZodEnum<{
806
+ model: "model";
807
+ note: "note";
808
+ source: "source";
809
+ type: "type";
810
+ }>;
811
+ message: z.ZodString;
812
+ at: z.ZodOptional<z.ZodObject<{
813
+ file: z.ZodString;
814
+ line: z.ZodNumber;
815
+ column: z.ZodNumber;
816
+ endLine: z.ZodNumber;
817
+ endColumn: z.ZodNumber;
818
+ start: z.ZodNumber;
819
+ end: z.ZodNumber;
820
+ }, z.core.$strip>>;
821
+ modelId: z.ZodOptional<z.ZodString>;
822
+ declaration: z.ZodOptional<z.ZodString>;
823
+ }, z.core.$strip>>;
824
+ }, z.core.$strip>], null>;
825
+ }, z.core.$strip>>;
826
+ }, z.core.$strip>;
827
+ export type WireWatchFailureRecord = z.infer<typeof watchFailureRecordSchema>;
828
+ export declare function formatWatchReportText(record: WireWatchReportRecord): import("@ykdz/cli-contract").TextFragment | import("@ykdz/cli-contract").TextLine;
829
+ /**
830
+ * Streams complete analysis reports and single-round failures for `verule watch`,
831
+ * preserving the long-lived analysis session across edits until aborted.
832
+ */
833
+ export declare function streamWatchEvents<TReportFact, TFailedFact, TSuccessFact>(workingDirectory: string, configOption: string | undefined, signal: AbortSignal | undefined, outcome: {
834
+ readonly record: {
835
+ readonly report: (payload: WireWatchReportRecord) => TReportFact;
836
+ readonly failed: (payload: WireWatchFailureRecord) => TFailedFact;
837
+ };
838
+ readonly streamSuccess: () => TSuccessFact;
839
+ }): AsyncGenerator<TReportFact | TFailedFact, TSuccessFact, void>;