@fenglimg/fabric-shared 2.0.0-rc.1 → 2.0.0-rc.11
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/dist/chunk-NNDFOOBO.js +626 -0
- package/dist/{chunk-KHIM6MWS.js → chunk-W4TKEXRG.js} +133 -15
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +2610 -735
- package/dist/index.js +355 -37
- package/dist/schemas/api-contracts.d.ts +684 -103
- package/dist/schemas/api-contracts.js +39 -13
- package/dist/types/index.d.ts +14 -6
- package/package.json +1 -1
- package/dist/chunk-HACPXMLL.js +0 -314
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AgentsMetaNode, AgentsIdentitySource, AgentsLayer, AgentsTopologyType, HumanLockEntry, AgentsMeta, LedgerEntry } from './types/index.js';
|
|
2
|
-
export { AgentsActivationTier, AgentsMetaCountersEnvelope, AgentsMetaKnowledgeTypeCounters, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, McpPayloadLimits, RuleDescription, RuleDescriptionIndexItem } from './types/index.js';
|
|
2
|
+
export { AgentsActivationTier, AgentsMetaCountersEnvelope, AgentsMetaKnowledgeTypeCounters, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, DefaultLayerFilter, FabricConfig, HumanLedgerEntry, KnowledgeLanguage, McpPayloadLimits, RuleDescription, RuleDescriptionIndexItem } from './types/index.js';
|
|
3
3
|
export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, zhCNMessages } from './i18n/index.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Layer, KnowledgeType, StableId } from './schemas/api-contracts.js';
|
|
6
|
-
export { KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, StableIdSchema, annotateIntentRequestSchema, formatKnowledgeId,
|
|
6
|
+
export { FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, FabReviewInput, FabReviewInputSchema, FabReviewInputShape, FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, ProposedReason, ProposedReasonSchema, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, getKnowledgeAnnotations, getKnowledgeInputSchema, getKnowledgeOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema } from './schemas/api-contracts.js';
|
|
7
7
|
|
|
8
8
|
declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
|
|
9
9
|
declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
|
|
@@ -11,7 +11,7 @@ declare const AGENTS_META_IDENTITY_SOURCES: readonly ["declared", "derived"];
|
|
|
11
11
|
declare const agentsLayerSchema: z.ZodEnum<["L0", "L1", "L2"]>;
|
|
12
12
|
declare const agentsTopologyTypeSchema: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
|
|
13
13
|
declare const agentsIdentitySourceSchema: z.ZodEnum<["declared", "derived"]>;
|
|
14
|
-
type AgentsMetaNodeInput =
|
|
14
|
+
type AgentsMetaNodeInput = AgentsMetaNode;
|
|
15
15
|
declare const ruleDescriptionSchema: z.ZodObject<{
|
|
16
16
|
summary: z.ZodString;
|
|
17
17
|
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
@@ -26,7 +26,11 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
26
26
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
27
27
|
created_at: z.ZodOptional<z.ZodString>;
|
|
28
28
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
29
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
30
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
29
31
|
}, "strict", z.ZodTypeAny, {
|
|
32
|
+
relevance_scope: "narrow" | "broad";
|
|
33
|
+
relevance_paths: string[];
|
|
30
34
|
summary: string;
|
|
31
35
|
intent_clues: string[];
|
|
32
36
|
tech_stack: string[];
|
|
@@ -46,6 +50,8 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
46
50
|
tech_stack: string[];
|
|
47
51
|
impact: string[];
|
|
48
52
|
must_read_if: string;
|
|
53
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
54
|
+
relevance_paths?: string[] | undefined;
|
|
49
55
|
entities?: string[] | undefined;
|
|
50
56
|
id?: string | undefined;
|
|
51
57
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -74,7 +80,11 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
74
80
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
75
81
|
created_at: z.ZodOptional<z.ZodString>;
|
|
76
82
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
83
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
84
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
77
85
|
}, "strict", z.ZodTypeAny, {
|
|
86
|
+
relevance_scope: "narrow" | "broad";
|
|
87
|
+
relevance_paths: string[];
|
|
78
88
|
summary: string;
|
|
79
89
|
intent_clues: string[];
|
|
80
90
|
tech_stack: string[];
|
|
@@ -94,6 +104,8 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
94
104
|
tech_stack: string[];
|
|
95
105
|
impact: string[];
|
|
96
106
|
must_read_if: string;
|
|
107
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
108
|
+
relevance_paths?: string[] | undefined;
|
|
97
109
|
entities?: string[] | undefined;
|
|
98
110
|
id?: string | undefined;
|
|
99
111
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -105,6 +117,8 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
105
117
|
}>;
|
|
106
118
|
}, "strict", z.ZodTypeAny, {
|
|
107
119
|
description: {
|
|
120
|
+
relevance_scope: "narrow" | "broad";
|
|
121
|
+
relevance_paths: string[];
|
|
108
122
|
summary: string;
|
|
109
123
|
intent_clues: string[];
|
|
110
124
|
tech_stack: string[];
|
|
@@ -130,6 +144,8 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
130
144
|
tech_stack: string[];
|
|
131
145
|
impact: string[];
|
|
132
146
|
must_read_if: string;
|
|
147
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
148
|
+
relevance_paths?: string[] | undefined;
|
|
133
149
|
entities?: string[] | undefined;
|
|
134
150
|
id?: string | undefined;
|
|
135
151
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -148,11 +164,6 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
148
164
|
file: z.ZodString;
|
|
149
165
|
content_ref: z.ZodOptional<z.ZodString>;
|
|
150
166
|
scope_glob: z.ZodString;
|
|
151
|
-
deps: z.ZodArray<z.ZodString, "many">;
|
|
152
|
-
priority: z.ZodEnum<["high", "medium", "low"]>;
|
|
153
|
-
level: z.ZodOptional<z.ZodEnum<["L0", "L1", "L2"]>>;
|
|
154
|
-
layer: z.ZodEnum<["L0", "L1", "L2"]>;
|
|
155
|
-
topology_type: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
|
|
156
167
|
hash: z.ZodString;
|
|
157
168
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
158
169
|
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
@@ -180,7 +191,11 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
180
191
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
181
192
|
created_at: z.ZodOptional<z.ZodString>;
|
|
182
193
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
194
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
195
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
183
196
|
}, "strict", z.ZodTypeAny, {
|
|
197
|
+
relevance_scope: "narrow" | "broad";
|
|
198
|
+
relevance_paths: string[];
|
|
184
199
|
summary: string;
|
|
185
200
|
intent_clues: string[];
|
|
186
201
|
tech_stack: string[];
|
|
@@ -200,6 +215,8 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
200
215
|
tech_stack: string[];
|
|
201
216
|
impact: string[];
|
|
202
217
|
must_read_if: string;
|
|
218
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
219
|
+
relevance_paths?: string[] | undefined;
|
|
203
220
|
entities?: string[] | undefined;
|
|
204
221
|
id?: string | undefined;
|
|
205
222
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -210,15 +227,42 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
210
227
|
tags?: string[] | undefined;
|
|
211
228
|
}>>;
|
|
212
229
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
213
|
-
}, "
|
|
214
|
-
file:
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
230
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
231
|
+
file: z.ZodString;
|
|
232
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
233
|
+
scope_glob: z.ZodString;
|
|
234
|
+
hash: z.ZodString;
|
|
235
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
236
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
237
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
239
|
+
description: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
tier: "always" | "path" | "description";
|
|
242
|
+
description?: string | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
tier: "always" | "path" | "description";
|
|
245
|
+
description?: string | undefined;
|
|
246
|
+
}>>;
|
|
247
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
248
|
+
summary: z.ZodString;
|
|
249
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
250
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
251
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
252
|
+
must_read_if: z.ZodString;
|
|
253
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
254
|
+
id: z.ZodOptional<z.ZodString>;
|
|
255
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
256
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
257
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
258
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
259
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
260
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
261
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
262
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
263
|
+
}, "strict", z.ZodTypeAny, {
|
|
264
|
+
relevance_scope: "narrow" | "broad";
|
|
265
|
+
relevance_paths: string[];
|
|
222
266
|
summary: string;
|
|
223
267
|
intent_clues: string[];
|
|
224
268
|
tech_stack: string[];
|
|
@@ -232,30 +276,14 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
232
276
|
layer_reason?: string | undefined;
|
|
233
277
|
created_at?: string | undefined;
|
|
234
278
|
tags?: string[] | undefined;
|
|
235
|
-
}
|
|
236
|
-
stable_id?: string | undefined;
|
|
237
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
238
|
-
sections?: string[] | undefined;
|
|
239
|
-
content_ref?: string | undefined;
|
|
240
|
-
identity_source?: "declared" | "derived" | undefined;
|
|
241
|
-
activation?: {
|
|
242
|
-
tier: "always" | "path" | "description";
|
|
243
|
-
description?: string | undefined;
|
|
244
|
-
} | undefined;
|
|
245
|
-
}, {
|
|
246
|
-
file: string;
|
|
247
|
-
priority: "high" | "medium" | "low";
|
|
248
|
-
hash: string;
|
|
249
|
-
layer: "L0" | "L1" | "L2";
|
|
250
|
-
topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
|
|
251
|
-
scope_glob: string;
|
|
252
|
-
deps: string[];
|
|
253
|
-
description?: {
|
|
279
|
+
}, {
|
|
254
280
|
summary: string;
|
|
255
281
|
intent_clues: string[];
|
|
256
282
|
tech_stack: string[];
|
|
257
283
|
impact: string[];
|
|
258
284
|
must_read_if: string;
|
|
285
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
286
|
+
relevance_paths?: string[] | undefined;
|
|
259
287
|
entities?: string[] | undefined;
|
|
260
288
|
id?: string | undefined;
|
|
261
289
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -264,25 +292,44 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
264
292
|
layer_reason?: string | undefined;
|
|
265
293
|
created_at?: string | undefined;
|
|
266
294
|
tags?: string[] | undefined;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
content_ref
|
|
272
|
-
|
|
273
|
-
|
|
295
|
+
}>>;
|
|
296
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
297
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
298
|
+
file: z.ZodString;
|
|
299
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
300
|
+
scope_glob: z.ZodString;
|
|
301
|
+
hash: z.ZodString;
|
|
302
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
303
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
304
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
306
|
+
description: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
308
|
tier: "always" | "path" | "description";
|
|
275
309
|
description?: string | undefined;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
310
|
+
}, {
|
|
311
|
+
tier: "always" | "path" | "description";
|
|
312
|
+
description?: string | undefined;
|
|
313
|
+
}>>;
|
|
314
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
summary: z.ZodString;
|
|
316
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
317
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
318
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
319
|
+
must_read_if: z.ZodString;
|
|
320
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
321
|
+
id: z.ZodOptional<z.ZodString>;
|
|
322
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
323
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
324
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
325
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
326
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
327
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
328
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
329
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
330
|
+
}, "strict", z.ZodTypeAny, {
|
|
331
|
+
relevance_scope: "narrow" | "broad";
|
|
332
|
+
relevance_paths: string[];
|
|
286
333
|
summary: string;
|
|
287
334
|
intent_clues: string[];
|
|
288
335
|
tech_stack: string[];
|
|
@@ -296,17 +343,92 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
296
343
|
layer_reason?: string | undefined;
|
|
297
344
|
created_at?: string | undefined;
|
|
298
345
|
tags?: string[] | undefined;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
346
|
+
}, {
|
|
347
|
+
summary: string;
|
|
348
|
+
intent_clues: string[];
|
|
349
|
+
tech_stack: string[];
|
|
350
|
+
impact: string[];
|
|
351
|
+
must_read_if: string;
|
|
352
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
353
|
+
relevance_paths?: string[] | undefined;
|
|
354
|
+
entities?: string[] | undefined;
|
|
355
|
+
id?: string | undefined;
|
|
356
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
357
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
358
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
359
|
+
layer_reason?: string | undefined;
|
|
360
|
+
created_at?: string | undefined;
|
|
361
|
+
tags?: string[] | undefined;
|
|
362
|
+
}>>;
|
|
363
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
364
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
365
|
+
file: z.ZodString;
|
|
366
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
367
|
+
scope_glob: z.ZodString;
|
|
368
|
+
hash: z.ZodString;
|
|
369
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
370
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
371
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
373
|
+
description: z.ZodOptional<z.ZodString>;
|
|
374
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
375
|
tier: "always" | "path" | "description";
|
|
307
376
|
description?: string | undefined;
|
|
308
|
-
}
|
|
309
|
-
|
|
377
|
+
}, {
|
|
378
|
+
tier: "always" | "path" | "description";
|
|
379
|
+
description?: string | undefined;
|
|
380
|
+
}>>;
|
|
381
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
summary: z.ZodString;
|
|
383
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
384
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
385
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
386
|
+
must_read_if: z.ZodString;
|
|
387
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
388
|
+
id: z.ZodOptional<z.ZodString>;
|
|
389
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
390
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
391
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
392
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
393
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
394
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
395
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
396
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
397
|
+
}, "strict", z.ZodTypeAny, {
|
|
398
|
+
relevance_scope: "narrow" | "broad";
|
|
399
|
+
relevance_paths: string[];
|
|
400
|
+
summary: string;
|
|
401
|
+
intent_clues: string[];
|
|
402
|
+
tech_stack: string[];
|
|
403
|
+
impact: string[];
|
|
404
|
+
must_read_if: string;
|
|
405
|
+
entities?: string[] | undefined;
|
|
406
|
+
id?: string | undefined;
|
|
407
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
408
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
409
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
410
|
+
layer_reason?: string | undefined;
|
|
411
|
+
created_at?: string | undefined;
|
|
412
|
+
tags?: string[] | undefined;
|
|
413
|
+
}, {
|
|
414
|
+
summary: string;
|
|
415
|
+
intent_clues: string[];
|
|
416
|
+
tech_stack: string[];
|
|
417
|
+
impact: string[];
|
|
418
|
+
must_read_if: string;
|
|
419
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
420
|
+
relevance_paths?: string[] | undefined;
|
|
421
|
+
entities?: string[] | undefined;
|
|
422
|
+
id?: string | undefined;
|
|
423
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
424
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
425
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
426
|
+
layer_reason?: string | undefined;
|
|
427
|
+
created_at?: string | undefined;
|
|
428
|
+
tags?: string[] | undefined;
|
|
429
|
+
}>>;
|
|
430
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
431
|
+
}, z.ZodTypeAny, "passthrough">, unknown>;
|
|
310
432
|
declare const AgentsMetaCountersSchema: z.ZodDefault<z.ZodObject<{
|
|
311
433
|
KP: z.ZodDefault<z.ZodObject<{
|
|
312
434
|
MOD: z.ZodDefault<z.ZodNumber>;
|
|
@@ -384,11 +506,6 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
384
506
|
file: z.ZodString;
|
|
385
507
|
content_ref: z.ZodOptional<z.ZodString>;
|
|
386
508
|
scope_glob: z.ZodString;
|
|
387
|
-
deps: z.ZodArray<z.ZodString, "many">;
|
|
388
|
-
priority: z.ZodEnum<["high", "medium", "low"]>;
|
|
389
|
-
level: z.ZodOptional<z.ZodEnum<["L0", "L1", "L2"]>>;
|
|
390
|
-
layer: z.ZodEnum<["L0", "L1", "L2"]>;
|
|
391
|
-
topology_type: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
|
|
392
509
|
hash: z.ZodString;
|
|
393
510
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
394
511
|
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
@@ -416,7 +533,11 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
416
533
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
417
534
|
created_at: z.ZodOptional<z.ZodString>;
|
|
418
535
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
536
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
537
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
419
538
|
}, "strict", z.ZodTypeAny, {
|
|
539
|
+
relevance_scope: "narrow" | "broad";
|
|
540
|
+
relevance_paths: string[];
|
|
420
541
|
summary: string;
|
|
421
542
|
intent_clues: string[];
|
|
422
543
|
tech_stack: string[];
|
|
@@ -436,6 +557,8 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
436
557
|
tech_stack: string[];
|
|
437
558
|
impact: string[];
|
|
438
559
|
must_read_if: string;
|
|
560
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
561
|
+
relevance_paths?: string[] | undefined;
|
|
439
562
|
entities?: string[] | undefined;
|
|
440
563
|
id?: string | undefined;
|
|
441
564
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -446,15 +569,42 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
446
569
|
tags?: string[] | undefined;
|
|
447
570
|
}>>;
|
|
448
571
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
449
|
-
}, "
|
|
450
|
-
file:
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
572
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
573
|
+
file: z.ZodString;
|
|
574
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
575
|
+
scope_glob: z.ZodString;
|
|
576
|
+
hash: z.ZodString;
|
|
577
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
578
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
579
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
581
|
+
description: z.ZodOptional<z.ZodString>;
|
|
582
|
+
}, "strip", z.ZodTypeAny, {
|
|
583
|
+
tier: "always" | "path" | "description";
|
|
584
|
+
description?: string | undefined;
|
|
585
|
+
}, {
|
|
586
|
+
tier: "always" | "path" | "description";
|
|
587
|
+
description?: string | undefined;
|
|
588
|
+
}>>;
|
|
589
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
590
|
+
summary: z.ZodString;
|
|
591
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
592
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
593
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
594
|
+
must_read_if: z.ZodString;
|
|
595
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
596
|
+
id: z.ZodOptional<z.ZodString>;
|
|
597
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
598
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
599
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
600
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
601
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
602
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
603
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
604
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
605
|
+
}, "strict", z.ZodTypeAny, {
|
|
606
|
+
relevance_scope: "narrow" | "broad";
|
|
607
|
+
relevance_paths: string[];
|
|
458
608
|
summary: string;
|
|
459
609
|
intent_clues: string[];
|
|
460
610
|
tech_stack: string[];
|
|
@@ -468,30 +618,14 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
468
618
|
layer_reason?: string | undefined;
|
|
469
619
|
created_at?: string | undefined;
|
|
470
620
|
tags?: string[] | undefined;
|
|
471
|
-
}
|
|
472
|
-
stable_id?: string | undefined;
|
|
473
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
474
|
-
sections?: string[] | undefined;
|
|
475
|
-
content_ref?: string | undefined;
|
|
476
|
-
identity_source?: "declared" | "derived" | undefined;
|
|
477
|
-
activation?: {
|
|
478
|
-
tier: "always" | "path" | "description";
|
|
479
|
-
description?: string | undefined;
|
|
480
|
-
} | undefined;
|
|
481
|
-
}, {
|
|
482
|
-
file: string;
|
|
483
|
-
priority: "high" | "medium" | "low";
|
|
484
|
-
hash: string;
|
|
485
|
-
layer: "L0" | "L1" | "L2";
|
|
486
|
-
topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
|
|
487
|
-
scope_glob: string;
|
|
488
|
-
deps: string[];
|
|
489
|
-
description?: {
|
|
621
|
+
}, {
|
|
490
622
|
summary: string;
|
|
491
623
|
intent_clues: string[];
|
|
492
624
|
tech_stack: string[];
|
|
493
625
|
impact: string[];
|
|
494
626
|
must_read_if: string;
|
|
627
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
628
|
+
relevance_paths?: string[] | undefined;
|
|
495
629
|
entities?: string[] | undefined;
|
|
496
630
|
id?: string | undefined;
|
|
497
631
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -500,25 +634,44 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
500
634
|
layer_reason?: string | undefined;
|
|
501
635
|
created_at?: string | undefined;
|
|
502
636
|
tags?: string[] | undefined;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
content_ref
|
|
508
|
-
|
|
509
|
-
|
|
637
|
+
}>>;
|
|
638
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
639
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
640
|
+
file: z.ZodString;
|
|
641
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
642
|
+
scope_glob: z.ZodString;
|
|
643
|
+
hash: z.ZodString;
|
|
644
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
645
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
646
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
647
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
648
|
+
description: z.ZodOptional<z.ZodString>;
|
|
649
|
+
}, "strip", z.ZodTypeAny, {
|
|
510
650
|
tier: "always" | "path" | "description";
|
|
511
651
|
description?: string | undefined;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
652
|
+
}, {
|
|
653
|
+
tier: "always" | "path" | "description";
|
|
654
|
+
description?: string | undefined;
|
|
655
|
+
}>>;
|
|
656
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
summary: z.ZodString;
|
|
658
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
659
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
660
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
661
|
+
must_read_if: z.ZodString;
|
|
662
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
663
|
+
id: z.ZodOptional<z.ZodString>;
|
|
664
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
665
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
666
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
667
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
668
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
669
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
670
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
671
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
672
|
+
}, "strict", z.ZodTypeAny, {
|
|
673
|
+
relevance_scope: "narrow" | "broad";
|
|
674
|
+
relevance_paths: string[];
|
|
522
675
|
summary: string;
|
|
523
676
|
intent_clues: string[];
|
|
524
677
|
tech_stack: string[];
|
|
@@ -532,36 +685,111 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
532
685
|
layer_reason?: string | undefined;
|
|
533
686
|
created_at?: string | undefined;
|
|
534
687
|
tags?: string[] | undefined;
|
|
535
|
-
} | undefined;
|
|
536
|
-
stable_id?: string | undefined;
|
|
537
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
538
|
-
sections?: string[] | undefined;
|
|
539
|
-
content_ref?: string | undefined;
|
|
540
|
-
identity_source?: "declared" | "derived" | undefined;
|
|
541
|
-
activation?: {
|
|
542
|
-
tier: "always" | "path" | "description";
|
|
543
|
-
description?: string | undefined;
|
|
544
|
-
} | undefined;
|
|
545
|
-
}, unknown>>;
|
|
546
|
-
counters: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
547
|
-
KP: z.ZodDefault<z.ZodObject<{
|
|
548
|
-
MOD: z.ZodDefault<z.ZodNumber>;
|
|
549
|
-
DEC: z.ZodDefault<z.ZodNumber>;
|
|
550
|
-
GLD: z.ZodDefault<z.ZodNumber>;
|
|
551
|
-
PIT: z.ZodDefault<z.ZodNumber>;
|
|
552
|
-
PRO: z.ZodDefault<z.ZodNumber>;
|
|
553
|
-
}, "strip", z.ZodTypeAny, {
|
|
554
|
-
MOD: number;
|
|
555
|
-
DEC: number;
|
|
556
|
-
GLD: number;
|
|
557
|
-
PIT: number;
|
|
558
|
-
PRO: number;
|
|
559
688
|
}, {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
689
|
+
summary: string;
|
|
690
|
+
intent_clues: string[];
|
|
691
|
+
tech_stack: string[];
|
|
692
|
+
impact: string[];
|
|
693
|
+
must_read_if: string;
|
|
694
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
695
|
+
relevance_paths?: string[] | undefined;
|
|
696
|
+
entities?: string[] | undefined;
|
|
697
|
+
id?: string | undefined;
|
|
698
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
699
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
700
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
701
|
+
layer_reason?: string | undefined;
|
|
702
|
+
created_at?: string | undefined;
|
|
703
|
+
tags?: string[] | undefined;
|
|
704
|
+
}>>;
|
|
705
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
706
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
707
|
+
file: z.ZodString;
|
|
708
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
709
|
+
scope_glob: z.ZodString;
|
|
710
|
+
hash: z.ZodString;
|
|
711
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
712
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
713
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
714
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
715
|
+
description: z.ZodOptional<z.ZodString>;
|
|
716
|
+
}, "strip", z.ZodTypeAny, {
|
|
717
|
+
tier: "always" | "path" | "description";
|
|
718
|
+
description?: string | undefined;
|
|
719
|
+
}, {
|
|
720
|
+
tier: "always" | "path" | "description";
|
|
721
|
+
description?: string | undefined;
|
|
722
|
+
}>>;
|
|
723
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
724
|
+
summary: z.ZodString;
|
|
725
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
726
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
727
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
728
|
+
must_read_if: z.ZodString;
|
|
729
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
730
|
+
id: z.ZodOptional<z.ZodString>;
|
|
731
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
732
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
733
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
734
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
735
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
736
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
737
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
738
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
739
|
+
}, "strict", z.ZodTypeAny, {
|
|
740
|
+
relevance_scope: "narrow" | "broad";
|
|
741
|
+
relevance_paths: string[];
|
|
742
|
+
summary: string;
|
|
743
|
+
intent_clues: string[];
|
|
744
|
+
tech_stack: string[];
|
|
745
|
+
impact: string[];
|
|
746
|
+
must_read_if: string;
|
|
747
|
+
entities?: string[] | undefined;
|
|
748
|
+
id?: string | undefined;
|
|
749
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
750
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
751
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
752
|
+
layer_reason?: string | undefined;
|
|
753
|
+
created_at?: string | undefined;
|
|
754
|
+
tags?: string[] | undefined;
|
|
755
|
+
}, {
|
|
756
|
+
summary: string;
|
|
757
|
+
intent_clues: string[];
|
|
758
|
+
tech_stack: string[];
|
|
759
|
+
impact: string[];
|
|
760
|
+
must_read_if: string;
|
|
761
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
762
|
+
relevance_paths?: string[] | undefined;
|
|
763
|
+
entities?: string[] | undefined;
|
|
764
|
+
id?: string | undefined;
|
|
765
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
766
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
767
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
768
|
+
layer_reason?: string | undefined;
|
|
769
|
+
created_at?: string | undefined;
|
|
770
|
+
tags?: string[] | undefined;
|
|
771
|
+
}>>;
|
|
772
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
773
|
+
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
774
|
+
counters: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
775
|
+
KP: z.ZodDefault<z.ZodObject<{
|
|
776
|
+
MOD: z.ZodDefault<z.ZodNumber>;
|
|
777
|
+
DEC: z.ZodDefault<z.ZodNumber>;
|
|
778
|
+
GLD: z.ZodDefault<z.ZodNumber>;
|
|
779
|
+
PIT: z.ZodDefault<z.ZodNumber>;
|
|
780
|
+
PRO: z.ZodDefault<z.ZodNumber>;
|
|
781
|
+
}, "strip", z.ZodTypeAny, {
|
|
782
|
+
MOD: number;
|
|
783
|
+
DEC: number;
|
|
784
|
+
GLD: number;
|
|
785
|
+
PIT: number;
|
|
786
|
+
PRO: number;
|
|
787
|
+
}, {
|
|
788
|
+
MOD?: number | undefined;
|
|
789
|
+
DEC?: number | undefined;
|
|
790
|
+
GLD?: number | undefined;
|
|
791
|
+
PIT?: number | undefined;
|
|
792
|
+
PRO?: number | undefined;
|
|
565
793
|
}>>;
|
|
566
794
|
KT: z.ZodDefault<z.ZodObject<{
|
|
567
795
|
MOD: z.ZodDefault<z.ZodNumber>;
|
|
@@ -615,15 +843,42 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
615
843
|
}>>>;
|
|
616
844
|
}, "strip", z.ZodTypeAny, {
|
|
617
845
|
revision: string;
|
|
618
|
-
nodes: Record<string, {
|
|
619
|
-
file:
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
846
|
+
nodes: Record<string, z.objectOutputType<{
|
|
847
|
+
file: z.ZodString;
|
|
848
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
849
|
+
scope_glob: z.ZodString;
|
|
850
|
+
hash: z.ZodString;
|
|
851
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
852
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
853
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
854
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
855
|
+
description: z.ZodOptional<z.ZodString>;
|
|
856
|
+
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
tier: "always" | "path" | "description";
|
|
858
|
+
description?: string | undefined;
|
|
859
|
+
}, {
|
|
860
|
+
tier: "always" | "path" | "description";
|
|
861
|
+
description?: string | undefined;
|
|
862
|
+
}>>;
|
|
863
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
864
|
+
summary: z.ZodString;
|
|
865
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
866
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
867
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
868
|
+
must_read_if: z.ZodString;
|
|
869
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
870
|
+
id: z.ZodOptional<z.ZodString>;
|
|
871
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
872
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
873
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
874
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
875
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
876
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
877
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
878
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
879
|
+
}, "strict", z.ZodTypeAny, {
|
|
880
|
+
relevance_scope: "narrow" | "broad";
|
|
881
|
+
relevance_paths: string[];
|
|
627
882
|
summary: string;
|
|
628
883
|
intent_clues: string[];
|
|
629
884
|
tech_stack: string[];
|
|
@@ -637,17 +892,25 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
637
892
|
layer_reason?: string | undefined;
|
|
638
893
|
created_at?: string | undefined;
|
|
639
894
|
tags?: string[] | undefined;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
895
|
+
}, {
|
|
896
|
+
summary: string;
|
|
897
|
+
intent_clues: string[];
|
|
898
|
+
tech_stack: string[];
|
|
899
|
+
impact: string[];
|
|
900
|
+
must_read_if: string;
|
|
901
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
902
|
+
relevance_paths?: string[] | undefined;
|
|
903
|
+
entities?: string[] | undefined;
|
|
904
|
+
id?: string | undefined;
|
|
905
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
906
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
907
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
908
|
+
layer_reason?: string | undefined;
|
|
909
|
+
created_at?: string | undefined;
|
|
910
|
+
tags?: string[] | undefined;
|
|
911
|
+
}>>;
|
|
912
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
913
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
651
914
|
counters?: {
|
|
652
915
|
KP: {
|
|
653
916
|
MOD: number;
|
|
@@ -721,8 +984,8 @@ declare function deriveAgentsMetaIdentitySource(node: Pick<AgentsMetaNode, "file
|
|
|
721
984
|
declare function deriveAgentsMetaLayer(file: string): AgentsLayer;
|
|
722
985
|
declare function deriveAgentsMetaTopologyType(file: string): AgentsTopologyType;
|
|
723
986
|
|
|
724
|
-
declare const
|
|
725
|
-
declare const
|
|
987
|
+
declare const KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION = 1;
|
|
988
|
+
declare const knowledgeTestLinkSchema: z.ZodObject<{
|
|
726
989
|
rule_stable_id: z.ZodString;
|
|
727
990
|
rule_file: z.ZodString;
|
|
728
991
|
rule_hash: z.ZodString;
|
|
@@ -750,7 +1013,7 @@ declare const ruleTestLinkSchema: z.ZodObject<{
|
|
|
750
1013
|
previous_rule_hash?: string | undefined;
|
|
751
1014
|
previous_test_hash?: string | undefined;
|
|
752
1015
|
}>;
|
|
753
|
-
declare const
|
|
1016
|
+
declare const knowledgeTestOrphanAnnotationSchema: z.ZodObject<{
|
|
754
1017
|
rule_stable_id: z.ZodString;
|
|
755
1018
|
test_file: z.ZodString;
|
|
756
1019
|
test_hash: z.ZodString;
|
|
@@ -769,7 +1032,7 @@ declare const ruleTestOrphanAnnotationSchema: z.ZodObject<{
|
|
|
769
1032
|
annotation_line: number;
|
|
770
1033
|
previous_test_hash?: string | undefined;
|
|
771
1034
|
}>;
|
|
772
|
-
declare const
|
|
1035
|
+
declare const knowledgeTestIndexSchema: z.ZodObject<{
|
|
773
1036
|
schema_version: z.ZodLiteral<1>;
|
|
774
1037
|
generated_at: z.ZodString;
|
|
775
1038
|
revision: z.ZodOptional<z.ZodString>;
|
|
@@ -866,9 +1129,9 @@ declare const ruleTestIndexSchema: z.ZodObject<{
|
|
|
866
1129
|
revision?: string | undefined;
|
|
867
1130
|
previous_revision?: string | undefined;
|
|
868
1131
|
}>;
|
|
869
|
-
type
|
|
870
|
-
type
|
|
871
|
-
type
|
|
1132
|
+
type KnowledgeTestLink = z.infer<typeof knowledgeTestLinkSchema>;
|
|
1133
|
+
type KnowledgeTestOrphanAnnotation = z.infer<typeof knowledgeTestOrphanAnnotationSchema>;
|
|
1134
|
+
type KnowledgeTestIndex = z.infer<typeof knowledgeTestIndexSchema>;
|
|
872
1135
|
|
|
873
1136
|
declare const aiLedgerEntrySchema: z.ZodObject<{
|
|
874
1137
|
source: z.ZodLiteral<"ai">;
|
|
@@ -1072,6 +1335,8 @@ declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1072
1335
|
warnBytes?: number | undefined;
|
|
1073
1336
|
hardBytes?: number | undefined;
|
|
1074
1337
|
}>>;
|
|
1338
|
+
declare const knowledgeLanguageSchema: z.ZodEnum<["match-existing", "zh-CN", "en"]>;
|
|
1339
|
+
declare const defaultLayerFilterSchema: z.ZodEnum<["team", "personal", "both"]>;
|
|
1075
1340
|
declare const fabricConfigSchema: z.ZodObject<{
|
|
1076
1341
|
clientPaths: z.ZodOptional<z.ZodObject<{
|
|
1077
1342
|
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
@@ -1103,7 +1368,47 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1103
1368
|
warnBytes?: number | undefined;
|
|
1104
1369
|
hardBytes?: number | undefined;
|
|
1105
1370
|
}>>;
|
|
1371
|
+
knowledge_language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["match-existing", "zh-CN", "en"]>>>;
|
|
1372
|
+
default_layer_filter: z.ZodDefault<z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>>;
|
|
1373
|
+
archive_hint_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1374
|
+
underseed_node_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1375
|
+
archive_edit_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1376
|
+
archive_hint_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1377
|
+
review_hint_pending_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1378
|
+
review_hint_pending_age_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1379
|
+
maintenance_hint_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1380
|
+
maintenance_hint_cooldown_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1381
|
+
import_window_first_run_months: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1382
|
+
import_window_rerun_months: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1383
|
+
import_max_pending_per_run: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1384
|
+
import_max_commits_scan: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1385
|
+
import_skip_canonical_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1386
|
+
archive_max_candidates_per_batch: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1387
|
+
archive_max_recent_paths: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1388
|
+
archive_digest_max_sessions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1389
|
+
review_topic_result_cap: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1390
|
+
review_stale_pending_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1106
1391
|
}, "strip", z.ZodTypeAny, {
|
|
1392
|
+
knowledge_language: "match-existing" | "zh-CN" | "en";
|
|
1393
|
+
default_layer_filter: "personal" | "team" | "both";
|
|
1394
|
+
archive_hint_cooldown_hours: number;
|
|
1395
|
+
underseed_node_threshold: number;
|
|
1396
|
+
archive_edit_threshold: number;
|
|
1397
|
+
archive_hint_hours: number;
|
|
1398
|
+
review_hint_pending_count: number;
|
|
1399
|
+
review_hint_pending_age_days: number;
|
|
1400
|
+
maintenance_hint_days: number;
|
|
1401
|
+
maintenance_hint_cooldown_days: number;
|
|
1402
|
+
import_window_first_run_months: number;
|
|
1403
|
+
import_window_rerun_months: number;
|
|
1404
|
+
import_max_pending_per_run: number;
|
|
1405
|
+
import_max_commits_scan: number;
|
|
1406
|
+
import_skip_canonical_threshold: number;
|
|
1407
|
+
archive_max_candidates_per_batch: number;
|
|
1408
|
+
archive_max_recent_paths: number;
|
|
1409
|
+
archive_digest_max_sessions: number;
|
|
1410
|
+
review_topic_result_cap: number;
|
|
1411
|
+
review_stale_pending_days: number;
|
|
1107
1412
|
clientPaths?: {
|
|
1108
1413
|
claudeCodeCLI?: string | undefined;
|
|
1109
1414
|
claudeCodeDesktop?: string | undefined;
|
|
@@ -1133,6 +1438,26 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
1133
1438
|
warnBytes?: number | undefined;
|
|
1134
1439
|
hardBytes?: number | undefined;
|
|
1135
1440
|
} | undefined;
|
|
1441
|
+
knowledge_language?: "match-existing" | "zh-CN" | "en" | undefined;
|
|
1442
|
+
default_layer_filter?: "personal" | "team" | "both" | undefined;
|
|
1443
|
+
archive_hint_cooldown_hours?: number | undefined;
|
|
1444
|
+
underseed_node_threshold?: number | undefined;
|
|
1445
|
+
archive_edit_threshold?: number | undefined;
|
|
1446
|
+
archive_hint_hours?: number | undefined;
|
|
1447
|
+
review_hint_pending_count?: number | undefined;
|
|
1448
|
+
review_hint_pending_age_days?: number | undefined;
|
|
1449
|
+
maintenance_hint_days?: number | undefined;
|
|
1450
|
+
maintenance_hint_cooldown_days?: number | undefined;
|
|
1451
|
+
import_window_first_run_months?: number | undefined;
|
|
1452
|
+
import_window_rerun_months?: number | undefined;
|
|
1453
|
+
import_max_pending_per_run?: number | undefined;
|
|
1454
|
+
import_max_commits_scan?: number | undefined;
|
|
1455
|
+
import_skip_canonical_threshold?: number | undefined;
|
|
1456
|
+
archive_max_candidates_per_batch?: number | undefined;
|
|
1457
|
+
archive_max_recent_paths?: number | undefined;
|
|
1458
|
+
archive_digest_max_sessions?: number | undefined;
|
|
1459
|
+
review_topic_result_cap?: number | undefined;
|
|
1460
|
+
review_stale_pending_days?: number | undefined;
|
|
1136
1461
|
}>;
|
|
1137
1462
|
|
|
1138
1463
|
interface ForensicCodeSample {
|
|
@@ -1362,14 +1687,14 @@ declare const forensicFrameworkSchema: z.ZodObject<{
|
|
|
1362
1687
|
subkind: z.ZodString;
|
|
1363
1688
|
evidence: z.ZodArray<z.ZodString, "many">;
|
|
1364
1689
|
}, "strip", z.ZodTypeAny, {
|
|
1690
|
+
version: string;
|
|
1365
1691
|
evidence: string[];
|
|
1366
1692
|
kind: string;
|
|
1367
|
-
version: string;
|
|
1368
1693
|
subkind: string;
|
|
1369
1694
|
}, {
|
|
1695
|
+
version: string;
|
|
1370
1696
|
evidence: string[];
|
|
1371
1697
|
kind: string;
|
|
1372
|
-
version: string;
|
|
1373
1698
|
subkind: string;
|
|
1374
1699
|
}>;
|
|
1375
1700
|
declare const forensicReadmeSchema: z.ZodObject<{
|
|
@@ -1420,14 +1745,14 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
1420
1745
|
subkind: z.ZodString;
|
|
1421
1746
|
evidence: z.ZodArray<z.ZodString, "many">;
|
|
1422
1747
|
}, "strip", z.ZodTypeAny, {
|
|
1748
|
+
version: string;
|
|
1423
1749
|
evidence: string[];
|
|
1424
1750
|
kind: string;
|
|
1425
|
-
version: string;
|
|
1426
1751
|
subkind: string;
|
|
1427
1752
|
}, {
|
|
1753
|
+
version: string;
|
|
1428
1754
|
evidence: string[];
|
|
1429
1755
|
kind: string;
|
|
1430
|
-
version: string;
|
|
1431
1756
|
subkind: string;
|
|
1432
1757
|
}>;
|
|
1433
1758
|
topology: z.ZodObject<{
|
|
@@ -1583,14 +1908,14 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
1583
1908
|
}>;
|
|
1584
1909
|
recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1585
1910
|
}, "strip", z.ZodTypeAny, {
|
|
1911
|
+
version: string;
|
|
1586
1912
|
generated_at: string;
|
|
1587
1913
|
framework: {
|
|
1914
|
+
version: string;
|
|
1588
1915
|
evidence: string[];
|
|
1589
1916
|
kind: string;
|
|
1590
|
-
version: string;
|
|
1591
1917
|
subkind: string;
|
|
1592
1918
|
};
|
|
1593
|
-
version: string;
|
|
1594
1919
|
generated_by: string;
|
|
1595
1920
|
target: string;
|
|
1596
1921
|
project_name: string;
|
|
@@ -1645,14 +1970,14 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
1645
1970
|
};
|
|
1646
1971
|
recommendations_for_skill?: string[] | undefined;
|
|
1647
1972
|
}, {
|
|
1973
|
+
version: string;
|
|
1648
1974
|
generated_at: string;
|
|
1649
1975
|
framework: {
|
|
1976
|
+
version: string;
|
|
1650
1977
|
evidence: string[];
|
|
1651
1978
|
kind: string;
|
|
1652
|
-
version: string;
|
|
1653
1979
|
subkind: string;
|
|
1654
1980
|
};
|
|
1655
|
-
version: string;
|
|
1656
1981
|
generated_by: string;
|
|
1657
1982
|
target: string;
|
|
1658
1983
|
project_name: string;
|
|
@@ -1755,12 +2080,12 @@ declare const initContextFrameworkSchema: z.ZodObject<{
|
|
|
1755
2080
|
version: z.ZodString;
|
|
1756
2081
|
subkind: z.ZodString;
|
|
1757
2082
|
}, "strip", z.ZodTypeAny, {
|
|
1758
|
-
kind: string;
|
|
1759
2083
|
version: string;
|
|
2084
|
+
kind: string;
|
|
1760
2085
|
subkind: string;
|
|
1761
2086
|
}, {
|
|
1762
|
-
kind: string;
|
|
1763
2087
|
version: string;
|
|
2088
|
+
kind: string;
|
|
1764
2089
|
subkind: string;
|
|
1765
2090
|
}>;
|
|
1766
2091
|
declare const initContextInvariantConfidenceSnapshotSchema: z.ZodObject<{
|
|
@@ -1876,12 +2201,12 @@ declare const initContextSchema: z.ZodObject<{
|
|
|
1876
2201
|
version: z.ZodString;
|
|
1877
2202
|
subkind: z.ZodString;
|
|
1878
2203
|
}, "strip", z.ZodTypeAny, {
|
|
1879
|
-
kind: string;
|
|
1880
2204
|
version: string;
|
|
2205
|
+
kind: string;
|
|
1881
2206
|
subkind: string;
|
|
1882
2207
|
}, {
|
|
1883
|
-
kind: string;
|
|
1884
2208
|
version: string;
|
|
2209
|
+
kind: string;
|
|
1885
2210
|
subkind: string;
|
|
1886
2211
|
}>;
|
|
1887
2212
|
architecture_patterns: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1975,8 +2300,8 @@ declare const initContextSchema: z.ZodObject<{
|
|
|
1975
2300
|
forensic_ref: z.ZodString;
|
|
1976
2301
|
}, "strip", z.ZodTypeAny, {
|
|
1977
2302
|
framework: {
|
|
1978
|
-
kind: string;
|
|
1979
2303
|
version: string;
|
|
2304
|
+
kind: string;
|
|
1980
2305
|
subkind: string;
|
|
1981
2306
|
};
|
|
1982
2307
|
architecture_patterns: string[];
|
|
@@ -2010,8 +2335,8 @@ declare const initContextSchema: z.ZodObject<{
|
|
|
2010
2335
|
forensic_ref: string;
|
|
2011
2336
|
}, {
|
|
2012
2337
|
framework: {
|
|
2013
|
-
kind: string;
|
|
2014
2338
|
version: string;
|
|
2339
|
+
kind: string;
|
|
2015
2340
|
subkind: string;
|
|
2016
2341
|
};
|
|
2017
2342
|
architecture_patterns: string[];
|
|
@@ -2080,11 +2405,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2080
2405
|
file: z.ZodString;
|
|
2081
2406
|
content_ref: z.ZodOptional<z.ZodString>;
|
|
2082
2407
|
scope_glob: z.ZodString;
|
|
2083
|
-
deps: z.ZodArray<z.ZodString, "many">;
|
|
2084
|
-
priority: z.ZodEnum<["high", "medium", "low"]>;
|
|
2085
|
-
level: z.ZodOptional<z.ZodEnum<["L0", "L1", "L2"]>>;
|
|
2086
|
-
layer: z.ZodEnum<["L0", "L1", "L2"]>;
|
|
2087
|
-
topology_type: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
|
|
2088
2408
|
hash: z.ZodString;
|
|
2089
2409
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
2090
2410
|
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
@@ -2112,7 +2432,11 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2112
2432
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
2113
2433
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2114
2434
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2435
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2436
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2115
2437
|
}, "strict", z.ZodTypeAny, {
|
|
2438
|
+
relevance_scope: "narrow" | "broad";
|
|
2439
|
+
relevance_paths: string[];
|
|
2116
2440
|
summary: string;
|
|
2117
2441
|
intent_clues: string[];
|
|
2118
2442
|
tech_stack: string[];
|
|
@@ -2132,6 +2456,8 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2132
2456
|
tech_stack: string[];
|
|
2133
2457
|
impact: string[];
|
|
2134
2458
|
must_read_if: string;
|
|
2459
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2460
|
+
relevance_paths?: string[] | undefined;
|
|
2135
2461
|
entities?: string[] | undefined;
|
|
2136
2462
|
id?: string | undefined;
|
|
2137
2463
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -2142,15 +2468,42 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2142
2468
|
tags?: string[] | undefined;
|
|
2143
2469
|
}>>;
|
|
2144
2470
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2145
|
-
}, "
|
|
2146
|
-
file:
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2471
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2472
|
+
file: z.ZodString;
|
|
2473
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
scope_glob: z.ZodString;
|
|
2475
|
+
hash: z.ZodString;
|
|
2476
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
2477
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
2478
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
2479
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
2480
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2481
|
+
}, "strip", z.ZodTypeAny, {
|
|
2482
|
+
tier: "always" | "path" | "description";
|
|
2483
|
+
description?: string | undefined;
|
|
2484
|
+
}, {
|
|
2485
|
+
tier: "always" | "path" | "description";
|
|
2486
|
+
description?: string | undefined;
|
|
2487
|
+
}>>;
|
|
2488
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
2489
|
+
summary: z.ZodString;
|
|
2490
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
2491
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
2492
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
2493
|
+
must_read_if: z.ZodString;
|
|
2494
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2495
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2496
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
2497
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2498
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2499
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
2500
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2501
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2502
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2503
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2504
|
+
}, "strict", z.ZodTypeAny, {
|
|
2505
|
+
relevance_scope: "narrow" | "broad";
|
|
2506
|
+
relevance_paths: string[];
|
|
2154
2507
|
summary: string;
|
|
2155
2508
|
intent_clues: string[];
|
|
2156
2509
|
tech_stack: string[];
|
|
@@ -2164,30 +2517,14 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2164
2517
|
layer_reason?: string | undefined;
|
|
2165
2518
|
created_at?: string | undefined;
|
|
2166
2519
|
tags?: string[] | undefined;
|
|
2167
|
-
}
|
|
2168
|
-
stable_id?: string | undefined;
|
|
2169
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
2170
|
-
sections?: string[] | undefined;
|
|
2171
|
-
content_ref?: string | undefined;
|
|
2172
|
-
identity_source?: "declared" | "derived" | undefined;
|
|
2173
|
-
activation?: {
|
|
2174
|
-
tier: "always" | "path" | "description";
|
|
2175
|
-
description?: string | undefined;
|
|
2176
|
-
} | undefined;
|
|
2177
|
-
}, {
|
|
2178
|
-
file: string;
|
|
2179
|
-
priority: "high" | "medium" | "low";
|
|
2180
|
-
hash: string;
|
|
2181
|
-
layer: "L0" | "L1" | "L2";
|
|
2182
|
-
topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
|
|
2183
|
-
scope_glob: string;
|
|
2184
|
-
deps: string[];
|
|
2185
|
-
description?: {
|
|
2520
|
+
}, {
|
|
2186
2521
|
summary: string;
|
|
2187
2522
|
intent_clues: string[];
|
|
2188
2523
|
tech_stack: string[];
|
|
2189
2524
|
impact: string[];
|
|
2190
2525
|
must_read_if: string;
|
|
2526
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2527
|
+
relevance_paths?: string[] | undefined;
|
|
2191
2528
|
entities?: string[] | undefined;
|
|
2192
2529
|
id?: string | undefined;
|
|
2193
2530
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -2196,25 +2533,44 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2196
2533
|
layer_reason?: string | undefined;
|
|
2197
2534
|
created_at?: string | undefined;
|
|
2198
2535
|
tags?: string[] | undefined;
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
content_ref
|
|
2204
|
-
|
|
2205
|
-
|
|
2536
|
+
}>>;
|
|
2537
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2538
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2539
|
+
file: z.ZodString;
|
|
2540
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
2541
|
+
scope_glob: z.ZodString;
|
|
2542
|
+
hash: z.ZodString;
|
|
2543
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
2544
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
2545
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
2546
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
2547
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2548
|
+
}, "strip", z.ZodTypeAny, {
|
|
2206
2549
|
tier: "always" | "path" | "description";
|
|
2207
2550
|
description?: string | undefined;
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2551
|
+
}, {
|
|
2552
|
+
tier: "always" | "path" | "description";
|
|
2553
|
+
description?: string | undefined;
|
|
2554
|
+
}>>;
|
|
2555
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
2556
|
+
summary: z.ZodString;
|
|
2557
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
2558
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
2559
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
2560
|
+
must_read_if: z.ZodString;
|
|
2561
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2562
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2563
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
2564
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2565
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2566
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
2567
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2568
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2569
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2570
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2571
|
+
}, "strict", z.ZodTypeAny, {
|
|
2572
|
+
relevance_scope: "narrow" | "broad";
|
|
2573
|
+
relevance_paths: string[];
|
|
2218
2574
|
summary: string;
|
|
2219
2575
|
intent_clues: string[];
|
|
2220
2576
|
tech_stack: string[];
|
|
@@ -2228,17 +2584,92 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2228
2584
|
layer_reason?: string | undefined;
|
|
2229
2585
|
created_at?: string | undefined;
|
|
2230
2586
|
tags?: string[] | undefined;
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2587
|
+
}, {
|
|
2588
|
+
summary: string;
|
|
2589
|
+
intent_clues: string[];
|
|
2590
|
+
tech_stack: string[];
|
|
2591
|
+
impact: string[];
|
|
2592
|
+
must_read_if: string;
|
|
2593
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2594
|
+
relevance_paths?: string[] | undefined;
|
|
2595
|
+
entities?: string[] | undefined;
|
|
2596
|
+
id?: string | undefined;
|
|
2597
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2598
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2599
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2600
|
+
layer_reason?: string | undefined;
|
|
2601
|
+
created_at?: string | undefined;
|
|
2602
|
+
tags?: string[] | undefined;
|
|
2603
|
+
}>>;
|
|
2604
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2605
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
2606
|
+
file: z.ZodString;
|
|
2607
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
2608
|
+
scope_glob: z.ZodString;
|
|
2609
|
+
hash: z.ZodString;
|
|
2610
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
2611
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
2612
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
2613
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
2614
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2615
|
+
}, "strip", z.ZodTypeAny, {
|
|
2616
|
+
tier: "always" | "path" | "description";
|
|
2617
|
+
description?: string | undefined;
|
|
2618
|
+
}, {
|
|
2619
|
+
tier: "always" | "path" | "description";
|
|
2620
|
+
description?: string | undefined;
|
|
2621
|
+
}>>;
|
|
2622
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
2623
|
+
summary: z.ZodString;
|
|
2624
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
2625
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
2626
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
2627
|
+
must_read_if: z.ZodString;
|
|
2628
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2629
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2630
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
2631
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2632
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2633
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
2634
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2635
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2636
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2637
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2638
|
+
}, "strict", z.ZodTypeAny, {
|
|
2639
|
+
relevance_scope: "narrow" | "broad";
|
|
2640
|
+
relevance_paths: string[];
|
|
2641
|
+
summary: string;
|
|
2642
|
+
intent_clues: string[];
|
|
2643
|
+
tech_stack: string[];
|
|
2644
|
+
impact: string[];
|
|
2645
|
+
must_read_if: string;
|
|
2646
|
+
entities?: string[] | undefined;
|
|
2647
|
+
id?: string | undefined;
|
|
2648
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2649
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2650
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2651
|
+
layer_reason?: string | undefined;
|
|
2652
|
+
created_at?: string | undefined;
|
|
2653
|
+
tags?: string[] | undefined;
|
|
2654
|
+
}, {
|
|
2655
|
+
summary: string;
|
|
2656
|
+
intent_clues: string[];
|
|
2657
|
+
tech_stack: string[];
|
|
2658
|
+
impact: string[];
|
|
2659
|
+
must_read_if: string;
|
|
2660
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2661
|
+
relevance_paths?: string[] | undefined;
|
|
2662
|
+
entities?: string[] | undefined;
|
|
2663
|
+
id?: string | undefined;
|
|
2664
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2665
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2666
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2667
|
+
layer_reason?: string | undefined;
|
|
2668
|
+
created_at?: string | undefined;
|
|
2669
|
+
tags?: string[] | undefined;
|
|
2670
|
+
}>>;
|
|
2671
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2672
|
+
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
2242
2673
|
counters: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
2243
2674
|
KP: z.ZodDefault<z.ZodObject<{
|
|
2244
2675
|
MOD: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2311,15 +2742,42 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2311
2742
|
}>>>;
|
|
2312
2743
|
}, "strip", z.ZodTypeAny, {
|
|
2313
2744
|
revision: string;
|
|
2314
|
-
nodes: Record<string, {
|
|
2315
|
-
file:
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2745
|
+
nodes: Record<string, z.objectOutputType<{
|
|
2746
|
+
file: z.ZodString;
|
|
2747
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
2748
|
+
scope_glob: z.ZodString;
|
|
2749
|
+
hash: z.ZodString;
|
|
2750
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
2751
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
2752
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
2753
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
2754
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
}, "strip", z.ZodTypeAny, {
|
|
2756
|
+
tier: "always" | "path" | "description";
|
|
2757
|
+
description?: string | undefined;
|
|
2758
|
+
}, {
|
|
2759
|
+
tier: "always" | "path" | "description";
|
|
2760
|
+
description?: string | undefined;
|
|
2761
|
+
}>>;
|
|
2762
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
2763
|
+
summary: z.ZodString;
|
|
2764
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
2765
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
2766
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
2767
|
+
must_read_if: z.ZodString;
|
|
2768
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2769
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2770
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
2771
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2772
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2773
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
2774
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2775
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2776
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2777
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2778
|
+
}, "strict", z.ZodTypeAny, {
|
|
2779
|
+
relevance_scope: "narrow" | "broad";
|
|
2780
|
+
relevance_paths: string[];
|
|
2323
2781
|
summary: string;
|
|
2324
2782
|
intent_clues: string[];
|
|
2325
2783
|
tech_stack: string[];
|
|
@@ -2333,17 +2791,25 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2333
2791
|
layer_reason?: string | undefined;
|
|
2334
2792
|
created_at?: string | undefined;
|
|
2335
2793
|
tags?: string[] | undefined;
|
|
2336
|
-
}
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2794
|
+
}, {
|
|
2795
|
+
summary: string;
|
|
2796
|
+
intent_clues: string[];
|
|
2797
|
+
tech_stack: string[];
|
|
2798
|
+
impact: string[];
|
|
2799
|
+
must_read_if: string;
|
|
2800
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2801
|
+
relevance_paths?: string[] | undefined;
|
|
2802
|
+
entities?: string[] | undefined;
|
|
2803
|
+
id?: string | undefined;
|
|
2804
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2805
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2806
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2807
|
+
layer_reason?: string | undefined;
|
|
2808
|
+
created_at?: string | undefined;
|
|
2809
|
+
tags?: string[] | undefined;
|
|
2810
|
+
}>>;
|
|
2811
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2812
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2347
2813
|
counters?: {
|
|
2348
2814
|
KP: {
|
|
2349
2815
|
MOD: number;
|
|
@@ -2384,15 +2850,42 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2384
2850
|
type: "meta:updated";
|
|
2385
2851
|
payload: {
|
|
2386
2852
|
revision: string;
|
|
2387
|
-
nodes: Record<string, {
|
|
2388
|
-
file:
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2853
|
+
nodes: Record<string, z.objectOutputType<{
|
|
2854
|
+
file: z.ZodString;
|
|
2855
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
2856
|
+
scope_glob: z.ZodString;
|
|
2857
|
+
hash: z.ZodString;
|
|
2858
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
2859
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
2860
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
2861
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
2862
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2863
|
+
}, "strip", z.ZodTypeAny, {
|
|
2864
|
+
tier: "always" | "path" | "description";
|
|
2865
|
+
description?: string | undefined;
|
|
2866
|
+
}, {
|
|
2867
|
+
tier: "always" | "path" | "description";
|
|
2868
|
+
description?: string | undefined;
|
|
2869
|
+
}>>;
|
|
2870
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
2871
|
+
summary: z.ZodString;
|
|
2872
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
2873
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
2874
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
2875
|
+
must_read_if: z.ZodString;
|
|
2876
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2877
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2878
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
2879
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2880
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2881
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
2882
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2883
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2884
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2885
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2886
|
+
}, "strict", z.ZodTypeAny, {
|
|
2887
|
+
relevance_scope: "narrow" | "broad";
|
|
2888
|
+
relevance_paths: string[];
|
|
2396
2889
|
summary: string;
|
|
2397
2890
|
intent_clues: string[];
|
|
2398
2891
|
tech_stack: string[];
|
|
@@ -2406,17 +2899,25 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2406
2899
|
layer_reason?: string | undefined;
|
|
2407
2900
|
created_at?: string | undefined;
|
|
2408
2901
|
tags?: string[] | undefined;
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2902
|
+
}, {
|
|
2903
|
+
summary: string;
|
|
2904
|
+
intent_clues: string[];
|
|
2905
|
+
tech_stack: string[];
|
|
2906
|
+
impact: string[];
|
|
2907
|
+
must_read_if: string;
|
|
2908
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2909
|
+
relevance_paths?: string[] | undefined;
|
|
2910
|
+
entities?: string[] | undefined;
|
|
2911
|
+
id?: string | undefined;
|
|
2912
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2913
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2914
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2915
|
+
layer_reason?: string | undefined;
|
|
2916
|
+
created_at?: string | undefined;
|
|
2917
|
+
tags?: string[] | undefined;
|
|
2918
|
+
}>>;
|
|
2919
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2920
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2420
2921
|
counters?: {
|
|
2421
2922
|
KP: {
|
|
2422
2923
|
MOD: number;
|
|
@@ -2756,14 +3257,14 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2756
3257
|
subkind: z.ZodString;
|
|
2757
3258
|
evidence: z.ZodArray<z.ZodString, "many">;
|
|
2758
3259
|
}, "strip", z.ZodTypeAny, {
|
|
3260
|
+
version: string;
|
|
2759
3261
|
evidence: string[];
|
|
2760
3262
|
kind: string;
|
|
2761
|
-
version: string;
|
|
2762
3263
|
subkind: string;
|
|
2763
3264
|
}, {
|
|
3265
|
+
version: string;
|
|
2764
3266
|
evidence: string[];
|
|
2765
3267
|
kind: string;
|
|
2766
|
-
version: string;
|
|
2767
3268
|
subkind: string;
|
|
2768
3269
|
}>;
|
|
2769
3270
|
topology: z.ZodObject<{
|
|
@@ -2919,14 +3420,14 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2919
3420
|
}>;
|
|
2920
3421
|
recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2921
3422
|
}, "strip", z.ZodTypeAny, {
|
|
3423
|
+
version: string;
|
|
2922
3424
|
generated_at: string;
|
|
2923
3425
|
framework: {
|
|
3426
|
+
version: string;
|
|
2924
3427
|
evidence: string[];
|
|
2925
3428
|
kind: string;
|
|
2926
|
-
version: string;
|
|
2927
3429
|
subkind: string;
|
|
2928
3430
|
};
|
|
2929
|
-
version: string;
|
|
2930
3431
|
generated_by: string;
|
|
2931
3432
|
target: string;
|
|
2932
3433
|
project_name: string;
|
|
@@ -2981,14 +3482,14 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2981
3482
|
};
|
|
2982
3483
|
recommendations_for_skill?: string[] | undefined;
|
|
2983
3484
|
}, {
|
|
3485
|
+
version: string;
|
|
2984
3486
|
generated_at: string;
|
|
2985
3487
|
framework: {
|
|
3488
|
+
version: string;
|
|
2986
3489
|
evidence: string[];
|
|
2987
3490
|
kind: string;
|
|
2988
|
-
version: string;
|
|
2989
3491
|
subkind: string;
|
|
2990
3492
|
};
|
|
2991
|
-
version: string;
|
|
2992
3493
|
generated_by: string;
|
|
2993
3494
|
target: string;
|
|
2994
3495
|
project_name: string;
|
|
@@ -3046,14 +3547,14 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
3046
3547
|
}, "strip", z.ZodTypeAny, {
|
|
3047
3548
|
type: "drift:detected";
|
|
3048
3549
|
payload: {
|
|
3550
|
+
version: string;
|
|
3049
3551
|
generated_at: string;
|
|
3050
3552
|
framework: {
|
|
3553
|
+
version: string;
|
|
3051
3554
|
evidence: string[];
|
|
3052
3555
|
kind: string;
|
|
3053
|
-
version: string;
|
|
3054
3556
|
subkind: string;
|
|
3055
3557
|
};
|
|
3056
|
-
version: string;
|
|
3057
3558
|
generated_by: string;
|
|
3058
3559
|
target: string;
|
|
3059
3560
|
project_name: string;
|
|
@@ -3111,14 +3612,14 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
3111
3612
|
}, {
|
|
3112
3613
|
type: "drift:detected";
|
|
3113
3614
|
payload: {
|
|
3615
|
+
version: string;
|
|
3114
3616
|
generated_at: string;
|
|
3115
3617
|
framework: {
|
|
3618
|
+
version: string;
|
|
3116
3619
|
evidence: string[];
|
|
3117
3620
|
kind: string;
|
|
3118
|
-
version: string;
|
|
3119
3621
|
subkind: string;
|
|
3120
3622
|
};
|
|
3121
|
-
version: string;
|
|
3122
3623
|
generated_by: string;
|
|
3123
3624
|
target: string;
|
|
3124
3625
|
project_name: string;
|
|
@@ -3182,11 +3683,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3182
3683
|
file: z.ZodString;
|
|
3183
3684
|
content_ref: z.ZodOptional<z.ZodString>;
|
|
3184
3685
|
scope_glob: z.ZodString;
|
|
3185
|
-
deps: z.ZodArray<z.ZodString, "many">;
|
|
3186
|
-
priority: z.ZodEnum<["high", "medium", "low"]>;
|
|
3187
|
-
level: z.ZodOptional<z.ZodEnum<["L0", "L1", "L2"]>>;
|
|
3188
|
-
layer: z.ZodEnum<["L0", "L1", "L2"]>;
|
|
3189
|
-
topology_type: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
|
|
3190
3686
|
hash: z.ZodString;
|
|
3191
3687
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
3192
3688
|
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
@@ -3214,7 +3710,11 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3214
3710
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
3215
3711
|
created_at: z.ZodOptional<z.ZodString>;
|
|
3216
3712
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
3713
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
3714
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3217
3715
|
}, "strict", z.ZodTypeAny, {
|
|
3716
|
+
relevance_scope: "narrow" | "broad";
|
|
3717
|
+
relevance_paths: string[];
|
|
3218
3718
|
summary: string;
|
|
3219
3719
|
intent_clues: string[];
|
|
3220
3720
|
tech_stack: string[];
|
|
@@ -3234,6 +3734,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3234
3734
|
tech_stack: string[];
|
|
3235
3735
|
impact: string[];
|
|
3236
3736
|
must_read_if: string;
|
|
3737
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3738
|
+
relevance_paths?: string[] | undefined;
|
|
3237
3739
|
entities?: string[] | undefined;
|
|
3238
3740
|
id?: string | undefined;
|
|
3239
3741
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -3244,15 +3746,42 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3244
3746
|
tags?: string[] | undefined;
|
|
3245
3747
|
}>>;
|
|
3246
3748
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3247
|
-
}, "
|
|
3248
|
-
file:
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3749
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3750
|
+
file: z.ZodString;
|
|
3751
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
3752
|
+
scope_glob: z.ZodString;
|
|
3753
|
+
hash: z.ZodString;
|
|
3754
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
3755
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
3756
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
3757
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
3758
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3759
|
+
}, "strip", z.ZodTypeAny, {
|
|
3760
|
+
tier: "always" | "path" | "description";
|
|
3761
|
+
description?: string | undefined;
|
|
3762
|
+
}, {
|
|
3763
|
+
tier: "always" | "path" | "description";
|
|
3764
|
+
description?: string | undefined;
|
|
3765
|
+
}>>;
|
|
3766
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
3767
|
+
summary: z.ZodString;
|
|
3768
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
3769
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
3770
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
3771
|
+
must_read_if: z.ZodString;
|
|
3772
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3773
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3774
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
3775
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
3776
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
3777
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
3778
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
3779
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
3780
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
3781
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3782
|
+
}, "strict", z.ZodTypeAny, {
|
|
3783
|
+
relevance_scope: "narrow" | "broad";
|
|
3784
|
+
relevance_paths: string[];
|
|
3256
3785
|
summary: string;
|
|
3257
3786
|
intent_clues: string[];
|
|
3258
3787
|
tech_stack: string[];
|
|
@@ -3266,30 +3795,14 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3266
3795
|
layer_reason?: string | undefined;
|
|
3267
3796
|
created_at?: string | undefined;
|
|
3268
3797
|
tags?: string[] | undefined;
|
|
3269
|
-
}
|
|
3270
|
-
stable_id?: string | undefined;
|
|
3271
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
3272
|
-
sections?: string[] | undefined;
|
|
3273
|
-
content_ref?: string | undefined;
|
|
3274
|
-
identity_source?: "declared" | "derived" | undefined;
|
|
3275
|
-
activation?: {
|
|
3276
|
-
tier: "always" | "path" | "description";
|
|
3277
|
-
description?: string | undefined;
|
|
3278
|
-
} | undefined;
|
|
3279
|
-
}, {
|
|
3280
|
-
file: string;
|
|
3281
|
-
priority: "high" | "medium" | "low";
|
|
3282
|
-
hash: string;
|
|
3283
|
-
layer: "L0" | "L1" | "L2";
|
|
3284
|
-
topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
|
|
3285
|
-
scope_glob: string;
|
|
3286
|
-
deps: string[];
|
|
3287
|
-
description?: {
|
|
3798
|
+
}, {
|
|
3288
3799
|
summary: string;
|
|
3289
3800
|
intent_clues: string[];
|
|
3290
3801
|
tech_stack: string[];
|
|
3291
3802
|
impact: string[];
|
|
3292
3803
|
must_read_if: string;
|
|
3804
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3805
|
+
relevance_paths?: string[] | undefined;
|
|
3293
3806
|
entities?: string[] | undefined;
|
|
3294
3807
|
id?: string | undefined;
|
|
3295
3808
|
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
@@ -3298,28 +3811,47 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3298
3811
|
layer_reason?: string | undefined;
|
|
3299
3812
|
created_at?: string | undefined;
|
|
3300
3813
|
tags?: string[] | undefined;
|
|
3301
|
-
}
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
content_ref
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3814
|
+
}>>;
|
|
3815
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3816
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3817
|
+
file: z.ZodString;
|
|
3818
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
3819
|
+
scope_glob: z.ZodString;
|
|
3820
|
+
hash: z.ZodString;
|
|
3821
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
3822
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
3823
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
3824
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
3825
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3826
|
+
}, "strip", z.ZodTypeAny, {
|
|
3827
|
+
tier: "always" | "path" | "description";
|
|
3828
|
+
description?: string | undefined;
|
|
3829
|
+
}, {
|
|
3830
|
+
tier: "always" | "path" | "description";
|
|
3831
|
+
description?: string | undefined;
|
|
3832
|
+
}>>;
|
|
3833
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
3834
|
+
summary: z.ZodString;
|
|
3835
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
3836
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
3837
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
3838
|
+
must_read_if: z.ZodString;
|
|
3839
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3840
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3841
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
3842
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
3843
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
3844
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
3845
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
3846
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
3847
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
3848
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3849
|
+
}, "strict", z.ZodTypeAny, {
|
|
3850
|
+
relevance_scope: "narrow" | "broad";
|
|
3851
|
+
relevance_paths: string[];
|
|
3852
|
+
summary: string;
|
|
3853
|
+
intent_clues: string[];
|
|
3854
|
+
tech_stack: string[];
|
|
3323
3855
|
impact: string[];
|
|
3324
3856
|
must_read_if: string;
|
|
3325
3857
|
entities?: string[] | undefined;
|
|
@@ -3330,17 +3862,92 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3330
3862
|
layer_reason?: string | undefined;
|
|
3331
3863
|
created_at?: string | undefined;
|
|
3332
3864
|
tags?: string[] | undefined;
|
|
3333
|
-
}
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3865
|
+
}, {
|
|
3866
|
+
summary: string;
|
|
3867
|
+
intent_clues: string[];
|
|
3868
|
+
tech_stack: string[];
|
|
3869
|
+
impact: string[];
|
|
3870
|
+
must_read_if: string;
|
|
3871
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3872
|
+
relevance_paths?: string[] | undefined;
|
|
3873
|
+
entities?: string[] | undefined;
|
|
3874
|
+
id?: string | undefined;
|
|
3875
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3876
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3877
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3878
|
+
layer_reason?: string | undefined;
|
|
3879
|
+
created_at?: string | undefined;
|
|
3880
|
+
tags?: string[] | undefined;
|
|
3881
|
+
}>>;
|
|
3882
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3883
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
3884
|
+
file: z.ZodString;
|
|
3885
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
3886
|
+
scope_glob: z.ZodString;
|
|
3887
|
+
hash: z.ZodString;
|
|
3888
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
3889
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
3890
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
3891
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
3892
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3893
|
+
}, "strip", z.ZodTypeAny, {
|
|
3340
3894
|
tier: "always" | "path" | "description";
|
|
3341
3895
|
description?: string | undefined;
|
|
3342
|
-
}
|
|
3343
|
-
|
|
3896
|
+
}, {
|
|
3897
|
+
tier: "always" | "path" | "description";
|
|
3898
|
+
description?: string | undefined;
|
|
3899
|
+
}>>;
|
|
3900
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
3901
|
+
summary: z.ZodString;
|
|
3902
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
3903
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
3904
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
3905
|
+
must_read_if: z.ZodString;
|
|
3906
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3907
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3908
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
3909
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
3910
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
3911
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
3912
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
3913
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
3914
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
3915
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3916
|
+
}, "strict", z.ZodTypeAny, {
|
|
3917
|
+
relevance_scope: "narrow" | "broad";
|
|
3918
|
+
relevance_paths: string[];
|
|
3919
|
+
summary: string;
|
|
3920
|
+
intent_clues: string[];
|
|
3921
|
+
tech_stack: string[];
|
|
3922
|
+
impact: string[];
|
|
3923
|
+
must_read_if: string;
|
|
3924
|
+
entities?: string[] | undefined;
|
|
3925
|
+
id?: string | undefined;
|
|
3926
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3927
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3928
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3929
|
+
layer_reason?: string | undefined;
|
|
3930
|
+
created_at?: string | undefined;
|
|
3931
|
+
tags?: string[] | undefined;
|
|
3932
|
+
}, {
|
|
3933
|
+
summary: string;
|
|
3934
|
+
intent_clues: string[];
|
|
3935
|
+
tech_stack: string[];
|
|
3936
|
+
impact: string[];
|
|
3937
|
+
must_read_if: string;
|
|
3938
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3939
|
+
relevance_paths?: string[] | undefined;
|
|
3940
|
+
entities?: string[] | undefined;
|
|
3941
|
+
id?: string | undefined;
|
|
3942
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3943
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3944
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3945
|
+
layer_reason?: string | undefined;
|
|
3946
|
+
created_at?: string | undefined;
|
|
3947
|
+
tags?: string[] | undefined;
|
|
3948
|
+
}>>;
|
|
3949
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3950
|
+
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
3344
3951
|
counters: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
3345
3952
|
KP: z.ZodDefault<z.ZodObject<{
|
|
3346
3953
|
MOD: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3413,15 +4020,42 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3413
4020
|
}>>>;
|
|
3414
4021
|
}, "strip", z.ZodTypeAny, {
|
|
3415
4022
|
revision: string;
|
|
3416
|
-
nodes: Record<string, {
|
|
3417
|
-
file:
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
4023
|
+
nodes: Record<string, z.objectOutputType<{
|
|
4024
|
+
file: z.ZodString;
|
|
4025
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
4026
|
+
scope_glob: z.ZodString;
|
|
4027
|
+
hash: z.ZodString;
|
|
4028
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
4029
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
4030
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
4031
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
4032
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4033
|
+
}, "strip", z.ZodTypeAny, {
|
|
4034
|
+
tier: "always" | "path" | "description";
|
|
4035
|
+
description?: string | undefined;
|
|
4036
|
+
}, {
|
|
4037
|
+
tier: "always" | "path" | "description";
|
|
4038
|
+
description?: string | undefined;
|
|
4039
|
+
}>>;
|
|
4040
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
4041
|
+
summary: z.ZodString;
|
|
4042
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
4043
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
4044
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
4045
|
+
must_read_if: z.ZodString;
|
|
4046
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4047
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4048
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
4049
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
4050
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
4051
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
4052
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
4053
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4054
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4055
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4056
|
+
}, "strict", z.ZodTypeAny, {
|
|
4057
|
+
relevance_scope: "narrow" | "broad";
|
|
4058
|
+
relevance_paths: string[];
|
|
3425
4059
|
summary: string;
|
|
3426
4060
|
intent_clues: string[];
|
|
3427
4061
|
tech_stack: string[];
|
|
@@ -3435,17 +4069,25 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3435
4069
|
layer_reason?: string | undefined;
|
|
3436
4070
|
created_at?: string | undefined;
|
|
3437
4071
|
tags?: string[] | undefined;
|
|
3438
|
-
}
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
4072
|
+
}, {
|
|
4073
|
+
summary: string;
|
|
4074
|
+
intent_clues: string[];
|
|
4075
|
+
tech_stack: string[];
|
|
4076
|
+
impact: string[];
|
|
4077
|
+
must_read_if: string;
|
|
4078
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
4079
|
+
relevance_paths?: string[] | undefined;
|
|
4080
|
+
entities?: string[] | undefined;
|
|
4081
|
+
id?: string | undefined;
|
|
4082
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
4083
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
4084
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
4085
|
+
layer_reason?: string | undefined;
|
|
4086
|
+
created_at?: string | undefined;
|
|
4087
|
+
tags?: string[] | undefined;
|
|
4088
|
+
}>>;
|
|
4089
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4090
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3449
4091
|
counters?: {
|
|
3450
4092
|
KP: {
|
|
3451
4093
|
MOD: number;
|
|
@@ -3486,15 +4128,42 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3486
4128
|
type: "meta:updated";
|
|
3487
4129
|
payload: {
|
|
3488
4130
|
revision: string;
|
|
3489
|
-
nodes: Record<string, {
|
|
3490
|
-
file:
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
4131
|
+
nodes: Record<string, z.objectOutputType<{
|
|
4132
|
+
file: z.ZodString;
|
|
4133
|
+
content_ref: z.ZodOptional<z.ZodString>;
|
|
4134
|
+
scope_glob: z.ZodString;
|
|
4135
|
+
hash: z.ZodString;
|
|
4136
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
4137
|
+
identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
|
|
4138
|
+
activation: z.ZodOptional<z.ZodObject<{
|
|
4139
|
+
tier: z.ZodEnum<["always", "path", "description"]>;
|
|
4140
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4141
|
+
}, "strip", z.ZodTypeAny, {
|
|
4142
|
+
tier: "always" | "path" | "description";
|
|
4143
|
+
description?: string | undefined;
|
|
4144
|
+
}, {
|
|
4145
|
+
tier: "always" | "path" | "description";
|
|
4146
|
+
description?: string | undefined;
|
|
4147
|
+
}>>;
|
|
4148
|
+
description: z.ZodOptional<z.ZodObject<{
|
|
4149
|
+
summary: z.ZodString;
|
|
4150
|
+
intent_clues: z.ZodArray<z.ZodString, "many">;
|
|
4151
|
+
tech_stack: z.ZodArray<z.ZodString, "many">;
|
|
4152
|
+
impact: z.ZodArray<z.ZodString, "many">;
|
|
4153
|
+
must_read_if: z.ZodString;
|
|
4154
|
+
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4155
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4156
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
4157
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
4158
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
4159
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
4160
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
4161
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4162
|
+
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4163
|
+
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4164
|
+
}, "strict", z.ZodTypeAny, {
|
|
4165
|
+
relevance_scope: "narrow" | "broad";
|
|
4166
|
+
relevance_paths: string[];
|
|
3498
4167
|
summary: string;
|
|
3499
4168
|
intent_clues: string[];
|
|
3500
4169
|
tech_stack: string[];
|
|
@@ -3508,17 +4177,25 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3508
4177
|
layer_reason?: string | undefined;
|
|
3509
4178
|
created_at?: string | undefined;
|
|
3510
4179
|
tags?: string[] | undefined;
|
|
3511
|
-
}
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
4180
|
+
}, {
|
|
4181
|
+
summary: string;
|
|
4182
|
+
intent_clues: string[];
|
|
4183
|
+
tech_stack: string[];
|
|
4184
|
+
impact: string[];
|
|
4185
|
+
must_read_if: string;
|
|
4186
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
4187
|
+
relevance_paths?: string[] | undefined;
|
|
4188
|
+
entities?: string[] | undefined;
|
|
4189
|
+
id?: string | undefined;
|
|
4190
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
4191
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
4192
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
4193
|
+
layer_reason?: string | undefined;
|
|
4194
|
+
created_at?: string | undefined;
|
|
4195
|
+
tags?: string[] | undefined;
|
|
4196
|
+
}>>;
|
|
4197
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4198
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3522
4199
|
counters?: {
|
|
3523
4200
|
KP: {
|
|
3524
4201
|
MOD: number;
|
|
@@ -3854,14 +4531,14 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3854
4531
|
subkind: z.ZodString;
|
|
3855
4532
|
evidence: z.ZodArray<z.ZodString, "many">;
|
|
3856
4533
|
}, "strip", z.ZodTypeAny, {
|
|
4534
|
+
version: string;
|
|
3857
4535
|
evidence: string[];
|
|
3858
4536
|
kind: string;
|
|
3859
|
-
version: string;
|
|
3860
4537
|
subkind: string;
|
|
3861
4538
|
}, {
|
|
4539
|
+
version: string;
|
|
3862
4540
|
evidence: string[];
|
|
3863
4541
|
kind: string;
|
|
3864
|
-
version: string;
|
|
3865
4542
|
subkind: string;
|
|
3866
4543
|
}>;
|
|
3867
4544
|
topology: z.ZodObject<{
|
|
@@ -4017,14 +4694,14 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4017
4694
|
}>;
|
|
4018
4695
|
recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4019
4696
|
}, "strip", z.ZodTypeAny, {
|
|
4697
|
+
version: string;
|
|
4020
4698
|
generated_at: string;
|
|
4021
4699
|
framework: {
|
|
4700
|
+
version: string;
|
|
4022
4701
|
evidence: string[];
|
|
4023
4702
|
kind: string;
|
|
4024
|
-
version: string;
|
|
4025
4703
|
subkind: string;
|
|
4026
4704
|
};
|
|
4027
|
-
version: string;
|
|
4028
4705
|
generated_by: string;
|
|
4029
4706
|
target: string;
|
|
4030
4707
|
project_name: string;
|
|
@@ -4079,14 +4756,14 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4079
4756
|
};
|
|
4080
4757
|
recommendations_for_skill?: string[] | undefined;
|
|
4081
4758
|
}, {
|
|
4759
|
+
version: string;
|
|
4082
4760
|
generated_at: string;
|
|
4083
4761
|
framework: {
|
|
4762
|
+
version: string;
|
|
4084
4763
|
evidence: string[];
|
|
4085
4764
|
kind: string;
|
|
4086
|
-
version: string;
|
|
4087
4765
|
subkind: string;
|
|
4088
4766
|
};
|
|
4089
|
-
version: string;
|
|
4090
4767
|
generated_by: string;
|
|
4091
4768
|
target: string;
|
|
4092
4769
|
project_name: string;
|
|
@@ -4144,14 +4821,14 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4144
4821
|
}, "strip", z.ZodTypeAny, {
|
|
4145
4822
|
type: "drift:detected";
|
|
4146
4823
|
payload: {
|
|
4824
|
+
version: string;
|
|
4147
4825
|
generated_at: string;
|
|
4148
4826
|
framework: {
|
|
4827
|
+
version: string;
|
|
4149
4828
|
evidence: string[];
|
|
4150
4829
|
kind: string;
|
|
4151
|
-
version: string;
|
|
4152
4830
|
subkind: string;
|
|
4153
4831
|
};
|
|
4154
|
-
version: string;
|
|
4155
4832
|
generated_by: string;
|
|
4156
4833
|
target: string;
|
|
4157
4834
|
project_name: string;
|
|
@@ -4209,14 +4886,14 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4209
4886
|
}, {
|
|
4210
4887
|
type: "drift:detected";
|
|
4211
4888
|
payload: {
|
|
4889
|
+
version: string;
|
|
4212
4890
|
generated_at: string;
|
|
4213
4891
|
framework: {
|
|
4892
|
+
version: string;
|
|
4214
4893
|
evidence: string[];
|
|
4215
4894
|
kind: string;
|
|
4216
|
-
version: string;
|
|
4217
4895
|
subkind: string;
|
|
4218
4896
|
};
|
|
4219
|
-
version: string;
|
|
4220
4897
|
generated_by: string;
|
|
4221
4898
|
target: string;
|
|
4222
4899
|
project_name: string;
|
|
@@ -4292,13 +4969,1216 @@ declare const knowledgeContextPlannedEventSchema: z.ZodObject<{
|
|
|
4292
4969
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4293
4970
|
}, "strip", z.ZodTypeAny, {
|
|
4294
4971
|
id: string;
|
|
4295
|
-
|
|
4296
|
-
|
|
4972
|
+
target_paths: string[];
|
|
4973
|
+
ts: number;
|
|
4974
|
+
schema_version: 1;
|
|
4975
|
+
kind: "fabric-event";
|
|
4976
|
+
event_type: "knowledge_context_planned";
|
|
4977
|
+
required_stable_ids: string[];
|
|
4978
|
+
ai_selectable_stable_ids: string[];
|
|
4979
|
+
final_stable_ids: string[];
|
|
4980
|
+
known_tech?: string[] | undefined;
|
|
4981
|
+
intent?: string | undefined;
|
|
4982
|
+
client_hash?: string | undefined;
|
|
4983
|
+
correlation_id?: string | undefined;
|
|
4984
|
+
session_id?: string | undefined;
|
|
4985
|
+
selection_token?: string | undefined;
|
|
4986
|
+
diagnostics?: unknown[] | undefined;
|
|
4987
|
+
}, {
|
|
4988
|
+
id: string;
|
|
4989
|
+
target_paths: string[];
|
|
4990
|
+
ts: number;
|
|
4991
|
+
schema_version: 1;
|
|
4992
|
+
kind: "fabric-event";
|
|
4993
|
+
event_type: "knowledge_context_planned";
|
|
4994
|
+
required_stable_ids: string[];
|
|
4995
|
+
ai_selectable_stable_ids: string[];
|
|
4996
|
+
final_stable_ids: string[];
|
|
4997
|
+
known_tech?: string[] | undefined;
|
|
4998
|
+
intent?: string | undefined;
|
|
4999
|
+
client_hash?: string | undefined;
|
|
5000
|
+
correlation_id?: string | undefined;
|
|
5001
|
+
session_id?: string | undefined;
|
|
5002
|
+
selection_token?: string | undefined;
|
|
5003
|
+
diagnostics?: unknown[] | undefined;
|
|
5004
|
+
}>;
|
|
5005
|
+
declare const knowledgeSelectionEventSchema: z.ZodObject<{
|
|
5006
|
+
event_type: z.ZodLiteral<"knowledge_selection">;
|
|
5007
|
+
selection_token: z.ZodString;
|
|
5008
|
+
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
5009
|
+
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5010
|
+
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5011
|
+
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5012
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5013
|
+
ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5014
|
+
rejected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5015
|
+
ignored_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5016
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5017
|
+
id: z.ZodString;
|
|
5018
|
+
ts: z.ZodNumber;
|
|
5019
|
+
schema_version: z.ZodLiteral<1>;
|
|
5020
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5021
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5022
|
+
}, "strip", z.ZodTypeAny, {
|
|
5023
|
+
id: string;
|
|
5024
|
+
target_paths: string[];
|
|
5025
|
+
selection_token: string;
|
|
5026
|
+
ai_selected_stable_ids: string[];
|
|
5027
|
+
ai_selection_reasons: Record<string, string>;
|
|
5028
|
+
ts: number;
|
|
5029
|
+
schema_version: 1;
|
|
5030
|
+
kind: "fabric-event";
|
|
5031
|
+
event_type: "knowledge_selection";
|
|
5032
|
+
required_stable_ids: string[];
|
|
5033
|
+
ai_selectable_stable_ids: string[];
|
|
5034
|
+
final_stable_ids: string[];
|
|
5035
|
+
rejected_stable_ids: string[];
|
|
5036
|
+
ignored_stable_ids: string[];
|
|
5037
|
+
correlation_id?: string | undefined;
|
|
5038
|
+
session_id?: string | undefined;
|
|
5039
|
+
}, {
|
|
5040
|
+
id: string;
|
|
5041
|
+
target_paths: string[];
|
|
5042
|
+
selection_token: string;
|
|
5043
|
+
ai_selected_stable_ids: string[];
|
|
5044
|
+
ai_selection_reasons: Record<string, string>;
|
|
5045
|
+
ts: number;
|
|
5046
|
+
schema_version: 1;
|
|
5047
|
+
kind: "fabric-event";
|
|
5048
|
+
event_type: "knowledge_selection";
|
|
5049
|
+
required_stable_ids: string[];
|
|
5050
|
+
ai_selectable_stable_ids: string[];
|
|
5051
|
+
final_stable_ids: string[];
|
|
5052
|
+
rejected_stable_ids: string[];
|
|
5053
|
+
ignored_stable_ids: string[];
|
|
5054
|
+
correlation_id?: string | undefined;
|
|
5055
|
+
session_id?: string | undefined;
|
|
5056
|
+
}>;
|
|
5057
|
+
declare const knowledgeSectionsFetchedEventSchema: z.ZodObject<{
|
|
5058
|
+
event_type: z.ZodLiteral<"knowledge_sections_fetched">;
|
|
5059
|
+
selection_token: z.ZodString;
|
|
5060
|
+
target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5061
|
+
requested_sections: z.ZodArray<z.ZodString, "many">;
|
|
5062
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5063
|
+
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5064
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
5065
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5066
|
+
id: z.ZodString;
|
|
5067
|
+
ts: z.ZodNumber;
|
|
5068
|
+
schema_version: z.ZodLiteral<1>;
|
|
5069
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5070
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5071
|
+
}, "strip", z.ZodTypeAny, {
|
|
5072
|
+
id: string;
|
|
5073
|
+
selection_token: string;
|
|
5074
|
+
ai_selected_stable_ids: string[];
|
|
5075
|
+
ts: number;
|
|
5076
|
+
schema_version: 1;
|
|
5077
|
+
kind: "fabric-event";
|
|
5078
|
+
event_type: "knowledge_sections_fetched";
|
|
5079
|
+
final_stable_ids: string[];
|
|
5080
|
+
requested_sections: string[];
|
|
5081
|
+
correlation_id?: string | undefined;
|
|
5082
|
+
session_id?: string | undefined;
|
|
5083
|
+
target_paths?: string[] | undefined;
|
|
5084
|
+
diagnostics?: unknown[] | undefined;
|
|
5085
|
+
}, {
|
|
5086
|
+
id: string;
|
|
5087
|
+
selection_token: string;
|
|
5088
|
+
ai_selected_stable_ids: string[];
|
|
5089
|
+
ts: number;
|
|
5090
|
+
schema_version: 1;
|
|
5091
|
+
kind: "fabric-event";
|
|
5092
|
+
event_type: "knowledge_sections_fetched";
|
|
5093
|
+
final_stable_ids: string[];
|
|
5094
|
+
requested_sections: string[];
|
|
5095
|
+
correlation_id?: string | undefined;
|
|
5096
|
+
session_id?: string | undefined;
|
|
5097
|
+
target_paths?: string[] | undefined;
|
|
5098
|
+
diagnostics?: unknown[] | undefined;
|
|
5099
|
+
}>;
|
|
5100
|
+
declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
5101
|
+
event_type: z.ZodLiteral<"edit_intent_checked">;
|
|
5102
|
+
path: z.ZodString;
|
|
5103
|
+
compliant: z.ZodBoolean;
|
|
5104
|
+
intent: z.ZodString;
|
|
5105
|
+
ledger_entry_id: z.ZodString;
|
|
5106
|
+
ledger_source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
|
|
5107
|
+
commit_sha: z.ZodOptional<z.ZodString>;
|
|
5108
|
+
parent_sha: z.ZodOptional<z.ZodString>;
|
|
5109
|
+
parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
|
|
5110
|
+
diff_stat: z.ZodOptional<z.ZodString>;
|
|
5111
|
+
annotation: z.ZodOptional<z.ZodString>;
|
|
5112
|
+
matched_rule_context_ts: z.ZodNullable<z.ZodNumber>;
|
|
5113
|
+
window_ms: z.ZodNumber;
|
|
5114
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5115
|
+
id: z.ZodString;
|
|
5116
|
+
ts: z.ZodNumber;
|
|
5117
|
+
schema_version: z.ZodLiteral<1>;
|
|
5118
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5119
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5120
|
+
}, "strip", z.ZodTypeAny, {
|
|
5121
|
+
path: string;
|
|
5122
|
+
id: string;
|
|
5123
|
+
intent: string;
|
|
5124
|
+
ts: number;
|
|
5125
|
+
ledger_entry_id: string;
|
|
5126
|
+
schema_version: 1;
|
|
5127
|
+
kind: "fabric-event";
|
|
5128
|
+
event_type: "edit_intent_checked";
|
|
5129
|
+
compliant: boolean;
|
|
5130
|
+
matched_rule_context_ts: number | null;
|
|
5131
|
+
window_ms: number;
|
|
5132
|
+
correlation_id?: string | undefined;
|
|
5133
|
+
session_id?: string | undefined;
|
|
5134
|
+
annotation?: string | undefined;
|
|
5135
|
+
commit_sha?: string | undefined;
|
|
5136
|
+
parent_sha?: string | undefined;
|
|
5137
|
+
parent_ledger_entry_id?: string | undefined;
|
|
5138
|
+
diff_stat?: string | undefined;
|
|
5139
|
+
ledger_source?: "ai" | "human" | undefined;
|
|
5140
|
+
}, {
|
|
5141
|
+
path: string;
|
|
5142
|
+
id: string;
|
|
5143
|
+
intent: string;
|
|
5144
|
+
ts: number;
|
|
5145
|
+
ledger_entry_id: string;
|
|
5146
|
+
schema_version: 1;
|
|
5147
|
+
kind: "fabric-event";
|
|
5148
|
+
event_type: "edit_intent_checked";
|
|
5149
|
+
compliant: boolean;
|
|
5150
|
+
matched_rule_context_ts: number | null;
|
|
5151
|
+
window_ms: number;
|
|
5152
|
+
correlation_id?: string | undefined;
|
|
5153
|
+
session_id?: string | undefined;
|
|
5154
|
+
annotation?: string | undefined;
|
|
5155
|
+
commit_sha?: string | undefined;
|
|
5156
|
+
parent_sha?: string | undefined;
|
|
5157
|
+
parent_ledger_entry_id?: string | undefined;
|
|
5158
|
+
diff_stat?: string | undefined;
|
|
5159
|
+
ledger_source?: "ai" | "human" | undefined;
|
|
5160
|
+
}>;
|
|
5161
|
+
declare const knowledgeDriftDetectedEventSchema: z.ZodObject<{
|
|
5162
|
+
event_type: z.ZodLiteral<"knowledge_drift_detected">;
|
|
5163
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
5164
|
+
drifted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5165
|
+
missing_files: z.ZodArray<z.ZodString, "many">;
|
|
5166
|
+
stale_files: z.ZodArray<z.ZodString, "many">;
|
|
5167
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5168
|
+
file: z.ZodString;
|
|
5169
|
+
stable_id: z.ZodString;
|
|
5170
|
+
expected_hash: z.ZodString;
|
|
5171
|
+
actual_hash: z.ZodNullable<z.ZodString>;
|
|
5172
|
+
}, "strip", z.ZodTypeAny, {
|
|
5173
|
+
file: string;
|
|
5174
|
+
stable_id: string;
|
|
5175
|
+
expected_hash: string;
|
|
5176
|
+
actual_hash: string | null;
|
|
5177
|
+
}, {
|
|
5178
|
+
file: string;
|
|
5179
|
+
stable_id: string;
|
|
5180
|
+
expected_hash: string;
|
|
5181
|
+
actual_hash: string | null;
|
|
5182
|
+
}>, "many">>;
|
|
5183
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5184
|
+
id: z.ZodString;
|
|
5185
|
+
ts: z.ZodNumber;
|
|
5186
|
+
schema_version: z.ZodLiteral<1>;
|
|
5187
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5188
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5189
|
+
}, "strip", z.ZodTypeAny, {
|
|
5190
|
+
id: string;
|
|
5191
|
+
ts: number;
|
|
5192
|
+
schema_version: 1;
|
|
5193
|
+
kind: "fabric-event";
|
|
5194
|
+
event_type: "knowledge_drift_detected";
|
|
5195
|
+
drifted_stable_ids: string[];
|
|
5196
|
+
missing_files: string[];
|
|
5197
|
+
stale_files: string[];
|
|
5198
|
+
correlation_id?: string | undefined;
|
|
5199
|
+
session_id?: string | undefined;
|
|
5200
|
+
revision?: string | undefined;
|
|
5201
|
+
details?: {
|
|
5202
|
+
file: string;
|
|
5203
|
+
stable_id: string;
|
|
5204
|
+
expected_hash: string;
|
|
5205
|
+
actual_hash: string | null;
|
|
5206
|
+
}[] | undefined;
|
|
5207
|
+
}, {
|
|
5208
|
+
id: string;
|
|
5209
|
+
ts: number;
|
|
5210
|
+
schema_version: 1;
|
|
5211
|
+
kind: "fabric-event";
|
|
5212
|
+
event_type: "knowledge_drift_detected";
|
|
5213
|
+
drifted_stable_ids: string[];
|
|
5214
|
+
missing_files: string[];
|
|
5215
|
+
stale_files: string[];
|
|
5216
|
+
correlation_id?: string | undefined;
|
|
5217
|
+
session_id?: string | undefined;
|
|
5218
|
+
revision?: string | undefined;
|
|
5219
|
+
details?: {
|
|
5220
|
+
file: string;
|
|
5221
|
+
stable_id: string;
|
|
5222
|
+
expected_hash: string;
|
|
5223
|
+
actual_hash: string | null;
|
|
5224
|
+
}[] | undefined;
|
|
5225
|
+
}>;
|
|
5226
|
+
declare const mcpEventLedgerEventSchema: z.ZodObject<{
|
|
5227
|
+
event_type: z.ZodLiteral<"mcp_event">;
|
|
5228
|
+
mcp_event_id: z.ZodString;
|
|
5229
|
+
stream_id: z.ZodString;
|
|
5230
|
+
message: z.ZodUnknown;
|
|
5231
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5232
|
+
id: z.ZodString;
|
|
5233
|
+
ts: z.ZodNumber;
|
|
5234
|
+
schema_version: z.ZodLiteral<1>;
|
|
5235
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5236
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5237
|
+
}, "strip", z.ZodTypeAny, {
|
|
5238
|
+
id: string;
|
|
5239
|
+
ts: number;
|
|
5240
|
+
schema_version: 1;
|
|
5241
|
+
kind: "fabric-event";
|
|
5242
|
+
event_type: "mcp_event";
|
|
5243
|
+
mcp_event_id: string;
|
|
5244
|
+
stream_id: string;
|
|
5245
|
+
message?: unknown;
|
|
5246
|
+
correlation_id?: string | undefined;
|
|
5247
|
+
session_id?: string | undefined;
|
|
5248
|
+
}, {
|
|
5249
|
+
id: string;
|
|
5250
|
+
ts: number;
|
|
5251
|
+
schema_version: 1;
|
|
5252
|
+
kind: "fabric-event";
|
|
5253
|
+
event_type: "mcp_event";
|
|
5254
|
+
mcp_event_id: string;
|
|
5255
|
+
stream_id: string;
|
|
5256
|
+
message?: unknown;
|
|
5257
|
+
correlation_id?: string | undefined;
|
|
5258
|
+
session_id?: string | undefined;
|
|
5259
|
+
}>;
|
|
5260
|
+
declare const reapplyCompletedEventSchema: z.ZodObject<{
|
|
5261
|
+
event_type: z.ZodLiteral<"reapply_completed">;
|
|
5262
|
+
preserved_ledger: z.ZodBoolean;
|
|
5263
|
+
preserved_meta: z.ZodBoolean;
|
|
5264
|
+
rules_count: z.ZodNumber;
|
|
5265
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5266
|
+
id: z.ZodString;
|
|
5267
|
+
ts: z.ZodNumber;
|
|
5268
|
+
schema_version: z.ZodLiteral<1>;
|
|
5269
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5270
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5271
|
+
}, "strip", z.ZodTypeAny, {
|
|
5272
|
+
id: string;
|
|
5273
|
+
ts: number;
|
|
5274
|
+
schema_version: 1;
|
|
5275
|
+
kind: "fabric-event";
|
|
5276
|
+
event_type: "reapply_completed";
|
|
5277
|
+
preserved_ledger: boolean;
|
|
5278
|
+
preserved_meta: boolean;
|
|
5279
|
+
rules_count: number;
|
|
5280
|
+
correlation_id?: string | undefined;
|
|
5281
|
+
session_id?: string | undefined;
|
|
5282
|
+
}, {
|
|
5283
|
+
id: string;
|
|
5284
|
+
ts: number;
|
|
5285
|
+
schema_version: 1;
|
|
5286
|
+
kind: "fabric-event";
|
|
5287
|
+
event_type: "reapply_completed";
|
|
5288
|
+
preserved_ledger: boolean;
|
|
5289
|
+
preserved_meta: boolean;
|
|
5290
|
+
rules_count: number;
|
|
5291
|
+
correlation_id?: string | undefined;
|
|
5292
|
+
session_id?: string | undefined;
|
|
5293
|
+
}>;
|
|
5294
|
+
declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
|
|
5295
|
+
event_type: z.ZodLiteral<"event_ledger_truncated">;
|
|
5296
|
+
byte_offset: z.ZodNumber;
|
|
5297
|
+
byte_length: z.ZodNumber;
|
|
5298
|
+
corrupted_path: z.ZodString;
|
|
5299
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5300
|
+
id: z.ZodString;
|
|
5301
|
+
ts: z.ZodNumber;
|
|
5302
|
+
schema_version: z.ZodLiteral<1>;
|
|
5303
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5304
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5305
|
+
}, "strip", z.ZodTypeAny, {
|
|
5306
|
+
id: string;
|
|
5307
|
+
ts: number;
|
|
5308
|
+
schema_version: 1;
|
|
5309
|
+
kind: "fabric-event";
|
|
5310
|
+
event_type: "event_ledger_truncated";
|
|
5311
|
+
byte_offset: number;
|
|
5312
|
+
byte_length: number;
|
|
5313
|
+
corrupted_path: string;
|
|
5314
|
+
correlation_id?: string | undefined;
|
|
5315
|
+
session_id?: string | undefined;
|
|
5316
|
+
}, {
|
|
5317
|
+
id: string;
|
|
5318
|
+
ts: number;
|
|
5319
|
+
schema_version: 1;
|
|
5320
|
+
kind: "fabric-event";
|
|
5321
|
+
event_type: "event_ledger_truncated";
|
|
5322
|
+
byte_offset: number;
|
|
5323
|
+
byte_length: number;
|
|
5324
|
+
corrupted_path: string;
|
|
5325
|
+
correlation_id?: string | undefined;
|
|
5326
|
+
session_id?: string | undefined;
|
|
5327
|
+
}>;
|
|
5328
|
+
declare const mcpConfigMigratedEventSchema: z.ZodObject<{
|
|
5329
|
+
event_type: z.ZodLiteral<"mcp_config_migrated">;
|
|
5330
|
+
source: z.ZodLiteral<"doctor_fix">;
|
|
5331
|
+
removed_from: z.ZodString;
|
|
5332
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5333
|
+
id: z.ZodString;
|
|
5334
|
+
ts: z.ZodNumber;
|
|
5335
|
+
schema_version: z.ZodLiteral<1>;
|
|
5336
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5337
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5338
|
+
}, "strip", z.ZodTypeAny, {
|
|
5339
|
+
id: string;
|
|
5340
|
+
source: "doctor_fix";
|
|
5341
|
+
ts: number;
|
|
5342
|
+
schema_version: 1;
|
|
5343
|
+
kind: "fabric-event";
|
|
5344
|
+
event_type: "mcp_config_migrated";
|
|
5345
|
+
removed_from: string;
|
|
5346
|
+
correlation_id?: string | undefined;
|
|
5347
|
+
session_id?: string | undefined;
|
|
5348
|
+
}, {
|
|
5349
|
+
id: string;
|
|
5350
|
+
source: "doctor_fix";
|
|
5351
|
+
ts: number;
|
|
5352
|
+
schema_version: 1;
|
|
5353
|
+
kind: "fabric-event";
|
|
5354
|
+
event_type: "mcp_config_migrated";
|
|
5355
|
+
removed_from: string;
|
|
5356
|
+
correlation_id?: string | undefined;
|
|
5357
|
+
session_id?: string | undefined;
|
|
5358
|
+
}>;
|
|
5359
|
+
declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
5360
|
+
event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
|
|
5361
|
+
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
5362
|
+
duration_ms: z.ZodNumber;
|
|
5363
|
+
source: z.ZodLiteral<"reconcileKnowledge">;
|
|
5364
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5365
|
+
id: z.ZodString;
|
|
5366
|
+
ts: z.ZodNumber;
|
|
5367
|
+
schema_version: z.ZodLiteral<1>;
|
|
5368
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5369
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5370
|
+
}, "strip", z.ZodTypeAny, {
|
|
5371
|
+
id: string;
|
|
5372
|
+
source: "reconcileKnowledge";
|
|
5373
|
+
ts: number;
|
|
5374
|
+
schema_version: 1;
|
|
5375
|
+
kind: "fabric-event";
|
|
5376
|
+
event_type: "meta_reconciled_on_startup";
|
|
5377
|
+
reconciled_files: string[];
|
|
5378
|
+
duration_ms: number;
|
|
5379
|
+
correlation_id?: string | undefined;
|
|
5380
|
+
session_id?: string | undefined;
|
|
5381
|
+
}, {
|
|
5382
|
+
id: string;
|
|
5383
|
+
source: "reconcileKnowledge";
|
|
5384
|
+
ts: number;
|
|
5385
|
+
schema_version: 1;
|
|
5386
|
+
kind: "fabric-event";
|
|
5387
|
+
event_type: "meta_reconciled_on_startup";
|
|
5388
|
+
reconciled_files: string[];
|
|
5389
|
+
duration_ms: number;
|
|
5390
|
+
correlation_id?: string | undefined;
|
|
5391
|
+
session_id?: string | undefined;
|
|
5392
|
+
}>;
|
|
5393
|
+
declare const metaReconciledEventSchema: z.ZodObject<{
|
|
5394
|
+
event_type: z.ZodLiteral<"meta_reconciled">;
|
|
5395
|
+
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
5396
|
+
duration_ms: z.ZodNumber;
|
|
5397
|
+
trigger: z.ZodEnum<["doctor", "manual"]>;
|
|
5398
|
+
source: z.ZodLiteral<"reconcileKnowledge">;
|
|
5399
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5400
|
+
id: z.ZodString;
|
|
5401
|
+
ts: z.ZodNumber;
|
|
5402
|
+
schema_version: z.ZodLiteral<1>;
|
|
5403
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5404
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5405
|
+
}, "strip", z.ZodTypeAny, {
|
|
5406
|
+
id: string;
|
|
5407
|
+
source: "reconcileKnowledge";
|
|
5408
|
+
ts: number;
|
|
5409
|
+
schema_version: 1;
|
|
5410
|
+
kind: "fabric-event";
|
|
5411
|
+
event_type: "meta_reconciled";
|
|
5412
|
+
reconciled_files: string[];
|
|
5413
|
+
duration_ms: number;
|
|
5414
|
+
trigger: "manual" | "doctor";
|
|
5415
|
+
correlation_id?: string | undefined;
|
|
5416
|
+
session_id?: string | undefined;
|
|
5417
|
+
}, {
|
|
5418
|
+
id: string;
|
|
5419
|
+
source: "reconcileKnowledge";
|
|
5420
|
+
ts: number;
|
|
5421
|
+
schema_version: 1;
|
|
5422
|
+
kind: "fabric-event";
|
|
5423
|
+
event_type: "meta_reconciled";
|
|
5424
|
+
reconciled_files: string[];
|
|
5425
|
+
duration_ms: number;
|
|
5426
|
+
trigger: "manual" | "doctor";
|
|
5427
|
+
correlation_id?: string | undefined;
|
|
5428
|
+
session_id?: string | undefined;
|
|
5429
|
+
}>;
|
|
5430
|
+
declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
5431
|
+
event_type: z.ZodLiteral<"claude_skill_path_migrated">;
|
|
5432
|
+
from: z.ZodString;
|
|
5433
|
+
to: z.ZodString;
|
|
5434
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5435
|
+
id: z.ZodString;
|
|
5436
|
+
ts: z.ZodNumber;
|
|
5437
|
+
schema_version: z.ZodLiteral<1>;
|
|
5438
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5439
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5440
|
+
}, "strip", z.ZodTypeAny, {
|
|
5441
|
+
id: string;
|
|
5442
|
+
ts: number;
|
|
5443
|
+
schema_version: 1;
|
|
5444
|
+
kind: "fabric-event";
|
|
5445
|
+
event_type: "claude_skill_path_migrated";
|
|
5446
|
+
from: string;
|
|
5447
|
+
to: string;
|
|
5448
|
+
correlation_id?: string | undefined;
|
|
5449
|
+
session_id?: string | undefined;
|
|
5450
|
+
}, {
|
|
5451
|
+
id: string;
|
|
5452
|
+
ts: number;
|
|
5453
|
+
schema_version: 1;
|
|
5454
|
+
kind: "fabric-event";
|
|
5455
|
+
event_type: "claude_skill_path_migrated";
|
|
5456
|
+
from: string;
|
|
5457
|
+
to: string;
|
|
5458
|
+
correlation_id?: string | undefined;
|
|
5459
|
+
session_id?: string | undefined;
|
|
5460
|
+
}>;
|
|
5461
|
+
declare const claudeHookPathMigratedEventSchema: z.ZodObject<{
|
|
5462
|
+
event_type: z.ZodLiteral<"claude_hook_path_migrated">;
|
|
5463
|
+
from: z.ZodString;
|
|
5464
|
+
to: z.ZodString;
|
|
5465
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5466
|
+
id: z.ZodString;
|
|
5467
|
+
ts: z.ZodNumber;
|
|
5468
|
+
schema_version: z.ZodLiteral<1>;
|
|
5469
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5470
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5471
|
+
}, "strip", z.ZodTypeAny, {
|
|
5472
|
+
id: string;
|
|
5473
|
+
ts: number;
|
|
5474
|
+
schema_version: 1;
|
|
5475
|
+
kind: "fabric-event";
|
|
5476
|
+
event_type: "claude_hook_path_migrated";
|
|
5477
|
+
from: string;
|
|
5478
|
+
to: string;
|
|
5479
|
+
correlation_id?: string | undefined;
|
|
5480
|
+
session_id?: string | undefined;
|
|
5481
|
+
}, {
|
|
5482
|
+
id: string;
|
|
5483
|
+
ts: number;
|
|
5484
|
+
schema_version: 1;
|
|
5485
|
+
kind: "fabric-event";
|
|
5486
|
+
event_type: "claude_hook_path_migrated";
|
|
5487
|
+
from: string;
|
|
5488
|
+
to: string;
|
|
5489
|
+
correlation_id?: string | undefined;
|
|
5490
|
+
session_id?: string | undefined;
|
|
5491
|
+
}>;
|
|
5492
|
+
declare const codexSkillPathMigratedEventSchema: z.ZodObject<{
|
|
5493
|
+
event_type: z.ZodLiteral<"codex_skill_path_migrated">;
|
|
5494
|
+
from: z.ZodString;
|
|
5495
|
+
to: z.ZodString;
|
|
5496
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5497
|
+
id: z.ZodString;
|
|
5498
|
+
ts: z.ZodNumber;
|
|
5499
|
+
schema_version: z.ZodLiteral<1>;
|
|
5500
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5501
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5502
|
+
}, "strip", z.ZodTypeAny, {
|
|
5503
|
+
id: string;
|
|
5504
|
+
ts: number;
|
|
5505
|
+
schema_version: 1;
|
|
5506
|
+
kind: "fabric-event";
|
|
5507
|
+
event_type: "codex_skill_path_migrated";
|
|
5508
|
+
from: string;
|
|
5509
|
+
to: string;
|
|
5510
|
+
correlation_id?: string | undefined;
|
|
5511
|
+
session_id?: string | undefined;
|
|
5512
|
+
}, {
|
|
5513
|
+
id: string;
|
|
5514
|
+
ts: number;
|
|
5515
|
+
schema_version: 1;
|
|
5516
|
+
kind: "fabric-event";
|
|
5517
|
+
event_type: "codex_skill_path_migrated";
|
|
5518
|
+
from: string;
|
|
5519
|
+
to: string;
|
|
5520
|
+
correlation_id?: string | undefined;
|
|
5521
|
+
session_id?: string | undefined;
|
|
5522
|
+
}>;
|
|
5523
|
+
declare const initScanCompletedEventSchema: z.ZodObject<{
|
|
5524
|
+
event_type: z.ZodLiteral<"init_scan_completed">;
|
|
5525
|
+
written_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5526
|
+
duration_ms: z.ZodNumber;
|
|
5527
|
+
source: z.ZodOptional<z.ZodEnum<["init", "scan", "doctor_fix"]>>;
|
|
5528
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5529
|
+
id: z.ZodString;
|
|
5530
|
+
ts: z.ZodNumber;
|
|
5531
|
+
schema_version: z.ZodLiteral<1>;
|
|
5532
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5533
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5534
|
+
}, "strip", z.ZodTypeAny, {
|
|
5535
|
+
id: string;
|
|
5536
|
+
ts: number;
|
|
5537
|
+
schema_version: 1;
|
|
5538
|
+
kind: "fabric-event";
|
|
5539
|
+
event_type: "init_scan_completed";
|
|
5540
|
+
duration_ms: number;
|
|
5541
|
+
written_stable_ids: string[];
|
|
5542
|
+
correlation_id?: string | undefined;
|
|
5543
|
+
session_id?: string | undefined;
|
|
5544
|
+
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
5545
|
+
}, {
|
|
5546
|
+
id: string;
|
|
5547
|
+
ts: number;
|
|
5548
|
+
schema_version: 1;
|
|
5549
|
+
kind: "fabric-event";
|
|
5550
|
+
event_type: "init_scan_completed";
|
|
5551
|
+
duration_ms: number;
|
|
5552
|
+
written_stable_ids: string[];
|
|
5553
|
+
correlation_id?: string | undefined;
|
|
5554
|
+
session_id?: string | undefined;
|
|
5555
|
+
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
5556
|
+
}>;
|
|
5557
|
+
declare const knowledgeProposedEventSchema: z.ZodObject<{
|
|
5558
|
+
event_type: z.ZodLiteral<"knowledge_proposed">;
|
|
5559
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5560
|
+
timestamp: z.ZodString;
|
|
5561
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5562
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5563
|
+
id: z.ZodString;
|
|
5564
|
+
ts: z.ZodNumber;
|
|
5565
|
+
schema_version: z.ZodLiteral<1>;
|
|
5566
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5567
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5568
|
+
}, "strip", z.ZodTypeAny, {
|
|
5569
|
+
id: string;
|
|
5570
|
+
ts: number;
|
|
5571
|
+
schema_version: 1;
|
|
5572
|
+
kind: "fabric-event";
|
|
5573
|
+
event_type: "knowledge_proposed";
|
|
5574
|
+
timestamp: string;
|
|
5575
|
+
stable_id?: string | undefined;
|
|
5576
|
+
correlation_id?: string | undefined;
|
|
5577
|
+
session_id?: string | undefined;
|
|
5578
|
+
reason?: string | undefined;
|
|
5579
|
+
}, {
|
|
5580
|
+
id: string;
|
|
5581
|
+
ts: number;
|
|
5582
|
+
schema_version: 1;
|
|
5583
|
+
kind: "fabric-event";
|
|
5584
|
+
event_type: "knowledge_proposed";
|
|
5585
|
+
timestamp: string;
|
|
5586
|
+
stable_id?: string | undefined;
|
|
5587
|
+
correlation_id?: string | undefined;
|
|
5588
|
+
session_id?: string | undefined;
|
|
5589
|
+
reason?: string | undefined;
|
|
5590
|
+
}>;
|
|
5591
|
+
declare const knowledgePromoteStartedEventSchema: z.ZodObject<{
|
|
5592
|
+
event_type: z.ZodLiteral<"knowledge_promote_started">;
|
|
5593
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5594
|
+
timestamp: z.ZodString;
|
|
5595
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5596
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5597
|
+
id: z.ZodString;
|
|
5598
|
+
ts: z.ZodNumber;
|
|
5599
|
+
schema_version: z.ZodLiteral<1>;
|
|
5600
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5601
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5602
|
+
}, "strip", z.ZodTypeAny, {
|
|
5603
|
+
id: string;
|
|
5604
|
+
ts: number;
|
|
5605
|
+
schema_version: 1;
|
|
5606
|
+
kind: "fabric-event";
|
|
5607
|
+
event_type: "knowledge_promote_started";
|
|
5608
|
+
timestamp: string;
|
|
5609
|
+
stable_id?: string | undefined;
|
|
5610
|
+
correlation_id?: string | undefined;
|
|
5611
|
+
session_id?: string | undefined;
|
|
5612
|
+
reason?: string | undefined;
|
|
5613
|
+
}, {
|
|
5614
|
+
id: string;
|
|
5615
|
+
ts: number;
|
|
5616
|
+
schema_version: 1;
|
|
5617
|
+
kind: "fabric-event";
|
|
5618
|
+
event_type: "knowledge_promote_started";
|
|
5619
|
+
timestamp: string;
|
|
5620
|
+
stable_id?: string | undefined;
|
|
5621
|
+
correlation_id?: string | undefined;
|
|
5622
|
+
session_id?: string | undefined;
|
|
5623
|
+
reason?: string | undefined;
|
|
5624
|
+
}>;
|
|
5625
|
+
declare const knowledgePromotedEventSchema: z.ZodObject<{
|
|
5626
|
+
event_type: z.ZodLiteral<"knowledge_promoted">;
|
|
5627
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5628
|
+
timestamp: z.ZodString;
|
|
5629
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5630
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5631
|
+
id: z.ZodString;
|
|
5632
|
+
ts: z.ZodNumber;
|
|
5633
|
+
schema_version: z.ZodLiteral<1>;
|
|
5634
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5635
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5636
|
+
}, "strip", z.ZodTypeAny, {
|
|
5637
|
+
id: string;
|
|
5638
|
+
ts: number;
|
|
5639
|
+
schema_version: 1;
|
|
5640
|
+
kind: "fabric-event";
|
|
5641
|
+
event_type: "knowledge_promoted";
|
|
5642
|
+
timestamp: string;
|
|
5643
|
+
stable_id?: string | undefined;
|
|
5644
|
+
correlation_id?: string | undefined;
|
|
5645
|
+
session_id?: string | undefined;
|
|
5646
|
+
reason?: string | undefined;
|
|
5647
|
+
}, {
|
|
5648
|
+
id: string;
|
|
5649
|
+
ts: number;
|
|
5650
|
+
schema_version: 1;
|
|
5651
|
+
kind: "fabric-event";
|
|
5652
|
+
event_type: "knowledge_promoted";
|
|
5653
|
+
timestamp: string;
|
|
5654
|
+
stable_id?: string | undefined;
|
|
5655
|
+
correlation_id?: string | undefined;
|
|
5656
|
+
session_id?: string | undefined;
|
|
5657
|
+
reason?: string | undefined;
|
|
5658
|
+
}>;
|
|
5659
|
+
declare const knowledgePromoteFailedEventSchema: z.ZodObject<{
|
|
5660
|
+
event_type: z.ZodLiteral<"knowledge_promote_failed">;
|
|
5661
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5662
|
+
timestamp: z.ZodString;
|
|
5663
|
+
reason: z.ZodString;
|
|
5664
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5665
|
+
id: z.ZodString;
|
|
5666
|
+
ts: z.ZodNumber;
|
|
5667
|
+
schema_version: z.ZodLiteral<1>;
|
|
5668
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5669
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5670
|
+
}, "strip", z.ZodTypeAny, {
|
|
5671
|
+
id: string;
|
|
5672
|
+
reason: string;
|
|
5673
|
+
ts: number;
|
|
5674
|
+
schema_version: 1;
|
|
5675
|
+
kind: "fabric-event";
|
|
5676
|
+
event_type: "knowledge_promote_failed";
|
|
5677
|
+
timestamp: string;
|
|
5678
|
+
stable_id?: string | undefined;
|
|
5679
|
+
correlation_id?: string | undefined;
|
|
5680
|
+
session_id?: string | undefined;
|
|
5681
|
+
}, {
|
|
5682
|
+
id: string;
|
|
5683
|
+
reason: string;
|
|
5684
|
+
ts: number;
|
|
5685
|
+
schema_version: 1;
|
|
5686
|
+
kind: "fabric-event";
|
|
5687
|
+
event_type: "knowledge_promote_failed";
|
|
5688
|
+
timestamp: string;
|
|
5689
|
+
stable_id?: string | undefined;
|
|
5690
|
+
correlation_id?: string | undefined;
|
|
5691
|
+
session_id?: string | undefined;
|
|
5692
|
+
}>;
|
|
5693
|
+
declare const knowledgeLayerChangedEventSchema: z.ZodObject<{
|
|
5694
|
+
event_type: z.ZodLiteral<"knowledge_layer_changed">;
|
|
5695
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5696
|
+
timestamp: z.ZodString;
|
|
5697
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5698
|
+
from_layer: z.ZodEnum<["team", "personal"]>;
|
|
5699
|
+
to_layer: z.ZodEnum<["team", "personal"]>;
|
|
5700
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5701
|
+
id: z.ZodString;
|
|
5702
|
+
ts: z.ZodNumber;
|
|
5703
|
+
schema_version: z.ZodLiteral<1>;
|
|
5704
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5705
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5706
|
+
}, "strip", z.ZodTypeAny, {
|
|
5707
|
+
id: string;
|
|
5708
|
+
ts: number;
|
|
5709
|
+
schema_version: 1;
|
|
5710
|
+
kind: "fabric-event";
|
|
5711
|
+
event_type: "knowledge_layer_changed";
|
|
5712
|
+
timestamp: string;
|
|
5713
|
+
from_layer: "personal" | "team";
|
|
5714
|
+
to_layer: "personal" | "team";
|
|
5715
|
+
stable_id?: string | undefined;
|
|
5716
|
+
correlation_id?: string | undefined;
|
|
5717
|
+
session_id?: string | undefined;
|
|
5718
|
+
reason?: string | undefined;
|
|
5719
|
+
}, {
|
|
5720
|
+
id: string;
|
|
5721
|
+
ts: number;
|
|
5722
|
+
schema_version: 1;
|
|
5723
|
+
kind: "fabric-event";
|
|
5724
|
+
event_type: "knowledge_layer_changed";
|
|
5725
|
+
timestamp: string;
|
|
5726
|
+
from_layer: "personal" | "team";
|
|
5727
|
+
to_layer: "personal" | "team";
|
|
5728
|
+
stable_id?: string | undefined;
|
|
5729
|
+
correlation_id?: string | undefined;
|
|
5730
|
+
session_id?: string | undefined;
|
|
5731
|
+
reason?: string | undefined;
|
|
5732
|
+
}>;
|
|
5733
|
+
declare const knowledgeSlugRenamedEventSchema: z.ZodObject<{
|
|
5734
|
+
event_type: z.ZodLiteral<"knowledge_slug_renamed">;
|
|
5735
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5736
|
+
timestamp: z.ZodString;
|
|
5737
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5738
|
+
from_slug: z.ZodString;
|
|
5739
|
+
to_slug: z.ZodString;
|
|
5740
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5741
|
+
id: z.ZodString;
|
|
5742
|
+
ts: z.ZodNumber;
|
|
5743
|
+
schema_version: z.ZodLiteral<1>;
|
|
5744
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5745
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5746
|
+
}, "strip", z.ZodTypeAny, {
|
|
5747
|
+
id: string;
|
|
5748
|
+
ts: number;
|
|
5749
|
+
schema_version: 1;
|
|
5750
|
+
kind: "fabric-event";
|
|
5751
|
+
event_type: "knowledge_slug_renamed";
|
|
5752
|
+
timestamp: string;
|
|
5753
|
+
from_slug: string;
|
|
5754
|
+
to_slug: string;
|
|
5755
|
+
stable_id?: string | undefined;
|
|
5756
|
+
correlation_id?: string | undefined;
|
|
5757
|
+
session_id?: string | undefined;
|
|
5758
|
+
reason?: string | undefined;
|
|
5759
|
+
}, {
|
|
5760
|
+
id: string;
|
|
5761
|
+
ts: number;
|
|
5762
|
+
schema_version: 1;
|
|
5763
|
+
kind: "fabric-event";
|
|
5764
|
+
event_type: "knowledge_slug_renamed";
|
|
5765
|
+
timestamp: string;
|
|
5766
|
+
from_slug: string;
|
|
5767
|
+
to_slug: string;
|
|
5768
|
+
stable_id?: string | undefined;
|
|
5769
|
+
correlation_id?: string | undefined;
|
|
5770
|
+
session_id?: string | undefined;
|
|
5771
|
+
reason?: string | undefined;
|
|
5772
|
+
}>;
|
|
5773
|
+
declare const knowledgeDemotedEventSchema: z.ZodObject<{
|
|
5774
|
+
event_type: z.ZodLiteral<"knowledge_demoted">;
|
|
5775
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5776
|
+
timestamp: z.ZodString;
|
|
5777
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5778
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5779
|
+
id: z.ZodString;
|
|
5780
|
+
ts: z.ZodNumber;
|
|
5781
|
+
schema_version: z.ZodLiteral<1>;
|
|
5782
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5783
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5784
|
+
}, "strip", z.ZodTypeAny, {
|
|
5785
|
+
id: string;
|
|
5786
|
+
ts: number;
|
|
5787
|
+
schema_version: 1;
|
|
5788
|
+
kind: "fabric-event";
|
|
5789
|
+
event_type: "knowledge_demoted";
|
|
5790
|
+
timestamp: string;
|
|
5791
|
+
stable_id?: string | undefined;
|
|
5792
|
+
correlation_id?: string | undefined;
|
|
5793
|
+
session_id?: string | undefined;
|
|
5794
|
+
reason?: string | undefined;
|
|
5795
|
+
}, {
|
|
5796
|
+
id: string;
|
|
5797
|
+
ts: number;
|
|
5798
|
+
schema_version: 1;
|
|
5799
|
+
kind: "fabric-event";
|
|
5800
|
+
event_type: "knowledge_demoted";
|
|
5801
|
+
timestamp: string;
|
|
5802
|
+
stable_id?: string | undefined;
|
|
5803
|
+
correlation_id?: string | undefined;
|
|
5804
|
+
session_id?: string | undefined;
|
|
5805
|
+
reason?: string | undefined;
|
|
5806
|
+
}>;
|
|
5807
|
+
declare const knowledgeArchivedEventSchema: z.ZodObject<{
|
|
5808
|
+
event_type: z.ZodLiteral<"knowledge_archived">;
|
|
5809
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5810
|
+
timestamp: z.ZodString;
|
|
5811
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5812
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5813
|
+
id: z.ZodString;
|
|
5814
|
+
ts: z.ZodNumber;
|
|
5815
|
+
schema_version: z.ZodLiteral<1>;
|
|
5816
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5817
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5818
|
+
}, "strip", z.ZodTypeAny, {
|
|
5819
|
+
id: string;
|
|
5820
|
+
ts: number;
|
|
5821
|
+
schema_version: 1;
|
|
5822
|
+
kind: "fabric-event";
|
|
5823
|
+
event_type: "knowledge_archived";
|
|
5824
|
+
timestamp: string;
|
|
5825
|
+
stable_id?: string | undefined;
|
|
5826
|
+
correlation_id?: string | undefined;
|
|
5827
|
+
session_id?: string | undefined;
|
|
5828
|
+
reason?: string | undefined;
|
|
5829
|
+
}, {
|
|
5830
|
+
id: string;
|
|
5831
|
+
ts: number;
|
|
5832
|
+
schema_version: 1;
|
|
5833
|
+
kind: "fabric-event";
|
|
5834
|
+
event_type: "knowledge_archived";
|
|
5835
|
+
timestamp: string;
|
|
5836
|
+
stable_id?: string | undefined;
|
|
5837
|
+
correlation_id?: string | undefined;
|
|
5838
|
+
session_id?: string | undefined;
|
|
5839
|
+
reason?: string | undefined;
|
|
5840
|
+
}>;
|
|
5841
|
+
declare const knowledgeArchiveAttemptedEventSchema: z.ZodObject<{
|
|
5842
|
+
event_type: z.ZodLiteral<"knowledge_archive_attempted">;
|
|
5843
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5844
|
+
timestamp: z.ZodString;
|
|
5845
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5846
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5847
|
+
id: z.ZodString;
|
|
5848
|
+
ts: z.ZodNumber;
|
|
5849
|
+
schema_version: z.ZodLiteral<1>;
|
|
5850
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5851
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5852
|
+
}, "strip", z.ZodTypeAny, {
|
|
5853
|
+
id: string;
|
|
5854
|
+
ts: number;
|
|
5855
|
+
schema_version: 1;
|
|
5856
|
+
kind: "fabric-event";
|
|
5857
|
+
event_type: "knowledge_archive_attempted";
|
|
5858
|
+
timestamp: string;
|
|
5859
|
+
stable_id?: string | undefined;
|
|
5860
|
+
correlation_id?: string | undefined;
|
|
5861
|
+
session_id?: string | undefined;
|
|
5862
|
+
reason?: string | undefined;
|
|
5863
|
+
}, {
|
|
5864
|
+
id: string;
|
|
5865
|
+
ts: number;
|
|
5866
|
+
schema_version: 1;
|
|
5867
|
+
kind: "fabric-event";
|
|
5868
|
+
event_type: "knowledge_archive_attempted";
|
|
5869
|
+
timestamp: string;
|
|
5870
|
+
stable_id?: string | undefined;
|
|
5871
|
+
correlation_id?: string | undefined;
|
|
5872
|
+
session_id?: string | undefined;
|
|
5873
|
+
reason?: string | undefined;
|
|
5874
|
+
}>;
|
|
5875
|
+
declare const knowledgeDeferredEventSchema: z.ZodObject<{
|
|
5876
|
+
event_type: z.ZodLiteral<"knowledge_deferred">;
|
|
5877
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5878
|
+
timestamp: z.ZodString;
|
|
5879
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5880
|
+
until: z.ZodOptional<z.ZodString>;
|
|
5881
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5882
|
+
id: z.ZodString;
|
|
5883
|
+
ts: z.ZodNumber;
|
|
5884
|
+
schema_version: z.ZodLiteral<1>;
|
|
5885
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5886
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5887
|
+
}, "strip", z.ZodTypeAny, {
|
|
5888
|
+
id: string;
|
|
5889
|
+
ts: number;
|
|
5890
|
+
schema_version: 1;
|
|
5891
|
+
kind: "fabric-event";
|
|
5892
|
+
event_type: "knowledge_deferred";
|
|
5893
|
+
timestamp: string;
|
|
5894
|
+
stable_id?: string | undefined;
|
|
5895
|
+
correlation_id?: string | undefined;
|
|
5896
|
+
session_id?: string | undefined;
|
|
5897
|
+
reason?: string | undefined;
|
|
5898
|
+
until?: string | undefined;
|
|
5899
|
+
}, {
|
|
5900
|
+
id: string;
|
|
5901
|
+
ts: number;
|
|
5902
|
+
schema_version: 1;
|
|
5903
|
+
kind: "fabric-event";
|
|
5904
|
+
event_type: "knowledge_deferred";
|
|
5905
|
+
timestamp: string;
|
|
5906
|
+
stable_id?: string | undefined;
|
|
5907
|
+
correlation_id?: string | undefined;
|
|
5908
|
+
session_id?: string | undefined;
|
|
5909
|
+
reason?: string | undefined;
|
|
5910
|
+
until?: string | undefined;
|
|
5911
|
+
}>;
|
|
5912
|
+
declare const knowledgeRejectedEventSchema: z.ZodObject<{
|
|
5913
|
+
event_type: z.ZodLiteral<"knowledge_rejected">;
|
|
5914
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5915
|
+
timestamp: z.ZodString;
|
|
5916
|
+
reason: z.ZodString;
|
|
5917
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5918
|
+
id: z.ZodString;
|
|
5919
|
+
ts: z.ZodNumber;
|
|
5920
|
+
schema_version: z.ZodLiteral<1>;
|
|
5921
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5922
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5923
|
+
}, "strip", z.ZodTypeAny, {
|
|
5924
|
+
id: string;
|
|
5925
|
+
reason: string;
|
|
5926
|
+
ts: number;
|
|
5927
|
+
schema_version: 1;
|
|
5928
|
+
kind: "fabric-event";
|
|
5929
|
+
event_type: "knowledge_rejected";
|
|
5930
|
+
timestamp: string;
|
|
5931
|
+
stable_id?: string | undefined;
|
|
5932
|
+
correlation_id?: string | undefined;
|
|
5933
|
+
session_id?: string | undefined;
|
|
5934
|
+
}, {
|
|
5935
|
+
id: string;
|
|
5936
|
+
reason: string;
|
|
5937
|
+
ts: number;
|
|
5938
|
+
schema_version: 1;
|
|
5939
|
+
kind: "fabric-event";
|
|
5940
|
+
event_type: "knowledge_rejected";
|
|
5941
|
+
timestamp: string;
|
|
5942
|
+
stable_id?: string | undefined;
|
|
5943
|
+
correlation_id?: string | undefined;
|
|
5944
|
+
session_id?: string | undefined;
|
|
5945
|
+
}>;
|
|
5946
|
+
declare const knowledgeConsumedEventSchema: z.ZodObject<{
|
|
5947
|
+
event_type: z.ZodLiteral<"knowledge_consumed">;
|
|
5948
|
+
stable_id: z.ZodString;
|
|
5949
|
+
consumed_at: z.ZodString;
|
|
5950
|
+
client_hash: z.ZodString;
|
|
5951
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5952
|
+
id: z.ZodString;
|
|
5953
|
+
ts: z.ZodNumber;
|
|
5954
|
+
schema_version: z.ZodLiteral<1>;
|
|
5955
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5956
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5957
|
+
}, "strip", z.ZodTypeAny, {
|
|
5958
|
+
id: string;
|
|
5959
|
+
stable_id: string;
|
|
5960
|
+
client_hash: string;
|
|
5961
|
+
ts: number;
|
|
5962
|
+
schema_version: 1;
|
|
5963
|
+
kind: "fabric-event";
|
|
5964
|
+
event_type: "knowledge_consumed";
|
|
5965
|
+
consumed_at: string;
|
|
5966
|
+
correlation_id?: string | undefined;
|
|
5967
|
+
session_id?: string | undefined;
|
|
5968
|
+
}, {
|
|
5969
|
+
id: string;
|
|
5970
|
+
stable_id: string;
|
|
5971
|
+
client_hash: string;
|
|
5972
|
+
ts: number;
|
|
5973
|
+
schema_version: 1;
|
|
5974
|
+
kind: "fabric-event";
|
|
5975
|
+
event_type: "knowledge_consumed";
|
|
5976
|
+
consumed_at: string;
|
|
5977
|
+
correlation_id?: string | undefined;
|
|
5978
|
+
session_id?: string | undefined;
|
|
5979
|
+
}>;
|
|
5980
|
+
declare const knowledgeScopeDegradedEventSchema: z.ZodObject<{
|
|
5981
|
+
event_type: z.ZodLiteral<"knowledge_scope_degraded">;
|
|
5982
|
+
stable_id: z.ZodString;
|
|
5983
|
+
timestamp: z.ZodString;
|
|
5984
|
+
from_scope: z.ZodEnum<["narrow", "broad"]>;
|
|
5985
|
+
to_scope: z.ZodEnum<["narrow", "broad"]>;
|
|
5986
|
+
reason: z.ZodString;
|
|
5987
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5988
|
+
id: z.ZodString;
|
|
5989
|
+
ts: z.ZodNumber;
|
|
5990
|
+
schema_version: z.ZodLiteral<1>;
|
|
5991
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5992
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5993
|
+
}, "strip", z.ZodTypeAny, {
|
|
5994
|
+
id: string;
|
|
5995
|
+
stable_id: string;
|
|
5996
|
+
reason: string;
|
|
5997
|
+
ts: number;
|
|
5998
|
+
schema_version: 1;
|
|
5999
|
+
kind: "fabric-event";
|
|
6000
|
+
event_type: "knowledge_scope_degraded";
|
|
6001
|
+
timestamp: string;
|
|
6002
|
+
from_scope: "narrow" | "broad";
|
|
6003
|
+
to_scope: "narrow" | "broad";
|
|
6004
|
+
correlation_id?: string | undefined;
|
|
6005
|
+
session_id?: string | undefined;
|
|
6006
|
+
}, {
|
|
6007
|
+
id: string;
|
|
6008
|
+
stable_id: string;
|
|
6009
|
+
reason: string;
|
|
6010
|
+
ts: number;
|
|
6011
|
+
schema_version: 1;
|
|
6012
|
+
kind: "fabric-event";
|
|
6013
|
+
event_type: "knowledge_scope_degraded";
|
|
6014
|
+
timestamp: string;
|
|
6015
|
+
from_scope: "narrow" | "broad";
|
|
6016
|
+
to_scope: "narrow" | "broad";
|
|
6017
|
+
correlation_id?: string | undefined;
|
|
6018
|
+
session_id?: string | undefined;
|
|
6019
|
+
}>;
|
|
6020
|
+
declare const doctorRunEventSchema: z.ZodObject<{
|
|
6021
|
+
event_type: z.ZodLiteral<"doctor_run">;
|
|
6022
|
+
mode: z.ZodEnum<["lint", "apply-lint"]>;
|
|
6023
|
+
issues: z.ZodNumber;
|
|
6024
|
+
mutations: z.ZodOptional<z.ZodNumber>;
|
|
6025
|
+
timestamp: z.ZodString;
|
|
6026
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6027
|
+
id: z.ZodString;
|
|
6028
|
+
ts: z.ZodNumber;
|
|
6029
|
+
schema_version: z.ZodLiteral<1>;
|
|
6030
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6031
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6032
|
+
}, "strip", z.ZodTypeAny, {
|
|
6033
|
+
issues: number;
|
|
6034
|
+
id: string;
|
|
6035
|
+
ts: number;
|
|
6036
|
+
schema_version: 1;
|
|
6037
|
+
kind: "fabric-event";
|
|
6038
|
+
event_type: "doctor_run";
|
|
6039
|
+
timestamp: string;
|
|
6040
|
+
mode: "lint" | "apply-lint";
|
|
6041
|
+
correlation_id?: string | undefined;
|
|
6042
|
+
session_id?: string | undefined;
|
|
6043
|
+
mutations?: number | undefined;
|
|
6044
|
+
}, {
|
|
6045
|
+
issues: number;
|
|
6046
|
+
id: string;
|
|
6047
|
+
ts: number;
|
|
6048
|
+
schema_version: 1;
|
|
6049
|
+
kind: "fabric-event";
|
|
6050
|
+
event_type: "doctor_run";
|
|
6051
|
+
timestamp: string;
|
|
6052
|
+
mode: "lint" | "apply-lint";
|
|
6053
|
+
correlation_id?: string | undefined;
|
|
6054
|
+
session_id?: string | undefined;
|
|
6055
|
+
mutations?: number | undefined;
|
|
6056
|
+
}>;
|
|
6057
|
+
declare const knowledgePathDangledEventSchema: z.ZodObject<{
|
|
6058
|
+
event_type: z.ZodLiteral<"knowledge_path_dangled">;
|
|
6059
|
+
stable_id: z.ZodString;
|
|
6060
|
+
removed_glob: z.ZodString;
|
|
6061
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6062
|
+
id: z.ZodString;
|
|
6063
|
+
ts: z.ZodNumber;
|
|
6064
|
+
schema_version: z.ZodLiteral<1>;
|
|
6065
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6066
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6067
|
+
}, "strip", z.ZodTypeAny, {
|
|
6068
|
+
id: string;
|
|
6069
|
+
stable_id: string;
|
|
6070
|
+
ts: number;
|
|
6071
|
+
schema_version: 1;
|
|
6072
|
+
kind: "fabric-event";
|
|
6073
|
+
event_type: "knowledge_path_dangled";
|
|
6074
|
+
removed_glob: string;
|
|
6075
|
+
correlation_id?: string | undefined;
|
|
6076
|
+
session_id?: string | undefined;
|
|
6077
|
+
}, {
|
|
6078
|
+
id: string;
|
|
6079
|
+
stable_id: string;
|
|
6080
|
+
ts: number;
|
|
6081
|
+
schema_version: 1;
|
|
6082
|
+
kind: "fabric-event";
|
|
6083
|
+
event_type: "knowledge_path_dangled";
|
|
6084
|
+
removed_glob: string;
|
|
6085
|
+
correlation_id?: string | undefined;
|
|
6086
|
+
session_id?: string | undefined;
|
|
6087
|
+
}>;
|
|
6088
|
+
declare const relevanceMigrationRunEventSchema: z.ZodObject<{
|
|
6089
|
+
event_type: z.ZodLiteral<"relevance_migration_run">;
|
|
6090
|
+
timestamp: z.ZodString;
|
|
6091
|
+
scanned_count: z.ZodNumber;
|
|
6092
|
+
touched_count: z.ZodNumber;
|
|
6093
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6094
|
+
id: z.ZodString;
|
|
6095
|
+
ts: z.ZodNumber;
|
|
6096
|
+
schema_version: z.ZodLiteral<1>;
|
|
6097
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6098
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6099
|
+
}, "strip", z.ZodTypeAny, {
|
|
6100
|
+
id: string;
|
|
6101
|
+
ts: number;
|
|
6102
|
+
schema_version: 1;
|
|
6103
|
+
kind: "fabric-event";
|
|
6104
|
+
event_type: "relevance_migration_run";
|
|
6105
|
+
timestamp: string;
|
|
6106
|
+
scanned_count: number;
|
|
6107
|
+
touched_count: number;
|
|
6108
|
+
correlation_id?: string | undefined;
|
|
6109
|
+
session_id?: string | undefined;
|
|
6110
|
+
}, {
|
|
6111
|
+
id: string;
|
|
6112
|
+
ts: number;
|
|
6113
|
+
schema_version: 1;
|
|
6114
|
+
kind: "fabric-event";
|
|
6115
|
+
event_type: "relevance_migration_run";
|
|
6116
|
+
timestamp: string;
|
|
6117
|
+
scanned_count: number;
|
|
6118
|
+
touched_count: number;
|
|
6119
|
+
correlation_id?: string | undefined;
|
|
6120
|
+
session_id?: string | undefined;
|
|
6121
|
+
}>;
|
|
6122
|
+
declare const pendingAutoArchivedEventSchema: z.ZodObject<{
|
|
6123
|
+
event_type: z.ZodLiteral<"pending_auto_archived">;
|
|
6124
|
+
pending_path: z.ZodString;
|
|
6125
|
+
archived_to: z.ZodString;
|
|
6126
|
+
reason: z.ZodString;
|
|
6127
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6128
|
+
id: z.ZodString;
|
|
6129
|
+
ts: z.ZodNumber;
|
|
6130
|
+
schema_version: z.ZodLiteral<1>;
|
|
6131
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6132
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6133
|
+
}, "strip", z.ZodTypeAny, {
|
|
6134
|
+
pending_path: string;
|
|
6135
|
+
id: string;
|
|
6136
|
+
reason: string;
|
|
6137
|
+
ts: number;
|
|
6138
|
+
schema_version: 1;
|
|
6139
|
+
kind: "fabric-event";
|
|
6140
|
+
event_type: "pending_auto_archived";
|
|
6141
|
+
archived_to: string;
|
|
6142
|
+
correlation_id?: string | undefined;
|
|
6143
|
+
session_id?: string | undefined;
|
|
6144
|
+
}, {
|
|
6145
|
+
pending_path: string;
|
|
6146
|
+
id: string;
|
|
6147
|
+
reason: string;
|
|
6148
|
+
ts: number;
|
|
6149
|
+
schema_version: 1;
|
|
6150
|
+
kind: "fabric-event";
|
|
6151
|
+
event_type: "pending_auto_archived";
|
|
6152
|
+
archived_to: string;
|
|
6153
|
+
correlation_id?: string | undefined;
|
|
6154
|
+
session_id?: string | undefined;
|
|
6155
|
+
}>;
|
|
6156
|
+
declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
6157
|
+
event_type: z.ZodLiteral<"knowledge_context_planned">;
|
|
6158
|
+
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
6159
|
+
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6160
|
+
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6161
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6162
|
+
selection_token: z.ZodOptional<z.ZodString>;
|
|
6163
|
+
client_hash: z.ZodOptional<z.ZodString>;
|
|
6164
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
6165
|
+
known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6166
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
6167
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6168
|
+
id: z.ZodString;
|
|
6169
|
+
ts: z.ZodNumber;
|
|
6170
|
+
schema_version: z.ZodLiteral<1>;
|
|
6171
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6172
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6173
|
+
}, "strip", z.ZodTypeAny, {
|
|
6174
|
+
id: string;
|
|
6175
|
+
target_paths: string[];
|
|
4297
6176
|
ts: number;
|
|
4298
6177
|
schema_version: 1;
|
|
4299
6178
|
kind: "fabric-event";
|
|
4300
6179
|
event_type: "knowledge_context_planned";
|
|
4301
|
-
|
|
6180
|
+
required_stable_ids: string[];
|
|
6181
|
+
ai_selectable_stable_ids: string[];
|
|
4302
6182
|
final_stable_ids: string[];
|
|
4303
6183
|
known_tech?: string[] | undefined;
|
|
4304
6184
|
intent?: string | undefined;
|
|
@@ -4309,13 +6189,13 @@ declare const knowledgeContextPlannedEventSchema: z.ZodObject<{
|
|
|
4309
6189
|
diagnostics?: unknown[] | undefined;
|
|
4310
6190
|
}, {
|
|
4311
6191
|
id: string;
|
|
4312
|
-
|
|
4313
|
-
ai_selectable_stable_ids: string[];
|
|
6192
|
+
target_paths: string[];
|
|
4314
6193
|
ts: number;
|
|
4315
6194
|
schema_version: 1;
|
|
4316
6195
|
kind: "fabric-event";
|
|
4317
6196
|
event_type: "knowledge_context_planned";
|
|
4318
|
-
|
|
6197
|
+
required_stable_ids: string[];
|
|
6198
|
+
ai_selectable_stable_ids: string[];
|
|
4319
6199
|
final_stable_ids: string[];
|
|
4320
6200
|
known_tech?: string[] | undefined;
|
|
4321
6201
|
intent?: string | undefined;
|
|
@@ -4324,8 +6204,7 @@ declare const knowledgeContextPlannedEventSchema: z.ZodObject<{
|
|
|
4324
6204
|
session_id?: string | undefined;
|
|
4325
6205
|
selection_token?: string | undefined;
|
|
4326
6206
|
diagnostics?: unknown[] | undefined;
|
|
4327
|
-
}
|
|
4328
|
-
declare const knowledgeSelectionEventSchema: z.ZodObject<{
|
|
6207
|
+
}>, z.ZodObject<{
|
|
4329
6208
|
event_type: z.ZodLiteral<"knowledge_selection">;
|
|
4330
6209
|
selection_token: z.ZodString;
|
|
4331
6210
|
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4344,16 +6223,16 @@ declare const knowledgeSelectionEventSchema: z.ZodObject<{
|
|
|
4344
6223
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4345
6224
|
}, "strip", z.ZodTypeAny, {
|
|
4346
6225
|
id: string;
|
|
6226
|
+
target_paths: string[];
|
|
4347
6227
|
selection_token: string;
|
|
4348
|
-
required_stable_ids: string[];
|
|
4349
|
-
ai_selectable_stable_ids: string[];
|
|
4350
6228
|
ai_selected_stable_ids: string[];
|
|
4351
6229
|
ai_selection_reasons: Record<string, string>;
|
|
4352
6230
|
ts: number;
|
|
4353
6231
|
schema_version: 1;
|
|
4354
6232
|
kind: "fabric-event";
|
|
4355
6233
|
event_type: "knowledge_selection";
|
|
4356
|
-
|
|
6234
|
+
required_stable_ids: string[];
|
|
6235
|
+
ai_selectable_stable_ids: string[];
|
|
4357
6236
|
final_stable_ids: string[];
|
|
4358
6237
|
rejected_stable_ids: string[];
|
|
4359
6238
|
ignored_stable_ids: string[];
|
|
@@ -4361,23 +6240,22 @@ declare const knowledgeSelectionEventSchema: z.ZodObject<{
|
|
|
4361
6240
|
session_id?: string | undefined;
|
|
4362
6241
|
}, {
|
|
4363
6242
|
id: string;
|
|
6243
|
+
target_paths: string[];
|
|
4364
6244
|
selection_token: string;
|
|
4365
|
-
required_stable_ids: string[];
|
|
4366
|
-
ai_selectable_stable_ids: string[];
|
|
4367
6245
|
ai_selected_stable_ids: string[];
|
|
4368
6246
|
ai_selection_reasons: Record<string, string>;
|
|
4369
6247
|
ts: number;
|
|
4370
6248
|
schema_version: 1;
|
|
4371
6249
|
kind: "fabric-event";
|
|
4372
6250
|
event_type: "knowledge_selection";
|
|
4373
|
-
|
|
6251
|
+
required_stable_ids: string[];
|
|
6252
|
+
ai_selectable_stable_ids: string[];
|
|
4374
6253
|
final_stable_ids: string[];
|
|
4375
6254
|
rejected_stable_ids: string[];
|
|
4376
6255
|
ignored_stable_ids: string[];
|
|
4377
6256
|
correlation_id?: string | undefined;
|
|
4378
6257
|
session_id?: string | undefined;
|
|
4379
|
-
}
|
|
4380
|
-
declare const knowledgeSectionsFetchedEventSchema: z.ZodObject<{
|
|
6258
|
+
}>, z.ZodObject<{
|
|
4381
6259
|
event_type: z.ZodLiteral<"knowledge_sections_fetched">;
|
|
4382
6260
|
selection_token: z.ZodString;
|
|
4383
6261
|
target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -4403,8 +6281,8 @@ declare const knowledgeSectionsFetchedEventSchema: z.ZodObject<{
|
|
|
4403
6281
|
requested_sections: string[];
|
|
4404
6282
|
correlation_id?: string | undefined;
|
|
4405
6283
|
session_id?: string | undefined;
|
|
4406
|
-
diagnostics?: unknown[] | undefined;
|
|
4407
6284
|
target_paths?: string[] | undefined;
|
|
6285
|
+
diagnostics?: unknown[] | undefined;
|
|
4408
6286
|
}, {
|
|
4409
6287
|
id: string;
|
|
4410
6288
|
selection_token: string;
|
|
@@ -4417,10 +6295,9 @@ declare const knowledgeSectionsFetchedEventSchema: z.ZodObject<{
|
|
|
4417
6295
|
requested_sections: string[];
|
|
4418
6296
|
correlation_id?: string | undefined;
|
|
4419
6297
|
session_id?: string | undefined;
|
|
4420
|
-
diagnostics?: unknown[] | undefined;
|
|
4421
6298
|
target_paths?: string[] | undefined;
|
|
4422
|
-
|
|
4423
|
-
|
|
6299
|
+
diagnostics?: unknown[] | undefined;
|
|
6300
|
+
}>, z.ZodObject<{
|
|
4424
6301
|
event_type: z.ZodLiteral<"edit_intent_checked">;
|
|
4425
6302
|
path: z.ZodString;
|
|
4426
6303
|
compliant: z.ZodBoolean;
|
|
@@ -4442,10 +6319,10 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
4442
6319
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4443
6320
|
}, "strip", z.ZodTypeAny, {
|
|
4444
6321
|
path: string;
|
|
4445
|
-
ledger_entry_id: string;
|
|
4446
6322
|
id: string;
|
|
4447
6323
|
intent: string;
|
|
4448
6324
|
ts: number;
|
|
6325
|
+
ledger_entry_id: string;
|
|
4449
6326
|
schema_version: 1;
|
|
4450
6327
|
kind: "fabric-event";
|
|
4451
6328
|
event_type: "edit_intent_checked";
|
|
@@ -4462,10 +6339,10 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
4462
6339
|
ledger_source?: "ai" | "human" | undefined;
|
|
4463
6340
|
}, {
|
|
4464
6341
|
path: string;
|
|
4465
|
-
ledger_entry_id: string;
|
|
4466
6342
|
id: string;
|
|
4467
6343
|
intent: string;
|
|
4468
6344
|
ts: number;
|
|
6345
|
+
ledger_entry_id: string;
|
|
4469
6346
|
schema_version: 1;
|
|
4470
6347
|
kind: "fabric-event";
|
|
4471
6348
|
event_type: "edit_intent_checked";
|
|
@@ -4480,8 +6357,7 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
4480
6357
|
parent_ledger_entry_id?: string | undefined;
|
|
4481
6358
|
diff_stat?: string | undefined;
|
|
4482
6359
|
ledger_source?: "ai" | "human" | undefined;
|
|
4483
|
-
}
|
|
4484
|
-
declare const knowledgeDriftDetectedEventSchema: z.ZodObject<{
|
|
6360
|
+
}>, z.ZodObject<{
|
|
4485
6361
|
event_type: z.ZodLiteral<"knowledge_drift_detected">;
|
|
4486
6362
|
revision: z.ZodOptional<z.ZodString>;
|
|
4487
6363
|
drifted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4545,8 +6421,7 @@ declare const knowledgeDriftDetectedEventSchema: z.ZodObject<{
|
|
|
4545
6421
|
expected_hash: string;
|
|
4546
6422
|
actual_hash: string | null;
|
|
4547
6423
|
}[] | undefined;
|
|
4548
|
-
}
|
|
4549
|
-
declare const mcpEventLedgerEventSchema: z.ZodObject<{
|
|
6424
|
+
}>, z.ZodObject<{
|
|
4550
6425
|
event_type: z.ZodLiteral<"mcp_event">;
|
|
4551
6426
|
mcp_event_id: z.ZodString;
|
|
4552
6427
|
stream_id: z.ZodString;
|
|
@@ -4579,8 +6454,7 @@ declare const mcpEventLedgerEventSchema: z.ZodObject<{
|
|
|
4579
6454
|
message?: unknown;
|
|
4580
6455
|
correlation_id?: string | undefined;
|
|
4581
6456
|
session_id?: string | undefined;
|
|
4582
|
-
}
|
|
4583
|
-
declare const reapplyCompletedEventSchema: z.ZodObject<{
|
|
6457
|
+
}>, z.ZodObject<{
|
|
4584
6458
|
event_type: z.ZodLiteral<"reapply_completed">;
|
|
4585
6459
|
preserved_ledger: z.ZodBoolean;
|
|
4586
6460
|
preserved_meta: z.ZodBoolean;
|
|
@@ -4613,8 +6487,7 @@ declare const reapplyCompletedEventSchema: z.ZodObject<{
|
|
|
4613
6487
|
rules_count: number;
|
|
4614
6488
|
correlation_id?: string | undefined;
|
|
4615
6489
|
session_id?: string | undefined;
|
|
4616
|
-
}
|
|
4617
|
-
declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
|
|
6490
|
+
}>, z.ZodObject<{
|
|
4618
6491
|
event_type: z.ZodLiteral<"event_ledger_truncated">;
|
|
4619
6492
|
byte_offset: z.ZodNumber;
|
|
4620
6493
|
byte_length: z.ZodNumber;
|
|
@@ -4647,8 +6520,7 @@ declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
|
|
|
4647
6520
|
corrupted_path: string;
|
|
4648
6521
|
correlation_id?: string | undefined;
|
|
4649
6522
|
session_id?: string | undefined;
|
|
4650
|
-
}
|
|
4651
|
-
declare const mcpConfigMigratedEventSchema: z.ZodObject<{
|
|
6523
|
+
}>, z.ZodObject<{
|
|
4652
6524
|
event_type: z.ZodLiteral<"mcp_config_migrated">;
|
|
4653
6525
|
source: z.ZodLiteral<"doctor_fix">;
|
|
4654
6526
|
removed_from: z.ZodString;
|
|
@@ -4678,12 +6550,11 @@ declare const mcpConfigMigratedEventSchema: z.ZodObject<{
|
|
|
4678
6550
|
removed_from: string;
|
|
4679
6551
|
correlation_id?: string | undefined;
|
|
4680
6552
|
session_id?: string | undefined;
|
|
4681
|
-
}
|
|
4682
|
-
declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
6553
|
+
}>, z.ZodObject<{
|
|
4683
6554
|
event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
|
|
4684
6555
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
4685
6556
|
duration_ms: z.ZodNumber;
|
|
4686
|
-
source: z.ZodLiteral<"
|
|
6557
|
+
source: z.ZodLiteral<"reconcileKnowledge">;
|
|
4687
6558
|
kind: z.ZodLiteral<"fabric-event">;
|
|
4688
6559
|
id: z.ZodString;
|
|
4689
6560
|
ts: z.ZodNumber;
|
|
@@ -4692,7 +6563,7 @@ declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
|
4692
6563
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4693
6564
|
}, "strip", z.ZodTypeAny, {
|
|
4694
6565
|
id: string;
|
|
4695
|
-
source: "
|
|
6566
|
+
source: "reconcileKnowledge";
|
|
4696
6567
|
ts: number;
|
|
4697
6568
|
schema_version: 1;
|
|
4698
6569
|
kind: "fabric-event";
|
|
@@ -4703,7 +6574,7 @@ declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
|
4703
6574
|
session_id?: string | undefined;
|
|
4704
6575
|
}, {
|
|
4705
6576
|
id: string;
|
|
4706
|
-
source: "
|
|
6577
|
+
source: "reconcileKnowledge";
|
|
4707
6578
|
ts: number;
|
|
4708
6579
|
schema_version: 1;
|
|
4709
6580
|
kind: "fabric-event";
|
|
@@ -4712,13 +6583,12 @@ declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
|
4712
6583
|
duration_ms: number;
|
|
4713
6584
|
correlation_id?: string | undefined;
|
|
4714
6585
|
session_id?: string | undefined;
|
|
4715
|
-
}
|
|
4716
|
-
declare const metaReconciledEventSchema: z.ZodObject<{
|
|
6586
|
+
}>, z.ZodObject<{
|
|
4717
6587
|
event_type: z.ZodLiteral<"meta_reconciled">;
|
|
4718
6588
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
4719
6589
|
duration_ms: z.ZodNumber;
|
|
4720
6590
|
trigger: z.ZodEnum<["doctor", "manual"]>;
|
|
4721
|
-
source: z.ZodLiteral<"
|
|
6591
|
+
source: z.ZodLiteral<"reconcileKnowledge">;
|
|
4722
6592
|
kind: z.ZodLiteral<"fabric-event">;
|
|
4723
6593
|
id: z.ZodString;
|
|
4724
6594
|
ts: z.ZodNumber;
|
|
@@ -4727,7 +6597,7 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
4727
6597
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4728
6598
|
}, "strip", z.ZodTypeAny, {
|
|
4729
6599
|
id: string;
|
|
4730
|
-
source: "
|
|
6600
|
+
source: "reconcileKnowledge";
|
|
4731
6601
|
ts: number;
|
|
4732
6602
|
schema_version: 1;
|
|
4733
6603
|
kind: "fabric-event";
|
|
@@ -4739,7 +6609,7 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
4739
6609
|
session_id?: string | undefined;
|
|
4740
6610
|
}, {
|
|
4741
6611
|
id: string;
|
|
4742
|
-
source: "
|
|
6612
|
+
source: "reconcileKnowledge";
|
|
4743
6613
|
ts: number;
|
|
4744
6614
|
schema_version: 1;
|
|
4745
6615
|
kind: "fabric-event";
|
|
@@ -4749,8 +6619,7 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
4749
6619
|
trigger: "manual" | "doctor";
|
|
4750
6620
|
correlation_id?: string | undefined;
|
|
4751
6621
|
session_id?: string | undefined;
|
|
4752
|
-
}
|
|
4753
|
-
declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
6622
|
+
}>, z.ZodObject<{
|
|
4754
6623
|
event_type: z.ZodLiteral<"claude_skill_path_migrated">;
|
|
4755
6624
|
from: z.ZodString;
|
|
4756
6625
|
to: z.ZodString;
|
|
@@ -4780,8 +6649,7 @@ declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
|
4780
6649
|
to: string;
|
|
4781
6650
|
correlation_id?: string | undefined;
|
|
4782
6651
|
session_id?: string | undefined;
|
|
4783
|
-
}
|
|
4784
|
-
declare const claudeHookPathMigratedEventSchema: z.ZodObject<{
|
|
6652
|
+
}>, z.ZodObject<{
|
|
4785
6653
|
event_type: z.ZodLiteral<"claude_hook_path_migrated">;
|
|
4786
6654
|
from: z.ZodString;
|
|
4787
6655
|
to: z.ZodString;
|
|
@@ -4811,8 +6679,7 @@ declare const claudeHookPathMigratedEventSchema: z.ZodObject<{
|
|
|
4811
6679
|
to: string;
|
|
4812
6680
|
correlation_id?: string | undefined;
|
|
4813
6681
|
session_id?: string | undefined;
|
|
4814
|
-
}
|
|
4815
|
-
declare const codexSkillPathMigratedEventSchema: z.ZodObject<{
|
|
6682
|
+
}>, z.ZodObject<{
|
|
4816
6683
|
event_type: z.ZodLiteral<"codex_skill_path_migrated">;
|
|
4817
6684
|
from: z.ZodString;
|
|
4818
6685
|
to: z.ZodString;
|
|
@@ -4842,8 +6709,7 @@ declare const codexSkillPathMigratedEventSchema: z.ZodObject<{
|
|
|
4842
6709
|
to: string;
|
|
4843
6710
|
correlation_id?: string | undefined;
|
|
4844
6711
|
session_id?: string | undefined;
|
|
4845
|
-
}
|
|
4846
|
-
declare const initScanCompletedEventSchema: z.ZodObject<{
|
|
6712
|
+
}>, z.ZodObject<{
|
|
4847
6713
|
event_type: z.ZodLiteral<"init_scan_completed">;
|
|
4848
6714
|
written_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4849
6715
|
duration_ms: z.ZodNumber;
|
|
@@ -4876,18 +6742,11 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
|
|
|
4876
6742
|
correlation_id?: string | undefined;
|
|
4877
6743
|
session_id?: string | undefined;
|
|
4878
6744
|
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
4879
|
-
}
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4885
|
-
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4886
|
-
selection_token: z.ZodOptional<z.ZodString>;
|
|
4887
|
-
client_hash: z.ZodOptional<z.ZodString>;
|
|
4888
|
-
intent: z.ZodOptional<z.ZodString>;
|
|
4889
|
-
known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4890
|
-
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
6745
|
+
}>, z.ZodObject<{
|
|
6746
|
+
event_type: z.ZodLiteral<"knowledge_proposed">;
|
|
6747
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
6748
|
+
timestamp: z.ZodString;
|
|
6749
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4891
6750
|
kind: z.ZodLiteral<"fabric-event">;
|
|
4892
6751
|
id: z.ZodString;
|
|
4893
6752
|
ts: z.ZodNumber;
|
|
@@ -4896,49 +6755,31 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4896
6755
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4897
6756
|
}, "strip", z.ZodTypeAny, {
|
|
4898
6757
|
id: string;
|
|
4899
|
-
required_stable_ids: string[];
|
|
4900
|
-
ai_selectable_stable_ids: string[];
|
|
4901
6758
|
ts: number;
|
|
4902
6759
|
schema_version: 1;
|
|
4903
6760
|
kind: "fabric-event";
|
|
4904
|
-
event_type: "
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
known_tech?: string[] | undefined;
|
|
4908
|
-
intent?: string | undefined;
|
|
4909
|
-
client_hash?: string | undefined;
|
|
6761
|
+
event_type: "knowledge_proposed";
|
|
6762
|
+
timestamp: string;
|
|
6763
|
+
stable_id?: string | undefined;
|
|
4910
6764
|
correlation_id?: string | undefined;
|
|
4911
6765
|
session_id?: string | undefined;
|
|
4912
|
-
|
|
4913
|
-
diagnostics?: unknown[] | undefined;
|
|
6766
|
+
reason?: string | undefined;
|
|
4914
6767
|
}, {
|
|
4915
6768
|
id: string;
|
|
4916
|
-
required_stable_ids: string[];
|
|
4917
|
-
ai_selectable_stable_ids: string[];
|
|
4918
6769
|
ts: number;
|
|
4919
6770
|
schema_version: 1;
|
|
4920
6771
|
kind: "fabric-event";
|
|
4921
|
-
event_type: "
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
known_tech?: string[] | undefined;
|
|
4925
|
-
intent?: string | undefined;
|
|
4926
|
-
client_hash?: string | undefined;
|
|
6772
|
+
event_type: "knowledge_proposed";
|
|
6773
|
+
timestamp: string;
|
|
6774
|
+
stable_id?: string | undefined;
|
|
4927
6775
|
correlation_id?: string | undefined;
|
|
4928
6776
|
session_id?: string | undefined;
|
|
4929
|
-
|
|
4930
|
-
diagnostics?: unknown[] | undefined;
|
|
6777
|
+
reason?: string | undefined;
|
|
4931
6778
|
}>, z.ZodObject<{
|
|
4932
|
-
event_type: z.ZodLiteral<"
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4937
|
-
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4938
|
-
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4939
|
-
ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4940
|
-
rejected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4941
|
-
ignored_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6779
|
+
event_type: z.ZodLiteral<"knowledge_promote_started">;
|
|
6780
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
6781
|
+
timestamp: z.ZodString;
|
|
6782
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4942
6783
|
kind: z.ZodLiteral<"fabric-event">;
|
|
4943
6784
|
id: z.ZodString;
|
|
4944
6785
|
ts: z.ZodNumber;
|
|
@@ -4947,46 +6788,99 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4947
6788
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4948
6789
|
}, "strip", z.ZodTypeAny, {
|
|
4949
6790
|
id: string;
|
|
4950
|
-
selection_token: string;
|
|
4951
|
-
required_stable_ids: string[];
|
|
4952
|
-
ai_selectable_stable_ids: string[];
|
|
4953
|
-
ai_selected_stable_ids: string[];
|
|
4954
|
-
ai_selection_reasons: Record<string, string>;
|
|
4955
6791
|
ts: number;
|
|
4956
6792
|
schema_version: 1;
|
|
4957
6793
|
kind: "fabric-event";
|
|
4958
|
-
event_type: "
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
rejected_stable_ids: string[];
|
|
4962
|
-
ignored_stable_ids: string[];
|
|
6794
|
+
event_type: "knowledge_promote_started";
|
|
6795
|
+
timestamp: string;
|
|
6796
|
+
stable_id?: string | undefined;
|
|
4963
6797
|
correlation_id?: string | undefined;
|
|
4964
6798
|
session_id?: string | undefined;
|
|
6799
|
+
reason?: string | undefined;
|
|
4965
6800
|
}, {
|
|
4966
6801
|
id: string;
|
|
4967
|
-
selection_token: string;
|
|
4968
|
-
required_stable_ids: string[];
|
|
4969
|
-
ai_selectable_stable_ids: string[];
|
|
4970
|
-
ai_selected_stable_ids: string[];
|
|
4971
|
-
ai_selection_reasons: Record<string, string>;
|
|
4972
6802
|
ts: number;
|
|
4973
6803
|
schema_version: 1;
|
|
4974
6804
|
kind: "fabric-event";
|
|
4975
|
-
event_type: "
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
6805
|
+
event_type: "knowledge_promote_started";
|
|
6806
|
+
timestamp: string;
|
|
6807
|
+
stable_id?: string | undefined;
|
|
6808
|
+
correlation_id?: string | undefined;
|
|
6809
|
+
session_id?: string | undefined;
|
|
6810
|
+
reason?: string | undefined;
|
|
6811
|
+
}>, z.ZodObject<{
|
|
6812
|
+
event_type: z.ZodLiteral<"knowledge_promoted">;
|
|
6813
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
6814
|
+
timestamp: z.ZodString;
|
|
6815
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6816
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6817
|
+
id: z.ZodString;
|
|
6818
|
+
ts: z.ZodNumber;
|
|
6819
|
+
schema_version: z.ZodLiteral<1>;
|
|
6820
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6821
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6822
|
+
}, "strip", z.ZodTypeAny, {
|
|
6823
|
+
id: string;
|
|
6824
|
+
ts: number;
|
|
6825
|
+
schema_version: 1;
|
|
6826
|
+
kind: "fabric-event";
|
|
6827
|
+
event_type: "knowledge_promoted";
|
|
6828
|
+
timestamp: string;
|
|
6829
|
+
stable_id?: string | undefined;
|
|
6830
|
+
correlation_id?: string | undefined;
|
|
6831
|
+
session_id?: string | undefined;
|
|
6832
|
+
reason?: string | undefined;
|
|
6833
|
+
}, {
|
|
6834
|
+
id: string;
|
|
6835
|
+
ts: number;
|
|
6836
|
+
schema_version: 1;
|
|
6837
|
+
kind: "fabric-event";
|
|
6838
|
+
event_type: "knowledge_promoted";
|
|
6839
|
+
timestamp: string;
|
|
6840
|
+
stable_id?: string | undefined;
|
|
6841
|
+
correlation_id?: string | undefined;
|
|
6842
|
+
session_id?: string | undefined;
|
|
6843
|
+
reason?: string | undefined;
|
|
6844
|
+
}>, z.ZodObject<{
|
|
6845
|
+
event_type: z.ZodLiteral<"knowledge_promote_failed">;
|
|
6846
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
6847
|
+
timestamp: z.ZodString;
|
|
6848
|
+
reason: z.ZodString;
|
|
6849
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6850
|
+
id: z.ZodString;
|
|
6851
|
+
ts: z.ZodNumber;
|
|
6852
|
+
schema_version: z.ZodLiteral<1>;
|
|
6853
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6854
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6855
|
+
}, "strip", z.ZodTypeAny, {
|
|
6856
|
+
id: string;
|
|
6857
|
+
reason: string;
|
|
6858
|
+
ts: number;
|
|
6859
|
+
schema_version: 1;
|
|
6860
|
+
kind: "fabric-event";
|
|
6861
|
+
event_type: "knowledge_promote_failed";
|
|
6862
|
+
timestamp: string;
|
|
6863
|
+
stable_id?: string | undefined;
|
|
6864
|
+
correlation_id?: string | undefined;
|
|
6865
|
+
session_id?: string | undefined;
|
|
6866
|
+
}, {
|
|
6867
|
+
id: string;
|
|
6868
|
+
reason: string;
|
|
6869
|
+
ts: number;
|
|
6870
|
+
schema_version: 1;
|
|
6871
|
+
kind: "fabric-event";
|
|
6872
|
+
event_type: "knowledge_promote_failed";
|
|
6873
|
+
timestamp: string;
|
|
6874
|
+
stable_id?: string | undefined;
|
|
4980
6875
|
correlation_id?: string | undefined;
|
|
4981
6876
|
session_id?: string | undefined;
|
|
4982
6877
|
}>, z.ZodObject<{
|
|
4983
|
-
event_type: z.ZodLiteral<"
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
6878
|
+
event_type: z.ZodLiteral<"knowledge_layer_changed">;
|
|
6879
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
6880
|
+
timestamp: z.ZodString;
|
|
6881
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6882
|
+
from_layer: z.ZodEnum<["team", "personal"]>;
|
|
6883
|
+
to_layer: z.ZodEnum<["team", "personal"]>;
|
|
4990
6884
|
kind: z.ZodLiteral<"fabric-event">;
|
|
4991
6885
|
id: z.ZodString;
|
|
4992
6886
|
ts: z.ZodNumber;
|
|
@@ -4995,46 +6889,37 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4995
6889
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4996
6890
|
}, "strip", z.ZodTypeAny, {
|
|
4997
6891
|
id: string;
|
|
4998
|
-
selection_token: string;
|
|
4999
|
-
ai_selected_stable_ids: string[];
|
|
5000
6892
|
ts: number;
|
|
5001
6893
|
schema_version: 1;
|
|
5002
6894
|
kind: "fabric-event";
|
|
5003
|
-
event_type: "
|
|
5004
|
-
|
|
5005
|
-
|
|
6895
|
+
event_type: "knowledge_layer_changed";
|
|
6896
|
+
timestamp: string;
|
|
6897
|
+
from_layer: "personal" | "team";
|
|
6898
|
+
to_layer: "personal" | "team";
|
|
6899
|
+
stable_id?: string | undefined;
|
|
5006
6900
|
correlation_id?: string | undefined;
|
|
5007
6901
|
session_id?: string | undefined;
|
|
5008
|
-
|
|
5009
|
-
target_paths?: string[] | undefined;
|
|
6902
|
+
reason?: string | undefined;
|
|
5010
6903
|
}, {
|
|
5011
6904
|
id: string;
|
|
5012
|
-
selection_token: string;
|
|
5013
|
-
ai_selected_stable_ids: string[];
|
|
5014
6905
|
ts: number;
|
|
5015
6906
|
schema_version: 1;
|
|
5016
6907
|
kind: "fabric-event";
|
|
5017
|
-
event_type: "
|
|
5018
|
-
|
|
5019
|
-
|
|
6908
|
+
event_type: "knowledge_layer_changed";
|
|
6909
|
+
timestamp: string;
|
|
6910
|
+
from_layer: "personal" | "team";
|
|
6911
|
+
to_layer: "personal" | "team";
|
|
6912
|
+
stable_id?: string | undefined;
|
|
5020
6913
|
correlation_id?: string | undefined;
|
|
5021
6914
|
session_id?: string | undefined;
|
|
5022
|
-
|
|
5023
|
-
target_paths?: string[] | undefined;
|
|
6915
|
+
reason?: string | undefined;
|
|
5024
6916
|
}>, z.ZodObject<{
|
|
5025
|
-
event_type: z.ZodLiteral<"
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
commit_sha: z.ZodOptional<z.ZodString>;
|
|
5032
|
-
parent_sha: z.ZodOptional<z.ZodString>;
|
|
5033
|
-
parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
|
|
5034
|
-
diff_stat: z.ZodOptional<z.ZodString>;
|
|
5035
|
-
annotation: z.ZodOptional<z.ZodString>;
|
|
5036
|
-
matched_rule_context_ts: z.ZodNullable<z.ZodNumber>;
|
|
5037
|
-
window_ms: z.ZodNumber;
|
|
6917
|
+
event_type: z.ZodLiteral<"knowledge_slug_renamed">;
|
|
6918
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
6919
|
+
timestamp: z.ZodString;
|
|
6920
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6921
|
+
from_slug: z.ZodString;
|
|
6922
|
+
to_slug: z.ZodString;
|
|
5038
6923
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5039
6924
|
id: z.ZodString;
|
|
5040
6925
|
ts: z.ZodNumber;
|
|
@@ -5042,67 +6927,36 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5042
6927
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5043
6928
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5044
6929
|
}, "strip", z.ZodTypeAny, {
|
|
5045
|
-
path: string;
|
|
5046
|
-
ledger_entry_id: string;
|
|
5047
6930
|
id: string;
|
|
5048
|
-
intent: string;
|
|
5049
6931
|
ts: number;
|
|
5050
6932
|
schema_version: 1;
|
|
5051
6933
|
kind: "fabric-event";
|
|
5052
|
-
event_type: "
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
6934
|
+
event_type: "knowledge_slug_renamed";
|
|
6935
|
+
timestamp: string;
|
|
6936
|
+
from_slug: string;
|
|
6937
|
+
to_slug: string;
|
|
6938
|
+
stable_id?: string | undefined;
|
|
5056
6939
|
correlation_id?: string | undefined;
|
|
5057
6940
|
session_id?: string | undefined;
|
|
5058
|
-
|
|
5059
|
-
commit_sha?: string | undefined;
|
|
5060
|
-
parent_sha?: string | undefined;
|
|
5061
|
-
parent_ledger_entry_id?: string | undefined;
|
|
5062
|
-
diff_stat?: string | undefined;
|
|
5063
|
-
ledger_source?: "ai" | "human" | undefined;
|
|
6941
|
+
reason?: string | undefined;
|
|
5064
6942
|
}, {
|
|
5065
|
-
path: string;
|
|
5066
|
-
ledger_entry_id: string;
|
|
5067
6943
|
id: string;
|
|
5068
|
-
intent: string;
|
|
5069
6944
|
ts: number;
|
|
5070
6945
|
schema_version: 1;
|
|
5071
6946
|
kind: "fabric-event";
|
|
5072
|
-
event_type: "
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
6947
|
+
event_type: "knowledge_slug_renamed";
|
|
6948
|
+
timestamp: string;
|
|
6949
|
+
from_slug: string;
|
|
6950
|
+
to_slug: string;
|
|
6951
|
+
stable_id?: string | undefined;
|
|
5076
6952
|
correlation_id?: string | undefined;
|
|
5077
6953
|
session_id?: string | undefined;
|
|
5078
|
-
|
|
5079
|
-
commit_sha?: string | undefined;
|
|
5080
|
-
parent_sha?: string | undefined;
|
|
5081
|
-
parent_ledger_entry_id?: string | undefined;
|
|
5082
|
-
diff_stat?: string | undefined;
|
|
5083
|
-
ledger_source?: "ai" | "human" | undefined;
|
|
6954
|
+
reason?: string | undefined;
|
|
5084
6955
|
}>, z.ZodObject<{
|
|
5085
|
-
event_type: z.ZodLiteral<"
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
stale_files: z.ZodArray<z.ZodString, "many">;
|
|
5090
|
-
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5091
|
-
file: z.ZodString;
|
|
5092
|
-
stable_id: z.ZodString;
|
|
5093
|
-
expected_hash: z.ZodString;
|
|
5094
|
-
actual_hash: z.ZodNullable<z.ZodString>;
|
|
5095
|
-
}, "strip", z.ZodTypeAny, {
|
|
5096
|
-
file: string;
|
|
5097
|
-
stable_id: string;
|
|
5098
|
-
expected_hash: string;
|
|
5099
|
-
actual_hash: string | null;
|
|
5100
|
-
}, {
|
|
5101
|
-
file: string;
|
|
5102
|
-
stable_id: string;
|
|
5103
|
-
expected_hash: string;
|
|
5104
|
-
actual_hash: string | null;
|
|
5105
|
-
}>, "many">>;
|
|
6956
|
+
event_type: z.ZodLiteral<"knowledge_demoted">;
|
|
6957
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
6958
|
+
timestamp: z.ZodString;
|
|
6959
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5106
6960
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5107
6961
|
id: z.ZodString;
|
|
5108
6962
|
ts: z.ZodNumber;
|
|
@@ -5114,42 +6968,28 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5114
6968
|
ts: number;
|
|
5115
6969
|
schema_version: 1;
|
|
5116
6970
|
kind: "fabric-event";
|
|
5117
|
-
event_type: "
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
stale_files: string[];
|
|
6971
|
+
event_type: "knowledge_demoted";
|
|
6972
|
+
timestamp: string;
|
|
6973
|
+
stable_id?: string | undefined;
|
|
5121
6974
|
correlation_id?: string | undefined;
|
|
5122
6975
|
session_id?: string | undefined;
|
|
5123
|
-
|
|
5124
|
-
details?: {
|
|
5125
|
-
file: string;
|
|
5126
|
-
stable_id: string;
|
|
5127
|
-
expected_hash: string;
|
|
5128
|
-
actual_hash: string | null;
|
|
5129
|
-
}[] | undefined;
|
|
6976
|
+
reason?: string | undefined;
|
|
5130
6977
|
}, {
|
|
5131
6978
|
id: string;
|
|
5132
6979
|
ts: number;
|
|
5133
6980
|
schema_version: 1;
|
|
5134
6981
|
kind: "fabric-event";
|
|
5135
|
-
event_type: "
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
stale_files: string[];
|
|
6982
|
+
event_type: "knowledge_demoted";
|
|
6983
|
+
timestamp: string;
|
|
6984
|
+
stable_id?: string | undefined;
|
|
5139
6985
|
correlation_id?: string | undefined;
|
|
5140
6986
|
session_id?: string | undefined;
|
|
5141
|
-
|
|
5142
|
-
details?: {
|
|
5143
|
-
file: string;
|
|
5144
|
-
stable_id: string;
|
|
5145
|
-
expected_hash: string;
|
|
5146
|
-
actual_hash: string | null;
|
|
5147
|
-
}[] | undefined;
|
|
6987
|
+
reason?: string | undefined;
|
|
5148
6988
|
}>, z.ZodObject<{
|
|
5149
|
-
event_type: z.ZodLiteral<"
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
6989
|
+
event_type: z.ZodLiteral<"knowledge_archived">;
|
|
6990
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
6991
|
+
timestamp: z.ZodString;
|
|
6992
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5153
6993
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5154
6994
|
id: z.ZodString;
|
|
5155
6995
|
ts: z.ZodNumber;
|
|
@@ -5161,28 +7001,28 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5161
7001
|
ts: number;
|
|
5162
7002
|
schema_version: 1;
|
|
5163
7003
|
kind: "fabric-event";
|
|
5164
|
-
event_type: "
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
message?: unknown;
|
|
7004
|
+
event_type: "knowledge_archived";
|
|
7005
|
+
timestamp: string;
|
|
7006
|
+
stable_id?: string | undefined;
|
|
5168
7007
|
correlation_id?: string | undefined;
|
|
5169
7008
|
session_id?: string | undefined;
|
|
7009
|
+
reason?: string | undefined;
|
|
5170
7010
|
}, {
|
|
5171
7011
|
id: string;
|
|
5172
7012
|
ts: number;
|
|
5173
7013
|
schema_version: 1;
|
|
5174
7014
|
kind: "fabric-event";
|
|
5175
|
-
event_type: "
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
message?: unknown;
|
|
7015
|
+
event_type: "knowledge_archived";
|
|
7016
|
+
timestamp: string;
|
|
7017
|
+
stable_id?: string | undefined;
|
|
5179
7018
|
correlation_id?: string | undefined;
|
|
5180
7019
|
session_id?: string | undefined;
|
|
7020
|
+
reason?: string | undefined;
|
|
5181
7021
|
}>, z.ZodObject<{
|
|
5182
|
-
event_type: z.ZodLiteral<"
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
7022
|
+
event_type: z.ZodLiteral<"knowledge_archive_attempted">;
|
|
7023
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
7024
|
+
timestamp: z.ZodString;
|
|
7025
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5186
7026
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5187
7027
|
id: z.ZodString;
|
|
5188
7028
|
ts: z.ZodNumber;
|
|
@@ -5194,28 +7034,29 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5194
7034
|
ts: number;
|
|
5195
7035
|
schema_version: 1;
|
|
5196
7036
|
kind: "fabric-event";
|
|
5197
|
-
event_type: "
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
rules_count: number;
|
|
7037
|
+
event_type: "knowledge_archive_attempted";
|
|
7038
|
+
timestamp: string;
|
|
7039
|
+
stable_id?: string | undefined;
|
|
5201
7040
|
correlation_id?: string | undefined;
|
|
5202
7041
|
session_id?: string | undefined;
|
|
7042
|
+
reason?: string | undefined;
|
|
5203
7043
|
}, {
|
|
5204
7044
|
id: string;
|
|
5205
7045
|
ts: number;
|
|
5206
7046
|
schema_version: 1;
|
|
5207
7047
|
kind: "fabric-event";
|
|
5208
|
-
event_type: "
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
rules_count: number;
|
|
7048
|
+
event_type: "knowledge_archive_attempted";
|
|
7049
|
+
timestamp: string;
|
|
7050
|
+
stable_id?: string | undefined;
|
|
5212
7051
|
correlation_id?: string | undefined;
|
|
5213
7052
|
session_id?: string | undefined;
|
|
7053
|
+
reason?: string | undefined;
|
|
5214
7054
|
}>, z.ZodObject<{
|
|
5215
|
-
event_type: z.ZodLiteral<"
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
7055
|
+
event_type: z.ZodLiteral<"knowledge_deferred">;
|
|
7056
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
7057
|
+
timestamp: z.ZodString;
|
|
7058
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7059
|
+
until: z.ZodOptional<z.ZodString>;
|
|
5219
7060
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5220
7061
|
id: z.ZodString;
|
|
5221
7062
|
ts: z.ZodNumber;
|
|
@@ -5227,27 +7068,30 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5227
7068
|
ts: number;
|
|
5228
7069
|
schema_version: 1;
|
|
5229
7070
|
kind: "fabric-event";
|
|
5230
|
-
event_type: "
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
corrupted_path: string;
|
|
7071
|
+
event_type: "knowledge_deferred";
|
|
7072
|
+
timestamp: string;
|
|
7073
|
+
stable_id?: string | undefined;
|
|
5234
7074
|
correlation_id?: string | undefined;
|
|
5235
7075
|
session_id?: string | undefined;
|
|
7076
|
+
reason?: string | undefined;
|
|
7077
|
+
until?: string | undefined;
|
|
5236
7078
|
}, {
|
|
5237
7079
|
id: string;
|
|
5238
7080
|
ts: number;
|
|
5239
7081
|
schema_version: 1;
|
|
5240
7082
|
kind: "fabric-event";
|
|
5241
|
-
event_type: "
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
corrupted_path: string;
|
|
7083
|
+
event_type: "knowledge_deferred";
|
|
7084
|
+
timestamp: string;
|
|
7085
|
+
stable_id?: string | undefined;
|
|
5245
7086
|
correlation_id?: string | undefined;
|
|
5246
7087
|
session_id?: string | undefined;
|
|
7088
|
+
reason?: string | undefined;
|
|
7089
|
+
until?: string | undefined;
|
|
5247
7090
|
}>, z.ZodObject<{
|
|
5248
|
-
event_type: z.ZodLiteral<"
|
|
5249
|
-
|
|
5250
|
-
|
|
7091
|
+
event_type: z.ZodLiteral<"knowledge_rejected">;
|
|
7092
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
7093
|
+
timestamp: z.ZodString;
|
|
7094
|
+
reason: z.ZodString;
|
|
5251
7095
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5252
7096
|
id: z.ZodString;
|
|
5253
7097
|
ts: z.ZodNumber;
|
|
@@ -5256,29 +7100,31 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5256
7100
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5257
7101
|
}, "strip", z.ZodTypeAny, {
|
|
5258
7102
|
id: string;
|
|
5259
|
-
|
|
7103
|
+
reason: string;
|
|
5260
7104
|
ts: number;
|
|
5261
7105
|
schema_version: 1;
|
|
5262
7106
|
kind: "fabric-event";
|
|
5263
|
-
event_type: "
|
|
5264
|
-
|
|
7107
|
+
event_type: "knowledge_rejected";
|
|
7108
|
+
timestamp: string;
|
|
7109
|
+
stable_id?: string | undefined;
|
|
5265
7110
|
correlation_id?: string | undefined;
|
|
5266
7111
|
session_id?: string | undefined;
|
|
5267
7112
|
}, {
|
|
5268
7113
|
id: string;
|
|
5269
|
-
|
|
7114
|
+
reason: string;
|
|
5270
7115
|
ts: number;
|
|
5271
7116
|
schema_version: 1;
|
|
5272
7117
|
kind: "fabric-event";
|
|
5273
|
-
event_type: "
|
|
5274
|
-
|
|
7118
|
+
event_type: "knowledge_rejected";
|
|
7119
|
+
timestamp: string;
|
|
7120
|
+
stable_id?: string | undefined;
|
|
5275
7121
|
correlation_id?: string | undefined;
|
|
5276
7122
|
session_id?: string | undefined;
|
|
5277
7123
|
}>, z.ZodObject<{
|
|
5278
|
-
event_type: z.ZodLiteral<"
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
7124
|
+
event_type: z.ZodLiteral<"knowledge_consumed">;
|
|
7125
|
+
stable_id: z.ZodString;
|
|
7126
|
+
consumed_at: z.ZodString;
|
|
7127
|
+
client_hash: z.ZodString;
|
|
5282
7128
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5283
7129
|
id: z.ZodString;
|
|
5284
7130
|
ts: z.ZodNumber;
|
|
@@ -5287,32 +7133,33 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5287
7133
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5288
7134
|
}, "strip", z.ZodTypeAny, {
|
|
5289
7135
|
id: string;
|
|
5290
|
-
|
|
7136
|
+
stable_id: string;
|
|
7137
|
+
client_hash: string;
|
|
5291
7138
|
ts: number;
|
|
5292
7139
|
schema_version: 1;
|
|
5293
7140
|
kind: "fabric-event";
|
|
5294
|
-
event_type: "
|
|
5295
|
-
|
|
5296
|
-
duration_ms: number;
|
|
7141
|
+
event_type: "knowledge_consumed";
|
|
7142
|
+
consumed_at: string;
|
|
5297
7143
|
correlation_id?: string | undefined;
|
|
5298
7144
|
session_id?: string | undefined;
|
|
5299
7145
|
}, {
|
|
5300
7146
|
id: string;
|
|
5301
|
-
|
|
7147
|
+
stable_id: string;
|
|
7148
|
+
client_hash: string;
|
|
5302
7149
|
ts: number;
|
|
5303
7150
|
schema_version: 1;
|
|
5304
7151
|
kind: "fabric-event";
|
|
5305
|
-
event_type: "
|
|
5306
|
-
|
|
5307
|
-
duration_ms: number;
|
|
7152
|
+
event_type: "knowledge_consumed";
|
|
7153
|
+
consumed_at: string;
|
|
5308
7154
|
correlation_id?: string | undefined;
|
|
5309
7155
|
session_id?: string | undefined;
|
|
5310
7156
|
}>, z.ZodObject<{
|
|
5311
|
-
event_type: z.ZodLiteral<"
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
7157
|
+
event_type: z.ZodLiteral<"knowledge_scope_degraded">;
|
|
7158
|
+
stable_id: z.ZodString;
|
|
7159
|
+
timestamp: z.ZodString;
|
|
7160
|
+
from_scope: z.ZodEnum<["narrow", "broad"]>;
|
|
7161
|
+
to_scope: z.ZodEnum<["narrow", "broad"]>;
|
|
7162
|
+
reason: z.ZodString;
|
|
5316
7163
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5317
7164
|
id: z.ZodString;
|
|
5318
7165
|
ts: z.ZodNumber;
|
|
@@ -5321,32 +7168,35 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5321
7168
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5322
7169
|
}, "strip", z.ZodTypeAny, {
|
|
5323
7170
|
id: string;
|
|
5324
|
-
|
|
7171
|
+
stable_id: string;
|
|
7172
|
+
reason: string;
|
|
5325
7173
|
ts: number;
|
|
5326
7174
|
schema_version: 1;
|
|
5327
7175
|
kind: "fabric-event";
|
|
5328
|
-
event_type: "
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
7176
|
+
event_type: "knowledge_scope_degraded";
|
|
7177
|
+
timestamp: string;
|
|
7178
|
+
from_scope: "narrow" | "broad";
|
|
7179
|
+
to_scope: "narrow" | "broad";
|
|
5332
7180
|
correlation_id?: string | undefined;
|
|
5333
7181
|
session_id?: string | undefined;
|
|
5334
7182
|
}, {
|
|
5335
7183
|
id: string;
|
|
5336
|
-
|
|
7184
|
+
stable_id: string;
|
|
7185
|
+
reason: string;
|
|
5337
7186
|
ts: number;
|
|
5338
7187
|
schema_version: 1;
|
|
5339
7188
|
kind: "fabric-event";
|
|
5340
|
-
event_type: "
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
7189
|
+
event_type: "knowledge_scope_degraded";
|
|
7190
|
+
timestamp: string;
|
|
7191
|
+
from_scope: "narrow" | "broad";
|
|
7192
|
+
to_scope: "narrow" | "broad";
|
|
5344
7193
|
correlation_id?: string | undefined;
|
|
5345
7194
|
session_id?: string | undefined;
|
|
5346
7195
|
}>, z.ZodObject<{
|
|
5347
|
-
event_type: z.ZodLiteral<"
|
|
5348
|
-
|
|
5349
|
-
|
|
7196
|
+
event_type: z.ZodLiteral<"pending_auto_archived">;
|
|
7197
|
+
pending_path: z.ZodString;
|
|
7198
|
+
archived_to: z.ZodString;
|
|
7199
|
+
reason: z.ZodString;
|
|
5350
7200
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5351
7201
|
id: z.ZodString;
|
|
5352
7202
|
ts: z.ZodNumber;
|
|
@@ -5354,29 +7204,31 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5354
7204
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5355
7205
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5356
7206
|
}, "strip", z.ZodTypeAny, {
|
|
7207
|
+
pending_path: string;
|
|
5357
7208
|
id: string;
|
|
7209
|
+
reason: string;
|
|
5358
7210
|
ts: number;
|
|
5359
7211
|
schema_version: 1;
|
|
5360
7212
|
kind: "fabric-event";
|
|
5361
|
-
event_type: "
|
|
5362
|
-
|
|
5363
|
-
to: string;
|
|
7213
|
+
event_type: "pending_auto_archived";
|
|
7214
|
+
archived_to: string;
|
|
5364
7215
|
correlation_id?: string | undefined;
|
|
5365
7216
|
session_id?: string | undefined;
|
|
5366
7217
|
}, {
|
|
7218
|
+
pending_path: string;
|
|
5367
7219
|
id: string;
|
|
7220
|
+
reason: string;
|
|
5368
7221
|
ts: number;
|
|
5369
7222
|
schema_version: 1;
|
|
5370
7223
|
kind: "fabric-event";
|
|
5371
|
-
event_type: "
|
|
5372
|
-
|
|
5373
|
-
to: string;
|
|
7224
|
+
event_type: "pending_auto_archived";
|
|
7225
|
+
archived_to: string;
|
|
5374
7226
|
correlation_id?: string | undefined;
|
|
5375
7227
|
session_id?: string | undefined;
|
|
5376
7228
|
}>, z.ZodObject<{
|
|
5377
|
-
event_type: z.ZodLiteral<"
|
|
5378
|
-
|
|
5379
|
-
|
|
7229
|
+
event_type: z.ZodLiteral<"knowledge_path_dangled">;
|
|
7230
|
+
stable_id: z.ZodString;
|
|
7231
|
+
removed_glob: z.ZodString;
|
|
5380
7232
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5381
7233
|
id: z.ZodString;
|
|
5382
7234
|
ts: z.ZodNumber;
|
|
@@ -5385,28 +7237,30 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5385
7237
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5386
7238
|
}, "strip", z.ZodTypeAny, {
|
|
5387
7239
|
id: string;
|
|
7240
|
+
stable_id: string;
|
|
5388
7241
|
ts: number;
|
|
5389
7242
|
schema_version: 1;
|
|
5390
7243
|
kind: "fabric-event";
|
|
5391
|
-
event_type: "
|
|
5392
|
-
|
|
5393
|
-
to: string;
|
|
7244
|
+
event_type: "knowledge_path_dangled";
|
|
7245
|
+
removed_glob: string;
|
|
5394
7246
|
correlation_id?: string | undefined;
|
|
5395
7247
|
session_id?: string | undefined;
|
|
5396
7248
|
}, {
|
|
5397
7249
|
id: string;
|
|
7250
|
+
stable_id: string;
|
|
5398
7251
|
ts: number;
|
|
5399
7252
|
schema_version: 1;
|
|
5400
7253
|
kind: "fabric-event";
|
|
5401
|
-
event_type: "
|
|
5402
|
-
|
|
5403
|
-
to: string;
|
|
7254
|
+
event_type: "knowledge_path_dangled";
|
|
7255
|
+
removed_glob: string;
|
|
5404
7256
|
correlation_id?: string | undefined;
|
|
5405
7257
|
session_id?: string | undefined;
|
|
5406
7258
|
}>, z.ZodObject<{
|
|
5407
|
-
event_type: z.ZodLiteral<"
|
|
5408
|
-
|
|
5409
|
-
|
|
7259
|
+
event_type: z.ZodLiteral<"doctor_run">;
|
|
7260
|
+
mode: z.ZodEnum<["lint", "apply-lint"]>;
|
|
7261
|
+
issues: z.ZodNumber;
|
|
7262
|
+
mutations: z.ZodOptional<z.ZodNumber>;
|
|
7263
|
+
timestamp: z.ZodString;
|
|
5410
7264
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5411
7265
|
id: z.ZodString;
|
|
5412
7266
|
ts: z.ZodNumber;
|
|
@@ -5414,30 +7268,34 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5414
7268
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5415
7269
|
session_id: z.ZodOptional<z.ZodString>;
|
|
5416
7270
|
}, "strip", z.ZodTypeAny, {
|
|
7271
|
+
issues: number;
|
|
5417
7272
|
id: string;
|
|
5418
7273
|
ts: number;
|
|
5419
7274
|
schema_version: 1;
|
|
5420
7275
|
kind: "fabric-event";
|
|
5421
|
-
event_type: "
|
|
5422
|
-
|
|
5423
|
-
|
|
7276
|
+
event_type: "doctor_run";
|
|
7277
|
+
timestamp: string;
|
|
7278
|
+
mode: "lint" | "apply-lint";
|
|
5424
7279
|
correlation_id?: string | undefined;
|
|
5425
7280
|
session_id?: string | undefined;
|
|
7281
|
+
mutations?: number | undefined;
|
|
5426
7282
|
}, {
|
|
7283
|
+
issues: number;
|
|
5427
7284
|
id: string;
|
|
5428
7285
|
ts: number;
|
|
5429
7286
|
schema_version: 1;
|
|
5430
7287
|
kind: "fabric-event";
|
|
5431
|
-
event_type: "
|
|
5432
|
-
|
|
5433
|
-
|
|
7288
|
+
event_type: "doctor_run";
|
|
7289
|
+
timestamp: string;
|
|
7290
|
+
mode: "lint" | "apply-lint";
|
|
5434
7291
|
correlation_id?: string | undefined;
|
|
5435
7292
|
session_id?: string | undefined;
|
|
7293
|
+
mutations?: number | undefined;
|
|
5436
7294
|
}>, z.ZodObject<{
|
|
5437
|
-
event_type: z.ZodLiteral<"
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
7295
|
+
event_type: z.ZodLiteral<"relevance_migration_run">;
|
|
7296
|
+
timestamp: z.ZodString;
|
|
7297
|
+
scanned_count: z.ZodNumber;
|
|
7298
|
+
touched_count: z.ZodNumber;
|
|
5441
7299
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5442
7300
|
id: z.ZodString;
|
|
5443
7301
|
ts: z.ZodNumber;
|
|
@@ -5449,23 +7307,23 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
5449
7307
|
ts: number;
|
|
5450
7308
|
schema_version: 1;
|
|
5451
7309
|
kind: "fabric-event";
|
|
5452
|
-
event_type: "
|
|
5453
|
-
|
|
5454
|
-
|
|
7310
|
+
event_type: "relevance_migration_run";
|
|
7311
|
+
timestamp: string;
|
|
7312
|
+
scanned_count: number;
|
|
7313
|
+
touched_count: number;
|
|
5455
7314
|
correlation_id?: string | undefined;
|
|
5456
7315
|
session_id?: string | undefined;
|
|
5457
|
-
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
5458
7316
|
}, {
|
|
5459
7317
|
id: string;
|
|
5460
7318
|
ts: number;
|
|
5461
7319
|
schema_version: 1;
|
|
5462
7320
|
kind: "fabric-event";
|
|
5463
|
-
event_type: "
|
|
5464
|
-
|
|
5465
|
-
|
|
7321
|
+
event_type: "relevance_migration_run";
|
|
7322
|
+
timestamp: string;
|
|
7323
|
+
scanned_count: number;
|
|
7324
|
+
touched_count: number;
|
|
5466
7325
|
correlation_id?: string | undefined;
|
|
5467
7326
|
session_id?: string | undefined;
|
|
5468
|
-
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
5469
7327
|
}>]>;
|
|
5470
7328
|
type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
|
|
5471
7329
|
type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
|
|
@@ -5482,9 +7340,26 @@ type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventS
|
|
|
5482
7340
|
type ClaudeHookPathMigratedEvent = z.infer<typeof claudeHookPathMigratedEventSchema>;
|
|
5483
7341
|
type CodexSkillPathMigratedEvent = z.infer<typeof codexSkillPathMigratedEventSchema>;
|
|
5484
7342
|
type InitScanCompletedEvent = z.infer<typeof initScanCompletedEventSchema>;
|
|
5485
|
-
type
|
|
7343
|
+
type KnowledgeProposedEvent = z.infer<typeof knowledgeProposedEventSchema>;
|
|
7344
|
+
type KnowledgePromoteStartedEvent = z.infer<typeof knowledgePromoteStartedEventSchema>;
|
|
7345
|
+
type KnowledgePromotedEvent = z.infer<typeof knowledgePromotedEventSchema>;
|
|
7346
|
+
type KnowledgePromoteFailedEvent = z.infer<typeof knowledgePromoteFailedEventSchema>;
|
|
7347
|
+
type KnowledgeLayerChangedEvent = z.infer<typeof knowledgeLayerChangedEventSchema>;
|
|
7348
|
+
type KnowledgeSlugRenamedEvent = z.infer<typeof knowledgeSlugRenamedEventSchema>;
|
|
7349
|
+
type KnowledgeDemotedEvent = z.infer<typeof knowledgeDemotedEventSchema>;
|
|
7350
|
+
type KnowledgeArchivedEvent = z.infer<typeof knowledgeArchivedEventSchema>;
|
|
7351
|
+
type KnowledgeArchiveAttemptedEvent = z.infer<typeof knowledgeArchiveAttemptedEventSchema>;
|
|
7352
|
+
type KnowledgeDeferredEvent = z.infer<typeof knowledgeDeferredEventSchema>;
|
|
7353
|
+
type KnowledgeRejectedEvent = z.infer<typeof knowledgeRejectedEventSchema>;
|
|
7354
|
+
type KnowledgeConsumedEvent = z.infer<typeof knowledgeConsumedEventSchema>;
|
|
7355
|
+
type KnowledgeScopeDegradedEvent = z.infer<typeof knowledgeScopeDegradedEventSchema>;
|
|
7356
|
+
type PendingAutoArchivedEvent = z.infer<typeof pendingAutoArchivedEventSchema>;
|
|
7357
|
+
type KnowledgePathDangledEvent = z.infer<typeof knowledgePathDangledEventSchema>;
|
|
7358
|
+
type DoctorRunEvent = z.infer<typeof doctorRunEventSchema>;
|
|
7359
|
+
type RelevanceMigrationRunEvent = z.infer<typeof relevanceMigrationRunEventSchema>;
|
|
7360
|
+
type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent;
|
|
5486
7361
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
5487
7362
|
type EventLedgerEventInputFor<T extends EventLedgerEvent> = T extends EventLedgerEvent ? Omit<T, "kind" | "id" | "ts" | "schema_version" | "correlation_id" | "session_id"> & Partial<Pick<T, "id" | "ts" | "correlation_id" | "session_id">> : never;
|
|
5488
7363
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
5489
7364
|
|
|
5490
|
-
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type CandidateFileEntry, type CandidateFileFamily, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent,
|
|
7365
|
+
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type CandidateFileEntry, type CandidateFileFamily, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeLayerChangedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, StableId, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, auditModeSchema, candidateFileEntrySchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, defaultLayerFilterSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeLanguageSchema, knowledgeLayerChangedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, withDerivedAgentsMetaNodeDefaults };
|