@theokit/sdk 5.9.0 → 5.9.2

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 (168) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/{agent-6STOEBGQ.js → agent-GZVZXKME.js} +18 -17
  3. package/dist/{agent-6STOEBGQ.js.map → agent-GZVZXKME.js.map} +1 -1
  4. package/dist/{agent-ZM4FDDL7.cjs → agent-WQ4LLTSY.cjs} +19 -18
  5. package/dist/{agent-ZM4FDDL7.cjs.map → agent-WQ4LLTSY.cjs.map} +1 -1
  6. package/dist/agent-session-store-ODD3IZCW.js +6 -0
  7. package/dist/{agent-session-store-AFML3AXC.js.map → agent-session-store-ODD3IZCW.js.map} +1 -1
  8. package/dist/agent-session-store-SVEJHSUA.cjs +23 -0
  9. package/dist/{agent-session-store-MTSIY3MH.cjs.map → agent-session-store-SVEJHSUA.cjs.map} +1 -1
  10. package/dist/auth/index.cjs +8 -7
  11. package/dist/auth/index.cjs.map +1 -1
  12. package/dist/auth/index.js +3 -2
  13. package/dist/auth/index.js.map +1 -1
  14. package/dist/{chunk-TC4RWP3Y.js → chunk-47Z6LP3I.js} +3 -3
  15. package/dist/{chunk-TC4RWP3Y.js.map → chunk-47Z6LP3I.js.map} +1 -1
  16. package/dist/{chunk-DDRX4LYS.js → chunk-7QJYKVP6.js} +3 -3
  17. package/dist/{chunk-DDRX4LYS.js.map → chunk-7QJYKVP6.js.map} +1 -1
  18. package/dist/{chunk-TTBIQTO5.cjs → chunk-DLUCTZ56.cjs} +15 -15
  19. package/dist/{chunk-TTBIQTO5.cjs.map → chunk-DLUCTZ56.cjs.map} +1 -1
  20. package/dist/chunk-EHD25JBZ.cjs +10 -0
  21. package/dist/chunk-EHD25JBZ.cjs.map +1 -0
  22. package/dist/{chunk-NOO6GZTZ.js → chunk-EVH3OUMY.js} +13 -12
  23. package/dist/chunk-EVH3OUMY.js.map +1 -0
  24. package/dist/{chunk-5522X223.js → chunk-EXI7EHDN.js} +4 -4
  25. package/dist/{chunk-5522X223.js.map → chunk-EXI7EHDN.js.map} +1 -1
  26. package/dist/{chunk-PSLCVSCS.cjs → chunk-FR6COQXZ.cjs} +6 -6
  27. package/dist/{chunk-PSLCVSCS.cjs.map → chunk-FR6COQXZ.cjs.map} +1 -1
  28. package/dist/{chunk-JOFVLOFY.js → chunk-FTZTZBCU.js} +12 -4
  29. package/dist/chunk-FTZTZBCU.js.map +1 -0
  30. package/dist/{chunk-HOHR75KF.js → chunk-HI3W37FY.js} +4 -3
  31. package/dist/chunk-HI3W37FY.js.map +1 -0
  32. package/dist/chunk-HU666T3Q.cjs +1891 -0
  33. package/dist/chunk-HU666T3Q.cjs.map +1 -0
  34. package/dist/{chunk-53RDNK3H.js → chunk-I2ORT6QD.js} +3 -3
  35. package/dist/{chunk-53RDNK3H.js.map → chunk-I2ORT6QD.js.map} +1 -1
  36. package/dist/{chunk-BM6PDJW3.cjs → chunk-JU76WCW7.cjs} +113 -112
  37. package/dist/chunk-JU76WCW7.cjs.map +1 -0
  38. package/dist/{chunk-J4SA2ZEJ.cjs → chunk-KIKKTW5O.cjs} +4 -4
  39. package/dist/{chunk-J4SA2ZEJ.cjs.map → chunk-KIKKTW5O.cjs.map} +1 -1
  40. package/dist/{chunk-5WR33BHA.cjs → chunk-KXKT3HSD.cjs} +4 -4
  41. package/dist/{chunk-5WR33BHA.cjs.map → chunk-KXKT3HSD.cjs.map} +1 -1
  42. package/dist/{chunk-UKBBYVNS.js → chunk-M2CCHC66.js} +3 -3
  43. package/dist/{chunk-UKBBYVNS.js.map → chunk-M2CCHC66.js.map} +1 -1
  44. package/dist/{chunk-OCEQ6DW2.cjs → chunk-N6OEX5TN.cjs} +2 -2
  45. package/dist/chunk-N6OEX5TN.cjs.map +1 -0
  46. package/dist/{chunk-QDQQYRJI.js → chunk-N7KYUNFO.js} +3 -3
  47. package/dist/{chunk-QDQQYRJI.js.map → chunk-N7KYUNFO.js.map} +1 -1
  48. package/dist/{chunk-7GDHFV2M.js → chunk-OPAKPEPG.js} +2 -2
  49. package/dist/chunk-OPAKPEPG.js.map +1 -0
  50. package/dist/{chunk-UNZOJVVC.js → chunk-OZLQ6ZFM.js} +3 -3
  51. package/dist/{chunk-UNZOJVVC.js.map → chunk-OZLQ6ZFM.js.map} +1 -1
  52. package/dist/{chunk-PYFBS6OQ.js → chunk-PEIV7LOU.js} +22 -21
  53. package/dist/chunk-PEIV7LOU.js.map +1 -0
  54. package/dist/chunk-Q7GYMXVC.js +8 -0
  55. package/dist/chunk-Q7GYMXVC.js.map +1 -0
  56. package/dist/{chunk-ARMFXTY6.cjs → chunk-QY3CIMUV.cjs} +34 -33
  57. package/dist/chunk-QY3CIMUV.cjs.map +1 -0
  58. package/dist/{chunk-B3XXQX6L.cjs → chunk-RX3CFWQ2.cjs} +6 -6
  59. package/dist/{chunk-B3XXQX6L.cjs.map → chunk-RX3CFWQ2.cjs.map} +1 -1
  60. package/dist/chunk-SGC7LSHF.cjs +18 -0
  61. package/dist/{chunk-R3ZQBPA5.cjs.map → chunk-SGC7LSHF.cjs.map} +1 -1
  62. package/dist/{chunk-RA7IE4NK.cjs → chunk-SKDNCTXG.cjs} +4 -3
  63. package/dist/chunk-SKDNCTXG.cjs.map +1 -0
  64. package/dist/chunk-SVCPJRUB.js +1874 -0
  65. package/dist/chunk-SVCPJRUB.js.map +1 -0
  66. package/dist/{chunk-EJROML3Q.js → chunk-TX56N7FR.js} +4 -3
  67. package/dist/chunk-TX56N7FR.js.map +1 -0
  68. package/dist/{chunk-76PIKR4P.cjs → chunk-VZ2JZ2EH.cjs} +5 -5
  69. package/dist/{chunk-76PIKR4P.cjs.map → chunk-VZ2JZ2EH.cjs.map} +1 -1
  70. package/dist/{chunk-T5KOSR5Y.cjs → chunk-X7Z2FEI7.cjs} +8 -8
  71. package/dist/{chunk-T5KOSR5Y.cjs.map → chunk-X7Z2FEI7.cjs.map} +1 -1
  72. package/dist/{chunk-2WXHA33T.js → chunk-XERM7PDQ.js} +3 -3
  73. package/dist/{chunk-2WXHA33T.js.map → chunk-XERM7PDQ.js.map} +1 -1
  74. package/dist/{chunk-KTA7YTZQ.cjs → chunk-XKZFIP7Z.cjs} +4 -4
  75. package/dist/{chunk-KTA7YTZQ.cjs.map → chunk-XKZFIP7Z.cjs.map} +1 -1
  76. package/dist/{chunk-MEUBLCM4.cjs → chunk-YEHQ3SIC.cjs} +4 -3
  77. package/dist/chunk-YEHQ3SIC.cjs.map +1 -0
  78. package/dist/{chunk-YIFFF23U.cjs → chunk-ZAM7BJXJ.cjs} +5 -5
  79. package/dist/{chunk-YIFFF23U.cjs.map → chunk-ZAM7BJXJ.cjs.map} +1 -1
  80. package/dist/{chunk-R2C3HXR3.js → chunk-ZDF2IJKC.js} +3 -3
  81. package/dist/{chunk-R2C3HXR3.js.map → chunk-ZDF2IJKC.js.map} +1 -1
  82. package/dist/{chunk-PQCTDMUI.js → chunk-ZHWKT2NI.js} +3 -3
  83. package/dist/{chunk-PQCTDMUI.js.map → chunk-ZHWKT2NI.js.map} +1 -1
  84. package/dist/{chunk-GZV6AVRL.cjs → chunk-ZWACQM5U.cjs} +11 -3
  85. package/dist/chunk-ZWACQM5U.cjs.map +1 -0
  86. package/dist/{compact-session-RBPLUPCK.cjs → compact-session-4QHBBGEY.cjs} +16 -15
  87. package/dist/{compact-session-RBPLUPCK.cjs.map → compact-session-4QHBBGEY.cjs.map} +1 -1
  88. package/dist/{compact-session-2N3ZYJTW.js → compact-session-PVAWTKKL.js} +7 -6
  89. package/dist/{compact-session-2N3ZYJTW.js.map → compact-session-PVAWTKKL.js.map} +1 -1
  90. package/dist/context/index.cjs +6 -6
  91. package/dist/context/index.js +3 -3
  92. package/dist/context-3FZRAO5K.js +7 -0
  93. package/dist/{context-SXR2HLHT.js.map → context-3FZRAO5K.js.map} +1 -1
  94. package/dist/{context-ZOULM2RB.cjs → context-B5J4GX2F.cjs} +7 -7
  95. package/dist/{context-ZOULM2RB.cjs.map → context-B5J4GX2F.cjs.map} +1 -1
  96. package/dist/cron.cjs +18 -17
  97. package/dist/cron.js +17 -16
  98. package/dist/eval.cjs +17 -16
  99. package/dist/eval.cjs.map +1 -1
  100. package/dist/eval.js +16 -15
  101. package/dist/eval.js.map +1 -1
  102. package/dist/fs-session-store-LCZBM3LT.js +10 -0
  103. package/dist/{fs-session-store-STZZFXH2.js.map → fs-session-store-LCZBM3LT.js.map} +1 -1
  104. package/dist/{fs-session-store-JHBJFKVV.cjs → fs-session-store-SVEMRE4K.cjs} +5 -5
  105. package/dist/{fs-session-store-JHBJFKVV.cjs.map → fs-session-store-SVEMRE4K.cjs.map} +1 -1
  106. package/dist/{index-manager-ONQJSWX5.js → index-manager-6B2UF5S3.js} +5 -5
  107. package/dist/{index-manager-ONQJSWX5.js.map → index-manager-6B2UF5S3.js.map} +1 -1
  108. package/dist/{index-manager-ZGJN25FD.cjs → index-manager-M3FHJCHQ.cjs} +6 -6
  109. package/dist/{index-manager-ZGJN25FD.cjs.map → index-manager-M3FHJCHQ.cjs.map} +1 -1
  110. package/dist/index.cjs +58 -57
  111. package/dist/index.cjs.map +1 -1
  112. package/dist/index.d.cts +30 -3
  113. package/dist/index.d.ts +30 -3
  114. package/dist/index.js +21 -20
  115. package/dist/index.js.map +1 -1
  116. package/dist/{inject-session-YNNOE3O6.js → inject-session-O24XGRR6.js} +5 -5
  117. package/dist/{inject-session-YNNOE3O6.js.map → inject-session-O24XGRR6.js.map} +1 -1
  118. package/dist/{inject-session-3FPXJDJP.cjs → inject-session-OMLFL2V3.cjs} +7 -7
  119. package/dist/{inject-session-3FPXJDJP.cjs.map → inject-session-OMLFL2V3.cjs.map} +1 -1
  120. package/dist/internal/memory/adapters/index.cjs +3 -2
  121. package/dist/internal/memory/adapters/index.js +2 -1
  122. package/dist/internal/memory/storage/index.cjs +32 -32
  123. package/dist/internal/memory/storage/index.js +3 -3
  124. package/dist/internal/persistence/persistence-schema.d.cts +1 -1
  125. package/dist/internal/persistence/persistence-schema.d.ts +1 -1
  126. package/dist/internal/providers/catalog-loader.d.ts +30 -3
  127. package/dist/internal/runtime/hooks/hooks-source.d.ts +24 -0
  128. package/dist/internal/runtime-fetch.d.ts +1 -0
  129. package/dist/models.cjs +12 -11
  130. package/dist/models.cjs.map +1 -1
  131. package/dist/models.js +4 -3
  132. package/dist/models.js.map +1 -1
  133. package/dist/persistence.cjs +7 -7
  134. package/dist/persistence.js +2 -2
  135. package/dist/providers.cjs +6 -5
  136. package/dist/providers.js +4 -3
  137. package/dist/{session-transcript-VTBTCGQX.js → session-transcript-AR7IBICT.js} +3 -3
  138. package/dist/{session-transcript-VTBTCGQX.js.map → session-transcript-AR7IBICT.js.map} +1 -1
  139. package/dist/{session-transcript-LGHSNVY5.cjs → session-transcript-RACG7BK2.cjs} +16 -16
  140. package/dist/{session-transcript-LGHSNVY5.cjs.map → session-transcript-RACG7BK2.cjs.map} +1 -1
  141. package/dist/subscription/index.cjs +2 -1
  142. package/dist/subscription/index.cjs.map +1 -1
  143. package/dist/subscription/index.js +2 -1
  144. package/dist/subscription/index.js.map +1 -1
  145. package/docs/error-codes.md +16 -16
  146. package/package.json +2 -2
  147. package/dist/agent-session-store-AFML3AXC.js +0 -6
  148. package/dist/agent-session-store-MTSIY3MH.cjs +0 -23
  149. package/dist/chunk-7GDHFV2M.js.map +0 -1
  150. package/dist/chunk-ARMFXTY6.cjs.map +0 -1
  151. package/dist/chunk-BM6PDJW3.cjs.map +0 -1
  152. package/dist/chunk-EJROML3Q.js.map +0 -1
  153. package/dist/chunk-GZV6AVRL.cjs.map +0 -1
  154. package/dist/chunk-HOHR75KF.js.map +0 -1
  155. package/dist/chunk-JOFVLOFY.js.map +0 -1
  156. package/dist/chunk-MEUBLCM4.cjs.map +0 -1
  157. package/dist/chunk-MFZODA5Y.js +0 -583
  158. package/dist/chunk-MFZODA5Y.js.map +0 -1
  159. package/dist/chunk-NOO6GZTZ.js.map +0 -1
  160. package/dist/chunk-OCEQ6DW2.cjs.map +0 -1
  161. package/dist/chunk-PYFBS6OQ.js.map +0 -1
  162. package/dist/chunk-R3ZQBPA5.cjs +0 -18
  163. package/dist/chunk-RA7IE4NK.cjs.map +0 -1
  164. package/dist/chunk-YRJA2POB.cjs +0 -601
  165. package/dist/chunk-YRJA2POB.cjs.map +0 -1
  166. package/dist/context-SXR2HLHT.js +0 -7
  167. package/dist/fs-session-store-STZZFXH2.js +0 -10
  168. package/dist/provider-catalog.json +0 -1295
