@fenglimg/fabric-shared 2.0.0-rc.36 → 2.0.0-rc.38
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.
- package/LICENSE +21 -0
- package/README.md +13 -0
- package/dist/{chunk-P4RNLXTM.js → chunk-7CX32MYL.js} +133 -28
- package/dist/{chunk-VP2B2HB2.js → chunk-LTDB2UDN.js} +23 -20
- package/dist/{chunk-Z26SD627.js → chunk-WVPDH4BF.js} +229 -64
- package/dist/i18n/index.js +1 -1
- package/dist/{index-BjssYQb3.d.ts → index-UBqD9F0b.d.ts} +3 -9
- package/dist/index.d.ts +93 -13
- package/dist/index.js +39 -4
- package/dist/schemas/api-contracts.d.ts +731 -480
- package/dist/schemas/api-contracts.js +13 -1
- package/dist/templates/bootstrap-canonical.d.ts +1 -1
- package/dist/templates/bootstrap-canonical.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +26 -2
|
@@ -55,402 +55,146 @@ declare const planContextOutputSchema: z.ZodObject<{
|
|
|
55
55
|
path: z.ZodString;
|
|
56
56
|
requirement_profile: z.ZodObject<{
|
|
57
57
|
target_path: z.ZodString;
|
|
58
|
-
path_segments: z.ZodArray<z.ZodString, "many">;
|
|
59
|
-
extension: z.ZodString;
|
|
60
58
|
known_tech: z.ZodArray<z.ZodString, "many">;
|
|
61
59
|
user_intent: z.ZodString;
|
|
62
60
|
detected_entities: z.ZodArray<z.ZodString, "many">;
|
|
63
61
|
}, "strip", z.ZodTypeAny, {
|
|
64
62
|
target_path: string;
|
|
65
|
-
path_segments: string[];
|
|
66
|
-
extension: string;
|
|
67
63
|
known_tech: string[];
|
|
68
64
|
user_intent: string;
|
|
69
65
|
detected_entities: string[];
|
|
70
66
|
}, {
|
|
71
67
|
target_path: string;
|
|
72
|
-
path_segments: string[];
|
|
73
|
-
extension: string;
|
|
74
68
|
known_tech: string[];
|
|
75
69
|
user_intent: string;
|
|
76
70
|
detected_entities: string[];
|
|
77
71
|
}>;
|
|
78
|
-
description_index: z.ZodArray<z.ZodObject<{
|
|
79
|
-
stable_id: z.ZodString;
|
|
80
|
-
level: z.ZodEnum<["L0", "L1", "L2"]>;
|
|
81
|
-
required: z.ZodBoolean;
|
|
82
|
-
selectable: z.ZodBoolean;
|
|
83
|
-
description: z.ZodObject<{
|
|
84
|
-
summary: z.ZodString;
|
|
85
|
-
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
86
|
-
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
87
|
-
impact: z.ZodArray<z.ZodString, "many">;
|
|
88
|
-
must_read_if: z.ZodString;
|
|
89
|
-
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
90
|
-
id: z.ZodOptional<z.ZodString>;
|
|
91
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
|
|
92
|
-
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
93
|
-
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
94
|
-
layer_reason: z.ZodOptional<z.ZodString>;
|
|
95
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
96
|
-
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
summary: string;
|
|
98
|
-
intent_clues: string[];
|
|
99
|
-
tech_stack: string[];
|
|
100
|
-
impact: string[];
|
|
101
|
-
must_read_if: string;
|
|
102
|
-
entities?: string[] | undefined;
|
|
103
|
-
id?: string | undefined;
|
|
104
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
105
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
106
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
107
|
-
layer_reason?: string | undefined;
|
|
108
|
-
created_at?: string | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
summary: string;
|
|
111
|
-
intent_clues: string[];
|
|
112
|
-
tech_stack: string[];
|
|
113
|
-
impact: string[];
|
|
114
|
-
must_read_if: string;
|
|
115
|
-
entities?: string[] | undefined;
|
|
116
|
-
id?: string | undefined;
|
|
117
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
118
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
119
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
120
|
-
layer_reason?: string | undefined;
|
|
121
|
-
created_at?: string | undefined;
|
|
122
|
-
}>;
|
|
123
|
-
type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
|
|
124
|
-
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
125
|
-
layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
126
|
-
layer_reason: z.ZodOptional<z.ZodString>;
|
|
127
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
128
|
-
relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
|
|
129
|
-
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
description: {
|
|
132
|
-
summary: string;
|
|
133
|
-
intent_clues: string[];
|
|
134
|
-
tech_stack: string[];
|
|
135
|
-
impact: string[];
|
|
136
|
-
must_read_if: string;
|
|
137
|
-
entities?: string[] | undefined;
|
|
138
|
-
id?: string | undefined;
|
|
139
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
140
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
141
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
142
|
-
layer_reason?: string | undefined;
|
|
143
|
-
created_at?: string | undefined;
|
|
144
|
-
};
|
|
145
|
-
stable_id: string;
|
|
146
|
-
level: "L0" | "L1" | "L2";
|
|
147
|
-
required: boolean;
|
|
148
|
-
selectable: boolean;
|
|
149
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
150
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
151
|
-
relevance_paths?: string[] | undefined;
|
|
152
|
-
layer?: "personal" | "team" | undefined;
|
|
153
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
154
|
-
layer_reason?: string | undefined;
|
|
155
|
-
tags?: string[] | undefined;
|
|
156
|
-
}, {
|
|
157
|
-
description: {
|
|
158
|
-
summary: string;
|
|
159
|
-
intent_clues: string[];
|
|
160
|
-
tech_stack: string[];
|
|
161
|
-
impact: string[];
|
|
162
|
-
must_read_if: string;
|
|
163
|
-
entities?: string[] | undefined;
|
|
164
|
-
id?: string | undefined;
|
|
165
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
166
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
167
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
168
|
-
layer_reason?: string | undefined;
|
|
169
|
-
created_at?: string | undefined;
|
|
170
|
-
};
|
|
171
|
-
stable_id: string;
|
|
172
|
-
level: "L0" | "L1" | "L2";
|
|
173
|
-
required: boolean;
|
|
174
|
-
selectable: boolean;
|
|
175
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
176
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
177
|
-
relevance_paths?: string[] | undefined;
|
|
178
|
-
layer?: "personal" | "team" | undefined;
|
|
179
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
180
|
-
layer_reason?: string | undefined;
|
|
181
|
-
tags?: string[] | undefined;
|
|
182
|
-
}>, "many">;
|
|
183
72
|
}, "strip", z.ZodTypeAny, {
|
|
184
73
|
path: string;
|
|
185
74
|
requirement_profile: {
|
|
186
75
|
target_path: string;
|
|
187
|
-
path_segments: string[];
|
|
188
|
-
extension: string;
|
|
189
76
|
known_tech: string[];
|
|
190
77
|
user_intent: string;
|
|
191
78
|
detected_entities: string[];
|
|
192
79
|
};
|
|
193
|
-
description_index: {
|
|
194
|
-
description: {
|
|
195
|
-
summary: string;
|
|
196
|
-
intent_clues: string[];
|
|
197
|
-
tech_stack: string[];
|
|
198
|
-
impact: string[];
|
|
199
|
-
must_read_if: string;
|
|
200
|
-
entities?: string[] | undefined;
|
|
201
|
-
id?: string | undefined;
|
|
202
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
203
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
204
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
205
|
-
layer_reason?: string | undefined;
|
|
206
|
-
created_at?: string | undefined;
|
|
207
|
-
};
|
|
208
|
-
stable_id: string;
|
|
209
|
-
level: "L0" | "L1" | "L2";
|
|
210
|
-
required: boolean;
|
|
211
|
-
selectable: boolean;
|
|
212
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
213
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
214
|
-
relevance_paths?: string[] | undefined;
|
|
215
|
-
layer?: "personal" | "team" | undefined;
|
|
216
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
217
|
-
layer_reason?: string | undefined;
|
|
218
|
-
tags?: string[] | undefined;
|
|
219
|
-
}[];
|
|
220
80
|
}, {
|
|
221
81
|
path: string;
|
|
222
82
|
requirement_profile: {
|
|
223
83
|
target_path: string;
|
|
224
|
-
path_segments: string[];
|
|
225
|
-
extension: string;
|
|
226
84
|
known_tech: string[];
|
|
227
85
|
user_intent: string;
|
|
228
86
|
detected_entities: string[];
|
|
229
87
|
};
|
|
230
|
-
description_index: {
|
|
231
|
-
description: {
|
|
232
|
-
summary: string;
|
|
233
|
-
intent_clues: string[];
|
|
234
|
-
tech_stack: string[];
|
|
235
|
-
impact: string[];
|
|
236
|
-
must_read_if: string;
|
|
237
|
-
entities?: string[] | undefined;
|
|
238
|
-
id?: string | undefined;
|
|
239
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
240
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
241
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
242
|
-
layer_reason?: string | undefined;
|
|
243
|
-
created_at?: string | undefined;
|
|
244
|
-
};
|
|
245
|
-
stable_id: string;
|
|
246
|
-
level: "L0" | "L1" | "L2";
|
|
247
|
-
required: boolean;
|
|
248
|
-
selectable: boolean;
|
|
249
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
250
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
251
|
-
relevance_paths?: string[] | undefined;
|
|
252
|
-
layer?: "personal" | "team" | undefined;
|
|
253
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
254
|
-
layer_reason?: string | undefined;
|
|
255
|
-
tags?: string[] | undefined;
|
|
256
|
-
}[];
|
|
257
88
|
}>, "many">;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
must_read_if: z.ZodString;
|
|
270
|
-
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
271
|
-
id: z.ZodOptional<z.ZodString>;
|
|
272
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
|
|
273
|
-
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
274
|
-
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
275
|
-
layer_reason: z.ZodOptional<z.ZodString>;
|
|
276
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
277
|
-
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
summary: string;
|
|
279
|
-
intent_clues: string[];
|
|
280
|
-
tech_stack: string[];
|
|
281
|
-
impact: string[];
|
|
282
|
-
must_read_if: string;
|
|
283
|
-
entities?: string[] | undefined;
|
|
284
|
-
id?: string | undefined;
|
|
285
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
286
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
287
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
288
|
-
layer_reason?: string | undefined;
|
|
289
|
-
created_at?: string | undefined;
|
|
290
|
-
}, {
|
|
291
|
-
summary: string;
|
|
292
|
-
intent_clues: string[];
|
|
293
|
-
tech_stack: string[];
|
|
294
|
-
impact: string[];
|
|
295
|
-
must_read_if: string;
|
|
296
|
-
entities?: string[] | undefined;
|
|
297
|
-
id?: string | undefined;
|
|
298
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
299
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
300
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
301
|
-
layer_reason?: string | undefined;
|
|
302
|
-
created_at?: string | undefined;
|
|
303
|
-
}>;
|
|
304
|
-
type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
|
|
89
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
90
|
+
stable_id: z.ZodString;
|
|
91
|
+
description: z.ZodObject<{
|
|
92
|
+
summary: z.ZodString;
|
|
93
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
94
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
95
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
96
|
+
must_read_if: z.ZodString;
|
|
97
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
98
|
+
id: z.ZodOptional<z.ZodString>;
|
|
99
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
|
|
305
100
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
306
|
-
|
|
101
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
307
102
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
103
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
308
104
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
309
105
|
relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
|
|
310
106
|
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
311
107
|
}, "strip", z.ZodTypeAny, {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
must_read_if: string;
|
|
318
|
-
entities?: string[] | undefined;
|
|
319
|
-
id?: string | undefined;
|
|
320
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
321
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
322
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
323
|
-
layer_reason?: string | undefined;
|
|
324
|
-
created_at?: string | undefined;
|
|
325
|
-
};
|
|
326
|
-
stable_id: string;
|
|
327
|
-
level: "L0" | "L1" | "L2";
|
|
328
|
-
required: boolean;
|
|
329
|
-
selectable: boolean;
|
|
330
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
108
|
+
summary: string;
|
|
109
|
+
intent_clues: string[];
|
|
110
|
+
tech_stack: string[];
|
|
111
|
+
impact: string[];
|
|
112
|
+
must_read_if: string;
|
|
331
113
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
332
114
|
relevance_paths?: string[] | undefined;
|
|
333
|
-
|
|
115
|
+
entities?: string[] | undefined;
|
|
116
|
+
id?: string | undefined;
|
|
117
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
334
118
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
119
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
335
120
|
layer_reason?: string | undefined;
|
|
121
|
+
created_at?: string | undefined;
|
|
336
122
|
tags?: string[] | undefined;
|
|
337
123
|
}, {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
must_read_if: string;
|
|
344
|
-
entities?: string[] | undefined;
|
|
345
|
-
id?: string | undefined;
|
|
346
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
347
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
348
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
349
|
-
layer_reason?: string | undefined;
|
|
350
|
-
created_at?: string | undefined;
|
|
351
|
-
};
|
|
352
|
-
stable_id: string;
|
|
353
|
-
level: "L0" | "L1" | "L2";
|
|
354
|
-
required: boolean;
|
|
355
|
-
selectable: boolean;
|
|
356
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
124
|
+
summary: string;
|
|
125
|
+
intent_clues: string[];
|
|
126
|
+
tech_stack: string[];
|
|
127
|
+
impact: string[];
|
|
128
|
+
must_read_if: string;
|
|
357
129
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
358
130
|
relevance_paths?: string[] | undefined;
|
|
359
|
-
|
|
131
|
+
entities?: string[] | undefined;
|
|
132
|
+
id?: string | undefined;
|
|
133
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
360
134
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
135
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
361
136
|
layer_reason?: string | undefined;
|
|
137
|
+
created_at?: string | undefined;
|
|
362
138
|
tags?: string[] | undefined;
|
|
363
|
-
}
|
|
364
|
-
preflight_diagnostics: z.ZodArray<z.ZodObject<{
|
|
365
|
-
code: z.ZodLiteral<"missing_description">;
|
|
366
|
-
severity: z.ZodLiteral<"warn">;
|
|
367
|
-
message: z.ZodString;
|
|
368
|
-
stable_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
369
|
-
path: z.ZodOptional<z.ZodString>;
|
|
370
|
-
}, "strip", z.ZodTypeAny, {
|
|
371
|
-
code: "missing_description";
|
|
372
|
-
message: string;
|
|
373
|
-
severity: "warn";
|
|
374
|
-
path?: string | undefined;
|
|
375
|
-
stable_ids?: string[] | undefined;
|
|
376
|
-
}, {
|
|
377
|
-
code: "missing_description";
|
|
378
|
-
message: string;
|
|
379
|
-
severity: "warn";
|
|
380
|
-
path?: string | undefined;
|
|
381
|
-
stable_ids?: string[] | undefined;
|
|
382
|
-
}>, "many">;
|
|
139
|
+
}>;
|
|
383
140
|
}, "strip", z.ZodTypeAny, {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
must_read_if: string;
|
|
391
|
-
entities?: string[] | undefined;
|
|
392
|
-
id?: string | undefined;
|
|
393
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
394
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
395
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
396
|
-
layer_reason?: string | undefined;
|
|
397
|
-
created_at?: string | undefined;
|
|
398
|
-
};
|
|
399
|
-
stable_id: string;
|
|
400
|
-
level: "L0" | "L1" | "L2";
|
|
401
|
-
required: boolean;
|
|
402
|
-
selectable: boolean;
|
|
403
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
141
|
+
description: {
|
|
142
|
+
summary: string;
|
|
143
|
+
intent_clues: string[];
|
|
144
|
+
tech_stack: string[];
|
|
145
|
+
impact: string[];
|
|
146
|
+
must_read_if: string;
|
|
404
147
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
405
148
|
relevance_paths?: string[] | undefined;
|
|
406
|
-
|
|
149
|
+
entities?: string[] | undefined;
|
|
150
|
+
id?: string | undefined;
|
|
151
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
407
152
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
153
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
408
154
|
layer_reason?: string | undefined;
|
|
155
|
+
created_at?: string | undefined;
|
|
409
156
|
tags?: string[] | undefined;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
code: "missing_description";
|
|
413
|
-
message: string;
|
|
414
|
-
severity: "warn";
|
|
415
|
-
path?: string | undefined;
|
|
416
|
-
stable_ids?: string[] | undefined;
|
|
417
|
-
}[];
|
|
157
|
+
};
|
|
158
|
+
stable_id: string;
|
|
418
159
|
}, {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
must_read_if: string;
|
|
426
|
-
entities?: string[] | undefined;
|
|
427
|
-
id?: string | undefined;
|
|
428
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
429
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
430
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
431
|
-
layer_reason?: string | undefined;
|
|
432
|
-
created_at?: string | undefined;
|
|
433
|
-
};
|
|
434
|
-
stable_id: string;
|
|
435
|
-
level: "L0" | "L1" | "L2";
|
|
436
|
-
required: boolean;
|
|
437
|
-
selectable: boolean;
|
|
438
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
160
|
+
description: {
|
|
161
|
+
summary: string;
|
|
162
|
+
intent_clues: string[];
|
|
163
|
+
tech_stack: string[];
|
|
164
|
+
impact: string[];
|
|
165
|
+
must_read_if: string;
|
|
439
166
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
440
167
|
relevance_paths?: string[] | undefined;
|
|
441
|
-
|
|
168
|
+
entities?: string[] | undefined;
|
|
169
|
+
id?: string | undefined;
|
|
170
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
442
171
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
172
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
443
173
|
layer_reason?: string | undefined;
|
|
174
|
+
created_at?: string | undefined;
|
|
444
175
|
tags?: string[] | undefined;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
176
|
+
};
|
|
177
|
+
stable_id: string;
|
|
178
|
+
}>, "many">;
|
|
179
|
+
preflight_diagnostics: z.ZodArray<z.ZodObject<{
|
|
180
|
+
code: z.ZodEnum<["missing_description", "empty_shell_suppressed"]>;
|
|
181
|
+
severity: z.ZodLiteral<"warn">;
|
|
182
|
+
message: z.ZodString;
|
|
183
|
+
stable_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
184
|
+
path: z.ZodOptional<z.ZodString>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
code: "missing_description" | "empty_shell_suppressed";
|
|
187
|
+
message: string;
|
|
188
|
+
severity: "warn";
|
|
189
|
+
path?: string | undefined;
|
|
190
|
+
stable_ids?: string[] | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
code: "missing_description" | "empty_shell_suppressed";
|
|
193
|
+
message: string;
|
|
194
|
+
severity: "warn";
|
|
195
|
+
path?: string | undefined;
|
|
196
|
+
stable_ids?: string[] | undefined;
|
|
197
|
+
}>, "many">;
|
|
454
198
|
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
455
199
|
code: z.ZodString;
|
|
456
200
|
file: z.ZodString;
|
|
@@ -469,84 +213,47 @@ declare const planContextOutputSchema: z.ZodObject<{
|
|
|
469
213
|
}>, "many">>;
|
|
470
214
|
auto_healed: z.ZodOptional<z.ZodBoolean>;
|
|
471
215
|
previous_revision_hash: z.ZodOptional<z.ZodString>;
|
|
216
|
+
redirects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
472
217
|
}, "strip", z.ZodTypeAny, {
|
|
473
218
|
entries: {
|
|
474
219
|
path: string;
|
|
475
220
|
requirement_profile: {
|
|
476
221
|
target_path: string;
|
|
477
|
-
path_segments: string[];
|
|
478
|
-
extension: string;
|
|
479
222
|
known_tech: string[];
|
|
480
223
|
user_intent: string;
|
|
481
224
|
detected_entities: string[];
|
|
482
225
|
};
|
|
483
|
-
description_index: {
|
|
484
|
-
description: {
|
|
485
|
-
summary: string;
|
|
486
|
-
intent_clues: string[];
|
|
487
|
-
tech_stack: string[];
|
|
488
|
-
impact: string[];
|
|
489
|
-
must_read_if: string;
|
|
490
|
-
entities?: string[] | undefined;
|
|
491
|
-
id?: string | undefined;
|
|
492
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
493
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
494
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
495
|
-
layer_reason?: string | undefined;
|
|
496
|
-
created_at?: string | undefined;
|
|
497
|
-
};
|
|
498
|
-
stable_id: string;
|
|
499
|
-
level: "L0" | "L1" | "L2";
|
|
500
|
-
required: boolean;
|
|
501
|
-
selectable: boolean;
|
|
502
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
503
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
504
|
-
relevance_paths?: string[] | undefined;
|
|
505
|
-
layer?: "personal" | "team" | undefined;
|
|
506
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
507
|
-
layer_reason?: string | undefined;
|
|
508
|
-
tags?: string[] | undefined;
|
|
509
|
-
}[];
|
|
510
226
|
}[];
|
|
511
227
|
stale: boolean;
|
|
512
228
|
revision_hash: string;
|
|
513
229
|
selection_token: string;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
must_read_if: string;
|
|
522
|
-
entities?: string[] | undefined;
|
|
523
|
-
id?: string | undefined;
|
|
524
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
525
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
526
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
527
|
-
layer_reason?: string | undefined;
|
|
528
|
-
created_at?: string | undefined;
|
|
529
|
-
};
|
|
530
|
-
stable_id: string;
|
|
531
|
-
level: "L0" | "L1" | "L2";
|
|
532
|
-
required: boolean;
|
|
533
|
-
selectable: boolean;
|
|
534
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
230
|
+
candidates: {
|
|
231
|
+
description: {
|
|
232
|
+
summary: string;
|
|
233
|
+
intent_clues: string[];
|
|
234
|
+
tech_stack: string[];
|
|
235
|
+
impact: string[];
|
|
236
|
+
must_read_if: string;
|
|
535
237
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
536
238
|
relevance_paths?: string[] | undefined;
|
|
537
|
-
|
|
239
|
+
entities?: string[] | undefined;
|
|
240
|
+
id?: string | undefined;
|
|
241
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
538
242
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
243
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
539
244
|
layer_reason?: string | undefined;
|
|
245
|
+
created_at?: string | undefined;
|
|
540
246
|
tags?: string[] | undefined;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
247
|
+
};
|
|
248
|
+
stable_id: string;
|
|
249
|
+
}[];
|
|
250
|
+
preflight_diagnostics: {
|
|
251
|
+
code: "missing_description" | "empty_shell_suppressed";
|
|
252
|
+
message: string;
|
|
253
|
+
severity: "warn";
|
|
254
|
+
path?: string | undefined;
|
|
255
|
+
stable_ids?: string[] | undefined;
|
|
256
|
+
}[];
|
|
550
257
|
warnings?: {
|
|
551
258
|
code: string;
|
|
552
259
|
file: string;
|
|
@@ -555,84 +262,47 @@ declare const planContextOutputSchema: z.ZodObject<{
|
|
|
555
262
|
}[] | undefined;
|
|
556
263
|
auto_healed?: boolean | undefined;
|
|
557
264
|
previous_revision_hash?: string | undefined;
|
|
265
|
+
redirects?: Record<string, string> | undefined;
|
|
558
266
|
}, {
|
|
559
267
|
entries: {
|
|
560
268
|
path: string;
|
|
561
269
|
requirement_profile: {
|
|
562
270
|
target_path: string;
|
|
563
|
-
path_segments: string[];
|
|
564
|
-
extension: string;
|
|
565
271
|
known_tech: string[];
|
|
566
272
|
user_intent: string;
|
|
567
273
|
detected_entities: string[];
|
|
568
274
|
};
|
|
569
|
-
description_index: {
|
|
570
|
-
description: {
|
|
571
|
-
summary: string;
|
|
572
|
-
intent_clues: string[];
|
|
573
|
-
tech_stack: string[];
|
|
574
|
-
impact: string[];
|
|
575
|
-
must_read_if: string;
|
|
576
|
-
entities?: string[] | undefined;
|
|
577
|
-
id?: string | undefined;
|
|
578
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
579
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
580
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
581
|
-
layer_reason?: string | undefined;
|
|
582
|
-
created_at?: string | undefined;
|
|
583
|
-
};
|
|
584
|
-
stable_id: string;
|
|
585
|
-
level: "L0" | "L1" | "L2";
|
|
586
|
-
required: boolean;
|
|
587
|
-
selectable: boolean;
|
|
588
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
589
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
590
|
-
relevance_paths?: string[] | undefined;
|
|
591
|
-
layer?: "personal" | "team" | undefined;
|
|
592
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
593
|
-
layer_reason?: string | undefined;
|
|
594
|
-
tags?: string[] | undefined;
|
|
595
|
-
}[];
|
|
596
275
|
}[];
|
|
597
276
|
stale: boolean;
|
|
598
277
|
revision_hash: string;
|
|
599
278
|
selection_token: string;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
must_read_if: string;
|
|
608
|
-
entities?: string[] | undefined;
|
|
609
|
-
id?: string | undefined;
|
|
610
|
-
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
611
|
-
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
612
|
-
knowledge_layer?: "personal" | "team" | undefined;
|
|
613
|
-
layer_reason?: string | undefined;
|
|
614
|
-
created_at?: string | undefined;
|
|
615
|
-
};
|
|
616
|
-
stable_id: string;
|
|
617
|
-
level: "L0" | "L1" | "L2";
|
|
618
|
-
required: boolean;
|
|
619
|
-
selectable: boolean;
|
|
620
|
-
type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
279
|
+
candidates: {
|
|
280
|
+
description: {
|
|
281
|
+
summary: string;
|
|
282
|
+
intent_clues: string[];
|
|
283
|
+
tech_stack: string[];
|
|
284
|
+
impact: string[];
|
|
285
|
+
must_read_if: string;
|
|
621
286
|
relevance_scope?: "narrow" | "broad" | undefined;
|
|
622
287
|
relevance_paths?: string[] | undefined;
|
|
623
|
-
|
|
288
|
+
entities?: string[] | undefined;
|
|
289
|
+
id?: string | undefined;
|
|
290
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
624
291
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
292
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
625
293
|
layer_reason?: string | undefined;
|
|
294
|
+
created_at?: string | undefined;
|
|
626
295
|
tags?: string[] | undefined;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
296
|
+
};
|
|
297
|
+
stable_id: string;
|
|
298
|
+
}[];
|
|
299
|
+
preflight_diagnostics: {
|
|
300
|
+
code: "missing_description" | "empty_shell_suppressed";
|
|
301
|
+
message: string;
|
|
302
|
+
severity: "warn";
|
|
303
|
+
path?: string | undefined;
|
|
304
|
+
stable_ids?: string[] | undefined;
|
|
305
|
+
}[];
|
|
636
306
|
warnings?: {
|
|
637
307
|
code: string;
|
|
638
308
|
file: string;
|
|
@@ -641,6 +311,7 @@ declare const planContextOutputSchema: z.ZodObject<{
|
|
|
641
311
|
}[] | undefined;
|
|
642
312
|
auto_healed?: boolean | undefined;
|
|
643
313
|
previous_revision_hash?: string | undefined;
|
|
314
|
+
redirects?: Record<string, string> | undefined;
|
|
644
315
|
}>;
|
|
645
316
|
declare const planContextAnnotations: {
|
|
646
317
|
readonly readOnlyHint: true;
|
|
@@ -733,14 +404,6 @@ declare const knowledgeSectionsInputSchema: z.ZodObject<{
|
|
|
733
404
|
}>;
|
|
734
405
|
declare const knowledgeSectionsOutputSchema: z.ZodObject<{
|
|
735
406
|
revision_hash: z.ZodString;
|
|
736
|
-
/**
|
|
737
|
-
* @deprecated rc.23 TASK-002 F3 — removed in rc.24. The L0/L1/L2 selection
|
|
738
|
-
* ceremony was fully retired in rc.5 A3 (see comment above
|
|
739
|
-
* `planContextOutputSchema`); downstream consumers should use
|
|
740
|
-
* `rules[].level` directly. Kept as optional for one rc to avoid breaking
|
|
741
|
-
* pre-rc.23 clients that destructure this field.
|
|
742
|
-
*/
|
|
743
|
-
precedence: z.ZodOptional<z.ZodTuple<[z.ZodLiteral<"L2">, z.ZodLiteral<"L1">, z.ZodLiteral<"L0">], null>>;
|
|
744
407
|
selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
745
408
|
rules: z.ZodArray<z.ZodObject<{
|
|
746
409
|
stable_id: z.ZodString;
|
|
@@ -774,13 +437,13 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
|
|
|
774
437
|
stable_id: string;
|
|
775
438
|
severity: "warn";
|
|
776
439
|
}>, "many">;
|
|
777
|
-
redirect_to: z.ZodOptional<z.ZodObject<{
|
|
440
|
+
redirect_to: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
778
441
|
stable_id: z.ZodString;
|
|
779
442
|
}, "strip", z.ZodTypeAny, {
|
|
780
443
|
stable_id: string;
|
|
781
444
|
}, {
|
|
782
445
|
stable_id: string;
|
|
783
|
-
}>>;
|
|
446
|
+
}>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
784
447
|
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
785
448
|
code: z.ZodString;
|
|
786
449
|
file: z.ZodString;
|
|
@@ -818,8 +481,7 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
|
|
|
818
481
|
action_hint: string;
|
|
819
482
|
line?: number | undefined;
|
|
820
483
|
}[] | undefined;
|
|
821
|
-
|
|
822
|
-
redirect_to?: {
|
|
484
|
+
redirect_to?: Record<string, string> | {
|
|
823
485
|
stable_id: string;
|
|
824
486
|
} | undefined;
|
|
825
487
|
}, {
|
|
@@ -843,8 +505,7 @@ declare const knowledgeSectionsOutputSchema: z.ZodObject<{
|
|
|
843
505
|
action_hint: string;
|
|
844
506
|
line?: number | undefined;
|
|
845
507
|
}[] | undefined;
|
|
846
|
-
|
|
847
|
-
redirect_to?: {
|
|
508
|
+
redirect_to?: Record<string, string> | {
|
|
848
509
|
stable_id: string;
|
|
849
510
|
} | undefined;
|
|
850
511
|
}>;
|
|
@@ -855,6 +516,459 @@ declare const knowledgeSectionsAnnotations: {
|
|
|
855
516
|
readonly openWorldHint: false;
|
|
856
517
|
readonly title: "Filter rule sections";
|
|
857
518
|
};
|
|
519
|
+
declare const recallInputSchema: z.ZodObject<{
|
|
520
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
521
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
522
|
+
known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
523
|
+
detected_entities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
524
|
+
client_hash: z.ZodOptional<z.ZodString>;
|
|
525
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
526
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
527
|
+
layer_filter: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
|
|
528
|
+
target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
529
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
530
|
+
}, "strip", z.ZodTypeAny, {
|
|
531
|
+
paths: string[];
|
|
532
|
+
known_tech?: string[] | undefined;
|
|
533
|
+
detected_entities?: Record<string, string[]> | undefined;
|
|
534
|
+
intent?: string | undefined;
|
|
535
|
+
client_hash?: string | undefined;
|
|
536
|
+
correlation_id?: string | undefined;
|
|
537
|
+
session_id?: string | undefined;
|
|
538
|
+
layer_filter?: "personal" | "team" | "both" | undefined;
|
|
539
|
+
target_paths?: string[] | undefined;
|
|
540
|
+
ids?: string[] | undefined;
|
|
541
|
+
}, {
|
|
542
|
+
paths: string[];
|
|
543
|
+
known_tech?: string[] | undefined;
|
|
544
|
+
detected_entities?: Record<string, string[]> | undefined;
|
|
545
|
+
intent?: string | undefined;
|
|
546
|
+
client_hash?: string | undefined;
|
|
547
|
+
correlation_id?: string | undefined;
|
|
548
|
+
session_id?: string | undefined;
|
|
549
|
+
layer_filter?: "personal" | "team" | "both" | undefined;
|
|
550
|
+
target_paths?: string[] | undefined;
|
|
551
|
+
ids?: string[] | undefined;
|
|
552
|
+
}>;
|
|
553
|
+
declare const recallOutputSchema: z.ZodObject<{
|
|
554
|
+
revision_hash: z.ZodString;
|
|
555
|
+
stale: z.ZodBoolean;
|
|
556
|
+
selection_token: z.ZodString;
|
|
557
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
558
|
+
path: z.ZodString;
|
|
559
|
+
requirement_profile: z.ZodObject<{
|
|
560
|
+
target_path: z.ZodString;
|
|
561
|
+
known_tech: z.ZodArray<z.ZodString, "many">;
|
|
562
|
+
user_intent: z.ZodString;
|
|
563
|
+
detected_entities: z.ZodArray<z.ZodString, "many">;
|
|
564
|
+
}, "strip", z.ZodTypeAny, {
|
|
565
|
+
target_path: string;
|
|
566
|
+
known_tech: string[];
|
|
567
|
+
user_intent: string;
|
|
568
|
+
detected_entities: string[];
|
|
569
|
+
}, {
|
|
570
|
+
target_path: string;
|
|
571
|
+
known_tech: string[];
|
|
572
|
+
user_intent: string;
|
|
573
|
+
detected_entities: string[];
|
|
574
|
+
}>;
|
|
575
|
+
}, "strip", z.ZodTypeAny, {
|
|
576
|
+
path: string;
|
|
577
|
+
requirement_profile: {
|
|
578
|
+
target_path: string;
|
|
579
|
+
known_tech: string[];
|
|
580
|
+
user_intent: string;
|
|
581
|
+
detected_entities: string[];
|
|
582
|
+
};
|
|
583
|
+
}, {
|
|
584
|
+
path: string;
|
|
585
|
+
requirement_profile: {
|
|
586
|
+
target_path: string;
|
|
587
|
+
known_tech: string[];
|
|
588
|
+
user_intent: string;
|
|
589
|
+
detected_entities: string[];
|
|
590
|
+
};
|
|
591
|
+
}>, "many">;
|
|
592
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
593
|
+
stable_id: z.ZodString;
|
|
594
|
+
description: z.ZodObject<{
|
|
595
|
+
summary: z.ZodString;
|
|
596
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
597
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
598
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
599
|
+
must_read_if: z.ZodString;
|
|
600
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
601
|
+
id: z.ZodOptional<z.ZodString>;
|
|
602
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
|
|
603
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
604
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
605
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
606
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
607
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
608
|
+
relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
|
|
609
|
+
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
610
|
+
}, "strip", z.ZodTypeAny, {
|
|
611
|
+
summary: string;
|
|
612
|
+
intent_clues: string[];
|
|
613
|
+
tech_stack: string[];
|
|
614
|
+
impact: string[];
|
|
615
|
+
must_read_if: string;
|
|
616
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
617
|
+
relevance_paths?: string[] | undefined;
|
|
618
|
+
entities?: string[] | undefined;
|
|
619
|
+
id?: string | undefined;
|
|
620
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
621
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
622
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
623
|
+
layer_reason?: string | undefined;
|
|
624
|
+
created_at?: string | undefined;
|
|
625
|
+
tags?: string[] | undefined;
|
|
626
|
+
}, {
|
|
627
|
+
summary: string;
|
|
628
|
+
intent_clues: string[];
|
|
629
|
+
tech_stack: string[];
|
|
630
|
+
impact: string[];
|
|
631
|
+
must_read_if: string;
|
|
632
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
633
|
+
relevance_paths?: string[] | undefined;
|
|
634
|
+
entities?: string[] | undefined;
|
|
635
|
+
id?: string | undefined;
|
|
636
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
637
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
638
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
639
|
+
layer_reason?: string | undefined;
|
|
640
|
+
created_at?: string | undefined;
|
|
641
|
+
tags?: string[] | undefined;
|
|
642
|
+
}>;
|
|
643
|
+
}, "strip", z.ZodTypeAny, {
|
|
644
|
+
description: {
|
|
645
|
+
summary: string;
|
|
646
|
+
intent_clues: string[];
|
|
647
|
+
tech_stack: string[];
|
|
648
|
+
impact: string[];
|
|
649
|
+
must_read_if: string;
|
|
650
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
651
|
+
relevance_paths?: string[] | undefined;
|
|
652
|
+
entities?: string[] | undefined;
|
|
653
|
+
id?: string | undefined;
|
|
654
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
655
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
656
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
657
|
+
layer_reason?: string | undefined;
|
|
658
|
+
created_at?: string | undefined;
|
|
659
|
+
tags?: string[] | undefined;
|
|
660
|
+
};
|
|
661
|
+
stable_id: string;
|
|
662
|
+
}, {
|
|
663
|
+
description: {
|
|
664
|
+
summary: string;
|
|
665
|
+
intent_clues: string[];
|
|
666
|
+
tech_stack: string[];
|
|
667
|
+
impact: string[];
|
|
668
|
+
must_read_if: string;
|
|
669
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
670
|
+
relevance_paths?: string[] | undefined;
|
|
671
|
+
entities?: string[] | undefined;
|
|
672
|
+
id?: string | undefined;
|
|
673
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
674
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
675
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
676
|
+
layer_reason?: string | undefined;
|
|
677
|
+
created_at?: string | undefined;
|
|
678
|
+
tags?: string[] | undefined;
|
|
679
|
+
};
|
|
680
|
+
stable_id: string;
|
|
681
|
+
}>, "many">;
|
|
682
|
+
preflight_diagnostics: z.ZodArray<z.ZodObject<{
|
|
683
|
+
code: z.ZodEnum<["missing_description", "empty_shell_suppressed"]>;
|
|
684
|
+
severity: z.ZodLiteral<"warn">;
|
|
685
|
+
message: z.ZodString;
|
|
686
|
+
stable_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
687
|
+
path: z.ZodOptional<z.ZodString>;
|
|
688
|
+
}, "strip", z.ZodTypeAny, {
|
|
689
|
+
code: "missing_description" | "empty_shell_suppressed";
|
|
690
|
+
message: string;
|
|
691
|
+
severity: "warn";
|
|
692
|
+
path?: string | undefined;
|
|
693
|
+
stable_ids?: string[] | undefined;
|
|
694
|
+
}, {
|
|
695
|
+
code: "missing_description" | "empty_shell_suppressed";
|
|
696
|
+
message: string;
|
|
697
|
+
severity: "warn";
|
|
698
|
+
path?: string | undefined;
|
|
699
|
+
stable_ids?: string[] | undefined;
|
|
700
|
+
}>, "many">;
|
|
701
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
702
|
+
stable_id: z.ZodString;
|
|
703
|
+
level: z.ZodEnum<["L0", "L1", "L2"]>;
|
|
704
|
+
path: z.ZodString;
|
|
705
|
+
body: z.ZodString;
|
|
706
|
+
}, "strip", z.ZodTypeAny, {
|
|
707
|
+
path: string;
|
|
708
|
+
stable_id: string;
|
|
709
|
+
level: "L0" | "L1" | "L2";
|
|
710
|
+
body: string;
|
|
711
|
+
}, {
|
|
712
|
+
path: string;
|
|
713
|
+
stable_id: string;
|
|
714
|
+
level: "L0" | "L1" | "L2";
|
|
715
|
+
body: string;
|
|
716
|
+
}>, "many">;
|
|
717
|
+
selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
718
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
719
|
+
code: z.ZodLiteral<"missing_knowledge_metadata">;
|
|
720
|
+
severity: z.ZodLiteral<"warn">;
|
|
721
|
+
stable_id: z.ZodString;
|
|
722
|
+
message: z.ZodString;
|
|
723
|
+
}, "strip", z.ZodTypeAny, {
|
|
724
|
+
code: "missing_knowledge_metadata";
|
|
725
|
+
message: string;
|
|
726
|
+
stable_id: string;
|
|
727
|
+
severity: "warn";
|
|
728
|
+
}, {
|
|
729
|
+
code: "missing_knowledge_metadata";
|
|
730
|
+
message: string;
|
|
731
|
+
stable_id: string;
|
|
732
|
+
severity: "warn";
|
|
733
|
+
}>, "many">;
|
|
734
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
735
|
+
code: z.ZodString;
|
|
736
|
+
file: z.ZodString;
|
|
737
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
738
|
+
action_hint: z.ZodString;
|
|
739
|
+
}, "strip", z.ZodTypeAny, {
|
|
740
|
+
code: string;
|
|
741
|
+
file: string;
|
|
742
|
+
action_hint: string;
|
|
743
|
+
line?: number | undefined;
|
|
744
|
+
}, {
|
|
745
|
+
code: string;
|
|
746
|
+
file: string;
|
|
747
|
+
action_hint: string;
|
|
748
|
+
line?: number | undefined;
|
|
749
|
+
}>, "many">>;
|
|
750
|
+
auto_healed: z.ZodOptional<z.ZodBoolean>;
|
|
751
|
+
previous_revision_hash: z.ZodOptional<z.ZodString>;
|
|
752
|
+
redirects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
753
|
+
}, "strip", z.ZodTypeAny, {
|
|
754
|
+
entries: {
|
|
755
|
+
path: string;
|
|
756
|
+
requirement_profile: {
|
|
757
|
+
target_path: string;
|
|
758
|
+
known_tech: string[];
|
|
759
|
+
user_intent: string;
|
|
760
|
+
detected_entities: string[];
|
|
761
|
+
};
|
|
762
|
+
}[];
|
|
763
|
+
stale: boolean;
|
|
764
|
+
revision_hash: string;
|
|
765
|
+
selection_token: string;
|
|
766
|
+
candidates: {
|
|
767
|
+
description: {
|
|
768
|
+
summary: string;
|
|
769
|
+
intent_clues: string[];
|
|
770
|
+
tech_stack: string[];
|
|
771
|
+
impact: string[];
|
|
772
|
+
must_read_if: string;
|
|
773
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
774
|
+
relevance_paths?: string[] | undefined;
|
|
775
|
+
entities?: string[] | undefined;
|
|
776
|
+
id?: string | undefined;
|
|
777
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
778
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
779
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
780
|
+
layer_reason?: string | undefined;
|
|
781
|
+
created_at?: string | undefined;
|
|
782
|
+
tags?: string[] | undefined;
|
|
783
|
+
};
|
|
784
|
+
stable_id: string;
|
|
785
|
+
}[];
|
|
786
|
+
preflight_diagnostics: {
|
|
787
|
+
code: "missing_description" | "empty_shell_suppressed";
|
|
788
|
+
message: string;
|
|
789
|
+
severity: "warn";
|
|
790
|
+
path?: string | undefined;
|
|
791
|
+
stable_ids?: string[] | undefined;
|
|
792
|
+
}[];
|
|
793
|
+
selected_stable_ids: string[];
|
|
794
|
+
rules: {
|
|
795
|
+
path: string;
|
|
796
|
+
stable_id: string;
|
|
797
|
+
level: "L0" | "L1" | "L2";
|
|
798
|
+
body: string;
|
|
799
|
+
}[];
|
|
800
|
+
diagnostics: {
|
|
801
|
+
code: "missing_knowledge_metadata";
|
|
802
|
+
message: string;
|
|
803
|
+
stable_id: string;
|
|
804
|
+
severity: "warn";
|
|
805
|
+
}[];
|
|
806
|
+
warnings?: {
|
|
807
|
+
code: string;
|
|
808
|
+
file: string;
|
|
809
|
+
action_hint: string;
|
|
810
|
+
line?: number | undefined;
|
|
811
|
+
}[] | undefined;
|
|
812
|
+
auto_healed?: boolean | undefined;
|
|
813
|
+
previous_revision_hash?: string | undefined;
|
|
814
|
+
redirects?: Record<string, string> | undefined;
|
|
815
|
+
}, {
|
|
816
|
+
entries: {
|
|
817
|
+
path: string;
|
|
818
|
+
requirement_profile: {
|
|
819
|
+
target_path: string;
|
|
820
|
+
known_tech: string[];
|
|
821
|
+
user_intent: string;
|
|
822
|
+
detected_entities: string[];
|
|
823
|
+
};
|
|
824
|
+
}[];
|
|
825
|
+
stale: boolean;
|
|
826
|
+
revision_hash: string;
|
|
827
|
+
selection_token: string;
|
|
828
|
+
candidates: {
|
|
829
|
+
description: {
|
|
830
|
+
summary: string;
|
|
831
|
+
intent_clues: string[];
|
|
832
|
+
tech_stack: string[];
|
|
833
|
+
impact: string[];
|
|
834
|
+
must_read_if: string;
|
|
835
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
836
|
+
relevance_paths?: string[] | undefined;
|
|
837
|
+
entities?: string[] | undefined;
|
|
838
|
+
id?: string | undefined;
|
|
839
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
840
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
841
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
842
|
+
layer_reason?: string | undefined;
|
|
843
|
+
created_at?: string | undefined;
|
|
844
|
+
tags?: string[] | undefined;
|
|
845
|
+
};
|
|
846
|
+
stable_id: string;
|
|
847
|
+
}[];
|
|
848
|
+
preflight_diagnostics: {
|
|
849
|
+
code: "missing_description" | "empty_shell_suppressed";
|
|
850
|
+
message: string;
|
|
851
|
+
severity: "warn";
|
|
852
|
+
path?: string | undefined;
|
|
853
|
+
stable_ids?: string[] | undefined;
|
|
854
|
+
}[];
|
|
855
|
+
selected_stable_ids: string[];
|
|
856
|
+
rules: {
|
|
857
|
+
path: string;
|
|
858
|
+
stable_id: string;
|
|
859
|
+
level: "L0" | "L1" | "L2";
|
|
860
|
+
body: string;
|
|
861
|
+
}[];
|
|
862
|
+
diagnostics: {
|
|
863
|
+
code: "missing_knowledge_metadata";
|
|
864
|
+
message: string;
|
|
865
|
+
stable_id: string;
|
|
866
|
+
severity: "warn";
|
|
867
|
+
}[];
|
|
868
|
+
warnings?: {
|
|
869
|
+
code: string;
|
|
870
|
+
file: string;
|
|
871
|
+
action_hint: string;
|
|
872
|
+
line?: number | undefined;
|
|
873
|
+
}[] | undefined;
|
|
874
|
+
auto_healed?: boolean | undefined;
|
|
875
|
+
previous_revision_hash?: string | undefined;
|
|
876
|
+
redirects?: Record<string, string> | undefined;
|
|
877
|
+
}>;
|
|
878
|
+
declare const recallAnnotations: {
|
|
879
|
+
readonly readOnlyHint: true;
|
|
880
|
+
readonly idempotentHint: true;
|
|
881
|
+
readonly destructiveHint: false;
|
|
882
|
+
readonly openWorldHint: false;
|
|
883
|
+
readonly title: "Recall Fabric knowledge (one-call)";
|
|
884
|
+
};
|
|
885
|
+
declare const archiveScanInputSchema: z.ZodObject<{
|
|
886
|
+
range: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
887
|
+
now_ms: z.ZodOptional<z.ZodNumber>;
|
|
888
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
889
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
890
|
+
}, "strip", z.ZodTypeAny, {
|
|
891
|
+
correlation_id?: string | undefined;
|
|
892
|
+
session_id?: string | undefined;
|
|
893
|
+
range?: string[] | "all" | undefined;
|
|
894
|
+
now_ms?: number | undefined;
|
|
895
|
+
}, {
|
|
896
|
+
correlation_id?: string | undefined;
|
|
897
|
+
session_id?: string | undefined;
|
|
898
|
+
range?: string[] | "all" | undefined;
|
|
899
|
+
now_ms?: number | undefined;
|
|
900
|
+
}>;
|
|
901
|
+
declare const archiveScanOutputSchema: z.ZodObject<{
|
|
902
|
+
anchor_ts: z.ZodNullable<z.ZodNumber>;
|
|
903
|
+
session_ids: z.ZodArray<z.ZodString, "many">;
|
|
904
|
+
dropped: z.ZodArray<z.ZodObject<{
|
|
905
|
+
session_id: z.ZodString;
|
|
906
|
+
reason: z.ZodEnum<["user_dismissed", "cooldown", "no_new_signal"]>;
|
|
907
|
+
}, "strip", z.ZodTypeAny, {
|
|
908
|
+
session_id: string;
|
|
909
|
+
reason: "user_dismissed" | "cooldown" | "no_new_signal";
|
|
910
|
+
}, {
|
|
911
|
+
session_id: string;
|
|
912
|
+
reason: "user_dismissed" | "cooldown" | "no_new_signal";
|
|
913
|
+
}>, "many">;
|
|
914
|
+
covered_through_ts: z.ZodNullable<z.ZodNumber>;
|
|
915
|
+
already_proposed_keys: z.ZodArray<z.ZodString, "many">;
|
|
916
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
917
|
+
code: z.ZodString;
|
|
918
|
+
file: z.ZodString;
|
|
919
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
920
|
+
action_hint: z.ZodString;
|
|
921
|
+
}, "strip", z.ZodTypeAny, {
|
|
922
|
+
code: string;
|
|
923
|
+
file: string;
|
|
924
|
+
action_hint: string;
|
|
925
|
+
line?: number | undefined;
|
|
926
|
+
}, {
|
|
927
|
+
code: string;
|
|
928
|
+
file: string;
|
|
929
|
+
action_hint: string;
|
|
930
|
+
line?: number | undefined;
|
|
931
|
+
}>, "many">>;
|
|
932
|
+
}, "strip", z.ZodTypeAny, {
|
|
933
|
+
anchor_ts: number | null;
|
|
934
|
+
session_ids: string[];
|
|
935
|
+
dropped: {
|
|
936
|
+
session_id: string;
|
|
937
|
+
reason: "user_dismissed" | "cooldown" | "no_new_signal";
|
|
938
|
+
}[];
|
|
939
|
+
covered_through_ts: number | null;
|
|
940
|
+
already_proposed_keys: string[];
|
|
941
|
+
warnings?: {
|
|
942
|
+
code: string;
|
|
943
|
+
file: string;
|
|
944
|
+
action_hint: string;
|
|
945
|
+
line?: number | undefined;
|
|
946
|
+
}[] | undefined;
|
|
947
|
+
}, {
|
|
948
|
+
anchor_ts: number | null;
|
|
949
|
+
session_ids: string[];
|
|
950
|
+
dropped: {
|
|
951
|
+
session_id: string;
|
|
952
|
+
reason: "user_dismissed" | "cooldown" | "no_new_signal";
|
|
953
|
+
}[];
|
|
954
|
+
covered_through_ts: number | null;
|
|
955
|
+
already_proposed_keys: string[];
|
|
956
|
+
warnings?: {
|
|
957
|
+
code: string;
|
|
958
|
+
file: string;
|
|
959
|
+
action_hint: string;
|
|
960
|
+
line?: number | undefined;
|
|
961
|
+
}[] | undefined;
|
|
962
|
+
}>;
|
|
963
|
+
declare const archiveScanAnnotations: {
|
|
964
|
+
readonly readOnlyHint: true;
|
|
965
|
+
readonly idempotentHint: true;
|
|
966
|
+
readonly destructiveHint: false;
|
|
967
|
+
readonly openWorldHint: false;
|
|
968
|
+
readonly title: "Scan event ledger for archive candidates (deterministic)";
|
|
969
|
+
};
|
|
970
|
+
type ArchiveScanInput = z.infer<typeof archiveScanInputSchema>;
|
|
971
|
+
type ArchiveScanOutput = z.infer<typeof archiveScanOutputSchema>;
|
|
858
972
|
declare const ProposedReasonSchema: z.ZodEnum<["explicit-user-mark", "diagnostic-then-fix", "decision-confirmation", "wrong-turn-revert", "new-dependency-or-pattern", "dismissal-with-reason"]>;
|
|
859
973
|
type ProposedReason = z.infer<typeof ProposedReasonSchema>;
|
|
860
974
|
declare const PROPOSED_REASON_DESCRIPTIONS: Record<ProposedReason, string>;
|
|
@@ -873,7 +987,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
873
987
|
tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
874
988
|
impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
875
989
|
must_read_if: z.ZodOptional<z.ZodString>;
|
|
990
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
876
991
|
onboard_slot: z.ZodOptional<z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>>;
|
|
992
|
+
evidence_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
877
993
|
}, "strip", z.ZodTypeAny, {
|
|
878
994
|
type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
|
|
879
995
|
proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
|
|
@@ -889,7 +1005,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
889
1005
|
tech_stack?: string[] | undefined;
|
|
890
1006
|
impact?: string[] | undefined;
|
|
891
1007
|
must_read_if?: string | undefined;
|
|
1008
|
+
tags?: string[] | undefined;
|
|
892
1009
|
onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
|
|
1010
|
+
evidence_paths?: string[] | undefined;
|
|
893
1011
|
}, {
|
|
894
1012
|
type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
|
|
895
1013
|
proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
|
|
@@ -905,7 +1023,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
905
1023
|
tech_stack?: string[] | undefined;
|
|
906
1024
|
impact?: string[] | undefined;
|
|
907
1025
|
must_read_if?: string | undefined;
|
|
1026
|
+
tags?: string[] | undefined;
|
|
908
1027
|
onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
|
|
1028
|
+
evidence_paths?: string[] | undefined;
|
|
909
1029
|
}>, {
|
|
910
1030
|
type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
|
|
911
1031
|
proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
|
|
@@ -921,7 +1041,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
921
1041
|
tech_stack?: string[] | undefined;
|
|
922
1042
|
impact?: string[] | undefined;
|
|
923
1043
|
must_read_if?: string | undefined;
|
|
1044
|
+
tags?: string[] | undefined;
|
|
924
1045
|
onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
|
|
1046
|
+
evidence_paths?: string[] | undefined;
|
|
925
1047
|
}, {
|
|
926
1048
|
type: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
|
|
927
1049
|
proposed_reason: "explicit-user-mark" | "diagnostic-then-fix" | "decision-confirmation" | "wrong-turn-revert" | "new-dependency-or-pattern" | "dismissal-with-reason";
|
|
@@ -937,7 +1059,9 @@ declare const FabExtractKnowledgeInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
937
1059
|
tech_stack?: string[] | undefined;
|
|
938
1060
|
impact?: string[] | undefined;
|
|
939
1061
|
must_read_if?: string | undefined;
|
|
1062
|
+
tags?: string[] | undefined;
|
|
940
1063
|
onboard_slot?: "tech-stack-decision" | "architecture-pattern" | "code-style-tone" | "build-system-idiom" | "domain-vocabulary" | undefined;
|
|
1064
|
+
evidence_paths?: string[] | undefined;
|
|
941
1065
|
}>;
|
|
942
1066
|
declare const FabExtractKnowledgeInputShape: {
|
|
943
1067
|
source_sessions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -954,7 +1078,9 @@ declare const FabExtractKnowledgeInputShape: {
|
|
|
954
1078
|
tech_stack: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
955
1079
|
impact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
956
1080
|
must_read_if: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
957
1082
|
onboard_slot: z.ZodOptional<z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>>;
|
|
1083
|
+
evidence_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
958
1084
|
};
|
|
959
1085
|
type FabExtractKnowledgeInput = z.infer<typeof FabExtractKnowledgeInputSchema>;
|
|
960
1086
|
declare const FabExtractKnowledgeOutputSchema: z.ZodObject<{
|
|
@@ -1071,13 +1197,13 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1071
1197
|
pending_paths: z.ZodArray<z.ZodString, "many">;
|
|
1072
1198
|
reason: z.ZodString;
|
|
1073
1199
|
}, "strip", z.ZodTypeAny, {
|
|
1200
|
+
reason: string;
|
|
1074
1201
|
action: "reject";
|
|
1075
1202
|
pending_paths: string[];
|
|
1076
|
-
reason: string;
|
|
1077
1203
|
}, {
|
|
1204
|
+
reason: string;
|
|
1078
1205
|
action: "reject";
|
|
1079
1206
|
pending_paths: string[];
|
|
1080
|
-
reason: string;
|
|
1081
1207
|
}>, z.ZodObject<{
|
|
1082
1208
|
action: z.ZodLiteral<"modify">;
|
|
1083
1209
|
pending_path: z.ZodString;
|
|
@@ -1130,6 +1256,111 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1130
1256
|
tags?: string[] | undefined;
|
|
1131
1257
|
title?: string | undefined;
|
|
1132
1258
|
};
|
|
1259
|
+
}>, z.ZodObject<{
|
|
1260
|
+
action: z.ZodLiteral<"modify-content">;
|
|
1261
|
+
pending_path: z.ZodString;
|
|
1262
|
+
changes: z.ZodObject<{
|
|
1263
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1265
|
+
layer: z.ZodOptional<z.ZodEnum<["team", "personal"]>>;
|
|
1266
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
1267
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1268
|
+
relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
|
|
1269
|
+
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1270
|
+
}, "strip", z.ZodTypeAny, {
|
|
1271
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1272
|
+
relevance_paths?: string[] | undefined;
|
|
1273
|
+
layer?: "personal" | "team" | undefined;
|
|
1274
|
+
summary?: string | undefined;
|
|
1275
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1276
|
+
tags?: string[] | undefined;
|
|
1277
|
+
title?: string | undefined;
|
|
1278
|
+
}, {
|
|
1279
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1280
|
+
relevance_paths?: string[] | undefined;
|
|
1281
|
+
layer?: "personal" | "team" | undefined;
|
|
1282
|
+
summary?: string | undefined;
|
|
1283
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1284
|
+
tags?: string[] | undefined;
|
|
1285
|
+
title?: string | undefined;
|
|
1286
|
+
}>;
|
|
1287
|
+
}, "strip", z.ZodTypeAny, {
|
|
1288
|
+
pending_path: string;
|
|
1289
|
+
action: "modify-content";
|
|
1290
|
+
changes: {
|
|
1291
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1292
|
+
relevance_paths?: string[] | undefined;
|
|
1293
|
+
layer?: "personal" | "team" | undefined;
|
|
1294
|
+
summary?: string | undefined;
|
|
1295
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1296
|
+
tags?: string[] | undefined;
|
|
1297
|
+
title?: string | undefined;
|
|
1298
|
+
};
|
|
1299
|
+
}, {
|
|
1300
|
+
pending_path: string;
|
|
1301
|
+
action: "modify-content";
|
|
1302
|
+
changes: {
|
|
1303
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1304
|
+
relevance_paths?: string[] | undefined;
|
|
1305
|
+
layer?: "personal" | "team" | undefined;
|
|
1306
|
+
summary?: string | undefined;
|
|
1307
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1308
|
+
tags?: string[] | undefined;
|
|
1309
|
+
title?: string | undefined;
|
|
1310
|
+
};
|
|
1311
|
+
}>, z.ZodObject<{
|
|
1312
|
+
action: z.ZodLiteral<"modify-layer">;
|
|
1313
|
+
pending_path: z.ZodString;
|
|
1314
|
+
changes: z.ZodObject<{
|
|
1315
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
1318
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1319
|
+
relevance_scope: z.ZodOptional<z.ZodEnum<["narrow", "broad"]>>;
|
|
1320
|
+
relevance_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1321
|
+
} & {
|
|
1322
|
+
layer: z.ZodEnum<["team", "personal"]>;
|
|
1323
|
+
}, "strip", z.ZodTypeAny, {
|
|
1324
|
+
layer: "personal" | "team";
|
|
1325
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1326
|
+
relevance_paths?: string[] | undefined;
|
|
1327
|
+
summary?: string | undefined;
|
|
1328
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1329
|
+
tags?: string[] | undefined;
|
|
1330
|
+
title?: string | undefined;
|
|
1331
|
+
}, {
|
|
1332
|
+
layer: "personal" | "team";
|
|
1333
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1334
|
+
relevance_paths?: string[] | undefined;
|
|
1335
|
+
summary?: string | undefined;
|
|
1336
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1337
|
+
tags?: string[] | undefined;
|
|
1338
|
+
title?: string | undefined;
|
|
1339
|
+
}>;
|
|
1340
|
+
}, "strip", z.ZodTypeAny, {
|
|
1341
|
+
pending_path: string;
|
|
1342
|
+
action: "modify-layer";
|
|
1343
|
+
changes: {
|
|
1344
|
+
layer: "personal" | "team";
|
|
1345
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1346
|
+
relevance_paths?: string[] | undefined;
|
|
1347
|
+
summary?: string | undefined;
|
|
1348
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1349
|
+
tags?: string[] | undefined;
|
|
1350
|
+
title?: string | undefined;
|
|
1351
|
+
};
|
|
1352
|
+
}, {
|
|
1353
|
+
pending_path: string;
|
|
1354
|
+
action: "modify-layer";
|
|
1355
|
+
changes: {
|
|
1356
|
+
layer: "personal" | "team";
|
|
1357
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
1358
|
+
relevance_paths?: string[] | undefined;
|
|
1359
|
+
summary?: string | undefined;
|
|
1360
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
1361
|
+
tags?: string[] | undefined;
|
|
1362
|
+
title?: string | undefined;
|
|
1363
|
+
};
|
|
1133
1364
|
}>, z.ZodObject<{
|
|
1134
1365
|
action: z.ZodLiteral<"search">;
|
|
1135
1366
|
query: z.ZodString;
|
|
@@ -1205,7 +1436,7 @@ declare const FabReviewInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObje
|
|
|
1205
1436
|
}>]>;
|
|
1206
1437
|
type FabReviewInput = z.infer<typeof FabReviewInputSchema>;
|
|
1207
1438
|
declare const FabReviewInputShape: {
|
|
1208
|
-
readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "search", "defer"]>;
|
|
1439
|
+
readonly action: z.ZodEnum<["list", "approve", "reject", "modify", "modify-content", "modify-layer", "search", "defer"]>;
|
|
1209
1440
|
readonly filters: z.ZodOptional<z.ZodObject<{
|
|
1210
1441
|
type: z.ZodOptional<z.ZodEnum<["decisions", "pitfalls", "guidelines", "models", "processes"]>>;
|
|
1211
1442
|
layer: z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>;
|
|
@@ -1524,8 +1755,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
|
|
|
1524
1755
|
area: "canonical" | "pending";
|
|
1525
1756
|
status?: "active" | "rejected" | "deferred" | undefined;
|
|
1526
1757
|
summary?: string | undefined;
|
|
1527
|
-
stable_id?: string | undefined;
|
|
1528
1758
|
tags?: string[] | undefined;
|
|
1759
|
+
stable_id?: string | undefined;
|
|
1529
1760
|
body?: string | undefined;
|
|
1530
1761
|
title?: string | undefined;
|
|
1531
1762
|
origin?: "personal" | "team" | undefined;
|
|
@@ -1539,8 +1770,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
|
|
|
1539
1770
|
area: "canonical" | "pending";
|
|
1540
1771
|
status?: "active" | "rejected" | "deferred" | undefined;
|
|
1541
1772
|
summary?: string | undefined;
|
|
1542
|
-
stable_id?: string | undefined;
|
|
1543
1773
|
tags?: string[] | undefined;
|
|
1774
|
+
stable_id?: string | undefined;
|
|
1544
1775
|
body?: string | undefined;
|
|
1545
1776
|
title?: string | undefined;
|
|
1546
1777
|
origin?: "personal" | "team" | undefined;
|
|
@@ -1573,8 +1804,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
|
|
|
1573
1804
|
area: "canonical" | "pending";
|
|
1574
1805
|
status?: "active" | "rejected" | "deferred" | undefined;
|
|
1575
1806
|
summary?: string | undefined;
|
|
1576
|
-
stable_id?: string | undefined;
|
|
1577
1807
|
tags?: string[] | undefined;
|
|
1808
|
+
stable_id?: string | undefined;
|
|
1578
1809
|
body?: string | undefined;
|
|
1579
1810
|
title?: string | undefined;
|
|
1580
1811
|
origin?: "personal" | "team" | undefined;
|
|
@@ -1597,8 +1828,8 @@ declare const FabReviewOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObj
|
|
|
1597
1828
|
area: "canonical" | "pending";
|
|
1598
1829
|
status?: "active" | "rejected" | "deferred" | undefined;
|
|
1599
1830
|
summary?: string | undefined;
|
|
1600
|
-
stable_id?: string | undefined;
|
|
1601
1831
|
tags?: string[] | undefined;
|
|
1832
|
+
stable_id?: string | undefined;
|
|
1602
1833
|
body?: string | undefined;
|
|
1603
1834
|
title?: string | undefined;
|
|
1604
1835
|
origin?: "personal" | "team" | undefined;
|
|
@@ -1714,8 +1945,8 @@ declare const FabReviewOutputShape: {
|
|
|
1714
1945
|
area: "canonical" | "pending";
|
|
1715
1946
|
status?: "active" | "rejected" | "deferred" | undefined;
|
|
1716
1947
|
summary?: string | undefined;
|
|
1717
|
-
stable_id?: string | undefined;
|
|
1718
1948
|
tags?: string[] | undefined;
|
|
1949
|
+
stable_id?: string | undefined;
|
|
1719
1950
|
body?: string | undefined;
|
|
1720
1951
|
title?: string | undefined;
|
|
1721
1952
|
origin?: "personal" | "team" | undefined;
|
|
@@ -1729,8 +1960,8 @@ declare const FabReviewOutputShape: {
|
|
|
1729
1960
|
area: "canonical" | "pending";
|
|
1730
1961
|
status?: "active" | "rejected" | "deferred" | undefined;
|
|
1731
1962
|
summary?: string | undefined;
|
|
1732
|
-
stable_id?: string | undefined;
|
|
1733
1963
|
tags?: string[] | undefined;
|
|
1964
|
+
stable_id?: string | undefined;
|
|
1734
1965
|
body?: string | undefined;
|
|
1735
1966
|
title?: string | undefined;
|
|
1736
1967
|
origin?: "personal" | "team" | undefined;
|
|
@@ -1826,18 +2057,30 @@ declare const citeCoverageReportSchema: z.ZodObject<{
|
|
|
1826
2057
|
recalled_unverified: z.ZodNumber;
|
|
1827
2058
|
expected_but_missed: z.ZodNumber;
|
|
1828
2059
|
total_turns: z.ZodNumber;
|
|
2060
|
+
cite_compliance_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2061
|
+
compliant_cites: z.ZodOptional<z.ZodNumber>;
|
|
2062
|
+
noncompliant_cites: z.ZodOptional<z.ZodNumber>;
|
|
2063
|
+
uncorrelatable_edits: z.ZodOptional<z.ZodNumber>;
|
|
1829
2064
|
}, "strip", z.ZodTypeAny, {
|
|
1830
2065
|
edits_touched: number;
|
|
1831
2066
|
qualifying_cites: number;
|
|
1832
2067
|
recalled_unverified: number;
|
|
1833
2068
|
expected_but_missed: number;
|
|
1834
2069
|
total_turns: number;
|
|
2070
|
+
cite_compliance_rate?: number | null | undefined;
|
|
2071
|
+
compliant_cites?: number | undefined;
|
|
2072
|
+
noncompliant_cites?: number | undefined;
|
|
2073
|
+
uncorrelatable_edits?: number | undefined;
|
|
1835
2074
|
}, {
|
|
1836
2075
|
edits_touched: number;
|
|
1837
2076
|
qualifying_cites: number;
|
|
1838
2077
|
recalled_unverified: number;
|
|
1839
2078
|
expected_but_missed: number;
|
|
1840
2079
|
total_turns: number;
|
|
2080
|
+
cite_compliance_rate?: number | null | undefined;
|
|
2081
|
+
compliant_cites?: number | undefined;
|
|
2082
|
+
noncompliant_cites?: number | undefined;
|
|
2083
|
+
uncorrelatable_edits?: number | undefined;
|
|
1841
2084
|
}>;
|
|
1842
2085
|
per_client: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1843
2086
|
edits_touched: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1910,6 +2153,10 @@ declare const citeCoverageReportSchema: z.ZodObject<{
|
|
|
1910
2153
|
recalled_unverified: number;
|
|
1911
2154
|
expected_but_missed: number;
|
|
1912
2155
|
total_turns: number;
|
|
2156
|
+
cite_compliance_rate?: number | null | undefined;
|
|
2157
|
+
compliant_cites?: number | undefined;
|
|
2158
|
+
noncompliant_cites?: number | undefined;
|
|
2159
|
+
uncorrelatable_edits?: number | undefined;
|
|
1913
2160
|
};
|
|
1914
2161
|
generated_at: string;
|
|
1915
2162
|
layer_filter?: "personal" | "team" | "all" | undefined;
|
|
@@ -1949,6 +2196,10 @@ declare const citeCoverageReportSchema: z.ZodObject<{
|
|
|
1949
2196
|
recalled_unverified: number;
|
|
1950
2197
|
expected_but_missed: number;
|
|
1951
2198
|
total_turns: number;
|
|
2199
|
+
cite_compliance_rate?: number | null | undefined;
|
|
2200
|
+
compliant_cites?: number | undefined;
|
|
2201
|
+
noncompliant_cites?: number | undefined;
|
|
2202
|
+
uncorrelatable_edits?: number | undefined;
|
|
1952
2203
|
};
|
|
1953
2204
|
generated_at: string;
|
|
1954
2205
|
layer_filter?: "personal" | "team" | "all" | undefined;
|
|
@@ -2084,4 +2335,4 @@ declare function parseKnowledgeId(id: string): {
|
|
|
2084
2335
|
counter: number;
|
|
2085
2336
|
} | null;
|
|
2086
2337
|
|
|
2087
|
-
export { type CiteContractMetrics, type CiteCoverageReport, type CiteLayerTypeBreakdown, type FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, type FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, type FabReviewInput, FabReviewInputSchema, FabReviewInputShape, type FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, type KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, type KnowledgeType, type KnowledgeTypeCode, KnowledgeTypeSchema, type Layer, LayerSchema, type Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, citeContractMetricsSchema, citeCoverageReportSchema, citeLayerTypeBreakdownSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema };
|
|
2338
|
+
export { type ArchiveScanInput, type ArchiveScanOutput, type CiteContractMetrics, type CiteCoverageReport, type CiteLayerTypeBreakdown, type FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, type FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, type FabReviewInput, FabReviewInputSchema, FabReviewInputShape, type FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, type KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, type KnowledgeType, type KnowledgeTypeCode, KnowledgeTypeSchema, type Layer, LayerSchema, type Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, type ProposedReason, ProposedReasonSchema, type StableId, StableIdSchema, annotateIntentRequestSchema, archiveScanAnnotations, archiveScanInputSchema, archiveScanOutputSchema, citeContractMetricsSchema, citeCoverageReportSchema, citeLayerTypeBreakdownSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, recallAnnotations, recallInputSchema, recallOutputSchema, structuredWarningSchema };
|