@nhtio/adk 1.20260924.0 → 1.20260925.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 (328) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/artifact_methods-9BemAvd4.mjs +1 -0
  3. package/artifact_methods-FKgk4q_1.cjs +1 -0
  4. package/batteries/artifacts/ecmascript.cjs +1 -1
  5. package/batteries/artifacts/ecmascript.mjs +1 -1
  6. package/batteries/artifacts/toon.cjs +1 -1
  7. package/batteries/artifacts/toon.mjs +1 -1
  8. package/batteries/artifacts/xml.cjs +1 -1
  9. package/batteries/artifacts/xml.mjs +1 -1
  10. package/batteries/artifacts/yaml.cjs +1 -1
  11. package/batteries/artifacts/yaml.mjs +1 -1
  12. package/batteries/artifacts.cjs +4 -4
  13. package/batteries/artifacts.mjs +4 -4
  14. package/batteries/dev-tools/forge.cjs +3 -3
  15. package/batteries/dev-tools/forge.mjs +3 -3
  16. package/batteries/dev-tools.cjs +3 -3
  17. package/batteries/dev-tools.mjs +3 -3
  18. package/batteries/encoding.cjs +6 -6
  19. package/batteries/encoding.mjs +6 -6
  20. package/batteries/generation/gemini/adapter.cjs +1 -1
  21. package/batteries/generation/gemini/adapter.mjs +1 -1
  22. package/batteries/generation/local_diffusion/adapter.cjs +1 -1
  23. package/batteries/generation/local_diffusion/adapter.mjs +1 -1
  24. package/batteries/generation/openai/adapter.cjs +1 -1
  25. package/batteries/generation/openai/adapter.mjs +1 -1
  26. package/batteries/isolation/child_process.cjs +1 -1
  27. package/batteries/isolation/child_process.mjs +1 -1
  28. package/batteries/isolation.cjs +1 -1
  29. package/batteries/isolation.mjs +1 -1
  30. package/batteries/llm/anthropic_messages/adapter.cjs +5 -5
  31. package/batteries/llm/anthropic_messages/adapter.mjs +5 -5
  32. package/batteries/llm/anthropic_messages/count_tokens.cjs +1 -1
  33. package/batteries/llm/anthropic_messages/count_tokens.mjs +1 -1
  34. package/batteries/llm/anthropic_messages/helpers.cjs +3 -3
  35. package/batteries/llm/anthropic_messages/helpers.mjs +3 -3
  36. package/batteries/llm/anthropic_messages/validation.cjs +1 -1
  37. package/batteries/llm/anthropic_messages/validation.mjs +1 -1
  38. package/batteries/llm/anthropic_messages.cjs +2 -2
  39. package/batteries/llm/anthropic_messages.mjs +2 -2
  40. package/batteries/llm/bedrock_converse/adapter.cjs +161 -20
  41. package/batteries/llm/bedrock_converse/adapter.cjs.map +1 -1
  42. package/batteries/llm/bedrock_converse/adapter.mjs +161 -20
  43. package/batteries/llm/bedrock_converse/adapter.mjs.map +1 -1
  44. package/batteries/llm/bedrock_converse/helpers.cjs +1 -1
  45. package/batteries/llm/bedrock_converse/helpers.mjs +1 -1
  46. package/batteries/llm/bedrock_converse/validation.cjs +1 -1
  47. package/batteries/llm/bedrock_converse/validation.mjs +1 -1
  48. package/batteries/llm/bedrock_converse.cjs +2 -2
  49. package/batteries/llm/bedrock_converse.mjs +2 -2
  50. package/batteries/llm/claude_code_cli/adapter.cjs +65 -24
  51. package/batteries/llm/claude_code_cli/adapter.cjs.map +1 -1
  52. package/batteries/llm/claude_code_cli/adapter.mjs +65 -24
  53. package/batteries/llm/claude_code_cli/adapter.mjs.map +1 -1
  54. package/batteries/llm/claude_code_cli/helpers.cjs +3 -3
  55. package/batteries/llm/claude_code_cli/helpers.mjs +3 -3
  56. package/batteries/llm/claude_code_cli/line_queue.d.ts +39 -0
  57. package/batteries/llm/claude_code_cli/message_id_state.d.ts +48 -0
  58. package/batteries/llm/claude_code_cli/types.d.ts +76 -0
  59. package/batteries/llm/claude_code_cli/validation.cjs +4 -1
  60. package/batteries/llm/claude_code_cli/validation.cjs.map +1 -1
  61. package/batteries/llm/claude_code_cli/validation.mjs +4 -1
  62. package/batteries/llm/claude_code_cli/validation.mjs.map +1 -1
  63. package/batteries/llm/claude_code_cli/wire.cjs.map +1 -1
  64. package/batteries/llm/claude_code_cli/wire.d.ts +45 -1
  65. package/batteries/llm/claude_code_cli/wire.mjs.map +1 -1
  66. package/batteries/llm/claude_code_cli/wrapper.d.ts +5 -4
  67. package/batteries/llm/claude_code_cli.cjs +2 -2
  68. package/batteries/llm/claude_code_cli.mjs +2 -2
  69. package/batteries/llm/gemini_generate_content/adapter.cjs +159 -18
  70. package/batteries/llm/gemini_generate_content/adapter.cjs.map +1 -1
  71. package/batteries/llm/gemini_generate_content/adapter.mjs +159 -18
  72. package/batteries/llm/gemini_generate_content/adapter.mjs.map +1 -1
  73. package/batteries/llm/gemini_generate_content/helpers.cjs +1 -1
  74. package/batteries/llm/gemini_generate_content/helpers.mjs +1 -1
  75. package/batteries/llm/gemini_generate_content/validation.cjs +1 -1
  76. package/batteries/llm/gemini_generate_content/validation.mjs +1 -1
  77. package/batteries/llm/gemini_generate_content.cjs +1 -1
  78. package/batteries/llm/gemini_generate_content.mjs +1 -1
  79. package/batteries/llm/litert_lm/adapter.cjs +5 -5
  80. package/batteries/llm/litert_lm/adapter.mjs +5 -5
  81. package/batteries/llm/litert_lm/helpers.cjs +3 -3
  82. package/batteries/llm/litert_lm/helpers.mjs +3 -3
  83. package/batteries/llm/litert_lm/validation.cjs +1 -1
  84. package/batteries/llm/litert_lm/validation.mjs +1 -1
  85. package/batteries/llm/litert_lm.cjs +1 -1
  86. package/batteries/llm/litert_lm.mjs +1 -1
  87. package/batteries/llm/ollama/adapter.cjs +5 -5
  88. package/batteries/llm/ollama/adapter.mjs +5 -5
  89. package/batteries/llm/ollama/helpers.cjs +4 -4
  90. package/batteries/llm/ollama/helpers.mjs +4 -4
  91. package/batteries/llm/ollama/validation.cjs +1 -1
  92. package/batteries/llm/ollama/validation.mjs +1 -1
  93. package/batteries/llm/ollama.cjs +2 -2
  94. package/batteries/llm/ollama.mjs +2 -2
  95. package/batteries/llm/openai_chat_completions/adapter.cjs +5 -5
  96. package/batteries/llm/openai_chat_completions/adapter.mjs +5 -5
  97. package/batteries/llm/openai_chat_completions/helpers.cjs +4 -4
  98. package/batteries/llm/openai_chat_completions/helpers.mjs +4 -4
  99. package/batteries/llm/openai_chat_completions/validation.cjs +1 -1
  100. package/batteries/llm/openai_chat_completions/validation.mjs +1 -1
  101. package/batteries/llm/openai_chat_completions.cjs +2 -2
  102. package/batteries/llm/openai_chat_completions.mjs +2 -2
  103. package/batteries/llm/openai_responses/adapter.cjs +5 -5
  104. package/batteries/llm/openai_responses/adapter.mjs +5 -5
  105. package/batteries/llm/openai_responses/helpers.cjs +3 -3
  106. package/batteries/llm/openai_responses/helpers.mjs +3 -3
  107. package/batteries/llm/openai_responses/validation.cjs +1 -1
  108. package/batteries/llm/openai_responses/validation.mjs +1 -1
  109. package/batteries/llm/openai_responses.cjs +2 -2
  110. package/batteries/llm/openai_responses.mjs +2 -2
  111. package/batteries/llm/transformers_js/adapter.cjs +5 -5
  112. package/batteries/llm/transformers_js/adapter.mjs +5 -5
  113. package/batteries/llm/transformers_js/helpers.cjs +3 -3
  114. package/batteries/llm/transformers_js/helpers.mjs +3 -3
  115. package/batteries/llm/transformers_js/validation.cjs +1 -1
  116. package/batteries/llm/transformers_js/validation.mjs +1 -1
  117. package/batteries/llm/transformers_js.cjs +1 -1
  118. package/batteries/llm/transformers_js.mjs +1 -1
  119. package/batteries/llm/webllm_chat_completions/adapter.cjs +5 -5
  120. package/batteries/llm/webllm_chat_completions/adapter.mjs +5 -5
  121. package/batteries/llm/webllm_chat_completions/helpers.cjs +1 -1
  122. package/batteries/llm/webllm_chat_completions/helpers.mjs +1 -1
  123. package/batteries/llm/webllm_chat_completions/validation.cjs +1 -1
  124. package/batteries/llm/webllm_chat_completions/validation.mjs +1 -1
  125. package/batteries/llm/webllm_chat_completions.cjs +2 -2
  126. package/batteries/llm/webllm_chat_completions.mjs +2 -2
  127. package/batteries/llm.cjs +2 -2
  128. package/batteries/llm.mjs +2 -2
  129. package/batteries/media/forge.cjs +4 -4
  130. package/batteries/media/forge.mjs +4 -4
  131. package/batteries/media/lint.cjs +1 -1
  132. package/batteries/media/lint.mjs +1 -1
  133. package/batteries/orchestration/cells/jexl.cjs +1 -1
  134. package/batteries/orchestration/cells/jexl.mjs +1 -1
  135. package/batteries/orchestration/cells/lua.cjs +1 -1
  136. package/batteries/orchestration/cells/lua.mjs +1 -1
  137. package/batteries/orchestration/cells/structured.cjs +1 -1
  138. package/batteries/orchestration/cells/structured.mjs +1 -1
  139. package/batteries/orchestration/dispatch_reasoner.cjs +4 -4
  140. package/batteries/orchestration/dispatch_reasoner.mjs +4 -4
  141. package/batteries/orchestration/executor.cjs +2 -2
  142. package/batteries/orchestration/executor.mjs +2 -2
  143. package/batteries/orchestration/forge.cjs +4 -4
  144. package/batteries/orchestration/forge.mjs +4 -4
  145. package/batteries/orchestration/validation.cjs +2 -2
  146. package/batteries/orchestration/validation.mjs +2 -2
  147. package/batteries/orchestration.cjs +5 -5
  148. package/batteries/orchestration.mjs +5 -5
  149. package/batteries/sandbox/js.cjs +1 -1
  150. package/batteries/sandbox/js.mjs +1 -1
  151. package/batteries/sandbox/tools.cjs +1 -1
  152. package/batteries/sandbox/tools.mjs +1 -1
  153. package/batteries/sandbox.cjs +3 -3
  154. package/batteries/sandbox.mjs +3 -3
  155. package/batteries/skills/in_memory.cjs +1 -1
  156. package/batteries/skills/in_memory.mjs +1 -1
  157. package/batteries/skills.cjs +9 -9
  158. package/batteries/skills.mjs +9 -9
  159. package/batteries/specialists/stt/transformers_js.cjs +1 -1
  160. package/batteries/specialists/stt/transformers_js.mjs +1 -1
  161. package/batteries/specialists/stt.cjs +1 -1
  162. package/batteries/specialists/stt.mjs +1 -1
  163. package/batteries/specialists.cjs +1 -1
  164. package/batteries/specialists.mjs +1 -1
  165. package/batteries/tools/_shared.cjs +2 -2
  166. package/batteries/tools/_shared.mjs +2 -2
  167. package/batteries/tools/color.cjs +2 -2
  168. package/batteries/tools/color.mjs +2 -2
  169. package/batteries/tools/comparison.cjs +2 -2
  170. package/batteries/tools/comparison.mjs +2 -2
  171. package/batteries/tools/data_structure.cjs +2 -2
  172. package/batteries/tools/data_structure.mjs +2 -2
  173. package/batteries/tools/datetime_extended.cjs +3 -3
  174. package/batteries/tools/datetime_extended.mjs +3 -3
  175. package/batteries/tools/datetime_math.cjs +3 -3
  176. package/batteries/tools/datetime_math.mjs +3 -3
  177. package/batteries/tools/encoding.cjs +2 -2
  178. package/batteries/tools/encoding.mjs +2 -2
  179. package/batteries/tools/formatting.cjs +2 -2
  180. package/batteries/tools/formatting.mjs +2 -2
  181. package/batteries/tools/geo_basics.cjs +2 -2
  182. package/batteries/tools/geo_basics.mjs +2 -2
  183. package/batteries/tools/math.cjs +2 -2
  184. package/batteries/tools/math.mjs +2 -2
  185. package/batteries/tools/memory.cjs +5 -5
  186. package/batteries/tools/memory.mjs +5 -5
  187. package/batteries/tools/parsing.cjs +3 -3
  188. package/batteries/tools/parsing.mjs +3 -3
  189. package/batteries/tools/retrievables.cjs +5 -5
  190. package/batteries/tools/retrievables.mjs +5 -5
  191. package/batteries/tools/scrapper.cjs +1 -1
  192. package/batteries/tools/scrapper.mjs +1 -1
  193. package/batteries/tools/searxng.cjs +1 -1
  194. package/batteries/tools/searxng.mjs +1 -1
  195. package/batteries/tools/standing_instructions.cjs +3 -3
  196. package/batteries/tools/standing_instructions.mjs +3 -3
  197. package/batteries/tools/statistics.cjs +3 -3
  198. package/batteries/tools/statistics.mjs +3 -3
  199. package/batteries/tools/string_processing.cjs +2 -2
  200. package/batteries/tools/string_processing.mjs +2 -2
  201. package/batteries/tools/structured_data.cjs +2 -2
  202. package/batteries/tools/structured_data.mjs +2 -2
  203. package/batteries/tools/text_analysis.cjs +3 -3
  204. package/batteries/tools/text_analysis.mjs +3 -3
  205. package/batteries/tools/text_comparison.cjs +2 -2
  206. package/batteries/tools/text_comparison.mjs +2 -2
  207. package/batteries/tools/time.cjs +3 -3
  208. package/batteries/tools/time.mjs +3 -3
  209. package/batteries/tools/unit_conversion.cjs +2 -2
  210. package/batteries/tools/unit_conversion.mjs +2 -2
  211. package/batteries/tools.cjs +2 -2
  212. package/batteries/tools.mjs +2 -2
  213. package/batteries/validation.cjs +4 -4
  214. package/batteries/validation.mjs +4 -4
  215. package/batteries/vector/retrievable.cjs +1 -1
  216. package/batteries/vector/retrievable.mjs +1 -1
  217. package/batteries.cjs +6 -6
  218. package/batteries.mjs +6 -6
  219. package/{chat_common-B7fvGTKv.cjs → chat_common-4huaTp6d.cjs} +2 -2
  220. package/{chat_common-B7fvGTKv.cjs.map → chat_common-4huaTp6d.cjs.map} +1 -1
  221. package/{chat_common-CeoHwSsz.mjs → chat_common-D_XGNjcK.mjs} +2 -2
  222. package/{chat_common-CeoHwSsz.mjs.map → chat_common-D_XGNjcK.mjs.map} +1 -1
  223. package/claude-code-cli-wrapper.cjs +104 -22
  224. package/claude-code-cli-wrapper.cjs.map +1 -1
  225. package/claude-code-cli-wrapper.mjs +104 -22
  226. package/claude-code-cli-wrapper.mjs.map +1 -1
  227. package/{common-7gCR3zQu.cjs → common-BiRzOsxe.cjs} +6 -6
  228. package/{common-7gCR3zQu.cjs.map → common-BiRzOsxe.cjs.map} +1 -1
  229. package/{common-B5maOoF_.mjs → common-DsLvTGmm.mjs} +6 -6
  230. package/{common-B5maOoF_.mjs.map → common-DsLvTGmm.mjs.map} +1 -1
  231. package/common.cjs +6 -6
  232. package/common.mjs +6 -6
  233. package/{dispatch_runner-FlriTyoq.cjs → dispatch_runner-C5S3KCqH.cjs} +4 -4
  234. package/{dispatch_runner-FlriTyoq.cjs.map → dispatch_runner-C5S3KCqH.cjs.map} +1 -1
  235. package/{dispatch_runner-DO7jo_gl.mjs → dispatch_runner-DDH_dGPU.mjs} +4 -4
  236. package/{dispatch_runner-DO7jo_gl.mjs.map → dispatch_runner-DDH_dGPU.mjs.map} +1 -1
  237. package/dispatch_runner.cjs +1 -1
  238. package/dispatch_runner.mjs +1 -1
  239. package/{ecmascript-BydSB03Y.cjs → ecmascript-BGr_0Dwn.cjs} +5 -5
  240. package/{ecmascript-BydSB03Y.cjs.map → ecmascript-BGr_0Dwn.cjs.map} +1 -1
  241. package/{ecmascript-bgwVyZG1.mjs → ecmascript-CWLZ7bCX.mjs} +5 -5
  242. package/{ecmascript-bgwVyZG1.mjs.map → ecmascript-CWLZ7bCX.mjs.map} +1 -1
  243. package/eslint.cjs +2 -2
  244. package/eslint.mjs +2 -2
  245. package/forge.cjs +2 -2
  246. package/forge.mjs +2 -2
  247. package/guards.cjs +6 -6
  248. package/guards.mjs +6 -6
  249. package/{helpers-Dcp4CrOz.cjs → helpers-BPi_iwxv.cjs} +3 -3
  250. package/{helpers-Dcp4CrOz.cjs.map → helpers-BPi_iwxv.cjs.map} +1 -1
  251. package/{helpers-C1T0DV8Q.mjs → helpers-D47G8WQb.mjs} +3 -3
  252. package/{helpers-C1T0DV8Q.mjs.map → helpers-D47G8WQb.mjs.map} +1 -1
  253. package/index.cjs +10 -10
  254. package/index.mjs +10 -10
  255. package/{isolation-B01xCIoV.cjs → isolation-B2FgKbap.cjs} +2 -2
  256. package/{isolation-B01xCIoV.cjs.map → isolation-B2FgKbap.cjs.map} +1 -1
  257. package/{isolation-CO0NiK8R.mjs → isolation-BRGpiU-K.mjs} +2 -2
  258. package/{isolation-CO0NiK8R.mjs.map → isolation-BRGpiU-K.mjs.map} +1 -1
  259. package/{manifest-D8UTRohY.mjs → manifest-B5bWMHgj.mjs} +2 -2
  260. package/{manifest-D8UTRohY.mjs.map → manifest-B5bWMHgj.mjs.map} +1 -1
  261. package/{manifest-IP1IOJcg.cjs → manifest-Chjh-3s1.cjs} +2 -2
  262. package/{manifest-IP1IOJcg.cjs.map → manifest-Chjh-3s1.cjs.map} +1 -1
  263. package/mcp/adk-docs-corpus.json +2 -2
  264. package/package.json +455 -455
  265. package/{predicates-CM27Z3TF.mjs → predicates-2dZQ82LY.mjs} +2 -2
  266. package/{predicates-CM27Z3TF.mjs.map → predicates-2dZQ82LY.mjs.map} +1 -1
  267. package/{predicates-Bzaa7gNI.cjs → predicates-C9jl2QPZ.cjs} +2 -2
  268. package/{predicates-Bzaa7gNI.cjs.map → predicates-C9jl2QPZ.cjs.map} +1 -1
  269. package/{retrievable-BBwiACtw.cjs → retrievable-ReauMJxJ.cjs} +2 -2
  270. package/{retrievable-BBwiACtw.cjs.map → retrievable-ReauMJxJ.cjs.map} +1 -1
  271. package/{retrievable-CrGKx4sc.mjs → retrievable-mFgC1aty.mjs} +2 -2
  272. package/{retrievable-CrGKx4sc.mjs.map → retrievable-mFgC1aty.mjs.map} +1 -1
  273. package/{scrapper-BibKj8qE.cjs → scrapper-BsEY0Wo6.cjs} +5 -5
  274. package/{scrapper-BibKj8qE.cjs.map → scrapper-BsEY0Wo6.cjs.map} +1 -1
  275. package/{scrapper-_JzgbLG5.mjs → scrapper-bShwZxKP.mjs} +5 -5
  276. package/{scrapper-_JzgbLG5.mjs.map → scrapper-bShwZxKP.mjs.map} +1 -1
  277. package/{searxng-D-nA2gEI.mjs → searxng-CAY-bOMl.mjs} +5 -5
  278. package/{searxng-D-nA2gEI.mjs.map → searxng-CAY-bOMl.mjs.map} +1 -1
  279. package/{searxng-C6xrLW-v.cjs → searxng-CLF0vBMT.cjs} +5 -5
  280. package/{searxng-C6xrLW-v.cjs.map → searxng-CLF0vBMT.cjs.map} +1 -1
  281. package/server.json +2 -2
  282. package/skills/adk-assembly/SKILL.md +2 -2
  283. package/{spooled_artifact-BkOe4-j-.mjs → spooled_artifact-B710Rb0d.mjs} +2 -2
  284. package/{spooled_artifact-BkOe4-j-.mjs.map → spooled_artifact-B710Rb0d.mjs.map} +1 -1
  285. package/{spooled_artifact-BLgbGT8b.cjs → spooled_artifact-CFjf6ULg.cjs} +2 -2
  286. package/{spooled_artifact-BLgbGT8b.cjs.map → spooled_artifact-CFjf6ULg.cjs.map} +1 -1
  287. package/spooled_artifact.cjs +2 -2
  288. package/spooled_artifact.mjs +2 -2
  289. package/{spooled_markdown_artifact-Dnl-lCGv.mjs → spooled_markdown_artifact-1C4mmi73.mjs} +2 -2
  290. package/{spooled_markdown_artifact-Dnl-lCGv.mjs.map → spooled_markdown_artifact-1C4mmi73.mjs.map} +1 -1
  291. package/{spooled_markdown_artifact-8zdejfcJ.cjs → spooled_markdown_artifact-PWppwnPQ.cjs} +2 -2
  292. package/{spooled_markdown_artifact-8zdejfcJ.cjs.map → spooled_markdown_artifact-PWppwnPQ.cjs.map} +1 -1
  293. package/{thought-BrQt6HAb.mjs → thought-BKXwUZoq.mjs} +2 -2
  294. package/{thought-BrQt6HAb.mjs.map → thought-BKXwUZoq.mjs.map} +1 -1
  295. package/{thought-COeZTQ-B.cjs → thought-D5fJsxBW.cjs} +2 -2
  296. package/{thought-COeZTQ-B.cjs.map → thought-D5fJsxBW.cjs.map} +1 -1
  297. package/{tool_call-JbjeUpRK.cjs → tool_call-CDV5pW13.cjs} +3 -3
  298. package/{tool_call-JbjeUpRK.cjs.map → tool_call-CDV5pW13.cjs.map} +1 -1
  299. package/{tool_call-8crmZsO8.mjs → tool_call-D-LqMvpU.mjs} +3 -3
  300. package/{tool_call-8crmZsO8.mjs.map → tool_call-D-LqMvpU.mjs.map} +1 -1
  301. package/{tools-D4mdzi0a.cjs → tools-CACuuMV4.cjs} +5 -5
  302. package/{tools-D4mdzi0a.cjs.map → tools-CACuuMV4.cjs.map} +1 -1
  303. package/{tools-BC4NJqZD.mjs → tools-CvCMdAd7.mjs} +5 -5
  304. package/{tools-BC4NJqZD.mjs.map → tools-CvCMdAd7.mjs.map} +1 -1
  305. package/{toon-b-0pFKZ8.cjs → toon-B7Q9RWJF.cjs} +7 -7
  306. package/{toon-b-0pFKZ8.cjs.map → toon-B7Q9RWJF.cjs.map} +1 -1
  307. package/{toon-BA9Q7NHG.mjs → toon-CCjuuzd_.mjs} +7 -7
  308. package/{toon-BA9Q7NHG.mjs.map → toon-CCjuuzd_.mjs.map} +1 -1
  309. package/{transformers_js-p3lAkHFH.mjs → transformers_js-BR2Ov0Su.mjs} +2 -2
  310. package/{transformers_js-p3lAkHFH.mjs.map → transformers_js-BR2Ov0Su.mjs.map} +1 -1
  311. package/{transformers_js-7OzeS_Tp.cjs → transformers_js-DM01eAzh.cjs} +2 -2
  312. package/{transformers_js-7OzeS_Tp.cjs.map → transformers_js-DM01eAzh.cjs.map} +1 -1
  313. package/{turn_runner-BmVXcBZ2.mjs → turn_runner-BgPw9uqb.mjs} +4 -4
  314. package/{turn_runner-BmVXcBZ2.mjs.map → turn_runner-BgPw9uqb.mjs.map} +1 -1
  315. package/{turn_runner-DX-3s3ih.cjs → turn_runner-CP2zxSlu.cjs} +4 -4
  316. package/{turn_runner-DX-3s3ih.cjs.map → turn_runner-CP2zxSlu.cjs.map} +1 -1
  317. package/turn_runner.cjs +1 -1
  318. package/turn_runner.mjs +1 -1
  319. package/{xml-B1JIGLpU.mjs → xml-BqTTIFhv.mjs} +7 -7
  320. package/{xml-B1JIGLpU.mjs.map → xml-BqTTIFhv.mjs.map} +1 -1
  321. package/{xml-fvwTsoRv.cjs → xml-viE54OTe.cjs} +7 -7
  322. package/{xml-fvwTsoRv.cjs.map → xml-viE54OTe.cjs.map} +1 -1
  323. package/{yaml-1mP4uxdf.mjs → yaml-B1So-pUR.mjs} +7 -7
  324. package/{yaml-1mP4uxdf.mjs.map → yaml-B1So-pUR.mjs.map} +1 -1
  325. package/{yaml-DPUTumla.cjs → yaml-cGhhPyZq.cjs} +7 -7
  326. package/{yaml-DPUTumla.cjs.map → yaml-cGhhPyZq.cjs.map} +1 -1
  327. package/artifact_methods-7KatxCSd.cjs +0 -1
  328. package/artifact_methods-q52ETLwI.mjs +0 -1
