@fenglimg/fabric-shared 2.3.0-rc.1 → 2.3.0-rc.2

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,5 +1,5 @@
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-BqsM1bzx.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-BqsM1bzx.js';
1
+ import { A as AgentsMetaNode, a as AgentsIdentitySource, b as AgentsTopologyType, H as HumanLockEntry, f as fabricConfigSchema, S as StoreIdentity, c as StoreProject, G as GlobalConfig, F as FabricConfig, M as MountedStore, R as RequiredStoreEntry, d as AgentsMeta, L as LedgerEntry } from './index-BO7itJ8e.js';
2
+ export { e as AgentsMetaCountersEnvelope, g as AgentsMetaKnowledgeTypeCounters, h as AiLedgerEntry, i as AuditMode, C as ClientPaths, D as DefaultLayerFilter, j as FabricLanguage, k as GLOBAL_BINDINGS_DIR, l as GLOBAL_STATE_DIR, m as HumanLedgerEntry, n as McpPayloadLimits, P as PERSONAL_STORE_SENTINEL, o as RecallScore, p as RecallScoreBreakdown, q as RuleDescription, r as RuleDescriptionIndexItem, s as STORES_ROOT_DIR, t as STORE_ALIAS_PATTERN, u as STORE_KNOWLEDGE_TYPE_DIRS, v as STORE_LAYOUT, w as STORE_MOUNT_GROUPS, x as STORE_MOUNT_NAME_PATTERN, y as STORE_PROJECT_ID_PATTERN, z as STORE_UUID_PATTERN, B as StoreLayout, E as StoreMountGroup, I as StoreProjectsFile, J as auditModeSchema, K as clientPathsSchema, N as defaultLayerFilterSchema, O as deriveMountLabel, Q as fabricConfigLoadSchema, T as fabricLanguageSchema, U as globalConfigSchema, V as isNonPersonalRequiredStore, W as mcpPayloadLimitsSchema, X as migrateRequiredStores, Y as mountedStoreSchema, Z as nudgeModeSchema, _ as observeConfigSchema, $ as planContextTopKSchema, a0 as requiredStoreEntrySchema, a1 as selectionTokenTtlMsSchema, a2 as storeAliasSchema, a3 as storeIdentitySchema, a4 as storeKnowledgeTypeDir, a5 as storeMountGroup, a6 as storeMountNameSchema, a7 as storeMountSubPath, a8 as storeProjectSchema, a9 as storeProjectsFileSchema, aa as storeRelativePath, ab as storeRelativePathForMount, ac as storeUuidSchema, ad as writeRouteSchema } from './index-BO7itJ8e.js';
3
3
  import { T as Translator } from './types-qg4xXVuT.js';
4
4
  export { L as Locale, M as Messages, a as TranslationKey } from './types-qg4xXVuT.js';
5
5
  export { PROTECTED_TOKENS, ProtectedToken, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, resolveFabricLocale, resolveGlobalLocale, zhCNMessages } from './i18n/index.js';
@@ -1290,235 +1290,6 @@ declare function getPanelFields(): readonly PanelFieldMeta[];
1290
1290
  */
1291
1291
  declare function getPanelFieldByKey(key: string): PanelFieldMeta | undefined;
1292
1292
 
