@fenglimg/fabric-shared 2.0.0-rc.1 → 2.0.0-rc.11

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.
@@ -24,7 +24,8 @@ declare const planContextInputSchema: z.ZodObject<{
24
24
  client_hash: z.ZodOptional<z.ZodString>;
25
25
  correlation_id: z.ZodOptional<z.ZodString>;
26
26
  session_id: z.ZodOptional<z.ZodString>;
27
- include_deprecated: z.ZodOptional<z.ZodBoolean>;
27
+ layer_filter: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
28
+ target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
29
  }, "strip", z.ZodTypeAny, {
29
30
  paths: string[];
30
31
  known_tech?: string[] | undefined;
@@ -33,7 +34,8 @@ declare const planContextInputSchema: z.ZodObject<{
33
34
  client_hash?: string | undefined;
34
35
  correlation_id?: string | undefined;
35
36
  session_id?: string | undefined;
36
- include_deprecated?: boolean | undefined;
37
+ layer_filter?: "personal" | "team" | "both" | undefined;
38
+ target_paths?: string[] | undefined;
37
39
  }, {
38
40
  paths: string[];
39
41
  known_tech?: string[] | undefined;
@@ -42,7 +44,8 @@ declare const planContextInputSchema: z.ZodObject<{
42
44
  client_hash?: string | undefined;
43
45
  correlation_id?: string | undefined;
44
46
  session_id?: string | undefined;
45
- include_deprecated?: boolean | undefined;
47
+ layer_filter?: "personal" | "team" | "both" | undefined;
48
+ target_paths?: string[] | undefined;
46
49
  }>;
47
50
  declare const planContextOutputSchema: z.ZodObject<{
48
51
  revision_hash: z.ZodString;
@@ -54,31 +57,22 @@ declare const planContextOutputSchema: z.ZodObject<{
54
57
  target_path: z.ZodString;
55
58
  path_segments: z.ZodArray<z.ZodString, "many">;
56
59
  extension: z.ZodString;
57
- inferred_domain: z.ZodArray<z.ZodString, "many">;
58
60
  known_tech: z.ZodArray<z.ZodString, "many">;
59
61
  user_intent: z.ZodString;
60
- intent_tokens: z.ZodArray<z.ZodString, "many">;
61
- impact_hints: z.ZodArray<z.ZodString, "many">;
62
62
  detected_entities: z.ZodArray<z.ZodString, "many">;
63
63
  }, "strip", z.ZodTypeAny, {
64
64
  target_path: string;
65
65
  path_segments: string[];
66
66
  extension: string;
67
- inferred_domain: string[];
68
67
  known_tech: string[];
69
68
  user_intent: string;
70
- intent_tokens: string[];
71
- impact_hints: string[];
72
69
  detected_entities: string[];
73
70
  }, {
74
71
  target_path: string;
75
72
  path_segments: string[];
76
73
  extension: string;
77
- inferred_domain: string[];
78
74
  known_tech: string[];
79
75
  user_intent: string;
80
- intent_tokens: string[];
81
- impact_hints: string[];
82
76
  detected_entities: string[];
83
77
  }>;
84
78
  description_index: z.ZodArray<z.ZodObject<{
@@ -130,6 +124,9 @@ declare const planContextOutputSchema: z.ZodObject<{
130
124
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
131
125
  layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
132
126
  layer_reason: z.ZodOptional<z.ZodString>;
127
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
128
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
129
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
130
  }, "strip", z.ZodTypeAny, {
134
131
  description: {
135
132
  summary: string;
@@ -149,10 +146,13 @@ declare const planContextOutputSchema: z.ZodObject<{
149
146
  level: "L0" | "L1" | "L2";
150
147
  required: boolean;
151
148
  selectable: boolean;
149
+ relevance_scope?: "narrow" | "broad" | undefined;
150
+ relevance_paths?: string[] | undefined;
151
+ layer?: "personal" | "team" | undefined;
152
152
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
153
153
  maturity?: "draft" | "verified" | "proven" | undefined;
154
154
  layer_reason?: string | undefined;
155
- layer?: "personal" | "team" | undefined;
155
+ tags?: string[] | undefined;
156
156
  }, {
157
157
  description: {
158
158
  summary: string;
@@ -172,38 +172,22 @@ declare const planContextOutputSchema: z.ZodObject<{
172
172
  level: "L0" | "L1" | "L2";
173
173
  required: boolean;
174
174
  selectable: boolean;
175
+ relevance_scope?: "narrow" | "broad" | undefined;
176
+ relevance_paths?: string[] | undefined;
177
+ layer?: "personal" | "team" | undefined;
175
178
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
176
179
  maturity?: "draft" | "verified" | "proven" | undefined;
177
180
  layer_reason?: string | undefined;
178
- layer?: "personal" | "team" | undefined;
181
+ tags?: string[] | undefined;
179
182
  }>, "many">;
180
- required_stable_ids: z.ZodArray<z.ZodString, "many">;
181
- ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
182
- initial_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
183
- selection_policy: z.ZodObject<{
184
- required_levels: z.ZodTuple<[z.ZodLiteral<"L0">, z.ZodLiteral<"L2">], null>;
185
- ai_selectable_levels: z.ZodTuple<[z.ZodLiteral<"L1">], null>;
186
- final_fetch_rule: z.ZodLiteral<"required_stable_ids + ai_selected_l1_stable_ids">;
187
- }, "strip", z.ZodTypeAny, {
188
- required_levels: ["L0", "L2"];
189
- ai_selectable_levels: ["L1"];
190
- final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
191
- }, {
192
- required_levels: ["L0", "L2"];
193
- ai_selectable_levels: ["L1"];
194
- final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
195
- }>;
196
183
  }, "strip", z.ZodTypeAny, {
197
184
  path: string;
198
185
  requirement_profile: {
199
186
  target_path: string;
200
187
  path_segments: string[];
201
188
  extension: string;
202
- inferred_domain: string[];
203
189
  known_tech: string[];
204
190
  user_intent: string;
205
- intent_tokens: string[];
206
- impact_hints: string[];
207
191
  detected_entities: string[];
208
192
  };
209
193
  description_index: {
@@ -225,30 +209,22 @@ declare const planContextOutputSchema: z.ZodObject<{
225
209
  level: "L0" | "L1" | "L2";
226
210
  required: boolean;
227
211
  selectable: boolean;
212
+ relevance_scope?: "narrow" | "broad" | undefined;
213
+ relevance_paths?: string[] | undefined;
214
+ layer?: "personal" | "team" | undefined;
228
215
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
229
216
  maturity?: "draft" | "verified" | "proven" | undefined;
230
217
  layer_reason?: string | undefined;
231
- layer?: "personal" | "team" | undefined;
218
+ tags?: string[] | undefined;
232
219
  }[];
233
- required_stable_ids: string[];
234
- ai_selectable_stable_ids: string[];
235
- initial_selected_stable_ids: string[];
236
- selection_policy: {
237
- required_levels: ["L0", "L2"];
238
- ai_selectable_levels: ["L1"];
239
- final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
240
- };
241
220
  }, {
242
221
  path: string;
243
222
  requirement_profile: {
244
223
  target_path: string;
245
224
  path_segments: string[];
246
225
  extension: string;
247
- inferred_domain: string[];
248
226
  known_tech: string[];
249
227
  user_intent: string;
250
- intent_tokens: string[];
251
- impact_hints: string[];
252
228
  detected_entities: string[];
253
229
  };
254
230
  description_index: {
@@ -270,23 +246,16 @@ declare const planContextOutputSchema: z.ZodObject<{
270
246
  level: "L0" | "L1" | "L2";
271
247
  required: boolean;
272
248
  selectable: boolean;
249
+ relevance_scope?: "narrow" | "broad" | undefined;
250
+ relevance_paths?: string[] | undefined;
251
+ layer?: "personal" | "team" | undefined;
273
252
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
274
253
  maturity?: "draft" | "verified" | "proven" | undefined;
275
254
  layer_reason?: string | undefined;
276
- layer?: "personal" | "team" | undefined;
255
+ tags?: string[] | undefined;
277
256
  }[];
278
- required_stable_ids: string[];
279
- ai_selectable_stable_ids: string[];
280
- initial_selected_stable_ids: string[];
281
- selection_policy: {
282
- required_levels: ["L0", "L2"];
283
- ai_selectable_levels: ["L1"];
284
- final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
285
- };
286
257
  }>, "many">;
287
258
  shared: z.ZodObject<{
288
- required_stable_ids: z.ZodArray<z.ZodString, "many">;
289
- ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
290
259
  description_index: z.ZodArray<z.ZodObject<{
291
260
  stable_id: z.ZodString;
292
261
  level: z.ZodEnum<["L0", "L1", "L2"]>;
@@ -336,6 +305,9 @@ declare const planContextOutputSchema: z.ZodObject<{
336
305
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
337
306
  layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
338
307
  layer_reason: z.ZodOptional<z.ZodString>;
308
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
309
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
310
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
339
311
  }, "strip", z.ZodTypeAny, {
340
312
  description: {
341
313
  summary: string;
@@ -355,10 +327,13 @@ declare const planContextOutputSchema: z.ZodObject<{
355
327
  level: "L0" | "L1" | "L2";
356
328
  required: boolean;
357
329
  selectable: boolean;
330
+ relevance_scope?: "narrow" | "broad" | undefined;
331
+ relevance_paths?: string[] | undefined;
332
+ layer?: "personal" | "team" | undefined;
358
333
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
359
334
  maturity?: "draft" | "verified" | "proven" | undefined;
360
335
  layer_reason?: string | undefined;
361
- layer?: "personal" | "team" | undefined;
336
+ tags?: string[] | undefined;
362
337
  }, {
363
338
  description: {
364
339
  summary: string;
@@ -378,10 +353,13 @@ declare const planContextOutputSchema: z.ZodObject<{
378
353
  level: "L0" | "L1" | "L2";
379
354
  required: boolean;
380
355
  selectable: boolean;
356
+ relevance_scope?: "narrow" | "broad" | undefined;
357
+ relevance_paths?: string[] | undefined;
358
+ layer?: "personal" | "team" | undefined;
381
359
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
382
360
  maturity?: "draft" | "verified" | "proven" | undefined;
383
361
  layer_reason?: string | undefined;
384
- layer?: "personal" | "team" | undefined;
362
+ tags?: string[] | undefined;
385
363
  }>, "many">;
386
364
  preflight_diagnostics: z.ZodArray<z.ZodObject<{
387
365
  code: z.ZodLiteral<"missing_description">;
@@ -422,13 +400,14 @@ declare const planContextOutputSchema: z.ZodObject<{
422
400
  level: "L0" | "L1" | "L2";
423
401
  required: boolean;
424
402
  selectable: boolean;
403
+ relevance_scope?: "narrow" | "broad" | undefined;
404
+ relevance_paths?: string[] | undefined;
405
+ layer?: "personal" | "team" | undefined;
425
406
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
426
407
  maturity?: "draft" | "verified" | "proven" | undefined;
427
408
  layer_reason?: string | undefined;
428
- layer?: "personal" | "team" | undefined;
409
+ tags?: string[] | undefined;
429
410
  }[];
430
- required_stable_ids: string[];
431
- ai_selectable_stable_ids: string[];
432
411
  preflight_diagnostics: {
433
412
  code: "missing_description";
434
413
  message: string;
@@ -456,13 +435,14 @@ declare const planContextOutputSchema: z.ZodObject<{
456
435
  level: "L0" | "L1" | "L2";
457
436
  required: boolean;
458
437
  selectable: boolean;
438
+ relevance_scope?: "narrow" | "broad" | undefined;
439
+ relevance_paths?: string[] | undefined;
440
+ layer?: "personal" | "team" | undefined;
459
441
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
460
442
  maturity?: "draft" | "verified" | "proven" | undefined;
461
443
  layer_reason?: string | undefined;
462
- layer?: "personal" | "team" | undefined;
444
+ tags?: string[] | undefined;
463
445
  }[];
464
- required_stable_ids: string[];
465
- ai_selectable_stable_ids: string[];
466
446
  preflight_diagnostics: {
467
447
  code: "missing_description";
468
448
  message: string;
@@ -495,11 +475,8 @@ declare const planContextOutputSchema: z.ZodObject<{
495
475
  target_path: string;
496
476
  path_segments: string[];
497
477
  extension: string;
498
- inferred_domain: string[];
499
478
  known_tech: string[];
500
479
  user_intent: string;
501
- intent_tokens: string[];
502
- impact_hints: string[];
503
480
  detected_entities: string[];
504
481
  };
505
482
  description_index: {
@@ -521,19 +498,14 @@ declare const planContextOutputSchema: z.ZodObject<{
521
498
  level: "L0" | "L1" | "L2";
522
499
  required: boolean;
523
500
  selectable: boolean;
501
+ relevance_scope?: "narrow" | "broad" | undefined;
502
+ relevance_paths?: string[] | undefined;
503
+ layer?: "personal" | "team" | undefined;
524
504
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
525
505
  maturity?: "draft" | "verified" | "proven" | undefined;
526
506
  layer_reason?: string | undefined;
527
- layer?: "personal" | "team" | undefined;
507
+ tags?: string[] | undefined;
528
508
  }[];
529
- required_stable_ids: string[];
530
- ai_selectable_stable_ids: string[];
531
- initial_selected_stable_ids: string[];
532
- selection_policy: {
533
- required_levels: ["L0", "L2"];
534
- ai_selectable_levels: ["L1"];
535
- final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
536
- };
537
509
  }[];
538
510
  revision_hash: string;
539
511
  selection_token: string;
@@ -557,13 +529,14 @@ declare const planContextOutputSchema: z.ZodObject<{
557
529
  level: "L0" | "L1" | "L2";
558
530
  required: boolean;
559
531
  selectable: boolean;
532
+ relevance_scope?: "narrow" | "broad" | undefined;
533
+ relevance_paths?: string[] | undefined;
534
+ layer?: "personal" | "team" | undefined;
560
535
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
561
536
  maturity?: "draft" | "verified" | "proven" | undefined;
562
537
  layer_reason?: string | undefined;
563
- layer?: "personal" | "team" | undefined;
538
+ tags?: string[] | undefined;
564
539
  }[];
565
- required_stable_ids: string[];
566
- ai_selectable_stable_ids: string[];
567
540
  preflight_diagnostics: {
568
541
  code: "missing_description";
569
542
  message: string;
@@ -586,11 +559,8 @@ declare const planContextOutputSchema: z.ZodObject<{
586
559
  target_path: string;
587
560
  path_segments: string[];
588
561
  extension: string;
589
- inferred_domain: string[];
590
562
  known_tech: string[];
591
563
  user_intent: string;
592
- intent_tokens: string[];
593
- impact_hints: string[];
594
564
  detected_entities: string[];
595
565
  };
596
566
  description_index: {
@@ -612,19 +582,14 @@ declare const planContextOutputSchema: z.ZodObject<{
612
582
  level: "L0" | "L1" | "L2";
613
583
  required: boolean;
614
584
  selectable: boolean;
585
+ relevance_scope?: "narrow" | "broad" | undefined;
586
+ relevance_paths?: string[] | undefined;
587
+ layer?: "personal" | "team" | undefined;
615
588
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
616
589
  maturity?: "draft" | "verified" | "proven" | undefined;
617
590
  layer_reason?: string | undefined;
618
- layer?: "personal" | "team" | undefined;
591
+ tags?: string[] | undefined;
619
592
  }[];
620
- required_stable_ids: string[];
621
- ai_selectable_stable_ids: string[];
622
- initial_selected_stable_ids: string[];
623
- selection_policy: {
624
- required_levels: ["L0", "L2"];
625
- ai_selectable_levels: ["L1"];
626
- final_fetch_rule: "required_stable_ids + ai_selected_l1_stable_ids";
627
- };
628
593
  }[];
629
594
  revision_hash: string;
630
595
  selection_token: string;
@@ -648,13 +613,14 @@ declare const planContextOutputSchema: z.ZodObject<{
648
613
  level: "L0" | "L1" | "L2";
649
614
  required: boolean;
650
615
  selectable: boolean;
616
+ relevance_scope?: "narrow" | "broad" | undefined;
617
+ relevance_paths?: string[] | undefined;
618
+ layer?: "personal" | "team" | undefined;
651
619
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
652
620
  maturity?: "draft" | "verified" | "proven" | undefined;
653
621
  layer_reason?: string | undefined;
654
- layer?: "personal" | "team" | undefined;
622
+ tags?: string[] | undefined;
655
623
  }[];
656
- required_stable_ids: string[];
657
- ai_selectable_stable_ids: string[];
658
624
  preflight_diagnostics: {
659
625
  code: "missing_description";
660
626
  message: string;
@@ -677,7 +643,67 @@ declare const planContextAnnotations: {
677
643
  readonly openWorldHint: false;
678
644
  readonly title: "Plan rule context";
679
645
  };
680
- declare const getRulesInputSchema: z.ZodObject<{
646
+ declare const planContextHintNarrowEntrySchema: z.ZodObject<{
647
+ id: z.ZodString;
648
+ type: z.ZodString;
649
+ maturity: z.ZodString;
650
+ summary: z.ZodString;
651
+ }, "strip", z.ZodTypeAny, {
652
+ type: string;
653
+ summary: string;
654
+ id: string;
655
+ maturity: string;
656
+ }, {
657
+ type: string;
658
+ summary: string;
659
+ id: string;
660
+ maturity: string;
661
+ }>;
662
+ declare const planContextHintOutputSchema: z.ZodObject<{
663
+ version: z.ZodLiteral<1>;
664
+ revision_hash: z.ZodString;
665
+ target_paths: z.ZodArray<z.ZodString, "many">;
666
+ narrow: z.ZodArray<z.ZodObject<{
667
+ id: z.ZodString;
668
+ type: z.ZodString;
669
+ maturity: z.ZodString;
670
+ summary: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ type: string;
673
+ summary: string;
674
+ id: string;
675
+ maturity: string;
676
+ }, {
677
+ type: string;
678
+ summary: string;
679
+ id: string;
680
+ maturity: string;
681
+ }>, "many">;
682
+ broad_count: z.ZodNumber;
683
+ }, "strip", z.ZodTypeAny, {
684
+ narrow: {
685
+ type: string;
686
+ summary: string;
687
+ id: string;
688
+ maturity: string;
689
+ }[];
690
+ target_paths: string[];
691
+ revision_hash: string;
692
+ version: 1;
693
+ broad_count: number;
694
+ }, {
695
+ narrow: {
696
+ type: string;
697
+ summary: string;
698
+ id: string;
699
+ maturity: string;
700
+ }[];
701
+ target_paths: string[];
702
+ revision_hash: string;
703
+ version: 1;
704
+ broad_count: number;
705
+ }>;
706
+ declare const getKnowledgeInputSchema: z.ZodObject<{
681
707
  path: z.ZodString;
682
708
  client_hash: z.ZodOptional<z.ZodString>;
683
709
  correlation_id: z.ZodOptional<z.ZodString>;
@@ -693,7 +719,7 @@ declare const getRulesInputSchema: z.ZodObject<{
693
719
  correlation_id?: string | undefined;
694
720
  session_id?: string | undefined;
695
721
  }>;
696
- declare const getRulesOutputSchema: z.ZodObject<{
722
+ declare const getKnowledgeOutputSchema: z.ZodObject<{
697
723
  revision_hash: z.ZodString;
698
724
  stale: z.ZodBoolean;
699
725
  rules: z.ZodObject<{
@@ -848,25 +874,27 @@ declare const getRulesOutputSchema: z.ZodObject<{
848
874
  line?: number | undefined;
849
875
  }[] | undefined;
850
876
  }>;
851
- declare const getRulesAnnotations: {
877
+ declare const getKnowledgeAnnotations: {
852
878
  readonly readOnlyHint: true;
853
879
  readonly idempotentHint: true;
854
880
  readonly destructiveHint: false;
855
881
  readonly openWorldHint: false;
856
882
  readonly title: "Get rule content";
857
883
  };
858
- declare const ruleSectionsInputSchema: z.ZodObject<{
884
+ declare const knowledgeSectionsInputSchema: z.ZodObject<{
859
885
  selection_token: z.ZodString;
860
886
  sections: z.ZodArray<z.ZodEnum<["MISSION_STATEMENT", "MANDATORY_INJECTION", "BUSINESS_LOGIC_CHUNKS", "CONTEXT_INFO"]>, "many">;
861
887
  ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
862
888
  ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
863
889
  correlation_id: z.ZodOptional<z.ZodString>;
864
890
  session_id: z.ZodOptional<z.ZodString>;
891
+ client_hash: z.ZodOptional<z.ZodString>;
865
892
  }, "strip", z.ZodTypeAny, {
866
893
  selection_token: string;
867
894
  sections: ("MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO")[];
868
895
  ai_selected_stable_ids: string[];
869
896
  ai_selection_reasons: Record<string, string>;
897
+ client_hash?: string | undefined;
870
898
  correlation_id?: string | undefined;
871
899
  session_id?: string | undefined;
872
900
  }, {
@@ -874,10 +902,11 @@ declare const ruleSectionsInputSchema: z.ZodObject<{
874
902
  sections: ("MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO")[];
875
903
  ai_selected_stable_ids: string[];
876
904
  ai_selection_reasons: Record<string, string>;
905
+ client_hash?: string | undefined;
877
906
  correlation_id?: string | undefined;
878
907
  session_id?: string | undefined;
879
908
  }>;
880
- declare const ruleSectionsOutputSchema: z.ZodObject<{
909
+ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
881
910
  revision_hash: z.ZodString;
882
911
  precedence: z.ZodTuple<[z.ZodLiteral<"L2">, z.ZodLiteral<"L1">, z.ZodLiteral<"L0">], null>;
883
912
  selected_stable_ids: z.ZodArray<z.ZodString, "many">;
@@ -931,6 +960,13 @@ declare const ruleSectionsOutputSchema: z.ZodObject<{
931
960
  stable_id: string;
932
961
  severity: "warn";
933
962
  }>]>, "many">;
963
+ redirect_to: z.ZodOptional<z.ZodObject<{
964
+ stable_id: z.ZodString;
965
+ }, "strip", z.ZodTypeAny, {
966
+ stable_id: string;
967
+ }, {
968
+ stable_id: string;
969
+ }>>;
934
970
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
935
971
  code: z.ZodString;
936
972
  file: z.ZodString;
@@ -975,6 +1011,9 @@ declare const ruleSectionsOutputSchema: z.ZodObject<{
975
1011
  action_hint: string;
976
1012
  line?: number | undefined;
977
1013
  }[] | undefined;
1014
+ redirect_to?: {
1015
+ stable_id: string;
1016
+ } | undefined;
978
1017
  }, {
979
1018
  revision_hash: string;
980
1019
  rules: {
@@ -1003,14 +1042,556 @@ declare const ruleSectionsOutputSchema: z.ZodObject<{
1003
1042
  action_hint: string;
1004
1043
  line?: number | undefined;
1005
1044
  }[] | undefined;
1045
+ redirect_to?: {
1046
+ stable_id: string;
1047
+ } | undefined;
1006
1048
  }>;
1007
- declare const ruleSectionsAnnotations: {
1049
+ declare const knowledgeSectionsAnnotations: {
1008
1050
  readonly readOnlyHint: true;
1009
1051
  readonly idempotentHint: true;
1010
1052
  readonly destructiveHint: false;
1011
1053
  readonly openWorldHint: false;
1012
1054
  readonly title: "Filter rule sections";
1013
1055
  };
1056
+ declare const ProposedReasonSchema: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1057
+ type ProposedReason = z.infer<typeof ProposedReasonSchema>;
1058
+ declare const PROPOSED_REASON_DESCRIPTIONS: Record<ProposedReason, string>;
1059
+ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1060
+ source_sessions: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
1061
+ source_session: z.ZodOptional<z.ZodString>;
1062
+ recent_paths: z.ZodArray<z.ZodString, "many">;
1063
+ user_messages_summary: z.ZodString;
1064
+ type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1065
+ slug: z.ZodString;
1066
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1067
+ proposed_reason: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1068
+ session_context: z.ZodString;
1069
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1070
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1073
+ session_context: string;
1074
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1075
+ recent_paths: string[];
1076
+ user_messages_summary: string;
1077
+ slug: string;
1078
+ relevance_scope?: "narrow" | "broad" | undefined;
1079
+ relevance_paths?: string[] | undefined;
1080
+ source_sessions?: string[] | undefined;
1081
+ layer?: "personal" | "team" | undefined;
1082
+ source_session?: string | undefined;
1083
+ }, {
1084
+ proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1085
+ session_context: string;
1086
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1087
+ recent_paths: string[];
1088
+ user_messages_summary: string;
1089
+ slug: string;
1090
+ relevance_scope?: "narrow" | "broad" | undefined;
1091
+ relevance_paths?: string[] | undefined;
1092
+ source_sessions?: unknown;
1093
+ layer?: "personal" | "team" | undefined;
1094
+ source_session?: string | undefined;
1095
+ }>, {
1096
+ proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1097
+ session_context: string;
1098
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1099
+ recent_paths: string[];
1100
+ user_messages_summary: string;
1101
+ slug: string;
1102
+ relevance_scope?: "narrow" | "broad" | undefined;
1103
+ relevance_paths?: string[] | undefined;
1104
+ source_sessions?: string[] | undefined;
1105
+ layer?: "personal" | "team" | undefined;
1106
+ source_session?: string | undefined;
1107
+ }, {
1108
+ proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1109
+ session_context: string;
1110
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1111
+ recent_paths: string[];
1112
+ user_messages_summary: string;
1113
+ slug: string;
1114
+ relevance_scope?: "narrow" | "broad" | undefined;
1115
+ relevance_paths?: string[] | undefined;
1116
+ source_sessions?: unknown;
1117
+ layer?: "personal" | "team" | undefined;
1118
+ source_session?: string | undefined;
1119
+ }>;
1120
+ declare const FabExtractKnowledgeInputShape: {
1121
+ source_sessions: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
1122
+ source_session: z.ZodOptional<z.ZodString>;
1123
+ recent_paths: z.ZodArray<z.ZodString, "many">;
1124
+ user_messages_summary: z.ZodString;
1125
+ type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1126
+ slug: z.ZodString;
1127
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1128
+ proposed_reason: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1129
+ session_context: z.ZodString;
1130
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1131
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1132
+ };
1133
+ type FabExtractKnowledgeInput = z.infer<typeof FabExtractKnowledgeInputSchema>;
1134
+ declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
1135
+ pending_path: z.ZodString;
1136
+ idempotency_key: z.ZodString;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ pending_path: string;
1139
+ idempotency_key: string;
1140
+ }, {
1141
+ pending_path: string;
1142
+ idempotency_key: string;
1143
+ }>;
1144
+ type FabExtractKnowledgeOutput = z.infer<typeof FabExtractKnowledgeOutputSchema>;
1145
+ declare const fabExtractKnowledgeAnnotations: {
1146
+ readonly readOnlyHint: false;
1147
+ readonly idempotentHint: true;
1148
+ readonly destructiveHint: false;
1149
+ readonly openWorldHint: false;
1150
+ readonly title: "Extract pending knowledge entry";
1151
+ };
1152
+ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1153
+ action: z.ZodLiteral<"list">;
1154
+ filters: z.ZodOptional<z.ZodObject<{
1155
+ type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1156
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
1157
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1158
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1159
+ created_after: z.ZodOptional<z.ZodString>;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ layer?: "personal" | "team" | "both" | undefined;
1162
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1163
+ maturity?: "draft" | "verified" | "proven" | undefined;
1164
+ tags?: string[] | undefined;
1165
+ created_after?: string | undefined;
1166
+ }, {
1167
+ layer?: "personal" | "team" | "both" | undefined;
1168
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1169
+ maturity?: "draft" | "verified" | "proven" | undefined;
1170
+ tags?: string[] | undefined;
1171
+ created_after?: string | undefined;
1172
+ }>>;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ action: "list";
1175
+ filters?: {
1176
+ layer?: "personal" | "team" | "both" | undefined;
1177
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1178
+ maturity?: "draft" | "verified" | "proven" | undefined;
1179
+ tags?: string[] | undefined;
1180
+ created_after?: string | undefined;
1181
+ } | undefined;
1182
+ }, {
1183
+ action: "list";
1184
+ filters?: {
1185
+ layer?: "personal" | "team" | "both" | undefined;
1186
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1187
+ maturity?: "draft" | "verified" | "proven" | undefined;
1188
+ tags?: string[] | undefined;
1189
+ created_after?: string | undefined;
1190
+ } | undefined;
1191
+ }>, z.ZodObject<{
1192
+ action: z.ZodLiteral<"approve">;
1193
+ pending_paths: z.ZodArray<z.ZodString, "many">;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ action: "approve";
1196
+ pending_paths: string[];
1197
+ }, {
1198
+ action: "approve";
1199
+ pending_paths: string[];
1200
+ }>, z.ZodObject<{
1201
+ action: z.ZodLiteral<"reject">;
1202
+ pending_paths: z.ZodArray<z.ZodString, "many">;
1203
+ reason: z.ZodString;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ action: "reject";
1206
+ pending_paths: string[];
1207
+ reason: string;
1208
+ }, {
1209
+ action: "reject";
1210
+ pending_paths: string[];
1211
+ reason: string;
1212
+ }>, z.ZodObject<{
1213
+ action: z.ZodLiteral<"modify">;
1214
+ pending_path: z.ZodString;
1215
+ changes: z.ZodObject<{
1216
+ title: z.ZodOptional<z.ZodString>;
1217
+ summary: z.ZodOptional<z.ZodString>;
1218
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1219
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1220
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1221
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1222
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ relevance_scope?: "narrow" | "broad" | undefined;
1225
+ relevance_paths?: string[] | undefined;
1226
+ layer?: "personal" | "team" | undefined;
1227
+ summary?: string | undefined;
1228
+ maturity?: "draft" | "verified" | "proven" | undefined;
1229
+ tags?: string[] | undefined;
1230
+ title?: string | undefined;
1231
+ }, {
1232
+ relevance_scope?: "narrow" | "broad" | undefined;
1233
+ relevance_paths?: string[] | undefined;
1234
+ layer?: "personal" | "team" | undefined;
1235
+ summary?: string | undefined;
1236
+ maturity?: "draft" | "verified" | "proven" | undefined;
1237
+ tags?: string[] | undefined;
1238
+ title?: string | undefined;
1239
+ }>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ pending_path: string;
1242
+ action: "modify";
1243
+ changes: {
1244
+ relevance_scope?: "narrow" | "broad" | undefined;
1245
+ relevance_paths?: string[] | undefined;
1246
+ layer?: "personal" | "team" | undefined;
1247
+ summary?: string | undefined;
1248
+ maturity?: "draft" | "verified" | "proven" | undefined;
1249
+ tags?: string[] | undefined;
1250
+ title?: string | undefined;
1251
+ };
1252
+ }, {
1253
+ pending_path: string;
1254
+ action: "modify";
1255
+ changes: {
1256
+ relevance_scope?: "narrow" | "broad" | undefined;
1257
+ relevance_paths?: string[] | undefined;
1258
+ layer?: "personal" | "team" | undefined;
1259
+ summary?: string | undefined;
1260
+ maturity?: "draft" | "verified" | "proven" | undefined;
1261
+ tags?: string[] | undefined;
1262
+ title?: string | undefined;
1263
+ };
1264
+ }>, z.ZodObject<{
1265
+ action: z.ZodLiteral<"search">;
1266
+ query: z.ZodString;
1267
+ filters: z.ZodOptional<z.ZodObject<{
1268
+ type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1269
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
1270
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1271
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1272
+ created_after: z.ZodOptional<z.ZodString>;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ layer?: "personal" | "team" | "both" | undefined;
1275
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1276
+ maturity?: "draft" | "verified" | "proven" | undefined;
1277
+ tags?: string[] | undefined;
1278
+ created_after?: string | undefined;
1279
+ }, {
1280
+ layer?: "personal" | "team" | "both" | undefined;
1281
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1282
+ maturity?: "draft" | "verified" | "proven" | undefined;
1283
+ tags?: string[] | undefined;
1284
+ created_after?: string | undefined;
1285
+ }>>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ action: "search";
1288
+ query: string;
1289
+ filters?: {
1290
+ layer?: "personal" | "team" | "both" | undefined;
1291
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1292
+ maturity?: "draft" | "verified" | "proven" | undefined;
1293
+ tags?: string[] | undefined;
1294
+ created_after?: string | undefined;
1295
+ } | undefined;
1296
+ }, {
1297
+ action: "search";
1298
+ query: string;
1299
+ filters?: {
1300
+ layer?: "personal" | "team" | "both" | undefined;
1301
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1302
+ maturity?: "draft" | "verified" | "proven" | undefined;
1303
+ tags?: string[] | undefined;
1304
+ created_after?: string | undefined;
1305
+ } | undefined;
1306
+ }>, z.ZodObject<{
1307
+ action: z.ZodLiteral<"defer">;
1308
+ pending_paths: z.ZodArray<z.ZodString, "many">;
1309
+ until: z.ZodOptional<z.ZodString>;
1310
+ reason: z.ZodOptional<z.ZodString>;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ action: "defer";
1313
+ pending_paths: string[];
1314
+ reason?: string | undefined;
1315
+ until?: string | undefined;
1316
+ }, {
1317
+ action: "defer";
1318
+ pending_paths: string[];
1319
+ reason?: string | undefined;
1320
+ until?: string | undefined;
1321
+ }>]>;
1322
+ type FabReviewInput = z.infer<typeof FabReviewInputSchema>;
1323
+ declare const FabReviewInputShape: {
1324
+ readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "search", "defer"]>;
1325
+ readonly filters: z.ZodOptional<z.ZodObject<{
1326
+ type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1327
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
1328
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1329
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1330
+ created_after: z.ZodOptional<z.ZodString>;
1331
+ }, "strip", z.ZodTypeAny, {
1332
+ layer?: "personal" | "team" | "both" | undefined;
1333
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1334
+ maturity?: "draft" | "verified" | "proven" | undefined;
1335
+ tags?: string[] | undefined;
1336
+ created_after?: string | undefined;
1337
+ }, {
1338
+ layer?: "personal" | "team" | "both" | undefined;
1339
+ type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1340
+ maturity?: "draft" | "verified" | "proven" | undefined;
1341
+ tags?: string[] | undefined;
1342
+ created_after?: string | undefined;
1343
+ }>>;
1344
+ readonly pending_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1345
+ readonly pending_path: z.ZodOptional<z.ZodString>;
1346
+ readonly reason: z.ZodOptional<z.ZodString>;
1347
+ readonly changes: z.ZodOptional<z.ZodObject<{
1348
+ title: z.ZodOptional<z.ZodString>;
1349
+ summary: z.ZodOptional<z.ZodString>;
1350
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1351
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1352
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1353
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1354
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ relevance_scope?: "narrow" | "broad" | undefined;
1357
+ relevance_paths?: string[] | undefined;
1358
+ layer?: "personal" | "team" | undefined;
1359
+ summary?: string | undefined;
1360
+ maturity?: "draft" | "verified" | "proven" | undefined;
1361
+ tags?: string[] | undefined;
1362
+ title?: string | undefined;
1363
+ }, {
1364
+ relevance_scope?: "narrow" | "broad" | undefined;
1365
+ relevance_paths?: string[] | undefined;
1366
+ layer?: "personal" | "team" | undefined;
1367
+ summary?: string | undefined;
1368
+ maturity?: "draft" | "verified" | "proven" | undefined;
1369
+ tags?: string[] | undefined;
1370
+ title?: string | undefined;
1371
+ }>>;
1372
+ readonly query: z.ZodOptional<z.ZodString>;
1373
+ readonly until: z.ZodOptional<z.ZodString>;
1374
+ };
1375
+ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1376
+ action: z.ZodLiteral<"list">;
1377
+ items: z.ZodArray<z.ZodObject<{
1378
+ pending_path: z.ZodString;
1379
+ type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1380
+ layer: z.ZodEnum<["team", "personal"]>;
1381
+ maturity: z.ZodEnum<["draft", "verified", "proven"]>;
1382
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1383
+ title: z.ZodOptional<z.ZodString>;
1384
+ summary: z.ZodOptional<z.ZodString>;
1385
+ origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ layer: "personal" | "team";
1388
+ pending_path: string;
1389
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1390
+ maturity: "draft" | "verified" | "proven";
1391
+ summary?: string | undefined;
1392
+ tags?: string[] | undefined;
1393
+ title?: string | undefined;
1394
+ origin?: "personal" | "team" | undefined;
1395
+ }, {
1396
+ layer: "personal" | "team";
1397
+ pending_path: string;
1398
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1399
+ maturity: "draft" | "verified" | "proven";
1400
+ summary?: string | undefined;
1401
+ tags?: string[] | undefined;
1402
+ title?: string | undefined;
1403
+ origin?: "personal" | "team" | undefined;
1404
+ }>, "many">;
1405
+ }, "strip", z.ZodTypeAny, {
1406
+ action: "list";
1407
+ items: {
1408
+ layer: "personal" | "team";
1409
+ pending_path: string;
1410
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1411
+ maturity: "draft" | "verified" | "proven";
1412
+ summary?: string | undefined;
1413
+ tags?: string[] | undefined;
1414
+ title?: string | undefined;
1415
+ origin?: "personal" | "team" | undefined;
1416
+ }[];
1417
+ }, {
1418
+ action: "list";
1419
+ items: {
1420
+ layer: "personal" | "team";
1421
+ pending_path: string;
1422
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1423
+ maturity: "draft" | "verified" | "proven";
1424
+ summary?: string | undefined;
1425
+ tags?: string[] | undefined;
1426
+ title?: string | undefined;
1427
+ origin?: "personal" | "team" | undefined;
1428
+ }[];
1429
+ }>, z.ZodObject<{
1430
+ action: z.ZodLiteral<"approve">;
1431
+ approved: z.ZodArray<z.ZodObject<{
1432
+ pending_path: z.ZodString;
1433
+ stable_id: z.ZodString;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ pending_path: string;
1436
+ stable_id: string;
1437
+ }, {
1438
+ pending_path: string;
1439
+ stable_id: string;
1440
+ }>, "many">;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ approved: {
1443
+ pending_path: string;
1444
+ stable_id: string;
1445
+ }[];
1446
+ action: "approve";
1447
+ }, {
1448
+ approved: {
1449
+ pending_path: string;
1450
+ stable_id: string;
1451
+ }[];
1452
+ action: "approve";
1453
+ }>, z.ZodObject<{
1454
+ action: z.ZodLiteral<"reject">;
1455
+ rejected: z.ZodArray<z.ZodString, "many">;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ action: "reject";
1458
+ rejected: string[];
1459
+ }, {
1460
+ action: "reject";
1461
+ rejected: string[];
1462
+ }>, z.ZodObject<{
1463
+ action: z.ZodLiteral<"modify">;
1464
+ pending_path: z.ZodString;
1465
+ prior_stable_id: z.ZodOptional<z.ZodString>;
1466
+ new_stable_id: z.ZodOptional<z.ZodString>;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ pending_path: string;
1469
+ action: "modify";
1470
+ prior_stable_id?: string | undefined;
1471
+ new_stable_id?: string | undefined;
1472
+ }, {
1473
+ pending_path: string;
1474
+ action: "modify";
1475
+ prior_stable_id?: string | undefined;
1476
+ new_stable_id?: string | undefined;
1477
+ }>, z.ZodObject<{
1478
+ action: z.ZodLiteral<"search">;
1479
+ items: z.ZodArray<z.ZodObject<{
1480
+ pending_path: z.ZodString;
1481
+ type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1482
+ layer: z.ZodEnum<["team", "personal"]>;
1483
+ maturity: z.ZodEnum<["draft", "verified", "proven"]>;
1484
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1485
+ title: z.ZodOptional<z.ZodString>;
1486
+ summary: z.ZodOptional<z.ZodString>;
1487
+ origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ layer: "personal" | "team";
1490
+ pending_path: string;
1491
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1492
+ maturity: "draft" | "verified" | "proven";
1493
+ summary?: string | undefined;
1494
+ tags?: string[] | undefined;
1495
+ title?: string | undefined;
1496
+ origin?: "personal" | "team" | undefined;
1497
+ }, {
1498
+ layer: "personal" | "team";
1499
+ pending_path: string;
1500
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1501
+ maturity: "draft" | "verified" | "proven";
1502
+ summary?: string | undefined;
1503
+ tags?: string[] | undefined;
1504
+ title?: string | undefined;
1505
+ origin?: "personal" | "team" | undefined;
1506
+ }>, "many">;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ action: "search";
1509
+ items: {
1510
+ layer: "personal" | "team";
1511
+ pending_path: string;
1512
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1513
+ maturity: "draft" | "verified" | "proven";
1514
+ summary?: string | undefined;
1515
+ tags?: string[] | undefined;
1516
+ title?: string | undefined;
1517
+ origin?: "personal" | "team" | undefined;
1518
+ }[];
1519
+ }, {
1520
+ action: "search";
1521
+ items: {
1522
+ layer: "personal" | "team";
1523
+ pending_path: string;
1524
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1525
+ maturity: "draft" | "verified" | "proven";
1526
+ summary?: string | undefined;
1527
+ tags?: string[] | undefined;
1528
+ title?: string | undefined;
1529
+ origin?: "personal" | "team" | undefined;
1530
+ }[];
1531
+ }>, z.ZodObject<{
1532
+ action: z.ZodLiteral<"defer">;
1533
+ deferred: z.ZodArray<z.ZodString, "many">;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ action: "defer";
1536
+ deferred: string[];
1537
+ }, {
1538
+ action: "defer";
1539
+ deferred: string[];
1540
+ }>]>;
1541
+ type FabReviewOutput = z.infer<typeof FabReviewOutputSchema>;
1542
+ declare const FabReviewOutputShape: {
1543
+ readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "search", "defer"]>;
1544
+ readonly items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1545
+ pending_path: z.ZodString;
1546
+ type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1547
+ layer: z.ZodEnum<["team", "personal"]>;
1548
+ maturity: z.ZodEnum<["draft", "verified", "proven"]>;
1549
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1550
+ title: z.ZodOptional<z.ZodString>;
1551
+ summary: z.ZodOptional<z.ZodString>;
1552
+ origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ layer: "personal" | "team";
1555
+ pending_path: string;
1556
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1557
+ maturity: "draft" | "verified" | "proven";
1558
+ summary?: string | undefined;
1559
+ tags?: string[] | undefined;
1560
+ title?: string | undefined;
1561
+ origin?: "personal" | "team" | undefined;
1562
+ }, {
1563
+ layer: "personal" | "team";
1564
+ pending_path: string;
1565
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1566
+ maturity: "draft" | "verified" | "proven";
1567
+ summary?: string | undefined;
1568
+ tags?: string[] | undefined;
1569
+ title?: string | undefined;
1570
+ origin?: "personal" | "team" | undefined;
1571
+ }>, "many">>;
1572
+ readonly approved: z.ZodOptional<z.ZodArray<z.ZodObject<{
1573
+ pending_path: z.ZodString;
1574
+ stable_id: z.ZodString;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ pending_path: string;
1577
+ stable_id: string;
1578
+ }, {
1579
+ pending_path: string;
1580
+ stable_id: string;
1581
+ }>, "many">>;
1582
+ readonly rejected: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1583
+ readonly pending_path: z.ZodOptional<z.ZodString>;
1584
+ readonly prior_stable_id: z.ZodOptional<z.ZodString>;
1585
+ readonly new_stable_id: z.ZodOptional<z.ZodString>;
1586
+ readonly deferred: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1587
+ };
1588
+ declare const fabReviewAnnotations: {
1589
+ readonly readOnlyHint: false;
1590
+ readonly idempotentHint: false;
1591
+ readonly destructiveHint: false;
1592
+ readonly openWorldHint: false;
1593
+ readonly title: "Review pending knowledge entries";
1594
+ };
1014
1595
  declare const ledgerSourceSchema: z.ZodEnum<["ai", "human"]>;
1015
1596
  declare const ledgerQuerySchema: z.ZodObject<{
1016
1597
  source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
@@ -1087,18 +1668,18 @@ declare const KnowledgeEntryFrontmatterSchema: z.ZodObject<{
1087
1668
  layer_reason: z.ZodOptional<z.ZodString>;
1088
1669
  created_at: z.ZodString;
1089
1670
  }, "strip", z.ZodTypeAny, {
1671
+ layer: "personal" | "team";
1090
1672
  type: "model" | "decision" | "guideline" | "pitfall" | "process";
1091
1673
  id: string;
1092
1674
  maturity: "draft" | "verified" | "proven";
1093
1675
  created_at: string;
1094
- layer: "personal" | "team";
1095
1676
  layer_reason?: string | undefined;
1096
1677
  }, {
1678
+ layer: "personal" | "team";
1097
1679
  type: "model" | "decision" | "guideline" | "pitfall" | "process";
1098
1680
  id: string;
1099
1681
  maturity: "draft" | "verified" | "proven";
1100
1682
  created_at: string;
1101
- layer: "personal" | "team";
1102
1683
  layer_reason?: string | undefined;
1103
1684
  }>;
1104
1685
  type KnowledgeEntryFrontmatter = z.infer<typeof KnowledgeEntryFrontmatterSchema>;
@@ -1117,4 +1698,4 @@ declare function parseKnowledgeId(id: string): {
1117
1698
  counter: number;
1118
1699
  } | null;
1119
1700
 
1120
- export { KNOWLEDGE_TYPE_CODES, type KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, type KnowledgeType, type KnowledgeTypeCode, KnowledgeTypeSchema, type Layer, LayerSchema, type Maturity, MaturitySchema, type StableId, StableIdSchema, annotateIntentRequestSchema, formatKnowledgeId, getRulesAnnotations, getRulesInputSchema, getRulesOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextInputSchema, planContextOutputSchema, ruleSectionsAnnotations, ruleSectionsInputSchema, ruleSectionsOutputSchema, structuredWarningSchema };
1701
+ export { type FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, type FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, type FabReviewInput, FabReviewInputSchema, FabReviewInputShape, type FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, type KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, type KnowledgeType, type KnowledgeTypeCode, KnowledgeTypeSchema, type Layer, LayerSchema, type Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, getKnowledgeAnnotations, getKnowledgeInputSchema, getKnowledgeOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema };