@remnic/core 9.3.764 → 9.3.766

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.
Files changed (106) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-admin-ops-surface.js +9 -9
  3. package/dist/access-boundary.d.ts +1 -1
  4. package/dist/access-boundary.js +10 -10
  5. package/dist/access-cli.js +20 -20
  6. package/dist/access-http.d.ts +13 -2
  7. package/dist/access-http.js +14 -14
  8. package/dist/access-identity-continuity-surface.js +9 -9
  9. package/dist/access-lcm-surface.d.ts +1 -1
  10. package/dist/access-lcm-surface.js +9 -9
  11. package/dist/access-mcp.d.ts +1 -1
  12. package/dist/access-mcp.js +13 -13
  13. package/dist/access-observe-write-surface.d.ts +1 -1
  14. package/dist/access-observe-write-surface.js +9 -9
  15. package/dist/access-operations-batch.js +11 -11
  16. package/dist/access-operations.d.ts +1 -1
  17. package/dist/access-operations.js +12 -12
  18. package/dist/access-recall-surface.d.ts +1 -1
  19. package/dist/access-recall-surface.js +9 -9
  20. package/dist/{access-service-CAoJ4qN8.d.ts → access-service-CdW6B2qQ.d.ts} +3 -5
  21. package/dist/access-service.d.ts +1 -1
  22. package/dist/access-service.js +9 -9
  23. package/dist/access-surface-catalog.d.ts +1 -1
  24. package/dist/active-recall.js +1 -1
  25. package/dist/{chunk-NKP6II6G.js → chunk-4HYFKIGH.js} +6 -6
  26. package/dist/{chunk-CGLRKKMF.js → chunk-4JG55YV3.js} +3 -3
  27. package/dist/{chunk-BRYPUVJU.js → chunk-CKNAVW34.js} +2 -2
  28. package/dist/{chunk-WRFKZEO6.js → chunk-DMKMQTBH.js} +10 -2
  29. package/dist/chunk-DMKMQTBH.js.map +1 -0
  30. package/dist/{chunk-RJCQPRLB.js → chunk-GLERZDM7.js} +3 -3
  31. package/dist/{chunk-2V6CTSSA.js → chunk-HBOPSFQQ.js} +8 -8
  32. package/dist/{chunk-N3QDLE2N.js → chunk-IGVKWKR2.js} +3 -3
  33. package/dist/{chunk-422OELQ3.js → chunk-J3UJJZKI.js} +44 -7
  34. package/dist/chunk-J3UJJZKI.js.map +1 -0
  35. package/dist/{chunk-5CEJH5ZN.js → chunk-K2I3AWBR.js} +10 -2
  36. package/dist/chunk-K2I3AWBR.js.map +1 -0
  37. package/dist/{chunk-5JF4DIKZ.js → chunk-MSGPLITO.js} +2 -2
  38. package/dist/{chunk-K43PI6DQ.js → chunk-MYNRJGOY.js} +2 -2
  39. package/dist/{chunk-UQEE4H6Z.js → chunk-OAREUC7N.js} +13 -7
  40. package/dist/chunk-OAREUC7N.js.map +1 -0
  41. package/dist/{chunk-RIOJRLJ6.js → chunk-PA5ALD3S.js} +6 -6
  42. package/dist/{chunk-2HAG7JOI.js → chunk-T4AWNIXJ.js} +48 -58
  43. package/dist/chunk-T4AWNIXJ.js.map +1 -0
  44. package/dist/{chunk-P6ZZ4GX4.js → chunk-TVLN5EZZ.js} +3 -3
  45. package/dist/{chunk-KXG7HHIQ.js → chunk-U5GFYMV7.js} +2 -2
  46. package/dist/{chunk-4XL3CVII.js → chunk-WRBDUNSW.js} +2 -2
  47. package/dist/{chunk-YNQ6DFSV.js → chunk-WU46YPY6.js} +8 -1
  48. package/dist/chunk-WU46YPY6.js.map +1 -0
  49. package/dist/{chunk-LQ6JI4VH.js → chunk-XG4NBBRW.js} +10 -2
  50. package/dist/chunk-XG4NBBRW.js.map +1 -0
  51. package/dist/{chunk-SANZHXY2.js → chunk-ZZMRXJFY.js} +29 -3
  52. package/dist/chunk-ZZMRXJFY.js.map +1 -0
  53. package/dist/{cli-WRmxvfc_.d.ts → cli-Dfnc66gs.d.ts} +1 -1
  54. package/dist/cli.d.ts +2 -2
  55. package/dist/cli.js +19 -19
  56. package/dist/config.js +1 -1
  57. package/dist/index.d.ts +2 -2
  58. package/dist/index.js +20 -20
  59. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  60. package/dist/namespaces/migrate.js +9 -9
  61. package/dist/namespaces/search.js +8 -8
  62. package/dist/operator-toolkit.js +11 -11
  63. package/dist/orchestrator.js +20 -20
  64. package/dist/qmd.js +2 -2
  65. package/dist/resume-bundles.js +2 -2
  66. package/dist/search/factory.js +7 -7
  67. package/dist/search/index.js +7 -7
  68. package/dist/search/lancedb-backend.js +2 -2
  69. package/dist/search/meilisearch-backend.js +2 -2
  70. package/dist/search/orama-backend.js +2 -2
  71. package/dist/search/port.d.ts +4 -3
  72. package/dist/search/port.js +3 -1
  73. package/dist/search/remote-backend.js +2 -1
  74. package/package.json +2 -2
  75. package/src/access-http-cancellation.test.ts +240 -0
  76. package/src/access-http.ts +54 -2
  77. package/src/access-recall-surface.ts +1 -0
  78. package/src/access-service.ts +10 -10
  79. package/src/config.ts +5 -261
  80. package/src/namespaces/scope-profile-config.test.ts +60 -0
  81. package/src/namespaces/scope-profile-config.ts +243 -0
  82. package/src/search/lancedb-backend.ts +8 -0
  83. package/src/search/meilisearch-backend.ts +8 -0
  84. package/src/search/orama-backend.ts +8 -0
  85. package/src/search/port.ts +15 -2
  86. package/src/search/remote-backend.ts +32 -3
  87. package/dist/chunk-2HAG7JOI.js.map +0 -1
  88. package/dist/chunk-422OELQ3.js.map +0 -1
  89. package/dist/chunk-5CEJH5ZN.js.map +0 -1
  90. package/dist/chunk-LQ6JI4VH.js.map +0 -1
  91. package/dist/chunk-SANZHXY2.js.map +0 -1
  92. package/dist/chunk-UQEE4H6Z.js.map +0 -1
  93. package/dist/chunk-WRFKZEO6.js.map +0 -1
  94. package/dist/chunk-YNQ6DFSV.js.map +0 -1
  95. /package/dist/{chunk-NKP6II6G.js.map → chunk-4HYFKIGH.js.map} +0 -0
  96. /package/dist/{chunk-CGLRKKMF.js.map → chunk-4JG55YV3.js.map} +0 -0
  97. /package/dist/{chunk-BRYPUVJU.js.map → chunk-CKNAVW34.js.map} +0 -0
  98. /package/dist/{chunk-RJCQPRLB.js.map → chunk-GLERZDM7.js.map} +0 -0
  99. /package/dist/{chunk-2V6CTSSA.js.map → chunk-HBOPSFQQ.js.map} +0 -0
  100. /package/dist/{chunk-N3QDLE2N.js.map → chunk-IGVKWKR2.js.map} +0 -0
  101. /package/dist/{chunk-5JF4DIKZ.js.map → chunk-MSGPLITO.js.map} +0 -0
  102. /package/dist/{chunk-K43PI6DQ.js.map → chunk-MYNRJGOY.js.map} +0 -0
  103. /package/dist/{chunk-RIOJRLJ6.js.map → chunk-PA5ALD3S.js.map} +0 -0
  104. /package/dist/{chunk-P6ZZ4GX4.js.map → chunk-TVLN5EZZ.js.map} +0 -0
  105. /package/dist/{chunk-KXG7HHIQ.js.map → chunk-U5GFYMV7.js.map} +0 -0
  106. /package/dist/{chunk-4XL3CVII.js.map → chunk-WRBDUNSW.js.map} +0 -0
