@nhtio/adk 0.1.0-master-7904e3a3 → 0.1.0-master-642a4223
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 +41 -0
- package/artifact_methods-BvoDGBnH.cjs +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 +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 +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 +2 -2
- 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 +7 -7
- package/batteries/llm/claude_code_cli/adapter.mjs +7 -7
- 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 +2 -2
- package/batteries/llm/claude_code_cli.mjs +2 -2
- package/batteries/llm/gemini_generate_content/adapter.cjs +7 -7
- package/batteries/llm/gemini_generate_content/adapter.mjs +7 -7
- 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 +2 -2
- package/batteries/llm/gemini_generate_content.mjs +2 -2
- 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 +35 -25
- package/batteries/media/lint.cjs.map +1 -1
- package/batteries/media/lint.mjs +35 -25
- package/batteries/media/lint.mjs.map +1 -1
- package/batteries/media.cjs +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/lint.cjs +272 -0
- package/batteries/sandbox/lint.cjs.map +1 -0
- package/batteries/sandbox/lint.d.ts +103 -0
- package/batteries/sandbox/lint.mjs +266 -0
- package/batteries/sandbox/lint.mjs.map +1 -0
- 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/in_memory.cjs +1 -1
- package/batteries/skills/lint.cjs +236 -0
- package/batteries/skills/lint.cjs.map +1 -0
- package/batteries/skills/lint.d.ts +99 -0
- package/batteries/skills/lint.mjs +229 -0
- package/batteries/skills/lint.mjs.map +1 -0
- package/batteries/skills.cjs +10 -10
- 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/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 +2 -2
- package/batteries/vector.mjs +2 -2
- package/batteries.cjs +9 -9
- package/batteries.mjs +9 -9
- package/{chat_common-DKw8FDol.mjs → chat_common-CeoHwSsz.mjs} +2 -2
- package/{chat_common-DKw8FDol.mjs.map → chat_common-CeoHwSsz.mjs.map} +1 -1
- package/{chat_common-vSxDBGgr.cjs → chat_common-DlIK1IAn.cjs} +2 -2
- package/{chat_common-vSxDBGgr.cjs.map → chat_common-DlIK1IAn.cjs.map} +1 -1
- package/common-4_EYYb5H.mjs +245 -0
- package/common-4_EYYb5H.mjs.map +1 -0
- package/{common-oI1niK9Z.mjs → common-B5maOoF_.mjs} +7 -7
- package/{common-oI1niK9Z.mjs.map → common-B5maOoF_.mjs.map} +1 -1
- package/common-CKbae_Ra.cjs +291 -0
- package/common-CKbae_Ra.cjs.map +1 -0
- package/{common-BcB05Isq.cjs → common-joo6vLu-.cjs} +7 -7
- package/{common-BcB05Isq.cjs.map → common-joo6vLu-.cjs.map} +1 -1
- package/common.cjs +7 -7
- package/common.mjs +7 -7
- package/{dispatch_runner-CTAI0RSs.cjs → dispatch_runner-BTaUtdtO.cjs} +5 -5
- package/{dispatch_runner-CTAI0RSs.cjs.map → dispatch_runner-BTaUtdtO.cjs.map} +1 -1
- 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.cjs +1 -1
- package/dispatch_runner.mjs +1 -1
- package/{ecmascript-DOv8gVQ5.cjs → ecmascript-BDOWq4ka.cjs} +3 -3
- package/{ecmascript-DOv8gVQ5.cjs.map → ecmascript-BDOWq4ka.cjs.map} +1 -1
- package/{ecmascript-B9Z2C24U.mjs → ecmascript-D1fxLTEc.mjs} +3 -3
- package/{ecmascript-B9Z2C24U.mjs.map → ecmascript-D1fxLTEc.mjs.map} +1 -1
- package/eslint/index.d.ts +16 -0
- package/eslint/rules/artifact_tool_forbids_artifact_constructor.cjs +1 -1
- package/eslint/rules/artifact_tool_forbids_artifact_constructor.mjs +1 -1
- package/eslint/rules/common.d.ts +76 -0
- package/eslint/rules/create_exception_args_array.cjs +285 -0
- package/eslint/rules/create_exception_args_array.cjs.map +1 -0
- package/eslint/rules/create_exception_args_array.d.ts +47 -0
- package/eslint/rules/create_exception_args_array.mjs +281 -0
- package/eslint/rules/create_exception_args_array.mjs.map +1 -0
- package/eslint/rules/index.d.ts +16 -0
- package/eslint/rules/no_model_in_tool_handler.cjs +1 -1
- package/eslint/rules/no_model_in_tool_handler.mjs +1 -1
- package/eslint/rules/require_string_empty_disposition.cjs +1 -1
- package/eslint/rules/require_string_empty_disposition.mjs +1 -1
- package/eslint/rules/require_validator_any_required.cjs +1 -1
- package/eslint/rules/require_validator_any_required.mjs +1 -1
- package/eslint/rules/thought_payload_requires_replay_tag.cjs +1 -1
- package/eslint/rules/thought_payload_requires_replay_tag.mjs +1 -1
- package/eslint/rules/token_encoding_requires_context_window.cjs +1 -1
- package/eslint/rules/token_encoding_requires_context_window.mjs +1 -1
- package/eslint/rules/tool_name_provider_safe.cjs +93 -0
- package/eslint/rules/tool_name_provider_safe.cjs.map +1 -0
- package/eslint/rules/tool_name_provider_safe.d.ts +34 -0
- package/eslint/rules/tool_name_provider_safe.mjs +89 -0
- package/eslint/rules/tool_name_provider_safe.mjs.map +1 -0
- package/eslint/rules.cjs +7 -0
- package/eslint/rules.mjs +4 -1
- package/eslint.cjs +6 -2
- package/eslint.cjs.map +1 -1
- package/eslint.mjs +6 -2
- package/eslint.mjs.map +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-mbn_EsDV.mjs → helpers-C1T0DV8Q.mjs} +3 -3
- package/{helpers-mbn_EsDV.mjs.map → helpers-C1T0DV8Q.mjs.map} +1 -1
- package/{helpers-CiZnHmxC.cjs → helpers-D6ebO8Vc.cjs} +3 -3
- package/{helpers-CiZnHmxC.cjs.map → helpers-D6ebO8Vc.cjs.map} +1 -1
- package/index.cjs +10 -10
- package/index.mjs +10 -10
- package/{manifest-BPcrFRN4.cjs → manifest-DPYWN15l.cjs} +2 -2
- package/{manifest-BPcrFRN4.cjs.map → manifest-DPYWN15l.cjs.map} +1 -1
- package/mcp/adk-docs-corpus.json +2 -2
- package/package.json +493 -473
- package/{retrievable-CXTAUuuv.mjs → retrievable-CrGKx4sc.mjs} +3 -3
- package/{retrievable-CXTAUuuv.mjs.map → retrievable-CrGKx4sc.mjs.map} +1 -1
- package/{retrievable-BOuQSDHF.cjs → retrievable-DVkAglIv.cjs} +3 -3
- package/{retrievable-BOuQSDHF.cjs.map → retrievable-DVkAglIv.cjs.map} +1 -1
- package/{scrapper-mSYpTJM4.cjs → scrapper-B6QvqNDb.cjs} +4 -4
- package/{scrapper-mSYpTJM4.cjs.map → scrapper-B6QvqNDb.cjs.map} +1 -1
- package/{scrapper-D8JuiZ-F.mjs → scrapper-Bc7Hvj7l.mjs} +4 -4
- package/{scrapper-D8JuiZ-F.mjs.map → scrapper-Bc7Hvj7l.mjs.map} +1 -1
- package/{searxng-Daodv0K4.cjs → searxng-0NlNYaF-.cjs} +4 -4
- package/{searxng-Daodv0K4.cjs.map → searxng-0NlNYaF-.cjs.map} +1 -1
- package/{searxng-g7srhFzs.mjs → searxng-CrkaC5XW.mjs} +4 -4
- package/{searxng-g7srhFzs.mjs.map → searxng-CrkaC5XW.mjs.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-DZXsP4s1.cjs → spooled_artifact-BoYsldvO.cjs} +730 -730
- package/spooled_artifact-BoYsldvO.cjs.map +1 -0
- package/spooled_artifact.cjs +2 -2
- package/spooled_artifact.mjs +2 -2
- 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/{spooled_markdown_artifact-Bo0u8cRS.cjs → spooled_markdown_artifact-DzbydBel.cjs} +3 -3
- package/{spooled_markdown_artifact-Bo0u8cRS.cjs.map → spooled_markdown_artifact-DzbydBel.cjs.map} +1 -1
- package/{thought-CxSaF6Xf.mjs → thought-BrQt6HAb.mjs} +3 -3
- package/{thought-CxSaF6Xf.mjs.map → thought-BrQt6HAb.mjs.map} +1 -1
- package/{thought-C12mqaKQ.cjs → thought-CXsVh5hS.cjs} +3 -3
- package/{thought-C12mqaKQ.cjs.map → thought-CXsVh5hS.cjs.map} +1 -1
- package/{tokenizable-BcodRtoW.cjs → tokenizable-DDIdXbJN.cjs} +29 -29
- package/{tokenizable-BcodRtoW.cjs.map → tokenizable-DDIdXbJN.cjs.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-CsBOpKsg.cjs → tool_call-NvQcPf5d.cjs} +4 -4
- package/{tool_call-CsBOpKsg.cjs.map → tool_call-NvQcPf5d.cjs.map} +1 -1
- package/{tools-BjHXlDlV.cjs → tools-BHc8qB5I.cjs} +6 -6
- package/{tools-BjHXlDlV.cjs.map → tools-BHc8qB5I.cjs.map} +1 -1
- package/{tools-Vkfht7mU.mjs → tools-geIlta3C.mjs} +6 -6
- package/{tools-Vkfht7mU.mjs.map → tools-geIlta3C.mjs.map} +1 -1
- package/{toon-BSTQnHed.mjs → toon-CMCyUK58.mjs} +5 -5
- package/{toon-BSTQnHed.mjs.map → toon-CMCyUK58.mjs.map} +1 -1
- package/{toon-5c9ceKiU.cjs → toon-Dj6yuul2.cjs} +5 -5
- package/{toon-5c9ceKiU.cjs.map → toon-Dj6yuul2.cjs.map} +1 -1
- package/{turn_runner--tsMLLx4.cjs → turn_runner-A-vpLUvj.cjs} +5 -5
- package/{turn_runner--tsMLLx4.cjs.map → turn_runner-A-vpLUvj.cjs.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.cjs +1 -1
- package/turn_runner.mjs +1 -1
- package/{xml-CYseDztH.mjs → xml-BL9pwTUC.mjs} +5 -5
- package/{xml-CYseDztH.mjs.map → xml-BL9pwTUC.mjs.map} +1 -1
- package/{xml-DTOnPN52.cjs → xml-CgpPMbHL.cjs} +5 -5
- package/{xml-DTOnPN52.cjs.map → xml-CgpPMbHL.cjs.map} +1 -1
- package/{yaml-CMrbNWLc.cjs → yaml-C4JparX8.cjs} +5 -5
- package/{yaml-CMrbNWLc.cjs.map → yaml-C4JparX8.cjs.map} +1 -1
- package/{yaml-BPBoiOjx.mjs → yaml-DeMZW6va.mjs} +5 -5
- package/{yaml-BPBoiOjx.mjs.map → yaml-DeMZW6va.mjs.map} +1 -1
- package/artifact_methods-Cg0go7Q4.mjs +0 -1
- package/artifact_methods-Dtf4-3C-.cjs +0 -1
- package/common-BuVhq_3h.cjs +0 -147
- package/common-BuVhq_3h.cjs.map +0 -1
- package/common-CQVJccPS.mjs +0 -119
- package/common-CQVJccPS.mjs.map +0 -1
- package/spooled_artifact-Bw_7swIp.mjs.map +0 -1
- package/spooled_artifact-DZXsP4s1.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -25,6 +25,47 @@ upgrading.
|
|
|
25
25
|
|
|
26
26
|
### Added
|
|
27
27
|
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- **`@nhtio/adk/batteries/media/engines/execa_executor` — oversized escalation delays no longer busy-loop.** Deadline timers are capped at Node's maximum timer delay and re-armed against the monotonic deadline; `forceKillAfterDelay: Infinity` disables escalation.
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **Footgun lint rules and build guards (closes issue #29).** Eight new report-only ESLint rules plus
|
|
35
|
+
three internal build guards, covering the mistakes that compile cleanly and then fail at the wire,
|
|
36
|
+
at construction time, or silently at runtime:
|
|
37
|
+
- **Core plugin** (`@nhtio/adk/eslint`, namespace `adk`, `error` in `recommended`):
|
|
38
|
+
`adk/tool-name-provider-safe` (a string-literal `Tool` name outside
|
|
39
|
+
`/^[A-Za-z_][A-Za-z0-9_-]{0,63}$/` — providers reject it at the wire, e.g. Gemini rejects a
|
|
40
|
+
leading digit or `-`; matched on this package's `Tool`, aliased or namespace-imported, never on
|
|
41
|
+
another library's identically-named class) and `adk/create-exception-args-array`
|
|
42
|
+
(`new E_X(<non-array>)` where `E_X` is a `const`/`let` `createException<[non-empty tuple]>` — in
|
|
43
|
+
the same file, through any spelling of the factory, or — under type-aware linting — an IMPORTED
|
|
44
|
+
exception class resolved by its constructor's args-tuple shape; the value is silently read as
|
|
45
|
+
`ExceptionOptions`, the payload is dropped and the message prints a literal `%s`).
|
|
46
|
+
- **New `@nhtio/adk/batteries/sandbox/lint`** (namespace `adk-sandbox`):
|
|
47
|
+
`no-network-disabled` (`warn` — `network: { disabled: true }` omits SRT's network
|
|
48
|
+
configuration, which means UNRESTRICTED network, not network-off; deny-all is `network: {}`),
|
|
49
|
+
`filesystem-read-default-allow` (`warn` — reads are deny-then-allow, so an `allowRead` list with
|
|
50
|
+
no broad `denyRead: ['/']` before it re-permits nothing and the whole host stays readable; a
|
|
51
|
+
`denyRead`-only policy is deliberately not reported) and `require-gate` (`error` —
|
|
52
|
+
`createRunShellCommandTool` / `createEvaluateJavascriptTool` throw
|
|
53
|
+
`E_SANDBOX_GATE_REQUIRED` at construction without a gate).
|
|
54
|
+
- **New `@nhtio/adk/batteries/skills/lint`** (namespace `adk-skills`): `require-gate` (`error` —
|
|
55
|
+
`createSkillManager` throws `E_INVALID_SKILLS_CONFIG` without one) and `no-unsafe-opt-in`
|
|
56
|
+
(`warn` — one finding per enabled `unsafe` control, naming the boundary it removes:
|
|
57
|
+
`isolatedToolsInProcess`, `scriptsPermissivePolicy`, `ungatedSkillTools`).
|
|
58
|
+
- **Build guards** (`tests/unit/build/*.node.spec.ts`): battery-module reachability (every
|
|
59
|
+
`src/batteries/**/*.ts` file must be `@module`-tagged or transitively imported by a tagged file;
|
|
60
|
+
the six current orphans — the standalone claude-code wrapper cluster and a deprecated
|
|
61
|
+
media/patch re-export shim — are an explicit commented allow-list, so any NEW orphan fails) and
|
|
62
|
+
the `@module` leaf-basename collision invariant (the 17 pre-existing duplicate leaves are
|
|
63
|
+
harmless under the tree-mirrored `dtsComplex` emit, so the guard instead asserts that no two
|
|
64
|
+
entries compute the same `types` output path, that the mirrored layout itself is still in place,
|
|
65
|
+
and that `getEntries` still rejects duplicate keys).
|
|
66
|
+
All rules are report-only (no autofix), conservative about spreads, non-literal arguments and
|
|
67
|
+
dynamic values, and documented in `docs/developer-tools/eslint-rules` (split into per-battery
|
|
68
|
+
sub-pages).
|
|
28
69
|
- **`@nhtio/adk/batteries/sandbox/node` — `srtBinarySandbox(enforcer, opts?)`, the concrete
|
|
29
70
|
`BinarySandbox` implementor for the SRT enforcer** (closes issue #37, closes issue #20). The sandbox
|
|
30
71
|
battery could refuse and narrate invocations, but there was no bundled way to actually wrap a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./common-joo6vLu-.cjs");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./common-B5maOoF_.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_ecmascript = require("../../ecmascript-
|
|
2
|
+
const require_ecmascript = require("../../ecmascript-BDOWq4ka.cjs");
|
|
3
3
|
exports.E_TYPESCRIPT_PEER_MISSING = require_ecmascript.E_TYPESCRIPT_PEER_MISSING;
|
|
4
4
|
exports.SpooledEcmaScriptArtifact = require_ecmascript.SpooledEcmaScriptArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-
|
|
1
|
+
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-D1fxLTEc.mjs";
|
|
2
2
|
export { E_TYPESCRIPT_PEER_MISSING, SpooledEcmaScriptArtifact };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_toon = require("../../toon-
|
|
2
|
+
const require_toon = require("../../toon-Dj6yuul2.cjs");
|
|
3
3
|
exports.E_TOON_DECODE_FAILED = require_toon.E_TOON_DECODE_FAILED;
|
|
4
4
|
exports.E_TOON_PEER_MISSING = require_toon.E_TOON_PEER_MISSING;
|
|
5
5
|
exports.SpooledToonArtifact = require_toon.SpooledToonArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../../toon-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_xml = require("../../xml-
|
|
2
|
+
const require_xml = require("../../xml-CgpPMbHL.cjs");
|
|
3
3
|
exports.E_XML_PARSER_PEER_MISSING = require_xml.E_XML_PARSER_PEER_MISSING;
|
|
4
4
|
exports.E_XML_PARSE_FAILED = require_xml.E_XML_PARSE_FAILED;
|
|
5
5
|
exports.SpooledXmlArtifact = require_xml.SpooledXmlArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../../xml-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_yaml = require("../../yaml-
|
|
2
|
+
const require_yaml = require("../../yaml-C4JparX8.cjs");
|
|
3
3
|
exports.E_YAML_PARSE_ERROR = require_yaml.E_YAML_PARSE_ERROR;
|
|
4
4
|
exports.E_YAML_PEER_MISSING = require_yaml.E_YAML_PEER_MISSING;
|
|
5
5
|
exports.SpooledYamlArtifact = require_yaml.SpooledYamlArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../../yaml-
|
|
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,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_toon = require("../toon-
|
|
3
|
-
const require_yaml = require("../yaml-
|
|
4
|
-
const require_xml = require("../xml-
|
|
5
|
-
const require_ecmascript = require("../ecmascript-
|
|
2
|
+
const require_toon = require("../toon-Dj6yuul2.cjs");
|
|
3
|
+
const require_yaml = require("../yaml-C4JparX8.cjs");
|
|
4
|
+
const require_xml = require("../xml-CgpPMbHL.cjs");
|
|
5
|
+
const require_ecmascript = require("../ecmascript-BDOWq4ka.cjs");
|
|
6
6
|
//#region src/batteries/artifacts/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* 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,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_spooled_artifact = require("../../spooled_artifact-
|
|
3
|
-
require("../../common-
|
|
4
|
-
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-
|
|
2
|
+
const require_spooled_artifact = require("../../spooled_artifact-BoYsldvO.cjs");
|
|
3
|
+
require("../../common-joo6vLu-.cjs");
|
|
4
|
+
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-DzbydBel.cjs");
|
|
5
5
|
const require_arg_specs = require("../../arg_specs-iYmIM3wI.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
7
7
|
//#region src/batteries/dev_tools/forge.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_exceptions = require("../exceptions-DrHnAGQz.cjs");
|
|
3
3
|
const require_guards = require("../guards-5-XmJgD2.cjs");
|
|
4
|
-
const require_tokenizable = require("../tokenizable-
|
|
4
|
+
const require_tokenizable = require("../tokenizable-DDIdXbJN.cjs");
|
|
5
5
|
require("../factories.cjs");
|
|
6
6
|
require("../exceptions.cjs");
|
|
7
7
|
require("../guards.cjs");
|
|
8
8
|
const require_types = require("../types-PlgkkLqH.cjs");
|
|
9
|
-
const require_tools = require("../tools-
|
|
9
|
+
const require_tools = require("../tools-BHc8qB5I.cjs");
|
|
10
10
|
const require_fs_node = require("../fs_node-CGGfCOME.cjs");
|
|
11
11
|
const require_patch = require("../patch-BXX9Q0FM.cjs");
|
|
12
12
|
const require_arg_specs = require("../arg_specs-iYmIM3wI.cjs");
|
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
5
|
import "../exceptions.mjs";
|
|
6
6
|
import "../guards.mjs";
|
|
7
7
|
import { h as createExistingSymlinkGuard, m as classifySandboxPathRejection, v as normalizeSandboxPath } from "../types-BRG2MDAN.mjs";
|
|
8
|
-
import { i as narratingPath, p as resolveMime } from "../tools-
|
|
8
|
+
import { i as narratingPath, p as resolveMime } from "../tools-geIlta3C.mjs";
|
|
9
9
|
import { r as createFsNode } from "../fs_node-B9wdxkWv.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,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_spooled_artifact = require("../spooled_artifact-
|
|
3
|
-
const require_tokenizable = require("../tokenizable-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const require_tool_call = require("../tool_call-
|
|
7
|
-
const require_common = require("../common-
|
|
8
|
-
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-
|
|
2
|
+
const require_spooled_artifact = require("../spooled_artifact-BoYsldvO.cjs");
|
|
3
|
+
const require_tokenizable = require("../tokenizable-DDIdXbJN.cjs");
|
|
4
|
+
const require_retrievable = require("../retrievable-DVkAglIv.cjs");
|
|
5
|
+
const require_thought = require("../thought-CXsVh5hS.cjs");
|
|
6
|
+
const require_tool_call = require("../tool_call-NvQcPf5d.cjs");
|
|
7
|
+
const require_common = require("../common-joo6vLu-.cjs");
|
|
8
|
+
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-DzbydBel.cjs");
|
|
9
9
|
require("../index.cjs");
|
|
10
10
|
const require_batteries_storage_in_memory = require("./storage/in_memory.cjs");
|
|
11
11
|
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,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
3
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tool_call = require("../../../tool_call-NvQcPf5d.cjs");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
6
6
|
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,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
3
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tool_call = require("../../../tool_call-NvQcPf5d.cjs");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.cjs");
|
|
6
6
|
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,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
3
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tool_call = require("../../../tool_call-NvQcPf5d.cjs");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
6
6
|
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,15 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
2
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BoYsldvO.cjs");
|
|
3
3
|
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
5
|
-
const require_thought = require("../../../thought-
|
|
6
|
-
const require_tool_call = require("../../../tool_call-
|
|
7
|
-
require("../../../common-
|
|
4
|
+
const require_tokenizable = require("../../../tokenizable-DDIdXbJN.cjs");
|
|
5
|
+
const require_thought = require("../../../thought-CXsVh5hS.cjs");
|
|
6
|
+
const require_tool_call = require("../../../tool_call-NvQcPf5d.cjs");
|
|
7
|
+
require("../../../common-joo6vLu-.cjs");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
10
10
|
const require_tool_parsers = require("../../../tool_parsers-8_qO0a_F.cjs");
|
|
11
11
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
12
|
-
const require_helpers = require("../../../helpers-
|
|
12
|
+
const require_helpers = require("../../../helpers-D6ebO8Vc.cjs");
|
|
13
13
|
const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
|
|
14
14
|
const require_batteries_llm_anthropic_messages_validation = require("./validation.cjs");
|
|
15
15
|
const require_batteries_llm_anthropic_messages_error_translation = require("./error_translation.cjs");
|
|
@@ -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 { anthropicErrorHeaders, translateAnthropicError } from "./error_translation.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
2
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BoYsldvO.cjs");
|
|
3
3
|
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
4
|
const require_guards$1 = require("../../../guards.cjs");
|
|
5
5
|
require("../../../index.cjs");
|
|
6
6
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
7
|
-
const require_helpers = require("../../../helpers-
|
|
7
|
+
const require_helpers = require("../../../helpers-D6ebO8Vc.cjs");
|
|
8
8
|
const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
|
|
9
9
|
const require_batteries_llm_anthropic_messages_validation = require("./validation.cjs");
|
|
10
10
|
const require_batteries_llm_anthropic_messages_error_translation = require("./error_translation.cjs");
|
|
@@ -2,7 +2,7 @@ import { 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 { anthropicErrorHeaders, translateAnthropicError } from "./error_translation.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
-
require("../../../common-
|
|
4
|
-
const require_helpers = require("../../../helpers-
|
|
2
|
+
const require_tool_call = require("../../../tool_call-NvQcPf5d.cjs");
|
|
3
|
+
require("../../../common-joo6vLu-.cjs");
|
|
4
|
+
const require_helpers = require("../../../helpers-D6ebO8Vc.cjs");
|
|
5
5
|
const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
|
|
6
6
|
//#region src/batteries/llm/anthropic_messages/helpers.ts
|
|
7
7
|
/**
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
3
|
-
const require_common = require("../../../common-
|
|
2
|
+
const require_tokenizable = require("../../../tokenizable-DDIdXbJN.cjs");
|
|
3
|
+
const require_common = require("../../../common-joo6vLu-.cjs");
|
|
4
4
|
const require_batteries_llm_anthropic_messages_exceptions = require("./exceptions.cjs");
|
|
5
5
|
let _nhtio_validation = require("@nhtio/validation");
|
|
6
6
|
//#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,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("../../helpers-
|
|
3
|
-
const require_chat_common = require("../../chat_common-
|
|
2
|
+
const require_helpers = require("../../helpers-D6ebO8Vc.cjs");
|
|
3
|
+
const require_chat_common = require("../../chat_common-DlIK1IAn.cjs");
|
|
4
4
|
const require_batteries_llm_anthropic_messages_exceptions = require("./anthropic_messages/exceptions.cjs");
|
|
5
5
|
const require_batteries_llm_anthropic_messages_validation = require("./anthropic_messages/validation.cjs");
|
|
6
6
|
const require_batteries_llm_anthropic_messages_error_translation = require("./anthropic_messages/error_translation.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as renderMemories, D as renderArtifactHandleBody, F as renderThirdPartyPrivateRetrievables, G as toolsToChatCompletionsTools, I as renderThirdPartyPublicRetrievables, L as renderThought, M as renderRetrievableSafetyDirective, N as renderRetrievables, O as renderChatCompletionsSystemPrompt, P as renderStandingInstructions, R as renderTrustedContent, _ as defaultRenderUntrustedContent, a as defaultRenderArtifactHandleBody, c as defaultRenderMemories, d as defaultRenderRetrievables, f as defaultRenderStandingInstructions, g as defaultRenderTrustedContent, h as defaultRenderThought, i as defaultFilterThoughts, k as renderFirstPartyRetrievables, m as defaultRenderThirdPartyPublicRetrievables, o as defaultRenderChatCompletionsSystemPrompt, p as defaultRenderThirdPartyPrivateRetrievables, r as defaultDescriptionToChatCompletionsJsonSchema, s as defaultRenderFirstPartyRetrievables, u as defaultRenderRetrievableSafetyDirective, v as defaultToolsToChatCompletionsTools, x as filterThoughts, y as descriptionToChatCompletionsJsonSchema, z as renderUntrustedContent } from "../../helpers-
|
|
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 { CONTEXT_OVERFLOW_PHRASE, translateAnthropicError } from "./anthropic_messages/error_translation.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
2
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BoYsldvO.cjs");
|
|
3
3
|
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
5
|
-
const require_thought = require("../../../thought-
|
|
6
|
-
const require_tool_call = require("../../../tool_call-
|
|
7
|
-
require("../../../common-
|
|
4
|
+
const require_tokenizable = require("../../../tokenizable-DDIdXbJN.cjs");
|
|
5
|
+
const require_thought = require("../../../thought-CXsVh5hS.cjs");
|
|
6
|
+
const require_tool_call = require("../../../tool_call-NvQcPf5d.cjs");
|
|
7
|
+
require("../../../common-joo6vLu-.cjs");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
10
10
|
const require_tool_parsers = require("../../../tool_parsers-8_qO0a_F.cjs");
|
|
11
|
-
const require_helpers = require("../../../helpers-
|
|
11
|
+
const require_helpers = require("../../../helpers-D6ebO8Vc.cjs");
|
|
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,13 +1,13 @@
|
|
|
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 { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
9
9
|
import { O as resolveToolCallParser } from "../../../tool_parsers-DgZhgxV8.mjs";
|
|
10
|
-
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-
|
|
10
|
+
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";
|
|
11
11
|
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";
|
|
12
12
|
import { validateOptions } from "./validation.mjs";
|
|
13
13
|
import { DEFAULT_CONVERSE_BUCKET_ORDER, buildConverseRequest, extractConverseGeneration, mediaToConverseImage, renderConverseToolResult, toolsToConverseTools } from "./helpers.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
3
3
|
require("../../../guards.cjs");
|
|
4
|
-
const require_helpers = require("../../../helpers-
|
|
4
|
+
const require_helpers = require("../../../helpers-D6ebO8Vc.cjs");
|
|
5
5
|
//#region src/batteries/llm/bedrock_converse/helpers.ts
|
|
6
6
|
/**
|
|
7
7
|
* 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,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
3
|
-
require("../../../common-
|
|
2
|
+
const require_tokenizable = require("../../../tokenizable-DDIdXbJN.cjs");
|
|
3
|
+
require("../../../common-joo6vLu-.cjs");
|
|
4
4
|
const require_batteries_llm_bedrock_converse_exceptions = require("./exceptions.cjs");
|
|
5
5
|
let _nhtio_validation = require("@nhtio/validation");
|
|
6
6
|
//#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,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("../../helpers-
|
|
3
|
-
const require_chat_common = require("../../chat_common-
|
|
2
|
+
const require_helpers = require("../../helpers-D6ebO8Vc.cjs");
|
|
3
|
+
const require_chat_common = require("../../chat_common-DlIK1IAn.cjs");
|
|
4
4
|
const require_batteries_llm_bedrock_converse_exceptions = require("./bedrock_converse/exceptions.cjs");
|
|
5
5
|
const require_batteries_llm_bedrock_converse_validation = require("./bedrock_converse/validation.cjs");
|
|
6
6
|
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-C1T0DV8Q.mjs";
|
|
2
|
+
import { t as deCollideToolCallIds } from "../../chat_common-CeoHwSsz.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";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
2
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BoYsldvO.cjs");
|
|
3
3
|
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
5
|
-
const require_thought = require("../../../thought-
|
|
6
|
-
const require_tool_call = require("../../../tool_call-
|
|
7
|
-
require("../../../common-
|
|
4
|
+
const require_tokenizable = require("../../../tokenizable-DDIdXbJN.cjs");
|
|
5
|
+
const require_thought = require("../../../thought-CXsVh5hS.cjs");
|
|
6
|
+
const require_tool_call = require("../../../tool_call-NvQcPf5d.cjs");
|
|
7
|
+
require("../../../common-joo6vLu-.cjs");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
10
|
-
const require_helpers = require("../../../helpers-
|
|
11
|
-
const require_chat_common = require("../../../chat_common-
|
|
10
|
+
const require_helpers = require("../../../helpers-D6ebO8Vc.cjs");
|
|
11
|
+
const require_chat_common = require("../../../chat_common-DlIK1IAn.cjs");
|
|
12
12
|
const require_batteries_llm_claude_code_cli_exceptions = require("./exceptions.cjs");
|
|
13
13
|
const require_batteries_llm_claude_code_cli_validation = require("./validation.cjs");
|
|
14
14
|
const require_batteries_llm_claude_code_cli_wire = require("./wire.cjs");
|