package/dist/index.d.cts CHANGED
@@ -3889,10 +3889,37 @@ declare class Task {
3889
3889
  }
3890
3890
 
3891
3891
  /**
3892
- * Dynamic provider catalog loader (T10.1, ADR D447).
3892
+ * Provider catalog loader (T10.1, ADR D447).
3893
3893
  *
3894
- * Loads provider metadata from `provider-catalog.json` at runtime.
3895
- * Malformed entries are skipped with WARN (EC-1) — never crash.
3894
+ * Provider metadata, EMBEDDED at build time. Malformed entries are skipped with WARN (EC-1) — never
3895
+ * crash.
3896
+ *
3897
+ * ## Why embedded and not read from disk
3898
+ *
3899
+ * It used to be `readFileSync` from a directory computed as
3900
+ * `dirname(fileURLToPath(import.meta.url))` at module scope. Both halves break on a runtime with no
3901
+ * filesystem, in that order, and this file is only model METADATA — so an environment that could not
3902
+ * read it could not run a turn at all.
3903
+ *
3904
+ * Measured end to end on 2026-09-28, driving a real deploy of a TheoKit app (theokit#705):
3905
+ *
3906
+ * 1. Cloudflare EXECUTES the top-level module during validation, so the upload was refused before
3907
+ * any request existed — `The "path" argument must be of type string … Received undefined`,
3908
+ * code 10021.
3909
+ * 2. With `import.meta.url` substituted by the consumer's bundler, the module initialised and the
3910
+ * TURN failed: `[unenv] fs.readFileSync is not implemented yet!`
3911
+ * 3. With a newer `compatibility_date`, workerd implements `readFileSync` and the error became the
3912
+ * honest one: `ENOENT: readAll '/provider-catalog.json'`. The same `ENOENT` reached a deployed
3913
+ * Vercel function, whose bundle carries the JS and not the JSON.
3914
+ *
3915
+ * No consumer's bundler can fix that from outside. Probed from inside a deployed worker, workerd's
3916
+ * whole virtual filesystem is `/bundle/worker.js`, an empty `/tmp` and `/dev` — there is nowhere to
3917
+ * put this package's private data file such that `join(dirname(<a file URL>), …)` finds it, short of
3918
+ * hardcoding our internal layout into their build.
3919
+ *
3920
+ * `with { type: "json" }` follows `internal/budget/pricing-registry.ts`, which has imported a sibling
3921
+ * JSON exactly this way in this package for as long as it has existed. Bundlers inline it, so the
3922
+ * emitted module carries the data and reaches for nothing.
3896
3923
  *
3897
3924
  * @internal
3898
3925
  */
