@fenglimg/fabric-shared 1.7.0 → 1.8.0-rc.2

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,883 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const structuredWarningSchema: z.ZodObject<{
4
+ code: z.ZodString;
5
+ file: z.ZodString;
6
+ line: z.ZodOptional<z.ZodNumber>;
7
+ action_hint: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ file: string;
10
+ code: string;
11
+ action_hint: string;
12
+ line?: number | undefined;
13
+ }, {
14
+ file: string;
15
+ code: string;
16
+ action_hint: string;
17
+ line?: number | undefined;
18
+ }>;
19
+ declare const planContextInputSchema: z.ZodObject<{
20
+ paths: z.ZodArray<z.ZodString, "many">;
21
+ intent: z.ZodOptional<z.ZodString>;
22
+ known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
+ detected_entities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
24
+ client_hash: z.ZodOptional<z.ZodString>;
25
+ correlation_id: z.ZodOptional<z.ZodString>;
26
+ session_id: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ paths: string[];
29
+ known_tech?: string[] | undefined;
30
+ detected_entities?: Record<string, string[]> | undefined;
31
+ intent?: string | undefined;
32
+ client_hash?: string | undefined;
33
+ correlation_id?: string | undefined;
34
+ session_id?: string | undefined;
35
+ }, {
36
+ paths: string[];
37
+ known_tech?: string[] | undefined;
38
+ detected_entities?: Record<string, string[]> | undefined;
39
+ intent?: string | undefined;
40
+ client_hash?: string | undefined;
41
+ correlation_id?: string | undefined;
42
+ session_id?: string | undefined;
43
+ }>;
44
+ declare const planContextOutputSchema: z.ZodObject<{
45
+ revision_hash: z.ZodString;
46
+ stale: z.ZodBoolean;
47
+ selection_token: z.ZodString;
48
+ entries: z.ZodArray<z.ZodObject<{
49
+ path: z.ZodString;
50
+ requirement_profile: z.ZodObject<{
51
+ target_path: z.ZodString;
52
+ path_segments: z.ZodArray<z.ZodString, "many">;
53
+ extension: z.ZodString;
54
+ inferred_domain: z.ZodArray<z.ZodString, "many">;
55
+ known_tech: z.ZodArray<z.ZodString, "many">;
56
+ user_intent: z.ZodString;
57
+ intent_tokens: z.ZodArray<z.ZodString, "many">;
58
+ impact_hints: z.ZodArray<z.ZodString, "many">;
59
+ detected_entities: z.ZodArray<z.ZodString, "many">;
60
+ }, "strip", z.ZodTypeAny, {
61
+ target_path: string;
62
+ path_segments: string[];
63
+ extension: string;
64
+ inferred_domain: string[];
65
+ known_tech: string[];
66
+ user_intent: string;
67
+ intent_tokens: string[];
68
+ impact_hints: string[];
69
+ detected_entities: string[];
70
+ }, {
71
+ target_path: string;
72
+ path_segments: string[];
73
+ extension: string;
74
+ inferred_domain: string[];
75
+ known_tech: string[];
76
+ user_intent: string;
77
+ intent_tokens: string[];
78
+ impact_hints: string[];
79
+ detected_entities: string[];
80
+ }>;
81
+ description_index: z.ZodArray<z.ZodObject<{
82
+ stable_id: z.ZodString;
83
+ level: z.ZodEnum<["L0", "L1", "L2"]>;
84
+ required: z.ZodBoolean;
85
+ selectable: z.ZodBoolean;
86
+ description: z.ZodObject<{
87
+ summary: z.ZodString;
88
+ intent_clues: z.ZodArray<z.ZodString, "many">;
89
+ tech_stack: z.ZodArray<z.ZodString, "many">;
90
+ impact: z.ZodArray<z.ZodString, "many">;
91
+ must_read_if: z.ZodString;
92
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ summary: string;
95
+ intent_clues: string[];
96
+ tech_stack: string[];
97
+ impact: string[];
98
+ must_read_if: string;
99
+ entities?: string[] | undefined;
100
+ }, {
101
+ summary: string;
102
+ intent_clues: string[];
103
+ tech_stack: string[];
104
+ impact: string[];
105
+ must_read_if: string;
106
+ entities?: string[] | undefined;
107
+ }>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ description: {
110
+ summary: string;
111
+ intent_clues: string[];
112
+ tech_stack: string[];
113
+ impact: string[];
114
+ must_read_if: string;
115
+ entities?: string[] | undefined;
116
+ };
117
+ level: "L0" | "L1" | "L2";
118
+ stable_id: string;
119
+ required: boolean;
120
+ selectable: boolean;
121
+ }, {
122
+ description: {
123
+ summary: string;
124
+ intent_clues: string[];
125
+ tech_stack: string[];
126
+ impact: string[];
127
+ must_read_if: string;
128
+ entities?: string[] | undefined;
129
+ };
130
+ level: "L0" | "L1" | "L2";
131
+ stable_id: string;
132
+ required: boolean;
133
+ selectable: boolean;
134
+ }>, "many">;
135
+ required_stable_ids: z.ZodArray<z.ZodString, "many">;
136
+ ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
137
+ initial_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
138
+ selection_policy: z.ZodObject<{
139
+ required_levels: z.ZodTuple<[z.ZodLiteral<"L0">, z.ZodLiteral<"L2">], null>;
140
+ ai_selectable_levels: z.ZodTuple<[z.ZodLiteral<"L1">], null>;
141
+ final_fetch_rule: z.ZodLiteral<"required_stable_ids + ai_selected_l1_stable_ids">;
142
+ }, "strip", z.ZodTypeAny, {
143
+ required_levels: ["L0", "L2"];
144
+ ai_selectable_levels: ["L1"];
145
+ final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
146
+ }, {
147
+ required_levels: ["L0", "L2"];
148
+ ai_selectable_levels: ["L1"];
149
+ final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
150
+ }>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ path: string;
153
+ requirement_profile: {
154
+ target_path: string;
155
+ path_segments: string[];
156
+ extension: string;
157
+ inferred_domain: string[];
158
+ known_tech: string[];
159
+ user_intent: string;
160
+ intent_tokens: string[];
161
+ impact_hints: string[];
162
+ detected_entities: string[];
163
+ };
164
+ description_index: {
165
+ description: {
166
+ summary: string;
167
+ intent_clues: string[];
168
+ tech_stack: string[];
169
+ impact: string[];
170
+ must_read_if: string;
171
+ entities?: string[] | undefined;
172
+ };
173
+ level: "L0" | "L1" | "L2";
174
+ stable_id: string;
175
+ required: boolean;
176
+ selectable: boolean;
177
+ }[];
178
+ required_stable_ids: string[];
179
+ ai_selectable_stable_ids: string[];
180
+ initial_selected_stable_ids: string[];
181
+ selection_policy: {
182
+ required_levels: ["L0", "L2"];
183
+ ai_selectable_levels: ["L1"];
184
+ final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
185
+ };
186
+ }, {
187
+ path: string;
188
+ requirement_profile: {
189
+ target_path: string;
190
+ path_segments: string[];
191
+ extension: string;
192
+ inferred_domain: string[];
193
+ known_tech: string[];
194
+ user_intent: string;
195
+ intent_tokens: string[];
196
+ impact_hints: string[];
197
+ detected_entities: string[];
198
+ };
199
+ description_index: {
200
+ description: {
201
+ summary: string;
202
+ intent_clues: string[];
203
+ tech_stack: string[];
204
+ impact: string[];
205
+ must_read_if: string;
206
+ entities?: string[] | undefined;
207
+ };
208
+ level: "L0" | "L1" | "L2";
209
+ stable_id: string;
210
+ required: boolean;
211
+ selectable: boolean;
212
+ }[];
213
+ required_stable_ids: string[];
214
+ ai_selectable_stable_ids: string[];
215
+ initial_selected_stable_ids: string[];
216
+ selection_policy: {
217
+ required_levels: ["L0", "L2"];
218
+ ai_selectable_levels: ["L1"];
219
+ final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
220
+ };
221
+ }>, "many">;
222
+ shared: z.ZodObject<{
223
+ required_stable_ids: z.ZodArray<z.ZodString, "many">;
224
+ ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
225
+ description_index: z.ZodArray<z.ZodObject<{
226
+ stable_id: z.ZodString;
227
+ level: z.ZodEnum<["L0", "L1", "L2"]>;
228
+ required: z.ZodBoolean;
229
+ selectable: z.ZodBoolean;
230
+ description: z.ZodObject<{
231
+ summary: z.ZodString;
232
+ intent_clues: z.ZodArray<z.ZodString, "many">;
233
+ tech_stack: z.ZodArray<z.ZodString, "many">;
234
+ impact: z.ZodArray<z.ZodString, "many">;
235
+ must_read_if: z.ZodString;
236
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ summary: string;
239
+ intent_clues: string[];
240
+ tech_stack: string[];
241
+ impact: string[];
242
+ must_read_if: string;
243
+ entities?: string[] | undefined;
244
+ }, {
245
+ summary: string;
246
+ intent_clues: string[];
247
+ tech_stack: string[];
248
+ impact: string[];
249
+ must_read_if: string;
250
+ entities?: string[] | undefined;
251
+ }>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ description: {
254
+ summary: string;
255
+ intent_clues: string[];
256
+ tech_stack: string[];
257
+ impact: string[];
258
+ must_read_if: string;
259
+ entities?: string[] | undefined;
260
+ };
261
+ level: "L0" | "L1" | "L2";
262
+ stable_id: string;
263
+ required: boolean;
264
+ selectable: boolean;
265
+ }, {
266
+ description: {
267
+ summary: string;
268
+ intent_clues: string[];
269
+ tech_stack: string[];
270
+ impact: string[];
271
+ must_read_if: string;
272
+ entities?: string[] | undefined;
273
+ };
274
+ level: "L0" | "L1" | "L2";
275
+ stable_id: string;
276
+ required: boolean;
277
+ selectable: boolean;
278
+ }>, "many">;
279
+ preflight_diagnostics: z.ZodArray<z.ZodObject<{
280
+ code: z.ZodLiteral<"missing_description">;
281
+ severity: z.ZodLiteral<"warn">;
282
+ message: z.ZodString;
283
+ stable_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
284
+ path: z.ZodOptional<z.ZodString>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ code: "missing_description";
287
+ message: string;
288
+ severity: "warn";
289
+ path?: string | undefined;
290
+ stable_ids?: string[] | undefined;
291
+ }, {
292
+ code: "missing_description";
293
+ message: string;
294
+ severity: "warn";
295
+ path?: string | undefined;
296
+ stable_ids?: string[] | undefined;
297
+ }>, "many">;
298
+ }, "strip", z.ZodTypeAny, {
299
+ description_index: {
300
+ description: {
301
+ summary: string;
302
+ intent_clues: string[];
303
+ tech_stack: string[];
304
+ impact: string[];
305
+ must_read_if: string;
306
+ entities?: string[] | undefined;
307
+ };
308
+ level: "L0" | "L1" | "L2";
309
+ stable_id: string;
310
+ required: boolean;
311
+ selectable: boolean;
312
+ }[];
313
+ required_stable_ids: string[];
314
+ ai_selectable_stable_ids: string[];
315
+ preflight_diagnostics: {
316
+ code: "missing_description";
317
+ message: string;
318
+ severity: "warn";
319
+ path?: string | undefined;
320
+ stable_ids?: string[] | undefined;
321
+ }[];
322
+ }, {
323
+ description_index: {
324
+ description: {
325
+ summary: string;
326
+ intent_clues: string[];
327
+ tech_stack: string[];
328
+ impact: string[];
329
+ must_read_if: string;
330
+ entities?: string[] | undefined;
331
+ };
332
+ level: "L0" | "L1" | "L2";
333
+ stable_id: string;
334
+ required: boolean;
335
+ selectable: boolean;
336
+ }[];
337
+ required_stable_ids: string[];
338
+ ai_selectable_stable_ids: string[];
339
+ preflight_diagnostics: {
340
+ code: "missing_description";
341
+ message: string;
342
+ severity: "warn";
343
+ path?: string | undefined;
344
+ stable_ids?: string[] | undefined;
345
+ }[];
346
+ }>;
347
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
348
+ code: z.ZodString;
349
+ file: z.ZodString;
350
+ line: z.ZodOptional<z.ZodNumber>;
351
+ action_hint: z.ZodString;
352
+ }, "strip", z.ZodTypeAny, {
353
+ file: string;
354
+ code: string;
355
+ action_hint: string;
356
+ line?: number | undefined;
357
+ }, {
358
+ file: string;
359
+ code: string;
360
+ action_hint: string;
361
+ line?: number | undefined;
362
+ }>, "many">>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ stale: boolean;
365
+ entries: {
366
+ path: string;
367
+ requirement_profile: {
368
+ target_path: string;
369
+ path_segments: string[];
370
+ extension: string;
371
+ inferred_domain: string[];
372
+ known_tech: string[];
373
+ user_intent: string;
374
+ intent_tokens: string[];
375
+ impact_hints: string[];
376
+ detected_entities: string[];
377
+ };
378
+ description_index: {
379
+ description: {
380
+ summary: string;
381
+ intent_clues: string[];
382
+ tech_stack: string[];
383
+ impact: string[];
384
+ must_read_if: string;
385
+ entities?: string[] | undefined;
386
+ };
387
+ level: "L0" | "L1" | "L2";
388
+ stable_id: string;
389
+ required: boolean;
390
+ selectable: boolean;
391
+ }[];
392
+ required_stable_ids: string[];
393
+ ai_selectable_stable_ids: string[];
394
+ initial_selected_stable_ids: string[];
395
+ selection_policy: {
396
+ required_levels: ["L0", "L2"];
397
+ ai_selectable_levels: ["L1"];
398
+ final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
399
+ };
400
+ }[];
401
+ revision_hash: string;
402
+ selection_token: string;
403
+ shared: {
404
+ description_index: {
405
+ description: {
406
+ summary: string;
407
+ intent_clues: string[];
408
+ tech_stack: string[];
409
+ impact: string[];
410
+ must_read_if: string;
411
+ entities?: string[] | undefined;
412
+ };
413
+ level: "L0" | "L1" | "L2";
414
+ stable_id: string;
415
+ required: boolean;
416
+ selectable: boolean;
417
+ }[];
418
+ required_stable_ids: string[];
419
+ ai_selectable_stable_ids: string[];
420
+ preflight_diagnostics: {
421
+ code: "missing_description";
422
+ message: string;
423
+ severity: "warn";
424
+ path?: string | undefined;
425
+ stable_ids?: string[] | undefined;
426
+ }[];
427
+ };
428
+ warnings?: {
429
+ file: string;
430
+ code: string;
431
+ action_hint: string;
432
+ line?: number | undefined;
433
+ }[] | undefined;
434
+ }, {
435
+ stale: boolean;
436
+ entries: {
437
+ path: string;
438
+ requirement_profile: {
439
+ target_path: string;
440
+ path_segments: string[];
441
+ extension: string;
442
+ inferred_domain: string[];
443
+ known_tech: string[];
444
+ user_intent: string;
445
+ intent_tokens: string[];
446
+ impact_hints: string[];
447
+ detected_entities: string[];
448
+ };
449
+ description_index: {
450
+ description: {
451
+ summary: string;
452
+ intent_clues: string[];
453
+ tech_stack: string[];
454
+ impact: string[];
455
+ must_read_if: string;
456
+ entities?: string[] | undefined;
457
+ };
458
+ level: "L0" | "L1" | "L2";
459
+ stable_id: string;
460
+ required: boolean;
461
+ selectable: boolean;
462
+ }[];
463
+ required_stable_ids: string[];
464
+ ai_selectable_stable_ids: string[];
465
+ initial_selected_stable_ids: string[];
466
+ selection_policy: {
467
+ required_levels: ["L0", "L2"];
468
+ ai_selectable_levels: ["L1"];
469
+ final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
470
+ };
471
+ }[];
472
+ revision_hash: string;
473
+ selection_token: string;
474
+ shared: {
475
+ description_index: {
476
+ description: {
477
+ summary: string;
478
+ intent_clues: string[];
479
+ tech_stack: string[];
480
+ impact: string[];
481
+ must_read_if: string;
482
+ entities?: string[] | undefined;
483
+ };
484
+ level: "L0" | "L1" | "L2";
485
+ stable_id: string;
486
+ required: boolean;
487
+ selectable: boolean;
488
+ }[];
489
+ required_stable_ids: string[];
490
+ ai_selectable_stable_ids: string[];
491
+ preflight_diagnostics: {
492
+ code: "missing_description";
493
+ message: string;
494
+ severity: "warn";
495
+ path?: string | undefined;
496
+ stable_ids?: string[] | undefined;
497
+ }[];
498
+ };
499
+ warnings?: {
500
+ file: string;
501
+ code: string;
502
+ action_hint: string;
503
+ line?: number | undefined;
504
+ }[] | undefined;
505
+ }>;
506
+ declare const planContextAnnotations: {
507
+ readonly readOnlyHint: true;
508
+ readonly idempotentHint: true;
509
+ readonly destructiveHint: false;
510
+ readonly openWorldHint: false;
511
+ readonly title: "Plan rule context";
512
+ };
513
+ declare const getRulesInputSchema: z.ZodObject<{
514
+ path: z.ZodString;
515
+ client_hash: z.ZodOptional<z.ZodString>;
516
+ correlation_id: z.ZodOptional<z.ZodString>;
517
+ session_id: z.ZodOptional<z.ZodString>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ path: string;
520
+ client_hash?: string | undefined;
521
+ correlation_id?: string | undefined;
522
+ session_id?: string | undefined;
523
+ }, {
524
+ path: string;
525
+ client_hash?: string | undefined;
526
+ correlation_id?: string | undefined;
527
+ session_id?: string | undefined;
528
+ }>;
529
+ declare const getRulesOutputSchema: z.ZodObject<{
530
+ revision_hash: z.ZodString;
531
+ stale: z.ZodBoolean;
532
+ rules: z.ZodObject<{
533
+ L0: z.ZodString;
534
+ L1: z.ZodArray<z.ZodObject<{
535
+ path: z.ZodString;
536
+ content: z.ZodString;
537
+ }, "strip", z.ZodTypeAny, {
538
+ path: string;
539
+ content: string;
540
+ }, {
541
+ path: string;
542
+ content: string;
543
+ }>, "many">;
544
+ L2: z.ZodArray<z.ZodObject<{
545
+ path: z.ZodString;
546
+ content: z.ZodString;
547
+ }, "strip", z.ZodTypeAny, {
548
+ path: string;
549
+ content: string;
550
+ }, {
551
+ path: string;
552
+ content: string;
553
+ }>, "many">;
554
+ human_locked_nearby: z.ZodArray<z.ZodObject<{
555
+ file: z.ZodString;
556
+ excerpt: z.ZodString;
557
+ }, "strip", z.ZodTypeAny, {
558
+ file: string;
559
+ excerpt: string;
560
+ }, {
561
+ file: string;
562
+ excerpt: string;
563
+ }>, "many">;
564
+ description_stubs: z.ZodOptional<z.ZodArray<z.ZodObject<{
565
+ path: z.ZodString;
566
+ description: z.ZodString;
567
+ }, "strip", z.ZodTypeAny, {
568
+ path: string;
569
+ description: string;
570
+ }, {
571
+ path: string;
572
+ description: string;
573
+ }>, "many">>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ L0: string;
576
+ L1: {
577
+ path: string;
578
+ content: string;
579
+ }[];
580
+ L2: {
581
+ path: string;
582
+ content: string;
583
+ }[];
584
+ human_locked_nearby: {
585
+ file: string;
586
+ excerpt: string;
587
+ }[];
588
+ description_stubs?: {
589
+ path: string;
590
+ description: string;
591
+ }[] | undefined;
592
+ }, {
593
+ L0: string;
594
+ L1: {
595
+ path: string;
596
+ content: string;
597
+ }[];
598
+ L2: {
599
+ path: string;
600
+ content: string;
601
+ }[];
602
+ human_locked_nearby: {
603
+ file: string;
604
+ excerpt: string;
605
+ }[];
606
+ description_stubs?: {
607
+ path: string;
608
+ description: string;
609
+ }[] | undefined;
610
+ }>;
611
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
612
+ code: z.ZodString;
613
+ file: z.ZodString;
614
+ line: z.ZodOptional<z.ZodNumber>;
615
+ action_hint: z.ZodString;
616
+ }, "strip", z.ZodTypeAny, {
617
+ file: string;
618
+ code: string;
619
+ action_hint: string;
620
+ line?: number | undefined;
621
+ }, {
622
+ file: string;
623
+ code: string;
624
+ action_hint: string;
625
+ line?: number | undefined;
626
+ }>, "many">>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ stale: boolean;
629
+ revision_hash: string;
630
+ rules: {
631
+ L0: string;
632
+ L1: {
633
+ path: string;
634
+ content: string;
635
+ }[];
636
+ L2: {
637
+ path: string;
638
+ content: string;
639
+ }[];
640
+ human_locked_nearby: {
641
+ file: string;
642
+ excerpt: string;
643
+ }[];
644
+ description_stubs?: {
645
+ path: string;
646
+ description: string;
647
+ }[] | undefined;
648
+ };
649
+ warnings?: {
650
+ file: string;
651
+ code: string;
652
+ action_hint: string;
653
+ line?: number | undefined;
654
+ }[] | undefined;
655
+ }, {
656
+ stale: boolean;
657
+ revision_hash: string;
658
+ rules: {
659
+ L0: string;
660
+ L1: {
661
+ path: string;
662
+ content: string;
663
+ }[];
664
+ L2: {
665
+ path: string;
666
+ content: string;
667
+ }[];
668
+ human_locked_nearby: {
669
+ file: string;
670
+ excerpt: string;
671
+ }[];
672
+ description_stubs?: {
673
+ path: string;
674
+ description: string;
675
+ }[] | undefined;
676
+ };
677
+ warnings?: {
678
+ file: string;
679
+ code: string;
680
+ action_hint: string;
681
+ line?: number | undefined;
682
+ }[] | undefined;
683
+ }>;
684
+ declare const getRulesAnnotations: {
685
+ readonly readOnlyHint: true;
686
+ readonly idempotentHint: true;
687
+ readonly destructiveHint: false;
688
+ readonly openWorldHint: false;
689
+ readonly title: "Get rule content";
690
+ };
691
+ declare const ruleSectionsInputSchema: z.ZodObject<{
692
+ selection_token: z.ZodString;
693
+ sections: z.ZodArray<z.ZodEnum<["MISSION_STATEMENT", "MANDATORY_INJECTION", "BUSINESS_LOGIC_CHUNKS", "CONTEXT_INFO"]>, "many">;
694
+ ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
695
+ ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
696
+ correlation_id: z.ZodOptional<z.ZodString>;
697
+ session_id: z.ZodOptional<z.ZodString>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ sections: ("MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO")[];
700
+ selection_token: string;
701
+ ai_selected_stable_ids: string[];
702
+ ai_selection_reasons: Record<string, string>;
703
+ correlation_id?: string | undefined;
704
+ session_id?: string | undefined;
705
+ }, {
706
+ sections: ("MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO")[];
707
+ selection_token: string;
708
+ ai_selected_stable_ids: string[];
709
+ ai_selection_reasons: Record<string, string>;
710
+ correlation_id?: string | undefined;
711
+ session_id?: string | undefined;
712
+ }>;
713
+ declare const ruleSectionsOutputSchema: z.ZodObject<{
714
+ revision_hash: z.ZodString;
715
+ precedence: z.ZodTuple<[z.ZodLiteral<"L2">, z.ZodLiteral<"L1">, z.ZodLiteral<"L0">], null>;
716
+ selected_stable_ids: z.ZodArray<z.ZodString, "many">;
717
+ rules: z.ZodArray<z.ZodObject<{
718
+ stable_id: z.ZodString;
719
+ level: z.ZodEnum<["L0", "L1", "L2"]>;
720
+ path: z.ZodString;
721
+ sections: z.ZodRecord<z.ZodString, z.ZodString>;
722
+ }, "strip", z.ZodTypeAny, {
723
+ path: string;
724
+ level: "L0" | "L1" | "L2";
725
+ stable_id: string;
726
+ sections: Record<string, string>;
727
+ }, {
728
+ path: string;
729
+ level: "L0" | "L1" | "L2";
730
+ stable_id: string;
731
+ sections: Record<string, string>;
732
+ }>, "many">;
733
+ diagnostics: z.ZodArray<z.ZodObject<{
734
+ code: z.ZodLiteral<"missing_section">;
735
+ severity: z.ZodLiteral<"warn">;
736
+ stable_id: z.ZodString;
737
+ section: z.ZodEnum<["MISSION_STATEMENT", "MANDATORY_INJECTION", "BUSINESS_LOGIC_CHUNKS", "CONTEXT_INFO"]>;
738
+ message: z.ZodString;
739
+ }, "strip", z.ZodTypeAny, {
740
+ stable_id: string;
741
+ code: "missing_section";
742
+ message: string;
743
+ severity: "warn";
744
+ section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
745
+ }, {
746
+ stable_id: string;
747
+ code: "missing_section";
748
+ message: string;
749
+ severity: "warn";
750
+ section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
751
+ }>, "many">;
752
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
753
+ code: z.ZodString;
754
+ file: z.ZodString;
755
+ line: z.ZodOptional<z.ZodNumber>;
756
+ action_hint: z.ZodString;
757
+ }, "strip", z.ZodTypeAny, {
758
+ file: string;
759
+ code: string;
760
+ action_hint: string;
761
+ line?: number | undefined;
762
+ }, {
763
+ file: string;
764
+ code: string;
765
+ action_hint: string;
766
+ line?: number | undefined;
767
+ }>, "many">>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ revision_hash: string;
770
+ rules: {
771
+ path: string;
772
+ level: "L0" | "L1" | "L2";
773
+ stable_id: string;
774
+ sections: Record<string, string>;
775
+ }[];
776
+ precedence: ["L2", "L1", "L0"];
777
+ selected_stable_ids: string[];
778
+ diagnostics: {
779
+ stable_id: string;
780
+ code: "missing_section";
781
+ message: string;
782
+ severity: "warn";
783
+ section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
784
+ }[];
785
+ warnings?: {
786
+ file: string;
787
+ code: string;
788
+ action_hint: string;
789
+ line?: number | undefined;
790
+ }[] | undefined;
791
+ }, {
792
+ revision_hash: string;
793
+ rules: {
794
+ path: string;
795
+ level: "L0" | "L1" | "L2";
796
+ stable_id: string;
797
+ sections: Record<string, string>;
798
+ }[];
799
+ precedence: ["L2", "L1", "L0"];
800
+ selected_stable_ids: string[];
801
+ diagnostics: {
802
+ stable_id: string;
803
+ code: "missing_section";
804
+ message: string;
805
+ severity: "warn";
806
+ section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
807
+ }[];
808
+ warnings?: {
809
+ file: string;
810
+ code: string;
811
+ action_hint: string;
812
+ line?: number | undefined;
813
+ }[] | undefined;
814
+ }>;
815
+ declare const ruleSectionsAnnotations: {
816
+ readonly readOnlyHint: true;
817
+ readonly idempotentHint: true;
818
+ readonly destructiveHint: false;
819
+ readonly openWorldHint: false;
820
+ readonly title: "Filter rule sections";
821
+ };
822
+ declare const ledgerSourceSchema: z.ZodEnum<["ai", "human"]>;
823
+ declare const ledgerQuerySchema: z.ZodObject<{
824
+ source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
825
+ since: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
826
+ }, "strip", z.ZodTypeAny, {
827
+ source?: "ai" | "human" | undefined;
828
+ since?: number | undefined;
829
+ }, {
830
+ source?: "ai" | "human" | undefined;
831
+ since?: unknown;
832
+ }>;
833
+ declare const historyStateQuerySchema: z.ZodEffects<z.ZodObject<{
834
+ ledger_id: z.ZodOptional<z.ZodString>;
835
+ ts: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ ledger_id?: string | undefined;
838
+ ts?: number | undefined;
839
+ }, {
840
+ ledger_id?: string | undefined;
841
+ ts?: unknown;
842
+ }>, {
843
+ ledger_id?: string | undefined;
844
+ ts?: number | undefined;
845
+ }, {
846
+ ledger_id?: string | undefined;
847
+ ts?: unknown;
848
+ }>;
849
+ declare const humanLockApproveRequestSchema: z.ZodObject<{
850
+ file: z.ZodString;
851
+ start_line: z.ZodNumber;
852
+ end_line: z.ZodNumber;
853
+ new_hash: z.ZodString;
854
+ }, "strip", z.ZodTypeAny, {
855
+ file: string;
856
+ start_line: number;
857
+ end_line: number;
858
+ new_hash: string;
859
+ }, {
860
+ file: string;
861
+ start_line: number;
862
+ end_line: number;
863
+ new_hash: string;
864
+ }>;
865
+ declare const humanLockFileParamsSchema: z.ZodObject<{
866
+ file: z.ZodString;
867
+ }, "strip", z.ZodTypeAny, {
868
+ file: string;
869
+ }, {
870
+ file: string;
871
+ }>;
872
+ declare const annotateIntentRequestSchema: z.ZodObject<{
873
+ ledger_entry_id: z.ZodString;
874
+ annotation: z.ZodString;
875
+ }, "strip", z.ZodTypeAny, {
876
+ ledger_entry_id: string;
877
+ annotation: string;
878
+ }, {
879
+ ledger_entry_id: string;
880
+ annotation: string;
881
+ }>;
882
+
883
+ export { annotateIntentRequestSchema, getRulesAnnotations, getRulesInputSchema, getRulesOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, ledgerQuerySchema, ledgerSourceSchema, planContextAnnotations, planContextInputSchema, planContextOutputSchema, ruleSectionsAnnotations, ruleSectionsInputSchema, ruleSectionsOutputSchema, structuredWarningSchema };