@nhtio/adk 0.1.0-master-7904e3a3 → 0.1.0-master-781b55ec

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 (787) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/artifact_methods-Ba0xev5U.cjs +1 -0
  3. package/artifact_methods-sOdo6fHt.mjs +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/context/compact/index.d.ts +1 -1
  15. package/batteries/context/exceptions.cjs +1 -1
  16. package/batteries/context/exceptions.cjs.map +1 -1
  17. package/batteries/context/exceptions.d.ts +1 -1
  18. package/batteries/context/exceptions.mjs +1 -1
  19. package/batteries/context/exceptions.mjs.map +1 -1
  20. package/batteries/context/thrift/index.d.ts +1 -1
  21. package/batteries/dev-tools/conformance.cjs +2 -2
  22. package/batteries/dev-tools/conformance.mjs +1 -1
  23. package/batteries/dev-tools/forge.cjs +3 -3
  24. package/batteries/dev-tools/forge.mjs +3 -3
  25. package/batteries/dev-tools.cjs +55 -54
  26. package/batteries/dev-tools.cjs.map +1 -1
  27. package/batteries/dev-tools.mjs +7 -6
  28. package/batteries/dev-tools.mjs.map +1 -1
  29. package/batteries/dev_tools/conformance.d.ts +2 -2
  30. package/batteries/dev_tools/index.d.ts +2 -5
  31. package/batteries/dev_tools/runtime.d.ts +3 -5
  32. package/batteries/dev_tools/types.d.ts +1 -1
  33. package/batteries/embeddings/ollama/adapter.cjs +5 -4
  34. package/batteries/embeddings/ollama/adapter.cjs.map +1 -1
  35. package/batteries/embeddings/ollama/adapter.mjs +3 -2
  36. package/batteries/embeddings/ollama/adapter.mjs.map +1 -1
  37. package/batteries/embeddings/openai/adapter.cjs +5 -4
  38. package/batteries/embeddings/openai/adapter.cjs.map +1 -1
  39. package/batteries/embeddings/openai/adapter.mjs +3 -2
  40. package/batteries/embeddings/openai/adapter.mjs.map +1 -1
  41. package/batteries/embeddings/transformers_js/adapter.cjs +4 -3
  42. package/batteries/embeddings/transformers_js/adapter.cjs.map +1 -1
  43. package/batteries/embeddings/transformers_js/adapter.mjs +2 -1
  44. package/batteries/embeddings/transformers_js/adapter.mjs.map +1 -1
  45. package/batteries/embeddings/transformers_js/types.d.ts +2 -2
  46. package/batteries/embeddings/transformers_js/validation.cjs +2 -2
  47. package/batteries/embeddings/transformers_js/validation.cjs.map +1 -1
  48. package/batteries/embeddings/transformers_js/validation.mjs +1 -1
  49. package/batteries/embeddings/webllm/adapter.cjs +3 -3
  50. package/batteries/embeddings/webllm/adapter.cjs.map +1 -1
  51. package/batteries/embeddings/webllm/adapter.mjs +1 -1
  52. package/batteries/encoding.cjs +8 -9
  53. package/batteries/encoding.cjs.map +1 -1
  54. package/batteries/encoding.mjs +7 -8
  55. package/batteries/encoding.mjs.map +1 -1
  56. package/batteries/generation/_shared.cjs +2 -2
  57. package/batteries/generation/_shared.cjs.map +1 -1
  58. package/batteries/generation/_shared.mjs +1 -1
  59. package/batteries/generation/gemini/adapter.cjs +6 -5
  60. package/batteries/generation/gemini/adapter.cjs.map +1 -1
  61. package/batteries/generation/gemini/adapter.mjs +4 -3
  62. package/batteries/generation/gemini/adapter.mjs.map +1 -1
  63. package/batteries/generation/local_diffusion/adapter.cjs +6 -4
  64. package/batteries/generation/local_diffusion/adapter.cjs.map +1 -1
  65. package/batteries/generation/local_diffusion/adapter.mjs +4 -2
  66. package/batteries/generation/local_diffusion/adapter.mjs.map +1 -1
  67. package/batteries/generation/local_diffusion/protocol.cjs +2 -2
  68. package/batteries/generation/local_diffusion/protocol.cjs.map +1 -1
  69. package/batteries/generation/local_diffusion/protocol.mjs +1 -1
  70. package/batteries/generation/local_diffusion/types.d.ts +1 -1
  71. package/batteries/generation/openai/adapter.cjs +6 -5
  72. package/batteries/generation/openai/adapter.cjs.map +1 -1
  73. package/batteries/generation/openai/adapter.mjs +4 -3
  74. package/batteries/generation/openai/adapter.mjs.map +1 -1
  75. package/batteries/generation/openai/types.d.ts +1 -1
  76. package/batteries/generation/transformers_js/adapter.cjs +5 -4
  77. package/batteries/generation/transformers_js/adapter.cjs.map +1 -1
  78. package/batteries/generation/transformers_js/adapter.mjs +2 -1
  79. package/batteries/generation/transformers_js/adapter.mjs.map +1 -1
  80. package/batteries/generation/transformers_js/types.d.ts +2 -2
  81. package/batteries/generation/transformers_js/validation.cjs +2 -2
  82. package/batteries/generation/transformers_js/validation.cjs.map +1 -1
  83. package/batteries/generation/transformers_js/validation.mjs +1 -1
  84. package/batteries/isolation/child_process.cjs +5 -5
  85. package/batteries/isolation/child_process.cjs.map +1 -1
  86. package/batteries/isolation/child_process.mjs +2 -2
  87. package/batteries/isolation.cjs +1 -1
  88. package/batteries/isolation.mjs +1 -1
  89. package/batteries/llm/anthropic_messages/adapter.cjs +16 -17
  90. package/batteries/llm/anthropic_messages/adapter.cjs.map +1 -1
  91. package/batteries/llm/anthropic_messages/adapter.mjs +8 -9
  92. package/batteries/llm/anthropic_messages/adapter.mjs.map +1 -1
  93. package/batteries/llm/anthropic_messages/count_tokens.cjs +13 -13
  94. package/batteries/llm/anthropic_messages/count_tokens.cjs.map +1 -1
  95. package/batteries/llm/anthropic_messages/count_tokens.d.ts +1 -2
  96. package/batteries/llm/anthropic_messages/count_tokens.mjs +4 -4
  97. package/batteries/llm/anthropic_messages/count_tokens.mjs.map +1 -1
  98. package/batteries/llm/anthropic_messages/error_translation.cjs +5 -5
  99. package/batteries/llm/anthropic_messages/error_translation.cjs.map +1 -1
  100. package/batteries/llm/anthropic_messages/error_translation.mjs +1 -1
  101. package/batteries/llm/anthropic_messages/helpers.cjs +3 -3
  102. package/batteries/llm/anthropic_messages/helpers.mjs +3 -3
  103. package/batteries/llm/anthropic_messages/validation.cjs +2 -2
  104. package/batteries/llm/anthropic_messages/validation.mjs +2 -2
  105. package/batteries/llm/anthropic_messages.cjs +2 -2
  106. package/batteries/llm/anthropic_messages.mjs +2 -2
  107. package/batteries/llm/bedrock_converse/adapter.cjs +16 -17
  108. package/batteries/llm/bedrock_converse/adapter.cjs.map +1 -1
  109. package/batteries/llm/bedrock_converse/adapter.d.ts +1 -1
  110. package/batteries/llm/bedrock_converse/adapter.mjs +8 -9
  111. package/batteries/llm/bedrock_converse/adapter.mjs.map +1 -1
  112. package/batteries/llm/bedrock_converse/helpers.cjs +3 -3
  113. package/batteries/llm/bedrock_converse/helpers.cjs.map +1 -1
  114. package/batteries/llm/bedrock_converse/helpers.mjs +2 -2
  115. package/batteries/llm/bedrock_converse/validation.cjs +2 -2
  116. package/batteries/llm/bedrock_converse/validation.mjs +2 -2
  117. package/batteries/llm/bedrock_converse.cjs +2 -2
  118. package/batteries/llm/bedrock_converse.mjs +2 -2
  119. package/batteries/llm/claude_code_cli/adapter.cjs +23 -24
  120. package/batteries/llm/claude_code_cli/adapter.cjs.map +1 -1
  121. package/batteries/llm/claude_code_cli/adapter.mjs +7 -8
  122. package/batteries/llm/claude_code_cli/adapter.mjs.map +1 -1
  123. package/batteries/llm/claude_code_cli/helpers.cjs +3 -3
  124. package/batteries/llm/claude_code_cli/helpers.mjs +3 -3
  125. package/batteries/llm/claude_code_cli/validation.cjs +2 -2
  126. package/batteries/llm/claude_code_cli/validation.mjs +2 -2
  127. package/batteries/llm/claude_code_cli.cjs +2 -2
  128. package/batteries/llm/claude_code_cli.mjs +2 -2
  129. package/batteries/llm/gemini_generate_content/adapter.cjs +16 -17
  130. package/batteries/llm/gemini_generate_content/adapter.cjs.map +1 -1
  131. package/batteries/llm/gemini_generate_content/adapter.mjs +8 -9
  132. package/batteries/llm/gemini_generate_content/adapter.mjs.map +1 -1
  133. package/batteries/llm/gemini_generate_content/helpers.cjs +5 -5
  134. package/batteries/llm/gemini_generate_content/helpers.cjs.map +1 -1
  135. package/batteries/llm/gemini_generate_content/helpers.mjs +2 -2
  136. package/batteries/llm/gemini_generate_content/validation.cjs +2 -2
  137. package/batteries/llm/gemini_generate_content/validation.mjs +2 -2
  138. package/batteries/llm/gemini_generate_content.cjs +1 -1
  139. package/batteries/llm/gemini_generate_content.mjs +1 -1
  140. package/batteries/llm/litert_lm/adapter.cjs +15 -16
  141. package/batteries/llm/litert_lm/adapter.cjs.map +1 -1
  142. package/batteries/llm/litert_lm/adapter.mjs +7 -8
  143. package/batteries/llm/litert_lm/adapter.mjs.map +1 -1
  144. package/batteries/llm/litert_lm/helpers.cjs +5 -5
  145. package/batteries/llm/litert_lm/helpers.cjs.map +1 -1
  146. package/batteries/llm/litert_lm/helpers.d.ts +5 -5
  147. package/batteries/llm/litert_lm/helpers.mjs +5 -5
  148. package/batteries/llm/litert_lm/helpers.mjs.map +1 -1
  149. package/batteries/llm/litert_lm/validation.cjs +3 -4
  150. package/batteries/llm/litert_lm/validation.cjs.map +1 -1
  151. package/batteries/llm/litert_lm/validation.mjs +2 -3
  152. package/batteries/llm/litert_lm/validation.mjs.map +1 -1
  153. package/batteries/llm/litert_lm.cjs +2 -2
  154. package/batteries/llm/litert_lm.mjs +2 -2
  155. package/batteries/llm/ollama/adapter.cjs +20 -21
  156. package/batteries/llm/ollama/adapter.cjs.map +1 -1
  157. package/batteries/llm/ollama/adapter.mjs +8 -9
  158. package/batteries/llm/ollama/adapter.mjs.map +1 -1
  159. package/batteries/llm/ollama/helpers.cjs +4 -4
  160. package/batteries/llm/ollama/helpers.mjs +4 -4
  161. package/batteries/llm/ollama/validation.cjs +2 -2
  162. package/batteries/llm/ollama/validation.mjs +2 -2
  163. package/batteries/llm/ollama.cjs +2 -2
  164. package/batteries/llm/ollama.mjs +2 -2
  165. package/batteries/llm/openai_chat_completions/adapter.cjs +25 -26
  166. package/batteries/llm/openai_chat_completions/adapter.cjs.map +1 -1
  167. package/batteries/llm/openai_chat_completions/adapter.mjs +8 -9
  168. package/batteries/llm/openai_chat_completions/adapter.mjs.map +1 -1
  169. package/batteries/llm/openai_chat_completions/helpers.cjs +4 -4
  170. package/batteries/llm/openai_chat_completions/helpers.mjs +4 -4
  171. package/batteries/llm/openai_chat_completions/validation.cjs +2 -2
  172. package/batteries/llm/openai_chat_completions/validation.mjs +2 -2
  173. package/batteries/llm/openai_chat_completions.cjs +2 -2
  174. package/batteries/llm/openai_chat_completions.mjs +2 -2
  175. package/batteries/llm/openai_responses/adapter.cjs +23 -24
  176. package/batteries/llm/openai_responses/adapter.cjs.map +1 -1
  177. package/batteries/llm/openai_responses/adapter.mjs +8 -9
  178. package/batteries/llm/openai_responses/adapter.mjs.map +1 -1
  179. package/batteries/llm/openai_responses/helpers.cjs +3 -3
  180. package/batteries/llm/openai_responses/helpers.mjs +3 -3
  181. package/batteries/llm/openai_responses/validation.cjs +2 -2
  182. package/batteries/llm/openai_responses/validation.mjs +2 -2
  183. package/batteries/llm/openai_responses.cjs +2 -2
  184. package/batteries/llm/openai_responses.mjs +2 -2
  185. package/batteries/llm/transformers_js/adapter.cjs +20 -21
  186. package/batteries/llm/transformers_js/adapter.cjs.map +1 -1
  187. package/batteries/llm/transformers_js/adapter.mjs +7 -8
  188. package/batteries/llm/transformers_js/adapter.mjs.map +1 -1
  189. package/batteries/llm/transformers_js/helpers.cjs +7 -7
  190. package/batteries/llm/transformers_js/helpers.cjs.map +1 -1
  191. package/batteries/llm/transformers_js/helpers.d.ts +5 -5
  192. package/batteries/llm/transformers_js/helpers.mjs +6 -6
  193. package/batteries/llm/transformers_js/helpers.mjs.map +1 -1
  194. package/batteries/llm/transformers_js/model_source.cjs +2 -2
  195. package/batteries/llm/transformers_js/model_source.cjs.map +1 -1
  196. package/batteries/llm/transformers_js/model_source.mjs +1 -1
  197. package/batteries/llm/transformers_js/validation.cjs +3 -4
  198. package/batteries/llm/transformers_js/validation.cjs.map +1 -1
  199. package/batteries/llm/transformers_js/validation.mjs +2 -3
  200. package/batteries/llm/transformers_js/validation.mjs.map +1 -1
  201. package/batteries/llm/transformers_js.cjs +2 -2
  202. package/batteries/llm/transformers_js.mjs +2 -2
  203. package/batteries/llm/webllm_chat_completions/adapter.cjs +20 -21
  204. package/batteries/llm/webllm_chat_completions/adapter.cjs.map +1 -1
  205. package/batteries/llm/webllm_chat_completions/adapter.mjs +7 -8
  206. package/batteries/llm/webllm_chat_completions/adapter.mjs.map +1 -1
  207. package/batteries/llm/webllm_chat_completions/helpers.cjs +1 -1
  208. package/batteries/llm/webllm_chat_completions/helpers.mjs +1 -1
  209. package/batteries/llm/webllm_chat_completions/validation.cjs +2 -2
  210. package/batteries/llm/webllm_chat_completions/validation.mjs +2 -2
  211. package/batteries/llm/webllm_chat_completions.cjs +2 -2
  212. package/batteries/llm/webllm_chat_completions.mjs +2 -2
  213. package/batteries/llm.cjs +2 -2
  214. package/batteries/llm.mjs +2 -2
  215. package/batteries/media/contracts.cjs +3 -3
  216. package/batteries/media/contracts.cjs.map +1 -1
  217. package/batteries/media/contracts.mjs +1 -1
  218. package/batteries/media/engines/audio_decode.cjs +4 -3
  219. package/batteries/media/engines/audio_decode.cjs.map +1 -1
  220. package/batteries/media/engines/audio_decode.mjs +3 -2
  221. package/batteries/media/engines/audio_decode.mjs.map +1 -1
  222. package/batteries/media/engines/data.cjs +2 -2
  223. package/batteries/media/engines/data.cjs.map +1 -1
  224. package/batteries/media/engines/data.mjs +1 -1
  225. package/batteries/media/engines/exceljs.cjs +3 -3
  226. package/batteries/media/engines/exceljs.cjs.map +1 -1
  227. package/batteries/media/engines/exceljs.mjs +1 -1
  228. package/batteries/media/engines/execa_executor.cjs +3 -3
  229. package/batteries/media/engines/execa_executor.cjs.map +1 -1
  230. package/batteries/media/engines/execa_executor.mjs +1 -1
  231. package/batteries/media/engines/fs_workspace.cjs +3 -3
  232. package/batteries/media/engines/fs_workspace.cjs.map +1 -1
  233. package/batteries/media/engines/fs_workspace.mjs +1 -1
  234. package/batteries/media/engines/jimp.cjs +2 -2
  235. package/batteries/media/engines/jimp.cjs.map +1 -1
  236. package/batteries/media/engines/jimp.mjs +1 -1
  237. package/batteries/media/engines/sharp.cjs +2 -2
  238. package/batteries/media/engines/sharp.cjs.map +1 -1
  239. package/batteries/media/engines/sharp.mjs +1 -1
  240. package/batteries/media/engines/sheetjs.cjs +3 -3
  241. package/batteries/media/engines/sheetjs.cjs.map +1 -1
  242. package/batteries/media/engines/sheetjs.mjs +1 -1
  243. package/batteries/media/engines/tesseract_js.cjs +2 -2
  244. package/batteries/media/engines/tesseract_js.cjs.map +1 -1
  245. package/batteries/media/engines/tesseract_js.mjs +1 -1
  246. package/batteries/media/engines/transformers_asr.cjs +2 -2
  247. package/batteries/media/engines/transformers_asr.cjs.map +1 -1
  248. package/batteries/media/engines/transformers_asr.mjs +1 -1
  249. package/batteries/media/forge.cjs +7 -7
  250. package/batteries/media/forge.cjs.map +1 -1
  251. package/batteries/media/forge.mjs +6 -6
  252. package/batteries/media/index.d.ts +1 -0
  253. package/batteries/media/lint.cjs +35 -25
  254. package/batteries/media/lint.cjs.map +1 -1
  255. package/batteries/media/lint.mjs +35 -25
  256. package/batteries/media/lint.mjs.map +1 -1
  257. package/batteries/media/steps/image_audio.d.ts +1 -1
  258. package/batteries/media/steps/text.d.ts +0 -1
  259. package/batteries/media.cjs +54 -53
  260. package/batteries/media.cjs.map +1 -1
  261. package/batteries/media.mjs +5 -4
  262. package/batteries/media.mjs.map +1 -1
  263. package/batteries/orchestration/approval.cjs +4 -3
  264. package/batteries/orchestration/approval.cjs.map +1 -1
  265. package/batteries/orchestration/approval.mjs +2 -1
  266. package/batteries/orchestration/approval.mjs.map +1 -1
  267. package/batteries/orchestration/cells/jexl.cjs +5 -4
  268. package/batteries/orchestration/cells/jexl.cjs.map +1 -1
  269. package/batteries/orchestration/cells/jexl.mjs +3 -2
  270. package/batteries/orchestration/cells/jexl.mjs.map +1 -1
  271. package/batteries/orchestration/cells/lua.cjs +12 -11
  272. package/batteries/orchestration/cells/lua.cjs.map +1 -1
  273. package/batteries/orchestration/cells/lua.mjs +3 -2
  274. package/batteries/orchestration/cells/lua.mjs.map +1 -1
  275. package/batteries/orchestration/cells/structured.cjs +7 -6
  276. package/batteries/orchestration/cells/structured.cjs.map +1 -1
  277. package/batteries/orchestration/cells/structured.mjs +3 -2
  278. package/batteries/orchestration/cells/structured.mjs.map +1 -1
  279. package/batteries/orchestration/conformance.cjs +2 -2
  280. package/batteries/orchestration/conformance.cjs.map +1 -1
  281. package/batteries/orchestration/conformance.mjs +1 -1
  282. package/batteries/orchestration/dispatch_reasoner.cjs +8 -7
  283. package/batteries/orchestration/dispatch_reasoner.cjs.map +1 -1
  284. package/batteries/orchestration/dispatch_reasoner.mjs +6 -5
  285. package/batteries/orchestration/dispatch_reasoner.mjs.map +1 -1
  286. package/batteries/orchestration/encoding.cjs +3 -3
  287. package/batteries/orchestration/encoding.cjs.map +1 -1
  288. package/batteries/orchestration/encoding.mjs +1 -1
  289. package/batteries/orchestration/executor.cjs +10 -9
  290. package/batteries/orchestration/executor.cjs.map +1 -1
  291. package/batteries/orchestration/executor.mjs +4 -3
  292. package/batteries/orchestration/executor.mjs.map +1 -1
  293. package/batteries/orchestration/forge.cjs +10 -9
  294. package/batteries/orchestration/forge.cjs.map +1 -1
  295. package/batteries/orchestration/forge.d.ts +1 -1
  296. package/batteries/orchestration/forge.mjs +6 -5
  297. package/batteries/orchestration/forge.mjs.map +1 -1
  298. package/batteries/orchestration/outline.cjs +3 -2
  299. package/batteries/orchestration/outline.cjs.map +1 -1
  300. package/batteries/orchestration/outline.mjs +2 -1
  301. package/batteries/orchestration/outline.mjs.map +1 -1
  302. package/batteries/orchestration/raw.cjs +3 -2
  303. package/batteries/orchestration/raw.cjs.map +1 -1
  304. package/batteries/orchestration/raw.mjs +2 -1
  305. package/batteries/orchestration/raw.mjs.map +1 -1
  306. package/batteries/orchestration/render.cjs +14 -13
  307. package/batteries/orchestration/render.cjs.map +1 -1
  308. package/batteries/orchestration/render.mjs +2 -1
  309. package/batteries/orchestration/render.mjs.map +1 -1
  310. package/batteries/orchestration/templates.cjs +7 -6
  311. package/batteries/orchestration/templates.cjs.map +1 -1
  312. package/batteries/orchestration/templates.mjs +2 -1
  313. package/batteries/orchestration/templates.mjs.map +1 -1
  314. package/batteries/orchestration/validation.cjs +14 -12
  315. package/batteries/orchestration/validation.cjs.map +1 -1
  316. package/batteries/orchestration/validation.mjs +5 -3
  317. package/batteries/orchestration/validation.mjs.map +1 -1
  318. package/batteries/orchestration.cjs +11 -10
  319. package/batteries/orchestration.cjs.map +1 -1
  320. package/batteries/orchestration.mjs +7 -6
  321. package/batteries/orchestration.mjs.map +1 -1
  322. package/batteries/sandbox/executor.d.ts +1 -1
  323. package/batteries/sandbox/js.cjs +10 -9
  324. package/batteries/sandbox/js.cjs.map +1 -1
  325. package/batteries/sandbox/js.mjs +6 -5
  326. package/batteries/sandbox/js.mjs.map +1 -1
  327. package/batteries/sandbox/lint.cjs +263 -0
  328. package/batteries/sandbox/lint.cjs.map +1 -0
  329. package/batteries/sandbox/lint.d.ts +103 -0
  330. package/batteries/sandbox/lint.mjs +257 -0
  331. package/batteries/sandbox/lint.mjs.map +1 -0
  332. package/batteries/sandbox/media_reader.d.ts +1 -2
  333. package/batteries/sandbox/node.cjs +14 -730
  334. package/batteries/sandbox/node.mjs +1 -717
  335. package/batteries/sandbox/tools/index.d.ts +3 -3
  336. package/batteries/sandbox/tools.cjs +1 -1
  337. package/batteries/sandbox/tools.mjs +1 -1
  338. package/batteries/sandbox/validation.d.ts +1 -1
  339. package/batteries/sandbox.cjs +152 -54
  340. package/batteries/sandbox.cjs.map +1 -1
  341. package/batteries/sandbox.mjs +107 -9
  342. package/batteries/sandbox.mjs.map +1 -1
  343. package/batteries/skills/in_memory.cjs +1 -1
  344. package/batteries/skills/in_memory.mjs +1 -1
  345. package/batteries/skills/lint.cjs +211 -0
  346. package/batteries/skills/lint.cjs.map +1 -0
  347. package/batteries/skills/lint.d.ts +99 -0
  348. package/batteries/skills/lint.mjs +204 -0
  349. package/batteries/skills/lint.mjs.map +1 -0
  350. package/batteries/skills/scripts.d.ts +1 -1
  351. package/batteries/skills/types.d.ts +2 -5
  352. package/batteries/skills.cjs +31 -33
  353. package/batteries/skills.cjs.map +1 -1
  354. package/batteries/skills.mjs +10 -12
  355. package/batteries/skills.mjs.map +1 -1
  356. package/batteries/specialists/_shared.cjs +7 -6
  357. package/batteries/specialists/_shared.cjs.map +1 -1
  358. package/batteries/specialists/_shared.mjs +3 -2
  359. package/batteries/specialists/_shared.mjs.map +1 -1
  360. package/batteries/specialists/caption/transformers_js/adapter.cjs +4 -3
  361. package/batteries/specialists/caption/transformers_js/adapter.cjs.map +1 -1
  362. package/batteries/specialists/caption/transformers_js/adapter.mjs +2 -1
  363. package/batteries/specialists/caption/transformers_js/adapter.mjs.map +1 -1
  364. package/batteries/specialists/caption/transformers_js/types.d.ts +2 -2
  365. package/batteries/specialists/caption/transformers_js/validation.cjs +2 -2
  366. package/batteries/specialists/caption/transformers_js/validation.cjs.map +1 -1
  367. package/batteries/specialists/caption/transformers_js/validation.mjs +1 -1
  368. package/batteries/specialists/ocr/tesseract_js/adapter.cjs +6 -5
  369. package/batteries/specialists/ocr/tesseract_js/adapter.cjs.map +1 -1
  370. package/batteries/specialists/ocr/tesseract_js/adapter.mjs +2 -1
  371. package/batteries/specialists/ocr/tesseract_js/adapter.mjs.map +1 -1
  372. package/batteries/specialists/ocr/tesseract_js/types.d.ts +2 -2
  373. package/batteries/specialists/ocr/tesseract_js/validation.cjs +2 -2
  374. package/batteries/specialists/ocr/tesseract_js/validation.cjs.map +1 -1
  375. package/batteries/specialists/ocr/tesseract_js/validation.mjs +1 -1
  376. package/batteries/specialists/stt/transformers_js/types.d.ts +2 -2
  377. package/batteries/specialists/stt/transformers_js.cjs +1 -1
  378. package/batteries/specialists/stt/transformers_js.mjs +1 -1
  379. package/batteries/specialists/stt.cjs +1 -1
  380. package/batteries/specialists/stt.mjs +1 -1
  381. package/batteries/specialists.cjs +1 -1
  382. package/batteries/specialists.mjs +1 -1
  383. package/batteries/storage/flydrive.cjs +2 -2
  384. package/batteries/storage/flydrive.cjs.map +1 -1
  385. package/batteries/storage/flydrive.mjs +1 -1
  386. package/batteries/storage/in_memory.cjs +2 -2
  387. package/batteries/storage/in_memory.cjs.map +1 -1
  388. package/batteries/storage/in_memory.mjs +1 -1
  389. package/batteries/storage/opfs.cjs +4 -4
  390. package/batteries/storage/opfs.cjs.map +1 -1
  391. package/batteries/storage/opfs.mjs +1 -1
  392. package/batteries/tools/_shared.cjs +7 -7
  393. package/batteries/tools/_shared.cjs.map +1 -1
  394. package/batteries/tools/_shared.mjs +2 -2
  395. package/batteries/tools/color.cjs +2 -2
  396. package/batteries/tools/color.mjs +2 -2
  397. package/batteries/tools/comparison.cjs +4 -4
  398. package/batteries/tools/comparison.cjs.map +1 -1
  399. package/batteries/tools/comparison.mjs +3 -3
  400. package/batteries/tools/data_structure.cjs +6 -6
  401. package/batteries/tools/data_structure.cjs.map +1 -1
  402. package/batteries/tools/data_structure.mjs +3 -3
  403. package/batteries/tools/datetime_extended.cjs +2 -2
  404. package/batteries/tools/datetime_extended.mjs +2 -2
  405. package/batteries/tools/datetime_math.cjs +2 -2
  406. package/batteries/tools/datetime_math.mjs +2 -2
  407. package/batteries/tools/encoding.cjs +6 -6
  408. package/batteries/tools/encoding.cjs.map +1 -1
  409. package/batteries/tools/encoding.mjs +3 -3
  410. package/batteries/tools/formatting.cjs +4 -4
  411. package/batteries/tools/formatting.cjs.map +1 -1
  412. package/batteries/tools/formatting.mjs +3 -3
  413. package/batteries/tools/geo_basics.cjs +2 -2
  414. package/batteries/tools/geo_basics.mjs +2 -2
  415. package/batteries/tools/math.cjs +7 -7
  416. package/batteries/tools/math.cjs.map +1 -1
  417. package/batteries/tools/math.mjs +3 -3
  418. package/batteries/tools/memory.cjs +9 -9
  419. package/batteries/tools/memory.cjs.map +1 -1
  420. package/batteries/tools/memory.mjs +5 -5
  421. package/batteries/tools/parsing.cjs +6 -6
  422. package/batteries/tools/parsing.cjs.map +1 -1
  423. package/batteries/tools/parsing.mjs +4 -4
  424. package/batteries/tools/retrievables.cjs +11 -11
  425. package/batteries/tools/retrievables.cjs.map +1 -1
  426. package/batteries/tools/retrievables.mjs +5 -5
  427. package/batteries/tools/scrapper.cjs +1 -1
  428. package/batteries/tools/scrapper.mjs +1 -1
  429. package/batteries/tools/searxng.cjs +1 -1
  430. package/batteries/tools/searxng.mjs +1 -1
  431. package/batteries/tools/standing_instructions.cjs +7 -7
  432. package/batteries/tools/standing_instructions.cjs.map +1 -1
  433. package/batteries/tools/standing_instructions.mjs +4 -4
  434. package/batteries/tools/statistics.cjs +6 -6
  435. package/batteries/tools/statistics.cjs.map +1 -1
  436. package/batteries/tools/statistics.mjs +4 -4
  437. package/batteries/tools/string_processing.cjs +6 -6
  438. package/batteries/tools/string_processing.cjs.map +1 -1
  439. package/batteries/tools/string_processing.mjs +3 -3
  440. package/batteries/tools/structured_data.cjs +6 -6
  441. package/batteries/tools/structured_data.cjs.map +1 -1
  442. package/batteries/tools/structured_data.mjs +3 -3
  443. package/batteries/tools/text_analysis.cjs +3 -3
  444. package/batteries/tools/text_analysis.mjs +3 -3
  445. package/batteries/tools/text_comparison.cjs +2 -2
  446. package/batteries/tools/text_comparison.mjs +2 -2
  447. package/batteries/tools/time.cjs +2 -2
  448. package/batteries/tools/time.mjs +2 -2
  449. package/batteries/tools/unit_conversion.cjs +2 -2
  450. package/batteries/tools/unit_conversion.mjs +2 -2
  451. package/batteries/tools/web_retrieval.cjs +2 -2
  452. package/batteries/tools/web_retrieval.cjs.map +1 -1
  453. package/batteries/tools/web_retrieval.mjs +1 -1
  454. package/batteries/tools.cjs +2 -2
  455. package/batteries/tools.mjs +2 -2
  456. package/batteries/tts/_shared/index.d.ts +1 -1
  457. package/batteries/tts/native/adapter.cjs +4 -4
  458. package/batteries/tts/native/adapter.cjs.map +1 -1
  459. package/batteries/tts/native/adapter.mjs +1 -1
  460. package/batteries/tts/native/validation.cjs +2 -2
  461. package/batteries/tts/native/validation.cjs.map +1 -1
  462. package/batteries/tts/native/validation.mjs +1 -1
  463. package/batteries/tts/transformers_js/adapter.cjs +5 -4
  464. package/batteries/tts/transformers_js/adapter.cjs.map +1 -1
  465. package/batteries/tts/transformers_js/adapter.mjs +2 -1
  466. package/batteries/tts/transformers_js/adapter.mjs.map +1 -1
  467. package/batteries/tts/transformers_js/types.d.ts +2 -2
  468. package/batteries/tts/transformers_js/validation.cjs +3 -3
  469. package/batteries/tts/transformers_js/validation.cjs.map +1 -1
  470. package/batteries/tts/transformers_js/validation.mjs +1 -1
  471. package/batteries/tts/transformers_js/validation.mjs.map +1 -1
  472. package/batteries/validation.cjs +8 -9
  473. package/batteries/validation.cjs.map +1 -1
  474. package/batteries/validation.mjs +4 -5
  475. package/batteries/validation.mjs.map +1 -1
  476. package/batteries/vector/arangodb.cjs +2 -2
  477. package/batteries/vector/arangodb.cjs.map +1 -1
  478. package/batteries/vector/arangodb.mjs +1 -1
  479. package/batteries/vector/chroma.cjs +1 -1
  480. package/batteries/vector/chroma.mjs +1 -1
  481. package/batteries/vector/clickhouse.cjs +3 -3
  482. package/batteries/vector/clickhouse.cjs.map +1 -1
  483. package/batteries/vector/clickhouse.mjs +2 -2
  484. package/batteries/vector/cloudflare.cjs +3 -3
  485. package/batteries/vector/cloudflare.cjs.map +1 -1
  486. package/batteries/vector/cloudflare.mjs +2 -2
  487. package/batteries/vector/couchbase.cjs +3 -3
  488. package/batteries/vector/couchbase.cjs.map +1 -1
  489. package/batteries/vector/couchbase.mjs +2 -2
  490. package/batteries/vector/duckdb.cjs +3 -3
  491. package/batteries/vector/duckdb.cjs.map +1 -1
  492. package/batteries/vector/duckdb.mjs +2 -2
  493. package/batteries/vector/elasticsearch.cjs +3 -3
  494. package/batteries/vector/elasticsearch.cjs.map +1 -1
  495. package/batteries/vector/elasticsearch.mjs +2 -2
  496. package/batteries/vector/filters.cjs +2 -2
  497. package/batteries/vector/filters.cjs.map +1 -1
  498. package/batteries/vector/filters.mjs +1 -1
  499. package/batteries/vector/hnswlib.cjs +3 -3
  500. package/batteries/vector/hnswlib.cjs.map +1 -1
  501. package/batteries/vector/hnswlib.mjs +2 -2
  502. package/batteries/vector/in_memory.cjs +1 -1
  503. package/batteries/vector/in_memory.mjs +1 -1
  504. package/batteries/vector/lancedb.cjs +3 -3
  505. package/batteries/vector/lancedb.cjs.map +1 -1
  506. package/batteries/vector/lancedb.mjs +2 -2
  507. package/batteries/vector/mariadb.cjs +3 -3
  508. package/batteries/vector/mariadb.cjs.map +1 -1
  509. package/batteries/vector/mariadb.mjs +2 -2
  510. package/batteries/vector/meilisearch.cjs +2 -2
  511. package/batteries/vector/meilisearch.cjs.map +1 -1
  512. package/batteries/vector/meilisearch.mjs +1 -1
  513. package/batteries/vector/migrate.cjs +3 -3
  514. package/batteries/vector/migrate.cjs.map +1 -1
  515. package/batteries/vector/migrate.mjs +1 -1
  516. package/batteries/vector/milvus.cjs +1 -1
  517. package/batteries/vector/milvus.mjs +1 -1
  518. package/batteries/vector/mongodb.cjs +2 -2
  519. package/batteries/vector/mongodb.cjs.map +1 -1
  520. package/batteries/vector/mongodb.mjs +1 -1
  521. package/batteries/vector/neo4j.cjs +2 -2
  522. package/batteries/vector/neo4j.cjs.map +1 -1
  523. package/batteries/vector/neo4j.mjs +1 -1
  524. package/batteries/vector/opensearch.cjs +3 -3
  525. package/batteries/vector/opensearch.cjs.map +1 -1
  526. package/batteries/vector/opensearch.mjs +2 -2
  527. package/batteries/vector/oracle23ai.cjs +3 -3
  528. package/batteries/vector/oracle23ai.cjs.map +1 -1
  529. package/batteries/vector/oracle23ai.mjs +2 -2
  530. package/batteries/vector/orama.cjs +1 -1
  531. package/batteries/vector/orama.mjs +1 -1
  532. package/batteries/vector/pgvector.cjs +1 -1
  533. package/batteries/vector/pgvector.mjs +1 -1
  534. package/batteries/vector/pinecone.cjs +7 -7
  535. package/batteries/vector/pinecone.cjs.map +1 -1
  536. package/batteries/vector/pinecone.mjs +2 -2
  537. package/batteries/vector/qdrant.cjs +1 -1
  538. package/batteries/vector/qdrant.mjs +1 -1
  539. package/batteries/vector/redis.cjs +3 -3
  540. package/batteries/vector/redis.cjs.map +1 -1
  541. package/batteries/vector/redis.mjs +2 -2
  542. package/batteries/vector/retrievable.cjs +3 -3
  543. package/batteries/vector/retrievable.cjs.map +1 -1
  544. package/batteries/vector/retrievable.mjs +2 -2
  545. package/batteries/vector/retrievable.mjs.map +1 -1
  546. package/batteries/vector/retrievable_glue.d.ts +1 -1
  547. package/batteries/vector/s3vectors.cjs +3 -3
  548. package/batteries/vector/s3vectors.cjs.map +1 -1
  549. package/batteries/vector/s3vectors.mjs +2 -2
  550. package/batteries/vector/solr.cjs +2 -2
  551. package/batteries/vector/solr.cjs.map +1 -1
  552. package/batteries/vector/solr.mjs +1 -1
  553. package/batteries/vector/sqlite_vec.cjs +1 -1
  554. package/batteries/vector/sqlite_vec.mjs +1 -1
  555. package/batteries/vector/surrealdb.cjs +2 -2
  556. package/batteries/vector/surrealdb.cjs.map +1 -1
  557. package/batteries/vector/surrealdb.mjs +1 -1
  558. package/batteries/vector/typesense.cjs +3 -3
  559. package/batteries/vector/typesense.cjs.map +1 -1
  560. package/batteries/vector/typesense.mjs +2 -2
  561. package/batteries/vector/vespa.cjs +3 -3
  562. package/batteries/vector/vespa.cjs.map +1 -1
  563. package/batteries/vector/vespa.mjs +2 -2
  564. package/batteries/vector/weaviate.cjs +6 -6
  565. package/batteries/vector/weaviate.cjs.map +1 -1
  566. package/batteries/vector/weaviate.mjs +2 -2
  567. package/batteries/vector.cjs +2 -2
  568. package/batteries/vector.mjs +2 -2
  569. package/batteries.cjs +11 -11
  570. package/batteries.mjs +11 -11
  571. package/{chat_common-vSxDBGgr.cjs → chat_common-BZQ6QN77.cjs} +3 -3
  572. package/{chat_common-vSxDBGgr.cjs.map → chat_common-BZQ6QN77.cjs.map} +1 -1
  573. package/{chat_common-DKw8FDol.mjs → chat_common-CAFrTpvs.mjs} +3 -3
  574. package/{chat_common-DKw8FDol.mjs.map → chat_common-CAFrTpvs.mjs.map} +1 -1
  575. package/common-4_EYYb5H.mjs +245 -0
  576. package/common-4_EYYb5H.mjs.map +1 -0
  577. package/{common-BcB05Isq.cjs → common-BT__XgLn.cjs} +79 -10
  578. package/common-BT__XgLn.cjs.map +1 -0
  579. package/common-CKbae_Ra.cjs +291 -0
  580. package/common-CKbae_Ra.cjs.map +1 -0
  581. package/{common-oI1niK9Z.mjs → common-DbmmAC1w.mjs} +59 -9
  582. package/common-DbmmAC1w.mjs.map +1 -0
  583. package/common.cjs +23 -8
  584. package/common.d.ts +1 -0
  585. package/common.mjs +10 -8
  586. package/{dispatch_runner-CTAI0RSs.cjs → dispatch_runner-DHTpg5ie.cjs} +27 -72
  587. package/dispatch_runner-DHTpg5ie.cjs.map +1 -0
  588. package/{dispatch_runner-BZDXUe0G.mjs → dispatch_runner-DNd4RRld.mjs} +5 -44
  589. package/dispatch_runner-DNd4RRld.mjs.map +1 -0
  590. package/dispatch_runner.cjs +1 -1
  591. package/dispatch_runner.mjs +1 -1
  592. package/{ecmascript-DOv8gVQ5.cjs → ecmascript-BKsuzhuQ.cjs} +6 -6
  593. package/{ecmascript-DOv8gVQ5.cjs.map → ecmascript-BKsuzhuQ.cjs.map} +1 -1
  594. package/{ecmascript-B9Z2C24U.mjs → ecmascript-BfW5n6QN.mjs} +4 -4
  595. package/{ecmascript-B9Z2C24U.mjs.map → ecmascript-BfW5n6QN.mjs.map} +1 -1
  596. package/{escape-BsshN2Mx.cjs → escape-4Pwr62ix.cjs} +2 -2
  597. package/{escape-BsshN2Mx.cjs.map → escape-4Pwr62ix.cjs.map} +1 -1
  598. package/{escape-WjKeWGgG.mjs → escape-ClQqT_m1.mjs} +2 -2
  599. package/{escape-WjKeWGgG.mjs.map → escape-ClQqT_m1.mjs.map} +1 -1
  600. package/eslint/index.d.ts +16 -0
  601. package/eslint/rules/artifact_tool_forbids_artifact_constructor.cjs +1 -1
  602. package/eslint/rules/artifact_tool_forbids_artifact_constructor.mjs +1 -1
  603. package/eslint/rules/common.d.ts +76 -0
  604. package/eslint/rules/create_exception_args_array.cjs +285 -0
  605. package/eslint/rules/create_exception_args_array.cjs.map +1 -0
  606. package/eslint/rules/create_exception_args_array.d.ts +47 -0
  607. package/eslint/rules/create_exception_args_array.mjs +281 -0
  608. package/eslint/rules/create_exception_args_array.mjs.map +1 -0
  609. package/eslint/rules/index.d.ts +16 -0
  610. package/eslint/rules/no_model_in_tool_handler.cjs +1 -1
  611. package/eslint/rules/no_model_in_tool_handler.mjs +1 -1
  612. package/eslint/rules/require_string_empty_disposition.cjs +1 -1
  613. package/eslint/rules/require_string_empty_disposition.mjs +1 -1
  614. package/eslint/rules/require_validator_any_required.cjs +1 -1
  615. package/eslint/rules/require_validator_any_required.mjs +1 -1
  616. package/eslint/rules/thought_payload_requires_replay_tag.cjs +1 -1
  617. package/eslint/rules/thought_payload_requires_replay_tag.mjs +1 -1
  618. package/eslint/rules/token_encoding_requires_context_window.cjs +1 -1
  619. package/eslint/rules/token_encoding_requires_context_window.mjs +1 -1
  620. package/eslint/rules/tool_name_provider_safe.cjs +93 -0
  621. package/eslint/rules/tool_name_provider_safe.cjs.map +1 -0
  622. package/eslint/rules/tool_name_provider_safe.d.ts +34 -0
  623. package/eslint/rules/tool_name_provider_safe.mjs +89 -0
  624. package/eslint/rules/tool_name_provider_safe.mjs.map +1 -0
  625. package/eslint/rules.cjs +8 -0
  626. package/eslint/rules.mjs +4 -1
  627. package/eslint.cjs +10 -2
  628. package/eslint.cjs.map +1 -1
  629. package/eslint.mjs +8 -3
  630. package/eslint.mjs.map +1 -1
  631. package/{exceptions-DbpDv4x5.cjs → exceptions-C5R2UaIP.cjs} +2 -1
  632. package/exceptions-C5R2UaIP.cjs.map +1 -0
  633. package/{exceptions-Cf1zCfzZ.mjs → exceptions-CcJR5qk7.mjs} +2 -1
  634. package/exceptions-CcJR5qk7.mjs.map +1 -0
  635. package/exceptions.cjs +4 -1
  636. package/exceptions.mjs +3 -3
  637. package/factories.cjs +1 -0
  638. package/factories.mjs +2 -2
  639. package/forge.cjs +2 -2
  640. package/forge.mjs +2 -2
  641. package/guards.cjs +10 -11
  642. package/guards.cjs.map +1 -1
  643. package/guards.mjs +7 -8
  644. package/guards.mjs.map +1 -1
  645. package/{helpers-CiZnHmxC.cjs → helpers-BoNnuhNn.cjs} +5 -5
  646. package/{helpers-CiZnHmxC.cjs.map → helpers-BoNnuhNn.cjs.map} +1 -1
  647. package/{helpers-mbn_EsDV.mjs → helpers-D2qRXdx_.mjs} +4 -4
  648. package/{helpers-mbn_EsDV.mjs.map → helpers-D2qRXdx_.mjs.map} +1 -1
  649. package/index.cjs +36 -37
  650. package/index.cjs.map +1 -1
  651. package/index.mjs +11 -12
  652. package/index.mjs.map +1 -1
  653. package/{isolation-Du-MRsou.cjs → isolation-B4IsSXUv.cjs} +17 -17
  654. package/{isolation-Du-MRsou.cjs.map → isolation-B4IsSXUv.cjs.map} +1 -1
  655. package/{isolation-DF6VjWgE.mjs → isolation-UXhDxARR.mjs} +2 -2
  656. package/{isolation-DF6VjWgE.mjs.map → isolation-UXhDxARR.mjs.map} +1 -1
  657. package/lib/patch/index.d.ts +23 -0
  658. package/{patch-BbC0U8aR.mjs → lib/patch.cjs} +8 -53
  659. package/lib/patch.cjs.map +1 -0
  660. package/{patch-BXX9Q0FM.cjs → lib/patch.mjs} +2 -100
  661. package/lib/patch.mjs.map +1 -0
  662. package/{manifest-BPcrFRN4.cjs → manifest-DCN9O8kO.cjs} +5 -5
  663. package/{manifest-BPcrFRN4.cjs.map → manifest-DCN9O8kO.cjs.map} +1 -1
  664. package/{manifest-D8UTRohY.mjs → manifest-hW9JQ8QQ.mjs} +2 -2
  665. package/{manifest-D8UTRohY.mjs.map → manifest-hW9JQ8QQ.mjs.map} +1 -1
  666. package/mcp/adk-docs-corpus.json +2 -2
  667. package/node-CAWwm0Mf.mjs +980 -0
  668. package/node-CAWwm0Mf.mjs.map +1 -0
  669. package/node-CPC3U5Ho.cjs +1057 -0
  670. package/node-CPC3U5Ho.cjs.map +1 -0
  671. package/package.json +393 -368
  672. package/{predicates-CM27Z3TF.mjs → predicates--C9KLS20.mjs} +3 -2
  673. package/{predicates-CM27Z3TF.mjs.map → predicates--C9KLS20.mjs.map} +1 -1
  674. package/{predicates-Bzaa7gNI.cjs → predicates-Cv0sQtDx.cjs} +10 -9
  675. package/{predicates-Bzaa7gNI.cjs.map → predicates-Cv0sQtDx.cjs.map} +1 -1
  676. package/{retrievable-BOuQSDHF.cjs → retrievable_spool-C2BRXpb1.cjs} +61 -6
  677. package/retrievable_spool-C2BRXpb1.cjs.map +1 -0
  678. package/{retrievable-CXTAUuuv.mjs → retrievable_spool-DrORPPSb.mjs} +42 -5
  679. package/retrievable_spool-DrORPPSb.mjs.map +1 -0
  680. package/{scrapper-D8JuiZ-F.mjs → scrapper-BxIPORaC.mjs} +5 -5
  681. package/{scrapper-D8JuiZ-F.mjs.map → scrapper-BxIPORaC.mjs.map} +1 -1
  682. package/{scrapper-mSYpTJM4.cjs → scrapper-MmhYgHmu.cjs} +6 -6
  683. package/{scrapper-mSYpTJM4.cjs.map → scrapper-MmhYgHmu.cjs.map} +1 -1
  684. package/{searxng-g7srhFzs.mjs → searxng-CyHrxj3D.mjs} +5 -5
  685. package/{searxng-g7srhFzs.mjs.map → searxng-CyHrxj3D.mjs.map} +1 -1
  686. package/{searxng-Daodv0K4.cjs → searxng-DuvIf0aW.cjs} +6 -6
  687. package/{searxng-Daodv0K4.cjs.map → searxng-DuvIf0aW.cjs.map} +1 -1
  688. package/server.json +2 -2
  689. package/skills/adk-assembly/SKILL.md +2 -2
  690. package/{spooled_artifact-DZXsP4s1.cjs → spooled_artifact-B-inikuu.cjs} +736 -737
  691. package/spooled_artifact-B-inikuu.cjs.map +1 -0
  692. package/{spooled_artifact-Bw_7swIp.mjs → spooled_artifact-Caie8ZrX.mjs} +731 -732
  693. package/spooled_artifact-Caie8ZrX.mjs.map +1 -0
  694. package/spooled_artifact.cjs +2 -2
  695. package/spooled_artifact.mjs +2 -2
  696. package/{spooled_markdown_artifact-vd6eNtIP.mjs → spooled_markdown_artifact-BfklURci.mjs} +3 -4
  697. package/{spooled_markdown_artifact-vd6eNtIP.mjs.map → spooled_markdown_artifact-BfklURci.mjs.map} +1 -1
  698. package/{spooled_markdown_artifact-Bo0u8cRS.cjs → spooled_markdown_artifact-Dh0scEEJ.cjs} +7 -8
  699. package/{spooled_markdown_artifact-Bo0u8cRS.cjs.map → spooled_markdown_artifact-Dh0scEEJ.cjs.map} +1 -1
  700. package/{thought-CxSaF6Xf.mjs → thought-BkNYZa_A.mjs} +3 -4
  701. package/{thought-CxSaF6Xf.mjs.map → thought-BkNYZa_A.mjs.map} +1 -1
  702. package/{thought-C12mqaKQ.cjs → thought-CPpYN0ze.cjs} +13 -14
  703. package/{thought-C12mqaKQ.cjs.map → thought-CPpYN0ze.cjs.map} +1 -1
  704. package/{tokenizable-BcodRtoW.cjs → tokenizable-Cvi9uoKx.cjs} +98 -33
  705. package/tokenizable-Cvi9uoKx.cjs.map +1 -0
  706. package/{tokenizable-VB4Av8GF.mjs → tokenizable-Dko3WKnb.mjs} +79 -32
  707. package/tokenizable-Dko3WKnb.mjs.map +1 -0
  708. package/{tool_call-Cfaj-6zK.mjs → tool_call-CUNEC2aj.mjs} +3 -4
  709. package/{tool_call-Cfaj-6zK.mjs.map → tool_call-CUNEC2aj.mjs.map} +1 -1
  710. package/{tool_call-CsBOpKsg.cjs → tool_call-CmTaENGg.cjs} +9 -10
  711. package/{tool_call-CsBOpKsg.cjs.map → tool_call-CmTaENGg.cjs.map} +1 -1
  712. package/{tool_parsers-DgZhgxV8.mjs → tool_parsers-44xdB4Fr.mjs} +2 -2
  713. package/{tool_parsers-DgZhgxV8.mjs.map → tool_parsers-44xdB4Fr.mjs.map} +1 -1
  714. package/{tool_parsers-8_qO0a_F.cjs → tool_parsers-BhFobspT.cjs} +9 -9
  715. package/{tool_parsers-8_qO0a_F.cjs.map → tool_parsers-BhFobspT.cjs.map} +1 -1
  716. package/{tools-BjHXlDlV.cjs → tools-C8HV20Ks.cjs} +20 -20
  717. package/tools-C8HV20Ks.cjs.map +1 -0
  718. package/{tools-Vkfht7mU.mjs → tools-DW5YPnst.mjs} +9 -9
  719. package/tools-DW5YPnst.mjs.map +1 -0
  720. package/{toon-5c9ceKiU.cjs → toon-DXJL1ojB.cjs} +9 -9
  721. package/{toon-5c9ceKiU.cjs.map → toon-DXJL1ojB.cjs.map} +1 -1
  722. package/{toon-BSTQnHed.mjs → toon-DvgnYmHv.mjs} +5 -5
  723. package/{toon-BSTQnHed.mjs.map → toon-DvgnYmHv.mjs.map} +1 -1
  724. package/{transformers_js-7OzeS_Tp.cjs → transformers_js-Bwl_CEqC.cjs} +8 -6
  725. package/{transformers_js-7OzeS_Tp.cjs.map → transformers_js-Bwl_CEqC.cjs.map} +1 -1
  726. package/{transformers_js-p3lAkHFH.mjs → transformers_js-C-Vi6Bnw.mjs} +5 -3
  727. package/{transformers_js-p3lAkHFH.mjs.map → transformers_js-C-Vi6Bnw.mjs.map} +1 -1
  728. package/{turn_runner-BHHD6h77.mjs → turn_runner-DxVLjaRC.mjs} +4 -5
  729. package/{turn_runner-BHHD6h77.mjs.map → turn_runner-DxVLjaRC.mjs.map} +1 -1
  730. package/{turn_runner--tsMLLx4.cjs → turn_runner-Xfrg7YuT.cjs} +16 -17
  731. package/{turn_runner--tsMLLx4.cjs.map → turn_runner-Xfrg7YuT.cjs.map} +1 -1
  732. package/turn_runner.cjs +1 -1
  733. package/turn_runner.mjs +1 -1
  734. package/{types-PlgkkLqH.cjs → types-DWc7CEVU.cjs} +12 -10
  735. package/types-DWc7CEVU.cjs.map +1 -0
  736. package/{types-BRG2MDAN.mjs → types-kh4rhOoZ.mjs} +5 -3
  737. package/types-kh4rhOoZ.mjs.map +1 -0
  738. package/{validate-tUm9MY8y.cjs → validate-CJdOu8z7.cjs} +7 -7
  739. package/{validate-tUm9MY8y.cjs.map → validate-CJdOu8z7.cjs.map} +1 -1
  740. package/{validate-Bi7FGjoq.mjs → validate-DgNstY9b.mjs} +2 -2
  741. package/{validate-Bi7FGjoq.mjs.map → validate-DgNstY9b.mjs.map} +1 -1
  742. package/{xml-CYseDztH.mjs → xml-CEM2Icoo.mjs} +5 -5
  743. package/{xml-CYseDztH.mjs.map → xml-CEM2Icoo.mjs.map} +1 -1
  744. package/{xml-DTOnPN52.cjs → xml-pOk2p9F1.cjs} +16 -16
  745. package/{xml-DTOnPN52.cjs.map → xml-pOk2p9F1.cjs.map} +1 -1
  746. package/{yaml-BPBoiOjx.mjs → yaml-CWxZn3C4.mjs} +5 -5
  747. package/{yaml-BPBoiOjx.mjs.map → yaml-CWxZn3C4.mjs.map} +1 -1
  748. package/{yaml-CMrbNWLc.cjs → yaml-DbLMonuT.cjs} +16 -16
  749. package/{yaml-CMrbNWLc.cjs.map → yaml-DbLMonuT.cjs.map} +1 -1
  750. package/artifact_methods-Cg0go7Q4.mjs +0 -1
  751. package/artifact_methods-Dtf4-3C-.cjs +0 -1
  752. package/batteries/sandbox/node.cjs.map +0 -1
  753. package/batteries/sandbox/node.mjs.map +0 -1
  754. package/common-BcB05Isq.cjs.map +0 -1
  755. package/common-BuVhq_3h.cjs +0 -147
  756. package/common-BuVhq_3h.cjs.map +0 -1
  757. package/common-CQVJccPS.mjs +0 -119
  758. package/common-CQVJccPS.mjs.map +0 -1
  759. package/common-oI1niK9Z.mjs.map +0 -1
  760. package/conformance-FncyAbRs.mjs +0 -101
  761. package/conformance-FncyAbRs.mjs.map +0 -1
  762. package/conformance-T1qEg8Sv.cjs +0 -106
  763. package/conformance-T1qEg8Sv.cjs.map +0 -1
  764. package/dispatch_runner-BZDXUe0G.mjs.map +0 -1
  765. package/dispatch_runner-CTAI0RSs.cjs.map +0 -1
  766. package/exceptions-Cf1zCfzZ.mjs.map +0 -1
  767. package/exceptions-DbpDv4x5.cjs.map +0 -1
  768. package/fs_node-B9wdxkWv.mjs +0 -268
  769. package/fs_node-B9wdxkWv.mjs.map +0 -1
  770. package/fs_node-CGGfCOME.cjs +0 -309
  771. package/fs_node-CGGfCOME.cjs.map +0 -1
  772. package/guards-5-XmJgD2.cjs +0 -70
  773. package/guards-5-XmJgD2.cjs.map +0 -1
  774. package/guards-BEpY7lBI.mjs +0 -53
  775. package/guards-BEpY7lBI.mjs.map +0 -1
  776. package/patch-BXX9Q0FM.cjs.map +0 -1
  777. package/patch-BbC0U8aR.mjs.map +0 -1
  778. package/retrievable-BOuQSDHF.cjs.map +0 -1
  779. package/retrievable-CXTAUuuv.mjs.map +0 -1
  780. package/spooled_artifact-Bw_7swIp.mjs.map +0 -1
  781. package/spooled_artifact-DZXsP4s1.cjs.map +0 -1
  782. package/tokenizable-BcodRtoW.cjs.map +0 -1
  783. package/tokenizable-VB4Av8GF.mjs.map +0 -1
  784. package/tools-BjHXlDlV.cjs.map +0 -1
  785. package/tools-Vkfht7mU.mjs.map +0 -1
  786. package/types-BRG2MDAN.mjs.map +0 -1
  787. package/types-PlgkkLqH.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -25,6 +25,76 @@ upgrading.
