@theokit/sdk 4.54.0 → 4.56.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 (115) hide show
  1. package/CHANGELOG.md +159 -0
  2. package/dist/a2a/index.cjs +13 -4
  3. package/dist/a2a/index.cjs.map +1 -1
  4. package/dist/a2a/index.d.cts +1 -1
  5. package/dist/a2a/index.d.ts +1 -1
  6. package/dist/a2a/index.js +13 -5
  7. package/dist/a2a/index.js.map +1 -1
  8. package/dist/a2a/message-bus.d.cts +33 -4
  9. package/dist/a2a/message-bus.d.ts +33 -4
  10. package/dist/{agent-CIUgz7cN.d.cts → agent-D3Xr_-6Z.d.cts} +61 -6
  11. package/dist/{agent-DSec-E0c.d.ts → agent-DIu6FooJ.d.ts} +61 -6
  12. package/dist/{agent-VGD5WL4N.js → agent-K3PQBS7D.js} +10 -9
  13. package/dist/{agent-VGD5WL4N.js.map → agent-K3PQBS7D.js.map} +1 -1
  14. package/dist/{agent-NOEGF4GI.cjs → agent-PJMBK7HQ.cjs} +11 -10
  15. package/dist/{agent-NOEGF4GI.cjs.map → agent-PJMBK7HQ.cjs.map} +1 -1
  16. package/dist/{chunk-SSQZA3DZ.js → chunk-2BDH744Z.js} +3 -3
  17. package/dist/{chunk-SSQZA3DZ.js.map → chunk-2BDH744Z.js.map} +1 -1
  18. package/dist/chunk-6HTXPPHK.cjs +18 -0
  19. package/dist/{chunk-3KGLRRFC.cjs.map → chunk-6HTXPPHK.cjs.map} +1 -1
  20. package/dist/{chunk-5UOVYM3P.cjs → chunk-6VLKVX7O.cjs} +131 -54
  21. package/dist/chunk-6VLKVX7O.cjs.map +1 -0
  22. package/dist/{chunk-5PHVENFV.js → chunk-7FHZ4VQX.js} +3 -55
  23. package/dist/chunk-7FHZ4VQX.js.map +1 -0
  24. package/dist/{chunk-Q47R5E2X.cjs → chunk-E3WZ6Y4H.cjs} +7 -59
  25. package/dist/chunk-E3WZ6Y4H.cjs.map +1 -0
  26. package/dist/{chunk-TTHBHAJI.cjs → chunk-H5GOSXSC.cjs} +4 -4
  27. package/dist/{chunk-TTHBHAJI.cjs.map → chunk-H5GOSXSC.cjs.map} +1 -1
  28. package/dist/{chunk-UNDROG5N.cjs → chunk-HLPSLDGL.cjs} +94 -26
  29. package/dist/chunk-HLPSLDGL.cjs.map +1 -0
  30. package/dist/{chunk-TPTZA6NI.js → chunk-KBXWEWKS.js} +70 -29
  31. package/dist/chunk-KBXWEWKS.js.map +1 -0
  32. package/dist/chunk-KRD3GQAA.cjs +71 -0
  33. package/dist/chunk-KRD3GQAA.cjs.map +1 -0
  34. package/dist/chunk-KVNWIAO4.js +68 -0
  35. package/dist/chunk-KVNWIAO4.js.map +1 -0
  36. package/dist/{chunk-UFAO4T7Z.cjs → chunk-LQYQHXIW.cjs} +129 -88
  37. package/dist/chunk-LQYQHXIW.cjs.map +1 -0
  38. package/dist/{chunk-AGSBJD2L.js → chunk-M7UHYBEY.js} +3 -3
  39. package/dist/{chunk-AGSBJD2L.js.map → chunk-M7UHYBEY.js.map} +1 -1
  40. package/dist/{chunk-VDEWG5TV.js → chunk-MVAPK2BX.js} +77 -9
  41. package/dist/chunk-MVAPK2BX.js.map +1 -0
  42. package/dist/{chunk-RM7Y65IG.cjs → chunk-NIRE5CNO.cjs} +10 -3
  43. package/dist/{chunk-FXEUP75G.js.map → chunk-NIRE5CNO.cjs.map} +1 -1
  44. package/dist/{chunk-DAPSQZT4.js → chunk-ODTZ7HX3.js} +131 -54
  45. package/dist/chunk-ODTZ7HX3.js.map +1 -0
  46. package/dist/{chunk-DUIF54UP.js → chunk-OHBIUXKM.js} +3 -3
  47. package/dist/{chunk-DUIF54UP.js.map → chunk-OHBIUXKM.js.map} +1 -1
  48. package/dist/{chunk-FXEUP75G.js → chunk-Q4CMI2LP.js} +9 -2
  49. package/dist/chunk-Q4CMI2LP.js.map +1 -0
  50. package/dist/{chunk-5BJV5UPY.cjs → chunk-V2UUGUY4.cjs} +3 -3
  51. package/dist/{chunk-5BJV5UPY.cjs.map → chunk-V2UUGUY4.cjs.map} +1 -1
  52. package/dist/{compact-session-K5LXTBPJ.js → compact-session-FUJDVF7B.js} +4 -4
  53. package/dist/{compact-session-K5LXTBPJ.js.map → compact-session-FUJDVF7B.js.map} +1 -1
  54. package/dist/{compact-session-YCT6JMBX.cjs → compact-session-LEWF554G.cjs} +12 -12
  55. package/dist/{compact-session-YCT6JMBX.cjs.map → compact-session-LEWF554G.cjs.map} +1 -1
  56. package/dist/context/index.cjs +6 -5
  57. package/dist/context/index.cjs.map +1 -1
  58. package/dist/context/index.js +3 -2
  59. package/dist/context/index.js.map +1 -1
  60. package/dist/{cron-DxxeQ-sK.d.cts → cron-BcWmzWzT.d.cts} +1 -1
  61. package/dist/{cron-CRwy2JBF.d.ts → cron-De6hzWCF.d.ts} +1 -1
  62. package/dist/cron.cjs +10 -9
  63. package/dist/cron.d.cts +2 -2
  64. package/dist/cron.d.ts +2 -2
  65. package/dist/cron.js +9 -8
  66. package/dist/eval.cjs +9 -8
  67. package/dist/eval.cjs.map +1 -1
  68. package/dist/eval.js +8 -7
  69. package/dist/eval.js.map +1 -1
  70. package/dist/{index-manager-ZMRJ6ZII.js → index-manager-WBIMDVQT.js} +4 -3
  71. package/dist/{index-manager-ZMRJ6ZII.js.map → index-manager-WBIMDVQT.js.map} +1 -1
  72. package/dist/{index-manager-NG5YENWO.cjs → index-manager-WC5ZVJWO.cjs} +5 -4
  73. package/dist/{index-manager-NG5YENWO.cjs.map → index-manager-WC5ZVJWO.cjs.map} +1 -1
  74. package/dist/index.cjs +47 -46
  75. package/dist/index.cjs.map +1 -1
  76. package/dist/index.d.cts +3 -3
  77. package/dist/index.d.ts +3 -3
  78. package/dist/index.js +12 -11
  79. package/dist/index.js.map +1 -1
  80. package/dist/{inject-session-DDR6X6PC.js → inject-session-BJMJH5BX.js} +3 -3
  81. package/dist/{inject-session-DDR6X6PC.js.map → inject-session-BJMJH5BX.js.map} +1 -1
  82. package/dist/{inject-session-XLO3KTBM.cjs → inject-session-WQGGMCQY.cjs} +4 -4
  83. package/dist/{inject-session-XLO3KTBM.cjs.map → inject-session-WQGGMCQY.cjs.map} +1 -1
  84. package/dist/internal/llm/prompt-cache-key.d.ts +1 -0
  85. package/dist/internal/llm/responses.d.ts +67 -1
  86. package/dist/internal/llm/types.d.ts +15 -0
  87. package/dist/internal/local-agent/real-local-run-tools.d.ts +17 -6
  88. package/dist/internal/memory/storage/markdown-store.d.ts +14 -2
  89. package/dist/internal/memory/storage/memory-file.d.ts +54 -0
  90. package/dist/internal/memory/types.d.ts +28 -0
  91. package/dist/models.cjs +9 -9
  92. package/dist/models.js +1 -1
  93. package/dist/providers.cjs +4 -4
  94. package/dist/providers.js +2 -2
  95. package/dist/sandbox/index.cjs +1 -1
  96. package/dist/sandbox/index.cjs.map +1 -1
  97. package/dist/sandbox/index.js +1 -1
  98. package/dist/sandbox/index.js.map +1 -1
  99. package/dist/subagents-loader.d.cts +1 -1
  100. package/dist/subagents-loader.d.ts +1 -1
  101. package/dist/types/agent.d.ts +47 -5
  102. package/dist/types/provider-profile.d.ts +13 -0
  103. package/docs/error-codes.md +22 -20
  104. package/docs/harness-capability-map.md +3 -1
  105. package/package.json +1 -1
  106. package/dist/chunk-3KGLRRFC.cjs +0 -18
  107. package/dist/chunk-5PHVENFV.js.map +0 -1
  108. package/dist/chunk-5UOVYM3P.cjs.map +0 -1
  109. package/dist/chunk-DAPSQZT4.js.map +0 -1
  110. package/dist/chunk-Q47R5E2X.cjs.map +0 -1
  111. package/dist/chunk-RM7Y65IG.cjs.map +0 -1
  112. package/dist/chunk-TPTZA6NI.js.map +0 -1
  113. package/dist/chunk-UFAO4T7Z.cjs.map +0 -1
  114. package/dist/chunk-UNDROG5N.cjs.map +0 -1
  115. package/dist/chunk-VDEWG5TV.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -8,10 +8,10 @@ require('./chunk-QDED6YO6.cjs');
