@iqai/adk 0.1.15 → 0.1.17

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @iqai/adk
2
2
 
3
+ ## 0.1.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 12b0f37: Resolved a critical performance issue in `createTool` that could cause the TypeScript Language Server to crash. This change is non-breaking.
8
+
9
+ ## 0.1.16
10
+
11
+ ### Patch Changes
12
+
13
+ - 335fa8e: Updates createTool to use zod v3 instead of v4
14
+
3
15
  ## 0.1.15
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Part, Content, Blob, SpeechConfig, AudioTranscriptionConfig, RealtimeInputConfig, ProactivityConfig, FunctionDeclaration, GroundingMetadata, GenerateContentResponseUsageMetadata, GenerateContentConfig, Schema, LiveConnectConfig, GoogleGenAI, FunctionCall } from '@google/genai';
2
2
  export { Blob, Content, FunctionDeclaration, Schema as JSONSchema } from '@google/genai';
3
3
  import { LanguageModel } from 'ai';
4
- import * as z from 'zod/v4';
4
+ import * as z from 'zod';
5
+ import { z as z$1 } from 'zod';
5
6
  import { Client } from '@modelcontextprotocol/sdk/client/index.js';
6
7
  import { CreateMessageRequestSchema, CreateMessageResultSchema, Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import { z as z$1 } from 'zod';
8
8
  import { Kysely, Generated } from 'kysely';
9
9
  import { StorageOptions } from '@google-cloud/storage';
10
10
  import { Tracer } from '@opentelemetry/api';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Part, Content, Blob, SpeechConfig, AudioTranscriptionConfig, RealtimeInputConfig, ProactivityConfig, FunctionDeclaration, GroundingMetadata, GenerateContentResponseUsageMetadata, GenerateContentConfig, Schema, LiveConnectConfig, GoogleGenAI, FunctionCall } from '@google/genai';
2
2
  export { Blob, Content, FunctionDeclaration, Schema as JSONSchema } from '@google/genai';
3
3
  import { LanguageModel } from 'ai';
4
- import * as z from 'zod/v4';
4
+ import * as z from 'zod';
5
+ import { z as z$1 } from 'zod';
5
6
  import { Client } from '@modelcontextprotocol/sdk/client/index.js';
6
7
  import { CreateMessageRequestSchema, CreateMessageResultSchema, Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import { z as z$1 } from 'zod';
8
8
  import { Kysely, Generated } from 'kysely';
9
9
  import { StorageOptions } from '@google-cloud/storage';
10
10
  import { Tracer } from '@opentelemetry/api';
package/dist/index.js CHANGED
@@ -3855,7 +3855,8 @@ init_base_tool();
3855
3855
 
3856
3856
  // src/tools/base/create-tool.ts
3857
3857
  init_base_tool();
3858
- var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
3858
+ var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
3859
+ var _zodtojsonschema = require('zod-to-json-schema');
3859
3860
  var CreatedTool = class extends BaseTool {
3860
3861
 
3861
3862
 
@@ -3885,7 +3886,7 @@ var CreatedTool = class extends BaseTool {
3885
3886
  } catch (error) {
3886
3887
  if (error instanceof z.ZodError) {
3887
3888
  return {
3888
- error: `Invalid arguments for ${this.name}: ${z.prettifyError(error)}`
3889
+ error: `Invalid arguments for ${this.name}: ${error.message}`
3889
3890
  };
3890
3891
  }
3891
3892
  return {
@@ -3903,7 +3904,11 @@ var CreatedTool = class extends BaseTool {
3903
3904
  * Builds the function declaration from the Zod schema
3904
3905
  */
3905
3906
  buildDeclaration() {
3906
- const parameters = z.toJSONSchema(this.schema);
3907
+ const rawParameters = _zodtojsonschema.zodToJsonSchema.call(void 0, this.schema, {
3908
+ target: "jsonSchema7",
3909
+ $refStrategy: "none"
3910
+ });
3911
+ const { $schema, ...parameters } = rawParameters;
3907
3912
  return {
3908
3913
  name: this.name,
3909
3914
  description: this.description,
package/dist/index.mjs CHANGED
@@ -3855,7 +3855,8 @@ init_base_tool();
3855
3855
 
3856
3856
  // src/tools/base/create-tool.ts
3857
3857
  init_base_tool();
3858
- import * as z from "zod/v4";
3858
+ import * as z from "zod";
3859
+ import { zodToJsonSchema } from "zod-to-json-schema";
3859
3860
  var CreatedTool = class extends BaseTool {
3860
3861
  func;
3861
3862
  schema;
@@ -3885,7 +3886,7 @@ var CreatedTool = class extends BaseTool {
3885
3886
  } catch (error) {
3886
3887
  if (error instanceof z.ZodError) {
3887
3888
  return {
3888
- error: `Invalid arguments for ${this.name}: ${z.prettifyError(error)}`
3889
+ error: `Invalid arguments for ${this.name}: ${error.message}`
3889
3890
  };
3890
3891
  }
3891
3892
  return {
@@ -3903,7 +3904,11 @@ var CreatedTool = class extends BaseTool {
3903
3904
  * Builds the function declaration from the Zod schema
3904
3905
  */
3905
3906
  buildDeclaration() {
3906
- const parameters = z.toJSONSchema(this.schema);
3907
+ const rawParameters = zodToJsonSchema(this.schema, {
3908
+ target: "jsonSchema7",
3909
+ $refStrategy: "none"
3910
+ });
3911
+ const { $schema, ...parameters } = rawParameters;
3907
3912
  return {
3908
3913
  name: this.name,
3909
3914
  description: this.description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iqai/adk",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Agent Development Kit for TypeScript with multi-provider LLM support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -44,7 +44,8 @@
44
44
  "kysely": "^0.28.2",
45
45
  "openai": "^4.93.0",
46
46
  "uuid": "^11.1.0",
47
- "zod": "^3.25.67"
47
+ "zod": "^3.25.67",
48
+ "zod-to-json-schema": "^3.24.6"
48
49
  },
49
50
  "peerDependencies": {
50
51
  "better-sqlite3": "^11.10.0",