@vgai/sdk 0.5.44 → 0.5.45

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@vgai/sdk",
3
3
  "author": "Volter AI, Inc.",
4
4
  "license": "Apache-2.0",
5
- "version": "0.5.44",
5
+ "version": "0.5.45",
6
6
  "type": "module",
7
7
  "repository": {
8
8
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@modelcontextprotocol/sdk": "^1.30.0",
34
- "@vgai/engine": "0.5.44",
34
+ "@vgai/engine": "0.5.45",
35
35
  "playwright": "^1.58.2",
36
36
  "zod": "^4.3.6"
37
37
  }
@@ -42,7 +42,6 @@
42
42
 
43
43
  import type { IncomingMessage, Server, ServerResponse } from 'node:http';
44
44
  import { createServer } from 'node:http';
45
- import { z } from 'zod';
46
45
  import { CORE_ERROR_CODES } from '../errors.js';
47
46
  import { operations as defaultRegistry } from '../index.js';
48
47
  import type { ToolOutcome, ToolRegistry, ToolSummary } from '../registry.js';
@@ -80,9 +79,9 @@ export interface HttpRouteDescriptor {
80
79
  errorCodes: string[];
81
80
  }
82
81
 
83
- /** Convert an operation's Zod input schema to JSON Schema — the repo's established `z.toJSONSchema` call (see `scripts/generate-schema.ts`). */
82
+ /** Let the defining Zod version convert its own schema. */
84
83
  export function inputJsonSchema(summary: ToolSummary): unknown {
85
- return z.toJSONSchema(summary.input, { unrepresentable: 'any' });
84
+ return summary.input.toJSONSchema({ unrepresentable: 'any' });
86
85
  }
87
86
 
88
87
  /** Build the `GET <basePath>` manifest from `listOperations()` — routes are derived, never hand-written. */
@@ -37,7 +37,6 @@
37
37
  * byte the code the SDK, CLI, and HTTP projection produce for the same input.
38
38
  */
39
39
 
40
- import { z } from 'zod';
41
40
  import { CORE_ERROR_CODES } from '../errors.js';
42
41
  import { operations as defaultRegistry } from '../index.js';
43
42
  import type { ToolOutcome, ToolRegistry, ToolSummary } from '../registry.js';
@@ -95,7 +94,7 @@ function fullOperationSchema(
95
94
  direction: 'input' | 'output',
96
95
  ): Record<string, unknown> {
97
96
  const operationSchema = objectWireSchema(
98
- z.toJSONSchema(direction === 'input' ? summary.input : summary.result, {
97
+ (direction === 'input' ? summary.input : summary.result).toJSONSchema({
99
98
  unrepresentable: 'any',
100
99
  }),
101
100
  );