@fenglimg/fabric-shared 2.2.0-rc.4 → 2.2.0-rc.8

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, F as FabricConfig, d as AgentsMeta, L as LedgerEntry } from './index-BqA89S9q.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, 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-BqA89S9q.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-SrmixArL.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-SrmixArL.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,18 +1304,20 @@ 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>;
1416
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>;
1417
1321
  declare const storeProjectSchema: z.ZodObject<{
1418
1322
  id: z.ZodString;
1419
1323
  name: z.ZodOptional<z.ZodString>;
@@ -1482,9 +1386,31 @@ declare const GLOBAL_STATE_DIR = "state";
1482
1386
  declare const GLOBAL_BINDINGS_DIR = "bindings";
1483
1387
  declare function storeKnowledgeTypeDir(type: (typeof STORE_KNOWLEDGE_TYPE_DIRS)[number]): string;
1484
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;
1485
1409
  declare const mountedStoreSchema: z.ZodObject<{
1486
1410
  store_uuid: z.ZodString;
1411
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1487
1412
  alias: z.ZodString;
1413
+ display_name: z.ZodOptional<z.ZodString>;
1488
1414
  remote: z.ZodOptional<z.ZodString>;
1489
1415
  personal: z.ZodOptional<z.ZodBoolean>;
1490
1416
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1492,21 +1418,28 @@ declare const mountedStoreSchema: z.ZodObject<{
1492
1418
  store_uuid: string;
1493
1419
  alias: string;
1494
1420
  personal?: boolean | undefined;
1421
+ mount_name?: string | undefined;
1422
+ display_name?: string | undefined;
1495
1423
  remote?: string | undefined;
1496
1424
  writable?: boolean | undefined;
1497
1425
  }, {
1498
1426
  store_uuid: string;
1499
1427
  alias: string;
1500
1428
  personal?: boolean | undefined;
1429
+ mount_name?: string | undefined;
1430
+ display_name?: string | undefined;
1501
1431
  remote?: string | undefined;
1502
1432
  writable?: boolean | undefined;
1503
1433
  }>;
1504
1434
  type MountedStore = z.infer<typeof mountedStoreSchema>;
1505
1435
  declare const globalConfigSchema: z.ZodObject<{
1506
1436
  uid: z.ZodString;
1437
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1507
1438
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1508
1439
  store_uuid: z.ZodString;
1440
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1509
1441
  alias: z.ZodString;
1442
+ display_name: z.ZodOptional<z.ZodString>;
1510
1443
  remote: z.ZodOptional<z.ZodString>;
1511
1444
  personal: z.ZodOptional<z.ZodBoolean>;
1512
1445
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1514,20 +1447,27 @@ declare const globalConfigSchema: z.ZodObject<{
1514
1447
  store_uuid: string;
1515
1448
  alias: string;
1516
1449
  personal?: boolean | undefined;
1450
+ mount_name?: string | undefined;
1451
+ display_name?: string | undefined;
1517
1452
  remote?: string | undefined;
1518
1453
  writable?: boolean | undefined;
1519
1454
  }, {
1520
1455
  store_uuid: string;
1521
1456
  alias: string;
1522
1457
  personal?: boolean | undefined;
1458
+ mount_name?: string | undefined;
1459
+ display_name?: string | undefined;
1523
1460
  remote?: string | undefined;
1524
1461
  writable?: boolean | undefined;
1525
1462
  }>, "many">>>;
1526
1463
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1527
1464
  uid: z.ZodString;
1465
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1528
1466
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1529
1467
  store_uuid: z.ZodString;
1468
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1530
1469
  alias: z.ZodString;
1470
+ display_name: z.ZodOptional<z.ZodString>;
1531
1471
  remote: z.ZodOptional<z.ZodString>;
1532
1472
  personal: z.ZodOptional<z.ZodBoolean>;
1533
1473
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1535,20 +1475,27 @@ declare const globalConfigSchema: z.ZodObject<{
1535
1475
  store_uuid: string;
1536
1476
  alias: string;
1537
1477
  personal?: boolean | undefined;
1478
+ mount_name?: string | undefined;
1479
+ display_name?: string | undefined;
1538
1480
  remote?: string | undefined;
1539
1481
  writable?: boolean | undefined;
1540
1482
  }, {
1541
1483
  store_uuid: string;
1542
1484
  alias: string;
1543
1485
  personal?: boolean | undefined;
1486
+ mount_name?: string | undefined;
1487
+ display_name?: string | undefined;
1544
1488
  remote?: string | undefined;
1545
1489
  writable?: boolean | undefined;
1546
1490
  }>, "many">>>;
1547
1491
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1548
1492
  uid: z.ZodString;
1493
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1549
1494
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1550
1495
  store_uuid: z.ZodString;
1496
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1551
1497
  alias: z.ZodString;
1498
+ display_name: z.ZodOptional<z.ZodString>;
1552
1499
  remote: z.ZodOptional<z.ZodString>;
1553
1500
  personal: z.ZodOptional<z.ZodBoolean>;
1554
1501
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1556,12 +1503,16 @@ declare const globalConfigSchema: z.ZodObject<{
1556
1503
  store_uuid: string;
1557
1504
  alias: string;
1558
1505
  personal?: boolean | undefined;
1506
+ mount_name?: string | undefined;
1507
+ display_name?: string | undefined;
1559
1508
  remote?: string | undefined;
1560
1509
  writable?: boolean | undefined;
1561
1510
  }, {
1562
1511
  store_uuid: string;
1563
1512
  alias: string;
1564
1513
  personal?: boolean | undefined;
1514
+ mount_name?: string | undefined;
1515
+ display_name?: string | undefined;
1565
1516
  remote?: string | undefined;
1566
1517
  writable?: boolean | undefined;
1567
1518
  }>, "many">>>;
@@ -1674,8 +1625,8 @@ declare const storeCountersSchema: z.ZodDefault<z.ZodObject<{
1674
1625
  }>>;
1675
1626
  type StoreCounters = z.infer<typeof storeCountersSchema>;
1676
1627
 
1677
- declare const PARITY_CLIENTS: readonly ["claudeCode", "codexCLI", "cursor"];
1678
- declare const parityClientSchema: z.ZodEnum<["claudeCode", "codexCLI", "cursor"]>;
1628
+ declare const PARITY_CLIENTS: readonly ["claudeCode", "codexCLI"];
1629
+ declare const parityClientSchema: z.ZodEnum<["claudeCode", "codexCLI"]>;
1679
1630
  type ParityClient = z.infer<typeof parityClientSchema>;
1680
1631
  declare const PARITY_SURFACES: readonly ["skill", "hook", "mcp", "render"];
1681
1632
  declare const paritySurfaceSchema: z.ZodEnum<["skill", "hook", "mcp", "render"]>;
@@ -1725,25 +1676,7 @@ declare const parityCapabilitySchema: z.ZodObject<{
1725
1676
  mechanism?: string | undefined;
1726
1677
  notes?: string | undefined;
1727
1678
  }>;
1728
- cursor: z.ZodObject<{
1729
- supported: z.ZodBoolean;
1730
- mechanism: z.ZodOptional<z.ZodString>;
1731
- notes: z.ZodOptional<z.ZodString>;
1732
- }, "strict", z.ZodTypeAny, {
1733
- supported: boolean;
1734
- mechanism?: string | undefined;
1735
- notes?: string | undefined;
1736
- }, {
1737
- supported: boolean;
1738
- mechanism?: string | undefined;
1739
- notes?: string | undefined;
1740
- }>;
1741
1679
  }, "strict", z.ZodTypeAny, {
1742
- cursor: {
1743
- supported: boolean;
1744
- mechanism?: string | undefined;
1745
- notes?: string | undefined;
1746
- };
1747
1680
  codexCLI: {
1748
1681
  supported: boolean;
1749
1682
  mechanism?: string | undefined;
@@ -1755,11 +1688,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1755
1688
  notes?: string | undefined;
1756
1689
  };
1757
1690
  }, {
1758
- cursor: {
1759
- supported: boolean;
1760
- mechanism?: string | undefined;
1761
- notes?: string | undefined;
1762
- };
1763
1691
  codexCLI: {
1764
1692
  supported: boolean;
1765
1693
  mechanism?: string | undefined;
@@ -1776,11 +1704,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1776
1704
  id: string;
1777
1705
  surface: "skill" | "hook" | "mcp" | "render";
1778
1706
  clients: {
1779
- cursor: {
1780
- supported: boolean;
1781
- mechanism?: string | undefined;
1782
- notes?: string | undefined;
1783
- };
1784
1707
  codexCLI: {
1785
1708
  supported: boolean;
1786
1709
  mechanism?: string | undefined;
@@ -1797,11 +1720,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1797
1720
  id: string;
1798
1721
  surface: "skill" | "hook" | "mcp" | "render";
1799
1722
  clients: {
1800
- cursor: {
1801
- supported: boolean;
1802
- mechanism?: string | undefined;
1803
- notes?: string | undefined;
1804
- };
1805
1723
  codexCLI: {
1806
1724
  supported: boolean;
1807
1725
  mechanism?: string | undefined;
@@ -1849,25 +1767,7 @@ declare const parityMatrixSchema: z.ZodObject<{
1849
1767
  mechanism?: string | undefined;
1850
1768
  notes?: string | undefined;
1851
1769
  }>;
1852
- cursor: z.ZodObject<{
1853
- supported: z.ZodBoolean;
1854
- mechanism: z.ZodOptional<z.ZodString>;
1855
- notes: z.ZodOptional<z.ZodString>;
1856
- }, "strict", z.ZodTypeAny, {
1857
- supported: boolean;
1858
- mechanism?: string | undefined;
1859
- notes?: string | undefined;
1860
- }, {
1861
- supported: boolean;
1862
- mechanism?: string | undefined;
1863
- notes?: string | undefined;
1864
- }>;
1865
1770
  }, "strict", z.ZodTypeAny, {
1866
- cursor: {
1867
- supported: boolean;
1868
- mechanism?: string | undefined;
1869
- notes?: string | undefined;
1870
- };
1871
1771
  codexCLI: {
1872
1772
  supported: boolean;
1873
1773
  mechanism?: string | undefined;
@@ -1879,11 +1779,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1879
1779
  notes?: string | undefined;
1880
1780
  };
1881
1781
  }, {
1882
- cursor: {
1883
- supported: boolean;
1884
- mechanism?: string | undefined;
1885
- notes?: string | undefined;
1886
- };
1887
1782
  codexCLI: {
1888
1783
  supported: boolean;
1889
1784
  mechanism?: string | undefined;
@@ -1900,11 +1795,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1900
1795
  id: string;
1901
1796
  surface: "skill" | "hook" | "mcp" | "render";
1902
1797
  clients: {
1903
- cursor: {
1904
- supported: boolean;
1905
- mechanism?: string | undefined;
1906
- notes?: string | undefined;
1907
- };
1908
1798
  codexCLI: {
1909
1799
  supported: boolean;
1910
1800
  mechanism?: string | undefined;
@@ -1921,11 +1811,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1921
1811
  id: string;
1922
1812
  surface: "skill" | "hook" | "mcp" | "render";
1923
1813
  clients: {
1924
- cursor: {
1925
- supported: boolean;
1926
- mechanism?: string | undefined;
1927
- notes?: string | undefined;
1928
- };
1929
1814
  codexCLI: {
1930
1815
  supported: boolean;
1931
1816
  mechanism?: string | undefined;
@@ -1946,11 +1831,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1946
1831
  id: string;
1947
1832
  surface: "skill" | "hook" | "mcp" | "render";
1948
1833
  clients: {
1949
- cursor: {
1950
- supported: boolean;
1951
- mechanism?: string | undefined;
1952
- notes?: string | undefined;
1953
- };
1954
1834
  codexCLI: {
1955
1835
  supported: boolean;
1956
1836
  mechanism?: string | undefined;
@@ -1971,11 +1851,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1971
1851
  id: string;
1972
1852
  surface: "skill" | "hook" | "mcp" | "render";
1973
1853
  clients: {
1974
- cursor: {
1975
- supported: boolean;
1976
- mechanism?: string | undefined;
1977
- notes?: string | undefined;
1978
- };
1979
1854
  codexCLI: {
1980
1855
  supported: boolean;
1981
1856
  mechanism?: string | undefined;
@@ -2031,19 +1906,19 @@ type ProjectRootResolution = z.infer<typeof projectRootResolutionSchema>;
2031
1906
  interface ProjectRootResolver {
2032
1907
  resolve(signals: ProjectRootSignals): ProjectRootResolution | null;
2033
1908
  }
2034
- declare const STORE_RESOLVER_WARNING_CODES: readonly ["missing_store", "local_only_no_remote", "alias_unresolved"];
2035
- 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"]>;
2036
1911
  type StoreResolverWarningCode = z.infer<typeof storeResolverWarningCodeSchema>;
2037
1912
  declare const storeResolverWarningSchema: z.ZodObject<{
2038
- 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"]>;
2039
1914
  ref: z.ZodString;
2040
1915
  message: z.ZodString;
2041
1916
  }, "strict", z.ZodTypeAny, {
2042
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1917
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2043
1918
  message: string;
2044
1919
  ref: string;
2045
1920
  }, {
2046
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1921
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2047
1922
  message: string;
2048
1923
  ref: string;
2049
1924
  }>;
@@ -2083,15 +1958,15 @@ declare const storeReadSetSchema: z.ZodObject<{
2083
1958
  remote?: string | undefined;
2084
1959
  }>, "many">;
2085
1960
  warnings: z.ZodArray<z.ZodObject<{
2086
- 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"]>;
2087
1962
  ref: z.ZodString;
2088
1963
  message: z.ZodString;
2089
1964
  }, "strict", z.ZodTypeAny, {
2090
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1965
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2091
1966
  message: string;
2092
1967
  ref: string;
2093
1968
  }, {
2094
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1969
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2095
1970
  message: string;
2096
1971
  ref: string;
2097
1972
  }>, "many">;
@@ -2103,7 +1978,7 @@ declare const storeReadSetSchema: z.ZodObject<{
2103
1978
  remote?: string | undefined;
2104
1979
  }[];
2105
1980
  warnings: {
2106
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1981
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2107
1982
  message: string;
2108
1983
  ref: string;
2109
1984
  }[];
@@ -2115,7 +1990,7 @@ declare const storeReadSetSchema: z.ZodObject<{
2115
1990
  remote?: string | undefined;
2116
1991
  }[];
2117
1992
  warnings: {
2118
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1993
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2119
1994
  message: string;
2120
1995
  ref: string;
2121
1996
  }[];
@@ -2137,6 +2012,7 @@ declare const storeResolveInputSchema: z.ZodObject<{
2137
2012
  mountedStores: z.ZodArray<z.ZodObject<{
2138
2013
  store_uuid: z.ZodString;
2139
2014
  alias: z.ZodString;
2015
+ mount_name: z.ZodOptional<z.ZodString>;
2140
2016
  remote: z.ZodOptional<z.ZodString>;
2141
2017
  writable: z.ZodDefault<z.ZodBoolean>;
2142
2018
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2145,11 +2021,13 @@ declare const storeResolveInputSchema: z.ZodObject<{
2145
2021
  store_uuid: string;
2146
2022
  alias: string;
2147
2023
  writable: boolean;
2024
+ mount_name?: string | undefined;
2148
2025
  remote?: string | undefined;
2149
2026
  }, {
2150
2027
  store_uuid: string;
2151
2028
  alias: string;
2152
2029
  personal?: boolean | undefined;
2030
+ mount_name?: string | undefined;
2153
2031
  remote?: string | undefined;
2154
2032
  writable?: boolean | undefined;
2155
2033
  }>, "many">;
@@ -2164,6 +2042,17 @@ declare const storeResolveInputSchema: z.ZodObject<{
2164
2042
  suggested_remote?: string | undefined;
2165
2043
  }>, "many">;
2166
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>;
2167
2056
  }, "strict", z.ZodTypeAny, {
2168
2057
  uid: string;
2169
2058
  mountedStores: {
@@ -2171,19 +2060,26 @@ declare const storeResolveInputSchema: z.ZodObject<{
2171
2060
  store_uuid: string;
2172
2061
  alias: string;
2173
2062
  writable: boolean;
2063
+ mount_name?: string | undefined;
2174
2064
  remote?: string | undefined;
2175
2065
  }[];
2176
2066
  requiredStores: {
2177
2067
  id: string;
2178
2068
  suggested_remote?: string | undefined;
2179
2069
  }[];
2070
+ writeRoutes: {
2071
+ scope: string;
2072
+ store: string;
2073
+ }[];
2180
2074
  activeWriteAlias?: string | undefined;
2075
+ defaultWriteAlias?: string | undefined;
2181
2076
  }, {
2182
2077
  uid: string;
2183
2078
  mountedStores: {
2184
2079
  store_uuid: string;
2185
2080
  alias: string;
2186
2081
  personal?: boolean | undefined;
2082
+ mount_name?: string | undefined;
2187
2083
  remote?: string | undefined;
2188
2084
  writable?: boolean | undefined;
2189
2085
  }[];
@@ -2192,6 +2088,11 @@ declare const storeResolveInputSchema: z.ZodObject<{
2192
2088
  suggested_remote?: string | undefined;
2193
2089
  }[];
2194
2090
  activeWriteAlias?: string | undefined;
2091
+ writeRoutes?: {
2092
+ scope: string;
2093
+ store: string;
2094
+ }[] | undefined;
2095
+ defaultWriteAlias?: string | undefined;
2195
2096
  }>;
2196
2097
  type StoreResolveInput = z.infer<typeof storeResolveInputSchema>;
2197
2098
  interface StoreResolver {
@@ -2382,6 +2283,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2382
2283
  mountedStores: z.ZodArray<z.ZodObject<{
2383
2284
  store_uuid: z.ZodString;
2384
2285
  alias: z.ZodString;
2286
+ mount_name: z.ZodOptional<z.ZodString>;
2385
2287
  remote: z.ZodOptional<z.ZodString>;
2386
2288
  writable: z.ZodDefault<z.ZodBoolean>;
2387
2289
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2390,11 +2292,13 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2390
2292
  store_uuid: string;
2391
2293
  alias: string;
2392
2294
  writable: boolean;
2295
+ mount_name?: string | undefined;
2393
2296
  remote?: string | undefined;
2394
2297
  }, {
2395
2298
  store_uuid: string;
2396
2299
  alias: string;
2397
2300
  personal?: boolean | undefined;
2301
+ mount_name?: string | undefined;
2398
2302
  remote?: string | undefined;
2399
2303
  writable?: boolean | undefined;
2400
2304
  }>, "many">;
@@ -2409,6 +2313,17 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2409
2313
  suggested_remote?: string | undefined;
2410
2314
  }>, "many">;
2411
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>;
2412
2327
  }, "strict", z.ZodTypeAny, {
2413
2328
  uid: string;
2414
2329
  mountedStores: {
@@ -2416,19 +2331,26 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2416
2331
  store_uuid: string;
2417
2332
  alias: string;
2418
2333
  writable: boolean;
2334
+ mount_name?: string | undefined;
2419
2335
  remote?: string | undefined;
2420
2336
  }[];
2421
2337
  requiredStores: {
2422
2338
  id: string;
2423
2339
  suggested_remote?: string | undefined;
2424
2340
  }[];
2341
+ writeRoutes: {
2342
+ scope: string;
2343
+ store: string;
2344
+ }[];
2425
2345
  activeWriteAlias?: string | undefined;
2346
+ defaultWriteAlias?: string | undefined;
2426
2347
  }, {
2427
2348
  uid: string;
2428
2349
  mountedStores: {
2429
2350
  store_uuid: string;
2430
2351
  alias: string;
2431
2352
  personal?: boolean | undefined;
2353
+ mount_name?: string | undefined;
2432
2354
  remote?: string | undefined;
2433
2355
  writable?: boolean | undefined;
2434
2356
  }[];
@@ -2437,6 +2359,11 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2437
2359
  suggested_remote?: string | undefined;
2438
2360
  }[];
2439
2361
  activeWriteAlias?: string | undefined;
2362
+ writeRoutes?: {
2363
+ scope: string;
2364
+ store: string;
2365
+ }[] | undefined;
2366
+ defaultWriteAlias?: string | undefined;
2440
2367
  }>;
2441
2368
  writeScope: z.ZodString;
2442
2369
  expected: z.ZodObject<{
@@ -2458,15 +2385,15 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2458
2385
  remote?: string | undefined;
2459
2386
  }>, "many">;
2460
2387
  warnings: z.ZodArray<z.ZodObject<{
2461
- 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"]>;
2462
2389
  ref: z.ZodString;
2463
2390
  message: z.ZodString;
2464
2391
  }, "strict", z.ZodTypeAny, {
2465
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2392
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2466
2393
  message: string;
2467
2394
  ref: string;
2468
2395
  }, {
2469
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2396
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2470
2397
  message: string;
2471
2398
  ref: string;
2472
2399
  }>, "many">;
@@ -2478,7 +2405,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2478
2405
  remote?: string | undefined;
2479
2406
  }[];
2480
2407
  warnings: {
2481
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2408
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2482
2409
  message: string;
2483
2410
  ref: string;
2484
2411
  }[];
@@ -2490,7 +2417,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2490
2417
  remote?: string | undefined;
2491
2418
  }[];
2492
2419
  warnings: {
2493
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2420
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2494
2421
  message: string;
2495
2422
  ref: string;
2496
2423
  }[];
@@ -2506,15 +2433,15 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2506
2433
  alias: string;
2507
2434
  }>>;
2508
2435
  writeWarnings: z.ZodArray<z.ZodObject<{
2509
- 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"]>;
2510
2437
  ref: z.ZodString;
2511
2438
  message: z.ZodString;
2512
2439
  }, "strict", z.ZodTypeAny, {
2513
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2440
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2514
2441
  message: string;
2515
2442
  ref: string;
2516
2443
  }, {
2517
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2444
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2518
2445
  message: string;
2519
2446
  ref: string;
2520
2447
  }>, "many">;
@@ -2527,7 +2454,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2527
2454
  remote?: string | undefined;
2528
2455
  }[];
2529
2456
  warnings: {
2530
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2457
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2531
2458
  message: string;
2532
2459
  ref: string;
2533
2460
  }[];
@@ -2537,7 +2464,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2537
2464
  alias: string;
2538
2465
  } | null;
2539
2466
  writeWarnings: {
2540
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2467
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2541
2468
  message: string;
2542
2469
  ref: string;
2543
2470
  }[];
@@ -2550,7 +2477,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2550
2477
  remote?: string | undefined;
2551
2478
  }[];
2552
2479
  warnings: {
2553
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2480
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2554
2481
  message: string;
2555
2482
  ref: string;
2556
2483
  }[];
@@ -2560,7 +2487,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2560
2487
  alias: string;
2561
2488
  } | null;
2562
2489
  writeWarnings: {
2563
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2490
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2564
2491
  message: string;
2565
2492
  ref: string;
2566
2493
  }[];
@@ -2575,7 +2502,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2575
2502
  remote?: string | undefined;
2576
2503
  }[];
2577
2504
  warnings: {
2578
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2505
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2579
2506
  message: string;
2580
2507
  ref: string;
2581
2508
  }[];
@@ -2585,7 +2512,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2585
2512
  alias: string;
2586
2513
  } | null;
2587
2514
  writeWarnings: {
2588
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2515
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2589
2516
  message: string;
2590
2517
  ref: string;
2591
2518
  }[];
@@ -2598,13 +2525,19 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2598
2525
  store_uuid: string;
2599
2526
  alias: string;
2600
2527
  writable: boolean;
2528
+ mount_name?: string | undefined;
2601
2529
  remote?: string | undefined;
2602
2530
  }[];
2603
2531
  requiredStores: {
2604
2532
  id: string;
2605
2533
  suggested_remote?: string | undefined;
2606
2534
  }[];
2535
+ writeRoutes: {
2536
+ scope: string;
2537
+ store: string;
2538
+ }[];
2607
2539
  activeWriteAlias?: string | undefined;
2540
+ defaultWriteAlias?: string | undefined;
2608
2541
  };
2609
2542
  writeScope: string;
2610
2543
  note?: string | undefined;
@@ -2618,7 +2551,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2618
2551
  remote?: string | undefined;
2619
2552
  }[];
2620
2553
  warnings: {
2621
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2554
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2622
2555
  message: string;
2623
2556
  ref: string;
2624
2557
  }[];
@@ -2628,7 +2561,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2628
2561
  alias: string;
2629
2562
  } | null;
2630
2563
  writeWarnings: {
2631
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2564
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2632
2565
  message: string;
2633
2566
  ref: string;
2634
2567
  }[];
@@ -2640,6 +2573,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2640
2573
  store_uuid: string;
2641
2574
  alias: string;
2642
2575
  personal?: boolean | undefined;
2576
+ mount_name?: string | undefined;
2643
2577
  remote?: string | undefined;
2644
2578
  writable?: boolean | undefined;
2645
2579
  }[];
@@ -2648,6 +2582,11 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2648
2582
  suggested_remote?: string | undefined;
2649
2583
  }[];
2650
2584
  activeWriteAlias?: string | undefined;
2585
+ writeRoutes?: {
2586
+ scope: string;
2587
+ store: string;
2588
+ }[] | undefined;
2589
+ defaultWriteAlias?: string | undefined;
2651
2590
  };
2652
2591
  writeScope: string;
2653
2592
  note?: string | undefined;
@@ -2663,6 +2602,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2663
2602
  mountedStores: z.ZodArray<z.ZodObject<{
2664
2603
  store_uuid: z.ZodString;
2665
2604
  alias: z.ZodString;
2605
+ mount_name: z.ZodOptional<z.ZodString>;
2666
2606
  remote: z.ZodOptional<z.ZodString>;
2667
2607
  writable: z.ZodDefault<z.ZodBoolean>;
2668
2608
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2671,11 +2611,13 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2671
2611
  store_uuid: string;
2672
2612
  alias: string;
2673
2613
  writable: boolean;
2614
+ mount_name?: string | undefined;
2674
2615
  remote?: string | undefined;
2675
2616
  }, {
2676
2617
  store_uuid: string;
2677
2618
  alias: string;
2678
2619
  personal?: boolean | undefined;
2620
+ mount_name?: string | undefined;
2679
2621
  remote?: string | undefined;
2680
2622
  writable?: boolean | undefined;
2681
2623
  }>, "many">;
@@ -2690,6 +2632,17 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2690
2632
  suggested_remote?: string | undefined;
2691
2633
  }>, "many">;