25
25
 
26
26
  ### Added
27
27
 
28
+ - **`adk/no-relative-import-from-battery`, the project-local lint rule enforcing the battery
29
+ barrel rule** (closes issue #52). Inside `src/batteries/<battery>/`, a relative specifier — in an
30
+ `import`, a named/star/`export type` re-export, a dynamic `import()` or a `require()` — may
31
+ resolve only within that same battery directory; anything crossing the boundary (a sibling
32
+ battery, `src/lib/**`, the harness root barrels) must go through a public `@nhtio/adk/...` barrel
33
+ exactly as an external consumer would. The `src/batteries/index.ts` aggregator is exempt. Ships
34
+ in `eslint-rules/` (report-only, like the other project-local rules), wired into
35
+ `@nhtio/adk`-scoped flat config at `error` over `src/batteries/**`, and listed in CONTRIBUTING §1
36
+ and `eslint-rules/README.md`, which now document six rules.
37
+ - **`@internal` helpers the batteries share with the harness are now exported (marked `@internal`,
38
+ therefore NOT covered by the semver-stability promise)** (closes issue #52). From
39
+ `@nhtio/adk/common`: `canonicalStringify`, `resampleTo`, `downmixToMono`, `autoSpoolRetrievable`,
40
+ the `ENCODE_METHOD`/`DECODE_METHOD` encoder keys, `isTextual`, `decodeText`, `runOnion`, and —
41
+ new in this follow-up — the retry helpers `computeBackoff`, `sleepWithJitter`, `parseRetryAfter`,
42
+ `linkAbortSignals` and the `BackoffConfig` type. From `@nhtio/adk/exceptions`: `passesSchema`, `validateOrThrow`,
43
+ `asyncValidateOrThrow`. From `@nhtio/adk/factories`: `isException`. From `@nhtio/adk/eslint`:
44
+ `unwrapExpression`, `collectImportBindings`, `resolveCalleeName` and the `ImportBindings` /
45
+ `ResolvedCalleeName` types.
46
+
47
+ ### Changed
48
+
49
+ - **All bundled batteries now import harness internals only through published barrels** (closes
50
+ issue #52). Every relative specifier under `src/batteries/**` that crossed its own battery
51
+ directory, and every `@nhtio/adk/lib/...` deep import whose target was not a published entry, now
52
+ resolves through `@nhtio/adk/common`, `.../guards`, `.../types`, `.../exceptions`,
53
+ `.../factories`, `.../eslint` or the batteries' own public subpaths — the same surface an
54
+ external consumer gets, so a consumer-side patch of a barrel is picked up by every battery, and a
55
+ battery can truthfully claim to depend only on the published package. Intra-battery imports stay
56
+ relative. The remaining `@nhtio/adk/lib/...` battery imports (`lib/patch`, `lib/utils/retry`,
57
+ `lib/helpers/bignum`) are published `@module` entries and stay.
58
+
59
+ All rules report-only; the rewrites need an import the rule cannot add.
60
+
61
+ ### Added
62
+
63
+ - **Footgun lint rules and build guards (closes issue #29).** Eight new report-only ESLint rules plus
64
+ three internal build guards, covering the mistakes that compile cleanly and then fail at the wire,
65
+ at construction time, or silently at runtime:
66
+ - **Core plugin** (`@nhtio/adk/eslint`, namespace `adk`, `error` in `recommended`):
67
+ `adk/tool-name-provider-safe` (a string-literal `Tool` name outside
68
+ `/^[A-Za-z_][A-Za-z0-9_-]{0,63}$/` — providers reject it at the wire, e.g. Gemini rejects a
69
+ leading digit or `-`; matched on this package's `Tool`, aliased or namespace-imported, never on
70
+ another library's identically-named class) and `adk/create-exception-args-array`
71
+ (`new E_X(<non-array>)` where `E_X` is a `const`/`let` `createException<[non-empty tuple]>` — in
72
+ the same file, through any spelling of the factory, or — under type-aware linting — an IMPORTED
73
+ exception class resolved by its constructor's args-tuple shape; the value is silently read as
74
+ `ExceptionOptions`, the payload is dropped and the message prints a literal `%s`).
75
+ - **New `@nhtio/adk/batteries/sandbox/lint`** (namespace `adk-sandbox`):
76
+ `no-network-disabled` (`warn` — `network: { disabled: true }` omits SRT's network
77
+ configuration, which means UNRESTRICTED network, not network-off; deny-all is `network: {}`),
78
+ `filesystem-read-default-allow` (`warn` — reads are deny-then-allow, so an `allowRead` list with
79
+ no broad `denyRead: ['/']` before it re-permits nothing and the whole host stays readable; a
80
+ `denyRead`-only policy is deliberately not reported) and `require-gate` (`error` —
81
+ `createRunShellCommandTool` / `createEvaluateJavascriptTool` throw
82
+ `E_SANDBOX_GATE_REQUIRED` at construction without a gate).
83
+ - **New `@nhtio/adk/batteries/skills/lint`** (namespace `adk-skills`): `require-gate` (`error` —
84
+ `createSkillManager` throws `E_INVALID_SKILLS_CONFIG` without one) and `no-unsafe-opt-in`
85
+ (`warn` — one finding per enabled `unsafe` control, naming the boundary it removes:
86
+ `isolatedToolsInProcess`, `scriptsPermissivePolicy`, `ungatedSkillTools`).
87
+ - **Build guards** (`tests/unit/build/*.node.spec.ts`): battery-module reachability (every
88
+ `src/batteries/**/*.ts` file must be `@module`-tagged or transitively imported by a tagged file;
89
+ the six current orphans — the standalone claude-code wrapper cluster and a deprecated
90
+ media/patch re-export shim — are an explicit commented allow-list, so any NEW orphan fails) and
91
+ the `@module` leaf-basename collision invariant (the 17 pre-existing duplicate leaves are
92
+ harmless under the tree-mirrored `dtsComplex` emit, so the guard instead asserts that no two
93
+ entries compute the same `types` output path, that the mirrored layout itself is still in place,
94
+ and that `getEntries` still rejects duplicate keys).
95
+ All rules are report-only (no autofix), conservative about spreads, non-literal arguments and
96
+ dynamic values, and documented in `docs/developer-tools/eslint-rules` (split into per-battery
97
+ sub-pages).
28
98
  - **`@nhtio/adk/batteries/sandbox/node` — `srtBinarySandbox(enforcer, opts?)`, the concrete
29
99
  `BinarySandbox` implementor for the SRT enforcer** (closes issue #37, closes issue #20). The sandbox
30
100
  battery could refuse and narrate invocations, but there was no bundled way to actually wrap a
@@ -0,0 +1 @@
1
+ require("./common-BT__XgLn.cjs");
@@ -0,0 +1 @@
1
+ import "./common-DbmmAC1w.mjs";
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_ecmascript = require("../../ecmascript-DOv8gVQ5.cjs");
2
+ const require_ecmascript = require("../../ecmascript-BKsuzhuQ.cjs");
3
3
  exports.E_TYPESCRIPT_PEER_MISSING = require_ecmascript.E_TYPESCRIPT_PEER_MISSING;
4
4
  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-BfW5n6QN.mjs";
2
2
  export { E_TYPESCRIPT_PEER_MISSING, SpooledEcmaScriptArtifact };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_toon = require("../../toon-5c9ceKiU.cjs");
2
+ const require_toon = require("../../toon-DXJL1ojB.cjs");
3
3
  exports.E_TOON_DECODE_FAILED = require_toon.E_TOON_DECODE_FAILED;
4
4
  exports.E_TOON_PEER_MISSING = require_toon.E_TOON_PEER_MISSING;
5
5
  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-DvgnYmHv.mjs";
2
2
  export { E_TOON_DECODE_FAILED, E_TOON_PEER_MISSING, SpooledToonArtifact, jsonToToonTool, toonToJsonTool };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_xml = require("../../xml-DTOnPN52.cjs");
2
+ const require_xml = require("../../xml-pOk2p9F1.cjs");
3
3
  exports.E_XML_PARSER_PEER_MISSING = require_xml.E_XML_PARSER_PEER_MISSING;
4
4
  exports.E_XML_PARSE_FAILED = require_xml.E_XML_PARSE_FAILED;
5
5
  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-CEM2Icoo.mjs";
2
2
  export { E_XML_PARSER_PEER_MISSING, E_XML_PARSE_FAILED, SpooledXmlArtifact, jsonToXmlTool, xmlToJsonTool };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_yaml = require("../../yaml-CMrbNWLc.cjs");
2
+ const require_yaml = require("../../yaml-DbLMonuT.cjs");
3
3
  exports.E_YAML_PARSE_ERROR = require_yaml.E_YAML_PARSE_ERROR;
4
4
  exports.E_YAML_PEER_MISSING = require_yaml.E_YAML_PEER_MISSING;
5
5
  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-CWxZn3C4.mjs";
2
2
  export { E_YAML_PARSE_ERROR, E_YAML_PEER_MISSING, SpooledYamlArtifact, jsonToYamlTool, yamlToJsonTool };
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_toon = require("../toon-5c9ceKiU.cjs");
3
- const require_yaml = require("../yaml-CMrbNWLc.cjs");
4
- const require_xml = require("../xml-DTOnPN52.cjs");
5
- const require_ecmascript = require("../ecmascript-DOv8gVQ5.cjs");
2
+ const require_toon = require("../toon-DXJL1ojB.cjs");
3
+ const require_yaml = require("../yaml-DbLMonuT.cjs");
4
+ const require_xml = require("../xml-pOk2p9F1.cjs");
5
+ const require_ecmascript = require("../ecmascript-BKsuzhuQ.cjs");
6
6
  //#region src/batteries/artifacts/index.ts
7
7
  /**
8
8
  * 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-DvgnYmHv.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-CWxZn3C4.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-CEM2Icoo.mjs";
4
+ import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-BfW5n6QN.mjs";
5
5
  //#region src/batteries/artifacts/index.ts
6
6
  /**
7
7
  * Registers the four artifact classes with the '@nhtio/encoder' decoder.
@@ -74,7 +74,7 @@
74
74
  * ```ts
75
75
  * import { assembleCompactedTurns, type SummarizeFn } from '@nhtio/adk/batteries/context/compact'
76
76
  * import { groupHistoryIntoTurns } from '@nhtio/adk/batteries/context/thrift'
77
- * import { Tokenizable } from '@nhtio/adk'
77
+ * import { Tokenizable } from '@nhtio/adk/common'
78
78
  *
79
79
  * // A stub SummarizeFn — see the contract's TSDoc for the real DispatchRunner recipe.
80
80
  * const summarize: SummarizeFn = async ({ system, text }) => {
@@ -40,7 +40,7 @@ require("../../factories.cjs");
40
40
  *
41
41
  * @example
42
42
  * ```ts
43
- * import { isInstanceOf } from '@nhtio/adk'
43
+ * import { isInstanceOf } from '@nhtio/adk/guards'
44
44
  *
45
45
  * try {
46
46
  * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)
@@ -1 +1 @@
1
- {"version":3,"file":"exceptions.cjs","names":[],"sources":["../../../src/batteries/context/exceptions.ts"],"sourcesContent":["/**\n * Shared exception for the context-management batteries — the one failure class `thrift` and\n * `compact` have in common.\n *\n * @module @nhtio/adk/batteries/context/exceptions\n *\n * @remarks\n * Both `thrift` (`subtractToFit`) and `compact` (`summariseTurns`, `assembleCompactedTurns`) require\n * a caller-injected resolver (`estimateTokens`, and for `compact` also `summarize`) because neither\n * battery bundles a tokenizer or a model transport of its own — see each battery's `contracts.ts` for\n * the \"surface, don't impose\" rationale. A missing resolver is the SAME failure shape in both\n * batteries (a required injected function wasn't supplied), so it is minted ONCE here rather than\n * duplicated per-battery. This module lives at the `context` domain level (a sibling of `thrift/` and\n * `compact/`, not inside either) specifically so both can import it without either depending on the\n * other, and re-exports from `../index.ts` so a consumer of either battery's public barrel sees it\n * without a deep import. Minted via `createException` from `@nhtio/adk/factories`, matching every\n * other battery's exception convention.\n */\n\nimport { createException } from '@nhtio/adk/factories'\n\n/**\n * Thrown when a context-management battery function is called without a REQUIRED injected resolver\n * (`estimateTokens`, or — for Compact's `summarize` seam — the model-call function).\n *\n * @remarks\n * Both `@nhtio/adk/batteries/context/thrift` and `@nhtio/adk/batteries/context/compact` ship with no\n * bundled tokenizer and (for Compact) no bundled model transport — every capability they cannot\n * perform themselves is an INJECTED function the caller must supply. Omitting one is a caller\n * programming error (a wiring mistake, not a runtime condition to recover from): rather than let the\n * omission surface later as a confusing `undefined is not a function` deep inside the algorithm, every\n * entry point checks eagerly and throws this, naming both the missing option and the function that\n * needed it, so the fix is obvious at the call site. Fatal — construct the missing resolver and retry;\n * there is no degrade-and-continue path, because a battery with no way to measure tokens (or, for\n * Compact, no way to call a model) cannot make progress at all.\n *\n * Printf args: `[functionName, missingOption]` — e.g. `['subtractToFit', 'estimateTokens']` or\n * `['summariseTurns', 'summarize']`.\n *\n * @example\n * ```ts\n * import { isInstanceOf } from '@nhtio/adk'\n *\n * try {\n * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)\n * } catch (err) {\n * if (isInstanceOf(err, 'E_CONTEXT_RESOLVER_MISSING')) {\n * // err.message: \"subtractToFit: options.estimateTokens is required — this context-management\n * // battery ships with no bundled tokenizer/model transport of its own.\"\n * }\n * }\n * ```\n */\nexport const E_CONTEXT_RESOLVER_MISSING = createException<[string, string]>(\n 'E_CONTEXT_RESOLVER_MISSING',\n '%s: options.%s is required — this context-management battery ships with no bundled tokenizer/model transport of its own.',\n 'E_CONTEXT_RESOLVER_MISSING',\n 422,\n true\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,6BAA6B,mBAAA,gBACxC,8BACA,4HACA,8BACA,KACA,IACF"}
1
+ {"version":3,"file":"exceptions.cjs","names":[],"sources":["../../../src/batteries/context/exceptions.ts"],"sourcesContent":["/**\n * Shared exception for the context-management batteries — the one failure class `thrift` and\n * `compact` have in common.\n *\n * @module @nhtio/adk/batteries/context/exceptions\n *\n * @remarks\n * Both `thrift` (`subtractToFit`) and `compact` (`summariseTurns`, `assembleCompactedTurns`) require\n * a caller-injected resolver (`estimateTokens`, and for `compact` also `summarize`) because neither\n * battery bundles a tokenizer or a model transport of its own — see each battery's `contracts.ts` for\n * the \"surface, don't impose\" rationale. A missing resolver is the SAME failure shape in both\n * batteries (a required injected function wasn't supplied), so it is minted ONCE here rather than\n * duplicated per-battery. This module lives at the `context` domain level (a sibling of `thrift/` and\n * `compact/`, not inside either) specifically so both can import it without either depending on the\n * other, and re-exports from `../index.ts` so a consumer of either battery's public barrel sees it\n * without a deep import. Minted via `createException` from `@nhtio/adk/factories`, matching every\n * other battery's exception convention.\n */\n\nimport { createException } from '@nhtio/adk/factories'\n\n/**\n * Thrown when a context-management battery function is called without a REQUIRED injected resolver\n * (`estimateTokens`, or — for Compact's `summarize` seam — the model-call function).\n *\n * @remarks\n * Both `@nhtio/adk/batteries/context/thrift` and `@nhtio/adk/batteries/context/compact` ship with no\n * bundled tokenizer and (for Compact) no bundled model transport — every capability they cannot\n * perform themselves is an INJECTED function the caller must supply. Omitting one is a caller\n * programming error (a wiring mistake, not a runtime condition to recover from): rather than let the\n * omission surface later as a confusing `undefined is not a function` deep inside the algorithm, every\n * entry point checks eagerly and throws this, naming both the missing option and the function that\n * needed it, so the fix is obvious at the call site. Fatal — construct the missing resolver and retry;\n * there is no degrade-and-continue path, because a battery with no way to measure tokens (or, for\n * Compact, no way to call a model) cannot make progress at all.\n *\n * Printf args: `[functionName, missingOption]` — e.g. `['subtractToFit', 'estimateTokens']` or\n * `['summariseTurns', 'summarize']`.\n *\n * @example\n * ```ts\n * import { isInstanceOf } from '@nhtio/adk/guards'\n *\n * try {\n * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)\n * } catch (err) {\n * if (isInstanceOf(err, 'E_CONTEXT_RESOLVER_MISSING')) {\n * // err.message: \"subtractToFit: options.estimateTokens is required — this context-management\n * // battery ships with no bundled tokenizer/model transport of its own.\"\n * }\n * }\n * ```\n */\nexport const E_CONTEXT_RESOLVER_MISSING = createException<[string, string]>(\n 'E_CONTEXT_RESOLVER_MISSING',\n '%s: options.%s is required — this context-management battery ships with no bundled tokenizer/model transport of its own.',\n 'E_CONTEXT_RESOLVER_MISSING',\n 422,\n true\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,6BAA6B,mBAAA,gBACxC,8BACA,4HACA,8BACA,KACA,IACF"}
@@ -36,7 +36,7 @@
36
36
  *
37
37
  * @example
38
38
  * ```ts
39
- * import { isInstanceOf } from '@nhtio/adk'
39
+ * import { isInstanceOf } from '@nhtio/adk/guards'
40
40
  *
41
41
  * try {
42
42
  * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)
@@ -39,7 +39,7 @@ import "../../factories.mjs";
39
39
  *
40
40
  * @example
41
41
  * ```ts
42
- * import { isInstanceOf } from '@nhtio/adk'
42
+ * import { isInstanceOf } from '@nhtio/adk/guards'
43
43
  *
44
44
  * try {
45
45
  * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)
@@ -1 +1 @@
1
- {"version":3,"file":"exceptions.mjs","names":[],"sources":["../../../src/batteries/context/exceptions.ts"],"sourcesContent":["/**\n * Shared exception for the context-management batteries — the one failure class `thrift` and\n * `compact` have in common.\n *\n * @module @nhtio/adk/batteries/context/exceptions\n *\n * @remarks\n * Both `thrift` (`subtractToFit`) and `compact` (`summariseTurns`, `assembleCompactedTurns`) require\n * a caller-injected resolver (`estimateTokens`, and for `compact` also `summarize`) because neither\n * battery bundles a tokenizer or a model transport of its own — see each battery's `contracts.ts` for\n * the \"surface, don't impose\" rationale. A missing resolver is the SAME failure shape in both\n * batteries (a required injected function wasn't supplied), so it is minted ONCE here rather than\n * duplicated per-battery. This module lives at the `context` domain level (a sibling of `thrift/` and\n * `compact/`, not inside either) specifically so both can import it without either depending on the\n * other, and re-exports from `../index.ts` so a consumer of either battery's public barrel sees it\n * without a deep import. Minted via `createException` from `@nhtio/adk/factories`, matching every\n * other battery's exception convention.\n */\n\nimport { createException } from '@nhtio/adk/factories'\n\n/**\n * Thrown when a context-management battery function is called without a REQUIRED injected resolver\n * (`estimateTokens`, or — for Compact's `summarize` seam — the model-call function).\n *\n * @remarks\n * Both `@nhtio/adk/batteries/context/thrift` and `@nhtio/adk/batteries/context/compact` ship with no\n * bundled tokenizer and (for Compact) no bundled model transport — every capability they cannot\n * perform themselves is an INJECTED function the caller must supply. Omitting one is a caller\n * programming error (a wiring mistake, not a runtime condition to recover from): rather than let the\n * omission surface later as a confusing `undefined is not a function` deep inside the algorithm, every\n * entry point checks eagerly and throws this, naming both the missing option and the function that\n * needed it, so the fix is obvious at the call site. Fatal — construct the missing resolver and retry;\n * there is no degrade-and-continue path, because a battery with no way to measure tokens (or, for\n * Compact, no way to call a model) cannot make progress at all.\n *\n * Printf args: `[functionName, missingOption]` — e.g. `['subtractToFit', 'estimateTokens']` or\n * `['summariseTurns', 'summarize']`.\n *\n * @example\n * ```ts\n * import { isInstanceOf } from '@nhtio/adk'\n *\n * try {\n * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)\n * } catch (err) {\n * if (isInstanceOf(err, 'E_CONTEXT_RESOLVER_MISSING')) {\n * // err.message: \"subtractToFit: options.estimateTokens is required — this context-management\n * // battery ships with no bundled tokenizer/model transport of its own.\"\n * }\n * }\n * ```\n */\nexport const E_CONTEXT_RESOLVER_MISSING = createException<[string, string]>(\n 'E_CONTEXT_RESOLVER_MISSING',\n '%s: options.%s is required — this context-management battery ships with no bundled tokenizer/model transport of its own.',\n 'E_CONTEXT_RESOLVER_MISSING',\n 422,\n true\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,6BAA6B,gBACxC,8BACA,4HACA,8BACA,KACA,IACF"}
1
+ {"version":3,"file":"exceptions.mjs","names":[],"sources":["../../../src/batteries/context/exceptions.ts"],"sourcesContent":["/**\n * Shared exception for the context-management batteries — the one failure class `thrift` and\n * `compact` have in common.\n *\n * @module @nhtio/adk/batteries/context/exceptions\n *\n * @remarks\n * Both `thrift` (`subtractToFit`) and `compact` (`summariseTurns`, `assembleCompactedTurns`) require\n * a caller-injected resolver (`estimateTokens`, and for `compact` also `summarize`) because neither\n * battery bundles a tokenizer or a model transport of its own — see each battery's `contracts.ts` for\n * the \"surface, don't impose\" rationale. A missing resolver is the SAME failure shape in both\n * batteries (a required injected function wasn't supplied), so it is minted ONCE here rather than\n * duplicated per-battery. This module lives at the `context` domain level (a sibling of `thrift/` and\n * `compact/`, not inside either) specifically so both can import it without either depending on the\n * other, and re-exports from `../index.ts` so a consumer of either battery's public barrel sees it\n * without a deep import. Minted via `createException` from `@nhtio/adk/factories`, matching every\n * other battery's exception convention.\n */\n\nimport { createException } from '@nhtio/adk/factories'\n\n/**\n * Thrown when a context-management battery function is called without a REQUIRED injected resolver\n * (`estimateTokens`, or — for Compact's `summarize` seam — the model-call function).\n *\n * @remarks\n * Both `@nhtio/adk/batteries/context/thrift` and `@nhtio/adk/batteries/context/compact` ship with no\n * bundled tokenizer and (for Compact) no bundled model transport — every capability they cannot\n * perform themselves is an INJECTED function the caller must supply. Omitting one is a caller\n * programming error (a wiring mistake, not a runtime condition to recover from): rather than let the\n * omission surface later as a confusing `undefined is not a function` deep inside the algorithm, every\n * entry point checks eagerly and throws this, naming both the missing option and the function that\n * needed it, so the fix is obvious at the call site. Fatal — construct the missing resolver and retry;\n * there is no degrade-and-continue path, because a battery with no way to measure tokens (or, for\n * Compact, no way to call a model) cannot make progress at all.\n *\n * Printf args: `[functionName, missingOption]` — e.g. `['subtractToFit', 'estimateTokens']` or\n * `['summariseTurns', 'summarize']`.\n *\n * @example\n * ```ts\n * import { isInstanceOf } from '@nhtio/adk/guards'\n *\n * try {\n * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)\n * } catch (err) {\n * if (isInstanceOf(err, 'E_CONTEXT_RESOLVER_MISSING')) {\n * // err.message: \"subtractToFit: options.estimateTokens is required — this context-management\n * // battery ships with no bundled tokenizer/model transport of its own.\"\n * }\n * }\n * ```\n */\nexport const E_CONTEXT_RESOLVER_MISSING = createException<[string, string]>(\n 'E_CONTEXT_RESOLVER_MISSING',\n '%s: options.%s is required — this context-management battery ships with no bundled tokenizer/model transport of its own.',\n 'E_CONTEXT_RESOLVER_MISSING',\n 422,\n true\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,6BAA6B,gBACxC,8BACA,4HACA,8BACA,KACA,IACF"}
@@ -67,7 +67,7 @@
67
67
  *
68
68
  * ```ts
69
69
  * import { subtractToFit, type WorkingSet } from '@nhtio/adk/batteries/context/thrift'
70
- * import { Tokenizable } from '@nhtio/adk'
70
+ * import { Tokenizable } from '@nhtio/adk/common'
71
71
  *
72
72
  * const ws: WorkingSet = {
73
73
  * systemPrompt: mySystemPrompt, // a Tokenizable, or a plain string
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_conformance = require("../../conformance-T1qEg8Sv.cjs");
3
- exports.runSandboxConformance = require_conformance.runSandboxConformance;
2
+ const require_batteries_sandbox = require("../sandbox.cjs");
3
+ exports.runSandboxConformance = require_batteries_sandbox.runSandboxConformance;
@@ -1,2 +1,2 @@
1
- import { t as runSandboxConformance } from "../../conformance-FncyAbRs.mjs";
1
+ import { runSandboxConformance } from "../sandbox.mjs";
2
2
  export { runSandboxConformance };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_spooled_artifact = require("../../spooled_artifact-DZXsP4s1.cjs");
3
- require("../../common-BcB05Isq.cjs");
4
- const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-Bo0u8cRS.cjs");
2
+ const require_spooled_artifact = require("../../spooled_artifact-B-inikuu.cjs");
3
+ require("../../common-BT__XgLn.cjs");
4
+ const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-Dh0scEEJ.cjs");
5
5
  const require_arg_specs = require("../../arg_specs-iYmIM3wI.cjs");
6
6
  let _nhtio_validation = require("@nhtio/validation");
7
7
  //#region src/batteries/dev_tools/forge.ts
@@ -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-Caie8ZrX.mjs";
2
+ import "../../common-DbmmAC1w.mjs";
3
+ import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-BfklURci.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