@theokit/sdk 4.58.0 → 4.60.0

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 (66) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/{agent-MIYY7TXV.cjs → agent-26RMDG4U.cjs} +8 -7
  3. package/dist/{agent-MIYY7TXV.cjs.map → agent-26RMDG4U.cjs.map} +1 -1
  4. package/dist/{agent-6WM4QOWS.js → agent-6ABK2DPG.js} +7 -6
  5. package/dist/{agent-6WM4QOWS.js.map → agent-6ABK2DPG.js.map} +1 -1
  6. package/dist/{chunk-N47KLTKD.cjs → chunk-23GPJGRR.cjs} +45 -28
  7. package/dist/chunk-23GPJGRR.cjs.map +1 -0
  8. package/dist/{chunk-QIRDQZYL.cjs → chunk-3HDTP4ZO.cjs} +4 -4
  9. package/dist/{chunk-QIRDQZYL.cjs.map → chunk-3HDTP4ZO.cjs.map} +1 -1
  10. package/dist/{chunk-GNT35C5U.cjs → chunk-6SBW4QR2.cjs} +2 -2
  11. package/dist/{chunk-GNT35C5U.cjs.map → chunk-6SBW4QR2.cjs.map} +1 -1
  12. package/dist/{chunk-CF5OMCZG.js → chunk-76XTUTKY.js} +34 -17
  13. package/dist/chunk-76XTUTKY.js.map +1 -0
  14. package/dist/{chunk-WLZ7XRWH.js → chunk-7OXXYBHD.js} +7 -179
  15. package/dist/chunk-7OXXYBHD.js.map +1 -0
  16. package/dist/{chunk-5QOIQJ5J.js → chunk-E5MWNLRX.js} +3 -3
  17. package/dist/{chunk-5QOIQJ5J.js.map → chunk-E5MWNLRX.js.map} +1 -1
  18. package/dist/{chunk-XV4IZNV4.js → chunk-FUL2I7G5.js} +2 -2
  19. package/dist/{chunk-XV4IZNV4.js.map → chunk-FUL2I7G5.js.map} +1 -1
  20. package/dist/chunk-JVERBPRD.js +191 -0
  21. package/dist/chunk-JVERBPRD.js.map +1 -0
  22. package/dist/chunk-NY25NBZB.cjs +203 -0
  23. package/dist/chunk-NY25NBZB.cjs.map +1 -0
  24. package/dist/{chunk-27AXGJMV.cjs → chunk-Y2KJ7MYO.cjs} +14 -194
  25. package/dist/chunk-Y2KJ7MYO.cjs.map +1 -0
  26. package/dist/cron.cjs +7 -6
  27. package/dist/cron.js +6 -5
  28. package/dist/eval.cjs +6 -5
  29. package/dist/eval.cjs.map +1 -1
  30. package/dist/eval.js +5 -4
  31. package/dist/eval.js.map +1 -1
  32. package/dist/{index-manager-WYESAVTX.js → index-manager-KP2JAXKN.js} +4 -3
  33. package/dist/{index-manager-WYESAVTX.js.map → index-manager-KP2JAXKN.js.map} +1 -1
  34. package/dist/{index-manager-J2QIDI6I.cjs → index-manager-YUORPS4G.cjs} +5 -4
  35. package/dist/{index-manager-J2QIDI6I.cjs.map → index-manager-YUORPS4G.cjs.map} +1 -1
  36. package/dist/index.cjs +35 -34
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.js +12 -11
  39. package/dist/index.js.map +1 -1
  40. package/dist/internal/memory/storage/chunk-markdown.d.cts +2 -0
  41. package/dist/internal/memory/storage/index.cjs +54 -0
  42. package/dist/internal/memory/storage/index.cjs.map +1 -0
  43. package/dist/internal/memory/storage/index.d.cts +18 -0
  44. package/dist/internal/memory/storage/index.d.ts +18 -0
  45. package/dist/internal/memory/storage/index.js +13 -0
  46. package/dist/internal/memory/storage/index.js.map +1 -0
  47. package/dist/internal/memory/storage/markdown-store.d.cts +77 -0
  48. package/dist/internal/memory/storage/markdown-store.d.ts +46 -5
  49. package/dist/internal/memory/storage/memory-file.d.cts +54 -0
  50. package/dist/internal/memory/storage/reader.d.cts +8 -0
  51. package/dist/internal/memory/storage/session-loader.d.cts +1 -0
  52. package/dist/internal/memory/storage/session-summary-writer.d.cts +2 -0
  53. package/dist/internal/memory/storage/transcript-store.d.cts +1 -0
  54. package/dist/internal/memory/storage/wiki-loader.d.cts +2 -0
  55. package/dist/internal/persistence/session-dir.d.cts +15 -0
  56. package/dist/internal/persistence/session-dir.d.ts +15 -0
  57. package/dist/internal/runtime/memory/memory-store.d.ts +2 -2
  58. package/dist/workflow.cjs +9 -9
  59. package/dist/workflow.js +1 -1
  60. package/docs/error-codes.md +1 -1
  61. package/docs/harness-capability-map.md +15 -1
  62. package/package.json +11 -1
  63. package/dist/chunk-27AXGJMV.cjs.map +0 -1
  64. package/dist/chunk-CF5OMCZG.js.map +0 -1
  65. package/dist/chunk-N47KLTKD.cjs.map +0 -1
  66. package/dist/chunk-WLZ7XRWH.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.60.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8d072cf: The markdown memory store is now importable by `@theokit/sdk-memory` instead of copied into it.
