@fenglimg/fabric-shared 2.0.0-rc.35 → 2.0.0-rc.37

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.
@@ -469,6 +469,7 @@ declare const planContextOutputSchema: z.ZodObject<{
469
469
  }>, "many">>;
470
470
  auto_healed: z.ZodOptional<z.ZodBoolean>;
471
471
  previous_revision_hash: z.ZodOptional<z.ZodString>;
472
+ redirects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
472
473
  }, "strip", z.ZodTypeAny, {
473
474
  entries: {
474
475
  path: string;
@@ -555,6 +556,7 @@ declare const planContextOutputSchema: z.ZodObject<{
555
556
  }[] | undefined;
556
557
  auto_healed?: boolean | undefined;
557
558
  previous_revision_hash?: string | undefined;
559
+ redirects?: Record<string, string> | undefined;
558
560
  }, {
559
561
  entries: {
560
562
  path: string;
@@ -641,6 +643,7 @@ declare const planContextOutputSchema: z.ZodObject<{
641
643
  }[] | undefined;
642
644
  auto_healed?: boolean | undefined;
643
645
  previous_revision_hash?: string | undefined;
646
+ redirects?: Record<string, string> | undefined;
644
647
  }>;
645
648
  declare const planContextAnnotations: {
646
649
  readonly readOnlyHint: true;
@@ -774,13 +777,558 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
774
777
  stable_id: string;
775
778
  severity: "warn";
776
779
  }>, "many">;
777
- redirect_to: z.ZodOptional<z.ZodObject<{
780
+ redirect_to: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
778
781
  stable_id: z.ZodString;
779
782
  }, "strip", z.ZodTypeAny, {
780
783
  stable_id: string;
781
784
  }, {
782
785
  stable_id: string;
783
- }>>;
786
+ }>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
787
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
788
+ code: z.ZodString;
789
+ file: z.ZodString;
790
+ line: z.ZodOptional<z.ZodNumber>;
791
+ action_hint: z.ZodString;
792
+ }, "strip", z.ZodTypeAny, {
793
+ code: string;
794
+ file: string;
795
+ action_hint: string;
796
+ line?: number | undefined;
797
+ }, {
798
+ code: string;
799
+ file: string;
800
+ action_hint: string;
801
+ line?: number | undefined;
802
+ }>, "many">>;
803
+ }, "strip", z.ZodTypeAny, {
804
+ revision_hash: string;
805
+ selected_stable_ids: string[];
806
+ rules: {
807
+ path: string;
808
+ stable_id: string;
809
+ level: "L0" | "L1" | "L2";
810
+ body: string;
811
+ }[];
812
+ diagnostics: {
813
+ code: "missing_knowledge_metadata";
814
+ message: string;
815
+ stable_id: string;
816
+ severity: "warn";
817
+ }[];
818
+ warnings?: {
819
+ code: string;
820
+ file: string;
821
+ action_hint: string;
822
+ line?: number | undefined;
823
+ }[] | undefined;
824
+ precedence?: ["L2", "L1", "L0"] | undefined;
825
+ redirect_to?: Record<string, string> | {
826
+ stable_id: string;
827
+ } | undefined;
828
+ }, {
829
+ revision_hash: string;
830
+ selected_stable_ids: string[];
831
+ rules: {
832
+ path: string;
833
+ stable_id: string;
834
+ level: "L0" | "L1" | "L2";
835
+ body: string;
836
+ }[];
837
+ diagnostics: {
838
+ code: "missing_knowledge_metadata";
839
+ message: string;
840
+ stable_id: string;
841
+ severity: "warn";
842
+ }[];
843
+ warnings?: {
844
+ code: string;
845
+ file: string;
846
+ action_hint: string;
847
+ line?: number | undefined;
848
+ }[] | undefined;
849
+ precedence?: ["L2", "L1", "L0"] | undefined;
850
+ redirect_to?: Record<string, string> | {
851
+ stable_id: string;
852
+ } | undefined;
853
+ }>;
854
+ declare const knowledgeSectionsAnnotations: {
855
+ readonly readOnlyHint: true;
856
+ readonly idempotentHint: true;
857
+ readonly destructiveHint: false;
858
+ readonly openWorldHint: false;
859
+ readonly title: "Filter rule sections";
860
+ };
861
+ declare const recallInputSchema: z.ZodObject<{
862
+ paths: z.ZodArray<z.ZodString, "many">;
863
+ intent: z.ZodOptional<z.ZodString>;
864
+ known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
865
+ detected_entities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
866
+ client_hash: z.ZodOptional<z.ZodString>;
867
+ correlation_id: z.ZodOptional<z.ZodString>;
868
+ session_id: z.ZodOptional<z.ZodString>;
869
+ layer_filter: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
870
+ target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
871
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ paths: string[];
874
+ known_tech?: string[] | undefined;
875
+ detected_entities?: Record<string, string[]> | undefined;
876
+ intent?: string | undefined;
877
+ client_hash?: string | undefined;
878
+ correlation_id?: string | undefined;
879
+ session_id?: string | undefined;
880
+ layer_filter?: "personal" | "team" | "both" | undefined;
881
+ target_paths?: string[] | undefined;
882
+ ids?: string[] | undefined;
883
+ }, {
884
+ paths: string[];
885
+ known_tech?: string[] | undefined;
886
+ detected_entities?: Record<string, string[]> | undefined;
887
+ intent?: string | undefined;
888
+ client_hash?: string | undefined;
889
+ correlation_id?: string | undefined;
890
+ session_id?: string | undefined;
891
+ layer_filter?: "personal" | "team" | "both" | undefined;
892
+ target_paths?: string[] | undefined;
893
+ ids?: string[] | undefined;
894
+ }>;
895
+ declare const recallOutputSchema: z.ZodObject<{
896
+ revision_hash: z.ZodString;
897
+ stale: z.ZodBoolean;
898
+ selection_token: z.ZodString;
899
+ entries: z.ZodArray<z.ZodObject<{
900
+ path: z.ZodString;
901
+ requirement_profile: z.ZodObject<{
902
+ target_path: z.ZodString;
903
+ path_segments: z.ZodArray<z.ZodString, "many">;
904
+ extension: z.ZodString;
905
+ known_tech: z.ZodArray<z.ZodString, "many">;
906
+ user_intent: z.ZodString;
907
+ detected_entities: z.ZodArray<z.ZodString, "many">;
908
+ }, "strip", z.ZodTypeAny, {
909
+ target_path: string;
910
+ path_segments: string[];
911
+ extension: string;
912
+ known_tech: string[];
913
+ user_intent: string;
914
+ detected_entities: string[];
915
+ }, {
916
+ target_path: string;
917
+ path_segments: string[];
918
+ extension: string;
919
+ known_tech: string[];
920
+ user_intent: string;
921
+ detected_entities: string[];
922
+ }>;
923
+ description_index: z.ZodArray<z.ZodObject<{
924
+ stable_id: z.ZodString;
925
+ level: z.ZodEnum<["L0", "L1", "L2"]>;
926
+ required: z.ZodBoolean;
927
+ selectable: z.ZodBoolean;
928
+ description: z.ZodObject<{
929
+ summary: z.ZodString;
930
+ intent_clues: z.ZodArray<z.ZodString, "many">;
931
+ tech_stack: z.ZodArray<z.ZodString, "many">;
932
+ impact: z.ZodArray<z.ZodString, "many">;
933
+ must_read_if: z.ZodString;
934
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
935
+ id: z.ZodOptional<z.ZodString>;
936
+ knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
937
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
938
+ knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
939
+ layer_reason: z.ZodOptional<z.ZodString>;
940
+ created_at: z.ZodOptional<z.ZodString>;
941
+ }, "strip", z.ZodTypeAny, {
942
+ summary: string;
943
+ intent_clues: string[];
944
+ tech_stack: string[];
945
+ impact: string[];
946
+ must_read_if: string;
947
+ entities?: string[] | undefined;
948
+ id?: string | undefined;
949
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
950
+ maturity?: "draft" | "verified" | "proven" | undefined;
951
+ knowledge_layer?: "personal" | "team" | undefined;
952
+ layer_reason?: string | undefined;
953
+ created_at?: string | undefined;
954
+ }, {
955
+ summary: string;
956
+ intent_clues: string[];
957
+ tech_stack: string[];
958
+ impact: string[];
959
+ must_read_if: string;
960
+ entities?: string[] | undefined;
961
+ id?: string | undefined;
962
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
963
+ maturity?: "draft" | "verified" | "proven" | undefined;
964
+ knowledge_layer?: "personal" | "team" | undefined;
965
+ layer_reason?: string | undefined;
966
+ created_at?: string | undefined;
967
+ }>;
968
+ type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
969
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
970
+ layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
971
+ layer_reason: z.ZodOptional<z.ZodString>;
972
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
973
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
974
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
975
+ }, "strip", z.ZodTypeAny, {
976
+ description: {
977
+ summary: string;
978
+ intent_clues: string[];
979
+ tech_stack: string[];
980
+ impact: string[];
981
+ must_read_if: string;
982
+ entities?: string[] | undefined;
983
+ id?: string | undefined;
984
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
985
+ maturity?: "draft" | "verified" | "proven" | undefined;
986
+ knowledge_layer?: "personal" | "team" | undefined;
987
+ layer_reason?: string | undefined;
988
+ created_at?: string | undefined;
989
+ };
990
+ stable_id: string;
991
+ level: "L0" | "L1" | "L2";
992
+ required: boolean;
993
+ selectable: boolean;
994
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
995
+ relevance_scope?: "narrow" | "broad" | undefined;
996
+ relevance_paths?: string[] | undefined;
997
+ layer?: "personal" | "team" | undefined;
998
+ maturity?: "draft" | "verified" | "proven" | undefined;
999
+ layer_reason?: string | undefined;
1000
+ tags?: string[] | undefined;
1001
+ }, {
1002
+ description: {
1003
+ summary: string;
1004
+ intent_clues: string[];
1005
+ tech_stack: string[];
1006
+ impact: string[];
1007
+ must_read_if: string;
1008
+ entities?: string[] | undefined;
1009
+ id?: string | undefined;
1010
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1011
+ maturity?: "draft" | "verified" | "proven" | undefined;
1012
+ knowledge_layer?: "personal" | "team" | undefined;
1013
+ layer_reason?: string | undefined;
1014
+ created_at?: string | undefined;
1015
+ };
1016
+ stable_id: string;
1017
+ level: "L0" | "L1" | "L2";
1018
+ required: boolean;
1019
+ selectable: boolean;
1020
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1021
+ relevance_scope?: "narrow" | "broad" | undefined;
1022
+ relevance_paths?: string[] | undefined;
1023
+ layer?: "personal" | "team" | undefined;
1024
+ maturity?: "draft" | "verified" | "proven" | undefined;
1025
+ layer_reason?: string | undefined;
1026
+ tags?: string[] | undefined;
1027
+ }>, "many">;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ path: string;
1030
+ requirement_profile: {
1031
+ target_path: string;
1032
+ path_segments: string[];
1033
+ extension: string;
1034
+ known_tech: string[];
1035
+ user_intent: string;
1036
+ detected_entities: string[];
1037
+ };
1038
+ description_index: {
1039
+ description: {
1040
+ summary: string;
1041
+ intent_clues: string[];
1042
+ tech_stack: string[];
1043
+ impact: string[];
1044
+ must_read_if: string;
1045
+ entities?: string[] | undefined;
1046
+ id?: string | undefined;
1047
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1048
+ maturity?: "draft" | "verified" | "proven" | undefined;
1049
+ knowledge_layer?: "personal" | "team" | undefined;
1050
+ layer_reason?: string | undefined;
1051
+ created_at?: string | undefined;
1052
+ };
1053
+ stable_id: string;
1054
+ level: "L0" | "L1" | "L2";
1055
+ required: boolean;
1056
+ selectable: boolean;
1057
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1058
+ relevance_scope?: "narrow" | "broad" | undefined;
1059
+ relevance_paths?: string[] | undefined;
1060
+ layer?: "personal" | "team" | undefined;
1061
+ maturity?: "draft" | "verified" | "proven" | undefined;
1062
+ layer_reason?: string | undefined;
1063
+ tags?: string[] | undefined;
1064
+ }[];
1065
+ }, {
1066
+ path: string;
1067
+ requirement_profile: {
1068
+ target_path: string;
1069
+ path_segments: string[];
1070
+ extension: string;
1071
+ known_tech: string[];
1072
+ user_intent: string;
1073
+ detected_entities: string[];
1074
+ };
1075
+ description_index: {
1076
+ description: {
1077
+ summary: string;
1078
+ intent_clues: string[];
1079
+ tech_stack: string[];
1080
+ impact: string[];
1081
+ must_read_if: string;
1082
+ entities?: string[] | undefined;
1083
+ id?: string | undefined;
1084
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1085
+ maturity?: "draft" | "verified" | "proven" | undefined;
1086
+ knowledge_layer?: "personal" | "team" | undefined;
1087
+ layer_reason?: string | undefined;
1088
+ created_at?: string | undefined;
1089
+ };
1090
+ stable_id: string;
1091
+ level: "L0" | "L1" | "L2";
1092
+ required: boolean;
1093
+ selectable: boolean;
1094
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1095
+ relevance_scope?: "narrow" | "broad" | undefined;
1096
+ relevance_paths?: string[] | undefined;
1097
+ layer?: "personal" | "team" | undefined;
1098
+ maturity?: "draft" | "verified" | "proven" | undefined;
1099
+ layer_reason?: string | undefined;
1100
+ tags?: string[] | undefined;
1101
+ }[];
1102
+ }>, "many">;
1103
+ shared: z.ZodObject<{
1104
+ description_index: z.ZodArray<z.ZodObject<{
1105
+ stable_id: z.ZodString;
1106
+ level: z.ZodEnum<["L0", "L1", "L2"]>;
1107
+ required: z.ZodBoolean;
1108
+ selectable: z.ZodBoolean;
1109
+ description: z.ZodObject<{
1110
+ summary: z.ZodString;
1111
+ intent_clues: z.ZodArray<z.ZodString, "many">;
1112
+ tech_stack: z.ZodArray<z.ZodString, "many">;
1113
+ impact: z.ZodArray<z.ZodString, "many">;
1114
+ must_read_if: z.ZodString;
1115
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1116
+ id: z.ZodOptional<z.ZodString>;
1117
+ knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
1118
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1119
+ knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
1120
+ layer_reason: z.ZodOptional<z.ZodString>;
1121
+ created_at: z.ZodOptional<z.ZodString>;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ summary: string;
1124
+ intent_clues: string[];
1125
+ tech_stack: string[];
1126
+ impact: string[];
1127
+ must_read_if: string;
1128
+ entities?: string[] | undefined;
1129
+ id?: string | undefined;
1130
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1131
+ maturity?: "draft" | "verified" | "proven" | undefined;
1132
+ knowledge_layer?: "personal" | "team" | undefined;
1133
+ layer_reason?: string | undefined;
1134
+ created_at?: string | undefined;
1135
+ }, {
1136
+ summary: string;
1137
+ intent_clues: string[];
1138
+ tech_stack: string[];
1139
+ impact: string[];
1140
+ must_read_if: string;
1141
+ entities?: string[] | undefined;
1142
+ id?: string | undefined;
1143
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1144
+ maturity?: "draft" | "verified" | "proven" | undefined;
1145
+ knowledge_layer?: "personal" | "team" | undefined;
1146
+ layer_reason?: string | undefined;
1147
+ created_at?: string | undefined;
1148
+ }>;
1149
+ type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
1150
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1151
+ layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
1152
+ layer_reason: z.ZodOptional<z.ZodString>;
1153
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1154
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1155
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ description: {
1158
+ summary: string;
1159
+ intent_clues: string[];
1160
+ tech_stack: string[];
1161
+ impact: string[];
1162
+ must_read_if: string;
1163
+ entities?: string[] | undefined;
1164
+ id?: string | undefined;
1165
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1166
+ maturity?: "draft" | "verified" | "proven" | undefined;
1167
+ knowledge_layer?: "personal" | "team" | undefined;
1168
+ layer_reason?: string | undefined;
1169
+ created_at?: string | undefined;
1170
+ };
1171
+ stable_id: string;
1172
+ level: "L0" | "L1" | "L2";
1173
+ required: boolean;
1174
+ selectable: boolean;
1175
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1176
+ relevance_scope?: "narrow" | "broad" | undefined;
1177
+ relevance_paths?: string[] | undefined;
1178
+ layer?: "personal" | "team" | undefined;
1179
+ maturity?: "draft" | "verified" | "proven" | undefined;
1180
+ layer_reason?: string | undefined;
1181
+ tags?: string[] | undefined;
1182
+ }, {
1183
+ description: {
1184
+ summary: string;
1185
+ intent_clues: string[];
1186
+ tech_stack: string[];
1187
+ impact: string[];
1188
+ must_read_if: string;
1189
+ entities?: string[] | undefined;
1190
+ id?: string | undefined;
1191
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1192
+ maturity?: "draft" | "verified" | "proven" | undefined;
1193
+ knowledge_layer?: "personal" | "team" | undefined;
1194
+ layer_reason?: string | undefined;
1195
+ created_at?: string | undefined;
1196
+ };
1197
+ stable_id: string;
1198
+ level: "L0" | "L1" | "L2";
1199
+ required: boolean;
1200
+ selectable: boolean;
1201
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1202
+ relevance_scope?: "narrow" | "broad" | undefined;
1203
+ relevance_paths?: string[] | undefined;
1204
+ layer?: "personal" | "team" | undefined;
1205
+ maturity?: "draft" | "verified" | "proven" | undefined;
1206
+ layer_reason?: string | undefined;
1207
+ tags?: string[] | undefined;
1208
+ }>, "many">;
1209
+ preflight_diagnostics: z.ZodArray<z.ZodObject<{
1210
+ code: z.ZodLiteral<"missing_description">;
1211
+ severity: z.ZodLiteral<"warn">;
1212
+ message: z.ZodString;
1213
+ stable_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1214
+ path: z.ZodOptional<z.ZodString>;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ code: "missing_description";
1217
+ message: string;
1218
+ severity: "warn";
1219
+ path?: string | undefined;
1220
+ stable_ids?: string[] | undefined;
1221
+ }, {
1222
+ code: "missing_description";
1223
+ message: string;
1224
+ severity: "warn";
1225
+ path?: string | undefined;
1226
+ stable_ids?: string[] | undefined;
1227
+ }>, "many">;
1228
+ }, "strip", z.ZodTypeAny, {
1229
+ description_index: {
1230
+ description: {
1231
+ summary: string;
1232
+ intent_clues: string[];
1233
+ tech_stack: string[];
1234
+ impact: string[];
1235
+ must_read_if: string;
1236
+ entities?: string[] | undefined;
1237
+ id?: string | undefined;
1238
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1239
+ maturity?: "draft" | "verified" | "proven" | undefined;
1240
+ knowledge_layer?: "personal" | "team" | undefined;
1241
+ layer_reason?: string | undefined;
1242
+ created_at?: string | undefined;
1243
+ };
1244
+ stable_id: string;
1245
+ level: "L0" | "L1" | "L2";
1246
+ required: boolean;
1247
+ selectable: boolean;
1248
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1249
+ relevance_scope?: "narrow" | "broad" | undefined;
1250
+ relevance_paths?: string[] | undefined;
1251
+ layer?: "personal" | "team" | undefined;
1252
+ maturity?: "draft" | "verified" | "proven" | undefined;
1253
+ layer_reason?: string | undefined;
1254
+ tags?: string[] | undefined;
1255
+ }[];
1256
+ preflight_diagnostics: {
1257
+ code: "missing_description";
1258
+ message: string;
1259
+ severity: "warn";
1260
+ path?: string | undefined;
1261
+ stable_ids?: string[] | undefined;
1262
+ }[];
1263
+ }, {
1264
+ description_index: {
1265
+ description: {
1266
+ summary: string;
1267
+ intent_clues: string[];
1268
+ tech_stack: string[];
1269
+ impact: string[];
1270
+ must_read_if: string;
1271
+ entities?: string[] | undefined;
1272
+ id?: string | undefined;
1273
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1274
+ maturity?: "draft" | "verified" | "proven" | undefined;
1275
+ knowledge_layer?: "personal" | "team" | undefined;
1276
+ layer_reason?: string | undefined;
1277
+ created_at?: string | undefined;
1278
+ };
1279
+ stable_id: string;
1280
+ level: "L0" | "L1" | "L2";
1281
+ required: boolean;
1282
+ selectable: boolean;
1283
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1284
+ relevance_scope?: "narrow" | "broad" | undefined;
1285
+ relevance_paths?: string[] | undefined;
1286
+ layer?: "personal" | "team" | undefined;
1287
+ maturity?: "draft" | "verified" | "proven" | undefined;
1288
+ layer_reason?: string | undefined;
1289
+ tags?: string[] | undefined;
1290
+ }[];
1291
+ preflight_diagnostics: {
1292
+ code: "missing_description";
1293
+ message: string;
1294
+ severity: "warn";
1295
+ path?: string | undefined;
1296
+ stable_ids?: string[] | undefined;
1297
+ }[];
1298
+ }>;
1299
+ rules: z.ZodArray<z.ZodObject<{
1300
+ stable_id: z.ZodString;
1301
+ level: z.ZodEnum<["L0", "L1", "L2"]>;
1302
+ path: z.ZodString;
1303
+ body: z.ZodString;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ path: string;
1306
+ stable_id: string;
1307
+ level: "L0" | "L1" | "L2";
1308
+ body: string;
1309
+ }, {
1310
+ path: string;
1311
+ stable_id: string;
1312
+ level: "L0" | "L1" | "L2";
1313
+ body: string;
1314
+ }>, "many">;
1315
+ selected_stable_ids: z.ZodArray<z.ZodString, "many">;
1316
+ diagnostics: z.ZodArray<z.ZodObject<{
1317
+ code: z.ZodLiteral<"missing_knowledge_metadata">;
1318
+ severity: z.ZodLiteral<"warn">;
1319
+ stable_id: z.ZodString;
1320
+ message: z.ZodString;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ code: "missing_knowledge_metadata";
1323
+ message: string;
1324
+ stable_id: string;
1325
+ severity: "warn";
1326
+ }, {
1327
+ code: "missing_knowledge_metadata";
1328
+ message: string;
1329
+ stable_id: string;
1330
+ severity: "warn";
1331
+ }>, "many">;
784
1332
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
785
1333
  code: z.ZodString;
786
1334
  file: z.ZodString;
@@ -797,8 +1345,87 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
797
1345
  action_hint: string;
798
1346
  line?: number | undefined;
799
1347
  }>, "many">>;
