@fenglimg/fabric-shared 2.0.0-rc.8 → 2.0.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/LICENSE +21 -0
- package/README.md +13 -0
- package/dist/chunk-7CX32MYL.js +2043 -0
- package/dist/chunk-LTDB2UDN.js +100 -0
- package/dist/chunk-WVPDH4BF.js +952 -0
- package/dist/i18n/index.d.ts +22 -2
- package/dist/i18n/index.js +3 -1
- package/dist/index-UBqD9F0b.d.ts +304 -0
- package/dist/index.d.ts +1440 -458
- package/dist/index.js +1058 -350
- package/dist/node/atomic-write.d.ts +16 -0
- package/dist/node/atomic-write.js +19 -10
- package/dist/node/mcp-payload-guard.d.ts +3 -1
- package/dist/node/mcp-payload-guard.js +6 -2
- package/dist/schemas/api-contracts.d.ts +1561 -814
- package/dist/schemas/api-contracts.js +23 -7
- package/dist/templates/bootstrap-canonical.d.ts +56 -0
- package/dist/templates/bootstrap-canonical.js +18 -0
- package/dist/types/index.d.ts +2 -123
- package/package.json +32 -4
- package/dist/chunk-U2SR2M4L.js +0 -958
- package/dist/chunk-VQDCDCJA.js +0 -555
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { AgentsMetaNode, AgentsIdentitySource, AgentsLayer, AgentsTopologyType, HumanLockEntry, AgentsMeta, LedgerEntry } from './
|
|
2
|
-
export { AgentsActivationTier, AgentsMetaCountersEnvelope, AgentsMetaKnowledgeTypeCounters, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, DefaultLayerFilter, FabricConfig,
|
|
3
|
-
export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, zhCNMessages } from './i18n/index.js';
|
|
1
|
+
import { A as AgentsMetaNode, a as AgentsIdentitySource, b as AgentsLayer, c as AgentsTopologyType, H as HumanLockEntry, f as fabricConfigSchema, d as AgentsMeta, L as LedgerEntry } from './index-UBqD9F0b.js';
|
|
2
|
+
export { e as AgentsActivationTier, g as AgentsMetaCountersEnvelope, h as AgentsMetaKnowledgeTypeCounters, i as AgentsMetaNodeActivation, j as AiLedgerEntry, k as AuditMode, C as ClientPaths, D as DefaultLayerFilter, F as FabricConfig, l as FabricLanguage, m as HumanLedgerEntry, M as McpPayloadLimits, R as RuleDescription, n as RuleDescriptionIndexItem, o as auditModeSchema, p as clientPathsSchema, q as defaultLayerFilterSchema, r as fabricLanguageSchema, s as mcpPayloadLimitsSchema, t as selectionTokenTtlMsSchema } from './index-UBqD9F0b.js';
|
|
3
|
+
export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, resolveFabricLocale, zhCNMessages } from './i18n/index.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Layer, KnowledgeType, StableId } from './schemas/api-contracts.js';
|
|
6
|
-
export { FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, FabReviewInput, FabReviewInputSchema, FabReviewOutput, FabReviewOutputSchema, KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, ProposedReason, ProposedReasonSchema, StableIdSchema, annotateIntentRequestSchema,
|
|
6
|
+
export { ArchiveScanInput, ArchiveScanOutput, CiteContractMetrics, CiteCoverageReport, CiteLayerTypeBreakdown, FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, FabReviewInput, FabReviewInputSchema, FabReviewInputShape, FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, ProposedReason, ProposedReasonSchema, StableIdSchema, annotateIntentRequestSchema, archiveScanAnnotations, archiveScanInputSchema, archiveScanOutputSchema, citeContractMetricsSchema, citeCoverageReportSchema, citeLayerTypeBreakdownSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, recallAnnotations, recallInputSchema, recallOutputSchema, structuredWarningSchema } from './schemas/api-contracts.js';
|
|
7
|
+
export { BOOTSTRAP_CANONICAL, BOOTSTRAP_MARKER_BEGIN, BOOTSTRAP_MARKER_END, BOOTSTRAP_REGEX, LEGACY_KB_MARKER_BEGIN, LEGACY_KB_MARKER_END, LEGACY_KB_REGEX } from './templates/bootstrap-canonical.js';
|
|
8
|
+
|
|
9
|
+
declare const ONBOARD_SLOT_NAMES: readonly ["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"];
|
|
10
|
+
type OnboardSlot = (typeof ONBOARD_SLOT_NAMES)[number];
|
|
11
|
+
declare const onboardSlotSchema: z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>;
|
|
12
|
+
declare const ONBOARD_SLOT_TOTAL: 5;
|
|
7
13
|
|
|
8
14
|
declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
|
|
9
15
|
declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
|
|
@@ -20,7 +26,7 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
20
26
|
must_read_if: z.ZodString;
|
|
21
27
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22
28
|
id: z.ZodOptional<z.ZodString>;
|
|
23
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
29
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
24
30
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
25
31
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
26
32
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -29,16 +35,16 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
29
35
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
30
36
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
31
37
|
}, "strict", z.ZodTypeAny, {
|
|
38
|
+
relevance_scope: "narrow" | "broad";
|
|
39
|
+
relevance_paths: string[];
|
|
32
40
|
summary: string;
|
|
33
41
|
intent_clues: string[];
|
|
34
42
|
tech_stack: string[];
|
|
35
43
|
impact: string[];
|
|
36
44
|
must_read_if: string;
|
|
37
|
-
relevance_scope: "narrow" | "broad";
|
|
38
|
-
relevance_paths: string[];
|
|
39
45
|
entities?: string[] | undefined;
|
|
40
46
|
id?: string | undefined;
|
|
41
|
-
knowledge_type?: "
|
|
47
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
42
48
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
43
49
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
44
50
|
layer_reason?: string | undefined;
|
|
@@ -50,16 +56,16 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
50
56
|
tech_stack: string[];
|
|
51
57
|
impact: string[];
|
|
52
58
|
must_read_if: string;
|
|
59
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
60
|
+
relevance_paths?: string[] | undefined;
|
|
53
61
|
entities?: string[] | undefined;
|
|
54
62
|
id?: string | undefined;
|
|
55
|
-
knowledge_type?:
|
|
63
|
+
knowledge_type?: unknown;
|
|
56
64
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
57
65
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
58
66
|
layer_reason?: string | undefined;
|
|
59
67
|
created_at?: string | undefined;
|
|
60
68
|
tags?: string[] | undefined;
|
|
61
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
62
|
-
relevance_paths?: string[] | undefined;
|
|
63
69
|
}>;
|
|
64
70
|
declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
65
71
|
stable_id: z.ZodString;
|
|
@@ -74,7 +80,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
74
80
|
must_read_if: z.ZodString;
|
|
75
81
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
76
82
|
id: z.ZodOptional<z.ZodString>;
|
|
77
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
83
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
78
84
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
79
85
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
80
86
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -83,16 +89,16 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
83
89
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
84
90
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
85
91
|
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
relevance_scope: "narrow" | "broad";
|
|
93
|
+
relevance_paths: string[];
|
|
86
94
|
summary: string;
|
|
87
95
|
intent_clues: string[];
|
|
88
96
|
tech_stack: string[];
|
|
89
97
|
impact: string[];
|
|
90
98
|
must_read_if: string;
|
|
91
|
-
relevance_scope: "narrow" | "broad";
|
|
92
|
-
relevance_paths: string[];
|
|
93
99
|
entities?: string[] | undefined;
|
|
94
100
|
id?: string | undefined;
|
|
95
|
-
knowledge_type?: "
|
|
101
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
96
102
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
97
103
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
98
104
|
layer_reason?: string | undefined;
|
|
@@ -104,29 +110,29 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
104
110
|
tech_stack: string[];
|
|
105
111
|
impact: string[];
|
|
106
112
|
must_read_if: string;
|
|
113
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
114
|
+
relevance_paths?: string[] | undefined;
|
|
107
115
|
entities?: string[] | undefined;
|
|
108
116
|
id?: string | undefined;
|
|
109
|
-
knowledge_type?:
|
|
117
|
+
knowledge_type?: unknown;
|
|
110
118
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
111
119
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
112
120
|
layer_reason?: string | undefined;
|
|
113
121
|
created_at?: string | undefined;
|
|
114
122
|
tags?: string[] | undefined;
|
|
115
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
116
|
-
relevance_paths?: string[] | undefined;
|
|
117
123
|
}>;
|
|
118
124
|
}, "strict", z.ZodTypeAny, {
|
|
119
125
|
description: {
|
|
126
|
+
relevance_scope: "narrow" | "broad";
|
|
127
|
+
relevance_paths: string[];
|
|
120
128
|
summary: string;
|
|
121
129
|
intent_clues: string[];
|
|
122
130
|
tech_stack: string[];
|
|
123
131
|
impact: string[];
|
|
124
132
|
must_read_if: string;
|
|
125
|
-
relevance_scope: "narrow" | "broad";
|
|
126
|
-
relevance_paths: string[];
|
|
127
133
|
entities?: string[] | undefined;
|
|
128
134
|
id?: string | undefined;
|
|
129
|
-
knowledge_type?: "
|
|
135
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
130
136
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
131
137
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
132
138
|
layer_reason?: string | undefined;
|
|
@@ -144,16 +150,16 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
144
150
|
tech_stack: string[];
|
|
145
151
|
impact: string[];
|
|
146
152
|
must_read_if: string;
|
|
153
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
154
|
+
relevance_paths?: string[] | undefined;
|
|
147
155
|
entities?: string[] | undefined;
|
|
148
156
|
id?: string | undefined;
|
|
149
|
-
knowledge_type?:
|
|
157
|
+
knowledge_type?: unknown;
|
|
150
158
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
151
159
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
152
160
|
layer_reason?: string | undefined;
|
|
153
161
|
created_at?: string | undefined;
|
|
154
162
|
tags?: string[] | undefined;
|
|
155
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
156
|
-
relevance_paths?: string[] | undefined;
|
|
157
163
|
};
|
|
158
164
|
stable_id: string;
|
|
159
165
|
level: "L0" | "L1" | "L2";
|
|
@@ -185,7 +191,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
185
191
|
must_read_if: z.ZodString;
|
|
186
192
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
187
193
|
id: z.ZodOptional<z.ZodString>;
|
|
188
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
194
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
189
195
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
190
196
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
191
197
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -194,16 +200,16 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
194
200
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
195
201
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
196
202
|
}, "strict", z.ZodTypeAny, {
|
|
203
|
+
relevance_scope: "narrow" | "broad";
|
|
204
|
+
relevance_paths: string[];
|
|
197
205
|
summary: string;
|
|
198
206
|
intent_clues: string[];
|
|
199
207
|
tech_stack: string[];
|
|
200
208
|
impact: string[];
|
|
201
209
|
must_read_if: string;
|
|
202
|
-
relevance_scope: "narrow" | "broad";
|
|
203
|
-
relevance_paths: string[];
|
|
204
210
|
entities?: string[] | undefined;
|
|
205
211
|
id?: string | undefined;
|
|
206
|
-
knowledge_type?: "
|
|
212
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
207
213
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
208
214
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
209
215
|
layer_reason?: string | undefined;
|
|
@@ -215,16 +221,16 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
215
221
|
tech_stack: string[];
|
|
216
222
|
impact: string[];
|
|
217
223
|
must_read_if: string;
|
|
224
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
225
|
+
relevance_paths?: string[] | undefined;
|
|
218
226
|
entities?: string[] | undefined;
|
|
219
227
|
id?: string | undefined;
|
|
220
|
-
knowledge_type?:
|
|
228
|
+
knowledge_type?: unknown;
|
|
221
229
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
222
230
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
223
231
|
layer_reason?: string | undefined;
|
|
224
232
|
created_at?: string | undefined;
|
|
225
233
|
tags?: string[] | undefined;
|
|
226
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
227
|
-
relevance_paths?: string[] | undefined;
|
|
228
234
|
}>>;
|
|
229
235
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
230
236
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -252,7 +258,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
252
258
|
must_read_if: z.ZodString;
|
|
253
259
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
254
260
|
id: z.ZodOptional<z.ZodString>;
|
|
255
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
261
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
256
262
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
257
263
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
258
264
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -261,16 +267,16 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
261
267
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
262
268
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
263
269
|
}, "strict", z.ZodTypeAny, {
|
|
270
|
+
relevance_scope: "narrow" | "broad";
|
|
271
|
+
relevance_paths: string[];
|
|
264
272
|
summary: string;
|
|
265
273
|
intent_clues: string[];
|
|
266
274
|
tech_stack: string[];
|
|
267
275
|
impact: string[];
|
|
268
276
|
must_read_if: string;
|
|
269
|
-
relevance_scope: "narrow" | "broad";
|
|
270
|
-
relevance_paths: string[];
|
|
271
277
|
entities?: string[] | undefined;
|
|
272
278
|
id?: string | undefined;
|
|
273
|
-
knowledge_type?: "
|
|
279
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
274
280
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
275
281
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
276
282
|
layer_reason?: string | undefined;
|
|
@@ -282,16 +288,16 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
282
288
|
tech_stack: string[];
|
|
283
289
|
impact: string[];
|
|
284
290
|
must_read_if: string;
|
|
291
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
292
|
+
relevance_paths?: string[] | undefined;
|
|
285
293
|
entities?: string[] | undefined;
|
|
286
294
|
id?: string | undefined;
|
|
287
|
-
knowledge_type?:
|
|
295
|
+
knowledge_type?: unknown;
|
|
288
296
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
289
297
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
290
298
|
layer_reason?: string | undefined;
|
|
291
299
|
created_at?: string | undefined;
|
|
292
300
|
tags?: string[] | undefined;
|
|
293
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
294
|
-
relevance_paths?: string[] | undefined;
|
|
295
301
|
}>>;
|
|
296
302
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
297
303
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -319,7 +325,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
319
325
|
must_read_if: z.ZodString;
|
|
320
326
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
321
327
|
id: z.ZodOptional<z.ZodString>;
|
|
322
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
328
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
323
329
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
324
330
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
325
331
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -328,16 +334,16 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
328
334
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
329
335
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
330
336
|
}, "strict", z.ZodTypeAny, {
|
|
337
|
+
relevance_scope: "narrow" | "broad";
|
|
338
|
+
relevance_paths: string[];
|
|
331
339
|
summary: string;
|
|
332
340
|
intent_clues: string[];
|
|
333
341
|
tech_stack: string[];
|
|
334
342
|
impact: string[];
|
|
335
343
|
must_read_if: string;
|
|
336
|
-
relevance_scope: "narrow" | "broad";
|
|
337
|
-
relevance_paths: string[];
|
|
338
344
|
entities?: string[] | undefined;
|
|
339
345
|
id?: string | undefined;
|
|
340
|
-
knowledge_type?: "
|
|
346
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
341
347
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
342
348
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
343
349
|
layer_reason?: string | undefined;
|
|
@@ -349,16 +355,16 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
349
355
|
tech_stack: string[];
|
|
350
356
|
impact: string[];
|
|
351
357
|
must_read_if: string;
|
|
358
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
359
|
+
relevance_paths?: string[] | undefined;
|
|
352
360
|
entities?: string[] | undefined;
|
|
353
361
|
id?: string | undefined;
|
|
354
|
-
knowledge_type?:
|
|
362
|
+
knowledge_type?: unknown;
|
|
355
363
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
356
364
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
357
365
|
layer_reason?: string | undefined;
|
|
358
366
|
created_at?: string | undefined;
|
|
359
367
|
tags?: string[] | undefined;
|
|
360
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
361
|
-
relevance_paths?: string[] | undefined;
|
|
362
368
|
}>>;
|
|
363
369
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
364
370
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
@@ -386,7 +392,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
386
392
|
must_read_if: z.ZodString;
|
|
387
393
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
388
394
|
id: z.ZodOptional<z.ZodString>;
|
|
389
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
395
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
390
396
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
391
397
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
392
398
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -395,16 +401,16 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
395
401
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
396
402
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
397
403
|
}, "strict", z.ZodTypeAny, {
|
|
404
|
+
relevance_scope: "narrow" | "broad";
|
|
405
|
+
relevance_paths: string[];
|
|
398
406
|
summary: string;
|
|
399
407
|
intent_clues: string[];
|
|
400
408
|
tech_stack: string[];
|
|
401
409
|
impact: string[];
|
|
402
410
|
must_read_if: string;
|
|
403
|
-
relevance_scope: "narrow" | "broad";
|
|
404
|
-
relevance_paths: string[];
|
|
405
411
|
entities?: string[] | undefined;
|
|
406
412
|
id?: string | undefined;
|
|
407
|
-
knowledge_type?: "
|
|
413
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
408
414
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
409
415
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
410
416
|
layer_reason?: string | undefined;
|
|
@@ -416,16 +422,16 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
416
422
|
tech_stack: string[];
|
|
417
423
|
impact: string[];
|
|
418
424
|
must_read_if: string;
|
|
425
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
426
|
+
relevance_paths?: string[] | undefined;
|
|
419
427
|
entities?: string[] | undefined;
|
|
420
428
|
id?: string | undefined;
|
|
421
|
-
knowledge_type?:
|
|
429
|
+
knowledge_type?: unknown;
|
|
422
430
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
423
431
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
424
432
|
layer_reason?: string | undefined;
|
|
425
433
|
created_at?: string | undefined;
|
|
426
434
|
tags?: string[] | undefined;
|
|
427
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
428
|
-
relevance_paths?: string[] | undefined;
|
|
429
435
|
}>>;
|
|
430
436
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
431
437
|
}, z.ZodTypeAny, "passthrough">, unknown>;
|
|
@@ -527,7 +533,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
527
533
|
must_read_if: z.ZodString;
|
|
528
534
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
529
535
|
id: z.ZodOptional<z.ZodString>;
|
|
530
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
536
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
531
537
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
532
538
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
533
539
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -536,16 +542,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
536
542
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
537
543
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
538
544
|
}, "strict", z.ZodTypeAny, {
|
|
545
|
+
relevance_scope: "narrow" | "broad";
|
|
546
|
+
relevance_paths: string[];
|
|
539
547
|
summary: string;
|
|
540
548
|
intent_clues: string[];
|
|
541
549
|
tech_stack: string[];
|
|
542
550
|
impact: string[];
|
|
543
551
|
must_read_if: string;
|
|
544
|
-
relevance_scope: "narrow" | "broad";
|
|
545
|
-
relevance_paths: string[];
|
|
546
552
|
entities?: string[] | undefined;
|
|
547
553
|
id?: string | undefined;
|
|
548
|
-
knowledge_type?: "
|
|
554
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
549
555
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
550
556
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
551
557
|
layer_reason?: string | undefined;
|
|
@@ -557,16 +563,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
557
563
|
tech_stack: string[];
|
|
558
564
|
impact: string[];
|
|
559
565
|
must_read_if: string;
|
|
566
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
567
|
+
relevance_paths?: string[] | undefined;
|
|
560
568
|
entities?: string[] | undefined;
|
|
561
569
|
id?: string | undefined;
|
|
562
|
-
knowledge_type?:
|
|
570
|
+
knowledge_type?: unknown;
|
|
563
571
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
564
572
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
565
573
|
layer_reason?: string | undefined;
|
|
566
574
|
created_at?: string | undefined;
|
|
567
575
|
tags?: string[] | undefined;
|
|
568
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
569
|
-
relevance_paths?: string[] | undefined;
|
|
570
576
|
}>>;
|
|
571
577
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
572
578
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -594,7 +600,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
594
600
|
must_read_if: z.ZodString;
|
|
595
601
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
596
602
|
id: z.ZodOptional<z.ZodString>;
|
|
597
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
603
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
598
604
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
599
605
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
600
606
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -603,16 +609,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
603
609
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
604
610
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
605
611
|
}, "strict", z.ZodTypeAny, {
|
|
612
|
+
relevance_scope: "narrow" | "broad";
|
|
613
|
+
relevance_paths: string[];
|
|
606
614
|
summary: string;
|
|
607
615
|
intent_clues: string[];
|
|
608
616
|
tech_stack: string[];
|
|
609
617
|
impact: string[];
|
|
610
618
|
must_read_if: string;
|
|
611
|
-
relevance_scope: "narrow" | "broad";
|
|
612
|
-
relevance_paths: string[];
|
|
613
619
|
entities?: string[] | undefined;
|
|
614
620
|
id?: string | undefined;
|
|
615
|
-
knowledge_type?: "
|
|
621
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
616
622
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
617
623
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
618
624
|
layer_reason?: string | undefined;
|
|
@@ -624,16 +630,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
624
630
|
tech_stack: string[];
|
|
625
631
|
impact: string[];
|
|
626
632
|
must_read_if: string;
|
|
633
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
634
|
+
relevance_paths?: string[] | undefined;
|
|
627
635
|
entities?: string[] | undefined;
|
|
628
636
|
id?: string | undefined;
|
|
629
|
-
knowledge_type?:
|
|
637
|
+
knowledge_type?: unknown;
|
|
630
638
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
631
639
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
632
640
|
layer_reason?: string | undefined;
|
|
633
641
|
created_at?: string | undefined;
|
|
634
642
|
tags?: string[] | undefined;
|
|
635
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
636
|
-
relevance_paths?: string[] | undefined;
|
|
637
643
|
}>>;
|
|
638
644
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
639
645
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -661,7 +667,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
661
667
|
must_read_if: z.ZodString;
|
|
662
668
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
663
669
|
id: z.ZodOptional<z.ZodString>;
|
|
664
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
670
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
665
671
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
666
672
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
667
673
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -670,16 +676,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
670
676
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
671
677
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
672
678
|
}, "strict", z.ZodTypeAny, {
|
|
679
|
+
relevance_scope: "narrow" | "broad";
|
|
680
|
+
relevance_paths: string[];
|
|
673
681
|
summary: string;
|
|
674
682
|
intent_clues: string[];
|
|
675
683
|
tech_stack: string[];
|
|
676
684
|
impact: string[];
|
|
677
685
|
must_read_if: string;
|
|
678
|
-
relevance_scope: "narrow" | "broad";
|
|
679
|
-
relevance_paths: string[];
|
|
680
686
|
entities?: string[] | undefined;
|
|
681
687
|
id?: string | undefined;
|
|
682
|
-
knowledge_type?: "
|
|
688
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
683
689
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
684
690
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
685
691
|
layer_reason?: string | undefined;
|
|
@@ -691,16 +697,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
691
697
|
tech_stack: string[];
|
|
692
698
|
impact: string[];
|
|
693
699
|
must_read_if: string;
|
|
700
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
701
|
+
relevance_paths?: string[] | undefined;
|
|
694
702
|
entities?: string[] | undefined;
|
|
695
703
|
id?: string | undefined;
|
|
696
|
-
knowledge_type?:
|
|
704
|
+
knowledge_type?: unknown;
|
|
697
705
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
698
706
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
699
707
|
layer_reason?: string | undefined;
|
|
700
708
|
created_at?: string | undefined;
|
|
701
709
|
tags?: string[] | undefined;
|
|
702
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
703
|
-
relevance_paths?: string[] | undefined;
|
|
704
710
|
}>>;
|
|
705
711
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
706
712
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
@@ -728,7 +734,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
728
734
|
must_read_if: z.ZodString;
|
|
729
735
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
730
736
|
id: z.ZodOptional<z.ZodString>;
|
|
731
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
737
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
732
738
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
733
739
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
734
740
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -737,16 +743,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
737
743
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
738
744
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
739
745
|
}, "strict", z.ZodTypeAny, {
|
|
746
|
+
relevance_scope: "narrow" | "broad";
|
|
747
|
+
relevance_paths: string[];
|
|
740
748
|
summary: string;
|
|
741
749
|
intent_clues: string[];
|
|
742
750
|
tech_stack: string[];
|
|
743
751
|
impact: string[];
|
|
744
752
|
must_read_if: string;
|
|
745
|
-
relevance_scope: "narrow" | "broad";
|
|
746
|
-
relevance_paths: string[];
|
|
747
753
|
entities?: string[] | undefined;
|
|
748
754
|
id?: string | undefined;
|
|
749
|
-
knowledge_type?: "
|
|
755
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
750
756
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
751
757
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
752
758
|
layer_reason?: string | undefined;
|
|
@@ -758,16 +764,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
758
764
|
tech_stack: string[];
|
|
759
765
|
impact: string[];
|
|
760
766
|
must_read_if: string;
|
|
767
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
768
|
+
relevance_paths?: string[] | undefined;
|
|
761
769
|
entities?: string[] | undefined;
|
|
762
770
|
id?: string | undefined;
|
|
763
|
-
knowledge_type?:
|
|
771
|
+
knowledge_type?: unknown;
|
|
764
772
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
765
773
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
766
774
|
layer_reason?: string | undefined;
|
|
767
775
|
created_at?: string | undefined;
|
|
768
776
|
tags?: string[] | undefined;
|
|
769
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
770
|
-
relevance_paths?: string[] | undefined;
|
|
771
777
|
}>>;
|
|
772
778
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
773
779
|
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
@@ -868,7 +874,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
868
874
|
must_read_if: z.ZodString;
|
|
869
875
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
870
876
|
id: z.ZodOptional<z.ZodString>;
|
|
871
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
877
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
872
878
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
873
879
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
874
880
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -877,16 +883,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
877
883
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
878
884
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
879
885
|
}, "strict", z.ZodTypeAny, {
|
|
886
|
+
relevance_scope: "narrow" | "broad";
|
|
887
|
+
relevance_paths: string[];
|
|
880
888
|
summary: string;
|
|
881
889
|
intent_clues: string[];
|
|
882
890
|
tech_stack: string[];
|
|
883
891
|
impact: string[];
|
|
884
892
|
must_read_if: string;
|
|
885
|
-
relevance_scope: "narrow" | "broad";
|
|
886
|
-
relevance_paths: string[];
|
|
887
893
|
entities?: string[] | undefined;
|
|
888
894
|
id?: string | undefined;
|
|
889
|
-
knowledge_type?: "
|
|
895
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
890
896
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
891
897
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
892
898
|
layer_reason?: string | undefined;
|
|
@@ -898,16 +904,16 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
898
904
|
tech_stack: string[];
|
|
899
905
|
impact: string[];
|
|
900
906
|
must_read_if: string;
|
|
907
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
908
|
+
relevance_paths?: string[] | undefined;
|
|
901
909
|
entities?: string[] | undefined;
|
|
902
910
|
id?: string | undefined;
|
|
903
|
-
knowledge_type?:
|
|
911
|
+
knowledge_type?: unknown;
|
|
904
912
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
905
913
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
906
914
|
layer_reason?: string | undefined;
|
|
907
915
|
created_at?: string | undefined;
|
|
908
916
|
tags?: string[] | undefined;
|
|
909
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
910
|
-
relevance_paths?: string[] | undefined;
|
|
911
917
|
}>>;
|
|
912
918
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
913
919
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -958,7 +964,7 @@ declare function withDerivedAgentsMetaNodeDefaults(node: AgentsMetaNodeInput): A
|
|
|
958
964
|
* counter, even after deletion, so historical ids remain unique.
|
|
959
965
|
*
|
|
960
966
|
* @example
|
|
961
|
-
* allocateKnowledgeId('team', '
|
|
967
|
+
* allocateKnowledgeId('team', 'decisions',
|
|
962
968
|
* { KP: zeros, KT: { MOD: 0, DEC: 5, GLD: 0, PIT: 0, PRO: 0 } })
|
|
963
969
|
* // → { id: 'KT-DEC-0006',
|
|
964
970
|
* // nextCounters: { KP: zeros, KT: { ..., DEC: 6 } } }
|
|
@@ -1085,8 +1091,8 @@ declare const knowledgeTestIndexSchema: z.ZodObject<{
|
|
|
1085
1091
|
previous_test_hash?: string | undefined;
|
|
1086
1092
|
}>, "many">;
|
|
1087
1093
|
}, "strict", z.ZodTypeAny, {
|
|
1088
|
-
schema_version: 1;
|
|
1089
1094
|
generated_at: string;
|
|
1095
|
+
schema_version: 1;
|
|
1090
1096
|
links: {
|
|
1091
1097
|
rule_stable_id: string;
|
|
1092
1098
|
rule_file: string;
|
|
@@ -1107,8 +1113,8 @@ declare const knowledgeTestIndexSchema: z.ZodObject<{
|
|
|
1107
1113
|
revision?: string | undefined;
|
|
1108
1114
|
previous_revision?: string | undefined;
|
|
1109
1115
|
}, {
|
|
1110
|
-
schema_version: 1;
|
|
1111
1116
|
generated_at: string;
|
|
1117
|
+
schema_version: 1;
|
|
1112
1118
|
links: {
|
|
1113
1119
|
rule_stable_id: string;
|
|
1114
1120
|
rule_file: string;
|
|
@@ -1308,127 +1314,45 @@ declare const humanLockFileSchema: z.ZodObject<{
|
|
|
1308
1314
|
}[] | undefined;
|
|
1309
1315
|
}>;
|
|
1310
1316
|
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
codexCLI?: string | undefined;
|
|
1351
|
-
}, {
|
|
1352
|
-
claudeCodeCLI?: string | undefined;
|
|
1353
|
-
claudeCodeDesktop?: string | undefined;
|
|
1354
|
-
cursor?: string | undefined;
|
|
1355
|
-
codexCLI?: string | undefined;
|
|
1356
|
-
}>>;
|
|
1357
|
-
externalFixturePath: z.ZodOptional<z.ZodString>;
|
|
1358
|
-
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1359
|
-
auditMode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
1360
|
-
audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
1361
|
-
mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
|
|
1362
|
-
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
1363
|
-
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
1364
|
-
}, "strip", z.ZodTypeAny, {
|
|
1365
|
-
warnBytes?: number | undefined;
|
|
1366
|
-
hardBytes?: number | undefined;
|
|
1367
|
-
}, {
|
|
1368
|
-
warnBytes?: number | undefined;
|
|
1369
|
-
hardBytes?: number | undefined;
|
|
1370
|
-
}>>;
|
|
1371
|
-
knowledge_language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["match-existing", "zh-CN", "en"]>>>;
|
|
1372
|
-
default_layer_filter: z.ZodDefault<z.ZodOptional<z.ZodEnum<["team", "personal", "both"]>>>;
|
|
1373
|
-
archive_hint_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1374
|
-
underseed_node_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1375
|
-
archive_edit_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1376
|
-
archive_hint_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1377
|
-
review_hint_pending_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1378
|
-
review_hint_pending_age_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1379
|
-
maintenance_hint_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1380
|
-
maintenance_hint_cooldown_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1381
|
-
}, "strip", z.ZodTypeAny, {
|
|
1382
|
-
knowledge_language: "match-existing" | "zh-CN" | "en";
|
|
1383
|
-
default_layer_filter: "personal" | "team" | "both";
|
|
1384
|
-
archive_hint_cooldown_hours: number;
|
|
1385
|
-
underseed_node_threshold: number;
|
|
1386
|
-
archive_edit_threshold: number;
|
|
1387
|
-
archive_hint_hours: number;
|
|
1388
|
-
review_hint_pending_count: number;
|
|
1389
|
-
review_hint_pending_age_days: number;
|
|
1390
|
-
maintenance_hint_days: number;
|
|
1391
|
-
maintenance_hint_cooldown_days: number;
|
|
1392
|
-
clientPaths?: {
|
|
1393
|
-
claudeCodeCLI?: string | undefined;
|
|
1394
|
-
claudeCodeDesktop?: string | undefined;
|
|
1395
|
-
cursor?: string | undefined;
|
|
1396
|
-
codexCLI?: string | undefined;
|
|
1397
|
-
} | undefined;
|
|
1398
|
-
externalFixturePath?: string | undefined;
|
|
1399
|
-
scanIgnores?: string[] | undefined;
|
|
1400
|
-
auditMode?: "strict" | "warn" | "off" | undefined;
|
|
1401
|
-
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
1402
|
-
mcpPayloadLimits?: {
|
|
1403
|
-
warnBytes?: number | undefined;
|
|
1404
|
-
hardBytes?: number | undefined;
|
|
1405
|
-
} | undefined;
|
|
1406
|
-
}, {
|
|
1407
|
-
clientPaths?: {
|
|
1408
|
-
claudeCodeCLI?: string | undefined;
|
|
1409
|
-
claudeCodeDesktop?: string | undefined;
|
|
1410
|
-
cursor?: string | undefined;
|
|
1411
|
-
codexCLI?: string | undefined;
|
|
1412
|
-
} | undefined;
|
|
1413
|
-
externalFixturePath?: string | undefined;
|
|
1414
|
-
scanIgnores?: string[] | undefined;
|
|
1415
|
-
auditMode?: "strict" | "warn" | "off" | undefined;
|
|
1416
|
-
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
1417
|
-
mcpPayloadLimits?: {
|
|
1418
|
-
warnBytes?: number | undefined;
|
|
1419
|
-
hardBytes?: number | undefined;
|
|
1420
|
-
} | undefined;
|
|
1421
|
-
knowledge_language?: "match-existing" | "zh-CN" | "en" | undefined;
|
|
1422
|
-
default_layer_filter?: "personal" | "team" | "both" | undefined;
|
|
1423
|
-
archive_hint_cooldown_hours?: number | undefined;
|
|
1424
|
-
underseed_node_threshold?: number | undefined;
|
|
1425
|
-
archive_edit_threshold?: number | undefined;
|
|
1426
|
-
archive_hint_hours?: number | undefined;
|
|
1427
|
-
review_hint_pending_count?: number | undefined;
|
|
1428
|
-
review_hint_pending_age_days?: number | undefined;
|
|
1429
|
-
maintenance_hint_days?: number | undefined;
|
|
1430
|
-
maintenance_hint_cooldown_days?: number | undefined;
|
|
1431
|
-
}>;
|
|
1317
|
+
type FabricConfigSchemaShape = z.infer<typeof fabricConfigSchema>;
|
|
1318
|
+
type PanelFieldGroup = "A_locale" | "B_hint_threshold" | "C_audit";
|
|
1319
|
+
type ValidateResult = {
|
|
1320
|
+
ok: true;
|
|
1321
|
+
value: unknown;
|
|
1322
|
+
} | {
|
|
1323
|
+
ok: false;
|
|
1324
|
+
error: string;
|
|
1325
|
+
};
|
|
1326
|
+
interface PanelFieldMeta {
|
|
1327
|
+
/** Schema key this field edits — type-checked against the inferred config shape. */
|
|
1328
|
+
readonly key: keyof FabricConfigSchemaShape;
|
|
1329
|
+
/** Logical grouping for panel section headers. */
|
|
1330
|
+
readonly group: PanelFieldGroup;
|
|
1331
|
+
/** Clack widget hint — `select` for enums, `text` for free-form numbers. */
|
|
1332
|
+
readonly widget: "select" | "text";
|
|
1333
|
+
/** i18n key for the field label; strings landed in TASK-006. */
|
|
1334
|
+
readonly label_i18n_key: string;
|
|
1335
|
+
/** i18n key for the field's description / help text. */
|
|
1336
|
+
readonly description_i18n_key: string;
|
|
1337
|
+
/** Default value pulled from the Zod schema's `.default(...)`. */
|
|
1338
|
+
readonly default: string | number;
|
|
1339
|
+
/** Enum options for `select` widgets, derived from the Zod enum schema. */
|
|
1340
|
+
readonly enum_values?: readonly string[];
|
|
1341
|
+
/** Validates raw user input from the TUI prompt. */
|
|
1342
|
+
validate(raw: string): ValidateResult;
|
|
1343
|
+
/** Renders a stored value back to the panel display string. */
|
|
1344
|
+
format_for_display(value: unknown): string;
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* Returns the per-field metadata array driving the `fabric config` clack panel.
|
|
1348
|
+
* Group A (2) + Group B (8) + Group C (1) = 11 entries.
|
|
1349
|
+
*/
|
|
1350
|
+
declare function getPanelFields(): readonly PanelFieldMeta[];
|
|
1351
|
+
/**
|
|
1352
|
+
* Lookup a single panel field by its config key. Returns `undefined` if the
|
|
1353
|
+
* key is not panel-scoped (e.g. Group D/E plumbing).
|
|
1354
|
+
*/
|
|
1355
|
+
declare function getPanelFieldByKey(key: string): PanelFieldMeta | undefined;
|
|
1432
1356
|
|
|
1433
1357
|
interface ForensicCodeSample {
|
|
1434
1358
|
path: string;
|
|
@@ -2396,7 +2320,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2396
2320
|
must_read_if: z.ZodString;
|
|
2397
2321
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2398
2322
|
id: z.ZodOptional<z.ZodString>;
|
|
2399
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
2323
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
2400
2324
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2401
2325
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2402
2326
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -2405,16 +2329,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2405
2329
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2406
2330
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2407
2331
|
}, "strict", z.ZodTypeAny, {
|
|
2332
|
+
relevance_scope: "narrow" | "broad";
|
|
2333
|
+
relevance_paths: string[];
|
|
2408
2334
|
summary: string;
|
|
2409
2335
|
intent_clues: string[];
|
|
2410
2336
|
tech_stack: string[];
|
|
2411
2337
|
impact: string[];
|
|
2412
2338
|
must_read_if: string;
|
|
2413
|
-
relevance_scope: "narrow" | "broad";
|
|
2414
|
-
relevance_paths: string[];
|
|
2415
2339
|
entities?: string[] | undefined;
|
|
2416
2340
|
id?: string | undefined;
|
|
2417
|
-
knowledge_type?: "
|
|
2341
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
2418
2342
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2419
2343
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2420
2344
|
layer_reason?: string | undefined;
|
|
@@ -2426,16 +2350,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2426
2350
|
tech_stack: string[];
|
|
2427
2351
|
impact: string[];
|
|
2428
2352
|
must_read_if: string;
|
|
2353
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2354
|
+
relevance_paths?: string[] | undefined;
|
|
2429
2355
|
entities?: string[] | undefined;
|
|
2430
2356
|
id?: string | undefined;
|
|
2431
|
-
knowledge_type?:
|
|
2357
|
+
knowledge_type?: unknown;
|
|
2432
2358
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2433
2359
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2434
2360
|
layer_reason?: string | undefined;
|
|
2435
2361
|
created_at?: string | undefined;
|
|
2436
2362
|
tags?: string[] | undefined;
|
|
2437
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2438
|
-
relevance_paths?: string[] | undefined;
|
|
2439
2363
|
}>>;
|
|
2440
2364
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2441
2365
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2463,7 +2387,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2463
2387
|
must_read_if: z.ZodString;
|
|
2464
2388
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2465
2389
|
id: z.ZodOptional<z.ZodString>;
|
|
2466
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
2390
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
2467
2391
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2468
2392
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2469
2393
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -2472,16 +2396,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2472
2396
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2473
2397
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2474
2398
|
}, "strict", z.ZodTypeAny, {
|
|
2399
|
+
relevance_scope: "narrow" | "broad";
|
|
2400
|
+
relevance_paths: string[];
|
|
2475
2401
|
summary: string;
|
|
2476
2402
|
intent_clues: string[];
|
|
2477
2403
|
tech_stack: string[];
|
|
2478
2404
|
impact: string[];
|
|
2479
2405
|
must_read_if: string;
|
|
2480
|
-
relevance_scope: "narrow" | "broad";
|
|
2481
|
-
relevance_paths: string[];
|
|
2482
2406
|
entities?: string[] | undefined;
|
|
2483
2407
|
id?: string | undefined;
|
|
2484
|
-
knowledge_type?: "
|
|
2408
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
2485
2409
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2486
2410
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2487
2411
|
layer_reason?: string | undefined;
|
|
@@ -2493,16 +2417,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2493
2417
|
tech_stack: string[];
|
|
2494
2418
|
impact: string[];
|
|
2495
2419
|
must_read_if: string;
|
|
2420
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2421
|
+
relevance_paths?: string[] | undefined;
|
|
2496
2422
|
entities?: string[] | undefined;
|
|
2497
2423
|
id?: string | undefined;
|
|
2498
|
-
knowledge_type?:
|
|
2424
|
+
knowledge_type?: unknown;
|
|
2499
2425
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2500
2426
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2501
2427
|
layer_reason?: string | undefined;
|
|
2502
2428
|
created_at?: string | undefined;
|
|
2503
2429
|
tags?: string[] | undefined;
|
|
2504
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2505
|
-
relevance_paths?: string[] | undefined;
|
|
2506
2430
|
}>>;
|
|
2507
2431
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2508
2432
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -2530,7 +2454,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2530
2454
|
must_read_if: z.ZodString;
|
|
2531
2455
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2532
2456
|
id: z.ZodOptional<z.ZodString>;
|
|
2533
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
2457
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
2534
2458
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2535
2459
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2536
2460
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -2539,16 +2463,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2539
2463
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2540
2464
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2541
2465
|
}, "strict", z.ZodTypeAny, {
|
|
2466
|
+
relevance_scope: "narrow" | "broad";
|
|
2467
|
+
relevance_paths: string[];
|
|
2542
2468
|
summary: string;
|
|
2543
2469
|
intent_clues: string[];
|
|
2544
2470
|
tech_stack: string[];
|
|
2545
2471
|
impact: string[];
|
|
2546
2472
|
must_read_if: string;
|
|
2547
|
-
relevance_scope: "narrow" | "broad";
|
|
2548
|
-
relevance_paths: string[];
|
|
2549
2473
|
entities?: string[] | undefined;
|
|
2550
2474
|
id?: string | undefined;
|
|
2551
|
-
knowledge_type?: "
|
|
2475
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
2552
2476
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2553
2477
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2554
2478
|
layer_reason?: string | undefined;
|
|
@@ -2560,16 +2484,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2560
2484
|
tech_stack: string[];
|
|
2561
2485
|
impact: string[];
|
|
2562
2486
|
must_read_if: string;
|
|
2487
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2488
|
+
relevance_paths?: string[] | undefined;
|
|
2563
2489
|
entities?: string[] | undefined;
|
|
2564
2490
|
id?: string | undefined;
|
|
2565
|
-
knowledge_type?:
|
|
2491
|
+
knowledge_type?: unknown;
|
|
2566
2492
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2567
2493
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2568
2494
|
layer_reason?: string | undefined;
|
|
2569
2495
|
created_at?: string | undefined;
|
|
2570
2496
|
tags?: string[] | undefined;
|
|
2571
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2572
|
-
relevance_paths?: string[] | undefined;
|
|
2573
2497
|
}>>;
|
|
2574
2498
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2575
2499
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
@@ -2597,7 +2521,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2597
2521
|
must_read_if: z.ZodString;
|
|
2598
2522
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2599
2523
|
id: z.ZodOptional<z.ZodString>;
|
|
2600
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
2524
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
2601
2525
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2602
2526
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2603
2527
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -2606,16 +2530,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2606
2530
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2607
2531
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2608
2532
|
}, "strict", z.ZodTypeAny, {
|
|
2533
|
+
relevance_scope: "narrow" | "broad";
|
|
2534
|
+
relevance_paths: string[];
|
|
2609
2535
|
summary: string;
|
|
2610
2536
|
intent_clues: string[];
|
|
2611
2537
|
tech_stack: string[];
|
|
2612
2538
|
impact: string[];
|
|
2613
2539
|
must_read_if: string;
|
|
2614
|
-
relevance_scope: "narrow" | "broad";
|
|
2615
|
-
relevance_paths: string[];
|
|
2616
2540
|
entities?: string[] | undefined;
|
|
2617
2541
|
id?: string | undefined;
|
|
2618
|
-
knowledge_type?: "
|
|
2542
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
2619
2543
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2620
2544
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2621
2545
|
layer_reason?: string | undefined;
|
|
@@ -2627,16 +2551,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2627
2551
|
tech_stack: string[];
|
|
2628
2552
|
impact: string[];
|
|
2629
2553
|
must_read_if: string;
|
|
2554
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2555
|
+
relevance_paths?: string[] | undefined;
|
|
2630
2556
|
entities?: string[] | undefined;
|
|
2631
2557
|
id?: string | undefined;
|
|
2632
|
-
knowledge_type?:
|
|
2558
|
+
knowledge_type?: unknown;
|
|
2633
2559
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2634
2560
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2635
2561
|
layer_reason?: string | undefined;
|
|
2636
2562
|
created_at?: string | undefined;
|
|
2637
2563
|
tags?: string[] | undefined;
|
|
2638
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2639
|
-
relevance_paths?: string[] | undefined;
|
|
2640
2564
|
}>>;
|
|
2641
2565
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2642
2566
|
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
@@ -2737,7 +2661,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2737
2661
|
must_read_if: z.ZodString;
|
|
2738
2662
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2739
2663
|
id: z.ZodOptional<z.ZodString>;
|
|
2740
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
2664
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
2741
2665
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2742
2666
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2743
2667
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -2746,16 +2670,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2746
2670
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2747
2671
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2748
2672
|
}, "strict", z.ZodTypeAny, {
|
|
2673
|
+
relevance_scope: "narrow" | "broad";
|
|
2674
|
+
relevance_paths: string[];
|
|
2749
2675
|
summary: string;
|
|
2750
2676
|
intent_clues: string[];
|
|
2751
2677
|
tech_stack: string[];
|
|
2752
2678
|
impact: string[];
|
|
2753
2679
|
must_read_if: string;
|
|
2754
|
-
relevance_scope: "narrow" | "broad";
|
|
2755
|
-
relevance_paths: string[];
|
|
2756
2680
|
entities?: string[] | undefined;
|
|
2757
2681
|
id?: string | undefined;
|
|
2758
|
-
knowledge_type?: "
|
|
2682
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
2759
2683
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2760
2684
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2761
2685
|
layer_reason?: string | undefined;
|
|
@@ -2767,16 +2691,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2767
2691
|
tech_stack: string[];
|
|
2768
2692
|
impact: string[];
|
|
2769
2693
|
must_read_if: string;
|
|
2694
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2695
|
+
relevance_paths?: string[] | undefined;
|
|
2770
2696
|
entities?: string[] | undefined;
|
|
2771
2697
|
id?: string | undefined;
|
|
2772
|
-
knowledge_type?:
|
|
2698
|
+
knowledge_type?: unknown;
|
|
2773
2699
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2774
2700
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2775
2701
|
layer_reason?: string | undefined;
|
|
2776
2702
|
created_at?: string | undefined;
|
|
2777
2703
|
tags?: string[] | undefined;
|
|
2778
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2779
|
-
relevance_paths?: string[] | undefined;
|
|
2780
2704
|
}>>;
|
|
2781
2705
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2782
2706
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -2845,7 +2769,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2845
2769
|
must_read_if: z.ZodString;
|
|
2846
2770
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2847
2771
|
id: z.ZodOptional<z.ZodString>;
|
|
2848
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
2772
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
2849
2773
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
2850
2774
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
2851
2775
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -2854,16 +2778,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2854
2778
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
2855
2779
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2856
2780
|
}, "strict", z.ZodTypeAny, {
|
|
2781
|
+
relevance_scope: "narrow" | "broad";
|
|
2782
|
+
relevance_paths: string[];
|
|
2857
2783
|
summary: string;
|
|
2858
2784
|
intent_clues: string[];
|
|
2859
2785
|
tech_stack: string[];
|
|
2860
2786
|
impact: string[];
|
|
2861
2787
|
must_read_if: string;
|
|
2862
|
-
relevance_scope: "narrow" | "broad";
|
|
2863
|
-
relevance_paths: string[];
|
|
2864
2788
|
entities?: string[] | undefined;
|
|
2865
2789
|
id?: string | undefined;
|
|
2866
|
-
knowledge_type?: "
|
|
2790
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
2867
2791
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2868
2792
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2869
2793
|
layer_reason?: string | undefined;
|
|
@@ -2875,16 +2799,16 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
2875
2799
|
tech_stack: string[];
|
|
2876
2800
|
impact: string[];
|
|
2877
2801
|
must_read_if: string;
|
|
2802
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2803
|
+
relevance_paths?: string[] | undefined;
|
|
2878
2804
|
entities?: string[] | undefined;
|
|
2879
2805
|
id?: string | undefined;
|
|
2880
|
-
knowledge_type?:
|
|
2806
|
+
knowledge_type?: unknown;
|
|
2881
2807
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
2882
2808
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
2883
2809
|
layer_reason?: string | undefined;
|
|
2884
2810
|
created_at?: string | undefined;
|
|
2885
2811
|
tags?: string[] | undefined;
|
|
2886
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
2887
|
-
relevance_paths?: string[] | undefined;
|
|
2888
2812
|
}>>;
|
|
2889
2813
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2890
2814
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -2964,26 +2888,26 @@ declare const lockDriftEventSchema: z.ZodObject<{
|
|
|
2964
2888
|
end_line: number;
|
|
2965
2889
|
}>, "many">;
|
|
2966
2890
|
}, "strip", z.ZodTypeAny, {
|
|
2967
|
-
|
|
2891
|
+
drifted: {
|
|
2968
2892
|
file: string;
|
|
2969
2893
|
hash: string;
|
|
2970
2894
|
start_line: number;
|
|
2971
2895
|
end_line: number;
|
|
2972
2896
|
}[];
|
|
2973
|
-
|
|
2897
|
+
locked: {
|
|
2974
2898
|
file: string;
|
|
2975
2899
|
hash: string;
|
|
2976
2900
|
start_line: number;
|
|
2977
2901
|
end_line: number;
|
|
2978
2902
|
}[];
|
|
2979
2903
|
}, {
|
|
2980
|
-
|
|
2904
|
+
drifted: {
|
|
2981
2905
|
file: string;
|
|
2982
2906
|
hash: string;
|
|
2983
2907
|
start_line: number;
|
|
2984
2908
|
end_line: number;
|
|
2985
2909
|
}[];
|
|
2986
|
-
|
|
2910
|
+
locked: {
|
|
2987
2911
|
file: string;
|
|
2988
2912
|
hash: string;
|
|
2989
2913
|
start_line: number;
|
|
@@ -2993,13 +2917,13 @@ declare const lockDriftEventSchema: z.ZodObject<{
|
|
|
2993
2917
|
}, "strip", z.ZodTypeAny, {
|
|
2994
2918
|
type: "lock:drift";
|
|
2995
2919
|
payload: {
|
|
2996
|
-
|
|
2920
|
+
drifted: {
|
|
2997
2921
|
file: string;
|
|
2998
2922
|
hash: string;
|
|
2999
2923
|
start_line: number;
|
|
3000
2924
|
end_line: number;
|
|
3001
2925
|
}[];
|
|
3002
|
-
|
|
2926
|
+
locked: {
|
|
3003
2927
|
file: string;
|
|
3004
2928
|
hash: string;
|
|
3005
2929
|
start_line: number;
|
|
@@ -3009,13 +2933,13 @@ declare const lockDriftEventSchema: z.ZodObject<{
|
|
|
3009
2933
|
}, {
|
|
3010
2934
|
type: "lock:drift";
|
|
3011
2935
|
payload: {
|
|
3012
|
-
|
|
2936
|
+
drifted: {
|
|
3013
2937
|
file: string;
|
|
3014
2938
|
hash: string;
|
|
3015
2939
|
start_line: number;
|
|
3016
2940
|
end_line: number;
|
|
3017
2941
|
}[];
|
|
3018
|
-
|
|
2942
|
+
locked: {
|
|
3019
2943
|
file: string;
|
|
3020
2944
|
hash: string;
|
|
3021
2945
|
start_line: number;
|
|
@@ -3674,7 +3598,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3674
3598
|
must_read_if: z.ZodString;
|
|
3675
3599
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3676
3600
|
id: z.ZodOptional<z.ZodString>;
|
|
3677
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
3601
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
3678
3602
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
3679
3603
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
3680
3604
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -3683,16 +3607,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3683
3607
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
3684
3608
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3685
3609
|
}, "strict", z.ZodTypeAny, {
|
|
3610
|
+
relevance_scope: "narrow" | "broad";
|
|
3611
|
+
relevance_paths: string[];
|
|
3686
3612
|
summary: string;
|
|
3687
3613
|
intent_clues: string[];
|
|
3688
3614
|
tech_stack: string[];
|
|
3689
3615
|
impact: string[];
|
|
3690
3616
|
must_read_if: string;
|
|
3691
|
-
relevance_scope: "narrow" | "broad";
|
|
3692
|
-
relevance_paths: string[];
|
|
3693
3617
|
entities?: string[] | undefined;
|
|
3694
3618
|
id?: string | undefined;
|
|
3695
|
-
knowledge_type?: "
|
|
3619
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
3696
3620
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3697
3621
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
3698
3622
|
layer_reason?: string | undefined;
|
|
@@ -3704,16 +3628,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3704
3628
|
tech_stack: string[];
|
|
3705
3629
|
impact: string[];
|
|
3706
3630
|
must_read_if: string;
|
|
3631
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3632
|
+
relevance_paths?: string[] | undefined;
|
|
3707
3633
|
entities?: string[] | undefined;
|
|
3708
3634
|
id?: string | undefined;
|
|
3709
|
-
knowledge_type?:
|
|
3635
|
+
knowledge_type?: unknown;
|
|
3710
3636
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3711
3637
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
3712
3638
|
layer_reason?: string | undefined;
|
|
3713
3639
|
created_at?: string | undefined;
|
|
3714
3640
|
tags?: string[] | undefined;
|
|
3715
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3716
|
-
relevance_paths?: string[] | undefined;
|
|
3717
3641
|
}>>;
|
|
3718
3642
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3719
3643
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -3741,7 +3665,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3741
3665
|
must_read_if: z.ZodString;
|
|
3742
3666
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3743
3667
|
id: z.ZodOptional<z.ZodString>;
|
|
3744
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
3668
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
3745
3669
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
3746
3670
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
3747
3671
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -3750,16 +3674,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3750
3674
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
3751
3675
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3752
3676
|
}, "strict", z.ZodTypeAny, {
|
|
3677
|
+
relevance_scope: "narrow" | "broad";
|
|
3678
|
+
relevance_paths: string[];
|
|
3753
3679
|
summary: string;
|
|
3754
3680
|
intent_clues: string[];
|
|
3755
3681
|
tech_stack: string[];
|
|
3756
3682
|
impact: string[];
|
|
3757
3683
|
must_read_if: string;
|
|
3758
|
-
relevance_scope: "narrow" | "broad";
|
|
3759
|
-
relevance_paths: string[];
|
|
3760
3684
|
entities?: string[] | undefined;
|
|
3761
3685
|
id?: string | undefined;
|
|
3762
|
-
knowledge_type?: "
|
|
3686
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
3763
3687
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3764
3688
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
3765
3689
|
layer_reason?: string | undefined;
|
|
@@ -3771,16 +3695,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3771
3695
|
tech_stack: string[];
|
|
3772
3696
|
impact: string[];
|
|
3773
3697
|
must_read_if: string;
|
|
3698
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3699
|
+
relevance_paths?: string[] | undefined;
|
|
3774
3700
|
entities?: string[] | undefined;
|
|
3775
3701
|
id?: string | undefined;
|
|
3776
|
-
knowledge_type?:
|
|
3702
|
+
knowledge_type?: unknown;
|
|
3777
3703
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3778
3704
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
3779
3705
|
layer_reason?: string | undefined;
|
|
3780
3706
|
created_at?: string | undefined;
|
|
3781
3707
|
tags?: string[] | undefined;
|
|
3782
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3783
|
-
relevance_paths?: string[] | undefined;
|
|
3784
3708
|
}>>;
|
|
3785
3709
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3786
3710
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -3808,7 +3732,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3808
3732
|
must_read_if: z.ZodString;
|
|
3809
3733
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3810
3734
|
id: z.ZodOptional<z.ZodString>;
|
|
3811
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
3735
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
3812
3736
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
3813
3737
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
3814
3738
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -3817,16 +3741,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3817
3741
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
3818
3742
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3819
3743
|
}, "strict", z.ZodTypeAny, {
|
|
3744
|
+
relevance_scope: "narrow" | "broad";
|
|
3745
|
+
relevance_paths: string[];
|
|
3820
3746
|
summary: string;
|
|
3821
3747
|
intent_clues: string[];
|
|
3822
3748
|
tech_stack: string[];
|
|
3823
3749
|
impact: string[];
|
|
3824
3750
|
must_read_if: string;
|
|
3825
|
-
relevance_scope: "narrow" | "broad";
|
|
3826
|
-
relevance_paths: string[];
|
|
3827
3751
|
entities?: string[] | undefined;
|
|
3828
3752
|
id?: string | undefined;
|
|
3829
|
-
knowledge_type?: "
|
|
3753
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
3830
3754
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3831
3755
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
3832
3756
|
layer_reason?: string | undefined;
|
|
@@ -3838,16 +3762,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3838
3762
|
tech_stack: string[];
|
|
3839
3763
|
impact: string[];
|
|
3840
3764
|
must_read_if: string;
|
|
3765
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3766
|
+
relevance_paths?: string[] | undefined;
|
|
3841
3767
|
entities?: string[] | undefined;
|
|
3842
3768
|
id?: string | undefined;
|
|
3843
|
-
knowledge_type?:
|
|
3769
|
+
knowledge_type?: unknown;
|
|
3844
3770
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3845
3771
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
3846
3772
|
layer_reason?: string | undefined;
|
|
3847
3773
|
created_at?: string | undefined;
|
|
3848
3774
|
tags?: string[] | undefined;
|
|
3849
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3850
|
-
relevance_paths?: string[] | undefined;
|
|
3851
3775
|
}>>;
|
|
3852
3776
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3853
3777
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
@@ -3875,7 +3799,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3875
3799
|
must_read_if: z.ZodString;
|
|
3876
3800
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3877
3801
|
id: z.ZodOptional<z.ZodString>;
|
|
3878
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
3802
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
3879
3803
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
3880
3804
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
3881
3805
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -3884,16 +3808,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3884
3808
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
3885
3809
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3886
3810
|
}, "strict", z.ZodTypeAny, {
|
|
3811
|
+
relevance_scope: "narrow" | "broad";
|
|
3812
|
+
relevance_paths: string[];
|
|
3887
3813
|
summary: string;
|
|
3888
3814
|
intent_clues: string[];
|
|
3889
3815
|
tech_stack: string[];
|
|
3890
3816
|
impact: string[];
|
|
3891
3817
|
must_read_if: string;
|
|
3892
|
-
relevance_scope: "narrow" | "broad";
|
|
3893
|
-
relevance_paths: string[];
|
|
3894
3818
|
entities?: string[] | undefined;
|
|
3895
3819
|
id?: string | undefined;
|
|
3896
|
-
knowledge_type?: "
|
|
3820
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
3897
3821
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3898
3822
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
3899
3823
|
layer_reason?: string | undefined;
|
|
@@ -3905,16 +3829,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3905
3829
|
tech_stack: string[];
|
|
3906
3830
|
impact: string[];
|
|
3907
3831
|
must_read_if: string;
|
|
3832
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3833
|
+
relevance_paths?: string[] | undefined;
|
|
3908
3834
|
entities?: string[] | undefined;
|
|
3909
3835
|
id?: string | undefined;
|
|
3910
|
-
knowledge_type?:
|
|
3836
|
+
knowledge_type?: unknown;
|
|
3911
3837
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
3912
3838
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
3913
3839
|
layer_reason?: string | undefined;
|
|
3914
3840
|
created_at?: string | undefined;
|
|
3915
3841
|
tags?: string[] | undefined;
|
|
3916
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3917
|
-
relevance_paths?: string[] | undefined;
|
|
3918
3842
|
}>>;
|
|
3919
3843
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3920
3844
|
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
@@ -4015,7 +3939,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4015
3939
|
must_read_if: z.ZodString;
|
|
4016
3940
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4017
3941
|
id: z.ZodOptional<z.ZodString>;
|
|
4018
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
3942
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
4019
3943
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
4020
3944
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
4021
3945
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -4024,16 +3948,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4024
3948
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4025
3949
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4026
3950
|
}, "strict", z.ZodTypeAny, {
|
|
3951
|
+
relevance_scope: "narrow" | "broad";
|
|
3952
|
+
relevance_paths: string[];
|
|
4027
3953
|
summary: string;
|
|
4028
3954
|
intent_clues: string[];
|
|
4029
3955
|
tech_stack: string[];
|
|
4030
3956
|
impact: string[];
|
|
4031
3957
|
must_read_if: string;
|
|
4032
|
-
relevance_scope: "narrow" | "broad";
|
|
4033
|
-
relevance_paths: string[];
|
|
4034
3958
|
entities?: string[] | undefined;
|
|
4035
3959
|
id?: string | undefined;
|
|
4036
|
-
knowledge_type?: "
|
|
3960
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
4037
3961
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
4038
3962
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4039
3963
|
layer_reason?: string | undefined;
|
|
@@ -4045,16 +3969,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4045
3969
|
tech_stack: string[];
|
|
4046
3970
|
impact: string[];
|
|
4047
3971
|
must_read_if: string;
|
|
3972
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
3973
|
+
relevance_paths?: string[] | undefined;
|
|
4048
3974
|
entities?: string[] | undefined;
|
|
4049
3975
|
id?: string | undefined;
|
|
4050
|
-
knowledge_type?:
|
|
3976
|
+
knowledge_type?: unknown;
|
|
4051
3977
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
4052
3978
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4053
3979
|
layer_reason?: string | undefined;
|
|
4054
3980
|
created_at?: string | undefined;
|
|
4055
3981
|
tags?: string[] | undefined;
|
|
4056
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
4057
|
-
relevance_paths?: string[] | undefined;
|
|
4058
3982
|
}>>;
|
|
4059
3983
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4060
3984
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -4123,7 +4047,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4123
4047
|
must_read_if: z.ZodString;
|
|
4124
4048
|
entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4125
4049
|
id: z.ZodOptional<z.ZodString>;
|
|
4126
|
-
knowledge_type: z.ZodOptional<z.ZodEnum<["
|
|
4050
|
+
knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
|
|
4127
4051
|
maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
|
|
4128
4052
|
knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
|
|
4129
4053
|
layer_reason: z.ZodOptional<z.ZodString>;
|
|
@@ -4132,16 +4056,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4132
4056
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4133
4057
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4134
4058
|
}, "strict", z.ZodTypeAny, {
|
|
4059
|
+
relevance_scope: "narrow" | "broad";
|
|
4060
|
+
relevance_paths: string[];
|
|
4135
4061
|
summary: string;
|
|
4136
4062
|
intent_clues: string[];
|
|
4137
4063
|
tech_stack: string[];
|
|
4138
4064
|
impact: string[];
|
|
4139
4065
|
must_read_if: string;
|
|
4140
|
-
relevance_scope: "narrow" | "broad";
|
|
4141
|
-
relevance_paths: string[];
|
|
4142
4066
|
entities?: string[] | undefined;
|
|
4143
4067
|
id?: string | undefined;
|
|
4144
|
-
knowledge_type?: "
|
|
4068
|
+
knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
|
|
4145
4069
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
4146
4070
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4147
4071
|
layer_reason?: string | undefined;
|
|
@@ -4153,16 +4077,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4153
4077
|
tech_stack: string[];
|
|
4154
4078
|
impact: string[];
|
|
4155
4079
|
must_read_if: string;
|
|
4080
|
+
relevance_scope?: "narrow" | "broad" | undefined;
|
|
4081
|
+
relevance_paths?: string[] | undefined;
|
|
4156
4082
|
entities?: string[] | undefined;
|
|
4157
4083
|
id?: string | undefined;
|
|
4158
|
-
knowledge_type?:
|
|
4084
|
+
knowledge_type?: unknown;
|
|
4159
4085
|
maturity?: "draft" | "verified" | "proven" | undefined;
|
|
4160
4086
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4161
4087
|
layer_reason?: string | undefined;
|
|
4162
4088
|
created_at?: string | undefined;
|
|
4163
4089
|
tags?: string[] | undefined;
|
|
4164
|
-
relevance_scope?: "narrow" | "broad" | undefined;
|
|
4165
|
-
relevance_paths?: string[] | undefined;
|
|
4166
4090
|
}>>;
|
|
4167
4091
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4168
4092
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -4241,26 +4165,26 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4241
4165
|
end_line: number;
|
|
4242
4166
|
}>, "many">;
|
|
4243
4167
|
}, "strip", z.ZodTypeAny, {
|
|
4244
|
-
|
|
4168
|
+
drifted: {
|
|
4245
4169
|
file: string;
|
|
4246
4170
|
hash: string;
|
|
4247
4171
|
start_line: number;
|
|
4248
4172
|
end_line: number;
|
|
4249
4173
|
}[];
|
|
4250
|
-
|
|
4174
|
+
locked: {
|
|
4251
4175
|
file: string;
|
|
4252
4176
|
hash: string;
|
|
4253
4177
|
start_line: number;
|
|
4254
4178
|
end_line: number;
|
|
4255
4179
|
}[];
|
|
4256
4180
|
}, {
|
|
4257
|
-
|
|
4181
|
+
drifted: {
|
|
4258
4182
|
file: string;
|
|
4259
4183
|
hash: string;
|
|
4260
4184
|
start_line: number;
|
|
4261
4185
|
end_line: number;
|
|
4262
4186
|
}[];
|
|
4263
|
-
|
|
4187
|
+
locked: {
|
|
4264
4188
|
file: string;
|
|
4265
4189
|
hash: string;
|
|
4266
4190
|
start_line: number;
|
|
@@ -4270,13 +4194,13 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4270
4194
|
}, "strip", z.ZodTypeAny, {
|
|
4271
4195
|
type: "lock:drift";
|
|
4272
4196
|
payload: {
|
|
4273
|
-
|
|
4197
|
+
drifted: {
|
|
4274
4198
|
file: string;
|
|
4275
4199
|
hash: string;
|
|
4276
4200
|
start_line: number;
|
|
4277
4201
|
end_line: number;
|
|
4278
4202
|
}[];
|
|
4279
|
-
|
|
4203
|
+
locked: {
|
|
4280
4204
|
file: string;
|
|
4281
4205
|
hash: string;
|
|
4282
4206
|
start_line: number;
|
|
@@ -4286,13 +4210,13 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4286
4210
|
}, {
|
|
4287
4211
|
type: "lock:drift";
|
|
4288
4212
|
payload: {
|
|
4289
|
-
|
|
4213
|
+
drifted: {
|
|
4290
4214
|
file: string;
|
|
4291
4215
|
hash: string;
|
|
4292
4216
|
start_line: number;
|
|
4293
4217
|
end_line: number;
|
|
4294
4218
|
}[];
|
|
4295
|
-
|
|
4219
|
+
locked: {
|
|
4296
4220
|
file: string;
|
|
4297
4221
|
hash: string;
|
|
4298
4222
|
start_line: number;
|
|
@@ -5073,7 +4997,7 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
5073
4997
|
compliant: z.ZodBoolean;
|
|
5074
4998
|
intent: z.ZodString;
|
|
5075
4999
|
ledger_entry_id: z.ZodString;
|
|
5076
|
-
ledger_source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
|
|
5000
|
+
ledger_source: z.ZodOptional<z.ZodEnum<["ai", "human", "hook"]>>;
|
|
5077
5001
|
commit_sha: z.ZodOptional<z.ZodString>;
|
|
5078
5002
|
parent_sha: z.ZodOptional<z.ZodString>;
|
|
5079
5003
|
parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
|
|
@@ -5106,7 +5030,7 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
5106
5030
|
parent_sha?: string | undefined;
|
|
5107
5031
|
parent_ledger_entry_id?: string | undefined;
|
|
5108
5032
|
diff_stat?: string | undefined;
|
|
5109
|
-
ledger_source?: "ai" | "human" | undefined;
|
|
5033
|
+
ledger_source?: "ai" | "human" | "hook" | undefined;
|
|
5110
5034
|
}, {
|
|
5111
5035
|
path: string;
|
|
5112
5036
|
id: string;
|
|
@@ -5126,7 +5050,7 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
5126
5050
|
parent_sha?: string | undefined;
|
|
5127
5051
|
parent_ledger_entry_id?: string | undefined;
|
|
5128
5052
|
diff_stat?: string | undefined;
|
|
5129
|
-
ledger_source?: "ai" | "human" | undefined;
|
|
5053
|
+
ledger_source?: "ai" | "human" | "hook" | undefined;
|
|
5130
5054
|
}>;
|
|
5131
5055
|
declare const knowledgeDriftDetectedEventSchema: z.ZodObject<{
|
|
5132
5056
|
event_type: z.ZodLiteral<"knowledge_drift_detected">;
|
|
@@ -5261,8 +5185,42 @@ declare const reapplyCompletedEventSchema: z.ZodObject<{
|
|
|
5261
5185
|
correlation_id?: string | undefined;
|
|
5262
5186
|
session_id?: string | undefined;
|
|
5263
5187
|
}>;
|
|
5264
|
-
declare const
|
|
5265
|
-
event_type: z.ZodLiteral<"
|
|
5188
|
+
declare const installDiffAppliedEventSchema: z.ZodObject<{
|
|
5189
|
+
event_type: z.ZodLiteral<"install_diff_applied">;
|
|
5190
|
+
applied: z.ZodArray<z.ZodString, "many">;
|
|
5191
|
+
canonical: z.ZodArray<z.ZodString, "many">;
|
|
5192
|
+
drifted: z.ZodArray<z.ZodString, "many">;
|
|
5193
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5194
|
+
id: z.ZodString;
|
|
5195
|
+
ts: z.ZodNumber;
|
|
5196
|
+
schema_version: z.ZodLiteral<1>;
|
|
5197
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5198
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5199
|
+
}, "strip", z.ZodTypeAny, {
|
|
5200
|
+
canonical: string[];
|
|
5201
|
+
drifted: string[];
|
|
5202
|
+
id: string;
|
|
5203
|
+
ts: number;
|
|
5204
|
+
schema_version: 1;
|
|
5205
|
+
kind: "fabric-event";
|
|
5206
|
+
event_type: "install_diff_applied";
|
|
5207
|
+
applied: string[];
|
|
5208
|
+
correlation_id?: string | undefined;
|
|
5209
|
+
session_id?: string | undefined;
|
|
5210
|
+
}, {
|
|
5211
|
+
canonical: string[];
|
|
5212
|
+
drifted: string[];
|
|
5213
|
+
id: string;
|
|
5214
|
+
ts: number;
|
|
5215
|
+
schema_version: 1;
|
|
5216
|
+
kind: "fabric-event";
|
|
5217
|
+
event_type: "install_diff_applied";
|
|
5218
|
+
applied: string[];
|
|
5219
|
+
correlation_id?: string | undefined;
|
|
5220
|
+
session_id?: string | undefined;
|
|
5221
|
+
}>;
|
|
5222
|
+
declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
|
|
5223
|
+
event_type: z.ZodLiteral<"event_ledger_truncated">;
|
|
5266
5224
|
byte_offset: z.ZodNumber;
|
|
5267
5225
|
byte_length: z.ZodNumber;
|
|
5268
5226
|
corrupted_path: z.ZodString;
|
|
@@ -5326,6 +5284,46 @@ declare const mcpConfigMigratedEventSchema: z.ZodObject<{
|
|
|
5326
5284
|
correlation_id?: string | undefined;
|
|
5327
5285
|
session_id?: string | undefined;
|
|
5328
5286
|
}>;
|
|
5287
|
+
declare const bootstrapMarkerMigratedEventSchema: z.ZodObject<{
|
|
5288
|
+
event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
|
|
5289
|
+
path: z.ZodString;
|
|
5290
|
+
migrated_count: z.ZodNumber;
|
|
5291
|
+
legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
|
|
5292
|
+
new_marker: z.ZodLiteral<"fabric:bootstrap">;
|
|
5293
|
+
timestamp: z.ZodString;
|
|
5294
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5295
|
+
id: z.ZodString;
|
|
5296
|
+
ts: z.ZodNumber;
|
|
5297
|
+
schema_version: z.ZodLiteral<1>;
|
|
5298
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5299
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5300
|
+
}, "strip", z.ZodTypeAny, {
|
|
5301
|
+
path: string;
|
|
5302
|
+
id: string;
|
|
5303
|
+
ts: number;
|
|
5304
|
+
schema_version: 1;
|
|
5305
|
+
kind: "fabric-event";
|
|
5306
|
+
event_type: "bootstrap_marker_migrated";
|
|
5307
|
+
migrated_count: number;
|
|
5308
|
+
legacy_marker: "fabric:knowledge-base";
|
|
5309
|
+
new_marker: "fabric:bootstrap";
|
|
5310
|
+
timestamp: string;
|
|
5311
|
+
correlation_id?: string | undefined;
|
|
5312
|
+
session_id?: string | undefined;
|
|
5313
|
+
}, {
|
|
5314
|
+
path: string;
|
|
5315
|
+
id: string;
|
|
5316
|
+
ts: number;
|
|
5317
|
+
schema_version: 1;
|
|
5318
|
+
kind: "fabric-event";
|
|
5319
|
+
event_type: "bootstrap_marker_migrated";
|
|
5320
|
+
migrated_count: number;
|
|
5321
|
+
legacy_marker: "fabric:knowledge-base";
|
|
5322
|
+
new_marker: "fabric:bootstrap";
|
|
5323
|
+
timestamp: string;
|
|
5324
|
+
correlation_id?: string | undefined;
|
|
5325
|
+
session_id?: string | undefined;
|
|
5326
|
+
}>;
|
|
5329
5327
|
declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
5330
5328
|
event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
|
|
5331
5329
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
@@ -5364,8 +5362,9 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
5364
5362
|
event_type: z.ZodLiteral<"meta_reconciled">;
|
|
5365
5363
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
5366
5364
|
duration_ms: z.ZodNumber;
|
|
5367
|
-
trigger: z.ZodEnum<["doctor", "manual"]>;
|
|
5365
|
+
trigger: z.ZodEnum<["doctor", "manual", "auto-heal-description", "auto-heal-after-drift", "post-approve", "post-modify"]>;
|
|
5368
5366
|
source: z.ZodLiteral<"reconcileKnowledge">;
|
|
5367
|
+
force_write_reason: z.ZodOptional<z.ZodEnum<["revision_drift"]>>;
|
|
5369
5368
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5370
5369
|
id: z.ZodString;
|
|
5371
5370
|
ts: z.ZodNumber;
|
|
@@ -5381,9 +5380,10 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
5381
5380
|
event_type: "meta_reconciled";
|
|
5382
5381
|
reconciled_files: string[];
|
|
5383
5382
|
duration_ms: number;
|
|
5384
|
-
trigger: "manual" | "doctor";
|
|
5383
|
+
trigger: "manual" | "doctor" | "auto-heal-description" | "auto-heal-after-drift" | "post-approve" | "post-modify";
|
|
5385
5384
|
correlation_id?: string | undefined;
|
|
5386
5385
|
session_id?: string | undefined;
|
|
5386
|
+
force_write_reason?: "revision_drift" | undefined;
|
|
5387
5387
|
}, {
|
|
5388
5388
|
id: string;
|
|
5389
5389
|
source: "reconcileKnowledge";
|
|
@@ -5393,9 +5393,10 @@ declare const metaReconciledEventSchema: z.ZodObject<{
|
|
|
5393
5393
|
event_type: "meta_reconciled";
|
|
5394
5394
|
reconciled_files: string[];
|
|
5395
5395
|
duration_ms: number;
|
|
5396
|
-
trigger: "manual" | "doctor";
|
|
5396
|
+
trigger: "manual" | "doctor" | "auto-heal-description" | "auto-heal-after-drift" | "post-approve" | "post-modify";
|
|
5397
5397
|
correlation_id?: string | undefined;
|
|
5398
5398
|
session_id?: string | undefined;
|
|
5399
|
+
force_write_reason?: "revision_drift" | undefined;
|
|
5399
5400
|
}>;
|
|
5400
5401
|
declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
5401
5402
|
event_type: z.ZodLiteral<"claude_skill_path_migrated">;
|
|
@@ -5494,7 +5495,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
|
|
|
5494
5495
|
event_type: z.ZodLiteral<"init_scan_completed">;
|
|
5495
5496
|
written_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
5496
5497
|
duration_ms: z.ZodNumber;
|
|
5497
|
-
source: z.ZodOptional<z.ZodEnum<["init", "scan", "doctor_fix"]>>;
|
|
5498
|
+
source: z.ZodOptional<z.ZodEnum<["init", "scan", "doctor_fix", "doctor-rescan"]>>;
|
|
5498
5499
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5499
5500
|
id: z.ZodString;
|
|
5500
5501
|
ts: z.ZodNumber;
|
|
@@ -5511,7 +5512,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
|
|
|
5511
5512
|
written_stable_ids: string[];
|
|
5512
5513
|
correlation_id?: string | undefined;
|
|
5513
5514
|
session_id?: string | undefined;
|
|
5514
|
-
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
5515
|
+
source?: "doctor_fix" | "init" | "scan" | "doctor-rescan" | undefined;
|
|
5515
5516
|
}, {
|
|
5516
5517
|
id: string;
|
|
5517
5518
|
ts: number;
|
|
@@ -5522,7 +5523,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
|
|
|
5522
5523
|
written_stable_ids: string[];
|
|
5523
5524
|
correlation_id?: string | undefined;
|
|
5524
5525
|
session_id?: string | undefined;
|
|
5525
|
-
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
5526
|
+
source?: "doctor_fix" | "init" | "scan" | "doctor-rescan" | undefined;
|
|
5526
5527
|
}>;
|
|
5527
5528
|
declare const knowledgeProposedEventSchema: z.ZodObject<{
|
|
5528
5529
|
event_type: z.ZodLiteral<"knowledge_proposed">;
|
|
@@ -5667,6 +5668,7 @@ declare const knowledgeLayerChangedEventSchema: z.ZodObject<{
|
|
|
5667
5668
|
reason: z.ZodOptional<z.ZodString>;
|
|
5668
5669
|
from_layer: z.ZodEnum<["team", "personal"]>;
|
|
5669
5670
|
to_layer: z.ZodEnum<["team", "personal"]>;
|
|
5671
|
+
previous_stable_id: z.ZodOptional<z.ZodString>;
|
|
5670
5672
|
kind: z.ZodLiteral<"fabric-event">;
|
|
5671
5673
|
id: z.ZodString;
|
|
5672
5674
|
ts: z.ZodNumber;
|
|
@@ -5686,6 +5688,7 @@ declare const knowledgeLayerChangedEventSchema: z.ZodObject<{
|
|
|
5686
5688
|
correlation_id?: string | undefined;
|
|
5687
5689
|
session_id?: string | undefined;
|
|
5688
5690
|
reason?: string | undefined;
|
|
5691
|
+
previous_stable_id?: string | undefined;
|
|
5689
5692
|
}, {
|
|
5690
5693
|
id: string;
|
|
5691
5694
|
ts: number;
|
|
@@ -5699,6 +5702,44 @@ declare const knowledgeLayerChangedEventSchema: z.ZodObject<{
|
|
|
5699
5702
|
correlation_id?: string | undefined;
|
|
5700
5703
|
session_id?: string | undefined;
|
|
5701
5704
|
reason?: string | undefined;
|
|
5705
|
+
previous_stable_id?: string | undefined;
|
|
5706
|
+
}>;
|
|
5707
|
+
declare const knowledgeIdRedirectEventSchema: z.ZodObject<{
|
|
5708
|
+
event_type: z.ZodLiteral<"knowledge_id_redirect">;
|
|
5709
|
+
timestamp: z.ZodString;
|
|
5710
|
+
previous_stable_id: z.ZodString;
|
|
5711
|
+
new_stable_id: z.ZodString;
|
|
5712
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5713
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5714
|
+
id: z.ZodString;
|
|
5715
|
+
ts: z.ZodNumber;
|
|
5716
|
+
schema_version: z.ZodLiteral<1>;
|
|
5717
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5718
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5719
|
+
}, "strip", z.ZodTypeAny, {
|
|
5720
|
+
id: string;
|
|
5721
|
+
new_stable_id: string;
|
|
5722
|
+
ts: number;
|
|
5723
|
+
schema_version: 1;
|
|
5724
|
+
kind: "fabric-event";
|
|
5725
|
+
event_type: "knowledge_id_redirect";
|
|
5726
|
+
timestamp: string;
|
|
5727
|
+
previous_stable_id: string;
|
|
5728
|
+
correlation_id?: string | undefined;
|
|
5729
|
+
session_id?: string | undefined;
|
|
5730
|
+
reason?: string | undefined;
|
|
5731
|
+
}, {
|
|
5732
|
+
id: string;
|
|
5733
|
+
new_stable_id: string;
|
|
5734
|
+
ts: number;
|
|
5735
|
+
schema_version: 1;
|
|
5736
|
+
kind: "fabric-event";
|
|
5737
|
+
event_type: "knowledge_id_redirect";
|
|
5738
|
+
timestamp: string;
|
|
5739
|
+
previous_stable_id: string;
|
|
5740
|
+
correlation_id?: string | undefined;
|
|
5741
|
+
session_id?: string | undefined;
|
|
5742
|
+
reason?: string | undefined;
|
|
5702
5743
|
}>;
|
|
5703
5744
|
declare const knowledgeSlugRenamedEventSchema: z.ZodObject<{
|
|
5704
5745
|
event_type: z.ZodLiteral<"knowledge_slug_renamed">;
|
|
@@ -5842,6 +5883,46 @@ declare const knowledgeArchiveAttemptedEventSchema: z.ZodObject<{
|
|
|
5842
5883
|
session_id?: string | undefined;
|
|
5843
5884
|
reason?: string | undefined;
|
|
5844
5885
|
}>;
|
|
5886
|
+
declare const knowledgeUnarchivedEventSchema: z.ZodObject<{
|
|
5887
|
+
event_type: z.ZodLiteral<"knowledge_unarchived">;
|
|
5888
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
5889
|
+
timestamp: z.ZodString;
|
|
5890
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5891
|
+
archive_path: z.ZodOptional<z.ZodString>;
|
|
5892
|
+
restored_to: z.ZodOptional<z.ZodString>;
|
|
5893
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
5894
|
+
id: z.ZodString;
|
|
5895
|
+
ts: z.ZodNumber;
|
|
5896
|
+
schema_version: z.ZodLiteral<1>;
|
|
5897
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
5898
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
5899
|
+
}, "strip", z.ZodTypeAny, {
|
|
5900
|
+
id: string;
|
|
5901
|
+
ts: number;
|
|
5902
|
+
schema_version: 1;
|
|
5903
|
+
kind: "fabric-event";
|
|
5904
|
+
event_type: "knowledge_unarchived";
|
|
5905
|
+
timestamp: string;
|
|
5906
|
+
stable_id?: string | undefined;
|
|
5907
|
+
correlation_id?: string | undefined;
|
|
5908
|
+
session_id?: string | undefined;
|
|
5909
|
+
reason?: string | undefined;
|
|
5910
|
+
archive_path?: string | undefined;
|
|
5911
|
+
restored_to?: string | undefined;
|
|
5912
|
+
}, {
|
|
5913
|
+
id: string;
|
|
5914
|
+
ts: number;
|
|
5915
|
+
schema_version: 1;
|
|
5916
|
+
kind: "fabric-event";
|
|
5917
|
+
event_type: "knowledge_unarchived";
|
|
5918
|
+
timestamp: string;
|
|
5919
|
+
stable_id?: string | undefined;
|
|
5920
|
+
correlation_id?: string | undefined;
|
|
5921
|
+
session_id?: string | undefined;
|
|
5922
|
+
reason?: string | undefined;
|
|
5923
|
+
archive_path?: string | undefined;
|
|
5924
|
+
restored_to?: string | undefined;
|
|
5925
|
+
}>;
|
|
5845
5926
|
declare const knowledgeDeferredEventSchema: z.ZodObject<{
|
|
5846
5927
|
event_type: z.ZodLiteral<"knowledge_deferred">;
|
|
5847
5928
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
@@ -5989,7 +6070,7 @@ declare const knowledgeScopeDegradedEventSchema: z.ZodObject<{
|
|
|
5989
6070
|
}>;
|
|
5990
6071
|
declare const doctorRunEventSchema: z.ZodObject<{
|
|
5991
6072
|
event_type: z.ZodLiteral<"doctor_run">;
|
|
5992
|
-
mode: z.ZodEnum<["lint", "
|
|
6073
|
+
mode: z.ZodEnum<["lint", "fix-knowledge"]>;
|
|
5993
6074
|
issues: z.ZodNumber;
|
|
5994
6075
|
mutations: z.ZodOptional<z.ZodNumber>;
|
|
5995
6076
|
timestamp: z.ZodString;
|
|
@@ -6007,7 +6088,7 @@ declare const doctorRunEventSchema: z.ZodObject<{
|
|
|
6007
6088
|
kind: "fabric-event";
|
|
6008
6089
|
event_type: "doctor_run";
|
|
6009
6090
|
timestamp: string;
|
|
6010
|
-
mode: "lint" | "
|
|
6091
|
+
mode: "lint" | "fix-knowledge";
|
|
6011
6092
|
correlation_id?: string | undefined;
|
|
6012
6093
|
session_id?: string | undefined;
|
|
6013
6094
|
mutations?: number | undefined;
|
|
@@ -6019,7 +6100,7 @@ declare const doctorRunEventSchema: z.ZodObject<{
|
|
|
6019
6100
|
kind: "fabric-event";
|
|
6020
6101
|
event_type: "doctor_run";
|
|
6021
6102
|
timestamp: string;
|
|
6022
|
-
mode: "lint" | "
|
|
6103
|
+
mode: "lint" | "fix-knowledge";
|
|
6023
6104
|
correlation_id?: string | undefined;
|
|
6024
6105
|
session_id?: string | undefined;
|
|
6025
6106
|
mutations?: number | undefined;
|
|
@@ -6055,6 +6136,40 @@ declare const knowledgePathDangledEventSchema: z.ZodObject<{
|
|
|
6055
6136
|
correlation_id?: string | undefined;
|
|
6056
6137
|
session_id?: string | undefined;
|
|
6057
6138
|
}>;
|
|
6139
|
+
declare const relevanceMigrationRunEventSchema: z.ZodObject<{
|
|
6140
|
+
event_type: z.ZodLiteral<"relevance_migration_run">;
|
|
6141
|
+
timestamp: z.ZodString;
|
|
6142
|
+
scanned_count: z.ZodNumber;
|
|
6143
|
+
touched_count: z.ZodNumber;
|
|
6144
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6145
|
+
id: z.ZodString;
|
|
6146
|
+
ts: z.ZodNumber;
|
|
6147
|
+
schema_version: z.ZodLiteral<1>;
|
|
6148
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6149
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6150
|
+
}, "strip", z.ZodTypeAny, {
|
|
6151
|
+
id: string;
|
|
6152
|
+
ts: number;
|
|
6153
|
+
schema_version: 1;
|
|
6154
|
+
kind: "fabric-event";
|
|
6155
|
+
event_type: "relevance_migration_run";
|
|
6156
|
+
timestamp: string;
|
|
6157
|
+
scanned_count: number;
|
|
6158
|
+
touched_count: number;
|
|
6159
|
+
correlation_id?: string | undefined;
|
|
6160
|
+
session_id?: string | undefined;
|
|
6161
|
+
}, {
|
|
6162
|
+
id: string;
|
|
6163
|
+
ts: number;
|
|
6164
|
+
schema_version: 1;
|
|
6165
|
+
kind: "fabric-event";
|
|
6166
|
+
event_type: "relevance_migration_run";
|
|
6167
|
+
timestamp: string;
|
|
6168
|
+
scanned_count: number;
|
|
6169
|
+
touched_count: number;
|
|
6170
|
+
correlation_id?: string | undefined;
|
|
6171
|
+
session_id?: string | undefined;
|
|
6172
|
+
}>;
|
|
6058
6173
|
declare const pendingAutoArchivedEventSchema: z.ZodObject<{
|
|
6059
6174
|
event_type: z.ZodLiteral<"pending_auto_archived">;
|
|
6060
6175
|
pending_path: z.ZodString;
|
|
@@ -6067,8 +6182,8 @@ declare const pendingAutoArchivedEventSchema: z.ZodObject<{
|
|
|
6067
6182
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6068
6183
|
session_id: z.ZodOptional<z.ZodString>;
|
|
6069
6184
|
}, "strip", z.ZodTypeAny, {
|
|
6070
|
-
id: string;
|
|
6071
6185
|
pending_path: string;
|
|
6186
|
+
id: string;
|
|
6072
6187
|
reason: string;
|
|
6073
6188
|
ts: number;
|
|
6074
6189
|
schema_version: 1;
|
|
@@ -6078,8 +6193,8 @@ declare const pendingAutoArchivedEventSchema: z.ZodObject<{
|
|
|
6078
6193
|
correlation_id?: string | undefined;
|
|
6079
6194
|
session_id?: string | undefined;
|
|
6080
6195
|
}, {
|
|
6081
|
-
id: string;
|
|
6082
6196
|
pending_path: string;
|
|
6197
|
+
id: string;
|
|
6083
6198
|
reason: string;
|
|
6084
6199
|
ts: number;
|
|
6085
6200
|
schema_version: 1;
|
|
@@ -6089,17 +6204,40 @@ declare const pendingAutoArchivedEventSchema: z.ZodObject<{
|
|
|
6089
6204
|
correlation_id?: string | undefined;
|
|
6090
6205
|
session_id?: string | undefined;
|
|
6091
6206
|
}>;
|
|
6092
|
-
declare const
|
|
6093
|
-
event_type: z.ZodLiteral<"
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6207
|
+
declare const assistantTurnObservedEventSchema: z.ZodObject<{
|
|
6208
|
+
event_type: z.ZodLiteral<"assistant_turn_observed">;
|
|
6209
|
+
kb_line_raw: z.ZodNullable<z.ZodString>;
|
|
6210
|
+
cite_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6211
|
+
cite_tags: z.ZodDefault<z.ZodArray<z.ZodEnum<["planned", "recalled", "chained-from", "dismissed", "none"]>, "many">>;
|
|
6212
|
+
cite_commitments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6213
|
+
operators: z.ZodArray<z.ZodObject<{
|
|
6214
|
+
kind: z.ZodEnum<["edit", "not_edit", "require", "forbid"]>;
|
|
6215
|
+
target: z.ZodString;
|
|
6216
|
+
}, "strip", z.ZodTypeAny, {
|
|
6217
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
6218
|
+
target: string;
|
|
6219
|
+
}, {
|
|
6220
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
6221
|
+
target: string;
|
|
6222
|
+
}>, "many">;
|
|
6223
|
+
skip_reason: z.ZodNullable<z.ZodString>;
|
|
6224
|
+
}, "strip", z.ZodTypeAny, {
|
|
6225
|
+
operators: {
|
|
6226
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
6227
|
+
target: string;
|
|
6228
|
+
}[];
|
|
6229
|
+
skip_reason: string | null;
|
|
6230
|
+
}, {
|
|
6231
|
+
operators: {
|
|
6232
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
6233
|
+
target: string;
|
|
6234
|
+
}[];
|
|
6235
|
+
skip_reason: string | null;
|
|
6236
|
+
}>, "many">>;
|
|
6237
|
+
client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
|
|
6238
|
+
turn_id: z.ZodString;
|
|
6239
|
+
envelope_index: z.ZodOptional<z.ZodNumber>;
|
|
6240
|
+
timestamp: z.ZodString;
|
|
6103
6241
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6104
6242
|
id: z.ZodString;
|
|
6105
6243
|
ts: z.ZodNumber;
|
|
@@ -6108,49 +6246,53 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6108
6246
|
session_id: z.ZodOptional<z.ZodString>;
|
|
6109
6247
|
}, "strip", z.ZodTypeAny, {
|
|
6110
6248
|
id: string;
|
|
6111
|
-
target_paths: string[];
|
|
6112
6249
|
ts: number;
|
|
6113
6250
|
schema_version: 1;
|
|
6114
6251
|
kind: "fabric-event";
|
|
6115
|
-
event_type: "
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6252
|
+
event_type: "assistant_turn_observed";
|
|
6253
|
+
timestamp: string;
|
|
6254
|
+
kb_line_raw: string | null;
|
|
6255
|
+
cite_ids: string[];
|
|
6256
|
+
cite_tags: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[];
|
|
6257
|
+
cite_commitments: {
|
|
6258
|
+
operators: {
|
|
6259
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
6260
|
+
target: string;
|
|
6261
|
+
}[];
|
|
6262
|
+
skip_reason: string | null;
|
|
6263
|
+
}[];
|
|
6264
|
+
turn_id: string;
|
|
6122
6265
|
correlation_id?: string | undefined;
|
|
6123
6266
|
session_id?: string | undefined;
|
|
6124
|
-
|
|
6125
|
-
|
|
6267
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
6268
|
+
envelope_index?: number | undefined;
|
|
6126
6269
|
}, {
|
|
6127
6270
|
id: string;
|
|
6128
|
-
target_paths: string[];
|
|
6129
6271
|
ts: number;
|
|
6130
6272
|
schema_version: 1;
|
|
6131
6273
|
kind: "fabric-event";
|
|
6132
|
-
event_type: "
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
known_tech?: string[] | undefined;
|
|
6137
|
-
intent?: string | undefined;
|
|
6138
|
-
client_hash?: string | undefined;
|
|
6274
|
+
event_type: "assistant_turn_observed";
|
|
6275
|
+
timestamp: string;
|
|
6276
|
+
kb_line_raw: string | null;
|
|
6277
|
+
turn_id: string;
|
|
6139
6278
|
correlation_id?: string | undefined;
|
|
6140
6279
|
session_id?: string | undefined;
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6280
|
+
cite_ids?: string[] | undefined;
|
|
6281
|
+
cite_tags?: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[] | undefined;
|
|
6282
|
+
cite_commitments?: {
|
|
6283
|
+
operators: {
|
|
6284
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
6285
|
+
target: string;
|
|
6286
|
+
}[];
|
|
6287
|
+
skip_reason: string | null;
|
|
6288
|
+
}[] | undefined;
|
|
6289
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
6290
|
+
envelope_index?: number | undefined;
|
|
6291
|
+
}>;
|
|
6292
|
+
declare const citePolicyActivatedEventSchema: z.ZodObject<{
|
|
6293
|
+
event_type: z.ZodLiteral<"cite_policy_activated">;
|
|
6294
|
+
policy_version: z.ZodString;
|
|
6295
|
+
timestamp: z.ZodString;
|
|
6154
6296
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6155
6297
|
id: z.ZodString;
|
|
6156
6298
|
ts: z.ZodNumber;
|
|
@@ -6159,46 +6301,27 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6159
6301
|
session_id: z.ZodOptional<z.ZodString>;
|
|
6160
6302
|
}, "strip", z.ZodTypeAny, {
|
|
6161
6303
|
id: string;
|
|
6162
|
-
target_paths: string[];
|
|
6163
|
-
selection_token: string;
|
|
6164
|
-
ai_selected_stable_ids: string[];
|
|
6165
|
-
ai_selection_reasons: Record<string, string>;
|
|
6166
6304
|
ts: number;
|
|
6167
6305
|
schema_version: 1;
|
|
6168
6306
|
kind: "fabric-event";
|
|
6169
|
-
event_type: "
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
final_stable_ids: string[];
|
|
6173
|
-
rejected_stable_ids: string[];
|
|
6174
|
-
ignored_stable_ids: string[];
|
|
6307
|
+
event_type: "cite_policy_activated";
|
|
6308
|
+
timestamp: string;
|
|
6309
|
+
policy_version: string;
|
|
6175
6310
|
correlation_id?: string | undefined;
|
|
6176
6311
|
session_id?: string | undefined;
|
|
6177
6312
|
}, {
|
|
6178
6313
|
id: string;
|
|
6179
|
-
target_paths: string[];
|
|
6180
|
-
selection_token: string;
|
|
6181
|
-
ai_selected_stable_ids: string[];
|
|
6182
|
-
ai_selection_reasons: Record<string, string>;
|
|
6183
6314
|
ts: number;
|
|
6184
6315
|
schema_version: 1;
|
|
6185
6316
|
kind: "fabric-event";
|
|
6186
|
-
event_type: "
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
final_stable_ids: string[];
|
|
6190
|
-
rejected_stable_ids: string[];
|
|
6191
|
-
ignored_stable_ids: string[];
|
|
6317
|
+
event_type: "cite_policy_activated";
|
|
6318
|
+
timestamp: string;
|
|
6319
|
+
policy_version: string;
|
|
6192
6320
|
correlation_id?: string | undefined;
|
|
6193
6321
|
session_id?: string | undefined;
|
|
6194
|
-
}
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6198
|
-
requested_sections: z.ZodArray<z.ZodString, "many">;
|
|
6199
|
-
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6200
|
-
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6201
|
-
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
6322
|
+
}>;
|
|
6323
|
+
declare const citeContractPolicyActivatedEventSchema: z.ZodObject<{
|
|
6324
|
+
event_type: z.ZodLiteral<"cite_contract_policy_activated">;
|
|
6202
6325
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6203
6326
|
id: z.ZodString;
|
|
6204
6327
|
ts: z.ZodNumber;
|
|
@@ -6207,46 +6330,27 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6207
6330
|
session_id: z.ZodOptional<z.ZodString>;
|
|
6208
6331
|
}, "strip", z.ZodTypeAny, {
|
|
6209
6332
|
id: string;
|
|
6210
|
-
selection_token: string;
|
|
6211
|
-
ai_selected_stable_ids: string[];
|
|
6212
6333
|
ts: number;
|
|
6213
6334
|
schema_version: 1;
|
|
6214
6335
|
kind: "fabric-event";
|
|
6215
|
-
event_type: "
|
|
6216
|
-
final_stable_ids: string[];
|
|
6217
|
-
requested_sections: string[];
|
|
6336
|
+
event_type: "cite_contract_policy_activated";
|
|
6218
6337
|
correlation_id?: string | undefined;
|
|
6219
6338
|
session_id?: string | undefined;
|
|
6220
|
-
target_paths?: string[] | undefined;
|
|
6221
|
-
diagnostics?: unknown[] | undefined;
|
|
6222
6339
|
}, {
|
|
6223
6340
|
id: string;
|
|
6224
|
-
selection_token: string;
|
|
6225
|
-
ai_selected_stable_ids: string[];
|
|
6226
6341
|
ts: number;
|
|
6227
6342
|
schema_version: 1;
|
|
6228
6343
|
kind: "fabric-event";
|
|
6229
|
-
event_type: "
|
|
6230
|
-
final_stable_ids: string[];
|
|
6231
|
-
requested_sections: string[];
|
|
6344
|
+
event_type: "cite_contract_policy_activated";
|
|
6232
6345
|
correlation_id?: string | undefined;
|
|
6233
6346
|
session_id?: string | undefined;
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
ledger_entry_id: z.ZodString;
|
|
6242
|
-
ledger_source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
|
|
6243
|
-
commit_sha: z.ZodOptional<z.ZodString>;
|
|
6244
|
-
parent_sha: z.ZodOptional<z.ZodString>;
|
|
6245
|
-
parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
|
|
6246
|
-
diff_stat: z.ZodOptional<z.ZodString>;
|
|
6247
|
-
annotation: z.ZodOptional<z.ZodString>;
|
|
6248
|
-
matched_rule_context_ts: z.ZodNullable<z.ZodNumber>;
|
|
6249
|
-
window_ms: z.ZodNumber;
|
|
6347
|
+
}>;
|
|
6348
|
+
declare const eventsRotatedEventSchema: z.ZodObject<{
|
|
6349
|
+
event_type: z.ZodLiteral<"events_rotated">;
|
|
6350
|
+
cutoff_ts: z.ZodString;
|
|
6351
|
+
archived_count: z.ZodNumber;
|
|
6352
|
+
kept_count: z.ZodNumber;
|
|
6353
|
+
archive_path: z.ZodString;
|
|
6250
6354
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6251
6355
|
id: z.ZodString;
|
|
6252
6356
|
ts: z.ZodNumber;
|
|
@@ -6254,11 +6358,345 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6254
6358
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6255
6359
|
session_id: z.ZodOptional<z.ZodString>;
|
|
6256
6360
|
}, "strip", z.ZodTypeAny, {
|
|
6257
|
-
path: string;
|
|
6258
6361
|
id: string;
|
|
6259
|
-
intent: string;
|
|
6260
6362
|
ts: number;
|
|
6261
|
-
|
|
6363
|
+
schema_version: 1;
|
|
6364
|
+
kind: "fabric-event";
|
|
6365
|
+
event_type: "events_rotated";
|
|
6366
|
+
archive_path: string;
|
|
6367
|
+
cutoff_ts: string;
|
|
6368
|
+
archived_count: number;
|
|
6369
|
+
kept_count: number;
|
|
6370
|
+
correlation_id?: string | undefined;
|
|
6371
|
+
session_id?: string | undefined;
|
|
6372
|
+
}, {
|
|
6373
|
+
id: string;
|
|
6374
|
+
ts: number;
|
|
6375
|
+
schema_version: 1;
|
|
6376
|
+
kind: "fabric-event";
|
|
6377
|
+
event_type: "events_rotated";
|
|
6378
|
+
archive_path: string;
|
|
6379
|
+
cutoff_ts: string;
|
|
6380
|
+
archived_count: number;
|
|
6381
|
+
kept_count: number;
|
|
6382
|
+
correlation_id?: string | undefined;
|
|
6383
|
+
session_id?: string | undefined;
|
|
6384
|
+
}>;
|
|
6385
|
+
declare const knowledgeMetaAutoHealedEventSchema: z.ZodObject<{
|
|
6386
|
+
event_type: z.ZodLiteral<"knowledge_meta_auto_healed">;
|
|
6387
|
+
previous_revision_hash: z.ZodString;
|
|
6388
|
+
revision_hash: z.ZodString;
|
|
6389
|
+
trigger: z.ZodLiteral<"read">;
|
|
6390
|
+
caller: z.ZodOptional<z.ZodEnum<["planContext", "getKnowledgeSections", "getKnowledge", "extractKnowledge"]>>;
|
|
6391
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6392
|
+
id: z.ZodString;
|
|
6393
|
+
ts: z.ZodNumber;
|
|
6394
|
+
schema_version: z.ZodLiteral<1>;
|
|
6395
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6396
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6397
|
+
}, "strip", z.ZodTypeAny, {
|
|
6398
|
+
id: string;
|
|
6399
|
+
revision_hash: string;
|
|
6400
|
+
previous_revision_hash: string;
|
|
6401
|
+
ts: number;
|
|
6402
|
+
schema_version: 1;
|
|
6403
|
+
kind: "fabric-event";
|
|
6404
|
+
event_type: "knowledge_meta_auto_healed";
|
|
6405
|
+
trigger: "read";
|
|
6406
|
+
correlation_id?: string | undefined;
|
|
6407
|
+
session_id?: string | undefined;
|
|
6408
|
+
caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
|
|
6409
|
+
}, {
|
|
6410
|
+
id: string;
|
|
6411
|
+
revision_hash: string;
|
|
6412
|
+
previous_revision_hash: string;
|
|
6413
|
+
ts: number;
|
|
6414
|
+
schema_version: 1;
|
|
6415
|
+
kind: "fabric-event";
|
|
6416
|
+
event_type: "knowledge_meta_auto_healed";
|
|
6417
|
+
trigger: "read";
|
|
6418
|
+
correlation_id?: string | undefined;
|
|
6419
|
+
session_id?: string | undefined;
|
|
6420
|
+
caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
|
|
6421
|
+
}>;
|
|
6422
|
+
declare const serveLockClearedEventSchema: z.ZodObject<{
|
|
6423
|
+
event_type: z.ZodLiteral<"serve_lock_cleared">;
|
|
6424
|
+
pid: z.ZodNumber;
|
|
6425
|
+
age_ms: z.ZodNumber;
|
|
6426
|
+
timestamp: z.ZodString;
|
|
6427
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6428
|
+
id: z.ZodString;
|
|
6429
|
+
ts: z.ZodNumber;
|
|
6430
|
+
schema_version: z.ZodLiteral<1>;
|
|
6431
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6432
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6433
|
+
}, "strip", z.ZodTypeAny, {
|
|
6434
|
+
id: string;
|
|
6435
|
+
ts: number;
|
|
6436
|
+
schema_version: 1;
|
|
6437
|
+
kind: "fabric-event";
|
|
6438
|
+
event_type: "serve_lock_cleared";
|
|
6439
|
+
timestamp: string;
|
|
6440
|
+
pid: number;
|
|
6441
|
+
age_ms: number;
|
|
6442
|
+
correlation_id?: string | undefined;
|
|
6443
|
+
session_id?: string | undefined;
|
|
6444
|
+
}, {
|
|
6445
|
+
id: string;
|
|
6446
|
+
ts: number;
|
|
6447
|
+
schema_version: 1;
|
|
6448
|
+
kind: "fabric-event";
|
|
6449
|
+
event_type: "serve_lock_cleared";
|
|
6450
|
+
timestamp: string;
|
|
6451
|
+
pid: number;
|
|
6452
|
+
age_ms: number;
|
|
6453
|
+
correlation_id?: string | undefined;
|
|
6454
|
+
session_id?: string | undefined;
|
|
6455
|
+
}>;
|
|
6456
|
+
declare const knowledgeEnrichedEventSchema: z.ZodObject<{
|
|
6457
|
+
event_type: z.ZodLiteral<"knowledge_enriched">;
|
|
6458
|
+
path: z.ZodString;
|
|
6459
|
+
added_fields: z.ZodArray<z.ZodEnum<["intent_clues", "tech_stack", "impact", "must_read_if"]>, "many">;
|
|
6460
|
+
mode: z.ZodEnum<["auto", "preview", "readonly", "interactive"]>;
|
|
6461
|
+
timestamp: z.ZodString;
|
|
6462
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6463
|
+
id: z.ZodString;
|
|
6464
|
+
ts: z.ZodNumber;
|
|
6465
|
+
schema_version: z.ZodLiteral<1>;
|
|
6466
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6467
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6468
|
+
}, "strip", z.ZodTypeAny, {
|
|
6469
|
+
path: string;
|
|
6470
|
+
id: string;
|
|
6471
|
+
ts: number;
|
|
6472
|
+
schema_version: 1;
|
|
6473
|
+
kind: "fabric-event";
|
|
6474
|
+
event_type: "knowledge_enriched";
|
|
6475
|
+
timestamp: string;
|
|
6476
|
+
mode: "auto" | "preview" | "readonly" | "interactive";
|
|
6477
|
+
added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
|
|
6478
|
+
correlation_id?: string | undefined;
|
|
6479
|
+
session_id?: string | undefined;
|
|
6480
|
+
}, {
|
|
6481
|
+
path: string;
|
|
6482
|
+
id: string;
|
|
6483
|
+
ts: number;
|
|
6484
|
+
schema_version: 1;
|
|
6485
|
+
kind: "fabric-event";
|
|
6486
|
+
event_type: "knowledge_enriched";
|
|
6487
|
+
timestamp: string;
|
|
6488
|
+
mode: "auto" | "preview" | "readonly" | "interactive";
|
|
6489
|
+
added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
|
|
6490
|
+
correlation_id?: string | undefined;
|
|
6491
|
+
session_id?: string | undefined;
|
|
6492
|
+
}>;
|
|
6493
|
+
declare const sessionArchiveAttemptedEventSchema: z.ZodObject<{
|
|
6494
|
+
event_type: z.ZodLiteral<"session_archive_attempted">;
|
|
6495
|
+
outcome: z.ZodEnum<["proposed", "viability_failed", "user_dismissed", "skipped_no_signal"]>;
|
|
6496
|
+
covered_through_ts: z.ZodNumber;
|
|
6497
|
+
candidates_proposed: z.ZodDefault<z.ZodNumber>;
|
|
6498
|
+
knowledge_proposed_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6499
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6500
|
+
id: z.ZodString;
|
|
6501
|
+
ts: z.ZodNumber;
|
|
6502
|
+
schema_version: z.ZodLiteral<1>;
|
|
6503
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6504
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6505
|
+
}, "strip", z.ZodTypeAny, {
|
|
6506
|
+
id: string;
|
|
6507
|
+
covered_through_ts: number;
|
|
6508
|
+
ts: number;
|
|
6509
|
+
schema_version: 1;
|
|
6510
|
+
kind: "fabric-event";
|
|
6511
|
+
event_type: "session_archive_attempted";
|
|
6512
|
+
outcome: "user_dismissed" | "proposed" | "viability_failed" | "skipped_no_signal";
|
|
6513
|
+
candidates_proposed: number;
|
|
6514
|
+
knowledge_proposed_ids: string[];
|
|
6515
|
+
correlation_id?: string | undefined;
|
|
6516
|
+
session_id?: string | undefined;
|
|
6517
|
+
}, {
|
|
6518
|
+
id: string;
|
|
6519
|
+
covered_through_ts: number;
|
|
6520
|
+
ts: number;
|
|
6521
|
+
schema_version: 1;
|
|
6522
|
+
kind: "fabric-event";
|
|
6523
|
+
event_type: "session_archive_attempted";
|
|
6524
|
+
outcome: "user_dismissed" | "proposed" | "viability_failed" | "skipped_no_signal";
|
|
6525
|
+
correlation_id?: string | undefined;
|
|
6526
|
+
session_id?: string | undefined;
|
|
6527
|
+
candidates_proposed?: number | undefined;
|
|
6528
|
+
knowledge_proposed_ids?: string[] | undefined;
|
|
6529
|
+
}>;
|
|
6530
|
+
declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
6531
|
+
event_type: z.ZodLiteral<"knowledge_context_planned">;
|
|
6532
|
+
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
6533
|
+
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6534
|
+
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6535
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6536
|
+
selection_token: z.ZodOptional<z.ZodString>;
|
|
6537
|
+
client_hash: z.ZodOptional<z.ZodString>;
|
|
6538
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
6539
|
+
known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6540
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
6541
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6542
|
+
id: z.ZodString;
|
|
6543
|
+
ts: z.ZodNumber;
|
|
6544
|
+
schema_version: z.ZodLiteral<1>;
|
|
6545
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6546
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6547
|
+
}, "strip", z.ZodTypeAny, {
|
|
6548
|
+
id: string;
|
|
6549
|
+
target_paths: string[];
|
|
6550
|
+
ts: number;
|
|
6551
|
+
schema_version: 1;
|
|
6552
|
+
kind: "fabric-event";
|
|
6553
|
+
event_type: "knowledge_context_planned";
|
|
6554
|
+
required_stable_ids: string[];
|
|
6555
|
+
ai_selectable_stable_ids: string[];
|
|
6556
|
+
final_stable_ids: string[];
|
|
6557
|
+
known_tech?: string[] | undefined;
|
|
6558
|
+
intent?: string | undefined;
|
|
6559
|
+
client_hash?: string | undefined;
|
|
6560
|
+
correlation_id?: string | undefined;
|
|
6561
|
+
session_id?: string | undefined;
|
|
6562
|
+
selection_token?: string | undefined;
|
|
6563
|
+
diagnostics?: unknown[] | undefined;
|
|
6564
|
+
}, {
|
|
6565
|
+
id: string;
|
|
6566
|
+
target_paths: string[];
|
|
6567
|
+
ts: number;
|
|
6568
|
+
schema_version: 1;
|
|
6569
|
+
kind: "fabric-event";
|
|
6570
|
+
event_type: "knowledge_context_planned";
|
|
6571
|
+
required_stable_ids: string[];
|
|
6572
|
+
ai_selectable_stable_ids: string[];
|
|
6573
|
+
final_stable_ids: string[];
|
|
6574
|
+
known_tech?: string[] | undefined;
|
|
6575
|
+
intent?: string | undefined;
|
|
6576
|
+
client_hash?: string | undefined;
|
|
6577
|
+
correlation_id?: string | undefined;
|
|
6578
|
+
session_id?: string | undefined;
|
|
6579
|
+
selection_token?: string | undefined;
|
|
6580
|
+
diagnostics?: unknown[] | undefined;
|
|
6581
|
+
}>, z.ZodObject<{
|
|
6582
|
+
event_type: z.ZodLiteral<"knowledge_selection">;
|
|
6583
|
+
selection_token: z.ZodString;
|
|
6584
|
+
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
6585
|
+
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6586
|
+
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6587
|
+
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6588
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6589
|
+
ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
6590
|
+
rejected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6591
|
+
ignored_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6592
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6593
|
+
id: z.ZodString;
|
|
6594
|
+
ts: z.ZodNumber;
|
|
6595
|
+
schema_version: z.ZodLiteral<1>;
|
|
6596
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6597
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6598
|
+
}, "strip", z.ZodTypeAny, {
|
|
6599
|
+
id: string;
|
|
6600
|
+
target_paths: string[];
|
|
6601
|
+
selection_token: string;
|
|
6602
|
+
ai_selected_stable_ids: string[];
|
|
6603
|
+
ai_selection_reasons: Record<string, string>;
|
|
6604
|
+
ts: number;
|
|
6605
|
+
schema_version: 1;
|
|
6606
|
+
kind: "fabric-event";
|
|
6607
|
+
event_type: "knowledge_selection";
|
|
6608
|
+
required_stable_ids: string[];
|
|
6609
|
+
ai_selectable_stable_ids: string[];
|
|
6610
|
+
final_stable_ids: string[];
|
|
6611
|
+
rejected_stable_ids: string[];
|
|
6612
|
+
ignored_stable_ids: string[];
|
|
6613
|
+
correlation_id?: string | undefined;
|
|
6614
|
+
session_id?: string | undefined;
|
|
6615
|
+
}, {
|
|
6616
|
+
id: string;
|
|
6617
|
+
target_paths: string[];
|
|
6618
|
+
selection_token: string;
|
|
6619
|
+
ai_selected_stable_ids: string[];
|
|
6620
|
+
ai_selection_reasons: Record<string, string>;
|
|
6621
|
+
ts: number;
|
|
6622
|
+
schema_version: 1;
|
|
6623
|
+
kind: "fabric-event";
|
|
6624
|
+
event_type: "knowledge_selection";
|
|
6625
|
+
required_stable_ids: string[];
|
|
6626
|
+
ai_selectable_stable_ids: string[];
|
|
6627
|
+
final_stable_ids: string[];
|
|
6628
|
+
rejected_stable_ids: string[];
|
|
6629
|
+
ignored_stable_ids: string[];
|
|
6630
|
+
correlation_id?: string | undefined;
|
|
6631
|
+
session_id?: string | undefined;
|
|
6632
|
+
}>, z.ZodObject<{
|
|
6633
|
+
event_type: z.ZodLiteral<"knowledge_sections_fetched">;
|
|
6634
|
+
selection_token: z.ZodString;
|
|
6635
|
+
target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6636
|
+
requested_sections: z.ZodArray<z.ZodString, "many">;
|
|
6637
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6638
|
+
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6639
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
6640
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6641
|
+
id: z.ZodString;
|
|
6642
|
+
ts: z.ZodNumber;
|
|
6643
|
+
schema_version: z.ZodLiteral<1>;
|
|
6644
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6645
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6646
|
+
}, "strip", z.ZodTypeAny, {
|
|
6647
|
+
id: string;
|
|
6648
|
+
selection_token: string;
|
|
6649
|
+
ai_selected_stable_ids: string[];
|
|
6650
|
+
ts: number;
|
|
6651
|
+
schema_version: 1;
|
|
6652
|
+
kind: "fabric-event";
|
|
6653
|
+
event_type: "knowledge_sections_fetched";
|
|
6654
|
+
final_stable_ids: string[];
|
|
6655
|
+
requested_sections: string[];
|
|
6656
|
+
correlation_id?: string | undefined;
|
|
6657
|
+
session_id?: string | undefined;
|
|
6658
|
+
target_paths?: string[] | undefined;
|
|
6659
|
+
diagnostics?: unknown[] | undefined;
|
|
6660
|
+
}, {
|
|
6661
|
+
id: string;
|
|
6662
|
+
selection_token: string;
|
|
6663
|
+
ai_selected_stable_ids: string[];
|
|
6664
|
+
ts: number;
|
|
6665
|
+
schema_version: 1;
|
|
6666
|
+
kind: "fabric-event";
|
|
6667
|
+
event_type: "knowledge_sections_fetched";
|
|
6668
|
+
final_stable_ids: string[];
|
|
6669
|
+
requested_sections: string[];
|
|
6670
|
+
correlation_id?: string | undefined;
|
|
6671
|
+
session_id?: string | undefined;
|
|
6672
|
+
target_paths?: string[] | undefined;
|
|
6673
|
+
diagnostics?: unknown[] | undefined;
|
|
6674
|
+
}>, z.ZodObject<{
|
|
6675
|
+
event_type: z.ZodLiteral<"edit_intent_checked">;
|
|
6676
|
+
path: z.ZodString;
|
|
6677
|
+
compliant: z.ZodBoolean;
|
|
6678
|
+
intent: z.ZodString;
|
|
6679
|
+
ledger_entry_id: z.ZodString;
|
|
6680
|
+
ledger_source: z.ZodOptional<z.ZodEnum<["ai", "human", "hook"]>>;
|
|
6681
|
+
commit_sha: z.ZodOptional<z.ZodString>;
|
|
6682
|
+
parent_sha: z.ZodOptional<z.ZodString>;
|
|
6683
|
+
parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
|
|
6684
|
+
diff_stat: z.ZodOptional<z.ZodString>;
|
|
6685
|
+
annotation: z.ZodOptional<z.ZodString>;
|
|
6686
|
+
matched_rule_context_ts: z.ZodNullable<z.ZodNumber>;
|
|
6687
|
+
window_ms: z.ZodNumber;
|
|
6688
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6689
|
+
id: z.ZodString;
|
|
6690
|
+
ts: z.ZodNumber;
|
|
6691
|
+
schema_version: z.ZodLiteral<1>;
|
|
6692
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6693
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6694
|
+
}, "strip", z.ZodTypeAny, {
|
|
6695
|
+
path: string;
|
|
6696
|
+
id: string;
|
|
6697
|
+
intent: string;
|
|
6698
|
+
ts: number;
|
|
6699
|
+
ledger_entry_id: string;
|
|
6262
6700
|
schema_version: 1;
|
|
6263
6701
|
kind: "fabric-event";
|
|
6264
6702
|
event_type: "edit_intent_checked";
|
|
@@ -6272,7 +6710,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6272
6710
|
parent_sha?: string | undefined;
|
|
6273
6711
|
parent_ledger_entry_id?: string | undefined;
|
|
6274
6712
|
diff_stat?: string | undefined;
|
|
6275
|
-
ledger_source?: "ai" | "human" | undefined;
|
|
6713
|
+
ledger_source?: "ai" | "human" | "hook" | undefined;
|
|
6276
6714
|
}, {
|
|
6277
6715
|
path: string;
|
|
6278
6716
|
id: string;
|
|
@@ -6292,7 +6730,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6292
6730
|
parent_sha?: string | undefined;
|
|
6293
6731
|
parent_ledger_entry_id?: string | undefined;
|
|
6294
6732
|
diff_stat?: string | undefined;
|
|
6295
|
-
ledger_source?: "ai" | "human" | undefined;
|
|
6733
|
+
ledger_source?: "ai" | "human" | "hook" | undefined;
|
|
6296
6734
|
}>, z.ZodObject<{
|
|
6297
6735
|
event_type: z.ZodLiteral<"knowledge_drift_detected">;
|
|
6298
6736
|
revision: z.ZodOptional<z.ZodString>;
|
|
@@ -6423,6 +6861,39 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6423
6861
|
rules_count: number;
|
|
6424
6862
|
correlation_id?: string | undefined;
|
|
6425
6863
|
session_id?: string | undefined;
|
|
6864
|
+
}>, z.ZodObject<{
|
|
6865
|
+
event_type: z.ZodLiteral<"install_diff_applied">;
|
|
6866
|
+
applied: z.ZodArray<z.ZodString, "many">;
|
|
6867
|
+
canonical: z.ZodArray<z.ZodString, "many">;
|
|
6868
|
+
drifted: z.ZodArray<z.ZodString, "many">;
|
|
6869
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6870
|
+
id: z.ZodString;
|
|
6871
|
+
ts: z.ZodNumber;
|
|
6872
|
+
schema_version: z.ZodLiteral<1>;
|
|
6873
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6874
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6875
|
+
}, "strip", z.ZodTypeAny, {
|
|
6876
|
+
canonical: string[];
|
|
6877
|
+
drifted: string[];
|
|
6878
|
+
id: string;
|
|
6879
|
+
ts: number;
|
|
6880
|
+
schema_version: 1;
|
|
6881
|
+
kind: "fabric-event";
|
|
6882
|
+
event_type: "install_diff_applied";
|
|
6883
|
+
applied: string[];
|
|
6884
|
+
correlation_id?: string | undefined;
|
|
6885
|
+
session_id?: string | undefined;
|
|
6886
|
+
}, {
|
|
6887
|
+
canonical: string[];
|
|
6888
|
+
drifted: string[];
|
|
6889
|
+
id: string;
|
|
6890
|
+
ts: number;
|
|
6891
|
+
schema_version: 1;
|
|
6892
|
+
kind: "fabric-event";
|
|
6893
|
+
event_type: "install_diff_applied";
|
|
6894
|
+
applied: string[];
|
|
6895
|
+
correlation_id?: string | undefined;
|
|
6896
|
+
session_id?: string | undefined;
|
|
6426
6897
|
}>, z.ZodObject<{
|
|
6427
6898
|
event_type: z.ZodLiteral<"event_ledger_truncated">;
|
|
6428
6899
|
byte_offset: z.ZodNumber;
|
|
@@ -6486,6 +6957,45 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6486
6957
|
removed_from: string;
|
|
6487
6958
|
correlation_id?: string | undefined;
|
|
6488
6959
|
session_id?: string | undefined;
|
|
6960
|
+
}>, z.ZodObject<{
|
|
6961
|
+
event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
|
|
6962
|
+
path: z.ZodString;
|
|
6963
|
+
migrated_count: z.ZodNumber;
|
|
6964
|
+
legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
|
|
6965
|
+
new_marker: z.ZodLiteral<"fabric:bootstrap">;
|
|
6966
|
+
timestamp: z.ZodString;
|
|
6967
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
6968
|
+
id: z.ZodString;
|
|
6969
|
+
ts: z.ZodNumber;
|
|
6970
|
+
schema_version: z.ZodLiteral<1>;
|
|
6971
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
6972
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
6973
|
+
}, "strip", z.ZodTypeAny, {
|
|
6974
|
+
path: string;
|
|
6975
|
+
id: string;
|
|
6976
|
+
ts: number;
|
|
6977
|
+
schema_version: 1;
|
|
6978
|
+
kind: "fabric-event";
|
|
6979
|
+
event_type: "bootstrap_marker_migrated";
|
|
6980
|
+
migrated_count: number;
|
|
6981
|
+
legacy_marker: "fabric:knowledge-base";
|
|
6982
|
+
new_marker: "fabric:bootstrap";
|
|
6983
|
+
timestamp: string;
|
|
6984
|
+
correlation_id?: string | undefined;
|
|
6985
|
+
session_id?: string | undefined;
|
|
6986
|
+
}, {
|
|
6987
|
+
path: string;
|
|
6988
|
+
id: string;
|
|
6989
|
+
ts: number;
|
|
6990
|
+
schema_version: 1;
|
|
6991
|
+
kind: "fabric-event";
|
|
6992
|
+
event_type: "bootstrap_marker_migrated";
|
|
6993
|
+
migrated_count: number;
|
|
6994
|
+
legacy_marker: "fabric:knowledge-base";
|
|
6995
|
+
new_marker: "fabric:bootstrap";
|
|
6996
|
+
timestamp: string;
|
|
6997
|
+
correlation_id?: string | undefined;
|
|
6998
|
+
session_id?: string | undefined;
|
|
6489
6999
|
}>, z.ZodObject<{
|
|
6490
7000
|
event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
|
|
6491
7001
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
@@ -6523,8 +7033,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6523
7033
|
event_type: z.ZodLiteral<"meta_reconciled">;
|
|
6524
7034
|
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
6525
7035
|
duration_ms: z.ZodNumber;
|
|
6526
|
-
trigger: z.ZodEnum<["doctor", "manual"]>;
|
|
7036
|
+
trigger: z.ZodEnum<["doctor", "manual", "auto-heal-description", "auto-heal-after-drift", "post-approve", "post-modify"]>;
|
|
6527
7037
|
source: z.ZodLiteral<"reconcileKnowledge">;
|
|
7038
|
+
force_write_reason: z.ZodOptional<z.ZodEnum<["revision_drift"]>>;
|
|
6528
7039
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6529
7040
|
id: z.ZodString;
|
|
6530
7041
|
ts: z.ZodNumber;
|
|
@@ -6540,9 +7051,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6540
7051
|
event_type: "meta_reconciled";
|
|
6541
7052
|
reconciled_files: string[];
|
|
6542
7053
|
duration_ms: number;
|
|
6543
|
-
trigger: "manual" | "doctor";
|
|
7054
|
+
trigger: "manual" | "doctor" | "auto-heal-description" | "auto-heal-after-drift" | "post-approve" | "post-modify";
|
|
6544
7055
|
correlation_id?: string | undefined;
|
|
6545
7056
|
session_id?: string | undefined;
|
|
7057
|
+
force_write_reason?: "revision_drift" | undefined;
|
|
6546
7058
|
}, {
|
|
6547
7059
|
id: string;
|
|
6548
7060
|
source: "reconcileKnowledge";
|
|
@@ -6552,9 +7064,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6552
7064
|
event_type: "meta_reconciled";
|
|
6553
7065
|
reconciled_files: string[];
|
|
6554
7066
|
duration_ms: number;
|
|
6555
|
-
trigger: "manual" | "doctor";
|
|
7067
|
+
trigger: "manual" | "doctor" | "auto-heal-description" | "auto-heal-after-drift" | "post-approve" | "post-modify";
|
|
6556
7068
|
correlation_id?: string | undefined;
|
|
6557
7069
|
session_id?: string | undefined;
|
|
7070
|
+
force_write_reason?: "revision_drift" | undefined;
|
|
6558
7071
|
}>, z.ZodObject<{
|
|
6559
7072
|
event_type: z.ZodLiteral<"claude_skill_path_migrated">;
|
|
6560
7073
|
from: z.ZodString;
|
|
@@ -6649,7 +7162,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6649
7162
|
event_type: z.ZodLiteral<"init_scan_completed">;
|
|
6650
7163
|
written_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
6651
7164
|
duration_ms: z.ZodNumber;
|
|
6652
|
-
source: z.ZodOptional<z.ZodEnum<["init", "scan", "doctor_fix"]>>;
|
|
7165
|
+
source: z.ZodOptional<z.ZodEnum<["init", "scan", "doctor_fix", "doctor-rescan"]>>;
|
|
6653
7166
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6654
7167
|
id: z.ZodString;
|
|
6655
7168
|
ts: z.ZodNumber;
|
|
@@ -6666,7 +7179,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6666
7179
|
written_stable_ids: string[];
|
|
6667
7180
|
correlation_id?: string | undefined;
|
|
6668
7181
|
session_id?: string | undefined;
|
|
6669
|
-
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
7182
|
+
source?: "doctor_fix" | "init" | "scan" | "doctor-rescan" | undefined;
|
|
6670
7183
|
}, {
|
|
6671
7184
|
id: string;
|
|
6672
7185
|
ts: number;
|
|
@@ -6677,7 +7190,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6677
7190
|
written_stable_ids: string[];
|
|
6678
7191
|
correlation_id?: string | undefined;
|
|
6679
7192
|
session_id?: string | undefined;
|
|
6680
|
-
source?: "doctor_fix" | "init" | "scan" | undefined;
|
|
7193
|
+
source?: "doctor_fix" | "init" | "scan" | "doctor-rescan" | undefined;
|
|
6681
7194
|
}>, z.ZodObject<{
|
|
6682
7195
|
event_type: z.ZodLiteral<"knowledge_proposed">;
|
|
6683
7196
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
@@ -6817,6 +7330,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6817
7330
|
reason: z.ZodOptional<z.ZodString>;
|
|
6818
7331
|
from_layer: z.ZodEnum<["team", "personal"]>;
|
|
6819
7332
|
to_layer: z.ZodEnum<["team", "personal"]>;
|
|
7333
|
+
previous_stable_id: z.ZodOptional<z.ZodString>;
|
|
6820
7334
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6821
7335
|
id: z.ZodString;
|
|
6822
7336
|
ts: z.ZodNumber;
|
|
@@ -6836,6 +7350,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6836
7350
|
correlation_id?: string | undefined;
|
|
6837
7351
|
session_id?: string | undefined;
|
|
6838
7352
|
reason?: string | undefined;
|
|
7353
|
+
previous_stable_id?: string | undefined;
|
|
6839
7354
|
}, {
|
|
6840
7355
|
id: string;
|
|
6841
7356
|
ts: number;
|
|
@@ -6849,6 +7364,43 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6849
7364
|
correlation_id?: string | undefined;
|
|
6850
7365
|
session_id?: string | undefined;
|
|
6851
7366
|
reason?: string | undefined;
|
|
7367
|
+
previous_stable_id?: string | undefined;
|
|
7368
|
+
}>, z.ZodObject<{
|
|
7369
|
+
event_type: z.ZodLiteral<"knowledge_id_redirect">;
|
|
7370
|
+
timestamp: z.ZodString;
|
|
7371
|
+
previous_stable_id: z.ZodString;
|
|
7372
|
+
new_stable_id: z.ZodString;
|
|
7373
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7374
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7375
|
+
id: z.ZodString;
|
|
7376
|
+
ts: z.ZodNumber;
|
|
7377
|
+
schema_version: z.ZodLiteral<1>;
|
|
7378
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7379
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7380
|
+
}, "strip", z.ZodTypeAny, {
|
|
7381
|
+
id: string;
|
|
7382
|
+
new_stable_id: string;
|
|
7383
|
+
ts: number;
|
|
7384
|
+
schema_version: 1;
|
|
7385
|
+
kind: "fabric-event";
|
|
7386
|
+
event_type: "knowledge_id_redirect";
|
|
7387
|
+
timestamp: string;
|
|
7388
|
+
previous_stable_id: string;
|
|
7389
|
+
correlation_id?: string | undefined;
|
|
7390
|
+
session_id?: string | undefined;
|
|
7391
|
+
reason?: string | undefined;
|
|
7392
|
+
}, {
|
|
7393
|
+
id: string;
|
|
7394
|
+
new_stable_id: string;
|
|
7395
|
+
ts: number;
|
|
7396
|
+
schema_version: 1;
|
|
7397
|
+
kind: "fabric-event";
|
|
7398
|
+
event_type: "knowledge_id_redirect";
|
|
7399
|
+
timestamp: string;
|
|
7400
|
+
previous_stable_id: string;
|
|
7401
|
+
correlation_id?: string | undefined;
|
|
7402
|
+
session_id?: string | undefined;
|
|
7403
|
+
reason?: string | undefined;
|
|
6852
7404
|
}>, z.ZodObject<{
|
|
6853
7405
|
event_type: z.ZodLiteral<"knowledge_slug_renamed">;
|
|
6854
7406
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
@@ -6867,10 +7419,45 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6867
7419
|
ts: number;
|
|
6868
7420
|
schema_version: 1;
|
|
6869
7421
|
kind: "fabric-event";
|
|
6870
|
-
event_type: "knowledge_slug_renamed";
|
|
7422
|
+
event_type: "knowledge_slug_renamed";
|
|
7423
|
+
timestamp: string;
|
|
7424
|
+
from_slug: string;
|
|
7425
|
+
to_slug: string;
|
|
7426
|
+
stable_id?: string | undefined;
|
|
7427
|
+
correlation_id?: string | undefined;
|
|
7428
|
+
session_id?: string | undefined;
|
|
7429
|
+
reason?: string | undefined;
|
|
7430
|
+
}, {
|
|
7431
|
+
id: string;
|
|
7432
|
+
ts: number;
|
|
7433
|
+
schema_version: 1;
|
|
7434
|
+
kind: "fabric-event";
|
|
7435
|
+
event_type: "knowledge_slug_renamed";
|
|
7436
|
+
timestamp: string;
|
|
7437
|
+
from_slug: string;
|
|
7438
|
+
to_slug: string;
|
|
7439
|
+
stable_id?: string | undefined;
|
|
7440
|
+
correlation_id?: string | undefined;
|
|
7441
|
+
session_id?: string | undefined;
|
|
7442
|
+
reason?: string | undefined;
|
|
7443
|
+
}>, z.ZodObject<{
|
|
7444
|
+
event_type: z.ZodLiteral<"knowledge_demoted">;
|
|
7445
|
+
stable_id: z.ZodOptional<z.ZodString>;
|
|
7446
|
+
timestamp: z.ZodString;
|
|
7447
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7448
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7449
|
+
id: z.ZodString;
|
|
7450
|
+
ts: z.ZodNumber;
|
|
7451
|
+
schema_version: z.ZodLiteral<1>;
|
|
7452
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7453
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7454
|
+
}, "strip", z.ZodTypeAny, {
|
|
7455
|
+
id: string;
|
|
7456
|
+
ts: number;
|
|
7457
|
+
schema_version: 1;
|
|
7458
|
+
kind: "fabric-event";
|
|
7459
|
+
event_type: "knowledge_demoted";
|
|
6871
7460
|
timestamp: string;
|
|
6872
|
-
from_slug: string;
|
|
6873
|
-
to_slug: string;
|
|
6874
7461
|
stable_id?: string | undefined;
|
|
6875
7462
|
correlation_id?: string | undefined;
|
|
6876
7463
|
session_id?: string | undefined;
|
|
@@ -6880,16 +7467,14 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6880
7467
|
ts: number;
|
|
6881
7468
|
schema_version: 1;
|
|
6882
7469
|
kind: "fabric-event";
|
|
6883
|
-
event_type: "
|
|
7470
|
+
event_type: "knowledge_demoted";
|
|
6884
7471
|
timestamp: string;
|
|
6885
|
-
from_slug: string;
|
|
6886
|
-
to_slug: string;
|
|
6887
7472
|
stable_id?: string | undefined;
|
|
6888
7473
|
correlation_id?: string | undefined;
|
|
6889
7474
|
session_id?: string | undefined;
|
|
6890
7475
|
reason?: string | undefined;
|
|
6891
7476
|
}>, z.ZodObject<{
|
|
6892
|
-
event_type: z.ZodLiteral<"
|
|
7477
|
+
event_type: z.ZodLiteral<"knowledge_archived">;
|
|
6893
7478
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
6894
7479
|
timestamp: z.ZodString;
|
|
6895
7480
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -6904,7 +7489,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6904
7489
|
ts: number;
|
|
6905
7490
|
schema_version: 1;
|
|
6906
7491
|
kind: "fabric-event";
|
|
6907
|
-
event_type: "
|
|
7492
|
+
event_type: "knowledge_archived";
|
|
6908
7493
|
timestamp: string;
|
|
6909
7494
|
stable_id?: string | undefined;
|
|
6910
7495
|
correlation_id?: string | undefined;
|
|
@@ -6915,14 +7500,14 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6915
7500
|
ts: number;
|
|
6916
7501
|
schema_version: 1;
|
|
6917
7502
|
kind: "fabric-event";
|
|
6918
|
-
event_type: "
|
|
7503
|
+
event_type: "knowledge_archived";
|
|
6919
7504
|
timestamp: string;
|
|
6920
7505
|
stable_id?: string | undefined;
|
|
6921
7506
|
correlation_id?: string | undefined;
|
|
6922
7507
|
session_id?: string | undefined;
|
|
6923
7508
|
reason?: string | undefined;
|
|
6924
7509
|
}>, z.ZodObject<{
|
|
6925
|
-
event_type: z.ZodLiteral<"
|
|
7510
|
+
event_type: z.ZodLiteral<"knowledge_archive_attempted">;
|
|
6926
7511
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
6927
7512
|
timestamp: z.ZodString;
|
|
6928
7513
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -6937,7 +7522,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6937
7522
|
ts: number;
|
|
6938
7523
|
schema_version: 1;
|
|
6939
7524
|
kind: "fabric-event";
|
|
6940
|
-
event_type: "
|
|
7525
|
+
event_type: "knowledge_archive_attempted";
|
|
6941
7526
|
timestamp: string;
|
|
6942
7527
|
stable_id?: string | undefined;
|
|
6943
7528
|
correlation_id?: string | undefined;
|
|
@@ -6948,17 +7533,19 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6948
7533
|
ts: number;
|
|
6949
7534
|
schema_version: 1;
|
|
6950
7535
|
kind: "fabric-event";
|
|
6951
|
-
event_type: "
|
|
7536
|
+
event_type: "knowledge_archive_attempted";
|
|
6952
7537
|
timestamp: string;
|
|
6953
7538
|
stable_id?: string | undefined;
|
|
6954
7539
|
correlation_id?: string | undefined;
|
|
6955
7540
|
session_id?: string | undefined;
|
|
6956
7541
|
reason?: string | undefined;
|
|
6957
7542
|
}>, z.ZodObject<{
|
|
6958
|
-
event_type: z.ZodLiteral<"
|
|
7543
|
+
event_type: z.ZodLiteral<"knowledge_unarchived">;
|
|
6959
7544
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
6960
7545
|
timestamp: z.ZodString;
|
|
6961
7546
|
reason: z.ZodOptional<z.ZodString>;
|
|
7547
|
+
archive_path: z.ZodOptional<z.ZodString>;
|
|
7548
|
+
restored_to: z.ZodOptional<z.ZodString>;
|
|
6962
7549
|
kind: z.ZodLiteral<"fabric-event">;
|
|
6963
7550
|
id: z.ZodString;
|
|
6964
7551
|
ts: z.ZodNumber;
|
|
@@ -6970,23 +7557,27 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
6970
7557
|
ts: number;
|
|
6971
7558
|
schema_version: 1;
|
|
6972
7559
|
kind: "fabric-event";
|
|
6973
|
-
event_type: "
|
|
7560
|
+
event_type: "knowledge_unarchived";
|
|
6974
7561
|
timestamp: string;
|
|
6975
7562
|
stable_id?: string | undefined;
|
|
6976
7563
|
correlation_id?: string | undefined;
|
|
6977
7564
|
session_id?: string | undefined;
|
|
6978
7565
|
reason?: string | undefined;
|
|
7566
|
+
archive_path?: string | undefined;
|
|
7567
|
+
restored_to?: string | undefined;
|
|
6979
7568
|
}, {
|
|
6980
7569
|
id: string;
|
|
6981
7570
|
ts: number;
|
|
6982
7571
|
schema_version: 1;
|
|
6983
7572
|
kind: "fabric-event";
|
|
6984
|
-
event_type: "
|
|
7573
|
+
event_type: "knowledge_unarchived";
|
|
6985
7574
|
timestamp: string;
|
|
6986
7575
|
stable_id?: string | undefined;
|
|
6987
7576
|
correlation_id?: string | undefined;
|
|
6988
7577
|
session_id?: string | undefined;
|
|
6989
7578
|
reason?: string | undefined;
|
|
7579
|
+
archive_path?: string | undefined;
|
|
7580
|
+
restored_to?: string | undefined;
|
|
6990
7581
|
}>, z.ZodObject<{
|
|
6991
7582
|
event_type: z.ZodLiteral<"knowledge_deferred">;
|
|
6992
7583
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
@@ -7140,8 +7731,8 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7140
7731
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7141
7732
|
session_id: z.ZodOptional<z.ZodString>;
|
|
7142
7733
|
}, "strip", z.ZodTypeAny, {
|
|
7143
|
-
id: string;
|
|
7144
7734
|
pending_path: string;
|
|
7735
|
+
id: string;
|
|
7145
7736
|
reason: string;
|
|
7146
7737
|
ts: number;
|
|
7147
7738
|
schema_version: 1;
|
|
@@ -7151,8 +7742,8 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7151
7742
|
correlation_id?: string | undefined;
|
|
7152
7743
|
session_id?: string | undefined;
|
|
7153
7744
|
}, {
|
|
7154
|
-
id: string;
|
|
7155
7745
|
pending_path: string;
|
|
7746
|
+
id: string;
|
|
7156
7747
|
reason: string;
|
|
7157
7748
|
ts: number;
|
|
7158
7749
|
schema_version: 1;
|
|
@@ -7193,7 +7784,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7193
7784
|
session_id?: string | undefined;
|
|
7194
7785
|
}>, z.ZodObject<{
|
|
7195
7786
|
event_type: z.ZodLiteral<"doctor_run">;
|
|
7196
|
-
mode: z.ZodEnum<["lint", "
|
|
7787
|
+
mode: z.ZodEnum<["lint", "fix-knowledge"]>;
|
|
7197
7788
|
issues: z.ZodNumber;
|
|
7198
7789
|
mutations: z.ZodOptional<z.ZodNumber>;
|
|
7199
7790
|
timestamp: z.ZodString;
|
|
@@ -7211,7 +7802,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7211
7802
|
kind: "fabric-event";
|
|
7212
7803
|
event_type: "doctor_run";
|
|
7213
7804
|
timestamp: string;
|
|
7214
|
-
mode: "lint" | "
|
|
7805
|
+
mode: "lint" | "fix-knowledge";
|
|
7215
7806
|
correlation_id?: string | undefined;
|
|
7216
7807
|
session_id?: string | undefined;
|
|
7217
7808
|
mutations?: number | undefined;
|
|
@@ -7223,10 +7814,358 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
7223
7814
|
kind: "fabric-event";
|
|
7224
7815
|
event_type: "doctor_run";
|
|
7225
7816
|
timestamp: string;
|
|
7226
|
-
mode: "lint" | "
|
|
7817
|
+
mode: "lint" | "fix-knowledge";
|
|
7227
7818
|
correlation_id?: string | undefined;
|
|
7228
7819
|
session_id?: string | undefined;
|
|
7229
7820
|
mutations?: number | undefined;
|
|
7821
|
+
}>, z.ZodObject<{
|
|
7822
|
+
event_type: z.ZodLiteral<"relevance_migration_run">;
|
|
7823
|
+
timestamp: z.ZodString;
|
|
7824
|
+
scanned_count: z.ZodNumber;
|
|
7825
|
+
touched_count: z.ZodNumber;
|
|
7826
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7827
|
+
id: z.ZodString;
|
|
7828
|
+
ts: z.ZodNumber;
|
|
7829
|
+
schema_version: z.ZodLiteral<1>;
|
|
7830
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7831
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7832
|
+
}, "strip", z.ZodTypeAny, {
|
|
7833
|
+
id: string;
|
|
7834
|
+
ts: number;
|
|
7835
|
+
schema_version: 1;
|
|
7836
|
+
kind: "fabric-event";
|
|
7837
|
+
event_type: "relevance_migration_run";
|
|
7838
|
+
timestamp: string;
|
|
7839
|
+
scanned_count: number;
|
|
7840
|
+
touched_count: number;
|
|
7841
|
+
correlation_id?: string | undefined;
|
|
7842
|
+
session_id?: string | undefined;
|
|
7843
|
+
}, {
|
|
7844
|
+
id: string;
|
|
7845
|
+
ts: number;
|
|
7846
|
+
schema_version: 1;
|
|
7847
|
+
kind: "fabric-event";
|
|
7848
|
+
event_type: "relevance_migration_run";
|
|
7849
|
+
timestamp: string;
|
|
7850
|
+
scanned_count: number;
|
|
7851
|
+
touched_count: number;
|
|
7852
|
+
correlation_id?: string | undefined;
|
|
7853
|
+
session_id?: string | undefined;
|
|
7854
|
+
}>, z.ZodObject<{
|
|
7855
|
+
event_type: z.ZodLiteral<"assistant_turn_observed">;
|
|
7856
|
+
kb_line_raw: z.ZodNullable<z.ZodString>;
|
|
7857
|
+
cite_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7858
|
+
cite_tags: z.ZodDefault<z.ZodArray<z.ZodEnum<["planned", "recalled", "chained-from", "dismissed", "none"]>, "many">>;
|
|
7859
|
+
cite_commitments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7860
|
+
operators: z.ZodArray<z.ZodObject<{
|
|
7861
|
+
kind: z.ZodEnum<["edit", "not_edit", "require", "forbid"]>;
|
|
7862
|
+
target: z.ZodString;
|
|
7863
|
+
}, "strip", z.ZodTypeAny, {
|
|
7864
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
7865
|
+
target: string;
|
|
7866
|
+
}, {
|
|
7867
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
7868
|
+
target: string;
|
|
7869
|
+
}>, "many">;
|
|
7870
|
+
skip_reason: z.ZodNullable<z.ZodString>;
|
|
7871
|
+
}, "strip", z.ZodTypeAny, {
|
|
7872
|
+
operators: {
|
|
7873
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
7874
|
+
target: string;
|
|
7875
|
+
}[];
|
|
7876
|
+
skip_reason: string | null;
|
|
7877
|
+
}, {
|
|
7878
|
+
operators: {
|
|
7879
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
7880
|
+
target: string;
|
|
7881
|
+
}[];
|
|
7882
|
+
skip_reason: string | null;
|
|
7883
|
+
}>, "many">>;
|
|
7884
|
+
client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
|
|
7885
|
+
turn_id: z.ZodString;
|
|
7886
|
+
envelope_index: z.ZodOptional<z.ZodNumber>;
|
|
7887
|
+
timestamp: z.ZodString;
|
|
7888
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7889
|
+
id: z.ZodString;
|
|
7890
|
+
ts: z.ZodNumber;
|
|
7891
|
+
schema_version: z.ZodLiteral<1>;
|
|
7892
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7893
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7894
|
+
}, "strip", z.ZodTypeAny, {
|
|
7895
|
+
id: string;
|
|
7896
|
+
ts: number;
|
|
7897
|
+
schema_version: 1;
|
|
7898
|
+
kind: "fabric-event";
|
|
7899
|
+
event_type: "assistant_turn_observed";
|
|
7900
|
+
timestamp: string;
|
|
7901
|
+
kb_line_raw: string | null;
|
|
7902
|
+
cite_ids: string[];
|
|
7903
|
+
cite_tags: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[];
|
|
7904
|
+
cite_commitments: {
|
|
7905
|
+
operators: {
|
|
7906
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
7907
|
+
target: string;
|
|
7908
|
+
}[];
|
|
7909
|
+
skip_reason: string | null;
|
|
7910
|
+
}[];
|
|
7911
|
+
turn_id: string;
|
|
7912
|
+
correlation_id?: string | undefined;
|
|
7913
|
+
session_id?: string | undefined;
|
|
7914
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
7915
|
+
envelope_index?: number | undefined;
|
|
7916
|
+
}, {
|
|
7917
|
+
id: string;
|
|
7918
|
+
ts: number;
|
|
7919
|
+
schema_version: 1;
|
|
7920
|
+
kind: "fabric-event";
|
|
7921
|
+
event_type: "assistant_turn_observed";
|
|
7922
|
+
timestamp: string;
|
|
7923
|
+
kb_line_raw: string | null;
|
|
7924
|
+
turn_id: string;
|
|
7925
|
+
correlation_id?: string | undefined;
|
|
7926
|
+
session_id?: string | undefined;
|
|
7927
|
+
cite_ids?: string[] | undefined;
|
|
7928
|
+
cite_tags?: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[] | undefined;
|
|
7929
|
+
cite_commitments?: {
|
|
7930
|
+
operators: {
|
|
7931
|
+
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
7932
|
+
target: string;
|
|
7933
|
+
}[];
|
|
7934
|
+
skip_reason: string | null;
|
|
7935
|
+
}[] | undefined;
|
|
7936
|
+
client?: "cursor" | "cc" | "codex" | undefined;
|
|
7937
|
+
envelope_index?: number | undefined;
|
|
7938
|
+
}>, z.ZodObject<{
|
|
7939
|
+
event_type: z.ZodLiteral<"cite_policy_activated">;
|
|
7940
|
+
policy_version: z.ZodString;
|
|
7941
|
+
timestamp: z.ZodString;
|
|
7942
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7943
|
+
id: z.ZodString;
|
|
7944
|
+
ts: z.ZodNumber;
|
|
7945
|
+
schema_version: z.ZodLiteral<1>;
|
|
7946
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7947
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7948
|
+
}, "strip", z.ZodTypeAny, {
|
|
7949
|
+
id: string;
|
|
7950
|
+
ts: number;
|
|
7951
|
+
schema_version: 1;
|
|
7952
|
+
kind: "fabric-event";
|
|
7953
|
+
event_type: "cite_policy_activated";
|
|
7954
|
+
timestamp: string;
|
|
7955
|
+
policy_version: string;
|
|
7956
|
+
correlation_id?: string | undefined;
|
|
7957
|
+
session_id?: string | undefined;
|
|
7958
|
+
}, {
|
|
7959
|
+
id: string;
|
|
7960
|
+
ts: number;
|
|
7961
|
+
schema_version: 1;
|
|
7962
|
+
kind: "fabric-event";
|
|
7963
|
+
event_type: "cite_policy_activated";
|
|
7964
|
+
timestamp: string;
|
|
7965
|
+
policy_version: string;
|
|
7966
|
+
correlation_id?: string | undefined;
|
|
7967
|
+
session_id?: string | undefined;
|
|
7968
|
+
}>, z.ZodObject<{
|
|
7969
|
+
event_type: z.ZodLiteral<"cite_contract_policy_activated">;
|
|
7970
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7971
|
+
id: z.ZodString;
|
|
7972
|
+
ts: z.ZodNumber;
|
|
7973
|
+
schema_version: z.ZodLiteral<1>;
|
|
7974
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
7975
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
7976
|
+
}, "strip", z.ZodTypeAny, {
|
|
7977
|
+
id: string;
|
|
7978
|
+
ts: number;
|
|
7979
|
+
schema_version: 1;
|
|
7980
|
+
kind: "fabric-event";
|
|
7981
|
+
event_type: "cite_contract_policy_activated";
|
|
7982
|
+
correlation_id?: string | undefined;
|
|
7983
|
+
session_id?: string | undefined;
|
|
7984
|
+
}, {
|
|
7985
|
+
id: string;
|
|
7986
|
+
ts: number;
|
|
7987
|
+
schema_version: 1;
|
|
7988
|
+
kind: "fabric-event";
|
|
7989
|
+
event_type: "cite_contract_policy_activated";
|
|
7990
|
+
correlation_id?: string | undefined;
|
|
7991
|
+
session_id?: string | undefined;
|
|
7992
|
+
}>, z.ZodObject<{
|
|
7993
|
+
event_type: z.ZodLiteral<"knowledge_meta_auto_healed">;
|
|
7994
|
+
previous_revision_hash: z.ZodString;
|
|
7995
|
+
revision_hash: z.ZodString;
|
|
7996
|
+
trigger: z.ZodLiteral<"read">;
|
|
7997
|
+
caller: z.ZodOptional<z.ZodEnum<["planContext", "getKnowledgeSections", "getKnowledge", "extractKnowledge"]>>;
|
|
7998
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
7999
|
+
id: z.ZodString;
|
|
8000
|
+
ts: z.ZodNumber;
|
|
8001
|
+
schema_version: z.ZodLiteral<1>;
|
|
8002
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8003
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8004
|
+
}, "strip", z.ZodTypeAny, {
|
|
8005
|
+
id: string;
|
|
8006
|
+
revision_hash: string;
|
|
8007
|
+
previous_revision_hash: string;
|
|
8008
|
+
ts: number;
|
|
8009
|
+
schema_version: 1;
|
|
8010
|
+
kind: "fabric-event";
|
|
8011
|
+
event_type: "knowledge_meta_auto_healed";
|
|
8012
|
+
trigger: "read";
|
|
8013
|
+
correlation_id?: string | undefined;
|
|
8014
|
+
session_id?: string | undefined;
|
|
8015
|
+
caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
|
|
8016
|
+
}, {
|
|
8017
|
+
id: string;
|
|
8018
|
+
revision_hash: string;
|
|
8019
|
+
previous_revision_hash: string;
|
|
8020
|
+
ts: number;
|
|
8021
|
+
schema_version: 1;
|
|
8022
|
+
kind: "fabric-event";
|
|
8023
|
+
event_type: "knowledge_meta_auto_healed";
|
|
8024
|
+
trigger: "read";
|
|
8025
|
+
correlation_id?: string | undefined;
|
|
8026
|
+
session_id?: string | undefined;
|
|
8027
|
+
caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
|
|
8028
|
+
}>, z.ZodObject<{
|
|
8029
|
+
event_type: z.ZodLiteral<"events_rotated">;
|
|
8030
|
+
cutoff_ts: z.ZodString;
|
|
8031
|
+
archived_count: z.ZodNumber;
|
|
8032
|
+
kept_count: z.ZodNumber;
|
|
8033
|
+
archive_path: z.ZodString;
|
|
8034
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
8035
|
+
id: z.ZodString;
|
|
8036
|
+
ts: z.ZodNumber;
|
|
8037
|
+
schema_version: z.ZodLiteral<1>;
|
|
8038
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8039
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8040
|
+
}, "strip", z.ZodTypeAny, {
|
|
8041
|
+
id: string;
|
|
8042
|
+
ts: number;
|
|
8043
|
+
schema_version: 1;
|
|
8044
|
+
kind: "fabric-event";
|
|
8045
|
+
event_type: "events_rotated";
|
|
8046
|
+
archive_path: string;
|
|
8047
|
+
cutoff_ts: string;
|
|
8048
|
+
archived_count: number;
|
|
8049
|
+
kept_count: number;
|
|
8050
|
+
correlation_id?: string | undefined;
|
|
8051
|
+
session_id?: string | undefined;
|
|
8052
|
+
}, {
|
|
8053
|
+
id: string;
|
|
8054
|
+
ts: number;
|
|
8055
|
+
schema_version: 1;
|
|
8056
|
+
kind: "fabric-event";
|
|
8057
|
+
event_type: "events_rotated";
|
|
8058
|
+
archive_path: string;
|
|
8059
|
+
cutoff_ts: string;
|
|
8060
|
+
archived_count: number;
|
|
8061
|
+
kept_count: number;
|
|
8062
|
+
correlation_id?: string | undefined;
|
|
8063
|
+
session_id?: string | undefined;
|
|
8064
|
+
}>, z.ZodObject<{
|
|
8065
|
+
event_type: z.ZodLiteral<"serve_lock_cleared">;
|
|
8066
|
+
pid: z.ZodNumber;
|
|
8067
|
+
age_ms: z.ZodNumber;
|
|
8068
|
+
timestamp: z.ZodString;
|
|
8069
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
8070
|
+
id: z.ZodString;
|
|
8071
|
+
ts: z.ZodNumber;
|
|
8072
|
+
schema_version: z.ZodLiteral<1>;
|
|
8073
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8074
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8075
|
+
}, "strip", z.ZodTypeAny, {
|
|
8076
|
+
id: string;
|
|
8077
|
+
ts: number;
|
|
8078
|
+
schema_version: 1;
|
|
8079
|
+
kind: "fabric-event";
|
|
8080
|
+
event_type: "serve_lock_cleared";
|
|
8081
|
+
timestamp: string;
|
|
8082
|
+
pid: number;
|
|
8083
|
+
age_ms: number;
|
|
8084
|
+
correlation_id?: string | undefined;
|
|
8085
|
+
session_id?: string | undefined;
|
|
8086
|
+
}, {
|
|
8087
|
+
id: string;
|
|
8088
|
+
ts: number;
|
|
8089
|
+
schema_version: 1;
|
|
8090
|
+
kind: "fabric-event";
|
|
8091
|
+
event_type: "serve_lock_cleared";
|
|
8092
|
+
timestamp: string;
|
|
8093
|
+
pid: number;
|
|
8094
|
+
age_ms: number;
|
|
8095
|
+
correlation_id?: string | undefined;
|
|
8096
|
+
session_id?: string | undefined;
|
|
8097
|
+
}>, z.ZodObject<{
|
|
8098
|
+
event_type: z.ZodLiteral<"knowledge_enriched">;
|
|
8099
|
+
path: z.ZodString;
|
|
8100
|
+
added_fields: z.ZodArray<z.ZodEnum<["intent_clues", "tech_stack", "impact", "must_read_if"]>, "many">;
|
|
8101
|
+
mode: z.ZodEnum<["auto", "preview", "readonly", "interactive"]>;
|
|
8102
|
+
timestamp: z.ZodString;
|
|
8103
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
8104
|
+
id: z.ZodString;
|
|
8105
|
+
ts: z.ZodNumber;
|
|
8106
|
+
schema_version: z.ZodLiteral<1>;
|
|
8107
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8108
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8109
|
+
}, "strip", z.ZodTypeAny, {
|
|
8110
|
+
path: string;
|
|
8111
|
+
id: string;
|
|
8112
|
+
ts: number;
|
|
8113
|
+
schema_version: 1;
|
|
8114
|
+
kind: "fabric-event";
|
|
8115
|
+
event_type: "knowledge_enriched";
|
|
8116
|
+
timestamp: string;
|
|
8117
|
+
mode: "auto" | "preview" | "readonly" | "interactive";
|
|
8118
|
+
added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
|
|
8119
|
+
correlation_id?: string | undefined;
|
|
8120
|
+
session_id?: string | undefined;
|
|
8121
|
+
}, {
|
|
8122
|
+
path: string;
|
|
8123
|
+
id: string;
|
|
8124
|
+
ts: number;
|
|
8125
|
+
schema_version: 1;
|
|
8126
|
+
kind: "fabric-event";
|
|
8127
|
+
event_type: "knowledge_enriched";
|
|
8128
|
+
timestamp: string;
|
|
8129
|
+
mode: "auto" | "preview" | "readonly" | "interactive";
|
|
8130
|
+
added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
|
|
8131
|
+
correlation_id?: string | undefined;
|
|
8132
|
+
session_id?: string | undefined;
|
|
8133
|
+
}>, z.ZodObject<{
|
|
8134
|
+
event_type: z.ZodLiteral<"session_archive_attempted">;
|
|
8135
|
+
outcome: z.ZodEnum<["proposed", "viability_failed", "user_dismissed", "skipped_no_signal"]>;
|
|
8136
|
+
covered_through_ts: z.ZodNumber;
|
|
8137
|
+
candidates_proposed: z.ZodDefault<z.ZodNumber>;
|
|
8138
|
+
knowledge_proposed_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8139
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
8140
|
+
id: z.ZodString;
|
|
8141
|
+
ts: z.ZodNumber;
|
|
8142
|
+
schema_version: z.ZodLiteral<1>;
|
|
8143
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8144
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8145
|
+
}, "strip", z.ZodTypeAny, {
|
|
8146
|
+
id: string;
|
|
8147
|
+
covered_through_ts: number;
|
|
8148
|
+
ts: number;
|
|
8149
|
+
schema_version: 1;
|
|
8150
|
+
kind: "fabric-event";
|
|
8151
|
+
event_type: "session_archive_attempted";
|
|
8152
|
+
outcome: "user_dismissed" | "proposed" | "viability_failed" | "skipped_no_signal";
|
|
8153
|
+
candidates_proposed: number;
|
|
8154
|
+
knowledge_proposed_ids: string[];
|
|
8155
|
+
correlation_id?: string | undefined;
|
|
8156
|
+
session_id?: string | undefined;
|
|
8157
|
+
}, {
|
|
8158
|
+
id: string;
|
|
8159
|
+
covered_through_ts: number;
|
|
8160
|
+
ts: number;
|
|
8161
|
+
schema_version: 1;
|
|
8162
|
+
kind: "fabric-event";
|
|
8163
|
+
event_type: "session_archive_attempted";
|
|
8164
|
+
outcome: "user_dismissed" | "proposed" | "viability_failed" | "skipped_no_signal";
|
|
8165
|
+
correlation_id?: string | undefined;
|
|
8166
|
+
session_id?: string | undefined;
|
|
8167
|
+
candidates_proposed?: number | undefined;
|
|
8168
|
+
knowledge_proposed_ids?: string[] | undefined;
|
|
7230
8169
|
}>]>;
|
|
7231
8170
|
type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
|
|
7232
8171
|
type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
|
|
@@ -7235,8 +8174,10 @@ type EditIntentCheckedEvent = z.infer<typeof editIntentCheckedEventSchema>;
|
|
|
7235
8174
|
type KnowledgeDriftDetectedEvent = z.infer<typeof knowledgeDriftDetectedEventSchema>;
|
|
7236
8175
|
type McpEventLedgerEvent = z.infer<typeof mcpEventLedgerEventSchema>;
|
|
7237
8176
|
type ReapplyCompletedEvent = z.infer<typeof reapplyCompletedEventSchema>;
|
|
8177
|
+
type InstallDiffAppliedEvent = z.infer<typeof installDiffAppliedEventSchema>;
|
|
7238
8178
|
type EventLedgerTruncatedEvent = z.infer<typeof eventLedgerTruncatedEventSchema>;
|
|
7239
8179
|
type McpConfigMigratedEvent = z.infer<typeof mcpConfigMigratedEventSchema>;
|
|
8180
|
+
type BootstrapMarkerMigratedEvent = z.infer<typeof bootstrapMarkerMigratedEventSchema>;
|
|
7240
8181
|
type MetaReconciledOnStartupEvent = z.infer<typeof metaReconciledOnStartupEventSchema>;
|
|
7241
8182
|
type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
|
|
7242
8183
|
type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
|
|
@@ -7248,10 +8189,12 @@ type KnowledgePromoteStartedEvent = z.infer<typeof knowledgePromoteStartedEventS
|
|
|
7248
8189
|
type KnowledgePromotedEvent = z.infer<typeof knowledgePromotedEventSchema>;
|
|
7249
8190
|
type KnowledgePromoteFailedEvent = z.infer<typeof knowledgePromoteFailedEventSchema>;
|
|
7250
8191
|
type KnowledgeLayerChangedEvent = z.infer<typeof knowledgeLayerChangedEventSchema>;
|
|
8192
|
+
type KnowledgeIdRedirectEvent = z.infer<typeof knowledgeIdRedirectEventSchema>;
|
|
7251
8193
|
type KnowledgeSlugRenamedEvent = z.infer<typeof knowledgeSlugRenamedEventSchema>;
|
|
7252
8194
|
type KnowledgeDemotedEvent = z.infer<typeof knowledgeDemotedEventSchema>;
|
|
7253
8195
|
type KnowledgeArchivedEvent = z.infer<typeof knowledgeArchivedEventSchema>;
|
|
7254
8196
|
type KnowledgeArchiveAttemptedEvent = z.infer<typeof knowledgeArchiveAttemptedEventSchema>;
|
|
8197
|
+
type KnowledgeUnarchivedEvent = z.infer<typeof knowledgeUnarchivedEventSchema>;
|
|
7255
8198
|
type KnowledgeDeferredEvent = z.infer<typeof knowledgeDeferredEventSchema>;
|
|
7256
8199
|
type KnowledgeRejectedEvent = z.infer<typeof knowledgeRejectedEventSchema>;
|
|
7257
8200
|
type KnowledgeConsumedEvent = z.infer<typeof knowledgeConsumedEventSchema>;
|
|
@@ -7259,9 +8202,48 @@ type KnowledgeScopeDegradedEvent = z.infer<typeof knowledgeScopeDegradedEventSch
|
|
|
7259
8202
|
type PendingAutoArchivedEvent = z.infer<typeof pendingAutoArchivedEventSchema>;
|
|
7260
8203
|
type KnowledgePathDangledEvent = z.infer<typeof knowledgePathDangledEventSchema>;
|
|
7261
8204
|
type DoctorRunEvent = z.infer<typeof doctorRunEventSchema>;
|
|
7262
|
-
type
|
|
8205
|
+
type RelevanceMigrationRunEvent = z.infer<typeof relevanceMigrationRunEventSchema>;
|
|
8206
|
+
type AssistantTurnObservedEvent = z.infer<typeof assistantTurnObservedEventSchema>;
|
|
8207
|
+
type CitePolicyActivatedEvent = z.infer<typeof citePolicyActivatedEventSchema>;
|
|
8208
|
+
type CiteContractPolicyActivatedEvent = z.infer<typeof citeContractPolicyActivatedEventSchema>;
|
|
8209
|
+
type KnowledgeMetaAutoHealedEvent = z.infer<typeof knowledgeMetaAutoHealedEventSchema>;
|
|
8210
|
+
type EventsRotatedEvent = z.infer<typeof eventsRotatedEventSchema>;
|
|
8211
|
+
type ServeLockClearedEvent = z.infer<typeof serveLockClearedEventSchema>;
|
|
8212
|
+
type KnowledgeEnrichedEvent = z.infer<typeof knowledgeEnrichedEventSchema>;
|
|
8213
|
+
type SessionArchiveAttemptedEvent = z.infer<typeof sessionArchiveAttemptedEventSchema>;
|
|
8214
|
+
type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | InstallDiffAppliedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeIdRedirectEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeUnarchivedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent | CiteContractPolicyActivatedEvent | KnowledgeMetaAutoHealedEvent | EventsRotatedEvent | ServeLockClearedEvent | KnowledgeEnrichedEvent | SessionArchiveAttemptedEvent;
|
|
7263
8215
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
7264
8216
|
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;
|
|
7265
8217
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
7266
8218
|
|
|
7267
|
-
|
|
8219
|
+
type CiteTag = "planned" | "recalled" | "chained-from" | "dismissed" | "none";
|
|
8220
|
+
type CiteCommitmentOperatorKind = "edit" | "not_edit" | "require" | "forbid";
|
|
8221
|
+
interface CiteCommitmentOperator {
|
|
8222
|
+
kind: CiteCommitmentOperatorKind;
|
|
8223
|
+
target: string;
|
|
8224
|
+
}
|
|
8225
|
+
interface CiteCommitment {
|
|
8226
|
+
operators: CiteCommitmentOperator[];
|
|
8227
|
+
skip_reason: string | null;
|
|
8228
|
+
}
|
|
8229
|
+
interface ParseCiteLineResult {
|
|
8230
|
+
cite_ids: string[];
|
|
8231
|
+
cite_tags: CiteTag[];
|
|
8232
|
+
cite_commitments: CiteCommitment[];
|
|
8233
|
+
}
|
|
8234
|
+
/**
|
|
8235
|
+
* Parse one or more newline-separated `KB:` cite lines into structured
|
|
8236
|
+
* arrays matching the assistant_turn_observed event-ledger fields.
|
|
8237
|
+
*
|
|
8238
|
+
* Tolerates whitespace, CR/LF line endings, blank lines, and non-KB
|
|
8239
|
+
* interleaved prose. Index contract documented above.
|
|
8240
|
+
*
|
|
8241
|
+
* v2.0.0-rc.27 TASK-003 (audit §2.18): multi-id citations
|
|
8242
|
+
* (`KB: KT-DEC-0001, KT-PIT-0005 ...`) emit each id into cite_ids in
|
|
8243
|
+
* declaration order. The chained-from tag's embedded id (when present)
|
|
8244
|
+
* appends after the primary group. cite_tags still carries one tag per
|
|
8245
|
+
* LINE — multi-id lines don't multiply the tag stream.
|
|
8246
|
+
*/
|
|
8247
|
+
declare function parseCiteLine(raw: string): ParseCiteLineResult;
|
|
8248
|
+
|
|
8249
|
+
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CiteCommitment, type CiteCommitmentOperator, type CiteCommitmentOperatorKind, type CiteContractPolicyActivatedEvent, type CitePolicyActivatedEvent, type CiteTag, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, type FabricConfigSchemaShape, 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 InstallDiffAppliedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeIdRedirectEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, type KnowledgeUnarchivedEvent, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, type PanelFieldGroup, type PanelFieldMeta, type ParseCiteLineResult, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, StableId, type ValidateResult, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, bootstrapMarkerMigratedEventSchema, candidateFileEntrySchema, citeContractPolicyActivatedEventSchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, getPanelFieldByKey, getPanelFields, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, installDiffAppliedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeIdRedirectEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, knowledgeUnarchivedEventSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, onboardSlotSchema, parseCiteLine, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, withDerivedAgentsMetaNodeDefaults };
|