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

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.
@@ -15,6 +15,7 @@ interface RuleDescription {
15
15
  knowledge_type?: "models" | "decisions" | "guidelines" | "pitfalls" | "processes";
16
16
  maturity?: "draft" | "verified" | "proven";
17
17
  knowledge_layer?: "personal" | "team";
18
+ semantic_scope?: string;
18
19
  layer_reason?: string;
19
20
  created_at?: string;
20
21
  tags?: string[];
@@ -149,6 +150,7 @@ declare const fabricConfigSchema: z.ZodObject<{
149
150
  suggested_remote?: string | undefined;
150
151
  }>, "many">>;
151
152
  active_write_store: z.ZodOptional<z.ZodString>;
153
+ active_project: z.ZodOptional<z.ZodString>;
152
154
  scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
155
  audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
154
156
  mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
@@ -184,6 +186,10 @@ declare const fabricConfigSchema: z.ZodObject<{
184
186
  reverse_unarchive_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
185
187
  reverse_unarchive_dry_run: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
186
188
  cite_evict_interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
189
+ cite_recall_nudge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
190
+ cite_recall_window_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
191
+ cite_nudge_ignore_globs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
192
+ conflict_lint_similarity_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
187
193
  fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
188
194
  onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
189
195
  hint_broad_top_k: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -195,9 +201,11 @@ declare const fabricConfigSchema: z.ZodObject<{
195
201
  hint_narrow_dedup_window_turns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
196
202
  hint_broad_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
197
203
  hint_narrow_cooldown_hours: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
204
+ orphan_demote_proven_days: z.ZodOptional<z.ZodNumber>;
205
+ orphan_demote_verified_days: z.ZodOptional<z.ZodNumber>;
206
+ orphan_demote_draft_days: z.ZodOptional<z.ZodNumber>;
198
207
  orphan_demote_stable_days: z.ZodOptional<z.ZodNumber>;
199
208
  orphan_demote_endorsed_days: z.ZodOptional<z.ZodNumber>;
200
- orphan_demote_draft_days: z.ZodOptional<z.ZodNumber>;
201
209
  hint_summary_max_len: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
202
210
  hint_reminder_to_context: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
203
211
  selection_token_ttl_ms: z.ZodOptional<z.ZodNumber>;
@@ -205,6 +213,7 @@ declare const fabricConfigSchema: z.ZodObject<{
205
213
  retrieval_budget_profile: z.ZodOptional<z.ZodEnum<["conservative", "balanced", "generous"]>>;
206
214
  embed_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
207
215
  embed_weight: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
216
+ embed_model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["fast-bge-small-zh-v1.5", "fast-multilingual-e5-large", "fast-bge-small-en-v1.5", "fast-bge-small-en", "fast-bge-base-en-v1.5", "fast-bge-base-en", "fast-all-MiniLM-L6-v2"]>>>;
208
217
  }, "strip", z.ZodTypeAny, {
209
218
  fabric_language: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
210
219
  default_layer_filter: "personal" | "team" | "both";
@@ -229,6 +238,9 @@ declare const fabricConfigSchema: z.ZodObject<{
229
238
  reverse_unarchive_enabled: boolean;
230
239
  reverse_unarchive_dry_run: boolean;
231
240
  cite_evict_interval: number;
241
+ cite_recall_nudge: boolean;
242
+ cite_recall_window_minutes: number;
243
+ conflict_lint_similarity_threshold: number;
232
244
  onboard_slots_opted_out: string[];
233
245
  hint_broad_top_k: number;
234
246
  hint_broad_budget_chars: number;
@@ -242,6 +254,7 @@ declare const fabricConfigSchema: z.ZodObject<{
242
254
  hint_reminder_to_context: boolean;
243
255
  embed_enabled: boolean;
244
256
  embed_weight: number;
257
+ embed_model: "fast-bge-small-zh-v1.5" | "fast-multilingual-e5-large" | "fast-bge-small-en-v1.5" | "fast-bge-small-en" | "fast-bge-base-en-v1.5" | "fast-bge-base-en" | "fast-all-MiniLM-L6-v2";
245
258
  clientPaths?: {
246
259
  claudeCodeCLI?: string | undefined;
247
260
  claudeCodeDesktop?: string | undefined;
@@ -254,17 +267,21 @@ declare const fabricConfigSchema: z.ZodObject<{
254
267
  suggested_remote?: string | undefined;
255
268
  }[] | undefined;
256
269
  active_write_store?: string | undefined;
270
+ active_project?: string | undefined;
257
271
  scanIgnores?: string[] | undefined;
258
272
  audit_mode?: "strict" | "warn" | "off" | undefined;
259
273
  mcpPayloadLimits?: {
260
274
  warnBytes?: number | undefined;
261
275
  hardBytes?: number | undefined;
262
276
  } | undefined;
277
+ cite_nudge_ignore_globs?: string[] | undefined;
263
278
  fabric_event_retention_days?: 7 | 30 | 90 | undefined;
264
279
  hint_dismiss_signals?: ("archive" | "review" | "import" | "maintenance")[] | undefined;
280
+ orphan_demote_proven_days?: number | undefined;
281
+ orphan_demote_verified_days?: number | undefined;
282
+ orphan_demote_draft_days?: number | undefined;
265
283
  orphan_demote_stable_days?: number | undefined;
266
284
  orphan_demote_endorsed_days?: number | undefined;
267
- orphan_demote_draft_days?: number | undefined;
268
285
  selection_token_ttl_ms?: number | undefined;
269
286
  plan_context_top_k?: number | undefined;
270
287
  retrieval_budget_profile?: "conservative" | "balanced" | "generous" | undefined;
@@ -281,6 +298,7 @@ declare const fabricConfigSchema: z.ZodObject<{
281
298
  suggested_remote?: string | undefined;
282
299
  }[] | undefined;
283
300
  active_write_store?: string | undefined;
301
+ active_project?: string | undefined;
284
302
  scanIgnores?: string[] | undefined;
285
303
  audit_mode?: "strict" | "warn" | "off" | undefined;
286
304
  mcpPayloadLimits?: {
@@ -310,6 +328,10 @@ declare const fabricConfigSchema: z.ZodObject<{
310
328
  reverse_unarchive_enabled?: boolean | undefined;
311
329
  reverse_unarchive_dry_run?: boolean | undefined;
312
330
  cite_evict_interval?: number | undefined;
331
+ cite_recall_nudge?: boolean | undefined;
332
+ cite_recall_window_minutes?: number | undefined;
333
+ cite_nudge_ignore_globs?: string[] | undefined;
334
+ conflict_lint_similarity_threshold?: number | undefined;
313
335
  fabric_event_retention_days?: 7 | 30 | 90 | undefined;
314
336
  onboard_slots_opted_out?: string[] | undefined;
315
337
  hint_broad_top_k?: number | undefined;
@@ -321,9 +343,11 @@ declare const fabricConfigSchema: z.ZodObject<{
321
343
  hint_narrow_dedup_window_turns?: number | undefined;
322
344
  hint_broad_cooldown_hours?: number | undefined;
323
345
  hint_narrow_cooldown_hours?: number | undefined;
346
+ orphan_demote_proven_days?: number | undefined;
347
+ orphan_demote_verified_days?: number | undefined;
348
+ orphan_demote_draft_days?: number | undefined;
324
349
  orphan_demote_stable_days?: number | undefined;
325
350
  orphan_demote_endorsed_days?: number | undefined;
326
- orphan_demote_draft_days?: number | undefined;
327
351
  hint_summary_max_len?: number | undefined;
328
352
  hint_reminder_to_context?: boolean | undefined;
329
353
  selection_token_ttl_ms?: number | undefined;
@@ -331,6 +355,7 @@ declare const fabricConfigSchema: z.ZodObject<{
331
355
  retrieval_budget_profile?: "conservative" | "balanced" | "generous" | undefined;
332
356
  embed_enabled?: boolean | undefined;
333
357
  embed_weight?: number | undefined;
358
+ embed_model?: "fast-bge-small-zh-v1.5" | "fast-multilingual-e5-large" | "fast-bge-small-en-v1.5" | "fast-bge-small-en" | "fast-bge-base-en-v1.5" | "fast-bge-base-en" | "fast-all-MiniLM-L6-v2" | undefined;
334
359
  }>;
335
360
 
336
361
  interface ClientPaths {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AgentsMetaNode, a as AgentsIdentitySource, b as AgentsLayer, c as AgentsTopologyType, H as HumanLockEntry, f as fabricConfigSchema, d as AgentsMeta, L as LedgerEntry } from './index-J3Xn5h2J.js';
2
- export { e as AgentsActivationTier, g as AgentsMetaCountersEnvelope, h as AgentsMetaKnowledgeTypeCounters, i as AgentsMetaNodeActivation, j as AiLedgerEntry, k as AuditMode, C as ClientPaths, D as DefaultLayerFilter, F as FabricConfig, l as FabricLanguage, m as HumanLedgerEntry, M as McpPayloadLimits, R as RuleDescription, n as RuleDescriptionIndexItem, o as auditModeSchema, p as clientPathsSchema, q as defaultLayerFilterSchema, r as fabricLanguageSchema, s as mcpPayloadLimitsSchema, t as planContextTopKSchema, u as selectionTokenTtlMsSchema } from './index-J3Xn5h2J.js';
1
+ import { A as AgentsMetaNode, a as AgentsIdentitySource, b as AgentsLayer, c as AgentsTopologyType, H as HumanLockEntry, f as fabricConfigSchema, F as FabricConfig, d as AgentsMeta, L as LedgerEntry } from './index-BqA89S9q.js';
2
+ export { e as AgentsActivationTier, g as AgentsMetaCountersEnvelope, h as AgentsMetaKnowledgeTypeCounters, i as AgentsMetaNodeActivation, j as AiLedgerEntry, k as AuditMode, C as ClientPaths, D as DefaultLayerFilter, l as FabricLanguage, m as HumanLedgerEntry, M as McpPayloadLimits, R as RuleDescription, n as RuleDescriptionIndexItem, o as auditModeSchema, p as clientPathsSchema, q as defaultLayerFilterSchema, r as fabricLanguageSchema, s as mcpPayloadLimitsSchema, t as planContextTopKSchema, u as selectionTokenTtlMsSchema } from './index-BqA89S9q.js';
3
3
  import { Translator } from './i18n/index.js';
4
4
  export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, resolveFabricLocale, zhCNMessages } from './i18n/index.js';
5
5
  import { z } from 'zod';
@@ -1413,6 +1413,49 @@ declare const storeIdentitySchema: z.ZodObject<{
1413
1413
  allowed_scopes?: string[] | undefined;
1414
1414
  }>;
1415
1415
  type StoreIdentity = z.infer<typeof storeIdentitySchema>;
1416
+ declare const STORE_PROJECT_ID_PATTERN: RegExp;
1417
+ declare const storeProjectSchema: z.ZodObject<{
1418
+ id: z.ZodString;
1419
+ name: z.ZodOptional<z.ZodString>;
1420
+ created_at: z.ZodString;
1421
+ }, "strict", z.ZodTypeAny, {
1422
+ created_at: string;
1423
+ id: string;
1424
+ name?: string | undefined;
1425
+ }, {
1426
+ created_at: string;
1427
+ id: string;
1428
+ name?: string | undefined;
1429
+ }>;
1430
+ type StoreProject = z.infer<typeof storeProjectSchema>;
1431
+ declare const storeProjectsFileSchema: z.ZodObject<{
1432
+ projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
1433
+ id: z.ZodString;
1434
+ name: z.ZodOptional<z.ZodString>;
1435
+ created_at: z.ZodString;
1436
+ }, "strict", z.ZodTypeAny, {
1437
+ created_at: string;
1438
+ id: string;
1439
+ name?: string | undefined;
1440
+ }, {
1441
+ created_at: string;
1442
+ id: string;
1443
+ name?: string | undefined;
1444
+ }>, "many">>;
1445
+ }, "strict", z.ZodTypeAny, {
1446
+ projects: {
1447
+ created_at: string;
1448
+ id: string;
1449
+ name?: string | undefined;
1450
+ }[];
1451
+ }, {
1452
+ projects?: {
1453
+ created_at: string;
1454
+ id: string;
1455
+ name?: string | undefined;
1456
+ }[] | undefined;
1457
+ }>;
1458
+ type StoreProjectsFile = z.infer<typeof storeProjectsFileSchema>;
1416
1459
  declare const requiredStoreEntrySchema: z.ZodObject<{
1417
1460
  id: z.ZodString;
1418
1461
  suggested_remote: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"$personal">]>>;
@@ -1427,6 +1470,8 @@ type RequiredStoreEntry = z.infer<typeof requiredStoreEntrySchema>;
1427
1470
  declare const STORE_KNOWLEDGE_TYPE_DIRS: readonly ["models", "decisions", "guidelines", "pitfalls", "processes"];
1428
1471
  declare const STORE_LAYOUT: {
1429
1472
  readonly identityFile: "store.json";
1473
+ readonly projectsFile: "projects.json";
1474
+ readonly countersFile: "counters.json";
1430
1475
  readonly knowledgeDir: "knowledge";
1431
1476
  readonly bindingsDir: "bindings";
1432
1477
  readonly stateDir: "state";
@@ -3054,8 +3099,53 @@ interface MountedStoreDir {
3054
3099
  }
3055
3100
  declare function listStoreKnowledge(store: MountedStoreDir): StoreKnowledgeRef[];
3056
3101
  declare function readKnowledgeAcrossStores(stores: MountedStoreDir[]): StoreKnowledgeRef[];
3102
+ declare function readStoreProjects(storeDir: string): StoreProject[];
3103
+ declare function storeHasProject(storeDir: string, id: string): boolean;
3104
+ declare function addStoreProject(storeDir: string, project: StoreProject): StoreProject[];
3057
3105
  declare function aggregatePendingAcrossStores(stores: MountedStoreDir[]): StoreKnowledgeRef[];
3058
3106
 
3107
+ declare function storeCountersPath(storeDir: string): string;
3108
+ declare function readStoreCounters(storeDir: string): AgentsMetaCounters;
3109
+ /**
3110
+ * Allocate the next stable_id for `(layer, type)` in the given store and persist
3111
+ * the advanced counter to `<storeDir>/counters.json`.
3112
+ *
3113
+ * The read → mutate → atomic-write is guarded by a cross-process advisory lock
3114
+ * keyed on the counters path so two concurrent allocate calls (two windows
3115
+ * approving knowledge into the same store at once) can never read the same
3116
+ * counter and mint a duplicate id (the same invariant the retired
3117
+ * KnowledgeIdAllocator held over agents.meta).
3118
+ */
3119
+ declare function allocateStoreKnowledgeId(layer: Layer, type: KnowledgeType, storeDir: string): Promise<StableId>;
3120
+ /**
3121
+ * Floor a store's `counters.json` at the highest stable_id actually present on
3122
+ * disk, persisting and returning the reconciled envelope.
3123
+ *
3124
+ * This is the producer↔consumer bridge (W4 F1): a BULK import (`store migrate`)
3125
+ * writes entries whose ids were minted elsewhere (collision-remapped from
3126
+ * disk-max) WITHOUT advancing this store's counters.json. Without reconciliation
3127
+ * the next `allocateStoreKnowledgeId` would start from a stale zero and re-mint
3128
+ * an already-present id. Flooring is also the self-heal `doctor` runs to repair a
3129
+ * drifted ledger.
3130
+ *
3131
+ * Floor — never lower — preserves the monotonic invariant (KT-DEC-0004): a slot
3132
+ * already advanced past disk-max (because the highest entry was deleted) keeps
3133
+ * its higher value. Sync write (no lock) because the only callers run in
3134
+ * exclusive one-shot contexts (post-migrate CLI step, `doctor --fix`).
3135
+ */
3136
+ declare function reconcileStoreCounters(storeDir: string): AgentsMetaCounters;
3137
+
3138
+ declare function resolveGlobalRoot(): string;
3139
+ declare function globalConfigPath(globalRoot?: string): string;
3140
+ declare function loadGlobalConfig(globalRoot?: string): GlobalConfig | null;
3141
+ declare function saveGlobalConfig(config: GlobalConfig, globalRoot?: string): void;
3142
+
3143
+ declare function projectConfigPath(projectRoot: string): string;
3144
+ declare function loadProjectConfig(projectRoot: string): FabricConfig | null;
3145
+ declare function saveProjectConfig(config: FabricConfig, projectRoot: string): void;
3146
+
3147
+ declare function buildStoreResolveInput(projectRoot: string, globalRoot?: string): StoreResolveInput | null;
3148
+
3059
3149
  interface SecretFinding {
3060
3150
  rule: string;
3061
3151
  line: number;
@@ -4043,14 +4133,14 @@ declare const initContextDomainGroupSchema: z.ZodObject<{
4043
4133
  topology_type: z.ZodOptional<z.ZodEnum<["mirror", "cross-cutting"]>>;
4044
4134
  target_path: z.ZodOptional<z.ZodString>;
4045
4135
  }, "strip", z.ZodTypeAny, {
4046
- paths: string[];
4047
4136
  name: string;
4137
+ paths: string[];
4048
4138
  summary?: string | undefined;
4049
4139
  target_path?: string | undefined;
4050
4140
  topology_type?: "mirror" | "cross-cutting" | undefined;
4051
4141
  }, {
4052
- paths: string[];
4053
4142
  name: string;
4143
+ paths: string[];
4054
4144
  summary?: string | undefined;
4055
4145
  target_path?: string | undefined;
4056
4146
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4145,14 +4235,14 @@ declare const initContextSchema: z.ZodObject<{
4145
4235
  topology_type: z.ZodOptional<z.ZodEnum<["mirror", "cross-cutting"]>>;
4146
4236
  target_path: z.ZodOptional<z.ZodString>;
4147
4237
  }, "strip", z.ZodTypeAny, {
4148
- paths: string[];
4149
4238
  name: string;
4239
+ paths: string[];
4150
4240
  summary?: string | undefined;
4151
4241
  target_path?: string | undefined;
4152
4242
  topology_type?: "mirror" | "cross-cutting" | undefined;
4153
4243
  }, {
4154
- paths: string[];
4155
4244
  name: string;
4245
+ paths: string[];
4156
4246
  summary?: string | undefined;
4157
4247
  target_path?: string | undefined;
4158
4248
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4198,8 +4288,8 @@ declare const initContextSchema: z.ZodObject<{
4198
4288
  }[] | undefined;
4199
4289
  }[];
4200
4290
  domain_groups: {
4201
- paths: string[];
4202
4291
  name: string;
4292
+ paths: string[];
4203
4293
  summary?: string | undefined;
4204
4294
  target_path?: string | undefined;
4205
4295
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -4233,8 +4323,8 @@ declare const initContextSchema: z.ZodObject<{
4233
4323
  }[] | undefined;
4234
4324
  }[];
4235
4325
  domain_groups: {
4236
- paths: string[];
4237
4326
  name: string;
4327
+ paths: string[];
4238
4328
  summary?: string | undefined;
4239
4329
  target_path?: string | undefined;
4240
4330
  topology_type?: "mirror" | "cross-cutting" | undefined;
@@ -8255,6 +8345,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8255
8345
  }[];
8256
8346
  skip_reason: string | null;
8257
8347
  }>, "many">>;
8348
+ cite_stores: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
8258
8349
  client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
8259
8350
  turn_id: z.ZodString;
8260
8351
  envelope_index: z.ZodOptional<z.ZodNumber>;
@@ -8285,6 +8376,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8285
8376
  turn_id: string;
8286
8377
  correlation_id?: string | undefined;
8287
8378
  session_id?: string | undefined;
8379
+ cite_stores?: (string | null)[] | undefined;
8288
8380
  client?: "cursor" | "cc" | "codex" | undefined;
8289
8381
  envelope_index?: number | undefined;
8290
8382
  }, {
@@ -8307,6 +8399,7 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
8307
8399
  }[];
8308
8400
  skip_reason: string | null;
8309
8401
  }[] | undefined;
8402
+ cite_stores?: (string | null)[] | undefined;
8310
8403
  client?: "cursor" | "cc" | "codex" | undefined;
8311
8404
  envelope_index?: number | undefined;
8312
8405
  }>;
@@ -8942,6 +9035,127 @@ declare const clientCapabilitySnapshotEventSchema: z.ZodObject<{
8942
9035
  correlation_id?: string | undefined;
8943
9036
  session_id?: string | undefined;
8944
9037
  }>;
9038
+ declare const sessionEndedEventSchema: z.ZodObject<{
9039
+ event_type: z.ZodLiteral<"session_ended">;
9040
+ kind: z.ZodLiteral<"fabric-event">;
9041
+ id: z.ZodString;
9042
+ ts: z.ZodNumber;
9043
+ schema_version: z.ZodLiteral<1>;
9044
+ correlation_id: z.ZodOptional<z.ZodString>;
9045
+ session_id: z.ZodOptional<z.ZodString>;
9046
+ }, "strip", z.ZodTypeAny, {
9047
+ id: string;
9048
+ ts: number;
9049
+ schema_version: 1;
9050
+ kind: "fabric-event";
9051
+ event_type: "session_ended";
9052
+ correlation_id?: string | undefined;
9053
+ session_id?: string | undefined;
9054
+ }, {
9055
+ id: string;
9056
+ ts: number;
9057
+ schema_version: 1;
9058
+ kind: "fabric-event";
9059
+ event_type: "session_ended";
9060
+ correlation_id?: string | undefined;
9061
+ session_id?: string | undefined;
9062
+ }>;
9063
+ declare const fileMutatedEventSchema: z.ZodObject<{
9064
+ event_type: z.ZodLiteral<"file_mutated">;
9065
+ path: z.ZodString;
9066
+ tool_call_id: z.ZodString;
9067
+ tool_name: z.ZodOptional<z.ZodString>;
9068
+ source_event_id: z.ZodOptional<z.ZodString>;
9069
+ store_id: z.ZodOptional<z.ZodString>;
9070
+ kind: z.ZodLiteral<"fabric-event">;
9071
+ id: z.ZodString;
9072
+ ts: z.ZodNumber;
9073
+ schema_version: z.ZodLiteral<1>;
9074
+ correlation_id: z.ZodOptional<z.ZodString>;
9075
+ session_id: z.ZodOptional<z.ZodString>;
9076
+ }, "strip", z.ZodTypeAny, {
9077
+ path: string;
9078
+ id: string;
9079
+ ts: number;
9080
+ schema_version: 1;
9081
+ kind: "fabric-event";
9082
+ event_type: "file_mutated";
9083
+ tool_call_id: string;
9084
+ correlation_id?: string | undefined;
9085
+ session_id?: string | undefined;
9086
+ tool_name?: string | undefined;
9087
+ source_event_id?: string | undefined;
9088
+ store_id?: string | undefined;
9089
+ }, {
9090
+ path: string;
9091
+ id: string;
9092
+ ts: number;
9093
+ schema_version: 1;
9094
+ kind: "fabric-event";
9095
+ event_type: "file_mutated";
9096
+ tool_call_id: string;
9097
+ correlation_id?: string | undefined;
9098
+ session_id?: string | undefined;
9099
+ tool_name?: string | undefined;
9100
+ source_event_id?: string | undefined;
9101
+ store_id?: string | undefined;
9102
+ }>;
9103
+ declare const precompactObservedEventSchema: z.ZodObject<{
9104
+ event_type: z.ZodLiteral<"precompact_observed">;
9105
+ kind: z.ZodLiteral<"fabric-event">;
9106
+ id: z.ZodString;
9107
+ ts: z.ZodNumber;
9108
+ schema_version: z.ZodLiteral<1>;
9109
+ correlation_id: z.ZodOptional<z.ZodString>;
9110
+ session_id: z.ZodOptional<z.ZodString>;
9111
+ }, "strip", z.ZodTypeAny, {
9112
+ id: string;
9113
+ ts: number;
9114
+ schema_version: 1;
9115
+ kind: "fabric-event";
9116
+ event_type: "precompact_observed";
9117
+ correlation_id?: string | undefined;
9118
+ session_id?: string | undefined;
9119
+ }, {
9120
+ id: string;
9121
+ ts: number;
9122
+ schema_version: 1;
9123
+ kind: "fabric-event";
9124
+ event_type: "precompact_observed";
9125
+ correlation_id?: string | undefined;
9126
+ session_id?: string | undefined;
9127
+ }>;
9128
+ declare const graphEdgeCandidateRequestedEventSchema: z.ZodObject<{
9129
+ event_type: z.ZodLiteral<"graph_edge_candidate_requested">;
9130
+ stable_id: z.ZodString;
9131
+ store: z.ZodOptional<z.ZodString>;
9132
+ kind: z.ZodLiteral<"fabric-event">;
9133
+ id: z.ZodString;
9134
+ ts: z.ZodNumber;
9135
+ schema_version: z.ZodLiteral<1>;
9136
+ correlation_id: z.ZodOptional<z.ZodString>;
9137
+ session_id: z.ZodOptional<z.ZodString>;
9138
+ }, "strip", z.ZodTypeAny, {
9139
+ id: string;
9140
+ stable_id: string;
9141
+ ts: number;
9142
+ schema_version: 1;
9143
+ kind: "fabric-event";
9144
+ event_type: "graph_edge_candidate_requested";
9145
+ correlation_id?: string | undefined;
9146
+ session_id?: string | undefined;
9147
+ store?: string | undefined;
9148
+ }, {
9149
+ id: string;
9150
+ stable_id: string;
9151
+ ts: number;
9152
+ schema_version: 1;
9153
+ kind: "fabric-event";
9154
+ event_type: "graph_edge_candidate_requested";
9155
+ correlation_id?: string | undefined;
9156
+ session_id?: string | undefined;
9157
+ store?: string | undefined;
9158
+ }>;
8945
9159
  declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
8946
9160
  event_type: z.ZodLiteral<"knowledge_context_planned">;
8947
9161
  target_paths: z.ZodArray<z.ZodString, "many">;
@@ -10296,6 +10510,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10296
10510
  }[];
10297
10511
  skip_reason: string | null;
10298
10512
  }>, "many">>;
10513
+ cite_stores: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
10299
10514
  client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
10300
10515
  turn_id: z.ZodString;
10301
10516
  envelope_index: z.ZodOptional<z.ZodNumber>;
@@ -10326,6 +10541,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10326
10541
  turn_id: string;
10327
10542
  correlation_id?: string | undefined;
10328
10543
  session_id?: string | undefined;
10544
+ cite_stores?: (string | null)[] | undefined;
10329
10545
  client?: "cursor" | "cc" | "codex" | undefined;
10330
10546
  envelope_index?: number | undefined;
10331
10547
  }, {
@@ -10348,6 +10564,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10348
10564
  }[];
10349
10565
  skip_reason: string | null;
10350
10566
  }[] | undefined;
10567
+ cite_stores?: (string | null)[] | undefined;
10351
10568
  client?: "cursor" | "cc" | "codex" | undefined;
10352
10569
  envelope_index?: number | undefined;
10353
10570
  }>, z.ZodObject<{
@@ -10965,6 +11182,123 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
10965
11182
  client: "cursor" | "cc" | "codex";
10966
11183
  correlation_id?: string | undefined;
10967
11184
  session_id?: string | undefined;
11185
+ }>, z.ZodObject<{
11186
+ event_type: z.ZodLiteral<"session_ended">;
11187
+ kind: z.ZodLiteral<"fabric-event">;
11188
+ id: z.ZodString;
11189
+ ts: z.ZodNumber;
11190
+ schema_version: z.ZodLiteral<1>;
11191
+ correlation_id: z.ZodOptional<z.ZodString>;
11192
+ session_id: z.ZodOptional<z.ZodString>;
11193
+ }, "strip", z.ZodTypeAny, {
11194
+ id: string;
11195
+ ts: number;
11196
+ schema_version: 1;
11197
+ kind: "fabric-event";
11198
+ event_type: "session_ended";
11199
+ correlation_id?: string | undefined;
11200
+ session_id?: string | undefined;
11201
+ }, {
11202
+ id: string;
11203
+ ts: number;
11204
+ schema_version: 1;
11205
+ kind: "fabric-event";
11206
+ event_type: "session_ended";
11207
+ correlation_id?: string | undefined;
11208
+ session_id?: string | undefined;
11209
+ }>, z.ZodObject<{
11210
+ event_type: z.ZodLiteral<"file_mutated">;
11211
+ path: z.ZodString;
11212
+ tool_call_id: z.ZodString;
11213
+ tool_name: z.ZodOptional<z.ZodString>;
11214
+ source_event_id: z.ZodOptional<z.ZodString>;
11215
+ store_id: z.ZodOptional<z.ZodString>;
11216
+ kind: z.ZodLiteral<"fabric-event">;
11217
+ id: z.ZodString;
11218
+ ts: z.ZodNumber;
11219
+ schema_version: z.ZodLiteral<1>;
11220
+ correlation_id: z.ZodOptional<z.ZodString>;
11221
+ session_id: z.ZodOptional<z.ZodString>;
11222
+ }, "strip", z.ZodTypeAny, {
11223
+ path: string;
11224
+ id: string;
11225
+ ts: number;
11226
+ schema_version: 1;
11227
+ kind: "fabric-event";
11228
+ event_type: "file_mutated";
11229
+ tool_call_id: string;
11230
+ correlation_id?: string | undefined;
11231
+ session_id?: string | undefined;
11232
+ tool_name?: string | undefined;
11233
+ source_event_id?: string | undefined;
11234
+ store_id?: string | undefined;
11235
+ }, {
11236
+ path: string;
11237
+ id: string;
11238
+ ts: number;
11239
+ schema_version: 1;
11240
+ kind: "fabric-event";
11241
+ event_type: "file_mutated";
11242
+ tool_call_id: string;
11243
+ correlation_id?: string | undefined;
11244
+ session_id?: string | undefined;
11245
+ tool_name?: string | undefined;
11246
+ source_event_id?: string | undefined;
11247
+ store_id?: string | undefined;
11248
+ }>, z.ZodObject<{
11249
+ event_type: z.ZodLiteral<"precompact_observed">;
11250
+ kind: z.ZodLiteral<"fabric-event">;
11251
+ id: z.ZodString;
11252
+ ts: z.ZodNumber;
11253
+ schema_version: z.ZodLiteral<1>;
11254
+ correlation_id: z.ZodOptional<z.ZodString>;
11255
+ session_id: z.ZodOptional<z.ZodString>;
11256
+ }, "strip", z.ZodTypeAny, {
11257
+ id: string;
11258
+ ts: number;
11259
+ schema_version: 1;
11260
+ kind: "fabric-event";
11261
+ event_type: "precompact_observed";
11262
+ correlation_id?: string | undefined;
11263
+ session_id?: string | undefined;
11264
+ }, {
11265
+ id: string;
11266
+ ts: number;
11267
+ schema_version: 1;
11268
+ kind: "fabric-event";
11269
+ event_type: "precompact_observed";
11270
+ correlation_id?: string | undefined;
11271
+ session_id?: string | undefined;
11272
+ }>, z.ZodObject<{
11273
+ event_type: z.ZodLiteral<"graph_edge_candidate_requested">;
11274
+ stable_id: z.ZodString;
11275
+ store: z.ZodOptional<z.ZodString>;
11276
+ kind: z.ZodLiteral<"fabric-event">;
11277
+ id: z.ZodString;
11278
+ ts: z.ZodNumber;
11279
+ schema_version: z.ZodLiteral<1>;
11280
+ correlation_id: z.ZodOptional<z.ZodString>;
11281
+ session_id: z.ZodOptional<z.ZodString>;
11282
+ }, "strip", z.ZodTypeAny, {
11283
+ id: string;
11284
+ stable_id: string;
11285
+ ts: number;
11286
+ schema_version: 1;
11287
+ kind: "fabric-event";
11288
+ event_type: "graph_edge_candidate_requested";
11289
+ correlation_id?: string | undefined;
11290
+ session_id?: string | undefined;
11291
+ store?: string | undefined;
11292
+ }, {
11293
+ id: string;
11294
+ stable_id: string;
11295
+ ts: number;
11296
+ schema_version: 1;
11297
+ kind: "fabric-event";
11298
+ event_type: "graph_edge_candidate_requested";
11299
+ correlation_id?: string | undefined;
11300
+ session_id?: string | undefined;
11301
+ store?: string | undefined;
10968
11302
  }>]>;
10969
11303
  type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
10970
11304
  type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
@@ -11020,7 +11354,11 @@ type SkillPhaseTransitionEvent = z.infer<typeof skillPhaseTransitionEventSchema>
11020
11354
  type SkillTriggerCandidateEvent = z.infer<typeof skillTriggerCandidateEventSchema>;
11021
11355
  type LlmJudgeRunEvent = z.infer<typeof llmJudgeRunEventSchema>;
11022
11356
  type ClientCapabilitySnapshotEvent = z.infer<typeof clientCapabilitySnapshotEventSchema>;
11023
- type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | InstallDiffAppliedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeIdRedirectEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeUnarchivedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent | CiteContractPolicyActivatedEvent | KnowledgeMetaAutoHealedEvent | EventsRotatedEvent | ServeLockClearedEvent | KnowledgeEnrichedEvent | SessionArchiveAttemptedEvent | HookSurfaceEmittedEvent | HookSignalEmittedEvent | McpStdioTraceEvent | PayloadGuardObservedEvent | SkillInvocationStartedEvent | SkillInvocationCompletedEvent | SkillPhaseTransitionEvent | SkillTriggerCandidateEvent | LlmJudgeRunEvent | ClientCapabilitySnapshotEvent;
11357
+ type SessionEndedEvent = z.infer<typeof sessionEndedEventSchema>;
11358
+ type FileMutatedEvent = z.infer<typeof fileMutatedEventSchema>;
11359
+ type PrecompactObservedEvent = z.infer<typeof precompactObservedEventSchema>;
11360
+ type GraphEdgeCandidateRequestedEvent = z.infer<typeof graphEdgeCandidateRequestedEventSchema>;
11361
+ type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | InstallDiffAppliedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeIdRedirectEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeUnarchivedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent | CiteContractPolicyActivatedEvent | KnowledgeMetaAutoHealedEvent | EventsRotatedEvent | ServeLockClearedEvent | KnowledgeEnrichedEvent | SessionArchiveAttemptedEvent | HookSurfaceEmittedEvent | HookSignalEmittedEvent | McpStdioTraceEvent | PayloadGuardObservedEvent | SkillInvocationStartedEvent | SkillInvocationCompletedEvent | SkillPhaseTransitionEvent | SkillTriggerCandidateEvent | LlmJudgeRunEvent | ClientCapabilitySnapshotEvent | SessionEndedEvent | FileMutatedEvent | PrecompactObservedEvent | GraphEdgeCandidateRequestedEvent;
11024
11362
  type EventLedgerEventType = EventLedgerEvent["event_type"];
11025
11363
  type EventLedgerEventInputFor<T extends EventLedgerEvent> = T extends EventLedgerEvent ? Omit<T, "kind" | "id" | "ts" | "schema_version" | "correlation_id" | "session_id"> & Partial<Pick<T, "id" | "ts" | "correlation_id" | "session_id">> : never;
11026
11364
  type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
@@ -11102,4 +11440,4 @@ declare function resolveRetrievalBudget(overrides?: RetrievalBudgetOverrides): R
11102
11440
  /** Exposed for tests / introspection — the raw profile table. */
11103
11441
  declare function retrievalBudgetProfile(profile: RetrievalBudgetProfile): ResolvedRetrievalBudget;
11104
11442
 
11105
- export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CiteCommitment, type CiteCommitmentOperator, type CiteCommitmentOperatorKind, type CiteContractPolicyActivatedEvent, type CitePolicyActivatedEvent, type CiteTag, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type ClientCapabilitySnapshotEvent, type CodexSkillPathMigratedEvent, type CrossStoreLintInput, type CrossStoreRefViolation, DEFAULT_RETRIEVAL_BUDGET_PROFILE, type DebugBundle, type DebugBundleInput, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EntryLayer, type EntryScopeMetadata, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, type FabricConfigSchemaShape, type FabricEvent, type FailureStage, type FailureTrace, type FindStoreExecutableViolationsOptions, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, GLOBAL_BINDINGS_DIR, GLOBAL_REF_PATTERN, GLOBAL_STATE_DIR, type GlobalConfig, type GlobalRef, type HookSignalEmittedEvent, type HookSurfaceEmittedEvent, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, type InitStoreOptions, type InstallDiffAppliedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, KNOWN_SCOPE_PREFIXES, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeIdRedirectEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeProvenance, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, type KnowledgeUnarchivedEvent, Layer, type LedgerAppendedEvent, LedgerEntry, type LlmJudgeRunEvent, type LocalKnowledgeId, type LockApprovedEvent, type LockDriftEvent, MCP_STORE_AWARE_CONTRACTS, MCP_STORE_AWARE_TOOLS, type McpConfigMigratedEvent, type McpEventLedgerEvent, type McpStdioTraceEvent, type McpStoreAwareContract, type McpStoreAwareTool, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type MountedStore, type MountedStoreDir, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, PARITY_CLIENTS, PARITY_SURFACES, PERSONAL_SCOPE, PERSONAL_STORE_SENTINEL, PROJECT_ROOT_SIGNALS, type PanelFieldGroup, type PanelFieldMeta, type ParityCapability, type ParityClient, type ParityClientExpectation, type ParityMatrix, type ParitySurface, type ParseCiteLineResult, type ParsedGlobalRef, type PayloadGuardObservedEvent, type PendingAutoArchivedEvent, type ProjectRootGoldenCase, type ProjectRootResolution, type ProjectRootResolver, type ProjectRootSignal, type ProjectRootSignals, type QualifiedCandidate, type QualifiedIdResolution, REDACTION_PLACEHOLDER_PREFIX, type ReadSetEntry, type ReadSetGoldenCase, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type RequiredStoreEntry, type ResolutionCandidate, type ResolutionResult, type ResolutionWarning, type ResolveOptions, type ResolvedBindingsSnapshot, type ResolvedEntry, type ResolvedRetrievalBudget, ResolverNotImplementedError, type RetrievalBudgetOverrides, type RetrievalBudgetProfile, SCOPE_COORDINATE_PATTERN, STORES_ROOT_DIR, STORE_GITIGNORE, STORE_KNOWLEDGE_TYPE_DIRS, STORE_LAYOUT, STORE_PENDING_DIR, STORE_RESOLVER_WARNING_CODES, STORE_UUID_PATTERN, type ScanRecommendationInput, type ScopeCoordinate, type SecretFinding, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, type SkillInvocationCompletedEvent, type SkillInvocationStartedEvent, type SkillPhaseTransitionEvent, type SkillTriggerCandidateEvent, StableId, type StoreAwareEntry, type StoreCounters, type StoreExplain, type StoreIdentity, type StoreKnowledgeRef, type StoreLayout, type StoreReadSet, type StoreResolveInput, type StoreResolver, type StoreResolverWarning, type StoreResolverWarningCode, type StoreVisibility, Translator, UID_SEGMENT_PATTERN, type Uid, type ValidateResult, type WriteBindingsSnapshotOptions, type WriteTarget, type WrittenToStore, addMountedStore, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aggregatePendingAcrossStores, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, bindRequiredStore, bindingsSnapshotPath, bootstrapMarkerMigratedEventSchema, buildDebugBundle, buildFailureTrace, buildScanRecommendations, candidateFileEntrySchema, citeContractPolicyActivatedEventSchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientCapabilitySnapshotEventSchema, codexSkillPathMigratedEventSchema, createProjectRootResolver, createStoreResolver, defaultAgentsMetaCounters, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, detachMountedStore, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, entryScopeMetadataSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, explainStore, fabricConfigSchema, fabricEventSchema, findMountedStore, findStoreExecutableViolations, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, formatGlobalRef, getPanelFieldByKey, getPanelFields, globalConfigSchema, globalRefSchema, hasSecrets, hookSignalEmittedEventSchema, hookSurfaceEmittedEventSchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, initStore, installDiffAppliedEventSchema, isKnowledgeStableId, isPersonalLeakIntoSharedStore, isPersonalScope, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeIdRedirectEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeProvenanceSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, knowledgeUnarchivedEventSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lintCrossStoreReferences, listStoreKnowledge, llmJudgeRunEventSchema, localKnowledgeIdSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpStdioTraceEventSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, mountedStoreSchema, normalizeCiteTag, onboardSlotSchema, parityCapabilitySchema, parityClientExpectationSchema, parityClientSchema, parityMatrixSchema, paritySurfaceSchema, parseCiteLine, parseGlobalRef, payloadGuardObservedEventSchema, pendingAutoArchivedEventSchema, projectRootGoldenCaseSchema, projectRootGoldenFileSchema, projectRootResolutionSchema, projectRootSignalSchema, projectRootSignalsSchema, readBindingsSnapshot, readKnowledgeAcrossStores, readSetEntrySchema, readSetGoldenCaseSchema, readSetGoldenFileSchema, readStoreIdentity, reapplyCompletedEventSchema, recognizeStoreDir, redactSecrets, relevanceMigrationRunEventSchema, requiredStoreEntrySchema, resolveCandidates, resolveRetrievalBudget, resolveStoreQualifiedId, resolvedBindingsSnapshotSchema, retrievalBudgetProfile, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, scanForSecrets, scopeCoordinateSchema, scopeRoot, scrubRemoteUrl, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, skillInvocationCompletedEventSchema, skillInvocationStartedEventSchema, skillPhaseTransitionEventSchema, skillTriggerCandidateEventSchema, storeAwareEntrySchema, storeCountersSchema, storeIdentitySchema, storeKnowledgeTypeDir, storeReadSetSchema, storeRelativePath, storeResolveInputSchema, storeResolverWarningCodeSchema, storeResolverWarningSchema, storeUuidSchema, tokenize, uidSchema, withDerivedAgentsMetaNodeDefaults, writeBindingsSnapshot, writeTargetSchema, writtenToStoreSchema };
11443
+ export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CiteCommitment, type CiteCommitmentOperator, type CiteCommitmentOperatorKind, type CiteContractPolicyActivatedEvent, type CitePolicyActivatedEvent, type CiteTag, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type ClientCapabilitySnapshotEvent, type CodexSkillPathMigratedEvent, type CrossStoreLintInput, type CrossStoreRefViolation, DEFAULT_RETRIEVAL_BUDGET_PROFILE, type DebugBundle, type DebugBundleInput, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EntryLayer, type EntryScopeMetadata, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, FabricConfig, type FabricConfigSchemaShape, type FabricEvent, type FailureStage, type FailureTrace, type FileMutatedEvent, type FindStoreExecutableViolationsOptions, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, GLOBAL_BINDINGS_DIR, GLOBAL_REF_PATTERN, GLOBAL_STATE_DIR, type GlobalConfig, type GlobalRef, type GraphEdgeCandidateRequestedEvent, type HookSignalEmittedEvent, type HookSurfaceEmittedEvent, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, type InitStoreOptions, type InstallDiffAppliedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, KNOWN_SCOPE_PREFIXES, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeIdRedirectEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeProvenance, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, type KnowledgeUnarchivedEvent, Layer, type LedgerAppendedEvent, LedgerEntry, type LlmJudgeRunEvent, type LocalKnowledgeId, type LockApprovedEvent, type LockDriftEvent, MCP_STORE_AWARE_CONTRACTS, MCP_STORE_AWARE_TOOLS, type McpConfigMigratedEvent, type McpEventLedgerEvent, type McpStdioTraceEvent, type McpStoreAwareContract, type McpStoreAwareTool, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type MountedStore, type MountedStoreDir, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, PARITY_CLIENTS, PARITY_SURFACES, PERSONAL_SCOPE, PERSONAL_STORE_SENTINEL, PROJECT_ROOT_SIGNALS, type PanelFieldGroup, type PanelFieldMeta, type ParityCapability, type ParityClient, type ParityClientExpectation, type ParityMatrix, type ParitySurface, type ParseCiteLineResult, type ParsedGlobalRef, type PayloadGuardObservedEvent, type PendingAutoArchivedEvent, type PrecompactObservedEvent, type ProjectRootGoldenCase, type ProjectRootResolution, type ProjectRootResolver, type ProjectRootSignal, type ProjectRootSignals, type QualifiedCandidate, type QualifiedIdResolution, REDACTION_PLACEHOLDER_PREFIX, type ReadSetEntry, type ReadSetGoldenCase, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type RequiredStoreEntry, type ResolutionCandidate, type ResolutionResult, type ResolutionWarning, type ResolveOptions, type ResolvedBindingsSnapshot, type ResolvedEntry, type ResolvedRetrievalBudget, ResolverNotImplementedError, type RetrievalBudgetOverrides, type RetrievalBudgetProfile, SCOPE_COORDINATE_PATTERN, STORES_ROOT_DIR, STORE_GITIGNORE, STORE_KNOWLEDGE_TYPE_DIRS, STORE_LAYOUT, STORE_PENDING_DIR, STORE_PROJECT_ID_PATTERN, STORE_RESOLVER_WARNING_CODES, STORE_UUID_PATTERN, type ScanRecommendationInput, type ScopeCoordinate, type SecretFinding, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, type SessionEndedEvent, type SkillInvocationCompletedEvent, type SkillInvocationStartedEvent, type SkillPhaseTransitionEvent, type SkillTriggerCandidateEvent, StableId, type StoreAwareEntry, type StoreCounters, type StoreExplain, type StoreIdentity, type StoreKnowledgeRef, type StoreLayout, type StoreProject, type StoreProjectsFile, type StoreReadSet, type StoreResolveInput, type StoreResolver, type StoreResolverWarning, type StoreResolverWarningCode, type StoreVisibility, Translator, UID_SEGMENT_PATTERN, type Uid, type ValidateResult, type WriteBindingsSnapshotOptions, type WriteTarget, type WrittenToStore, addMountedStore, addStoreProject, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aggregatePendingAcrossStores, aiLedgerEntrySchema, allocateKnowledgeId, allocateStoreKnowledgeId, assistantTurnObservedEventSchema, bindRequiredStore, bindingsSnapshotPath, bootstrapMarkerMigratedEventSchema, buildDebugBundle, buildFailureTrace, buildScanRecommendations, buildStoreResolveInput, candidateFileEntrySchema, citeContractPolicyActivatedEventSchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientCapabilitySnapshotEventSchema, codexSkillPathMigratedEventSchema, createProjectRootResolver, createStoreResolver, defaultAgentsMetaCounters, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, detachMountedStore, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, entryScopeMetadataSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, explainStore, fabricConfigSchema, fabricEventSchema, fileMutatedEventSchema, findMountedStore, findStoreExecutableViolations, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, formatGlobalRef, getPanelFieldByKey, getPanelFields, globalConfigPath, globalConfigSchema, globalRefSchema, graphEdgeCandidateRequestedEventSchema, hasSecrets, hookSignalEmittedEventSchema, hookSurfaceEmittedEventSchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, initStore, installDiffAppliedEventSchema, isKnowledgeStableId, isPersonalLeakIntoSharedStore, isPersonalScope, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeIdRedirectEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeProvenanceSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, knowledgeUnarchivedEventSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lintCrossStoreReferences, listStoreKnowledge, llmJudgeRunEventSchema, loadGlobalConfig, loadProjectConfig, localKnowledgeIdSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpStdioTraceEventSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, mountedStoreSchema, normalizeCiteTag, onboardSlotSchema, parityCapabilitySchema, parityClientExpectationSchema, parityClientSchema, parityMatrixSchema, paritySurfaceSchema, parseCiteLine, parseGlobalRef, payloadGuardObservedEventSchema, pendingAutoArchivedEventSchema, precompactObservedEventSchema, projectConfigPath, projectRootGoldenCaseSchema, projectRootGoldenFileSchema, projectRootResolutionSchema, projectRootSignalSchema, projectRootSignalsSchema, readBindingsSnapshot, readKnowledgeAcrossStores, readSetEntrySchema, readSetGoldenCaseSchema, readSetGoldenFileSchema, readStoreCounters, readStoreIdentity, readStoreProjects, reapplyCompletedEventSchema, recognizeStoreDir, reconcileStoreCounters, redactSecrets, relevanceMigrationRunEventSchema, requiredStoreEntrySchema, resolveCandidates, resolveGlobalRoot, resolveRetrievalBudget, resolveStoreQualifiedId, resolvedBindingsSnapshotSchema, retrievalBudgetProfile, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, saveGlobalConfig, saveProjectConfig, scanForSecrets, scopeCoordinateSchema, scopeRoot, scrubRemoteUrl, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, sessionEndedEventSchema, skillInvocationCompletedEventSchema, skillInvocationStartedEventSchema, skillPhaseTransitionEventSchema, skillTriggerCandidateEventSchema, storeAwareEntrySchema, storeCountersPath, storeCountersSchema, storeHasProject, storeIdentitySchema, storeKnowledgeTypeDir, storeProjectSchema, storeProjectsFileSchema, storeReadSetSchema, storeRelativePath, storeResolveInputSchema, storeResolverWarningCodeSchema, storeResolverWarningSchema, storeUuidSchema, tokenize, uidSchema, withDerivedAgentsMetaNodeDefaults, writeBindingsSnapshot, writeTargetSchema, writtenToStoreSchema };