@theokit/sdk 4.31.0 → 4.32.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 (103) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/{agent-Bzg2_uGr.d.cts → agent-DGv1-d81.d.cts} +52 -2
  3. package/dist/{agent-6GQBOHHA.cjs → agent-ES57DGAT.cjs} +9 -9
  4. package/dist/{agent-6GQBOHHA.cjs.map → agent-ES57DGAT.cjs.map} +1 -1
  5. package/dist/{agent-DY5LGZ5E.js → agent-FBFPSBTX.js} +8 -8
  6. package/dist/{agent-DY5LGZ5E.js.map → agent-FBFPSBTX.js.map} +1 -1
  7. package/dist/{agent-Ekv8y7_c.d.ts → agent-SmxntivO.d.ts} +52 -2
  8. package/dist/{chunk-VUXLNVX7.js → chunk-334WDVFZ.js} +4 -4
  9. package/dist/{chunk-VUXLNVX7.js.map → chunk-334WDVFZ.js.map} +1 -1
  10. package/dist/{chunk-WQEQCJTZ.cjs → chunk-CJVMDRQB.cjs} +26 -3
  11. package/dist/chunk-CJVMDRQB.cjs.map +1 -0
  12. package/dist/{chunk-UKNMWCPZ.cjs → chunk-CVSNCUBU.cjs} +133 -70
  13. package/dist/chunk-CVSNCUBU.cjs.map +1 -0
  14. package/dist/{chunk-4SXHEZIV.cjs → chunk-DQSILMWU.cjs} +9 -3
  15. package/dist/chunk-DQSILMWU.cjs.map +1 -0
  16. package/dist/{chunk-PORDVVJS.js → chunk-EIPSZ4GA.js} +4 -4
  17. package/dist/chunk-EIPSZ4GA.js.map +1 -0
  18. package/dist/{chunk-4JWZRASX.js → chunk-HBTEK5LK.js} +3 -3
  19. package/dist/{chunk-4JWZRASX.js.map → chunk-HBTEK5LK.js.map} +1 -1
  20. package/dist/{chunk-U447MTG4.cjs → chunk-HCXDDR6P.cjs} +8 -8
  21. package/dist/chunk-HCXDDR6P.cjs.map +1 -0
  22. package/dist/{chunk-XJT5VACT.cjs → chunk-I4QDIQ45.cjs} +6 -6
  23. package/dist/{chunk-XJT5VACT.cjs.map → chunk-I4QDIQ45.cjs.map} +1 -1
  24. package/dist/{chunk-CYTAM3E6.cjs → chunk-JPG7NMNH.cjs} +75 -58
  25. package/dist/chunk-JPG7NMNH.cjs.map +1 -0
  26. package/dist/{chunk-FZ75EZR5.js → chunk-NI4PAMJQ.js} +45 -28
  27. package/dist/chunk-NI4PAMJQ.js.map +1 -0
  28. package/dist/{chunk-FDGRQQWX.cjs → chunk-OQX2DG36.cjs} +5 -5
  29. package/dist/{chunk-FDGRQQWX.cjs.map → chunk-OQX2DG36.cjs.map} +1 -1
  30. package/dist/{chunk-TLG444A6.js → chunk-SQVQH4EK.js} +130 -67
  31. package/dist/chunk-SQVQH4EK.js.map +1 -0
  32. package/dist/{chunk-ICSCKB3N.js → chunk-UAYYNWYJ.js} +27 -4
  33. package/dist/chunk-UAYYNWYJ.js.map +1 -0
  34. package/dist/{chunk-ZZWTY3RX.js → chunk-WPBTPSKQ.js} +9 -4
  35. package/dist/chunk-WPBTPSKQ.js.map +1 -0
  36. package/dist/{compact-session-2BFNMENR.cjs → compact-session-OKXLKJIS.cjs} +12 -12
  37. package/dist/{compact-session-2BFNMENR.cjs.map → compact-session-OKXLKJIS.cjs.map} +1 -1
  38. package/dist/{compact-session-2JONXHLR.js → compact-session-UHGMWPMW.js} +4 -4
  39. package/dist/{compact-session-2JONXHLR.js.map → compact-session-UHGMWPMW.js.map} +1 -1
  40. package/dist/{cron-CjzvXGT2.d.cts → cron-BiK_aNJI.d.cts} +2 -2
  41. package/dist/{cron-D0Z29gI-.d.ts → cron-Dx7B-3WB.d.ts} +2 -2
  42. package/dist/cron.cjs +8 -8
  43. package/dist/cron.d.cts +3 -3
  44. package/dist/cron.d.ts +3 -3
  45. package/dist/cron.js +7 -7
  46. package/dist/{errors-DHZtSNnj.d.ts → errors-Cua4WC9H.d.ts} +1 -1
  47. package/dist/{errors-BdL-buYn.d.cts → errors-DyVbXdR4.d.cts} +1 -1
  48. package/dist/errors.d.cts +2 -2
  49. package/dist/errors.d.ts +2 -2
  50. package/dist/eval.cjs +11 -11
  51. package/dist/eval.js +7 -7
  52. package/dist/fs-session-store-2J5JOXC2.js +8 -0
  53. package/dist/{fs-session-store-7AEI4STY.js.map → fs-session-store-2J5JOXC2.js.map} +1 -1
  54. package/dist/fs-session-store-DNAJ6RQG.cjs +17 -0
  55. package/dist/{fs-session-store-26WVVMC4.cjs.map → fs-session-store-DNAJ6RQG.cjs.map} +1 -1
  56. package/dist/index.cjs +50 -30
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.d.cts +23 -8
  59. package/dist/index.d.ts +23 -8
  60. package/dist/index.js +30 -10
  61. package/dist/index.js.map +1 -1
  62. package/dist/{inject-session-MIFEKATN.cjs → inject-session-24FJ65LP.cjs} +6 -6
  63. package/dist/{inject-session-MIFEKATN.cjs.map → inject-session-24FJ65LP.cjs.map} +1 -1
  64. package/dist/{inject-session-NNSCCIVP.js → inject-session-JXQO33T3.js} +4 -4
  65. package/dist/{inject-session-NNSCCIVP.js.map → inject-session-JXQO33T3.js.map} +1 -1
  66. package/dist/internal/llm/abort-error.d.ts +1 -0
  67. package/dist/internal/llm/retrying-client.d.ts +27 -3
  68. package/dist/internal/llm/transport-error.d.ts +9 -0
  69. package/dist/internal/persistence/index.cjs +6 -6
  70. package/dist/internal/persistence/index.js +1 -1
  71. package/dist/internal/persistence/session-transcript.d.cts +13 -1
  72. package/dist/internal/persistence/session-transcript.d.ts +13 -1
  73. package/dist/internal/runtime/lifecycle/post-run-lifecycle.d.ts +1 -1
  74. package/dist/persistence.cjs +13 -9
  75. package/dist/persistence.d.cts +2 -1
  76. package/dist/persistence.d.ts +2 -1
  77. package/dist/persistence.js +2 -2
  78. package/dist/{run-OJbGyweZ.d.ts → run-CwEJtLPE.d.cts} +8 -0
  79. package/dist/{run-OJbGyweZ.d.cts → run-CwEJtLPE.d.ts} +8 -0
  80. package/dist/server/errors-envelope.d.cts +3 -3
  81. package/dist/server/errors-envelope.d.ts +3 -3
  82. package/dist/session-transcript-F5OXXO6G.cjs +50 -0
  83. package/dist/{session-transcript-LPNZR3YS.cjs.map → session-transcript-F5OXXO6G.cjs.map} +1 -1
  84. package/dist/{session-transcript-T7LGJUGW.js → session-transcript-QS6CXHHD.js} +3 -3
  85. package/dist/{session-transcript-T7LGJUGW.js.map → session-transcript-QS6CXHHD.js.map} +1 -1
  86. package/dist/subagents-loader.d.cts +2 -2
  87. package/dist/subagents-loader.d.ts +2 -2
  88. package/dist/types/agent-prims.d.ts +8 -0
  89. package/dist/types/session-record.d.ts +51 -1
  90. package/package.json +1 -1
  91. package/dist/chunk-4SXHEZIV.cjs.map +0 -1
  92. package/dist/chunk-CYTAM3E6.cjs.map +0 -1
  93. package/dist/chunk-FZ75EZR5.js.map +0 -1
  94. package/dist/chunk-ICSCKB3N.js.map +0 -1
  95. package/dist/chunk-PORDVVJS.js.map +0 -1
  96. package/dist/chunk-TLG444A6.js.map +0 -1
  97. package/dist/chunk-U447MTG4.cjs.map +0 -1
  98. package/dist/chunk-UKNMWCPZ.cjs.map +0 -1
  99. package/dist/chunk-WQEQCJTZ.cjs.map +0 -1
  100. package/dist/chunk-ZZWTY3RX.js.map +0 -1
  101. package/dist/fs-session-store-26WVVMC4.cjs +0 -17
  102. package/dist/fs-session-store-7AEI4STY.js +0 -8
  103. package/dist/session-transcript-LPNZR3YS.cjs +0 -46
