@nhtio/adk 1.20260604.0 → 1.20260605.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 +22 -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/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/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/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 +3 -3
- package/batteries/tools/datetime_extended.mjs +3 -3
- package/batteries/tools/datetime_math.cjs +3 -3
- package/batteries/tools/datetime_math.mjs +3 -3
- package/batteries/tools/encoding.cjs +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/index.d.ts +14 -3
- package/batteries/tools/math.cjs +241 -9
- package/batteries/tools/math.cjs.map +1 -1
- package/batteries/tools/math.mjs +241 -9
- package/batteries/tools/math.mjs.map +1 -1
- package/batteries/tools/memory.cjs +6 -6
- package/batteries/tools/memory.mjs +6 -6
- package/batteries/tools/parsing.cjs +4 -4
- package/batteries/tools/parsing.mjs +4 -4
- package/batteries/tools/retrievables.cjs +5 -5
- package/batteries/tools/retrievables.mjs +5 -5
- 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 +3 -3
- package/batteries/tools/time.mjs +3 -3
- package/batteries/tools/unit_conversion.cjs +2 -2
- package/batteries/tools/unit_conversion.mjs +2 -2
- package/{common-D_e5zYsG.js → common-Bfqzwdpd.js} +7 -7
- package/{common-D_e5zYsG.js.map → common-Bfqzwdpd.js.map} +1 -1
- package/{common-lMrnzoyn.mjs → common-Bo5q3gDK.mjs} +7 -7
- package/{common-lMrnzoyn.mjs.map → common-Bo5q3gDK.mjs.map} +1 -1
- package/common.cjs +7 -7
- package/common.mjs +7 -7
- package/{dispatch_runner-CDF3X0nv.mjs → dispatch_runner-DNy8EuK2.mjs} +3 -3
- package/{dispatch_runner-CDF3X0nv.mjs.map → dispatch_runner-DNy8EuK2.mjs.map} +1 -1
- package/{dispatch_runner-CpuyATj1.js → dispatch_runner-D_EIoEwR.js} +3 -3
- package/{dispatch_runner-CpuyATj1.js.map → dispatch_runner-D_EIoEwR.js.map} +1 -1
- package/dispatch_runner.cjs +1 -1
- package/dispatch_runner.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 +12 -12
- package/index.mjs +12 -12
- package/mcp/adk-docs-corpus.json +1 -1
- package/package.json +71 -71
- package/skills/adk-assembly/SKILL.md +2 -2
- package/{spooled_artifact-B8gIIn9h.js → spooled_artifact-Chp6PEr8.js} +3 -3
- package/{spooled_artifact-B8gIIn9h.js.map → spooled_artifact-Chp6PEr8.js.map} +1 -1
- package/{spooled_artifact-CWoKUDEm.mjs → spooled_artifact-xpzZicMR.mjs} +3 -3
- package/{spooled_artifact-CWoKUDEm.mjs.map → spooled_artifact-xpzZicMR.mjs.map} +1 -1
- package/spooled_artifact.cjs +2 -2
- package/spooled_artifact.mjs +2 -2
- package/{spooled_markdown_artifact-CNle4jXN.mjs → spooled_markdown_artifact-CigJMNOl.mjs} +3 -3
- package/{spooled_markdown_artifact-CNle4jXN.mjs.map → spooled_markdown_artifact-CigJMNOl.mjs.map} +1 -1
- package/{spooled_markdown_artifact-DQX0RCdI.js → spooled_markdown_artifact-b72JfMYo.js} +3 -3
- package/{spooled_markdown_artifact-DQX0RCdI.js.map → spooled_markdown_artifact-b72JfMYo.js.map} +1 -1
- package/{thought-B_P8LiB6.mjs → thought-BhoBfz9K.mjs} +3 -3
- package/{thought-B_P8LiB6.mjs.map → thought-BhoBfz9K.mjs.map} +1 -1
- package/{thought-BD6AkkOr.js → thought-pxBGk4lN.js} +3 -3
- package/{thought-BD6AkkOr.js.map → thought-pxBGk4lN.js.map} +1 -1
- package/{tool-CRZSUcdP.mjs → tool-C381-NLO.mjs} +3 -3
- package/{tool-CRZSUcdP.mjs.map → tool-C381-NLO.mjs.map} +1 -1
- package/{tool-CX9vNHAw.js → tool-CxIEutdk.js} +3 -3
- package/{tool-CX9vNHAw.js.map → tool-CxIEutdk.js.map} +1 -1
- package/{tool_call--7ti-frB.js → tool_call-BPPa_KYu.js} +4 -4
- package/{tool_call--7ti-frB.js.map → tool_call-BPPa_KYu.js.map} +1 -1
- package/{tool_call-BUeMuCc6.mjs → tool_call-H02gzSIs.mjs} +4 -4
- package/{tool_call-BUeMuCc6.mjs.map → tool_call-H02gzSIs.mjs.map} +1 -1
- package/{tool_registry-BGHg6KTq.mjs → tool_registry-CbtMt21B.mjs} +142 -142
- package/tool_registry-CbtMt21B.mjs.map +1 -0
- package/{tool_registry-CtCQ4Xoz.js → tool_registry-CoM6fy7F.js} +141 -141
- package/tool_registry-CoM6fy7F.js.map +1 -0
- package/{turn_runner-C02LZHjt.mjs → turn_runner-CJke8_wy.mjs} +5 -5
- package/{turn_runner-C02LZHjt.mjs.map → turn_runner-CJke8_wy.mjs.map} +1 -1
- package/{turn_runner-BJTtAORU.js → turn_runner-DFW9OuBj.js} +5 -5
- package/{turn_runner-BJTtAORU.js.map → turn_runner-DFW9OuBj.js.map} +1 -1
- package/turn_runner.cjs +1 -1
- package/turn_runner.mjs +1 -1
- package/tool_registry-BGHg6KTq.mjs.map +0 -1
- package/tool_registry-CtCQ4Xoz.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@ All notable changes to `@nhtio/adk` are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 2026-06-05
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **The `evaluate_katex` math tool now evaluates calculus numerically.** It previously mangled any
|
|
13
|
+
calculus input — `\int_{0}^{1} x dx` had its bounds stripped by the LaTeX flattener and produced a
|
|
14
|
+
cryptic `Syntax error in part "\int^(1) x dx"`. The tool now detects calculus on the raw LaTeX
|
|
15
|
+
before flattening and computes it numerically with the bundled mathjs (no new dependency):
|
|
16
|
+
definite integrals (`\int_{a}^{b} f \,dx`) via Simpson quadrature, derivatives at a point
|
|
17
|
+
(`\frac{d}{dx} f \big|_{x=a}`) via central finite difference, and limits (`\lim_{x \to a} f`,
|
|
18
|
+
including `a = \pm\infty`) via a two-sided approach. Results are rounded and labelled
|
|
19
|
+
`Result (numeric):` to flag the approximation. Genuinely uncomputable inputs (indefinite integrals,
|
|
20
|
+
derivatives without a point, infinite integration bounds, singular integrands, divergent limits)
|
|
21
|
+
return a specific, guiding error instead of a garbled one. mathjs has no symbolic integration and
|
|
22
|
+
its symbolic `derivative` is intentionally blocklisted here, so these are numeric methods.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- **`evaluate_katex` now maps inverse trig to the correct mathjs names.** `\arcsin`, `\arccos`, and
|
|
27
|
+
`\arctan` were passed through as `arcsin`/`arccos`/`arctan`, which mathjs does not define, so every
|
|
28
|
+
inverse-trig expression errored with `Undefined function`. They now translate to `asin`/`acos`/`atan`.
|
|
29
|
+
|
|
8
30
|
## 2026-06-04
|
|
9
31
|
|
|
10
32
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-CoM6fy7F.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-CbtMt21B.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-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-CoM6fy7F.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-CbtMt21B.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-Ble4zEEl.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-CoM6fy7F.js");
|
|
4
|
+
const require_thought = require("../../../thought-pxBGk4lN.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-Chp6PEr8.js");
|
|
6
|
+
require("../../../common-Bfqzwdpd.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-BPPa_KYu.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
|
|
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 canonicalStringify, c as isObject, o as isError, r as Tokenizable, s as isInstanceOf, t as ToolRegistry } from "../../../tool_registry-CbtMt21B.mjs";
|
|
2
|
+
import { n as Message, t as Thought } from "../../../thought-BhoBfz9K.mjs";
|
|
3
|
+
import { i as ArtifactTool, t as SpooledArtifact } from "../../../spooled_artifact-xpzZicMR.mjs";
|
|
4
|
+
import "../../../common-Bo5q3gDK.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-H02gzSIs.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-Ble4zEEl.js");
|
|
3
|
-
require("../../../common-
|
|
4
|
-
const require_tool_call = require("../../../tool_call
|
|
3
|
+
require("../../../common-Bfqzwdpd.js");
|
|
4
|
+
const require_tool_call = require("../../../tool_call-BPPa_KYu.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
|
|
7
7
|
//#region src/batteries/llm/openai_chat_completions/helpers.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../common-
|
|
2
|
-
import { n as Media } from "../../../tool_call-
|
|
1
|
+
import "../../../common-Bo5q3gDK.mjs";
|
|
2
|
+
import { n as Media } from "../../../tool_call-H02gzSIs.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { E_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
|
|
5
5
|
//#region src/batteries/llm/openai_chat_completions/helpers.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_common = require("../../../common-Bfqzwdpd.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-Bo5q3gDK.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-Ble4zEEl.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-CoM6fy7F.js");
|
|
4
|
+
const require_thought = require("../../../thought-pxBGk4lN.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-Chp6PEr8.js");
|
|
6
|
+
require("../../../common-Bfqzwdpd.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-BPPa_KYu.js");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
10
10
|
const require_batteries_llm_openai_chat_completions_helpers = require("../openai_chat_completions/helpers.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
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 canonicalStringify, c as isObject, o as isError, r as Tokenizable, s as isInstanceOf, t as ToolRegistry } from "../../../tool_registry-CbtMt21B.mjs";
|
|
2
|
+
import { n as Message, t as Thought } from "../../../thought-BhoBfz9K.mjs";
|
|
3
|
+
import { i as ArtifactTool, t as SpooledArtifact } from "../../../spooled_artifact-xpzZicMR.mjs";
|
|
4
|
+
import "../../../common-Bo5q3gDK.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-H02gzSIs.mjs";
|
|
6
6
|
import "../../../guards.mjs";
|
|
7
7
|
import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
|
|
8
8
|
import { defaultBuildChatCompletionsHistory, defaultCreateChatCompletionsToolCallDeltaAccumulator, defaultDescriptionToChatCompletionsJsonSchema, defaultFilterThoughts, defaultRenderChatCompletionsSystemPrompt, defaultRenderChatCompletionsToolCallResult, defaultRenderFirstPartyRetrievables, defaultRenderMemories, defaultRenderRetrievableSafetyDirective, defaultRenderRetrievables, defaultRenderStandingInstructions, defaultRenderThirdPartyPrivateRetrievables, defaultRenderThirdPartyPublicRetrievables, defaultRenderThought, defaultRenderTimelineMessage, defaultRenderTrustedContent, defaultRenderUntrustedContent, defaultToolsToChatCompletionsTools, extractReasoningFields } from "../openai_chat_completions/helpers.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_common = require("../../../common-Bfqzwdpd.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-Bo5q3gDK.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
|
const require_chunk = require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-CoM6fy7F.js");
|
|
4
4
|
require("../../guards.cjs");
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/batteries/storage/flydrive/index.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __commonJSMin } from "../../chunk-kRvK8_k2.mjs";
|
|
2
|
-
import { s as isInstanceOf } from "../../tool_registry-
|
|
2
|
+
import { s as isInstanceOf } from "../../tool_registry-CbtMt21B.mjs";
|
|
3
3
|
import "../../guards.mjs";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/batteries/storage/flydrive/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-CoM6fy7F.js");
|
|
4
4
|
require("../../guards.cjs");
|
|
5
5
|
//#region src/batteries/storage/in_memory/index.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-CoM6fy7F.js");
|
|
4
4
|
require("../../guards.cjs");
|
|
5
5
|
//#region src/batteries/storage/opfs/index.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool = require("../../tool-
|
|
4
|
-
require("../../common-
|
|
3
|
+
const require_tool = require("../../tool-CxIEutdk.js");
|
|
4
|
+
require("../../common-Bfqzwdpd.js");
|
|
5
5
|
let _nhtio_validation = require("@nhtio/validation");
|
|
6
6
|
//#region src/batteries/tools/color/index.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Tool } from "../../tool-
|
|
2
|
-
import "../../common-
|
|
1
|
+
import { t as Tool } from "../../tool-C381-NLO.mjs";
|
|
2
|
+
import "../../common-Bo5q3gDK.mjs";
|
|
3
3
|
import { validator } from "@nhtio/validation";
|
|
4
4
|
//#region src/batteries/tools/color/index.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
4
|
-
const require_tool = require("../../tool-
|
|
5
|
-
require("../../common-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-CoM6fy7F.js");
|
|
4
|
+
const require_tool = require("../../tool-CxIEutdk.js");
|
|
5
|
+
require("../../common-Bfqzwdpd.js");
|
|
6
6
|
require("../../guards.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
8
8
|
//#region src/batteries/tools/comparison/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as isError } from "../../tool_registry-
|
|
2
|
-
import { t as Tool } from "../../tool-
|
|
3
|
-
import "../../common-
|
|
1
|
+
import { o as isError } from "../../tool_registry-CbtMt21B.mjs";
|
|
2
|
+
import { t as Tool } from "../../tool-C381-NLO.mjs";
|
|
3
|
+
import "../../common-Bo5q3gDK.mjs";
|
|
4
4
|
import "../../guards.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|
|
6
6
|
//#region src/batteries/tools/comparison/index.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
4
|
-
const require_tool = require("../../tool-
|
|
5
|
-
require("../../common-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-CoM6fy7F.js");
|
|
4
|
+
const require_tool = require("../../tool-CxIEutdk.js");
|
|
5
|
+
require("../../common-Bfqzwdpd.js");
|
|
6
6
|
require("../../guards.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
8
8
|
//#region src/batteries/tools/data_structure/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as isObject, o as isError } from "../../tool_registry-
|
|
2
|
-
import { t as Tool } from "../../tool-
|
|
3
|
-
import "../../common-
|
|
1
|
+
import { c as isObject, o as isError } from "../../tool_registry-CbtMt21B.mjs";
|
|
2
|
+
import { t as Tool } from "../../tool-C381-NLO.mjs";
|
|
3
|
+
import "../../common-Bo5q3gDK.mjs";
|
|
4
4
|
import "../../guards.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|
|
6
6
|
//#region src/batteries/tools/data_structure/index.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool = require("../../tool-
|
|
4
|
-
require("../../common-
|
|
5
|
-
let _nhtio_validation = require("@nhtio/validation");
|
|
3
|
+
const require_tool = require("../../tool-CxIEutdk.js");
|
|
4
|
+
require("../../common-Bfqzwdpd.js");
|
|
6
5
|
let luxon = require("luxon");
|
|
6
|
+
let _nhtio_validation = require("@nhtio/validation");
|
|
7
7
|
let chrono_node = require("chrono-node");
|
|
8
8
|
chrono_node = require_chunk.__toESM(chrono_node);
|
|
9
9
|
//#region src/batteries/tools/datetime_extended/index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Tool } from "../../tool-
|
|
2
|
-
import "../../common-
|
|
3
|
-
import { validator } from "@nhtio/validation";
|
|
1
|
+
import { t as Tool } from "../../tool-C381-NLO.mjs";
|
|
2
|
+
import "../../common-Bo5q3gDK.mjs";
|
|
4
3
|
import { DateTime, IANAZone } from "luxon";
|
|
4
|
+
import { validator } from "@nhtio/validation";
|
|
5
5
|
import * as chrono from "chrono-node";
|
|
6
6
|
//#region src/batteries/tools/datetime_extended/index.ts
|
|
7
7
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool = require("../../tool-
|
|
4
|
-
require("../../common-
|
|
5
|
-
let _nhtio_validation = require("@nhtio/validation");
|
|
3
|
+
const require_tool = require("../../tool-CxIEutdk.js");
|
|
4
|
+
require("../../common-Bfqzwdpd.js");
|
|
6
5
|
let luxon = require("luxon");
|
|
6
|
+
let _nhtio_validation = require("@nhtio/validation");
|
|
7
7
|
//#region src/batteries/tools/datetime_math/index.ts
|
|
8
8
|
/**
|
|
9
9
|
* Pre-constructed tools for ISO datetime arithmetic, differences, and timezone-aware formatting.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Tool } from "../../tool-
|
|
2
|
-
import "../../common-
|
|
3
|
-
import { validator } from "@nhtio/validation";
|
|
1
|
+
import { t as Tool } from "../../tool-C381-NLO.mjs";
|
|
2
|
+
import "../../common-Bo5q3gDK.mjs";
|
|
4
3
|
import { DateTime, Duration, IANAZone } from "luxon";
|
|
4
|
+
import { validator } from "@nhtio/validation";
|
|
5
5
|
//#region src/batteries/tools/datetime_math/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* Pre-constructed tools for ISO datetime arithmetic, differences, and timezone-aware formatting.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
4
|
-
const require_tool = require("../../tool-
|
|
5
|
-
require("../../common-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-CoM6fy7F.js");
|
|
4
|
+
const require_tool = require("../../tool-CxIEutdk.js");
|
|
5
|
+
require("../../common-Bfqzwdpd.js");
|
|
6
6
|
require("../../guards.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
8
8
|
//#region src/batteries/tools/encoding/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as isError } from "../../tool_registry-
|
|
2
|
-
import { t as Tool } from "../../tool-
|
|
3
|
-
import "../../common-
|
|
1
|
+
import { o as isError } from "../../tool_registry-CbtMt21B.mjs";
|
|
2
|
+
import { t as Tool } from "../../tool-C381-NLO.mjs";
|
|
3
|
+
import "../../common-Bo5q3gDK.mjs";
|
|
4
4
|
import "../../guards.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|
|
6
6
|
//#region src/batteries/tools/encoding/index.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../tool_registry-
|
|
4
|
-
const require_tool = require("../../tool-
|
|
5
|
-
require("../../common-
|
|
3
|
+
const require_tool_registry = require("../../tool_registry-CoM6fy7F.js");
|
|
4
|
+
const require_tool = require("../../tool-CxIEutdk.js");
|
|
5
|
+
require("../../common-Bfqzwdpd.js");
|
|
6
6
|
require("../../guards.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
8
8
|
//#region src/batteries/tools/formatting/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as isError } from "../../tool_registry-
|
|
2
|
-
import { t as Tool } from "../../tool-
|
|
3
|
-
import "../../common-
|
|
1
|
+
import { o as isError } from "../../tool_registry-CbtMt21B.mjs";
|
|
2
|
+
import { t as Tool } from "../../tool-C381-NLO.mjs";
|
|
3
|
+
import "../../common-Bo5q3gDK.mjs";
|
|
4
4
|
import "../../guards.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|
|
6
6
|
//#region src/batteries/tools/formatting/index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool = require("../../tool-
|
|
4
|
-
require("../../common-
|
|
3
|
+
const require_tool = require("../../tool-CxIEutdk.js");
|
|
4
|
+
require("../../common-Bfqzwdpd.js");
|
|
5
5
|
let _nhtio_validation = require("@nhtio/validation");
|
|
6
6
|
//#region src/batteries/tools/geo_basics/index.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Tool } from "../../tool-
|
|
2
|
-
import "../../common-
|
|
1
|
+
import { t as Tool } from "../../tool-C381-NLO.mjs";
|
|
2
|
+
import "../../common-Bo5q3gDK.mjs";
|
|
3
3
|
import { validator } from "@nhtio/validation";
|
|
4
4
|
//#region src/batteries/tools/geo_basics/index.ts
|
|
5
5
|
/**
|
|
@@ -28,9 +28,20 @@ export declare const calculateTool: Tool<import("../../../common").SpooledArtifa
|
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
30
|
* Translates common LaTeX constructs (`\frac{a}{b}`, `\sqrt{...}`, `\cdot`, `\times`, Greek
|
|
31
|
-
* macros like `\pi`, `\left`/`\right` delimiters,
|
|
32
|
-
* mathjs equivalents before evaluation. Both the source
|
|
33
|
-
* are subject to the 1000-character length cap.
|
|
31
|
+
* macros like `\pi`, inverse trig `\arcsin`/`\arccos`/`\arctan`, `\left`/`\right` delimiters,
|
|
32
|
+
* `\text{...}`, subscripts, etc.) into their mathjs equivalents before evaluation. Both the source
|
|
33
|
+
* and the translated mathjs expression are subject to the 1000-character length cap.
|
|
34
|
+
*
|
|
35
|
+
* Also evaluates three calculus constructs **numerically** (mathjs has no symbolic integration, and
|
|
36
|
+
* its symbolic `derivative` is blocklisted here for safety):
|
|
37
|
+
* - Definite integrals — `\int_{a}^{b} f \,dx` via composite Simpson quadrature.
|
|
38
|
+
* - Derivatives at a point — `\frac{d}{dx} f \big|_{x=a}` via central finite difference.
|
|
39
|
+
* - Limits — `\lim_{x \to a} f` (including `a = \pm\infty`) via a two-sided numeric approach.
|
|
40
|
+
*
|
|
41
|
+
* Numeric results are rounded with `math.format(..., { precision: 12 })` and labelled
|
|
42
|
+
* `Result (numeric):` to flag that they are approximations. Constructs that cannot be evaluated
|
|
43
|
+
* numerically (indefinite integrals, derivatives without a point, infinite integration bounds,
|
|
44
|
+
* singular integrands, divergent limits) return a specific, guiding error string.
|
|
34
45
|
*
|
|
35
46
|
* Parse and evaluation errors are returned as error strings rather than thrown.
|
|
36
47
|
*/
|