@remnic/core 9.3.671 → 9.3.673

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 (98) hide show
  1. package/dist/access-audit.js +2 -2
  2. package/dist/access-cli.js +27 -25
  3. package/dist/access-cli.js.map +1 -1
  4. package/dist/access-http.js +12 -12
  5. package/dist/access-mcp.js +11 -11
  6. package/dist/access-schema.d.ts +36 -36
  7. package/dist/access-schema.js +3 -3
  8. package/dist/access-service.js +9 -9
  9. package/dist/active-recall.js +3 -1
  10. package/dist/active-recall.js.map +1 -1
  11. package/dist/chunk-3BQOQYRB.js +33 -0
  12. package/dist/chunk-3BQOQYRB.js.map +1 -0
  13. package/dist/{chunk-UOBLE67F.js → chunk-3IE22DJ2.js} +4 -4
  14. package/dist/chunk-52LZ42LI.js +25 -0
  15. package/dist/chunk-52LZ42LI.js.map +1 -0
  16. package/dist/{chunk-CRO4LCQ6.js → chunk-7OGJQP7T.js} +5 -5
  17. package/dist/{chunk-23EBQ27U.js → chunk-B55KFEGS.js} +2 -2
  18. package/dist/{chunk-BTLNC5YM.js → chunk-GNAMDNGT.js} +5 -13
  19. package/dist/chunk-GNAMDNGT.js.map +1 -0
  20. package/dist/{chunk-KQAFEZQX.js → chunk-IPLYGWQF.js} +5 -5
  21. package/dist/{chunk-MLVMBV2C.js → chunk-IUZWBCJX.js} +8 -40
  22. package/dist/chunk-IUZWBCJX.js.map +1 -0
  23. package/dist/{chunk-PYTATYUV.js → chunk-ODWI5XU2.js} +2 -2
  24. package/dist/{chunk-F7OWUP3G.js → chunk-OG7A6AZX.js} +4 -4
  25. package/dist/{chunk-XS2CWEHZ.js → chunk-Q6MIDQEL.js} +2 -2
  26. package/dist/{chunk-UDJLF3BO.js → chunk-QLRYXOAD.js} +2 -2
  27. package/dist/chunk-QO3AILZN.js +89 -0
  28. package/dist/chunk-QO3AILZN.js.map +1 -0
  29. package/dist/{chunk-ZI6A7X4V.js → chunk-R37A3BEW.js} +26 -26
  30. package/dist/{chunk-CPVV2UEL.js → chunk-SDLJ2W7S.js} +6 -6
  31. package/dist/{chunk-Z4GALEO3.js → chunk-SF45RQDX.js} +3 -3
  32. package/dist/{chunk-LXVOZ2O6.js → chunk-T2AOOHDA.js} +2 -2
  33. package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
  34. package/dist/{chunk-32RD3GIW.js → chunk-XVVEKF5I.js} +19 -19
  35. package/dist/{chunk-TGN4M5MB.js → chunk-ZLINDOBG.js} +4 -4
  36. package/dist/cli.js +24 -22
  37. package/dist/coding/optional-coding-graph.d.ts +63 -0
  38. package/dist/coding/optional-coding-graph.js +119 -0
  39. package/dist/coding/optional-coding-graph.js.map +1 -0
  40. package/dist/coding-graph-types-Dd2tGrnm.d.ts +106 -0
  41. package/dist/config.d.ts +1 -1
  42. package/dist/config.js +3 -1
  43. package/dist/connectors/index.d.ts +6 -2
  44. package/dist/connectors/index.js +6 -2
  45. package/dist/conversation-index/backend.js +2 -2
  46. package/dist/emit-legacy-tools.d.ts +61 -0
  47. package/dist/emit-legacy-tools.js +12 -0
  48. package/dist/emit-legacy-tools.js.map +1 -0
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +54 -46
  51. package/dist/index.js.map +1 -1
  52. package/dist/lcm/engine.js +2 -2
  53. package/dist/lcm/index.js +2 -2
  54. package/dist/namespaces/migrate.js +5 -5
  55. package/dist/namespaces/search.js +4 -4
  56. package/dist/operator-toolkit.js +10 -8
  57. package/dist/orchestrator.js +16 -16
  58. package/dist/resume-bundles.js +4 -2
  59. package/dist/schemas.d.ts +42 -42
  60. package/dist/search/factory.js +3 -3
  61. package/dist/search/index.js +3 -3
  62. package/dist/shared-context/manager.d.ts +2 -2
  63. package/dist/transfer/autodetect.js +1 -1
  64. package/dist/transfer/backup.js +1 -1
  65. package/dist/transfer/capsule-export.js +2 -2
  66. package/package.json +19 -1
  67. package/src/coding/coding-graph-types.ts +180 -0
  68. package/src/coding/optional-coding-graph-cache.test.ts +86 -0
  69. package/src/coding/optional-coding-graph-cacheread.test.ts +78 -0
  70. package/src/coding/optional-coding-graph-concurrent.test.ts +48 -0
  71. package/src/coding/optional-coding-graph-incompatible.test.ts +98 -0
  72. package/src/coding/optional-coding-graph-probe.test.ts +34 -0
  73. package/src/coding/optional-coding-graph.test.ts +117 -0
  74. package/src/coding/optional-coding-graph.ts +370 -0
  75. package/src/config.test.ts +408 -6
  76. package/src/config.ts +12 -56
  77. package/src/connectors/index.ts +2 -15
  78. package/src/connectors/paths.ts +50 -0
  79. package/src/emit-legacy-tools.test.ts +297 -0
  80. package/src/emit-legacy-tools.ts +204 -0
  81. package/src/index.ts +22 -0
  82. package/dist/chunk-BTLNC5YM.js.map +0 -1
  83. package/dist/chunk-MLVMBV2C.js.map +0 -1
  84. /package/dist/{chunk-UOBLE67F.js.map → chunk-3IE22DJ2.js.map} +0 -0
  85. /package/dist/{chunk-CRO4LCQ6.js.map → chunk-7OGJQP7T.js.map} +0 -0
  86. /package/dist/{chunk-23EBQ27U.js.map → chunk-B55KFEGS.js.map} +0 -0
  87. /package/dist/{chunk-KQAFEZQX.js.map → chunk-IPLYGWQF.js.map} +0 -0
  88. /package/dist/{chunk-PYTATYUV.js.map → chunk-ODWI5XU2.js.map} +0 -0
  89. /package/dist/{chunk-F7OWUP3G.js.map → chunk-OG7A6AZX.js.map} +0 -0
  90. /package/dist/{chunk-XS2CWEHZ.js.map → chunk-Q6MIDQEL.js.map} +0 -0
  91. /package/dist/{chunk-UDJLF3BO.js.map → chunk-QLRYXOAD.js.map} +0 -0
  92. /package/dist/{chunk-ZI6A7X4V.js.map → chunk-R37A3BEW.js.map} +0 -0
  93. /package/dist/{chunk-CPVV2UEL.js.map → chunk-SDLJ2W7S.js.map} +0 -0
  94. /package/dist/{chunk-Z4GALEO3.js.map → chunk-SF45RQDX.js.map} +0 -0
  95. /package/dist/{chunk-LXVOZ2O6.js.map → chunk-T2AOOHDA.js.map} +0 -0
  96. /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
  97. /package/dist/{chunk-32RD3GIW.js.map → chunk-XVVEKF5I.js.map} +0 -0
  98. /package/dist/{chunk-TGN4M5MB.js.map → chunk-ZLINDOBG.js.map} +0 -0