1348
+ auto_healed: z.ZodOptional<z.ZodBoolean>;
1349
+ previous_revision_hash: z.ZodOptional<z.ZodString>;
1350
+ redirects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
800
1351
  }, "strip", z.ZodTypeAny, {
1352
+ entries: {
1353
+ path: string;
1354
+ requirement_profile: {
1355
+ target_path: string;
1356
+ path_segments: string[];
1357
+ extension: string;
1358
+ known_tech: string[];
1359
+ user_intent: string;
1360
+ detected_entities: string[];
1361
+ };
1362
+ description_index: {
1363
+ description: {
1364
+ summary: string;
1365
+ intent_clues: string[];
1366
+ tech_stack: string[];
1367
+ impact: string[];
1368
+ must_read_if: string;
1369
+ entities?: string[] | undefined;
1370
+ id?: string | undefined;
1371
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1372
+ maturity?: "draft" | "verified" | "proven" | undefined;
1373
+ knowledge_layer?: "personal" | "team" | undefined;
1374
+ layer_reason?: string | undefined;
1375
+ created_at?: string | undefined;
1376
+ };
1377
+ stable_id: string;
1378
+ level: "L0" | "L1" | "L2";
1379
+ required: boolean;
1380
+ selectable: boolean;
1381
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1382
+ relevance_scope?: "narrow" | "broad" | undefined;
1383
+ relevance_paths?: string[] | undefined;
1384
+ layer?: "personal" | "team" | undefined;
1385
+ maturity?: "draft" | "verified" | "proven" | undefined;
1386
+ layer_reason?: string | undefined;
1387
+ tags?: string[] | undefined;
1388
+ }[];
1389
+ }[];
1390
+ stale: boolean;
801
1391
  revision_hash: string;
1392
+ selection_token: string;
1393
+ shared: {
1394
+ description_index: {
1395
+ description: {
1396
+ summary: string;
1397
+ intent_clues: string[];
1398
+ tech_stack: string[];
1399
+ impact: string[];
1400
+ must_read_if: string;
1401
+ entities?: string[] | undefined;
1402
+ id?: string | undefined;
1403
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1404
+ maturity?: "draft" | "verified" | "proven" | undefined;
1405
+ knowledge_layer?: "personal" | "team" | undefined;
1406
+ layer_reason?: string | undefined;
1407
+ created_at?: string | undefined;
1408
+ };
1409
+ stable_id: string;
1410
+ level: "L0" | "L1" | "L2";
1411
+ required: boolean;
1412
+ selectable: boolean;
1413
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1414
+ relevance_scope?: "narrow" | "broad" | undefined;
1415
+ relevance_paths?: string[] | undefined;
1416
+ layer?: "personal" | "team" | undefined;
1417
+ maturity?: "draft" | "verified" | "proven" | undefined;
1418
+ layer_reason?: string | undefined;
1419
+ tags?: string[] | undefined;
1420
+ }[];
1421
+ preflight_diagnostics: {
1422
+ code: "missing_description";
1423
+ message: string;
1424
+ severity: "warn";
1425
+ path?: string | undefined;
1426
+ stable_ids?: string[] | undefined;
1427
+ }[];
1428
+ };
802
1429
  selected_stable_ids: string[];
803
1430
  rules: {
804
1431
  path: string;
@@ -818,12 +1445,87 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
818
1445
  action_hint: string;
819
1446
  line?: number | undefined;
820
1447
  }[] | undefined;
821
- precedence?: ["L2", "L1", "L0"] | undefined;
822
- redirect_to?: {
823
- stable_id: string;
824
- } | undefined;
1448
+ auto_healed?: boolean | undefined;
1449
+ previous_revision_hash?: string | undefined;
1450
+ redirects?: Record<string, string> | undefined;
825
1451
  }, {
1452
+ entries: {
1453
+ path: string;
1454
+ requirement_profile: {
1455
+ target_path: string;
1456
+ path_segments: string[];
1457
+ extension: string;
1458
+ known_tech: string[];
1459
+ user_intent: string;
1460
+ detected_entities: string[];
1461
+ };
1462
+ description_index: {
1463
+ description: {
1464
+ summary: string;
1465
+ intent_clues: string[];
1466
+ tech_stack: string[];
1467
+ impact: string[];
1468
+ must_read_if: string;
1469
+ entities?: string[] | undefined;
1470
+ id?: string | undefined;
1471
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1472
+ maturity?: "draft" | "verified" | "proven" | undefined;
1473
+ knowledge_layer?: "personal" | "team" | undefined;
1474
+ layer_reason?: string | undefined;
1475
+ created_at?: string | undefined;
1476
+ };
1477
+ stable_id: string;
1478
+ level: "L0" | "L1" | "L2";
1479
+ required: boolean;
1480
+ selectable: boolean;
1481
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1482
+ relevance_scope?: "narrow" | "broad" | undefined;
1483
+ relevance_paths?: string[] | undefined;
1484
+ layer?: "personal" | "team" | undefined;
1485
+ maturity?: "draft" | "verified" | "proven" | undefined;
1486
+ layer_reason?: string | undefined;
1487
+ tags?: string[] | undefined;
1488
+ }[];
1489
+ }[];
1490
+ stale: boolean;
826
1491
  revision_hash: string;
1492
+ selection_token: string;
1493
+ shared: {
1494
+ description_index: {
1495
+ description: {
1496
+ summary: string;
1497
+ intent_clues: string[];
1498
+ tech_stack: string[];
1499
+ impact: string[];
1500
+ must_read_if: string;
1501
+ entities?: string[] | undefined;
1502
+ id?: string | undefined;
1503
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1504
+ maturity?: "draft" | "verified" | "proven" | undefined;
1505
+ knowledge_layer?: "personal" | "team" | undefined;
1506
+ layer_reason?: string | undefined;
1507
+ created_at?: string | undefined;
1508
+ };
1509
+ stable_id: string;
1510
+ level: "L0" | "L1" | "L2";
1511
+ required: boolean;
1512
+ selectable: boolean;
1513
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1514
+ relevance_scope?: "narrow" | "broad" | undefined;
1515
+ relevance_paths?: string[] | undefined;
1516
+ layer?: "personal" | "team" | undefined;
1517
+ maturity?: "draft" | "verified" | "proven" | undefined;
1518
+ layer_reason?: string | undefined;
1519
+ tags?: string[] | undefined;
1520
+ }[];
1521
+ preflight_diagnostics: {
1522
+ code: "missing_description";
1523
+ message: string;
1524
+ severity: "warn";
1525
+ path?: string | undefined;
1526
+ stable_ids?: string[] | undefined;
1527
+ }[];
1528
+ };
827
1529
  selected_stable_ids: string[];
828
1530
  rules: {
829
1531
  path: string;
@@ -843,18 +1545,104 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
843
1545
  action_hint: string;
844
1546
  line?: number | undefined;
845
1547
  }[] | undefined;
846
- precedence?: ["L2", "L1", "L0"] | undefined;
847
- redirect_to?: {
848
- stable_id: string;
849
- } | undefined;
1548
+ auto_healed?: boolean | undefined;
1549
+ previous_revision_hash?: string | undefined;
1550
+ redirects?: Record<string, string> | undefined;
850
1551
  }>;
