@nhtio/adk 0.1.0-master-419ed244 → 0.1.0-master-9e8a853b

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 (338) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/batteries/embeddings/openai/adapter.cjs +1 -1
  3. package/batteries/embeddings/openai/adapter.mjs +1 -1
  4. package/batteries/embeddings/transformers_js/adapter.cjs +1 -1
  5. package/batteries/embeddings/transformers_js/adapter.mjs +1 -1
  6. package/batteries/embeddings/transformers_js/validation.cjs +1 -1
  7. package/batteries/embeddings/transformers_js/validation.mjs +1 -1
  8. package/batteries/embeddings/webllm/adapter.cjs +1 -1
  9. package/batteries/embeddings/webllm/adapter.mjs +1 -1
  10. package/batteries/encoding.cjs +6 -6
  11. package/batteries/encoding.mjs +6 -6
  12. package/batteries/index.d.ts +1 -0
  13. package/batteries/llm/chat_common/lifecycle.d.ts +1 -1
  14. package/batteries/llm/litert_lm/adapter.cjs +6 -6
  15. package/batteries/llm/litert_lm/adapter.mjs +6 -6
  16. package/batteries/llm/litert_lm/helpers.cjs +3 -3
  17. package/batteries/llm/litert_lm/helpers.mjs +3 -3
  18. package/batteries/llm/litert_lm/validation.cjs +2 -2
  19. package/batteries/llm/litert_lm/validation.mjs +2 -2
  20. package/batteries/llm/litert_lm.cjs +1 -1
  21. package/batteries/llm/litert_lm.mjs +1 -1
  22. package/batteries/llm/ollama/adapter.cjs +6 -6
  23. package/batteries/llm/ollama/adapter.mjs +6 -6
  24. package/batteries/llm/ollama/helpers.cjs +2 -2
  25. package/batteries/llm/ollama/helpers.mjs +2 -2
  26. package/batteries/llm/ollama/validation.cjs +2 -2
  27. package/batteries/llm/ollama/validation.mjs +2 -2
  28. package/batteries/llm/openai_chat_completions/adapter.cjs +6 -6
  29. package/batteries/llm/openai_chat_completions/adapter.mjs +6 -6
  30. package/batteries/llm/openai_chat_completions/helpers.cjs +2 -2
  31. package/batteries/llm/openai_chat_completions/helpers.mjs +2 -2
  32. package/batteries/llm/openai_chat_completions/validation.cjs +2 -2
  33. package/batteries/llm/openai_chat_completions/validation.mjs +2 -2
  34. package/batteries/llm/transformers_js/adapter.cjs +6 -6
  35. package/batteries/llm/transformers_js/adapter.mjs +6 -6
  36. package/batteries/llm/transformers_js/helpers.cjs +4 -4
  37. package/batteries/llm/transformers_js/helpers.mjs +4 -4
  38. package/batteries/llm/transformers_js/model_source.cjs +1 -1
  39. package/batteries/llm/transformers_js/model_source.mjs +1 -1
  40. package/batteries/llm/transformers_js/validation.cjs +2 -2
  41. package/batteries/llm/transformers_js/validation.mjs +2 -2
  42. package/batteries/llm/transformers_js.cjs +1 -1
  43. package/batteries/llm/transformers_js.mjs +1 -1
  44. package/batteries/llm/webllm_chat_completions/adapter.cjs +6 -6
  45. package/batteries/llm/webllm_chat_completions/adapter.mjs +6 -6
  46. package/batteries/llm/webllm_chat_completions/validation.cjs +2 -2
  47. package/batteries/llm/webllm_chat_completions/validation.mjs +2 -2
  48. package/batteries/media/contracts.cjs +1 -1
  49. package/batteries/media/contracts.mjs +1 -1
  50. package/batteries/media/engines/audio_decode.cjs +3 -11
  51. package/batteries/media/engines/audio_decode.cjs.map +1 -1
  52. package/batteries/media/engines/audio_decode.mjs +3 -11
  53. package/batteries/media/engines/audio_decode.mjs.map +1 -1
  54. package/batteries/media/engines/data.cjs +1 -1
  55. package/batteries/media/engines/data.mjs +1 -1
  56. package/batteries/media/engines/exceljs.cjs +1 -1
  57. package/batteries/media/engines/exceljs.mjs +1 -1
  58. package/batteries/media/engines/execa_executor.cjs +1 -1
  59. package/batteries/media/engines/execa_executor.mjs +1 -1
  60. package/batteries/media/engines/fs_workspace.cjs +1 -1
  61. package/batteries/media/engines/fs_workspace.mjs +1 -1
  62. package/batteries/media/engines/jimp.cjs +1 -1
  63. package/batteries/media/engines/jimp.mjs +1 -1
  64. package/batteries/media/engines/sharp.cjs +1 -1
  65. package/batteries/media/engines/sharp.mjs +1 -1
  66. package/batteries/media/engines/sheetjs.cjs +1 -1
  67. package/batteries/media/engines/sheetjs.mjs +1 -1
  68. package/batteries/media/engines/tesseract_js.cjs +1 -1
  69. package/batteries/media/engines/tesseract_js.mjs +1 -1
  70. package/batteries/media/engines/transformers_asr.cjs +1 -1
  71. package/batteries/media/engines/transformers_asr.mjs +1 -1
  72. package/batteries/media/forge.cjs +6 -6
  73. package/batteries/media/forge.mjs +6 -6
  74. package/batteries/media/lint.cjs +1 -1
  75. package/batteries/media/lint.mjs +1 -1
  76. package/batteries/media/steps/image_audio.d.ts +2 -2
  77. package/batteries/media.cjs +4 -18
  78. package/batteries/media.cjs.map +1 -1
  79. package/batteries/media.mjs +3 -17
  80. package/batteries/media.mjs.map +1 -1
  81. package/batteries/specialists/_shared/index.d.ts +117 -0
  82. package/batteries/specialists/_shared.cjs +115 -0
  83. package/batteries/specialists/_shared.cjs.map +1 -0
  84. package/batteries/specialists/_shared.mjs +111 -0
  85. package/batteries/specialists/_shared.mjs.map +1 -0
  86. package/batteries/specialists/caption/index.d.ts +10 -0
  87. package/batteries/specialists/caption/transformers_js/adapter.cjs +185 -0
  88. package/batteries/specialists/caption/transformers_js/adapter.cjs.map +1 -0
  89. package/batteries/specialists/caption/transformers_js/adapter.d.ts +78 -0
  90. package/batteries/specialists/caption/transformers_js/adapter.mjs +183 -0
  91. package/batteries/specialists/caption/transformers_js/adapter.mjs.map +1 -0
  92. package/batteries/specialists/caption/transformers_js/exceptions.cjs +33 -0
  93. package/batteries/specialists/caption/transformers_js/exceptions.cjs.map +1 -0
  94. package/batteries/specialists/caption/transformers_js/exceptions.d.ts +27 -0
  95. package/batteries/specialists/caption/transformers_js/exceptions.mjs +30 -0
  96. package/batteries/specialists/caption/transformers_js/exceptions.mjs.map +1 -0
  97. package/batteries/specialists/caption/transformers_js/index.d.ts +14 -0
  98. package/batteries/specialists/caption/transformers_js/types.cjs +2 -0
  99. package/batteries/specialists/caption/transformers_js/types.d.ts +100 -0
  100. package/batteries/specialists/caption/transformers_js/types.mjs +0 -0
  101. package/batteries/specialists/caption/transformers_js/validation.cjs +57 -0
  102. package/batteries/specialists/caption/transformers_js/validation.cjs.map +1 -0
  103. package/batteries/specialists/caption/transformers_js/validation.d.ts +21 -0
  104. package/batteries/specialists/caption/transformers_js/validation.mjs +54 -0
  105. package/batteries/specialists/caption/transformers_js/validation.mjs.map +1 -0
  106. package/batteries/specialists/caption/transformers_js.cjs +10 -0
  107. package/batteries/specialists/caption/transformers_js.mjs +4 -0
  108. package/batteries/specialists/caption.cjs +11 -0
  109. package/batteries/specialists/caption.mjs +5 -0
  110. package/batteries/specialists/index.d.ts +42 -0
  111. package/batteries/specialists/ocr/index.d.ts +15 -0
  112. package/batteries/specialists/ocr/tesseract_js/adapter.cjs +182 -0
  113. package/batteries/specialists/ocr/tesseract_js/adapter.cjs.map +1 -0
  114. package/batteries/specialists/ocr/tesseract_js/adapter.d.ts +86 -0
  115. package/batteries/specialists/ocr/tesseract_js/adapter.mjs +180 -0
  116. package/batteries/specialists/ocr/tesseract_js/adapter.mjs.map +1 -0
  117. package/batteries/specialists/ocr/tesseract_js/exceptions.cjs +32 -0
  118. package/batteries/specialists/ocr/tesseract_js/exceptions.cjs.map +1 -0
  119. package/batteries/specialists/ocr/tesseract_js/exceptions.d.ts +26 -0
  120. package/batteries/specialists/ocr/tesseract_js/exceptions.mjs +29 -0
  121. package/batteries/specialists/ocr/tesseract_js/exceptions.mjs.map +1 -0
  122. package/batteries/specialists/ocr/tesseract_js/index.d.ts +15 -0
  123. package/batteries/specialists/ocr/tesseract_js/types.cjs +2 -0
  124. package/batteries/specialists/ocr/tesseract_js/types.d.ts +84 -0
  125. package/batteries/specialists/ocr/tesseract_js/types.mjs +0 -0
  126. package/batteries/specialists/ocr/tesseract_js/validation.cjs +57 -0
  127. package/batteries/specialists/ocr/tesseract_js/validation.cjs.map +1 -0
  128. package/batteries/specialists/ocr/tesseract_js/validation.d.ts +22 -0
  129. package/batteries/specialists/ocr/tesseract_js/validation.mjs +54 -0
  130. package/batteries/specialists/ocr/tesseract_js/validation.mjs.map +1 -0
  131. package/batteries/specialists/ocr/tesseract_js.cjs +10 -0
  132. package/batteries/specialists/ocr/tesseract_js.mjs +4 -0
  133. package/batteries/specialists/ocr.cjs +11 -0
  134. package/batteries/specialists/ocr.mjs +5 -0
  135. package/batteries/specialists/stt/index.d.ts +18 -0
  136. package/batteries/specialists/stt/transformers_js/adapter.d.ts +66 -0
  137. package/batteries/specialists/stt/transformers_js/exceptions.d.ts +24 -0
  138. package/batteries/specialists/stt/transformers_js/index.d.ts +15 -0
  139. package/batteries/specialists/stt/transformers_js/types.d.ts +110 -0
  140. package/batteries/specialists/stt/transformers_js/validation.d.ts +19 -0
  141. package/batteries/specialists/stt/transformers_js.cjs +8 -0
  142. package/batteries/specialists/stt/transformers_js.mjs +2 -0
  143. package/batteries/specialists/stt.cjs +8 -0
  144. package/batteries/specialists/stt.mjs +2 -0
  145. package/batteries/specialists.cjs +31 -0
  146. package/batteries/specialists.mjs +12 -0
  147. package/batteries/storage/flydrive.cjs +1 -1
  148. package/batteries/storage/flydrive.mjs +1 -1
  149. package/batteries/storage/in_memory.cjs +1 -1
  150. package/batteries/storage/in_memory.mjs +1 -1
  151. package/batteries/storage/opfs.cjs +1 -1
  152. package/batteries/storage/opfs.mjs +1 -1
  153. package/batteries/tools/_shared.cjs +2 -2
  154. package/batteries/tools/_shared.mjs +2 -2
  155. package/batteries/tools/color.cjs +2 -2
  156. package/batteries/tools/color.mjs +2 -2
  157. package/batteries/tools/comparison.cjs +3 -3
  158. package/batteries/tools/comparison.mjs +3 -3
  159. package/batteries/tools/data_structure.cjs +3 -3
  160. package/batteries/tools/data_structure.mjs +3 -3
  161. package/batteries/tools/datetime_extended.cjs +2 -2
  162. package/batteries/tools/datetime_extended.mjs +2 -2
  163. package/batteries/tools/datetime_math.cjs +2 -2
  164. package/batteries/tools/datetime_math.mjs +2 -2
  165. package/batteries/tools/encoding.cjs +3 -3
  166. package/batteries/tools/encoding.mjs +3 -3
  167. package/batteries/tools/formatting.cjs +3 -3
  168. package/batteries/tools/formatting.mjs +3 -3
  169. package/batteries/tools/geo_basics.cjs +2 -2
  170. package/batteries/tools/geo_basics.mjs +2 -2
  171. package/batteries/tools/math.cjs +3 -3
  172. package/batteries/tools/math.mjs +3 -3
  173. package/batteries/tools/memory.cjs +5 -5
  174. package/batteries/tools/memory.mjs +5 -5
  175. package/batteries/tools/parsing.cjs +4 -4
  176. package/batteries/tools/parsing.mjs +4 -4
  177. package/batteries/tools/retrievables.cjs +4 -4
  178. package/batteries/tools/retrievables.mjs +4 -4
  179. package/batteries/tools/scrapper.cjs +1 -1
  180. package/batteries/tools/scrapper.mjs +1 -1
  181. package/batteries/tools/searxng.cjs +1 -1
  182. package/batteries/tools/searxng.mjs +1 -1
  183. package/batteries/tools/standing_instructions.cjs +4 -4
  184. package/batteries/tools/standing_instructions.mjs +4 -4
  185. package/batteries/tools/statistics.cjs +4 -4
  186. package/batteries/tools/statistics.mjs +4 -4
  187. package/batteries/tools/string_processing.cjs +3 -3
  188. package/batteries/tools/string_processing.mjs +3 -3
  189. package/batteries/tools/structured_data.cjs +3 -3
  190. package/batteries/tools/structured_data.mjs +3 -3
  191. package/batteries/tools/text_analysis.cjs +3 -3
  192. package/batteries/tools/text_analysis.mjs +3 -3
  193. package/batteries/tools/text_comparison.cjs +2 -2
  194. package/batteries/tools/text_comparison.mjs +2 -2
  195. package/batteries/tools/time.cjs +2 -2
  196. package/batteries/tools/time.mjs +2 -2
  197. package/batteries/tools/unit_conversion.cjs +2 -2
  198. package/batteries/tools/unit_conversion.mjs +2 -2
  199. package/batteries/tools/web_retrieval.cjs +1 -1
  200. package/batteries/tools/web_retrieval.mjs +1 -1
  201. package/batteries/tools.cjs +2 -2
  202. package/batteries/tools.mjs +2 -2
  203. package/batteries/vector/arangodb.cjs +1 -1
  204. package/batteries/vector/arangodb.mjs +1 -1
  205. package/batteries/vector/clickhouse.cjs +1 -1
  206. package/batteries/vector/clickhouse.mjs +1 -1
  207. package/batteries/vector/cloudflare.cjs +1 -1
  208. package/batteries/vector/cloudflare.mjs +1 -1
  209. package/batteries/vector/couchbase.cjs +1 -1
  210. package/batteries/vector/couchbase.mjs +1 -1
  211. package/batteries/vector/duckdb.cjs +1 -1
  212. package/batteries/vector/duckdb.mjs +1 -1
  213. package/batteries/vector/elasticsearch.cjs +1 -1
  214. package/batteries/vector/elasticsearch.mjs +1 -1
  215. package/batteries/vector/filters.cjs +1 -1
  216. package/batteries/vector/filters.mjs +1 -1
  217. package/batteries/vector/hnswlib.cjs +1 -1
  218. package/batteries/vector/hnswlib.mjs +1 -1
  219. package/batteries/vector/lancedb.cjs +1 -1
  220. package/batteries/vector/lancedb.mjs +1 -1
  221. package/batteries/vector/mariadb.cjs +1 -1
  222. package/batteries/vector/mariadb.mjs +1 -1
  223. package/batteries/vector/meilisearch.cjs +1 -1
  224. package/batteries/vector/meilisearch.mjs +1 -1
  225. package/batteries/vector/migrate.cjs +1 -1
  226. package/batteries/vector/migrate.mjs +1 -1
  227. package/batteries/vector/mongodb.cjs +1 -1
  228. package/batteries/vector/mongodb.mjs +1 -1
  229. package/batteries/vector/neo4j.cjs +1 -1
  230. package/batteries/vector/neo4j.mjs +1 -1
  231. package/batteries/vector/opensearch.cjs +1 -1
  232. package/batteries/vector/opensearch.mjs +1 -1
  233. package/batteries/vector/oracle23ai.cjs +1 -1
  234. package/batteries/vector/oracle23ai.mjs +1 -1
  235. package/batteries/vector/pinecone.cjs +1 -1
  236. package/batteries/vector/pinecone.mjs +1 -1
  237. package/batteries/vector/redis.cjs +1 -1
  238. package/batteries/vector/redis.mjs +1 -1
  239. package/batteries/vector/retrievable.cjs +1 -1
  240. package/batteries/vector/retrievable.mjs +1 -1
  241. package/batteries/vector/s3vectors.cjs +1 -1
  242. package/batteries/vector/s3vectors.mjs +1 -1
  243. package/batteries/vector/solr.cjs +1 -1
  244. package/batteries/vector/solr.mjs +1 -1
  245. package/batteries/vector/surrealdb.cjs +1 -1
  246. package/batteries/vector/surrealdb.mjs +1 -1
  247. package/batteries/vector/typesense.cjs +1 -1
  248. package/batteries/vector/typesense.mjs +1 -1
  249. package/batteries/vector/vespa.cjs +1 -1
  250. package/batteries/vector/vespa.mjs +1 -1
  251. package/batteries/vector/weaviate.cjs +1 -1
  252. package/batteries/vector/weaviate.mjs +1 -1
  253. package/batteries.cjs +29 -2
  254. package/batteries.mjs +15 -6
  255. package/{common-Be-5hSVx.js → common-Bc8v-IUv.js} +6 -6
  256. package/{common-Be-5hSVx.js.map → common-Bc8v-IUv.js.map} +1 -1
  257. package/{common-BJznoglS.mjs → common-DKjX6RTc.mjs} +6 -6
  258. package/{common-BJznoglS.mjs.map → common-DKjX6RTc.mjs.map} +1 -1
  259. package/common.cjs +6 -6
  260. package/common.mjs +6 -6
  261. package/{dispatch_runner-Dm_fnJG3.js → dispatch_runner-DHt48lGY.js} +3 -3
  262. package/{dispatch_runner-Dm_fnJG3.js.map → dispatch_runner-DHt48lGY.js.map} +1 -1
  263. package/{dispatch_runner-B3s0ipDA.mjs → dispatch_runner-DR8bt-rV.mjs} +3 -3
  264. package/{dispatch_runner-B3s0ipDA.mjs.map → dispatch_runner-DR8bt-rV.mjs.map} +1 -1
  265. package/dispatch_runner.cjs +1 -1
  266. package/dispatch_runner.mjs +1 -1
  267. package/eslint/rules.cjs +1 -1
  268. package/eslint/rules.mjs +1 -1
  269. package/eslint.cjs +2 -2
  270. package/eslint.mjs +2 -2
  271. package/exceptions.cjs +1 -1
  272. package/exceptions.mjs +1 -1
  273. package/forge.cjs +2 -2
  274. package/forge.mjs +2 -2
  275. package/guards.cjs +7 -7
  276. package/guards.mjs +7 -7
  277. package/index.cjs +10 -10
  278. package/index.mjs +10 -10
  279. package/lib/exceptions/runtime.d.ts +1 -1
  280. package/lib/utils/audio.cjs +69 -0
  281. package/lib/utils/audio.cjs.map +1 -0
  282. package/lib/utils/audio.d.ts +42 -0
  283. package/lib/utils/audio.mjs +66 -0
  284. package/lib/utils/audio.mjs.map +1 -0
  285. package/lifecycle-C4kwYJ-N.mjs.map +1 -1
  286. package/lifecycle-vYQJ2rmf.js.map +1 -1
  287. package/mcp/adk-docs-corpus.json +1 -1
  288. package/package.json +384 -299
  289. package/{scrapper-DMXixzf_.js → scrapper-DfITX2Lc.js} +4 -4
  290. package/{scrapper-DMXixzf_.js.map → scrapper-DfITX2Lc.js.map} +1 -1
  291. package/{scrapper-Can2aJpj.mjs → scrapper-Dqn2VBtU.mjs} +4 -4
  292. package/{scrapper-Can2aJpj.mjs.map → scrapper-Dqn2VBtU.mjs.map} +1 -1
  293. package/{searxng-BFXFs-ad.js → searxng-DToKFL6a.js} +4 -4
  294. package/{searxng-BFXFs-ad.js.map → searxng-DToKFL6a.js.map} +1 -1
  295. package/{searxng-C9Xe8ofB.mjs → searxng-xOFTfm5s.mjs} +4 -4
  296. package/{searxng-C9Xe8ofB.mjs.map → searxng-xOFTfm5s.mjs.map} +1 -1
  297. package/server.json +2 -2
  298. package/skills/adk-assembly/SKILL.md +2 -2
  299. package/{spooled_artifact-DJujTbac.js → spooled_artifact-06tJeH56.js} +2 -2
  300. package/{spooled_artifact-DJujTbac.js.map → spooled_artifact-06tJeH56.js.map} +1 -1
  301. package/{spooled_artifact-DJAqZhpj.mjs → spooled_artifact-CEGyUVPm.mjs} +2 -2
  302. package/{spooled_artifact-DJAqZhpj.mjs.map → spooled_artifact-CEGyUVPm.mjs.map} +1 -1
  303. package/spooled_artifact.cjs +2 -2
  304. package/spooled_artifact.mjs +2 -2
  305. package/{spooled_markdown_artifact-CuHgx4fU.js → spooled_markdown_artifact-BMEgTHF_.js} +3 -3
  306. package/{spooled_markdown_artifact-CuHgx4fU.js.map → spooled_markdown_artifact-BMEgTHF_.js.map} +1 -1
  307. package/{spooled_markdown_artifact-DJyD3br3.mjs → spooled_markdown_artifact-oLHuYyA1.mjs} +3 -3
  308. package/{spooled_markdown_artifact-DJyD3br3.mjs.map → spooled_markdown_artifact-oLHuYyA1.mjs.map} +1 -1
  309. package/{thought-D11wtYkj.mjs → thought-FselMff7.mjs} +3 -3
  310. package/{thought-D11wtYkj.mjs.map → thought-FselMff7.mjs.map} +1 -1
  311. package/{thought-DM2h7ilq.js → thought-NCI5YocX.js} +3 -3
  312. package/{thought-DM2h7ilq.js.map → thought-NCI5YocX.js.map} +1 -1
  313. package/{tokenizable-BJPwaOUU.mjs → tokenizable-BwnLtCzr.mjs} +2 -2
  314. package/{tokenizable-BJPwaOUU.mjs.map → tokenizable-BwnLtCzr.mjs.map} +1 -1
  315. package/{tokenizable-BcYQ6MOM.js → tokenizable-dnf9b2Ix.js} +2 -2
  316. package/{tokenizable-BcYQ6MOM.js.map → tokenizable-dnf9b2Ix.js.map} +1 -1
  317. package/{tool_call-CLJK4D1P.js → tool_call-BMTKtLcS.js} +3 -3
  318. package/{tool_call-CLJK4D1P.js.map → tool_call-BMTKtLcS.js.map} +1 -1
  319. package/{tool_call-DNueRQcL.mjs → tool_call-Bc9nZQC-.mjs} +3 -3
  320. package/{tool_call-DNueRQcL.mjs.map → tool_call-Bc9nZQC-.mjs.map} +1 -1
  321. package/{tool_parsers-R7Vt8VHd.mjs → tool_parsers-BFiMJBy6.mjs} +2 -2
  322. package/{tool_parsers-R7Vt8VHd.mjs.map → tool_parsers-BFiMJBy6.mjs.map} +1 -1
  323. package/{tool_parsers-BISyyeFX.js → tool_parsers-DfZbeF0E.js} +2 -2
  324. package/{tool_parsers-BISyyeFX.js.map → tool_parsers-DfZbeF0E.js.map} +1 -1
  325. package/transformers_js-D5R2svkx.js +293 -0
  326. package/transformers_js-D5R2svkx.js.map +1 -0
  327. package/transformers_js-jlHDHPbE.mjs +264 -0
  328. package/transformers_js-jlHDHPbE.mjs.map +1 -0
  329. package/{turn_runner-Bwj5a270.js → turn_runner-B4qUzFYr.js} +4 -4
  330. package/{turn_runner-Bwj5a270.js.map → turn_runner-B4qUzFYr.js.map} +1 -1
  331. package/{turn_runner-C3jResMo.mjs → turn_runner-mMkMRQmN.mjs} +4 -4
  332. package/{turn_runner-C3jResMo.mjs.map → turn_runner-mMkMRQmN.mjs.map} +1 -1
  333. package/turn_runner.cjs +1 -1
  334. package/turn_runner.mjs +1 -1
  335. package/{validate-CWEWZP99.js → validate-BlJSHGum.js} +2 -2
  336. package/{validate-CWEWZP99.js.map → validate-BlJSHGum.js.map} +1 -1
  337. package/{validate-BmgehQjj.mjs → validate-DW2LXXBi.mjs} +2 -2
  338. package/{validate-BmgehQjj.mjs.map → validate-DW2LXXBi.mjs.map} +1 -1