@@ -3,7 +3,7 @@
3
3
  var chunkLUSXDZPV_cjs = require('./chunk-LUSXDZPV.cjs');
4
4
  var chunkIT3PWBW4_cjs = require('./chunk-IT3PWBW4.cjs');
5
5
  var chunk6JSIEDKL_cjs = require('./chunk-6JSIEDKL.cjs');
6
- var chunk4SXHEZIV_cjs = require('./chunk-4SXHEZIV.cjs');
6
+ var chunkDQSILMWU_cjs = require('./chunk-DQSILMWU.cjs');
7
7
  var chunkEVADEGM7_cjs = require('./chunk-EVADEGM7.cjs');
8
8
  var chunkD42XHI4O_cjs = require('./chunk-D42XHI4O.cjs');
9
9
  var chunkA44COQJJ_cjs = require('./chunk-A44COQJJ.cjs');
@@ -475,6 +475,22 @@ function releaseReader(reader) {
475
475
  }
476
476
  }
477
477
 
478
+ // src/internal/llm/transport-error.ts
479
+ function ehAbort(err) {
480
+ if (typeof err !== "object" || err === null) return false;
481
+ const nome = err.name;
482
+ return nome === "AbortError" || nome === "TimeoutError";
483
+ }
484
+ function wrapTransportError(err, ctx) {
485
+ if (ehAbort(err)) return err;
486
+ if (err instanceof chunkA44COQJJ_cjs.NetworkError) return err;
487
+ const detalhe = err instanceof Error ? err.message : String(err);
488
+ return new chunkA44COQJJ_cjs.NetworkError(`${ctx.providerId} transport failure on ${ctx.endpoint}: ${detalhe}`, {
489
+ code: "transport_failure",
490
+ cause: err
491
+ });
492
+ }
493
+
478
494
  // src/internal/llm/anthropic.ts