851
- declare const knowledgeSectionsAnnotations: {
1552
+ declare const recallAnnotations: {
852
1553
  readonly readOnlyHint: true;
853
1554
  readonly idempotentHint: true;
854
1555
  readonly destructiveHint: false;
855
1556
  readonly openWorldHint: false;
856
- readonly title: "Filter rule sections";
1557
+ readonly title: "Recall Fabric knowledge (one-call)";
1558
+ };
1559
+ declare const archiveScanInputSchema: z.ZodObject<{
1560
+ range: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
1561
+ now_ms: z.ZodOptional<z.ZodNumber>;
1562
+ correlation_id: z.ZodOptional<z.ZodString>;
1563
+ session_id: z.ZodOptional<z.ZodString>;
1564
+ }, "strip", z.ZodTypeAny, {
1565
+ correlation_id?: string | undefined;
1566
+ session_id?: string | undefined;
1567
+ range?: string[] | "all" | undefined;
1568
+ now_ms?: number | undefined;
1569
+ }, {
1570
+ correlation_id?: string | undefined;
1571
+ session_id?: string | undefined;
1572
+ range?: string[] | "all" | undefined;
1573
+ now_ms?: number | undefined;
1574
+ }>;
1575
+ declare const archiveScanOutputSchema: z.ZodObject<{
1576
+ anchor_ts: z.ZodNullable<z.ZodNumber>;
1577
+ session_ids: z.ZodArray<z.ZodString, "many">;
1578
+ dropped: z.ZodArray<z.ZodObject<{
1579
+ session_id: z.ZodString;
1580
+ reason: z.ZodEnum<["user_dismissed", "cooldown", "no_new_signal"]>;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ session_id: string;
1583
+ reason: "user_dismissed" | "cooldown" | "no_new_signal";
1584
+ }, {
1585
+ session_id: string;
1586
+ reason: "user_dismissed" | "cooldown" | "no_new_signal";
1587
+ }>, "many">;
1588
+ covered_through_ts: z.ZodNullable<z.ZodNumber>;
1589
+ already_proposed_keys: z.ZodArray<z.ZodString, "many">;
1590
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1591
+ code: z.ZodString;
1592
+ file: z.ZodString;
1593
+ line: z.ZodOptional<z.ZodNumber>;
1594
+ action_hint: z.ZodString;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ code: string;
1597
+ file: string;
1598
+ action_hint: string;
1599
+ line?: number | undefined;
1600
+ }, {
1601
+ code: string;
1602
+ file: string;
1603
+ action_hint: string;
1604
+ line?: number | undefined;
1605
+ }>, "many">>;
1606
+ }, "strip", z.ZodTypeAny, {
1607
+ anchor_ts: number | null;
1608
+ session_ids: string[];
1609
+ dropped: {
1610
+ session_id: string;
1611
+ reason: "user_dismissed" | "cooldown" | "no_new_signal";
1612
+ }[];
1613
+ covered_through_ts: number | null;
1614
+ already_proposed_keys: string[];
1615
+ warnings?: {
1616
+ code: string;
1617
+ file: string;
1618
+ action_hint: string;
1619
+ line?: number | undefined;
1620
+ }[] | undefined;
1621
+ }, {
1622
+ anchor_ts: number | null;
1623
+ session_ids: string[];
1624
+ dropped: {
1625
+ session_id: string;
1626
+ reason: "user_dismissed" | "cooldown" | "no_new_signal";
1627
+ }[];
1628
+ covered_through_ts: number | null;
1629
+ already_proposed_keys: string[];
1630
+ warnings?: {
1631
+ code: string;
1632
+ file: string;
1633
+ action_hint: string;
1634
+ line?: number | undefined;
1635
+ }[] | undefined;
1636
+ }>;
1637
+ declare const archiveScanAnnotations: {
1638
+ readonly readOnlyHint: true;
1639
+ readonly idempotentHint: true;
1640
+ readonly destructiveHint: false;
1641
+ readonly openWorldHint: false;
1642
+ readonly title: "Scan event ledger for archive candidates (deterministic)";
857
1643
  };
