@nhtio/adk 1.20260913.0 → 1.20260924.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -0
- package/adk-mcp.cjs +2 -2
- package/{arg_specs-iYmIM3wI.js → arg_specs-iYmIM3wI.cjs} +1 -1
- package/arg_specs-iYmIM3wI.cjs.map +1 -0
- package/artifact_methods-7KatxCSd.cjs +1 -0
- package/artifact_methods-q52ETLwI.mjs +1 -0
- package/batteries/artifacts/ecmascript.cjs +2 -2
- package/batteries/artifacts/ecmascript.mjs +1 -1
- package/batteries/artifacts/toon.cjs +2 -2
- package/batteries/artifacts/toon.mjs +1 -1
- package/batteries/artifacts/xml.cjs +2 -2
- package/batteries/artifacts/xml.mjs +1 -1
- package/batteries/artifacts/yaml.cjs +2 -2
- package/batteries/artifacts/yaml.mjs +1 -1
- package/batteries/artifacts.cjs +5 -5
- package/batteries/artifacts.mjs +4 -4
- package/batteries/context/compact/contracts.cjs +1 -1
- package/batteries/context/compact/summarizer.cjs +1 -1
- package/batteries/context/compact.cjs +1 -1
- package/batteries/context/exceptions.cjs +2 -2
- package/batteries/context/thrift/contracts.cjs +1 -1
- package/batteries/context/thrift/relevance.cjs +1 -1
- package/batteries/context/thrift/subtractive_pass.cjs +1 -1
- package/batteries/context/thrift.cjs +1 -1
- package/batteries/context.cjs +1 -1
- package/batteries/dev-tools/conformance.cjs +2 -2
- package/batteries/dev-tools/forge.cjs +5 -5
- package/batteries/dev-tools/forge.mjs +3 -3
- package/batteries/dev-tools.cjs +10 -10
- package/batteries/dev-tools.mjs +3 -3
- package/batteries/embeddings/ollama/adapter.cjs +2 -2
- package/batteries/embeddings/ollama/exceptions.cjs +2 -2
- package/batteries/embeddings/ollama/types.cjs +1 -1
- package/batteries/embeddings/ollama/validation.cjs +1 -1
- package/batteries/embeddings/ollama.cjs +1 -1
- package/batteries/embeddings/openai/adapter.cjs +2 -2
- package/batteries/embeddings/openai/exceptions.cjs +2 -2
- package/batteries/embeddings/openai/helpers.cjs +1 -1
- package/batteries/embeddings/openai/types.cjs +1 -1
- package/batteries/embeddings/openai/validation.cjs +1 -1
- package/batteries/embeddings/openai.cjs +1 -1
- package/batteries/embeddings/transformers_js/adapter.cjs +3 -3
- package/batteries/embeddings/transformers_js/exceptions.cjs +2 -2
- package/batteries/embeddings/transformers_js/pooling.cjs +1 -1
- package/batteries/embeddings/transformers_js/types.cjs +1 -1
- package/batteries/embeddings/transformers_js/validation.cjs +2 -2
- package/batteries/embeddings/transformers_js.cjs +1 -1
- package/batteries/embeddings/webllm/adapter.cjs +2 -2
- package/batteries/embeddings/webllm/exceptions.cjs +2 -2
- package/batteries/embeddings/webllm/types.cjs +1 -1
- package/batteries/embeddings/webllm/validation.cjs +1 -1
- package/batteries/embeddings/webllm.cjs +1 -1
- package/batteries/embeddings.cjs +1 -1
- package/batteries/encoding.cjs +8 -8
- package/batteries/encoding.mjs +6 -6
- package/batteries/generation/_shared.cjs +2 -2
- package/batteries/generation/gemini/adapter.cjs +3 -3
- package/batteries/generation/gemini/adapter.mjs +1 -1
- package/batteries/generation/gemini/exceptions.cjs +2 -2
- package/batteries/generation/gemini/types.cjs +1 -1
- package/batteries/generation/gemini/validation.cjs +1 -1
- package/batteries/generation/gemini.cjs +1 -1
- package/batteries/generation/local_diffusion/adapter.cjs +4 -4
- package/batteries/generation/local_diffusion/adapter.mjs +1 -1
- package/batteries/generation/local_diffusion/exceptions.cjs +2 -2
- package/batteries/generation/local_diffusion/protocol.cjs +2 -2
- package/batteries/generation/local_diffusion/types.cjs +1 -1
- package/batteries/generation/local_diffusion/validation.cjs +1 -1
- package/batteries/generation/local_diffusion.cjs +1 -1
- package/batteries/generation/openai/adapter.cjs +3 -3
- package/batteries/generation/openai/adapter.mjs +1 -1
- package/batteries/generation/openai/exceptions.cjs +2 -2
- package/batteries/generation/openai/types.cjs +1 -1
- package/batteries/generation/openai/validation.cjs +1 -1
- package/batteries/generation/openai.cjs +1 -1
- package/batteries/generation/transformers_js/adapter.cjs +3 -3
- package/batteries/generation/transformers_js/exceptions.cjs +2 -2
- package/batteries/generation/transformers_js/helpers.cjs +1 -1
- package/batteries/generation/transformers_js/types.cjs +1 -1
- package/batteries/generation/transformers_js/validation.cjs +2 -2
- package/batteries/generation/transformers_js.cjs +1 -1
- package/batteries/generation.cjs +1 -1
- package/batteries/isolation/child_process.cjs +3 -3
- package/batteries/isolation.cjs +2 -2
- package/batteries/llm/anthropic_messages/adapter.cjs +10 -10
- package/batteries/llm/anthropic_messages/adapter.mjs +6 -6
- package/batteries/llm/anthropic_messages/count_tokens.cjs +4 -4
- package/batteries/llm/anthropic_messages/count_tokens.mjs +1 -1
- package/batteries/llm/anthropic_messages/error_translation.cjs +2 -2
- package/batteries/llm/anthropic_messages/exceptions.cjs +2 -2
- package/batteries/llm/anthropic_messages/helpers.cjs +4 -4
- package/batteries/llm/anthropic_messages/helpers.mjs +3 -3
- package/batteries/llm/anthropic_messages/types.cjs +1 -1
- package/batteries/llm/anthropic_messages/validation.cjs +3 -3
- package/batteries/llm/anthropic_messages/validation.mjs +1 -1
- package/batteries/llm/anthropic_messages.cjs +4 -4
- package/batteries/llm/anthropic_messages.mjs +2 -2
- package/batteries/llm/bedrock_converse/adapter.cjs +9 -9
- package/batteries/llm/bedrock_converse/adapter.mjs +6 -6
- package/batteries/llm/bedrock_converse/exceptions.cjs +2 -2
- package/batteries/llm/bedrock_converse/helpers.cjs +3 -3
- package/batteries/llm/bedrock_converse/helpers.mjs +1 -1
- package/batteries/llm/bedrock_converse/types.cjs +1 -1
- package/batteries/llm/bedrock_converse/validation.cjs +3 -3
- package/batteries/llm/bedrock_converse/validation.mjs +1 -1
- package/batteries/llm/bedrock_converse.cjs +3 -3
- package/batteries/llm/bedrock_converse.mjs +2 -2
- package/batteries/llm/chat_common/exceptions.cjs +2 -2
- package/batteries/llm/claude_code_cli/adapter.cjs +290 -31
- package/batteries/llm/claude_code_cli/adapter.cjs.map +1 -1
- package/batteries/llm/claude_code_cli/adapter.d.ts +125 -0
- package/batteries/llm/claude_code_cli/adapter.mjs +288 -31
- package/batteries/llm/claude_code_cli/adapter.mjs.map +1 -1
- package/batteries/llm/claude_code_cli/exceptions.cjs +13 -2
- package/batteries/llm/claude_code_cli/exceptions.cjs.map +1 -1
- package/batteries/llm/claude_code_cli/exceptions.d.ts +12 -0
- package/batteries/llm/claude_code_cli/exceptions.mjs +11 -1
- package/batteries/llm/claude_code_cli/exceptions.mjs.map +1 -1
- package/batteries/llm/claude_code_cli/helpers.cjs +4 -4
- package/batteries/llm/claude_code_cli/helpers.mjs +3 -3
- package/batteries/llm/claude_code_cli/index.d.ts +3 -2
- package/batteries/llm/claude_code_cli/types.cjs +1 -1
- package/batteries/llm/claude_code_cli/types.d.ts +36 -2
- package/batteries/llm/claude_code_cli/validation.cjs +4 -3
- package/batteries/llm/claude_code_cli/validation.cjs.map +1 -1
- package/batteries/llm/claude_code_cli/validation.mjs +2 -1
- package/batteries/llm/claude_code_cli/validation.mjs.map +1 -1
- package/batteries/llm/claude_code_cli/wire.cjs +1 -1
- package/batteries/llm/claude_code_cli.cjs +5 -2
- package/batteries/llm/claude_code_cli.mjs +4 -3
- package/batteries/llm/gemini_generate_content/adapter.cjs +9 -9
- package/batteries/llm/gemini_generate_content/adapter.mjs +6 -6
- package/batteries/llm/gemini_generate_content/exceptions.cjs +2 -2
- package/batteries/llm/gemini_generate_content/helpers.cjs +3 -3
- package/batteries/llm/gemini_generate_content/helpers.mjs +1 -1
- package/batteries/llm/gemini_generate_content/types.cjs +1 -1
- package/batteries/llm/gemini_generate_content/validation.cjs +3 -3
- package/batteries/llm/gemini_generate_content/validation.mjs +1 -1
- package/batteries/llm/gemini_generate_content.cjs +2 -2
- package/batteries/llm/gemini_generate_content.mjs +1 -1
- package/batteries/llm/index.d.ts +1 -1
- package/batteries/llm/litert_lm/adapter.cjs +11 -11
- package/batteries/llm/litert_lm/adapter.mjs +6 -6
- package/batteries/llm/litert_lm/exceptions.cjs +2 -2
- package/batteries/llm/litert_lm/helpers.cjs +7 -7
- package/batteries/llm/litert_lm/helpers.mjs +3 -3
- package/batteries/llm/litert_lm/types.cjs +1 -1
- package/batteries/llm/litert_lm/validation.cjs +4 -4
- package/batteries/llm/litert_lm/validation.mjs +2 -2
- package/batteries/llm/litert_lm.cjs +5 -5
- package/batteries/llm/litert_lm.mjs +1 -1
- package/batteries/llm/ollama/adapter.cjs +9 -9
- package/batteries/llm/ollama/adapter.mjs +6 -6
- package/batteries/llm/ollama/exceptions.cjs +2 -2
- package/batteries/llm/ollama/helpers.cjs +5 -5
- package/batteries/llm/ollama/helpers.mjs +4 -4
- package/batteries/llm/ollama/types.cjs +1 -1
- package/batteries/llm/ollama/validation.cjs +3 -3
- package/batteries/llm/ollama/validation.mjs +1 -1
- package/batteries/llm/ollama.cjs +3 -3
- package/batteries/llm/ollama.mjs +2 -2
- package/batteries/llm/openai_chat_completions/adapter.cjs +9 -9
- package/batteries/llm/openai_chat_completions/adapter.mjs +6 -6
- package/batteries/llm/openai_chat_completions/exceptions.cjs +2 -2
- package/batteries/llm/openai_chat_completions/helpers.cjs +5 -5
- package/batteries/llm/openai_chat_completions/helpers.mjs +4 -4
- package/batteries/llm/openai_chat_completions/types.cjs +1 -1
- package/batteries/llm/openai_chat_completions/validation.cjs +3 -3
- package/batteries/llm/openai_chat_completions/validation.mjs +1 -1
- package/batteries/llm/openai_chat_completions.cjs +3 -3
- package/batteries/llm/openai_chat_completions.mjs +2 -2
- package/batteries/llm/openai_responses/adapter.cjs +9 -9
- package/batteries/llm/openai_responses/adapter.mjs +6 -6
- package/batteries/llm/openai_responses/exceptions.cjs +2 -2
- package/batteries/llm/openai_responses/helpers.cjs +4 -4
- package/batteries/llm/openai_responses/helpers.mjs +3 -3
- package/batteries/llm/openai_responses/types.cjs +1 -1
- package/batteries/llm/openai_responses/validation.cjs +3 -3
- package/batteries/llm/openai_responses/validation.mjs +1 -1
- package/batteries/llm/openai_responses.cjs +3 -3
- package/batteries/llm/openai_responses.mjs +2 -2
- package/batteries/llm/transformers_js/adapter.cjs +11 -11
- package/batteries/llm/transformers_js/adapter.mjs +6 -6
- package/batteries/llm/transformers_js/exceptions.cjs +2 -2
- package/batteries/llm/transformers_js/helpers.cjs +8 -8
- package/batteries/llm/transformers_js/helpers.mjs +3 -3
- package/batteries/llm/transformers_js/model_source.cjs +2 -2
- package/batteries/llm/transformers_js/types.cjs +1 -1
- package/batteries/llm/transformers_js/validation.cjs +4 -4
- package/batteries/llm/transformers_js/validation.mjs +2 -2
- package/batteries/llm/transformers_js.cjs +5 -5
- package/batteries/llm/transformers_js.mjs +1 -1
- package/batteries/llm/webllm_chat_completions/adapter.cjs +10 -10
- package/batteries/llm/webllm_chat_completions/adapter.mjs +6 -6
- package/batteries/llm/webllm_chat_completions/exceptions.cjs +2 -2
- package/batteries/llm/webllm_chat_completions/helpers.cjs +2 -2
- package/batteries/llm/webllm_chat_completions/helpers.mjs +1 -1
- package/batteries/llm/webllm_chat_completions/validation.cjs +3 -3
- package/batteries/llm/webllm_chat_completions/validation.mjs +1 -1
- package/batteries/llm/webllm_chat_completions.cjs +3 -3
- package/batteries/llm/webllm_chat_completions.mjs +2 -2
- package/batteries/llm.cjs +4 -3
- package/batteries/llm.mjs +4 -4
- package/batteries/media/contracts.cjs +2 -2
- package/batteries/media/engines/audio_decode.cjs +3 -3
- package/batteries/media/engines/data.cjs +4 -4
- package/batteries/media/engines/exceljs.cjs +4 -4
- package/batteries/media/engines/execa_executor.cjs +3 -3
- package/batteries/media/engines/fs_workspace.cjs +3 -3
- package/batteries/media/engines/jimp.cjs +3 -3
- package/batteries/media/engines/sharp.cjs +3 -3
- package/batteries/media/engines/sheetjs.cjs +6 -6
- package/batteries/media/engines/sheetjs.cjs.map +1 -1
- package/batteries/media/engines/soffice.cjs +2 -2
- package/batteries/media/engines/tesseract_js.cjs +3 -3
- package/batteries/media/engines/transformers_asr.cjs +3 -3
- package/batteries/media/forge.cjs +8 -8
- package/batteries/media/forge.mjs +4 -4
- package/batteries/media/lint.cjs +2 -2
- package/batteries/media/lint.mjs +1 -1
- package/batteries/media.cjs +6 -6
- package/batteries/orchestration/approval.cjs +2 -2
- package/batteries/orchestration/cells/jexl.cjs +3 -3
- package/batteries/orchestration/cells/lua.cjs +3 -3
- package/batteries/orchestration/cells/structured.cjs +3 -3
- package/batteries/orchestration/conformance.cjs +2 -2
- package/batteries/orchestration/dispatch_reasoner.cjs +6 -6
- package/batteries/orchestration/dispatch_reasoner.mjs +4 -4
- package/batteries/orchestration/encoding.cjs +2 -2
- package/batteries/orchestration/executor.cjs +4 -4
- package/batteries/orchestration/executor.mjs +2 -2
- package/batteries/orchestration/forge.cjs +6 -6
- package/batteries/orchestration/forge.mjs +4 -4
- package/batteries/orchestration/in_memory.cjs +1 -1
- package/batteries/orchestration/ops.cjs +1 -1
- package/batteries/orchestration/outline.cjs +2 -2
- package/batteries/orchestration/plan.cjs +1 -1
- package/batteries/orchestration/raw.cjs +2 -2
- package/batteries/orchestration/reason.cjs +1 -1
- package/batteries/orchestration/render.cjs +2 -2
- package/batteries/orchestration/runs.cjs +1 -1
- package/batteries/orchestration/templates.cjs +2 -2
- package/batteries/orchestration/types.cjs +1 -1
- package/batteries/orchestration/validation.cjs +5 -5
- package/batteries/orchestration/validation.mjs +2 -2
- package/batteries/orchestration.cjs +6 -6
- package/batteries/orchestration.mjs +4 -4
- package/batteries/sandbox/js.cjs +7 -7
- package/batteries/sandbox/js.mjs +2 -2
- package/batteries/sandbox/node.cjs +4 -4
- package/batteries/sandbox/tools.cjs +2 -2
- package/batteries/sandbox/tools.mjs +1 -1
- package/batteries/sandbox.cjs +11 -11
- package/batteries/sandbox.mjs +4 -4
- package/batteries/skills/conformance.cjs +1 -1
- package/batteries/skills/in_memory.cjs +2 -2
- package/batteries/skills.cjs +15 -15
- package/batteries/skills.mjs +10 -10
- package/batteries/specialists/_shared.cjs +2 -2
- package/batteries/specialists/caption/transformers_js/adapter.cjs +3 -3
- package/batteries/specialists/caption/transformers_js/exceptions.cjs +2 -2
- package/batteries/specialists/caption/transformers_js/types.cjs +1 -1
- package/batteries/specialists/caption/transformers_js/validation.cjs +2 -2
- package/batteries/specialists/caption/transformers_js.cjs +1 -1
- package/batteries/specialists/caption.cjs +1 -1
- package/batteries/specialists/ocr/tesseract_js/adapter.cjs +3 -3
- package/batteries/specialists/ocr/tesseract_js/exceptions.cjs +2 -2
- package/batteries/specialists/ocr/tesseract_js/types.cjs +1 -1
- package/batteries/specialists/ocr/tesseract_js/validation.cjs +2 -2
- package/batteries/specialists/ocr/tesseract_js.cjs +1 -1
- package/batteries/specialists/ocr.cjs +1 -1
- package/batteries/specialists/stt/transformers_js.cjs +2 -2
- package/batteries/specialists/stt.cjs +2 -2
- package/batteries/specialists.cjs +2 -2
- package/batteries/storage/flydrive.cjs +2 -2
- package/batteries/storage/in_memory.cjs +2 -2
- package/batteries/storage/opfs.cjs +2 -2
- package/batteries/storage.cjs +1 -1
- package/batteries/tools/_shared.cjs +3 -3
- package/batteries/tools/_shared.mjs +1 -1
- package/batteries/tools/color.cjs +3 -3
- package/batteries/tools/color.mjs +2 -2
- package/batteries/tools/comparison.cjs +4 -4
- package/batteries/tools/comparison.mjs +2 -2
- package/batteries/tools/data_structure.cjs +4 -4
- package/batteries/tools/data_structure.mjs +2 -2
- package/batteries/tools/datetime_extended.cjs +4 -4
- package/batteries/tools/datetime_extended.mjs +3 -3
- package/batteries/tools/datetime_math.cjs +4 -4
- package/batteries/tools/datetime_math.mjs +3 -3
- package/batteries/tools/encoding.cjs +4 -4
- package/batteries/tools/encoding.mjs +2 -2
- package/batteries/tools/formatting.cjs +4 -4
- package/batteries/tools/formatting.mjs +2 -2
- package/batteries/tools/geo_basics.cjs +3 -3
- package/batteries/tools/geo_basics.mjs +2 -2
- package/batteries/tools/math.cjs +4 -4
- package/batteries/tools/math.mjs +2 -2
- package/batteries/tools/memory.cjs +7 -7
- package/batteries/tools/memory.mjs +5 -5
- package/batteries/tools/parsing.cjs +5 -5
- package/batteries/tools/parsing.mjs +3 -3
- package/batteries/tools/retrievables.cjs +7 -7
- package/batteries/tools/retrievables.mjs +5 -5
- package/batteries/tools/scrapper.cjs +2 -2
- package/batteries/tools/scrapper.mjs +1 -1
- package/batteries/tools/searxng.cjs +2 -2
- package/batteries/tools/searxng.mjs +1 -1
- package/batteries/tools/standing_instructions.cjs +5 -5
- package/batteries/tools/standing_instructions.mjs +3 -3
- package/batteries/tools/statistics.cjs +5 -5
- package/batteries/tools/statistics.mjs +3 -3
- package/batteries/tools/string_processing.cjs +4 -4
- package/batteries/tools/string_processing.mjs +2 -2
- package/batteries/tools/structured_data.cjs +4 -4
- package/batteries/tools/structured_data.mjs +2 -2
- package/batteries/tools/text_analysis.cjs +4 -4
- package/batteries/tools/text_analysis.mjs +3 -3
- package/batteries/tools/text_comparison.cjs +3 -3
- package/batteries/tools/text_comparison.mjs +2 -2
- package/batteries/tools/time.cjs +4 -4
- package/batteries/tools/time.mjs +3 -3
- package/batteries/tools/unit_conversion.cjs +3 -3
- package/batteries/tools/unit_conversion.mjs +2 -2
- package/batteries/tools/web_retrieval.cjs +2 -2
- package/batteries/tools.cjs +3 -3
- package/batteries/tools.mjs +2 -2
- package/batteries/tts/_shared.cjs +1 -1
- package/batteries/tts/native/adapter.cjs +2 -2
- package/batteries/tts/native/exceptions.cjs +2 -2
- package/batteries/tts/native/helpers.cjs +1 -1
- package/batteries/tts/native/types.cjs +1 -1
- package/batteries/tts/native/validation.cjs +2 -2
- package/batteries/tts/native.cjs +1 -1
- package/batteries/tts/transformers_js/adapter.cjs +3 -3
- package/batteries/tts/transformers_js/exceptions.cjs +2 -2
- package/batteries/tts/transformers_js/types.cjs +1 -1
- package/batteries/tts/transformers_js/validation.cjs +2 -2
- package/batteries/tts/transformers_js.cjs +1 -1
- package/batteries/tts.cjs +1 -1
- package/batteries/validation/exceptions.cjs +2 -2
- package/batteries/validation/types.cjs +1 -1
- package/batteries/validation/validation.cjs +1 -1
- package/batteries/validation.cjs +7 -7
- package/batteries/validation.mjs +5 -5
- package/batteries/vector/arangodb.cjs +2 -2
- package/batteries/vector/builder.cjs +1 -1
- package/batteries/vector/chroma.cjs +1 -1
- package/batteries/vector/clickhouse.cjs +2 -2
- package/batteries/vector/cloudflare.cjs +2 -2
- package/batteries/vector/conformance.cjs +1 -1
- package/batteries/vector/contract.cjs +1 -1
- package/batteries/vector/couchbase.cjs +2 -2
- package/batteries/vector/duckdb.cjs +2 -2
- package/batteries/vector/elasticsearch.cjs +2 -2
- package/batteries/vector/exceptions.cjs +2 -2
- package/batteries/vector/factory.cjs +1 -1
- package/batteries/vector/filters.cjs +2 -2
- package/batteries/vector/helpers.cjs +1 -1
- package/batteries/vector/hnswlib.cjs +2 -2
- package/batteries/vector/in_memory.cjs +1 -1
- package/batteries/vector/lancedb.cjs +2 -2
- package/batteries/vector/mariadb.cjs +2 -2
- package/batteries/vector/meilisearch.cjs +2 -2
- package/batteries/vector/migrate.cjs +2 -2
- package/batteries/vector/milvus.cjs +1 -1
- package/batteries/vector/mongodb.cjs +2 -2
- package/batteries/vector/neo4j.cjs +2 -2
- package/batteries/vector/opensearch.cjs +2 -2
- package/batteries/vector/oracle23ai.cjs +2 -2
- package/batteries/vector/orama.cjs +1 -1
- package/batteries/vector/pgvector.cjs +1 -1
- package/batteries/vector/pinecone.cjs +2 -2
- package/batteries/vector/plan.cjs +1 -1
- package/batteries/vector/qdrant.cjs +1 -1
- package/batteries/vector/redis.cjs +2 -2
- package/batteries/vector/retrievable.cjs +2 -2
- package/batteries/vector/retrievable.mjs +1 -1
- package/batteries/vector/s3vectors.cjs +2 -2
- package/batteries/vector/schema.cjs +1 -1
- package/batteries/vector/solr.cjs +2 -2
- package/batteries/vector/sqlite_vec.cjs +1 -1
- package/batteries/vector/surrealdb.cjs +2 -2
- package/batteries/vector/types.cjs +1 -1
- package/batteries/vector/typesense.cjs +2 -2
- package/batteries/vector/validation.cjs +1 -1
- package/batteries/vector/vector_store_constructor.cjs +1 -1
- package/batteries/vector/vespa.cjs +2 -2
- package/batteries/vector/weaviate.cjs +2 -2
- package/batteries/vector.cjs +1 -1
- package/batteries.cjs +8 -7
- package/batteries.mjs +6 -6
- package/{chat_common-D7SuSLCM.js → chat_common-B7fvGTKv.cjs} +5 -5
- package/chat_common-B7fvGTKv.cjs.map +1 -0
- package/{chat_common-CJskWIdB.mjs → chat_common-CeoHwSsz.mjs} +2 -2
- package/{chat_common-CJskWIdB.mjs.map → chat_common-CeoHwSsz.mjs.map} +1 -1
- package/claude-code-cli-wrapper.cjs +2 -2
- package/{common-Cb1h54HM.js → common-7gCR3zQu.cjs} +9 -9
- package/common-7gCR3zQu.cjs.map +1 -0
- package/{common-AhsMepUS.mjs → common-B5maOoF_.mjs} +7 -7
- package/{common-AhsMepUS.mjs.map → common-B5maOoF_.mjs.map} +1 -1
- package/{common-BuVhq_3h.js → common-BuVhq_3h.cjs} +1 -1
- package/common-BuVhq_3h.cjs.map +1 -0
- package/common.cjs +8 -8
- package/common.mjs +6 -6
- package/{conformance-T1qEg8Sv.js → conformance-T1qEg8Sv.cjs} +1 -1
- package/conformance-T1qEg8Sv.cjs.map +1 -0
- package/{dispatch_runner-CUOD_SAg.mjs → dispatch_runner-DO7jo_gl.mjs} +5 -5
- package/{dispatch_runner-CUOD_SAg.mjs.map → dispatch_runner-DO7jo_gl.mjs.map} +1 -1
- package/{dispatch_runner-BOfUNRv3.js → dispatch_runner-FlriTyoq.cjs} +7 -7
- package/dispatch_runner-FlriTyoq.cjs.map +1 -0
- package/dispatch_runner.cjs +2 -2
- package/dispatch_runner.mjs +1 -1
- package/{ecmascript-C13G-sie.js → ecmascript-BydSB03Y.cjs} +5 -5
- package/ecmascript-BydSB03Y.cjs.map +1 -0
- package/{ecmascript-qssVTISd.mjs → ecmascript-bgwVyZG1.mjs} +3 -3
- package/{ecmascript-qssVTISd.mjs.map → ecmascript-bgwVyZG1.mjs.map} +1 -1
- package/{error_translation-BCa4wxUL.js → error_translation-D8Ea1_th.cjs} +2 -2
- package/error_translation-D8Ea1_th.cjs.map +1 -0
- package/{escape-COeB923i.js → escape-C12OWStb.cjs} +3 -3
- package/escape-C12OWStb.cjs.map +1 -0
- package/eslint/rules/artifact_tool_forbids_artifact_constructor.cjs +2 -2
- package/eslint/rules/no_model_in_tool_handler.cjs +2 -2
- package/eslint/rules/require_string_empty_disposition.cjs +2 -2
- package/eslint/rules/require_validator_any_required.cjs +2 -2
- package/eslint/rules/thought_payload_requires_replay_tag.cjs +2 -2
- package/eslint/rules/token_encoding_requires_context_window.cjs +2 -2
- package/eslint/rules.cjs +2 -2
- package/eslint/rules.mjs +1 -1
- package/eslint.cjs +3 -3
- package/eslint.mjs +2 -2
- package/{exceptions-Dlw1Jr6E.js → exceptions-Bc1s_ld5.cjs} +2 -2
- package/exceptions-Bc1s_ld5.cjs.map +1 -0
- package/{exceptions-BY1RQNVP.js → exceptions-BwGzlXoz.cjs} +2 -2
- package/exceptions-BwGzlXoz.cjs.map +1 -0
- package/{exceptions-DrHnAGQz.js → exceptions-DrHnAGQz.cjs} +1 -1
- package/exceptions-DrHnAGQz.cjs.map +1 -0
- package/exceptions.cjs +3 -3
- package/factories.cjs +2 -2
- package/forge.cjs +3 -3
- package/forge.mjs +2 -2
- package/{formats-DZVuqZUN.js → formats-DZVuqZUN.cjs} +1 -1
- package/formats-DZVuqZUN.cjs.map +1 -0
- package/{fs_node-WwUEiuo6.js → fs_node-XvgZtNJV.cjs} +2 -2
- package/fs_node-XvgZtNJV.cjs.map +1 -0
- package/{function_serializer-ChL2I8Kq.js → function_serializer-D1Kyicai.cjs} +3 -3
- package/function_serializer-D1Kyicai.cjs.map +1 -0
- package/{gpu_budget-BBIUyLoj.js → gpu_budget-BBIUyLoj.cjs} +1 -1
- package/gpu_budget-BBIUyLoj.cjs.map +1 -0
- package/{guards-05Uq3J4M.js → guards-5-XmJgD2.cjs} +2 -2
- package/guards-5-XmJgD2.cjs.map +1 -0
- package/guards.cjs +10 -10
- package/guards.mjs +7 -7
- package/{helpers-So6bNfJp.mjs → helpers-C1T0DV8Q.mjs} +3 -3
- package/{helpers-So6bNfJp.mjs.map → helpers-C1T0DV8Q.mjs.map} +1 -1
- package/{helpers-C_1dcP_X.js → helpers-Dcp4CrOz.cjs} +4 -4
- package/helpers-Dcp4CrOz.cjs.map +1 -0
- package/index.cjs +14 -14
- package/index.mjs +11 -11
- package/{isolation-7Jrcucgc.js → isolation-B01xCIoV.cjs} +5 -5
- package/isolation-B01xCIoV.cjs.map +1 -0
- package/lib/classes/identity.d.ts +6 -3
- package/lib/helpers/bignum.cjs +1 -1
- package/lib/utils/audio.cjs +1 -1
- package/lib/utils/retry.cjs +1 -1
- package/{lifecycle-vYQJ2rmf.js → lifecycle-vYQJ2rmf.cjs} +1 -1
- package/lifecycle-vYQJ2rmf.cjs.map +1 -0
- package/{manifest-iMAmSDay.js → manifest-IP1IOJcg.cjs} +4 -4
- package/manifest-IP1IOJcg.cjs.map +1 -0
- package/mcp/adk-docs-corpus.json +2 -2
- package/package.json +478 -478
- package/{patch-BXX9Q0FM.js → patch-BXX9Q0FM.cjs} +1 -1
- package/patch-BXX9Q0FM.cjs.map +1 -0
- package/{predicates-f3wvKYT8.js → predicates-Bzaa7gNI.cjs} +3 -3
- package/predicates-Bzaa7gNI.cjs.map +1 -0
- package/{retrievable-CksTfjbY.js → retrievable-BBwiACtw.cjs} +5 -5
- package/retrievable-BBwiACtw.cjs.map +1 -0
- package/{retrievable-HjKe5mOD.mjs → retrievable-CrGKx4sc.mjs} +3 -3
- package/{retrievable-HjKe5mOD.mjs.map → retrievable-CrGKx4sc.mjs.map} +1 -1
- package/{sandbox-utils-DLCceTeU.js → sandbox-utils-D12AZhWE.cjs} +2 -2
- package/sandbox-utils-D12AZhWE.cjs.map +1 -0
- package/{scrapper-CkooTUAD.js → scrapper-BibKj8qE.cjs} +6 -6
- package/scrapper-BibKj8qE.cjs.map +1 -0
- package/{scrapper-_dWwuDJg.mjs → scrapper-_JzgbLG5.mjs} +4 -4
- package/{scrapper-_dWwuDJg.mjs.map → scrapper-_JzgbLG5.mjs.map} +1 -1
- package/{searxng-DXzj0o8E.js → searxng-C6xrLW-v.cjs} +6 -6
- package/searxng-C6xrLW-v.cjs.map +1 -0
- package/{searxng-PnrXrrLE.mjs → searxng-D-nA2gEI.mjs} +4 -4
- package/{searxng-PnrXrrLE.mjs.map → searxng-D-nA2gEI.mjs.map} +1 -1
- package/{server-CnUZcn6e.js → server-CkVjzQaC.cjs} +2 -2
- package/server-CkVjzQaC.cjs.map +1 -0
- package/server.json +2 -2
- package/{shell-quote-CIuPmePF.js → shell-quote-BUxBTn3M.cjs} +2 -2
- package/shell-quote-BUxBTn3M.cjs.map +1 -0
- package/shims.cjs +2 -2
- package/skills/adk-assembly/SKILL.md +2 -2
- package/{spooled_artifact-DKZd7fgs.js → spooled_artifact-BLgbGT8b.cjs} +733 -733
- package/spooled_artifact-BLgbGT8b.cjs.map +1 -0
- package/{spooled_artifact-BMtuIsu6.mjs → spooled_artifact-BkOe4-j-.mjs} +731 -731
- package/spooled_artifact-BkOe4-j-.mjs.map +1 -0
- package/spooled_artifact.cjs +3 -3
- package/spooled_artifact.mjs +2 -2
- package/{spooled_markdown_artifact-BrMoR7ck.js → spooled_markdown_artifact-8zdejfcJ.cjs} +5 -5
- package/spooled_markdown_artifact-8zdejfcJ.cjs.map +1 -0
- package/{spooled_markdown_artifact-g4CPr86y.mjs → spooled_markdown_artifact-Dnl-lCGv.mjs} +3 -3
- package/{spooled_markdown_artifact-g4CPr86y.mjs.map → spooled_markdown_artifact-Dnl-lCGv.mjs.map} +1 -1
- package/{thought-BEsItcp_.mjs → thought-BrQt6HAb.mjs} +47 -6
- package/thought-BrQt6HAb.mjs.map +1 -0
- package/{thought-DTgeATDv.js → thought-COeZTQ-B.cjs} +49 -8
- package/thought-COeZTQ-B.cjs.map +1 -0
- package/{tokenizable-KwA7jyGQ.js → tokenizable-DDIdXbJN.cjs} +3 -3
- package/tokenizable-DDIdXbJN.cjs.map +1 -0
- package/{tool_call-Cahji8ZY.mjs → tool_call-8crmZsO8.mjs} +4 -4
- package/{tool_call-Cahji8ZY.mjs.map → tool_call-8crmZsO8.mjs.map} +1 -1
- package/{tool_call-kx4WQ0-j.js → tool_call-JbjeUpRK.cjs} +6 -6
- package/tool_call-JbjeUpRK.cjs.map +1 -0
- package/{tool_parsers-csSBFWob.js → tool_parsers-8_qO0a_F.cjs} +2 -2
- package/tool_parsers-8_qO0a_F.cjs.map +1 -0
- package/{tools-BepwIVtl.mjs → tools-BC4NJqZD.mjs} +6 -6
- package/{tools-BepwIVtl.mjs.map → tools-BC4NJqZD.mjs.map} +1 -1
- package/{tools-zV-_O2MB.js → tools-D4mdzi0a.cjs} +9 -9
- package/tools-D4mdzi0a.cjs.map +1 -0
- package/{toon-F-e_k2jV.mjs → toon-BA9Q7NHG.mjs} +5 -5
- package/{toon-F-e_k2jV.mjs.map → toon-BA9Q7NHG.mjs.map} +1 -1
- package/{toon-gA82H1sN.js → toon-b-0pFKZ8.cjs} +7 -7
- package/toon-b-0pFKZ8.cjs.map +1 -0
- package/{transformers_js-C050gRfd.js → transformers_js-7OzeS_Tp.cjs} +4 -4
- package/transformers_js-7OzeS_Tp.cjs.map +1 -0
- package/{turn_runner-BdeNNvo0.mjs → turn_runner-BmVXcBZ2.mjs} +5 -5
- package/{turn_runner-BdeNNvo0.mjs.map → turn_runner-BmVXcBZ2.mjs.map} +1 -1
- package/{turn_runner-CF5LExb8.js → turn_runner-DX-3s3ih.cjs} +7 -7
- package/turn_runner-DX-3s3ih.cjs.map +1 -0
- package/turn_runner.cjs +2 -2
- package/turn_runner.mjs +1 -1
- package/{type_guards-BAhiOypL-C2eOOyxU.js → type_guards-BAhiOypL-C2eOOyxU.cjs} +1 -1
- package/{type_guards-BAhiOypL-C2eOOyxU.js.map → type_guards-BAhiOypL-C2eOOyxU.cjs.map} +1 -1
- package/{type_guards-DuKwiYgg.js → type_guards-BWTKysPt.cjs} +2 -2
- package/{types-DrSosVaM.js → types-DWOiL208.cjs} +4 -4
- package/types-DWOiL208.cjs.map +1 -0
- package/types.cjs +1 -1
- package/{validate-CkQI-48O.js → validate-tUm9MY8y.cjs} +3 -3
- package/validate-tUm9MY8y.cjs.map +1 -0
- package/{xlsx-B0sTpEC2.js → xlsx-Dtql4S-9.cjs} +2 -2
- package/xlsx-Dtql4S-9.cjs.map +1 -0
- package/{xlsx.zahl-ZIcUQVv8.js → xlsx.zahl-C9pM7cyt.cjs} +2 -2
- package/xlsx.zahl-C9pM7cyt.cjs.map +1 -0
- package/{xml-CT28gSkh.mjs → xml-B1JIGLpU.mjs} +5 -5
- package/{xml-CT28gSkh.mjs.map → xml-B1JIGLpU.mjs.map} +1 -1
- package/{xml-DVjBQkhb.js → xml-fvwTsoRv.cjs} +7 -7
- package/xml-fvwTsoRv.cjs.map +1 -0
- package/{yaml-DiHPF0nY.mjs → yaml-1mP4uxdf.mjs} +5 -5
- package/{yaml-DiHPF0nY.mjs.map → yaml-1mP4uxdf.mjs.map} +1 -1
- package/{yaml-Dt82CpYv.js → yaml-DPUTumla.cjs} +7 -7
- package/yaml-DPUTumla.cjs.map +1 -0
- package/arg_specs-iYmIM3wI.js.map +0 -1
- package/artifact_methods-CIQgBCKp.mjs +0 -1
- package/artifact_methods-Cjypa7oU.js +0 -1
- package/chat_common-D7SuSLCM.js.map +0 -1
- package/common-BuVhq_3h.js.map +0 -1
- package/common-Cb1h54HM.js.map +0 -1
- package/conformance-T1qEg8Sv.js.map +0 -1
- package/dispatch_runner-BOfUNRv3.js.map +0 -1
- package/ecmascript-C13G-sie.js.map +0 -1
- package/error_translation-BCa4wxUL.js.map +0 -1
- package/escape-COeB923i.js.map +0 -1
- package/exceptions-BY1RQNVP.js.map +0 -1
- package/exceptions-Dlw1Jr6E.js.map +0 -1
- package/exceptions-DrHnAGQz.js.map +0 -1
- package/formats-DZVuqZUN.js.map +0 -1
- package/fs_node-WwUEiuo6.js.map +0 -1
- package/function_serializer-ChL2I8Kq.js.map +0 -1
- package/gpu_budget-BBIUyLoj.js.map +0 -1
- package/guards-05Uq3J4M.js.map +0 -1
- package/helpers-C_1dcP_X.js.map +0 -1
- package/isolation-7Jrcucgc.js.map +0 -1
- package/lifecycle-vYQJ2rmf.js.map +0 -1
- package/manifest-iMAmSDay.js.map +0 -1
- package/patch-BXX9Q0FM.js.map +0 -1
- package/predicates-f3wvKYT8.js.map +0 -1
- package/retrievable-CksTfjbY.js.map +0 -1
- package/sandbox-utils-DLCceTeU.js.map +0 -1
- package/scrapper-CkooTUAD.js.map +0 -1
- package/searxng-DXzj0o8E.js.map +0 -1
- package/server-CnUZcn6e.js.map +0 -1
- package/shell-quote-CIuPmePF.js.map +0 -1
- package/spooled_artifact-BMtuIsu6.mjs.map +0 -1
- package/spooled_artifact-DKZd7fgs.js.map +0 -1
- package/spooled_markdown_artifact-BrMoR7ck.js.map +0 -1
- package/thought-BEsItcp_.mjs.map +0 -1
- package/thought-DTgeATDv.js.map +0 -1
- package/tokenizable-KwA7jyGQ.js.map +0 -1
- package/tool_call-kx4WQ0-j.js.map +0 -1
- package/tool_parsers-csSBFWob.js.map +0 -1
- package/tools-zV-_O2MB.js.map +0 -1
- package/toon-gA82H1sN.js.map +0 -1
- package/transformers_js-C050gRfd.js.map +0 -1
- package/turn_runner-CF5LExb8.js.map +0 -1
- package/types-DrSosVaM.js.map +0 -1
- package/validate-CkQI-48O.js.map +0 -1
- package/xlsx-B0sTpEC2.js.map +0 -1
- package/xlsx.zahl-ZIcUQVv8.js.map +0 -1
- package/xml-DVjBQkhb.js.map +0 -1
- package/yaml-Dt82CpYv.js.map +0 -1
- /package/{chunk-Cek0wNdY.js → chunk-Cek0wNdY.cjs} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,84 @@ you *when* you got it, not *what changed*: a `^` range will float across battery
|
|
|
15
15
|
breaking changes, so pin an exact version if you need stability and read the entry before
|
|
16
16
|
upgrading.
|
|
17
17
|
|
|
18
|
+
## 2026-09-24
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **CommonJS consumers can load the package again.** Every `.cjs` entry in the published package
|
|
23
|
+
failed on `require()` — `Cannot find module './exceptions-….js'`, `createException is not a
|
|
24
|
+
function`, or `exports is not defined in ES module scope` — while ESM `import()` worked. This
|
|
25
|
+
affected multiple releases, including at least `1.20260901.0`, `1.20260902.0`, `1.20260913.0`
|
|
26
|
+
and `1.20260921.0`. Root cause: `build.lib.fileName` named only entry files; Vite picked shared
|
|
27
|
+
chunks' extension from the source `package.json` (no `"type"`), giving CJS-format chunks a bare
|
|
28
|
+
`.js` extension, while the published `package.json` declares `"type": "module"` — so Node loaded
|
|
29
|
+
those CJS chunks as ESM. Each output format now names its own chunks (`.cjs` / `.mjs`). The
|
|
30
|
+
`claude-code-cli-wrapper.cjs` asset, which crashed on start for the same reason, now starts.
|
|
31
|
+
- **`@nhtio/adk/batteries/llm/claude_code_cli` — a multi-iteration dispatch no longer kills the
|
|
32
|
+
host process** (closes issue #39). The wrapper numbers tool calls from `"0"` on every spawn, so a
|
|
33
|
+
second dispatch iteration reused id `"0"`, core rejected it as already complete, and the throw
|
|
34
|
+
escaped a stream listener as an unhandled rejection. Tool-call ids are now de-collided within the
|
|
35
|
+
turn (new `toolCallIdFilter` option, defaulting to `deCollideToolCallIds`; the wrapper-facing
|
|
36
|
+
response still carries the wrapper's own id). Errors while handling wrapper events — including
|
|
37
|
+
synchronous throws and unserialisable thrown values — now settle the dispatch through
|
|
38
|
+
`E_CLAUDE_CODE_CLI_STREAM_ERROR` instead of escaping or hanging the executor, and fire-and-forget
|
|
39
|
+
shutdowns can no longer produce an unhandled rejection. The stream-idle timer now re-arms only on
|
|
40
|
+
genuine progress (not on `retry`/`log` diagnostics, a plausible cause of the reported
|
|
41
|
+
never-settling dispatch) and is suspended while an ADK tool executes, so a slow tool is not
|
|
42
|
+
falsely nacked as stalled.
|
|
43
|
+
- **`@nhtio/adk/batteries/llm/claude_code_cli` — the default wrapper path survives bundling**
|
|
44
|
+
(closes issue #40). The wrapper was resolved relative to the adapter module's own compiled file,
|
|
45
|
+
which breaks once a consumer bundles the adapter (e.g. an Electron main process). A fallback now
|
|
46
|
+
locates the wrapper through the package's own self-reference, in both ESM and CJS bundles. When
|
|
47
|
+
nothing resolves, the new `E_CLAUDE_CODE_CLI_WRAPPER_NOT_FOUND` lists every path it tried and
|
|
48
|
+
names the `wrapperPath` option. A bundle only finds the wrapper while `node_modules/@nhtio/adk` is
|
|
49
|
+
still resolvable from it at runtime; a bundle moved outside the project, or an Electron app that
|
|
50
|
+
prunes or asar-packs the package, must set `wrapperPath`.
|
|
51
|
+
|
|
52
|
+
### Internal
|
|
53
|
+
|
|
54
|
+
- **CI — dist-backed build specs now run on merge requests.** Specs that need a real `dist/`
|
|
55
|
+
(`tests/unit/build/*`) skipped silently on every MR because the unit-test job never builds;
|
|
56
|
+
that silent skip is how the CJS defect went unnoticed. The MR-gated `Publishable Import Boundary
|
|
57
|
+
Enforcement` job, which already runs `pnpm generate`, now also runs them with
|
|
58
|
+
`TEST_REQUIRE_DIST=1`, which turns a missing `dist/` into a failure instead of a skip. New specs
|
|
59
|
+
load every `.cjs` entry under plain Node and bundle a consumer with esbuild in both formats to
|
|
60
|
+
prove the wrapper resolves.
|
|
61
|
+
|
|
62
|
+
## 2026-09-21
|
|
63
|
+
|
|
64
|
+
### Fixed
|
|
65
|
+
|
|
66
|
+
- **`@nhtio/adk/batteries/encoding` — a live `Identity` instance now encodes losslessly** (closes
|
|
67
|
+
issue #38). Constructing an ADK primitive (e.g. `Thought`/`Message`) from a live `Identity`
|
|
68
|
+
instance — as the runtime hands to storage callbacks — and then calling `encode()` threw
|
|
69
|
+
`E_ENCODING_FAILED`. Root cause: `Identity.schema` was a bare `validator.object` fragment, and a
|
|
70
|
+
Joi object schema *clones* whatever it validates; cloning an `Identity` produced a look-alike with
|
|
71
|
+
the right prototype but no private fields (the constructor never ran), so `[ENCODE_METHOD]` threw
|
|
72
|
+
reading them. `Identity.schema` is now an `alternatives(customPassthrough, rawObjectSchema)` that
|
|
73
|
+
returns a live instance unchanged — mirroring `Tokenizable.schema` — so string, `RawIdentity`, and
|
|
74
|
+
live-`Identity` inputs all encode and round-trip identically. The passthrough trusts an
|
|
75
|
+
unforgeable per-instance brand (a module-private `WeakSet` populated in the constructor), not a
|
|
76
|
+
`constructor.name` match, so a hand-rolled look-alike cannot bypass validation. Any non-branded
|
|
77
|
+
value — a plain `RawIdentity`, a hand-rolled look-alike, or a **foreign/cross-realm `Identity`**
|
|
78
|
+
(a second copy of the package in the dependency tree, which Joi clones into a prototype-only husk
|
|
79
|
+
with no private fields) — is rebuilt into a genuine local `Identity` after field validation, so
|
|
80
|
+
every consumer stores real, encodable state and a malformed value is rejected rather than retained
|
|
81
|
+
as a husk. An audit of the whole encodable surface (Tokenizable, Memory, Message, Thought,
|
|
82
|
+
Retrievable, ToolCall, Registry, Media, Tool, ToolRegistry) confirmed `Identity` was the only
|
|
83
|
+
affected schema; the rest already nest live instances through custom passthroughs or store them
|
|
84
|
+
without a validating clone.
|
|
85
|
+
|
|
86
|
+
### Internal
|
|
87
|
+
|
|
88
|
+
- **CI — the Node smoke sandbox installs the optional `@toon-format/toon` peer.** The TOON artifact
|
|
89
|
+
battery declares `@toon-format/toon` as an optional peer, but it was missing from the smoke job's
|
|
90
|
+
peer-install list, so the published-package smoke check exercised the TOON converter without its
|
|
91
|
+
parser present and the round-trip spec failed on master. Added it to `smoketester add`.
|
|
92
|
+
- **Tests — the orchestration end-to-end smoke spec imports from `@nhtio/adk`, not `src/`.** The spec
|
|
93
|
+
imported via relative `../../../../src/*` paths, which do not exist in the installed-package smoke
|
|
94
|
+
sandbox; it now imports the public subpaths like every other functional spec.
|
|
95
|
+
|
|
18
96
|
## 2026-09-13
|
|
19
97
|
|
|
20
98
|
### Fixed
|
package/adk-mcp.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_chunk = require("./chunk-Cek0wNdY.
|
|
4
|
-
const require_server = require("./server-
|
|
3
|
+
const require_chunk = require("./chunk-Cek0wNdY.cjs");
|
|
4
|
+
const require_server = require("./server-CkVjzQaC.cjs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
let node_process = require("node:process");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arg_specs-iYmIM3wI.cjs","names":[],"sources":["../src/batteries/dev_tools/arg_specs.ts"],"sourcesContent":["/** Machine-readable declaration for one step argument. */\nexport interface DevArgSpec {\n /** Primitive argument kind. */\n type: 'string' | 'number' | 'boolean' | 'array'\n /** Whether the argument must be present. */\n required?: boolean\n /** Constraint on array members, including object field constraints. */\n element?:\n | 'string'\n | {\n fields: Readonly<Record<string, 'string' | { type: 'string'; nonEmpty?: boolean }>>\n nonEmpty?: boolean\n }\n /** Whether a string or array argument itself must be non-empty. */\n nonEmpty?: boolean\n}\n\n/** Per-step argument specifications used by development plan validation. */\nexport const DEV_ARG_SPECS: Readonly<Record<string, Readonly<Record<string, DevArgSpec>>>> = {\n read_lines: {\n path: { type: 'string', required: true },\n start: { type: 'number', required: true },\n end: { type: 'number' },\n },\n edit: {\n path: { type: 'string', required: true },\n edits: {\n type: 'array',\n required: true,\n element: {\n fields: {\n find: { type: 'string', nonEmpty: true },\n replace: { type: 'string' },\n },\n nonEmpty: true,\n },\n nonEmpty: true,\n },\n },\n apply_patch: { patch: { type: 'string', required: true } },\n write: { paths: { type: 'array', element: 'string', nonEmpty: true } },\n format: { paths: { type: 'array', element: 'string', nonEmpty: true } },\n lint: { paths: { type: 'array', element: 'string', nonEmpty: true }, fix: { type: 'boolean' } },\n check: {},\n}\n"],"mappings":";;AAkBA,IAAa,gBAAgF;CAC3F,YAAY;EACV,MAAM;GAAE,MAAM;GAAU,UAAU;EAAK;EACvC,OAAO;GAAE,MAAM;GAAU,UAAU;EAAK;EACxC,KAAK,EAAE,MAAM,SAAS;CACxB;CACA,MAAM;EACJ,MAAM;GAAE,MAAM;GAAU,UAAU;EAAK;EACvC,OAAO;GACL,MAAM;GACN,UAAU;GACV,SAAS;IACP,QAAQ;KACN,MAAM;MAAE,MAAM;MAAU,UAAU;KAAK;KACvC,SAAS,EAAE,MAAM,SAAS;IAC5B;IACA,UAAU;GACZ;GACA,UAAU;EACZ;CACF;CACA,aAAa,EAAE,OAAO;EAAE,MAAM;EAAU,UAAU;CAAK,EAAE;CACzD,OAAO,EAAE,OAAO;EAAE,MAAM;EAAS,SAAS;EAAU,UAAU;CAAK,EAAE;CACrE,QAAQ,EAAE,OAAO;EAAE,MAAM;EAAS,SAAS;EAAU,UAAU;CAAK,EAAE;CACtE,MAAM;EAAE,OAAO;GAAE,MAAM;GAAS,SAAS;GAAU,UAAU;EAAK;EAAG,KAAK,EAAE,MAAM,UAAU;CAAE;CAC9F,OAAO,CAAC;AACV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./common-7gCR3zQu.cjs");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./common-B5maOoF_.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
3
|
-
const require_ecmascript = require("../../ecmascript-
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_ecmascript = require("../../ecmascript-BydSB03Y.cjs");
|
|
4
4
|
exports.E_TYPESCRIPT_PEER_MISSING = require_ecmascript.E_TYPESCRIPT_PEER_MISSING;
|
|
5
5
|
exports.SpooledEcmaScriptArtifact = require_ecmascript.SpooledEcmaScriptArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-
|
|
1
|
+
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../../ecmascript-bgwVyZG1.mjs";
|
|
2
2
|
export { E_TYPESCRIPT_PEER_MISSING, SpooledEcmaScriptArtifact };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
3
|
-
const require_toon = require("../../toon-
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_toon = require("../../toon-b-0pFKZ8.cjs");
|
|
4
4
|
exports.E_TOON_DECODE_FAILED = require_toon.E_TOON_DECODE_FAILED;
|
|
5
5
|
exports.E_TOON_PEER_MISSING = require_toon.E_TOON_PEER_MISSING;
|
|
6
6
|
exports.SpooledToonArtifact = require_toon.SpooledToonArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../../toon-
|
|
1
|
+
import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../../toon-BA9Q7NHG.mjs";
|
|
2
2
|
export { E_TOON_DECODE_FAILED, E_TOON_PEER_MISSING, SpooledToonArtifact, jsonToToonTool, toonToJsonTool };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
3
|
-
const require_xml = require("../../xml-
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_xml = require("../../xml-fvwTsoRv.cjs");
|
|
4
4
|
exports.E_XML_PARSER_PEER_MISSING = require_xml.E_XML_PARSER_PEER_MISSING;
|
|
5
5
|
exports.E_XML_PARSE_FAILED = require_xml.E_XML_PARSE_FAILED;
|
|
6
6
|
exports.SpooledXmlArtifact = require_xml.SpooledXmlArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../../xml-
|
|
1
|
+
import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../../xml-B1JIGLpU.mjs";
|
|
2
2
|
export { E_XML_PARSER_PEER_MISSING, E_XML_PARSE_FAILED, SpooledXmlArtifact, jsonToXmlTool, xmlToJsonTool };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
3
|
-
const require_yaml = require("../../yaml-
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_yaml = require("../../yaml-DPUTumla.cjs");
|
|
4
4
|
exports.E_YAML_PARSE_ERROR = require_yaml.E_YAML_PARSE_ERROR;
|
|
5
5
|
exports.E_YAML_PEER_MISSING = require_yaml.E_YAML_PEER_MISSING;
|
|
6
6
|
exports.SpooledYamlArtifact = require_yaml.SpooledYamlArtifact;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../../yaml-
|
|
1
|
+
import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../../yaml-1mP4uxdf.mjs";
|
|
2
2
|
export { E_YAML_PARSE_ERROR, E_YAML_PEER_MISSING, SpooledYamlArtifact, jsonToYamlTool, yamlToJsonTool };
|
package/batteries/artifacts.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-Cek0wNdY.
|
|
3
|
-
const require_toon = require("../toon-
|
|
4
|
-
const require_yaml = require("../yaml-
|
|
5
|
-
const require_xml = require("../xml-
|
|
6
|
-
const require_ecmascript = require("../ecmascript-
|
|
2
|
+
require("../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_toon = require("../toon-b-0pFKZ8.cjs");
|
|
4
|
+
const require_yaml = require("../yaml-DPUTumla.cjs");
|
|
5
|
+
const require_xml = require("../xml-fvwTsoRv.cjs");
|
|
6
|
+
const require_ecmascript = require("../ecmascript-BydSB03Y.cjs");
|
|
7
7
|
//#region src/batteries/artifacts/index.ts
|
|
8
8
|
/**
|
|
9
9
|
* Registers the four artifact classes with the '@nhtio/encoder' decoder.
|
package/batteries/artifacts.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../toon-
|
|
2
|
-
import { a as E_YAML_PEER_MISSING, i as E_YAML_PARSE_ERROR, n as jsonToYamlTool, r as yamlToJsonTool, t as SpooledYamlArtifact } from "../yaml-
|
|
3
|
-
import { a as E_XML_PARSE_FAILED, i as E_XML_PARSER_PEER_MISSING, n as jsonToXmlTool, r as xmlToJsonTool, t as SpooledXmlArtifact } from "../xml-
|
|
4
|
-
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-
|
|
1
|
+
import { a as E_TOON_PEER_MISSING, i as E_TOON_DECODE_FAILED, n as jsonToToonTool, r as toonToJsonTool, t as SpooledToonArtifact } from "../toon-BA9Q7NHG.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-1mP4uxdf.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-B1JIGLpU.mjs";
|
|
4
|
+
import { n as E_TYPESCRIPT_PEER_MISSING, t as SpooledEcmaScriptArtifact } from "../ecmascript-bgwVyZG1.mjs";
|
|
5
5
|
//#region src/batteries/artifacts/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* Registers the four artifact classes with the '@nhtio/encoder' decoder.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_context_exceptions = require("../exceptions.cjs");
|
|
4
4
|
//#region src/batteries/context/compact/summarizer.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_context_exceptions = require("./exceptions.cjs");
|
|
4
4
|
const require_batteries_context_compact_summarizer = require("./compact/summarizer.cjs");
|
|
5
5
|
exports.COMPACTION_SYSTEM_PROMPT = require_batteries_context_compact_summarizer.COMPACTION_SYSTEM_PROMPT;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
3
|
-
const require_exceptions = require("../../exceptions-DrHnAGQz.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_exceptions = require("../../exceptions-DrHnAGQz.cjs");
|
|
4
4
|
require("../../factories.cjs");
|
|
5
5
|
//#region src/batteries/context/exceptions.ts
|
|
6
6
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
//#region src/batteries/context/thrift/relevance.ts
|
|
4
4
|
/**
|
|
5
5
|
* The relevance floor's lower bound — the minimum fraction of the current query's content words a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_context_exceptions = require("../exceptions.cjs");
|
|
4
4
|
//#region src/batteries/context/thrift/subtractive_pass.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_context_exceptions = require("./exceptions.cjs");
|
|
4
4
|
const require_batteries_context_thrift_subtractive_pass = require("./thrift/subtractive_pass.cjs");
|
|
5
5
|
const require_batteries_context_thrift_relevance = require("./thrift/relevance.cjs");
|
package/batteries/context.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-Cek0wNdY.
|
|
2
|
+
require("../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_context_exceptions = require("./context/exceptions.cjs");
|
|
4
4
|
const require_batteries_context_thrift_subtractive_pass = require("./context/thrift/subtractive_pass.cjs");
|
|
5
5
|
const require_batteries_context_thrift_relevance = require("./context/thrift/relevance.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
3
|
-
const require_conformance = require("../../conformance-T1qEg8Sv.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_conformance = require("../../conformance-T1qEg8Sv.cjs");
|
|
4
4
|
exports.runSandboxConformance = require_conformance.runSandboxConformance;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
3
|
-
const require_spooled_artifact = require("../../spooled_artifact-
|
|
4
|
-
require("../../common-
|
|
5
|
-
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-
|
|
6
|
-
const require_arg_specs = require("../../arg_specs-iYmIM3wI.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_spooled_artifact = require("../../spooled_artifact-BLgbGT8b.cjs");
|
|
4
|
+
require("../../common-7gCR3zQu.cjs");
|
|
5
|
+
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-8zdejfcJ.cjs");
|
|
6
|
+
const require_arg_specs = require("../../arg_specs-iYmIM3wI.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
8
8
|
//#region src/batteries/dev_tools/forge.ts
|
|
9
9
|
/** Agent glue for the structured development-tools surface. @module @nhtio/adk/batteries/dev-tools/forge */
|
|
@@ -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,16 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-Cek0wNdY.
|
|
3
|
-
const require_exceptions = require("../exceptions-DrHnAGQz.
|
|
4
|
-
const
|
|
5
|
-
const
|
|
2
|
+
require("../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_exceptions = require("../exceptions-DrHnAGQz.cjs");
|
|
4
|
+
const require_guards = require("../guards-5-XmJgD2.cjs");
|
|
5
|
+
const require_tokenizable = require("../tokenizable-DDIdXbJN.cjs");
|
|
6
6
|
require("../factories.cjs");
|
|
7
|
-
require("../exceptions.cjs");
|
|
8
7
|
require("../guards.cjs");
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
8
|
+
require("../exceptions.cjs");
|
|
9
|
+
const require_types = require("../types-DWOiL208.cjs");
|
|
10
|
+
const require_tools = require("../tools-D4mdzi0a.cjs");
|
|
11
|
+
const require_fs_node = require("../fs_node-XvgZtNJV.cjs");
|
|
12
|
+
const require_patch = require("../patch-BXX9Q0FM.cjs");
|
|
13
|
+
const require_arg_specs = require("../arg_specs-iYmIM3wI.cjs");
|
|
14
14
|
let _nhtio_validation = require("@nhtio/validation");
|
|
15
15
|
let _nhtio_middleware = require("@nhtio/middleware");
|
|
16
16
|
//#region src/batteries/dev_tools/exceptions.ts
|
package/batteries/dev-tools.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as createException } from "../exceptions-DRYLe-J4.mjs";
|
|
2
|
-
import { k as E_LLM_EXECUTION_GATE_NOT_SUPPORTED } from "../tokenizable-xPXj1AQX.mjs";
|
|
3
2
|
import { n as isInstanceOf, r as isObject, t as isError } from "../guards-BEpY7lBI.mjs";
|
|
3
|
+
import { k as E_LLM_EXECUTION_GATE_NOT_SUPPORTED } from "../tokenizable-xPXj1AQX.mjs";
|
|
4
4
|
import "../factories.mjs";
|
|
5
|
-
import "../exceptions.mjs";
|
|
6
5
|
import "../guards.mjs";
|
|
6
|
+
import "../exceptions.mjs";
|
|
7
7
|
import { h as createExistingSymlinkGuard, m as classifySandboxPathRejection, v as normalizeSandboxPath } from "../types-D6X_aUIb.mjs";
|
|
8
|
-
import { i as narratingPath, p as resolveMime } from "../tools-
|
|
8
|
+
import { i as narratingPath, p as resolveMime } from "../tools-BC4NJqZD.mjs";
|
|
9
9
|
import { r as createFsNode } from "../fs_node-Cg__jYMW.mjs";
|
|
10
10
|
import { a as parseStructuredPatch, c as runOnion, i as normalizeWorkspacePath, n as applyUpdateHunks, o as decodeText, r as isStructuredPatch, s as isTextual, t as applyOperations } from "../patch-BbC0U8aR.mjs";
|
|
11
11
|
import { t as DEV_ARG_SPECS } from "../arg_specs-H1qM_1QI.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_guards = require("../../../guards-
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
6
6
|
const require_batteries_embeddings_openai_helpers = require("../openai/helpers.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_exceptions = require("../../../exceptions-DrHnAGQz.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_exceptions = require("../../../exceptions-DrHnAGQz.cjs");
|
|
4
4
|
require("../../../factories.cjs");
|
|
5
5
|
//#region src/batteries/embeddings/ollama/exceptions.ts
|
|
6
6
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
require("../../../guards.cjs");
|
|
4
4
|
const require_batteries_embeddings_ollama_exceptions = require("./exceptions.cjs");
|
|
5
5
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_embeddings_ollama_exceptions = require("./ollama/exceptions.cjs");
|
|
4
4
|
const require_batteries_embeddings_ollama_validation = require("./ollama/validation.cjs");
|
|
5
5
|
const require_batteries_embeddings_ollama_adapter = require("./ollama/adapter.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_guards = require("../../../guards-
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
6
6
|
const require_batteries_embeddings_openai_exceptions = require("./exceptions.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_exceptions = require("../../../exceptions-DrHnAGQz.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_exceptions = require("../../../exceptions-DrHnAGQz.cjs");
|
|
4
4
|
require("../../../factories.cjs");
|
|
5
5
|
//#region src/batteries/embeddings/openai/exceptions.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
//#region src/batteries/embeddings/openai/helpers.ts
|
|
4
4
|
/**
|
|
5
5
|
* Applies the configured query/document instruction prefix to a batch of inputs.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
require("../../../guards.cjs");
|
|
4
4
|
const require_batteries_embeddings_openai_exceptions = require("./exceptions.cjs");
|
|
5
5
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_embeddings_openai_exceptions = require("./openai/exceptions.cjs");
|
|
4
4
|
const require_batteries_embeddings_openai_validation = require("./openai/validation.cjs");
|
|
5
5
|
const require_batteries_embeddings_openai_helpers = require("./openai/helpers.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_guards = require("../../../guards-
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.
|
|
5
|
+
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.cjs");
|
|
6
6
|
const require_batteries_llm_transformers_js_model_source = require("../../llm/transformers_js/model_source.cjs");
|
|
7
7
|
const require_batteries_embeddings_openai_helpers = require("../openai/helpers.cjs");
|
|
8
8
|
const require_batteries_embeddings_transformers_js_pooling = require("./pooling.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_exceptions = require("../../../exceptions-DrHnAGQz.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_exceptions = require("../../../exceptions-DrHnAGQz.cjs");
|
|
4
4
|
require("../../../factories.cjs");
|
|
5
5
|
//#region src/batteries/embeddings/transformers_js/exceptions.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
//#region src/batteries/embeddings/transformers_js/pooling.ts
|
|
4
4
|
/**
|
|
5
5
|
* Mean-pool a `[seq, hidden]` matrix into a `[hidden]` vector.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_guards = require("../../../guards-
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_batteries_embeddings_transformers_js_exceptions = require("./exceptions.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_embeddings_transformers_js_pooling = require("./transformers_js/pooling.cjs");
|
|
4
4
|
const require_batteries_embeddings_transformers_js_exceptions = require("./transformers_js/exceptions.cjs");
|
|
5
5
|
const require_batteries_embeddings_transformers_js_validation = require("./transformers_js/validation.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_guards = require("../../../guards-
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_guards = require("../../../guards-5-XmJgD2.cjs");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_batteries_embeddings_openai_helpers = require("../openai/helpers.cjs");
|
|
6
6
|
const require_batteries_embeddings_webllm_exceptions = require("./exceptions.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
3
|
-
const require_exceptions = require("../../../exceptions-DrHnAGQz.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_exceptions = require("../../../exceptions-DrHnAGQz.cjs");
|
|
4
4
|
require("../../../factories.cjs");
|
|
5
5
|
//#region src/batteries/embeddings/webllm/exceptions.ts
|
|
6
6
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
require("../../../guards.cjs");
|
|
4
4
|
const require_batteries_embeddings_webllm_exceptions = require("./exceptions.cjs");
|
|
5
5
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../chunk-Cek0wNdY.
|
|
2
|
+
require("../../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_embeddings_webllm_exceptions = require("./webllm/exceptions.cjs");
|
|
4
4
|
const require_batteries_embeddings_webllm_validation = require("./webllm/validation.cjs");
|
|
5
5
|
const require_batteries_embeddings_webllm_adapter = require("./webllm/adapter.cjs");
|
package/batteries/embeddings.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-Cek0wNdY.
|
|
2
|
+
require("../chunk-Cek0wNdY.cjs");
|
|
3
3
|
const require_batteries_embeddings_openai_exceptions = require("./embeddings/openai/exceptions.cjs");
|
|
4
4
|
const require_batteries_embeddings_openai_validation = require("./embeddings/openai/validation.cjs");
|
|
5
5
|
const require_batteries_embeddings_openai_helpers = require("./embeddings/openai/helpers.cjs");
|
package/batteries/encoding.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../chunk-Cek0wNdY.
|
|
3
|
-
const require_tokenizable = require("../tokenizable-
|
|
4
|
-
const require_spooled_artifact = require("../spooled_artifact-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const require_tool_call = require("../tool_call-
|
|
8
|
-
const require_common = require("../common-
|
|
9
|
-
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-
|
|
2
|
+
require("../chunk-Cek0wNdY.cjs");
|
|
3
|
+
const require_tokenizable = require("../tokenizable-DDIdXbJN.cjs");
|
|
4
|
+
const require_spooled_artifact = require("../spooled_artifact-BLgbGT8b.cjs");
|
|
5
|
+
const require_retrievable = require("../retrievable-BBwiACtw.cjs");
|
|
6
|
+
const require_thought = require("../thought-COeZTQ-B.cjs");
|
|
7
|
+
const require_tool_call = require("../tool_call-JbjeUpRK.cjs");
|
|
8
|
+
const require_common = require("../common-7gCR3zQu.cjs");
|
|
9
|
+
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-8zdejfcJ.cjs");
|
|
10
10
|
require("../index.cjs");
|
|
11
11
|
const require_batteries_storage_in_memory = require("./storage/in_memory.cjs");
|
|
12
12
|
let _nhtio_encoder = require("@nhtio/encoder");
|