@nhtio/adk 1.20260612.0 → 1.20260624.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 +20 -0
- package/batteries/embeddings/openai/adapter.cjs +1 -1
- package/batteries/embeddings/openai/adapter.mjs +1 -1
- package/batteries/embeddings/webllm/adapter.cjs +1 -1
- package/batteries/embeddings/webllm/adapter.mjs +1 -1
- package/batteries/llm/ollama/adapter.cjs +5 -5
- package/batteries/llm/ollama/adapter.mjs +5 -5
- package/batteries/llm/ollama/helpers.cjs +2 -2
- package/batteries/llm/ollama/helpers.mjs +2 -2
- package/batteries/llm/ollama/validation.cjs +1 -1
- package/batteries/llm/ollama/validation.mjs +1 -1
- package/batteries/llm/openai_chat_completions/adapter.cjs +5 -5
- package/batteries/llm/openai_chat_completions/adapter.mjs +5 -5
- package/batteries/llm/openai_chat_completions/helpers.cjs +2 -2
- package/batteries/llm/openai_chat_completions/helpers.mjs +2 -2
- package/batteries/llm/openai_chat_completions/validation.cjs +1 -1
- package/batteries/llm/openai_chat_completions/validation.mjs +1 -1
- package/batteries/llm/webllm_chat_completions/adapter.cjs +5 -5
- package/batteries/llm/webllm_chat_completions/adapter.mjs +5 -5
- package/batteries/llm/webllm_chat_completions/validation.cjs +1 -1
- package/batteries/llm/webllm_chat_completions/validation.mjs +1 -1
- package/batteries/media/contracts.cjs +1 -1
- package/batteries/media/contracts.mjs +1 -1
- package/batteries/media/engines/audio_decode.cjs +2 -2
- package/batteries/media/engines/audio_decode.mjs +2 -2
- package/batteries/media/engines/data.cjs +2 -2
- package/batteries/media/engines/data.mjs +2 -2
- package/batteries/media/engines/exceljs.cjs +2 -2
- package/batteries/media/engines/exceljs.mjs +2 -2
- package/batteries/media/engines/execa_executor.cjs +1 -1
- package/batteries/media/engines/execa_executor.mjs +1 -1
- package/batteries/media/engines/fs_workspace.cjs +1 -1
- package/batteries/media/engines/fs_workspace.mjs +1 -1
- package/batteries/media/engines/jimp.cjs +2 -2
- package/batteries/media/engines/jimp.mjs +2 -2
- package/batteries/media/engines/sharp.cjs +2 -2
- package/batteries/media/engines/sharp.mjs +2 -2
- package/batteries/media/engines/sheetjs.cjs +2 -2
- package/batteries/media/engines/sheetjs.mjs +2 -2
- package/batteries/media/engines/soffice.cjs +1 -1
- package/batteries/media/engines/soffice.mjs +1 -1
- package/batteries/media/engines/tesseract_js.cjs +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.mjs +2 -2
- package/batteries/media/forge.cjs +7 -7
- package/batteries/media/forge.mjs +7 -7
- package/batteries/media/lint.cjs +1 -1
- package/batteries/media/lint.mjs +1 -1
- package/batteries/media.cjs +3 -3
- package/batteries/media.mjs +3 -3
- package/batteries/storage/flydrive.cjs +1 -1
- package/batteries/storage/flydrive.mjs +1 -1
- package/batteries/storage/in_memory.cjs +1 -1
- package/batteries/storage/in_memory.mjs +1 -1
- package/batteries/storage/opfs.cjs +1 -1
- package/batteries/storage/opfs.mjs +1 -1
- package/batteries/tools/_shared.cjs +2 -2
- 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 +3 -3
- package/batteries/tools/comparison.mjs +3 -3
- package/batteries/tools/data_structure.cjs +3 -3
- 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 +3 -3
- package/batteries/tools/encoding.mjs +3 -3
- package/batteries/tools/formatting.cjs +3 -3
- 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 +3 -3
- package/batteries/tools/math.mjs +3 -3
- package/batteries/tools/memory.cjs +5 -5
- package/batteries/tools/memory.mjs +5 -5
- package/batteries/tools/parsing.cjs +4 -4
- package/batteries/tools/parsing.mjs +4 -4
- package/batteries/tools/retrievables.cjs +4 -4
- package/batteries/tools/retrievables.mjs +4 -4
- package/batteries/tools/scrapper.cjs +1 -1
- package/batteries/tools/scrapper.mjs +1 -1
- package/batteries/tools/searxng.cjs +1 -1
- package/batteries/tools/searxng.mjs +1 -1
- package/batteries/tools/standing_instructions.cjs +4 -4
- package/batteries/tools/standing_instructions.mjs +4 -4
- package/batteries/tools/statistics.cjs +4 -4
- package/batteries/tools/statistics.mjs +4 -4
- package/batteries/tools/string_processing.cjs +3 -3
- package/batteries/tools/string_processing.mjs +3 -3
- package/batteries/tools/structured_data.cjs +3 -3
- 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 +1 -1
- package/batteries/tools/web_retrieval.mjs +1 -1
- package/batteries/tools.cjs +2 -2
- package/batteries/tools.mjs +2 -2
- package/batteries/vector/arangodb.cjs +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 +2 -2
- package/batteries/vector/clickhouse.mjs +2 -2
- package/batteries/vector/cloudflare.cjs +2 -2
- package/batteries/vector/cloudflare.mjs +2 -2
- package/batteries/vector/couchbase.cjs +2 -2
- package/batteries/vector/couchbase.mjs +2 -2
- package/batteries/vector/duckdb.cjs +2 -2
- package/batteries/vector/duckdb.mjs +2 -2
- package/batteries/vector/elasticsearch.cjs +2 -2
- package/batteries/vector/elasticsearch.mjs +2 -2
- package/batteries/vector/filters.cjs +1 -1
- package/batteries/vector/filters.mjs +1 -1
- package/batteries/vector/hnswlib.cjs +2 -2
- 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 +2 -2
- package/batteries/vector/lancedb.mjs +2 -2
- package/batteries/vector/mariadb.cjs +2 -2
- package/batteries/vector/mariadb.mjs +2 -2
- package/batteries/vector/meilisearch.cjs +1 -1
- package/batteries/vector/meilisearch.mjs +1 -1
- package/batteries/vector/migrate.cjs +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 +1 -1
- package/batteries/vector/mongodb.mjs +1 -1
- package/batteries/vector/neo4j.cjs +1 -1
- package/batteries/vector/neo4j.mjs +1 -1
- package/batteries/vector/opensearch.cjs +2 -2
- package/batteries/vector/opensearch.mjs +2 -2
- package/batteries/vector/oracle23ai.cjs +2 -2
- 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 +2 -2
- 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 +2 -2
- package/batteries/vector/redis.mjs +2 -2
- package/batteries/vector/retrievable.cjs +1 -1
- package/batteries/vector/retrievable.mjs +1 -1
- package/batteries/vector/s3vectors.cjs +2 -2
- package/batteries/vector/s3vectors.mjs +2 -2
- package/batteries/vector/solr.cjs +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 +1 -1
- package/batteries/vector/surrealdb.mjs +1 -1
- package/batteries/vector/typesense.cjs +2 -2
- package/batteries/vector/typesense.mjs +2 -2
- package/batteries/vector/vespa.cjs +2 -2
- package/batteries/vector/vespa.mjs +2 -2
- package/batteries/vector/weaviate.cjs +2 -2
- package/batteries/vector/weaviate.mjs +2 -2
- package/batteries/vector.cjs +2 -2
- package/batteries/vector.mjs +2 -2
- package/batteries.cjs +7 -7
- package/batteries.mjs +7 -7
- package/{common-_77pbLLS.mjs → common-BQoFv108.mjs} +7 -7
- package/{common-_77pbLLS.mjs.map → common-BQoFv108.mjs.map} +1 -1
- package/{common-6WOPAB3-.js → common-DmDn4Gfl.js} +7 -7
- package/{common-6WOPAB3-.js.map → common-DmDn4Gfl.js.map} +1 -1
- package/common.cjs +7 -7
- package/common.mjs +7 -7
- package/{dispatch_runner-BP0WMfao.js → dispatch_runner-BwplbCPr.js} +2 -2
- package/{dispatch_runner-BP0WMfao.js.map → dispatch_runner-BwplbCPr.js.map} +1 -1
- package/{dispatch_runner-CwXLFXms.mjs → dispatch_runner-C1ar_D7W.mjs} +2 -2
- package/{dispatch_runner-CwXLFXms.mjs.map → dispatch_runner-C1ar_D7W.mjs.map} +1 -1
- package/dispatch_runner.cjs +1 -1
- package/dispatch_runner.mjs +1 -1
- package/eslint.cjs +1 -1
- package/eslint.mjs +1 -1
- package/forge.cjs +4 -4
- package/forge.mjs +4 -4
- package/guards.cjs +8 -8
- package/guards.mjs +8 -8
- package/index.cjs +10 -10
- package/index.mjs +10 -10
- package/mcp/adk-docs-corpus.json +1 -1
- package/package.json +177 -177
- package/{scrapper-BEkHTv7V.mjs → scrapper-MfjsLsL4.mjs} +5 -5
- package/{scrapper-BEkHTv7V.mjs.map → scrapper-MfjsLsL4.mjs.map} +1 -1
- package/{scrapper-E_XqhFva.js → scrapper-grknoN0t.js} +5 -5
- package/{scrapper-E_XqhFva.js.map → scrapper-grknoN0t.js.map} +1 -1
- package/{searxng-Bo85zPpQ.mjs → searxng-DDIm-nYx.mjs} +5 -5
- package/{searxng-Bo85zPpQ.mjs.map → searxng-DDIm-nYx.mjs.map} +1 -1
- package/{searxng-Bzvo_MCZ.js → searxng-VpELKVBy.js} +5 -5
- package/{searxng-Bzvo_MCZ.js.map → searxng-VpELKVBy.js.map} +1 -1
- package/server.json +2 -2
- package/skills/adk-assembly/SKILL.md +2 -2
- package/{spooled_artifact-xA7Te-kE.js → spooled_artifact-BCmPrxZS.js} +3 -3
- package/{spooled_artifact-xA7Te-kE.js.map → spooled_artifact-BCmPrxZS.js.map} +1 -1
- package/{spooled_artifact-CmL5ci5Z.mjs → spooled_artifact-DL36jnqA.mjs} +3 -3
- package/{spooled_artifact-CmL5ci5Z.mjs.map → spooled_artifact-DL36jnqA.mjs.map} +1 -1
- package/spooled_artifact.cjs +2 -2
- package/spooled_artifact.mjs +2 -2
- package/{spooled_markdown_artifact-B3wDMxcb.js → spooled_markdown_artifact-CD4PrrpV.js} +3 -3
- package/{spooled_markdown_artifact-B3wDMxcb.js.map → spooled_markdown_artifact-CD4PrrpV.js.map} +1 -1
- package/{spooled_markdown_artifact-sEU_esW6.mjs → spooled_markdown_artifact-Da-Xnebh.mjs} +3 -3
- package/{spooled_markdown_artifact-sEU_esW6.mjs.map → spooled_markdown_artifact-Da-Xnebh.mjs.map} +1 -1
- package/{thought-DXnh31HJ.mjs → thought-CtOoZUSE.mjs} +3 -3
- package/{thought-DXnh31HJ.mjs.map → thought-CtOoZUSE.mjs.map} +1 -1
- package/{thought-c4d-q-3R.js → thought-eka4iUHa.js} +3 -3
- package/{thought-c4d-q-3R.js.map → thought-eka4iUHa.js.map} +1 -1
- package/{tool-DnebtFed.mjs → tool-CITF20yJ.mjs} +2 -2
- package/{tool-DnebtFed.mjs.map → tool-CITF20yJ.mjs.map} +1 -1
- package/{tool-DerXDcez.js → tool-Dhjca7rC.js} +2 -2
- package/{tool-DerXDcez.js.map → tool-Dhjca7rC.js.map} +1 -1
- package/{tool_call-Bua8qpko.js → tool_call-Cyi0hUUc.js} +3 -3
- package/{tool_call-Bua8qpko.js.map → tool_call-Cyi0hUUc.js.map} +1 -1
- package/{tool_call-D69JEDXJ.mjs → tool_call-D_k36aI4.mjs} +3 -3
- package/{tool_call-D69JEDXJ.mjs.map → tool_call-D_k36aI4.mjs.map} +1 -1
- package/{tool_registry-QKQYr8Tp.mjs → tool_registry-CZ55mIti.mjs} +11 -2
- package/tool_registry-CZ55mIti.mjs.map +1 -0
- package/{tool_registry-bWKC6jt1.js → tool_registry-DwZ6pzN4.js} +11 -2
- package/tool_registry-DwZ6pzN4.js.map +1 -0
- package/{turn_runner-CrpcyQbJ.js → turn_runner-CCZcsoDU.js} +4 -4
- package/{turn_runner-CrpcyQbJ.js.map → turn_runner-CCZcsoDU.js.map} +1 -1
- package/{turn_runner-Cg4xdghG.mjs → turn_runner-DRPpVvsd.mjs} +4 -4
- package/{turn_runner-Cg4xdghG.mjs.map → turn_runner-DRPpVvsd.mjs.map} +1 -1
- package/turn_runner.cjs +1 -1
- package/turn_runner.mjs +1 -1
- package/{validate-DKanpGpG.js → validate-BBebWeQ6.js} +3 -3
- package/{validate-DKanpGpG.js.map → validate-BBebWeQ6.js.map} +1 -1
- package/{validate-CHaqFmX6.mjs → validate-CmhzDJW2.mjs} +3 -3
- package/{validate-CHaqFmX6.mjs.map → validate-CmhzDJW2.mjs.map} +1 -1
- package/tool_registry-QKQYr8Tp.mjs.map +0 -1
- package/tool_registry-bWKC6jt1.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,26 @@ 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-06-23
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **`Tokenizable` now caches the tiktoken encoder instead of rebuilding it per call**
|
|
23
|
+
(reported against `1.20260612.0` from a Node/AdonisJS host embedding the ADK). `js-tiktoken`'s
|
|
24
|
+
`getEncoding` has no internal cache — every call does `new Tiktoken(<ranks>)`, parsing the full
|
|
25
|
+
BPE rank table (~800 ms for `o200k_base`), which is ~1000× the cost of the `encode()` that
|
|
26
|
+
follows. The tiktoken backend was the one estimator that never got the lazy-singleton treatment
|
|
27
|
+
the Gemini and Llama backends already had, so a fresh encoder was constructed on **every**
|
|
28
|
+
`estimateTokens` invocation that missed the per-value memo. On a tool-heavy turn — where a
|
|
29
|
+
battery re-measures an accumulating dispatch context once per iteration — this rebuilt the BPE
|
|
30
|
+
table O(results × iterations) times, saturating a single-threaded host's event loop (CPU pegged,
|
|
31
|
+
RSS oscillating multi-GB under GC of the repeatedly-allocated vocabulary, co-tenant HTTP
|
|
32
|
+
starved). The encoder is now memoized in a module-level `Map<TokenEncoding, Tiktoken>`, mirroring
|
|
33
|
+
the existing Gemini/Llama singletons; construction drops to once per encoding per process.
|
|
34
|
+
Behaviour-preserving (`Tiktoken` instances are stateless and reusable), benefits every
|
|
35
|
+
tokenization path ADK-wide, and is the single highest-leverage change against the reported
|
|
36
|
+
event-loop starvation.
|
|
37
|
+
|
|
18
38
|
## 2026-06-12
|
|
19
39
|
|
|
20
40
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { computeBackoff, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
4
4
|
import { E_OPENAI_EMBEDDINGS_HTTP_ERROR, E_OPENAI_EMBEDDINGS_MALFORMED_RESPONSE, E_OPENAI_EMBEDDINGS_REQUEST_TIMEOUT } from "./exceptions.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { applyEmbeddingPrefix } from "../openai/helpers.mjs";
|
|
4
4
|
import { E_INVALID_WEBLLM_EMBEDDINGS_OPTIONS, E_WEBLLM_EMBEDDINGS_ENGINE_ERROR } from "./exceptions.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
4
|
-
const require_thought = require("../../../thought-
|
|
5
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
6
|
-
require("../../../common-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
|
+
const require_thought = require("../../../thought-eka4iUHa.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BCmPrxZS.js");
|
|
6
|
+
require("../../../common-DmDn4Gfl.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-Cyi0hUUc.js");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
10
10
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Tokenizable, c as isObject, n as canonicalStringify, o as isError, s as isInstanceOf, t as ToolRegistry } from "../../../tool_registry-
|
|
2
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
3
|
-
import { i as ArtifactTool, t as SpooledArtifact } from "../../../spooled_artifact-
|
|
4
|
-
import "../../../common-
|
|
5
|
-
import { n as Media, t as ToolCall } from "../../../tool_call-
|
|
1
|
+
import { a as Tokenizable, c as isObject, n as canonicalStringify, o as isError, s as isInstanceOf, t as ToolRegistry } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
|
+
import { n as Message, t as Thought } from "../../../thought-CtOoZUSE.mjs";
|
|
3
|
+
import { i as ArtifactTool, t as SpooledArtifact } from "../../../spooled_artifact-DL36jnqA.mjs";
|
|
4
|
+
import "../../../common-BQoFv108.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-D_k36aI4.mjs";
|
|
6
6
|
import "../../../guards.mjs";
|
|
7
7
|
import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
8
8
|
import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
require("../../../common-
|
|
4
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
require("../../../common-DmDn4Gfl.js");
|
|
4
|
+
const require_tool_call = require("../../../tool_call-Cyi0hUUc.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_helpers = require("../../../helpers-1okZzNCa.js");
|
|
7
7
|
const require_batteries_llm_ollama_exceptions = require("./exceptions.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../common-
|
|
2
|
-
import { n as Media } from "../../../tool_call-
|
|
1
|
+
import "../../../common-BQoFv108.mjs";
|
|
2
|
+
import { n as Media } from "../../../tool_call-D_k36aI4.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { A as retrievableToAttrs, C as renderRetrievables, D as renderThought, E as renderThirdPartyPublicRetrievables, M as toolsToChatCompletionsTools, O as renderTrustedContent, S as renderRetrievableSafetyDirective, T as renderThirdPartyPrivateRetrievables, _ as filterThoughts, a as defaultRenderMemories, b as renderFirstPartyRetrievables, c as defaultRenderStandingInstructions, d as defaultRenderThought, f as defaultRenderTrustedContent, g as escapeXmlAttribute, h as descriptionToChatCompletionsJsonSchema, i as defaultRenderFirstPartyRetrievables, k as renderUntrustedContent, l as defaultRenderThirdPartyPrivateRetrievables, m as defaultToolsToChatCompletionsTools, n as defaultFilterThoughts, o as defaultRenderRetrievableSafetyDirective, p as defaultRenderUntrustedContent, r as defaultRenderChatCompletionsSystemPrompt, s as defaultRenderRetrievables, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPublicRetrievables, v as memoryToAttrs, w as renderStandingInstructions, x as renderMemories, y as renderChatCompletionsSystemPrompt } from "../../../helpers-BCyDAn_R.mjs";
|
|
5
5
|
import { E_OLLAMA_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_common = require("../../../common-DmDn4Gfl.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_batteries_llm_ollama_exceptions = require("./exceptions.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as byteStoreSchema } from "../../../common-
|
|
1
|
+
import { i as byteStoreSchema } from "../../../common-BQoFv108.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { E_INVALID_OLLAMA_OPTIONS } from "./exceptions.mjs";
|
|
4
4
|
import { validator } from "@nhtio/validation";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
4
|
-
const require_thought = require("../../../thought-
|
|
5
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
6
|
-
require("../../../common-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
|
+
const require_thought = require("../../../thought-eka4iUHa.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BCmPrxZS.js");
|
|
6
|
+
require("../../../common-DmDn4Gfl.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-Cyi0hUUc.js");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
10
10
|
const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Tokenizable, c as isObject, n as canonicalStringify, o as isError, s as isInstanceOf, t as ToolRegistry } from "../../../tool_registry-
|
|
2
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
3
|
-
import { i as ArtifactTool, t as SpooledArtifact } from "../../../spooled_artifact-
|
|
4
|
-
import "../../../common-
|
|
5
|
-
import { n as Media, t as ToolCall } from "../../../tool_call-
|
|
1
|
+
import { a as Tokenizable, c as isObject, n as canonicalStringify, o as isError, s as isInstanceOf, t as ToolRegistry } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
|
+
import { n as Message, t as Thought } from "../../../thought-CtOoZUSE.mjs";
|
|
3
|
+
import { i as ArtifactTool, t as SpooledArtifact } from "../../../spooled_artifact-DL36jnqA.mjs";
|
|
4
|
+
import "../../../common-BQoFv108.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-D_k36aI4.mjs";
|
|
6
6
|
import "../../../guards.mjs";
|
|
7
7
|
import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
8
8
|
import { E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS, E_OPENAI_CHAT_COMPLETIONS_CONTEXT_OVERFLOW, E_OPENAI_CHAT_COMPLETIONS_HTTP_ERROR, E_OPENAI_CHAT_COMPLETIONS_INVALID_TOOL_CALL_ARGS, E_OPENAI_CHAT_COMPLETIONS_REQUEST_TIMEOUT, E_OPENAI_CHAT_COMPLETIONS_STREAM_ERROR, E_OPENAI_CHAT_COMPLETIONS_STREAM_STALLED } from "./exceptions.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
require("../../../common-
|
|
4
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
require("../../../common-DmDn4Gfl.js");
|
|
4
|
+
const require_tool_call = require("../../../tool_call-Cyi0hUUc.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
|
|
7
7
|
const require_helpers = require("../../../helpers-1okZzNCa.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../common-
|
|
2
|
-
import { n as Media } from "../../../tool_call-
|
|
1
|
+
import "../../../common-BQoFv108.mjs";
|
|
2
|
+
import { n as Media } from "../../../tool_call-D_k36aI4.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { E_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
|
|
5
5
|
import { A as retrievableToAttrs, C as renderRetrievables, D as renderThought, E as renderThirdPartyPublicRetrievables, M as toolsToChatCompletionsTools, O as renderTrustedContent, S as renderRetrievableSafetyDirective, T as renderThirdPartyPrivateRetrievables, _ as filterThoughts, a as defaultRenderMemories, b as renderFirstPartyRetrievables, c as defaultRenderStandingInstructions, d as defaultRenderThought, f as defaultRenderTrustedContent, g as escapeXmlAttribute, h as descriptionToChatCompletionsJsonSchema, i as defaultRenderFirstPartyRetrievables, j as sanitiseNameField, k as renderUntrustedContent, l as defaultRenderThirdPartyPrivateRetrievables, m as defaultToolsToChatCompletionsTools, n as defaultFilterThoughts, o as defaultRenderRetrievableSafetyDirective, p as defaultRenderUntrustedContent, r as defaultRenderChatCompletionsSystemPrompt, s as defaultRenderRetrievables, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPublicRetrievables, v as memoryToAttrs, w as renderStandingInstructions, x as renderMemories, y as renderChatCompletionsSystemPrompt } from "../../../helpers-BCyDAn_R.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_common = require("../../../common-DmDn4Gfl.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as byteStoreSchema } from "../../../common-
|
|
1
|
+
import { i as byteStoreSchema } from "../../../common-BQoFv108.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS } from "./exceptions.mjs";
|
|
4
4
|
import { validator } from "@nhtio/validation";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
4
|
-
const require_thought = require("../../../thought-
|
|
5
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
6
|
-
require("../../../common-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
|
+
const require_thought = require("../../../thought-eka4iUHa.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BCmPrxZS.js");
|
|
6
|
+
require("../../../common-DmDn4Gfl.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-Cyi0hUUc.js");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
10
10
|
const require_helpers = require("../../../helpers-1okZzNCa.js");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Tokenizable, c as isObject, n as canonicalStringify, o as isError, s as isInstanceOf, t as ToolRegistry } from "../../../tool_registry-
|
|
2
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
3
|
-
import { i as ArtifactTool, t as SpooledArtifact } from "../../../spooled_artifact-
|
|
4
|
-
import "../../../common-
|
|
5
|
-
import { n as Media, t as ToolCall } from "../../../tool_call-
|
|
1
|
+
import { a as Tokenizable, c as isObject, n as canonicalStringify, o as isError, s as isInstanceOf, t as ToolRegistry } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
|
+
import { n as Message, t as Thought } from "../../../thought-CtOoZUSE.mjs";
|
|
3
|
+
import { i as ArtifactTool, t as SpooledArtifact } from "../../../spooled_artifact-DL36jnqA.mjs";
|
|
4
|
+
import "../../../common-BQoFv108.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-D_k36aI4.mjs";
|
|
6
6
|
import "../../../guards.mjs";
|
|
7
7
|
import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
|
|
8
8
|
import { a as defaultRenderMemories, c as defaultRenderStandingInstructions, d as defaultRenderThought, f as defaultRenderTrustedContent, i as defaultRenderFirstPartyRetrievables, l as defaultRenderThirdPartyPrivateRetrievables, m as defaultToolsToChatCompletionsTools, n as defaultFilterThoughts, o as defaultRenderRetrievableSafetyDirective, p as defaultRenderUntrustedContent, r as defaultRenderChatCompletionsSystemPrompt, s as defaultRenderRetrievables, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPublicRetrievables } from "../../../helpers-BCyDAn_R.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_common = require("../../../common-DmDn4Gfl.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_batteries_llm_webllm_chat_completions_exceptions = require("./exceptions.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as byteStoreSchema } from "../../../common-
|
|
1
|
+
import { i as byteStoreSchema } from "../../../common-BQoFv108.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { E_INVALID_WEBLLM_CHAT_COMPLETIONS_OPTIONS } from "./exceptions.mjs";
|
|
4
4
|
import { validator } from "@nhtio/validation";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../guards.cjs");
|
|
5
5
|
//#region src/batteries/media/contracts.ts
|
|
6
6
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
6
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
|
+
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
7
7
|
//#region src/batteries/media/engines/audio_decode.ts
|
|
8
8
|
/**
|
|
9
9
|
* A cross-environment audio-decoding {@link @nhtio/adk/batteries/media/contracts!MediaEngine}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
|
-
import { EMPTY_MIME, PCM_MIME, pcmToBytes } from "../contracts.mjs";
|
|
4
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
|
+
import { EMPTY_MIME, PCM_MIME, pcmToBytes } from "../contracts.mjs";
|
|
5
5
|
//#region src/batteries/media/engines/audio_decode.ts
|
|
6
6
|
/**
|
|
7
7
|
* A cross-environment audio-decoding {@link @nhtio/adk/batteries/media/contracts!MediaEngine}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
6
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
|
+
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
7
7
|
const require_formats = require("../../../formats-DZVuqZUN.js");
|
|
8
8
|
//#region src/batteries/media/engines/data.ts
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
|
-
import { EMPTY_MIME } from "../contracts.mjs";
|
|
4
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
|
+
import { EMPTY_MIME } from "../contracts.mjs";
|
|
5
5
|
import { n as MIME } from "../../../formats-CCylUHZw.mjs";
|
|
6
6
|
//#region src/batteries/media/engines/data.ts
|
|
7
7
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
6
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
|
+
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
7
7
|
const require_formats = require("../../../formats-DZVuqZUN.js");
|
|
8
8
|
//#region src/batteries/media/engines/exceljs.ts
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
|
-
import { EMPTY_MIME } from "../contracts.mjs";
|
|
4
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
|
+
import { EMPTY_MIME } from "../contracts.mjs";
|
|
5
5
|
import { n as MIME } from "../../../formats-CCylUHZw.mjs";
|
|
6
6
|
//#region src/batteries/media/engines/exceljs.ts
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
6
|
//#region src/batteries/media/engines/execa_executor.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as isObject, o as isError } from "../../../tool_registry-
|
|
1
|
+
import { c as isObject, o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
4
|
//#region src/batteries/media/engines/execa_executor.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
6
|
//#region src/batteries/media/engines/fs_workspace.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as isError, s as isInstanceOf } from "../../../tool_registry-
|
|
1
|
+
import { o as isError, s as isInstanceOf } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
4
|
//#region src/batteries/media/engines/fs_workspace.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
6
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
|
+
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
7
7
|
//#region src/batteries/media/engines/jimp.ts
|
|
8
8
|
/**
|
|
9
9
|
* A cross-environment image {@link @nhtio/adk/batteries/media/contracts!MediaEngine}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
|
-
import { EMPTY_MIME } from "../contracts.mjs";
|
|
4
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
|
+
import { EMPTY_MIME } from "../contracts.mjs";
|
|
5
5
|
//#region src/batteries/media/engines/jimp.ts
|
|
6
6
|
/**
|
|
7
7
|
* A cross-environment image {@link @nhtio/adk/batteries/media/contracts!MediaEngine}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
6
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
|
+
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
7
7
|
//#region src/batteries/media/engines/sharp.ts
|
|
8
8
|
/**
|
|
9
9
|
* A Node-native image {@link @nhtio/adk/batteries/media/contracts!MediaEngine}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
|
-
import { EMPTY_MIME } from "../contracts.mjs";
|
|
4
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
|
+
import { EMPTY_MIME } from "../contracts.mjs";
|
|
5
5
|
//#region src/batteries/media/engines/sharp.ts
|
|
6
6
|
/**
|
|
7
7
|
* A Node-native image {@link @nhtio/adk/batteries/media/contracts!MediaEngine}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
6
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
|
+
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
7
7
|
const require_formats = require("../../../formats-DZVuqZUN.js");
|
|
8
8
|
//#region src/batteries/media/engines/sheetjs.ts
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
|
-
import { EMPTY_MIME } from "../contracts.mjs";
|
|
4
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
|
+
import { EMPTY_MIME } from "../contracts.mjs";
|
|
5
5
|
import { n as MIME } from "../../../formats-CCylUHZw.mjs";
|
|
6
6
|
//#region src/batteries/media/engines/sheetjs.ts
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
4
3
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
4
|
+
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
5
5
|
//#region src/batteries/media/engines/soffice.ts
|
|
6
6
|
/**
|
|
7
7
|
* The LibreOffice-backed {@link @nhtio/adk/batteries/media/contracts!MediaEngine}: document,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EMPTY_MIME, implementsBinaryExecutor, implementsScratchWorkspace } from "../contracts.mjs";
|
|
2
1
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
2
|
+
import { EMPTY_MIME, implementsBinaryExecutor, implementsScratchWorkspace } from "../contracts.mjs";
|
|
3
3
|
//#region src/batteries/media/engines/soffice.ts
|
|
4
4
|
/**
|
|
5
5
|
* The LibreOffice-backed {@link @nhtio/adk/batteries/media/contracts!MediaEngine}: document,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
6
|
//#region src/batteries/media/engines/tesseract_js.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
4
|
//#region src/batteries/media/engines/tesseract_js.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
|
-
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
6
5
|
const require_exceptions = require("../../../exceptions-D79HIKeX.js");
|
|
6
|
+
const require_batteries_media_contracts = require("../contracts.cjs");
|
|
7
7
|
//#region src/batteries/media/engines/transformers_asr.ts
|
|
8
8
|
/**
|
|
9
9
|
* A cross-environment transcription {@link @nhtio/adk/batteries/media/contracts!MediaEngine}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-CZ55mIti.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
|
-
import { PCM_MIME, bytesToPcm } from "../contracts.mjs";
|
|
4
3
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../../exceptions-BLTn4Ofs.mjs";
|
|
4
|
+
import { PCM_MIME, bytesToPcm } from "../contracts.mjs";
|
|
5
5
|
//#region src/batteries/media/engines/transformers_asr.ts
|
|
6
6
|
/**
|
|
7
7
|
* A cross-environment transcription {@link @nhtio/adk/batteries/media/contracts!MediaEngine}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
4
|
-
const require_tool = require("../../tool-
|
|
5
|
-
require("../../common-
|
|
6
|
-
const require_tool_call = require("../../tool_call-
|
|
7
|
-
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-DwZ6pzN4.js");
|
|
4
|
+
const require_tool = require("../../tool-Dhjca7rC.js");
|
|
5
|
+
require("../../common-DmDn4Gfl.js");
|
|
6
|
+
const require_tool_call = require("../../tool_call-Cyi0hUUc.js");
|
|
7
|
+
const require_spooled_markdown_artifact = require("../../spooled_markdown_artifact-CD4PrrpV.js");
|
|
8
8
|
require("../../guards.cjs");
|
|
9
|
-
const require_batteries_media_contracts = require("./contracts.cjs");
|
|
10
9
|
const require_exceptions = require("../../exceptions-D79HIKeX.js");
|
|
11
|
-
const require_validate = require("../../validate-
|
|
10
|
+
const require_validate = require("../../validate-BBebWeQ6.js");
|
|
11
|
+
const require_batteries_media_contracts = require("./contracts.cjs");
|
|
12
12
|
let _nhtio_validation = require("@nhtio/validation");
|
|
13
13
|
//#region src/batteries/media/forge.ts
|
|
14
14
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as isError } from "../../tool_registry-
|
|
2
|
-
import { t as Tool } from "../../tool-
|
|
3
|
-
import "../../common-
|
|
4
|
-
import { n as Media } from "../../tool_call-
|
|
5
|
-
import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-
|
|
1
|
+
import { o as isError } from "../../tool_registry-CZ55mIti.mjs";
|
|
2
|
+
import { t as Tool } from "../../tool-CITF20yJ.mjs";
|
|
3
|
+
import "../../common-BQoFv108.mjs";
|
|
4
|
+
import { n as Media } from "../../tool_call-D_k36aI4.mjs";
|
|
5
|
+
import { n as SpooledJsonArtifact } from "../../spooled_markdown_artifact-Da-Xnebh.mjs";
|
|
6
6
|
import "../../guards.mjs";
|
|
7
|
-
import { EMPTY_MIME } from "./contracts.mjs";
|
|
8
7
|
import { t as E_INVALID_MEDIA_PIPELINE_CONFIG } from "../../exceptions-BLTn4Ofs.mjs";
|
|
9
|
-
import { m as toPipe, o as VERB_INDEX, s as foldVerb, t as availableVerbs } from "../../validate-
|
|
8
|
+
import { m as toPipe, o as VERB_INDEX, s as foldVerb, t as availableVerbs } from "../../validate-CmhzDJW2.mjs";
|
|
9
|
+
import { EMPTY_MIME } from "./contracts.mjs";
|
|
10
10
|
import { validator } from "@nhtio/validation";
|
|
11
11
|
//#region src/batteries/media/forge.ts
|
|
12
12
|
/**
|
package/batteries/media/lint.cjs
CHANGED
package/batteries/media/lint.mjs
CHANGED
package/batteries/media.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_registry = require("../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../tool_registry-DwZ6pzN4.js");
|
|
4
4
|
require("../guards.cjs");
|
|
5
|
-
const require_batteries_media_contracts = require("./media/contracts.cjs");
|
|
6
5
|
const require_exceptions = require("../exceptions-D79HIKeX.js");
|
|
7
|
-
const require_validate = require("../validate-
|
|
6
|
+
const require_validate = require("../validate-BBebWeQ6.js");
|
|
7
|
+
const require_batteries_media_contracts = require("./media/contracts.cjs");
|
|
8
8
|
const require_formats = require("../formats-DZVuqZUN.js");
|
|
9
9
|
let _nhtio_validation = require("@nhtio/validation");
|
|
10
10
|
let _nhtio_middleware = require("@nhtio/middleware");
|