@nhtio/adk 0.1.0-master-7904e3a3 → 0.1.0-master-781b55ec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -0
- package/artifact_methods-Ba0xev5U.cjs +1 -0
- package/artifact_methods-sOdo6fHt.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/context/compact/index.d.ts +1 -1
- package/batteries/context/exceptions.cjs +1 -1
- package/batteries/context/exceptions.cjs.map +1 -1
- package/batteries/context/exceptions.d.ts +1 -1
- package/batteries/context/exceptions.mjs +1 -1
- package/batteries/context/exceptions.mjs.map +1 -1
- package/batteries/context/thrift/index.d.ts +1 -1
- package/batteries/dev-tools/conformance.cjs +2 -2
- package/batteries/dev-tools/conformance.mjs +1 -1
- package/batteries/dev-tools/forge.cjs +3 -3
- package/batteries/dev-tools/forge.mjs +3 -3
- package/batteries/dev-tools.cjs +55 -54
- package/batteries/dev-tools.cjs.map +1 -1
- package/batteries/dev-tools.mjs +7 -6
- package/batteries/dev-tools.mjs.map +1 -1
- package/batteries/dev_tools/conformance.d.ts +2 -2
- package/batteries/dev_tools/index.d.ts +2 -5
- package/batteries/dev_tools/runtime.d.ts +3 -5
- package/batteries/dev_tools/types.d.ts +1 -1
- package/batteries/embeddings/ollama/adapter.cjs +5 -4
- package/batteries/embeddings/ollama/adapter.cjs.map +1 -1
- package/batteries/embeddings/ollama/adapter.mjs +3 -2
- package/batteries/embeddings/ollama/adapter.mjs.map +1 -1
- package/batteries/embeddings/openai/adapter.cjs +5 -4
- package/batteries/embeddings/openai/adapter.cjs.map +1 -1
- package/batteries/embeddings/openai/adapter.mjs +3 -2
- package/batteries/embeddings/openai/adapter.mjs.map +1 -1
- package/batteries/embeddings/transformers_js/adapter.cjs +4 -3
- package/batteries/embeddings/transformers_js/adapter.cjs.map +1 -1
- package/batteries/embeddings/transformers_js/adapter.mjs +2 -1
- package/batteries/embeddings/transformers_js/adapter.mjs.map +1 -1
- package/batteries/embeddings/transformers_js/types.d.ts +2 -2
- package/batteries/embeddings/transformers_js/validation.cjs +2 -2
- package/batteries/embeddings/transformers_js/validation.cjs.map +1 -1
- package/batteries/embeddings/transformers_js/validation.mjs +1 -1
- package/batteries/embeddings/webllm/adapter.cjs +3 -3
- package/batteries/embeddings/webllm/adapter.cjs.map +1 -1
- package/batteries/embeddings/webllm/adapter.mjs +1 -1
- package/batteries/encoding.cjs +8 -9
- package/batteries/encoding.cjs.map +1 -1
- package/batteries/encoding.mjs +7 -8
- package/batteries/encoding.mjs.map +1 -1
- package/batteries/generation/_shared.cjs +2 -2
- package/batteries/generation/_shared.cjs.map +1 -1
- package/batteries/generation/_shared.mjs +1 -1
- package/batteries/generation/gemini/adapter.cjs +6 -5
- package/batteries/generation/gemini/adapter.cjs.map +1 -1
- package/batteries/generation/gemini/adapter.mjs +4 -3
- package/batteries/generation/gemini/adapter.mjs.map +1 -1
- package/batteries/generation/local_diffusion/adapter.cjs +6 -4
- package/batteries/generation/local_diffusion/adapter.cjs.map +1 -1
- package/batteries/generation/local_diffusion/adapter.mjs +4 -2
- package/batteries/generation/local_diffusion/adapter.mjs.map +1 -1
- package/batteries/generation/local_diffusion/protocol.cjs +2 -2
- package/batteries/generation/local_diffusion/protocol.cjs.map +1 -1
- package/batteries/generation/local_diffusion/protocol.mjs +1 -1
- package/batteries/generation/local_diffusion/types.d.ts +1 -1
- package/batteries/generation/openai/adapter.cjs +6 -5
- package/batteries/generation/openai/adapter.cjs.map +1 -1
- package/batteries/generation/openai/adapter.mjs +4 -3
- package/batteries/generation/openai/adapter.mjs.map +1 -1
- package/batteries/generation/openai/types.d.ts +1 -1
- package/batteries/generation/transformers_js/adapter.cjs +5 -4
- package/batteries/generation/transformers_js/adapter.cjs.map +1 -1
- package/batteries/generation/transformers_js/adapter.mjs +2 -1
- package/batteries/generation/transformers_js/adapter.mjs.map +1 -1
- package/batteries/generation/transformers_js/types.d.ts +2 -2
- package/batteries/generation/transformers_js/validation.cjs +2 -2
- package/batteries/generation/transformers_js/validation.cjs.map +1 -1
- package/batteries/generation/transformers_js/validation.mjs +1 -1
- package/batteries/isolation/child_process.cjs +5 -5
- package/batteries/isolation/child_process.cjs.map +1 -1
- package/batteries/isolation/child_process.mjs +2 -2
- package/batteries/isolation.cjs +1 -1
- package/batteries/isolation.mjs +1 -1
- package/batteries/llm/anthropic_messages/adapter.cjs +16 -17
- package/batteries/llm/anthropic_messages/adapter.cjs.map +1 -1
- package/batteries/llm/anthropic_messages/adapter.mjs +8 -9
- package/batteries/llm/anthropic_messages/adapter.mjs.map +1 -1
- package/batteries/llm/anthropic_messages/count_tokens.cjs +13 -13
- package/batteries/llm/anthropic_messages/count_tokens.cjs.map +1 -1
- package/batteries/llm/anthropic_messages/count_tokens.d.ts +1 -2
- package/batteries/llm/anthropic_messages/count_tokens.mjs +4 -4
- package/batteries/llm/anthropic_messages/count_tokens.mjs.map +1 -1
- package/batteries/llm/anthropic_messages/error_translation.cjs +5 -5
- package/batteries/llm/anthropic_messages/error_translation.cjs.map +1 -1
- package/batteries/llm/anthropic_messages/error_translation.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 +16 -17
- package/batteries/llm/bedrock_converse/adapter.cjs.map +1 -1
- package/batteries/llm/bedrock_converse/adapter.d.ts +1 -1
- package/batteries/llm/bedrock_converse/adapter.mjs +8 -9
- package/batteries/llm/bedrock_converse/adapter.mjs.map +1 -1
- package/batteries/llm/bedrock_converse/helpers.cjs +3 -3
- package/batteries/llm/bedrock_converse/helpers.cjs.map +1 -1
- package/batteries/llm/bedrock_converse/helpers.mjs +2 -2
- 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 +23 -24
- package/batteries/llm/claude_code_cli/adapter.cjs.map +1 -1
- package/batteries/llm/claude_code_cli/adapter.mjs +7 -8
- package/batteries/llm/claude_code_cli/adapter.mjs.map +1 -1
- 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 +16 -17
- package/batteries/llm/gemini_generate_content/adapter.cjs.map +1 -1
- package/batteries/llm/gemini_generate_content/adapter.mjs +8 -9
- package/batteries/llm/gemini_generate_content/adapter.mjs.map +1 -1
- package/batteries/llm/gemini_generate_content/helpers.cjs +5 -5
- package/batteries/llm/gemini_generate_content/helpers.cjs.map +1 -1
- package/batteries/llm/gemini_generate_content/helpers.mjs +2 -2
- 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 +15 -16
- package/batteries/llm/litert_lm/adapter.cjs.map +1 -1
- package/batteries/llm/litert_lm/adapter.mjs +7 -8
- package/batteries/llm/litert_lm/adapter.mjs.map +1 -1
- package/batteries/llm/litert_lm/helpers.cjs +5 -5
- package/batteries/llm/litert_lm/helpers.cjs.map +1 -1
- package/batteries/llm/litert_lm/helpers.d.ts +5 -5
- package/batteries/llm/litert_lm/helpers.mjs +5 -5
- package/batteries/llm/litert_lm/helpers.mjs.map +1 -1
- package/batteries/llm/litert_lm/validation.cjs +3 -4
- package/batteries/llm/litert_lm/validation.cjs.map +1 -1
- package/batteries/llm/litert_lm/validation.mjs +2 -3
- package/batteries/llm/litert_lm/validation.mjs.map +1 -1
- package/batteries/llm/litert_lm.cjs +2 -2
- package/batteries/llm/litert_lm.mjs +2 -2
- package/batteries/llm/ollama/adapter.cjs +20 -21
- package/batteries/llm/ollama/adapter.cjs.map +1 -1
- package/batteries/llm/ollama/adapter.mjs +8 -9
- package/batteries/llm/ollama/adapter.mjs.map +1 -1
- 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 +25 -26
- package/batteries/llm/openai_chat_completions/adapter.cjs.map +1 -1
- package/batteries/llm/openai_chat_completions/adapter.mjs +8 -9
- package/batteries/llm/openai_chat_completions/adapter.mjs.map +1 -1
- 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 +23 -24
- package/batteries/llm/openai_responses/adapter.cjs.map +1 -1
- package/batteries/llm/openai_responses/adapter.mjs +8 -9
- package/batteries/llm/openai_responses/adapter.mjs.map +1 -1
- 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 +20 -21
- package/batteries/llm/transformers_js/adapter.cjs.map +1 -1
- package/batteries/llm/transformers_js/adapter.mjs +7 -8
- package/batteries/llm/transformers_js/adapter.mjs.map +1 -1
- package/batteries/llm/transformers_js/helpers.cjs +7 -7
- package/batteries/llm/transformers_js/helpers.cjs.map +1 -1
- package/batteries/llm/transformers_js/helpers.d.ts +5 -5
- package/batteries/llm/transformers_js/helpers.mjs +6 -6
- package/batteries/llm/transformers_js/helpers.mjs.map +1 -1
- package/batteries/llm/transformers_js/model_source.cjs +2 -2
- package/batteries/llm/transformers_js/model_source.cjs.map +1 -1
- package/batteries/llm/transformers_js/model_source.mjs +1 -1
- package/batteries/llm/transformers_js/validation.cjs +3 -4
- package/batteries/llm/transformers_js/validation.cjs.map +1 -1
- package/batteries/llm/transformers_js/validation.mjs +2 -3
- package/batteries/llm/transformers_js/validation.mjs.map +1 -1
- package/batteries/llm/transformers_js.cjs +2 -2
- package/batteries/llm/transformers_js.mjs +2 -2
- package/batteries/llm/webllm_chat_completions/adapter.cjs +20 -21
- package/batteries/llm/webllm_chat_completions/adapter.cjs.map +1 -1
- package/batteries/llm/webllm_chat_completions/adapter.mjs +7 -8
- package/batteries/llm/webllm_chat_completions/adapter.mjs.map +1 -1
- 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/contracts.cjs +3 -3
- package/batteries/media/contracts.cjs.map +1 -1
- package/batteries/media/contracts.mjs +1 -1
- package/batteries/media/engines/audio_decode.cjs +4 -3
- package/batteries/media/engines/audio_decode.cjs.map +1 -1
- package/batteries/media/engines/audio_decode.mjs +3 -2
- package/batteries/media/engines/audio_decode.mjs.map +1 -1
- package/batteries/media/engines/data.cjs +2 -2
- package/batteries/media/engines/data.cjs.map +1 -1
- package/batteries/media/engines/data.mjs +1 -1
- package/batteries/media/engines/exceljs.cjs +3 -3
- package/batteries/media/engines/exceljs.cjs.map +1 -1
- package/batteries/media/engines/exceljs.mjs +1 -1
- package/batteries/media/engines/execa_executor.cjs +3 -3
- package/batteries/media/engines/execa_executor.cjs.map +1 -1
- package/batteries/media/engines/execa_executor.mjs +1 -1
- package/batteries/media/engines/fs_workspace.cjs +3 -3
- package/batteries/media/engines/fs_workspace.cjs.map +1 -1
- package/batteries/media/engines/fs_workspace.mjs +1 -1
- package/batteries/media/engines/jimp.cjs +2 -2
- package/batteries/media/engines/jimp.cjs.map +1 -1
- package/batteries/media/engines/jimp.mjs +1 -1
- package/batteries/media/engines/sharp.cjs +2 -2
- package/batteries/media/engines/sharp.cjs.map +1 -1
- package/batteries/media/engines/sharp.mjs +1 -1
- package/batteries/media/engines/sheetjs.cjs +3 -3
- package/batteries/media/engines/sheetjs.cjs.map +1 -1
- package/batteries/media/engines/sheetjs.mjs +1 -1
- package/batteries/media/engines/tesseract_js.cjs +2 -2
- package/batteries/media/engines/tesseract_js.cjs.map +1 -1
- package/batteries/media/engines/tesseract_js.mjs +1 -1
- package/batteries/media/engines/transformers_asr.cjs +2 -2
- package/batteries/media/engines/transformers_asr.cjs.map +1 -1
- package/batteries/media/engines/transformers_asr.mjs +1 -1
- package/batteries/media/forge.cjs +7 -7
- package/batteries/media/forge.cjs.map +1 -1
- package/batteries/media/forge.mjs +6 -6
- package/batteries/media/index.d.ts +1 -0
- 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/steps/image_audio.d.ts +1 -1
- package/batteries/media/steps/text.d.ts +0 -1
- package/batteries/media.cjs +54 -53
- package/batteries/media.cjs.map +1 -1
- package/batteries/media.mjs +5 -4
- package/batteries/media.mjs.map +1 -1
- package/batteries/orchestration/approval.cjs +4 -3
- package/batteries/orchestration/approval.cjs.map +1 -1
- package/batteries/orchestration/approval.mjs +2 -1
- package/batteries/orchestration/approval.mjs.map +1 -1
- package/batteries/orchestration/cells/jexl.cjs +5 -4
- package/batteries/orchestration/cells/jexl.cjs.map +1 -1
- package/batteries/orchestration/cells/jexl.mjs +3 -2
- package/batteries/orchestration/cells/jexl.mjs.map +1 -1
- package/batteries/orchestration/cells/lua.cjs +12 -11
- package/batteries/orchestration/cells/lua.cjs.map +1 -1
- package/batteries/orchestration/cells/lua.mjs +3 -2
- package/batteries/orchestration/cells/lua.mjs.map +1 -1
- package/batteries/orchestration/cells/structured.cjs +7 -6
- package/batteries/orchestration/cells/structured.cjs.map +1 -1
- package/batteries/orchestration/cells/structured.mjs +3 -2
- package/batteries/orchestration/cells/structured.mjs.map +1 -1
- package/batteries/orchestration/conformance.cjs +2 -2
- package/batteries/orchestration/conformance.cjs.map +1 -1
- package/batteries/orchestration/conformance.mjs +1 -1
- package/batteries/orchestration/dispatch_reasoner.cjs +8 -7
- package/batteries/orchestration/dispatch_reasoner.cjs.map +1 -1
- package/batteries/orchestration/dispatch_reasoner.mjs +6 -5
- package/batteries/orchestration/dispatch_reasoner.mjs.map +1 -1
- package/batteries/orchestration/encoding.cjs +3 -3
- package/batteries/orchestration/encoding.cjs.map +1 -1
- package/batteries/orchestration/encoding.mjs +1 -1
- package/batteries/orchestration/executor.cjs +10 -9
- package/batteries/orchestration/executor.cjs.map +1 -1
- package/batteries/orchestration/executor.mjs +4 -3
- package/batteries/orchestration/executor.mjs.map +1 -1
- package/batteries/orchestration/forge.cjs +10 -9
- package/batteries/orchestration/forge.cjs.map +1 -1
- package/batteries/orchestration/forge.d.ts +1 -1
- package/batteries/orchestration/forge.mjs +6 -5
- package/batteries/orchestration/forge.mjs.map +1 -1
- package/batteries/orchestration/outline.cjs +3 -2
- package/batteries/orchestration/outline.cjs.map +1 -1
- package/batteries/orchestration/outline.mjs +2 -1
- package/batteries/orchestration/outline.mjs.map +1 -1
- package/batteries/orchestration/raw.cjs +3 -2
- package/batteries/orchestration/raw.cjs.map +1 -1
- package/batteries/orchestration/raw.mjs +2 -1
- package/batteries/orchestration/raw.mjs.map +1 -1
- package/batteries/orchestration/render.cjs +14 -13
- package/batteries/orchestration/render.cjs.map +1 -1
- package/batteries/orchestration/render.mjs +2 -1
- package/batteries/orchestration/render.mjs.map +1 -1
- package/batteries/orchestration/templates.cjs +7 -6
- package/batteries/orchestration/templates.cjs.map +1 -1
- package/batteries/orchestration/templates.mjs +2 -1
- package/batteries/orchestration/templates.mjs.map +1 -1
- package/batteries/orchestration/validation.cjs +14 -12
- package/batteries/orchestration/validation.cjs.map +1 -1
- package/batteries/orchestration/validation.mjs +5 -3
- package/batteries/orchestration/validation.mjs.map +1 -1
- package/batteries/orchestration.cjs +11 -10
- package/batteries/orchestration.cjs.map +1 -1
- package/batteries/orchestration.mjs +7 -6
- package/batteries/orchestration.mjs.map +1 -1
- package/batteries/sandbox/executor.d.ts +1 -1
- package/batteries/sandbox/js.cjs +10 -9
- package/batteries/sandbox/js.cjs.map +1 -1
- package/batteries/sandbox/js.mjs +6 -5
- package/batteries/sandbox/js.mjs.map +1 -1
- package/batteries/sandbox/lint.cjs +263 -0
- package/batteries/sandbox/lint.cjs.map +1 -0
- package/batteries/sandbox/lint.d.ts +103 -0
- package/batteries/sandbox/lint.mjs +257 -0
- package/batteries/sandbox/lint.mjs.map +1 -0
- package/batteries/sandbox/media_reader.d.ts +1 -2
- package/batteries/sandbox/node.cjs +14 -730
- package/batteries/sandbox/node.mjs +1 -717
- package/batteries/sandbox/tools/index.d.ts +3 -3
- package/batteries/sandbox/tools.cjs +1 -1
- package/batteries/sandbox/tools.mjs +1 -1
- package/batteries/sandbox/validation.d.ts +1 -1
- package/batteries/sandbox.cjs +152 -54
- package/batteries/sandbox.cjs.map +1 -1
- package/batteries/sandbox.mjs +107 -9
- package/batteries/sandbox.mjs.map +1 -1
- package/batteries/skills/in_memory.cjs +1 -1
- package/batteries/skills/in_memory.mjs +1 -1
- package/batteries/skills/lint.cjs +211 -0
- package/batteries/skills/lint.cjs.map +1 -0
- package/batteries/skills/lint.d.ts +99 -0
- package/batteries/skills/lint.mjs +204 -0
- package/batteries/skills/lint.mjs.map +1 -0
- package/batteries/skills/scripts.d.ts +1 -1
- package/batteries/skills/types.d.ts +2 -5
- package/batteries/skills.cjs +31 -33
- package/batteries/skills.cjs.map +1 -1
- package/batteries/skills.mjs +10 -12
- package/batteries/skills.mjs.map +1 -1
- package/batteries/specialists/_shared.cjs +7 -6
- package/batteries/specialists/_shared.cjs.map +1 -1
- package/batteries/specialists/_shared.mjs +3 -2
- package/batteries/specialists/_shared.mjs.map +1 -1
- package/batteries/specialists/caption/transformers_js/adapter.cjs +4 -3
- package/batteries/specialists/caption/transformers_js/adapter.cjs.map +1 -1
- package/batteries/specialists/caption/transformers_js/adapter.mjs +2 -1
- package/batteries/specialists/caption/transformers_js/adapter.mjs.map +1 -1
- package/batteries/specialists/caption/transformers_js/types.d.ts +2 -2
- package/batteries/specialists/caption/transformers_js/validation.cjs +2 -2
- package/batteries/specialists/caption/transformers_js/validation.cjs.map +1 -1
- package/batteries/specialists/caption/transformers_js/validation.mjs +1 -1
- package/batteries/specialists/ocr/tesseract_js/adapter.cjs +6 -5
- package/batteries/specialists/ocr/tesseract_js/adapter.cjs.map +1 -1
- package/batteries/specialists/ocr/tesseract_js/adapter.mjs +2 -1
- package/batteries/specialists/ocr/tesseract_js/adapter.mjs.map +1 -1
- package/batteries/specialists/ocr/tesseract_js/types.d.ts +2 -2
- package/batteries/specialists/ocr/tesseract_js/validation.cjs +2 -2
- package/batteries/specialists/ocr/tesseract_js/validation.cjs.map +1 -1
- package/batteries/specialists/ocr/tesseract_js/validation.mjs +1 -1
- package/batteries/specialists/stt/transformers_js/types.d.ts +2 -2
- package/batteries/specialists/stt/transformers_js.cjs +1 -1
- package/batteries/specialists/stt/transformers_js.mjs +1 -1
- package/batteries/specialists/stt.cjs +1 -1
- package/batteries/specialists/stt.mjs +1 -1
- package/batteries/specialists.cjs +1 -1
- package/batteries/specialists.mjs +1 -1
- package/batteries/storage/flydrive.cjs +2 -2
- package/batteries/storage/flydrive.cjs.map +1 -1
- package/batteries/storage/flydrive.mjs +1 -1
- package/batteries/storage/in_memory.cjs +2 -2
- package/batteries/storage/in_memory.cjs.map +1 -1
- package/batteries/storage/in_memory.mjs +1 -1
- package/batteries/storage/opfs.cjs +4 -4
- package/batteries/storage/opfs.cjs.map +1 -1
- package/batteries/storage/opfs.mjs +1 -1
- package/batteries/tools/_shared.cjs +7 -7
- package/batteries/tools/_shared.cjs.map +1 -1
- package/batteries/tools/_shared.mjs +2 -2
- package/batteries/tools/color.cjs +2 -2
- package/batteries/tools/color.mjs +2 -2
- package/batteries/tools/comparison.cjs +4 -4
- package/batteries/tools/comparison.cjs.map +1 -1
- package/batteries/tools/comparison.mjs +3 -3
- package/batteries/tools/data_structure.cjs +6 -6
- package/batteries/tools/data_structure.cjs.map +1 -1
- package/batteries/tools/data_structure.mjs +3 -3
- 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 +6 -6
- package/batteries/tools/encoding.cjs.map +1 -1
- package/batteries/tools/encoding.mjs +3 -3
- package/batteries/tools/formatting.cjs +4 -4
- package/batteries/tools/formatting.cjs.map +1 -1
- package/batteries/tools/formatting.mjs +3 -3
- package/batteries/tools/geo_basics.cjs +2 -2
- package/batteries/tools/geo_basics.mjs +2 -2
- package/batteries/tools/math.cjs +7 -7
- package/batteries/tools/math.cjs.map +1 -1
- package/batteries/tools/math.mjs +3 -3
- package/batteries/tools/memory.cjs +9 -9
- package/batteries/tools/memory.cjs.map +1 -1
- package/batteries/tools/memory.mjs +5 -5
- package/batteries/tools/parsing.cjs +6 -6
- package/batteries/tools/parsing.cjs.map +1 -1
- package/batteries/tools/parsing.mjs +4 -4
- package/batteries/tools/retrievables.cjs +11 -11
- package/batteries/tools/retrievables.cjs.map +1 -1
- 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 +7 -7
- package/batteries/tools/standing_instructions.cjs.map +1 -1
- package/batteries/tools/standing_instructions.mjs +4 -4
- package/batteries/tools/statistics.cjs +6 -6
- package/batteries/tools/statistics.cjs.map +1 -1
- package/batteries/tools/statistics.mjs +4 -4
- package/batteries/tools/string_processing.cjs +6 -6
- package/batteries/tools/string_processing.cjs.map +1 -1
- package/batteries/tools/string_processing.mjs +3 -3
- package/batteries/tools/structured_data.cjs +6 -6
- package/batteries/tools/structured_data.cjs.map +1 -1
- package/batteries/tools/structured_data.mjs +3 -3
- 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/web_retrieval.cjs +2 -2
- package/batteries/tools/web_retrieval.cjs.map +1 -1
- package/batteries/tools/web_retrieval.mjs +1 -1
- package/batteries/tools.cjs +2 -2
- package/batteries/tools.mjs +2 -2
- package/batteries/tts/_shared/index.d.ts +1 -1
- package/batteries/tts/native/adapter.cjs +4 -4
- package/batteries/tts/native/adapter.cjs.map +1 -1
- package/batteries/tts/native/adapter.mjs +1 -1
- package/batteries/tts/native/validation.cjs +2 -2
- package/batteries/tts/native/validation.cjs.map +1 -1
- package/batteries/tts/native/validation.mjs +1 -1
- package/batteries/tts/transformers_js/adapter.cjs +5 -4
- package/batteries/tts/transformers_js/adapter.cjs.map +1 -1
- package/batteries/tts/transformers_js/adapter.mjs +2 -1
- package/batteries/tts/transformers_js/adapter.mjs.map +1 -1
- package/batteries/tts/transformers_js/types.d.ts +2 -2
- package/batteries/tts/transformers_js/validation.cjs +3 -3
- package/batteries/tts/transformers_js/validation.cjs.map +1 -1
- package/batteries/tts/transformers_js/validation.mjs +1 -1
- package/batteries/tts/transformers_js/validation.mjs.map +1 -1
- package/batteries/validation.cjs +8 -9
- package/batteries/validation.cjs.map +1 -1
- package/batteries/validation.mjs +4 -5
- package/batteries/validation.mjs.map +1 -1
- package/batteries/vector/arangodb.cjs +2 -2
- package/batteries/vector/arangodb.cjs.map +1 -1
- package/batteries/vector/arangodb.mjs +1 -1
- package/batteries/vector/chroma.cjs +1 -1
- package/batteries/vector/chroma.mjs +1 -1
- package/batteries/vector/clickhouse.cjs +3 -3
- package/batteries/vector/clickhouse.cjs.map +1 -1
- package/batteries/vector/clickhouse.mjs +2 -2
- package/batteries/vector/cloudflare.cjs +3 -3
- package/batteries/vector/cloudflare.cjs.map +1 -1
- package/batteries/vector/cloudflare.mjs +2 -2
- package/batteries/vector/couchbase.cjs +3 -3
- package/batteries/vector/couchbase.cjs.map +1 -1
- package/batteries/vector/couchbase.mjs +2 -2
- package/batteries/vector/duckdb.cjs +3 -3
- package/batteries/vector/duckdb.cjs.map +1 -1
- package/batteries/vector/duckdb.mjs +2 -2
- package/batteries/vector/elasticsearch.cjs +3 -3
- package/batteries/vector/elasticsearch.cjs.map +1 -1
- package/batteries/vector/elasticsearch.mjs +2 -2
- package/batteries/vector/filters.cjs +2 -2
- package/batteries/vector/filters.cjs.map +1 -1
- package/batteries/vector/filters.mjs +1 -1
- package/batteries/vector/hnswlib.cjs +3 -3
- package/batteries/vector/hnswlib.cjs.map +1 -1
- package/batteries/vector/hnswlib.mjs +2 -2
- package/batteries/vector/in_memory.cjs +1 -1
- package/batteries/vector/in_memory.mjs +1 -1
- package/batteries/vector/lancedb.cjs +3 -3
- package/batteries/vector/lancedb.cjs.map +1 -1
- package/batteries/vector/lancedb.mjs +2 -2
- package/batteries/vector/mariadb.cjs +3 -3
- package/batteries/vector/mariadb.cjs.map +1 -1
- package/batteries/vector/mariadb.mjs +2 -2
- package/batteries/vector/meilisearch.cjs +2 -2
- package/batteries/vector/meilisearch.cjs.map +1 -1
- package/batteries/vector/meilisearch.mjs +1 -1
- package/batteries/vector/migrate.cjs +3 -3
- package/batteries/vector/migrate.cjs.map +1 -1
- package/batteries/vector/migrate.mjs +1 -1
- package/batteries/vector/milvus.cjs +1 -1
- package/batteries/vector/milvus.mjs +1 -1
- package/batteries/vector/mongodb.cjs +2 -2
- package/batteries/vector/mongodb.cjs.map +1 -1
- package/batteries/vector/mongodb.mjs +1 -1
- package/batteries/vector/neo4j.cjs +2 -2
- package/batteries/vector/neo4j.cjs.map +1 -1
- package/batteries/vector/neo4j.mjs +1 -1
- package/batteries/vector/opensearch.cjs +3 -3
- package/batteries/vector/opensearch.cjs.map +1 -1
- package/batteries/vector/opensearch.mjs +2 -2
- package/batteries/vector/oracle23ai.cjs +3 -3
- package/batteries/vector/oracle23ai.cjs.map +1 -1
- package/batteries/vector/oracle23ai.mjs +2 -2
- 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 +7 -7
- package/batteries/vector/pinecone.cjs.map +1 -1
- package/batteries/vector/pinecone.mjs +2 -2
- package/batteries/vector/qdrant.cjs +1 -1
- package/batteries/vector/qdrant.mjs +1 -1
- package/batteries/vector/redis.cjs +3 -3
- package/batteries/vector/redis.cjs.map +1 -1
- package/batteries/vector/redis.mjs +2 -2
- package/batteries/vector/retrievable.cjs +3 -3
- package/batteries/vector/retrievable.cjs.map +1 -1
- package/batteries/vector/retrievable.mjs +2 -2
- package/batteries/vector/retrievable.mjs.map +1 -1
- package/batteries/vector/retrievable_glue.d.ts +1 -1
- package/batteries/vector/s3vectors.cjs +3 -3
- package/batteries/vector/s3vectors.cjs.map +1 -1
- package/batteries/vector/s3vectors.mjs +2 -2
- package/batteries/vector/solr.cjs +2 -2
- package/batteries/vector/solr.cjs.map +1 -1
- package/batteries/vector/solr.mjs +1 -1
- package/batteries/vector/sqlite_vec.cjs +1 -1
- package/batteries/vector/sqlite_vec.mjs +1 -1
- package/batteries/vector/surrealdb.cjs +2 -2
- package/batteries/vector/surrealdb.cjs.map +1 -1
- package/batteries/vector/surrealdb.mjs +1 -1
- package/batteries/vector/typesense.cjs +3 -3
- package/batteries/vector/typesense.cjs.map +1 -1
- package/batteries/vector/typesense.mjs +2 -2
- package/batteries/vector/vespa.cjs +3 -3
- package/batteries/vector/vespa.cjs.map +1 -1
- package/batteries/vector/vespa.mjs +2 -2
- package/batteries/vector/weaviate.cjs +6 -6
- package/batteries/vector/weaviate.cjs.map +1 -1
- package/batteries/vector/weaviate.mjs +2 -2
- package/batteries/vector.cjs +2 -2
- package/batteries/vector.mjs +2 -2
- package/batteries.cjs +11 -11
- package/batteries.mjs +11 -11
- package/{chat_common-vSxDBGgr.cjs → chat_common-BZQ6QN77.cjs} +3 -3
- package/{chat_common-vSxDBGgr.cjs.map → chat_common-BZQ6QN77.cjs.map} +1 -1
- package/{chat_common-DKw8FDol.mjs → chat_common-CAFrTpvs.mjs} +3 -3
- package/{chat_common-DKw8FDol.mjs.map → chat_common-CAFrTpvs.mjs.map} +1 -1
- package/common-4_EYYb5H.mjs +245 -0
- package/common-4_EYYb5H.mjs.map +1 -0
- package/{common-BcB05Isq.cjs → common-BT__XgLn.cjs} +79 -10
- package/common-BT__XgLn.cjs.map +1 -0
- package/common-CKbae_Ra.cjs +291 -0
- package/common-CKbae_Ra.cjs.map +1 -0
- package/{common-oI1niK9Z.mjs → common-DbmmAC1w.mjs} +59 -9
- package/common-DbmmAC1w.mjs.map +1 -0
- package/common.cjs +23 -8
- package/common.d.ts +1 -0
- package/common.mjs +10 -8
- package/{dispatch_runner-CTAI0RSs.cjs → dispatch_runner-DHTpg5ie.cjs} +27 -72
- package/dispatch_runner-DHTpg5ie.cjs.map +1 -0
- package/{dispatch_runner-BZDXUe0G.mjs → dispatch_runner-DNd4RRld.mjs} +5 -44
- package/dispatch_runner-DNd4RRld.mjs.map +1 -0
- package/dispatch_runner.cjs +1 -1
- package/dispatch_runner.mjs +1 -1
- package/{ecmascript-DOv8gVQ5.cjs → ecmascript-BKsuzhuQ.cjs} +6 -6
- package/{ecmascript-DOv8gVQ5.cjs.map → ecmascript-BKsuzhuQ.cjs.map} +1 -1
- package/{ecmascript-B9Z2C24U.mjs → ecmascript-BfW5n6QN.mjs} +4 -4
- package/{ecmascript-B9Z2C24U.mjs.map → ecmascript-BfW5n6QN.mjs.map} +1 -1
- package/{escape-BsshN2Mx.cjs → escape-4Pwr62ix.cjs} +2 -2
- package/{escape-BsshN2Mx.cjs.map → escape-4Pwr62ix.cjs.map} +1 -1
- package/{escape-WjKeWGgG.mjs → escape-ClQqT_m1.mjs} +2 -2
- package/{escape-WjKeWGgG.mjs.map → escape-ClQqT_m1.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 +8 -0
- package/eslint/rules.mjs +4 -1
- package/eslint.cjs +10 -2
- package/eslint.cjs.map +1 -1
- package/eslint.mjs +8 -3
- package/eslint.mjs.map +1 -1
- package/{exceptions-DbpDv4x5.cjs → exceptions-C5R2UaIP.cjs} +2 -1
- package/exceptions-C5R2UaIP.cjs.map +1 -0
- package/{exceptions-Cf1zCfzZ.mjs → exceptions-CcJR5qk7.mjs} +2 -1
- package/exceptions-CcJR5qk7.mjs.map +1 -0
- package/exceptions.cjs +4 -1
- package/exceptions.mjs +3 -3
- package/factories.cjs +1 -0
- package/factories.mjs +2 -2
- package/forge.cjs +2 -2
- package/forge.mjs +2 -2
- package/guards.cjs +10 -11
- package/guards.cjs.map +1 -1
- package/guards.mjs +7 -8
- package/guards.mjs.map +1 -1
- package/{helpers-CiZnHmxC.cjs → helpers-BoNnuhNn.cjs} +5 -5
- package/{helpers-CiZnHmxC.cjs.map → helpers-BoNnuhNn.cjs.map} +1 -1
- package/{helpers-mbn_EsDV.mjs → helpers-D2qRXdx_.mjs} +4 -4
- package/{helpers-mbn_EsDV.mjs.map → helpers-D2qRXdx_.mjs.map} +1 -1
- package/index.cjs +36 -37
- package/index.cjs.map +1 -1
- package/index.mjs +11 -12
- package/index.mjs.map +1 -1
- package/{isolation-Du-MRsou.cjs → isolation-B4IsSXUv.cjs} +17 -17
- package/{isolation-Du-MRsou.cjs.map → isolation-B4IsSXUv.cjs.map} +1 -1
- package/{isolation-DF6VjWgE.mjs → isolation-UXhDxARR.mjs} +2 -2
- package/{isolation-DF6VjWgE.mjs.map → isolation-UXhDxARR.mjs.map} +1 -1
- package/lib/patch/index.d.ts +23 -0
- package/{patch-BbC0U8aR.mjs → lib/patch.cjs} +8 -53
- package/lib/patch.cjs.map +1 -0
- package/{patch-BXX9Q0FM.cjs → lib/patch.mjs} +2 -100
- package/lib/patch.mjs.map +1 -0
- package/{manifest-BPcrFRN4.cjs → manifest-DCN9O8kO.cjs} +5 -5
- package/{manifest-BPcrFRN4.cjs.map → manifest-DCN9O8kO.cjs.map} +1 -1
- package/{manifest-D8UTRohY.mjs → manifest-hW9JQ8QQ.mjs} +2 -2
- package/{manifest-D8UTRohY.mjs.map → manifest-hW9JQ8QQ.mjs.map} +1 -1
- package/mcp/adk-docs-corpus.json +2 -2
- package/node-CAWwm0Mf.mjs +980 -0
- package/node-CAWwm0Mf.mjs.map +1 -0
- package/node-CPC3U5Ho.cjs +1057 -0
- package/node-CPC3U5Ho.cjs.map +1 -0
- package/package.json +393 -368
- package/{predicates-CM27Z3TF.mjs → predicates--C9KLS20.mjs} +3 -2
- package/{predicates-CM27Z3TF.mjs.map → predicates--C9KLS20.mjs.map} +1 -1
- package/{predicates-Bzaa7gNI.cjs → predicates-Cv0sQtDx.cjs} +10 -9
- package/{predicates-Bzaa7gNI.cjs.map → predicates-Cv0sQtDx.cjs.map} +1 -1
- package/{retrievable-BOuQSDHF.cjs → retrievable_spool-C2BRXpb1.cjs} +61 -6
- package/retrievable_spool-C2BRXpb1.cjs.map +1 -0
- package/{retrievable-CXTAUuuv.mjs → retrievable_spool-DrORPPSb.mjs} +42 -5
- package/retrievable_spool-DrORPPSb.mjs.map +1 -0
- package/{scrapper-D8JuiZ-F.mjs → scrapper-BxIPORaC.mjs} +5 -5
- package/{scrapper-D8JuiZ-F.mjs.map → scrapper-BxIPORaC.mjs.map} +1 -1
- package/{scrapper-mSYpTJM4.cjs → scrapper-MmhYgHmu.cjs} +6 -6
- package/{scrapper-mSYpTJM4.cjs.map → scrapper-MmhYgHmu.cjs.map} +1 -1
- package/{searxng-g7srhFzs.mjs → searxng-CyHrxj3D.mjs} +5 -5
- package/{searxng-g7srhFzs.mjs.map → searxng-CyHrxj3D.mjs.map} +1 -1
- package/{searxng-Daodv0K4.cjs → searxng-DuvIf0aW.cjs} +6 -6
- package/{searxng-Daodv0K4.cjs.map → searxng-DuvIf0aW.cjs.map} +1 -1
- package/server.json +2 -2
- package/skills/adk-assembly/SKILL.md +2 -2
- package/{spooled_artifact-DZXsP4s1.cjs → spooled_artifact-B-inikuu.cjs} +736 -737
- package/spooled_artifact-B-inikuu.cjs.map +1 -0
- package/{spooled_artifact-Bw_7swIp.mjs → spooled_artifact-Caie8ZrX.mjs} +731 -732
- package/spooled_artifact-Caie8ZrX.mjs.map +1 -0
- package/spooled_artifact.cjs +2 -2
- package/spooled_artifact.mjs +2 -2
- package/{spooled_markdown_artifact-vd6eNtIP.mjs → spooled_markdown_artifact-BfklURci.mjs} +3 -4
- package/{spooled_markdown_artifact-vd6eNtIP.mjs.map → spooled_markdown_artifact-BfklURci.mjs.map} +1 -1
- package/{spooled_markdown_artifact-Bo0u8cRS.cjs → spooled_markdown_artifact-Dh0scEEJ.cjs} +7 -8
- package/{spooled_markdown_artifact-Bo0u8cRS.cjs.map → spooled_markdown_artifact-Dh0scEEJ.cjs.map} +1 -1
- package/{thought-CxSaF6Xf.mjs → thought-BkNYZa_A.mjs} +3 -4
- package/{thought-CxSaF6Xf.mjs.map → thought-BkNYZa_A.mjs.map} +1 -1
- package/{thought-C12mqaKQ.cjs → thought-CPpYN0ze.cjs} +13 -14
- package/{thought-C12mqaKQ.cjs.map → thought-CPpYN0ze.cjs.map} +1 -1
- package/{tokenizable-BcodRtoW.cjs → tokenizable-Cvi9uoKx.cjs} +98 -33
- package/tokenizable-Cvi9uoKx.cjs.map +1 -0
- package/{tokenizable-VB4Av8GF.mjs → tokenizable-Dko3WKnb.mjs} +79 -32
- package/tokenizable-Dko3WKnb.mjs.map +1 -0
- package/{tool_call-Cfaj-6zK.mjs → tool_call-CUNEC2aj.mjs} +3 -4
- package/{tool_call-Cfaj-6zK.mjs.map → tool_call-CUNEC2aj.mjs.map} +1 -1
- package/{tool_call-CsBOpKsg.cjs → tool_call-CmTaENGg.cjs} +9 -10
- package/{tool_call-CsBOpKsg.cjs.map → tool_call-CmTaENGg.cjs.map} +1 -1
- package/{tool_parsers-DgZhgxV8.mjs → tool_parsers-44xdB4Fr.mjs} +2 -2
- package/{tool_parsers-DgZhgxV8.mjs.map → tool_parsers-44xdB4Fr.mjs.map} +1 -1
- package/{tool_parsers-8_qO0a_F.cjs → tool_parsers-BhFobspT.cjs} +9 -9
- package/{tool_parsers-8_qO0a_F.cjs.map → tool_parsers-BhFobspT.cjs.map} +1 -1
- package/{tools-BjHXlDlV.cjs → tools-C8HV20Ks.cjs} +20 -20
- package/tools-C8HV20Ks.cjs.map +1 -0
- package/{tools-Vkfht7mU.mjs → tools-DW5YPnst.mjs} +9 -9
- package/tools-DW5YPnst.mjs.map +1 -0
- package/{toon-5c9ceKiU.cjs → toon-DXJL1ojB.cjs} +9 -9
- package/{toon-5c9ceKiU.cjs.map → toon-DXJL1ojB.cjs.map} +1 -1
- package/{toon-BSTQnHed.mjs → toon-DvgnYmHv.mjs} +5 -5
- package/{toon-BSTQnHed.mjs.map → toon-DvgnYmHv.mjs.map} +1 -1
- package/{transformers_js-7OzeS_Tp.cjs → transformers_js-Bwl_CEqC.cjs} +8 -6
- package/{transformers_js-7OzeS_Tp.cjs.map → transformers_js-Bwl_CEqC.cjs.map} +1 -1
- package/{transformers_js-p3lAkHFH.mjs → transformers_js-C-Vi6Bnw.mjs} +5 -3
- package/{transformers_js-p3lAkHFH.mjs.map → transformers_js-C-Vi6Bnw.mjs.map} +1 -1
- package/{turn_runner-BHHD6h77.mjs → turn_runner-DxVLjaRC.mjs} +4 -5
- package/{turn_runner-BHHD6h77.mjs.map → turn_runner-DxVLjaRC.mjs.map} +1 -1
- package/{turn_runner--tsMLLx4.cjs → turn_runner-Xfrg7YuT.cjs} +16 -17
- package/{turn_runner--tsMLLx4.cjs.map → turn_runner-Xfrg7YuT.cjs.map} +1 -1
- package/turn_runner.cjs +1 -1
- package/turn_runner.mjs +1 -1
- package/{types-PlgkkLqH.cjs → types-DWc7CEVU.cjs} +12 -10
- package/types-DWc7CEVU.cjs.map +1 -0
- package/{types-BRG2MDAN.mjs → types-kh4rhOoZ.mjs} +5 -3
- package/types-kh4rhOoZ.mjs.map +1 -0
- package/{validate-tUm9MY8y.cjs → validate-CJdOu8z7.cjs} +7 -7
- package/{validate-tUm9MY8y.cjs.map → validate-CJdOu8z7.cjs.map} +1 -1
- package/{validate-Bi7FGjoq.mjs → validate-DgNstY9b.mjs} +2 -2
- package/{validate-Bi7FGjoq.mjs.map → validate-DgNstY9b.mjs.map} +1 -1
- package/{xml-CYseDztH.mjs → xml-CEM2Icoo.mjs} +5 -5
- package/{xml-CYseDztH.mjs.map → xml-CEM2Icoo.mjs.map} +1 -1
- package/{xml-DTOnPN52.cjs → xml-pOk2p9F1.cjs} +16 -16
- package/{xml-DTOnPN52.cjs.map → xml-pOk2p9F1.cjs.map} +1 -1
- package/{yaml-BPBoiOjx.mjs → yaml-CWxZn3C4.mjs} +5 -5
- package/{yaml-BPBoiOjx.mjs.map → yaml-CWxZn3C4.mjs.map} +1 -1
- package/{yaml-CMrbNWLc.cjs → yaml-DbLMonuT.cjs} +16 -16
- package/{yaml-CMrbNWLc.cjs.map → yaml-DbLMonuT.cjs.map} +1 -1
- package/artifact_methods-Cg0go7Q4.mjs +0 -1
- package/artifact_methods-Dtf4-3C-.cjs +0 -1
- package/batteries/sandbox/node.cjs.map +0 -1
- package/batteries/sandbox/node.mjs.map +0 -1
- package/common-BcB05Isq.cjs.map +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/common-oI1niK9Z.mjs.map +0 -1
- package/conformance-FncyAbRs.mjs +0 -101
- package/conformance-FncyAbRs.mjs.map +0 -1
- package/conformance-T1qEg8Sv.cjs +0 -106
- package/conformance-T1qEg8Sv.cjs.map +0 -1
- package/dispatch_runner-BZDXUe0G.mjs.map +0 -1
- package/dispatch_runner-CTAI0RSs.cjs.map +0 -1
- package/exceptions-Cf1zCfzZ.mjs.map +0 -1
- package/exceptions-DbpDv4x5.cjs.map +0 -1
- package/fs_node-B9wdxkWv.mjs +0 -268
- package/fs_node-B9wdxkWv.mjs.map +0 -1
- package/fs_node-CGGfCOME.cjs +0 -309
- package/fs_node-CGGfCOME.cjs.map +0 -1
- package/guards-5-XmJgD2.cjs +0 -70
- package/guards-5-XmJgD2.cjs.map +0 -1
- package/guards-BEpY7lBI.mjs +0 -53
- package/guards-BEpY7lBI.mjs.map +0 -1
- package/patch-BXX9Q0FM.cjs.map +0 -1
- package/patch-BbC0U8aR.mjs.map +0 -1
- package/retrievable-BOuQSDHF.cjs.map +0 -1
- package/retrievable-CXTAUuuv.mjs.map +0 -1
- package/spooled_artifact-Bw_7swIp.mjs.map +0 -1
- package/spooled_artifact-DZXsP4s1.cjs.map +0 -1
- package/tokenizable-BcodRtoW.cjs.map +0 -1
- package/tokenizable-VB4Av8GF.mjs.map +0 -1
- package/tools-BjHXlDlV.cjs.map +0 -1
- package/tools-Vkfht7mU.mjs.map +0 -1
- package/types-BRG2MDAN.mjs.map +0 -1
- package/types-PlgkkLqH.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -25,6 +25,76 @@ upgrading.
|
|
|
25
25
|
|
|
26
26
|
### Added
|
|
27
27
|
|
|
28
|
+
- **`adk/no-relative-import-from-battery`, the project-local lint rule enforcing the battery
|
|
29
|
+
barrel rule** (closes issue #52). Inside `src/batteries/<battery>/`, a relative specifier — in an
|
|
30
|
+
`import`, a named/star/`export type` re-export, a dynamic `import()` or a `require()` — may
|
|
31
|
+
resolve only within that same battery directory; anything crossing the boundary (a sibling
|
|
32
|
+
battery, `src/lib/**`, the harness root barrels) must go through a public `@nhtio/adk/...` barrel
|
|
33
|
+
exactly as an external consumer would. The `src/batteries/index.ts` aggregator is exempt. Ships
|
|
34
|
+
in `eslint-rules/` (report-only, like the other project-local rules), wired into
|
|
35
|
+
`@nhtio/adk`-scoped flat config at `error` over `src/batteries/**`, and listed in CONTRIBUTING §1
|
|
36
|
+
and `eslint-rules/README.md`, which now document six rules.
|
|
37
|
+
- **`@internal` helpers the batteries share with the harness are now exported (marked `@internal`,
|
|
38
|
+
therefore NOT covered by the semver-stability promise)** (closes issue #52). From
|
|
39
|
+
`@nhtio/adk/common`: `canonicalStringify`, `resampleTo`, `downmixToMono`, `autoSpoolRetrievable`,
|
|
40
|
+
the `ENCODE_METHOD`/`DECODE_METHOD` encoder keys, `isTextual`, `decodeText`, `runOnion`, and —
|
|
41
|
+
new in this follow-up — the retry helpers `computeBackoff`, `sleepWithJitter`, `parseRetryAfter`,
|
|
42
|
+
`linkAbortSignals` and the `BackoffConfig` type. From `@nhtio/adk/exceptions`: `passesSchema`, `validateOrThrow`,
|
|
43
|
+
`asyncValidateOrThrow`. From `@nhtio/adk/factories`: `isException`. From `@nhtio/adk/eslint`:
|
|
44
|
+
`unwrapExpression`, `collectImportBindings`, `resolveCalleeName` and the `ImportBindings` /
|
|
45
|
+
`ResolvedCalleeName` types.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- **All bundled batteries now import harness internals only through published barrels** (closes
|
|
50
|
+
issue #52). Every relative specifier under `src/batteries/**` that crossed its own battery
|
|
51
|
+
directory, and every `@nhtio/adk/lib/...` deep import whose target was not a published entry, now
|
|
52
|
+
resolves through `@nhtio/adk/common`, `.../guards`, `.../types`, `.../exceptions`,
|
|
53
|
+
`.../factories`, `.../eslint` or the batteries' own public subpaths — the same surface an
|
|
54
|
+
external consumer gets, so a consumer-side patch of a barrel is picked up by every battery, and a
|
|
55
|
+
battery can truthfully claim to depend only on the published package. Intra-battery imports stay
|
|
56
|
+
relative. The remaining `@nhtio/adk/lib/...` battery imports (`lib/patch`, `lib/utils/retry`,
|
|
57
|
+
`lib/helpers/bignum`) are published `@module` entries and stay.
|
|
58
|
+
|
|
59
|
+
All rules report-only; the rewrites need an import the rule cannot add.
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
|
|
63
|
+
- **Footgun lint rules and build guards (closes issue #29).** Eight new report-only ESLint rules plus
|
|
64
|
+
three internal build guards, covering the mistakes that compile cleanly and then fail at the wire,
|
|
65
|
+
at construction time, or silently at runtime:
|
|
66
|
+
- **Core plugin** (`@nhtio/adk/eslint`, namespace `adk`, `error` in `recommended`):
|
|
67
|
+
`adk/tool-name-provider-safe` (a string-literal `Tool` name outside
|
|
68
|
+
`/^[A-Za-z_][A-Za-z0-9_-]{0,63}$/` — providers reject it at the wire, e.g. Gemini rejects a
|
|
69
|
+
leading digit or `-`; matched on this package's `Tool`, aliased or namespace-imported, never on
|
|
70
|
+
another library's identically-named class) and `adk/create-exception-args-array`
|
|
71
|
+
(`new E_X(<non-array>)` where `E_X` is a `const`/`let` `createException<[non-empty tuple]>` — in
|
|
72
|
+
the same file, through any spelling of the factory, or — under type-aware linting — an IMPORTED
|
|
73
|
+
exception class resolved by its constructor's args-tuple shape; the value is silently read as
|
|
74
|
+
`ExceptionOptions`, the payload is dropped and the message prints a literal `%s`).
|
|
75
|
+
- **New `@nhtio/adk/batteries/sandbox/lint`** (namespace `adk-sandbox`):
|
|
76
|
+
`no-network-disabled` (`warn` — `network: { disabled: true }` omits SRT's network
|
|
77
|
+
configuration, which means UNRESTRICTED network, not network-off; deny-all is `network: {}`),
|
|
78
|
+
`filesystem-read-default-allow` (`warn` — reads are deny-then-allow, so an `allowRead` list with
|
|
79
|
+
no broad `denyRead: ['/']` before it re-permits nothing and the whole host stays readable; a
|
|
80
|
+
`denyRead`-only policy is deliberately not reported) and `require-gate` (`error` —
|
|
81
|
+
`createRunShellCommandTool` / `createEvaluateJavascriptTool` throw
|
|
82
|
+
`E_SANDBOX_GATE_REQUIRED` at construction without a gate).
|
|
83
|
+
- **New `@nhtio/adk/batteries/skills/lint`** (namespace `adk-skills`): `require-gate` (`error` —
|
|
84
|
+
`createSkillManager` throws `E_INVALID_SKILLS_CONFIG` without one) and `no-unsafe-opt-in`
|
|
85
|
+
(`warn` — one finding per enabled `unsafe` control, naming the boundary it removes:
|
|
86
|
+
`isolatedToolsInProcess`, `scriptsPermissivePolicy`, `ungatedSkillTools`).
|
|
87
|
+
- **Build guards** (`tests/unit/build/*.node.spec.ts`): battery-module reachability (every
|
|
88
|
+
`src/batteries/**/*.ts` file must be `@module`-tagged or transitively imported by a tagged file;
|
|
89
|
+
the six current orphans — the standalone claude-code wrapper cluster and a deprecated
|
|
90
|
+
media/patch re-export shim — are an explicit commented allow-list, so any NEW orphan fails) and
|
|
91
|
+
the `@module` leaf-basename collision invariant (the 17 pre-existing duplicate leaves are
|
|
92
|
+
harmless under the tree-mirrored `dtsComplex` emit, so the guard instead asserts that no two
|
|
93
|
+
entries compute the same `types` output path, that the mirrored layout itself is still in place,
|
|
94
|
+
and that `getEntries` still rejects duplicate keys).
|
|
95
|
+
All rules are report-only (no autofix), conservative about spreads, non-literal arguments and
|
|
96
|
+
dynamic values, and documented in `docs/developer-tools/eslint-rules` (split into per-battery
|
|
97
|
+
sub-pages).
|
|
28
98
|
- **`@nhtio/adk/batteries/sandbox/node` — `srtBinarySandbox(enforcer, opts?)`, the concrete
|
|
29
99
|
`BinarySandbox` implementor for the SRT enforcer** (closes issue #37, closes issue #20). The sandbox
|
|
30
100
|
battery could refuse and narrate invocations, but there was no bundled way to actually wrap a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./common-BT__XgLn.cjs");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./common-DbmmAC1w.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_ecmascript = require("../../ecmascript-
|
|
2
|
+
const require_ecmascript = require("../../ecmascript-BKsuzhuQ.cjs");
|
|
3
3
|
exports.E_TYPESCRIPT_PEER_MISSING = require_ecmascript.E_TYPESCRIPT_PEER_MISSING;
|
|
4
4
|
exports.SpooledEcmaScriptArtifact = require_ecmascript.SpooledEcmaScriptArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-
|
|
1
|
+
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-BfW5n6QN.mjs";
|
|
2
2
|
export { E_TYPESCRIPT_PEER_MISSING, SpooledEcmaScriptArtifact };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_toon = require("../../toon-
|
|
2
|
+
const require_toon = require("../../toon-DXJL1ojB.cjs");
|
|
3
3
|
exports.E_TOON_DECODE_FAILED = require_toon.E_TOON_DECODE_FAILED;
|
|
4
4
|
exports.E_TOON_PEER_MISSING = require_toon.E_TOON_PEER_MISSING;
|
|
5
5
|
exports.SpooledToonArtifact = require_toon.SpooledToonArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../../toon-
|
|
1
|
+
import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../../toon-DvgnYmHv.mjs";
|
|
2
2
|
export { E_TOON_DECODE_FAILED, E_TOON_PEER_MISSING, SpooledToonArtifact, jsonToToonTool, toonToJsonTool };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_xml = require("../../xml-
|
|
2
|
+
const require_xml = require("../../xml-pOk2p9F1.cjs");
|
|
3
3
|
exports.E_XML_PARSER_PEER_MISSING = require_xml.E_XML_PARSER_PEER_MISSING;
|
|
4
4
|
exports.E_XML_PARSE_FAILED = require_xml.E_XML_PARSE_FAILED;
|
|
5
5
|
exports.SpooledXmlArtifact = require_xml.SpooledXmlArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../../xml-
|
|
1
|
+
import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../../xml-CEM2Icoo.mjs";
|
|
2
2
|
export { E_XML_PARSER_PEER_MISSING, E_XML_PARSE_FAILED, SpooledXmlArtifact, jsonToXmlTool, xmlToJsonTool };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_yaml = require("../../yaml-
|
|
2
|
+
const require_yaml = require("../../yaml-DbLMonuT.cjs");
|
|
3
3
|
exports.E_YAML_PARSE_ERROR = require_yaml.E_YAML_PARSE_ERROR;
|
|
4
4
|
exports.E_YAML_PEER_MISSING = require_yaml.E_YAML_PEER_MISSING;
|
|
5
5
|
exports.SpooledYamlArtifact = require_yaml.SpooledYamlArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../../yaml-
|
|
1
|
+
import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../../yaml-CWxZn3C4.mjs";
|
|
2
2
|
export { E_YAML_PARSE_ERROR, E_YAML_PEER_MISSING, SpooledYamlArtifact, jsonToYamlTool, yamlToJsonTool };
|
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-DXJL1ojB.cjs");
|
|
3
|
+
const require_yaml = require("../yaml-DbLMonuT.cjs");
|
|
4
|
+
const require_xml = require("../xml-pOk2p9F1.cjs");
|
|
5
|
+
const require_ecmascript = require("../ecmascript-BKsuzhuQ.cjs");
|
|
6
6
|
//#region src/batteries/artifacts/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* Registers the four artifact classes with the '@nhtio/encoder' decoder.
|
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-DvgnYmHv.mjs";
|
|
2
|
+
import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../yaml-CWxZn3C4.mjs";
|
|
3
|
+
import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../xml-CEM2Icoo.mjs";
|
|
4
|
+
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-BfW5n6QN.mjs";
|
|
5
5
|
//#region src/batteries/artifacts/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* Registers the four artifact classes with the '@nhtio/encoder' decoder.
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
* ```ts
|
|
75
75
|
* import { assembleCompactedTurns, type SummarizeFn } from '@nhtio/adk/batteries/context/compact'
|
|
76
76
|
* import { groupHistoryIntoTurns } from '@nhtio/adk/batteries/context/thrift'
|
|
77
|
-
* import { Tokenizable } from '@nhtio/adk'
|
|
77
|
+
* import { Tokenizable } from '@nhtio/adk/common'
|
|
78
78
|
*
|
|
79
79
|
* // A stub SummarizeFn — see the contract's TSDoc for the real DispatchRunner recipe.
|
|
80
80
|
* const summarize: SummarizeFn = async ({ system, text }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exceptions.cjs","names":[],"sources":["../../../src/batteries/context/exceptions.ts"],"sourcesContent":["/**\n * Shared exception for the context-management batteries — the one failure class `thrift` and\n * `compact` have in common.\n *\n * @module @nhtio/adk/batteries/context/exceptions\n *\n * @remarks\n * Both `thrift` (`subtractToFit`) and `compact` (`summariseTurns`, `assembleCompactedTurns`) require\n * a caller-injected resolver (`estimateTokens`, and for `compact` also `summarize`) because neither\n * battery bundles a tokenizer or a model transport of its own — see each battery's `contracts.ts` for\n * the \"surface, don't impose\" rationale. A missing resolver is the SAME failure shape in both\n * batteries (a required injected function wasn't supplied), so it is minted ONCE here rather than\n * duplicated per-battery. This module lives at the `context` domain level (a sibling of `thrift/` and\n * `compact/`, not inside either) specifically so both can import it without either depending on the\n * other, and re-exports from `../index.ts` so a consumer of either battery's public barrel sees it\n * without a deep import. Minted via `createException` from `@nhtio/adk/factories`, matching every\n * other battery's exception convention.\n */\n\nimport { createException } from '@nhtio/adk/factories'\n\n/**\n * Thrown when a context-management battery function is called without a REQUIRED injected resolver\n * (`estimateTokens`, or — for Compact's `summarize` seam — the model-call function).\n *\n * @remarks\n * Both `@nhtio/adk/batteries/context/thrift` and `@nhtio/adk/batteries/context/compact` ship with no\n * bundled tokenizer and (for Compact) no bundled model transport — every capability they cannot\n * perform themselves is an INJECTED function the caller must supply. Omitting one is a caller\n * programming error (a wiring mistake, not a runtime condition to recover from): rather than let the\n * omission surface later as a confusing `undefined is not a function` deep inside the algorithm, every\n * entry point checks eagerly and throws this, naming both the missing option and the function that\n * needed it, so the fix is obvious at the call site. Fatal — construct the missing resolver and retry;\n * there is no degrade-and-continue path, because a battery with no way to measure tokens (or, for\n * Compact, no way to call a model) cannot make progress at all.\n *\n * Printf args: `[functionName, missingOption]` — e.g. `['subtractToFit', 'estimateTokens']` or\n * `['summariseTurns', 'summarize']`.\n *\n * @example\n * ```ts\n * import { isInstanceOf } from '@nhtio/adk'\n *\n * try {\n * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)\n * } catch (err) {\n * if (isInstanceOf(err, 'E_CONTEXT_RESOLVER_MISSING')) {\n * // err.message: \"subtractToFit: options.estimateTokens is required — this context-management\n * // battery ships with no bundled tokenizer/model transport of its own.\"\n * }\n * }\n * ```\n */\nexport const E_CONTEXT_RESOLVER_MISSING = createException<[string, string]>(\n 'E_CONTEXT_RESOLVER_MISSING',\n '%s: options.%s is required — this context-management battery ships with no bundled tokenizer/model transport of its own.',\n 'E_CONTEXT_RESOLVER_MISSING',\n 422,\n true\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,6BAA6B,mBAAA,gBACxC,8BACA,4HACA,8BACA,KACA,IACF"}
|
|
1
|
+
{"version":3,"file":"exceptions.cjs","names":[],"sources":["../../../src/batteries/context/exceptions.ts"],"sourcesContent":["/**\n * Shared exception for the context-management batteries — the one failure class `thrift` and\n * `compact` have in common.\n *\n * @module @nhtio/adk/batteries/context/exceptions\n *\n * @remarks\n * Both `thrift` (`subtractToFit`) and `compact` (`summariseTurns`, `assembleCompactedTurns`) require\n * a caller-injected resolver (`estimateTokens`, and for `compact` also `summarize`) because neither\n * battery bundles a tokenizer or a model transport of its own — see each battery's `contracts.ts` for\n * the \"surface, don't impose\" rationale. A missing resolver is the SAME failure shape in both\n * batteries (a required injected function wasn't supplied), so it is minted ONCE here rather than\n * duplicated per-battery. This module lives at the `context` domain level (a sibling of `thrift/` and\n * `compact/`, not inside either) specifically so both can import it without either depending on the\n * other, and re-exports from `../index.ts` so a consumer of either battery's public barrel sees it\n * without a deep import. Minted via `createException` from `@nhtio/adk/factories`, matching every\n * other battery's exception convention.\n */\n\nimport { createException } from '@nhtio/adk/factories'\n\n/**\n * Thrown when a context-management battery function is called without a REQUIRED injected resolver\n * (`estimateTokens`, or — for Compact's `summarize` seam — the model-call function).\n *\n * @remarks\n * Both `@nhtio/adk/batteries/context/thrift` and `@nhtio/adk/batteries/context/compact` ship with no\n * bundled tokenizer and (for Compact) no bundled model transport — every capability they cannot\n * perform themselves is an INJECTED function the caller must supply. Omitting one is a caller\n * programming error (a wiring mistake, not a runtime condition to recover from): rather than let the\n * omission surface later as a confusing `undefined is not a function` deep inside the algorithm, every\n * entry point checks eagerly and throws this, naming both the missing option and the function that\n * needed it, so the fix is obvious at the call site. Fatal — construct the missing resolver and retry;\n * there is no degrade-and-continue path, because a battery with no way to measure tokens (or, for\n * Compact, no way to call a model) cannot make progress at all.\n *\n * Printf args: `[functionName, missingOption]` — e.g. `['subtractToFit', 'estimateTokens']` or\n * `['summariseTurns', 'summarize']`.\n *\n * @example\n * ```ts\n * import { isInstanceOf } from '@nhtio/adk/guards'\n *\n * try {\n * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)\n * } catch (err) {\n * if (isInstanceOf(err, 'E_CONTEXT_RESOLVER_MISSING')) {\n * // err.message: \"subtractToFit: options.estimateTokens is required — this context-management\n * // battery ships with no bundled tokenizer/model transport of its own.\"\n * }\n * }\n * ```\n */\nexport const E_CONTEXT_RESOLVER_MISSING = createException<[string, string]>(\n 'E_CONTEXT_RESOLVER_MISSING',\n '%s: options.%s is required — this context-management battery ships with no bundled tokenizer/model transport of its own.',\n 'E_CONTEXT_RESOLVER_MISSING',\n 422,\n true\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,6BAA6B,mBAAA,gBACxC,8BACA,4HACA,8BACA,KACA,IACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exceptions.mjs","names":[],"sources":["../../../src/batteries/context/exceptions.ts"],"sourcesContent":["/**\n * Shared exception for the context-management batteries — the one failure class `thrift` and\n * `compact` have in common.\n *\n * @module @nhtio/adk/batteries/context/exceptions\n *\n * @remarks\n * Both `thrift` (`subtractToFit`) and `compact` (`summariseTurns`, `assembleCompactedTurns`) require\n * a caller-injected resolver (`estimateTokens`, and for `compact` also `summarize`) because neither\n * battery bundles a tokenizer or a model transport of its own — see each battery's `contracts.ts` for\n * the \"surface, don't impose\" rationale. A missing resolver is the SAME failure shape in both\n * batteries (a required injected function wasn't supplied), so it is minted ONCE here rather than\n * duplicated per-battery. This module lives at the `context` domain level (a sibling of `thrift/` and\n * `compact/`, not inside either) specifically so both can import it without either depending on the\n * other, and re-exports from `../index.ts` so a consumer of either battery's public barrel sees it\n * without a deep import. Minted via `createException` from `@nhtio/adk/factories`, matching every\n * other battery's exception convention.\n */\n\nimport { createException } from '@nhtio/adk/factories'\n\n/**\n * Thrown when a context-management battery function is called without a REQUIRED injected resolver\n * (`estimateTokens`, or — for Compact's `summarize` seam — the model-call function).\n *\n * @remarks\n * Both `@nhtio/adk/batteries/context/thrift` and `@nhtio/adk/batteries/context/compact` ship with no\n * bundled tokenizer and (for Compact) no bundled model transport — every capability they cannot\n * perform themselves is an INJECTED function the caller must supply. Omitting one is a caller\n * programming error (a wiring mistake, not a runtime condition to recover from): rather than let the\n * omission surface later as a confusing `undefined is not a function` deep inside the algorithm, every\n * entry point checks eagerly and throws this, naming both the missing option and the function that\n * needed it, so the fix is obvious at the call site. Fatal — construct the missing resolver and retry;\n * there is no degrade-and-continue path, because a battery with no way to measure tokens (or, for\n * Compact, no way to call a model) cannot make progress at all.\n *\n * Printf args: `[functionName, missingOption]` — e.g. `['subtractToFit', 'estimateTokens']` or\n * `['summariseTurns', 'summarize']`.\n *\n * @example\n * ```ts\n * import { isInstanceOf } from '@nhtio/adk'\n *\n * try {\n * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)\n * } catch (err) {\n * if (isInstanceOf(err, 'E_CONTEXT_RESOLVER_MISSING')) {\n * // err.message: \"subtractToFit: options.estimateTokens is required — this context-management\n * // battery ships with no bundled tokenizer/model transport of its own.\"\n * }\n * }\n * ```\n */\nexport const E_CONTEXT_RESOLVER_MISSING = createException<[string, string]>(\n 'E_CONTEXT_RESOLVER_MISSING',\n '%s: options.%s is required — this context-management battery ships with no bundled tokenizer/model transport of its own.',\n 'E_CONTEXT_RESOLVER_MISSING',\n 422,\n true\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,6BAA6B,gBACxC,8BACA,4HACA,8BACA,KACA,IACF"}
|
|
1
|
+
{"version":3,"file":"exceptions.mjs","names":[],"sources":["../../../src/batteries/context/exceptions.ts"],"sourcesContent":["/**\n * Shared exception for the context-management batteries — the one failure class `thrift` and\n * `compact` have in common.\n *\n * @module @nhtio/adk/batteries/context/exceptions\n *\n * @remarks\n * Both `thrift` (`subtractToFit`) and `compact` (`summariseTurns`, `assembleCompactedTurns`) require\n * a caller-injected resolver (`estimateTokens`, and for `compact` also `summarize`) because neither\n * battery bundles a tokenizer or a model transport of its own — see each battery's `contracts.ts` for\n * the \"surface, don't impose\" rationale. A missing resolver is the SAME failure shape in both\n * batteries (a required injected function wasn't supplied), so it is minted ONCE here rather than\n * duplicated per-battery. This module lives at the `context` domain level (a sibling of `thrift/` and\n * `compact/`, not inside either) specifically so both can import it without either depending on the\n * other, and re-exports from `../index.ts` so a consumer of either battery's public barrel sees it\n * without a deep import. Minted via `createException` from `@nhtio/adk/factories`, matching every\n * other battery's exception convention.\n */\n\nimport { createException } from '@nhtio/adk/factories'\n\n/**\n * Thrown when a context-management battery function is called without a REQUIRED injected resolver\n * (`estimateTokens`, or — for Compact's `summarize` seam — the model-call function).\n *\n * @remarks\n * Both `@nhtio/adk/batteries/context/thrift` and `@nhtio/adk/batteries/context/compact` ship with no\n * bundled tokenizer and (for Compact) no bundled model transport — every capability they cannot\n * perform themselves is an INJECTED function the caller must supply. Omitting one is a caller\n * programming error (a wiring mistake, not a runtime condition to recover from): rather than let the\n * omission surface later as a confusing `undefined is not a function` deep inside the algorithm, every\n * entry point checks eagerly and throws this, naming both the missing option and the function that\n * needed it, so the fix is obvious at the call site. Fatal — construct the missing resolver and retry;\n * there is no degrade-and-continue path, because a battery with no way to measure tokens (or, for\n * Compact, no way to call a model) cannot make progress at all.\n *\n * Printf args: `[functionName, missingOption]` — e.g. `['subtractToFit', 'estimateTokens']` or\n * `['summariseTurns', 'summarize']`.\n *\n * @example\n * ```ts\n * import { isInstanceOf } from '@nhtio/adk/guards'\n *\n * try {\n * subtractToFit(ws, contextWindow, relevantToolNames, {} as never)\n * } catch (err) {\n * if (isInstanceOf(err, 'E_CONTEXT_RESOLVER_MISSING')) {\n * // err.message: \"subtractToFit: options.estimateTokens is required — this context-management\n * // battery ships with no bundled tokenizer/model transport of its own.\"\n * }\n * }\n * ```\n */\nexport const E_CONTEXT_RESOLVER_MISSING = createException<[string, string]>(\n 'E_CONTEXT_RESOLVER_MISSING',\n '%s: options.%s is required — this context-management battery ships with no bundled tokenizer/model transport of its own.',\n 'E_CONTEXT_RESOLVER_MISSING',\n 422,\n true\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,6BAA6B,gBACxC,8BACA,4HACA,8BACA,KACA,IACF"}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
*
|
|
68
68
|
* ```ts
|
|
69
69
|
* import { subtractToFit, type WorkingSet } from '@nhtio/adk/batteries/context/thrift'
|
|
70
|
-
* import { Tokenizable } from '@nhtio/adk'
|
|
70
|
+
* import { Tokenizable } from '@nhtio/adk/common'
|
|
71
71
|
*
|
|
72
72
|
* const ws: WorkingSet = {
|
|
73
73
|
* systemPrompt: mySystemPrompt, // a Tokenizable, or a plain string
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
exports.runSandboxConformance =
|
|
2
|
+
const require_batteries_sandbox = require("../sandbox.cjs");
|
|
3
|
+
exports.runSandboxConformance = require_batteries_sandbox.runSandboxConformance;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { runSandboxConformance } from "../sandbox.mjs";
|
|
2
2
|
export { runSandboxConformance };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_spooled_artifact = require("../../spooled_artifact-
|
|
3
|
-
require("../../common-
|
|
4
|
-
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-
|
|
2
|
+
const require_spooled_artifact = require("../../spooled_artifact-B-inikuu.cjs");
|
|
3
|
+
require("../../common-BT__XgLn.cjs");
|
|
4
|
+
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-Dh0scEEJ.cjs");
|
|
5
5
|
const require_arg_specs = require("../../arg_specs-iYmIM3wI.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
7
7
|
//#region src/batteries/dev_tools/forge.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../common-
|
|
3
|
-
import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-
|
|
1
|
+
import { f as Tool } from "../../spooled_artifact-Caie8ZrX.mjs";
|
|
2
|
+
import "../../common-DbmmAC1w.mjs";
|
|
3
|
+
import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-BfklURci.mjs";
|
|
4
4
|
import { t as DEV_ARG_SPECS } from "../../arg_specs-H1qM_1QI.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|
|
6
6
|
//#region src/batteries/dev_tools/forge.ts
|