@fenglimg/fabric-shared 2.2.0-rc.3 → 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-Dm4IJWwB.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-Dm4IJWwB.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,17 +1304,62 @@ declare const storeIdentitySchema: z.ZodObject<{
1402
1304
  }, "strict", z.ZodTypeAny, {
1403
1305
  store_uuid: string;
1404
1306
  created_at: string;
1405
- description?: string | undefined;
1406
1307
  canonical_alias?: string | undefined;
1308
+ description?: string | undefined;
1407
1309
  allowed_scopes?: string[] | undefined;
1408
1310
  }, {
1409
1311
  store_uuid: string;
1410
1312
  created_at: string;
1411
- description?: string | undefined;
1412
1313
  canonical_alias?: string | undefined;
1314
+ description?: string | undefined;
1413
1315
  allowed_scopes?: string[] | undefined;
1414
1316
  }>;
1415
1317
  type StoreIdentity = z.infer<typeof storeIdentitySchema>;
1318
+ declare const STORE_PROJECT_ID_PATTERN: RegExp;
1319
+ declare const STORE_MOUNT_NAME_PATTERN: RegExp;
1320
+ declare const storeMountNameSchema: z.ZodEffects<z.ZodString, string, string>;
1321
+ declare const storeProjectSchema: z.ZodObject<{
1322
+ id: z.ZodString;
1323
+ name: z.ZodOptional<z.ZodString>;
1324
+ created_at: z.ZodString;
1325
+ }, "strict", z.ZodTypeAny, {
1326
+ created_at: string;
1327
+ id: string;
1328
+ name?: string | undefined;
1329
+ }, {
1330
+ created_at: string;
1331
+ id: string;
1332
+ name?: string | undefined;
1333
+ }>;
1334
+ type StoreProject = z.infer<typeof storeProjectSchema>;
1335
+ declare const storeProjectsFileSchema: z.ZodObject<{
1336
+ projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
1337
+ id: z.ZodString;
1338
+ name: z.ZodOptional<z.ZodString>;
1339
+ created_at: z.ZodString;
1340
+ }, "strict", z.ZodTypeAny, {
1341
+ created_at: string;
1342
+ id: string;
1343
+ name?: string | undefined;
1344
+ }, {
1345
+ created_at: string;
1346
+ id: string;
1347
+ name?: string | undefined;
1348
+ }>, "many">>;
1349
+ }, "strict", z.ZodTypeAny, {
1350
+ projects: {
1351
+ created_at: string;
1352
+ id: string;
1353
+ name?: string | undefined;
1354
+ }[];
1355
+ }, {
1356
+ projects?: {
1357
+ created_at: string;
1358
+ id: string;
1359
+ name?: string | undefined;
1360
+ }[] | undefined;
1361
+ }>;
1362
+ type StoreProjectsFile = z.infer<typeof storeProjectsFileSchema>;
1416
1363
  declare const requiredStoreEntrySchema: z.ZodObject<{
1417
1364
  id: z.ZodString;
1418
1365
  suggested_remote: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"$personal">]>>;
@@ -1427,6 +1374,8 @@ type RequiredStoreEntry = z.infer<typeof requiredStoreEntrySchema>;
1427
1374
  declare const STORE_KNOWLEDGE_TYPE_DIRS: readonly ["models", "decisions", "guidelines", "pitfalls", "processes"];