2692
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>;
2693
2646
  }, "strict", z.ZodTypeAny, {
2694
2647
  uid: string;
2695
2648
  mountedStores: {
@@ -2697,19 +2650,26 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2697
2650
  store_uuid: string;
2698
2651
  alias: string;
2699
2652
  writable: boolean;
2653
+ mount_name?: string | undefined;
2700
2654
  remote?: string | undefined;
2701
2655
  }[];
2702
2656
  requiredStores: {
2703
2657
  id: string;
2704
2658
  suggested_remote?: string | undefined;
2705
2659
  }[];
2660
+ writeRoutes: {
2661
+ scope: string;
2662
+ store: string;
2663
+ }[];
2706
2664
  activeWriteAlias?: string | undefined;
2665
+ defaultWriteAlias?: string | undefined;
2707
2666
  }, {
2708
2667
  uid: string;
2709
2668
  mountedStores: {
2710
2669
  store_uuid: string;
2711
2670
  alias: string;
2712
2671
  personal?: boolean | undefined;
2672
+ mount_name?: string | undefined;
2713
2673
  remote?: string | undefined;
2714
2674
  writable?: boolean | undefined;
2715
2675
  }[];
@@ -2718,6 +2678,11 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2718
2678
  suggested_remote?: string | undefined;
2719
2679
  }[];
