@warlock.js/ai-tools 5.29.0 → 5.30.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.
Files changed (66) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/cjs/index.cjs +15 -15
  3. package/cjs/index.cjs.map +1 -1
  4. package/esm/contracts/http.type.d.mts +1 -1
  5. package/esm/contracts/http.type.d.mts.map +1 -1
  6. package/esm/contracts/mcp.type.d.mts +1 -1
  7. package/esm/contracts/mcp.type.d.mts.map +1 -1
  8. package/esm/contracts/utility.type.d.mts +1 -1
  9. package/esm/contracts/utility.type.d.mts.map +1 -1
  10. package/esm/contracts/web.type.d.mts +1 -1
  11. package/esm/contracts/web.type.d.mts.map +1 -1
  12. package/esm/errors.d.mts +1 -1
  13. package/esm/errors.d.mts.map +1 -1
  14. package/esm/errors.mjs +1 -1
  15. package/esm/errors.mjs.map +1 -1
  16. package/esm/http/http-request.d.mts +1 -1
  17. package/esm/http/http-request.d.mts.map +1 -1
  18. package/esm/http/http-request.mjs +1 -1
  19. package/esm/http/http-request.mjs.map +1 -1
  20. package/esm/mcp/client.mjs +1 -1
  21. package/esm/mcp/client.mjs.map +1 -1
  22. package/esm/mcp/index.d.mts +1 -1
  23. package/esm/mcp/index.d.mts.map +1 -1
  24. package/esm/mcp/index.mjs +1 -1
  25. package/esm/mcp/index.mjs.map +1 -1
  26. package/esm/mcp/json-schema-to-standard.d.mts +1 -1
  27. package/esm/mcp/json-schema-to-standard.d.mts.map +1 -1
  28. package/esm/mcp/json-schema-to-standard.mjs +1 -1
  29. package/esm/mcp/json-schema-to-standard.mjs.map +1 -1
  30. package/esm/mcp/serve.d.mts +1 -1
  31. package/esm/mcp/serve.d.mts.map +1 -1
  32. package/esm/mcp/serve.mjs +1 -1
  33. package/esm/mcp/serve.mjs.map +1 -1
  34. package/esm/mcp/transport.d.mts +1 -1
  35. package/esm/mcp/transport.d.mts.map +1 -1
  36. package/esm/mcp/transport.mjs +1 -1
  37. package/esm/mcp/transport.mjs.map +1 -1
  38. package/esm/mcp/transport.type.d.mts +1 -1
  39. package/esm/mcp/transport.type.d.mts.map +1 -1
  40. package/esm/register.d.mts +1 -1
  41. package/esm/register.d.mts.map +1 -1
  42. package/esm/register.mjs +1 -1
  43. package/esm/register.mjs.map +1 -1
  44. package/esm/schema.mjs +1 -1
  45. package/esm/schema.mjs.map +1 -1
  46. package/esm/utility/calculator.d.mts +1 -1
  47. package/esm/utility/calculator.d.mts.map +1 -1
  48. package/esm/utility/calculator.mjs +1 -1
  49. package/esm/utility/calculator.mjs.map +1 -1
  50. package/esm/utility/date-time.d.mts +1 -1
  51. package/esm/utility/date-time.d.mts.map +1 -1
  52. package/esm/utility/date-time.mjs +1 -1
  53. package/esm/utility/date-time.mjs.map +1 -1
  54. package/esm/utility/schema.mjs +1 -1
  55. package/esm/utility/schema.mjs.map +1 -1
  56. package/esm/web/fetch-url.d.mts +1 -1
  57. package/esm/web/fetch-url.d.mts.map +1 -1
  58. package/esm/web/fetch-url.mjs +1 -1
  59. package/esm/web/fetch-url.mjs.map +1 -1
  60. package/esm/web/schema.mjs +1 -1
  61. package/esm/web/schema.mjs.map +1 -1
  62. package/esm/web/web-search.d.mts +1 -1
  63. package/esm/web/web-search.d.mts.map +1 -1
  64. package/esm/web/web-search.mjs +1 -1
  65. package/esm/web/web-search.mjs.map +1 -1
  66. package/package.json +4 -3
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to `@warlock.js/ai-tools` are documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
6
6
 
