@fenglimg/fabric-shared 2.0.0-rc.10 → 2.0.0-rc.13

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.
@@ -146,13 +146,13 @@ declare const planContextOutputSchema: z.ZodObject<{
146
146
  level: "L0" | "L1" | "L2";
147
147
  required: boolean;
148
148
  selectable: boolean;
149
+ relevance_scope?: "narrow" | "broad" | undefined;
150
+ relevance_paths?: string[] | undefined;
151
+ layer?: "personal" | "team" | undefined;
149
152
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
150
153
  maturity?: "draft" | "verified" | "proven" | undefined;
151
154
  layer_reason?: string | undefined;
152
- layer?: "personal" | "team" | undefined;
153
155
  tags?: string[] | undefined;
154
- relevance_scope?: "narrow" | "broad" | undefined;
155
- relevance_paths?: string[] | undefined;
156
156
  }, {
157
157
  description: {
158
158
  summary: string;
@@ -172,13 +172,13 @@ declare const planContextOutputSchema: z.ZodObject<{
172
172
  level: "L0" | "L1" | "L2";
173
173
  required: boolean;
174
174
  selectable: boolean;
175
+ relevance_scope?: "narrow" | "broad" | undefined;
176
+ relevance_paths?: string[] | undefined;
177
+ layer?: "personal" | "team" | undefined;
175
178
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
176
179
  maturity?: "draft" | "verified" | "proven" | undefined;
177
180
  layer_reason?: string | undefined;
178
- layer?: "personal" | "team" | undefined;
179
181
  tags?: string[] | undefined;
180
- relevance_scope?: "narrow" | "broad" | undefined;
181
- relevance_paths?: string[] | undefined;
182
182
  }>, "many">;
183
183
  }, "strip", z.ZodTypeAny, {
184
184
  path: string;
@@ -209,13 +209,13 @@ declare const planContextOutputSchema: z.ZodObject<{
209
209
  level: "L0" | "L1" | "L2";
210
210
  required: boolean;
211
211
  selectable: boolean;
212
+ relevance_scope?: "narrow" | "broad" | undefined;
213
+ relevance_paths?: string[] | undefined;
214
+ layer?: "personal" | "team" | undefined;
212
215
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
213
216
  maturity?: "draft" | "verified" | "proven" | undefined;
214
217
  layer_reason?: string | undefined;
215
- layer?: "personal" | "team" | undefined;
216
218
  tags?: string[] | undefined;
217
- relevance_scope?: "narrow" | "broad" | undefined;
218
- relevance_paths?: string[] | undefined;
219
219
  }[];
220
220
  }, {
221
221
  path: string;
@@ -246,13 +246,13 @@ declare const planContextOutputSchema: z.ZodObject<{
246
246
  level: "L0" | "L1" | "L2";
247
247
  required: boolean;
248
248
  selectable: boolean;
249
+ relevance_scope?: "narrow" | "broad" | undefined;
250
+ relevance_paths?: string[] | undefined;
251
+ layer?: "personal" | "team" | undefined;
249
252
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
250
253
  maturity?: "draft" | "verified" | "proven" | undefined;
251
254
  layer_reason?: string | undefined;
252
- layer?: "personal" | "team" | undefined;
253
255
  tags?: string[] | undefined;
254
- relevance_scope?: "narrow" | "broad" | undefined;
255
- relevance_paths?: string[] | undefined;
256
256
  }[];
257
257
  }>, "many">;
258
258
  shared: z.ZodObject<{
@@ -327,13 +327,13 @@ declare const planContextOutputSchema: z.ZodObject<{
327
327
  level: "L0" | "L1" | "L2";
328
328
  required: boolean;
329
329
  selectable: boolean;
330
+ relevance_scope?: "narrow" | "broad" | undefined;
331
+ relevance_paths?: string[] | undefined;
332
+ layer?: "personal" | "team" | undefined;
330
333
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
331
334
  maturity?: "draft" | "verified" | "proven" | undefined;
332
335
  layer_reason?: string | undefined;
333
- layer?: "personal" | "team" | undefined;
334
336
  tags?: string[] | undefined;
335
- relevance_scope?: "narrow" | "broad" | undefined;
336
- relevance_paths?: string[] | undefined;
337
337
  }, {
338
338
  description: {
339
339
  summary: string;
@@ -353,13 +353,13 @@ declare const planContextOutputSchema: z.ZodObject<{
353
353
  level: "L0" | "L1" | "L2";
354
354
  required: boolean;
355
355
  selectable: boolean;
356
+ relevance_scope?: "narrow" | "broad" | undefined;
357
+ relevance_paths?: string[] | undefined;
358
+ layer?: "personal" | "team" | undefined;
356
359
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
357
360
  maturity?: "draft" | "verified" | "proven" | undefined;
358
361
  layer_reason?: string | undefined;
359
- layer?: "personal" | "team" | undefined;
360
362
  tags?: string[] | undefined;
361
- relevance_scope?: "narrow" | "broad" | undefined;
362
- relevance_paths?: string[] | undefined;
363
363
  }>, "many">;
364
364
  preflight_diagnostics: z.ZodArray<z.ZodObject<{
365
365
  code: z.ZodLiteral<"missing_description">;
@@ -400,13 +400,13 @@ declare const planContextOutputSchema: z.ZodObject<{
400
400
  level: "L0" | "L1" | "L2";
401
401
  required: boolean;
402
402
  selectable: boolean;
403
+ relevance_scope?: "narrow" | "broad" | undefined;
404
+ relevance_paths?: string[] | undefined;
405
+ layer?: "personal" | "team" | undefined;
403
406
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
404
407
  maturity?: "draft" | "verified" | "proven" | undefined;
405
408
  layer_reason?: string | undefined;
406
- layer?: "personal" | "team" | undefined;
407
409
  tags?: string[] | undefined;
408
- relevance_scope?: "narrow" | "broad" | undefined;
409
- relevance_paths?: string[] | undefined;
410
410
  }[];
411
411
  preflight_diagnostics: {
412
412
  code: "missing_description";
@@ -435,13 +435,13 @@ declare const planContextOutputSchema: z.ZodObject<{
435
435
  level: "L0" | "L1" | "L2";
436
436
  required: boolean;
437
437
  selectable: boolean;
438
+ relevance_scope?: "narrow" | "broad" | undefined;
439
+ relevance_paths?: string[] | undefined;
440
+ layer?: "personal" | "team" | undefined;
438
441
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
439
442
  maturity?: "draft" | "verified" | "proven" | undefined;
440
443
  layer_reason?: string | undefined;
441
- layer?: "personal" | "team" | undefined;
442
444
  tags?: string[] | undefined;
443
- relevance_scope?: "narrow" | "broad" | undefined;
444
- relevance_paths?: string[] | undefined;
445
445
  }[];
446
446
  preflight_diagnostics: {
447
447
  code: "missing_description";
@@ -498,13 +498,13 @@ declare const planContextOutputSchema: z.ZodObject<{
498
498
  level: "L0" | "L1" | "L2";
499
499
  required: boolean;
500
500
  selectable: boolean;
501
+ relevance_scope?: "narrow" | "broad" | undefined;
502
+ relevance_paths?: string[] | undefined;
503
+ layer?: "personal" | "team" | undefined;
501
504
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
502
505
  maturity?: "draft" | "verified" | "proven" | undefined;
503
506
  layer_reason?: string | undefined;
504
- layer?: "personal" | "team" | undefined;
505
507
  tags?: string[] | undefined;
506
- relevance_scope?: "narrow" | "broad" | undefined;
507
- relevance_paths?: string[] | undefined;
508
508
  }[];
509
509
  }[];
510
510
  revision_hash: string;
@@ -529,13 +529,13 @@ declare const planContextOutputSchema: z.ZodObject<{
529
529
  level: "L0" | "L1" | "L2";
530
530
  required: boolean;
531
531
  selectable: boolean;
532
+ relevance_scope?: "narrow" | "broad" | undefined;
533
+ relevance_paths?: string[] | undefined;
534
+ layer?: "personal" | "team" | undefined;
532
535
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
533
536
  maturity?: "draft" | "verified" | "proven" | undefined;
534
537
  layer_reason?: string | undefined;
535
- layer?: "personal" | "team" | undefined;
536
538
  tags?: string[] | undefined;
537
- relevance_scope?: "narrow" | "broad" | undefined;
538
- relevance_paths?: string[] | undefined;
539
539
  }[];
540
540
  preflight_diagnostics: {
541
541
  code: "missing_description";
@@ -582,13 +582,13 @@ declare const planContextOutputSchema: z.ZodObject<{
582
582
  level: "L0" | "L1" | "L2";
583
583
  required: boolean;
584
584
  selectable: boolean;
585
+ relevance_scope?: "narrow" | "broad" | undefined;
586
+ relevance_paths?: string[] | undefined;
587
+ layer?: "personal" | "team" | undefined;
585
588
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
586
589
  maturity?: "draft" | "verified" | "proven" | undefined;
587
590
  layer_reason?: string | undefined;
588
- layer?: "personal" | "team" | undefined;
589
591
  tags?: string[] | undefined;
590
- relevance_scope?: "narrow" | "broad" | undefined;
591
- relevance_paths?: string[] | undefined;
592
592
  }[];
593
593
  }[];
594
594
  revision_hash: string;
@@ -613,13 +613,13 @@ declare const planContextOutputSchema: z.ZodObject<{
613
613
  level: "L0" | "L1" | "L2";
614
614
  required: boolean;
615
615
  selectable: boolean;
616
+ relevance_scope?: "narrow" | "broad" | undefined;
617
+ relevance_paths?: string[] | undefined;
618
+ layer?: "personal" | "team" | undefined;
616
619
  type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
617
620
  maturity?: "draft" | "verified" | "proven" | undefined;
618
621
  layer_reason?: string | undefined;
619
- layer?: "personal" | "team" | undefined;
620
622
  tags?: string[] | undefined;
621
- relevance_scope?: "narrow" | "broad" | undefined;
622
- relevance_paths?: string[] | undefined;
623
623
  }[];
624
624
  preflight_diagnostics: {
625
625
  code: "missing_description";
@@ -1066,45 +1066,55 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
1066
1066
  layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1067
1067
  proposed_reason: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1068
1068
  session_context: z.ZodString;
1069
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1070
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1069
1071
  }, "strip", z.ZodTypeAny, {
1072
+ proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1073
+ session_context: string;
1070
1074
  type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1071
1075
  recent_paths: string[];
1072
1076
  user_messages_summary: string;
1073
1077
  slug: string;
1074
- proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1075
- session_context: string;
1076
- layer?: "personal" | "team" | undefined;
1078
+ relevance_scope?: "narrow" | "broad" | undefined;
1079
+ relevance_paths?: string[] | undefined;
1077
1080
  source_sessions?: string[] | undefined;
1081
+ layer?: "personal" | "team" | undefined;
1078
1082
  source_session?: string | undefined;
1079
1083
  }, {
1084
+ proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1085
+ session_context: string;
1080
1086
  type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1081
1087
  recent_paths: string[];
1082
1088
  user_messages_summary: string;
1083
1089
  slug: string;
1084
- proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1085
- session_context: string;
1086
- layer?: "personal" | "team" | undefined;
1090
+ relevance_scope?: "narrow" | "broad" | undefined;
1091
+ relevance_paths?: string[] | undefined;
1087
1092
  source_sessions?: unknown;
1093
+ layer?: "personal" | "team" | undefined;
1088
1094
  source_session?: string | undefined;
1089
1095
  }>, {
1096
+ proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1097
+ session_context: string;
1090
1098
  type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1091
1099
  recent_paths: string[];
1092
1100
  user_messages_summary: string;
1093
1101
  slug: string;
1094
- proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1095
- session_context: string;
1096
- layer?: "personal" | "team" | undefined;
1102
+ relevance_scope?: "narrow" | "broad" | undefined;
1103
+ relevance_paths?: string[] | undefined;
1097
1104
  source_sessions?: string[] | undefined;
1105
+ layer?: "personal" | "team" | undefined;
1098
1106
  source_session?: string | undefined;
1099
1107
  }, {
1108
+ proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1109
+ session_context: string;
1100
1110
  type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1101
1111
  recent_paths: string[];
1102
1112
  user_messages_summary: string;
1103
1113
  slug: string;
1104
- proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
1105
- session_context: string;
1106
- layer?: "personal" | "team" | undefined;
1114
+ relevance_scope?: "narrow" | "broad" | undefined;
1115
+ relevance_paths?: string[] | undefined;
1107
1116
  source_sessions?: unknown;
1117
+ layer?: "personal" | "team" | undefined;
1108
1118
  source_session?: string | undefined;
1109
1119
  }>;
1110
1120
  declare const FabExtractKnowledgeInputShape: {
@@ -1117,6 +1127,8 @@ declare const FabExtractKnowledgeInputShape: {
1117
1127
  layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1118
1128
  proposed_reason: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
1119
1129
  session_context: z.ZodString;
1130
+ relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1131
+ relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1120
1132
  };
1121
1133
  type FabExtractKnowledgeInput = z.infer<typeof FabExtractKnowledgeInputSchema>;
1122
1134
  declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
@@ -1146,33 +1158,33 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1146
1158
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1147
1159
  created_after: z.ZodOptional<z.ZodString>;
1148
1160
  }, "strip", z.ZodTypeAny, {
1161
+ layer?: "personal" | "team" | "both" | undefined;
1149
1162
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1150
1163
  maturity?: "draft" | "verified" | "proven" | undefined;
1151
- layer?: "personal" | "team" | "both" | undefined;
1152
1164
  tags?: string[] | undefined;
1153
1165
  created_after?: string | undefined;
1154
1166
  }, {
1167
+ layer?: "personal" | "team" | "both" | undefined;
1155
1168
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1156
1169
  maturity?: "draft" | "verified" | "proven" | undefined;
1157
- layer?: "personal" | "team" | "both" | undefined;
1158
1170
  tags?: string[] | undefined;
1159
1171
  created_after?: string | undefined;
1160
1172
  }>>;
1161
1173
  }, "strip", z.ZodTypeAny, {
1162
1174
  action: "list";
1163
1175
  filters?: {
1176
+ layer?: "personal" | "team" | "both" | undefined;
1164
1177
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1165
1178
  maturity?: "draft" | "verified" | "proven" | undefined;
1166
- layer?: "personal" | "team" | "both" | undefined;
1167
1179
  tags?: string[] | undefined;
1168
1180
  created_after?: string | undefined;
1169
1181
  } | undefined;
1170
1182
  }, {
1171
1183
  action: "list";
1172
1184
  filters?: {
1185
+ layer?: "personal" | "team" | "both" | undefined;
1173
1186
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1174
1187
  maturity?: "draft" | "verified" | "proven" | undefined;
1175
- layer?: "personal" | "team" | "both" | undefined;
1176
1188
  tags?: string[] | undefined;
1177
1189
  created_after?: string | undefined;
1178
1190
  } | undefined;
@@ -1209,44 +1221,44 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1209
1221
  relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1210
1222
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1211
1223
  }, "strip", z.ZodTypeAny, {
1224
+ relevance_scope?: "narrow" | "broad" | undefined;
1225
+ relevance_paths?: string[] | undefined;
1226
+ layer?: "personal" | "team" | undefined;
1212
1227
  summary?: string | undefined;
1213
1228
  maturity?: "draft" | "verified" | "proven" | undefined;
1214
- layer?: "personal" | "team" | undefined;
1215
1229
  tags?: string[] | undefined;
1216
- relevance_scope?: "narrow" | "broad" | undefined;
1217
- relevance_paths?: string[] | undefined;
1218
1230
  title?: string | undefined;
1219
1231
  }, {
1232
+ relevance_scope?: "narrow" | "broad" | undefined;
1233
+ relevance_paths?: string[] | undefined;
1234
+ layer?: "personal" | "team" | undefined;
1220
1235
  summary?: string | undefined;
1221
1236
  maturity?: "draft" | "verified" | "proven" | undefined;
1222
- layer?: "personal" | "team" | undefined;
1223
1237
  tags?: string[] | undefined;
1224
- relevance_scope?: "narrow" | "broad" | undefined;
1225
- relevance_paths?: string[] | undefined;
1226
1238
  title?: string | undefined;
1227
1239
  }>;
1228
1240
  }, "strip", z.ZodTypeAny, {
1229
1241
  pending_path: string;
1230
1242
  action: "modify";
1231
1243
  changes: {
1244
+ relevance_scope?: "narrow" | "broad" | undefined;
1245
+ relevance_paths?: string[] | undefined;
1246
+ layer?: "personal" | "team" | undefined;
1232
1247
  summary?: string | undefined;
1233
1248
  maturity?: "draft" | "verified" | "proven" | undefined;
1234
- layer?: "personal" | "team" | undefined;
1235
1249
  tags?: string[] | undefined;
1236
- relevance_scope?: "narrow" | "broad" | undefined;
1237
- relevance_paths?: string[] | undefined;
1238
1250
  title?: string | undefined;
1239
1251
  };
1240
1252
  }, {
1241
1253
  pending_path: string;
1242
1254
  action: "modify";
1243
1255
  changes: {
1256
+ relevance_scope?: "narrow" | "broad" | undefined;
1257
+ relevance_paths?: string[] | undefined;
1258
+ layer?: "personal" | "team" | undefined;
1244
1259
  summary?: string | undefined;
1245
1260
  maturity?: "draft" | "verified" | "proven" | undefined;
1246
- layer?: "personal" | "team" | undefined;
1247
1261
  tags?: string[] | undefined;
1248
- relevance_scope?: "narrow" | "broad" | undefined;
1249
- relevance_paths?: string[] | undefined;
1250
1262
  title?: string | undefined;
1251
1263
  };
1252
1264
  }>, z.ZodObject<{
@@ -1259,15 +1271,15 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1259
1271
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1260
1272
  created_after: z.ZodOptional<z.ZodString>;
1261
1273
  }, "strip", z.ZodTypeAny, {
1274
+ layer?: "personal" | "team" | "both" | undefined;
1262
1275
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1263
1276
  maturity?: "draft" | "verified" | "proven" | undefined;
1264
- layer?: "personal" | "team" | "both" | undefined;
1265
1277
  tags?: string[] | undefined;
1266
1278
  created_after?: string | undefined;
1267
1279
  }, {
1280
+ layer?: "personal" | "team" | "both" | undefined;
1268
1281
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1269
1282
  maturity?: "draft" | "verified" | "proven" | undefined;
1270
- layer?: "personal" | "team" | "both" | undefined;
1271
1283
  tags?: string[] | undefined;
1272
1284
  created_after?: string | undefined;
1273
1285
  }>>;
@@ -1275,9 +1287,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1275
1287
  action: "search";
1276
1288
  query: string;
1277
1289
  filters?: {
1290
+ layer?: "personal" | "team" | "both" | undefined;
1278
1291
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1279
1292
  maturity?: "draft" | "verified" | "proven" | undefined;
1280
- layer?: "personal" | "team" | "both" | undefined;
1281
1293
  tags?: string[] | undefined;
1282
1294
  created_after?: string | undefined;
1283
1295
  } | undefined;
@@ -1285,9 +1297,9 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1285
1297
  action: "search";
1286
1298
  query: string;
1287
1299
  filters?: {
1300
+ layer?: "personal" | "team" | "both" | undefined;
1288
1301
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1289
1302
  maturity?: "draft" | "verified" | "proven" | undefined;
1290
- layer?: "personal" | "team" | "both" | undefined;
1291
1303
  tags?: string[] | undefined;
1292
1304
  created_after?: string | undefined;
1293
1305
  } | undefined;
@@ -1317,15 +1329,15 @@ declare const FabReviewInputShape: {
1317
1329
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1318
1330
  created_after: z.ZodOptional<z.ZodString>;
1319
1331
  }, "strip", z.ZodTypeAny, {
1332
+ layer?: "personal" | "team" | "both" | undefined;
1320
1333
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1321
1334
  maturity?: "draft" | "verified" | "proven" | undefined;
1322
- layer?: "personal" | "team" | "both" | undefined;
1323
1335
  tags?: string[] | undefined;
1324
1336
  created_after?: string | undefined;
1325
1337
  }, {
1338
+ layer?: "personal" | "team" | "both" | undefined;
1326
1339
  type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1327
1340
  maturity?: "draft" | "verified" | "proven" | undefined;
1328
- layer?: "personal" | "team" | "both" | undefined;
1329
1341
  tags?: string[] | undefined;
1330
1342
  created_after?: string | undefined;
1331
1343
  }>>;
@@ -1341,20 +1353,20 @@ declare const FabReviewInputShape: {
1341
1353
  relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
1342
1354
  relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1343
1355
  }, "strip", z.ZodTypeAny, {
1356
+ relevance_scope?: "narrow" | "broad" | undefined;
1357
+ relevance_paths?: string[] | undefined;
1358
+ layer?: "personal" | "team" | undefined;
1344
1359
  summary?: string | undefined;
1345
1360
  maturity?: "draft" | "verified" | "proven" | undefined;
1346
- layer?: "personal" | "team" | undefined;
1347
1361
  tags?: string[] | undefined;
1348
- relevance_scope?: "narrow" | "broad" | undefined;
1349
- relevance_paths?: string[] | undefined;
1350
1362
  title?: string | undefined;
1351
1363
  }, {
1364
+ relevance_scope?: "narrow" | "broad" | undefined;
1365
+ relevance_paths?: string[] | undefined;
1366
+ layer?: "personal" | "team" | undefined;
1352
1367
  summary?: string | undefined;
1353
1368
  maturity?: "draft" | "verified" | "proven" | undefined;
1354
- layer?: "personal" | "team" | undefined;
1355
1369
  tags?: string[] | undefined;
1356
- relevance_scope?: "narrow" | "broad" | undefined;
1357
- relevance_paths?: string[] | undefined;
1358
1370
  title?: string | undefined;
1359
1371
  }>>;
1360
1372
  readonly query: z.ZodOptional<z.ZodString>;
@@ -1372,19 +1384,19 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1372
1384
  summary: z.ZodOptional<z.ZodString>;
1373
1385
  origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1374
1386
  }, "strip", z.ZodTypeAny, {
1375
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1376
- maturity: "draft" | "verified" | "proven";
1377
1387
  layer: "personal" | "team";
1378
1388
  pending_path: string;
1389
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1390
+ maturity: "draft" | "verified" | "proven";
1379
1391
  summary?: string | undefined;
1380
1392
  tags?: string[] | undefined;
1381
1393
  title?: string | undefined;
1382
1394
  origin?: "personal" | "team" | undefined;
1383
1395
  }, {
1384
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1385
- maturity: "draft" | "verified" | "proven";
1386
1396
  layer: "personal" | "team";
1387
1397
  pending_path: string;
1398
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1399
+ maturity: "draft" | "verified" | "proven";
1388
1400
  summary?: string | undefined;
1389
1401
  tags?: string[] | undefined;
1390
1402
  title?: string | undefined;
@@ -1393,10 +1405,10 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1393
1405
  }, "strip", z.ZodTypeAny, {
1394
1406
  action: "list";
1395
1407
  items: {
1396
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1397
- maturity: "draft" | "verified" | "proven";
1398
1408
  layer: "personal" | "team";
1399
1409
  pending_path: string;
1410
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1411
+ maturity: "draft" | "verified" | "proven";
1400
1412
  summary?: string | undefined;
1401
1413
  tags?: string[] | undefined;
1402
1414
  title?: string | undefined;
@@ -1405,10 +1417,10 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1405
1417
  }, {
1406
1418
  action: "list";
1407
1419
  items: {
1408
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1409
- maturity: "draft" | "verified" | "proven";
1410
1420
  layer: "personal" | "team";
1411
1421
  pending_path: string;
1422
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1423
+ maturity: "draft" | "verified" | "proven";
1412
1424
  summary?: string | undefined;
1413
1425
  tags?: string[] | undefined;
1414
1426
  title?: string | undefined;
@@ -1420,22 +1432,22 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1420
1432
  pending_path: z.ZodString;
1421
1433
  stable_id: z.ZodString;
1422
1434
  }, "strip", z.ZodTypeAny, {
1423
- stable_id: string;
1424
1435
  pending_path: string;
1425
- }, {
1426
1436
  stable_id: string;
1437
+ }, {
1427
1438
  pending_path: string;
1439
+ stable_id: string;
1428
1440
  }>, "many">;
1429
1441
  }, "strip", z.ZodTypeAny, {
1430
1442
  approved: {
1431
- stable_id: string;
1432
1443
  pending_path: string;
1444
+ stable_id: string;
1433
1445
  }[];
1434
1446
  action: "approve";
1435
1447
  }, {
1436
1448
  approved: {
1437
- stable_id: string;
1438
1449
  pending_path: string;
1450
+ stable_id: string;
1439
1451
  }[];
1440
1452
  action: "approve";
1441
1453
  }>, z.ZodObject<{
@@ -1474,19 +1486,19 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1474
1486
  summary: z.ZodOptional<z.ZodString>;
1475
1487
  origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1476
1488
  }, "strip", z.ZodTypeAny, {
1477
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1478
- maturity: "draft" | "verified" | "proven";
1479
1489
  layer: "personal" | "team";
1480
1490
  pending_path: string;
1491
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1492
+ maturity: "draft" | "verified" | "proven";
1481
1493
  summary?: string | undefined;
1482
1494
  tags?: string[] | undefined;
1483
1495
  title?: string | undefined;
1484
1496
  origin?: "personal" | "team" | undefined;
1485
1497
  }, {
1486
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1487
- maturity: "draft" | "verified" | "proven";
1488
1498
  layer: "personal" | "team";
1489
1499
  pending_path: string;
1500
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1501
+ maturity: "draft" | "verified" | "proven";
1490
1502
  summary?: string | undefined;
1491
1503
  tags?: string[] | undefined;
1492
1504
  title?: string | undefined;
@@ -1495,10 +1507,10 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1495
1507
  }, "strip", z.ZodTypeAny, {
1496
1508
  action: "search";
1497
1509
  items: {
1498
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1499
- maturity: "draft" | "verified" | "proven";
1500
1510
  layer: "personal" | "team";
1501
1511
  pending_path: string;
1512
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1513
+ maturity: "draft" | "verified" | "proven";
1502
1514
  summary?: string | undefined;
1503
1515
  tags?: string[] | undefined;
1504
1516
  title?: string | undefined;
@@ -1507,10 +1519,10 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1507
1519
  }, {
1508
1520
  action: "search";
1509
1521
  items: {
1510
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1511
- maturity: "draft" | "verified" | "proven";
1512
1522
  layer: "personal" | "team";
1513
1523
  pending_path: string;
1524
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1525
+ maturity: "draft" | "verified" | "proven";
1514
1526
  summary?: string | undefined;
1515
1527
  tags?: string[] | undefined;
1516
1528
  title?: string | undefined;
@@ -1539,19 +1551,19 @@ declare const FabReviewOutputShape: {
1539
1551
  summary: z.ZodOptional<z.ZodString>;
1540
1552
  origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1541
1553
  }, "strip", z.ZodTypeAny, {
1542
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1543
- maturity: "draft" | "verified" | "proven";
1544
1554
  layer: "personal" | "team";
1545
1555
  pending_path: string;
1556
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1557
+ maturity: "draft" | "verified" | "proven";
1546
1558
  summary?: string | undefined;
1547
1559
  tags?: string[] | undefined;
1548
1560
  title?: string | undefined;
1549
1561
  origin?: "personal" | "team" | undefined;
1550
1562
  }, {
1551
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1552
- maturity: "draft" | "verified" | "proven";
1553
1563
  layer: "personal" | "team";
1554
1564
  pending_path: string;
1565
+ type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1566
+ maturity: "draft" | "verified" | "proven";
1555
1567
  summary?: string | undefined;
1556
1568
  tags?: string[] | undefined;
1557
1569
  title?: string | undefined;
@@ -1561,11 +1573,11 @@ declare const FabReviewOutputShape: {
1561
1573
  pending_path: z.ZodString;
1562
1574
  stable_id: z.ZodString;
1563
1575
  }, "strip", z.ZodTypeAny, {
1564
- stable_id: string;
1565
1576
  pending_path: string;
1566
- }, {
1567
1577
  stable_id: string;
1578
+ }, {
1568
1579
  pending_path: string;
1580
+ stable_id: string;
1569
1581
  }>, "many">>;
1570
1582
  readonly rejected: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1571
1583
  readonly pending_path: z.ZodOptional<z.ZodString>;
@@ -1656,18 +1668,18 @@ declare const KnowledgeEntryFrontmatterSchema: z.ZodObject<{
1656
1668
  layer_reason: z.ZodOptional<z.ZodString>;
1657
1669
  created_at: z.ZodString;
1658
1670
  }, "strip", z.ZodTypeAny, {
1671
+ layer: "personal" | "team";
1659
1672
  type: "model" | "decision" | "guideline" | "pitfall" | "process";
1660
1673
  id: string;
1661
1674
  maturity: "draft" | "verified" | "proven";
1662
1675
  created_at: string;
1663
- layer: "personal" | "team";
1664
1676
  layer_reason?: string | undefined;
1665
1677
  }, {
1678
+ layer: "personal" | "team";
1666
1679
  type: "model" | "decision" | "guideline" | "pitfall" | "process";
1667
1680
  id: string;
1668
1681
  maturity: "draft" | "verified" | "proven";
1669
1682
  created_at: string;
1670
- layer: "personal" | "team";
1671
1683
  layer_reason?: string | undefined;
1672
1684
  }>;
1673
1685
  type KnowledgeEntryFrontmatter = z.infer<typeof KnowledgeEntryFrontmatterSchema>;
@@ -36,7 +36,7 @@ import {
36
36
  planContextInputSchema,
37
37
  planContextOutputSchema,
38
38
  structuredWarningSchema
39
- } from "../chunk-G4IKTNY4.js";
39
+ } from "../chunk-NNDFOOBO.js";
40
40
  export {
41
41
  FabExtractKnowledgeInputSchema,
42
42
  FabExtractKnowledgeInputShape,