1428
1375
  declare const STORE_LAYOUT: {
1429
1376
  readonly identityFile: "store.json";
1377
+ readonly projectsFile: "projects.json";
1378
+ readonly countersFile: "counters.json";
1430
1379
  readonly knowledgeDir: "knowledge";
1431
1380
  readonly bindingsDir: "bindings";
1432
1381
  readonly stateDir: "state";
@@ -1437,9 +1386,31 @@ declare const GLOBAL_STATE_DIR = "state";
1437
1386
  declare const GLOBAL_BINDINGS_DIR = "bindings";
1438
1387
  declare function storeKnowledgeTypeDir(type: (typeof STORE_KNOWLEDGE_TYPE_DIRS)[number]): string;
1439
1388
  declare function storeRelativePath(storeUuid: string): string;
1389
+ declare const STORE_MOUNT_GROUPS: readonly ["personal", "team"];
1390
+ type StoreMountGroup = (typeof STORE_MOUNT_GROUPS)[number];
1391
+ declare function storeMountGroup(store: {
1392
+ personal?: boolean;
1393
+ }): StoreMountGroup;
1394
+ declare function storeMountSubPath(store: {
1395
+ store_uuid: string;
1396
+ mount_name?: string;
1397
+ personal?: boolean;
1398
+ }): string;
1399
+ declare function storeRelativePathForMount(store: {
1400
+ store_uuid: string;
1401
+ mount_name?: string;
1402
+ personal?: boolean;
1403
+ }): string;
1404
+ declare function deriveMountLabel(input: {
1405
+ remote?: string;
1406
+ alias?: string;
1407
+ store_uuid: string;
1408
+ }): string;
1440
1409
  declare const mountedStoreSchema: z.ZodObject<{
1441
1410
  store_uuid: z.ZodString;
1411
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1442
1412
  alias: z.ZodString;
1413
+ display_name: z.ZodOptional<z.ZodString>;
1443
1414
  remote: z.ZodOptional<z.ZodString>;
1444
1415
  personal: z.ZodOptional<z.ZodBoolean>;
1445
1416
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1447,21 +1418,28 @@ declare const mountedStoreSchema: z.ZodObject<{
1447
1418
  store_uuid: string;
1448
1419
  alias: string;
1449
1420
  personal?: boolean | undefined;
1421
+ mount_name?: string | undefined;
1422
+ display_name?: string | undefined;
1450
1423
  remote?: string | undefined;
1451
1424
  writable?: boolean | undefined;
1452
1425
  }, {
1453
1426
  store_uuid: string;
1454
1427
  alias: string;
1455
1428
  personal?: boolean | undefined;
1429
+ mount_name?: string | undefined;
1430
+ display_name?: string | undefined;
1456
1431
  remote?: string | undefined;
1457
1432
  writable?: boolean | undefined;
1458
1433
  }>;
1459
1434
  type MountedStore = z.infer<typeof mountedStoreSchema>;
1460
1435
  declare const globalConfigSchema: z.ZodObject<{
1461
1436
  uid: z.ZodString;
1437
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1462
1438
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1463
1439
  store_uuid: z.ZodString;
1440
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1464
1441
  alias: z.ZodString;
1442
+ display_name: z.ZodOptional<z.ZodString>;
1465
1443
  remote: z.ZodOptional<z.ZodString>;
1466
1444
  personal: z.ZodOptional<z.ZodBoolean>;
1467
1445
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1469,20 +1447,27 @@ declare const globalConfigSchema: z.ZodObject<{
1469
1447
  store_uuid: string;
1470
1448
  alias: string;
1471
1449
  personal?: boolean | undefined;
1450
+ mount_name?: string | undefined;
1451
+ display_name?: string | undefined;
1472
1452
  remote?: string | undefined;
1473
1453
  writable?: boolean | undefined;
1474
1454
  }, {
1475
1455
  store_uuid: string;
1476
1456
  alias: string;
1477
1457
  personal?: boolean | undefined;
1458
+ mount_name?: string | undefined;
1459
+ display_name?: string | undefined;
1478
1460
  remote?: string | undefined;
1479
1461
  writable?: boolean | undefined;
1480
1462
  }>, "many">>>;
1481
1463
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1482
1464
  uid: z.ZodString;
1465
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1483
1466
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1484
1467
  store_uuid: z.ZodString;
1468
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1485
1469
  alias: z.ZodString;
1470
+ display_name: z.ZodOptional<z.ZodString>;
1486
1471
  remote: z.ZodOptional<z.ZodString>;
1487
1472
  personal: z.ZodOptional<z.ZodBoolean>;
1488
1473
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1490,20 +1475,27 @@ declare const globalConfigSchema: z.ZodObject<{
1490
1475
  store_uuid: string;
1491
1476
  alias: string;
1492
1477
  personal?: boolean | undefined;
1478
+ mount_name?: string | undefined;
1479
+ display_name?: string | undefined;
1493
1480
  remote?: string | undefined;
1494
1481
  writable?: boolean | undefined;
1495
1482
  }, {
1496
1483
  store_uuid: string;
1497
1484
  alias: string;
1498
1485
  personal?: boolean | undefined;
1486
+ mount_name?: string | undefined;
1487
+ display_name?: string | undefined;
1499
1488
  remote?: string | undefined;
1500
1489
  writable?: boolean | undefined;
1501
1490
  }>, "many">>>;
1502
1491
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1503
1492
  uid: z.ZodString;
1493
+ language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1504
1494
  stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1505
1495
  store_uuid: z.ZodString;
1496
+ mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1506
1497
  alias: z.ZodString;
1498
+ display_name: z.ZodOptional<z.ZodString>;
1507
1499
  remote: z.ZodOptional<z.ZodString>;
1508
1500
  personal: z.ZodOptional<z.ZodBoolean>;
1509
1501
  writable: z.ZodOptional<z.ZodBoolean>;
@@ -1511,12 +1503,16 @@ declare const globalConfigSchema: z.ZodObject<{
1511
1503
  store_uuid: string;
1512
1504
  alias: string;
1513
1505
  personal?: boolean | undefined;
1506
+ mount_name?: string | undefined;
1507
+ display_name?: string | undefined;
1514
1508
  remote?: string | undefined;
1515
1509
  writable?: boolean | undefined;
1516
1510
  }, {
1517
1511
  store_uuid: string;
1518
1512
  alias: string;
1519
1513
  personal?: boolean | undefined;
1514
+ mount_name?: string | undefined;
1515
+ display_name?: string | undefined;
1520
1516
  remote?: string | undefined;
1521
1517
  writable?: boolean | undefined;
1522
1518
  }>, "many">>>;
@@ -1629,8 +1625,8 @@ declare const storeCountersSchema: z.ZodDefault<z.ZodObject<{
1629
1625
  }>>;
1630
1626
  type StoreCounters = z.infer<typeof storeCountersSchema>;
1631
1627
 
1632
- declare const PARITY_CLIENTS: readonly ["claudeCode", "codexCLI", "cursor"];
1633
- declare const parityClientSchema: z.ZodEnum<["claudeCode", "codexCLI", "cursor"]>;
1628
+ declare const PARITY_CLIENTS: readonly ["claudeCode", "codexCLI"];
1629
+ declare const parityClientSchema: z.ZodEnum<["claudeCode", "codexCLI"]>;
1634
1630
  type ParityClient = z.infer<typeof parityClientSchema>;
1635
1631
  declare const PARITY_SURFACES: readonly ["skill", "hook", "mcp", "render"];
1636
1632
  declare const paritySurfaceSchema: z.ZodEnum<["skill", "hook", "mcp", "render"]>;
@@ -1680,25 +1676,7 @@ declare const parityCapabilitySchema: z.ZodObject<{
1680
1676
  mechanism?: string | undefined;
1681
1677
  notes?: string | undefined;
1682
1678
  }>;
1683
- cursor: z.ZodObject<{
1684
- supported: z.ZodBoolean;
1685
- mechanism: z.ZodOptional<z.ZodString>;
1686
- notes: z.ZodOptional<z.ZodString>;
1687
- }, "strict", z.ZodTypeAny, {
1688
- supported: boolean;
1689
- mechanism?: string | undefined;
1690
- notes?: string | undefined;
1691
- }, {
1692
- supported: boolean;
1693
- mechanism?: string | undefined;
1694
- notes?: string | undefined;
1695
- }>;
1696
1679
  }, "strict", z.ZodTypeAny, {
1697
- cursor: {
1698
- supported: boolean;
1699
- mechanism?: string | undefined;
1700
- notes?: string | undefined;
1701
- };
1702
1680
  codexCLI: {
1703
1681
  supported: boolean;
1704
1682
  mechanism?: string | undefined;
@@ -1710,11 +1688,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1710
1688
  notes?: string | undefined;
1711
1689
  };
1712
1690
  }, {
1713
- cursor: {
1714
- supported: boolean;
1715
- mechanism?: string | undefined;
1716
- notes?: string | undefined;
1717
- };
1718
1691
  codexCLI: {
1719
1692
  supported: boolean;
1720
1693
  mechanism?: string | undefined;
@@ -1731,11 +1704,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1731
1704
  id: string;
1732
1705
  surface: "skill" | "hook" | "mcp" | "render";
1733
1706
  clients: {
1734
- cursor: {
1735
- supported: boolean;
1736
- mechanism?: string | undefined;
1737
- notes?: string | undefined;
1738
- };
1739
1707
  codexCLI: {
1740
1708
  supported: boolean;
1741
1709
  mechanism?: string | undefined;
@@ -1752,11 +1720,6 @@ declare const parityCapabilitySchema: z.ZodObject<{
1752
1720
  id: string;
1753
1721
  surface: "skill" | "hook" | "mcp" | "render";
1754
1722
  clients: {
1755
- cursor: {
1756
- supported: boolean;
1757
- mechanism?: string | undefined;
1758
- notes?: string | undefined;
1759
- };
1760
1723
  codexCLI: {
1761
1724
  supported: boolean;
1762
1725
  mechanism?: string | undefined;
@@ -1804,25 +1767,7 @@ declare const parityMatrixSchema: z.ZodObject<{
1804
1767
  mechanism?: string | undefined;
1805
1768
  notes?: string | undefined;
1806
1769
  }>;
1807
- cursor: z.ZodObject<{
1808
- supported: z.ZodBoolean;
1809
- mechanism: z.ZodOptional<z.ZodString>;
1810
- notes: z.ZodOptional<z.ZodString>;
1811
- }, "strict", z.ZodTypeAny, {
1812
- supported: boolean;
1813
- mechanism?: string | undefined;
1814
- notes?: string | undefined;
1815
- }, {
1816
- supported: boolean;
1817
- mechanism?: string | undefined;
1818
- notes?: string | undefined;
1819
- }>;
1820
1770
  }, "strict", z.ZodTypeAny, {
1821
- cursor: {
1822
- supported: boolean;
1823
- mechanism?: string | undefined;
1824
- notes?: string | undefined;
1825
- };
1826
1771
  codexCLI: {
1827
1772
  supported: boolean;
1828
1773
  mechanism?: string | undefined;
@@ -1834,11 +1779,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1834
1779
  notes?: string | undefined;
1835
1780
  };
1836
1781
  }, {
1837
- cursor: {
1838
- supported: boolean;
1839
- mechanism?: string | undefined;
1840
- notes?: string | undefined;
1841
- };
1842
1782
  codexCLI: {
1843
1783
  supported: boolean;
1844
1784
  mechanism?: string | undefined;
@@ -1855,11 +1795,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1855
1795
  id: string;
1856
1796
  surface: "skill" | "hook" | "mcp" | "render";
1857
1797
  clients: {
1858
- cursor: {
1859
- supported: boolean;
1860
- mechanism?: string | undefined;
1861
- notes?: string | undefined;
1862
- };
1863
1798
  codexCLI: {
1864
1799
  supported: boolean;
1865
1800
  mechanism?: string | undefined;
@@ -1876,11 +1811,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1876
1811
  id: string;
1877
1812
  surface: "skill" | "hook" | "mcp" | "render";
1878
1813
  clients: {
1879
- cursor: {
1880
- supported: boolean;
1881
- mechanism?: string | undefined;
1882
- notes?: string | undefined;
1883
- };
1884
1814
  codexCLI: {
1885
1815
  supported: boolean;
1886
1816
  mechanism?: string | undefined;
@@ -1901,11 +1831,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1901
1831
  id: string;
1902
1832
  surface: "skill" | "hook" | "mcp" | "render";
1903
1833
  clients: {
1904
- cursor: {
1905
- supported: boolean;
1906
- mechanism?: string | undefined;
1907
- notes?: string | undefined;
1908
- };
1909
1834
  codexCLI: {
1910
1835
  supported: boolean;
1911
1836
  mechanism?: string | undefined;
@@ -1926,11 +1851,6 @@ declare const parityMatrixSchema: z.ZodObject<{
1926
1851
  id: string;
1927
1852
  surface: "skill" | "hook" | "mcp" | "render";
1928
1853
  clients: {
1929
- cursor: {
1930
- supported: boolean;
1931
- mechanism?: string | undefined;
1932
- notes?: string | undefined;
1933
- };
1934
1854
  codexCLI: {
1935
1855
  supported: boolean;
1936
1856
  mechanism?: string | undefined;
@@ -1986,19 +1906,19 @@ type ProjectRootResolution = z.infer<typeof projectRootResolutionSchema>;
1986
1906
  interface ProjectRootResolver {
1987
1907
  resolve(signals: ProjectRootSignals): ProjectRootResolution | null;
1988
1908
  }
1989
- declare const STORE_RESOLVER_WARNING_CODES: readonly ["missing_store", "local_only_no_remote", "alias_unresolved"];
1990
- declare const storeResolverWarningCodeSchema: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
1909
+ declare const STORE_RESOLVER_WARNING_CODES: readonly ["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"];
1910
+ declare const storeResolverWarningCodeSchema: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
1991
1911
  type StoreResolverWarningCode = z.infer<typeof storeResolverWarningCodeSchema>;
1992
1912
  declare const storeResolverWarningSchema: z.ZodObject<{
1993
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
1913
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
1994
1914
  ref: z.ZodString;
1995
1915
  message: z.ZodString;
1996
1916
  }, "strict", z.ZodTypeAny, {
1997
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1917
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
1998
1918
  message: string;
1999
1919
  ref: string;
2000
1920
  }, {
2001
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1921
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2002
1922
  message: string;
2003
1923
  ref: string;
2004
1924
  }>;
@@ -2038,15 +1958,15 @@ declare const storeReadSetSchema: z.ZodObject<{
2038
1958
  remote?: string | undefined;
2039
1959
  }>, "many">;
2040
1960
  warnings: z.ZodArray<z.ZodObject<{
2041
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
1961
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2042
1962
  ref: z.ZodString;
2043
1963
  message: z.ZodString;
2044
1964
  }, "strict", z.ZodTypeAny, {
2045
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1965
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2046
1966
  message: string;
2047
1967
  ref: string;
2048
1968
  }, {
2049
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1969
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2050
1970
  message: string;
2051
1971
  ref: string;
2052
1972
  }>, "many">;
@@ -2058,7 +1978,7 @@ declare const storeReadSetSchema: z.ZodObject<{
2058
1978
  remote?: string | undefined;
2059
1979
  }[];
2060
1980
  warnings: {
2061
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1981
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2062
1982
  message: string;
2063
1983
  ref: string;
2064
1984
  }[];
@@ -2070,7 +1990,7 @@ declare const storeReadSetSchema: z.ZodObject<{
2070
1990
  remote?: string | undefined;
2071
1991
  }[];
2072
1992
  warnings: {
2073
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
1993
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2074
1994
  message: string;
2075
1995
  ref: string;
2076
1996
  }[];
@@ -2092,6 +2012,7 @@ declare const storeResolveInputSchema: z.ZodObject<{
2092
2012
  mountedStores: z.ZodArray<z.ZodObject<{
2093
2013
  store_uuid: z.ZodString;
2094
2014
  alias: z.ZodString;
2015
+ mount_name: z.ZodOptional<z.ZodString>;
2095
2016
  remote: z.ZodOptional<z.ZodString>;
2096
2017
  writable: z.ZodDefault<z.ZodBoolean>;
2097
2018
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2100,11 +2021,13 @@ declare const storeResolveInputSchema: z.ZodObject<{
2100
2021
  store_uuid: string;
2101
2022
  alias: string;
2102
2023
  writable: boolean;
2024
+ mount_name?: string | undefined;
2103
2025
  remote?: string | undefined;
2104
2026
  }, {
2105
2027
  store_uuid: string;
2106
2028
  alias: string;
2107
2029
  personal?: boolean | undefined;
2030
+ mount_name?: string | undefined;
2108
2031
  remote?: string | undefined;
2109
2032
  writable?: boolean | undefined;
2110
2033
  }>, "many">;
@@ -2119,6 +2042,17 @@ declare const storeResolveInputSchema: z.ZodObject<{
2119
2042
  suggested_remote?: string | undefined;
2120
2043
  }>, "many">;
2121
2044
  activeWriteAlias: z.ZodOptional<z.ZodString>;
2045
+ writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2046
+ scope: z.ZodString;
2047
+ store: z.ZodString;
2048
+ }, "strict", z.ZodTypeAny, {
2049
+ scope: string;
2050
+ store: string;
2051
+ }, {
2052
+ scope: string;
2053
+ store: string;
2054
+ }>, "many">>>;
2055
+ defaultWriteAlias: z.ZodOptional<z.ZodString>;
2122
2056
  }, "strict", z.ZodTypeAny, {
2123
2057
  uid: string;
2124
2058
  mountedStores: {
@@ -2126,19 +2060,26 @@ declare const storeResolveInputSchema: z.ZodObject<{
2126
2060
  store_uuid: string;
2127
2061
  alias: string;
2128
2062
  writable: boolean;
2063
+ mount_name?: string | undefined;
2129
2064
  remote?: string | undefined;
2130
2065
  }[];
2131
2066
  requiredStores: {
2132
2067
  id: string;
2133
2068
  suggested_remote?: string | undefined;
2134
2069
  }[];
2070
+ writeRoutes: {
2071
+ scope: string;
2072
+ store: string;
2073
+ }[];
2135
2074
  activeWriteAlias?: string | undefined;
2075
+ defaultWriteAlias?: string | undefined;
2136
2076
  }, {
2137
2077
  uid: string;
2138
2078
  mountedStores: {
2139
2079
  store_uuid: string;
2140
2080
  alias: string;
2141
2081
  personal?: boolean | undefined;
2082
+ mount_name?: string | undefined;
2142
2083
  remote?: string | undefined;
2143
2084
  writable?: boolean | undefined;
2144
2085
  }[];
@@ -2147,6 +2088,11 @@ declare const storeResolveInputSchema: z.ZodObject<{
2147
2088
  suggested_remote?: string | undefined;
2148
2089
  }[];
2149
2090
  activeWriteAlias?: string | undefined;
2091
+ writeRoutes?: {
2092
+ scope: string;
2093
+ store: string;
2094
+ }[] | undefined;
2095
+ defaultWriteAlias?: string | undefined;
2150
2096
  }>;
2151
2097
  type StoreResolveInput = z.infer<typeof storeResolveInputSchema>;
2152
2098
  interface StoreResolver {
@@ -2337,6 +2283,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2337
2283
  mountedStores: z.ZodArray<z.ZodObject<{
2338
2284
  store_uuid: z.ZodString;
2339
2285
  alias: z.ZodString;
2286
+ mount_name: z.ZodOptional<z.ZodString>;
2340
2287
  remote: z.ZodOptional<z.ZodString>;
2341
2288
  writable: z.ZodDefault<z.ZodBoolean>;
2342
2289
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2345,11 +2292,13 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2345
2292
  store_uuid: string;
2346
2293
  alias: string;
2347
2294
  writable: boolean;
2295
+ mount_name?: string | undefined;
2348
2296
  remote?: string | undefined;
2349
2297
  }, {
2350
2298
  store_uuid: string;
2351
2299
  alias: string;
2352
2300
  personal?: boolean | undefined;
2301
+ mount_name?: string | undefined;
2353
2302
  remote?: string | undefined;
2354
2303
  writable?: boolean | undefined;
2355
2304
  }>, "many">;
@@ -2364,6 +2313,17 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2364
2313
  suggested_remote?: string | undefined;
2365
2314
  }>, "many">;
2366
2315
  activeWriteAlias: z.ZodOptional<z.ZodString>;
2316
+ writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2317
+ scope: z.ZodString;
2318
+ store: z.ZodString;
2319
+ }, "strict", z.ZodTypeAny, {
2320
+ scope: string;
2321
+ store: string;
2322
+ }, {
2323
+ scope: string;
2324
+ store: string;
2325
+ }>, "many">>>;
2326
+ defaultWriteAlias: z.ZodOptional<z.ZodString>;
2367
2327
  }, "strict", z.ZodTypeAny, {
2368
2328
  uid: string;
2369
2329
  mountedStores: {
@@ -2371,19 +2331,26 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2371
2331
  store_uuid: string;
2372
2332
  alias: string;
2373
2333
  writable: boolean;
2334
+ mount_name?: string | undefined;
2374
2335
  remote?: string | undefined;
2375
2336
  }[];
2376
2337
  requiredStores: {
2377
2338
  id: string;
2378
2339
  suggested_remote?: string | undefined;
2379
2340
  }[];
2341
+ writeRoutes: {
2342
+ scope: string;
2343
+ store: string;
2344
+ }[];
2380
2345
  activeWriteAlias?: string | undefined;
2346
+ defaultWriteAlias?: string | undefined;
2381
2347
  }, {
2382
2348
  uid: string;
2383
2349
  mountedStores: {
2384
2350
  store_uuid: string;
2385
2351
  alias: string;
2386
2352
  personal?: boolean | undefined;
2353
+ mount_name?: string | undefined;
2387
2354
  remote?: string | undefined;
2388
2355
  writable?: boolean | undefined;
2389
2356
  }[];
@@ -2392,6 +2359,11 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2392
2359
  suggested_remote?: string | undefined;
2393
2360
  }[];
2394
2361
  activeWriteAlias?: string | undefined;
2362
+ writeRoutes?: {
2363
+ scope: string;
2364
+ store: string;
2365
+ }[] | undefined;
2366
+ defaultWriteAlias?: string | undefined;
2395
2367
  }>;
2396
2368
  writeScope: z.ZodString;
2397
2369
  expected: z.ZodObject<{
@@ -2413,15 +2385,15 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2413
2385
  remote?: string | undefined;
2414
2386
  }>, "many">;
2415
2387
  warnings: z.ZodArray<z.ZodObject<{
2416
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
2388
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2417
2389
  ref: z.ZodString;
2418
2390
  message: z.ZodString;
2419
2391
  }, "strict", z.ZodTypeAny, {
2420
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2392
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2421
2393
  message: string;
2422
2394
  ref: string;
2423
2395
  }, {
2424
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2396
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2425
2397
  message: string;
2426
2398
  ref: string;
2427
2399
  }>, "many">;
@@ -2433,7 +2405,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2433
2405
  remote?: string | undefined;
2434
2406
  }[];
2435
2407
  warnings: {
2436
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2408
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2437
2409
  message: string;
2438
2410
  ref: string;
2439
2411
  }[];
@@ -2445,7 +2417,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2445
2417
  remote?: string | undefined;
2446
2418
  }[];
2447
2419
  warnings: {
2448
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2420
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2449
2421
  message: string;
2450
2422
  ref: string;
2451
2423
  }[];
@@ -2461,15 +2433,15 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2461
2433
  alias: string;
2462
2434
  }>>;
2463
2435
  writeWarnings: z.ZodArray<z.ZodObject<{
2464
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
2436
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2465
2437
  ref: z.ZodString;
2466
2438
  message: z.ZodString;
2467
2439
  }, "strict", z.ZodTypeAny, {
2468
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2440
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2469
2441
  message: string;
2470
2442
  ref: string;
2471
2443
  }, {
2472
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2444
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2473
2445
  message: string;
2474
2446
  ref: string;
2475
2447
  }>, "many">;
@@ -2482,7 +2454,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2482
2454
  remote?: string | undefined;
2483
2455
  }[];
2484
2456
  warnings: {
2485
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2457
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2486
2458
  message: string;
2487
2459
  ref: string;
2488
2460
  }[];
@@ -2492,7 +2464,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2492
2464
  alias: string;
2493
2465
  } | null;
2494
2466
  writeWarnings: {
2495
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2467
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2496
2468
  message: string;
2497
2469
  ref: string;
2498
2470
  }[];
@@ -2505,7 +2477,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2505
2477
  remote?: string | undefined;
2506
2478
  }[];
2507
2479
  warnings: {
2508
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2480
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2509
2481
  message: string;
2510
2482
  ref: string;
2511
2483
  }[];
@@ -2515,7 +2487,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2515
2487
  alias: string;
2516
2488
  } | null;
2517
2489
  writeWarnings: {
2518
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2490
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2519
2491
  message: string;
2520
2492
  ref: string;
2521
2493
  }[];
@@ -2530,7 +2502,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2530
2502
  remote?: string | undefined;
2531
2503
  }[];
2532
2504
  warnings: {
2533
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2505
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2534
2506
  message: string;
2535
2507
  ref: string;
2536
2508
  }[];
@@ -2540,7 +2512,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2540
2512
  alias: string;
2541
2513
  } | null;
2542
2514
  writeWarnings: {
2543
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2515
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2544
2516
  message: string;
2545
2517
  ref: string;
2546
2518
  }[];
@@ -2553,13 +2525,19 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2553
2525
  store_uuid: string;
2554
2526
  alias: string;
2555
2527
  writable: boolean;
2528
+ mount_name?: string | undefined;
2556
2529
  remote?: string | undefined;
2557
2530
  }[];
2558
2531
  requiredStores: {
2559
2532
  id: string;
2560
2533
  suggested_remote?: string | undefined;
2561
2534
  }[];
2535
+ writeRoutes: {
2536
+ scope: string;
2537
+ store: string;
2538
+ }[];
2562
2539
  activeWriteAlias?: string | undefined;
2540
+ defaultWriteAlias?: string | undefined;
2563
2541
  };
2564
2542
  writeScope: string;
2565
2543
  note?: string | undefined;
@@ -2573,7 +2551,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2573
2551
  remote?: string | undefined;
2574
2552
  }[];
2575
2553
  warnings: {
2576
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2554
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2577
2555
  message: string;
2578
2556
  ref: string;
2579
2557
  }[];
@@ -2583,7 +2561,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2583
2561
  alias: string;
2584
2562
  } | null;
2585
2563
  writeWarnings: {
2586
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2564
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2587
2565
  message: string;
2588
2566
  ref: string;
2589
2567
  }[];
@@ -2595,6 +2573,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2595
2573
  store_uuid: string;
2596
2574
  alias: string;
2597
2575
  personal?: boolean | undefined;
2576
+ mount_name?: string | undefined;
2598
2577
  remote?: string | undefined;
2599
2578
  writable?: boolean | undefined;
2600
2579
  }[];
@@ -2603,6 +2582,11 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2603
2582
  suggested_remote?: string | undefined;
2604
2583
  }[];
2605
2584
  activeWriteAlias?: string | undefined;
2585
+ writeRoutes?: {
2586
+ scope: string;
2587
+ store: string;
2588
+ }[] | undefined;
2589
+ defaultWriteAlias?: string | undefined;
2606
2590
  };
2607
2591
  writeScope: string;
2608
2592
  note?: string | undefined;
@@ -2618,6 +2602,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2618
2602
  mountedStores: z.ZodArray<z.ZodObject<{
2619
2603
  store_uuid: z.ZodString;
2620
2604
  alias: z.ZodString;
2605
+ mount_name: z.ZodOptional<z.ZodString>;
2621
2606
  remote: z.ZodOptional<z.ZodString>;
2622
2607
  writable: z.ZodDefault<z.ZodBoolean>;
2623
2608
  personal: z.ZodDefault<z.ZodBoolean>;
@@ -2626,11 +2611,13 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2626
2611
  store_uuid: string;
2627
2612
  alias: string;
2628
2613
  writable: boolean;
2614
+ mount_name?: string | undefined;
2629
2615
  remote?: string | undefined;
2630
2616
  }, {
2631
2617
  store_uuid: string;
2632
2618
  alias: string;
2633
2619
  personal?: boolean | undefined;
2620
+ mount_name?: string | undefined;
2634
2621
  remote?: string | undefined;
2635
2622
  writable?: boolean | undefined;
2636
2623
  }>, "many">;
@@ -2645,6 +2632,17 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2645
2632
  suggested_remote?: string | undefined;
2646
2633
  }>, "many">;