479
495
  var AnthropicClient = class {
480
496
  constructor(options) {
@@ -495,12 +511,17 @@ var AnthropicClient = class {
495
511
  "anthropic-version": this.options.version ?? "2023-06-01"
496
512
  };
497
513
  if (this.options.extraHeaders !== void 0) Object.assign(headers, this.options.extraHeaders);
498
- const response = await this.fetchImpl(`${this.baseUrl}/v1/messages`, {
499
- method: "POST",
500
- signal,
501
- headers,
502
- body: JSON.stringify(body)
503
- });
514
+ let response;
515
+ try {
516
+ response = await this.fetchImpl(`${this.baseUrl}/v1/messages`, {
517
+ method: "POST",
518
+ signal,
519
+ headers,
520
+ body: JSON.stringify(body)
521
+ });
522
+ } catch (fetchErr) {
523
+ throw wrapTransportError(fetchErr, { providerId: this.name, endpoint: "/v1/messages" });
524
+ }
504
525
  if (!response.ok) {
505
526
  const text = await response.text().catch(() => "");
506
527
  let body2 = text;
@@ -705,7 +726,7 @@ async function resolveBedrockToken(region) {
705
726
  return cachedToken.value;
706
727
  }
707
728
  try {
708
- const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-UKNMWCPZ.cjs', document.baseURI).href)));
729
+ const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-CVSNCUBU.cjs', document.baseURI).href)));
709
730
  const gen = r("@aws/bedrock-token-generator");
710
731
  if (typeof gen.getToken !== "function") return void 0;
711
732
  const providers = r("@aws-sdk/credential-providers");
@@ -1465,7 +1486,7 @@ var OpenAIClient = class {
1465
1486
  endpoint: "/v1/chat/completions"
1466
1487
  });
1467
1488
  if (mapped !== void 0) throw mapped;
1468
- throw fetchErr;
1489
+ throw wrapTransportError(fetchErr, { providerId, endpoint: "/v1/chat/completions" });
1469
1490
  }
1470
1491
  if (!response.ok) {
1471
1492
  const text = await response.text().catch(() => "");
@@ -1926,60 +1947,6 @@ function abortError(signal) {
1926
1947
  return new Error("AbortError");
1927
1948
  }
1928
1949
 
1929
- // src/internal/llm/retrying-client.ts
1930
- var MAX_TENTATIVAS = 3;
1931
- function ehTransitorio(err) {
1932
- if (err instanceof chunkA44COQJJ_cjs.AuthenticationError) return false;
1933
- if (err instanceof chunkA44COQJJ_cjs.RateLimitError) {
1934
- const status = err.metadata?.statusCode ?? 429;
1935
- return status !== 402;
1936
- }
1937
- return err instanceof Error && !/\b4\d\d\b/.test(err.message);
1938
- }
1939
- function dicaDeRetryAfterMs(err) {
1940
- if (!(err instanceof chunkA44COQJJ_cjs.RateLimitError)) return void 0;
1941
- const segundos = err.metadata?.retryAfter;
1942
- return typeof segundos === "number" && segundos > 0 ? segundos * 1e3 : void 0;
1943
- }
1944
- var RetryingLlmClient = class {
1945
- #inner;
1946
- #rng;
1947
- constructor(inner, opts) {
1948
- this.#inner = inner;
1949
- this.#rng = opts?.rng;
1950
- }
1951
- get name() {
1952
- return this.#inner.name;
1953
- }
1954
- async *stream(request, signal) {
1955
- let ultimoErro;
1956
- for (let tentativa = 0; tentativa < MAX_TENTATIVAS; tentativa++) {
1957
- if (signal.aborted) throw ultimoErro ?? new Error("aborted");
1958
- try {
1959
- const gen = this.#inner.stream(request, signal);
1960
- let passo = await gen.next();
1961
- while (passo.done !== true) {
1962
- yield passo.value;
1963
- passo = await gen.next();
1964
- }
1965
- return passo.value;
1966
- } catch (err) {
1967
- ultimoErro = err;
1968
- const ultima = tentativa === MAX_TENTATIVAS - 1;
1969
- if (ultima || !ehTransitorio(err)) throw err;
1970
- const dica = dicaDeRetryAfterMs(err);
1971
- const ms = chunkLUSXDZPV_cjs.computeBackoffMs({
1972
- attempt: tentativa,
1973
- ...dica !== void 0 ? { retryAfterMs: dica } : {},
1974
- ...this.#rng !== void 0 ? { rng: this.#rng } : {}
1975
- });
1976
- await chunkLUSXDZPV_cjs.sleepWithAbort(ms, signal);
1977
- }
1978
- }
1979
- throw ultimoErro ?? new Error("retry esgotado sem erro registrado");
1980
- }
1981
- };
1982
-
1983
1950
  // src/internal/llm/responses.ts
1984
1951
  function messageToInputItems(message) {
1985
1952
  const items = [];
@@ -2175,6 +2142,92 @@ var ResponsesApiClient = class {
2175
2142
  }
2176
2143
  };
2177
2144
 
2145
+ // src/internal/llm/abort-error.ts
2146
+ function abortError2(signal) {
2147
+ if (signal.reason instanceof Error) return signal.reason;
2148
+ return new Error(signal.reason !== void 0 ? String(signal.reason) : "aborted");
2149
+ }
2150
+
2151
+ // src/internal/llm/retrying-client.ts
2152
+ var MAX_TENTATIVAS = 3;
2153
+ function ehTransitorio(err) {
2154
+ if (!chunkA44COQJJ_cjs.isTransientError(err)) return false;
2155
+ if (err instanceof chunkA44COQJJ_cjs.CredentialPoolExhaustedError) return false;
2156
+ if (err instanceof chunkA44COQJJ_cjs.TheokitAgentError && err.code === "circuit_open") return false;
2157
+ if (err instanceof chunkA44COQJJ_cjs.RateLimitError && err.metadata?.statusCode === 402) return false;
2158
+ return true;
2159
+ }
2160
+ function dicaDeRetryAfterMs(err) {
2161
+ if (!(err instanceof chunkA44COQJJ_cjs.RateLimitError)) return void 0;
2162
+ const segundos = err.metadata?.retryAfter;
2163
+ return typeof segundos === "number" && segundos > 0 ? segundos * 1e3 : void 0;
2164
+ }
2165
+ async function* consumir(gen, estado) {
2166
+ let passo = await gen.next();
2167
+ while (passo.done !== true) {
2168
+ estado.emitiu = true;
2169
+ yield passo.value;
2170
+ passo = await gen.next();
2171
+ }
2172
+ return passo.value;
2173
+ }
2174
+ function podeReexecutar(err, emitiu, tentativa) {
2175
+ if (emitiu) return false;
2176
+ if (tentativa === MAX_TENTATIVAS - 1) return false;
2177
+ return ehTransitorio(err);
2178
+ }
2179
+ var RetryingLlmClient = class {
2180
+ #inner;
2181
+ #rng;
2182
+ constructor(inner, opts) {
2183
+ this.#inner = inner;
2184
+ this.#rng = opts?.rng;
2185
+ }
2186
+ /**
2187
+ * O cliente decorado. Público pela mesma convenção de `FaultInjectingLlmClient.inner`: os testes
2188
+ * de fiação do router afirmam `instanceof PoolAwareLlmClient` e precisam enxergar através dos
2189
+ * decorators. Sem isto, adicionar um decorator quebra testes cuja intenção continua válida — que
2190
+ * foi exatamente o que o M93 fez com 4 testes pré-existentes.
2191
+ */
2192
+ get inner() {
2193
+ return this.#inner;
2194
+ }
2195
+ get name() {
2196
+ return this.#inner.name;
2197
+ }
2198
+ /**
2199
+ * Espera o backoff da tentativa `n`, honrando o `Retry-After` do provider quando ele veio.
2200
+ *
2201
+ * Método próprio porque o `stream` é um gerador com laço aninhado, e embutir aqui a montagem
2202
+ * condicional das opções levava a complexidade cognitiva a 19 (teto do projeto: 10). O corpo do
2203
+ * `stream` fica sendo só a máquina de tentativas.
2204
+ */
2205
+ async #esperarBackoff(err, tentativa, signal) {
2206
+ const dica = dicaDeRetryAfterMs(err);
2207
+ const ms = chunkLUSXDZPV_cjs.computeBackoffMs({
2208
+ attempt: tentativa,
2209
+ ...dica !== void 0 ? { retryAfterMs: dica } : {},
2210
+ ...this.#rng !== void 0 ? { rng: this.#rng } : {}
2211
+ });
2212
+ await chunkLUSXDZPV_cjs.sleepWithAbort(ms, signal);
2213
+ }
2214
+ async *stream(request, signal) {
2215
+ let ultimoErro;
2216
+ for (let tentativa = 0; tentativa < MAX_TENTATIVAS; tentativa++) {
2217
+ if (signal.aborted) throw ultimoErro ?? abortError2(signal);
2218
+ const estado = { emitiu: false };
2219
+ try {
2220
+ return yield* consumir(this.#inner.stream(request, signal), estado);
2221
+ } catch (err) {
2222
+ ultimoErro = err;
2223
+ if (!podeReexecutar(err, estado.emitiu, tentativa)) throw err;
2224
+ await this.#esperarBackoff(err, tentativa, signal);
2225
+ }
2226
+ }
2227
+ throw ultimoErro ?? new Error("retry esgotado sem erro registrado");
2228
+ }
2229
+ };
2230
+
2178
2231
  // src/internal/error-mappers/vertex.ts
2179
2232
  var VERTEX_RULES = [
2180
2233
  { test: (s, e) => s === 429 || e === "RESOURCE_EXHAUSTED", code: "rate_limit" },
@@ -2256,7 +2309,7 @@ async function resolveVertexAccessToken() {
2256
2309
  async function getAuthClientOrThrow() {
2257
2310
  let mod;
2258
2311
  try {
2259
- const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-UKNMWCPZ.cjs', document.baseURI).href)));
2312
+ const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-CVSNCUBU.cjs', document.baseURI).href)));
2260
2313
  mod = r("google-auth-library");
2261
2314
  } catch (err) {
2262
2315
  const isModuleMissing = err instanceof Error && (err.message.includes("Cannot find module") || err.code === "MODULE_NOT_FOUND");
@@ -2437,7 +2490,12 @@ function buildClient(name, routerOptions) {
2437
2490
  const ambient = chunkLUSXDZPV_cjs.currentCredentialPool(name);
2438
2491
  if (ambient !== void 0) {
2439
2492
  return new RetryingLlmClient(
2440
- new PoolAwareLlmClient(ambient, (apiKey) => selectTransport(profile, apiKey), void 0, resilience)
2493
+ new PoolAwareLlmClient(
2494
+ ambient,
2495
+ (apiKey) => selectTransport(profile, apiKey),
2496
+ void 0,
2497
+ resilience
2498
+ )
2441
2499
  );
2442
2500
  }
2443
2501
  const poolKeys = filterPoolKeys(routerOptions.apiKeys?.[name]);
@@ -2464,7 +2522,12 @@ function buildPoolOrSingle(args) {
2464
2522
  const pool = new chunkLUSXDZPV_cjs.CredentialPool(name, entries, strategy);
2465
2523
  const resilience = routerOptions.onRateLimit !== void 0 ? { onRateLimit: routerOptions.onRateLimit } : {};
2466
2524
  return new RetryingLlmClient(
2467
- new PoolAwareLlmClient(pool, (apiKey2) => selectTransport(profile, apiKey2), void 0, resilience)
2525
+ new PoolAwareLlmClient(
2526
+ pool,
2527
+ (apiKey2) => selectTransport(profile, apiKey2),
2528
+ void 0,
2529
+ resilience
2530
+ )
2468
2531
  );
2469
2532
  }
2470
2533
  const apiKey = poolKeys?.[0] ?? resolveApiKey(profile.envVars) ?? sentinelForNoAuth(profile) ?? sentinelForLazyAuth(profile);
@@ -2757,7 +2820,7 @@ function plainText(content) {
2757
2820
  }
2758
2821
  async function compactSessionTranscript(opts) {
2759
2822
  const prior = await opts.store.readRecords(opts.loc.agentId);
2760
- const history = chunk4SXHEZIV_cjs.reconstructMessages(prior);
2823
+ const history = chunkDQSILMWU_cjs.reconstructMessages(prior);
2761
2824
  const compressible = [];
2762
2825
  for (const m of history) {
2763
2826
  const text = plainText(m.content);
@@ -2786,7 +2849,7 @@ async function compactSessionTranscript(opts) {
2786
2849
  }
2787
2850
  const summary = `${COMPACT_SUMMARY_MARKER}
2788
2851
  ${summaryBody}`;
2789
- const transcript = chunk4SXHEZIV_cjs.SessionTranscript.fromRecords(prior, {
2852
+ const transcript = chunkDQSILMWU_cjs.SessionTranscript.fromRecords(prior, {
2790
2853
  cwd: opts.loc.cwd,
2791
2854
  sessionId: opts.sessionId,
2792
2855
  model: opts.loc.model ?? "unknown"
@@ -2907,5 +2970,5 @@ exports.resolveProviderChain = resolveProviderChain;
2907
2970
  exports.resolveSummarizerRoute = resolveSummarizerRoute;
2908
2971
  exports.shouldAutoCompact = shouldAutoCompact;
2909
2972
  exports.tryFirstEvent = tryFirstEvent;
2910
- //# sourceMappingURL=chunk-UKNMWCPZ.cjs.map
2911
- //# sourceMappingURL=chunk-UKNMWCPZ.cjs.map
2973
+ //# sourceMappingURL=chunk-CVSNCUBU.cjs.map
2974
+ //# sourceMappingURL=chunk-CVSNCUBU.cjs.map