@fenglimg/fabric-shared 2.0.0-rc.22 → 2.0.0-rc.23

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.
@@ -709,187 +709,8 @@ declare const planContextHintOutputSchema: z.ZodObject<{
709
709
  version: 1;
710
710
  broad_count: number;
711
711
  }>;
712
- declare const getKnowledgeInputSchema: z.ZodObject<{
713
- path: z.ZodString;
714
- client_hash: z.ZodOptional<z.ZodString>;
715
- correlation_id: z.ZodOptional<z.ZodString>;
716
- session_id: z.ZodOptional<z.ZodString>;
717
- }, "strip", z.ZodTypeAny, {
718
- path: string;
719
- client_hash?: string | undefined;
720
- correlation_id?: string | undefined;
721
- session_id?: string | undefined;
722
- }, {
723
- path: string;
724
- client_hash?: string | undefined;
725
- correlation_id?: string | undefined;
726
- session_id?: string | undefined;
727
- }>;
728
- declare const getKnowledgeOutputSchema: z.ZodObject<{
729
- revision_hash: z.ZodString;
730
- stale: z.ZodBoolean;
731
- rules: z.ZodObject<{
732
- L0: z.ZodString;
733
- L1: z.ZodArray<z.ZodObject<{
734
- path: z.ZodString;
735
- content: z.ZodString;
736
- }, "strip", z.ZodTypeAny, {
737
- path: string;
738
- content: string;
739
- }, {
740
- path: string;
741
- content: string;
742
- }>, "many">;
743
- L2: z.ZodArray<z.ZodObject<{
744
- path: z.ZodString;
745
- content: z.ZodString;
746
- }, "strip", z.ZodTypeAny, {
747
- path: string;
748
- content: string;
749
- }, {
750
- path: string;
751
- content: string;
752
- }>, "many">;
753
- human_locked_nearby: z.ZodArray<z.ZodObject<{
754
- file: z.ZodString;
755
- excerpt: z.ZodString;
756
- }, "strip", z.ZodTypeAny, {
757
- file: string;
758
- excerpt: string;
759
- }, {
760
- file: string;
761
- excerpt: string;
762
- }>, "many">;
763
- description_stubs: z.ZodOptional<z.ZodArray<z.ZodObject<{
764
- path: z.ZodString;
765
- description: z.ZodString;
766
- }, "strip", z.ZodTypeAny, {
767
- path: string;
768
- description: string;
769
- }, {
770
- path: string;
771
- description: string;
772
- }>, "many">>;
773
- }, "strip", z.ZodTypeAny, {
774
- L0: string;
775
- L1: {
776
- path: string;
777
- content: string;
778
- }[];
779
- L2: {
780
- path: string;
781
- content: string;
782
- }[];
783
- human_locked_nearby: {
784
- file: string;
785
- excerpt: string;
786
- }[];
787
- description_stubs?: {
788
- path: string;
789
- description: string;
790
- }[] | undefined;
791
- }, {
792
- L0: string;
793
- L1: {
794
- path: string;
795
- content: string;
796
- }[];
797
- L2: {
798
- path: string;
799
- content: string;
800
- }[];
801
- human_locked_nearby: {
802
- file: string;
803
- excerpt: string;
804
- }[];
805
- description_stubs?: {
806
- path: string;
807
- description: string;
808
- }[] | undefined;
809
- }>;
810
- warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
811
- code: z.ZodString;
812
- file: z.ZodString;
813
- line: z.ZodOptional<z.ZodNumber>;
814
- action_hint: z.ZodString;
815
- }, "strip", z.ZodTypeAny, {
816
- file: string;
817
- code: string;
818
- action_hint: string;
819
- line?: number | undefined;
820
- }, {
821
- file: string;
822
- code: string;
823
- action_hint: string;
824
- line?: number | undefined;
825
- }>, "many">>;
826
- }, "strip", z.ZodTypeAny, {
827
- stale: boolean;
828
- revision_hash: string;
829
- rules: {
830
- L0: string;
831
- L1: {
832
- path: string;
833
- content: string;
834
- }[];
835
- L2: {
836
- path: string;
837
- content: string;
838
- }[];
839
- human_locked_nearby: {
840
- file: string;
841
- excerpt: string;
842
- }[];
843
- description_stubs?: {
844
- path: string;
845
- description: string;
846
- }[] | undefined;
847
- };
848
- warnings?: {
849
- file: string;
850
- code: string;
851
- action_hint: string;
852
- line?: number | undefined;
853
- }[] | undefined;
854
- }, {
855
- stale: boolean;
856
- revision_hash: string;
857
- rules: {
858
- L0: string;
859
- L1: {
860
- path: string;
861
- content: string;
862
- }[];
863
- L2: {
864
- path: string;
865
- content: string;
866
- }[];
867
- human_locked_nearby: {
868
- file: string;
869
- excerpt: string;
870
- }[];
871
- description_stubs?: {
872
- path: string;
873
- description: string;
874
- }[] | undefined;
875
- };
876
- warnings?: {
877
- file: string;
878
- code: string;
879
- action_hint: string;
880
- line?: number | undefined;
881
- }[] | undefined;
882
- }>;
883
- declare const getKnowledgeAnnotations: {
884
- readonly readOnlyHint: true;
885
- readonly idempotentHint: true;
886
- readonly destructiveHint: false;
887
- readonly openWorldHint: false;
888
- readonly title: "Get rule content";
889
- };
890
712
  declare const knowledgeSectionsInputSchema: z.ZodObject<{
891
713
  selection_token: z.ZodString;
892
- sections: z.ZodArray<z.ZodEnum<["MISSION_STATEMENT", "MANDATORY_INJECTION", "BUSINESS_LOGIC_CHUNKS", "CONTEXT_INFO"]>, "many">;
893
714
  ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
894
715
  ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
895
716
  correlation_id: z.ZodOptional<z.ZodString>;
@@ -897,7 +718,6 @@ declare const knowledgeSectionsInputSchema: z.ZodObject<{
897
718
  client_hash: z.ZodOptional<z.ZodString>;
898
719
  }, "strip", z.ZodTypeAny, {
899
720
  selection_token: string;
900
- sections: ("MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO")[];
901
721
  ai_selected_stable_ids: string[];
902
722
  ai_selection_reasons: Record<string, string>;
903
723
  client_hash?: string | undefined;
@@ -905,7 +725,6 @@ declare const knowledgeSectionsInputSchema: z.ZodObject<{
905
725
  session_id?: string | undefined;
906
726
  }, {
907
727
  selection_token: string;
908
- sections: ("MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO")[];
909
728
  ai_selected_stable_ids: string[];
910
729
  ai_selection_reasons: Record<string, string>;
911
730
  client_hash?: string | undefined;
@@ -914,43 +733,32 @@ declare const knowledgeSectionsInputSchema: z.ZodObject<{
914
733
  }>;
915
734
  declare const knowledgeSectionsOutputSchema: z.ZodObject<{
916
735
  revision_hash: z.ZodString;
917
- precedence: z.ZodTuple<[z.ZodLiteral<"L2">, z.ZodLiteral<"L1">, z.ZodLiteral<"L0">], null>;
736
+ /**
737
+ * @deprecated rc.23 TASK-002 F3 — removed in rc.24. The L0/L1/L2 selection
738
+ * ceremony was fully retired in rc.5 A3 (see comment above
739
+ * `planContextOutputSchema`); downstream consumers should use
740
+ * `rules[].level` directly. Kept as optional for one rc to avoid breaking
741
+ * pre-rc.23 clients that destructure this field.
742
+ */
743
+ precedence: z.ZodOptional<z.ZodTuple<[z.ZodLiteral<"L2">, z.ZodLiteral<"L1">, z.ZodLiteral<"L0">], null>>;
918
744
  selected_stable_ids: z.ZodArray<z.ZodString, "many">;
919
745
  rules: z.ZodArray<z.ZodObject<{
920
746
  stable_id: z.ZodString;
921
747
  level: z.ZodEnum<["L0", "L1", "L2"]>;
922
748
  path: z.ZodString;
923
- sections: z.ZodRecord<z.ZodString, z.ZodString>;
749
+ body: z.ZodString;
924
750
  }, "strip", z.ZodTypeAny, {
925
751
  path: string;
926
752
  stable_id: string;
927
753
  level: "L0" | "L1" | "L2";
928
- sections: Record<string, string>;
754
+ body: string;
929
755
  }, {
930
756
  path: string;
931
757
  stable_id: string;
932
758
  level: "L0" | "L1" | "L2";
933
- sections: Record<string, string>;
759
+ body: string;
934
760
  }>, "many">;
935
- diagnostics: z.ZodArray<z.ZodDiscriminatedUnion<"code", [z.ZodObject<{
936
- code: z.ZodLiteral<"missing_section">;
937
- severity: z.ZodLiteral<"warn">;
938
- stable_id: z.ZodString;
939
- section: z.ZodEnum<["MISSION_STATEMENT", "MANDATORY_INJECTION", "BUSINESS_LOGIC_CHUNKS", "CONTEXT_INFO"]>;
940
- message: z.ZodString;
941
- }, "strip", z.ZodTypeAny, {
942
- code: "missing_section";
943
- message: string;
944
- stable_id: string;
945
- severity: "warn";
946
- section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
947
- }, {
948
- code: "missing_section";
949
- message: string;
950
- stable_id: string;
951
- severity: "warn";
952
- section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
953
- }>, z.ZodObject<{
761
+ diagnostics: z.ZodArray<z.ZodObject<{
954
762
  code: z.ZodLiteral<"missing_knowledge_metadata">;
955
763
  severity: z.ZodLiteral<"warn">;
956
764
  stable_id: z.ZodString;
@@ -965,7 +773,7 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
965
773
  message: string;
966
774
  stable_id: string;
967
775
  severity: "warn";
968
- }>]>, "many">;
776
+ }>, "many">;
969
777
  redirect_to: z.ZodOptional<z.ZodObject<{
970
778
  stable_id: z.ZodString;
971
779
  }, "strip", z.ZodTypeAny, {
@@ -991,63 +799,51 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
991
799
  }>, "many">>;
992
800
  }, "strip", z.ZodTypeAny, {
993
801
  revision_hash: string;
802
+ selected_stable_ids: string[];
994
803
  rules: {
995
804
  path: string;
996
805
  stable_id: string;
997
806
  level: "L0" | "L1" | "L2";
998
- sections: Record<string, string>;
807
+ body: string;
999
808
  }[];
1000
- precedence: ["L2", "L1", "L0"];
1001
- selected_stable_ids: string[];
1002
- diagnostics: ({
1003
- code: "missing_section";
1004
- message: string;
1005
- stable_id: string;
1006
- severity: "warn";
1007
- section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
1008
- } | {
809
+ diagnostics: {
1009
810
  code: "missing_knowledge_metadata";
1010
811
  message: string;
1011
812
  stable_id: string;
1012
813
  severity: "warn";
1013
- })[];
814
+ }[];
1014
815
  warnings?: {
1015
816
  file: string;
1016
817
  code: string;
1017
818
  action_hint: string;
1018
819
  line?: number | undefined;
1019
820
  }[] | undefined;
821
+ precedence?: ["L2", "L1", "L0"] | undefined;
1020
822
  redirect_to?: {
1021
823
  stable_id: string;
1022
824
  } | undefined;
1023
825
  }, {
1024
826
  revision_hash: string;
827
+ selected_stable_ids: string[];
1025
828
  rules: {
1026
829
  path: string;
1027
830
  stable_id: string;
1028
831
  level: "L0" | "L1" | "L2";
1029
- sections: Record<string, string>;
832
+ body: string;
1030
833
  }[];
1031
- precedence: ["L2", "L1", "L0"];
1032
- selected_stable_ids: string[];
1033
- diagnostics: ({
1034
- code: "missing_section";
1035
- message: string;
1036
- stable_id: string;
1037
- severity: "warn";
1038
- section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
1039
- } | {
834
+ diagnostics: {
1040
835
  code: "missing_knowledge_metadata";
1041
836
  message: string;
1042
837
  stable_id: string;
1043
838
  severity: "warn";
1044
- })[];
839
+ }[];
1045
840
  warnings?: {
1046
841
  file: string;
1047
842
  code: string;
1048
843
  action_hint: string;
1049
844
  line?: number | undefined;
1050
845
  }[] | undefined;
846
+ precedence?: ["L2", "L1", "L0"] | undefined;
1051
847
  redirect_to?: {
1052
848
  stable_id: string;
1053
849
  } | undefined;
@@ -1063,8 +859,7 @@ declare const ProposedReasonSchema: z.ZodEnum<["explicit-user-mark", "diagnostic
1063
859
  type ProposedReason = z.infer<typeof ProposedReasonSchema>;
1064
860
  declare const PROPOSED_REASON_DESCRIPTIONS: Record<ProposedReason, string>;
1065
861
  declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1066
- source_sessions: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
1067
- source_session: z.ZodOptional<z.ZodString>;
862
+ source_sessions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1068
863
  recent_paths: z.ZodArray<z.ZodString, "many">;
1069
864
  user_messages_summary: z.ZodString;
1070
865
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
@@ -1074,6 +869,11 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1074
869
  session_context: z.ZodString;
1075
870
  relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1076
871
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
872
+ intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
873
+ tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
874
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
875
+ must_read_if: z.ZodOptional<z.ZodString>;
876
+ onboard_slot: z.ZodOptional<z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>>;
1077
877
  }, "strip", z.ZodTypeAny, {
1078
878
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1079
879
  session_context: string;
@@ -1085,7 +885,11 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1085
885
  relevance_paths?: string[] | undefined;
1086
886
  source_sessions?: string[] | undefined;
1087
887
  layer?: "personal" | "team" | undefined;
1088
- source_session?: string | undefined;
888
+ intent_clues?: string[] | undefined;
889
+ tech_stack?: string[] | undefined;
890
+ impact?: string[] | undefined;
891
+ must_read_if?: string | undefined;
892
+ onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1089
893
  }, {
1090
894
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1091
895
  session_context: string;
@@ -1095,9 +899,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1095
899
  slug: string;
1096
900
  relevance_scope?: "narrow" | "broad" | undefined;
1097
901
  relevance_paths?: string[] | undefined;
1098
- source_sessions?: unknown;
902
+ source_sessions?: string[] | undefined;
1099
903
  layer?: "personal" | "team" | undefined;
1100
- source_session?: string | undefined;
904
+ intent_clues?: string[] | undefined;
905
+ tech_stack?: string[] | undefined;
906
+ impact?: string[] | undefined;
907
+ must_read_if?: string | undefined;
908
+ onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1101
909
  }>, {
1102
910
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1103
911
  session_context: string;
@@ -1109,7 +917,11 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1109
917
  relevance_paths?: string[] | undefined;
1110
918
  source_sessions?: string[] | undefined;
1111
919
  layer?: "personal" | "team" | undefined;
1112
- source_session?: string | undefined;
920
+ intent_clues?: string[] | undefined;
921
+ tech_stack?: string[] | undefined;
922
+ impact?: string[] | undefined;
923
+ must_read_if?: string | undefined;
924
+ onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1113
925
  }, {
1114
926
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1115
927
  session_context: string;
@@ -1119,13 +931,16 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1119
931
  slug: string;
1120
932
  relevance_scope?: "narrow" | "broad" | undefined;
1121
933
  relevance_paths?: string[] | undefined;
1122
- source_sessions?: unknown;
934
+ source_sessions?: string[] | undefined;
1123
935
  layer?: "personal" | "team" | undefined;
1124
- source_session?: string | undefined;
936
+ intent_clues?: string[] | undefined;
937
+ tech_stack?: string[] | undefined;
938
+ impact?: string[] | undefined;
939
+ must_read_if?: string | undefined;
940
+ onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
1125
941
  }>;
1126
942
  declare const FabExtractKnowledgeInputShape: {
1127
- source_sessions: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
1128
- source_session: z.ZodOptional<z.ZodString>;
943
+ source_sessions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1129
944
  recent_paths: z.ZodArray<z.ZodString, "many">;
1130
945
  user_messages_summary: z.ZodString;
1131
946
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
@@ -1135,17 +950,50 @@ declare const FabExtractKnowledgeInputShape: {
1135
950
  session_context: z.ZodString;
1136
951
  relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1137
952
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
953
+ intent_clues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
954
+ tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
955
+ impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
956
+ must_read_if: z.ZodOptional<z.ZodString>;
957
+ onboard_slot: z.ZodOptional<z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>>;
1138
958
  };
1139
959
  type FabExtractKnowledgeInput = z.infer<typeof FabExtractKnowledgeInputSchema>;
1140
960
  declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
1141
961
  pending_path: z.ZodString;
1142
962
  idempotency_key: z.ZodString;
963
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
964
+ code: z.ZodString;
965
+ file: z.ZodString;
966
+ line: z.ZodOptional<z.ZodNumber>;
967
+ action_hint: z.ZodString;
968
+ }, "strip", z.ZodTypeAny, {
969
+ file: string;
970
+ code: string;
971
+ action_hint: string;
972
+ line?: number | undefined;
973
+ }, {
974
+ file: string;
975
+ code: string;
976
+ action_hint: string;
977
+ line?: number | undefined;
978
+ }>, "many">>;
1143
979
  }, "strip", z.ZodTypeAny, {
1144
980
  pending_path: string;
1145
981
  idempotency_key: string;
982
+ warnings?: {
983
+ file: string;
984
+ code: string;
985
+ action_hint: string;
986
+ line?: number | undefined;
987
+ }[] | undefined;
1146
988
  }, {
1147
989
  pending_path: string;
1148
990
  idempotency_key: string;
991
+ warnings?: {
992
+ file: string;
993
+ code: string;
994
+ action_hint: string;
995
+ line?: number | undefined;
996
+ }[] | undefined;
1149
997
  }>;
1150
998
  type FabExtractKnowledgeOutput = z.infer<typeof FabExtractKnowledgeOutputSchema>;
1151
999
  declare const fabExtractKnowledgeAnnotations: {
@@ -1408,6 +1256,22 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1408
1256
  title?: string | undefined;
1409
1257
  origin?: "personal" | "team" | undefined;
1410
1258
  }>, "many">;
1259
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1260
+ code: z.ZodString;
1261
+ file: z.ZodString;
1262
+ line: z.ZodOptional<z.ZodNumber>;
1263
+ action_hint: z.ZodString;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ file: string;
1266
+ code: string;
1267
+ action_hint: string;
1268
+ line?: number | undefined;
1269
+ }, {
1270
+ file: string;
1271
+ code: string;
1272
+ action_hint: string;
1273
+ line?: number | undefined;
1274
+ }>, "many">>;
1411
1275
  }, "strip", z.ZodTypeAny, {
1412
1276
  action: "list";
1413
1277
  items: {
@@ -1420,6 +1284,12 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1420
1284
  title?: string | undefined;
1421
1285
  origin?: "personal" | "team" | undefined;
1422
1286
  }[];
1287
+ warnings?: {
1288
+ file: string;
1289
+ code: string;
1290
+ action_hint: string;
1291
+ line?: number | undefined;
1292
+ }[] | undefined;
1423
1293
  }, {
1424
1294
  action: "list";
1425
1295
  items: {
@@ -1432,6 +1302,12 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1432
1302
  title?: string | undefined;
1433
1303
  origin?: "personal" | "team" | undefined;
1434
1304
  }[];
1305
+ warnings?: {
1306
+ file: string;
1307
+ code: string;
1308
+ action_hint: string;
1309
+ line?: number | undefined;
1310
+ }[] | undefined;
1435
1311
  }>, z.ZodObject<{
1436
1312
  action: z.ZodLiteral<"approve">;
1437
1313
  approved: z.ZodArray<z.ZodObject<{
@@ -1444,40 +1320,124 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1444
1320
  pending_path: string;
1445
1321
  stable_id: string;
1446
1322
  }>, "many">;
1323
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1324
+ code: z.ZodString;
1325
+ file: z.ZodString;
1326
+ line: z.ZodOptional<z.ZodNumber>;
1327
+ action_hint: z.ZodString;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ file: string;
1330
+ code: string;
1331
+ action_hint: string;
1332
+ line?: number | undefined;
1333
+ }, {
1334
+ file: string;
1335
+ code: string;
1336
+ action_hint: string;
1337
+ line?: number | undefined;
1338
+ }>, "many">>;
1447
1339
  }, "strip", z.ZodTypeAny, {
1448
1340
  approved: {
1449
1341
  pending_path: string;
1450
1342
  stable_id: string;
1451
1343
  }[];
1452
1344
  action: "approve";
1345
+ warnings?: {
1346
+ file: string;
1347
+ code: string;
1348
+ action_hint: string;
1349
+ line?: number | undefined;
1350
+ }[] | undefined;
1453
1351
  }, {
1454
1352
  approved: {
1455
1353
  pending_path: string;
1456
1354
  stable_id: string;
1457
1355
  }[];
1458
1356
  action: "approve";
1357
+ warnings?: {
1358
+ file: string;
1359
+ code: string;
1360
+ action_hint: string;
1361
+ line?: number | undefined;
1362
+ }[] | undefined;
1459
1363
  }>, z.ZodObject<{
1460
1364
  action: z.ZodLiteral<"reject">;
1461
1365
  rejected: z.ZodArray<z.ZodString, "many">;
1366
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1367
+ code: z.ZodString;
1368
+ file: z.ZodString;
1369
+ line: z.ZodOptional<z.ZodNumber>;
1370
+ action_hint: z.ZodString;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ file: string;
1373
+ code: string;
1374
+ action_hint: string;
1375
+ line?: number | undefined;
1376
+ }, {
1377
+ file: string;
1378
+ code: string;
1379
+ action_hint: string;
1380
+ line?: number | undefined;
1381
+ }>, "many">>;
1462
1382
  }, "strip", z.ZodTypeAny, {
1463
1383
  action: "reject";
1464
1384
  rejected: string[];
1385
+ warnings?: {
1386
+ file: string;
1387
+ code: string;
1388
+ action_hint: string;
1389
+ line?: number | undefined;
1390
+ }[] | undefined;
1465
1391
  }, {
1466
1392
  action: "reject";
1467
1393
  rejected: string[];
1394
+ warnings?: {
1395
+ file: string;
1396
+ code: string;
1397
+ action_hint: string;
1398
+ line?: number | undefined;
1399
+ }[] | undefined;
1468
1400
  }>, z.ZodObject<{
1469
1401
  action: z.ZodLiteral<"modify">;
1470
1402
  pending_path: z.ZodString;
1471
1403
  prior_stable_id: z.ZodOptional<z.ZodString>;
1472
1404
  new_stable_id: z.ZodOptional<z.ZodString>;
1405
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1406
+ code: z.ZodString;
1407
+ file: z.ZodString;
1408
+ line: z.ZodOptional<z.ZodNumber>;
1409
+ action_hint: z.ZodString;
1410
+ }, "strip", z.ZodTypeAny, {
1411
+ file: string;
1412
+ code: string;
1413
+ action_hint: string;
1414
+ line?: number | undefined;
1415
+ }, {
1416
+ file: string;
1417
+ code: string;
1418
+ action_hint: string;
1419
+ line?: number | undefined;
1420
+ }>, "many">>;
1473
1421
  }, "strip", z.ZodTypeAny, {
1474
1422
  pending_path: string;
1475
1423
  action: "modify";
1424
+ warnings?: {
1425
+ file: string;
1426
+ code: string;
1427
+ action_hint: string;
1428
+ line?: number | undefined;
1429
+ }[] | undefined;
1476
1430
  prior_stable_id?: string | undefined;
1477
1431
  new_stable_id?: string | undefined;
1478
1432
  }, {
1479
1433
  pending_path: string;
1480
1434
  action: "modify";
1435
+ warnings?: {
1436
+ file: string;
1437
+ code: string;
1438
+ action_hint: string;
1439
+ line?: number | undefined;
1440
+ }[] | undefined;
1481
1441
  prior_stable_id?: string | undefined;
1482
1442
  new_stable_id?: string | undefined;
1483
1443
  }>, z.ZodObject<{
@@ -1510,6 +1470,22 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1510
1470
  title?: string | undefined;
1511
1471
  origin?: "personal" | "team" | undefined;
1512
1472
  }>, "many">;