2647
2634
  activeWriteAlias: z.ZodOptional<z.ZodString>;
2635
+ writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2636
+ scope: z.ZodString;
2637
+ store: z.ZodString;
2638
+ }, "strict", z.ZodTypeAny, {
2639
+ scope: string;
2640
+ store: string;
2641
+ }, {
2642
+ scope: string;
2643
+ store: string;
2644
+ }>, "many">>>;
2645
+ defaultWriteAlias: z.ZodOptional<z.ZodString>;
2648
2646
  }, "strict", z.ZodTypeAny, {
2649
2647
  uid: string;
2650
2648
  mountedStores: {
@@ -2652,19 +2650,26 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2652
2650
  store_uuid: string;
2653
2651
  alias: string;
2654
2652
  writable: boolean;
2653
+ mount_name?: string | undefined;
2655
2654
  remote?: string | undefined;
2656
2655
  }[];
2657
2656
  requiredStores: {
2658
2657
  id: string;
2659
2658
  suggested_remote?: string | undefined;
2660
2659
  }[];
2660
+ writeRoutes: {
2661
+ scope: string;
2662
+ store: string;
2663
+ }[];
2661
2664
  activeWriteAlias?: string | undefined;
2665
+ defaultWriteAlias?: string | undefined;
2662
2666
  }, {
2663
2667
  uid: string;
2664
2668
  mountedStores: {
2665
2669
  store_uuid: string;
2666
2670
  alias: string;
2667
2671
  personal?: boolean | undefined;
2672
+ mount_name?: string | undefined;
2668
2673
  remote?: string | undefined;
2669
2674
  writable?: boolean | undefined;
2670
2675
  }[];
@@ -2673,6 +2678,11 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2673
2678
  suggested_remote?: string | undefined;
2674
2679
  }[];
2675
2680
  activeWriteAlias?: string | undefined;
2681
+ writeRoutes?: {
2682
+ scope: string;
2683
+ store: string;
2684
+ }[] | undefined;
2685
+ defaultWriteAlias?: string | undefined;
2676
2686
  }>;
2677
2687
  writeScope: z.ZodString;
2678
2688
  expected: z.ZodObject<{
@@ -2694,15 +2704,15 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2694
2704
  remote?: string | undefined;
2695
2705
  }>, "many">;
2696
2706
  warnings: z.ZodArray<z.ZodObject<{
2697
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
2707
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2698
2708
  ref: z.ZodString;
2699
2709
  message: z.ZodString;
2700
2710
  }, "strict", z.ZodTypeAny, {
2701
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2711
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2702
2712
  message: string;
2703
2713
  ref: string;
2704
2714
  }, {
2705
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2715
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2706
2716
  message: string;
2707
2717
  ref: string;
2708
2718
  }>, "many">;