1644
+ type ArchiveScanInput = z.infer<typeof archiveScanInputSchema>;
1645
+ type ArchiveScanOutput = z.infer<typeof archiveScanOutputSchema>;
858
1646
  declare const ProposedReasonSchema: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
859
1647
  type ProposedReason = z.infer<typeof ProposedReasonSchema>;
860
1648
  declare const PROPOSED_REASON_DESCRIPTIONS: Record<ProposedReason, string>;
@@ -873,7 +1661,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
873
1661
  tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
874
1662
  impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
875
1663
  must_read_if: z.ZodOptional<z.ZodString>;
1664
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
876
1665
  onboard_slot: z.ZodOptional<z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>>;
1666
+ evidence_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
877
1667
  }, "strip", z.ZodTypeAny, {
878
1668
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
879
1669
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
@@ -889,7 +1679,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
889
1679
  tech_stack?: string[] | undefined;
890
1680
  impact?: string[] | undefined;
891
1681
  must_read_if?: string | undefined;
1682
+ tags?: string[] | undefined;
892
1683
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1684
+ evidence_paths?: string[] | undefined;
893
1685
  }, {
894
1686
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
895
1687
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
@@ -905,7 +1697,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
905
1697
  tech_stack?: string[] | undefined;
906
1698
  impact?: string[] | undefined;
907
1699
  must_read_if?: string | undefined;
1700
+ tags?: string[] | undefined;
908
1701
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1702
+ evidence_paths?: string[] | undefined;
909
1703
  }>, {
910
1704
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
911
1705
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
@@ -921,7 +1715,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
921
1715
  tech_stack?: string[] | undefined;
922
1716
  impact?: string[] | undefined;
923
1717
  must_read_if?: string | undefined;
1718
+ tags?: string[] | undefined;
924
1719
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1720
+ evidence_paths?: string[] | undefined;
925
1721
  }, {
926
1722
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
927
1723
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
@@ -937,7 +1733,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
937
1733
  tech_stack?: string[] | undefined;
938
1734
  impact?: string[] | undefined;
939
1735
  must_read_if?: string | undefined;
1736
+ tags?: string[] | undefined;
940
1737
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1738
+ evidence_paths?: string[] | undefined;
941
1739
  }>;