1293
- declare const STORE_UUID_PATTERN: RegExp;
1294
- declare const storeUuidSchema: z.ZodString;
1295
- declare const STORE_ALIAS_PATTERN: RegExp;
1296
- declare const storeAliasSchema: z.ZodString;
1297
- declare const PERSONAL_STORE_SENTINEL: "$personal";
1298
- declare const storeIdentitySchema: z.ZodObject<{
1299
- store_uuid: z.ZodString;
1300
- created_at: z.ZodString;
1301
- canonical_alias: z.ZodOptional<z.ZodString>;
1302
- description: z.ZodOptional<z.ZodString>;
1303
- allowed_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1304
- }, "strict", z.ZodTypeAny, {
1305
- store_uuid: string;
1306
- created_at: string;
1307
- canonical_alias?: string | undefined;
1308
- description?: string | undefined;
1309
- allowed_scopes?: string[] | undefined;
1310
- }, {
1311
- store_uuid: string;
1312
- created_at: string;
1313
- canonical_alias?: string | undefined;
1314
- description?: string | undefined;
1315
- allowed_scopes?: string[] | undefined;
1316
- }>;
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>;
1363
- declare const requiredStoreEntrySchema: z.ZodObject<{
1364
- id: z.ZodString;
1365
- suggested_remote: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"$personal">]>>;
1366
- }, "strict", z.ZodTypeAny, {
1367
- id: string;
1368
- suggested_remote?: string | undefined;
1369
- }, {
1370
- id: string;
1371
- suggested_remote?: string | undefined;
1372
- }>;
1373
- type RequiredStoreEntry = z.infer<typeof requiredStoreEntrySchema>;
1374
- declare const STORE_KNOWLEDGE_TYPE_DIRS: readonly ["models", "decisions", "guidelines", "pitfalls", "processes"];
1375
- declare const STORE_LAYOUT: {
1376
- readonly identityFile: "store.json";
1377
- readonly projectsFile: "projects.json";
1378
- readonly countersFile: "counters.json";
1379
- readonly knowledgeDir: "knowledge";
1380
- readonly bindingsDir: "bindings";
1381
- readonly stateDir: "state";
1382
- };
1383
- type StoreLayout = typeof STORE_LAYOUT;
1384
- declare const STORES_ROOT_DIR = "stores";
1385
- declare const GLOBAL_STATE_DIR = "state";
1386
- declare const GLOBAL_BINDINGS_DIR = "bindings";
1387
- declare function storeKnowledgeTypeDir(type: (typeof STORE_KNOWLEDGE_TYPE_DIRS)[number]): string;
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;
1409
- declare const mountedStoreSchema: z.ZodObject<{
1410
- store_uuid: z.ZodString;
1411
- mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1412
- alias: z.ZodString;
1413
- display_name: z.ZodOptional<z.ZodString>;
1414
- remote: z.ZodOptional<z.ZodString>;
1415
- personal: z.ZodOptional<z.ZodBoolean>;
1416
- writable: z.ZodOptional<z.ZodBoolean>;
1417
- }, "strict", z.ZodTypeAny, {
1418
- store_uuid: string;
1419
- alias: string;
1420
- personal?: boolean | undefined;
1421
- mount_name?: string | undefined;
1422
- display_name?: string | undefined;
1423
- remote?: string | undefined;
1424
- writable?: boolean | undefined;
1425
- }, {
1426
- store_uuid: string;
1427
- alias: string;
1428
- personal?: boolean | undefined;
1429
- mount_name?: string | undefined;
1430
- display_name?: string | undefined;
1431
- remote?: string | undefined;
1432
- writable?: boolean | undefined;
1433
- }>;
1434
- type MountedStore = z.infer<typeof mountedStoreSchema>;
1435
- declare const globalConfigSchema: z.ZodObject<{
1436
- uid: z.ZodString;
1437
- language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1438
- stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1439
- store_uuid: z.ZodString;
1440
- mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1441
- alias: z.ZodString;
1442
- display_name: z.ZodOptional<z.ZodString>;
1443
- remote: z.ZodOptional<z.ZodString>;
1444
- personal: z.ZodOptional<z.ZodBoolean>;
1445
- writable: z.ZodOptional<z.ZodBoolean>;
1446
- }, "strict", z.ZodTypeAny, {
1447
- store_uuid: string;
1448
- alias: string;
1449
- personal?: boolean | undefined;
1450
- mount_name?: string | undefined;
1451
- display_name?: string | undefined;
1452
- remote?: string | undefined;
1453
- writable?: boolean | undefined;
1454
- }, {
1455
- store_uuid: string;
1456
- alias: string;
1457
- personal?: boolean | undefined;
1458
- mount_name?: string | undefined;
1459
- display_name?: string | undefined;
1460
- remote?: string | undefined;
1461
- writable?: boolean | undefined;
1462
- }>, "many">>>;
1463
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1464
- uid: z.ZodString;
1465
- language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1466
- stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1467
- store_uuid: z.ZodString;
1468
- mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1469
- alias: z.ZodString;
1470
- display_name: z.ZodOptional<z.ZodString>;
1471
- remote: z.ZodOptional<z.ZodString>;
1472
- personal: z.ZodOptional<z.ZodBoolean>;
1473
- writable: z.ZodOptional<z.ZodBoolean>;
1474
- }, "strict", z.ZodTypeAny, {
1475
- store_uuid: string;
1476
- alias: string;
1477
- personal?: boolean | undefined;
1478
- mount_name?: string | undefined;
1479
- display_name?: string | undefined;
1480
- remote?: string | undefined;
1481
- writable?: boolean | undefined;
1482
- }, {
1483
- store_uuid: string;
1484
- alias: string;
1485
- personal?: boolean | undefined;
1486
- mount_name?: string | undefined;
1487
- display_name?: string | undefined;
1488
- remote?: string | undefined;
1489
- writable?: boolean | undefined;
1490
- }>, "many">>>;
1491
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1492
- uid: z.ZodString;
1493
- language: z.ZodOptional<z.ZodEnum<["zh-CN", "en"]>>;
1494
- stores: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1495
- store_uuid: z.ZodString;
1496
- mount_name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1497
- alias: z.ZodString;
1498
- display_name: z.ZodOptional<z.ZodString>;
1499
- remote: z.ZodOptional<z.ZodString>;
1500
- personal: z.ZodOptional<z.ZodBoolean>;
1501
- writable: z.ZodOptional<z.ZodBoolean>;
1502
- }, "strict", z.ZodTypeAny, {
1503
- store_uuid: string;
1504
- alias: string;
1505
- personal?: boolean | undefined;
1506
- mount_name?: string | undefined;
1507
- display_name?: string | undefined;
1508
- remote?: string | undefined;
1509
- writable?: boolean | undefined;
1510
- }, {
1511
- store_uuid: string;
1512
- alias: string;
1513
- personal?: boolean | undefined;
1514
- mount_name?: string | undefined;
1515
- display_name?: string | undefined;
1516
- remote?: string | undefined;
1517
- writable?: boolean | undefined;
1518
- }>, "many">>>;
1519
- }, z.ZodTypeAny, "passthrough">>;
1520
- type GlobalConfig = z.infer<typeof globalConfigSchema>;
1521
-
1522
1293
  declare const PERSONAL_SCOPE: "personal";