2720
2680
  activeWriteAlias?: string | undefined;
2681
+ writeRoutes?: {
2682
+ scope: string;
2683
+ store: string;
2684
+ }[] | undefined;
2685
+ defaultWriteAlias?: string | undefined;
2721
2686
  }>;
2722
2687
  writeScope: z.ZodString;
2723
2688
  expected: z.ZodObject<{
@@ -2739,15 +2704,15 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2739
2704
  remote?: string | undefined;
2740
2705
  }>, "many">;
2741
2706
  warnings: z.ZodArray<z.ZodObject<{
2742
- 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"]>;
2743
2708
  ref: z.ZodString;
2744
2709
  message: z.ZodString;
2745
2710
  }, "strict", z.ZodTypeAny, {
2746
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2711
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2747
2712
  message: string;
2748
2713
  ref: string;
2749
2714
  }, {
2750
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2715
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2751
2716
  message: string;
2752
2717
  ref: string;
2753
2718
  }>, "many">;
@@ -2759,7 +2724,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2759
2724
  remote?: string | undefined;
2760
2725
  }[];
2761
2726
  warnings: {
2762
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2727
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2763
2728
  message: string;
2764
2729
  ref: string;
2765
2730
  }[];
@@ -2771,7 +2736,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2771
2736
  remote?: string | undefined;
2772
2737
  }[];
2773
2738
  warnings: {
2774
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2739
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2775
2740
  message: string;
2776
2741
  ref: string;
2777
2742
  }[];
@@ -2787,15 +2752,15 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2787
2752
  alias: string;
2788
2753
  }>>;
2789
2754
  writeWarnings: z.ZodArray<z.ZodObject<{
2790
- 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"]>;
2791
2756
  ref: z.ZodString;
2792
2757
  message: z.ZodString;
2793
2758
  }, "strict", z.ZodTypeAny, {
2794
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2759
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2795
2760
  message: string;
2796
2761
  ref: string;
2797
2762
  }, {
2798
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2763
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2799
2764
  message: string;
2800
2765
  ref: string;
2801
2766
  }>, "many">;
@@ -2808,7 +2773,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2808
2773
  remote?: string | undefined;
2809
2774
  }[];
2810
2775
  warnings: {
2811
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2776
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2812
2777
  message: string;
2813
2778
  ref: string;
2814
2779
  }[];
@@ -2818,7 +2783,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2818
2783
  alias: string;
2819
2784
  } | null;
2820
2785
  writeWarnings: {
2821
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2786
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2822
2787
  message: string;
2823
2788
  ref: string;
2824
2789
  }[];
@@ -2831,7 +2796,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2831
2796
  remote?: string | undefined;
2832
2797
  }[];