942
1740
  declare const FabExtractKnowledgeInputShape: {
943
1741
  source_sessions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -954,7 +1752,9 @@ declare const FabExtractKnowledgeInputShape: {
954
1752
  tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
955
1753
  impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
956
1754
  must_read_if: z.ZodOptional<z.ZodString>;
1755
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
957
1756
  onboard_slot: z.ZodOptional<z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>>;
1757
+ evidence_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
958
1758
  };
959
1759
  type FabExtractKnowledgeInput = z.infer<typeof FabExtractKnowledgeInputSchema>;
960
1760
  declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
@@ -1071,13 +1871,13 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1071
1871
  pending_paths: z.ZodArray<z.ZodString, "many">;
1072
1872
  reason: z.ZodString;
1073
1873
  }, "strip", z.ZodTypeAny, {
1874
+ reason: string;
1074
1875
  action: "reject";
1075
1876
  pending_paths: string[];
1076
- reason: string;
1077
1877
  }, {
1878
+ reason: string;
1078
1879
  action: "reject";
1079
1880
  pending_paths: string[];
1080
- reason: string;
1081
1881
  }>, z.ZodObject<{
1082
1882
  action: z.ZodLiteral<"modify">;
1083
1883
  pending_path: z.ZodString;
@@ -1130,6 +1930,111 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1130
1930
  tags?: string[] | undefined;
1131
1931
  title?: string | undefined;
1132
1932
  };
