@fenglimg/fabric-shared 2.0.0-rc.21 → 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.
@@ -467,6 +467,8 @@ declare const planContextOutputSchema: z.ZodObject<{
467
467
  action_hint: string;
468
468
  line?: number | undefined;
469
469
  }>, "many">>;
470
+ auto_healed: z.ZodOptional<z.ZodBoolean>;
471
+ previous_revision_hash: z.ZodOptional<z.ZodString>;
470
472
  }, "strip", z.ZodTypeAny, {
471
473
  stale: boolean;
472
474
  entries: {
@@ -551,6 +553,8 @@ declare const planContextOutputSchema: z.ZodObject<{
551
553
  action_hint: string;
552
554
  line?: number | undefined;
553
555
  }[] | undefined;
556
+ auto_healed?: boolean | undefined;
557
+ previous_revision_hash?: string | undefined;
554
558
  }, {
555
559
  stale: boolean;
556
560
  entries: {
@@ -635,6 +639,8 @@ declare const planContextOutputSchema: z.ZodObject<{
635
639
  action_hint: string;
636
640
  line?: number | undefined;
637
641
  }[] | undefined;
642
+ auto_healed?: boolean | undefined;
643
+ previous_revision_hash?: string | undefined;
638
644
  }>;
639
645
  declare const planContextAnnotations: {
640
646
  readonly readOnlyHint: true;
@@ -703,187 +709,8 @@ declare const planContextHintOutputSchema: z.ZodObject<{
703
709
  version: 1;
704
710
  broad_count: number;
705
711
  }>;
706
- declare const getKnowledgeInputSchema: z.ZodObject<{
707
- path: z.ZodString;
708
- client_hash: z.ZodOptional<z.ZodString>;
709
- correlation_id: z.ZodOptional<z.ZodString>;
710
- session_id: z.ZodOptional<z.ZodString>;
711
- }, "strip", z.ZodTypeAny, {
712
- path: string;
713
- client_hash?: string | undefined;
714
- correlation_id?: string | undefined;
715
- session_id?: string | undefined;
716
- }, {
717
- path: string;
718
- client_hash?: string | undefined;
719
- correlation_id?: string | undefined;
720
- session_id?: string | undefined;
721
- }>;
722
- declare const getKnowledgeOutputSchema: z.ZodObject<{
723
- revision_hash: z.ZodString;
724
- stale: z.ZodBoolean;
725
- rules: z.ZodObject<{
726
- L0: z.ZodString;
727
- L1: z.ZodArray<z.ZodObject<{
728
- path: z.ZodString;
729
- content: z.ZodString;
730
- }, "strip", z.ZodTypeAny, {
731
- path: string;
732
- content: string;
733
- }, {
734
- path: string;
735
- content: string;
736
- }>, "many">;
737
- L2: z.ZodArray<z.ZodObject<{
738
- path: z.ZodString;
739
- content: z.ZodString;
740
- }, "strip", z.ZodTypeAny, {
741
- path: string;
742
- content: string;
743
- }, {
744
- path: string;
745
- content: string;
746
- }>, "many">;
747
- human_locked_nearby: z.ZodArray<z.ZodObject<{
748
- file: z.ZodString;
749
- excerpt: z.ZodString;
750
- }, "strip", z.ZodTypeAny, {
751
- file: string;
752
- excerpt: string;
753
- }, {
754
- file: string;
755
- excerpt: string;
756
- }>, "many">;
757
- description_stubs: z.ZodOptional<z.ZodArray<z.ZodObject<{
758
- path: z.ZodString;
759
- description: z.ZodString;
760
- }, "strip", z.ZodTypeAny, {
761
- path: string;
762
- description: string;
763
- }, {
764
- path: string;
765
- description: string;
766
- }>, "many">>;
767
- }, "strip", z.ZodTypeAny, {
768
- L0: string;
769
- L1: {
770
- path: string;
771
- content: string;
772
- }[];
773
- L2: {
774
- path: string;
775
- content: string;
776
- }[];
777
- human_locked_nearby: {
778
- file: string;
779
- excerpt: string;
780
- }[];
781
- description_stubs?: {
782
- path: string;
783
- description: string;
784
- }[] | undefined;
785
- }, {
786
- L0: string;
787
- L1: {
788
- path: string;
789
- content: string;
790
- }[];
791
- L2: {
792
- path: string;
793
- content: string;
794
- }[];
795
- human_locked_nearby: {
796
- file: string;
797
- excerpt: string;
798
- }[];
799
- description_stubs?: {
800
- path: string;
801
- description: string;
802
- }[] | undefined;
803
- }>;
804
- warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
805
- code: z.ZodString;
806
- file: z.ZodString;
807
- line: z.ZodOptional<z.ZodNumber>;
808
- action_hint: z.ZodString;
809
- }, "strip", z.ZodTypeAny, {
810
- file: string;
811
- code: string;
812
- action_hint: string;
813
- line?: number | undefined;
814
- }, {
815
- file: string;
816
- code: string;
817
- action_hint: string;
818
- line?: number | undefined;
819
- }>, "many">>;
820
- }, "strip", z.ZodTypeAny, {
821
- stale: boolean;
822
- revision_hash: string;
823
- rules: {
824
- L0: string;
825
- L1: {
826
- path: string;
827
- content: string;
828
- }[];
829
- L2: {
830
- path: string;
831
- content: string;
832
- }[];
833
- human_locked_nearby: {
834
- file: string;
835
- excerpt: string;
836
- }[];
837
- description_stubs?: {
838
- path: string;
839
- description: string;
840
- }[] | undefined;
841
- };
842
- warnings?: {
843
- file: string;
844
- code: string;
845
- action_hint: string;
846
- line?: number | undefined;
847
- }[] | undefined;
848
- }, {
849
- stale: boolean;
850
- revision_hash: string;
851
- rules: {
852
- L0: string;
853
- L1: {
854
- path: string;
855
- content: string;
856
- }[];
857
- L2: {
858
- path: string;
859
- content: string;
860
- }[];
861
- human_locked_nearby: {
862
- file: string;
863
- excerpt: string;
864
- }[];
865
- description_stubs?: {
866
- path: string;
867
- description: string;
868
- }[] | undefined;
869
- };
870
- warnings?: {
871
- file: string;
872
- code: string;
873
- action_hint: string;
874
- line?: number | undefined;
875
- }[] | undefined;
876
- }>;
877
- declare const getKnowledgeAnnotations: {
878
- readonly readOnlyHint: true;
879
- readonly idempotentHint: true;
880
- readonly destructiveHint: false;
881
- readonly openWorldHint: false;
882
- readonly title: "Get rule content";
883
- };
884
712
  declare const knowledgeSectionsInputSchema: z.ZodObject<{
885
713
  selection_token: z.ZodString;
886
- sections: z.ZodArray<z.ZodEnum<["MISSION_STATEMENT", "MANDATORY_INJECTION", "BUSINESS_LOGIC_CHUNKS", "CONTEXT_INFO"]>, "many">;
887
714
  ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
888
715
  ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
889
716
  correlation_id: z.ZodOptional<z.ZodString>;
@@ -891,7 +718,6 @@ declare const knowledgeSectionsInputSchema: z.ZodObject<{
891
718
  client_hash: z.ZodOptional<z.ZodString>;
892
719
  }, "strip", z.ZodTypeAny, {
893
720
  selection_token: string;
894
- sections: ("MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO")[];
895
721
  ai_selected_stable_ids: string[];
896
722
  ai_selection_reasons: Record<string, string>;
897
723
  client_hash?: string | undefined;
@@ -899,7 +725,6 @@ declare const knowledgeSectionsInputSchema: z.ZodObject<{
899
725
  session_id?: string | undefined;
900
726
  }, {
901
727
  selection_token: string;
902
- sections: ("MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO")[];
903
728
  ai_selected_stable_ids: string[];
904
729
  ai_selection_reasons: Record<string, string>;
905
730
  client_hash?: string | undefined;
@@ -908,43 +733,32 @@ declare const knowledgeSectionsInputSchema: z.ZodObject<{
908
733
  }>;
909
734
  declare const knowledgeSectionsOutputSchema: z.ZodObject<{
910
735
  revision_hash: z.ZodString;
911
- 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>>;
912
744
  selected_stable_ids: z.ZodArray<z.ZodString, "many">;
913
745
  rules: z.ZodArray<z.ZodObject<{
914
746
  stable_id: z.ZodString;
915
747
  level: z.ZodEnum<["L0", "L1", "L2"]>;
916
748
  path: z.ZodString;
917
- sections: z.ZodRecord<z.ZodString, z.ZodString>;
749
+ body: z.ZodString;
918
750
  }, "strip", z.ZodTypeAny, {
919
751
  path: string;
920
752
  stable_id: string;
921
753
  level: "L0" | "L1" | "L2";
922
- sections: Record<string, string>;
754
+ body: string;
923
755
  }, {
924
756
  path: string;
925
757
  stable_id: string;
926
758
  level: "L0" | "L1" | "L2";
927
- sections: Record<string, string>;
759
+ body: string;
928
760
  }>, "many">;
929
- diagnostics: z.ZodArray<z.ZodDiscriminatedUnion<"code", [z.ZodObject<{
930
- code: z.ZodLiteral<"missing_section">;
931
- severity: z.ZodLiteral<"warn">;
932
- stable_id: z.ZodString;
933
- section: z.ZodEnum<["MISSION_STATEMENT", "MANDATORY_INJECTION", "BUSINESS_LOGIC_CHUNKS", "CONTEXT_INFO"]>;
934
- message: z.ZodString;
935
- }, "strip", z.ZodTypeAny, {
936
- code: "missing_section";
937
- message: string;
938
- stable_id: string;
939
- severity: "warn";
940
- section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
941
- }, {
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
- }>, z.ZodObject<{
761
+ diagnostics: z.ZodArray<z.ZodObject<{
948
762
  code: z.ZodLiteral<"missing_knowledge_metadata">;
949
763
  severity: z.ZodLiteral<"warn">;
950
764
  stable_id: z.ZodString;
@@ -959,7 +773,7 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
959
773
  message: string;
960
774
  stable_id: string;
961
775
  severity: "warn";
962
- }>]>, "many">;
776
+ }>, "many">;
963
777
  redirect_to: z.ZodOptional<z.ZodObject<{
964
778
  stable_id: z.ZodString;
965
779
  }, "strip", z.ZodTypeAny, {
@@ -985,63 +799,51 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
985
799
  }>, "many">>;
986
800
  }, "strip", z.ZodTypeAny, {
987
801
  revision_hash: string;
802
+ selected_stable_ids: string[];
988
803
  rules: {
989
804
  path: string;
990
805
  stable_id: string;
991
806
  level: "L0" | "L1" | "L2";
992
- sections: Record<string, string>;
807
+ body: string;
993
808
  }[];
994
- precedence: ["L2", "L1", "L0"];
995
- selected_stable_ids: string[];
996
- diagnostics: ({
997
- code: "missing_section";
998
- message: string;
999
- stable_id: string;
1000
- severity: "warn";
1001
- section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
1002
- } | {
809
+ diagnostics: {
1003
810
  code: "missing_knowledge_metadata";
1004
811
  message: string;
1005
812
  stable_id: string;
1006
813
  severity: "warn";
1007
- })[];
814
+ }[];
1008
815
  warnings?: {
1009
816
  file: string;
1010
817
  code: string;
1011
818
  action_hint: string;
1012
819
  line?: number | undefined;
1013
820
  }[] | undefined;
821
+ precedence?: ["L2", "L1", "L0"] | undefined;
1014
822
  redirect_to?: {
1015
823
  stable_id: string;
1016
824
  } | undefined;
1017
825
  }, {
1018
826
  revision_hash: string;
827
+ selected_stable_ids: string[];
1019
828
  rules: {
1020
829
  path: string;
1021
830
  stable_id: string;
1022
831
  level: "L0" | "L1" | "L2";
1023
- sections: Record<string, string>;
832
+ body: string;
1024
833
  }[];
1025
- precedence: ["L2", "L1", "L0"];
1026
- selected_stable_ids: string[];
1027
- diagnostics: ({
1028
- code: "missing_section";
1029
- message: string;
1030
- stable_id: string;
1031
- severity: "warn";
1032
- section: "MISSION_STATEMENT" | "MANDATORY_INJECTION" | "BUSINESS_LOGIC_CHUNKS" | "CONTEXT_INFO";
1033
- } | {
834
+ diagnostics: {
1034
835
  code: "missing_knowledge_metadata";
1035
836
  message: string;
1036
837
  stable_id: string;
1037
838
  severity: "warn";
1038
- })[];
839
+ }[];
1039
840
  warnings?: {
1040
841
  file: string;
1041
842
  code: string;
1042
843
  action_hint: string;
1043
844
  line?: number | undefined;
1044
845
  }[] | undefined;
846
+ precedence?: ["L2", "L1", "L0"] | undefined;
1045
847
  redirect_to?: {
1046
848
  stable_id: string;
1047
849
  } | undefined;
@@ -1057,8 +859,7 @@ declare const ProposedReasonSchema: z.ZodEnum<["explicit-user-mark", "diagnostic
1057
859
  type ProposedReason = z.infer<typeof ProposedReasonSchema>;
1058
860
  declare const PROPOSED_REASON_DESCRIPTIONS: Record<ProposedReason, string>;
1059
861
  declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1060
- source_sessions: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
1061
- source_session: z.ZodOptional<z.ZodString>;
862
+ source_sessions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1062
863
  recent_paths: z.ZodArray<z.ZodString, "many">;
1063
864
  user_messages_summary: z.ZodString;
1064
865
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
@@ -1068,6 +869,11 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1068
869
  session_context: z.ZodString;
1069
870
  relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1070
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"]>>;
1071
877
  }, "strip", z.ZodTypeAny, {
1072
878
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1073
879
  session_context: string;
@@ -1079,7 +885,11 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1079
885
  relevance_paths?: string[] | undefined;
1080
886
  source_sessions?: string[] | undefined;
1081
887
  layer?: "personal" | "team" | undefined;
1082
- 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;
1083
893
  }, {
1084
894
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1085
895
  session_context: string;
@@ -1089,9 +899,13 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1089
899
  slug: string;
1090
900
  relevance_scope?: "narrow" | "broad" | undefined;
1091
901
  relevance_paths?: string[] | undefined;
1092
- source_sessions?: unknown;
902
+ source_sessions?: string[] | undefined;
1093
903
  layer?: "personal" | "team" | undefined;
1094
- 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;
1095
909
  }>, {
1096
910
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1097
911
  session_context: string;
@@ -1103,7 +917,11 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1103
917
  relevance_paths?: string[] | undefined;
1104
918
  source_sessions?: string[] | undefined;
1105
919
  layer?: "personal" | "team" | undefined;
1106
- 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;
1107
925
  }, {
1108
926
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1109
927
  session_context: string;
@@ -1113,13 +931,16 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1113
931
  slug: string;
1114
932
  relevance_scope?: "narrow" | "broad" | undefined;
1115
933
  relevance_paths?: string[] | undefined;
1116
- source_sessions?: unknown;
934
+ source_sessions?: string[] | undefined;
1117
935
  layer?: "personal" | "team" | undefined;
1118
- 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;
1119
941
  }>;
1120
942
  declare const FabExtractKnowledgeInputShape: {
1121
- source_sessions: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
1122
- source_session: z.ZodOptional<z.ZodString>;
943
+ source_sessions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1123
944
  recent_paths: z.ZodArray<z.ZodString, "many">;
1124
945
  user_messages_summary: z.ZodString;
1125
946
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
@@ -1129,17 +950,50 @@ declare const FabExtractKnowledgeInputShape: {
1129
950
  session_context: z.ZodString;
1130
951
  relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1131
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"]>>;
1132
958
  };
1133
959
  type FabExtractKnowledgeInput = z.infer<typeof FabExtractKnowledgeInputSchema>;
1134
960
  declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
1135
961
  pending_path: z.ZodString;
1136
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">>;
1137
979
  }, "strip", z.ZodTypeAny, {
1138
980
  pending_path: string;
1139
981
  idempotency_key: string;
982
+ warnings?: {
983
+ file: string;
984
+ code: string;
985
+ action_hint: string;
986
+ line?: number | undefined;
987
+ }[] | undefined;
1140
988
  }, {
1141
989
  pending_path: string;
1142
990
  idempotency_key: string;
991
+ warnings?: {
992
+ file: string;
993
+ code: string;
994
+ action_hint: string;
995
+ line?: number | undefined;
996
+ }[] | undefined;
1143
997
  }>;
1144
998
  type FabExtractKnowledgeOutput = z.infer<typeof FabExtractKnowledgeOutputSchema>;
1145
999
  declare const fabExtractKnowledgeAnnotations: {
@@ -1402,6 +1256,22 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1402
1256
  title?: string | undefined;
1403
1257
  origin?: "personal" | "team" | undefined;
1404
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">>;
1405
1275
  }, "strip", z.ZodTypeAny, {
1406
1276
  action: "list";
1407
1277
  items: {
@@ -1414,6 +1284,12 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1414
1284
  title?: string | undefined;
1415
1285
  origin?: "personal" | "team" | undefined;
1416
1286
  }[];
1287
+ warnings?: {
1288
+ file: string;
1289
+ code: string;
1290
+ action_hint: string;
1291
+ line?: number | undefined;
1292
+ }[] | undefined;
1417
1293
  }, {
1418
1294
  action: "list";
1419
1295
  items: {
@@ -1426,6 +1302,12 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1426
1302
  title?: string | undefined;
1427
1303
  origin?: "personal" | "team" | undefined;
1428
1304
  }[];
1305
+ warnings?: {
1306
+ file: string;
1307
+ code: string;
1308
+ action_hint: string;
1309
+ line?: number | undefined;
1310
+ }[] | undefined;
1429
1311
  }>, z.ZodObject<{
1430
1312
  action: z.ZodLiteral<"approve">;
1431
1313
  approved: z.ZodArray<z.ZodObject<{
@@ -1438,40 +1320,124 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1438
1320
  pending_path: string;
1439
1321
  stable_id: string;
1440
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">>;
1441
1339
  }, "strip", z.ZodTypeAny, {
1442
1340
  approved: {
1443
1341
  pending_path: string;
1444
1342
  stable_id: string;
1445
1343
  }[];
1446
1344
  action: "approve";
1345
+ warnings?: {
1346
+ file: string;
1347
+ code: string;
1348
+ action_hint: string;
1349
+ line?: number | undefined;
1350
+ }[] | undefined;
1447
1351
  }, {
1448
1352
  approved: {
1449
1353
  pending_path: string;
1450
1354
  stable_id: string;
1451
1355
  }[];
1452
1356
  action: "approve";
1357
+ warnings?: {
1358
+ file: string;
1359
+ code: string;
1360
+ action_hint: string;
1361
+ line?: number | undefined;
1362
+ }[] | undefined;
1453
1363
  }>, z.ZodObject<{
1454
1364
  action: z.ZodLiteral<"reject">;
1455
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">>;
1456
1382
  }, "strip", z.ZodTypeAny, {
1457
1383
  action: "reject";
1458
1384
  rejected: string[];
1385
+ warnings?: {
1386
+ file: string;
1387
+ code: string;
1388
+ action_hint: string;
1389
+ line?: number | undefined;
1390
+ }[] | undefined;
1459
1391
  }, {
1460
1392
  action: "reject";
1461
1393
  rejected: string[];
1394
+ warnings?: {
1395
+ file: string;
1396
+ code: string;
1397
+ action_hint: string;
1398
+ line?: number | undefined;
1399
+ }[] | undefined;
1462
1400
  }>, z.ZodObject<{
1463
1401
  action: z.ZodLiteral<"modify">;
1464
1402
  pending_path: z.ZodString;
1465
1403
  prior_stable_id: z.ZodOptional<z.ZodString>;
1466
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">>;
1467
1421
  }, "strip", z.ZodTypeAny, {
1468
1422
  pending_path: string;
1469
1423
  action: "modify";
1424
+ warnings?: {
1425
+ file: string;
1426
+ code: string;
1427
+ action_hint: string;
1428
+ line?: number | undefined;
1429
+ }[] | undefined;
1470
1430
  prior_stable_id?: string | undefined;
1471
1431
  new_stable_id?: string | undefined;
1472
1432
  }, {
1473
1433
  pending_path: string;
1474
1434
  action: "modify";
1435
+ warnings?: {
1436
+ file: string;
1437
+ code: string;
1438
+ action_hint: string;
1439
+ line?: number | undefined;
1440
+ }[] | undefined;
1475
1441
  prior_stable_id?: string | undefined;
1476
1442
  new_stable_id?: string | undefined;
1477
1443
  }>, z.ZodObject<{
@@ -1504,6 +1470,22 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1504
1470
  title?: string | undefined;
1505
1471
  origin?: "personal" | "team" | undefined;
1506
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">>;
1507
1489
  }, "strip", z.ZodTypeAny, {
1508
1490
  action: "search";
1509
1491
  items: {
@@ -1516,6 +1498,12 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1516
1498
  title?: string | undefined;
1517
1499
  origin?: "personal" | "team" | undefined;
1518
1500
  }[];
1501
+ warnings?: {
1502
+ file: string;
1503
+ code: string;
1504
+ action_hint: string;
1505
+ line?: number | undefined;
1506
+ }[] | undefined;
1519
1507
  }, {
1520
1508
  action: "search";
1521
1509
  items: {
@@ -1528,15 +1516,49 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1528
1516
  title?: string | undefined;
1529
1517
  origin?: "personal" | "team" | undefined;
1530
1518
  }[];
1519
+ warnings?: {
1520
+ file: string;
1521
+ code: string;
1522
+ action_hint: string;
1523
+ line?: number | undefined;
1524
+ }[] | undefined;
1531
1525
  }>, z.ZodObject<{
1532
1526
  action: z.ZodLiteral<"defer">;
1533
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">>;
1534
1544
  }, "strip", z.ZodTypeAny, {
1535
1545
  action: "defer";
1536
1546
  deferred: string[];
1547
+ warnings?: {
1548
+ file: string;
1549
+ code: string;
1550
+ action_hint: string;
1551
+ line?: number | undefined;
1552
+ }[] | undefined;
1537
1553
  }, {
1538
1554
  action: "defer";
1539
1555
  deferred: string[];
1556
+ warnings?: {
1557
+ file: string;
1558
+ code: string;
1559
+ action_hint: string;
1560
+ line?: number | undefined;
1561
+ }[] | undefined;
1540
1562
  }>]>;
1541
1563
  type FabReviewOutput = z.infer<typeof FabReviewOutputSchema>;
1542
1564
  declare const FabReviewOutputShape: {
@@ -1584,6 +1606,22 @@ declare const FabReviewOutputShape: {
1584
1606
  readonly prior_stable_id: z.ZodOptional<z.ZodString>;
1585
1607
  readonly new_stable_id: z.ZodOptional<z.ZodString>;
1586
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">>;
1587
1625
  };
1588
1626
  declare const fabReviewAnnotations: {
1589
1627
  readonly readOnlyHint: false;
@@ -1698,4 +1736,4 @@ declare function parseKnowledgeId(id: string): {
1698
1736
  counter: number;
1699
1737
  } | null;
1700
1738
 
1701
- export { type FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, type FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, type FabReviewInput, FabReviewInputSchema, FabReviewInputShape, type FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, type KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, type KnowledgeType, type KnowledgeTypeCode, KnowledgeTypeSchema, type Layer, LayerSchema, type Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, getKnowledgeAnnotations, getKnowledgeInputSchema, getKnowledgeOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema };
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 };