package/dist/index.d.ts CHANGED
@@ -3889,10 +3889,37 @@ declare class Task {
3889
3889
  }
3890
3890
 
3891
3891
  /**
3892
- * Dynamic provider catalog loader (T10.1, ADR D447).
3892
+ * Provider catalog loader (T10.1, ADR D447).
3893
3893
  *
3894
- * Loads provider metadata from `provider-catalog.json` at runtime.
3895
- * Malformed entries are skipped with WARN (EC-1) — never crash.
3894
+ * Provider metadata, EMBEDDED at build time. Malformed entries are skipped with WARN (EC-1) — never
3895
+ * crash.
3896
+ *
3897
+ * ## Why embedded and not read from disk
3898
+ *
3899
+ * It used to be `readFileSync` from a directory computed as
3900
+ * `dirname(fileURLToPath(import.meta.url))` at module scope. Both halves break on a runtime with no
3901
+ * filesystem, in that order, and this file is only model METADATA — so an environment that could not
3902
+ * read it could not run a turn at all.
3903
+ *
3904
+ * Measured end to end on 2026-09-28, driving a real deploy of a TheoKit app (theokit#705):
3905
+ *
3906
+ * 1. Cloudflare EXECUTES the top-level module during validation, so the upload was refused before
3907
+ * any request existed — `The "path" argument must be of type string … Received undefined`,
3908
+ * code 10021.
3909
+ * 2. With `import.meta.url` substituted by the consumer's bundler, the module initialised and the
3910
+ * TURN failed: `[unenv] fs.readFileSync is not implemented yet!`
3911
+ * 3. With a newer `compatibility_date`, workerd implements `readFileSync` and the error became the
3912
+ * honest one: `ENOENT: readAll '/provider-catalog.json'`. The same `ENOENT` reached a deployed
3913
+ * Vercel function, whose bundle carries the JS and not the JSON.
3914
+ *
3915
+ * No consumer's bundler can fix that from outside. Probed from inside a deployed worker, workerd's
3916
+ * whole virtual filesystem is `/bundle/worker.js`, an empty `/tmp` and `/dev` — there is nowhere to
3917
+ * put this package's private data file such that `join(dirname(<a file URL>), …)` finds it, short of
3918
+ * hardcoding our internal layout into their build.
3919
+ *
3920
+ * `with { type: "json" }` follows `internal/budget/pricing-registry.ts`, which has imported a sibling
3921
+ * JSON exactly this way in this package for as long as it has existed. Bundlers inline it, so the
3922
+ * emitted module carries the data and reaches for nothing.
3896
3923
  *
3897
3924
  * @internal
3898
3925
  */