@@ -10,6 +10,10 @@ import {
10
10
  import {
11
11
  cloneDefaultSessionObserverBands
12
12
  } from "./chunk-Z5LAYHGJ.js";
13
+ import {
14
+ resolveEmitLegacyTools,
15
+ resolveNamespaceCatalogEnabled
16
+ } from "./chunk-QO3AILZN.js";
13
17
  import {
14
18
  normalizeEntitySchemas
15
19
  } from "./chunk-4DJQYKMN.js";
@@ -867,42 +871,6 @@ function coerceBooleanLike(value) {
867
871
  }
868
872
  return void 0;
869
873
  }
870
- function resolveEmitLegacyTools(configValue) {
871
- const ACCEPTED = "true/false/1/0/yes/no/on/off";
872
- if (configValue !== void 0 && configValue !== null) {
873
- const coerced = coerceBooleanLike(configValue);
874
- if (coerced === void 0) {
875
- throw new Error(
876
- `emitLegacyTools must be a boolean-like value (${ACCEPTED}); got ${JSON.stringify(configValue)}`
877
- );
878
- }
879
- return coerced;
880
- }
881
- const envRaw = readEnvVar("REMNIC_EMIT_LEGACY_TOOLS") ?? readEnvVar("ENGRAM_EMIT_LEGACY_TOOLS");
882
- if (envRaw !== void 0) {
883
- const coerced = coerceBooleanLike(envRaw);
884
- if (coerced === void 0) {
885
- throw new Error(
886
- `REMNIC_EMIT_LEGACY_TOOLS must be a boolean-like value (${ACCEPTED}); got "${envRaw}"`
887
- );
888
- }
889
- return coerced;
890
- }
891
- return true;
892
- }
893
- function resolveNamespaceCatalogEnabled(configValue) {
894
- const ACCEPTED = "true/false/1/0/yes/no/on/off";
895
- if (configValue !== void 0 && configValue !== null) {
896
- const coerced = coerceBooleanLike(configValue);
897
- if (coerced === void 0) {
898
- throw new Error(
899
- `namespaceCatalogEnabled must be a boolean-like value (${ACCEPTED}); got ${JSON.stringify(configValue)}`
900
- );
901
- }
902
- return coerced;
903
- }
904
- return true;
905
- }
906
874
  function readNestedConfig(cfg, blockName, key) {
907
875
  const block = validateNestedConfigBlock(cfg, blockName);
908
876
  if (!block) return void 0;
@@ -1199,7 +1167,7 @@ function resolveMemoryOsPreset(value) {
1199
1167
  }
1200
1168
  return MEMORY_OS_PRESET_ALIASES[normalized];
1201
1169
  }
