@fenglimg/fabric-shared 2.0.0-rc.29 → 2.0.0-rc.30

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.
@@ -6,13 +6,13 @@ declare const structuredWarningSchema: z.ZodObject<{
6
6
  line: z.ZodOptional<z.ZodNumber>;
7
7
  action_hint: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
- file: string;
10
9
  code: string;
10
+ file: string;
11
11
  action_hint: string;
12
12
  line?: number | undefined;
13
13
  }, {
14
- file: string;
15
14
  code: string;
15
+ file: string;
16
16
  action_hint: string;
17
17
  line?: number | undefined;
18
18
  }>;
@@ -146,10 +146,10 @@ declare const planContextOutputSchema: z.ZodObject<{
146
146
  level: "L0" | "L1" | "L2";
147
147
  required: boolean;
148
148
  selectable: boolean;
149
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
149
150
  relevance_scope?: "narrow" | "broad" | undefined;
150
151
  relevance_paths?: string[] | undefined;
151
152
  layer?: "personal" | "team" | undefined;
152
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
153
153
  maturity?: "draft" | "verified" | "proven" | undefined;
154
154
  layer_reason?: string | undefined;
155
155
  tags?: string[] | undefined;
@@ -172,10 +172,10 @@ declare const planContextOutputSchema: z.ZodObject<{
172
172
  level: "L0" | "L1" | "L2";
173
173
  required: boolean;
174
174
  selectable: boolean;
175
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
175
176
  relevance_scope?: "narrow" | "broad" | undefined;
176
177
  relevance_paths?: string[] | undefined;
177
178
  layer?: "personal" | "team" | undefined;
178
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
179
179
  maturity?: "draft" | "verified" | "proven" | undefined;
180
180
  layer_reason?: string | undefined;
181
181
  tags?: string[] | undefined;
@@ -209,10 +209,10 @@ declare const planContextOutputSchema: z.ZodObject<{
209
209
  level: "L0" | "L1" | "L2";
210
210
  required: boolean;
211
211
  selectable: boolean;
212
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
212
213
  relevance_scope?: "narrow" | "broad" | undefined;
213
214
  relevance_paths?: string[] | undefined;
214
215
  layer?: "personal" | "team" | undefined;
215
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
216
216
  maturity?: "draft" | "verified" | "proven" | undefined;
217
217
  layer_reason?: string | undefined;
218
218
  tags?: string[] | undefined;
@@ -246,10 +246,10 @@ declare const planContextOutputSchema: z.ZodObject<{
246
246
  level: "L0" | "L1" | "L2";
247
247
  required: boolean;
248
248
  selectable: boolean;
249
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
249
250
  relevance_scope?: "narrow" | "broad" | undefined;
250
251
  relevance_paths?: string[] | undefined;
251
252
  layer?: "personal" | "team" | undefined;
252
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
253
253
  maturity?: "draft" | "verified" | "proven" | undefined;
254
254
  layer_reason?: string | undefined;
255
255
  tags?: string[] | undefined;
@@ -327,10 +327,10 @@ declare const planContextOutputSchema: z.ZodObject<{
327
327
  level: "L0" | "L1" | "L2";
328
328
  required: boolean;
329
329
  selectable: boolean;
330
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
330
331
  relevance_scope?: "narrow" | "broad" | undefined;
331
332
  relevance_paths?: string[] | undefined;
332
333
  layer?: "personal" | "team" | undefined;
333
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
334
334
  maturity?: "draft" | "verified" | "proven" | undefined;
335
335
  layer_reason?: string | undefined;
336
336
  tags?: string[] | undefined;
@@ -353,10 +353,10 @@ declare const planContextOutputSchema: z.ZodObject<{
353
353
  level: "L0" | "L1" | "L2";
354
354
  required: boolean;
355
355
  selectable: boolean;
356
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
356
357
  relevance_scope?: "narrow" | "broad" | undefined;
357
358
  relevance_paths?: string[] | undefined;
358
359
  layer?: "personal" | "team" | undefined;
359
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
360
360
  maturity?: "draft" | "verified" | "proven" | undefined;
361
361
  layer_reason?: string | undefined;
362
362
  tags?: string[] | undefined;
@@ -400,10 +400,10 @@ declare const planContextOutputSchema: z.ZodObject<{
400
400
  level: "L0" | "L1" | "L2";
401
401
  required: boolean;
402
402
  selectable: boolean;
403
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
403
404
  relevance_scope?: "narrow" | "broad" | undefined;
404
405
  relevance_paths?: string[] | undefined;
405
406
  layer?: "personal" | "team" | undefined;
406
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
407
407
  maturity?: "draft" | "verified" | "proven" | undefined;
408
408
  layer_reason?: string | undefined;
409
409
  tags?: string[] | undefined;
@@ -435,10 +435,10 @@ declare const planContextOutputSchema: z.ZodObject<{
435
435
  level: "L0" | "L1" | "L2";
436
436
  required: boolean;
437
437
  selectable: boolean;
438
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
438
439
  relevance_scope?: "narrow" | "broad" | undefined;
439
440
  relevance_paths?: string[] | undefined;
440
441
  layer?: "personal" | "team" | undefined;
441
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
442
442
  maturity?: "draft" | "verified" | "proven" | undefined;
443
443
  layer_reason?: string | undefined;
444
444
  tags?: string[] | undefined;
@@ -457,20 +457,19 @@ declare const planContextOutputSchema: z.ZodObject<{
457
457
  line: z.ZodOptional<z.ZodNumber>;
458
458
  action_hint: z.ZodString;
459
459
  }, "strip", z.ZodTypeAny, {
460
- file: string;
461
460
  code: string;
461
+ file: string;
462
462
  action_hint: string;
463
463
  line?: number | undefined;
464
464
  }, {
465
- file: string;
466
465
  code: string;
466
+ file: string;
467
467
  action_hint: string;
468
468
  line?: number | undefined;
469
469
  }>, "many">>;
470
470
  auto_healed: z.ZodOptional<z.ZodBoolean>;
471
471
  previous_revision_hash: z.ZodOptional<z.ZodString>;
472
472
  }, "strip", z.ZodTypeAny, {
473
- stale: boolean;
474
473
  entries: {
475
474
  path: string;
476
475
  requirement_profile: {
@@ -500,15 +499,16 @@ declare const planContextOutputSchema: z.ZodObject<{
500
499
  level: "L0" | "L1" | "L2";
501
500
  required: boolean;
502
501
  selectable: boolean;
502
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
503
503
  relevance_scope?: "narrow" | "broad" | undefined;
504
504
  relevance_paths?: string[] | undefined;
505
505
  layer?: "personal" | "team" | undefined;
506
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
507
506
  maturity?: "draft" | "verified" | "proven" | undefined;
508
507
  layer_reason?: string | undefined;
509
508
  tags?: string[] | undefined;
510
509
  }[];
511
510
  }[];
511
+ stale: boolean;
512
512
  revision_hash: string;
513
513
  selection_token: string;
514
514
  shared: {
@@ -531,10 +531,10 @@ declare const planContextOutputSchema: z.ZodObject<{
531
531
  level: "L0" | "L1" | "L2";
532
532
  required: boolean;
533
533
  selectable: boolean;
534
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
534
535
  relevance_scope?: "narrow" | "broad" | undefined;
535
536
  relevance_paths?: string[] | undefined;
536
537
  layer?: "personal" | "team" | undefined;
537
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
538
538
  maturity?: "draft" | "verified" | "proven" | undefined;
539
539
  layer_reason?: string | undefined;
540
540
  tags?: string[] | undefined;
@@ -548,15 +548,14 @@ declare const planContextOutputSchema: z.ZodObject<{
548
548
  }[];
549
549
  };
550
550
  warnings?: {
551
- file: string;
552
551
  code: string;
552
+ file: string;
553
553
  action_hint: string;
554
554
  line?: number | undefined;
555
555
  }[] | undefined;
556
556
  auto_healed?: boolean | undefined;
557
557
  previous_revision_hash?: string | undefined;
558
558
  }, {
559
- stale: boolean;
560
559
  entries: {
561
560
  path: string;
562
561
  requirement_profile: {
@@ -586,15 +585,16 @@ declare const planContextOutputSchema: z.ZodObject<{
586
585
  level: "L0" | "L1" | "L2";
587
586
  required: boolean;
588
587
  selectable: boolean;
588
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
589
589
  relevance_scope?: "narrow" | "broad" | undefined;
590
590
  relevance_paths?: string[] | undefined;
591
591
  layer?: "personal" | "team" | undefined;
592
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
593
592
  maturity?: "draft" | "verified" | "proven" | undefined;
594
593
  layer_reason?: string | undefined;
595
594
  tags?: string[] | undefined;
596
595
  }[];
597
596
  }[];
597
+ stale: boolean;
598
598
  revision_hash: string;
599
599
  selection_token: string;
600
600
  shared: {
@@ -617,10 +617,10 @@ declare const planContextOutputSchema: z.ZodObject<{
617
617
  level: "L0" | "L1" | "L2";
618
618
  required: boolean;
619
619
  selectable: boolean;
620
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
620
621
  relevance_scope?: "narrow" | "broad" | undefined;
621
622
  relevance_paths?: string[] | undefined;
622
623
  layer?: "personal" | "team" | undefined;
623
- type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
624
624
  maturity?: "draft" | "verified" | "proven" | undefined;
625
625
  layer_reason?: string | undefined;
626
626
  tags?: string[] | undefined;
@@ -634,8 +634,8 @@ declare const planContextOutputSchema: z.ZodObject<{
634
634
  }[];
635
635
  };
636
636
  warnings?: {
637
- file: string;
638
637
  code: string;
638
+ file: string;
639
639
  action_hint: string;
640
640
  line?: number | undefined;
641
641
  }[] | undefined;
@@ -787,13 +787,13 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
787
787
  line: z.ZodOptional<z.ZodNumber>;
788
788
  action_hint: z.ZodString;
789
789
  }, "strip", z.ZodTypeAny, {
790
- file: string;
791
790
  code: string;
791
+ file: string;
792
792
  action_hint: string;
793
793
  line?: number | undefined;
794
794
  }, {
795
- file: string;
796
795
  code: string;
796
+ file: string;
797
797
  action_hint: string;
798
798
  line?: number | undefined;
799
799
  }>, "many">>;
@@ -813,8 +813,8 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
813
813
  severity: "warn";
814
814
  }[];
815
815
  warnings?: {
816
- file: string;
817
816
  code: string;
817
+ file: string;
818
818
  action_hint: string;
819
819
  line?: number | undefined;
820
820
  }[] | undefined;
@@ -838,8 +838,8 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
838
838
  severity: "warn";
839
839
  }[];
840
840
  warnings?: {
841
- file: string;
842
841
  code: string;
842
+ file: string;
843
843
  action_hint: string;
844
844
  line?: number | undefined;
845
845
  }[] | undefined;
@@ -875,9 +875,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
875
875
  must_read_if: z.ZodOptional<z.ZodString>;
876
876
  onboard_slot: z.ZodOptional<z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>>;
877
877
  }, "strip", z.ZodTypeAny, {
878
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
878
879
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
879
880
  session_context: string;
880
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
881
881
  recent_paths: string[];
882
882
  user_messages_summary: string;
883
883
  slug: string;
@@ -891,9 +891,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
891
891
  must_read_if?: string | undefined;
892
892
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
893
893
  }, {
894
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
894
895
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
895
896
  session_context: string;
896
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
897
897
  recent_paths: string[];
898
898
  user_messages_summary: string;
899
899
  slug: string;
@@ -907,9 +907,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
907
907
  must_read_if?: string | undefined;
908
908
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
909
909
  }>, {
910
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
910
911
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
911
912
  session_context: string;
912
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
913
913
  recent_paths: string[];
914
914
  user_messages_summary: string;
915
915
  slug: string;
@@ -923,9 +923,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
923
923
  must_read_if?: string | undefined;
924
924
  onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
925
925
  }, {
926
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
926
927
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
927
928
  session_context: string;
928
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
929
929
  recent_paths: string[];
930
930
  user_messages_summary: string;
931
931
  slug: string;
@@ -966,13 +966,13 @@ declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
966
966
  line: z.ZodOptional<z.ZodNumber>;
967
967
  action_hint: z.ZodString;
968
968
  }, "strip", z.ZodTypeAny, {
969
- file: string;
970
969
  code: string;
970
+ file: string;
971
971
  action_hint: string;
972
972
  line?: number | undefined;
973
973
  }, {
974
- file: string;
975
974
  code: string;
975
+ file: string;
976
976
  action_hint: string;
977
977
  line?: number | undefined;
978
978
  }>, "many">>;
@@ -980,8 +980,8 @@ declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
980
980
  pending_path: string;
981
981
  idempotency_key: string;
982
982
  warnings?: {
983
- file: string;
984
983
  code: string;
984
+ file: string;
985
985
  action_hint: string;
986
986
  line?: number | undefined;
987
987
  }[] | undefined;
@@ -989,8 +989,8 @@ declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
989
989
  pending_path: string;
990
990
  idempotency_key: string;
991
991
  warnings?: {
992
- file: string;
993
992
  code: string;
993
+ file: string;
994
994
  action_hint: string;
995
995
  line?: number | undefined;
996
996
  }[] | undefined;
@@ -1015,8 +1015,8 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1015
1015
  include_deferred: z.ZodOptional<z.ZodBoolean>;
1016
1016
  include_body: z.ZodOptional<z.ZodBoolean>;
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
- layer?: "personal" | "team" | "both" | undefined;
1019
1018
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1019
+ layer?: "personal" | "team" | "both" | undefined;
1020
1020
  maturity?: "draft" | "verified" | "proven" | undefined;
1021
1021
  tags?: string[] | undefined;
1022
1022
  created_after?: string | undefined;
@@ -1024,8 +1024,8 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1024
1024
  include_deferred?: boolean | undefined;
1025
1025
  include_body?: boolean | undefined;
1026
1026
  }, {
1027
- layer?: "personal" | "team" | "both" | undefined;
1028
1027
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1028
+ layer?: "personal" | "team" | "both" | undefined;
1029
1029
  maturity?: "draft" | "verified" | "proven" | undefined;
1030
1030
  tags?: string[] | undefined;
1031
1031
  created_after?: string | undefined;
@@ -1036,8 +1036,8 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1036
1036
  }, "strip", z.ZodTypeAny, {
1037
1037
  action: "list";
1038
1038
  filters?: {
1039
- layer?: "personal" | "team" | "both" | undefined;
1040
1039
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1040
+ layer?: "personal" | "team" | "both" | undefined;
1041
1041
  maturity?: "draft" | "verified" | "proven" | undefined;
1042
1042
  tags?: string[] | undefined;
1043
1043
  created_after?: string | undefined;
@@ -1048,8 +1048,8 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1048
1048
  }, {
1049
1049
  action: "list";
1050
1050
  filters?: {
1051
- layer?: "personal" | "team" | "both" | undefined;
1052
1051
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1052
+ layer?: "personal" | "team" | "both" | undefined;
1053
1053
  maturity?: "draft" | "verified" | "proven" | undefined;
1054
1054
  tags?: string[] | undefined;
1055
1055
  created_after?: string | undefined;
@@ -1143,8 +1143,8 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1143
1143
  include_deferred: z.ZodOptional<z.ZodBoolean>;
1144
1144
  include_body: z.ZodOptional<z.ZodBoolean>;
1145
1145
  }, "strip", z.ZodTypeAny, {
1146
- layer?: "personal" | "team" | "both" | undefined;
1147
1146
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1147
+ layer?: "personal" | "team" | "both" | undefined;
1148
1148
  maturity?: "draft" | "verified" | "proven" | undefined;
1149
1149
  tags?: string[] | undefined;
1150
1150
  created_after?: string | undefined;
@@ -1152,8 +1152,8 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1152
1152
  include_deferred?: boolean | undefined;
1153
1153
  include_body?: boolean | undefined;
1154
1154
  }, {
1155
- layer?: "personal" | "team" | "both" | undefined;
1156
1155
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1156
+ layer?: "personal" | "team" | "both" | undefined;
1157
1157
  maturity?: "draft" | "verified" | "proven" | undefined;
1158
1158
  tags?: string[] | undefined;
1159
1159
  created_after?: string | undefined;
@@ -1165,8 +1165,8 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1165
1165
  action: "search";
1166
1166
  query: string;
1167
1167
  filters?: {
1168
- layer?: "personal" | "team" | "both" | undefined;
1169
1168
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1169
+ layer?: "personal" | "team" | "both" | undefined;
1170
1170
  maturity?: "draft" | "verified" | "proven" | undefined;
1171
1171
  tags?: string[] | undefined;
1172
1172
  created_after?: string | undefined;
@@ -1178,8 +1178,8 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1178
1178
  action: "search";
1179
1179
  query: string;
1180
1180
  filters?: {
1181
- layer?: "personal" | "team" | "both" | undefined;
1182
1181
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1182
+ layer?: "personal" | "team" | "both" | undefined;
1183
1183
  maturity?: "draft" | "verified" | "proven" | undefined;
1184
1184
  tags?: string[] | undefined;
1185
1185
  created_after?: string | undefined;
@@ -1216,8 +1216,8 @@ declare const FabReviewInputShape: {
1216
1216
  include_deferred: z.ZodOptional<z.ZodBoolean>;
1217
1217
  include_body: z.ZodOptional<z.ZodBoolean>;
1218
1218
  }, "strip", z.ZodTypeAny, {
1219
- layer?: "personal" | "team" | "both" | undefined;
1220
1219
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1220
+ layer?: "personal" | "team" | "both" | undefined;
1221
1221
  maturity?: "draft" | "verified" | "proven" | undefined;
1222
1222
  tags?: string[] | undefined;
1223
1223
  created_after?: string | undefined;
@@ -1225,8 +1225,8 @@ declare const FabReviewInputShape: {
1225
1225
  include_deferred?: boolean | undefined;
1226
1226
  include_body?: boolean | undefined;
1227
1227
  }, {
1228
- layer?: "personal" | "team" | "both" | undefined;
1229
1228
  type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1229
+ layer?: "personal" | "team" | "both" | undefined;
1230
1230
  maturity?: "draft" | "verified" | "proven" | undefined;
1231
1231
  tags?: string[] | undefined;
1232
1232
  created_after?: string | undefined;
@@ -1281,9 +1281,9 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1281
1281
  deferred_until: z.ZodOptional<z.ZodString>;
1282
1282
  body: z.ZodOptional<z.ZodString>;
1283
1283
  }, "strip", z.ZodTypeAny, {
1284
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1284
1285
  layer: "personal" | "team";
1285
1286
  pending_path: string;
1286
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1287
1287
  maturity: "draft" | "verified" | "proven";
1288
1288
  status?: "active" | "rejected" | "deferred" | undefined;
1289
1289
  summary?: string | undefined;
@@ -1294,9 +1294,9 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1294
1294
  origin?: "personal" | "team" | undefined;
1295
1295
  deferred_until?: string | undefined;
1296
1296
  }, {
1297
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1297
1298
  layer: "personal" | "team";
1298
1299
  pending_path: string;
1299
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1300
1300
  maturity: "draft" | "verified" | "proven";
1301
1301
  status?: "active" | "rejected" | "deferred" | undefined;
1302
1302
  summary?: string | undefined;
@@ -1313,22 +1313,22 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1313
1313
  line: z.ZodOptional<z.ZodNumber>;
1314
1314
  action_hint: z.ZodString;
1315
1315
  }, "strip", z.ZodTypeAny, {
1316
- file: string;
1317
1316
  code: string;
1317
+ file: string;
1318
1318
  action_hint: string;
1319
1319
  line?: number | undefined;
1320
1320
  }, {
1321
- file: string;
1322
1321
  code: string;
1322
+ file: string;
1323
1323
  action_hint: string;
1324
1324
  line?: number | undefined;
1325
1325
  }>, "many">>;
1326
1326
  }, "strip", z.ZodTypeAny, {
1327
1327
  action: "list";
1328
1328
  items: {
1329
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1329
1330
  layer: "personal" | "team";
1330
1331
  pending_path: string;
1331
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1332
1332
  maturity: "draft" | "verified" | "proven";
1333
1333
  status?: "active" | "rejected" | "deferred" | undefined;
1334
1334
  summary?: string | undefined;
@@ -1340,17 +1340,17 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1340
1340
  deferred_until?: string | undefined;
1341
1341
  }[];
1342
1342
  warnings?: {
1343
- file: string;
1344
1343
  code: string;
1344
+ file: string;
1345
1345
  action_hint: string;
1346
1346
  line?: number | undefined;
1347
1347
  }[] | undefined;
1348
1348
  }, {
1349
1349
  action: "list";
1350
1350
  items: {
1351
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1351
1352
  layer: "personal" | "team";
1352
1353
  pending_path: string;
1353
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1354
1354
  maturity: "draft" | "verified" | "proven";
1355
1355
  status?: "active" | "rejected" | "deferred" | undefined;
1356
1356
  summary?: string | undefined;
@@ -1362,8 +1362,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1362
1362
  deferred_until?: string | undefined;
1363
1363
  }[];
1364
1364
  warnings?: {
1365
- file: string;
1366
1365
  code: string;
1366
+ file: string;
1367
1367
  action_hint: string;
1368
1368
  line?: number | undefined;
1369
1369
  }[] | undefined;
@@ -1385,13 +1385,13 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1385
1385
  line: z.ZodOptional<z.ZodNumber>;
1386
1386
  action_hint: z.ZodString;
1387
1387
  }, "strip", z.ZodTypeAny, {
1388
- file: string;
1389
1388
  code: string;
1389
+ file: string;
1390
1390
  action_hint: string;
1391
1391
  line?: number | undefined;
1392
1392
  }, {
1393
- file: string;
1394
1393
  code: string;
1394
+ file: string;
1395
1395
  action_hint: string;
1396
1396
  line?: number | undefined;
1397
1397
  }>, "many">>;
@@ -1402,8 +1402,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1402
1402
  }[];
1403
1403
  action: "approve";
1404
1404
  warnings?: {
1405
- file: string;
1406
1405
  code: string;
1406
+ file: string;
1407
1407
  action_hint: string;
1408
1408
  line?: number | undefined;
1409
1409
  }[] | undefined;
@@ -1414,8 +1414,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1414
1414
  }[];
1415
1415
  action: "approve";
1416
1416
  warnings?: {
1417
- file: string;
1418
1417
  code: string;
1418
+ file: string;
1419
1419
  action_hint: string;
1420
1420
  line?: number | undefined;
1421
1421
  }[] | undefined;
@@ -1428,13 +1428,13 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1428
1428
  line: z.ZodOptional<z.ZodNumber>;
1429
1429
  action_hint: z.ZodString;
1430
1430
  }, "strip", z.ZodTypeAny, {
1431
- file: string;
1432
1431
  code: string;
1432
+ file: string;
1433
1433
  action_hint: string;
1434
1434
  line?: number | undefined;
1435
1435
  }, {
1436
- file: string;
1437
1436
  code: string;
1437
+ file: string;
1438
1438
  action_hint: string;
1439
1439
  line?: number | undefined;
1440
1440
  }>, "many">>;
@@ -1442,8 +1442,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1442
1442
  action: "reject";
1443
1443
  rejected: string[];
1444
1444
  warnings?: {
1445
- file: string;
1446
1445
  code: string;
1446
+ file: string;
1447
1447
  action_hint: string;
1448
1448
  line?: number | undefined;
1449
1449
  }[] | undefined;
@@ -1451,8 +1451,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1451
1451
  action: "reject";
1452
1452
  rejected: string[];
1453
1453
  warnings?: {
1454
- file: string;
1455
1454
  code: string;
1455
+ file: string;
1456
1456
  action_hint: string;
1457
1457
  line?: number | undefined;
1458
1458
  }[] | undefined;
@@ -1467,13 +1467,13 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1467
1467
  line: z.ZodOptional<z.ZodNumber>;
1468
1468
  action_hint: z.ZodString;
1469
1469
  }, "strip", z.ZodTypeAny, {
1470
- file: string;
1471
1470
  code: string;
1471
+ file: string;
1472
1472
  action_hint: string;
1473
1473
  line?: number | undefined;
1474
1474
  }, {
1475
- file: string;
1476
1475
  code: string;
1476
+ file: string;
1477
1477
  action_hint: string;
1478
1478
  line?: number | undefined;
1479
1479
  }>, "many">>;
@@ -1481,8 +1481,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1481
1481
  pending_path: string;
1482
1482
  action: "modify";
1483
1483
  warnings?: {
1484
- file: string;
1485
1484
  code: string;
1485
+ file: string;
1486
1486
  action_hint: string;
1487
1487
  line?: number | undefined;
1488
1488
  }[] | undefined;
@@ -1492,8 +1492,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1492
1492
  pending_path: string;
1493
1493
  action: "modify";
1494
1494
  warnings?: {
1495
- file: string;
1496
1495
  code: string;
1496
+ file: string;
1497
1497
  action_hint: string;
1498
1498
  line?: number | undefined;
1499
1499
  }[] | undefined;
@@ -1518,8 +1518,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1518
1518
  stable_id: z.ZodOptional<z.ZodString>;
1519
1519
  }, "strip", z.ZodTypeAny, {
1520
1520
  path: string;
1521
- layer: "personal" | "team";
1522
1521
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1522
+ layer: "personal" | "team";
1523
1523
  maturity: "draft" | "verified" | "proven";
1524
1524
  area: "canonical" | "pending";
1525
1525
  status?: "active" | "rejected" | "deferred" | undefined;
@@ -1533,8 +1533,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1533
1533
  path_absolute?: string | undefined;
1534
1534
  }, {
1535
1535
  path: string;
1536
- layer: "personal" | "team";
1537
1536
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1537
+ layer: "personal" | "team";
1538
1538
  maturity: "draft" | "verified" | "proven";
1539
1539
  area: "canonical" | "pending";
1540
1540
  status?: "active" | "rejected" | "deferred" | undefined;
@@ -1553,13 +1553,13 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1553
1553
  line: z.ZodOptional<z.ZodNumber>;
1554
1554
  action_hint: z.ZodString;
1555
1555
  }, "strip", z.ZodTypeAny, {
1556
- file: string;
1557
1556
  code: string;
1557
+ file: string;
1558
1558
  action_hint: string;
1559
1559
  line?: number | undefined;
1560
1560
  }, {
1561
- file: string;
1562
1561
  code: string;
1562
+ file: string;
1563
1563
  action_hint: string;
1564
1564
  line?: number | undefined;
1565
1565
  }>, "many">>;
@@ -1567,8 +1567,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1567
1567
  action: "search";
1568
1568
  items: {
1569
1569
  path: string;
1570
- layer: "personal" | "team";
1571
1570
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1571
+ layer: "personal" | "team";
1572
1572
  maturity: "draft" | "verified" | "proven";
1573
1573
  area: "canonical" | "pending";
1574
1574
  status?: "active" | "rejected" | "deferred" | undefined;
@@ -1582,8 +1582,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1582
1582
  path_absolute?: string | undefined;
1583
1583
  }[];
1584
1584
  warnings?: {
1585
- file: string;
1586
1585
  code: string;
1586
+ file: string;
1587
1587
  action_hint: string;
1588
1588
  line?: number | undefined;
1589
1589
  }[] | undefined;
@@ -1591,8 +1591,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1591
1591
  action: "search";
1592
1592
  items: {
1593
1593
  path: string;
1594
- layer: "personal" | "team";
1595
1594
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1595
+ layer: "personal" | "team";
1596
1596
  maturity: "draft" | "verified" | "proven";
1597
1597
  area: "canonical" | "pending";
1598
1598
  status?: "active" | "rejected" | "deferred" | undefined;
@@ -1606,8 +1606,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1606
1606
  path_absolute?: string | undefined;
1607
1607
  }[];
1608
1608
  warnings?: {
1609
- file: string;
1610
1609
  code: string;
1610
+ file: string;
1611
1611
  action_hint: string;
1612
1612
  line?: number | undefined;
1613
1613
  }[] | undefined;
@@ -1620,13 +1620,13 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1620
1620
  line: z.ZodOptional<z.ZodNumber>;
1621
1621
  action_hint: z.ZodString;
1622
1622
  }, "strip", z.ZodTypeAny, {
1623
- file: string;
1624
1623
  code: string;
1624
+ file: string;
1625
1625
  action_hint: string;
1626
1626
  line?: number | undefined;
1627
1627
  }, {
1628
- file: string;
1629
1628
  code: string;
1629
+ file: string;
1630
1630
  action_hint: string;
1631
1631
  line?: number | undefined;
1632
1632
  }>, "many">>;
@@ -1634,8 +1634,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1634
1634
  action: "defer";
1635
1635
  deferred: string[];
1636
1636
  warnings?: {
1637
- file: string;
1638
1637
  code: string;
1638
+ file: string;
1639
1639
  action_hint: string;
1640
1640
  line?: number | undefined;
1641
1641
  }[] | undefined;
@@ -1643,8 +1643,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1643
1643
  action: "defer";
1644
1644
  deferred: string[];
1645
1645
  warnings?: {
1646
- file: string;
1647
1646
  code: string;
1647
+ file: string;
1648
1648
  action_hint: string;
1649
1649
  line?: number | undefined;
1650
1650
  }[] | undefined;
@@ -1666,9 +1666,9 @@ declare const FabReviewOutputShape: {
1666
1666
  deferred_until: z.ZodOptional<z.ZodString>;
1667
1667
  body: z.ZodOptional<z.ZodString>;
1668
1668
  }, "strip", z.ZodTypeAny, {
1669
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1669
1670
  layer: "personal" | "team";
1670
1671
  pending_path: string;
1671
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1672
1672
  maturity: "draft" | "verified" | "proven";
1673
1673
  status?: "active" | "rejected" | "deferred" | undefined;
1674
1674
  summary?: string | undefined;
@@ -1679,9 +1679,9 @@ declare const FabReviewOutputShape: {
1679
1679
  origin?: "personal" | "team" | undefined;
1680
1680
  deferred_until?: string | undefined;
1681
1681
  }, {
1682
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1682
1683
  layer: "personal" | "team";
1683
1684
  pending_path: string;
1684
- type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1685
1685
  maturity: "draft" | "verified" | "proven";
1686
1686
  status?: "active" | "rejected" | "deferred" | undefined;
1687
1687
  summary?: string | undefined;
@@ -1708,8 +1708,8 @@ declare const FabReviewOutputShape: {
1708
1708
  stable_id: z.ZodOptional<z.ZodString>;
1709
1709
  }, "strip", z.ZodTypeAny, {
1710
1710
  path: string;
1711
- layer: "personal" | "team";
1712
1711
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1712
+ layer: "personal" | "team";
1713
1713
  maturity: "draft" | "verified" | "proven";
1714
1714
  area: "canonical" | "pending";
1715
1715
  status?: "active" | "rejected" | "deferred" | undefined;
@@ -1723,8 +1723,8 @@ declare const FabReviewOutputShape: {
1723
1723
  path_absolute?: string | undefined;
1724
1724
  }, {
1725
1725
  path: string;
1726
- layer: "personal" | "team";
1727
1726
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1727
+ layer: "personal" | "team";
1728
1728
  maturity: "draft" | "verified" | "proven";
1729
1729
  area: "canonical" | "pending";
1730
1730
  status?: "active" | "rejected" | "deferred" | undefined;
@@ -1758,13 +1758,13 @@ declare const FabReviewOutputShape: {
1758
1758
  line: z.ZodOptional<z.ZodNumber>;
1759
1759
  action_hint: z.ZodString;
1760
1760
  }, "strip", z.ZodTypeAny, {
1761
- file: string;
1762
1761
  code: string;
1762
+ file: string;
1763
1763
  action_hint: string;
1764
1764
  line?: number | undefined;
1765
1765
  }, {
1766
- file: string;
1767
1766
  code: string;
1767
+ file: string;
1768
1768
  action_hint: string;
1769
1769
  line?: number | undefined;
1770
1770
  }>, "many">>;
@@ -1903,7 +1903,7 @@ declare const citeCoverageReportSchema: z.ZodObject<{
1903
1903
  marker_ts: number;
1904
1904
  marker_emitted_now: boolean;
1905
1905
  since_ts: number;
1906
- client_filter: "all" | "cc" | "codex" | "cursor";
1906
+ client_filter: "cursor" | "all" | "cc" | "codex";
1907
1907
  metrics: {
1908
1908
  edits_touched: number;
1909
1909
  qualifying_cites: number;
@@ -1942,7 +1942,7 @@ declare const citeCoverageReportSchema: z.ZodObject<{
1942
1942
  marker_ts: number;
1943
1943
  marker_emitted_now: boolean;
1944
1944
  since_ts: number;
1945
- client_filter: "all" | "cc" | "codex" | "cursor";
1945
+ client_filter: "cursor" | "all" | "cc" | "codex";
1946
1946
  metrics: {
1947
1947
  edits_touched: number;
1948
1948
  qualifying_cites: number;
@@ -2054,15 +2054,15 @@ declare const KnowledgeEntryFrontmatterSchema: z.ZodObject<{
2054
2054
  layer_reason: z.ZodOptional<z.ZodString>;
2055
2055
  created_at: z.ZodString;
2056
2056
  }, "strip", z.ZodTypeAny, {
2057
- layer: "personal" | "team";
2058
2057
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
2058
+ layer: "personal" | "team";
2059
2059
  id: string;
2060
2060
  maturity: "draft" | "verified" | "proven";
2061
2061
  created_at: string;
2062
2062
  layer_reason?: string | undefined;
2063
2063
  }, {
2064
- layer: "personal" | "team";
2065
2064
  type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
2065
+ layer: "personal" | "team";
2066
2066
  id: string;
2067
2067
  maturity: "draft" | "verified" | "proven";
2068
2068
  created_at: string;