@fenglimg/fabric-shared 2.0.0-rc.30 → 2.0.0-rc.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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-DkXJGQCD.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-DkXJGQCD.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-BjssYQb3.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-BjssYQb3.js';
3
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';
@@ -26,7 +26,7 @@ declare const ruleDescriptionSchema: z.ZodObject<{
26
26
  must_read_if: z.ZodString;
27
27
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
28
  id: z.ZodOptional<z.ZodString>;
29
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
29
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
30
30
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
31
31
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
32
32
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -60,7 +60,7 @@ declare const ruleDescriptionSchema: z.ZodObject<{
60
60
  relevance_paths?: string[] | undefined;
61
61
  entities?: string[] | undefined;
62
62
  id?: string | undefined;
63
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
63
+ knowledge_type?: unknown;
64
64
  maturity?: "draft" | "verified" | "proven" | undefined;
65
65
  knowledge_layer?: "personal" | "team" | undefined;
66
66
  layer_reason?: string | undefined;
@@ -80,7 +80,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
80
80
  must_read_if: z.ZodString;
81
81
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
82
82
  id: z.ZodOptional<z.ZodString>;
83
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
83
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
84
84
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
85
85
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
86
86
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -114,7 +114,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
114
114
  relevance_paths?: string[] | undefined;
115
115
  entities?: string[] | undefined;
116
116
  id?: string | undefined;
117
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
117
+ knowledge_type?: unknown;
118
118
  maturity?: "draft" | "verified" | "proven" | undefined;
119
119
  knowledge_layer?: "personal" | "team" | undefined;
120
120
  layer_reason?: string | undefined;
@@ -154,7 +154,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
154
154
  relevance_paths?: string[] | undefined;
155
155
  entities?: string[] | undefined;
156
156
  id?: string | undefined;
157
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
157
+ knowledge_type?: unknown;
158
158
  maturity?: "draft" | "verified" | "proven" | undefined;
159
159
  knowledge_layer?: "personal" | "team" | undefined;
160
160
  layer_reason?: string | undefined;
@@ -191,7 +191,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
191
191
  must_read_if: z.ZodString;
192
192
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
193
193
  id: z.ZodOptional<z.ZodString>;
194
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
194
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
195
195
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
196
196
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
197
197
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -225,7 +225,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
225
225
  relevance_paths?: string[] | undefined;
226
226
  entities?: string[] | undefined;
227
227
  id?: string | undefined;
228
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
228
+ knowledge_type?: unknown;
229
229
  maturity?: "draft" | "verified" | "proven" | undefined;
230
230
  knowledge_layer?: "personal" | "team" | undefined;
231
231
  layer_reason?: string | undefined;
@@ -258,7 +258,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
258
258
  must_read_if: z.ZodString;
259
259
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
260
260
  id: z.ZodOptional<z.ZodString>;
261
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
261
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
262
262
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
263
263
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
264
264
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -292,7 +292,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
292
292
  relevance_paths?: string[] | undefined;
293
293
  entities?: string[] | undefined;
294
294
  id?: string | undefined;
295
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
295
+ knowledge_type?: unknown;
296
296
  maturity?: "draft" | "verified" | "proven" | undefined;
297
297
  knowledge_layer?: "personal" | "team" | undefined;
298
298
  layer_reason?: string | undefined;
@@ -325,7 +325,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
325
325
  must_read_if: z.ZodString;
326
326
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
327
327
  id: z.ZodOptional<z.ZodString>;
328
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
328
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
329
329
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
330
330
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
331
331
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -359,7 +359,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
359
359
  relevance_paths?: string[] | undefined;
360
360
  entities?: string[] | undefined;
361
361
  id?: string | undefined;
362
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
362
+ knowledge_type?: unknown;
363
363
  maturity?: "draft" | "verified" | "proven" | undefined;
364
364
  knowledge_layer?: "personal" | "team" | undefined;
365
365
  layer_reason?: string | undefined;
@@ -392,7 +392,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
392
392
  must_read_if: z.ZodString;
393
393
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
394
394
  id: z.ZodOptional<z.ZodString>;
395
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
395
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
396
396
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
397
397
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
398
398
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -426,7 +426,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
426
426
  relevance_paths?: string[] | undefined;
427
427
  entities?: string[] | undefined;
428
428
  id?: string | undefined;
429
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
429
+ knowledge_type?: unknown;
430
430
  maturity?: "draft" | "verified" | "proven" | undefined;
431
431
  knowledge_layer?: "personal" | "team" | undefined;
432
432
  layer_reason?: string | undefined;
@@ -533,7 +533,7 @@ declare const agentsMetaSchema: z.ZodObject<{
533
533
  must_read_if: z.ZodString;
534
534
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
535
535
  id: z.ZodOptional<z.ZodString>;
536
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
536
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
537
537
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
538
538
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
539
539
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -567,7 +567,7 @@ declare const agentsMetaSchema: z.ZodObject<{
567
567
  relevance_paths?: string[] | undefined;
568
568
  entities?: string[] | undefined;
569
569
  id?: string | undefined;
570
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
570
+ knowledge_type?: unknown;
571
571
  maturity?: "draft" | "verified" | "proven" | undefined;
572
572
  knowledge_layer?: "personal" | "team" | undefined;
573
573
  layer_reason?: string | undefined;
@@ -600,7 +600,7 @@ declare const agentsMetaSchema: z.ZodObject<{
600
600
  must_read_if: z.ZodString;
601
601
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
602
602
  id: z.ZodOptional<z.ZodString>;
603
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
603
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
604
604
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
605
605
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
606
606
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -634,7 +634,7 @@ declare const agentsMetaSchema: z.ZodObject<{
634
634
  relevance_paths?: string[] | undefined;
635
635
  entities?: string[] | undefined;
636
636
  id?: string | undefined;
637
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
637
+ knowledge_type?: unknown;
638
638
  maturity?: "draft" | "verified" | "proven" | undefined;
639
639
  knowledge_layer?: "personal" | "team" | undefined;
640
640
  layer_reason?: string | undefined;
@@ -667,7 +667,7 @@ declare const agentsMetaSchema: z.ZodObject<{
667
667
  must_read_if: z.ZodString;
668
668
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
669
669
  id: z.ZodOptional<z.ZodString>;
670
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
670
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
671
671
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
672
672
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
673
673
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -701,7 +701,7 @@ declare const agentsMetaSchema: z.ZodObject<{
701
701
  relevance_paths?: string[] | undefined;
702
702
  entities?: string[] | undefined;
703
703
  id?: string | undefined;
704
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
704
+ knowledge_type?: unknown;
705
705
  maturity?: "draft" | "verified" | "proven" | undefined;
706
706
  knowledge_layer?: "personal" | "team" | undefined;
707
707
  layer_reason?: string | undefined;
@@ -734,7 +734,7 @@ declare const agentsMetaSchema: z.ZodObject<{
734
734
  must_read_if: z.ZodString;
735
735
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
736
736
  id: z.ZodOptional<z.ZodString>;
737
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
737
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
738
738
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
739
739
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
740
740
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -768,7 +768,7 @@ declare const agentsMetaSchema: z.ZodObject<{
768
768
  relevance_paths?: string[] | undefined;
769
769
  entities?: string[] | undefined;
770
770
  id?: string | undefined;
771
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
771
+ knowledge_type?: unknown;
772
772
  maturity?: "draft" | "verified" | "proven" | undefined;
773
773
  knowledge_layer?: "personal" | "team" | undefined;
774
774
  layer_reason?: string | undefined;
@@ -874,7 +874,7 @@ declare const agentsMetaSchema: z.ZodObject<{
874
874
  must_read_if: z.ZodString;
875
875
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
876
876
  id: z.ZodOptional<z.ZodString>;
877
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
877
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
878
878
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
879
879
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
880
880
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -908,7 +908,7 @@ declare const agentsMetaSchema: z.ZodObject<{
908
908
  relevance_paths?: string[] | undefined;
909
909
  entities?: string[] | undefined;
910
910
  id?: string | undefined;
911
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
911
+ knowledge_type?: unknown;
912
912
  maturity?: "draft" | "verified" | "proven" | undefined;
913
913
  knowledge_layer?: "personal" | "team" | undefined;
914
914
  layer_reason?: string | undefined;
@@ -2320,7 +2320,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2320
2320
  must_read_if: z.ZodString;
2321
2321
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2322
2322
  id: z.ZodOptional<z.ZodString>;
2323
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
2323
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
2324
2324
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
2325
2325
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
2326
2326
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -2354,7 +2354,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2354
2354
  relevance_paths?: string[] | undefined;
2355
2355
  entities?: string[] | undefined;
2356
2356
  id?: string | undefined;
2357
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
2357
+ knowledge_type?: unknown;
2358
2358
  maturity?: "draft" | "verified" | "proven" | undefined;
2359
2359
  knowledge_layer?: "personal" | "team" | undefined;
2360
2360
  layer_reason?: string | undefined;
@@ -2387,7 +2387,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2387
2387
  must_read_if: z.ZodString;
2388
2388
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2389
2389
  id: z.ZodOptional<z.ZodString>;
2390
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
2390
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
2391
2391
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
2392
2392
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
2393
2393
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -2421,7 +2421,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2421
2421
  relevance_paths?: string[] | undefined;
2422
2422
  entities?: string[] | undefined;
2423
2423
  id?: string | undefined;
2424
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
2424
+ knowledge_type?: unknown;
2425
2425
  maturity?: "draft" | "verified" | "proven" | undefined;
2426
2426
  knowledge_layer?: "personal" | "team" | undefined;
2427
2427
  layer_reason?: string | undefined;
@@ -2454,7 +2454,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2454
2454
  must_read_if: z.ZodString;
2455
2455
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2456
2456
  id: z.ZodOptional<z.ZodString>;
2457
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
2457
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
2458
2458
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
2459
2459
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
2460
2460
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -2488,7 +2488,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2488
2488
  relevance_paths?: string[] | undefined;
2489
2489
  entities?: string[] | undefined;
2490
2490
  id?: string | undefined;
2491
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
2491
+ knowledge_type?: unknown;
2492
2492
  maturity?: "draft" | "verified" | "proven" | undefined;
2493
2493
  knowledge_layer?: "personal" | "team" | undefined;
2494
2494
  layer_reason?: string | undefined;
@@ -2521,7 +2521,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2521
2521
  must_read_if: z.ZodString;
2522
2522
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2523
2523
  id: z.ZodOptional<z.ZodString>;
2524
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
2524
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
2525
2525
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
2526
2526
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
2527
2527
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -2555,7 +2555,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2555
2555
  relevance_paths?: string[] | undefined;
2556
2556
  entities?: string[] | undefined;
2557
2557
  id?: string | undefined;
2558
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
2558
+ knowledge_type?: unknown;
2559
2559
  maturity?: "draft" | "verified" | "proven" | undefined;
2560
2560
  knowledge_layer?: "personal" | "team" | undefined;
2561
2561
  layer_reason?: string | undefined;
@@ -2661,7 +2661,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2661
2661
  must_read_if: z.ZodString;
2662
2662
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2663
2663
  id: z.ZodOptional<z.ZodString>;
2664
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
2664
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
2665
2665
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
2666
2666
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
2667
2667
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -2695,7 +2695,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2695
2695
  relevance_paths?: string[] | undefined;
2696
2696
  entities?: string[] | undefined;
2697
2697
  id?: string | undefined;
2698
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
2698
+ knowledge_type?: unknown;
2699
2699
  maturity?: "draft" | "verified" | "proven" | undefined;
2700
2700
  knowledge_layer?: "personal" | "team" | undefined;
2701
2701
  layer_reason?: string | undefined;
@@ -2769,7 +2769,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2769
2769
  must_read_if: z.ZodString;
2770
2770
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2771
2771
  id: z.ZodOptional<z.ZodString>;
2772
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
2772
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
2773
2773
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
2774
2774
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
2775
2775
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -2803,7 +2803,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
2803
2803
  relevance_paths?: string[] | undefined;
2804
2804
  entities?: string[] | undefined;
2805
2805
  id?: string | undefined;
2806
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
2806
+ knowledge_type?: unknown;
2807
2807
  maturity?: "draft" | "verified" | "proven" | undefined;
2808
2808
  knowledge_layer?: "personal" | "team" | undefined;
2809
2809
  layer_reason?: string | undefined;
@@ -3598,7 +3598,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3598
3598
  must_read_if: z.ZodString;
3599
3599
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3600
3600
  id: z.ZodOptional<z.ZodString>;
3601
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
3601
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
3602
3602
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
3603
3603
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
3604
3604
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -3632,7 +3632,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3632
3632
  relevance_paths?: string[] | undefined;
3633
3633
  entities?: string[] | undefined;
3634
3634
  id?: string | undefined;
3635
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
3635
+ knowledge_type?: unknown;
3636
3636
  maturity?: "draft" | "verified" | "proven" | undefined;
3637
3637
  knowledge_layer?: "personal" | "team" | undefined;
3638
3638
  layer_reason?: string | undefined;
@@ -3665,7 +3665,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3665
3665
  must_read_if: z.ZodString;
3666
3666
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3667
3667
  id: z.ZodOptional<z.ZodString>;
3668
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
3668
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
3669
3669
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
3670
3670
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
3671
3671
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -3699,7 +3699,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3699
3699
  relevance_paths?: string[] | undefined;
3700
3700
  entities?: string[] | undefined;
3701
3701
  id?: string | undefined;
3702
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
3702
+ knowledge_type?: unknown;
3703
3703
  maturity?: "draft" | "verified" | "proven" | undefined;
3704
3704
  knowledge_layer?: "personal" | "team" | undefined;
3705
3705
  layer_reason?: string | undefined;
@@ -3732,7 +3732,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3732
3732
  must_read_if: z.ZodString;
3733
3733
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3734
3734
  id: z.ZodOptional<z.ZodString>;
3735
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
3735
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
3736
3736
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
3737
3737
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
3738
3738
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -3766,7 +3766,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3766
3766
  relevance_paths?: string[] | undefined;
3767
3767
  entities?: string[] | undefined;
3768
3768
  id?: string | undefined;
3769
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
3769
+ knowledge_type?: unknown;
3770
3770
  maturity?: "draft" | "verified" | "proven" | undefined;
3771
3771
  knowledge_layer?: "personal" | "team" | undefined;
3772
3772
  layer_reason?: string | undefined;
@@ -3799,7 +3799,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3799
3799
  must_read_if: z.ZodString;
3800
3800
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3801
3801
  id: z.ZodOptional<z.ZodString>;
3802
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
3802
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
3803
3803
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
3804
3804
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
3805
3805
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -3833,7 +3833,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3833
3833
  relevance_paths?: string[] | undefined;
3834
3834
  entities?: string[] | undefined;
3835
3835
  id?: string | undefined;
3836
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
3836
+ knowledge_type?: unknown;
3837
3837
  maturity?: "draft" | "verified" | "proven" | undefined;
3838
3838
  knowledge_layer?: "personal" | "team" | undefined;
3839
3839
  layer_reason?: string | undefined;
@@ -3939,7 +3939,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3939
3939
  must_read_if: z.ZodString;
3940
3940
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3941
3941
  id: z.ZodOptional<z.ZodString>;
3942
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
3942
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
3943
3943
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
3944
3944
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
3945
3945
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -3973,7 +3973,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3973
3973
  relevance_paths?: string[] | undefined;
3974
3974
  entities?: string[] | undefined;
3975
3975
  id?: string | undefined;
3976
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
3976
+ knowledge_type?: unknown;
3977
3977
  maturity?: "draft" | "verified" | "proven" | undefined;
3978
3978
  knowledge_layer?: "personal" | "team" | undefined;
3979
3979
  layer_reason?: string | undefined;
@@ -4047,7 +4047,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4047
4047
  must_read_if: z.ZodString;
4048
4048
  entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4049
4049
  id: z.ZodOptional<z.ZodString>;
4050
- knowledge_type: z.ZodOptional<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>>;
4050
+ knowledge_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["models", "decisions", "guidelines", "pitfalls", "processes"]>, "models" | "decisions" | "guidelines" | "pitfalls" | "processes", unknown>>;
4051
4051
  maturity: z.ZodOptional<z.ZodEnum<["draft", "verified", "proven"]>>;
4052
4052
  knowledge_layer: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
4053
4053
  layer_reason: z.ZodOptional<z.ZodString>;
@@ -4081,7 +4081,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4081
4081
  relevance_paths?: string[] | undefined;
4082
4082
  entities?: string[] | undefined;
4083
4083
  id?: string | undefined;
4084
- knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes" | undefined;
4084
+ knowledge_type?: unknown;
4085
4085
  maturity?: "draft" | "verified" | "proven" | undefined;
4086
4086
  knowledge_layer?: "personal" | "team" | undefined;
4087
4087
  layer_reason?: string | undefined;
@@ -5843,6 +5843,46 @@ declare const knowledgeArchiveAttemptedEventSchema: z.ZodObject<{
5843
5843
  session_id?: string | undefined;
5844
5844
  reason?: string | undefined;
5845
5845
  }>;
5846
+ declare const knowledgeUnarchivedEventSchema: z.ZodObject<{
5847
+ event_type: z.ZodLiteral<"knowledge_unarchived">;
5848
+ stable_id: z.ZodOptional<z.ZodString>;
5849
+ timestamp: z.ZodString;
5850
+ reason: z.ZodOptional<z.ZodString>;
5851
+ archive_path: z.ZodOptional<z.ZodString>;
5852
+ restored_to: z.ZodOptional<z.ZodString>;
5853
+ kind: z.ZodLiteral<"fabric-event">;
5854
+ id: z.ZodString;
5855
+ ts: z.ZodNumber;
5856
+ schema_version: z.ZodLiteral<1>;
5857
+ correlation_id: z.ZodOptional<z.ZodString>;
5858
+ session_id: z.ZodOptional<z.ZodString>;
5859
+ }, "strip", z.ZodTypeAny, {
5860
+ id: string;
5861
+ ts: number;
5862
+ schema_version: 1;
5863
+ kind: "fabric-event";
5864
+ event_type: "knowledge_unarchived";
5865
+ timestamp: string;
5866
+ stable_id?: string | undefined;
5867
+ correlation_id?: string | undefined;
5868
+ session_id?: string | undefined;
5869
+ reason?: string | undefined;
5870
+ archive_path?: string | undefined;
5871
+ restored_to?: string | undefined;
5872
+ }, {
5873
+ id: string;
5874
+ ts: number;
5875
+ schema_version: 1;
5876
+ kind: "fabric-event";
5877
+ event_type: "knowledge_unarchived";
5878
+ timestamp: string;
5879
+ stable_id?: string | undefined;
5880
+ correlation_id?: string | undefined;
5881
+ session_id?: string | undefined;
5882
+ reason?: string | undefined;
5883
+ archive_path?: string | undefined;
5884
+ restored_to?: string | undefined;
5885
+ }>;
5846
5886
  declare const knowledgeDeferredEventSchema: z.ZodObject<{
5847
5887
  event_type: z.ZodLiteral<"knowledge_deferred">;
5848
5888
  stable_id: z.ZodOptional<z.ZodString>;
@@ -6283,10 +6323,10 @@ declare const eventsRotatedEventSchema: z.ZodObject<{
6283
6323
  schema_version: 1;
6284
6324
  kind: "fabric-event";
6285
6325
  event_type: "events_rotated";
6326
+ archive_path: string;
6286
6327
  cutoff_ts: string;
6287
6328
  archived_count: number;
6288
6329
  kept_count: number;
6289
- archive_path: string;
6290
6330
  correlation_id?: string | undefined;
6291
6331
  session_id?: string | undefined;
6292
6332
  }, {
@@ -6295,10 +6335,10 @@ declare const eventsRotatedEventSchema: z.ZodObject<{
6295
6335
  schema_version: 1;
6296
6336
  kind: "fabric-event";
6297
6337
  event_type: "events_rotated";
6338
+ archive_path: string;
6298
6339
  cutoff_ts: string;
6299
6340
  archived_count: number;
6300
6341
  kept_count: number;
6301
- archive_path: string;
6302
6342
  correlation_id?: string | undefined;
6303
6343
  session_id?: string | undefined;
6304
6344
  }>;
@@ -7420,6 +7460,45 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
7420
7460
  correlation_id?: string | undefined;
7421
7461
  session_id?: string | undefined;
7422
7462
  reason?: string | undefined;
7463
+ }>, z.ZodObject<{
7464
+ event_type: z.ZodLiteral<"knowledge_unarchived">;
7465
+ stable_id: z.ZodOptional<z.ZodString>;
7466
+ timestamp: z.ZodString;
7467
+ reason: z.ZodOptional<z.ZodString>;
7468
+ archive_path: z.ZodOptional<z.ZodString>;
7469
+ restored_to: z.ZodOptional<z.ZodString>;
7470
+ kind: z.ZodLiteral<"fabric-event">;
7471
+ id: z.ZodString;
7472
+ ts: z.ZodNumber;
7473
+ schema_version: z.ZodLiteral<1>;
7474
+ correlation_id: z.ZodOptional<z.ZodString>;
7475
+ session_id: z.ZodOptional<z.ZodString>;
7476
+ }, "strip", z.ZodTypeAny, {
7477
+ id: string;
7478
+ ts: number;
7479
+ schema_version: 1;
7480
+ kind: "fabric-event";
7481
+ event_type: "knowledge_unarchived";
7482
+ timestamp: string;
7483
+ stable_id?: string | undefined;
7484
+ correlation_id?: string | undefined;
7485
+ session_id?: string | undefined;
7486
+ reason?: string | undefined;
7487
+ archive_path?: string | undefined;
7488
+ restored_to?: string | undefined;
7489
+ }, {
7490
+ id: string;
7491
+ ts: number;
7492
+ schema_version: 1;
7493
+ kind: "fabric-event";
7494
+ event_type: "knowledge_unarchived";
7495
+ timestamp: string;
7496
+ stable_id?: string | undefined;
7497
+ correlation_id?: string | undefined;
7498
+ session_id?: string | undefined;
7499
+ reason?: string | undefined;
7500
+ archive_path?: string | undefined;
7501
+ restored_to?: string | undefined;
7423
7502
  }>, z.ZodObject<{
7424
7503
  event_type: z.ZodLiteral<"knowledge_deferred">;
7425
7504
  stable_id: z.ZodOptional<z.ZodString>;
@@ -7885,10 +7964,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
7885
7964
  schema_version: 1;
7886
7965
  kind: "fabric-event";
7887
7966
  event_type: "events_rotated";
7967
+ archive_path: string;
7888
7968
  cutoff_ts: string;
7889
7969
  archived_count: number;
7890
7970
  kept_count: number;
7891
- archive_path: string;
7892
7971
  correlation_id?: string | undefined;
7893
7972
  session_id?: string | undefined;
7894
7973
  }, {
@@ -7897,10 +7976,10 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
7897
7976
  schema_version: 1;
7898
7977
  kind: "fabric-event";
7899
7978
  event_type: "events_rotated";
7979
+ archive_path: string;
7900
7980
  cutoff_ts: string;
7901
7981
  archived_count: number;
7902
7982
  kept_count: number;
7903
- archive_path: string;
7904
7983
  correlation_id?: string | undefined;
7905
7984
  session_id?: string | undefined;
7906
7985
  }>, z.ZodObject<{
@@ -8035,6 +8114,7 @@ type KnowledgeSlugRenamedEvent = z.infer<typeof knowledgeSlugRenamedEventSchema>
8035
8114
  type KnowledgeDemotedEvent = z.infer<typeof knowledgeDemotedEventSchema>;
8036
8115
  type KnowledgeArchivedEvent = z.infer<typeof knowledgeArchivedEventSchema>;
8037
8116
  type KnowledgeArchiveAttemptedEvent = z.infer<typeof knowledgeArchiveAttemptedEventSchema>;
8117
+ type KnowledgeUnarchivedEvent = z.infer<typeof knowledgeUnarchivedEventSchema>;
8038
8118
  type KnowledgeDeferredEvent = z.infer<typeof knowledgeDeferredEventSchema>;
8039
8119
  type KnowledgeRejectedEvent = z.infer<typeof knowledgeRejectedEventSchema>;
8040
8120
  type KnowledgeConsumedEvent = z.infer<typeof knowledgeConsumedEventSchema>;
@@ -8051,7 +8131,7 @@ type EventsRotatedEvent = z.infer<typeof eventsRotatedEventSchema>;
8051
8131
  type ServeLockClearedEvent = z.infer<typeof serveLockClearedEventSchema>;
8052
8132
  type KnowledgeEnrichedEvent = z.infer<typeof knowledgeEnrichedEventSchema>;
8053
8133
  type SessionArchiveAttemptedEvent = z.infer<typeof sessionArchiveAttemptedEventSchema>;
8054
- type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | InstallDiffAppliedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent | CiteContractPolicyActivatedEvent | KnowledgeMetaAutoHealedEvent | EventsRotatedEvent | ServeLockClearedEvent | KnowledgeEnrichedEvent | SessionArchiveAttemptedEvent;
8134
+ type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | InstallDiffAppliedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeUnarchivedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent | CiteContractPolicyActivatedEvent | KnowledgeMetaAutoHealedEvent | EventsRotatedEvent | ServeLockClearedEvent | KnowledgeEnrichedEvent | SessionArchiveAttemptedEvent;
8055
8135
  type EventLedgerEventType = EventLedgerEvent["event_type"];
8056
8136
  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;
8057
8137
  type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
@@ -8086,4 +8166,4 @@ interface ParseCiteLineResult {
8086
8166
  */
8087
8167
  declare function parseCiteLine(raw: string): ParseCiteLineResult;
8088
8168
 
8089
- 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 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, 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, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, onboardSlotSchema, parseCiteLine, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, withDerivedAgentsMetaNodeDefaults };
8169
+ 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 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, 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 };