@nhtio/adk 1.20260913.0 → 1.20260921.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/artifact_methods-Cg0go7Q4.mjs +1 -0
- package/artifact_methods-SKgM322C.js +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 +2 -2
- package/batteries/dev-tools.mjs +2 -2
- 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 +2 -2
- package/batteries/generation/local_diffusion/adapter.mjs +2 -2
- 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 +6 -6
- package/batteries/llm/bedrock_converse/adapter.mjs +6 -6
- 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 +2 -2
- package/batteries/llm/bedrock_converse.mjs +2 -2
- 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/forge.cjs +4 -4
- package/batteries/media/forge.mjs +4 -4
- package/batteries/media/lint.cjs +1 -1
- package/batteries/media/lint.mjs +1 -1
- package/batteries/orchestration/dispatch_reasoner.cjs +4 -4
- package/batteries/orchestration/dispatch_reasoner.mjs +4 -4
- package/batteries/orchestration/executor.cjs +2 -2
- package/batteries/orchestration/executor.mjs +2 -2
- package/batteries/orchestration/forge.cjs +3 -3
- package/batteries/orchestration/forge.mjs +3 -3
- package/batteries/orchestration/validation.cjs +2 -2
- package/batteries/orchestration/validation.mjs +2 -2
- package/batteries/orchestration.cjs +2 -2
- package/batteries/orchestration.mjs +2 -2
- package/batteries/sandbox/js.cjs +2 -2
- package/batteries/sandbox/js.mjs +2 -2
- package/batteries/sandbox/tools.cjs +1 -1
- package/batteries/sandbox/tools.mjs +1 -1
- package/batteries/sandbox.cjs +4 -4
- package/batteries/sandbox.mjs +4 -4
- package/batteries/skills.cjs +8 -8
- package/batteries/skills.mjs +8 -8
- 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 +2 -2
- package/batteries/tools/datetime_extended.mjs +2 -2
- package/batteries/tools/datetime_math.cjs +2 -2
- package/batteries/tools/datetime_math.mjs +2 -2
- 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 +4 -4
- package/batteries/tools/memory.mjs +4 -4
- package/batteries/tools/parsing.cjs +3 -3
- package/batteries/tools/parsing.mjs +3 -3
- package/batteries/tools/retrievables.cjs +4 -4
- package/batteries/tools/retrievables.mjs +4 -4
- 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 +2 -2
- package/batteries/tools/time.mjs +2 -2
- 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/chroma.cjs +1 -1
- package/batteries/vector/chroma.mjs +1 -1
- package/batteries/vector/clickhouse.cjs +1 -1
- package/batteries/vector/clickhouse.mjs +1 -1
- package/batteries/vector/cloudflare.cjs +1 -1
- package/batteries/vector/cloudflare.mjs +1 -1
- package/batteries/vector/couchbase.cjs +1 -1
- package/batteries/vector/couchbase.mjs +1 -1
- package/batteries/vector/duckdb.cjs +1 -1
- package/batteries/vector/duckdb.mjs +1 -1
- package/batteries/vector/elasticsearch.cjs +1 -1
- package/batteries/vector/elasticsearch.mjs +1 -1
- package/batteries/vector/hnswlib.cjs +1 -1
- package/batteries/vector/hnswlib.mjs +1 -1
- package/batteries/vector/in_memory.cjs +1 -1
- package/batteries/vector/in_memory.mjs +1 -1
- package/batteries/vector/lancedb.cjs +1 -1
- package/batteries/vector/lancedb.mjs +1 -1
- package/batteries/vector/mariadb.cjs +1 -1
- package/batteries/vector/mariadb.mjs +1 -1
- package/batteries/vector/milvus.cjs +1 -1
- package/batteries/vector/milvus.mjs +1 -1
- package/batteries/vector/opensearch.cjs +1 -1
- package/batteries/vector/opensearch.mjs +1 -1
- package/batteries/vector/oracle23ai.cjs +1 -1
- package/batteries/vector/oracle23ai.mjs +1 -1
- package/batteries/vector/orama.cjs +1 -1
- package/batteries/vector/orama.mjs +1 -1
- package/batteries/vector/pgvector.cjs +1 -1
- package/batteries/vector/pgvector.mjs +1 -1
- package/batteries/vector/pinecone.cjs +1 -1
- package/batteries/vector/pinecone.mjs +1 -1
- package/batteries/vector/qdrant.cjs +1 -1
- package/batteries/vector/qdrant.mjs +1 -1
- package/batteries/vector/redis.cjs +1 -1
- package/batteries/vector/redis.mjs +1 -1
- package/batteries/vector/retrievable.cjs +1 -1
- package/batteries/vector/retrievable.mjs +1 -1
- package/batteries/vector/s3vectors.cjs +1 -1
- package/batteries/vector/s3vectors.mjs +1 -1
- package/batteries/vector/sqlite_vec.cjs +1 -1
- package/batteries/vector/sqlite_vec.mjs +1 -1
- package/batteries/vector/typesense.cjs +1 -1
- package/batteries/vector/typesense.mjs +1 -1
- package/batteries/vector/vespa.cjs +1 -1
- package/batteries/vector/vespa.mjs +1 -1
- package/batteries/vector/weaviate.cjs +1 -1
- package/batteries/vector/weaviate.mjs +1 -1
- package/batteries/vector.cjs +1 -1
- package/batteries/vector.mjs +1 -1
- package/batteries.cjs +7 -7
- package/batteries.mjs +7 -7
- package/{chat_common-D7SuSLCM.js → chat_common-CBqn22t1.js} +2 -2
- package/{chat_common-D7SuSLCM.js.map → chat_common-CBqn22t1.js.map} +1 -1
- package/{chat_common-CJskWIdB.mjs → chat_common-DKw8FDol.mjs} +2 -2
- package/{chat_common-CJskWIdB.mjs.map → chat_common-DKw8FDol.mjs.map} +1 -1
- package/{common-Cb1h54HM.js → common-0rLuBEeY.js} +7 -7
- package/{common-Cb1h54HM.js.map → common-0rLuBEeY.js.map} +1 -1
- package/{common-AhsMepUS.mjs → common-oI1niK9Z.mjs} +7 -7
- package/{common-AhsMepUS.mjs.map → common-oI1niK9Z.mjs.map} +1 -1
- package/common.cjs +7 -7
- package/common.mjs +7 -7
- package/{dispatch_runner-CUOD_SAg.mjs → dispatch_runner-BZDXUe0G.mjs} +4 -4
- package/{dispatch_runner-CUOD_SAg.mjs.map → dispatch_runner-BZDXUe0G.mjs.map} +1 -1
- package/{dispatch_runner-BOfUNRv3.js → dispatch_runner-CKhm-scw.js} +4 -4
- package/{dispatch_runner-BOfUNRv3.js.map → dispatch_runner-CKhm-scw.js.map} +1 -1
- package/dispatch_runner.cjs +1 -1
- package/dispatch_runner.mjs +1 -1
- package/{ecmascript-qssVTISd.mjs → ecmascript-B9Z2C24U.mjs} +3 -3
- package/{ecmascript-qssVTISd.mjs.map → ecmascript-B9Z2C24U.mjs.map} +1 -1
- package/{ecmascript-C13G-sie.js → ecmascript-DmrNI2Wo.js} +3 -3
- package/{ecmascript-C13G-sie.js.map → ecmascript-DmrNI2Wo.js.map} +1 -1
- package/eslint/rules.cjs +1 -1
- package/eslint/rules.mjs +1 -1
- package/eslint.cjs +2 -2
- package/eslint.mjs +2 -2
- 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-C_1dcP_X.js → helpers-CObtMmAZ.js} +3 -3
- package/{helpers-C_1dcP_X.js.map → helpers-CObtMmAZ.js.map} +1 -1
- package/{helpers-So6bNfJp.mjs → helpers-mbn_EsDV.mjs} +3 -3
- package/{helpers-So6bNfJp.mjs.map → helpers-mbn_EsDV.mjs.map} +1 -1
- package/index.cjs +12 -12
- package/index.mjs +12 -12
- package/lib/classes/identity.d.ts +6 -3
- package/mcp/adk-docs-corpus.json +2 -2
- package/package.json +457 -457
- package/{retrievable-CksTfjbY.js → retrievable-BTwjmPnl.js} +3 -3
- package/{retrievable-CksTfjbY.js.map → retrievable-BTwjmPnl.js.map} +1 -1
- package/{retrievable-HjKe5mOD.mjs → retrievable-CXTAUuuv.mjs} +3 -3
- package/{retrievable-HjKe5mOD.mjs.map → retrievable-CXTAUuuv.mjs.map} +1 -1
- package/{scrapper-CkooTUAD.js → scrapper-CJexXXK-.js} +4 -4
- package/{scrapper-CkooTUAD.js.map → scrapper-CJexXXK-.js.map} +1 -1
- package/{scrapper-_dWwuDJg.mjs → scrapper-DiQ5FfDL.mjs} +4 -4
- package/{scrapper-_dWwuDJg.mjs.map → scrapper-DiQ5FfDL.mjs.map} +1 -1
- package/{searxng-PnrXrrLE.mjs → searxng-BFTJ6rTE.mjs} +4 -4
- package/{searxng-PnrXrrLE.mjs.map → searxng-BFTJ6rTE.mjs.map} +1 -1
- package/{searxng-DXzj0o8E.js → searxng-DzlGZG4V.js} +4 -4
- package/{searxng-DXzj0o8E.js.map → searxng-DzlGZG4V.js.map} +1 -1
- package/server.json +2 -2
- package/skills/adk-assembly/SKILL.md +2 -2
- package/{spooled_artifact-DKZd7fgs.js → spooled_artifact-BpcesRBv.js} +2 -2
- package/{spooled_artifact-DKZd7fgs.js.map → spooled_artifact-BpcesRBv.js.map} +1 -1
- package/{spooled_artifact-BMtuIsu6.mjs → spooled_artifact-Bw_7swIp.mjs} +2 -2
- package/{spooled_artifact-BMtuIsu6.mjs.map → spooled_artifact-Bw_7swIp.mjs.map} +1 -1
- package/spooled_artifact.cjs +2 -2
- package/spooled_artifact.mjs +2 -2
- package/{spooled_markdown_artifact-g4CPr86y.mjs → spooled_markdown_artifact-vd6eNtIP.mjs} +3 -3
- package/{spooled_markdown_artifact-g4CPr86y.mjs.map → spooled_markdown_artifact-vd6eNtIP.mjs.map} +1 -1
- package/{spooled_markdown_artifact-BrMoR7ck.js → spooled_markdown_artifact-wJPnE8Ij.js} +3 -3
- package/{spooled_markdown_artifact-BrMoR7ck.js.map → spooled_markdown_artifact-wJPnE8Ij.js.map} +1 -1
- package/{thought-BEsItcp_.mjs → thought-CxSaF6Xf.mjs} +48 -7
- package/thought-CxSaF6Xf.mjs.map +1 -0
- package/{thought-DTgeATDv.js → thought-Dg_4UZxg.js} +47 -6
- package/thought-Dg_4UZxg.js.map +1 -0
- package/{tokenizable-KwA7jyGQ.js → tokenizable-BMZuGWRd.js} +29 -29
- package/{tokenizable-KwA7jyGQ.js.map → tokenizable-BMZuGWRd.js.map} +1 -1
- package/{tokenizable-xPXj1AQX.mjs → tokenizable-VB4Av8GF.mjs} +30 -30
- package/{tokenizable-xPXj1AQX.mjs.map → tokenizable-VB4Av8GF.mjs.map} +1 -1
- package/{tool_call-Cahji8ZY.mjs → tool_call-Cfaj-6zK.mjs} +3 -3
- package/{tool_call-Cahji8ZY.mjs.map → tool_call-Cfaj-6zK.mjs.map} +1 -1
- package/{tool_call-kx4WQ0-j.js → tool_call-Fs_Uh5wQ.js} +3 -3
- package/{tool_call-kx4WQ0-j.js.map → tool_call-Fs_Uh5wQ.js.map} +1 -1
- package/{tools-BepwIVtl.mjs → tools-D0MBDh2R.mjs} +6 -6
- package/{tools-BepwIVtl.mjs.map → tools-D0MBDh2R.mjs.map} +1 -1
- package/{tools-zV-_O2MB.js → tools-rJvfktHR.js} +6 -6
- package/{tools-zV-_O2MB.js.map → tools-rJvfktHR.js.map} +1 -1
- package/{toon-F-e_k2jV.mjs → toon-BSTQnHed.mjs} +4 -4
- package/{toon-F-e_k2jV.mjs.map → toon-BSTQnHed.mjs.map} +1 -1
- package/{toon-gA82H1sN.js → toon-BXPdJRz7.js} +4 -4
- package/{toon-gA82H1sN.js.map → toon-BXPdJRz7.js.map} +1 -1
- package/{turn_runner-BdeNNvo0.mjs → turn_runner-BHHD6h77.mjs} +4 -4
- package/{turn_runner-BdeNNvo0.mjs.map → turn_runner-BHHD6h77.mjs.map} +1 -1
- package/{turn_runner-CF5LExb8.js → turn_runner-DhLI7OTH.js} +4 -4
- package/{turn_runner-CF5LExb8.js.map → turn_runner-DhLI7OTH.js.map} +1 -1
- package/turn_runner.cjs +1 -1
- package/turn_runner.mjs +1 -1
- package/{xml-DVjBQkhb.js → xml-CNmgj5Qq.js} +4 -4
- package/{xml-DVjBQkhb.js.map → xml-CNmgj5Qq.js.map} +1 -1
- package/{xml-CT28gSkh.mjs → xml-CYseDztH.mjs} +4 -4
- package/{xml-CT28gSkh.mjs.map → xml-CYseDztH.mjs.map} +1 -1
- package/{yaml-DiHPF0nY.mjs → yaml-BPBoiOjx.mjs} +4 -4
- package/{yaml-DiHPF0nY.mjs.map → yaml-BPBoiOjx.mjs.map} +1 -1
- package/{yaml-Dt82CpYv.js → yaml-CaoIJyRe.js} +4 -4
- package/{yaml-Dt82CpYv.js.map → yaml-CaoIJyRe.js.map} +1 -1
- package/artifact_methods-CIQgBCKp.mjs +0 -1
- package/artifact_methods-Cjypa7oU.js +0 -1
- package/thought-BEsItcp_.mjs.map +0 -1
- package/thought-DTgeATDv.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,40 @@ 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
|
+
|
|
18
52
|
## 2026-09-13
|
|
19
53
|
|
|
20
54
|
### Fixed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./common-oI1niK9Z.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./common-0rLuBEeY.js");
|
|
@@ -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-DmrNI2Wo.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-B9Z2C24U.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-BXPdJRz7.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-BSTQnHed.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-CNmgj5Qq.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-CYseDztH.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-CaoIJyRe.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-BPBoiOjx.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-BXPdJRz7.js");
|
|
4
|
+
const require_yaml = require("../yaml-CaoIJyRe.js");
|
|
5
|
+
const require_xml = require("../xml-CNmgj5Qq.js");
|
|
6
|
+
const require_ecmascript = require("../ecmascript-DmrNI2Wo.js");
|
|
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-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";
|
|
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-BpcesRBv.js");
|
|
4
|
+
require("../../common-0rLuBEeY.js");
|
|
5
|
+
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-wJPnE8Ij.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 { p as Tool } from "../../spooled_artifact-
|
|
2
|
-
import "../../common-
|
|
3
|
-
import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-
|
|
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";
|
|
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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../chunk-Cek0wNdY.js");
|
|
3
3
|
const require_exceptions = require("../exceptions-DrHnAGQz.js");
|
|
4
|
-
const require_tokenizable = require("../tokenizable-KwA7jyGQ.js");
|
|
5
4
|
const require_guards = require("../guards-05Uq3J4M.js");
|
|
5
|
+
const require_tokenizable = require("../tokenizable-BMZuGWRd.js");
|
|
6
6
|
require("../factories.cjs");
|
|
7
7
|
require("../exceptions.cjs");
|
|
8
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-rJvfktHR.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
|
-
import { k as E_LLM_EXECUTION_GATE_NOT_SUPPORTED } from "../tokenizable-xPXj1AQX.mjs";
|
|
3
2
|
import { n as isInstanceOf, r as isObject, t as isError } from "../guards-BEpY7lBI.mjs";
|
|
3
|
+
import { D as E_LLM_EXECUTION_GATE_NOT_SUPPORTED } from "../tokenizable-VB4Av8GF.mjs";
|
|
4
4
|
import "../factories.mjs";
|
|
5
5
|
import "../exceptions.mjs";
|
|
6
6
|
import "../guards.mjs";
|
|
7
7
|
import { h as createExistingSymlinkGuard, m as classifySandboxPathRejection, v as normalizeSandboxPath } from "../types-D6X_aUIb.mjs";
|
|
8
|
-
import { i as narratingPath, p as resolveMime } from "../tools-
|
|
8
|
+
import { i as narratingPath, p as resolveMime } from "../tools-D0MBDh2R.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 require_thought = require("../thought-
|
|
6
|
-
const require_retrievable = require("../retrievable-
|
|
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-BMZuGWRd.js");
|
|
4
|
+
const require_spooled_artifact = require("../spooled_artifact-BpcesRBv.js");
|
|
5
|
+
const require_thought = require("../thought-Dg_4UZxg.js");
|
|
6
|
+
const require_retrievable = require("../retrievable-BTwjmPnl.js");
|
|
7
|
+
const require_tool_call = require("../tool_call-Fs_Uh5wQ.js");
|
|
8
|
+
const require_common = require("../common-0rLuBEeY.js");
|
|
9
|
+
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-wJPnE8Ij.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 ToolRegistry, f as ArtifactTool, g as Registry, l as resolveSpoolReader, o as registerMediaReaderResolver, p as Tool, s as registerSpoolReaderResolver, t as SpooledArtifact } from "../spooled_artifact-
|
|
3
|
-
import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-
|
|
4
|
-
import { t as Retrievable } from "../retrievable-
|
|
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-VB4Av8GF.mjs";
|
|
2
|
+
import { c as resolveMediaReader, d as ToolRegistry, f as ArtifactTool, g as Registry, l as resolveSpoolReader, o as registerMediaReaderResolver, p as Tool, s as registerSpoolReaderResolver, t as SpooledArtifact } from "../spooled_artifact-Bw_7swIp.mjs";
|
|
3
|
+
import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-CxSaF6Xf.mjs";
|
|
4
|
+
import { t as Retrievable } from "../retrievable-CXTAUuuv.mjs";
|
|
5
|
+
import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-Cfaj-6zK.mjs";
|
|
6
|
+
import { a as inMemoryMediaReader, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-oI1niK9Z.mjs";
|
|
7
|
+
import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-vd6eNtIP.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-Fs_Uh5wQ.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-Cfaj-6zK.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,13 +1,13 @@
|
|
|
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-Fs_Uh5wQ.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");
|
|
8
8
|
const require_batteries_generation_local_diffusion_exceptions = require("./exceptions.cjs");
|
|
9
|
-
const require_batteries_generation_local_diffusion_validation = require("./validation.cjs");
|
|
10
9
|
const require_batteries_generation_local_diffusion_protocol = require("./protocol.cjs");
|
|
10
|
+
const require_batteries_generation_local_diffusion_validation = require("./validation.cjs");
|
|
11
11
|
//#region src/batteries/generation/local_diffusion/adapter.ts
|
|
12
12
|
/** Node-only local diffusion generation adapter.
|
|
13
13
|
* @module @nhtio/adk/batteries/generation/local_diffusion/adapter
|
|
@@ -1,11 +1,11 @@
|
|
|
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-Cfaj-6zK.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
|
|
5
5
|
import { toBytes } from "../_shared.mjs";
|
|
6
6
|
import { E_LOCAL_DIFFUSION_ABORTED, E_LOCAL_DIFFUSION_BACKEND_ERROR, E_LOCAL_DIFFUSION_BUSY, E_LOCAL_DIFFUSION_DISPOSED, E_LOCAL_DIFFUSION_MALFORMED_FRAME, E_LOCAL_DIFFUSION_REQUEST_TIMEOUT, E_LOCAL_DIFFUSION_STARTUP_TIMEOUT } from "./exceptions.mjs";
|
|
7
|
-
import { validateOptions } from "./validation.mjs";
|
|
8
7
|
import { DEFAULT_PROTOCOL, buildEditCommand, buildGenerateCommand, buildShutdownCommand, buildStopCommand, createFrameReader } from "./protocol.mjs";
|
|
8
|
+
import { validateOptions } from "./validation.mjs";
|
|
9
9
|
//#region src/batteries/generation/local_diffusion/adapter.ts
|
|
10
10
|
/** Node-only local diffusion generation adapter.
|
|
11
11
|
* @module @nhtio/adk/batteries/generation/local_diffusion/adapter
|
|
@@ -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-Fs_Uh5wQ.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-Cfaj-6zK.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
|
-
const require_tokenizable = require("../../../tokenizable-KwA7jyGQ.js");
|
|
4
3
|
const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
require("../../../
|
|
4
|
+
const require_tokenizable = require("../../../tokenizable-BMZuGWRd.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BpcesRBv.js");
|
|
6
|
+
const require_thought = require("../../../thought-Dg_4UZxg.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-Fs_Uh5wQ.js");
|
|
8
|
+
require("../../../common-0rLuBEeY.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-CObtMmAZ.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
|
-
import { r as Tokenizable } from "../../../tokenizable-xPXj1AQX.mjs";
|
|
2
1
|
import { n as isInstanceOf, r as isObject, t as isError } from "../../../guards-BEpY7lBI.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import "../../../
|
|
2
|
+
import { r as Tokenizable } from "../../../tokenizable-VB4Av8GF.mjs";
|
|
3
|
+
import { f as ArtifactTool, h as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-Bw_7swIp.mjs";
|
|
4
|
+
import { n as Message, t as Thought } from "../../../thought-CxSaF6Xf.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-Cfaj-6zK.mjs";
|
|
6
|
+
import "../../../common-oI1niK9Z.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-mbn_EsDV.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-CObtMmAZ.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-mbn_EsDV.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-Fs_Uh5wQ.js");
|
|
4
|
+
require("../../../common-0rLuBEeY.js");
|
|
5
|
+
const require_helpers = require("../../../helpers-CObtMmAZ.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-Cfaj-6zK.mjs";
|
|
2
|
+
import "../../../common-oI1niK9Z.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-mbn_EsDV.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-BMZuGWRd.js");
|
|
4
|
+
const require_common = require("../../../common-0rLuBEeY.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-VB4Av8GF.mjs";
|
|
2
|
+
import { o as byteStoreSchema } from "../../../common-oI1niK9Z.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-CObtMmAZ.js");
|
|
4
|
+
const require_chat_common = require("../../chat_common-CBqn22t1.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-mbn_EsDV.mjs";
|
|
2
|
+
import { t as deCollideToolCallIds } from "../../chat_common-DKw8FDol.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,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-KwA7jyGQ.js");
|
|
4
3
|
const require_guards = require("../../../guards-05Uq3J4M.js");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
require("../../../
|
|
4
|
+
const require_tokenizable = require("../../../tokenizable-BMZuGWRd.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BpcesRBv.js");
|
|
6
|
+
const require_thought = require("../../../thought-Dg_4UZxg.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-Fs_Uh5wQ.js");
|
|
8
|
+
require("../../../common-0rLuBEeY.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-CObtMmAZ.js");
|
|
12
12
|
const require_batteries_llm_bedrock_converse_exceptions = require("./exceptions.cjs");
|
|
13
13
|
const require_batteries_llm_bedrock_converse_validation = require("./validation.cjs");
|
|
14
14
|
const require_batteries_llm_bedrock_converse_helpers = require("./helpers.cjs");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as Tokenizable } from "../../../tokenizable-xPXj1AQX.mjs";
|
|
2
1
|
import { n as isInstanceOf, r as isObject, t as isError } from "../../../guards-BEpY7lBI.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import "../../../
|
|
2
|
+
import { r as Tokenizable } from "../../../tokenizable-VB4Av8GF.mjs";
|
|
3
|
+
import { h as canonicalStringify } from "../../../spooled_artifact-Bw_7swIp.mjs";
|
|
4
|
+
import { n as Message, t as Thought } from "../../../thought-CxSaF6Xf.mjs";
|
|
5
|
+
import { t as ToolCall } from "../../../tool_call-Cfaj-6zK.mjs";
|
|
6
|
+
import "../../../common-oI1niK9Z.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-mbn_EsDV.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
11
|
import { validateOptions } from "./validation.mjs";
|
|
12
12
|
import { DEFAULT_CONVERSE_BUCKET_ORDER, buildConverseRequest, extractConverseGeneration, mediaToConverseImage, renderConverseToolResult, toolsToConverseTools } from "./helpers.mjs";
|
|
@@ -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-CObtMmAZ.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-mbn_EsDV.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-BMZuGWRd.js");
|
|
4
|
+
require("../../../common-0rLuBEeY.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-VB4Av8GF.mjs";
|
|
2
|
+
import "../../../common-oI1niK9Z.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,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-CObtMmAZ.js");
|
|
4
|
+
const require_chat_common = require("../../chat_common-CBqn22t1.js");
|
|
5
5
|
const require_batteries_llm_bedrock_converse_exceptions = require("./bedrock_converse/exceptions.cjs");
|
|
6
6
|
const require_batteries_llm_bedrock_converse_validation = require("./bedrock_converse/validation.cjs");
|
|
7
7
|
const require_batteries_llm_bedrock_converse_helpers = require("./bedrock_converse/helpers.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as renderMemories, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, 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, 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-
|
|
2
|
-
import { t as deCollideToolCallIds } from "../../chat_common-
|
|
1
|
+
import { A as renderMemories, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, 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, 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-mbn_EsDV.mjs";
|
|
2
|
+
import { t as deCollideToolCallIds } from "../../chat_common-DKw8FDol.mjs";
|
|
3
3
|
import { 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 "./bedrock_converse/exceptions.mjs";
|
|
4
4
|
import { bedrockConverseOptionsSchema, validateOptions } from "./bedrock_converse/validation.mjs";
|
|
5
5
|
import { DEFAULT_CONVERSE_BUCKET_ORDER, buildConverseRequest, defaultBuildConverseRequest, defaultEnforceConverseAlternation, defaultExtractConverseGeneration, defaultMediaToConverseImage, defaultRenderConverseToolResult, defaultSanitizeConverseSchema, defaultSanitizeToolUseId, defaultToolsToConverseTools, enforceConverseAlternation, extractConverseGeneration, mediaToConverseImage, renderConverseToolResult, sanitizeConverseSchema, sanitizeToolUseId, toolsToConverseTools } from "./bedrock_converse/helpers.mjs";
|