8
8
  var chunkGNT35C5U_cjs = require('./chunk-GNT35C5U.cjs');
9
9
  require('./chunk-XWL6O3SW.cjs');
10
10
  require('./chunk-VTYY7XL5.cjs');
11
- var chunkTTHBHAJI_cjs = require('./chunk-TTHBHAJI.cjs');
12
- var chunkUFAO4T7Z_cjs = require('./chunk-UFAO4T7Z.cjs');
13
- require('./chunk-5BJV5UPY.cjs');
14
- var chunk5UOVYM3P_cjs = require('./chunk-5UOVYM3P.cjs');
11
+ var chunkH5GOSXSC_cjs = require('./chunk-H5GOSXSC.cjs');
12
+ var chunkLQYQHXIW_cjs = require('./chunk-LQYQHXIW.cjs');
13
+ require('./chunk-V2UUGUY4.cjs');
14
+ var chunk6VLKVX7O_cjs = require('./chunk-6VLKVX7O.cjs');
15
15
  require('./chunk-53CBTBWO.cjs');
16
16
  require('./chunk-BV2MWEMV.cjs');
17
17
  var chunkNGESVVJN_cjs = require('./chunk-NGESVVJN.cjs');
@@ -19,13 +19,14 @@ require('./chunk-BUUUWQMB.cjs');
19
19
  require('./chunk-EI2Q7SJ5.cjs');
