@fraction12/deepclean 0.1.0-alpha.0 → 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const schemaVersion: "0.1.0";
3
- export declare const candidateStatuses: readonly ["open", "investigating", "handed-off", "ignored", "false-positive", "stale"];
3
+ export declare const candidateStatuses: readonly ["open", "investigating", "handed-off", "ignored", "false-positive", "stale", "fixed", "superseded"];
4
4
  export declare const candidateCategories: readonly ["architecture", "complexity", "duplication", "testability", "dead-weight", "ai-slop", "domain-drift", "diagnostic"];
5
5
  export declare const priorities: readonly ["P0", "P1", "P2", "P3"];
6
6
  export declare const confidenceLevels: readonly ["low", "medium", "high"];
@@ -8,6 +8,15 @@ export declare const effortLevels: readonly ["small", "medium", "large"];
8
8
  export declare const impactLevels: readonly ["local", "feature", "cross-cutting"];
9
9
  export declare const riskLevels: readonly ["safe", "moderate", "design-needed"];
10
10
  export declare const clusterActionability: readonly ["bounded", "too-broad"];
11
+ export declare const identityConfidenceLevels: readonly ["low", "medium", "high"];
12
+ export declare const lifecycleEventKinds: readonly ["created", "observed", "triaged", "suppressed", "revalidated", "changed", "fixed", "stale", "superseded", "fix-attempted", "verification-passed", "verification-failed"];
13
+ export declare const lifecycleStates: readonly ["open", "suppressed", "stale", "fixed", "superseded", "inconclusive"];
14
+ export declare const revalidationOutcomes: readonly ["unchanged", "changed", "fixed", "stale", "superseded", "inconclusive"];
15
+ export declare const baselineStatuses: readonly ["new", "existing", "worsened", "improved", "fixed", "unknown"];
16
+ export declare const evidenceFreshnessStates: readonly ["fresh", "baseline", "reused", "stale"];
17
+ export declare const fixAttemptStatuses: readonly ["planned", "previewed", "applied", "passed", "failed", "unverified"];
18
+ export declare const ciRunStatuses: readonly ["passed", "failed", "policy-failed", "error"];
19
+ export declare const featureKinds: readonly ["package-script", "route", "component", "module", "python-module", "test-suite", "config"];
11
20
  export declare const diagnosticSchema: z.ZodObject<{
12
21
  level: z.ZodEnum<{
13
22
  error: "error";
@@ -28,7 +37,19 @@ export declare const configSchema: z.ZodObject<{
28
37
  provider: z.ZodLiteral<"codex">;
29
38
  command: z.ZodString;
30
39
  model: z.ZodOptional<z.ZodString>;
40
+ effort: z.ZodOptional<z.ZodString>;
31
41
  timeoutMs: z.ZodNumber;
42
+ retries: z.ZodNumber;
43
+ rpm: z.ZodNumber;
44
+ concurrency: z.ZodNumber;
45
+ tokenBudget: z.ZodNumber;
46
+ excerptBudget: z.ZodNumber;
47
+ offline: z.ZodBoolean;
48
+ privacyMode: z.ZodEnum<{
49
+ metadata: "metadata";
50
+ "local-only": "local-only";
51
+ "source-ok": "source-ok";
52
+ }>;
32
53
  maxCandidates: z.ZodNumber;
33
54
  }, z.core.$strip>;
34
55
  candidateCaps: z.ZodObject<{
@@ -64,6 +85,10 @@ export declare const configSchema: z.ZodObject<{
64
85
  allowSourceInModel: z.ZodBoolean;
65
86
  allowWebResearch: z.ZodBoolean;
66
87
  }, z.core.$strip>;
88
+ fixExecution: z.ZodObject<{
89
+ enabled: z.ZodBoolean;
90
+ verificationCommands: z.ZodArray<z.ZodString>;
91
+ }, z.core.$strip>;
67
92
  }, z.core.$strip>;
68
93
  export type DeepcleanConfig = z.infer<typeof configSchema>;
69
94
  export declare const fileReferenceSchema: z.ZodObject<{
@@ -72,6 +97,23 @@ export declare const fileReferenceSchema: z.ZodObject<{
72
97
  endLine: z.ZodOptional<z.ZodNumber>;
73
98
  }, z.core.$strip>;
74
99
  export type FileReference = z.infer<typeof fileReferenceSchema>;
100
+ export declare const findingSignatureSchema: z.ZodObject<{
101
+ version: z.ZodLiteral<"1">;
102
+ value: z.ZodString;
103
+ components: z.ZodObject<{
104
+ category: z.ZodString;
105
+ normalizedTitle: z.ZodString;
106
+ evidenceKinds: z.ZodArray<z.ZodString>;
107
+ primaryAnchors: z.ZodArray<z.ZodObject<{
108
+ path: z.ZodString;
109
+ startLine: z.ZodOptional<z.ZodNumber>;
110
+ endLine: z.ZodOptional<z.ZodNumber>;
111
+ }, z.core.$strip>>;
112
+ graphNeighborhood: z.ZodOptional<z.ZodArray<z.ZodString>>;
113
+ analyzerRuleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ }, z.core.$strip>;
115
+ }, z.core.$strip>;
116
+ export type FindingSignature = z.infer<typeof findingSignatureSchema>;
75
117
  export declare const evidenceRecordSchema: z.ZodObject<{
76
118
  schemaVersion: z.ZodLiteral<"0.1.0">;
77
119
  recordType: z.ZodLiteral<"evidence">;
@@ -95,11 +137,97 @@ export declare const evidenceRecordSchema: z.ZodObject<{
95
137
  createdAt: z.ZodString;
96
138
  }, z.core.$strip>;
97
139
  export type EvidenceRecord = z.infer<typeof evidenceRecordSchema>;
140
+ export declare const featureRecordSchema: z.ZodObject<{
141
+ schemaVersion: z.ZodLiteral<"0.1.0">;
142
+ recordType: z.ZodLiteral<"feature">;
143
+ featureId: z.ZodString;
144
+ runId: z.ZodString;
145
+ title: z.ZodString;
146
+ summary: z.ZodString;
147
+ kind: z.ZodEnum<{
148
+ config: "config";
149
+ "package-script": "package-script";
150
+ route: "route";
151
+ component: "component";
152
+ module: "module";
153
+ "python-module": "python-module";
154
+ "test-suite": "test-suite";
155
+ }>;
156
+ source: z.ZodString;
157
+ confidence: z.ZodEnum<{
158
+ medium: "medium";
159
+ low: "low";
160
+ high: "high";
161
+ }>;
162
+ entrypoints: z.ZodArray<z.ZodObject<{
163
+ path: z.ZodString;
164
+ startLine: z.ZodOptional<z.ZodNumber>;
165
+ endLine: z.ZodOptional<z.ZodNumber>;
166
+ }, z.core.$strip>>;
167
+ ownedFiles: z.ZodArray<z.ZodObject<{
168
+ path: z.ZodString;
169
+ startLine: z.ZodOptional<z.ZodNumber>;
170
+ endLine: z.ZodOptional<z.ZodNumber>;
171
+ }, z.core.$strip>>;
172
+ contextFiles: z.ZodArray<z.ZodObject<{
173
+ path: z.ZodString;
174
+ startLine: z.ZodOptional<z.ZodNumber>;
175
+ endLine: z.ZodOptional<z.ZodNumber>;
176
+ }, z.core.$strip>>;
177
+ testFiles: z.ZodArray<z.ZodObject<{
178
+ path: z.ZodString;
179
+ startLine: z.ZodOptional<z.ZodNumber>;
180
+ endLine: z.ZodOptional<z.ZodNumber>;
181
+ }, z.core.$strip>>;
182
+ verification: z.ZodArray<z.ZodString>;
183
+ tags: z.ZodArray<z.ZodString>;
184
+ createdAt: z.ZodString;
185
+ updatedAt: z.ZodString;
186
+ }, z.core.$strip>;
187
+ export type FeatureRecord = z.infer<typeof featureRecordSchema>;
98
188
  export declare const candidateRecordSchema: z.ZodObject<{
99
189
  schemaVersion: z.ZodLiteral<"0.1.0">;
100
190
  recordType: z.ZodLiteral<"candidate">;
101
191
  id: z.ZodString;
102
192
  runId: z.ZodString;
193
+ findingId: z.ZodOptional<z.ZodString>;
194
+ signature: z.ZodOptional<z.ZodObject<{
195
+ version: z.ZodLiteral<"1">;
196
+ value: z.ZodString;
197
+ components: z.ZodObject<{
198
+ category: z.ZodString;
199
+ normalizedTitle: z.ZodString;
200
+ evidenceKinds: z.ZodArray<z.ZodString>;
201
+ primaryAnchors: z.ZodArray<z.ZodObject<{
202
+ path: z.ZodString;
203
+ startLine: z.ZodOptional<z.ZodNumber>;
204
+ endLine: z.ZodOptional<z.ZodNumber>;
205
+ }, z.core.$strip>>;
206
+ graphNeighborhood: z.ZodOptional<z.ZodArray<z.ZodString>>;
207
+ analyzerRuleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ }, z.core.$strip>;
209
+ }, z.core.$strip>>;
210
+ identityConfidence: z.ZodOptional<z.ZodEnum<{
211
+ medium: "medium";
212
+ low: "low";
213
+ high: "high";
214
+ }>>;
215
+ lifecycleState: z.ZodOptional<z.ZodEnum<{
216
+ fixed: "fixed";
217
+ open: "open";
218
+ stale: "stale";
219
+ superseded: "superseded";
220
+ suppressed: "suppressed";
221
+ inconclusive: "inconclusive";
222
+ }>>;
223
+ baselineStatus: z.ZodOptional<z.ZodEnum<{
224
+ fixed: "fixed";
225
+ unknown: "unknown";
226
+ new: "new";
227
+ existing: "existing";
228
+ worsened: "worsened";
229
+ improved: "improved";
230
+ }>>;
103
231
  title: z.ZodString;
104
232
  category: z.ZodEnum<{
105
233
  architecture: "architecture";
@@ -112,12 +240,14 @@ export declare const candidateRecordSchema: z.ZodObject<{
112
240
  diagnostic: "diagnostic";
113
241
  }>;
114
242
  status: z.ZodEnum<{
243
+ fixed: "fixed";
115
244
  open: "open";
116
245
  investigating: "investigating";
117
246
  "handed-off": "handed-off";
118
247
  ignored: "ignored";
119
248
  "false-positive": "false-positive";
120
249
  stale: "stale";
250
+ superseded: "superseded";
121
251
  }>;
122
252
  priority: z.ZodEnum<{
123
253
  P0: "P0";
@@ -164,11 +294,323 @@ export declare const candidateRecordSchema: z.ZodObject<{
164
294
  model: z.ZodOptional<z.ZodString>;
165
295
  promptVersion: z.ZodOptional<z.ZodString>;
166
296
  reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
297
+ runtime: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
167
298
  }, z.core.$strip>;
168
299
  createdAt: z.ZodString;
169
300
  updatedAt: z.ZodString;
170
301
  }, z.core.$strip>;
171
302
  export type CandidateRecord = z.infer<typeof candidateRecordSchema>;
303
+ export declare const findingRecordSchema: z.ZodObject<{
304
+ schemaVersion: z.ZodLiteral<"0.1.0">;
305
+ recordType: z.ZodLiteral<"finding">;
306
+ id: z.ZodString;
307
+ signature: z.ZodObject<{
308
+ version: z.ZodLiteral<"1">;
309
+ value: z.ZodString;
310
+ components: z.ZodObject<{
311
+ category: z.ZodString;
312
+ normalizedTitle: z.ZodString;
313
+ evidenceKinds: z.ZodArray<z.ZodString>;
314
+ primaryAnchors: z.ZodArray<z.ZodObject<{
315
+ path: z.ZodString;
316
+ startLine: z.ZodOptional<z.ZodNumber>;
317
+ endLine: z.ZodOptional<z.ZodNumber>;
318
+ }, z.core.$strip>>;
319
+ graphNeighborhood: z.ZodOptional<z.ZodArray<z.ZodString>>;
320
+ analyzerRuleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
321
+ }, z.core.$strip>;
322
+ }, z.core.$strip>;
323
+ identityConfidence: z.ZodEnum<{
324
+ medium: "medium";
325
+ low: "low";
326
+ high: "high";
327
+ }>;
328
+ title: z.ZodString;
329
+ category: z.ZodEnum<{
330
+ architecture: "architecture";
331
+ complexity: "complexity";
332
+ duplication: "duplication";
333
+ testability: "testability";
334
+ "dead-weight": "dead-weight";
335
+ "ai-slop": "ai-slop";
336
+ "domain-drift": "domain-drift";
337
+ diagnostic: "diagnostic";
338
+ }>;
339
+ status: z.ZodEnum<{
340
+ fixed: "fixed";
341
+ open: "open";
342
+ investigating: "investigating";
343
+ "handed-off": "handed-off";
344
+ ignored: "ignored";
345
+ "false-positive": "false-positive";
346
+ stale: "stale";
347
+ superseded: "superseded";
348
+ }>;
349
+ lifecycleState: z.ZodEnum<{
350
+ fixed: "fixed";
351
+ open: "open";
352
+ stale: "stale";
353
+ superseded: "superseded";
354
+ suppressed: "suppressed";
355
+ inconclusive: "inconclusive";
356
+ }>;
357
+ priority: z.ZodEnum<{
358
+ P0: "P0";
359
+ P1: "P1";
360
+ P2: "P2";
361
+ P3: "P3";
362
+ }>;
363
+ confidence: z.ZodEnum<{
364
+ medium: "medium";
365
+ low: "low";
366
+ high: "high";
367
+ }>;
368
+ impact: z.ZodEnum<{
369
+ local: "local";
370
+ feature: "feature";
371
+ "cross-cutting": "cross-cutting";
372
+ }>;
373
+ effort: z.ZodEnum<{
374
+ small: "small";
375
+ medium: "medium";
376
+ large: "large";
377
+ }>;
378
+ risk: z.ZodEnum<{
379
+ safe: "safe";
380
+ moderate: "moderate";
381
+ "design-needed": "design-needed";
382
+ }>;
383
+ files: z.ZodArray<z.ZodObject<{
384
+ path: z.ZodString;
385
+ startLine: z.ZodOptional<z.ZodNumber>;
386
+ endLine: z.ZodOptional<z.ZodNumber>;
387
+ }, z.core.$strip>>;
388
+ evidenceIds: z.ZodArray<z.ZodString>;
389
+ observationIds: z.ZodArray<z.ZodString>;
390
+ currentObservationId: z.ZodOptional<z.ZodString>;
391
+ createdAt: z.ZodString;
392
+ updatedAt: z.ZodString;
393
+ }, z.core.$strip>;
394
+ export type FindingRecord = z.infer<typeof findingRecordSchema>;
395
+ export declare const candidateObservationRecordSchema: z.ZodObject<{
396
+ schemaVersion: z.ZodLiteral<"0.1.0">;
397
+ recordType: z.ZodLiteral<"candidate_observation">;
398
+ id: z.ZodString;
399
+ findingId: z.ZodString;
400
+ candidateId: z.ZodString;
401
+ runId: z.ZodString;
402
+ signature: z.ZodObject<{
403
+ version: z.ZodLiteral<"1">;
404
+ value: z.ZodString;
405
+ components: z.ZodObject<{
406
+ category: z.ZodString;
407
+ normalizedTitle: z.ZodString;
408
+ evidenceKinds: z.ZodArray<z.ZodString>;
409
+ primaryAnchors: z.ZodArray<z.ZodObject<{
410
+ path: z.ZodString;
411
+ startLine: z.ZodOptional<z.ZodNumber>;
412
+ endLine: z.ZodOptional<z.ZodNumber>;
413
+ }, z.core.$strip>>;
414
+ graphNeighborhood: z.ZodOptional<z.ZodArray<z.ZodString>>;
415
+ analyzerRuleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
416
+ }, z.core.$strip>;
417
+ }, z.core.$strip>;
418
+ identityConfidence: z.ZodEnum<{
419
+ medium: "medium";
420
+ low: "low";
421
+ high: "high";
422
+ }>;
423
+ baselineStatus: z.ZodOptional<z.ZodEnum<{
424
+ fixed: "fixed";
425
+ unknown: "unknown";
426
+ new: "new";
427
+ existing: "existing";
428
+ worsened: "worsened";
429
+ improved: "improved";
430
+ }>>;
431
+ evidenceFreshness: z.ZodEnum<{
432
+ reused: "reused";
433
+ stale: "stale";
434
+ fresh: "fresh";
435
+ baseline: "baseline";
436
+ }>;
437
+ observedAt: z.ZodString;
438
+ }, z.core.$strip>;
439
+ export type CandidateObservationRecord = z.infer<typeof candidateObservationRecordSchema>;
440
+ export declare const lifecycleEventRecordSchema: z.ZodObject<{
441
+ schemaVersion: z.ZodLiteral<"0.1.0">;
442
+ recordType: z.ZodLiteral<"lifecycle_event">;
443
+ id: z.ZodString;
444
+ targetType: z.ZodEnum<{
445
+ theme: "theme";
446
+ finding: "finding";
447
+ report: "report";
448
+ plan: "plan";
449
+ handoff: "handoff";
450
+ revalidation: "revalidation";
451
+ fix_attempt: "fix_attempt";
452
+ }>;
453
+ targetId: z.ZodString;
454
+ findingId: z.ZodOptional<z.ZodString>;
455
+ runId: z.ZodOptional<z.ZodString>;
456
+ kind: z.ZodEnum<{
457
+ fixed: "fixed";
458
+ stale: "stale";
459
+ superseded: "superseded";
460
+ created: "created";
461
+ observed: "observed";
462
+ triaged: "triaged";
463
+ suppressed: "suppressed";
464
+ revalidated: "revalidated";
465
+ changed: "changed";
466
+ "fix-attempted": "fix-attempted";
467
+ "verification-passed": "verification-passed";
468
+ "verification-failed": "verification-failed";
469
+ }>;
470
+ fromState: z.ZodOptional<z.ZodString>;
471
+ toState: z.ZodOptional<z.ZodString>;
472
+ note: z.ZodOptional<z.ZodString>;
473
+ actor: z.ZodOptional<z.ZodString>;
474
+ command: z.ZodOptional<z.ZodString>;
475
+ createdAt: z.ZodString;
476
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
477
+ }, z.core.$strip>;
478
+ export type LifecycleEventRecord = z.infer<typeof lifecycleEventRecordSchema>;
479
+ export declare const revalidationRecordSchema: z.ZodObject<{
480
+ schemaVersion: z.ZodLiteral<"0.1.0">;
481
+ recordType: z.ZodLiteral<"revalidation">;
482
+ id: z.ZodString;
483
+ targetType: z.ZodEnum<{
484
+ theme: "theme";
485
+ finding: "finding";
486
+ all: "all";
487
+ }>;
488
+ targetId: z.ZodOptional<z.ZodString>;
489
+ runId: z.ZodString;
490
+ outcome: z.ZodEnum<{
491
+ fixed: "fixed";
492
+ stale: "stale";
493
+ superseded: "superseded";
494
+ changed: "changed";
495
+ inconclusive: "inconclusive";
496
+ unchanged: "unchanged";
497
+ }>;
498
+ evidenceIds: z.ZodArray<z.ZodString>;
499
+ previousObservationId: z.ZodOptional<z.ZodString>;
500
+ newObservationId: z.ZodOptional<z.ZodString>;
501
+ supersededByFindingId: z.ZodOptional<z.ZodString>;
502
+ diagnostics: z.ZodArray<z.ZodObject<{
503
+ level: z.ZodEnum<{
504
+ error: "error";
505
+ info: "info";
506
+ warning: "warning";
507
+ }>;
508
+ code: z.ZodString;
509
+ message: z.ZodString;
510
+ adapter: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$strip>>;
512
+ createdAt: z.ZodString;
513
+ }, z.core.$strip>;
514
+ export type RevalidationRecord = z.infer<typeof revalidationRecordSchema>;
515
+ export declare const ciRunRecordSchema: z.ZodObject<{
516
+ schemaVersion: z.ZodLiteral<"0.1.0">;
517
+ recordType: z.ZodLiteral<"ci_run">;
518
+ id: z.ZodString;
519
+ runId: z.ZodOptional<z.ZodString>;
520
+ baselineRef: z.ZodOptional<z.ZodString>;
521
+ status: z.ZodEnum<{
522
+ error: "error";
523
+ passed: "passed";
524
+ failed: "failed";
525
+ "policy-failed": "policy-failed";
526
+ }>;
527
+ policy: z.ZodRecord<z.ZodString, z.ZodUnknown>;
528
+ blockingFindingIds: z.ZodArray<z.ZodString>;
529
+ artifactPaths: z.ZodObject<{
530
+ json: z.ZodOptional<z.ZodString>;
531
+ markdown: z.ZodOptional<z.ZodString>;
532
+ sarif: z.ZodOptional<z.ZodString>;
533
+ }, z.core.$strip>;
534
+ diagnostics: z.ZodArray<z.ZodObject<{
535
+ level: z.ZodEnum<{
536
+ error: "error";
537
+ info: "info";
538
+ warning: "warning";
539
+ }>;
540
+ code: z.ZodString;
541
+ message: z.ZodString;
542
+ adapter: z.ZodOptional<z.ZodString>;
543
+ }, z.core.$strip>>;
544
+ createdAt: z.ZodString;
545
+ }, z.core.$strip>;
546
+ export type CiRunRecord = z.infer<typeof ciRunRecordSchema>;
547
+ export declare const lockRecordSchema: z.ZodObject<{
548
+ schemaVersion: z.ZodLiteral<"0.1.0">;
549
+ recordType: z.ZodLiteral<"lock">;
550
+ id: z.ZodString;
551
+ owner: z.ZodString;
552
+ pid: z.ZodNumber;
553
+ command: z.ZodString;
554
+ statePath: z.ZodString;
555
+ createdAt: z.ZodString;
556
+ expiresAt: z.ZodOptional<z.ZodString>;
557
+ }, z.core.$strip>;
558
+ export type LockRecord = z.infer<typeof lockRecordSchema>;
559
+ export declare const retentionManifestRecordSchema: z.ZodObject<{
560
+ schemaVersion: z.ZodLiteral<"0.1.0">;
561
+ recordType: z.ZodLiteral<"retention_manifest">;
562
+ id: z.ZodString;
563
+ dryRun: z.ZodBoolean;
564
+ keepRuns: z.ZodOptional<z.ZodNumber>;
565
+ keepDays: z.ZodOptional<z.ZodNumber>;
566
+ deletePaths: z.ZodArray<z.ZodString>;
567
+ retainedPaths: z.ZodArray<z.ZodString>;
568
+ blockedPaths: z.ZodArray<z.ZodObject<{
569
+ path: z.ZodString;
570
+ reason: z.ZodString;
571
+ }, z.core.$strip>>;
572
+ privacyNotes: z.ZodArray<z.ZodString>;
573
+ createdAt: z.ZodString;
574
+ }, z.core.$strip>;
575
+ export type RetentionManifestRecord = z.infer<typeof retentionManifestRecordSchema>;
576
+ export declare const fixAttemptRecordSchema: z.ZodObject<{
577
+ schemaVersion: z.ZodLiteral<"0.1.0">;
578
+ recordType: z.ZodLiteral<"fix_attempt">;
579
+ id: z.ZodString;
580
+ findingId: z.ZodString;
581
+ planId: z.ZodOptional<z.ZodString>;
582
+ status: z.ZodEnum<{
583
+ planned: "planned";
584
+ previewed: "previewed";
585
+ applied: "applied";
586
+ passed: "passed";
587
+ failed: "failed";
588
+ unverified: "unverified";
589
+ }>;
590
+ dryRun: z.ZodBoolean;
591
+ changedFiles: z.ZodArray<z.ZodString>;
592
+ patchPreviewPath: z.ZodOptional<z.ZodString>;
593
+ verificationCommands: z.ZodArray<z.ZodString>;
594
+ verificationResults: z.ZodArray<z.ZodObject<{
595
+ command: z.ZodString;
596
+ exitCode: z.ZodOptional<z.ZodNumber>;
597
+ passed: z.ZodBoolean;
598
+ outputPath: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strip>>;
600
+ diagnostics: z.ZodArray<z.ZodObject<{
601
+ level: z.ZodEnum<{
602
+ error: "error";
603
+ info: "info";
604
+ warning: "warning";
605
+ }>;
606
+ code: z.ZodString;
607
+ message: z.ZodString;
608
+ adapter: z.ZodOptional<z.ZodString>;
609
+ }, z.core.$strip>>;
610
+ createdAt: z.ZodString;
611
+ updatedAt: z.ZodString;
612
+ }, z.core.$strip>;
613
+ export type FixAttemptRecord = z.infer<typeof fixAttemptRecordSchema>;
172
614
  export declare const clusterRecordSchema: z.ZodObject<{
173
615
  schemaVersion: z.ZodLiteral<"0.1.0">;
174
616
  recordType: z.ZodLiteral<"cluster">;
@@ -187,12 +629,14 @@ export declare const clusterRecordSchema: z.ZodObject<{
187
629
  diagnostic: "diagnostic";
188
630
  }>;
189
631
  status: z.ZodEnum<{
632
+ fixed: "fixed";
190
633
  open: "open";
191
634
  investigating: "investigating";
192
635
  "handed-off": "handed-off";
193
636
  ignored: "ignored";
194
637
  "false-positive": "false-positive";
195
638
  stale: "stale";
639
+ superseded: "superseded";
196
640
  }>;
197
641
  priority: z.ZodEnum<{
198
642
  P0: "P0";
@@ -247,6 +691,7 @@ export declare const runRecordSchema: z.ZodObject<{
247
691
  root: z.ZodString;
248
692
  startedAt: z.ZodString;
249
693
  completedAt: z.ZodString;
694
+ featureCount: z.ZodOptional<z.ZodNumber>;
250
695
  evidenceCount: z.ZodNumber;
251
696
  candidateCount: z.ZodNumber;
252
697
  clusterCount: z.ZodOptional<z.ZodNumber>;
@@ -254,7 +699,21 @@ export declare const runRecordSchema: z.ZodObject<{
254
699
  requested: z.ZodBoolean;
255
700
  provider: z.ZodOptional<z.ZodString>;
256
701
  candidateCount: z.ZodNumber;
702
+ runtime: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
257
703
  }, z.core.$strip>;
704
+ scope: z.ZodOptional<z.ZodObject<{
705
+ incremental: z.ZodBoolean;
706
+ since: z.ZodOptional<z.ZodString>;
707
+ mergeBase: z.ZodOptional<z.ZodString>;
708
+ includeDirty: z.ZodBoolean;
709
+ paths: z.ZodArray<z.ZodString>;
710
+ changedPaths: z.ZodArray<z.ZodString>;
711
+ categories: z.ZodArray<z.ZodString>;
712
+ reviewers: z.ZodArray<z.ZodString>;
713
+ onlyExisting: z.ZodBoolean;
714
+ newOnly: z.ZodBoolean;
715
+ dirtyPaths: z.ZodArray<z.ZodString>;
716
+ }, z.core.$strip>>;
258
717
  diagnostics: z.ZodArray<z.ZodObject<{
259
718
  level: z.ZodEnum<{
260
719
  error: "error";
@@ -273,20 +732,24 @@ export declare const triageRecordSchema: z.ZodObject<{
273
732
  id: z.ZodString;
274
733
  candidateId: z.ZodString;
275
734
  fromStatus: z.ZodEnum<{
735
+ fixed: "fixed";
276
736
  open: "open";
277
737
  investigating: "investigating";
278
738
  "handed-off": "handed-off";
279
739
  ignored: "ignored";
280
740
  "false-positive": "false-positive";
281
741
  stale: "stale";
742
+ superseded: "superseded";
282
743
  }>;
283
744
  toStatus: z.ZodEnum<{
745
+ fixed: "fixed";
284
746
  open: "open";
285
747
  investigating: "investigating";
286
748
  "handed-off": "handed-off";
287
749
  ignored: "ignored";
288
750
  "false-positive": "false-positive";
289
751
  stale: "stale";
752
+ superseded: "superseded";
290
753
  }>;
291
754
  note: z.ZodString;
292
755
  createdAt: z.ZodString;
@@ -308,8 +771,8 @@ export declare const reportRecordSchema: z.ZodObject<{
308
771
  startHere: z.ZodOptional<z.ZodObject<{
309
772
  id: z.ZodString;
310
773
  type: z.ZodEnum<{
311
- candidate: "candidate";
312
774
  theme: "theme";
775
+ candidate: "candidate";
313
776
  }>;
314
777
  reason: z.ZodString;
315
778
  }, z.core.$strip>>;