@fenglimg/fabric-shared 2.2.0 → 2.3.0-rc.10

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.
@@ -91,74 +91,66 @@ declare const planContextOutputSchema: z.ZodObject<{
91
91
  description: z.ZodObject<{
92
92
  summary: z.ZodString;
93
93
  intent_clues: z.ZodArray<z.ZodString, "many">;
94
- tech_stack: z.ZodArray<z.ZodString, "many">;
95
- impact: z.ZodArray<z.ZodString, "many">;
94
+ tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
96
  must_read_if: z.ZodString;
97
- entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
97
  id: z.ZodOptional<z.ZodString>;
99
98
  knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
100
99
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
101
- knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
102
- layer_reason: z.ZodOptional<z.ZodString>;
103
100
  created_at: z.ZodOptional<z.ZodString>;
104
101
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
105
102
  relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
106
103
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
104
  related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
105
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
108
106
  }, "strip", z.ZodTypeAny, {
109
107
  summary: string;
110
108
  intent_clues: string[];
111
- tech_stack: string[];
112
- impact: string[];
113
109
  must_read_if: string;
114
110
  created_at?: string | undefined;
115
111
  id?: string | undefined;
116
112
  relevance_scope?: "narrow" | "broad" | undefined;
117
113
  relevance_paths?: string[] | undefined;
118
- entities?: string[] | undefined;
114
+ tech_stack?: string[] | undefined;
115
+ impact?: string[] | undefined;
119
116
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
120
117
  maturity?: "draft" | "verified" | "proven" | undefined;
121
- knowledge_layer?: "personal" | "team" | undefined;
122
- layer_reason?: string | undefined;
123
118
  tags?: string[] | undefined;
124
119
  related?: string[] | undefined;
120
+ aliases?: string[] | undefined;
125
121
  }, {
126
122
  summary: string;
127
123
  intent_clues: string[];
128
- tech_stack: string[];
129
- impact: string[];
130
124
  must_read_if: string;
131
125
  created_at?: string | undefined;
132
126
  id?: string | undefined;
133
127
  relevance_scope?: "narrow" | "broad" | undefined;
134
128
  relevance_paths?: string[] | undefined;
135
- entities?: string[] | undefined;
129
+ tech_stack?: string[] | undefined;
130
+ impact?: string[] | undefined;
136
131
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
137
132
  maturity?: "draft" | "verified" | "proven" | undefined;
138
- knowledge_layer?: "personal" | "team" | undefined;
139
- layer_reason?: string | undefined;
140
133
  tags?: string[] | undefined;
141
134
  related?: string[] | undefined;
135
+ aliases?: string[] | undefined;
142
136
  }>;
143
137
  always_active: z.ZodOptional<z.ZodBoolean>;
144
138
  }, "strip", z.ZodTypeAny, {
145
139
  description: {
146
140
  summary: string;
147
141
  intent_clues: string[];
148
- tech_stack: string[];
149
- impact: string[];
150
142
  must_read_if: string;
151
143
  created_at?: string | undefined;
152
144
  id?: string | undefined;
153
145
  relevance_scope?: "narrow" | "broad" | undefined;
154
146
  relevance_paths?: string[] | undefined;
155
- entities?: string[] | undefined;
147
+ tech_stack?: string[] | undefined;
148
+ impact?: string[] | undefined;
156
149
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
157
150
  maturity?: "draft" | "verified" | "proven" | undefined;
158
- knowledge_layer?: "personal" | "team" | undefined;
159
- layer_reason?: string | undefined;
160
151
  tags?: string[] | undefined;
161
152
  related?: string[] | undefined;
153
+ aliases?: string[] | undefined;
162
154
  };
163
155
  stable_id: string;
164
156
  always_active?: boolean | undefined;
@@ -166,25 +158,32 @@ declare const planContextOutputSchema: z.ZodObject<{
166
158
  description: {
167
159
  summary: string;
168
160
  intent_clues: string[];
169
- tech_stack: string[];
170
- impact: string[];
171
161
  must_read_if: string;
172
162
  created_at?: string | undefined;
173
163
  id?: string | undefined;
174
164
  relevance_scope?: "narrow" | "broad" | undefined;
175
165
  relevance_paths?: string[] | undefined;
176
- entities?: string[] | undefined;
166
+ tech_stack?: string[] | undefined;
167
+ impact?: string[] | undefined;
177
168
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
178
169
  maturity?: "draft" | "verified" | "proven" | undefined;
179
- knowledge_layer?: "personal" | "team" | undefined;
180
- layer_reason?: string | undefined;
181
170
  tags?: string[] | undefined;
182
171
  related?: string[] | undefined;
172
+ aliases?: string[] | undefined;
183
173
  };
184
174
  stable_id: string;
185
175
  always_active?: boolean | undefined;
186
176
  }>, "many">;
187
- omitted_candidate_count: z.ZodOptional<z.ZodNumber>;
177
+ dropped: z.ZodOptional<z.ZodArray<z.ZodObject<{
178
+ id: z.ZodString;
179
+ reason: z.ZodEnum<["retrieval_budget", "payload_budget"]>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ id: string;
182
+ reason: "retrieval_budget" | "payload_budget";
183
+ }, {
184
+ id: string;
185
+ reason: "retrieval_budget" | "payload_budget";
186
+ }>, "many">>;
188
187
  preflight_diagnostics: z.ZodArray<z.ZodObject<{
189
188
  code: z.ZodEnum<["missing_description", "empty_shell_suppressed"]>;
190
189
  severity: z.ZodLiteral<"warn">;
@@ -243,20 +242,18 @@ declare const planContextOutputSchema: z.ZodObject<{
243
242
  description: {
244
243
  summary: string;
245
244
  intent_clues: string[];
246
- tech_stack: string[];
247
- impact: string[];
248
245
  must_read_if: string;
249
246
  created_at?: string | undefined;
250
247
  id?: string | undefined;
251
248
  relevance_scope?: "narrow" | "broad" | undefined;
252
249
  relevance_paths?: string[] | undefined;
253
- entities?: string[] | undefined;
250
+ tech_stack?: string[] | undefined;
251
+ impact?: string[] | undefined;
254
252
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
255
253
  maturity?: "draft" | "verified" | "proven" | undefined;
256
- knowledge_layer?: "personal" | "team" | undefined;
257
- layer_reason?: string | undefined;
258
254
  tags?: string[] | undefined;
259
255
  related?: string[] | undefined;
256
+ aliases?: string[] | undefined;
260
257
  };
261
258
  stable_id: string;
262
259
  always_active?: boolean | undefined;
@@ -269,7 +266,10 @@ declare const planContextOutputSchema: z.ZodObject<{
269
266
  stable_ids?: string[] | undefined;
270
267
  }[];
271
268
  intent?: string | undefined;
272
- omitted_candidate_count?: number | undefined;
269
+ dropped?: {
270
+ id: string;
271
+ reason: "retrieval_budget" | "payload_budget";
272
+ }[] | undefined;
273
273
  warnings?: {
274
274
  code: string;
275
275
  file: string;
@@ -297,20 +297,18 @@ declare const planContextOutputSchema: z.ZodObject<{
297
297
  description: {
298
298
  summary: string;
299
299
  intent_clues: string[];
300
- tech_stack: string[];
301
- impact: string[];
302
300
  must_read_if: string;
303
301
  created_at?: string | undefined;
304
302
  id?: string | undefined;
305
303
  relevance_scope?: "narrow" | "broad" | undefined;
306
304
  relevance_paths?: string[] | undefined;
307
- entities?: string[] | undefined;
305
+ tech_stack?: string[] | undefined;
306
+ impact?: string[] | undefined;
308
307
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
309
308
  maturity?: "draft" | "verified" | "proven" | undefined;
310
- knowledge_layer?: "personal" | "team" | undefined;
311
- layer_reason?: string | undefined;
312
309
  tags?: string[] | undefined;
313
310
  related?: string[] | undefined;
311
+ aliases?: string[] | undefined;
314
312
  };
315
313
  stable_id: string;
316
314
  always_active?: boolean | undefined;
@@ -323,7 +321,10 @@ declare const planContextOutputSchema: z.ZodObject<{
323
321
  stable_ids?: string[] | undefined;
324
322
  }[];
325
323
  intent?: string | undefined;
326
- omitted_candidate_count?: number | undefined;
324
+ dropped?: {
325
+ id: string;
326
+ reason: "retrieval_budget" | "payload_budget";
327
+ }[] | undefined;
327
328
  warnings?: {
328
329
  code: string;
329
330
  file: string;
@@ -349,17 +350,20 @@ declare const planContextHintNarrowEntrySchema: z.ZodObject<{
349
350
  maturity: z.ZodString;
350
351
  summary: z.ZodString;
351
352
  must_read_if: z.ZodOptional<z.ZodString>;
353
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
352
354
  }, "strip", z.ZodTypeAny, {
353
355
  type: string;
354
356
  id: string;
355
357
  summary: string;
356
358
  maturity: string;
359
+ impact?: string[] | undefined;
357
360
  must_read_if?: string | undefined;
358
361
  }, {
359
362
  type: string;
360
363
  id: string;
361
364
  summary: string;
362
365
  maturity: string;
366
+ impact?: string[] | undefined;
363
367
  must_read_if?: string | undefined;
364
368
  }>;
365
369
  declare const planContextHintOutputSchema: z.ZodObject<{
@@ -372,17 +376,20 @@ declare const planContextHintOutputSchema: z.ZodObject<{
372
376
  maturity: z.ZodString;
373
377
  summary: z.ZodString;
374
378
  must_read_if: z.ZodOptional<z.ZodString>;
379
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
375
380
  }, "strip", z.ZodTypeAny, {
376
381
  type: string;
377
382
  id: string;
378
383
  summary: string;
379
384
  maturity: string;
385
+ impact?: string[] | undefined;
380
386
  must_read_if?: string | undefined;
381
387
  }, {
382
388
  type: string;
383
389
  id: string;
384
390
  summary: string;
385
391
  maturity: string;
392
+ impact?: string[] | undefined;
386
393
  must_read_if?: string | undefined;
387
394
  }>, "many">;
388
395
  broad_count: z.ZodNumber;
@@ -392,6 +399,7 @@ declare const planContextHintOutputSchema: z.ZodObject<{
392
399
  id: string;
393
400
  summary: string;
394
401
  maturity: string;
402
+ impact?: string[] | undefined;
395
403
  must_read_if?: string | undefined;
396
404
  }[];
397
405
  target_paths: string[];
@@ -404,6 +412,7 @@ declare const planContextHintOutputSchema: z.ZodObject<{
404
412
  id: string;
405
413
  summary: string;
406
414
  maturity: string;
415
+ impact?: string[] | undefined;
407
416
  must_read_if?: string | undefined;
408
417
  }[];
409
418
  target_paths: string[];
@@ -588,158 +597,184 @@ declare const recallOutputSchema: z.ZodObject<{
588
597
  revision_hash: z.ZodString;
589
598
  stale: z.ZodBoolean;
590
599
  entries: z.ZodArray<z.ZodObject<{
591
- path: z.ZodString;
592
- requirement_profile: z.ZodObject<{
593
- target_path: z.ZodString;
594
- known_tech: z.ZodArray<z.ZodString, "many">;
595
- detected_entities: z.ZodArray<z.ZodString, "many">;
596
- }, "strip", z.ZodTypeAny, {
597
- target_path: string;
598
- known_tech: string[];
599
- detected_entities: string[];
600
- }, {
601
- target_path: string;
602
- known_tech: string[];
603
- detected_entities: string[];
604
- }>;
605
- }, "strip", z.ZodTypeAny, {
606
- path: string;
607
- requirement_profile: {
608
- target_path: string;
609
- known_tech: string[];
610
- detected_entities: string[];
611
- };
612
- }, {
613
- path: string;
614
- requirement_profile: {
615
- target_path: string;
616
- known_tech: string[];
617
- detected_entities: string[];
618
- };
619
- }>, "many">;
620
- intent: z.ZodOptional<z.ZodString>;
621
- candidates: z.ZodArray<z.ZodObject<{
622
600
  stable_id: z.ZodString;
601
+ rank: z.ZodNumber;
623
602
  description: z.ZodObject<{
624
603
  summary: z.ZodString;
625
604
  intent_clues: z.ZodArray<z.ZodString, "many">;
626
- tech_stack: z.ZodArray<z.ZodString, "many">;
627
- impact: z.ZodArray<z.ZodString, "many">;
605
+ tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
606
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
628
607
  must_read_if: z.ZodString;
629
- entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
630
608
  id: z.ZodOptional<z.ZodString>;
631
609
  knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
632
610
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
633
- knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
634
- layer_reason: z.ZodOptional<z.ZodString>;
635
611
  created_at: z.ZodOptional<z.ZodString>;
636
612
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
637
613
  relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
638
614
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
639
615
  related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
616
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
640
617
  }, "strip", z.ZodTypeAny, {
641
618
  summary: string;
642
619
  intent_clues: string[];
643
- tech_stack: string[];
644
- impact: string[];
645
620
  must_read_if: string;
646
621
  created_at?: string | undefined;
647
622
  id?: string | undefined;
648
623
  relevance_scope?: "narrow" | "broad" | undefined;
649
624
  relevance_paths?: string[] | undefined;
650
- entities?: string[] | undefined;
625
+ tech_stack?: string[] | undefined;
626
+ impact?: string[] | undefined;
651
627
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
652
628
  maturity?: "draft" | "verified" | "proven" | undefined;
653
- knowledge_layer?: "personal" | "team" | undefined;
654
- layer_reason?: string | undefined;
655
629
  tags?: string[] | undefined;
656
630
  related?: string[] | undefined;
631
+ aliases?: string[] | undefined;
657
632
  }, {
658
633
  summary: string;
659
634
  intent_clues: string[];
660
- tech_stack: string[];
661
- impact: string[];
662
635
  must_read_if: string;
663
636
  created_at?: string | undefined;
664
637
  id?: string | undefined;
665
638
  relevance_scope?: "narrow" | "broad" | undefined;
666
639
  relevance_paths?: string[] | undefined;
667
- entities?: string[] | undefined;
640
+ tech_stack?: string[] | undefined;
641
+ impact?: string[] | undefined;
668
642
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
669
643
  maturity?: "draft" | "verified" | "proven" | undefined;
670
- knowledge_layer?: "personal" | "team" | undefined;
671
- layer_reason?: string | undefined;
672
644
  tags?: string[] | undefined;
673
645
  related?: string[] | undefined;
646
+ aliases?: string[] | undefined;
674
647
  }>;
675
- always_active: z.ZodOptional<z.ZodBoolean>;
648
+ read_path: z.ZodOptional<z.ZodString>;
649
+ store: z.ZodOptional<z.ZodObject<{
650
+ alias: z.ZodString;
651
+ }, "strip", z.ZodTypeAny, {
652
+ alias: string;
653
+ }, {
654
+ alias: string;
655
+ }>>;
656
+ body_in_context: z.ZodOptional<z.ZodBoolean>;
657
+ score: z.ZodOptional<z.ZodNumber>;
658
+ score_breakdown: z.ZodOptional<z.ZodObject<{
659
+ final: z.ZodNumber;
660
+ bm25: z.ZodOptional<z.ZodNumber>;
661
+ bm25_rank: z.ZodOptional<z.ZodNumber>;
662
+ vector: z.ZodOptional<z.ZodNumber>;
663
+ vector_rank: z.ZodOptional<z.ZodNumber>;
664
+ salience: z.ZodNumber;
665
+ recency: z.ZodNumber;
666
+ locality: z.ZodNumber;
667
+ proximity: z.ZodNumber;
668
+ credibility: z.ZodOptional<z.ZodNumber>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ final: number;
671
+ salience: number;
672
+ recency: number;
673
+ locality: number;
674
+ proximity: number;
675
+ bm25?: number | undefined;
676
+ bm25_rank?: number | undefined;
677
+ vector?: number | undefined;
678
+ vector_rank?: number | undefined;
679
+ credibility?: number | undefined;
680
+ }, {
681
+ final: number;
682
+ salience: number;
683
+ recency: number;
684
+ locality: number;
685
+ proximity: number;
686
+ bm25?: number | undefined;
687
+ bm25_rank?: number | undefined;
688
+ vector?: number | undefined;
689
+ vector_rank?: number | undefined;
690
+ credibility?: number | undefined;
691
+ }>>;
676
692
  }, "strip", z.ZodTypeAny, {
677
693
  description: {
678
694
  summary: string;
679
695
  intent_clues: string[];
680
- tech_stack: string[];
681
- impact: string[];
682
696
  must_read_if: string;
683
697
  created_at?: string | undefined;
684
698
  id?: string | undefined;
685
699
  relevance_scope?: "narrow" | "broad" | undefined;
686
700
  relevance_paths?: string[] | undefined;
687
- entities?: string[] | undefined;
701
+ tech_stack?: string[] | undefined;
702
+ impact?: string[] | undefined;
688
703
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
689
704
  maturity?: "draft" | "verified" | "proven" | undefined;
690
- knowledge_layer?: "personal" | "team" | undefined;
691
- layer_reason?: string | undefined;
692
705
  tags?: string[] | undefined;
693
706
  related?: string[] | undefined;
707
+ aliases?: string[] | undefined;
694
708
  };
695
709
  stable_id: string;
696
- always_active?: boolean | undefined;
710
+ rank: number;
711
+ store?: {
712
+ alias: string;
713
+ } | undefined;
714
+ read_path?: string | undefined;
715
+ body_in_context?: boolean | undefined;
716
+ score?: number | undefined;
717
+ score_breakdown?: {
718
+ final: number;
719
+ salience: number;
720
+ recency: number;
721
+ locality: number;
722
+ proximity: number;
723
+ bm25?: number | undefined;
724
+ bm25_rank?: number | undefined;
725
+ vector?: number | undefined;
726
+ vector_rank?: number | undefined;
727
+ credibility?: number | undefined;
728
+ } | undefined;
697
729
  }, {
698
730
  description: {
699
731
  summary: string;
700
732
  intent_clues: string[];
701
- tech_stack: string[];
702
- impact: string[];
703
733
  must_read_if: string;
704
734
  created_at?: string | undefined;
705
735
  id?: string | undefined;
706
736
  relevance_scope?: "narrow" | "broad" | undefined;
707
737
  relevance_paths?: string[] | undefined;
708
- entities?: string[] | undefined;
738
+ tech_stack?: string[] | undefined;
739
+ impact?: string[] | undefined;
709
740
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
710
741
  maturity?: "draft" | "verified" | "proven" | undefined;
711
- knowledge_layer?: "personal" | "team" | undefined;
712
- layer_reason?: string | undefined;
713
742
  tags?: string[] | undefined;
714
743
  related?: string[] | undefined;
744
+ aliases?: string[] | undefined;
715
745
  };
716
746
  stable_id: string;
717
- always_active?: boolean | undefined;
718
- }>, "many">;
719
- paths: z.ZodArray<z.ZodObject<{
720
- stable_id: z.ZodString;
721
- path: z.ZodString;
722
- store: z.ZodOptional<z.ZodObject<{
723
- alias: z.ZodString;
724
- }, "strip", z.ZodTypeAny, {
725
- alias: string;
726
- }, {
727
- alias: string;
728
- }>>;
729
- }, "strip", z.ZodTypeAny, {
730
- path: string;
731
- stable_id: string;
747
+ rank: number;
732
748
  store?: {
733
749
  alias: string;
734
750
  } | undefined;
735
- }, {
736
- path: string;
737
- stable_id: string;
738
- store?: {
739
- alias: string;
751
+ read_path?: string | undefined;
752
+ body_in_context?: boolean | undefined;
753
+ score?: number | undefined;
754
+ score_breakdown?: {
755
+ final: number;
756
+ salience: number;
757
+ recency: number;
758
+ locality: number;
759
+ proximity: number;
760
+ bm25?: number | undefined;
761
+ bm25_rank?: number | undefined;
762
+ vector?: number | undefined;
763
+ vector_rank?: number | undefined;
764
+ credibility?: number | undefined;
740
765
  } | undefined;
741
766
  }>, "many">;
742
- omitted_candidate_count: z.ZodOptional<z.ZodNumber>;
767
+ intent: z.ZodOptional<z.ZodString>;
768
+ dropped: z.ZodOptional<z.ZodArray<z.ZodObject<{
769
+ id: z.ZodString;
770
+ reason: z.ZodEnum<["retrieval_budget", "payload_budget"]>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ id: string;
773
+ reason: "retrieval_budget" | "payload_budget";
774
+ }, {
775
+ id: string;
776
+ reason: "retrieval_budget" | "payload_budget";
777
+ }>, "many">>;
743
778
  preflight_diagnostics: z.ZodArray<z.ZodObject<{
744
779
  code: z.ZodEnum<["missing_description", "empty_shell_suppressed"]>;
745
780
  severity: z.ZodLiteral<"warn">;
@@ -786,44 +821,45 @@ declare const recallOutputSchema: z.ZodObject<{
786
821
  next_steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
787
822
  }, "strip", z.ZodTypeAny, {
788
823
  entries: {
789
- path: string;
790
- requirement_profile: {
791
- target_path: string;
792
- known_tech: string[];
793
- detected_entities: string[];
794
- };
795
- }[];
796
- stale: boolean;
797
- paths: {
798
- path: string;
799
- stable_id: string;
800
- store?: {
801
- alias: string;
802
- } | undefined;
803
- }[];
804
- revision_hash: string;
805
- candidates: {
806
824
  description: {
807
825
  summary: string;
808
826
  intent_clues: string[];
809
- tech_stack: string[];
810
- impact: string[];
811
827
  must_read_if: string;
812
828
  created_at?: string | undefined;
813
829
  id?: string | undefined;
814
830
  relevance_scope?: "narrow" | "broad" | undefined;
815
831
  relevance_paths?: string[] | undefined;
816
- entities?: string[] | undefined;
832
+ tech_stack?: string[] | undefined;
833
+ impact?: string[] | undefined;
817
834
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
818
835
  maturity?: "draft" | "verified" | "proven" | undefined;
819
- knowledge_layer?: "personal" | "team" | undefined;
820
- layer_reason?: string | undefined;
821
836
  tags?: string[] | undefined;
822
837
  related?: string[] | undefined;
838
+ aliases?: string[] | undefined;
823
839
  };
824
840
  stable_id: string;
825
- always_active?: boolean | undefined;
841
+ rank: number;
842
+ store?: {
843
+ alias: string;
844
+ } | undefined;
845
+ read_path?: string | undefined;
846
+ body_in_context?: boolean | undefined;
847
+ score?: number | undefined;
848
+ score_breakdown?: {
849
+ final: number;
850
+ salience: number;
851
+ recency: number;
852
+ locality: number;
853
+ proximity: number;
854
+ bm25?: number | undefined;
855
+ bm25_rank?: number | undefined;
856
+ vector?: number | undefined;
857
+ vector_rank?: number | undefined;
858
+ credibility?: number | undefined;
859
+ } | undefined;
826
860
  }[];
861
+ stale: boolean;
862
+ revision_hash: string;
827
863
  preflight_diagnostics: {
828
864
  code: "missing_description" | "empty_shell_suppressed";
829
865
  message: string;
@@ -833,7 +869,10 @@ declare const recallOutputSchema: z.ZodObject<{
833
869
  }[];
834
870
  directive: string;
835
871
  intent?: string | undefined;
836
- omitted_candidate_count?: number | undefined;
872
+ dropped?: {
873
+ id: string;
874
+ reason: "retrieval_budget" | "payload_budget";
875
+ }[] | undefined;
837
876
  warnings?: {
838
877
  code: string;
839
878
  file: string;
@@ -848,44 +887,45 @@ declare const recallOutputSchema: z.ZodObject<{
848
887
  next_steps?: string[] | undefined;
849
888
  }, {
850
889
  entries: {
851
- path: string;
852
- requirement_profile: {
853
- target_path: string;
854
- known_tech: string[];
855
- detected_entities: string[];
856
- };
857
- }[];
858
- stale: boolean;
859
- paths: {
860
- path: string;
861
- stable_id: string;
862
- store?: {
863
- alias: string;
864
- } | undefined;
865
- }[];
866
- revision_hash: string;
867
- candidates: {
868
890
  description: {
869
891
  summary: string;
870
892
  intent_clues: string[];
871
- tech_stack: string[];
872
- impact: string[];
873
893
  must_read_if: string;
874
894
  created_at?: string | undefined;
875
895
  id?: string | undefined;
876
896
  relevance_scope?: "narrow" | "broad" | undefined;
877
897
  relevance_paths?: string[] | undefined;
878
- entities?: string[] | undefined;
898
+ tech_stack?: string[] | undefined;
899
+ impact?: string[] | undefined;
879
900
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
880
901
  maturity?: "draft" | "verified" | "proven" | undefined;
881
- knowledge_layer?: "personal" | "team" | undefined;
882
- layer_reason?: string | undefined;
883
902
  tags?: string[] | undefined;
884
903
  related?: string[] | undefined;
904
+ aliases?: string[] | undefined;
885
905
  };
886
906
  stable_id: string;
887
- always_active?: boolean | undefined;
907
+ rank: number;
908
+ store?: {
909
+ alias: string;
910
+ } | undefined;
911
+ read_path?: string | undefined;
912
+ body_in_context?: boolean | undefined;
913
+ score?: number | undefined;
914
+ score_breakdown?: {
915
+ final: number;
916
+ salience: number;
917
+ recency: number;
918
+ locality: number;
919
+ proximity: number;
920
+ bm25?: number | undefined;
921
+ bm25_rank?: number | undefined;
922
+ vector?: number | undefined;
923
+ vector_rank?: number | undefined;
924
+ credibility?: number | undefined;
925
+ } | undefined;
888
926
  }[];
927
+ stale: boolean;
928
+ revision_hash: string;
889
929
  preflight_diagnostics: {
890
930
  code: "missing_description" | "empty_shell_suppressed";
891
931
  message: string;
@@ -895,7 +935,10 @@ declare const recallOutputSchema: z.ZodObject<{
895
935
  }[];
896
936
  directive: string;
897
937
  intent?: string | undefined;
898
- omitted_candidate_count?: number | undefined;
938
+ dropped?: {
939
+ id: string;
940
+ reason: "retrieval_budget" | "payload_budget";
941
+ }[] | undefined;
899
942
  warnings?: {
900
943
  code: string;
901
944
  file: string;
@@ -967,12 +1010,12 @@ declare const archiveScanOutputSchema: z.ZodObject<{
967
1010
  line?: number | undefined;
968
1011
  }>, "many">>;
969
1012
  }, "strip", z.ZodTypeAny, {
970
- anchor_ts: number | null;
971
- session_ids: string[];
972
1013
  dropped: {
973
1014
  session_id: string;
974
1015
  reason: "user_dismissed" | "cooldown" | "no_new_signal";
975
1016
  }[];
1017
+ anchor_ts: number | null;
1018
+ session_ids: string[];
976
1019
  covered_through_ts: number | null;
977
1020
  already_proposed_keys: string[];
978
1021
  warnings?: {
@@ -983,12 +1026,12 @@ declare const archiveScanOutputSchema: z.ZodObject<{
983
1026
  line?: number | undefined;
984
1027
  }[] | undefined;
985
1028
  }, {
986
- anchor_ts: number | null;
987
- session_ids: string[];
988
1029
  dropped: {
989
1030
  session_id: string;
990
1031
  reason: "user_dismissed" | "cooldown" | "no_new_signal";
991
1032
  }[];
1033
+ anchor_ts: number | null;
1034
+ session_ids: string[];
992
1035
  covered_through_ts: number | null;
993
1036
  already_proposed_keys: string[];
994
1037
  warnings?: {
@@ -1017,12 +1060,10 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1017
1060
  user_messages_summary: z.ZodString;
1018
1061
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1019
1062
  slug: z.ZodString;
1020
- layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1021
- semantic_scope: z.ZodOptional<z.ZodString>;
1063
+ audience: z.ZodOptional<z.ZodString>;
1022
1064
  proposed_reason: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1023
1065
  session_context: z.ZodString;
1024
- relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1025
- relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1066
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1026
1067
  intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1027
1068
  tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1028
1069
  impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1038,15 +1079,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1038
1079
  recent_paths: string[];
1039
1080
  user_messages_summary: string;
1040
1081
  slug: string;
1041
- semantic_scope?: string | undefined;
1042
- relevance_scope?: "narrow" | "broad" | undefined;
1043
- relevance_paths?: string[] | undefined;
1044
- layer?: "personal" | "team" | undefined;
1082
+ paths?: string[] | undefined;
1045
1083
  intent_clues?: string[] | undefined;
1046
1084
  tech_stack?: string[] | undefined;
1047
1085
  impact?: string[] | undefined;
1048
1086
  must_read_if?: string | undefined;
1049
1087
  tags?: string[] | undefined;
1088
+ audience?: string | undefined;
1050
1089
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1051
1090
  evidence_paths?: string[] | undefined;
1052
1091
  }, {
@@ -1057,15 +1096,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1057
1096
  recent_paths: string[];
1058
1097
  user_messages_summary: string;
1059
1098
  slug: string;
1060
- semantic_scope?: string | undefined;
1061
- relevance_scope?: "narrow" | "broad" | undefined;
1062
- relevance_paths?: string[] | undefined;
1063
- layer?: "personal" | "team" | undefined;
1099
+ paths?: string[] | undefined;
1064
1100
  intent_clues?: string[] | undefined;
1065
1101
  tech_stack?: string[] | undefined;
1066
1102
  impact?: string[] | undefined;
1067
1103
  must_read_if?: string | undefined;
1068
1104
  tags?: string[] | undefined;
1105
+ audience?: string | undefined;
1069
1106
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1070
1107
  evidence_paths?: string[] | undefined;
1071
1108
  }>, {
@@ -1076,15 +1113,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1076
1113
  recent_paths: string[];
1077
1114
  user_messages_summary: string;
1078
1115
  slug: string;
1079
- semantic_scope?: string | undefined;
1080
- relevance_scope?: "narrow" | "broad" | undefined;
1081
- relevance_paths?: string[] | undefined;
1082
- layer?: "personal" | "team" | undefined;
1116
+ paths?: string[] | undefined;
1083
1117
  intent_clues?: string[] | undefined;
1084
1118
  tech_stack?: string[] | undefined;
1085
1119
  impact?: string[] | undefined;
1086
1120
  must_read_if?: string | undefined;
1087
1121
  tags?: string[] | undefined;
1122
+ audience?: string | undefined;
1088
1123
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1089
1124
  evidence_paths?: string[] | undefined;
1090
1125
  }, {
@@ -1095,15 +1130,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1095
1130
  recent_paths: string[];
1096
1131
  user_messages_summary: string;
1097
1132
  slug: string;
1098
- semantic_scope?: string | undefined;
1099
- relevance_scope?: "narrow" | "broad" | undefined;
1100
- relevance_paths?: string[] | undefined;
1101
- layer?: "personal" | "team" | undefined;
1133
+ paths?: string[] | undefined;
1102
1134
  intent_clues?: string[] | undefined;
1103
1135
  tech_stack?: string[] | undefined;
1104
1136
  impact?: string[] | undefined;
1105
1137
  must_read_if?: string | undefined;
1106
1138
  tags?: string[] | undefined;
1139
+ audience?: string | undefined;
1107
1140
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1108
1141
  evidence_paths?: string[] | undefined;
1109
1142
  }>;
@@ -1113,12 +1146,10 @@ declare const FabExtractKnowledgeInputShape: {
1113
1146
  user_messages_summary: z.ZodString;
1114
1147
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1115
1148
  slug: z.ZodString;
1116
- layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1117
- semantic_scope: z.ZodOptional<z.ZodString>;
1149
+ audience: z.ZodOptional<z.ZodString>;
1118
1150
  proposed_reason: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1119
1151
  session_context: z.ZodString;
1120
- relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1121
- relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1152
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1122
1153
  intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1123
1154
  tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1124
1155
  impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1180,60 +1211,6 @@ declare const fabExtractKnowledgeAnnotations: {
1180
1211
  readonly title: "Extract pending knowledge entry";
1181
1212
  };
1182
1213
  declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1183
- action: z.ZodLiteral<"list">;
1184
- filters: z.ZodOptional<z.ZodObject<{
1185
- type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1186
- layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
1187
- maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1188
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1189
- created_after: z.ZodOptional<z.ZodString>;
1190
- include_rejected: z.ZodOptional<z.ZodBoolean>;
1191
- include_deferred: z.ZodOptional<z.ZodBoolean>;
1192
- include_body: z.ZodOptional<z.ZodBoolean>;
1193
- }, "strip", z.ZodTypeAny, {
1194
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1195
- layer?: "personal" | "team" | "both" | undefined;
1196
- maturity?: "draft" | "verified" | "proven" | undefined;
1197
- tags?: string[] | undefined;
1198
- created_after?: string | undefined;
1199
- include_rejected?: boolean | undefined;
1200
- include_deferred?: boolean | undefined;
1201
- include_body?: boolean | undefined;
1202
- }, {
1203
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1204
- layer?: "personal" | "team" | "both" | undefined;
1205
- maturity?: "draft" | "verified" | "proven" | undefined;
1206
- tags?: string[] | undefined;
1207
- created_after?: string | undefined;
1208
- include_rejected?: boolean | undefined;
1209
- include_deferred?: boolean | undefined;
1210
- include_body?: boolean | undefined;
1211
- }>>;
1212
- }, "strip", z.ZodTypeAny, {
1213
- action: "list";
1214
- filters?: {
1215
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1216
- layer?: "personal" | "team" | "both" | undefined;
1217
- maturity?: "draft" | "verified" | "proven" | undefined;
1218
- tags?: string[] | undefined;
1219
- created_after?: string | undefined;
1220
- include_rejected?: boolean | undefined;
1221
- include_deferred?: boolean | undefined;
1222
- include_body?: boolean | undefined;
1223
- } | undefined;
1224
- }, {
1225
- action: "list";
1226
- filters?: {
1227
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1228
- layer?: "personal" | "team" | "both" | undefined;
1229
- maturity?: "draft" | "verified" | "proven" | undefined;
1230
- tags?: string[] | undefined;
1231
- created_after?: string | undefined;
1232
- include_rejected?: boolean | undefined;
1233
- include_deferred?: boolean | undefined;
1234
- include_body?: boolean | undefined;
1235
- } | undefined;
1236
- }>, z.ZodObject<{
1237
1214
  action: z.ZodLiteral<"approve">;
1238
1215
  pending_paths: z.ZodArray<z.ZodString, "many">;
1239
1216
  }, "strip", z.ZodTypeAny, {
@@ -1267,12 +1244,18 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1267
1244
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1268
1245
  semantic_scope: z.ZodOptional<z.ZodString>;
1269
1246
  related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1247
+ must_read_if: z.ZodOptional<z.ZodString>;
1248
+ intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1249
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1270
1250
  }, "strip", z.ZodTypeAny, {
1271
1251
  semantic_scope?: string | undefined;
1272
1252
  relevance_scope?: "narrow" | "broad" | undefined;
1273
1253
  relevance_paths?: string[] | undefined;
1274
1254
  layer?: "personal" | "team" | undefined;
1275
1255
  summary?: string | undefined;
1256
+ intent_clues?: string[] | undefined;
1257
+ impact?: string[] | undefined;
1258
+ must_read_if?: string | undefined;
1276
1259
  maturity?: "draft" | "verified" | "proven" | undefined;
1277
1260
  tags?: string[] | undefined;
1278
1261
  related?: string[] | undefined;
@@ -1283,6 +1266,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1283
1266
  relevance_paths?: string[] | undefined;
1284
1267
  layer?: "personal" | "team" | undefined;
1285
1268
  summary?: string | undefined;
1269
+ intent_clues?: string[] | undefined;
1270
+ impact?: string[] | undefined;
1271
+ must_read_if?: string | undefined;
1286
1272
  maturity?: "draft" | "verified" | "proven" | undefined;
1287
1273
  tags?: string[] | undefined;
1288
1274
  related?: string[] | undefined;
@@ -1297,6 +1283,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1297
1283
  relevance_paths?: string[] | undefined;
1298
1284
  layer?: "personal" | "team" | undefined;
1299
1285
  summary?: string | undefined;
1286
+ intent_clues?: string[] | undefined;
1287
+ impact?: string[] | undefined;
1288
+ must_read_if?: string | undefined;
1300
1289
  maturity?: "draft" | "verified" | "proven" | undefined;
1301
1290
  tags?: string[] | undefined;
1302
1291
  related?: string[] | undefined;
@@ -1311,6 +1300,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1311
1300
  relevance_paths?: string[] | undefined;
1312
1301
  layer?: "personal" | "team" | undefined;
1313
1302
  summary?: string | undefined;
1303
+ intent_clues?: string[] | undefined;
1304
+ impact?: string[] | undefined;
1305
+ must_read_if?: string | undefined;
1314
1306
  maturity?: "draft" | "verified" | "proven" | undefined;
1315
1307
  tags?: string[] | undefined;
1316
1308
  related?: string[] | undefined;
@@ -1329,12 +1321,18 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1329
1321
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1330
1322
  semantic_scope: z.ZodOptional<z.ZodString>;
1331
1323
  related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1324
+ must_read_if: z.ZodOptional<z.ZodString>;
1325
+ intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1326
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1332
1327
  }, "strip", z.ZodTypeAny, {
1333
1328
  semantic_scope?: string | undefined;
1334
1329
  relevance_scope?: "narrow" | "broad" | undefined;
1335
1330
  relevance_paths?: string[] | undefined;
1336
1331
  layer?: "personal" | "team" | undefined;
1337
1332
  summary?: string | undefined;
1333
+ intent_clues?: string[] | undefined;
1334
+ impact?: string[] | undefined;
1335
+ must_read_if?: string | undefined;
1338
1336
  maturity?: "draft" | "verified" | "proven" | undefined;
1339
1337
  tags?: string[] | undefined;
1340
1338
  related?: string[] | undefined;
@@ -1345,6 +1343,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1345
1343
  relevance_paths?: string[] | undefined;
1346
1344
  layer?: "personal" | "team" | undefined;
1347
1345
  summary?: string | undefined;
1346
+ intent_clues?: string[] | undefined;
1347
+ impact?: string[] | undefined;
1348
+ must_read_if?: string | undefined;
1348
1349
  maturity?: "draft" | "verified" | "proven" | undefined;
1349
1350
  tags?: string[] | undefined;
1350
1351
  related?: string[] | undefined;
@@ -1359,6 +1360,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1359
1360
  relevance_paths?: string[] | undefined;
1360
1361
  layer?: "personal" | "team" | undefined;
1361
1362
  summary?: string | undefined;
1363
+ intent_clues?: string[] | undefined;
1364
+ impact?: string[] | undefined;
1365
+ must_read_if?: string | undefined;
1362
1366
  maturity?: "draft" | "verified" | "proven" | undefined;
1363
1367
  tags?: string[] | undefined;
1364
1368
  related?: string[] | undefined;
@@ -1373,6 +1377,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1373
1377
  relevance_paths?: string[] | undefined;
1374
1378
  layer?: "personal" | "team" | undefined;
1375
1379
  summary?: string | undefined;
1380
+ intent_clues?: string[] | undefined;
1381
+ impact?: string[] | undefined;
1382
+ must_read_if?: string | undefined;
1376
1383
  maturity?: "draft" | "verified" | "proven" | undefined;
1377
1384
  tags?: string[] | undefined;
1378
1385
  related?: string[] | undefined;
@@ -1390,6 +1397,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1390
1397
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1391
1398
  semantic_scope: z.ZodOptional<z.ZodString>;
1392
1399
  related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1400
+ must_read_if: z.ZodOptional<z.ZodString>;
1401
+ intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1402
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1393
1403
  } & {
1394
1404
  layer: z.ZodEnum<["team", "personal"]>;
1395
1405
  }, "strip", z.ZodTypeAny, {
@@ -1398,6 +1408,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1398
1408
  relevance_scope?: "narrow" | "broad" | undefined;
1399
1409
  relevance_paths?: string[] | undefined;
1400
1410
  summary?: string | undefined;
1411
+ intent_clues?: string[] | undefined;
1412
+ impact?: string[] | undefined;
1413
+ must_read_if?: string | undefined;
1401
1414
  maturity?: "draft" | "verified" | "proven" | undefined;
1402
1415
  tags?: string[] | undefined;
1403
1416
  related?: string[] | undefined;
@@ -1408,6 +1421,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1408
1421
  relevance_scope?: "narrow" | "broad" | undefined;
1409
1422
  relevance_paths?: string[] | undefined;
1410
1423
  summary?: string | undefined;
1424
+ intent_clues?: string[] | undefined;
1425
+ impact?: string[] | undefined;
1426
+ must_read_if?: string | undefined;
1411
1427
  maturity?: "draft" | "verified" | "proven" | undefined;
1412
1428
  tags?: string[] | undefined;
1413
1429
  related?: string[] | undefined;
@@ -1422,6 +1438,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1422
1438
  relevance_scope?: "narrow" | "broad" | undefined;
1423
1439
  relevance_paths?: string[] | undefined;
1424
1440
  summary?: string | undefined;
1441
+ intent_clues?: string[] | undefined;
1442
+ impact?: string[] | undefined;
1443
+ must_read_if?: string | undefined;
1425
1444
  maturity?: "draft" | "verified" | "proven" | undefined;
1426
1445
  tags?: string[] | undefined;
1427
1446
  related?: string[] | undefined;
@@ -1436,14 +1455,33 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1436
1455
  relevance_scope?: "narrow" | "broad" | undefined;
1437
1456
  relevance_paths?: string[] | undefined;
1438
1457
  summary?: string | undefined;
1458
+ intent_clues?: string[] | undefined;
1459
+ impact?: string[] | undefined;
1460
+ must_read_if?: string | undefined;
1439
1461
  maturity?: "draft" | "verified" | "proven" | undefined;
1440
1462
  tags?: string[] | undefined;
1441
1463
  related?: string[] | undefined;
1442
1464
  title?: string | undefined;
1443
1465
  };
1444
1466
  }>, z.ZodObject<{
1445
- action: z.ZodLiteral<"search">;
1446
- query: z.ZodString;
1467
+ action: z.ZodLiteral<"defer">;
1468
+ pending_paths: z.ZodArray<z.ZodString, "many">;
1469
+ until: z.ZodOptional<z.ZodString>;
1470
+ reason: z.ZodOptional<z.ZodString>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ action: "defer";
1473
+ pending_paths: string[];
1474
+ reason?: string | undefined;
1475
+ until?: string | undefined;
1476
+ }, {
1477
+ action: "defer";
1478
+ pending_paths: string[];
1479
+ reason?: string | undefined;
1480
+ until?: string | undefined;
1481
+ }>]>;
1482
+ type FabReviewInput = z.infer<typeof FabReviewInputSchema>;
1483
+ declare const FabPendingInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1484
+ action: z.ZodLiteral<"list">;
1447
1485
  filters: z.ZodOptional<z.ZodObject<{
1448
1486
  type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1449
1487
  layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
@@ -1473,8 +1511,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1473
1511
  include_body?: boolean | undefined;
1474
1512
  }>>;
1475
1513
  }, "strip", z.ZodTypeAny, {
1476
- action: "search";
1477
- query: string;
1514
+ action: "list";
1478
1515
  filters?: {
1479
1516
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1480
1517
  layer?: "personal" | "team" | "both" | undefined;
@@ -1486,8 +1523,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1486
1523
  include_body?: boolean | undefined;
1487
1524
  } | undefined;
1488
1525
  }, {
1489
- action: "search";
1490
- query: string;
1526
+ action: "list";
1491
1527
  filters?: {
1492
1528
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1493
1529
  layer?: "personal" | "team" | "both" | undefined;
@@ -1499,25 +1535,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1499
1535
  include_body?: boolean | undefined;
1500
1536
  } | undefined;
1501
1537
  }>, z.ZodObject<{
1502
- action: z.ZodLiteral<"defer">;
1503
- pending_paths: z.ZodArray<z.ZodString, "many">;
1504
- until: z.ZodOptional<z.ZodString>;
1505
- reason: z.ZodOptional<z.ZodString>;
1506
- }, "strip", z.ZodTypeAny, {
1507
- action: "defer";
1508
- pending_paths: string[];
1509
- reason?: string | undefined;
1510
- until?: string | undefined;
1511
- }, {
1512
- action: "defer";
1513
- pending_paths: string[];
1514
- reason?: string | undefined;
1515
- until?: string | undefined;
1516
- }>]>;
1517
- type FabReviewInput = z.infer<typeof FabReviewInputSchema>;
1518
- declare const FabReviewInputShape: {
1519
- readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "modify-content", "modify-layer", "search", "defer"]>;
1520
- readonly filters: z.ZodOptional<z.ZodObject<{
1538
+ action: z.ZodLiteral<"search">;
1539
+ query: z.ZodString;
1540
+ filters: z.ZodOptional<z.ZodObject<{
1521
1541
  type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1522
1542
  layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
1523
1543
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
@@ -1545,6 +1565,68 @@ declare const FabReviewInputShape: {
1545
1565
  include_deferred?: boolean | undefined;
1546
1566
  include_body?: boolean | undefined;
1547
1567
  }>>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ action: "search";
1570
+ query: string;
1571
+ filters?: {
1572
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1573
+ layer?: "personal" | "team" | "both" | undefined;
1574
+ maturity?: "draft" | "verified" | "proven" | undefined;
1575
+ tags?: string[] | undefined;
1576
+ created_after?: string | undefined;
1577
+ include_rejected?: boolean | undefined;
1578
+ include_deferred?: boolean | undefined;
1579
+ include_body?: boolean | undefined;
1580
+ } | undefined;
1581
+ }, {
1582
+ action: "search";
1583
+ query: string;
1584
+ filters?: {
1585
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1586
+ layer?: "personal" | "team" | "both" | undefined;
1587
+ maturity?: "draft" | "verified" | "proven" | undefined;
1588
+ tags?: string[] | undefined;
1589
+ created_after?: string | undefined;
1590
+ include_rejected?: boolean | undefined;
1591
+ include_deferred?: boolean | undefined;
1592
+ include_body?: boolean | undefined;
1593
+ } | undefined;
1594
+ }>]>;
1595
+ type FabPendingInput = z.infer<typeof FabPendingInputSchema>;
1596
+ declare const FabPendingInputShape: {
1597
+ readonly action: z.ZodEnum<["list", "search"]>;
1598
+ readonly filters: z.ZodOptional<z.ZodObject<{
1599
+ type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1600
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
1601
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1602
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1603
+ created_after: z.ZodOptional<z.ZodString>;
1604
+ include_rejected: z.ZodOptional<z.ZodBoolean>;
1605
+ include_deferred: z.ZodOptional<z.ZodBoolean>;
1606
+ include_body: z.ZodOptional<z.ZodBoolean>;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1609
+ layer?: "personal" | "team" | "both" | undefined;
1610
+ maturity?: "draft" | "verified" | "proven" | undefined;
1611
+ tags?: string[] | undefined;
1612
+ created_after?: string | undefined;
1613
+ include_rejected?: boolean | undefined;
1614
+ include_deferred?: boolean | undefined;
1615
+ include_body?: boolean | undefined;
1616
+ }, {
1617
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1618
+ layer?: "personal" | "team" | "both" | undefined;
1619
+ maturity?: "draft" | "verified" | "proven" | undefined;
1620
+ tags?: string[] | undefined;
1621
+ created_after?: string | undefined;
1622
+ include_rejected?: boolean | undefined;
1623
+ include_deferred?: boolean | undefined;
1624
+ include_body?: boolean | undefined;
1625
+ }>>;
1626
+ readonly query: z.ZodOptional<z.ZodString>;
1627
+ };
1628
+ declare const FabReviewInputShape: {
1629
+ readonly action: z.ZodEnum<["approve", "reject", "modify", "modify-content", "modify-layer", "defer"]>;
1548
1630
  readonly pending_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1549
1631
  readonly pending_path: z.ZodOptional<z.ZodString>;
1550
1632
  readonly reason: z.ZodOptional<z.ZodString>;
@@ -1558,12 +1640,18 @@ declare const FabReviewInputShape: {
1558
1640
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1559
1641
  semantic_scope: z.ZodOptional<z.ZodString>;
1560
1642
  related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1643
+ must_read_if: z.ZodOptional<z.ZodString>;
1644
+ intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1645
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1561
1646
  }, "strip", z.ZodTypeAny, {
1562
1647
  semantic_scope?: string | undefined;
1563
1648
  relevance_scope?: "narrow" | "broad" | undefined;
1564
1649
  relevance_paths?: string[] | undefined;
1565
1650
  layer?: "personal" | "team" | undefined;
1566
1651
  summary?: string | undefined;
1652
+ intent_clues?: string[] | undefined;
1653
+ impact?: string[] | undefined;
1654
+ must_read_if?: string | undefined;
1567
1655
  maturity?: "draft" | "verified" | "proven" | undefined;
1568
1656
  tags?: string[] | undefined;
1569
1657
  related?: string[] | undefined;
@@ -1574,55 +1662,27 @@ declare const FabReviewInputShape: {
1574
1662
  relevance_paths?: string[] | undefined;
1575
1663
  layer?: "personal" | "team" | undefined;
1576
1664
  summary?: string | undefined;
1665
+ intent_clues?: string[] | undefined;
1666
+ impact?: string[] | undefined;
1667
+ must_read_if?: string | undefined;
1577
1668
  maturity?: "draft" | "verified" | "proven" | undefined;
1578
1669
  tags?: string[] | undefined;
1579
1670
  related?: string[] | undefined;
1580
1671
  title?: string | undefined;
1581
1672
  }>>;
1582
- readonly query: z.ZodOptional<z.ZodString>;
1583
1673
  readonly until: z.ZodOptional<z.ZodString>;
1584
1674
  };
1585
1675
  declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1586
- action: z.ZodLiteral<"list">;
1587
- items: z.ZodArray<z.ZodObject<{
1676
+ action: z.ZodLiteral<"approve">;
1677
+ approved: z.ZodArray<z.ZodObject<{
1588
1678
  pending_path: z.ZodString;
1589
- pending_path_absolute: z.ZodOptional<z.ZodString>;
1590
- type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1591
- layer: z.ZodEnum<["team", "personal"]>;
1592
- maturity: z.ZodEnum<["draft", "verified", "proven"]>;
1593
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1594
- title: z.ZodOptional<z.ZodString>;
1595
- summary: z.ZodOptional<z.ZodString>;
1596
- origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1597
- status: z.ZodOptional<z.ZodEnum<["active", "rejected", "deferred"]>>;
1598
- deferred_until: z.ZodOptional<z.ZodString>;
1599
- body: z.ZodOptional<z.ZodString>;
1679
+ stable_id: z.ZodString;
1600
1680
  }, "strip", z.ZodTypeAny, {
1601
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1602
- layer: "personal" | "team";
1603
1681
  pending_path: string;
1604
- maturity: "draft" | "verified" | "proven";
1605
- status?: "active" | "rejected" | "deferred" | undefined;
1606
- summary?: string | undefined;
1607
- tags?: string[] | undefined;
1608
- body?: string | undefined;
1609
- title?: string | undefined;
1610
- pending_path_absolute?: string | undefined;
1611
- origin?: "personal" | "team" | undefined;
1612
- deferred_until?: string | undefined;
1682
+ stable_id: string;
1613
1683
  }, {
1614
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1615
- layer: "personal" | "team";
1616
1684
  pending_path: string;
1617
- maturity: "draft" | "verified" | "proven";
1618
- status?: "active" | "rejected" | "deferred" | undefined;
1619
- summary?: string | undefined;
1620
- tags?: string[] | undefined;
1621
- body?: string | undefined;
1622
- title?: string | undefined;
1623
- pending_path_absolute?: string | undefined;
1624
- origin?: "personal" | "team" | undefined;
1625
- deferred_until?: string | undefined;
1685
+ stable_id: string;
1626
1686
  }>, "many">;
1627
1687
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1628
1688
  code: z.ZodString;
@@ -1644,21 +1704,11 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1644
1704
  line?: number | undefined;
1645
1705
  }>, "many">>;
1646
1706
  }, "strip", z.ZodTypeAny, {
1647
- action: "list";
1648
- items: {
1649
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1650
- layer: "personal" | "team";
1707
+ approved: {
1651
1708
  pending_path: string;
1652
- maturity: "draft" | "verified" | "proven";
1653
- status?: "active" | "rejected" | "deferred" | undefined;
1654
- summary?: string | undefined;
1655
- tags?: string[] | undefined;
1656
- body?: string | undefined;
1657
- title?: string | undefined;
1658
- pending_path_absolute?: string | undefined;
1659
- origin?: "personal" | "team" | undefined;
1660
- deferred_until?: string | undefined;
1709
+ stable_id: string;
1661
1710
  }[];
1711
+ action: "approve";
1662
1712
  warnings?: {
1663
1713
  code: string;
1664
1714
  file: string;
@@ -1667,21 +1717,11 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1667
1717
  line?: number | undefined;
1668
1718
  }[] | undefined;
1669
1719
  }, {
1670
- action: "list";
1671
- items: {
1672
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1673
- layer: "personal" | "team";
1720
+ approved: {
1674
1721
  pending_path: string;
1675
- maturity: "draft" | "verified" | "proven";
1676
- status?: "active" | "rejected" | "deferred" | undefined;
1677
- summary?: string | undefined;
1678
- tags?: string[] | undefined;
1679
- body?: string | undefined;
1680
- title?: string | undefined;
1681
- pending_path_absolute?: string | undefined;
1682
- origin?: "personal" | "team" | undefined;
1683
- deferred_until?: string | undefined;
1722
+ stable_id: string;
1684
1723
  }[];
1724
+ action: "approve";
1685
1725
  warnings?: {
1686
1726
  code: string;
1687
1727
  file: string;
@@ -1690,17 +1730,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1690
1730
  line?: number | undefined;
1691
1731
  }[] | undefined;
1692
1732
  }>, z.ZodObject<{
1693
- action: z.ZodLiteral<"approve">;
1694
- approved: z.ZodArray<z.ZodObject<{
1695
- pending_path: z.ZodString;
1696
- stable_id: z.ZodString;
1697
- }, "strip", z.ZodTypeAny, {
1698
- pending_path: string;
1699
- stable_id: string;
1700
- }, {
1701
- pending_path: string;
1702
- stable_id: string;
1703
- }>, "many">;
1733
+ action: z.ZodLiteral<"reject">;
1734
+ rejected: z.ZodArray<z.ZodString, "many">;
1704
1735
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1705
1736
  code: z.ZodString;
1706
1737
  file: z.ZodString;
@@ -1721,11 +1752,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1721
1752
  line?: number | undefined;
1722
1753
  }>, "many">>;
1723
1754
  }, "strip", z.ZodTypeAny, {
1724
- approved: {
1725
- pending_path: string;
1726
- stable_id: string;
1727
- }[];
1728
- action: "approve";
1755
+ action: "reject";
1756
+ rejected: string[];
1729
1757
  warnings?: {
1730
1758
  code: string;
1731
1759
  file: string;
@@ -1734,11 +1762,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1734
1762
  line?: number | undefined;
1735
1763
  }[] | undefined;
1736
1764
  }, {
1737
- approved: {
1738
- pending_path: string;
1739
- stable_id: string;
1740
- }[];
1741
- action: "approve";
1765
+ action: "reject";
1766
+ rejected: string[];
1742
1767
  warnings?: {
1743
1768
  code: string;
1744
1769
  file: string;
@@ -1747,8 +1772,10 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1747
1772
  line?: number | undefined;
1748
1773
  }[] | undefined;
1749
1774
  }>, z.ZodObject<{
1750
- action: z.ZodLiteral<"reject">;
1751
- rejected: z.ZodArray<z.ZodString, "many">;
1775
+ action: z.ZodLiteral<"modify">;
1776
+ pending_path: z.ZodString;
1777
+ prior_stable_id: z.ZodOptional<z.ZodString>;
1778
+ new_stable_id: z.ZodOptional<z.ZodString>;
1752
1779
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1753
1780
  code: z.ZodString;
1754
1781
  file: z.ZodString;
@@ -1769,8 +1796,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1769
1796
  line?: number | undefined;
1770
1797
  }>, "many">>;
1771
1798
  }, "strip", z.ZodTypeAny, {
1772
- action: "reject";
1773
- rejected: string[];
1799
+ pending_path: string;
1800
+ action: "modify";
1774
1801
  warnings?: {
1775
1802
  code: string;
1776
1803
  file: string;
@@ -1778,9 +1805,11 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1778
1805
  message?: string | undefined;
1779
1806
  line?: number | undefined;
1780
1807
  }[] | undefined;
1808
+ prior_stable_id?: string | undefined;
1809
+ new_stable_id?: string | undefined;
1781
1810
  }, {
1782
- action: "reject";
1783
- rejected: string[];
1811
+ pending_path: string;
1812
+ action: "modify";
1784
1813
  warnings?: {
1785
1814
  code: string;
1786
1815
  file: string;
@@ -1788,11 +1817,11 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1788
1817
  message?: string | undefined;
1789
1818
  line?: number | undefined;
1790
1819
  }[] | undefined;
1820
+ prior_stable_id?: string | undefined;
1821
+ new_stable_id?: string | undefined;
1791
1822
  }>, z.ZodObject<{
1792
- action: z.ZodLiteral<"modify">;
1793
- pending_path: z.ZodString;
1794
- prior_stable_id: z.ZodOptional<z.ZodString>;
1795
- new_stable_id: z.ZodOptional<z.ZodString>;
1823
+ action: z.ZodLiteral<"defer">;
1824
+ deferred: z.ZodArray<z.ZodString, "many">;
1796
1825
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1797
1826
  code: z.ZodString;
1798
1827
  file: z.ZodString;
@@ -1813,8 +1842,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1813
1842
  line?: number | undefined;
1814
1843
  }>, "many">>;
1815
1844
  }, "strip", z.ZodTypeAny, {
1816
- pending_path: string;
1817
- action: "modify";
1845
+ action: "defer";
1846
+ deferred: string[];
1818
1847
  warnings?: {
1819
1848
  code: string;
1820
1849
  file: string;
@@ -1822,11 +1851,9 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1822
1851
  message?: string | undefined;
1823
1852
  line?: number | undefined;
1824
1853
  }[] | undefined;
1825
- prior_stable_id?: string | undefined;
1826
- new_stable_id?: string | undefined;
1827
1854
  }, {
1828
- pending_path: string;
1829
- action: "modify";
1855
+ action: "defer";
1856
+ deferred: string[];
1830
1857
  warnings?: {
1831
1858
  code: string;
1832
1859
  file: string;
@@ -1834,14 +1861,13 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1834
1861
  message?: string | undefined;
1835
1862
  line?: number | undefined;
1836
1863
  }[] | undefined;
1837
- prior_stable_id?: string | undefined;
1838
- new_stable_id?: string | undefined;
1839
- }>, z.ZodObject<{
1840
- action: z.ZodLiteral<"search">;
1864
+ }>]>;
1865
+ type FabReviewOutput = z.infer<typeof FabReviewOutputSchema>;
1866
+ declare const FabPendingOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1867
+ action: z.ZodLiteral<"list">;
1841
1868
  items: z.ZodArray<z.ZodObject<{
1842
- area: z.ZodEnum<["pending", "canonical"]>;
1843
- path: z.ZodString;
1844
- path_absolute: z.ZodOptional<z.ZodString>;
1869
+ pending_path: z.ZodString;
1870
+ pending_path_absolute: z.ZodOptional<z.ZodString>;
1845
1871
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1846
1872
  layer: z.ZodEnum<["team", "personal"]>;
1847
1873
  maturity: z.ZodEnum<["draft", "verified", "proven"]>;
@@ -1852,37 +1878,32 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1852
1878
  status: z.ZodOptional<z.ZodEnum<["active", "rejected", "deferred"]>>;
1853
1879
  deferred_until: z.ZodOptional<z.ZodString>;
1854
1880
  body: z.ZodOptional<z.ZodString>;
1855
- stable_id: z.ZodOptional<z.ZodString>;
1856
1881
  }, "strip", z.ZodTypeAny, {
1857
- path: string;
1858
1882
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1859
1883
  layer: "personal" | "team";
1884
+ pending_path: string;
1860
1885
  maturity: "draft" | "verified" | "proven";
1861
- area: "canonical" | "pending";
1862
1886
  status?: "active" | "rejected" | "deferred" | undefined;
1863
1887
  summary?: string | undefined;
1864
1888
  tags?: string[] | undefined;
1865
- stable_id?: string | undefined;
1866
1889
  body?: string | undefined;
1867
1890
  title?: string | undefined;
1891
+ pending_path_absolute?: string | undefined;
1868
1892
  origin?: "personal" | "team" | undefined;
1869
1893
  deferred_until?: string | undefined;
1870
- path_absolute?: string | undefined;
1871
1894
  }, {
1872
- path: string;
1873
1895
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1874
1896
  layer: "personal" | "team";
1897
+ pending_path: string;
1875
1898
  maturity: "draft" | "verified" | "proven";
1876
- area: "canonical" | "pending";
1877
1899
  status?: "active" | "rejected" | "deferred" | undefined;
1878
1900
  summary?: string | undefined;
1879
1901
  tags?: string[] | undefined;
1880
- stable_id?: string | undefined;
1881
1902
  body?: string | undefined;
1882
1903
  title?: string | undefined;
1904
+ pending_path_absolute?: string | undefined;
1883
1905
  origin?: "personal" | "team" | undefined;
1884
1906
  deferred_until?: string | undefined;
1885
- path_absolute?: string | undefined;
1886
1907
  }>, "many">;
1887
1908
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1888
1909
  code: z.ZodString;
@@ -1904,22 +1925,20 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1904
1925
  line?: number | undefined;
1905
1926
  }>, "many">>;
1906
1927
  }, "strip", z.ZodTypeAny, {
1907
- action: "search";
1928
+ action: "list";
1908
1929
  items: {
1909
- path: string;
1910
1930
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1911
1931
  layer: "personal" | "team";
1932
+ pending_path: string;
1912
1933
  maturity: "draft" | "verified" | "proven";
1913
- area: "canonical" | "pending";
1914
1934
  status?: "active" | "rejected" | "deferred" | undefined;
1915
1935
  summary?: string | undefined;
1916
1936
  tags?: string[] | undefined;
1917
- stable_id?: string | undefined;
1918
1937
  body?: string | undefined;
1919
1938
  title?: string | undefined;
1939
+ pending_path_absolute?: string | undefined;
1920
1940
  origin?: "personal" | "team" | undefined;
1921
1941
  deferred_until?: string | undefined;
1922
- path_absolute?: string | undefined;
1923
1942
  }[];
1924
1943
  warnings?: {
1925
1944
  code: string;
@@ -1929,22 +1948,20 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1929
1948
  line?: number | undefined;
1930
1949
  }[] | undefined;
1931
1950
  }, {
1932
- action: "search";
1951
+ action: "list";
1933
1952
  items: {
1934
- path: string;
1935
1953
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1936
1954
  layer: "personal" | "team";
1955
+ pending_path: string;
1937
1956
  maturity: "draft" | "verified" | "proven";
1938
- area: "canonical" | "pending";
1939
1957
  status?: "active" | "rejected" | "deferred" | undefined;
1940
1958
  summary?: string | undefined;
1941
1959
  tags?: string[] | undefined;
1942
- stable_id?: string | undefined;
1943
1960
  body?: string | undefined;
1944
1961
  title?: string | undefined;
1962
+ pending_path_absolute?: string | undefined;
1945
1963
  origin?: "personal" | "team" | undefined;
1946
1964
  deferred_until?: string | undefined;
1947
- path_absolute?: string | undefined;
1948
1965
  }[];
1949
1966
  warnings?: {
1950
1967
  code: string;
@@ -1954,8 +1971,53 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1954
1971
  line?: number | undefined;
1955
1972
  }[] | undefined;
1956
1973
  }>, z.ZodObject<{
1957
- action: z.ZodLiteral<"defer">;
1958
- deferred: z.ZodArray<z.ZodString, "many">;
1974
+ action: z.ZodLiteral<"search">;
1975
+ items: z.ZodArray<z.ZodObject<{
1976
+ area: z.ZodEnum<["pending", "canonical"]>;
1977
+ path: z.ZodString;
1978
+ path_absolute: z.ZodOptional<z.ZodString>;
1979
+ type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1980
+ layer: z.ZodEnum<["team", "personal"]>;
1981
+ maturity: z.ZodEnum<["draft", "verified", "proven"]>;
1982
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1983
+ title: z.ZodOptional<z.ZodString>;
1984
+ summary: z.ZodOptional<z.ZodString>;
1985
+ origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1986
+ status: z.ZodOptional<z.ZodEnum<["active", "rejected", "deferred"]>>;
1987
+ deferred_until: z.ZodOptional<z.ZodString>;
1988
+ body: z.ZodOptional<z.ZodString>;
1989
+ stable_id: z.ZodOptional<z.ZodString>;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ path: string;
1992
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1993
+ layer: "personal" | "team";
1994
+ maturity: "draft" | "verified" | "proven";
1995
+ area: "canonical" | "pending";
1996
+ status?: "active" | "rejected" | "deferred" | undefined;
1997
+ summary?: string | undefined;
1998
+ tags?: string[] | undefined;
1999
+ stable_id?: string | undefined;
2000
+ body?: string | undefined;
2001
+ title?: string | undefined;
2002
+ origin?: "personal" | "team" | undefined;
2003
+ deferred_until?: string | undefined;
2004
+ path_absolute?: string | undefined;
2005
+ }, {
2006
+ path: string;
2007
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
2008
+ layer: "personal" | "team";
2009
+ maturity: "draft" | "verified" | "proven";
2010
+ area: "canonical" | "pending";
2011
+ status?: "active" | "rejected" | "deferred" | undefined;
2012
+ summary?: string | undefined;
2013
+ tags?: string[] | undefined;
2014
+ stable_id?: string | undefined;
2015
+ body?: string | undefined;
2016
+ title?: string | undefined;
2017
+ origin?: "personal" | "team" | undefined;
2018
+ deferred_until?: string | undefined;
2019
+ path_absolute?: string | undefined;
2020
+ }>, "many">;
1959
2021
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1960
2022
  code: z.ZodString;
1961
2023
  file: z.ZodString;
@@ -1976,8 +2038,23 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1976
2038
  line?: number | undefined;
1977
2039
  }>, "many">>;
1978
2040
  }, "strip", z.ZodTypeAny, {
1979
- action: "defer";
1980
- deferred: string[];
2041
+ action: "search";
2042
+ items: {
2043
+ path: string;
2044
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
2045
+ layer: "personal" | "team";
2046
+ maturity: "draft" | "verified" | "proven";
2047
+ area: "canonical" | "pending";
2048
+ status?: "active" | "rejected" | "deferred" | undefined;
2049
+ summary?: string | undefined;
2050
+ tags?: string[] | undefined;
2051
+ stable_id?: string | undefined;
2052
+ body?: string | undefined;
2053
+ title?: string | undefined;
2054
+ origin?: "personal" | "team" | undefined;
2055
+ deferred_until?: string | undefined;
2056
+ path_absolute?: string | undefined;
2057
+ }[];
1981
2058
  warnings?: {
1982
2059
  code: string;
1983
2060
  file: string;
@@ -1986,8 +2063,23 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1986
2063
  line?: number | undefined;
1987
2064
  }[] | undefined;
1988
2065
  }, {
1989
- action: "defer";
1990
- deferred: string[];
2066
+ action: "search";
2067
+ items: {
2068
+ path: string;
2069
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
2070
+ layer: "personal" | "team";
2071
+ maturity: "draft" | "verified" | "proven";
2072
+ area: "canonical" | "pending";
2073
+ status?: "active" | "rejected" | "deferred" | undefined;
2074
+ summary?: string | undefined;
2075
+ tags?: string[] | undefined;
2076
+ stable_id?: string | undefined;
2077
+ body?: string | undefined;
2078
+ title?: string | undefined;
2079
+ origin?: "personal" | "team" | undefined;
2080
+ deferred_until?: string | undefined;
2081
+ path_absolute?: string | undefined;
2082
+ }[];
1991
2083
  warnings?: {
1992
2084
  code: string;
1993
2085
  file: string;
@@ -1996,9 +2088,9 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1996
2088
  line?: number | undefined;
1997
2089
  }[] | undefined;
1998
2090
  }>]>;
1999
- type FabReviewOutput = z.infer<typeof FabReviewOutputSchema>;
2000
- declare const FabReviewOutputShape: {
2001
- readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "search", "defer"]>;
2091
+ type FabPendingOutput = z.infer<typeof FabPendingOutputSchema>;
2092
+ declare const FabPendingOutputShape: {
2093
+ readonly action: z.ZodEnum<["list", "search"]>;
2002
2094
  readonly items: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2003
2095
  pending_path: z.ZodString;
2004
2096
  pending_path_absolute: z.ZodOptional<z.ZodString>;
@@ -2084,6 +2176,28 @@ declare const FabReviewOutputShape: {
2084
2176
  deferred_until?: string | undefined;
2085
2177
  path_absolute?: string | undefined;
2086
2178
  }>]>, "many">>;
2179
+ readonly warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2180
+ code: z.ZodString;
2181
+ file: z.ZodString;
2182
+ line: z.ZodOptional<z.ZodNumber>;
2183
+ message: z.ZodOptional<z.ZodString>;
2184
+ action_hint: z.ZodString;
2185
+ }, "strip", z.ZodTypeAny, {
2186
+ code: string;
2187
+ file: string;
2188
+ action_hint: string;
2189
+ message?: string | undefined;
2190
+ line?: number | undefined;
2191
+ }, {
2192
+ code: string;
2193
+ file: string;
2194
+ action_hint: string;
2195
+ message?: string | undefined;
2196
+ line?: number | undefined;
2197
+ }>, "many">>;
2198
+ };
2199
+ declare const FabReviewOutputShape: {
2200
+ readonly action: z.ZodEnum<["approve", "reject", "modify", "defer"]>;
2087
2201
  readonly approved: z.ZodOptional<z.ZodArray<z.ZodObject<{
2088
2202
  pending_path: z.ZodString;
2089
2203
  stable_id: z.ZodString;
@@ -2126,6 +2240,13 @@ declare const fabReviewAnnotations: {
2126
2240
  readonly openWorldHint: false;
2127
2241
  readonly title: "Review pending knowledge entries";
2128
2242
  };
2243
+ declare const fabPendingAnnotations: {
2244
+ readonly readOnlyHint: true;
2245
+ readonly idempotentHint: true;
2246
+ readonly destructiveHint: false;
2247
+ readonly openWorldHint: false;
2248
+ readonly title: "Browse and search pending knowledge entries";
2249
+ };
2129
2250
  declare const citeContractMetricsSchema: z.ZodObject<{
2130
2251
  decisions_cited: z.ZodNumber;
2131
2252
  pitfalls_cited: z.ZodNumber;
@@ -2521,7 +2642,6 @@ declare const KnowledgeEntryFrontmatterSchema: z.ZodObject<{
2521
2642
  type: z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>;
2522
2643
  maturity: z.ZodEnum<["draft", "verified", "proven"]>;
2523
2644
  layer: z.ZodEnum<["personal", "team"]>;
2524
- layer_reason: z.ZodOptional<z.ZodString>;
2525
2645
  created_at: z.ZodString;
2526
2646
  }, "strip", z.ZodTypeAny, {
2527
2647
  created_at: string;
@@ -2529,14 +2649,12 @@ declare const KnowledgeEntryFrontmatterSchema: z.ZodObject<{
2529
2649
  id: string;
2530
2650
  layer: "personal" | "team";
2531
2651
  maturity: "draft" | "verified" | "proven";
2532
- layer_reason?: string | undefined;
2533
2652
  }, {
2534
2653
  created_at: string;
2535
2654
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
2536
2655
  id: string;
2537
2656
  layer: "personal" | "team";
2538
2657
  maturity: "draft" | "verified" | "proven";
2539
- layer_reason?: string | undefined;
2540
2658
  }>;
2541
2659
  type KnowledgeEntryFrontmatter = z.infer<typeof KnowledgeEntryFrontmatterSchema>;
2542
2660
  declare const KNOWLEDGE_TYPE_CODES: {
@@ -2554,4 +2672,4 @@ declare function parseKnowledgeId(id: string): {
2554
2672
  counter: number;
2555
2673
  } | null;
2556
2674
 
2557
- export { type ArchiveScanInput, type ArchiveScanOutput, type CiteContractMetrics, type CiteCoverageReport, type CiteLayerTypeBreakdown, 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_BY_LOCALE, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, archiveScanAnnotations, archiveScanInputSchema, archiveScanOutputSchema, citeContractMetricsSchema, citeCoverageReportSchema, citeLayerTypeBreakdownSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, recallAnnotations, recallInputSchema, recallOutputSchema, structuredWarningSchema };
2675
+ export { type ArchiveScanInput, type ArchiveScanOutput, type CiteContractMetrics, type CiteCoverageReport, type CiteLayerTypeBreakdown, type FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, type FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, type FabPendingInput, FabPendingInputSchema, FabPendingInputShape, type FabPendingOutput, FabPendingOutputSchema, FabPendingOutputShape, 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_BY_LOCALE, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, archiveScanAnnotations, archiveScanInputSchema, archiveScanOutputSchema, citeContractMetricsSchema, citeCoverageReportSchema, citeLayerTypeBreakdownSchema, fabExtractKnowledgeAnnotations, fabPendingAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, recallAnnotations, recallInputSchema, recallOutputSchema, structuredWarningSchema };