mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
f64a815cea
Replace Zod-specific types (z.ZodType, z.infer) with Standard Schema V1 interfaces across the V2 public API surface. This allows users to use any Standard Schema V1 compatible library (Zod 3.24+, Valibot v1+, ArkType v2+) for tool parameters, with zero breaking changes for existing Zod users. - Add schemaToJsonSchema() utility in shared with Standard JSON Schema V1 support and Zod fallback - Update FrontendTool, ToolDefinition, useRenderTool, useComponent, and Angular tool types to accept StandardSchemaV1 - Move zod from dependencies to devDependencies in core and angular - Add runtime tests (40) and type-level tests (38) across all packages verifying Zod, Valibot, and ArkType compatibility
12 lines
263 B
JavaScript
12 lines
263 B
JavaScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "node",
|
|
globals: true,
|
|
include: ["src/**/__tests__/**/*.{test,spec}.ts"],
|
|
reporters: [["default", { summary: false }]],
|
|
silent: true,
|
|
},
|
|
});
|