@@ -2714,7 +2724,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2714
2724
  remote?: string | undefined;
2715
2725
  }[];
2716
2726
  warnings: {
2717
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2727
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2718
2728
  message: string;
2719
2729
  ref: string;
2720
2730
  }[];
@@ -2726,7 +2736,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2726
2736
  remote?: string | undefined;
2727
2737
  }[];
2728
2738
  warnings: {
2729
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2739
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2730
2740
  message: string;
2731
2741
  ref: string;
2732
2742
  }[];
@@ -2742,15 +2752,15 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2742
2752
  alias: string;
2743
2753
  }>>;
2744
2754
  writeWarnings: z.ZodArray<z.ZodObject<{
2745
- code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved"]>;
2755
+ code: z.ZodEnum<["missing_store", "local_only_no_remote", "alias_unresolved", "missing_write_route"]>;
2746
2756
  ref: z.ZodString;
2747
2757
  message: z.ZodString;
2748
2758
  }, "strict", z.ZodTypeAny, {
2749
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2759
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2750
2760
  message: string;
2751
2761
  ref: string;
2752
2762
  }, {
2753
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2763
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2754
2764
  message: string;
2755
2765
  ref: string;
2756
2766
  }>, "many">;
@@ -2763,7 +2773,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2763
2773
  remote?: string | undefined;
2764
2774
  }[];
2765
2775
  warnings: {
2766
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2776
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2767
2777
  message: string;
2768
2778
  ref: string;
2769
2779
  }[];
@@ -2773,7 +2783,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2773
2783
  alias: string;
2774
2784
  } | null;
2775
2785
  writeWarnings: {
2776
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2786
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2777
2787
  message: string;
2778
2788
  ref: string;
2779
2789
  }[];
@@ -2786,7 +2796,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2786
2796
  remote?: string | undefined;
2787
2797
  }[];
2788
2798
  warnings: {
2789
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2799
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2790
2800
  message: string;
2791
2801
  ref: string;
2792
2802
  }[];
@@ -2796,7 +2806,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2796
2806
  alias: string;
2797
2807
  } | null;
2798
2808
  writeWarnings: {
2799
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2809
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2800
2810
  message: string;
2801
2811
  ref: string;
2802
2812
  }[];
@@ -2811,7 +2821,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2811
2821
  remote?: string | undefined;
2812
2822
  }[];
2813
2823
  warnings: {
2814
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2824
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2815
2825
  message: string;
2816
2826
  ref: string;
2817
2827
  }[];
@@ -2821,7 +2831,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2821
2831
  alias: string;
2822
2832
  } | null;
2823
2833
  writeWarnings: {
2824
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2834
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2825
2835
  message: string;
2826
2836
  ref: string;
2827
2837
  }[];
@@ -2834,13 +2844,19 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2834
2844
  store_uuid: string;
2835
2845
  alias: string;
2836
2846
  writable: boolean;
2847
+ mount_name?: string | undefined;
2837
2848
  remote?: string | undefined;
2838
2849
  }[];
2839
2850
  requiredStores: {
2840
2851
  id: string;
2841
2852
  suggested_remote?: string | undefined;
2842
2853
  }[];
2854
+ writeRoutes: {
2855
+ scope: string;
2856
+ store: string;
2857
+ }[];
2843
2858
  activeWriteAlias?: string | undefined;
2859
+ defaultWriteAlias?: string | undefined;
2844
2860
  };
2845
2861
  writeScope: string;
2846
2862
  note?: string | undefined;
@@ -2854,7 +2870,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2854
2870
  remote?: string | undefined;
2855
2871
  }[];
2856
2872
  warnings: {
2857
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2873
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2858
2874
  message: string;
2859
2875
  ref: string;
2860
2876
  }[];
@@ -2864,7 +2880,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2864
2880
  alias: string;
2865
2881
  } | null;
2866
2882
  writeWarnings: {
2867
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2883
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2868
2884
  message: string;
2869
2885
  ref: string;
2870
2886
  }[];
@@ -2876,6 +2892,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2876
2892
  store_uuid: string;
2877
2893
  alias: string;
2878
2894
  personal?: boolean | undefined;
2895
+ mount_name?: string | undefined;
2879
2896
  remote?: string | undefined;
2880
2897
  writable?: boolean | undefined;
2881
2898
  }[];
@@ -2884,6 +2901,11 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2884
2901
  suggested_remote?: string | undefined;
2885
2902
  }[];
2886
2903
  activeWriteAlias?: string | undefined;
2904
+ writeRoutes?: {
2905
+ scope: string;
2906
+ store: string;
2907
+ }[] | undefined;
2908
+ defaultWriteAlias?: string | undefined;
2887
2909
  };
2888
2910
  writeScope: string;
2889
2911
  note?: string | undefined;
@@ -2900,7 +2922,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2900
2922
  remote?: string | undefined;
2901
2923
  }[];
2902
2924
  warnings: {
2903
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2925
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2904
2926
  message: string;
2905
2927
  ref: string;
2906
2928
  }[];
@@ -2910,7 +2932,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2910
2932
  alias: string;
2911
2933
  } | null;
2912
2934
  writeWarnings: {
2913
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2935
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2914
2936
  message: string;
2915
2937
  ref: string;
2916
2938
  }[];
@@ -2923,13 +2945,19 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2923
2945
  store_uuid: string;
2924
2946
  alias: string;
2925
2947
  writable: boolean;
2948
+ mount_name?: string | undefined;
2926
2949
  remote?: string | undefined;
2927
2950
  }[];
2928
2951
  requiredStores: {
2929
2952
  id: string;
2930
2953
  suggested_remote?: string | undefined;
2931
2954
  }[];
2955
+ writeRoutes: {
2956
+ scope: string;
2957
+ store: string;
2958
+ }[];
2932
2959
  activeWriteAlias?: string | undefined;
2960
+ defaultWriteAlias?: string | undefined;
2933
2961
  };
2934
2962
  writeScope: string;
2935
2963
  note?: string | undefined;
@@ -2946,7 +2974,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2946
2974
  remote?: string | undefined;
2947
2975
  }[];
2948
2976
  warnings: {
2949
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2977
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2950
2978
  message: string;
2951
2979
  ref: string;
2952
2980
  }[];
@@ -2956,7 +2984,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2956
2984
  alias: string;
2957
2985
  } | null;
2958
2986
  writeWarnings: {
2959
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
2987
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
2960
2988
  message: string;
2961
2989
  ref: string;
2962
2990
  }[];
@@ -2968,6 +2996,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2968
2996
  store_uuid: string;
2969
2997
  alias: string;
2970
2998
  personal?: boolean | undefined;
2999
+ mount_name?: string | undefined;
2971
3000
  remote?: string | undefined;
2972
3001
  writable?: boolean | undefined;
2973
3002
  }[];
@@ -2976,20 +3005,23 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2976
3005
  suggested_remote?: string | undefined;
2977
3006
  }[];
2978
3007
  activeWriteAlias?: string | undefined;
3008
+ writeRoutes?: {
3009
+ scope: string;
3010
+ store: string;
3011
+ }[] | undefined;
3012
+ defaultWriteAlias?: string | undefined;
2979
3013
  };
2980
3014
  writeScope: string;
2981
3015
  note?: string | undefined;
2982
3016
  }[];
2983
3017
  }>;
2984
3018
 
2985
- declare class ResolverNotImplementedError extends Error {
2986
- constructor(what: string);
2987
- }
2988
3019
  declare function createProjectRootResolver(): ProjectRootResolver;
2989
3020
 
2990
3021
  declare function createStoreResolver(): StoreResolver;
2991
3022
 
2992
3023
  declare function readStoreIdentity(absDir: string): StoreIdentity | null;
3024
+ declare function readStoreIdentityAsync(absDir: string): Promise<StoreIdentity | null>;
2993
3025
  declare function recognizeStoreDir(absDir: string): boolean;