package/dist/index.js CHANGED
@@ -1,37 +1,37 @@
1
1
  export { StreamObjectError } from './chunk-AY43232P.js';
2
2
  export { GOAL_CONTINUATION_MARKER } from './chunk-PY2RQOA7.js';
3
3
  export { JudgeCredentialError } from './chunk-X6DUEDAF.js';
4
- import { migrateSqliteToLance, appendDiaryEntry } from './chunk-QDQQYRJI.js';
4
+ import { migrateSqliteToLance, appendDiaryEntry } from './chunk-N7KYUNFO.js';
5
5
  export { GenerateObjectError } from './chunk-26NEAJ6T.js';
6
6
  import './chunk-KO6SHCEH.js';
7
7
  import { Workflow, agentStep } from './chunk-MU7IAA7G.js';
8
8
  export { Workflow, agentStep, fn } from './chunk-MU7IAA7G.js';
9
9
  import './chunk-HV4V63CO.js';
10
10
  import './chunk-HY66GLM6.js';
11
- export { Cron } from './chunk-UKBBYVNS.js';
12
- import { MEMORY_EMBEDDING_ADAPTERS, resolveSessionDir, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-PYFBS6OQ.js';
13
- export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry, managedSettingsPathFor, readManagedSettings } from './chunk-PYFBS6OQ.js';
11
+ export { Cron } from './chunk-M2CCHC66.js';
12
+ import { MEMORY_EMBEDDING_ADAPTERS, resolveSessionDir, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-PEIV7LOU.js';
13
+ export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry, managedSettingsPathFor, readManagedSettings } from './chunk-PEIV7LOU.js';
14
14
  import { configure, submit, list, get, cancel, subscribe } from './chunk-XKMVJ443.js';
