@nhtio/adk 0.1.0-master-c9a643d0 → 0.1.0-master-d5b1e67b
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.
- package/CHANGELOG.md +62 -0
- package/artifact_methods-BvrEJnsV.js +1 -0
- package/artifact_methods-q52ETLwI.mjs +1 -0
- package/batteries/artifacts/ecmascript.cjs +1 -1
- package/batteries/artifacts/ecmascript.mjs +1 -1
- package/batteries/artifacts/toon.cjs +1 -1
- package/batteries/artifacts/toon.mjs +1 -1
- package/batteries/artifacts/xml.cjs +1 -1
- package/batteries/artifacts/xml.mjs +1 -1
- package/batteries/artifacts/yaml.cjs +1 -1
- package/batteries/artifacts/yaml.mjs +1 -1
- package/batteries/artifacts.cjs +4 -4
- package/batteries/artifacts.mjs +4 -4
- package/batteries/dev-tools/forge.cjs +3 -3
- package/batteries/dev-tools/forge.mjs +3 -3
- package/batteries/dev-tools.cjs +3 -3
- package/batteries/dev-tools.mjs +3 -3
- package/batteries/encoding.cjs +7 -7
- package/batteries/encoding.mjs +7 -7
- package/batteries/generation/gemini/adapter.cjs +1 -1
- package/batteries/generation/gemini/adapter.mjs +1 -1
- package/batteries/generation/local_diffusion/adapter.cjs +1 -1
- package/batteries/generation/local_diffusion/adapter.mjs +1 -1
- package/batteries/generation/openai/adapter.cjs +1 -1
- package/batteries/generation/openai/adapter.mjs +1 -1
- package/batteries/llm/anthropic_messages/adapter.cjs +6 -6
- package/batteries/llm/anthropic_messages/adapter.mjs +6 -6
- package/batteries/llm/anthropic_messages/count_tokens.cjs +1 -1
- package/batteries/llm/anthropic_messages/count_tokens.mjs +1 -1
- package/batteries/llm/anthropic_messages/helpers.cjs +3 -3
- package/batteries/llm/anthropic_messages/helpers.mjs +3 -3
- package/batteries/llm/anthropic_messages/validation.cjs +2 -2
- package/batteries/llm/anthropic_messages/validation.mjs +2 -2
- package/batteries/llm/anthropic_messages.cjs +2 -2
- package/batteries/llm/anthropic_messages.mjs +2 -2
- package/batteries/llm/bedrock_converse/adapter.cjs +7 -7
- package/batteries/llm/bedrock_converse/adapter.mjs +7 -7
- package/batteries/llm/bedrock_converse/helpers.cjs +1 -1
- package/batteries/llm/bedrock_converse/helpers.mjs +1 -1
- package/batteries/llm/bedrock_converse/validation.cjs +2 -2
- package/batteries/llm/bedrock_converse/validation.mjs +2 -2
- package/batteries/llm/bedrock_converse.cjs +3 -3
- package/batteries/llm/bedrock_converse.mjs +3 -3
- package/batteries/llm/claude_code_cli/adapter.cjs +6 -6
- package/batteries/llm/claude_code_cli/adapter.mjs +6 -6
- package/batteries/llm/claude_code_cli/helpers.cjs +3 -3
- package/batteries/llm/claude_code_cli/helpers.mjs +3 -3
- package/batteries/llm/claude_code_cli/validation.cjs +2 -2
- package/batteries/llm/claude_code_cli/validation.mjs +2 -2
- package/batteries/llm/claude_code_cli.cjs +1 -1
- package/batteries/llm/claude_code_cli.mjs +1 -1
- package/batteries/llm/gemini_generate_content/adapter.cjs +6 -6
- package/batteries/llm/gemini_generate_content/adapter.mjs +6 -6
- package/batteries/llm/gemini_generate_content/helpers.cjs +1 -1
- package/batteries/llm/gemini_generate_content/helpers.mjs +1 -1
- package/batteries/llm/gemini_generate_content/validation.cjs +2 -2
- package/batteries/llm/gemini_generate_content/validation.mjs +2 -2
- package/batteries/llm/gemini_generate_content.cjs +1 -1
- package/batteries/llm/gemini_generate_content.mjs +1 -1
- package/batteries/llm/litert_lm/adapter.cjs +6 -6
- package/batteries/llm/litert_lm/adapter.mjs +6 -6
- package/batteries/llm/litert_lm/helpers.cjs +3 -3
- package/batteries/llm/litert_lm/helpers.mjs +3 -3
- package/batteries/llm/litert_lm/validation.cjs +2 -2
- package/batteries/llm/litert_lm/validation.mjs +2 -2
- package/batteries/llm/litert_lm.cjs +1 -1
- package/batteries/llm/litert_lm.mjs +1 -1
- package/batteries/llm/ollama/adapter.cjs +6 -6
- package/batteries/llm/ollama/adapter.mjs +6 -6
- package/batteries/llm/ollama/helpers.cjs +4 -4
- package/batteries/llm/ollama/helpers.mjs +4 -4
- package/batteries/llm/ollama/validation.cjs +2 -2
- package/batteries/llm/ollama/validation.mjs +2 -2
- package/batteries/llm/ollama.cjs +2 -2
- package/batteries/llm/ollama.mjs +2 -2
- package/batteries/llm/openai_chat_completions/adapter.cjs +6 -6
- package/batteries/llm/openai_chat_completions/adapter.mjs +6 -6
- package/batteries/llm/openai_chat_completions/helpers.cjs +4 -4
- package/batteries/llm/openai_chat_completions/helpers.mjs +4 -4
- package/batteries/llm/openai_chat_completions/validation.cjs +2 -2
- package/batteries/llm/openai_chat_completions/validation.mjs +2 -2
- package/batteries/llm/openai_chat_completions.cjs +2 -2
- package/batteries/llm/openai_chat_completions.mjs +2 -2
- package/batteries/llm/openai_responses/adapter.cjs +6 -6
- package/batteries/llm/openai_responses/adapter.mjs +6 -6
- package/batteries/llm/openai_responses/helpers.cjs +3 -3
- package/batteries/llm/openai_responses/helpers.mjs +3 -3
- package/batteries/llm/openai_responses/validation.cjs +2 -2
- package/batteries/llm/openai_responses/validation.mjs +2 -2
- package/batteries/llm/openai_responses.cjs +2 -2
- package/batteries/llm/openai_responses.mjs +2 -2
- package/batteries/llm/transformers_js/adapter.cjs +6 -6
- package/batteries/llm/transformers_js/adapter.mjs +6 -6
- package/batteries/llm/transformers_js/helpers.cjs +3 -3
- package/batteries/llm/transformers_js/helpers.mjs +3 -3
- package/batteries/llm/transformers_js/validation.cjs +2 -2
- package/batteries/llm/transformers_js/validation.mjs +2 -2
- package/batteries/llm/transformers_js.cjs +1 -1
- package/batteries/llm/transformers_js.mjs +1 -1
- package/batteries/llm/webllm_chat_completions/adapter.cjs +6 -6
- package/batteries/llm/webllm_chat_completions/adapter.mjs +6 -6
- package/batteries/llm/webllm_chat_completions/helpers.cjs +1 -1
- package/batteries/llm/webllm_chat_completions/helpers.mjs +1 -1
- package/batteries/llm/webllm_chat_completions/validation.cjs +2 -2
- package/batteries/llm/webllm_chat_completions/validation.mjs +2 -2
- package/batteries/llm/webllm_chat_completions.cjs +2 -2
- package/batteries/llm/webllm_chat_completions.mjs +2 -2
- package/batteries/llm.cjs +2 -2
- package/batteries/llm.mjs +2 -2
- package/batteries/media/engines/audio_decode.cjs +1 -1
- package/batteries/media/engines/audio_decode.mjs +1 -1
- package/batteries/media/engines/data.cjs +1 -1
- package/batteries/media/engines/data.mjs +1 -1
- package/batteries/media/engines/exceljs.cjs +1 -1
- package/batteries/media/engines/exceljs.mjs +1 -1
- package/batteries/media/engines/jimp.cjs +1 -1
- package/batteries/media/engines/jimp.mjs +1 -1
- package/batteries/media/engines/sharp.cjs +1 -1
- package/batteries/media/engines/sharp.mjs +1 -1
- package/batteries/media/engines/sheetjs.cjs +1 -1
- package/batteries/media/engines/sheetjs.mjs +1 -1
- package/batteries/media/engines/soffice.cjs +1 -1
- package/batteries/media/engines/soffice.mjs +1 -1
- package/batteries/media/engines/transformers_asr.cjs +1 -1
- package/batteries/media/engines/transformers_asr.mjs +1 -1
- package/batteries/media/forge.cjs +6 -6
- package/batteries/media/forge.mjs +6 -6
- package/batteries/media/lint.cjs +1 -1
- package/batteries/media/lint.mjs +1 -1
- package/batteries/media.cjs +2 -2
- package/batteries/media.mjs +2 -2
- package/batteries/orchestration/dispatch_reasoner.cjs +4 -4
- package/batteries/orchestration/dispatch_reasoner.mjs +4 -4
- package/batteries/orchestration/executor.cjs +3 -3
- package/batteries/orchestration/executor.mjs +3 -3
- package/batteries/orchestration/forge.cjs +4 -4
- package/batteries/orchestration/forge.mjs +4 -4
- package/batteries/orchestration/validation.cjs +2 -2
- package/batteries/orchestration/validation.mjs +2 -2
- package/batteries/orchestration.cjs +6 -6
- package/batteries/orchestration.mjs +6 -6
- package/batteries/sandbox/js.cjs +1 -1
- package/batteries/sandbox/js.mjs +1 -1
- package/batteries/sandbox/tools.cjs +1 -1
- package/batteries/sandbox/tools.mjs +1 -1
- package/batteries/sandbox.cjs +3 -3
- package/batteries/sandbox.mjs +3 -3
- package/batteries/skills.cjs +9 -9
- package/batteries/skills.mjs +9 -9
- package/batteries/tools/_shared.cjs +1 -1
- package/batteries/tools/_shared.mjs +1 -1
- package/batteries/tools/color.cjs +2 -2
- package/batteries/tools/color.mjs +2 -2
- package/batteries/tools/comparison.cjs +2 -2
- package/batteries/tools/comparison.mjs +2 -2
- package/batteries/tools/data_structure.cjs +2 -2
- package/batteries/tools/data_structure.mjs +2 -2
- package/batteries/tools/datetime_extended.cjs +3 -3
- package/batteries/tools/datetime_extended.mjs +3 -3
- package/batteries/tools/datetime_math.cjs +3 -3
- package/batteries/tools/datetime_math.mjs +3 -3
- package/batteries/tools/encoding.cjs +2 -2
- package/batteries/tools/encoding.mjs +2 -2
- package/batteries/tools/formatting.cjs +2 -2
- package/batteries/tools/formatting.mjs +2 -2
- package/batteries/tools/geo_basics.cjs +2 -2
- package/batteries/tools/geo_basics.mjs +2 -2
- package/batteries/tools/math.cjs +2 -2
- package/batteries/tools/math.mjs +2 -2
- package/batteries/tools/memory.cjs +5 -5
- package/batteries/tools/memory.mjs +5 -5
- package/batteries/tools/parsing.cjs +3 -3
- package/batteries/tools/parsing.mjs +3 -3
- package/batteries/tools/retrievables.cjs +5 -5
- package/batteries/tools/retrievables.mjs +5 -5
- package/batteries/tools/scrapper.cjs +1 -1
- package/batteries/tools/scrapper.mjs +1 -1
- package/batteries/tools/searxng.cjs +1 -1
- package/batteries/tools/searxng.mjs +1 -1
- package/batteries/tools/standing_instructions.cjs +3 -3
- package/batteries/tools/standing_instructions.mjs +3 -3
- package/batteries/tools/statistics.cjs +3 -3
- package/batteries/tools/statistics.mjs +3 -3
- package/batteries/tools/string_processing.cjs +2 -2
- package/batteries/tools/string_processing.mjs +2 -2
- package/batteries/tools/structured_data.cjs +2 -2
- package/batteries/tools/structured_data.mjs +2 -2
- package/batteries/tools/text_analysis.cjs +3 -3
- package/batteries/tools/text_analysis.mjs +3 -3
- package/batteries/tools/text_comparison.cjs +2 -2
- package/batteries/tools/text_comparison.mjs +2 -2
- package/batteries/tools/time.cjs +3 -3
- package/batteries/tools/time.mjs +3 -3
- package/batteries/tools/unit_conversion.cjs +2 -2
- package/batteries/tools/unit_conversion.mjs +2 -2
- package/batteries/tools.cjs +2 -2
- package/batteries/tools.mjs +2 -2
- package/batteries/validation.cjs +4 -4
- package/batteries/validation.mjs +4 -4
- package/batteries/vector/retrievable.cjs +1 -1
- package/batteries/vector/retrievable.mjs +1 -1
- package/batteries.cjs +4 -4
- package/batteries.mjs +4 -4
- package/{chat_common-Dpan9moo.js → chat_common-CCQ9jw3X.js} +2 -2
- package/{chat_common-Dpan9moo.js.map → chat_common-CCQ9jw3X.js.map} +1 -1
- package/{chat_common-CmKV5Dz4.mjs → chat_common-CeoHwSsz.mjs} +2 -2
- package/{chat_common-CmKV5Dz4.mjs.map → chat_common-CeoHwSsz.mjs.map} +1 -1
- package/{common-BpdHIpQE.mjs → common-B5maOoF_.mjs} +7 -7
- package/{common-BpdHIpQE.mjs.map → common-B5maOoF_.mjs.map} +1 -1
- package/{common-H44Ik9ou.js → common-BkavXPjk.js} +7 -7
- package/{common-H44Ik9ou.js.map → common-BkavXPjk.js.map} +1 -1
- package/common.cjs +7 -7
- package/common.mjs +7 -7
- package/{dispatch_runner-BZDXUe0G.mjs → dispatch_runner-DO7jo_gl.mjs} +5 -5
- package/{dispatch_runner-BZDXUe0G.mjs.map → dispatch_runner-DO7jo_gl.mjs.map} +1 -1
- package/{dispatch_runner-CKhm-scw.js → dispatch_runner-_8k4Mw70.js} +5 -5
- package/{dispatch_runner-CKhm-scw.js.map → dispatch_runner-_8k4Mw70.js.map} +1 -1
- package/dispatch_runner.cjs +1 -1
- package/dispatch_runner.mjs +1 -1
- package/{ecmascript-DcmUQ9Jx.mjs → ecmascript-D1fxLTEc.mjs} +3 -3
- package/{ecmascript-DcmUQ9Jx.mjs.map → ecmascript-D1fxLTEc.mjs.map} +1 -1
- package/{ecmascript-CCtgamDh.js → ecmascript-D4tuQkJy.js} +3 -3
- package/{ecmascript-CCtgamDh.js.map → ecmascript-D4tuQkJy.js.map} +1 -1
- package/eslint.cjs +1 -1
- package/eslint.mjs +1 -1
- package/exceptions.cjs +1 -1
- package/exceptions.mjs +1 -1
- package/forge.cjs +2 -2
- package/forge.mjs +2 -2
- package/guards.cjs +7 -7
- package/guards.mjs +7 -7
- package/{helpers-CEjjkXso.js → helpers-BP6tW-J_.js} +3 -3
- package/{helpers-CEjjkXso.js.map → helpers-BP6tW-J_.js.map} +1 -1
- package/{helpers-BH7HTtkD.mjs → helpers-C1T0DV8Q.mjs} +3 -3
- package/{helpers-BH7HTtkD.mjs.map → helpers-C1T0DV8Q.mjs.map} +1 -1
- package/index.cjs +11 -11
- package/index.mjs +11 -11
- package/lib/classes/identity.d.ts +6 -3
- package/mcp/adk-docs-corpus.json +2 -2
- package/package.json +396 -396
- package/{retrievable-CXTAUuuv.mjs → retrievable-CrGKx4sc.mjs} +3 -3
- package/{retrievable-CXTAUuuv.mjs.map → retrievable-CrGKx4sc.mjs.map} +1 -1
- package/{retrievable-BTwjmPnl.js → retrievable-CyJtZVoh.js} +3 -3
- package/{retrievable-BTwjmPnl.js.map → retrievable-CyJtZVoh.js.map} +1 -1
- package/{scrapper-BCdUm8c8.mjs → scrapper-Bc7Hvj7l.mjs} +3 -3
- package/{scrapper-BCdUm8c8.mjs.map → scrapper-Bc7Hvj7l.mjs.map} +1 -1
- package/{scrapper--THANbzp.js → scrapper-UTLwdcaT.js} +3 -3
- package/{scrapper--THANbzp.js.map → scrapper-UTLwdcaT.js.map} +1 -1
- package/{searxng-B-LdaVUP.mjs → searxng-CrkaC5XW.mjs} +3 -3
- package/{searxng-B-LdaVUP.mjs.map → searxng-CrkaC5XW.mjs.map} +1 -1
- package/{searxng-DnT8SDiI.js → searxng-DWXt35ms.js} +3 -3
- package/{searxng-DnT8SDiI.js.map → searxng-DWXt35ms.js.map} +1 -1
- package/server.json +2 -2
- package/skills/adk-assembly/SKILL.md +2 -2
- package/{spooled_artifact-Bw_7swIp.mjs → spooled_artifact-BkOe4-j-.mjs} +731 -731
- package/spooled_artifact-BkOe4-j-.mjs.map +1 -0
- package/{spooled_artifact-BpcesRBv.js → spooled_artifact-DmxffAu4.js} +730 -730
- package/spooled_artifact-DmxffAu4.js.map +1 -0
- package/spooled_artifact.cjs +2 -2
- package/spooled_artifact.mjs +2 -2
- package/{spooled_markdown_artifact-wJPnE8Ij.js → spooled_markdown_artifact-DA2-gPsl.js} +3 -3
- package/{spooled_markdown_artifact-wJPnE8Ij.js.map → spooled_markdown_artifact-DA2-gPsl.js.map} +1 -1
- package/{spooled_markdown_artifact-vd6eNtIP.mjs → spooled_markdown_artifact-Dnl-lCGv.mjs} +3 -3
- package/{spooled_markdown_artifact-vd6eNtIP.mjs.map → spooled_markdown_artifact-Dnl-lCGv.mjs.map} +1 -1
- package/{thought-BE1KGEhV.mjs → thought-BrQt6HAb.mjs} +48 -7
- package/thought-BrQt6HAb.mjs.map +1 -0
- package/{thought-bS7O9O5H.js → thought-C5H8aHTa.js} +47 -6
- package/thought-C5H8aHTa.js.map +1 -0
- package/{tokenizable-BMZuGWRd.js → tokenizable-KwA7jyGQ.js} +29 -29
- package/{tokenizable-BMZuGWRd.js.map → tokenizable-KwA7jyGQ.js.map} +1 -1
- package/{tokenizable-VB4Av8GF.mjs → tokenizable-xPXj1AQX.mjs} +30 -30
- package/{tokenizable-VB4Av8GF.mjs.map → tokenizable-xPXj1AQX.mjs.map} +1 -1
- package/{tool_call-Cfaj-6zK.mjs → tool_call-8crmZsO8.mjs} +4 -4
- package/{tool_call-Cfaj-6zK.mjs.map → tool_call-8crmZsO8.mjs.map} +1 -1
- package/{tool_call-Fs_Uh5wQ.js → tool_call-BnaNbzc0.js} +4 -4
- package/{tool_call-Fs_Uh5wQ.js.map → tool_call-BnaNbzc0.js.map} +1 -1
- package/{tools-B3_8C78Q.mjs → tools-BC4NJqZD.mjs} +6 -6
- package/{tools-B3_8C78Q.mjs.map → tools-BC4NJqZD.mjs.map} +1 -1
- package/{tools-CqOcmHR8.js → tools-DARHLyMC.js} +6 -6
- package/{tools-CqOcmHR8.js.map → tools-DARHLyMC.js.map} +1 -1
- package/{toon-BSlr88px.mjs → toon-CMCyUK58.mjs} +5 -5
- package/{toon-BSlr88px.mjs.map → toon-CMCyUK58.mjs.map} +1 -1
- package/{toon-D71tkyI3.js → toon-zzsIF4wB.js} +5 -5
- package/{toon-D71tkyI3.js.map → toon-zzsIF4wB.js.map} +1 -1
- package/{turn_runner-BHHD6h77.mjs → turn_runner-BmVXcBZ2.mjs} +5 -5
- package/{turn_runner-BHHD6h77.mjs.map → turn_runner-BmVXcBZ2.mjs.map} +1 -1
- package/{turn_runner-DhLI7OTH.js → turn_runner-DzR9QIxo.js} +5 -5
- package/{turn_runner-DhLI7OTH.js.map → turn_runner-DzR9QIxo.js.map} +1 -1
- package/turn_runner.cjs +1 -1
- package/turn_runner.mjs +1 -1
- package/{validate-mklV00In.mjs → validate-Bi7FGjoq.mjs} +2 -2
- package/{validate-mklV00In.mjs.map → validate-Bi7FGjoq.mjs.map} +1 -1
- package/{validate-Bdny0rQn.js → validate-CkQI-48O.js} +2 -2
- package/{validate-Bdny0rQn.js.map → validate-CkQI-48O.js.map} +1 -1
- package/{xml-vyCZZiF_.mjs → xml-BL9pwTUC.mjs} +5 -5
- package/{xml-vyCZZiF_.mjs.map → xml-BL9pwTUC.mjs.map} +1 -1
- package/{xml-BeNvlifb.js → xml-Dys_ywkF.js} +5 -5
- package/{xml-BeNvlifb.js.map → xml-Dys_ywkF.js.map} +1 -1
- package/{yaml-DhLLa2cj.js → yaml-Bxaqth53.js} +5 -5
- package/{yaml-DhLLa2cj.js.map → yaml-Bxaqth53.js.map} +1 -1
- package/{yaml-Dtz0Bd7J.mjs → yaml-DeMZW6va.mjs} +5 -5
- package/{yaml-Dtz0Bd7J.mjs.map → yaml-DeMZW6va.mjs.map} +1 -1
- package/artifact_methods-CJDQ5Lv-.mjs +0 -1
- package/artifact_methods-D6k_82r3.js +0 -1
- package/spooled_artifact-BpcesRBv.js.map +0 -1
- package/spooled_artifact-Bw_7swIp.mjs.map +0 -1
- package/thought-BE1KGEhV.mjs.map +0 -1
- package/thought-bS7O9O5H.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,68 @@ 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-21
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **`@nhtio/adk/batteries/encoding` — a live `Identity` instance now encodes losslessly** (closes
|
|
23
|
+
issue #38). Constructing an ADK primitive (e.g. `Thought`/`Message`) from a live `Identity`
|
|
24
|
+
instance — as the runtime hands to storage callbacks — and then calling `encode()` threw
|
|
25
|
+
`E_ENCODING_FAILED`. Root cause: `Identity.schema` was a bare `validator.object` fragment, and a
|
|
26
|
+
Joi object schema *clones* whatever it validates; cloning an `Identity` produced a look-alike with
|
|
27
|
+
the right prototype but no private fields (the constructor never ran), so `[ENCODE_METHOD]` threw
|
|
28
|
+
reading them. `Identity.schema` is now an `alternatives(customPassthrough, rawObjectSchema)` that
|
|
29
|
+
returns a live instance unchanged — mirroring `Tokenizable.schema` — so string, `RawIdentity`, and
|
|
30
|
+
live-`Identity` inputs all encode and round-trip identically. The passthrough trusts an
|
|
31
|
+
unforgeable per-instance brand (a module-private `WeakSet` populated in the constructor), not a
|
|
32
|
+
`constructor.name` match, so a hand-rolled look-alike cannot bypass validation. Any non-branded
|
|
33
|
+
value — a plain `RawIdentity`, a hand-rolled look-alike, or a **foreign/cross-realm `Identity`**
|
|
34
|
+
(a second copy of the package in the dependency tree, which Joi clones into a prototype-only husk
|
|
35
|
+
with no private fields) — is rebuilt into a genuine local `Identity` after field validation, so
|
|
36
|
+
every consumer stores real, encodable state and a malformed value is rejected rather than retained
|
|
37
|
+
as a husk. An audit of the whole encodable surface (Tokenizable, Memory, Message, Thought,
|
|
38
|
+
Retrievable, ToolCall, Registry, Media, Tool, ToolRegistry) confirmed `Identity` was the only
|
|
39
|
+
affected schema; the rest already nest live instances through custom passthroughs or store them
|
|
40
|
+
without a validating clone.
|
|
41
|
+
|
|
42
|
+
### Internal
|
|
43
|
+
|
|
44
|
+
- **CI — the Node smoke sandbox installs the optional `@toon-format/toon` peer.** The TOON artifact
|
|
45
|
+
battery declares `@toon-format/toon` as an optional peer, but it was missing from the smoke job's
|
|
46
|
+
peer-install list, so the published-package smoke check exercised the TOON converter without its
|
|
47
|
+
parser present and the round-trip spec failed on master. Added it to `smoketester add`.
|
|
48
|
+
- **Tests — the orchestration end-to-end smoke spec imports from `@nhtio/adk`, not `src/`.** The spec
|
|
49
|
+
imported via relative `../../../../src/*` paths, which do not exist in the installed-package smoke
|
|
50
|
+
sandbox; it now imports the public subpaths like every other functional spec.
|
|
51
|
+
|
|
52
|
+
## 2026-09-13
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
|
|
56
|
+
- **LLM batteries — token accounting opt-out is typed and honoured.** Every adapter's
|
|
57
|
+
`tokenEncoding` option now accepts `TokenEncodingId | null`, matching the runtime schema
|
|
58
|
+
(which already defaulted to `null` to opt out of tiktoken accounting) so the public TypeScript
|
|
59
|
+
surface no longer rejects the documented opt-out. Unregistered encodings fall back to a
|
|
60
|
+
`text.length` heuristic instead of the previous fixed divisor. Bedrock Converse and Gemini
|
|
61
|
+
Generate Content additionally gained parity fixes: null-safe token accounting, corrected
|
|
62
|
+
preflight tool-overhead margins, and validation that mirrors the shared contract.
|
|
63
|
+
|
|
64
|
+
- **`@nhtio/adk/batteries/media` — repeated `image.annotate()` steps compose instead of
|
|
65
|
+
overwriting.** Fusing an image pipeline now concatenates the shape lists of every `annotate`
|
|
66
|
+
step in chronological order rather than keeping only the last, so
|
|
67
|
+
`.image.annotate(a).image.annotate(b)` marks the frame with `a` then `b`. Animated inputs are
|
|
68
|
+
annotated on every frame (the sharp `animated` option is applied on the source), and SVG
|
|
69
|
+
overlay geometry is validated.
|
|
70
|
+
|
|
71
|
+
- **`@nhtio/adk/batteries/sandbox` — abort listeners are released on every terminal path.**
|
|
72
|
+
The caller-signal forwarding listener is now removed idempotently on both child `error` and
|
|
73
|
+
`close`, so a failed spawn or a completed run no longer retains its `AbortController` (which
|
|
74
|
+
could kill a recycled PID). The run-abort listener is likewise released when the run settles.
|
|
75
|
+
|
|
76
|
+
- **`@nhtio/adk/batteries/vector` conformance — decoupled and sequential.** The shared
|
|
77
|
+
conformance suite runs its checks sequentially to avoid backend constraint races, clears its
|
|
78
|
+
timeout timers on every settlement path, and no longer depends on a test framework.
|
|
79
|
+
|
|
18
80
|
## 2026-09-12
|
|
19
81
|
|
|
20
82
|
### Added
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./common-BkavXPjk.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./common-B5maOoF_.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_ecmascript = require("../../ecmascript-
|
|
3
|
+
const require_ecmascript = require("../../ecmascript-D4tuQkJy.js");
|
|
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-
|
|
1
|
+
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-D1fxLTEc.mjs";
|
|
2
2
|
export { E_TYPESCRIPT_PEER_MISSING, SpooledEcmaScriptArtifact };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_toon = require("../../toon-
|
|
3
|
+
const require_toon = require("../../toon-zzsIF4wB.js");
|
|
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-
|
|
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-CMCyUK58.mjs";
|
|
2
2
|
export { E_TOON_DECODE_FAILED, E_TOON_PEER_MISSING, SpooledToonArtifact, jsonToToonTool, toonToJsonTool };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_xml = require("../../xml-
|
|
3
|
+
const require_xml = require("../../xml-Dys_ywkF.js");
|
|
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-
|
|
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-BL9pwTUC.mjs";
|
|
2
2
|
export { E_XML_PARSER_PEER_MISSING, E_XML_PARSE_FAILED, SpooledXmlArtifact, jsonToXmlTool, xmlToJsonTool };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_yaml = require("../../yaml-
|
|
3
|
+
const require_yaml = require("../../yaml-Bxaqth53.js");
|
|
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-
|
|
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-DeMZW6va.mjs";
|
|
2
2
|
export { E_YAML_PARSE_ERROR, E_YAML_PEER_MISSING, SpooledYamlArtifact, jsonToYamlTool, yamlToJsonTool };
|
package/batteries/artifacts.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_toon = require("../toon-
|
|
4
|
-
const require_yaml = require("../yaml-
|
|
5
|
-
const require_xml = require("../xml-
|
|
6
|
-
const require_ecmascript = require("../ecmascript-
|
|
3
|
+
const require_toon = require("../toon-zzsIF4wB.js");
|
|
4
|
+
const require_yaml = require("../yaml-Bxaqth53.js");
|
|
5
|
+
const require_xml = require("../xml-Dys_ywkF.js");
|
|
6
|
+
const require_ecmascript = require("../ecmascript-D4tuQkJy.js");
|
|
7
7
|
//#region src/batteries/artifacts/index.ts
|
|
8
8
|
/**
|
|
9
9
|
* Registers the four artifact classes with the '@nhtio/encoder' decoder.
|
package/batteries/artifacts.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
4
|
-
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-
|
|
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-CMCyUK58.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-DeMZW6va.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-BL9pwTUC.mjs";
|
|
4
|
+
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-D1fxLTEc.mjs";
|
|
5
5
|
//#region src/batteries/artifacts/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* Registers the four artifact classes with the '@nhtio/encoder' decoder.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_spooled_artifact = require("../../spooled_artifact-
|
|
4
|
-
require("../../common-
|
|
5
|
-
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-
|
|
3
|
+
const require_spooled_artifact = require("../../spooled_artifact-DmxffAu4.js");
|
|
4
|
+
require("../../common-BkavXPjk.js");
|
|
5
|
+
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-DA2-gPsl.js");
|
|
6
6
|
const require_arg_specs = require("../../arg_specs-iYmIM3wI.js");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
8
8
|
//#region src/batteries/dev_tools/forge.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../common-
|
|
3
|
-
import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-
|
|
1
|
+
import { f as Tool } from "../../spooled_artifact-BkOe4-j-.mjs";
|
|
2
|
+
import "../../common-B5maOoF_.mjs";
|
|
3
|
+
import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-Dnl-lCGv.mjs";
|
|
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
|
package/batteries/dev-tools.cjs
CHANGED
|
@@ -2,12 +2,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
require("../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_exceptions = require("../exceptions-DrHnAGQz.js");
|
|
4
4
|
const require_guards = require("../guards-05Uq3J4M.js");
|
|
5
|
-
const require_tokenizable = require("../tokenizable-
|
|
5
|
+
const require_tokenizable = require("../tokenizable-KwA7jyGQ.js");
|
|
6
6
|
require("../factories.cjs");
|
|
7
|
-
require("../guards.cjs");
|
|
8
7
|
require("../exceptions.cjs");
|
|
8
|
+
require("../guards.cjs");
|
|
9
9
|
const require_types = require("../types-DrSosVaM.js");
|
|
10
|
-
const require_tools = require("../tools-
|
|
10
|
+
const require_tools = require("../tools-DARHLyMC.js");
|
|
11
11
|
const require_fs_node = require("../fs_node-WwUEiuo6.js");
|
|
12
12
|
const require_patch = require("../patch-BXX9Q0FM.js");
|
|
13
13
|
const require_arg_specs = require("../arg_specs-iYmIM3wI.js");
|
package/batteries/dev-tools.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as createException } from "../exceptions-DRYLe-J4.mjs";
|
|
2
2
|
import { n as isInstanceOf, r as isObject, t as isError } from "../guards-BEpY7lBI.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { k as E_LLM_EXECUTION_GATE_NOT_SUPPORTED } from "../tokenizable-xPXj1AQX.mjs";
|
|
4
4
|
import "../factories.mjs";
|
|
5
|
-
import "../guards.mjs";
|
|
6
5
|
import "../exceptions.mjs";
|
|
6
|
+
import "../guards.mjs";
|
|
7
7
|
import { h as createExistingSymlinkGuard, m as classifySandboxPathRejection, v as normalizeSandboxPath } from "../types-D6X_aUIb.mjs";
|
|
8
|
-
import { i as narratingPath, p as resolveMime } from "../tools-
|
|
8
|
+
import { i as narratingPath, p as resolveMime } from "../tools-BC4NJqZD.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";
|
package/batteries/encoding.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../tokenizable-
|
|
4
|
-
const require_spooled_artifact = require("../spooled_artifact-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const require_tool_call = require("../tool_call-
|
|
8
|
-
const require_common = require("../common-
|
|
9
|
-
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-
|
|
3
|
+
const require_tokenizable = require("../tokenizable-KwA7jyGQ.js");
|
|
4
|
+
const require_spooled_artifact = require("../spooled_artifact-DmxffAu4.js");
|
|
5
|
+
const require_retrievable = require("../retrievable-CyJtZVoh.js");
|
|
6
|
+
const require_thought = require("../thought-C5H8aHTa.js");
|
|
7
|
+
const require_tool_call = require("../tool_call-BnaNbzc0.js");
|
|
8
|
+
const require_common = require("../common-BkavXPjk.js");
|
|
9
|
+
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-DA2-gPsl.js");
|
|
10
10
|
require("../index.cjs");
|
|
11
11
|
const require_batteries_storage_in_memory = require("./storage/in_memory.cjs");
|
|
12
12
|
let _nhtio_encoder = require("@nhtio/encoder");
|
package/batteries/encoding.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as Tokenizable } from "../tokenizable-
|
|
2
|
-
import { c as resolveMediaReader, d as
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-
|
|
6
|
-
import { a as inMemoryMediaReader, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-
|
|
7
|
-
import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-
|
|
1
|
+
import { r as Tokenizable } from "../tokenizable-xPXj1AQX.mjs";
|
|
2
|
+
import { c as resolveMediaReader, d as ArtifactTool, f as Tool, g as ToolRegistry, l as resolveSpoolReader, m as Registry, o as registerMediaReaderResolver, s as registerSpoolReaderResolver, t as SpooledArtifact } from "../spooled_artifact-BkOe4-j-.mjs";
|
|
3
|
+
import { t as Retrievable } from "../retrievable-CrGKx4sc.mjs";
|
|
4
|
+
import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-BrQt6HAb.mjs";
|
|
5
|
+
import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-8crmZsO8.mjs";
|
|
6
|
+
import { a as inMemoryMediaReader, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-B5maOoF_.mjs";
|
|
7
|
+
import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-Dnl-lCGv.mjs";
|
|
8
8
|
import "../index.mjs";
|
|
9
9
|
import { InMemorySpoolReader, SPOOL_READER_TAG_IN_MEMORY } from "./storage/in_memory.mjs";
|
|
10
10
|
import { registerClass } from "@nhtio/encoder";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
4
|
-
const require_tool_call = require("../../../tool_call-
|
|
4
|
+
const require_tool_call = require("../../../tool_call-BnaNbzc0.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
7
7
|
const require_batteries_generation__shared = require("../_shared.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isError } from "../../../guards-BEpY7lBI.mjs";
|
|
2
|
-
import { o as decodeBase64, s as encodeBase64 } from "../../../tool_call-
|
|
2
|
+
import { o as decodeBase64, s as encodeBase64 } from "../../../tool_call-8crmZsO8.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { computeBackoff, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
5
5
|
import { toBytes } from "../_shared.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
4
|
-
const require_tool_call = require("../../../tool_call-
|
|
4
|
+
const require_tool_call = require("../../../tool_call-BnaNbzc0.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
|
|
7
7
|
const require_batteries_generation__shared = require("../_shared.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isError } from "../../../guards-BEpY7lBI.mjs";
|
|
2
|
-
import { o as decodeBase64, s as encodeBase64 } from "../../../tool_call-
|
|
2
|
+
import { o as decodeBase64, s as encodeBase64 } from "../../../tool_call-8crmZsO8.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
|
|
5
5
|
import { toBytes } from "../_shared.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
4
|
-
const require_tool_call = require("../../../tool_call-
|
|
4
|
+
const require_tool_call = require("../../../tool_call-BnaNbzc0.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
7
7
|
const require_batteries_generation__shared = require("../_shared.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isError } from "../../../guards-BEpY7lBI.mjs";
|
|
2
|
-
import { o as decodeBase64 } from "../../../tool_call-
|
|
2
|
+
import { o as decodeBase64 } from "../../../tool_call-8crmZsO8.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { computeBackoff, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
5
5
|
import { toBytes } from "../_shared.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
4
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
5
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
6
|
-
const require_thought = require("../../../thought-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
8
|
-
require("../../../common-
|
|
4
|
+
const require_tokenizable = require("../../../tokenizable-KwA7jyGQ.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-DmxffAu4.js");
|
|
6
|
+
const require_thought = require("../../../thought-C5H8aHTa.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-BnaNbzc0.js");
|
|
8
|
+
require("../../../common-BkavXPjk.js");
|
|
9
9
|
require("../../../guards.cjs");
|
|
10
10
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
11
11
|
const require_tool_parsers = require("../../../tool_parsers-csSBFWob.js");
|
|
12
12
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
13
|
-
const require_helpers = require("../../../helpers-
|
|
13
|
+
const require_helpers = require("../../../helpers-BP6tW-J_.js");
|
|
14
14
|
const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
|
|
15
15
|
const require_batteries_llm_anthropic_messages_validation = require("./validation.cjs");
|
|
16
16
|
const require_error_translation = require("../../../error_translation-BCa4wxUL.js");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as isInstanceOf, r as isObject, t as isError } from "../../../guards-BEpY7lBI.mjs";
|
|
2
|
-
import { r as Tokenizable } from "../../../tokenizable-
|
|
3
|
-
import {
|
|
4
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
5
|
-
import { n as Media, t as ToolCall } from "../../../tool_call-
|
|
6
|
-
import "../../../common-
|
|
2
|
+
import { r as Tokenizable } from "../../../tokenizable-xPXj1AQX.mjs";
|
|
3
|
+
import { d as ArtifactTool, h as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-BkOe4-j-.mjs";
|
|
4
|
+
import { n as Message, t as Thought } from "../../../thought-BrQt6HAb.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-8crmZsO8.mjs";
|
|
6
|
+
import "../../../common-B5maOoF_.mjs";
|
|
7
7
|
import "../../../guards.mjs";
|
|
8
8
|
import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
9
9
|
import { O as resolveToolCallParser } from "../../../tool_parsers-DgZhgxV8.mjs";
|
|
10
10
|
import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
|
|
11
|
-
import { C as looksLikeSpooledArtifact, E as normalizeToolName, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools } from "../../../helpers-
|
|
11
|
+
import { C as looksLikeSpooledArtifact, E as normalizeToolName, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools } from "../../../helpers-C1T0DV8Q.mjs";
|
|
12
12
|
import { E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW, E_ANTHROPIC_MESSAGES_HTTP_ERROR, E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS, E_ANTHROPIC_MESSAGES_REQUEST_TIMEOUT, E_ANTHROPIC_MESSAGES_STREAM_ERROR, E_ANTHROPIC_MESSAGES_STREAM_STALLED, E_INVALID_ANTHROPIC_MESSAGES_OPTIONS } from "./exceptions.mjs";
|
|
13
13
|
import { validateOptions } from "./validation.mjs";
|
|
14
14
|
import { n as translateAnthropicError, r as APIError } from "../../../error_translation-Bkz-bl27.mjs";
|
|
@@ -4,7 +4,7 @@ const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
|
4
4
|
const require_guards$1 = require("../../../guards.cjs");
|
|
5
5
|
require("../../../index.cjs");
|
|
6
6
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
7
|
-
const require_helpers = require("../../../helpers-
|
|
7
|
+
const require_helpers = require("../../../helpers-BP6tW-J_.js");
|
|
8
8
|
const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
|
|
9
9
|
const require_batteries_llm_anthropic_messages_validation = require("./validation.cjs");
|
|
10
10
|
const require_error_translation = require("../../../error_translation-BCa4wxUL.js");
|
|
@@ -2,7 +2,7 @@ import { n as isInstanceOf, r as isObject } from "../../../guards-BEpY7lBI.mjs";
|
|
|
2
2
|
import { isDispatchContext } from "../../../guards.mjs";
|
|
3
3
|
import "../../../index.mjs";
|
|
4
4
|
import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
5
|
-
import { _ as defaultRenderUntrustedContent, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools } from "../../../helpers-
|
|
5
|
+
import { _ as defaultRenderUntrustedContent, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools } from "../../../helpers-C1T0DV8Q.mjs";
|
|
6
6
|
import { E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW, E_ANTHROPIC_MESSAGES_HTTP_ERROR, E_ANTHROPIC_MESSAGES_REQUEST_TIMEOUT, E_INVALID_ANTHROPIC_MESSAGES_OPTIONS } from "./exceptions.mjs";
|
|
7
7
|
import { validateOptions } from "./validation.mjs";
|
|
8
8
|
import { n as translateAnthropicError, r as APIError } from "../../../error_translation-Bkz-bl27.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_call = require("../../../tool_call-
|
|
4
|
-
require("../../../common-
|
|
5
|
-
const require_helpers = require("../../../helpers-
|
|
3
|
+
const require_tool_call = require("../../../tool_call-BnaNbzc0.js");
|
|
4
|
+
require("../../../common-BkavXPjk.js");
|
|
5
|
+
const require_helpers = require("../../../helpers-BP6tW-J_.js");
|
|
6
6
|
const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
|
|
7
7
|
//#region src/batteries/llm/anthropic_messages/helpers.ts
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as Media } from "../../../tool_call-
|
|
2
|
-
import "../../../common-
|
|
3
|
-
import { A as renderMemories, B as retrievableToAttrs, C as looksLikeSpooledArtifact, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, H as sanitizeFilenameForDescription, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, S as floorTrustTier, T as neutraliseDeveloperRulesTag, U as sanitizeMimeType, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, b as escapeXmlAttribute, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, j as renderRetrievableHandleBody, k as renderFirstPartyRetrievables, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, t as canonicalFingerprint, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, w as memoryToAttrs, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../../helpers-
|
|
1
|
+
import { n as Media } from "../../../tool_call-8crmZsO8.mjs";
|
|
2
|
+
import "../../../common-B5maOoF_.mjs";
|
|
3
|
+
import { A as renderMemories, B as retrievableToAttrs, C as looksLikeSpooledArtifact, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, H as sanitizeFilenameForDescription, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, S as floorTrustTier, T as neutraliseDeveloperRulesTag, U as sanitizeMimeType, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, b as escapeXmlAttribute, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, j as renderRetrievableHandleBody, k as renderFirstPartyRetrievables, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, t as canonicalFingerprint, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, w as memoryToAttrs, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../../helpers-C1T0DV8Q.mjs";
|
|
4
4
|
import { E_ANTHROPIC_MESSAGES_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
|
|
5
5
|
//#region src/batteries/llm/anthropic_messages/helpers.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-KwA7jyGQ.js");
|
|
4
|
+
const require_common = require("../../../common-BkavXPjk.js");
|
|
5
5
|
const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
7
7
|
//#region src/batteries/llm/anthropic_messages/validation.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as TokenEncoding } from "../../../tokenizable-
|
|
2
|
-
import { o as byteStoreSchema } from "../../../common-
|
|
1
|
+
import { n as TokenEncoding } from "../../../tokenizable-xPXj1AQX.mjs";
|
|
2
|
+
import { o as byteStoreSchema } from "../../../common-B5maOoF_.mjs";
|
|
3
3
|
import { E_INVALID_ANTHROPIC_MESSAGES_OPTIONS } from "./exceptions.mjs";
|
|
4
4
|
import { validator } from "@nhtio/validation";
|
|
5
5
|
//#region src/batteries/llm/anthropic_messages/validation.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_helpers = require("../../helpers-
|
|
4
|
-
const require_chat_common = require("../../chat_common-
|
|
3
|
+
const require_helpers = require("../../helpers-BP6tW-J_.js");
|
|
4
|
+
const require_chat_common = require("../../chat_common-CCQ9jw3X.js");
|
|
5
5
|
const require_batteries_llm_anthropic_messages_exceptions = require("./anthropic_messages/exceptions.cjs");
|
|
6
6
|
const require_batteries_llm_anthropic_messages_validation = require("./anthropic_messages/validation.cjs");
|
|
7
7
|
const require_error_translation = require("../../error_translation-BCa4wxUL.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as renderMemories, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, k as renderFirstPartyRetrievables, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../helpers-
|
|
2
|
-
import { t as deCollideToolCallIds } from "../../chat_common-
|
|
1
|
+
import { A as renderMemories, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, k as renderFirstPartyRetrievables, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../helpers-C1T0DV8Q.mjs";
|
|
2
|
+
import { t as deCollideToolCallIds } from "../../chat_common-CeoHwSsz.mjs";
|
|
3
3
|
import { E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW, E_ANTHROPIC_MESSAGES_HTTP_ERROR, E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS, E_ANTHROPIC_MESSAGES_REQUEST_TIMEOUT, E_ANTHROPIC_MESSAGES_STREAM_ERROR, E_ANTHROPIC_MESSAGES_STREAM_STALLED, E_ANTHROPIC_MESSAGES_UNSUPPORTED_MEDIA_MODALITY, E_INVALID_ANTHROPIC_MESSAGES_OPTIONS } from "./anthropic_messages/exceptions.mjs";
|
|
4
4
|
import { anthropicMessagesOptionsSchema, validateOptions } from "./anthropic_messages/validation.mjs";
|
|
5
5
|
import { n as translateAnthropicError, t as CONTEXT_OVERFLOW_PHRASE } from "../../error_translation-Bkz-bl27.mjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
4
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
5
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
6
|
-
const require_thought = require("../../../thought-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
8
|
-
require("../../../common-
|
|
4
|
+
const require_tokenizable = require("../../../tokenizable-KwA7jyGQ.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-DmxffAu4.js");
|
|
6
|
+
const require_thought = require("../../../thought-C5H8aHTa.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-BnaNbzc0.js");
|
|
8
|
+
require("../../../common-BkavXPjk.js");
|
|
9
9
|
require("../../../guards.cjs");
|
|
10
10
|
const require_tool_parsers = require("../../../tool_parsers-csSBFWob.js");
|
|
11
|
-
const require_helpers = require("../../../helpers-
|
|
11
|
+
const require_helpers = require("../../../helpers-BP6tW-J_.js");
|
|
12
12
|
const require_batteries_llm_bedrock_converse_exceptions = require("./exceptions.cjs");
|
|
13
|
-
const require_batteries_llm_bedrock_converse_helpers = require("./helpers.cjs");
|
|
14
13
|
const require_batteries_llm_bedrock_converse_validation = require("./validation.cjs");
|
|
14
|
+
const require_batteries_llm_bedrock_converse_helpers = require("./helpers.cjs");
|
|
15
15
|
let luxon = require("luxon");
|
|
16
16
|
let js_sha256 = require("js-sha256");
|
|
17
17
|
let uuid = require("uuid");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { n as isInstanceOf, r as isObject, t as isError } from "../../../guards-BEpY7lBI.mjs";
|
|
2
|
-
import { r as Tokenizable } from "../../../tokenizable-
|
|
3
|
-
import { h as canonicalStringify } from "../../../spooled_artifact-
|
|
4
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
5
|
-
import { t as ToolCall } from "../../../tool_call-
|
|
6
|
-
import "../../../common-
|
|
2
|
+
import { r as Tokenizable } from "../../../tokenizable-xPXj1AQX.mjs";
|
|
3
|
+
import { h as canonicalStringify } from "../../../spooled_artifact-BkOe4-j-.mjs";
|
|
4
|
+
import { n as Message, t as Thought } from "../../../thought-BrQt6HAb.mjs";
|
|
5
|
+
import { t as ToolCall } from "../../../tool_call-8crmZsO8.mjs";
|
|
6
|
+
import "../../../common-B5maOoF_.mjs";
|
|
7
7
|
import "../../../guards.mjs";
|
|
8
8
|
import { O as resolveToolCallParser } from "../../../tool_parsers-DgZhgxV8.mjs";
|
|
9
|
-
import { A as renderMemories, E as normalizeToolName, F as renderThirdPartyPrivateRetrievables, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, k as renderFirstPartyRetrievables, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../../helpers-
|
|
9
|
+
import { A as renderMemories, E as normalizeToolName, F as renderThirdPartyPrivateRetrievables, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, k as renderFirstPartyRetrievables, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../../helpers-C1T0DV8Q.mjs";
|
|
10
10
|
import { E_BEDROCK_CONVERSE_CONTEXT_OVERFLOW, E_CONVERSE_ALTERNATION_VIOLATION, E_CONVERSE_INVALID_TOOL_INPUT, E_CONVERSE_MISSING_TOOL_CONFIG, E_CONVERSE_REQUEST_FAILED, E_CONVERSE_STREAM_ERROR, E_INVALID_BEDROCK_CONVERSE_OPTIONS } from "./exceptions.mjs";
|
|
11
|
-
import { DEFAULT_CONVERSE_BUCKET_ORDER, buildConverseRequest, extractConverseGeneration, mediaToConverseImage, renderConverseToolResult, toolsToConverseTools } from "./helpers.mjs";
|
|
12
11
|
import { validateOptions } from "./validation.mjs";
|
|
12
|
+
import { DEFAULT_CONVERSE_BUCKET_ORDER, buildConverseRequest, extractConverseGeneration, mediaToConverseImage, renderConverseToolResult, toolsToConverseTools } from "./helpers.mjs";
|
|
13
13
|
import { DateTime } from "luxon";
|
|
14
14
|
import { sha256 } from "js-sha256";
|
|
15
15
|
import { v6 } from "uuid";
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_helpers = require("../../../helpers-
|
|
5
|
+
const require_helpers = require("../../../helpers-BP6tW-J_.js");
|
|
6
6
|
//#region src/batteries/llm/bedrock_converse/helpers.ts
|
|
7
7
|
/**
|
|
8
8
|
* Translation helpers for the native Bedrock Converse battery.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as isObject } from "../../../guards-BEpY7lBI.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
|
-
import { A as renderMemories, C as looksLikeSpooledArtifact, D as renderArtifactHandleBody, E as normalizeToolName, F as renderThirdPartyPrivateRetrievables, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, T as neutraliseDeveloperRulesTag, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, j as renderRetrievableHandleBody, k as renderFirstPartyRetrievables, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../../helpers-
|
|
3
|
+
import { A as renderMemories, C as looksLikeSpooledArtifact, D as renderArtifactHandleBody, E as normalizeToolName, F as renderThirdPartyPrivateRetrievables, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, T as neutraliseDeveloperRulesTag, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, j as renderRetrievableHandleBody, k as renderFirstPartyRetrievables, l as defaultRenderRetrievableHandleBody, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../../helpers-C1T0DV8Q.mjs";
|
|
4
4
|
//#region src/batteries/llm/bedrock_converse/helpers.ts
|
|
5
5
|
/**
|
|
6
6
|
* Translation helpers for the native Bedrock Converse battery.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
require("../../../common-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-KwA7jyGQ.js");
|
|
4
|
+
require("../../../common-BkavXPjk.js");
|
|
5
5
|
const require_batteries_llm_bedrock_converse_exceptions = require("./exceptions.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
7
7
|
//#region src/batteries/llm/bedrock_converse/validation.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as TokenEncoding } from "../../../tokenizable-
|
|
2
|
-
import "../../../common-
|
|
1
|
+
import { n as TokenEncoding } from "../../../tokenizable-xPXj1AQX.mjs";
|
|
2
|
+
import "../../../common-B5maOoF_.mjs";
|
|
3
3
|
import { E_INVALID_BEDROCK_CONVERSE_OPTIONS } from "./exceptions.mjs";
|
|
4
4
|
import { validator } from "@nhtio/validation";
|
|
5
5
|
//#region src/batteries/llm/bedrock_converse/validation.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_helpers = require("../../helpers-
|
|
4
|
-
const require_chat_common = require("../../chat_common-
|
|
3
|
+
const require_helpers = require("../../helpers-BP6tW-J_.js");
|
|
4
|
+
const require_chat_common = require("../../chat_common-CCQ9jw3X.js");
|
|
5
5
|
const require_batteries_llm_bedrock_converse_exceptions = require("./bedrock_converse/exceptions.cjs");
|
|
6
|
-
const require_batteries_llm_bedrock_converse_helpers = require("./bedrock_converse/helpers.cjs");
|
|
7
6
|
const require_batteries_llm_bedrock_converse_validation = require("./bedrock_converse/validation.cjs");
|
|
7
|
+
const require_batteries_llm_bedrock_converse_helpers = require("./bedrock_converse/helpers.cjs");
|
|
8
8
|
const require_batteries_llm_bedrock_converse_adapter = require("./bedrock_converse/adapter.cjs");
|
|
9
9
|
exports.BedrockConverseAdapter = require_batteries_llm_bedrock_converse_adapter.BedrockConverseAdapter;
|
|
10
10
|
exports.DEFAULT_CONVERSE_BUCKET_ORDER = require_batteries_llm_bedrock_converse_helpers.DEFAULT_CONVERSE_BUCKET_ORDER;
|