2994
3026
  type FindStoreExecutableViolationsOptions = {
2995
3027
  maxDepth?: number;
@@ -3040,7 +3072,7 @@ declare const STORE_GITIGNORE: string;
3040
3072
  interface InitStoreOptions {
3041
3073
  git?: boolean;
3042
3074
  }
3043
- declare function initStore(absDir: string, identity: StoreIdentity, options?: InitStoreOptions): StoreIdentity;
3075
+ declare function initStore(absDir: string, identity: StoreIdentity, options?: InitStoreOptions): Promise<StoreIdentity>;
3044
3076
  interface StoreKnowledgeRef {
3045
3077
  store_uuid: string;
3046
3078
  alias: string;
@@ -3052,9 +3084,43 @@ interface MountedStoreDir {
3052
3084
  alias: string;
3053
3085
  dir: string;
3054
3086
  }
3055
- declare function listStoreKnowledge(store: MountedStoreDir): StoreKnowledgeRef[];
3056
- declare function readKnowledgeAcrossStores(stores: MountedStoreDir[]): StoreKnowledgeRef[];
3057
- declare function aggregatePendingAcrossStores(stores: MountedStoreDir[]): StoreKnowledgeRef[];
3087
+ declare function listStoreKnowledge(store: MountedStoreDir): Promise<StoreKnowledgeRef[]>;
3088
+ declare function readKnowledgeAcrossStores(stores: MountedStoreDir[]): Promise<StoreKnowledgeRef[]>;
3089
+ declare function readStoreProjects(storeDir: string): Promise<StoreProject[]>;
3090
+ declare function storeHasProject(storeDir: string, id: string): Promise<boolean>;
3091
+ declare function addStoreProject(storeDir: string, project: StoreProject): Promise<StoreProject[]>;
3092
+ declare function aggregatePendingAcrossStores(stores: MountedStoreDir[]): Promise<StoreKnowledgeRef[]>;
3093
+
3094
+ declare function storeCountersPath(storeDir: string): string;
3095
+ declare function readStoreCounters(storeDir: string): AgentsMetaCounters;
3096
+ /**
3097
+ * Allocate the next stable_id for `(layer, type)` in the given store and persist
3098
+ * the advanced counter to `<storeDir>/counters.json`.
3099
+ *
3100
+ * The read → mutate → atomic-write is guarded by a cross-process advisory lock
3101
+ * keyed on the counters path so two concurrent allocate calls (two windows
3102
+ * approving knowledge into the same store at once) can never read the same
3103
+ * counter and mint a duplicate id (the same invariant the retired
3104
+ * KnowledgeIdAllocator held over agents.meta).
3105
+ */
3106
+ declare function allocateStoreKnowledgeId(layer: Layer, type: KnowledgeType, storeDir: string): Promise<StableId>;
3107
+ /**
3108
+ * Floor a store's `counters.json` at the highest stable_id actually present on
3109
+ * disk, persisting and returning the reconciled envelope.
3110
+ *
3111
+ * This is the producer↔consumer bridge (W4 F1): a BULK import
3112
+ * writes entries whose ids were minted elsewhere (collision-remapped from
3113
+ * disk-max) WITHOUT advancing this store's counters.json. Without reconciliation
3114
+ * the next `allocateStoreKnowledgeId` would start from a stale zero and re-mint
3115
+ * an already-present id. Flooring is also the self-heal `doctor` runs to repair a
3116
+ * drifted ledger.
3117
+ *
3118
+ * Floor — never lower — preserves the monotonic invariant (KT-DEC-0004): a slot
3119
+ * already advanced past disk-max (because the highest entry was deleted) keeps
3120
+ * its higher value. Sync write (no lock) because the only callers run in
3121
+ * exclusive one-shot contexts (post-migrate CLI step, `doctor --fix`).
3122
+ */
3123
+ declare function reconcileStoreCounters(storeDir: string): AgentsMetaCounters;
3058
3124
 
3059
3125
  declare function resolveGlobalRoot(): string;
3060
3126
  declare function globalConfigPath(globalRoot?: string): string;
@@ -3075,6 +3141,7 @@ declare function scanForSecrets(content: string): SecretFinding[];
3075
3141
  declare function hasSecrets(content: string): boolean;
3076
3142
  declare const REDACTION_PLACEHOLDER_PREFIX = "[REDACTED:";
3077
3143
  declare function redactSecrets(content: string): string;
3144
+ declare function redactPii(content: string): string;
3078
3145
  declare function scrubRemoteUrl(remote: string): string;
3079
3146
 
3080
3147
  type ScanRecommendationInput = {
@@ -3213,6 +3280,7 @@ declare const MCP_STORE_AWARE_CONTRACTS: Record<McpStoreAwareTool, McpStoreAware
3213
3280
  declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3214
3281
  version: z.ZodLiteral<1>;
3215
3282
  project_id: z.ZodString;
3283
+ workspace_binding_id: z.ZodString;
3216
3284
  generated_at: z.ZodString;
3217
3285
  read_set: z.ZodObject<{
3218
3286
  stores: z.ZodArray<z.ZodObject<{
@@ -3232,15 +3300,15 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3232
3300
  remote?: string | undefined;
3233
3301
  }>, "many">;
3234
3302
  warnings: z.ZodArray<z.ZodObject<{
3235
- 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"]>;
3236
3304
  ref: z.ZodString;
3237
3305
  message: z.ZodString;
3238
3306
  }, "strict", z.ZodTypeAny, {
3239
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3307
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3240
3308
  message: string;
3241
3309
  ref: string;
3242
3310
  }, {
3243
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3311
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3244
3312
  message: string;
3245
3313
  ref: string;
3246
3314
  }>, "many">;
@@ -3252,7 +3320,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3252
3320
  remote?: string | undefined;
3253
3321
  }[];
3254
3322
  warnings: {
3255
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3323
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3256
3324
  message: string;
3257
3325
  ref: string;
3258
3326
  }[];
@@ -3264,7 +3332,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3264
3332
  remote?: string | undefined;
3265
3333
  }[];
3266
3334
  warnings: {
3267
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3335
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3268
3336
  message: string;
3269
3337
  ref: string;
3270
3338
  }[];
@@ -3279,8 +3347,23 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3279
3347
  store_uuid: string;
3280
3348
  alias: string;
3281
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">>;
3282
3364
  }, "strict", z.ZodTypeAny, {
3283
3365
  project_id: string;
3366
+ workspace_binding_id: string;
3284
3367
  version: 1;
3285
3368
  generated_at: string;
3286
3369
  read_set: {
@@ -3291,7 +3374,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3291
3374
  remote?: string | undefined;
3292
3375
  }[];
3293
3376
  warnings: {
3294
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3377
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3295
3378
  message: string;
3296
3379
  ref: string;
3297
3380
  }[];
@@ -3300,8 +3383,15 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3300
3383
  store_uuid: string;
3301
3384
  alias: string;
3302
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;
3303
3392
  }, {
3304
3393
  project_id: string;
3394
+ workspace_binding_id: string;
3305
3395
  version: 1;
3306
3396
  generated_at: string;
3307
3397
  read_set: {
@@ -3312,7 +3402,7 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3312
3402
  remote?: string | undefined;
3313
3403
  }[];
3314
3404
  warnings: {
3315
- code: "missing_store" | "local_only_no_remote" | "alias_unresolved";
3405
+ code: "missing_store" | "local_only_no_remote" | "alias_unresolved" | "missing_write_route";
3316
3406
  message: string;
3317
3407
  ref: string;
3318
3408
  }[];
@@ -3321,13 +3411,24 @@ declare const resolvedBindingsSnapshotSchema: z.ZodObject<{
3321
3411
  store_uuid: string;
3322
3412
  alias: string;
3323
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;
3324
3420
  }>;
3325
3421
  type ResolvedBindingsSnapshot = z.infer<typeof resolvedBindingsSnapshotSchema>;
3326
3422
 
3327
- 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;
3328
3428
  interface WriteBindingsSnapshotOptions {
3329
3429
  globalRoot: string;
3330
3430
  projectId: string;
3431
+ workspaceBindingId?: string;
3331
3432
  resolveInput: StoreResolveInput;
3332
3433
  writeScope: string;
3333
3434
  now: string;
@@ -3337,6 +3438,7 @@ declare function readBindingsSnapshot(globalRoot: string, projectId: string): Re
3337
3438
 
3338
3439
  declare function findMountedStore(config: GlobalConfig, aliasOrUuid: string): MountedStore | undefined;
3339
3440
  declare function addMountedStore(config: GlobalConfig, store: MountedStore): GlobalConfig;
3441
+ declare function disambiguateAlias(existingAliases: Iterable<string>, desired: string): string;
3340
3442
  declare function detachMountedStore(config: GlobalConfig, alias: string): {
3341
3443
  config: GlobalConfig;
3342
3444
  detached: MountedStore | null;
@@ -4054,14 +4156,14 @@ declare const initContextDomainGroupSchema: z.ZodObject<{
4054
4156
  topology_type: z.ZodOptional<z.ZodEnum<["mirror", "cross-cutting"]>>;
4055
4157
  target_path: z.ZodOptional<z.ZodString>;
4056
4158
  }, "strip", z.ZodTypeAny, {
4057
- paths: string[];
4058
4159
  name: string;
4160
+ paths: string[];
4059
4161
  summary?: string | undefined;
4060
4162
  target_path?: string | undefined;
4061
4163
  topology_type?: "mirror" | "cross-cutting" | undefined;
4062
4164
  }, {
4063
- paths: string[];
4064
4165
  name: string;
4166
+ paths: string[];
4065
4167
  summary?: string | undefined;
4066
4168
  target_path?: string | undefined;
4067
4169
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4156,14 +4258,14 @@ declare const initContextSchema: z.ZodObject<{
4156
4258
  topology_type: z.ZodOptional<z.ZodEnum<["mirror", "cross-cutting"]>>;
4157
4259
  target_path: z.ZodOptional<z.ZodString>;
4158
4260
  }, "strip", z.ZodTypeAny, {
4159
- paths: string[];
4160
4261
  name: string;
4262
+ paths: string[];
4161
4263
  summary?: string | undefined;
4162
4264
  target_path?: string | undefined;
4163
4265
  topology_type?: "mirror" | "cross-cutting" | undefined;
4164
4266
  }, {
4165
- paths: string[];
4166
4267
  name: string;
4268
+ paths: string[];
4167
4269
  summary?: string | undefined;
4168
4270
  target_path?: string | undefined;
4169
4271
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4209,8 +4311,8 @@ declare const initContextSchema: z.ZodObject<{
4209
4311
  }[] | undefined;
4210
4312
  }[];
4211
4313
  domain_groups: {
4212
- paths: string[];
4213
4314
  name: string;
4315
+ paths: string[];
4214
4316
  summary?: string | undefined;
4215
4317
  target_path?: string | undefined;
4216
4318
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4244,8 +4346,8 @@ declare const initContextSchema: z.ZodObject<{
4244
4346
  }[] | undefined;
4245
4347
  }[];
4246
4348
  domain_groups: {
4247
- paths: string[];
4248
4349
  name: string;
4350
+ paths: string[];
4249
4351
  summary?: string | undefined;
4250
4352
  target_path?: string | undefined;
4251
4353
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4298,16 +4400,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4298
4400
  hash: z.ZodString;
4299
4401
  stable_id: z.ZodOptional<z.ZodString>;
4300
4402
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4301
- activation: z.ZodOptional<z.ZodObject<{
4302
- tier: z.ZodEnum<["always", "path", "description"]>;
4303
- description: z.ZodOptional<z.ZodString>;
4304
- }, "strip", z.ZodTypeAny, {
4305
- tier: "always" | "path" | "description";
4306
- description?: string | undefined;
4307
- }, {
4308
- tier: "always" | "path" | "description";
4309
- description?: string | undefined;
4310
- }>>;
4311
4403
  description: z.ZodOptional<z.ZodObject<{
4312
4404
  summary: z.ZodString;
4313
4405
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4368,16 +4460,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4368
4460
  hash: z.ZodString;
4369
4461
  stable_id: z.ZodOptional<z.ZodString>;
4370
4462
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4371
- activation: z.ZodOptional<z.ZodObject<{
4372
- tier: z.ZodEnum<["always", "path", "description"]>;
4373
- description: z.ZodOptional<z.ZodString>;
4374
- }, "strip", z.ZodTypeAny, {
4375
- tier: "always" | "path" | "description";
4376
- description?: string | undefined;
4377
- }, {
4378
- tier: "always" | "path" | "description";
4379
- description?: string | undefined;
4380
- }>>;
4381
4463
  description: z.ZodOptional<z.ZodObject<{
4382
4464
  summary: z.ZodString;
4383
4465
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4438,16 +4520,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4438
4520
  hash: z.ZodString;
4439
4521
  stable_id: z.ZodOptional<z.ZodString>;
4440
4522
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4441
- activation: z.ZodOptional<z.ZodObject<{
4442
- tier: z.ZodEnum<["always", "path", "description"]>;
4443
- description: z.ZodOptional<z.ZodString>;
4444
- }, "strip", z.ZodTypeAny, {
4445
- tier: "always" | "path" | "description";
4446
- description?: string | undefined;
4447
- }, {
4448
- tier: "always" | "path" | "description";
4449
- description?: string | undefined;
4450
- }>>;
4451
4523
  description: z.ZodOptional<z.ZodObject<{
4452
4524
  summary: z.ZodString;
4453
4525
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4508,16 +4580,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4508
4580
  hash: z.ZodString;
4509
4581
  stable_id: z.ZodOptional<z.ZodString>;
4510
4582
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4511
- activation: z.ZodOptional<z.ZodObject<{
4512
- tier: z.ZodEnum<["always", "path", "description"]>;
4513
- description: z.ZodOptional<z.ZodString>;
4514
- }, "strip", z.ZodTypeAny, {
4515
- tier: "always" | "path" | "description";
4516
- description?: string | undefined;
4517
- }, {
4518
- tier: "always" | "path" | "description";
4519
- description?: string | undefined;
4520
- }>>;
4521
4583
  description: z.ZodOptional<z.ZodObject<{
4522
4584
  summary: z.ZodString;
4523
4585
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4651,16 +4713,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4651
4713
  hash: z.ZodString;
4652
4714
  stable_id: z.ZodOptional<z.ZodString>;
4653
4715
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4654
- activation: z.ZodOptional<z.ZodObject<{
4655
- tier: z.ZodEnum<["always", "path", "description"]>;
4656
- description: z.ZodOptional<z.ZodString>;
4657
- }, "strip", z.ZodTypeAny, {
4658
- tier: "always" | "path" | "description";
4659
- description?: string | undefined;
4660
- }, {
4661
- tier: "always" | "path" | "description";
4662
- description?: string | undefined;
4663
- }>>;
4664
4716
  description: z.ZodOptional<z.ZodObject<{
4665
4717
  summary: z.ZodString;
4666
4718
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -4762,16 +4814,6 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
4762
4814
  hash: z.ZodString;
4763
4815
  stable_id: z.ZodOptional<z.ZodString>;
4764
4816
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
4765
- activation: z.ZodOptional<z.ZodObject<{
4766
- tier: z.ZodEnum<["always", "path", "description"]>;
4767
- description: z.ZodOptional<z.ZodString>;
4768
- }, "strip", z.ZodTypeAny, {
4769
- tier: "always" | "path" | "description";
4770
- description?: string | undefined;
4771
- }, {
4772
- tier: "always" | "path" | "description";
4773
- description?: string | undefined;
4774
- }>>;
4775
4817
  description: z.ZodOptional<z.ZodObject<{
4776
4818
  summary: z.ZodString;
4777
4819
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5594,16 +5636,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5594
5636
  hash: z.ZodString;
5595
5637
  stable_id: z.ZodOptional<z.ZodString>;
5596
5638
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5597
- activation: z.ZodOptional<z.ZodObject<{
5598
- tier: z.ZodEnum<["always", "path", "description"]>;
5599
- description: z.ZodOptional<z.ZodString>;
5600
- }, "strip", z.ZodTypeAny, {
5601
- tier: "always" | "path" | "description";
5602
- description?: string | undefined;
5603
- }, {
5604
- tier: "always" | "path" | "description";
5605
- description?: string | undefined;
5606
- }>>;
5607
5639
  description: z.ZodOptional<z.ZodObject<{
5608
5640
  summary: z.ZodString;
5609
5641
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5664,16 +5696,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5664
5696
  hash: z.ZodString;
5665
5697
  stable_id: z.ZodOptional<z.ZodString>;
5666
5698
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5667
- activation: z.ZodOptional<z.ZodObject<{
5668
- tier: z.ZodEnum<["always", "path", "description"]>;
5669
- description: z.ZodOptional<z.ZodString>;
5670
- }, "strip", z.ZodTypeAny, {
5671
- tier: "always" | "path" | "description";
5672
- description?: string | undefined;
5673
- }, {
5674
- tier: "always" | "path" | "description";
5675
- description?: string | undefined;
5676
- }>>;
5677
5699
  description: z.ZodOptional<z.ZodObject<{
5678
5700
  summary: z.ZodString;
5679
5701
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5734,16 +5756,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5734
5756
  hash: z.ZodString;
5735
5757
  stable_id: z.ZodOptional<z.ZodString>;
5736
5758
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5737
- activation: z.ZodOptional<z.ZodObject<{
5738
- tier: z.ZodEnum<["always", "path", "description"]>;
5739
- description: z.ZodOptional<z.ZodString>;
5740
- }, "strip", z.ZodTypeAny, {
5741
- tier: "always" | "path" | "description";
5742
- description?: string | undefined;
5743
- }, {
5744
- tier: "always" | "path" | "description";
5745
- description?: string | undefined;
5746
- }>>;
5747
5759
  description: z.ZodOptional<z.ZodObject<{
5748
5760
  summary: z.ZodString;
5749
5761
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5804,16 +5816,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5804
5816
  hash: z.ZodString;
5805
5817
  stable_id: z.ZodOptional<z.ZodString>;
5806
5818
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5807
- activation: z.ZodOptional<z.ZodObject<{
5808
- tier: z.ZodEnum<["always", "path", "description"]>;
5809
- description: z.ZodOptional<z.ZodString>;
5810
- }, "strip", z.ZodTypeAny, {
5811
- tier: "always" | "path" | "description";
5812
- description?: string | undefined;
5813
- }, {
5814
- tier: "always" | "path" | "description";
5815
- description?: string | undefined;
5816
- }>>;
5817
5819
  description: z.ZodOptional<z.ZodObject<{
5818
5820
  summary: z.ZodString;
5819
5821
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -5947,16 +5949,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5947
5949
  hash: z.ZodString;
5948
5950
  stable_id: z.ZodOptional<z.ZodString>;
5949
5951
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
5950
- activation: z.ZodOptional<z.ZodObject<{
5951
- tier: z.ZodEnum<["always", "path", "description"]>;
5952
- description: z.ZodOptional<z.ZodString>;
5953
- }, "strip", z.ZodTypeAny, {
5954
- tier: "always" | "path" | "description";
5955
- description?: string | undefined;
5956
- }, {
5957
- tier: "always" | "path" | "description";
5958
- description?: string | undefined;
5959
- }>>;
5960
5952
  description: z.ZodOptional<z.ZodObject<{
5961
5953
  summary: z.ZodString;
5962
5954
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -6058,16 +6050,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6058
6050
  hash: z.ZodString;
6059
6051
  stable_id: z.ZodOptional<z.ZodString>;
6060
6052
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
6061
- activation: z.ZodOptional<z.ZodObject<{
6062
- tier: z.ZodEnum<["always", "path", "description"]>;
6063
- description: z.ZodOptional<z.ZodString>;
6064
- }, "strip", z.ZodTypeAny, {
6065
- tier: "always" | "path" | "description";
6066
- description?: string | undefined;
6067
- }, {
6068
- tier: "always" | "path" | "description";
6069
- description?: string | undefined;
6070
- }>>;
6071
6053
  description: z.ZodOptional<z.ZodObject<{
6072
6054
  summary: z.ZodString;
6073
6055
  intent_clues: z.ZodArray<z.ZodString, "many">;
@@ -7285,77 +7267,6 @@ declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
7285
7267
  correlation_id?: string | undefined;
7286
7268
  session_id?: string | undefined;
7287
7269
  }>;
7288
- declare const mcpConfigMigratedEventSchema: z.ZodObject<{
7289
- event_type: z.ZodLiteral<"mcp_config_migrated">;
7290
- source: z.ZodLiteral<"doctor_fix">;
7291
- removed_from: z.ZodString;
7292
- kind: z.ZodLiteral<"fabric-event">;
7293
- id: z.ZodString;
7294
- ts: z.ZodNumber;
7295
- schema_version: z.ZodLiteral<1>;
7296
- correlation_id: z.ZodOptional<z.ZodString>;
7297
- session_id: z.ZodOptional<z.ZodString>;
7298
- }, "strip", z.ZodTypeAny, {
7299
- id: string;
7300
- source: "doctor_fix";
7301
- ts: number;
7302
- schema_version: 1;
7303
- kind: "fabric-event";
7304
- event_type: "mcp_config_migrated";
7305
- removed_from: string;
7306
- correlation_id?: string | undefined;
7307
- session_id?: string | undefined;
7308
- }, {
7309
- id: string;
7310
- source: "doctor_fix";
7311
- ts: number;
7312
- schema_version: 1;
7313
- kind: "fabric-event";
7314
- event_type: "mcp_config_migrated";
7315
- removed_from: string;
7316
- correlation_id?: string | undefined;
7317
- session_id?: string | undefined;
7318
- }>;
7319
- declare const bootstrapMarkerMigratedEventSchema: z.ZodObject<{
7320
- event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
7321
- path: z.ZodString;
7322
- migrated_count: z.ZodNumber;
7323
- legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
7324
- new_marker: z.ZodLiteral<"fabric:bootstrap">;
7325
- timestamp: z.ZodString;
7326
- kind: z.ZodLiteral<"fabric-event">;
7327
- id: z.ZodString;
7328
- ts: z.ZodNumber;
7329
- schema_version: z.ZodLiteral<1>;
7330
- correlation_id: z.ZodOptional<z.ZodString>;
7331
- session_id: z.ZodOptional<z.ZodString>;
7332
- }, "strip", z.ZodTypeAny, {
7333
- path: string;
7334
- id: string;
7335
- ts: number;
7336
- schema_version: 1;
7337
- kind: "fabric-event";
7338
- event_type: "bootstrap_marker_migrated";
7339
- migrated_count: number;
7340
- legacy_marker: "fabric:knowledge-base";
7341
- new_marker: "fabric:bootstrap";
7342
- timestamp: string;
7343
- correlation_id?: string | undefined;
7344
- session_id?: string | undefined;
7345
- }, {
7346
- path: string;
7347
- id: string;
7348
- ts: number;
7349
- schema_version: 1;
7350
- kind: "fabric-event";
7351
- event_type: "bootstrap_marker_migrated";
7352
- migrated_count: number;
7353
- legacy_marker: "fabric:knowledge-base";
7354
- new_marker: "fabric:bootstrap";
7355
- timestamp: string;
7356
- correlation_id?: string | undefined;
7357
- session_id?: string | undefined;
7358
- }>;
7359
7270
  declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
7360
7271
  event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
7361
7272
  reconciled_files: z.ZodArray<z.ZodString, "many">;
@@ -7544,7 +7455,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
7544
7455
  written_stable_ids: string[];
7545
7456
  correlation_id?: string | undefined;
7546
7457
  session_id?: string | undefined;
7547
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
7458
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
7548
7459
  }, {
7549
7460
  id: string;
7550
7461
  ts: number;
@@ -7555,7 +7466,7 @@ declare const initScanCompletedEventSchema: z.ZodObject<{
7555
7466
  written_stable_ids: string[];
7556
7467
  correlation_id?: string | undefined;
7557
7468
  session_id?: string | undefined;
7558
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
7469
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
7559
7470
  }>;
7560
7471
  declare const knowledgeProposedEventSchema: z.ZodObject<{
7561
7472
  event_type: z.ZodLiteral<"knowledge_proposed">;
@@ -7693,6 +7604,52 @@ declare const knowledgePromoteFailedEventSchema: z.ZodObject<{
7693
7604
  correlation_id?: string | undefined;
7694
7605
  session_id?: string | undefined;
7695
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
+ }>;
7696
7653
  declare const knowledgeLayerChangedEventSchema: z.ZodObject<{
7697
7654
  event_type: z.ZodLiteral<"knowledge_layer_changed">;
7698
7655
  stable_id: z.ZodOptional<z.ZodString>;
@@ -7958,6 +7915,7 @@ declare const knowledgeUnarchivedEventSchema: z.ZodObject<{
7958
7915
  declare const knowledgeDeferredEventSchema: z.ZodObject<{
7959
7916
  event_type: z.ZodLiteral<"knowledge_deferred">;
7960
7917
  stable_id: z.ZodOptional<z.ZodString>;
7918
+ pending_path: z.ZodOptional<z.ZodString>;
7961
7919
  timestamp: z.ZodString;
7962
7920
  reason: z.ZodOptional<z.ZodString>;
7963
7921
  until: z.ZodOptional<z.ZodString>;
@@ -7974,6 +7932,7 @@ declare const knowledgeDeferredEventSchema: z.ZodObject<{
7974
7932
  kind: "fabric-event";
7975
7933
  event_type: "knowledge_deferred";
7976
7934
  timestamp: string;
7935
+ pending_path?: string | undefined;
7977
7936
  stable_id?: string | undefined;
7978
7937
  correlation_id?: string | undefined;
7979
7938
  session_id?: string | undefined;
@@ -7986,6 +7945,7 @@ declare const knowledgeDeferredEventSchema: z.ZodObject<{
7986
7945
  kind: "fabric-event";
7987
7946
  event_type: "knowledge_deferred";
7988
7947
  timestamp: string;
7948
+ pending_path?: string | undefined;
7989
7949
  stable_id?: string | undefined;
7990
7950
  correlation_id?: string | undefined;
7991
7951
  session_id?: string | undefined;
@@ -8267,7 +8227,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8267
8227
  skip_reason: string | null;
8268
8228
  }>, "many">>;
8269
8229
  cite_stores: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
8270
- client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
8230
+ client: z.ZodOptional<z.ZodEnum<["cc", "codex"]>>;
8271
8231
  turn_id: z.ZodString;
8272
8232
  envelope_index: z.ZodOptional<z.ZodNumber>;
8273
8233
  timestamp: z.ZodString;
@@ -8298,7 +8258,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8298
8258
  correlation_id?: string | undefined;
8299
8259
  session_id?: string | undefined;
8300
8260
  cite_stores?: (string | null)[] | undefined;
8301
- client?: "cursor" | "cc" | "codex" | undefined;
8261
+ client?: "cc" | "codex" | undefined;
8302
8262
  envelope_index?: number | undefined;
8303
8263
  }, {
8304
8264
  id: string;
@@ -8321,7 +8281,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8321
8281
  skip_reason: string | null;
8322
8282
  }[] | undefined;
8323
8283
  cite_stores?: (string | null)[] | undefined;
8324
- client?: "cursor" | "cc" | "codex" | undefined;
8284
+ client?: "cc" | "codex" | undefined;
8325
8285
  envelope_index?: number | undefined;
8326
8286
  }>;
8327
8287
  declare const citePolicyActivatedEventSchema: z.ZodObject<{
@@ -8565,7 +8525,7 @@ declare const sessionArchiveAttemptedEventSchema: z.ZodObject<{
8565
8525
  declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8566
8526
  event_type: z.ZodLiteral<"hook_surface_emitted">;
8567
8527
  hook_name: z.ZodString;
8568
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
8528
+ client: z.ZodEnum<["cc", "codex"]>;
8569
8529
  target_channel: z.ZodString;
8570
8530
  rendered_ids: z.ZodArray<z.ZodString, "many">;
8571
8531
  delivery_status: z.ZodEnum<["delivered", "suppressed", "error"]>;
@@ -8582,7 +8542,7 @@ declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8582
8542
  schema_version: 1;
8583
8543
  kind: "fabric-event";
8584
8544
  event_type: "hook_surface_emitted";
8585
- client: "cursor" | "cc" | "codex";
8545
+ client: "cc" | "codex";
8586
8546
  hook_name: string;
8587
8547
  target_channel: string;
8588
8548
  rendered_ids: string[];
@@ -8596,7 +8556,7 @@ declare const hookSurfaceEmittedEventSchema: z.ZodObject<{
8596
8556
  schema_version: 1;
8597
8557
  kind: "fabric-event";
8598
8558
  event_type: "hook_surface_emitted";
8599
- client: "cursor" | "cc" | "codex";
8559
+ client: "cc" | "codex";
8600
8560
  hook_name: string;
8601
8561
  target_channel: string;
8602
8562
  rendered_ids: string[];
@@ -8924,7 +8884,7 @@ declare const llmJudgeRunEventSchema: z.ZodObject<{
8924
8884
  }>;
8925
8885
  declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
8926
8886
  event_type: z.ZodLiteral<"client_capability_snapshot">;
8927
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
8887
+ client: z.ZodEnum<["cc", "codex"]>;
8928
8888
  capabilities: z.ZodArray<z.ZodString, "many">;
8929
8889
  version: z.ZodString;
8930
8890
  kind: z.ZodLiteral<"fabric-event">;
@@ -8941,7 +8901,7 @@ declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
8941
8901
  capabilities: string[];
8942
8902
  kind: "fabric-event";
8943
8903
  event_type: "client_capability_snapshot";
8944
- client: "cursor" | "cc" | "codex";
8904
+ client: "cc" | "codex";
8945
8905
  correlation_id?: string | undefined;
8946
8906
  session_id?: string | undefined;
8947
8907
  }, {
@@ -8952,7 +8912,7 @@ declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
8952
8912
  capabilities: string[];
8953
8913
  kind: "fabric-event";
8954
8914
  event_type: "client_capability_snapshot";
8955
- client: "cursor" | "cc" | "codex";
8915
+ client: "cc" | "codex";
8956
8916
  correlation_id?: string | undefined;
8957
8917
  session_id?: string | undefined;
8958
8918
  }>;
@@ -9021,6 +8981,46 @@ declare const fileMutatedEventSchema: z.ZodObject<{
9021
8981
  source_event_id?: string | undefined;
9022
8982
  store_id?: string | undefined;
9023
8983
  }>;
8984
+ declare const knowledgeBodyReadEventSchema: z.ZodObject<{
8985
+ event_type: z.ZodLiteral<"knowledge_body_read">;
8986
+ stable_id: z.ZodString;
8987
+ store: z.ZodOptional<z.ZodString>;
8988
+ path: z.ZodString;
8989
+ tool_call_id: z.ZodOptional<z.ZodString>;
8990
+ tool_name: z.ZodOptional<z.ZodString>;
8991
+ kind: z.ZodLiteral<"fabric-event">;
8992
+ id: z.ZodString;
8993
+ ts: z.ZodNumber;
8994
+ schema_version: z.ZodLiteral<1>;
8995
+ correlation_id: z.ZodOptional<z.ZodString>;
8996
+ session_id: z.ZodOptional<z.ZodString>;
8997
+ }, "strip", z.ZodTypeAny, {
8998
+ path: string;
8999
+ id: string;
9000
+ stable_id: string;
9001
+ ts: number;
9002
+ schema_version: 1;
9003
+ kind: "fabric-event";
9004
+ event_type: "knowledge_body_read";
9005
+ store?: string | undefined;
9006
+ correlation_id?: string | undefined;
9007
+ session_id?: string | undefined;
9008
+ tool_name?: string | undefined;
9009
+ tool_call_id?: string | undefined;
9010
+ }, {
9011
+ path: string;
9012
+ id: string;
9013
+ stable_id: string;
9014
+ ts: number;
9015
+ schema_version: 1;
9016
+ kind: "fabric-event";
9017
+ event_type: "knowledge_body_read";
9018
+ store?: string | undefined;
9019
+ correlation_id?: string | undefined;
9020
+ session_id?: string | undefined;
9021
+ tool_name?: string | undefined;
9022
+ tool_call_id?: string | undefined;
9023
+ }>;
9024
9024
  declare const precompactObservedEventSchema: z.ZodObject<{
9025
9025
  event_type: z.ZodLiteral<"precompact_observed">;
9026
9026
  kind: z.ZodLiteral<"fabric-event">;
@@ -9063,9 +9063,9 @@ declare const graphEdgeCandidateRequestedEventSchema: z.ZodObject<{
9063
9063
  schema_version: 1;
9064
9064
  kind: "fabric-event";
9065
9065
  event_type: "graph_edge_candidate_requested";
9066
+ store?: string | undefined;
9066
9067
  correlation_id?: string | undefined;
9067
9068
  session_id?: string | undefined;
9068
- store?: string | undefined;
9069
9069
  }, {
9070
9070
  id: string;
9071
9071
  stable_id: string;
@@ -9073,9 +9073,9 @@ declare const graphEdgeCandidateRequestedEventSchema: z.ZodObject<{
9073
9073
  schema_version: 1;
9074
9074
  kind: "fabric-event";
9075
9075
  event_type: "graph_edge_candidate_requested";
9076
+ store?: string | undefined;
9076
9077
  correlation_id?: string | undefined;
9077
9078
  session_id?: string | undefined;
9078
- store?: string | undefined;
9079
9079
  }>;
9080
9080
  declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
9081
9081
  event_type: z.ZodLiteral<"knowledge_context_planned">;
@@ -9477,75 +9477,6 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9477
9477
  corrupted_path: string;
9478
9478
  correlation_id?: string | undefined;
9479
9479
  session_id?: string | undefined;
9480
- }>, z.ZodObject<{
9481
- event_type: z.ZodLiteral<"mcp_config_migrated">;
9482
- source: z.ZodLiteral<"doctor_fix">;
9483
- removed_from: z.ZodString;
9484
- kind: z.ZodLiteral<"fabric-event">;
9485
- id: z.ZodString;
9486
- ts: z.ZodNumber;
9487
- schema_version: z.ZodLiteral<1>;
9488
- correlation_id: z.ZodOptional<z.ZodString>;
9489
- session_id: z.ZodOptional<z.ZodString>;
9490
- }, "strip", z.ZodTypeAny, {
9491
- id: string;
9492
- source: "doctor_fix";
9493
- ts: number;
9494
- schema_version: 1;
9495
- kind: "fabric-event";
9496
- event_type: "mcp_config_migrated";
9497
- removed_from: string;
9498
- correlation_id?: string | undefined;
9499
- session_id?: string | undefined;
9500
- }, {
9501
- id: string;
9502
- source: "doctor_fix";
9503
- ts: number;
9504
- schema_version: 1;
9505
- kind: "fabric-event";
9506
- event_type: "mcp_config_migrated";
9507
- removed_from: string;
9508
- correlation_id?: string | undefined;
9509
- session_id?: string | undefined;
9510
- }>, z.ZodObject<{
9511
- event_type: z.ZodLiteral<"bootstrap_marker_migrated">;
9512
- path: z.ZodString;
9513
- migrated_count: z.ZodNumber;
9514
- legacy_marker: z.ZodLiteral<"fabric:knowledge-base">;
9515
- new_marker: z.ZodLiteral<"fabric:bootstrap">;
9516
- timestamp: z.ZodString;
9517
- kind: z.ZodLiteral<"fabric-event">;
9518
- id: z.ZodString;
9519
- ts: z.ZodNumber;
9520
- schema_version: z.ZodLiteral<1>;
9521
- correlation_id: z.ZodOptional<z.ZodString>;
9522
- session_id: z.ZodOptional<z.ZodString>;
9523
- }, "strip", z.ZodTypeAny, {
9524
- path: string;
9525
- id: string;
9526
- ts: number;
9527
- schema_version: 1;
9528
- kind: "fabric-event";
9529
- event_type: "bootstrap_marker_migrated";
9530
- migrated_count: number;
9531
- legacy_marker: "fabric:knowledge-base";
9532
- new_marker: "fabric:bootstrap";
9533
- timestamp: string;
9534
- correlation_id?: string | undefined;
9535
- session_id?: string | undefined;
9536
- }, {
9537
- path: string;
9538
- id: string;
9539
- ts: number;
9540
- schema_version: 1;
9541
- kind: "fabric-event";
9542
- event_type: "bootstrap_marker_migrated";
9543
- migrated_count: number;
9544
- legacy_marker: "fabric:knowledge-base";
9545
- new_marker: "fabric:bootstrap";
9546
- timestamp: string;
9547
- correlation_id?: string | undefined;
9548
- session_id?: string | undefined;
9549
9480
  }>, z.ZodObject<{
9550
9481
  event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
9551
9482
  reconciled_files: z.ZodArray<z.ZodString, "many">;
@@ -9729,7 +9660,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9729
9660
  written_stable_ids: string[];
9730
9661
  correlation_id?: string | undefined;
9731
9662
  session_id?: string | undefined;
9732
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
9663
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
9733
9664
  }, {
9734
9665
  id: string;
9735
9666
  ts: number;
@@ -9740,7 +9671,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9740
9671
  written_stable_ids: string[];
9741
9672
  correlation_id?: string | undefined;
9742
9673
  session_id?: string | undefined;
9743
- source?: "init" | "doctor_fix" | "scan" | "doctor-rescan" | undefined;
9674
+ source?: "init" | "scan" | "doctor_fix" | "doctor-rescan" | undefined;
9744
9675
  }>, z.ZodObject<{
9745
9676
  event_type: z.ZodLiteral<"knowledge_proposed">;
9746
9677
  stable_id: z.ZodOptional<z.ZodString>;
@@ -9873,6 +9804,51 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
9873
9804
  stable_id?: string | undefined;
9874
9805
  correlation_id?: string | undefined;
9875
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;
9876
9852
  }>, z.ZodObject<{
9877
9853
  event_type: z.ZodLiteral<"knowledge_layer_changed">;
9878
9854
  stable_id: z.ZodOptional<z.ZodString>;
@@ -10131,6 +10107,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10131
10107
  }>, z.ZodObject<{
10132
10108
  event_type: z.ZodLiteral<"knowledge_deferred">;
10133
10109
  stable_id: z.ZodOptional<z.ZodString>;
10110
+ pending_path: z.ZodOptional<z.ZodString>;
10134
10111
  timestamp: z.ZodString;
10135
10112
  reason: z.ZodOptional<z.ZodString>;
10136
10113
  until: z.ZodOptional<z.ZodString>;
@@ -10147,6 +10124,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10147
10124
  kind: "fabric-event";
10148
10125
  event_type: "knowledge_deferred";
10149
10126
  timestamp: string;
10127
+ pending_path?: string | undefined;
10150
10128
  stable_id?: string | undefined;
10151
10129
  correlation_id?: string | undefined;
10152
10130
  session_id?: string | undefined;
@@ -10159,6 +10137,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10159
10137
  kind: "fabric-event";
10160
10138
  event_type: "knowledge_deferred";
10161
10139
  timestamp: string;
10140
+ pending_path?: string | undefined;
10162
10141
  stable_id?: string | undefined;
10163
10142
  correlation_id?: string | undefined;
10164
10143
  session_id?: string | undefined;
@@ -10432,7 +10411,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10432
10411
  skip_reason: string | null;
10433
10412
  }>, "many">>;
10434
10413
  cite_stores: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
10435
- client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
10414
+ client: z.ZodOptional<z.ZodEnum<["cc", "codex"]>>;
10436
10415
  turn_id: z.ZodString;
10437
10416
  envelope_index: z.ZodOptional<z.ZodNumber>;
10438
10417
  timestamp: z.ZodString;
@@ -10463,7 +10442,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10463
10442
  correlation_id?: string | undefined;
10464
10443
  session_id?: string | undefined;
10465
10444
  cite_stores?: (string | null)[] | undefined;
10466
- client?: "cursor" | "cc" | "codex" | undefined;
10445
+ client?: "cc" | "codex" | undefined;
10467
10446
  envelope_index?: number | undefined;
10468
10447
  }, {
10469
10448
  id: string;
@@ -10486,7 +10465,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10486
10465
  skip_reason: string | null;
10487
10466
  }[] | undefined;
10488
10467
  cite_stores?: (string | null)[] | undefined;
10489
- client?: "cursor" | "cc" | "codex" | undefined;
10468
+ client?: "cc" | "codex" | undefined;
10490
10469
  envelope_index?: number | undefined;
10491
10470
  }>, z.ZodObject<{
10492
10471
  event_type: z.ZodLiteral<"cite_policy_activated">;
@@ -10722,7 +10701,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10722
10701
  }>, z.ZodObject<{
10723
10702
  event_type: z.ZodLiteral<"hook_surface_emitted">;
10724
10703
  hook_name: z.ZodString;
10725
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
10704
+ client: z.ZodEnum<["cc", "codex"]>;
10726
10705
  target_channel: z.ZodString;
10727
10706
  rendered_ids: z.ZodArray<z.ZodString, "many">;
10728
10707
  delivery_status: z.ZodEnum<["delivered", "suppressed", "error"]>;
@@ -10739,7 +10718,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10739
10718
  schema_version: 1;
10740
10719
  kind: "fabric-event";
10741
10720
  event_type: "hook_surface_emitted";
10742
- client: "cursor" | "cc" | "codex";
10721
+ client: "cc" | "codex";
10743
10722
  hook_name: string;
10744
10723
  target_channel: string;
10745
10724
  rendered_ids: string[];
@@ -10753,7 +10732,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10753
10732
  schema_version: 1;
10754
10733
  kind: "fabric-event";
10755
10734
  event_type: "hook_surface_emitted";
10756
- client: "cursor" | "cc" | "codex";
10735
+ client: "cc" | "codex";
10757
10736
  hook_name: string;
10758
10737
  target_channel: string;
10759
10738
  rendered_ids: string[];
@@ -11072,7 +11051,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11072
11051
  session_id?: string | undefined;
11073
11052
  }>, z.ZodObject<{
11074
11053
  event_type: z.ZodLiteral<"client_capability_snapshot">;
11075
- client: z.ZodEnum<["cc", "codex", "cursor"]>;
11054
+ client: z.ZodEnum<["cc", "codex"]>;
11076
11055
  capabilities: z.ZodArray<z.ZodString, "many">;
11077
11056
  version: z.ZodString;
11078
11057
  kind: z.ZodLiteral<"fabric-event">;
@@ -11089,7 +11068,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11089
11068
  capabilities: string[];
11090
11069
  kind: "fabric-event";
11091
11070
  event_type: "client_capability_snapshot";
11092
- client: "cursor" | "cc" | "codex";
11071
+ client: "cc" | "codex";
11093
11072
  correlation_id?: string | undefined;
11094
11073
  session_id?: string | undefined;
11095
11074
  }, {
@@ -11100,7 +11079,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11100
11079
  capabilities: string[];
11101
11080
  kind: "fabric-event";
11102
11081
  event_type: "client_capability_snapshot";
11103
- client: "cursor" | "cc" | "codex";
11082
+ client: "cc" | "codex";
11104
11083
  correlation_id?: string | undefined;
11105
11084
  session_id?: string | undefined;
11106
11085
  }>, z.ZodObject<{
@@ -11166,6 +11145,45 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11166
11145
  tool_name?: string | undefined;
11167
11146
  source_event_id?: string | undefined;
11168
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;
11169
11187
  }>, z.ZodObject<{
11170
11188
  event_type: z.ZodLiteral<"precompact_observed">;
11171
11189
  kind: z.ZodLiteral<"fabric-event">;
@@ -11207,9 +11225,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11207
11225
  schema_version: 1;
11208
11226
  kind: "fabric-event";
11209
11227
  event_type: "graph_edge_candidate_requested";
11228
+ store?: string | undefined;
11210
11229
  correlation_id?: string | undefined;
11211
11230
  session_id?: string | undefined;
11212
- store?: string | undefined;
11213
11231
  }, {
11214
11232
  id: string;
11215
11233
  stable_id: string;
@@ -11217,9 +11235,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11217
11235
  schema_version: 1;
11218
11236
  kind: "fabric-event";
11219
11237
  event_type: "graph_edge_candidate_requested";
11238
+ store?: string | undefined;
11220
11239
  correlation_id?: string | undefined;
11221
11240
  session_id?: string | undefined;
11222
- store?: string | undefined;
11223
11241
  }>]>;
11224
11242
  type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
11225
11243
  type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
@@ -11230,8 +11248,6 @@ type McpEventLedgerEvent = z.infer<typeof mcpEventLedgerEventSchema>;
11230
11248
  type ReapplyCompletedEvent = z.infer<typeof reapplyCompletedEventSchema>;
11231
11249
  type InstallDiffAppliedEvent = z.infer<typeof installDiffAppliedEventSchema>;
11232
11250
  type EventLedgerTruncatedEvent = z.infer<typeof eventLedgerTruncatedEventSchema>;
11233
- type McpConfigMigratedEvent = z.infer<typeof mcpConfigMigratedEventSchema>;
11234
- type BootstrapMarkerMigratedEvent = z.infer<typeof bootstrapMarkerMigratedEventSchema>;
11235
11251
  type MetaReconciledOnStartupEvent = z.infer<typeof metaReconciledOnStartupEventSchema>;
11236
11252
  type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
11237
11253
  type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
@@ -11242,6 +11258,7 @@ type KnowledgeProposedEvent = z.infer<typeof knowledgeProposedEventSchema>;
11242
11258
  type KnowledgePromoteStartedEvent = z.infer<typeof knowledgePromoteStartedEventSchema>;
11243
11259
  type KnowledgePromotedEvent = z.infer<typeof knowledgePromotedEventSchema>;
11244
11260
  type KnowledgePromoteFailedEvent = z.infer<typeof knowledgePromoteFailedEventSchema>;
11261
+ type KnowledgeModifiedEvent = z.infer<typeof knowledgeModifiedEventSchema>;
11245
11262
  type KnowledgeLayerChangedEvent = z.infer<typeof knowledgeLayerChangedEventSchema>;
11246
11263
  type KnowledgeIdRedirectEvent = z.infer<typeof knowledgeIdRedirectEventSchema>;
11247
11264
  type KnowledgeSlugRenamedEvent = z.infer<typeof knowledgeSlugRenamedEventSchema>;
@@ -11277,9 +11294,10 @@ type LlmJudgeRunEvent = z.infer<typeof llmJudgeRunEventSchema>;
11277
11294
  type ClientCapabilitySnapshotEvent = z.infer<typeof clientCapabilitySnapshotEventSchema>;
11278
11295
  type SessionEndedEvent = z.infer<typeof sessionEndedEventSchema>;
11279
11296
  type FileMutatedEvent = z.infer<typeof fileMutatedEventSchema>;
11297
+ type KnowledgeBodyReadEvent = z.infer<typeof knowledgeBodyReadEventSchema>;
11280
11298
  type PrecompactObservedEvent = z.infer<typeof precompactObservedEventSchema>;
11281
11299
  type GraphEdgeCandidateRequestedEvent = z.infer<typeof graphEdgeCandidateRequestedEventSchema>;
11282
- 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;
11283
11301
  type EventLedgerEventType = EventLedgerEvent["event_type"];
11284
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;
11285
11303
  type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
@@ -11302,8 +11320,8 @@ interface ParseCiteLineResult {
11302
11320
  }
11303
11321
  /**
11304
11322
  * Normalize a raw cite tag (with optional tail) into the 2-state vocabulary.
11305
- * `applied` / `dismissed` / `none` pass through; the three legacy tags remap to
11306
- * `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).
11307
11325
  */
11308
11326
  declare function normalizeCiteTag(rawTag: string): CiteTag;
11309
11327
  /**
@@ -11341,6 +11359,7 @@ interface ResolvedRetrievalBudget {
11341
11359
  payloadHardBytes: number;
11342
11360
  /** Injection layer — SessionStart broad-menu body char budget. */
11343
11361
  injectionChars: number;
11362
+ bodyBudgetBytes: number;
11344
11363
  }
11345
11364
  declare const DEFAULT_RETRIEVAL_BUDGET_PROFILE: RetrievalBudgetProfile;
11346
11365
  /** The per-field overrides that, when present, take precedence over the profile. */
@@ -11350,6 +11369,7 @@ interface RetrievalBudgetOverrides {
11350
11369
  payloadWarnBytes?: number;
11351
11370
  payloadHardBytes?: number;
11352
11371
  injectionChars?: number;
11372
+ bodyBudgetBytes?: number;
11353
11373
  }
11354
11374
  /**
11355
11375
  * Resolve the layered retrieval budget: start from the named profile (default
@@ -11361,4 +11381,4 @@ declare function resolveRetrievalBudget(overrides?: RetrievalBudgetOverrides): R
11361
11381
  /** Exposed for tests / introspection — the raw profile table. */
11362
11382
  declare function retrievalBudgetProfile(profile: RetrievalBudgetProfile): ResolvedRetrievalBudget;
11363
11383
 
11364
- 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_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 StoreReadSet, type StoreResolveInput, type StoreResolver, type StoreResolverWarning, type StoreResolverWarningCode, type StoreVisibility, Translator, UID_SEGMENT_PATTERN, type Uid, type ValidateResult, type WriteBindingsSnapshotOptions, type WriteTarget, type WrittenToStore, addMountedStore, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aggregatePendingAcrossStores, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, bindRequiredStore, bindingsSnapshotPath, bootstrapMarkerMigratedEventSchema, buildDebugBundle, buildFailureTrace, buildScanRecommendations, 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, readStoreIdentity, reapplyCompletedEventSchema, recognizeStoreDir, 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, storeCountersSchema, storeIdentitySchema, storeKnowledgeTypeDir, 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 };