15
15
  export { emitRunEvent } from './chunk-XKMVJ443.js';
16
- import './chunk-5522X223.js';
16
+ import './chunk-EXI7EHDN.js';
17
17
  import './chunk-K2BQQ445.js';
18
- import './chunk-R2C3HXR3.js';
19
- import './chunk-PQCTDMUI.js';
18
+ import './chunk-ZDF2IJKC.js';
19
+ import './chunk-ZHWKT2NI.js';
20
20
  import './chunk-2SFBB54R.js';
21
- import './chunk-HOHR75KF.js';
21
+ import './chunk-HI3W37FY.js';
22
22
  import './chunk-H73MEMQB.js';
23
23
  import './chunk-OR6XIWLB.js';
24
- import { resolveMemoryRoot, readFactsFromMarkdown } from './chunk-TC4RWP3Y.js';
25
- import { FsSessionStore } from './chunk-UNZOJVVC.js';
26
- import { discoverProviderPlugins, shouldUseFixtureMode, isFixtureApiKey, httpRequest, mapOllamaTransportError, readErrorResponseBody, mapOllamaHttpError } from './chunk-NOO6GZTZ.js';
24
+ import { resolveMemoryRoot, readFactsFromMarkdown } from './chunk-47Z6LP3I.js';
25
+ import { FsSessionStore } from './chunk-OZLQ6ZFM.js';
26
+ import { discoverProviderPlugins, shouldUseFixtureMode, isFixtureApiKey, httpRequest, mapOllamaTransportError, readErrorResponseBody, mapOllamaHttpError } from './chunk-EVH3OUMY.js';
27
27
  import './chunk-SUVCHX4L.js';
