@fenglimg/fabric-shared 2.2.0-rc.1 → 2.2.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,21 +1,20 @@
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';
1
+ import { A as AgentsMetaNode, a as AgentsIdentitySource, b as AgentsTopologyType, H as HumanLockEntry, f as fabricConfigSchema, F as FabricConfig, c as AgentsMeta, L as LedgerEntry } from './index-D_gT1CEA.js';
2
+ export { d as AgentsMetaCountersEnvelope, e as AgentsMetaKnowledgeTypeCounters, g as AiLedgerEntry, h as AuditMode, C as ClientPaths, D as DefaultLayerFilter, i as FabricLanguage, j as HumanLedgerEntry, M as McpPayloadLimits, R as RuleDescription, k as RuleDescriptionIndexItem, l as auditModeSchema, m as clientPathsSchema, n as defaultLayerFilterSchema, o as fabricLanguageSchema, p as mcpPayloadLimitsSchema, q as nudgeModeSchema, r as observeConfigSchema, s as planContextTopKSchema, t as selectionTokenTtlMsSchema, w as writeRouteSchema } from './index-D_gT1CEA.js';
3
+ import { T as Translator } from './types-qg4xXVuT.js';
4
+ export { L as Locale, M as Messages, a as TranslationKey } from './types-qg4xXVuT.js';
5
+ export { PROTECTED_TOKENS, ProtectedToken, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, resolveFabricLocale, resolveGlobalLocale, zhCNMessages } from './i18n/index.js';
5
6
  import { z } from 'zod';
6
7
  import { Layer, KnowledgeType, StableId } from './schemas/api-contracts.js';
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';
8
- export { BOOTSTRAP_CANONICAL, BOOTSTRAP_MARKER_BEGIN, BOOTSTRAP_MARKER_END, BOOTSTRAP_REGEX, LEGACY_KB_MARKER_BEGIN, LEGACY_KB_MARKER_END, LEGACY_KB_REGEX } from './templates/bootstrap-canonical.js';
8
+ 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_BY_LOCALE, 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';
9
+ export { BOOTSTRAP_CANONICAL_BY_LOCALE, BOOTSTRAP_CANONICAL_EN, BOOTSTRAP_CANONICAL_ZH, BOOTSTRAP_MARKER_BEGIN, BOOTSTRAP_MARKER_END, BOOTSTRAP_REGEX, matchBootstrapCanonicalLocale, resolveBootstrapCanonical } from './templates/bootstrap-canonical.js';
9
10
 
10
11
  declare const ONBOARD_SLOT_NAMES: readonly ["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"];
11
12
  type OnboardSlot = (typeof ONBOARD_SLOT_NAMES)[number];
12
13
  declare const onboardSlotSchema: z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>;
13
14
  declare const ONBOARD_SLOT_TOTAL: 5;
14
15
 
15
- declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
16
16
  declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
17
17
  declare const AGENTS_META_IDENTITY_SOURCES: readonly ["declared", "derived"];
18
- declare const agentsLayerSchema: z.ZodEnum<["L0", "L1", "L2"]>;
19
18
  declare const agentsTopologyTypeSchema: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
20
19
  declare const agentsIdentitySourceSchema: z.ZodEnum<["declared", "derived"]>;
21
20
  type AgentsMetaNodeInput = AgentsMetaNode;
@@ -73,9 +72,6 @@ declare const ruleDescriptionSchema: z.ZodObject<{
73
72
  }>;
74
73
  declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
75
74
  stable_id: z.ZodString;
76
- level: z.ZodEnum<["L0", "L1", "L2"]>;
77
- required: z.ZodBoolean;
78
- selectable: z.ZodBoolean;
79
75
  description: z.ZodObject<{
80
76
  summary: z.ZodString;
81
77
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -148,9 +144,6 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
148
144
  related?: string[] | undefined;
149
145
  };
150
146
  stable_id: string;
151
- level: "L0" | "L1" | "L2";
152
- required: boolean;
153
- selectable: boolean;
154
147
  }, {
155
148
  description: {
156
149
  summary: string;
@@ -171,9 +164,6 @@ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
171
164
  related?: string[] | undefined;
172
165
  };
173
166
  stable_id: string;
174
- level: "L0" | "L1" | "L2";
175
- required: boolean;
176
- selectable: boolean;
177
167
  }>;
178
168
  declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
179
169
  file: z.ZodString;
@@ -182,16 +172,6 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
182
172
  hash: z.ZodString;
183
173
  stable_id: z.ZodOptional<z.ZodString>;