20
20
  require('./chunk-GHX4P3V2.cjs');
21
21
  require('./chunk-YPJ5NH5N.cjs');
22
- var chunkUNDROG5N_cjs = require('./chunk-UNDROG5N.cjs');
22
+ var chunkHLPSLDGL_cjs = require('./chunk-HLPSLDGL.cjs');
23
23
  require('./chunk-F3YZMOAU.cjs');
24
24
  require('./chunk-4OTIXDMU.cjs');
25
25
  require('./chunk-DQKERTND.cjs');
26
26
  require('./chunk-CTCGWIUD.cjs');
27
27
  require('./chunk-2ZPEDVLM.cjs');
28
- require('./chunk-Q47R5E2X.cjs');
28
+ require('./chunk-E3WZ6Y4H.cjs');
29
+ require('./chunk-KRD3GQAA.cjs');
29
30
  require('./chunk-U2AC6JUP.cjs');
30
31
  require('./chunk-MUUQ2WFJ.cjs');
31
32
  var chunkWJVHMTKB_cjs = require('./chunk-WJVHMTKB.cjs');
@@ -51,8 +52,8 @@ require('./chunk-HJBMA5MB.cjs');
51
52
  require('./chunk-IWBGCBR6.cjs');
52
53
  require('./chunk-XSX2UU6Y.cjs');
