@fenglimg/fabric-shared 2.1.0-rc.2 → 2.2.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-R2J7DAED.js → chunk-7TZ2PMVH.js} +78 -2
- package/dist/{chunk-WVPDH4BF.js → chunk-JEXTOQVV.js} +31 -2
- package/dist/{chunk-MDWTGOAY.js → chunk-TX2XZ7AW.js} +1 -0
- package/dist/i18n/index.js +1 -1
- package/dist/{index-GQpaWTm-.d.ts → index-J3Xn5h2J.d.ts} +24 -1
- package/dist/index.d.ts +1144 -230
- package/dist/index.js +320 -20
- package/dist/node/atomic-write.d.ts +26 -1
- package/dist/node/atomic-write.js +45 -2
- package/dist/node/mcp-payload-guard.d.ts +32 -1
- package/dist/node/mcp-payload-guard.js +15 -1
- package/dist/schemas/api-contracts.d.ts +47 -0
- package/dist/schemas/api-contracts.js +1 -1
- package/dist/templates/bootstrap-canonical.d.ts +1 -1
- package/dist/templates/bootstrap-canonical.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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-
|
|
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-
|
|
3
|
-
|
|
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-J3Xn5h2J.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 planContextTopKSchema, u as selectionTokenTtlMsSchema } from './index-J3Xn5h2J.js';
|
|
3
|
+
import { Translator } from './i18n/index.js';
|
|
4
|
+
export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, resolveFabricLocale, zhCNMessages } from './i18n/index.js';
|
|
4
5
|
import { z } from 'zod';
|
|
5
6
|
import { Layer, KnowledgeType, StableId } from './schemas/api-contracts.js';
|
|
6
7
|
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';
|
|
@@ -34,6 +35,7 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
34
35
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
35
36
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
36
37
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
38
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
37
39
|
}, "strict", z.ZodTypeAny, {
|
|
38
40
|
relevance_scope: "narrow" | "broad";
|
|
39
41
|
relevance_paths: string[];
|
|
@@ -50,6 +52,7 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
50
52
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
51
53
|
layer_reason?: string | undefined;
|
|
52
54
|
tags?: string[] | undefined;
|
|
55
|
+
related?: string[] | undefined;
|
|
53
56
|
}, {
|
|
54
57
|
summary: string;
|
|
55
58
|
intent_clues: string[];
|
|
@@ -66,6 +69,7 @@ declare const ruleDescriptionSchema: z.ZodObject<{
|
|
|
66
69
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
67
70
|
layer_reason?: string | undefined;
|
|
68
71
|
tags?: string[] | undefined;
|
|
72
|
+
related?: string[] | undefined;
|
|
69
73
|
}>;
|
|
70
74
|
declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
71
75
|
stable_id: z.ZodString;
|
|
@@ -88,6 +92,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
88
92
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
89
93
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
90
94
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
95
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
91
96
|
}, "strict", z.ZodTypeAny, {
|
|
92
97
|
relevance_scope: "narrow" | "broad";
|
|
93
98
|
relevance_paths: string[];
|
|
@@ -104,6 +109,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
104
109
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
105
110
|
layer_reason?: string | undefined;
|
|
106
111
|
tags?: string[] | undefined;
|
|
112
|
+
related?: string[] | undefined;
|
|
107
113
|
}, {
|
|
108
114
|
summary: string;
|
|
109
115
|
intent_clues: string[];
|
|
@@ -120,6 +126,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
120
126
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
121
127
|
layer_reason?: string | undefined;
|
|
122
128
|
tags?: string[] | undefined;
|
|
129
|
+
related?: string[] | undefined;
|
|
123
130
|
}>;
|
|
124
131
|
}, "strict", z.ZodTypeAny, {
|
|
125
132
|
description: {
|
|
@@ -138,6 +145,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
138
145
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
139
146
|
layer_reason?: string | undefined;
|
|
140
147
|
tags?: string[] | undefined;
|
|
148
|
+
related?: string[] | undefined;
|
|
141
149
|
};
|
|
142
150
|
stable_id: string;
|
|
143
151
|
level: "L0" | "L1" | "L2";
|
|
@@ -160,6 +168,7 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
|
|
|
160
168
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
161
169
|
layer_reason?: string | undefined;
|
|
162
170
|
tags?: string[] | undefined;
|
|
171
|
+
related?: string[] | undefined;
|
|
163
172
|
};
|
|
164
173
|
stable_id: string;
|
|
165
174
|
level: "L0" | "L1" | "L2";
|
|
@@ -199,6 +208,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
199
208
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
200
209
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
201
210
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
211
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
202
212
|
}, "strict", z.ZodTypeAny, {
|
|
203
213
|
relevance_scope: "narrow" | "broad";
|
|
204
214
|
relevance_paths: string[];
|
|
@@ -215,6 +225,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
215
225
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
216
226
|
layer_reason?: string | undefined;
|
|
217
227
|
tags?: string[] | undefined;
|
|
228
|
+
related?: string[] | undefined;
|
|
218
229
|
}, {
|
|
219
230
|
summary: string;
|
|
220
231
|
intent_clues: string[];
|
|
@@ -231,6 +242,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
231
242
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
232
243
|
layer_reason?: string | undefined;
|
|
233
244
|
tags?: string[] | undefined;
|
|
245
|
+
related?: string[] | undefined;
|
|
234
246
|
}>>;
|
|
235
247
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
236
248
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -266,6 +278,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
266
278
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
267
279
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
268
280
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
281
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
269
282
|
}, "strict", z.ZodTypeAny, {
|
|
270
283
|
relevance_scope: "narrow" | "broad";
|
|
271
284
|
relevance_paths: string[];
|
|
@@ -282,6 +295,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
282
295
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
283
296
|
layer_reason?: string | undefined;
|
|
284
297
|
tags?: string[] | undefined;
|
|
298
|
+
related?: string[] | undefined;
|
|
285
299
|
}, {
|
|
286
300
|
summary: string;
|
|
287
301
|
intent_clues: string[];
|
|
@@ -298,6 +312,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
298
312
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
299
313
|
layer_reason?: string | undefined;
|
|
300
314
|
tags?: string[] | undefined;
|
|
315
|
+
related?: string[] | undefined;
|
|
301
316
|
}>>;
|
|
302
317
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
303
318
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -333,6 +348,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
333
348
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
334
349
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
335
350
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
351
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
336
352
|
}, "strict", z.ZodTypeAny, {
|
|
337
353
|
relevance_scope: "narrow" | "broad";
|
|
338
354
|
relevance_paths: string[];
|
|
@@ -349,6 +365,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
349
365
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
350
366
|
layer_reason?: string | undefined;
|
|
351
367
|
tags?: string[] | undefined;
|
|
368
|
+
related?: string[] | undefined;
|
|
352
369
|
}, {
|
|
353
370
|
summary: string;
|
|
354
371
|
intent_clues: string[];
|
|
@@ -365,6 +382,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
365
382
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
366
383
|
layer_reason?: string | undefined;
|
|
367
384
|
tags?: string[] | undefined;
|
|
385
|
+
related?: string[] | undefined;
|
|
368
386
|
}>>;
|
|
369
387
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
370
388
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
@@ -400,6 +418,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
400
418
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
401
419
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
402
420
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
421
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
403
422
|
}, "strict", z.ZodTypeAny, {
|
|
404
423
|
relevance_scope: "narrow" | "broad";
|
|
405
424
|
relevance_paths: string[];
|
|
@@ -416,6 +435,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
416
435
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
417
436
|
layer_reason?: string | undefined;
|
|
418
437
|
tags?: string[] | undefined;
|
|
438
|
+
related?: string[] | undefined;
|
|
419
439
|
}, {
|
|
420
440
|
summary: string;
|
|
421
441
|
intent_clues: string[];
|
|
@@ -432,6 +452,7 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
432
452
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
433
453
|
layer_reason?: string | undefined;
|
|
434
454
|
tags?: string[] | undefined;
|
|
455
|
+
related?: string[] | undefined;
|
|
435
456
|
}>>;
|
|
436
457
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
437
458
|
}, z.ZodTypeAny, "passthrough">, unknown>;
|
|
@@ -541,6 +562,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
541
562
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
542
563
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
543
564
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
565
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
544
566
|
}, "strict", z.ZodTypeAny, {
|
|
545
567
|
relevance_scope: "narrow" | "broad";
|
|
546
568
|
relevance_paths: string[];
|
|
@@ -557,6 +579,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
557
579
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
558
580
|
layer_reason?: string | undefined;
|
|
559
581
|
tags?: string[] | undefined;
|
|
582
|
+
related?: string[] | undefined;
|
|
560
583
|
}, {
|
|
561
584
|
summary: string;
|
|
562
585
|
intent_clues: string[];
|
|
@@ -573,6 +596,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
573
596
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
574
597
|
layer_reason?: string | undefined;
|
|
575
598
|
tags?: string[] | undefined;
|
|
599
|
+
related?: string[] | undefined;
|
|
576
600
|
}>>;
|
|
577
601
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
578
602
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -608,6 +632,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
608
632
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
609
633
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
610
634
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
635
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
611
636
|
}, "strict", z.ZodTypeAny, {
|
|
612
637
|
relevance_scope: "narrow" | "broad";
|
|
613
638
|
relevance_paths: string[];
|
|
@@ -624,6 +649,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
624
649
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
625
650
|
layer_reason?: string | undefined;
|
|
626
651
|
tags?: string[] | undefined;
|
|
652
|
+
related?: string[] | undefined;
|
|
627
653
|
}, {
|
|
628
654
|
summary: string;
|
|
629
655
|
intent_clues: string[];
|
|
@@ -640,6 +666,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
640
666
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
641
667
|
layer_reason?: string | undefined;
|
|
642
668
|
tags?: string[] | undefined;
|
|
669
|
+
related?: string[] | undefined;
|
|
643
670
|
}>>;
|
|
644
671
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
645
672
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -675,6 +702,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
675
702
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
676
703
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
677
704
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
705
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
678
706
|
}, "strict", z.ZodTypeAny, {
|
|
679
707
|
relevance_scope: "narrow" | "broad";
|
|
680
708
|
relevance_paths: string[];
|
|
@@ -691,6 +719,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
691
719
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
692
720
|
layer_reason?: string | undefined;
|
|
693
721
|
tags?: string[] | undefined;
|
|
722
|
+
related?: string[] | undefined;
|
|
694
723
|
}, {
|
|
695
724
|
summary: string;
|
|
696
725
|
intent_clues: string[];
|
|
@@ -707,6 +736,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
707
736
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
708
737
|
layer_reason?: string | undefined;
|
|
709
738
|
tags?: string[] | undefined;
|
|
739
|
+
related?: string[] | undefined;
|
|
710
740
|
}>>;
|
|
711
741
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
712
742
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
@@ -742,6 +772,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
742
772
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
743
773
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
744
774
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
775
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
745
776
|
}, "strict", z.ZodTypeAny, {
|
|
746
777
|
relevance_scope: "narrow" | "broad";
|
|
747
778
|
relevance_paths: string[];
|
|
@@ -758,6 +789,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
758
789
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
759
790
|
layer_reason?: string | undefined;
|
|
760
791
|
tags?: string[] | undefined;
|
|
792
|
+
related?: string[] | undefined;
|
|
761
793
|
}, {
|
|
762
794
|
summary: string;
|
|
763
795
|
intent_clues: string[];
|
|
@@ -774,6 +806,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
774
806
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
775
807
|
layer_reason?: string | undefined;
|
|
776
808
|
tags?: string[] | undefined;
|
|
809
|
+
related?: string[] | undefined;
|
|
777
810
|
}>>;
|
|
778
811
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
779
812
|
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
@@ -882,6 +915,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
882
915
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
883
916
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
884
917
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
918
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
885
919
|
}, "strict", z.ZodTypeAny, {
|
|
886
920
|
relevance_scope: "narrow" | "broad";
|
|
887
921
|
relevance_paths: string[];
|
|
@@ -898,6 +932,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
898
932
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
899
933
|
layer_reason?: string | undefined;
|
|
900
934
|
tags?: string[] | undefined;
|
|
935
|
+
related?: string[] | undefined;
|
|
901
936
|
}, {
|
|
902
937
|
summary: string;
|
|
903
938
|
intent_clues: string[];
|
|
@@ -914,6 +949,7 @@ declare const agentsMetaSchema: z.ZodObject<{
|
|
|
914
949
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
915
950
|
layer_reason?: string | undefined;
|
|
916
951
|
tags?: string[] | undefined;
|
|
952
|
+
related?: string[] | undefined;
|
|
917
953
|
}>>;
|
|
918
954
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
919
955
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -2955,7 +2991,11 @@ declare function createStoreResolver(): StoreResolver;
|
|
|
2955
2991
|
|
|
2956
2992
|
declare function readStoreIdentity(absDir: string): StoreIdentity | null;
|
|
2957
2993
|
declare function recognizeStoreDir(absDir: string): boolean;
|
|
2958
|
-
|
|
2994
|
+
type FindStoreExecutableViolationsOptions = {
|
|
2995
|
+
maxDepth?: number;
|
|
2996
|
+
maxEntries?: number;
|
|
2997
|
+
};
|
|
2998
|
+
declare function findStoreExecutableViolations(absDir: string, options?: FindStoreExecutableViolationsOptions): string[];
|
|
2959
2999
|
|
|
2960
3000
|
interface QualifiedCandidate {
|
|
2961
3001
|
store_uuid: string;
|
|
@@ -3024,6 +3064,16 @@ declare function scanForSecrets(content: string): SecretFinding[];
|
|
|
3024
3064
|
declare function hasSecrets(content: string): boolean;
|
|
3025
3065
|
declare const REDACTION_PLACEHOLDER_PREFIX = "[REDACTED:";
|
|
3026
3066
|
declare function redactSecrets(content: string): string;
|
|
3067
|
+
declare function scrubRemoteUrl(remote: string): string;
|
|
3068
|
+
|
|
3069
|
+
type ScanRecommendationInput = {
|
|
3070
|
+
frameworkKind: string;
|
|
3071
|
+
hasMeta?: boolean;
|
|
3072
|
+
readmeOk?: boolean;
|
|
3073
|
+
hasContributing?: boolean;
|
|
3074
|
+
hasExistingFabric?: boolean;
|
|
3075
|
+
};
|
|
3076
|
+
declare function buildScanRecommendations(input: ScanRecommendationInput, t: Translator): string[];
|
|
3027
3077
|
|
|
3028
3078
|
type StoreVisibility = "shared" | "personal";
|
|
3029
3079
|
interface CrossStoreRefViolation {
|
|
@@ -3517,13 +3567,13 @@ declare const forensicFrameworkSchema: z.ZodObject<{
|
|
|
3517
3567
|
evidence: z.ZodArray<z.ZodString, "many">;
|
|
3518
3568
|
}, "strip", z.ZodTypeAny, {
|
|
3519
3569
|
version: string;
|
|
3520
|
-
evidence: string[];
|
|
3521
3570
|
kind: string;
|
|
3571
|
+
evidence: string[];
|
|
3522
3572
|
subkind: string;
|
|
3523
3573
|
}, {
|
|
3524
3574
|
version: string;
|
|
3525
|
-
evidence: string[];
|
|
3526
3575
|
kind: string;
|
|
3576
|
+
evidence: string[];
|
|
3527
3577
|
subkind: string;
|
|
3528
3578
|
}>;
|
|
3529
3579
|
declare const forensicReadmeSchema: z.ZodObject<{
|
|
@@ -3575,13 +3625,13 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
3575
3625
|
evidence: z.ZodArray<z.ZodString, "many">;
|
|
3576
3626
|
}, "strip", z.ZodTypeAny, {
|
|
3577
3627
|
version: string;
|
|
3578
|
-
evidence: string[];
|
|
3579
3628
|
kind: string;
|
|
3629
|
+
evidence: string[];
|
|
3580
3630
|
subkind: string;
|
|
3581
3631
|
}, {
|
|
3582
3632
|
version: string;
|
|
3583
|
-
evidence: string[];
|
|
3584
3633
|
kind: string;
|
|
3634
|
+
evidence: string[];
|
|
3585
3635
|
subkind: string;
|
|
3586
3636
|
}>;
|
|
3587
3637
|
topology: z.ZodObject<{
|
|
@@ -3742,8 +3792,8 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
3742
3792
|
target: string;
|
|
3743
3793
|
framework: {
|
|
3744
3794
|
version: string;
|
|
3745
|
-
evidence: string[];
|
|
3746
3795
|
kind: string;
|
|
3796
|
+
evidence: string[];
|
|
3747
3797
|
subkind: string;
|
|
3748
3798
|
};
|
|
3749
3799
|
generated_by: string;
|
|
@@ -3804,8 +3854,8 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
3804
3854
|
target: string;
|
|
3805
3855
|
framework: {
|
|
3806
3856
|
version: string;
|
|
3807
|
-
evidence: string[];
|
|
3808
3857
|
kind: string;
|
|
3858
|
+
evidence: string[];
|
|
3809
3859
|
subkind: string;
|
|
3810
3860
|
};
|
|
3811
3861
|
generated_by: string;
|
|
@@ -4263,6 +4313,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4263
4313
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4264
4314
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4265
4315
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4316
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4266
4317
|
}, "strict", z.ZodTypeAny, {
|
|
4267
4318
|
relevance_scope: "narrow" | "broad";
|
|
4268
4319
|
relevance_paths: string[];
|
|
@@ -4279,6 +4330,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4279
4330
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4280
4331
|
layer_reason?: string | undefined;
|
|
4281
4332
|
tags?: string[] | undefined;
|
|
4333
|
+
related?: string[] | undefined;
|
|
4282
4334
|
}, {
|
|
4283
4335
|
summary: string;
|
|
4284
4336
|
intent_clues: string[];
|
|
@@ -4295,6 +4347,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4295
4347
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4296
4348
|
layer_reason?: string | undefined;
|
|
4297
4349
|
tags?: string[] | undefined;
|
|
4350
|
+
related?: string[] | undefined;
|
|
4298
4351
|
}>>;
|
|
4299
4352
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4300
4353
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -4330,6 +4383,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4330
4383
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4331
4384
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4332
4385
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4386
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4333
4387
|
}, "strict", z.ZodTypeAny, {
|
|
4334
4388
|
relevance_scope: "narrow" | "broad";
|
|
4335
4389
|
relevance_paths: string[];
|
|
@@ -4346,6 +4400,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4346
4400
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4347
4401
|
layer_reason?: string | undefined;
|
|
4348
4402
|
tags?: string[] | undefined;
|
|
4403
|
+
related?: string[] | undefined;
|
|
4349
4404
|
}, {
|
|
4350
4405
|
summary: string;
|
|
4351
4406
|
intent_clues: string[];
|
|
@@ -4362,6 +4417,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4362
4417
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4363
4418
|
layer_reason?: string | undefined;
|
|
4364
4419
|
tags?: string[] | undefined;
|
|
4420
|
+
related?: string[] | undefined;
|
|
4365
4421
|
}>>;
|
|
4366
4422
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4367
4423
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -4397,6 +4453,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4397
4453
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4398
4454
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4399
4455
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4456
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4400
4457
|
}, "strict", z.ZodTypeAny, {
|
|
4401
4458
|
relevance_scope: "narrow" | "broad";
|
|
4402
4459
|
relevance_paths: string[];
|
|
@@ -4413,6 +4470,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4413
4470
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4414
4471
|
layer_reason?: string | undefined;
|
|
4415
4472
|
tags?: string[] | undefined;
|
|
4473
|
+
related?: string[] | undefined;
|
|
4416
4474
|
}, {
|
|
4417
4475
|
summary: string;
|
|
4418
4476
|
intent_clues: string[];
|
|
@@ -4429,6 +4487,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4429
4487
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4430
4488
|
layer_reason?: string | undefined;
|
|
4431
4489
|
tags?: string[] | undefined;
|
|
4490
|
+
related?: string[] | undefined;
|
|
4432
4491
|
}>>;
|
|
4433
4492
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4434
4493
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
@@ -4464,6 +4523,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4464
4523
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4465
4524
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4466
4525
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4526
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4467
4527
|
}, "strict", z.ZodTypeAny, {
|
|
4468
4528
|
relevance_scope: "narrow" | "broad";
|
|
4469
4529
|
relevance_paths: string[];
|
|
@@ -4480,6 +4540,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4480
4540
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4481
4541
|
layer_reason?: string | undefined;
|
|
4482
4542
|
tags?: string[] | undefined;
|
|
4543
|
+
related?: string[] | undefined;
|
|
4483
4544
|
}, {
|
|
4484
4545
|
summary: string;
|
|
4485
4546
|
intent_clues: string[];
|
|
@@ -4496,6 +4557,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4496
4557
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4497
4558
|
layer_reason?: string | undefined;
|
|
4498
4559
|
tags?: string[] | undefined;
|
|
4560
|
+
related?: string[] | undefined;
|
|
4499
4561
|
}>>;
|
|
4500
4562
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4501
4563
|
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
@@ -4604,6 +4666,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4604
4666
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4605
4667
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4606
4668
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4669
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4607
4670
|
}, "strict", z.ZodTypeAny, {
|
|
4608
4671
|
relevance_scope: "narrow" | "broad";
|
|
4609
4672
|
relevance_paths: string[];
|
|
@@ -4620,6 +4683,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4620
4683
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4621
4684
|
layer_reason?: string | undefined;
|
|
4622
4685
|
tags?: string[] | undefined;
|
|
4686
|
+
related?: string[] | undefined;
|
|
4623
4687
|
}, {
|
|
4624
4688
|
summary: string;
|
|
4625
4689
|
intent_clues: string[];
|
|
@@ -4636,6 +4700,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4636
4700
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4637
4701
|
layer_reason?: string | undefined;
|
|
4638
4702
|
tags?: string[] | undefined;
|
|
4703
|
+
related?: string[] | undefined;
|
|
4639
4704
|
}>>;
|
|
4640
4705
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4641
4706
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -4712,6 +4777,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4712
4777
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4713
4778
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
4714
4779
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4780
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4715
4781
|
}, "strict", z.ZodTypeAny, {
|
|
4716
4782
|
relevance_scope: "narrow" | "broad";
|
|
4717
4783
|
relevance_paths: string[];
|
|
@@ -4728,6 +4794,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4728
4794
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4729
4795
|
layer_reason?: string | undefined;
|
|
4730
4796
|
tags?: string[] | undefined;
|
|
4797
|
+
related?: string[] | undefined;
|
|
4731
4798
|
}, {
|
|
4732
4799
|
summary: string;
|
|
4733
4800
|
intent_clues: string[];
|
|
@@ -4744,6 +4811,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
|
|
|
4744
4811
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
4745
4812
|
layer_reason?: string | undefined;
|
|
4746
4813
|
tags?: string[] | undefined;
|
|
4814
|
+
related?: string[] | undefined;
|
|
4747
4815
|
}>>;
|
|
4748
4816
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4749
4817
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -5087,13 +5155,13 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
5087
5155
|
evidence: z.ZodArray<z.ZodString, "many">;
|
|
5088
5156
|
}, "strip", z.ZodTypeAny, {
|
|
5089
5157
|
version: string;
|
|
5090
|
-
evidence: string[];
|
|
5091
5158
|
kind: string;
|
|
5159
|
+
evidence: string[];
|
|
5092
5160
|
subkind: string;
|
|
5093
5161
|
}, {
|
|
5094
5162
|
version: string;
|
|
5095
|
-
evidence: string[];
|
|
5096
5163
|
kind: string;
|
|
5164
|
+
evidence: string[];
|
|
5097
5165
|
subkind: string;
|
|
5098
5166
|
}>;
|
|
5099
5167
|
topology: z.ZodObject<{
|
|
@@ -5254,8 +5322,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
5254
5322
|
target: string;
|
|
5255
5323
|
framework: {
|
|
5256
5324
|
version: string;
|
|
5257
|
-
evidence: string[];
|
|
5258
5325
|
kind: string;
|
|
5326
|
+
evidence: string[];
|
|
5259
5327
|
subkind: string;
|
|
5260
5328
|
};
|
|
5261
5329
|
generated_by: string;
|
|
@@ -5316,8 +5384,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
5316
5384
|
target: string;
|
|
5317
5385
|
framework: {
|
|
5318
5386
|
version: string;
|
|
5319
|
-
evidence: string[];
|
|
5320
5387
|
kind: string;
|
|
5388
|
+
evidence: string[];
|
|
5321
5389
|
subkind: string;
|
|
5322
5390
|
};
|
|
5323
5391
|
generated_by: string;
|
|
@@ -5381,8 +5449,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
5381
5449
|
target: string;
|
|
5382
5450
|
framework: {
|
|
5383
5451
|
version: string;
|
|
5384
|
-
evidence: string[];
|
|
5385
5452
|
kind: string;
|
|
5453
|
+
evidence: string[];
|
|
5386
5454
|
subkind: string;
|
|
5387
5455
|
};
|
|
5388
5456
|
generated_by: string;
|
|
@@ -5446,8 +5514,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
5446
5514
|
target: string;
|
|
5447
5515
|
framework: {
|
|
5448
5516
|
version: string;
|
|
5449
|
-
evidence: string[];
|
|
5450
5517
|
kind: string;
|
|
5518
|
+
evidence: string[];
|
|
5451
5519
|
subkind: string;
|
|
5452
5520
|
};
|
|
5453
5521
|
generated_by: string;
|
|
@@ -5541,6 +5609,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5541
5609
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5542
5610
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
5543
5611
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5612
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5544
5613
|
}, "strict", z.ZodTypeAny, {
|
|
5545
5614
|
relevance_scope: "narrow" | "broad";
|
|
5546
5615
|
relevance_paths: string[];
|
|
@@ -5557,6 +5626,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5557
5626
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5558
5627
|
layer_reason?: string | undefined;
|
|
5559
5628
|
tags?: string[] | undefined;
|
|
5629
|
+
related?: string[] | undefined;
|
|
5560
5630
|
}, {
|
|
5561
5631
|
summary: string;
|
|
5562
5632
|
intent_clues: string[];
|
|
@@ -5573,6 +5643,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5573
5643
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5574
5644
|
layer_reason?: string | undefined;
|
|
5575
5645
|
tags?: string[] | undefined;
|
|
5646
|
+
related?: string[] | undefined;
|
|
5576
5647
|
}>>;
|
|
5577
5648
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5578
5649
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -5608,6 +5679,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5608
5679
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5609
5680
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
5610
5681
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5682
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5611
5683
|
}, "strict", z.ZodTypeAny, {
|
|
5612
5684
|
relevance_scope: "narrow" | "broad";
|
|
5613
5685
|
relevance_paths: string[];
|
|
@@ -5624,6 +5696,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5624
5696
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5625
5697
|
layer_reason?: string | undefined;
|
|
5626
5698
|
tags?: string[] | undefined;
|
|
5699
|
+
related?: string[] | undefined;
|
|
5627
5700
|
}, {
|
|
5628
5701
|
summary: string;
|
|
5629
5702
|
intent_clues: string[];
|
|
@@ -5640,6 +5713,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5640
5713
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5641
5714
|
layer_reason?: string | undefined;
|
|
5642
5715
|
tags?: string[] | undefined;
|
|
5716
|
+
related?: string[] | undefined;
|
|
5643
5717
|
}>>;
|
|
5644
5718
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5645
5719
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -5675,6 +5749,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5675
5749
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5676
5750
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
5677
5751
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5752
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5678
5753
|
}, "strict", z.ZodTypeAny, {
|
|
5679
5754
|
relevance_scope: "narrow" | "broad";
|
|
5680
5755
|
relevance_paths: string[];
|
|
@@ -5691,6 +5766,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5691
5766
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5692
5767
|
layer_reason?: string | undefined;
|
|
5693
5768
|
tags?: string[] | undefined;
|
|
5769
|
+
related?: string[] | undefined;
|
|
5694
5770
|
}, {
|
|
5695
5771
|
summary: string;
|
|
5696
5772
|
intent_clues: string[];
|
|
@@ -5707,6 +5783,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5707
5783
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5708
5784
|
layer_reason?: string | undefined;
|
|
5709
5785
|
tags?: string[] | undefined;
|
|
5786
|
+
related?: string[] | undefined;
|
|
5710
5787
|
}>>;
|
|
5711
5788
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5712
5789
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
@@ -5742,6 +5819,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5742
5819
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5743
5820
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
5744
5821
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5822
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5745
5823
|
}, "strict", z.ZodTypeAny, {
|
|
5746
5824
|
relevance_scope: "narrow" | "broad";
|
|
5747
5825
|
relevance_paths: string[];
|
|
@@ -5758,6 +5836,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5758
5836
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5759
5837
|
layer_reason?: string | undefined;
|
|
5760
5838
|
tags?: string[] | undefined;
|
|
5839
|
+
related?: string[] | undefined;
|
|
5761
5840
|
}, {
|
|
5762
5841
|
summary: string;
|
|
5763
5842
|
intent_clues: string[];
|
|
@@ -5774,6 +5853,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5774
5853
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5775
5854
|
layer_reason?: string | undefined;
|
|
5776
5855
|
tags?: string[] | undefined;
|
|
5856
|
+
related?: string[] | undefined;
|
|
5777
5857
|
}>>;
|
|
5778
5858
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5779
5859
|
}, z.ZodTypeAny, "passthrough">, unknown>>;
|
|
@@ -5882,6 +5962,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5882
5962
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5883
5963
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
5884
5964
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5965
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5885
5966
|
}, "strict", z.ZodTypeAny, {
|
|
5886
5967
|
relevance_scope: "narrow" | "broad";
|
|
5887
5968
|
relevance_paths: string[];
|
|
@@ -5898,6 +5979,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5898
5979
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5899
5980
|
layer_reason?: string | undefined;
|
|
5900
5981
|
tags?: string[] | undefined;
|
|
5982
|
+
related?: string[] | undefined;
|
|
5901
5983
|
}, {
|
|
5902
5984
|
summary: string;
|
|
5903
5985
|
intent_clues: string[];
|
|
@@ -5914,6 +5996,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5914
5996
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
5915
5997
|
layer_reason?: string | undefined;
|
|
5916
5998
|
tags?: string[] | undefined;
|
|
5999
|
+
related?: string[] | undefined;
|
|
5917
6000
|
}>>;
|
|
5918
6001
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5919
6002
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -5990,6 +6073,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5990
6073
|
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5991
6074
|
relevance_scope: z.ZodDefault<z.ZodEnum<["narrow", "broad"]>>;
|
|
5992
6075
|
relevance_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6076
|
+
related: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5993
6077
|
}, "strict", z.ZodTypeAny, {
|
|
5994
6078
|
relevance_scope: "narrow" | "broad";
|
|
5995
6079
|
relevance_paths: string[];
|
|
@@ -6006,6 +6090,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6006
6090
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
6007
6091
|
layer_reason?: string | undefined;
|
|
6008
6092
|
tags?: string[] | undefined;
|
|
6093
|
+
related?: string[] | undefined;
|
|
6009
6094
|
}, {
|
|
6010
6095
|
summary: string;
|
|
6011
6096
|
intent_clues: string[];
|
|
@@ -6022,6 +6107,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6022
6107
|
knowledge_layer?: "personal" | "team" | undefined;
|
|
6023
6108
|
layer_reason?: string | undefined;
|
|
6024
6109
|
tags?: string[] | undefined;
|
|
6110
|
+
related?: string[] | undefined;
|
|
6025
6111
|
}>>;
|
|
6026
6112
|
sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6027
6113
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -6361,13 +6447,13 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6361
6447
|
evidence: z.ZodArray<z.ZodString, "many">;
|
|
6362
6448
|
}, "strip", z.ZodTypeAny, {
|
|
6363
6449
|
version: string;
|
|
6364
|
-
evidence: string[];
|
|
6365
6450
|
kind: string;
|
|
6451
|
+
evidence: string[];
|
|
6366
6452
|
subkind: string;
|
|
6367
6453
|
}, {
|
|
6368
6454
|
version: string;
|
|
6369
|
-
evidence: string[];
|
|
6370
6455
|
kind: string;
|
|
6456
|
+
evidence: string[];
|
|
6371
6457
|
subkind: string;
|
|
6372
6458
|
}>;
|
|
6373
6459
|
topology: z.ZodObject<{
|
|
@@ -6528,8 +6614,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6528
6614
|
target: string;
|
|
6529
6615
|
framework: {
|
|
6530
6616
|
version: string;
|
|
6531
|
-
evidence: string[];
|
|
6532
6617
|
kind: string;
|
|
6618
|
+
evidence: string[];
|
|
6533
6619
|
subkind: string;
|
|
6534
6620
|
};
|
|
6535
6621
|
generated_by: string;
|
|
@@ -6590,8 +6676,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6590
6676
|
target: string;
|
|
6591
6677
|
framework: {
|
|
6592
6678
|
version: string;
|
|
6593
|
-
evidence: string[];
|
|
6594
6679
|
kind: string;
|
|
6680
|
+
evidence: string[];
|
|
6595
6681
|
subkind: string;
|
|
6596
6682
|
};
|
|
6597
6683
|
generated_by: string;
|
|
@@ -6655,8 +6741,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6655
6741
|
target: string;
|
|
6656
6742
|
framework: {
|
|
6657
6743
|
version: string;
|
|
6658
|
-
evidence: string[];
|
|
6659
6744
|
kind: string;
|
|
6745
|
+
evidence: string[];
|
|
6660
6746
|
subkind: string;
|
|
6661
6747
|
};
|
|
6662
6748
|
generated_by: string;
|
|
@@ -6720,8 +6806,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
6720
6806
|
target: string;
|
|
6721
6807
|
framework: {
|
|
6722
6808
|
version: string;
|
|
6723
|
-
evidence: string[];
|
|
6724
6809
|
kind: string;
|
|
6810
|
+
evidence: string[];
|
|
6725
6811
|
subkind: string;
|
|
6726
6812
|
};
|
|
6727
6813
|
generated_by: string;
|
|
@@ -8149,23 +8235,23 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
|
|
|
8149
8235
|
kind: z.ZodEnum<["edit", "not_edit", "require", "forbid"]>;
|
|
8150
8236
|
target: z.ZodString;
|
|
8151
8237
|
}, "strip", z.ZodTypeAny, {
|
|
8152
|
-
target: string;
|
|
8153
8238
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
8154
|
-
}, {
|
|
8155
8239
|
target: string;
|
|
8240
|
+
}, {
|
|
8156
8241
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
8242
|
+
target: string;
|
|
8157
8243
|
}>, "many">;
|
|
8158
8244
|
skip_reason: z.ZodNullable<z.ZodString>;
|
|
8159
8245
|
}, "strip", z.ZodTypeAny, {
|
|
8160
8246
|
operators: {
|
|
8161
|
-
target: string;
|
|
8162
8247
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
8248
|
+
target: string;
|
|
8163
8249
|
}[];
|
|
8164
8250
|
skip_reason: string | null;
|
|
8165
8251
|
}, {
|
|
8166
8252
|
operators: {
|
|
8167
|
-
target: string;
|
|
8168
8253
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
8254
|
+
target: string;
|
|
8169
8255
|
}[];
|
|
8170
8256
|
skip_reason: string | null;
|
|
8171
8257
|
}>, "many">>;
|
|
@@ -8191,8 +8277,8 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
|
|
|
8191
8277
|
cite_tags: ("none" | "applied" | "dismissed")[];
|
|
8192
8278
|
cite_commitments: {
|
|
8193
8279
|
operators: {
|
|
8194
|
-
target: string;
|
|
8195
8280
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
8281
|
+
target: string;
|
|
8196
8282
|
}[];
|
|
8197
8283
|
skip_reason: string | null;
|
|
8198
8284
|
}[];
|
|
@@ -8216,8 +8302,8 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
|
|
|
8216
8302
|
cite_tags?: unknown[] | undefined;
|
|
8217
8303
|
cite_commitments?: {
|
|
8218
8304
|
operators: {
|
|
8219
|
-
target: string;
|
|
8220
8305
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
8306
|
+
target: string;
|
|
8221
8307
|
}[];
|
|
8222
8308
|
skip_reason: string | null;
|
|
8223
8309
|
}[] | undefined;
|
|
@@ -8462,17 +8548,14 @@ declare const sessionArchiveAttemptedEventSchema: z.ZodObject<{
|
|
|
8462
8548
|
candidates_proposed?: number | undefined;
|
|
8463
8549
|
knowledge_proposed_ids?: string[] | undefined;
|
|
8464
8550
|
}>;
|
|
8465
|
-
declare const
|
|
8466
|
-
event_type: z.ZodLiteral<"
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
intent: z.ZodOptional<z.ZodString>;
|
|
8474
|
-
known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8475
|
-
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
8551
|
+
declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
|
|
8552
|
+
event_type: z.ZodLiteral<"hook_surface_emitted">;
|
|
8553
|
+
hook_name: z.ZodString;
|
|
8554
|
+
client: z.ZodEnum<["cc", "codex", "cursor"]>;
|
|
8555
|
+
target_channel: z.ZodString;
|
|
8556
|
+
rendered_ids: z.ZodArray<z.ZodString, "many">;
|
|
8557
|
+
delivery_status: z.ZodEnum<["delivered", "suppressed", "error"]>;
|
|
8558
|
+
suppression_reason: z.ZodOptional<z.ZodString>;
|
|
8476
8559
|
kind: z.ZodLiteral<"fabric-event">;
|
|
8477
8560
|
id: z.ZodString;
|
|
8478
8561
|
ts: z.ZodNumber;
|
|
@@ -8481,49 +8564,39 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
8481
8564
|
session_id: z.ZodOptional<z.ZodString>;
|
|
8482
8565
|
}, "strip", z.ZodTypeAny, {
|
|
8483
8566
|
id: string;
|
|
8484
|
-
target_paths: string[];
|
|
8485
8567
|
ts: number;
|
|
8486
8568
|
schema_version: 1;
|
|
8487
8569
|
kind: "fabric-event";
|
|
8488
|
-
event_type: "
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
client_hash?: string | undefined;
|
|
8570
|
+
event_type: "hook_surface_emitted";
|
|
8571
|
+
client: "cursor" | "cc" | "codex";
|
|
8572
|
+
hook_name: string;
|
|
8573
|
+
target_channel: string;
|
|
8574
|
+
rendered_ids: string[];
|
|
8575
|
+
delivery_status: "error" | "delivered" | "suppressed";
|
|
8495
8576
|
correlation_id?: string | undefined;
|
|
8496
8577
|
session_id?: string | undefined;
|
|
8497
|
-
|
|
8498
|
-
diagnostics?: unknown[] | undefined;
|
|
8578
|
+
suppression_reason?: string | undefined;
|
|
8499
8579
|
}, {
|
|
8500
8580
|
id: string;
|
|
8501
|
-
target_paths: string[];
|
|
8502
8581
|
ts: number;
|
|
8503
8582
|
schema_version: 1;
|
|
8504
8583
|
kind: "fabric-event";
|
|
8505
|
-
event_type: "
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
client_hash?: string | undefined;
|
|
8584
|
+
event_type: "hook_surface_emitted";
|
|
8585
|
+
client: "cursor" | "cc" | "codex";
|
|
8586
|
+
hook_name: string;
|
|
8587
|
+
target_channel: string;
|
|
8588
|
+
rendered_ids: string[];
|
|
8589
|
+
delivery_status: "error" | "delivered" | "suppressed";
|
|
8512
8590
|
correlation_id?: string | undefined;
|
|
8513
8591
|
session_id?: string | undefined;
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
event_type: z.ZodLiteral<"
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
8523
|
-
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
8524
|
-
ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
8525
|
-
rejected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
8526
|
-
ignored_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
8592
|
+
suppression_reason?: string | undefined;
|
|
8593
|
+
}>;
|
|
8594
|
+
declare const hookSignalEmittedEventSchema: z.ZodObject<{
|
|
8595
|
+
event_type: z.ZodLiteral<"hook_signal_emitted">;
|
|
8596
|
+
signal_type: z.ZodEnum<["archive", "review", "maintenance", "other"]>;
|
|
8597
|
+
threshold: z.ZodNumber;
|
|
8598
|
+
actual_value: z.ZodNumber;
|
|
8599
|
+
fired: z.ZodBoolean;
|
|
8527
8600
|
kind: z.ZodLiteral<"fabric-event">;
|
|
8528
8601
|
id: z.ZodString;
|
|
8529
8602
|
ts: z.ZodNumber;
|
|
@@ -8532,46 +8605,38 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
8532
8605
|
session_id: z.ZodOptional<z.ZodString>;
|
|
8533
8606
|
}, "strip", z.ZodTypeAny, {
|
|
8534
8607
|
id: string;
|
|
8535
|
-
target_paths: string[];
|
|
8536
|
-
selection_token: string;
|
|
8537
|
-
ai_selected_stable_ids: string[];
|
|
8538
|
-
ai_selection_reasons: Record<string, string>;
|
|
8539
8608
|
ts: number;
|
|
8540
8609
|
schema_version: 1;
|
|
8541
8610
|
kind: "fabric-event";
|
|
8542
|
-
event_type: "
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
ignored_stable_ids: string[];
|
|
8611
|
+
event_type: "hook_signal_emitted";
|
|
8612
|
+
signal_type: "archive" | "review" | "maintenance" | "other";
|
|
8613
|
+
threshold: number;
|
|
8614
|
+
actual_value: number;
|
|
8615
|
+
fired: boolean;
|
|
8548
8616
|
correlation_id?: string | undefined;
|
|
8549
8617
|
session_id?: string | undefined;
|
|
8550
8618
|
}, {
|
|
8551
8619
|
id: string;
|
|
8552
|
-
target_paths: string[];
|
|
8553
|
-
selection_token: string;
|
|
8554
|
-
ai_selected_stable_ids: string[];
|
|
8555
|
-
ai_selection_reasons: Record<string, string>;
|
|
8556
8620
|
ts: number;
|
|
8557
8621
|
schema_version: 1;
|
|
8558
8622
|
kind: "fabric-event";
|
|
8559
|
-
event_type: "
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
ignored_stable_ids: string[];
|
|
8623
|
+
event_type: "hook_signal_emitted";
|
|
8624
|
+
signal_type: "archive" | "review" | "maintenance" | "other";
|
|
8625
|
+
threshold: number;
|
|
8626
|
+
actual_value: number;
|
|
8627
|
+
fired: boolean;
|
|
8565
8628
|
correlation_id?: string | undefined;
|
|
8566
8629
|
session_id?: string | undefined;
|
|
8567
|
-
}
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8630
|
+
}>;
|
|
8631
|
+
declare const mcpStdioTraceEventSchema: z.ZodObject<{
|
|
8632
|
+
event_type: z.ZodLiteral<"mcp_stdio_trace">;
|
|
8633
|
+
tool_name: z.ZodString;
|
|
8634
|
+
request_id: z.ZodString;
|
|
8635
|
+
duration_ms: z.ZodNumber;
|
|
8636
|
+
status: z.ZodEnum<["ok", "error"]>;
|
|
8637
|
+
payload_bytes_in: z.ZodNumber;
|
|
8638
|
+
payload_bytes_out: z.ZodNumber;
|
|
8639
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
8575
8640
|
kind: z.ZodLiteral<"fabric-event">;
|
|
8576
8641
|
id: z.ZodString;
|
|
8577
8642
|
ts: z.ZodNumber;
|
|
@@ -8579,47 +8644,43 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
8579
8644
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8580
8645
|
session_id: z.ZodOptional<z.ZodString>;
|
|
8581
8646
|
}, "strip", z.ZodTypeAny, {
|
|
8647
|
+
status: "ok" | "error";
|
|
8582
8648
|
id: string;
|
|
8583
|
-
selection_token: string;
|
|
8584
|
-
ai_selected_stable_ids: string[];
|
|
8585
8649
|
ts: number;
|
|
8586
8650
|
schema_version: 1;
|
|
8587
8651
|
kind: "fabric-event";
|
|
8588
|
-
event_type: "
|
|
8589
|
-
|
|
8590
|
-
|
|
8652
|
+
event_type: "mcp_stdio_trace";
|
|
8653
|
+
duration_ms: number;
|
|
8654
|
+
tool_name: string;
|
|
8655
|
+
request_id: string;
|
|
8656
|
+
payload_bytes_in: number;
|
|
8657
|
+
payload_bytes_out: number;
|
|
8591
8658
|
correlation_id?: string | undefined;
|
|
8592
8659
|
session_id?: string | undefined;
|
|
8593
|
-
|
|
8594
|
-
diagnostics?: unknown[] | undefined;
|
|
8660
|
+
error_code?: string | undefined;
|
|
8595
8661
|
}, {
|
|
8662
|
+
status: "ok" | "error";
|
|
8596
8663
|
id: string;
|
|
8597
|
-
selection_token: string;
|
|
8598
|
-
ai_selected_stable_ids: string[];
|
|
8599
8664
|
ts: number;
|
|
8600
8665
|
schema_version: 1;
|
|
8601
8666
|
kind: "fabric-event";
|
|
8602
|
-
event_type: "
|
|
8603
|
-
|
|
8604
|
-
|
|
8667
|
+
event_type: "mcp_stdio_trace";
|
|
8668
|
+
duration_ms: number;
|
|
8669
|
+
tool_name: string;
|
|
8670
|
+
request_id: string;
|
|
8671
|
+
payload_bytes_in: number;
|
|
8672
|
+
payload_bytes_out: number;
|
|
8605
8673
|
correlation_id?: string | undefined;
|
|
8606
8674
|
session_id?: string | undefined;
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
event_type: z.ZodLiteral<"
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
commit_sha: z.ZodOptional<z.ZodString>;
|
|
8617
|
-
parent_sha: z.ZodOptional<z.ZodString>;
|
|
8618
|
-
parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
|
|
8619
|
-
diff_stat: z.ZodOptional<z.ZodString>;
|
|
8620
|
-
annotation: z.ZodOptional<z.ZodString>;
|
|
8621
|
-
matched_rule_context_ts: z.ZodNullable<z.ZodNumber>;
|
|
8622
|
-
window_ms: z.ZodNumber;
|
|
8675
|
+
error_code?: string | undefined;
|
|
8676
|
+
}>;
|
|
8677
|
+
declare const payloadGuardObservedEventSchema: z.ZodObject<{
|
|
8678
|
+
event_type: z.ZodLiteral<"payload_guard_observed">;
|
|
8679
|
+
tool_name: z.ZodString;
|
|
8680
|
+
path_count: z.ZodNumber;
|
|
8681
|
+
tokens_estimated: z.ZodNumber;
|
|
8682
|
+
truncated: z.ZodBoolean;
|
|
8683
|
+
cap: z.ZodNumber;
|
|
8623
8684
|
kind: z.ZodLiteral<"fabric-event">;
|
|
8624
8685
|
id: z.ZodString;
|
|
8625
8686
|
ts: z.ZodNumber;
|
|
@@ -8627,67 +8688,37 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
8627
8688
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8628
8689
|
session_id: z.ZodOptional<z.ZodString>;
|
|
8629
8690
|
}, "strip", z.ZodTypeAny, {
|
|
8630
|
-
path: string;
|
|
8631
8691
|
id: string;
|
|
8632
|
-
intent: string;
|
|
8633
8692
|
ts: number;
|
|
8634
|
-
ledger_entry_id: string;
|
|
8635
8693
|
schema_version: 1;
|
|
8636
8694
|
kind: "fabric-event";
|
|
8637
|
-
event_type: "
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8695
|
+
event_type: "payload_guard_observed";
|
|
8696
|
+
tool_name: string;
|
|
8697
|
+
path_count: number;
|
|
8698
|
+
tokens_estimated: number;
|
|
8699
|
+
truncated: boolean;
|
|
8700
|
+
cap: number;
|
|
8641
8701
|
correlation_id?: string | undefined;
|
|
8642
8702
|
session_id?: string | undefined;
|
|
8643
|
-
annotation?: string | undefined;
|
|
8644
|
-
commit_sha?: string | undefined;
|
|
8645
|
-
parent_sha?: string | undefined;
|
|
8646
|
-
parent_ledger_entry_id?: string | undefined;
|
|
8647
|
-
diff_stat?: string | undefined;
|
|
8648
|
-
ledger_source?: "ai" | "human" | "hook" | undefined;
|
|
8649
8703
|
}, {
|
|
8650
|
-
path: string;
|
|
8651
8704
|
id: string;
|
|
8652
|
-
intent: string;
|
|
8653
8705
|
ts: number;
|
|
8654
|
-
ledger_entry_id: string;
|
|
8655
8706
|
schema_version: 1;
|
|
8656
8707
|
kind: "fabric-event";
|
|
8657
|
-
event_type: "
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8708
|
+
event_type: "payload_guard_observed";
|
|
8709
|
+
tool_name: string;
|
|
8710
|
+
path_count: number;
|
|
8711
|
+
tokens_estimated: number;
|
|
8712
|
+
truncated: boolean;
|
|
8713
|
+
cap: number;
|
|
8661
8714
|
correlation_id?: string | undefined;
|
|
8662
8715
|
session_id?: string | undefined;
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
}>, z.ZodObject<{
|
|
8670
|
-
event_type: z.ZodLiteral<"knowledge_drift_detected">;
|
|
8671
|
-
revision: z.ZodOptional<z.ZodString>;
|
|
8672
|
-
drifted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
8673
|
-
missing_files: z.ZodArray<z.ZodString, "many">;
|
|
8674
|
-
stale_files: z.ZodArray<z.ZodString, "many">;
|
|
8675
|
-
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8676
|
-
file: z.ZodString;
|
|
8677
|
-
stable_id: z.ZodString;
|
|
8678
|
-
expected_hash: z.ZodString;
|
|
8679
|
-
actual_hash: z.ZodNullable<z.ZodString>;
|
|
8680
|
-
}, "strip", z.ZodTypeAny, {
|
|
8681
|
-
file: string;
|
|
8682
|
-
stable_id: string;
|
|
8683
|
-
expected_hash: string;
|
|
8684
|
-
actual_hash: string | null;
|
|
8685
|
-
}, {
|
|
8686
|
-
file: string;
|
|
8687
|
-
stable_id: string;
|
|
8688
|
-
expected_hash: string;
|
|
8689
|
-
actual_hash: string | null;
|
|
8690
|
-
}>, "many">>;
|
|
8716
|
+
}>;
|
|
8717
|
+
declare const skillInvocationStartedEventSchema: z.ZodObject<{
|
|
8718
|
+
event_type: z.ZodLiteral<"skill_invocation_started">;
|
|
8719
|
+
skill_name: z.ZodString;
|
|
8720
|
+
trigger_source: z.ZodEnum<["user", "auto_invoke", "ai_self_trigger", "chained"]>;
|
|
8721
|
+
entry_point: z.ZodString;
|
|
8691
8722
|
kind: z.ZodLiteral<"fabric-event">;
|
|
8692
8723
|
id: z.ZodString;
|
|
8693
8724
|
ts: z.ZodNumber;
|
|
@@ -8699,42 +8730,31 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
8699
8730
|
ts: number;
|
|
8700
8731
|
schema_version: 1;
|
|
8701
8732
|
kind: "fabric-event";
|
|
8702
|
-
event_type: "
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8733
|
+
event_type: "skill_invocation_started";
|
|
8734
|
+
skill_name: string;
|
|
8735
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
8736
|
+
entry_point: string;
|
|
8706
8737
|
correlation_id?: string | undefined;
|
|
8707
8738
|
session_id?: string | undefined;
|
|
8708
|
-
revision?: string | undefined;
|
|
8709
|
-
details?: {
|
|
8710
|
-
file: string;
|
|
8711
|
-
stable_id: string;
|
|
8712
|
-
expected_hash: string;
|
|
8713
|
-
actual_hash: string | null;
|
|
8714
|
-
}[] | undefined;
|
|
8715
8739
|
}, {
|
|
8716
8740
|
id: string;
|
|
8717
8741
|
ts: number;
|
|
8718
8742
|
schema_version: 1;
|
|
8719
8743
|
kind: "fabric-event";
|
|
8720
|
-
event_type: "
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8744
|
+
event_type: "skill_invocation_started";
|
|
8745
|
+
skill_name: string;
|
|
8746
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
8747
|
+
entry_point: string;
|
|
8724
8748
|
correlation_id?: string | undefined;
|
|
8725
8749
|
session_id?: string | undefined;
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
event_type: z.ZodLiteral<"mcp_event">;
|
|
8735
|
-
mcp_event_id: z.ZodString;
|
|
8736
|
-
stream_id: z.ZodString;
|
|
8737
|
-
message: z.ZodUnknown;
|
|
8750
|
+
}>;
|
|
8751
|
+
declare const skillInvocationCompletedEventSchema: z.ZodObject<{
|
|
8752
|
+
event_type: z.ZodLiteral<"skill_invocation_completed">;
|
|
8753
|
+
skill_name: z.ZodString;
|
|
8754
|
+
trigger_source: z.ZodEnum<["user", "auto_invoke", "ai_self_trigger", "chained"]>;
|
|
8755
|
+
entry_point: z.ZodString;
|
|
8756
|
+
outcome: z.ZodEnum<["completed", "aborted", "error", "no_op"]>;
|
|
8757
|
+
elapsed_ms: z.ZodOptional<z.ZodNumber>;
|
|
8738
8758
|
kind: z.ZodLiteral<"fabric-event">;
|
|
8739
8759
|
id: z.ZodString;
|
|
8740
8760
|
ts: z.ZodNumber;
|
|
@@ -8746,28 +8766,35 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
8746
8766
|
ts: number;
|
|
8747
8767
|
schema_version: 1;
|
|
8748
8768
|
kind: "fabric-event";
|
|
8749
|
-
event_type: "
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8769
|
+
event_type: "skill_invocation_completed";
|
|
8770
|
+
outcome: "aborted" | "completed" | "error" | "no_op";
|
|
8771
|
+
skill_name: string;
|
|
8772
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
8773
|
+
entry_point: string;
|
|
8753
8774
|
correlation_id?: string | undefined;
|
|
8754
8775
|
session_id?: string | undefined;
|
|
8776
|
+
elapsed_ms?: number | undefined;
|
|
8755
8777
|
}, {
|
|
8756
8778
|
id: string;
|
|
8757
8779
|
ts: number;
|
|
8758
8780
|
schema_version: 1;
|
|
8759
8781
|
kind: "fabric-event";
|
|
8760
|
-
event_type: "
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8782
|
+
event_type: "skill_invocation_completed";
|
|
8783
|
+
outcome: "aborted" | "completed" | "error" | "no_op";
|
|
8784
|
+
skill_name: string;
|
|
8785
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
8786
|
+
entry_point: string;
|
|
8764
8787
|
correlation_id?: string | undefined;
|
|
8765
8788
|
session_id?: string | undefined;
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8789
|
+
elapsed_ms?: number | undefined;
|
|
8790
|
+
}>;
|
|
8791
|
+
declare const skillPhaseTransitionEventSchema: z.ZodObject<{
|
|
8792
|
+
event_type: z.ZodLiteral<"skill_phase_transition">;
|
|
8793
|
+
skill_name: z.ZodString;
|
|
8794
|
+
phase: z.ZodString;
|
|
8795
|
+
status: z.ZodEnum<["entered", "completed", "skipped", "failed"]>;
|
|
8796
|
+
checkpoint: z.ZodOptional<z.ZodString>;
|
|
8797
|
+
elapsed_ms: z.ZodOptional<z.ZodNumber>;
|
|
8771
8798
|
kind: z.ZodLiteral<"fabric-event">;
|
|
8772
8799
|
id: z.ZodString;
|
|
8773
8800
|
ts: z.ZodNumber;
|
|
@@ -8775,25 +8802,478 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
8775
8802
|
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8776
8803
|
session_id: z.ZodOptional<z.ZodString>;
|
|
8777
8804
|
}, "strip", z.ZodTypeAny, {
|
|
8805
|
+
status: "skipped" | "completed" | "failed" | "entered";
|
|
8778
8806
|
id: string;
|
|
8779
8807
|
ts: number;
|
|
8780
8808
|
schema_version: 1;
|
|
8781
8809
|
kind: "fabric-event";
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
rules_count: number;
|
|
8810
|
+
phase: string;
|
|
8811
|
+
event_type: "skill_phase_transition";
|
|
8812
|
+
skill_name: string;
|
|
8786
8813
|
correlation_id?: string | undefined;
|
|
8787
8814
|
session_id?: string | undefined;
|
|
8815
|
+
elapsed_ms?: number | undefined;
|
|
8816
|
+
checkpoint?: string | undefined;
|
|
8788
8817
|
}, {
|
|
8818
|
+
status: "skipped" | "completed" | "failed" | "entered";
|
|
8789
8819
|
id: string;
|
|
8790
8820
|
ts: number;
|
|
8791
8821
|
schema_version: 1;
|
|
8792
8822
|
kind: "fabric-event";
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8823
|
+
phase: string;
|
|
8824
|
+
event_type: "skill_phase_transition";
|
|
8825
|
+
skill_name: string;
|
|
8826
|
+
correlation_id?: string | undefined;
|
|
8827
|
+
session_id?: string | undefined;
|
|
8828
|
+
elapsed_ms?: number | undefined;
|
|
8829
|
+
checkpoint?: string | undefined;
|
|
8830
|
+
}>;
|
|
8831
|
+
declare const skillTriggerCandidateEventSchema: z.ZodObject<{
|
|
8832
|
+
event_type: z.ZodLiteral<"skill_trigger_candidate">;
|
|
8833
|
+
skill_name: z.ZodString;
|
|
8834
|
+
trigger_source: z.ZodEnum<["user", "auto_invoke", "ai_self_trigger", "chained"]>;
|
|
8835
|
+
signal: z.ZodString;
|
|
8836
|
+
invoked: z.ZodBoolean;
|
|
8837
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
8838
|
+
id: z.ZodString;
|
|
8839
|
+
ts: z.ZodNumber;
|
|
8840
|
+
schema_version: z.ZodLiteral<1>;
|
|
8841
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8842
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8843
|
+
}, "strip", z.ZodTypeAny, {
|
|
8844
|
+
id: string;
|
|
8845
|
+
ts: number;
|
|
8846
|
+
schema_version: 1;
|
|
8847
|
+
kind: "fabric-event";
|
|
8848
|
+
event_type: "skill_trigger_candidate";
|
|
8849
|
+
skill_name: string;
|
|
8850
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
8851
|
+
signal: string;
|
|
8852
|
+
invoked: boolean;
|
|
8853
|
+
correlation_id?: string | undefined;
|
|
8854
|
+
session_id?: string | undefined;
|
|
8855
|
+
}, {
|
|
8856
|
+
id: string;
|
|
8857
|
+
ts: number;
|
|
8858
|
+
schema_version: 1;
|
|
8859
|
+
kind: "fabric-event";
|
|
8860
|
+
event_type: "skill_trigger_candidate";
|
|
8861
|
+
skill_name: string;
|
|
8862
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
8863
|
+
signal: string;
|
|
8864
|
+
invoked: boolean;
|
|
8865
|
+
correlation_id?: string | undefined;
|
|
8866
|
+
session_id?: string | undefined;
|
|
8867
|
+
}>;
|
|
8868
|
+
declare const llmJudgeRunEventSchema: z.ZodObject<{
|
|
8869
|
+
event_type: z.ZodLiteral<"llm_judge_run">;
|
|
8870
|
+
prompt: z.ZodString;
|
|
8871
|
+
version: z.ZodString;
|
|
8872
|
+
model: z.ZodString;
|
|
8873
|
+
input_trace_id: z.ZodString;
|
|
8874
|
+
score: z.ZodNumber;
|
|
8875
|
+
rationale: z.ZodString;
|
|
8876
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
8877
|
+
id: z.ZodString;
|
|
8878
|
+
ts: z.ZodNumber;
|
|
8879
|
+
schema_version: z.ZodLiteral<1>;
|
|
8880
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8881
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8882
|
+
}, "strip", z.ZodTypeAny, {
|
|
8883
|
+
id: string;
|
|
8884
|
+
version: string;
|
|
8885
|
+
ts: number;
|
|
8886
|
+
model: string;
|
|
8887
|
+
schema_version: 1;
|
|
8888
|
+
kind: "fabric-event";
|
|
8889
|
+
rationale: string;
|
|
8890
|
+
event_type: "llm_judge_run";
|
|
8891
|
+
prompt: string;
|
|
8892
|
+
input_trace_id: string;
|
|
8893
|
+
score: number;
|
|
8894
|
+
correlation_id?: string | undefined;
|
|
8895
|
+
session_id?: string | undefined;
|
|
8896
|
+
}, {
|
|
8897
|
+
id: string;
|
|
8898
|
+
version: string;
|
|
8899
|
+
ts: number;
|
|
8900
|
+
model: string;
|
|
8901
|
+
schema_version: 1;
|
|
8902
|
+
kind: "fabric-event";
|
|
8903
|
+
rationale: string;
|
|
8904
|
+
event_type: "llm_judge_run";
|
|
8905
|
+
prompt: string;
|
|
8906
|
+
input_trace_id: string;
|
|
8907
|
+
score: number;
|
|
8908
|
+
correlation_id?: string | undefined;
|
|
8909
|
+
session_id?: string | undefined;
|
|
8910
|
+
}>;
|
|
8911
|
+
declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
|
|
8912
|
+
event_type: z.ZodLiteral<"client_capability_snapshot">;
|
|
8913
|
+
client: z.ZodEnum<["cc", "codex", "cursor"]>;
|
|
8914
|
+
capabilities: z.ZodArray<z.ZodString, "many">;
|
|
8915
|
+
version: z.ZodString;
|
|
8916
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
8917
|
+
id: z.ZodString;
|
|
8918
|
+
ts: z.ZodNumber;
|
|
8919
|
+
schema_version: z.ZodLiteral<1>;
|
|
8920
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8921
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8922
|
+
}, "strip", z.ZodTypeAny, {
|
|
8923
|
+
id: string;
|
|
8924
|
+
version: string;
|
|
8925
|
+
ts: number;
|
|
8926
|
+
schema_version: 1;
|
|
8927
|
+
capabilities: string[];
|
|
8928
|
+
kind: "fabric-event";
|
|
8929
|
+
event_type: "client_capability_snapshot";
|
|
8930
|
+
client: "cursor" | "cc" | "codex";
|
|
8931
|
+
correlation_id?: string | undefined;
|
|
8932
|
+
session_id?: string | undefined;
|
|
8933
|
+
}, {
|
|
8934
|
+
id: string;
|
|
8935
|
+
version: string;
|
|
8936
|
+
ts: number;
|
|
8937
|
+
schema_version: 1;
|
|
8938
|
+
capabilities: string[];
|
|
8939
|
+
kind: "fabric-event";
|
|
8940
|
+
event_type: "client_capability_snapshot";
|
|
8941
|
+
client: "cursor" | "cc" | "codex";
|
|
8942
|
+
correlation_id?: string | undefined;
|
|
8943
|
+
session_id?: string | undefined;
|
|
8944
|
+
}>;
|
|
8945
|
+
declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
8946
|
+
event_type: z.ZodLiteral<"knowledge_context_planned">;
|
|
8947
|
+
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
8948
|
+
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
8949
|
+
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
8950
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
8951
|
+
selection_token: z.ZodOptional<z.ZodString>;
|
|
8952
|
+
client_hash: z.ZodOptional<z.ZodString>;
|
|
8953
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
8954
|
+
known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8955
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
8956
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
8957
|
+
id: z.ZodString;
|
|
8958
|
+
ts: z.ZodNumber;
|
|
8959
|
+
schema_version: z.ZodLiteral<1>;
|
|
8960
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
8961
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
8962
|
+
}, "strip", z.ZodTypeAny, {
|
|
8963
|
+
id: string;
|
|
8964
|
+
target_paths: string[];
|
|
8965
|
+
ts: number;
|
|
8966
|
+
schema_version: 1;
|
|
8967
|
+
kind: "fabric-event";
|
|
8968
|
+
event_type: "knowledge_context_planned";
|
|
8969
|
+
required_stable_ids: string[];
|
|
8970
|
+
ai_selectable_stable_ids: string[];
|
|
8971
|
+
final_stable_ids: string[];
|
|
8972
|
+
known_tech?: string[] | undefined;
|
|
8973
|
+
intent?: string | undefined;
|
|
8974
|
+
client_hash?: string | undefined;
|
|
8975
|
+
correlation_id?: string | undefined;
|
|
8976
|
+
session_id?: string | undefined;
|
|
8977
|
+
selection_token?: string | undefined;
|
|
8978
|
+
diagnostics?: unknown[] | undefined;
|
|
8979
|
+
}, {
|
|
8980
|
+
id: string;
|
|
8981
|
+
target_paths: string[];
|
|
8982
|
+
ts: number;
|
|
8983
|
+
schema_version: 1;
|
|
8984
|
+
kind: "fabric-event";
|
|
8985
|
+
event_type: "knowledge_context_planned";
|
|
8986
|
+
required_stable_ids: string[];
|
|
8987
|
+
ai_selectable_stable_ids: string[];
|
|
8988
|
+
final_stable_ids: string[];
|
|
8989
|
+
known_tech?: string[] | undefined;
|
|
8990
|
+
intent?: string | undefined;
|
|
8991
|
+
client_hash?: string | undefined;
|
|
8992
|
+
correlation_id?: string | undefined;
|
|
8993
|
+
session_id?: string | undefined;
|
|
8994
|
+
selection_token?: string | undefined;
|
|
8995
|
+
diagnostics?: unknown[] | undefined;
|
|
8996
|
+
}>, z.ZodObject<{
|
|
8997
|
+
event_type: z.ZodLiteral<"knowledge_selection">;
|
|
8998
|
+
selection_token: z.ZodString;
|
|
8999
|
+
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
9000
|
+
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9001
|
+
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9002
|
+
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9003
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9004
|
+
ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
9005
|
+
rejected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9006
|
+
ignored_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9007
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
9008
|
+
id: z.ZodString;
|
|
9009
|
+
ts: z.ZodNumber;
|
|
9010
|
+
schema_version: z.ZodLiteral<1>;
|
|
9011
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
9012
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
9013
|
+
}, "strip", z.ZodTypeAny, {
|
|
9014
|
+
id: string;
|
|
9015
|
+
target_paths: string[];
|
|
9016
|
+
selection_token: string;
|
|
9017
|
+
ai_selected_stable_ids: string[];
|
|
9018
|
+
ai_selection_reasons: Record<string, string>;
|
|
9019
|
+
ts: number;
|
|
9020
|
+
schema_version: 1;
|
|
9021
|
+
kind: "fabric-event";
|
|
9022
|
+
event_type: "knowledge_selection";
|
|
9023
|
+
required_stable_ids: string[];
|
|
9024
|
+
ai_selectable_stable_ids: string[];
|
|
9025
|
+
final_stable_ids: string[];
|
|
9026
|
+
rejected_stable_ids: string[];
|
|
9027
|
+
ignored_stable_ids: string[];
|
|
9028
|
+
correlation_id?: string | undefined;
|
|
9029
|
+
session_id?: string | undefined;
|
|
9030
|
+
}, {
|
|
9031
|
+
id: string;
|
|
9032
|
+
target_paths: string[];
|
|
9033
|
+
selection_token: string;
|
|
9034
|
+
ai_selected_stable_ids: string[];
|
|
9035
|
+
ai_selection_reasons: Record<string, string>;
|
|
9036
|
+
ts: number;
|
|
9037
|
+
schema_version: 1;
|
|
9038
|
+
kind: "fabric-event";
|
|
9039
|
+
event_type: "knowledge_selection";
|
|
9040
|
+
required_stable_ids: string[];
|
|
9041
|
+
ai_selectable_stable_ids: string[];
|
|
9042
|
+
final_stable_ids: string[];
|
|
9043
|
+
rejected_stable_ids: string[];
|
|
9044
|
+
ignored_stable_ids: string[];
|
|
9045
|
+
correlation_id?: string | undefined;
|
|
9046
|
+
session_id?: string | undefined;
|
|
9047
|
+
}>, z.ZodObject<{
|
|
9048
|
+
event_type: z.ZodLiteral<"knowledge_sections_fetched">;
|
|
9049
|
+
selection_token: z.ZodString;
|
|
9050
|
+
target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9051
|
+
requested_sections: z.ZodArray<z.ZodString, "many">;
|
|
9052
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9053
|
+
ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9054
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
9055
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
9056
|
+
id: z.ZodString;
|
|
9057
|
+
ts: z.ZodNumber;
|
|
9058
|
+
schema_version: z.ZodLiteral<1>;
|
|
9059
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
9060
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
9061
|
+
}, "strip", z.ZodTypeAny, {
|
|
9062
|
+
id: string;
|
|
9063
|
+
selection_token: string;
|
|
9064
|
+
ai_selected_stable_ids: string[];
|
|
9065
|
+
ts: number;
|
|
9066
|
+
schema_version: 1;
|
|
9067
|
+
kind: "fabric-event";
|
|
9068
|
+
event_type: "knowledge_sections_fetched";
|
|
9069
|
+
final_stable_ids: string[];
|
|
9070
|
+
requested_sections: string[];
|
|
9071
|
+
correlation_id?: string | undefined;
|
|
9072
|
+
session_id?: string | undefined;
|
|
9073
|
+
target_paths?: string[] | undefined;
|
|
9074
|
+
diagnostics?: unknown[] | undefined;
|
|
9075
|
+
}, {
|
|
9076
|
+
id: string;
|
|
9077
|
+
selection_token: string;
|
|
9078
|
+
ai_selected_stable_ids: string[];
|
|
9079
|
+
ts: number;
|
|
9080
|
+
schema_version: 1;
|
|
9081
|
+
kind: "fabric-event";
|
|
9082
|
+
event_type: "knowledge_sections_fetched";
|
|
9083
|
+
final_stable_ids: string[];
|
|
9084
|
+
requested_sections: string[];
|
|
9085
|
+
correlation_id?: string | undefined;
|
|
9086
|
+
session_id?: string | undefined;
|
|
9087
|
+
target_paths?: string[] | undefined;
|
|
9088
|
+
diagnostics?: unknown[] | undefined;
|
|
9089
|
+
}>, z.ZodObject<{
|
|
9090
|
+
event_type: z.ZodLiteral<"edit_intent_checked">;
|
|
9091
|
+
path: z.ZodString;
|
|
9092
|
+
compliant: z.ZodBoolean;
|
|
9093
|
+
intent: z.ZodString;
|
|
9094
|
+
ledger_entry_id: z.ZodString;
|
|
9095
|
+
ledger_source: z.ZodOptional<z.ZodEnum<["ai", "human", "hook"]>>;
|
|
9096
|
+
commit_sha: z.ZodOptional<z.ZodString>;
|
|
9097
|
+
parent_sha: z.ZodOptional<z.ZodString>;
|
|
9098
|
+
parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
|
|
9099
|
+
diff_stat: z.ZodOptional<z.ZodString>;
|
|
9100
|
+
annotation: z.ZodOptional<z.ZodString>;
|
|
9101
|
+
matched_rule_context_ts: z.ZodNullable<z.ZodNumber>;
|
|
9102
|
+
window_ms: z.ZodNumber;
|
|
9103
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
9104
|
+
id: z.ZodString;
|
|
9105
|
+
ts: z.ZodNumber;
|
|
9106
|
+
schema_version: z.ZodLiteral<1>;
|
|
9107
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
9108
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
9109
|
+
}, "strip", z.ZodTypeAny, {
|
|
9110
|
+
path: string;
|
|
9111
|
+
id: string;
|
|
9112
|
+
intent: string;
|
|
9113
|
+
ts: number;
|
|
9114
|
+
ledger_entry_id: string;
|
|
9115
|
+
schema_version: 1;
|
|
9116
|
+
kind: "fabric-event";
|
|
9117
|
+
event_type: "edit_intent_checked";
|
|
9118
|
+
compliant: boolean;
|
|
9119
|
+
matched_rule_context_ts: number | null;
|
|
9120
|
+
window_ms: number;
|
|
9121
|
+
correlation_id?: string | undefined;
|
|
9122
|
+
session_id?: string | undefined;
|
|
9123
|
+
annotation?: string | undefined;
|
|
9124
|
+
commit_sha?: string | undefined;
|
|
9125
|
+
parent_sha?: string | undefined;
|
|
9126
|
+
parent_ledger_entry_id?: string | undefined;
|
|
9127
|
+
diff_stat?: string | undefined;
|
|
9128
|
+
ledger_source?: "ai" | "human" | "hook" | undefined;
|
|
9129
|
+
}, {
|
|
9130
|
+
path: string;
|
|
9131
|
+
id: string;
|
|
9132
|
+
intent: string;
|
|
9133
|
+
ts: number;
|
|
9134
|
+
ledger_entry_id: string;
|
|
9135
|
+
schema_version: 1;
|
|
9136
|
+
kind: "fabric-event";
|
|
9137
|
+
event_type: "edit_intent_checked";
|
|
9138
|
+
compliant: boolean;
|
|
9139
|
+
matched_rule_context_ts: number | null;
|
|
9140
|
+
window_ms: number;
|
|
9141
|
+
correlation_id?: string | undefined;
|
|
9142
|
+
session_id?: string | undefined;
|
|
9143
|
+
annotation?: string | undefined;
|
|
9144
|
+
commit_sha?: string | undefined;
|
|
9145
|
+
parent_sha?: string | undefined;
|
|
9146
|
+
parent_ledger_entry_id?: string | undefined;
|
|
9147
|
+
diff_stat?: string | undefined;
|
|
9148
|
+
ledger_source?: "ai" | "human" | "hook" | undefined;
|
|
9149
|
+
}>, z.ZodObject<{
|
|
9150
|
+
event_type: z.ZodLiteral<"knowledge_drift_detected">;
|
|
9151
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
9152
|
+
drifted_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
9153
|
+
missing_files: z.ZodArray<z.ZodString, "many">;
|
|
9154
|
+
stale_files: z.ZodArray<z.ZodString, "many">;
|
|
9155
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9156
|
+
file: z.ZodString;
|
|
9157
|
+
stable_id: z.ZodString;
|
|
9158
|
+
expected_hash: z.ZodString;
|
|
9159
|
+
actual_hash: z.ZodNullable<z.ZodString>;
|
|
9160
|
+
}, "strip", z.ZodTypeAny, {
|
|
9161
|
+
file: string;
|
|
9162
|
+
stable_id: string;
|
|
9163
|
+
expected_hash: string;
|
|
9164
|
+
actual_hash: string | null;
|
|
9165
|
+
}, {
|
|
9166
|
+
file: string;
|
|
9167
|
+
stable_id: string;
|
|
9168
|
+
expected_hash: string;
|
|
9169
|
+
actual_hash: string | null;
|
|
9170
|
+
}>, "many">>;
|
|
9171
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
9172
|
+
id: z.ZodString;
|
|
9173
|
+
ts: z.ZodNumber;
|
|
9174
|
+
schema_version: z.ZodLiteral<1>;
|
|
9175
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
9176
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
9177
|
+
}, "strip", z.ZodTypeAny, {
|
|
9178
|
+
id: string;
|
|
9179
|
+
ts: number;
|
|
9180
|
+
schema_version: 1;
|
|
9181
|
+
kind: "fabric-event";
|
|
9182
|
+
event_type: "knowledge_drift_detected";
|
|
9183
|
+
drifted_stable_ids: string[];
|
|
9184
|
+
missing_files: string[];
|
|
9185
|
+
stale_files: string[];
|
|
9186
|
+
correlation_id?: string | undefined;
|
|
9187
|
+
session_id?: string | undefined;
|
|
9188
|
+
revision?: string | undefined;
|
|
9189
|
+
details?: {
|
|
9190
|
+
file: string;
|
|
9191
|
+
stable_id: string;
|
|
9192
|
+
expected_hash: string;
|
|
9193
|
+
actual_hash: string | null;
|
|
9194
|
+
}[] | undefined;
|
|
9195
|
+
}, {
|
|
9196
|
+
id: string;
|
|
9197
|
+
ts: number;
|
|
9198
|
+
schema_version: 1;
|
|
9199
|
+
kind: "fabric-event";
|
|
9200
|
+
event_type: "knowledge_drift_detected";
|
|
9201
|
+
drifted_stable_ids: string[];
|
|
9202
|
+
missing_files: string[];
|
|
9203
|
+
stale_files: string[];
|
|
9204
|
+
correlation_id?: string | undefined;
|
|
9205
|
+
session_id?: string | undefined;
|
|
9206
|
+
revision?: string | undefined;
|
|
9207
|
+
details?: {
|
|
9208
|
+
file: string;
|
|
9209
|
+
stable_id: string;
|
|
9210
|
+
expected_hash: string;
|
|
9211
|
+
actual_hash: string | null;
|
|
9212
|
+
}[] | undefined;
|
|
9213
|
+
}>, z.ZodObject<{
|
|
9214
|
+
event_type: z.ZodLiteral<"mcp_event">;
|
|
9215
|
+
mcp_event_id: z.ZodString;
|
|
9216
|
+
stream_id: z.ZodString;
|
|
9217
|
+
message: z.ZodUnknown;
|
|
9218
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
9219
|
+
id: z.ZodString;
|
|
9220
|
+
ts: z.ZodNumber;
|
|
9221
|
+
schema_version: z.ZodLiteral<1>;
|
|
9222
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
9223
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
9224
|
+
}, "strip", z.ZodTypeAny, {
|
|
9225
|
+
id: string;
|
|
9226
|
+
ts: number;
|
|
9227
|
+
schema_version: 1;
|
|
9228
|
+
kind: "fabric-event";
|
|
9229
|
+
event_type: "mcp_event";
|
|
9230
|
+
mcp_event_id: string;
|
|
9231
|
+
stream_id: string;
|
|
9232
|
+
message?: unknown;
|
|
9233
|
+
correlation_id?: string | undefined;
|
|
9234
|
+
session_id?: string | undefined;
|
|
9235
|
+
}, {
|
|
9236
|
+
id: string;
|
|
9237
|
+
ts: number;
|
|
9238
|
+
schema_version: 1;
|
|
9239
|
+
kind: "fabric-event";
|
|
9240
|
+
event_type: "mcp_event";
|
|
9241
|
+
mcp_event_id: string;
|
|
9242
|
+
stream_id: string;
|
|
9243
|
+
message?: unknown;
|
|
9244
|
+
correlation_id?: string | undefined;
|
|
9245
|
+
session_id?: string | undefined;
|
|
9246
|
+
}>, z.ZodObject<{
|
|
9247
|
+
event_type: z.ZodLiteral<"reapply_completed">;
|
|
9248
|
+
preserved_ledger: z.ZodBoolean;
|
|
9249
|
+
preserved_meta: z.ZodBoolean;
|
|
9250
|
+
rules_count: z.ZodNumber;
|
|
9251
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
9252
|
+
id: z.ZodString;
|
|
9253
|
+
ts: z.ZodNumber;
|
|
9254
|
+
schema_version: z.ZodLiteral<1>;
|
|
9255
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
9256
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
9257
|
+
}, "strip", z.ZodTypeAny, {
|
|
9258
|
+
id: string;
|
|
9259
|
+
ts: number;
|
|
9260
|
+
schema_version: 1;
|
|
9261
|
+
kind: "fabric-event";
|
|
9262
|
+
event_type: "reapply_completed";
|
|
9263
|
+
preserved_ledger: boolean;
|
|
9264
|
+
preserved_meta: boolean;
|
|
9265
|
+
rules_count: number;
|
|
9266
|
+
correlation_id?: string | undefined;
|
|
9267
|
+
session_id?: string | undefined;
|
|
9268
|
+
}, {
|
|
9269
|
+
id: string;
|
|
9270
|
+
ts: number;
|
|
9271
|
+
schema_version: 1;
|
|
9272
|
+
kind: "fabric-event";
|
|
9273
|
+
event_type: "reapply_completed";
|
|
9274
|
+
preserved_ledger: boolean;
|
|
9275
|
+
preserved_meta: boolean;
|
|
9276
|
+
rules_count: number;
|
|
8797
9277
|
correlation_id?: string | undefined;
|
|
8798
9278
|
session_id?: string | undefined;
|
|
8799
9279
|
}>, z.ZodObject<{
|
|
@@ -9796,23 +10276,23 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
9796
10276
|
kind: z.ZodEnum<["edit", "not_edit", "require", "forbid"]>;
|
|
9797
10277
|
target: z.ZodString;
|
|
9798
10278
|
}, "strip", z.ZodTypeAny, {
|
|
9799
|
-
target: string;
|
|
9800
10279
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
9801
|
-
}, {
|
|
9802
10280
|
target: string;
|
|
10281
|
+
}, {
|
|
9803
10282
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
10283
|
+
target: string;
|
|
9804
10284
|
}>, "many">;
|
|
9805
10285
|
skip_reason: z.ZodNullable<z.ZodString>;
|
|
9806
10286
|
}, "strip", z.ZodTypeAny, {
|
|
9807
10287
|
operators: {
|
|
9808
|
-
target: string;
|
|
9809
10288
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
10289
|
+
target: string;
|
|
9810
10290
|
}[];
|
|
9811
10291
|
skip_reason: string | null;
|
|
9812
10292
|
}, {
|
|
9813
10293
|
operators: {
|
|
9814
|
-
target: string;
|
|
9815
10294
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
10295
|
+
target: string;
|
|
9816
10296
|
}[];
|
|
9817
10297
|
skip_reason: string | null;
|
|
9818
10298
|
}>, "many">>;
|
|
@@ -9838,8 +10318,8 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
9838
10318
|
cite_tags: ("none" | "applied" | "dismissed")[];
|
|
9839
10319
|
cite_commitments: {
|
|
9840
10320
|
operators: {
|
|
9841
|
-
target: string;
|
|
9842
10321
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
10322
|
+
target: string;
|
|
9843
10323
|
}[];
|
|
9844
10324
|
skip_reason: string | null;
|
|
9845
10325
|
}[];
|
|
@@ -9863,8 +10343,8 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
9863
10343
|
cite_tags?: unknown[] | undefined;
|
|
9864
10344
|
cite_commitments?: {
|
|
9865
10345
|
operators: {
|
|
9866
|
-
target: string;
|
|
9867
10346
|
kind: "require" | "edit" | "not_edit" | "forbid";
|
|
10347
|
+
target: string;
|
|
9868
10348
|
}[];
|
|
9869
10349
|
skip_reason: string | null;
|
|
9870
10350
|
}[] | undefined;
|
|
@@ -10101,6 +10581,390 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
10101
10581
|
session_id?: string | undefined;
|
|
10102
10582
|
candidates_proposed?: number | undefined;
|
|
10103
10583
|
knowledge_proposed_ids?: string[] | undefined;
|
|
10584
|
+
}>, z.ZodObject<{
|
|
10585
|
+
event_type: z.ZodLiteral<"hook_surface_emitted">;
|
|
10586
|
+
hook_name: z.ZodString;
|
|
10587
|
+
client: z.ZodEnum<["cc", "codex", "cursor"]>;
|
|
10588
|
+
target_channel: z.ZodString;
|
|
10589
|
+
rendered_ids: z.ZodArray<z.ZodString, "many">;
|
|
10590
|
+
delivery_status: z.ZodEnum<["delivered", "suppressed", "error"]>;
|
|
10591
|
+
suppression_reason: z.ZodOptional<z.ZodString>;
|
|
10592
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10593
|
+
id: z.ZodString;
|
|
10594
|
+
ts: z.ZodNumber;
|
|
10595
|
+
schema_version: z.ZodLiteral<1>;
|
|
10596
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10597
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10598
|
+
}, "strip", z.ZodTypeAny, {
|
|
10599
|
+
id: string;
|
|
10600
|
+
ts: number;
|
|
10601
|
+
schema_version: 1;
|
|
10602
|
+
kind: "fabric-event";
|
|
10603
|
+
event_type: "hook_surface_emitted";
|
|
10604
|
+
client: "cursor" | "cc" | "codex";
|
|
10605
|
+
hook_name: string;
|
|
10606
|
+
target_channel: string;
|
|
10607
|
+
rendered_ids: string[];
|
|
10608
|
+
delivery_status: "error" | "delivered" | "suppressed";
|
|
10609
|
+
correlation_id?: string | undefined;
|
|
10610
|
+
session_id?: string | undefined;
|
|
10611
|
+
suppression_reason?: string | undefined;
|
|
10612
|
+
}, {
|
|
10613
|
+
id: string;
|
|
10614
|
+
ts: number;
|
|
10615
|
+
schema_version: 1;
|
|
10616
|
+
kind: "fabric-event";
|
|
10617
|
+
event_type: "hook_surface_emitted";
|
|
10618
|
+
client: "cursor" | "cc" | "codex";
|
|
10619
|
+
hook_name: string;
|
|
10620
|
+
target_channel: string;
|
|
10621
|
+
rendered_ids: string[];
|
|
10622
|
+
delivery_status: "error" | "delivered" | "suppressed";
|
|
10623
|
+
correlation_id?: string | undefined;
|
|
10624
|
+
session_id?: string | undefined;
|
|
10625
|
+
suppression_reason?: string | undefined;
|
|
10626
|
+
}>, z.ZodObject<{
|
|
10627
|
+
event_type: z.ZodLiteral<"hook_signal_emitted">;
|
|
10628
|
+
signal_type: z.ZodEnum<["archive", "review", "maintenance", "other"]>;
|
|
10629
|
+
threshold: z.ZodNumber;
|
|
10630
|
+
actual_value: z.ZodNumber;
|
|
10631
|
+
fired: z.ZodBoolean;
|
|
10632
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10633
|
+
id: z.ZodString;
|
|
10634
|
+
ts: z.ZodNumber;
|
|
10635
|
+
schema_version: z.ZodLiteral<1>;
|
|
10636
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10637
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10638
|
+
}, "strip", z.ZodTypeAny, {
|
|
10639
|
+
id: string;
|
|
10640
|
+
ts: number;
|
|
10641
|
+
schema_version: 1;
|
|
10642
|
+
kind: "fabric-event";
|
|
10643
|
+
event_type: "hook_signal_emitted";
|
|
10644
|
+
signal_type: "archive" | "review" | "maintenance" | "other";
|
|
10645
|
+
threshold: number;
|
|
10646
|
+
actual_value: number;
|
|
10647
|
+
fired: boolean;
|
|
10648
|
+
correlation_id?: string | undefined;
|
|
10649
|
+
session_id?: string | undefined;
|
|
10650
|
+
}, {
|
|
10651
|
+
id: string;
|
|
10652
|
+
ts: number;
|
|
10653
|
+
schema_version: 1;
|
|
10654
|
+
kind: "fabric-event";
|
|
10655
|
+
event_type: "hook_signal_emitted";
|
|
10656
|
+
signal_type: "archive" | "review" | "maintenance" | "other";
|
|
10657
|
+
threshold: number;
|
|
10658
|
+
actual_value: number;
|
|
10659
|
+
fired: boolean;
|
|
10660
|
+
correlation_id?: string | undefined;
|
|
10661
|
+
session_id?: string | undefined;
|
|
10662
|
+
}>, z.ZodObject<{
|
|
10663
|
+
event_type: z.ZodLiteral<"mcp_stdio_trace">;
|
|
10664
|
+
tool_name: z.ZodString;
|
|
10665
|
+
request_id: z.ZodString;
|
|
10666
|
+
duration_ms: z.ZodNumber;
|
|
10667
|
+
status: z.ZodEnum<["ok", "error"]>;
|
|
10668
|
+
payload_bytes_in: z.ZodNumber;
|
|
10669
|
+
payload_bytes_out: z.ZodNumber;
|
|
10670
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
10671
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10672
|
+
id: z.ZodString;
|
|
10673
|
+
ts: z.ZodNumber;
|
|
10674
|
+
schema_version: z.ZodLiteral<1>;
|
|
10675
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10676
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10677
|
+
}, "strip", z.ZodTypeAny, {
|
|
10678
|
+
status: "ok" | "error";
|
|
10679
|
+
id: string;
|
|
10680
|
+
ts: number;
|
|
10681
|
+
schema_version: 1;
|
|
10682
|
+
kind: "fabric-event";
|
|
10683
|
+
event_type: "mcp_stdio_trace";
|
|
10684
|
+
duration_ms: number;
|
|
10685
|
+
tool_name: string;
|
|
10686
|
+
request_id: string;
|
|
10687
|
+
payload_bytes_in: number;
|
|
10688
|
+
payload_bytes_out: number;
|
|
10689
|
+
correlation_id?: string | undefined;
|
|
10690
|
+
session_id?: string | undefined;
|
|
10691
|
+
error_code?: string | undefined;
|
|
10692
|
+
}, {
|
|
10693
|
+
status: "ok" | "error";
|
|
10694
|
+
id: string;
|
|
10695
|
+
ts: number;
|
|
10696
|
+
schema_version: 1;
|
|
10697
|
+
kind: "fabric-event";
|
|
10698
|
+
event_type: "mcp_stdio_trace";
|
|
10699
|
+
duration_ms: number;
|
|
10700
|
+
tool_name: string;
|
|
10701
|
+
request_id: string;
|
|
10702
|
+
payload_bytes_in: number;
|
|
10703
|
+
payload_bytes_out: number;
|
|
10704
|
+
correlation_id?: string | undefined;
|
|
10705
|
+
session_id?: string | undefined;
|
|
10706
|
+
error_code?: string | undefined;
|
|
10707
|
+
}>, z.ZodObject<{
|
|
10708
|
+
event_type: z.ZodLiteral<"payload_guard_observed">;
|
|
10709
|
+
tool_name: z.ZodString;
|
|
10710
|
+
path_count: z.ZodNumber;
|
|
10711
|
+
tokens_estimated: z.ZodNumber;
|
|
10712
|
+
truncated: z.ZodBoolean;
|
|
10713
|
+
cap: z.ZodNumber;
|
|
10714
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10715
|
+
id: z.ZodString;
|
|
10716
|
+
ts: z.ZodNumber;
|
|
10717
|
+
schema_version: z.ZodLiteral<1>;
|
|
10718
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10719
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10720
|
+
}, "strip", z.ZodTypeAny, {
|
|
10721
|
+
id: string;
|
|
10722
|
+
ts: number;
|
|
10723
|
+
schema_version: 1;
|
|
10724
|
+
kind: "fabric-event";
|
|
10725
|
+
event_type: "payload_guard_observed";
|
|
10726
|
+
tool_name: string;
|
|
10727
|
+
path_count: number;
|
|
10728
|
+
tokens_estimated: number;
|
|
10729
|
+
truncated: boolean;
|
|
10730
|
+
cap: number;
|
|
10731
|
+
correlation_id?: string | undefined;
|
|
10732
|
+
session_id?: string | undefined;
|
|
10733
|
+
}, {
|
|
10734
|
+
id: string;
|
|
10735
|
+
ts: number;
|
|
10736
|
+
schema_version: 1;
|
|
10737
|
+
kind: "fabric-event";
|
|
10738
|
+
event_type: "payload_guard_observed";
|
|
10739
|
+
tool_name: string;
|
|
10740
|
+
path_count: number;
|
|
10741
|
+
tokens_estimated: number;
|
|
10742
|
+
truncated: boolean;
|
|
10743
|
+
cap: number;
|
|
10744
|
+
correlation_id?: string | undefined;
|
|
10745
|
+
session_id?: string | undefined;
|
|
10746
|
+
}>, z.ZodObject<{
|
|
10747
|
+
event_type: z.ZodLiteral<"skill_invocation_started">;
|
|
10748
|
+
skill_name: z.ZodString;
|
|
10749
|
+
trigger_source: z.ZodEnum<["user", "auto_invoke", "ai_self_trigger", "chained"]>;
|
|
10750
|
+
entry_point: z.ZodString;
|
|
10751
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10752
|
+
id: z.ZodString;
|
|
10753
|
+
ts: z.ZodNumber;
|
|
10754
|
+
schema_version: z.ZodLiteral<1>;
|
|
10755
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10756
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10757
|
+
}, "strip", z.ZodTypeAny, {
|
|
10758
|
+
id: string;
|
|
10759
|
+
ts: number;
|
|
10760
|
+
schema_version: 1;
|
|
10761
|
+
kind: "fabric-event";
|
|
10762
|
+
event_type: "skill_invocation_started";
|
|
10763
|
+
skill_name: string;
|
|
10764
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
10765
|
+
entry_point: string;
|
|
10766
|
+
correlation_id?: string | undefined;
|
|
10767
|
+
session_id?: string | undefined;
|
|
10768
|
+
}, {
|
|
10769
|
+
id: string;
|
|
10770
|
+
ts: number;
|
|
10771
|
+
schema_version: 1;
|
|
10772
|
+
kind: "fabric-event";
|
|
10773
|
+
event_type: "skill_invocation_started";
|
|
10774
|
+
skill_name: string;
|
|
10775
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
10776
|
+
entry_point: string;
|
|
10777
|
+
correlation_id?: string | undefined;
|
|
10778
|
+
session_id?: string | undefined;
|
|
10779
|
+
}>, z.ZodObject<{
|
|
10780
|
+
event_type: z.ZodLiteral<"skill_invocation_completed">;
|
|
10781
|
+
skill_name: z.ZodString;
|
|
10782
|
+
trigger_source: z.ZodEnum<["user", "auto_invoke", "ai_self_trigger", "chained"]>;
|
|
10783
|
+
entry_point: z.ZodString;
|
|
10784
|
+
outcome: z.ZodEnum<["completed", "aborted", "error", "no_op"]>;
|
|
10785
|
+
elapsed_ms: z.ZodOptional<z.ZodNumber>;
|
|
10786
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10787
|
+
id: z.ZodString;
|
|
10788
|
+
ts: z.ZodNumber;
|
|
10789
|
+
schema_version: z.ZodLiteral<1>;
|
|
10790
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10791
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10792
|
+
}, "strip", z.ZodTypeAny, {
|
|
10793
|
+
id: string;
|
|
10794
|
+
ts: number;
|
|
10795
|
+
schema_version: 1;
|
|
10796
|
+
kind: "fabric-event";
|
|
10797
|
+
event_type: "skill_invocation_completed";
|
|
10798
|
+
outcome: "aborted" | "completed" | "error" | "no_op";
|
|
10799
|
+
skill_name: string;
|
|
10800
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
10801
|
+
entry_point: string;
|
|
10802
|
+
correlation_id?: string | undefined;
|
|
10803
|
+
session_id?: string | undefined;
|
|
10804
|
+
elapsed_ms?: number | undefined;
|
|
10805
|
+
}, {
|
|
10806
|
+
id: string;
|
|
10807
|
+
ts: number;
|
|
10808
|
+
schema_version: 1;
|
|
10809
|
+
kind: "fabric-event";
|
|
10810
|
+
event_type: "skill_invocation_completed";
|
|
10811
|
+
outcome: "aborted" | "completed" | "error" | "no_op";
|
|
10812
|
+
skill_name: string;
|
|
10813
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
10814
|
+
entry_point: string;
|
|
10815
|
+
correlation_id?: string | undefined;
|
|
10816
|
+
session_id?: string | undefined;
|
|
10817
|
+
elapsed_ms?: number | undefined;
|
|
10818
|
+
}>, z.ZodObject<{
|
|
10819
|
+
event_type: z.ZodLiteral<"skill_phase_transition">;
|
|
10820
|
+
skill_name: z.ZodString;
|
|
10821
|
+
phase: z.ZodString;
|
|
10822
|
+
status: z.ZodEnum<["entered", "completed", "skipped", "failed"]>;
|
|
10823
|
+
checkpoint: z.ZodOptional<z.ZodString>;
|
|
10824
|
+
elapsed_ms: z.ZodOptional<z.ZodNumber>;
|
|
10825
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10826
|
+
id: z.ZodString;
|
|
10827
|
+
ts: z.ZodNumber;
|
|
10828
|
+
schema_version: z.ZodLiteral<1>;
|
|
10829
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10830
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10831
|
+
}, "strip", z.ZodTypeAny, {
|
|
10832
|
+
status: "skipped" | "completed" | "failed" | "entered";
|
|
10833
|
+
id: string;
|
|
10834
|
+
ts: number;
|
|
10835
|
+
schema_version: 1;
|
|
10836
|
+
kind: "fabric-event";
|
|
10837
|
+
phase: string;
|
|
10838
|
+
event_type: "skill_phase_transition";
|
|
10839
|
+
skill_name: string;
|
|
10840
|
+
correlation_id?: string | undefined;
|
|
10841
|
+
session_id?: string | undefined;
|
|
10842
|
+
elapsed_ms?: number | undefined;
|
|
10843
|
+
checkpoint?: string | undefined;
|
|
10844
|
+
}, {
|
|
10845
|
+
status: "skipped" | "completed" | "failed" | "entered";
|
|
10846
|
+
id: string;
|
|
10847
|
+
ts: number;
|
|
10848
|
+
schema_version: 1;
|
|
10849
|
+
kind: "fabric-event";
|
|
10850
|
+
phase: string;
|
|
10851
|
+
event_type: "skill_phase_transition";
|
|
10852
|
+
skill_name: string;
|
|
10853
|
+
correlation_id?: string | undefined;
|
|
10854
|
+
session_id?: string | undefined;
|
|
10855
|
+
elapsed_ms?: number | undefined;
|
|
10856
|
+
checkpoint?: string | undefined;
|
|
10857
|
+
}>, z.ZodObject<{
|
|
10858
|
+
event_type: z.ZodLiteral<"skill_trigger_candidate">;
|
|
10859
|
+
skill_name: z.ZodString;
|
|
10860
|
+
trigger_source: z.ZodEnum<["user", "auto_invoke", "ai_self_trigger", "chained"]>;
|
|
10861
|
+
signal: z.ZodString;
|
|
10862
|
+
invoked: z.ZodBoolean;
|
|
10863
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10864
|
+
id: z.ZodString;
|
|
10865
|
+
ts: z.ZodNumber;
|
|
10866
|
+
schema_version: z.ZodLiteral<1>;
|
|
10867
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10868
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10869
|
+
}, "strip", z.ZodTypeAny, {
|
|
10870
|
+
id: string;
|
|
10871
|
+
ts: number;
|
|
10872
|
+
schema_version: 1;
|
|
10873
|
+
kind: "fabric-event";
|
|
10874
|
+
event_type: "skill_trigger_candidate";
|
|
10875
|
+
skill_name: string;
|
|
10876
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
10877
|
+
signal: string;
|
|
10878
|
+
invoked: boolean;
|
|
10879
|
+
correlation_id?: string | undefined;
|
|
10880
|
+
session_id?: string | undefined;
|
|
10881
|
+
}, {
|
|
10882
|
+
id: string;
|
|
10883
|
+
ts: number;
|
|
10884
|
+
schema_version: 1;
|
|
10885
|
+
kind: "fabric-event";
|
|
10886
|
+
event_type: "skill_trigger_candidate";
|
|
10887
|
+
skill_name: string;
|
|
10888
|
+
trigger_source: "user" | "auto_invoke" | "ai_self_trigger" | "chained";
|
|
10889
|
+
signal: string;
|
|
10890
|
+
invoked: boolean;
|
|
10891
|
+
correlation_id?: string | undefined;
|
|
10892
|
+
session_id?: string | undefined;
|
|
10893
|
+
}>, z.ZodObject<{
|
|
10894
|
+
event_type: z.ZodLiteral<"llm_judge_run">;
|
|
10895
|
+
prompt: z.ZodString;
|
|
10896
|
+
version: z.ZodString;
|
|
10897
|
+
model: z.ZodString;
|
|
10898
|
+
input_trace_id: z.ZodString;
|
|
10899
|
+
score: z.ZodNumber;
|
|
10900
|
+
rationale: z.ZodString;
|
|
10901
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10902
|
+
id: z.ZodString;
|
|
10903
|
+
ts: z.ZodNumber;
|
|
10904
|
+
schema_version: z.ZodLiteral<1>;
|
|
10905
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10906
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10907
|
+
}, "strip", z.ZodTypeAny, {
|
|
10908
|
+
id: string;
|
|
10909
|
+
version: string;
|
|
10910
|
+
ts: number;
|
|
10911
|
+
model: string;
|
|
10912
|
+
schema_version: 1;
|
|
10913
|
+
kind: "fabric-event";
|
|
10914
|
+
rationale: string;
|
|
10915
|
+
event_type: "llm_judge_run";
|
|
10916
|
+
prompt: string;
|
|
10917
|
+
input_trace_id: string;
|
|
10918
|
+
score: number;
|
|
10919
|
+
correlation_id?: string | undefined;
|
|
10920
|
+
session_id?: string | undefined;
|
|
10921
|
+
}, {
|
|
10922
|
+
id: string;
|
|
10923
|
+
version: string;
|
|
10924
|
+
ts: number;
|
|
10925
|
+
model: string;
|
|
10926
|
+
schema_version: 1;
|
|
10927
|
+
kind: "fabric-event";
|
|
10928
|
+
rationale: string;
|
|
10929
|
+
event_type: "llm_judge_run";
|
|
10930
|
+
prompt: string;
|
|
10931
|
+
input_trace_id: string;
|
|
10932
|
+
score: number;
|
|
10933
|
+
correlation_id?: string | undefined;
|
|
10934
|
+
session_id?: string | undefined;
|
|
10935
|
+
}>, z.ZodObject<{
|
|
10936
|
+
event_type: z.ZodLiteral<"client_capability_snapshot">;
|
|
10937
|
+
client: z.ZodEnum<["cc", "codex", "cursor"]>;
|
|
10938
|
+
capabilities: z.ZodArray<z.ZodString, "many">;
|
|
10939
|
+
version: z.ZodString;
|
|
10940
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
10941
|
+
id: z.ZodString;
|
|
10942
|
+
ts: z.ZodNumber;
|
|
10943
|
+
schema_version: z.ZodLiteral<1>;
|
|
10944
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
10945
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
10946
|
+
}, "strip", z.ZodTypeAny, {
|
|
10947
|
+
id: string;
|
|
10948
|
+
version: string;
|
|
10949
|
+
ts: number;
|
|
10950
|
+
schema_version: 1;
|
|
10951
|
+
capabilities: string[];
|
|
10952
|
+
kind: "fabric-event";
|
|
10953
|
+
event_type: "client_capability_snapshot";
|
|
10954
|
+
client: "cursor" | "cc" | "codex";
|
|
10955
|
+
correlation_id?: string | undefined;
|
|
10956
|
+
session_id?: string | undefined;
|
|
10957
|
+
}, {
|
|
10958
|
+
id: string;
|
|
10959
|
+
version: string;
|
|
10960
|
+
ts: number;
|
|
10961
|
+
schema_version: 1;
|
|
10962
|
+
capabilities: string[];
|
|
10963
|
+
kind: "fabric-event";
|
|
10964
|
+
event_type: "client_capability_snapshot";
|
|
10965
|
+
client: "cursor" | "cc" | "codex";
|
|
10966
|
+
correlation_id?: string | undefined;
|
|
10967
|
+
session_id?: string | undefined;
|
|
10104
10968
|
}>]>;
|
|
10105
10969
|
type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
|
|
10106
10970
|
type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
|
|
@@ -10146,7 +11010,17 @@ type EventsRotatedEvent = z.infer<typeof eventsRotatedEventSchema>;
|
|
|
10146
11010
|
type ServeLockClearedEvent = z.infer<typeof serveLockClearedEventSchema>;
|
|
10147
11011
|
type KnowledgeEnrichedEvent = z.infer<typeof knowledgeEnrichedEventSchema>;
|
|
10148
11012
|
type SessionArchiveAttemptedEvent = z.infer<typeof sessionArchiveAttemptedEventSchema>;
|
|
10149
|
-
type
|
|
11013
|
+
type HookSurfaceEmittedEvent = z.infer<typeof hookSurfaceEmittedEventSchema>;
|
|
11014
|
+
type HookSignalEmittedEvent = z.infer<typeof hookSignalEmittedEventSchema>;
|
|
11015
|
+
type McpStdioTraceEvent = z.infer<typeof mcpStdioTraceEventSchema>;
|
|
11016
|
+
type PayloadGuardObservedEvent = z.infer<typeof payloadGuardObservedEventSchema>;
|
|
11017
|
+
type SkillInvocationStartedEvent = z.infer<typeof skillInvocationStartedEventSchema>;
|
|
11018
|
+
type SkillInvocationCompletedEvent = z.infer<typeof skillInvocationCompletedEventSchema>;
|
|
11019
|
+
type SkillPhaseTransitionEvent = z.infer<typeof skillPhaseTransitionEventSchema>;
|
|
11020
|
+
type SkillTriggerCandidateEvent = z.infer<typeof skillTriggerCandidateEventSchema>;
|
|
11021
|
+
type LlmJudgeRunEvent = z.infer<typeof llmJudgeRunEventSchema>;
|
|
11022
|
+
type ClientCapabilitySnapshotEvent = z.infer<typeof clientCapabilitySnapshotEventSchema>;
|
|
11023
|
+
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 | HookSurfaceEmittedEvent | HookSignalEmittedEvent | McpStdioTraceEvent | PayloadGuardObservedEvent | SkillInvocationStartedEvent | SkillInvocationCompletedEvent | SkillPhaseTransitionEvent | SkillTriggerCandidateEvent | LlmJudgeRunEvent | ClientCapabilitySnapshotEvent;
|
|
10150
11024
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
10151
11025
|
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;
|
|
10152
11026
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
@@ -10188,4 +11062,44 @@ declare function normalizeCiteTag(rawTag: string): CiteTag;
|
|
|
10188
11062
|
*/
|
|
10189
11063
|
declare function parseCiteLine(raw: string): ParseCiteLineResult;
|
|
10190
11064
|
|
|
10191
|
-
|
|
11065
|
+
/**
|
|
11066
|
+
* Tokenize bilingual text into BM25 terms.
|
|
11067
|
+
*
|
|
11068
|
+
* Latin/digit runs become lower-cased word tokens; CJK runs become overlapping
|
|
11069
|
+
* character bigrams (singleton for length-1 runs). Returns terms in document
|
|
11070
|
+
* order, including duplicates — callers that need term frequencies count them,
|
|
11071
|
+
* callers that need a vocabulary dedupe.
|
|
11072
|
+
*/
|
|
11073
|
+
declare function tokenize(text: string): string[];
|
|
11074
|
+
|
|
11075
|
+
type RetrievalBudgetProfile = "conservative" | "balanced" | "generous";
|
|
11076
|
+
interface ResolvedRetrievalBudget {
|
|
11077
|
+
/** MCP layer — max candidates returned by fab_plan_context (count). */
|
|
11078
|
+
topK: number;
|
|
11079
|
+
/** MCP layer — payload soft-warn threshold (bytes). */
|
|
11080
|
+
payloadWarnBytes: number;
|
|
11081
|
+
/** MCP layer — payload hard trim ceiling (bytes). */
|
|
11082
|
+
payloadHardBytes: number;
|
|
11083
|
+
/** Injection layer — SessionStart broad-menu body char budget. */
|
|
11084
|
+
injectionChars: number;
|
|
11085
|
+
}
|
|
11086
|
+
declare const DEFAULT_RETRIEVAL_BUDGET_PROFILE: RetrievalBudgetProfile;
|
|
11087
|
+
/** The per-field overrides that, when present, take precedence over the profile. */
|
|
11088
|
+
interface RetrievalBudgetOverrides {
|
|
11089
|
+
profile?: RetrievalBudgetProfile;
|
|
11090
|
+
topK?: number;
|
|
11091
|
+
payloadWarnBytes?: number;
|
|
11092
|
+
payloadHardBytes?: number;
|
|
11093
|
+
injectionChars?: number;
|
|
11094
|
+
}
|
|
11095
|
+
/**
|
|
11096
|
+
* Resolve the layered retrieval budget: start from the named profile (default
|
|
11097
|
+
* `balanced`), then let any explicitly-supplied per-field override win. Each
|
|
11098
|
+
* field is resolved independently, so an operator can pin a single knob (e.g.
|
|
11099
|
+
* payloadHardBytes) while the rest follow the chosen profile.
|
|
11100
|
+
*/
|
|
11101
|
+
declare function resolveRetrievalBudget(overrides?: RetrievalBudgetOverrides): ResolvedRetrievalBudget;
|
|
11102
|
+
/** Exposed for tests / introspection — the raw profile table. */
|
|
11103
|
+
declare function retrievalBudgetProfile(profile: RetrievalBudgetProfile): ResolvedRetrievalBudget;
|
|
11104
|
+
|
|
11105
|
+
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 ClientCapabilitySnapshotEvent, type CodexSkillPathMigratedEvent, type CrossStoreLintInput, type CrossStoreRefViolation, DEFAULT_RETRIEVAL_BUDGET_PROFILE, type DebugBundle, type DebugBundleInput, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EntryLayer, type EntryScopeMetadata, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, type FabricConfigSchemaShape, type FabricEvent, type FailureStage, type FailureTrace, type FindStoreExecutableViolationsOptions, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, GLOBAL_BINDINGS_DIR, GLOBAL_REF_PATTERN, GLOBAL_STATE_DIR, type GlobalConfig, type GlobalRef, type HookSignalEmittedEvent, type HookSurfaceEmittedEvent, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, type InitStoreOptions, type InstallDiffAppliedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, KNOWN_SCOPE_PREFIXES, 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 KnowledgeProvenance, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, type KnowledgeUnarchivedEvent, Layer, type LedgerAppendedEvent, LedgerEntry, type LlmJudgeRunEvent, type LocalKnowledgeId, type LockApprovedEvent, type LockDriftEvent, MCP_STORE_AWARE_CONTRACTS, MCP_STORE_AWARE_TOOLS, type McpConfigMigratedEvent, type McpEventLedgerEvent, type McpStdioTraceEvent, type McpStoreAwareContract, type McpStoreAwareTool, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type MountedStore, type MountedStoreDir, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, PARITY_CLIENTS, PARITY_SURFACES, PERSONAL_SCOPE, PERSONAL_STORE_SENTINEL, PROJECT_ROOT_SIGNALS, type PanelFieldGroup, type PanelFieldMeta, type ParityCapability, type ParityClient, type ParityClientExpectation, type ParityMatrix, type ParitySurface, type ParseCiteLineResult, type ParsedGlobalRef, type PayloadGuardObservedEvent, type PendingAutoArchivedEvent, type ProjectRootGoldenCase, type ProjectRootResolution, type ProjectRootResolver, type ProjectRootSignal, type ProjectRootSignals, type QualifiedCandidate, type QualifiedIdResolution, REDACTION_PLACEHOLDER_PREFIX, type ReadSetEntry, type ReadSetGoldenCase, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type RequiredStoreEntry, type ResolutionCandidate, type ResolutionResult, type ResolutionWarning, type ResolveOptions, type ResolvedBindingsSnapshot, type ResolvedEntry, type ResolvedRetrievalBudget, ResolverNotImplementedError, type RetrievalBudgetOverrides, type RetrievalBudgetProfile, SCOPE_COORDINATE_PATTERN, STORES_ROOT_DIR, STORE_GITIGNORE, STORE_KNOWLEDGE_TYPE_DIRS, STORE_LAYOUT, STORE_PENDING_DIR, STORE_RESOLVER_WARNING_CODES, STORE_UUID_PATTERN, type ScanRecommendationInput, type ScopeCoordinate, type SecretFinding, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, type SkillInvocationCompletedEvent, type SkillInvocationStartedEvent, type SkillPhaseTransitionEvent, type SkillTriggerCandidateEvent, StableId, type StoreAwareEntry, type StoreCounters, type StoreExplain, type StoreIdentity, type StoreKnowledgeRef, type StoreLayout, type StoreReadSet, type StoreResolveInput, type StoreResolver, type StoreResolverWarning, type StoreResolverWarningCode, type StoreVisibility, Translator, UID_SEGMENT_PATTERN, type Uid, type ValidateResult, type WriteBindingsSnapshotOptions, type WriteTarget, type WrittenToStore, addMountedStore, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aggregatePendingAcrossStores, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, bindRequiredStore, bindingsSnapshotPath, bootstrapMarkerMigratedEventSchema, buildDebugBundle, buildFailureTrace, buildScanRecommendations, candidateFileEntrySchema, citeContractPolicyActivatedEventSchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientCapabilitySnapshotEventSchema, codexSkillPathMigratedEventSchema, createProjectRootResolver, createStoreResolver, defaultAgentsMetaCounters, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, detachMountedStore, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, entryScopeMetadataSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, explainStore, fabricConfigSchema, fabricEventSchema, findMountedStore, findStoreExecutableViolations, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, formatGlobalRef, getPanelFieldByKey, getPanelFields, globalConfigSchema, globalRefSchema, hasSecrets, hookSignalEmittedEventSchema, hookSurfaceEmittedEventSchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, initStore, installDiffAppliedEventSchema, isKnowledgeStableId, isPersonalLeakIntoSharedStore, isPersonalScope, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeIdRedirectEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeProvenanceSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, knowledgeUnarchivedEventSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lintCrossStoreReferences, listStoreKnowledge, llmJudgeRunEventSchema, localKnowledgeIdSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpStdioTraceEventSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, mountedStoreSchema, normalizeCiteTag, onboardSlotSchema, parityCapabilitySchema, parityClientExpectationSchema, parityClientSchema, parityMatrixSchema, paritySurfaceSchema, parseCiteLine, parseGlobalRef, payloadGuardObservedEventSchema, pendingAutoArchivedEventSchema, projectRootGoldenCaseSchema, projectRootGoldenFileSchema, projectRootResolutionSchema, projectRootSignalSchema, projectRootSignalsSchema, readBindingsSnapshot, readKnowledgeAcrossStores, readSetEntrySchema, readSetGoldenCaseSchema, readSetGoldenFileSchema, readStoreIdentity, reapplyCompletedEventSchema, recognizeStoreDir, redactSecrets, relevanceMigrationRunEventSchema, requiredStoreEntrySchema, resolveCandidates, resolveRetrievalBudget, resolveStoreQualifiedId, resolvedBindingsSnapshotSchema, retrievalBudgetProfile, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, scanForSecrets, scopeCoordinateSchema, scopeRoot, scrubRemoteUrl, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, skillInvocationCompletedEventSchema, skillInvocationStartedEventSchema, skillPhaseTransitionEventSchema, skillTriggerCandidateEventSchema, storeAwareEntrySchema, storeCountersSchema, storeIdentitySchema, storeKnowledgeTypeDir, storeReadSetSchema, storeRelativePath, storeResolveInputSchema, storeResolverWarningCodeSchema, storeResolverWarningSchema, storeUuidSchema, tokenize, uidSchema, withDerivedAgentsMetaNodeDefaults, writeBindingsSnapshot, writeTargetSchema, writtenToStoreSchema };
|