@fenglimg/fabric-shared 1.8.0-rc.3 → 2.0.0-rc.1
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-KV27CZH3.js → chunk-HACPXMLL.js} +102 -11
- package/dist/{chunk-FEEWLYO3.js → chunk-KHIM6MWS.js} +6 -6
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +1037 -447
- package/dist/index.js +103 -49
- package/dist/node.js +172 -3
- package/dist/schemas/api-contracts.d.ts +266 -29
- package/dist/schemas/api-contracts.js +17 -1
- package/dist/types/index.d.ts +24 -1
- package/package.json +3 -7
- package/dist/chunk-GI6L6VTT.js +0 -176
- package/dist/node/bootstrap-guide.d.ts +0 -12
- package/dist/node/bootstrap-guide.js +0 -52
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AgentsMetaNode, AgentsIdentitySource, AgentsLayer, AgentsTopologyType, HumanLockEntry, AgentsMeta, LedgerEntry } from './types/index.js';
|
|
2
|
-
export { AgentsActivationTier, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, McpPayloadLimits, RuleDescription, RuleDescriptionIndexItem } from './types/index.js';
|
|
2
|
+
export { AgentsActivationTier, AgentsMetaCountersEnvelope, AgentsMetaKnowledgeTypeCounters, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, 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, getRulesAnnotations, getRulesInputSchema, getRulesOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextInputSchema, planContextOutputSchema, ruleSectionsAnnotations, ruleSectionsInputSchema, ruleSectionsOutputSchema, structuredWarningSchema } from './schemas/api-contracts.js';
|
|
6
7
|
|
|
7
8
|
declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
|
|
8
9
|
declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
|
|
@@ -18,6 +19,13 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
18
19
|
impact: z.ZodArray<z.ZodString, "many">;
|
|
19
20
|
must_read_if: z.ZodString;
|
|
20
21
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22
|
+
id: z.ZodOptional<z.ZodString>;
|
|
23
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
24
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
25
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
26
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
27
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
28
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
21
29
|
}, "strict", z.ZodTypeAny, {
|
|
22
30
|
summary: string;
|
|
23
31
|
intent_clues: string[];
|
|
@@ -25,6 +33,13 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
25
33
|
impact: string[];
|
|
26
34
|
must_read_if: string;
|
|
27
35
|
entities?: string[] | undefined;
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
38
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
39
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
40
|
+
layer_reason?: string | undefined;
|
|
41
|
+
created_at?: string | undefined;
|
|
42
|
+
tags?: string[] | undefined;
|
|
28
43
|
}, {
|
|
29
44
|
summary: string;
|
|
30
45
|
intent_clues: string[];
|
|
@@ -32,6 +47,13 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
32
47
|
impact: string[];
|
|
33
48
|
must_read_if: string;
|
|
34
49
|
entities?: string[] | undefined;
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
52
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
53
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
54
|
+
layer_reason?: string | undefined;
|
|
55
|
+
created_at?: string | undefined;
|
|
56
|
+
tags?: string[] | undefined;
|
|
35
57
|
}>;
|
|
36
58
|
declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
37
59
|
stable_id: z.ZodString;
|
|
@@ -45,6 +67,13 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
45
67
|
impact: z.ZodArray<z.ZodString, "many">;
|
|
46
68
|
must_read_if: z.ZodString;
|
|
47
69
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
70
|
+
id: z.ZodOptional<z.ZodString>;
|
|
71
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
72
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
73
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
74
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
75
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
76
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
48
77
|
}, "strict", z.ZodTypeAny, {
|
|
49
78
|
summary: string;
|
|
50
79
|
intent_clues: string[];
|
|
@@ -52,6 +81,13 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
52
81
|
impact: string[];
|
|
53
82
|
must_read_if: string;
|
|
54
83
|
entities?: string[] | undefined;
|
|
84
|
+
id?: string | undefined;
|
|
85
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
86
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
87
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
88
|
+
layer_reason?: string | undefined;
|
|
89
|
+
created_at?: string | undefined;
|
|
90
|
+
tags?: string[] | undefined;
|
|
55
91
|
}, {
|
|
56
92
|
summary: string;
|
|
57
93
|
intent_clues: string[];
|
|
@@ -59,6 +95,13 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
59
95
|
impact: string[];
|
|
60
96
|
must_read_if: string;
|
|
61
97
|
entities?: string[] | undefined;
|
|
98
|
+
id?: string | undefined;
|
|
99
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
100
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
101
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
102
|
+
layer_reason?: string | undefined;
|
|
103
|
+
created_at?: string | undefined;
|
|
104
|
+
tags?: string[] | undefined;
|
|
62
105
|
}>;
|
|
63
106
|
}, "strict", z.ZodTypeAny, {
|
|
64
107
|
description: {
|
|
@@ -68,9 +111,16 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
68
111
|
impact: string[];
|
|
69
112
|
must_read_if: string;
|
|
70
113
|
entities?: string[] | undefined;
|
|
114
|
+
id?: string | undefined;
|
|
115
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
116
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
117
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
118
|
+
layer_reason?: string | undefined;
|
|
119
|
+
created_at?: string | undefined;
|
|
120
|
+
tags?: string[] | undefined;
|
|
71
121
|
};
|
|
72
|
-
level: "L0" | "L1" | "L2";
|
|
73
122
|
stable_id: string;
|
|
123
|
+
level: "L0" | "L1" | "L2";
|
|
74
124
|
required: boolean;
|
|
75
125
|
selectable: boolean;
|
|
76
126
|
}, {
|
|
@@ -81,9 +131,16 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
81
131
|
impact: string[];
|
|
82
132
|
must_read_if: string;
|
|
83
133
|
entities?: string[] | undefined;
|
|
134
|
+
id?: string | undefined;
|
|
135
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
136
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
137
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
138
|
+
layer_reason?: string | undefined;
|
|
139
|
+
created_at?: string | undefined;
|
|
140
|
+
tags?: string[] | undefined;
|
|
84
141
|
};
|
|
85
|
-
level: "L0" | "L1" | "L2";
|
|
86
142
|
stable_id: string;
|
|
143
|
+
level: "L0" | "L1" | "L2";
|
|
87
144
|
required: boolean;
|
|
88
145
|
selectable: boolean;
|
|
89
146
|
}>;
|
|
@@ -116,6 +173,13 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
173
|
impact: z.ZodArray<z.ZodString, "many">;
|
|
117
174
|
must_read_if: z.ZodString;
|
|
118
175
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
176
|
+
id: z.ZodOptional<z.ZodString>;
|
|
177
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
178
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
179
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
180
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
181
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
182
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
119
183
|
}, "strict", z.ZodTypeAny, {
|
|
120
184
|
summary: string;
|
|
121
185
|
intent_clues: string[];
|
|
@@ -123,6 +187,13 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
123
187
|
impact: string[];
|
|
124
188
|
must_read_if: string;
|
|
125
189
|
entities?: string[] | undefined;
|
|
190
|
+
id?: string | undefined;
|
|
191
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
192
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
193
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
194
|
+
layer_reason?: string | undefined;
|
|
195
|
+
created_at?: string | undefined;
|
|
196
|
+
tags?: string[] | undefined;
|
|
126
197
|
}, {
|
|
127
198
|
summary: string;
|
|
128
199
|
intent_clues: string[];
|
|
@@ -130,6 +201,13 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
130
201
|
impact: string[];
|
|
131
202
|
must_read_if: string;
|
|
132
203
|
entities?: string[] | undefined;
|
|
204
|
+
id?: string | undefined;
|
|
205
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
206
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
207
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
208
|
+
layer_reason?: string | undefined;
|
|
209
|
+
created_at?: string | undefined;
|
|
210
|
+
tags?: string[] | undefined;
|
|
133
211
|
}>>;
|
|
134
212
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
135
213
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -147,16 +225,23 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
147
225
|
impact: string[];
|
|
148
226
|
must_read_if: string;
|
|
149
227
|
entities?: string[] | undefined;
|
|
228
|
+
id?: string | undefined;
|
|
229
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
230
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
231
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
232
|
+
layer_reason?: string | undefined;
|
|
233
|
+
created_at?: string | undefined;
|
|
234
|
+
tags?: string[] | undefined;
|
|
150
235
|
} | undefined;
|
|
151
|
-
content_ref?: string | undefined;
|
|
152
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
153
236
|
stable_id?: string | undefined;
|
|
237
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
238
|
+
sections?: string[] | undefined;
|
|
239
|
+
content_ref?: string | undefined;
|
|
154
240
|
identity_source?: "declared" | "derived" | undefined;
|
|
155
241
|
activation?: {
|
|
156
242
|
tier: "always" | "path" | "description";
|
|
157
243
|
description?: string | undefined;
|
|
158
244
|
} | undefined;
|
|
159
|
-
sections?: string[] | undefined;
|
|
160
245
|
}, {
|
|
161
246
|
file: string;
|
|
162
247
|
priority: "high" | "medium" | "low";
|
|
@@ -172,16 +257,23 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
172
257
|
impact: string[];
|
|
173
258
|
must_read_if: string;
|
|
174
259
|
entities?: string[] | undefined;
|
|
260
|
+
id?: string | undefined;
|
|
261
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
262
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
263
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
264
|
+
layer_reason?: string | undefined;
|
|
265
|
+
created_at?: string | undefined;
|
|
266
|
+
tags?: string[] | undefined;
|
|
175
267
|
} | undefined;
|
|
176
|
-
content_ref?: string | undefined;
|
|
177
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
178
268
|
stable_id?: string | undefined;
|
|
269
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
270
|
+
sections?: string[] | undefined;
|
|
271
|
+
content_ref?: string | undefined;
|
|
179
272
|
identity_source?: "declared" | "derived" | undefined;
|
|
180
273
|
activation?: {
|
|
181
274
|
tier: "always" | "path" | "description";
|
|
182
275
|
description?: string | undefined;
|
|
183
276
|
} | undefined;
|
|
184
|
-
sections?: string[] | undefined;
|
|
185
277
|
}>, {
|
|
186
278
|
file: string;
|
|
187
279
|
priority: "high" | "medium" | "low";
|
|
@@ -197,17 +289,95 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
197
289
|
impact: string[];
|
|
198
290
|
must_read_if: string;
|
|
199
291
|
entities?: string[] | undefined;
|
|
292
|
+
id?: string | undefined;
|
|
293
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
294
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
295
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
296
|
+
layer_reason?: string | undefined;
|
|
297
|
+
created_at?: string | undefined;
|
|
298
|
+
tags?: string[] | undefined;
|
|
200
299
|
} | undefined;
|
|
201
|
-
content_ref?: string | undefined;
|
|
202
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
203
300
|
stable_id?: string | undefined;
|
|
301
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
302
|
+
sections?: string[] | undefined;
|
|
303
|
+
content_ref?: string | undefined;
|
|
204
304
|
identity_source?: "declared" | "derived" | undefined;
|
|
205
305
|
activation?: {
|
|
206
306
|
tier: "always" | "path" | "description";
|
|
207
307
|
description?: string | undefined;
|
|
208
308
|
} | undefined;
|
|
209
|
-
sections?: string[] | undefined;
|
|
210
309
|
}, unknown>;
|
|
310
|
+
declare const AgentsMetaCountersSchema: z.ZodDefault<z.ZodObject<{
|
|
311
|
+
KP: z.ZodDefault<z.ZodObject<{
|
|
312
|
+
MOD: z.ZodDefault<z.ZodNumber>;
|
|
313
|
+
DEC: z.ZodDefault<z.ZodNumber>;
|
|
314
|
+
GLD: z.ZodDefault<z.ZodNumber>;
|
|
315
|
+
PIT: z.ZodDefault<z.ZodNumber>;
|
|
316
|
+
PRO: z.ZodDefault<z.ZodNumber>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
MOD: number;
|
|
319
|
+
DEC: number;
|
|
320
|
+
GLD: number;
|
|
321
|
+
PIT: number;
|
|
322
|
+
PRO: number;
|
|
323
|
+
}, {
|
|
324
|
+
MOD?: number | undefined;
|
|
325
|
+
DEC?: number | undefined;
|
|
326
|
+
GLD?: number | undefined;
|
|
327
|
+
PIT?: number | undefined;
|
|
328
|
+
PRO?: number | undefined;
|
|
329
|
+
}>>;
|
|
330
|
+
KT: z.ZodDefault<z.ZodObject<{
|
|
331
|
+
MOD: z.ZodDefault<z.ZodNumber>;
|
|
332
|
+
DEC: z.ZodDefault<z.ZodNumber>;
|
|
333
|
+
GLD: z.ZodDefault<z.ZodNumber>;
|
|
334
|
+
PIT: z.ZodDefault<z.ZodNumber>;
|
|
335
|
+
PRO: z.ZodDefault<z.ZodNumber>;
|
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
MOD: number;
|
|
338
|
+
DEC: number;
|
|
339
|
+
GLD: number;
|
|
340
|
+
PIT: number;
|
|
341
|
+
PRO: number;
|
|
342
|
+
}, {
|
|
343
|
+
MOD?: number | undefined;
|
|
344
|
+
DEC?: number | undefined;
|
|
345
|
+
GLD?: number | undefined;
|
|
346
|
+
PIT?: number | undefined;
|
|
347
|
+
PRO?: number | undefined;
|
|
348
|
+
}>>;
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
KP: {
|
|
351
|
+
MOD: number;
|
|
352
|
+
DEC: number;
|
|
353
|
+
GLD: number;
|
|
354
|
+
PIT: number;
|
|
355
|
+
PRO: number;
|
|
356
|
+
};
|
|
357
|
+
KT: {
|
|
358
|
+
MOD: number;
|
|
359
|
+
DEC: number;
|
|
360
|
+
GLD: number;
|
|
361
|
+
PIT: number;
|
|
362
|
+
PRO: number;
|
|
363
|
+
};
|
|
364
|
+
}, {
|
|
365
|
+
KP?: {
|
|
366
|
+
MOD?: number | undefined;
|
|
367
|
+
DEC?: number | undefined;
|
|
368
|
+
GLD?: number | undefined;
|
|
369
|
+
PIT?: number | undefined;
|
|
370
|
+
PRO?: number | undefined;
|
|
371
|
+
} | undefined;
|
|
372
|
+
KT?: {
|
|
373
|
+
MOD?: number | undefined;
|
|
374
|
+
DEC?: number | undefined;
|
|
375
|
+
GLD?: number | undefined;
|
|
376
|
+
PIT?: number | undefined;
|
|
377
|
+
PRO?: number | undefined;
|
|
378
|
+
} | undefined;
|
|
379
|
+
}>>;
|
|
380
|
+
type AgentsMetaCounters = z.infer<typeof AgentsMetaCountersSchema>;
|
|
211
381
|
declare const agentsMetaSchema: z.ZodObject<{
|
|
212
382
|
revision: z.ZodString;
|
|
213
383
|
nodes: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
@@ -239,6 +409,13 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
239
409
|
impact: z.ZodArray<z.ZodString, "many">;
|
|
240
410
|
must_read_if: z.ZodString;
|
|
241
411
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
412
|
+
id: z.ZodOptional<z.ZodString>;
|
|
413
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
414
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
415
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
416
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
417
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
418
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
242
419
|
}, "strict", z.ZodTypeAny, {
|
|
243
420
|
summary: string;
|
|
244
421
|
intent_clues: string[];
|
|
@@ -246,6 +423,13 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
246
423
|
impact: string[];
|
|
247
424
|
must_read_if: string;
|
|
248
425
|
entities?: string[] | undefined;
|
|
426
|
+
id?: string | undefined;
|
|
427
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
428
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
429
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
430
|
+
layer_reason?: string | undefined;
|
|
431
|
+
created_at?: string | undefined;
|
|
432
|
+
tags?: string[] | undefined;
|
|
249
433
|
}, {
|
|
250
434
|
summary: string;
|
|
251
435
|
intent_clues: string[];
|
|
@@ -253,6 +437,13 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
253
437
|
impact: string[];
|
|
254
438
|
must_read_if: string;
|
|
255
439
|
entities?: string[] | undefined;
|
|
440
|
+
id?: string | undefined;
|
|
441
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
442
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
443
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
444
|
+
layer_reason?: string | undefined;
|
|
445
|
+
created_at?: string | undefined;
|
|
446
|
+
tags?: string[] | undefined;
|
|
256
447
|
}>>;
|
|
257
448
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
258
449
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -270,16 +461,23 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
270
461
|
impact: string[];
|
|
271
462
|
must_read_if: string;
|
|
272
463
|
entities?: string[] | undefined;
|
|
464
|
+
id?: string | undefined;
|
|
465
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
466
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
467
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
468
|
+
layer_reason?: string | undefined;
|
|
469
|
+
created_at?: string | undefined;
|
|
470
|
+
tags?: string[] | undefined;
|
|
273
471
|
} | undefined;
|
|
274
|
-
content_ref?: string | undefined;
|
|
275
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
276
472
|
stable_id?: string | undefined;
|
|
473
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
474
|
+
sections?: string[] | undefined;
|
|
475
|
+
content_ref?: string | undefined;
|
|
277
476
|
identity_source?: "declared" | "derived" | undefined;
|
|
278
477
|
activation?: {
|
|
279
478
|
tier: "always" | "path" | "description";
|
|
280
479
|
description?: string | undefined;
|
|
281
480
|
} | undefined;
|
|
282
|
-
sections?: string[] | undefined;
|
|
283
481
|
}, {
|
|
284
482
|
file: string;
|
|
285
483
|
priority: "high" | "medium" | "low";
|
|
@@ -295,16 +493,23 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
295
493
|
impact: string[];
|
|
296
494
|
must_read_if: string;
|
|
297
495
|
entities?: string[] | undefined;
|
|
496
|
+
id?: string | undefined;
|
|
497
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
498
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
499
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
500
|
+
layer_reason?: string | undefined;
|
|
501
|
+
created_at?: string | undefined;
|
|
502
|
+
tags?: string[] | undefined;
|
|
298
503
|
} | undefined;
|
|
299
|
-
content_ref?: string | undefined;
|
|
300
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
301
504
|
stable_id?: string | undefined;
|
|
505
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
506
|
+
sections?: string[] | undefined;
|
|
507
|
+
content_ref?: string | undefined;
|
|
302
508
|
identity_source?: "declared" | "derived" | undefined;
|
|
303
509
|
activation?: {
|
|
304
510
|
tier: "always" | "path" | "description";
|
|
305
511
|
description?: string | undefined;
|
|
306
512
|
} | undefined;
|
|
307
|
-
sections?: string[] | undefined;
|
|
308
513
|
}>, {
|
|
309
514
|
file: string;
|
|
310
515
|
priority: "high" | "medium" | "low";
|
|
@@ -320,17 +525,94 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
320
525
|
impact: string[];
|
|
321
526
|
must_read_if: string;
|
|
322
527
|
entities?: string[] | undefined;
|
|
528
|
+
id?: string | undefined;
|
|
529
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
530
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
531
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
532
|
+
layer_reason?: string | undefined;
|
|
533
|
+
created_at?: string | undefined;
|
|
534
|
+
tags?: string[] | undefined;
|
|
323
535
|
} | undefined;
|
|
324
|
-
content_ref?: string | undefined;
|
|
325
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
326
536
|
stable_id?: string | undefined;
|
|
537
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
538
|
+
sections?: string[] | undefined;
|
|
539
|
+
content_ref?: string | undefined;
|
|
327
540
|
identity_source?: "declared" | "derived" | undefined;
|
|
328
541
|
activation?: {
|
|
329
542
|
tier: "always" | "path" | "description";
|
|
330
543
|
description?: string | undefined;
|
|
331
544
|
} | undefined;
|
|
332
|
-
sections?: string[] | undefined;
|
|
333
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
|
+
}, {
|
|
560
|
+
MOD?: number | undefined;
|
|
561
|
+
DEC?: number | undefined;
|
|
562
|
+
GLD?: number | undefined;
|
|
563
|
+
PIT?: number | undefined;
|
|
564
|
+
PRO?: number | undefined;
|
|
565
|
+
}>>;
|
|
566
|
+
KT: z.ZodDefault<z.ZodObject<{
|
|
567
|
+
MOD: z.ZodDefault<z.ZodNumber>;
|
|
568
|
+
DEC: z.ZodDefault<z.ZodNumber>;
|
|
569
|
+
GLD: z.ZodDefault<z.ZodNumber>;
|
|
570
|
+
PIT: z.ZodDefault<z.ZodNumber>;
|
|
571
|
+
PRO: z.ZodDefault<z.ZodNumber>;
|
|
572
|
+
}, "strip", z.ZodTypeAny, {
|
|
573
|
+
MOD: number;
|
|
574
|
+
DEC: number;
|
|
575
|
+
GLD: number;
|
|
576
|
+
PIT: number;
|
|
577
|
+
PRO: number;
|
|
578
|
+
}, {
|
|
579
|
+
MOD?: number | undefined;
|
|
580
|
+
DEC?: number | undefined;
|
|
581
|
+
GLD?: number | undefined;
|
|
582
|
+
PIT?: number | undefined;
|
|
583
|
+
PRO?: number | undefined;
|
|
584
|
+
}>>;
|
|
585
|
+
}, "strip", z.ZodTypeAny, {
|
|
586
|
+
KP: {
|
|
587
|
+
MOD: number;
|
|
588
|
+
DEC: number;
|
|
589
|
+
GLD: number;
|
|
590
|
+
PIT: number;
|
|
591
|
+
PRO: number;
|
|
592
|
+
};
|
|
593
|
+
KT: {
|
|
594
|
+
MOD: number;
|
|
595
|
+
DEC: number;
|
|
596
|
+
GLD: number;
|
|
597
|
+
PIT: number;
|
|
598
|
+
PRO: number;
|
|
599
|
+
};
|
|
600
|
+
}, {
|
|
601
|
+
KP?: {
|
|
602
|
+
MOD?: number | undefined;
|
|
603
|
+
DEC?: number | undefined;
|
|
604
|
+
GLD?: number | undefined;
|
|
605
|
+
PIT?: number | undefined;
|
|
606
|
+
PRO?: number | undefined;
|
|
607
|
+
} | undefined;
|
|
608
|
+
KT?: {
|
|
609
|
+
MOD?: number | undefined;
|
|
610
|
+
DEC?: number | undefined;
|
|
611
|
+
GLD?: number | undefined;
|
|
612
|
+
PIT?: number | undefined;
|
|
613
|
+
PRO?: number | undefined;
|
|
614
|
+
} | undefined;
|
|
615
|
+
}>>>;
|
|
334
616
|
}, "strip", z.ZodTypeAny, {
|
|
335
617
|
revision: string;
|
|
336
618
|
nodes: Record<string, {
|
|
@@ -348,22 +630,92 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
348
630
|
impact: string[];
|
|
349
631
|
must_read_if: string;
|
|
350
632
|
entities?: string[] | undefined;
|
|
633
|
+
id?: string | undefined;
|
|
634
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
635
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
636
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
637
|
+
layer_reason?: string | undefined;
|
|
638
|
+
created_at?: string | undefined;
|
|
639
|
+
tags?: string[] | undefined;
|
|
351
640
|
} | undefined;
|
|
352
|
-
content_ref?: string | undefined;
|
|
353
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
354
641
|
stable_id?: string | undefined;
|
|
642
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
643
|
+
sections?: string[] | undefined;
|
|
644
|
+
content_ref?: string | undefined;
|
|
355
645
|
identity_source?: "declared" | "derived" | undefined;
|
|
356
646
|
activation?: {
|
|
357
647
|
tier: "always" | "path" | "description";
|
|
358
648
|
description?: string | undefined;
|
|
359
649
|
} | undefined;
|
|
360
|
-
sections?: string[] | undefined;
|
|
361
650
|
}>;
|
|
651
|
+
counters?: {
|
|
652
|
+
KP: {
|
|
653
|
+
MOD: number;
|
|
654
|
+
DEC: number;
|
|
655
|
+
GLD: number;
|
|
656
|
+
PIT: number;
|
|
657
|
+
PRO: number;
|
|
658
|
+
};
|
|
659
|
+
KT: {
|
|
660
|
+
MOD: number;
|
|
661
|
+
DEC: number;
|
|
662
|
+
GLD: number;
|
|
663
|
+
PIT: number;
|
|
664
|
+
PRO: number;
|
|
665
|
+
};
|
|
666
|
+
} | undefined;
|
|
362
667
|
}, {
|
|
363
668
|
revision: string;
|
|
364
669
|
nodes: Record<string, unknown>;
|
|
670
|
+
counters?: {
|
|
671
|
+
KP?: {
|
|
672
|
+
MOD?: number | undefined;
|
|
673
|
+
DEC?: number | undefined;
|
|
674
|
+
GLD?: number | undefined;
|
|
675
|
+
PIT?: number | undefined;
|
|
676
|
+
PRO?: number | undefined;
|
|
677
|
+
} | undefined;
|
|
678
|
+
KT?: {
|
|
679
|
+
MOD?: number | undefined;
|
|
680
|
+
DEC?: number | undefined;
|
|
681
|
+
GLD?: number | undefined;
|
|
682
|
+
PIT?: number | undefined;
|
|
683
|
+
PRO?: number | undefined;
|
|
684
|
+
} | undefined;
|
|
685
|
+
} | undefined;
|
|
365
686
|
}>;
|
|
687
|
+
declare function isKnowledgeStableId(stableId: string | undefined): boolean;
|
|
366
688
|
declare function withDerivedAgentsMetaNodeDefaults(node: AgentsMetaNodeInput): AgentsMetaNode;
|
|
689
|
+
/**
|
|
690
|
+
* v2.0: Pure path-decoupled stable_id allocator for knowledge entries.
|
|
691
|
+
*
|
|
692
|
+
* Given the current counters envelope, returns the NEXT id for the
|
|
693
|
+
* (layer, type) pair plus a new counters object with that slot incremented.
|
|
694
|
+
* Counters are monotonic: the function never reuses a previously-allocated
|
|
695
|
+
* counter, even after deletion, so historical ids remain unique.
|
|
696
|
+
*
|
|
697
|
+
* @example
|
|
698
|
+
* allocateKnowledgeId('team', 'decision',
|
|
699
|
+
* { KP: zeros, KT: { MOD: 0, DEC: 5, GLD: 0, PIT: 0, PRO: 0 } })
|
|
700
|
+
* // → { id: 'KT-DEC-0006',
|
|
701
|
+
* // nextCounters: { KP: zeros, KT: { ..., DEC: 6 } } }
|
|
702
|
+
*/
|
|
703
|
+
declare function allocateKnowledgeId(layer: Layer, type: KnowledgeType, current: AgentsMetaCounters): {
|
|
704
|
+
id: StableId;
|
|
705
|
+
nextCounters: AgentsMetaCounters;
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* v2.0: Default counters envelope (all slots zero). Used when a meta file
|
|
709
|
+
* does not yet carry the v2.0 counters key.
|
|
710
|
+
*/
|
|
711
|
+
declare function defaultAgentsMetaCounters(): AgentsMetaCounters;
|
|
712
|
+
/**
|
|
713
|
+
* Path-derived stable_id (legacy / fallback for non-knowledge files).
|
|
714
|
+
*
|
|
715
|
+
* v2.0 NOTE: This function is NOT used for knowledge entries (KP-/KT-).
|
|
716
|
+
* Knowledge ids are allocated via `allocateKnowledgeId` and persisted in
|
|
717
|
+
* frontmatter; their identity travels with the file content, not its path.
|
|
718
|
+
*/
|
|
367
719
|
declare function deriveAgentsMetaStableId(file: string): string;
|
|
368
720
|
declare function deriveAgentsMetaIdentitySource(node: Pick<AgentsMetaNode, "file"> & Partial<Pick<AgentsMetaNode, "stable_id" | "identity_source">>): AgentsIdentitySource;
|
|
369
721
|
declare function deriveAgentsMetaLayer(file: string): AgentsLayer;
|
|
@@ -530,15 +882,15 @@ declare const aiLedgerEntrySchema: z.ZodObject<{
|
|
|
530
882
|
source: "ai";
|
|
531
883
|
ts: number;
|
|
532
884
|
affected_paths: string[];
|
|
533
|
-
commit_sha?: string | undefined;
|
|
534
885
|
id?: string | undefined;
|
|
886
|
+
commit_sha?: string | undefined;
|
|
535
887
|
}, {
|
|
536
888
|
intent: string;
|
|
537
889
|
source: "ai";
|
|
538
890
|
ts: number;
|
|
539
891
|
affected_paths: string[];
|
|
540
|
-
commit_sha?: string | undefined;
|
|
541
892
|
id?: string | undefined;
|
|
893
|
+
commit_sha?: string | undefined;
|
|
542
894
|
}>;
|
|
543
895
|
declare const humanLedgerEntrySchema: z.ZodObject<{
|
|
544
896
|
source: z.ZodLiteral<"human">;
|
|
@@ -557,8 +909,8 @@ declare const humanLedgerEntrySchema: z.ZodObject<{
|
|
|
557
909
|
affected_paths: string[];
|
|
558
910
|
parent_sha: string;
|
|
559
911
|
diff_stat: string;
|
|
560
|
-
annotation?: string | undefined;
|
|
561
912
|
id?: string | undefined;
|
|
913
|
+
annotation?: string | undefined;
|
|
562
914
|
parent_ledger_entry_id?: string | undefined;
|
|
563
915
|
}, {
|
|
564
916
|
intent: string;
|
|
@@ -567,8 +919,8 @@ declare const humanLedgerEntrySchema: z.ZodObject<{
|
|
|
567
919
|
affected_paths: string[];
|
|
568
920
|
parent_sha: string;
|
|
569
921
|
diff_stat: string;
|
|
570
|
-
annotation?: string | undefined;
|
|
571
922
|
id?: string | undefined;
|
|
923
|
+
annotation?: string | undefined;
|
|
572
924
|
parent_ledger_entry_id?: string | undefined;
|
|
573
925
|
}>;
|
|
574
926
|
declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
@@ -583,15 +935,15 @@ declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source",
|
|
|
583
935
|
source: "ai";
|
|
584
936
|
ts: number;
|
|
585
937
|
affected_paths: string[];
|
|
586
|
-
commit_sha?: string | undefined;
|
|
587
938
|
id?: string | undefined;
|
|
939
|
+
commit_sha?: string | undefined;
|
|
588
940
|
}, {
|
|
589
941
|
intent: string;
|
|
590
942
|
source: "ai";
|
|
591
943
|
ts: number;
|
|
592
944
|
affected_paths: string[];
|
|
593
|
-
commit_sha?: string | undefined;
|
|
594
945
|
id?: string | undefined;
|
|
946
|
+
commit_sha?: string | undefined;
|
|
595
947
|
}>, z.ZodObject<{
|
|
596
948
|
source: z.ZodLiteral<"human">;
|
|
597
949
|
parent_sha: z.ZodString;
|
|
@@ -609,8 +961,8 @@ declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source",
|
|
|
609
961
|
affected_paths: string[];
|
|
610
962
|
parent_sha: string;
|
|
611
963
|
diff_stat: string;
|
|
612
|
-
annotation?: string | undefined;
|
|
613
964
|
id?: string | undefined;
|
|
965
|
+
annotation?: string | undefined;
|
|
614
966
|
parent_ledger_entry_id?: string | undefined;
|
|
615
967
|
}, {
|
|
616
968
|
intent: string;
|
|
@@ -619,16 +971,16 @@ declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source",
|
|
|
619
971
|
affected_paths: string[];
|
|
620
972
|
parent_sha: string;
|
|
621
973
|
diff_stat: string;
|
|
622
|
-
annotation?: string | undefined;
|
|
623
974
|
id?: string | undefined;
|
|
975
|
+
annotation?: string | undefined;
|
|
624
976
|
parent_ledger_entry_id?: string | undefined;
|
|
625
977
|
}>]>, {
|
|
626
978
|
intent: string;
|
|
627
979
|
source: "ai";
|
|
628
980
|
ts: number;
|
|
629
981
|
affected_paths: string[];
|
|
630
|
-
commit_sha?: string | undefined;
|
|
631
982
|
id?: string | undefined;
|
|
983
|
+
commit_sha?: string | undefined;
|
|
632
984
|
} | {
|
|
633
985
|
intent: string;
|
|
634
986
|
source: "human";
|
|
@@ -636,8 +988,8 @@ declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source",
|
|
|
636
988
|
affected_paths: string[];
|
|
637
989
|
parent_sha: string;
|
|
638
990
|
diff_stat: string;
|
|
639
|
-
annotation?: string | undefined;
|
|
640
991
|
id?: string | undefined;
|
|
992
|
+
annotation?: string | undefined;
|
|
641
993
|
parent_ledger_entry_id?: string | undefined;
|
|
642
994
|
}, unknown>;
|
|
643
995
|
|
|
@@ -699,17 +1051,17 @@ declare const clientPathsSchema: z.ZodObject<{
|
|
|
699
1051
|
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
700
1052
|
cursor: z.ZodOptional<z.ZodString>;
|
|
701
1053
|
codexCLI: z.ZodOptional<z.ZodString>;
|
|
702
|
-
}, "
|
|
703
|
-
claudeCodeCLI
|
|
704
|
-
claudeCodeDesktop
|
|
705
|
-
cursor
|
|
706
|
-
codexCLI
|
|
707
|
-
},
|
|
708
|
-
claudeCodeCLI
|
|
709
|
-
claudeCodeDesktop
|
|
710
|
-
cursor
|
|
711
|
-
codexCLI
|
|
712
|
-
}
|
|
1054
|
+
}, "strict", z.ZodTypeAny, {
|
|
1055
|
+
claudeCodeCLI?: string | undefined;
|
|
1056
|
+
claudeCodeDesktop?: string | undefined;
|
|
1057
|
+
cursor?: string | undefined;
|
|
1058
|
+
codexCLI?: string | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
claudeCodeCLI?: string | undefined;
|
|
1061
|
+
claudeCodeDesktop?: string | undefined;
|
|
1062
|
+
cursor?: string | undefined;
|
|
1063
|
+
codexCLI?: string | undefined;
|
|
1064
|
+
}>;
|
|
713
1065
|
declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
|
|
714
1066
|
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
715
1067
|
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -726,17 +1078,17 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
726
1078
|
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
727
1079
|
cursor: z.ZodOptional<z.ZodString>;
|
|
728
1080
|
codexCLI: z.ZodOptional<z.ZodString>;
|
|
729
|
-
}, "
|
|
730
|
-
claudeCodeCLI
|
|
731
|
-
claudeCodeDesktop
|
|
732
|
-
cursor
|
|
733
|
-
codexCLI
|
|
734
|
-
},
|
|
735
|
-
claudeCodeCLI
|
|
736
|
-
claudeCodeDesktop
|
|
737
|
-
cursor
|
|
738
|
-
codexCLI
|
|
739
|
-
}
|
|
1081
|
+
}, "strict", z.ZodTypeAny, {
|
|
1082
|
+
claudeCodeCLI?: string | undefined;
|
|
1083
|
+
claudeCodeDesktop?: string | undefined;
|
|
1084
|
+
cursor?: string | undefined;
|
|
1085
|
+
codexCLI?: string | undefined;
|
|
1086
|
+
}, {
|
|
1087
|
+
claudeCodeCLI?: string | undefined;
|
|
1088
|
+
claudeCodeDesktop?: string | undefined;
|
|
1089
|
+
cursor?: string | undefined;
|
|
1090
|
+
codexCLI?: string | undefined;
|
|
1091
|
+
}>>;
|
|
740
1092
|
externalFixturePath: z.ZodOptional<z.ZodString>;
|
|
741
1093
|
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
742
1094
|
auditMode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
@@ -752,12 +1104,12 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
752
1104
|
hardBytes?: number | undefined;
|
|
753
1105
|
}>>;
|
|
754
1106
|
}, "strip", z.ZodTypeAny, {
|
|
755
|
-
clientPaths?:
|
|
756
|
-
claudeCodeCLI
|
|
757
|
-
claudeCodeDesktop
|
|
758
|
-
cursor
|
|
759
|
-
codexCLI
|
|
760
|
-
}
|
|
1107
|
+
clientPaths?: {
|
|
1108
|
+
claudeCodeCLI?: string | undefined;
|
|
1109
|
+
claudeCodeDesktop?: string | undefined;
|
|
1110
|
+
cursor?: string | undefined;
|
|
1111
|
+
codexCLI?: string | undefined;
|
|
1112
|
+
} | undefined;
|
|
761
1113
|
externalFixturePath?: string | undefined;
|
|
762
1114
|
scanIgnores?: string[] | undefined;
|
|
763
1115
|
auditMode?: "strict" | "warn" | "off" | undefined;
|
|
@@ -767,12 +1119,12 @@ declare const fabricConfigSchema: z.ZodObject<{
|
|
|
767
1119
|
hardBytes?: number | undefined;
|
|
768
1120
|
} | undefined;
|
|
769
1121
|
}, {
|
|
770
|
-
clientPaths?:
|
|
771
|
-
claudeCodeCLI
|
|
772
|
-
claudeCodeDesktop
|
|
773
|
-
cursor
|
|
774
|
-
codexCLI
|
|
775
|
-
}
|
|
1122
|
+
clientPaths?: {
|
|
1123
|
+
claudeCodeCLI?: string | undefined;
|
|
1124
|
+
claudeCodeDesktop?: string | undefined;
|
|
1125
|
+
cursor?: string | undefined;
|
|
1126
|
+
codexCLI?: string | undefined;
|
|
1127
|
+
} | undefined;
|
|
776
1128
|
externalFixturePath?: string | undefined;
|
|
777
1129
|
scanIgnores?: string[] | undefined;
|
|
778
1130
|
auditMode?: "strict" | "warn" | "off" | undefined;
|
|
@@ -1489,15 +1841,15 @@ declare const initContextDomainGroupSchema: z.ZodObject<{
|
|
|
1489
1841
|
}, "strip", z.ZodTypeAny, {
|
|
1490
1842
|
paths: string[];
|
|
1491
1843
|
name: string;
|
|
1492
|
-
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1493
1844
|
summary?: string | undefined;
|
|
1494
1845
|
target_path?: string | undefined;
|
|
1846
|
+
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1495
1847
|
}, {
|
|
1496
1848
|
paths: string[];
|
|
1497
1849
|
name: string;
|
|
1498
|
-
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1499
1850
|
summary?: string | undefined;
|
|
1500
1851
|
target_path?: string | undefined;
|
|
1852
|
+
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1501
1853
|
}>;
|
|
1502
1854
|
declare const initContextInterviewTrailEntrySchema: z.ZodObject<{
|
|
1503
1855
|
phase: z.ZodString;
|
|
@@ -1591,15 +1943,15 @@ declare const initContextSchema: z.ZodObject<{
|
|
|
1591
1943
|
}, "strip", z.ZodTypeAny, {
|
|
1592
1944
|
paths: string[];
|
|
1593
1945
|
name: string;
|
|
1594
|
-
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1595
1946
|
summary?: string | undefined;
|
|
1596
1947
|
target_path?: string | undefined;
|
|
1948
|
+
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1597
1949
|
}, {
|
|
1598
1950
|
paths: string[];
|
|
1599
1951
|
name: string;
|
|
1600
|
-
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1601
1952
|
summary?: string | undefined;
|
|
1602
1953
|
target_path?: string | undefined;
|
|
1954
|
+
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1603
1955
|
}>, "many">;
|
|
1604
1956
|
interview_trail: z.ZodArray<z.ZodObject<{
|
|
1605
1957
|
phase: z.ZodString;
|
|
@@ -1644,9 +1996,9 @@ declare const initContextSchema: z.ZodObject<{
|
|
|
1644
1996
|
domain_groups: {
|
|
1645
1997
|
paths: string[];
|
|
1646
1998
|
name: string;
|
|
1647
|
-
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1648
1999
|
summary?: string | undefined;
|
|
1649
2000
|
target_path?: string | undefined;
|
|
2001
|
+
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1650
2002
|
}[];
|
|
1651
2003
|
interview_trail: {
|
|
1652
2004
|
phase: string;
|
|
@@ -1679,9 +2031,9 @@ declare const initContextSchema: z.ZodObject<{
|
|
|
1679
2031
|
domain_groups: {
|
|
1680
2032
|
paths: string[];
|
|
1681
2033
|
name: string;
|
|
1682
|
-
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1683
2034
|
summary?: string | undefined;
|
|
1684
2035
|
target_path?: string | undefined;
|
|
2036
|
+
topology_type?: "mirror" | "cross-cutting" | undefined;
|
|
1685
2037
|
}[];
|
|
1686
2038
|
interview_trail: {
|
|
1687
2039
|
phase: string;
|
|
@@ -1753,6 +2105,13 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
1753
2105
|
impact: z.ZodArray<z.ZodString, "many">;
|
|
1754
2106
|
must_read_if: z.ZodString;
|
|
1755
2107
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2108
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2109
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
2110
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2111
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2112
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
2113
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2114
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1756
2115
|
}, "strict", z.ZodTypeAny, {
|
|
1757
2116
|
summary: string;
|
|
1758
2117
|
intent_clues: string[];
|
|
@@ -1760,6 +2119,13 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
1760
2119
|
impact: string[];
|
|
1761
2120
|
must_read_if: string;
|
|
1762
2121
|
entities?: string[] | undefined;
|
|
2122
|
+
id?: string | undefined;
|
|
2123
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2124
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2125
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2126
|
+
layer_reason?: string | undefined;
|
|
2127
|
+
created_at?: string | undefined;
|
|
2128
|
+
tags?: string[] | undefined;
|
|
1763
2129
|
}, {
|
|
1764
2130
|
summary: string;
|
|
1765
2131
|
intent_clues: string[];
|
|
@@ -1767,6 +2133,13 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
1767
2133
|
impact: string[];
|
|
1768
2134
|
must_read_if: string;
|
|
1769
2135
|
entities?: string[] | undefined;
|
|
2136
|
+
id?: string | undefined;
|
|
2137
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2138
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2139
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2140
|
+
layer_reason?: string | undefined;
|
|
2141
|
+
created_at?: string | undefined;
|
|
2142
|
+
tags?: string[] | undefined;
|
|
1770
2143
|
}>>;
|
|
1771
2144
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1772
2145
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1784,16 +2157,23 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
1784
2157
|
impact: string[];
|
|
1785
2158
|
must_read_if: string;
|
|
1786
2159
|
entities?: string[] | undefined;
|
|
2160
|
+
id?: string | undefined;
|
|
2161
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2162
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2163
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2164
|
+
layer_reason?: string | undefined;
|
|
2165
|
+
created_at?: string | undefined;
|
|
2166
|
+
tags?: string[] | undefined;
|
|
1787
2167
|
} | undefined;
|
|
1788
|
-
content_ref?: string | undefined;
|
|
1789
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
1790
2168
|
stable_id?: string | undefined;
|
|
2169
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
2170
|
+
sections?: string[] | undefined;
|
|
2171
|
+
content_ref?: string | undefined;
|
|
1791
2172
|
identity_source?: "declared" | "derived" | undefined;
|
|
1792
2173
|
activation?: {
|
|
1793
2174
|
tier: "always" | "path" | "description";
|
|
1794
2175
|
description?: string | undefined;
|
|
1795
2176
|
} | undefined;
|
|
1796
|
-
sections?: string[] | undefined;
|
|
1797
2177
|
}, {
|
|
1798
2178
|
file: string;
|
|
1799
2179
|
priority: "high" | "medium" | "low";
|
|
@@ -1809,16 +2189,23 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
1809
2189
|
impact: string[];
|
|
1810
2190
|
must_read_if: string;
|
|
1811
2191
|
entities?: string[] | undefined;
|
|
2192
|
+
id?: string | undefined;
|
|
2193
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2194
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2195
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2196
|
+
layer_reason?: string | undefined;
|
|
2197
|
+
created_at?: string | undefined;
|
|
2198
|
+
tags?: string[] | undefined;
|
|
1812
2199
|
} | undefined;
|
|
1813
|
-
content_ref?: string | undefined;
|
|
1814
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
1815
2200
|
stable_id?: string | undefined;
|
|
2201
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
2202
|
+
sections?: string[] | undefined;
|
|
2203
|
+
content_ref?: string | undefined;
|
|
1816
2204
|
identity_source?: "declared" | "derived" | undefined;
|
|
1817
2205
|
activation?: {
|
|
1818
2206
|
tier: "always" | "path" | "description";
|
|
1819
2207
|
description?: string | undefined;
|
|
1820
2208
|
} | undefined;
|
|
1821
|
-
sections?: string[] | undefined;
|
|
1822
2209
|
}>, {
|
|
1823
2210
|
file: string;
|
|
1824
2211
|
priority: "high" | "medium" | "low";
|
|
@@ -1834,17 +2221,94 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
1834
2221
|
impact: string[];
|
|
1835
2222
|
must_read_if: string;
|
|
1836
2223
|
entities?: string[] | undefined;
|
|
2224
|
+
id?: string | undefined;
|
|
2225
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2226
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2227
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2228
|
+
layer_reason?: string | undefined;
|
|
2229
|
+
created_at?: string | undefined;
|
|
2230
|
+
tags?: string[] | undefined;
|
|
1837
2231
|
} | undefined;
|
|
1838
|
-
content_ref?: string | undefined;
|
|
1839
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
1840
2232
|
stable_id?: string | undefined;
|
|
2233
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
2234
|
+
sections?: string[] | undefined;
|
|
2235
|
+
content_ref?: string | undefined;
|
|
1841
2236
|
identity_source?: "declared" | "derived" | undefined;
|
|
1842
2237
|
activation?: {
|
|
1843
2238
|
tier: "always" | "path" | "description";
|
|
1844
2239
|
description?: string | undefined;
|
|
1845
2240
|
} | undefined;
|
|
1846
|
-
sections?: string[] | undefined;
|
|
1847
2241
|
}, unknown>>;
|
|
2242
|
+
counters: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
2243
|
+
KP: z.ZodDefault<z.ZodObject<{
|
|
2244
|
+
MOD: z.ZodDefault<z.ZodNumber>;
|
|
2245
|
+
DEC: z.ZodDefault<z.ZodNumber>;
|
|
2246
|
+
GLD: z.ZodDefault<z.ZodNumber>;
|
|
2247
|
+
PIT: z.ZodDefault<z.ZodNumber>;
|
|
2248
|
+
PRO: z.ZodDefault<z.ZodNumber>;
|
|
2249
|
+
}, "strip", z.ZodTypeAny, {
|
|
2250
|
+
MOD: number;
|
|
2251
|
+
DEC: number;
|
|
2252
|
+
GLD: number;
|
|
2253
|
+
PIT: number;
|
|
2254
|
+
PRO: number;
|
|
2255
|
+
}, {
|
|
2256
|
+
MOD?: number | undefined;
|
|
2257
|
+
DEC?: number | undefined;
|
|
2258
|
+
GLD?: number | undefined;
|
|
2259
|
+
PIT?: number | undefined;
|
|
2260
|
+
PRO?: number | undefined;
|
|
2261
|
+
}>>;
|
|
2262
|
+
KT: z.ZodDefault<z.ZodObject<{
|
|
2263
|
+
MOD: z.ZodDefault<z.ZodNumber>;
|
|
2264
|
+
DEC: z.ZodDefault<z.ZodNumber>;
|
|
2265
|
+
GLD: z.ZodDefault<z.ZodNumber>;
|
|
2266
|
+
PIT: z.ZodDefault<z.ZodNumber>;
|
|
2267
|
+
PRO: z.ZodDefault<z.ZodNumber>;
|
|
2268
|
+
}, "strip", z.ZodTypeAny, {
|
|
2269
|
+
MOD: number;
|
|
2270
|
+
DEC: number;
|
|
2271
|
+
GLD: number;
|
|
2272
|
+
PIT: number;
|
|
2273
|
+
PRO: number;
|
|
2274
|
+
}, {
|
|
2275
|
+
MOD?: number | undefined;
|
|
2276
|
+
DEC?: number | undefined;
|
|
2277
|
+
GLD?: number | undefined;
|
|
2278
|
+
PIT?: number | undefined;
|
|
2279
|
+
PRO?: number | undefined;
|
|
2280
|
+
}>>;
|
|
2281
|
+
}, "strip", z.ZodTypeAny, {
|
|
2282
|
+
KP: {
|
|
2283
|
+
MOD: number;
|
|
2284
|
+
DEC: number;
|
|
2285
|
+
GLD: number;
|
|
2286
|
+
PIT: number;
|
|
2287
|
+
PRO: number;
|
|
2288
|
+
};
|
|
2289
|
+
KT: {
|
|
2290
|
+
MOD: number;
|
|
2291
|
+
DEC: number;
|
|
2292
|
+
GLD: number;
|
|
2293
|
+
PIT: number;
|
|
2294
|
+
PRO: number;
|
|
2295
|
+
};
|
|
2296
|
+
}, {
|
|
2297
|
+
KP?: {
|
|
2298
|
+
MOD?: number | undefined;
|
|
2299
|
+
DEC?: number | undefined;
|
|
2300
|
+
GLD?: number | undefined;
|
|
2301
|
+
PIT?: number | undefined;
|
|
2302
|
+
PRO?: number | undefined;
|
|
2303
|
+
} | undefined;
|
|
2304
|
+
KT?: {
|
|
2305
|
+
MOD?: number | undefined;
|
|
2306
|
+
DEC?: number | undefined;
|
|
2307
|
+
GLD?: number | undefined;
|
|
2308
|
+
PIT?: number | undefined;
|
|
2309
|
+
PRO?: number | undefined;
|
|
2310
|
+
} | undefined;
|
|
2311
|
+
}>>>;
|
|
1848
2312
|
}, "strip", z.ZodTypeAny, {
|
|
1849
2313
|
revision: string;
|
|
1850
2314
|
nodes: Record<string, {
|
|
@@ -1862,20 +2326,59 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
1862
2326
|
impact: string[];
|
|
1863
2327
|
must_read_if: string;
|
|
1864
2328
|
entities?: string[] | undefined;
|
|
2329
|
+
id?: string | undefined;
|
|
2330
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2331
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2332
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2333
|
+
layer_reason?: string | undefined;
|
|
2334
|
+
created_at?: string | undefined;
|
|
2335
|
+
tags?: string[] | undefined;
|
|
1865
2336
|
} | undefined;
|
|
1866
|
-
content_ref?: string | undefined;
|
|
1867
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
1868
2337
|
stable_id?: string | undefined;
|
|
2338
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
2339
|
+
sections?: string[] | undefined;
|
|
2340
|
+
content_ref?: string | undefined;
|
|
1869
2341
|
identity_source?: "declared" | "derived" | undefined;
|
|
1870
2342
|
activation?: {
|
|
1871
2343
|
tier: "always" | "path" | "description";
|
|
1872
2344
|
description?: string | undefined;
|
|
1873
2345
|
} | undefined;
|
|
1874
|
-
sections?: string[] | undefined;
|
|
1875
2346
|
}>;
|
|
2347
|
+
counters?: {
|
|
2348
|
+
KP: {
|
|
2349
|
+
MOD: number;
|
|
2350
|
+
DEC: number;
|
|
2351
|
+
GLD: number;
|
|
2352
|
+
PIT: number;
|
|
2353
|
+
PRO: number;
|
|
2354
|
+
};
|
|
2355
|
+
KT: {
|
|
2356
|
+
MOD: number;
|
|
2357
|
+
DEC: number;
|
|
2358
|
+
GLD: number;
|
|
2359
|
+
PIT: number;
|
|
2360
|
+
PRO: number;
|
|
2361
|
+
};
|
|
2362
|
+
} | undefined;
|
|
1876
2363
|
}, {
|
|
1877
2364
|
revision: string;
|
|
1878
2365
|
nodes: Record<string, unknown>;
|
|
2366
|
+
counters?: {
|
|
2367
|
+
KP?: {
|
|
2368
|
+
MOD?: number | undefined;
|
|
2369
|
+
DEC?: number | undefined;
|
|
2370
|
+
GLD?: number | undefined;
|
|
2371
|
+
PIT?: number | undefined;
|
|
2372
|
+
PRO?: number | undefined;
|
|
2373
|
+
} | undefined;
|
|
2374
|
+
KT?: {
|
|
2375
|
+
MOD?: number | undefined;
|
|
2376
|
+
DEC?: number | undefined;
|
|
2377
|
+
GLD?: number | undefined;
|
|
2378
|
+
PIT?: number | undefined;
|
|
2379
|
+
PRO?: number | undefined;
|
|
2380
|
+
} | undefined;
|
|
2381
|
+
} | undefined;
|
|
1879
2382
|
}>;
|
|
1880
2383
|
}, "strip", z.ZodTypeAny, {
|
|
1881
2384
|
type: "meta:updated";
|
|
@@ -1896,23 +2399,62 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
1896
2399
|
impact: string[];
|
|
1897
2400
|
must_read_if: string;
|
|
1898
2401
|
entities?: string[] | undefined;
|
|
2402
|
+
id?: string | undefined;
|
|
2403
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
2404
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2405
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
2406
|
+
layer_reason?: string | undefined;
|
|
2407
|
+
created_at?: string | undefined;
|
|
2408
|
+
tags?: string[] | undefined;
|
|
1899
2409
|
} | undefined;
|
|
1900
|
-
content_ref?: string | undefined;
|
|
1901
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
1902
2410
|
stable_id?: string | undefined;
|
|
2411
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
2412
|
+
sections?: string[] | undefined;
|
|
2413
|
+
content_ref?: string | undefined;
|
|
1903
2414
|
identity_source?: "declared" | "derived" | undefined;
|
|
1904
2415
|
activation?: {
|
|
1905
2416
|
tier: "always" | "path" | "description";
|
|
1906
2417
|
description?: string | undefined;
|
|
1907
2418
|
} | undefined;
|
|
1908
|
-
sections?: string[] | undefined;
|
|
1909
2419
|
}>;
|
|
2420
|
+
counters?: {
|
|
2421
|
+
KP: {
|
|
2422
|
+
MOD: number;
|
|
2423
|
+
DEC: number;
|
|
2424
|
+
GLD: number;
|
|
2425
|
+
PIT: number;
|
|
2426
|
+
PRO: number;
|
|
2427
|
+
};
|
|
2428
|
+
KT: {
|
|
2429
|
+
MOD: number;
|
|
2430
|
+
DEC: number;
|
|
2431
|
+
GLD: number;
|
|
2432
|
+
PIT: number;
|
|
2433
|
+
PRO: number;
|
|
2434
|
+
};
|
|
2435
|
+
} | undefined;
|
|
1910
2436
|
};
|
|
1911
2437
|
}, {
|
|
1912
2438
|
type: "meta:updated";
|
|
1913
2439
|
payload: {
|
|
1914
2440
|
revision: string;
|
|
1915
2441
|
nodes: Record<string, unknown>;
|
|
2442
|
+
counters?: {
|
|
2443
|
+
KP?: {
|
|
2444
|
+
MOD?: number | undefined;
|
|
2445
|
+
DEC?: number | undefined;
|
|
2446
|
+
GLD?: number | undefined;
|
|
2447
|
+
PIT?: number | undefined;
|
|
2448
|
+
PRO?: number | undefined;
|
|
2449
|
+
} | undefined;
|
|
2450
|
+
KT?: {
|
|
2451
|
+
MOD?: number | undefined;
|
|
2452
|
+
DEC?: number | undefined;
|
|
2453
|
+
GLD?: number | undefined;
|
|
2454
|
+
PIT?: number | undefined;
|
|
2455
|
+
PRO?: number | undefined;
|
|
2456
|
+
} | undefined;
|
|
2457
|
+
} | undefined;
|
|
1916
2458
|
};
|
|
1917
2459
|
}>;
|
|
1918
2460
|
declare const lockDriftEventSchema: z.ZodObject<{
|
|
@@ -2119,15 +2661,15 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2119
2661
|
source: "ai";
|
|
2120
2662
|
ts: number;
|
|
2121
2663
|
affected_paths: string[];
|
|
2122
|
-
commit_sha?: string | undefined;
|
|
2123
2664
|
id?: string | undefined;
|
|
2665
|
+
commit_sha?: string | undefined;
|
|
2124
2666
|
}, {
|
|
2125
2667
|
intent: string;
|
|
2126
2668
|
source: "ai";
|
|
2127
2669
|
ts: number;
|
|
2128
2670
|
affected_paths: string[];
|
|
2129
|
-
commit_sha?: string | undefined;
|
|
2130
2671
|
id?: string | undefined;
|
|
2672
|
+
commit_sha?: string | undefined;
|
|
2131
2673
|
}>, z.ZodObject<{
|
|
2132
2674
|
source: z.ZodLiteral<"human">;
|
|
2133
2675
|
parent_sha: z.ZodString;
|
|
@@ -2145,8 +2687,8 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2145
2687
|
affected_paths: string[];
|
|
2146
2688
|
parent_sha: string;
|
|
2147
2689
|
diff_stat: string;
|
|
2148
|
-
annotation?: string | undefined;
|
|
2149
2690
|
id?: string | undefined;
|
|
2691
|
+
annotation?: string | undefined;
|
|
2150
2692
|
parent_ledger_entry_id?: string | undefined;
|
|
2151
2693
|
}, {
|
|
2152
2694
|
intent: string;
|
|
@@ -2155,16 +2697,16 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2155
2697
|
affected_paths: string[];
|
|
2156
2698
|
parent_sha: string;
|
|
2157
2699
|
diff_stat: string;
|
|
2158
|
-
annotation?: string | undefined;
|
|
2159
2700
|
id?: string | undefined;
|
|
2701
|
+
annotation?: string | undefined;
|
|
2160
2702
|
parent_ledger_entry_id?: string | undefined;
|
|
2161
2703
|
}>]>, {
|
|
2162
2704
|
intent: string;
|
|
2163
2705
|
source: "ai";
|
|
2164
2706
|
ts: number;
|
|
2165
2707
|
affected_paths: string[];
|
|
2166
|
-
commit_sha?: string | undefined;
|
|
2167
2708
|
id?: string | undefined;
|
|
2709
|
+
commit_sha?: string | undefined;
|
|
2168
2710
|
} | {
|
|
2169
2711
|
intent: string;
|
|
2170
2712
|
source: "human";
|
|
@@ -2172,8 +2714,8 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2172
2714
|
affected_paths: string[];
|
|
2173
2715
|
parent_sha: string;
|
|
2174
2716
|
diff_stat: string;
|
|
2175
|
-
annotation?: string | undefined;
|
|
2176
2717
|
id?: string | undefined;
|
|
2718
|
+
annotation?: string | undefined;
|
|
2177
2719
|
parent_ledger_entry_id?: string | undefined;
|
|
2178
2720
|
}, unknown>;
|
|
2179
2721
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2183,8 +2725,8 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2183
2725
|
source: "ai";
|
|
2184
2726
|
ts: number;
|
|
2185
2727
|
affected_paths: string[];
|
|
2186
|
-
commit_sha?: string | undefined;
|
|
2187
2728
|
id?: string | undefined;
|
|
2729
|
+
commit_sha?: string | undefined;
|
|
2188
2730
|
} | {
|
|
2189
2731
|
intent: string;
|
|
2190
2732
|
source: "human";
|
|
@@ -2192,8 +2734,8 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2192
2734
|
affected_paths: string[];
|
|
2193
2735
|
parent_sha: string;
|
|
2194
2736
|
diff_stat: string;
|
|
2195
|
-
annotation?: string | undefined;
|
|
2196
2737
|
id?: string | undefined;
|
|
2738
|
+
annotation?: string | undefined;
|
|
2197
2739
|
parent_ledger_entry_id?: string | undefined;
|
|
2198
2740
|
};
|
|
2199
2741
|
}, {
|
|
@@ -2665,6 +3207,13 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2665
3207
|
impact: z.ZodArray<z.ZodString, "many">;
|
|
2666
3208
|
must_read_if: z.ZodString;
|
|
2667
3209
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3210
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3211
|
+
knowledge_type: z.ZodOptional<z.ZodEnum<["model", "decision", "guideline", "pitfall", "process"]>>;
|
|
3212
|
+
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
3213
|
+
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
3214
|
+
layer_reason: z.ZodOptional<z.ZodString>;
|
|
3215
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
3216
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
2668
3217
|
}, "strict", z.ZodTypeAny, {
|
|
2669
3218
|
summary: string;
|
|
2670
3219
|
intent_clues: string[];
|
|
@@ -2672,6 +3221,13 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2672
3221
|
impact: string[];
|
|
2673
3222
|
must_read_if: string;
|
|
2674
3223
|
entities?: string[] | undefined;
|
|
3224
|
+
id?: string | undefined;
|
|
3225
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3226
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3227
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3228
|
+
layer_reason?: string | undefined;
|
|
3229
|
+
created_at?: string | undefined;
|
|
3230
|
+
tags?: string[] | undefined;
|
|
2675
3231
|
}, {
|
|
2676
3232
|
summary: string;
|
|
2677
3233
|
intent_clues: string[];
|
|
@@ -2679,6 +3235,13 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2679
3235
|
impact: string[];
|
|
2680
3236
|
must_read_if: string;
|
|
2681
3237
|
entities?: string[] | undefined;
|
|
3238
|
+
id?: string | undefined;
|
|
3239
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3240
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3241
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3242
|
+
layer_reason?: string | undefined;
|
|
3243
|
+
created_at?: string | undefined;
|
|
3244
|
+
tags?: string[] | undefined;
|
|
2682
3245
|
}>>;
|
|
2683
3246
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2684
3247
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2696,16 +3259,23 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2696
3259
|
impact: string[];
|
|
2697
3260
|
must_read_if: string;
|
|
2698
3261
|
entities?: string[] | undefined;
|
|
3262
|
+
id?: string | undefined;
|
|
3263
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3264
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3265
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3266
|
+
layer_reason?: string | undefined;
|
|
3267
|
+
created_at?: string | undefined;
|
|
3268
|
+
tags?: string[] | undefined;
|
|
2699
3269
|
} | undefined;
|
|
2700
|
-
content_ref?: string | undefined;
|
|
2701
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
2702
3270
|
stable_id?: string | undefined;
|
|
3271
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
3272
|
+
sections?: string[] | undefined;
|
|
3273
|
+
content_ref?: string | undefined;
|
|
2703
3274
|
identity_source?: "declared" | "derived" | undefined;
|
|
2704
3275
|
activation?: {
|
|
2705
3276
|
tier: "always" | "path" | "description";
|
|
2706
3277
|
description?: string | undefined;
|
|
2707
3278
|
} | undefined;
|
|
2708
|
-
sections?: string[] | undefined;
|
|
2709
3279
|
}, {
|
|
2710
3280
|
file: string;
|
|
2711
3281
|
priority: "high" | "medium" | "low";
|
|
@@ -2721,16 +3291,23 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2721
3291
|
impact: string[];
|
|
2722
3292
|
must_read_if: string;
|
|
2723
3293
|
entities?: string[] | undefined;
|
|
3294
|
+
id?: string | undefined;
|
|
3295
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3296
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3297
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3298
|
+
layer_reason?: string | undefined;
|
|
3299
|
+
created_at?: string | undefined;
|
|
3300
|
+
tags?: string[] | undefined;
|
|
2724
3301
|
} | undefined;
|
|
2725
|
-
content_ref?: string | undefined;
|
|
2726
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
2727
3302
|
stable_id?: string | undefined;
|
|
3303
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
3304
|
+
sections?: string[] | undefined;
|
|
3305
|
+
content_ref?: string | undefined;
|
|
2728
3306
|
identity_source?: "declared" | "derived" | undefined;
|
|
2729
3307
|
activation?: {
|
|
2730
3308
|
tier: "always" | "path" | "description";
|
|
2731
3309
|
description?: string | undefined;
|
|
2732
3310
|
} | undefined;
|
|
2733
|
-
sections?: string[] | undefined;
|
|
2734
3311
|
}>, {
|
|
2735
3312
|
file: string;
|
|
2736
3313
|
priority: "high" | "medium" | "low";
|
|
@@ -2746,17 +3323,94 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2746
3323
|
impact: string[];
|
|
2747
3324
|
must_read_if: string;
|
|
2748
3325
|
entities?: string[] | undefined;
|
|
3326
|
+
id?: string | undefined;
|
|
3327
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3328
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3329
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3330
|
+
layer_reason?: string | undefined;
|
|
3331
|
+
created_at?: string | undefined;
|
|
3332
|
+
tags?: string[] | undefined;
|
|
2749
3333
|
} | undefined;
|
|
2750
|
-
content_ref?: string | undefined;
|
|
2751
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
2752
3334
|
stable_id?: string | undefined;
|
|
3335
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
3336
|
+
sections?: string[] | undefined;
|
|
3337
|
+
content_ref?: string | undefined;
|
|
2753
3338
|
identity_source?: "declared" | "derived" | undefined;
|
|
2754
3339
|
activation?: {
|
|
2755
3340
|
tier: "always" | "path" | "description";
|
|
2756
3341
|
description?: string | undefined;
|
|
2757
3342
|
} | undefined;
|
|
2758
|
-
sections?: string[] | undefined;
|
|
2759
3343
|
}, unknown>>;
|
|
3344
|
+
counters: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
3345
|
+
KP: z.ZodDefault<z.ZodObject<{
|
|
3346
|
+
MOD: z.ZodDefault<z.ZodNumber>;
|
|
3347
|
+
DEC: z.ZodDefault<z.ZodNumber>;
|
|
3348
|
+
GLD: z.ZodDefault<z.ZodNumber>;
|
|
3349
|
+
PIT: z.ZodDefault<z.ZodNumber>;
|
|
3350
|
+
PRO: z.ZodDefault<z.ZodNumber>;
|
|
3351
|
+
}, "strip", z.ZodTypeAny, {
|
|
3352
|
+
MOD: number;
|
|
3353
|
+
DEC: number;
|
|
3354
|
+
GLD: number;
|
|
3355
|
+
PIT: number;
|
|
3356
|
+
PRO: number;
|
|
3357
|
+
}, {
|
|
3358
|
+
MOD?: number | undefined;
|
|
3359
|
+
DEC?: number | undefined;
|
|
3360
|
+
GLD?: number | undefined;
|
|
3361
|
+
PIT?: number | undefined;
|
|
3362
|
+
PRO?: number | undefined;
|
|
3363
|
+
}>>;
|
|
3364
|
+
KT: z.ZodDefault<z.ZodObject<{
|
|
3365
|
+
MOD: z.ZodDefault<z.ZodNumber>;
|
|
3366
|
+
DEC: z.ZodDefault<z.ZodNumber>;
|
|
3367
|
+
GLD: z.ZodDefault<z.ZodNumber>;
|
|
3368
|
+
PIT: z.ZodDefault<z.ZodNumber>;
|
|
3369
|
+
PRO: z.ZodDefault<z.ZodNumber>;
|
|
3370
|
+
}, "strip", z.ZodTypeAny, {
|
|
3371
|
+
MOD: number;
|
|
3372
|
+
DEC: number;
|
|
3373
|
+
GLD: number;
|
|
3374
|
+
PIT: number;
|
|
3375
|
+
PRO: number;
|
|
3376
|
+
}, {
|
|
3377
|
+
MOD?: number | undefined;
|
|
3378
|
+
DEC?: number | undefined;
|
|
3379
|
+
GLD?: number | undefined;
|
|
3380
|
+
PIT?: number | undefined;
|
|
3381
|
+
PRO?: number | undefined;
|
|
3382
|
+
}>>;
|
|
3383
|
+
}, "strip", z.ZodTypeAny, {
|
|
3384
|
+
KP: {
|
|
3385
|
+
MOD: number;
|
|
3386
|
+
DEC: number;
|
|
3387
|
+
GLD: number;
|
|
3388
|
+
PIT: number;
|
|
3389
|
+
PRO: number;
|
|
3390
|
+
};
|
|
3391
|
+
KT: {
|
|
3392
|
+
MOD: number;
|
|
3393
|
+
DEC: number;
|
|
3394
|
+
GLD: number;
|
|
3395
|
+
PIT: number;
|
|
3396
|
+
PRO: number;
|
|
3397
|
+
};
|
|
3398
|
+
}, {
|
|
3399
|
+
KP?: {
|
|
3400
|
+
MOD?: number | undefined;
|
|
3401
|
+
DEC?: number | undefined;
|
|
3402
|
+
GLD?: number | undefined;
|
|
3403
|
+
PIT?: number | undefined;
|
|
3404
|
+
PRO?: number | undefined;
|
|
3405
|
+
} | undefined;
|
|
3406
|
+
KT?: {
|
|
3407
|
+
MOD?: number | undefined;
|
|
3408
|
+
DEC?: number | undefined;
|
|
3409
|
+
GLD?: number | undefined;
|
|
3410
|
+
PIT?: number | undefined;
|
|
3411
|
+
PRO?: number | undefined;
|
|
3412
|
+
} | undefined;
|
|
3413
|
+
}>>>;
|
|
2760
3414
|
}, "strip", z.ZodTypeAny, {
|
|
2761
3415
|
revision: string;
|
|
2762
3416
|
nodes: Record<string, {
|
|
@@ -2774,20 +3428,59 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2774
3428
|
impact: string[];
|
|
2775
3429
|
must_read_if: string;
|
|
2776
3430
|
entities?: string[] | undefined;
|
|
3431
|
+
id?: string | undefined;
|
|
3432
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3433
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3434
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3435
|
+
layer_reason?: string | undefined;
|
|
3436
|
+
created_at?: string | undefined;
|
|
3437
|
+
tags?: string[] | undefined;
|
|
2777
3438
|
} | undefined;
|
|
2778
|
-
content_ref?: string | undefined;
|
|
2779
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
2780
3439
|
stable_id?: string | undefined;
|
|
3440
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
3441
|
+
sections?: string[] | undefined;
|
|
3442
|
+
content_ref?: string | undefined;
|
|
2781
3443
|
identity_source?: "declared" | "derived" | undefined;
|
|
2782
3444
|
activation?: {
|
|
2783
3445
|
tier: "always" | "path" | "description";
|
|
2784
3446
|
description?: string | undefined;
|
|
2785
3447
|
} | undefined;
|
|
2786
|
-
sections?: string[] | undefined;
|
|
2787
3448
|
}>;
|
|
3449
|
+
counters?: {
|
|
3450
|
+
KP: {
|
|
3451
|
+
MOD: number;
|
|
3452
|
+
DEC: number;
|
|
3453
|
+
GLD: number;
|
|
3454
|
+
PIT: number;
|
|
3455
|
+
PRO: number;
|
|
3456
|
+
};
|
|
3457
|
+
KT: {
|
|
3458
|
+
MOD: number;
|
|
3459
|
+
DEC: number;
|
|
3460
|
+
GLD: number;
|
|
3461
|
+
PIT: number;
|
|
3462
|
+
PRO: number;
|
|
3463
|
+
};
|
|
3464
|
+
} | undefined;
|
|
2788
3465
|
}, {
|
|
2789
3466
|
revision: string;
|
|
2790
3467
|
nodes: Record<string, unknown>;
|
|
3468
|
+
counters?: {
|
|
3469
|
+
KP?: {
|
|
3470
|
+
MOD?: number | undefined;
|
|
3471
|
+
DEC?: number | undefined;
|
|
3472
|
+
GLD?: number | undefined;
|
|
3473
|
+
PIT?: number | undefined;
|
|
3474
|
+
PRO?: number | undefined;
|
|
3475
|
+
} | undefined;
|
|
3476
|
+
KT?: {
|
|
3477
|
+
MOD?: number | undefined;
|
|
3478
|
+
DEC?: number | undefined;
|
|
3479
|
+
GLD?: number | undefined;
|
|
3480
|
+
PIT?: number | undefined;
|
|
3481
|
+
PRO?: number | undefined;
|
|
3482
|
+
} | undefined;
|
|
3483
|
+
} | undefined;
|
|
2791
3484
|
}>;
|
|
2792
3485
|
}, "strip", z.ZodTypeAny, {
|
|
2793
3486
|
type: "meta:updated";
|
|
@@ -2808,23 +3501,62 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2808
3501
|
impact: string[];
|
|
2809
3502
|
must_read_if: string;
|
|
2810
3503
|
entities?: string[] | undefined;
|
|
3504
|
+
id?: string | undefined;
|
|
3505
|
+
knowledge_type?: "model" | "decision" | "guideline" | "pitfall" | "process" | undefined;
|
|
3506
|
+
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3507
|
+
knowledge_layer?: "personal" | "team" | undefined;
|
|
3508
|
+
layer_reason?: string | undefined;
|
|
3509
|
+
created_at?: string | undefined;
|
|
3510
|
+
tags?: string[] | undefined;
|
|
2811
3511
|
} | undefined;
|
|
2812
|
-
content_ref?: string | undefined;
|
|
2813
|
-
level?: "L0" | "L1" | "L2" | undefined;
|
|
2814
3512
|
stable_id?: string | undefined;
|
|
3513
|
+
level?: "L0" | "L1" | "L2" | undefined;
|
|
3514
|
+
sections?: string[] | undefined;
|
|
3515
|
+
content_ref?: string | undefined;
|
|
2815
3516
|
identity_source?: "declared" | "derived" | undefined;
|
|
2816
3517
|
activation?: {
|
|
2817
3518
|
tier: "always" | "path" | "description";
|
|
2818
3519
|
description?: string | undefined;
|
|
2819
3520
|
} | undefined;
|
|
2820
|
-
sections?: string[] | undefined;
|
|
2821
3521
|
}>;
|
|
3522
|
+
counters?: {
|
|
3523
|
+
KP: {
|
|
3524
|
+
MOD: number;
|
|
3525
|
+
DEC: number;
|
|
3526
|
+
GLD: number;
|
|
3527
|
+
PIT: number;
|
|
3528
|
+
PRO: number;
|
|
3529
|
+
};
|
|
3530
|
+
KT: {
|
|
3531
|
+
MOD: number;
|
|
3532
|
+
DEC: number;
|
|
3533
|
+
GLD: number;
|
|
3534
|
+
PIT: number;
|
|
3535
|
+
PRO: number;
|
|
3536
|
+
};
|
|
3537
|
+
} | undefined;
|
|
2822
3538
|
};
|
|
2823
3539
|
}, {
|
|
2824
3540
|
type: "meta:updated";
|
|
2825
3541
|
payload: {
|
|
2826
3542
|
revision: string;
|
|
2827
3543
|
nodes: Record<string, unknown>;
|
|
3544
|
+
counters?: {
|
|
3545
|
+
KP?: {
|
|
3546
|
+
MOD?: number | undefined;
|
|
3547
|
+
DEC?: number | undefined;
|
|
3548
|
+
GLD?: number | undefined;
|
|
3549
|
+
PIT?: number | undefined;
|
|
3550
|
+
PRO?: number | undefined;
|
|
3551
|
+
} | undefined;
|
|
3552
|
+
KT?: {
|
|
3553
|
+
MOD?: number | undefined;
|
|
3554
|
+
DEC?: number | undefined;
|
|
3555
|
+
GLD?: number | undefined;
|
|
3556
|
+
PIT?: number | undefined;
|
|
3557
|
+
PRO?: number | undefined;
|
|
3558
|
+
} | undefined;
|
|
3559
|
+
} | undefined;
|
|
2828
3560
|
};
|
|
2829
3561
|
}>, z.ZodObject<{
|
|
2830
3562
|
type: z.ZodLiteral<"lock:drift">;
|
|
@@ -3028,15 +3760,15 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3028
3760
|
source: "ai";
|
|
3029
3761
|
ts: number;
|
|
3030
3762
|
affected_paths: string[];
|
|
3031
|
-
commit_sha?: string | undefined;
|
|
3032
3763
|
id?: string | undefined;
|
|
3764
|
+
commit_sha?: string | undefined;
|
|
3033
3765
|
}, {
|
|
3034
3766
|
intent: string;
|
|
3035
3767
|
source: "ai";
|
|
3036
3768
|
ts: number;
|
|
3037
3769
|
affected_paths: string[];
|
|
3038
|
-
commit_sha?: string | undefined;
|
|
3039
3770
|
id?: string | undefined;
|
|
3771
|
+
commit_sha?: string | undefined;
|
|
3040
3772
|
}>, z.ZodObject<{
|
|
3041
3773
|
source: z.ZodLiteral<"human">;
|
|
3042
3774
|
parent_sha: z.ZodString;
|
|
@@ -3054,8 +3786,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3054
3786
|
affected_paths: string[];
|
|
3055
3787
|
parent_sha: string;
|
|
3056
3788
|
diff_stat: string;
|
|
3057
|
-
annotation?: string | undefined;
|
|
3058
3789
|
id?: string | undefined;
|
|
3790
|
+
annotation?: string | undefined;
|
|
3059
3791
|
parent_ledger_entry_id?: string | undefined;
|
|
3060
3792
|
}, {
|
|
3061
3793
|
intent: string;
|
|
@@ -3064,16 +3796,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3064
3796
|
affected_paths: string[];
|
|
3065
3797
|
parent_sha: string;
|
|
3066
3798
|
diff_stat: string;
|
|
3067
|
-
annotation?: string | undefined;
|
|
3068
3799
|
id?: string | undefined;
|
|
3800
|
+
annotation?: string | undefined;
|
|
3069
3801
|
parent_ledger_entry_id?: string | undefined;
|
|
3070
3802
|
}>]>, {
|
|
3071
3803
|
intent: string;
|
|
3072
3804
|
source: "ai";
|
|
3073
3805
|
ts: number;
|
|
3074
3806
|
affected_paths: string[];
|
|
3075
|
-
commit_sha?: string | undefined;
|
|
3076
3807
|
id?: string | undefined;
|
|
3808
|
+
commit_sha?: string | undefined;
|
|
3077
3809
|
} | {
|
|
3078
3810
|
intent: string;
|
|
3079
3811
|
source: "human";
|
|
@@ -3081,8 +3813,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3081
3813
|
affected_paths: string[];
|
|
3082
3814
|
parent_sha: string;
|
|
3083
3815
|
diff_stat: string;
|
|
3084
|
-
annotation?: string | undefined;
|
|
3085
3816
|
id?: string | undefined;
|
|
3817
|
+
annotation?: string | undefined;
|
|
3086
3818
|
parent_ledger_entry_id?: string | undefined;
|
|
3087
3819
|
}, unknown>;
|
|
3088
3820
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3092,8 +3824,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3092
3824
|
source: "ai";
|
|
3093
3825
|
ts: number;
|
|
3094
3826
|
affected_paths: string[];
|
|
3095
|
-
commit_sha?: string | undefined;
|
|
3096
3827
|
id?: string | undefined;
|
|
3828
|
+
commit_sha?: string | undefined;
|
|
3097
3829
|
} | {
|
|
3098
3830
|
intent: string;
|
|
3099
3831
|
source: "human";
|
|
@@ -3101,8 +3833,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3101
3833
|
affected_paths: string[];
|
|
3102
3834
|
parent_sha: string;
|
|
3103
3835
|
diff_stat: string;
|
|
3104
|
-
annotation?: string | undefined;
|
|
3105
3836
|
id?: string | undefined;
|
|
3837
|
+
annotation?: string | undefined;
|
|
3106
3838
|
parent_ledger_entry_id?: string | undefined;
|
|
3107
3839
|
};
|
|
3108
3840
|
}, {
|
|
@@ -3541,8 +4273,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3541
4273
|
};
|
|
3542
4274
|
}>]>;
|
|
3543
4275
|
|
|
3544
|
-
declare const
|
|
3545
|
-
event_type: z.ZodLiteral<"
|
|
4276
|
+
declare const knowledgeContextPlannedEventSchema: z.ZodObject<{
|
|
4277
|
+
event_type: z.ZodLiteral<"knowledge_context_planned">;
|
|
3546
4278
|
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
3547
4279
|
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
3548
4280
|
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3559,13 +4291,13 @@ declare const ruleContextPlannedEventSchema: z.ZodObject<{
|
|
|
3559
4291
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3560
4292
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3561
4293
|
}, "strip", z.ZodTypeAny, {
|
|
3562
|
-
|
|
4294
|
+
id: string;
|
|
3563
4295
|
required_stable_ids: string[];
|
|
3564
4296
|
ai_selectable_stable_ids: string[];
|
|
3565
4297
|
ts: number;
|
|
3566
|
-
|
|
4298
|
+
schema_version: 1;
|
|
3567
4299
|
kind: "fabric-event";
|
|
3568
|
-
event_type: "
|
|
4300
|
+
event_type: "knowledge_context_planned";
|
|
3569
4301
|
target_paths: string[];
|
|
3570
4302
|
final_stable_ids: string[];
|
|
3571
4303
|
known_tech?: string[] | undefined;
|
|
@@ -3576,13 +4308,13 @@ declare const ruleContextPlannedEventSchema: z.ZodObject<{
|
|
|
3576
4308
|
selection_token?: string | undefined;
|
|
3577
4309
|
diagnostics?: unknown[] | undefined;
|
|
3578
4310
|
}, {
|
|
3579
|
-
|
|
4311
|
+
id: string;
|
|
3580
4312
|
required_stable_ids: string[];
|
|
3581
4313
|
ai_selectable_stable_ids: string[];
|
|
3582
4314
|
ts: number;
|
|
3583
|
-
|
|
4315
|
+
schema_version: 1;
|
|
3584
4316
|
kind: "fabric-event";
|
|
3585
|
-
event_type: "
|
|
4317
|
+
event_type: "knowledge_context_planned";
|
|
3586
4318
|
target_paths: string[];
|
|
3587
4319
|
final_stable_ids: string[];
|
|
3588
4320
|
known_tech?: string[] | undefined;
|
|
@@ -3593,8 +4325,8 @@ declare const ruleContextPlannedEventSchema: z.ZodObject<{
|
|
|
3593
4325
|
selection_token?: string | undefined;
|
|
3594
4326
|
diagnostics?: unknown[] | undefined;
|
|
3595
4327
|
}>;
|
|
3596
|
-
declare const
|
|
3597
|
-
event_type: z.ZodLiteral<"
|
|
4328
|
+
declare const knowledgeSelectionEventSchema: z.ZodObject<{
|
|
4329
|
+
event_type: z.ZodLiteral<"knowledge_selection">;
|
|
3598
4330
|
selection_token: z.ZodString;
|
|
3599
4331
|
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
3600
4332
|
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3611,16 +4343,16 @@ declare const ruleSelectionEventSchema: z.ZodObject<{
|
|
|
3611
4343
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3612
4344
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3613
4345
|
}, "strip", z.ZodTypeAny, {
|
|
3614
|
-
|
|
4346
|
+
id: string;
|
|
3615
4347
|
selection_token: string;
|
|
3616
4348
|
required_stable_ids: string[];
|
|
3617
4349
|
ai_selectable_stable_ids: string[];
|
|
3618
4350
|
ai_selected_stable_ids: string[];
|
|
3619
4351
|
ai_selection_reasons: Record<string, string>;
|
|
3620
4352
|
ts: number;
|
|
3621
|
-
|
|
4353
|
+
schema_version: 1;
|
|
3622
4354
|
kind: "fabric-event";
|
|
3623
|
-
event_type: "
|
|
4355
|
+
event_type: "knowledge_selection";
|
|
3624
4356
|
target_paths: string[];
|
|
3625
4357
|
final_stable_ids: string[];
|
|
3626
4358
|
rejected_stable_ids: string[];
|
|
@@ -3628,16 +4360,16 @@ declare const ruleSelectionEventSchema: z.ZodObject<{
|
|
|
3628
4360
|
correlation_id?: string | undefined;
|
|
3629
4361
|
session_id?: string | undefined;
|
|
3630
4362
|
}, {
|
|
3631
|
-
|
|
4363
|
+
id: string;
|
|
3632
4364
|
selection_token: string;
|
|
3633
4365
|
required_stable_ids: string[];
|
|
3634
4366
|
ai_selectable_stable_ids: string[];
|
|
3635
4367
|
ai_selected_stable_ids: string[];
|
|
3636
4368
|
ai_selection_reasons: Record<string, string>;
|
|
3637
4369
|
ts: number;
|
|
3638
|
-
|
|
4370
|
+
schema_version: 1;
|
|
3639
4371
|
kind: "fabric-event";
|
|
3640
|
-
event_type: "
|
|
4372
|
+
event_type: "knowledge_selection";
|
|
3641
4373
|
target_paths: string[];
|
|
3642
4374
|
final_stable_ids: string[];
|
|
3643
4375
|
rejected_stable_ids: string[];
|
|
@@ -3645,8 +4377,8 @@ declare const ruleSelectionEventSchema: z.ZodObject<{
|
|
|
3645
4377
|
correlation_id?: string | undefined;
|
|
3646
4378
|
session_id?: string | undefined;
|
|
3647
4379
|
}>;
|
|
3648
|
-
declare const
|
|
3649
|
-
event_type: z.ZodLiteral<"
|
|
4380
|
+
declare const knowledgeSectionsFetchedEventSchema: z.ZodObject<{
|
|
4381
|
+
event_type: z.ZodLiteral<"knowledge_sections_fetched">;
|
|
3650
4382
|
selection_token: z.ZodString;
|
|
3651
4383
|
target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3652
4384
|
requested_sections: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3660,13 +4392,13 @@ declare const ruleSectionsFetchedEventSchema: z.ZodObject<{
|
|
|
3660
4392
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3661
4393
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3662
4394
|
}, "strip", z.ZodTypeAny, {
|
|
3663
|
-
|
|
4395
|
+
id: string;
|
|
3664
4396
|
selection_token: string;
|
|
3665
4397
|
ai_selected_stable_ids: string[];
|
|
3666
4398
|
ts: number;
|
|
3667
|
-
|
|
4399
|
+
schema_version: 1;
|
|
3668
4400
|
kind: "fabric-event";
|
|
3669
|
-
event_type: "
|
|
4401
|
+
event_type: "knowledge_sections_fetched";
|
|
3670
4402
|
final_stable_ids: string[];
|
|
3671
4403
|
requested_sections: string[];
|
|
3672
4404
|
correlation_id?: string | undefined;
|
|
@@ -3674,13 +4406,13 @@ declare const ruleSectionsFetchedEventSchema: z.ZodObject<{
|
|
|
3674
4406
|
diagnostics?: unknown[] | undefined;
|
|
3675
4407
|
target_paths?: string[] | undefined;
|
|
3676
4408
|
}, {
|
|
3677
|
-
|
|
4409
|
+
id: string;
|
|
3678
4410
|
selection_token: string;
|
|
3679
4411
|
ai_selected_stable_ids: string[];
|
|
3680
4412
|
ts: number;
|
|
3681
|
-
|
|
4413
|
+
schema_version: 1;
|
|
3682
4414
|
kind: "fabric-event";
|
|
3683
|
-
event_type: "
|
|
4415
|
+
event_type: "knowledge_sections_fetched";
|
|
3684
4416
|
final_stable_ids: string[];
|
|
3685
4417
|
requested_sections: string[];
|
|
3686
4418
|
correlation_id?: string | undefined;
|
|
@@ -3711,10 +4443,10 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
3711
4443
|
}, "strip", z.ZodTypeAny, {
|
|
3712
4444
|
path: string;
|
|
3713
4445
|
ledger_entry_id: string;
|
|
3714
|
-
|
|
4446
|
+
id: string;
|
|
3715
4447
|
intent: string;
|
|
3716
4448
|
ts: number;
|
|
3717
|
-
|
|
4449
|
+
schema_version: 1;
|
|
3718
4450
|
kind: "fabric-event";
|
|
3719
4451
|
event_type: "edit_intent_checked";
|
|
3720
4452
|
compliant: boolean;
|
|
@@ -3731,10 +4463,10 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
3731
4463
|
}, {
|
|
3732
4464
|
path: string;
|
|
3733
4465
|
ledger_entry_id: string;
|
|
3734
|
-
|
|
4466
|
+
id: string;
|
|
3735
4467
|
intent: string;
|
|
3736
4468
|
ts: number;
|
|
3737
|
-
|
|
4469
|
+
schema_version: 1;
|
|
3738
4470
|
kind: "fabric-event";
|
|
3739
4471
|
event_type: "edit_intent_checked";
|
|
3740
4472
|
compliant: boolean;
|
|
@@ -3749,8 +4481,8 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
3749
4481
|
diff_stat?: string | undefined;
|
|
3750
4482
|
ledger_source?: "ai" | "human" | undefined;
|
|
3751
4483
|
}>;
|
|
3752
|
-
declare const
|
|
3753
|
-
event_type: z.ZodLiteral<"
|
|
4484
|
+
declare const knowledgeDriftDetectedEventSchema: z.ZodObject<{
|
|
4485
|
+
event_type: z.ZodLiteral<"knowledge_drift_detected">;
|
|
3754
4486
|
revision: z.ZodOptional<z.ZodString>;
|
|
3755
4487
|
drifted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
3756
4488
|
missing_files: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3778,17 +4510,17 @@ declare const ruleDriftDetectedEventSchema: z.ZodObject<{
|
|
|
3778
4510
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3779
4511
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3780
4512
|
}, "strip", z.ZodTypeAny, {
|
|
3781
|
-
schema_version: 1;
|
|
3782
|
-
ts: number;
|
|
3783
4513
|
id: string;
|
|
4514
|
+
ts: number;
|
|
4515
|
+
schema_version: 1;
|
|
3784
4516
|
kind: "fabric-event";
|
|
3785
|
-
event_type: "
|
|
4517
|
+
event_type: "knowledge_drift_detected";
|
|
3786
4518
|
drifted_stable_ids: string[];
|
|
3787
4519
|
missing_files: string[];
|
|
3788
4520
|
stale_files: string[];
|
|
3789
|
-
revision?: string | undefined;
|
|
3790
4521
|
correlation_id?: string | undefined;
|
|
3791
4522
|
session_id?: string | undefined;
|
|
4523
|
+
revision?: string | undefined;
|
|
3792
4524
|
details?: {
|
|
3793
4525
|
file: string;
|
|
3794
4526
|
stable_id: string;
|
|
@@ -3796,17 +4528,17 @@ declare const ruleDriftDetectedEventSchema: z.ZodObject<{
|
|
|
3796
4528
|
actual_hash: string | null;
|
|
3797
4529
|
}[] | undefined;
|
|
3798
4530
|
}, {
|
|
3799
|
-
schema_version: 1;
|
|
3800
|
-
ts: number;
|
|
3801
4531
|
id: string;
|
|
4532
|
+
ts: number;
|
|
4533
|
+
schema_version: 1;
|
|
3802
4534
|
kind: "fabric-event";
|
|
3803
|
-
event_type: "
|
|
4535
|
+
event_type: "knowledge_drift_detected";
|
|
3804
4536
|
drifted_stable_ids: string[];
|
|
3805
4537
|
missing_files: string[];
|
|
3806
4538
|
stale_files: string[];
|
|
3807
|
-
revision?: string | undefined;
|
|
3808
4539
|
correlation_id?: string | undefined;
|
|
3809
4540
|
session_id?: string | undefined;
|
|
4541
|
+
revision?: string | undefined;
|
|
3810
4542
|
details?: {
|
|
3811
4543
|
file: string;
|
|
3812
4544
|
stable_id: string;
|
|
@@ -3814,83 +4546,6 @@ declare const ruleDriftDetectedEventSchema: z.ZodObject<{
|
|
|
3814
4546
|
actual_hash: string | null;
|
|
3815
4547
|
}[] | undefined;
|
|
3816
4548
|
}>;
|
|
3817
|
-
declare const ruleBaselineAcceptedEventSchema: z.ZodObject<{
|
|
3818
|
-
event_type: z.ZodLiteral<"rule_baseline_accepted">;
|
|
3819
|
-
revision: z.ZodString;
|
|
3820
|
-
previous_revision: z.ZodOptional<z.ZodString>;
|
|
3821
|
-
accepted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
3822
|
-
source: z.ZodOptional<z.ZodEnum<["doctor_fix", "sync_meta"]>>;
|
|
3823
|
-
kind: z.ZodLiteral<"fabric-event">;
|
|
3824
|
-
id: z.ZodString;
|
|
3825
|
-
ts: z.ZodNumber;
|
|
3826
|
-
schema_version: z.ZodLiteral<1>;
|
|
3827
|
-
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3828
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
3829
|
-
}, "strip", z.ZodTypeAny, {
|
|
3830
|
-
revision: string;
|
|
3831
|
-
schema_version: 1;
|
|
3832
|
-
ts: number;
|
|
3833
|
-
id: string;
|
|
3834
|
-
kind: "fabric-event";
|
|
3835
|
-
event_type: "rule_baseline_accepted";
|
|
3836
|
-
accepted_stable_ids: string[];
|
|
3837
|
-
previous_revision?: string | undefined;
|
|
3838
|
-
correlation_id?: string | undefined;
|
|
3839
|
-
session_id?: string | undefined;
|
|
3840
|
-
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
3841
|
-
}, {
|
|
3842
|
-
revision: string;
|
|
3843
|
-
schema_version: 1;
|
|
3844
|
-
ts: number;
|
|
3845
|
-
id: string;
|
|
3846
|
-
kind: "fabric-event";
|
|
3847
|
-
event_type: "rule_baseline_accepted";
|
|
3848
|
-
accepted_stable_ids: string[];
|
|
3849
|
-
previous_revision?: string | undefined;
|
|
3850
|
-
correlation_id?: string | undefined;
|
|
3851
|
-
session_id?: string | undefined;
|
|
3852
|
-
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
3853
|
-
}>;
|
|
3854
|
-
declare const baselineSyncedEventSchema: z.ZodObject<{
|
|
3855
|
-
event_type: z.ZodLiteral<"baseline_synced">;
|
|
3856
|
-
revision: z.ZodString;
|
|
3857
|
-
previous_revision: z.ZodOptional<z.ZodString>;
|
|
3858
|
-
synced_files: z.ZodArray<z.ZodString, "many">;
|
|
3859
|
-
accepted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
3860
|
-
source: z.ZodEnum<["doctor_fix", "sync_meta"]>;
|
|
3861
|
-
kind: z.ZodLiteral<"fabric-event">;
|
|
3862
|
-
id: z.ZodString;
|
|
3863
|
-
ts: z.ZodNumber;
|
|
3864
|
-
schema_version: z.ZodLiteral<1>;
|
|
3865
|
-
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3866
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
3867
|
-
}, "strip", z.ZodTypeAny, {
|
|
3868
|
-
revision: string;
|
|
3869
|
-
schema_version: 1;
|
|
3870
|
-
source: "doctor_fix" | "sync_meta";
|
|
3871
|
-
ts: number;
|
|
3872
|
-
id: string;
|
|
3873
|
-
kind: "fabric-event";
|
|
3874
|
-
event_type: "baseline_synced";
|
|
3875
|
-
accepted_stable_ids: string[];
|
|
3876
|
-
synced_files: string[];
|
|
3877
|
-
previous_revision?: string | undefined;
|
|
3878
|
-
correlation_id?: string | undefined;
|
|
3879
|
-
session_id?: string | undefined;
|
|
3880
|
-
}, {
|
|
3881
|
-
revision: string;
|
|
3882
|
-
schema_version: 1;
|
|
3883
|
-
source: "doctor_fix" | "sync_meta";
|
|
3884
|
-
ts: number;
|
|
3885
|
-
id: string;
|
|
3886
|
-
kind: "fabric-event";
|
|
3887
|
-
event_type: "baseline_synced";
|
|
3888
|
-
accepted_stable_ids: string[];
|
|
3889
|
-
synced_files: string[];
|
|
3890
|
-
previous_revision?: string | undefined;
|
|
3891
|
-
correlation_id?: string | undefined;
|
|
3892
|
-
session_id?: string | undefined;
|
|
3893
|
-
}>;
|
|
3894
4549
|
declare const mcpEventLedgerEventSchema: z.ZodObject<{
|
|
3895
4550
|
event_type: z.ZodLiteral<"mcp_event">;
|
|
3896
4551
|
mcp_event_id: z.ZodString;
|
|
@@ -3903,9 +4558,9 @@ declare const mcpEventLedgerEventSchema: z.ZodObject<{
|
|
|
3903
4558
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3904
4559
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3905
4560
|
}, "strip", z.ZodTypeAny, {
|
|
3906
|
-
schema_version: 1;
|
|
3907
|
-
ts: number;
|
|
3908
4561
|
id: string;
|
|
4562
|
+
ts: number;
|
|
4563
|
+
schema_version: 1;
|
|
3909
4564
|
kind: "fabric-event";
|
|
3910
4565
|
event_type: "mcp_event";
|
|
3911
4566
|
mcp_event_id: string;
|
|
@@ -3914,9 +4569,9 @@ declare const mcpEventLedgerEventSchema: z.ZodObject<{
|
|
|
3914
4569
|
correlation_id?: string | undefined;
|
|
3915
4570
|
session_id?: string | undefined;
|
|
3916
4571
|
}, {
|
|
3917
|
-
schema_version: 1;
|
|
3918
|
-
ts: number;
|
|
3919
4572
|
id: string;
|
|
4573
|
+
ts: number;
|
|
4574
|
+
schema_version: 1;
|
|
3920
4575
|
kind: "fabric-event";
|
|
3921
4576
|
event_type: "mcp_event";
|
|
3922
4577
|
mcp_event_id: string;
|
|
@@ -3937,9 +4592,9 @@ declare const reapplyCompletedEventSchema: z.ZodObject<{
|
|
|
3937
4592
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3938
4593
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3939
4594
|
}, "strip", z.ZodTypeAny, {
|
|
3940
|
-
schema_version: 1;
|
|
3941
|
-
ts: number;
|
|
3942
4595
|
id: string;
|
|
4596
|
+
ts: number;
|
|
4597
|
+
schema_version: 1;
|
|
3943
4598
|
kind: "fabric-event";
|
|
3944
4599
|
event_type: "reapply_completed";
|
|
3945
4600
|
preserved_ledger: boolean;
|
|
@@ -3948,9 +4603,9 @@ declare const reapplyCompletedEventSchema: z.ZodObject<{
|
|
|
3948
4603
|
correlation_id?: string | undefined;
|
|
3949
4604
|
session_id?: string | undefined;
|
|
3950
4605
|
}, {
|
|
3951
|
-
schema_version: 1;
|
|
3952
|
-
ts: number;
|
|
3953
4606
|
id: string;
|
|
4607
|
+
ts: number;
|
|
4608
|
+
schema_version: 1;
|
|
3954
4609
|
kind: "fabric-event";
|
|
3955
4610
|
event_type: "reapply_completed";
|
|
3956
4611
|
preserved_ledger: boolean;
|
|
@@ -3971,9 +4626,9 @@ declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
|
|
|
3971
4626
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3972
4627
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3973
4628
|
}, "strip", z.ZodTypeAny, {
|
|
3974
|
-
schema_version: 1;
|
|
3975
|
-
ts: number;
|
|
3976
4629
|
id: string;
|
|
4630
|
+
ts: number;
|
|
4631
|
+
schema_version: 1;
|
|
3977
4632
|
kind: "fabric-event";
|
|
3978
4633
|
event_type: "event_ledger_truncated";
|
|
3979
4634
|
byte_offset: number;
|
|
@@ -3982,9 +4637,9 @@ declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
|
|
|
3982
4637
|
correlation_id?: string | undefined;
|
|
3983
4638
|
session_id?: string | undefined;
|
|
3984
4639
|
}, {
|
|
3985
|
-
schema_version: 1;
|
|
3986
|
-
ts: number;
|
|
3987
4640
|
id: string;
|
|
4641
|
+
ts: number;
|
|
4642
|
+
schema_version: 1;
|
|
3988
4643
|
kind: "fabric-event";
|
|
3989
4644
|
event_type: "event_ledger_truncated";
|
|
3990
4645
|
byte_offset: number;
|
|
@@ -4004,20 +4659,20 @@ declare const mcpConfigMigratedEventSchema: z.ZodObject<{
|
|
|
4004
4659
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4005
4660
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4006
4661
|
}, "strip", z.ZodTypeAny, {
|
|
4007
|
-
|
|
4662
|
+
id: string;
|
|
4008
4663
|
source: "doctor_fix";
|
|
4009
4664
|
ts: number;
|
|
4010
|
-
|
|
4665
|
+
schema_version: 1;
|
|
4011
4666
|
kind: "fabric-event";
|
|
4012
4667
|
event_type: "mcp_config_migrated";
|
|
4013
4668
|
removed_from: string;
|
|
4014
4669
|
correlation_id?: string | undefined;
|
|
4015
4670
|
session_id?: string | undefined;
|
|
4016
4671
|
}, {
|
|
4017
|
-
|
|
4672
|
+
id: string;
|
|
4018
4673
|
source: "doctor_fix";
|
|
4019
4674
|
ts: number;
|
|
4020
|
-
|
|
4675
|
+
schema_version: 1;
|
|
4021
4676
|
kind: "fabric-event";
|
|
4022
4677
|
event_type: "mcp_config_migrated";
|
|
4023
4678
|
removed_from: string;
|
|
@@ -4036,10 +4691,10 @@ declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
|
4036
4691
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4037
4692
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4038
4693
|
}, "strip", z.ZodTypeAny, {
|
|
4039
|
-
|
|
4694
|
+
id: string;
|
|
4040
4695
|
source: "reconcileRules";
|
|
4041
4696
|
ts: number;
|
|
4042
|
-
|
|
4697
|
+
schema_version: 1;
|
|
4043
4698
|
kind: "fabric-event";
|
|
4044
4699
|
event_type: "meta_reconciled_on_startup";
|
|
4045
4700
|
reconciled_files: string[];
|
|
@@ -4047,10 +4702,10 @@ declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
|
4047
4702
|
correlation_id?: string | undefined;
|
|
4048
4703
|
session_id?: string | undefined;
|
|
4049
4704
|
}, {
|
|
4050
|
-
|
|
4705
|
+
id: string;
|
|
4051
4706
|
source: "reconcileRules";
|
|
4052
4707
|
ts: number;
|
|
4053
|
-
|
|
4708
|
+
schema_version: 1;
|
|
4054
4709
|
kind: "fabric-event";
|
|
4055
4710
|
event_type: "meta_reconciled_on_startup";
|
|
4056
4711
|
reconciled_files: string[];
|
|
@@ -4071,10 +4726,10 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
4071
4726
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4072
4727
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4073
4728
|
}, "strip", z.ZodTypeAny, {
|
|
4074
|
-
|
|
4729
|
+
id: string;
|
|
4075
4730
|
source: "reconcileRules";
|
|
4076
4731
|
ts: number;
|
|
4077
|
-
|
|
4732
|
+
schema_version: 1;
|
|
4078
4733
|
kind: "fabric-event";
|
|
4079
4734
|
event_type: "meta_reconciled";
|
|
4080
4735
|
reconciled_files: string[];
|
|
@@ -4083,10 +4738,10 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
4083
4738
|
correlation_id?: string | undefined;
|
|
4084
4739
|
session_id?: string | undefined;
|
|
4085
4740
|
}, {
|
|
4086
|
-
|
|
4741
|
+
id: string;
|
|
4087
4742
|
source: "reconcileRules";
|
|
4088
4743
|
ts: number;
|
|
4089
|
-
|
|
4744
|
+
schema_version: 1;
|
|
4090
4745
|
kind: "fabric-event";
|
|
4091
4746
|
event_type: "meta_reconciled";
|
|
4092
4747
|
reconciled_files: string[];
|
|
@@ -4106,9 +4761,9 @@ declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
|
4106
4761
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4107
4762
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4108
4763
|
}, "strip", z.ZodTypeAny, {
|
|
4109
|
-
schema_version: 1;
|
|
4110
|
-
ts: number;
|
|
4111
4764
|
id: string;
|
|
4765
|
+
ts: number;
|
|
4766
|
+
schema_version: 1;
|
|
4112
4767
|
kind: "fabric-event";
|
|
4113
4768
|
event_type: "claude_skill_path_migrated";
|
|
4114
4769
|
from: string;
|
|
@@ -4116,9 +4771,9 @@ declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
|
4116
4771
|
correlation_id?: string | undefined;
|
|
4117
4772
|
session_id?: string | undefined;
|
|
4118
4773
|
}, {
|
|
4119
|
-
schema_version: 1;
|
|
4120
|
-
ts: number;
|
|
4121
4774
|
id: string;
|
|
4775
|
+
ts: number;
|
|
4776
|
+
schema_version: 1;
|
|
4122
4777
|
kind: "fabric-event";
|
|
4123
4778
|
event_type: "claude_skill_path_migrated";
|
|
4124
4779
|
from: string;
|
|
@@ -4137,9 +4792,9 @@ declare const claudeHookPathMigratedEventSchema: z.ZodObject<{
|
|
|
4137
4792
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4138
4793
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4139
4794
|
}, "strip", z.ZodTypeAny, {
|
|
4140
|
-
schema_version: 1;
|
|
4141
|
-
ts: number;
|
|
4142
4795
|
id: string;
|
|
4796
|
+
ts: number;
|
|
4797
|
+
schema_version: 1;
|
|
4143
4798
|
kind: "fabric-event";
|
|
4144
4799
|
event_type: "claude_hook_path_migrated";
|
|
4145
4800
|
from: string;
|
|
@@ -4147,9 +4802,9 @@ declare const claudeHookPathMigratedEventSchema: z.ZodObject<{
|
|
|
4147
4802
|
correlation_id?: string | undefined;
|
|
4148
4803
|
session_id?: string | undefined;
|
|
4149
4804
|
}, {
|
|
4150
|
-
schema_version: 1;
|
|
4151
|
-
ts: number;
|
|
4152
4805
|
id: string;
|
|
4806
|
+
ts: number;
|
|
4807
|
+
schema_version: 1;
|
|
4153
4808
|
kind: "fabric-event";
|
|
4154
4809
|
event_type: "claude_hook_path_migrated";
|
|
4155
4810
|
from: string;
|
|
@@ -4168,9 +4823,9 @@ declare const codexSkillPathMigratedEventSchema: z.ZodObject<{
|
|
|
4168
4823
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4169
4824
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4170
4825
|
}, "strip", z.ZodTypeAny, {
|
|
4171
|
-
schema_version: 1;
|
|
4172
|
-
ts: number;
|
|
4173
4826
|
id: string;
|
|
4827
|
+
ts: number;
|
|
4828
|
+
schema_version: 1;
|
|
4174
4829
|
kind: "fabric-event";
|
|
4175
4830
|
event_type: "codex_skill_path_migrated";
|
|
4176
4831
|
from: string;
|
|
@@ -4178,9 +4833,9 @@ declare const codexSkillPathMigratedEventSchema: z.ZodObject<{
|
|
|
4178
4833
|
correlation_id?: string | undefined;
|
|
4179
4834
|
session_id?: string | undefined;
|
|
4180
4835
|
}, {
|
|
4181
|
-
schema_version: 1;
|
|
4182
|
-
ts: number;
|
|
4183
4836
|
id: string;
|
|
4837
|
+
ts: number;
|
|
4838
|
+
schema_version: 1;
|
|
4184
4839
|
kind: "fabric-event";
|
|
4185
4840
|
event_type: "codex_skill_path_migrated";
|
|
4186
4841
|
from: string;
|
|
@@ -4188,9 +4843,11 @@ declare const codexSkillPathMigratedEventSchema: z.ZodObject<{
|
|
|
4188
4843
|
correlation_id?: string | undefined;
|
|
4189
4844
|
session_id?: string | undefined;
|
|
4190
4845
|
}>;
|
|
4191
|
-
declare const
|
|
4192
|
-
event_type: z.ZodLiteral<"
|
|
4193
|
-
|
|
4846
|
+
declare const initScanCompletedEventSchema: z.ZodObject<{
|
|
4847
|
+
event_type: z.ZodLiteral<"init_scan_completed">;
|
|
4848
|
+
written_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4849
|
+
duration_ms: z.ZodNumber;
|
|
4850
|
+
source: z.ZodOptional<z.ZodEnum<["init", "scan", "doctor_fix"]>>;
|
|
4194
4851
|
kind: z.ZodLiteral<"fabric-event">;
|
|
4195
4852
|
id: z.ZodString;
|
|
4196
4853
|
ts: z.ZodNumber;
|
|
@@ -4198,26 +4855,30 @@ declare const legacyClientPathPresentEventSchema: z.ZodObject<{
|
|
|
4198
4855
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4199
4856
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4200
4857
|
}, "strip", z.ZodTypeAny, {
|
|
4201
|
-
schema_version: 1;
|
|
4202
|
-
ts: number;
|
|
4203
4858
|
id: string;
|
|
4859
|
+
ts: number;
|
|
4860
|
+
schema_version: 1;
|
|
4204
4861
|
kind: "fabric-event";
|
|
4205
|
-
event_type: "
|
|
4206
|
-
|
|
4862
|
+
event_type: "init_scan_completed";
|
|
4863
|
+
duration_ms: number;
|
|
4864
|
+
written_stable_ids: string[];
|
|
4207
4865
|
correlation_id?: string | undefined;
|
|
4208
4866
|
session_id?: string | undefined;
|
|
4867
|
+
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
4209
4868
|
}, {
|
|
4210
|
-
schema_version: 1;
|
|
4211
|
-
ts: number;
|
|
4212
4869
|
id: string;
|
|
4870
|
+
ts: number;
|
|
4871
|
+
schema_version: 1;
|
|
4213
4872
|
kind: "fabric-event";
|
|
4214
|
-
event_type: "
|
|
4215
|
-
|
|
4873
|
+
event_type: "init_scan_completed";
|
|
4874
|
+
duration_ms: number;
|
|
4875
|
+
written_stable_ids: string[];
|
|
4216
4876
|
correlation_id?: string | undefined;
|
|
4217
4877
|
session_id?: string | undefined;
|
|
4878
|
+
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
4218
4879
|
}>;
|
|
4219
4880
|
declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
4220
|
-
event_type: z.ZodLiteral<"
|
|
4881
|
+
event_type: z.ZodLiteral<"knowledge_context_planned">;
|
|
4221
4882
|
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
4222
4883
|
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4223
4884
|
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4234,13 +4895,13 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4234
4895
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4235
4896
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4236
4897
|
}, "strip", z.ZodTypeAny, {
|
|
4237
|
-
|
|
4898
|
+
id: string;
|
|
4238
4899
|
required_stable_ids: string[];
|
|
4239
4900
|
ai_selectable_stable_ids: string[];
|
|
4240
4901
|
ts: number;
|
|
4241
|
-
|
|
4902
|
+
schema_version: 1;
|
|
4242
4903
|
kind: "fabric-event";
|
|
4243
|
-
event_type: "
|
|
4904
|
+
event_type: "knowledge_context_planned";
|
|
4244
4905
|
target_paths: string[];
|
|
4245
4906
|
final_stable_ids: string[];
|
|
4246
4907
|
known_tech?: string[] | undefined;
|
|
@@ -4251,13 +4912,13 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4251
4912
|
selection_token?: string | undefined;
|
|
4252
4913
|
diagnostics?: unknown[] | undefined;
|
|
4253
4914
|
}, {
|
|
4254
|
-
|
|
4915
|
+
id: string;
|
|
4255
4916
|
required_stable_ids: string[];
|
|
4256
4917
|
ai_selectable_stable_ids: string[];
|
|
4257
4918
|
ts: number;
|
|
4258
|
-
|
|
4919
|
+
schema_version: 1;
|
|
4259
4920
|
kind: "fabric-event";
|
|
4260
|
-
event_type: "
|
|
4921
|
+
event_type: "knowledge_context_planned";
|
|
4261
4922
|
target_paths: string[];
|
|
4262
4923
|
final_stable_ids: string[];
|
|
4263
4924
|
known_tech?: string[] | undefined;
|
|
@@ -4268,7 +4929,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4268
4929
|
selection_token?: string | undefined;
|
|
4269
4930
|
diagnostics?: unknown[] | undefined;
|
|
4270
4931
|
}>, z.ZodObject<{
|
|
4271
|
-
event_type: z.ZodLiteral<"
|
|
4932
|
+
event_type: z.ZodLiteral<"knowledge_selection">;
|
|
4272
4933
|
selection_token: z.ZodString;
|
|
4273
4934
|
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
4274
4935
|
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4285,16 +4946,16 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4285
4946
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4286
4947
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4287
4948
|
}, "strip", z.ZodTypeAny, {
|
|
4288
|
-
|
|
4949
|
+
id: string;
|
|
4289
4950
|
selection_token: string;
|
|
4290
4951
|
required_stable_ids: string[];
|
|
4291
4952
|
ai_selectable_stable_ids: string[];
|
|
4292
4953
|
ai_selected_stable_ids: string[];
|
|
4293
4954
|
ai_selection_reasons: Record<string, string>;
|
|
4294
4955
|
ts: number;
|
|
4295
|
-
|
|
4956
|
+
schema_version: 1;
|
|
4296
4957
|
kind: "fabric-event";
|
|
4297
|
-
event_type: "
|
|
4958
|
+
event_type: "knowledge_selection";
|
|
4298
4959
|
target_paths: string[];
|
|
4299
4960
|
final_stable_ids: string[];
|
|
4300
4961
|
rejected_stable_ids: string[];
|
|
@@ -4302,16 +4963,16 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4302
4963
|
correlation_id?: string | undefined;
|
|
4303
4964
|
session_id?: string | undefined;
|
|
4304
4965
|
}, {
|
|
4305
|
-
|
|
4966
|
+
id: string;
|
|
4306
4967
|
selection_token: string;
|
|
4307
4968
|
required_stable_ids: string[];
|
|
4308
4969
|
ai_selectable_stable_ids: string[];
|
|
4309
4970
|
ai_selected_stable_ids: string[];
|
|
4310
4971
|
ai_selection_reasons: Record<string, string>;
|
|
4311
4972
|
ts: number;
|
|
4312
|
-
|
|
4973
|
+
schema_version: 1;
|
|
4313
4974
|
kind: "fabric-event";
|
|
4314
|
-
event_type: "
|
|
4975
|
+
event_type: "knowledge_selection";
|
|
4315
4976
|
target_paths: string[];
|
|
4316
4977
|
final_stable_ids: string[];
|
|
4317
4978
|
rejected_stable_ids: string[];
|
|
@@ -4319,7 +4980,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4319
4980
|
correlation_id?: string | undefined;
|
|
4320
4981
|
session_id?: string | undefined;
|
|
4321
4982
|
}>, z.ZodObject<{
|
|
4322
|
-
event_type: z.ZodLiteral<"
|
|
4983
|
+
event_type: z.ZodLiteral<"knowledge_sections_fetched">;
|
|
4323
4984
|
selection_token: z.ZodString;
|
|
4324
4985
|
target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4325
4986
|
requested_sections: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4333,13 +4994,13 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4333
4994
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4334
4995
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4335
4996
|
}, "strip", z.ZodTypeAny, {
|
|
4336
|
-
|
|
4997
|
+
id: string;
|
|
4337
4998
|
selection_token: string;
|
|
4338
4999
|
ai_selected_stable_ids: string[];
|
|
4339
5000
|
ts: number;
|
|
4340
|
-
|
|
5001
|
+
schema_version: 1;
|
|
4341
5002
|
kind: "fabric-event";
|
|
4342
|
-
event_type: "
|
|
5003
|
+
event_type: "knowledge_sections_fetched";
|
|
4343
5004
|
final_stable_ids: string[];
|
|
4344
5005
|
requested_sections: string[];
|
|
4345
5006
|
correlation_id?: string | undefined;
|
|
@@ -4347,13 +5008,13 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4347
5008
|
diagnostics?: unknown[] | undefined;
|
|
4348
5009
|
target_paths?: string[] | undefined;
|
|
4349
5010
|
}, {
|
|
4350
|
-
|
|
5011
|
+
id: string;
|
|
4351
5012
|
selection_token: string;
|
|
4352
5013
|
ai_selected_stable_ids: string[];
|
|
4353
5014
|
ts: number;
|
|
4354
|
-
|
|
5015
|
+
schema_version: 1;
|
|
4355
5016
|
kind: "fabric-event";
|
|
4356
|
-
event_type: "
|
|
5017
|
+
event_type: "knowledge_sections_fetched";
|
|
4357
5018
|
final_stable_ids: string[];
|
|
4358
5019
|
requested_sections: string[];
|
|
4359
5020
|
correlation_id?: string | undefined;
|
|
@@ -4383,10 +5044,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4383
5044
|
}, "strip", z.ZodTypeAny, {
|
|
4384
5045
|
path: string;
|
|
4385
5046
|
ledger_entry_id: string;
|
|
4386
|
-
|
|
5047
|
+
id: string;
|
|
4387
5048
|
intent: string;
|
|
4388
5049
|
ts: number;
|
|
4389
|
-
|
|
5050
|
+
schema_version: 1;
|
|
4390
5051
|
kind: "fabric-event";
|
|
4391
5052
|
event_type: "edit_intent_checked";
|
|
4392
5053
|
compliant: boolean;
|
|
@@ -4403,10 +5064,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4403
5064
|
}, {
|
|
4404
5065
|
path: string;
|
|
4405
5066
|
ledger_entry_id: string;
|
|
4406
|
-
|
|
5067
|
+
id: string;
|
|
4407
5068
|
intent: string;
|
|
4408
5069
|
ts: number;
|
|
4409
|
-
|
|
5070
|
+
schema_version: 1;
|
|
4410
5071
|
kind: "fabric-event";
|
|
4411
5072
|
event_type: "edit_intent_checked";
|
|
4412
5073
|
compliant: boolean;
|
|
@@ -4421,7 +5082,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4421
5082
|
diff_stat?: string | undefined;
|
|
4422
5083
|
ledger_source?: "ai" | "human" | undefined;
|
|
4423
5084
|
}>, z.ZodObject<{
|
|
4424
|
-
event_type: z.ZodLiteral<"
|
|
5085
|
+
event_type: z.ZodLiteral<"knowledge_drift_detected">;
|
|
4425
5086
|
revision: z.ZodOptional<z.ZodString>;
|
|
4426
5087
|
drifted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4427
5088
|
missing_files: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4449,17 +5110,17 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4449
5110
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4450
5111
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4451
5112
|
}, "strip", z.ZodTypeAny, {
|
|
4452
|
-
schema_version: 1;
|
|
4453
|
-
ts: number;
|
|
4454
5113
|
id: string;
|
|
5114
|
+
ts: number;
|
|
5115
|
+
schema_version: 1;
|
|
4455
5116
|
kind: "fabric-event";
|
|
4456
|
-
event_type: "
|
|
5117
|
+
event_type: "knowledge_drift_detected";
|
|
4457
5118
|
drifted_stable_ids: string[];
|
|
4458
5119
|
missing_files: string[];
|
|
4459
5120
|
stale_files: string[];
|
|
4460
|
-
revision?: string | undefined;
|
|
4461
5121
|
correlation_id?: string | undefined;
|
|
4462
5122
|
session_id?: string | undefined;
|
|
5123
|
+
revision?: string | undefined;
|
|
4463
5124
|
details?: {
|
|
4464
5125
|
file: string;
|
|
4465
5126
|
stable_id: string;
|
|
@@ -4467,98 +5128,23 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4467
5128
|
actual_hash: string | null;
|
|
4468
5129
|
}[] | undefined;
|
|
4469
5130
|
}, {
|
|
4470
|
-
schema_version: 1;
|
|
4471
|
-
ts: number;
|
|
4472
5131
|
id: string;
|
|
5132
|
+
ts: number;
|
|
5133
|
+
schema_version: 1;
|
|
4473
5134
|
kind: "fabric-event";
|
|
4474
|
-
event_type: "
|
|
5135
|
+
event_type: "knowledge_drift_detected";
|
|
4475
5136
|
drifted_stable_ids: string[];
|
|
4476
5137
|
missing_files: string[];
|
|
4477
5138
|
stale_files: string[];
|
|
4478
|
-
revision?: string | undefined;
|
|
4479
5139
|
correlation_id?: string | undefined;
|
|
4480
5140
|
session_id?: string | undefined;
|
|
5141
|
+
revision?: string | undefined;
|
|
4481
5142
|
details?: {
|
|
4482
5143
|
file: string;
|
|
4483
5144
|
stable_id: string;
|
|
4484
5145
|
expected_hash: string;
|
|
4485
5146
|
actual_hash: string | null;
|
|
4486
5147
|
}[] | undefined;
|
|
4487
|
-
}>, z.ZodObject<{
|
|
4488
|
-
event_type: z.ZodLiteral<"rule_baseline_accepted">;
|
|
4489
|
-
revision: z.ZodString;
|
|
4490
|
-
previous_revision: z.ZodOptional<z.ZodString>;
|
|
4491
|
-
accepted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4492
|
-
source: z.ZodOptional<z.ZodEnum<["doctor_fix", "sync_meta"]>>;
|
|
4493
|
-
kind: z.ZodLiteral<"fabric-event">;
|
|
4494
|
-
id: z.ZodString;
|
|
4495
|
-
ts: z.ZodNumber;
|
|
4496
|
-
schema_version: z.ZodLiteral<1>;
|
|
4497
|
-
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4498
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
4499
|
-
}, "strip", z.ZodTypeAny, {
|
|
4500
|
-
revision: string;
|
|
4501
|
-
schema_version: 1;
|
|
4502
|
-
ts: number;
|
|
4503
|
-
id: string;
|
|
4504
|
-
kind: "fabric-event";
|
|
4505
|
-
event_type: "rule_baseline_accepted";
|
|
4506
|
-
accepted_stable_ids: string[];
|
|
4507
|
-
previous_revision?: string | undefined;
|
|
4508
|
-
correlation_id?: string | undefined;
|
|
4509
|
-
session_id?: string | undefined;
|
|
4510
|
-
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
4511
|
-
}, {
|
|
4512
|
-
revision: string;
|
|
4513
|
-
schema_version: 1;
|
|
4514
|
-
ts: number;
|
|
4515
|
-
id: string;
|
|
4516
|
-
kind: "fabric-event";
|
|
4517
|
-
event_type: "rule_baseline_accepted";
|
|
4518
|
-
accepted_stable_ids: string[];
|
|
4519
|
-
previous_revision?: string | undefined;
|
|
4520
|
-
correlation_id?: string | undefined;
|
|
4521
|
-
session_id?: string | undefined;
|
|
4522
|
-
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
4523
|
-
}>, z.ZodObject<{
|
|
4524
|
-
event_type: z.ZodLiteral<"baseline_synced">;
|
|
4525
|
-
revision: z.ZodString;
|
|
4526
|
-
previous_revision: z.ZodOptional<z.ZodString>;
|
|
4527
|
-
synced_files: z.ZodArray<z.ZodString, "many">;
|
|
4528
|
-
accepted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4529
|
-
source: z.ZodEnum<["doctor_fix", "sync_meta"]>;
|
|
4530
|
-
kind: z.ZodLiteral<"fabric-event">;
|
|
4531
|
-
id: z.ZodString;
|
|
4532
|
-
ts: z.ZodNumber;
|
|
4533
|
-
schema_version: z.ZodLiteral<1>;
|
|
4534
|
-
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4535
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
4536
|
-
}, "strip", z.ZodTypeAny, {
|
|
4537
|
-
revision: string;
|
|
4538
|
-
schema_version: 1;
|
|
4539
|
-
source: "doctor_fix" | "sync_meta";
|
|
4540
|
-
ts: number;
|
|
4541
|
-
id: string;
|
|
4542
|
-
kind: "fabric-event";
|
|
4543
|
-
event_type: "baseline_synced";
|
|
4544
|
-
accepted_stable_ids: string[];
|
|
4545
|
-
synced_files: string[];
|
|
4546
|
-
previous_revision?: string | undefined;
|
|
4547
|
-
correlation_id?: string | undefined;
|
|
4548
|
-
session_id?: string | undefined;
|
|
4549
|
-
}, {
|
|
4550
|
-
revision: string;
|
|
4551
|
-
schema_version: 1;
|
|
4552
|
-
source: "doctor_fix" | "sync_meta";
|
|
4553
|
-
ts: number;
|
|
4554
|
-
id: string;
|
|
4555
|
-
kind: "fabric-event";
|
|
4556
|
-
event_type: "baseline_synced";
|
|
4557
|
-
accepted_stable_ids: string[];
|
|
4558
|
-
synced_files: string[];
|
|
4559
|
-
previous_revision?: string | undefined;
|
|
4560
|
-
correlation_id?: string | undefined;
|
|
4561
|
-
session_id?: string | undefined;
|
|
4562
5148
|
}>, z.ZodObject<{
|
|
4563
5149
|
event_type: z.ZodLiteral<"mcp_event">;
|
|
4564
5150
|
mcp_event_id: z.ZodString;
|
|
@@ -4571,9 +5157,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4571
5157
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4572
5158
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4573
5159
|
}, "strip", z.ZodTypeAny, {
|
|
4574
|
-
schema_version: 1;
|
|
4575
|
-
ts: number;
|
|
4576
5160
|
id: string;
|
|
5161
|
+
ts: number;
|
|
5162
|
+
schema_version: 1;
|
|
4577
5163
|
kind: "fabric-event";
|
|
4578
5164
|
event_type: "mcp_event";
|
|
4579
5165
|
mcp_event_id: string;
|
|
@@ -4582,9 +5168,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4582
5168
|
correlation_id?: string | undefined;
|
|
4583
5169
|
session_id?: string | undefined;
|
|
4584
5170
|
}, {
|
|
4585
|
-
schema_version: 1;
|
|
4586
|
-
ts: number;
|
|
4587
5171
|
id: string;
|
|
5172
|
+
ts: number;
|
|
5173
|
+
schema_version: 1;
|
|
4588
5174
|
kind: "fabric-event";
|
|
4589
5175
|
event_type: "mcp_event";
|
|
4590
5176
|
mcp_event_id: string;
|
|
@@ -4604,9 +5190,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4604
5190
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4605
5191
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4606
5192
|
}, "strip", z.ZodTypeAny, {
|
|
4607
|
-
schema_version: 1;
|
|
4608
|
-
ts: number;
|
|
4609
5193
|
id: string;
|
|
5194
|
+
ts: number;
|
|
5195
|
+
schema_version: 1;
|
|
4610
5196
|
kind: "fabric-event";
|
|
4611
5197
|
event_type: "reapply_completed";
|
|
4612
5198
|
preserved_ledger: boolean;
|
|
@@ -4615,9 +5201,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4615
5201
|
correlation_id?: string | undefined;
|
|
4616
5202
|
session_id?: string | undefined;
|
|
4617
5203
|
}, {
|
|
4618
|
-
schema_version: 1;
|
|
4619
|
-
ts: number;
|
|
4620
5204
|
id: string;
|
|
5205
|
+
ts: number;
|
|
5206
|
+
schema_version: 1;
|
|
4621
5207
|
kind: "fabric-event";
|
|
4622
5208
|
event_type: "reapply_completed";
|
|
4623
5209
|
preserved_ledger: boolean;
|
|
@@ -4637,9 +5223,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4637
5223
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4638
5224
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4639
5225
|
}, "strip", z.ZodTypeAny, {
|
|
4640
|
-
schema_version: 1;
|
|
4641
|
-
ts: number;
|
|
4642
5226
|
id: string;
|
|
5227
|
+
ts: number;
|
|
5228
|
+
schema_version: 1;
|
|
4643
5229
|
kind: "fabric-event";
|
|
4644
5230
|
event_type: "event_ledger_truncated";
|
|
4645
5231
|
byte_offset: number;
|
|
@@ -4648,9 +5234,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4648
5234
|
correlation_id?: string | undefined;
|
|
4649
5235
|
session_id?: string | undefined;
|
|
4650
5236
|
}, {
|
|
4651
|
-
schema_version: 1;
|
|
4652
|
-
ts: number;
|
|
4653
5237
|
id: string;
|
|
5238
|
+
ts: number;
|
|
5239
|
+
schema_version: 1;
|
|
4654
5240
|
kind: "fabric-event";
|
|
4655
5241
|
event_type: "event_ledger_truncated";
|
|
4656
5242
|
byte_offset: number;
|
|
@@ -4669,20 +5255,20 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4669
5255
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4670
5256
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4671
5257
|
}, "strip", z.ZodTypeAny, {
|
|
4672
|
-
|
|
5258
|
+
id: string;
|
|
4673
5259
|
source: "doctor_fix";
|
|
4674
5260
|
ts: number;
|
|
4675
|
-
|
|
5261
|
+
schema_version: 1;
|
|
4676
5262
|
kind: "fabric-event";
|
|
4677
5263
|
event_type: "mcp_config_migrated";
|
|
4678
5264
|
removed_from: string;
|
|
4679
5265
|
correlation_id?: string | undefined;
|
|
4680
5266
|
session_id?: string | undefined;
|
|
4681
5267
|
}, {
|
|
4682
|
-
|
|
5268
|
+
id: string;
|
|
4683
5269
|
source: "doctor_fix";
|
|
4684
5270
|
ts: number;
|
|
4685
|
-
|
|
5271
|
+
schema_version: 1;
|
|
4686
5272
|
kind: "fabric-event";
|
|
4687
5273
|
event_type: "mcp_config_migrated";
|
|
4688
5274
|
removed_from: string;
|
|
@@ -4700,10 +5286,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4700
5286
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4701
5287
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4702
5288
|
}, "strip", z.ZodTypeAny, {
|
|
4703
|
-
|
|
5289
|
+
id: string;
|
|
4704
5290
|
source: "reconcileRules";
|
|
4705
5291
|
ts: number;
|
|
4706
|
-
|
|
5292
|
+
schema_version: 1;
|
|
4707
5293
|
kind: "fabric-event";
|
|
4708
5294
|
event_type: "meta_reconciled_on_startup";
|
|
4709
5295
|
reconciled_files: string[];
|
|
@@ -4711,10 +5297,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4711
5297
|
correlation_id?: string | undefined;
|
|
4712
5298
|
session_id?: string | undefined;
|
|
4713
5299
|
}, {
|
|
4714
|
-
|
|
5300
|
+
id: string;
|
|
4715
5301
|
source: "reconcileRules";
|
|
4716
5302
|
ts: number;
|
|
4717
|
-
|
|
5303
|
+
schema_version: 1;
|
|
4718
5304
|
kind: "fabric-event";
|
|
4719
5305
|
event_type: "meta_reconciled_on_startup";
|
|
4720
5306
|
reconciled_files: string[];
|
|
@@ -4734,10 +5320,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4734
5320
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4735
5321
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4736
5322
|
}, "strip", z.ZodTypeAny, {
|
|
4737
|
-
|
|
5323
|
+
id: string;
|
|
4738
5324
|
source: "reconcileRules";
|
|
4739
5325
|
ts: number;
|
|
4740
|
-
|
|
5326
|
+
schema_version: 1;
|
|
4741
5327
|
kind: "fabric-event";
|
|
4742
5328
|
event_type: "meta_reconciled";
|
|
4743
5329
|
reconciled_files: string[];
|
|
@@ -4746,10 +5332,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4746
5332
|
correlation_id?: string | undefined;
|
|
4747
5333
|
session_id?: string | undefined;
|
|
4748
5334
|
}, {
|
|
4749
|
-
|
|
5335
|
+
id: string;
|
|
4750
5336
|
source: "reconcileRules";
|
|
4751
5337
|
ts: number;
|
|
4752
|
-
|
|
5338
|
+
schema_version: 1;
|
|
4753
5339
|
kind: "fabric-event";
|
|
4754
5340
|
event_type: "meta_reconciled";
|
|
4755
5341
|
reconciled_files: string[];
|
|
@@ -4768,9 +5354,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4768
5354
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4769
5355
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4770
5356
|
}, "strip", z.ZodTypeAny, {
|
|
4771
|
-
schema_version: 1;
|
|
4772
|
-
ts: number;
|
|
4773
5357
|
id: string;
|
|
5358
|
+
ts: number;
|
|
5359
|
+
schema_version: 1;
|
|
4774
5360
|
kind: "fabric-event";
|
|
4775
5361
|
event_type: "claude_skill_path_migrated";
|
|
4776
5362
|
from: string;
|
|
@@ -4778,9 +5364,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4778
5364
|
correlation_id?: string | undefined;
|
|
4779
5365
|
session_id?: string | undefined;
|
|
4780
5366
|
}, {
|
|
4781
|
-
schema_version: 1;
|
|
4782
|
-
ts: number;
|
|
4783
5367
|
id: string;
|
|
5368
|
+
ts: number;
|
|
5369
|
+
schema_version: 1;
|
|
4784
5370
|
kind: "fabric-event";
|
|
4785
5371
|
event_type: "claude_skill_path_migrated";
|
|
4786
5372
|
from: string;
|
|
@@ -4798,9 +5384,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4798
5384
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4799
5385
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4800
5386
|
}, "strip", z.ZodTypeAny, {
|
|
4801
|
-
schema_version: 1;
|
|
4802
|
-
ts: number;
|
|
4803
5387
|
id: string;
|
|
5388
|
+
ts: number;
|
|
5389
|
+
schema_version: 1;
|
|
4804
5390
|
kind: "fabric-event";
|
|
4805
5391
|
event_type: "claude_hook_path_migrated";
|
|
4806
5392
|
from: string;
|
|
@@ -4808,9 +5394,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4808
5394
|
correlation_id?: string | undefined;
|
|
4809
5395
|
session_id?: string | undefined;
|
|
4810
5396
|
}, {
|
|
4811
|
-
schema_version: 1;
|
|
4812
|
-
ts: number;
|
|
4813
5397
|
id: string;
|
|
5398
|
+
ts: number;
|
|
5399
|
+
schema_version: 1;
|
|
4814
5400
|
kind: "fabric-event";
|
|
4815
5401
|
event_type: "claude_hook_path_migrated";
|
|
4816
5402
|
from: string;
|
|
@@ -4828,9 +5414,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4828
5414
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4829
5415
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4830
5416
|
}, "strip", z.ZodTypeAny, {
|
|
4831
|
-
schema_version: 1;
|
|
4832
|
-
ts: number;
|
|
4833
5417
|
id: string;
|
|
5418
|
+
ts: number;
|
|
5419
|
+
schema_version: 1;
|
|
4834
5420
|
kind: "fabric-event";
|
|
4835
5421
|
event_type: "codex_skill_path_migrated";
|
|
4836
5422
|
from: string;
|
|
@@ -4838,9 +5424,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4838
5424
|
correlation_id?: string | undefined;
|
|
4839
5425
|
session_id?: string | undefined;
|
|
4840
5426
|
}, {
|
|
4841
|
-
schema_version: 1;
|
|
4842
|
-
ts: number;
|
|
4843
5427
|
id: string;
|
|
5428
|
+
ts: number;
|
|
5429
|
+
schema_version: 1;
|
|
4844
5430
|
kind: "fabric-event";
|
|
4845
5431
|
event_type: "codex_skill_path_migrated";
|
|
4846
5432
|
from: string;
|
|
@@ -4848,8 +5434,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4848
5434
|
correlation_id?: string | undefined;
|
|
4849
5435
|
session_id?: string | undefined;
|
|
4850
5436
|
}>, z.ZodObject<{
|
|
4851
|
-
event_type: z.ZodLiteral<"
|
|
4852
|
-
|
|
5437
|
+
event_type: z.ZodLiteral<"init_scan_completed">;
|
|
5438
|
+
written_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5439
|
+
duration_ms: z.ZodNumber;
|
|
5440
|
+
source: z.ZodOptional<z.ZodEnum<["init", "scan", "doctor_fix"]>>;
|
|
4853
5441
|
kind: z.ZodLiteral<"fabric-event">;
|
|
4854
5442
|
id: z.ZodString;
|
|
4855
5443
|
ts: z.ZodNumber;
|
|
@@ -4857,31 +5445,33 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4857
5445
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4858
5446
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4859
5447
|
}, "strip", z.ZodTypeAny, {
|
|
4860
|
-
schema_version: 1;
|
|
4861
|
-
ts: number;
|
|
4862
5448
|
id: string;
|
|
5449
|
+
ts: number;
|
|
5450
|
+
schema_version: 1;
|
|
4863
5451
|
kind: "fabric-event";
|
|
4864
|
-
event_type: "
|
|
4865
|
-
|
|
5452
|
+
event_type: "init_scan_completed";
|
|
5453
|
+
duration_ms: number;
|
|
5454
|
+
written_stable_ids: string[];
|
|
4866
5455
|
correlation_id?: string | undefined;
|
|
4867
5456
|
session_id?: string | undefined;
|
|
5457
|
+
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
4868
5458
|
}, {
|
|
4869
|
-
schema_version: 1;
|
|
4870
|
-
ts: number;
|
|
4871
5459
|
id: string;
|
|
5460
|
+
ts: number;
|
|
5461
|
+
schema_version: 1;
|
|
4872
5462
|
kind: "fabric-event";
|
|
4873
|
-
event_type: "
|
|
4874
|
-
|
|
5463
|
+
event_type: "init_scan_completed";
|
|
5464
|
+
duration_ms: number;
|
|
5465
|
+
written_stable_ids: string[];
|
|
4875
5466
|
correlation_id?: string | undefined;
|
|
4876
5467
|
session_id?: string | undefined;
|
|
5468
|
+
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
4877
5469
|
}>]>;
|
|
4878
|
-
type
|
|
4879
|
-
type
|
|
4880
|
-
type
|
|
5470
|
+
type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
|
|
5471
|
+
type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
|
|
5472
|
+
type KnowledgeSectionsFetchedEvent = z.infer<typeof knowledgeSectionsFetchedEventSchema>;
|
|
4881
5473
|
type EditIntentCheckedEvent = z.infer<typeof editIntentCheckedEventSchema>;
|
|
4882
|
-
type
|
|
4883
|
-
type RuleBaselineAcceptedEvent = z.infer<typeof ruleBaselineAcceptedEventSchema>;
|
|
4884
|
-
type BaselineSyncedEvent = z.infer<typeof baselineSyncedEventSchema>;
|
|
5474
|
+
type KnowledgeDriftDetectedEvent = z.infer<typeof knowledgeDriftDetectedEventSchema>;
|
|
4885
5475
|
type McpEventLedgerEvent = z.infer<typeof mcpEventLedgerEventSchema>;
|
|
4886
5476
|
type ReapplyCompletedEvent = z.infer<typeof reapplyCompletedEventSchema>;
|
|
4887
5477
|
type EventLedgerTruncatedEvent = z.infer<typeof eventLedgerTruncatedEventSchema>;
|
|
@@ -4891,10 +5481,10 @@ type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
|
|
|
4891
5481
|
type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
|
|
4892
5482
|
type ClaudeHookPathMigratedEvent = z.infer<typeof claudeHookPathMigratedEventSchema>;
|
|
4893
5483
|
type CodexSkillPathMigratedEvent = z.infer<typeof codexSkillPathMigratedEventSchema>;
|
|
4894
|
-
type
|
|
4895
|
-
type EventLedgerEvent =
|
|
5484
|
+
type InitScanCompletedEvent = z.infer<typeof initScanCompletedEventSchema>;
|
|
5485
|
+
type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent;
|
|
4896
5486
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
4897
5487
|
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;
|
|
4898
5488
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
4899
5489
|
|
|
4900
|
-
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta,
|
|
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, RULE_TEST_INDEX_SCHEMA_VERSION, type ReapplyCompletedEvent, type RuleTestIndex, type RuleTestLink, type RuleTestOrphanAnnotation, StableId, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, auditModeSchema, candidateFileEntrySchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, 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, knowledgeContextPlannedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, reapplyCompletedEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, ruleTestIndexSchema, ruleTestLinkSchema, ruleTestOrphanAnnotationSchema, withDerivedAgentsMetaNodeDefaults };
|