1473
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1474
+ code: z.ZodString;
1475
+ file: z.ZodString;
1476
+ line: z.ZodOptional<z.ZodNumber>;
1477
+ action_hint: z.ZodString;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ file: string;
1480
+ code: string;
1481
+ action_hint: string;
1482
+ line?: number | undefined;
1483
+ }, {
1484
+ file: string;
1485
+ code: string;
1486
+ action_hint: string;
1487
+ line?: number | undefined;
1488
+ }>, "many">>;
1513
1489
  }, "strip", z.ZodTypeAny, {
1514
1490
  action: "search";
1515
1491
  items: {
@@ -1522,6 +1498,12 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1522
1498
  title?: string | undefined;
1523
1499
  origin?: "personal" | "team" | undefined;
1524
1500
  }[];
1501
+ warnings?: {
1502
+ file: string;
1503
+ code: string;
1504
+ action_hint: string;
1505
+ line?: number | undefined;
1506
+ }[] | undefined;
1525
1507
  }, {
1526
1508
  action: "search";
1527
1509
  items: {
@@ -1534,15 +1516,49 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1534
1516
  title?: string | undefined;
1535
1517
  origin?: "personal" | "team" | undefined;
1536
1518
  }[];
1519
+ warnings?: {
1520
+ file: string;
1521
+ code: string;
1522
+ action_hint: string;
1523
+ line?: number | undefined;
1524
+ }[] | undefined;
1537
1525
  }>, z.ZodObject<{
1538
1526
  action: z.ZodLiteral<"defer">;
1539
1527
  deferred: z.ZodArray<z.ZodString, "many">;
1528
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1529
+ code: z.ZodString;
1530
+ file: z.ZodString;
1531
+ line: z.ZodOptional<z.ZodNumber>;
1532
+ action_hint: z.ZodString;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ file: string;
1535
+ code: string;
1536
+ action_hint: string;
1537
+ line?: number | undefined;
1538
+ }, {
1539
+ file: string;
1540
+ code: string;
1541
+ action_hint: string;
1542
+ line?: number | undefined;
1543
+ }>, "many">>;
1540
1544
  }, "strip", z.ZodTypeAny, {
1541
1545
  action: "defer";
1542
1546
  deferred: string[];
1547
+ warnings?: {
1548
+ file: string;
1549
+ code: string;
1550
+ action_hint: string;
1551
+ line?: number | undefined;
1552
+ }[] | undefined;
1543
1553
  }, {
1544
1554
  action: "defer";
1545
1555
  deferred: string[];
1556
+ warnings?: {
1557
+ file: string;
1558
+ code: string;
1559
+ action_hint: string;
1560
+ line?: number | undefined;
1561
+ }[] | undefined;
1546
1562
  }>]>;