53
54
  var chunk3EE6LVWT_cjs = require('./chunk-3EE6LVWT.cjs');
54
- require('./chunk-3KGLRRFC.cjs');
55
- var chunkRM7Y65IG_cjs = require('./chunk-RM7Y65IG.cjs');
55
+ require('./chunk-6HTXPPHK.cjs');
56
+ var chunkNIRE5CNO_cjs = require('./chunk-NIRE5CNO.cjs');
56
57
  require('./chunk-5USCYPPI.cjs');
57
58
  require('./chunk-BVZW2B5V.cjs');
58
59
  require('./chunk-52NKC5HT.cjs');
@@ -68,8 +69,8 @@ var fs = require('fs');
68
69
  // src/agent-factory.ts
69
70
  function createAgentFactory(common) {
70
71
  return {
71
- forSession: (agentId, overrides) => chunkUFAO4T7Z_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
72
- getOrCreate: (agentId, overrides) => chunkUFAO4T7Z_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
72
+ forSession: (agentId, overrides) => chunkLQYQHXIW_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
73
+ getOrCreate: (agentId, overrides) => chunkLQYQHXIW_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
73
74
  };
74
75
  }
75
76
  function mergeAgentOptions(common, overrides, agentId) {
@@ -643,8 +644,8 @@ var Provider = class _Provider {
643
644
  * `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
644
645
  */
645
646
  static builtins() {
646
- chunkRM7Y65IG_cjs.registerBuiltins();
647
- return chunkRM7Y65IG_cjs.listProviders().map((profile) => defineProvider(profile));
647
+ chunkNIRE5CNO_cjs.registerBuiltins();
648
+ return chunkNIRE5CNO_cjs.listProviders().map((profile) => defineProvider(profile));
648
649
  }
649
650
  /**
650
651
  * The builtin serving `modelId`, or `undefined` when none does.
@@ -1017,7 +1018,7 @@ function foldLayers(entries, accumulatingKeys = []) {
1017
1018
  return combined;
1018
1019
  }
1019
1020
  function diaryPath(cwd) {
1020
- return path.join(chunk5UOVYM3P_cjs.memoryDir(cwd), "dream-diary.md");
1021
+ return path.join(chunk6VLKVX7O_cjs.memoryDir(cwd), "dream-diary.md");
1021
1022
  }
1022
1023
  function renderDiaryEntry(entry) {
1023
1024
  const stamp = new Date(entry.timestampMs).toISOString();
@@ -1164,7 +1165,7 @@ async function runInner(options) {
1164
1165
  const now = options.now ?? Date.now;
1165
1166
  const timestampMs = now();
1166
1167
  try {
1167
- const facts = await chunk5UOVYM3P_cjs.readFactsFromMarkdown(options.cwd);
1168
+ const facts = await chunk6VLKVX7O_cjs.readFactsFromMarkdown(options.cwd);
1168
1169
  if (facts.length === 0) {
1169
1170
  return emptyResult("skipped");
1170
1171
  }
@@ -1198,7 +1199,7 @@ async function runInner(options) {
1198
1199
  }
1199
1200
  async function writeConsolidatedNotes(cwd, clusters, timestampMs) {
1200
1201
  if (clusters.length === 0) return 0;
1201
- const notesDir = path.join(chunk5UOVYM3P_cjs.memoryDir(cwd), "notes");
1202
+ const notesDir = path.join(chunk6VLKVX7O_cjs.memoryDir(cwd), "notes");
1202
1203
  await promises.mkdir(notesDir, { recursive: true });
1203
1204
  const isoSlug = new Date(timestampMs).toISOString().replace(/[^\dT]/g, "-");
1204
1205
  const file = path.join(notesDir, `dreamed-${isoSlug}.md`);
@@ -1264,8 +1265,8 @@ var Memory = {
1264
1265
  openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
1265
1266
  return await peer.IndexManager.open(openArgs);
1266
1267
  }
1267
- const { IndexManager } = await import('./index-manager-NG5YENWO.cjs');
1268
- openArgs.embedding = await resolveEmbedding(opts.embedding, chunkUFAO4T7Z_cjs.MEMORY_EMBEDDING_ADAPTERS);
1268
+ const { IndexManager } = await import('./index-manager-WC5ZVJWO.cjs');
1269
+ openArgs.embedding = await resolveEmbedding(opts.embedding, chunkLQYQHXIW_cjs.MEMORY_EMBEDDING_ADAPTERS);
1269
1270
  return await IndexManager.open(openArgs);
1270
1271
  },
1271
1272
  /**
@@ -1276,7 +1277,7 @@ var Memory = {
1276
1277
  */
1277
1278
  async runDreamingSweep(opts) {
1278
1279
  const peer = await tryLoadSdkMemoryPeer();
1279
- const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkUFAO4T7Z_cjs.MEMORY_EMBEDDING_ADAPTERS;
1280
+ const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkLQYQHXIW_cjs.MEMORY_EMBEDDING_ADAPTERS;
1280
1281
  const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
1281
1282
  const result = peer !== null ? (
1282
1283
  // biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
@@ -1342,9 +1343,9 @@ function extractRawId(id, expectedAdapterId) {
1342
1343
  return id.slice(prefix.length);
1343
1344
  }
1344
1345
  async function readAllSqliteFacts(cwd) {
1345
- const dbPath = chunk5UOVYM3P_cjs.defaultIndexPath(cwd);
1346
+ const dbPath = chunk6VLKVX7O_cjs.defaultIndexPath(cwd);
1346
1347
  if (!fs.existsSync(dbPath)) return [];
1347
- const db = await chunk5UOVYM3P_cjs.openMemoryDb({ filePath: dbPath });
1348
+ const db = await chunk6VLKVX7O_cjs.openMemoryDb({ filePath: dbPath });
1348
1349
  try {
1349
1350
  const stmt = db.prepare("SELECT id, path, source, start_line, end_line, text FROM chunks");
1350
1351
  const rows = stmt.all();
@@ -1363,7 +1364,7 @@ function nfcEqual(a, b) {
1363
1364
  }
1364
1365
  async function migrateSqliteToLance(opts) {
1365
1366
  const cwd = opts.cwd;
1366
- const finalPath = chunk5UOVYM3P_cjs.lanceStoragePath(cwd);
1367
+ const finalPath = chunk6VLKVX7O_cjs.lanceStoragePath(cwd);
1367
1368
  const newPath = path.join(cwd, ".theokit", "memory", "lance-new");
1368
1369
  const rawLog = opts.logger ?? ((m) => console.log(m));
1369
1370
  const log = (m) => rawLog(chunkJTB5Q42C_cjs.redactSecrets(m));
@@ -1407,7 +1408,7 @@ async function migrateSqliteToLance(opts) {
1407
1408
  };
1408
1409
  fs.mkdirSync(newPath, { recursive: true });
1409
1410
  log(`Writing Lance index to ${newPath} ...`);
1410
- const lance = await chunk5UOVYM3P_cjs.LanceIndex.open({
1411
+ const lance = await chunk6VLKVX7O_cjs.LanceIndex.open({
1411
1412
  cwd,
1412
1413
  embedding: placeholderEmbedding,
1413
1414
  storagePath: newPath
@@ -1840,7 +1841,7 @@ function isBuiltAgent(m) {
1840
1841
  return typeof m.send === "function";
1841
1842
  }
1842
1843
  async function materialize(def, index) {
1843
- const { Agent: Agent2 } = await import('./agent-NOEGF4GI.cjs');
1844
+ const { Agent: Agent2 } = await import('./agent-PJMBK7HQ.cjs');
1844
1845
  return Agent2.create({
1845
1846
  // `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
1846
1847
  // here means "declare nothing and let the default apply" — forwarding the literal would create
@@ -1982,7 +1983,7 @@ var FIXTURE_USER = {
1982
1983
  };
1983
1984
  var FIXTURE_MODELS = [
1984
1985
  {
1985
- id: chunkUFAO4T7Z_cjs.DEFAULT_AGENTIC_MODEL_ID,
1986
+ id: chunkLQYQHXIW_cjs.DEFAULT_AGENTIC_MODEL_ID,
1986
1987
  name: "Gemini 2.0 Flash",
1987
1988
  displayName: "Gemini 2.0 Flash",
1988
1989
  parameters: [
@@ -2058,7 +2059,7 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
2058
2059
  try {
2059
2060
  response = await fetch(url, { method: "GET" });
2060
2061
  } catch (fetchErr) {
2061
- const mapped = chunkUNDROG5N_cjs.mapOllamaTransportError({
2062
+ const mapped = chunkHLPSLDGL_cjs.mapOllamaTransportError({
2062
2063
  providerId: "ollama",
2063
2064
  cause: fetchErr,
2064
2065
  endpoint: "/v1/models"
@@ -2070,8 +2071,8 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
2070
2071
  );
2071
2072
  }
2072
2073
  if (!response.ok) {
2073
- const body = await chunkUNDROG5N_cjs.readErrorResponseBody(response);
2074
- const mapped = chunkUNDROG5N_cjs.mapOllamaHttpError({
2074
+ const body = await chunkHLPSLDGL_cjs.readErrorResponseBody(response);
2075
+ const mapped = chunkHLPSLDGL_cjs.mapOllamaHttpError({
2075
2076
  providerId: "ollama",
2076
2077
  status: response.status,
2077
2078
  body,
@@ -2134,9 +2135,9 @@ var Theokit = class {
2134
2135
  });
2135
2136
  },
2136
2137
  capabilities: (providerOrModelId) => {
2137
- chunkRM7Y65IG_cjs.registerBuiltins();
2138
+ chunkNIRE5CNO_cjs.registerBuiltins();
2138
2139
  const providerId = providerOrModelId.includes("/") ? providerOrModelId.split("/")[0] ?? providerOrModelId : providerOrModelId;
2139
- return chunkRM7Y65IG_cjs.getCatalogCapabilities(providerId);
2140
+ return chunkNIRE5CNO_cjs.getCatalogCapabilities(providerId);
2140
2141
  }
2141
2142
  };
2142
2143
  /**
@@ -2175,8 +2176,8 @@ var Theokit = class {
2175
2176
  */
2176
2177
  static inspect = {
2177
2178
  builtinProviders: () => {
2178
- chunkRM7Y65IG_cjs.registerBuiltins();
2179
- return chunkRM7Y65IG_cjs.listProviders().map((p) => ({
2179
+ chunkNIRE5CNO_cjs.registerBuiltins();
2180
+ return chunkNIRE5CNO_cjs.listProviders().map((p) => ({
2180
2181
  name: p.name,
2181
2182
  apiMode: p.apiMode,
2182
2183
  authType: p.authType,
@@ -2185,7 +2186,7 @@ var Theokit = class {
2185
2186
  envVars: p.envVars
2186
2187
  }));
2187
2188
  },
2188
- embeddingAdapters: () => Object.entries(chunkUFAO4T7Z_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
2189
+ embeddingAdapters: () => Object.entries(chunkLQYQHXIW_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
2189
2190
  id,
2190
2191
  transport: adapter.transport,
2191
2192
  defaultModel: adapter.defaultModel
@@ -2202,9 +2203,9 @@ var Theokit = class {
2202
2203
  // and may be promoted onto Theokit once the agent.ts cycle is broken.
2203
2204
  };
2204
2205
  async function maybeListLocalModels(providerName) {
2205
- chunkRM7Y65IG_cjs.registerBuiltins();
2206
- await chunkUNDROG5N_cjs.discoverProviderPlugins();
2207
- const profile = chunkRM7Y65IG_cjs.getProviderProfile(providerName);
2206
+ chunkNIRE5CNO_cjs.registerBuiltins();
2207
+ await chunkHLPSLDGL_cjs.discoverProviderPlugins();
2208
+ const profile = chunkNIRE5CNO_cjs.getProviderProfile(providerName);
2208
2209
  if (profile === void 0) return void 0;
2209
2210
  if (profile.authType !== "none") return void 0;
2210
2211
  const baseUrl = resolveLocalProviderBaseUrl(profile.name, profile.baseUrl);
@@ -2221,13 +2222,13 @@ async function executeCatalogRequest(request) {
2221
2222
  if (apiKey === void 0) {
2222
2223
  throw new chunkK3FW2XZD_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
2223
2224
  }
2224
- if (chunkUNDROG5N_cjs.shouldUseFixtureMode(apiKey)) {
2225
+ if (chunkHLPSLDGL_cjs.shouldUseFixtureMode(apiKey)) {
2225
2226
  return request.fixture;
2226
2227
  }
2227
- if (!chunkUNDROG5N_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
2228
+ if (!chunkHLPSLDGL_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
2228
2229
  throw new chunkK3FW2XZD_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
2229
2230
  }
2230
- return chunkUNDROG5N_cjs.httpRequest(request.path, { apiKey });
2231
+ return chunkHLPSLDGL_cjs.httpRequest(request.path, { apiKey });
2231
2232
  }
2232
2233
 
2233
2234
  // src/tool-blast-radius.ts
@@ -2404,35 +2405,35 @@ Object.defineProperty(exports, "fn", {
2404
2405
  });
2405
2406
  Object.defineProperty(exports, "Cron", {
2406
2407
  enumerable: true,
2407
- get: function () { return chunkTTHBHAJI_cjs.Cron; }
2408
+ get: function () { return chunkH5GOSXSC_cjs.Cron; }
2408
2409
  });
2409
2410
  Object.defineProperty(exports, "Agent", {
2410
2411
  enumerable: true,
2411
- get: function () { return chunkUFAO4T7Z_cjs.Agent; }
2412
+ get: function () { return chunkLQYQHXIW_cjs.Agent; }
2412
2413
  });
2413
2414
  Object.defineProperty(exports, "AgentBuilder", {
2414
2415
  enumerable: true,
2415
- get: function () { return chunkUFAO4T7Z_cjs.AgentBuilder; }
2416
+ get: function () { return chunkLQYQHXIW_cjs.AgentBuilder; }
2416
2417
  });
2417
2418
  Object.defineProperty(exports, "Tool", {
2418
2419
  enumerable: true,
2419
- get: function () { return chunkUFAO4T7Z_cjs.Tool; }
2420
+ get: function () { return chunkLQYQHXIW_cjs.Tool; }
2420
2421
  });
2421
2422
  Object.defineProperty(exports, "ToolError", {
2422
2423
  enumerable: true,
2423
- get: function () { return chunkUFAO4T7Z_cjs.ToolError; }
2424
+ get: function () { return chunkLQYQHXIW_cjs.ToolError; }
2424
2425
  });
2425
2426
  Object.defineProperty(exports, "UsageAccumulator", {
2426
2427
  enumerable: true,
2427
- get: function () { return chunkUFAO4T7Z_cjs.UsageAccumulator; }
2428
+ get: function () { return chunkLQYQHXIW_cjs.UsageAccumulator; }
2428
2429
  });
2429
2430
  Object.defineProperty(exports, "computeCost", {
2430
2431
  enumerable: true,
2431
- get: function () { return chunkUFAO4T7Z_cjs.computeCost; }
2432
+ get: function () { return chunkLQYQHXIW_cjs.computeCost; }
2432
2433
  });
2433
2434
  Object.defineProperty(exports, "getPricingEntry", {
2434
2435
  enumerable: true,
2435
- get: function () { return chunkUFAO4T7Z_cjs.getPricingEntry; }
2436
+ get: function () { return chunkLQYQHXIW_cjs.getPricingEntry; }
2436
2437
  });
2437
2438
  Object.defineProperty(exports, "emitRunEvent", {
2438
2439
  enumerable: true,