7
+ ## 5.30.0 - 2026-10-16
8
+
9
+ ### Changed
10
+
11
+ - Lockstep release; package APIs are unchanged.
12
+
7
13
  ## 5.29.0 - 2026-10-01
8
14
 
9
15
  ### Changed
package/cjs/index.cjs CHANGED
@@ -3,7 +3,7 @@ let _warlock_js_ai = require("@warlock.js/ai");
3
3
  let node_child_process = require("node:child_process");
4
4
  let node_readline = require("node:readline");
5
5
 
6
- //#region ../ai-tools/src/errors.ts
6
+ //#region ../../packages/ai-tools/src/errors.ts
7
7
  /**
8
8
  * The `calculator` tool could not evaluate an expression — it was not
9
9
  * valid arithmetic, divided by zero, or overflowed to a non-finite
@@ -135,7 +135,7 @@ var HttpPolicyError = class extends _warlock_js_ai.AIError {
135
135
  };
136
136
 
137
137
  //#endregion
138
- //#region ../ai-tools/src/schema.ts
138
+ //#region ../../packages/ai-tools/src/schema.ts
139
139
  /**
140
140
  * Tiny, dependency-free [Standard Schema](https://standardschema.dev)
141
141
  * builders for the tools' input validation. The package pins only
@@ -260,7 +260,7 @@ function objectSchema$2(shape) {
260
260
  }
261
261
 
262
262
  //#endregion
263
- //#region ../ai-tools/src/http/http-request.ts
263
+ //#region ../../packages/ai-tools/src/http/http-request.ts
264
264
  /** Default tool name exposed to the LLM. */
265
265
  const DEFAULT_NAME$4 = "http_request";
266
266
  /** Default per-request wall-clock timeout, in milliseconds. */
@@ -487,7 +487,7 @@ function httpRequestTool(options = {}) {
487
487
  }
488
488
 
489
489
  //#endregion
490
- //#region ../ai-tools/src/mcp/json-schema-to-standard.ts
490
+ //#region ../../packages/ai-tools/src/mcp/json-schema-to-standard.ts
491
491
  /**
492
492
  * The inverse of `@warlock.js/ai`'s `extractJsonSchema` (which goes
493
493
  * Standard Schema → JSON Schema). Here we wrap a raw JSON Schema as a
@@ -632,7 +632,7 @@ function pathFromInstancePath(instancePath) {
632
632
  }
633
633
 
634
634
  //#endregion
635
- //#region ../ai-tools/src/mcp/transport.ts
635
+ //#region ../../packages/ai-tools/src/mcp/transport.ts
636
636
  /** Default per-request wait before a transport call is abandoned. */
637
637
  const DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
638
638
  /** The JSON-RPC version literal every outbound message carries. */
@@ -1042,7 +1042,7 @@ function withIdAllocator(client) {
1042
1042
  }
1043
1043
 
1044
1044
  //#endregion
1045
- //#region ../ai-tools/src/mcp/client.ts
1045
+ //#region ../../packages/ai-tools/src/mcp/client.ts
1046
1046
  /** Default per-call timeout for `tools/call`. */
1047
1047
  const DEFAULT_CALL_TIMEOUT_MS = 3e4;
1048
1048
  /** The MCP protocol version this client advertises in `initialize`. */
@@ -1234,7 +1234,7 @@ function mcp$1(server, options) {
1234
1234
  }
1235
1235
 
1236
1236
  //#endregion
1237
- //#region ../ai-tools/src/mcp/serve.ts
1237
+ //#region ../../packages/ai-tools/src/mcp/serve.ts
1238
1238
  /** JSON-RPC version literal every outbound message carries. */
1239
1239
  const JSONRPC_VERSION = "2.0";
1240
1240
  /** Default JSON-Schema dialect emitted for each tool's `inputSchema`. */
