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

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.
@@ -88,7 +88,7 @@ declare const planContextOutputSchema: z.ZodObject<{
88
88
  must_read_if: z.ZodString;
89
89
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
90
90
  id: z.ZodOptional<z.ZodString>;
91
- knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
91
+ knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
92
92
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
93
93
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
94
94
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -101,7 +101,7 @@ declare const planContextOutputSchema: z.ZodObject<{
101
101
  must_read_if: string;
102
102
  entities?: string[] | undefined;
103
103
  id?: string | undefined;
104
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
104
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
105
105
  maturity?: "draft" | "verified" | "proven" | undefined;
106
106
  knowledge_layer?: "personal" | "team" | undefined;
107
107
  layer_reason?: string | undefined;
@@ -114,13 +114,13 @@ declare const planContextOutputSchema: z.ZodObject<{
114
114
  must_read_if: string;
115
115
  entities?: string[] | undefined;
116
116
  id?: string | undefined;
117
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
117
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
118
118
  maturity?: "draft" | "verified" | "proven" | undefined;
119
119
  knowledge_layer?: "personal" | "team" | undefined;
120
120
  layer_reason?: string | undefined;
121
121
  created_at?: string | undefined;
122
122
  }>;
123
- type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
123
+ type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
124
124
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
125
125
  layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
126
126
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -136,7 +136,7 @@ declare const planContextOutputSchema: z.ZodObject<{
136
136
  must_read_if: string;
137
137
  entities?: string[] | undefined;
138
138
  id?: string | undefined;
139
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
139
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
140
140
  maturity?: "draft" | "verified" | "proven" | undefined;
141
141
  knowledge_layer?: "personal" | "team" | undefined;
142
142
  layer_reason?: string | undefined;
@@ -149,7 +149,7 @@ declare const planContextOutputSchema: z.ZodObject<{
149
149
  relevance_scope?: "narrow" | "broad" | undefined;
150
150
  relevance_paths?: string[] | undefined;
151
151
  layer?: "personal" | "team" | undefined;
152
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -162,7 +162,7 @@ declare const planContextOutputSchema: z.ZodObject<{
162
162
  must_read_if: string;
163
163
  entities?: string[] | undefined;
164
164
  id?: string | undefined;
165
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
165
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
166
166
  maturity?: "draft" | "verified" | "proven" | undefined;
167
167
  knowledge_layer?: "personal" | "team" | undefined;
168
168
  layer_reason?: string | undefined;
@@ -175,7 +175,7 @@ declare const planContextOutputSchema: z.ZodObject<{
175
175
  relevance_scope?: "narrow" | "broad" | undefined;
176
176
  relevance_paths?: string[] | undefined;
177
177
  layer?: "personal" | "team" | undefined;
178
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -199,7 +199,7 @@ declare const planContextOutputSchema: z.ZodObject<{
199
199
  must_read_if: string;
200
200
  entities?: string[] | undefined;
201
201
  id?: string | undefined;
202
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
202
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
203
203
  maturity?: "draft" | "verified" | "proven" | undefined;
204
204
  knowledge_layer?: "personal" | "team" | undefined;
205
205
  layer_reason?: string | undefined;
@@ -212,7 +212,7 @@ declare const planContextOutputSchema: z.ZodObject<{
212
212
  relevance_scope?: "narrow" | "broad" | undefined;
213
213
  relevance_paths?: string[] | undefined;
214
214
  layer?: "personal" | "team" | undefined;
215
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -236,7 +236,7 @@ declare const planContextOutputSchema: z.ZodObject<{
236
236
  must_read_if: string;
237
237
  entities?: string[] | undefined;
238
238
  id?: string | undefined;
239
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
239
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
240
240
  maturity?: "draft" | "verified" | "proven" | undefined;
241
241
  knowledge_layer?: "personal" | "team" | undefined;
242
242
  layer_reason?: string | undefined;
@@ -249,7 +249,7 @@ declare const planContextOutputSchema: z.ZodObject<{
249
249
  relevance_scope?: "narrow" | "broad" | undefined;
250
250
  relevance_paths?: string[] | undefined;
251
251
  layer?: "personal" | "team" | undefined;
252
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -269,7 +269,7 @@ declare const planContextOutputSchema: z.ZodObject<{
269
269
  must_read_if: z.ZodString;
270
270
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
271
  id: z.ZodOptional<z.ZodString>;
272
- knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
272
+ knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
273
273
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
274
274
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
275
275
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -282,7 +282,7 @@ declare const planContextOutputSchema: z.ZodObject<{
282
282
  must_read_if: string;
283
283
  entities?: string[] | undefined;
284
284
  id?: string | undefined;
285
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
285
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
286
286
  maturity?: "draft" | "verified" | "proven" | undefined;
287
287
  knowledge_layer?: "personal" | "team" | undefined;
288
288
  layer_reason?: string | undefined;
@@ -295,13 +295,13 @@ declare const planContextOutputSchema: z.ZodObject<{
295
295
  must_read_if: string;
296
296
  entities?: string[] | undefined;
297
297
  id?: string | undefined;
298
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
298
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
299
299
  maturity?: "draft" | "verified" | "proven" | undefined;
300
300
  knowledge_layer?: "personal" | "team" | undefined;
301
301
  layer_reason?: string | undefined;
302
302
  created_at?: string | undefined;
303
303
  }>;
304
- type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
304
+ type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
305
305
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
306
306
  layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
307
307
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -317,7 +317,7 @@ declare const planContextOutputSchema: z.ZodObject<{
317
317
  must_read_if: string;
318
318
  entities?: string[] | undefined;
319
319
  id?: string | undefined;
320
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
320
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
321
321
  maturity?: "draft" | "verified" | "proven" | undefined;
322
322
  knowledge_layer?: "personal" | "team" | undefined;
323
323
  layer_reason?: string | undefined;
@@ -330,7 +330,7 @@ declare const planContextOutputSchema: z.ZodObject<{
330
330
  relevance_scope?: "narrow" | "broad" | undefined;
331
331
  relevance_paths?: string[] | undefined;
332
332
  layer?: "personal" | "team" | undefined;
333
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -343,7 +343,7 @@ declare const planContextOutputSchema: z.ZodObject<{
343
343
  must_read_if: string;
344
344
  entities?: string[] | undefined;
345
345
  id?: string | undefined;
346
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
346
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
347
347
  maturity?: "draft" | "verified" | "proven" | undefined;
348
348
  knowledge_layer?: "personal" | "team" | undefined;
349
349
  layer_reason?: string | undefined;
@@ -356,7 +356,7 @@ declare const planContextOutputSchema: z.ZodObject<{
356
356
  relevance_scope?: "narrow" | "broad" | undefined;
357
357
  relevance_paths?: string[] | undefined;
358
358
  layer?: "personal" | "team" | undefined;
359
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -390,7 +390,7 @@ declare const planContextOutputSchema: z.ZodObject<{
390
390
  must_read_if: string;
391
391
  entities?: string[] | undefined;
392
392
  id?: string | undefined;
393
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
393
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
394
394
  maturity?: "draft" | "verified" | "proven" | undefined;
395
395
  knowledge_layer?: "personal" | "team" | undefined;
396
396
  layer_reason?: string | undefined;
@@ -403,7 +403,7 @@ declare const planContextOutputSchema: z.ZodObject<{
403
403
  relevance_scope?: "narrow" | "broad" | undefined;
404
404
  relevance_paths?: string[] | undefined;
405
405
  layer?: "personal" | "team" | undefined;
406
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -425,7 +425,7 @@ declare const planContextOutputSchema: z.ZodObject<{
425
425
  must_read_if: string;
426
426
  entities?: string[] | undefined;
427
427
  id?: string | undefined;
428
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
428
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
429
429
  maturity?: "draft" | "verified" | "proven" | undefined;
430
430
  knowledge_layer?: "personal" | "team" | undefined;
431
431
  layer_reason?: string | undefined;
@@ -438,7 +438,7 @@ declare const planContextOutputSchema: z.ZodObject<{
438
438
  relevance_scope?: "narrow" | "broad" | undefined;
439
439
  relevance_paths?: string[] | undefined;
440
440
  layer?: "personal" | "team" | undefined;
441
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -490,7 +490,7 @@ declare const planContextOutputSchema: z.ZodObject<{
490
490
  must_read_if: string;
491
491
  entities?: string[] | undefined;
492
492
  id?: string | undefined;
493
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
493
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
494
494
  maturity?: "draft" | "verified" | "proven" | undefined;
495
495
  knowledge_layer?: "personal" | "team" | undefined;
496
496
  layer_reason?: string | undefined;
@@ -503,7 +503,7 @@ declare const planContextOutputSchema: z.ZodObject<{
503
503
  relevance_scope?: "narrow" | "broad" | undefined;
504
504
  relevance_paths?: string[] | undefined;
505
505
  layer?: "personal" | "team" | undefined;
506
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
506
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
507
507
  maturity?: "draft" | "verified" | "proven" | undefined;
508
508
  layer_reason?: string | undefined;
509
509
  tags?: string[] | undefined;
@@ -521,7 +521,7 @@ declare const planContextOutputSchema: z.ZodObject<{
521
521
  must_read_if: string;
522
522
  entities?: string[] | undefined;
523
523
  id?: string | undefined;
524
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
524
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
525
525
  maturity?: "draft" | "verified" | "proven" | undefined;
526
526
  knowledge_layer?: "personal" | "team" | undefined;
527
527
  layer_reason?: string | undefined;
@@ -534,7 +534,7 @@ declare const planContextOutputSchema: z.ZodObject<{
534
534
  relevance_scope?: "narrow" | "broad" | undefined;
535
535
  relevance_paths?: string[] | undefined;
536
536
  layer?: "personal" | "team" | undefined;
537
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -576,7 +576,7 @@ declare const planContextOutputSchema: z.ZodObject<{
576
576
  must_read_if: string;
577
577
  entities?: string[] | undefined;
578
578
  id?: string | undefined;
579
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
579
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
580
580
  maturity?: "draft" | "verified" | "proven" | undefined;
581
581
  knowledge_layer?: "personal" | "team" | undefined;
582
582
  layer_reason?: string | undefined;
@@ -589,7 +589,7 @@ declare const planContextOutputSchema: z.ZodObject<{
589
589
  relevance_scope?: "narrow" | "broad" | undefined;
590
590
  relevance_paths?: string[] | undefined;
591
591
  layer?: "personal" | "team" | undefined;
592
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
592
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
593
593
  maturity?: "draft" | "verified" | "proven" | undefined;
594
594
  layer_reason?: string | undefined;
595
595
  tags?: string[] | undefined;
@@ -607,7 +607,7 @@ declare const planContextOutputSchema: z.ZodObject<{
607
607
  must_read_if: string;
608
608
  entities?: string[] | undefined;
609
609
  id?: string | undefined;
610
- knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
610
+ knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
611
611
  maturity?: "draft" | "verified" | "proven" | undefined;
612
612
  knowledge_layer?: "personal" | "team" | undefined;
613
613
  layer_reason?: string | undefined;
@@ -620,7 +620,7 @@ declare const planContextOutputSchema: z.ZodObject<{
620
620
  relevance_scope?: "narrow" | "broad" | undefined;
621
621
  relevance_paths?: string[] | undefined;
622
622
  layer?: "personal" | "team" | undefined;
623
- type?: "model" | "decision" | "guideline" | "pitfall" | "process" | 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;
@@ -877,7 +877,7 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
877
877
  }, "strip", z.ZodTypeAny, {
878
878
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
879
879
  session_context: string;
880
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
880
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
881
881
  recent_paths: string[];
882
882
  user_messages_summary: string;
883
883
  slug: string;
@@ -893,7 +893,7 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
893
893
  }, {
894
894
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
895
895
  session_context: string;
896
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
896
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
897
897
  recent_paths: string[];
898
898
  user_messages_summary: string;
899
899
  slug: string;
@@ -909,7 +909,7 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
909
909
  }>, {
910
910
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
911
911
  session_context: string;
912
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
912
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
913
913
  recent_paths: string[];
914
914
  user_messages_summary: string;
915
915
  slug: string;
@@ -925,7 +925,7 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
925
925
  }, {
926
926
  proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
927
927
  session_context: string;
928
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
928
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
929
929
  recent_paths: string[];
930
930
  user_messages_summary: string;
931
931
  slug: string;
@@ -1016,7 +1016,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1016
1016
  include_body: z.ZodOptional<z.ZodBoolean>;
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
1018
  layer?: "personal" | "team" | "both" | undefined;
1019
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1019
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1020
1020
  maturity?: "draft" | "verified" | "proven" | undefined;
1021
1021
  tags?: string[] | undefined;
1022
1022
  created_after?: string | undefined;
@@ -1025,7 +1025,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1025
1025
  include_body?: boolean | undefined;
1026
1026
  }, {
1027
1027
  layer?: "personal" | "team" | "both" | undefined;
1028
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1028
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1029
1029
  maturity?: "draft" | "verified" | "proven" | undefined;
1030
1030
  tags?: string[] | undefined;
1031
1031
  created_after?: string | undefined;
@@ -1037,7 +1037,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1037
1037
  action: "list";
1038
1038
  filters?: {
1039
1039
  layer?: "personal" | "team" | "both" | undefined;
1040
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1040
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1041
1041
  maturity?: "draft" | "verified" | "proven" | undefined;
1042
1042
  tags?: string[] | undefined;
1043
1043
  created_after?: string | undefined;
@@ -1049,7 +1049,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1049
1049
  action: "list";
1050
1050
  filters?: {
1051
1051
  layer?: "personal" | "team" | "both" | undefined;
1052
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1052
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1053
1053
  maturity?: "draft" | "verified" | "proven" | undefined;
1054
1054
  tags?: string[] | undefined;
1055
1055
  created_after?: string | undefined;
@@ -1144,7 +1144,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1144
1144
  include_body: z.ZodOptional<z.ZodBoolean>;
1145
1145
  }, "strip", z.ZodTypeAny, {
1146
1146
  layer?: "personal" | "team" | "both" | undefined;
1147
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1147
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1148
1148
  maturity?: "draft" | "verified" | "proven" | undefined;
1149
1149
  tags?: string[] | undefined;
1150
1150
  created_after?: string | undefined;
@@ -1153,7 +1153,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1153
1153
  include_body?: boolean | undefined;
1154
1154
  }, {
1155
1155
  layer?: "personal" | "team" | "both" | undefined;
1156
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1156
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1157
1157
  maturity?: "draft" | "verified" | "proven" | undefined;
1158
1158
  tags?: string[] | undefined;
1159
1159
  created_after?: string | undefined;
@@ -1166,7 +1166,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1166
1166
  query: string;
1167
1167
  filters?: {
1168
1168
  layer?: "personal" | "team" | "both" | undefined;
1169
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1169
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1170
1170
  maturity?: "draft" | "verified" | "proven" | undefined;
1171
1171
  tags?: string[] | undefined;
1172
1172
  created_after?: string | undefined;
@@ -1179,7 +1179,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
1179
1179
  query: string;
1180
1180
  filters?: {
1181
1181
  layer?: "personal" | "team" | "both" | undefined;
1182
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1182
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1183
1183
  maturity?: "draft" | "verified" | "proven" | undefined;
1184
1184
  tags?: string[] | undefined;
1185
1185
  created_after?: string | undefined;
@@ -1217,7 +1217,7 @@ declare const FabReviewInputShape: {
1217
1217
  include_body: z.ZodOptional<z.ZodBoolean>;
1218
1218
  }, "strip", z.ZodTypeAny, {
1219
1219
  layer?: "personal" | "team" | "both" | undefined;
1220
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1220
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1221
1221
  maturity?: "draft" | "verified" | "proven" | undefined;
1222
1222
  tags?: string[] | undefined;
1223
1223
  created_after?: string | undefined;
@@ -1226,7 +1226,7 @@ declare const FabReviewInputShape: {
1226
1226
  include_body?: boolean | undefined;
1227
1227
  }, {
1228
1228
  layer?: "personal" | "team" | "both" | undefined;
1229
- type?: "decisions" | "pitfalls" | "guidelines" | "models" | "processes" | undefined;
1229
+ type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
1230
1230
  maturity?: "draft" | "verified" | "proven" | undefined;
1231
1231
  tags?: string[] | undefined;
1232
1232
  created_after?: string | undefined;
@@ -1283,7 +1283,7 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1283
1283
  }, "strip", z.ZodTypeAny, {
1284
1284
  layer: "personal" | "team";
1285
1285
  pending_path: string;
1286
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
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;
@@ -1296,7 +1296,7 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1296
1296
  }, {
1297
1297
  layer: "personal" | "team";
1298
1298
  pending_path: string;
1299
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
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;
@@ -1328,7 +1328,7 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1328
1328
  items: {
1329
1329
  layer: "personal" | "team";
1330
1330
  pending_path: string;
1331
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
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;
@@ -1350,7 +1350,7 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1350
1350
  items: {
1351
1351
  layer: "personal" | "team";
1352
1352
  pending_path: string;
1353
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
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;
@@ -1502,8 +1502,9 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1502
1502
  }>, z.ZodObject<{
1503
1503
  action: z.ZodLiteral<"search">;
1504
1504
  items: z.ZodArray<z.ZodObject<{
1505
- pending_path: z.ZodString;
1506
- pending_path_absolute: z.ZodOptional<z.ZodString>;
1505
+ area: z.ZodEnum<["pending", "canonical"]>;
1506
+ path: z.ZodString;
1507
+ path_absolute: z.ZodOptional<z.ZodString>;
1507
1508
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1508
1509
  layer: z.ZodEnum<["team", "personal"]>;
1509
1510
  maturity: z.ZodEnum<["draft", "verified", "proven"]>;
@@ -1514,32 +1515,37 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1514
1515
  status: z.ZodOptional<z.ZodEnum<["active", "rejected", "deferred"]>>;
1515
1516
  deferred_until: z.ZodOptional<z.ZodString>;
1516
1517
  body: z.ZodOptional<z.ZodString>;
1518
+ stable_id: z.ZodOptional<z.ZodString>;
1517
1519
  }, "strip", z.ZodTypeAny, {
1520
+ path: string;
1518
1521
  layer: "personal" | "team";
1519
- pending_path: string;
1520
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1522
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1521
1523
  maturity: "draft" | "verified" | "proven";
1524
+ area: "canonical" | "pending";
1522
1525
  status?: "active" | "rejected" | "deferred" | undefined;
1523
1526
  summary?: string | undefined;
1527
+ stable_id?: string | undefined;
1524
1528
  tags?: string[] | undefined;
1525
1529
  body?: string | undefined;
1526
1530
  title?: string | undefined;
1527
- pending_path_absolute?: string | undefined;
1528
1531
  origin?: "personal" | "team" | undefined;
1529
1532
  deferred_until?: string | undefined;
1533
+ path_absolute?: string | undefined;
1530
1534
  }, {
1535
+ path: string;
1531
1536
  layer: "personal" | "team";
1532
- pending_path: string;
1533
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1537
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1534
1538
  maturity: "draft" | "verified" | "proven";
1539
+ area: "canonical" | "pending";
1535
1540
  status?: "active" | "rejected" | "deferred" | undefined;
1536
1541
  summary?: string | undefined;
1542
+ stable_id?: string | undefined;
1537
1543
  tags?: string[] | undefined;
1538
1544
  body?: string | undefined;
1539
1545
  title?: string | undefined;
1540
- pending_path_absolute?: string | undefined;
1541
1546
  origin?: "personal" | "team" | undefined;
1542
1547
  deferred_until?: string | undefined;
1548
+ path_absolute?: string | undefined;
1543
1549
  }>, "many">;
1544
1550
  warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1545
1551
  code: z.ZodString;
@@ -1560,18 +1566,20 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1560
1566
  }, "strip", z.ZodTypeAny, {
1561
1567
  action: "search";
1562
1568
  items: {
1569
+ path: string;
1563
1570
  layer: "personal" | "team";
1564
- pending_path: string;
1565
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1571
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1566
1572
  maturity: "draft" | "verified" | "proven";
1573
+ area: "canonical" | "pending";
1567
1574
  status?: "active" | "rejected" | "deferred" | undefined;
1568
1575
  summary?: string | undefined;
1576
+ stable_id?: string | undefined;
1569
1577
  tags?: string[] | undefined;
1570
1578
  body?: string | undefined;
1571
1579
  title?: string | undefined;
1572
- pending_path_absolute?: string | undefined;
1573
1580
  origin?: "personal" | "team" | undefined;
1574
1581
  deferred_until?: string | undefined;
1582
+ path_absolute?: string | undefined;
1575
1583
  }[];
1576
1584
  warnings?: {
1577
1585
  file: string;
@@ -1582,18 +1590,20 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1582
1590
  }, {
1583
1591
  action: "search";
1584
1592
  items: {
1593
+ path: string;
1585
1594
  layer: "personal" | "team";
1586
- pending_path: string;
1587
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1595
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1588
1596
  maturity: "draft" | "verified" | "proven";
1597
+ area: "canonical" | "pending";
1589
1598
  status?: "active" | "rejected" | "deferred" | undefined;
1590
1599
  summary?: string | undefined;
1600
+ stable_id?: string | undefined;
1591
1601
  tags?: string[] | undefined;
1592
1602
  body?: string | undefined;
1593
1603
  title?: string | undefined;
1594
- pending_path_absolute?: string | undefined;
1595
1604
  origin?: "personal" | "team" | undefined;
1596
1605
  deferred_until?: string | undefined;
1606
+ path_absolute?: string | undefined;
1597
1607
  }[];
1598
1608
  warnings?: {
1599
1609
  file: string;
@@ -1642,7 +1652,7 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
1642
1652
  type FabReviewOutput = z.infer<typeof FabReviewOutputSchema>;
1643
1653
  declare const FabReviewOutputShape: {
1644
1654
  readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "search", "defer"]>;
1645
- readonly items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1655
+ readonly items: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1646
1656
  pending_path: z.ZodString;
1647
1657
  pending_path_absolute: z.ZodOptional<z.ZodString>;
1648
1658
  type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
@@ -1658,7 +1668,7 @@ declare const FabReviewOutputShape: {
1658
1668
  }, "strip", z.ZodTypeAny, {
1659
1669
  layer: "personal" | "team";
1660
1670
  pending_path: string;
1661
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1671
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1662
1672
  maturity: "draft" | "verified" | "proven";
1663
1673
  status?: "active" | "rejected" | "deferred" | undefined;
1664
1674
  summary?: string | undefined;
@@ -1671,7 +1681,7 @@ declare const FabReviewOutputShape: {
1671
1681
  }, {
1672
1682
  layer: "personal" | "team";
1673
1683
  pending_path: string;
1674
- type: "decisions" | "pitfalls" | "guidelines" | "models" | "processes";
1684
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1675
1685
  maturity: "draft" | "verified" | "proven";
1676
1686
  status?: "active" | "rejected" | "deferred" | undefined;
1677
1687
  summary?: string | undefined;
@@ -1681,7 +1691,52 @@ declare const FabReviewOutputShape: {
1681
1691
  pending_path_absolute?: string | undefined;
1682
1692
  origin?: "personal" | "team" | undefined;
1683
1693
  deferred_until?: string | undefined;
1684
- }>, "many">>;
1694
+ }>, z.ZodObject<{
1695
+ area: z.ZodEnum<["pending", "canonical"]>;
1696
+ path: z.ZodString;
1697
+ path_absolute: z.ZodOptional<z.ZodString>;
1698
+ type: z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>;
1699
+ layer: z.ZodEnum<["team", "personal"]>;
1700
+ maturity: z.ZodEnum<["draft", "verified", "proven"]>;
1701
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1702
+ title: z.ZodOptional<z.ZodString>;
1703
+ summary: z.ZodOptional<z.ZodString>;
1704
+ origin: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
1705
+ status: z.ZodOptional<z.ZodEnum<["active", "rejected", "deferred"]>>;
1706
+ deferred_until: z.ZodOptional<z.ZodString>;
1707
+ body: z.ZodOptional<z.ZodString>;
1708
+ stable_id: z.ZodOptional<z.ZodString>;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ path: string;
1711
+ layer: "personal" | "team";
1712
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1713
+ maturity: "draft" | "verified" | "proven";
1714
+ area: "canonical" | "pending";
1715
+ status?: "active" | "rejected" | "deferred" | undefined;
1716
+ summary?: string | undefined;
1717
+ stable_id?: string | undefined;
1718
+ tags?: string[] | undefined;
1719
+ body?: string | undefined;
1720
+ title?: string | undefined;
1721
+ origin?: "personal" | "team" | undefined;
1722
+ deferred_until?: string | undefined;
1723
+ path_absolute?: string | undefined;
1724
+ }, {
1725
+ path: string;
1726
+ layer: "personal" | "team";
1727
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
1728
+ maturity: "draft" | "verified" | "proven";
1729
+ area: "canonical" | "pending";
1730
+ status?: "active" | "rejected" | "deferred" | undefined;
1731
+ summary?: string | undefined;
1732
+ stable_id?: string | undefined;
1733
+ tags?: string[] | undefined;
1734
+ body?: string | undefined;
1735
+ title?: string | undefined;
1736
+ origin?: "personal" | "team" | undefined;
1737
+ deferred_until?: string | undefined;
1738
+ path_absolute?: string | undefined;
1739
+ }>]>, "many">>;
1685
1740
  readonly approved: z.ZodOptional<z.ZodArray<z.ZodObject<{
1686
1741
  pending_path: z.ZodString;
1687
1742
  stable_id: z.ZodString;
@@ -1983,7 +2038,7 @@ declare const annotateIntentRequestSchema: z.ZodObject<{
1983
2038
  ledger_entry_id: string;
1984
2039
  annotation: string;
1985
2040
  }>;
1986
- declare const KnowledgeTypeSchema: z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>;
2041
+ declare const KnowledgeTypeSchema: z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>;
1987
2042
  type KnowledgeType = z.infer<typeof KnowledgeTypeSchema>;
1988
2043
  declare const MaturitySchema: z.ZodEnum<["draft", "verified", "proven"]>;
1989
2044
  type Maturity = z.infer<typeof MaturitySchema>;
@@ -1993,21 +2048,21 @@ declare const StableIdSchema: z.ZodString;
1993
2048
  type StableId = z.infer<typeof StableIdSchema>;
1994
2049
  declare const KnowledgeEntryFrontmatterSchema: z.ZodObject<{
1995
2050
  id: z.ZodString;
1996
- type: z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>;
2051
+ type: z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>;
1997
2052
  maturity: z.ZodEnum<["draft", "verified", "proven"]>;
1998
2053
  layer: z.ZodEnum<["personal", "team"]>;
1999
2054
  layer_reason: z.ZodOptional<z.ZodString>;
2000
2055
  created_at: z.ZodString;
2001
2056
  }, "strip", z.ZodTypeAny, {
2002
2057
  layer: "personal" | "team";
2003
- type: "model" | "decision" | "guideline" | "pitfall" | "process";
2058
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
2004
2059
  id: string;
2005
2060
  maturity: "draft" | "verified" | "proven";
2006
2061
  created_at: string;
2007
2062
  layer_reason?: string | undefined;
2008
2063
  }, {
2009
2064
  layer: "personal" | "team";
2010
- type: "model" | "decision" | "guideline" | "pitfall" | "process";
2065
+ type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
2011
2066
  id: string;
2012
2067
  maturity: "draft" | "verified" | "proven";
2013
2068
  created_at: string;
@@ -2015,11 +2070,11 @@ declare const KnowledgeEntryFrontmatterSchema: z.ZodObject<{
2015
2070
  }>;
2016
2071
  type KnowledgeEntryFrontmatter = z.infer<typeof KnowledgeEntryFrontmatterSchema>;
2017
2072
  declare const KNOWLEDGE_TYPE_CODES: {
2018
- readonly model: "MOD";
2019
- readonly decision: "DEC";
2020
- readonly guideline: "GLD";
2021
- readonly pitfall: "PIT";
2022
- readonly process: "PRO";
2073
+ readonly models: "MOD";
2074
+ readonly decisions: "DEC";
2075
+ readonly guidelines: "GLD";
2076
+ readonly pitfalls: "PIT";
2077
+ readonly processes: "PRO";
2023
2078
  };
2024
2079
  type KnowledgeTypeCode = (typeof KNOWLEDGE_TYPE_CODES)[KnowledgeType];
2025
2080
  declare function formatKnowledgeId(layer: Layer, type: KnowledgeType, counter: number): StableId;