28
28
  import './chunk-2XC6KDJM.js';
29
29
  import './chunk-TE6XVTOA.js';
30
30
  import './chunk-24MGQDK3.js';
31
- import { readSessionMessages } from './chunk-2WXHA33T.js';
31
+ import { readSessionMessages } from './chunk-XERM7PDQ.js';
32
32
  import './chunk-HKCKOAIO.js';
33
- import './chunk-DDRX4LYS.js';
34
- import './chunk-7GDHFV2M.js';
33
+ import './chunk-7QJYKVP6.js';
34
+ import './chunk-OPAKPEPG.js';
35
35
  import './chunk-KVNWIAO4.js';
36
36
  import './chunk-SVQIW5RJ.js';
37
37
  import './chunk-FD2UT76F.js';
@@ -48,7 +48,7 @@ import './chunk-UKMBRMGT.js';
48
48
  import './chunk-7JAKO3NM.js';
49
49
  import './chunk-ZWFTECOE.js';
50
50
  import './chunk-GTX6FEDP.js';
51
- import './chunk-JOFVLOFY.js';
51
+ import './chunk-FTZTZBCU.js';
52
52
  import './chunk-WE22OXQA.js';
53
53
  import './chunk-XZHJYSPB.js';
54
54
  import './chunk-BKMDRBJ7.js';
