@nhtio/adk 1.20260921.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 (658) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/adk-mcp.cjs +2 -2
  3. package/{arg_specs-iYmIM3wI.js → arg_specs-iYmIM3wI.cjs} +1 -1
  4. package/arg_specs-iYmIM3wI.cjs.map +1 -0
  5. package/artifact_methods-9BemAvd4.mjs +1 -0
  6. package/artifact_methods-FKgk4q_1.cjs +1 -0
  7. package/batteries/artifacts/ecmascript.cjs +2 -2
  8. package/batteries/artifacts/ecmascript.mjs +1 -1
  9. package/batteries/artifacts/toon.cjs +2 -2
  10. package/batteries/artifacts/toon.mjs +1 -1
  11. package/batteries/artifacts/xml.cjs +2 -2
  12. package/batteries/artifacts/xml.mjs +1 -1
  13. package/batteries/artifacts/yaml.cjs +2 -2
  14. package/batteries/artifacts/yaml.mjs +1 -1
  15. package/batteries/artifacts.cjs +5 -5
  16. package/batteries/artifacts.mjs +4 -4
  17. package/batteries/context/compact/contracts.cjs +1 -1
  18. package/batteries/context/compact/summarizer.cjs +1 -1
  19. package/batteries/context/compact.cjs +1 -1
  20. package/batteries/context/exceptions.cjs +2 -2
  21. package/batteries/context/thrift/contracts.cjs +1 -1
  22. package/batteries/context/thrift/relevance.cjs +1 -1
  23. package/batteries/context/thrift/subtractive_pass.cjs +1 -1
  24. package/batteries/context/thrift.cjs +1 -1
  25. package/batteries/context.cjs +1 -1
  26. package/batteries/dev-tools/conformance.cjs +2 -2
  27. package/batteries/dev-tools/forge.cjs +5 -5
  28. package/batteries/dev-tools/forge.mjs +3 -3
  29. package/batteries/dev-tools.cjs +9 -9
  30. package/batteries/dev-tools.mjs +3 -3
  31. package/batteries/embeddings/ollama/adapter.cjs +2 -2
  32. package/batteries/embeddings/ollama/exceptions.cjs +2 -2
  33. package/batteries/embeddings/ollama/types.cjs +1 -1
  34. package/batteries/embeddings/ollama/validation.cjs +1 -1
  35. package/batteries/embeddings/ollama.cjs +1 -1
  36. package/batteries/embeddings/openai/adapter.cjs +2 -2
  37. package/batteries/embeddings/openai/exceptions.cjs +2 -2
  38. package/batteries/embeddings/openai/helpers.cjs +1 -1
  39. package/batteries/embeddings/openai/types.cjs +1 -1
  40. package/batteries/embeddings/openai/validation.cjs +1 -1
  41. package/batteries/embeddings/openai.cjs +1 -1
  42. package/batteries/embeddings/transformers_js/adapter.cjs +3 -3
  43. package/batteries/embeddings/transformers_js/exceptions.cjs +2 -2
  44. package/batteries/embeddings/transformers_js/pooling.cjs +1 -1
  45. package/batteries/embeddings/transformers_js/types.cjs +1 -1
  46. package/batteries/embeddings/transformers_js/validation.cjs +2 -2
  47. package/batteries/embeddings/transformers_js.cjs +1 -1
  48. package/batteries/embeddings/webllm/adapter.cjs +2 -2
  49. package/batteries/embeddings/webllm/exceptions.cjs +2 -2
  50. package/batteries/embeddings/webllm/types.cjs +1 -1
  51. package/batteries/embeddings/webllm/validation.cjs +1 -1
  52. package/batteries/embeddings/webllm.cjs +1 -1
  53. package/batteries/embeddings.cjs +1 -1
  54. package/batteries/encoding.cjs +8 -8
  55. package/batteries/encoding.mjs +7 -7
  56. package/batteries/generation/_shared.cjs +2 -2
  57. package/batteries/generation/gemini/adapter.cjs +3 -3
  58. package/batteries/generation/gemini/adapter.mjs +1 -1
  59. package/batteries/generation/gemini/exceptions.cjs +2 -2
  60. package/batteries/generation/gemini/types.cjs +1 -1
  61. package/batteries/generation/gemini/validation.cjs +1 -1
  62. package/batteries/generation/gemini.cjs +1 -1
  63. package/batteries/generation/local_diffusion/adapter.cjs +5 -5
  64. package/batteries/generation/local_diffusion/adapter.mjs +2 -2
  65. package/batteries/generation/local_diffusion/exceptions.cjs +2 -2
  66. package/batteries/generation/local_diffusion/protocol.cjs +2 -2
  67. package/batteries/generation/local_diffusion/types.cjs +1 -1
  68. package/batteries/generation/local_diffusion/validation.cjs +1 -1
  69. package/batteries/generation/local_diffusion.cjs +1 -1
  70. package/batteries/generation/openai/adapter.cjs +3 -3
  71. package/batteries/generation/openai/adapter.mjs +1 -1
  72. package/batteries/generation/openai/exceptions.cjs +2 -2
  73. package/batteries/generation/openai/types.cjs +1 -1
  74. package/batteries/generation/openai/validation.cjs +1 -1
  75. package/batteries/generation/openai.cjs +1 -1
  76. package/batteries/generation/transformers_js/adapter.cjs +3 -3
  77. package/batteries/generation/transformers_js/exceptions.cjs +2 -2
  78. package/batteries/generation/transformers_js/helpers.cjs +1 -1
  79. package/batteries/generation/transformers_js/types.cjs +1 -1
  80. package/batteries/generation/transformers_js/validation.cjs +2 -2
  81. package/batteries/generation/transformers_js.cjs +1 -1
  82. package/batteries/generation.cjs +1 -1
  83. package/batteries/isolation/child_process.cjs +3 -3
  84. package/batteries/isolation/child_process.mjs +1 -1
  85. package/batteries/isolation.cjs +2 -2
  86. package/batteries/isolation.mjs +1 -1
  87. package/batteries/llm/anthropic_messages/adapter.cjs +10 -10
  88. package/batteries/llm/anthropic_messages/adapter.mjs +6 -6
  89. package/batteries/llm/anthropic_messages/count_tokens.cjs +4 -4
  90. package/batteries/llm/anthropic_messages/count_tokens.mjs +1 -1
  91. package/batteries/llm/anthropic_messages/error_translation.cjs +2 -2
  92. package/batteries/llm/anthropic_messages/exceptions.cjs +2 -2
  93. package/batteries/llm/anthropic_messages/helpers.cjs +4 -4
  94. package/batteries/llm/anthropic_messages/helpers.mjs +3 -3
  95. package/batteries/llm/anthropic_messages/types.cjs +1 -1
  96. package/batteries/llm/anthropic_messages/validation.cjs +3 -3
  97. package/batteries/llm/anthropic_messages/validation.mjs +2 -2
  98. package/batteries/llm/anthropic_messages.cjs +4 -4
  99. package/batteries/llm/anthropic_messages.mjs +2 -2
  100. package/batteries/llm/bedrock_converse/adapter.cjs +165 -24
  101. package/batteries/llm/bedrock_converse/adapter.cjs.map +1 -1
  102. package/batteries/llm/bedrock_converse/adapter.mjs +162 -21
  103. package/batteries/llm/bedrock_converse/adapter.mjs.map +1 -1
  104. package/batteries/llm/bedrock_converse/exceptions.cjs +2 -2
  105. package/batteries/llm/bedrock_converse/helpers.cjs +3 -3
  106. package/batteries/llm/bedrock_converse/helpers.mjs +1 -1
  107. package/batteries/llm/bedrock_converse/types.cjs +1 -1
  108. package/batteries/llm/bedrock_converse/validation.cjs +3 -3
  109. package/batteries/llm/bedrock_converse/validation.mjs +2 -2
  110. package/batteries/llm/bedrock_converse.cjs +3 -3
  111. package/batteries/llm/bedrock_converse.mjs +2 -2
  112. package/batteries/llm/chat_common/exceptions.cjs +2 -2
  113. package/batteries/llm/claude_code_cli/adapter.cjs +349 -49
  114. package/batteries/llm/claude_code_cli/adapter.cjs.map +1 -1
  115. package/batteries/llm/claude_code_cli/adapter.d.ts +125 -0
  116. package/batteries/llm/claude_code_cli/adapter.mjs +347 -49
  117. package/batteries/llm/claude_code_cli/adapter.mjs.map +1 -1
  118. package/batteries/llm/claude_code_cli/exceptions.cjs +13 -2
  119. package/batteries/llm/claude_code_cli/exceptions.cjs.map +1 -1
  120. package/batteries/llm/claude_code_cli/exceptions.d.ts +12 -0
  121. package/batteries/llm/claude_code_cli/exceptions.mjs +11 -1
  122. package/batteries/llm/claude_code_cli/exceptions.mjs.map +1 -1
  123. package/batteries/llm/claude_code_cli/helpers.cjs +4 -4
  124. package/batteries/llm/claude_code_cli/helpers.mjs +3 -3
  125. package/batteries/llm/claude_code_cli/index.d.ts +3 -2
  126. package/batteries/llm/claude_code_cli/line_queue.d.ts +39 -0
  127. package/batteries/llm/claude_code_cli/message_id_state.d.ts +48 -0
  128. package/batteries/llm/claude_code_cli/types.cjs +1 -1
  129. package/batteries/llm/claude_code_cli/types.d.ts +112 -2
  130. package/batteries/llm/claude_code_cli/validation.cjs +7 -3
  131. package/batteries/llm/claude_code_cli/validation.cjs.map +1 -1
  132. package/batteries/llm/claude_code_cli/validation.mjs +6 -2
  133. package/batteries/llm/claude_code_cli/validation.mjs.map +1 -1
  134. package/batteries/llm/claude_code_cli/wire.cjs +1 -1
  135. package/batteries/llm/claude_code_cli/wire.cjs.map +1 -1
  136. package/batteries/llm/claude_code_cli/wire.d.ts +45 -1
  137. package/batteries/llm/claude_code_cli/wire.mjs.map +1 -1
  138. package/batteries/llm/claude_code_cli/wrapper.d.ts +5 -4
  139. package/batteries/llm/claude_code_cli.cjs +5 -2
  140. package/batteries/llm/claude_code_cli.mjs +4 -3
  141. package/batteries/llm/gemini_generate_content/adapter.cjs +163 -22
  142. package/batteries/llm/gemini_generate_content/adapter.cjs.map +1 -1
  143. package/batteries/llm/gemini_generate_content/adapter.mjs +160 -19
  144. package/batteries/llm/gemini_generate_content/adapter.mjs.map +1 -1
  145. package/batteries/llm/gemini_generate_content/exceptions.cjs +2 -2
  146. package/batteries/llm/gemini_generate_content/helpers.cjs +3 -3
  147. package/batteries/llm/gemini_generate_content/helpers.mjs +1 -1
  148. package/batteries/llm/gemini_generate_content/types.cjs +1 -1
  149. package/batteries/llm/gemini_generate_content/validation.cjs +3 -3
  150. package/batteries/llm/gemini_generate_content/validation.mjs +2 -2
  151. package/batteries/llm/gemini_generate_content.cjs +2 -2
  152. package/batteries/llm/gemini_generate_content.mjs +1 -1
  153. package/batteries/llm/index.d.ts +1 -1
  154. package/batteries/llm/litert_lm/adapter.cjs +11 -11
  155. package/batteries/llm/litert_lm/adapter.mjs +6 -6
  156. package/batteries/llm/litert_lm/exceptions.cjs +2 -2
  157. package/batteries/llm/litert_lm/helpers.cjs +7 -7
  158. package/batteries/llm/litert_lm/helpers.mjs +3 -3
  159. package/batteries/llm/litert_lm/types.cjs +1 -1
  160. package/batteries/llm/litert_lm/validation.cjs +4 -4
  161. package/batteries/llm/litert_lm/validation.mjs +2 -2
  162. package/batteries/llm/litert_lm.cjs +5 -5
  163. package/batteries/llm/litert_lm.mjs +1 -1
  164. package/batteries/llm/ollama/adapter.cjs +9 -9
  165. package/batteries/llm/ollama/adapter.mjs +6 -6
  166. package/batteries/llm/ollama/exceptions.cjs +2 -2
  167. package/batteries/llm/ollama/helpers.cjs +5 -5
  168. package/batteries/llm/ollama/helpers.mjs +4 -4
  169. package/batteries/llm/ollama/types.cjs +1 -1
  170. package/batteries/llm/ollama/validation.cjs +3 -3
  171. package/batteries/llm/ollama/validation.mjs +2 -2
  172. package/batteries/llm/ollama.cjs +3 -3
  173. package/batteries/llm/ollama.mjs +2 -2
  174. package/batteries/llm/openai_chat_completions/adapter.cjs +9 -9
  175. package/batteries/llm/openai_chat_completions/adapter.mjs +6 -6
  176. package/batteries/llm/openai_chat_completions/exceptions.cjs +2 -2
  177. package/batteries/llm/openai_chat_completions/helpers.cjs +5 -5
  178. package/batteries/llm/openai_chat_completions/helpers.mjs +4 -4
  179. package/batteries/llm/openai_chat_completions/types.cjs +1 -1
  180. package/batteries/llm/openai_chat_completions/validation.cjs +3 -3
  181. package/batteries/llm/openai_chat_completions/validation.mjs +2 -2
  182. package/batteries/llm/openai_chat_completions.cjs +3 -3
  183. package/batteries/llm/openai_chat_completions.mjs +2 -2
  184. package/batteries/llm/openai_responses/adapter.cjs +9 -9
  185. package/batteries/llm/openai_responses/adapter.mjs +6 -6
  186. package/batteries/llm/openai_responses/exceptions.cjs +2 -2
  187. package/batteries/llm/openai_responses/helpers.cjs +4 -4
  188. package/batteries/llm/openai_responses/helpers.mjs +3 -3
  189. package/batteries/llm/openai_responses/types.cjs +1 -1
  190. package/batteries/llm/openai_responses/validation.cjs +3 -3
  191. package/batteries/llm/openai_responses/validation.mjs +2 -2
  192. package/batteries/llm/openai_responses.cjs +3 -3
  193. package/batteries/llm/openai_responses.mjs +2 -2
  194. package/batteries/llm/transformers_js/adapter.cjs +11 -11
  195. package/batteries/llm/transformers_js/adapter.mjs +6 -6
  196. package/batteries/llm/transformers_js/exceptions.cjs +2 -2
  197. package/batteries/llm/transformers_js/helpers.cjs +8 -8
  198. package/batteries/llm/transformers_js/helpers.mjs +3 -3
  199. package/batteries/llm/transformers_js/model_source.cjs +2 -2
  200. package/batteries/llm/transformers_js/types.cjs +1 -1
  201. package/batteries/llm/transformers_js/validation.cjs +4 -4
  202. package/batteries/llm/transformers_js/validation.mjs +2 -2
  203. package/batteries/llm/transformers_js.cjs +5 -5
  204. package/batteries/llm/transformers_js.mjs +1 -1
  205. package/batteries/llm/webllm_chat_completions/adapter.cjs +10 -10
  206. package/batteries/llm/webllm_chat_completions/adapter.mjs +6 -6
  207. package/batteries/llm/webllm_chat_completions/exceptions.cjs +2 -2
  208. package/batteries/llm/webllm_chat_completions/helpers.cjs +2 -2
  209. package/batteries/llm/webllm_chat_completions/helpers.mjs +1 -1
  210. package/batteries/llm/webllm_chat_completions/validation.cjs +3 -3
  211. package/batteries/llm/webllm_chat_completions/validation.mjs +2 -2
  212. package/batteries/llm/webllm_chat_completions.cjs +3 -3
  213. package/batteries/llm/webllm_chat_completions.mjs +2 -2
  214. package/batteries/llm.cjs +4 -3
  215. package/batteries/llm.mjs +4 -4
  216. package/batteries/media/contracts.cjs +2 -2
  217. package/batteries/media/engines/audio_decode.cjs +3 -3
  218. package/batteries/media/engines/data.cjs +4 -4
  219. package/batteries/media/engines/exceljs.cjs +4 -4
  220. package/batteries/media/engines/execa_executor.cjs +3 -3
  221. package/batteries/media/engines/fs_workspace.cjs +3 -3
  222. package/batteries/media/engines/jimp.cjs +3 -3
  223. package/batteries/media/engines/sharp.cjs +3 -3
  224. package/batteries/media/engines/sheetjs.cjs +6 -6
  225. package/batteries/media/engines/sheetjs.cjs.map +1 -1
  226. package/batteries/media/engines/soffice.cjs +2 -2
  227. package/batteries/media/engines/tesseract_js.cjs +3 -3
  228. package/batteries/media/engines/transformers_asr.cjs +3 -3
  229. package/batteries/media/forge.cjs +8 -8
  230. package/batteries/media/forge.mjs +4 -4
  231. package/batteries/media/lint.cjs +2 -2
  232. package/batteries/media/lint.mjs +1 -1
  233. package/batteries/media.cjs +6 -6
  234. package/batteries/orchestration/approval.cjs +2 -2
  235. package/batteries/orchestration/cells/jexl.cjs +3 -3
  236. package/batteries/orchestration/cells/jexl.mjs +1 -1
  237. package/batteries/orchestration/cells/lua.cjs +3 -3
  238. package/batteries/orchestration/cells/lua.mjs +1 -1
  239. package/batteries/orchestration/cells/structured.cjs +3 -3
  240. package/batteries/orchestration/cells/structured.mjs +1 -1
  241. package/batteries/orchestration/conformance.cjs +2 -2
  242. package/batteries/orchestration/dispatch_reasoner.cjs +6 -6
  243. package/batteries/orchestration/dispatch_reasoner.mjs +4 -4
  244. package/batteries/orchestration/encoding.cjs +2 -2
  245. package/batteries/orchestration/executor.cjs +4 -4
  246. package/batteries/orchestration/executor.mjs +2 -2
  247. package/batteries/orchestration/forge.cjs +5 -5
  248. package/batteries/orchestration/forge.mjs +3 -3
  249. package/batteries/orchestration/in_memory.cjs +1 -1
  250. package/batteries/orchestration/ops.cjs +1 -1
  251. package/batteries/orchestration/outline.cjs +2 -2
  252. package/batteries/orchestration/plan.cjs +1 -1
  253. package/batteries/orchestration/raw.cjs +2 -2
  254. package/batteries/orchestration/reason.cjs +1 -1
  255. package/batteries/orchestration/render.cjs +2 -2
  256. package/batteries/orchestration/runs.cjs +1 -1
  257. package/batteries/orchestration/templates.cjs +2 -2
  258. package/batteries/orchestration/types.cjs +1 -1
  259. package/batteries/orchestration/validation.cjs +5 -5
  260. package/batteries/orchestration/validation.mjs +2 -2
  261. package/batteries/orchestration.cjs +6 -6
  262. package/batteries/orchestration.mjs +4 -4
  263. package/batteries/sandbox/js.cjs +6 -6
  264. package/batteries/sandbox/js.mjs +1 -1
  265. package/batteries/sandbox/node.cjs +4 -4
  266. package/batteries/sandbox/tools.cjs +2 -2
  267. package/batteries/sandbox/tools.mjs +1 -1
  268. package/batteries/sandbox.cjs +11 -11
  269. package/batteries/sandbox.mjs +4 -4
  270. package/batteries/skills/conformance.cjs +1 -1
  271. package/batteries/skills/in_memory.cjs +2 -2
  272. package/batteries/skills/in_memory.mjs +1 -1
  273. package/batteries/skills.cjs +13 -13
  274. package/batteries/skills.mjs +9 -9
  275. package/batteries/specialists/_shared.cjs +2 -2
  276. package/batteries/specialists/caption/transformers_js/adapter.cjs +3 -3
  277. package/batteries/specialists/caption/transformers_js/exceptions.cjs +2 -2
  278. package/batteries/specialists/caption/transformers_js/types.cjs +1 -1
  279. package/batteries/specialists/caption/transformers_js/validation.cjs +2 -2
  280. package/batteries/specialists/caption/transformers_js.cjs +1 -1
  281. package/batteries/specialists/caption.cjs +1 -1
  282. package/batteries/specialists/ocr/tesseract_js/adapter.cjs +3 -3
  283. package/batteries/specialists/ocr/tesseract_js/exceptions.cjs +2 -2
  284. package/batteries/specialists/ocr/tesseract_js/types.cjs +1 -1
  285. package/batteries/specialists/ocr/tesseract_js/validation.cjs +2 -2
  286. package/batteries/specialists/ocr/tesseract_js.cjs +1 -1
  287. package/batteries/specialists/ocr.cjs +1 -1
  288. package/batteries/specialists/stt/transformers_js.cjs +2 -2
  289. package/batteries/specialists/stt/transformers_js.mjs +1 -1
  290. package/batteries/specialists/stt.cjs +2 -2
  291. package/batteries/specialists/stt.mjs +1 -1
  292. package/batteries/specialists.cjs +2 -2
  293. package/batteries/specialists.mjs +1 -1
  294. package/batteries/storage/flydrive.cjs +2 -2
  295. package/batteries/storage/in_memory.cjs +2 -2
  296. package/batteries/storage/opfs.cjs +2 -2
  297. package/batteries/storage.cjs +1 -1
  298. package/batteries/tools/_shared.cjs +4 -4
  299. package/batteries/tools/_shared.mjs +2 -2
  300. package/batteries/tools/color.cjs +3 -3
  301. package/batteries/tools/color.mjs +2 -2
  302. package/batteries/tools/comparison.cjs +4 -4
  303. package/batteries/tools/comparison.mjs +2 -2
  304. package/batteries/tools/data_structure.cjs +4 -4
  305. package/batteries/tools/data_structure.mjs +2 -2
  306. package/batteries/tools/datetime_extended.cjs +3 -3
  307. package/batteries/tools/datetime_extended.mjs +2 -2
  308. package/batteries/tools/datetime_math.cjs +3 -3
  309. package/batteries/tools/datetime_math.mjs +2 -2
  310. package/batteries/tools/encoding.cjs +4 -4
  311. package/batteries/tools/encoding.mjs +2 -2
  312. package/batteries/tools/formatting.cjs +4 -4
  313. package/batteries/tools/formatting.mjs +2 -2
  314. package/batteries/tools/geo_basics.cjs +3 -3
  315. package/batteries/tools/geo_basics.mjs +2 -2
  316. package/batteries/tools/math.cjs +4 -4
  317. package/batteries/tools/math.mjs +2 -2
  318. package/batteries/tools/memory.cjs +6 -6
  319. package/batteries/tools/memory.mjs +4 -4
  320. package/batteries/tools/parsing.cjs +5 -5
  321. package/batteries/tools/parsing.mjs +3 -3
  322. package/batteries/tools/retrievables.cjs +6 -6
  323. package/batteries/tools/retrievables.mjs +4 -4
  324. package/batteries/tools/scrapper.cjs +2 -2
  325. package/batteries/tools/scrapper.mjs +1 -1
  326. package/batteries/tools/searxng.cjs +2 -2
  327. package/batteries/tools/searxng.mjs +1 -1
  328. package/batteries/tools/standing_instructions.cjs +5 -5
  329. package/batteries/tools/standing_instructions.mjs +3 -3
  330. package/batteries/tools/statistics.cjs +5 -5
  331. package/batteries/tools/statistics.mjs +3 -3
  332. package/batteries/tools/string_processing.cjs +4 -4
  333. package/batteries/tools/string_processing.mjs +2 -2
  334. package/batteries/tools/structured_data.cjs +4 -4
  335. package/batteries/tools/structured_data.mjs +2 -2
  336. package/batteries/tools/text_analysis.cjs +4 -4
  337. package/batteries/tools/text_analysis.mjs +3 -3
  338. package/batteries/tools/text_comparison.cjs +3 -3
  339. package/batteries/tools/text_comparison.mjs +2 -2
  340. package/batteries/tools/time.cjs +3 -3
  341. package/batteries/tools/time.mjs +2 -2
  342. package/batteries/tools/unit_conversion.cjs +3 -3
  343. package/batteries/tools/unit_conversion.mjs +2 -2
  344. package/batteries/tools/web_retrieval.cjs +2 -2
  345. package/batteries/tools.cjs +3 -3
  346. package/batteries/tools.mjs +2 -2
  347. package/batteries/tts/_shared.cjs +1 -1
  348. package/batteries/tts/native/adapter.cjs +2 -2
  349. package/batteries/tts/native/exceptions.cjs +2 -2
  350. package/batteries/tts/native/helpers.cjs +1 -1
  351. package/batteries/tts/native/types.cjs +1 -1
  352. package/batteries/tts/native/validation.cjs +2 -2
  353. package/batteries/tts/native.cjs +1 -1
  354. package/batteries/tts/transformers_js/adapter.cjs +3 -3
  355. package/batteries/tts/transformers_js/exceptions.cjs +2 -2
  356. package/batteries/tts/transformers_js/types.cjs +1 -1
  357. package/batteries/tts/transformers_js/validation.cjs +2 -2
  358. package/batteries/tts/transformers_js.cjs +1 -1
  359. package/batteries/tts.cjs +1 -1
  360. package/batteries/validation/exceptions.cjs +2 -2
  361. package/batteries/validation/types.cjs +1 -1
  362. package/batteries/validation/validation.cjs +1 -1
  363. package/batteries/validation.cjs +6 -6
  364. package/batteries/validation.mjs +4 -4
  365. package/batteries/vector/arangodb.cjs +2 -2
  366. package/batteries/vector/builder.cjs +1 -1
  367. package/batteries/vector/chroma.cjs +2 -2
  368. package/batteries/vector/chroma.mjs +1 -1
  369. package/batteries/vector/clickhouse.cjs +3 -3
  370. package/batteries/vector/clickhouse.mjs +1 -1
  371. package/batteries/vector/cloudflare.cjs +3 -3
  372. package/batteries/vector/cloudflare.mjs +1 -1
  373. package/batteries/vector/conformance.cjs +1 -1
  374. package/batteries/vector/contract.cjs +1 -1
  375. package/batteries/vector/couchbase.cjs +3 -3
  376. package/batteries/vector/couchbase.mjs +1 -1
  377. package/batteries/vector/duckdb.cjs +3 -3
  378. package/batteries/vector/duckdb.mjs +1 -1
  379. package/batteries/vector/elasticsearch.cjs +3 -3
  380. package/batteries/vector/elasticsearch.mjs +1 -1
  381. package/batteries/vector/exceptions.cjs +2 -2
  382. package/batteries/vector/factory.cjs +1 -1
  383. package/batteries/vector/filters.cjs +2 -2
  384. package/batteries/vector/helpers.cjs +1 -1
  385. package/batteries/vector/hnswlib.cjs +3 -3
  386. package/batteries/vector/hnswlib.mjs +1 -1
  387. package/batteries/vector/in_memory.cjs +2 -2
  388. package/batteries/vector/in_memory.mjs +1 -1
  389. package/batteries/vector/lancedb.cjs +3 -3
  390. package/batteries/vector/lancedb.mjs +1 -1
  391. package/batteries/vector/mariadb.cjs +3 -3
  392. package/batteries/vector/mariadb.mjs +1 -1
  393. package/batteries/vector/meilisearch.cjs +2 -2
  394. package/batteries/vector/migrate.cjs +2 -2
  395. package/batteries/vector/milvus.cjs +2 -2
  396. package/batteries/vector/milvus.mjs +1 -1
  397. package/batteries/vector/mongodb.cjs +2 -2
  398. package/batteries/vector/neo4j.cjs +2 -2
  399. package/batteries/vector/opensearch.cjs +3 -3
  400. package/batteries/vector/opensearch.mjs +1 -1
  401. package/batteries/vector/oracle23ai.cjs +3 -3
  402. package/batteries/vector/oracle23ai.mjs +1 -1
  403. package/batteries/vector/orama.cjs +2 -2
  404. package/batteries/vector/orama.mjs +1 -1
  405. package/batteries/vector/pgvector.cjs +2 -2
  406. package/batteries/vector/pgvector.mjs +1 -1
  407. package/batteries/vector/pinecone.cjs +3 -3
  408. package/batteries/vector/pinecone.mjs +1 -1
  409. package/batteries/vector/plan.cjs +1 -1
  410. package/batteries/vector/qdrant.cjs +2 -2
  411. package/batteries/vector/qdrant.mjs +1 -1
  412. package/batteries/vector/redis.cjs +3 -3
  413. package/batteries/vector/redis.mjs +1 -1
  414. package/batteries/vector/retrievable.cjs +2 -2
  415. package/batteries/vector/retrievable.mjs +1 -1
  416. package/batteries/vector/s3vectors.cjs +3 -3
  417. package/batteries/vector/s3vectors.mjs +1 -1
  418. package/batteries/vector/schema.cjs +1 -1
  419. package/batteries/vector/solr.cjs +2 -2
  420. package/batteries/vector/sqlite_vec.cjs +2 -2
  421. package/batteries/vector/sqlite_vec.mjs +1 -1
  422. package/batteries/vector/surrealdb.cjs +2 -2
  423. package/batteries/vector/types.cjs +1 -1
  424. package/batteries/vector/typesense.cjs +3 -3
  425. package/batteries/vector/typesense.mjs +1 -1
  426. package/batteries/vector/validation.cjs +1 -1
  427. package/batteries/vector/vector_store_constructor.cjs +1 -1
  428. package/batteries/vector/vespa.cjs +3 -3
  429. package/batteries/vector/vespa.mjs +1 -1
  430. package/batteries/vector/weaviate.cjs +3 -3
  431. package/batteries/vector/weaviate.mjs +1 -1
  432. package/batteries/vector.cjs +2 -2
  433. package/batteries/vector.mjs +1 -1
  434. package/batteries.cjs +11 -10
  435. package/batteries.mjs +11 -11
  436. package/{chat_common-CBqn22t1.js → chat_common-4huaTp6d.cjs} +5 -5
  437. package/chat_common-4huaTp6d.cjs.map +1 -0
  438. package/{chat_common-DKw8FDol.mjs → chat_common-D_XGNjcK.mjs} +2 -2
  439. package/{chat_common-DKw8FDol.mjs.map → chat_common-D_XGNjcK.mjs.map} +1 -1
  440. package/claude-code-cli-wrapper.cjs +106 -24
  441. package/claude-code-cli-wrapper.cjs.map +1 -1
  442. package/claude-code-cli-wrapper.mjs +104 -22
  443. package/claude-code-cli-wrapper.mjs.map +1 -1
  444. package/{common-0rLuBEeY.js → common-BiRzOsxe.cjs} +9 -9
  445. package/common-BiRzOsxe.cjs.map +1 -0
  446. package/{common-BuVhq_3h.js → common-BuVhq_3h.cjs} +1 -1
  447. package/common-BuVhq_3h.cjs.map +1 -0
  448. package/{common-oI1niK9Z.mjs → common-DsLvTGmm.mjs} +7 -7
  449. package/{common-oI1niK9Z.mjs.map → common-DsLvTGmm.mjs.map} +1 -1
  450. package/common.cjs +8 -8
  451. package/common.mjs +7 -7
  452. package/{conformance-T1qEg8Sv.js → conformance-T1qEg8Sv.cjs} +1 -1
  453. package/conformance-T1qEg8Sv.cjs.map +1 -0
  454. package/{dispatch_runner-CKhm-scw.js → dispatch_runner-C5S3KCqH.cjs} +6 -6
  455. package/dispatch_runner-C5S3KCqH.cjs.map +1 -0
  456. package/{dispatch_runner-BZDXUe0G.mjs → dispatch_runner-DDH_dGPU.mjs} +4 -4
  457. package/{dispatch_runner-BZDXUe0G.mjs.map → dispatch_runner-DDH_dGPU.mjs.map} +1 -1
  458. package/dispatch_runner.cjs +2 -2
  459. package/dispatch_runner.mjs +1 -1
  460. package/{ecmascript-DmrNI2Wo.js → ecmascript-BGr_0Dwn.cjs} +6 -6
  461. package/ecmascript-BGr_0Dwn.cjs.map +1 -0
  462. package/{ecmascript-B9Z2C24U.mjs → ecmascript-CWLZ7bCX.mjs} +5 -5
  463. package/{ecmascript-B9Z2C24U.mjs.map → ecmascript-CWLZ7bCX.mjs.map} +1 -1
  464. package/{error_translation-BCa4wxUL.js → error_translation-D8Ea1_th.cjs} +2 -2
  465. package/error_translation-D8Ea1_th.cjs.map +1 -0
  466. package/{escape-COeB923i.js → escape-C12OWStb.cjs} +3 -3
  467. package/escape-C12OWStb.cjs.map +1 -0
  468. package/eslint/rules/artifact_tool_forbids_artifact_constructor.cjs +2 -2
  469. package/eslint/rules/no_model_in_tool_handler.cjs +2 -2
  470. package/eslint/rules/require_string_empty_disposition.cjs +2 -2
  471. package/eslint/rules/require_validator_any_required.cjs +2 -2
  472. package/eslint/rules/thought_payload_requires_replay_tag.cjs +2 -2
  473. package/eslint/rules/token_encoding_requires_context_window.cjs +2 -2
  474. package/eslint/rules.cjs +1 -1
  475. package/eslint.cjs +3 -3
  476. package/eslint.mjs +2 -2
  477. package/{exceptions-Dlw1Jr6E.js → exceptions-Bc1s_ld5.cjs} +2 -2
  478. package/exceptions-Bc1s_ld5.cjs.map +1 -0
  479. package/{exceptions-BY1RQNVP.js → exceptions-BwGzlXoz.cjs} +2 -2
  480. package/exceptions-BwGzlXoz.cjs.map +1 -0
  481. package/{exceptions-DrHnAGQz.js → exceptions-DrHnAGQz.cjs} +1 -1
  482. package/exceptions-DrHnAGQz.cjs.map +1 -0
  483. package/exceptions.cjs +3 -3
  484. package/exceptions.mjs +1 -1
  485. package/factories.cjs +2 -2
  486. package/forge.cjs +3 -3
  487. package/forge.mjs +2 -2
  488. package/{formats-DZVuqZUN.js → formats-DZVuqZUN.cjs} +1 -1
  489. package/formats-DZVuqZUN.cjs.map +1 -0
  490. package/{fs_node-WwUEiuo6.js → fs_node-XvgZtNJV.cjs} +2 -2
  491. package/fs_node-XvgZtNJV.cjs.map +1 -0
  492. package/{function_serializer-ChL2I8Kq.js → function_serializer-D1Kyicai.cjs} +3 -3
  493. package/function_serializer-D1Kyicai.cjs.map +1 -0
  494. package/{gpu_budget-BBIUyLoj.js → gpu_budget-BBIUyLoj.cjs} +1 -1
  495. package/gpu_budget-BBIUyLoj.cjs.map +1 -0
  496. package/{guards-05Uq3J4M.js → guards-5-XmJgD2.cjs} +2 -2
  497. package/guards-5-XmJgD2.cjs.map +1 -0
  498. package/guards.cjs +10 -10
  499. package/guards.mjs +7 -7
  500. package/{helpers-CObtMmAZ.js → helpers-BPi_iwxv.cjs} +4 -4
  501. package/helpers-BPi_iwxv.cjs.map +1 -0
  502. package/{helpers-mbn_EsDV.mjs → helpers-D47G8WQb.mjs} +3 -3
  503. package/{helpers-mbn_EsDV.mjs.map → helpers-D47G8WQb.mjs.map} +1 -1
  504. package/index.cjs +13 -13
  505. package/index.mjs +10 -10
  506. package/{isolation-7Jrcucgc.js → isolation-B2FgKbap.cjs} +5 -5
  507. package/isolation-B2FgKbap.cjs.map +1 -0
  508. package/{isolation-CO0NiK8R.mjs → isolation-BRGpiU-K.mjs} +2 -2
  509. package/{isolation-CO0NiK8R.mjs.map → isolation-BRGpiU-K.mjs.map} +1 -1
  510. package/lib/helpers/bignum.cjs +1 -1
  511. package/lib/utils/audio.cjs +1 -1
  512. package/lib/utils/retry.cjs +1 -1
  513. package/{lifecycle-vYQJ2rmf.js → lifecycle-vYQJ2rmf.cjs} +1 -1
  514. package/lifecycle-vYQJ2rmf.cjs.map +1 -0
  515. package/{manifest-D8UTRohY.mjs → manifest-B5bWMHgj.mjs} +2 -2
  516. package/{manifest-D8UTRohY.mjs.map → manifest-B5bWMHgj.mjs.map} +1 -1
  517. package/{manifest-iMAmSDay.js → manifest-Chjh-3s1.cjs} +4 -4
  518. package/manifest-Chjh-3s1.cjs.map +1 -0
  519. package/mcp/adk-docs-corpus.json +2 -2
  520. package/package.json +490 -490
  521. package/{patch-BXX9Q0FM.js → patch-BXX9Q0FM.cjs} +1 -1
  522. package/patch-BXX9Q0FM.cjs.map +1 -0
  523. package/{predicates-CM27Z3TF.mjs → predicates-2dZQ82LY.mjs} +2 -2
  524. package/{predicates-CM27Z3TF.mjs.map → predicates-2dZQ82LY.mjs.map} +1 -1
  525. package/{predicates-f3wvKYT8.js → predicates-C9jl2QPZ.cjs} +3 -3
  526. package/predicates-C9jl2QPZ.cjs.map +1 -0
  527. package/{retrievable-BTwjmPnl.js → retrievable-ReauMJxJ.cjs} +5 -5
  528. package/retrievable-ReauMJxJ.cjs.map +1 -0
  529. package/{retrievable-CXTAUuuv.mjs → retrievable-mFgC1aty.mjs} +3 -3
  530. package/{retrievable-CXTAUuuv.mjs.map → retrievable-mFgC1aty.mjs.map} +1 -1
  531. package/{sandbox-utils-DLCceTeU.js → sandbox-utils-D12AZhWE.cjs} +2 -2
  532. package/sandbox-utils-D12AZhWE.cjs.map +1 -0
  533. package/{scrapper-CJexXXK-.js → scrapper-BsEY0Wo6.cjs} +7 -7
  534. package/scrapper-BsEY0Wo6.cjs.map +1 -0
  535. package/{scrapper-DiQ5FfDL.mjs → scrapper-bShwZxKP.mjs} +5 -5
  536. package/{scrapper-DiQ5FfDL.mjs.map → scrapper-bShwZxKP.mjs.map} +1 -1
  537. package/{searxng-BFTJ6rTE.mjs → searxng-CAY-bOMl.mjs} +5 -5
  538. package/{searxng-BFTJ6rTE.mjs.map → searxng-CAY-bOMl.mjs.map} +1 -1
  539. package/{searxng-DzlGZG4V.js → searxng-CLF0vBMT.cjs} +7 -7
  540. package/searxng-CLF0vBMT.cjs.map +1 -0
  541. package/{server-CnUZcn6e.js → server-CkVjzQaC.cjs} +2 -2
  542. package/server-CkVjzQaC.cjs.map +1 -0
  543. package/server.json +2 -2
  544. package/{shell-quote-CIuPmePF.js → shell-quote-BUxBTn3M.cjs} +2 -2
  545. package/shell-quote-BUxBTn3M.cjs.map +1 -0
  546. package/shims.cjs +2 -2
  547. package/skills/adk-assembly/SKILL.md +2 -2
  548. package/{spooled_artifact-Bw_7swIp.mjs → spooled_artifact-B710Rb0d.mjs} +731 -731
  549. package/spooled_artifact-B710Rb0d.mjs.map +1 -0
  550. package/{spooled_artifact-BpcesRBv.js → spooled_artifact-CFjf6ULg.cjs} +733 -733
  551. package/spooled_artifact-CFjf6ULg.cjs.map +1 -0
  552. package/spooled_artifact.cjs +3 -3
  553. package/spooled_artifact.mjs +2 -2
  554. package/{spooled_markdown_artifact-vd6eNtIP.mjs → spooled_markdown_artifact-1C4mmi73.mjs} +3 -3
  555. package/{spooled_markdown_artifact-vd6eNtIP.mjs.map → spooled_markdown_artifact-1C4mmi73.mjs.map} +1 -1
  556. package/{spooled_markdown_artifact-wJPnE8Ij.js → spooled_markdown_artifact-PWppwnPQ.cjs} +5 -5
  557. package/spooled_markdown_artifact-PWppwnPQ.cjs.map +1 -0
  558. package/{thought-CxSaF6Xf.mjs → thought-BKXwUZoq.mjs} +3 -3
  559. package/{thought-CxSaF6Xf.mjs.map → thought-BKXwUZoq.mjs.map} +1 -1
  560. package/{thought-Dg_4UZxg.js → thought-D5fJsxBW.cjs} +5 -5
  561. package/thought-D5fJsxBW.cjs.map +1 -0
  562. package/{tokenizable-BMZuGWRd.js → tokenizable-DDIdXbJN.cjs} +31 -31
  563. package/tokenizable-DDIdXbJN.cjs.map +1 -0
  564. package/{tokenizable-VB4Av8GF.mjs → tokenizable-xPXj1AQX.mjs} +30 -30
  565. package/{tokenizable-VB4Av8GF.mjs.map → tokenizable-xPXj1AQX.mjs.map} +1 -1
  566. package/{tool_call-Fs_Uh5wQ.js → tool_call-CDV5pW13.cjs} +5 -5
  567. package/tool_call-CDV5pW13.cjs.map +1 -0
  568. package/{tool_call-Cfaj-6zK.mjs → tool_call-D-LqMvpU.mjs} +3 -3
  569. package/{tool_call-Cfaj-6zK.mjs.map → tool_call-D-LqMvpU.mjs.map} +1 -1
  570. package/{tool_parsers-csSBFWob.js → tool_parsers-8_qO0a_F.cjs} +2 -2
  571. package/tool_parsers-8_qO0a_F.cjs.map +1 -0
  572. package/{tools-rJvfktHR.js → tools-CACuuMV4.cjs} +9 -9
  573. package/tools-CACuuMV4.cjs.map +1 -0
  574. package/{tools-D0MBDh2R.mjs → tools-CvCMdAd7.mjs} +6 -6
  575. package/{tools-D0MBDh2R.mjs.map → tools-CvCMdAd7.mjs.map} +1 -1
  576. package/{toon-BXPdJRz7.js → toon-B7Q9RWJF.cjs} +7 -7
  577. package/toon-B7Q9RWJF.cjs.map +1 -0
  578. package/{toon-BSTQnHed.mjs → toon-CCjuuzd_.mjs} +6 -6
  579. package/{toon-BSTQnHed.mjs.map → toon-CCjuuzd_.mjs.map} +1 -1
  580. package/{transformers_js-p3lAkHFH.mjs → transformers_js-BR2Ov0Su.mjs} +2 -2
  581. package/{transformers_js-p3lAkHFH.mjs.map → transformers_js-BR2Ov0Su.mjs.map} +1 -1
  582. package/{transformers_js-C050gRfd.js → transformers_js-DM01eAzh.cjs} +4 -4
  583. package/transformers_js-DM01eAzh.cjs.map +1 -0
  584. package/{turn_runner-BHHD6h77.mjs → turn_runner-BgPw9uqb.mjs} +4 -4
  585. package/{turn_runner-BHHD6h77.mjs.map → turn_runner-BgPw9uqb.mjs.map} +1 -1
  586. package/{turn_runner-DhLI7OTH.js → turn_runner-CP2zxSlu.cjs} +6 -6
  587. package/turn_runner-CP2zxSlu.cjs.map +1 -0
  588. package/turn_runner.cjs +2 -2
  589. package/turn_runner.mjs +1 -1
  590. package/{type_guards-BAhiOypL-C2eOOyxU.js → type_guards-BAhiOypL-C2eOOyxU.cjs} +1 -1
  591. package/{type_guards-BAhiOypL-C2eOOyxU.js.map → type_guards-BAhiOypL-C2eOOyxU.cjs.map} +1 -1
  592. package/{type_guards-DuKwiYgg.js → type_guards-BWTKysPt.cjs} +2 -2
  593. package/{types-DrSosVaM.js → types-DWOiL208.cjs} +4 -4
  594. package/types-DWOiL208.cjs.map +1 -0
  595. package/types.cjs +1 -1
  596. package/{validate-CkQI-48O.js → validate-tUm9MY8y.cjs} +3 -3
  597. package/validate-tUm9MY8y.cjs.map +1 -0
  598. package/{xlsx-B0sTpEC2.js → xlsx-Dtql4S-9.cjs} +2 -2
  599. package/xlsx-Dtql4S-9.cjs.map +1 -0
  600. package/{xlsx.zahl-ZIcUQVv8.js → xlsx.zahl-C9pM7cyt.cjs} +2 -2
  601. package/xlsx.zahl-C9pM7cyt.cjs.map +1 -0
  602. package/{xml-CYseDztH.mjs → xml-BqTTIFhv.mjs} +6 -6
  603. package/{xml-CYseDztH.mjs.map → xml-BqTTIFhv.mjs.map} +1 -1
  604. package/{xml-CNmgj5Qq.js → xml-viE54OTe.cjs} +7 -7
  605. package/xml-viE54OTe.cjs.map +1 -0
  606. package/{yaml-BPBoiOjx.mjs → yaml-B1So-pUR.mjs} +6 -6
  607. package/{yaml-BPBoiOjx.mjs.map → yaml-B1So-pUR.mjs.map} +1 -1
  608. package/{yaml-CaoIJyRe.js → yaml-cGhhPyZq.cjs} +7 -7
  609. package/yaml-cGhhPyZq.cjs.map +1 -0
  610. package/arg_specs-iYmIM3wI.js.map +0 -1
  611. package/artifact_methods-Cg0go7Q4.mjs +0 -1
  612. package/artifact_methods-SKgM322C.js +0 -1
  613. package/chat_common-CBqn22t1.js.map +0 -1
  614. package/common-0rLuBEeY.js.map +0 -1
  615. package/common-BuVhq_3h.js.map +0 -1
  616. package/conformance-T1qEg8Sv.js.map +0 -1
  617. package/dispatch_runner-CKhm-scw.js.map +0 -1
  618. package/ecmascript-DmrNI2Wo.js.map +0 -1
  619. package/error_translation-BCa4wxUL.js.map +0 -1
  620. package/escape-COeB923i.js.map +0 -1
  621. package/exceptions-BY1RQNVP.js.map +0 -1
  622. package/exceptions-Dlw1Jr6E.js.map +0 -1
  623. package/exceptions-DrHnAGQz.js.map +0 -1
  624. package/formats-DZVuqZUN.js.map +0 -1
  625. package/fs_node-WwUEiuo6.js.map +0 -1
  626. package/function_serializer-ChL2I8Kq.js.map +0 -1
  627. package/gpu_budget-BBIUyLoj.js.map +0 -1
  628. package/guards-05Uq3J4M.js.map +0 -1
  629. package/helpers-CObtMmAZ.js.map +0 -1
  630. package/isolation-7Jrcucgc.js.map +0 -1
  631. package/lifecycle-vYQJ2rmf.js.map +0 -1
  632. package/manifest-iMAmSDay.js.map +0 -1
  633. package/patch-BXX9Q0FM.js.map +0 -1
  634. package/predicates-f3wvKYT8.js.map +0 -1
  635. package/retrievable-BTwjmPnl.js.map +0 -1
  636. package/sandbox-utils-DLCceTeU.js.map +0 -1
  637. package/scrapper-CJexXXK-.js.map +0 -1
  638. package/searxng-DzlGZG4V.js.map +0 -1
  639. package/server-CnUZcn6e.js.map +0 -1
  640. package/shell-quote-CIuPmePF.js.map +0 -1
  641. package/spooled_artifact-BpcesRBv.js.map +0 -1
  642. package/spooled_artifact-Bw_7swIp.mjs.map +0 -1
  643. package/spooled_markdown_artifact-wJPnE8Ij.js.map +0 -1
  644. package/thought-Dg_4UZxg.js.map +0 -1
  645. package/tokenizable-BMZuGWRd.js.map +0 -1
  646. package/tool_call-Fs_Uh5wQ.js.map +0 -1
  647. package/tool_parsers-csSBFWob.js.map +0 -1
  648. package/tools-rJvfktHR.js.map +0 -1
  649. package/toon-BXPdJRz7.js.map +0 -1
  650. package/transformers_js-C050gRfd.js.map +0 -1
  651. package/turn_runner-DhLI7OTH.js.map +0 -1
  652. package/types-DrSosVaM.js.map +0 -1
  653. package/validate-CkQI-48O.js.map +0 -1
  654. package/xlsx-B0sTpEC2.js.map +0 -1
  655. package/xlsx.zahl-ZIcUQVv8.js.map +0 -1
  656. package/xml-CNmgj5Qq.js.map +0 -1
  657. package/yaml-CaoIJyRe.js.map +0 -1
  658. /package/{chunk-Cek0wNdY.js → chunk-Cek0wNdY.cjs} +0 -0