1523
1294
  declare const KNOWN_SCOPE_PREFIXES: readonly ["personal", "team", "project", "org"];
1524
1295
  declare const SCOPE_COORDINATE_PATTERN: RegExp;
@@ -2043,6 +1814,7 @@ declare const storeResolveInputSchema: z.ZodObject<{
2043
1814
  suggested_remote?: string | undefined;
2044
1815
  }>, "many">;
2045
1816
  activeWriteAlias: z.ZodOptional<z.ZodString>;
1817
+ activePersonalAlias: z.ZodOptional<z.ZodString>;
2046
1818
  writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2047
1819
  scope: z.ZodString;
2048
1820
  store: z.ZodString;
@@ -2073,6 +1845,7 @@ declare const storeResolveInputSchema: z.ZodObject<{
2073
1845
  store: string;
2074
1846
  }[];
2075
1847
  activeWriteAlias?: string | undefined;
1848
+ activePersonalAlias?: string | undefined;
2076
1849
  defaultWriteAlias?: string | undefined;
2077
1850
  }, {
2078
1851
  uid: string;
@@ -2089,6 +1862,7 @@ declare const storeResolveInputSchema: z.ZodObject<{
2089
1862
  suggested_remote?: string | undefined;
2090
1863
  }[];
2091
1864
  activeWriteAlias?: string | undefined;
1865
+ activePersonalAlias?: string | undefined;
2092
1866
  writeRoutes?: {
2093
1867
  scope: string;
2094
1868
  store: string;
@@ -2314,6 +2088,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2314
2088
  suggested_remote?: string | undefined;
2315
2089
  }>, "many">;
2316
2090
  activeWriteAlias: z.ZodOptional<z.ZodString>;
2091
+ activePersonalAlias: z.ZodOptional<z.ZodString>;
2317
2092
  writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2318
2093
  scope: z.ZodString;
2319
2094
  store: z.ZodString;
@@ -2344,6 +2119,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2344
2119
  store: string;
2345
2120
  }[];
2346
2121
  activeWriteAlias?: string | undefined;
2122
+ activePersonalAlias?: string | undefined;
2347
2123
  defaultWriteAlias?: string | undefined;
2348
2124
  }, {
2349
2125
  uid: string;
@@ -2360,6 +2136,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2360
2136
  suggested_remote?: string | undefined;
2361
2137
  }[];
2362
2138
  activeWriteAlias?: string | undefined;
2139
+ activePersonalAlias?: string | undefined;
2363
2140
  writeRoutes?: {
2364
2141
  scope: string;
2365
2142
  store: string;
@@ -2538,6 +2315,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2538
2315
  store: string;
2539
2316
  }[];
2540
2317
  activeWriteAlias?: string | undefined;
2318
+ activePersonalAlias?: string | undefined;
2541
2319
  defaultWriteAlias?: string | undefined;
2542
2320
  };
2543
2321
  writeScope: string;
@@ -2583,6 +2361,7 @@ declare const readSetGoldenCaseSchema: z.ZodObject<{
2583
2361
  suggested_remote?: string | undefined;
2584
2362
  }[];
2585
2363
  activeWriteAlias?: string | undefined;
2364
+ activePersonalAlias?: string | undefined;
2586
2365
  writeRoutes?: {
2587
2366
  scope: string;
2588
2367
  store: string;
@@ -2633,6 +2412,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2633
2412
  suggested_remote?: string | undefined;
2634
2413
  }>, "many">;
2635
2414
  activeWriteAlias: z.ZodOptional<z.ZodString>;
2415
+ activePersonalAlias: z.ZodOptional<z.ZodString>;
2636
2416
  writeRoutes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2637
2417
  scope: z.ZodString;
2638
2418
  store: z.ZodString;
@@ -2663,6 +2443,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2663
2443
  store: string;
2664
2444
  }[];
2665
2445
  activeWriteAlias?: string | undefined;
2446
+ activePersonalAlias?: string | undefined;
2666
2447
  defaultWriteAlias?: string | undefined;
2667
2448
  }, {
2668
2449
  uid: string;
@@ -2679,6 +2460,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2679
2460
  suggested_remote?: string | undefined;
2680
2461
  }[];
2681
2462
  activeWriteAlias?: string | undefined;
2463
+ activePersonalAlias?: string | undefined;
2682
2464
  writeRoutes?: {
2683
2465
  scope: string;
2684
2466
  store: string;
@@ -2857,6 +2639,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2857
2639
  store: string;
2858
2640
  }[];
2859
2641
  activeWriteAlias?: string | undefined;
2642
+ activePersonalAlias?: string | undefined;
2860
2643
  defaultWriteAlias?: string | undefined;
2861
2644
  };
2862
2645
  writeScope: string;
@@ -2902,6 +2685,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2902
2685
  suggested_remote?: string | undefined;
2903
2686
  }[];
2904
2687
  activeWriteAlias?: string | undefined;
2688
+ activePersonalAlias?: string | undefined;
2905
2689
  writeRoutes?: {
2906
2690
  scope: string;
2907
2691
  store: string;
@@ -2958,6 +2742,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
2958
2742
  store: string;
2959
2743
  }[];