8
+
9
+ `@theokit/sdk-memory` carries its own copy of the store, and `Memory.runDreamingSweep` replaces this
10
+ implementation with the peer's whenever the peer is installed — so the copy that runs is not the copy
11
+ anyone maintains. It stayed on the layout that predates the file-per-memory format, which means
12
+ installing `@theokit/sdk-memory` today makes every memory this SDK has written unreadable. Nothing
13
+ throws: the sweep reports `factsBefore: 0`, a number indistinguishable from an empty store (#430).
14
+
15
+ This release ships the half that has to exist first — the `@theokit/sdk/internal/memory-store`
16
+ sub-path, semver-exempt like `internal/persistence` and `internal/memory-adapters`. The satellite
17
+ cannot declare a floor on a version that is not published yet, so its delegation follows in the next
18
+ release rather than riding along with a floor nobody can install.
19
+
20
+ theokit#160 fixed this exact shape for the embedding runtime, in this same package pair. Re-syncing a
21
+ copy fixes today's divergence and leaves tomorrow's free to happen.
22
+
23
+ ## 4.59.0
24
+
25
+ ### Minor Changes
26
+
27
+ - bd44344: Memories this SDK records can now land where the Claude Code CLI reads them, closing the direction
28
+ that was missing: the CLI's memories were already visible here, but everything this SDK wrote went to
29
+ `<cwd>/.theokit/memory`, invisible to the CLI in the same project.
30
+
31
+ `local.sessionDir` is the switch, because it is already the option this project documents for that
32
+ interop — point it at `~/.claude` and the CLI can `--continue` a session your agent wrote. A consumer
33
+ who set it has said they share state with that CLI, and memory following is what that sentence
34
+ already implied. There is no new option, and **nothing moves for anyone who never set it**.
35
+
36
+ The rule that makes this safe is **write one, read all**. Reads cover the project store, the
37
+ configured session home, and the CLI's own default location, so a consumer whose new facts move keeps
38
+ every fact they already had. The change relocates where the next one lands; it orphans nothing.
39
+
40
+ The `MEMORY.md` index is written beside the files it lists rather than in the project store — an
41
+ index in one directory naming memories in another points at files that are not there, and that index
42
+ is what the CLI reads.
43
+
3
44
  ## 4.58.0
4
45
 
5
46
  ### Minor Changes
@@ -1,14 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkN47KLTKD_cjs = require('./chunk-N47KLTKD.cjs');
3
+ var chunk23GPJGRR_cjs = require('./chunk-23GPJGRR.cjs');
4
+ require('./chunk-NGESVVJN.cjs');
4
5
  require('./chunk-KKK3FZ4A.cjs');
5
- require('./chunk-27AXGJMV.cjs');
6
+ require('./chunk-BUUUWQMB.cjs');
7
+ require('./chunk-Y2KJ7MYO.cjs');
6
8
  require('./chunk-P6H23T43.cjs');
7
9
  require('./chunk-BV2MWEMV.cjs');
8
- require('./chunk-NGESVVJN.cjs');
9
- require('./chunk-BUUUWQMB.cjs');
10
10
  require('./chunk-EI2Q7SJ5.cjs');
11
11
  require('./chunk-GHX4P3V2.cjs');
12
+ require('./chunk-NY25NBZB.cjs');
12
13
  require('./chunk-QI7WE46I.cjs');
13
14
  require('./chunk-43GFJ5SD.cjs');
14
15
  require('./chunk-F3YZMOAU.cjs');
@@ -57,7 +58,7 @@ require('./chunk-NUKRL3I6.cjs');
57
58
 
58
59
  Object.defineProperty(exports, "Agent", {
59
60
  enumerable: true,
60
- get: function () { return chunkN47KLTKD_cjs.Agent; }
61
+ get: function () { return chunk23GPJGRR_cjs.Agent; }
61
62
  });
62
- //# sourceMappingURL=agent-MIYY7TXV.cjs.map
63
- //# sourceMappingURL=agent-MIYY7TXV.cjs.map
63
+ //# sourceMappingURL=agent-26RMDG4U.cjs.map
64
+ //# sourceMappingURL=agent-26RMDG4U.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-MIYY7TXV.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-26RMDG4U.cjs"}
@@ -1,12 +1,13 @@
1
- export { Agent } from './chunk-CF5OMCZG.js';
1
+ export { Agent } from './chunk-76XTUTKY.js';
2
+ import './chunk-SUKXXLWD.js';
2
3
  import './chunk-WG7R5W6R.js';
3
- import './chunk-WLZ7XRWH.js';
4
+ import './chunk-K2BQQ445.js';
5
+ import './chunk-7OXXYBHD.js';
4
6
  import './chunk-MZ2FGBLZ.js';
5
7
  import './chunk-2SFBB54R.js';
6
- import './chunk-SUKXXLWD.js';
7
- import './chunk-K2BQQ445.js';
8
8
  import './chunk-XN7NOENA.js';
9
9
  import './chunk-H73MEMQB.js';
10
+ import './chunk-JVERBPRD.js';
10
11
  import './chunk-YJDH3CKG.js';
11
12
  import './chunk-IACR5LEM.js';
12
13
  import './chunk-3E77SX4H.js';
@@ -50,5 +51,5 @@ import './chunk-3OR54XG4.js';
50
51
  import './chunk-IDCKSLYH.js';
51
52
  import './chunk-T7XEKOVW.js';
52
53
  import './chunk-T7O6K6PX.js';
53
- //# sourceMappingURL=agent-6WM4QOWS.js.map
54
- //# sourceMappingURL=agent-6WM4QOWS.js.map
54
+ //# sourceMappingURL=agent-6ABK2DPG.js.map
55
+ //# sourceMappingURL=agent-6ABK2DPG.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-6WM4QOWS.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-6ABK2DPG.js"}
@@ -1,11 +1,12 @@
1
1
  'use strict';
2
2
 
3
+ var chunkNGESVVJN_cjs = require('./chunk-NGESVVJN.cjs');
3
4
  var chunkKKK3FZ4A_cjs = require('./chunk-KKK3FZ4A.cjs');
4
- var chunk27AXGJMV_cjs = require('./chunk-27AXGJMV.cjs');
5
+ var chunkY2KJ7MYO_cjs = require('./chunk-Y2KJ7MYO.cjs');
5
6
  var chunkP6H23T43_cjs = require('./chunk-P6H23T43.cjs');
6
7
  var chunkBV2MWEMV_cjs = require('./chunk-BV2MWEMV.cjs');
7
- var chunkNGESVVJN_cjs = require('./chunk-NGESVVJN.cjs');
8
8
  var chunkEI2Q7SJ5_cjs = require('./chunk-EI2Q7SJ5.cjs');
9
+ var chunkNY25NBZB_cjs = require('./chunk-NY25NBZB.cjs');
9
10
  var chunkQI7WE46I_cjs = require('./chunk-QI7WE46I.cjs');
10
11
  var chunk43GFJ5SD_cjs = require('./chunk-43GFJ5SD.cjs');
11
12
  var chunk2ZPEDVLM_cjs = require('./chunk-2ZPEDVLM.cjs');
@@ -885,7 +886,7 @@ async function readLegacyFacts(jsonPath) {
885
886
  }
886
887
  async function writeMigratedFacts(cwd, jsonPath, facts) {
887
888
  try {
888
- for (const fact of facts) await chunk27AXGJMV_cjs.appendFactToMarkdown(cwd, fact);
889
+ for (const fact of facts) await chunkNY25NBZB_cjs.appendFactToMarkdown(cwd, fact);
889
890
  await promises.unlink(jsonPath).catch(() => void 0);
890
891
  chunkNUKRL3I6_cjs.diag(`[theokit-sdk] migrated ${facts.length} fact(s) from ${jsonPath} to MEMORY.md
891
892
  `);
@@ -902,11 +903,11 @@ async function migrateLegacyJson(cwd, config) {
902
903
  const key = `${cwd}::${config.namespace ?? "default"}::${config.scope ?? "agent"}::${config.userId ?? "default"}`;
903
904
  if (migrationRun.has(key)) return { migrated: false, factCount: 0, reason: "already-migrated" };
904
905
  migrationRun.add(key);
905
- const jsonPath = chunk27AXGJMV_cjs.legacyMemoryJsonPath(cwd, config);
906
+ const jsonPath = chunkNY25NBZB_cjs.legacyMemoryJsonPath(cwd, config);
906
907
  if (!await fileExists(jsonPath)) {
907
908
  return { migrated: false, factCount: 0, reason: "no-legacy-json" };
908
909
  }
909
- if (await fileExists(chunk27AXGJMV_cjs.memoryMdPath(cwd))) {
910
+ if (await fileExists(chunkNY25NBZB_cjs.memoryMdPath(cwd))) {
910
911
  chunkNUKRL3I6_cjs.diag(
911
912
  `[theokit-sdk] memory migration skipped: both MEMORY.md and legacy JSON exist at ${jsonPath}; leaving both intact
912
913
  `
@@ -933,21 +934,21 @@ function extractMemoryKind(message) {
933
934
  const declared = match?.[1];
934
935
  if (declared === void 0) return void 0;
935
936
  const lowered = declared.toLowerCase();
936
- return chunk27AXGJMV_cjs.MEMORY_KINDS.includes(lowered) ? lowered : void 0;
937
+ return chunkNY25NBZB_cjs.MEMORY_KINDS.includes(lowered) ? lowered : void 0;
937
938
  }
938
- async function readMemoryFacts(cwd, config) {
939
+ async function readMemoryFacts(cwd, config, memoryHome) {
939
940
  if (!config.enabled) return [];
940
941
  await migrateLegacyJson(cwd, config);
941
- return chunk27AXGJMV_cjs.readFacts(cwd, config);
942
+ return chunkNY25NBZB_cjs.readFacts(cwd, config, memoryHome);
942
943
  }
943
- async function appendMemoryFact(cwd, config, fact) {
944
+ async function appendMemoryFact(cwd, config, fact, memoryHome) {
944
945
  if (!config.enabled) return;
945
946
  await migrateLegacyJson(cwd, config);
946
947
  const sanitized = {
947
948
  text: chunkJTB5Q42C_cjs.redactSecrets(fact.text),
948
949
  ...fact.kind === void 0 ? {} : { kind: fact.kind }
949
950
  };
950
- await chunk27AXGJMV_cjs.appendFact(cwd, config, sanitized);
951
+ await chunkNY25NBZB_cjs.appendFact(cwd, config, sanitized, memoryHome);
951
952
  }
952
953
 
953
954
  // src/internal/runtime/fixtures/fixture-scripts.ts
@@ -2134,6 +2135,10 @@ function resolveSessionDir(local) {
2134
2135
  }
2135
2136
  return chunkBUIK7GUA_cjs.defaultBaseDir();
2136
2137
  }
2138
+ function explicitSessionDir(local) {
2139
+ if (local?.sessionDir === void 0 && local?.baseDir === void 0) return void 0;
2140
+ return resolveSessionDir(local);
2141
+ }
2137
2142
  var SCHEMA_VERSION2 = 1;
2138
2143
  var FILE_NAME = "personality.json";
2139
2144
  function emptyState() {
@@ -2800,7 +2805,7 @@ async function runPostRunLifecycle(inputs) {
2800
2805
  if (memoryProvider?.recordSessionSummary !== void 0) {
2801
2806
  await memoryProvider.recordSessionSummary(summaryArgs);
2802
2807
  } else {
2803
- await chunk27AXGJMV_cjs.writeSessionSummary(summaryArgs);
2808
+ await chunkY2KJ7MYO_cjs.writeSessionSummary(summaryArgs);
2804
2809
  }
2805
2810
  if (!shouldUsePortMemoryPath()) {
2806
2811
  void memoryGlue.syncIfReady();
@@ -3424,7 +3429,7 @@ var HISTOGRAM_NAMES = {
3424
3429
  };
3425
3430
  function safeRequire(moduleName) {
3426
3431
  try {
3427
- const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-N47KLTKD.cjs', document.baseURI).href)));
3432
+ const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-23GPJGRR.cjs', document.baseURI).href)));
3428
3433
  return r(moduleName);
3429
3434
  } catch {
3430
3435
  return void 0;
@@ -3652,7 +3657,7 @@ var cachedOtel;
3652
3657
  function loadOtel() {
3653
3658
  if (cachedOtel === void 0) {
3654
3659
  try {
3655
- const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-N47KLTKD.cjs', document.baseURI).href)));
3660
+ const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-23GPJGRR.cjs', document.baseURI).href)));
3656
3661
  const mod = r("@opentelemetry/api");
3657
3662
  cachedOtel = mod;
3658
3663
  } catch {
@@ -7771,7 +7776,7 @@ async function reloadLocalAgent(agent) {
7771
7776
  }
7772
7777
  async function persistActiveMemoryTranscript(cwd, transcript) {
7773
7778
  try {
7774
- const dir = path.join(chunk27AXGJMV_cjs.memoryDir(cwd), "transcripts", "active-memory");
7779
+ const dir = path.join(chunkNY25NBZB_cjs.memoryDir(cwd), "transcripts", "active-memory");
7775
7780
  const file = path.join(dir, `${transcript.runId}.json`);
7776
7781
  await chunkI6TGFUCO_cjs.atomicWriteJson(file, transcript);
7777
7782
  } catch (cause) {
@@ -8401,7 +8406,7 @@ function createMemorySearchTool(opts) {
8401
8406
  };
8402
8407
  }
8403
8408
  function createMemoryGetTool(opts) {
8404
- const memoryRoot = path.resolve(chunk27AXGJMV_cjs.memoryDir(opts.cwd));
8409
+ const memoryRoot = path.resolve(chunkNY25NBZB_cjs.memoryDir(opts.cwd));
8405
8410
  return {
8406
8411
  name: "memory_get",
8407
8412
  description: GET_DESCRIPTION,
@@ -8507,7 +8512,7 @@ var LocalAgentMemory = class {
8507
8512
  const openOpts = { cwd: this.workspaceCwd };
8508
8513
  if (embedding !== void 0) openOpts.embedding = embedding;
8509
8514
  if (cfg?.backend !== void 0) openOpts.backend = cfg.backend;
8510
- this.index = await chunk27AXGJMV_cjs.IndexManager.open(openOpts);
8515
+ this.index = await chunkY2KJ7MYO_cjs.IndexManager.open(openOpts);
8511
8516
  await this.index.sync();
8512
8517
  this.toolsCache = [
8513
8518
  createMemorySearchTool({ index: this.index }),
@@ -8765,7 +8770,7 @@ function createLocalAgentMemoryProvider(opts) {
8765
8770
  return { facts: [], systemPromptAdditions: summary };
8766
8771
  },
8767
8772
  async recordSessionSummary(args) {
8768
- await chunk27AXGJMV_cjs.writeSessionSummary(args);
8773
+ await chunkY2KJ7MYO_cjs.writeSessionSummary(args);
8769
8774
  },
8770
8775
  async sync(handle) {
8771
8776
  const state = handle[INTERNAL_LAM_KEY];
@@ -8996,17 +9001,19 @@ async function localAgentFork(parent, options) {
8996
9001
  () => forkAgentImpl(parent, options, { create })
8997
9002
  );
8998
9003
  }
8999
- async function persistMemoryFactIfWritePrompt(workspaceCwd, memoryConfig, userText) {
9004
+ async function persistMemoryFactIfWritePrompt(workspaceCwd, memoryConfig, userText, memoryHome) {
9000
9005
  if (memoryConfig?.enabled !== true) return;
9001
9006
  if (!isMemoryWritePrompt(userText)) return;
9002
9007
  const fact = extractMemoryFact(userText);
9003
9008
  if (fact.length === 0) return;
9004
9009
  const kind = extractMemoryKind(userText);
9005
9010
  await safeCall(
9006
- () => appendMemoryFact(workspaceCwd, memoryConfig, {
9007
- text: fact,
9008
- ...kind === void 0 ? {} : { kind }
9009
- }),
9011
+ () => appendMemoryFact(
9012
+ workspaceCwd,
9013
+ memoryConfig,
9014
+ { text: fact, ...kind === void 0 ? {} : { kind } },
9015
+ memoryHome
9016
+ ),
9010
9017
  void 0,
9011
9018
  "memory write"
9012
9019
  );
@@ -9332,8 +9339,18 @@ async function executeSendLocked(inputs, message, options) {
9332
9339
  });
9333
9340
  const priorMessages = [...chunkKKK3FZ4A_cjs.getSessionMessages(inputs.agentId)];
9334
9341
  chunkKKK3FZ4A_cjs.appendSessionMessage(inputs.agentId, { role: "user", text: userText });
9335
- await persistMemoryFactIfWritePrompt(inputs.workspaceCwd, inputs.options.memory, userText);
9336
- const memoryFacts = await readMemoryForSend(inputs.workspaceCwd, inputs.options.memory);
9342
+ const memoryHome = explicitSessionDir(inputs.options.local);
9343
+ await persistMemoryFactIfWritePrompt(
9344
+ inputs.workspaceCwd,
9345
+ inputs.options.memory,
9346
+ userText,
9347
+ memoryHome
9348
+ );
9349
+ const memoryFacts = await readMemoryForSend(
9350
+ inputs.workspaceCwd,
9351
+ inputs.options.memory,
9352
+ memoryHome
9353
+ );
9337
9354
  const portPathActive = shouldUsePortMemoryPath();
9338
9355
  const legacyTools = portPathActive ? void 0 : await inputs.memoryGlue.ensureTools();
9339
9356
  const legacySummary = portPathActive ? void 0 : await inputs.memoryGlue.runActiveMemoryIfEnabled(userText, priorMessages, inputs.telemetry);
@@ -9395,9 +9412,9 @@ function buildCompletionCheckDeps() {
9395
9412
  }
9396
9413
  };
9397
9414
  }
9398
- function readMemoryForSend(workspaceCwd, memoryConfig) {
9415
+ function readMemoryForSend(workspaceCwd, memoryConfig, memoryHome) {
9399
9416
  if (memoryConfig?.enabled !== true) return Promise.resolve([]);
9400
- return safeCall(() => readMemoryFacts(workspaceCwd, memoryConfig), [], "memory read");
9417
+ return safeCall(() => readMemoryFacts(workspaceCwd, memoryConfig, memoryHome), [], "memory read");
9401
9418
  }
9402
9419
 
9403
9420
  // src/internal/local-agent/local-agent-task-wrap.ts
@@ -10584,5 +10601,5 @@ exports.computeCost = computeCost;
10584
10601
  exports.generateCronId = generateCronId;
10585
10602
  exports.getPricingEntry = getPricingEntry;
10586
10603
  exports.openRouterMemoryEmbeddingProviderAdapter = openRouterMemoryEmbeddingProviderAdapter;
10587
- //# sourceMappingURL=chunk-N47KLTKD.cjs.map
10588
- //# sourceMappingURL=chunk-N47KLTKD.cjs.map
10604
+ //# sourceMappingURL=chunk-23GPJGRR.cjs.map
10605
+ //# sourceMappingURL=chunk-23GPJGRR.cjs.map