2833
2798
  warnings: {
2834
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2799
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2835
2800
  message: string;
2836
2801
  ref: string;
2837
2802
  }[];
@@ -2841,7 +2806,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2841
2806
  alias: string;
2842
2807
  } | null;
2843
2808
  writeWarnings: {
2844
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2809
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2845
2810
  message: string;
2846
2811
  ref: string;
2847
2812
  }[];
@@ -2856,7 +2821,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2856
2821
  remote?: string | undefined;
2857
2822
  }[];
2858
2823
  warnings: {
2859
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2824
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2860
2825
  message: string;
2861
2826
  ref: string;
2862
2827
  }[];
@@ -2866,7 +2831,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2866
2831
  alias: string;
2867
2832
  } | null;
2868
2833
  writeWarnings: {
2869
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2834
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2870
2835
  message: string;
2871
2836
  ref: string;
2872
2837
  }[];
@@ -2879,13 +2844,19 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2879
2844
  store_uuid: string;
2880
2845
  alias: string;
2881
2846
  writable: boolean;
2847
+ mount_name?: string | undefined;
2882
2848
  remote?: string | undefined;
2883
2849
  }[];
2884
2850
  requiredStores: {
2885
2851
  id: string;
2886
2852
  suggested_remote?: string | undefined;
2887
2853
  }[];
2854
+ writeRoutes: {
2855
+ scope: string;
2856
+ store: string;
2857
+ }[];
2888
2858
  activeWriteAlias?: string | undefined;
2859
+ defaultWriteAlias?: string | undefined;
2889
2860
  };
2890
2861
  writeScope: string;
2891
2862
  note?: string | undefined;
@@ -2899,7 +2870,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2899
2870
  remote?: string | undefined;
2900
2871
  }[];
2901
2872
  warnings: {
2902
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2873
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2903
2874
  message: string;
2904
2875
  ref: string;
2905
2876
  }[];
@@ -2909,7 +2880,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2909
2880
  alias: string;
2910
2881
  } | null;
2911
2882
  writeWarnings: {
2912
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2883
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2913
2884
  message: string;
2914
2885
  ref: string;
2915
2886
  }[];
@@ -2921,6 +2892,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2921
2892
  store_uuid: string;
2922
2893
  alias: string;
2923
2894
  personal?: boolean | undefined;
2895
+ mount_name?: string | undefined;
2924
2896
  remote?: string | undefined;
2925
2897
  writable?: boolean | undefined;
2926
2898
  }[];
@@ -2929,6 +2901,11 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2929
2901
  suggested_remote?: string | undefined;
2930
2902
  }[];
2931
2903
  activeWriteAlias?: string | undefined;
2904
+ writeRoutes?: {
2905
+ scope: string;
2906
+ store: string;
2907
+ }[] | undefined;
2908
+ defaultWriteAlias?: string | undefined;
2932
2909
  };
2933
2910
  writeScope: string;
2934
2911
  note?: string | undefined;
@@ -2945,7 +2922,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2945
2922
  remote?: string | undefined;
2946
2923
  }[];
2947
2924
  warnings: {
2948
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2925
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2949
2926
  message: string;
2950
2927
  ref: string;
2951
2928
  }[];
@@ -2955,7 +2932,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2955
2932
  alias: string;
2956
2933
  } | null;
2957
2934
  writeWarnings: {
2958
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2935
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2959
2936
  message: string;
2960
2937
  ref: string;
2961
2938
  }[];
@@ -2968,13 +2945,19 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2968
2945
  store_uuid: string;
2969
2946
  alias: string;
2970
2947
  writable: boolean;
2948
+ mount_name?: string | undefined;
2971
2949
  remote?: string | undefined;
2972
2950
  }[];
2973
2951
  requiredStores: {
2974
2952
  id: string;
2975
2953
  suggested_remote?: string | undefined;
2976
2954
  }[];
2955
+ writeRoutes: {
2956
+ scope: string;
2957
+ store: string;
2958
+ }[];
2977
2959
  activeWriteAlias?: string | undefined;
2960
+ defaultWriteAlias?: string | undefined;
2978
2961
  };
2979
2962
  writeScope: string;
2980
2963
  note?: string | undefined;
@@ -2991,7 +2974,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2991
2974
  remote?: string | undefined;
2992
2975
  }[];
2993
2976
  warnings: {
2994
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2977
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2995
2978
  message: string;
2996
2979
  ref: string;
2997
2980
  }[];
@@ -3001,7 +2984,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
3001
2984
  alias: string;
3002
2985
  } | null;
3003
2986
  writeWarnings: {
3004
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2987
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3005
2988
  message: string;
3006
2989
  ref: string;
3007
2990
  }[];
@@ -3013,6 +2996,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
3013
2996
  store_uuid: string;
3014
2997
  alias: string;
3015
2998
  personal?: boolean | undefined;
2999
+ mount_name?: string | undefined;
3016
3000
  remote?: string | undefined;
3017
3001
  writable?: boolean | undefined;
3018
3002
  }[];
@@ -3021,20 +3005,23 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
3021
3005
  suggested_remote?: string | undefined;
3022
3006
  }[];
3023
3007
  activeWriteAlias?: string | undefined;
3008
+ writeRoutes?: {
3009
+ scope: string;
3010
+ store: string;
3011
+ }[] | undefined;
3012
+ defaultWriteAlias?: string | undefined;
3024
3013
  };
3025
3014
  writeScope: string;
3026
3015
  note?: string | undefined;
3027
3016
  }[];
3028
3017
  }>;
3029
3018
 
3030
- declare class ResolverNotImplementedError extends Error {
3031
- constructor(what: string);
3032
- }
3033
3019
  declare function createProjectRootResolver(): ProjectRootResolver;
3034
3020
 
3035
3021
  declare function createStoreResolver(): StoreResolver;
3036
3022
 
3037
3023
  declare function readStoreIdentity(absDir: string): StoreIdentity | null;
3024
+ declare function readStoreIdentityAsync(absDir: string): Promise<StoreIdentity | null>;
3038
3025
  declare function recognizeStoreDir(absDir: string): boolean;