@@ -228,7 +228,7 @@ import {
228
228
  import {
229
229
  runNamespaceMaintenanceFanout,
230
230
  summarizeNamespaceMaintenanceHealth
231
- } from "./chunk-N3QDLE2N.js";
231
+ } from "./chunk-IGVKWKR2.js";
232
232
  import {
233
233
  NamespaceCatalog,
234
234
  planNamespaceMaintenance
@@ -316,7 +316,7 @@ import {
316
316
  createCorrectionService,
317
317
  detectPassiveCorrections,
318
318
  qmdCollectionPathParts
319
- } from "./chunk-UQEE4H6Z.js";
319
+ } from "./chunk-OAREUC7N.js";
320
320
  import {
321
321
  importCapsule
322
322
  } from "./chunk-M5QKGHCR.js";
@@ -343,11 +343,11 @@ import {
343
343
  } from "./chunk-BAVVI5GP.js";
344
344
  import {
345
345
  NamespaceSearchRouter
346
- } from "./chunk-BRYPUVJU.js";
346
+ } from "./chunk-CKNAVW34.js";
347
347
  import {
348
348
  createConversationIndexRuntime,
349
349
  createSearchBackend
350
- } from "./chunk-NKP6II6G.js";
350
+ } from "./chunk-4HYFKIGH.js";
351
351
  import {
352
352
  NoopSearchBackend
353
353
  } from "./chunk-CYEPCZN5.js";