package/CHANGELOG.md CHANGED
@@ -15,6 +15,54 @@ 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-09-25
19
+
20
+ ### Fixed
21
+
22
+ - **`@nhtio/adk/batteries/llm/claude_code_cli` — the dispatch no longer hangs after `result` under
23
+ an Electron host** (closes issue #42). In an Electron main process the adapter spawned the
24
+ wrapper with Electron's own binary. Measured with bare Electron: without `ELECTRON_RUN_AS_NODE`,
25
+ or with the `RunAsNode` fuse off, that binary's event loop never drained, so the wrapper never
26
+ exited and the executor, which waited for that exit, never settled. The adapter now settles on
27
+ the terminal `result` event without waiting for the wrapper to exit, and shuts the wrapper down
28
+ in the background: `SIGTERM`, a bounded wait, then `SIGKILL`, then a kill of the `claude`
29
+ process group, so a force-killed wrapper cannot orphan it. The wrapper now waits for its pending
30
+ stdout writes before `process.exit(0)` instead of relying on the loop draining. Its 5-second
31
+ backstop stays armed through that wait, and it tolerates `EPIPE`. When the host is Electron
32
+ (`process.versions.electron`), the adapter sets `ELECTRON_RUN_AS_NODE=1` on the wrapper, and the
33
+ wrapper strips it again before spawning `claude`. New options: `autoDetectElectronHost`
34
+ (default `true`) turns this off; `wrapperExecPath` runs the wrapper with a different runtime,
35
+ such as a real `node`; `wrapperEnv` adds or overrides wrapper environment variables. An Electron
36
+ build with the `RunAsNode` fuse **off** cannot act as Node at all. It still settles now, but
37
+ set `wrapperExecPath` to a Node binary for the wrapper to run properly.
38
+ - **`@nhtio/adk/batteries/llm/claude_code_cli` — assistant message and thought ids no longer
39
+ collide** (closes issue #43). The wrapper named every assistant message `"message"`, and ids
40
+ restarted on every spawn, so the second dispatch iteration of a turn hit core's `stream
41
+ "message" is already complete` guard. Ids are now namespaced per executor invocation and
42
+ numbered per message within a spawn. The wrapper also handles its `claude` stdout lines
43
+ strictly in order: before, lines that arrived in one chunk could interleave their handlers and
44
+ mis-assign ids. Trade-off: a wrapper stdout write that never completes now also holds back the
45
+ lines after it, `result` included; `streamIdleTimeoutMs` still nacks that dispatch.
46
+ - **`@nhtio/adk/batteries/llm/gemini_generate_content` and `…/bedrock_converse` — the `retry`
47
+ option is now applied** (closes issues #44 and #45). Both adapters validated `retry` but always
48
+ sent exactly one request. They now retry transport failures, per-attempt timeouts and
49
+ `retriableStatuses` responses, using the same backoff, jitter and `Retry-After` handling as the
50
+ other HTTP batteries. Vendor rejections that no retry can fix fail at once: Gemini's
51
+ `thought_signature` error, and Bedrock's `toolConfig` and message-alternation errors. The
52
+ defaults match the sibling batteries (`maxAttempts: 1`, `baseDelayMs: 500`, `maxDelayMs:
53
+ 30000`, `retriableStatuses: [429, 502, 503, 504]`, `honorRetryAfter: true`), so a caller who
54
+ doesn't set `retry` still gets a single attempt. `timeoutMs` now also covers reading the
55
+ response body, and each attempt's abort-signal link is disposed so listeners don't pile up on
56
+ the caller's signal.
57
+
58
+ ### Internal
59
+
60
+ - **CI — the Node and browser smoke checks now run on merge requests.** Both
61
+ `Core … Functionality Smoke Check` jobs were master-only and skipped on merge commits, so no
62
+ release path ever ran them (a release lands as a merge commit). They now use the same MR-gated
63
+ rules as the other gates. The browser smoke also installs the `@toon-format/toon` peer, which
64
+ its `toon_to_json` converter spec needs.
65
+
18
66
  ## 2026-09-24
19
67
 
20
68
  ### Fixed
@@ -0,0 +1 @@
1
+ import "./common-DsLvTGmm.mjs";
@@ -0,0 +1 @@
1
+ require("./common-BiRzOsxe.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.cjs");
3
- const require_ecmascript = require("../../ecmascript-BydSB03Y.cjs");
3
+ const require_ecmascript = require("../../ecmascript-BGr_0Dwn.cjs");
4
4
  exports.E_TYPESCRIPT_PEER_MISSING = require_ecmascript.E_TYPESCRIPT_PEER_MISSING;
5
5
  exports.SpooledEcmaScriptArtifact = require_ecmascript.SpooledEcmaScriptArtifact;
@@ -1,2 +1,2 @@
1
- import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-bgwVyZG1.mjs";
1
+ import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-CWLZ7bCX.mjs";
2
2
  export { E_TYPESCRIPT_PEER_MISSING, SpooledEcmaScriptArtifact };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.cjs");
3
- const require_toon = require("../../toon-b-0pFKZ8.cjs");
3
+ const require_toon = require("../../toon-B7Q9RWJF.cjs");
4
4
  exports.E_TOON_DECODE_FAILED = require_toon.E_TOON_DECODE_FAILED;
5
5
  exports.E_TOON_PEER_MISSING = require_toon.E_TOON_PEER_MISSING;
6
6
  exports.SpooledToonArtifact = require_toon.SpooledToonArtifact;
@@ -1,2 +1,2 @@
1
- import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../../toon-BA9Q7NHG.mjs";
1
+ import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../../toon-CCjuuzd_.mjs";
2
2
  export { E_TOON_DECODE_FAILED, E_TOON_PEER_MISSING, SpooledToonArtifact, jsonToToonTool, toonToJsonTool };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.cjs");
3
- const require_xml = require("../../xml-fvwTsoRv.cjs");
3
+ const require_xml = require("../../xml-viE54OTe.cjs");
4
4
  exports.E_XML_PARSER_PEER_MISSING = require_xml.E_XML_PARSER_PEER_MISSING;
5
5
  exports.E_XML_PARSE_FAILED = require_xml.E_XML_PARSE_FAILED;
6
6
  exports.SpooledXmlArtifact = require_xml.SpooledXmlArtifact;
@@ -1,2 +1,2 @@
1
- import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../../xml-B1JIGLpU.mjs";
1
+ import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../../xml-BqTTIFhv.mjs";
2
2
  export { E_XML_PARSER_PEER_MISSING, E_XML_PARSE_FAILED, SpooledXmlArtifact, jsonToXmlTool, xmlToJsonTool };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.cjs");
3
- const require_yaml = require("../../yaml-DPUTumla.cjs");
3
+ const require_yaml = require("../../yaml-cGhhPyZq.cjs");
4
4
  exports.E_YAML_PARSE_ERROR = require_yaml.E_YAML_PARSE_ERROR;
5
5
  exports.E_YAML_PEER_MISSING = require_yaml.E_YAML_PEER_MISSING;
6
6
  exports.SpooledYamlArtifact = require_yaml.SpooledYamlArtifact;
@@ -1,2 +1,2 @@
1
- import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../../yaml-1mP4uxdf.mjs";
1
+ import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../../yaml-B1So-pUR.mjs";
2
2
  export { E_YAML_PARSE_ERROR, E_YAML_PEER_MISSING, SpooledYamlArtifact, jsonToYamlTool, yamlToJsonTool };
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../chunk-Cek0wNdY.cjs");
3
- const require_toon = require("../toon-b-0pFKZ8.cjs");
4
- const require_yaml = require("../yaml-DPUTumla.cjs");
5
- const require_xml = require("../xml-fvwTsoRv.cjs");
6
- const require_ecmascript = require("../ecmascript-BydSB03Y.cjs");
3
+ const require_toon = require("../toon-B7Q9RWJF.cjs");
4
+ const require_yaml = require("../yaml-cGhhPyZq.cjs");
5
+ const require_xml = require("../xml-viE54OTe.cjs");
6
+ const require_ecmascript = require("../ecmascript-BGr_0Dwn.cjs");
7
7
  //#region src/batteries/artifacts/index.ts
8
8
  /**
9
9
  * Registers the four artifact classes with the '@nhtio/encoder' decoder.
@@ -1,7 +1,7 @@
1
- import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../toon-BA9Q7NHG.mjs";
2
- import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../yaml-1mP4uxdf.mjs";
3
- import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../xml-B1JIGLpU.mjs";
4
- import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-bgwVyZG1.mjs";
1
+ import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../toon-CCjuuzd_.mjs";
2
+ import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../yaml-B1So-pUR.mjs";
3
+ import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../xml-BqTTIFhv.mjs";
4
+ import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-CWLZ7bCX.mjs";
5
5
  //#region src/batteries/artifacts/index.ts
6
6
  /**
7
7
  * Registers the four artifact classes with the '@nhtio/encoder' decoder.
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.cjs");
3
- const require_spooled_artifact = require("../../spooled_artifact-BLgbGT8b.cjs");
4
- require("../../common-7gCR3zQu.cjs");
5
- const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-8zdejfcJ.cjs");
3
+ const require_spooled_artifact = require("../../spooled_artifact-CFjf6ULg.cjs");
4
+ require("../../common-BiRzOsxe.cjs");
5
+ const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-PWppwnPQ.cjs");
6
6
  const require_arg_specs = require("../../arg_specs-iYmIM3wI.cjs");
7
7
  let _nhtio_validation = require("@nhtio/validation");
8
8
  //#region src/batteries/dev_tools/forge.ts
@@ -1,6 +1,6 @@
1
- import { f as Tool } from "../../spooled_artifact-BkOe4-j-.mjs";
2
- import "../../common-B5maOoF_.mjs";
3
- import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-Dnl-lCGv.mjs";
1
+ import { f as Tool } from "../../spooled_artifact-B710Rb0d.mjs";
2
+ import "../../common-DsLvTGmm.mjs";
3
+ import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-1C4mmi73.mjs";
4
4
  import { t as DEV_ARG_SPECS } from "../../arg_specs-H1qM_1QI.mjs";
5
5
  import { validator } from "@nhtio/validation";
6
6
  //#region src/batteries/dev_tools/forge.ts
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../chunk-Cek0wNdY.cjs");
3
3
  const require_exceptions = require("../exceptions-DrHnAGQz.cjs");
4
+ require("../factories.cjs");
4
5
  const require_guards = require("../guards-5-XmJgD2.cjs");
5
6
  const require_tokenizable = require("../tokenizable-DDIdXbJN.cjs");
6
- require("../factories.cjs");
7
- require("../guards.cjs");
8
7
  require("../exceptions.cjs");
8
+ require("../guards.cjs");
9
9
  const require_types = require("../types-DWOiL208.cjs");
10
- const require_tools = require("../tools-D4mdzi0a.cjs");
10
+ const require_tools = require("../tools-CACuuMV4.cjs");
11
11
  const require_fs_node = require("../fs_node-XvgZtNJV.cjs");
12
12
  const require_patch = require("../patch-BXX9Q0FM.cjs");
13
13
  const require_arg_specs = require("../arg_specs-iYmIM3wI.cjs");
@@ -1,11 +1,11 @@
1
1
  import { t as createException } from "../exceptions-DRYLe-J4.mjs";
2
+ import "../factories.mjs";
2
3
  import { n as isInstanceOf, r as isObject, t as isError } from "../guards-BEpY7lBI.mjs";
3
4
  import { k as E_LLM_EXECUTION_GATE_NOT_SUPPORTED } from "../tokenizable-xPXj1AQX.mjs";
4
- import "../factories.mjs";
5
- import "../guards.mjs";
6
5
  import "../exceptions.mjs";
6
+ import "../guards.mjs";
7
7
  import { h as createExistingSymlinkGuard, m as classifySandboxPathRejection, v as normalizeSandboxPath } from "../types-D6X_aUIb.mjs";
8
- import { i as narratingPath, p as resolveMime } from "../tools-BC4NJqZD.mjs";
8
+ import { i as narratingPath, p as resolveMime } from "../tools-CvCMdAd7.mjs";
9
9
  import { r as createFsNode } from "../fs_node-Cg__jYMW.mjs";
10
10
  import { a as parseStructuredPatch, c as runOnion, i as normalizeWorkspacePath, n as applyUpdateHunks, o as decodeText, r as isStructuredPatch, s as isTextual, t as applyOperations } from "../patch-BbC0U8aR.mjs";
11
11
  import { t as DEV_ARG_SPECS } from "../arg_specs-H1qM_1QI.mjs";
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../chunk-Cek0wNdY.cjs");
3
3
  const require_tokenizable = require("../tokenizable-DDIdXbJN.cjs");
4
- const require_spooled_artifact = require("../spooled_artifact-BLgbGT8b.cjs");
5
- const require_retrievable = require("../retrievable-BBwiACtw.cjs");
6
- const require_thought = require("../thought-COeZTQ-B.cjs");
7
- const require_tool_call = require("../tool_call-JbjeUpRK.cjs");
8
- const require_common = require("../common-7gCR3zQu.cjs");
9
- const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-8zdejfcJ.cjs");
4
+ const require_spooled_artifact = require("../spooled_artifact-CFjf6ULg.cjs");
5
+ const require_retrievable = require("../retrievable-ReauMJxJ.cjs");
6
+ const require_thought = require("../thought-D5fJsxBW.cjs");
7
+ const require_tool_call = require("../tool_call-CDV5pW13.cjs");
8
+ const require_common = require("../common-BiRzOsxe.cjs");
9
+ const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-PWppwnPQ.cjs");
10
10
  require("../index.cjs");
11
11
  const require_batteries_storage_in_memory = require("./storage/in_memory.cjs");
12
12
  let _nhtio_encoder = require("@nhtio/encoder");
@@ -1,10 +1,10 @@
1
1
  import { r as Tokenizable } from "../tokenizable-xPXj1AQX.mjs";
2
- import { c as resolveMediaReader, d as ArtifactTool, f as Tool, g as ToolRegistry, l as resolveSpoolReader, m as Registry, o as registerMediaReaderResolver, s as registerSpoolReaderResolver, t as SpooledArtifact } from "../spooled_artifact-BkOe4-j-.mjs";
3
- import { t as Retrievable } from "../retrievable-CrGKx4sc.mjs";
4
- import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-BrQt6HAb.mjs";
5
- import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-8crmZsO8.mjs";
6
- import { a as inMemoryMediaReader, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-B5maOoF_.mjs";
7
- import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-Dnl-lCGv.mjs";
2
+ import { c as resolveMediaReader, d as ArtifactTool, f as Tool, g as ToolRegistry, l as resolveSpoolReader, m as Registry, o as registerMediaReaderResolver, s as registerSpoolReaderResolver, t as SpooledArtifact } from "../spooled_artifact-B710Rb0d.mjs";
3
+ import { t as Retrievable } from "../retrievable-mFgC1aty.mjs";
4
+ import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-BKXwUZoq.mjs";
5
+ import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-D-LqMvpU.mjs";
6
+ import { a as inMemoryMediaReader, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-DsLvTGmm.mjs";
7
+ import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-1C4mmi73.mjs";
8
8
  import "../index.mjs";
9
9
  import { InMemorySpoolReader, SPOOL_READER_TAG_IN_MEMORY } from "./storage/in_memory.mjs";
10
10
  import { registerClass } from "@nhtio/encoder";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.cjs");
3
3
  const require_guards = require("../../../guards-5-XmJgD2.cjs");
4
- const require_tool_call = require("../../../tool_call-JbjeUpRK.cjs");
4
+ const require_tool_call = require("../../../tool_call-CDV5pW13.cjs");
5
5
  require("../../../guards.cjs");
6
6
  const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
7
7
  const require_batteries_generation__shared = require("../_shared.cjs");
@@ -1,5 +1,5 @@
1
1
  import { t as isError } from "../../../guards-BEpY7lBI.mjs";
2
- import { o as decodeBase64, s as encodeBase64 } from "../../../tool_call-8crmZsO8.mjs";
2
+ import { o as decodeBase64, s as encodeBase64 } from "../../../tool_call-D-LqMvpU.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { computeBackoff, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
5
5
  import { toBytes } from "../_shared.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.cjs");
3
3
  const require_guards = require("../../../guards-5-XmJgD2.cjs");
4
- const require_tool_call = require("../../../tool_call-JbjeUpRK.cjs");
4
+ const require_tool_call = require("../../../tool_call-CDV5pW13.cjs");
5
5
  require("../../../guards.cjs");
6
6
  const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.cjs");
7
7
  const require_batteries_generation__shared = require("../_shared.cjs");
@@ -1,5 +1,5 @@
1
1
  import { t as isError } from "../../../guards-BEpY7lBI.mjs";
2
- import { o as decodeBase64, s as encodeBase64 } from "../../../tool_call-8crmZsO8.mjs";
2
+ import { o as decodeBase64, s as encodeBase64 } from "../../../tool_call-D-LqMvpU.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
5
5
  import { toBytes } from "../_shared.mjs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.cjs");
3
3
  const require_guards = require("../../../guards-5-XmJgD2.cjs");
4
- const require_tool_call = require("../../../tool_call-JbjeUpRK.cjs");
4
+ const require_tool_call = require("../../../tool_call-CDV5pW13.cjs");
5
5
  require("../../../guards.cjs");
6
6
  const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
7
7
  const require_batteries_generation__shared = require("../_shared.cjs");
@@ -1,5 +1,5 @@
1
1
  import { t as isError } from "../../../guards-BEpY7lBI.mjs";
2
- import { o as decodeBase64 } from "../../../tool_call-8crmZsO8.mjs";
2
+ import { o as decodeBase64 } from "../../../tool_call-D-LqMvpU.mjs";
3
3
  import "../../../guards.mjs";
4
4
  import { computeBackoff, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
5
5
  import { toBytes } from "../_shared.mjs";
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.cjs");
3
3
  const require_guards = require("../../guards-5-XmJgD2.cjs");
4
4
  require("../../guards.cjs");
5
- const require_isolation = require("../../isolation-B01xCIoV.cjs");
5
+ const require_isolation = require("../../isolation-B2FgKbap.cjs");
6
6
  let _nhtio_validation = require("@nhtio/validation");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/batteries/isolation/child_process/transport.ts
@@ -1,6 +1,6 @@
1
1
  import { n as isInstanceOf, t as isError } from "../../guards-BEpY7lBI.mjs";
2
2
  import "../../guards.mjs";
3
- import { C as E_INVALID_ISOLATION_OPTIONS, k as E_ISOLATION_UNSUPPORTED_ENV, s as createIsolatedService } from "../../isolation-CO0NiK8R.mjs";
3
+ import { C as E_INVALID_ISOLATION_OPTIONS, k as E_ISOLATION_UNSUPPORTED_ENV, s as createIsolatedService } from "../../isolation-BRGpiU-K.mjs";
4
4
  import { validator } from "@nhtio/validation";
5
5
  import { fork } from "node:child_process";
6
6
  //#region src/batteries/isolation/child_process/transport.ts
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../chunk-Cek0wNdY.cjs");
3
- const require_isolation = require("../isolation-B01xCIoV.cjs");
3
+ const require_isolation = require("../isolation-B2FgKbap.cjs");
4
4
  exports.DEFAULT_CRASH_POLICY_MAX_CRASHES = require_isolation.DEFAULT_CRASH_POLICY_MAX_CRASHES;
5
5
  exports.DEFAULT_CRASH_POLICY_WINDOW_MS = require_isolation.DEFAULT_CRASH_POLICY_WINDOW_MS;
6
6
  exports.E_INVALID_ISOLATION_OPTIONS = require_isolation.E_INVALID_ISOLATION_OPTIONS;
@@ -1,2 +1,2 @@
1
- import { A as event, C as E_INVALID_ISOLATION_OPTIONS, D as E_ISOLATION_READY_TIMEOUT, E as E_ISOLATION_ENCODER_REQUIRED, M as resolveIsolatedServiceSpec, N as stream, O as E_ISOLATION_UNENCODABLE, S as defineIsolatedServiceValidated, T as E_ISOLATED_TERMINATED, _ as transfer, a as createWorkerTransport, b as nextCorrelationId, c as serveIsolated, d as hasIsolationHook, f as DEFAULT_CRASH_POLICY_MAX_CRASHES, g as registerEncodableClasses, h as isEncoderAvailable, i as isolateFunction, j as method, k as E_ISOLATION_UNSUPPORTED_ENV, l as serveIsolatedOverPort, m as createCrashPolicy, n as E_ISOLATE_FUNCTION_REQUIRES_SOURCE_REHYDRATION, o as spawnIsolated, p as DEFAULT_CRASH_POLICY_WINDOW_MS, r as E_ISOLATE_FUNCTION_UNSERIALIZABLE, s as createIsolatedService, t as E_ISOLATE_FUNCTION_ARG_UNSUPPORTED, u as emitIsolationReport, v as GuestEndpoint, w as E_ISOLATED_CRASHED, x as wireErrorToError, y as HostEndpoint } from "../isolation-CO0NiK8R.mjs";
1
+ import { A as event, C as E_INVALID_ISOLATION_OPTIONS, D as E_ISOLATION_READY_TIMEOUT, E as E_ISOLATION_ENCODER_REQUIRED, M as resolveIsolatedServiceSpec, N as stream, O as E_ISOLATION_UNENCODABLE, S as defineIsolatedServiceValidated, T as E_ISOLATED_TERMINATED, _ as transfer, a as createWorkerTransport, b as nextCorrelationId, c as serveIsolated, d as hasIsolationHook, f as DEFAULT_CRASH_POLICY_MAX_CRASHES, g as registerEncodableClasses, h as isEncoderAvailable, i as isolateFunction, j as method, k as E_ISOLATION_UNSUPPORTED_ENV, l as serveIsolatedOverPort, m as createCrashPolicy, n as E_ISOLATE_FUNCTION_REQUIRES_SOURCE_REHYDRATION, o as spawnIsolated, p as DEFAULT_CRASH_POLICY_WINDOW_MS, r as E_ISOLATE_FUNCTION_UNSERIALIZABLE, s as createIsolatedService, t as E_ISOLATE_FUNCTION_ARG_UNSUPPORTED, u as emitIsolationReport, v as GuestEndpoint, w as E_ISOLATED_CRASHED, x as wireErrorToError, y as HostEndpoint } from "../isolation-BRGpiU-K.mjs";
2
2
  export { DEFAULT_CRASH_POLICY_MAX_CRASHES, DEFAULT_CRASH_POLICY_WINDOW_MS, E_INVALID_ISOLATION_OPTIONS, E_ISOLATED_CRASHED, E_ISOLATED_TERMINATED, E_ISOLATE_FUNCTION_ARG_UNSUPPORTED, E_ISOLATE_FUNCTION_REQUIRES_SOURCE_REHYDRATION, E_ISOLATE_FUNCTION_UNSERIALIZABLE, E_ISOLATION_ENCODER_REQUIRED, E_ISOLATION_READY_TIMEOUT, E_ISOLATION_UNENCODABLE, E_ISOLATION_UNSUPPORTED_ENV, GuestEndpoint, HostEndpoint, createCrashPolicy, createIsolatedService, createWorkerTransport, defineIsolatedServiceValidated as defineIsolatedService, emitIsolationReport, event, hasIsolationHook, isEncoderAvailable, isolateFunction, method, nextCorrelationId, registerEncodableClasses, resolveIsolatedServiceSpec, serveIsolated, serveIsolatedOverPort, spawnIsolated, stream, transfer, wireErrorToError };
@@ -2,15 +2,15 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../../../chunk-Cek0wNdY.cjs");
3
3
  const require_guards = require("../../../guards-5-XmJgD2.cjs");
4
4
  const require_tokenizable = require("../../../tokenizable-DDIdXbJN.cjs");
5
- const require_spooled_artifact = require("../../../spooled_artifact-BLgbGT8b.cjs");
6
- const require_thought = require("../../../thought-COeZTQ-B.cjs");
7
- const require_tool_call = require("../../../tool_call-JbjeUpRK.cjs");
8
- require("../../../common-7gCR3zQu.cjs");
5
+ const require_spooled_artifact = require("../../../spooled_artifact-CFjf6ULg.cjs");
6
+ const require_thought = require("../../../thought-D5fJsxBW.cjs");
7
+ const require_tool_call = require("../../../tool_call-CDV5pW13.cjs");
8
+ require("../../../common-BiRzOsxe.cjs");
9
9
  require("../../../guards.cjs");
10
10
  const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
11
11
  const require_tool_parsers = require("../../../tool_parsers-8_qO0a_F.cjs");
12
12
  const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
13
- const require_helpers = require("../../../helpers-Dcp4CrOz.cjs");
13
+ const require_helpers = require("../../../helpers-BPi_iwxv.cjs");
14
14
  const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
15
15
  const require_batteries_llm_anthropic_messages_validation = require("./validation.cjs");
16
16
  const require_error_translation = require("../../../error_translation-D8Ea1_th.cjs");
@@ -1,14 +1,14 @@
1
1
  import { n as isInstanceOf, r as isObject, t as isError } from "../../../guards-BEpY7lBI.mjs";
2
2
  import { r as Tokenizable } from "../../../tokenizable-xPXj1AQX.mjs";
3
- import { d as ArtifactTool, h as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-BkOe4-j-.mjs";
4
- import { n as Message, t as Thought } from "../../../thought-BrQt6HAb.mjs";
5
- import { n as Media, t as ToolCall } from "../../../tool_call-8crmZsO8.mjs";
6
- import "../../../common-B5maOoF_.mjs";
3
+ import { d as ArtifactTool, h as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-B710Rb0d.mjs";
4
+ import { n as Message, t as Thought } from "../../../thought-BKXwUZoq.mjs";
5
+ import { n as Media, t as ToolCall } from "../../../tool_call-D-LqMvpU.mjs";
6
+ import "../../../common-DsLvTGmm.mjs";
7
7
  import "../../../guards.mjs";
8
8
  import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
9
9
  import { O as resolveToolCallParser } from "../../../tool_parsers-DgZhgxV8.mjs";
10
10
  import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
11
- import { C as looksLikeSpooledArtifact, E as normalizeToolName, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools } from "../../../helpers-C1T0DV8Q.mjs";
11
+ import { C as looksLikeSpooledArtifact, E as normalizeToolName, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools } from "../../../helpers-D47G8WQb.mjs";
12
12
  import { E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW, E_ANTHROPIC_MESSAGES_HTTP_ERROR, E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS, E_ANTHROPIC_MESSAGES_REQUEST_TIMEOUT, E_ANTHROPIC_MESSAGES_STREAM_ERROR, E_ANTHROPIC_MESSAGES_STREAM_STALLED, E_INVALID_ANTHROPIC_MESSAGES_OPTIONS } from "./exceptions.mjs";
13
13
  import { validateOptions } from "./validation.mjs";
14
14
  import { n as translateAnthropicError, r as APIError } from "../../../error_translation-Bkz-bl27.mjs";
@@ -4,7 +4,7 @@ const require_guards = require("../../../guards-5-XmJgD2.cjs");
4
4
  const require_guards$1 = require("../../../guards.cjs");
5
5
  require("../../../index.cjs");
6
6
  const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
7
- const require_helpers = require("../../../helpers-Dcp4CrOz.cjs");
7
+ const require_helpers = require("../../../helpers-BPi_iwxv.cjs");
8
8
  const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
9
9
  const require_batteries_llm_anthropic_messages_validation = require("./validation.cjs");
10
10
  const require_error_translation = require("../../../error_translation-D8Ea1_th.cjs");
@@ -2,7 +2,7 @@ import { n as isInstanceOf, r as isObject } from "../../../guards-BEpY7lBI.mjs";
2
2
  import { isDispatchContext } from "../../../guards.mjs";
3
3
  import "../../../index.mjs";
4
4
  import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
5
- import { _ as defaultRenderUntrustedContent, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools } from "../../../helpers-C1T0DV8Q.mjs";
5
+ import { _ as defaultRenderUntrustedContent, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools } from "../../../helpers-D47G8WQb.mjs";
6
6
  import { E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW, E_ANTHROPIC_MESSAGES_HTTP_ERROR, E_ANTHROPIC_MESSAGES_REQUEST_TIMEOUT, E_INVALID_ANTHROPIC_MESSAGES_OPTIONS } from "./exceptions.mjs";
7
7
  import { validateOptions } from "./validation.mjs";
8
8
  import { n as translateAnthropicError, r as APIError } from "../../../error_translation-Bkz-bl27.mjs";
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.cjs");
3
- const require_tool_call = require("../../../tool_call-JbjeUpRK.cjs");
4
- require("../../../common-7gCR3zQu.cjs");
5
- const require_helpers = require("../../../helpers-Dcp4CrOz.cjs");
3
+ const require_tool_call = require("../../../tool_call-CDV5pW13.cjs");
4
+ require("../../../common-BiRzOsxe.cjs");
5
+ const require_helpers = require("../../../helpers-BPi_iwxv.cjs");
6
6
  const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
7
7
  //#region src/batteries/llm/anthropic_messages/helpers.ts
8
8
  /**
@@ -1,6 +1,6 @@
1
- import { n as Media } from "../../../tool_call-8crmZsO8.mjs";
2
- import "../../../common-B5maOoF_.mjs";
3
- import { A as renderMemories, B as retrievableToAttrs, C as looksLikeSpooledArtifact, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, H as sanitizeFilenameForDescription, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, S as floorTrustTier, T as neutraliseDeveloperRulesTag, U as sanitizeMimeType, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, b as escapeXmlAttribute, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, j as renderRetrievableHandleBody, k as renderFirstPartyRetrievables, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, t as canonicalFingerprint, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, w as memoryToAttrs, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../../helpers-C1T0DV8Q.mjs";
1
+ import { n as Media } from "../../../tool_call-D-LqMvpU.mjs";
2
+ import "../../../common-DsLvTGmm.mjs";
3
+ import { A as renderMemories, B as retrievableToAttrs, C as looksLikeSpooledArtifact, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, H as sanitizeFilenameForDescription, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, S as floorTrustTier, T as neutraliseDeveloperRulesTag, U as sanitizeMimeType, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, b as escapeXmlAttribute, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, j as renderRetrievableHandleBody, k as renderFirstPartyRetrievables, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, t as canonicalFingerprint, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, w as memoryToAttrs, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../../helpers-D47G8WQb.mjs";
4
4
  import { E_ANTHROPIC_MESSAGES_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
5
5
  //#region src/batteries/llm/anthropic_messages/helpers.ts
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../chunk-Cek0wNdY.cjs");
3
3
  const require_tokenizable = require("../../../tokenizable-DDIdXbJN.cjs");
4
- const require_common = require("../../../common-7gCR3zQu.cjs");
4
+ const require_common = require("../../../common-BiRzOsxe.cjs");
5
5
  const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
6
6
  let _nhtio_validation = require("@nhtio/validation");
7
7
  //#region src/batteries/llm/anthropic_messages/validation.ts
@@ -1,5 +1,5 @@
1
1
  import { n as TokenEncoding } from "../../../tokenizable-xPXj1AQX.mjs";
2
- import { o as byteStoreSchema } from "../../../common-B5maOoF_.mjs";
2
+ import { o as byteStoreSchema } from "../../../common-DsLvTGmm.mjs";
3
3
  import { E_INVALID_ANTHROPIC_MESSAGES_OPTIONS } from "./exceptions.mjs";
4
4
  import { validator } from "@nhtio/validation";
5
5
  //#region src/batteries/llm/anthropic_messages/validation.ts
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.cjs");
3
- const require_helpers = require("../../helpers-Dcp4CrOz.cjs");
4
- const require_chat_common = require("../../chat_common-B7fvGTKv.cjs");
3
+ const require_helpers = require("../../helpers-BPi_iwxv.cjs");
4
+ const require_chat_common = require("../../chat_common-4huaTp6d.cjs");
5
5
  const require_batteries_llm_anthropic_messages_exceptions = require("./anthropic_messages/exceptions.cjs");
6
6
  const require_batteries_llm_anthropic_messages_validation = require("./anthropic_messages/validation.cjs");
7
7
  const require_error_translation = require("../../error_translation-D8Ea1_th.cjs");
@@ -1,5 +1,5 @@
1
- import { A as renderMemories, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, k as renderFirstPartyRetrievables, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../helpers-C1T0DV8Q.mjs";
2
- import { t as deCollideToolCallIds } from "../../chat_common-CeoHwSsz.mjs";
1
+ import { A as renderMemories, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, k as renderFirstPartyRetrievables, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../helpers-D47G8WQb.mjs";
2
+ import { t as deCollideToolCallIds } from "../../chat_common-D_XGNjcK.mjs";
3
3
  import { E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW, E_ANTHROPIC_MESSAGES_HTTP_ERROR, E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS, E_ANTHROPIC_MESSAGES_REQUEST_TIMEOUT, E_ANTHROPIC_MESSAGES_STREAM_ERROR, E_ANTHROPIC_MESSAGES_STREAM_STALLED, E_ANTHROPIC_MESSAGES_UNSUPPORTED_MEDIA_MODALITY, E_INVALID_ANTHROPIC_MESSAGES_OPTIONS } from "./anthropic_messages/exceptions.mjs";
4
4
  import { anthropicMessagesOptionsSchema, validateOptions } from "./anthropic_messages/validation.mjs";
5
5
  import { n as translateAnthropicError, t as CONTEXT_OVERFLOW_PHRASE } from "../../error_translation-Bkz-bl27.mjs";