3039
3026
  type FindStoreExecutableViolationsOptions = {
3040
3027
  maxDepth?: number;
@@ -3085,7 +3072,7 @@ declare const STORE_GITIGNORE: string;
3085
3072
  interface InitStoreOptions {
3086
3073
  git?: boolean;
3087
3074
  }
3088
- declare function initStore(absDir: string, identity: StoreIdentity, options?: InitStoreOptions): StoreIdentity;
3075
+ declare function initStore(absDir: string, identity: StoreIdentity, options?: InitStoreOptions): Promise<StoreIdentity>;
3089
3076
  interface StoreKnowledgeRef {
3090
3077
  store_uuid: string;
3091
3078
  alias: string;
@@ -3097,12 +3084,12 @@ interface MountedStoreDir {
3097
3084
  alias: string;
3098
3085
  dir: string;
3099
3086
  }
3100
- declare function listStoreKnowledge(store: MountedStoreDir): StoreKnowledgeRef[];
3101
- declare function readKnowledgeAcrossStores(stores: MountedStoreDir[]): StoreKnowledgeRef[];
3102
- declare function readStoreProjects(storeDir: string): StoreProject[];
3103
- declare function storeHasProject(storeDir: string, id: string): boolean;
3104
- declare function addStoreProject(storeDir: string, project: StoreProject): StoreProject[];
3105
- 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[]>;
3106
3093
 
3107
3094
  declare function storeCountersPath(storeDir: string): string;
3108
3095
  declare function readStoreCounters(storeDir: string): AgentsMetaCounters;
@@ -3121,7 +3108,7 @@ declare function allocateStoreKnowledgeId(layer: Layer, type: KnowledgeType, sto
3121
3108
  * Floor a store's `counters.json` at the highest stable_id actually present on
3122
3109
  * disk, persisting and returning the reconciled envelope.
3123
3110
  *
3124
- * This is the producer↔consumer bridge (W4 F1): a BULK import (`store migrate`)
3111
+ * This is the producer↔consumer bridge (W4 F1): a BULK import
3125
3112
  * writes entries whose ids were minted elsewhere (collision-remapped from
3126
3113
  * disk-max) WITHOUT advancing this store's counters.json. Without reconciliation
3127
3114
  * the next `allocateStoreKnowledgeId` would start from a stale zero and re-mint
@@ -3154,6 +3141,7 @@ declare function scanForSecrets(content: string): SecretFinding[];
3154
3141
  declare function hasSecrets(content: string): boolean;
3155
3142
  declare const REDACTION_PLACEHOLDER_PREFIX = "[REDACTED:";
3156
3143
  declare function redactSecrets(content: string): string;
3144
+ declare function redactPii(content: string): string;
3157
3145
  declare function scrubRemoteUrl(remote: string): string;
3158
3146
 
3159
3147
  type ScanRecommendationInput = {
@@ -3292,6 +3280,7 @@ declare const MCP_STORE_AWARE_CONTRACTS: Record<McpStoreAwareTool, McpStoreAware
3292
3280
  declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3293
3281
  version: z.ZodLiteral<1>;
3294
3282
  project_id: z.ZodString;
3283
+ workspace_binding_id: z.ZodString;
3295
3284
  generated_at: z.ZodString;
3296
3285
  read_set: z.ZodObject<{
3297
3286
  stores: z.ZodArray<z.ZodObject<{
@@ -3311,15 +3300,15 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3311
3300
  remote?: string | undefined;
3312
3301
  }>, "many">;
3313
3302
  warnings: z.ZodArray<z.ZodObject<{
3314
- 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"]>;
3315
3304
  ref: z.ZodString;
3316
3305
  message: z.ZodString;
3317
3306
  }, "strict", z.ZodTypeAny, {
3318
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3307
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3319
3308
  message: string;
3320
3309
  ref: string;
3321
3310
  }, {
3322
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3311
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3323
3312
  message: string;
3324
3313
  ref: string;
3325
3314
  }>, "many">;
@@ -3331,7 +3320,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3331
3320
  remote?: string | undefined;
3332
3321
  }[];
3333
3322
  warnings: {
3334
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3323
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3335
3324
  message: string;
3336
3325
  ref: string;
3337
3326
  }[];
@@ -3343,7 +3332,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3343
3332
  remote?: string | undefined;
3344
3333
  }[];
3345
3334
  warnings: {
3346
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3335
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3347
3336
  message: string;
3348
3337
  ref: string;
3349
3338
  }[];
@@ -3358,8 +3347,23 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3358
3347
  store_uuid: string;
3359
3348
  alias: string;
3360
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">>;
3361
3364
  }, "strict", z.ZodTypeAny, {
3362
3365
  project_id: string;
3366
+ workspace_binding_id: string;
3363
3367
  version: 1;
3364
3368
  generated_at: string;
3365
3369
  read_set: {
@@ -3370,7 +3374,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3370
3374
  remote?: string | undefined;
3371
3375
  }[];
3372
3376
  warnings: {
3373
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3377
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3374
3378
  message: string;
3375
3379
  ref: string;
3376
3380
  }[];
@@ -3379,8 +3383,15 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3379
3383
  store_uuid: string;
3380
3384
  alias: string;
3381
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;
3382
3392
  }, {
3383
3393
  project_id: string;
3394
+ workspace_binding_id: string;
3384
3395
  version: 1;
3385
3396
  generated_at: string;
3386
3397
  read_set: {
@@ -3391,7 +3402,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3391
3402
  remote?: string | undefined;
3392
3403
  }[];
3393
3404
  warnings: {
3394
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3405
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3395
3406
  message: string;
3396
3407
  ref: string;
3397
3408
  }[];
@@ -3400,13 +3411,24 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3400
3411
  store_uuid: string;
3401
3412
  alias: string;
3402
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;
3403
3420
  }>;
3404
3421
  type ResolvedBindingsSnapshot = z.infer<typeof resolvedBindingsSnapshotSchema>;
3405
3422
 
3406
- 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;
3407
3428
  interface WriteBindingsSnapshotOptions {
3408
3429
  globalRoot: string;
3409
3430
  projectId: string;
3431
+ workspaceBindingId?: string;
3410
3432
  resolveInput: StoreResolveInput;
3411
3433
  writeScope: string;
3412
3434
  now: string;
@@ -3416,6 +3438,7 @@ declare function readBindingsSnapshot(globalRoot: string, projectId: string): Re
3416
3438
 
3417
3439
  declare function findMountedStore(config: GlobalConfig, aliasOrUuid: string): MountedStore | undefined;
3418
3440
  declare function addMountedStore(config: GlobalConfig, store: MountedStore): GlobalConfig;
3441
+ declare function disambiguateAlias(existingAliases: Iterable<string>, desired: string): string;
3419
3442
  declare function detachMountedStore(config: GlobalConfig, alias: string): {
3420
3443
  config: GlobalConfig;
3421
3444
  detached: MountedStore | null;
@@ -4377,16 +4400,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4377
4400
  hash: z.ZodString;
4378
4401
  stable_id: z.ZodOptional<z.ZodString>;
4379
4402
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4380
- activation: z.ZodOptional<z.ZodObject<{
4381
- tier: z.ZodEnum<["always", "path", "description"]>;
4382
- description: z.ZodOptional<z.ZodString>;
4383
- }, "strip", z.ZodTypeAny, {
4384
- tier: "always" | "path" | "description";
4385
- description?: string | undefined;
4386
- }, {
4387
- tier: "always" | "path" | "description";
4388
- description?: string | undefined;
4389
- }>>;
4390
4403
  description: z.ZodOptional<z.ZodObject<{
4391
4404
  summary: z.ZodString;
4392
4405
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4447,16 +4460,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4447
4460
  hash: z.ZodString;
4448
4461
  stable_id: z.ZodOptional<z.ZodString>;
4449
4462
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4450
- activation: z.ZodOptional<z.ZodObject<{
4451
- tier: z.ZodEnum<["always", "path", "description"]>;
4452
- description: z.ZodOptional<z.ZodString>;
4453
- }, "strip", z.ZodTypeAny, {
4454
- tier: "always" | "path" | "description";
4455
- description?: string | undefined;
4456
- }, {
4457
- tier: "always" | "path" | "description";
4458
- description?: string | undefined;
4459
- }>>;
4460
4463
  description: z.ZodOptional<z.ZodObject<{
4461
4464
  summary: z.ZodString;
4462
4465
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4517,16 +4520,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4517
4520
  hash: z.ZodString;
4518
4521
  stable_id: z.ZodOptional<z.ZodString>;
4519
4522
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4520
- activation: z.ZodOptional<z.ZodObject<{
4521
- tier: z.ZodEnum<["always", "path", "description"]>;
4522
- description: z.ZodOptional<z.ZodString>;
4523
- }, "strip", z.ZodTypeAny, {
4524
- tier: "always" | "path" | "description";
4525
- description?: string | undefined;
4526
- }, {
4527
- tier: "always" | "path" | "description";
4528
- description?: string | undefined;
4529
- }>>;
4530
4523
  description: z.ZodOptional<z.ZodObject<{
4531
4524
  summary: z.ZodString;
4532
4525
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4587,16 +4580,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4587
4580
  hash: z.ZodString;
4588
4581
  stable_id: z.ZodOptional<z.ZodString>;
4589
4582
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4590
- activation: z.ZodOptional<z.ZodObject<{
4591
- tier: z.ZodEnum<["always", "path", "description"]>;
4592
- description: z.ZodOptional<z.ZodString>;
4593
- }, "strip", z.ZodTypeAny, {
4594
- tier: "always" | "path" | "description";
4595
- description?: string | undefined;
4596
- }, {
4597
- tier: "always" | "path" | "description";
4598
- description?: string | undefined;
4599
- }>>;
4600
4583
  description: z.ZodOptional<z.ZodObject<{
4601
4584
  summary: z.ZodString;
4602
4585
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4730,16 +4713,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4730
4713
  hash: z.ZodString;
4731
4714
  stable_id: z.ZodOptional<z.ZodString>;
4732
4715
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4733
- activation: z.ZodOptional<z.ZodObject<{
4734
- tier: z.ZodEnum<["always", "path", "description"]>;
4735
- description: z.ZodOptional<z.ZodString>;
4736
- }, "strip", z.ZodTypeAny, {
4737
- tier: "always" | "path" | "description";
4738
- description?: string | undefined;
4739
- }, {
4740
- tier: "always" | "path" | "description";
4741
- description?: string | undefined;
4742
- }>>;
4743
4716
  description: z.ZodOptional<z.ZodObject<{
4744
4717
  summary: z.ZodString;
4745
4718
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4841,16 +4814,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4841
4814
  hash: z.ZodString;
4842
4815
  stable_id: z.ZodOptional<z.ZodString>;
4843
4816
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4844
- activation: z.ZodOptional<z.ZodObject<{
4845
- tier: z.ZodEnum<["always", "path", "description"]>;
4846
- description: z.ZodOptional<z.ZodString>;
4847
- }, "strip", z.ZodTypeAny, {
4848
- tier: "always" | "path" | "description";
4849
- description?: string | undefined;
4850
- }, {
4851
- tier: "always" | "path" | "description";
4852
- description?: string | undefined;
4853
- }>>;
4854
4817
  description: z.ZodOptional<z.ZodObject<{
4855
4818
  summary: z.ZodString;
4856
4819
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5673,16 +5636,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5673
5636
  hash: z.ZodString;
5674
5637
  stable_id: z.ZodOptional<z.ZodString>;
5675
5638
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5676
- activation: z.ZodOptional<z.ZodObject<{
5677
- tier: z.ZodEnum<["always", "path", "description"]>;
5678
- description: z.ZodOptional<z.ZodString>;
5679
- }, "strip", z.ZodTypeAny, {
5680
- tier: "always" | "path" | "description";
5681
- description?: string | undefined;
5682
- }, {
5683
- tier: "always" | "path" | "description";
5684
- description?: string | undefined;
5685
- }>>;
5686
5639
  description: z.ZodOptional<z.ZodObject<{
5687
5640
  summary: z.ZodString;
5688
5641
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5743,16 +5696,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5743
5696
  hash: z.ZodString;
5744
5697
  stable_id: z.ZodOptional<z.ZodString>;
5745
5698
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5746
- activation: z.ZodOptional<z.ZodObject<{
5747
- tier: z.ZodEnum<["always", "path", "description"]>;
5748
- description: z.ZodOptional<z.ZodString>;
5749
- }, "strip", z.ZodTypeAny, {
5750
- tier: "always" | "path" | "description";
5751
- description?: string | undefined;
5752
- }, {
5753
- tier: "always" | "path" | "description";
5754
- description?: string | undefined;
5755
- }>>;
5756
5699
  description: z.ZodOptional<z.ZodObject<{
5757
5700
  summary: z.ZodString;
5758
5701
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5813,16 +5756,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5813
5756
  hash: z.ZodString;
5814
5757
  stable_id: z.ZodOptional<z.ZodString>;
5815
5758
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5816
- activation: z.ZodOptional<z.ZodObject<{
5817
- tier: z.ZodEnum<["always", "path", "description"]>;
5818
- description: z.ZodOptional<z.ZodString>;
5819
- }, "strip", z.ZodTypeAny, {
5820
- tier: "always" | "path" | "description";
5821
- description?: string | undefined;
5822
- }, {
5823
- tier: "always" | "path" | "description";
5824
- description?: string | undefined;
5825
- }>>;
5826
5759
  description: z.ZodOptional<z.ZodObject<{
5827
5760
  summary: z.ZodString;
5828
5761
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5883,16 +5816,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5883
5816
  hash: z.ZodString;
5884
5817
  stable_id: z.ZodOptional<z.ZodString>;
5885
5818
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5886
- activation: z.ZodOptional<z.ZodObject<{
5887
- tier: z.ZodEnum<["always", "path", "description"]>;
5888
- description: z.ZodOptional<z.ZodString>;
5889
- }, "strip", z.ZodTypeAny, {
5890
- tier: "always" | "path" | "description";
5891
- description?: string | undefined;
5892
- }, {
5893
- tier: "always" | "path" | "description";
5894
- description?: string | undefined;
5895
- }>>;
5896
5819
  description: z.ZodOptional<z.ZodObject<{
5897
5820
  summary: z.ZodString;
5898
5821
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -6026,16 +5949,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6026
5949
  hash: z.ZodString;
6027
5950
  stable_id: z.ZodOptional<z.ZodString>;
6028
5951
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
6029
- activation: z.ZodOptional<z.ZodObject<{
6030
- tier: z.ZodEnum<["always", "path", "description"]>;
6031
- description: z.ZodOptional<z.ZodString>;
6032
- }, "strip", z.ZodTypeAny, {
6033
- tier: "always" | "path" | "description";
6034
- description?: string | undefined;
6035
- }, {
6036
- tier: "always" | "path" | "description";
6037
- description?: string | undefined;
6038
- }>>;
6039
5952
  description: z.ZodOptional<z.ZodObject<{
6040
5953
  summary: z.ZodString;
6041
5954
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -6137,16 +6050,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6137
6050
  hash: z.ZodString;
6138
6051
  stable_id: z.ZodOptional<z.ZodString>;
6139
6052
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
6140
- activation: z.ZodOptional<z.ZodObject<{
6141
- tier: z.ZodEnum<["always", "path", "description"]>;
6142
- description: z.ZodOptional<z.ZodString>;
6143
- }, "strip", z.ZodTypeAny, {
6144
- tier: "always" | "path" | "description";
6145
- description?: string | undefined;
6146
- }, {
6147
- tier: "always" | "path" | "description";
6148
- description?: string | undefined;
6149
- }>>;
6150
6053
  description: z.ZodOptional<z.ZodObject<{
6151
6054
  summary: z.ZodString;
6152
6055
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -7364,77 +7267,6 @@ declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
7364
7267
  correlation_id?: string | undefined;
7365
7268
  session_id?: string | undefined;
7366
7269
  }>;
7367
- declare const mcpConfigMigratedEventSchema: z.ZodObject<{
7368
- event_type: z.ZodLiteral<"mcp_config_migrated">;
7369
- source: z.ZodLiteral<"doctor_fix">;
7370
- removed_from: z.ZodString;
7371
- kind: z.ZodLiteral<"fabric-event">;
7372
- id: z.ZodString;
7373
- ts: z.ZodNumber;
7374
- schema_version: z.ZodLiteral<1>;
7375
- correlation_id: z.ZodOptional<z.ZodString>;
7376
- session_id: z.ZodOptional<z.ZodString>;
7377
- }, "strip", z.ZodTypeAny, {
7378
- id: string;
7379
- source: "doctor_fix";
7380
- ts: number;
7381
- schema_version: 1;
7382
- kind: "fabric-event";
7383
- event_type: "mcp_config_migrated";
7384
- removed_from: string;
7385
- correlation_id?: string | undefined;
7386
- session_id?: string | undefined;
7387
- }, {
7388
- id: string;
7389
- source: "doctor_fix";
7390
- ts: number;
7391
- schema_version: 1;
7392
- kind: "fabric-event";
7393
- event_type: "mcp_config_migrated";
7394
- removed_from: string;
7395
- correlation_id?: string | undefined;
7396
- session_id?: string | undefined;
7397
- }>;
7398
- declare const bootstrapMarkerMigratedEventSchema: z.ZodObject<{
7399
- event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
7400
- path: z.ZodString;
7401
- migrated_count: z.ZodNumber;
7402
- legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
7403
- new_marker: z.ZodLiteral<"fabric:bootstrap">;
7404
- timestamp: z.ZodString;
7405
- kind: z.ZodLiteral<"fabric-event">;
7406
- id: z.ZodString;
7407
- ts: z.ZodNumber;
7408
- schema_version: z.ZodLiteral<1>;
7409
- correlation_id: z.ZodOptional<z.ZodString>;
7410
- session_id: z.ZodOptional<z.ZodString>;
7411
- }, "strip", z.ZodTypeAny, {
7412
- path: string;
7413
- id: string;
7414
- ts: number;
7415
- schema_version: 1;
7416
- kind: "fabric-event";
7417
- event_type: "bootstrap_marker_migrated";
7418
- migrated_count: number;
7419
- legacy_marker: "fabric:knowledge-base";
7420
- new_marker: "fabric:bootstrap";
7421
- timestamp: string;
7422
- correlation_id?: string | undefined;
7423
- session_id?: string | undefined;
7424
- }, {
7425
- path: string;
7426
- id: string;
7427
- ts: number;
7428
- schema_version: 1;
7429
- kind: "fabric-event";
7430
- event_type: "bootstrap_marker_migrated";
7431
- migrated_count: number;
7432
- legacy_marker: "fabric:knowledge-base";
7433
- new_marker: "fabric:bootstrap";
7434
- timestamp: string;
7435
- correlation_id?: string | undefined;
7436
- session_id?: string | undefined;
7437
- }>;
7438
7270
  declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
7439
7271
  event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
7440
7272
  reconciled_files: z.ZodArray<z.ZodString, "many">;
@@ -7623,7 +7455,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
7623
7455
  written_stable_ids: string[];
7624
7456
  correlation_id?: string | undefined;
7625
7457
  session_id?: string | undefined;
7626
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
7458
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
7627
7459
  }, {
7628
7460
  id: string;
7629
7461
  ts: number;
@@ -7634,7 +7466,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
7634
7466
  written_stable_ids: string[];
7635
7467
  correlation_id?: string | undefined;
7636
7468
  session_id?: string | undefined;
7637
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
7469
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
7638
7470
  }>;
7639
7471
  declare const knowledgeProposedEventSchema: z.ZodObject<{
7640
7472
  event_type: z.ZodLiteral<"knowledge_proposed">;
@@ -7772,6 +7604,52 @@ declare const knowledgePromoteFailedEventSchema: z.ZodObject<{
7772
7604
  correlation_id?: string | undefined;
7773
7605
  session_id?: string | undefined;
7774
7606
  }>;
7607
+ declare const knowledgeModifiedEventSchema: z.ZodObject<{
7608
+ event_type: z.ZodLiteral<"knowledge_modified">;
7609
+ stable_id: z.ZodOptional<z.ZodString>;
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>;
7615
+ reason: 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
+ }>;
7775
7653
  declare const knowledgeLayerChangedEventSchema: z.ZodObject<{
7776
7654
  event_type: z.ZodLiteral<"knowledge_layer_changed">;
7777
7655
  stable_id: z.ZodOptional<z.ZodString>;
@@ -8037,6 +7915,7 @@ declare const knowledgeUnarchivedEventSchema: z.ZodObject<{
8037
7915
  declare const knowledgeDeferredEventSchema: z.ZodObject<{
8038
7916
  event_type: z.ZodLiteral<"knowledge_deferred">;
8039
7917
  stable_id: z.ZodOptional<z.ZodString>;
7918
+ pending_path: z.ZodOptional<z.ZodString>;
8040
7919
  timestamp: z.ZodString;
8041
7920
  reason: z.ZodOptional<z.ZodString>;
8042
7921
  until: z.ZodOptional<z.ZodString>;
@@ -8053,6 +7932,7 @@ declare const knowledgeDeferredEventSchema: z.ZodObject<{
8053
7932
  kind: "fabric-event";
8054
7933
  event_type: "knowledge_deferred";
8055
7934
  timestamp: string;
7935
+ pending_path?: string | undefined;
8056
7936
  stable_id?: string | undefined;
8057
7937
  correlation_id?: string | undefined;
8058
7938
  session_id?: string | undefined;
@@ -8065,6 +7945,7 @@ declare const knowledgeDeferredEventSchema: z.ZodObject<{
8065
7945
  kind: "fabric-event";
8066
7946
  event_type: "knowledge_deferred";
8067
7947
  timestamp: string;
7948
+ pending_path?: string | undefined;
8068
7949
  stable_id?: string | undefined;
8069
7950
  correlation_id?: string | undefined;
8070
7951
  session_id?: string | undefined;
@@ -8346,7 +8227,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8346
8227
  skip_reason: string | null;
8347
8228
  }>, "many">>;
8348
8229
  cite_stores: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
8349
- client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
8230
+ client: z.ZodOptional<z.ZodEnum<["cc", "codex"]>>;
8350
8231
  turn_id: z.ZodString;
8351
8232
  envelope_index: z.ZodOptional<z.ZodNumber>;
8352
8233
  timestamp: z.ZodString;
@@ -8377,7 +8258,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8377
8258
  correlation_id?: string | undefined;
8378
8259
  session_id?: string | undefined;
8379
8260
  cite_stores?: (string | null)[] | undefined;
8380
- client?: "cursor" | "cc" | "codex" | undefined;
8261
+ client?: "cc" | "codex" | undefined;
8381
8262
  envelope_index?: number | undefined;
8382
8263
  }, {
8383
8264
  id: string;
@@ -8400,7 +8281,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8400
8281
  skip_reason: string | null;
8401
8282
  }[] | undefined;
8402
8283
  cite_stores?: (string | null)[] | undefined;
8403
- client?: "cursor" | "cc" | "codex" | undefined;
8284
+ client?: "cc" | "codex" | undefined;
8404
8285
  envelope_index?: number | undefined;
8405
8286
  }>;
8406
8287
  declare const citePolicyActivatedEventSchema: z.ZodObject<{
@@ -8644,7 +8525,7 @@ declare const sessionArchiveAttemptedEventSchema: z.ZodObject<{
8644
8525
  declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8645
8526
  event_type: z.ZodLiteral<"hook_surface_emitted">;
8646
8527
  hook_name: z.ZodString;
8647
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
8528
+ client: z.ZodEnum<["cc", "codex"]>;
8648
8529
  target_channel: z.ZodString;
8649
8530
  rendered_ids: z.ZodArray<z.ZodString, "many">;
8650
8531
  delivery_status: z.ZodEnum<["delivered", "suppressed", "error"]>;
@@ -8661,7 +8542,7 @@ declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8661
8542
  schema_version: 1;
8662
8543
  kind: "fabric-event";
8663
8544
  event_type: "hook_surface_emitted";
8664
- client: "cursor" | "cc" | "codex";
8545
+ client: "cc" | "codex";
8665
8546
  hook_name: string;
8666
8547
  target_channel: string;
8667
8548
  rendered_ids: string[];
@@ -8675,7 +8556,7 @@ declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8675
8556
  schema_version: 1;
8676
8557
  kind: "fabric-event";
8677
8558
  event_type: "hook_surface_emitted";
8678
- client: "cursor" | "cc" | "codex";
8559
+ client: "cc" | "codex";
8679
8560
  hook_name: string;
8680
8561
  target_channel: string;
8681
8562
  rendered_ids: string[];
@@ -9003,7 +8884,7 @@ declare const llmJudgeRunEventSchema: z.ZodObject<{
9003
8884
  }>;
9004
8885
  declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
9005
8886
  event_type: z.ZodLiteral<"client_capability_snapshot">;
9006
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
8887
+ client: z.ZodEnum<["cc", "codex"]>;
9007
8888
  capabilities: z.ZodArray<z.ZodString, "many">;
9008
8889
  version: z.ZodString;
9009
8890
  kind: z.ZodLiteral<"fabric-event">;
@@ -9020,7 +8901,7 @@ declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
9020
8901
  capabilities: string[];
9021
8902
  kind: "fabric-event";
9022
8903
  event_type: "client_capability_snapshot";
9023
- client: "cursor" | "cc" | "codex";
8904
+ client: "cc" | "codex";
9024
8905
  correlation_id?: string | undefined;
9025
8906
  session_id?: string | undefined;
9026
8907
  }, {
@@ -9031,7 +8912,7 @@ declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
9031
8912
  capabilities: string[];
9032
8913
  kind: "fabric-event";
9033
8914
  event_type: "client_capability_snapshot";
9034
- client: "cursor" | "cc" | "codex";
8915
+ client: "cc" | "codex";
9035
8916
  correlation_id?: string | undefined;
9036
8917
  session_id?: string | undefined;
9037
8918
  }>;
@@ -9100,6 +8981,46 @@ declare const fileMutatedEventSchema: z.ZodObject<{
9100
8981
  source_event_id?: string | undefined;
9101
8982
  store_id?: string | undefined;
9102
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
+ }>;
9103
9024
  declare const precompactObservedEventSchema: z.ZodObject<{
9104
9025
  event_type: z.ZodLiteral<"precompact_observed">;
9105
9026
  kind: z.ZodLiteral<"fabric-event">;
@@ -9142,9 +9063,9 @@ declare const graphEdgeCandidateRequestedEventSchema: z.ZodObject<{
9142
9063
  schema_version: 1;
9143
9064
  kind: "fabric-event";
9144
9065
  event_type: "graph_edge_candidate_requested";
9066
+ store?: string | undefined;
9145
9067
  correlation_id?: string | undefined;
9146
9068
  session_id?: string | undefined;
9147
- store?: string | undefined;
9148
9069
  }, {
9149
9070
  id: string;
9150
9071
  stable_id: string;
@@ -9152,9 +9073,9 @@ declare const graphEdgeCandidateRequestedEventSchema: z.ZodObject<{
9152
9073
  schema_version: 1;
9153
9074
  kind: "fabric-event";
9154
9075
  event_type: "graph_edge_candidate_requested";
9076
+ store?: string | undefined;
9155
9077
  correlation_id?: string | undefined;
9156
9078
  session_id?: string | undefined;
9157
- store?: string | undefined;
9158
9079
  }>;
9159
9080
  declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
9160
9081
  event_type: z.ZodLiteral<"knowledge_context_planned">;
@@ -9556,75 +9477,6 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9556
9477
  corrupted_path: string;
9557
9478
  correlation_id?: string | undefined;
9558
9479
  session_id?: string | undefined;
9559
- }>, z.ZodObject<{
9560
- event_type: z.ZodLiteral<"mcp_config_migrated">;
9561
- source: z.ZodLiteral<"doctor_fix">;
9562
- removed_from: z.ZodString;
9563
- kind: z.ZodLiteral<"fabric-event">;
9564
- id: z.ZodString;
9565
- ts: z.ZodNumber;
9566
- schema_version: z.ZodLiteral<1>;
9567
- correlation_id: z.ZodOptional<z.ZodString>;
9568
- session_id: z.ZodOptional<z.ZodString>;
9569
- }, "strip", z.ZodTypeAny, {
9570
- id: string;
9571
- source: "doctor_fix";
9572
- ts: number;
9573
- schema_version: 1;
9574
- kind: "fabric-event";
9575
- event_type: "mcp_config_migrated";
9576
- removed_from: string;
9577
- correlation_id?: string | undefined;
9578
- session_id?: string | undefined;
9579
- }, {
9580
- id: string;
9581
- source: "doctor_fix";
9582
- ts: number;
9583
- schema_version: 1;
9584
- kind: "fabric-event";
9585
- event_type: "mcp_config_migrated";
9586
- removed_from: string;
9587
- correlation_id?: string | undefined;
9588
- session_id?: string | undefined;
9589
- }>, z.ZodObject<{
9590
- event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
9591
- path: z.ZodString;
9592
- migrated_count: z.ZodNumber;
9593
- legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
9594
- new_marker: z.ZodLiteral<"fabric:bootstrap">;
9595
- timestamp: z.ZodString;
9596
- kind: z.ZodLiteral<"fabric-event">;
9597
- id: z.ZodString;
9598
- ts: z.ZodNumber;
9599
- schema_version: z.ZodLiteral<1>;
9600
- correlation_id: z.ZodOptional<z.ZodString>;
9601
- session_id: z.ZodOptional<z.ZodString>;
9602
- }, "strip", z.ZodTypeAny, {
9603
- path: string;
9604
- id: string;
9605
- ts: number;
9606
- schema_version: 1;
9607
- kind: "fabric-event";
9608
- event_type: "bootstrap_marker_migrated";
9609
- migrated_count: number;
9610
- legacy_marker: "fabric:knowledge-base";
9611
- new_marker: "fabric:bootstrap";
9612
- timestamp: string;
9613
- correlation_id?: string | undefined;
9614
- session_id?: string | undefined;
9615
- }, {
9616
- path: string;
9617
- id: string;
9618
- ts: number;
9619
- schema_version: 1;
9620
- kind: "fabric-event";
9621
- event_type: "bootstrap_marker_migrated";
9622
- migrated_count: number;
9623
- legacy_marker: "fabric:knowledge-base";
9624
- new_marker: "fabric:bootstrap";
9625
- timestamp: string;
9626
- correlation_id?: string | undefined;
9627
- session_id?: string | undefined;
9628
9480
  }>, z.ZodObject<{
9629
9481
  event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
9630
9482
  reconciled_files: z.ZodArray<z.ZodString, "many">;
@@ -9808,7 +9660,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9808
9660
  written_stable_ids: string[];
9809
9661
  correlation_id?: string | undefined;
9810
9662
  session_id?: string | undefined;
9811
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
9663
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
9812
9664
  }, {
9813
9665
  id: string;
9814
9666
  ts: number;
@@ -9819,7 +9671,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9819
9671
  written_stable_ids: string[];
9820
9672
  correlation_id?: string | undefined;
9821
9673
  session_id?: string | undefined;
9822
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
9674
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
9823
9675
  }>, z.ZodObject<{
9824
9676
  event_type: z.ZodLiteral<"knowledge_proposed">;
9825
9677
  stable_id: z.ZodOptional<z.ZodString>;
@@ -9952,6 +9804,51 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9952
9804
  stable_id?: string | undefined;
9953
9805
  correlation_id?: string | undefined;
9954
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;
9955
9852
  }>, z.ZodObject<{
9956
9853
  event_type: z.ZodLiteral<"knowledge_layer_changed">;
9957
9854
  stable_id: z.ZodOptional<z.ZodString>;
@@ -10210,6 +10107,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10210
10107
  }>, z.ZodObject<{
10211
10108
  event_type: z.ZodLiteral<"knowledge_deferred">;
10212
10109
  stable_id: z.ZodOptional<z.ZodString>;
10110
+ pending_path: z.ZodOptional<z.ZodString>;
10213
10111
  timestamp: z.ZodString;
10214
10112
  reason: z.ZodOptional<z.ZodString>;
10215
10113
  until: z.ZodOptional<z.ZodString>;
@@ -10226,6 +10124,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10226
10124
  kind: "fabric-event";
10227
10125
  event_type: "knowledge_deferred";
10228
10126
  timestamp: string;
10127
+ pending_path?: string | undefined;
10229
10128
  stable_id?: string | undefined;
10230
10129
  correlation_id?: string | undefined;
10231
10130
  session_id?: string | undefined;
@@ -10238,6 +10137,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10238
10137
  kind: "fabric-event";
10239
10138
  event_type: "knowledge_deferred";
10240
10139
  timestamp: string;
10140
+ pending_path?: string | undefined;
10241
10141
  stable_id?: string | undefined;
10242
10142
  correlation_id?: string | undefined;
10243
10143
  session_id?: string | undefined;
@@ -10511,7 +10411,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10511
10411
  skip_reason: string | null;
10512
10412
  }>, "many">>;
10513
10413
  cite_stores: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
10514
- client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
10414
+ client: z.ZodOptional<z.ZodEnum<["cc", "codex"]>>;
10515
10415
  turn_id: z.ZodString;
10516
10416
  envelope_index: z.ZodOptional<z.ZodNumber>;
10517
10417
  timestamp: z.ZodString;
@@ -10542,7 +10442,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10542
10442
  correlation_id?: string | undefined;
10543
10443
  session_id?: string | undefined;
10544
10444
  cite_stores?: (string | null)[] | undefined;
10545
- client?: "cursor" | "cc" | "codex" | undefined;
10445
+ client?: "cc" | "codex" | undefined;
10546
10446
  envelope_index?: number | undefined;
10547
10447
  }, {
10548
10448
  id: string;
@@ -10565,7 +10465,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10565
10465
  skip_reason: string | null;
10566
10466
  }[] | undefined;
10567
10467
  cite_stores?: (string | null)[] | undefined;
10568
- client?: "cursor" | "cc" | "codex" | undefined;
10468
+ client?: "cc" | "codex" | undefined;
10569
10469
  envelope_index?: number | undefined;
10570
10470
  }>, z.ZodObject<{
10571
10471
  event_type: z.ZodLiteral<"cite_policy_activated">;
@@ -10801,7 +10701,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10801
10701
  }>, z.ZodObject<{
10802
10702
  event_type: z.ZodLiteral<"hook_surface_emitted">;
10803
10703
  hook_name: z.ZodString;
10804
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
10704
+ client: z.ZodEnum<["cc", "codex"]>;
10805
10705
  target_channel: z.ZodString;
10806
10706
  rendered_ids: z.ZodArray<z.ZodString, "many">;
10807
10707
  delivery_status: z.ZodEnum<["delivered", "suppressed", "error"]>;
@@ -10818,7 +10718,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10818
10718
  schema_version: 1;
10819
10719
  kind: "fabric-event";
10820
10720
  event_type: "hook_surface_emitted";
10821
- client: "cursor" | "cc" | "codex";
10721
+ client: "cc" | "codex";
10822
10722
  hook_name: string;
10823
10723
  target_channel: string;
10824
10724
  rendered_ids: string[];
@@ -10832,7 +10732,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10832
10732
  schema_version: 1;
10833
10733
  kind: "fabric-event";
10834
10734
  event_type: "hook_surface_emitted";
10835
- client: "cursor" | "cc" | "codex";
10735
+ client: "cc" | "codex";
10836
10736
  hook_name: string;
10837
10737
  target_channel: string;
10838
10738
  rendered_ids: string[];
@@ -11151,7 +11051,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11151
11051
  session_id?: string | undefined;
11152
11052
  }>, z.ZodObject<{
11153
11053
  event_type: z.ZodLiteral<"client_capability_snapshot">;
11154
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
11054
+ client: z.ZodEnum<["cc", "codex"]>;
11155
11055
  capabilities: z.ZodArray<z.ZodString, "many">;
11156
11056
  version: z.ZodString;
11157
11057
  kind: z.ZodLiteral<"fabric-event">;
@@ -11168,7 +11068,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11168
11068
  capabilities: string[];
11169
11069
  kind: "fabric-event";
11170
11070
  event_type: "client_capability_snapshot";
11171
- client: "cursor" | "cc" | "codex";
11071
+ client: "cc" | "codex";
11172
11072
  correlation_id?: string | undefined;
11173
11073
  session_id?: string | undefined;
11174
11074
  }, {
@@ -11179,7 +11079,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11179
11079
  capabilities: string[];
11180
11080
  kind: "fabric-event";
11181
11081
  event_type: "client_capability_snapshot";
11182
- client: "cursor" | "cc" | "codex";
11082
+ client: "cc" | "codex";
11183
11083
  correlation_id?: string | undefined;
11184
11084
  session_id?: string | undefined;
11185
11085
  }>, z.ZodObject<{
@@ -11245,6 +11145,45 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11245
11145
  tool_name?: string | undefined;
11246
11146
  source_event_id?: string | undefined;
11247
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;
11248
11187
  }>, z.ZodObject<{
11249
11188
  event_type: z.ZodLiteral<"precompact_observed">;
11250
11189
  kind: z.ZodLiteral<"fabric-event">;
@@ -11286,9 +11225,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11286
11225
  schema_version: 1;
11287
11226
  kind: "fabric-event";
11288
11227
  event_type: "graph_edge_candidate_requested";
11228
+ store?: string | undefined;
11289
11229
  correlation_id?: string | undefined;
11290
11230
  session_id?: string | undefined;
11291
- store?: string | undefined;
11292
11231
  }, {
11293
11232
  id: string;
11294
11233
  stable_id: string;
@@ -11296,9 +11235,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11296
11235
  schema_version: 1;
11297
11236
  kind: "fabric-event";
11298
11237
  event_type: "graph_edge_candidate_requested";
11238
+ store?: string | undefined;
11299
11239
  correlation_id?: string | undefined;
11300
11240
  session_id?: string | undefined;
11301
- store?: string | undefined;
11302
11241
  }>]>;
11303
11242
  type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
11304
11243
  type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
@@ -11309,8 +11248,6 @@ type McpEventLedgerEvent = z.infer<typeof mcpEventLedgerEventSchema>;
11309
11248
  type ReapplyCompletedEvent = z.infer<typeof reapplyCompletedEventSchema>;
11310
11249
  type InstallDiffAppliedEvent = z.infer<typeof installDiffAppliedEventSchema>;
11311
11250
  type EventLedgerTruncatedEvent = z.infer<typeof eventLedgerTruncatedEventSchema>;
11312
- type McpConfigMigratedEvent = z.infer<typeof mcpConfigMigratedEventSchema>;
11313
- type BootstrapMarkerMigratedEvent = z.infer<typeof bootstrapMarkerMigratedEventSchema>;
11314
11251
  type MetaReconciledOnStartupEvent = z.infer<typeof metaReconciledOnStartupEventSchema>;
11315
11252
  type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
11316
11253
  type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
@@ -11321,6 +11258,7 @@ type KnowledgeProposedEvent = z.infer<typeof knowledgeProposedEventSchema>;
11321
11258
  type KnowledgePromoteStartedEvent = z.infer<typeof knowledgePromoteStartedEventSchema>;
11322
11259
  type KnowledgePromotedEvent = z.infer<typeof knowledgePromotedEventSchema>;
11323
11260
  type KnowledgePromoteFailedEvent = z.infer<typeof knowledgePromoteFailedEventSchema>;
11261
+ type KnowledgeModifiedEvent = z.infer<typeof knowledgeModifiedEventSchema>;
11324
11262
  type KnowledgeLayerChangedEvent = z.infer<typeof knowledgeLayerChangedEventSchema>;
11325
11263
  type KnowledgeIdRedirectEvent = z.infer<typeof knowledgeIdRedirectEventSchema>;
11326
11264
  type KnowledgeSlugRenamedEvent = z.infer<typeof knowledgeSlugRenamedEventSchema>;
@@ -11356,9 +11294,10 @@ type LlmJudgeRunEvent = z.infer<typeof llmJudgeRunEventSchema>;
11356
11294
  type ClientCapabilitySnapshotEvent = z.infer<typeof clientCapabilitySnapshotEventSchema>;
11357
11295
  type SessionEndedEvent = z.infer<typeof sessionEndedEventSchema>;
11358
11296
  type FileMutatedEvent = z.infer<typeof fileMutatedEventSchema>;
11297
+ type KnowledgeBodyReadEvent = z.infer<typeof knowledgeBodyReadEventSchema>;
11359
11298
  type PrecompactObservedEvent = z.infer<typeof precompactObservedEventSchema>;
11360
11299
  type GraphEdgeCandidateRequestedEvent = z.infer<typeof graphEdgeCandidateRequestedEventSchema>;
11361
- 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 | SessionEndedEvent | FileMutatedEvent | PrecompactObservedEvent | GraphEdgeCandidateRequestedEvent;
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;
11362
11301
  type EventLedgerEventType = EventLedgerEvent["event_type"];
11363
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;
11364
11303
  type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
@@ -11381,8 +11320,8 @@ interface ParseCiteLineResult {
11381
11320
  }
11382
11321
  /**
11383
11322
  * Normalize a raw cite tag (with optional tail) into the 2-state vocabulary.
11384
- * `applied` / `dismissed` / `none` pass through; the three legacy tags remap to
11385
- * `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).
11386
11325
  */
11387
11326
  declare function normalizeCiteTag(rawTag: string): CiteTag;
11388
11327
  /**
@@ -11420,6 +11359,7 @@ interface ResolvedRetrievalBudget {
11420
11359
  payloadHardBytes: number;
11421
11360
  /** Injection layer — SessionStart broad-menu body char budget. */
11422
11361
  injectionChars: number;
11362
+ bodyBudgetBytes: number;
11423
11363
  }
11424
11364
  declare const DEFAULT_RETRIEVAL_BUDGET_PROFILE: RetrievalBudgetProfile;
11425
11365
  /** The per-field overrides that, when present, take precedence over the profile. */
@@ -11429,6 +11369,7 @@ interface RetrievalBudgetOverrides {
11429
11369
  payloadWarnBytes?: number;
11430
11370
  payloadHardBytes?: number;
11431
11371
  injectionChars?: number;
11372
+ bodyBudgetBytes?: number;
11432
11373
  }
11433
11374
  /**
11434
11375
  * Resolve the layered retrieval budget: start from the named profile (default
@@ -11440,4 +11381,4 @@ declare function resolveRetrievalBudget(overrides?: RetrievalBudgetOverrides): R
11440
11381
  /** Exposed for tests / introspection — the raw profile table. */
11441
11382
  declare function retrievalBudgetProfile(profile: RetrievalBudgetProfile): ResolvedRetrievalBudget;
11442
11383
 
11443
- 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, 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 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 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, 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_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 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, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aggregatePendingAcrossStores, aiLedgerEntrySchema, allocateKnowledgeId, allocateStoreKnowledgeId, assistantTurnObservedEventSchema, bindRequiredStore, bindingsSnapshotPath, bootstrapMarkerMigratedEventSchema, buildDebugBundle, buildFailureTrace, buildScanRecommendations, buildStoreResolveInput, 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, 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, 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, loadGlobalConfig, loadProjectConfig, localKnowledgeIdSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, 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, readStoreProjects, reapplyCompletedEventSchema, recognizeStoreDir, reconcileStoreCounters, redactSecrets, relevanceMigrationRunEventSchema, requiredStoreEntrySchema, resolveCandidates, resolveGlobalRoot, resolveRetrievalBudget, resolveStoreQualifiedId, resolvedBindingsSnapshotSchema, retrievalBudgetProfile, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, saveGlobalConfig, saveProjectConfig, scanForSecrets, scopeCoordinateSchema, scopeRoot, scrubRemoteUrl, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, sessionEndedEventSchema, skillInvocationCompletedEventSchema, skillInvocationStartedEventSchema, skillPhaseTransitionEventSchema, skillTriggerCandidateEventSchema, storeAwareEntrySchema, storeCountersPath, storeCountersSchema, storeHasProject, storeIdentitySchema, storeKnowledgeTypeDir, storeProjectSchema, storeProjectsFileSchema, storeReadSetSchema, storeRelativePath, storeResolveInputSchema, storeResolverWarningCodeSchema, storeResolverWarningSchema, storeUuidSchema, tokenize, uidSchema, withDerivedAgentsMetaNodeDefaults, writeBindingsSnapshot, writeTargetSchema, writtenToStoreSchema };
11384
+ 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, 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, 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, type ResolvedRetrievalBudget, type RetrievalBudgetOverrides, type RetrievalBudgetProfile, 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, resolveRetrievalBudget, resolveStoreQualifiedId, resolveWorkspaceBindingId, resolvedBindingsSnapshotSchema, retrievalBudgetProfile, 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 };