1202
- function parseConfig(raw) {
1170
+ function parseConfig(raw, rawOperatorConfig, runtimeSet) {
1203
1171
  const baseCfg = raw && typeof raw === "object" && !Array.isArray(raw) ? raw : {};
1204
1172
  const memoryOsPreset = resolveMemoryOsPreset(baseCfg.memoryOsPreset);
1205
1173
  let cfg;
@@ -2313,7 +2281,7 @@ function parseConfig(raw) {
2313
2281
  // a PRESENT but unrecognized value ("flase", 2) is REJECTED rather than
2314
2282
  // silently defaulting to enabled (CLAUDE.md rule #51); default to enabled
2315
2283
  // only when the value is absent.
2316
- namespaceCatalogEnabled: resolveNamespaceCatalogEnabled(cfg.namespaceCatalogEnabled),
2284
+ namespaceCatalogEnabled: resolveNamespaceCatalogEnabled(cfg.namespaceCatalogEnabled, rawOperatorConfig, runtimeSet),
2317
2285
  // NOTE: namespace identifiers are intentionally NOT sanitized here — the
2318
2286
  // codebase rejects unsafe namespaces at the point of use (see
2319
2287
  // codex-materialize-runner and NamespaceStorageRouter / resolveNamespaceDir),
@@ -2955,7 +2923,7 @@ function parseConfig(raw) {
2955
2923
  // Legacy MCP tool aliases opt-out (issue #1427). Config field wins; then
2956
2924
  // the REMNIC_/ENGRAM_ env var (gotcha #9); default true for back-compat.
2957
2925
  // Malformed values fail fast rather than silently defaulting (gotcha #51).
2958
- emitLegacyTools: resolveEmitLegacyTools(cfg.emitLegacyTools),
2926
+ emitLegacyTools: resolveEmitLegacyTools(cfg.emitLegacyTools, rawOperatorConfig, runtimeSet),
2959
2927
  // Codex citation parity (issue #379)
2960
2928
  citationsEnabled: cfg.citationsEnabled === true,
2961
2929
  citationsAutoDetect: cfg.citationsAutoDetect !== false,
@@ -3243,4 +3211,4 @@ export {
3243
3211
  VALID_MEMORY_CATEGORIES,
3244
3212
  parseConfig
3245
3213
  };
3246
- //# sourceMappingURL=chunk-MLVMBV2C.js.map
3214
+ //# sourceMappingURL=chunk-IUZWBCJX.js.map