@fenglimg/fabric-shared 2.2.0-rc.9 → 2.3.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -184,7 +184,16 @@ declare const planContextOutputSchema: z.ZodObject<{
184
184
  stable_id: string;
185
185
  always_active?: boolean | undefined;
186
186
  }>, "many">;
187
- omitted_candidate_count: z.ZodOptional<z.ZodNumber>;
187
+ dropped: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ id: z.ZodString;
189
+ reason: z.ZodEnum<["retrieval_budget", "payload_budget"]>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ id: string;
192
+ reason: "retrieval_budget" | "payload_budget";
193
+ }, {
194
+ id: string;
195
+ reason: "retrieval_budget" | "payload_budget";
196
+ }>, "many">>;
188
197
  preflight_diagnostics: z.ZodArray<z.ZodObject<{
189
198
  code: z.ZodEnum<["missing_description", "empty_shell_suppressed"]>;
190
199
  severity: z.ZodLiteral<"warn">;
@@ -269,7 +278,10 @@ declare const planContextOutputSchema: z.ZodObject<{
269
278
  stable_ids?: string[] | undefined;
270
279
  }[];
271
280
  intent?: string | undefined;
272
- omitted_candidate_count?: number | undefined;
281
+ dropped?: {
282
+ id: string;
283
+ reason: "retrieval_budget" | "payload_budget";
284
+ }[] | undefined;
273
285
  warnings?: {
274
286
  code: string;
275
287
  file: string;
@@ -323,7 +335,10 @@ declare const planContextOutputSchema: z.ZodObject<{
323
335
  stable_ids?: string[] | undefined;
324
336
  }[];
325
337
  intent?: string | undefined;
326
- omitted_candidate_count?: number | undefined;
338
+ dropped?: {
339
+ id: string;
340
+ reason: "retrieval_budget" | "payload_budget";
341
+ }[] | undefined;
327
342
  warnings?: {
328
343
  code: string;
329
344
  file: string;
@@ -588,38 +603,8 @@ declare const recallOutputSchema: z.ZodObject<{
588
603
  revision_hash: z.ZodString;
589
604
  stale: z.ZodBoolean;
590
605
  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
606
  stable_id: z.ZodString;
607
+ rank: z.ZodNumber;
623
608
  description: z.ZodObject<{
624
609
  summary: z.ZodString;
625
610
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -672,7 +657,15 @@ declare const recallOutputSchema: z.ZodObject<{
672
657
  tags?: string[] | undefined;
673
658
  related?: string[] | undefined;
674
659
  }>;
675
- always_active: z.ZodOptional<z.ZodBoolean>;
660
+ read_path: z.ZodOptional<z.ZodString>;
661
+ store: z.ZodOptional<z.ZodObject<{
662
+ alias: z.ZodString;
663
+ }, "strip", z.ZodTypeAny, {
664
+ alias: string;
665
+ }, {
666
+ alias: string;
667
+ }>>;
668
+ body_in_context: z.ZodOptional<z.ZodBoolean>;
676
669
  }, "strip", z.ZodTypeAny, {
677
670
  description: {
678
671
  summary: string;
@@ -693,7 +686,12 @@ declare const recallOutputSchema: z.ZodObject<{
693
686
  related?: string[] | undefined;
694
687
  };
695
688
  stable_id: string;
696
- always_active?: boolean | undefined;
689
+ rank: number;
690
+ store?: {
691
+ alias: string;
692
+ } | undefined;
693
+ read_path?: string | undefined;
694
+ body_in_context?: boolean | undefined;
697
695
  }, {
698
696
  description: {
699
697
  summary: string;
@@ -714,32 +712,24 @@ declare const recallOutputSchema: z.ZodObject<{
714
712
  related?: string[] | undefined;
715
713
  };
716
714
  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;
732
- store?: {
733
- alias: string;
734
- } | undefined;
735
- }, {
736
- path: string;
737
- stable_id: string;
715
+ rank: number;
738
716
  store?: {
739
717
  alias: string;
740
718
  } | undefined;
719
+ read_path?: string | undefined;
720
+ body_in_context?: boolean | undefined;
741
721
  }>, "many">;
742
- omitted_candidate_count: z.ZodOptional<z.ZodNumber>;
722
+ intent: z.ZodOptional<z.ZodString>;
723
+ dropped: z.ZodOptional<z.ZodArray<z.ZodObject<{
724
+ id: z.ZodString;
725
+ reason: z.ZodEnum<["retrieval_budget", "payload_budget"]>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ id: string;
728
+ reason: "retrieval_budget" | "payload_budget";
729
+ }, {
730
+ id: string;
731
+ reason: "retrieval_budget" | "payload_budget";
732
+ }>, "many">>;
743
733
  preflight_diagnostics: z.ZodArray<z.ZodObject<{
744
734
  code: z.ZodEnum<["missing_description", "empty_shell_suppressed"]>;
745
735
  severity: z.ZodLiteral<"warn">;
@@ -786,23 +776,6 @@ declare const recallOutputSchema: z.ZodObject<{
786
776
  next_steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
787
777
  }, "strip", z.ZodTypeAny, {
788
778
  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
779
  description: {
807
780
  summary: string;
808
781
  intent_clues: string[];
@@ -822,8 +795,15 @@ declare const recallOutputSchema: z.ZodObject<{
822
795
  related?: string[] | undefined;
823
796
  };
824
797
  stable_id: string;
825
- always_active?: boolean | undefined;
798
+ rank: number;
799
+ store?: {
800
+ alias: string;
801
+ } | undefined;
802
+ read_path?: string | undefined;
803
+ body_in_context?: boolean | undefined;
826
804
  }[];
805
+ stale: boolean;
806
+ revision_hash: string;
827
807
  preflight_diagnostics: {
828
808
  code: "missing_description" | "empty_shell_suppressed";
829
809
  message: string;
@@ -833,7 +813,10 @@ declare const recallOutputSchema: z.ZodObject<{
833
813
  }[];
834
814
  directive: string;
835
815
  intent?: string | undefined;
836
- omitted_candidate_count?: number | undefined;
816
+ dropped?: {
817
+ id: string;
818
+ reason: "retrieval_budget" | "payload_budget";
819
+ }[] | undefined;
837
820
  warnings?: {
838
821
  code: string;
839
822
  file: string;
@@ -848,23 +831,6 @@ declare const recallOutputSchema: z.ZodObject<{
848
831
  next_steps?: string[] | undefined;
849
832
  }, {
850
833
  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
834
  description: {
869
835
  summary: string;
870
836
  intent_clues: string[];
@@ -884,8 +850,15 @@ declare const recallOutputSchema: z.ZodObject<{
884
850
  related?: string[] | undefined;
885
851
  };
886
852
  stable_id: string;
887
- always_active?: boolean | undefined;
853
+ rank: number;
854
+ store?: {
855
+ alias: string;
856
+ } | undefined;
857
+ read_path?: string | undefined;
858
+ body_in_context?: boolean | undefined;
888
859
  }[];
860
+ stale: boolean;
861
+ revision_hash: string;
889
862
  preflight_diagnostics: {
890
863
  code: "missing_description" | "empty_shell_suppressed";
891
864
  message: string;
@@ -895,7 +868,10 @@ declare const recallOutputSchema: z.ZodObject<{
895
868
  }[];
896
869
  directive: string;
897
870
  intent?: string | undefined;
898
- omitted_candidate_count?: number | undefined;
871
+ dropped?: {
872
+ id: string;
873
+ reason: "retrieval_budget" | "payload_budget";
874
+ }[] | undefined;
899
875
  warnings?: {
900
876
  code: string;
901
877
  file: string;
@@ -967,12 +943,12 @@ declare const archiveScanOutputSchema: z.ZodObject<{
967
943
  line?: number | undefined;
968
944
  }>, "many">>;
969
945
  }, "strip", z.ZodTypeAny, {
970
- anchor_ts: number | null;
971
- session_ids: string[];
972
946
  dropped: {
973
947
  session_id: string;
974
948
  reason: "user_dismissed" | "cooldown" | "no_new_signal";
975
949
  }[];
950
+ anchor_ts: number | null;
951
+ session_ids: string[];
976
952
  covered_through_ts: number | null;
977
953
  already_proposed_keys: string[];
978
954
  warnings?: {
@@ -983,12 +959,12 @@ declare const archiveScanOutputSchema: z.ZodObject<{
983
959
  line?: number | undefined;
984
960
  }[] | undefined;
985
961
  }, {
986
- anchor_ts: number | null;
987
- session_ids: string[];
988
962
  dropped: {
989
963
  session_id: string;
990
964
  reason: "user_dismissed" | "cooldown" | "no_new_signal";
991
965
  }[];
966
+ anchor_ts: number | null;
967
+ session_ids: string[];
992
968
  covered_through_ts: number | null;
993
969
  already_proposed_keys: string[];
994
970
  warnings?: {
@@ -1017,12 +993,10 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1017
993
  user_messages_summary: z.ZodString;
1018
994
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1019
995
  slug: z.ZodString;
1020
- layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1021
- semantic_scope: z.ZodOptional<z.ZodString>;
996
+ audience: z.ZodOptional<z.ZodString>;
1022
997
  proposed_reason: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1023
998
  session_context: z.ZodString;
1024
- relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1025
- relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
999
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1026
1000
  intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1027
1001
  tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1028
1002
  impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1038,15 +1012,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1038
1012
  recent_paths: string[];
1039
1013
  user_messages_summary: string;
1040
1014
  slug: string;
1041
- semantic_scope?: string | undefined;
1042
- relevance_scope?: "narrow" | "broad" | undefined;
1043
- relevance_paths?: string[] | undefined;
1044
- layer?: "personal" | "team" | undefined;
1015
+ paths?: string[] | undefined;
1045
1016
  intent_clues?: string[] | undefined;
1046
1017
  tech_stack?: string[] | undefined;
1047
1018
  impact?: string[] | undefined;
1048
1019
  must_read_if?: string | undefined;
1049
1020
  tags?: string[] | undefined;
1021
+ audience?: string | undefined;
1050
1022
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1051
1023
  evidence_paths?: string[] | undefined;
1052
1024
  }, {
@@ -1057,15 +1029,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1057
1029
  recent_paths: string[];
1058
1030
  user_messages_summary: string;
1059
1031
  slug: string;
1060
- semantic_scope?: string | undefined;
1061
- relevance_scope?: "narrow" | "broad" | undefined;
1062
- relevance_paths?: string[] | undefined;
1063
- layer?: "personal" | "team" | undefined;
1032
+ paths?: string[] | undefined;
1064
1033
  intent_clues?: string[] | undefined;
1065
1034
  tech_stack?: string[] | undefined;
1066
1035
  impact?: string[] | undefined;
1067
1036
  must_read_if?: string | undefined;
1068
1037
  tags?: string[] | undefined;
1038
+ audience?: string | undefined;
1069
1039
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1070
1040
  evidence_paths?: string[] | undefined;
1071
1041
  }>, {
@@ -1076,15 +1046,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1076
1046
  recent_paths: string[];
1077
1047
  user_messages_summary: string;
1078
1048
  slug: string;
1079
- semantic_scope?: string | undefined;
1080
- relevance_scope?: "narrow" | "broad" | undefined;
1081
- relevance_paths?: string[] | undefined;
1082
- layer?: "personal" | "team" | undefined;
1049
+ paths?: string[] | undefined;
1083
1050
  intent_clues?: string[] | undefined;
1084
1051
  tech_stack?: string[] | undefined;
1085
1052
  impact?: string[] | undefined;
1086
1053
  must_read_if?: string | undefined;
1087
1054
  tags?: string[] | undefined;
1055
+ audience?: string | undefined;
1088
1056
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1089
1057
  evidence_paths?: string[] | undefined;
1090
1058
  }, {
@@ -1095,15 +1063,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1095
1063
  recent_paths: string[];
1096
1064
  user_messages_summary: string;
1097
1065
  slug: string;
1098
- semantic_scope?: string | undefined;
1099
- relevance_scope?: "narrow" | "broad" | undefined;
1100
- relevance_paths?: string[] | undefined;
1101
- layer?: "personal" | "team" | undefined;
1066
+ paths?: string[] | undefined;
1102
1067
  intent_clues?: string[] | undefined;
1103
1068
  tech_stack?: string[] | undefined;
1104
1069
  impact?: string[] | undefined;
1105
1070
  must_read_if?: string | undefined;
1106
1071
  tags?: string[] | undefined;
1072
+ audience?: string | undefined;
1107
1073
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1108
1074
  evidence_paths?: string[] | undefined;
1109
1075
  }>;
@@ -1113,12 +1079,10 @@ declare const FabExtractKnowledgeInputShape: {
1113
1079
  user_messages_summary: z.ZodString;
1114
1080
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1115
1081
  slug: z.ZodString;
1116
- layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1117
- semantic_scope: z.ZodOptional<z.ZodString>;
1082
+ audience: z.ZodOptional<z.ZodString>;
1118
1083
  proposed_reason: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1119
1084
  session_context: z.ZodString;
1120
- relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1121
- relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1085
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1122
1086
  intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1123
1087
  tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1124
1088
  impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1180,60 +1144,6 @@ declare const fabExtractKnowledgeAnnotations: {
1180
1144
  readonly title: "Extract pending knowledge entry";
1181
1145
  };
1182
1146
  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
1147
  action: z.ZodLiteral<"approve">;
1238
1148
  pending_paths: z.ZodArray<z.ZodString, "many">;
1239
1149
  }, "strip", z.ZodTypeAny, {
@@ -1442,8 +1352,24 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1442
1352
  title?: string | undefined;
1443
1353
  };
1444
1354
  }>, z.ZodObject<{
1445
- action: z.ZodLiteral<"search">;
1446
- query: z.ZodString;
1355
+ action: z.ZodLiteral<"defer">;
1356
+ pending_paths: z.ZodArray<z.ZodString, "many">;
1357
+ until: z.ZodOptional<z.ZodString>;
1358
+ reason: z.ZodOptional<z.ZodString>;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ action: "defer";
1361
+ pending_paths: string[];
1362
+ reason?: string | undefined;
1363
+ until?: string | undefined;
1364
+ }, {
1365
+ action: "defer";
1366
+ pending_paths: string[];
1367
+ reason?: string | undefined;
1368
+ until?: string | undefined;
1369
+ }>]>;
1370
+ type FabReviewInput = z.infer<typeof FabReviewInputSchema>;
1371
+ declare const FabPendingInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1372
+ action: z.ZodLiteral<"list">;
1447
1373
  filters: z.ZodOptional<z.ZodObject<{
1448
1374
  type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1449
1375
  layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
@@ -1473,8 +1399,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1473
1399
  include_body?: boolean | undefined;
1474
1400
  }>>;
1475
1401
  }, "strip", z.ZodTypeAny, {
1476
- action: "search";
1477
- query: string;
1402
+ action: "list";
1478
1403
  filters?: {
1479
1404
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1480
1405
  layer?: "personal" | "team" | "both" | undefined;
@@ -1486,8 +1411,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1486
1411
  include_body?: boolean | undefined;
1487
1412
  } | undefined;
1488
1413
  }, {
1489
- action: "search";
1490
- query: string;
1414
+ action: "list";
1491
1415
  filters?: {
1492
1416
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1493
1417
  layer?: "personal" | "team" | "both" | undefined;
@@ -1499,25 +1423,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1499
1423
  include_body?: boolean | undefined;
1500
1424
  } | undefined;
1501
1425
  }>, 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<{
1426
+ action: z.ZodLiteral<"search">;
1427
+ query: z.ZodString;
1428
+ filters: z.ZodOptional<z.ZodObject<{
1521
1429
  type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1522
1430
  layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
1523
1431
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
@@ -1545,26 +1453,88 @@ declare const FabReviewInputShape: {
1545
1453
  include_deferred?: boolean | undefined;
1546
1454
  include_body?: boolean | undefined;
1547
1455
  }>>;
1548
- readonly pending_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1549
- readonly pending_path: z.ZodOptional<z.ZodString>;
1550
- readonly reason: z.ZodOptional<z.ZodString>;
1551
- readonly changes: z.ZodOptional<z.ZodObject<{
1552
- title: z.ZodOptional<z.ZodString>;
1553
- summary: z.ZodOptional<z.ZodString>;
1554
- layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1555
- maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1556
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1557
- relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1558
- relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1559
- semantic_scope: z.ZodOptional<z.ZodString>;
1560
- related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1561
- }, "strip", z.ZodTypeAny, {
1562
- semantic_scope?: string | undefined;
1563
- relevance_scope?: "narrow" | "broad" | undefined;
1564
- relevance_paths?: string[] | undefined;
1565
- layer?: "personal" | "team" | undefined;
1566
- summary?: string | undefined;
1567
- maturity?: "draft" | "verified" | "proven" | undefined;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ action: "search";
1458
+ query: string;
1459
+ filters?: {
1460
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1461
+ layer?: "personal" | "team" | "both" | undefined;
1462
+ maturity?: "draft" | "verified" | "proven" | undefined;
1463
+ tags?: string[] | undefined;
1464
+ created_after?: string | undefined;
1465
+ include_rejected?: boolean | undefined;
1466
+ include_deferred?: boolean | undefined;
1467
+ include_body?: boolean | undefined;
1468
+ } | undefined;
1469
+ }, {
1470
+ action: "search";
1471
+ query: string;
1472
+ filters?: {
1473
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1474
+ layer?: "personal" | "team" | "both" | undefined;
1475
+ maturity?: "draft" | "verified" | "proven" | undefined;
1476
+ tags?: string[] | undefined;
1477
+ created_after?: string | undefined;
1478
+ include_rejected?: boolean | undefined;
1479
+ include_deferred?: boolean | undefined;
1480
+ include_body?: boolean | undefined;
1481
+ } | undefined;
1482
+ }>]>;
1483
+ type FabPendingInput = z.infer<typeof FabPendingInputSchema>;
1484
+ declare const FabPendingInputShape: {
1485
+ readonly action: z.ZodEnum<["list", "search"]>;
1486
+ readonly filters: z.ZodOptional<z.ZodObject<{
1487
+ type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1488
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
1489
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1490
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1491
+ created_after: z.ZodOptional<z.ZodString>;
1492
+ include_rejected: z.ZodOptional<z.ZodBoolean>;
1493
+ include_deferred: z.ZodOptional<z.ZodBoolean>;
1494
+ include_body: z.ZodOptional<z.ZodBoolean>;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1497
+ layer?: "personal" | "team" | "both" | undefined;
1498
+ maturity?: "draft" | "verified" | "proven" | undefined;
1499
+ tags?: string[] | undefined;
1500
+ created_after?: string | undefined;
1501
+ include_rejected?: boolean | undefined;
1502
+ include_deferred?: boolean | undefined;
1503
+ include_body?: boolean | undefined;
1504
+ }, {
1505
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1506
+ layer?: "personal" | "team" | "both" | undefined;
1507
+ maturity?: "draft" | "verified" | "proven" | undefined;
1508
+ tags?: string[] | undefined;
1509
+ created_after?: string | undefined;
1510
+ include_rejected?: boolean | undefined;
1511
+ include_deferred?: boolean | undefined;
1512
+ include_body?: boolean | undefined;
1513
+ }>>;
1514
+ readonly query: z.ZodOptional<z.ZodString>;
1515
+ };
1516
+ declare const FabReviewInputShape: {
1517
+ readonly action: z.ZodEnum<["approve", "reject", "modify", "modify-content", "modify-layer", "defer"]>;
1518
+ readonly pending_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1519
+ readonly pending_path: z.ZodOptional<z.ZodString>;
1520
+ readonly reason: z.ZodOptional<z.ZodString>;
1521
+ readonly changes: z.ZodOptional<z.ZodObject<{
1522
+ title: z.ZodOptional<z.ZodString>;
1523
+ summary: z.ZodOptional<z.ZodString>;
1524
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1525
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1526
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1527
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1528
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1529
+ semantic_scope: z.ZodOptional<z.ZodString>;
1530
+ related: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1531
+ }, "strip", z.ZodTypeAny, {
1532
+ semantic_scope?: string | undefined;
1533
+ relevance_scope?: "narrow" | "broad" | undefined;
1534
+ relevance_paths?: string[] | undefined;
1535
+ layer?: "personal" | "team" | undefined;
1536
+ summary?: string | undefined;
1537
+ maturity?: "draft" | "verified" | "proven" | undefined;
1568
1538
  tags?: string[] | undefined;
1569
1539
  related?: string[] | undefined;
1570
1540
  title?: string | undefined;
@@ -1579,50 +1549,19 @@ declare const FabReviewInputShape: {
1579
1549
  related?: string[] | undefined;
1580
1550
  title?: string | undefined;
1581
1551
  }>>;
1582
- readonly query: z.ZodOptional<z.ZodString>;
1583
1552
  readonly until: z.ZodOptional<z.ZodString>;
1584
1553
  };
1585
1554
  declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1586
- action: z.ZodLiteral<"list">;
1587
- items: z.ZodArray<z.ZodObject<{
1555
+ action: z.ZodLiteral<"approve">;
1556
+ approved: z.ZodArray<z.ZodObject<{
1588
1557
  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>;
1558
+ stable_id: z.ZodString;
1600
1559
  }, "strip", z.ZodTypeAny, {
1601
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1602
- layer: "personal" | "team";
1603
1560
  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;
1561
+ stable_id: string;
1613
1562
  }, {
1614
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1615
- layer: "personal" | "team";
1616
1563
  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;
1564
+ stable_id: string;
1626
1565
  }>, "many">;
1627
1566
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1628
1567
  code: z.ZodString;
@@ -1644,21 +1583,11 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1644
1583
  line?: number | undefined;
1645
1584
  }>, "many">>;
1646
1585
  }, "strip", z.ZodTypeAny, {
1647
- action: "list";
1648
- items: {
1649
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1650
- layer: "personal" | "team";
1586
+ approved: {
1651
1587
  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;
1588
+ stable_id: string;
1661
1589
  }[];
1590
+ action: "approve";
1662
1591
  warnings?: {
1663
1592
  code: string;
1664
1593
  file: string;
@@ -1667,21 +1596,11 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1667
1596
  line?: number | undefined;
1668
1597
  }[] | undefined;
1669
1598
  }, {
1670
- action: "list";
1671
- items: {
1672
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1673
- layer: "personal" | "team";
1599
+ approved: {
1674
1600
  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;
1601
+ stable_id: string;
1684
1602
  }[];
1603
+ action: "approve";
1685
1604
  warnings?: {
1686
1605
  code: string;
1687
1606
  file: string;
@@ -1690,17 +1609,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1690
1609
  line?: number | undefined;
1691
1610
  }[] | undefined;
1692
1611
  }>, 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">;
1612
+ action: z.ZodLiteral<"reject">;
1613
+ rejected: z.ZodArray<z.ZodString, "many">;
1704
1614
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1705
1615
  code: z.ZodString;
1706
1616
  file: z.ZodString;
@@ -1721,11 +1631,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1721
1631
  line?: number | undefined;
1722
1632
  }>, "many">>;
1723
1633
  }, "strip", z.ZodTypeAny, {
1724
- approved: {
1725
- pending_path: string;
1726
- stable_id: string;
1727
- }[];
1728
- action: "approve";
1634
+ action: "reject";
1635
+ rejected: string[];
1729
1636
  warnings?: {
1730
1637
  code: string;
1731
1638
  file: string;
@@ -1734,11 +1641,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1734
1641
  line?: number | undefined;
1735
1642
  }[] | undefined;
1736
1643
  }, {
1737
- approved: {
1738
- pending_path: string;
1739
- stable_id: string;
1740
- }[];
1741
- action: "approve";
1644
+ action: "reject";
1645
+ rejected: string[];
1742
1646
  warnings?: {
1743
1647
  code: string;
1744
1648
  file: string;
@@ -1747,8 +1651,10 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1747
1651
  line?: number | undefined;
1748
1652
  }[] | undefined;
1749
1653
  }>, z.ZodObject<{
1750
- action: z.ZodLiteral<"reject">;
1751
- rejected: z.ZodArray<z.ZodString, "many">;
1654
+ action: z.ZodLiteral<"modify">;
1655
+ pending_path: z.ZodString;
1656
+ prior_stable_id: z.ZodOptional<z.ZodString>;
1657
+ new_stable_id: z.ZodOptional<z.ZodString>;
1752
1658
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1753
1659
  code: z.ZodString;
1754
1660
  file: z.ZodString;
@@ -1769,8 +1675,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1769
1675
  line?: number | undefined;
1770
1676
  }>, "many">>;
1771
1677
  }, "strip", z.ZodTypeAny, {
1772
- action: "reject";
1773
- rejected: string[];
1678
+ pending_path: string;
1679
+ action: "modify";
1774
1680
  warnings?: {
1775
1681
  code: string;
1776
1682
  file: string;
@@ -1778,9 +1684,11 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1778
1684
  message?: string | undefined;
1779
1685
  line?: number | undefined;
1780
1686
  }[] | undefined;
1687
+ prior_stable_id?: string | undefined;
1688
+ new_stable_id?: string | undefined;
1781
1689
  }, {
1782
- action: "reject";
1783
- rejected: string[];
1690
+ pending_path: string;
1691
+ action: "modify";
1784
1692
  warnings?: {
1785
1693
  code: string;
1786
1694
  file: string;
@@ -1788,11 +1696,11 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1788
1696
  message?: string | undefined;
1789
1697
  line?: number | undefined;
1790
1698
  }[] | undefined;
1699
+ prior_stable_id?: string | undefined;
1700
+ new_stable_id?: string | undefined;
1791
1701
  }>, 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>;
1702
+ action: z.ZodLiteral<"defer">;
1703
+ deferred: z.ZodArray<z.ZodString, "many">;
1796
1704
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1797
1705
  code: z.ZodString;
1798
1706
  file: z.ZodString;
@@ -1813,8 +1721,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1813
1721
  line?: number | undefined;
1814
1722
  }>, "many">>;
1815
1723
  }, "strip", z.ZodTypeAny, {
1816
- pending_path: string;
1817
- action: "modify";
1724
+ action: "defer";
1725
+ deferred: string[];
1818
1726
  warnings?: {
1819
1727
  code: string;
1820
1728
  file: string;
@@ -1822,11 +1730,9 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1822
1730
  message?: string | undefined;
1823
1731
  line?: number | undefined;
1824
1732
  }[] | undefined;
1825
- prior_stable_id?: string | undefined;
1826
- new_stable_id?: string | undefined;
1827
1733
  }, {
1828
- pending_path: string;
1829
- action: "modify";
1734
+ action: "defer";
1735
+ deferred: string[];
1830
1736
  warnings?: {
1831
1737
  code: string;
1832
1738
  file: string;
@@ -1834,14 +1740,13 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1834
1740
  message?: string | undefined;
1835
1741
  line?: number | undefined;
1836
1742
  }[] | undefined;
1837
- prior_stable_id?: string | undefined;
1838
- new_stable_id?: string | undefined;
1839
- }>, z.ZodObject<{
1840
- action: z.ZodLiteral<"search">;
1743
+ }>]>;
1744
+ type FabReviewOutput = z.infer<typeof FabReviewOutputSchema>;
1745
+ declare const FabPendingOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1746
+ action: z.ZodLiteral<"list">;
1841
1747
  items: z.ZodArray<z.ZodObject<{
1842
- area: z.ZodEnum<["pending", "canonical"]>;
1843
- path: z.ZodString;
1844
- path_absolute: z.ZodOptional<z.ZodString>;
1748
+ pending_path: z.ZodString;
1749
+ pending_path_absolute: z.ZodOptional<z.ZodString>;
1845
1750
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1846
1751
  layer: z.ZodEnum<["team", "personal"]>;
1847
1752
  maturity: z.ZodEnum<["draft", "verified", "proven"]>;
@@ -1852,37 +1757,32 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1852
1757
  status: z.ZodOptional<z.ZodEnum<["active", "rejected", "deferred"]>>;
1853
1758
  deferred_until: z.ZodOptional<z.ZodString>;
1854
1759
  body: z.ZodOptional<z.ZodString>;
1855
- stable_id: z.ZodOptional<z.ZodString>;
1856
1760
  }, "strip", z.ZodTypeAny, {
1857
- path: string;
1858
1761
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1859
1762
  layer: "personal" | "team";
1763
+ pending_path: string;
1860
1764
  maturity: "draft" | "verified" | "proven";
1861
- area: "canonical" | "pending";
1862
1765
  status?: "active" | "rejected" | "deferred" | undefined;
1863
1766
  summary?: string | undefined;
1864
1767
  tags?: string[] | undefined;
1865
- stable_id?: string | undefined;
1866
1768
  body?: string | undefined;
1867
1769
  title?: string | undefined;
1770
+ pending_path_absolute?: string | undefined;
1868
1771
  origin?: "personal" | "team" | undefined;
1869
1772
  deferred_until?: string | undefined;
1870
- path_absolute?: string | undefined;
1871
1773
  }, {
1872
- path: string;
1873
1774
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1874
1775
  layer: "personal" | "team";
1776
+ pending_path: string;
1875
1777
  maturity: "draft" | "verified" | "proven";
1876
- area: "canonical" | "pending";
1877
1778
  status?: "active" | "rejected" | "deferred" | undefined;
1878
1779
  summary?: string | undefined;
1879
1780
  tags?: string[] | undefined;
1880
- stable_id?: string | undefined;
1881
1781
  body?: string | undefined;
1882
1782
  title?: string | undefined;
1783
+ pending_path_absolute?: string | undefined;
1883
1784
  origin?: "personal" | "team" | undefined;
1884
1785
  deferred_until?: string | undefined;
1885
- path_absolute?: string | undefined;
1886
1786
  }>, "many">;
1887
1787
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1888
1788
  code: z.ZodString;
@@ -1904,22 +1804,20 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1904
1804
  line?: number | undefined;
1905
1805
  }>, "many">>;
1906
1806
  }, "strip", z.ZodTypeAny, {
1907
- action: "search";
1807
+ action: "list";
1908
1808
  items: {
1909
- path: string;
1910
1809
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1911
1810
  layer: "personal" | "team";
1811
+ pending_path: string;
1912
1812
  maturity: "draft" | "verified" | "proven";
1913
- area: "canonical" | "pending";
1914
1813
  status?: "active" | "rejected" | "deferred" | undefined;
1915
1814
  summary?: string | undefined;
1916
1815
  tags?: string[] | undefined;
1917
- stable_id?: string | undefined;
1918
1816
  body?: string | undefined;
1919
1817
  title?: string | undefined;
1818
+ pending_path_absolute?: string | undefined;
1920
1819
  origin?: "personal" | "team" | undefined;
1921
1820
  deferred_until?: string | undefined;
1922
- path_absolute?: string | undefined;
1923
1821
  }[];
1924
1822
  warnings?: {
1925
1823
  code: string;
@@ -1929,22 +1827,20 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1929
1827
  line?: number | undefined;
1930
1828
  }[] | undefined;
1931
1829
  }, {
1932
- action: "search";
1830
+ action: "list";
1933
1831
  items: {
1934
- path: string;
1935
1832
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1936
1833
  layer: "personal" | "team";
1834
+ pending_path: string;
1937
1835
  maturity: "draft" | "verified" | "proven";
1938
- area: "canonical" | "pending";
1939
1836
  status?: "active" | "rejected" | "deferred" | undefined;
1940
1837
  summary?: string | undefined;
1941
1838
  tags?: string[] | undefined;
1942
- stable_id?: string | undefined;
1943
1839
  body?: string | undefined;
1944
1840
  title?: string | undefined;
1841
+ pending_path_absolute?: string | undefined;
1945
1842
  origin?: "personal" | "team" | undefined;
1946
1843
  deferred_until?: string | undefined;
1947
- path_absolute?: string | undefined;
1948
1844
  }[];
1949
1845
  warnings?: {
1950
1846
  code: string;
@@ -1954,8 +1850,53 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1954
1850
  line?: number | undefined;
1955
1851
  }[] | undefined;
1956
1852
  }>, z.ZodObject<{
1957
- action: z.ZodLiteral<"defer">;
1958
- deferred: z.ZodArray<z.ZodString, "many">;
1853
+ action: z.ZodLiteral<"search">;
1854
+ items: z.ZodArray<z.ZodObject<{
1855
+ area: z.ZodEnum<["pending", "canonical"]>;
1856
+ path: z.ZodString;
1857
+ path_absolute: z.ZodOptional<z.ZodString>;
1858
+ type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1859
+ layer: z.ZodEnum<["team", "personal"]>;
1860
+ maturity: z.ZodEnum<["draft", "verified", "proven"]>;
1861
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1862
+ title: z.ZodOptional<z.ZodString>;
1863
+ summary: z.ZodOptional<z.ZodString>;
1864
+ origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1865
+ status: z.ZodOptional<z.ZodEnum<["active", "rejected", "deferred"]>>;
1866
+ deferred_until: z.ZodOptional<z.ZodString>;
1867
+ body: z.ZodOptional<z.ZodString>;
1868
+ stable_id: z.ZodOptional<z.ZodString>;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ path: string;
1871
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1872
+ layer: "personal" | "team";
1873
+ maturity: "draft" | "verified" | "proven";
1874
+ area: "canonical" | "pending";
1875
+ status?: "active" | "rejected" | "deferred" | undefined;
1876
+ summary?: string | undefined;
1877
+ tags?: string[] | undefined;
1878
+ stable_id?: string | undefined;
1879
+ body?: string | undefined;
1880
+ title?: string | undefined;
1881
+ origin?: "personal" | "team" | undefined;
1882
+ deferred_until?: string | undefined;
1883
+ path_absolute?: string | undefined;
1884
+ }, {
1885
+ path: string;
1886
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1887
+ layer: "personal" | "team";
1888
+ maturity: "draft" | "verified" | "proven";
1889
+ area: "canonical" | "pending";
1890
+ status?: "active" | "rejected" | "deferred" | undefined;
1891
+ summary?: string | undefined;
1892
+ tags?: string[] | undefined;
1893
+ stable_id?: string | undefined;
1894
+ body?: string | undefined;
1895
+ title?: string | undefined;
1896
+ origin?: "personal" | "team" | undefined;
1897
+ deferred_until?: string | undefined;
1898
+ path_absolute?: string | undefined;
1899
+ }>, "many">;
1959
1900
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1960
1901
  code: z.ZodString;
1961
1902
  file: z.ZodString;
@@ -1976,8 +1917,23 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1976
1917
  line?: number | undefined;
1977
1918
  }>, "many">>;
1978
1919
  }, "strip", z.ZodTypeAny, {
1979
- action: "defer";
1980
- deferred: string[];
1920
+ action: "search";
1921
+ items: {
1922
+ path: string;
1923
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1924
+ layer: "personal" | "team";
1925
+ maturity: "draft" | "verified" | "proven";
1926
+ area: "canonical" | "pending";
1927
+ status?: "active" | "rejected" | "deferred" | undefined;
1928
+ summary?: string | undefined;
1929
+ tags?: string[] | undefined;
1930
+ stable_id?: string | undefined;
1931
+ body?: string | undefined;
1932
+ title?: string | undefined;
1933
+ origin?: "personal" | "team" | undefined;
1934
+ deferred_until?: string | undefined;
1935
+ path_absolute?: string | undefined;
1936
+ }[];
1981
1937
  warnings?: {
1982
1938
  code: string;
1983
1939
  file: string;
@@ -1986,8 +1942,23 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1986
1942
  line?: number | undefined;
1987
1943
  }[] | undefined;
1988
1944
  }, {
1989
- action: "defer";
1990
- deferred: string[];
1945
+ action: "search";
1946
+ items: {
1947
+ path: string;
1948
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1949
+ layer: "personal" | "team";
1950
+ maturity: "draft" | "verified" | "proven";
1951
+ area: "canonical" | "pending";
1952
+ status?: "active" | "rejected" | "deferred" | undefined;
1953
+ summary?: string | undefined;
1954
+ tags?: string[] | undefined;
1955
+ stable_id?: string | undefined;
1956
+ body?: string | undefined;
1957
+ title?: string | undefined;
1958
+ origin?: "personal" | "team" | undefined;
1959
+ deferred_until?: string | undefined;
1960
+ path_absolute?: string | undefined;
1961
+ }[];
1991
1962
  warnings?: {
1992
1963
  code: string;
1993
1964
  file: string;
@@ -1996,9 +1967,9 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1996
1967
  line?: number | undefined;
1997
1968
  }[] | undefined;
1998
1969
  }>]>;
1999
- type FabReviewOutput = z.infer<typeof FabReviewOutputSchema>;
2000
- declare const FabReviewOutputShape: {
2001
- readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "search", "defer"]>;
1970
+ type FabPendingOutput = z.infer<typeof FabPendingOutputSchema>;
1971
+ declare const FabPendingOutputShape: {
1972
+ readonly action: z.ZodEnum<["list", "search"]>;
2002
1973
  readonly items: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
2003
1974
  pending_path: z.ZodString;
2004
1975
  pending_path_absolute: z.ZodOptional<z.ZodString>;
@@ -2084,6 +2055,28 @@ declare const FabReviewOutputShape: {
2084
2055
  deferred_until?: string | undefined;
2085
2056
  path_absolute?: string | undefined;
2086
2057
  }>]>, "many">>;
2058
+ readonly warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2059
+ code: z.ZodString;
2060
+ file: z.ZodString;
2061
+ line: z.ZodOptional<z.ZodNumber>;
2062
+ message: z.ZodOptional<z.ZodString>;
2063
+ action_hint: z.ZodString;
2064
+ }, "strip", z.ZodTypeAny, {
2065
+ code: string;
2066
+ file: string;
2067
+ action_hint: string;
2068
+ message?: string | undefined;
2069
+ line?: number | undefined;
2070
+ }, {
2071
+ code: string;
2072
+ file: string;
2073
+ action_hint: string;
2074
+ message?: string | undefined;
2075
+ line?: number | undefined;
2076
+ }>, "many">>;
2077
+ };
2078
+ declare const FabReviewOutputShape: {
2079
+ readonly action: z.ZodEnum<["approve", "reject", "modify", "defer"]>;
2087
2080
  readonly approved: z.ZodOptional<z.ZodArray<z.ZodObject<{
2088
2081
  pending_path: z.ZodString;
2089
2082
  stable_id: z.ZodString;
@@ -2126,6 +2119,13 @@ declare const fabReviewAnnotations: {
2126
2119
  readonly openWorldHint: false;
2127
2120
  readonly title: "Review pending knowledge entries";
2128
2121
  };
2122
+ declare const fabPendingAnnotations: {
2123
+ readonly readOnlyHint: true;
2124
+ readonly idempotentHint: true;
2125
+ readonly destructiveHint: false;
2126
+ readonly openWorldHint: false;
2127
+ readonly title: "Browse and search pending knowledge entries";
2128
+ };
2129
2129
  declare const citeContractMetricsSchema: z.ZodObject<{
2130
2130
  decisions_cited: z.ZodNumber;
2131
2131
  pitfalls_cited: z.ZodNumber;
@@ -2554,4 +2554,4 @@ declare function parseKnowledgeId(id: string): {
2554
2554
  counter: number;
2555
2555
  } | null;
2556
2556
 
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 };
2557
+ 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 };