2960
2744
  activeWriteAlias?: string | undefined;
2745
+ activePersonalAlias?: string | undefined;
2961
2746
  defaultWriteAlias?: string | undefined;
2962
2747
  };
2963
2748
  writeScope: string;
@@ -3006,6 +2791,7 @@ declare const readSetGoldenFileSchema: z.ZodObject<{
3006
2791
  suggested_remote?: string | undefined;
3007
2792
  }[];
3008
2793
  activeWriteAlias?: string | undefined;
2794
+ activePersonalAlias?: string | undefined;
3009
2795
  writeRoutes?: {
3010
2796
  scope: string;
3011
2797
  store: string;
@@ -8857,6 +8643,7 @@ declare const llmJudgeRunEventSchema: z.ZodObject<{
8857
8643
  }, "strip", z.ZodTypeAny, {
8858
8644
  id: string;
8859
8645
  version: string;
8646
+ score: number;
8860
8647
  ts: number;
8861
8648
  model: string;
8862
8649
  schema_version: 1;
@@ -8865,12 +8652,12 @@ declare const llmJudgeRunEventSchema: z.ZodObject<{
8865
8652
  event_type: "llm_judge_run";
8866
8653
  prompt: string;
8867
8654
  input_trace_id: string;
8868
- score: number;
8869
8655
  correlation_id?: string | undefined;
8870
8656
  session_id?: string | undefined;
8871
8657
  }, {
8872
8658
  id: string;
8873
8659
  version: string;
8660
+ score: number;
8874
8661
  ts: number;
8875
8662
  model: string;
8876
8663
  schema_version: 1;
@@ -8879,7 +8666,6 @@ declare const llmJudgeRunEventSchema: z.ZodObject<{
8879
8666
  event_type: "llm_judge_run";
8880
8667
  prompt: string;
8881
8668
  input_trace_id: string;
8882
- score: number;
8883
8669
  correlation_id?: string | undefined;
8884
8670
  session_id?: string | undefined;
8885
8671
  }>;
@@ -11025,6 +10811,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11025
10811
  }, "strip", z.ZodTypeAny, {
11026
10812
  id: string;
11027
10813
  version: string;
10814
+ score: number;
11028
10815
  ts: number;
11029
10816
  model: string;
11030
10817
  schema_version: 1;
@@ -11033,12 +10820,12 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11033
10820
  event_type: "llm_judge_run";
11034
10821
  prompt: string;
11035
10822
  input_trace_id: string;
11036
- score: number;
11037
10823
  correlation_id?: string | undefined;
11038
10824
  session_id?: string | undefined;
11039
10825
  }, {
11040
10826
  id: string;
11041
10827
  version: string;
10828
+ score: number;
11042
10829
  ts: number;
11043
10830
  model: string;
11044
10831
  schema_version: 1;
@@ -11047,7 +10834,6 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
11047
10834
  event_type: "llm_judge_run";
11048
10835
  prompt: string;
11049
10836
  input_trace_id: string;
11050
- score: number;
11051
10837
  correlation_id?: string | undefined;
11052
10838
  session_id?: string | undefined;
11053
10839
  }>, z.ZodObject<{
@@ -11351,4 +11137,4 @@ declare function parseCiteLine(raw: string): ParseCiteLineResult;
11351
11137
  */
11352
11138
  declare function tokenize(text: string): string[];
11353
11139
 
11354
- export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type CandidateFileEntry, type CandidateFileFamily, type CiteCommitment, type CiteCommitmentOperator, type CiteCommitmentOperatorKind, type CiteContractPolicyActivatedEvent, type CitePolicyActivatedEvent, type CiteTag, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type ClientCapabilitySnapshotEvent, type CodexSkillPathMigratedEvent, type CrossStoreLintInput, type CrossStoreRefViolation, type DebugBundle, type DebugBundleInput, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EntryLayer, type EntryScopeMetadata, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, FabricConfig, type FabricConfigSchemaShape, type FabricEvent, type FailureStage, type FailureTrace, type FileMutatedEvent, type FindStoreExecutableViolationsOptions, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, GLOBAL_BINDINGS_DIR, GLOBAL_REF_PATTERN, GLOBAL_STATE_DIR, type GlobalConfig, type GlobalRef, type GraphEdgeCandidateRequestedEvent, type HookSignalEmittedEvent, type HookSurfaceEmittedEvent, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type InitScanCompletedEvent, type InitStoreOptions, type InstallDiffAppliedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, KNOWN_SCOPE_PREFIXES, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeBodyReadEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeIdRedirectEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgeModifiedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeProvenance, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, type KnowledgeUnarchivedEvent, Layer, type LedgerAppendedEvent, LedgerEntry, type LlmJudgeRunEvent, type LocalKnowledgeId, type LockApprovedEvent, type LockDriftEvent, MCP_STORE_AWARE_CONTRACTS, MCP_STORE_AWARE_TOOLS, type McpEventLedgerEvent, type McpStdioTraceEvent, type McpStoreAwareContract, type McpStoreAwareTool, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type MountedStore, type MountedStoreDir, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, PARITY_CLIENTS, PARITY_SURFACES, PERSONAL_SCOPE, PERSONAL_STORE_SENTINEL, PROJECT_ROOT_SIGNALS, type PanelFieldGroup, type PanelFieldKey, type PanelFieldMeta, type ParityCapability, type ParityClient, type ParityClientExpectation, type ParityMatrix, type ParitySurface, type ParseCiteLineResult, type ParsedGlobalRef, type PayloadGuardObservedEvent, type PendingAutoArchivedEvent, type PrecompactObservedEvent, type ProjectRootGoldenCase, type ProjectRootResolution, type ProjectRootResolver, type ProjectRootSignal, type ProjectRootSignals, type QualifiedCandidate, type QualifiedIdResolution, REDACTION_PLACEHOLDER_PREFIX, type ReadSetEntry, type ReadSetGoldenCase, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type RequiredStoreEntry, type ResolutionCandidate, type ResolutionResult, type ResolutionWarning, type ResolveOptions, type ResolvedBindingsSnapshot, type ResolvedEntry, SCOPE_COORDINATE_HINT, SCOPE_COORDINATE_PATTERN, STORES_ROOT_DIR, STORE_ALIAS_PATTERN, STORE_GITIGNORE, STORE_KNOWLEDGE_TYPE_DIRS, STORE_LAYOUT, STORE_MOUNT_GROUPS, STORE_MOUNT_NAME_PATTERN, STORE_PENDING_DIR, STORE_PROJECT_ID_PATTERN, STORE_RESOLVER_WARNING_CODES, STORE_UUID_PATTERN, type ScanRecommendationInput, type ScopeCoordinate, type SecretFinding, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, type SessionEndedEvent, type SkillInvocationCompletedEvent, type SkillInvocationStartedEvent, type SkillPhaseTransitionEvent, type SkillTriggerCandidateEvent, StableId, type StoreAwareEntry, type StoreCounters, type StoreExplain, type StoreIdentity, type StoreKnowledgeRef, type StoreLayout, type StoreMountGroup, type StoreProject, type StoreProjectsFile, type StoreReadSet, type StoreResolveInput, type StoreResolver, type StoreResolverWarning, type StoreResolverWarningCode, type StoreVisibility, Translator, UID_SEGMENT_PATTERN, type Uid, type ValidateResult, type WriteBindingsSnapshotOptions, type WriteTarget, type WrittenToStore, addMountedStore, addStoreProject, agentsIdentitySourceSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aggregatePendingAcrossStores, aiLedgerEntrySchema, allocateKnowledgeId, allocateStoreKnowledgeId, assistantTurnObservedEventSchema, bindRequiredStore, bindingsSnapshotPath, buildDebugBundle, buildFailureTrace, buildScanRecommendations, buildStoreResolveInput, candidateFileEntrySchema, citeContractPolicyActivatedEventSchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientCapabilitySnapshotEventSchema, codexSkillPathMigratedEventSchema, createProjectRootResolver, createStoreResolver, defaultAgentsMetaCounters, deriveAgentsMetaIdentitySource, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, deriveMountLabel, detachMountedStore, disambiguateAlias, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, entryScopeMetadataSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, explainStore, fabricConfigSchema, fabricEventSchema, fileMutatedEventSchema, findMountedStore, findStoreExecutableViolations, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, formatGlobalRef, getPanelFieldByKey, getPanelFields, globalConfigPath, globalConfigSchema, globalRefSchema, graphEdgeCandidateRequestedEventSchema, hasSecrets, hookSignalEmittedEventSchema, hookSurfaceEmittedEventSchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, initStore, installDiffAppliedEventSchema, isKnowledgeStableId, isPersonalLeakIntoSharedStore, isPersonalScope, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeBodyReadEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeIdRedirectEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgeModifiedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeProvenanceSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, knowledgeUnarchivedEventSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lintCrossStoreReferences, listStoreKnowledge, llmJudgeRunEventSchema, loadGlobalConfig, loadProjectConfig, localKnowledgeIdSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpEventLedgerEventSchema, mcpStdioTraceEventSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, mountedStoreSchema, normalizeCiteTag, onboardSlotSchema, parityCapabilitySchema, parityClientExpectationSchema, parityClientSchema, parityMatrixSchema, paritySurfaceSchema, parseCiteLine, parseGlobalRef, payloadGuardObservedEventSchema, pendingAutoArchivedEventSchema, precompactObservedEventSchema, projectConfigPath, projectRootGoldenCaseSchema, projectRootGoldenFileSchema, projectRootResolutionSchema, projectRootSignalSchema, projectRootSignalsSchema, readBindingsSnapshot, readKnowledgeAcrossStores, readSetEntrySchema, readSetGoldenCaseSchema, readSetGoldenFileSchema, readStoreCounters, readStoreIdentity, readStoreIdentityAsync, readStoreProjects, reapplyCompletedEventSchema, recognizeStoreDir, reconcileStoreCounters, redactPii, redactSecrets, relevanceMigrationRunEventSchema, requiredStoreEntrySchema, resolveCandidates, resolveGlobalRoot, resolveStoreQualifiedId, resolveWorkspaceBindingId, resolvedBindingsSnapshotSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, saveGlobalConfig, saveProjectConfig, scanForSecrets, scopeCoordinateSchema, scopeRoot, scrubRemoteUrl, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, sessionEndedEventSchema, skillInvocationCompletedEventSchema, skillInvocationStartedEventSchema, skillPhaseTransitionEventSchema, skillTriggerCandidateEventSchema, storeAliasSchema, storeAwareEntrySchema, storeCountersPath, storeCountersSchema, storeHasProject, storeIdentitySchema, storeKnowledgeTypeDir, storeMountGroup, storeMountNameSchema, storeMountSubPath, storeProjectSchema, storeProjectsFileSchema, storeReadSetSchema, storeRelativePath, storeRelativePathForMount, storeResolveInputSchema, storeResolverWarningCodeSchema, storeResolverWarningSchema, storeUuidSchema, tokenize, uidSchema, withDerivedAgentsMetaNodeDefaults, writeBindingsSnapshot, writeTargetSchema, writtenToStoreSchema };
11140
+ export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type CandidateFileEntry, type CandidateFileFamily, type CiteCommitment, type CiteCommitmentOperator, type CiteCommitmentOperatorKind, type CiteContractPolicyActivatedEvent, type CitePolicyActivatedEvent, type CiteTag, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type ClientCapabilitySnapshotEvent, type CodexSkillPathMigratedEvent, type CrossStoreLintInput, type CrossStoreRefViolation, type DebugBundle, type DebugBundleInput, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EntryLayer, type EntryScopeMetadata, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, FabricConfig, type FabricConfigSchemaShape, type FabricEvent, type FailureStage, type FailureTrace, type FileMutatedEvent, type FindStoreExecutableViolationsOptions, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, GLOBAL_REF_PATTERN, 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, MountedStore, type MountedStoreDir, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, PARITY_CLIENTS, PARITY_SURFACES, PERSONAL_SCOPE, 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, RequiredStoreEntry, type ResolutionCandidate, type ResolutionResult, type ResolutionWarning, type ResolveOptions, type ResolvedBindingsSnapshot, type ResolvedEntry, SCOPE_COORDINATE_HINT, SCOPE_COORDINATE_PATTERN, STORE_GITIGNORE, STORE_PENDING_DIR, STORE_RESOLVER_WARNING_CODES, 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, StoreIdentity, type StoreKnowledgeRef, StoreProject, 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, 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, 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, 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, resolveCandidates, resolveGlobalRoot, resolveStoreQualifiedId, resolveWorkspaceBindingId, resolvedBindingsSnapshotSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, saveGlobalConfig, saveProjectConfig, scanForSecrets, scopeCoordinateSchema, scopeRoot, scrubRemoteUrl, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, sessionEndedEventSchema, skillInvocationCompletedEventSchema, skillInvocationStartedEventSchema, skillPhaseTransitionEventSchema, skillTriggerCandidateEventSchema, storeAwareEntrySchema, storeCountersPath, storeCountersSchema, storeHasProject, storeReadSetSchema, storeResolveInputSchema, storeResolverWarningCodeSchema, storeResolverWarningSchema, tokenize, uidSchema, withDerivedAgentsMetaNodeDefaults, writeBindingsSnapshot, writeTargetSchema, writtenToStoreSchema };
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  BOOTSTRAP_REGEX,
8
8
  matchBootstrapCanonicalLocale,
9
9
  resolveBootstrapCanonical
10
- } from "./chunk-SQKWD7X6.js";
10
+ } from "./chunk-OAYQHN6J.js";
11
11
  import "./chunk-LXNCAKJZ.js";