1933
+ }>, z.ZodObject<{
1934
+ action: z.ZodLiteral<"modify-content">;
1935
+ pending_path: z.ZodString;
1936
+ changes: z.ZodObject<{
1937
+ title: z.ZodOptional<z.ZodString>;
1938
+ summary: z.ZodOptional<z.ZodString>;
1939
+ layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1940
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1941
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1942
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1943
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ relevance_scope?: "narrow" | "broad" | undefined;
1946
+ relevance_paths?: string[] | undefined;
1947
+ layer?: "personal" | "team" | undefined;
1948
+ summary?: string | undefined;
1949
+ maturity?: "draft" | "verified" | "proven" | undefined;
1950
+ tags?: string[] | undefined;
1951
+ title?: string | undefined;
1952
+ }, {
1953
+ relevance_scope?: "narrow" | "broad" | undefined;
1954
+ relevance_paths?: string[] | undefined;
1955
+ layer?: "personal" | "team" | undefined;
1956
+ summary?: string | undefined;
1957
+ maturity?: "draft" | "verified" | "proven" | undefined;
1958
+ tags?: string[] | undefined;
1959
+ title?: string | undefined;
1960
+ }>;
1961
+ }, "strip", z.ZodTypeAny, {
1962
+ pending_path: string;
1963
+ action: "modify-content";
1964
+ changes: {
1965
+ relevance_scope?: "narrow" | "broad" | undefined;
1966
+ relevance_paths?: string[] | undefined;
1967
+ layer?: "personal" | "team" | undefined;
1968
+ summary?: string | undefined;
1969
+ maturity?: "draft" | "verified" | "proven" | undefined;
1970
+ tags?: string[] | undefined;
1971
+ title?: string | undefined;
1972
+ };
1973
+ }, {
1974
+ pending_path: string;
1975
+ action: "modify-content";
1976
+ changes: {
1977
+ relevance_scope?: "narrow" | "broad" | undefined;
1978
+ relevance_paths?: string[] | undefined;
1979
+ layer?: "personal" | "team" | undefined;
1980
+ summary?: string | undefined;
1981
+ maturity?: "draft" | "verified" | "proven" | undefined;
1982
+ tags?: string[] | undefined;
1983
+ title?: string | undefined;
1984
+ };
1985
+ }>, z.ZodObject<{
1986
+ action: z.ZodLiteral<"modify-layer">;
1987
+ pending_path: z.ZodString;
1988
+ changes: z.ZodObject<{
1989
+ title: z.ZodOptional<z.ZodString>;
1990
+ summary: z.ZodOptional<z.ZodString>;
1991
+ maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
1992
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1993
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1994
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1995
+ } & {
1996
+ layer: z.ZodEnum<["team", "personal"]>;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ layer: "personal" | "team";
1999
+ relevance_scope?: "narrow" | "broad" | undefined;
2000
+ relevance_paths?: string[] | undefined;
2001
+ summary?: string | undefined;
2002
+ maturity?: "draft" | "verified" | "proven" | undefined;
2003
+ tags?: string[] | undefined;
2004
+ title?: string | undefined;
2005
+ }, {
2006
+ layer: "personal" | "team";
2007
+ relevance_scope?: "narrow" | "broad" | undefined;
2008
+ relevance_paths?: string[] | undefined;
2009
+ summary?: string | undefined;
2010
+ maturity?: "draft" | "verified" | "proven" | undefined;
2011
+ tags?: string[] | undefined;
2012
+ title?: string | undefined;
2013
+ }>;
2014
+ }, "strip", z.ZodTypeAny, {
2015
+ pending_path: string;
2016
+ action: "modify-layer";
2017
+ changes: {
2018
+ layer: "personal" | "team";
2019
+ relevance_scope?: "narrow" | "broad" | undefined;
2020
+ relevance_paths?: string[] | undefined;
2021
+ summary?: string | undefined;
2022
+ maturity?: "draft" | "verified" | "proven" | undefined;
2023
+ tags?: string[] | undefined;
2024
+ title?: string | undefined;
2025
+ };
2026
+ }, {
2027
+ pending_path: string;
2028
+ action: "modify-layer";
2029
+ changes: {
2030
+ layer: "personal" | "team";
2031
+ relevance_scope?: "narrow" | "broad" | undefined;
2032
+ relevance_paths?: string[] | undefined;
2033
+ summary?: string | undefined;
2034
+ maturity?: "draft" | "verified" | "proven" | undefined;
2035
+ tags?: string[] | undefined;
2036
+ title?: string | undefined;
2037
+ };
1133
2038
  }>, z.ZodObject<{
1134
2039
  action: z.ZodLiteral<"search">;
1135
2040
  query: z.ZodString;
@@ -1205,7 +2110,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1205
2110
  }>]>;
1206
2111
  type FabReviewInput = z.infer<typeof FabReviewInputSchema>;
1207
2112
  declare const FabReviewInputShape: {
1208
- readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "search", "defer"]>;
2113
+ readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "modify-content", "modify-layer", "search", "defer"]>;
1209
2114
  readonly filters: z.ZodOptional<z.ZodObject<{
1210
2115
  type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
1211
2116
  layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
@@ -2084,4 +2989,4 @@ declare function parseKnowledgeId(id: string): {
2084
2989
  counter: number;
2085
2990
  } | null;
2086
2991
 
2087
- export { 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, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, citeContractMetricsSchema, citeCoverageReportSchema, citeLayerTypeBreakdownSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema };
2992
+ 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, 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 };