@@ -1492,7 +1492,7 @@ function serve(source, options) {
1492
1492
  }
1493
1493
 
1494
1494
  //#endregion
1495
- //#region ../ai-tools/src/mcp/index.ts
1495
+ //#region ../../packages/ai-tools/src/mcp/index.ts
1496
1496
  /**
1497
1497
  * The `ai.mcp` factory value: the client factory with `.serve` attached.
1498
1498
  * `Object.assign` keeps `mcp` callable (Direction A) while widening it with
@@ -1504,7 +1504,7 @@ function serve(source, options) {
1504
1504
  const mcp = Object.assign((server, options) => mcp$1(server, options), { serve });
1505
1505
 
1506
1506
  //#endregion
1507
- //#region ../ai-tools/src/utility/schema.ts
1507
+ //#region ../../packages/ai-tools/src/utility/schema.ts
1508
1508
  /**
1509
1509
  * Tiny, dependency-free [Standard Schema](https://standardschema.dev)
1510
1510
  * builders for the utility tools' input validation. This package pins
@@ -1616,7 +1616,7 @@ function objectSchema$1(shape) {
1616
1616
  }
1617
1617
 
1618
1618
  //#endregion
1619
- //#region ../ai-tools/src/utility/calculator.ts
1619
+ //#region ../../packages/ai-tools/src/utility/calculator.ts
1620
1620
  /** Default tool name exposed to the LLM. */
1621
1621
  const DEFAULT_NAME$3 = "calculator";
1622
1622
  /** Input schema for the `calculator` tool: a single `expression` string. */
@@ -1882,7 +1882,7 @@ function calculatorTool(options) {
1882
1882
  }
1883
1883
 
1884
1884
  //#endregion
1885
- //#region ../ai-tools/src/utility/date-time.ts
1885
+ //#region ../../packages/ai-tools/src/utility/date-time.ts
1886
1886
  /** Default tool name exposed to the LLM. */
1887
1887
  const DEFAULT_NAME$2 = "date_time";
1888
1888
  /** Input schema for the `date_time` tool. */
@@ -2069,7 +2069,7 @@ function dateTimeTool(options, deps) {
2069
2069
  }
2070
2070
 
2071
2071
  //#endregion
2072
- //#region ../ai-tools/src/web/schema.ts
2072
+ //#region ../../packages/ai-tools/src/web/schema.ts
2073
2073
  /**
2074
2074
  * Tiny, dependency-free [Standard Schema](https://standardschema.dev)
2075
2075
  * builders for the web tools' input validation. The package pins only
@@ -2153,7 +2153,7 @@ function objectSchema(shape) {
2153
2153
  }
2154
2154
 
2155
2155
  //#endregion
2156
- //#region ../ai-tools/src/web/fetch-url.ts
2156
+ //#region ../../packages/ai-tools/src/web/fetch-url.ts
2157
2157
  /** Default tool name exposed to the LLM. */
2158
2158
  const DEFAULT_NAME$1 = "fetch_url";
2159
2159
  /** Default hard cap on response bytes read before truncation. */
@@ -2393,7 +2393,7 @@ function fetchUrlTool(options) {
2393
2393
  }
2394
2394
 
2395
2395
  //#endregion
2396
- //#region ../ai-tools/src/web/web-search.ts
2396
+ //#region ../../packages/ai-tools/src/web/web-search.ts
2397
2397
  /** Default tool name exposed to the LLM. */
2398
2398
  const DEFAULT_NAME = "web_search";
2399
2399
  /** Default per-call result cap when the constructor does not set one. */
@@ -2554,7 +2554,7 @@ function webSearchTool(options) {
2554
2554
  }
2555
2555
 
2556
2556
  //#endregion
2557
- //#region ../ai-tools/src/register.ts
2557
+ //#region ../../packages/ai-tools/src/register.ts
2558
2558
  _warlock_js_ai.ai.tools = {
2559
2559
  webSearch: webSearchTool,
2560
2560
  fetchUrl: fetchUrlTool,