184
174
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
185
- activation: z.ZodOptional<z.ZodObject<{
186
- tier: z.ZodEnum<["always", "path", "description"]>;
187
- description: z.ZodOptional<z.ZodString>;
188
- }, "strip", z.ZodTypeAny, {
189
- tier: "always" | "path" | "description";
190
- description?: string | undefined;
191
- }, {
192
- tier: "always" | "path" | "description";
193
- description?: string | undefined;
194
- }>>;
195
175
  description: z.ZodOptional<z.ZodObject<{
196
176
  summary: z.ZodString;
197
177
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -252,16 +232,6 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
252
232
  hash: z.ZodString;
253
233
  stable_id: z.ZodOptional<z.ZodString>;
254
234
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
255
- activation: z.ZodOptional<z.ZodObject<{
256
- tier: z.ZodEnum<["always", "path", "description"]>;
257
- description: z.ZodOptional<z.ZodString>;
258
- }, "strip", z.ZodTypeAny, {
259
- tier: "always" | "path" | "description";
260
- description?: string | undefined;
261
- }, {
262
- tier: "always" | "path" | "description";
263
- description?: string | undefined;
264
- }>>;
265
235
  description: z.ZodOptional<z.ZodObject<{
266
236
  summary: z.ZodString;
267
237
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -322,16 +292,6 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
322
292
  hash: z.ZodString;
323
293
  stable_id: z.ZodOptional<z.ZodString>;
324
294
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
325
- activation: z.ZodOptional<z.ZodObject<{
326
- tier: z.ZodEnum<["always", "path", "description"]>;
327
- description: z.ZodOptional<z.ZodString>;
328
- }, "strip", z.ZodTypeAny, {
329
- tier: "always" | "path" | "description";
330
- description?: string | undefined;
331
- }, {
332
- tier: "always" | "path" | "description";
333
- description?: string | undefined;
334
- }>>;
335
295
  description: z.ZodOptional<z.ZodObject<{
336
296
  summary: z.ZodString;
337
297
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -392,16 +352,6 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
392
352
  hash: z.ZodString;
393
353
  stable_id: z.ZodOptional<z.ZodString>;
394
354
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
395
- activation: z.ZodOptional<z.ZodObject<{
396
- tier: z.ZodEnum<["always", "path", "description"]>;
397
- description: z.ZodOptional<z.ZodString>;
398
- }, "strip", z.ZodTypeAny, {
399
- tier: "always" | "path" | "description";
400
- description?: string | undefined;
401
- }, {
402
- tier: "always" | "path" | "description";
403
- description?: string | undefined;
404
- }>>;
405
355
  description: z.ZodOptional<z.ZodObject<{
406
356
  summary: z.ZodString;
407
357
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -536,16 +486,6 @@ declare const agentsMetaSchema: z.ZodObject<{
536
486
  hash: z.ZodString;
537
487
  stable_id: z.ZodOptional<z.ZodString>;
538
488
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
539
- activation: z.ZodOptional<z.ZodObject<{
540
- tier: z.ZodEnum<["always", "path", "description"]>;
541
- description: z.ZodOptional<z.ZodString>;
542
- }, "strip", z.ZodTypeAny, {
543
- tier: "always" | "path" | "description";
544
- description?: string | undefined;
545
- }, {
546
- tier: "always" | "path" | "description";
547
- description?: string | undefined;
548
- }>>;
549
489
  description: z.ZodOptional<z.ZodObject<{
550
490
  summary: z.ZodString;
551
491
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -606,16 +546,6 @@ declare const agentsMetaSchema: z.ZodObject<{
606
546
  hash: z.ZodString;
607
547
  stable_id: z.ZodOptional<z.ZodString>;
608
548
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
609
- activation: z.ZodOptional<z.ZodObject<{
610
- tier: z.ZodEnum<["always", "path", "description"]>;
611
- description: z.ZodOptional<z.ZodString>;
612
- }, "strip", z.ZodTypeAny, {
613
- tier: "always" | "path" | "description";
614
- description?: string | undefined;
615
- }, {
616
- tier: "always" | "path" | "description";
617
- description?: string | undefined;
618
- }>>;
619
549
  description: z.ZodOptional<z.ZodObject<{
620
550
  summary: z.ZodString;
621
551
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -676,16 +606,6 @@ declare const agentsMetaSchema: z.ZodObject<{
676
606
  hash: z.ZodString;
677
607
  stable_id: z.ZodOptional<z.ZodString>;
678
608
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
679
- activation: z.ZodOptional<z.ZodObject<{
680
- tier: z.ZodEnum<["always", "path", "description"]>;
681
- description: z.ZodOptional<z.ZodString>;
682
- }, "strip", z.ZodTypeAny, {
683
- tier: "always" | "path" | "description";
684
- description?: string | undefined;
685
- }, {
686
- tier: "always" | "path" | "description";
687
- description?: string | undefined;
688
- }>>;
689
609
  description: z.ZodOptional<z.ZodObject<{
690
610
  summary: z.ZodString;
691
611
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -746,16 +666,6 @@ declare const agentsMetaSchema: z.ZodObject<{
746
666
  hash: z.ZodString;
747
667
  stable_id: z.ZodOptional<z.ZodString>;
748
668
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
749
- activation: z.ZodOptional<z.ZodObject<{
750
- tier: z.ZodEnum<["always", "path", "description"]>;
751
- description: z.ZodOptional<z.ZodString>;
752
- }, "strip", z.ZodTypeAny, {
753
- tier: "always" | "path" | "description";
754
- description?: string | undefined;
755
- }, {
756
- tier: "always" | "path" | "description";
757
- description?: string | undefined;
758
- }>>;
759
669
  description: z.ZodOptional<z.ZodObject<{
760
670
  summary: z.ZodString;
761
671
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -889,16 +799,6 @@ declare const agentsMetaSchema: z.ZodObject<{
889
799
  hash: z.ZodString;
890
800
  stable_id: z.ZodOptional<z.ZodString>;
891
801
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
892
- activation: z.ZodOptional<z.ZodObject<{
893
- tier: z.ZodEnum<["always", "path", "description"]>;
894
- description: z.ZodOptional<z.ZodString>;
895
- }, "strip", z.ZodTypeAny, {
896
- tier: "always" | "path" | "description";
897
- description?: string | undefined;
898
- }, {
899
- tier: "always" | "path" | "description";
900
- description?: string | undefined;
901
- }>>;
902
802
  description: z.ZodOptional<z.ZodObject<{
903
803
  summary: z.ZodString;
904
804
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -1023,7 +923,6 @@ declare function defaultAgentsMetaCounters(): AgentsMetaCounters;
1023
923
  */
1024
924
  declare function deriveAgentsMetaStableId(file: string): string;
1025
925
  declare function deriveAgentsMetaIdentitySource(node: Pick<AgentsMetaNode, "file"> & Partial<Pick<AgentsMetaNode, "stable_id" | "identity_source">>): AgentsIdentitySource;
1026
- declare function deriveAgentsMetaLayer(file: string): AgentsLayer;
1027
926
  declare function deriveAgentsMetaTopologyType(file: string): AgentsTopologyType;
1028
927
 
1029
928
  declare const KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION = 1;
@@ -1351,7 +1250,8 @@ declare const humanLockFileSchema: z.ZodObject<{
1351
1250
  }>;
1352
1251
 
1353
1252
  type FabricConfigSchemaShape = z.infer<typeof fabricConfigSchema>;
1354
- type PanelFieldGroup = "A_locale" | "B_hint_threshold" | "C_audit";
1253
+ type PanelFieldKey = keyof FabricConfigSchemaShape | "fabric_language";
1254
+ type PanelFieldGroup = "A_locale" | "B_hint_threshold" | "C_audit" | "D_behavior";
1355
1255
  type ValidateResult = {
1356
1256
  ok: true;
1357
1257
  value: unknown;
@@ -1360,8 +1260,8 @@ type ValidateResult = {
1360
1260
  error: string;
1361
1261
  };
1362
1262
  interface PanelFieldMeta {
1363
- /** Schema key this field edits type-checked against the inferred config shape. */
1364
- readonly key: keyof FabricConfigSchemaShape;
1263
+ /** Schema key this field edits (plus the virtual global-routed `fabric_language`). */
1264
+ readonly key: PanelFieldKey;
1365
1265
  /** Logical grouping for panel section headers. */
1366
1266
  readonly group: PanelFieldGroup;
1367
1267
  /** Clack widget hint — `select` for enums, `text` for free-form numbers. */
@@ -1381,7 +1281,7 @@ interface PanelFieldMeta {
1381
1281
  }
1382
1282
  /**
1383
1283
  * Returns the per-field metadata array driving the `fabric config` clack panel.
1384
- * Group A (2) + Group B (8) + Group C (1) = 11 entries.
1284
+ * Group A (2) + Group B (8) + Group C (1) + Group D (2) = 13 entries.
1385
1285
  */
1386
1286
  declare function getPanelFields(): readonly PanelFieldMeta[];
1387
1287
  /**
@@ -1392,6 +1292,8 @@ declare function getPanelFieldByKey(key: string): PanelFieldMeta | undefined;
1392
1292
 
1393
1293
  declare const STORE_UUID_PATTERN: RegExp;
1394
1294
  declare const storeUuidSchema: z.ZodString;
1295
+ declare const STORE_ALIAS_PATTERN: RegExp;
1296
+ declare const storeAliasSchema: z.ZodString;
1395
1297
  declare const PERSONAL_STORE_SENTINEL: "$personal";
1396
1298
  declare const storeIdentitySchema: z.ZodObject<{
1397
1299
  store_uuid: z.ZodString;
@@ -1402,17 +1304,62 @@ declare const storeIdentitySchema: z.ZodObject<{
1402
1304
  }, "strict", z.ZodTypeAny, {
1403
1305
  store_uuid: string;
1404
1306
  created_at: string;
1405
- description?: string | undefined;
1406
1307
  canonical_alias?: string | undefined;
1308
+ description?: string | undefined;
1407
1309
  allowed_scopes?: string[] | undefined;
1408
1310
  }, {
1409
1311
  store_uuid: string;
1410
1312
  created_at: string;
1411
- description?: string | undefined;
1412
1313
  canonical_alias?: string | undefined;
1314
+ description?: string | undefined;
1413
1315
  allowed_scopes?: string[] | undefined;
1414
1316
  }>;
1415
1317
  type StoreIdentity = z.infer<typeof storeIdentitySchema>;
1318
+ declare const STORE_PROJECT_ID_PATTERN: RegExp;
1319
+ declare const STORE_MOUNT_NAME_PATTERN: RegExp;
1320
+ declare const storeMountNameSchema: z.ZodEffects<z.ZodString, string, string>;
1321
+ declare const storeProjectSchema: z.ZodObject<{
1322
+ id: z.ZodString;
1323
+ name: z.ZodOptional<z.ZodString>;
1324
+ created_at: z.ZodString;
1325
+ }, "strict", z.ZodTypeAny, {
1326
+ created_at: string;
1327
+ id: string;
1328
+ name?: string | undefined;
1329
+ }, {
1330
+ created_at: string;
1331
+ id: string;
1332
+ name?: string | undefined;
1333
+ }>;
1334
+ type StoreProject = z.infer<typeof storeProjectSchema>;
1335
+ declare const storeProjectsFileSchema: z.ZodObject<{
1336
+ projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
1337
+ id: z.ZodString;
1338
+ name: z.ZodOptional<z.ZodString>;
1339
+ created_at: z.ZodString;
1340
+ }, "strict", z.ZodTypeAny, {
1341
+ created_at: string;
1342
+ id: string;
1343
+ name?: string | undefined;
1344
+ }, {
1345
+ created_at: string;
1346
+ id: string;
1347
+ name?: string | undefined;
1348
+ }>, "many">>;
1349
+ }, "strict", z.ZodTypeAny, {
1350
+ projects: {
1351
+ created_at: string;
1352
+ id: string;
1353
+ name?: string | undefined;
1354
+ }[];
1355
+ }, {
1356
+ projects?: {
1357
+ created_at: string;
1358
+ id: string;
1359
+ name?: string | undefined;
1360
+ }[] | undefined;
1361
+ }>;
1362
+ type StoreProjectsFile = z.infer<typeof storeProjectsFileSchema>;
1416
1363
  declare const requiredStoreEntrySchema: z.ZodObject<{
1417
1364
  id: z.ZodString;
1418
1365
  suggested_remote: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"$personal">]>>;
@@ -1427,6 +1374,8 @@ type RequiredStoreEntry = z.infer<typeof requiredStoreEntrySchema>;
1427
1374
  declare const STORE_KNOWLEDGE_TYPE_DIRS: readonly ["models", "decisions", "guidelines", "pitfalls", "processes"];
1428
1375
  declare const STORE_LAYOUT: {
1429
1376
  readonly identityFile: "store.json";
1377
+ readonly projectsFile: "projects.json";
1378
+ readonly countersFile: "counters.json";
1430
1379
  readonly knowledgeDir: "knowledge";
1431
1380
  readonly bindingsDir: "bindings";
1432
1381
  readonly stateDir: "state";
@@ -1437,9 +1386,31 @@ declare const GLOBAL_STATE_DIR = "state";
1437
1386
  declare const GLOBAL_BINDINGS_DIR = "bindings";
1438
1387
  declare function storeKnowledgeTypeDir(type: (typeof STORE_KNOWLEDGE_TYPE_DIRS)[number]): string;
1439
1388
  declare function storeRelativePath(storeUuid: string): string;
1389
+ declare const STORE_MOUNT_GROUPS: readonly ["personal", "team"];
1390
+ type StoreMountGroup = (typeof STORE_MOUNT_GROUPS)[number];
1391
+ declare function storeMountGroup(store: {
1392
+ personal?: boolean;
1393
+ }): StoreMountGroup;
1394
+ declare function storeMountSubPath(store: {
1395
+ store_uuid: string;
1396
+ mount_name?: string;
1397
+ personal?: boolean;
1398
+ }): string;
1399
+ declare function storeRelativePathForMount(store: {
1400
+ store_uuid: string;
1401
+ mount_name?: string;
1402
+ personal?: boolean;
1403
+ }): string;
1404
+ declare function deriveMountLabel(input: {
1405
+ remote?: string;
1406
+ alias?: string;
1407
+ store_uuid: string;
1408
+ }): string;
1440
1409
  declare const mountedStoreSchema: z.ZodObject<{
1441
1410
  store_uuid: z.ZodString;
1411
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1442
1412
  alias: z.ZodString;
1413
+ display_name: z.ZodOptional<z.ZodString>;
1443
1414
  remote: z.ZodOptional<z.ZodString>;
1444
1415
  personal: z.ZodOptional<z.ZodBoolean>;
1445
1416
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1447,21 +1418,28 @@ declare const mountedStoreSchema: z.ZodObject<{
1447
1418
  store_uuid: string;
1448
1419
  alias: string;
1449
1420
  personal?: boolean | undefined;
1421
+ mount_name?: string | undefined;
1422
+ display_name?: string | undefined;
1450
1423
  remote?: string | undefined;
1451
1424
  writable?: boolean | undefined;
1452
1425
  }, {
1453
1426
  store_uuid: string;
1454
1427
  alias: string;
1455
1428
  personal?: boolean | undefined;
1429
+ mount_name?: string | undefined;
1430
+ display_name?: string | undefined;
1456
1431
  remote?: string | undefined;
1457
1432
  writable?: boolean | undefined;
1458
1433
  }>;
1459
1434
  type MountedStore = z.infer<typeof mountedStoreSchema>;
1460
1435
  declare const globalConfigSchema: z.ZodObject<{
1461
1436
  uid: z.ZodString;
1437
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1462
1438
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1463
1439
  store_uuid: z.ZodString;
1440
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1464
1441
  alias: z.ZodString;
1442
+ display_name: z.ZodOptional<z.ZodString>;
1465
1443
  remote: z.ZodOptional<z.ZodString>;
1466
1444
  personal: z.ZodOptional<z.ZodBoolean>;
1467
1445
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1469,20 +1447,27 @@ declare const globalConfigSchema: z.ZodObject<{
1469
1447
  store_uuid: string;
1470
1448
  alias: string;
1471
1449
  personal?: boolean | undefined;
1450
+ mount_name?: string | undefined;
1451
+ display_name?: string | undefined;
1472
1452
  remote?: string | undefined;
1473
1453
  writable?: boolean | undefined;
1474
1454
  }, {
1475
1455
  store_uuid: string;
1476
1456
  alias: string;
1477
1457
  personal?: boolean | undefined;
1458
+ mount_name?: string | undefined;
1459
+ display_name?: string | undefined;
1478
1460
  remote?: string | undefined;
1479
1461
  writable?: boolean | undefined;
1480
1462
  }>, "many">>>;
1481
1463
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1482
1464
  uid: z.ZodString;
1465
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1483
1466
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1484
1467
  store_uuid: z.ZodString;
1468
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1485
1469
  alias: z.ZodString;
1470
+ display_name: z.ZodOptional<z.ZodString>;
1486
1471
  remote: z.ZodOptional<z.ZodString>;
1487
1472
  personal: z.ZodOptional<z.ZodBoolean>;
1488
1473
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1490,20 +1475,27 @@ declare const globalConfigSchema: z.ZodObject<{
1490
1475
  store_uuid: string;
1491
1476
  alias: string;
1492
1477
  personal?: boolean | undefined;
1478
+ mount_name?: string | undefined;
1479
+ display_name?: string | undefined;
1493
1480
  remote?: string | undefined;
1494
1481
  writable?: boolean | undefined;
1495
1482
  }, {
1496
1483
  store_uuid: string;
1497
1484
  alias: string;
1498
1485
  personal?: boolean | undefined;
1486
+ mount_name?: string | undefined;
1487
+ display_name?: string | undefined;
1499
1488
  remote?: string | undefined;
1500
1489
  writable?: boolean | undefined;
1501
1490
  }>, "many">>>;
1502
1491
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1503
1492
  uid: z.ZodString;
1493
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1504
1494
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1505
1495
  store_uuid: z.ZodString;
1496
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1506
1497
  alias: z.ZodString;
1498
+ display_name: z.ZodOptional<z.ZodString>;
1507
1499
  remote: z.ZodOptional<z.ZodString>;
1508
1500
  personal: z.ZodOptional<z.ZodBoolean>;
1509
1501
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1511,12 +1503,16 @@ declare const globalConfigSchema: z.ZodObject<{
1511
1503
  store_uuid: string;
1512
1504
  alias: string;
1513
1505
  personal?: boolean | undefined;
1506
+ mount_name?: string | undefined;
1507
+ display_name?: string | undefined;
1514
1508
  remote?: string | undefined;
1515
1509
  writable?: boolean | undefined;
1516
1510
  }, {
1517
1511
  store_uuid: string;
1518
1512
  alias: string;
1519
1513
  personal?: boolean | undefined;
1514
+ mount_name?: string | undefined;
1515
+ display_name?: string | undefined;
1520
1516
  remote?: string | undefined;
1521
1517
  writable?: boolean | undefined;
1522
1518
  }>, "many">>>;
@@ -1629,8 +1625,8 @@ declare const storeCountersSchema: z.ZodDefault<z.ZodObject<{
1629
1625
  }>>;
1630
1626
  type StoreCounters = z.infer<typeof storeCountersSchema>;
1631
1627
 
1632
- declare const PARITY_CLIENTS: readonly ["claudeCode", "codexCLI", "cursor"];
1633
- declare const parityClientSchema: z.ZodEnum<["claudeCode", "codexCLI", "cursor"]>;
1628
+ declare const PARITY_CLIENTS: readonly ["claudeCode", "codexCLI"];
1629
+ declare const parityClientSchema: z.ZodEnum<["claudeCode", "codexCLI"]>;
1634
1630
  type ParityClient = z.infer<typeof parityClientSchema>;
1635
1631
  declare const PARITY_SURFACES: readonly ["skill", "hook", "mcp", "render"];
1636
1632
  declare const paritySurfaceSchema: z.ZodEnum<["skill", "hook", "mcp", "render"]>;
@@ -1680,25 +1676,7 @@ declare const parityCapabilitySchema: z.ZodObject<{
1680
1676
  mechanism?: string | undefined;
1681
1677
  notes?: string | undefined;
1682
1678
  }>;
1683
- cursor: z.ZodObject<{
1684
- supported: z.ZodBoolean;
1685
- mechanism: z.ZodOptional<z.ZodString>;
1686
- notes: z.ZodOptional<z.ZodString>;
1687
- }, "strict", z.ZodTypeAny, {
1688
- supported: boolean;
1689
- mechanism?: string | undefined;
1690
- notes?: string | undefined;
1691
- }, {
1692
- supported: boolean;
1693
- mechanism?: string | undefined;
1694
- notes?: string | undefined;
1695
- }>;
1696
1679
  }, "strict", z.ZodTypeAny, {
1697
- cursor: {
1698
- supported: boolean;
1699
- mechanism?: string | undefined;
1700
- notes?: string | undefined;
1701
- };
1702
1680
  codexCLI: {
1703
1681
  supported: boolean;
1704
1682
  mechanism?: string | undefined;
@@ -1710,11 +1688,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1710
1688
  notes?: string | undefined;
1711
1689
  };
1712
1690
  }, {
1713
- cursor: {
1714
- supported: boolean;
1715
- mechanism?: string | undefined;
1716
- notes?: string | undefined;
1717
- };
1718
1691
  codexCLI: {
1719
1692
  supported: boolean;
1720
1693
  mechanism?: string | undefined;
@@ -1731,11 +1704,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1731
1704
  id: string;
1732
1705
  surface: "skill" | "hook" | "mcp" | "render";
1733
1706
  clients: {
1734
- cursor: {
1735
- supported: boolean;
1736
- mechanism?: string | undefined;
1737
- notes?: string | undefined;
1738
- };
1739
1707
  codexCLI: {
1740
1708
  supported: boolean;
1741
1709
  mechanism?: string | undefined;
@@ -1752,11 +1720,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1752
1720
  id: string;
1753
1721
  surface: "skill" | "hook" | "mcp" | "render";
1754
1722
  clients: {
1755
- cursor: {
1756
- supported: boolean;
1757
- mechanism?: string | undefined;
1758
- notes?: string | undefined;
1759
- };
1760
1723
  codexCLI: {
1761
1724
  supported: boolean;
1762
1725
  mechanism?: string | undefined;
@@ -1804,25 +1767,7 @@ declare const parityMatrixSchema: z.ZodObject<{
1804
1767
  mechanism?: string | undefined;
1805
1768
  notes?: string | undefined;
1806
1769
  }>;
1807
- cursor: z.ZodObject<{
1808
- supported: z.ZodBoolean;
1809
- mechanism: z.ZodOptional<z.ZodString>;
1810
- notes: z.ZodOptional<z.ZodString>;
1811
- }, "strict", z.ZodTypeAny, {
1812
- supported: boolean;
1813
- mechanism?: string | undefined;
1814
- notes?: string | undefined;
1815
- }, {
1816
- supported: boolean;
1817
- mechanism?: string | undefined;
1818
- notes?: string | undefined;
1819
- }>;
1820
1770
  }, "strict", z.ZodTypeAny, {
1821
- cursor: {
1822
- supported: boolean;
1823
- mechanism?: string | undefined;
1824
- notes?: string | undefined;
1825
- };
1826
1771
  codexCLI: {
1827
1772
  supported: boolean;
1828
1773
  mechanism?: string | undefined;
@@ -1834,11 +1779,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1834
1779
  notes?: string | undefined;
1835
1780
  };
1836
1781
  }, {
1837
- cursor: {
1838
- supported: boolean;
1839
- mechanism?: string | undefined;
1840
- notes?: string | undefined;
1841
- };
1842
1782
  codexCLI: {
1843
1783
  supported: boolean;
1844
1784
  mechanism?: string | undefined;
@@ -1855,11 +1795,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1855
1795
  id: string;
1856
1796
  surface: "skill" | "hook" | "mcp" | "render";
1857
1797
  clients: {
1858
- cursor: {
1859
- supported: boolean;
1860
- mechanism?: string | undefined;
1861
- notes?: string | undefined;
1862
- };
1863
1798
  codexCLI: {
1864
1799
  supported: boolean;
1865
1800
  mechanism?: string | undefined;
@@ -1876,11 +1811,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1876
1811
  id: string;
1877
1812
  surface: "skill" | "hook" | "mcp" | "render";
1878
1813
  clients: {
1879
- cursor: {
1880
- supported: boolean;
1881
- mechanism?: string | undefined;
1882
- notes?: string | undefined;
1883
- };
1884
1814
  codexCLI: {
1885
1815
  supported: boolean;
1886
1816
  mechanism?: string | undefined;
@@ -1901,11 +1831,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1901
1831
  id: string;
1902
1832
  surface: "skill" | "hook" | "mcp" | "render";
1903
1833
  clients: {
1904
- cursor: {
1905
- supported: boolean;
1906
- mechanism?: string | undefined;
1907
- notes?: string | undefined;
1908
- };
1909
1834
  codexCLI: {
1910
1835
  supported: boolean;
1911
1836
  mechanism?: string | undefined;
@@ -1926,11 +1851,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1926
1851
  id: string;
1927
1852
  surface: "skill" | "hook" | "mcp" | "render";
1928
1853
  clients: {
1929
- cursor: {
1930
- supported: boolean;
1931
- mechanism?: string | undefined;
1932
- notes?: string | undefined;
1933
- };
1934
1854
  codexCLI: {
1935
1855
  supported: boolean;
1936
1856
  mechanism?: string | undefined;
@@ -1986,19 +1906,19 @@ type ProjectRootResolution = z.infer<typeof projectRootResolutionSchema>;
1986
1906
  interface ProjectRootResolver {
1987
1907
  resolve(signals: ProjectRootSignals): ProjectRootResolution | null;
1988
1908
  }
1989
- declare const STORE_RESOLVER_WARNING_CODES: readonly ["missing_store", "local_only_no_remote", "alias_unresolved"];
1990
- declare const storeResolverWarningCodeSchema: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
1909
+ declare const STORE_RESOLVER_WARNING_CODES: readonly ["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"];
1910
+ declare const storeResolverWarningCodeSchema: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
1991
1911
  type StoreResolverWarningCode = z.infer<typeof storeResolverWarningCodeSchema>;
1992
1912
  declare const storeResolverWarningSchema: z.ZodObject<{
1993
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
1913
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
1994
1914
  ref: z.ZodString;
1995
1915
  message: z.ZodString;
1996
1916
  }, "strict", z.ZodTypeAny, {
1997
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1917
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
1998
1918
  message: string;
1999
1919
  ref: string;
2000
1920
  }, {
2001
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1921
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2002
1922
  message: string;
2003
1923
  ref: string;
2004
1924
  }>;
@@ -2038,15 +1958,15 @@ declare const storeReadSetSchema: z.ZodObject<{
2038
1958
  remote?: string | undefined;
2039
1959
  }>, "many">;
2040
1960
  warnings: z.ZodArray<z.ZodObject<{
2041
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
1961
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2042
1962
  ref: z.ZodString;
2043
1963
  message: z.ZodString;
2044
1964
  }, "strict", z.ZodTypeAny, {
2045
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1965
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2046
1966
  message: string;
2047
1967
  ref: string;
2048
1968
  }, {
2049
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1969
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2050
1970
  message: string;
2051
1971
  ref: string;
2052
1972
  }>, "many">;
@@ -2058,7 +1978,7 @@ declare const storeReadSetSchema: z.ZodObject<{
2058
1978
  remote?: string | undefined;
2059
1979
  }[];
2060
1980
  warnings: {
2061
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1981
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2062
1982
  message: string;
2063
1983
  ref: string;
2064
1984
  }[];
@@ -2070,7 +1990,7 @@ declare const storeReadSetSchema: z.ZodObject<{
2070
1990
  remote?: string | undefined;
2071
1991
  }[];
2072
1992
  warnings: {
2073
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1993
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2074
1994
  message: string;
2075
1995
  ref: string;
2076
1996
  }[];
@@ -2092,6 +2012,7 @@ declare const storeResolveInputSchema: z.ZodObject<{
2092
2012
  mountedStores: z.ZodArray<z.ZodObject<{
2093
2013
  store_uuid: z.ZodString;
2094
2014
  alias: z.ZodString;
2015
+ mount_name: z.ZodOptional<z.ZodString>;
2095
2016
  remote: z.ZodOptional<z.ZodString>;
2096
2017
  writable: z.ZodDefault<z.ZodBoolean>;
2097
2018
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2100,11 +2021,13 @@ declare const storeResolveInputSchema: z.ZodObject<{
2100
2021
  store_uuid: string;
2101
2022
  alias: string;
2102
2023
  writable: boolean;
2024
+ mount_name?: string | undefined;
2103
2025
  remote?: string | undefined;
2104
2026
  }, {
2105
2027
  store_uuid: string;
2106
2028
  alias: string;
2107
2029
  personal?: boolean | undefined;
2030
+ mount_name?: string | undefined;
2108
2031
  remote?: string | undefined;
2109
2032
  writable?: boolean | undefined;
2110
2033
  }>, "many">;
@@ -2119,6 +2042,17 @@ declare const storeResolveInputSchema: z.ZodObject<{
2119
2042
  suggested_remote?: string | undefined;
2120
2043
  }>, "many">;
2121
2044
  activeWriteAlias: z.ZodOptional<z.ZodString>;
2045
+ writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2046
+ scope: z.ZodString;
2047
+ store: z.ZodString;
2048
+ }, "strict", z.ZodTypeAny, {
2049
+ scope: string;
2050
+ store: string;
2051
+ }, {
2052
+ scope: string;
2053
+ store: string;
2054
+ }>, "many">>>;
2055
+ defaultWriteAlias: z.ZodOptional<z.ZodString>;
2122
2056
  }, "strict", z.ZodTypeAny, {
2123
2057
  uid: string;
2124
2058
  mountedStores: {
@@ -2126,19 +2060,26 @@ declare const storeResolveInputSchema: z.ZodObject<{
2126
2060
  store_uuid: string;
2127
2061
  alias: string;
2128
2062
  writable: boolean;
2063
+ mount_name?: string | undefined;
2129
2064
  remote?: string | undefined;
2130
2065
  }[];
2131
2066
  requiredStores: {
2132
2067
  id: string;
2133
2068
  suggested_remote?: string | undefined;
2134
2069
  }[];
2070
+ writeRoutes: {
2071
+ scope: string;
2072
+ store: string;
2073
+ }[];
2135
2074
  activeWriteAlias?: string | undefined;
2075
+ defaultWriteAlias?: string | undefined;
2136
2076
  }, {
2137
2077
  uid: string;
2138
2078
  mountedStores: {
2139
2079
  store_uuid: string;
2140
2080
  alias: string;
2141
2081
  personal?: boolean | undefined;
2082
+ mount_name?: string | undefined;
2142
2083
  remote?: string | undefined;
2143
2084
  writable?: boolean | undefined;
2144
2085
  }[];
@@ -2147,6 +2088,11 @@ declare const storeResolveInputSchema: z.ZodObject<{
2147
2088
  suggested_remote?: string | undefined;
2148
2089
  }[];
2149
2090
  activeWriteAlias?: string | undefined;
2091
+ writeRoutes?: {
2092
+ scope: string;
2093
+ store: string;
2094
+ }[] | undefined;
2095
+ defaultWriteAlias?: string | undefined;
2150
2096
  }>;
2151
2097
  type StoreResolveInput = z.infer<typeof storeResolveInputSchema>;
2152
2098
  interface StoreResolver {
@@ -2337,6 +2283,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2337
2283
  mountedStores: z.ZodArray<z.ZodObject<{
2338
2284
  store_uuid: z.ZodString;
2339
2285
  alias: z.ZodString;
2286
+ mount_name: z.ZodOptional<z.ZodString>;
2340
2287
  remote: z.ZodOptional<z.ZodString>;
2341
2288
  writable: z.ZodDefault<z.ZodBoolean>;
2342
2289
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2345,11 +2292,13 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2345
2292
  store_uuid: string;
2346
2293
  alias: string;
2347
2294
  writable: boolean;
2295
+ mount_name?: string | undefined;
2348
2296
  remote?: string | undefined;
2349
2297
  }, {
2350
2298
  store_uuid: string;
2351
2299
  alias: string;
2352
2300
  personal?: boolean | undefined;
2301
+ mount_name?: string | undefined;
2353
2302
  remote?: string | undefined;
2354
2303
  writable?: boolean | undefined;
2355
2304
  }>, "many">;
@@ -2364,6 +2313,17 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2364
2313
  suggested_remote?: string | undefined;
2365
2314
  }>, "many">;
2366
2315
  activeWriteAlias: z.ZodOptional<z.ZodString>;
2316
+ writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2317
+ scope: z.ZodString;
2318
+ store: z.ZodString;
2319
+ }, "strict", z.ZodTypeAny, {
2320
+ scope: string;
2321
+ store: string;
2322
+ }, {
2323
+ scope: string;
2324
+ store: string;
2325
+ }>, "many">>>;
2326
+ defaultWriteAlias: z.ZodOptional<z.ZodString>;
2367
2327
  }, "strict", z.ZodTypeAny, {
2368
2328
  uid: string;
2369
2329
  mountedStores: {
@@ -2371,19 +2331,26 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2371
2331
  store_uuid: string;
2372
2332
  alias: string;
2373
2333
  writable: boolean;
2334
+ mount_name?: string | undefined;
2374
2335
  remote?: string | undefined;
2375
2336
  }[];
2376
2337
  requiredStores: {
2377
2338
  id: string;
2378
2339
  suggested_remote?: string | undefined;
2379
2340
  }[];
2341
+ writeRoutes: {
2342
+ scope: string;
2343
+ store: string;
2344
+ }[];
2380
2345
  activeWriteAlias?: string | undefined;
2346
+ defaultWriteAlias?: string | undefined;
2381
2347
  }, {
2382
2348
  uid: string;
2383
2349
  mountedStores: {
2384
2350
  store_uuid: string;
2385
2351
  alias: string;
2386
2352
  personal?: boolean | undefined;
2353
+ mount_name?: string | undefined;
2387
2354
  remote?: string | undefined;
2388
2355
  writable?: boolean | undefined;
2389
2356
  }[];
@@ -2392,6 +2359,11 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2392
2359
  suggested_remote?: string | undefined;
2393
2360
  }[];
2394
2361
  activeWriteAlias?: string | undefined;
2362
+ writeRoutes?: {
2363
+ scope: string;
2364
+ store: string;
2365
+ }[] | undefined;
2366
+ defaultWriteAlias?: string | undefined;
2395
2367
  }>;
2396
2368
  writeScope: z.ZodString;
2397
2369
  expected: z.ZodObject<{
@@ -2413,15 +2385,15 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2413
2385
  remote?: string | undefined;
2414
2386
  }>, "many">;
2415
2387
  warnings: z.ZodArray<z.ZodObject<{
2416
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
2388
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2417
2389
  ref: z.ZodString;
2418
2390
  message: z.ZodString;
2419
2391
  }, "strict", z.ZodTypeAny, {
2420
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2392
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2421
2393
  message: string;
2422
2394
  ref: string;
2423
2395
  }, {
2424
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2396
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2425
2397
  message: string;
2426
2398
  ref: string;
2427
2399
  }>, "many">;
@@ -2433,7 +2405,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2433
2405
  remote?: string | undefined;
2434
2406
  }[];
2435
2407
  warnings: {
2436
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2408
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2437
2409
  message: string;
2438
2410
  ref: string;
2439
2411
  }[];
@@ -2445,7 +2417,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2445
2417
  remote?: string | undefined;
2446
2418
  }[];
2447
2419
  warnings: {
2448
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2420
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2449
2421
  message: string;
2450
2422
  ref: string;
2451
2423
  }[];
@@ -2461,15 +2433,15 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2461
2433
  alias: string;
2462
2434
  }>>;
2463
2435
  writeWarnings: z.ZodArray<z.ZodObject<{
2464
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
2436
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2465
2437
  ref: z.ZodString;
2466
2438
  message: z.ZodString;
2467
2439
  }, "strict", z.ZodTypeAny, {
2468
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2440
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2469
2441
  message: string;
2470
2442
  ref: string;
2471
2443
  }, {
2472
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2444
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2473
2445
  message: string;
2474
2446
  ref: string;
2475
2447
  }>, "many">;
@@ -2482,7 +2454,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2482
2454
  remote?: string | undefined;
2483
2455
  }[];
2484
2456
  warnings: {
2485
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2457
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2486
2458
  message: string;
2487
2459
  ref: string;
2488
2460
  }[];
@@ -2492,7 +2464,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2492
2464
  alias: string;
2493
2465
  } | null;
2494
2466
  writeWarnings: {
2495
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2467
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2496
2468
  message: string;
2497
2469
  ref: string;
2498
2470
  }[];
@@ -2505,7 +2477,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2505
2477
  remote?: string | undefined;
2506
2478
  }[];
2507
2479
  warnings: {
2508
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2480
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2509
2481
  message: string;
2510
2482
  ref: string;
2511
2483
  }[];
@@ -2515,7 +2487,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2515
2487
  alias: string;
2516
2488
  } | null;
2517
2489
  writeWarnings: {
2518
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2490
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2519
2491
  message: string;
2520
2492
  ref: string;
2521
2493
  }[];
@@ -2530,7 +2502,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2530
2502
  remote?: string | undefined;
2531
2503
  }[];
2532
2504
  warnings: {
2533
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2505
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2534
2506
  message: string;
2535
2507
  ref: string;
2536
2508
  }[];
@@ -2540,7 +2512,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2540
2512
  alias: string;
2541
2513
  } | null;
2542
2514
  writeWarnings: {
2543
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2515
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2544
2516
  message: string;
2545
2517
  ref: string;
2546
2518
  }[];
@@ -2553,13 +2525,19 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2553
2525
  store_uuid: string;
2554
2526
  alias: string;
2555
2527
  writable: boolean;
2528
+ mount_name?: string | undefined;
2556
2529
  remote?: string | undefined;
2557
2530
  }[];
2558
2531
  requiredStores: {
2559
2532
  id: string;
2560
2533
  suggested_remote?: string | undefined;
2561
2534
  }[];
2535
+ writeRoutes: {
2536
+ scope: string;
2537
+ store: string;
2538
+ }[];
2562
2539
  activeWriteAlias?: string | undefined;
2540
+ defaultWriteAlias?: string | undefined;
2563
2541
  };
2564
2542
  writeScope: string;
2565
2543
  note?: string | undefined;
@@ -2573,7 +2551,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2573
2551
  remote?: string | undefined;
2574
2552
  }[];
2575
2553
  warnings: {
2576
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2554
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2577
2555
  message: string;
2578
2556
  ref: string;
2579
2557
  }[];
@@ -2583,7 +2561,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2583
2561
  alias: string;
2584
2562
  } | null;
2585
2563
  writeWarnings: {
2586
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2564
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2587
2565
  message: string;
2588
2566
  ref: string;
2589
2567
  }[];
@@ -2595,6 +2573,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2595
2573
  store_uuid: string;
2596
2574
  alias: string;
2597
2575
  personal?: boolean | undefined;
2576
+ mount_name?: string | undefined;
2598
2577
  remote?: string | undefined;
2599
2578
  writable?: boolean | undefined;
2600
2579
  }[];
@@ -2603,6 +2582,11 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2603
2582
  suggested_remote?: string | undefined;
2604
2583
  }[];
2605
2584
  activeWriteAlias?: string | undefined;
2585
+ writeRoutes?: {
2586
+ scope: string;
2587
+ store: string;
2588
+ }[] | undefined;
2589
+ defaultWriteAlias?: string | undefined;
2606
2590
  };
2607
2591
  writeScope: string;
2608
2592
  note?: string | undefined;
@@ -2618,6 +2602,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2618
2602
  mountedStores: z.ZodArray<z.ZodObject<{
2619
2603
  store_uuid: z.ZodString;
2620
2604
  alias: z.ZodString;
2605
+ mount_name: z.ZodOptional<z.ZodString>;
2621
2606
  remote: z.ZodOptional<z.ZodString>;
2622
2607
  writable: z.ZodDefault<z.ZodBoolean>;
2623
2608
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2626,11 +2611,13 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2626
2611
  store_uuid: string;
2627
2612
  alias: string;
2628
2613
  writable: boolean;
2614
+ mount_name?: string | undefined;
2629
2615
  remote?: string | undefined;
2630
2616
  }, {
2631
2617
  store_uuid: string;
2632
2618
  alias: string;
2633
2619
  personal?: boolean | undefined;
2620
+ mount_name?: string | undefined;
2634
2621
  remote?: string | undefined;
2635
2622
  writable?: boolean | undefined;
2636
2623
  }>, "many">;
@@ -2645,6 +2632,17 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2645
2632
  suggested_remote?: string | undefined;
2646
2633
  }>, "many">;
2647
2634
  activeWriteAlias: z.ZodOptional<z.ZodString>;
2635
+ writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2636
+ scope: z.ZodString;
2637
+ store: z.ZodString;
2638
+ }, "strict", z.ZodTypeAny, {
2639
+ scope: string;
2640
+ store: string;
2641
+ }, {
2642
+ scope: string;
2643
+ store: string;
2644
+ }>, "many">>>;
2645
+ defaultWriteAlias: z.ZodOptional<z.ZodString>;
2648
2646
  }, "strict", z.ZodTypeAny, {
2649
2647
  uid: string;
2650
2648
  mountedStores: {
@@ -2652,19 +2650,26 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2652
2650
  store_uuid: string;
2653
2651
  alias: string;
2654
2652
  writable: boolean;
2653
+ mount_name?: string | undefined;
2655
2654
  remote?: string | undefined;
2656
2655
  }[];
2657
2656
  requiredStores: {
2658
2657
  id: string;
2659
2658
  suggested_remote?: string | undefined;
2660
2659
  }[];
2660
+ writeRoutes: {
2661
+ scope: string;
2662
+ store: string;
2663
+ }[];
2661
2664
  activeWriteAlias?: string | undefined;
2665
+ defaultWriteAlias?: string | undefined;
2662
2666
  }, {
2663
2667
  uid: string;
2664
2668
  mountedStores: {
2665
2669
  store_uuid: string;
2666
2670
  alias: string;
2667
2671
  personal?: boolean | undefined;
2672
+ mount_name?: string | undefined;
2668
2673
  remote?: string | undefined;
2669
2674
  writable?: boolean | undefined;
2670
2675
  }[];
@@ -2673,6 +2678,11 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2673
2678
  suggested_remote?: string | undefined;
2674
2679
  }[];
2675
2680
  activeWriteAlias?: string | undefined;
2681
+ writeRoutes?: {
2682
+ scope: string;
2683
+ store: string;
2684
+ }[] | undefined;
2685
+ defaultWriteAlias?: string | undefined;
2676
2686
  }>;
2677
2687
  writeScope: z.ZodString;
2678
2688
  expected: z.ZodObject<{
@@ -2694,15 +2704,15 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2694
2704
  remote?: string | undefined;
2695
2705
  }>, "many">;
2696
2706
  warnings: z.ZodArray<z.ZodObject<{
2697
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
2707
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2698
2708
  ref: z.ZodString;
2699
2709
  message: z.ZodString;
2700
2710
  }, "strict", z.ZodTypeAny, {
2701
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2711
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2702
2712
  message: string;
2703
2713
  ref: string;
2704
2714
  }, {
2705
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2715
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2706
2716
  message: string;
2707
2717
  ref: string;
2708
2718
  }>, "many">;
@@ -2714,7 +2724,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2714
2724
  remote?: string | undefined;
2715
2725
  }[];
2716
2726
  warnings: {
2717
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2727
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2718
2728
  message: string;
2719
2729
  ref: string;
2720
2730
  }[];
@@ -2726,7 +2736,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2726
2736
  remote?: string | undefined;
2727
2737
  }[];
2728
2738
  warnings: {
2729
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2739
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2730
2740
  message: string;
2731
2741
  ref: string;
2732
2742
  }[];
@@ -2742,15 +2752,15 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2742
2752
  alias: string;
2743
2753
  }>>;
2744
2754
  writeWarnings: z.ZodArray<z.ZodObject<{
2745
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
2755
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2746
2756
  ref: z.ZodString;
2747
2757
  message: z.ZodString;
2748
2758
  }, "strict", z.ZodTypeAny, {
2749
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2759
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2750
2760
  message: string;
2751
2761
  ref: string;
2752
2762
  }, {
2753
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2763
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2754
2764
  message: string;
2755
2765
  ref: string;
2756
2766
  }>, "many">;
@@ -2763,7 +2773,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2763
2773
  remote?: string | undefined;
2764
2774
  }[];
2765
2775
  warnings: {
2766
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2776
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2767
2777
  message: string;
2768
2778
  ref: string;
2769
2779
  }[];
@@ -2773,7 +2783,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2773
2783
  alias: string;
2774
2784
  } | null;
2775
2785
  writeWarnings: {
2776
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2786
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2777
2787
  message: string;
2778
2788
  ref: string;
2779
2789
  }[];
@@ -2786,7 +2796,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2786
2796
  remote?: string | undefined;
2787
2797
  }[];
2788
2798
  warnings: {
2789
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2799
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2790
2800
  message: string;
2791
2801
  ref: string;
2792
2802
  }[];
@@ -2796,7 +2806,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2796
2806
  alias: string;
2797
2807
  } | null;
2798
2808
  writeWarnings: {
2799
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2809
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2800
2810
  message: string;
2801
2811
  ref: string;
2802
2812
  }[];
@@ -2811,7 +2821,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2811
2821
  remote?: string | undefined;
2812
2822
  }[];
2813
2823
  warnings: {
2814
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2824
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2815
2825
  message: string;
2816
2826
  ref: string;
2817
2827
  }[];
@@ -2821,7 +2831,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2821
2831
  alias: string;
2822
2832
  } | null;
2823
2833
  writeWarnings: {
2824
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2834
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2825
2835
  message: string;
2826
2836
  ref: string;
2827
2837
  }[];
@@ -2834,13 +2844,19 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2834
2844
  store_uuid: string;
2835
2845
  alias: string;
2836
2846
  writable: boolean;
2847
+ mount_name?: string | undefined;
2837
2848
  remote?: string | undefined;
2838
2849
  }[];
2839
2850
  requiredStores: {
2840
2851
  id: string;
2841
2852
  suggested_remote?: string | undefined;
2842
2853
  }[];
2854
+ writeRoutes: {
2855
+ scope: string;
2856
+ store: string;
2857
+ }[];
2843
2858
  activeWriteAlias?: string | undefined;
2859
+ defaultWriteAlias?: string | undefined;
2844
2860
  };
2845
2861
  writeScope: string;
2846
2862
  note?: string | undefined;
@@ -2854,7 +2870,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2854
2870
  remote?: string | undefined;
2855
2871
  }[];
2856
2872
  warnings: {
2857
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2873
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2858
2874
  message: string;
2859
2875
  ref: string;
2860
2876
  }[];
@@ -2864,7 +2880,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2864
2880
  alias: string;
2865
2881
  } | null;
2866
2882
  writeWarnings: {
2867
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2883
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2868
2884
  message: string;
2869
2885
  ref: string;
2870
2886
  }[];
@@ -2876,6 +2892,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2876
2892
  store_uuid: string;
2877
2893
  alias: string;
2878
2894
  personal?: boolean | undefined;
2895
+ mount_name?: string | undefined;
2879
2896
  remote?: string | undefined;
2880
2897
  writable?: boolean | undefined;
2881
2898
  }[];
@@ -2884,6 +2901,11 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2884
2901
  suggested_remote?: string | undefined;
2885
2902
  }[];
2886
2903
  activeWriteAlias?: string | undefined;
2904
+ writeRoutes?: {
2905
+ scope: string;
2906
+ store: string;
2907
+ }[] | undefined;
2908
+ defaultWriteAlias?: string | undefined;
2887
2909
  };
2888
2910
  writeScope: string;
2889
2911
  note?: string | undefined;
@@ -2900,7 +2922,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2900
2922
  remote?: string | undefined;
2901
2923
  }[];
2902
2924
  warnings: {
2903
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2925
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2904
2926
  message: string;
2905
2927
  ref: string;
2906
2928
  }[];
@@ -2910,7 +2932,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2910
2932
  alias: string;
2911
2933
  } | null;
2912
2934
  writeWarnings: {
2913
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2935
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2914
2936
  message: string;
2915
2937
  ref: string;
2916
2938
  }[];
@@ -2923,13 +2945,19 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2923
2945
  store_uuid: string;
2924
2946
  alias: string;
2925
2947
  writable: boolean;
2948
+ mount_name?: string | undefined;
2926
2949
  remote?: string | undefined;
2927
2950
  }[];
2928
2951
  requiredStores: {
2929
2952
  id: string;
2930
2953
  suggested_remote?: string | undefined;
2931
2954
  }[];
2955
+ writeRoutes: {
2956
+ scope: string;
2957
+ store: string;
2958
+ }[];
2932
2959
  activeWriteAlias?: string | undefined;
2960
+ defaultWriteAlias?: string | undefined;
2933
2961
  };
2934
2962
  writeScope: string;
2935
2963
  note?: string | undefined;
@@ -2946,7 +2974,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2946
2974
  remote?: string | undefined;
2947
2975
  }[];
2948
2976
  warnings: {
2949
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2977
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2950
2978
  message: string;
2951
2979
  ref: string;
2952
2980
  }[];
@@ -2956,7 +2984,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2956
2984
  alias: string;
2957
2985
  } | null;
2958
2986
  writeWarnings: {
2959
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2987
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2960
2988
  message: string;
2961
2989
  ref: string;
2962
2990
  }[];
@@ -2968,6 +2996,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2968
2996
  store_uuid: string;
2969
2997
  alias: string;
2970
2998
  personal?: boolean | undefined;
2999
+ mount_name?: string | undefined;
2971
3000
  remote?: string | undefined;
2972
3001
  writable?: boolean | undefined;
2973
3002
  }[];
@@ -2976,20 +3005,23 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2976
3005
  suggested_remote?: string | undefined;
2977
3006
  }[];
2978
3007
  activeWriteAlias?: string | undefined;
3008
+ writeRoutes?: {
3009
+ scope: string;
3010
+ store: string;
3011
+ }[] | undefined;
3012
+ defaultWriteAlias?: string | undefined;
2979
3013
  };
2980
3014
  writeScope: string;
2981
3015
  note?: string | undefined;
2982
3016
  }[];
2983
3017
  }>;
2984
3018
 
2985
- declare class ResolverNotImplementedError extends Error {
2986
- constructor(what: string);
2987
- }
2988
3019
  declare function createProjectRootResolver(): ProjectRootResolver;
2989
3020
 
2990
3021
  declare function createStoreResolver(): StoreResolver;
2991
3022
 
2992
3023
  declare function readStoreIdentity(absDir: string): StoreIdentity | null;
3024
+ declare function readStoreIdentityAsync(absDir: string): Promise<StoreIdentity | null>;
2993
3025
  declare function recognizeStoreDir(absDir: string): boolean;
2994
3026
  type FindStoreExecutableViolationsOptions = {
2995
3027
  maxDepth?: number;
@@ -3040,7 +3072,7 @@ declare const STORE_GITIGNORE: string;
3040
3072
  interface InitStoreOptions {
3041
3073
  git?: boolean;
3042
3074
  }
3043
- declare function initStore(absDir: string, identity: StoreIdentity, options?: InitStoreOptions): StoreIdentity;
3075
+ declare function initStore(absDir: string, identity: StoreIdentity, options?: InitStoreOptions): Promise<StoreIdentity>;
3044
3076
  interface StoreKnowledgeRef {
3045
3077
  store_uuid: string;
3046
3078
  alias: string;
@@ -3052,9 +3084,54 @@ interface MountedStoreDir {
3052
3084
  alias: string;
3053
3085
  dir: string;
3054
3086
  }
3055
- declare function listStoreKnowledge(store: MountedStoreDir): StoreKnowledgeRef[];
3056
- declare function readKnowledgeAcrossStores(stores: MountedStoreDir[]): StoreKnowledgeRef[];
3057
- declare function aggregatePendingAcrossStores(stores: MountedStoreDir[]): StoreKnowledgeRef[];
3087
+ declare function listStoreKnowledge(store: MountedStoreDir): Promise<StoreKnowledgeRef[]>;
3088
+ declare function readKnowledgeAcrossStores(stores: MountedStoreDir[]): Promise<StoreKnowledgeRef[]>;
3089
+ declare function readStoreProjects(storeDir: string): Promise<StoreProject[]>;
3090
+ declare function storeHasProject(storeDir: string, id: string): Promise<boolean>;
3091
+ declare function addStoreProject(storeDir: string, project: StoreProject): Promise<StoreProject[]>;
3092
+ declare function aggregatePendingAcrossStores(stores: MountedStoreDir[]): Promise<StoreKnowledgeRef[]>;
3093
+
3094
+ declare function storeCountersPath(storeDir: string): string;
3095
+ declare function readStoreCounters(storeDir: string): AgentsMetaCounters;
3096
+ /**
3097
+ * Allocate the next stable_id for `(layer, type)` in the given store and persist
3098
+ * the advanced counter to `<storeDir>/counters.json`.
3099
+ *
3100
+ * The read → mutate → atomic-write is guarded by a cross-process advisory lock
3101
+ * keyed on the counters path so two concurrent allocate calls (two windows
3102
+ * approving knowledge into the same store at once) can never read the same
3103
+ * counter and mint a duplicate id (the same invariant the retired
3104
+ * KnowledgeIdAllocator held over agents.meta).
3105
+ */
3106
+ declare function allocateStoreKnowledgeId(layer: Layer, type: KnowledgeType, storeDir: string): Promise<StableId>;
3107
+ /**
3108
+ * Floor a store's `counters.json` at the highest stable_id actually present on
3109
+ * disk, persisting and returning the reconciled envelope.
3110
+ *
3111
+ * This is the producer↔consumer bridge (W4 F1): a BULK import
3112
+ * writes entries whose ids were minted elsewhere (collision-remapped from
3113
+ * disk-max) WITHOUT advancing this store's counters.json. Without reconciliation
3114
+ * the next `allocateStoreKnowledgeId` would start from a stale zero and re-mint
3115
+ * an already-present id. Flooring is also the self-heal `doctor` runs to repair a
3116
+ * drifted ledger.
3117
+ *
3118
+ * Floor — never lower — preserves the monotonic invariant (KT-DEC-0004): a slot
3119
+ * already advanced past disk-max (because the highest entry was deleted) keeps
3120
+ * its higher value. Sync write (no lock) because the only callers run in
3121
+ * exclusive one-shot contexts (post-migrate CLI step, `doctor --fix`).
3122
+ */
3123
+ declare function reconcileStoreCounters(storeDir: string): AgentsMetaCounters;
3124
+
3125
+ declare function resolveGlobalRoot(): string;
3126
+ declare function globalConfigPath(globalRoot?: string): string;
3127
+ declare function loadGlobalConfig(globalRoot?: string): GlobalConfig | null;
3128
+ declare function saveGlobalConfig(config: GlobalConfig, globalRoot?: string): void;
3129
+
3130
+ declare function projectConfigPath(projectRoot: string): string;
3131
+ declare function loadProjectConfig(projectRoot: string): FabricConfig | null;
3132
+ declare function saveProjectConfig(config: FabricConfig, projectRoot: string): void;
3133
+
3134
+ declare function buildStoreResolveInput(projectRoot: string, globalRoot?: string): StoreResolveInput | null;
3058
3135
 
3059
3136
  interface SecretFinding {
3060
3137
  rule: string;
@@ -3064,6 +3141,7 @@ declare function scanForSecrets(content: string): SecretFinding[];
3064
3141
  declare function hasSecrets(content: string): boolean;
3065
3142
  declare const REDACTION_PLACEHOLDER_PREFIX = "[REDACTED:";
3066
3143
  declare function redactSecrets(content: string): string;
3144
+ declare function redactPii(content: string): string;
3067
3145
  declare function scrubRemoteUrl(remote: string): string;
3068
3146
 
3069
3147
  type ScanRecommendationInput = {
@@ -3202,6 +3280,7 @@ declare const MCP_STORE_AWARE_CONTRACTS: Record<McpStoreAwareTool, McpStoreAware
3202
3280
  declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3203
3281
  version: z.ZodLiteral<1>;
3204
3282
  project_id: z.ZodString;
3283
+ workspace_binding_id: z.ZodString;
3205
3284
  generated_at: z.ZodString;
3206
3285
  read_set: z.ZodObject<{
3207
3286
  stores: z.ZodArray<z.ZodObject<{
@@ -3221,15 +3300,15 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3221
3300
  remote?: string | undefined;
3222
3301
  }>, "many">;
3223
3302
  warnings: z.ZodArray<z.ZodObject<{
3224
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
3303
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
3225
3304
  ref: z.ZodString;
3226
3305
  message: z.ZodString;
3227
3306
  }, "strict", z.ZodTypeAny, {
3228
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3307
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3229
3308
  message: string;
3230
3309
  ref: string;
3231
3310
  }, {
3232
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3311
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3233
3312
  message: string;
3234
3313
  ref: string;
3235
3314
  }>, "many">;
@@ -3241,7 +3320,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3241
3320
  remote?: string | undefined;
3242
3321
  }[];
3243
3322
  warnings: {
3244
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3323
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3245
3324
  message: string;
3246
3325
  ref: string;
3247
3326
  }[];
@@ -3253,7 +3332,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3253
3332
  remote?: string | undefined;
3254
3333
  }[];
3255
3334
  warnings: {
3256
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3335
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3257
3336
  message: string;
3258
3337
  ref: string;
3259
3338
  }[];
@@ -3268,8 +3347,23 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3268
3347
  store_uuid: string;
3269
3348
  alias: string;
3270
3349
  }>>;
3350
+ knowledge_stats: z.ZodOptional<z.ZodObject<{
3351
+ pending_count: z.ZodNumber;
3352
+ canonical_count: z.ZodNumber;
3353
+ oldest_pending_mtime_ms: z.ZodNullable<z.ZodNumber>;
3354
+ }, "strict", z.ZodTypeAny, {
3355
+ pending_count: number;
3356
+ canonical_count: number;
3357
+ oldest_pending_mtime_ms: number | null;
3358
+ }, {
3359
+ pending_count: number;
3360
+ canonical_count: number;
3361
+ oldest_pending_mtime_ms: number | null;
3362
+ }>>;
3363
+ knowledge_store_dirs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3271
3364
  }, "strict", z.ZodTypeAny, {
3272
3365
  project_id: string;
3366
+ workspace_binding_id: string;
3273
3367
  version: 1;
3274
3368
  generated_at: string;
3275
3369
  read_set: {
@@ -3280,7 +3374,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3280
3374
  remote?: string | undefined;
3281
3375
  }[];
3282
3376
  warnings: {
3283
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3377
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3284
3378
  message: string;
3285
3379
  ref: string;
3286
3380
  }[];
@@ -3289,8 +3383,15 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3289
3383
  store_uuid: string;
3290
3384
  alias: string;
3291
3385
  } | null;
3386
+ knowledge_stats?: {
3387
+ pending_count: number;
3388
+ canonical_count: number;
3389
+ oldest_pending_mtime_ms: number | null;
3390
+ } | undefined;
3391
+ knowledge_store_dirs?: string[] | undefined;
3292
3392
  }, {
3293
3393
  project_id: string;
3394
+ workspace_binding_id: string;
3294
3395
  version: 1;
3295
3396
  generated_at: string;
3296
3397
  read_set: {
@@ -3301,7 +3402,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3301
3402
  remote?: string | undefined;
3302
3403
  }[];
3303
3404
  warnings: {
3304
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3405
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3305
3406
  message: string;
3306
3407
  ref: string;
3307
3408
  }[];
@@ -3310,13 +3411,24 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3310
3411
  store_uuid: string;
3311
3412
  alias: string;
3312
3413
  } | null;
3414
+ knowledge_stats?: {
3415
+ pending_count: number;
3416
+ canonical_count: number;
3417
+ oldest_pending_mtime_ms: number | null;
3418
+ } | undefined;
3419
+ knowledge_store_dirs?: string[] | undefined;
3313
3420
  }>;
3314
3421
  type ResolvedBindingsSnapshot = z.infer<typeof resolvedBindingsSnapshotSchema>;
3315
3422
 
3316
- declare function bindingsSnapshotPath(globalRoot: string, projectId: string): string;
3423
+ declare function bindingsSnapshotPath(globalRoot: string, bindingId: string): string;
3424
+ declare function resolveWorkspaceBindingId(config: {
3425
+ project_id?: string;
3426
+ workspace_binding_id?: string;
3427
+ }): string | undefined;
3317
3428
  interface WriteBindingsSnapshotOptions {
3318
3429
  globalRoot: string;
3319
3430
  projectId: string;
3431
+ workspaceBindingId?: string;
3320
3432
  resolveInput: StoreResolveInput;
3321
3433
  writeScope: string;
3322
3434
  now: string;
@@ -3326,6 +3438,7 @@ declare function readBindingsSnapshot(globalRoot: string, projectId: string): Re
3326
3438
 
3327
3439
  declare function findMountedStore(config: GlobalConfig, aliasOrUuid: string): MountedStore | undefined;
3328
3440
  declare function addMountedStore(config: GlobalConfig, store: MountedStore): GlobalConfig;
3441
+ declare function disambiguateAlias(existingAliases: Iterable<string>, desired: string): string;
3329
3442
  declare function detachMountedStore(config: GlobalConfig, alias: string): {
3330
3443
  config: GlobalConfig;
3331
3444
  detached: MountedStore | null;
@@ -4043,14 +4156,14 @@ declare const initContextDomainGroupSchema: z.ZodObject<{
4043
4156
  topology_type: z.ZodOptional<z.ZodEnum<["mirror", "cross-cutting"]>>;
4044
4157
  target_path: z.ZodOptional<z.ZodString>;
4045
4158
  }, "strip", z.ZodTypeAny, {
4046
- paths: string[];
4047
4159
  name: string;
4160
+ paths: string[];
4048
4161
  summary?: string | undefined;
4049
4162
  target_path?: string | undefined;
4050
4163
  topology_type?: "mirror" | "cross-cutting" | undefined;
4051
4164
  }, {
4052
- paths: string[];
4053
4165
  name: string;
4166
+ paths: string[];
4054
4167
  summary?: string | undefined;
4055
4168
  target_path?: string | undefined;
4056
4169
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4145,14 +4258,14 @@ declare const initContextSchema: z.ZodObject<{
4145
4258
  topology_type: z.ZodOptional<z.ZodEnum<["mirror", "cross-cutting"]>>;
4146
4259
  target_path: z.ZodOptional<z.ZodString>;
4147
4260
  }, "strip", z.ZodTypeAny, {
4148
- paths: string[];
4149
4261
  name: string;
4262
+ paths: string[];
4150
4263
  summary?: string | undefined;
4151
4264
  target_path?: string | undefined;
4152
4265
  topology_type?: "mirror" | "cross-cutting" | undefined;
4153
4266
  }, {
4154
- paths: string[];
4155
4267
  name: string;
4268
+ paths: string[];
4156
4269
  summary?: string | undefined;
4157
4270
  target_path?: string | undefined;
4158
4271
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4198,8 +4311,8 @@ declare const initContextSchema: z.ZodObject<{
4198
4311
  }[] | undefined;
4199
4312
  }[];
4200
4313
  domain_groups: {
4201
- paths: string[];
4202
4314
  name: string;
4315
+ paths: string[];
4203
4316
  summary?: string | undefined;
4204
4317
  target_path?: string | undefined;
4205
4318
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4233,8 +4346,8 @@ declare const initContextSchema: z.ZodObject<{
4233
4346
  }[] | undefined;
4234
4347
  }[];
4235
4348
  domain_groups: {
4236
- paths: string[];
4237
4349
  name: string;
4350
+ paths: string[];
4238
4351
  summary?: string | undefined;
4239
4352
  target_path?: string | undefined;
4240
4353
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4287,16 +4400,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4287
4400
  hash: z.ZodString;
4288
4401
  stable_id: z.ZodOptional<z.ZodString>;
4289
4402
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4290
- activation: z.ZodOptional<z.ZodObject<{
4291
- tier: z.ZodEnum<["always", "path", "description"]>;
4292
- description: z.ZodOptional<z.ZodString>;
4293
- }, "strip", z.ZodTypeAny, {
4294
- tier: "always" | "path" | "description";
4295
- description?: string | undefined;
4296
- }, {
4297
- tier: "always" | "path" | "description";
4298
- description?: string | undefined;
4299
- }>>;
4300
4403
  description: z.ZodOptional<z.ZodObject<{
4301
4404
  summary: z.ZodString;
4302
4405
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4357,16 +4460,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4357
4460
  hash: z.ZodString;
4358
4461
  stable_id: z.ZodOptional<z.ZodString>;
4359
4462
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4360
- activation: z.ZodOptional<z.ZodObject<{
4361
- tier: z.ZodEnum<["always", "path", "description"]>;
4362
- description: z.ZodOptional<z.ZodString>;
4363
- }, "strip", z.ZodTypeAny, {
4364
- tier: "always" | "path" | "description";
4365
- description?: string | undefined;
4366
- }, {
4367
- tier: "always" | "path" | "description";
4368
- description?: string | undefined;
4369
- }>>;
4370
4463
  description: z.ZodOptional<z.ZodObject<{
4371
4464
  summary: z.ZodString;
4372
4465
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4427,16 +4520,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4427
4520
  hash: z.ZodString;
4428
4521
  stable_id: z.ZodOptional<z.ZodString>;
4429
4522
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4430
- activation: z.ZodOptional<z.ZodObject<{
4431
- tier: z.ZodEnum<["always", "path", "description"]>;
4432
- description: z.ZodOptional<z.ZodString>;
4433
- }, "strip", z.ZodTypeAny, {
4434
- tier: "always" | "path" | "description";
4435
- description?: string | undefined;
4436
- }, {
4437
- tier: "always" | "path" | "description";
4438
- description?: string | undefined;
4439
- }>>;
4440
4523
  description: z.ZodOptional<z.ZodObject<{
4441
4524
  summary: z.ZodString;
4442
4525
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4497,16 +4580,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4497
4580
  hash: z.ZodString;
4498
4581
  stable_id: z.ZodOptional<z.ZodString>;
4499
4582
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4500
- activation: z.ZodOptional<z.ZodObject<{
4501
- tier: z.ZodEnum<["always", "path", "description"]>;
4502
- description: z.ZodOptional<z.ZodString>;
4503
- }, "strip", z.ZodTypeAny, {
4504
- tier: "always" | "path" | "description";
4505
- description?: string | undefined;
4506
- }, {
4507
- tier: "always" | "path" | "description";
4508
- description?: string | undefined;
4509
- }>>;
4510
4583
  description: z.ZodOptional<z.ZodObject<{
4511
4584
  summary: z.ZodString;
4512
4585
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4640,16 +4713,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4640
4713
  hash: z.ZodString;
4641
4714
  stable_id: z.ZodOptional<z.ZodString>;
4642
4715
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4643
- activation: z.ZodOptional<z.ZodObject<{
4644
- tier: z.ZodEnum<["always", "path", "description"]>;
4645
- description: z.ZodOptional<z.ZodString>;
4646
- }, "strip", z.ZodTypeAny, {
4647
- tier: "always" | "path" | "description";
4648
- description?: string | undefined;
4649
- }, {
4650
- tier: "always" | "path" | "description";
4651
- description?: string | undefined;
4652
- }>>;
4653
4716
  description: z.ZodOptional<z.ZodObject<{
4654
4717
  summary: z.ZodString;
4655
4718
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4751,16 +4814,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4751
4814
  hash: z.ZodString;
4752
4815
  stable_id: z.ZodOptional<z.ZodString>;
4753
4816
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4754
- activation: z.ZodOptional<z.ZodObject<{
4755
- tier: z.ZodEnum<["always", "path", "description"]>;
4756
- description: z.ZodOptional<z.ZodString>;
4757
- }, "strip", z.ZodTypeAny, {
4758
- tier: "always" | "path" | "description";
4759
- description?: string | undefined;
4760
- }, {
4761
- tier: "always" | "path" | "description";
4762
- description?: string | undefined;
4763
- }>>;
4764
4817
  description: z.ZodOptional<z.ZodObject<{
4765
4818
  summary: z.ZodString;
4766
4819
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5583,16 +5636,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5583
5636
  hash: z.ZodString;
5584
5637
  stable_id: z.ZodOptional<z.ZodString>;
5585
5638
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5586
- activation: z.ZodOptional<z.ZodObject<{
5587
- tier: z.ZodEnum<["always", "path", "description"]>;
5588
- description: z.ZodOptional<z.ZodString>;
5589
- }, "strip", z.ZodTypeAny, {
5590
- tier: "always" | "path" | "description";
5591
- description?: string | undefined;
5592
- }, {
5593
- tier: "always" | "path" | "description";
5594
- description?: string | undefined;
5595
- }>>;
5596
5639
  description: z.ZodOptional<z.ZodObject<{
5597
5640
  summary: z.ZodString;
5598
5641
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5653,16 +5696,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5653
5696
  hash: z.ZodString;
5654
5697
  stable_id: z.ZodOptional<z.ZodString>;
5655
5698
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5656
- activation: z.ZodOptional<z.ZodObject<{
5657
- tier: z.ZodEnum<["always", "path", "description"]>;
5658
- description: z.ZodOptional<z.ZodString>;
5659
- }, "strip", z.ZodTypeAny, {
5660
- tier: "always" | "path" | "description";
5661
- description?: string | undefined;
5662
- }, {
5663
- tier: "always" | "path" | "description";
5664
- description?: string | undefined;
5665
- }>>;
5666
5699
  description: z.ZodOptional<z.ZodObject<{
5667
5700
  summary: z.ZodString;
5668
5701
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5723,16 +5756,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5723
5756
  hash: z.ZodString;
5724
5757
  stable_id: z.ZodOptional<z.ZodString>;
5725
5758
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5726
- activation: z.ZodOptional<z.ZodObject<{
5727
- tier: z.ZodEnum<["always", "path", "description"]>;
5728
- description: z.ZodOptional<z.ZodString>;
5729
- }, "strip", z.ZodTypeAny, {
5730
- tier: "always" | "path" | "description";
5731
- description?: string | undefined;
5732
- }, {
5733
- tier: "always" | "path" | "description";
5734
- description?: string | undefined;
5735
- }>>;
5736
5759
  description: z.ZodOptional<z.ZodObject<{
5737
5760
  summary: z.ZodString;
5738
5761
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5793,16 +5816,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5793
5816
  hash: z.ZodString;
5794
5817
  stable_id: z.ZodOptional<z.ZodString>;
5795
5818
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5796
- activation: z.ZodOptional<z.ZodObject<{
5797
- tier: z.ZodEnum<["always", "path", "description"]>;
5798
- description: z.ZodOptional<z.ZodString>;
5799
- }, "strip", z.ZodTypeAny, {
5800
- tier: "always" | "path" | "description";
5801
- description?: string | undefined;
5802
- }, {
5803
- tier: "always" | "path" | "description";
5804
- description?: string | undefined;
5805
- }>>;
5806
5819
  description: z.ZodOptional<z.ZodObject<{
5807
5820
  summary: z.ZodString;
5808
5821
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5936,16 +5949,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5936
5949
  hash: z.ZodString;
5937
5950
  stable_id: z.ZodOptional<z.ZodString>;
5938
5951
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5939
- activation: z.ZodOptional<z.ZodObject<{
5940
- tier: z.ZodEnum<["always", "path", "description"]>;
5941
- description: z.ZodOptional<z.ZodString>;
5942
- }, "strip", z.ZodTypeAny, {
5943
- tier: "always" | "path" | "description";
5944
- description?: string | undefined;
5945
- }, {
5946
- tier: "always" | "path" | "description";
5947
- description?: string | undefined;
5948
- }>>;
5949
5952
  description: z.ZodOptional<z.ZodObject<{
5950
5953
  summary: z.ZodString;
5951
5954
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -6047,16 +6050,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6047
6050
  hash: z.ZodString;
6048
6051
  stable_id: z.ZodOptional<z.ZodString>;
6049
6052
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
6050
- activation: z.ZodOptional<z.ZodObject<{
6051
- tier: z.ZodEnum<["always", "path", "description"]>;
6052
- description: z.ZodOptional<z.ZodString>;
6053
- }, "strip", z.ZodTypeAny, {
6054
- tier: "always" | "path" | "description";
6055
- description?: string | undefined;
6056
- }, {
6057
- tier: "always" | "path" | "description";
6058
- description?: string | undefined;
6059
- }>>;
6060
6053
  description: z.ZodOptional<z.ZodObject<{
6061
6054
  summary: z.ZodString;
6062
6055
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -7274,77 +7267,6 @@ declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
7274
7267
  correlation_id?: string | undefined;
7275
7268
  session_id?: string | undefined;
7276
7269
  }>;
7277
- declare const mcpConfigMigratedEventSchema: z.ZodObject<{
7278
- event_type: z.ZodLiteral<"mcp_config_migrated">;
7279
- source: z.ZodLiteral<"doctor_fix">;
7280
- removed_from: z.ZodString;
7281
- kind: z.ZodLiteral<"fabric-event">;
7282
- id: z.ZodString;
7283
- ts: z.ZodNumber;
7284
- schema_version: z.ZodLiteral<1>;
7285
- correlation_id: z.ZodOptional<z.ZodString>;
7286
- session_id: z.ZodOptional<z.ZodString>;
7287
- }, "strip", z.ZodTypeAny, {
7288
- id: string;
7289
- source: "doctor_fix";
7290
- ts: number;
7291
- schema_version: 1;
7292
- kind: "fabric-event";
7293
- event_type: "mcp_config_migrated";
7294
- removed_from: string;
7295
- correlation_id?: string | undefined;
7296
- session_id?: string | undefined;
7297
- }, {
7298
- id: string;
7299
- source: "doctor_fix";
7300
- ts: number;
7301
- schema_version: 1;
7302
- kind: "fabric-event";
7303
- event_type: "mcp_config_migrated";
7304
- removed_from: string;
7305
- correlation_id?: string | undefined;
7306
- session_id?: string | undefined;
7307
- }>;
7308
- declare const bootstrapMarkerMigratedEventSchema: z.ZodObject<{
7309
- event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
7310
- path: z.ZodString;
7311
- migrated_count: z.ZodNumber;
7312
- legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
7313
- new_marker: z.ZodLiteral<"fabric:bootstrap">;
7314
- timestamp: z.ZodString;
7315
- kind: z.ZodLiteral<"fabric-event">;
7316
- id: z.ZodString;
7317
- ts: z.ZodNumber;
7318
- schema_version: z.ZodLiteral<1>;
7319
- correlation_id: z.ZodOptional<z.ZodString>;
7320
- session_id: z.ZodOptional<z.ZodString>;
7321
- }, "strip", z.ZodTypeAny, {
7322
- path: string;
7323
- id: string;
7324
- ts: number;
7325
- schema_version: 1;
7326
- kind: "fabric-event";
7327
- event_type: "bootstrap_marker_migrated";
7328
- migrated_count: number;
7329
- legacy_marker: "fabric:knowledge-base";
7330
- new_marker: "fabric:bootstrap";
7331
- timestamp: string;
7332
- correlation_id?: string | undefined;
7333
- session_id?: string | undefined;
7334
- }, {
7335
- path: string;
7336
- id: string;
7337
- ts: number;
7338
- schema_version: 1;
7339
- kind: "fabric-event";
7340
- event_type: "bootstrap_marker_migrated";
7341
- migrated_count: number;
7342
- legacy_marker: "fabric:knowledge-base";
7343
- new_marker: "fabric:bootstrap";
7344
- timestamp: string;
7345
- correlation_id?: string | undefined;
7346
- session_id?: string | undefined;
7347
- }>;
7348
7270
  declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
7349
7271
  event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
7350
7272
  reconciled_files: z.ZodArray<z.ZodString, "many">;
@@ -7533,7 +7455,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
7533
7455
  written_stable_ids: string[];
7534
7456
  correlation_id?: string | undefined;
7535
7457
  session_id?: string | undefined;
7536
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
7458
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
7537
7459
  }, {
7538
7460
  id: string;
7539
7461
  ts: number;
@@ -7544,7 +7466,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
7544
7466
  written_stable_ids: string[];
7545
7467
  correlation_id?: string | undefined;
7546
7468
  session_id?: string | undefined;
7547
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
7469
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
7548
7470
  }>;
7549
7471
  declare const knowledgeProposedEventSchema: z.ZodObject<{
7550
7472
  event_type: z.ZodLiteral<"knowledge_proposed">;
@@ -7682,14 +7604,60 @@ declare const knowledgePromoteFailedEventSchema: z.ZodObject<{
7682
7604
  correlation_id?: string | undefined;
7683
7605
  session_id?: string | undefined;
7684
7606
  }>;
7685
- declare const knowledgeLayerChangedEventSchema: z.ZodObject<{
7686
- event_type: z.ZodLiteral<"knowledge_layer_changed">;
7607
+ declare const knowledgeModifiedEventSchema: z.ZodObject<{
7608
+ event_type: z.ZodLiteral<"knowledge_modified">;
7687
7609
  stable_id: z.ZodOptional<z.ZodString>;
7688
7610
  timestamp: z.ZodString;
7611
+ path: z.ZodString;
7612
+ changed_fields: z.ZodArray<z.ZodString, "many">;
7613
+ before: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7614
+ after: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7689
7615
  reason: z.ZodOptional<z.ZodString>;
7690
- from_layer: z.ZodEnum<["team", "personal"]>;
7691
- to_layer: z.ZodEnum<["team", "personal"]>;
7692
- previous_stable_id: z.ZodOptional<z.ZodString>;
7616
+ kind: z.ZodLiteral<"fabric-event">;
7617
+ id: z.ZodString;
7618
+ ts: z.ZodNumber;
7619
+ schema_version: z.ZodLiteral<1>;
7620
+ correlation_id: z.ZodOptional<z.ZodString>;
7621
+ session_id: z.ZodOptional<z.ZodString>;
7622
+ }, "strip", z.ZodTypeAny, {
7623
+ path: string;
7624
+ id: string;
7625
+ ts: number;
7626
+ schema_version: 1;
7627
+ kind: "fabric-event";
7628
+ event_type: "knowledge_modified";
7629
+ timestamp: string;
7630
+ changed_fields: string[];
7631
+ before: Record<string, unknown>;
7632
+ after: Record<string, unknown>;
7633
+ stable_id?: string | undefined;
7634
+ correlation_id?: string | undefined;
7635
+ session_id?: string | undefined;
7636
+ reason?: string | undefined;
7637
+ }, {
7638
+ path: string;
7639
+ id: string;
7640
+ ts: number;
7641
+ schema_version: 1;
7642
+ kind: "fabric-event";
7643
+ event_type: "knowledge_modified";
7644
+ timestamp: string;
7645
+ changed_fields: string[];
7646
+ before: Record<string, unknown>;
7647
+ after: Record<string, unknown>;
7648
+ stable_id?: string | undefined;
7649
+ correlation_id?: string | undefined;
7650
+ session_id?: string | undefined;
7651
+ reason?: string | undefined;
7652
+ }>;
7653
+ declare const knowledgeLayerChangedEventSchema: z.ZodObject<{
7654
+ event_type: z.ZodLiteral<"knowledge_layer_changed">;
7655
+ stable_id: z.ZodOptional<z.ZodString>;
7656
+ timestamp: z.ZodString;
7657
+ reason: z.ZodOptional<z.ZodString>;
7658
+ from_layer: z.ZodEnum<["team", "personal"]>;
7659
+ to_layer: z.ZodEnum<["team", "personal"]>;
7660
+ previous_stable_id: z.ZodOptional<z.ZodString>;
7693
7661
  kind: z.ZodLiteral<"fabric-event">;
7694
7662
  id: z.ZodString;
7695
7663
  ts: z.ZodNumber;
@@ -7947,6 +7915,7 @@ declare const knowledgeUnarchivedEventSchema: z.ZodObject<{
7947
7915
  declare const knowledgeDeferredEventSchema: z.ZodObject<{
7948
7916
  event_type: z.ZodLiteral<"knowledge_deferred">;
7949
7917
  stable_id: z.ZodOptional<z.ZodString>;
7918
+ pending_path: z.ZodOptional<z.ZodString>;
7950
7919
  timestamp: z.ZodString;
7951
7920
  reason: z.ZodOptional<z.ZodString>;
7952
7921
  until: z.ZodOptional<z.ZodString>;
@@ -7963,6 +7932,7 @@ declare const knowledgeDeferredEventSchema: z.ZodObject<{
7963
7932
  kind: "fabric-event";
7964
7933
  event_type: "knowledge_deferred";
7965
7934
  timestamp: string;
7935
+ pending_path?: string | undefined;
7966
7936
  stable_id?: string | undefined;
7967
7937
  correlation_id?: string | undefined;
7968
7938
  session_id?: string | undefined;
@@ -7975,6 +7945,7 @@ declare const knowledgeDeferredEventSchema: z.ZodObject<{
7975
7945
  kind: "fabric-event";
7976
7946
  event_type: "knowledge_deferred";
7977
7947
  timestamp: string;
7948
+ pending_path?: string | undefined;
7978
7949
  stable_id?: string | undefined;
7979
7950
  correlation_id?: string | undefined;
7980
7951
  session_id?: string | undefined;
@@ -8255,7 +8226,8 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8255
8226
  }[];
8256
8227
  skip_reason: string | null;
8257
8228
  }>, "many">>;
8258
- client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
8229
+ cite_stores: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
8230
+ client: z.ZodOptional<z.ZodEnum<["cc", "codex"]>>;
8259
8231
  turn_id: z.ZodString;
8260
8232
  envelope_index: z.ZodOptional<z.ZodNumber>;
8261
8233
  timestamp: z.ZodString;
@@ -8285,7 +8257,8 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8285
8257
  turn_id: string;
8286
8258
  correlation_id?: string | undefined;
8287
8259
  session_id?: string | undefined;
8288
- client?: "cursor" | "cc" | "codex" | undefined;
8260
+ cite_stores?: (string | null)[] | undefined;
8261
+ client?: "cc" | "codex" | undefined;
8289
8262
  envelope_index?: number | undefined;
8290
8263
  }, {
8291
8264
  id: string;
@@ -8307,7 +8280,8 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8307
8280
  }[];
8308
8281
  skip_reason: string | null;
8309
8282
  }[] | undefined;
8310
- client?: "cursor" | "cc" | "codex" | undefined;
8283
+ cite_stores?: (string | null)[] | undefined;
8284
+ client?: "cc" | "codex" | undefined;
8311
8285
  envelope_index?: number | undefined;
8312
8286
  }>;
8313
8287
  declare const citePolicyActivatedEventSchema: z.ZodObject<{
@@ -8551,7 +8525,7 @@ declare const sessionArchiveAttemptedEventSchema: z.ZodObject<{
8551
8525
  declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8552
8526
  event_type: z.ZodLiteral<"hook_surface_emitted">;
8553
8527
  hook_name: z.ZodString;
8554
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
8528
+ client: z.ZodEnum<["cc", "codex"]>;
8555
8529
  target_channel: z.ZodString;
8556
8530
  rendered_ids: z.ZodArray<z.ZodString, "many">;
8557
8531
  delivery_status: z.ZodEnum<["delivered", "suppressed", "error"]>;
@@ -8568,7 +8542,7 @@ declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8568
8542
  schema_version: 1;
8569
8543
  kind: "fabric-event";
8570
8544
  event_type: "hook_surface_emitted";
8571
- client: "cursor" | "cc" | "codex";
8545
+ client: "cc" | "codex";
8572
8546
  hook_name: string;
8573
8547
  target_channel: string;
8574
8548
  rendered_ids: string[];
@@ -8582,7 +8556,7 @@ declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8582
8556
  schema_version: 1;
8583
8557
  kind: "fabric-event";
8584
8558
  event_type: "hook_surface_emitted";
8585
- client: "cursor" | "cc" | "codex";
8559
+ client: "cc" | "codex";
8586
8560
  hook_name: string;
8587
8561
  target_channel: string;
8588
8562
  rendered_ids: string[];
@@ -8910,7 +8884,7 @@ declare const llmJudgeRunEventSchema: z.ZodObject<{
8910
8884
  }>;
8911
8885
  declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
8912
8886
  event_type: z.ZodLiteral<"client_capability_snapshot">;
8913
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
8887
+ client: z.ZodEnum<["cc", "codex"]>;
8914
8888
  capabilities: z.ZodArray<z.ZodString, "many">;
8915
8889
  version: z.ZodString;
8916
8890
  kind: z.ZodLiteral<"fabric-event">;
@@ -8927,7 +8901,7 @@ declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
8927
8901
  capabilities: string[];
8928
8902
  kind: "fabric-event";
8929
8903
  event_type: "client_capability_snapshot";
8930
- client: "cursor" | "cc" | "codex";
8904
+ client: "cc" | "codex";
8931
8905
  correlation_id?: string | undefined;
8932
8906
  session_id?: string | undefined;
8933
8907
  }, {
@@ -8938,7 +8912,168 @@ declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
8938
8912
  capabilities: string[];
8939
8913
  kind: "fabric-event";
8940
8914
  event_type: "client_capability_snapshot";
8941
- client: "cursor" | "cc" | "codex";
8915
+ client: "cc" | "codex";
8916
+ correlation_id?: string | undefined;
8917
+ session_id?: string | undefined;
8918
+ }>;
8919
+ declare const sessionEndedEventSchema: z.ZodObject<{
8920
+ event_type: z.ZodLiteral<"session_ended">;
8921
+ kind: z.ZodLiteral<"fabric-event">;
8922
+ id: z.ZodString;
8923
+ ts: z.ZodNumber;
8924
+ schema_version: z.ZodLiteral<1>;
8925
+ correlation_id: z.ZodOptional<z.ZodString>;
8926
+ session_id: z.ZodOptional<z.ZodString>;
8927
+ }, "strip", z.ZodTypeAny, {
8928
+ id: string;
8929
+ ts: number;
8930
+ schema_version: 1;
8931
+ kind: "fabric-event";
8932
+ event_type: "session_ended";
8933
+ correlation_id?: string | undefined;
8934
+ session_id?: string | undefined;
8935
+ }, {
8936
+ id: string;
8937
+ ts: number;
8938
+ schema_version: 1;
8939
+ kind: "fabric-event";
8940
+ event_type: "session_ended";
8941
+ correlation_id?: string | undefined;
8942
+ session_id?: string | undefined;
8943
+ }>;
8944
+ declare const fileMutatedEventSchema: z.ZodObject<{
8945
+ event_type: z.ZodLiteral<"file_mutated">;
8946
+ path: z.ZodString;
8947
+ tool_call_id: z.ZodString;
8948
+ tool_name: z.ZodOptional<z.ZodString>;
8949
+ source_event_id: z.ZodOptional<z.ZodString>;
8950
+ store_id: z.ZodOptional<z.ZodString>;
8951
+ kind: z.ZodLiteral<"fabric-event">;
8952
+ id: z.ZodString;
8953
+ ts: z.ZodNumber;
8954
+ schema_version: z.ZodLiteral<1>;
8955
+ correlation_id: z.ZodOptional<z.ZodString>;
8956
+ session_id: z.ZodOptional<z.ZodString>;
8957
+ }, "strip", z.ZodTypeAny, {
8958
+ path: string;
8959
+ id: string;
8960
+ ts: number;
8961
+ schema_version: 1;
8962
+ kind: "fabric-event";
8963
+ event_type: "file_mutated";
8964
+ tool_call_id: string;
8965
+ correlation_id?: string | undefined;
8966
+ session_id?: string | undefined;
8967
+ tool_name?: string | undefined;
8968
+ source_event_id?: string | undefined;
8969
+ store_id?: string | undefined;
8970
+ }, {
8971
+ path: string;
8972
+ id: string;
8973
+ ts: number;
8974
+ schema_version: 1;
8975
+ kind: "fabric-event";
8976
+ event_type: "file_mutated";
8977
+ tool_call_id: string;
8978
+ correlation_id?: string | undefined;
8979
+ session_id?: string | undefined;
8980
+ tool_name?: string | undefined;
8981
+ source_event_id?: string | undefined;
8982
+ store_id?: string | undefined;
8983
+ }>;
8984
+ declare const knowledgeBodyReadEventSchema: z.ZodObject<{
8985
+ event_type: z.ZodLiteral<"knowledge_body_read">;
8986
+ stable_id: z.ZodString;
8987
+ store: z.ZodOptional<z.ZodString>;
8988
+ path: z.ZodString;
8989
+ tool_call_id: z.ZodOptional<z.ZodString>;
8990
+ tool_name: z.ZodOptional<z.ZodString>;
8991
+ kind: z.ZodLiteral<"fabric-event">;
8992
+ id: z.ZodString;
8993
+ ts: z.ZodNumber;
8994
+ schema_version: z.ZodLiteral<1>;
8995
+ correlation_id: z.ZodOptional<z.ZodString>;
8996
+ session_id: z.ZodOptional<z.ZodString>;
8997
+ }, "strip", z.ZodTypeAny, {
8998
+ path: string;
8999
+ id: string;
9000
+ stable_id: string;
9001
+ ts: number;
9002
+ schema_version: 1;
9003
+ kind: "fabric-event";
9004
+ event_type: "knowledge_body_read";
9005
+ store?: string | undefined;
9006
+ correlation_id?: string | undefined;
9007
+ session_id?: string | undefined;
9008
+ tool_name?: string | undefined;
9009
+ tool_call_id?: string | undefined;
9010
+ }, {
9011
+ path: string;
9012
+ id: string;
9013
+ stable_id: string;
9014
+ ts: number;
9015
+ schema_version: 1;
9016
+ kind: "fabric-event";
9017
+ event_type: "knowledge_body_read";
9018
+ store?: string | undefined;
9019
+ correlation_id?: string | undefined;
9020
+ session_id?: string | undefined;
9021
+ tool_name?: string | undefined;
9022
+ tool_call_id?: string | undefined;
9023
+ }>;
9024
+ declare const precompactObservedEventSchema: z.ZodObject<{
9025
+ event_type: z.ZodLiteral<"precompact_observed">;
9026
+ kind: z.ZodLiteral<"fabric-event">;
9027
+ id: z.ZodString;
9028
+ ts: z.ZodNumber;
9029
+ schema_version: z.ZodLiteral<1>;
9030
+ correlation_id: z.ZodOptional<z.ZodString>;
9031
+ session_id: z.ZodOptional<z.ZodString>;
9032
+ }, "strip", z.ZodTypeAny, {
9033
+ id: string;
9034
+ ts: number;
9035
+ schema_version: 1;
9036
+ kind: "fabric-event";
9037
+ event_type: "precompact_observed";
9038
+ correlation_id?: string | undefined;
9039
+ session_id?: string | undefined;
9040
+ }, {
9041
+ id: string;
9042
+ ts: number;
9043
+ schema_version: 1;
9044
+ kind: "fabric-event";
9045
+ event_type: "precompact_observed";
9046
+ correlation_id?: string | undefined;
9047
+ session_id?: string | undefined;
9048
+ }>;
9049
+ declare const graphEdgeCandidateRequestedEventSchema: z.ZodObject<{
9050
+ event_type: z.ZodLiteral<"graph_edge_candidate_requested">;
9051
+ stable_id: z.ZodString;
9052
+ store: z.ZodOptional<z.ZodString>;
9053
+ kind: z.ZodLiteral<"fabric-event">;
9054
+ id: z.ZodString;
9055
+ ts: z.ZodNumber;
9056
+ schema_version: z.ZodLiteral<1>;
9057
+ correlation_id: z.ZodOptional<z.ZodString>;
9058
+ session_id: z.ZodOptional<z.ZodString>;
9059
+ }, "strip", z.ZodTypeAny, {
9060
+ id: string;
9061
+ stable_id: string;
9062
+ ts: number;
9063
+ schema_version: 1;
9064
+ kind: "fabric-event";
9065
+ event_type: "graph_edge_candidate_requested";
9066
+ store?: string | undefined;
9067
+ correlation_id?: string | undefined;
9068
+ session_id?: string | undefined;
9069
+ }, {
9070
+ id: string;
9071
+ stable_id: string;
9072
+ ts: number;
9073
+ schema_version: 1;
9074
+ kind: "fabric-event";
9075
+ event_type: "graph_edge_candidate_requested";
9076
+ store?: string | undefined;
8942
9077
  correlation_id?: string | undefined;
8943
9078
  session_id?: string | undefined;
8944
9079
  }>;
@@ -9342,75 +9477,6 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9342
9477
  corrupted_path: string;
9343
9478
  correlation_id?: string | undefined;
9344
9479
  session_id?: string | undefined;
9345
- }>, z.ZodObject<{
9346
- event_type: z.ZodLiteral<"mcp_config_migrated">;
9347
- source: z.ZodLiteral<"doctor_fix">;
9348
- removed_from: z.ZodString;
9349
- kind: z.ZodLiteral<"fabric-event">;
9350
- id: z.ZodString;
9351
- ts: z.ZodNumber;
9352
- schema_version: z.ZodLiteral<1>;
9353
- correlation_id: z.ZodOptional<z.ZodString>;
9354
- session_id: z.ZodOptional<z.ZodString>;
9355
- }, "strip", z.ZodTypeAny, {
9356
- id: string;
9357
- source: "doctor_fix";
9358
- ts: number;
9359
- schema_version: 1;
9360
- kind: "fabric-event";
9361
- event_type: "mcp_config_migrated";
9362
- removed_from: string;
9363
- correlation_id?: string | undefined;
9364
- session_id?: string | undefined;
9365
- }, {
9366
- id: string;
9367
- source: "doctor_fix";
9368
- ts: number;
9369
- schema_version: 1;
9370
- kind: "fabric-event";
9371
- event_type: "mcp_config_migrated";
9372
- removed_from: string;
9373
- correlation_id?: string | undefined;
9374
- session_id?: string | undefined;
9375
- }>, z.ZodObject<{
9376
- event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
9377
- path: z.ZodString;
9378
- migrated_count: z.ZodNumber;
9379
- legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
9380
- new_marker: z.ZodLiteral<"fabric:bootstrap">;
9381
- timestamp: z.ZodString;
9382
- kind: z.ZodLiteral<"fabric-event">;
9383
- id: z.ZodString;
9384
- ts: z.ZodNumber;
9385
- schema_version: z.ZodLiteral<1>;
9386
- correlation_id: z.ZodOptional<z.ZodString>;
9387
- session_id: z.ZodOptional<z.ZodString>;
9388
- }, "strip", z.ZodTypeAny, {
9389
- path: string;
9390
- id: string;
9391
- ts: number;
9392
- schema_version: 1;
9393
- kind: "fabric-event";
9394
- event_type: "bootstrap_marker_migrated";
9395
- migrated_count: number;
9396
- legacy_marker: "fabric:knowledge-base";
9397
- new_marker: "fabric:bootstrap";
9398
- timestamp: string;
9399
- correlation_id?: string | undefined;
9400
- session_id?: string | undefined;
9401
- }, {
9402
- path: string;
9403
- id: string;
9404
- ts: number;
9405
- schema_version: 1;
9406
- kind: "fabric-event";
9407
- event_type: "bootstrap_marker_migrated";
9408
- migrated_count: number;
9409
- legacy_marker: "fabric:knowledge-base";
9410
- new_marker: "fabric:bootstrap";
9411
- timestamp: string;
9412
- correlation_id?: string | undefined;
9413
- session_id?: string | undefined;
9414
9480
  }>, z.ZodObject<{
9415
9481
  event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
9416
9482
  reconciled_files: z.ZodArray<z.ZodString, "many">;
@@ -9594,7 +9660,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9594
9660
  written_stable_ids: string[];
9595
9661
  correlation_id?: string | undefined;
9596
9662
  session_id?: string | undefined;
9597
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
9663
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
9598
9664
  }, {
9599
9665
  id: string;
9600
9666
  ts: number;
@@ -9605,7 +9671,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9605
9671
  written_stable_ids: string[];
9606
9672
  correlation_id?: string | undefined;
9607
9673
  session_id?: string | undefined;
9608
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
9674
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
9609
9675
  }>, z.ZodObject<{
9610
9676
  event_type: z.ZodLiteral<"knowledge_proposed">;
9611
9677
  stable_id: z.ZodOptional<z.ZodString>;
@@ -9738,6 +9804,51 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9738
9804
  stable_id?: string | undefined;
9739
9805
  correlation_id?: string | undefined;
9740
9806
  session_id?: string | undefined;
9807
+ }>, z.ZodObject<{
9808
+ event_type: z.ZodLiteral<"knowledge_modified">;
9809
+ stable_id: z.ZodOptional<z.ZodString>;
9810
+ timestamp: z.ZodString;
9811
+ path: z.ZodString;
9812
+ changed_fields: z.ZodArray<z.ZodString, "many">;
9813
+ before: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9814
+ after: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9815
+ reason: z.ZodOptional<z.ZodString>;
9816
+ kind: z.ZodLiteral<"fabric-event">;
9817
+ id: z.ZodString;
9818
+ ts: z.ZodNumber;
9819
+ schema_version: z.ZodLiteral<1>;
9820
+ correlation_id: z.ZodOptional<z.ZodString>;
9821
+ session_id: z.ZodOptional<z.ZodString>;
9822
+ }, "strip", z.ZodTypeAny, {
9823
+ path: string;
9824
+ id: string;
9825
+ ts: number;
9826
+ schema_version: 1;
9827
+ kind: "fabric-event";
9828
+ event_type: "knowledge_modified";
9829
+ timestamp: string;
9830
+ changed_fields: string[];
9831
+ before: Record<string, unknown>;
9832
+ after: Record<string, unknown>;
9833
+ stable_id?: string | undefined;
9834
+ correlation_id?: string | undefined;
9835
+ session_id?: string | undefined;
9836
+ reason?: string | undefined;
9837
+ }, {
9838
+ path: string;
9839
+ id: string;
9840
+ ts: number;
9841
+ schema_version: 1;
9842
+ kind: "fabric-event";
9843
+ event_type: "knowledge_modified";
9844
+ timestamp: string;
9845
+ changed_fields: string[];
9846
+ before: Record<string, unknown>;
9847
+ after: Record<string, unknown>;
9848
+ stable_id?: string | undefined;
9849
+ correlation_id?: string | undefined;
9850
+ session_id?: string | undefined;
9851
+ reason?: string | undefined;
9741
9852
  }>, z.ZodObject<{
9742
9853
  event_type: z.ZodLiteral<"knowledge_layer_changed">;
9743
9854
  stable_id: z.ZodOptional<z.ZodString>;
@@ -9996,6 +10107,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9996
10107
  }>, z.ZodObject<{
9997
10108
  event_type: z.ZodLiteral<"knowledge_deferred">;
9998
10109
  stable_id: z.ZodOptional<z.ZodString>;
10110
+ pending_path: z.ZodOptional<z.ZodString>;
9999
10111
  timestamp: z.ZodString;
10000
10112
  reason: z.ZodOptional<z.ZodString>;
10001
10113
  until: z.ZodOptional<z.ZodString>;
@@ -10012,6 +10124,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10012
10124
  kind: "fabric-event";
10013
10125
  event_type: "knowledge_deferred";
10014
10126
  timestamp: string;
10127
+ pending_path?: string | undefined;
10015
10128
  stable_id?: string | undefined;
10016
10129
  correlation_id?: string | undefined;
10017
10130
  session_id?: string | undefined;
@@ -10024,6 +10137,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10024
10137
  kind: "fabric-event";
10025
10138
  event_type: "knowledge_deferred";
10026
10139
  timestamp: string;
10140
+ pending_path?: string | undefined;
10027
10141
  stable_id?: string | undefined;
10028
10142
  correlation_id?: string | undefined;
10029
10143
  session_id?: string | undefined;
@@ -10296,7 +10410,8 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10296
10410
  }[];
10297
10411
  skip_reason: string | null;
10298
10412
  }>, "many">>;
10299
- client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
10413
+ cite_stores: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
10414
+ client: z.ZodOptional<z.ZodEnum<["cc", "codex"]>>;
10300
10415
  turn_id: z.ZodString;
10301
10416
  envelope_index: z.ZodOptional<z.ZodNumber>;
10302
10417
  timestamp: z.ZodString;
@@ -10326,7 +10441,8 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10326
10441
  turn_id: string;
10327
10442
  correlation_id?: string | undefined;
10328
10443
  session_id?: string | undefined;
10329
- client?: "cursor" | "cc" | "codex" | undefined;
10444
+ cite_stores?: (string | null)[] | undefined;
10445
+ client?: "cc" | "codex" | undefined;
10330
10446
  envelope_index?: number | undefined;
10331
10447
  }, {
10332
10448
  id: string;
@@ -10348,7 +10464,8 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10348
10464
  }[];
10349
10465
  skip_reason: string | null;
10350
10466
  }[] | undefined;
10351
- client?: "cursor" | "cc" | "codex" | undefined;
10467
+ cite_stores?: (string | null)[] | undefined;
10468
+ client?: "cc" | "codex" | undefined;
10352
10469
  envelope_index?: number | undefined;
10353
10470
  }>, z.ZodObject<{
10354
10471
  event_type: z.ZodLiteral<"cite_policy_activated">;
@@ -10584,7 +10701,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10584
10701
  }>, z.ZodObject<{
10585
10702
  event_type: z.ZodLiteral<"hook_surface_emitted">;
10586
10703
  hook_name: z.ZodString;
10587
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
10704
+ client: z.ZodEnum<["cc", "codex"]>;
10588
10705
  target_channel: z.ZodString;
10589
10706
  rendered_ids: z.ZodArray<z.ZodString, "many">;
10590
10707
  delivery_status: z.ZodEnum<["delivered", "suppressed", "error"]>;
@@ -10601,7 +10718,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10601
10718
  schema_version: 1;
10602
10719
  kind: "fabric-event";
10603
10720
  event_type: "hook_surface_emitted";
10604
- client: "cursor" | "cc" | "codex";
10721
+ client: "cc" | "codex";
10605
10722
  hook_name: string;
10606
10723
  target_channel: string;
10607
10724
  rendered_ids: string[];
@@ -10615,7 +10732,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10615
10732
  schema_version: 1;
10616
10733
  kind: "fabric-event";
10617
10734
  event_type: "hook_surface_emitted";
10618
- client: "cursor" | "cc" | "codex";
10735
+ client: "cc" | "codex";
10619
10736
  hook_name: string;
10620
10737
  target_channel: string;
10621
10738
  rendered_ids: string[];
@@ -10934,7 +11051,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10934
11051
  session_id?: string | undefined;
10935
11052
  }>, z.ZodObject<{
10936
11053
  event_type: z.ZodLiteral<"client_capability_snapshot">;
10937
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
11054
+ client: z.ZodEnum<["cc", "codex"]>;
10938
11055
  capabilities: z.ZodArray<z.ZodString, "many">;
10939
11056
  version: z.ZodString;
10940
11057
  kind: z.ZodLiteral<"fabric-event">;
@@ -10951,7 +11068,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10951
11068
  capabilities: string[];
10952
11069
  kind: "fabric-event";
10953
11070
  event_type: "client_capability_snapshot";
10954
- client: "cursor" | "cc" | "codex";
11071
+ client: "cc" | "codex";
10955
11072
  correlation_id?: string | undefined;
10956
11073
  session_id?: string | undefined;
10957
11074
  }, {
@@ -10962,7 +11079,163 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10962
11079
  capabilities: string[];
10963
11080
  kind: "fabric-event";
10964
11081
  event_type: "client_capability_snapshot";
10965
- client: "cursor" | "cc" | "codex";
11082
+ client: "cc" | "codex";
11083
+ correlation_id?: string | undefined;
11084
+ session_id?: string | undefined;
11085
+ }>, z.ZodObject<{
11086
+ event_type: z.ZodLiteral<"session_ended">;
11087
+ kind: z.ZodLiteral<"fabric-event">;
11088
+ id: z.ZodString;
11089
+ ts: z.ZodNumber;
11090
+ schema_version: z.ZodLiteral<1>;
11091
+ correlation_id: z.ZodOptional<z.ZodString>;
11092
+ session_id: z.ZodOptional<z.ZodString>;
11093
+ }, "strip", z.ZodTypeAny, {
11094
+ id: string;
11095
+ ts: number;
11096
+ schema_version: 1;
11097
+ kind: "fabric-event";
11098
+ event_type: "session_ended";
11099
+ correlation_id?: string | undefined;
11100
+ session_id?: string | undefined;
11101
+ }, {
11102
+ id: string;
11103
+ ts: number;
11104
+ schema_version: 1;
11105
+ kind: "fabric-event";
11106
+ event_type: "session_ended";
11107
+ correlation_id?: string | undefined;
11108
+ session_id?: string | undefined;
11109
+ }>, z.ZodObject<{
11110
+ event_type: z.ZodLiteral<"file_mutated">;
11111
+ path: z.ZodString;
11112
+ tool_call_id: z.ZodString;
11113
+ tool_name: z.ZodOptional<z.ZodString>;
11114
+ source_event_id: z.ZodOptional<z.ZodString>;
11115
+ store_id: z.ZodOptional<z.ZodString>;
11116
+ kind: z.ZodLiteral<"fabric-event">;
11117
+ id: z.ZodString;
11118
+ ts: z.ZodNumber;
11119
+ schema_version: z.ZodLiteral<1>;
11120
+ correlation_id: z.ZodOptional<z.ZodString>;
11121
+ session_id: z.ZodOptional<z.ZodString>;
11122
+ }, "strip", z.ZodTypeAny, {
11123
+ path: string;
11124
+ id: string;
11125
+ ts: number;
11126
+ schema_version: 1;
11127
+ kind: "fabric-event";
11128
+ event_type: "file_mutated";
11129
+ tool_call_id: string;
11130
+ correlation_id?: string | undefined;
11131
+ session_id?: string | undefined;
11132
+ tool_name?: string | undefined;
11133
+ source_event_id?: string | undefined;
11134
+ store_id?: string | undefined;
11135
+ }, {
11136
+ path: string;
11137
+ id: string;
11138
+ ts: number;
11139
+ schema_version: 1;
11140
+ kind: "fabric-event";
11141
+ event_type: "file_mutated";
11142
+ tool_call_id: string;
11143
+ correlation_id?: string | undefined;
11144
+ session_id?: string | undefined;
11145
+ tool_name?: string | undefined;
11146
+ source_event_id?: string | undefined;
11147
+ store_id?: string | undefined;
11148
+ }>, z.ZodObject<{
11149
+ event_type: z.ZodLiteral<"knowledge_body_read">;
11150
+ stable_id: z.ZodString;
11151
+ store: z.ZodOptional<z.ZodString>;
11152
+ path: z.ZodString;
11153
+ tool_call_id: z.ZodOptional<z.ZodString>;
11154
+ tool_name: z.ZodOptional<z.ZodString>;
11155
+ kind: z.ZodLiteral<"fabric-event">;
11156
+ id: z.ZodString;
11157
+ ts: z.ZodNumber;
11158
+ schema_version: z.ZodLiteral<1>;
11159
+ correlation_id: z.ZodOptional<z.ZodString>;
11160
+ session_id: z.ZodOptional<z.ZodString>;
11161
+ }, "strip", z.ZodTypeAny, {
11162
+ path: string;
11163
+ id: string;
11164
+ stable_id: string;
11165
+ ts: number;
11166
+ schema_version: 1;
11167
+ kind: "fabric-event";
11168
+ event_type: "knowledge_body_read";
11169
+ store?: string | undefined;
11170
+ correlation_id?: string | undefined;
11171
+ session_id?: string | undefined;
11172
+ tool_name?: string | undefined;
11173
+ tool_call_id?: string | undefined;
11174
+ }, {
11175
+ path: string;
11176
+ id: string;
11177
+ stable_id: string;
11178
+ ts: number;
11179
+ schema_version: 1;
11180
+ kind: "fabric-event";
11181
+ event_type: "knowledge_body_read";
11182
+ store?: string | undefined;
11183
+ correlation_id?: string | undefined;
11184
+ session_id?: string | undefined;
11185
+ tool_name?: string | undefined;
11186
+ tool_call_id?: string | undefined;
11187
+ }>, z.ZodObject<{
11188
+ event_type: z.ZodLiteral<"precompact_observed">;
11189
+ kind: z.ZodLiteral<"fabric-event">;
11190
+ id: z.ZodString;
11191
+ ts: z.ZodNumber;
11192
+ schema_version: z.ZodLiteral<1>;
11193
+ correlation_id: z.ZodOptional<z.ZodString>;
11194
+ session_id: z.ZodOptional<z.ZodString>;
11195
+ }, "strip", z.ZodTypeAny, {
11196
+ id: string;
11197
+ ts: number;
11198
+ schema_version: 1;
11199
+ kind: "fabric-event";
11200
+ event_type: "precompact_observed";
11201
+ correlation_id?: string | undefined;
11202
+ session_id?: string | undefined;
11203
+ }, {
11204
+ id: string;
11205
+ ts: number;
11206
+ schema_version: 1;
11207
+ kind: "fabric-event";
11208
+ event_type: "precompact_observed";
11209
+ correlation_id?: string | undefined;
11210
+ session_id?: string | undefined;
11211
+ }>, z.ZodObject<{
11212
+ event_type: z.ZodLiteral<"graph_edge_candidate_requested">;
11213
+ stable_id: z.ZodString;
11214
+ store: z.ZodOptional<z.ZodString>;
11215
+ kind: z.ZodLiteral<"fabric-event">;
11216
+ id: z.ZodString;
11217
+ ts: z.ZodNumber;
11218
+ schema_version: z.ZodLiteral<1>;
11219
+ correlation_id: z.ZodOptional<z.ZodString>;
11220
+ session_id: z.ZodOptional<z.ZodString>;
11221
+ }, "strip", z.ZodTypeAny, {
11222
+ id: string;
11223
+ stable_id: string;
11224
+ ts: number;
11225
+ schema_version: 1;
11226
+ kind: "fabric-event";
11227
+ event_type: "graph_edge_candidate_requested";
11228
+ store?: string | undefined;
11229
+ correlation_id?: string | undefined;
11230
+ session_id?: string | undefined;
11231
+ }, {
11232
+ id: string;
11233
+ stable_id: string;
11234
+ ts: number;
11235
+ schema_version: 1;
11236
+ kind: "fabric-event";
11237
+ event_type: "graph_edge_candidate_requested";
11238
+ store?: string | undefined;
10966
11239
  correlation_id?: string | undefined;
10967
11240
  session_id?: string | undefined;
10968
11241
  }>]>;
@@ -10975,8 +11248,6 @@ type McpEventLedgerEvent = z.infer<typeof mcpEventLedgerEventSchema>;
10975
11248
  type ReapplyCompletedEvent = z.infer<typeof reapplyCompletedEventSchema>;
10976
11249
  type InstallDiffAppliedEvent = z.infer<typeof installDiffAppliedEventSchema>;
10977
11250
  type EventLedgerTruncatedEvent = z.infer<typeof eventLedgerTruncatedEventSchema>;
10978
- type McpConfigMigratedEvent = z.infer<typeof mcpConfigMigratedEventSchema>;
10979
- type BootstrapMarkerMigratedEvent = z.infer<typeof bootstrapMarkerMigratedEventSchema>;
10980
11251
  type MetaReconciledOnStartupEvent = z.infer<typeof metaReconciledOnStartupEventSchema>;
10981
11252
  type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
10982
11253
  type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
@@ -10987,6 +11258,7 @@ type KnowledgeProposedEvent = z.infer<typeof knowledgeProposedEventSchema>;
10987
11258
  type KnowledgePromoteStartedEvent = z.infer<typeof knowledgePromoteStartedEventSchema>;
10988
11259
  type KnowledgePromotedEvent = z.infer<typeof knowledgePromotedEventSchema>;
10989
11260
  type KnowledgePromoteFailedEvent = z.infer<typeof knowledgePromoteFailedEventSchema>;
11261
+ type KnowledgeModifiedEvent = z.infer<typeof knowledgeModifiedEventSchema>;
10990
11262
  type KnowledgeLayerChangedEvent = z.infer<typeof knowledgeLayerChangedEventSchema>;
10991
11263
  type KnowledgeIdRedirectEvent = z.infer<typeof knowledgeIdRedirectEventSchema>;
10992
11264
  type KnowledgeSlugRenamedEvent = z.infer<typeof knowledgeSlugRenamedEventSchema>;
@@ -11020,7 +11292,12 @@ type SkillPhaseTransitionEvent = z.infer<typeof skillPhaseTransitionEventSchema>
11020
11292
  type SkillTriggerCandidateEvent = z.infer<typeof skillTriggerCandidateEventSchema>;
11021
11293
  type LlmJudgeRunEvent = z.infer<typeof llmJudgeRunEventSchema>;
11022
11294
  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;
11295
+ type SessionEndedEvent = z.infer<typeof sessionEndedEventSchema>;
11296
+ type FileMutatedEvent = z.infer<typeof fileMutatedEventSchema>;
11297
+ type KnowledgeBodyReadEvent = z.infer<typeof knowledgeBodyReadEventSchema>;
11298
+ type PrecompactObservedEvent = z.infer<typeof precompactObservedEventSchema>;
11299
+ type GraphEdgeCandidateRequestedEvent = z.infer<typeof graphEdgeCandidateRequestedEventSchema>;
11300
+ type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | InstallDiffAppliedEvent | EventLedgerTruncatedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeModifiedEvent | 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 | SessionEndedEvent | FileMutatedEvent | KnowledgeBodyReadEvent | PrecompactObservedEvent | GraphEdgeCandidateRequestedEvent;
11024
11301
  type EventLedgerEventType = EventLedgerEvent["event_type"];
11025
11302
  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;
11026
11303
  type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
@@ -11043,8 +11320,8 @@ interface ParseCiteLineResult {
11043
11320
  }
11044
11321
  /**
11045
11322
  * Normalize a raw cite tag (with optional tail) into the 2-state vocabulary.
11046
- * `applied` / `dismissed` / `none` pass through; the three legacy tags remap to
11047
- * `applied`; anything else degrades to `none` (forward/back-compat tolerance).
11323
+ * `applied` / `dismissed` / `none` pass through; anything else degrades to
11324
+ * `none` (forward-compat tolerance for unknown tokens).
11048
11325
  */
11049
11326
  declare function normalizeCiteTag(rawTag: string): CiteTag;
11050
11327
  /**
@@ -11072,34 +11349,4 @@ declare function parseCiteLine(raw: string): ParseCiteLineResult;
11072
11349
  */
11073
11350
  declare function tokenize(text: string): string[];
11074
11351
 
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 };
11352
+ export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, 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, type DebugBundle, type DebugBundleInput, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EntryLayer, type EntryScopeMetadata, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, FabricConfig, type FabricConfigSchemaShape, type FabricEvent, type FailureStage, type FailureTrace, type FileMutatedEvent, 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 GraphEdgeCandidateRequestedEvent, 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 KnowledgeBodyReadEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeIdRedirectEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgeModifiedEvent, 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 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 PanelFieldKey, type PanelFieldMeta, type ParityCapability, type ParityClient, type ParityClientExpectation, type ParityMatrix, type ParitySurface, type ParseCiteLineResult, type ParsedGlobalRef, type PayloadGuardObservedEvent, type PendingAutoArchivedEvent, type PrecompactObservedEvent, 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, SCOPE_COORDINATE_PATTERN, STORES_ROOT_DIR, STORE_ALIAS_PATTERN, STORE_GITIGNORE, STORE_KNOWLEDGE_TYPE_DIRS, STORE_LAYOUT, STORE_MOUNT_GROUPS, STORE_MOUNT_NAME_PATTERN, STORE_PENDING_DIR, STORE_PROJECT_ID_PATTERN, STORE_RESOLVER_WARNING_CODES, STORE_UUID_PATTERN, type ScanRecommendationInput, type ScopeCoordinate, type SecretFinding, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, type SessionEndedEvent, type SkillInvocationCompletedEvent, type SkillInvocationStartedEvent, type SkillPhaseTransitionEvent, type SkillTriggerCandidateEvent, StableId, type StoreAwareEntry, type StoreCounters, type StoreExplain, type StoreIdentity, type StoreKnowledgeRef, type StoreLayout, type StoreMountGroup, type StoreProject, type StoreProjectsFile, 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, addStoreProject, agentsIdentitySourceSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aggregatePendingAcrossStores, aiLedgerEntrySchema, allocateKnowledgeId, allocateStoreKnowledgeId, assistantTurnObservedEventSchema, bindRequiredStore, bindingsSnapshotPath, buildDebugBundle, buildFailureTrace, buildScanRecommendations, buildStoreResolveInput, candidateFileEntrySchema, citeContractPolicyActivatedEventSchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientCapabilitySnapshotEventSchema, codexSkillPathMigratedEventSchema, createProjectRootResolver, createStoreResolver, defaultAgentsMetaCounters, deriveAgentsMetaIdentitySource, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, deriveMountLabel, detachMountedStore, disambiguateAlias, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, entryScopeMetadataSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, explainStore, fabricConfigSchema, fabricEventSchema, fileMutatedEventSchema, findMountedStore, findStoreExecutableViolations, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, formatGlobalRef, getPanelFieldByKey, getPanelFields, globalConfigPath, globalConfigSchema, globalRefSchema, graphEdgeCandidateRequestedEventSchema, hasSecrets, hookSignalEmittedEventSchema, hookSurfaceEmittedEventSchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, initStore, installDiffAppliedEventSchema, isKnowledgeStableId, isPersonalLeakIntoSharedStore, isPersonalScope, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeBodyReadEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeIdRedirectEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgeModifiedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeProvenanceSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, knowledgeUnarchivedEventSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lintCrossStoreReferences, listStoreKnowledge, llmJudgeRunEventSchema, loadGlobalConfig, loadProjectConfig, localKnowledgeIdSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpEventLedgerEventSchema, mcpStdioTraceEventSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, mountedStoreSchema, normalizeCiteTag, onboardSlotSchema, parityCapabilitySchema, parityClientExpectationSchema, parityClientSchema, parityMatrixSchema, paritySurfaceSchema, parseCiteLine, parseGlobalRef, payloadGuardObservedEventSchema, pendingAutoArchivedEventSchema, precompactObservedEventSchema, projectConfigPath, projectRootGoldenCaseSchema, projectRootGoldenFileSchema, projectRootResolutionSchema, projectRootSignalSchema, projectRootSignalsSchema, readBindingsSnapshot, readKnowledgeAcrossStores, readSetEntrySchema, readSetGoldenCaseSchema, readSetGoldenFileSchema, readStoreCounters, readStoreIdentity, readStoreIdentityAsync, readStoreProjects, reapplyCompletedEventSchema, recognizeStoreDir, reconcileStoreCounters, redactPii, redactSecrets, relevanceMigrationRunEventSchema, requiredStoreEntrySchema, resolveCandidates, resolveGlobalRoot, resolveStoreQualifiedId, resolveWorkspaceBindingId, resolvedBindingsSnapshotSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, saveGlobalConfig, saveProjectConfig, scanForSecrets, scopeCoordinateSchema, scopeRoot, scrubRemoteUrl, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, sessionEndedEventSchema, skillInvocationCompletedEventSchema, skillInvocationStartedEventSchema, skillPhaseTransitionEventSchema, skillTriggerCandidateEventSchema, storeAliasSchema, storeAwareEntrySchema, storeCountersPath, storeCountersSchema, storeHasProject, storeIdentitySchema, storeKnowledgeTypeDir, storeMountGroup, storeMountNameSchema, storeMountSubPath, storeProjectSchema, storeProjectsFileSchema, storeReadSetSchema, storeRelativePath, storeRelativePathForMount, storeResolveInputSchema, storeResolverWarningCodeSchema, storeResolverWarningSchema, storeUuidSchema, tokenize, uidSchema, withDerivedAgentsMetaNodeDefaults, writeBindingsSnapshot, writeTargetSchema, writtenToStoreSchema };