1547
1563
  type FabReviewOutput = z.infer<typeof FabReviewOutputSchema>;
1548
1564
  declare const FabReviewOutputShape: {
@@ -1590,6 +1606,22 @@ declare const FabReviewOutputShape: {
1590
1606
  readonly prior_stable_id: z.ZodOptional<z.ZodString>;
1591
1607
  readonly new_stable_id: z.ZodOptional<z.ZodString>;
1592
1608
  readonly deferred: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1609
+ readonly warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1610
+ code: z.ZodString;
1611
+ file: z.ZodString;
1612
+ line: z.ZodOptional<z.ZodNumber>;
1613
+ action_hint: z.ZodString;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ file: string;
1616
+ code: string;
1617
+ action_hint: string;
1618
+ line?: number | undefined;
1619
+ }, {
1620
+ file: string;
1621
+ code: string;
1622
+ action_hint: string;
1623
+ line?: number | undefined;
1624
+ }>, "many">>;
1593
1625
  };
1594
1626
  declare const fabReviewAnnotations: {
1595
1627
  readonly readOnlyHint: false;
@@ -1704,4 +1736,4 @@ declare function parseKnowledgeId(id: string): {
1704
1736
  counter: number;
1705
1737
  } | null;
1706
1738
 
1707
- export { type FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, type FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, type FabReviewInput, FabReviewInputSchema, FabReviewInputShape, type FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, type KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, type KnowledgeType, type KnowledgeTypeCode, KnowledgeTypeSchema, type Layer, LayerSchema, type Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, getKnowledgeAnnotations, getKnowledgeInputSchema, getKnowledgeOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema };
1739
+ export { type FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, type FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, type FabReviewInput, FabReviewInputSchema, FabReviewInputShape, type FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, type KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, type KnowledgeType, type KnowledgeTypeCode, KnowledgeTypeSchema, type Layer, LayerSchema, type Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema };