@theokit/sdk 4.63.1 → 4.63.3

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 (45) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/{agent-YWMBM7LX.js → agent-3JK7VXNN.js} +5 -5
  3. package/dist/{agent-YWMBM7LX.js.map → agent-3JK7VXNN.js.map} +1 -1
  4. package/dist/{agent-WK7MKIMH.cjs → agent-PVINJTUR.cjs} +6 -6
  5. package/dist/{agent-WK7MKIMH.cjs.map → agent-PVINJTUR.cjs.map} +1 -1
  6. package/dist/{chunk-KIH6IZ43.js → chunk-25BD2R5G.js} +24 -7
  7. package/dist/chunk-25BD2R5G.js.map +1 -0
  8. package/dist/{chunk-DKD3MH6A.js → chunk-ACDLHN3W.js} +3 -3
  9. package/dist/{chunk-DKD3MH6A.js.map → chunk-ACDLHN3W.js.map} +1 -1
  10. package/dist/{chunk-BVJJ3DRV.js → chunk-GPKAF7SG.js} +3 -3
  11. package/dist/{chunk-BVJJ3DRV.js.map → chunk-GPKAF7SG.js.map} +1 -1
  12. package/dist/{chunk-6RKUO7AW.cjs → chunk-IAHZCGBE.cjs} +5 -4
  13. package/dist/chunk-IAHZCGBE.cjs.map +1 -0
  14. package/dist/{chunk-ZMRD5DZQ.cjs → chunk-JJ3OVRUM.cjs} +39 -22
  15. package/dist/chunk-JJ3OVRUM.cjs.map +1 -0
  16. package/dist/{chunk-UEXIJTLC.js → chunk-L3MTL4NA.js} +3 -3
  17. package/dist/{chunk-UEXIJTLC.js.map → chunk-L3MTL4NA.js.map} +1 -1
  18. package/dist/{chunk-GEEXBYFL.js → chunk-L4BDVXIM.js} +4 -3
  19. package/dist/chunk-L4BDVXIM.js.map +1 -0
  20. package/dist/{chunk-HOXVQ5FR.cjs → chunk-OFRFZRQ4.cjs} +8 -8
  21. package/dist/{chunk-HOXVQ5FR.cjs.map → chunk-OFRFZRQ4.cjs.map} +1 -1
  22. package/dist/{chunk-ITYQ6VBP.cjs → chunk-VLVVJLDH.cjs} +14 -14
  23. package/dist/{chunk-ITYQ6VBP.cjs.map → chunk-VLVVJLDH.cjs.map} +1 -1
  24. package/dist/{chunk-Q7LPTOD6.cjs → chunk-ZWRG4NWT.cjs} +4 -4
  25. package/dist/{chunk-Q7LPTOD6.cjs.map → chunk-ZWRG4NWT.cjs.map} +1 -1
  26. package/dist/cron.cjs +5 -5
  27. package/dist/cron.js +4 -4
  28. package/dist/eval.cjs +4 -4
  29. package/dist/eval.js +3 -3
  30. package/dist/{index-manager-UZBF22BJ.cjs → index-manager-2SRX45WJ.cjs} +6 -5
  31. package/dist/{index-manager-UZBF22BJ.cjs.map → index-manager-2SRX45WJ.cjs.map} +1 -1
  32. package/dist/{index-manager-RBDHP3PM.js → index-manager-SP4ISSDX.js} +5 -4
  33. package/dist/{index-manager-RBDHP3PM.js.map → index-manager-SP4ISSDX.js.map} +1 -1
  34. package/dist/index.cjs +26 -26
  35. package/dist/index.js +8 -8
  36. package/dist/internal/memory/storage/index.cjs +31 -30
  37. package/dist/internal/memory/storage/index.js +3 -2
  38. package/dist/internal/memory/storage/memory-root.d.cts +10 -0
  39. package/dist/internal/memory/storage/memory-root.d.ts +10 -0
  40. package/docs/error-codes.md +1 -1
  41. package/package.json +1 -1
  42. package/dist/chunk-6RKUO7AW.cjs.map +0 -1
  43. package/dist/chunk-GEEXBYFL.js.map +0 -1
  44. package/dist/chunk-KIH6IZ43.js.map +0 -1
  45. package/dist/chunk-ZMRD5DZQ.cjs.map +0 -1
package/dist/eval.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { shellEscapePosix, LocalSandbox } from './chunk-2D34UTDC.js';
2
- import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-KIH6IZ43.js';
2
+ import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-25BD2R5G.js';
3
3
  import './chunk-A46SWMIF.js';
4
4
  import './chunk-4FFBAUFS.js';
5
5
  import { getTracer } from './chunk-K2BQQ445.js';
6
- import './chunk-UEXIJTLC.js';
6
+ import './chunk-L3MTL4NA.js';
7
7
  import './chunk-K5OJUYSZ.js';
8
8
  import './chunk-2SFBB54R.js';
9
9
  import './chunk-UBDMVMBZ.js';
10
10
  import './chunk-H73MEMQB.js';
11
11
  import './chunk-XO4SOZN6.js';
12
- import './chunk-GEEXBYFL.js';
12
+ import './chunk-L4BDVXIM.js';
13
13
  import './chunk-BP46RJ5X.js';
14
14
  import './chunk-DN2PACRI.js';
15
15
  import './chunk-TAZVKYWJ.js';
@@ -1,10 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkITYQ6VBP_cjs = require('./chunk-ITYQ6VBP.cjs');
3
+ var chunkVLVVJLDH_cjs = require('./chunk-VLVVJLDH.cjs');
4
4
  require('./chunk-GHX4P3V2.cjs');
5
- require('./chunk-6RKUO7AW.cjs');
5
+ require('./chunk-IAHZCGBE.cjs');
6
6
  require('./chunk-KRD3GQAA.cjs');
7
7
  require('./chunk-MUUQ2WFJ.cjs');
8
+ require('./chunk-LKFET5A3.cjs');
8
9
  require('./chunk-V2BOS4WF.cjs');
9
10
  require('./chunk-VKJ7V7EB.cjs');
10
11
  require('./chunk-5HEG4CQH.cjs');
@@ -20,7 +21,7 @@ require('./chunk-EG4QM7ZJ.cjs');
20
21
 
21
22
  Object.defineProperty(exports, "IndexManager", {
22
23
  enumerable: true,
23
- get: function () { return chunkITYQ6VBP_cjs.IndexManager; }
24
+ get: function () { return chunkVLVVJLDH_cjs.IndexManager; }
24
25
  });
25
- //# sourceMappingURL=index-manager-UZBF22BJ.cjs.map
26
- //# sourceMappingURL=index-manager-UZBF22BJ.cjs.map
26
+ //# sourceMappingURL=index-manager-2SRX45WJ.cjs.map
27
+ //# sourceMappingURL=index-manager-2SRX45WJ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index-manager-UZBF22BJ.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index-manager-2SRX45WJ.cjs"}
@@ -1,8 +1,9 @@
1
- export { IndexManager } from './chunk-UEXIJTLC.js';
1
+ export { IndexManager } from './chunk-L3MTL4NA.js';
2
2
  import './chunk-H73MEMQB.js';
3
- import './chunk-GEEXBYFL.js';
3
+ import './chunk-L4BDVXIM.js';
4
4
  import './chunk-KVNWIAO4.js';
5
5
  import './chunk-FD2UT76F.js';
6
+ import './chunk-WFC26L6Y.js';
6
7
  import './chunk-HS7AVXTF.js';
7
8
  import './chunk-RIAM53CP.js';
8
9
  import './chunk-UMP6OJIM.js';
@@ -13,5 +14,5 @@ import './chunk-2GUYQR5P.js';
13
14
  import './chunk-ZZMZWBR6.js';
14
15
  import './chunk-D4CUGAKZ.js';
15
16
  import './chunk-XEQ3TM66.js';
16
- //# sourceMappingURL=index-manager-RBDHP3PM.js.map
17
- //# sourceMappingURL=index-manager-RBDHP3PM.js.map
17
+ //# sourceMappingURL=index-manager-SP4ISSDX.js.map
18
+ //# sourceMappingURL=index-manager-SP4ISSDX.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index-manager-RBDHP3PM.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index-manager-SP4ISSDX.js"}
package/dist/index.cjs CHANGED
@@ -3,24 +3,24 @@
3
3
  var chunkLYRDF5TQ_cjs = require('./chunk-LYRDF5TQ.cjs');
4
4
  var chunkOBA6YK2R_cjs = require('./chunk-OBA6YK2R.cjs');
5
5
  var chunk3NSS2OIZ_cjs = require('./chunk-3NSS2OIZ.cjs');
6
- var chunkHOXVQ5FR_cjs = require('./chunk-HOXVQ5FR.cjs');
6
+ var chunkOFRFZRQ4_cjs = require('./chunk-OFRFZRQ4.cjs');
7
7
  var chunkSZVR77EJ_cjs = require('./chunk-SZVR77EJ.cjs');
8
8
  require('./chunk-B4EOJWOY.cjs');
9
9
  var chunkYML4ME27_cjs = require('./chunk-YML4ME27.cjs');
10
10
  require('./chunk-WNO3C3N2.cjs');
11
11
  require('./chunk-VTYY7XL5.cjs');
12
- var chunkQ7LPTOD6_cjs = require('./chunk-Q7LPTOD6.cjs');
13
- var chunkZMRD5DZQ_cjs = require('./chunk-ZMRD5DZQ.cjs');
12
+ var chunkZWRG4NWT_cjs = require('./chunk-ZWRG4NWT.cjs');
13
+ var chunkJJ3OVRUM_cjs = require('./chunk-JJ3OVRUM.cjs');
14
14
  var chunk3FFAEAUJ_cjs = require('./chunk-3FFAEAUJ.cjs');
15
15
  require('./chunk-RMWTPV3M.cjs');
16
16
  require('./chunk-BUUUWQMB.cjs');
17
- require('./chunk-ITYQ6VBP.cjs');
17
+ require('./chunk-VLVVJLDH.cjs');
18
18
  require('./chunk-ZCIRZE37.cjs');
19
19
  require('./chunk-BV2MWEMV.cjs');
20
20
  require('./chunk-KQ7TS7WW.cjs');
21
21
  require('./chunk-GHX4P3V2.cjs');
22
22
  require('./chunk-GKEFRLU7.cjs');
23
- var chunk6RKUO7AW_cjs = require('./chunk-6RKUO7AW.cjs');
23
+ var chunkIAHZCGBE_cjs = require('./chunk-IAHZCGBE.cjs');
24
24
  require('./chunk-ZLQSWSJ2.cjs');
25
25
  var chunkKYAJINUI_cjs = require('./chunk-KYAJINUI.cjs');
26
26
  require('./chunk-O7DK5PBJ.cjs');
@@ -73,8 +73,8 @@ var path = require('path');
73
73
  // src/agent-factory.ts
74
74
  function createAgentFactory(common) {
75
75
  return {
76
- forSession: (agentId, overrides) => chunkZMRD5DZQ_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
77
- getOrCreate: (agentId, overrides) => chunkZMRD5DZQ_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
76
+ forSession: (agentId, overrides) => chunkJJ3OVRUM_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
77
+ getOrCreate: (agentId, overrides) => chunkJJ3OVRUM_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
78
78
  };
79
79
  }
80
80
  function mergeAgentOptions(common, overrides, agentId) {
@@ -1161,8 +1161,8 @@ async function runInner(options) {
1161
1161
  const now = options.now ?? Date.now;
1162
1162
  const timestampMs = now();
1163
1163
  try {
1164
- const root = options.memoryRoot ?? chunk6RKUO7AW_cjs.resolveMemoryRoot(options.cwd);
1165
- const facts = await chunk6RKUO7AW_cjs.readFactsFromMarkdown(
1164
+ const root = options.memoryRoot ?? chunkIAHZCGBE_cjs.resolveMemoryRoot(options.cwd);
1165
+ const facts = await chunkIAHZCGBE_cjs.readFactsFromMarkdown(
1166
1166
  options.cwd,
1167
1167
  options.memoryRoot ? { directory: options.memoryRoot } : void 0
1168
1168
  );
@@ -1181,7 +1181,7 @@ async function runInner(options) {
1181
1181
  notesWritten,
1182
1182
  diaryEntryHash: void 0
1183
1183
  };
1184
- await chunkHOXVQ5FR_cjs.appendDiaryEntry(root, {
1184
+ await chunkOFRFZRQ4_cjs.appendDiaryEntry(root, {
1185
1185
  timestampMs,
1186
1186
  factsBefore: result.factsBefore,
1187
1187
  factsAfter: result.factsAfter,
@@ -1265,8 +1265,8 @@ var Memory = {
1265
1265
  openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
1266
1266
  return await peer.IndexManager.open(openArgs);
1267
1267
  }
1268
- const { IndexManager } = await import('./index-manager-UZBF22BJ.cjs');
1269
- openArgs.embedding = await resolveEmbedding(opts.embedding, chunkZMRD5DZQ_cjs.MEMORY_EMBEDDING_ADAPTERS);
1268
+ const { IndexManager } = await import('./index-manager-2SRX45WJ.cjs');
1269
+ openArgs.embedding = await resolveEmbedding(opts.embedding, chunkJJ3OVRUM_cjs.MEMORY_EMBEDDING_ADAPTERS);
1270
1270
  return await IndexManager.open(openArgs);
1271
1271
  },
1272
1272
  /**
@@ -1277,7 +1277,7 @@ var Memory = {
1277
1277
  */
1278
1278
  async runDreamingSweep(opts) {
1279
1279
  const peer = await tryLoadSdkMemoryPeer();
1280
- const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkZMRD5DZQ_cjs.MEMORY_EMBEDDING_ADAPTERS;
1280
+ const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkJJ3OVRUM_cjs.MEMORY_EMBEDDING_ADAPTERS;
1281
1281
  const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
1282
1282
  const result = peer !== null ? (
1283
1283
  // biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
@@ -1311,7 +1311,7 @@ async function buildDreamingSweepArgs(opts, catalog) {
1311
1311
  const runtime = await resolveEmbedding(opts.embedding, catalog);
1312
1312
  return {
1313
1313
  cwd: opts.cwd,
1314
- memoryRoot: chunk6RKUO7AW_cjs.resolveMemoryRoot(opts.cwd, { directory: opts.directory }),
1314
+ memoryRoot: chunkIAHZCGBE_cjs.resolveMemoryRoot(opts.cwd, { directory: opts.directory }),
1315
1315
  embedding: runtime,
1316
1316
  ...opts.dedupThreshold !== void 0 ? { dedupThreshold: opts.dedupThreshold } : {},
1317
1317
  ...opts.clusterThreshold !== void 0 ? { clusterThreshold: opts.clusterThreshold } : {}
@@ -1350,7 +1350,7 @@ async function migrateSqliteToLance2(options) {
1350
1350
  if (peer !== null) {
1351
1351
  return peer.migrateSqliteToLance(options);
1352
1352
  }
1353
- return chunkHOXVQ5FR_cjs.migrateSqliteToLance(options);
1353
+ return chunkOFRFZRQ4_cjs.migrateSqliteToLance(options);
1354
1354
  }
1355
1355
 
1356
1356
  // src/permission-engine.ts
@@ -1701,7 +1701,7 @@ function isBuiltAgent(m) {
1701
1701
  return typeof m.send === "function";
1702
1702
  }
1703
1703
  async function materialize(def, index) {
1704
- const { Agent: Agent2 } = await import('./agent-WK7MKIMH.cjs');
1704
+ const { Agent: Agent2 } = await import('./agent-PVINJTUR.cjs');
1705
1705
  return Agent2.create({
1706
1706
  // `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
1707
1707
  // here means "declare nothing and let the default apply" — forwarding the literal would create
@@ -1843,7 +1843,7 @@ var FIXTURE_USER = {
1843
1843
  };
1844
1844
  var FIXTURE_MODELS = [
1845
1845
  {
1846
- id: chunkZMRD5DZQ_cjs.DEFAULT_AGENTIC_MODEL_ID,
1846
+ id: chunkJJ3OVRUM_cjs.DEFAULT_AGENTIC_MODEL_ID,
1847
1847
  name: "Gemini 2.0 Flash",
1848
1848
  displayName: "Gemini 2.0 Flash",
1849
1849
  parameters: [
@@ -2046,7 +2046,7 @@ var Theokit = class {
2046
2046
  envVars: p.envVars
2047
2047
  }));
2048
2048
  },
2049
- embeddingAdapters: () => Object.entries(chunkZMRD5DZQ_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
2049
+ embeddingAdapters: () => Object.entries(chunkJJ3OVRUM_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
2050
2050
  id,
2051
2051
  transport: adapter.transport,
2052
2052
  defaultModel: adapter.defaultModel
@@ -2265,35 +2265,35 @@ Object.defineProperty(exports, "fn", {
2265
2265
  });
2266
2266
  Object.defineProperty(exports, "Cron", {
2267
2267
  enumerable: true,
2268
- get: function () { return chunkQ7LPTOD6_cjs.Cron; }
2268
+ get: function () { return chunkZWRG4NWT_cjs.Cron; }
2269
2269
  });
2270
2270
  Object.defineProperty(exports, "Agent", {
2271
2271
  enumerable: true,
2272
- get: function () { return chunkZMRD5DZQ_cjs.Agent; }
2272
+ get: function () { return chunkJJ3OVRUM_cjs.Agent; }
2273
2273
  });
2274
2274
  Object.defineProperty(exports, "AgentBuilder", {
2275
2275
  enumerable: true,
2276
- get: function () { return chunkZMRD5DZQ_cjs.AgentBuilder; }
2276
+ get: function () { return chunkJJ3OVRUM_cjs.AgentBuilder; }
2277
2277
  });
2278
2278
  Object.defineProperty(exports, "Tool", {
2279
2279
  enumerable: true,
2280
- get: function () { return chunkZMRD5DZQ_cjs.Tool; }
2280
+ get: function () { return chunkJJ3OVRUM_cjs.Tool; }
2281
2281
  });
2282
2282
  Object.defineProperty(exports, "ToolError", {
2283
2283
  enumerable: true,
2284
- get: function () { return chunkZMRD5DZQ_cjs.ToolError; }
2284
+ get: function () { return chunkJJ3OVRUM_cjs.ToolError; }
2285
2285
  });
2286
2286
  Object.defineProperty(exports, "UsageAccumulator", {
2287
2287
  enumerable: true,
2288
- get: function () { return chunkZMRD5DZQ_cjs.UsageAccumulator; }
2288
+ get: function () { return chunkJJ3OVRUM_cjs.UsageAccumulator; }
2289
2289
  });
2290
2290
  Object.defineProperty(exports, "computeCost", {
2291
2291
  enumerable: true,
2292
- get: function () { return chunkZMRD5DZQ_cjs.computeCost; }
2292
+ get: function () { return chunkJJ3OVRUM_cjs.computeCost; }
2293
2293
  });
2294
2294
  Object.defineProperty(exports, "getPricingEntry", {
2295
2295
  enumerable: true,
2296
- get: function () { return chunkZMRD5DZQ_cjs.getPricingEntry; }
2296
+ get: function () { return chunkJJ3OVRUM_cjs.getPricingEntry; }
2297
2297
  });
2298
2298
  Object.defineProperty(exports, "emitRunEvent", {
2299
2299
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
1
  export { StreamObjectError } from './chunk-U6IFHFWK.js';
2
2
  export { GOAL_CONTINUATION_MARKER } from './chunk-PY2RQOA7.js';
3
3
  export { JudgeCredentialError } from './chunk-IPYYKCRC.js';
4
- import { migrateSqliteToLance, appendDiaryEntry } from './chunk-DKD3MH6A.js';
4
+ import { migrateSqliteToLance, appendDiaryEntry } from './chunk-ACDLHN3W.js';
5
5
  export { GenerateObjectError } from './chunk-BU4KFWXF.js';
6
6
  import './chunk-UNYXQ4M5.js';
7
7
  import { Workflow, agentStep } from './chunk-OSEG74VJ.js';
8
8
  export { Workflow, agentStep, fn } from './chunk-OSEG74VJ.js';
9
9
  import './chunk-BZRFXJHA.js';
10
10
  import './chunk-HY66GLM6.js';
11
- export { Cron } from './chunk-BVJJ3DRV.js';
12
- import { MEMORY_EMBEDDING_ADAPTERS, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-KIH6IZ43.js';
13
- export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-KIH6IZ43.js';
11
+ export { Cron } from './chunk-GPKAF7SG.js';
12
+ import { MEMORY_EMBEDDING_ADAPTERS, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-25BD2R5G.js';
13
+ export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-25BD2R5G.js';
14
14
  import { configure, submit, list, get, cancel, subscribe } from './chunk-A46SWMIF.js';
15
15
  export { emitRunEvent } from './chunk-A46SWMIF.js';
16
16
  import './chunk-4FFBAUFS.js';
17
17
  import './chunk-K2BQQ445.js';
18
- import './chunk-UEXIJTLC.js';
18
+ import './chunk-L3MTL4NA.js';
19
19
  import './chunk-K5OJUYSZ.js';
20
20
  import './chunk-2SFBB54R.js';
21
21
  import './chunk-UBDMVMBZ.js';
22
22
  import './chunk-H73MEMQB.js';
23
23
  import './chunk-XO4SOZN6.js';
24
- import { resolveMemoryRoot, readFactsFromMarkdown } from './chunk-GEEXBYFL.js';
24
+ import { resolveMemoryRoot, readFactsFromMarkdown } from './chunk-L4BDVXIM.js';
25
25
  import './chunk-BP46RJ5X.js';
26
26
  import { discoverProviderPlugins, shouldUseFixtureMode, isFixtureApiKey, httpRequest, mapOllamaTransportError, readErrorResponseBody, mapOllamaHttpError } from './chunk-DN2PACRI.js';
27
27
  import './chunk-TAZVKYWJ.js';
@@ -1269,7 +1269,7 @@ var Memory = {
1269
1269
  openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
1270
1270
  return await peer.IndexManager.open(openArgs);
1271
1271
  }
1272
- const { IndexManager } = await import('./index-manager-RBDHP3PM.js');
1272
+ const { IndexManager } = await import('./index-manager-SP4ISSDX.js');
1273
1273
  openArgs.embedding = await resolveEmbedding(opts.embedding, MEMORY_EMBEDDING_ADAPTERS);
1274
1274
  return await IndexManager.open(openArgs);
1275
1275
  },
@@ -1705,7 +1705,7 @@ function isBuiltAgent(m) {
1705
1705
  return typeof m.send === "function";
1706
1706
  }
1707
1707
  async function materialize(def, index) {
1708
- const { Agent: Agent2 } = await import('./agent-YWMBM7LX.js');
1708
+ const { Agent: Agent2 } = await import('./agent-3JK7VXNN.js');
1709
1709
  return Agent2.create({
1710
1710
  // `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
1711
1711
  // here means "declare nothing and let the default apply" — forwarding the literal would create
@@ -1,10 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkHOXVQ5FR_cjs = require('../../../chunk-HOXVQ5FR.cjs');
3
+ var chunkOFRFZRQ4_cjs = require('../../../chunk-OFRFZRQ4.cjs');
4
4
  var chunkGKEFRLU7_cjs = require('../../../chunk-GKEFRLU7.cjs');
5
- var chunk6RKUO7AW_cjs = require('../../../chunk-6RKUO7AW.cjs');
5
+ var chunkIAHZCGBE_cjs = require('../../../chunk-IAHZCGBE.cjs');
6
6
  require('../../../chunk-KRD3GQAA.cjs');
7
7
  require('../../../chunk-MUUQ2WFJ.cjs');
8
+ require('../../../chunk-LKFET5A3.cjs');
8
9
  require('../../../chunk-V2BOS4WF.cjs');
9
10
  require('../../../chunk-VKJ7V7EB.cjs');
10
11
  require('../../../chunk-5HEG4CQH.cjs');
@@ -19,23 +20,23 @@ require('../../../chunk-EG4QM7ZJ.cjs');
19
20
 
20
21
  Object.defineProperty(exports, "appendDiaryEntry", {
21
22
  enumerable: true,
22
- get: function () { return chunkHOXVQ5FR_cjs.appendDiaryEntry; }
23
+ get: function () { return chunkOFRFZRQ4_cjs.appendDiaryEntry; }
23
24
  });
24
25
  Object.defineProperty(exports, "diaryPath", {
25
26
  enumerable: true,
26
- get: function () { return chunkHOXVQ5FR_cjs.diaryPath; }
27
+ get: function () { return chunkOFRFZRQ4_cjs.diaryPath; }
27
28
  });
28
29
  Object.defineProperty(exports, "entryHash", {
29
30
  enumerable: true,
30
- get: function () { return chunkHOXVQ5FR_cjs.entryHash; }
31
+ get: function () { return chunkOFRFZRQ4_cjs.entryHash; }
31
32
  });
32
33
  Object.defineProperty(exports, "readAllSqliteFacts", {
33
34
  enumerable: true,
34
- get: function () { return chunkHOXVQ5FR_cjs.readAllSqliteFacts; }
35
+ get: function () { return chunkOFRFZRQ4_cjs.readAllSqliteFacts; }
35
36
  });
36
37
  Object.defineProperty(exports, "renderDiaryEntry", {
37
38
  enumerable: true,
38
- get: function () { return chunkHOXVQ5FR_cjs.renderDiaryEntry; }
39
+ get: function () { return chunkOFRFZRQ4_cjs.renderDiaryEntry; }
39
40
  });
40
41
  Object.defineProperty(exports, "persistActiveMemoryTranscript", {
41
42
  enumerable: true,
@@ -43,95 +44,95 @@ Object.defineProperty(exports, "persistActiveMemoryTranscript", {
43
44
  });
44
45
  Object.defineProperty(exports, "MEMORY_INDEX_MAX_BYTES", {
45
46
  enumerable: true,
46
- get: function () { return chunk6RKUO7AW_cjs.MEMORY_INDEX_MAX_BYTES; }
47
+ get: function () { return chunkIAHZCGBE_cjs.MEMORY_INDEX_MAX_BYTES; }
47
48
  });
48
49
  Object.defineProperty(exports, "MEMORY_INDEX_MAX_LINES", {
49
50
  enumerable: true,
50
- get: function () { return chunk6RKUO7AW_cjs.MEMORY_INDEX_MAX_LINES; }
51
+ get: function () { return chunkIAHZCGBE_cjs.MEMORY_INDEX_MAX_LINES; }
51
52
  });
52
53
  Object.defineProperty(exports, "appendFact", {
53
54
  enumerable: true,
54
- get: function () { return chunk6RKUO7AW_cjs.appendFact; }
55
+ get: function () { return chunkIAHZCGBE_cjs.appendFact; }
55
56
  });
56
57
  Object.defineProperty(exports, "appendFactToMarkdown", {
57
58
  enumerable: true,
58
- get: function () { return chunk6RKUO7AW_cjs.appendFactToMarkdown; }
59
+ get: function () { return chunkIAHZCGBE_cjs.appendFactToMarkdown; }
59
60
  });
60
61
  Object.defineProperty(exports, "asMemoryRoot", {
61
62
  enumerable: true,
62
- get: function () { return chunk6RKUO7AW_cjs.asMemoryRoot; }
63
+ get: function () { return chunkIAHZCGBE_cjs.asMemoryRoot; }
63
64
  });
64
65
  Object.defineProperty(exports, "claudeProjectMemoryDir", {
65
66
  enumerable: true,
66
- get: function () { return chunk6RKUO7AW_cjs.claudeProjectMemoryDir; }
67
+ get: function () { return chunkIAHZCGBE_cjs.claudeProjectMemoryDir; }
67
68
  });
68
69
  Object.defineProperty(exports, "collectMarkdownFiles", {
69
70
  enumerable: true,
70
- get: function () { return chunk6RKUO7AW_cjs.collectMarkdownFiles; }
71
+ get: function () { return chunkIAHZCGBE_cjs.collectMarkdownFiles; }
71
72
  });
72
73
  Object.defineProperty(exports, "defaultIndexPath", {
73
74
  enumerable: true,
74
- get: function () { return chunk6RKUO7AW_cjs.defaultIndexPath; }
75
+ get: function () { return chunkIAHZCGBE_cjs.defaultIndexPath; }
75
76
  });
76
77
  Object.defineProperty(exports, "discoverSessionFiles", {
77
78
  enumerable: true,
78
- get: function () { return chunk6RKUO7AW_cjs.discoverSessionFiles; }
79
+ get: function () { return chunkIAHZCGBE_cjs.discoverSessionFiles; }
79
80
  });
80
81
  Object.defineProperty(exports, "discoverWikiFiles", {
81
82
  enumerable: true,
82
- get: function () { return chunk6RKUO7AW_cjs.discoverWikiFiles; }
83
+ get: function () { return chunkIAHZCGBE_cjs.discoverWikiFiles; }
83
84
  });
84
85
  Object.defineProperty(exports, "indexBudgetWarning", {
85
86
  enumerable: true,
86
- get: function () { return chunk6RKUO7AW_cjs.indexBudgetWarning; }
87
+ get: function () { return chunkIAHZCGBE_cjs.indexBudgetWarning; }
87
88
  });
88
89
  Object.defineProperty(exports, "lanceStoragePath", {
89
90
  enumerable: true,
90
- get: function () { return chunk6RKUO7AW_cjs.lanceStoragePath; }
91
+ get: function () { return chunkIAHZCGBE_cjs.lanceStoragePath; }
91
92
  });
92
93
  Object.defineProperty(exports, "memoryMdPath", {
93
94
  enumerable: true,
94
- get: function () { return chunk6RKUO7AW_cjs.memoryMdPath; }
95
+ get: function () { return chunkIAHZCGBE_cjs.memoryMdPath; }
95
96
  });
96
97
  Object.defineProperty(exports, "memoryReadRoots", {
97
98
  enumerable: true,
98
- get: function () { return chunk6RKUO7AW_cjs.memoryReadRoots; }
99
+ get: function () { return chunkIAHZCGBE_cjs.memoryReadRoots; }
99
100
  });
100
101
  Object.defineProperty(exports, "notesDir", {
101
102
  enumerable: true,
102
- get: function () { return chunk6RKUO7AW_cjs.notesDir; }
103
+ get: function () { return chunkIAHZCGBE_cjs.notesDir; }
103
104
  });
104
105
  Object.defineProperty(exports, "projectMemoryDir", {
105
106
  enumerable: true,
106
- get: function () { return chunk6RKUO7AW_cjs.projectMemoryDir; }
107
+ get: function () { return chunkIAHZCGBE_cjs.projectMemoryDir; }
107
108
  });
108
109
  Object.defineProperty(exports, "readFacts", {
109
110
  enumerable: true,
110
- get: function () { return chunk6RKUO7AW_cjs.readFacts; }
111
+ get: function () { return chunkIAHZCGBE_cjs.readFacts; }
111
112
  });
112
113
  Object.defineProperty(exports, "readFactsFromMarkdown", {
113
114
  enumerable: true,
114
- get: function () { return chunk6RKUO7AW_cjs.readFactsFromMarkdown; }
115
+ get: function () { return chunkIAHZCGBE_cjs.readFactsFromMarkdown; }
115
116
  });
116
117
  Object.defineProperty(exports, "resolveMemoryRoot", {
117
118
  enumerable: true,
118
- get: function () { return chunk6RKUO7AW_cjs.resolveMemoryRoot; }
119
+ get: function () { return chunkIAHZCGBE_cjs.resolveMemoryRoot; }
119
120
  });
120
121
  Object.defineProperty(exports, "sessionSummaryPath", {
121
122
  enumerable: true,
122
- get: function () { return chunk6RKUO7AW_cjs.sessionSummaryPath; }
123
+ get: function () { return chunkIAHZCGBE_cjs.sessionSummaryPath; }
123
124
  });
124
125
  Object.defineProperty(exports, "sessionsDir", {
125
126
  enumerable: true,
126
- get: function () { return chunk6RKUO7AW_cjs.sessionsDir; }
127
+ get: function () { return chunkIAHZCGBE_cjs.sessionsDir; }
127
128
  });
128
129
  Object.defineProperty(exports, "wikiDir", {
129
130
  enumerable: true,
130
- get: function () { return chunk6RKUO7AW_cjs.wikiDir; }
131
+ get: function () { return chunkIAHZCGBE_cjs.wikiDir; }
131
132
  });
132
133
  Object.defineProperty(exports, "writeSessionSummary", {
133
134
  enumerable: true,
134
- get: function () { return chunk6RKUO7AW_cjs.writeSessionSummary; }
135
+ get: function () { return chunkIAHZCGBE_cjs.writeSessionSummary; }
135
136
  });
136
137
  //# sourceMappingURL=index.cjs.map
137
138
  //# sourceMappingURL=index.cjs.map
@@ -1,8 +1,9 @@
1
- export { appendDiaryEntry, diaryPath, entryHash, readAllSqliteFacts, renderDiaryEntry } from '../../../chunk-DKD3MH6A.js';
1
+ export { appendDiaryEntry, diaryPath, entryHash, readAllSqliteFacts, renderDiaryEntry } from '../../../chunk-ACDLHN3W.js';
2
2
  export { persistActiveMemoryTranscript } from '../../../chunk-XO4SOZN6.js';
3
- export { MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, appendFact, appendFactToMarkdown, asMemoryRoot, claudeProjectMemoryDir, collectMarkdownFiles, defaultIndexPath, discoverSessionFiles, discoverWikiFiles, indexBudgetWarning, lanceStoragePath, memoryMdPath, memoryReadRoots, notesDir, projectMemoryDir, readFacts, readFactsFromMarkdown, resolveMemoryRoot, sessionSummaryPath, sessionsDir, wikiDir, writeSessionSummary } from '../../../chunk-GEEXBYFL.js';
3
+ export { MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, appendFact, appendFactToMarkdown, asMemoryRoot, claudeProjectMemoryDir, collectMarkdownFiles, defaultIndexPath, discoverSessionFiles, discoverWikiFiles, indexBudgetWarning, lanceStoragePath, memoryMdPath, memoryReadRoots, notesDir, projectMemoryDir, readFacts, readFactsFromMarkdown, resolveMemoryRoot, sessionSummaryPath, sessionsDir, wikiDir, writeSessionSummary } from '../../../chunk-L4BDVXIM.js';
4
4
  import '../../../chunk-KVNWIAO4.js';
5
5
  import '../../../chunk-FD2UT76F.js';
6
+ import '../../../chunk-WFC26L6Y.js';
6
7
  import '../../../chunk-HS7AVXTF.js';
7
8
  import '../../../chunk-RIAM53CP.js';
8
9
  import '../../../chunk-UMP6OJIM.js';
@@ -41,6 +41,16 @@ export declare function projectMemoryDir(cwd: string): MemoryRoot;
41
41
  *
42
42
  * Read, never written. This is the half of the interop that decoupling the write MUST NOT cost: a
43
43
  * memory the CLI recorded stays visible whatever `memory.directory` says.
44
+ *
45
+ * **Keyed by the GIT ROOT, not by `cwd` (#479).** The CLI derives this path from the repository, so
46
+ * every subdirectory and worktree shares one auto-memory directory; outside a repository it uses the
47
+ * directory itself. Keying by `cwd` meant an agent running from a monorepo package, a `tools/`
48
+ * script or a nested test read a directory the CLI never writes to — finding nothing, and saying
49
+ * nothing, which is the same observation an empty store produces.
50
+ *
51
+ * TRANSCRIPTS ARE THE TRAP, and the reason this went unnoticed: the CLI keys THOSE by `cwd`, and
52
+ * `encodeProjectDir` is right for them. One encoder for two axes made the two indistinguishable in
53
+ * the code. The encoder is still shared — the path it is given is not.
44
54
  */
45
55
  export declare function claudeProjectMemoryDir(cwd: string): MemoryRoot;
46
56
  /**
@@ -41,6 +41,16 @@ export declare function projectMemoryDir(cwd: string): MemoryRoot;
41
41
  *
42
42
  * Read, never written. This is the half of the interop that decoupling the write MUST NOT cost: a
43
43
  * memory the CLI recorded stays visible whatever `memory.directory` says.
44
+ *
45
+ * **Keyed by the GIT ROOT, not by `cwd` (#479).** The CLI derives this path from the repository, so
46
+ * every subdirectory and worktree shares one auto-memory directory; outside a repository it uses the
47
+ * directory itself. Keying by `cwd` meant an agent running from a monorepo package, a `tools/`
48
+ * script or a nested test read a directory the CLI never writes to — finding nothing, and saying
49
+ * nothing, which is the same observation an empty store produces.
50
+ *
51
+ * TRANSCRIPTS ARE THE TRAP, and the reason this went unnoticed: the CLI keys THOSE by `cwd`, and
52
+ * `encodeProjectDir` is right for them. One encoder for two axes made the two indistinguishable in
53
+ * the code. The encoder is still shared — the path it is given is not.
44
54
  */
45
55
  export declare function claudeProjectMemoryDir(cwd: string): MemoryRoot;
46
56
  /**
@@ -88,7 +88,7 @@ Branch on `code`, never on the message: messages carry context (an id, a path, a
88
88
  | `invalid_input` | domain | MemoryAdapterError | `packages/memory-honcho/src/adapter.ts:98` +9 |
89
89
  | `invalid_max_iterations` | domain | ConfigurationError | `packages/sdk/src/internal/local-agent/real-local-run.ts:215` |
90
90
  | `invalid_memory_backend` | domain | ConfigurationError | `packages/sdk/src/internal/memory/index-manager-dispatch.ts:24` +1 |
91
- | `invalid_memory_directory` | domain | ConfigurationError | `packages/sdk/src/internal/memory/storage/memory-root.ts:105` |
91
+ | `invalid_memory_directory` | domain | ConfigurationError | `packages/sdk/src/internal/memory/storage/memory-root.ts:116` |
92
92
  | `invalid_memory_kind` | domain | ConfigurationError | `packages/sdk/src/internal/memory/storage/markdown-store.ts:206` |
93
93
  | `invalid_model_selection` | domain | ConfigurationError | `packages/sdk/src/internal/runtime/model-selection.ts:21` |
94
94
  | `invalid_request` | transport | — | `packages/sdk/src/internal/error-mappers/vertex.ts:52` +1 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theokit/sdk",
3
- "version": "4.63.1",
3
+ "version": "4.63.3",
4
4
  "description": "TypeScript SDK for the Theo agent harness — same surface, local or cloud.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/usetheokit/theokit-sdk#readme",