@handfly/protocol 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,741 @@
1
+ import { z } from "zod";
2
+ export declare const PROTOCOL_VERSION = 1;
3
+ export declare const MAX_FRAGMENT_BYTES = 8192;
4
+ export declare const NodeKind: z.ZodEnum<{
5
+ function: "function";
6
+ module: "module";
7
+ class: "class";
8
+ method: "method";
9
+ route: "route";
10
+ view: "view";
11
+ model: "model";
12
+ model_field: "model_field";
13
+ serializer: "serializer";
14
+ component: "component";
15
+ hook: "hook";
16
+ test: "test";
17
+ task: "task";
18
+ signal_handler: "signal_handler";
19
+ }>;
20
+ export type NodeKind = z.infer<typeof NodeKind>;
21
+ export declare const EdgeKind: z.ZodEnum<{
22
+ calls: "calls";
23
+ imports: "imports";
24
+ reads: "reads";
25
+ writes: "writes";
26
+ tests: "tests";
27
+ renders: "renders";
28
+ routes_to: "routes_to";
29
+ http_calls: "http_calls";
30
+ inherits: "inherits";
31
+ fk: "fk";
32
+ handles_event: "handles_event";
33
+ enqueues: "enqueues";
34
+ signals: "signals";
35
+ contains: "contains";
36
+ }>;
37
+ export type EdgeKind = z.infer<typeof EdgeKind>;
38
+ export declare const EdgeConfidence: z.ZodEnum<{
39
+ resolved: "resolved";
40
+ heuristic: "heuristic";
41
+ }>;
42
+ export declare const Origin: z.ZodEnum<{
43
+ human: "human";
44
+ agent: "agent";
45
+ unknown: "unknown";
46
+ }>;
47
+ export declare const Language: z.ZodEnum<{
48
+ python: "python";
49
+ typescript: "typescript";
50
+ javascript: "javascript";
51
+ java: "java";
52
+ csharp: "csharp";
53
+ go: "go";
54
+ php: "php";
55
+ kotlin: "kotlin";
56
+ swift: "swift";
57
+ rust: "rust";
58
+ cpp: "cpp";
59
+ shell: "shell";
60
+ hcl: "hcl";
61
+ }>;
62
+ export declare const RepoNodeSummary: z.ZodObject<{
63
+ id: z.ZodString;
64
+ kind: z.ZodEnum<{
65
+ function: "function";
66
+ module: "module";
67
+ class: "class";
68
+ method: "method";
69
+ route: "route";
70
+ view: "view";
71
+ model: "model";
72
+ model_field: "model_field";
73
+ serializer: "serializer";
74
+ component: "component";
75
+ hook: "hook";
76
+ test: "test";
77
+ task: "task";
78
+ signal_handler: "signal_handler";
79
+ }>;
80
+ qname: z.ZodString;
81
+ name: z.ZodString;
82
+ path: z.ZodString;
83
+ language: z.ZodEnum<{
84
+ python: "python";
85
+ typescript: "typescript";
86
+ javascript: "javascript";
87
+ java: "java";
88
+ csharp: "csharp";
89
+ go: "go";
90
+ php: "php";
91
+ kotlin: "kotlin";
92
+ swift: "swift";
93
+ rust: "rust";
94
+ cpp: "cpp";
95
+ shell: "shell";
96
+ hcl: "hcl";
97
+ }>;
98
+ span: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
99
+ loc: z.ZodNumber;
100
+ complexity: z.ZodNumber;
101
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
102
+ criticality: z.ZodOptional<z.ZodNumber>;
103
+ criticality_terms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
104
+ origin: z.ZodDefault<z.ZodEnum<{
105
+ human: "human";
106
+ agent: "agent";
107
+ unknown: "unknown";
108
+ }>>;
109
+ origin_fraction: z.ZodOptional<z.ZodNumber>;
110
+ }, z.core.$strip>;
111
+ export type RepoNodeSummary = z.infer<typeof RepoNodeSummary>;
112
+ export declare const RepoEdgeSummary: z.ZodObject<{
113
+ from: z.ZodString;
114
+ to: z.ZodString;
115
+ kind: z.ZodEnum<{
116
+ calls: "calls";
117
+ imports: "imports";
118
+ reads: "reads";
119
+ writes: "writes";
120
+ tests: "tests";
121
+ renders: "renders";
122
+ routes_to: "routes_to";
123
+ http_calls: "http_calls";
124
+ inherits: "inherits";
125
+ fk: "fk";
126
+ handles_event: "handles_event";
127
+ enqueues: "enqueues";
128
+ signals: "signals";
129
+ contains: "contains";
130
+ }>;
131
+ confidence: z.ZodEnum<{
132
+ resolved: "resolved";
133
+ heuristic: "heuristic";
134
+ }>;
135
+ line: z.ZodOptional<z.ZodNumber>;
136
+ }, z.core.$strip>;
137
+ export type RepoEdgeSummary = z.infer<typeof RepoEdgeSummary>;
138
+ export declare const ConceptHit: z.ZodObject<{
139
+ node_id: z.ZodString;
140
+ slug: z.ZodString;
141
+ confidence: z.ZodNumber;
142
+ pattern: z.ZodString;
143
+ }, z.core.$strip>;
144
+ export type ConceptHit = z.infer<typeof ConceptHit>;
145
+ export declare const StructureDelta: z.ZodObject<{
146
+ snapshot: z.ZodString;
147
+ base_snapshot: z.ZodNullable<z.ZodString>;
148
+ full: z.ZodBoolean;
149
+ upsert_nodes: z.ZodArray<z.ZodObject<{
150
+ id: z.ZodString;
151
+ kind: z.ZodEnum<{
152
+ function: "function";
153
+ module: "module";
154
+ class: "class";
155
+ method: "method";
156
+ route: "route";
157
+ view: "view";
158
+ model: "model";
159
+ model_field: "model_field";
160
+ serializer: "serializer";
161
+ component: "component";
162
+ hook: "hook";
163
+ test: "test";
164
+ task: "task";
165
+ signal_handler: "signal_handler";
166
+ }>;
167
+ qname: z.ZodString;
168
+ name: z.ZodString;
169
+ path: z.ZodString;
170
+ language: z.ZodEnum<{
171
+ python: "python";
172
+ typescript: "typescript";
173
+ javascript: "javascript";
174
+ java: "java";
175
+ csharp: "csharp";
176
+ go: "go";
177
+ php: "php";
178
+ kotlin: "kotlin";
179
+ swift: "swift";
180
+ rust: "rust";
181
+ cpp: "cpp";
182
+ shell: "shell";
183
+ hcl: "hcl";
184
+ }>;
185
+ span: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
186
+ loc: z.ZodNumber;
187
+ complexity: z.ZodNumber;
188
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
189
+ criticality: z.ZodOptional<z.ZodNumber>;
190
+ criticality_terms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
191
+ origin: z.ZodDefault<z.ZodEnum<{
192
+ human: "human";
193
+ agent: "agent";
194
+ unknown: "unknown";
195
+ }>>;
196
+ origin_fraction: z.ZodOptional<z.ZodNumber>;
197
+ }, z.core.$strip>>;
198
+ delete_nodes: z.ZodArray<z.ZodString>;
199
+ upsert_edges: z.ZodArray<z.ZodObject<{
200
+ from: z.ZodString;
201
+ to: z.ZodString;
202
+ kind: z.ZodEnum<{
203
+ calls: "calls";
204
+ imports: "imports";
205
+ reads: "reads";
206
+ writes: "writes";
207
+ tests: "tests";
208
+ renders: "renders";
209
+ routes_to: "routes_to";
210
+ http_calls: "http_calls";
211
+ inherits: "inherits";
212
+ fk: "fk";
213
+ handles_event: "handles_event";
214
+ enqueues: "enqueues";
215
+ signals: "signals";
216
+ contains: "contains";
217
+ }>;
218
+ confidence: z.ZodEnum<{
219
+ resolved: "resolved";
220
+ heuristic: "heuristic";
221
+ }>;
222
+ line: z.ZodOptional<z.ZodNumber>;
223
+ }, z.core.$strip>>;
224
+ delete_edges: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString, z.ZodEnum<{
225
+ calls: "calls";
226
+ imports: "imports";
227
+ reads: "reads";
228
+ writes: "writes";
229
+ tests: "tests";
230
+ renders: "renders";
231
+ routes_to: "routes_to";
232
+ http_calls: "http_calls";
233
+ inherits: "inherits";
234
+ fk: "fk";
235
+ handles_event: "handles_event";
236
+ enqueues: "enqueues";
237
+ signals: "signals";
238
+ contains: "contains";
239
+ }>], null>>;
240
+ concept_hits: z.ZodArray<z.ZodObject<{
241
+ node_id: z.ZodString;
242
+ slug: z.ZodString;
243
+ confidence: z.ZodNumber;
244
+ pattern: z.ZodString;
245
+ }, z.core.$strip>>;
246
+ stats: z.ZodObject<{
247
+ files: z.ZodNumber;
248
+ lines: z.ZodNumber;
249
+ nodes: z.ZodNumber;
250
+ edges: z.ZodNumber;
251
+ resolution_rate: z.ZodNumber;
252
+ duration_ms: z.ZodNumber;
253
+ }, z.core.$strip>;
254
+ }, z.core.$strip>;
255
+ export type StructureDelta = z.infer<typeof StructureDelta>;
256
+ export declare const ItemType: z.ZodEnum<{
257
+ seeded_bug: "seeded_bug";
258
+ output_prediction: "output_prediction";
259
+ flow_trace: "flow_trace";
260
+ change_impact: "change_impact";
261
+ agent_diff_review: "agent_diff_review";
262
+ explanation: "explanation";
263
+ state_trace: "state_trace";
264
+ failure_triage: "failure_triage";
265
+ cloze: "cloze";
266
+ reverse_trace: "reverse_trace";
267
+ kill_mutant: "kill_mutant";
268
+ fix_bug: "fix_bug";
269
+ query_count: "query_count";
270
+ concept_check: "concept_check";
271
+ find_vuln: "find_vuln";
272
+ cost_scale: "cost_scale";
273
+ null_contract: "null_contract";
274
+ spot_difference: "spot_difference";
275
+ parsons: "parsons";
276
+ race_schedule: "race_schedule";
277
+ }>;
278
+ export type ItemType = z.infer<typeof ItemType>;
279
+ export declare const GradingMethod: z.ZodEnum<{
280
+ cloze: "cloze";
281
+ line_locate: "line_locate";
282
+ exact_output: "exact_output";
283
+ choice: "choice";
284
+ ordered_set: "ordered_set";
285
+ weighted_set: "weighted_set";
286
+ rubric: "rubric";
287
+ decision: "decision";
288
+ triage: "triage";
289
+ local_exec: "local_exec";
290
+ count: "count";
291
+ vuln: "vuln";
292
+ cost: "cost";
293
+ contract: "contract";
294
+ spot: "spot";
295
+ race: "race";
296
+ }>;
297
+ export declare const VerificationKind: z.ZodEnum<{
298
+ execution: "execution";
299
+ structural: "structural";
300
+ static: "static";
301
+ none: "none";
302
+ }>;
303
+ export declare const ItemSpec: z.ZodObject<{
304
+ fingerprint: z.ZodString;
305
+ template_key: z.ZodString;
306
+ type: z.ZodEnum<{
307
+ seeded_bug: "seeded_bug";
308
+ output_prediction: "output_prediction";
309
+ flow_trace: "flow_trace";
310
+ change_impact: "change_impact";
311
+ agent_diff_review: "agent_diff_review";
312
+ explanation: "explanation";
313
+ state_trace: "state_trace";
314
+ failure_triage: "failure_triage";
315
+ cloze: "cloze";
316
+ reverse_trace: "reverse_trace";
317
+ kill_mutant: "kill_mutant";
318
+ fix_bug: "fix_bug";
319
+ query_count: "query_count";
320
+ concept_check: "concept_check";
321
+ find_vuln: "find_vuln";
322
+ cost_scale: "cost_scale";
323
+ null_contract: "null_contract";
324
+ spot_difference: "spot_difference";
325
+ parsons: "parsons";
326
+ race_schedule: "race_schedule";
327
+ }>;
328
+ concepts: z.ZodArray<z.ZodObject<{
329
+ slug: z.ZodString;
330
+ weight: z.ZodNumber;
331
+ }, z.core.$strip>>;
332
+ component_node_id: z.ZodString;
333
+ criticality: z.ZodNumber;
334
+ difficulty: z.ZodNumber;
335
+ grading_method: z.ZodEnum<{
336
+ cloze: "cloze";
337
+ line_locate: "line_locate";
338
+ exact_output: "exact_output";
339
+ choice: "choice";
340
+ ordered_set: "ordered_set";
341
+ weighted_set: "weighted_set";
342
+ rubric: "rubric";
343
+ decision: "decision";
344
+ triage: "triage";
345
+ local_exec: "local_exec";
346
+ count: "count";
347
+ vuln: "vuln";
348
+ cost: "cost";
349
+ contract: "contract";
350
+ spot: "spot";
351
+ race: "race";
352
+ }>;
353
+ verification: z.ZodObject<{
354
+ kind: z.ZodEnum<{
355
+ execution: "execution";
356
+ structural: "structural";
357
+ static: "static";
358
+ none: "none";
359
+ }>;
360
+ all_edges_resolved: z.ZodDefault<z.ZodBoolean>;
361
+ evidence: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
362
+ }, z.core.$strip>;
363
+ voice_compatible: z.ZodBoolean;
364
+ est_seconds: z.ZodNumber;
365
+ prompt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
366
+ expected: z.ZodRecord<z.ZodString, z.ZodUnknown>;
367
+ fragment: z.ZodObject<{
368
+ path: z.ZodString;
369
+ start_line: z.ZodNumber;
370
+ end_line: z.ZodNumber;
371
+ }, z.core.$strip>;
372
+ }, z.core.$strip>;
373
+ export type ItemSpec = z.infer<typeof ItemSpec>;
374
+ export declare const ItemSpecBatch: z.ZodObject<{
375
+ specs: z.ZodArray<z.ZodObject<{
376
+ fingerprint: z.ZodString;
377
+ template_key: z.ZodString;
378
+ type: z.ZodEnum<{
379
+ seeded_bug: "seeded_bug";
380
+ output_prediction: "output_prediction";
381
+ flow_trace: "flow_trace";
382
+ change_impact: "change_impact";
383
+ agent_diff_review: "agent_diff_review";
384
+ explanation: "explanation";
385
+ state_trace: "state_trace";
386
+ failure_triage: "failure_triage";
387
+ cloze: "cloze";
388
+ reverse_trace: "reverse_trace";
389
+ kill_mutant: "kill_mutant";
390
+ fix_bug: "fix_bug";
391
+ query_count: "query_count";
392
+ concept_check: "concept_check";
393
+ find_vuln: "find_vuln";
394
+ cost_scale: "cost_scale";
395
+ null_contract: "null_contract";
396
+ spot_difference: "spot_difference";
397
+ parsons: "parsons";
398
+ race_schedule: "race_schedule";
399
+ }>;
400
+ concepts: z.ZodArray<z.ZodObject<{
401
+ slug: z.ZodString;
402
+ weight: z.ZodNumber;
403
+ }, z.core.$strip>>;
404
+ component_node_id: z.ZodString;
405
+ criticality: z.ZodNumber;
406
+ difficulty: z.ZodNumber;
407
+ grading_method: z.ZodEnum<{
408
+ cloze: "cloze";
409
+ line_locate: "line_locate";
410
+ exact_output: "exact_output";
411
+ choice: "choice";
412
+ ordered_set: "ordered_set";
413
+ weighted_set: "weighted_set";
414
+ rubric: "rubric";
415
+ decision: "decision";
416
+ triage: "triage";
417
+ local_exec: "local_exec";
418
+ count: "count";
419
+ vuln: "vuln";
420
+ cost: "cost";
421
+ contract: "contract";
422
+ spot: "spot";
423
+ race: "race";
424
+ }>;
425
+ verification: z.ZodObject<{
426
+ kind: z.ZodEnum<{
427
+ execution: "execution";
428
+ structural: "structural";
429
+ static: "static";
430
+ none: "none";
431
+ }>;
432
+ all_edges_resolved: z.ZodDefault<z.ZodBoolean>;
433
+ evidence: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
434
+ }, z.core.$strip>;
435
+ voice_compatible: z.ZodBoolean;
436
+ est_seconds: z.ZodNumber;
437
+ prompt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
438
+ expected: z.ZodRecord<z.ZodString, z.ZodUnknown>;
439
+ fragment: z.ZodObject<{
440
+ path: z.ZodString;
441
+ start_line: z.ZodNumber;
442
+ end_line: z.ZodNumber;
443
+ }, z.core.$strip>;
444
+ }, z.core.$strip>>;
445
+ }, z.core.$strip>;
446
+ export type ItemSpecBatch = z.infer<typeof ItemSpecBatch>;
447
+ export declare const Fragment: z.ZodObject<{
448
+ fingerprint: z.ZodString;
449
+ path: z.ZodString;
450
+ start_line: z.ZodNumber;
451
+ end_line: z.ZodNumber;
452
+ language: z.ZodEnum<{
453
+ python: "python";
454
+ typescript: "typescript";
455
+ javascript: "javascript";
456
+ java: "java";
457
+ csharp: "csharp";
458
+ go: "go";
459
+ php: "php";
460
+ kotlin: "kotlin";
461
+ swift: "swift";
462
+ rust: "rust";
463
+ cpp: "cpp";
464
+ shell: "shell";
465
+ hcl: "hcl";
466
+ }>;
467
+ text: z.ZodString;
468
+ redactions: z.ZodArray<z.ZodObject<{
469
+ rule: z.ZodString;
470
+ line: z.ZodNumber;
471
+ }, z.core.$strip>>;
472
+ origin_lines: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
473
+ evidence: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>;
475
+ export type Fragment = z.infer<typeof Fragment>;
476
+ export declare const FragmentBatch: z.ZodObject<{
477
+ fragments: z.ZodArray<z.ZodObject<{
478
+ fingerprint: z.ZodString;
479
+ path: z.ZodString;
480
+ start_line: z.ZodNumber;
481
+ end_line: z.ZodNumber;
482
+ language: z.ZodEnum<{
483
+ python: "python";
484
+ typescript: "typescript";
485
+ javascript: "javascript";
486
+ java: "java";
487
+ csharp: "csharp";
488
+ go: "go";
489
+ php: "php";
490
+ kotlin: "kotlin";
491
+ swift: "swift";
492
+ rust: "rust";
493
+ cpp: "cpp";
494
+ shell: "shell";
495
+ hcl: "hcl";
496
+ }>;
497
+ text: z.ZodString;
498
+ redactions: z.ZodArray<z.ZodObject<{
499
+ rule: z.ZodString;
500
+ line: z.ZodNumber;
501
+ }, z.core.$strip>>;
502
+ origin_lines: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
503
+ evidence: z.ZodOptional<z.ZodString>;
504
+ }, z.core.$strip>>;
505
+ }, z.core.$strip>;
506
+ export type FragmentBatch = z.infer<typeof FragmentBatch>;
507
+ export declare const EnvelopeKind: z.ZodEnum<{
508
+ fragments: "fragments";
509
+ structure_delta: "structure_delta";
510
+ item_specs: "item_specs";
511
+ }>;
512
+ export type EnvelopeKind = z.infer<typeof EnvelopeKind>;
513
+ export declare const Envelope: z.ZodObject<{
514
+ protocol_version: z.ZodLiteral<1>;
515
+ repo_id: z.ZodString;
516
+ kind: z.ZodEnum<{
517
+ fragments: "fragments";
518
+ structure_delta: "structure_delta";
519
+ item_specs: "item_specs";
520
+ }>;
521
+ created_at: z.ZodString;
522
+ items_count: z.ZodNumber;
523
+ bytes: z.ZodNumber;
524
+ sha256: z.ZodString;
525
+ payload: z.ZodUnknown;
526
+ }, z.core.$strip>;
527
+ export type Envelope = z.infer<typeof Envelope>;
528
+ export declare const PAYLOAD_SCHEMAS: {
529
+ readonly structure_delta: z.ZodObject<{
530
+ snapshot: z.ZodString;
531
+ base_snapshot: z.ZodNullable<z.ZodString>;
532
+ full: z.ZodBoolean;
533
+ upsert_nodes: z.ZodArray<z.ZodObject<{
534
+ id: z.ZodString;
535
+ kind: z.ZodEnum<{
536
+ function: "function";
537
+ module: "module";
538
+ class: "class";
539
+ method: "method";
540
+ route: "route";
541
+ view: "view";
542
+ model: "model";
543
+ model_field: "model_field";
544
+ serializer: "serializer";
545
+ component: "component";
546
+ hook: "hook";
547
+ test: "test";
548
+ task: "task";
549
+ signal_handler: "signal_handler";
550
+ }>;
551
+ qname: z.ZodString;
552
+ name: z.ZodString;
553
+ path: z.ZodString;
554
+ language: z.ZodEnum<{
555
+ python: "python";
556
+ typescript: "typescript";
557
+ javascript: "javascript";
558
+ java: "java";
559
+ csharp: "csharp";
560
+ go: "go";
561
+ php: "php";
562
+ kotlin: "kotlin";
563
+ swift: "swift";
564
+ rust: "rust";
565
+ cpp: "cpp";
566
+ shell: "shell";
567
+ hcl: "hcl";
568
+ }>;
569
+ span: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
570
+ loc: z.ZodNumber;
571
+ complexity: z.ZodNumber;
572
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
573
+ criticality: z.ZodOptional<z.ZodNumber>;
574
+ criticality_terms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
575
+ origin: z.ZodDefault<z.ZodEnum<{
576
+ human: "human";
577
+ agent: "agent";
578
+ unknown: "unknown";
579
+ }>>;
580
+ origin_fraction: z.ZodOptional<z.ZodNumber>;
581
+ }, z.core.$strip>>;
582
+ delete_nodes: z.ZodArray<z.ZodString>;
583
+ upsert_edges: z.ZodArray<z.ZodObject<{
584
+ from: z.ZodString;
585
+ to: z.ZodString;
586
+ kind: z.ZodEnum<{
587
+ calls: "calls";
588
+ imports: "imports";
589
+ reads: "reads";
590
+ writes: "writes";
591
+ tests: "tests";
592
+ renders: "renders";
593
+ routes_to: "routes_to";
594
+ http_calls: "http_calls";
595
+ inherits: "inherits";
596
+ fk: "fk";
597
+ handles_event: "handles_event";
598
+ enqueues: "enqueues";
599
+ signals: "signals";
600
+ contains: "contains";
601
+ }>;
602
+ confidence: z.ZodEnum<{
603
+ resolved: "resolved";
604
+ heuristic: "heuristic";
605
+ }>;
606
+ line: z.ZodOptional<z.ZodNumber>;
607
+ }, z.core.$strip>>;
608
+ delete_edges: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString, z.ZodEnum<{
609
+ calls: "calls";
610
+ imports: "imports";
611
+ reads: "reads";
612
+ writes: "writes";
613
+ tests: "tests";
614
+ renders: "renders";
615
+ routes_to: "routes_to";
616
+ http_calls: "http_calls";
617
+ inherits: "inherits";
618
+ fk: "fk";
619
+ handles_event: "handles_event";
620
+ enqueues: "enqueues";
621
+ signals: "signals";
622
+ contains: "contains";
623
+ }>], null>>;
624
+ concept_hits: z.ZodArray<z.ZodObject<{
625
+ node_id: z.ZodString;
626
+ slug: z.ZodString;
627
+ confidence: z.ZodNumber;
628
+ pattern: z.ZodString;
629
+ }, z.core.$strip>>;
630
+ stats: z.ZodObject<{
631
+ files: z.ZodNumber;
632
+ lines: z.ZodNumber;
633
+ nodes: z.ZodNumber;
634
+ edges: z.ZodNumber;
635
+ resolution_rate: z.ZodNumber;
636
+ duration_ms: z.ZodNumber;
637
+ }, z.core.$strip>;
638
+ }, z.core.$strip>;
639
+ readonly item_specs: z.ZodObject<{
640
+ specs: z.ZodArray<z.ZodObject<{
641
+ fingerprint: z.ZodString;
642
+ template_key: z.ZodString;
643
+ type: z.ZodEnum<{
644
+ seeded_bug: "seeded_bug";
645
+ output_prediction: "output_prediction";
646
+ flow_trace: "flow_trace";
647
+ change_impact: "change_impact";
648
+ agent_diff_review: "agent_diff_review";
649
+ explanation: "explanation";
650
+ state_trace: "state_trace";
651
+ failure_triage: "failure_triage";
652
+ cloze: "cloze";
653
+ reverse_trace: "reverse_trace";
654
+ kill_mutant: "kill_mutant";
655
+ fix_bug: "fix_bug";
656
+ query_count: "query_count";
657
+ concept_check: "concept_check";
658
+ find_vuln: "find_vuln";
659
+ cost_scale: "cost_scale";
660
+ null_contract: "null_contract";
661
+ spot_difference: "spot_difference";
662
+ parsons: "parsons";
663
+ race_schedule: "race_schedule";
664
+ }>;
665
+ concepts: z.ZodArray<z.ZodObject<{
666
+ slug: z.ZodString;
667
+ weight: z.ZodNumber;
668
+ }, z.core.$strip>>;
669
+ component_node_id: z.ZodString;
670
+ criticality: z.ZodNumber;
671
+ difficulty: z.ZodNumber;
672
+ grading_method: z.ZodEnum<{
673
+ cloze: "cloze";
674
+ line_locate: "line_locate";
675
+ exact_output: "exact_output";
676
+ choice: "choice";
677
+ ordered_set: "ordered_set";
678
+ weighted_set: "weighted_set";
679
+ rubric: "rubric";
680
+ decision: "decision";
681
+ triage: "triage";
682
+ local_exec: "local_exec";
683
+ count: "count";
684
+ vuln: "vuln";
685
+ cost: "cost";
686
+ contract: "contract";
687
+ spot: "spot";
688
+ race: "race";
689
+ }>;
690
+ verification: z.ZodObject<{
691
+ kind: z.ZodEnum<{
692
+ execution: "execution";
693
+ structural: "structural";
694
+ static: "static";
695
+ none: "none";
696
+ }>;
697
+ all_edges_resolved: z.ZodDefault<z.ZodBoolean>;
698
+ evidence: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
699
+ }, z.core.$strip>;
700
+ voice_compatible: z.ZodBoolean;
701
+ est_seconds: z.ZodNumber;
702
+ prompt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
703
+ expected: z.ZodRecord<z.ZodString, z.ZodUnknown>;
704
+ fragment: z.ZodObject<{
705
+ path: z.ZodString;
706
+ start_line: z.ZodNumber;
707
+ end_line: z.ZodNumber;
708
+ }, z.core.$strip>;
709
+ }, z.core.$strip>>;
710
+ }, z.core.$strip>;
711
+ readonly fragments: z.ZodObject<{
712
+ fragments: z.ZodArray<z.ZodObject<{
713
+ fingerprint: z.ZodString;
714
+ path: z.ZodString;
715
+ start_line: z.ZodNumber;
716
+ end_line: z.ZodNumber;
717
+ language: z.ZodEnum<{
718
+ python: "python";
719
+ typescript: "typescript";
720
+ javascript: "javascript";
721
+ java: "java";
722
+ csharp: "csharp";
723
+ go: "go";
724
+ php: "php";
725
+ kotlin: "kotlin";
726
+ swift: "swift";
727
+ rust: "rust";
728
+ cpp: "cpp";
729
+ shell: "shell";
730
+ hcl: "hcl";
731
+ }>;
732
+ text: z.ZodString;
733
+ redactions: z.ZodArray<z.ZodObject<{
734
+ rule: z.ZodString;
735
+ line: z.ZodNumber;
736
+ }, z.core.$strip>>;
737
+ origin_lines: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
738
+ evidence: z.ZodOptional<z.ZodString>;
739
+ }, z.core.$strip>>;
740
+ }, z.core.$strip>;
741
+ };