package/CHANGELOG.md CHANGED
@@ -15,6 +15,53 @@ you *when* you got it, not *what changed*: a `^` range will float across battery
15
15
  breaking changes, so pin an exact version if you need stability and read the entry before
16
16
  upgrading.
17
17
 
18
+ ## 2026-07-12
19
+
20
+ ### Added
21
+
22
+ - **New battery domain: `specialists` — on-device speech-to-text, OCR, and image captioning, each a
23
+ narrow single-purpose model turning one modality into TEXT for any text-only LLM.** Three adapters:
24
+ {@link TransformersJsSttAdapter} (`@nhtio/adk/batteries/specialists/stt/transformers_js`, Whisper-family
25
+ ASR via `@huggingface/transformers`, `transcribe(input, opts?) → { text, segments? }`),
26
+ {@link TesseractJsOcrAdapter} (`@nhtio/adk/batteries/specialists/ocr/tesseract_js`, pure-WASM
27
+ `tesseract.js`, `recognize(input, opts?) → { text, confidence? }`), and
28
+ {@link TransformersJsCaptionAdapter} (`@nhtio/adk/batteries/specialists/caption/transformers_js`,
29
+ transformers.js's `image-to-text` pipeline, `describe(input, opts?) → { text }`). All three mirror the
30
+ embeddings adapters' construct-once/`preload`/`reset`/`dispose` shape and are ENVIRONMENT-NEUTRAL —
31
+ `isAvailable()` is always `true`, no WebGPU or platform gate — proven against real weights in both Node
32
+ and a headed, real-GPU Chromium session
33
+ (`tests/functional/batteries/specialists/specialists.webgpu.spec.ts`).
34
+ - **Zero-core-import at the structural-contract layer**, the same posture as the `thrift`/`compact`
35
+ context batteries: `SpecialistMediaLike`/`SpecialistAudioInput`/`SpecialistImageInput`
36
+ (`src/batteries/specialists/_shared`) are locally-declared duck types a real `@nhtio/adk` `Media`
37
+ satisfies without either side importing the other. STT resamples any input — pre-decoded PCM at any
38
+ sample rate, or an encoded container via an injectable `DecodeAudioFn` (default: lazy `audio-decode`
39
+ peer + downmix-to-mono) — to 16kHz mono before the pipeline call; the linear-interpolation resampler
40
+ and the mono-downmix helper were lifted into a shared `lib/utils/audio` module rather than duplicated
41
+ per adapter.
42
+ - **OCR's cached-worker posture is a deliberate divergence from the media battery's own `tesseract_js`
43
+ engine**: one `TesseractJsOcrAdapter` holds a single warm worker across every `recognize()` call
44
+ (construct-once, single-flight resolution) instead of booting a fresh worker per call. tesseract.js v7
45
+ has no safe way to re-language an already-booted worker, so a per-call `languages` override that
46
+ doesn't match the constructor's set throws `E_TESSERACT_JS_OCR_ENGINE_ERROR` rather than silently
47
+ switching; `reset()` and `dispose()` are aliases here (both terminate the worker — no lighter tier
48
+ exists for a live WASM worker).
49
+ - **Composition, proven**: `tests/functional/batteries/specialists/specialist_compose.node.spec.ts`
50
+ feeds Whisper's transcript of `speech.wav` ("The quick brown fox jumps over the lazy dog.") and
51
+ Tesseract's OCR of `sample_ocr.png` ("HELLO OCR\n123") to a separate text-only Llama-3.2-1B, which
52
+ grounds its answer ("Fox") on that text alone — the pattern this domain exists to enable, not just
53
+ each specialist's own accuracy.
54
+ - **Deliberately no agent integration and no cloud engines.** Same posture as the embeddings batteries:
55
+ the adapter is the whole product — no `Tool` class, no forged tool, no `TurnRunnerConfig` wiring. And
56
+ unlike the LLM/vector batteries (which abstract a real, converged wire contract), the cloud
57
+ STT/OCR/vision landscape has no such convergence — every vendor's API has its own auth model, request
58
+ shape, and SDK, with nothing worth abstracting — so this domain draws the line at on-device only, on
59
+ all three adapters, full stop. New docs section `docs/batteries/specialists/` (overview + one
60
+ reference page per adapter) covers the thesis and the three ways a consumer actually wires one in: a
61
+ BYO `Tool` over the adapter (byo-tools pattern), a direct call outside the tool-call loop, or a
62
+ courtesy write to `Media.stash` that an LLM battery's `fallback-stash` `UnsupportedMediaPolicy` reads
63
+ automatically.
64
+
18
65
  ## 2026-07-07
19
66
 
20
67
  ### Security
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
4
  require("../../../guards.cjs");
5
5
  const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
6
6
  const require_batteries_embeddings_openai_exceptions = require("./exceptions.cjs");
@@ -1,4 +1,4 @@
1
- import { B as isError } from "../../../tokenizable-BJPwaOUU.mjs";
1
+ import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
2
2
  import "../../../guards.mjs";
3
3
  import { computeBackoff, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
4
4
  import { E_OPENAI_EMBEDDINGS_HTTP_ERROR, E_OPENAI_EMBEDDINGS_MALFORMED_RESPONSE, E_OPENAI_EMBEDDINGS_REQUEST_TIMEOUT } from "./exceptions.mjs";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
4
  require("../../../guards.cjs");
5
5
  const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
6
6
  const require_batteries_llm_transformers_js_model_source = require("../../llm/transformers_js/model_source.cjs");
@@ -1,4 +1,4 @@
1
- import { B as isError } from "../../../tokenizable-BJPwaOUU.mjs";
1
+ import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
2
2
  import "../../../guards.mjs";
3
3
  import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
4
4
  import { withModelSource } from "../../llm/transformers_js/model_source.mjs";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
4
  require("../../../guards.cjs");
5
5
  const require_batteries_embeddings_transformers_js_exceptions = require("./exceptions.cjs");
6
6
  let _nhtio_validation = require("@nhtio/validation");
@@ -1,4 +1,4 @@
1
- import { B as isError } from "../../../tokenizable-BJPwaOUU.mjs";
1
+ import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
2
2
  import "../../../guards.mjs";
3
3
  import { E_INVALID_TRANSFORMERS_JS_EMBEDDINGS_OPTIONS } from "./exceptions.mjs";
4
4
  import { validator } from "@nhtio/validation";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
4
  require("../../../guards.cjs");
5
5
  const require_batteries_embeddings_openai_helpers = require("../openai/helpers.cjs");
6
6
  const require_batteries_embeddings_webllm_exceptions = require("./exceptions.cjs");
@@ -1,4 +1,4 @@
1
- import { B as isError } from "../../../tokenizable-BJPwaOUU.mjs";
1
+ import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
2
2
  import "../../../guards.mjs";
3
3
  import { applyEmbeddingPrefix } from "../openai/helpers.mjs";
4
4
  import { E_INVALID_WEBLLM_EMBEDDINGS_OPTIONS, E_WEBLLM_EMBEDDINGS_ENGINE_ERROR } from "./exceptions.mjs";
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../tokenizable-BcYQ6MOM.js");
4
- const require_spooled_artifact = require("../spooled_artifact-DJujTbac.js");
5
- const require_thought = require("../thought-DM2h7ilq.js");
6
- const require_common = require("../common-Be-5hSVx.js");
7
- const require_tool_call = require("../tool_call-CLJK4D1P.js");
8
- const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-CuHgx4fU.js");
3
+ const require_tokenizable = require("../tokenizable-dnf9b2Ix.js");
4
+ const require_spooled_artifact = require("../spooled_artifact-06tJeH56.js");
5
+ const require_thought = require("../thought-NCI5YocX.js");
6
+ const require_common = require("../common-Bc8v-IUv.js");
7
+ const require_tool_call = require("../tool_call-BMTKtLcS.js");
8
+ const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-BMEgTHF_.js");
9
9
  require("../index.cjs");
10
10
  const require_batteries_storage_in_memory = require("./storage/in_memory.cjs");
11
11
  let _nhtio_encoder = require("@nhtio/encoder");
@@ -1,9 +1,9 @@
1
- import { r as Tokenizable } from "../tokenizable-BJPwaOUU.mjs";
2
- import { a as resolveMediaReader, c as ArtifactTool, f as ToolRegistry, i as registerSpoolReaderResolver, l as Tool, o as resolveSpoolReader, r as registerMediaReaderResolver, t as SpooledArtifact, u as Registry } from "../spooled_artifact-DJAqZhpj.mjs";
3
- import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-D11wtYkj.mjs";
4
- import { a as inMemoryMediaReader, c as Retrievable, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-BJznoglS.mjs";
5
- import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-DNueRQcL.mjs";
6
- import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-DJyD3br3.mjs";
1
+ import { r as Tokenizable } from "../tokenizable-BwnLtCzr.mjs";
2
+ import { a as resolveMediaReader, c as ArtifactTool, f as ToolRegistry, i as registerSpoolReaderResolver, l as Tool, o as resolveSpoolReader, r as registerMediaReaderResolver, t as SpooledArtifact, u as Registry } from "../spooled_artifact-CEGyUVPm.mjs";
3
+ import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-FselMff7.mjs";
4
+ import { a as inMemoryMediaReader, c as Retrievable, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-DKjX6RTc.mjs";
5
+ import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-Bc9nZQC-.mjs";
6
+ import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-oLHuYyA1.mjs";
7
7
  import "../index.mjs";
8
8
  import { InMemorySpoolReader, SPOOL_READER_TAG_IN_MEMORY } from "./storage/in_memory.mjs";
9
9
  import { registerClass } from "@nhtio/encoder";
@@ -27,5 +27,6 @@
27
27
  export * from "./llm/index";
28
28
  export * from "./tools/index";
29
29
  export * from "./embeddings/index";
30
+ export * from "./specialists/index";
30
31
  export * from "./vector/index";
31
32
  export * from "./context/index";
@@ -20,7 +20,7 @@ import type { GpuBudget } from "./gpu_budget";
20
20
  /** The coarse lifecycle phases a battery transitions through. */
21
21
  export type BatteryLifecyclePhase = 'loading' | 'compiling' | 'ready' | 'generating' | 'complete' | 'error';
22
22
  /** Which battery emitted a lifecycle report. */
23
- export type BatteryLifecycleBattery = 'transformers_js' | 'litert_lm' | 'webllm' | 'transformers_js_embed';
23
+ export type BatteryLifecycleBattery = 'transformers_js' | 'litert_lm' | 'webllm' | 'transformers_js_embed' | 'transformers_js_stt' | 'transformers_js_caption' | 'tesseract_js_ocr';
24
24
  /** A single normalized lifecycle report. */
25
25
  export interface BatteryLifecycleReport {
26
26
  /** The phase being entered. */
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_spooled_artifact = require("../../../spooled_artifact-DJujTbac.js");
5
- const require_thought = require("../../../thought-DM2h7ilq.js");
6
- require("../../../common-Be-5hSVx.js");
7
- const require_tool_call = require("../../../tool_call-CLJK4D1P.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
5
+ const require_thought = require("../../../thought-NCI5YocX.js");
6
+ require("../../../common-Bc8v-IUv.js");
7
+ const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
8
8
  require("../../../guards.cjs");
9
- const require_tool_parsers = require("../../../tool_parsers-BISyyeFX.js");
9
+ const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
10
10
  const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
11
11
  const require_helpers = require("../../../helpers-CGSPsSAA.js");
12
12
  const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
@@ -1,10 +1,10 @@
1
- import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-DJAqZhpj.mjs";
3
- import { n as Message, t as Thought } from "../../../thought-D11wtYkj.mjs";
4
- import "../../../common-BJznoglS.mjs";
5
- import { n as Media, t as ToolCall } from "../../../tool_call-DNueRQcL.mjs";
1
+ import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
3
+ import { n as Message, t as Thought } from "../../../thought-FselMff7.mjs";
4
+ import "../../../common-DKjX6RTc.mjs";
5
+ import { n as Media, t as ToolCall } from "../../../tool_call-Bc9nZQC-.mjs";
6
6
  import "../../../guards.mjs";
7
- import { O as resolveToolCallParser } from "../../../tool_parsers-R7Vt8VHd.mjs";
7
+ import { O as resolveToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
8
8
  import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
9
9
  import { a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, i as defaultRenderChatCompletionsSystemPrompt, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, r as defaultRenderArtifactHandleBody, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, z as stripEnvelopeSpecialTokens } from "../../../helpers-N6Q1uO9p.mjs";
10
10
  import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_spooled_artifact = require("../../../spooled_artifact-DJujTbac.js");
4
- const require_tool_call = require("../../../tool_call-CLJK4D1P.js");
3
+ const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
4
+ const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
5
5
  require("../../../index.cjs");
6
- const require_tool_parsers = require("../../../tool_parsers-BISyyeFX.js");
6
+ const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
7
7
  const require_helpers = require("../../../helpers-CGSPsSAA.js");
8
8
  const require_batteries_llm_openai_chat_completions_helpers = require("../openai_chat_completions/helpers.cjs");
9
9
  const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
@@ -1,7 +1,7 @@
1
- import { t as SpooledArtifact } from "../../../spooled_artifact-DJAqZhpj.mjs";
2
- import { n as Media } from "../../../tool_call-DNueRQcL.mjs";
1
+ import { t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
2
+ import { n as Media } from "../../../tool_call-Bc9nZQC-.mjs";
3
3
  import "../../../index.mjs";
4
- import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, S as looseKeyedToolCallParser, T as phiToolCallParser, _ as defaultResolveToolCallParser, a as defaultBarePythonicToolCallParser, b as hermesToolCallParser, c as defaultGptOssToolCallParser, d as defaultLooseKeyedToolCallParser, f as defaultMistralToolCallParser, g as defaultQwen3CoderToolCallParser, h as defaultPythonicToolCallParser, i as createAutoToolCallParser, l as defaultHermesToolCallParser, m as defaultPhiToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, o as defaultCreateAutoToolCallParser, p as defaultNoneToolCallParser, r as barePythonicToolCallParser, s as defaultGemmaToolCallParser, t as BUNDLED_TOOL_CALL_PARSERS, u as defaultLlama3JsonToolCallParser, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../../tool_parsers-R7Vt8VHd.mjs";
4
+ import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, S as looseKeyedToolCallParser, T as phiToolCallParser, _ as defaultResolveToolCallParser, a as defaultBarePythonicToolCallParser, b as hermesToolCallParser, c as defaultGptOssToolCallParser, d as defaultLooseKeyedToolCallParser, f as defaultMistralToolCallParser, g as defaultQwen3CoderToolCallParser, h as defaultPythonicToolCallParser, i as createAutoToolCallParser, l as defaultHermesToolCallParser, m as defaultPhiToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, o as defaultCreateAutoToolCallParser, p as defaultNoneToolCallParser, r as barePythonicToolCallParser, s as defaultGemmaToolCallParser, t as BUNDLED_TOOL_CALL_PARSERS, u as defaultLlama3JsonToolCallParser, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
5
5
  import { A as renderThirdPartyPrivateRetrievables, C as renderArtifactHandleBody, D as renderRetrievableSafetyDirective, E as renderMemories, L as sanitizeFilenameForDescription, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, R as sanitizeMimeType, S as neutraliseDeveloperRulesTag, T as renderFirstPartyRetrievables, a as defaultRenderFirstPartyRetrievables, b as looksLikeSpooledArtifact, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, r as defaultRenderArtifactHandleBody, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt } from "../../../helpers-N6Q1uO9p.mjs";
6
6
  import { extractReasoningFields } from "../openai_chat_completions/helpers.mjs";
7
7
  import { n as emitLifecycle, t as defaultEmitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_common = require("../../../common-Be-5hSVx.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_common = require("../../../common-Bc8v-IUv.js");
5
5
  require("../../../guards.cjs");
6
6
  const require_batteries_llm_litert_lm_exceptions = require("./exceptions.cjs");
7
7
  let _nhtio_validation = require("@nhtio/validation");
@@ -1,5 +1,5 @@
1
- import { B as isError, n as TokenEncoding } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { o as byteStoreSchema } from "../../../common-BJznoglS.mjs";
1
+ import { B as isError, n as TokenEncoding } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { o as byteStoreSchema } from "../../../common-DKjX6RTc.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { E_INVALID_LITERT_LM_OPTIONS } from "./exceptions.mjs";
5
5
  import { validator } from "@nhtio/validation";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.js");
3
- const require_tool_parsers = require("../../tool_parsers-BISyyeFX.js");
3
+ const require_tool_parsers = require("../../tool_parsers-DfZbeF0E.js");
4
4
  const require_helpers = require("../../helpers-CGSPsSAA.js");
5
5
  const require_batteries_llm_openai_chat_completions_helpers = require("./openai_chat_completions/helpers.cjs");
6
6
  const require_lifecycle = require("../../lifecycle-vYQJ2rmf.js");
@@ -1,4 +1,4 @@
1
- import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, T as phiToolCallParser, b as hermesToolCallParser, i as createAutoToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, t as BUNDLED_TOOL_CALL_PARSERS, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../tool_parsers-R7Vt8VHd.mjs";
1
+ import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, T as phiToolCallParser, b as hermesToolCallParser, i as createAutoToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, t as BUNDLED_TOOL_CALL_PARSERS, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../tool_parsers-BFiMJBy6.mjs";
2
2
  import { A as renderThirdPartyPrivateRetrievables, C as renderArtifactHandleBody, D as renderRetrievableSafetyDirective, E as renderMemories, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, T as renderFirstPartyRetrievables, a as defaultRenderFirstPartyRetrievables, b as looksLikeSpooledArtifact, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt } from "../../helpers-N6Q1uO9p.mjs";
3
3
  import { extractReasoningFields } from "./openai_chat_completions/helpers.mjs";
4
4
  import { n as emitLifecycle, t as defaultEmitLifecycle } from "../../lifecycle-C4kwYJ-N.mjs";
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_spooled_artifact = require("../../../spooled_artifact-DJujTbac.js");
5
- const require_thought = require("../../../thought-DM2h7ilq.js");
6
- require("../../../common-Be-5hSVx.js");
7
- const require_tool_call = require("../../../tool_call-CLJK4D1P.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
5
+ const require_thought = require("../../../thought-NCI5YocX.js");
6
+ require("../../../common-Bc8v-IUv.js");
7
+ const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
8
8
  require("../../../guards.cjs");
9
9
  const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
10
- const require_tool_parsers = require("../../../tool_parsers-BISyyeFX.js");
10
+ const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
11
11
  const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
12
12
  const require_helpers = require("../../../helpers-CGSPsSAA.js");
13
13
  const require_batteries_llm_ollama_exceptions = require("./exceptions.cjs");
@@ -1,11 +1,11 @@
1
- import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-DJAqZhpj.mjs";
3
- import { n as Message, t as Thought } from "../../../thought-D11wtYkj.mjs";
4
- import "../../../common-BJznoglS.mjs";
5
- import { n as Media, t as ToolCall } from "../../../tool_call-DNueRQcL.mjs";
1
+ import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
3
+ import { n as Message, t as Thought } from "../../../thought-FselMff7.mjs";
4
+ import "../../../common-DKjX6RTc.mjs";
5
+ import { n as Media, t as ToolCall } from "../../../tool_call-Bc9nZQC-.mjs";
6
6
  import "../../../guards.mjs";
7
7
  import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
8
- import { O as resolveToolCallParser } from "../../../tool_parsers-R7Vt8VHd.mjs";
8
+ import { O as resolveToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
9
9
  import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
10
10
  import { a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, h as defaultToolsToChatCompletionsTools, i as defaultRenderChatCompletionsSystemPrompt, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables } from "../../../helpers-N6Q1uO9p.mjs";
11
11
  import { E_INVALID_OLLAMA_OPTIONS, E_OLLAMA_CONTEXT_OVERFLOW, E_OLLAMA_HTTP_ERROR, E_OLLAMA_INVALID_TOOL_CALL_ARGS, E_OLLAMA_REQUEST_TIMEOUT, E_OLLAMA_STREAM_ERROR, E_OLLAMA_STREAM_STALLED } from "./exceptions.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- require("../../../common-Be-5hSVx.js");
4
- const require_tool_call = require("../../../tool_call-CLJK4D1P.js");
3
+ require("../../../common-Bc8v-IUv.js");
4
+ const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
5
5
  require("../../../guards.cjs");
6
6
  const require_helpers = require("../../../helpers-CGSPsSAA.js");
7
7
  const require_batteries_llm_ollama_exceptions = require("./exceptions.cjs");
@@ -1,5 +1,5 @@
1
- import "../../../common-BJznoglS.mjs";
2
- import { n as Media } from "../../../tool_call-DNueRQcL.mjs";
1
+ import "../../../common-DKjX6RTc.mjs";
2
+ import { n as Media } from "../../../tool_call-Bc9nZQC-.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { A as renderThirdPartyPrivateRetrievables, B as toolsToChatCompletionsTools, D as renderRetrievableSafetyDirective, E as renderMemories, F as retrievableToAttrs, L as sanitizeFilenameForDescription, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, R as sanitizeMimeType, S as neutraliseDeveloperRulesTag, T as renderFirstPartyRetrievables, _ as escapeXmlAttribute, a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, h as defaultToolsToChatCompletionsTools, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt, x as memoryToAttrs, y as floorTrustTier } from "../../../helpers-N6Q1uO9p.mjs";
5
5
  import { E_OLLAMA_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_common = require("../../../common-Be-5hSVx.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_common = require("../../../common-Bc8v-IUv.js");
5
5
  require("../../../guards.cjs");
6
6
  const require_batteries_llm_ollama_exceptions = require("./exceptions.cjs");
7
7
  let _nhtio_validation = require("@nhtio/validation");
@@ -1,5 +1,5 @@
1
- import { n as TokenEncoding } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { o as byteStoreSchema } from "../../../common-BJznoglS.mjs";
1
+ import { n as TokenEncoding } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { o as byteStoreSchema } from "../../../common-DKjX6RTc.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { E_INVALID_OLLAMA_OPTIONS } from "./exceptions.mjs";
5
5
  import { validator } from "@nhtio/validation";
@@ -1,15 +1,15 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_spooled_artifact = require("../../../spooled_artifact-DJujTbac.js");
5
- const require_thought = require("../../../thought-DM2h7ilq.js");
6
- require("../../../common-Be-5hSVx.js");
7
- const require_tool_call = require("../../../tool_call-CLJK4D1P.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
5
+ const require_thought = require("../../../thought-NCI5YocX.js");
6
+ require("../../../common-Bc8v-IUv.js");
7
+ const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
8
8
  require("../../../guards.cjs");
9
9
  const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
10
10
  const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
11
11
  const require_batteries_llm_openai_chat_completions_validation = require("./validation.cjs");
12
- const require_tool_parsers = require("../../../tool_parsers-BISyyeFX.js");
12
+ const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
13
13
  const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
14
14
  const require_helpers = require("../../../helpers-CGSPsSAA.js");
15
15
  const require_batteries_llm_openai_chat_completions_helpers = require("./helpers.cjs");
@@ -1,13 +1,13 @@
1
- import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-DJAqZhpj.mjs";
3
- import { n as Message, t as Thought } from "../../../thought-D11wtYkj.mjs";
4
- import "../../../common-BJznoglS.mjs";
5
- import { n as Media, t as ToolCall } from "../../../tool_call-DNueRQcL.mjs";
1
+ import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
3
+ import { n as Message, t as Thought } from "../../../thought-FselMff7.mjs";
4
+ import "../../../common-DKjX6RTc.mjs";
5
+ import { n as Media, t as ToolCall } from "../../../tool_call-Bc9nZQC-.mjs";
6
6
  import "../../../guards.mjs";
7
7
  import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
8
8
  import { E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS, E_OPENAI_CHAT_COMPLETIONS_CONTEXT_OVERFLOW, E_OPENAI_CHAT_COMPLETIONS_HTTP_ERROR, E_OPENAI_CHAT_COMPLETIONS_INVALID_TOOL_CALL_ARGS, E_OPENAI_CHAT_COMPLETIONS_REQUEST_TIMEOUT, E_OPENAI_CHAT_COMPLETIONS_STREAM_ERROR, E_OPENAI_CHAT_COMPLETIONS_STREAM_STALLED } from "./exceptions.mjs";
9
9
  import { validateOptions } from "./validation.mjs";
10
- import { O as resolveToolCallParser } from "../../../tool_parsers-R7Vt8VHd.mjs";
10
+ import { O as resolveToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
11
11
  import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
12
12
  import { a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, h as defaultToolsToChatCompletionsTools, i as defaultRenderChatCompletionsSystemPrompt, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables } from "../../../helpers-N6Q1uO9p.mjs";
13
13
  import { defaultBuildChatCompletionsHistory, defaultCreateChatCompletionsToolCallDeltaAccumulator, defaultRenderChatCompletionsToolCallResult, defaultRenderTimelineMessage, extractReasoningFields } from "./helpers.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- require("../../../common-Be-5hSVx.js");
4
- const require_tool_call = require("../../../tool_call-CLJK4D1P.js");
3
+ require("../../../common-Bc8v-IUv.js");
4
+ const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
5
5
  require("../../../guards.cjs");
6
6
  const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
7
7
  const require_helpers = require("../../../helpers-CGSPsSAA.js");
@@ -1,5 +1,5 @@
1
- import "../../../common-BJznoglS.mjs";
2
- import { n as Media } from "../../../tool_call-DNueRQcL.mjs";
1
+ import "../../../common-DKjX6RTc.mjs";
2
+ import { n as Media } from "../../../tool_call-Bc9nZQC-.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { E_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
5
5
  import { A as renderThirdPartyPrivateRetrievables, B as toolsToChatCompletionsTools, D as renderRetrievableSafetyDirective, E as renderMemories, F as retrievableToAttrs, I as sanitiseNameField, L as sanitizeFilenameForDescription, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, R as sanitizeMimeType, S as neutraliseDeveloperRulesTag, T as renderFirstPartyRetrievables, _ as escapeXmlAttribute, a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, h as defaultToolsToChatCompletionsTools, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt, x as memoryToAttrs, y as floorTrustTier, z as stripEnvelopeSpecialTokens } from "../../../helpers-N6Q1uO9p.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_common = require("../../../common-Be-5hSVx.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_common = require("../../../common-Bc8v-IUv.js");
5
5
  require("../../../guards.cjs");
6
6
  const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
7
7
  let _nhtio_validation = require("@nhtio/validation");
@@ -1,5 +1,5 @@
1
- import { n as TokenEncoding } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { o as byteStoreSchema } from "../../../common-BJznoglS.mjs";
1
+ import { n as TokenEncoding } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { o as byteStoreSchema } from "../../../common-DKjX6RTc.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS } from "./exceptions.mjs";
5
5
  import { validator } from "@nhtio/validation";
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_spooled_artifact = require("../../../spooled_artifact-DJujTbac.js");
5
- const require_thought = require("../../../thought-DM2h7ilq.js");
6
- require("../../../common-Be-5hSVx.js");
7
- const require_tool_call = require("../../../tool_call-CLJK4D1P.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
5
+ const require_thought = require("../../../thought-NCI5YocX.js");
6
+ require("../../../common-Bc8v-IUv.js");
7
+ const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
8
8
  require("../../../guards.cjs");
9
- const require_tool_parsers = require("../../../tool_parsers-BISyyeFX.js");
9
+ const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
10
10
  const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
11
11
  const require_helpers = require("../../../helpers-CGSPsSAA.js");
12
12
  const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
@@ -1,10 +1,10 @@
1
- import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-DJAqZhpj.mjs";
3
- import { n as Message, t as Thought } from "../../../thought-D11wtYkj.mjs";
4
- import "../../../common-BJznoglS.mjs";
5
- import { n as Media, t as ToolCall } from "../../../tool_call-DNueRQcL.mjs";
1
+ import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
3
+ import { n as Message, t as Thought } from "../../../thought-FselMff7.mjs";
4
+ import "../../../common-DKjX6RTc.mjs";
5
+ import { n as Media, t as ToolCall } from "../../../tool_call-Bc9nZQC-.mjs";
6
6
  import "../../../guards.mjs";
7
- import { O as resolveToolCallParser } from "../../../tool_parsers-R7Vt8VHd.mjs";
7
+ import { O as resolveToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
8
8
  import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
9
9
  import { a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, i as defaultRenderChatCompletionsSystemPrompt, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, r as defaultRenderArtifactHandleBody, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, z as stripEnvelopeSpecialTokens } from "../../../helpers-N6Q1uO9p.mjs";
10
10
  import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_spooled_artifact = require("../../../spooled_artifact-DJujTbac.js");
5
- const require_tool_call = require("../../../tool_call-CLJK4D1P.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
5
+ const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
6
6
  require("../../../guards.cjs");
7
7
  require("../../../index.cjs");
8
- const require_tool_parsers = require("../../../tool_parsers-BISyyeFX.js");
8
+ const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
9
9
  const require_helpers = require("../../../helpers-CGSPsSAA.js");
10
10
  const require_batteries_llm_openai_chat_completions_helpers = require("../openai_chat_completions/helpers.cjs");
11
11
  const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
@@ -1,9 +1,9 @@
1
- import { B as isError } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { t as SpooledArtifact } from "../../../spooled_artifact-DJAqZhpj.mjs";
3
- import { n as Media } from "../../../tool_call-DNueRQcL.mjs";
1
+ import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
3
+ import { n as Media } from "../../../tool_call-Bc9nZQC-.mjs";
4
4
  import "../../../guards.mjs";
5
5
  import "../../../index.mjs";
6
- import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, S as looseKeyedToolCallParser, T as phiToolCallParser, _ as defaultResolveToolCallParser, a as defaultBarePythonicToolCallParser, b as hermesToolCallParser, c as defaultGptOssToolCallParser, d as defaultLooseKeyedToolCallParser, f as defaultMistralToolCallParser, g as defaultQwen3CoderToolCallParser, h as defaultPythonicToolCallParser, i as createAutoToolCallParser, l as defaultHermesToolCallParser, m as defaultPhiToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, o as defaultCreateAutoToolCallParser, p as defaultNoneToolCallParser, r as barePythonicToolCallParser, s as defaultGemmaToolCallParser, t as BUNDLED_TOOL_CALL_PARSERS, u as defaultLlama3JsonToolCallParser, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../../tool_parsers-R7Vt8VHd.mjs";
6
+ import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, S as looseKeyedToolCallParser, T as phiToolCallParser, _ as defaultResolveToolCallParser, a as defaultBarePythonicToolCallParser, b as hermesToolCallParser, c as defaultGptOssToolCallParser, d as defaultLooseKeyedToolCallParser, f as defaultMistralToolCallParser, g as defaultQwen3CoderToolCallParser, h as defaultPythonicToolCallParser, i as createAutoToolCallParser, l as defaultHermesToolCallParser, m as defaultPhiToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, o as defaultCreateAutoToolCallParser, p as defaultNoneToolCallParser, r as barePythonicToolCallParser, s as defaultGemmaToolCallParser, t as BUNDLED_TOOL_CALL_PARSERS, u as defaultLlama3JsonToolCallParser, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
7
7
  import { A as renderThirdPartyPrivateRetrievables, C as renderArtifactHandleBody, D as renderRetrievableSafetyDirective, E as renderMemories, L as sanitizeFilenameForDescription, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, R as sanitizeMimeType, S as neutraliseDeveloperRulesTag, T as renderFirstPartyRetrievables, a as defaultRenderFirstPartyRetrievables, b as looksLikeSpooledArtifact, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, r as defaultRenderArtifactHandleBody, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt } from "../../../helpers-N6Q1uO9p.mjs";
8
8
  import { extractReasoningFields } from "../openai_chat_completions/helpers.mjs";
9
9
  import { n as emitLifecycle, t as defaultEmitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
4
  require("../../../guards.cjs");
5
5
  //#region src/batteries/llm/transformers_js/model_source.ts
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { V as isInstanceOf } from "../../../tokenizable-BJPwaOUU.mjs";
1
+ import { V as isInstanceOf } from "../../../tokenizable-BwnLtCzr.mjs";
2
2
  import "../../../guards.mjs";
3
3
  //#region src/batteries/llm/transformers_js/model_source.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.js");
3
- const require_tokenizable = require("../../../tokenizable-BcYQ6MOM.js");
4
- const require_common = require("../../../common-Be-5hSVx.js");
3
+ const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
4
+ const require_common = require("../../../common-Bc8v-IUv.js");
5
5
  require("../../../guards.cjs");
6
6
  const require_batteries_llm_transformers_js_exceptions = require("./exceptions.cjs");
7
7
  let _nhtio_validation = require("@nhtio/validation");
@@ -1,5 +1,5 @@
1
- import { B as isError, n as TokenEncoding } from "../../../tokenizable-BJPwaOUU.mjs";
2
- import { o as byteStoreSchema } from "../../../common-BJznoglS.mjs";
1
+ import { B as isError, n as TokenEncoding } from "../../../tokenizable-BwnLtCzr.mjs";
2
+ import { o as byteStoreSchema } from "../../../common-DKjX6RTc.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { E_INVALID_TRANSFORMERS_JS_OPTIONS } from "./exceptions.mjs";
5
5
  import { validator } from "@nhtio/validation";