@@ -62,12 +62,13 @@ import './chunk-MQGSOKR3.js';
62
62
  import { estimateTokens, CHARS_PER_TOKEN } from './chunk-GMRFAX4I.js';
63
63
  export { estimateTokens } from './chunk-GMRFAX4I.js';
64
64
  import { parseModelId } from './chunk-R7WIIPUR.js';
65
- import './chunk-53RDNK3H.js';
66
- import { registerBuiltins, listProviders, getCatalogCapabilities, getProviderProfile } from './chunk-MFZODA5Y.js';
65
+ import './chunk-I2ORT6QD.js';
66
+ import { registerBuiltins, listProviders, getCatalogCapabilities, getProviderProfile } from './chunk-SVCPJRUB.js';
67
67
  import './chunk-AGACYRJ2.js';
68
- import './chunk-EJROML3Q.js';
68
+ import './chunk-TX56N7FR.js';
69
69
  import './chunk-5Q4RTLMP.js';
70
70
  import './chunk-H3CVJSFC.js';
71
+ import './chunk-Q7GYMXVC.js';
71
72
  import { BudgetExceededError, ConfigurationError, TheokitAgentError, MemoryAdapterError, AuthenticationError } from './chunk-B5MHRQJZ.js';
72
73
  export { AgentDisposedError, AgentRunError, AuthenticationError, BudgetExceededError, ConfigurationError, IntegrationNotConnectedError, InvalidTaskIdError, MemoryAdapterError, NetworkError, RateLimitError, TaskNotFoundError, TheokitAgentError, UnknownAgentError, UnsupportedBudgetOperationError, UnsupportedRunOperationError, UnsupportedTaskOperationError, isTransientError } from './chunk-B5MHRQJZ.js';
73
74
  import { diag, redactSecrets, addPattern, resolveApiKey } from './chunk-CZJ6Q7CW.js';
@@ -1377,7 +1378,7 @@ var Memory = {
1377
1378
  openArgs.embedding = await resolveEmbedding(opts.embedding, peer.MEMORY_EMBEDDING_ADAPTERS);
1378
1379
  return await peer.IndexManager.open(openArgs);
1379
1380
  }
1380
- const { IndexManager } = await import('./index-manager-ONQJSWX5.js');
1381
+ const { IndexManager } = await import('./index-manager-6B2UF5S3.js');
1381
1382
  openArgs.embedding = await resolveEmbedding(opts.embedding, MEMORY_EMBEDDING_ADAPTERS);
1382
1383
  return await IndexManager.open(openArgs);
1383
1384
  },
@@ -2016,7 +2017,7 @@ function isBuiltAgent(m) {
2016
2017
  return typeof m.send === "function";
2017
2018
  }
2018
2019
  async function materialize(def, index) {
2019
- const { Agent: Agent2 } = await import('./agent-6STOEBGQ.js');
2020
+ const { Agent: Agent2 } = await import('./agent-GZVZXKME.js');
2020
2021
  return Agent2.create({
2021
2022
  // `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
2022
2023
  // here means "declare nothing and let the default apply" — forwarding the literal would create