@@ -361,7 +361,7 @@ import {
361
361
  } from "./chunk-KCQA46NR.js";
362
362
  import {
363
363
  parseQmdExplain
364
- } from "./chunk-K43PI6DQ.js";
364
+ } from "./chunk-MYNRJGOY.js";
365
365
  import {
366
366
  objectiveStateStoreOverrideForNamespace,
367
367
  searchObjectiveStateSnapshots
@@ -22693,4 +22693,4 @@ export {
22693
22693
  blendGraphExpandedRecallScore,
22694
22694
  Orchestrator
22695
22695
  };
22696
- //# sourceMappingURL=chunk-RIOJRLJ6.js.map
22696
+ //# sourceMappingURL=chunk-PA5ALD3S.js.map
@@ -472,27 +472,7 @@ function parseChatConfig(raw) {
472
472
  };
473
473
  }
474
474
 
475
- // src/config.ts
476
- var DEFAULT_MEMORY_DIR = path.join(
477
- resolveHomeDir(),
478
- ".openclaw",
479
- "workspace",
480
- "memory",
481
- "local"
482
- );
483
- var DEFAULT_WORKSPACE_DIR = path.join(
484
- resolveHomeDir(),
485
- ".openclaw",
486
- "workspace"
487
- );
488
- var DEFAULT_INIT_GATE_TIMEOUT_MS = 3e4;
489
- var CLIENT_SECRET_FIELD = ["client", "Secret"].join("");
490
- var REFRESH_TOKEN_FIELD = ["refresh", "Token"].join("");
491
- var LEGACY_ACTIVE_RECALL_CUSTOM_FIELD = [
492
- "activeRecall",
493
- "Prompt",
494
- "Override"
495
- ].join("");
475
+ // src/namespaces/scope-profile-config.ts
496
476
  var SCOPE_PROFILE_LAYER_IDS = [
497
477
  "userProject",
498
478
  "teamProject",
@@ -510,24 +490,25 @@ var SCOPE_PROFILE_AUTO_PROMOTE_CATEGORIES = [
510
490
  "rule",
511
491
  "procedure"
512
492
  ];
513
- var CONFIDENCE_TIERS = [
514
- "explicit",
515
- "implied",
516
- "inferred",
517
- "speculative"
518
- ];
493
+ var CONFIDENCE_TIERS = ["explicit", "implied", "inferred", "speculative"];
494
+ function isConfidenceTier(value) {
495
+ return typeof value === "string" && CONFIDENCE_TIERS.includes(value);
496
+ }
497
+ function isAutoPromoteCategory(value) {
498
+ return typeof value === "string" && SCOPE_PROFILE_AUTO_PROMOTE_CATEGORIES.includes(value);
499
+ }
519
500
  function isRecord(value) {
520
501
  return typeof value === "object" && value !== null && !Array.isArray(value);
521
502
  }
522
503
  function parseStringList(value, keyName) {
523
504
  if (value === void 0 || value === null) return [];
524
505
  if (!Array.isArray(value)) {
525
- throw new Error(keyName + " must be an array");
506
+ throw new Error(`${keyName} must be an array`);
526
507
  }
527
508
  const out = [];
528
509
  for (const entry of value) {
529
510
  if (typeof entry !== "string" || entry.length === 0) {
530
- throw new Error(keyName + " must contain only non-empty strings");
511
+ throw new Error(`${keyName} must contain only non-empty strings`);
531
512
  }
532
513
  out.push(entry);
533
514
  }
@@ -578,34 +559,30 @@ function parseScopeProfiles(value) {
578
559
  if (!isRecord(rawProfile)) {
579
560
  throw new Error(`scopeProfiles.${profileId} must be an object`);
580
561
  }
581
- const readOrder = parseScopeProfileLayerList(
582
- rawProfile.readOrder,
583
- `scopeProfiles.${profileId}.readOrder`,
584
- ["userProject", "userGlobal", "serverShared"]
585
- );
562
+ const readOrder = parseScopeProfileLayerList(rawProfile.readOrder, `scopeProfiles.${profileId}.readOrder`, [
563
+ "userProject",
564
+ "userGlobal",
565
+ "serverShared"
566
+ ]);
586
567
  const writeDefault = rawProfile.writeDefault === void 0 || rawProfile.writeDefault === null ? "userProject" : rawProfile.writeDefault;
587
568
  if (!SCOPE_PROFILE_LAYER_IDS.includes(writeDefault)) {
588
569
  throw new Error(`scopeProfiles.${profileId}.writeDefault contains unsupported layer: ${String(writeDefault)}`);
589
570
  }
590
571
  if (rawProfile.teamProject !== void 0 && rawProfile.teamProject !== null && !isRecord(rawProfile.teamProject)) {
591
- throw new Error("scopeProfiles." + profileId + ".teamProject must be an object");
572
+ throw new Error(`scopeProfiles.${profileId}.teamProject must be an object`);
592
573
  }
593
574
  const teamProject = (() => {
594
575
  if (!isRecord(rawProfile.teamProject)) return void 0;
595
576
  const out = {};
596
577
  if (rawProfile.teamProject.namespaceTemplate !== void 0) {
597
578
  if (typeof rawProfile.teamProject.namespaceTemplate !== "string" || rawProfile.teamProject.namespaceTemplate.length === 0) {
598
- throw new Error(
599
- `scopeProfiles.${profileId}.teamProject.namespaceTemplate must be a non-empty string`
600
- );
579
+ throw new Error(`scopeProfiles.${profileId}.teamProject.namespaceTemplate must be a non-empty string`);
601
580
  }
602
581
  out.namespaceTemplate = rawProfile.teamProject.namespaceTemplate;
603
582
  }
604
583
  if (rawProfile.teamProject.teamId !== void 0) {
605
584
  if (typeof rawProfile.teamProject.teamId !== "string" || rawProfile.teamProject.teamId.length === 0) {
606
- throw new Error(
607
- `scopeProfiles.${profileId}.teamProject.teamId must be a non-empty string`
608
- );
585
+ throw new Error(`scopeProfiles.${profileId}.teamProject.teamId must be a non-empty string`);
609
586
  }
610
587
  out.teamId = rawProfile.teamProject.teamId;
611
588
  }
@@ -615,20 +592,15 @@ function parseScopeProfiles(value) {
615
592
  throw new Error(`scopeProfiles.${profileId}.autoPromote must be an object`);
616
593
  }
617
594
  const rawAutoPromote = isRecord(rawProfile.autoPromote) ? rawProfile.autoPromote : {};
618
- const hasAutoPromoteEnabled = Object.prototype.hasOwnProperty.call(
619
- rawAutoPromote,
620
- "enabled"
621
- );
595
+ const hasAutoPromoteEnabled = Object.prototype.hasOwnProperty.call(rawAutoPromote, "enabled");
622
596
  const autoPromoteEnabled = coerceBool(rawAutoPromote.enabled);
623
597
  if (hasAutoPromoteEnabled && autoPromoteEnabled === void 0) {
624
- throw new Error(
625
- `scopeProfiles.${profileId}.autoPromote.enabled must be a boolean or boolean-like string`
626
- );
598
+ throw new Error(`scopeProfiles.${profileId}.autoPromote.enabled must be a boolean or boolean-like string`);
627
599
  }
628
600
  const minConfidenceTier = (() => {
629
601
  const rawTier = rawAutoPromote.minConfidenceTier;
630
602
  if (rawTier === void 0 || rawTier === null) return "explicit";
631
- if (typeof rawTier !== "string" || !CONFIDENCE_TIERS.includes(rawTier)) {
603
+ if (!isConfidenceTier(rawTier)) {
632
604
  throw new Error(
633
605
  `scopeProfiles.${profileId}.autoPromote.minConfidenceTier must be one of: ${CONFIDENCE_TIERS.join(", ")}`
634
606
  );
@@ -640,15 +612,13 @@ function parseScopeProfiles(value) {
640
612
  return ["fact", "correction", "decision", "preference"];
641
613
  }
642
614
  if (!Array.isArray(rawAutoPromote.categories)) {
643
- throw new Error(
644
- `scopeProfiles.${profileId}.autoPromote.categories must be an array`
645
- );
615
+ throw new Error(`scopeProfiles.${profileId}.autoPromote.categories must be an array`);
646
616
  }
647
617
  const categories = [];
648
618
  for (const entry of rawAutoPromote.categories) {
649
- if (typeof entry !== "string" || !SCOPE_PROFILE_AUTO_PROMOTE_CATEGORIES.includes(entry)) {
619
+ if (!isAutoPromoteCategory(entry)) {
650
620
  throw new Error(
651
- "scopeProfiles." + profileId + ".autoPromote.categories must contain only: " + SCOPE_PROFILE_AUTO_PROMOTE_CATEGORIES.join(", ")
621
+ `scopeProfiles.${profileId}.autoPromote.categories must contain only: ${SCOPE_PROFILE_AUTO_PROMOTE_CATEGORIES.join(", ")}`
652
622
  );
653
623
  }
654
624
  categories.push(entry);
@@ -709,12 +679,32 @@ function validateScopeProfileTeamReferences(profiles, teams) {
709
679
  for (const [profileId, profile] of Object.entries(profiles)) {
710
680
  const teamId = profile.teamProject?.teamId;
711
681
  if (teamId && !Object.prototype.hasOwnProperty.call(teams, teamId)) {
712
- throw new Error(
713
- `scopeProfiles.${profileId}.teamProject.teamId references unknown team: ${teamId}`
714
- );
682
+ throw new Error(`scopeProfiles.${profileId}.teamProject.teamId references unknown team: ${teamId}`);
715
683
  }
716
684
  }
717
685
  }
686
+
687
+ // src/config.ts
688
+ var DEFAULT_MEMORY_DIR = path.join(
689
+ resolveHomeDir(),
690
+ ".openclaw",
691
+ "workspace",
692
+ "memory",
693
+ "local"
694
+ );
695
+ var DEFAULT_WORKSPACE_DIR = path.join(
696
+ resolveHomeDir(),
697
+ ".openclaw",
698
+ "workspace"
699
+ );
700
+ var DEFAULT_INIT_GATE_TIMEOUT_MS = 3e4;
701
+ var CLIENT_SECRET_FIELD = ["client", "Secret"].join("");
702
+ var REFRESH_TOKEN_FIELD = ["refresh", "Token"].join("");
703
+ var LEGACY_ACTIVE_RECALL_CUSTOM_FIELD = [
704
+ "activeRecall",
705
+ "Prompt",
706
+ "Override"
707
+ ].join("");
718
708
  function parseBoundedIntegerMs(value, fallback, min, max) {
719
709
  const coerced = coerceNumber(value);
720
710
  if (coerced === void 0) return fallback;
@@ -3423,4 +3413,4 @@ export {
3423
3413
  VALID_MEMORY_CATEGORIES,
3424
3414
  parseConfig
3425
3415
  };
3426
- //# sourceMappingURL=chunk-2HAG7JOI.js.map
3416
+ //# sourceMappingURL=chunk-T4AWNIXJ.js.map