Skip to content

The Open Standard for Generative UI

Add zod v3 and zod v4 compatibility in lang-core/library (#450)

Aditya-thesysa64d30bc0c49
diff --git a/docs/content/docs/openui-lang/defining-components.mdx b/docs/content/docs/openui-lang/defining-components.mdx
index 6ad862d65..27a77db6b 100644
--- a/docs/content/docs/openui-lang/defining-components.mdx
+++ b/docs/content/docs/openui-lang/defining-components.mdx
@@ -9,7 +9,7 @@ Use `defineComponent(...)` to register each component and `createLibrary(...)` t
```tsx
import { defineComponent, createLibrary } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
const StatCard = defineComponent({
name: "StatCard",
@@ -32,6 +32,8 @@ export const myLibrary = createLibrary({
});
```
+If you want one import path that works with both `[email protected]` and `zod@4`, use `import { z } from "zod/v4"` for OpenUI component schemas.
+
## Required fields in `defineComponent`
1. `name`: component call name in OpenUI Lang.
@@ -43,7 +45,7 @@ export const myLibrary = createLibrary({
```tsx
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
const Item = defineComponent({
name: "Item",
@@ -68,7 +70,7 @@ To define container components that accepts multiple child components, you can u
```tsx
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
const TextBlock = defineComponent({
/* ... */
@@ -84,6 +86,30 @@ const TabItemSchema = z.object({
});
```
+## Naming reusable helper schemas
+
+Use `tagSchemaId(...)` when a prop uses a standalone helper schema and you want a readable name in generated prompt signatures instead of `any`.
+
+```tsx
+import { defineComponent, tagSchemaId } from "@openuidev/react-lang";
+import { z } from "zod/v4";
+
+const ActionExpression = z.any();
+tagSchemaId(ActionExpression, "ActionExpression");
+
+const Button = defineComponent({
+ name: "Button",
+ description: "Triggers an action",
+ props: z.object({
+ label: z.string(),
+ action: ActionExpression.optional(),
+ }),
+ component: ({ props }) => <button>{props.label}</button>,
+});
+```
+
+Without `tagSchemaId(...)`, the generated prompt would fall back to `action?: any`. Components already get their names automatically through `defineComponent(...)`, so this is only needed for non-component helper schemas.
+
## The `root` field
The `root` option in `createLibrary` specifies which component the LLM must use as the entry point. The generated system prompt instructs the model to always start with `root = <RootName>(...)`.
diff --git a/docs/content/docs/openui-lang/troubleshooting.mdx b/docs/content/docs/openui-lang/troubleshooting.mdx
index a565c60d1..40fe8370d 100644
--- a/docs/content/docs/openui-lang/troubleshooting.mdx
+++ b/docs/content/docs/openui-lang/troubleshooting.mdx
@@ -3,6 +3,29 @@ title: Troubleshooting
description: Common issues and fixes when working with OpenUI Lang and the Renderer.
---
+## Library Definition Issues
+
+### Why do I get "Component was defined with a Zod 3 schema"?
+
+If you're on `[email protected]`, import component schemas from `zod/v4`, not `zod`. OpenUI component definitions expect the Zod 4 schema objects, and the `[email protected]` package ships those under the `zod/v4` subpath.
+
+```ts
+import { z } from "zod/v4";
+```
+
+If you want one import path that works across `[email protected]` and `zod@4`, prefer `zod/v4`.
+
+### Why does a prop show up as `any` in the generated prompt?
+
+`defineComponent(...)` automatically names component schemas, but standalone helper schemas do not get a friendly prompt name by default. Tag those helper schemas explicitly.
+
+```ts
+const ActionExpression = z.any();
+tagSchemaId(ActionExpression, "ActionExpression");
+```
+
+This only affects prompt signatures. Validation behavior stays the same.
+
## LLM Output Issues
### Why are extra arguments being dropped?
diff --git a/packages/lang-core/package.json b/packages/lang-core/package.json
index ea0b8b2f2..85a9ae702 100644
--- a/packages/lang-core/package.json
+++ b/packages/lang-core/package.json
@@ -1,6 +1,6 @@
{
"name": "@openuidev/lang-core",
- "version": "0.2.1",
+ "version": "0.2.2",
"description": "Framework-agnostic core for OpenUI Lang: parser, prompt generation, validation, and type definitions",
"license": "MIT",
"type": "module",
@@ -41,7 +41,7 @@
},
"peerDependencies": {
"@modelcontextprotocol/sdk": ">=1.0.0",
- "zod": "^4.0.0"
+ "zod": "^3.25.0 || ^4.0.0"
},
"peerDependenciesMeta": {
"@modelcontextprotocol/sdk": {
diff --git a/packages/lang-core/src/__tests__/library.test.ts b/packages/lang-core/src/__tests__/library.test.ts
new file mode 100644
index 000000000..16e0b7e58
--- /dev/null
+++ b/packages/lang-core/src/__tests__/library.test.ts
@@ -0,0 +1,200 @@
+import { describe, expect, it } from "vitest";
+import { z } from "zod/v4";
+import { createLibrary, defineComponent, tagSchemaId } from "../library";
+
+const Dummy = null as any;
+
+// ─── tagSchemaId + registry integration ─────────────────────────────────────
+
+describe("tagSchemaId", () => {
+ it("tagged schema appears in prompt signatures", () => {
+ const actionSchema = z.any();
+ tagSchemaId(actionSchema, "ActionExpression");
+
+ const Button = defineComponent({
+ name: "Button",
+ props: z.object({ label: z.string(), action: actionSchema.optional() }),
+ description: "A button",
+ component: Dummy,
+ });
+
+ const lib = createLibrary({ components: [Button], root: "Button" });
+ const prompt = lib.prompt();
+
+ expect(prompt).toContain("action?: ActionExpression");
+ });
+
+ it("tagged schema inside array is discovered", () => {
+ const itemSchema = z.object({ text: z.string() });
+ tagSchemaId(itemSchema, "ListItem");
+
+ const List = defineComponent({
+ name: "List",
+ props: z.object({ items: z.array(itemSchema) }),
+ description: "A list",
+ component: Dummy,
+ });
+
+ const lib = createLibrary({ components: [List], root: "List" });
+ const prompt = lib.prompt();
+
+ expect(prompt).toContain("items: ListItem[]");
+ });
+
+ it("tagged schema inside union is discovered", () => {
+ const textSchema = z.object({ text: z.string() });
+ tagSchemaId(textSchema, "TextNode");
+
+ const imgSchema = z.object({ src: z.string() });
+ tagSchemaId(imgSchema, "ImageNode");
+
+ const Card = defineComponent({
+ name: "Card",
+ props: z.object({ child: z.union([textSchema, imgSchema]) }),
+ description: "A card",
+ component: Dummy,
+ });
+
+ const lib = createLibrary({ components: [Card], root: "Card" });
+ const prompt = lib.prompt();
+
+ expect(prompt).toContain("TextNode | ImageNode");
+ });
+
+ it("tagged schema inside optional wrapper is discovered", () => {
+ const actionSchema = z.any();
+ tagSchemaId(actionSchema, "MyAction");
+
+ const Btn = defineComponent({
+ name: "Btn",
+ props: z.object({ action: actionSchema.optional() }),
+ description: "btn",
+ component: Dummy,
+ });
+
+ const lib = createLibrary({ components: [Btn], root: "Btn" });
+ const prompt = lib.prompt();
+
+ expect(prompt).toContain("action?: MyAction");
+ });
+});
+
+// ─── per-library registry isolation ─────────────────────────────────────────
+
+describe("per-library registry", () => {
+ it("two libraries with same component name do not collide", () => {
+ const ButtonA = defineComponent({
+ name: "Button",
+ props: z.object({ label: z.string() }),
+ description: "Button A",
+ component: Dummy,
+ });
+
+ const ButtonB = defineComponent({
+ name: "Button",
+ props: z.object({ text: z.string() }),
+ description: "Button B",
+ component: Dummy,
+ });
+
+ // Both should create without throwing
+ const libA = createLibrary({ components: [ButtonA], root: "Button" });
+ const libB = createLibrary({ components: [ButtonB], root: "Button" });
+
+ expect(libA.prompt()).toContain("label: string");
+ expect(libB.prompt()).toContain("text: string");
+ });
+
+ it("toJSONSchema produces $defs with $ref pointers", () => {
+ const Text = defineComponent({
+ name: "TextContent",
+ props: z.object({ text: z.string() }),
+ description: "text",
+ component: Dummy,
+ });
+
+ const Card = defineComponent({
+ name: "Card",
+ props: z.object({
+ title: z.string(),
+ children: z.array(z.union([Text.ref])),
+ }),
+ description: "card",
+ component: Dummy,
+ });
+
+ const lib = createLibrary({ components: [Text, Card], root: "Card" });
+ const schema = lib.toJSONSchema() as Record<string, any>;
+
+ // $defs contain all component schemas
+ expect(schema.$defs).toBeDefined();
+ expect(schema.$defs["TextContent"].properties?.text).toBeDefined();
+ expect(schema.$defs["Card"].properties?.title).toBeDefined();
+
+ // $refs inside $defs use #/$defs/ format
+ const childrenItems = schema.$defs["Card"].properties?.children?.items;
+ const refs = JSON.stringify(childrenItems);
+ expect(refs).toContain("#/$defs/TextContent");
+ });
+});
+
+// ─── getSchemaId WeakMap fallback ────────────────────────────────────────────
+
+describe("getSchemaId fallback", () => {
+ it("component .ref resolves name even when not in this library", () => {
+ // TextContent is defined but NOT passed to createLibrary
+ const TextContent = defineComponent({
+ name: "TextContent",
+ props: z.object({ text: z.string() }),
+ description: "text",
+ component: Dummy,
+ });
+
+ // Card references TextContent.ref in its children
+ const Card = defineComponent({
+ name: "Card",
+ props: z.object({ children: z.array(z.union([TextContent.ref])) }),
+ description: "card",
+ component: Dummy,
+ });
+
+ // Only Card is in the library — TextContent is NOT
+ const lib = createLibrary({ components: [Card], root: "Card" });
+ const prompt = lib.prompt();
+
+ // Should still show "TextContent" from the WeakMap fallback, not "any"
+ expect(prompt).toContain("TextContent");
+ expect(prompt).not.toContain("children: any");
+ });
+});
+
+// ─── assertV4Schema ─────────────────────────────────────────────────────────
+
+describe("assertV4Schema", () => {
+ it("throws for zod v3 schemas with a helpful message", () => {
+ // Simulate a v3 schema shape: has _def but no _zod
+ const fakeV3Schema = { _def: { typeName: "ZodObject" } };
+
+ expect(() =>
+ defineComponent({
+ name: "Bad",
+ props: fakeV3Schema as any,
+ description: "test",
+ component: Dummy,
+ }),
+ ).toThrow(/Zod 3 schema/);
+ });
+
+ it("accepts valid v4 schemas", () => {
+ const schema = z.object({ name: z.string() });
+
+ expect(() =>
+ defineComponent({
+ name: "Good",
+ props: schema,
+ description: "test",
+ component: Dummy,
+ }),
+ ).not.toThrow();
+ });
+});
diff --git a/packages/lang-core/src/index.ts b/packages/lang-core/src/index.ts
index 7e8018432..561d6b3e1 100644
--- a/packages/lang-core/src/index.ts
+++ b/packages/lang-core/src/index.ts
@@ -1,5 +1,5 @@
// ── Library (framework-generic) ──
-export { createLibrary, defineComponent } from "./library";
+export { createLibrary, defineComponent, tagSchemaId } from "./library";
export type {
ComponentGroup,
ComponentRenderProps,
diff --git a/packages/lang-core/src/library.ts b/packages/lang-core/src/library.ts
index 17aacf468..b4cf43525 100644
--- a/packages/lang-core/src/library.ts
+++ b/packages/lang-core/src/library.ts
@@ -1,4 +1,5 @@
-import { z } from "zod";
+import { object as zObject } from "zod/v4";
+import * as z from "zod/v4/core";
import type { ComponentPromptSpec, PromptSpec, ToolSpec } from "./parser/prompt";
import { generatePrompt } from "./parser/prompt";
import type { LibraryJSONSchema } from "./parser/types";
@@ -6,6 +7,35 @@ import { isReactiveSchema } from "./reactive";
export type { LibraryJSONSchema } from "./parser/types";
+// ─── Schema ID tagging ─────────────────────────────────────────────────────
+// WeakMap-based naming for schemas. defineComponent tags component schemas
+// automatically. tagSchemaId is exported for non-component schemas
+// (e.g. ActionExpression) that also need friendly names in prompts.
+
+const schemaIdTags = new WeakMap<object, string>();
+
+/**
+ * Tag a schema with an ID for prompt signatures.
+ * Use for non-component schemas that need friendly type names (e.g. ActionExpression).
+ * This affects prompt output only, not JSON Schema $defs.
+ */
+export function tagSchemaId(schema: object, id: string): void {
+ schemaIdTags.set(schema, id);
+}
+
+// ─── Zod v3 detection ──────────────────────────────────────────────────────
+
+function assertV4Schema(schema: unknown, componentName: string): void {
+ if (schema != null && typeof schema === "object" && "_def" in schema && !("_zod" in schema)) {
+ throw new Error(
+ `[OpenUI] Component "${componentName}" was defined with a Zod 3 schema. ` +
+ `OpenUI requires Zod 4 schemas. ` +
+ `If you're on [email protected]+, import from "zod/v4" instead of "zod". ` +
+ `See: https://zod.dev/v4/versioning`,
+ );
+ }
+}
+
// ─── Sub-component type ──────────────────────────────────────────────────────
/**
@@ -41,29 +71,33 @@ export interface ComponentRenderProps<P = Record<string, unknown>, RenderNode =
* inspects this value — it is stored opaquely and consumed
* by the framework adapter's Renderer.
*/
-export interface DefinedComponent<T extends z.ZodObject<any> = z.ZodObject<any>, C = unknown> {
+export interface DefinedComponent<T extends z.$ZodObject = z.$ZodObject, C = unknown> {
name: string;
props: T;
description: string;
component: C;
/** Use in parent schemas: `z.array(ChildComponent.ref)` */
- ref: z.ZodType<SubComponentOf<z.infer<T>>>;
+ ref: z.$ZodType<SubComponentOf<T extends z.$ZodType<infer O> ? O : any>>;
}
/**
* Define a component with name, schema, description, and renderer.
- * Registers the Zod schema globally and returns a `.ref` for parent schemas.
+ * Tags the schema with the component name so it resolves in prompt
+ * signatures even if the component isn't in every library.
*/
-export function defineComponent<T extends z.ZodObject<any>, C>(config: {
+export function defineComponent<T extends z.$ZodObject, C>(config: {
name: string;
props: T;
description: string;
component: C;
}): DefinedComponent<T, C> {
- (config.props as any).register(z.globalRegistry, { id: config.name });
+ assertV4Schema(config.props, config.name);
+ schemaIdTags.set(config.props, config.name);
return {
...config,
- ref: config.props as unknown as z.ZodType<SubComponentOf<z.infer<T>>>,
+ ref: config.props as unknown as z.$ZodType<
+ SubComponentOf<T extends z.$ZodType<infer O> ? O : any>
+ >,
};
}
@@ -143,13 +177,21 @@ function getEnumValues(schema: unknown): string[] | undefined {
return undefined;
}
-function getSchemaId(schema: unknown): string | undefined {
+type SchemaRegistry = ReturnType<typeof z.registry<{ id: string }>>;
+
+function getSchemaId(schema: unknown, reg: SchemaRegistry): string | undefined {
+ // Check per-library registry first
try {
- const meta = z.globalRegistry.get(schema as z.ZodType);
- return meta?.id;
+ const meta = reg.get(schema as z.$ZodType) as { id?: string } | undefined;
+ if (meta?.id) return meta.id;
} catch {
- return undefined;
+ // not registered — fall through
}
+ // Fallback: WeakMap tags from defineComponent / tagSchemaId
+ if (typeof schema === "object" && schema !== null) {
+ return schemaIdTags.get(schema);
+ }
+ return undefined;
}
function getUnionOptions(schema: unknown): unknown[] | undefined {
@@ -170,22 +212,22 @@ function getObjectShape(schema: unknown): Record<string, unknown> | undefined {
* Returns a human-readable type string for the schema.
* If the schema is marked reactive(), prefixes with "$binding<...>".
*/
-function resolveTypeAnnotation(schema: unknown): string | undefined {
+function resolveTypeAnnotation(schema: unknown, reg: SchemaRegistry): string | undefined {
const isReactive = isReactiveSchema(schema);
const inner = unwrap(schema);
- const baseType = resolveBaseType(inner);
+ const baseType = resolveBaseType(inner, reg);
if (!baseType) return undefined;
return isReactive ? `$binding<${baseType}>` : baseType;
}
-function resolveBaseType(inner: unknown): string | undefined {
- const directId = getSchemaId(inner);
+function resolveBaseType(inner: unknown, reg: SchemaRegistry): string | undefined {
+ const directId = getSchemaId(inner, reg);
if (directId) return directId;
const unionOpts = getUnionOptions(inner);
if (unionOpts) {
- const resolved = unionOpts.map((o) => resolveTypeAnnotation(o));
+ const resolved = unionOpts.map((o) => resolveTypeAnnotation(o, reg));
const names = resolved.filter(Boolean) as string[];
if (names.length > 0) return names.join(" | ");
}
@@ -193,7 +235,7 @@ function resolveBaseType(inner: unknown): string | undefined {
if (isArrayType(inner)) {
const arrayInner = getArrayInnerType(inner);
if (!arrayInner) return undefined;
- const innerType = resolveTypeAnnotation(arrayInner);
+ const innerType = resolveTypeAnnotation(arrayInner, reg);
if (innerType) {
const isUnion = getUnionOptions(unwrap(arrayInner)) !== undefined;
return isUnion ? `(${innerType})[]` : `${innerType}[]`;
@@ -209,8 +251,8 @@ function resolveBaseType(inner: unknown): string | undefined {
if (zodType === "record") {
const def = getZodDef(inner);
- const keyType = resolveTypeAnnotation(def?.keyType) ?? "string";
- const valueType = resolveTypeAnnotation(def?.valueType) ?? "any";
+ const keyType = resolveTypeAnnotation(def?.keyType, reg) ?? "string";
+ const valueType = resolveTypeAnnotation(def?.valueType, reg) ?? "any";
return `Record<${keyType}, ${valueType}>`;
}
@@ -229,7 +271,7 @@ function resolveBaseType(inner: unknown): string | undefined {
if (shape) {
const fields = Object.entries(shape).map(([name, fieldSchema]) => {
const opt = isOptionalType(fieldSchema) ? "?" : "";
- const fieldType = resolveTypeAnnotation(fieldSchema as z.ZodType);
+ const fieldType = resolveTypeAnnotation(fieldSchema as z.$ZodType, reg);
return fieldType ? `${name}${opt}: ${fieldType}` : `${name}${opt}`;
});
return `{${fields.join(", ")}}`;
@@ -249,12 +291,12 @@ interface FieldInfo {
typeAnnotation?: string;
}
-function analyzeFields(shape: Record<string, z.ZodType>): FieldInfo[] {
+function analyzeFields(shape: Record<string, z.$ZodType>, reg: SchemaRegistry): FieldInfo[] {
return Object.entries(shape).map(([name, schema]) => ({
name,
isOptional: isOptionalType(schema),
isArray: isArrayType(schema),
- typeAnnotation: resolveTypeAnnotation(schema),
+ typeAnnotation: resolveTypeAnnotation(schema, reg),
}));
}
@@ -273,10 +315,11 @@ function buildSignature(componentName: string, fields: FieldInfo[]): string {
function buildComponentSpecs(
components: Record<string, DefinedComponent<any, any>>,
+ reg: SchemaRegistry,
): Record<string, ComponentPromptSpec> {
const specs: Record<string, ComponentPromptSpec> = {};
for (const [name, def] of Object.entries(components)) {
- const fields = analyzeFields(def.props.shape);
+ const fields = analyzeFields(def.props.shape, reg);
specs[name] = {
signature: buildSignature(name, fields),
description: def.description,
@@ -308,10 +351,10 @@ export interface LibraryDefinition<C = unknown> {
*/
export function createLibrary<C = unknown>(input: LibraryDefinition<C>): Library<C> {
const componentsRecord: Record<string, DefinedComponent<any, C>> = {};
+ const reg = z.registry<{ id: string }>();
+
for (const comp of input.components) {
- if (!z.globalRegistry.has(comp.props)) {
- comp.props.register(z.globalRegistry, { id: comp.name });
- }
+ reg.add(comp.props as z.$ZodType, { id: comp.name });
componentsRecord[comp.name] = comp;
}
@@ -330,7 +373,7 @@ export function createLibrary<C = unknown>(input: LibraryDefinition<C>): Library
prompt(options?: PromptOptions): string {
const spec: PromptSpec = {
root: input.root,
- components: buildComponentSpecs(componentsRecord),
+ components: buildComponentSpecs(componentsRecord, reg),
componentGroups: input.componentGroups,
...options,
};
@@ -340,16 +383,16 @@ export function createLibrary<C = unknown>(input: LibraryDefinition<C>): Library
toSpec(): PromptSpec {
return {
root: input.root,
- components: buildComponentSpecs(componentsRecord),
+ components: buildComponentSpecs(componentsRecord, reg),
componentGroups: input.componentGroups,
};
},
toJSONSchema(): LibraryJSONSchema {
- const combinedSchema = z.object(
+ const combinedSchema = zObject(
Object.fromEntries(Object.entries(componentsRecord).map(([k, v]) => [k, v.props])) as any,
);
- return z.toJSONSchema(combinedSchema);
+ return z.toJSONSchema(combinedSchema, { metadata: reg }) as LibraryJSONSchema;
},
};
diff --git a/packages/react-email/package.json b/packages/react-email/package.json
index bf651039d..fb2c849fe 100644
--- a/packages/react-email/package.json
+++ b/packages/react-email/package.json
@@ -1,6 +1,6 @@
{
"name": "@openuidev/react-email",
- "version": "0.2.0",
+ "version": "0.2.1",
"description": "React Email components for OpenUI — 44 email building blocks with defineComponent",
"type": "module",
"main": "dist/index.cjs",
@@ -45,7 +45,7 @@
"@openuidev/react-lang": "workspace:*",
"react": ">=19.0.0",
"react-dom": ">=19.0.0",
- "zod": "^4.3.6"
+ "zod": "^3.25.0 || ^4.0.0"
},
"devDependencies": {
"@types/react": "^19",
diff --git a/packages/react-email/src/components/Article.tsx b/packages/react-email/src/components/Article.tsx
index 3a83e9806..fd7937c06 100644
--- a/packages/react-email/src/components/Article.tsx
+++ b/packages/react-email/src/components/Article.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Button, Heading, Img, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailArticle = defineComponent({
name: "EmailArticle",
diff --git a/packages/react-email/src/components/Avatar.tsx b/packages/react-email/src/components/Avatar.tsx
index bbbd93496..abe6bc97f 100644
--- a/packages/react-email/src/components/Avatar.tsx
+++ b/packages/react-email/src/components/Avatar.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Img } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailAvatar = defineComponent({
name: "EmailAvatar",
diff --git a/packages/react-email/src/components/AvatarGroup.tsx b/packages/react-email/src/components/AvatarGroup.tsx
index 0ced068d0..68e1b231f 100644
--- a/packages/react-email/src/components/AvatarGroup.tsx
+++ b/packages/react-email/src/components/AvatarGroup.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Row } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailAvatar } from "./Avatar";
export const EmailAvatarGroup = defineComponent({
diff --git a/packages/react-email/src/components/AvatarWithText.tsx b/packages/react-email/src/components/AvatarWithText.tsx
index 914ea17ac..aa24d76e1 100644
--- a/packages/react-email/src/components/AvatarWithText.tsx
+++ b/packages/react-email/src/components/AvatarWithText.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Link, Row } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailAvatarWithText = defineComponent({
name: "EmailAvatarWithText",
diff --git a/packages/react-email/src/components/BentoGrid.tsx b/packages/react-email/src/components/BentoGrid.tsx
index 4cf36ce0f..edf446cc4 100644
--- a/packages/react-email/src/components/BentoGrid.tsx
+++ b/packages/react-email/src/components/BentoGrid.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Heading, Img, Link, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailBentoItem } from "./BentoItem";
export const EmailBentoGrid = defineComponent({
diff --git a/packages/react-email/src/components/BentoItem.tsx b/packages/react-email/src/components/BentoItem.tsx
index ad05ce4b0..c3108e09b 100644
--- a/packages/react-email/src/components/BentoItem.tsx
+++ b/packages/react-email/src/components/BentoItem.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailBentoItem = defineComponent({
name: "EmailBentoItem",
diff --git a/packages/react-email/src/components/Button.tsx b/packages/react-email/src/components/Button.tsx
index 87a1041d1..ab2d83f52 100644
--- a/packages/react-email/src/components/Button.tsx
+++ b/packages/react-email/src/components/Button.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Button } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailButton = defineComponent({
name: "EmailButton",
diff --git a/packages/react-email/src/components/CheckoutItem.tsx b/packages/react-email/src/components/CheckoutItem.tsx
index 5b569a301..59ca72835 100644
--- a/packages/react-email/src/components/CheckoutItem.tsx
+++ b/packages/react-email/src/components/CheckoutItem.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailCheckoutItem = defineComponent({
name: "EmailCheckoutItem",
diff --git a/packages/react-email/src/components/CheckoutTable.tsx b/packages/react-email/src/components/CheckoutTable.tsx
index 4423c314a..1d21f9330 100644
--- a/packages/react-email/src/components/CheckoutTable.tsx
+++ b/packages/react-email/src/components/CheckoutTable.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Button, Column, Heading, Img, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailCheckoutItem } from "./CheckoutItem";
export const EmailCheckoutTable = defineComponent({
diff --git a/packages/react-email/src/components/CodeBlock.tsx b/packages/react-email/src/components/CodeBlock.tsx
index eb8c6992f..169d0eeb1 100644
--- a/packages/react-email/src/components/CodeBlock.tsx
+++ b/packages/react-email/src/components/CodeBlock.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { CodeBlock } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
type PrismLanguage = Parameters<typeof CodeBlock>[0]["language"];
diff --git a/packages/react-email/src/components/CodeInline.tsx b/packages/react-email/src/components/CodeInline.tsx
index 767bfec3a..513da7abb 100644
--- a/packages/react-email/src/components/CodeInline.tsx
+++ b/packages/react-email/src/components/CodeInline.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { CodeInline } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailCodeInline = defineComponent({
name: "EmailCodeInline",
diff --git a/packages/react-email/src/components/Column.tsx b/packages/react-email/src/components/Column.tsx
index 9c6f23011..3dd216fe3 100644
--- a/packages/react-email/src/components/Column.tsx
+++ b/packages/react-email/src/components/Column.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailLeafChildUnion } from "../unions";
export const EmailColumn = defineComponent({
diff --git a/packages/react-email/src/components/Columns.tsx b/packages/react-email/src/components/Columns.tsx
index 22c0684a5..49287907b 100644
--- a/packages/react-email/src/components/Columns.tsx
+++ b/packages/react-email/src/components/Columns.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Row } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailColumn } from "./Column";
export const EmailColumns = defineComponent({
diff --git a/packages/react-email/src/components/CustomerReview.tsx b/packages/react-email/src/components/CustomerReview.tsx
index dd733eed6..650a262ca 100644
--- a/packages/react-email/src/components/CustomerReview.tsx
+++ b/packages/react-email/src/components/CustomerReview.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Button, Column, Heading, Hr, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailCustomerReview = defineComponent({
name: "EmailCustomerReview",
diff --git a/packages/react-email/src/components/Divider.tsx b/packages/react-email/src/components/Divider.tsx
index 19362bbfb..bcdf982c9 100644
--- a/packages/react-email/src/components/Divider.tsx
+++ b/packages/react-email/src/components/Divider.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Hr } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailDivider = defineComponent({
name: "EmailDivider",
diff --git a/packages/react-email/src/components/FeatureGrid.tsx b/packages/react-email/src/components/FeatureGrid.tsx
index f790b8197..70db47e2a 100644
--- a/packages/react-email/src/components/FeatureGrid.tsx
+++ b/packages/react-email/src/components/FeatureGrid.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailFeatureItem } from "./FeatureItem";
export const EmailFeatureGrid = defineComponent({
diff --git a/packages/react-email/src/components/FeatureItem.tsx b/packages/react-email/src/components/FeatureItem.tsx
index 7e15b8149..358fa1ff9 100644
--- a/packages/react-email/src/components/FeatureItem.tsx
+++ b/packages/react-email/src/components/FeatureItem.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailFeatureItem = defineComponent({
name: "EmailFeatureItem",
diff --git a/packages/react-email/src/components/FeatureList.tsx b/packages/react-email/src/components/FeatureList.tsx
index 83227b0b3..765c66e98 100644
--- a/packages/react-email/src/components/FeatureList.tsx
+++ b/packages/react-email/src/components/FeatureList.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Hr, Img, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailFeatureItem } from "./FeatureItem";
export const EmailFeatureList = defineComponent({
diff --git a/packages/react-email/src/components/FooterCentered.tsx b/packages/react-email/src/components/FooterCentered.tsx
index e40cb70ca..b3fb51327 100644
--- a/packages/react-email/src/components/FooterCentered.tsx
+++ b/packages/react-email/src/components/FooterCentered.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Link, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailSocialIcon } from "./SocialIcon";
export const EmailFooterCentered = defineComponent({
diff --git a/packages/react-email/src/components/FooterTwoColumn.tsx b/packages/react-email/src/components/FooterTwoColumn.tsx
index e596f5df0..c63b683fa 100644
--- a/packages/react-email/src/components/FooterTwoColumn.tsx
+++ b/packages/react-email/src/components/FooterTwoColumn.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Link, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailSocialIcon } from "./SocialIcon";
export const EmailFooterTwoColumn = defineComponent({
diff --git a/packages/react-email/src/components/HeaderCenteredNav.tsx b/packages/react-email/src/components/HeaderCenteredNav.tsx
index 99983b9da..367177852 100644
--- a/packages/react-email/src/components/HeaderCenteredNav.tsx
+++ b/packages/react-email/src/components/HeaderCenteredNav.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Link, Row, Section } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailNavLink } from "./NavLink";
export const EmailHeaderCenteredNav = defineComponent({
diff --git a/packages/react-email/src/components/HeaderSideNav.tsx b/packages/react-email/src/components/HeaderSideNav.tsx
index 7f57867e7..d99dd6593 100644
--- a/packages/react-email/src/components/HeaderSideNav.tsx
+++ b/packages/react-email/src/components/HeaderSideNav.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Link, Row, Section } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailNavLink } from "./NavLink";
export const EmailHeaderSideNav = defineComponent({
diff --git a/packages/react-email/src/components/HeaderSocial.tsx b/packages/react-email/src/components/HeaderSocial.tsx
index 6a5b06a4e..149b33f53 100644
--- a/packages/react-email/src/components/HeaderSocial.tsx
+++ b/packages/react-email/src/components/HeaderSocial.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Link, Row, Section } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailSocialIcon } from "./SocialIcon";
export const EmailHeaderSocial = defineComponent({
diff --git a/packages/react-email/src/components/Heading.tsx b/packages/react-email/src/components/Heading.tsx
index 5f3ede1fb..754cad33c 100644
--- a/packages/react-email/src/components/Heading.tsx
+++ b/packages/react-email/src/components/Heading.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Heading } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailHeading = defineComponent({
name: "EmailHeading",
diff --git a/packages/react-email/src/components/Image.tsx b/packages/react-email/src/components/Image.tsx
index 822b9c402..6406a2bf9 100644
--- a/packages/react-email/src/components/Image.tsx
+++ b/packages/react-email/src/components/Image.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Img } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailImage = defineComponent({
name: "EmailImage",
diff --git a/packages/react-email/src/components/ImageGrid.tsx b/packages/react-email/src/components/ImageGrid.tsx
index d2fc88b58..5b64744f2 100644
--- a/packages/react-email/src/components/ImageGrid.tsx
+++ b/packages/react-email/src/components/ImageGrid.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailImage } from "./Image";
export const EmailImageGrid = defineComponent({
diff --git a/packages/react-email/src/components/Link.tsx b/packages/react-email/src/components/Link.tsx
index a6675c97c..da86b5fe9 100644
--- a/packages/react-email/src/components/Link.tsx
+++ b/packages/react-email/src/components/Link.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Link } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailLink = defineComponent({
name: "EmailLink",
diff --git a/packages/react-email/src/components/List.tsx b/packages/react-email/src/components/List.tsx
index ffed3d96d..cca870429 100644
--- a/packages/react-email/src/components/List.tsx
+++ b/packages/react-email/src/components/List.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Heading, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailListItem } from "./ListItem";
export const EmailList = defineComponent({
diff --git a/packages/react-email/src/components/ListItem.tsx b/packages/react-email/src/components/ListItem.tsx
index e70b88831..e2a6e38dd 100644
--- a/packages/react-email/src/components/ListItem.tsx
+++ b/packages/react-email/src/components/ListItem.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailListItem = defineComponent({
name: "EmailListItem",
diff --git a/packages/react-email/src/components/Markdown.tsx b/packages/react-email/src/components/Markdown.tsx
index 0dcfff8b5..5fe6bc8e9 100644
--- a/packages/react-email/src/components/Markdown.tsx
+++ b/packages/react-email/src/components/Markdown.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Markdown } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailMarkdown = defineComponent({
name: "EmailMarkdown",
diff --git a/packages/react-email/src/components/NavLink.tsx b/packages/react-email/src/components/NavLink.tsx
index 9861cc75c..b45e46ae0 100644
--- a/packages/react-email/src/components/NavLink.tsx
+++ b/packages/react-email/src/components/NavLink.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailNavLink = defineComponent({
name: "EmailNavLink",
diff --git a/packages/react-email/src/components/NumberedSteps.tsx b/packages/react-email/src/components/NumberedSteps.tsx
index cab76ce56..ba9af5eaf 100644
--- a/packages/react-email/src/components/NumberedSteps.tsx
+++ b/packages/react-email/src/components/NumberedSteps.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Hr, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailStepItem } from "./StepItem";
export const EmailNumberedSteps = defineComponent({
diff --git a/packages/react-email/src/components/PricingCard.tsx b/packages/react-email/src/components/PricingCard.tsx
index 207bf52f3..bc927166b 100644
--- a/packages/react-email/src/components/PricingCard.tsx
+++ b/packages/react-email/src/components/PricingCard.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Button, Hr, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailPricingFeature } from "./PricingFeature";
export const EmailPricingCard = defineComponent({
diff --git a/packages/react-email/src/components/PricingFeature.tsx b/packages/react-email/src/components/PricingFeature.tsx
index 30bf3d003..27c0a2335 100644
--- a/packages/react-email/src/components/PricingFeature.tsx
+++ b/packages/react-email/src/components/PricingFeature.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailPricingFeature = defineComponent({
name: "EmailPricingFeature",
diff --git a/packages/react-email/src/components/ProductCard.tsx b/packages/react-email/src/components/ProductCard.tsx
index 6643e2e0e..c5875a299 100644
--- a/packages/react-email/src/components/ProductCard.tsx
+++ b/packages/react-email/src/components/ProductCard.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Button, Heading, Img, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailProductCard = defineComponent({
name: "EmailProductCard",
diff --git a/packages/react-email/src/components/Section.tsx b/packages/react-email/src/components/Section.tsx
index 2e9f906b0..91f8dd9ea 100644
--- a/packages/react-email/src/components/Section.tsx
+++ b/packages/react-email/src/components/Section.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Section } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailLeafChildUnion } from "../unions";
export const EmailSection = defineComponent({
diff --git a/packages/react-email/src/components/SocialIcon.tsx b/packages/react-email/src/components/SocialIcon.tsx
index d54d2de67..634a74776 100644
--- a/packages/react-email/src/components/SocialIcon.tsx
+++ b/packages/react-email/src/components/SocialIcon.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailSocialIcon = defineComponent({
name: "EmailSocialIcon",
diff --git a/packages/react-email/src/components/StatItem.tsx b/packages/react-email/src/components/StatItem.tsx
index 7d8c42512..fa8c65bfd 100644
--- a/packages/react-email/src/components/StatItem.tsx
+++ b/packages/react-email/src/components/StatItem.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailStatItem = defineComponent({
name: "EmailStatItem",
diff --git a/packages/react-email/src/components/Stats.tsx b/packages/react-email/src/components/Stats.tsx
index 06cb53cd4..d4a80ba25 100644
--- a/packages/react-email/src/components/Stats.tsx
+++ b/packages/react-email/src/components/Stats.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Row } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailStatItem } from "./StatItem";
export const EmailStats = defineComponent({
diff --git a/packages/react-email/src/components/StepItem.tsx b/packages/react-email/src/components/StepItem.tsx
index 45dd36f9a..e693a6fbc 100644
--- a/packages/react-email/src/components/StepItem.tsx
+++ b/packages/react-email/src/components/StepItem.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailStepItem = defineComponent({
name: "EmailStepItem",
diff --git a/packages/react-email/src/components/SurveyRating.tsx b/packages/react-email/src/components/SurveyRating.tsx
index 06b549146..7fd4029d5 100644
--- a/packages/react-email/src/components/SurveyRating.tsx
+++ b/packages/react-email/src/components/SurveyRating.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Heading, Row, Section, Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailSurveyRating = defineComponent({
name: "EmailSurveyRating",
diff --git a/packages/react-email/src/components/Template.tsx b/packages/react-email/src/components/Template.tsx
index 102eb018a..af2548b78 100644
--- a/packages/react-email/src/components/Template.tsx
+++ b/packages/react-email/src/components/Template.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailLeafChildUnion } from "../unions";
import { EmailColumn } from "./Column";
import { EmailColumns } from "./Columns";
diff --git a/packages/react-email/src/components/Testimonial.tsx b/packages/react-email/src/components/Testimonial.tsx
index 846eeb9b9..67d135c45 100644
--- a/packages/react-email/src/components/Testimonial.tsx
+++ b/packages/react-email/src/components/Testimonial.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Column, Img, Row, Section } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailTestimonial = defineComponent({
name: "EmailTestimonial",
diff --git a/packages/react-email/src/components/Text.tsx b/packages/react-email/src/components/Text.tsx
index 4eb4c3301..742e03d5f 100644
--- a/packages/react-email/src/components/Text.tsx
+++ b/packages/react-email/src/components/Text.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { Text } from "@react-email/components";
-import { z } from "zod";
+import { z } from "zod/v4";
export const EmailText = defineComponent({
name: "EmailText",
diff --git a/packages/react-email/src/unions.ts b/packages/react-email/src/unions.ts
index 96d8068e5..b1abd2a1a 100644
--- a/packages/react-email/src/unions.ts
+++ b/packages/react-email/src/unions.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { EmailArticle } from "./components/Article";
import { EmailAvatarGroup } from "./components/AvatarGroup";
import { EmailAvatarWithText } from "./components/AvatarWithText";
diff --git a/packages/react-lang/package.json b/packages/react-lang/package.json
index 857b9ee80..7431a1e28 100644
--- a/packages/react-lang/package.json
+++ b/packages/react-lang/package.json
@@ -1,6 +1,6 @@
{
"name": "@openuidev/react-lang",
- "version": "0.2.0",
+ "version": "0.2.1",
"description": "Define component libraries, generate LLM system prompts, and render streaming OpenUI Lang output in React — the core runtime for OpenUI generative UI",
"license": "MIT",
"type": "module",
@@ -71,7 +71,7 @@
"peerDependencies": {
"@modelcontextprotocol/sdk": ">=1.0.0",
"react": ">=19.0.0",
- "zod": "^4.0.0"
+ "zod": "^3.25.0 || ^4.0.0"
},
"peerDependenciesMeta": {
"@modelcontextprotocol/sdk": {
diff --git a/packages/react-lang/src/index.ts b/packages/react-lang/src/index.ts
index abd445fc0..b2b8ce947 100644
--- a/packages/react-lang/src/index.ts
+++ b/packages/react-lang/src/index.ts
@@ -1,4 +1,5 @@
// define library
+export { tagSchemaId } from "@openuidev/lang-core";
export { createLibrary, defineComponent } from "./library";
export type {
ComponentGroup,
diff --git a/packages/react-lang/src/library.ts b/packages/react-lang/src/library.ts
index 2c64bc9b0..cdb6dc183 100644
--- a/packages/react-lang/src/library.ts
+++ b/packages/react-lang/src/library.ts
@@ -7,7 +7,8 @@ import {
type ComponentRenderProps as CoreRenderProps,
} from "@openuidev/lang-core";
import type { ReactNode } from "react";
-import { z } from "zod";
+import type { z } from "zod/v4";
+import type { $ZodObject } from "zod/v4/core";
// Re-export framework-agnostic types unchanged
export type {
@@ -25,7 +26,7 @@ export interface ComponentRenderProps<P = Record<string, unknown>>
export type ComponentRenderer<P = Record<string, unknown>> = React.FC<ComponentRenderProps<P>>;
-export type DefinedComponent<T extends z.ZodObject<any> = z.ZodObject<any>> = CoreDefinedComponent<
+export type DefinedComponent<T extends $ZodObject = $ZodObject> = CoreDefinedComponent<
T,
ComponentRenderer<z.infer<T>>
>;
@@ -36,7 +37,7 @@ export type LibraryDefinition = CoreLibraryDefinition<ComponentRenderer<any>>;
// ─── defineComponent (React) ────────────────────────────────────────────────
-export function defineComponent<T extends z.ZodObject<any>>(config: {
+export function defineComponent<T extends $ZodObject>(config: {
name: string;
props: T;
description: string;
diff --git a/packages/react-lang/src/runtime/reactive.ts b/packages/react-lang/src/runtime/reactive.ts
index 1a149fc3f..503eeadbc 100644
--- a/packages/react-lang/src/runtime/reactive.ts
+++ b/packages/react-lang/src/runtime/reactive.ts
@@ -4,7 +4,7 @@
import type { StateField } from "@openuidev/lang-core";
import { markReactive } from "@openuidev/lang-core";
-import type { z } from "zod";
+import type { z } from "zod/v4";
// Re-export for internal use
export { isReactiveSchema } from "@openuidev/lang-core";
diff --git a/packages/react-ui/package.json b/packages/react-ui/package.json
index 99c89a6fe..5723fe02c 100644
--- a/packages/react-ui/package.json
+++ b/packages/react-ui/package.json
@@ -2,7 +2,7 @@
"type": "module",
"name": "@openuidev/react-ui",
"license": "MIT",
- "version": "0.11.0",
+ "version": "0.11.1",
"description": "Component library for Generative UI SDK",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
@@ -88,7 +88,7 @@
"react": ">=19.0.0",
"react-dom": ">=19.0.0",
"zustand": "^4.5.5",
- "zod": "^4.3.6"
+ "zod": "^3.25.0 || ^4.0.0"
},
"dependencies": {
"@floating-ui/react-dom": "^2.1.2",
diff --git a/packages/react-ui/src/genui-lib/Accordion/index.tsx b/packages/react-ui/src/genui-lib/Accordion/index.tsx
index ed1f831b0..d1378ab19 100644
--- a/packages/react-ui/src/genui-lib/Accordion/index.tsx
+++ b/packages/react-ui/src/genui-lib/Accordion/index.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import {
Accordion as OpenUIAccordion,
AccordionContent as OpenUIAccordionContent,
diff --git a/packages/react-ui/src/genui-lib/Accordion/schema.ts b/packages/react-ui/src/genui-lib/Accordion/schema.ts
index 6040fca4c..42d1f4a0e 100644
--- a/packages/react-ui/src/genui-lib/Accordion/schema.ts
+++ b/packages/react-ui/src/genui-lib/Accordion/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { ContentChildUnion } from "../unions";
export const AccordionItemSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/Action/schema.ts b/packages/react-ui/src/genui-lib/Action/schema.ts
index 038b85ec5..4217b28ce 100644
--- a/packages/react-ui/src/genui-lib/Action/schema.ts
+++ b/packages/react-ui/src/genui-lib/Action/schema.ts
@@ -1,5 +1,6 @@
-import { z } from "zod";
+import { tagSchemaId } from "@openuidev/react-lang";
+import { z } from "zod/v4";
/** Shared action prop schema — shows as `ActionExpression` in prompt signatures. */
export const actionPropSchema = z.any();
-actionPropSchema.register(z.globalRegistry, { id: "ActionExpression" });
+tagSchemaId(actionPropSchema, "ActionExpression");
diff --git a/packages/react-ui/src/genui-lib/Button/schema.ts b/packages/react-ui/src/genui-lib/Button/schema.ts
index aeb67c970..d93a35faa 100644
--- a/packages/react-ui/src/genui-lib/Button/schema.ts
+++ b/packages/react-ui/src/genui-lib/Button/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { actionPropSchema } from "../Action/schema";
export const ButtonSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/Buttons/schema.ts b/packages/react-ui/src/genui-lib/Buttons/schema.ts
index 45fcb5743..7c7116f11 100644
--- a/packages/react-ui/src/genui-lib/Buttons/schema.ts
+++ b/packages/react-ui/src/genui-lib/Buttons/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { Button } from "../Button";
export const ButtonsSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/Callout/schema.ts b/packages/react-ui/src/genui-lib/Callout/schema.ts
index eb85448b8..abbd5b37a 100644
--- a/packages/react-ui/src/genui-lib/Callout/schema.ts
+++ b/packages/react-ui/src/genui-lib/Callout/schema.ts
@@ -1,5 +1,5 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const CalloutSchema = z.object({
variant: z.enum(["info", "warning", "error", "success", "neutral"]),
diff --git a/packages/react-ui/src/genui-lib/Card/schema.ts b/packages/react-ui/src/genui-lib/Card/schema.ts
index 0af1813d1..3f7cceb8a 100644
--- a/packages/react-ui/src/genui-lib/Card/schema.ts
+++ b/packages/react-ui/src/genui-lib/Card/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { Carousel } from "../Carousel";
import { Stack } from "../Stack";
import { FlexPropsSchema } from "../Stack/schema";
diff --git a/packages/react-ui/src/genui-lib/CardHeader/schema.ts b/packages/react-ui/src/genui-lib/CardHeader/schema.ts
index be0c0427e..f83e8f808 100644
--- a/packages/react-ui/src/genui-lib/CardHeader/schema.ts
+++ b/packages/react-ui/src/genui-lib/CardHeader/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const CardHeaderSchema = z.object({
title: z.string().optional(),
diff --git a/packages/react-ui/src/genui-lib/Carousel/index.tsx b/packages/react-ui/src/genui-lib/Carousel/index.tsx
index abfc957e2..6ae73ae60 100644
--- a/packages/react-ui/src/genui-lib/Carousel/index.tsx
+++ b/packages/react-ui/src/genui-lib/Carousel/index.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { ChevronLeft, ChevronRight } from "lucide-react";
-import { z } from "zod";
+import { z } from "zod/v4";
import {
Carousel as OpenUICarousel,
CarouselContent as OpenUICarouselContent,
diff --git a/packages/react-ui/src/genui-lib/Charts/AreaChartCondensed.ts b/packages/react-ui/src/genui-lib/Charts/AreaChartCondensed.ts
index 4f5010898..93fba7703 100644
--- a/packages/react-ui/src/genui-lib/Charts/AreaChartCondensed.ts
+++ b/packages/react-ui/src/genui-lib/Charts/AreaChartCondensed.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { AreaChartCondensed as AreaChartCondensedComponent } from "../../components/Charts";
import { buildChartData, hasAllProps } from "../helpers";
import { SeriesSchema } from "./Series";
diff --git a/packages/react-ui/src/genui-lib/Charts/BarChartCondensed.ts b/packages/react-ui/src/genui-lib/Charts/BarChartCondensed.ts
index 92af8b6e8..803ac48ee 100644
--- a/packages/react-ui/src/genui-lib/Charts/BarChartCondensed.ts
+++ b/packages/react-ui/src/genui-lib/Charts/BarChartCondensed.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { BarChartCondensed as BarChartCondensedComponent } from "../../components/Charts";
import { buildChartData, hasAllProps } from "../helpers";
import { SeriesSchema } from "./Series";
diff --git a/packages/react-ui/src/genui-lib/Charts/HorizontalBarChart.ts b/packages/react-ui/src/genui-lib/Charts/HorizontalBarChart.ts
index df45564a6..b927124c4 100644
--- a/packages/react-ui/src/genui-lib/Charts/HorizontalBarChart.ts
+++ b/packages/react-ui/src/genui-lib/Charts/HorizontalBarChart.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { HorizontalBarChart as HorizontalBarChartComponent } from "../../components/Charts";
import { buildChartData, hasAllProps } from "../helpers";
import { SeriesSchema } from "./Series";
diff --git a/packages/react-ui/src/genui-lib/Charts/LineChartCondensed.ts b/packages/react-ui/src/genui-lib/Charts/LineChartCondensed.ts
index 9e7cd61f6..f1c578ba9 100644
--- a/packages/react-ui/src/genui-lib/Charts/LineChartCondensed.ts
+++ b/packages/react-ui/src/genui-lib/Charts/LineChartCondensed.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { LineChartCondensed as LineChartCondensedComponent } from "../../components/Charts";
import { buildChartData, hasAllProps } from "../helpers";
import { SeriesSchema } from "./Series";
diff --git a/packages/react-ui/src/genui-lib/Charts/PieChart.ts b/packages/react-ui/src/genui-lib/Charts/PieChart.ts
index a98c9da2f..f513554b1 100644
--- a/packages/react-ui/src/genui-lib/Charts/PieChart.ts
+++ b/packages/react-ui/src/genui-lib/Charts/PieChart.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { PieChart as PieChartComponent } from "../../components/Charts";
import { asArray, buildSliceData } from "../helpers";
diff --git a/packages/react-ui/src/genui-lib/Charts/Point.ts b/packages/react-ui/src/genui-lib/Charts/Point.ts
index c27e11b02..0c6b6e869 100644
--- a/packages/react-ui/src/genui-lib/Charts/Point.ts
+++ b/packages/react-ui/src/genui-lib/Charts/Point.ts
@@ -1,5 +1,5 @@
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const PointSchema = z.object({
x: z.number(),
diff --git a/packages/react-ui/src/genui-lib/Charts/RadarChart.ts b/packages/react-ui/src/genui-lib/Charts/RadarChart.ts
index 1f4c1a0f4..f99ed73b7 100644
--- a/packages/react-ui/src/genui-lib/Charts/RadarChart.ts
+++ b/packages/react-ui/src/genui-lib/Charts/RadarChart.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { RadarChart as RadarChartComponent } from "../../components/Charts";
import { buildChartData, hasAllProps } from "../helpers";
import { SeriesSchema } from "./Series";
diff --git a/packages/react-ui/src/genui-lib/Charts/RadialChart.ts b/packages/react-ui/src/genui-lib/Charts/RadialChart.ts
index d76801f0a..bb94daa31 100644
--- a/packages/react-ui/src/genui-lib/Charts/RadialChart.ts
+++ b/packages/react-ui/src/genui-lib/Charts/RadialChart.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { RadialChart as RadialChartComponent } from "../../components/Charts";
import { asArray, buildSliceData } from "../helpers";
diff --git a/packages/react-ui/src/genui-lib/Charts/ScatterChart.ts b/packages/react-ui/src/genui-lib/Charts/ScatterChart.ts
index e6fefa5a0..ba00a2fe1 100644
--- a/packages/react-ui/src/genui-lib/Charts/ScatterChart.ts
+++ b/packages/react-ui/src/genui-lib/Charts/ScatterChart.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { ScatterChart as ScatterChartComponent } from "../../components/Charts";
import { asArray, hasAllProps } from "../helpers";
import { ScatterSeriesSchema } from "./ScatterSeries";
diff --git a/packages/react-ui/src/genui-lib/Charts/ScatterSeries.ts b/packages/react-ui/src/genui-lib/Charts/ScatterSeries.ts
index 979be6256..d6dc4a575 100644
--- a/packages/react-ui/src/genui-lib/Charts/ScatterSeries.ts
+++ b/packages/react-ui/src/genui-lib/Charts/ScatterSeries.ts
@@ -1,5 +1,5 @@
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { PointSchema } from "./Point";
export const ScatterSeriesSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/Charts/Series.ts b/packages/react-ui/src/genui-lib/Charts/Series.ts
index cc5c46854..4949f027e 100644
--- a/packages/react-ui/src/genui-lib/Charts/Series.ts
+++ b/packages/react-ui/src/genui-lib/Charts/Series.ts
@@ -1,5 +1,5 @@
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const SeriesSchema = z.object({
category: z.string(),
diff --git a/packages/react-ui/src/genui-lib/Charts/SingleStackedBarChart.ts b/packages/react-ui/src/genui-lib/Charts/SingleStackedBarChart.ts
index 3712efdfc..f3584a13a 100644
--- a/packages/react-ui/src/genui-lib/Charts/SingleStackedBarChart.ts
+++ b/packages/react-ui/src/genui-lib/Charts/SingleStackedBarChart.ts
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { SingleStackedBar as SingleStackedBarChartComponent } from "../../components/Charts";
import { asArray, buildSliceData } from "../helpers";
diff --git a/packages/react-ui/src/genui-lib/Charts/Slice.ts b/packages/react-ui/src/genui-lib/Charts/Slice.ts
index fd67cd3a2..39878b735 100644
--- a/packages/react-ui/src/genui-lib/Charts/Slice.ts
+++ b/packages/react-ui/src/genui-lib/Charts/Slice.ts
@@ -1,5 +1,5 @@
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const SliceSchema = z.object({
category: z.string(),
diff --git a/packages/react-ui/src/genui-lib/Charts/dataSchemas.ts b/packages/react-ui/src/genui-lib/Charts/dataSchemas.ts
index 8161818af..b52753f4a 100644
--- a/packages/react-ui/src/genui-lib/Charts/dataSchemas.ts
+++ b/packages/react-ui/src/genui-lib/Charts/dataSchemas.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const chart1DDataSchema = z.array(
z.object({
diff --git a/packages/react-ui/src/genui-lib/CheckBoxGroup/schema.ts b/packages/react-ui/src/genui-lib/CheckBoxGroup/schema.ts
index 3b1b87a26..615f04901 100644
--- a/packages/react-ui/src/genui-lib/CheckBoxGroup/schema.ts
+++ b/packages/react-ui/src/genui-lib/CheckBoxGroup/schema.ts
@@ -1,8 +1,8 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { rulesSchema } from "../rules";
-type RefComponent = { ref: z.ZodTypeAny };
+type RefComponent = { ref: any };
export const CheckBoxItemSchema = z.object({
label: z.string(),
diff --git a/packages/react-ui/src/genui-lib/CodeBlock/schema.ts b/packages/react-ui/src/genui-lib/CodeBlock/schema.ts
index d13b2fc8c..8edbdc34c 100644
--- a/packages/react-ui/src/genui-lib/CodeBlock/schema.ts
+++ b/packages/react-ui/src/genui-lib/CodeBlock/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const CodeBlockSchema = z.object({
language: z.string(),
diff --git a/packages/react-ui/src/genui-lib/DatePicker/schema.ts b/packages/react-ui/src/genui-lib/DatePicker/schema.ts
index 844c59389..79e7e4811 100644
--- a/packages/react-ui/src/genui-lib/DatePicker/schema.ts
+++ b/packages/react-ui/src/genui-lib/DatePicker/schema.ts
@@ -1,5 +1,5 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { rulesSchema } from "../rules";
export const DatePickerSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/FollowUpBlock/index.tsx b/packages/react-ui/src/genui-lib/FollowUpBlock/index.tsx
index 954da05af..6bccd43ff 100644
--- a/packages/react-ui/src/genui-lib/FollowUpBlock/index.tsx
+++ b/packages/react-ui/src/genui-lib/FollowUpBlock/index.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent, useTriggerAction } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { FollowUpBlock as OpenUIFollowUpBlock } from "../../components/FollowUpBlock";
import { FollowUpItem as OpenUIFollowUpItem } from "../../components/FollowUpItem";
import { FollowUpItem } from "../FollowUpItem";
diff --git a/packages/react-ui/src/genui-lib/FollowUpItem/index.tsx b/packages/react-ui/src/genui-lib/FollowUpItem/index.tsx
index 407325a4d..f56a3a73e 100644
--- a/packages/react-ui/src/genui-lib/FollowUpItem/index.tsx
+++ b/packages/react-ui/src/genui-lib/FollowUpItem/index.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
export const FollowUpItem = defineComponent({
name: "FollowUpItem",
diff --git a/packages/react-ui/src/genui-lib/Form/schema.ts b/packages/react-ui/src/genui-lib/Form/schema.ts
index 518fe987d..57909dc08 100644
--- a/packages/react-ui/src/genui-lib/Form/schema.ts
+++ b/packages/react-ui/src/genui-lib/Form/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { Buttons } from "../Buttons";
import { FormControl } from "../FormControl";
diff --git a/packages/react-ui/src/genui-lib/FormControl/schema.ts b/packages/react-ui/src/genui-lib/FormControl/schema.ts
index 7cc62a21c..9cb0a734b 100644
--- a/packages/react-ui/src/genui-lib/FormControl/schema.ts
+++ b/packages/react-ui/src/genui-lib/FormControl/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { CheckBoxGroup } from "../CheckBoxGroup";
import { DatePicker } from "../DatePicker";
import { Input } from "../Input";
diff --git a/packages/react-ui/src/genui-lib/Image/schema.ts b/packages/react-ui/src/genui-lib/Image/schema.ts
index 90d5c5220..541843bfc 100644
--- a/packages/react-ui/src/genui-lib/Image/schema.ts
+++ b/packages/react-ui/src/genui-lib/Image/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const ImageSchema = z.object({
alt: z.string(),
diff --git a/packages/react-ui/src/genui-lib/ImageBlock/schema.ts b/packages/react-ui/src/genui-lib/ImageBlock/schema.ts
index 5e63af956..40a2d4bb9 100644
--- a/packages/react-ui/src/genui-lib/ImageBlock/schema.ts
+++ b/packages/react-ui/src/genui-lib/ImageBlock/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const ImageBlockSchema = z.object({
src: z.string(),
diff --git a/packages/react-ui/src/genui-lib/ImageGallery/schema.ts b/packages/react-ui/src/genui-lib/ImageGallery/schema.ts
index 50b7c4f5b..ae8aa8157 100644
--- a/packages/react-ui/src/genui-lib/ImageGallery/schema.ts
+++ b/packages/react-ui/src/genui-lib/ImageGallery/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
const ImageItemSchema = z.object({
src: z.string(),
diff --git a/packages/react-ui/src/genui-lib/Input/schema.ts b/packages/react-ui/src/genui-lib/Input/schema.ts
index c496ac738..a722e3c87 100644
--- a/packages/react-ui/src/genui-lib/Input/schema.ts
+++ b/packages/react-ui/src/genui-lib/Input/schema.ts
@@ -1,5 +1,5 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { rulesSchema } from "../rules";
export const InputSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/Label/schema.ts b/packages/react-ui/src/genui-lib/Label/schema.ts
index b2fcf4b06..ef5ef7962 100644
--- a/packages/react-ui/src/genui-lib/Label/schema.ts
+++ b/packages/react-ui/src/genui-lib/Label/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const LabelSchema = z.object({
text: z.string(),
diff --git a/packages/react-ui/src/genui-lib/ListBlock/index.tsx b/packages/react-ui/src/genui-lib/ListBlock/index.tsx
index 275f00e22..e24b33fdd 100644
--- a/packages/react-ui/src/genui-lib/ListBlock/index.tsx
+++ b/packages/react-ui/src/genui-lib/ListBlock/index.tsx
@@ -3,7 +3,7 @@
import type { ActionPlan } from "@openuidev/react-lang";
import { defineComponent, useTriggerAction } from "@openuidev/react-lang";
import { ChevronRight } from "lucide-react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { ListBlock as OpenUIListBlock } from "../../components/ListBlock";
import { ListItem as OpenUIListItem } from "../../components/ListItem";
import { ListItem } from "../ListItem";
diff --git a/packages/react-ui/src/genui-lib/ListItem/index.tsx b/packages/react-ui/src/genui-lib/ListItem/index.tsx
index 7ec9d0be3..f4963aa93 100644
--- a/packages/react-ui/src/genui-lib/ListItem/index.tsx
+++ b/packages/react-ui/src/genui-lib/ListItem/index.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { actionPropSchema } from "../Action/schema";
export const ListItem = defineComponent({
diff --git a/packages/react-ui/src/genui-lib/MarkDownRenderer/schema.ts b/packages/react-ui/src/genui-lib/MarkDownRenderer/schema.ts
index edc63feb8..c75da870b 100644
--- a/packages/react-ui/src/genui-lib/MarkDownRenderer/schema.ts
+++ b/packages/react-ui/src/genui-lib/MarkDownRenderer/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const MarkDownRendererSchema = z.object({
textMarkdown: z.string(),
diff --git a/packages/react-ui/src/genui-lib/Modal/schema.ts b/packages/react-ui/src/genui-lib/Modal/schema.ts
index 3e6cd70bd..fcf3feeed 100644
--- a/packages/react-ui/src/genui-lib/Modal/schema.ts
+++ b/packages/react-ui/src/genui-lib/Modal/schema.ts
@@ -1,5 +1,5 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { ContentChildUnion } from "../unions";
export const ModalSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/RadioGroup/index.tsx b/packages/react-ui/src/genui-lib/RadioGroup/index.tsx
index 92f4075c5..b3a015b0d 100644
--- a/packages/react-ui/src/genui-lib/RadioGroup/index.tsx
+++ b/packages/react-ui/src/genui-lib/RadioGroup/index.tsx
@@ -9,7 +9,7 @@ import {
useStateField,
} from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { RadioGroup as OpenUIRadioGroup } from "../../components/RadioGroup";
import { RadioItem as OpenUIRadioItem } from "../../components/RadioItem";
import { rulesSchema } from "../rules";
diff --git a/packages/react-ui/src/genui-lib/RadioGroup/schema.ts b/packages/react-ui/src/genui-lib/RadioGroup/schema.ts
index 716254044..40a21f708 100644
--- a/packages/react-ui/src/genui-lib/RadioGroup/schema.ts
+++ b/packages/react-ui/src/genui-lib/RadioGroup/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const RadioItemSchema = z.object({
label: z.string(),
diff --git a/packages/react-ui/src/genui-lib/SectionBlock/index.tsx b/packages/react-ui/src/genui-lib/SectionBlock/index.tsx
index 536a85f90..e38f22e06 100644
--- a/packages/react-ui/src/genui-lib/SectionBlock/index.tsx
+++ b/packages/react-ui/src/genui-lib/SectionBlock/index.tsx
@@ -2,7 +2,7 @@
import { defineComponent, useIsStreaming } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import {
FoldableSectionContent,
FoldableSectionItem,
diff --git a/packages/react-ui/src/genui-lib/SectionItem/index.tsx b/packages/react-ui/src/genui-lib/SectionItem/index.tsx
index f9b0f0bf6..876a83abb 100644
--- a/packages/react-ui/src/genui-lib/SectionItem/index.tsx
+++ b/packages/react-ui/src/genui-lib/SectionItem/index.tsx
@@ -1,7 +1,7 @@
"use client";
import { defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { SectionContentChildUnion } from "../sectionContentUnion";
export const SectionItem = defineComponent({
diff --git a/packages/react-ui/src/genui-lib/Select/schema.ts b/packages/react-ui/src/genui-lib/Select/schema.ts
index 7de8c6b67..4ea3c7d77 100644
--- a/packages/react-ui/src/genui-lib/Select/schema.ts
+++ b/packages/react-ui/src/genui-lib/Select/schema.ts
@@ -1,8 +1,8 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { rulesSchema } from "../rules";
-type RefComponent = { ref: z.ZodTypeAny };
+type RefComponent = { ref: any };
export const SelectItemSchema = z.object({
value: z.string(),
diff --git a/packages/react-ui/src/genui-lib/Separator/schema.ts b/packages/react-ui/src/genui-lib/Separator/schema.ts
index b71d40ac8..2954e9f4c 100644
--- a/packages/react-ui/src/genui-lib/Separator/schema.ts
+++ b/packages/react-ui/src/genui-lib/Separator/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const SeparatorSchema = z.object({
orientation: z.enum(["horizontal", "vertical"]).optional(),
diff --git a/packages/react-ui/src/genui-lib/Slider/schema.ts b/packages/react-ui/src/genui-lib/Slider/schema.ts
index e9223527a..0fb5f3283 100644
--- a/packages/react-ui/src/genui-lib/Slider/schema.ts
+++ b/packages/react-ui/src/genui-lib/Slider/schema.ts
@@ -1,5 +1,5 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { rulesSchema } from "../rules";
export const SliderSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/Stack/schema.ts b/packages/react-ui/src/genui-lib/Stack/schema.ts
index aad032b00..dc161947e 100644
--- a/packages/react-ui/src/genui-lib/Stack/schema.ts
+++ b/packages/react-ui/src/genui-lib/Stack/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const FlexPropsSchema = z.object({
direction: z.enum(["row", "column"]).optional(),
diff --git a/packages/react-ui/src/genui-lib/Steps/index.tsx b/packages/react-ui/src/genui-lib/Steps/index.tsx
index a674bc1ef..f31681b48 100644
--- a/packages/react-ui/src/genui-lib/Steps/index.tsx
+++ b/packages/react-ui/src/genui-lib/Steps/index.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { MarkDownRenderer } from "../../components/MarkDownRenderer";
import { Steps as OpenUISteps, StepsItem as OpenUIStepsItem } from "../../components/Steps";
import { StepsItemSchema } from "./schema";
diff --git a/packages/react-ui/src/genui-lib/Steps/schema.ts b/packages/react-ui/src/genui-lib/Steps/schema.ts
index c49d7d0bd..312b68c59 100644
--- a/packages/react-ui/src/genui-lib/Steps/schema.ts
+++ b/packages/react-ui/src/genui-lib/Steps/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const StepsItemSchema = z.object({
title: z.string(),
diff --git a/packages/react-ui/src/genui-lib/SwitchGroup/schema.ts b/packages/react-ui/src/genui-lib/SwitchGroup/schema.ts
index cef17fe7b..a0414bc4f 100644
--- a/packages/react-ui/src/genui-lib/SwitchGroup/schema.ts
+++ b/packages/react-ui/src/genui-lib/SwitchGroup/schema.ts
@@ -1,7 +1,7 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
-type RefComponent = { ref: z.ZodTypeAny };
+type RefComponent = { ref: any };
export const SwitchItemSchema = z.object({
label: z.string().optional(),
diff --git a/packages/react-ui/src/genui-lib/Table/index.tsx b/packages/react-ui/src/genui-lib/Table/index.tsx
index fb1ee3848..25717fc47 100644
--- a/packages/react-ui/src/genui-lib/Table/index.tsx
+++ b/packages/react-ui/src/genui-lib/Table/index.tsx
@@ -3,7 +3,7 @@
import { defineComponent } from "@openuidev/react-lang";
import { ChevronLeft, ChevronRight } from "lucide-react";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import { IconButton } from "../../components/IconButton";
import {
ScrollableTable as OpenUITable,
diff --git a/packages/react-ui/src/genui-lib/Table/schema.ts b/packages/react-ui/src/genui-lib/Table/schema.ts
index 10a2224af..e4d3b95ca 100644
--- a/packages/react-ui/src/genui-lib/Table/schema.ts
+++ b/packages/react-ui/src/genui-lib/Table/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const ColSchema = z.object({
/** Column header label */
diff --git a/packages/react-ui/src/genui-lib/Tabs/index.tsx b/packages/react-ui/src/genui-lib/Tabs/index.tsx
index 2d8934672..ac50f2c02 100644
--- a/packages/react-ui/src/genui-lib/Tabs/index.tsx
+++ b/packages/react-ui/src/genui-lib/Tabs/index.tsx
@@ -2,7 +2,7 @@
import { defineComponent } from "@openuidev/react-lang";
import React from "react";
-import { z } from "zod";
+import { z } from "zod/v4";
import {
Tabs as OpenUITabs,
TabsContent as OpenUITabsContent,
diff --git a/packages/react-ui/src/genui-lib/Tabs/schema.ts b/packages/react-ui/src/genui-lib/Tabs/schema.ts
index aa272d1f7..30ae63872 100644
--- a/packages/react-ui/src/genui-lib/Tabs/schema.ts
+++ b/packages/react-ui/src/genui-lib/Tabs/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { ContentChildUnion } from "../unions";
export const TabItemSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/Tag/schema.ts b/packages/react-ui/src/genui-lib/Tag/schema.ts
index a9d25eff6..81c4af2ae 100644
--- a/packages/react-ui/src/genui-lib/Tag/schema.ts
+++ b/packages/react-ui/src/genui-lib/Tag/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const TagSchema = z.object({
text: z.string(),
diff --git a/packages/react-ui/src/genui-lib/TagBlock/schema.ts b/packages/react-ui/src/genui-lib/TagBlock/schema.ts
index 23e61fc05..11dce5d99 100644
--- a/packages/react-ui/src/genui-lib/TagBlock/schema.ts
+++ b/packages/react-ui/src/genui-lib/TagBlock/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const TagBlockSchema = z.object({
tags: z.array(z.string()),
diff --git a/packages/react-ui/src/genui-lib/TextArea/schema.ts b/packages/react-ui/src/genui-lib/TextArea/schema.ts
index b805a161d..5815a79b6 100644
--- a/packages/react-ui/src/genui-lib/TextArea/schema.ts
+++ b/packages/react-ui/src/genui-lib/TextArea/schema.ts
@@ -1,5 +1,5 @@
import { reactive } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { rulesSchema } from "../rules";
export const TextAreaSchema = z.object({
diff --git a/packages/react-ui/src/genui-lib/TextCallout/schema.ts b/packages/react-ui/src/genui-lib/TextCallout/schema.ts
index af2ca12a3..88978e00f 100644
--- a/packages/react-ui/src/genui-lib/TextCallout/schema.ts
+++ b/packages/react-ui/src/genui-lib/TextCallout/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const TextCalloutSchema = z.object({
variant: z.enum(["neutral", "info", "warning", "success", "danger"]).optional(),
diff --git a/packages/react-ui/src/genui-lib/TextContent/schema.ts b/packages/react-ui/src/genui-lib/TextContent/schema.ts
index 0f4f263c8..ad36067cf 100644
--- a/packages/react-ui/src/genui-lib/TextContent/schema.ts
+++ b/packages/react-ui/src/genui-lib/TextContent/schema.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
export const TextContentSchema = z.object({
text: z.string(),
diff --git a/packages/react-ui/src/genui-lib/openuiChatLibrary.tsx b/packages/react-ui/src/genui-lib/openuiChatLibrary.tsx
index 0fbc0916a..73b9f3404 100644
--- a/packages/react-ui/src/genui-lib/openuiChatLibrary.tsx
+++ b/packages/react-ui/src/genui-lib/openuiChatLibrary.tsx
@@ -2,7 +2,7 @@
import type { ComponentGroup, PromptOptions } from "@openuidev/react-lang";
import { createLibrary, defineComponent } from "@openuidev/react-lang";
-import { z } from "zod";
+import { z } from "zod/v4";
import { Card as OpenUICard } from "../components/Card";
// Content
diff --git a/packages/react-ui/src/genui-lib/rules.ts b/packages/react-ui/src/genui-lib/rules.ts
index 1dbb36b1a..8c255891c 100644
--- a/packages/react-ui/src/genui-lib/rules.ts
+++ b/packages/react-ui/src/genui-lib/rules.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
/**
* Structured validation rules for form field components.
diff --git a/packages/react-ui/src/genui-lib/sectionContentUnion.ts b/packages/react-ui/src/genui-lib/sectionContentUnion.ts
index df269375d..d8ae2c216 100644
--- a/packages/react-ui/src/genui-lib/sectionContentUnion.ts
+++ b/packages/react-ui/src/genui-lib/sectionContentUnion.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { Callout } from "./Callout";
import { CardHeader } from "./CardHeader";
diff --git a/packages/react-ui/src/genui-lib/unions.ts b/packages/react-ui/src/genui-lib/unions.ts
index cb10d5146..79dcb60d9 100644
--- a/packages/react-ui/src/genui-lib/unions.ts
+++ b/packages/react-ui/src/genui-lib/unions.ts
@@ -1,4 +1,4 @@
-import { z } from "zod";
+import { z } from "zod/v4";
import { Callout } from "./Callout";
import { CardHeader } from "./CardHeader";
diff --git a/packages/svelte-lang/package.json b/packages/svelte-lang/package.json
index 12ec22803..1d9980e54 100644
--- a/packages/svelte-lang/package.json
+++ b/packages/svelte-lang/package.json
@@ -1,6 +1,6 @@
{
"name": "@openuidev/svelte-lang",
- "version": "0.1.0",
+ "version": "0.1.1",
"description": "Define component libraries, generate LLM system prompts, and render streaming OpenUI Lang output in Svelte 5 — the Svelte runtime for OpenUI generative UI",
"license": "MIT",
"type": "module",
@@ -58,11 +58,11 @@
},
"author": "[email protected]",
"dependencies": {
- "@openuidev/lang-core": "workspace:^",
- "zod": "^4.0.0"
+ "@openuidev/lang-core": "workspace:^"
},
"peerDependencies": {
- "svelte": ">=5.0.0"
+ "svelte": ">=5.0.0",
+ "zod": "^3.25.0 || ^4.0.0"
},
"devDependencies": {
"@sveltejs/package": "^2.3.0",
diff --git a/packages/svelte-lang/src/__tests__/Renderer.test.ts b/packages/svelte-lang/src/__tests__/Renderer.test.ts
index 846eb9d82..728f42a76 100644
--- a/packages/svelte-lang/src/__tests__/Renderer.test.ts
+++ b/packages/svelte-lang/src/__tests__/Renderer.test.ts
@@ -1,7 +1,7 @@
import { render } from "@testing-library/svelte";
import { tick } from "svelte";
import { describe, expect, it, vi } from "vitest";
-import { z } from "zod";
+import { z } from "zod/v4";
import Renderer from "../lib/Renderer.svelte";
import { createLibrary, defineComponent } from "../lib/library.js";
diff --git a/packages/svelte-lang/src/__tests__/library.test.ts b/packages/svelte-lang/src/__tests__/library.test.ts
index 085abaf61..26e730b79 100644
--- a/packages/svelte-lang/src/__tests__/library.test.ts
+++ b/packages/svelte-lang/src/__tests__/library.test.ts
@@ -1,11 +1,11 @@
import { describe, expect, it } from "vitest";
-import { z } from "zod";
+import { z } from "zod/v4";
import { createLibrary, defineComponent } from "../lib/library.js";
// Dummy renderer — never actually called in these tests
const DummyComponent = (() => null) as any;
-function makeComponent(name: string, schema: z.ZodObject<any>, description: string) {
+function makeComponent(name: string, schema: z.ZodObject, description: string) {
return defineComponent({
name,
props: schema,
@@ -33,7 +33,7 @@ describe("defineComponent", () => {
expect(result.ref).toBeDefined();
});
- it("registers the Zod schema in the global registry", () => {
+ it("stores the component name for later registration by createLibrary", () => {
const schema = z.object({ title: z.string() });
const comp = defineComponent({
name: "Heading",
@@ -42,8 +42,9 @@ describe("defineComponent", () => {
component: DummyComponent,
});
- // After defineComponent, the schema should be in the global registry
- expect(z.globalRegistry.has(comp.props)).toBe(true);
+ // defineComponent defers registration to createLibrary
+ expect(comp.name).toBe("Heading");
+ expect(comp.props).toBe(schema);
});
});
diff --git a/packages/svelte-lang/src/lib/index.ts b/packages/svelte-lang/src/lib/index.ts
index c413e6a91..3fc5e3c1b 100644
--- a/packages/svelte-lang/src/lib/index.ts
+++ b/packages/svelte-lang/src/lib/index.ts
@@ -1,5 +1,6 @@
// ─── Component definition ───
+export { tagSchemaId } from "@openuidev/lang-core";
export { createLibrary, defineComponent } from "./library.js";
export type {
ComponentGroup,
diff --git a/packages/svelte-lang/src/lib/library.ts b/packages/svelte-lang/src/lib/library.ts
index 93c7f4e31..ecf8601e7 100644
--- a/packages/svelte-lang/src/lib/library.ts
+++ b/packages/svelte-lang/src/lib/library.ts
@@ -6,7 +6,8 @@ import {
type LibraryDefinition as CoreLibraryDefinition,
} from "@openuidev/lang-core";
import type { Component, Snippet } from "svelte";
-import { z } from "zod";
+import type { z } from "zod/v4";
+import type { $ZodObject } from "zod/v4/core";
// Re-export framework-agnostic types unchanged
export type { ComponentGroup, PromptOptions, SubComponentOf } from "@openuidev/lang-core";
@@ -20,7 +21,7 @@ export interface ComponentRenderProps<P = Record<string, unknown>> {
export type ComponentRenderer<P = Record<string, unknown>> = Component<ComponentRenderProps<P>>;
-export type DefinedComponent<T extends z.ZodObject<any> = z.ZodObject<any>> = CoreDefinedComponent<
+export type DefinedComponent<T extends $ZodObject = $ZodObject> = CoreDefinedComponent<
T,
ComponentRenderer<z.infer<T>>
>;
@@ -33,7 +34,7 @@ export type LibraryDefinition = CoreLibraryDefinition<ComponentRenderer<any>>;
/**
* Define a component with name, schema, description, and renderer.
- * Registers the Zod schema globally and returns a `.ref` for parent schemas.
+ * Returns a `.ref` for parent schemas.
*
* @example
* ```ts
@@ -45,7 +46,7 @@ export type LibraryDefinition = CoreLibraryDefinition<ComponentRenderer<any>>;
* });
* ```
*/
-export function defineComponent<T extends z.ZodObject<any>>(config: {
+export function defineComponent<T extends $ZodObject>(config: {
name: string;
props: T;
description: string;
diff --git a/packages/vue-lang/package.json b/packages/vue-lang/package.json
index f5cba65f9..47990c2b5 100644
--- a/packages/vue-lang/package.json
+++ b/packages/vue-lang/package.json
@@ -1,6 +1,6 @@
{
"name": "@openuidev/vue-lang",
- "version": "0.1.0",
+ "version": "0.1.1",
"description": "Define component libraries, generate LLM system prompts, and render streaming OpenUI Lang output in Vue 3 — the Vue runtime for OpenUI generative UI",
"license": "MIT",
"type": "module",
@@ -55,11 +55,11 @@
},
"author": "[email protected]",
"dependencies": {
- "@openuidev/lang-core": "workspace:^",
- "zod": "^4.0.0"
+ "@openuidev/lang-core": "workspace:^"
},
"peerDependencies": {
- "vue": ">=3.5.0"
+ "vue": ">=3.5.0",
+ "zod": "^3.25.0 || ^4.0.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.0",
diff --git a/packages/vue-lang/src/__tests__/Renderer.test.ts b/packages/vue-lang/src/__tests__/Renderer.test.ts
index 9e4655e27..10b7a9e88 100644
--- a/packages/vue-lang/src/__tests__/Renderer.test.ts
+++ b/packages/vue-lang/src/__tests__/Renderer.test.ts
@@ -1,7 +1,7 @@
import { mount } from "@vue/test-utils";
import { describe, expect, it, vi } from "vitest";
import { nextTick } from "vue";
-import { z } from "zod";
+import { z } from "zod/v4";
import Renderer from "../Renderer.vue";
import { createLibrary, defineComponent } from "../library.js";
diff --git a/packages/vue-lang/src/__tests__/library.test.ts b/packages/vue-lang/src/__tests__/library.test.ts
index cdc93e9e3..34e4f8a58 100644
--- a/packages/vue-lang/src/__tests__/library.test.ts
+++ b/packages/vue-lang/src/__tests__/library.test.ts
@@ -1,11 +1,11 @@
import { describe, expect, it } from "vitest";
-import { z } from "zod";
+import { z } from "zod/v4";
import { createLibrary, defineComponent } from "../library.js";
// Dummy renderer — never actually called in these tests
const DummyComponent = (() => null) as any;
-function makeComponent(name: string, schema: z.ZodObject<any>, description: string) {
+function makeComponent(name: string, schema: z.ZodObject, description: string) {
return defineComponent({
name,
props: schema,
@@ -33,7 +33,7 @@ describe("defineComponent", () => {
expect(result.ref).toBeDefined();
});
- it("registers the Zod schema in the global registry", () => {
+ it("stores the component name for later registration by createLibrary", () => {
const schema = z.object({ title: z.string() });
const comp = defineComponent({
name: "Heading",
@@ -42,8 +42,9 @@ describe("defineComponent", () => {
component: DummyComponent,
});
- // After defineComponent, the schema should be in the global registry
- expect(z.globalRegistry.has(comp.props)).toBe(true);
+ // defineComponent defers registration to createLibrary
+ expect(comp.name).toBe("Heading");
+ expect(comp.props).toBe(schema);
});
});
diff --git a/packages/vue-lang/src/index.ts b/packages/vue-lang/src/index.ts
index c4673208a..fc8111401 100644
--- a/packages/vue-lang/src/index.ts
+++ b/packages/vue-lang/src/index.ts
@@ -1,5 +1,6 @@
// ─── Component definition ───
+export { tagSchemaId } from "@openuidev/lang-core";
export { createLibrary, defineComponent } from "./library.js";
export type {
ComponentGroup,
diff --git a/packages/vue-lang/src/library.ts b/packages/vue-lang/src/library.ts
index e2cd923f7..0edb15000 100644
--- a/packages/vue-lang/src/library.ts
+++ b/packages/vue-lang/src/library.ts
@@ -6,7 +6,8 @@ import {
type LibraryDefinition as CoreLibraryDefinition,
} from "@openuidev/lang-core";
import type { Component, VNode } from "vue";
-import { z } from "zod";
+import type { z } from "zod/v4";
+import type { $ZodObject } from "zod/v4/core";
// Re-export framework-agnostic types unchanged
export type { ComponentGroup, PromptOptions, SubComponentOf } from "@openuidev/lang-core";
@@ -22,7 +23,7 @@ export interface ComponentRenderProps<P = Record<string, unknown>> {
export type ComponentRenderer<P = Record<string, unknown>> = Component<ComponentRenderProps<P>>;
-export type DefinedComponent<T extends z.ZodObject<any> = z.ZodObject<any>> = CoreDefinedComponent<
+export type DefinedComponent<T extends $ZodObject = $ZodObject> = CoreDefinedComponent<
T,
ComponentRenderer<z.infer<T>>
>;
@@ -35,7 +36,7 @@ export type LibraryDefinition = CoreLibraryDefinition<ComponentRenderer<any>>;
/**
* Define a component with name, schema, description, and renderer.
- * Registers the Zod schema globally and returns a `.ref` for parent schemas.
+ * Returns a `.ref` for parent schemas.
*
* @example
* ```ts
@@ -47,7 +48,7 @@ export type LibraryDefinition = CoreLibraryDefinition<ComponentRenderer<any>>;
* });
* ```
*/
-export function defineComponent<T extends z.ZodObject<any>>(config: {
+export function defineComponent<T extends $ZodObject>(config: {
name: string;
props: T;
description: string;
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3d320aaf1..4a4417f6e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -76,7 +76,7 @@ importers:
fumadocs-mdx:
specifier: 14.2.8
fumadocs-ui:
specifier: 16.6.5
@@ -280,7 +280,7 @@ importers:
version: 0.0.45
'@ag-ui/mastra':
specifier: ^1.0.1
- version: 1.0.1(bbc4a4a519e688b652564e635eb7202d)
+ version: 1.0.1(xhyy76ti5symu4vnvlot2oytyq)
'@mastra/core':
specifier: 1.15.0
@@ -1040,7 +1040,7 @@ importers:
packages/lang-core:
dependencies:
zod:
- specifier: ^4.0.0
+ specifier: ^3.25.0 || ^4.0.0
version: 4.3.6
devDependencies:
'@modelcontextprotocol/sdk':
@@ -1084,7 +1084,7 @@ importers:
specifier: '>=19.0.0'
version: 19.2.4([email protected])
zod:
- specifier: ^4.3.6
+ specifier: ^3.25.0 || ^4.0.0
version: 4.3.6
devDependencies:
'@types/react':
@@ -1125,7 +1125,7 @@ importers:
specifier: '>=19.0.0'
version: 19.2.4
zod:
- specifier: ^4.0.0
+ specifier: ^3.25.0 || ^4.0.0
version: 4.3.6
devDependencies:
'@modelcontextprotocol/sdk':
@@ -1240,7 +1240,7 @@ importers:
specifier: ^1.3.3
version: 1.3.3
zod:
- specifier: ^4.3.6
+ specifier: ^3.25.0 || ^4.0.0
version: 4.3.6
zustand:
specifier: ^4.5.5
@@ -1367,7 +1367,7 @@ importers:
specifier: workspace:^
version: link:../lang-core
zod:
- specifier: ^4.0.0
+ specifier: ^3.25.0 || ^4.0.0
version: 4.3.6
devDependencies:
'@sveltejs/package':
@@ -1404,7 +1404,7 @@ importers:
specifier: workspace:^
version: link:../lang-core
zod:
- specifier: ^4.0.0
+ specifier: ^3.25.0 || ^4.0.0
version: 4.3.6
devDependencies:
'@vitejs/plugin-vue':
@@ -3409,105 +3409,89 @@ packages:
resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==}
@@ -3920,14 +3904,12 @@ packages:
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-U6vtblPtU/P14Y/b/n9ZY0GOxbbIhTFuaFR7F4/uMBidCi2nSdaOFhA0Go81L61Zd6527+yvuX44T4ksnf8T+Q==}
@@ -3941,14 +3923,12 @@ packages:
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-/YV0LgjHUmfhQpn9bVoGc4x4nan64pkhWR5wyEV8yCOfwwrH630KpvRg86olQHTwHIn1z59uh6JwKvHq1h4QEw==}
@@ -3962,14 +3942,12 @@ packages:
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-/HiWEcp+WMZ7VajuiMEFGZ6cg0+aYZPqCJD3YJEfpVWQsKYSjXQG06vJP6F1rdA03COD9Fef4aODs3YxKx+RDQ==}
@@ -3983,14 +3961,12 @@ packages:
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-Kt44hGJfZSefebhk/7nIdivoDr3Ugp5+oNz9VvF3GUtfxutucUIHfIO0ZYO8QlOPDQloUVQn4NVC/9JvHRk9hw==}
@@ -4399,56 +4375,48 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@oxc-minify/[email protected]':
resolution: {integrity: sha512-C3zapJconWpl2Y7LR3GkRkH6jxpuV2iVUfkFcHT5Ffn4Zu7l88mZa2dhcfdULZDybN1Phka/P34YUzuskUUrXw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@oxc-minify/[email protected]':
resolution: {integrity: sha512-2T/Bm+3/qTfuNS4gKSzL8qbiYk+ErHW2122CtDx+ilZAzvWcJ8IbqdZIbEWOlwwe03lESTxPwTBLFqVgQU2OeQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@oxc-minify/[email protected]':
resolution: {integrity: sha512-MKLjpldYkeoB4T+yAi4aIAb0waifxUjLcKkCUDmYAY3RqBJTvWK34KtfaKZL0IBMIXfD92CbKkcxQirDUS9Xcg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@oxc-minify/[email protected]':
resolution: {integrity: sha512-UFVcbPvKUStry6JffriobBp8BHtjmLLPl4bCY+JMxIn/Q3pykCpZzRwFTcDurG/kY8tm+uSNfKKdRNa5Nh9A7g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@oxc-minify/[email protected]':
resolution: {integrity: sha512-B9GyPQ1NKbvpETVAMyJMfRlD3c6UJ7kiuFUAlx9LTYiQL+YIyT6vpuRlq1zgsXxavZluVrfeJv6x0owV4KDx4Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@oxc-minify/[email protected]':
resolution: {integrity: sha512-fXfhtr+WWBGNy4M5GjAF5vu/lpulR4Me34FjTyaK9nDrTZs7LM595UDsP1wliksqp4hD/KdoqHGmbCrC+6d4vA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@oxc-minify/[email protected]':
resolution: {integrity: sha512-jFBgGbx1oLadb83ntJmy1dWlAHSQanXTS21G4PgkxyONmxZdZ/UMKr7KsADzMuoPsd2YhJHxzRpwJd9U+4BFBw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [musl]
'@oxc-minify/[email protected]':
resolution: {integrity: sha512-nxPd9vx1vYz8IlIMdl9HFdOK/ood1H5hzbSFsyO8JU55tkcJoBL8TLCbuFf9pHpOy27l2gcPyV6z3p4eAcTH5Q==}
@@ -4526,56 +4494,48 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-QagKTDF4lrz8bCXbUi39Uq5xs7C7itAseKm51f33U+Dyar9eJY/zGKqfME9mKLOiahX7Fc1J3xMWVS0AdDXLPg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-RPddpcE/0xxWaommWy0c5i/JdrXcXAkxBS2GOrAUh5LKmyCh03hpJedOAWszG4ADsKQwoUQQ1/tZVGRhZIWtKA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-ur/WVZF9FSOiZGxyP+nfxZzuv6r5OJDYoVxJnUR7fM/hhXLh4V/be6rjbzm9KLCDBRwYCEKJtt+XXNccwd06IA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-ujGcAx8xAMvhy7X5sBFi3GXML1EtyORuJZ5z2T6UV3U416WgDX/4OCi3GnoteeenvxIf6JgP45B+YTHpt71vpA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-hbsfKjUwRjcMZZvvmpZSc+qS0bHcHRu8aV/I3Ikn9BzOA0ZAgUE7ctPtce5zCU7bM8dnTLi4sJ1Pi9YHdx6Urw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-1QrTrf8rige7UPJrYuDKJLQOuJlgkt+nRSJLBMHWNm9TdivzP48HaK3f4q18EjNlglKtn03lgjMu4fryDm8X4A==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-gRvK6HPzF5ITRL68fqb2WYYs/hGviPIbkV84HWCgiJX+LkaOpp+HIHQl3zVZdyKHwopXToTbXbtx/oFjDjl8pg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [musl]
'@oxc-parser/[email protected]':
resolution: {integrity: sha512-QPJvFbnnDZZY7xc+xpbIBWLThcGBakwaYA9vKV8b3+oS5MGfAZUoTFJcix5+Zg2Ri46sOfrUim6Y6jsKNcssAQ==}
@@ -4659,56 +4619,48 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@oxc-transform/[email protected]':
resolution: {integrity: sha512-ykxpPQp0eAcSmhy0Y3qKvdanHY4d8THPonDfmCoktUXb6r0X6qnjpJB3V+taN1wevW55bOEZd97kxtjTKjqhmg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@oxc-transform/[email protected]':
resolution: {integrity: sha512-Rvspti4Kr7eq6zSrURK5WjscfWQPvmy/KjJZV45neRKW8RLonE3r9+NgrwSLGoHvQ3F24fbqlkplox1RtlhH5A==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@oxc-transform/[email protected]':
resolution: {integrity: sha512-Dr2ZW9ZZ4l1eQ5JUEUY3smBh4JFPCPuybWaDZTLn3ADZjyd8ZtNXEjeMT8rQbbhbgSL9hEgbwaqraole3FNThQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@oxc-transform/[email protected]':
resolution: {integrity: sha512-oD1Bnes1bIC3LVBSrWEoSUBj6fvatESPwAVWfJVGVQlqWuOs/ZBn1e4Nmbipo3KGPHK7DJY75r/j7CQCxhrOFQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@oxc-transform/[email protected]':
resolution: {integrity: sha512-qT//IAPLvse844t99Kff5j055qEbXfwzWgvCMb0FyjisnB8foy25iHZxZIocNBe6qwrCYWUP1M8rNrB/WyfS1Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@oxc-transform/[email protected]':
resolution: {integrity: sha512-2YEO5X+KgNzFqRVO5dAkhjcI5gwxus4NSWVl/+cs2sI6P0MNPjqE3VWPawl4RTC11LvetiiZdHcujUCPM8aaUw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@oxc-transform/[email protected]':
resolution: {integrity: sha512-3wqWbTSaIFZvDr1aqmTul4cg8PRWYh6VC52E8bLI7ytgS/BwJLW+sDUU2YaGIds4sAf/1yKeJRmudRCDPW9INg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [musl]
'@oxc-transform/[email protected]':
resolution: {integrity: sha512-Ebxx6NPqhzlrjvx4+PdSqbOq+li0f7X59XtJljDghkbJsbnkHvhLmPR09ifHt5X32UlZN63ekjwcg/nbmHLLlA==}
@@ -4768,42 +4720,36 @@ packages:
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==}
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-byAiBZ1t3tXQvc8dMD/eoyE7lTXYorhn+6uVW5AC+JGI1KtJC/LvDche5cfUE+qiefH+Ybq0bUCJU0aB1cSHUA==}
@@ -6725,42 +6671,36 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@rolldown/[email protected]':
resolution: {integrity: sha512-V6/wZztnBqlx5hJQqNWwFdxIKN0m38p8Jas+VoSfgH54HSj9tKTt1dZvG6JRHcjh6D7TvrJPWFGaY9UBVOaWPw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@rolldown/[email protected]':
resolution: {integrity: sha512-AP3E9BpcUYliZCxa3w5Kwj9OtEVDYK6sVoUzy4vTOJsjPOgdaJZKFmN4oOlX0Wp0RPV2ETfmIra9x1xuayFB7g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@rolldown/[email protected]':
resolution: {integrity: sha512-nWwpvUSPkoFmZo0kQazZYOrT7J5DGOJ/+QHHzjvNlooDZED8oH82Yg67HvehPPLAg5fUff7TfWFHQS8IV1n3og==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@rolldown/[email protected]':
resolution: {integrity: sha512-RNrafz5bcwRy+O9e6P8Z/OCAJW/A+qtBczIqVYwTs14pf4iV1/+eKEjdOUta93q2TsT/FI0XYDP3TCky38LMAg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@rolldown/[email protected]':
resolution: {integrity: sha512-Jpw/0iwoKWx3LJ2rc1yjFrj+T7iHZn2JDg1Yny1ma0luviFS4mhAIcd1LFNxK3EYu3DHWCps0ydXQ5i/rrJ2ig==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
- libc: [musl]
'@rolldown/[email protected]':
resolution: {integrity: sha512-vRugONE4yMfVn0+7lUKdKvN4D5YusEiPilaoO2sgUWpCvrncvWgPMzK00ZFFJuiPgLwgFNP5eSiUlv2tfc+lpA==}
@@ -6927,145 +6867,121 @@ packages:
resolution: {integrity: sha512-gTJ/JnnjCMc15uwB10TTATBEhK9meBIY+gXP4s0sHD1zHOaIh4Dmy1X9wup18IiY9tTNk5gJc4yx9ctj/fjrIw==}
cpu: [arm]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-L+34Qqil+v5uC0zEubW7uByo78WOCIrBvci69E7sFASRl0X7b/MB6Cqd1lky/CtcSVTydWa2WZwFuWexjS5o6g==}
cpu: [arm]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-ZJ3gZynL1LDSIvRfz0qXtTNs56n5DI2Mq+WACWZ7yGHFUEirHBRt7fyIk0NsCKhmRhn7WAcjgSkSVVxKlPNFFw==}
cpu: [arm]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-n83O8rt4v34hgFzlkb1ycniJh7IR5RCIqt6mz1VRJD6pmhRi0CXdmfnLu9dIUS6buzh60IvACM842Ffb3xd6Gg==}
cpu: [arm]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-8FnkipasmOOSSlfucGYEu58U8cxEdhziKjPD2FIa0ONVMxvl/hmONtX/7y4vGjdUhjcTHlKlDhw3H9t98fPvyA==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-Nql7sTeAzhTAja3QXeAI48+/+GjBJ+QmAH13snn0AJSNL50JsDqotyudHyMbO2RbJkskbMbFJfIJKWA6R1LCJQ==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-KPPyAdlcIZ6S9C3S2cndXDkV0Bb1OSMsX0Eelr2Bay4EsF9yi9u9uzc9RniK3mcUGCLhWY9oLr6er80P5DE6XA==}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-+pUymDhd0ys9GcKZPPWlFiZ67sTWV5UU6zOJat02M1+PiuSGDziyRuI/pPue3hoUwm2uGfxdL+trT6Z9rxnlMA==}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-VSvgvQeIcsEvY4bKDHEDWcpW4Yw7BtlKG1GUT4FzBUlEKQK0rWHYBqQt6Fm2taXS+1bXvJT6kICu5ZwqKCnvlQ==}
cpu: [loong64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-4LqhUomJqwe641gsPp6xLfhqWMbQV04KtPp7/dIp0nzPxAkNY1AbwL5W0MQpcalLYk07vaW9Kp1PBhdpZYYcEw==}
cpu: [loong64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-HPGDIH0/ZzAZjvtlXj6g+KDQ9ZMHfSP553za7o2Odegb/BEfwJcR0Sw0RLNpQ9nC6Gy8s+3mSS9xjZ0n3rhcYg==}
cpu: [loong64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-gEmwbOws4U4GLAJDhhtSPWPXUzDfMRedT3hFMyRAvM9Mrnj+dJIFIeL7otsv2WF3D7GrV0GIewW0y28dOYWkmw==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-tLQQ9aPvkBxOc/EUT6j3pyeMD6Hb8QF2BTBnCQWP/uu1lhc9AIrIjKnLYMEroIz/JvtGYgI9dF3AxHZNaEH0rw==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-RMxFhJwc9fSXP6PqmAz4cbv3kAyvD1etJFjTx4ONqFP9DkTkXsAMU4v3Vyc5BgzC+anz7nS/9tp4obsKfqkDHg==}
cpu: [ppc64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-XXKvo2e+wFtXZF/9xoWohHg+MuRnvO29TI5Hqe9xwN5uN8NKUYy7tXUG3EZAlfchufNCTHNGjEx7uN78KsBo0g==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-QKgFl+Yc1eEk6MmOBfRHYF6lTxiiiV3/z/BRrbSiW2I7AFTXoBFvdMEyglohPj//2mZS4hDOqeB0H1ACh3sBbg==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-ruf3hPWhjw6uDFsOAzmbNIvlXFXlBQ4nk57Sec8E8rUxs/AI4HD6xmiiasOOx/3QxS2f5eQMKTAwk7KHwpzr/Q==}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-RAjXjP/8c6ZtzatZcA1RaQr6O1TRhzC+adn8YZDnChliZHviqIjmvFwHcxi4JKPSDAt6Uhf/7vqcBzQJy0PDJg==}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-QmNIAqDiEMEvFV15rsSnjoSmO0+eJLoKRD9EAa9rrYNwO/XRCtOGM3A5A0X+wmG+XRrw9Fxdsw+LnyYiZWWcVw==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-wcuocpaOlaL1COBYiA89O6yfjlp3RwKDeTIA0hM7OpmhR1Bjo9j31G1uQVpDlTvwxGn2nQs65fBFL5UFd76FcQ==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-jAHr/S0iiBtFyzjhOkAics/2SrXE092qyqEg96e90L3t9Op8OTzS6+IX0Fy5wCt2+KqeHAkti+eitV0wvblEoQ==}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-77PpsFQUCOiZR9+LQEFg9GClyfkNXj1MP6wRnzYs0EeWbPcHs02AXu4xuUbM1zhwn3wqaizle3AEYg5aeoohhg==}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-3yATWgdeXyuHtBhrLt98w+5fKurdqvs8B53LaoKD7P7H7FKOONLsBVMNl9ghPQZQuYcceV5CDyPfyfGpMWD9mQ==}
cpu: [x64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-5cIATbk5vynAjqqmyBjlciMJl1+R/CwX9oLk/EyiFXDWd95KpHdrOJT//rnUl4cUcskrd0jCCw3wpZnhIHdD9w==}
cpu: [x64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-cl0w09WsCi17mcmWqqglez9Gk8isgeWvoUZ3WiJFYSR3zjBQc2J5/ihSjpl+VLjPqjQ/1hJRcqBfLjssREQILw==}
@@ -7564,56 +7480,48 @@ packages:
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-4og1V+ftEPXGttOO7eCmW7VICmzzJWgMx+QXAJRAhjrSjumCwWqMfkDrNu1LXEQzNAwz28NCUpucgQPrR4S2yw==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-WZA0CHRL/SP1TRbA5mp9htsppSEkWuQ4KsSUumYQnyl8ZdT39ntwqmz4IUHGN6p4XdSlYfJwM4rRzZLShHsGAQ==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-oCfG/mS+/+XRlwNjnsNLVwnMWYH7tn/kYPsNPh+JSOMlnt93mYNCKHYzylRhI51X+TbR+ufNhhKKzm6QkqX8ag==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-qMFzxI2YlBOLW5PhblzuSWlWfwLHaneBE0xHzLrBgNtqN6mWfs+qYbhryGSXQjFYB1Dzf5w+LN5qbUTPhW7Y5g==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-rTAGAkDgqbXHNp/xW0iugLVmX62wOp2PoE39BTCGKjv3Iocf6AFbRP/wZT/kuCxC9QBh9Pu8XPkv/zCZB2mcMg==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-5r1X2FKnCMUPlXTWRYpHdPYUY6a1Ar/t7P24OuiEdEOmms5lyqjDRvVY1yy9Rmioh+AunQ0rWiOTPE8F9A3v5g==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
- libc: [musl]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-XW3t3qwbIwiSyRCggeO2zxe3KWaEbM0/kW9e8+0XpBgyKU4ATYzcVSMKteZJ1iukJ3HgHBjbg9P5YPRCVUxlnQ==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
- libc: [musl]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-MGFB5cVPvshR85MTJkEvqDUnuNoysrsRxd6vnk1Lf2tbiqNlXpHYZqkqOQalydienEWOHHFyyuTSYRsLfxFJ2Q==}
@@ -7696,28 +7604,24 @@ packages:
engines: {node: '>= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@takumi-rs/[email protected]':
resolution: {integrity: sha512-4CiEF518wDnujF0fjql2XN6uO+OXl0svy0WgAF2656dCx2gJtWscaHytT2rsQ0ZmoFWE0dyWcDW1g/FBVPvuvA==}
engines: {node: '>= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0'}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@takumi-rs/[email protected]':
resolution: {integrity: sha512-jm8lTe2E6Tfq2b97GJC31TWK1JAEv+MsVbvL9DCLlYcafgYFlMXDUnOkZFMjlrmh0HcFAYDaBkniNDgIQfXqzg==}
engines: {node: '>= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0'}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@takumi-rs/[email protected]':
resolution: {integrity: sha512-nbdzQgC4ywzltDDV1fer1cKswwGE+xXZHdDiacdd7RM5XBng209Bmo3j1iv9dsX+4xXhByzCCGbxdWhhHqVXmw==}
engines: {node: '>= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0'}
cpu: [x64]
os: [linux]
- libc: [musl]
'@takumi-rs/[email protected]':
resolution: {integrity: sha512-kE4F0LRmuhSwiNkFG7dTY9ID8+B7zb97QedyN/IO2fBJmRQDkqCGcip2gloh8YPPhCuKGjCqqqh2L+Tg9PKW7w==}
@@ -8146,8 +8050,8 @@ packages:
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
- '@unhead/[email protected]':
- resolution: {integrity: sha512-zEWqg0nZM8acpuTZE40wkeUl8AhIe0tU0OkilVi1D4fmVjACrwoh5HP6aNqJ8kUnKsoy6D+R3Vi/O+fmdNGO7g==}
+ '@unhead/[email protected]':
+ resolution: {integrity: sha512-HYy0shaHRnLNW9r85gppO8IiGz0ONWVV3zGdlT8CQ0tbTwixznJCIiyqV4BSV1aIF1jJIye0pd1p/k6Eab8Z/A==}
peerDependencies:
vue: '>=3.5.18'
@@ -8190,49 +8094,41 @@ packages:
resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==}
cpu: [riscv64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==}
@@ -11936,56 +11832,48 @@ packages:
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==}
@@ -15137,8 +15025,8 @@ packages:
resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==}
- resolution: {integrity: sha512-iTHdWD9ztTunOErtfUFk6Wr11BxvzumcYJ0CzaSCBUOEtg+DUZ9+gnE99i8QkLFT2q1rZD48BYYGXpOZVDLYkA==}
+ resolution: {integrity: sha512-jO9M1sI6b2h/1KpIu4Jeu+ptumLmUKboRRLxys5pYHFeT+lqTzfNHbYUX9bxVDhC1FBszAGuWcUVlmvIPsah8Q==}
resolution: {integrity: sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==}
@@ -16154,12 +16042,12 @@ snapshots:
'@ag-ui/core': 0.0.49
'@ag-ui/proto': 0.0.49
dependencies:
'@ag-ui/client': 0.0.46
'@ag-ui/core': 0.0.46
- '@langchain/core': 0.3.80(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))
+ '@langchain/core': 0.3.80(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected]))
+ '@langchain/langgraph-sdk': 0.1.10(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])))([email protected]([email protected]))([email protected])
partial-json: 0.1.7
rxjs: 7.8.1
transitivePeerDependencies:
@@ -16170,12 +16058,12 @@ snapshots:
- react
- react-dom
- '@ag-ui/[email protected](bbc4a4a519e688b652564e635eb7202d)':
+ '@ag-ui/[email protected](xhyy76ti5symu4vnvlot2oytyq)':
dependencies:
'@ag-ui/client': 0.0.49
'@ag-ui/core': 0.0.45
'@ai-sdk/ui-utils': 1.2.11([email protected])
rxjs: 7.8.1
@@ -17218,19 +17106,19 @@ snapshots:
'@colors/[email protected]':
optional: true
dependencies:
'@ag-ui/client': 0.0.46
'@ag-ui/core': 0.0.46
'@ai-sdk/anthropic': 2.0.71([email protected])
'@ai-sdk/openai': 2.0.101([email protected])
'@copilotkit/shared': 0.0.0-mme-ag-ui-0-0-46-20260227141603(@ag-ui/[email protected])
'@copilotkitnext/agent': 0.0.0-mme-ag-ui-0-0-46-20260227141603(@cfworker/[email protected])
- '@copilotkitnext/runtime': 0.0.0-mme-ag-ui-0-0-46-20260227141603(@ag-ui/[email protected])(@ag-ui/[email protected])(@ag-ui/[email protected])(@copilotkitnext/[email protected])
+ '@copilotkitnext/runtime': 0.0.0-mme-ag-ui-0-0-46-20260227141603(@ag-ui/[email protected])(@ag-ui/[email protected])(@ag-ui/[email protected])(@copilotkitnext/[email protected])
'@graphql-yoga/plugin-defer-stream': 3.19.0([email protected]([email protected]))([email protected])
'@hono/node-server': 1.19.12([email protected])
- '@langchain/core': 0.3.80(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))
+ '@langchain/core': 0.3.80(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected]))
'@scarf/scarf': 1.4.0
ai: 5.0.161([email protected])
class-transformer: 0.5.1
@@ -17247,8 +17135,8 @@ snapshots:
zod: 3.25.76
optionalDependencies:
+ '@langchain/langgraph-sdk': 0.1.10(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])))([email protected]([email protected]))([email protected])
+ openai: 4.104.0([email protected])
transitivePeerDependencies:
- '@ag-ui/encoder'
- '@cfworker/json-schema'
@@ -17287,11 +17175,11 @@ snapshots:
- '@cfworker/json-schema'
- supports-color
- '@copilotkitnext/[email protected](@ag-ui/[email protected])(@ag-ui/[email protected])(@ag-ui/[email protected])(@copilotkitnext/[email protected])':
+ '@copilotkitnext/[email protected](@ag-ui/[email protected])(@ag-ui/[email protected])(@ag-ui/[email protected])(@copilotkitnext/[email protected])':
dependencies:
'@ag-ui/client': 0.0.46
'@ag-ui/core': 0.0.46
- '@ag-ui/encoder': 0.0.46
+ '@ag-ui/encoder': 0.0.49
'@copilotkitnext/shared': 0.0.0-mme-ag-ui-0-0-46-20260227141603
cors: 2.8.6
express: 4.22.1
@@ -18706,14 +18594,14 @@ snapshots:
'@kwsites/[email protected]': {}
dependencies:
'@cfworker/json-schema': 4.1.1
ansi-styles: 5.2.0
camelcase: 6.3.0
decamelize: 1.2.0
js-tiktoken: 1.0.21
- langsmith: 0.3.87(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))
+ langsmith: 0.3.87(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected]))
mustache: 4.2.0
p-queue: 6.6.2
p-retry: 4.6.2
@@ -18726,14 +18614,14 @@ snapshots:
- '@opentelemetry/sdk-trace-base'
- openai
dependencies:
'@types/json-schema': 7.0.15
p-queue: 6.6.2
p-retry: 4.6.2
uuid: 9.0.1
optionalDependencies:
- '@langchain/core': 0.3.80(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected])([email protected]))
+ '@langchain/core': 0.3.80(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected]([email protected]))
react: 19.2.3
react-dom: 19.2.3([email protected])
@@ -19237,7 +19125,7 @@ snapshots:
dependencies:
'@nuxt/devalue': 2.0.2
'@nuxt/kit': 3.21.2([email protected])
- '@unhead/vue': 2.1.12([email protected]([email protected]))
+ '@unhead/vue': 2.1.13([email protected]([email protected]))
'@vue/shared': 3.5.31
consola: 3.4.2
defu: 6.1.4
@@ -19316,7 +19204,7 @@ snapshots:
rc9: 3.0.0
std-env: 3.10.0
- '@nuxt/[email protected](cda632d3acfa8c47554ee5be1e146aef)':
+ '@nuxt/[email protected](thirvmyz7u7sotpvl5josuvsem)':
dependencies:
'@nuxt/kit': 3.21.2([email protected])
'@rollup/plugin-replace': 6.0.3([email protected])
@@ -24635,10 +24523,10 @@ snapshots:
'@ungap/[email protected]': {}
dependencies:
hookable: 6.1.0
- unhead: 2.1.12
+ unhead: 2.1.13
vue: 3.5.31([email protected])
@@ -27072,7 +26960,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
debug: 3.2.7
optionalDependencies:
@@ -27094,7 +26982,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.29.0([email protected])
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
@@ -27803,7 +27691,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@mdx-js/mdx': 3.1.1
'@standard-schema/spec': 1.1.0
@@ -28983,7 +28871,7 @@ snapshots:
vscode-languageserver-textdocument: 1.0.12
vscode-uri: 3.1.0
dependencies:
'@types/uuid': 10.0.0
chalk: 4.1.2
@@ -28994,7 +28882,7 @@ snapshots:
optionalDependencies:
'@opentelemetry/api': 1.9.0
'@opentelemetry/sdk-trace-base': 2.2.0(@opentelemetry/[email protected])
+ openai: 4.104.0([email protected])
@@ -30593,8 +30481,8 @@ snapshots:
'@nuxt/schema': 3.21.2
'@nuxt/telemetry': 2.7.0(@nuxt/[email protected]([email protected]))
- '@nuxt/vite-builder': 3.21.2(cda632d3acfa8c47554ee5be1e146aef)
- '@unhead/vue': 2.1.12([email protected]([email protected]))
+ '@nuxt/vite-builder': 3.21.2(thirvmyz7u7sotpvl5josuvsem)
+ '@unhead/vue': 2.1.13([email protected]([email protected]))
'@vue/shared': 3.5.31
c12: 3.3.3([email protected])
chokidar: 5.0.0
@@ -30858,7 +30746,7 @@ snapshots:
is-docker: 2.2.1
is-wsl: 2.2.0
dependencies:
'@types/node': 18.19.130
'@types/node-fetch': 2.6.11
@@ -30869,12 +30757,11 @@ snapshots:
node-fetch: 2.7.0
optionalDependencies:
ws: 8.20.0
- zod: 3.25.76
+ zod: 4.3.6
transitivePeerDependencies:
- encoding
- optional: true
dependencies:
'@types/node': 18.19.130
'@types/node-fetch': 2.6.11
@@ -30884,10 +30771,10 @@ snapshots:
formdata-node: 4.4.1
node-fetch: 2.7.0
optionalDependencies:
- ws: 8.20.0
- zod: 4.3.6
+ zod: 3.25.76
transitivePeerDependencies:
- encoding
+ optional: true
optionalDependencies:
@@ -33714,7 +33601,7 @@ snapshots:
dependencies:
pathe: 2.0.3
dependencies:
hookable: 6.1.0