12
12
  import {
13
13
  PROTECTED_TOKENS,
@@ -16,7 +16,7 @@ import {
16
16
  enMessages,
17
17
  resolveFabricLocale,
18
18
  zhCNMessages
19
- } from "./chunk-IFMFEX3V.js";
19
+ } from "./chunk-ZYBWITH7.js";
20
20
  import {
21
21
  GLOBAL_BINDINGS_DIR,
22
22
  GLOBAL_STATE_DIR,
@@ -51,7 +51,7 @@ import {
51
51
  storeRelativePath,
52
52
  storeRelativePathForMount,
53
53
  storeUuidSchema
54
- } from "./chunk-2GLIAZ5M.js";
54
+ } from "./chunk-ANUDBQBK.js";
55
55
  import {
56
56
  atomicWriteJson,
57
57
  withFileLock
@@ -116,7 +116,7 @@ import {
116
116
  scopeCoordinateSchema,
117
117
  scopeRoot,
118
118
  structuredWarningSchema
119
- } from "./chunk-D7HUHWBI.js";
119
+ } from "./chunk-7PS7LB5T.js";
120
120
 
121
121
  // src/schemas/agents-meta.ts
122
122
  import { z } from "zod";
@@ -355,6 +355,32 @@ var humanLockFileSchema = z4.object({
355
355
 
356
356
  // src/schemas/fabric-config.ts
357
357
  import { z as z5 } from "zod";
358
+ function isNonPersonalRequiredStore(entry) {
359
+ return entry.id !== PERSONAL_STORE_SENTINEL;
360
+ }
361
+ function refineMaxOneTeamStore(entries, ctx) {
362
+ const teamCount = entries.filter(isNonPersonalRequiredStore).length;
363
+ if (teamCount > 1) {
364
+ ctx.addIssue({
365
+ code: z5.ZodIssueCode.custom,
366
+ message: `a project may bind at most one team store (found ${teamCount}); run \`fabric install\` to migrate to the single team slot`
367
+ });
368
+ }
369
+ }
370
+ function migrateRequiredStores(config) {
371
+ const declared = config.required_stores;
372
+ if (declared === void 0) {
373
+ return config;
374
+ }
375
+ const team = declared.filter(isNonPersonalRequiredStore);
376
+ if (team.length <= 1) {
377
+ return config;
378
+ }
379
+ const personal = declared.filter((entry) => !isNonPersonalRequiredStore(entry));
380
+ const active = config.active_write_store;
381
+ const kept = (active !== void 0 ? team.find((entry) => entry.id === active) : void 0) ?? team[0];
382
+ return { ...config, required_stores: [...personal, kept] };
383
+ }
358
384
  var auditModeSchema = z5.enum(["strict", "warn", "off"]);
359
385
  var clientPathsSchema = z5.object({
360
386
  claudeCodeCLI: z5.string().optional(),
@@ -401,7 +427,9 @@ var fabricConfigSchema = z5.object({
401
427
  // `$personal` sentinel). Drives the read-set (required_stores ∪ implicit
402
428
  // personal, S11/S54) and `clone`'s missing-store onboarding (S51). Optional
403
429
  // + absent → read-set is just the implicit personal store.
404
- required_stores: z5.array(requiredStoreEntrySchema).optional(),
430
+ // W2 dual-slot (TASK-002 / R6): at most ONE non-personal (team-type) store —
431
+ // the two-slot model. >1 fails parse and is migrated by `migrateRequiredStores`.
432
+ required_stores: z5.array(requiredStoreEntrySchema).superRefine(refineMaxOneTeamStore).optional(),
405
433
  // v2.1.0-rc.1 P3 (S60 / `store switch-write`): alias of the store that
406
434
  // non-personal-scope writes land in for this project. Set by
407
435
  // `fabric store switch-write <alias>`; consumed as the resolver's
@@ -706,10 +734,13 @@ var fabricConfigSchema = z5.object({
706
734
  // sole retrieval knob (plan_context_top_k above); payload limits pass through
707
735
  // explicit `mcpPayloadLimits`, else the fixed PAYLOAD_LIMIT_DEFAULT_* guardrail.
708
736
  // v2.2 C2-vector (W2-T7): OPTIONAL dense-embedding semantic retrieval, layered
709
- // as a recall supplement after BM25. Default OFF (`--no-embed` is the baseline);
710
- // requires the operator to install the optional `fastembed` package absent →
711
- // text-only fallback. Never grows the default install footprint.
712
- embed_enabled: z5.boolean().optional().default(false),
737
+ // as a recall supplement after BM25. P1 recall-engine-refactor (TASK-004):
738
+ // Default ON `fastembed` is now an optionalDependency (auto-installed; absent →
739
+ // degrade-safe text-only fallback), so CJK semantic recall is on out of the box.
740
+ // OFF only when set explicitly to false. This default mirrors the runtime read in
741
+ // config-loader.ts (`embed_enabled !== false`); keep the two in sync so config
742
+ // introspection never reports a default that contradicts runtime behavior.
743
+ embed_enabled: z5.boolean().optional().default(true),
713
744
  // Weight applied to the 0..1 cosine similarity before it joins the additive
714
745
  // score. Capped at 49 — strictly BELOW BM25_WEIGHT (50) — so a perfect vector
715
746
  // match (weight × 1) can never outscore a single strong BM25 term match. This
@@ -734,8 +765,22 @@ var fabricConfigSchema = z5.object({
734
765
  "fast-bge-base-en-v1.5",
735
766
  "fast-bge-base-en",
736
767
  "fast-all-MiniLM-L6-v2"
737
- ]).optional().default("fast-bge-small-zh-v1.5")
738
- });
768
+ ]).optional().default("fast-bge-small-zh-v1.5"),
769
+ // P1 recall-engine-refactor (TASK-003): content-channel fusion strategy.
770
+ // 'additive' (DEFAULT) = the historical weighted-sum path (BM25_WEIGHT·bm25 +
771
+ // vectorWeight·vector + structural). 'rrf' = Reciprocal Rank Fusion over the
772
+ // two CONTENT channels (bm25_rank, vector_rank) plus the unchanged structural
773
+ // boost. RRF is gated behind this flag and ships OFF — flipping the default to
774
+ // 'rrf' is a separate human decision gated on a one-off shadow run against the
775
+ // developer's real bound team store. no-query ranking is byte-identical under
776
+ // both values (the content channels contribute nothing without query terms).
777
+ fusion: z5.enum(["additive", "rrf"]).optional().default("additive")
778
+ });
779
+ var fabricConfigLoadSchema = fabricConfigSchema.merge(
780
+ z5.object({
781
+ required_stores: z5.array(requiredStoreEntrySchema).optional()
782
+ })
783
+ );
739
784
 
740
785
  // src/schemas/fabric-config-introspect.ts
741
786
  import { z as z6 } from "zod";
@@ -900,9 +945,11 @@ var PANEL_FIELDS = [
900
945
  // nudge_mode — the master switch for the human-visible nudge experience
901
946
  // (the most user-facing runtime knob, previously JSON-only). embed_enabled —
902
947
  // vector semantic recall, panel-editable now that config lives in `.fabric`
903
- // (A1); enabling also needs the host-side `fabric install --enable-embed`.
948
+ // (A1). TASK-004: default ON (fastembed is an optionalDependency, degrade-safe
949
+ // when absent) — this introspection default mirrors the runtime read in
950
+ // config-loader.ts so the panel never shows a default that contradicts behavior.
904
951
  makeEnumField("nudge_mode", "D_behavior", nudgeModeSchema.options, "normal"),
905
- makeBooleanField("embed_enabled", false)
952
+ makeBooleanField("embed_enabled", true)
906
953
  ];
907
954
 
908
955
  // src/schemas/store-stable-id.ts
@@ -1069,6 +1116,13 @@ var storeResolveInputSchema = z9.object({
1069
1116
  ),
1070
1117
  // Alias selected as the active write store for non-personal scopes, if any.
1071
1118
  activeWriteAlias: z9.string().min(1).optional(),
1119
+ // Alias/UUID of the ACTIVE personal store among possibly-many mounted
1120
+ // `personal:true` stores (语义 A: singleton-at-a-time). Drives the SINGLE
1121
+ // personal choke point (findPersonal) → both read-set inclusion and the
1122
+ // personal-scope write-target. Absent or dangling ⇒ the resolver falls back
1123
+ // to the first mounted personal, so legacy single-personal configs are
1124
+ // unchanged. Sourced from `~/.fabric/fabric-global.json` → active_personal_store.
1125
+ activePersonalAlias: z9.string().min(1).optional(),
1072
1126
  // Scope-aware write routes. Exact scope wins first, then longest prefix route.
1073
1127
  writeRoutes: z9.array(
1074
1128
  z9.object({
@@ -1131,7 +1185,16 @@ function createProjectRootResolver() {
1131
1185
 
1132
1186
  // src/resolver/store-resolver.ts
1133
1187
  function findPersonal(input) {
1134
- return input.mountedStores.find((s) => s.personal);
1188
+ const actives = input.mountedStores.filter((s) => s.personal);
1189
+ if (input.activePersonalAlias !== void 0) {
1190
+ const picked = actives.find(
1191
+ (s) => s.alias === input.activePersonalAlias || s.store_uuid === input.activePersonalAlias
1192
+ );
1193
+ if (picked !== void 0) {
1194
+ return picked;
1195
+ }
1196
+ }
1197
+ return actives[0];
1135
1198
  }
1136
1199
  function personalEntry(input) {
1137
1200
  const p = findPersonal(input);
@@ -1720,7 +1783,12 @@ function loadProjectConfig(projectRoot) {
1720
1783
  if (!existsSync3(path)) {
1721
1784
  return null;
1722
1785
  }
1723
- return fabricConfigSchema.parse(JSON.parse(readFileSync3(path, "utf8")));
1786
+ const raw = JSON.parse(readFileSync3(path, "utf8"));
1787
+ const parsed = fabricConfigSchema.safeParse(raw);
1788
+ if (parsed.success) {
1789
+ return parsed.data;
1790
+ }
1791
+ return fabricConfigLoadSchema.parse(raw);
1724
1792
  }
1725
1793
  function saveProjectConfig(config, projectRoot) {
1726
1794
  const validated = fabricConfigSchema.parse(config);
@@ -1753,6 +1821,7 @@ function buildStoreResolveInput(projectRoot, globalRoot = resolveGlobalRoot()) {
1753
1821
  })
1754
1822
  ),
1755
1823
  ...project?.active_write_store === void 0 ? {} : { activeWriteAlias: project.active_write_store },
1824
+ ...global.active_personal_store === void 0 ? {} : { activePersonalAlias: global.active_personal_store },
1756
1825
  writeRoutes: project?.write_routes ?? [],
1757
1826
  ...project?.default_write_store === void 0 ? {} : { defaultWriteAlias: project.default_write_store }
1758
1827
  };
@@ -3339,6 +3408,7 @@ export {
3339
3408
  fabExtractKnowledgeAnnotations,
3340
3409
  fabPendingAnnotations,
3341
3410
  fabReviewAnnotations,
3411
+ fabricConfigLoadSchema,
3342
3412
  fabricConfigSchema,
3343
3413
  fabricEventSchema,
3344
3414
  fabricLanguageSchema,
@@ -3383,6 +3453,7 @@ export {
3383
3453
  initStore,
3384
3454
  installDiffAppliedEventSchema,
3385
3455
  isKnowledgeStableId,
3456
+ isNonPersonalRequiredStore,
3386
3457
  isPersonalLeakIntoSharedStore,
3387
3458
  isPersonalScope,
3388
3459
  knowledgeArchiveAttemptedEventSchema,
@@ -3435,6 +3506,7 @@ export {
3435
3506
  metaReconciledEventSchema,
3436
3507
  metaReconciledOnStartupEventSchema,
3437
3508
  metaUpdatedEventSchema,
3509
+ migrateRequiredStores,
3438
3510
  mountedStoreSchema,
3439
3511
  normalizeCiteTag,
3440
3512
  normalizeLocale,