package/CHANGELOG.md CHANGED
@@ -15,6 +15,98 @@ 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
+
66
+ ## 2026-09-24
67
+
68
+ ### Fixed
69
+
70
+ - **CommonJS consumers can load the package again.** Every `.cjs` entry in the published package
71
+ failed on `require()` — `Cannot find module './exceptions-….js'`, `createException is not a
72
+ function`, or `exports is not defined in ES module scope` — while ESM `import()` worked. This
73
+ affected multiple releases, including at least `1.20260901.0`, `1.20260902.0`, `1.20260913.0`
74
+ and `1.20260921.0`. Root cause: `build.lib.fileName` named only entry files; Vite picked shared
75
+ chunks' extension from the source `package.json` (no `"type"`), giving CJS-format chunks a bare
76
+ `.js` extension, while the published `package.json` declares `"type": "module"` — so Node loaded
77
+ those CJS chunks as ESM. Each output format now names its own chunks (`.cjs` / `.mjs`). The
78
+ `claude-code-cli-wrapper.cjs` asset, which crashed on start for the same reason, now starts.
79
+ - **`@nhtio/adk/batteries/llm/claude_code_cli` — a multi-iteration dispatch no longer kills the
80
+ host process** (closes issue #39). The wrapper numbers tool calls from `"0"` on every spawn, so a
81
+ second dispatch iteration reused id `"0"`, core rejected it as already complete, and the throw
82
+ escaped a stream listener as an unhandled rejection. Tool-call ids are now de-collided within the
83
+ turn (new `toolCallIdFilter` option, defaulting to `deCollideToolCallIds`; the wrapper-facing
84
+ response still carries the wrapper's own id). Errors while handling wrapper events — including
85
+ synchronous throws and unserialisable thrown values — now settle the dispatch through
86
+ `E_CLAUDE_CODE_CLI_STREAM_ERROR` instead of escaping or hanging the executor, and fire-and-forget
87
+ shutdowns can no longer produce an unhandled rejection. The stream-idle timer now re-arms only on
88
+ genuine progress (not on `retry`/`log` diagnostics, a plausible cause of the reported
89
+ never-settling dispatch) and is suspended while an ADK tool executes, so a slow tool is not
90
+ falsely nacked as stalled.
91
+ - **`@nhtio/adk/batteries/llm/claude_code_cli` — the default wrapper path survives bundling**
92
+ (closes issue #40). The wrapper was resolved relative to the adapter module's own compiled file,
93
+ which breaks once a consumer bundles the adapter (e.g. an Electron main process). A fallback now
94
+ locates the wrapper through the package's own self-reference, in both ESM and CJS bundles. When
95
+ nothing resolves, the new `E_CLAUDE_CODE_CLI_WRAPPER_NOT_FOUND` lists every path it tried and
96
+ names the `wrapperPath` option. A bundle only finds the wrapper while `node_modules/@nhtio/adk` is
97
+ still resolvable from it at runtime; a bundle moved outside the project, or an Electron app that
98
+ prunes or asar-packs the package, must set `wrapperPath`.
99
+
100
+ ### Internal
101
+
102
+ - **CI — dist-backed build specs now run on merge requests.** Specs that need a real `dist/`
103
+ (`tests/unit/build/*`) skipped silently on every MR because the unit-test job never builds;
104
+ that silent skip is how the CJS defect went unnoticed. The MR-gated `Publishable Import Boundary
105
+ Enforcement` job, which already runs `pnpm generate`, now also runs them with
106
+ `TEST_REQUIRE_DIST=1`, which turns a missing `dist/` into a failure instead of a skip. New specs
107
+ load every `.cjs` entry under plain Node and bundle a consumer with esbuild in both formats to
108
+ prove the wrapper resolves.
109
+
18
110
  ## 2026-09-21
19
111
 
20
112
  ### Fixed
package/adk-mcp.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_chunk = require("./chunk-Cek0wNdY.js");
4
- const require_server = require("./server-CnUZcn6e.js");
3
+ const require_chunk = require("./chunk-Cek0wNdY.cjs");
4
+ const require_server = require("./server-CkVjzQaC.cjs");
5
5
  let node_path = require("node:path");
6
6
  let node_fs = require("node:fs");
7
7
  let node_process = require("node:process");
@@ -65,4 +65,4 @@ Object.defineProperty(exports, "DEV_ARG_SPECS", {
65
65
  }
66
66
  });
67
67
 
68
- //# sourceMappingURL=arg_specs-iYmIM3wI.js.map
68
+ //# sourceMappingURL=arg_specs-iYmIM3wI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arg_specs-iYmIM3wI.cjs","names":[],"sources":["../src/batteries/dev_tools/arg_specs.ts"],"sourcesContent":["/** Machine-readable declaration for one step argument. */\nexport interface DevArgSpec {\n /** Primitive argument kind. */\n type: 'string' | 'number' | 'boolean' | 'array'\n /** Whether the argument must be present. */\n required?: boolean\n /** Constraint on array members, including object field constraints. */\n element?:\n | 'string'\n | {\n fields: Readonly<Record<string, 'string' | { type: 'string'; nonEmpty?: boolean }>>\n nonEmpty?: boolean\n }\n /** Whether a string or array argument itself must be non-empty. */\n nonEmpty?: boolean\n}\n\n/** Per-step argument specifications used by development plan validation. */\nexport const DEV_ARG_SPECS: Readonly<Record<string, Readonly<Record<string, DevArgSpec>>>> = {\n read_lines: {\n path: { type: 'string', required: true },\n start: { type: 'number', required: true },\n end: { type: 'number' },\n },\n edit: {\n path: { type: 'string', required: true },\n edits: {\n type: 'array',\n required: true,\n element: {\n fields: {\n find: { type: 'string', nonEmpty: true },\n replace: { type: 'string' },\n },\n nonEmpty: true,\n },\n nonEmpty: true,\n },\n },\n apply_patch: { patch: { type: 'string', required: true } },\n write: { paths: { type: 'array', element: 'string', nonEmpty: true } },\n format: { paths: { type: 'array', element: 'string', nonEmpty: true } },\n lint: { paths: { type: 'array', element: 'string', nonEmpty: true }, fix: { type: 'boolean' } },\n check: {},\n}\n"],"mappings":";;AAkBA,IAAa,gBAAgF;CAC3F,YAAY;EACV,MAAM;GAAE,MAAM;GAAU,UAAU;EAAK;EACvC,OAAO;GAAE,MAAM;GAAU,UAAU;EAAK;EACxC,KAAK,EAAE,MAAM,SAAS;CACxB;CACA,MAAM;EACJ,MAAM;GAAE,MAAM;GAAU,UAAU;EAAK;EACvC,OAAO;GACL,MAAM;GACN,UAAU;GACV,SAAS;IACP,QAAQ;KACN,MAAM;MAAE,MAAM;MAAU,UAAU;KAAK;KACvC,SAAS,EAAE,MAAM,SAAS;IAC5B;IACA,UAAU;GACZ;GACA,UAAU;EACZ;CACF;CACA,aAAa,EAAE,OAAO;EAAE,MAAM;EAAU,UAAU;CAAK,EAAE;CACzD,OAAO,EAAE,OAAO;EAAE,MAAM;EAAS,SAAS;EAAU,UAAU;CAAK,EAAE;CACrE,QAAQ,EAAE,OAAO;EAAE,MAAM;EAAS,SAAS;EAAU,UAAU;CAAK,EAAE;CACtE,MAAM;EAAE,OAAO;GAAE,MAAM;GAAS,SAAS;GAAU,UAAU;EAAK;EAAG,KAAK,EAAE,MAAM,UAAU;CAAE;CAC9F,OAAO,CAAC;AACV"}
@@ -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
- require("../../chunk-Cek0wNdY.js");
3
- const require_ecmascript = require("../../ecmascript-DmrNI2Wo.js");
2
+ require("../../chunk-Cek0wNdY.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-B9Z2C24U.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
- require("../../chunk-Cek0wNdY.js");
3
- const require_toon = require("../../toon-BXPdJRz7.js");
2
+ require("../../chunk-Cek0wNdY.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-BSTQnHed.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
- require("../../chunk-Cek0wNdY.js");
3
- const require_xml = require("../../xml-CNmgj5Qq.js");
2
+ require("../../chunk-Cek0wNdY.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-CYseDztH.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
- require("../../chunk-Cek0wNdY.js");
3
- const require_yaml = require("../../yaml-CaoIJyRe.js");
2
+ require("../../chunk-Cek0wNdY.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-BPBoiOjx.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
- require("../chunk-Cek0wNdY.js");
3
- const require_toon = require("../toon-BXPdJRz7.js");
4
- const require_yaml = require("../yaml-CaoIJyRe.js");
5
- const require_xml = require("../xml-CNmgj5Qq.js");
6
- const require_ecmascript = require("../ecmascript-DmrNI2Wo.js");
2
+ require("../chunk-Cek0wNdY.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-BSTQnHed.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-BPBoiOjx.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-CYseDztH.mjs";
4
- import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-B9Z2C24U.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,2 +1,2 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_context_exceptions = require("../exceptions.cjs");
4
4
  //#region src/batteries/context/compact/summarizer.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
2
+ require("../../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_context_exceptions = require("./exceptions.cjs");
4
4
  const require_batteries_context_compact_summarizer = require("./compact/summarizer.cjs");
5
5
  exports.COMPACTION_SYSTEM_PROMPT = require_batteries_context_compact_summarizer.COMPACTION_SYSTEM_PROMPT;
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
3
- const require_exceptions = require("../../exceptions-DrHnAGQz.js");
2
+ require("../../chunk-Cek0wNdY.cjs");
3
+ const require_exceptions = require("../../exceptions-DrHnAGQz.cjs");
4
4
  require("../../factories.cjs");
5
5
  //#region src/batteries/context/exceptions.ts
6
6
  /**
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
3
  //#region src/batteries/context/thrift/relevance.ts
4
4
  /**
5
5
  * The relevance floor's lower bound — the minimum fraction of the current query's content words a
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_context_exceptions = require("../exceptions.cjs");
4
4
  //#region src/batteries/context/thrift/subtractive_pass.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
2
+ require("../../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_context_exceptions = require("./exceptions.cjs");
4
4
  const require_batteries_context_thrift_subtractive_pass = require("./thrift/subtractive_pass.cjs");
5
5
  const require_batteries_context_thrift_relevance = require("./thrift/relevance.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../chunk-Cek0wNdY.js");
2
+ require("../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_context_exceptions = require("./context/exceptions.cjs");
4
4
  const require_batteries_context_thrift_subtractive_pass = require("./context/thrift/subtractive_pass.cjs");
5
5
  const require_batteries_context_thrift_relevance = require("./context/thrift/relevance.cjs");
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
3
- const require_conformance = require("../../conformance-T1qEg8Sv.js");
2
+ require("../../chunk-Cek0wNdY.cjs");
3
+ const require_conformance = require("../../conformance-T1qEg8Sv.cjs");
4
4
  exports.runSandboxConformance = require_conformance.runSandboxConformance;
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
3
- const require_spooled_artifact = require("../../spooled_artifact-BpcesRBv.js");
4
- require("../../common-0rLuBEeY.js");
5
- const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-wJPnE8Ij.js");
6
- const require_arg_specs = require("../../arg_specs-iYmIM3wI.js");
2
+ require("../../chunk-Cek0wNdY.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
+ 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
9
9
  /** Agent glue for the structured development-tools surface. @module @nhtio/adk/batteries/dev-tools/forge */
@@ -1,6 +1,6 @@
1
- import { p as Tool } from "../../spooled_artifact-Bw_7swIp.mjs";
2
- import "../../common-oI1niK9Z.mjs";
3
- import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-vd6eNtIP.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,16 +1,16 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../chunk-Cek0wNdY.js");
3
- const require_exceptions = require("../exceptions-DrHnAGQz.js");
4
- const require_guards = require("../guards-05Uq3J4M.js");
5
- const require_tokenizable = require("../tokenizable-BMZuGWRd.js");
2
+ require("../chunk-Cek0wNdY.cjs");
3
+ const require_exceptions = require("../exceptions-DrHnAGQz.cjs");
6
4
  require("../factories.cjs");
5
+ const require_guards = require("../guards-5-XmJgD2.cjs");
6
+ const require_tokenizable = require("../tokenizable-DDIdXbJN.cjs");
7
7
  require("../exceptions.cjs");
8
8
  require("../guards.cjs");
9
- const require_types = require("../types-DrSosVaM.js");
10
- const require_tools = require("../tools-rJvfktHR.js");
11
- const require_fs_node = require("../fs_node-WwUEiuo6.js");
12
- const require_patch = require("../patch-BXX9Q0FM.js");
13
- const require_arg_specs = require("../arg_specs-iYmIM3wI.js");
9
+ const require_types = require("../types-DWOiL208.cjs");
10
+ const require_tools = require("../tools-CACuuMV4.cjs");
11
+ const require_fs_node = require("../fs_node-XvgZtNJV.cjs");
12
+ const require_patch = require("../patch-BXX9Q0FM.cjs");
13
+ const require_arg_specs = require("../arg_specs-iYmIM3wI.cjs");
14
14
  let _nhtio_validation = require("@nhtio/validation");
15
15
  let _nhtio_middleware = require("@nhtio/middleware");
16
16
  //#region src/batteries/dev_tools/exceptions.ts
@@ -1,11 +1,11 @@
1
1
  import { t as createException } from "../exceptions-DRYLe-J4.mjs";
2
- import { n as isInstanceOf, r as isObject, t as isError } from "../guards-BEpY7lBI.mjs";
3
- import { D as E_LLM_EXECUTION_GATE_NOT_SUPPORTED } from "../tokenizable-VB4Av8GF.mjs";
4
2
  import "../factories.mjs";
3
+ import { n as isInstanceOf, r as isObject, t as isError } from "../guards-BEpY7lBI.mjs";
4
+ import { k as E_LLM_EXECUTION_GATE_NOT_SUPPORTED } from "../tokenizable-xPXj1AQX.mjs";
5
5
  import "../exceptions.mjs";
6
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-D0MBDh2R.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,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_guards = require("../../../guards-05Uq3J4M.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_guards = require("../../../guards-5-XmJgD2.cjs");
4
4
  require("../../../guards.cjs");
5
5
  const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
6
6
  const require_batteries_embeddings_openai_helpers = require("../openai/helpers.cjs");
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_exceptions = require("../../../exceptions-DrHnAGQz.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_exceptions = require("../../../exceptions-DrHnAGQz.cjs");
4
4
  require("../../../factories.cjs");
5
5
  //#region src/batteries/embeddings/ollama/exceptions.ts
6
6
  /**
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
3
  require("../../../guards.cjs");
4
4
  const require_batteries_embeddings_ollama_exceptions = require("./exceptions.cjs");
5
5
  let _nhtio_validation = require("@nhtio/validation");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
2
+ require("../../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_embeddings_ollama_exceptions = require("./ollama/exceptions.cjs");
4
4
  const require_batteries_embeddings_ollama_validation = require("./ollama/validation.cjs");
5
5
  const require_batteries_embeddings_ollama_adapter = require("./ollama/adapter.cjs");
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_guards = require("../../../guards-05Uq3J4M.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_guards = require("../../../guards-5-XmJgD2.cjs");
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,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_exceptions = require("../../../exceptions-DrHnAGQz.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_exceptions = require("../../../exceptions-DrHnAGQz.cjs");
4
4
  require("../../../factories.cjs");
5
5
  //#region src/batteries/embeddings/openai/exceptions.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
3
  //#region src/batteries/embeddings/openai/helpers.ts
4
4
  /**
5
5
  * Applies the configured query/document instruction prefix to a batch of inputs.
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
3
  require("../../../guards.cjs");
4
4
  const require_batteries_embeddings_openai_exceptions = require("./exceptions.cjs");
5
5
  let _nhtio_validation = require("@nhtio/validation");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
2
+ require("../../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_embeddings_openai_exceptions = require("./openai/exceptions.cjs");
4
4
  const require_batteries_embeddings_openai_validation = require("./openai/validation.cjs");
5
5
  const require_batteries_embeddings_openai_helpers = require("./openai/helpers.cjs");
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_guards = require("../../../guards-05Uq3J4M.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_guards = require("../../../guards-5-XmJgD2.cjs");
4
4
  require("../../../guards.cjs");
5
- const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
5
+ const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.cjs");
6
6
  const require_batteries_llm_transformers_js_model_source = require("../../llm/transformers_js/model_source.cjs");
7
7
  const require_batteries_embeddings_openai_helpers = require("../openai/helpers.cjs");
8
8
  const require_batteries_embeddings_transformers_js_pooling = require("./pooling.cjs");
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_exceptions = require("../../../exceptions-DrHnAGQz.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_exceptions = require("../../../exceptions-DrHnAGQz.cjs");
4
4
  require("../../../factories.cjs");
5
5
  //#region src/batteries/embeddings/transformers_js/exceptions.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
3
  //#region src/batteries/embeddings/transformers_js/pooling.ts
4
4
  /**
5
5
  * Mean-pool a `[seq, hidden]` matrix into a `[hidden]` vector.
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_guards = require("../../../guards-05Uq3J4M.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_guards = require("../../../guards-5-XmJgD2.cjs");
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,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
2
+ require("../../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_embeddings_transformers_js_pooling = require("./transformers_js/pooling.cjs");
4
4
  const require_batteries_embeddings_transformers_js_exceptions = require("./transformers_js/exceptions.cjs");
5
5
  const require_batteries_embeddings_transformers_js_validation = require("./transformers_js/validation.cjs");
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_guards = require("../../../guards-05Uq3J4M.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_guards = require("../../../guards-5-XmJgD2.cjs");
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,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
3
- const require_exceptions = require("../../../exceptions-DrHnAGQz.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
+ const require_exceptions = require("../../../exceptions-DrHnAGQz.cjs");
4
4
  require("../../../factories.cjs");
5
5
  //#region src/batteries/embeddings/webllm/exceptions.ts
6
6
  /**
@@ -1,2 +1,2 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../chunk-Cek0wNdY.js");
2
+ require("../../../chunk-Cek0wNdY.cjs");
3
3
  require("../../../guards.cjs");
4
4
  const require_batteries_embeddings_webllm_exceptions = require("./exceptions.cjs");
5
5
  let _nhtio_validation = require("@nhtio/validation");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../chunk-Cek0wNdY.js");
2
+ require("../../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_embeddings_webllm_exceptions = require("./webllm/exceptions.cjs");
4
4
  const require_batteries_embeddings_webllm_validation = require("./webllm/validation.cjs");
5
5
  const require_batteries_embeddings_webllm_adapter = require("./webllm/adapter.cjs");
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../chunk-Cek0wNdY.js");
2
+ require("../chunk-Cek0wNdY.cjs");
3
3
  const require_batteries_embeddings_openai_exceptions = require("./embeddings/openai/exceptions.cjs");
4
4
  const require_batteries_embeddings_openai_validation = require("./embeddings/openai/validation.cjs");
5
5
  const require_batteries_embeddings_openai_helpers = require("./embeddings/openai/helpers.cjs");