The Open Standard for Generative UI
refactor(examples): reorganize and streamline examples (#1073)
Visharad Kashyapd90653a89962
diff --git a/.github/workflows/build-js.yml b/.github/workflows/build-js.ymlindex a62ab9077..7a8ac41f5 100644--- a/.github/workflows/build-js.yml+++ b/.github/workflows/build-js.yml@@ -51,5 +51,5 @@ jobs:- name: Install dependenciesrun: pnpm install --frozen-lockfile- - name: Build examples- run: pnpm --filter "./examples/**" --workspace-concurrency=1 run build+ - name: Verify examples+ run: pnpm examples:verifydiff --git a/ADOPTERS.md b/ADOPTERS.mdindex 0ad6005ec..416f6159b 100644--- a/ADOPTERS.md+++ b/ADOPTERS.md@@ -44,11 +44,11 @@ Frameworks that integrate with, support, or generate OpenUI interfaces.- **LangChain** — Generates and renders interactive OpenUI dashboards and reports in LangChain and LangGraph applications.- Status: `Official integration`- - [Documentation](https://docs.langchain.com/oss/python/langchain/frontend/integrations/openui) · [Example](https://github.com/thesysdev/openui/tree/main/examples/langchain-chat)+ - [Documentation](https://docs.langchain.com/oss/python/langchain/frontend/integrations/openui) · [Example](https://github.com/thesysdev/openui/tree/main/examples/agent-frameworks/langchain)- **Mastra** — Connects Mastra agent backends to OpenUI's Agent Interface over AG-UI for streaming tool-powered generative interfaces.- Status: `Official integration`- - [Documentation](https://mastra.ai/docs) · [Example](https://github.com/thesysdev/openui/tree/main/examples/mastra-chat)+ - [Documentation](https://mastra.ai/docs) · [Example](https://github.com/thesysdev/openui/tree/main/examples/agent-frameworks/mastra)## How to add an entrydiff --git a/README.md b/README.mdindex 1d05f6ed4..0a5bcd439 100644--- a/README.md+++ b/README.md@@ -169,8 +169,12 @@ openui/│ └── openui-cli/ # CLI for scaffolding & prompt generation├── skills/│ └── openui/ # Claude Code skill for AI-assisted development-├── examples/-│ └── openui-chat/ # Full working example app (Next.js)+├── examples/ # Capability and integration reference implementations+│ ├── agent-frameworks/+│ ├── app-frameworks/+│ ├── design-systems/+│ ├── harnesses/+│ └── miscellaneous/├── docs/ # Documentation site (openui.com)└── benchmarks/ # Token efficiency benchmarks```@@ -178,7 +182,8 @@ openui/Good places to start:- [openui.com](https://openui.com) for the full docs-- [`examples/openui-chat`](./examples/openui-chat) for a working app+- [Quickstart](https://www.openui.com/docs/agent/getting-started/quickstart) to scaffold a working app+- [`examples/README.md`](./examples/README.md) to find a focused reference implementation- [`CONTRIBUTING.md`](./CONTRIBUTING.md) if you want to contribute## Communitydiff --git a/docs/app/(home)/integrations/data.ts b/docs/app/(home)/integrations/data.tsindex b359dfc5f..5f4c499b5 100644--- a/docs/app/(home)/integrations/data.ts+++ b/docs/app/(home)/integrations/data.ts@@ -86,7 +86,7 @@ const integrationCatalog: Integration[] = [howItWorks:"Each shadcn component is registered with defineComponent and a Zod prop schema. createLibrary produces both the prompt vocabulary and the renderer mapping used by the example chat app.",links: [- { label: "Integration guide", href: "/docs/openui-lang/examples/shadcn-chat", kind: "Guide" },+ { label: "Integration guide", href: "/docs/openui-lang/examples/design-systems/shadcn", kind: "Guide" },exampleLink("shadcn-chat"),{ label: "shadcn/ui", href: "https://ui.shadcn.com", kind: "Website" },],@@ -296,7 +296,7 @@ const integrationCatalog: Integration[] = [links: [{label: "Integration guide",- href: "/docs/openui-lang/examples/harnesses/vercel-eve",+ href: "/docs/openui-lang/examples/agent-frameworks/vercel-eve",kind: "Guide",},exampleLink("harnesses/vercel-eve", "OpenUI harness"),@@ -316,7 +316,7 @@ const integrationCatalog: Integration[] = [links: [{label: "Integration guide",- href: "/docs/openui-lang/examples/harnesses/pi-agent-harness",+ href: "/docs/openui-lang/examples/harnesses/pi",kind: "Guide",},exampleLink("harnesses/pi-agent-harness", "OpenUI harness"),@@ -381,7 +381,7 @@ const integrationCatalog: Integration[] = [links: [{label: "Integration guide",- href: "/docs/openui-lang/examples/react-native",+ href: "/docs/openui-lang/examples/app-frameworks/react-native",kind: "Guide",},exampleLink("openui-react-native"),diff --git a/docs/app/(home)/lab/page.tsx b/docs/app/(home)/lab/page.tsxindex 7c35d147d..476efac6b 100644--- a/docs/app/(home)/lab/page.tsx+++ b/docs/app/(home)/lab/page.tsx@@ -263,10 +263,14 @@ const projects: ProjectItem[] = [links: [{label: "GitHub",- href: "https://github.com/thesysdev/openui/tree/main/examples/openui-react-native",+ href: "https://github.com/thesysdev/openui/tree/main/examples/app-frameworks/react-native",+ external: true,+ },+ {+ label: "Docs",+ href: "/docs/openui-lang/examples/app-frameworks/react-native",external: true,},- { label: "Docs", href: "/docs/openui-lang/examples/react-native", external: true },],},{@@ -280,7 +284,7 @@ const projects: ProjectItem[] = [links: [{label: "GitHub",- href: "https://github.com/thesysdev/openui/tree/main/examples/fastapi-backend",+ href: "https://github.com/thesysdev/openui/tree/main/examples/app-frameworks/fastapi",external: true,},],diff --git a/docs/app/(home)/sections/PossibilitiesSection/PossibilitiesSection.tsx b/docs/app/(home)/sections/PossibilitiesSection/PossibilitiesSection.tsxindex daea8f361..6748b9215 100644--- a/docs/app/(home)/sections/PossibilitiesSection/PossibilitiesSection.tsx+++ b/docs/app/(home)/sections/PossibilitiesSection/PossibilitiesSection.tsx@@ -26,7 +26,7 @@ const CARDS: readonly CardImageSet[] = [title: "Conversational Apps",lightImage: "/homepage/conversational-apps-light.png",darkImage: "/homepage/conversational-apps-dark.png",- href: "https://github.com/thesysdev/openui/tree/main/examples/openui-chat",+ href: "/docs/agent/getting-started/quickstart",},{title: "Dashboards & Web-apps",@@ -37,7 +37,7 @@ const CARDS: readonly CardImageSet[] = [title: "Mobile Apps",lightImage: "/homepage/mobile-light.png",darkImage: "/homepage/mobile-dark.png",- href: "https://github.com/thesysdev/openui/tree/main/examples/openui-react-native",+ href: "https://github.com/thesysdev/openui/tree/main/examples/app-frameworks/react-native",},{title: "Bottom trays",diff --git a/docs/content/blog/state-of-generative-ui-report.mdx b/docs/content/blog/state-of-generative-ui-report.mdxindex 5af947a6a..e121c9ba8 100644--- a/docs/content/blog/state-of-generative-ui-report.mdx+++ b/docs/content/blog/state-of-generative-ui-report.mdx@@ -163,7 +163,7 @@ The result is that the spectrum becomes per-component rather than per-applicatioThis also keeps the governance story simple. The security review localizes to one component instead of the entire output surface, prompt guidance can steer the model toward catalog primitives first, and deployments that don't want arbitrary generation can omit the component from the catalog entirely; the same mechanism that enables the escape hatch is the mechanism that disables it.-OpenUI ships a working implementation of this pattern: [`examples/html-artifact`](https://github.com/thesysdev/openui/tree/main/examples/html-artifact), documented in the [Open-ended HTML guide](/docs/agent/guides/open-ended-html).+OpenUI ships a working implementation of this pattern: [`examples/miscellaneous/html-artifact`](https://github.com/thesysdev/openui/tree/main/examples/miscellaneous/html-artifact), documented in the [Open-ended HTML guide](/docs/agent/guides/open-ended-html).diff --git a/docs/content/docs/agent/getting-started/openui-cloud.mdx b/docs/content/docs/agent/getting-started/openui-cloud.mdxindex 3a54bac3d..59b7ace67 100644--- a/docs/content/docs/agent/getting-started/openui-cloud.mdx+++ b/docs/content/docs/agent/getting-started/openui-cloud.mdx@@ -21,7 +21,7 @@ OpenUI Cloud is the managed backend for Agent Interface. It is built on the open## Connect-`AgentInterface` connects to Cloud through two props, both wired by the scaffold (or by hand, following the `openui-cloud` example in the repo):+`AgentInterface` connects to Cloud through two props, both wired by the `openui-cloud` CLI template:- **`llm`** points at a thin `/api/chat` route in your app that proxies to Cloud's Responses endpoint. Your `THESYS_API_KEY` stays on that route and never reaches the browser. On the client it uses `openAIResponsesAdapter()` with `openAIConversationMessageFormat`.- **`storage`** is `useOpenuiCloudStorage()` from `@openuidev/thesys`. It reads conversations and artifacts from Cloud directly, authenticated by a short-lived frontend token your app mints from a `/api/frontend-token` route (so the server key never reaches the browser).diff --git a/docs/content/docs/agent/guides/open-ended-html.mdx b/docs/content/docs/agent/guides/open-ended-html.mdxindex 8744566ca..f3c86bbf0 100644--- a/docs/content/docs/agent/guides/open-ended-html.mdx+++ b/docs/content/docs/agent/guides/open-ended-html.mdx@@ -5,7 +5,7 @@ description: Generate self-contained HTML experiences and render them in an AgenOpenUI usually asks the model to compose components from a library. For open-ended generation, the model can instead produce a complete HTML/CSS/JavaScript experience as the props of one OpenUI component.-[View the complete example on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/html-artifact)+[View the complete example on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/miscellaneous/html-artifact)## How it works@@ -53,7 +53,7 @@ Generate the system prompt with `openui generate`. Prompt rules should tell the- omit Markdown fences;- correctly escape the HTML inside the OpenUI Lang string.-See the example's [`library.tsx`](https://github.com/thesysdev/openui/blob/main/examples/html-artifact/src/library.tsx) for the complete prompt options.+See the example's [`library.tsx`](https://github.com/thesysdev/openui/blob/main/examples/miscellaneous/html-artifact/src/library.tsx) for the complete prompt options.## Before productiondiff --git a/docs/content/docs/api-reference/langchain.mdx b/docs/content/docs/api-reference/langchain.mdxindex b89ccdc80..7070784c0 100644--- a/docs/content/docs/api-reference/langchain.mdx+++ b/docs/content/docs/api-reference/langchain.mdx@@ -235,5 +235,5 @@ export function Chat() {| `@openuidev/langchain` | `StreamOpenUIOptions` | Lower-level relay configuration || `@openuidev/langchain/transformer` | `openUIStreamTransformer` | Agent-side protocol-v2 to AG-UI transformer |-See the complete [`langchain-chat`](https://github.com/thesysdev/openui/tree/main/examples/langchain-chat)+See the complete [`langchain-chat`](https://github.com/thesysdev/openui/tree/main/examples/agent-frameworks/langchain)example for local and LangGraph Platform setups.diff --git a/docs/content/docs/openui-lang/examples/langchain-chat.mdx b/docs/content/docs/openui-lang/examples/agent-frameworks/langchain.mdxsimilarity index 97%rename from docs/content/docs/openui-lang/examples/langchain-chat.mdxrename to docs/content/docs/openui-lang/examples/agent-frameworks/langchain.mdxindex 0d15d3864..965aef239 100644--- a/docs/content/docs/openui-lang/examples/langchain-chat.mdx+++ b/docs/content/docs/openui-lang/examples/agent-frameworks/langchain.mdx@@ -9,7 +9,7 @@ interactive components no matter which agent produced it. This example uses aagent running on LangGraph and the supported `@openuidev/langchain` integrationto deliver its response as AG-UI events.-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/langchain-chat)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/agent-frameworks/langchain)<div className="bg-[rgba(0,0,0,0.05)] dark:bg-gray-900 rounded-2xl h-[500px] flex p-2"><video@@ -121,7 +121,7 @@ const llm = fetchLLM({## Project layout```text-examples/langchain-chat/+examples/agent-frameworks/langchain/|- src/app/page.tsx # AgentInterface with agUIAdapter()|- src/app/api/chat/route.ts # createLangChainStreamResponse()|- src/agent/agent.ts # DeepAgent with openUIStreamTransformer()@@ -133,7 +133,7 @@ examples/langchain-chat/## Run the example-From `examples/langchain-chat`, install dependencies and copy the environment+From `examples/agent-frameworks/langchain`, install dependencies and copy the environmenttemplate:```bash tab="pnpm" tab-group="pkg"diff --git a/docs/content/docs/openui-lang/examples/vercel-ai-chat.mdx b/docs/content/docs/openui-lang/examples/agent-frameworks/vercel-ai-sdk.mdxsimilarity index 88%rename from docs/content/docs/openui-lang/examples/vercel-ai-chat.mdxrename to docs/content/docs/openui-lang/examples/agent-frameworks/vercel-ai-sdk.mdxindex 8f9b8ac35..efa6e5301 100644--- a/docs/content/docs/openui-lang/examples/vercel-ai-chat.mdx+++ b/docs/content/docs/openui-lang/examples/agent-frameworks/vercel-ai-sdk.mdx@@ -5,7 +5,7 @@ description: A full-featured chatbot using the Vercel AI SDK for streaming and tOpenUI's `<Renderer />` is transport-agnostic — it takes a string of OpenUI Lang markup and renders it as interactive React components, regardless of how that string arrived. This example uses the Vercel AI SDK (`ai`, `@ai-sdk/react`, `@ai-sdk/openai`) as the transport layer, paired with the built-in `openuiChatLibrary` of `OpenUI` as the presentation layer. It includes multi-step tool calling, conversation threading with localStorage persistence, and automatic light/dark theme support.-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/vercel-ai-chat)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/agent-frameworks/vercel-ai-sdk)<div className="bg-[rgba(0,0,0,0.05)] dark:bg-gray-900 rounded-2xl h-[500px] flex p-2"><video@@ -22,7 +22,7 @@ OpenUI's `<Renderer />` is transport-agnostic — it takes a string of OpenUI La## How OpenUI plugs into any chat framework-The backend API route reads a pre-generated system prompt from `src/generated/system-prompt.txt` and calls the LLM with `streamText`. Tool definitions use the AI SDK's `tool()` helper with Zod schemas:+The backend API route reads a system prompt generated locally at `src/generated/system-prompt.txt` and calls the LLM with `streamText`. Tool definitions use the AI SDK's `tool()` helper with Zod schemas:```tsximport { streamText, convertToModelMessages, stepCountIs } from "ai";@@ -87,7 +87,7 @@ On the client, `<Renderer />` and `openuiChatLibrary` progressively render each## Project layout```-examples/vercel-ai-chat/+examples/agent-frameworks/vercel-ai-sdk/|- src/app/ # Next.js app (layout, page, API route)|- src/components/ # Chat UI components (messages, input, sidebar)|- src/hooks/ # Theme detection, thread management@@ -97,27 +97,27 @@ examples/vercel-ai-chat/## Run the example-Run these commands from `examples/vercel-ai-chat`.+Run these commands from `examples/agent-frameworks/vercel-ai-sdk`.1. Install dependencies:```bash tab="pnpm" tab-group="pkg"-cd examples/vercel-ai-chat+cd examples/agent-frameworks/vercel-ai-sdkpnpm install``````bash tab="bun" tab-group="pkg"-cd examples/vercel-ai-chat+cd examples/agent-frameworks/vercel-ai-sdkbun install``````bash tab="yarn" tab-group="pkg"-cd examples/vercel-ai-chat+cd examples/agent-frameworks/vercel-ai-sdkyarn install``````bash tab="npm" tab-group="pkg"-cd examples/vercel-ai-chat+cd examples/agent-frameworks/vercel-ai-sdknpm install```diff --git a/docs/content/docs/openui-lang/examples/harnesses/vercel-eve.mdx b/docs/content/docs/openui-lang/examples/agent-frameworks/vercel-eve.mdxsimilarity index 97%rename from docs/content/docs/openui-lang/examples/harnesses/vercel-eve.mdxrename to docs/content/docs/openui-lang/examples/agent-frameworks/vercel-eve.mdxindex 3b56968b8..b52b69b8c 100644--- a/docs/content/docs/openui-lang/examples/harnesses/vercel-eve.mdx+++ b/docs/content/docs/openui-lang/examples/agent-frameworks/vercel-eve.mdx@@ -7,7 +7,7 @@ OpenUI can render output from a [Vercel Eve](https://github.com/vercel/eve) agenThe agent receives the OpenUI component-library prompt when a session starts, so its responses use OpenUI Lang and render as cards, tables, charts, forms, and other interactive components.-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/harnesses/vercel-eve)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/agent-frameworks/vercel-eve)<div className="bg-[rgba(0,0,0,0.05)] dark:bg-gray-900 rounded-2xl h-[500px] flex p-2"><video@@ -136,7 +136,7 @@ The demo channel uses anonymous authentication for local development. Replace `n## Project layout```text-examples/harnesses/vercel-eve/+examples/agent-frameworks/vercel-eve/|- agent/agent.ts # Eve model and build configuration|- agent/channels/eve.ts # Eve HTTP session channel|- agent/instructions/openui.ts # Generated OpenUI Lang instructions@@ -157,7 +157,7 @@ Eve 0.11 requires Node.js 24. From the repository root, follow these steps:pnpm install# 2. Enter the example.-cd examples/harnesses/vercel-eve+cd examples/agent-frameworks/vercel-eve# 3. Configure an OpenAI-compatible model provider.cp .env.example .env@@ -172,7 +172,7 @@ pnpm devbun install# 2. Enter the example.-cd examples/harnesses/vercel-eve+cd examples/agent-frameworks/vercel-eve# 3. Configure an OpenAI-compatible model provider.cp .env.example .env@@ -187,7 +187,7 @@ bun devyarn install# 2. Enter the example.-cd examples/harnesses/vercel-eve+cd examples/agent-frameworks/vercel-eve# 3. Configure an OpenAI-compatible model provider.cp .env.example .env@@ -202,7 +202,7 @@ yarn devnpm install# 2. Enter the example.-cd examples/harnesses/vercel-eve+cd examples/agent-frameworks/vercel-eve# 3. Configure an OpenAI-compatible model provider.cp .env.example .envdiff --git a/docs/content/docs/openui-lang/examples/react-native.mdx b/docs/content/docs/openui-lang/examples/app-frameworks/react-native.mdxsimilarity index 80%rename from docs/content/docs/openui-lang/examples/react-native.mdxrename to docs/content/docs/openui-lang/examples/app-frameworks/react-native.mdxindex ba5d70c3b..602694849 100644--- a/docs/content/docs/openui-lang/examples/react-native.mdx+++ b/docs/content/docs/openui-lang/examples/app-frameworks/react-native.mdx@@ -5,7 +5,7 @@ description: stream LLM-generated UI to an Expo app that renders real native comOpenUI Lang runs on React Native. This example streams LLM-generated UI to an Expo app, where `<Renderer />` turns it into real native components — not a webview, not markdown, native `Text`, `View`, and SVG charts. The stack is an Expo app paired with a Next.js backend that handles the OpenAI call.-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/openui-react-native)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/app-frameworks/react-native)<div className="bg-[rgba(0,0,0,0.05)] dark:bg-gray-900 rounded-2xl p-2"><video@@ -50,39 +50,39 @@ Expo app -- POST /api/chat --> Next.js backend --> OpenAI<-- text/plain stream -- (OpenUI Lang)```-The backend loads a pre-generated `system-prompt.txt`, forwards the conversation to OpenAI with streaming enabled, and returns raw `text/plain` chunks. The Expo app accumulates those chunks and passes the growing string into `<Renderer />`, which progressively parses and renders native UI as the response arrives.+The backend loads `src/generated/system-prompt.txt`, which is generated locally before the backend starts, forwards the conversation to OpenAI with streaming enabled, and returns raw `text/plain` chunks. The Expo app accumulates those chunks and passes the growing string into `<Renderer />`, which progressively parses and renders native UI as the response arrives.## Project layout```-examples/openui-react-native/+examples/app-frameworks/react-native/|- backend/ # Next.js API that talks to OpenAI\- chat-app/ # Expo app that renders streamed OpenUI Lang```## Run the example-Run these commands from `examples/openui-react-native`.+Run these commands from `examples/app-frameworks/react-native`.1. Install dependencies:```bash tab="pnpm" tab-group="pkg"-cd examples/openui-react-native+cd examples/app-frameworks/react-nativepnpm install``````bash tab="bun" tab-group="pkg"-cd examples/openui-react-native+cd examples/app-frameworks/react-nativebun install``````bash tab="yarn" tab-group="pkg"-cd examples/openui-react-native+cd examples/app-frameworks/react-nativeyarn install``````bash tab="npm" tab-group="pkg"-cd examples/openui-react-native+cd examples/app-frameworks/react-nativenpm install```@@ -116,7 +116,7 @@ yarn generate:promptnpm generate:prompt```-This generates `backend/src/system-prompt.txt` from `backend/src/library.ts`. Re-run it any time you change component names, schemas, descriptions, or prompt rules.+This generates the ignored file `backend/src/generated/system-prompt.txt` from `backend/src/library.ts`. The backend dev and build commands run this automatically; invoke it directly when you only want to refresh or inspect the generated artifacts.4. Start the Next.js backend:diff --git a/docs/content/docs/openui-lang/examples/dashboard.mdx b/docs/content/docs/openui-lang/examples/dashboard.mdxdeleted file mode 100644index 65331a38c..000000000--- a/docs/content/docs/openui-lang/examples/dashboard.mdx+++ /dev/null@@ -1,117 +0,0 @@-----title: Dashboard App-description: A data-driven dashboard with tools, MCP, and interactive charts built with OpenUI.------A full dashboard app that connects to backend tools via MCP. The LLM generates interactive UIs with KPI cards, charts, tables, and forms. After generation, the runtime calls your tools directly without the LLM.--[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/openui-dashboard)--<video- src="/videos/openui-lang/dashboard.mp4"- autoPlay- loop- muted- playsInline- className="w-full rounded-lg"-/>--## How it works--The app has three layers:--1. **Tools** (`src/tools.ts`): A shared registry of tool definitions with Zod input schemas, output schemas, and execute functions. Includes PostHog analytics queries, server health, ticket CRUD, and more.--2. **MCP server** (`src/app/api/mcp/route.ts`): Registers all tools from the shared registry as MCP endpoints. The Renderer's MCP client calls these at runtime.--3. **Chat + prompt** (`src/app/api/chat/route.ts`): Converts the same tool definitions into `ToolSpec[]` for prompt generation, then streams LLM responses with OpenAI function calling.--```- tools.ts (shared source of truth)- │- ├──▶ /api/mcp (MCP server, runtime tool execution)- │- └──▶ /api/chat (prompt generation + LLM streaming)-```--## Key files--**`src/tools.ts`** defines each tool once:--```ts-export const tools: ToolDef[] = [- {- name: "get_usage_metrics",- description: "Get usage metrics for the specified date range",- inputSchema: { days: z.string().optional() },- outputSchema: z.object({- totalEvents: z.number(),- data: z.array(z.object({ day: z.string(), events: z.number() })),- }),- execute: async (args) => getUsageMetrics(args),- },- // ... more tools-];-```--**`src/prompt-config.ts`** configures the prompt with tool examples and PostHog-specific instructions:--```ts-export const promptSpec: PromptSpec = {- ...componentSpec,- editMode: true,- inlineMode: true,- toolExamples: [/* PostHog dashboard example, server health example, CRUD example */],- additionalRules: ["For analytics, prefer posthog_query with HogQL SQL", ...],-};-```--**`src/app/dashboard/page.tsx`** renders the UI with an MCP client as the tool provider:--```tsx-const client = new Client({ name: "openui-dashboard", version: "1.0.0" });-await client.connect(new StreamableHTTPClientTransport(new URL("/api/mcp")));--<Renderer- toolProvider={client}- library={openuiLibrary}- response={streamedCode}- isStreaming={isStreaming}-/>;-```--## Try it--```bash tab="pnpm" tab-group="pkg"-git clone https://github.com/thesysdev/openui.git-cd openui/examples/openui-dashboard-pnpm install-echo "OPENAI_API_KEY=sk-your-key" > .env.local-pnpm dev-```--```bash tab="bun" tab-group="pkg"-git clone https://github.com/thesysdev/openui.git-cd openui/examples/openui-dashboard-bun install-echo "OPENAI_API_KEY=sk-your-key" > .env.local-bun dev-```--```bash tab="yarn" tab-group="pkg"-git clone https://github.com/thesysdev/openui.git-cd openui/examples/openui-dashboard-yarn install-echo "OPENAI_API_KEY=sk-your-key" > .env.local-yarn dev-```--```bash tab="npm" tab-group="pkg"-git clone https://github.com/thesysdev/openui.git-cd openui/examples/openui-dashboard-npm install-echo "OPENAI_API_KEY=sk-your-key" > .env.local-npm run dev-```--Ask it to build a PostHog analytics dashboard, a ticket tracker, or a server monitoring view.diff --git a/docs/content/docs/openui-lang/examples/shadcn-chat.mdx b/docs/content/docs/openui-lang/examples/design-systems/shadcn.mdxsimilarity index 94%rename from docs/content/docs/openui-lang/examples/shadcn-chat.mdxrename to docs/content/docs/openui-lang/examples/design-systems/shadcn.mdxindex d21c1c50d..1367b9b84 100644--- a/docs/content/docs/openui-lang/examples/shadcn-chat.mdx+++ b/docs/content/docs/openui-lang/examples/design-systems/shadcn.mdx@@ -5,7 +5,7 @@ description: An example of connecting OpenUI Lang to a custom component library,OpenUI Lang is not tied to any component library. The LLM generates abstract UI structure; your library definition decides how that structure renders. This example wires OpenUI Lang to [shadcn/ui](https://ui.shadcn.com/) — swapping in a custom `shadcnChatLibrary` in place of the built-in libraries — to show that any design system can sit behind the same protocol.-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/shadcn-chat)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/design-systems/shadcn)<div className="bg-[rgba(0,0,0,0.05)] dark:bg-gray-900 rounded-2xl h-[500px] flex p-2"><video@@ -77,7 +77,7 @@ The API route also supports **server-side tool execution**. When the model invok## Project layout```-examples/shadcn-chat/+examples/design-systems/shadcn/|- src/app/ # Next.js app (layout, page, API route)|- src/hooks/ # Theme detection and context|- src/components/ui/ # Base shadcn/ui primitives@@ -87,27 +87,27 @@ examples/shadcn-chat/## Run the example-Run these commands from `examples/shadcn-chat`.+Run these commands from `examples/design-systems/shadcn`.1. Install dependencies:```bash tab="pnpm" tab-group="pkg"-cd examples/shadcn-chat+cd examples/design-systems/shadcnpnpm install``````bash tab="bun" tab-group="pkg"-cd examples/shadcn-chat+cd examples/design-systems/shadcnbun install``````bash tab="yarn" tab-group="pkg"-cd examples/shadcn-chat+cd examples/design-systems/shadcnyarn install``````bash tab="npm" tab-group="pkg"-cd examples/shadcn-chat+cd examples/design-systems/shadcnnpm install```diff --git a/docs/content/docs/openui-lang/examples/harnesses/pi-agent-harness.mdx b/docs/content/docs/openui-lang/examples/harnesses/pi.mdxsimilarity index 98%rename from docs/content/docs/openui-lang/examples/harnesses/pi-agent-harness.mdxrename to docs/content/docs/openui-lang/examples/harnesses/pi.mdxindex ae362d8ba..0c3fb239e 100644--- a/docs/content/docs/openui-lang/examples/harnesses/pi-agent-harness.mdx+++ b/docs/content/docs/openui-lang/examples/harnesses/pi.mdx@@ -7,7 +7,7 @@ Anything that can stream text can drive OpenUI's renderer, including a full **coIts mid-turn activity (reasoning and tool runs) surfaces as cards too.-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/harnesses/pi-agent-harness)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/harnesses/pi)<div className="bg-[rgba(0,0,0,0.05)] dark:bg-gray-900 rounded-2xl h-[500px] flex p-2"><video@@ -142,7 +142,7 @@ The pi SDK resolves a model from either an environment API key (`ANTHROPIC_API_K## Project layout```-examples/harnesses/pi-agent-harness/+examples/harnesses/pi/|- src/app/page.tsx # <AgentInterface> wired to openAIReadableStreamAdapter()|- src/app/api/chat/route.ts # pi event stream into NDJSON OpenAI chunks|- src/lib/pi-session.ts # one persistent pi AgentSession per conversation@@ -172,7 +172,7 @@ npm install``````bash-cd examples/harnesses/pi-agent-harness+cd examples/harnesses/picp .env.example .env # set a provider API key (skip if you have a pi login)pnpm dev -- /path/to/your/project```diff --git a/docs/content/docs/openui-lang/examples/react-email.mdx b/docs/content/docs/openui-lang/examples/miscellaneous/react-email.mdxsimilarity index 88%rename from docs/content/docs/openui-lang/examples/react-email.mdxrename to docs/content/docs/openui-lang/examples/miscellaneous/react-email.mdxindex 3399742ca..3f0f616de 100644--- a/docs/content/docs/openui-lang/examples/react-email.mdx+++ b/docs/content/docs/openui-lang/examples/miscellaneous/react-email.mdx@@ -5,7 +5,7 @@ description: An AI-powered email generator that uses OpenUI Lang to render 44 ReOpenUI Lang isn't limited to chat interfaces — it can power any domain-specific UI generator. This example uses [React Email](https://react.email) components as the rendering target, letting users describe emails in plain English and see them rendered live. The `@openuidev/react-email` package ships 44 email components built with `defineComponent`, a ready-to-use `emailLibrary`, and a system prompt with examples and design rules — so the LLM generates well-structured, email-client-compatible HTML out of the box.-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/react-email)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/miscellaneous/react-email)<div className="bg-[rgba(0,0,0,0.05)] dark:bg-gray-900 rounded-2xl h-[500px] flex p-2"><video@@ -72,14 +72,14 @@ Browser (email editor) -- POST /api/chat --> Next.js route --> OpenAI<-- SSE stream -- (OpenUI Lang)```-The client sends a conversation to `/api/chat`. The API route loads a pre-generated `system-prompt.txt` (built from `emailLibrary.prompt(emailPromptOptions)`), forwards messages to the LLM with streaming, and returns SSE events. On the client, `emailLibrary` maps each OpenUI Lang node to a React Email component that renders progressively as tokens arrive.+The client sends a conversation to `/api/chat`. The API route loads `system-prompt.txt`, generated locally from `emailLibrary.prompt(emailPromptOptions)`, forwards messages to the LLM with streaming, and returns SSE events. On the client, `emailLibrary` maps each OpenUI Lang node to a React Email component that renders progressively as tokens arrive.The key difference from other examples: the output isn't interactive UI — it's static email content. The split-view editor shows a live preview on the right and formatted HTML on the left, with copy buttons for both the HTML and the subject line.## Project layout```-examples/react-email/+examples/miscellaneous/react-email/|- src/app/ # Next.js app (layout, page, API route)|- src/components/| |- composePage/ # Landing page with conversation starters@@ -97,27 +97,27 @@ packages/react-email/## Run the example-Run these commands from `examples/react-email`.+Run these commands from `examples/miscellaneous/react-email`.1. Install dependencies:```bash tab="pnpm" tab-group="pkg"-cd examples/react-email+cd examples/miscellaneous/react-emailpnpm install``````bash tab="bun" tab-group="pkg"-cd examples/react-email+cd examples/miscellaneous/react-emailbun install``````bash tab="yarn" tab-group="pkg"-cd examples/react-email+cd examples/miscellaneous/react-emailyarn install``````bash tab="npm" tab-group="pkg"-cd examples/react-email+cd examples/miscellaneous/react-emailnpm install```diff --git a/docs/content/docs/openui-lang/how-it-works.mdx b/docs/content/docs/openui-lang/how-it-works.mdxindex d747a6e0d..3f52d7f90 100644--- a/docs/content/docs/openui-lang/how-it-works.mdx+++ b/docs/content/docs/openui-lang/how-it-works.mdx@@ -94,7 +94,7 @@ await client.connect(new StreamableHTTPClientTransport(new URL("/api/mcp")));These examples are simplified for demonstration. In production, you'll need to handle authentication, error boundaries, and connection lifecycle.-The [GitHub Demo](/demo/github) uses a function map where tools run entirely client-side, calling the GitHub API directly from the browser. The [Dashboard example](https://github.com/thesysdev/openui/tree/main/examples/openui-dashboard) uses MCP with server-side tools.+The [GitHub Demo](/demo/github) uses a function map where tools run entirely client-side, calling the GitHub API directly from the browser. Server-side applications can expose the same tool surface through MCP.## A concrete examplediff --git a/docs/content/docs/openui-lang/meta.json b/docs/content/docs/openui-lang/meta.jsonindex 520f0a8ca..dc2ab48e7 100644--- a/docs/content/docs/openui-lang/meta.json+++ b/docs/content/docs/openui-lang/meta.json@@ -29,14 +29,13 @@"troubleshooting","telemetry","---Examples---",- "examples/dashboard",- "examples/shadcn-chat",- "examples/react-native",- "examples/vercel-ai-chat",- "examples/langchain-chat",- "examples/react-email",+ "examples/design-systems/shadcn",+ "examples/app-frameworks/react-native",+ "examples/agent-frameworks/vercel-ai-sdk",+ "examples/agent-frameworks/langchain",+ "examples/miscellaneous/react-email","---Harnesses---",- "examples/harnesses/pi-agent-harness",- "examples/harnesses/vercel-eve"+ "examples/harnesses/pi",+ "examples/agent-frameworks/vercel-eve"]}diff --git a/docs/lib/demo-credits.ts b/docs/lib/demo-credits.tsindex 5f0aee505..39075c1a4 100644--- a/docs/lib/demo-credits.ts+++ b/docs/lib/demo-credits.ts@@ -4,11 +4,10 @@ export const DEMO_CREDITS_EXHAUSTED_MESSAGE ="We're recharging the hosted demo credits. Until then, please download the repo and run it locally to see the live demo.";export const DEMO_CREDITS_LOCAL_COMMANDS = [- "git clone https://github.com/thesysdev/openui.git",- "cd openui",- "pnpm install",- 'echo "OPENAI_API_KEY=sk-your-key-here" > examples/openui-chat/.env.local',- "pnpm --filter openui-chat dev",+ "pnpm dlx @openuidev/cli@latest create --name openui-demo --template openui-self-hosted --no-interactive",+ "cd openui-demo",+ "# Configure OPENAI_API_KEY in .env.local",+ "pnpm dev",] as const;export type DemoCreditsErrorPayload = {diff --git a/examples/README.md b/examples/README.mdnew file mode 100644index 000000000..3753242aa--- /dev/null+++ b/examples/README.md@@ -0,0 +1,96 @@+# OpenUI examples++These projects showcase what OpenUI can do with different runtimes, application frameworks, design systems, coding harnesses, and specialized libraries. They are standalone reference implementations, not starter templates; use the [OpenUI CLI](https://www.openui.com/docs/agent/getting-started/quickstart) to scaffold a new application.++Each example has one primary home based on the integration seam it is intended to teach. Cross-cutting technologies belong in that example's README rather than in duplicate directory trees.++## Categories++| Category | Use it for |+| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |+| [`agent-frameworks`](./agent-frameworks) | Agent runtimes and orchestration frameworks that produce or stream OpenUI output |+| [`app-frameworks`](./app-frameworks) | Application frameworks or platforms that host an OpenUI client or server |+| [`design-systems`](./design-systems) | Component systems adapted into an OpenUI component library |+| [`harnesses`](./harnesses) | Coding-agent harnesses presented through an OpenUI interface |+| [`miscellaneous`](./miscellaneous) | Distinct capabilities, specialized libraries, and backend services that do not justify another top-level category |++`miscellaneous` is intentionally flat. If several examples develop the same stable integration seam, promote that seam to a top-level category instead of adding nested miscellaneous taxonomies.++## Catalog++### Agent frameworks++| Example | Demonstrates |+| ------------------------------------------------- | ----------------------------------------------------------------------- |+| [Google ADK](./agent-frameworks/google-adk) | A Google ADK TypeScript agent streaming OpenUI Lang to a Next.js client |+| [LangChain](./agent-frameworks/langchain) | LangGraph/DeepAgents integration through the OpenUI LangChain adapter |+| [Mastra](./agent-frameworks/mastra) | A Mastra agent connected to OpenUI through AG-UI |+| [Vercel AI SDK](./agent-frameworks/vercel-ai-sdk) | `streamText`, tools, and OpenUI rendering with the Vercel AI SDK |+| [Vercel Eve](./agent-frameworks/vercel-eve) | An Eve agent rendered through Agent Interface |++### App frameworks++| Example | Demonstrates |+| --------------------------------------------- | ------------------------------------------------------------------------------- |+| [FastAPI](./app-frameworks/fastapi) | A Python FastAPI streaming backend with a React OpenUI client |+| [React Native](./app-frameworks/react-native) | An Expo client rendering native OpenUI components from a Next.js backend stream |+| [Svelte](./app-frameworks/svelte) | OpenUI Lang parsing and rendering in SvelteKit |+| [Vue](./app-frameworks/vue) | OpenUI Lang parsing and rendering in Nuxt and Vue |++### Design systems++| Example | Demonstrates |+| ------------------------------------------- | -------------------------------------------------------------- |+| [Material UI](./design-systems/material-ui) | A broad Material UI component library for generated interfaces |+| [shadcn/ui](./design-systems/shadcn) | A broad shadcn/ui component library for generated interfaces |++### Harnesses++| Example | Demonstrates |+| ------------------------------------ | --------------------------------------------------------------- |+| [Grok Build](./harnesses/grok-build) | Grok Build coding sessions and tool activity in Agent Interface |+| [Pi](./harnesses/pi) | A Pi coding-agent session streamed into Agent Interface |++### Miscellaneous++| Example | Demonstrates |+| ---------------------------------------------- | -------------------------------------------------------------------- |+| [Handsontable](./miscellaneous/handsontable) | Generated spreadsheet interfaces backed by Handsontable |+| [HTML artifact](./miscellaneous/html-artifact) | Sandboxed HTML artifacts as an OpenUI capability |+| [React Email](./miscellaneous/react-email) | Generating and previewing emails with the OpenUI React Email library |+| [Supabase](./miscellaneous/supabase) | Persisted OpenUI conversations and threads with Supabase |++## Run and verify++Install dependencies once from the repository root:++```bash+pnpm install+```++Follow an example's README for its environment variables and development command. From any example directory, run its credential-free verification contract with:++```bash+pnpm verify+```++To build the workspace packages and verify all examples sequentially from the repository root, run:++```bash+pnpm examples:verify+```++Examples that use static system prompts generate them locally before `dev`, `build`, and `verify`. Generated prompt and spec files are ignored by Git and should not be committed.++## Maintenance contract++Every retained example should:++- showcase a distinct OpenUI capability or maintained integration;+- remain runnable without depending on another example;+- document its purpose, stack, prerequisites, run command, architecture, key files, verification command, and extension points;+- expose a credential-free `pnpm verify` command that checks the example's relevant build, types, and local tests;+- generate derived prompts and specs locally rather than store them in the repository;+- use a normalized `@openuidev/example-*` package name and keep repository links current.++Delete examples that duplicate an authoritative CLI template, are maintained elsewhere, substantially overlap a stronger example, or no longer justify their maintenance cost.diff --git a/examples/google-adk/.gitignore b/examples/agent-frameworks/google-adk/.gitignoresimilarity index 87%rename from examples/google-adk/.gitignorerename to examples/agent-frameworks/google-adk/.gitignoreindex 18d735d44..bac33b262 100644--- a/examples/google-adk/.gitignore+++ b/examples/agent-frameworks/google-adk/.gitignore@@ -33,3 +33,6 @@ pnpm-debug.log*# typescript*.tsbuildinfonext-env.d.ts++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/google-adk/README.md b/examples/agent-frameworks/google-adk/README.mdsimilarity index 97%rename from examples/google-adk/README.mdrename to examples/agent-frameworks/google-adk/README.mdindex f96120d4e..8cb54a0b8 100644--- a/examples/google-adk/README.md+++ b/examples/agent-frameworks/google-adk/README.md@@ -1,4 +1,4 @@-# google-adk-chat+# Google ADKAn [OpenUI](https://openui.com) example showing how to wire a[Google Agent Development Kit (ADK)](https://github.com/google/adk-js) agent@@ -62,3 +62,9 @@ them to the `Agent`.- [OpenUI documentation](https://openui.com/docs)- [Google ADK for TypeScript](https://github.com/google/adk-js)++## Verify++```bash+pnpm verify+```diff --git a/examples/google-adk/eslint.config.mjs b/examples/agent-frameworks/google-adk/eslint.config.mjssimilarity index 100%rename from examples/google-adk/eslint.config.mjsrename to examples/agent-frameworks/google-adk/eslint.config.mjsdiff --git a/examples/google-adk/next.config.ts b/examples/agent-frameworks/google-adk/next.config.tssimilarity index 100%rename from examples/google-adk/next.config.tsrename to examples/agent-frameworks/google-adk/next.config.tsdiff --git a/examples/google-adk/package.json b/examples/agent-frameworks/google-adk/package.jsonsimilarity index 66%rename from examples/google-adk/package.jsonrename to examples/agent-frameworks/google-adk/package.jsonindex 59e80724a..9d4d01912 100644--- a/examples/google-adk/package.json+++ b/examples/agent-frameworks/google-adk/package.json@@ -1,12 +1,17 @@{- "name": "google-adk-chat",+ "name": "@openuidev/example-google-adk","version": "0.1.0","private": true,"description": "OpenUI generative-UI chat backed by a Google ADK (TypeScript) agent.","scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && node ../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",- "dev": "pnpm generate:prompt && next dev",+ "generate": "pnpm --filter @openuidev/cli build && node ../../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate",+ "dev": "next dev",+ "prebuild": "pnpm generate","build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/form-generator/postcss.config.mjs b/examples/agent-frameworks/google-adk/postcss.config.mjssimilarity index 100%rename from examples/form-generator/postcss.config.mjsrename to examples/agent-frameworks/google-adk/postcss.config.mjsdiff --git a/examples/google-adk/src/agent.ts b/examples/agent-frameworks/google-adk/src/agent.tssimilarity index 100%rename from examples/google-adk/src/agent.tsrename to examples/agent-frameworks/google-adk/src/agent.tsdiff --git a/examples/google-adk/src/app/api/chat/route.ts b/examples/agent-frameworks/google-adk/src/app/api/chat/route.tssimilarity index 100%rename from examples/google-adk/src/app/api/chat/route.tsrename to examples/agent-frameworks/google-adk/src/app/api/chat/route.tsdiff --git a/examples/google-adk/src/app/globals.css b/examples/agent-frameworks/google-adk/src/app/globals.csssimilarity index 100%rename from examples/google-adk/src/app/globals.cssrename to examples/agent-frameworks/google-adk/src/app/globals.cssdiff --git a/examples/google-adk/src/app/layout.tsx b/examples/agent-frameworks/google-adk/src/app/layout.tsxsimilarity index 100%rename from examples/google-adk/src/app/layout.tsxrename to examples/agent-frameworks/google-adk/src/app/layout.tsxdiff --git a/examples/google-adk/src/app/page.tsx b/examples/agent-frameworks/google-adk/src/app/page.tsxsimilarity index 100%rename from examples/google-adk/src/app/page.tsxrename to examples/agent-frameworks/google-adk/src/app/page.tsxdiff --git a/examples/google-adk/src/hooks/use-system-theme.tsx b/examples/agent-frameworks/google-adk/src/hooks/use-system-theme.tsxsimilarity index 100%rename from examples/google-adk/src/hooks/use-system-theme.tsxrename to examples/agent-frameworks/google-adk/src/hooks/use-system-theme.tsxdiff --git a/examples/google-adk/src/library.ts b/examples/agent-frameworks/google-adk/src/library.tssimilarity index 100%rename from examples/google-adk/src/library.tsrename to examples/agent-frameworks/google-adk/src/library.tsdiff --git a/examples/form-generator/tsconfig.json b/examples/agent-frameworks/google-adk/tsconfig.jsonsimilarity index 100%rename from examples/form-generator/tsconfig.jsonrename to examples/agent-frameworks/google-adk/tsconfig.jsondiff --git a/examples/langchain-chat/.env.example b/examples/agent-frameworks/langchain/.env.examplesimilarity index 100%rename from examples/langchain-chat/.env.examplerename to examples/agent-frameworks/langchain/.env.examplediff --git a/examples/langchain-chat/.gitignore b/examples/agent-frameworks/langchain/.gitignoresimilarity index 90%rename from examples/langchain-chat/.gitignorerename to examples/agent-frameworks/langchain/.gitignoreindex 6cc799b5f..9eb1bea15 100644--- a/examples/langchain-chat/.gitignore+++ b/examples/agent-frameworks/langchain/.gitignore@@ -43,3 +43,6 @@ yarn-error.log*# typescript*.tsbuildinfonext-env.d.ts++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/langchain-chat/README.md b/examples/agent-frameworks/langchain/README.mdsimilarity index 99%rename from examples/langchain-chat/README.mdrename to examples/agent-frameworks/langchain/README.mdindex 242847942..01ece098c 100644--- a/examples/langchain-chat/README.md+++ b/examples/agent-frameworks/langchain/README.md@@ -103,3 +103,9 @@ Restart `pnpm dev` after changing `.env`.- [OpenUI docs](https://openui.com/docs) and the [Agent Interface adapters guide](https://www.openui.com/docs/agent/reference/adapters-and-formats)- [DeepAgents](https://www.npmjs.com/package/deepagents) and [LangGraph.js docs](https://langchain-ai.github.io/langgraphjs/)++## Verify++```bash+pnpm verify+```diff --git a/examples/form-generator/eslint.config.mjs b/examples/agent-frameworks/langchain/eslint.config.mjssimilarity index 100%rename from examples/form-generator/eslint.config.mjsrename to examples/agent-frameworks/langchain/eslint.config.mjsdiff --git a/examples/langchain-chat/langgraph.json b/examples/agent-frameworks/langchain/langgraph.jsonsimilarity index 100%rename from examples/langchain-chat/langgraph.jsonrename to examples/agent-frameworks/langchain/langgraph.jsondiff --git a/examples/html-artifact/next.config.ts b/examples/agent-frameworks/langchain/next.config.tssimilarity index 100%rename from examples/html-artifact/next.config.tsrename to examples/agent-frameworks/langchain/next.config.tsdiff --git a/examples/langchain-chat/package.json b/examples/agent-frameworks/langchain/package.jsonsimilarity index 70%rename from examples/langchain-chat/package.jsonrename to examples/agent-frameworks/langchain/package.jsonindex 818f7e49f..c5ba87b7e 100644--- a/examples/langchain-chat/package.json+++ b/examples/agent-frameworks/langchain/package.json@@ -1,15 +1,20 @@{- "name": "langgraph-chat",+ "name": "@openuidev/example-langchain","version": "0.1.0","private": true,"scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && pnpm exec openui generate src/library.ts --out src/generated/system-prompt.txt",+ "generate": "pnpm --filter @openuidev/cli build && node ../../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate","dev:langgraph": "langgraphjs dev","dev:next": "next dev","dev:serve": "run-p dev:langgraph dev:next",- "langgraph:dev": "run-s generate:prompt dev:langgraph",- "dev": "run-s generate:prompt dev:serve",+ "langgraph:dev": "run-s generate dev:langgraph",+ "predev": "pnpm generate",+ "dev": "run-s dev:serve",+ "prebuild": "pnpm generate","build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/google-adk/postcss.config.mjs b/examples/agent-frameworks/langchain/postcss.config.mjssimilarity index 100%rename from examples/google-adk/postcss.config.mjsrename to examples/agent-frameworks/langchain/postcss.config.mjsdiff --git a/examples/langchain-chat/src/agent/agent.ts b/examples/agent-frameworks/langchain/src/agent/agent.tssimilarity index 100%rename from examples/langchain-chat/src/agent/agent.tsrename to examples/agent-frameworks/langchain/src/agent/agent.tsdiff --git a/examples/langchain-chat/src/agent/tools.ts b/examples/agent-frameworks/langchain/src/agent/tools.tssimilarity index 100%rename from examples/langchain-chat/src/agent/tools.tsrename to examples/agent-frameworks/langchain/src/agent/tools.tsdiff --git a/examples/langchain-chat/src/app/api/chat/route.ts b/examples/agent-frameworks/langchain/src/app/api/chat/route.tssimilarity index 100%rename from examples/langchain-chat/src/app/api/chat/route.tsrename to examples/agent-frameworks/langchain/src/app/api/chat/route.tsdiff --git a/examples/langchain-chat/src/app/globals.css b/examples/agent-frameworks/langchain/src/app/globals.csssimilarity index 100%rename from examples/langchain-chat/src/app/globals.cssrename to examples/agent-frameworks/langchain/src/app/globals.cssdiff --git a/examples/langchain-chat/src/app/layout.tsx b/examples/agent-frameworks/langchain/src/app/layout.tsxsimilarity index 100%rename from examples/langchain-chat/src/app/layout.tsxrename to examples/agent-frameworks/langchain/src/app/layout.tsxdiff --git a/examples/langchain-chat/src/app/page.tsx b/examples/agent-frameworks/langchain/src/app/page.tsxsimilarity index 100%rename from examples/langchain-chat/src/app/page.tsxrename to examples/agent-frameworks/langchain/src/app/page.tsxdiff --git a/examples/harnesses/vercel-eve/src/hooks/use-system-theme.tsx b/examples/agent-frameworks/langchain/src/hooks/use-system-theme.tsxsimilarity index 100%rename from examples/harnesses/vercel-eve/src/hooks/use-system-theme.tsxrename to examples/agent-frameworks/langchain/src/hooks/use-system-theme.tsxdiff --git a/examples/langchain-chat/src/library.ts b/examples/agent-frameworks/langchain/src/library.tssimilarity index 100%rename from examples/langchain-chat/src/library.tsrename to examples/agent-frameworks/langchain/src/library.tsdiff --git a/examples/google-adk/tsconfig.json b/examples/agent-frameworks/langchain/tsconfig.jsonsimilarity index 100%rename from examples/google-adk/tsconfig.jsonrename to examples/agent-frameworks/langchain/tsconfig.jsondiff --git a/examples/form-generator/.gitignore b/examples/agent-frameworks/mastra/.gitignoresimilarity index 89%rename from examples/form-generator/.gitignorerename to examples/agent-frameworks/mastra/.gitignoreindex 5ef6a5207..95d89df9e 100644--- a/examples/form-generator/.gitignore+++ b/examples/agent-frameworks/mastra/.gitignore@@ -39,3 +39,6 @@ yarn-error.log*# typescript*.tsbuildinfonext-env.d.ts++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/mastra-chat/README.md b/examples/agent-frameworks/mastra/README.mdsimilarity index 97%rename from examples/mastra-chat/README.mdrename to examples/agent-frameworks/mastra/README.mdindex a0b49e879..59f2ef19a 100644--- a/examples/mastra-chat/README.md+++ b/examples/agent-frameworks/mastra/README.md@@ -1,4 +1,4 @@-# mastra-chat+# MastraAn [OpenUI](https://openui.com) example showing how to wire a [Mastra](https://mastra.ai) agent backend to OpenUI's generative UI frontend using the [AG-UI protocol](https://docs.ag-ui.com).@@ -43,3 +43,9 @@ To add more tools, define them with `createTool` in `src/app/api/chat/route.ts`- [OpenUI documentation](https://openui.com/docs)- [Mastra documentation](https://mastra.ai/docs)- [AG-UI protocol](https://docs.ag-ui.com)++## Verify++```bash+pnpm verify+```diff --git a/examples/mastra-chat/eslint.config.mjs b/examples/agent-frameworks/mastra/eslint.config.mjssimilarity index 100%rename from examples/mastra-chat/eslint.config.mjsrename to examples/agent-frameworks/mastra/eslint.config.mjsdiff --git a/examples/form-generator/next.config.ts b/examples/agent-frameworks/mastra/next.config.tssimilarity index 100%rename from examples/form-generator/next.config.tsrename to examples/agent-frameworks/mastra/next.config.tsdiff --git a/examples/mastra-chat/package.json b/examples/agent-frameworks/mastra/package.jsonsimilarity index 67%rename from examples/mastra-chat/package.jsonrename to examples/agent-frameworks/mastra/package.jsonindex 0a3e36206..a8faef5c1 100644--- a/examples/mastra-chat/package.json+++ b/examples/agent-frameworks/mastra/package.json@@ -1,11 +1,16 @@{- "name": "mastra-chat",+ "name": "@openuidev/example-mastra","version": "0.1.0","private": true,"scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && node ../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",- "dev": "pnpm generate:prompt && next dev",+ "generate": "pnpm --filter @openuidev/cli build && node ../../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate",+ "dev": "next dev",+ "prebuild": "pnpm generate","build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/hands-on-table-chat/postcss.config.mjs b/examples/agent-frameworks/mastra/postcss.config.mjssimilarity index 100%rename from examples/hands-on-table-chat/postcss.config.mjsrename to examples/agent-frameworks/mastra/postcss.config.mjsdiff --git a/examples/mastra-chat/src/app/api/chat/route.ts b/examples/agent-frameworks/mastra/src/app/api/chat/route.tssimilarity index 100%rename from examples/mastra-chat/src/app/api/chat/route.tsrename to examples/agent-frameworks/mastra/src/app/api/chat/route.tsdiff --git a/examples/mastra-chat/src/app/globals.css b/examples/agent-frameworks/mastra/src/app/globals.csssimilarity index 100%rename from examples/mastra-chat/src/app/globals.cssrename to examples/agent-frameworks/mastra/src/app/globals.cssdiff --git a/examples/mastra-chat/src/app/layout.tsx b/examples/agent-frameworks/mastra/src/app/layout.tsxsimilarity index 100%rename from examples/mastra-chat/src/app/layout.tsxrename to examples/agent-frameworks/mastra/src/app/layout.tsxdiff --git a/examples/mastra-chat/src/app/page.tsx b/examples/agent-frameworks/mastra/src/app/page.tsxsimilarity index 100%rename from examples/mastra-chat/src/app/page.tsxrename to examples/agent-frameworks/mastra/src/app/page.tsxdiff --git a/examples/html-artifact/src/hooks/use-system-theme.tsx b/examples/agent-frameworks/mastra/src/hooks/use-system-theme.tsxsimilarity index 100%rename from examples/html-artifact/src/hooks/use-system-theme.tsxrename to examples/agent-frameworks/mastra/src/hooks/use-system-theme.tsxdiff --git a/examples/mastra-chat/src/library.ts b/examples/agent-frameworks/mastra/src/library.tssimilarity index 100%rename from examples/mastra-chat/src/library.tsrename to examples/agent-frameworks/mastra/src/library.tsdiff --git a/examples/hands-on-table-chat/tsconfig.json b/examples/agent-frameworks/mastra/tsconfig.jsonsimilarity index 100%rename from examples/hands-on-table-chat/tsconfig.jsonrename to examples/agent-frameworks/mastra/tsconfig.jsondiff --git a/examples/multi-agent-chat/.env.example b/examples/agent-frameworks/vercel-ai-sdk/.env.examplesimilarity index 100%rename from examples/multi-agent-chat/.env.examplerename to examples/agent-frameworks/vercel-ai-sdk/.env.examplediff --git a/examples/multi-agent-chat/.gitignore b/examples/agent-frameworks/vercel-ai-sdk/.gitignoresimilarity index 87%rename from examples/multi-agent-chat/.gitignorerename to examples/agent-frameworks/vercel-ai-sdk/.gitignoreindex 63271800a..9ed835dda 100644--- a/examples/multi-agent-chat/.gitignore+++ b/examples/agent-frameworks/vercel-ai-sdk/.gitignore@@ -37,3 +37,6 @@ yarn-error.log*# typescript*.tsbuildinfonext-env.d.ts++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/vercel-ai-chat/README.md b/examples/agent-frameworks/vercel-ai-sdk/README.mdsimilarity index 97%rename from examples/vercel-ai-chat/README.mdrename to examples/agent-frameworks/vercel-ai-sdk/README.mdindex 24ee66fa9..a03e50549 100644--- a/examples/vercel-ai-chat/README.md+++ b/examples/agent-frameworks/vercel-ai-sdk/README.md@@ -4,7 +4,7 @@ A full-stack generative UI chatbot built with the [Vercel AI SDK](https://ai-sdkFeatures: multi-step tool calling, persistent conversation threads (localStorage), collapsible sidebar, and automatic light/dark theme support.-<video src="../../docs/public/videos/vercel-ai-chat.mp4"+<video src="../../../docs/public/videos/vercel-ai-chat.mp4"noControlsplaysInlinemuted@@ -14,7 +14,7 @@ Features: multi-step tool calling, persistent conversation threads (localStorageloop/>-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/vercel-ai-chat)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/agent-frameworks/vercel-ai-sdk)---@@ -66,7 +66,7 @@ The Vercel AI SDK handles the streaming transport on both ends:## Project Structure```-vercel-ai-chat/+vercel-ai-sdk/├── src/│ ├── app/│ │ ├── api/chat/route.ts # Streaming chat endpoint (Vercel AI SDK)@@ -107,7 +107,7 @@ vercel-ai-chat/### 1. Install dependencies```bash-cd examples/vercel-ai-chat+cd examples/agent-frameworks/vercel-ai-sdkpnpm install```@@ -258,4 +258,10 @@ Returns mock search results for any query.- [OpenUI Lang overview](https://www.openui.com/docs/openui-lang/overview) — Library, Prompt Generator, Parser, Renderer- [Vercel AI SDK docs](https://ai-sdk.dev/) — `streamText`, `useChat`, `tool()`-- [`@openuidev/react-lang` package](../../packages/react-lang)+- [`@openuidev/react-lang` package](../../../packages/react-lang)++## Verify++```bash+pnpm verify+```diff --git a/examples/multi-agent-chat/eslint.config.mjs b/examples/agent-frameworks/vercel-ai-sdk/eslint.config.mjssimilarity index 100%rename from examples/multi-agent-chat/eslint.config.mjsrename to examples/agent-frameworks/vercel-ai-sdk/eslint.config.mjsdiff --git a/examples/mastra-chat/next.config.ts b/examples/agent-frameworks/vercel-ai-sdk/next.config.tssimilarity index 100%rename from examples/mastra-chat/next.config.tsrename to examples/agent-frameworks/vercel-ai-sdk/next.config.tsdiff --git a/examples/vercel-ai-chat/package.json b/examples/agent-frameworks/vercel-ai-sdk/package.jsonsimilarity index 65%rename from examples/vercel-ai-chat/package.jsonrename to examples/agent-frameworks/vercel-ai-sdk/package.jsonindex e85c68794..bc3581c25 100644--- a/examples/vercel-ai-chat/package.json+++ b/examples/agent-frameworks/vercel-ai-sdk/package.json@@ -1,11 +1,16 @@{- "name": "vercel-ai-chat",+ "name": "@openuidev/example-vercel-ai-sdk","version": "0.1.0","private": true,"scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && pnpm exec openui generate src/library.ts --out src/generated/system-prompt.txt",- "dev": "pnpm generate:prompt && next dev",+ "generate": "pnpm --filter @openuidev/cli build && node ../../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate",+ "dev": "next dev",+ "prebuild": "pnpm generate","build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/harnesses/pi-agent-harness/postcss.config.mjs b/examples/agent-frameworks/vercel-ai-sdk/postcss.config.mjssimilarity index 100%rename from examples/harnesses/pi-agent-harness/postcss.config.mjsrename to examples/agent-frameworks/vercel-ai-sdk/postcss.config.mjsdiff --git a/examples/vercel-ai-chat/src/app/api/chat/route.ts b/examples/agent-frameworks/vercel-ai-sdk/src/app/api/chat/route.tssimilarity index 100%rename from examples/vercel-ai-chat/src/app/api/chat/route.tsrename to examples/agent-frameworks/vercel-ai-sdk/src/app/api/chat/route.tsdiff --git a/examples/multi-agent-chat/src/app/globals.css b/examples/agent-frameworks/vercel-ai-sdk/src/app/globals.csssimilarity index 100%rename from examples/multi-agent-chat/src/app/globals.cssrename to examples/agent-frameworks/vercel-ai-sdk/src/app/globals.cssdiff --git a/examples/vercel-ai-chat/src/app/layout.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/app/layout.tsxsimilarity index 100%rename from examples/vercel-ai-chat/src/app/layout.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/app/layout.tsxdiff --git a/examples/vercel-ai-chat/src/app/page.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/app/page.tsxsimilarity index 100%rename from examples/vercel-ai-chat/src/app/page.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/app/page.tsxdiff --git a/examples/vercel-ai-chat/src/components/assistant-message.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/assistant-message.tsxsimilarity index 100%rename from examples/vercel-ai-chat/src/components/assistant-message.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/assistant-message.tsxdiff --git a/examples/vercel-ai-chat/src/components/chat-header.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/chat-header.tsxsimilarity index 100%rename from examples/vercel-ai-chat/src/components/chat-header.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/chat-header.tsxdiff --git a/examples/multi-agent-chat/src/components/chat-input.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/chat-input.tsxsimilarity index 100%rename from examples/multi-agent-chat/src/components/chat-input.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/chat-input.tsxdiff --git a/examples/vercel-ai-chat/src/components/conversation-starters.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/conversation-starters.tsxsimilarity index 100%rename from examples/vercel-ai-chat/src/components/conversation-starters.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/conversation-starters.tsxdiff --git a/examples/multi-agent-chat/src/components/sidebar-toggle.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/sidebar-toggle.tsxsimilarity index 100%rename from examples/multi-agent-chat/src/components/sidebar-toggle.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/sidebar-toggle.tsxdiff --git a/examples/multi-agent-chat/src/components/sidebar.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/sidebar.tsxsimilarity index 100%rename from examples/multi-agent-chat/src/components/sidebar.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/sidebar.tsxdiff --git a/examples/multi-agent-chat/src/components/thinking-indicator.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/thinking-indicator.tsxsimilarity index 100%rename from examples/multi-agent-chat/src/components/thinking-indicator.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/thinking-indicator.tsxdiff --git a/examples/multi-agent-chat/src/components/tool-call-indicator.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/tool-call-indicator.tsxsimilarity index 100%rename from examples/multi-agent-chat/src/components/tool-call-indicator.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/tool-call-indicator.tsxdiff --git a/examples/multi-agent-chat/src/components/user-message.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/components/user-message.tsxsimilarity index 100%rename from examples/multi-agent-chat/src/components/user-message.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/components/user-message.tsxdiff --git a/examples/multi-agent-chat/src/hooks/use-system-theme.tsx b/examples/agent-frameworks/vercel-ai-sdk/src/hooks/use-system-theme.tsxsimilarity index 100%rename from examples/multi-agent-chat/src/hooks/use-system-theme.tsxrename to examples/agent-frameworks/vercel-ai-sdk/src/hooks/use-system-theme.tsxdiff --git a/examples/vercel-ai-chat/src/hooks/use-threads.ts b/examples/agent-frameworks/vercel-ai-sdk/src/hooks/use-threads.tssimilarity index 100%rename from examples/vercel-ai-chat/src/hooks/use-threads.tsrename to examples/agent-frameworks/vercel-ai-sdk/src/hooks/use-threads.tsdiff --git a/examples/multi-agent-chat/src/lib/thread-store.ts b/examples/agent-frameworks/vercel-ai-sdk/src/lib/thread-store.tssimilarity index 100%rename from examples/multi-agent-chat/src/lib/thread-store.tsrename to examples/agent-frameworks/vercel-ai-sdk/src/lib/thread-store.tsdiff --git a/examples/vercel-ai-chat/src/lib/tools.ts b/examples/agent-frameworks/vercel-ai-sdk/src/lib/tools.tssimilarity index 100%rename from examples/vercel-ai-chat/src/lib/tools.tsrename to examples/agent-frameworks/vercel-ai-sdk/src/lib/tools.tsdiff --git a/examples/multi-agent-chat/src/library.ts b/examples/agent-frameworks/vercel-ai-sdk/src/library.tssimilarity index 100%rename from examples/multi-agent-chat/src/library.tsrename to examples/agent-frameworks/vercel-ai-sdk/src/library.tsdiff --git a/examples/harnesses/pi-agent-harness/tsconfig.json b/examples/agent-frameworks/vercel-ai-sdk/tsconfig.jsonsimilarity index 100%rename from examples/harnesses/pi-agent-harness/tsconfig.jsonrename to examples/agent-frameworks/vercel-ai-sdk/tsconfig.jsondiff --git a/examples/harnesses/vercel-eve/.env.example b/examples/agent-frameworks/vercel-eve/.env.examplesimilarity index 100%rename from examples/harnesses/vercel-eve/.env.examplerename to examples/agent-frameworks/vercel-eve/.env.examplediff --git a/examples/harnesses/vercel-eve/.gitignore b/examples/agent-frameworks/vercel-eve/.gitignoresimilarity index 100%rename from examples/harnesses/vercel-eve/.gitignorerename to examples/agent-frameworks/vercel-eve/.gitignorediff --git a/examples/harnesses/vercel-eve/.vercelignore b/examples/agent-frameworks/vercel-eve/.vercelignoresimilarity index 100%rename from examples/harnesses/vercel-eve/.vercelignorerename to examples/agent-frameworks/vercel-eve/.vercelignorediff --git a/examples/harnesses/vercel-eve/AGENTS.md b/examples/agent-frameworks/vercel-eve/AGENTS.mdsimilarity index 100%rename from examples/harnesses/vercel-eve/AGENTS.mdrename to examples/agent-frameworks/vercel-eve/AGENTS.mddiff --git a/examples/harnesses/vercel-eve/README.md b/examples/agent-frameworks/vercel-eve/README.mdsimilarity index 96%rename from examples/harnesses/vercel-eve/README.mdrename to examples/agent-frameworks/vercel-eve/README.mdindex 25174b94f..ea3f3b71a 100644--- a/examples/harnesses/vercel-eve/README.md+++ b/examples/agent-frameworks/vercel-eve/README.md@@ -21,7 +21,7 @@ translates Eve events into AG-UI events that OpenUI renders as live React compon2. Enter the example directory:```bash- cd examples/harnesses/vercel-eve+ cd examples/agent-frameworks/vercel-eve```3. Copy the example environment file and add your provider configuration:@@ -94,7 +94,7 @@ pnpm start## Project layout```text-examples/harnesses/vercel-eve/+examples/agent-frameworks/vercel-eve/|- agent/agent.ts # Eve model and build configuration|- agent/channels/eve.ts # Eve HTTP session channel|- agent/instructions/openui.ts # Generated OpenUI Lang instructions@@ -111,3 +111,9 @@ examples/harnesses/vercel-eve/The example uses Eve's `none()` channel authentication for local development. Do not expose itpublicly in that form. Configure an authenticated Eve channel, restrict network access, and applythe provider and tool permissions appropriate for your deployment.++## Verify++```bash+pnpm verify+```diff --git a/examples/harnesses/vercel-eve/agent/agent.ts b/examples/agent-frameworks/vercel-eve/agent/agent.tssimilarity index 100%rename from examples/harnesses/vercel-eve/agent/agent.tsrename to examples/agent-frameworks/vercel-eve/agent/agent.tsdiff --git a/examples/harnesses/vercel-eve/agent/channels/eve.ts b/examples/agent-frameworks/vercel-eve/agent/channels/eve.tssimilarity index 100%rename from examples/harnesses/vercel-eve/agent/channels/eve.tsrename to examples/agent-frameworks/vercel-eve/agent/channels/eve.tsdiff --git a/examples/harnesses/vercel-eve/agent/instructions.md b/examples/agent-frameworks/vercel-eve/agent/instructions.mdsimilarity index 100%rename from examples/harnesses/vercel-eve/agent/instructions.mdrename to examples/agent-frameworks/vercel-eve/agent/instructions.mddiff --git a/examples/harnesses/vercel-eve/agent/instructions/openui.ts b/examples/agent-frameworks/vercel-eve/agent/instructions/openui.tssimilarity index 100%rename from examples/harnesses/vercel-eve/agent/instructions/openui.tsrename to examples/agent-frameworks/vercel-eve/agent/instructions/openui.tsdiff --git a/examples/harnesses/vercel-eve/agent/tools/get_current_time.ts b/examples/agent-frameworks/vercel-eve/agent/tools/get_current_time.tssimilarity index 100%rename from examples/harnesses/vercel-eve/agent/tools/get_current_time.tsrename to examples/agent-frameworks/vercel-eve/agent/tools/get_current_time.tsdiff --git a/examples/harnesses/vercel-eve/eslint.config.mjs b/examples/agent-frameworks/vercel-eve/eslint.config.mjssimilarity index 100%rename from examples/harnesses/vercel-eve/eslint.config.mjsrename to examples/agent-frameworks/vercel-eve/eslint.config.mjsdiff --git a/examples/form-generator/next-env.d.ts b/examples/agent-frameworks/vercel-eve/next-env.d.tssimilarity index 100%rename from examples/form-generator/next-env.d.tsrename to examples/agent-frameworks/vercel-eve/next-env.d.tsdiff --git a/examples/harnesses/vercel-eve/next.config.ts b/examples/agent-frameworks/vercel-eve/next.config.tssimilarity index 100%rename from examples/harnesses/vercel-eve/next.config.tsrename to examples/agent-frameworks/vercel-eve/next.config.tsdiff --git a/examples/harnesses/vercel-eve/package.json b/examples/agent-frameworks/vercel-eve/package.jsonsimilarity index 88%rename from examples/harnesses/vercel-eve/package.jsonrename to examples/agent-frameworks/vercel-eve/package.jsonindex 5b23692ca..46b206b71 100644--- a/examples/harnesses/vercel-eve/package.json+++ b/examples/agent-frameworks/vercel-eve/package.json@@ -1,6 +1,7 @@{- "name": "vercel-eve",+ "name": "@openuidev/example-vercel-eve","version": "0.0.0",+ "private": true,"type": "module","imports": {"#*": "./agent/*",@@ -14,7 +15,8 @@"eve:build": "eve build","eve:start": "eve start","lint": "eslint",- "typecheck": "tsc --noEmit"+ "typecheck": "tsc --noEmit",+ "verify": "pnpm typecheck && pnpm build"},"dependencies": {"@ai-sdk/openai": "catalog:",diff --git a/examples/harnesses/vercel-eve/src/app/globals.css b/examples/agent-frameworks/vercel-eve/src/app/globals.csssimilarity index 100%rename from examples/harnesses/vercel-eve/src/app/globals.cssrename to examples/agent-frameworks/vercel-eve/src/app/globals.cssdiff --git a/examples/harnesses/vercel-eve/src/app/layout.tsx b/examples/agent-frameworks/vercel-eve/src/app/layout.tsxsimilarity index 100%rename from examples/harnesses/vercel-eve/src/app/layout.tsxrename to examples/agent-frameworks/vercel-eve/src/app/layout.tsxdiff --git a/examples/harnesses/vercel-eve/src/app/page.tsx b/examples/agent-frameworks/vercel-eve/src/app/page.tsxsimilarity index 100%rename from examples/harnesses/vercel-eve/src/app/page.tsxrename to examples/agent-frameworks/vercel-eve/src/app/page.tsxdiff --git a/examples/harnesses/vercel-eve/src/eve-chat.ts b/examples/agent-frameworks/vercel-eve/src/eve-chat.tssimilarity index 100%rename from examples/harnesses/vercel-eve/src/eve-chat.tsrename to examples/agent-frameworks/vercel-eve/src/eve-chat.tsdiff --git a/examples/harnesses/vercel-eve/src/eve-stream.ts b/examples/agent-frameworks/vercel-eve/src/eve-stream.tssimilarity index 100%rename from examples/harnesses/vercel-eve/src/eve-stream.tsrename to examples/agent-frameworks/vercel-eve/src/eve-stream.tsdiff --git a/examples/langchain-chat/src/hooks/use-system-theme.tsx b/examples/agent-frameworks/vercel-eve/src/hooks/use-system-theme.tsxsimilarity index 100%rename from examples/langchain-chat/src/hooks/use-system-theme.tsxrename to examples/agent-frameworks/vercel-eve/src/hooks/use-system-theme.tsxdiff --git a/examples/harnesses/vercel-eve/src/thread-store.ts b/examples/agent-frameworks/vercel-eve/src/thread-store.tssimilarity index 100%rename from examples/harnesses/vercel-eve/src/thread-store.tsrename to examples/agent-frameworks/vercel-eve/src/thread-store.tsdiff --git a/examples/harnesses/vercel-eve/tsconfig.json b/examples/agent-frameworks/vercel-eve/tsconfig.jsonsimilarity index 100%rename from examples/harnesses/vercel-eve/tsconfig.jsonrename to examples/agent-frameworks/vercel-eve/tsconfig.jsondiff --git a/examples/fastapi-backend/README.md b/examples/app-frameworks/fastapi/README.mdsimilarity index 93%rename from examples/fastapi-backend/README.mdrename to examples/app-frameworks/fastapi/README.mdindex e974990a3..1f278b6f3 100644--- a/examples/fastapi-backend/README.md+++ b/examples/app-frameworks/fastapi/README.md@@ -103,5 +103,11 @@ Identical to the one scaffolded by `npx @openuidev/cli create`. Uses `openAIRead## Learn More- [OpenUI Lang overview](https://www.openui.com/docs/openui-lang/overview) — core building blocks: Library, Prompt Generator, Parser, Renderer-- [`@openuidev/react-lang` package](../../packages/react-lang)-- [`@openuidev/react-headless` package](../../packages/react-headless) — streaming adapters and message format converters+- [`@openuidev/react-lang` package](../../../packages/react-lang)+- [`@openuidev/react-headless` package](../../../packages/react-headless) — streaming adapters and message format converters++## Verify++```bash+pnpm verify+```diff --git a/examples/fastapi-backend/backend/.env.example b/examples/app-frameworks/fastapi/backend/.env.examplesimilarity index 100%rename from examples/fastapi-backend/backend/.env.examplerename to examples/app-frameworks/fastapi/backend/.env.examplediff --git a/examples/fastapi-backend/backend/app/main.py b/examples/app-frameworks/fastapi/backend/app/main.pysimilarity index 100%rename from examples/fastapi-backend/backend/app/main.pyrename to examples/app-frameworks/fastapi/backend/app/main.pydiff --git a/examples/fastapi-backend/backend/pyproject.toml b/examples/app-frameworks/fastapi/backend/pyproject.tomlsimilarity index 100%rename from examples/fastapi-backend/backend/pyproject.tomlrename to examples/app-frameworks/fastapi/backend/pyproject.tomldiff --git a/examples/fastapi-backend/frontend/index.html b/examples/app-frameworks/fastapi/frontend/index.htmlsimilarity index 100%rename from examples/fastapi-backend/frontend/index.htmlrename to examples/app-frameworks/fastapi/frontend/index.htmldiff --git a/examples/fastapi-backend/frontend/package.json b/examples/app-frameworks/fastapi/frontend/package.jsonsimilarity index 91%rename from examples/fastapi-backend/frontend/package.jsonrename to examples/app-frameworks/fastapi/frontend/package.jsonindex 9160dfafd..4995fb9c3 100644--- a/examples/fastapi-backend/frontend/package.json+++ b/examples/app-frameworks/fastapi/frontend/package.json@@ -1,5 +1,5 @@{- "name": "openui-fastapi-frontend",+ "name": "@openuidev/example-fastapi-frontend","private": true,"type": "module","scripts": {diff --git a/examples/fastapi-backend/frontend/src/App.jsx b/examples/app-frameworks/fastapi/frontend/src/App.jsxsimilarity index 100%rename from examples/fastapi-backend/frontend/src/App.jsxrename to examples/app-frameworks/fastapi/frontend/src/App.jsxdiff --git a/examples/fastapi-backend/frontend/src/index.css b/examples/app-frameworks/fastapi/frontend/src/index.csssimilarity index 100%rename from examples/fastapi-backend/frontend/src/index.cssrename to examples/app-frameworks/fastapi/frontend/src/index.cssdiff --git a/examples/fastapi-backend/frontend/src/main.jsx b/examples/app-frameworks/fastapi/frontend/src/main.jsxsimilarity index 100%rename from examples/fastapi-backend/frontend/src/main.jsxrename to examples/app-frameworks/fastapi/frontend/src/main.jsxdiff --git a/examples/fastapi-backend/frontend/vite.config.js b/examples/app-frameworks/fastapi/frontend/vite.config.jssimilarity index 100%rename from examples/fastapi-backend/frontend/vite.config.jsrename to examples/app-frameworks/fastapi/frontend/vite.config.jsdiff --git a/examples/app-frameworks/fastapi/package.json b/examples/app-frameworks/fastapi/package.jsonnew file mode 100644index 000000000..b92006362--- /dev/null+++ b/examples/app-frameworks/fastapi/package.json@@ -0,0 +1,7 @@+{+ "name": "@openuidev/example-fastapi",+ "private": true,+ "scripts": {+ "verify": "pnpm --dir frontend build && python3 -c \"import ast,pathlib; [ast.parse(path.read_text()) for path in pathlib.Path('backend').rglob('*.py')]\""+ }+}diff --git a/examples/openui-react-native/README.md b/examples/app-frameworks/react-native/README.mdsimilarity index 83%rename from examples/openui-react-native/README.mdrename to examples/app-frameworks/react-native/README.mdindex 7ea82b4dd..f802ea369 100644--- a/examples/openui-react-native/README.md+++ b/examples/app-frameworks/react-native/README.md@@ -2,7 +2,7 @@A full-stack example that demonstrates using `@openuidev/react-lang` in a React Native (Expo) app with a Next.js API backend. The LLM streams responses in [OpenUI Lang](https://www.openui.com/docs/openui-lang/overview) and the mobile client renders them as native components in real time.-<video src="../../docs/public/videos/react-native-demo.mp4"+<video src="../../../docs/public/videos/react-native-demo.mp4"noControlsplaysInlinemuted@@ -28,18 +28,20 @@ A full-stack example that demonstrates using `@openuidev/react-lang` in a React## Project Structure```-openui-react-native/+react-native/├── package.json # Root workspace scripts-└── backend/ # Next.js API server+├── backend/ # Next.js API server├── src/│ ├── library.ts # Component library definition (Node-compatible)- │ ├── system-prompt.txt # Auto-generated from library.ts+ │ ├── generated/+ │ │ └── system-prompt.txt # Generated locally from library.ts│ └── app/api/chat/│ └── route.ts # Streaming chat endpoint└── env.example+└── chat-app/ # Expo application```-> The React Native app lives in a sibling `react-native-openui/` directory (not checked in here). The root `package.json` wires both together as a pnpm workspace.+The root `package.json` wires the checked-in `backend/` and `chat-app/` workspaces together.## Getting Started@@ -69,7 +71,7 @@ OPENAI_API_KEY=sk-...### 3. Generate the system prompt-The [Prompt Generator](https://www.openui.com/docs/openui-lang/overview) compiles `library.ts` into `system-prompt.txt` — containing component signatures, syntax rules, and streaming guidelines for the LLM:+The [Prompt Generator](https://www.openui.com/docs/openui-lang/overview) compiles `library.ts` into an ignored `generated/system-prompt.txt` containing component signatures, syntax rules, and streaming guidelines for the LLM. The backend dev and build commands run this step automatically; run it directly when you only want to refresh the generated artifacts:```bashpnpm generate:prompt@@ -113,7 +115,7 @@ A Next.js Route Handler that:2. Forwards the conversation to the OpenAI streaming API3. Returns raw `text/plain` chunks — intentionally simpler than SSE so React Native can consume the stream directly without a browser `EventSource`-### React Native app (`react-native-openui/`)+### React Native app (`chat-app/`)Uses the [`<Renderer />`](https://www.openui.com/docs/openui-lang/overview) component from `@openuidev/react-lang` to progressively parse and render the streamed OpenUI Lang output as native components.@@ -128,4 +130,10 @@ Uses the [`<Renderer />`](https://www.openui.com/docs/openui-lang/overview) comp## Learn More- [OpenUI Lang overview](https://www.openui.com/docs/openui-lang/overview) — core building blocks: Library, Prompt Generator, Parser, Renderer-- [`@openuidev/react-lang` package](../../packages/react-lang)+- [`@openuidev/react-lang` package](../../../packages/react-lang)++## Verify++```bash+pnpm verify+```diff --git a/examples/app-frameworks/react-native/backend/.gitignore b/examples/app-frameworks/react-native/backend/.gitignorenew file mode 100644index 000000000..0c22a7440--- /dev/null+++ b/examples/app-frameworks/react-native/backend/.gitignore@@ -0,0 +1,8 @@+node_modules/+.next/+.env*+*.tsbuildinfo+next-env.d.ts++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/openui-react-native/backend/env.example b/examples/app-frameworks/react-native/backend/env.examplesimilarity index 100%rename from examples/openui-react-native/backend/env.examplerename to examples/app-frameworks/react-native/backend/env.examplediff --git a/examples/openui-react-native/backend/next-env.d.ts b/examples/app-frameworks/react-native/backend/next-env.d.tssimilarity index 100%rename from examples/openui-react-native/backend/next-env.d.tsrename to examples/app-frameworks/react-native/backend/next-env.d.tsdiff --git a/examples/openui-react-native/backend/next.config.ts b/examples/app-frameworks/react-native/backend/next.config.tssimilarity index 100%rename from examples/openui-react-native/backend/next.config.tsrename to examples/app-frameworks/react-native/backend/next.config.tsdiff --git a/examples/openui-react-native/backend/package.json b/examples/app-frameworks/react-native/backend/package.jsonsimilarity index 55%rename from examples/openui-react-native/backend/package.jsonrename to examples/app-frameworks/react-native/backend/package.jsonindex f4fcecb02..b78ca0911 100644--- a/examples/openui-react-native/backend/package.json+++ b/examples/app-frameworks/react-native/backend/package.json@@ -1,12 +1,15 @@{- "name": "backend",+ "name": "@openuidev/example-react-native-backend","version": "0.1.0","private": true,"scripts": {+ "generate": "pnpm --filter @openuidev/cli build && node ../../../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate","dev": "next dev",+ "prebuild": "pnpm generate","build": "next build",- "start": "next start",- "generate:prompt": "npx @openuidev/cli@latest generate ./src/library.ts --out ./src/system-prompt.txt"+ "start": "next start"},"dependencies": {"next": "^15.2.3",diff --git a/examples/openui-react-native/backend/src/app/api/chat/route.ts b/examples/app-frameworks/react-native/backend/src/app/api/chat/route.tssimilarity index 96%rename from examples/openui-react-native/backend/src/app/api/chat/route.tsrename to examples/app-frameworks/react-native/backend/src/app/api/chat/route.tsindex 516c8f9ea..8eacd4c94 100644--- a/examples/openui-react-native/backend/src/app/api/chat/route.ts+++ b/examples/app-frameworks/react-native/backend/src/app/api/chat/route.ts@@ -5,7 +5,10 @@ import { join } from "path";const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY ?? "" });-const SYSTEM_PROMPT = readFileSync(join(process.cwd(), "src", "system-prompt.txt"), "utf-8");+const SYSTEM_PROMPT = readFileSync(+ join(process.cwd(), "src", "generated", "system-prompt.txt"),+ "utf-8",+);console.info("[OpenUI Lang] System prompt loaded:\n", SYSTEM_PROMPT);const conversationLog: Array<{ role: string; content: string }> = [];diff --git a/examples/openui-react-native/backend/src/app/layout.tsx b/examples/app-frameworks/react-native/backend/src/app/layout.tsxsimilarity index 100%rename from examples/openui-react-native/backend/src/app/layout.tsxrename to examples/app-frameworks/react-native/backend/src/app/layout.tsxdiff --git a/examples/openui-react-native/backend/src/app/page.tsx b/examples/app-frameworks/react-native/backend/src/app/page.tsxsimilarity index 100%rename from examples/openui-react-native/backend/src/app/page.tsxrename to examples/app-frameworks/react-native/backend/src/app/page.tsxdiff --git a/examples/openui-react-native/backend/src/library.ts b/examples/app-frameworks/react-native/backend/src/library.tssimilarity index 100%rename from examples/openui-react-native/backend/src/library.tsrename to examples/app-frameworks/react-native/backend/src/library.tsdiff --git a/examples/openui-react-native/backend/tsconfig.json b/examples/app-frameworks/react-native/backend/tsconfig.jsonsimilarity index 100%rename from examples/openui-react-native/backend/tsconfig.jsonrename to examples/app-frameworks/react-native/backend/tsconfig.jsondiff --git a/examples/openui-react-native/chat-app/.gitignore b/examples/app-frameworks/react-native/chat-app/.gitignoresimilarity index 100%rename from examples/openui-react-native/chat-app/.gitignorerename to examples/app-frameworks/react-native/chat-app/.gitignorediff --git a/examples/openui-react-native/chat-app/App.tsx b/examples/app-frameworks/react-native/chat-app/App.tsxsimilarity index 100%rename from examples/openui-react-native/chat-app/App.tsxrename to examples/app-frameworks/react-native/chat-app/App.tsxdiff --git a/examples/openui-react-native/chat-app/app.json b/examples/app-frameworks/react-native/chat-app/app.jsonsimilarity index 100%rename from examples/openui-react-native/chat-app/app.jsonrename to examples/app-frameworks/react-native/chat-app/app.jsondiff --git a/examples/openui-react-native/chat-app/assets/android-icon-background.png b/examples/app-frameworks/react-native/chat-app/assets/android-icon-background.pngsimilarity index 100%rename from examples/openui-react-native/chat-app/assets/android-icon-background.pngrename to examples/app-frameworks/react-native/chat-app/assets/android-icon-background.pngdiff --git a/examples/openui-react-native/chat-app/assets/android-icon-foreground.png b/examples/app-frameworks/react-native/chat-app/assets/android-icon-foreground.pngsimilarity index 100%rename from examples/openui-react-native/chat-app/assets/android-icon-foreground.pngrename to examples/app-frameworks/react-native/chat-app/assets/android-icon-foreground.pngdiff --git a/examples/openui-react-native/chat-app/assets/android-icon-monochrome.png b/examples/app-frameworks/react-native/chat-app/assets/android-icon-monochrome.pngsimilarity index 100%rename from examples/openui-react-native/chat-app/assets/android-icon-monochrome.pngrename to examples/app-frameworks/react-native/chat-app/assets/android-icon-monochrome.pngdiff --git a/examples/openui-react-native/chat-app/assets/favicon.png b/examples/app-frameworks/react-native/chat-app/assets/favicon.pngsimilarity index 100%rename from examples/openui-react-native/chat-app/assets/favicon.pngrename to examples/app-frameworks/react-native/chat-app/assets/favicon.pngdiff --git a/examples/openui-react-native/chat-app/assets/icon.png b/examples/app-frameworks/react-native/chat-app/assets/icon.pngsimilarity index 100%rename from examples/openui-react-native/chat-app/assets/icon.pngrename to examples/app-frameworks/react-native/chat-app/assets/icon.pngdiff --git a/examples/openui-react-native/chat-app/assets/splash-icon.png b/examples/app-frameworks/react-native/chat-app/assets/splash-icon.pngsimilarity index 100%rename from examples/openui-react-native/chat-app/assets/splash-icon.pngrename to examples/app-frameworks/react-native/chat-app/assets/splash-icon.pngdiff --git a/examples/openui-react-native/chat-app/components/BotBubble.tsx b/examples/app-frameworks/react-native/chat-app/components/BotBubble.tsxsimilarity index 100%rename from examples/openui-react-native/chat-app/components/BotBubble.tsxrename to examples/app-frameworks/react-native/chat-app/components/BotBubble.tsxdiff --git a/examples/openui-react-native/chat-app/components/ChatInput.tsx b/examples/app-frameworks/react-native/chat-app/components/ChatInput.tsxsimilarity index 100%rename from examples/openui-react-native/chat-app/components/ChatInput.tsxrename to examples/app-frameworks/react-native/chat-app/components/ChatInput.tsxdiff --git a/examples/openui-react-native/chat-app/components/SuggestedPrompts.tsx b/examples/app-frameworks/react-native/chat-app/components/SuggestedPrompts.tsxsimilarity index 100%rename from examples/openui-react-native/chat-app/components/SuggestedPrompts.tsxrename to examples/app-frameworks/react-native/chat-app/components/SuggestedPrompts.tsxdiff --git a/examples/openui-react-native/chat-app/components/UserBubble.tsx b/examples/app-frameworks/react-native/chat-app/components/UserBubble.tsxsimilarity index 100%rename from examples/openui-react-native/chat-app/components/UserBubble.tsxrename to examples/app-frameworks/react-native/chat-app/components/UserBubble.tsxdiff --git a/examples/openui-react-native/chat-app/hooks/useStreamingChat.ts b/examples/app-frameworks/react-native/chat-app/hooks/useStreamingChat.tssimilarity index 100%rename from examples/openui-react-native/chat-app/hooks/useStreamingChat.tsrename to examples/app-frameworks/react-native/chat-app/hooks/useStreamingChat.tsdiff --git a/examples/openui-react-native/chat-app/index.ts b/examples/app-frameworks/react-native/chat-app/index.tssimilarity index 100%rename from examples/openui-react-native/chat-app/index.tsrename to examples/app-frameworks/react-native/chat-app/index.tsdiff --git a/examples/openui-react-native/chat-app/library.tsx b/examples/app-frameworks/react-native/chat-app/library.tsxsimilarity index 100%rename from examples/openui-react-native/chat-app/library.tsxrename to examples/app-frameworks/react-native/chat-app/library.tsxdiff --git a/examples/openui-react-native/chat-app/metro.config.js b/examples/app-frameworks/react-native/chat-app/metro.config.jssimilarity index 100%rename from examples/openui-react-native/chat-app/metro.config.jsrename to examples/app-frameworks/react-native/chat-app/metro.config.jsdiff --git a/examples/openui-react-native/chat-app/package-lock.json b/examples/app-frameworks/react-native/chat-app/package-lock.jsonsimilarity index 99%rename from examples/openui-react-native/chat-app/package-lock.jsonrename to examples/app-frameworks/react-native/chat-app/package-lock.jsonindex 63d447465..d582783ba 100644--- a/examples/openui-react-native/chat-app/package-lock.json+++ b/examples/app-frameworks/react-native/chat-app/package-lock.json@@ -1,11 +1,11 @@{- "name": "react-native-openui",+ "name": "@openuidev/example-react-native-app","version": "1.0.0","lockfileVersion": 3,"requires": true,"packages": {"": {- "name": "react-native-openui",+ "name": "@openuidev/example-react-native-app","version": "1.0.0","dependencies": {"@openuidev/react-lang": "^0.1.3",diff --git a/examples/openui-react-native/chat-app/package.json b/examples/app-frameworks/react-native/chat-app/package.jsonsimilarity index 90%rename from examples/openui-react-native/chat-app/package.jsonrename to examples/app-frameworks/react-native/chat-app/package.jsonindex 341467193..60096526c 100644--- a/examples/openui-react-native/chat-app/package.json+++ b/examples/app-frameworks/react-native/chat-app/package.json@@ -1,6 +1,7 @@{- "name": "react-native-openui",+ "name": "@openuidev/example-react-native-app","version": "1.0.0",+ "private": true,"main": "index.ts","scripts": {"start": "expo start",diff --git a/examples/openui-react-native/chat-app/pnpm-lock.yaml b/examples/app-frameworks/react-native/chat-app/pnpm-lock.yamlsimilarity index 100%rename from examples/openui-react-native/chat-app/pnpm-lock.yamlrename to examples/app-frameworks/react-native/chat-app/pnpm-lock.yamldiff --git a/examples/openui-react-native/chat-app/screens/ChatScreen.tsx b/examples/app-frameworks/react-native/chat-app/screens/ChatScreen.tsxsimilarity index 100%rename from examples/openui-react-native/chat-app/screens/ChatScreen.tsxrename to examples/app-frameworks/react-native/chat-app/screens/ChatScreen.tsxdiff --git a/examples/openui-react-native/chat-app/screens/ErrorScreen.tsx b/examples/app-frameworks/react-native/chat-app/screens/ErrorScreen.tsxsimilarity index 100%rename from examples/openui-react-native/chat-app/screens/ErrorScreen.tsxrename to examples/app-frameworks/react-native/chat-app/screens/ErrorScreen.tsxdiff --git a/examples/openui-react-native/chat-app/store/streamStore.ts b/examples/app-frameworks/react-native/chat-app/store/streamStore.tssimilarity index 100%rename from examples/openui-react-native/chat-app/store/streamStore.tsrename to examples/app-frameworks/react-native/chat-app/store/streamStore.tsdiff --git a/examples/openui-react-native/chat-app/tsconfig.json b/examples/app-frameworks/react-native/chat-app/tsconfig.jsonsimilarity index 100%rename from examples/openui-react-native/chat-app/tsconfig.jsonrename to examples/app-frameworks/react-native/chat-app/tsconfig.jsondiff --git a/examples/app-frameworks/react-native/package.json b/examples/app-frameworks/react-native/package.jsonnew file mode 100644index 000000000..f1e34f082--- /dev/null+++ b/examples/app-frameworks/react-native/package.json@@ -0,0 +1,16 @@+{+ "name": "@openuidev/example-react-native",+ "private": true,+ "scripts": {+ "dev:backend": "pnpm --filter @openuidev/example-react-native-backend dev",+ "dev:mobile": "pnpm --filter @openuidev/example-react-native-app start",+ "generate:prompt": "pnpm --filter @openuidev/example-react-native-backend generate:prompt",+ "preverify": "pnpm generate:prompt",+ "verify": "pnpm --dir backend exec next build && pnpm --dir chat-app exec tsc --noEmit",+ "lint": "eslint",+ "lint:check": "eslint ./src",+ "lint:fix": "eslint ./src --fix",+ "format:fix": "prettier --write ./*",+ "format:check": "prettier --check ./*"+ }+}diff --git a/examples/svelte-chat/.env.example b/examples/app-frameworks/svelte/.env.examplesimilarity index 100%rename from examples/svelte-chat/.env.examplerename to examples/app-frameworks/svelte/.env.examplediff --git a/examples/svelte-chat/.gitignore b/examples/app-frameworks/svelte/.gitignoresimilarity index 100%rename from examples/svelte-chat/.gitignorerename to examples/app-frameworks/svelte/.gitignorediff --git a/examples/svelte-chat/README.md b/examples/app-frameworks/svelte/README.mdsimilarity index 81%rename from examples/svelte-chat/README.mdrename to examples/app-frameworks/svelte/README.mdindex 8bfdd2751..3a19735c6 100644--- a/examples/svelte-chat/README.md+++ b/examples/app-frameworks/svelte/README.md@@ -1,6 +1,6 @@# OpenUI Svelte Chat-A chat application built with [SvelteKit](https://svelte.dev/docs/kit), [Vercel AI SDK](https://ai-sdk.dev), and [`@openuidev/svelte-lang`](../../packages/svelte-lang/) — demonstrating how to render structured LLM output as live Svelte components.+A chat application built with [SvelteKit](https://svelte.dev/docs/kit), [Vercel AI SDK](https://ai-sdk.dev), and [`@openuidev/svelte-lang`](../../../packages/svelte-lang/) — demonstrating how to render structured LLM output as live Svelte components.## How it works@@ -40,7 +40,7 @@ OPENAI_API_KEY=sk-...### Run```bash-pnpm --filter svelte-chat dev+pnpm --filter @openuidev/example-svelte dev```Open [http://localhost:5173](http://localhost:5173).@@ -62,14 +62,18 @@ src/│ ├── Card.svelte│ ├── TextContent.svelte│ └── Button.svelte-└── generated/- └── system-prompt.txt # LLM system prompt describing the openui-lang syntax```## Adding components1. Create a Svelte component in `src/lib/components/`2. Define it with `defineComponent()` in `src/lib/library.ts`-3. Add its signature to `src/generated/system-prompt.txt`+3. Export it from `src/lib/library.ts`; the API builds the system prompt from the library at runtime-See the [`@openuidev/svelte-lang` README](../../packages/svelte-lang/README.md) for the full API.+See the [`@openuidev/svelte-lang` README](../../../packages/svelte-lang/README.md) for the full API.++## Verify++```bash+pnpm verify+```diff --git a/examples/svelte-chat/package.json b/examples/app-frameworks/svelte/package.jsonsimilarity index 90%rename from examples/svelte-chat/package.jsonrename to examples/app-frameworks/svelte/package.jsonindex 250a88ee0..4878408f5 100644--- a/examples/svelte-chat/package.json+++ b/examples/app-frameworks/svelte/package.json@@ -1,10 +1,11 @@{- "name": "svelte-chat",+ "name": "@openuidev/example-svelte","private": true,"type": "module","scripts": {"dev": "vite dev","build": "vite build",+ "verify": "vite build","preview": "vite preview"},"dependencies": {diff --git a/examples/svelte-chat/src/app.css b/examples/app-frameworks/svelte/src/app.csssimilarity index 100%rename from examples/svelte-chat/src/app.cssrename to examples/app-frameworks/svelte/src/app.cssdiff --git a/examples/svelte-chat/src/app.d.ts b/examples/app-frameworks/svelte/src/app.d.tssimilarity index 100%rename from examples/svelte-chat/src/app.d.tsrename to examples/app-frameworks/svelte/src/app.d.tsdiff --git a/examples/svelte-chat/src/app.html b/examples/app-frameworks/svelte/src/app.htmlsimilarity index 100%rename from examples/svelte-chat/src/app.htmlrename to examples/app-frameworks/svelte/src/app.htmldiff --git a/examples/svelte-chat/src/lib/components/Button.svelte b/examples/app-frameworks/svelte/src/lib/components/Button.sveltesimilarity index 100%rename from examples/svelte-chat/src/lib/components/Button.svelterename to examples/app-frameworks/svelte/src/lib/components/Button.sveltediff --git a/examples/svelte-chat/src/lib/components/Card.svelte b/examples/app-frameworks/svelte/src/lib/components/Card.sveltesimilarity index 100%rename from examples/svelte-chat/src/lib/components/Card.svelterename to examples/app-frameworks/svelte/src/lib/components/Card.sveltediff --git a/examples/svelte-chat/src/lib/components/Chart.svelte b/examples/app-frameworks/svelte/src/lib/components/Chart.sveltesimilarity index 100%rename from examples/svelte-chat/src/lib/components/Chart.svelterename to examples/app-frameworks/svelte/src/lib/components/Chart.sveltediff --git a/examples/svelte-chat/src/lib/components/Stack.svelte b/examples/app-frameworks/svelte/src/lib/components/Stack.sveltesimilarity index 100%rename from examples/svelte-chat/src/lib/components/Stack.svelterename to examples/app-frameworks/svelte/src/lib/components/Stack.sveltediff --git a/examples/svelte-chat/src/lib/components/TextContent.svelte b/examples/app-frameworks/svelte/src/lib/components/TextContent.sveltesimilarity index 100%rename from examples/svelte-chat/src/lib/components/TextContent.svelterename to examples/app-frameworks/svelte/src/lib/components/TextContent.sveltediff --git a/examples/svelte-chat/src/lib/library.ts b/examples/app-frameworks/svelte/src/lib/library.tssimilarity index 100%rename from examples/svelte-chat/src/lib/library.tsrename to examples/app-frameworks/svelte/src/lib/library.tsdiff --git a/examples/svelte-chat/src/lib/tools.ts b/examples/app-frameworks/svelte/src/lib/tools.tssimilarity index 100%rename from examples/svelte-chat/src/lib/tools.tsrename to examples/app-frameworks/svelte/src/lib/tools.tsdiff --git a/examples/svelte-chat/src/routes/+layout.svelte b/examples/app-frameworks/svelte/src/routes/+layout.sveltesimilarity index 100%rename from examples/svelte-chat/src/routes/+layout.svelterename to examples/app-frameworks/svelte/src/routes/+layout.sveltediff --git a/examples/svelte-chat/src/routes/+layout.ts b/examples/app-frameworks/svelte/src/routes/+layout.tssimilarity index 100%rename from examples/svelte-chat/src/routes/+layout.tsrename to examples/app-frameworks/svelte/src/routes/+layout.tsdiff --git a/examples/svelte-chat/src/routes/+page.svelte b/examples/app-frameworks/svelte/src/routes/+page.sveltesimilarity index 100%rename from examples/svelte-chat/src/routes/+page.svelterename to examples/app-frameworks/svelte/src/routes/+page.sveltediff --git a/examples/svelte-chat/src/routes/AssistantMessage.svelte b/examples/app-frameworks/svelte/src/routes/AssistantMessage.sveltesimilarity index 100%rename from examples/svelte-chat/src/routes/AssistantMessage.svelterename to examples/app-frameworks/svelte/src/routes/AssistantMessage.sveltediff --git a/examples/svelte-chat/src/routes/ChatHeader.svelte b/examples/app-frameworks/svelte/src/routes/ChatHeader.sveltesimilarity index 100%rename from examples/svelte-chat/src/routes/ChatHeader.svelterename to examples/app-frameworks/svelte/src/routes/ChatHeader.sveltediff --git a/examples/svelte-chat/src/routes/ChatInput.svelte b/examples/app-frameworks/svelte/src/routes/ChatInput.sveltesimilarity index 100%rename from examples/svelte-chat/src/routes/ChatInput.svelterename to examples/app-frameworks/svelte/src/routes/ChatInput.sveltediff --git a/examples/svelte-chat/src/routes/LoadingIndicator.svelte b/examples/app-frameworks/svelte/src/routes/LoadingIndicator.sveltesimilarity index 100%rename from examples/svelte-chat/src/routes/LoadingIndicator.svelterename to examples/app-frameworks/svelte/src/routes/LoadingIndicator.sveltediff --git a/examples/svelte-chat/src/routes/UserMessage.svelte b/examples/app-frameworks/svelte/src/routes/UserMessage.sveltesimilarity index 100%rename from examples/svelte-chat/src/routes/UserMessage.svelterename to examples/app-frameworks/svelte/src/routes/UserMessage.sveltediff --git a/examples/svelte-chat/src/routes/WelcomeScreen.svelte b/examples/app-frameworks/svelte/src/routes/WelcomeScreen.sveltesimilarity index 100%rename from examples/svelte-chat/src/routes/WelcomeScreen.svelterename to examples/app-frameworks/svelte/src/routes/WelcomeScreen.sveltediff --git a/examples/svelte-chat/src/routes/api/chat/+server.ts b/examples/app-frameworks/svelte/src/routes/api/chat/+server.tssimilarity index 100%rename from examples/svelte-chat/src/routes/api/chat/+server.tsrename to examples/app-frameworks/svelte/src/routes/api/chat/+server.tsdiff --git a/examples/svelte-chat/svelte.config.js b/examples/app-frameworks/svelte/svelte.config.jssimilarity index 100%rename from examples/svelte-chat/svelte.config.jsrename to examples/app-frameworks/svelte/svelte.config.jsdiff --git a/examples/svelte-chat/tsconfig.json b/examples/app-frameworks/svelte/tsconfig.jsonsimilarity index 100%rename from examples/svelte-chat/tsconfig.jsonrename to examples/app-frameworks/svelte/tsconfig.jsondiff --git a/examples/svelte-chat/vite.config.ts b/examples/app-frameworks/svelte/vite.config.tssimilarity index 100%rename from examples/svelte-chat/vite.config.tsrename to examples/app-frameworks/svelte/vite.config.tsdiff --git a/examples/vercel-ai-chat/.env.example b/examples/app-frameworks/vue/.env.examplesimilarity index 100%rename from examples/vercel-ai-chat/.env.examplerename to examples/app-frameworks/vue/.env.examplediff --git a/examples/app-frameworks/vue/.gitignore b/examples/app-frameworks/vue/.gitignorenew file mode 100644index 000000000..a63125459--- /dev/null+++ b/examples/app-frameworks/vue/.gitignore@@ -0,0 +1,6 @@+.nuxt/+.output/+node_modules/++# generated OpenUI prompt and schema+/generated/diff --git a/examples/vue-chat/README.md b/examples/app-frameworks/vue/README.mdsimilarity index 75%rename from examples/vue-chat/README.mdrename to examples/app-frameworks/vue/README.mdindex 631604a69..1056f78f4 100644--- a/examples/vue-chat/README.md+++ b/examples/app-frameworks/vue/README.md@@ -1,6 +1,6 @@# OpenUI Vue Chat-A chat application built with [Nuxt 3](https://nuxt.com), [Vercel AI SDK](https://ai-sdk.dev), and [`@openuidev/vue-lang`](../../packages/vue-lang/) — demonstrating how to render structured LLM output as live Vue components.+A chat application built with [Nuxt 3](https://nuxt.com), [Vercel AI SDK](https://ai-sdk.dev), and [`@openuidev/vue-lang`](../../../packages/vue-lang/) — demonstrating how to render structured LLM output as live Vue components.## How it works@@ -40,15 +40,15 @@ OPENAI_API_KEY=sk-...### Generate the system prompt (optional)```bash-pnpm --filter vue-chat generate:prompt+pnpm --filter @openuidev/example-vue generate:prompt```-The generated prompt lives at `generated/system-prompt.txt` and is checked in, so this step is only needed after modifying component definitions in `lib/library.ts`.+The generated prompt lives at the ignored path `generated/system-prompt.txt`. The dev and build commands regenerate it automatically, so this step is only needed when you want to inspect the generated artifacts without starting the app.### Run```bash-pnpm --filter vue-chat dev+pnpm --filter @openuidev/example-vue dev```Open [http://localhost:3000](http://localhost:3000).@@ -79,7 +79,7 @@ lib/server/└── api/chat.post.ts # AI SDK streaming endpointgenerated/-└── system-prompt.txt # LLM system prompt describing the openui-lang syntax+└── system-prompt.txt # Generated locally; ignored by Gitassets/└── app.css # Tailwind CSS entry point```@@ -88,7 +88,12 @@ assets/1. Create a Vue component in `components/openui/`2. Define it with `defineComponent()` in `lib/library.ts`-3. Run `pnpm --filter vue-chat generate:prompt` to update `generated/system-prompt.txt`-4. Commit the updated prompt file+3. Restart the dev server, or run `pnpm --filter @openuidev/example-vue generate:prompt`, to update `generated/system-prompt.txt`-See the [`@openuidev/vue-lang` README](../../packages/vue-lang/README.md) for the full API.+See the [`@openuidev/vue-lang` README](../../../packages/vue-lang/README.md) for the full API.++## Verify++```bash+pnpm verify+```diff --git a/examples/vue-chat/app.vue b/examples/app-frameworks/vue/app.vuesimilarity index 100%rename from examples/vue-chat/app.vuerename to examples/app-frameworks/vue/app.vuediff --git a/examples/vue-chat/assets/app.css b/examples/app-frameworks/vue/assets/app.csssimilarity index 100%rename from examples/vue-chat/assets/app.cssrename to examples/app-frameworks/vue/assets/app.cssdiff --git a/examples/vue-chat/components/AssistantMessage.vue b/examples/app-frameworks/vue/components/AssistantMessage.vuesimilarity index 100%rename from examples/vue-chat/components/AssistantMessage.vuerename to examples/app-frameworks/vue/components/AssistantMessage.vuediff --git a/examples/vue-chat/components/ChatHeader.vue b/examples/app-frameworks/vue/components/ChatHeader.vuesimilarity index 100%rename from examples/vue-chat/components/ChatHeader.vuerename to examples/app-frameworks/vue/components/ChatHeader.vuediff --git a/examples/vue-chat/components/ChatInput.vue b/examples/app-frameworks/vue/components/ChatInput.vuesimilarity index 100%rename from examples/vue-chat/components/ChatInput.vuerename to examples/app-frameworks/vue/components/ChatInput.vuediff --git a/examples/vue-chat/components/LoadingIndicator.vue b/examples/app-frameworks/vue/components/LoadingIndicator.vuesimilarity index 100%rename from examples/vue-chat/components/LoadingIndicator.vuerename to examples/app-frameworks/vue/components/LoadingIndicator.vuediff --git a/examples/vue-chat/components/UserMessage.vue b/examples/app-frameworks/vue/components/UserMessage.vuesimilarity index 100%rename from examples/vue-chat/components/UserMessage.vuerename to examples/app-frameworks/vue/components/UserMessage.vuediff --git a/examples/vue-chat/components/WelcomeScreen.vue b/examples/app-frameworks/vue/components/WelcomeScreen.vuesimilarity index 100%rename from examples/vue-chat/components/WelcomeScreen.vuerename to examples/app-frameworks/vue/components/WelcomeScreen.vuediff --git a/examples/vue-chat/components/openui/Button.vue b/examples/app-frameworks/vue/components/openui/Button.vuesimilarity index 100%rename from examples/vue-chat/components/openui/Button.vuerename to examples/app-frameworks/vue/components/openui/Button.vuediff --git a/examples/vue-chat/components/openui/Card.vue b/examples/app-frameworks/vue/components/openui/Card.vuesimilarity index 100%rename from examples/vue-chat/components/openui/Card.vuerename to examples/app-frameworks/vue/components/openui/Card.vuediff --git a/examples/vue-chat/components/openui/Chart.vue b/examples/app-frameworks/vue/components/openui/Chart.vuesimilarity index 100%rename from examples/vue-chat/components/openui/Chart.vuerename to examples/app-frameworks/vue/components/openui/Chart.vuediff --git a/examples/vue-chat/components/openui/Stack.vue b/examples/app-frameworks/vue/components/openui/Stack.vuesimilarity index 100%rename from examples/vue-chat/components/openui/Stack.vuerename to examples/app-frameworks/vue/components/openui/Stack.vuediff --git a/examples/vue-chat/components/openui/TextContent.vue b/examples/app-frameworks/vue/components/openui/TextContent.vuesimilarity index 100%rename from examples/vue-chat/components/openui/TextContent.vuerename to examples/app-frameworks/vue/components/openui/TextContent.vuediff --git a/examples/vue-chat/lib/library.ts b/examples/app-frameworks/vue/lib/library.tssimilarity index 100%rename from examples/vue-chat/lib/library.tsrename to examples/app-frameworks/vue/lib/library.tsdiff --git a/examples/vue-chat/lib/tools.ts b/examples/app-frameworks/vue/lib/tools.tssimilarity index 100%rename from examples/vue-chat/lib/tools.tsrename to examples/app-frameworks/vue/lib/tools.tsdiff --git a/examples/vue-chat/nuxt.config.ts b/examples/app-frameworks/vue/nuxt.config.tssimilarity index 100%rename from examples/vue-chat/nuxt.config.tsrename to examples/app-frameworks/vue/nuxt.config.tsdiff --git a/examples/vue-chat/package.json b/examples/app-frameworks/vue/package.jsonsimilarity index 66%rename from examples/vue-chat/package.jsonrename to examples/app-frameworks/vue/package.jsonindex c23e14f65..338726716 100644--- a/examples/vue-chat/package.json+++ b/examples/app-frameworks/vue/package.json@@ -1,12 +1,17 @@{- "name": "vue-chat",+ "name": "@openuidev/example-vue","private": true,"type": "module","scripts": {+ "generate": "node scripts/generate-prompt.mjs",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate","dev": "nuxt dev",+ "prebuild": "pnpm generate","build": "nuxt build",- "preview": "nuxt preview",- "generate:prompt": "node scripts/generate-prompt.mjs"+ "preverify": "pnpm generate",+ "verify": "nuxt build",+ "preview": "nuxt preview"},"dependencies": {"@ai-sdk/openai": "catalog:",diff --git a/examples/vue-chat/pages/index.vue b/examples/app-frameworks/vue/pages/index.vuesimilarity index 100%rename from examples/vue-chat/pages/index.vuerename to examples/app-frameworks/vue/pages/index.vuediff --git a/examples/vue-chat/scripts/generate-prompt.mjs b/examples/app-frameworks/vue/scripts/generate-prompt.mjssimilarity index 100%rename from examples/vue-chat/scripts/generate-prompt.mjsrename to examples/app-frameworks/vue/scripts/generate-prompt.mjsdiff --git a/examples/vue-chat/server/api/chat.post.ts b/examples/app-frameworks/vue/server/api/chat.post.tssimilarity index 100%rename from examples/vue-chat/server/api/chat.post.tsrename to examples/app-frameworks/vue/server/api/chat.post.tsdiff --git a/examples/vue-chat/tsconfig.json b/examples/app-frameworks/vue/tsconfig.jsonsimilarity index 100%rename from examples/vue-chat/tsconfig.jsonrename to examples/app-frameworks/vue/tsconfig.jsondiff --git a/examples/material-ui-chat/.env.example b/examples/design-systems/material-ui/.env.examplesimilarity index 100%rename from examples/material-ui-chat/.env.examplerename to examples/design-systems/material-ui/.env.examplediff --git a/examples/design-systems/material-ui/.gitignore b/examples/design-systems/material-ui/.gitignorenew file mode 100644index 000000000..cde31c5fc--- /dev/null+++ b/examples/design-systems/material-ui/.gitignore@@ -0,0 +1,8 @@+.next+node_modules+.env+.env.local+*.tsbuildinfo++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/material-ui-chat/README.md b/examples/design-systems/material-ui/README.mdsimilarity index 96%rename from examples/material-ui-chat/README.mdrename to examples/design-systems/material-ui/README.mdindex 652e26e80..d61c77271 100644--- a/examples/material-ui-chat/README.md+++ b/examples/design-systems/material-ui/README.md@@ -2,7 +2,7 @@A full-stack generative UI chatbot that wires [OpenUI Lang](https://www.openui.com/docs/openui-lang/overview) to a custom component library built on [Material UI](https://mui.com/material-ui/). Instead of replying with plain text, the LLM generates structured UI markup that the client renders as MUI components — cards, tables, charts, forms, tabs, accordions, alerts, lists, and more — in real time as tokens stream in.-This is the MUI counterpart to the [`shadcn-chat`](../shadcn-chat) example. It shows how to map OpenUI Lang nodes onto an existing design system (MUI components + theme), including light/dark mode.+This is the MUI counterpart to the [`shadcn`](../shadcn) example. It shows how to map OpenUI Lang nodes onto an existing design system (MUI components + theme), including light/dark mode.## How It Works@@ -45,7 +45,7 @@ On the client, `<AgentInterface />` from `@openuidev/react-ui` provides the arti## Project Structure```-material-ui-chat/+material-ui/├── src/│ ├── library.ts # Entry the OpenUI CLI reads to generate the prompt│ ├── app/@@ -108,7 +108,7 @@ pnpm installProvide your API key:```bash-cd examples/material-ui-chat+cd examples/design-systems/material-uicp .env.example .env.local# edit .env.local and set OPENAI_API_KEY```@@ -141,3 +141,9 @@ pnpm build2. If it can appear inside other containers, add its `.ref` to `ContentChildUnion` in `unions.ts`.3. Register it in the `components` array (and a `componentGroups` entry) in `index.tsx`.4. Run `pnpm generate:prompt` so the LLM learns about it.++## Verify++```bash+pnpm verify+```diff --git a/examples/harnesses/vercel-eve/next-env.d.ts b/examples/design-systems/material-ui/next-env.d.tssimilarity index 100%rename from examples/harnesses/vercel-eve/next-env.d.tsrename to examples/design-systems/material-ui/next-env.d.tsdiff --git a/examples/material-ui-chat/next.config.ts b/examples/design-systems/material-ui/next.config.tssimilarity index 100%rename from examples/material-ui-chat/next.config.tsrename to examples/design-systems/material-ui/next.config.tsdiff --git a/examples/material-ui-chat/package.json b/examples/design-systems/material-ui/package.jsonsimilarity index 64%rename from examples/material-ui-chat/package.jsonrename to examples/design-systems/material-ui/package.jsonindex 34efb4965..f160a5f9c 100644--- a/examples/material-ui-chat/package.json+++ b/examples/design-systems/material-ui/package.json@@ -1,11 +1,16 @@{- "name": "material-ui-chat",+ "name": "@openuidev/example-material-ui","version": "0.1.0","private": true,"scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && pnpm exec openui generate src/library.ts --out src/generated/system-prompt.txt",- "dev": "pnpm generate:prompt && next dev",- "build": "pnpm generate:prompt && next build",+ "generate": "pnpm --filter @openuidev/cli build && node ../../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate",+ "dev": "next dev",+ "prebuild": "pnpm generate",+ "build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/material-ui-chat/src/app/api/chat/route.ts b/examples/design-systems/material-ui/src/app/api/chat/route.tssimilarity index 100%rename from examples/material-ui-chat/src/app/api/chat/route.tsrename to examples/design-systems/material-ui/src/app/api/chat/route.tsdiff --git a/examples/material-ui-chat/src/app/globals.css b/examples/design-systems/material-ui/src/app/globals.csssimilarity index 100%rename from examples/material-ui-chat/src/app/globals.cssrename to examples/design-systems/material-ui/src/app/globals.cssdiff --git a/examples/material-ui-chat/src/app/layout.tsx b/examples/design-systems/material-ui/src/app/layout.tsxsimilarity index 100%rename from examples/material-ui-chat/src/app/layout.tsxrename to examples/design-systems/material-ui/src/app/layout.tsxdiff --git a/examples/material-ui-chat/src/app/page.tsx b/examples/design-systems/material-ui/src/app/page.tsxsimilarity index 100%rename from examples/material-ui-chat/src/app/page.tsxrename to examples/design-systems/material-ui/src/app/page.tsxdiff --git a/examples/material-ui-chat/src/hooks/use-system-theme.tsx b/examples/design-systems/material-ui/src/hooks/use-system-theme.tsxsimilarity index 100%rename from examples/material-ui-chat/src/hooks/use-system-theme.tsxrename to examples/design-systems/material-ui/src/hooks/use-system-theme.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/action.ts b/examples/design-systems/material-ui/src/lib/mui-genui/action.tssimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/action.tsrename to examples/design-systems/material-ui/src/lib/mui-genui/action.tsdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/accordion.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/accordion.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/accordion.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/accordion.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/alert.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/alert.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/alert.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/alert.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/button.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/button.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/button.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/button.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/buttons.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/buttons.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/buttons.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/buttons.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/card-header.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/card-header.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/card-header.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/card-header.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/charts.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/charts.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/charts.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/charts.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/divider.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/divider.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/divider.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/divider.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/follow-up-block.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/follow-up-block.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/follow-up-block.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/follow-up-block.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/form-control.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/form-control.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/form-control.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/form-control.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/form.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/form.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/form.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/form.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/heading.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/heading.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/heading.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/heading.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/input.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/input.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/input.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/input.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/list.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/list.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/list.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/list.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/progress.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/progress.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/progress.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/progress.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/select.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/select.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/select.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/select.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/switch-group.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/switch-group.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/switch-group.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/switch-group.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/table.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/table.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/table.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/table.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/tabs.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/tabs.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/tabs.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/tabs.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/components/text-content.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/components/text-content.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/components/text-content.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/components/text-content.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/helpers.ts b/examples/design-systems/material-ui/src/lib/mui-genui/helpers.tssimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/helpers.tsrename to examples/design-systems/material-ui/src/lib/mui-genui/helpers.tsdiff --git a/examples/material-ui-chat/src/lib/mui-genui/index.tsx b/examples/design-systems/material-ui/src/lib/mui-genui/index.tsxsimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/index.tsxrename to examples/design-systems/material-ui/src/lib/mui-genui/index.tsxdiff --git a/examples/form-generator/src/lib/heroui-genui/rules.ts b/examples/design-systems/material-ui/src/lib/mui-genui/rules.tssimilarity index 100%rename from examples/form-generator/src/lib/heroui-genui/rules.tsrename to examples/design-systems/material-ui/src/lib/mui-genui/rules.tsdiff --git a/examples/material-ui-chat/src/lib/mui-genui/theme.ts b/examples/design-systems/material-ui/src/lib/mui-genui/theme.tssimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/theme.tsrename to examples/design-systems/material-ui/src/lib/mui-genui/theme.tsdiff --git a/examples/material-ui-chat/src/lib/mui-genui/unions.ts b/examples/design-systems/material-ui/src/lib/mui-genui/unions.tssimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/unions.tsrename to examples/design-systems/material-ui/src/lib/mui-genui/unions.tsdiff --git a/examples/material-ui-chat/src/library.ts b/examples/design-systems/material-ui/src/library.tssimilarity index 100%rename from examples/material-ui-chat/src/library.tsrename to examples/design-systems/material-ui/src/library.tsdiff --git a/examples/material-ui-chat/tsconfig.json b/examples/design-systems/material-ui/tsconfig.jsonsimilarity index 100%rename from examples/material-ui-chat/tsconfig.jsonrename to examples/design-systems/material-ui/tsconfig.jsondiff --git a/examples/design-systems/shadcn/.gitignore b/examples/design-systems/shadcn/.gitignorenew file mode 100644index 000000000..566456062--- /dev/null+++ b/examples/design-systems/shadcn/.gitignore@@ -0,0 +1,7 @@+.next+node_modules+.env+.env.local++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/shadcn-chat/README.md b/examples/design-systems/shadcn/README.mdsimilarity index 97%rename from examples/shadcn-chat/README.mdrename to examples/design-systems/shadcn/README.mdindex 4dc6d165a..307204ba3 100644--- a/examples/shadcn-chat/README.md+++ b/examples/design-systems/shadcn/README.md@@ -4,7 +4,7 @@ A full-stack generative UI chatbot that demonstrates wiring [OpenUI Lang](https:Features: 45+ custom shadcn/ui components, multi-step tool calling, Server-Sent Events (SSE) streaming, and automatic light/dark theme support.-<video src="../../docs/public/videos/shadcn-demo-chat.mp4"+<video src="../../../docs/public/videos/shadcn-demo-chat.mp4"noControlsplaysInlinemuted@@ -14,7 +14,7 @@ Features: 45+ custom shadcn/ui components, multi-step tool calling, Server-Sentloop/>-[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/shadcn-chat)+[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/design-systems/shadcn)---@@ -61,7 +61,7 @@ On the client, the `<AgentInterface />` component from `@openuidev/react-ui` han## Project Structure```-shadcn-chat/+shadcn/├── src/│ ├── app/│ │ ├── api/chat/route.ts # Streaming chat endpoint (OpenAI SDK + SSE)@@ -96,13 +96,13 @@ shadcn-chat/### 1. Install dependencies```bash-cd examples/shadcn-chat+cd examples/design-systems/shadcnpnpm install```### 2. Configure environment-Create a `.env.local` file in the `examples/shadcn-chat/` directory:+Create a `.env.local` file in the `examples/design-systems/shadcn/` directory:```OPENAI_API_KEY=sk-...@@ -285,4 +285,10 @@ Returns mock search results for any query.- [OpenUI Lang overview](https://www.openui.com/docs/openui-lang/overview) — Library, Prompt Generator, Parser, Renderer- [Defining Components](https://www.openui.com/docs/openui-lang/defining-components) — `defineComponent` and `createLibrary` API- [shadcn/ui](https://ui.shadcn.com/) — the underlying component system-- [`@openuidev/react-lang` package](../../packages/react-lang)+- [`@openuidev/react-lang` package](../../../packages/react-lang)++## Verify++```bash+pnpm verify+```diff --git a/examples/shadcn-chat/components.json b/examples/design-systems/shadcn/components.jsonsimilarity index 100%rename from examples/shadcn-chat/components.jsonrename to examples/design-systems/shadcn/components.jsondiff --git a/examples/material-ui-chat/next-env.d.ts b/examples/design-systems/shadcn/next-env.d.tssimilarity index 100%rename from examples/material-ui-chat/next-env.d.tsrename to examples/design-systems/shadcn/next-env.d.tsdiff --git a/examples/multi-agent-chat/next.config.ts b/examples/design-systems/shadcn/next.config.tssimilarity index 100%rename from examples/multi-agent-chat/next.config.tsrename to examples/design-systems/shadcn/next.config.tsdiff --git a/examples/shadcn-chat/package.json b/examples/design-systems/shadcn/package.jsonsimilarity index 83%rename from examples/shadcn-chat/package.jsonrename to examples/design-systems/shadcn/package.jsonindex 6649e245b..c904fd2eb 100644--- a/examples/shadcn-chat/package.json+++ b/examples/design-systems/shadcn/package.json@@ -1,11 +1,16 @@{- "name": "shadcn-chat",+ "name": "@openuidev/example-shadcn","version": "0.1.0","private": true,"scripts": {- "generate:prompt": "node --import tsx/esm scripts/generate-prompt.mjs",- "dev": "pnpm generate:prompt && next dev",+ "generate": "pnpm --filter @openuidev/cli build && node ../../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate",+ "dev": "next dev",+ "prebuild": "pnpm generate","build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/html-artifact/postcss.config.mjs b/examples/design-systems/shadcn/postcss.config.mjssimilarity index 100%rename from examples/html-artifact/postcss.config.mjsrename to examples/design-systems/shadcn/postcss.config.mjsdiff --git a/examples/shadcn-chat/src/app/api/chat/route.ts b/examples/design-systems/shadcn/src/app/api/chat/route.tssimilarity index 100%rename from examples/shadcn-chat/src/app/api/chat/route.tsrename to examples/design-systems/shadcn/src/app/api/chat/route.tsdiff --git a/examples/shadcn-chat/src/app/globals.css b/examples/design-systems/shadcn/src/app/globals.csssimilarity index 100%rename from examples/shadcn-chat/src/app/globals.cssrename to examples/design-systems/shadcn/src/app/globals.cssdiff --git a/examples/shadcn-chat/src/app/layout.tsx b/examples/design-systems/shadcn/src/app/layout.tsxsimilarity index 100%rename from examples/shadcn-chat/src/app/layout.tsxrename to examples/design-systems/shadcn/src/app/layout.tsxdiff --git a/examples/shadcn-chat/src/app/page.tsx b/examples/design-systems/shadcn/src/app/page.tsxsimilarity index 100%rename from examples/shadcn-chat/src/app/page.tsxrename to examples/design-systems/shadcn/src/app/page.tsxdiff --git a/examples/shadcn-chat/src/components/ui/accordion.tsx b/examples/design-systems/shadcn/src/components/ui/accordion.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/accordion.tsxrename to examples/design-systems/shadcn/src/components/ui/accordion.tsxdiff --git a/examples/shadcn-chat/src/components/ui/alert-dialog.tsx b/examples/design-systems/shadcn/src/components/ui/alert-dialog.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/alert-dialog.tsxrename to examples/design-systems/shadcn/src/components/ui/alert-dialog.tsxdiff --git a/examples/shadcn-chat/src/components/ui/alert.tsx b/examples/design-systems/shadcn/src/components/ui/alert.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/alert.tsxrename to examples/design-systems/shadcn/src/components/ui/alert.tsxdiff --git a/examples/shadcn-chat/src/components/ui/avatar.tsx b/examples/design-systems/shadcn/src/components/ui/avatar.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/avatar.tsxrename to examples/design-systems/shadcn/src/components/ui/avatar.tsxdiff --git a/examples/shadcn-chat/src/components/ui/badge.tsx b/examples/design-systems/shadcn/src/components/ui/badge.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/badge.tsxrename to examples/design-systems/shadcn/src/components/ui/badge.tsxdiff --git a/examples/shadcn-chat/src/components/ui/button.tsx b/examples/design-systems/shadcn/src/components/ui/button.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/button.tsxrename to examples/design-systems/shadcn/src/components/ui/button.tsxdiff --git a/examples/shadcn-chat/src/components/ui/calendar.tsx b/examples/design-systems/shadcn/src/components/ui/calendar.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/calendar.tsxrename to examples/design-systems/shadcn/src/components/ui/calendar.tsxdiff --git a/examples/shadcn-chat/src/components/ui/card.tsx b/examples/design-systems/shadcn/src/components/ui/card.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/card.tsxrename to examples/design-systems/shadcn/src/components/ui/card.tsxdiff --git a/examples/shadcn-chat/src/components/ui/carousel.tsx b/examples/design-systems/shadcn/src/components/ui/carousel.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/carousel.tsxrename to examples/design-systems/shadcn/src/components/ui/carousel.tsxdiff --git a/examples/shadcn-chat/src/components/ui/chart.tsx b/examples/design-systems/shadcn/src/components/ui/chart.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/chart.tsxrename to examples/design-systems/shadcn/src/components/ui/chart.tsxdiff --git a/examples/shadcn-chat/src/components/ui/checkbox.tsx b/examples/design-systems/shadcn/src/components/ui/checkbox.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/checkbox.tsxrename to examples/design-systems/shadcn/src/components/ui/checkbox.tsxdiff --git a/examples/shadcn-chat/src/components/ui/data-table.tsx b/examples/design-systems/shadcn/src/components/ui/data-table.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/data-table.tsxrename to examples/design-systems/shadcn/src/components/ui/data-table.tsxdiff --git a/examples/shadcn-chat/src/components/ui/dialog.tsx b/examples/design-systems/shadcn/src/components/ui/dialog.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/dialog.tsxrename to examples/design-systems/shadcn/src/components/ui/dialog.tsxdiff --git a/examples/shadcn-chat/src/components/ui/drawer.tsx b/examples/design-systems/shadcn/src/components/ui/drawer.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/drawer.tsxrename to examples/design-systems/shadcn/src/components/ui/drawer.tsxdiff --git a/examples/shadcn-chat/src/components/ui/dropdown-menu.tsx b/examples/design-systems/shadcn/src/components/ui/dropdown-menu.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/dropdown-menu.tsxrename to examples/design-systems/shadcn/src/components/ui/dropdown-menu.tsxdiff --git a/examples/shadcn-chat/src/components/ui/input.tsx b/examples/design-systems/shadcn/src/components/ui/input.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/input.tsxrename to examples/design-systems/shadcn/src/components/ui/input.tsxdiff --git a/examples/shadcn-chat/src/components/ui/label.tsx b/examples/design-systems/shadcn/src/components/ui/label.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/label.tsxrename to examples/design-systems/shadcn/src/components/ui/label.tsxdiff --git a/examples/shadcn-chat/src/components/ui/pagination.tsx b/examples/design-systems/shadcn/src/components/ui/pagination.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/pagination.tsxrename to examples/design-systems/shadcn/src/components/ui/pagination.tsxdiff --git a/examples/shadcn-chat/src/components/ui/popover.tsx b/examples/design-systems/shadcn/src/components/ui/popover.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/popover.tsxrename to examples/design-systems/shadcn/src/components/ui/popover.tsxdiff --git a/examples/shadcn-chat/src/components/ui/progress.tsx b/examples/design-systems/shadcn/src/components/ui/progress.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/progress.tsxrename to examples/design-systems/shadcn/src/components/ui/progress.tsxdiff --git a/examples/shadcn-chat/src/components/ui/radio-group.tsx b/examples/design-systems/shadcn/src/components/ui/radio-group.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/radio-group.tsxrename to examples/design-systems/shadcn/src/components/ui/radio-group.tsxdiff --git a/examples/shadcn-chat/src/components/ui/select.tsx b/examples/design-systems/shadcn/src/components/ui/select.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/select.tsxrename to examples/design-systems/shadcn/src/components/ui/select.tsxdiff --git a/examples/shadcn-chat/src/components/ui/separator.tsx b/examples/design-systems/shadcn/src/components/ui/separator.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/separator.tsxrename to examples/design-systems/shadcn/src/components/ui/separator.tsxdiff --git a/examples/shadcn-chat/src/components/ui/slider.tsx b/examples/design-systems/shadcn/src/components/ui/slider.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/slider.tsxrename to examples/design-systems/shadcn/src/components/ui/slider.tsxdiff --git a/examples/shadcn-chat/src/components/ui/switch.tsx b/examples/design-systems/shadcn/src/components/ui/switch.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/switch.tsxrename to examples/design-systems/shadcn/src/components/ui/switch.tsxdiff --git a/examples/shadcn-chat/src/components/ui/table.tsx b/examples/design-systems/shadcn/src/components/ui/table.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/table.tsxrename to examples/design-systems/shadcn/src/components/ui/table.tsxdiff --git a/examples/shadcn-chat/src/components/ui/tabs.tsx b/examples/design-systems/shadcn/src/components/ui/tabs.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/tabs.tsxrename to examples/design-systems/shadcn/src/components/ui/tabs.tsxdiff --git a/examples/shadcn-chat/src/components/ui/textarea.tsx b/examples/design-systems/shadcn/src/components/ui/textarea.tsxsimilarity index 100%rename from examples/shadcn-chat/src/components/ui/textarea.tsxrename to examples/design-systems/shadcn/src/components/ui/textarea.tsxdiff --git a/examples/openui-dashboard/src/hooks/use-system-theme.tsx b/examples/design-systems/shadcn/src/hooks/use-system-theme.tsxsimilarity index 100%rename from examples/openui-dashboard/src/hooks/use-system-theme.tsxrename to examples/design-systems/shadcn/src/hooks/use-system-theme.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/action.ts b/examples/design-systems/shadcn/src/lib/shadcn-genui/action.tssimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/action.tsrename to examples/design-systems/shadcn/src/lib/shadcn-genui/action.tsdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/accordion.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/accordion.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/accordion.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/accordion.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/alert-dialog-block.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/alert-dialog-block.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/alert-dialog-block.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/alert-dialog-block.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/alert.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/alert.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/alert.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/alert.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/avatar.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/avatar.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/avatar.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/avatar.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/badge.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/badge.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/badge.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/badge.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/button.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/button.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/button.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/button.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/buttons.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/buttons.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/buttons.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/buttons.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/calendar-block.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/calendar-block.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/calendar-block.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/calendar-block.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/card-header.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/card-header.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/card-header.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/card-header.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/carousel.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/carousel.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/carousel.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/carousel.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/charts.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/charts.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/charts.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/charts.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/checkbox-group.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/checkbox-group.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/checkbox-group.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/checkbox-group.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/code-block.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/code-block.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/code-block.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/code-block.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/date-picker.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/date-picker.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/date-picker.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/date-picker.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/dialog-block.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/dialog-block.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/dialog-block.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/dialog-block.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/drawer-block.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/drawer-block.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/drawer-block.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/drawer-block.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/follow-up-block.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/follow-up-block.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/follow-up-block.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/follow-up-block.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/form-control.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/form-control.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/form-control.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/form-control.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/form.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/form.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/form.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/form.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/image.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/image.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/image.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/image.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/input.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/input.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/input.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/input.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/label.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/label.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/label.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/label.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/markdown-renderer.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/markdown-renderer.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/markdown-renderer.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/markdown-renderer.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/pagination-block.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/pagination-block.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/pagination-block.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/pagination-block.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/progress.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/progress.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/progress.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/progress.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/radio-group.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/radio-group.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/radio-group.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/radio-group.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/select.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/select.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/select.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/select.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/separator.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/separator.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/separator.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/separator.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/slider.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/slider.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/slider.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/slider.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/switch-group.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/switch-group.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/switch-group.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/switch-group.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/table.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/table.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/table.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/table.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/tabs.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/tabs.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/tabs.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/tabs.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/tag.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/tag.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/tag.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/tag.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/text-content.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/text-content.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/text-content.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/text-content.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/textarea.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/textarea.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/textarea.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/textarea.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/typography.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/components/typography.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/components/typography.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/components/typography.tsxdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/helpers.ts b/examples/design-systems/shadcn/src/lib/shadcn-genui/helpers.tssimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/helpers.tsrename to examples/design-systems/shadcn/src/lib/shadcn-genui/helpers.tsdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/index.tsx b/examples/design-systems/shadcn/src/lib/shadcn-genui/index.tsxsimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/index.tsxrename to examples/design-systems/shadcn/src/lib/shadcn-genui/index.tsxdiff --git a/examples/material-ui-chat/src/lib/mui-genui/rules.ts b/examples/design-systems/shadcn/src/lib/shadcn-genui/rules.tssimilarity index 100%rename from examples/material-ui-chat/src/lib/mui-genui/rules.tsrename to examples/design-systems/shadcn/src/lib/shadcn-genui/rules.tsdiff --git a/examples/shadcn-chat/src/lib/shadcn-genui/unions.ts b/examples/design-systems/shadcn/src/lib/shadcn-genui/unions.tssimilarity index 100%rename from examples/shadcn-chat/src/lib/shadcn-genui/unions.tsrename to examples/design-systems/shadcn/src/lib/shadcn-genui/unions.tsdiff --git a/examples/design-systems/shadcn/src/library.ts b/examples/design-systems/shadcn/src/library.tsnew file mode 100644index 000000000..ec0957ee1--- /dev/null+++ b/examples/design-systems/shadcn/src/library.ts@@ -0,0 +1,5 @@+/** Entry point used by the OpenUI CLI to generate the system prompt. */+export {+ shadcnChatLibrary as library,+ shadcnPromptOptions as promptOptions,+} from "./lib/shadcn-genui";diff --git a/examples/shadcn-chat/tsconfig.json b/examples/design-systems/shadcn/tsconfig.jsonsimilarity index 100%rename from examples/shadcn-chat/tsconfig.jsonrename to examples/design-systems/shadcn/tsconfig.jsondiff --git a/examples/form-generator/README.md b/examples/form-generator/README.mddeleted file mode 100644index 311840440..000000000--- a/examples/form-generator/README.md+++ /dev/null@@ -1,210 +0,0 @@-# HeroUI Form Generator Example--A full-stack **generative form builder** that demonstrates wiring [OpenUI Lang](https://www.openui.com/docs/openui-lang/overview) to a custom component library built on [HeroUI](https://www.heroui.com/) ([`@heroui/react`](https://www.npmjs.com/package/@heroui/react)).--Describe a form in plain language, get a live preview built from HeroUI components. Refine it with follow-up instructions — each iteration streams a fresh updated form.--[View source on GitHub →](https://github.com/thesysdev/openui/tree/main/examples/form-generator)-------## How It Works--The LLM is prompted with a form-focused system prompt that describes every available form component — name, props, and when to use it. Instead of returning prose, the model responds in **OpenUI Lang**: a declarative markup syntax that maps directly to React components. For example:--```-root = Form("contact", "Contact Us", btns, [fc1, fc2, fc3])-fc1 = FormControl("Name", input1)-fc2 = FormControl("Email", input2, "We'll never share your email.")-fc3 = FormControl("Message", ta1)-input1 = Input("name", "Your name", "text", { required: true })-input2 = Input("email", "[email protected]", "email", { required: true, email: true })-ta1 = TextArea("message", "How can we help?", 4)-btns = Buttons([b1])-b1 = Button("Submit", { type: "continue_conversation" }, "primary")-```--On the client, `<Renderer>` from `@openuidev/react-lang` parses the incoming SSE stream and renders each OpenUI Lang node using `herouiChatLibrary` — the custom library defined in `src/lib/heroui-genui/`. The app shell is built entirely with `@heroui/react` (no `@openuidev/react-ui` dependency).-------## Architecture--```-┌──────────────────────────────────────────┐ ┌────────────────────────────────────┐-│ Browser │ HTTP │ Next.js API Route │-│ │ ──────►│ │-│ • Left panel: HeroUI TextArea + Button │ │ • Loads system-prompt.txt │-│ • Iteration history (in-memory messages)│ │ • Calls LLM via OpenAI SDK │-│ • processStreamedMessage + openAIAdapter│◄────── │ • Streams response as SSE events │-│ • Right panel: <Renderer> preview │ SSE │ │-│ • formFieldSnapshot via onStateUpdate │ │ │-└──────────────────────────────────────────┘ └────────────────────────────────────┘-```--### Request / Response Flow--1. User types a form description and clicks **Generate Form** (or ⌘ Enter).-2. The page builds an `openAIMessageFormat.toApi(messages)` payload and `POST`s to `/api/chat`.-3. The API route reads `system-prompt.txt` and streams the LLM response as SSE events.-4. On the client, `processStreamedMessage` + `openAIAdapter()` accumulate the streamed text into an `AssistantMessage`.-5. `<Renderer response={code} library={herouiChatLibrary} isStreaming={...} />` parses the OpenUI Lang markup and progressively renders each node as a HeroUI-backed component.-6. The streamed assistant `content` (OpenUI Lang text only) is appended to the in-memory message list for the next iteration.--### Iterative Refinement--Submit a follow-up instruction (e.g. "add a phone number field" or "rename the submit button to 'Send'") and the page:--- Optionally prefixes the new user message with a JSON snapshot of current form values from `onStateUpdate`.-- POSTs the **full** message list so the model can see the previous form spec and return one complete updated `Form`.-- `<Renderer initialState={formFieldSnapshot}>` hydrates the preview with the latest field values, so filled data is not lost on re-render.--Click **Reset** to clear history and start a fresh form.-------## Project Structure--```-form-generator/-├── src/-│ ├── app/-│ │ ├── api/chat/route.ts # Streaming endpoint (OpenAI SDK + SSE, no tools)-│ │ ├── page.tsx # Two-column form generator UI-│ │ ├── layout.tsx # Root layout (no external provider needed)-│ │ └── globals.css # Tailwind + HeroUI styles-│ ├── lib/-│ │ └── heroui-genui/ # Custom OpenUI component library-│ │ ├── index.tsx # Library + herouiFormPromptOptions export-│ │ ├── action.ts # Button action Zod schemas-│ │ ├── rules.ts # Form validation rule schemas-│ │ └── components/ # One file per component-│ ├── generated/-│ │ └── system-prompt.txt # Auto-generated — do not edit manually-│ └── library.ts # CLI entry — re-exports library + promptOptions-└── package.json-```-------## Getting Started--### Prerequisites--- Node.js 18+-- pnpm-- An OpenAI API key--### 1. Install dependencies--```bash-cd examples/form-generator-pnpm install-```--### 2. Configure environment--Create a `.env.local` file in the `examples/form-generator/` directory:--```-OPENAI_API_KEY=sk-...-```--### 3. Start the dev server--```bash-pnpm dev-```--This runs `generate:prompt` first (builds the OpenUI CLI, compiles `src/library.ts` → `src/generated/system-prompt.txt`) then starts the Next.js dev server at `http://localhost:3000`.-------## What's in This Example--### System Prompt Generation--Component definitions and form-focused prompt options live in `src/lib/heroui-genui/index.tsx` (`createLibrary()`, `herouiFormPromptOptions`). The file `src/library.ts` re-exports them as `library` and `promptOptions` for the OpenUI CLI.--When you run `pnpm dev` or `pnpm generate:prompt`, the CLI generates `src/generated/system-prompt.txt` — a file listing every form component's name, prop schema, description, and examples. This is the LLM's system prompt.--`herouiFormPromptOptions` includes:-- **No inline examples** — the system prompt is derived purely from component signatures and the additional rules below-- **Rules** that instruct the model to: always use `Form` as the root element, always include `Buttons` with a primary submit, define each `FormControl` as its own reference for streaming, treat follow-up instructions as refinements of the current form--Re-run generation any time you change component definitions:--```bash-pnpm generate:prompt-```--### `src/app/api/chat/route.ts` — Backend--Accepts `POST /api/chat` with a `messages` array, prepends the system prompt, and streams the LLM response as **Server-Sent Events (SSE)** compatible with `openAIAdapter()`.--Tools are intentionally omitted — the model focuses purely on generating OpenUI Lang form definitions.--### `src/app/page.tsx` — Frontend--Two-column layout built entirely with `@heroui/react`:--| Panel | Contents |-| ----- | -------- |-| **Left** | `TextArea` for instructions, `Button` to generate/refine, example `Chip`s, instruction history |-| **Right** | `<Renderer>` inside a `Card` — live OpenUI Lang preview, scrollable, updates on each iteration |--Key client-side state:--| State | Purpose |-| ----- | ------- |-| `messages` | In-memory OpenAI-shaped message list sent on every request |-| `latestCode` | Last assistant's OpenUI Lang text; passed as `Renderer` `response` |-| `streamingCode` | Accumulates tokens live; passed during streaming |-| `formFieldSnapshot` | Current form field values from `Renderer` `onStateUpdate`; used for `initialState` and optionally prepended to next user message |--### `src/lib/heroui-genui/` — Custom Component Library--Each component is defined with `defineComponent()` from `@openuidev/react-lang`:--- `name` — the OpenUI Lang node name the LLM will emit-- `props` — a Zod schema that validates and types the node's props as they stream in-- `description` — included in the system prompt-- `component` — the React render function; `renderNode()` recursively renders child nodes--#### Form Components--| Component | HeroUI Backing | Purpose |-| --------- | -------------- | ------- |-| `Form` | `Form`, `Surface` | Root container with title, validation context, and surface background |-| `FormRow` | `div` | Horizontal row for side-by-side fields |-| `FormControl` | `Label`, `Description` | Labeled field wrapper |-| `Input` | `Input` | Text, email, password, etc. |-| `TextArea` | `TextArea` | Multi-line text |-| `Select` / `SelectItem` | `Select`, `ListBox` | Dropdown |-| `NumberField` | `NumberField` | Numeric input with stepper |-| `Slider` | `Slider` | Range input |-| `CheckBoxGroup` / `CheckBoxItem` | `CheckboxGroup`, `Checkbox` | Multi-select |-| `RadioGroup` / `RadioItem` | `RadioGroup`, `Radio` | Single-select |-| `SwitchGroup` / `SwitchItem` | `Switch` | Toggle switches |-| `Button` / `Buttons` | `Button`, `ButtonGroup` | Submit and action buttons |-------## Scripts--| Script | Description |-| ------ | ----------- |-| `pnpm dev` | Build OpenUI CLI, generate system prompt, start Next.js dev server |-| `pnpm generate:prompt` | Build `@openuidev/cli` and regenerate `system-prompt.txt` |-| `pnpm build` | Build for production |-| `pnpm start` | Start the production server |-------## Learn More--- [OpenUI Lang overview](https://www.openui.com/docs/openui-lang/overview) — Library, Prompt Generator, Parser, Renderer-- [Defining Components](https://www.openui.com/docs/openui-lang/defining-components) — `defineComponent` and `createLibrary` API-- [HeroUI](https://www.heroui.com/) — the underlying React component library-- [`@openuidev/react-lang` package](../../packages/react-lang)-- [`@openuidev/react-headless` package](../../packages/react-headless)diff --git a/examples/form-generator/package.json b/examples/form-generator/package.jsondeleted file mode 100644index 4bb4e22b5..000000000--- a/examples/form-generator/package.json+++ /dev/null@@ -1,35 +0,0 @@-{- "name": "form-generator",- "version": "0.1.0",- "private": true,- "scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && pnpm exec openui generate src/library.ts --out src/generated/system-prompt.txt",- "dev": "pnpm generate:prompt && next dev",- "build": "next build",- "start": "next start",- "lint": "eslint"- },- "dependencies": {- "@heroui/react": "^3.0.1",- "@heroui/styles": "^3.0.1",- "@openuidev/react-headless": "workspace:*",- "@openuidev/react-lang": "workspace:*",- "lucide-react": "^0.575.0",- "next": "16.2.6",- "openai": "^6.22.0",- "react": "19.2.3",- "react-dom": "19.2.3",- "zod": "^4.0.0"- },- "devDependencies": {- "@openuidev/cli": "workspace:*",- "@tailwindcss/postcss": "^4",- "@types/node": "catalog:",- "@types/react": "^19",- "@types/react-dom": "^19",- "eslint": "^9",- "eslint-config-next": "16.2.6",- "tailwindcss": "^4",- "typescript": "^5"- }-}diff --git a/examples/form-generator/src/app/api/chat/route.ts b/examples/form-generator/src/app/api/chat/route.tsdeleted file mode 100644index 177fdc73c..000000000--- a/examples/form-generator/src/app/api/chat/route.ts+++ /dev/null@@ -1,64 +0,0 @@-import { readFileSync } from "fs";-import { NextRequest } from "next/server";-import OpenAI from "openai";-import type { ChatCompletionMessageParam } from "openai/resources/chat/completions.mjs";-import { join } from "path";--const systemPrompt = readFileSync(join(process.cwd(), "src/generated/system-prompt.txt"), "utf-8");--export async function POST(req: NextRequest) {- const { messages } = await req.json();-- const client = new OpenAI({- apiKey: process.env.OPENAI_API_KEY,- });-- const chatMessages: ChatCompletionMessageParam[] = [- { role: "system", content: systemPrompt },- ...messages,- ];-- const stream = await client.chat.completions.create({- model: "gpt-5.5",- messages: chatMessages,- stream: true,- });-- const encoder = new TextEncoder();- let controllerClosed = false;-- const readable = new ReadableStream({- async start(controller) {- const enqueue = (data: Uint8Array) => {- if (controllerClosed) return;- try { controller.enqueue(data); } catch { /* already closed */ }- };- const close = () => {- if (controllerClosed) return;- controllerClosed = true;- try { controller.close(); } catch { /* already closed */ }- };-- try {- for await (const chunk of stream) {- enqueue(encoder.encode(`data: ${JSON.stringify(chunk)}\n\n`));- }- enqueue(encoder.encode("data: [DONE]\n\n"));- } catch (err) {- const msg = err instanceof Error ? err.message : "Stream error";- console.error("Chat route error:", msg);- enqueue(encoder.encode(`data: ${JSON.stringify({ error: msg })}\n\n`));- } finally {- close();- }- },- });-- return new Response(readable, {- headers: {- "Content-Type": "text/event-stream",- "Cache-Control": "no-cache, no-transform",- Connection: "keep-alive",- },- });-}diff --git a/examples/form-generator/src/app/globals.css b/examples/form-generator/src/app/globals.cssdeleted file mode 100644index ad90669db..000000000--- a/examples/form-generator/src/app/globals.css+++ /dev/null@@ -1,19 +0,0 @@-@import "tailwindcss";-@import "@heroui/styles";--/* Subtle grid canvas for the form preview area */-.form-canvas {- background-image:- linear-gradient(rgb(0 0 0 / 0.04) 1px, transparent 1px),- linear-gradient(90deg, rgb(0 0 0 / 0.04) 1px, transparent 1px);- background-size: 24px 24px;-}--/* Remove all strokes/shadows from HeroUI form fields */-[data-slot="input-wrapper"],-[data-slot="inner-wrapper"],-[data-slot="trigger"] {- box-shadow: none !important;- border: none !important;- border-bottom: none !important;-}diff --git a/examples/form-generator/src/app/layout.tsx b/examples/form-generator/src/app/layout.tsxdeleted file mode 100644index 598ec1385..000000000--- a/examples/form-generator/src/app/layout.tsx+++ /dev/null@@ -1,19 +0,0 @@-import type { Metadata } from "next";-import "./globals.css";--export const metadata: Metadata = {- title: "OpenUI Form Generator",- description: "Generate and refine forms from natural language prompts using OpenUI + HeroUI",-};--export default function RootLayout({- children,-}: Readonly<{- children: React.ReactNode;-}>) {- return (- <html lang="en">- <body>{children}</body>- </html>- );-}diff --git a/examples/form-generator/src/app/page.tsx b/examples/form-generator/src/app/page.tsxdeleted file mode 100644index ff3054b81..000000000--- a/examples/form-generator/src/app/page.tsx+++ /dev/null@@ -1,287 +0,0 @@-"use client";--import { herouiChatLibrary } from "@/lib/heroui-genui";-import type { Message } from "@openuidev/react-headless";-import {- fetchLLM,- openAIAdapter,- openAIMessageFormat,- processStreamedMessage,-} from "@openuidev/react-headless";-import { Renderer } from "@openuidev/react-lang";-import { ArrowLeft, CornerDownLeft, Square } from "lucide-react";-import { useCallback, useRef, useState } from "react";--const STARTERS = [- {- label: "Contact form",- prompt: "Build me a contact form with name, email, topic, and message fields.",- },- {- label: "Registration",- prompt:- "Create a user registration form with first name, last name, email, password, and country fields.",- },- {- label: "Job application",- prompt:- "Build a job application form with personal info, position, experience, and a cover letter field.",- },- {- label: "Feedback survey",- prompt:- "Create a feedback survey form with a rating slider, category dropdown, and comments textarea.",- },-];---const llm = fetchLLM({- url: "/api/chat",- streamAdapter: openAIAdapter(),- messageFormat: openAIMessageFormat,-});--export default function Page() {- const [instruction, setInstruction] = useState("");- const [messages, setMessages] = useState<Message[]>([]);- const [streamingCode, setStreamingCode] = useState<string | null>(null);- const [latestCode, setLatestCode] = useState<string | null>(null);- const [formFieldSnapshot, setFormFieldSnapshot] = useState<Record<string, unknown>>({});- const [isStreaming, setIsStreaming] = useState(false);- const [error, setError] = useState<string | null>(null);- const abortRef = useRef<AbortController | null>(null);-- const handleSubmit = useCallback(async (overrideText?: string) => {- const text = (overrideText ?? instruction).trim();- if (!text || isStreaming) return;-- setError(null);- setInstruction("");-- let userContent = text;- if (Object.keys(formFieldSnapshot).length > 0) {- userContent = `Current form values (JSON): ${JSON.stringify(formFieldSnapshot)}\n\n${text}`;- }-- const userMsg: Message = { id: crypto.randomUUID(), role: "user", content: userContent };- const nextMessages = [...messages, userMsg];- setMessages(nextMessages);-- const abortController = new AbortController();- abortRef.current = abortController;- setIsStreaming(true);- setStreamingCode("");-- let draftContent = "";-- try {- const response = await llm.send({- threadId: "form",- messages: nextMessages,- signal: abortController.signal,- });-- if (!response.ok) throw new Error(`HTTP ${response.status}`);-- const assistantId = crypto.randomUUID();-- const applyContent = (msg: Message) => {- draftContent = typeof msg.content === "string" ? msg.content : "";- setStreamingCode(draftContent);- };-- await processStreamedMessage({- response,- adapter: llm.streamProtocol,- createMessage: applyContent,- updateMessage: applyContent,- });-- const assistantMsg: Message = {- id: assistantId,- role: "assistant",- content: draftContent,- };- setMessages((prev) => [...prev, assistantMsg]);- setLatestCode(draftContent);- setStreamingCode(null);- } catch (err) {- if ((err as Error).name !== "AbortError") {- setError((err as Error).message ?? "Something went wrong.");- }- } finally {- setIsStreaming(false);- abortRef.current = null;- }- }, [instruction, isStreaming, messages, formFieldSnapshot]);-- const handleReset = useCallback(() => {- abortRef.current?.abort();- setMessages([]);- setLatestCode(null);- setStreamingCode(null);- setFormFieldSnapshot({});- setError(null);- setInstruction("");- }, []);-- const handleKeyDown = useCallback(- (e: React.KeyboardEvent<HTMLTextAreaElement>) => {- if (e.key === "Enter" && !e.shiftKey) {- e.preventDefault();- handleSubmit();- }- },- [handleSubmit],- );-- const rendererResponse = streamingCode ?? latestCode;- const hasForm = rendererResponse !== null;-- const userMessages = messages- .filter((m) => m.role === "user")- .map((m) => {- const content = (m.content as string) ?? "";- return content.replace(/^Current form values \(JSON\): .+\n\n/, "");- });-- // ── Empty state ──────────────────────────────────────────────────────────────- if (!hasForm && !isStreaming) {- return (- <div className="h-screen w-screen flex flex-col items-center justify-center bg-gray-50 px-4">- <div className="w-full max-w-lg flex flex-col gap-8">- {/* Title */}- <div className="text-center flex flex-col gap-2">- <h1 className="text-4xl font-bold tracking-tight text-gray-900">- AI Form Generator- </h1>- <p className="text-gray-500 text-base">- Describe a form and get a live, interactive preview instantly.- </p>- </div>-- {/* Input */}- <div className="flex flex-col gap-2">- <div className="relative rounded-2xl border border-gray-200 bg-white focus-within:border-gray-400 transition-colors shadow-sm">- <textarea- aria-label="Form instruction"- placeholder="Describe the form you want to generate…"- value={instruction}- onChange={(e) => setInstruction(e.target.value)}- onKeyDown={handleKeyDown}- rows={4}- className="w-full resize-none bg-transparent px-4 pt-3 pb-11 text-sm text-gray-900 placeholder:text-gray-400 outline-none rounded-2xl"- />- <button- onClick={() => handleSubmit()}- disabled={!instruction.trim() || isStreaming}- className="absolute bottom-2.5 right-2.5 flex items-center justify-center w-7 h-7 rounded-lg bg-gray-900 text-white disabled:opacity-30 disabled:cursor-not-allowed hover:opacity-80 transition-opacity"- aria-label="Send"- >- <CornerDownLeft size={14} strokeWidth={2.5} />- </button>- </div>- {error && <p className="text-sm text-red-500">{error}</p>}- </div>-- {/* Stacked examples */}- <div className="flex flex-col gap-2">- <p className="text-sm text-gray-500">Try out examples</p>- {STARTERS.map((s) => (- <button- key={s.label}- onClick={() => { setInstruction(s.prompt); handleSubmit(s.prompt); }}- className="w-full text-left rounded-xl border border-gray-200 px-4 py-3 flex flex-col gap-0.5 hover:border-gray-400 hover:bg-white transition-colors"- >- <span className="text-sm font-semibold text-gray-800">- {s.label}- </span>- <span className="text-xs text-gray-500 line-clamp-1">- {s.prompt}- </span>- </button>- ))}- </div>- </div>- </div>- );- }-- // ── Form generation page ─────────────────────────────────────────────────────- return (- <div className="h-screen w-screen overflow-hidden flex bg-gray-50">- {/* Left pane */}- <aside className="w-80 shrink-0 flex flex-col border-r border-gray-200 bg-white">- {/* Form title */}- <div className="shrink-0 px-4 py-3 border-b border-gray-200 flex items-center gap-2">- <button- onClick={handleReset}- className="shrink-0 flex items-center justify-center w-7 h-7 rounded-lg text-gray-400 hover:text-gray-700 hover:bg-gray-100 transition-colors"- aria-label="Back"- >- <ArrowLeft size={15} strokeWidth={2} />- </button>- <h2 className="flex-1 text-base font-semibold text-gray-900 truncate">- {userMessages[0] ?? "Form"}- </h2>- </div>-- {/* Message history */}- <div className="flex-1 overflow-y-auto px-4 py-3 flex flex-col gap-2">- {userMessages.slice(1).length === 0 && (- <p className="text-xs text-gray-400 text-center mt-4">- Refinements will appear here.- </p>- )}- {userMessages.slice(1).map((msg, i) => (- <div key={i} className="rounded-xl border border-gray-200 bg-gray-50 px-3 py-2.5">- <p className="text-xs text-gray-600 leading-relaxed">{msg}</p>- </div>- ))}- </div>-- {/* Bottom input */}- <div className="shrink-0 px-4 py-4 border-t border-gray-200 flex flex-col gap-2">- <div className="relative rounded-2xl border border-gray-200 bg-white focus-within:border-gray-400 transition-colors shadow-sm">- <textarea- aria-label="Refinement instruction"- placeholder="Describe a change to refine the form…"- value={instruction}- onChange={(e) => setInstruction(e.target.value)}- onKeyDown={handleKeyDown}- rows={3}- disabled={isStreaming}- className="w-full resize-none bg-transparent px-4 pt-3 pb-11 text-sm text-gray-900 placeholder:text-gray-400 outline-none rounded-2xl disabled:opacity-50"- />- <button- onClick={isStreaming ? () => abortRef.current?.abort() : () => handleSubmit()}- disabled={!isStreaming && !instruction.trim()}- className="absolute bottom-2.5 right-2.5 flex items-center justify-center w-7 h-7 rounded-lg bg-gray-900 text-white disabled:opacity-30 disabled:cursor-not-allowed hover:opacity-80 transition-opacity"- aria-label={isStreaming ? "Stop" : "Send"}- >- {isStreaming ? (- <Square size={12} fill="currentColor" />- ) : (- <CornerDownLeft size={14} strokeWidth={2.5} />- )}- </button>- </div>- {error && <p className="text-sm text-red-500">{error}</p>}- </div>- </aside>-- {/* Right pane — rendered form */}- <main className="form-canvas flex-1 overflow-y-auto p-8 flex items-start justify-center">- <div className="w-full max-w-240 rounded-2xl bg-white border border-gray-200 p-6 shadow-lg">- <Renderer- response={rendererResponse}- library={herouiChatLibrary}- isStreaming={isStreaming}- onStateUpdate={(state) => setFormFieldSnapshot(state)}- initialState={formFieldSnapshot}- />- </div>- </main>- </div>- );-}diff --git a/examples/form-generator/src/generated/system-prompt.txt b/examples/form-generator/src/generated/system-prompt.txtdeleted file mode 100644index 5dd4c7f02..000000000--- a/examples/form-generator/src/generated/system-prompt.txt+++ /dev/null@@ -1,67 +0,0 @@--You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Form(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.--### Buttons-Button(label: string, action?: {type: "open_url", url: string} | {type: "continue_conversation", context?: string}, variant?: "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "danger") — Clickable button-Buttons(buttons: Button[]) — Row of Button components--### Forms-Form(name: string, title: string, description?: string, buttons: Buttons, fields?: (FormControl | FormRow)[]) — Form container with title, optional description, fields, and action buttons-FormRow(fields: FormControl[]) — Horizontal row that places multiple FormControl fields side-by-side, each sharing equal width. Use for short paired fields like First Name / Last Name or City / State / ZIP.-FormControl(label: string, input: Input | TextArea | Select | Slider | CheckBoxGroup | RadioGroup | SwitchGroup | NumberField, hint?: string) — Field with label, input component, and optional hint text-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Single-line text input-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Multiline text input-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Dropdown select-SelectItem(value: string, label: string) — Option for Select-NumberField(name: string, label?: string, min?: number, max?: number, step?: number, defaultValue?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Numeric input with increment/decrement buttons-Slider(name: string, variant: "continuous" | "discrete", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Numeric slider input-CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Checkbox group-CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean) — Option for CheckBoxGroup-RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Radio button group-RadioItem(label: string, description: string, value: string) — Option for RadioGroup-SwitchGroup(name: string, items: SwitchItem[]) — Group of switch toggles-SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean) — Individual switch toggle--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Form(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Form(...) statement first so the UI shell appears immediately, even before child data has streamed in.-## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Form(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Form(...) — Form is the root element.-- Always include explicit Buttons with at least one primary submit button.-- Define EACH FormControl as its own reference — do NOT inline all controls in one array. This allows progressive field-by-field streaming.-- Use FormRow to place 2-3 short fields side-by-side on the same row (e.g. First Name / Last Name, City / State / ZIP). Pass an array of FormControl refs to FormRow.-- NEVER nest Form inside Form — each Form should be a standalone container.-- Choose appropriate input types: Input for text/email/password/number, TextArea for long text, Select for dropdown choices, CheckBoxGroup for multi-select, RadioGroup for single-select, SwitchGroup for toggles, Slider for ranges, NumberField for numeric input.-- If prior assistant turns are present in the conversation, the latest user message is a refinement request: output one full updated Form that applies those changes while preserving unrelated fields.diff --git a/examples/form-generator/src/lib/heroui-genui/action.ts b/examples/form-generator/src/lib/heroui-genui/action.tsdeleted file mode 100644index 250370acc..000000000--- a/examples/form-generator/src/lib/heroui-genui/action.ts+++ /dev/null@@ -1,18 +0,0 @@-import { BuiltinActionType } from "@openuidev/react-lang";-import { z } from "zod";--const continueConversationAction = z.object({- type: z.literal(BuiltinActionType.ContinueConversation),- context: z.string().optional(),-});--const openUrlAction = z.object({- type: z.literal(BuiltinActionType.OpenUrl),- url: z.string(),-});--export const actionSchema = z- .union([openUrlAction, continueConversationAction])- .optional();--export type ActionSchema = z.infer<typeof actionSchema>;diff --git a/examples/form-generator/src/lib/heroui-genui/components/button.tsx b/examples/form-generator/src/lib/heroui-genui/components/button.tsxdeleted file mode 100644index 0eae4d26f..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/button.tsx+++ /dev/null@@ -1,65 +0,0 @@-"use client";--import { Button as HeroUIButton } from "@heroui/react";-import {- BuiltinActionType,- type ComponentRenderProps,- defineComponent,- useFormName,- useFormValidation,- useIsStreaming,- useTriggerAction,-} from "@openuidev/react-lang";-import { z } from "zod";-import { actionSchema } from "../action";--const ButtonSchema = z.object({- label: z.string(),- action: actionSchema,- variant: z.enum(["primary", "secondary", "tertiary", "outline", "ghost", "danger"]).optional(),-});--function ButtonRenderer({ props }: ComponentRenderProps<z.infer<typeof ButtonSchema>>) {- const triggerAction = useTriggerAction();- const formName = useFormName();- const formValidation = useFormValidation();- const isStreaming = useIsStreaming();-- const label = String(props.label ?? "");- const action = props.action;- const variant = props.variant ?? "primary";-- return (- <HeroUIButton- variant={variant}- isDisabled={isStreaming}- onPress={() => {- const actionType = action?.type ?? BuiltinActionType.ContinueConversation;- if (- formValidation &&- variant === "primary" &&- actionType === BuiltinActionType.ContinueConversation- ) {- const valid = formValidation.validateForm();- if (!valid) return;- }- const actionParams =- action?.type === BuiltinActionType.OpenUrl- ? { url: action.url }- : action?.type === BuiltinActionType.ContinueConversation- ? { context: action.context }- : undefined;- triggerAction(label, formName, { type: actionType, params: actionParams });- }}- >- {label}- </HeroUIButton>- );-}--export const Button = defineComponent({- name: "Button",- props: ButtonSchema,- description: "Clickable button",- component: ButtonRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/buttons.tsx b/examples/form-generator/src/lib/heroui-genui/components/buttons.tsxdeleted file mode 100644index b754c2fd4..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/buttons.tsx+++ /dev/null@@ -1,20 +0,0 @@-"use client";--import { defineComponent } from "@openuidev/react-lang";-import { z } from "zod";-import { Button } from "./button";--const ButtonsSchema = z.object({- buttons: z.array(Button.ref),-});--export const Buttons = defineComponent({- name: "Buttons",- props: ButtonsSchema,- description: "Row of Button components",- component: ({ props, renderNode }) => (- <div className="flex flex-row flex-wrap gap-2">- {renderNode(props.buttons)}- </div>- ),-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/checkbox-group.tsx b/examples/form-generator/src/lib/heroui-genui/components/checkbox-group.tsxdeleted file mode 100644index 1e1cfae3f..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/checkbox-group.tsx+++ /dev/null@@ -1,127 +0,0 @@-"use client";--import {- Checkbox,- CheckboxGroup as HeroUICheckboxGroup,- Description,- Label,-} from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- parseStructuredRules,- useFormName,- useFormValidation,- useGetFieldValue,- useIsStreaming,- useSetFieldValue,-} from "@openuidev/react-lang";-import { useCallback, useEffect, useMemo } from "react";-import { z } from "zod";-import { rulesSchema } from "../rules";--const CheckBoxItemSchema = z.object({- label: z.string(),- description: z.string(),- name: z.string(),- defaultChecked: z.boolean().optional(),-});--export const CheckBoxItem = defineComponent({- name: "CheckBoxItem",- props: CheckBoxItemSchema,- description: "Option for CheckBoxGroup",- component: () => null,-});--const CheckBoxGroupSchema = z.object({- name: z.string(),- items: z.array(CheckBoxItem.ref),- rules: rulesSchema,-});--function CheckBoxGroupRenderer({- props,-}: ComponentRenderProps<z.infer<typeof CheckBoxGroupSchema>>) {- const formName = useFormName();- const getFieldValue = useGetFieldValue();- const setFieldValue = useSetFieldValue();- const isStreaming = useIsStreaming();- const formValidation = useFormValidation();-- const fieldName = props.name;- const rules = useMemo(() => parseStructuredRules(props.rules), [props.rules]);- const items = props.items ?? [];-- const getAggregate = useCallback((): Record<string, boolean> => {- const stored = getFieldValue(formName, fieldName) as Record<string, boolean> | undefined;- const result: Record<string, boolean> = {};- for (const item of items) {- result[item.props.name] = stored?.[item.props.name] ?? item.props.defaultChecked ?? false;- }- return result;- }, [formName, fieldName, items, getFieldValue]);-- useEffect(() => {- if (!isStreaming && items.length > 0 && getFieldValue(formName, fieldName) == null) {- const initial: Record<string, boolean> = {};- for (const item of items) {- initial[item.props.name] = item.props.defaultChecked ?? false;- }- setFieldValue(formName, "CheckBoxGroup", fieldName, initial, false);- }- }, [isStreaming]);-- useEffect(() => {- if (!isStreaming && rules.length > 0 && formValidation) {- formValidation.registerField(fieldName, rules, () => getFieldValue(formName, fieldName));- return () => formValidation.unregisterField(fieldName);- }- return undefined;- }, [isStreaming, rules.length > 0]);-- if (!items.length) return null;-- const aggregate = getAggregate();- const selectedValues = items- .filter((item) => aggregate[item.props.name])- .map((item) => item.props.name);-- return (- <HeroUICheckboxGroup- value={selectedValues}- onChange={(newValues) => {- const newAggregate: Record<string, boolean> = {};- for (const item of items) {- newAggregate[item.props.name] = newValues.includes(item.props.name);- }- setFieldValue(formName, "CheckBoxGroup", fieldName, newAggregate, true);- if (rules.length > 0) {- formValidation?.validateField(fieldName, newAggregate, rules);- }- }}- isDisabled={isStreaming}- >- {items.map((item, i) => (- <Checkbox key={i} value={item.props.name}>- <Checkbox.Control>- <Checkbox.Indicator />- </Checkbox.Control>- <Checkbox.Content>- <Label>{item.props.label}</Label>- {item.props.description && (- <Description>{item.props.description}</Description>- )}- </Checkbox.Content>- </Checkbox>- ))}- </HeroUICheckboxGroup>- );-}--export const CheckBoxGroup = defineComponent({- name: "CheckBoxGroup",- props: CheckBoxGroupSchema,- description: "Checkbox group",- component: CheckBoxGroupRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/form-control.tsx b/examples/form-generator/src/lib/heroui-genui/components/form-control.tsxdeleted file mode 100644index 997806247..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/form-control.tsx+++ /dev/null@@ -1,82 +0,0 @@-"use client";--import { Description, Label } from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- useFormValidation,-} from "@openuidev/react-lang";-import { z } from "zod";--import { CheckBoxGroup } from "./checkbox-group";-import { Input } from "./input";-import { NumberField } from "./number-field";-import { RadioGroup } from "./radio-group";-import { Select } from "./select";-import { Slider } from "./slider";-import { SwitchGroup } from "./switch-group";-import { TextArea } from "./textarea";--const FormControlSchema = z.object({- label: z.string(),- input: z.union([- Input.ref,- TextArea.ref,- Select.ref,- Slider.ref,- CheckBoxGroup.ref,- RadioGroup.ref,- SwitchGroup.ref,- NumberField.ref,- ]),- hint: z.string().optional(),-});--/** Extract field name from input element (Input, Select, etc. all have name in props) */-function getFieldNameFromInput(input: unknown): string | undefined {- const obj = input as { type?: string; props?: { name?: string } } | undefined;- return obj?.type === "element" ? obj.props?.name : undefined;-}--type FormControlProps = z.infer<typeof FormControlSchema>;--function FormControlRenderer({- props,- renderNode,-}: ComponentRenderProps<FormControlProps>) {- const formValidation = useFormValidation();- const inputObj = props.input as {- type?: string;- props?: { name?: string; rules?: { required?: boolean } };- };- const fieldName = getFieldNameFromInput(props.input);- const error = fieldName ? formValidation?.errors[fieldName] : undefined;- const isRequired =- inputObj?.type === "element" && inputObj.props?.rules?.required === true;-- return (- <div className="flex flex-col gap-1.5">- <Label className="text-sm font-medium" htmlFor={fieldName}>- {props.label}- {isRequired && <span className="text-danger ml-0.5">*</span>}- </Label>- {renderNode(props.input)}- {error ? (- <p className="text-danger text-sm mt-0.5" role="alert">- {error}- </p>- ) : props.hint ? (- <Description className="text-sm text-default-500 mt-0.5">- {props.hint}- </Description>- ) : null}- </div>- );-}--export const FormControl = defineComponent({- name: "FormControl",- props: FormControlSchema,- description: "Field with label, input component, and optional hint text",- component: FormControlRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/form-row.tsx b/examples/form-generator/src/lib/heroui-genui/components/form-row.tsxdeleted file mode 100644index 70e6d088c..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/form-row.tsx+++ /dev/null@@ -1,32 +0,0 @@-"use client";--import { type ComponentRenderProps, defineComponent } from "@openuidev/react-lang";-import { z } from "zod";--import { FormControl } from "./form-control";--const FormRowSchema = z.object({- fields: z.array(FormControl.ref),-});--type FormRowProps = z.infer<typeof FormRowSchema>;--function FormRowRenderer({ props, renderNode }: ComponentRenderProps<FormRowProps>) {- return (- <div className="flex flex-row gap-4">- {props.fields.map((field, i) => (- <div key={i} className="flex-1 min-w-0">- {renderNode(field)}- </div>- ))}- </div>- );-}--export const FormRow = defineComponent({- name: "FormRow",- props: FormRowSchema,- description:- "Horizontal row that places multiple FormControl fields side-by-side, each sharing equal width. Use for short paired fields like First Name / Last Name or City / State / ZIP.",- component: FormRowRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/form.tsx b/examples/form-generator/src/lib/heroui-genui/components/form.tsxdeleted file mode 100644index afd4ca2c8..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/form.tsx+++ /dev/null@@ -1,56 +0,0 @@-"use client";--import { Form as HeroForm, Surface } from "@heroui/react";-import {- type ComponentRenderProps,- FormNameContext,- FormValidationContext,- defineComponent,- useCreateFormValidation,-} from "@openuidev/react-lang";-import { z } from "zod";--import { Buttons } from "./buttons";-import { FormControl } from "./form-control";-import { FormRow } from "./form-row";--const FormSchema = z.object({- name: z.string(),- title: z.string(),- description: z.string().optional(),- buttons: Buttons.ref,- fields: z.array(z.union([FormControl.ref, FormRow.ref])).default([]),-});--type FormProps = z.infer<typeof FormSchema>;--function FormRenderer({ props, renderNode }: ComponentRenderProps<FormProps>) {- const formValidation = useCreateFormValidation();- const formName = props.name;-- return (- <FormValidationContext.Provider value={formValidation}>- <FormNameContext.Provider value={formName}>- <HeroForm className="flex flex-col gap-4">- <div className="flex flex-col gap-1">- <h2 className="text-xl font-semibold">{props.title}</h2>- {props.description && (- <p className="text-sm text-default-500">{props.description}</p>- )}- </div>- <Surface variant="secondary" className="flex flex-col gap-4 rounded-xl p-4 opacity-70">- {renderNode(props.fields)}- </Surface>- {renderNode(props.buttons)}- </HeroForm>- </FormNameContext.Provider>- </FormValidationContext.Provider>- );-}--export const Form = defineComponent({- name: "Form",- props: FormSchema,- description: "Form container with title, optional description, fields, and action buttons",- component: FormRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/input.tsx b/examples/form-generator/src/lib/heroui-genui/components/input.tsxdeleted file mode 100644index a5d0ec663..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/input.tsx+++ /dev/null@@ -1,80 +0,0 @@-"use client";--import { Input as HeroUIInput } from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- parseRules,- parseStructuredRules,- useFormName,- useFormValidation,- useGetFieldValue,- useIsStreaming,- useSetFieldValue,-} from "@openuidev/react-lang";-import { useEffect, useMemo } from "react";-import { z } from "zod";-import { rulesSchema } from "../rules";--const InputSchema = z.object({- name: z.string(),- placeholder: z.string().optional(),- type: z.enum(["text", "email", "password", "number", "url"]).optional(),- rules: rulesSchema,-});--function InputRenderer({ props }: ComponentRenderProps<z.infer<typeof InputSchema>>) {- const formName = useFormName();- const getFieldValue = useGetFieldValue();- const setFieldValue = useSetFieldValue();- const isStreaming = useIsStreaming();- const formValidation = useFormValidation();-- const fieldName = props.name;- const rules = useMemo(() => {- const r = props.rules;- if (Array.isArray(r)) return parseRules(r);- return parseStructuredRules(r);- }, [props.rules]);- const savedValue = getFieldValue(formName, fieldName) ?? "";- const error = formValidation?.errors[fieldName];-- useEffect(() => {- if (!isStreaming && rules.length > 0 && formValidation) {- formValidation.registerField(fieldName, rules, () =>- getFieldValue(formName, fieldName),- );- return () => formValidation.unregisterField(fieldName);- }- return undefined;- }, [isStreaming, rules.length > 0, formValidation, fieldName, formName]);-- return (- <HeroUIInput- id={fieldName}- name={fieldName}- placeholder={props.placeholder ?? ""}- type={props.type ?? "text"}- value={savedValue}- aria-invalid={!!error}- data-invalid={error ? "true" : undefined}- onChange={(e) => {- setFieldValue(formName, "Input", fieldName, e.target.value, true);- }}- onFocus={() => formValidation?.clearFieldError(fieldName)}- onBlur={() => {- if (rules.length > 0) {- formValidation?.validateField(fieldName, getFieldValue(formName, fieldName), rules);- }- }}- disabled={isStreaming}- />- );-}--export const Input = defineComponent({- name: "Input",- props: InputSchema,- description: "Single-line text input",- component: InputRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/number-field.tsx b/examples/form-generator/src/lib/heroui-genui/components/number-field.tsxdeleted file mode 100644index 3acabc416..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/number-field.tsx+++ /dev/null@@ -1,95 +0,0 @@-"use client";--import { NumberField as HeroUINumberField } from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- parseRules,- parseStructuredRules,- useFormName,- useFormValidation,- useGetFieldValue,- useIsStreaming,- useSetDefaultValue,- useSetFieldValue,-} from "@openuidev/react-lang";-import { useEffect, useMemo } from "react";-import { z } from "zod";-import { rulesSchema } from "../rules";--const NumberFieldSchema = z.object({- name: z.string(),- label: z.string().optional(),- min: z.number().optional(),- max: z.number().optional(),- step: z.number().optional(),- defaultValue: z.number().optional(),- rules: rulesSchema,-});--function NumberFieldRenderer({ props }: ComponentRenderProps<z.infer<typeof NumberFieldSchema>>) {- const formName = useFormName();- const getFieldValue = useGetFieldValue();- const setFieldValue = useSetFieldValue();- const isStreaming = useIsStreaming();- const formValidation = useFormValidation();-- const fieldName = props.name;- const rules = useMemo(() => {- const r = props.rules;- if (Array.isArray(r)) return parseRules(r);- return parseStructuredRules(r);- }, [props.rules]);- const existingValue = getFieldValue(formName, fieldName);- const error = formValidation?.errors[fieldName];-- useSetDefaultValue({- formName,- componentType: "NumberField",- name: fieldName,- existingValue,- defaultValue: props.defaultValue,- });-- useEffect(() => {- if (!isStreaming && rules.length > 0 && formValidation) {- formValidation.registerField(fieldName, rules, () =>- getFieldValue(formName, fieldName),- );- return () => formValidation.unregisterField(fieldName);- }- return undefined;- }, [isStreaming, rules.length > 0, formValidation, fieldName, formName]);-- const value = existingValue ?? props.defaultValue;-- return (- <HeroUINumberField- value={value != null ? value : undefined}- minValue={props.min}- maxValue={props.max}- step={props.step}- isDisabled={isStreaming}- isInvalid={!!error}- onChange={(val) => {- setFieldValue(formName, "NumberField", fieldName, val, true);- if (rules.length > 0) {- formValidation?.validateField(fieldName, val, rules);- }- }}- >- <HeroUINumberField.Group>- <HeroUINumberField.DecrementButton />- <HeroUINumberField.Input />- <HeroUINumberField.IncrementButton />- </HeroUINumberField.Group>- </HeroUINumberField>- );-}--export const NumberField = defineComponent({- name: "NumberField",- props: NumberFieldSchema,- description: "Numeric input with increment/decrement buttons",- component: NumberFieldRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/radio-group.tsx b/examples/form-generator/src/lib/heroui-genui/components/radio-group.tsxdeleted file mode 100644index bc6252123..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/radio-group.tsx+++ /dev/null@@ -1,105 +0,0 @@-"use client";--import {- Description,- Label,- Radio,- RadioGroup as HeroUIRadioGroup,-} from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- parseStructuredRules,- useFormName,- useFormValidation,- useGetFieldValue,- useIsStreaming,- useSetFieldValue,-} from "@openuidev/react-lang";-import { useEffect, useMemo } from "react";-import { z } from "zod";-import { rulesSchema } from "../rules";--const RadioItemSchema = z.object({- label: z.string(),- description: z.string(),- value: z.string(),-});--export const RadioItem = defineComponent({- name: "RadioItem",- props: RadioItemSchema,- description: "Option for RadioGroup",- component: () => null,-});--const RadioGroupSchema = z.object({- name: z.string(),- items: z.array(RadioItem.ref),- defaultValue: z.string().optional(),- rules: rulesSchema,-});--function RadioGroupRenderer({ props }: ComponentRenderProps<z.infer<typeof RadioGroupSchema>>) {- const formName = useFormName();- const getFieldValue = useGetFieldValue();- const setFieldValue = useSetFieldValue();- const isStreaming = useIsStreaming();- const formValidation = useFormValidation();-- const fieldName = props.name;- const rules = useMemo(() => parseStructuredRules(props.rules), [props.rules]);- const items = props.items ?? [];- const value = (getFieldValue(formName, fieldName) ?? props.defaultValue) as string | undefined;-- useEffect(() => {- if (!isStreaming && props.defaultValue != null && getFieldValue(formName, fieldName) == null) {- setFieldValue(formName, "RadioGroup", fieldName, props.defaultValue, false);- }- }, [isStreaming]);-- useEffect(() => {- if (!isStreaming && rules.length > 0 && formValidation) {- formValidation.registerField(fieldName, rules, () => getFieldValue(formName, fieldName));- return () => formValidation.unregisterField(fieldName);- }- return undefined;- }, [isStreaming, rules.length > 0]);-- if (!items.length) return null;-- return (- <HeroUIRadioGroup- name={fieldName}- value={value ?? ""}- onChange={(val) => {- setFieldValue(formName, "RadioGroup", fieldName, val, true);- if (rules.length > 0) {- formValidation?.validateField(fieldName, val, rules);- }- }}- isDisabled={isStreaming}- >- {items.map((item, i) => (- <Radio key={i} value={item.props.value}>- <Radio.Control>- <Radio.Indicator />- </Radio.Control>- <Radio.Content>- <Label>{item.props.label}</Label>- {item.props.description && (- <Description>{item.props.description}</Description>- )}- </Radio.Content>- </Radio>- ))}- </HeroUIRadioGroup>- );-}--export const RadioGroup = defineComponent({- name: "RadioGroup",- props: RadioGroupSchema,- description: "Radio button group",- component: RadioGroupRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/select.tsx b/examples/form-generator/src/lib/heroui-genui/components/select.tsxdeleted file mode 100644index 2a15ca094..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/select.tsx+++ /dev/null@@ -1,99 +0,0 @@-"use client";--import { ListBox, Select as HeroUISelect } from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- parseStructuredRules,- useFormName,- useFormValidation,- useGetFieldValue,- useIsStreaming,- useSetFieldValue,-} from "@openuidev/react-lang";-import { useEffect, useMemo } from "react";-import { z } from "zod";-import { rulesSchema } from "../rules";--const SelectItemSchema = z.object({- value: z.string(),- label: z.string(),-});--export const SelectItem = defineComponent({- name: "SelectItem",- props: SelectItemSchema,- description: "Option for Select",- component: () => null,-});--const SelectSchema = z.object({- name: z.string(),- items: z.array(SelectItem.ref),- placeholder: z.string().optional(),- rules: rulesSchema,-});--function SelectRenderer({ props }: ComponentRenderProps<z.infer<typeof SelectSchema>>) {- const formName = useFormName();- const getFieldValue = useGetFieldValue();- const setFieldValue = useSetFieldValue();- const isStreaming = useIsStreaming();- const formValidation = useFormValidation();-- const fieldName = props.name;- const rules = useMemo(() => parseStructuredRules(props.rules), [props.rules]);- const items = (props.items ?? []).filter((item) => item.props.value);- const value = getFieldValue(formName, fieldName);-- useEffect(() => {- if (!isStreaming && rules.length > 0 && formValidation) {- formValidation.registerField(fieldName, rules, () => getFieldValue(formName, fieldName));- return () => formValidation.unregisterField(fieldName);- }- return undefined;- }, [isStreaming, rules.length > 0]);-- return (- <HeroUISelect- aria-label={fieldName}- id={fieldName}- name={fieldName}- placeholder={props.placeholder ?? "Select..."}- selectedKey={value ?? null}- onSelectionChange={(key) => {- const val = String(key);- setFieldValue(formName, "Select", fieldName, val, true);- if (rules.length > 0) {- formValidation?.validateField(fieldName, val, rules);- }- }}- isDisabled={isStreaming}- >- <HeroUISelect.Trigger>- <HeroUISelect.Value />- <HeroUISelect.Indicator />- </HeroUISelect.Trigger>- <HeroUISelect.Popover>- <ListBox>- {items.map((item) => (- <ListBox.Item- key={item.props.value}- id={item.props.value}- textValue={item.props.label || item.props.value}- >- {item.props.label || item.props.value}- </ListBox.Item>- ))}- </ListBox>- </HeroUISelect.Popover>- </HeroUISelect>- );-}--export const Select = defineComponent({- name: "Select",- props: SelectSchema,- description: "Dropdown select",- component: SelectRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/slider.tsx b/examples/form-generator/src/lib/heroui-genui/components/slider.tsxdeleted file mode 100644index 90bb0abf1..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/slider.tsx+++ /dev/null@@ -1,90 +0,0 @@-"use client";--import { Slider as HeroUISlider } from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- parseStructuredRules,- useFormName,- useFormValidation,- useGetFieldValue,- useIsStreaming,- useSetDefaultValue,- useSetFieldValue,-} from "@openuidev/react-lang";-import { useEffect, useMemo } from "react";-import { z } from "zod";-import { rulesSchema } from "../rules";--const SliderSchema = z.object({- name: z.string(),- variant: z.enum(["continuous", "discrete"]),- min: z.number(),- max: z.number(),- step: z.number().optional(),- defaultValue: z.array(z.number()).optional(),- label: z.string().optional(),- rules: rulesSchema,-});--function SliderRenderer({ props }: ComponentRenderProps<z.infer<typeof SliderSchema>>) {- const formName = useFormName();- const getFieldValue = useGetFieldValue();- const setFieldValue = useSetFieldValue();- const isStreaming = useIsStreaming();- const formValidation = useFormValidation();-- const fieldName = props.name;- const rules = useMemo(() => parseStructuredRules(props.rules), [props.rules]);- const existingValue = getFieldValue(formName, fieldName);- const defaultVal = props.defaultValue;-- useSetDefaultValue({- formName,- componentType: "Slider",- name: fieldName,- existingValue,- defaultValue: defaultVal,- });-- useEffect(() => {- if (!isStreaming && rules.length > 0 && formValidation) {- formValidation.registerField(fieldName, rules, () => getFieldValue(formName, fieldName));- return () => formValidation.unregisterField(fieldName);- }- return undefined;- }, [isStreaming, rules.length > 0]);-- const value = existingValue ?? defaultVal;- const step = props.variant === "discrete" ? (props.step ?? 1) : props.step;-- return (- <HeroUISlider- defaultValue={value != null ? value : undefined}- minValue={props.min}- maxValue={props.max}- step={step}- isDisabled={isStreaming}- onChangeEnd={(vals) => {- const normalized = Array.isArray(vals) ? vals : [vals];- setFieldValue(formName, "Slider", fieldName, normalized, true);- if (rules.length > 0) {- formValidation?.validateField(fieldName, normalized[0], rules);- }- }}- >- <HeroUISlider.Output />- <HeroUISlider.Track>- <HeroUISlider.Fill />- <HeroUISlider.Thumb />- </HeroUISlider.Track>- </HeroUISlider>- );-}--export const Slider = defineComponent({- name: "Slider",- props: SliderSchema,- description: "Numeric slider input",- component: SliderRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/switch-group.tsx b/examples/form-generator/src/lib/heroui-genui/components/switch-group.tsxdeleted file mode 100644index 7b3a04456..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/switch-group.tsx+++ /dev/null@@ -1,90 +0,0 @@-"use client";--import {- Description,- Label,- Switch,- SwitchGroup as HeroUISwitchGroup,-} from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- useFormName,- useGetFieldValue,- useIsStreaming,- useSetFieldValue,-} from "@openuidev/react-lang";-import { useCallback } from "react";-import { z } from "zod";--const SwitchItemSchema = z.object({- label: z.string().optional(),- description: z.string().optional(),- name: z.string(),- defaultChecked: z.boolean().optional(),-});--export const SwitchItem = defineComponent({- name: "SwitchItem",- props: SwitchItemSchema,- description: "Individual switch toggle",- component: () => null,-});--const SwitchGroupSchema = z.object({- name: z.string(),- items: z.array(SwitchItem.ref),-});--function SwitchGroupRenderer({ props }: ComponentRenderProps<z.infer<typeof SwitchGroupSchema>>) {- const formName = useFormName();- const getFieldValue = useGetFieldValue();- const setFieldValue = useSetFieldValue();- const isStreaming = useIsStreaming();-- const fieldName = props.name;-- const getAggregate = useCallback((): Record<string, boolean> => {- const stored = getFieldValue(formName, fieldName) as Record<string, boolean> | undefined;- const result: Record<string, boolean> = {};- for (const item of props.items) {- result[item.props.name] = stored?.[item.props.name] ?? item.props.defaultChecked ?? false;- }- return result;- }, [formName, fieldName, props.items, getFieldValue]);-- if (!props.items.length) return null;-- const aggregate = getAggregate();-- return (- <HeroUISwitchGroup>- {props.items.map((item) => (- <Switch- key={item.props.name}- isSelected={aggregate[item.props.name] ?? item.props.defaultChecked ?? false}- onChange={(isSelected: boolean) => {- const newAggregate = { ...getAggregate(), [item.props.name]: isSelected };- setFieldValue(formName, "SwitchGroup", fieldName, newAggregate, true);- }}- isDisabled={isStreaming}- >- <Switch.Control>- <Switch.Thumb />- </Switch.Control>- <Switch.Content>- {item.props.label && <Label>{item.props.label}</Label>}- {item.props.description && <Description>{item.props.description}</Description>}- </Switch.Content>- </Switch>- ))}- </HeroUISwitchGroup>- );-}--export const SwitchGroup = defineComponent({- name: "SwitchGroup",- props: SwitchGroupSchema,- description: "Group of switch toggles",- component: SwitchGroupRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/components/textarea.tsx b/examples/form-generator/src/lib/heroui-genui/components/textarea.tsxdeleted file mode 100644index c1e62dbbf..000000000--- a/examples/form-generator/src/lib/heroui-genui/components/textarea.tsx+++ /dev/null@@ -1,79 +0,0 @@-"use client";--import { TextArea as HeroUITextArea } from "@heroui/react";-import {- type ComponentRenderProps,- defineComponent,- parseRules,- parseStructuredRules,- useFormName,- useFormValidation,- useGetFieldValue,- useIsStreaming,- useSetFieldValue,-} from "@openuidev/react-lang";-import { useEffect, useMemo } from "react";-import { z } from "zod";-import { rulesSchema } from "../rules";--const TextAreaSchema = z.object({- name: z.string(),- placeholder: z.string().optional(),- rows: z.number().optional(),- rules: rulesSchema,-});--function TextAreaRenderer({ props }: ComponentRenderProps<z.infer<typeof TextAreaSchema>>) {- const formName = useFormName();- const getFieldValue = useGetFieldValue();- const setFieldValue = useSetFieldValue();- const isStreaming = useIsStreaming();- const formValidation = useFormValidation();-- const fieldName = props.name;- const rules = useMemo(() => {- const r = props.rules;- if (Array.isArray(r)) return parseRules(r);- return parseStructuredRules(r);- }, [props.rules]);- const savedValue = getFieldValue(formName, fieldName) ?? "";- const error = formValidation?.errors[fieldName];-- useEffect(() => {- if (!isStreaming && rules.length > 0 && formValidation) {- formValidation.registerField(fieldName, rules, () =>- getFieldValue(formName, fieldName),- );- return () => formValidation.unregisterField(fieldName);- }- return undefined;- }, [isStreaming, rules.length > 0, formValidation, fieldName, formName]);-- return (- <HeroUITextArea- name={fieldName}- placeholder={props.placeholder ?? ""}- rows={props.rows ?? 3}- value={savedValue ?? ""}- aria-invalid={!!error}- data-invalid={error ? "true" : undefined}- onChange={(e) => {- setFieldValue(formName, "TextArea", fieldName, e.target.value, true);- }}- onFocus={() => formValidation?.clearFieldError(fieldName)}- onBlur={() => {- if (rules.length > 0) {- formValidation?.validateField(fieldName, getFieldValue(formName, fieldName), rules);- }- }}- disabled={isStreaming}- />- );-}--export const TextArea = defineComponent({- name: "TextArea",- props: TextAreaSchema,- description: "Multiline text input",- component: TextAreaRenderer,-});diff --git a/examples/form-generator/src/lib/heroui-genui/index.tsx b/examples/form-generator/src/lib/heroui-genui/index.tsxdeleted file mode 100644index c642a1bf7..000000000--- a/examples/form-generator/src/lib/heroui-genui/index.tsx+++ /dev/null@@ -1,92 +0,0 @@-"use client";--import type { ComponentGroup, PromptOptions } from "@openuidev/react-lang";-import { createLibrary } from "@openuidev/react-lang";--import { Button } from "./components/button";-import { Buttons } from "./components/buttons";-import { CheckBoxGroup, CheckBoxItem } from "./components/checkbox-group";-import { Form } from "./components/form";-import { FormControl } from "./components/form-control";-import { FormRow } from "./components/form-row";-import { Input } from "./components/input";-import { NumberField } from "./components/number-field";-import { RadioGroup, RadioItem } from "./components/radio-group";-import { Select, SelectItem } from "./components/select";-import { Slider } from "./components/slider";-import { SwitchGroup, SwitchItem } from "./components/switch-group";-import { TextArea } from "./components/textarea";--// ── Component Groups ──--export const herouiComponentGroups: ComponentGroup[] = [- {- name: "Buttons",- components: ["Button", "Buttons"],- },- {- name: "Forms",- components: [- "Form",- "FormRow",- "FormControl",- "Input",- "TextArea",- "Select",- "SelectItem",- "NumberField",- "Slider",- "CheckBoxGroup",- "CheckBoxItem",- "RadioGroup",- "RadioItem",- "SwitchGroup",- "SwitchItem",- ],- },-];--// ── Form Generator Prompt Options ──--export const herouiFormExamples: string[] = [];--export const herouiFormAdditionalRules: string[] = [- "Every response is a single Form(...) — Form is the root element.",- "Always include explicit Buttons with at least one primary submit button.",- "Define EACH FormControl as its own reference — do NOT inline all controls in one array. This allows progressive field-by-field streaming.",- "Use FormRow to place 2-3 short fields side-by-side on the same row (e.g. First Name / Last Name, City / State / ZIP). Pass an array of FormControl refs to FormRow.",- "NEVER nest Form inside Form — each Form should be a standalone container.",- "Choose appropriate input types: Input for text/email/password/number, TextArea for long text, Select for dropdown choices, CheckBoxGroup for multi-select, RadioGroup for single-select, SwitchGroup for toggles, Slider for ranges, NumberField for numeric input.",- "If prior assistant turns are present in the conversation, the latest user message is a refinement request: output one full updated Form that applies those changes while preserving unrelated fields.",-];--export const herouiFormPromptOptions: PromptOptions = {- examples: herouiFormExamples,- additionalRules: herouiFormAdditionalRules,-};--// ── Library ──--export const herouiChatLibrary = createLibrary({- root: "Form",- componentGroups: herouiComponentGroups,- components: [- Form,- FormRow,- FormControl,- Button,- Buttons,- Input,- TextArea,- Select,- SelectItem,- NumberField,- Slider,- CheckBoxGroup,- CheckBoxItem,- RadioGroup,- RadioItem,- SwitchGroup,- SwitchItem,- ],-});diff --git a/examples/form-generator/src/library.ts b/examples/form-generator/src/library.tsdeleted file mode 100644index bb44413d2..000000000--- a/examples/form-generator/src/library.ts+++ /dev/null@@ -1 +0,0 @@-export { herouiChatLibrary as library, herouiFormPromptOptions as promptOptions } from "@/lib/heroui-genui";diff --git a/examples/google-adk/src/generated/system-prompt.txt b/examples/google-adk/src/generated/system-prompt.txtdeleted file mode 100644index cbd28d059..000000000--- a/examples/google-adk/src/generated/system-prompt.txt+++ /dev/null@@ -1,223 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-Props typed `ActionExpression` accept an Action([@steps...]) expression. See the Action section for available steps (@ToAssistant, @OpenUrl).-Props marked `$binding<type>` accept a `$variable` reference for two-way binding.--### Content-CardHeader(title?: string, subtitle?: string) — Header with optional title and subtitle-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block. Supports markdown. Optional size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-MarkDownRenderer(textMarkdown: string, variant?: "clear" | "card" | "sunk") — Renders markdown text with optional container variant-Callout(variant: "info" | "warning" | "error" | "success" | "neutral", title: string, description: string, visible?: $binding<boolean>) — Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.-TextCallout(variant?: "neutral" | "info" | "warning" | "success" | "danger", title?: string, description?: string) — Text callout with variant, title, and description-Image(alt: string, src?: string) — Image with alt text and optional URL-ImageBlock(src: string, alt?: string) — Image block with loading state-ImageGallery(images: {src: string, alt?: string, details?: string}[]) — Gallery grid of images with modal preview-CodeBlock(language: string, codeString: string) — Syntax-highlighted code block-Separator(orientation?: "horizontal" | "vertical", decorative?: boolean) — Visual divider between content sections--### Tables-Table(columns: Col[]) — Data table — column-oriented. Each Col holds its own data array.-Col(label: string, data: any, type?: "string" | "number" | "action") — Column definition — holds label + data array--### Charts (2D)-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bars; use for comparing values across categories with one or more series-LineChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Lines over categories; use for trends and continuous data over time-AreaChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Filled area under lines; use for cumulative totals or volume trends over time-RadarChart(labels: string[], series: Series[]) — Spider/web chart; use for comparing multiple variables across one or more entities-HorizontalBarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Horizontal bars; prefer when category labels are long or for ranked lists-Series(category: string, values: number[]) — One data series--### Charts (1D)-PieChart(labels: string[], values: number[], variant?: "pie" | "donut", appearance?: "circular" | "semiCircular") — Circular slices; use plucked arrays: PieChart(data.categories, data.values)-RadialChart(labels: string[], values: number[]) — Radial bars; use plucked arrays: RadialChart(data.categories, data.values)-SingleStackedBarChart(labels: string[], values: number[]) — Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)-Slice(category: string, value: number) — One slice with label and numeric value--### Charts (Scatter)-ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string) — X/Y scatter plot; use for correlations, distributions, and clustering-ScatterSeries(name: string, points: Point[]) — Named dataset-Point(x: number, y: number, z?: number) — Data point with numeric coordinates--### Forms-Form(name: string, buttons: Buttons, fields?: FormControl[]) — Form container with fields and explicit action buttons-FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string) — Field with label, input component, and optional hint text-Label(text: string) — Text label-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>, size?: "small" | "medium" | "large")-SelectItem(value: string, label: string) — Option for Select-DatePicker(name: string, mode?: "single" | "range", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<any>)-Slider(name: string, variant: "continuous" | "discrete", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>) — Numeric slider input; supports continuous and discrete (stepped) variants-CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)-CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)-RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-RadioItem(label: string, description: string, value: string)-SwitchGroup(name: string, items: SwitchItem[], variant?: "clear" | "card" | "sunk", value?: $binding<Record<string, boolean>>) — Group of switch toggles-SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean) — Individual switch toggle-- Define EACH FormControl as its own reference — do NOT inline all controls in one array.-- NEVER nest Form inside Form.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.-- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }-- The renderer shows error messages automatically — do NOT generate error text in the UI--### Buttons-Button(label: string, action?: ActionExpression, variant?: "primary" | "secondary" | "tertiary", type?: "normal" | "destructive", size?: "extra-small" | "small" | "medium" | "large") — Clickable button-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" (default) | "column".--### Lists & Follow-ups-ListBlock(items: ListItem[], variant?: "number" | "image") — A list of items with number or image indicators. Each item can optionally have an action.-ListItem(title: string, subtitle?: string, image?: {src: string, alt: string}, actionLabel?: string, action?: ActionExpression) — Item in a ListBlock — displays a title with an optional subtitle and image. When action is provided, the item becomes clickable.-FollowUpBlock(items: FollowUpItem[]) — List of clickable follow-up suggestions placed at the end of a response-FollowUpItem(text: string) — Clickable follow-up suggestion — when clicked, sends text as user message-- Use ListBlock with ListItem references for numbered, clickable lists.-- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.-- Clicking a ListItem or FollowUpItem sends its text to the LLM as a user message.-- Example: list = ListBlock([item1, item2]) item1 = ListItem("Option A", "Details about A")--### Sections-SectionBlock(sections: SectionItem[], isFoldable?: boolean) — Collapsible accordion sections. Auto-opens sections as they stream in. Use SectionItem for each section.-SectionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock)[]) — Section with a label and collapsible content — used inside SectionBlock-- SectionBlock renders collapsible accordion sections that auto-open as they stream.-- Each section needs a unique `value` id, a `trigger` label, and a `content` array.-- Example: sections = SectionBlock([s1, s2]) s1 = SectionItem("intro", "Introduction", [content1])-- Set isFoldable=false to render sections as flat headers instead of accordion.--### Layout-Tabs(items: TabItem[]) — Tabbed container-TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is tab label, content is array of components-Accordion(items: AccordionItem[]) — Collapsible sections-AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is section title-Steps(items: StepsItem[]) — Step-by-step guide-StepsItem(title: string, details: string) — title and details text for one step-Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: "card" | "sunk") — Horizontal scrollable carousel-- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must have the same structure — same component types in the same order.-- For image carousels use: [[title, image, description, tags], ...] — every slide must follow this exact pattern.-- Use real, publicly accessible image URLs (e.g. https://picsum.photos/seed/KEYWORD/800/500). Never hallucinate image URLs.--### Data Display-TagBlock(tags: string[]) — tags is an array of strings-Tag(text: string, icon?: string, size?: "sm" | "md" | "lg", variant?: "neutral" | "info" | "success" | "warning" | "danger") — Styled tag/badge with optional icon and variant--### Other-Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock | SectionBlock | Tabs | Carousel)[]) — Vertical container for all content in a chat response. Children stack top to bottom automatically.--## Action — Button Behavior--Action([@steps...]) wires button clicks to operations. Steps are @-prefixed built-in actions. Steps execute in order.-Buttons without an explicit Action prop automatically send their label to the assistant (equivalent to Action([@ToAssistant(label)])).--Available steps:-- @ToAssistant("message") — Send a message to the assistant (for conversational buttons like "Tell me more", "Explain this")-- @OpenUrl("https://...") — Navigate to a URL--Example — simple nav:-```-viewBtn = Button("View", Action([@OpenUrl("https://example.com")]))-```--- Action can be assigned to a variable or inlined: Button("Go", onSubmit) and Button("Go", Action([...])) both work--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Table with follow-ups:--root = Card([title, tbl, followUps])-title = TextContent("Top Languages", "large-heavy")-tbl = Table([Col("Language", langs), Col("Users (M)", users), Col("Year", years)])-langs = ["Python", "JavaScript", "Java"]-users = [15.7, 14.2, 12.1]-years = [1991, 1995, 1995]-followUps = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Tell me more about Python")-fu2 = FollowUpItem("Show me a JavaScript comparison")--Example 2 — Clickable list:--root = Card([title, list])-title = TextContent("Choose a topic", "large-heavy")-list = ListBlock([item1, item2, item3])-item1 = ListItem("Getting started", "New to the platform? Start here.")-item2 = ListItem("Advanced features", "Deep dives into powerful capabilities.")-item3 = ListItem("Troubleshooting", "Common issues and how to fix them.")--Example 3 — Image carousel with consistent slides + follow-ups:--root = Card([header, carousel, followups])-header = CardHeader("Featured Destinations", "Discover highlights and best time to visit")-carousel = Carousel([[t1, img1, d1, tags1], [t2, img2, d2, tags2], [t3, img3, d3, tags3]], "card")-t1 = TextContent("Paris, France", "large-heavy")-img1 = ImageBlock("https://picsum.photos/seed/paris/800/500", "Eiffel Tower at night")-d1 = TextContent("City of light — best Apr–Jun and Sep–Oct.", "default")-tags1 = TagBlock(["Landmark", "City Break", "Culture"])-t2 = TextContent("Kyoto, Japan", "large-heavy")-img2 = ImageBlock("https://picsum.photos/seed/kyoto/800/500", "Bamboo grove in Arashiyama")-d2 = TextContent("Temples and bamboo groves — best Mar–Apr and Nov.", "default")-tags2 = TagBlock(["Temples", "Autumn", "Culture"])-t3 = TextContent("Machu Picchu, Peru", "large-heavy")-img3 = ImageBlock("https://picsum.photos/seed/machupicchu/800/500", "Inca citadel in the clouds")-d3 = TextContent("High-altitude Inca citadel — best May–Sep.", "default")-tags3 = TagBlock(["Andes", "Hike", "UNESCO"])-followups = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Show me only beach destinations")-fu2 = FollowUpItem("Turn this into a comparison table")--Example 4 — Form with validation:--root = Card([title, form])-title = TextContent("Contact Us", "large-heavy")-form = Form("contact", btns, [nameField, emailField, msgField])-nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))-emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))-msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))-btns = Buttons([Button("Submit", Action([@ToAssistant("Submit")]), "primary")])--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Card(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Card(children) — children stack vertically automatically. No layout params are needed on Card.-- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.-- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.-- Use ListBlock when presenting a set of options or steps the user can click to select.-- Use SectionBlock to group long responses into collapsible sections — good for reports, FAQs, and structured content.-- Use SectionItem inside SectionBlock: each item needs a unique value id, a trigger (header label), and a content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must use the same component structure in the same order — e.g. all slides: [title, image, description, tags].-- For image carousels, always use real accessible URLs like https://picsum.photos/seed/KEYWORD/800/500. Never hallucinate or invent image URLs.-- For forms, define one FormControl reference per field so controls can stream progressively.-- For forms, always provide the second Form argument with Buttons(...) actions: Form(name, buttons, fields).-- Never nest Form inside Form.diff --git a/examples/hands-on-table-chat/src/generated/system-prompt.txt b/examples/hands-on-table-chat/src/generated/system-prompt.txtdeleted file mode 100644index 01bfea3ee..000000000--- a/examples/hands-on-table-chat/src/generated/system-prompt.txt+++ /dev/null@@ -1,194 +0,0 @@-You are a spreadsheet assistant. The user sees a live spreadsheet on the left panel. Always respond in OpenUI Lang (root = Stack([...])). For read-only requests use TextContent, Table, charts. For write requests, after using tools emit SpreadsheetTable to sync changes to the live spreadsheet.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Stack(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-Props typed `ActionExpression` accept an Action([@steps...]) expression. See the Action section for available steps (@ToAssistant, @OpenUrl).-Props marked `$binding<type>` accept a `$variable` reference for two-way binding.--### Layout-Stack(children: any[], direction?: "row" | "column", gap?: "none" | "xs" | "s" | "m" | "l" | "xl" | "2xl", align?: "start" | "center" | "end" | "stretch" | "baseline", justify?: "start" | "center" | "end" | "between" | "around" | "evenly", wrap?: boolean) — Flex container. direction: "row"|"column" (default "column"). gap: "none"|"xs"|"s"|"m"|"l"|"xl"|"2xl" (default "m"). align: "start"|"center"|"end"|"stretch"|"baseline". justify: "start"|"center"|"end"|"between"|"around"|"evenly".-Tabs(items: TabItem[]) — Tabbed container-TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is tab label, content is array of components-Accordion(items: AccordionItem[]) — Collapsible sections-AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is section title-Steps(items: StepsItem[]) — Step-by-step guide-StepsItem(title: string, details: string) — title and details text for one step-Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: "card" | "sunk") — Horizontal scrollable carousel-Separator(orientation?: "horizontal" | "vertical", decorative?: boolean) — Visual divider between content sections-Modal(title: string, open?: $binding<boolean>, children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[], size?: "sm" | "md" | "lg") — Modal dialog. open is a reactive $boolean binding — set to true to open, X/Escape/backdrop auto-closes. Put Form with buttons inside children.-- For grid-like layouts, use Stack with direction "row" and wrap set to true.-- Prefer justify "start" (or omit justify) with wrap=true for stable columns instead of uneven gutters.-- Use nested Stacks when you need explicit rows/sections.-- Show/hide sections: $editId != "" ? Card([editForm]) : null-- Modal: Modal("Title", $showModal, [content]) — $showModal is boolean, X/Escape auto-closes. Put Form with its own buttons inside children.-- Use Tabs for alternative views (chart types, data sections) — no $variable needed-- Shared filter across Tabs: same $days binding in Query args works across all TabItems--### Content-Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | Tabs | Carousel | Stack)[], variant?: "card" | "sunk" | "clear", direction?: "row" | "column", gap?: "none" | "xs" | "s" | "m" | "l" | "xl" | "2xl", align?: "start" | "center" | "end" | "stretch" | "baseline", justify?: "start" | "center" | "end" | "between" | "around" | "evenly", wrap?: boolean) — Styled container. variant: "card" (default, elevated) | "sunk" (recessed) | "clear" (transparent). Always full width. Accepts all Stack flex params (default: direction "column"). Cards flex to share space in row/wrap layouts.-CardHeader(title?: string, subtitle?: string) — Header with optional title and subtitle-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block. Supports markdown. Optional size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-MarkDownRenderer(textMarkdown: string, variant?: "clear" | "card" | "sunk") — Renders markdown text with optional container variant-Callout(variant: "info" | "warning" | "error" | "success" | "neutral", title: string, description: string, visible?: $binding<boolean>) — Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.-TextCallout(variant?: "neutral" | "info" | "warning" | "success" | "danger", title?: string, description?: string) — Text callout with variant, title, and description-Image(alt: string, src?: string) — Image with alt text and optional URL-ImageBlock(src: string, alt?: string) — Image block with loading state-ImageGallery(images: {src: string, alt?: string, details?: string}[]) — Gallery grid of images with modal preview-CodeBlock(language: string, codeString: string) — Syntax-highlighted code block-- Use Cards to group related KPIs or sections. Stack with direction "row" for side-by-side layouts.-- Success toast: Callout("success", "Saved", "Done.", $showSuccess) — use @Set($showSuccess, true) in save action, auto-dismisses after 3s. For errors: result.status == "error" ? Callout("error", "Failed", result.error) : null-- KPI card: Card([TextContent("Label", "small"), TextContent("" + @Count(@Filter(data.rows, "field", "==", "value")), "large-heavy")])--### Tables-Table(columns: Col[]) — Data table — column-oriented. Each Col holds its own data array.-Col(label: string, data: any, type?: "string" | "number" | "action") — Column definition — holds label + data array-- Table is COLUMN-oriented: Table([Col("Label", dataArray), Col("Count", countArray, "number")]). Use array pluck for data: data.rows.fieldName-- Col data can be component arrays for styled cells: Col("Status", @Each(data.rows, "item", Tag(item.status, null, "sm", item.status == "open" ? "success" : "danger")))-- Row actions: Col("Actions", @Each(data.rows, "t", Button("Edit", Action([@Set($showEdit, true), @Set($editId, t.id)]))))-- Sortable: sorted = @Sort(data.rows, $sortField, "desc"). Bind $sortField to Select. Use sorted.fieldName for Col data-- Searchable: filtered = @Filter(data.rows, "title", "contains", $search). Bind $search to Input-- Chain sort + filter: filtered = @Filter(...) then sorted = @Sort(filtered, ...) — use sorted for both Table and Charts-- Empty state: @Count(data.rows) > 0 ? Table([...]) : TextContent("No data yet")--### Charts (2D)-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bars; use for comparing values across categories with one or more series-LineChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Lines over categories; use for trends and continuous data over time-AreaChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Filled area under lines; use for cumulative totals or volume trends over time-RadarChart(labels: string[], series: Series[]) — Spider/web chart; use for comparing multiple variables across one or more entities-HorizontalBarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Horizontal bars; prefer when category labels are long or for ranked lists-Series(category: string, values: number[]) — One data series-- Charts accept column arrays: LineChart(labels, [Series("Name", values)]). Use array pluck: LineChart(data.rows.day, [Series("Views", data.rows.views)])-- Use Cards to wrap charts with CardHeader for titled sections-- Chart + Table from same source: use @Sort or @Filter result for both LineChart and Table Col data-- Multiple chart views: use Tabs — Tabs([TabItem("line", "Line", [LineChart(...)]), TabItem("bar", "Bar", [BarChart(...)])])--### Charts (1D)-PieChart(labels: string[], values: number[], variant?: "pie" | "donut") — Circular slices; use plucked arrays: PieChart(data.categories, data.values)-RadialChart(labels: string[], values: number[]) — Radial bars; use plucked arrays: RadialChart(data.categories, data.values)-SingleStackedBarChart(labels: string[], values: number[]) — Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)-Slice(category: string, value: number) — One slice with label and numeric value-- PieChart and BarChart need NUMBERS, not objects. For list data, use @Count(@Filter(...)) to aggregate:-- PieChart from list: `PieChart(["Low", "Med", "High"], [@Count(@Filter(data.rows, "priority", "==", "low")), @Count(@Filter(data.rows, "priority", "==", "medium")), @Count(@Filter(data.rows, "priority", "==", "high"))], "donut")`-- KPI from count: `TextContent("" + @Count(@Filter(data.rows, "status", "==", "open")), "large-heavy")`--### Charts (Scatter)-ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string) — X/Y scatter plot; use for correlations, distributions, and clustering-ScatterSeries(name: string, points: Point[]) — Named dataset-Point(x: number, y: number, z?: number) — Data point with numeric coordinates--### Forms-Form(name: string, buttons: Buttons, fields?: FormControl[]) — Form container with fields and explicit action buttons-FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string) — Field with label, input component, and optional hint text-Label(text: string) — Text label-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-SelectItem(value: string, label: string) — Option for Select-DatePicker(name: string, mode?: "single" | "range", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<any>)-Slider(name: string, variant: "continuous" | "discrete", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>) — Numeric slider input; supports continuous and discrete (stepped) variants-CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)-CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)-RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-RadioItem(label: string, description: string, value: string)-SwitchGroup(name: string, items: SwitchItem[], variant?: "clear" | "card" | "sunk", value?: $binding<Record<string, boolean>>) — Group of switch toggles-SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean) — Individual switch toggle-- For Form fields, define EACH FormControl as its own reference — do NOT inline all controls in one array. This allows progressive field-by-field streaming.-- NEVER nest Form inside Form — each Form should be a standalone container.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.-- rules is an optional object: {required: true, email: true, minLength: 8, maxLength: 100}-- Available rules: required, email, min, max, minLength, maxLength, pattern, url, numeric-- The renderer shows error messages automatically — do NOT generate error text in the UI-- Conditional fields: $country == "US" ? stateField : $country == "UK" ? postcodeField : addressField-- Edit form in Modal: Modal("Edit", $showEdit, [Form("edit", Buttons([saveBtn, cancelBtn]), [fields...])]). Save button should include @Set($showEdit, false) to close modal.--### Buttons-Button(label: string, action?: ActionExpression, variant?: "primary" | "secondary" | "tertiary", type?: "normal" | "destructive", size?: "extra-small" | "small" | "medium" | "large") — Clickable button-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" (default) | "column".-- Toggle in @Each: @Each(rows, "t", Button(t.status == "open" ? "Close" : "Reopen", Action([...])))--### Data Display-TagBlock(tags: string[]) — tags is an array of strings-Tag(text: string, icon?: string, size?: "sm" | "md" | "lg", variant?: "neutral" | "info" | "success" | "warning" | "danger") — Styled tag/badge with optional icon and variant-- Color-mapped Tag: Tag(value, null, "sm", value == "high" ? "danger" : value == "medium" ? "warning" : "neutral")--### Other-SpreadsheetTable(data: (string | number | any)[][], colHeaders?: string[]) — Syncs data to the live spreadsheet panel. ONLY use this AFTER modification tools (update_cells, add_rows, delete_rows, set_formula, add_column) to push updated data to the user's spreadsheet. NEVER use for read-only display. Always include colHeaders.--## Action — Button Behavior--Action([@steps...]) wires button clicks to operations. Steps are @-prefixed built-in actions. Steps execute in order.-Buttons without an explicit Action prop automatically send their label to the assistant (equivalent to Action([@ToAssistant(label)])).--Available steps:-- @ToAssistant("message") — Send a message to the assistant (for conversational buttons like "Tell me more", "Explain this")-- @OpenUrl("https://...") — Navigate to a URL--Example — simple nav:-```-viewBtn = Button("View", Action([@OpenUrl("https://example.com")]))-```--- Action can be assigned to a variable or inlined: Button("Go", onSubmit) and Button("Go", Action([...])) both work--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Stack(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Stack(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--root = Stack([title, info, followups])-title = TextContent("Sales Summary", "large-heavy")-info = TextContent("Your spreadsheet has 5 products with quarterly sales data. Total revenue across all products is $45,350.")-followups = Buttons([Button("Visualize sales trends", null, "secondary"), Button("Add a new product", null, "secondary"), Button("Show top performers", null, "secondary")])--root = Stack([title, chart, followups])-title = TextContent("Q1-Q4 Revenue Comparison", "large-heavy")-chart = BarChart(["Q1", "Q2", "Q3", "Q4"], [s1, s2], "grouped", "Quarter", "Revenue ($)")-s1 = Series("Widget A", [1500, 1800, 2100, 2400])-s2 = Series("Widget B", [1200, 1400, 1600, 1900])-followups = Buttons([Button("Show as a table", null, "secondary"), Button("Compare Q1 vs Q4", null, "secondary")])--root = Stack([title, pie, followups])-title = TextContent("Revenue by Category", "large-heavy")-pie = PieChart(["Laptops", "Phones", "Audio", "Tablets"], [236800, 521700, 149200, 104100], "donut")-followups = Buttons([Button("Show as a bar chart", null, "secondary"), Button("Break down by quarter", null, "secondary")])--root = Stack([msg, sheet, followups])-msg = TextContent("Done! I added Widget C with Q1=500, Q2=600, Q3=700, Q4=800 and a SUM formula for Total.")-sheet = SpreadsheetTable([["Widget A", 1500, 1800, 2100, 2400, "=SUM(B1:E1)"], ["Widget B", 1200, 1400, 1600, 1900, "=SUM(B2:E2)"], ["Widget C", 500, 600, 700, 800, "=SUM(B3:E3)"]], ["Product", "Q1 Sales", "Q2 Sales", "Q3 Sales", "Q4 Sales", "Total"])-followups = Buttons([Button("Add another product", null, "secondary"), Button("Show updated totals", null, "secondary"), Button("Visualize the data", null, "secondary")])--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Stack(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- ALWAYS output valid OpenUI Lang with root = Stack([...]). Never output plain text or markdown outside of OpenUI Lang.-- For READ-ONLY requests: use TextContent, MarkDownRenderer, Table, BarChart, LineChart, PieChart. Do NOT use SpreadsheetTable.-- For WRITE requests: after calling modification tools and get_table_data, emit SpreadsheetTable with the full updated data and colHeaders to sync changes to the live spreadsheet. Also include a TextContent explaining what changed.-- Only call modification tools when the user explicitly requests changes.diff --git a/examples/harnesses/grok-build/README.md b/examples/harnesses/grok-build/README.mdindex e578bc405..0b1bea33e 100644--- a/examples/harnesses/grok-build/README.md+++ b/examples/harnesses/grok-build/README.md@@ -170,3 +170,9 @@ inside an OS-level sandbox or container, restrict network access and credentialsGrok's permission policy for the deployment. Setting `GROK_BUILD_ALWAYS_APPROVE=false` makes thisdemo cancel permission requests because `AgentInterface` does not currently provide a Grok-specifictool-permission approval UI; question and plan dialogs continue to work independently.++## Verify++```bash+pnpm verify+```diff --git a/examples/harnesses/grok-build/package.json b/examples/harnesses/grok-build/package.jsonindex 581475e6f..f5f901fed 100644--- a/examples/harnesses/grok-build/package.json+++ b/examples/harnesses/grok-build/package.json@@ -1,5 +1,5 @@{- "name": "grok-build-harness",+ "name": "@openuidev/example-grok-build","version": "0.1.0","private": true,"scripts": {@@ -8,7 +8,8 @@"start": "node scripts/launch.mjs start","lint": "eslint","test": "vitest run",- "typecheck": "tsc --noEmit"+ "typecheck": "tsc --noEmit",+ "verify": "pnpm typecheck && pnpm test && pnpm build"},"dependencies": {"@ag-ui/core": "^0.0.53",diff --git a/examples/harnesses/pi-agent-harness/.env.example b/examples/harnesses/pi/.env.examplesimilarity index 100%rename from examples/harnesses/pi-agent-harness/.env.examplerename to examples/harnesses/pi/.env.examplediff --git a/examples/harnesses/pi-agent-harness/.gitignore b/examples/harnesses/pi/.gitignoresimilarity index 100%rename from examples/harnesses/pi-agent-harness/.gitignorerename to examples/harnesses/pi/.gitignorediff --git a/examples/harnesses/pi-agent-harness/README.md b/examples/harnesses/pi/README.mdsimilarity index 99%rename from examples/harnesses/pi-agent-harness/README.mdrename to examples/harnesses/pi/README.mdindex 12a4a0522..e0988a612 100644--- a/examples/harnesses/pi-agent-harness/README.md+++ b/examples/harnesses/pi/README.md@@ -67,7 +67,7 @@ pnpm installThen, from this example, set a provider key and point the agent at a project to work on:```bash-cd examples/pi-agent-harness+cd examples/harnesses/picp .env.example .env # set a provider API key (skip if using an existing Pi login)# Point the agent at the project you want it to work on:@@ -137,3 +137,9 @@ ability to reach this port as remote code execution.- run the agent in an OS-level sandbox/container with dropped privileges and no network.`PI_AGENT_CWD` is a discovery root, **not** a security boundary — `bash` can escape it.++## Verify++```bash+pnpm verify+```diff --git a/examples/hands-on-table-chat/eslint.config.mjs b/examples/harnesses/pi/eslint.config.mjssimilarity index 100%rename from examples/hands-on-table-chat/eslint.config.mjsrename to examples/harnesses/pi/eslint.config.mjsdiff --git a/examples/harnesses/pi-agent-harness/next.config.ts b/examples/harnesses/pi/next.config.tssimilarity index 100%rename from examples/harnesses/pi-agent-harness/next.config.tsrename to examples/harnesses/pi/next.config.tsdiff --git a/examples/harnesses/pi-agent-harness/package.json b/examples/harnesses/pi/package.jsonsimilarity index 86%rename from examples/harnesses/pi-agent-harness/package.jsonrename to examples/harnesses/pi/package.jsonindex 38781a68b..07cdd71d3 100644--- a/examples/harnesses/pi-agent-harness/package.json+++ b/examples/harnesses/pi/package.json@@ -1,12 +1,13 @@{- "name": "pi-agent-harness",+ "name": "@openuidev/example-pi","version": "0.1.0","private": true,"scripts": {"dev": "node scripts/launch.mjs dev","build": "next build --webpack","start": "node scripts/launch.mjs start",- "lint": "eslint"+ "lint": "eslint",+ "verify": "tsc --noEmit && next build --webpack"},"dependencies": {"@earendil-works/pi-coding-agent": "^0.79.4",diff --git a/examples/langchain-chat/postcss.config.mjs b/examples/harnesses/pi/postcss.config.mjssimilarity index 100%rename from examples/langchain-chat/postcss.config.mjsrename to examples/harnesses/pi/postcss.config.mjsdiff --git a/examples/harnesses/pi-agent-harness/scripts/launch.mjs b/examples/harnesses/pi/scripts/launch.mjssimilarity index 100%rename from examples/harnesses/pi-agent-harness/scripts/launch.mjsrename to examples/harnesses/pi/scripts/launch.mjsdiff --git a/examples/harnesses/pi-agent-harness/src/app/api/chat/route.ts b/examples/harnesses/pi/src/app/api/chat/route.tssimilarity index 100%rename from examples/harnesses/pi-agent-harness/src/app/api/chat/route.tsrename to examples/harnesses/pi/src/app/api/chat/route.tsdiff --git a/examples/harnesses/pi-agent-harness/src/app/globals.css b/examples/harnesses/pi/src/app/globals.csssimilarity index 100%rename from examples/harnesses/pi-agent-harness/src/app/globals.cssrename to examples/harnesses/pi/src/app/globals.cssdiff --git a/examples/harnesses/pi-agent-harness/src/app/layout.tsx b/examples/harnesses/pi/src/app/layout.tsxsimilarity index 100%rename from examples/harnesses/pi-agent-harness/src/app/layout.tsxrename to examples/harnesses/pi/src/app/layout.tsxdiff --git a/examples/harnesses/pi-agent-harness/src/app/page.tsx b/examples/harnesses/pi/src/app/page.tsxsimilarity index 100%rename from examples/harnesses/pi-agent-harness/src/app/page.tsxrename to examples/harnesses/pi/src/app/page.tsxdiff --git a/examples/harnesses/pi-agent-harness/src/lib/pi-session.ts b/examples/harnesses/pi/src/lib/pi-session.tssimilarity index 100%rename from examples/harnesses/pi-agent-harness/src/lib/pi-session.tsrename to examples/harnesses/pi/src/lib/pi-session.tsdiff --git a/examples/harnesses/pi-agent-harness/src/library.ts b/examples/harnesses/pi/src/library.tssimilarity index 100%rename from examples/harnesses/pi-agent-harness/src/library.tsrename to examples/harnesses/pi/src/library.tsdiff --git a/examples/html-artifact/tsconfig.json b/examples/harnesses/pi/tsconfig.jsonsimilarity index 100%rename from examples/html-artifact/tsconfig.jsonrename to examples/harnesses/pi/tsconfig.jsondiff --git a/examples/html-artifact/.gitignore b/examples/html-artifact/.gitignoredeleted file mode 100644index 5ef6a5207..000000000--- a/examples/html-artifact/.gitignore+++ /dev/null@@ -1,41 +0,0 @@-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.--# dependencies-/node_modules-/.pnp-.pnp.*-.yarn/*-!.yarn/patches-!.yarn/plugins-!.yarn/releases-!.yarn/versions--# testing-/coverage--# next.js-/.next/-/out/--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*-yarn-debug.log*-yarn-error.log*-.pnpm-debug.log*--# env files (can opt-in for committing if needed)-.env*--# vercel-.vercel--# typescript-*.tsbuildinfo-next-env.d.tsdiff --git a/examples/html-artifact/src/generated/system-prompt.txt b/examples/html-artifact/src/generated/system-prompt.txtdeleted file mode 100644index 5a3b01b97..000000000--- a/examples/html-artifact/src/generated/system-prompt.txt+++ /dev/null@@ -1,63 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Response(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.--Response(children: (Markdown | HtmlArtifact)[]) — Root container for every reply. Children stack vertically.-Markdown(text: string) — Renders conversational markdown text. Use this for normal replies.-HtmlArtifact(title: string, document: string) — Renders a bespoke, self-contained HTML/CSS/JavaScript experience from a complete document or HTML fragment.--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Response(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Response(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — a normal reply:--root = Response([answer])-answer = Markdown("Hi! I can chat normally, or build you an interactive HTML experience — try asking for a game, simulator, or visualizer.")--Example 2 — an interactive artifact:--root = Response([intro, artifact])-intro = Markdown("Here's a simple click counter:")-artifact = HtmlArtifact("Interactive counter", "<!doctype html><html><head><style>body{font-family:system-ui;padding:2rem}button{padding:.5rem 1rem}</style></head><body><h1>Counter</h1><button id='count'>0</button><script>let count=0;document.querySelector('#count').addEventListener('click',event=>{event.currentTarget.textContent=String(++count)})</script></body></html>")--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Response(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Use Markdown for normal conversation. Most replies are a Response with a single Markdown child.-- Only use HtmlArtifact when the user explicitly asks you to build something interactive — an app, game, simulation, visualization, or similar experience.-- When you use HtmlArtifact, generate a self-contained HTML/CSS/JavaScript experience in the document argument. It may be a complete HTML document or a fragment.-- Inside an HtmlArtifact document: use inline CSS and JavaScript only. Do not depend on external scripts, stylesheets, fonts, images, or network requests.-- Do not wrap the document in Markdown fences.-- Keep each statement on one line. Encode line breaks as \n inside the document string.-- The document is a double-quoted openui-lang string. Prefer single quotes inside HTML and JavaScript, and escape any double quotes or backslashes.diff --git a/examples/langchain-chat/eslint.config.mjs b/examples/langchain-chat/eslint.config.mjsdeleted file mode 100644index 05e726d1b..000000000--- a/examples/langchain-chat/eslint.config.mjs+++ /dev/null@@ -1,18 +0,0 @@-import { defineConfig, globalIgnores } from "eslint/config";-import nextVitals from "eslint-config-next/core-web-vitals";-import nextTs from "eslint-config-next/typescript";--const eslintConfig = defineConfig([- ...nextVitals,- ...nextTs,- // Override default ignores of eslint-config-next.- globalIgnores([- // Default ignores of eslint-config-next:- ".next/**",- "out/**",- "build/**",- "next-env.d.ts",- ]),-]);--export default eslintConfig;diff --git a/examples/langchain-chat/src/generated/system-prompt.txt b/examples/langchain-chat/src/generated/system-prompt.txtdeleted file mode 100644index cbd28d059..000000000--- a/examples/langchain-chat/src/generated/system-prompt.txt+++ /dev/null@@ -1,223 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-Props typed `ActionExpression` accept an Action([@steps...]) expression. See the Action section for available steps (@ToAssistant, @OpenUrl).-Props marked `$binding<type>` accept a `$variable` reference for two-way binding.--### Content-CardHeader(title?: string, subtitle?: string) — Header with optional title and subtitle-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block. Supports markdown. Optional size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-MarkDownRenderer(textMarkdown: string, variant?: "clear" | "card" | "sunk") — Renders markdown text with optional container variant-Callout(variant: "info" | "warning" | "error" | "success" | "neutral", title: string, description: string, visible?: $binding<boolean>) — Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.-TextCallout(variant?: "neutral" | "info" | "warning" | "success" | "danger", title?: string, description?: string) — Text callout with variant, title, and description-Image(alt: string, src?: string) — Image with alt text and optional URL-ImageBlock(src: string, alt?: string) — Image block with loading state-ImageGallery(images: {src: string, alt?: string, details?: string}[]) — Gallery grid of images with modal preview-CodeBlock(language: string, codeString: string) — Syntax-highlighted code block-Separator(orientation?: "horizontal" | "vertical", decorative?: boolean) — Visual divider between content sections--### Tables-Table(columns: Col[]) — Data table — column-oriented. Each Col holds its own data array.-Col(label: string, data: any, type?: "string" | "number" | "action") — Column definition — holds label + data array--### Charts (2D)-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bars; use for comparing values across categories with one or more series-LineChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Lines over categories; use for trends and continuous data over time-AreaChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Filled area under lines; use for cumulative totals or volume trends over time-RadarChart(labels: string[], series: Series[]) — Spider/web chart; use for comparing multiple variables across one or more entities-HorizontalBarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Horizontal bars; prefer when category labels are long or for ranked lists-Series(category: string, values: number[]) — One data series--### Charts (1D)-PieChart(labels: string[], values: number[], variant?: "pie" | "donut", appearance?: "circular" | "semiCircular") — Circular slices; use plucked arrays: PieChart(data.categories, data.values)-RadialChart(labels: string[], values: number[]) — Radial bars; use plucked arrays: RadialChart(data.categories, data.values)-SingleStackedBarChart(labels: string[], values: number[]) — Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)-Slice(category: string, value: number) — One slice with label and numeric value--### Charts (Scatter)-ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string) — X/Y scatter plot; use for correlations, distributions, and clustering-ScatterSeries(name: string, points: Point[]) — Named dataset-Point(x: number, y: number, z?: number) — Data point with numeric coordinates--### Forms-Form(name: string, buttons: Buttons, fields?: FormControl[]) — Form container with fields and explicit action buttons-FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string) — Field with label, input component, and optional hint text-Label(text: string) — Text label-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>, size?: "small" | "medium" | "large")-SelectItem(value: string, label: string) — Option for Select-DatePicker(name: string, mode?: "single" | "range", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<any>)-Slider(name: string, variant: "continuous" | "discrete", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>) — Numeric slider input; supports continuous and discrete (stepped) variants-CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)-CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)-RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-RadioItem(label: string, description: string, value: string)-SwitchGroup(name: string, items: SwitchItem[], variant?: "clear" | "card" | "sunk", value?: $binding<Record<string, boolean>>) — Group of switch toggles-SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean) — Individual switch toggle-- Define EACH FormControl as its own reference — do NOT inline all controls in one array.-- NEVER nest Form inside Form.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.-- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }-- The renderer shows error messages automatically — do NOT generate error text in the UI--### Buttons-Button(label: string, action?: ActionExpression, variant?: "primary" | "secondary" | "tertiary", type?: "normal" | "destructive", size?: "extra-small" | "small" | "medium" | "large") — Clickable button-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" (default) | "column".--### Lists & Follow-ups-ListBlock(items: ListItem[], variant?: "number" | "image") — A list of items with number or image indicators. Each item can optionally have an action.-ListItem(title: string, subtitle?: string, image?: {src: string, alt: string}, actionLabel?: string, action?: ActionExpression) — Item in a ListBlock — displays a title with an optional subtitle and image. When action is provided, the item becomes clickable.-FollowUpBlock(items: FollowUpItem[]) — List of clickable follow-up suggestions placed at the end of a response-FollowUpItem(text: string) — Clickable follow-up suggestion — when clicked, sends text as user message-- Use ListBlock with ListItem references for numbered, clickable lists.-- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.-- Clicking a ListItem or FollowUpItem sends its text to the LLM as a user message.-- Example: list = ListBlock([item1, item2]) item1 = ListItem("Option A", "Details about A")--### Sections-SectionBlock(sections: SectionItem[], isFoldable?: boolean) — Collapsible accordion sections. Auto-opens sections as they stream in. Use SectionItem for each section.-SectionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock)[]) — Section with a label and collapsible content — used inside SectionBlock-- SectionBlock renders collapsible accordion sections that auto-open as they stream.-- Each section needs a unique `value` id, a `trigger` label, and a `content` array.-- Example: sections = SectionBlock([s1, s2]) s1 = SectionItem("intro", "Introduction", [content1])-- Set isFoldable=false to render sections as flat headers instead of accordion.--### Layout-Tabs(items: TabItem[]) — Tabbed container-TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is tab label, content is array of components-Accordion(items: AccordionItem[]) — Collapsible sections-AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is section title-Steps(items: StepsItem[]) — Step-by-step guide-StepsItem(title: string, details: string) — title and details text for one step-Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: "card" | "sunk") — Horizontal scrollable carousel-- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must have the same structure — same component types in the same order.-- For image carousels use: [[title, image, description, tags], ...] — every slide must follow this exact pattern.-- Use real, publicly accessible image URLs (e.g. https://picsum.photos/seed/KEYWORD/800/500). Never hallucinate image URLs.--### Data Display-TagBlock(tags: string[]) — tags is an array of strings-Tag(text: string, icon?: string, size?: "sm" | "md" | "lg", variant?: "neutral" | "info" | "success" | "warning" | "danger") — Styled tag/badge with optional icon and variant--### Other-Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock | SectionBlock | Tabs | Carousel)[]) — Vertical container for all content in a chat response. Children stack top to bottom automatically.--## Action — Button Behavior--Action([@steps...]) wires button clicks to operations. Steps are @-prefixed built-in actions. Steps execute in order.-Buttons without an explicit Action prop automatically send their label to the assistant (equivalent to Action([@ToAssistant(label)])).--Available steps:-- @ToAssistant("message") — Send a message to the assistant (for conversational buttons like "Tell me more", "Explain this")-- @OpenUrl("https://...") — Navigate to a URL--Example — simple nav:-```-viewBtn = Button("View", Action([@OpenUrl("https://example.com")]))-```--- Action can be assigned to a variable or inlined: Button("Go", onSubmit) and Button("Go", Action([...])) both work--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Table with follow-ups:--root = Card([title, tbl, followUps])-title = TextContent("Top Languages", "large-heavy")-tbl = Table([Col("Language", langs), Col("Users (M)", users), Col("Year", years)])-langs = ["Python", "JavaScript", "Java"]-users = [15.7, 14.2, 12.1]-years = [1991, 1995, 1995]-followUps = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Tell me more about Python")-fu2 = FollowUpItem("Show me a JavaScript comparison")--Example 2 — Clickable list:--root = Card([title, list])-title = TextContent("Choose a topic", "large-heavy")-list = ListBlock([item1, item2, item3])-item1 = ListItem("Getting started", "New to the platform? Start here.")-item2 = ListItem("Advanced features", "Deep dives into powerful capabilities.")-item3 = ListItem("Troubleshooting", "Common issues and how to fix them.")--Example 3 — Image carousel with consistent slides + follow-ups:--root = Card([header, carousel, followups])-header = CardHeader("Featured Destinations", "Discover highlights and best time to visit")-carousel = Carousel([[t1, img1, d1, tags1], [t2, img2, d2, tags2], [t3, img3, d3, tags3]], "card")-t1 = TextContent("Paris, France", "large-heavy")-img1 = ImageBlock("https://picsum.photos/seed/paris/800/500", "Eiffel Tower at night")-d1 = TextContent("City of light — best Apr–Jun and Sep–Oct.", "default")-tags1 = TagBlock(["Landmark", "City Break", "Culture"])-t2 = TextContent("Kyoto, Japan", "large-heavy")-img2 = ImageBlock("https://picsum.photos/seed/kyoto/800/500", "Bamboo grove in Arashiyama")-d2 = TextContent("Temples and bamboo groves — best Mar–Apr and Nov.", "default")-tags2 = TagBlock(["Temples", "Autumn", "Culture"])-t3 = TextContent("Machu Picchu, Peru", "large-heavy")-img3 = ImageBlock("https://picsum.photos/seed/machupicchu/800/500", "Inca citadel in the clouds")-d3 = TextContent("High-altitude Inca citadel — best May–Sep.", "default")-tags3 = TagBlock(["Andes", "Hike", "UNESCO"])-followups = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Show me only beach destinations")-fu2 = FollowUpItem("Turn this into a comparison table")--Example 4 — Form with validation:--root = Card([title, form])-title = TextContent("Contact Us", "large-heavy")-form = Form("contact", btns, [nameField, emailField, msgField])-nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))-emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))-msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))-btns = Buttons([Button("Submit", Action([@ToAssistant("Submit")]), "primary")])--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Card(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Card(children) — children stack vertically automatically. No layout params are needed on Card.-- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.-- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.-- Use ListBlock when presenting a set of options or steps the user can click to select.-- Use SectionBlock to group long responses into collapsible sections — good for reports, FAQs, and structured content.-- Use SectionItem inside SectionBlock: each item needs a unique value id, a trigger (header label), and a content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must use the same component structure in the same order — e.g. all slides: [title, image, description, tags].-- For image carousels, always use real accessible URLs like https://picsum.photos/seed/KEYWORD/800/500. Never hallucinate or invent image URLs.-- For forms, define one FormControl reference per field so controls can stream progressively.-- For forms, always provide the second Form argument with Buttons(...) actions: Form(name, buttons, fields).-- Never nest Form inside Form.diff --git a/examples/mastra-chat/src/generated/system-prompt.txt b/examples/mastra-chat/src/generated/system-prompt.txtdeleted file mode 100644index af8c67770..000000000--- a/examples/mastra-chat/src/generated/system-prompt.txt+++ /dev/null@@ -1,223 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-Props typed `ActionExpression` accept an Action([@steps...]) expression. See the Action section for available steps (@ToAssistant, @OpenUrl).-Props marked `$binding<type>` accept a `$variable` reference for two-way binding.--### Content-CardHeader(title?: string, subtitle?: string) — Header with optional title and subtitle-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block. Supports markdown. Optional size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-MarkDownRenderer(textMarkdown: string, variant?: "clear" | "card" | "sunk") — Renders markdown text with optional container variant-Callout(variant: "info" | "warning" | "error" | "success" | "neutral", title: string, description: string, visible?: $binding<boolean>) — Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.-TextCallout(variant?: "neutral" | "info" | "warning" | "success" | "danger", title?: string, description?: string) — Text callout with variant, title, and description-Image(alt: string, src?: string) — Image with alt text and optional URL-ImageBlock(src: string, alt?: string) — Image block with loading state-ImageGallery(images: {src: string, alt?: string, details?: string}[]) — Gallery grid of images with modal preview-CodeBlock(language: string, codeString: string) — Syntax-highlighted code block-Separator(orientation?: "horizontal" | "vertical", decorative?: boolean) — Visual divider between content sections--### Tables-Table(columns: Col[]) — Data table — column-oriented. Each Col holds its own data array.-Col(label: string, data, type?: "string" | "number" | "action") — Column definition — holds label + data array--### Charts (2D)-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bars; use for comparing values across categories with one or more series-LineChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Lines over categories; use for trends and continuous data over time-AreaChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Filled area under lines; use for cumulative totals or volume trends over time-RadarChart(labels: string[], series: Series[]) — Spider/web chart; use for comparing multiple variables across one or more entities-HorizontalBarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Horizontal bars; prefer when category labels are long or for ranked lists-Series(category: string, values: number[]) — One data series--### Charts (1D)-PieChart(labels: string[], values: number[], variant?: "pie" | "donut") — Circular slices; use plucked arrays: PieChart(data.categories, data.values)-RadialChart(labels: string[], values: number[]) — Radial bars; use plucked arrays: RadialChart(data.categories, data.values)-SingleStackedBarChart(labels: string[], values: number[]) — Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)-Slice(category: string, value: number) — One slice with label and numeric value--### Charts (Scatter)-ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string) — X/Y scatter plot; use for correlations, distributions, and clustering-ScatterSeries(name: string, points: Point[]) — Named dataset-Point(x: number, y: number, z?: number) — Data point with numeric coordinates--### Forms-Form(name: string, buttons: Buttons, fields) — Form container with fields and explicit action buttons-FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string) — Field with label, input component, and optional hint text-Label(text: string) — Text label-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-SelectItem(value: string, label: string) — Option for Select-DatePicker(name: string, mode?: "single" | "range", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?)-Slider(name: string, variant: "continuous" | "discrete", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>) — Numeric slider input; supports continuous and discrete (stepped) variants-CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?)-CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)-RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-RadioItem(label: string, description: string, value: string)-SwitchGroup(name: string, items: SwitchItem[], variant?: "clear" | "card" | "sunk", value?) — Group of switch toggles-SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean) — Individual switch toggle-- Define EACH FormControl as its own reference — do NOT inline all controls in one array.-- NEVER nest Form inside Form.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.-- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }-- The renderer shows error messages automatically — do NOT generate error text in the UI--### Buttons-Button(label: string, action?: ActionExpression, variant?: "primary" | "secondary" | "tertiary", type?: "normal" | "destructive", size?: "extra-small" | "small" | "medium" | "large") — Clickable button-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" (default) | "column".--### Lists & Follow-ups-ListBlock(items: ListItem[], variant?: "number" | "image") — A list of items with number or image indicators. Each item can optionally have an action.-ListItem(title: string, subtitle?: string, image?: {src: string, alt: string}, actionLabel?: string, action?: ActionExpression) — Item in a ListBlock — displays a title with an optional subtitle and image. When action is provided, the item becomes clickable.-FollowUpBlock(items: FollowUpItem[]) — List of clickable follow-up suggestions placed at the end of a response-FollowUpItem(text: string) — Clickable follow-up suggestion — when clicked, sends text as user message-- Use ListBlock with ListItem references for numbered, clickable lists.-- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.-- Clicking a ListItem or FollowUpItem sends its text to the LLM as a user message.-- Example: list = ListBlock([item1, item2]) item1 = ListItem("Option A", "Details about A")--### Sections-SectionBlock(sections: SectionItem[], isFoldable?: boolean) — Collapsible accordion sections. Auto-opens sections as they stream in. Use SectionItem for each section.-SectionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock)[]) — Section with a label and collapsible content — used inside SectionBlock-- SectionBlock renders collapsible accordion sections that auto-open as they stream.-- Each section needs a unique `value` id, a `trigger` label, and a `content` array.-- Example: sections = SectionBlock([s1, s2]) s1 = SectionItem("intro", "Introduction", [content1])-- Set isFoldable=false to render sections as flat headers instead of accordion.--### Layout-Tabs(items: TabItem[]) — Tabbed container-TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is tab label, content is array of components-Accordion(items: AccordionItem[]) — Collapsible sections-AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is section title-Steps(items: StepsItem[]) — Step-by-step guide-StepsItem(title: string, details: string) — title and details text for one step-Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: "card" | "sunk") — Horizontal scrollable carousel-- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must have the same structure — same component types in the same order.-- For image carousels use: [[title, image, description, tags], ...] — every slide must follow this exact pattern.-- Use real, publicly accessible image URLs (e.g. https://picsum.photos/seed/KEYWORD/800/500). Never hallucinate image URLs.--### Data Display-TagBlock(tags: string[]) — tags is an array of strings-Tag(text: string, icon?: string, size?: "sm" | "md" | "lg", variant?: "neutral" | "info" | "success" | "warning" | "danger") — Styled tag/badge with optional icon and variant--### Other-Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock | SectionBlock | Tabs | Carousel)[]) — Vertical container for all content in a chat response. Children stack top to bottom automatically.--## Action — Button Behavior--Action([@steps...]) wires button clicks to operations. Steps are @-prefixed built-in actions. Steps execute in order.-Buttons without an explicit Action prop automatically send their label to the assistant (equivalent to Action([@ToAssistant(label)])).--Available steps:-- @ToAssistant("message") — Send a message to the assistant (for conversational buttons like "Tell me more", "Explain this")-- @OpenUrl("https://...") — Navigate to a URL--Example — simple nav:-```-viewBtn = Button("View", Action([@OpenUrl("https://example.com")]))-```--- Action can be assigned to a variable or inlined: Button("Go", onSubmit) and Button("Go", Action([...])) both work--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Table with follow-ups:--root = Card([title, tbl, followUps])-title = TextContent("Top Languages", "large-heavy")-tbl = Table([Col("Language", langs), Col("Users (M)", users), Col("Year", years)])-langs = ["Python", "JavaScript", "Java"]-users = [15.7, 14.2, 12.1]-years = [1991, 1995, 1995]-followUps = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Tell me more about Python")-fu2 = FollowUpItem("Show me a JavaScript comparison")--Example 2 — Clickable list:--root = Card([title, list])-title = TextContent("Choose a topic", "large-heavy")-list = ListBlock([item1, item2, item3])-item1 = ListItem("Getting started", "New to the platform? Start here.")-item2 = ListItem("Advanced features", "Deep dives into powerful capabilities.")-item3 = ListItem("Troubleshooting", "Common issues and how to fix them.")--Example 3 — Image carousel with consistent slides + follow-ups:--root = Card([header, carousel, followups])-header = CardHeader("Featured Destinations", "Discover highlights and best time to visit")-carousel = Carousel([[t1, img1, d1, tags1], [t2, img2, d2, tags2], [t3, img3, d3, tags3]], "card")-t1 = TextContent("Paris, France", "large-heavy")-img1 = ImageBlock("https://picsum.photos/seed/paris/800/500", "Eiffel Tower at night")-d1 = TextContent("City of light — best Apr–Jun and Sep–Oct.", "default")-tags1 = TagBlock(["Landmark", "City Break", "Culture"])-t2 = TextContent("Kyoto, Japan", "large-heavy")-img2 = ImageBlock("https://picsum.photos/seed/kyoto/800/500", "Bamboo grove in Arashiyama")-d2 = TextContent("Temples and bamboo groves — best Mar–Apr and Nov.", "default")-tags2 = TagBlock(["Temples", "Autumn", "Culture"])-t3 = TextContent("Machu Picchu, Peru", "large-heavy")-img3 = ImageBlock("https://picsum.photos/seed/machupicchu/800/500", "Inca citadel in the clouds")-d3 = TextContent("High-altitude Inca citadel — best May–Sep.", "default")-tags3 = TagBlock(["Andes", "Hike", "UNESCO"])-followups = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Show me only beach destinations")-fu2 = FollowUpItem("Turn this into a comparison table")--Example 4 — Form with validation:--root = Card([title, form])-title = TextContent("Contact Us", "large-heavy")-form = Form("contact", btns, [nameField, emailField, msgField])-nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))-emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))-msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))-btns = Buttons([Button("Submit", Action([@ToAssistant("Submit")]), "primary")])--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Card(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Card(children) — children stack vertically automatically. No layout params are needed on Card.-- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.-- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.-- Use ListBlock when presenting a set of options or steps the user can click to select.-- Use SectionBlock to group long responses into collapsible sections — good for reports, FAQs, and structured content.-- Use SectionItem inside SectionBlock: each item needs a unique value id, a trigger (header label), and a content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must use the same component structure in the same order — e.g. all slides: [title, image, description, tags].-- For image carousels, always use real accessible URLs like https://picsum.photos/seed/KEYWORD/800/500. Never hallucinate or invent image URLs.-- For forms, define one FormControl reference per field so controls can stream progressively.-- For forms, always provide the second Form argument with Buttons(...) actions: Form(name, buttons, fields).-- Never nest Form inside Form.diff --git a/examples/material-ui-chat/.gitignore b/examples/material-ui-chat/.gitignoredeleted file mode 100644index 09d505398..000000000--- a/examples/material-ui-chat/.gitignore+++ /dev/null@@ -1,5 +0,0 @@-.next-node_modules-.env-.env.local-*.tsbuildinfodiff --git a/examples/material-ui-chat/src/generated/system-prompt.txt b/examples/material-ui-chat/src/generated/system-prompt.txtdeleted file mode 100644index 0fc1dffd3..000000000--- a/examples/material-ui-chat/src/generated/system-prompt.txt+++ /dev/null@@ -1,176 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.--### Content-CardHeader(title: string, description?: string) — Title/description header block for a Card.-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block with optional size. size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-Heading(text: string, level?: "h1" | "h2" | "h3" | "h4") — Section heading. level: "h1" | "h2" | "h3" | "h4".-Alert(title: string, description: string, variant?: "default" | "destructive" | "info" | "success" | "warning") — Alert banner with icon, title, and description. variant: "default" | "destructive" | "info" | "success" | "warning".-List(items: ListItem[], dense?: boolean) — Vertical list of items. items: ListItem[]. dense for tighter spacing.-ListItem(primary: string, secondary?: string) — Item in a List. primary text with optional secondary text.-Separator(orientation?: "horizontal" | "vertical") — Horizontal or vertical rule. orientation: "horizontal" | "vertical".-Progress(value: number, label?: string) — Progress bar showing completion percentage (0-100). Optional label.-- Use CardHeader for the main section title. Use Heading for sub-section titles.-- TextContent size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-- List takes ListItem[] — each ListItem has primary text and optional secondary text.--### Tables-Table(columns: Col[], rows: any[][]) — Data table. columns: Col[] with header/type, rows: 2D array of values.-Col(header: string, type?: "string" | "number" | "boolean") — Column definition for Table — header label and optional type.--### Charts-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bar chart. Use for comparing values across categories.-LineChart(labels: string[], series: Series[], xLabel?: string, yLabel?: string) — Line chart for trends over categories.-PieChart(slices: Slice[], donut?: boolean) — Pie or donut chart. slices: Slice[], donut: boolean for a ring chart.-Series(category: string, values: number[]) — One named data series with values matching labels.-Slice(category: string, value: number) — A single slice in a PieChart.-- BarChart/LineChart take labels (string[]) and series (Series[]). Each Series has a category name and a values array aligned to labels.-- PieChart takes slices (Slice[]). Set donut: true for a ring chart.--### Forms-Form(name: string, buttons: Buttons, fields?: FormControl[]) — Form container with fields and explicit action buttons. fields: FormControl[], buttons: Buttons.-FormControl(label: string, field: any) — Wraps a form field with a label and error display.-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Text input field. type: "text" | "email" | "password" | "number" | "url". rules for validation.-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Dropdown select. items: SelectItem[], placeholder, rules for validation.-SelectItem(value: string, label: string) — Option for Select dropdown.-SwitchGroup(name: string, items: SwitchItem[]) — Group of toggle switches. items: SwitchItem[].-SwitchItem(value: string, label: string) — Toggle option in a SwitchGroup.-- Define EACH FormControl as its own reference — do NOT inline all controls in one array.-- NEVER nest Form inside Form.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the second Form argument.-- rules is an optional object: { required: true, email: true, minLength: 8, maxLength: 100 }.-- The renderer shows error messages automatically — do NOT generate error text in the UI.--### Buttons-Button(label: string, action?: {type: "open_url", url: string} | {type: "continue_conversation", context?: string} | {type: string, params?: Record<string, any>}, variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link", size?: "default" | "xs" | "sm" | "lg" | "icon") — Clickable button. variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link". size: "default" | "xs" | "sm" | "lg" | "icon". action: { type: "continue_conversation" | "open_url", url? }.-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" | "column".--### Layout-Tabs(items: TabItem[], defaultValue?: string) — Tabbed content. items: TabItem[]. defaultValue: initially active tab.-TabItem(value: string, trigger: string, content: (CardHeader | TextContent | Heading | Alert | List | Separator | Progress | Table | BarChart | LineChart | PieChart | Form | Buttons)[]) — Tab panel. value: unique id, trigger: tab label, content: children.-Accordion(items: AccordionItem[], type?: "single" | "multiple") — Collapsible sections. type: "single" | "multiple". items: AccordionItem[].-AccordionItem(value: string, trigger: string, content: (CardHeader | TextContent | Heading | Alert | List | Separator | Progress | Table | BarChart | LineChart | PieChart | Form | Buttons)[]) — Collapsible item inside Accordion. value: unique id, trigger: header text.-- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.-- Accordion type: "single" | "multiple". items: AccordionItem[].--### Follow-ups-FollowUpBlock(items: FollowUpItem[]) — List of follow-up suggestion chips at the end of a response.-FollowUpItem(text: string) — Clickable follow-up suggestion — sends text as a user message when clicked.-- Use FollowUpBlock with FollowUpItem references at the END of a response to suggest next actions.-- Clicking a FollowUpItem sends its text to the LLM as a user message.--### Other-Card(children: (CardHeader | TextContent | Heading | Alert | List | Separator | Progress | Table | BarChart | LineChart | PieChart | Form | Buttons | FollowUpBlock | Tabs | Accordion)[]) — Vertical container for all content in a chat response. Children stack top to bottom automatically.--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Table with follow-ups:-root = Card([title, tbl, followUps])-title = CardHeader("Top Languages", "By number of active developers")-tbl = Table(cols, rows)-cols = [Col("Language", "string"), Col("Users (M)", "number"), Col("Year", "number")]-rows = [["Python", 15.7, 1991], ["JavaScript", 14.2, 1995], ["Java", 12.1, 1995]]-followUps = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Tell me more about Python")-fu2 = FollowUpItem("Show me a JavaScript comparison")--Example 2 — Form with validation:-root = Card([title, form])-title = CardHeader("Contact Us")-form = Form("contact", btns, [nameField, emailField, planField])-nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))-emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))-planField = FormControl("Plan", Select("plan", [opt1, opt2], "Choose a plan", { required: true }))-opt1 = SelectItem("free", "Free")-opt2 = SelectItem("pro", "Pro")-btns = Buttons([Button("Submit", { type: "continue_conversation" }, "default")])--Example 3 — Alert variants and a list:-root = Card([info, warning, items])-info = Alert("Update available", "A new version is ready to install.", "info")-warning = Alert("Disk almost full", "Less than 10% storage remaining.", "warning")-items = List([i1, i2, i3])-i1 = ListItem("Back up your data", "Recommended before updating")-i2 = ListItem("Free up space")-i3 = ListItem("Install the update")--Example 4 — Charts inside Tabs:-root = Card([header, tabs, followUps])-header = CardHeader("Sales Dashboard", "Compare metrics across periods")-tabs = Tabs([tab1, tab2, tab3])-tab1 = TabItem("revenue", "Revenue", [revChart])-tab2 = TabItem("users", "Users", [usersChart])-tab3 = TabItem("breakdown", "Breakdown", [pieChart])-revChart = BarChart(["Jan", "Feb", "Mar", "Apr"], [Series("Revenue", [45, 52, 61, 58])], "grouped", "Month", "USD (K)")-usersChart = LineChart(["Jan", "Feb", "Mar", "Apr"], [Series("Active", [1200, 1350, 1500, 1420]), Series("New", [300, 420, 380, 450])], "Month", "Users")-pieChart = PieChart([Slice("Desktop", 62), Slice("Mobile", 31), Slice("Tablet", 7)], true)-followUps = FollowUpBlock([FollowUpItem("Add Q2 data"), FollowUpItem("Export as table")])--Example 5 — Accordion with progress:-root = Card([header, acc])-header = CardHeader("Project Status", "Sprint 14")-acc = Accordion([a1, a2, a3], "single")-a1 = AccordionItem("done", "Done", [doneText, doneProgress])-doneText = TextContent("All planned API work is complete.")-doneProgress = Progress(100, "API")-a2 = AccordionItem("progress", "In progress", [Progress(60, "Dashboard UI")])-a3 = AccordionItem("blocked", "Blocked", [Alert("Waiting on design", "Final mockups pending review.", "warning")])--Example 6 — Buttons with variants:-root = Card([title, btns])-title = CardHeader("Choose an action")-btns = Buttons([b1, b2, b3])-b1 = Button("Confirm", { type: "continue_conversation" }, "default")-b2 = Button("Learn more", { type: "open_url", url: "https://mui.com" }, "outline")-b3 = Button("Delete", { type: "continue_conversation" }, "destructive")--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Card(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Card(children) — children stack vertically automatically.-- Card is the only top-level layout container. Use Tabs to switch between sections, Accordion for collapsible sections.-- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.-- For forms, define one FormControl reference per field so controls can stream progressively.-- For forms, always provide the second Form argument with Buttons(...) actions.-- Never nest Form inside Form.-- Button variant mapping — "default" (filled primary), "secondary" (filled secondary), "outline" (bordered), "ghost" (transparent text), "link" (underlined text), "destructive" (red). Pick the variant that fits the action.-- Button size mapping — "default" (standard), "xs"/"sm" (small), "lg" (large), "icon" (square).-- Alert variants — "default"/"info" (blue), "success" (green), "warning" (amber), "destructive" (red error). Always pick the variant that matches the message tone.-- Use CardHeader for the main section title and Heading for sub-section titles.-- Use Table for tabular data and List for simple itemized content.-- Use Progress for completion indicators (value is a 0-100 percentage).-- Use BarChart/LineChart for trends and comparisons, PieChart (donut: true for a ring) for proportions. Series values must align with the labels array.-- When the user asks for a specific component, generate a realistic, fully-populated example of it with sample data.diff --git a/examples/mastra-chat/.gitignore b/examples/miscellaneous/handsontable/.gitignoresimilarity index 89%rename from examples/mastra-chat/.gitignorerename to examples/miscellaneous/handsontable/.gitignoreindex 5ef6a5207..95d89df9e 100644--- a/examples/mastra-chat/.gitignore+++ b/examples/miscellaneous/handsontable/.gitignore@@ -39,3 +39,6 @@ yarn-error.log*# typescript*.tsbuildinfonext-env.d.ts++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/hands-on-table-chat/README.md b/examples/miscellaneous/handsontable/README.mdsimilarity index 99%rename from examples/hands-on-table-chat/README.mdrename to examples/miscellaneous/handsontable/README.mdindex 20c137b83..04cc80bae 100644--- a/examples/hands-on-table-chat/README.md+++ b/examples/miscellaneous/handsontable/README.md@@ -67,7 +67,7 @@ An AI-powered spreadsheet app that pairs a full-featured [Handsontable](https://### Setup```bash-cd examples/hands-on-table-chat+cd examples/miscellaneous/handsontable# Copy the environment template and add your API keycp env.example .env@@ -147,3 +147,9 @@ hands-on-table-chat/- [OpenUI Documentation](https://openui.com/docs)- [Handsontable Documentation](https://handsontable.com/docs)- [OpenUI GitHub](https://github.com/thesysdev/openui)++## Verify++```bash+pnpm verify+```diff --git a/examples/hands-on-table-chat/env.example b/examples/miscellaneous/handsontable/env.examplesimilarity index 100%rename from examples/hands-on-table-chat/env.examplerename to examples/miscellaneous/handsontable/env.examplediff --git a/examples/harnesses/pi-agent-harness/eslint.config.mjs b/examples/miscellaneous/handsontable/eslint.config.mjssimilarity index 100%rename from examples/harnesses/pi-agent-harness/eslint.config.mjsrename to examples/miscellaneous/handsontable/eslint.config.mjsdiff --git a/examples/hands-on-table-chat/next.config.ts b/examples/miscellaneous/handsontable/next.config.tssimilarity index 100%rename from examples/hands-on-table-chat/next.config.tsrename to examples/miscellaneous/handsontable/next.config.tsdiff --git a/examples/hands-on-table-chat/package.json b/examples/miscellaneous/handsontable/package.jsonsimilarity index 70%rename from examples/hands-on-table-chat/package.jsonrename to examples/miscellaneous/handsontable/package.jsonindex 0bc6c1f69..facc4ad41 100644--- a/examples/hands-on-table-chat/package.json+++ b/examples/miscellaneous/handsontable/package.json@@ -1,10 +1,16 @@{- "name": "hands-on-openui",+ "name": "@openuidev/example-handsontable","version": "0.1.0","private": true,"scripts": {+ "generate": "pnpm --filter @openuidev/cli build && node ../../../packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate","dev": "next dev",+ "prebuild": "pnpm generate","build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/mastra-chat/postcss.config.mjs b/examples/miscellaneous/handsontable/postcss.config.mjssimilarity index 100%rename from examples/mastra-chat/postcss.config.mjsrename to examples/miscellaneous/handsontable/postcss.config.mjsdiff --git a/examples/hands-on-table-chat/public/file.svg b/examples/miscellaneous/handsontable/public/file.svgsimilarity index 100%rename from examples/hands-on-table-chat/public/file.svgrename to examples/miscellaneous/handsontable/public/file.svgdiff --git a/examples/hands-on-table-chat/public/globe.svg b/examples/miscellaneous/handsontable/public/globe.svgsimilarity index 100%rename from examples/hands-on-table-chat/public/globe.svgrename to examples/miscellaneous/handsontable/public/globe.svgdiff --git a/examples/hands-on-table-chat/public/next.svg b/examples/miscellaneous/handsontable/public/next.svgsimilarity index 100%rename from examples/hands-on-table-chat/public/next.svgrename to examples/miscellaneous/handsontable/public/next.svgdiff --git a/examples/hands-on-table-chat/public/vercel.svg b/examples/miscellaneous/handsontable/public/vercel.svgsimilarity index 100%rename from examples/hands-on-table-chat/public/vercel.svgrename to examples/miscellaneous/handsontable/public/vercel.svgdiff --git a/examples/hands-on-table-chat/public/window.svg b/examples/miscellaneous/handsontable/public/window.svgsimilarity index 100%rename from examples/hands-on-table-chat/public/window.svgrename to examples/miscellaneous/handsontable/public/window.svgdiff --git a/examples/hands-on-table-chat/src/app/PersistentSpreadsheet.tsx b/examples/miscellaneous/handsontable/src/app/PersistentSpreadsheet.tsxsimilarity index 100%rename from examples/hands-on-table-chat/src/app/PersistentSpreadsheet.tsxrename to examples/miscellaneous/handsontable/src/app/PersistentSpreadsheet.tsxdiff --git a/examples/hands-on-table-chat/src/app/TableContext.tsx b/examples/miscellaneous/handsontable/src/app/TableContext.tsxsimilarity index 100%rename from examples/hands-on-table-chat/src/app/TableContext.tsxrename to examples/miscellaneous/handsontable/src/app/TableContext.tsxdiff --git a/examples/hands-on-table-chat/src/app/api/chat/messageStore.ts b/examples/miscellaneous/handsontable/src/app/api/chat/messageStore.tssimilarity index 100%rename from examples/hands-on-table-chat/src/app/api/chat/messageStore.tsrename to examples/miscellaneous/handsontable/src/app/api/chat/messageStore.tsdiff --git a/examples/hands-on-table-chat/src/app/api/chat/route.ts b/examples/miscellaneous/handsontable/src/app/api/chat/route.tssimilarity index 100%rename from examples/hands-on-table-chat/src/app/api/chat/route.tsrename to examples/miscellaneous/handsontable/src/app/api/chat/route.tsdiff --git a/examples/hands-on-table-chat/src/app/api/chat/tableStore.ts b/examples/miscellaneous/handsontable/src/app/api/chat/tableStore.tssimilarity index 100%rename from examples/hands-on-table-chat/src/app/api/chat/tableStore.tsrename to examples/miscellaneous/handsontable/src/app/api/chat/tableStore.tsdiff --git a/examples/hands-on-table-chat/src/app/api/chat/tools.ts b/examples/miscellaneous/handsontable/src/app/api/chat/tools.tssimilarity index 100%rename from examples/hands-on-table-chat/src/app/api/chat/tools.tsrename to examples/miscellaneous/handsontable/src/app/api/chat/tools.tsdiff --git a/examples/hands-on-table-chat/src/app/api/table/route.ts b/examples/miscellaneous/handsontable/src/app/api/table/route.tssimilarity index 100%rename from examples/hands-on-table-chat/src/app/api/table/route.tsrename to examples/miscellaneous/handsontable/src/app/api/table/route.tsdiff --git a/examples/hands-on-table-chat/src/app/favicon.ico b/examples/miscellaneous/handsontable/src/app/favicon.icosimilarity index 100%rename from examples/hands-on-table-chat/src/app/favicon.icorename to examples/miscellaneous/handsontable/src/app/favicon.icodiff --git a/examples/hands-on-table-chat/src/app/globals.css b/examples/miscellaneous/handsontable/src/app/globals.csssimilarity index 100%rename from examples/hands-on-table-chat/src/app/globals.cssrename to examples/miscellaneous/handsontable/src/app/globals.cssdiff --git a/examples/hands-on-table-chat/src/app/layout.tsx b/examples/miscellaneous/handsontable/src/app/layout.tsxsimilarity index 100%rename from examples/hands-on-table-chat/src/app/layout.tsxrename to examples/miscellaneous/handsontable/src/app/layout.tsxdiff --git a/examples/hands-on-table-chat/src/app/page.tsx b/examples/miscellaneous/handsontable/src/app/page.tsxsimilarity index 100%rename from examples/hands-on-table-chat/src/app/page.tsxrename to examples/miscellaneous/handsontable/src/app/page.tsxdiff --git a/examples/hands-on-table-chat/src/app/useSpreadsheetSync.ts b/examples/miscellaneous/handsontable/src/app/useSpreadsheetSync.tssimilarity index 100%rename from examples/hands-on-table-chat/src/app/useSpreadsheetSync.tsrename to examples/miscellaneous/handsontable/src/app/useSpreadsheetSync.tsdiff --git a/examples/hands-on-table-chat/src/lib/spreadsheet-library.tsx b/examples/miscellaneous/handsontable/src/lib/spreadsheet-library.tsxsimilarity index 100%rename from examples/hands-on-table-chat/src/lib/spreadsheet-library.tsxrename to examples/miscellaneous/handsontable/src/lib/spreadsheet-library.tsxdiff --git a/examples/miscellaneous/handsontable/src/library.ts b/examples/miscellaneous/handsontable/src/library.tsnew file mode 100644index 000000000..06a5581e2--- /dev/null+++ b/examples/miscellaneous/handsontable/src/library.ts@@ -0,0 +1,5 @@+/** Entry point used by the OpenUI CLI to generate the system prompt. */+export {+ spreadsheetLibrary as library,+ promptOptions,+} from "./lib/spreadsheet-library";diff --git a/examples/langchain-chat/tsconfig.json b/examples/miscellaneous/handsontable/tsconfig.jsonsimilarity index 100%rename from examples/langchain-chat/tsconfig.jsonrename to examples/miscellaneous/handsontable/tsconfig.jsondiff --git a/examples/html-artifact/.dockerignore b/examples/miscellaneous/html-artifact/.dockerignoresimilarity index 100%rename from examples/html-artifact/.dockerignorerename to examples/miscellaneous/html-artifact/.dockerignorediff --git a/examples/hands-on-table-chat/.gitignore b/examples/miscellaneous/html-artifact/.gitignoresimilarity index 89%rename from examples/hands-on-table-chat/.gitignorerename to examples/miscellaneous/html-artifact/.gitignoreindex 5ef6a5207..95d89df9e 100644--- a/examples/hands-on-table-chat/.gitignore+++ b/examples/miscellaneous/html-artifact/.gitignore@@ -39,3 +39,6 @@ yarn-error.log*# typescript*.tsbuildinfonext-env.d.ts++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/html-artifact/README.md b/examples/miscellaneous/html-artifact/README.mdsimilarity index 97%rename from examples/html-artifact/README.mdrename to examples/miscellaneous/html-artifact/README.mdindex f1d770cf0..e51b22b79 100644--- a/examples/html-artifact/README.md+++ b/examples/miscellaneous/html-artifact/README.md@@ -41,3 +41,9 @@ To learn more about OpenUI, take a look at the following resources:- [OpenUI Documentation](https://openui.com/docs) - learn about OpenUI features and API.- [OpenUI GitHub repository](https://github.com/thesysdev/openui) - your feedback and contributions are welcome!++## Verify++```bash+pnpm verify+```diff --git a/examples/html-artifact/eslint.config.mjs b/examples/miscellaneous/html-artifact/eslint.config.mjssimilarity index 100%rename from examples/html-artifact/eslint.config.mjsrename to examples/miscellaneous/html-artifact/eslint.config.mjsdiff --git a/examples/langchain-chat/next.config.ts b/examples/miscellaneous/html-artifact/next.config.tssimilarity index 100%rename from examples/langchain-chat/next.config.tsrename to examples/miscellaneous/html-artifact/next.config.tsdiff --git a/examples/html-artifact/package.json b/examples/miscellaneous/html-artifact/package.jsonsimilarity index 64%rename from examples/html-artifact/package.jsonrename to examples/miscellaneous/html-artifact/package.jsonindex 047001e70..ec3ee5915 100644--- a/examples/html-artifact/package.json+++ b/examples/miscellaneous/html-artifact/package.json@@ -1,11 +1,16 @@{- "name": "html-artifact",+ "name": "@openuidev/example-html-artifact","version": "0.1.0","private": true,"scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && pnpm exec openui generate src/library.tsx --out src/generated/system-prompt.txt",- "dev": "pnpm generate:prompt && next dev",+ "generate": "pnpm --filter @openuidev/cli build && node ../../../packages/openui-cli/dist/index.js generate src/library.tsx --out src/generated/system-prompt.txt",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate",+ "dev": "next dev",+ "prebuild": "pnpm generate","build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/multi-agent-chat/postcss.config.mjs b/examples/miscellaneous/html-artifact/postcss.config.mjssimilarity index 100%rename from examples/multi-agent-chat/postcss.config.mjsrename to examples/miscellaneous/html-artifact/postcss.config.mjsdiff --git a/examples/html-artifact/src/app/api/chat/route.ts b/examples/miscellaneous/html-artifact/src/app/api/chat/route.tssimilarity index 100%rename from examples/html-artifact/src/app/api/chat/route.tsrename to examples/miscellaneous/html-artifact/src/app/api/chat/route.tsdiff --git a/examples/html-artifact/src/app/globals.css b/examples/miscellaneous/html-artifact/src/app/globals.csssimilarity index 100%rename from examples/html-artifact/src/app/globals.cssrename to examples/miscellaneous/html-artifact/src/app/globals.cssdiff --git a/examples/html-artifact/src/app/layout.tsx b/examples/miscellaneous/html-artifact/src/app/layout.tsxsimilarity index 100%rename from examples/html-artifact/src/app/layout.tsxrename to examples/miscellaneous/html-artifact/src/app/layout.tsxdiff --git a/examples/html-artifact/src/app/page.tsx b/examples/miscellaneous/html-artifact/src/app/page.tsxsimilarity index 100%rename from examples/html-artifact/src/app/page.tsxrename to examples/miscellaneous/html-artifact/src/app/page.tsxdiff --git a/examples/mastra-chat/src/hooks/use-system-theme.tsx b/examples/miscellaneous/html-artifact/src/hooks/use-system-theme.tsxsimilarity index 100%rename from examples/mastra-chat/src/hooks/use-system-theme.tsxrename to examples/miscellaneous/html-artifact/src/hooks/use-system-theme.tsxdiff --git a/examples/html-artifact/src/html-artifact.tsx b/examples/miscellaneous/html-artifact/src/html-artifact.tsxsimilarity index 100%rename from examples/html-artifact/src/html-artifact.tsxrename to examples/miscellaneous/html-artifact/src/html-artifact.tsxdiff --git a/examples/html-artifact/src/library.tsx b/examples/miscellaneous/html-artifact/src/library.tsxsimilarity index 100%rename from examples/html-artifact/src/library.tsxrename to examples/miscellaneous/html-artifact/src/library.tsxdiff --git a/examples/mastra-chat/tsconfig.json b/examples/miscellaneous/html-artifact/tsconfig.jsonsimilarity index 100%rename from examples/mastra-chat/tsconfig.jsonrename to examples/miscellaneous/html-artifact/tsconfig.jsondiff --git a/examples/react-email/.env.example b/examples/miscellaneous/react-email/.env.examplesimilarity index 100%rename from examples/react-email/.env.examplerename to examples/miscellaneous/react-email/.env.examplediff --git a/examples/miscellaneous/react-email/.gitignore b/examples/miscellaneous/react-email/.gitignorenew file mode 100644index 000000000..0c22a7440--- /dev/null+++ b/examples/miscellaneous/react-email/.gitignore@@ -0,0 +1,8 @@+node_modules/+.next/+.env*+*.tsbuildinfo+next-env.d.ts++# generated OpenUI prompt and schema+/src/generated/diff --git a/examples/react-email/README.md b/examples/miscellaneous/react-email/README.mdsimilarity index 95%rename from examples/react-email/README.mdrename to examples/miscellaneous/react-email/README.mdindex e7f5a2856..9e51a42c2 100644--- a/examples/react-email/README.md+++ b/examples/miscellaneous/react-email/README.md@@ -33,10 +33,10 @@ pnpm install2. Copy `.env.example` to `.env.local` and add your OpenAI API key:```bash-cp examples/react-email/.env.example examples/react-email/.env.local+cp examples/miscellaneous/react-email/.env.example examples/miscellaneous/react-email/.env.local```-Edit `examples/react-email/.env.local`:+Edit `examples/miscellaneous/react-email/.env.local`:```OPENAI_API_KEY=sk-your-api-key-here@@ -45,7 +45,7 @@ OPENAI_API_KEY=sk-your-api-key-here3. Start the development server:```bash-cd examples/react-email+cd examples/miscellaneous/react-emailpnpm dev```@@ -122,3 +122,9 @@ The `@openuidev/react-email` package exports:- **`emailAdditionalRules`** — 40 email design rulesIndividual components are internal to the library — consumers only need `emailLibrary`.++## Verify++```bash+pnpm verify+```diff --git a/examples/react-email/eslint.config.mjs b/examples/miscellaneous/react-email/eslint.config.mjssimilarity index 100%rename from examples/react-email/eslint.config.mjsrename to examples/miscellaneous/react-email/eslint.config.mjsdiff --git a/examples/react-email/next-env.d.ts b/examples/miscellaneous/react-email/next-env.d.tssimilarity index 100%rename from examples/react-email/next-env.d.tsrename to examples/miscellaneous/react-email/next-env.d.tsdiff --git a/examples/react-email/next.config.ts b/examples/miscellaneous/react-email/next.config.tssimilarity index 100%rename from examples/react-email/next.config.tsrename to examples/miscellaneous/react-email/next.config.tsdiff --git a/examples/react-email/package.json b/examples/miscellaneous/react-email/package.jsonsimilarity index 58%rename from examples/react-email/package.jsonrename to examples/miscellaneous/react-email/package.jsonindex 9281e8e5d..ab25f64be 100644--- a/examples/react-email/package.json+++ b/examples/miscellaneous/react-email/package.json@@ -1,11 +1,16 @@{- "name": "react-email-example",+ "name": "@openuidev/example-react-email","version": "0.1.0","private": true,"scripts": {- "generate:prompt": "node --import tsx -e \"import{emailLibrary,emailPromptOptions}from'@openuidev/react-email';import{writeFileSync,mkdirSync}from'fs';mkdirSync('src/generated',{recursive:true});writeFileSync('src/generated/system-prompt.txt',emailLibrary.prompt(emailPromptOptions));console.log('Prompt generated')\"",- "dev": "pnpm generate:prompt && next dev",- "build": "pnpm generate:prompt && next build",+ "generate": "node --import tsx -e \"import{emailLibrary,emailPromptOptions}from'@openuidev/react-email';import{writeFileSync,mkdirSync}from'fs';mkdirSync('src/generated',{recursive:true});writeFileSync('src/generated/system-prompt.txt',emailLibrary.prompt(emailPromptOptions));console.log('Prompt generated')\"",+ "generate:prompt": "pnpm generate",+ "predev": "pnpm generate",+ "dev": "next dev",+ "prebuild": "pnpm generate",+ "build": "next build",+ "preverify": "pnpm generate",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/openui-chat/postcss.config.mjs b/examples/miscellaneous/react-email/postcss.config.mjssimilarity index 100%rename from examples/openui-chat/postcss.config.mjsrename to examples/miscellaneous/react-email/postcss.config.mjsdiff --git a/examples/react-email/src/app/api/chat/route.ts b/examples/miscellaneous/react-email/src/app/api/chat/route.tssimilarity index 100%rename from examples/react-email/src/app/api/chat/route.tsrename to examples/miscellaneous/react-email/src/app/api/chat/route.tsdiff --git a/examples/react-email/src/app/globals.css b/examples/miscellaneous/react-email/src/app/globals.csssimilarity index 100%rename from examples/react-email/src/app/globals.cssrename to examples/miscellaneous/react-email/src/app/globals.cssdiff --git a/examples/react-email/src/app/layout.tsx b/examples/miscellaneous/react-email/src/app/layout.tsxsimilarity index 100%rename from examples/react-email/src/app/layout.tsxrename to examples/miscellaneous/react-email/src/app/layout.tsxdiff --git a/examples/react-email/src/app/page.tsx b/examples/miscellaneous/react-email/src/app/page.tsxsimilarity index 100%rename from examples/react-email/src/app/page.tsxrename to examples/miscellaneous/react-email/src/app/page.tsxdiff --git a/examples/react-email/src/components/composePage/index.tsx b/examples/miscellaneous/react-email/src/components/composePage/index.tsxsimilarity index 100%rename from examples/react-email/src/components/composePage/index.tsxrename to examples/miscellaneous/react-email/src/components/composePage/index.tsxdiff --git a/examples/react-email/src/components/composePage/starters.ts b/examples/miscellaneous/react-email/src/components/composePage/starters.tssimilarity index 100%rename from examples/react-email/src/components/composePage/starters.tsrename to examples/miscellaneous/react-email/src/components/composePage/starters.tsdiff --git a/examples/react-email/src/components/emailEditor/htmlPanel.tsx b/examples/miscellaneous/react-email/src/components/emailEditor/htmlPanel.tsxsimilarity index 100%rename from examples/react-email/src/components/emailEditor/htmlPanel.tsxrename to examples/miscellaneous/react-email/src/components/emailEditor/htmlPanel.tsxdiff --git a/examples/react-email/src/components/emailEditor/index.tsx b/examples/miscellaneous/react-email/src/components/emailEditor/index.tsxsimilarity index 100%rename from examples/react-email/src/components/emailEditor/index.tsxrename to examples/miscellaneous/react-email/src/components/emailEditor/index.tsxdiff --git a/examples/react-email/src/components/emailEditor/messageInput.tsx b/examples/miscellaneous/react-email/src/components/emailEditor/messageInput.tsxsimilarity index 100%rename from examples/react-email/src/components/emailEditor/messageInput.tsxrename to examples/miscellaneous/react-email/src/components/emailEditor/messageInput.tsxdiff --git a/examples/react-email/src/components/emailEditor/mobileTabToggle.tsx b/examples/miscellaneous/react-email/src/components/emailEditor/mobileTabToggle.tsxsimilarity index 100%rename from examples/react-email/src/components/emailEditor/mobileTabToggle.tsxrename to examples/miscellaneous/react-email/src/components/emailEditor/mobileTabToggle.tsxdiff --git a/examples/react-email/src/components/emailEditor/previewPanel.tsx b/examples/miscellaneous/react-email/src/components/emailEditor/previewPanel.tsxsimilarity index 100%rename from examples/react-email/src/components/emailEditor/previewPanel.tsxrename to examples/miscellaneous/react-email/src/components/emailEditor/previewPanel.tsxdiff --git a/examples/react-email/src/components/emailEditor/topBar.tsx b/examples/miscellaneous/react-email/src/components/emailEditor/topBar.tsxsimilarity index 100%rename from examples/react-email/src/components/emailEditor/topBar.tsxrename to examples/miscellaneous/react-email/src/components/emailEditor/topBar.tsxdiff --git a/examples/react-email/src/components/loadingDots.tsx b/examples/miscellaneous/react-email/src/components/loadingDots.tsxsimilarity index 100%rename from examples/react-email/src/components/loadingDots.tsxrename to examples/miscellaneous/react-email/src/components/loadingDots.tsxdiff --git a/examples/react-email/src/components/session.ts b/examples/miscellaneous/react-email/src/components/session.tssimilarity index 100%rename from examples/react-email/src/components/session.tsrename to examples/miscellaneous/react-email/src/components/session.tsdiff --git a/examples/react-email/src/hooks/useAutoScroll.ts b/examples/miscellaneous/react-email/src/hooks/useAutoScroll.tssimilarity index 100%rename from examples/react-email/src/hooks/useAutoScroll.tsrename to examples/miscellaneous/react-email/src/hooks/useAutoScroll.tsdiff --git a/examples/react-email/src/hooks/useClipboard.ts b/examples/miscellaneous/react-email/src/hooks/useClipboard.tssimilarity index 100%rename from examples/react-email/src/hooks/useClipboard.tsrename to examples/miscellaneous/react-email/src/hooks/useClipboard.tsdiff --git a/examples/react-email/src/hooks/useEmailRendering.tsx b/examples/miscellaneous/react-email/src/hooks/useEmailRendering.tsxsimilarity index 100%rename from examples/react-email/src/hooks/useEmailRendering.tsxrename to examples/miscellaneous/react-email/src/hooks/useEmailRendering.tsxdiff --git a/examples/react-email/src/hooks/useIsMobile.ts b/examples/miscellaneous/react-email/src/hooks/useIsMobile.tssimilarity index 100%rename from examples/react-email/src/hooks/useIsMobile.tsrename to examples/miscellaneous/react-email/src/hooks/useIsMobile.tsdiff --git a/examples/multi-agent-chat/tsconfig.json b/examples/miscellaneous/react-email/tsconfig.jsonsimilarity index 100%rename from examples/multi-agent-chat/tsconfig.jsonrename to examples/miscellaneous/react-email/tsconfig.jsondiff --git a/examples/supabase-chat/.env.local.example b/examples/miscellaneous/supabase/.env.local.examplesimilarity index 100%rename from examples/supabase-chat/.env.local.examplerename to examples/miscellaneous/supabase/.env.local.examplediff --git a/examples/supabase-chat/.gitignore b/examples/miscellaneous/supabase/.gitignoresimilarity index 100%rename from examples/supabase-chat/.gitignorerename to examples/miscellaneous/supabase/.gitignorediff --git a/examples/supabase-chat/README.md b/examples/miscellaneous/supabase/README.mdsimilarity index 98%rename from examples/supabase-chat/README.mdrename to examples/miscellaneous/supabase/README.mdindex bb6980dde..fd86326e2 100644--- a/examples/supabase-chat/README.md+++ b/examples/miscellaneous/supabase/README.md@@ -75,7 +75,7 @@ From the repository root:```bashpnpm install-pnpm --filter supabase-chat dev+pnpm --filter @openuidev/example-supabase dev```Or from this directory:@@ -145,7 +145,7 @@ A Supabase Realtime channel subscribes to `postgres_changes` on the `threads` ta## Project structure```-examples/supabase-chat/+examples/miscellaneous/supabase/├── .env.local.example├── supabase/│ └── migrations/@@ -188,3 +188,9 @@ examples/supabase-chat/- [Connect Thread History](https://openui.com/docs/chat/persistence) — the persistence API reference this example implements- [OpenUI Chat Quick Start](https://openui.com/docs/chat/quick-start)++## Verify++```bash+pnpm verify+```diff --git a/examples/supabase-chat/eslint.config.mjs b/examples/miscellaneous/supabase/eslint.config.mjssimilarity index 100%rename from examples/supabase-chat/eslint.config.mjsrename to examples/miscellaneous/supabase/eslint.config.mjsdiff --git a/examples/supabase-chat/next.config.ts b/examples/miscellaneous/supabase/next.config.tssimilarity index 100%rename from examples/supabase-chat/next.config.tsrename to examples/miscellaneous/supabase/next.config.tsdiff --git a/examples/supabase-chat/package.json b/examples/miscellaneous/supabase/package.jsonsimilarity index 91%rename from examples/supabase-chat/package.jsonrename to examples/miscellaneous/supabase/package.jsonindex eda336d96..71bd24beb 100644--- a/examples/supabase-chat/package.json+++ b/examples/miscellaneous/supabase/package.json@@ -1,10 +1,11 @@{- "name": "supabase-chat",+ "name": "@openuidev/example-supabase","version": "0.1.0","private": true,"scripts": {"dev": "next dev","build": "next build",+ "verify": "next build","start": "next start","lint": "eslint"},diff --git a/examples/openui-cloud/postcss.config.mjs b/examples/miscellaneous/supabase/postcss.config.mjssimilarity index 100%rename from examples/openui-cloud/postcss.config.mjsrename to examples/miscellaneous/supabase/postcss.config.mjsdiff --git a/examples/supabase-chat/src/app/api/chat/route.ts b/examples/miscellaneous/supabase/src/app/api/chat/route.tssimilarity index 100%rename from examples/supabase-chat/src/app/api/chat/route.tsrename to examples/miscellaneous/supabase/src/app/api/chat/route.tsdiff --git a/examples/supabase-chat/src/app/api/threads/create/route.ts b/examples/miscellaneous/supabase/src/app/api/threads/create/route.tssimilarity index 100%rename from examples/supabase-chat/src/app/api/threads/create/route.tsrename to examples/miscellaneous/supabase/src/app/api/threads/create/route.tsdiff --git a/examples/supabase-chat/src/app/api/threads/delete/[id]/route.ts b/examples/miscellaneous/supabase/src/app/api/threads/delete/[id]/route.tssimilarity index 100%rename from examples/supabase-chat/src/app/api/threads/delete/[id]/route.tsrename to examples/miscellaneous/supabase/src/app/api/threads/delete/[id]/route.tsdiff --git a/examples/supabase-chat/src/app/api/threads/get/[id]/route.ts b/examples/miscellaneous/supabase/src/app/api/threads/get/[id]/route.tssimilarity index 100%rename from examples/supabase-chat/src/app/api/threads/get/[id]/route.tsrename to examples/miscellaneous/supabase/src/app/api/threads/get/[id]/route.tsdiff --git a/examples/supabase-chat/src/app/api/threads/get/route.ts b/examples/miscellaneous/supabase/src/app/api/threads/get/route.tssimilarity index 100%rename from examples/supabase-chat/src/app/api/threads/get/route.tsrename to examples/miscellaneous/supabase/src/app/api/threads/get/route.tsdiff --git a/examples/supabase-chat/src/app/api/threads/update/[id]/route.ts b/examples/miscellaneous/supabase/src/app/api/threads/update/[id]/route.tssimilarity index 100%rename from examples/supabase-chat/src/app/api/threads/update/[id]/route.tsrename to examples/miscellaneous/supabase/src/app/api/threads/update/[id]/route.tsdiff --git a/examples/supabase-chat/src/app/globals.css b/examples/miscellaneous/supabase/src/app/globals.csssimilarity index 100%rename from examples/supabase-chat/src/app/globals.cssrename to examples/miscellaneous/supabase/src/app/globals.cssdiff --git a/examples/supabase-chat/src/app/layout.tsx b/examples/miscellaneous/supabase/src/app/layout.tsxsimilarity index 100%rename from examples/supabase-chat/src/app/layout.tsxrename to examples/miscellaneous/supabase/src/app/layout.tsxdiff --git a/examples/supabase-chat/src/app/page.tsx b/examples/miscellaneous/supabase/src/app/page.tsxsimilarity index 100%rename from examples/supabase-chat/src/app/page.tsxrename to examples/miscellaneous/supabase/src/app/page.tsxdiff --git a/examples/supabase-chat/src/lib/supabase/browser.ts b/examples/miscellaneous/supabase/src/lib/supabase/browser.tssimilarity index 100%rename from examples/supabase-chat/src/lib/supabase/browser.tsrename to examples/miscellaneous/supabase/src/lib/supabase/browser.tsdiff --git a/examples/supabase-chat/src/lib/supabase/server.ts b/examples/miscellaneous/supabase/src/lib/supabase/server.tssimilarity index 100%rename from examples/supabase-chat/src/lib/supabase/server.tsrename to examples/miscellaneous/supabase/src/lib/supabase/server.tsdiff --git a/examples/supabase-chat/src/middleware.ts b/examples/miscellaneous/supabase/src/middleware.tssimilarity index 100%rename from examples/supabase-chat/src/middleware.tsrename to examples/miscellaneous/supabase/src/middleware.tsdiff --git a/examples/supabase-chat/supabase/migrations/20240101000000_create_chat_tables.sql b/examples/miscellaneous/supabase/supabase/migrations/20240101000000_create_chat_tables.sqlsimilarity index 100%rename from examples/supabase-chat/supabase/migrations/20240101000000_create_chat_tables.sqlrename to examples/miscellaneous/supabase/supabase/migrations/20240101000000_create_chat_tables.sqldiff --git a/examples/supabase-chat/tsconfig.json b/examples/miscellaneous/supabase/tsconfig.jsonsimilarity index 100%rename from examples/supabase-chat/tsconfig.jsonrename to examples/miscellaneous/supabase/tsconfig.jsondiff --git a/examples/multi-agent-chat/README.md b/examples/multi-agent-chat/README.mddeleted file mode 100644index d32a7b81d..000000000--- a/examples/multi-agent-chat/README.md+++ /dev/null@@ -1,238 +0,0 @@-# Multi-Agent Chat Example--A multi-agent chatbot built with the [Vercel AI SDK](https://ai-sdk.dev/) and [OpenUI Lang](https://www.openui.com/docs/openui-lang/overview). A main orchestrator agent handles user requests and delegates visual tasks — dashboards, charts, tables, forms — to a specialized **analytics sub-agent** that generates interactive React components via OpenUI in real time.--Features: multi-agent tool delegation, streaming OpenUI rendering, persistent conversation threads (localStorage), collapsible sidebar, and automatic light/dark theme support.-------## How It Works--The main agent receives user messages and decides how to respond. For conversational requests it replies in plain text. For anything visual — a chart, table, form, dashboard — it delegates to the `analytics_subagent` tool.--The analytics sub-agent runs as an **async generator tool** that streams its output progressively:--1. The main agent calls `analytics_subagent` with a task description.-2. The sub-agent calls `streamText` with its own system prompt (generated from the OpenUI component library) and streams back OpenUI Lang markup chunk by chunk.-3. Each chunk is yielded as `{ openuiSpec, complete: false }` until the stream finishes, then a final `{ openuiSpec, complete: true }`.-4. On the client, `<Renderer />` from `@openuidev/react-lang` parses the streamed markup and renders live React components as tokens arrive.--```-Card([- CardHeader(title="Monthly Revenue"),- BarChart(data=[...], title="Jan–Jun 2025")-])-```--The Vercel AI SDK handles the streaming transport on both ends:--- **Backend**: `streamText` calls the LLM, executes tools (including the sub-agent generator), and streams the response via `toUIMessageStreamResponse()`.-- **Frontend**: `useChat` manages message state. `<AssistantMessage />` detects tool parts, and when the `analytics_subagent` output is available, it renders the OpenUI spec through `<Renderer />`.-------## Architecture--```-┌──────────────────────────────┐ ┌──────────────────────────────────────────────┐-│ Browser │ HTTP │ Next.js API Route (/api/chat) │-│ │──────►│ │-│ • useChat manages messages │ │ ┌──────────────────────────────────────┐ │-│ • AssistantMessage detects │◄──────│ │ Main Orchestrator Agent │ │-│ tool parts in the stream │stream │ │ • Receives user messages │ │-│ • <Renderer /> parses │ │ │ • Replies in plain text OR │ │-│ OpenUI from sub-agent │ │ │ • Delegates to tools: │ │-│ • ToolCallIndicator shows │ │ │ ┌──────────────────────────────┐ │ │-│ tool execution status │ │ │ │ analytics_subagent(generator)│ │ │-│ • Sidebar with thread │ │ │ │ • Streams OpenUI Lang markup │ │ │-│ history │ │ │ │ • Uses own LLM call + system │ │ │-│ │ │ │ │ prompt from component lib │ │ │-│ │ │ │ ├──────────────────────────────┤ │ │-│ │ │ │ │ get_weather (mock) │ │ │-│ │ │ │ │ get_stock_price (mock) │ │ │-│ │ │ │ │ search_web (mock) │ │ │-│ │ │ │ └──────────────────────────────┘ │ │-│ │ │ └──────────────────────────────────────┘ │-└──────────────────────────────┘ └──────────────────────────────────────────────┘-```--### Request / Response Flow--1. User types a message. `useChat` sends `POST /api/chat` with the full conversation history.-2. The API route converts `UIMessage[]` to model messages and calls `streamText` with the orchestrator system prompt, tools, and a max of 5 tool-call steps.-3. The main agent decides whether to respond directly or call a tool.-4. For visual requests, it calls `analytics_subagent` with a detailed task description.-5. The sub-agent streams OpenUI Lang markup via an async generator. Each yielded chunk flows through the Vercel AI SDK's tool-output streaming.-6. On the client, `<AssistantMessage />` detects the `analytics_subagent` tool part and passes the `openuiSpec` from its output to `<Renderer />`.-7. `<Renderer />` progressively renders React components (cards, charts, tables, forms) as tokens arrive.-8. A `<ToolCallIndicator />` shows a loading spinner while the sub-agent is running and a checkmark when done.-9. When the stream ends, messages are persisted to localStorage via `useThreads`.-------## Project Structure--```-multi-agent-chat/-├── src/-│ ├── app/-│ │ ├── api/chat/route.ts # Orchestrator endpoint — routes to tools/sub-agents-│ │ ├── page.tsx # Main chat page — wires useChat + components-│ │ └── layout.tsx # Root layout-│ ├── components/-│ │ ├── assistant-message.tsx # Detects tool parts, renders OpenUI for sub-agent output-│ │ ├── user-message.tsx # Renders user messages-│ │ ├── chat-input.tsx # Textarea input with send / stop buttons-│ │ ├── chat-header.tsx # Top bar with sidebar toggle-│ │ ├── sidebar.tsx # Thread list with new/switch/delete-│ │ ├── sidebar-toggle.tsx # Mobile sidebar toggle button-│ │ ├── conversation-starters.tsx # Suggested prompts on empty chat-│ │ ├── thinking-indicator.tsx # Animated dots while model is thinking-│ │ └── tool-call-indicator.tsx # Shows tool execution status (spinner → checkmark)-│ ├── hooks/-│ │ ├── use-system-theme.tsx # Detects system light/dark preference-│ │ └── use-threads.ts # Thread CRUD + localStorage persistence-│ ├── lib/-│ │ ├── tools.ts # Tool definitions: analytics sub-agent + 3 mock tools-│ │ └── thread-store.ts # Read/write threads to localStorage-│ ├── library.ts # OpenUI library export for prompt generation-│ └── generated/-│ └── system-prompt.txt # Auto-generated from component library — do not edit-└── package.json-```-------## Getting Started--### Prerequisites--- Node.js 18+-- pnpm-- An OpenAI API key--### 1. Install dependencies--```bash-cd examples/multi-agent-chat-pnpm install-```--### 2. Configure environment--```bash-cp .env.example .env.local-```--Add your key to `.env.local`:--```-OPENAI_API_KEY=sk-...-```--### 3. Start the dev server--```bash-pnpm dev-```--This runs `generate:prompt` first (compiles `src/library.ts` → `src/generated/system-prompt.txt`) then starts the Next.js dev server at `http://localhost:3000`.-------## What's in This Example--### The Orchestrator (`src/app/api/chat/route.ts`)--The API route uses `streamText` with the following configuration:---| Argument | Value | Purpose |-| ---------- | -------------------- | -------------------------------------------------------------------- |-| `model` | `openai("gpt-5.5")` | The LLM for the main orchestrator |-| `system` | orchestrator prompt | Instructs the agent to delegate visual tasks to `analytics_subagent` |-| `messages` | conversation history | The full thread from the client |-| `tools` | 5 tool definitions | Sub-agent + 4 helper tools |-| `stopWhen` | `stepCountIs(5)` | Max 5 tool-call steps per turn |---The orchestrator's system prompt is explicit: any request involving charts, dashboards, tables, forms, or visual components must be routed to `analytics_subagent` immediately without preamble.--### The Analytics Sub-Agent (`src/lib/tools.ts`)--The star of the example. Defined as an async generator tool (`execute: async function*`), it:--1. Builds a prompt from the user's task description with strict output constraints (OpenUI only, no HTML wrappers).-2. Calls `streamText` with the auto-generated system prompt that describes every available OpenUI component.-3. Yields partial results as the LLM streams: `{ openuiSpec: "...", complete: false }`.-4. Yields a final result with `complete: true` when the stream ends.-5. Runs `sanitizeOpenUiSpec()` on each chunk to strip markdown fences and HTML wrappers the model may add.--This streaming approach means the user sees UI components building up live, not a blank screen followed by a sudden render.--### Frontend Rendering (`src/components/assistant-message.tsx`)--`<AssistantMessage />` processes each message's parts:--1. **Text parts** are concatenated and rendered as plain text.-2. **Tool parts** are detected by checking `part.type.startsWith("tool-")`.-3. For each tool part, a `<ToolCallIndicator />` shows the tool name with a spinner (running) or checkmark (done).-4. When the `analytics_subagent` tool reaches `state === "output-available"`, the `openuiSpec` from its output is passed to `<Renderer />` which renders the live OpenUI components.--### System Prompt Generation--`src/library.ts` re-exports `openuiChatLibrary` and `openuiChatPromptOptions` from `@openuidev/react-ui/genui-lib`. The OpenUI CLI reads this file and generates `src/generated/system-prompt.txt` — a text file containing every component's name, prop schema, description, and examples. This becomes the analytics sub-agent's system prompt.--Re-run generation any time you change component definitions:--```bash-pnpm generate:prompt-```--### Thread Management (`src/hooks/use-threads.ts`)--Conversations are organized into threads stored in localStorage. Each thread has an `id`, `title` (derived from the first user message), `messages`, and timestamps.---| Function | Description |-| --------------------------- | -------------------------------------------------------------- |-| `createThread()` | Creates a new empty thread and makes it active |-| `switchThread(id)` | Loads a previous thread's messages into `useChat` |-| `deleteThread(id)` | Removes a thread; switches to a new one if it was active |-| `persistMessages(messages)` | Saves messages to localStorage (without triggering re-renders) |-| `refreshThreads()` | Reloads the thread list from localStorage into React state |---### Helper Tools (`src/lib/tools.ts`)--Three mock tools with simulated network delays that return realistic data:---| Tool | Input | Delay | Description |-| ----------------- | ---------------------- | ------ | ------------------------------------------------------- |-| `get_weather` | `location` (city name) | 800ms | Temperature, conditions, humidity, wind, 2-day forecast |-| `get_stock_price` | `symbol` (ticker) | 600ms | Price, change, volume, day range |-| `search_web` | `query` (search term) | 1000ms | Returns 3 mock search results |--------## Scripts---| Script | Description |-| ---------------------- | -------------------------------------------------------------- |-| `pnpm dev` | Generate system prompt, then start the Next.js dev server |-| `pnpm generate:prompt` | Recompile `src/library.ts` → `src/generated/system-prompt.txt` |-| `pnpm build` | Build for production |-| `pnpm start` | Start the production server |--------## Learn More--- [OpenUI Lang overview](https://www.openui.com/docs/openui-lang/overview) — Library, Prompt Generator, Parser, Renderer-- [Vercel AI SDK docs](https://ai-sdk.dev/) — `streamText`, `useChat`, `tool()`-- `[@openuidev/react-lang` package](../../packages/react-lang)-diff --git a/examples/multi-agent-chat/package.json b/examples/multi-agent-chat/package.jsondeleted file mode 100644index 3edb7707b..000000000--- a/examples/multi-agent-chat/package.json+++ /dev/null@@ -1,36 +0,0 @@-{- "name": "vercel-ai-chat",- "version": "0.1.0",- "private": true,- "scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && pnpm exec openui generate src/library.ts --out src/generated/system-prompt.txt",- "dev": "pnpm generate:prompt && next dev",- "build": "next build",- "start": "next start",- "lint": "eslint"- },- "dependencies": {- "@ai-sdk/openai": "catalog:",- "@ai-sdk/react": "catalog:",- "@openuidev/cli": "workspace:*",- "@openuidev/react-lang": "workspace:*",- "@openuidev/react-ui": "workspace:*",- "ai": "^6.0.191",- "lucide-react": "^0.575.0",- "next": "16.2.6",- "react": "19.2.3",- "react-dom": "19.2.3",- "streamdown": "^2.5.0",- "zod": "^4.3.6"- },- "devDependencies": {- "@tailwindcss/postcss": "^4",- "@types/node": "catalog:",- "@types/react": "^19",- "@types/react-dom": "^19",- "eslint": "^9",- "eslint-config-next": "16.2.6",- "tailwindcss": "^4",- "typescript": "^5"- }-}diff --git a/examples/multi-agent-chat/src/app/api/chat/route.ts b/examples/multi-agent-chat/src/app/api/chat/route.tsdeleted file mode 100644index 2ef266ce5..000000000--- a/examples/multi-agent-chat/src/app/api/chat/route.ts+++ /dev/null@@ -1,58 +0,0 @@-import { tools } from "@/lib/tools";-import { openai } from "@ai-sdk/openai";-import { type UIMessage, convertToModelMessages, stepCountIs, streamText } from "ai";--const mainAgentSystemPrompt = `You are the main orchestrator agent. You MUST use tools to handle user requests — never answer with plain text when a tool can do the job.--MANDATORY RULE — analytics_subagent:-You MUST call the analytics_subagent tool IMMEDIATELY (on your very first step, with no preceding text) for ANY request involving:- • charts, graphs, plots, visualizations, dashboards- • tables, data grids, directories, lists of structured data- • forms, signup forms, contact forms, input layouts- • KPI cards, summaries, reports, metrics, statistics- • any UI component, layout, or interactive element-Do NOT respond with text first. Do NOT describe what you will do. Call the tool directly as your first action.--When calling analytics_subagent:-- Pass a detailed task description including all data, fields, layout preferences, and constraints from the user's message.-- Include specific numbers, names, categories, and any example data the user provided.--When NOT to use analytics_subagent:-- Only skip it for purely conversational messages (greetings, opinions, simple factual Q&A with no visual component).-- When in doubt, USE the analytics_subagent.--After the tool returns:-- Add only a brief 1-2 sentence summary. Do not narrate your process.-- Never generate OpenUI, XML, HTML, JSX, or UI markup directly in your text response.`;--function prettyJson(value: unknown): string {- try {- return JSON.stringify(value, null, 2);- } catch {- return String(value);- }-}--export async function POST(req: Request) {- const { messages } = (await req.json()) as { messages: UIMessage[] };-- console.info("[Main Agent] ---- New Chat Prompt ----");- console.info("[Main Agent] Full UI chat history:\n", prettyJson(messages));-- const modelMessages = await convertToModelMessages(messages);- console.info("[Main Agent] Full model chat history:\n", prettyJson(modelMessages));-- const result = streamText({- model: openai("gpt-5.5"),- system: mainAgentSystemPrompt,- messages: modelMessages,- tools,- stopWhen: stepCountIs(5),- });-- result.text.then((text) => {- console.info("[Main Agent] Final assistant text:\n", text);- });-- return result.toUIMessageStreamResponse();-}diff --git a/examples/multi-agent-chat/src/app/layout.tsx b/examples/multi-agent-chat/src/app/layout.tsxdeleted file mode 100644index a1e960c2f..000000000--- a/examples/multi-agent-chat/src/app/layout.tsx+++ /dev/null@@ -1,22 +0,0 @@-import type { Metadata } from "next";-import { ThemeProvider } from "@/hooks/use-system-theme";-import "./globals.css";--export const metadata: Metadata = {- title: "Multi Agent Chat",- description: "Generative UI Chat with Vercel AI SDK + OpenUI Renderer",-};--export default function RootLayout({- children,-}: Readonly<{- children: React.ReactNode;-}>) {- return (- <html lang="en">- <body>- <ThemeProvider>{children}</ThemeProvider>- </body>- </html>- );-}diff --git a/examples/multi-agent-chat/src/app/page.tsx b/examples/multi-agent-chat/src/app/page.tsxdeleted file mode 100644index 6dbd033f7..000000000--- a/examples/multi-agent-chat/src/app/page.tsx+++ /dev/null@@ -1,130 +0,0 @@-"use client";---import { useChat } from "@ai-sdk/react";-import { useRef, useEffect, useState } from "react";-import { useTheme } from "@/hooks/use-system-theme";-import { useThreads } from "@/hooks/use-threads";-import { ChatHeader } from "@/components/chat-header";-import { ChatInput } from "@/components/chat-input";-import { ConversationStarters } from "@/components/conversation-starters";-import { AssistantMessage } from "@/components/assistant-message";-import { UserMessage } from "@/components/user-message";-import { ThinkingIndicator } from "@/components/thinking-indicator";-import { Sidebar } from "@/components/sidebar";--export default function Page() {- useTheme();- const scrollRef = useRef<HTMLDivElement>(null);- const [input, setInput] = useState("");-- const {- threads,- activeThreadId,- activeThread,- sidebarOpen,- setSidebarOpen,- persistMessages,- refreshThreads,- createThread,- switchThread,- deleteThread,- } = useThreads();-- const { messages, sendMessage, status, stop } = useChat({- id: activeThreadId,- messages: activeThread?.messages,- });-- const isLoading = status === "submitted" || status === "streaming";-- // Auto-save messages to localStorage (no state updates to avoid render loops)- useEffect(() => {- if (messages.length > 0) {- persistMessages(messages);- }- }, [messages, persistMessages]);-- // Refresh sidebar thread list only when streaming finishes- const prevStatusRef = useRef(status);- useEffect(() => {- if (prevStatusRef.current !== "ready" && status === "ready") {- refreshThreads();- }- prevStatusRef.current = status;- }, [status, refreshThreads]);-- useEffect(() => {- if (scrollRef.current) {- scrollRef.current.scrollTop = scrollRef.current.scrollHeight;- }- }, [messages]);-- const handleSend = (text: string) => {- const trimmed = text.trim();- if (!trimmed || isLoading) return;- setInput("");- sendMessage({ text: trimmed });- };-- const isEmpty = messages.length === 0;- const lastIsUser = messages[messages.length - 1]?.role === "user";-- return (- <div className="h-screen bg-white dark:bg-zinc-950">- <Sidebar- threads={threads}- activeThreadId={activeThreadId}- isOpen={sidebarOpen}- onNewChat={createThread}- onSelectThread={switchThread}- onDeleteThread={deleteThread}- onClose={() => setSidebarOpen(false)}- />-- <div- className={`flex flex-col h-full transition-[margin] duration-200 ease-in-out ${- sidebarOpen ? "md:ml-[280px]" : "ml-0"- }`}- >- <ChatHeader- isSidebarOpen={sidebarOpen}- onToggleSidebar={() => setSidebarOpen((o) => !o)}- />-- <div ref={scrollRef} className="flex-1 overflow-y-auto">- {isEmpty ? (- <ConversationStarters onSelect={handleSend} />- ) : (- <div className="max-w-3xl mx-auto px-4 py-6 space-y-6">- {messages.map((m) => {- if (m.role === "assistant") {- return (- <AssistantMessage- key={m.id}- message={m}- onSend={handleSend}- />- );- }- if (m.role === "user") {- return <UserMessage key={m.id} message={m} />;- }- return null;- })}- {isLoading && lastIsUser && <ThinkingIndicator />}- </div>- )}- </div>-- <ChatInput- input={input}- isLoading={isLoading}- onInputChange={setInput}- onSend={handleSend}- onStop={stop}- />- </div>- </div>- );-}diff --git a/examples/multi-agent-chat/src/components/assistant-message.tsx b/examples/multi-agent-chat/src/components/assistant-message.tsxdeleted file mode 100644index 24a485548..000000000--- a/examples/multi-agent-chat/src/components/assistant-message.tsx+++ /dev/null@@ -1,99 +0,0 @@-import type { ActionEvent } from "@openuidev/react-lang";-import { BuiltinActionType, Renderer } from "@openuidev/react-lang";-import { openuiChatLibrary } from "@openuidev/react-ui/genui-lib";-import type { UIMessage } from "ai";-import { Bot } from "lucide-react";-import { ToolCallIndicator } from "./tool-call-indicator";--interface AssistantMessageProps {- message: UIMessage;- onSend: (text: string) => void;-}--function isToolPart(- part: UIMessage["parts"][number],-): part is UIMessage["parts"][number] & { toolCallId: string; state: string } {- return part.type.startsWith("tool-") || part.type === "dynamic-tool";-}--function getToolName(part: UIMessage["parts"][number]): string {- if (part.type === "dynamic-tool" && "toolName" in part) {- return (part as { toolName: string }).toolName;- }- return part.type.replace(/^tool-/, "");-}--function getOpenUiToolOutput(part: UIMessage["parts"][number]): string | null {- if (!("output" in part)) return null;- const output = (part as { output?: unknown }).output;- if (!output || typeof output !== "object") return null;-- const openuiSpec = (output as { openuiSpec?: unknown }).openuiSpec;- return typeof openuiSpec === "string" ? openuiSpec : null;-}---function isOpenUiToolOutputStreaming(part: UIMessage["parts"][number]): boolean {- if (!("output" in part)) return false;- const output = (part as { output?: unknown }).output;- if (!output || typeof output !== "object") return false;-- return (output as { complete?: unknown }).complete === false;-}--export function AssistantMessage({ message, onSend }: AssistantMessageProps) {- const textContent = message.parts- .filter((p): p is { type: "text"; text: string } => p.type === "text")- .map((p) => p.text)- .join("");-- const toolParts = message.parts.filter(isToolPart);-- const handleAction = (event: ActionEvent) => {- if (event.type === BuiltinActionType.ContinueConversation && event.humanFriendlyMessage) {- onSend(event.humanFriendlyMessage);- }- };-- const isToolDone = (state: string) => state === "output-available";-- return (- <div className="flex gap-3 max-w-3xl">- <div className="shrink-0 w-7 h-7 rounded-full bg-gradient-to-br from-violet-500 to-indigo-600 flex items-center justify-center">- <Bot size={14} className="text-white" />- </div>- <div className="flex-1 min-w-0 space-y-2">- {toolParts.map((tp) => {- const toolState = (tp as { state: string }).state;- const toolName = getToolName(tp);- const openUiSpec = getOpenUiToolOutput(tp);- const isOpenUiStreaming = isOpenUiToolOutputStreaming(tp);--- return (- <div key={(tp as { toolCallId: string }).toolCallId} className="space-y-2">- <ToolCallIndicator name={toolName} isDone={isToolDone(toolState)} />- {isToolDone(toolState) && toolName === "analytics_subagent" && openUiSpec && (- <div className="prose-container">- <Renderer- response={openUiSpec}- library={openuiChatLibrary}- isStreaming={isOpenUiStreaming}- onAction={handleAction}- />- </div>- )}- </div>- );- })}- {textContent && (- <div className="text-sm leading-6 whitespace-pre-wrap text-zinc-900 dark:text-zinc-100">- {textContent}- </div>- )}- </div>- </div>- );--}-diff --git a/examples/multi-agent-chat/src/components/chat-header.tsx b/examples/multi-agent-chat/src/components/chat-header.tsxdeleted file mode 100644index 7c4c50321..000000000--- a/examples/multi-agent-chat/src/components/chat-header.tsx+++ /dev/null@@ -1,26 +0,0 @@-import { Sparkles } from "lucide-react";-import { SidebarToggle } from "./sidebar-toggle";--interface ChatHeaderProps {- isSidebarOpen: boolean;- onToggleSidebar: () => void;-}--export function ChatHeader({ isSidebarOpen, onToggleSidebar }: ChatHeaderProps) {- return (- <header className="shrink-0 border-b border-zinc-200 dark:border-zinc-800 px-4 py-3">- <div className="flex items-center gap-2">- <SidebarToggle isOpen={isSidebarOpen} onToggle={onToggleSidebar} />- <div className="w-7 h-7 rounded-lg bg-gradient-to-br from-violet-500 to-indigo-600 flex items-center justify-center">- <Sparkles size={14} className="text-white" />- </div>- <div className="flex flex-col items-start">- <h1 className="text-sm font-semibold text-zinc-900 dark:text-zinc-100">Multi Agent Chat</h1>- <span className="text-xs text-zinc-400 dark:text-zinc-500">- Vercel AI SDK + OpenUI Renderer- </span>- </div>- </div>- </header>- );-}diff --git a/examples/multi-agent-chat/src/components/conversation-starters.tsx b/examples/multi-agent-chat/src/components/conversation-starters.tsxdeleted file mode 100644index f1fde1e7b..000000000--- a/examples/multi-agent-chat/src/components/conversation-starters.tsx+++ /dev/null@@ -1,52 +0,0 @@-import { Sparkles } from "lucide-react";--const STARTERS = [- {- displayText: "Sales dashboard",- prompt:- "Use the analytics subagent to render a sales dashboard with a bar chart of monthly revenue for Jan–Jun (Jan: $12k, Feb: $15k, Mar: $11k, Apr: $18k, May: $22k, Jun: $19k) and a total revenue summary card.",- },- {- displayText: "User signup form",- prompt:- "Use the analytics subagent to render a user signup form with fields for full name, email, password, and a role selector dropdown with options: Admin, Editor, Viewer.",- },- {- displayText: "Expense tracker",- prompt:- "Use the analytics subagent to render a pie chart breaking down monthly expenses: Rent $1200, Food $450, Transport $150, Entertainment $200, Utilities $180.",- },- {- displayText: "Team directory",- prompt:- "Use the analytics subagent to render a team directory table with 5 members showing name, role, department, and status (active/away). Use sample data.",- },-];--export function ConversationStarters({ onSelect }: { onSelect: (prompt: string) => void }) {- return (- <div className="flex flex-col items-center justify-center h-full px-4">- <div className="w-12 h-12 rounded-2xl bg-gradient-to-br from-violet-500 to-indigo-600 flex items-center justify-center mb-4">- <Sparkles size={22} className="text-white" />- </div>- <h2 className="text-lg font-semibold text-zinc-900 dark:text-zinc-100 mb-1">- What can I help you with?- </h2>- <p className="text-sm text-zinc-500 dark:text-zinc-400 mb-6 text-center max-w-md">- Ask me anything — I can build charts, dashboards, forms, tables, and interactive UI powered- by OpenUI.- </p>- <div className="grid grid-cols-2 gap-2 w-full max-w-md">- {STARTERS.map((s) => (- <button- key={s.prompt}- onClick={() => onSelect(s.prompt)}- className="text-left text-sm px-3 py-2.5 rounded-xl border border-zinc-200 dark:border-zinc-800 text-zinc-700 dark:text-zinc-300 hover:bg-zinc-50 dark:hover:bg-zinc-900 transition-colors"- >- {s.displayText}- </button>- ))}- </div>- </div>- );-}diff --git a/examples/multi-agent-chat/src/generated/system-prompt.txt b/examples/multi-agent-chat/src/generated/system-prompt.txtdeleted file mode 100644index af8c67770..000000000--- a/examples/multi-agent-chat/src/generated/system-prompt.txt+++ /dev/null@@ -1,223 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-Props typed `ActionExpression` accept an Action([@steps...]) expression. See the Action section for available steps (@ToAssistant, @OpenUrl).-Props marked `$binding<type>` accept a `$variable` reference for two-way binding.--### Content-CardHeader(title?: string, subtitle?: string) — Header with optional title and subtitle-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block. Supports markdown. Optional size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-MarkDownRenderer(textMarkdown: string, variant?: "clear" | "card" | "sunk") — Renders markdown text with optional container variant-Callout(variant: "info" | "warning" | "error" | "success" | "neutral", title: string, description: string, visible?: $binding<boolean>) — Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.-TextCallout(variant?: "neutral" | "info" | "warning" | "success" | "danger", title?: string, description?: string) — Text callout with variant, title, and description-Image(alt: string, src?: string) — Image with alt text and optional URL-ImageBlock(src: string, alt?: string) — Image block with loading state-ImageGallery(images: {src: string, alt?: string, details?: string}[]) — Gallery grid of images with modal preview-CodeBlock(language: string, codeString: string) — Syntax-highlighted code block-Separator(orientation?: "horizontal" | "vertical", decorative?: boolean) — Visual divider between content sections--### Tables-Table(columns: Col[]) — Data table — column-oriented. Each Col holds its own data array.-Col(label: string, data, type?: "string" | "number" | "action") — Column definition — holds label + data array--### Charts (2D)-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bars; use for comparing values across categories with one or more series-LineChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Lines over categories; use for trends and continuous data over time-AreaChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Filled area under lines; use for cumulative totals or volume trends over time-RadarChart(labels: string[], series: Series[]) — Spider/web chart; use for comparing multiple variables across one or more entities-HorizontalBarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Horizontal bars; prefer when category labels are long or for ranked lists-Series(category: string, values: number[]) — One data series--### Charts (1D)-PieChart(labels: string[], values: number[], variant?: "pie" | "donut") — Circular slices; use plucked arrays: PieChart(data.categories, data.values)-RadialChart(labels: string[], values: number[]) — Radial bars; use plucked arrays: RadialChart(data.categories, data.values)-SingleStackedBarChart(labels: string[], values: number[]) — Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)-Slice(category: string, value: number) — One slice with label and numeric value--### Charts (Scatter)-ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string) — X/Y scatter plot; use for correlations, distributions, and clustering-ScatterSeries(name: string, points: Point[]) — Named dataset-Point(x: number, y: number, z?: number) — Data point with numeric coordinates--### Forms-Form(name: string, buttons: Buttons, fields) — Form container with fields and explicit action buttons-FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string) — Field with label, input component, and optional hint text-Label(text: string) — Text label-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-SelectItem(value: string, label: string) — Option for Select-DatePicker(name: string, mode?: "single" | "range", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?)-Slider(name: string, variant: "continuous" | "discrete", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>) — Numeric slider input; supports continuous and discrete (stepped) variants-CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?)-CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)-RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-RadioItem(label: string, description: string, value: string)-SwitchGroup(name: string, items: SwitchItem[], variant?: "clear" | "card" | "sunk", value?) — Group of switch toggles-SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean) — Individual switch toggle-- Define EACH FormControl as its own reference — do NOT inline all controls in one array.-- NEVER nest Form inside Form.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.-- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }-- The renderer shows error messages automatically — do NOT generate error text in the UI--### Buttons-Button(label: string, action?: ActionExpression, variant?: "primary" | "secondary" | "tertiary", type?: "normal" | "destructive", size?: "extra-small" | "small" | "medium" | "large") — Clickable button-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" (default) | "column".--### Lists & Follow-ups-ListBlock(items: ListItem[], variant?: "number" | "image") — A list of items with number or image indicators. Each item can optionally have an action.-ListItem(title: string, subtitle?: string, image?: {src: string, alt: string}, actionLabel?: string, action?: ActionExpression) — Item in a ListBlock — displays a title with an optional subtitle and image. When action is provided, the item becomes clickable.-FollowUpBlock(items: FollowUpItem[]) — List of clickable follow-up suggestions placed at the end of a response-FollowUpItem(text: string) — Clickable follow-up suggestion — when clicked, sends text as user message-- Use ListBlock with ListItem references for numbered, clickable lists.-- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.-- Clicking a ListItem or FollowUpItem sends its text to the LLM as a user message.-- Example: list = ListBlock([item1, item2]) item1 = ListItem("Option A", "Details about A")--### Sections-SectionBlock(sections: SectionItem[], isFoldable?: boolean) — Collapsible accordion sections. Auto-opens sections as they stream in. Use SectionItem for each section.-SectionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock)[]) — Section with a label and collapsible content — used inside SectionBlock-- SectionBlock renders collapsible accordion sections that auto-open as they stream.-- Each section needs a unique `value` id, a `trigger` label, and a `content` array.-- Example: sections = SectionBlock([s1, s2]) s1 = SectionItem("intro", "Introduction", [content1])-- Set isFoldable=false to render sections as flat headers instead of accordion.--### Layout-Tabs(items: TabItem[]) — Tabbed container-TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is tab label, content is array of components-Accordion(items: AccordionItem[]) — Collapsible sections-AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is section title-Steps(items: StepsItem[]) — Step-by-step guide-StepsItem(title: string, details: string) — title and details text for one step-Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: "card" | "sunk") — Horizontal scrollable carousel-- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must have the same structure — same component types in the same order.-- For image carousels use: [[title, image, description, tags], ...] — every slide must follow this exact pattern.-- Use real, publicly accessible image URLs (e.g. https://picsum.photos/seed/KEYWORD/800/500). Never hallucinate image URLs.--### Data Display-TagBlock(tags: string[]) — tags is an array of strings-Tag(text: string, icon?: string, size?: "sm" | "md" | "lg", variant?: "neutral" | "info" | "success" | "warning" | "danger") — Styled tag/badge with optional icon and variant--### Other-Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock | SectionBlock | Tabs | Carousel)[]) — Vertical container for all content in a chat response. Children stack top to bottom automatically.--## Action — Button Behavior--Action([@steps...]) wires button clicks to operations. Steps are @-prefixed built-in actions. Steps execute in order.-Buttons without an explicit Action prop automatically send their label to the assistant (equivalent to Action([@ToAssistant(label)])).--Available steps:-- @ToAssistant("message") — Send a message to the assistant (for conversational buttons like "Tell me more", "Explain this")-- @OpenUrl("https://...") — Navigate to a URL--Example — simple nav:-```-viewBtn = Button("View", Action([@OpenUrl("https://example.com")]))-```--- Action can be assigned to a variable or inlined: Button("Go", onSubmit) and Button("Go", Action([...])) both work--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Table with follow-ups:--root = Card([title, tbl, followUps])-title = TextContent("Top Languages", "large-heavy")-tbl = Table([Col("Language", langs), Col("Users (M)", users), Col("Year", years)])-langs = ["Python", "JavaScript", "Java"]-users = [15.7, 14.2, 12.1]-years = [1991, 1995, 1995]-followUps = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Tell me more about Python")-fu2 = FollowUpItem("Show me a JavaScript comparison")--Example 2 — Clickable list:--root = Card([title, list])-title = TextContent("Choose a topic", "large-heavy")-list = ListBlock([item1, item2, item3])-item1 = ListItem("Getting started", "New to the platform? Start here.")-item2 = ListItem("Advanced features", "Deep dives into powerful capabilities.")-item3 = ListItem("Troubleshooting", "Common issues and how to fix them.")--Example 3 — Image carousel with consistent slides + follow-ups:--root = Card([header, carousel, followups])-header = CardHeader("Featured Destinations", "Discover highlights and best time to visit")-carousel = Carousel([[t1, img1, d1, tags1], [t2, img2, d2, tags2], [t3, img3, d3, tags3]], "card")-t1 = TextContent("Paris, France", "large-heavy")-img1 = ImageBlock("https://picsum.photos/seed/paris/800/500", "Eiffel Tower at night")-d1 = TextContent("City of light — best Apr–Jun and Sep–Oct.", "default")-tags1 = TagBlock(["Landmark", "City Break", "Culture"])-t2 = TextContent("Kyoto, Japan", "large-heavy")-img2 = ImageBlock("https://picsum.photos/seed/kyoto/800/500", "Bamboo grove in Arashiyama")-d2 = TextContent("Temples and bamboo groves — best Mar–Apr and Nov.", "default")-tags2 = TagBlock(["Temples", "Autumn", "Culture"])-t3 = TextContent("Machu Picchu, Peru", "large-heavy")-img3 = ImageBlock("https://picsum.photos/seed/machupicchu/800/500", "Inca citadel in the clouds")-d3 = TextContent("High-altitude Inca citadel — best May–Sep.", "default")-tags3 = TagBlock(["Andes", "Hike", "UNESCO"])-followups = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Show me only beach destinations")-fu2 = FollowUpItem("Turn this into a comparison table")--Example 4 — Form with validation:--root = Card([title, form])-title = TextContent("Contact Us", "large-heavy")-form = Form("contact", btns, [nameField, emailField, msgField])-nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))-emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))-msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))-btns = Buttons([Button("Submit", Action([@ToAssistant("Submit")]), "primary")])--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Card(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Card(children) — children stack vertically automatically. No layout params are needed on Card.-- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.-- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.-- Use ListBlock when presenting a set of options or steps the user can click to select.-- Use SectionBlock to group long responses into collapsible sections — good for reports, FAQs, and structured content.-- Use SectionItem inside SectionBlock: each item needs a unique value id, a trigger (header label), and a content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must use the same component structure in the same order — e.g. all slides: [title, image, description, tags].-- For image carousels, always use real accessible URLs like https://picsum.photos/seed/KEYWORD/800/500. Never hallucinate or invent image URLs.-- For forms, define one FormControl reference per field so controls can stream progressively.-- For forms, always provide the second Form argument with Buttons(...) actions: Form(name, buttons, fields).-- Never nest Form inside Form.diff --git a/examples/multi-agent-chat/src/hooks/use-threads.ts b/examples/multi-agent-chat/src/hooks/use-threads.tsdeleted file mode 100644index ebbb013f2..000000000--- a/examples/multi-agent-chat/src/hooks/use-threads.ts+++ /dev/null@@ -1,77 +0,0 @@-"use client";--import { useState, useCallback, useEffect } from "react";-import type { UIMessage } from "ai";-import {- getThreads,- getThread,- saveThread,- deleteThread as removeThread,- generateId,- titleFromMessages,- type Thread,-} from "@/lib/thread-store";--export function useThreads() {- const [threads, setThreads] = useState<Thread[]>([]);- const [activeThreadId, setActiveThreadId] = useState<string>(() => generateId());- const [sidebarOpen, setSidebarOpen] = useState(false);-- useEffect(() => {- setThreads(getThreads());- }, []);-- const refreshThreads = useCallback(() => {- setThreads(getThreads());- }, []);-- const persistMessages = useCallback(- (messages: UIMessage[]) => {- if (messages.length === 0) return;- const existing = getThread(activeThreadId);- const now = Date.now();- saveThread({- id: activeThreadId,- title: titleFromMessages(messages),- messages,- createdAt: existing?.createdAt ?? now,- updatedAt: now,- });- },- [activeThreadId],- );-- const createThread = useCallback(() => {- setActiveThreadId(generateId());- }, []);-- const switchThread = useCallback((id: string) => {- setActiveThreadId(id);- }, []);-- const deleteThread = useCallback(- (id: string) => {- removeThread(id);- refreshThreads();- if (id === activeThreadId) {- setActiveThreadId(generateId());- }- },- [activeThreadId, refreshThreads],- );-- const activeThread = getThread(activeThreadId);-- return {- threads,- activeThreadId,- activeThread,- sidebarOpen,- setSidebarOpen,- persistMessages,- refreshThreads,- createThread,- switchThread,- deleteThread,- };-}diff --git a/examples/multi-agent-chat/src/lib/tools.ts b/examples/multi-agent-chat/src/lib/tools.tsdeleted file mode 100644index e5ee31fd9..000000000--- a/examples/multi-agent-chat/src/lib/tools.ts+++ /dev/null@@ -1,186 +0,0 @@-import { openai } from "@ai-sdk/openai";-import { streamText, tool } from "ai";-import { readFileSync } from "fs";-import { join } from "path";-import { z } from "zod";--const analyticsSubagentSystemPrompt = readFileSync(- join(process.cwd(), "src/generated/system-prompt.txt"),- "utf-8",-);--function sanitizeOpenUiSpec(raw: string): string {- let text = raw.trim();-- // Strip fenced code blocks if the model wraps output in markdown.- text = text.replace(/^```[a-zA-Z0-9_-]*\s*\n?/, "").replace(/\n?```$/, "").trim();-- // Strip full-document HTML wrappers while preserving inner OpenUI content.- text = text- .replace(/^<!doctype[^>]*>\s*/i, "")- .replace(/^<html[^>]*>\s*/i, "")- .replace(/\s*<\/html>\s*$/i, "")- .replace(/^<body[^>]*>\s*/i, "")- .replace(/\s*<\/body>\s*$/i, "")- .trim();-- return text;-}--export const tools = {- analytics_subagent: tool({- description:- "Delegate analytics tasks to a specialized sub-agent that returns an OpenUI response payload.",- inputSchema: z.object({- task: z- .string()- .describe("The analytics task to perform, including the question and expected output."),- context: z- .string()- .optional()- .describe("Optional additional context, such as prior conversation details."),- }),- execute: async function* ({ task, context }, { abortSignal }) {- const prompt = context- ? `Analytics task:-${task}--Additional context:-${context}--Output contract (strict):-- Return only OpenUI language content.-- Do not include HTML wrappers like <html>, <body>, <div>, or markdown code fences.-- Do not include explanatory prose before or after the OpenUI output.`- : `Analytics task:-${task}--Output contract (strict):-- Return only OpenUI language content.-- Do not include HTML wrappers like <html>, <body>, <div>, or markdown code fences.-- Do not include explanatory prose before or after the OpenUI output.`;-- console.info("[analytics_subagent] Input:\n", JSON.stringify({ task, context }, null, 2));- console.info("[analytics_subagent] Prompt:\n", prompt);-- const result = streamText({- model: openai("gpt-5.5"),- system: analyticsSubagentSystemPrompt,- prompt,- abortSignal,- });-- let accumulated = "";- for await (const chunk of result.textStream) {- accumulated += chunk;- yield {- openuiSpec: sanitizeOpenUiSpec(accumulated),- complete: false,- };- }-- const sanitizedOpenUiSpec = sanitizeOpenUiSpec(accumulated);-- console.info("[analytics_subagent] Raw output:\n", accumulated);- console.info("[analytics_subagent] Sanitized output:\n", sanitizedOpenUiSpec);-- yield {- openuiSpec: sanitizedOpenUiSpec,- complete: true,- };- },- }),-- get_weather: tool({- description: "Get current weather for a location.",- inputSchema: z.object({- location: z.string().describe("City name"),- }),- execute: async ({ location }) => {- await new Promise((r) => setTimeout(r, 800));- const knownTemps: Record<string, number> = {- tokyo: 22,- "san francisco": 18,- london: 14,- "new york": 25,- paris: 19,- sydney: 27,- mumbai: 33,- berlin: 16,- };- const conditions = ["Sunny", "Partly Cloudy", "Cloudy", "Light Rain", "Clear Skies"];- const temp = knownTemps[location.toLowerCase()] ?? Math.floor(Math.random() * 30 + 5);- const condition = conditions[Math.floor(Math.random() * conditions.length)];- return {- location,- temperature_celsius: temp,- temperature_fahrenheit: Math.round(temp * 1.8 + 32),- condition,- humidity_percent: Math.floor(Math.random() * 40 + 40),- wind_speed_kmh: Math.floor(Math.random() * 25 + 5),- forecast: [- { day: "Tomorrow", high: temp + 2, low: temp - 4, condition: "Partly Cloudy" },- { day: "Day After", high: temp + 1, low: temp - 3, condition: "Sunny" },- ],- };- },- }),-- get_stock_price: tool({- description: "Get stock price for a ticker symbol.",- inputSchema: z.object({- symbol: z.string().describe("Ticker symbol, e.g. AAPL"),- }),- execute: async ({ symbol }) => {- await new Promise((r) => setTimeout(r, 600));- const s = symbol.toUpperCase();- const knownPrices: Record<string, number> = {- AAPL: 189.84,- GOOGL: 141.8,- TSLA: 248.42,- MSFT: 378.91,- AMZN: 178.25,- NVDA: 875.28,- META: 485.58,- };- const price = knownPrices[s] ?? Math.floor(Math.random() * 500 + 20);- const change = parseFloat((Math.random() * 8 - 4).toFixed(2));- return {- symbol: s,- price: parseFloat((price + change).toFixed(2)),- change,- change_percent: parseFloat(((change / price) * 100).toFixed(2)),- volume: `${(Math.random() * 50 + 10).toFixed(1)}M`,- day_high: parseFloat((price + Math.abs(change) + 1.5).toFixed(2)),- day_low: parseFloat((price - Math.abs(change) - 1.2).toFixed(2)),- };- },- }),-- search_web: tool({- description: "Search the web for information.",- inputSchema: z.object({- query: z.string().describe("Search query"),- }),- execute: async ({ query }) => {- await new Promise((r) => setTimeout(r, 1000));- return {- query,- results: [- {- title: `Top result for "${query}"`,- snippet: `Comprehensive overview of ${query} with the latest information.`,- },- {- title: `${query} - Latest News`,- snippet: `Recent developments and updates related to ${query}.`,- },- {- title: `Understanding ${query}`,- snippet: `An in-depth guide explaining everything about ${query}.`,- },- ],- };- },- }),-};diff --git a/examples/openui-chat/.dockerignore b/examples/openui-chat/.dockerignoredeleted file mode 100644index 999ffc10a..000000000--- a/examples/openui-chat/.dockerignore+++ /dev/null@@ -1,39 +0,0 @@-# Node-node_modules-.pnpm-store-npm-debug.log*-yarn-debug.log*-yarn-error.log*-pnpm-debug.log*--# Next.js-.next-out--# Git-.git-.gitignore--# Logs-logs-*.log--# Env files-.env-.env.*-!.env.example--# OS files-.DS_Store-Thumbs.db--# Build / cache-dist-build-.turbo-.cache-coverage--# Editor-.vscode-.idea\ No newline at end of filediff --git a/examples/openui-chat/.gitignore b/examples/openui-chat/.gitignoredeleted file mode 100644index 5ef6a5207..000000000--- a/examples/openui-chat/.gitignore+++ /dev/null@@ -1,41 +0,0 @@-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.--# dependencies-/node_modules-/.pnp-.pnp.*-.yarn/*-!.yarn/patches-!.yarn/plugins-!.yarn/releases-!.yarn/versions--# testing-/coverage--# next.js-/.next/-/out/--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*-yarn-debug.log*-yarn-error.log*-.pnpm-debug.log*--# env files (can opt-in for committing if needed)-.env*--# vercel-.vercel--# typescript-*.tsbuildinfo-next-env.d.tsdiff --git a/examples/openui-chat/Dockerfile b/examples/openui-chat/Dockerfiledeleted file mode 100644index d6d5be06b..000000000--- a/examples/openui-chat/Dockerfile+++ /dev/null@@ -1,74 +0,0 @@-# syntax=docker/dockerfile:1.7-# ---------------------------------------------------# Build stage-# ---------------------------------------------------FROM node:20-alpine AS builder--WORKDIR /app--RUN apk add --no-cache libc6-compat-ARG PNPM_VERSION=9.12.0-RUN corepack enable && corepack prepare pnpm@${PNPM_VERSION} --activate--ENV NEXT_TELEMETRY_DISABLED=1--COPY pnpm-workspace.yaml package.json pnpm-lock.yaml tsconfig.json ./--COPY packages/openui-cli/package.json ./packages/openui-cli/-COPY packages/react-ui/package.json ./packages/react-ui/-COPY packages/react-headless/package.json ./packages/react-headless/-COPY packages/lang-core/package.json ./packages/lang-core/-COPY packages/react-lang/package.json ./packages/react-lang/-COPY examples/openui-chat/package.json ./examples/openui-chat/--RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store \- pnpm install --frozen-lockfile --ignore-scripts--COPY packages/openui-cli ./packages/openui-cli-COPY packages/react-ui ./packages/react-ui-COPY packages/react-headless ./packages/react-headless-COPY packages/lang-core ./packages/lang-core-COPY packages/react-lang ./packages/react-lang-COPY examples/openui-chat ./examples/openui-chat--RUN pnpm --filter @openuidev/cli build-RUN pnpm --filter @openuidev/react-ui build-RUN pnpm --filter @openuidev/react-headless build-RUN pnpm --filter @openuidev/lang-core build-RUN pnpm --filter @openuidev/react-lang build--WORKDIR /app/examples/openui-chat-RUN node /app/packages/openui-cli/dist/index.js generate src/library.ts --out src/generated/system-prompt.txt \- && pnpm build--# ---------------------------------------------------# Runtime stage-# ---------------------------------------------------FROM node:20-alpine AS runner--WORKDIR /app--RUN apk add --no-cache libc6-compat--ENV NODE_ENV=production-ENV NEXT_TELEMETRY_DISABLED=1-ENV PORT=3000 HOSTNAME=0.0.0.0--RUN addgroup -S nodejs && adduser -S nextjs -G nodejs-USER nextjs--# Copy full standalone output to avoid brittle partial-copy assumptions-COPY --from=builder --chown=nextjs:nodejs /app/examples/openui-chat/.next/standalone ./--# Static assets expected by Next at runtime-COPY --from=builder --chown=nextjs:nodejs /app/examples/openui-chat/.next/static ./examples/openui-chat/.next/static--# If your app has a public directory, include this line-# COPY --from=builder --chown=nextjs:nodejs /app/examples/openui-chat/public ./examples/openui-chat/public--EXPOSE 3000--HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \- CMD node -e "fetch('http://127.0.0.1:3000').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"--CMD ["node", "examples/openui-chat/server.js"]diff --git a/examples/openui-chat/README.md b/examples/openui-chat/README.mddeleted file mode 100644index 0bf8342f0..000000000--- a/examples/openui-chat/README.md+++ /dev/null@@ -1,75 +0,0 @@-This is an [OpenUI](https://openui.com) Agent Chat project bootstrapped with [`openui-cli`](https://openui.com/docs/chat/quick-start).--## Getting Started--First, create a `.env` file:--```env-OPENAI_API_KEY=sk-your-key-here-OPENAI_MODEL=gpt-5.5-```--Then run the development server:--```bash-npm run dev-# or-yarn dev-# or-pnpm dev-# or-bun dev-```--Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.--You can start editing the page by modifying `src/app/api/route.ts` and improving your agent-by adding system prompts or tools.--## OpenAI-compatible APIs--The example chat app supports OpenAI-compatible APIs through the optional `OPENAI_BASE_URL` environment variable.--Example using OpenRouter:--```env-OPENAI_API_KEY=sk-or-v1-...-OPENAI_BASE_URL=https://openrouter.ai/api/v1-OPENAI_MODEL=openai/gpt-5.5-```--This also works with other OpenAI-compatible providers.--## Learn More--To learn more about OpenUI, take a look at the following resources:--- [OpenUI Documentation](https://openui.com/docs) - learn about OpenUI features and API.-- [OpenUI GitHub repository](https://github.com/thesysdev/openui) - your feedback and contributions are welcome!--## Docker Usage--You can build the image either from the example directory or from the repository root.--### Option 1: From examples/openui-chat--```bash-cd examples/openui-chat-docker build -f Dockerfile -t openui-chat ../..-docker run --rm -p 3000:3000 -e OPENAI_API_KEY=your_api_key openui-chat-```--### Option 2: From repository root--```bash-docker build -f examples/openui-chat/Dockerfile -t openui-chat .-docker run --rm -p 3000:3000 -e OPENAI_API_KEY=your_api_key openui-chat-```--⚠️ The build context must be the repository root (either `.` or `../..`) because this example depends on pnpm workspace packages.--Notes:--- The Docker build uses pnpm workspace dependencies from the monorepo.-- Runtime uses Next.js standalone output (`node examples/openui-chat/server.js`).-- A placeholder API key will start the app, but chat requests will return `401`.diff --git a/examples/openui-chat/eslint.config.mjs b/examples/openui-chat/eslint.config.mjsdeleted file mode 100644index 05e726d1b..000000000--- a/examples/openui-chat/eslint.config.mjs+++ /dev/null@@ -1,18 +0,0 @@-import { defineConfig, globalIgnores } from "eslint/config";-import nextVitals from "eslint-config-next/core-web-vitals";-import nextTs from "eslint-config-next/typescript";--const eslintConfig = defineConfig([- ...nextVitals,- ...nextTs,- // Override default ignores of eslint-config-next.- globalIgnores([- // Default ignores of eslint-config-next:- ".next/**",- "out/**",- "build/**",- "next-env.d.ts",- ]),-]);--export default eslintConfig;diff --git a/examples/openui-chat/next.config.ts b/examples/openui-chat/next.config.tsdeleted file mode 100644index 7e1f0ae21..000000000--- a/examples/openui-chat/next.config.ts+++ /dev/null@@ -1,8 +0,0 @@-import type { NextConfig } from "next";--const nextConfig: NextConfig = {- output: "standalone",- turbopack: {},-};--export default nextConfig;diff --git a/examples/openui-chat/package.json b/examples/openui-chat/package.jsondeleted file mode 100644index 5903fd86c..000000000--- a/examples/openui-chat/package.json+++ /dev/null@@ -1,34 +0,0 @@-{- "name": "openui-chat",- "version": "0.1.0",- "private": true,- "scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && pnpm exec openui generate src/library.ts --out src/generated/system-prompt.txt",- "dev": "pnpm generate:prompt && next dev",- "build": "next build",- "start": "next start",- "lint": "eslint"- },- "dependencies": {- "@openuidev/react-headless": "workspace:*",- "@openuidev/react-lang": "workspace:*",- "@openuidev/react-ui": "workspace:*",- "lucide-react": "^0.575.0",- "next": "16.2.6",- "openai": "^6.22.0",- "react": "19.2.3",- "react-dom": "19.2.3",- "zod": "^4.0.0"- },- "devDependencies": {- "@openuidev/cli": "workspace:*",- "@tailwindcss/postcss": "^4",- "@types/node": "catalog:",- "@types/react": "^19",- "@types/react-dom": "^19",- "eslint": "^9",- "eslint-config-next": "16.2.6",- "tailwindcss": "^4",- "typescript": "^5"- }-}diff --git a/examples/openui-chat/src/app/api/chat/route.ts b/examples/openui-chat/src/app/api/chat/route.tsdeleted file mode 100644index 3c6f0f3fb..000000000--- a/examples/openui-chat/src/app/api/chat/route.ts+++ /dev/null@@ -1,348 +0,0 @@-import { readFileSync } from "fs";-import { NextRequest } from "next/server";-import OpenAI from "openai";-import type { ChatCompletionMessageParam } from "openai/resources/chat/completions.mjs";-import { join } from "path";--const systemPrompt = readFileSync(join(process.cwd(), "src/generated/system-prompt.txt"), "utf-8");--// ── Tool implementations ──--function getWeather({ location }: { location: string }): Promise<string> {- return new Promise((resolve) => {- setTimeout(() => {- const knownTemps: Record<string, number> = {- tokyo: 22, "san francisco": 18, london: 14, "new york": 25,- paris: 19, sydney: 27, mumbai: 33, berlin: 16,- };- const conditions = ["Sunny", "Partly Cloudy", "Cloudy", "Light Rain", "Clear Skies"];- const temp = knownTemps[location.toLowerCase()] ?? Math.floor(Math.random() * 30 + 5);- const condition = conditions[Math.floor(Math.random() * conditions.length)];- resolve(JSON.stringify({- location, temperature_celsius: temp,- temperature_fahrenheit: Math.round(temp * 1.8 + 32),- condition,- humidity_percent: Math.floor(Math.random() * 40 + 40),- wind_speed_kmh: Math.floor(Math.random() * 25 + 5),- forecast: [- { day: "Tomorrow", high: temp + 2, low: temp - 4, condition: "Partly Cloudy" },- { day: "Day After", high: temp + 1, low: temp - 3, condition: "Sunny" },- ],- }));- }, 800);- });-}--function getStockPrice({ symbol }: { symbol: string }): Promise<string> {- return new Promise((resolve) => {- setTimeout(() => {- const s = symbol.toUpperCase();- const knownPrices: Record<string, number> = {- AAPL: 189.84, GOOGL: 141.8, TSLA: 248.42, MSFT: 378.91,- AMZN: 178.25, NVDA: 875.28, META: 485.58,- };- const price = knownPrices[s] ?? Math.floor(Math.random() * 500 + 20);- const change = parseFloat((Math.random() * 8 - 4).toFixed(2));- resolve(JSON.stringify({- symbol: s,- price: parseFloat((price + change).toFixed(2)),- change, change_percent: parseFloat(((change / price) * 100).toFixed(2)),- volume: `${(Math.random() * 50 + 10).toFixed(1)}M`,- day_high: parseFloat((price + Math.abs(change) + 1.5).toFixed(2)),- day_low: parseFloat((price - Math.abs(change) - 1.2).toFixed(2)),- }));- }, 600);- });-}--function searchWeb({ query }: { query: string }): Promise<string> {- return new Promise((resolve) => {- setTimeout(() => {- resolve(JSON.stringify({- query,- results: [- { title: `Top result for "${query}"`, snippet: `Comprehensive overview of ${query} with the latest information.` },- { title: `${query} - Latest News`, snippet: `Recent developments and updates related to ${query}.` },- { title: `Understanding ${query}`, snippet: `An in-depth guide explaining everything about ${query}.` },- ],- }));- }, 1000);- });-}--// ── Tool definitions ──--// eslint-disable-next-line @typescript-eslint/no-explicit-any-const tools: any[] = [- {- type: "function",- function: {- name: "get_weather",- description: "Get current weather for a location.",- parameters: {- type: "object",- properties: { location: { type: "string", description: "City name" } },- required: ["location"],- },- function: getWeather,- parse: JSON.parse,- },- },- {- type: "function",- function: {- name: "get_stock_price",- description: "Get stock price for a ticker symbol.",- parameters: {- type: "object",- properties: { symbol: { type: "string", description: "Ticker symbol, e.g. AAPL" } },- required: ["symbol"],- },- function: getStockPrice,- parse: JSON.parse,- },- },- {- type: "function",- function: {- name: "search_web",- description: "Search the web for information.",- parameters: {- type: "object",- properties: { query: { type: "string", description: "Search query" } },- required: ["query"],- },- function: searchWeb,- parse: JSON.parse,- },- },-];--// ── SSE helpers ──--function sseToolCallStart(- encoder: TextEncoder,- tc: { id: string; function: { name: string } },- index: number,-) {- return encoder.encode(- `data: ${JSON.stringify({- id: `chatcmpl-tc-${tc.id}`,- object: "chat.completion.chunk",- choices: [{- index: 0,- delta: {- tool_calls: [{ index, id: tc.id, type: "function", function: { name: tc.function.name, arguments: "" } }],- },- finish_reason: null,- }],- })}\n\n`,- );-}--function sseToolCallArgs(- encoder: TextEncoder,- tc: { id: string; function: { arguments: string } },- result: string,- index: number,-) {- let enrichedArgs: string;- try {- enrichedArgs = JSON.stringify({ _request: JSON.parse(tc.function.arguments), _response: JSON.parse(result) });- } catch {- enrichedArgs = tc.function.arguments;- }- return encoder.encode(- `data: ${JSON.stringify({- id: `chatcmpl-tc-${tc.id}-args`,- object: "chat.completion.chunk",- choices: [{- index: 0,- delta: { tool_calls: [{ index, function: { arguments: enrichedArgs } }] },- finish_reason: null,- }],- })}\n\n`,- );-}--// ── Route handler ──--export async function POST(req: NextRequest) {- const { messages } = await req.json();-- const client = new OpenAI({- apiKey: process.env.OPENAI_API_KEY,- baseURL: process.env.OPENAI_BASE_URL || undefined,- });-- const MODEL = process.env.OPENAI_MODEL || "gpt-5.5";-- // eslint-disable-next-line @typescript-eslint/no-explicit-any- const cleanMessages = (messages as any[])- .filter((m) => m.role !== "tool")- .map((m) => {- if (m.role === "assistant" && m.tool_calls?.length) {- // Strip tool_calls (runTools re-runs the agentic loop server-side)- // but preserve content so prior replies remain in context.- const { tool_calls: _tc, ...rest } = m;-- return rest;- }-- return m;- });-- const chatMessages: ChatCompletionMessageParam[] = [- { role: "system", content: systemPrompt },- ...cleanMessages,- ];-- const encoder = new TextEncoder();- let controllerClosed = false;-- const readable = new ReadableStream({- start(controller) {- const enqueue = (data: Uint8Array) => {- if (controllerClosed) return;-- try {- controller.enqueue(data);- } catch {- // already closed- }- };-- const close = () => {- if (controllerClosed) return;-- controllerClosed = true;-- try {- controller.close();- } catch {- // already closed- }- };-- const pendingCalls: Array<{- id: string;- name: string;- arguments: string;- }> = [];-- let callIdx = 0;- let resultIdx = 0;-- // eslint-disable-next-line @typescript-eslint/no-explicit-any- const runner = (client.chat.completions as any).runTools({- model: MODEL,- messages: chatMessages,- tools,- stream: true,- });-- // eslint-disable-next-line @typescript-eslint/no-explicit-any- runner.on("functionToolCall", (fc: any) => {- const id = `tc-${callIdx}`;-- pendingCalls.push({- id,- name: fc.name,- arguments: fc.arguments,- });-- enqueue(- sseToolCallStart(- encoder,- {- id,- function: {- name: fc.name,- },- },- callIdx,- ),- );-- callIdx++;- });-- runner.on("functionToolCallResult", (result: string) => {- const tc = pendingCalls[resultIdx];-- if (tc) {- enqueue(- sseToolCallArgs(- encoder,- {- id: tc.id,- function: {- arguments: tc.arguments,- },- },- result,- resultIdx,- ),- );- }-- resultIdx++;- });-- // eslint-disable-next-line @typescript-eslint/no-explicit-any- runner.on("chunk", (chunk: any) => {- const choice = chunk.choices?.[0];- const delta = choice?.delta;-- if (!delta) return;-- if (delta.content) {- enqueue(- encoder.encode(- `data: ${JSON.stringify(chunk)}\n\n`,- ),- );- }-- if (choice?.finish_reason === "stop") {- enqueue(- encoder.encode(- `data: ${JSON.stringify(chunk)}\n\n`,- ),- );- }- });-- runner.on("end", () => {- enqueue(encoder.encode("data: [DONE]\n\n"));- close();- });-- // eslint-disable-next-line @typescript-eslint/no-explicit-any- runner.on("error", (err: any) => {- const msg =- err instanceof Error- ? err.message- : "Stream error";-- console.error("Chat route error:", msg);-- enqueue(- encoder.encode(- `data: ${JSON.stringify({ error: msg })}\n\n`,- ),- );-- close();- });- },- });-- return new Response(readable, {- headers: {- "Content-Type": "text/event-stream",- "Cache-Control": "no-cache, no-transform",- Connection: "keep-alive",- },- });-}diff --git a/examples/openui-chat/src/app/globals.css b/examples/openui-chat/src/app/globals.cssdeleted file mode 100644index d41e3795a..000000000--- a/examples/openui-chat/src/app/globals.css+++ /dev/null@@ -1,3 +0,0 @@-@import "tailwindcss";-@import "@openuidev/react-ui/styles/index.css";-diff --git a/examples/openui-chat/src/app/layout.tsx b/examples/openui-chat/src/app/layout.tsxdeleted file mode 100644index 7e44b0451..000000000--- a/examples/openui-chat/src/app/layout.tsx+++ /dev/null@@ -1,22 +0,0 @@-import type { Metadata } from "next";-import { ThemeProvider } from "@/hooks/use-system-theme";-import "./globals.css";--export const metadata: Metadata = {- title: "OpenUI Chat",- description: "Generative UI Chat with OpenAI SDK",-};--export default function RootLayout({- children,-}: Readonly<{- children: React.ReactNode;-}>) {- return (- <html lang="en">- <body>- <ThemeProvider>{children}</ThemeProvider>- </body>- </html>- );-}diff --git a/examples/openui-chat/src/app/page.tsx b/examples/openui-chat/src/app/page.tsxdeleted file mode 100644index ad2913f65..000000000--- a/examples/openui-chat/src/app/page.tsx+++ /dev/null@@ -1,51 +0,0 @@-"use client";--import { useTheme } from "@/hooks/use-system-theme";-import { AgentInterface, fetchLLM, openAIAdapter, openAIMessageFormat } from "@openuidev/react-ui";-import { openuiChatLibrary } from "@openuidev/react-ui/genui-lib";-import { useMemo } from "react";--export default function Page() {- const mode = useTheme();-- // AgentInterface uses its built-in in-memory storage (wiped on reload).- // fetchLLM POSTs the run payload to /api/chat, sending messages in OpenAI- // format and parsing the OpenAI-style SSE response.- const llm = useMemo(- () =>- fetchLLM({- url: "/api/chat",- streamAdapter: openAIAdapter(),- messageFormat: openAIMessageFormat,- }),- [],- );-- return (- <div className="h-screen w-screen overflow-hidden relative">- <AgentInterface- llm={llm}- componentLibrary={openuiChatLibrary}- agentName="OpenUI Chat"- theme={{ mode }}- starterVariant="short"- starters={[- {- displayText: "Weather in Tokyo",- prompt: "What's the weather like in Tokyo right now?",- },- { displayText: "AAPL stock price", prompt: "What's the current Apple stock price?" },- {- displayText: "Contact form",- prompt: "Build me a contact form with name, email, topic, and message fields.",- },- {- displayText: "Data table",- prompt:- "Show me a table of the top 5 programming languages by popularity with year created.",- },- ]}- />- </div>- );-}diff --git a/examples/openui-chat/src/generated/system-prompt.txt b/examples/openui-chat/src/generated/system-prompt.txtdeleted file mode 100644index 5a066bbaf..000000000--- a/examples/openui-chat/src/generated/system-prompt.txt+++ /dev/null@@ -1,223 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-Props typed `ActionExpression` accept an Action([@steps...]) expression. See the Action section for available steps (@ToAssistant, @OpenUrl).-Props marked `$binding<type>` accept a `$variable` reference for two-way binding.--### Content-CardHeader(title?: string, subtitle?: string) — Header with optional title and subtitle-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block. Supports markdown. Optional size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-MarkDownRenderer(textMarkdown: string, variant?: "clear" | "card" | "sunk") — Renders markdown text with optional container variant-Callout(variant: "info" | "warning" | "error" | "success" | "neutral", title: string, description: string, visible?: $binding<boolean>) — Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.-TextCallout(variant?: "neutral" | "info" | "warning" | "success" | "danger", title?: string, description?: string) — Text callout with variant, title, and description-Image(alt: string, src?: string) — Image with alt text and optional URL-ImageBlock(src: string, alt?: string) — Image block with loading state-ImageGallery(images: {src: string, alt?: string, details?: string}[]) — Gallery grid of images with modal preview-CodeBlock(language: string, codeString: string) — Syntax-highlighted code block-Separator(orientation?: "horizontal" | "vertical", decorative?: boolean) — Visual divider between content sections--### Tables-Table(columns: Col[]) — Data table — column-oriented. Each Col holds its own data array.-Col(label: string, data: any, type?: "string" | "number" | "action") — Column definition — holds label + data array--### Charts (2D)-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bars; use for comparing values across categories with one or more series-LineChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Lines over categories; use for trends and continuous data over time-AreaChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Filled area under lines; use for cumulative totals or volume trends over time-RadarChart(labels: string[], series: Series[]) — Spider/web chart; use for comparing multiple variables across one or more entities-HorizontalBarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Horizontal bars; prefer when category labels are long or for ranked lists-Series(category: string, values: number[]) — One data series--### Charts (1D)-PieChart(labels: string[], values: number[], variant?: "pie" | "donut") — Circular slices; use plucked arrays: PieChart(data.categories, data.values)-RadialChart(labels: string[], values: number[]) — Radial bars; use plucked arrays: RadialChart(data.categories, data.values)-SingleStackedBarChart(labels: string[], values: number[]) — Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)-Slice(category: string, value: number) — One slice with label and numeric value--### Charts (Scatter)-ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string) — X/Y scatter plot; use for correlations, distributions, and clustering-ScatterSeries(name: string, points: Point[]) — Named dataset-Point(x: number, y: number, z?: number) — Data point with numeric coordinates--### Forms-Form(name: string, buttons: Buttons, fields?: FormControl[]) — Form container with fields and explicit action buttons-FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string) — Field with label, input component, and optional hint text-Label(text: string) — Text label-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>, size?: "small" | "medium" | "large")-SelectItem(value: string, label: string) — Option for Select-DatePicker(name: string, mode?: "single" | "range", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<any>)-Slider(name: string, variant: "continuous" | "discrete", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>) — Numeric slider input; supports continuous and discrete (stepped) variants-CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)-CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)-RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-RadioItem(label: string, description: string, value: string)-SwitchGroup(name: string, items: SwitchItem[], variant?: "clear" | "card" | "sunk", value?: $binding<Record<string, boolean>>) — Group of switch toggles-SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean) — Individual switch toggle-- Define EACH FormControl as its own reference — do NOT inline all controls in one array.-- NEVER nest Form inside Form.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.-- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }-- The renderer shows error messages automatically — do NOT generate error text in the UI--### Buttons-Button(label: string, action?: ActionExpression, variant?: "primary" | "secondary" | "tertiary", type?: "normal" | "destructive", size?: "extra-small" | "small" | "medium" | "large") — Clickable button-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" (default) | "column".--### Lists & Follow-ups-ListBlock(items: ListItem[], variant?: "number" | "image") — A list of items with number or image indicators. Each item can optionally have an action.-ListItem(title: string, subtitle?: string, image?: {src: string, alt: string}, actionLabel?: string, action?: ActionExpression) — Item in a ListBlock — displays a title with an optional subtitle and image. When action is provided, the item becomes clickable.-FollowUpBlock(items: FollowUpItem[]) — List of clickable follow-up suggestions placed at the end of a response-FollowUpItem(text: string) — Clickable follow-up suggestion — when clicked, sends text as user message-- Use ListBlock with ListItem references for numbered, clickable lists.-- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.-- Clicking a ListItem or FollowUpItem sends its text to the LLM as a user message.-- Example: list = ListBlock([item1, item2]) item1 = ListItem("Option A", "Details about A")--### Sections-SectionBlock(sections: SectionItem[], isFoldable?: boolean) — Collapsible accordion sections. Auto-opens sections as they stream in. Use SectionItem for each section.-SectionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock)[]) — Section with a label and collapsible content — used inside SectionBlock-- SectionBlock renders collapsible accordion sections that auto-open as they stream.-- Each section needs a unique `value` id, a `trigger` label, and a `content` array.-- Example: sections = SectionBlock([s1, s2]) s1 = SectionItem("intro", "Introduction", [content1])-- Set isFoldable=false to render sections as flat headers instead of accordion.--### Layout-Tabs(items: TabItem[]) — Tabbed container-TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is tab label, content is array of components-Accordion(items: AccordionItem[]) — Collapsible sections-AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is section title-Steps(items: StepsItem[]) — Step-by-step guide-StepsItem(title: string, details: string) — title and details text for one step-Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: "card" | "sunk") — Horizontal scrollable carousel-- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must have the same structure — same component types in the same order.-- For image carousels use: [[title, image, description, tags], ...] — every slide must follow this exact pattern.-- Use real, publicly accessible image URLs (e.g. https://picsum.photos/seed/KEYWORD/800/500). Never hallucinate image URLs.--### Data Display-TagBlock(tags: string[]) — tags is an array of strings-Tag(text: string, icon?: string, size?: "sm" | "md" | "lg", variant?: "neutral" | "info" | "success" | "warning" | "danger") — Styled tag/badge with optional icon and variant--### Other-Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock | SectionBlock | Tabs | Carousel)[]) — Vertical container for all content in a chat response. Children stack top to bottom automatically.--## Action — Button Behavior--Action([@steps...]) wires button clicks to operations. Steps are @-prefixed built-in actions. Steps execute in order.-Buttons without an explicit Action prop automatically send their label to the assistant (equivalent to Action([@ToAssistant(label)])).--Available steps:-- @ToAssistant("message") — Send a message to the assistant (for conversational buttons like "Tell me more", "Explain this")-- @OpenUrl("https://...") — Navigate to a URL--Example — simple nav:-```-viewBtn = Button("View", Action([@OpenUrl("https://example.com")]))-```--- Action can be assigned to a variable or inlined: Button("Go", onSubmit) and Button("Go", Action([...])) both work--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Table with follow-ups:--root = Card([title, tbl, followUps])-title = TextContent("Top Languages", "large-heavy")-tbl = Table([Col("Language", langs), Col("Users (M)", users), Col("Year", years)])-langs = ["Python", "JavaScript", "Java"]-users = [15.7, 14.2, 12.1]-years = [1991, 1995, 1995]-followUps = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Tell me more about Python")-fu2 = FollowUpItem("Show me a JavaScript comparison")--Example 2 — Clickable list:--root = Card([title, list])-title = TextContent("Choose a topic", "large-heavy")-list = ListBlock([item1, item2, item3])-item1 = ListItem("Getting started", "New to the platform? Start here.")-item2 = ListItem("Advanced features", "Deep dives into powerful capabilities.")-item3 = ListItem("Troubleshooting", "Common issues and how to fix them.")--Example 3 — Image carousel with consistent slides + follow-ups:--root = Card([header, carousel, followups])-header = CardHeader("Featured Destinations", "Discover highlights and best time to visit")-carousel = Carousel([[t1, img1, d1, tags1], [t2, img2, d2, tags2], [t3, img3, d3, tags3]], "card")-t1 = TextContent("Paris, France", "large-heavy")-img1 = ImageBlock("https://picsum.photos/seed/paris/800/500", "Eiffel Tower at night")-d1 = TextContent("City of light — best Apr–Jun and Sep–Oct.", "default")-tags1 = TagBlock(["Landmark", "City Break", "Culture"])-t2 = TextContent("Kyoto, Japan", "large-heavy")-img2 = ImageBlock("https://picsum.photos/seed/kyoto/800/500", "Bamboo grove in Arashiyama")-d2 = TextContent("Temples and bamboo groves — best Mar–Apr and Nov.", "default")-tags2 = TagBlock(["Temples", "Autumn", "Culture"])-t3 = TextContent("Machu Picchu, Peru", "large-heavy")-img3 = ImageBlock("https://picsum.photos/seed/machupicchu/800/500", "Inca citadel in the clouds")-d3 = TextContent("High-altitude Inca citadel — best May–Sep.", "default")-tags3 = TagBlock(["Andes", "Hike", "UNESCO"])-followups = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Show me only beach destinations")-fu2 = FollowUpItem("Turn this into a comparison table")--Example 4 — Form with validation:--root = Card([title, form])-title = TextContent("Contact Us", "large-heavy")-form = Form("contact", btns, [nameField, emailField, msgField])-nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))-emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))-msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))-btns = Buttons([Button("Submit", Action([@ToAssistant("Submit")]), "primary")])--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Card(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Card(children) — children stack vertically automatically. No layout params are needed on Card.-- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.-- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.-- Use ListBlock when presenting a set of options or steps the user can click to select.-- Use SectionBlock to group long responses into collapsible sections — good for reports, FAQs, and structured content.-- Use SectionItem inside SectionBlock: each item needs a unique value id, a trigger (header label), and a content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must use the same component structure in the same order — e.g. all slides: [title, image, description, tags].-- For image carousels, always use real accessible URLs like https://picsum.photos/seed/KEYWORD/800/500. Never hallucinate or invent image URLs.-- For forms, define one FormControl reference per field so controls can stream progressively.-- For forms, always provide the second Form argument with Buttons(...) actions: Form(name, buttons, fields).-- Never nest Form inside Form.diff --git a/examples/openui-chat/src/hooks/use-system-theme.tsx b/examples/openui-chat/src/hooks/use-system-theme.tsxdeleted file mode 100644index 7c110c21d..000000000--- a/examples/openui-chat/src/hooks/use-system-theme.tsx+++ /dev/null@@ -1,41 +0,0 @@-"use client";--import { createContext, useContext, useLayoutEffect, useState } from "react";--type ThemeMode = "light" | "dark";--interface ThemeContextType {- mode: ThemeMode;-}--const ThemeContext = createContext<ThemeContextType | undefined>(undefined);--function getSystemMode(): ThemeMode {- if (typeof window === "undefined") return "light";- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";-}--export function ThemeProvider({ children }: { children: React.ReactNode }) {- const [mode, setMode] = useState<ThemeMode>(getSystemMode);-- useLayoutEffect(() => {- const mq = window.matchMedia("(prefers-color-scheme: dark)");- const handler = (e: MediaQueryListEvent) => setMode(e.matches ? "dark" : "light");- mq.addEventListener("change", handler);- return () => mq.removeEventListener("change", handler);- }, []);-- useLayoutEffect(() => {- document.body.setAttribute("data-theme", mode);- }, [mode]);-- return <ThemeContext.Provider value={{ mode }}>{children}</ThemeContext.Provider>;-}--export function useTheme(): ThemeMode {- const ctx = useContext(ThemeContext);- if (!ctx) {- throw new Error("useTheme must be used within a ThemeProvider");- }- return ctx.mode;-}diff --git a/examples/openui-chat/src/library.ts b/examples/openui-chat/src/library.tsdeleted file mode 100644index c7ceecfc1..000000000--- a/examples/openui-chat/src/library.ts+++ /dev/null@@ -1 +0,0 @@-export { openuiChatLibrary as library, openuiChatPromptOptions as promptOptions } from "@openuidev/react-ui/genui-lib";diff --git a/examples/openui-chat/tsconfig.json b/examples/openui-chat/tsconfig.jsondeleted file mode 100644index cf9c65d3e..000000000--- a/examples/openui-chat/tsconfig.json+++ /dev/null@@ -1,34 +0,0 @@-{- "compilerOptions": {- "target": "ES2017",- "lib": ["dom", "dom.iterable", "esnext"],- "allowJs": true,- "skipLibCheck": true,- "strict": true,- "noEmit": true,- "esModuleInterop": true,- "module": "esnext",- "moduleResolution": "bundler",- "resolveJsonModule": true,- "isolatedModules": true,- "jsx": "react-jsx",- "incremental": true,- "plugins": [- {- "name": "next"- }- ],- "paths": {- "@/*": ["./src/*"]- }- },- "include": [- "next-env.d.ts",- "**/*.ts",- "**/*.tsx",- ".next/types/**/*.ts",- ".next/dev/types/**/*.ts",- "**/*.mts"- ],- "exclude": ["node_modules"]-}diff --git a/examples/openui-cloud/.env.example b/examples/openui-cloud/.env.exampledeleted file mode 100644index 1228d86e7..000000000--- a/examples/openui-cloud/.env.example+++ /dev/null@@ -1,15 +0,0 @@-# openui-cloud env template — copy to .env.local and fill in your own values.-# .env.local is gitignored; this template is committed. Restart `pnpm dev` after edits.--# ── REQUIRED ──────────────────────────────────────────────────────────────────-# Your OpenUI Cloud ORG MASTER KEY. Server-side only — never reaches the browser-# (the routes field-pick the response). The frontend-token route 500s if unset.-THESYS_API_KEY=sk-th-your-org-master-key--# ── Optional (have sensible defaults) ─────────────────────────────────────────-# Bare provider/model id for /api/chat generation (default: openai/gpt-5).-OPENUI_MODEL=openai/gpt-5--# End-user identity the frontend-token route stamps server-side (default: demo-user).-# A real app derives this from its own auth, not an env var.-DEMO_USER_ID=demo-userdiff --git a/examples/openui-cloud/.gitignore b/examples/openui-cloud/.gitignoredeleted file mode 100644index 4e5c4a9a3..000000000--- a/examples/openui-cloud/.gitignore+++ /dev/null@@ -1,49 +0,0 @@-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.--# dependencies-/node_modules-/.pnp-.pnp.*-.yarn/*-!.yarn/patches-!.yarn/plugins-!.yarn/releases-!.yarn/versions--# testing-/coverage--# next.js-/.next/-/out/--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*-yarn-debug.log*-yarn-error.log*-.pnpm-debug.log*--# env files (can opt-in for committing if needed)-.env*-!.env.example--# vercel-.vercel--# local thread index (created at runtime)-/.data/--# typescript-*.tsbuildinfo-next-env.d.ts--# vendored @openuidev/thesys tarball — obtain separately; never commit (the-# package is distributed via the registry, not this repo).-/vendor/diff --git a/examples/openui-cloud/README.md b/examples/openui-cloud/README.mddeleted file mode 100644index 9ba06946c..000000000--- a/examples/openui-cloud/README.md+++ /dev/null@@ -1,42 +0,0 @@-# openui-cloud — OpenUI Cloud integration example--A minimal **Next.js (App Router)** app that hosts OpenUI Cloud: a generative-UI chat that streams and persists them to your OpenUI Cloud org.--## Prerequisites--- Node + `pnpm`.-- An **OpenUI Cloud org master key** (`THESYS_API_KEY`).--## Setup--```bash-pnpm install-cp .env.example .env.local # then fill THESYS_API_KEY-```--| Var | Required | Default | Purpose |-| ---------------- | -------- | ----------------------------- | ---------------------------------------------------------------- |-| `THESYS_API_KEY` | yes | — | Org master key. **Server-side only**; never reaches the browser. |-| `OPENUI_MODEL` | no | `google/gemini-3.6-flash-free` | Bare `provider/model` id for generation. |-| `DEMO_USER_ID` | no | `demo-user` | End-user identity stamped into the frontend token. |--`.env.local` is gitignored. Restart `pnpm dev` after editing env.--## Run--```bash-pnpm dev # http://localhost:3300-```--Open the app, pick a starter prompt ("Quarterly deck" / "Market report"), and watch the artifact render live as it streams.--## Scripts--```bash-pnpm dev # dev server on :3300-pnpm build # production build (output: standalone)-pnpm start # serve the production build on :3300-pnpm typecheck # tsc --noEmit-pnpm lint # eslint-pnpm test # vitest run-```diff --git a/examples/openui-cloud/eslint.config.mjs b/examples/openui-cloud/eslint.config.mjsdeleted file mode 100644index 05e726d1b..000000000--- a/examples/openui-cloud/eslint.config.mjs+++ /dev/null@@ -1,18 +0,0 @@-import { defineConfig, globalIgnores } from "eslint/config";-import nextVitals from "eslint-config-next/core-web-vitals";-import nextTs from "eslint-config-next/typescript";--const eslintConfig = defineConfig([- ...nextVitals,- ...nextTs,- // Override default ignores of eslint-config-next.- globalIgnores([- // Default ignores of eslint-config-next:- ".next/**",- "out/**",- "build/**",- "next-env.d.ts",- ]),-]);--export default eslintConfig;diff --git a/examples/openui-cloud/next.config.ts b/examples/openui-cloud/next.config.tsdeleted file mode 100644index 1f9da2fb1..000000000--- a/examples/openui-cloud/next.config.ts+++ /dev/null@@ -1,26 +0,0 @@-import type { NextConfig } from "next";-import path from "path";--const nextConfig: NextConfig = {- output: "standalone",- turbopack: {- // Pin the Turbopack root to the openui monorepo root so it follows the- // symlinked workspace deps (@openuidev/react-ui, react-lang, lang-core,- // react-headless) that @openuidev/thesys imports — these live in- // openui/packages/* and are otherwise treated as outside the inferred root.- root: path.resolve(process.cwd(), "../.."),- resolveAlias: {- // @openuidev/thesys's icon wrapper imports lucide-react dynamic-icon- // subpaths that the installed lucide-react no longer ships; alias them to- // an empty stub so the bundle compiles (dynamic icons fall back to defaults).- "lucide-react/dynamic": "./stubs/lucide-dynamic.mjs",- "lucide-react/dynamicIconImports.mjs": "./stubs/lucide-dynamic.mjs",- // @openuidev/thesys-server is linked cross-repo and Turbopack won't follow- // a symlink to a target outside the workspace root, so its built entry is- // vendored in-repo (vendor/c1-server) and aliased here.- "@openuidev/thesys-server": "./vendor/c1-server/index.mjs",- },- },-};--export default nextConfig;diff --git a/examples/openui-cloud/package.json b/examples/openui-cloud/package.jsondeleted file mode 100644index d0d9eec03..000000000--- a/examples/openui-cloud/package.json+++ /dev/null@@ -1,58 +0,0 @@-{- "name": "openui-cloud",- "version": "0.1.0",- "private": true,- "scripts": {- "dev": "next dev -p 3300",- "build": "next build",- "start": "next start -p 3300",- "lint": "eslint",- "typecheck": "tsc --noEmit",- "test": "vitest run"- },- "dependencies": {- "@floating-ui/react-dom": "2.1.3",- "@openuidev/thesys": "latest",- "@openuidev/thesys-server": "latest",- "@openuidev/lang-core": "workspace:*",- "@openuidev/react-headless": "workspace:*",- "@openuidev/react-lang": "workspace:*",- "@openuidev/react-ui": "workspace:*",- "@radix-ui/react-dialog": "1.1.15",- "@radix-ui/react-tooltip": "^1.2.0",- "@tanstack/react-table": "8.21.3",- "@tiptap/extension-placeholder": "2.27.2",- "@tiptap/react": "2.27.2",- "@tiptap/starter-kit": "2.27.2",- "clsx": "2.1.1",- "katex": "0.16.44",- "lodash": "4.17.21",- "lucide-react": "^0.575.0",- "mdast-util-find-and-replace": "3.0.2",- "mermaid": "11.15.0",- "next": "16.2.6",- "react": "19.2.3",- "react-dom": "19.2.3",- "recharts": "2.15.4",- "rehype-katex": "7.0.1",- "remark-breaks": "4.0.0",- "remark-gfm": "4.0.1",- "remark-math": "6.0.0",- "tiny-invariant": "1.3.3",- "unist-util-visit": "5.1.0",- "zod": "^4.0.0",- "zustand": "catalog:"- },- "devDependencies": {- "@tailwindcss/postcss": "^4",- "@types/node": "^20",- "@types/react": "^19",- "@types/react-dom": "^19",- "eslint": "^9",- "eslint-config-next": "16.2.6",- "openai": "^6.22.0",- "tailwindcss": "^4",- "typescript": "^5",- "vitest": "^4.1.0"- }-}diff --git a/examples/openui-cloud/public/logos/anthropic-dark.svg b/examples/openui-cloud/public/logos/anthropic-dark.svgdeleted file mode 100644index 9f3de2f76..000000000--- a/examples/openui-cloud/public/logos/anthropic-dark.svg+++ /dev/null@@ -1,16 +0,0 @@-<svg version="1.1" id="Layer_1" xmlns:x="ns_extend;" xmlns:i="ns_ai;" xmlns:graph="ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 92.2 65" style="enable-background:new 0 0 92.2 65;" xml:space="preserve">- <style type="text/css">- .st0{fill:#FFFFFF;}- </style>- <metadata>- <sfw xmlns="ns_sfw;">- <slices>- </slices>- <sliceSourceBounds bottomLeftOrigin="true" height="65" width="92.2" x="-43.7" y="-98">- </sliceSourceBounds>- </sfw>- </metadata>- <path class="st0" d="M66.5,0H52.4l25.7,65h14.1L66.5,0z M25.7,0L0,65h14.4l5.3-13.6h26.9L51.8,65h14.4L40.5,0C40.5,0,25.7,0,25.7,0z- M24.3,39.3l8.8-22.8l8.8,22.8H24.3z">- </path>-</svg>\ No newline at end of filediff --git a/examples/openui-cloud/public/logos/anthropic-light.svg b/examples/openui-cloud/public/logos/anthropic-light.svgdeleted file mode 100644index 135a8b9f3..000000000--- a/examples/openui-cloud/public/logos/anthropic-light.svg+++ /dev/null@@ -1,16 +0,0 @@-<svg version="1.1" id="Layer_1" xmlns:x="ns_extend;" xmlns:i="ns_ai;" xmlns:graph="ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 92.2 65" style="enable-background:new 0 0 92.2 65;" xml:space="preserve">- <style type="text/css">- .st0{fill:#181818;}- </style>- <metadata>- <sfw xmlns="ns_sfw;">- <slices>- </slices>- <sliceSourceBounds bottomLeftOrigin="true" height="65" width="92.2" x="-43.7" y="-98">- </sliceSourceBounds>- </sfw>- </metadata>- <path class="st0" d="M66.5,0H52.4l25.7,65h14.1L66.5,0z M25.7,0L0,65h14.4l5.3-13.6h26.9L51.8,65h14.4L40.5,0C40.5,0,25.7,0,25.7,0z- M24.3,39.3l8.8-22.8l8.8,22.8H24.3z">- </path>-</svg>\ No newline at end of filediff --git a/examples/openui-cloud/public/logos/google-dark.svg b/examples/openui-cloud/public/logos/google-dark.svgdeleted file mode 100644index dde6f728f..000000000--- a/examples/openui-cloud/public/logos/google-dark.svg+++ /dev/null@@ -1,104 +0,0 @@-<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 268.1522 273.8827" overflow="hidden" xml:space="preserve">- <defs>- <linearGradient id="a">- <stop offset="0" stop-color="#0fbc5c"/>- <stop offset="1" stop-color="#0cba65"/>- </linearGradient>- <linearGradient id="g">- <stop offset=".2312727" stop-color="#0fbc5f"/>- <stop offset=".3115468" stop-color="#0fbc5f"/>- <stop offset=".3660131" stop-color="#0fbc5e"/>- <stop offset=".4575163" stop-color="#0fbc5d"/>- <stop offset=".540305" stop-color="#12bc58"/>- <stop offset=".6993464" stop-color="#28bf3c"/>- <stop offset=".7712418" stop-color="#38c02b"/>- <stop offset=".8605665" stop-color="#52c218"/>- <stop offset=".9150327" stop-color="#67c30f"/>- <stop offset="1" stop-color="#86c504"/>- </linearGradient>- <linearGradient id="h">- <stop offset=".1416122" stop-color="#1abd4d"/>- <stop offset=".2475151" stop-color="#6ec30d"/>- <stop offset=".3115468" stop-color="#8ac502"/>- <stop offset=".3660131" stop-color="#a2c600"/>- <stop offset=".4456735" stop-color="#c8c903"/>- <stop offset=".540305" stop-color="#ebcb03"/>- <stop offset=".6156363" stop-color="#f7cd07"/>- <stop offset=".6993454" stop-color="#fdcd04"/>- <stop offset=".7712418" stop-color="#fdce05"/>- <stop offset=".8605661" stop-color="#ffce0a"/>- </linearGradient>- <linearGradient id="f">- <stop offset=".3159041" stop-color="#ff4c3c"/>- <stop offset=".6038179" stop-color="#ff692c"/>- <stop offset=".7268366" stop-color="#ff7825"/>- <stop offset=".884534" stop-color="#ff8d1b"/>- <stop offset="1" stop-color="#ff9f13"/>- </linearGradient>- <linearGradient id="b">- <stop offset=".2312727" stop-color="#ff4541"/>- <stop offset=".3115468" stop-color="#ff4540"/>- <stop offset=".4575163" stop-color="#ff4640"/>- <stop offset=".540305" stop-color="#ff473f"/>- <stop offset=".6993464" stop-color="#ff5138"/>- <stop offset=".7712418" stop-color="#ff5b33"/>- <stop offset=".8605665" stop-color="#ff6c29"/>- <stop offset="1" stop-color="#ff8c18"/>- </linearGradient>- <linearGradient id="d">- <stop offset=".4084578" stop-color="#fb4e5a"/>- <stop offset="1" stop-color="#ff4540"/>- </linearGradient>- <linearGradient id="c">- <stop offset=".1315461" stop-color="#0cba65"/>- <stop offset=".2097843" stop-color="#0bb86d"/>- <stop offset=".2972969" stop-color="#09b479"/>- <stop offset=".3962575" stop-color="#08ad93"/>- <stop offset=".4771242" stop-color="#0aa6a9"/>- <stop offset=".5684245" stop-color="#0d9cc6"/>- <stop offset=".667385" stop-color="#1893dd"/>- <stop offset=".7687273" stop-color="#258bf1"/>- <stop offset=".8585063" stop-color="#3086ff"/>- </linearGradient>- <linearGradient id="e">- <stop offset=".3660131" stop-color="#ff4e3a"/>- <stop offset=".4575163" stop-color="#ff8a1b"/>- <stop offset=".540305" stop-color="#ffa312"/>- <stop offset=".6156363" stop-color="#ffb60c"/>- <stop offset=".7712418" stop-color="#ffcd0a"/>- <stop offset=".8605665" stop-color="#fecf0a"/>- <stop offset=".9150327" stop-color="#fecf08"/>- <stop offset="1" stop-color="#fdcd01"/>- </linearGradient>- <linearGradient xlink:href="#a" id="s" x1="219.6997" y1="329.5351" x2="254.4673" y2="329.5351" gradientUnits="userSpaceOnUse"/>- <radialGradient xlink:href="#b" id="m" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.936885,1.043001,1.455731,2.555422,290.5254,-400.6338)" cx="109.6267" cy="135.8619" fx="109.6267" fy="135.8619" r="71.46001"/>- <radialGradient xlink:href="#c" id="n" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-3.512595,-4.45809,-1.692547,1.260616,870.8006,191.554)" cx="45.25866" cy="279.2738" fx="45.25866" fy="279.2738" r="71.46001"/>- <radialGradient xlink:href="#d" id="l" cx="304.0166" cy="118.0089" fx="304.0166" fy="118.0089" r="47.85445" gradientTransform="matrix(2.064353,-4.926832e-6,-2.901531e-6,2.592041,-297.6788,-151.7469)" gradientUnits="userSpaceOnUse"/>- <radialGradient xlink:href="#e" id="o" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-0.2485783,2.083138,2.962486,0.3341668,-255.1463,-331.1636)" cx="181.001" cy="177.2013" fx="181.001" fy="177.2013" r="71.46001"/>- <radialGradient xlink:href="#f" id="p" cx="207.6733" cy="108.0972" fx="207.6733" fy="108.0972" r="41.1025" gradientTransform="matrix(-1.249206,1.343263,-3.896837,-3.425693,880.5011,194.9051)" gradientUnits="userSpaceOnUse"/>- <radialGradient xlink:href="#g" id="r" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.936885,-1.043001,1.455731,-2.555422,290.5254,838.6834)" cx="109.6267" cy="135.8619" fx="109.6267" fy="135.8619" r="71.46001"/>- <radialGradient xlink:href="#h" id="j" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-0.081402,-1.93722,2.926737,-0.1162508,-215.1345,632.8606)" cx="154.8697" cy="145.9691" fx="154.8697" fy="145.9691" r="71.46001"/>- <filter id="q" x="-.04842873" y="-.0582241" width="1.096857" height="1.116448" color-interpolation-filters="sRGB">- <feGaussianBlur stdDeviation="1.700914"/>- </filter>- <filter id="k" x="-.01670084" y="-.01009856" width="1.033402" height="1.020197" color-interpolation-filters="sRGB">- <feGaussianBlur stdDeviation=".2419367"/>- </filter>- <clipPath clipPathUnits="userSpaceOnUse" id="i">- <path d="M371.3784 193.2406H237.0825v53.4375h77.167c-1.2405 7.5627-4.0259 15.0024-8.1049 21.7862-4.6734 7.7723-10.4511 13.6895-16.373 18.1957-17.7389 13.4983-38.42 16.2584-52.7828 16.2584-36.2824 0-67.2833-23.2865-79.2844-54.9287-.4843-1.1482-.8059-2.3344-1.1975-3.5068-2.652-8.0533-4.101-16.5825-4.101-25.4474 0-9.226 1.5691-18.0575 4.4301-26.3985 11.2851-32.8967 42.9849-57.4674 80.1789-57.4674 7.4811 0 14.6854.8843 21.5173 2.6481 15.6135 4.0309 26.6578 11.9698 33.4252 18.2494l40.834-39.7111c-24.839-22.616-57.2194-36.3201-95.8444-36.3201-30.8782-.00066-59.3863 9.55308-82.7477 25.6992-18.9454 13.0941-34.4833 30.6254-44.9695 50.9861-9.75366 18.8785-15.09441 39.7994-15.09441 62.2934 0 22.495 5.34891 43.6334 15.10261 62.3374v.126c10.3023 19.8567 25.3678 36.9537 43.6783 49.9878 15.9962 11.3866 44.6789 26.5516 84.0307 26.5516 22.6301 0 42.6867-4.0517 60.3748-11.6447 12.76-5.4775 24.0655-12.6217 34.3012-21.8036 13.5247-12.1323 24.1168-27.1388 31.3465-44.4041 7.2297-17.2654 11.097-36.7895 11.097-57.957 0-9.858-.9971-19.8694-2.6881-28.9684Z" fill="#000"/>- </clipPath>- </defs>- <g transform="matrix(0.957922,0,0,0.985255,-90.17436,-78.85577)">- <g clip-path="url(#i)">- <path d="M92.07563 219.9585c.14844 22.14 6.5014 44.983 16.11767 63.4234v.1269c6.9482 13.3919 16.4444 23.9704 27.2604 34.4518l65.326-23.67c-12.3593-6.2344-14.2452-10.0546-23.1048-17.0253-9.0537-9.0658-15.8015-19.4735-20.0038-31.677h-.1693l.1693-.1269c-2.7646-8.0587-3.0373-16.6129-3.1393-25.5029Z" fill="url(#j)" filter="url(#k)"/>- <path d="M237.0835 79.02491c-6.4568 22.52569-3.988 44.42139 0 57.16129 7.4561.0055 14.6388.8881 21.4494 2.6464 15.6135 4.0309 26.6566 11.97 33.424 18.2496l41.8794-40.7256c-24.8094-22.58904-54.6663-37.2961-96.7528-37.33169Z" fill="url(#l)" filter="url(#k)"/>- <path d="M236.9434 78.84678c-31.6709-.00068-60.9107 9.79833-84.8718 26.35902-8.8968 6.149-17.0612 13.2521-24.3311 21.1509-1.9045 17.7429 14.2569 39.5507 46.2615 39.3702 15.5284-17.9373 38.4946-29.5427 64.0561-29.5427.0233 0 .046.0019.0693.002l-1.0439-57.33536c-.0472-.00003-.0929-.00406-.1401-.00406Z" fill="url(#m)" filter="url(#k)"/>- <path d="m341.4751 226.3788-28.2685 19.2848c-1.2405 7.5627-4.0278 15.0023-8.1068 21.7861-4.6734 7.7723-10.4506 13.6898-16.3725 18.196-17.7022 13.4704-38.3286 16.2439-52.6877 16.2553-14.8415 25.1018-17.4435 37.6749 1.0439 57.9342 22.8762-.0167 43.157-4.1174 61.0458-11.7965 12.9312-5.551 24.3879-12.7913 34.7609-22.0964 13.7061-12.295 24.4421-27.5034 31.7688-45.0003 7.3267-17.497 11.2446-37.2822 11.2446-58.7336Z" fill="url(#n)" filter="url(#k)"/>- <path d="M234.9956 191.2104v57.4981h136.0062c1.1962-7.8745 5.1523-18.0644 5.1523-26.5001 0-9.858-.9963-21.899-2.6873-30.998Z" fill="#3086ff" filter="url(#k)"/>- <path d="M128.3894 124.3268c-8.393 9.1191-15.5632 19.326-21.2483 30.3646-9.75351 18.8785-15.09402 41.8295-15.09402 64.3235 0 .317.02642.6271.02855.9436 4.31953 8.2244 59.66647 6.6495 62.45617 0-.0035-.3103-.0387-.6128-.0387-.9238 0-9.226 1.5696-16.0262 4.4306-24.3672 3.5294-10.2885 9.0557-19.7628 16.1223-27.9257 1.6019-2.0309 5.8748-6.3969 7.1214-9.0157.4749-.9975-.8621-1.5574-.9369-1.9085-.0836-.3927-1.8762-.0769-2.2778-.3694-1.2751-.9288-3.8001-1.4138-5.3334-1.8449-3.2772-.9215-8.7085-2.9536-11.7252-5.0601-9.5357-6.6586-24.417-14.6122-33.5047-24.2164Z" fill="url(#o)" filter="url(#k)"/>- <path d="M162.0989 155.8569c22.1123 13.3013 28.4714-6.7139 43.173-12.9771L179.698 90.21568c-9.4075 3.92642-18.2957 8.80465-26.5426 14.50442-12.316 8.5122-23.192 18.8995-32.1763 30.7204Z" fill="url(#p)" filter="url(#q)"/>- <path d="M171.0987 290.222c-29.6829 10.6413-34.3299 11.023-37.0622 29.2903 5.2213 5.0597 10.8312 9.74 16.7926 13.9835 15.9962 11.3867 46.766 26.5517 86.1178 26.5517.0462 0 .0904-.004.1366-.004v-59.1574c-.0298.0001-.064.002-.0938.002-14.7359 0-26.5113-3.8435-38.5848-10.5273-2.9768-1.6479-8.3775 2.7772-11.1229.799-3.7865-2.7284-12.8991 2.3508-16.1833-.9378Z" fill="url(#r)" filter="url(#k)"/>- <path d="M219.6997 299.0227v59.9959c5.506.6402 11.2361 1.0289 17.2472 1.0289 6.0259 0 11.8556-.3073 17.5204-.8723v-59.7481c-6.3482 1.0777-12.3272 1.461-17.4776 1.461-5.9318 0-11.7005-.6858-17.29-1.8654Z" opacity=".5" fill="url(#s)" filter="url(#k)"/>- </g>- </g>-</svg>\ No newline at end of filediff --git a/examples/openui-cloud/public/logos/google-light.svg b/examples/openui-cloud/public/logos/google-light.svgdeleted file mode 100644index dde6f728f..000000000--- a/examples/openui-cloud/public/logos/google-light.svg+++ /dev/null@@ -1,104 +0,0 @@-<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 268.1522 273.8827" overflow="hidden" xml:space="preserve">- <defs>- <linearGradient id="a">- <stop offset="0" stop-color="#0fbc5c"/>- <stop offset="1" stop-color="#0cba65"/>- </linearGradient>- <linearGradient id="g">- <stop offset=".2312727" stop-color="#0fbc5f"/>- <stop offset=".3115468" stop-color="#0fbc5f"/>- <stop offset=".3660131" stop-color="#0fbc5e"/>- <stop offset=".4575163" stop-color="#0fbc5d"/>- <stop offset=".540305" stop-color="#12bc58"/>- <stop offset=".6993464" stop-color="#28bf3c"/>- <stop offset=".7712418" stop-color="#38c02b"/>- <stop offset=".8605665" stop-color="#52c218"/>- <stop offset=".9150327" stop-color="#67c30f"/>- <stop offset="1" stop-color="#86c504"/>- </linearGradient>- <linearGradient id="h">- <stop offset=".1416122" stop-color="#1abd4d"/>- <stop offset=".2475151" stop-color="#6ec30d"/>- <stop offset=".3115468" stop-color="#8ac502"/>- <stop offset=".3660131" stop-color="#a2c600"/>- <stop offset=".4456735" stop-color="#c8c903"/>- <stop offset=".540305" stop-color="#ebcb03"/>- <stop offset=".6156363" stop-color="#f7cd07"/>- <stop offset=".6993454" stop-color="#fdcd04"/>- <stop offset=".7712418" stop-color="#fdce05"/>- <stop offset=".8605661" stop-color="#ffce0a"/>- </linearGradient>- <linearGradient id="f">- <stop offset=".3159041" stop-color="#ff4c3c"/>- <stop offset=".6038179" stop-color="#ff692c"/>- <stop offset=".7268366" stop-color="#ff7825"/>- <stop offset=".884534" stop-color="#ff8d1b"/>- <stop offset="1" stop-color="#ff9f13"/>- </linearGradient>- <linearGradient id="b">- <stop offset=".2312727" stop-color="#ff4541"/>- <stop offset=".3115468" stop-color="#ff4540"/>- <stop offset=".4575163" stop-color="#ff4640"/>- <stop offset=".540305" stop-color="#ff473f"/>- <stop offset=".6993464" stop-color="#ff5138"/>- <stop offset=".7712418" stop-color="#ff5b33"/>- <stop offset=".8605665" stop-color="#ff6c29"/>- <stop offset="1" stop-color="#ff8c18"/>- </linearGradient>- <linearGradient id="d">- <stop offset=".4084578" stop-color="#fb4e5a"/>- <stop offset="1" stop-color="#ff4540"/>- </linearGradient>- <linearGradient id="c">- <stop offset=".1315461" stop-color="#0cba65"/>- <stop offset=".2097843" stop-color="#0bb86d"/>- <stop offset=".2972969" stop-color="#09b479"/>- <stop offset=".3962575" stop-color="#08ad93"/>- <stop offset=".4771242" stop-color="#0aa6a9"/>- <stop offset=".5684245" stop-color="#0d9cc6"/>- <stop offset=".667385" stop-color="#1893dd"/>- <stop offset=".7687273" stop-color="#258bf1"/>- <stop offset=".8585063" stop-color="#3086ff"/>- </linearGradient>- <linearGradient id="e">- <stop offset=".3660131" stop-color="#ff4e3a"/>- <stop offset=".4575163" stop-color="#ff8a1b"/>- <stop offset=".540305" stop-color="#ffa312"/>- <stop offset=".6156363" stop-color="#ffb60c"/>- <stop offset=".7712418" stop-color="#ffcd0a"/>- <stop offset=".8605665" stop-color="#fecf0a"/>- <stop offset=".9150327" stop-color="#fecf08"/>- <stop offset="1" stop-color="#fdcd01"/>- </linearGradient>- <linearGradient xlink:href="#a" id="s" x1="219.6997" y1="329.5351" x2="254.4673" y2="329.5351" gradientUnits="userSpaceOnUse"/>- <radialGradient xlink:href="#b" id="m" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.936885,1.043001,1.455731,2.555422,290.5254,-400.6338)" cx="109.6267" cy="135.8619" fx="109.6267" fy="135.8619" r="71.46001"/>- <radialGradient xlink:href="#c" id="n" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-3.512595,-4.45809,-1.692547,1.260616,870.8006,191.554)" cx="45.25866" cy="279.2738" fx="45.25866" fy="279.2738" r="71.46001"/>- <radialGradient xlink:href="#d" id="l" cx="304.0166" cy="118.0089" fx="304.0166" fy="118.0089" r="47.85445" gradientTransform="matrix(2.064353,-4.926832e-6,-2.901531e-6,2.592041,-297.6788,-151.7469)" gradientUnits="userSpaceOnUse"/>- <radialGradient xlink:href="#e" id="o" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-0.2485783,2.083138,2.962486,0.3341668,-255.1463,-331.1636)" cx="181.001" cy="177.2013" fx="181.001" fy="177.2013" r="71.46001"/>- <radialGradient xlink:href="#f" id="p" cx="207.6733" cy="108.0972" fx="207.6733" fy="108.0972" r="41.1025" gradientTransform="matrix(-1.249206,1.343263,-3.896837,-3.425693,880.5011,194.9051)" gradientUnits="userSpaceOnUse"/>- <radialGradient xlink:href="#g" id="r" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-1.936885,-1.043001,1.455731,-2.555422,290.5254,838.6834)" cx="109.6267" cy="135.8619" fx="109.6267" fy="135.8619" r="71.46001"/>- <radialGradient xlink:href="#h" id="j" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-0.081402,-1.93722,2.926737,-0.1162508,-215.1345,632.8606)" cx="154.8697" cy="145.9691" fx="154.8697" fy="145.9691" r="71.46001"/>- <filter id="q" x="-.04842873" y="-.0582241" width="1.096857" height="1.116448" color-interpolation-filters="sRGB">- <feGaussianBlur stdDeviation="1.700914"/>- </filter>- <filter id="k" x="-.01670084" y="-.01009856" width="1.033402" height="1.020197" color-interpolation-filters="sRGB">- <feGaussianBlur stdDeviation=".2419367"/>- </filter>- <clipPath clipPathUnits="userSpaceOnUse" id="i">- <path d="M371.3784 193.2406H237.0825v53.4375h77.167c-1.2405 7.5627-4.0259 15.0024-8.1049 21.7862-4.6734 7.7723-10.4511 13.6895-16.373 18.1957-17.7389 13.4983-38.42 16.2584-52.7828 16.2584-36.2824 0-67.2833-23.2865-79.2844-54.9287-.4843-1.1482-.8059-2.3344-1.1975-3.5068-2.652-8.0533-4.101-16.5825-4.101-25.4474 0-9.226 1.5691-18.0575 4.4301-26.3985 11.2851-32.8967 42.9849-57.4674 80.1789-57.4674 7.4811 0 14.6854.8843 21.5173 2.6481 15.6135 4.0309 26.6578 11.9698 33.4252 18.2494l40.834-39.7111c-24.839-22.616-57.2194-36.3201-95.8444-36.3201-30.8782-.00066-59.3863 9.55308-82.7477 25.6992-18.9454 13.0941-34.4833 30.6254-44.9695 50.9861-9.75366 18.8785-15.09441 39.7994-15.09441 62.2934 0 22.495 5.34891 43.6334 15.10261 62.3374v.126c10.3023 19.8567 25.3678 36.9537 43.6783 49.9878 15.9962 11.3866 44.6789 26.5516 84.0307 26.5516 22.6301 0 42.6867-4.0517 60.3748-11.6447 12.76-5.4775 24.0655-12.6217 34.3012-21.8036 13.5247-12.1323 24.1168-27.1388 31.3465-44.4041 7.2297-17.2654 11.097-36.7895 11.097-57.957 0-9.858-.9971-19.8694-2.6881-28.9684Z" fill="#000"/>- </clipPath>- </defs>- <g transform="matrix(0.957922,0,0,0.985255,-90.17436,-78.85577)">- <g clip-path="url(#i)">- <path d="M92.07563 219.9585c.14844 22.14 6.5014 44.983 16.11767 63.4234v.1269c6.9482 13.3919 16.4444 23.9704 27.2604 34.4518l65.326-23.67c-12.3593-6.2344-14.2452-10.0546-23.1048-17.0253-9.0537-9.0658-15.8015-19.4735-20.0038-31.677h-.1693l.1693-.1269c-2.7646-8.0587-3.0373-16.6129-3.1393-25.5029Z" fill="url(#j)" filter="url(#k)"/>- <path d="M237.0835 79.02491c-6.4568 22.52569-3.988 44.42139 0 57.16129 7.4561.0055 14.6388.8881 21.4494 2.6464 15.6135 4.0309 26.6566 11.97 33.424 18.2496l41.8794-40.7256c-24.8094-22.58904-54.6663-37.2961-96.7528-37.33169Z" fill="url(#l)" filter="url(#k)"/>- <path d="M236.9434 78.84678c-31.6709-.00068-60.9107 9.79833-84.8718 26.35902-8.8968 6.149-17.0612 13.2521-24.3311 21.1509-1.9045 17.7429 14.2569 39.5507 46.2615 39.3702 15.5284-17.9373 38.4946-29.5427 64.0561-29.5427.0233 0 .046.0019.0693.002l-1.0439-57.33536c-.0472-.00003-.0929-.00406-.1401-.00406Z" fill="url(#m)" filter="url(#k)"/>- <path d="m341.4751 226.3788-28.2685 19.2848c-1.2405 7.5627-4.0278 15.0023-8.1068 21.7861-4.6734 7.7723-10.4506 13.6898-16.3725 18.196-17.7022 13.4704-38.3286 16.2439-52.6877 16.2553-14.8415 25.1018-17.4435 37.6749 1.0439 57.9342 22.8762-.0167 43.157-4.1174 61.0458-11.7965 12.9312-5.551 24.3879-12.7913 34.7609-22.0964 13.7061-12.295 24.4421-27.5034 31.7688-45.0003 7.3267-17.497 11.2446-37.2822 11.2446-58.7336Z" fill="url(#n)" filter="url(#k)"/>- <path d="M234.9956 191.2104v57.4981h136.0062c1.1962-7.8745 5.1523-18.0644 5.1523-26.5001 0-9.858-.9963-21.899-2.6873-30.998Z" fill="#3086ff" filter="url(#k)"/>- <path d="M128.3894 124.3268c-8.393 9.1191-15.5632 19.326-21.2483 30.3646-9.75351 18.8785-15.09402 41.8295-15.09402 64.3235 0 .317.02642.6271.02855.9436 4.31953 8.2244 59.66647 6.6495 62.45617 0-.0035-.3103-.0387-.6128-.0387-.9238 0-9.226 1.5696-16.0262 4.4306-24.3672 3.5294-10.2885 9.0557-19.7628 16.1223-27.9257 1.6019-2.0309 5.8748-6.3969 7.1214-9.0157.4749-.9975-.8621-1.5574-.9369-1.9085-.0836-.3927-1.8762-.0769-2.2778-.3694-1.2751-.9288-3.8001-1.4138-5.3334-1.8449-3.2772-.9215-8.7085-2.9536-11.7252-5.0601-9.5357-6.6586-24.417-14.6122-33.5047-24.2164Z" fill="url(#o)" filter="url(#k)"/>- <path d="M162.0989 155.8569c22.1123 13.3013 28.4714-6.7139 43.173-12.9771L179.698 90.21568c-9.4075 3.92642-18.2957 8.80465-26.5426 14.50442-12.316 8.5122-23.192 18.8995-32.1763 30.7204Z" fill="url(#p)" filter="url(#q)"/>- <path d="M171.0987 290.222c-29.6829 10.6413-34.3299 11.023-37.0622 29.2903 5.2213 5.0597 10.8312 9.74 16.7926 13.9835 15.9962 11.3867 46.766 26.5517 86.1178 26.5517.0462 0 .0904-.004.1366-.004v-59.1574c-.0298.0001-.064.002-.0938.002-14.7359 0-26.5113-3.8435-38.5848-10.5273-2.9768-1.6479-8.3775 2.7772-11.1229.799-3.7865-2.7284-12.8991 2.3508-16.1833-.9378Z" fill="url(#r)" filter="url(#k)"/>- <path d="M219.6997 299.0227v59.9959c5.506.6402 11.2361 1.0289 17.2472 1.0289 6.0259 0 11.8556-.3073 17.5204-.8723v-59.7481c-6.3482 1.0777-12.3272 1.461-17.4776 1.461-5.9318 0-11.7005-.6858-17.29-1.8654Z" opacity=".5" fill="url(#s)" filter="url(#k)"/>- </g>- </g>-</svg>\ No newline at end of filediff --git a/examples/openui-cloud/public/logos/openai-dark.svg b/examples/openui-cloud/public/logos/openai-dark.svgdeleted file mode 100644index 176583a6e..000000000--- a/examples/openui-cloud/public/logos/openai-dark.svg+++ /dev/null@@ -1,10 +0,0 @@-<svg width="256" height="260" viewBox="0 0 256 260" fill="none" xmlns="http://www.w3.org/2000/svg">-<g clip-path="url(#clip0_14305_5189)">-<path d="M239.184 106.203C245.054 88.5242 243.022 69.1734 233.608 53.0999C219.452 28.4588 191 15.7836 163.213 21.7395C147.554 4.32146 123.795 -3.42399 100.879 1.41874C77.9631 6.26146 59.369 22.9573 52.096 45.2214C33.8436 48.9645 18.0902 60.3927 8.86672 76.5818C-5.44349 101.183 -2.19544 132.215 16.8987 153.32C11.0061 170.991 13.0197 190.344 22.4238 206.423C36.5976 231.072 65.068 243.747 92.8696 237.783C105.236 251.708 123.001 259.631 141.624 259.527C170.105 259.552 195.338 241.166 204.038 214.046C222.287 210.296 238.038 198.87 247.267 182.685C261.404 158.128 258.142 127.263 239.184 106.203ZM141.624 242.541C130.256 242.559 119.244 238.575 110.519 231.286L112.054 230.416L163.725 200.591C166.341 199.056 167.954 196.257 167.971 193.224V120.374L189.816 133.01C190.034 133.121 190.186 133.331 190.225 133.573V193.94C190.169 220.758 168.442 242.485 141.624 242.541ZM37.1576 197.931C31.4565 188.086 29.4095 176.547 31.3766 165.342L32.9114 166.263L84.633 196.089C87.2389 197.618 90.4683 197.618 93.0742 196.089L156.255 159.664V184.885C156.244 185.15 156.112 185.395 155.897 185.55L103.562 215.734C80.3055 229.132 50.5925 221.165 37.1576 197.931ZM23.5493 85.3811C29.29 75.4733 38.3512 67.9163 49.1287 64.0479V125.439C49.0892 128.459 50.6965 131.263 53.3238 132.754L116.198 169.026L94.3532 181.662C94.1132 181.789 93.8257 181.789 93.5858 181.662L41.3526 151.53C18.1419 138.076 10.1818 108.386 23.5493 85.1253V85.3811ZM203.015 127.076L139.936 90.4459L161.729 77.8608C161.969 77.7334 162.257 77.7334 162.497 77.8608L214.73 108.045C231.032 117.452 240.437 135.426 238.872 154.183C237.306 172.939 225.051 189.106 207.414 195.68V134.289C207.323 131.277 205.651 128.536 203.015 127.076ZM224.757 94.3851L223.222 93.4642L171.603 63.3828C168.981 61.8444 165.732 61.8444 163.111 63.3828L99.9807 99.8079V74.5866C99.9533 74.3254 100.071 74.0702 100.288 73.9215L152.521 43.789C168.863 34.3744 189.174 35.2529 204.643 46.0435C220.111 56.8341 227.949 75.5924 224.757 94.1805V94.3851ZM88.0606 139.098L66.2158 126.513C65.995 126.379 65.8451 126.154 65.8065 125.899V65.685C65.8314 46.8285 76.7501 29.6846 93.8271 21.6883C110.904 13.692 131.064 16.2835 145.563 28.339L144.028 29.2087L92.358 59.0343C89.7419 60.5688 88.1283 63.3684 88.1118 66.4012L88.0606 139.098ZM99.9295 113.519L128.067 97.3011L156.255 113.519V145.953L128.169 162.171L99.9807 145.953L99.9295 113.519Z" fill="white"/>-</g>-<defs>-<clipPath id="clip0_14305_5189">-<rect width="256" height="260" fill="white"/>-</clipPath>-</defs>-</svg>\ No newline at end of filediff --git a/examples/openui-cloud/public/logos/openai-light.svg b/examples/openui-cloud/public/logos/openai-light.svgdeleted file mode 100644index 25d4ed138..000000000--- a/examples/openui-cloud/public/logos/openai-light.svg+++ /dev/null@@ -1,10 +0,0 @@-<svg width="256" height="260" viewBox="0 0 256 260" fill="none" xmlns="http://www.w3.org/2000/svg">-<g clip-path="url(#clip0_14305_5186)">-<path d="M239.184 106.203C245.054 88.5242 243.022 69.1734 233.608 53.0999C219.452 28.4588 191 15.7836 163.213 21.7395C147.554 4.32146 123.795 -3.42399 100.879 1.41874C77.9631 6.26146 59.369 22.9573 52.096 45.2214C33.8436 48.9645 18.0902 60.3927 8.86672 76.5818C-5.44349 101.183 -2.19544 132.215 16.8987 153.32C11.0061 170.991 13.0197 190.344 22.4238 206.423C36.5976 231.072 65.068 243.747 92.8696 237.783C105.236 251.708 123.001 259.631 141.624 259.527C170.105 259.552 195.338 241.166 204.038 214.046C222.287 210.296 238.038 198.87 247.267 182.685C261.404 158.128 258.142 127.263 239.184 106.203ZM141.624 242.541C130.256 242.559 119.244 238.575 110.519 231.286L112.054 230.416L163.725 200.591C166.341 199.056 167.954 196.257 167.971 193.224V120.374L189.816 133.01C190.034 133.121 190.186 133.331 190.225 133.573V193.94C190.169 220.758 168.442 242.485 141.624 242.541ZM37.1576 197.931C31.4565 188.086 29.4095 176.547 31.3766 165.342L32.9114 166.263L84.633 196.089C87.2389 197.618 90.4683 197.618 93.0742 196.089L156.255 159.664V184.885C156.244 185.15 156.112 185.395 155.897 185.55L103.562 215.734C80.3055 229.132 50.5925 221.165 37.1576 197.931ZM23.5493 85.3811C29.29 75.4733 38.3512 67.9163 49.1287 64.0479V125.439C49.0892 128.459 50.6965 131.263 53.3238 132.754L116.198 169.026L94.3532 181.662C94.1132 181.789 93.8257 181.789 93.5858 181.662L41.3526 151.53C18.1419 138.076 10.1818 108.386 23.5493 85.1253V85.3811ZM203.015 127.076L139.936 90.4459L161.729 77.8608C161.969 77.7334 162.257 77.7334 162.497 77.8608L214.73 108.045C231.032 117.452 240.437 135.426 238.872 154.183C237.306 172.939 225.051 189.106 207.414 195.68V134.289C207.323 131.277 205.651 128.536 203.015 127.076ZM224.757 94.3851L223.222 93.4642L171.603 63.3828C168.981 61.8444 165.732 61.8444 163.111 63.3828L99.9807 99.8079V74.5866C99.9533 74.3254 100.071 74.0702 100.288 73.9215L152.521 43.789C168.863 34.3744 189.174 35.2529 204.643 46.0435C220.111 56.8341 227.949 75.5924 224.757 94.1805V94.3851ZM88.0606 139.098L66.2158 126.513C65.995 126.379 65.8451 126.154 65.8065 125.899V65.685C65.8314 46.8285 76.7501 29.6846 93.8271 21.6883C110.904 13.692 131.064 16.2835 145.563 28.339L144.028 29.2087L92.358 59.0343C89.7419 60.5688 88.1283 63.3684 88.1118 66.4012L88.0606 139.098ZM99.9295 113.519L128.067 97.3011L156.255 113.519V145.953L128.169 162.171L99.9807 145.953L99.9295 113.519Z" fill="black"/>-</g>-<defs>-<clipPath id="clip0_14305_5186">-<rect width="256" height="260" fill="white"/>-</clipPath>-</defs>-</svg>\ No newline at end of filediff --git a/examples/openui-cloud/public/openui-cloud-logo-dark.svg b/examples/openui-cloud/public/openui-cloud-logo-dark.svgdeleted file mode 100644index 682966a97..000000000--- a/examples/openui-cloud/public/openui-cloud-logo-dark.svg+++ /dev/null@@ -1 +0,0 @@-<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><defs><clipPath id="logo-clip"><rect width="120" height="120" fill="white"/></clipPath></defs><g clip-path="url(#logo-clip)"><rect width="120" height="120" fill="white" fill-opacity="0.14"/><image width="113" height="107" href="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEzIiBoZWlnaHQ9IjEwNyIgdmlld0JveD0iMCAwIDExMyAxMDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xOS40OTk4IDgzLjVMMjguOTk5OCA4MS41TDM2Ljk5OTggODcuNUw0My40OTk4IDkwLjVMNTIuOTk5OCA5NS41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uMjA5QzY4Ljk0NDQgMTQuMzM5NSA2OC4zNDA0IDE0LjQxMDkgNjcuODQwNyAxNC40Nzk1QzY3LjMzNyAxNC41NDg3IDY2Ljk0MjggMTQuNjE0OCA2Ni41ODI5IDE0LjczNDRDNjUuODc5NiAxNC45NjggNjUuMjcxMSAxNS40MTYxIDY0LjI2MjYgMTYuNTkyOEM2NC4xMjM2IDE2Ljc4ODYgNjQuMDA3NiAxNi45NTg1IDYzLjkwMzIgMTcuMDkzOEM2My43OTQ3IDE3LjIzNDMgNjMuNjg1NiAxNy4zNTUyIDYzLjU1MjYgMTcuNDUxMkM2My4yODExIDE3LjY0NjkgNjIuOTUwOCAxNy43MDg5IDYyLjQyNzYgMTcuNzQ1MUw2Mi4zNjMyIDE3Ljc1TDYyLjMwNjUgMTcuNzE5N0M2MS43Mzg0IDE3LjQyNjggNjEuNDc0OSAxNi45NzcxIDYxLjQzOTMgMTYuNDczNkM2MS40MDUxIDE1Ljk4ODQgNjEuNTgzNiAxNS40NzgxIDYxLjgzODcgMTUuMDMzMkM2Mi45NzIgMTMuMDU3NiA2NS4wNDEyIDEyLjEwODQgNjcuMDcxMiAxMS40ODE0TDY3LjA5ODUgMTEuNDczNkw2Ny4xMjU5IDExLjQ3MTdaIiBmaWxsPSJibGFjayIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIwLjQ1ODU3MSIvPgo8L3N2Zz4K" transform="translate(-17.2485 53.5449) rotate(-28.6483) scale(1.33716)"/></g></svg>\ No newline at end of filediff --git a/examples/openui-cloud/public/openui-cloud-logo-light.svg b/examples/openui-cloud/public/openui-cloud-logo-light.svgdeleted file mode 100644index cd46bc14b..000000000--- a/examples/openui-cloud/public/openui-cloud-logo-light.svg+++ /dev/null@@ -1 +0,0 @@-<svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><defs><clipPath id="logo-clip"><rect width="120" height="120" fill="white"/></clipPath></defs><g clip-path="url(#logo-clip)"><rect width="120" height="120" fill="black" fill-opacity="0.06"/><image width="113" height="107" href="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEzIiBoZWlnaHQ9IjEwNyIgdmlld0JveD0iMCAwIDExMyAxMDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xOS40OTk4IDgzLjVMMjguOTk5OCA4MS41TDM2Ljk5OTggODcuNUw0My40OTk4IDkwLjVMNTIuOTk5OCA5NS41TDYxLjQ5OTggOTRMNjYuNDk5OCA5MC41SDc0Ljk5OThMODAuOTk5OCA4NC41TDg2Ljk5OTggODUuNUw5My45OTk4IDg2LjVMOTkuOTk5OCA4Mi41TDEwMS41IDc3LjVMMTAzLjUgNzQuNUwxMDggNjkuNVY2MUwxMDUuNSA1NC41TDEwMS41IDUxVjQ2LjVMOTguNDk5OCA0MUw5NS45OTk4IDM5TDkwLjk5OTggMzYuNUw4OS40OTk4IDM0LjVMODguNDk5OCAyOEw4NC45OTk4IDI0TDc5LjQ5OTggMjEuNUw3NC45OTk4IDE4SDY5LjQ5OThMNjIuOTk5OCAxNkg1Ni40OTk4TDQ4Ljk5OTggMTVINDMuNDk5OEwzNi45OTk4IDIwLjVMMzAuOTk5OCAyMS41TDI3Ljk5OTggMjhMMjIuOTk5OCAzMy41TDE0LjQ5OTggMzYuNUw5LjQ5OTc2IDQ2LjVWNTMuNUwzLjk5OTc2IDYyTDUuNDk5NzYgNzEuNUwxMy40OTk4IDc2LjVMMTkuNDk5OCA4My41WiIgZmlsbD0id2hpdGUiIHN0cm9rZT0iYmxhY2siLz4KPHBhdGggZD0iTTIxLjQzMjQgMzAuNjEyMUMyMS45MzIzIDMwLjU1MTUgMjIuODIxNyAzMC40NjEzIDIzLjY0OTIgMzAuNjM4NEMyNC4wNzY5IDMwLjczMDEgMjQuNjAxIDMwLjkxNTMgMjUuMDUxNSAzMS4zMTMyQzI1LjUzNjYgMzEuNzQ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) rotate(-28.6483) scale(1.33716)"/></g></svg>\ No newline at end of filediff --git a/examples/openui-cloud/src/app/api/chat/route.ts b/examples/openui-cloud/src/app/api/chat/route.tsdeleted file mode 100644index f649505c0..000000000--- a/examples/openui-cloud/src/app/api/chat/route.ts+++ /dev/null@@ -1,105 +0,0 @@-import { envOr, requiredEnv } from "@/lib/env";-import { DEFAULT_MODEL, resolveRequestedModel } from "@/lib/models";-import { artifactTool, createResponsesInstructions } from "@openuidev/thesys-server";-import OpenAI from "openai";-import type { ResponseInputItem } from "openai/resources/responses/responses";--/**- * Generation plane: browser → THIS route → OpenUI Cloud- * POST /v1/embed/responses with the org MASTER key (server env only).- * Reads/edits go browser → /v1/* with the fct_ token instead (see- * /api/frontend-token + the storage adapter). The artifact tool runs- * server-side, so this route is a pure pipe — no client-tool loop.- */-export async function POST(req: Request) {- const {- threadId,- input,- model: requestedModel,- } = (await req.json()) as {- threadId?: string;- input?: ResponseInputItem[];- model?: unknown;- };-- if (!threadId) {- return Response.json(- { error: { message: "threadId is required — create the conversation first" } },- { status: 400 },- );- }- if (!Array.isArray(input) || input.length === 0) {- return Response.json(- { error: { message: "input must be a non-empty ResponseInputItem[]" } },- { status: 400 },- );- }-- const client = new OpenAI({- // responses.create() POSTs to `${baseURL}/responses` → /v1/embed/responses.- baseURL: `https://api.thesys.dev/v1/embed`,- apiKey: requiredEnv("THESYS_API_KEY"), // sent as Authorization: Bearer …- });-- let stream: AsyncIterable<Record<string, unknown>>;- try {- stream = (await client.responses.create(- {- model: resolveRequestedModel(requestedModel, envOr("OPENUI_MODEL", DEFAULT_MODEL)),- conversation: threadId, // store:true persists to the conversation- input,- stream: true,- store: true,- // `artifacts` makes each entry carry library_version:'0.1.0' → openui-lang.- // Bare artifactTool() would fall back to the legacy <artifact> XML model.- // eslint-disable-next-line @typescript-eslint/no-explicit-any- tools: [- artifactTool({ artifacts: ["slides", "report"] }),- {- type: "web_search",- },- {- type: "image_search",- },- ],- instructions: createResponsesInstructions(),- // eslint-disable-next-line @typescript-eslint/no-explicit-any- } as any,- { signal: req.signal }, // propagate browser aborts (stop button / tab close)- )) as unknown as AsyncIterable<Record<string, unknown>>;- } catch (err) {- // The SDK surfaces upstream HTTP errors (e.g. 403) as APIError.- const e = err as { status?: number; error?: unknown; message?: string };- return Response.json(- { error: e.error ?? { message: e.message ?? "upstream error" } },- { status: e.status ?? 502 },- );- }-- // Re-emit each SDK event as SSE for the browser adapter.- const encoder = new TextEncoder();- const body = new ReadableStream<Uint8Array>({- async start(controller) {- try {- for await (const event of stream) {- controller.enqueue(encoder.encode(`data: ${JSON.stringify(event)}\n\n`));- }- } catch (err) {- const message = err instanceof Error ? err.message : String(err);- controller.enqueue(- encoder.encode(`data: ${JSON.stringify({ type: "error", message })}\n\n`),- );- } finally {- controller.close();- }- },- });-- return new Response(body, {- headers: {- "Content-Type": "text/event-stream",- "Cache-Control": "no-cache, no-transform",- Connection: "keep-alive",- },- });-}diff --git a/examples/openui-cloud/src/app/api/frontend-token/route.ts b/examples/openui-cloud/src/app/api/frontend-token/route.tsdeleted file mode 100644index 41f57fe81..000000000--- a/examples/openui-cloud/src/app/api/frontend-token/route.ts+++ /dev/null@@ -1,23 +0,0 @@-import { envOr, requiredEnv } from "@/lib/env";--export async function POST() {- const upstream = await fetch(`https://api.thesys.dev/v1/frontend-tokens`, {- method: "POST",- headers: {- "Content-Type": "application/json",- Authorization: `Bearer ${requiredEnv("THESYS_API_KEY")}`,- },- body: JSON.stringify({ user_id: envOr("DEMO_USER_ID", "demo-user") }),- });-- if (!upstream.ok) {- const errText = await upstream- .text()- .catch(() => "There was an error in the response from the upstream service.");- console.error("[frontend-token] mint failed:", upstream.status, errText);- return Response.json({ error: { message: errText } }, { status: 502 });- }-- const { token, expires_at } = (await upstream.json()) as { token: string; expires_at: number };- return Response.json({ token, expires_at });-}diff --git a/examples/openui-cloud/src/app/globals.css b/examples/openui-cloud/src/app/globals.cssdeleted file mode 100644index 722819cc8..000000000--- a/examples/openui-cloud/src/app/globals.css+++ /dev/null@@ -1,19 +0,0 @@-@import "tailwindcss";--/* Make room for the ModelSwitcher in the thread/mobile headers. */-.openui-cloud-thread-header .openui-agent-thread-header__title {- display: none;-}-.openui-cloud-thread-header .openui-agent-thread-header__actions {- flex: 1 1 auto;- min-width: 0;- justify-content: space-between;-}-.openui-cloud-mobile-header .openui-agent-mobile-header-logo-container {- display: none;-}-.openui-cloud-mobile-header .openui-agent-mobile-header-actions {- flex: 1 1 auto;- min-width: 0;- justify-content: space-between;-}diff --git a/examples/openui-cloud/src/app/layout.tsx b/examples/openui-cloud/src/app/layout.tsxdeleted file mode 100644index 7e44b0451..000000000--- a/examples/openui-cloud/src/app/layout.tsx+++ /dev/null@@ -1,22 +0,0 @@-import type { Metadata } from "next";-import { ThemeProvider } from "@/hooks/use-system-theme";-import "./globals.css";--export const metadata: Metadata = {- title: "OpenUI Chat",- description: "Generative UI Chat with OpenAI SDK",-};--export default function RootLayout({- children,-}: Readonly<{- children: React.ReactNode;-}>) {- return (- <html lang="en">- <body>- <ThemeProvider>{children}</ThemeProvider>- </body>- </html>- );-}diff --git a/examples/openui-cloud/src/app/page.tsx b/examples/openui-cloud/src/app/page.tsxdeleted file mode 100644index 12b79e89d..000000000--- a/examples/openui-cloud/src/app/page.tsx+++ /dev/null@@ -1,13 +0,0 @@-import "@openuidev/react-ui/components.css";-import "@openuidev/thesys/styles.css";--import { CloudChat } from "@/components/cloud-chat";--// The chat surface is client-only (browser storage + fct_ token minting on-// mount). Rendering it dynamically keeps Turbopack from statically prerendering-// the heavy artifact-renderer SSR chunk at build time.-export const dynamic = "force-dynamic";--export default function Page() {- return <CloudChat />;-}diff --git a/examples/openui-cloud/src/components/cloud-chat.tsx b/examples/openui-cloud/src/components/cloud-chat.tsxdeleted file mode 100644index ca66f3f17..000000000--- a/examples/openui-cloud/src/components/cloud-chat.tsx+++ /dev/null@@ -1,192 +0,0 @@-"use client";--import {- defineArtifactCategories,- openAIConversationMessageFormat,- openAIResponsesAdapter,- type ChatLLM,-} from "@openuidev/react-headless";-import { AgentInterface, type PromptTemplate } from "@openuidev/react-ui";-import { FileText, Presentation } from "lucide-react";-import { useCallback, useEffect } from "react";-// chatLibrary, useOpenuiCloudStorage, and the artifact renderers all come from the-// migrated SDK (@openuidev/thesys). Its artifact parser now reads the program from-// the tool INPUT channel (args.artifact_content), so the rich preview renders live-// during/after generation without a refresh.-import { usePersistedModel } from "@/hooks/use-persisted-model";-import { useTheme } from "@/hooks/use-system-theme";-import { DEFAULT_MODEL } from "@/lib/models";-import {- chatLibrary,- presentationArtifactRenderer,- reportArtifactRenderer,- useOpenuiCloudStorage,-} from "@openuidev/thesys";--import { ModelSwitcher } from "./model-switcher";--const LIGHT_LOGO_URL = "/openui-cloud-logo-light.svg";-const DARK_LOGO_URL = "/openui-cloud-logo-dark.svg";--const PROMPT_TEMPLATES: PromptTemplate[] = [- {- displayText: "Create a presentation",- prompt: "Create a presentation about ",- icon: <Presentation size={16} />,- completions: [- {- displayText: "The rise of reusable rockets and commercial spaceflight",- prompt: "the rise of reusable rockets and commercial spaceflight",- icon: <></>,- },- {- displayText: "How Formula 1 became a global business",- prompt: "how Formula 1 became a global business",- icon: <></>,- },- {- displayText: "Why electric vehicles are changing transportation",- prompt: "why electric vehicles are changing transportation",- icon: <></>,- },- ],- },- {- displayText: "Write a report",- prompt: "Write a report on ",- icon: <FileText size={16} />,- completions: [- {- displayText: "Global coffee market trends and consumer preferences",- prompt: "global coffee market trends and consumer preferences",- icon: <></>,- },- {- displayText: "The state of the electric vehicle market in 2026",- prompt: "the state of the electric vehicle market in 2026",- icon: <></>,- },- {- displayText: "Global travel trends and emerging destinations",- prompt: "global travel trends and emerging destinations",- icon: <></>,- },- ],- },-];--const { artifactRenderers, artifactCategories } = defineArtifactCategories([- {- name: "Presentations",- renderers: [presentationArtifactRenderer],- icon: <Presentation size="1em" />,- },- {- name: "Reports",- renderers: [reportArtifactRenderer],- icon: <FileText size="1em" />,- },-]);--// Read at send-time (mutated by the ModelSwitcher) so the static llm always-// posts the current selection. Kept in sync with the persisted model below.-let currentModel = DEFAULT_MODEL;--const llm: ChatLLM = {- send: async ({ threadId, messages, signal }) => {- // The API replays full history via the conversation linkage — send only- // the latest message.- const latest = messages.slice(-1);- return fetch("/api/chat", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- threadId,- input: openAIConversationMessageFormat.toApi(latest),- model: currentModel,- }),- signal,- });- },- streamProtocol: openAIResponsesAdapter(),-};--export function CloudChat() {- const mode = useTheme();- const [selectedModel, setSelectedModel] = usePersistedModel();-- // useOpenuiCloudStorage: browser ChatStorage over /v1, fct_-authenticated. As a- // hook the storage + its fct_ token manager are created on mount (not at module- // load), so the token fetch follows this component's lifecycle.- const storage = useOpenuiCloudStorage({- // Backend mint proxy (POST → { token, expires_at }); the hook caches +- // refreshes it and injects x-thesys-frontend-token on every /v1 call.- token: "/api/frontend-token",- // Env-driven so a local stack can be targeted; defaults to prod when unset.- apiBaseUrl: "https://api.thesys.dev",- features: { artifact: true },- });-- // Keep the module-level model (read by llm.send) in sync with the selection.- useEffect(() => {- currentModel = selectedModel;- }, [selectedModel]);-- const handleModelChange = useCallback(- (model: string) => {- currentModel = model;- setSelectedModel(model);- },- [setSelectedModel],- );-- return (- <div className="h-screen w-screen overflow-hidden relative">- <AgentInterface- storage={storage}- llm={llm}- componentLibrary={chatLibrary}- artifactRenderers={artifactRenderers}- artifactCategories={artifactCategories}- logoUrl={mode === "dark" ? DARK_LOGO_URL : LIGHT_LOGO_URL}- scrollVariant="always"- scrollOnLoad={false}- theme={{ mode }}- starters={[- {- displayText: "Relive the FIFA World Cup 2026",- prompt: "Relive the FIFA World Cup 2026.",- icon: <></>,- },- {- displayText: "Create a report on global coffee trends",- prompt: "Create a report on global coffee trends.",- icon: <></>,- },- {- displayText: "Help me plan my next vacation",- prompt: "Help me plan my next vacation.",- icon: <></>,- },- ]}- >- <AgentInterface.MobileHeader- className="openui-cloud-mobile-header"- agentName=""- actions={- <ModelSwitcher selectedModel={selectedModel} onModelChange={handleModelChange} />- }- />- <AgentInterface.ThreadHeader className="openui-cloud-thread-header">- <ModelSwitcher selectedModel={selectedModel} onModelChange={handleModelChange} />- </AgentInterface.ThreadHeader>- <AgentInterface.Welcome- title="Good to see you"- description="What's on your mind today?"- promptTemplates={PROMPT_TEMPLATES}- glowAnimation- />- </AgentInterface>- </div>- );-}diff --git a/examples/openui-cloud/src/components/model-switcher/ModelBadge.tsx b/examples/openui-cloud/src/components/model-switcher/ModelBadge.tsxdeleted file mode 100644index cc67f17c9..000000000--- a/examples/openui-cloud/src/components/model-switcher/ModelBadge.tsx+++ /dev/null@@ -1,44 +0,0 @@-import { type ModelOption } from "@/lib/models";--import { getModelBadge } from "./utils";--// Recommended = info (blue), Free = success (green), both from the @openuidev-// design tokens. Labels use neutral primary text while the leading dot carries-// the semantic color. Trigger and row differ only in shape/size.-const BADGE_DOT_COLORS = {- recommended: "bg-[var(--openui-border-info-emphasis)]",- free: "bg-[var(--openui-border-success-emphasis)]",-} as const;--export function ModelBadge({- model,- variant,-}: {- model: ModelOption;- variant: "trigger" | "row";-}) {- const badge = getModelBadge(model);- if (!badge) return null;-- if (variant === "trigger") {- return (- <span className="inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-[var(--openui-border-default)] bg-transparent">- <span- aria-hidden="true"- className={`h-1.5 w-1.5 rounded-full ${BADGE_DOT_COLORS[badge.kind]}`}- />- <span className="sr-only">{badge.label}</span>- </span>- );- }-- return (- <span className="absolute right-2 top-1/2 inline-flex -translate-y-1/2 shrink-0 items-center gap-1 rounded-full border border-[var(--openui-border-default)] bg-transparent px-2 py-0.5 text-xs font-normal text-[color:var(--openui-text-neutral-primary)]">- <span- aria-hidden="true"- className={`h-1.5 w-1.5 shrink-0 rounded-full ${BADGE_DOT_COLORS[badge.kind]}`}- />- {badge.label}- </span>- );-}diff --git a/examples/openui-cloud/src/components/model-switcher/ModelRow.tsx b/examples/openui-cloud/src/components/model-switcher/ModelRow.tsxdeleted file mode 100644index ea79046a3..000000000--- a/examples/openui-cloud/src/components/model-switcher/ModelRow.tsx+++ /dev/null@@ -1,16 +0,0 @@-import { type ModelOption } from "@/lib/models";--import { ModelBadge } from "./ModelBadge";-import { ProviderLogo } from "./ProviderLogo";--// A single row inside the dropdown: provider logo, name, and a Recommended/Free-// chip.-export function ModelRow({ model }: { model: ModelOption }) {- return (- <span className="flex w-full min-w-0 items-center gap-2.5">- <ProviderLogo provider={model.provider} />- <span className="min-w-0 flex-1 truncate">{model.name}</span>- <ModelBadge model={model} variant="row" />- </span>- );-}diff --git a/examples/openui-cloud/src/components/model-switcher/ProviderLogo.tsx b/examples/openui-cloud/src/components/model-switcher/ProviderLogo.tsxdeleted file mode 100644index d9d65c6d6..000000000--- a/examples/openui-cloud/src/components/model-switcher/ProviderLogo.tsx+++ /dev/null@@ -1,23 +0,0 @@-"use client";--import { useTheme } from "@/hooks/use-system-theme";--export function ProviderLogo({- provider,- size = "md",-}: {- provider: string;- size?: "sm" | "md";-}) {- const mode = useTheme();- const box = size === "sm" ? "h-5 w-5 rounded-md" : "h-7 w-7 rounded-lg";- const img = size === "sm" ? "h-3 w-3" : "h-4 w-4";- return (- <span- aria-hidden="true"- className={`inline-flex shrink-0 items-center justify-center bg-[var(--openui-border-default)] ${box}`}- >- <img src={`/logos/${provider.toLowerCase()}-${mode}.svg`} alt="" className={img} />- </span>- );-}diff --git a/examples/openui-cloud/src/components/model-switcher/TriggerContent.tsx b/examples/openui-cloud/src/components/model-switcher/TriggerContent.tsxdeleted file mode 100644index d952c600e..000000000--- a/examples/openui-cloud/src/components/model-switcher/TriggerContent.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { type ModelOption } from "@/lib/models";--import { ModelBadge } from "./ModelBadge";-import { ProviderLogo } from "./ProviderLogo";--// Neutral skeleton shown until the client reads the persisted model from-// localStorage, so a refresh doesn't flash the default model.-function TriggerSkeleton() {- return (- <>- <span- aria-hidden="true"- className="h-5 w-5 shrink-0 animate-pulse rounded-md bg-[var(--openui-border-default)]"- />- <span- aria-hidden="true"- className="h-4 w-24 animate-pulse rounded bg-[var(--openui-border-default)]"- />- </>- );-}--export function TriggerContent({- option,- fallbackLabel,- hydrated,-}: {- option: ModelOption | undefined;- fallbackLabel: string;- hydrated: boolean;-}) {- if (!hydrated) return <TriggerSkeleton />;-- return (- <>- {option ? <ProviderLogo provider={option.provider} size="sm" /> : null}- <span className="min-w-0 flex-1 truncate">{option?.name ?? fallbackLabel}</span>- {option ? <ModelBadge model={option} variant="trigger" /> : null}- </>- );-}diff --git a/examples/openui-cloud/src/components/model-switcher/UsagePolicy.tsx b/examples/openui-cloud/src/components/model-switcher/UsagePolicy.tsxdeleted file mode 100644index 74e9c2185..000000000--- a/examples/openui-cloud/src/components/model-switcher/UsagePolicy.tsx+++ /dev/null@@ -1,46 +0,0 @@-"use client";--import { Info } from "lucide-react";-import { useState } from "react";-import { createPortal } from "react-dom";--// The Free-tier "Usage policy" hint. A Radix Tooltip does not open when nested-// inside the Radix Select dropdown (the Select intercepts the pointer events the-// tooltip relies on), so this is a small state-driven tooltip portaled to the-// body — it isn't clipped by the dropdown's overflow and opens on plain hover.-export function UsagePolicy() {- const [anchor, setAnchor] = useState<{ top: number; left: number } | null>(null);-- return (- <span- onMouseEnter={(event) => {- const rect = event.currentTarget.getBoundingClientRect();- setAnchor({ top: rect.top, left: rect.right });- }}- onMouseLeave={() => setAnchor(null)}- onClick={(event) => event.stopPropagation()}- className="flex cursor-default items-center gap-1 text-xs font-normal text-gray-400"- >- <Info className="h-3 w-3" />- Usage policy- {anchor && typeof document !== "undefined"- ? createPortal(- <div- role="tooltip"- // Positioned relative to the trigger; anchor coords are dynamic so- // stay inline. Everything else is Tailwind arbitrary values pointing- // at the @openuidev design tokens (same tokens globals.css uses for- // callouts/dialogs), so the tooltip is theme-aware and consistent.- style={{ position: "fixed", top: anchor.top - 8, left: anchor.left }}- className="z-[100000] w-[280px] -translate-x-full -translate-y-full rounded-[var(--openui-radius-l)] border border-[var(--openui-border-interactive)] bg-[var(--openui-foreground)] px-[var(--openui-space-s)] py-[var(--openui-space-xs)] text-left shadow-[var(--openui-shadow-m)]"- >- <p className="[font:var(--openui-text-body-sm)] tracking-[var(--openui-text-body-sm-letter-spacing)] text-[color:var(--openui-text-neutral-secondary)]">- Data from free models may be used for training. Rate limits apply.- </p>- </div>,- document.body,- )- : null}- </span>- );-}diff --git a/examples/openui-cloud/src/components/model-switcher/index.tsx b/examples/openui-cloud/src/components/model-switcher/index.tsxdeleted file mode 100644index eecb691ac..000000000--- a/examples/openui-cloud/src/components/model-switcher/index.tsx+++ /dev/null@@ -1,90 +0,0 @@-"use client";--import {- Select,- SelectContent,- SelectGroup,- SelectItem,- SelectLabel,- SelectSeparator,- SelectTrigger,-} from "@openuidev/react-ui";-import { useMemo } from "react";--import { MODEL_OPTIONS } from "@/lib/models";--import { ModelRow } from "./ModelRow";-import { TriggerContent } from "./TriggerContent";-import { UsagePolicy } from "./UsagePolicy";-import { splitModels, useHydrated } from "./utils";--interface ModelSwitcherProps {- selectedModel: string;- onModelChange: (model: string) => void;-}--export function ModelSwitcher({ selectedModel, onModelChange }: ModelSwitcherProps) {- const hydrated = useHydrated();- const selectedOption =- MODEL_OPTIONS.find((model) => model.id === selectedModel) ?? MODEL_OPTIONS[0];- const { paidGroups, freeModels } = useMemo(() => splitModels(MODEL_OPTIONS), []);-- return (- <div className="min-w-0">- <Select value={selectedModel} onValueChange={onModelChange} size="sm">- <SelectTrigger- aria-label="Select model"- title={hydrated ? (selectedOption?.id ?? selectedModel) : undefined}- className="flex! h-9! w-auto! max-w-[240px]! items-center! justify-start! gap-1.5! rounded-lg! border! border-[var(--openui-border-interactive)]! bg-[var(--openui-foreground)]! px-2.5! text-sm! text-[color:var(--openui-text-neutral-primary)]! shadow-[var(--openui-shadow-s)]"- >- <TriggerContent- option={selectedOption}- fallbackLabel={selectedModel}- hydrated={hydrated}- />- </SelectTrigger>- <SelectContent- align="start"- className="max-h-[360px]! w-[min(360px,calc(100vw-32px))]! overflow-auto! rounded-[var(--openui-radius-xl)]!"- >- {paidGroups.map(([provider, providerModels], index) => (- <SelectGroup key={provider}>- {index > 0 ? <SelectSeparator /> : null}- {providerModels.map((model) => (- <SelectItem- key={model.id}- value={model.id}- showTick={false}- className="rounded-[var(--openui-radius-m)]!"- >- <ModelRow model={model} />- </SelectItem>- ))}- </SelectGroup>- ))}- {freeModels.length > 0 ? (- <SelectGroup>- <SelectSeparator />- <SelectLabel className="flex items-center justify-between gap-2">- <span className="font-semibold text-[color:var(--openui-text-success-primary)]">- Free- </span>- <UsagePolicy />- </SelectLabel>- {freeModels.map((model) => (- <SelectItem- key={model.id}- value={model.id}- showTick={false}- className="rounded-[var(--openui-radius-m)]!"- >- <ModelRow model={model} />- </SelectItem>- ))}- </SelectGroup>- ) : null}- </SelectContent>- </Select>- </div>- );-}diff --git a/examples/openui-cloud/src/components/model-switcher/utils.ts b/examples/openui-cloud/src/components/model-switcher/utils.tsdeleted file mode 100644index 7fd17b46b..000000000--- a/examples/openui-cloud/src/components/model-switcher/utils.ts+++ /dev/null@@ -1,58 +0,0 @@-import { useSyncExternalStore } from "react";--import { type ModelOption } from "@/lib/models";--// Order the paid provider groups the way the console lists them.-export const PROVIDER_ORDER: ModelOption["provider"][] = ["Anthropic", "OpenAI", "Google"];-// The model highlighted with a "Recommended" chip.-export const RECOMMENDED_MODEL_ID = "anthropic/claude-opus-4-8";--// Group paid models by provider (in PROVIDER_ORDER) and pull the free models-// into their own list so the dropdown can render a dedicated "Free" section.-export function splitModels(models: ModelOption[]): {- paidGroups: [string, ModelOption[]][];- freeModels: ModelOption[];-} {- const freeModels: ModelOption[] = [];- const paid = new Map<string, ModelOption[]>();-- for (const model of models) {- if (model.badge === "Free") {- freeModels.push(model);- continue;- }- const group = paid.get(model.provider) ?? [];- group.push(model);- paid.set(model.provider, group);- }-- const paidGroups = PROVIDER_ORDER.filter((provider) => paid.has(provider)).map(- (provider) => [provider, paid.get(provider) as ModelOption[]] as [string, ModelOption[]],- );-- return { paidGroups, freeModels };-}--export type ModelBadgeInfo = { label: string; kind: "recommended" | "free" };--// Single source of truth for which chip a model gets (used by both the trigger-// and the dropdown rows).-export function getModelBadge(model: ModelOption): ModelBadgeInfo | null {- if (model.id === RECOMMENDED_MODEL_ID) return { label: "Recommended", kind: "recommended" };- if (model.badge === "Free") return { label: model.badge, kind: "free" };- return null;-}--// The persisted model lives in localStorage, so the server (and the first-// client render) can only fall back to DEFAULT_MODEL. Showing that default and-// then swapping to the stored model produces a visible flash on refresh. This-// hook returns false on the server / during hydration and true once mounted, so-// the trigger can render a neutral skeleton until the real value is known.-const subscribeNoop = () => () => {};-export function useHydrated(): boolean {- return useSyncExternalStore(- subscribeNoop,- () => true,- () => false,- );-}diff --git a/examples/openui-cloud/src/hooks/use-persisted-model.ts b/examples/openui-cloud/src/hooks/use-persisted-model.tsdeleted file mode 100644index 3e773f02d..000000000--- a/examples/openui-cloud/src/hooks/use-persisted-model.ts+++ /dev/null@@ -1,45 +0,0 @@-"use client";--import { useCallback, useEffect, useState } from "react";--import { DEFAULT_MODEL, MODEL_OPTIONS } from "@/lib/models";--// The chosen model is saved in localStorage so it survives a page refresh.-const MODEL_STORAGE_KEY = "openui-cloud:selected-model";--export function getPersistedModel(): string {- if (typeof window === "undefined") return DEFAULT_MODEL;- try {- const saved = window.localStorage.getItem(MODEL_STORAGE_KEY);- if (saved && MODEL_OPTIONS.some((option) => option.id === saved)) {- return saved;- }- } catch {- // Ignore storage failures (private mode, quota, disabled storage).- }- return DEFAULT_MODEL;-}--// Like useState, but the value is remembered across refreshes.-export function usePersistedModel(): readonly [string, (model: string) => void] {-- const [model, setModel] = useState(DEFAULT_MODEL);-- useEffect(() => {-- // eslint-disable-next-line react-hooks/set-state-in-effect- setModel(getPersistedModel());- }, []);-- // Update the model and save the new choice to localStorage.- const selectModel = useCallback((next: string) => {- setModel(next);- try {- window.localStorage.setItem(MODEL_STORAGE_KEY, next);- } catch {- // Ignore storage failures (private mode, quota, disabled storage).- }- }, []);-- return [model, selectModel] as const;-}diff --git a/examples/openui-cloud/src/hooks/use-system-theme.tsx b/examples/openui-cloud/src/hooks/use-system-theme.tsxdeleted file mode 100644index 7c110c21d..000000000--- a/examples/openui-cloud/src/hooks/use-system-theme.tsx+++ /dev/null@@ -1,41 +0,0 @@-"use client";--import { createContext, useContext, useLayoutEffect, useState } from "react";--type ThemeMode = "light" | "dark";--interface ThemeContextType {- mode: ThemeMode;-}--const ThemeContext = createContext<ThemeContextType | undefined>(undefined);--function getSystemMode(): ThemeMode {- if (typeof window === "undefined") return "light";- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";-}--export function ThemeProvider({ children }: { children: React.ReactNode }) {- const [mode, setMode] = useState<ThemeMode>(getSystemMode);-- useLayoutEffect(() => {- const mq = window.matchMedia("(prefers-color-scheme: dark)");- const handler = (e: MediaQueryListEvent) => setMode(e.matches ? "dark" : "light");- mq.addEventListener("change", handler);- return () => mq.removeEventListener("change", handler);- }, []);-- useLayoutEffect(() => {- document.body.setAttribute("data-theme", mode);- }, [mode]);-- return <ThemeContext.Provider value={{ mode }}>{children}</ThemeContext.Provider>;-}--export function useTheme(): ThemeMode {- const ctx = useContext(ThemeContext);- if (!ctx) {- throw new Error("useTheme must be used within a ThemeProvider");- }- return ctx.mode;-}diff --git a/examples/openui-cloud/src/lib/env.ts b/examples/openui-cloud/src/lib/env.tsdeleted file mode 100644index 815c584ee..000000000--- a/examples/openui-cloud/src/lib/env.ts+++ /dev/null@@ -1,12 +0,0 @@-// Env reads happen at REQUEST time (inside handlers), never at module scope:-// tests can vi.stubEnv per-case and `next build` doesn't bake values in.--export function requiredEnv(name: string): string {- const value = process.env[name];- if (!value) throw new Error(`Missing required env var: ${name}`);- return value;-}--export function envOr(name: string, fallback: string): string {- return process.env[name] || fallback;-}diff --git a/examples/openui-cloud/src/lib/models.ts b/examples/openui-cloud/src/lib/models.tsdeleted file mode 100644index db6a5f9d7..000000000--- a/examples/openui-cloud/src/lib/models.ts+++ /dev/null@@ -1,45 +0,0 @@-export const DEFAULT_MODEL = "google/gemini-3.6-flash-free";--export interface ModelOption {- id: string;- name: string;- provider: "Anthropic" | "Google" | "OpenAI";- badge?: string;-}--export const MODEL_OPTIONS: ModelOption[] = [- { provider: "Google", id: "google/gemini-3.1-pro-free", name: "Gemini 3.1 Pro", badge: "Free" },- {- provider: "Google",- id: "google/gemini-3.1-flash-lite-free",- name: "Gemini 3.1 Flash Lite",- badge: "Free",- },- {- provider: "Google",- id: "google/gemini-3.6-flash-free",- name: "Gemini 3.6 Flash",- badge: "Free",- },- { provider: "Google", id: "google/gemini-3.6-flash", name: "Gemini 3.6 Flash" },- {- provider: "Google",- id: "google/gemini-3.5-flash-free",- name: "Gemini 3.5 Flash",- badge: "Free",- },- { provider: "Google", id: "google/gemini-3.5-flash", name: "Gemini 3.5 Flash" },- { provider: "Google", id: "google/gemini-3.1-pro-preview", name: "Gemini 3.1 Pro Preview" },- { provider: "OpenAI", id: "openai/gpt-5.5", name: "GPT-5.5" },- { provider: "OpenAI", id: "openai/gpt-5.4", name: "GPT-5.4" },- { provider: "OpenAI", id: "openai/gpt-5.4-mini", name: "GPT-5.4 mini" },- { provider: "OpenAI", id: "openai/gpt-5.2", name: "GPT-5.2" },- { provider: "Anthropic", id: "anthropic/claude-sonnet-5", name: "Claude Sonnet 5" },- { provider: "Anthropic", id: "anthropic/claude-sonnet-4.6", name: "Claude Sonnet 4.6" },- { provider: "Anthropic", id: "anthropic/claude-opus-4-8", name: "Claude Opus 4.8" },- { provider: "Anthropic", id: "anthropic/claude-opus-4-7", name: "Claude Opus 4.7" },-];--export function resolveRequestedModel(model: unknown, fallback = DEFAULT_MODEL): string {- return typeof model === "string" && model.trim() ? model : fallback;-}diff --git a/examples/openui-cloud/stubs/lucide-dynamic.mjs b/examples/openui-cloud/stubs/lucide-dynamic.mjsdeleted file mode 100644index b49cea677..000000000--- a/examples/openui-cloud/stubs/lucide-dynamic.mjs+++ /dev/null@@ -1,7 +0,0 @@-// Build shim for the example. The installed `lucide-react` version no longer-// ships the dynamic-icon subpaths ('lucide-react/dynamic' and-// 'lucide-react/dynamicIconImports.mjs') that @openuidev/thesys's icon wrapper-// imports. next.config aliases those specifiers to this empty stub so the-// bundle compiles; dynamic icons fall back to their defaults.-export const dynamicIconImports = {};-export default {};diff --git a/examples/openui-cloud/tsconfig.json b/examples/openui-cloud/tsconfig.jsondeleted file mode 100644index cf9c65d3e..000000000--- a/examples/openui-cloud/tsconfig.json+++ /dev/null@@ -1,34 +0,0 @@-{- "compilerOptions": {- "target": "ES2017",- "lib": ["dom", "dom.iterable", "esnext"],- "allowJs": true,- "skipLibCheck": true,- "strict": true,- "noEmit": true,- "esModuleInterop": true,- "module": "esnext",- "moduleResolution": "bundler",- "resolveJsonModule": true,- "isolatedModules": true,- "jsx": "react-jsx",- "incremental": true,- "plugins": [- {- "name": "next"- }- ],- "paths": {- "@/*": ["./src/*"]- }- },- "include": [- "next-env.d.ts",- "**/*.ts",- "**/*.tsx",- ".next/types/**/*.ts",- ".next/dev/types/**/*.ts",- "**/*.mts"- ],- "exclude": ["node_modules"]-}diff --git a/examples/openui-dashboard/.env.example b/examples/openui-dashboard/.env.exampledeleted file mode 100644index 0aa4768b4..000000000--- a/examples/openui-dashboard/.env.example+++ /dev/null@@ -1,2 +0,0 @@-# Simulated network delay for mock tool calls (ms). Increase to test loading states.-NEXT_PUBLIC_TOOL_DELAY_MS=diff --git a/examples/openui-dashboard/.gitignore b/examples/openui-dashboard/.gitignoredeleted file mode 100644index 7b8da95f5..000000000--- a/examples/openui-dashboard/.gitignore+++ /dev/null@@ -1,42 +0,0 @@-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.--# dependencies-/node_modules-/.pnp-.pnp.*-.yarn/*-!.yarn/patches-!.yarn/plugins-!.yarn/releases-!.yarn/versions--# testing-/coverage--# next.js-/.next/-/out/--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*-yarn-debug.log*-yarn-error.log*-.pnpm-debug.log*--# env files (can opt-in for committing if needed)-.env*-!.env.example--# vercel-.vercel--# typescript-*.tsbuildinfo-next-env.d.tsdiff --git a/examples/openui-dashboard/README.md b/examples/openui-dashboard/README.mddeleted file mode 100644index ad2d96af8..000000000--- a/examples/openui-dashboard/README.md+++ /dev/null@@ -1,44 +0,0 @@-# OpenUI Dashboard Example--A live dashboard builder powered by [OpenUI](https://openui.com) and openui-lang. Chat with an LLM to create interactive dashboards with real-time data from MCP tools.--## Features--- **Conversational dashboard building** — describe what you want, get a live dashboard-- **MCP tool integration** — Query live data sources (PostHog, server health, tickets)-- **Streaming rendering** — dashboards appear progressively as the LLM generates code-- **Edit support** — refine dashboards through follow-up messages-- **16 built-in tools** — analytics, monitoring, ticket management, and more--## Getting Started--```bash-# Set your LLM API key-export OPENAI_API_KEY=sk-...-# Or use any OpenAI-compatible provider:-# export LLM_API_KEY=your-key-# export LLM_BASE_URL=https://openrouter.ai/api/v1-# export LLM_MODEL=your-model--# Install dependencies-pnpm install--# Run the development server-pnpm dev-```--Open [http://localhost:3000](http://localhost:3000) to start building dashboards.--## Optional: PostHog Integration--For real analytics data, set PostHog credentials:--```bash-export POSTHOG_API_KEY=phx_...-export POSTHOG_PROJECT_ID=12345-```--## Learn More--- [OpenUI Documentation](https://openui.com/docs)-- [OpenUI GitHub](https://github.com/thesysdev/openui)diff --git a/examples/openui-dashboard/eslint.config.mjs b/examples/openui-dashboard/eslint.config.mjsdeleted file mode 100644index 05e726d1b..000000000--- a/examples/openui-dashboard/eslint.config.mjs+++ /dev/null@@ -1,18 +0,0 @@-import { defineConfig, globalIgnores } from "eslint/config";-import nextVitals from "eslint-config-next/core-web-vitals";-import nextTs from "eslint-config-next/typescript";--const eslintConfig = defineConfig([- ...nextVitals,- ...nextTs,- // Override default ignores of eslint-config-next.- globalIgnores([- // Default ignores of eslint-config-next:- ".next/**",- "out/**",- "build/**",- "next-env.d.ts",- ]),-]);--export default eslintConfig;diff --git a/examples/openui-dashboard/next.config.ts b/examples/openui-dashboard/next.config.tsdeleted file mode 100644index 7e1f0ae21..000000000--- a/examples/openui-dashboard/next.config.ts+++ /dev/null@@ -1,8 +0,0 @@-import type { NextConfig } from "next";--const nextConfig: NextConfig = {- output: "standalone",- turbopack: {},-};--export default nextConfig;diff --git a/examples/openui-dashboard/package.json b/examples/openui-dashboard/package.jsondeleted file mode 100644index a05bbefc2..000000000--- a/examples/openui-dashboard/package.json+++ /dev/null@@ -1,36 +0,0 @@-{- "name": "openui-dashboard",- "version": "0.1.0",- "private": true,- "scripts": {- "generate:prompt": "pnpm --filter @openuidev/cli build && pnpm exec openui generate src/library.ts --json-schema --out src/generated/component-spec.json",- "dev": "pnpm generate:prompt && next dev",- "build": "next build",- "start": "next start",- "lint": "eslint"- },- "dependencies": {- "@modelcontextprotocol/sdk": "^1.27.1",- "@openuidev/cli": "workspace:*",- "@openuidev/lang-core": "workspace:*",- "@openuidev/react-headless": "workspace:*",- "@openuidev/react-lang": "workspace:*",- "@openuidev/react-ui": "workspace:*",- "lucide-react": "^0.575.0",- "next": "16.2.6",- "openai": "^6.22.0",- "react": "19.2.3",- "react-dom": "19.2.3",- "zod": "^4.0.0"- },- "devDependencies": {- "@tailwindcss/postcss": "^4",- "@types/node": "catalog:",- "@types/react": "^19",- "@types/react-dom": "^19",- "eslint": "^9",- "eslint-config-next": "16.2.6",- "tailwindcss": "^4",- "typescript": "^5"- }-}diff --git a/examples/openui-dashboard/postcss.config.mjs b/examples/openui-dashboard/postcss.config.mjsdeleted file mode 100644index 61e36849c..000000000--- a/examples/openui-dashboard/postcss.config.mjs+++ /dev/null@@ -1,7 +0,0 @@-const config = {- plugins: {- "@tailwindcss/postcss": {},- },-};--export default config;diff --git a/examples/openui-dashboard/src/app/api/chat/route.ts b/examples/openui-dashboard/src/app/api/chat/route.tsdeleted file mode 100644index 3c8ad07dc..000000000--- a/examples/openui-dashboard/src/app/api/chat/route.ts+++ /dev/null@@ -1,58 +0,0 @@-import { NextRequest } from "next/server";-import OpenAI from "openai";-import type { ChatCompletionMessageParam } from "openai/resources/chat/completions.mjs";-import { generatePrompt } from "@openuidev/lang-core";-import { promptSpec } from "@/prompt-config";-import { tools as toolDefs } from "@/tools";--const SSE_HEADERS = {- "Content-Type": "text/event-stream",- "Cache-Control": "no-cache, no-transform",- Connection: "keep-alive",-} as const;--function buildSystemPrompt(): string {- return generatePrompt({- ...promptSpec,- tools: toolDefs.map((t) => t.toToolSpec()),- });-}--export async function POST(req: NextRequest) {- const { messages } = (await req.json()) as { messages: ChatCompletionMessageParam[] };-- const apiKey = process.env.LLM_API_KEY || process.env.OPENAI_API_KEY || "";- const baseURL = process.env.LLM_BASE_URL || "https://api.openai.com/v1";- const model = process.env.LLM_MODEL || "gpt-5.5";-- if (!apiKey) {- return new Response(- JSON.stringify({ error: "Set LLM_API_KEY or OPENAI_API_KEY env var" }),- { status: 500 },- );- }-- const client = new OpenAI({ apiKey, baseURL });- const stream = await client.chat.completions.create({- model,- messages: [{ role: "system" as const, content: buildSystemPrompt() }, ...messages],- stream: true,- // reasoning: { effort: "low" },- });-- const encoder = new TextEncoder();- const readable = new ReadableStream({- async start(controller) {- try {- for await (const chunk of stream) {- controller.enqueue(encoder.encode(`data: ${JSON.stringify(chunk)}\n\n`));- }- } finally {- controller.enqueue(encoder.encode("data: [DONE]\n\n"));- controller.close();- }- },- });-- return new Response(readable, { headers: SSE_HEADERS });-}diff --git a/examples/openui-dashboard/src/app/api/mcp/route.ts b/examples/openui-dashboard/src/app/api/mcp/route.tsdeleted file mode 100644index d12e4b3d5..000000000--- a/examples/openui-dashboard/src/app/api/mcp/route.ts+++ /dev/null@@ -1,60 +0,0 @@-/**- * MCP Server — exposes all tools via MCP protocol.- *- * Tool definitions live in src/tools.ts (shared with /api/chat).- * This file only sets up the MCP transport and registers tools.- */-import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";-import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";-import { tools } from "@/tools";--// ── MCP Server factory ───────────────────────────────────────────────────────--function createServer(): McpServer {- const server = new McpServer(- { name: "openui-tools", version: "1.0.0" },- );-- for (const tool of tools) {- server.registerTool(tool.name, {- description: tool.description,- inputSchema: tool.inputSchema,- }, async (args) => ({- content: [{ type: "text" as const, text: JSON.stringify(await tool.execute(args)) }],- }));- }-- return server;-}--// ── Request handler ──────────────────────────────────────────────────────────--async function handleMcpRequest(request: Request): Promise<Response> {- const transport = new WebStandardStreamableHTTPServerTransport({- sessionIdGenerator: undefined, // stateless- enableJsonResponse: true,- });- const server = createServer();- await server.connect(transport);-- try {- return await transport.handleRequest(request);- } finally {- await transport.close();- await server.close();- }-}--// ── Next.js route exports ────────────────────────────────────────────────────--export async function POST(req: Request) {- return handleMcpRequest(req);-}--export async function GET(req: Request) {- return handleMcpRequest(req);-}--export async function DELETE(req: Request) {- return handleMcpRequest(req);-}diff --git a/examples/openui-dashboard/src/app/dashboard/page.tsx b/examples/openui-dashboard/src/app/dashboard/page.tsxdeleted file mode 100644index ad7911616..000000000--- a/examples/openui-dashboard/src/app/dashboard/page.tsx+++ /dev/null@@ -1,9 +0,0 @@-"use client";--import { openuiLibrary } from "@openuidev/react-ui/genui-lib";-import { OpenUIDashboard } from "@/components/OpenUIDashboard";-import { STARTERS } from "@/starters";--export default function DashboardPage() {- return <OpenUIDashboard library={openuiLibrary} starters={STARTERS} />;-}diff --git a/examples/openui-dashboard/src/app/globals.css b/examples/openui-dashboard/src/app/globals.cssdeleted file mode 100644index 0ea67bbe0..000000000--- a/examples/openui-dashboard/src/app/globals.css+++ /dev/null@@ -1,7 +0,0 @@-@import "tailwindcss";-@import "@openuidev/react-ui/styles/index.css";--@keyframes openui-loading-bar {- 0% { background-position: 200% 0; }- 100% { background-position: -200% 0; }-}diff --git a/examples/openui-dashboard/src/app/layout.tsx b/examples/openui-dashboard/src/app/layout.tsxdeleted file mode 100644index 7e44b0451..000000000--- a/examples/openui-dashboard/src/app/layout.tsx+++ /dev/null@@ -1,22 +0,0 @@-import type { Metadata } from "next";-import { ThemeProvider } from "@/hooks/use-system-theme";-import "./globals.css";--export const metadata: Metadata = {- title: "OpenUI Chat",- description: "Generative UI Chat with OpenAI SDK",-};--export default function RootLayout({- children,-}: Readonly<{- children: React.ReactNode;-}>) {- return (- <html lang="en">- <body>- <ThemeProvider>{children}</ThemeProvider>- </body>- </html>- );-}diff --git a/examples/openui-dashboard/src/app/page.tsx b/examples/openui-dashboard/src/app/page.tsxdeleted file mode 100644index 2faa5d843..000000000--- a/examples/openui-dashboard/src/app/page.tsx+++ /dev/null@@ -1 +0,0 @@-export { default } from "./dashboard/page";diff --git a/examples/openui-dashboard/src/components/OpenUIDashboard/ConversationPanel.tsx b/examples/openui-dashboard/src/components/OpenUIDashboard/ConversationPanel.tsxdeleted file mode 100644index 7a53d75fd..000000000--- a/examples/openui-dashboard/src/components/OpenUIDashboard/ConversationPanel.tsx+++ /dev/null@@ -1,200 +0,0 @@-"use client";--import { useEffect, useRef, useState } from "react";-import { MarkDownRenderer } from "@openuidev/react-ui";-import { useDashboard } from "./context";--export function ConversationPanel() {- const {- conversation, isStreaming, streamingText, streamingHasCode,- llmTools, toolCalls, elapsed, dashboardCode, send,- } = useDashboard();- const [input, setInput] = useState("");- const inputRef = useRef<HTMLInputElement>(null);- const chatEndRef = useRef<HTMLDivElement>(null);-- const hasDashboard = dashboardCode !== null;- const canSend = input.trim().length > 0 && !isStreaming;- const pendingTools = toolCalls.filter((t) => t.status === "pending");-- useEffect(() => { inputRef.current?.focus(); }, [isStreaming]);- useEffect(() => { chatEndRef.current?.scrollIntoView({ behavior: "smooth" }); }, [conversation]);-- const handleSend = () => {- if (!canSend) return;- send(input);- setInput("");- };-- return (- <div style={{- width: "340px", minWidth: "340px", borderLeft: "1px solid #e5e7eb",- background: "white", display: "flex", flexDirection: "column",- }}>- <div style={{ padding: "12px 16px", borderBottom: "1px solid #e5e7eb", fontSize: "13px", fontWeight: 600, color: "#374151" }}>- Conversation- </div>-- <div style={{ flex: 1, overflow: "auto", padding: "12px 16px" }}>- {conversation.map((msg, i) => (- <div key={i} style={{ marginBottom: "12px" }}>- {msg.role === "user" ? (- <div style={{- background: "#f0f4ff", color: "#1e40af", padding: "8px 12px",- borderRadius: "10px", fontSize: "13px", lineHeight: "1.4",- marginLeft: "40px",- }}>{msg.content}</div>- ) : (- <div style={{ marginRight: "20px" }}>- {msg.llmTools && msg.llmTools.length > 0 && (- <div style={{- padding: "6px 10px", borderRadius: "8px", marginBottom: "6px",- background: "#f0f4ff", border: "1px solid #dbeafe", fontSize: "11px",- }}>- <div style={{ color: "#1d4ed8", fontWeight: 600, marginBottom: "3px", display: "flex", alignItems: "center", gap: "4px" }}>- <span>🔍</span> Queried data- </div>- <div style={{ display: "flex", flexWrap: "wrap", gap: "3px" }}>- {msg.llmTools.map((tc, j) => (- <span key={j} style={{- padding: "1px 6px", borderRadius: "4px",- background: tc.status === "done" ? "#dbeafe" : "#e0e7ff",- color: "#1e40af", fontSize: "10px",- }}>✓ {tc.name}</span>- ))}- </div>- </div>- )}- {msg.text && (- <div style={{- background: "#f9fafb", border: "1px solid #e5e7eb",- padding: "8px 12px", borderRadius: "10px", fontSize: "13px",- lineHeight: "1.5", color: "#374151",- }}>- <MarkDownRenderer textMarkdown={msg.text} />- </div>- )}- {msg.hasCode && (- <div style={{- display: "inline-flex", alignItems: "center", gap: "4px",- padding: "2px 8px", borderRadius: "8px", fontSize: "11px",- background: "#ecfdf5", color: "#059669", marginTop: msg.text ? "4px" : "0",- }}>✓ dashboard updated</div>- )}- {msg.runtimeTools && msg.runtimeTools.length > 0 && (- <div style={{- marginTop: "6px", padding: "6px 10px", borderRadius: "8px",- background: "#f0fdf4", border: "1px solid #bbf7d0", fontSize: "11px",- }}>- <div style={{ color: "#15803d", fontWeight: 600, marginBottom: "3px", display: "flex", alignItems: "center", gap: "4px" }}>- <span>⚡</span> Live data fetched- </div>- <div style={{ display: "flex", flexWrap: "wrap", gap: "3px" }}>- {msg.runtimeTools.map((tc, j) => (- <span key={j} style={{- padding: "1px 6px", borderRadius: "4px",- background: tc.status === "done" ? "#dcfce7" : tc.status === "error" ? "#fef2f2" : "#fef3c7",- color: tc.status === "done" ? "#166534" : tc.status === "error" ? "#991b1b" : "#92400e",- fontSize: "10px",- }}>{tc.status === "done" ? "✓" : tc.status === "error" ? "✗" : "⏳"} {tc.tool}</span>- ))}- </div>- </div>- )}- {!msg.text && !msg.hasCode && !msg.llmTools?.length && (- <div style={{ fontSize: "12px", color: "#9ca3af", fontStyle: "italic" }}>- (empty response)- </div>- )}- </div>- )}- </div>- ))}-- {isStreaming && (- <div style={{ marginBottom: "12px", marginRight: "20px" }}>- {llmTools.length > 0 && llmTools.some((t) => t.status === "calling") && (- <div style={{ fontSize: "11px", color: "#1d4ed8", marginBottom: "4px", display: "flex", alignItems: "center", gap: "4px" }}>- <span>🔍</span>- <span>Querying {llmTools.filter((t) => t.status === "calling").length} tool{llmTools.filter((t) => t.status === "calling").length > 1 ? "s" : ""}...</span>- </div>- )}- {streamingText ? (- <div style={{- background: "#f9fafb", border: "1px solid #e5e7eb",- padding: "8px 12px", borderRadius: "10px", fontSize: "13px",- lineHeight: "1.5", color: "#374151",- }}>- <MarkDownRenderer textMarkdown={streamingText} />- </div>- ) : (- <div style={{- background: "#f9fafb", border: "1px solid #e5e7eb",- padding: "8px 12px", borderRadius: "10px", fontSize: "13px", color: "#059669",- }}>- {llmTools.length > 0 && llmTools.some((t) => t.status === "calling")- ? "fetching data before generating..."- : elapsed- ? `${(elapsed / 1000).toFixed(1)}s — ${streamingHasCode ? "writing code..." : "thinking..."}`- : "thinking..."}- </div>- )}- {streamingHasCode && (- <div style={{- display: "inline-flex", alignItems: "center", gap: "4px",- padding: "2px 8px", borderRadius: "8px", fontSize: "11px",- background: "#ecfdf5", color: "#059669", marginTop: "4px",- }}>⟳ updating dashboard...</div>- )}- {toolCalls.length > 0 && (- <div style={{- marginTop: "4px", padding: "4px 8px", borderRadius: "6px",- background: "#f8fafc", border: "1px solid #e2e8f0", fontSize: "10px",- }}>- <div style={{ display: "flex", flexWrap: "wrap", gap: "3px", alignItems: "center" }}>- <span style={{ color: "#64748b", fontWeight: 600, textTransform: "uppercase", letterSpacing: "0.5px" }}>- {pendingTools.length > 0 ? "Fetching" : "Loaded"}- </span>- {toolCalls.map((tc, j) => (- <span key={j} style={{- padding: "1px 5px", borderRadius: "3px",- background: tc.status === "pending" ? "#fef3c7" : tc.status === "done" ? "#ecfdf5" : "#fef2f2",- color: tc.status === "pending" ? "#92400e" : tc.status === "done" ? "#065f46" : "#991b1b",- }}>{tc.status === "pending" ? "⏳" : "✓"} {tc.tool}</span>- ))}- </div>- </div>- )}- </div>- )}- <div ref={chatEndRef} />- </div>-- <div style={{ padding: "12px 16px", borderTop: "1px solid #e5e7eb" }}>- <div style={{ display: "flex", gap: "8px" }}>- <input- ref={inputRef}- value={input}- onChange={(e) => setInput(e.target.value)}- onKeyDown={(e) => { if (e.key === "Enter") handleSend(); }}- placeholder={hasDashboard ? "Ask or edit..." : "Describe a dashboard..."}- disabled={isStreaming}- style={{- flex: 1, padding: "8px 12px", border: "1px solid #d1d5db",- borderRadius: "8px", fontSize: "13px", outline: "none",- }}- />- <button- onClick={handleSend}- disabled={!canSend}- style={{- padding: "8px 16px", border: "none", borderRadius: "8px",- background: canSend ? "#111" : "#d1d5db", color: "white",- cursor: canSend ? "pointer" : "not-allowed", fontSize: "13px", fontWeight: 600,- }}- >{isStreaming ? "..." : "Send"}</button>- </div>- </div>- </div>- );-}diff --git a/examples/openui-dashboard/src/components/OpenUIDashboard/DashboardCanvas.tsx b/examples/openui-dashboard/src/components/OpenUIDashboard/DashboardCanvas.tsxdeleted file mode 100644index 1a3d25433..000000000--- a/examples/openui-dashboard/src/components/OpenUIDashboard/DashboardCanvas.tsx+++ /dev/null@@ -1,80 +0,0 @@-"use client";--import { useState } from "react";-import { Renderer } from "@openuidev/react-lang";-import type { Library } from "@openuidev/react-lang";-import { ThemeProvider } from "@openuidev/react-ui";-import { useDashboard } from "./context";--interface DashboardCanvasProps {- library: Library;-}--export function DashboardCanvas({ library }: DashboardCanvasProps) {- const { dashboardCode, isStreaming, elapsed, toolProvider, send } = useDashboard();- const [showSource, setShowSource] = useState(false);-- if (!dashboardCode && !isStreaming) return null;-- return (- <>- {dashboardCode && !isStreaming && (- <div style={{ display: "flex", gap: "12px", marginBottom: "8px", fontSize: "12px", color: "#888" }}>- {elapsed && <span>{(elapsed / 1000).toFixed(1)}s</span>}- <button onClick={() => setShowSource(!showSource)} style={{- background: "none", border: "none", cursor: "pointer",- color: "#2563eb", fontSize: "12px", padding: 0,- }}>{showSource ? "Hide code" : "View code"}</button>- </div>- )}-- {dashboardCode && showSource && (- <pre style={{- background: "#1e1e2e", color: "#cdd6f4", padding: "12px", borderRadius: "8px",- fontSize: "11px", overflow: "auto", whiteSpace: "pre-wrap", maxHeight: "250px",- lineHeight: "1.4", marginBottom: "12px",- }}>{dashboardCode}</pre>- )}-- {dashboardCode && (- <div style={{- border: "1px solid #e2e5e9", borderRadius: "12px", padding: "20px",- background: "white", minHeight: "200px", boxShadow: "0 1px 3px rgba(0,0,0,0.04)",- }}>- <ThemeProvider>- <Renderer- response={dashboardCode}- library={library}- isStreaming={isStreaming}- toolProvider={toolProvider}- queryLoader={- <div style={{- position: "absolute", top: 0, left: 0, right: 0, height: "3px",- background: "linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%)",- backgroundSize: "200% 100%",- animation: "openui-loading-bar 1.5s ease-in-out infinite",- zIndex: 10,- }} />- }- onAction={(event) => {- if (event.type === "continue_conversation") {- const contextText = typeof event.params?.context === "string"- ? event.params.context : "";- const text = contextText || event.humanFriendlyMessage || "";- if (text) send(text);- }- }}- />- </ThemeProvider>- </div>- )}-- {isStreaming && !dashboardCode && (- <div style={{ textAlign: "center", padding: "40px", color: "#888" }}>- <div style={{ fontSize: "14px" }}>Generating dashboard...</div>- {elapsed && <div style={{ fontSize: "12px", marginTop: "4px" }}>{(elapsed / 1000).toFixed(1)}s</div>}- </div>- )}- </>- );-}diff --git a/examples/openui-dashboard/src/components/OpenUIDashboard/StarterGrid.tsx b/examples/openui-dashboard/src/components/OpenUIDashboard/StarterGrid.tsxdeleted file mode 100644index 37f2122cc..000000000--- a/examples/openui-dashboard/src/components/OpenUIDashboard/StarterGrid.tsx+++ /dev/null@@ -1,40 +0,0 @@-"use client";--import { useDashboard } from "./context";-import type { Starter } from "@/starters";--interface StarterGridProps {- starters: Starter[];-}--export function StarterGrid({ starters }: StarterGridProps) {- const { send } = useDashboard();-- return (- <div style={{ maxWidth: "700px", margin: "60px auto" }}>- <div style={{ textAlign: "center", marginBottom: "32px" }}>- <div style={{ fontSize: "40px", marginBottom: "8px" }}>⚡</div>- <div style={{ fontSize: "16px", fontWeight: 600, color: "#111" }}>Build a dashboard</div>- <div style={{ fontSize: "13px", color: "#888", marginTop: "4px" }}>Pick a starter or type your own prompt</div>- </div>- <div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(200px, 1fr))", gap: "10px" }}>- {starters.map((s) => (- <button key={s.prompt} onClick={() => send(s.prompt)} style={{- padding: "12px", border: "1px solid #e2e5e9", borderRadius: "10px",- background: "white", cursor: "pointer", fontSize: "13px", textAlign: "left",- transition: "all 0.15s", lineHeight: "1.4",- }}- onMouseEnter={(e) => { e.currentTarget.style.borderColor = "#111"; }}- onMouseLeave={(e) => { e.currentTarget.style.borderColor = "#e2e5e9"; }}- >- <span style={{ fontSize: "16px" }}>{s.icon}</span>- <div style={{ fontWeight: 600, marginTop: "4px", fontSize: "13px" }}>{s.label}</div>- <div style={{ color: "#888", fontSize: "11px", marginTop: "2px" }}>- {s.prompt.length > 50 ? s.prompt.slice(0, 50) + "..." : s.prompt}- </div>- </button>- ))}- </div>- </div>- );-}diff --git a/examples/openui-dashboard/src/components/OpenUIDashboard/context.tsx b/examples/openui-dashboard/src/components/OpenUIDashboard/context.tsxdeleted file mode 100644index d9aecd414..000000000--- a/examples/openui-dashboard/src/components/OpenUIDashboard/context.tsx+++ /dev/null@@ -1,224 +0,0 @@-"use client";--import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";-import type { ReactNode } from "react";-import type { McpClientLike } from "@openuidev/react-lang";-import { mergeStatements } from "@openuidev/react-lang";-import { wrapMcpClient } from "@/lib/mcp-tracker";-import type { ToolCallEntry } from "@/lib/mcp-tracker";-import { streamChat } from "@/lib/llm-stream";-import type { LLMToolCall } from "@/lib/llm-stream";-import { extractCodeOnly, extractText, responseHasCode, isPureCode } from "@/lib/response-parser";-import type { ChatMessage } from "./types";--// ── Context shape ────────────────────────────────────────────────────────────--interface DashboardContextValue {- conversation: ChatMessage[];- dashboardCode: string | null;- isStreaming: boolean;- streamingText: string;- streamingHasCode: boolean;- elapsed: number | null;- llmTools: LLMToolCall[];- toolCalls: ToolCallEntry[];- toolProvider: McpClientLike | null;- send: (text: string) => void;- clear: () => void;-}--const DashboardContext = createContext<DashboardContextValue | null>(null);--export function useDashboard(): DashboardContextValue {- const ctx = useContext(DashboardContext);- if (!ctx) throw new Error("useDashboard must be used within DashboardProvider");- return ctx;-}--// ── Provider ─────────────────────────────────────────────────────────────────--interface DashboardProviderProps {- chatEndpoint: string;- mcpEndpoint: string;- children: ReactNode;-}--export function DashboardProvider({ chatEndpoint, mcpEndpoint, children }: DashboardProviderProps) {- const [dashboardCode, setDashboardCode] = useState<string | null>(null);- const [isStreaming, setIsStreaming] = useState(false);- const [streamingHasCode, setStreamingHasCode] = useState(false);- const [startTime, setStartTime] = useState<number | null>(null);- const [elapsed, setElapsed] = useState<number | null>(null);- const [toolCalls, setToolCalls] = useState<ToolCallEntry[]>([]);- const [llmTools, setLlmTools] = useState<LLMToolCall[]>([]);- const [conversation, setConversation] = useState<ChatMessage[]>([]);- const [streamingText, setStreamingText] = useState<string>("");- const [toolProvider, setToolProvider] = useState<McpClientLike | null>(null);- const abortRef = useRef<AbortController | null>(null);- const responseRef = useRef("");- const llmToolCallsRef = useRef<LLMToolCall[]>([]);- const toolCallsRef = useRef<ToolCallEntry[]>([]);- const clientRef = useRef<McpClientLike | null>(null);-- useEffect(() => {- let cancelled = false;- (async () => {- try {- const { Client } = await import("@modelcontextprotocol/sdk/client/index.js");- const { StreamableHTTPClientTransport } = await import("@modelcontextprotocol/sdk/client/streamableHttp.js");- const client = new Client({ name: "openui-dashboard", version: "1.0.0" });- const transport = new StreamableHTTPClientTransport(new URL(mcpEndpoint, globalThis.location.href));- await client.connect(transport);- if (cancelled) { client.close?.(); return; }- const mcpClient = client as unknown as McpClientLike;- clientRef.current = mcpClient;- setToolProvider(wrapMcpClient(mcpClient, (calls) => {- toolCallsRef.current = calls;- setToolCalls(calls);- setConversation((prev) => {- if (prev.length === 0) return prev;- const last = prev[prev.length - 1];- if (last.role !== "assistant") return prev;- return [...prev.slice(0, -1), { ...last, runtimeTools: calls }];- });- }));- } catch (err) {- console.error("[mcp] Failed:", err);- }- })();- return () => { cancelled = true; clientRef.current?.close?.(); };- }, [mcpEndpoint]);-- useEffect(() => {- const p = new URLSearchParams(window.location.search).get("code");- if (p) { try { setDashboardCode(atob(p)); } catch { /* */ } }- }, []);-- useEffect(() => {- if (!isStreaming || !startTime) return;- const iv = setInterval(() => setElapsed(Date.now() - startTime), 100);- return () => clearInterval(iv);- }, [isStreaming, startTime]);-- const send = useCallback(- async (text: string) => {- if (!text.trim() || isStreaming) return;- const trimmed = text.trim();- setIsStreaming(true);- setStreamingHasCode(false);- setStartTime(null);- setElapsed(null);- toolCallsRef.current = [];- setToolCalls([]);- responseRef.current = "";- llmToolCallsRef.current = [];- setStreamingText("");- let streamStartTime: number | null = null;-- const userMsg: ChatMessage = { role: "user", content: trimmed, hasCode: false };- const updated = [...conversation, userMsg];- setConversation(updated);- const existingCode = dashboardCode;-- const apiMessages = updated.map((m, i) => {- if (m.role === "assistant" && m.llmTools?.length) {- const toolSummary = m.llmTools- .map((tc) => {- const snippet = tc.result ? ` → ${tc.result.slice(0, 500)}` : " → completed";- return `[Tool: ${tc.name}${snippet}]`;- })- .join("\n");- return { role: m.role, content: `${toolSummary}\n\n${m.content}` };- }- if (m.role === "user" && i === updated.length - 1 && existingCode) {- return {- role: m.role,- content: `${m.content}\n\n<current-dashboard>\n${existingCode}\n</current-dashboard>`,- };- }- return { role: m.role, content: m.content };- });-- const controller = new AbortController();- abortRef.current = controller;-- await streamChat(- chatEndpoint,- apiMessages,- (chunk) => {- responseRef.current += chunk;- const raw = responseRef.current;- setStreamingText(extractText(raw) || "");- if (responseHasCode(raw)) setStreamingHasCode(true);- setDashboardCode(existingCode ? existingCode + "\n" + raw : raw);- },- () => {- setIsStreaming(false);- setStreamingText("");- if (streamStartTime) setElapsed(Date.now() - streamStartTime);-- const raw = responseRef.current;- const hasCode = responseHasCode(raw);- const pureCode = isPureCode(raw);- const text = pureCode ? undefined : extractText(raw) || undefined;- const llmToolsCurrent = llmToolCallsRef.current;-- setConversation((prev) => [- ...prev,- {- role: "assistant",- content: raw,- text,- hasCode,- llmTools: llmToolsCurrent.length > 0 ? [...llmToolsCurrent] : undefined,- runtimeTools: toolCallsRef.current.length > 0 ? [...toolCallsRef.current] : undefined,- },- ]);-- if (hasCode) {- const newCode = pureCode ? raw : extractCodeOnly(raw);- if (newCode) {- setDashboardCode(existingCode ? mergeStatements(existingCode, newCode) : newCode);- }- }- },- (calls) => {- llmToolCallsRef.current = calls;- setLlmTools(calls);- },- controller.signal,- () => { streamStartTime = Date.now(); setStartTime(streamStartTime); },- );- },- [isStreaming, conversation, dashboardCode, chatEndpoint],- );-- const clear = () => {- abortRef.current?.abort();- setDashboardCode(null);- setConversation([]);- setIsStreaming(false);- setStreamingHasCode(false);- setStartTime(null);- setElapsed(null);- responseRef.current = "";- };-- return (- <DashboardContext.Provider value={{- conversation,- dashboardCode,- isStreaming,- streamingText,- streamingHasCode,- elapsed,- llmTools,- toolCalls,- toolProvider,- send,- clear,- }}>- {children}- </DashboardContext.Provider>- );-}diff --git a/examples/openui-dashboard/src/components/OpenUIDashboard/index.tsx b/examples/openui-dashboard/src/components/OpenUIDashboard/index.tsxdeleted file mode 100644index 4e925d848..000000000--- a/examples/openui-dashboard/src/components/OpenUIDashboard/index.tsx+++ /dev/null@@ -1,180 +0,0 @@-"use client";--import type { Starter } from "@/starters";-import type { Library } from "@openuidev/react-lang";-import { useRef, useState } from "react";-import { DashboardProvider, useDashboard } from "./context";-import { ConversationPanel } from "./ConversationPanel";-import { DashboardCanvas } from "./DashboardCanvas";-import { StarterGrid } from "./StarterGrid";--export { useDashboard } from "./context";--// ── Internal layout ───────────────────────────────────────────────────────────--function DashboardLayout({ library, starters }: { library: Library; starters: Starter[] }) {- const { conversation, dashboardCode, isStreaming, clear } = useDashboard();- const hasDashboard = dashboardCode !== null;- const isEmpty = conversation.length === 0 && !hasDashboard;-- return (- <div- style={{- minHeight: "100vh",- background: "#fafbfc",- fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',- }}- >- {/* Top bar */}- <div- style={{- borderBottom: "1px solid #e5e7eb",- background: "white",- padding: "12px 24px",- display: "flex",- alignItems: "center",- gap: "16px",- }}- >- <h1 style={{ fontSize: "16px", fontWeight: 700, margin: 0 }}>openui-lang</h1>- <span style={{ fontSize: "12px", color: "#888" }}>Live Demo</span>- <div style={{ display: "flex", gap: "6px", marginLeft: "auto" }}>- {["Live Data", "Streaming", "Conversational"].map((label, i) => (- <span- key={label}- style={{- padding: "2px 8px",- borderRadius: "12px",- fontSize: "11px",- fontWeight: 500,- background: ["#ecfdf5", "#eff6ff", "#fef3c7"][i],- color: ["#059669", "#2563eb", "#d97706"][i],- }}- >- {label}- </span>- ))}- </div>- {(hasDashboard || conversation.length > 0) && (- <button- onClick={clear}- style={{- padding: "4px 12px",- border: "1px solid #d1d5db",- borderRadius: "6px",- background: "white",- cursor: "pointer",- fontSize: "12px",- color: "#666",- }}- >- Clear- </button>- )}- </div>-- {/* Main layout */}- <div style={{ display: "flex", height: "calc(100vh - 49px)" }}>- <div- style={{- flex: hasDashboard ? "1 1 60%" : "1 1 100%",- overflow: "auto",- padding: "20px",- transition: "flex 0.3s",- }}- >- {isEmpty && <StarterGrid starters={starters} />}- <DashboardCanvas library={library} />- </div>- {(conversation.length > 0 || isStreaming) && <ConversationPanel />}- </div>-- {isEmpty && !isStreaming && <CenteredInput />}- </div>- );-}--function CenteredInput() {- const { send, isStreaming } = useDashboard();- const [input, setInput] = useState("");- const inputRef = useRef<HTMLInputElement>(null);- const canSend = input.trim().length > 0 && !isStreaming;-- const handleSend = () => {- if (!canSend) return;- send(input);- setInput("");- };-- return (- <div- style={{- position: "fixed",- bottom: "24px",- left: "50%",- transform: "translateX(-50%)",- width: "min(600px, calc(100% - 48px))",- }}- >- <div style={{ display: "flex", gap: "8px" }}>- <input- ref={inputRef}- value={input}- onChange={(e) => setInput(e.target.value)}- onKeyDown={(e) => {- if (e.key === "Enter") handleSend();- }}- placeholder="Describe a dashboard..."- style={{- flex: 1,- padding: "14px 18px",- border: "1px solid #d1d5db",- borderRadius: "12px",- fontSize: "14px",- outline: "none",- boxShadow: "0 2px 8px rgba(0,0,0,0.08)",- }}- />- <button- onClick={handleSend}- disabled={!canSend}- style={{- padding: "14px 24px",- border: "none",- borderRadius: "12px",- background: canSend ? "#111" : "#d1d5db",- color: "white",- cursor: canSend ? "pointer" : "not-allowed",- fontSize: "14px",- fontWeight: 600,- boxShadow: "0 2px 8px rgba(0,0,0,0.08)",- }}- >- Send- </button>- </div>- </div>- );-}--// ── Public component ──────────────────────────────────────────────────────────--export interface OpenUIDashboardProps {- library: Library;- starters?: Starter[];- chatEndpoint?: string;- mcpEndpoint?: string;-}--export function OpenUIDashboard({- library,- starters = [],- chatEndpoint = "/api/chat",- mcpEndpoint = "/api/mcp",-}: OpenUIDashboardProps) {- return (- <DashboardProvider chatEndpoint={chatEndpoint} mcpEndpoint={mcpEndpoint}>- <DashboardLayout library={library} starters={starters} />- </DashboardProvider>- );-}diff --git a/examples/openui-dashboard/src/components/OpenUIDashboard/types.ts b/examples/openui-dashboard/src/components/OpenUIDashboard/types.tsdeleted file mode 100644index e80ae93a9..000000000--- a/examples/openui-dashboard/src/components/OpenUIDashboard/types.ts+++ /dev/null@@ -1,11 +0,0 @@-import type { LLMToolCall } from "@/lib/llm-stream";-import type { ToolCallEntry } from "@/lib/mcp-tracker";--export interface ChatMessage {- role: "user" | "assistant";- content: string;- text?: string;- hasCode: boolean;- llmTools?: LLMToolCall[];- runtimeTools?: ToolCallEntry[];-}diff --git a/examples/openui-dashboard/src/generated/component-spec.json b/examples/openui-dashboard/src/generated/component-spec.jsondeleted file mode 100644index a1001e93c..000000000--- a/examples/openui-dashboard/src/generated/component-spec.json+++ /dev/null@@ -1,372 +0,0 @@-{- "root": "Stack",- "components": {- "Card": {- "signature": "Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | Tabs | Carousel | Stack)[], variant?: \"card\" | \"sunk\" | \"clear\", direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)",- "description": "Styled container. variant: \"card\" (default, elevated) | \"sunk\" (recessed) | \"clear\" (transparent). Always full width. Accepts all Stack flex params (default: direction \"column\"). Cards flex to share space in row/wrap layouts."- },- "CardHeader": {- "signature": "CardHeader(title?: string, subtitle?: string)",- "description": "Header with optional title and subtitle"- },- "TextContent": {- "signature": "TextContent(text: string, size?: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\")",- "description": "Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\"."- },- "MarkDownRenderer": {- "signature": "MarkDownRenderer(textMarkdown: string, variant?: \"clear\" | \"card\" | \"sunk\")",- "description": "Renders markdown text with optional container variant"- },- "Callout": {- "signature": "Callout(variant: \"info\" | \"warning\" | \"error\" | \"success\" | \"neutral\", title: string, description: string, visible?: $binding<boolean>)",- "description": "Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false."- },- "TextCallout": {- "signature": "TextCallout(variant?: \"neutral\" | \"info\" | \"warning\" | \"success\" | \"danger\", title?: string, description?: string)",- "description": "Text callout with variant, title, and description"- },- "Image": {- "signature": "Image(alt: string, src?: string)",- "description": "Image with alt text and optional URL"- },- "ImageBlock": {- "signature": "ImageBlock(src: string, alt?: string)",- "description": "Image block with loading state"- },- "ImageGallery": {- "signature": "ImageGallery(images: {src: string, alt?: string, details?: string}[])",- "description": "Gallery grid of images with modal preview"- },- "CodeBlock": {- "signature": "CodeBlock(language: string, codeString: string)",- "description": "Syntax-highlighted code block"- },- "Table": {- "signature": "Table(columns: Col[])",- "description": "Data table — column-oriented. Each Col holds its own data array."- },- "Col": {- "signature": "Col(label: string, data: any, type?: \"string\" | \"number\" | \"action\")",- "description": "Column definition — holds label + data array"- },- "BarChart": {- "signature": "BarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)",- "description": "Vertical bars; use for comparing values across categories with one or more series"- },- "LineChart": {- "signature": "LineChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string)",- "description": "Lines over categories; use for trends and continuous data over time"- },- "AreaChart": {- "signature": "AreaChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string)",- "description": "Filled area under lines; use for cumulative totals or volume trends over time"- },- "RadarChart": {- "signature": "RadarChart(labels: string[], series: Series[])",- "description": "Spider/web chart; use for comparing multiple variables across one or more entities"- },- "HorizontalBarChart": {- "signature": "HorizontalBarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)",- "description": "Horizontal bars; prefer when category labels are long or for ranked lists"- },- "Series": {- "signature": "Series(category: string, values: number[])",- "description": "One data series"- },- "PieChart": {- "signature": "PieChart(labels: string[], values: number[], variant?: \"pie\" | \"donut\")",- "description": "Circular slices; use plucked arrays: PieChart(data.categories, data.values)"- },- "RadialChart": {- "signature": "RadialChart(labels: string[], values: number[])",- "description": "Radial bars; use plucked arrays: RadialChart(data.categories, data.values)"- },- "SingleStackedBarChart": {- "signature": "SingleStackedBarChart(labels: string[], values: number[])",- "description": "Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)"- },- "Slice": {- "signature": "Slice(category: string, value: number)",- "description": "One slice with label and numeric value"- },- "ScatterChart": {- "signature": "ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string)",- "description": "X/Y scatter plot; use for correlations, distributions, and clustering"- },- "ScatterSeries": {- "signature": "ScatterSeries(name: string, points: Point[])",- "description": "Named dataset"- },- "Point": {- "signature": "Point(x: number, y: number, z?: number)",- "description": "Data point with numeric coordinates"- },- "Form": {- "signature": "Form(name: string, buttons: Buttons, fields?: FormControl[])",- "description": "Form container with fields and explicit action buttons"- },- "FormControl": {- "signature": "FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string)",- "description": "Field with label, input component, and optional hint text"- },- "Label": {- "signature": "Label(text: string)",- "description": "Text label"- },- "Input": {- "signature": "Input(name: string, placeholder?: string, type?: \"text\" | \"email\" | \"password\" | \"number\" | \"url\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",- "description": ""- },- "TextArea": {- "signature": "TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",- "description": ""- },- "Select": {- "signature": "Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",- "description": ""- },- "SelectItem": {- "signature": "SelectItem(value: string, label: string)",- "description": "Option for Select"- },- "DatePicker": {- "signature": "DatePicker(name: string, mode?: \"single\" | \"range\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<any>)",- "description": ""- },- "Slider": {- "signature": "Slider(name: string, variant: \"continuous\" | \"discrete\", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>)",- "description": "Numeric slider input; supports continuous and discrete (stepped) variants"- },- "CheckBoxGroup": {- "signature": "CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)",- "description": ""- },- "CheckBoxItem": {- "signature": "CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)",- "description": ""- },- "RadioGroup": {- "signature": "RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",- "description": ""- },- "RadioItem": {- "signature": "RadioItem(label: string, description: string, value: string)",- "description": ""- },- "SwitchGroup": {- "signature": "SwitchGroup(name: string, items: SwitchItem[], variant?: \"clear\" | \"card\" | \"sunk\", value?: $binding<Record<string, boolean>>)",- "description": "Group of switch toggles"- },- "SwitchItem": {- "signature": "SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean)",- "description": "Individual switch toggle"- },- "Button": {- "signature": "Button(label: string, action?: ActionExpression, variant?: \"primary\" | \"secondary\" | \"tertiary\", type?: \"normal\" | \"destructive\", size?: \"extra-small\" | \"small\" | \"medium\" | \"large\")",- "description": "Clickable button"- },- "Buttons": {- "signature": "Buttons(buttons: Button[], direction?: \"row\" | \"column\")",- "description": "Group of Button components. direction: \"row\" (default) | \"column\"."- },- "Stack": {- "signature": "Stack(children: any[], direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)",- "description": "Flex container. direction: \"row\"|\"column\" (default \"column\"). gap: \"none\"|\"xs\"|\"s\"|\"m\"|\"l\"|\"xl\"|\"2xl\" (default \"m\"). align: \"start\"|\"center\"|\"end\"|\"stretch\"|\"baseline\". justify: \"start\"|\"center\"|\"end\"|\"between\"|\"around\"|\"evenly\"."- },- "Tabs": {- "signature": "Tabs(items: TabItem[])",- "description": "Tabbed container"- },- "TabItem": {- "signature": "TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[])",- "description": "value is unique id, trigger is tab label, content is array of components"- },- "Accordion": {- "signature": "Accordion(items: AccordionItem[])",- "description": "Collapsible sections"- },- "AccordionItem": {- "signature": "AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[])",- "description": "value is unique id, trigger is section title"- },- "Steps": {- "signature": "Steps(items: StepsItem[])",- "description": "Step-by-step guide"- },- "StepsItem": {- "signature": "StepsItem(title: string, details: string)",- "description": "title and details text for one step"- },- "Carousel": {- "signature": "Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: \"card\" | \"sunk\")",- "description": "Horizontal scrollable carousel"- },- "Separator": {- "signature": "Separator(orientation?: \"horizontal\" | \"vertical\", decorative?: boolean)",- "description": "Visual divider between content sections"- },- "TagBlock": {- "signature": "TagBlock(tags: string[])",- "description": "tags is an array of strings"- },- "Tag": {- "signature": "Tag(text: string, icon?: string, size?: \"sm\" | \"md\" | \"lg\", variant?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\")",- "description": "Styled tag/badge with optional icon and variant"- },- "Modal": {- "signature": "Modal(title: string, open?: $binding<boolean>, children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[], size?: \"sm\" | \"md\" | \"lg\")",- "description": "Modal dialog. open is a reactive $boolean binding — set to true to open, X/Escape/backdrop auto-closes. Put Form with buttons inside children."- }- },- "componentGroups": [- {- "name": "Layout",- "components": [- "Stack",- "Tabs",- "TabItem",- "Accordion",- "AccordionItem",- "Steps",- "StepsItem",- "Carousel",- "Separator",- "Modal"- ],- "notes": [- "- For grid-like layouts, use Stack with direction \"row\" and wrap set to true.",- "- Prefer justify \"start\" (or omit justify) with wrap=true for stable columns instead of uneven gutters.",- "- Use nested Stacks when you need explicit rows/sections.",- "- Show/hide sections: $editId != \"\" ? Card([editForm]) : null",- "- Modal: Modal(\"Title\", $showModal, [content]) — $showModal is boolean, X/Escape auto-closes. Put Form with its own buttons inside children.",- "- Use Tabs for alternative views (chart types, data sections) — no $variable needed",- "- Shared filter across Tabs: same $days binding in Query args works across all TabItems"- ]- },- {- "name": "Content",- "components": [- "Card",- "CardHeader",- "TextContent",- "MarkDownRenderer",- "Callout",- "TextCallout",- "Image",- "ImageBlock",- "ImageGallery",- "CodeBlock"- ],- "notes": [- "- Use Cards to group related KPIs or sections. Stack with direction \"row\" for side-by-side layouts.",- "- Success toast: Callout(\"success\", \"Saved\", \"Done.\", $showSuccess) — use @Set($showSuccess, true) in save action, auto-dismisses after 3s. For errors: result.status == \"error\" ? Callout(\"error\", \"Failed\", result.error) : null",- "- KPI card: Card([TextContent(\"Label\", \"small\"), TextContent(\"\" + @Count(@Filter(data.rows, \"field\", \"==\", \"value\")), \"large-heavy\")])"- ]- },- {- "name": "Tables",- "components": [- "Table",- "Col"- ],- "notes": [- "- Table is COLUMN-oriented: Table([Col(\"Label\", dataArray), Col(\"Count\", countArray, \"number\")]). Use array pluck for data: data.rows.fieldName",- "- Col data can be component arrays for styled cells: Col(\"Status\", @Each(data.rows, \"item\", Tag(item.status, null, \"sm\", item.status == \"open\" ? \"success\" : \"danger\")))",- "- Row actions: Col(\"Actions\", @Each(data.rows, \"t\", Button(\"Edit\", Action([@Set($showEdit, true), @Set($editId, t.id)]))))",- "- Sortable: sorted = @Sort(data.rows, $sortField, \"desc\"). Bind $sortField to Select. Use sorted.fieldName for Col data",- "- Searchable: filtered = @Filter(data.rows, \"title\", \"contains\", $search). Bind $search to Input",- "- Chain sort + filter: filtered = @Filter(...) then sorted = @Sort(filtered, ...) — use sorted for both Table and Charts",- "- Empty state: @Count(data.rows) > 0 ? Table([...]) : TextContent(\"No data yet\")"- ]- },- {- "name": "Charts (2D)",- "components": [- "BarChart",- "LineChart",- "AreaChart",- "RadarChart",- "HorizontalBarChart",- "Series"- ],- "notes": [- "- Charts accept column arrays: LineChart(labels, [Series(\"Name\", values)]). Use array pluck: LineChart(data.rows.day, [Series(\"Views\", data.rows.views)])",- "- Use Cards to wrap charts with CardHeader for titled sections",- "- Chart + Table from same source: use @Sort or @Filter result for both LineChart and Table Col data",- "- Multiple chart views: use Tabs — Tabs([TabItem(\"line\", \"Line\", [LineChart(...)]), TabItem(\"bar\", \"Bar\", [BarChart(...)])])"- ]- },- {- "name": "Charts (1D)",- "components": [- "PieChart",- "RadialChart",- "SingleStackedBarChart",- "Slice"- ],- "notes": [- "- PieChart and BarChart need NUMBERS, not objects. For list data, use @Count(@Filter(...)) to aggregate:",- "- PieChart from list: `PieChart([\"Low\", \"Med\", \"High\"], [@Count(@Filter(data.rows, \"priority\", \"==\", \"low\")), @Count(@Filter(data.rows, \"priority\", \"==\", \"medium\")), @Count(@Filter(data.rows, \"priority\", \"==\", \"high\"))], \"donut\")`",- "- KPI from count: `TextContent(\"\" + @Count(@Filter(data.rows, \"status\", \"==\", \"open\")), \"large-heavy\")`"- ]- },- {- "name": "Charts (Scatter)",- "components": [- "ScatterChart",- "ScatterSeries",- "Point"- ]- },- {- "name": "Forms",- "components": [- "Form",- "FormControl",- "Label",- "Input",- "TextArea",- "Select",- "SelectItem",- "DatePicker",- "Slider",- "CheckBoxGroup",- "CheckBoxItem",- "RadioGroup",- "RadioItem",- "SwitchGroup",- "SwitchItem"- ],- "notes": [- "- For Form fields, define EACH FormControl as its own reference — do NOT inline all controls in one array. This allows progressive field-by-field streaming.",- "- NEVER nest Form inside Form — each Form should be a standalone container.",- "- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.",- "- rules is an optional object: {required: true, email: true, minLength: 8, maxLength: 100}",- "- Available rules: required, email, min, max, minLength, maxLength, pattern, url, numeric",- "- The renderer shows error messages automatically — do NOT generate error text in the UI",- "- Conditional fields: $country == \"US\" ? stateField : $country == \"UK\" ? postcodeField : addressField",- "- Edit form in Modal: Modal(\"Edit\", $showEdit, [Form(\"edit\", Buttons([saveBtn, cancelBtn]), [fields...])]). Save button should include @Set($showEdit, false) to close modal."- ]- },- {- "name": "Buttons",- "components": [- "Button",- "Buttons"- ],- "notes": [- "- Toggle in @Each: @Each(rows, \"t\", Button(t.status == \"open\" ? \"Close\" : \"Reopen\", Action([...])))"- ]- },- {- "name": "Data Display",- "components": [- "TagBlock",- "Tag"- ],- "notes": [- "- Color-mapped Tag: Tag(value, null, \"sm\", value == \"high\" ? \"danger\" : value == \"medium\" ? \"warning\" : \"neutral\")"- ]- }- ]-}diff --git a/examples/openui-dashboard/src/lib/llm-stream.ts b/examples/openui-dashboard/src/lib/llm-stream.tsdeleted file mode 100644index afbadd8e2..000000000--- a/examples/openui-dashboard/src/lib/llm-stream.ts+++ /dev/null@@ -1,87 +0,0 @@-export type LLMToolCall = { id: string; name: string; status: "calling" | "done"; result?: string };--export async function streamChat(- endpoint: string,- messages: Array<{ role: string; content: string }>,- onChunk: (text: string) => void,- onDone: (usage?: { prompt_tokens?: number; completion_tokens?: number }) => void,- onToolCall: (calls: LLMToolCall[]) => void,- signal?: AbortSignal,- onFirstChunk?: () => void,-) {- const activeCalls: LLMToolCall[] = [];- onToolCall([]);-- const res = await fetch(endpoint, {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({ messages }),- signal,- });-- if (!res.ok) {- const err = await res.text();- onChunk(`Error: ${err}`);- onDone();- return;- }-- const reader = res.body!.getReader();- const decoder = new TextDecoder();- let buffer = "";- let lastUsage: { prompt_tokens?: number; completion_tokens?: number } | undefined;- let firstChunkFired = false;-- while (true) {- const { done, value } = await reader.read();- if (done) break;- buffer += decoder.decode(value, { stream: true });-- const lines = buffer.split("\n");- buffer = lines.pop() ?? "";-- for (const line of lines) {- if (!line.startsWith("data: ")) continue;- const data = line.slice(6).trim();- if (data === "[DONE]") {- for (const tc of activeCalls) {- if (tc.status === "calling") tc.status = "done";- }- onToolCall([...activeCalls]);- onDone(lastUsage);- return;- }- try {- const chunk = JSON.parse(data);- const tcDeltas = chunk.choices?.[0]?.delta?.tool_calls;- if (tcDeltas) {- for (const tc of tcDeltas) {- if (tc.id && tc.function?.name) {- activeCalls.push({ id: tc.id, name: tc.function.name, status: "calling" });- onToolCall([...activeCalls]);- } else if (tc.function?.arguments) {- const existing = activeCalls[tc.index];- if (existing) {- existing.status = "done";- try {- const parsed = JSON.parse(tc.function.arguments);- if (parsed._response) {- existing.result = JSON.stringify(parsed._response).slice(0, 2000);- }- } catch { /* ignore parse errors */ }- onToolCall([...activeCalls]);- }- }- }- }- const content = chunk.choices?.[0]?.delta?.content;- if (content) {- if (!firstChunkFired) { firstChunkFired = true; onFirstChunk?.(); }- onChunk(content);- }- if (chunk.usage) lastUsage = chunk.usage;- } catch { /* skip malformed chunks */ }- }- }- onDone(lastUsage);-}diff --git a/examples/openui-dashboard/src/lib/mcp-tracker.ts b/examples/openui-dashboard/src/lib/mcp-tracker.tsdeleted file mode 100644index ea5addd38..000000000--- a/examples/openui-dashboard/src/lib/mcp-tracker.ts+++ /dev/null@@ -1,28 +0,0 @@-import type { McpClientLike } from "@openuidev/react-lang";--export type ToolCallEntry = { tool: string; status: "pending" | "done" | "error" };--export function wrapMcpClient(- client: McpClientLike,- onToolCall: (calls: ToolCallEntry[]) => void,-): McpClientLike {- const activeCalls: ToolCallEntry[] = [];- return {- ...client,- callTool: async (params, options) => {- const entry: ToolCallEntry = { tool: params.name, status: "pending" };- activeCalls.push(entry);- onToolCall([...activeCalls]);- try {- const result = await client.callTool(params, options);- entry.status = "done";- onToolCall([...activeCalls]);- return result;- } catch (err) {- entry.status = "error";- onToolCall([...activeCalls]);- throw err;- }- },- };-}diff --git a/examples/openui-dashboard/src/lib/response-parser.ts b/examples/openui-dashboard/src/lib/response-parser.tsdeleted file mode 100644index 9744e4030..000000000--- a/examples/openui-dashboard/src/lib/response-parser.ts+++ /dev/null@@ -1,39 +0,0 @@-export function extractCodeOnly(response: string): string | null {- const fenceRegex = /```[\w-]*\n([\s\S]*?)```/g;- const blocks: string[] = [];- let match;- while ((match = fenceRegex.exec(response)) !== null) {- blocks.push(match[1].trim());- }- if (blocks.length > 0) return blocks.join("\n");-- const unclosedMatch = response.match(/```[\w-]*\n([\s\S]*)$/);- if (unclosedMatch) return unclosedMatch[1].trim() || null;-- if (isPureCode(response)) return response;-- return null;-}--export function extractText(response: string): string {- const withoutFences = response.replace(/```[\w-]*\n[\s\S]*?```/g, "").trim();- const withoutUnclosed = withoutFences.replace(/```[\w-]*\n[\s\S]*$/g, "").trim();- if (withoutUnclosed && isPureCode(withoutUnclosed)) return "";- return withoutUnclosed;-}--export function responseHasCode(response: string): boolean {- if (/```[\w-]*\n/.test(response)) return true;- if (/^[a-zA-Z_$][\w$]*\s*=\s*/.test(response.trim())) return true;- return false;-}--export function isPureCode(response: string): boolean {- const trimmed = response.trim();- if (/```/.test(trimmed)) return false;- const lines = trimmed.split("\n").filter((l) => l.trim());- if (lines.length === 0) return false;- const stmtPattern = /^[a-zA-Z_$][\w$]*\s*=/;- const stmtCount = lines.filter((l) => stmtPattern.test(l.trim())).length;- return stmtCount / lines.length > 0.7;-}diff --git a/examples/openui-dashboard/src/lib/tool-def.ts b/examples/openui-dashboard/src/lib/tool-def.tsdeleted file mode 100644index 41ae737a7..000000000--- a/examples/openui-dashboard/src/lib/tool-def.ts+++ /dev/null@@ -1,53 +0,0 @@-import type { ToolSpec } from "@openuidev/lang-core";-import type { RunnableToolFunction } from "openai/lib/RunnableFunction";-import type { JSONSchema } from "openai/lib/jsonschema";-import { z } from "zod";--interface ToolDefOptions {- name: string;- description: string;- inputSchema: z.ZodObject<z.ZodRawShape>;- outputSchema: z.ZodType;- execute: (args: Record<string, unknown>) => Promise<unknown>;-}--export class ToolDef {- readonly name: string;- readonly description: string;- readonly inputSchema: z.ZodObject<z.ZodRawShape>;- readonly outputSchema: z.ZodType;- readonly execute: (args: Record<string, unknown>) => Promise<unknown>;-- constructor(opts: ToolDefOptions) {- this.name = opts.name;- this.description = opts.description;- this.inputSchema = opts.inputSchema;- this.outputSchema = opts.outputSchema;- this.execute = opts.execute;- }-- /** Format accepted by `client.chat.completions.runTools()` */- toOpenAITool(): RunnableToolFunction<Record<string, unknown>> {- return {- type: "function",- function: {- name: this.name,- description: this.description,- parameters: z.toJSONSchema(this.inputSchema) as JSONSchema,- function: async (args: Record<string, unknown>) =>- JSON.stringify(await this.execute(args)),- parse: JSON.parse,- },- };- }-- /** Format used by `generatePrompt()` for the system prompt */- toToolSpec(): ToolSpec {- return {- name: this.name,- description: this.description,- inputSchema: z.toJSONSchema(this.inputSchema) as Record<string, unknown>,- outputSchema: z.toJSONSchema(this.outputSchema) as Record<string, unknown>,- };- }-}diff --git a/examples/openui-dashboard/src/library.ts b/examples/openui-dashboard/src/library.tsdeleted file mode 100644index 121d5fd5a..000000000--- a/examples/openui-dashboard/src/library.ts+++ /dev/null@@ -1 +0,0 @@-export { openuiLibrary as library } from "@openuidev/react-ui/genui-lib";diff --git a/examples/openui-dashboard/src/prompt-config.ts b/examples/openui-dashboard/src/prompt-config.tsdeleted file mode 100644index 3247b19f1..000000000--- a/examples/openui-dashboard/src/prompt-config.ts+++ /dev/null@@ -1,78 +0,0 @@-// Prompt configuration for the chat API route.-// This file has NO React dependencies — safe to import from server-only routes.-//-// Component specs are generated by `pnpm generate:prompt` and imported from the-// generated JSON file. Tools are injected at request time from MCP.--import type { PromptSpec } from "@openuidev/react-lang";-import componentSpec from "./generated/component-spec.json";--export const promptSpec: PromptSpec = {- ...componentSpec as PromptSpec,- editMode: true,- inlineMode: true,- toolExamples: [- `Example — Usage Overview Dashboard:-root = Stack([header, controls, kpiRow, trendCard])-header = CardHeader("Usage Overview", "Events, users and errors over time")-$days = "14"-controls = Stack([filterRow], "row", "m", "end", "between")-filterRow = FormControl("Date Range", Select("days", [r7, r14, r30], null, null, $days))-r7 = SelectItem("7", "Last 7 days")-r14 = SelectItem("14", "Last 14 days")-r30 = SelectItem("30", "Last 30 days")-metrics = Query("get_usage_metrics", {dateRange: $days}, {totalEvents: 0, totalUsers: 0, totalErrors: 0, totalCost: 0, data: []})-kpiRow = Stack([kpi1, kpi2, kpi3, kpi4], "row", "m", "stretch", "start", true)-kpi1 = Card([TextContent("Total Events", "small"), TextContent("" + metrics.totalEvents, "large-heavy")])-kpi2 = Card([TextContent("Total Users", "small"), TextContent("" + metrics.totalUsers, "large-heavy")])-kpi3 = Card([TextContent("Errors", "small"), TextContent("" + metrics.totalErrors, "large-heavy")])-kpi4 = Card([TextContent("Cost", "small"), TextContent("$" + @Round(metrics.totalCost, 2), "large-heavy")])-trendCard = Card([CardHeader("Daily Trend"), LineChart(metrics.data.day, [Series("Events", metrics.data.events), Series("Users", metrics.data.users), Series("Errors", metrics.data.errors)])])`,-- `Example — Server Health Dashboard:-root = Stack([header, kpiRow, trendCard])-header = CardHeader("Server Monitoring", "Auto-refreshes every 30 seconds")-health = Query("get_server_health", {}, {cpu: 0, memory: 0, latencyP95: 0, errorRate: 0, timeseries: []}, 30)-kpiRow = Stack([cpuCard, memCard, latCard, errCard], "row", "m", "stretch", "start", true)-cpuCard = Card([TextContent("CPU", "small"), TextContent("" + @Round(health.cpu, 1) + "%", "large-heavy")])-memCard = Card([TextContent("Memory", "small"), TextContent("" + @Round(health.memory, 1) + "%", "large-heavy")])-latCard = Card([TextContent("Latency P95", "small"), TextContent("" + @Round(health.latencyP95, 0) + " ms", "large-heavy")])-errCard = Card([TextContent("Error Rate", "small"), TextContent("" + @Round(health.errorRate, 2) + "%", "large-heavy")])-trendCard = Card([CardHeader("24-Hour Trend"), LineChart(health.timeseries.time, [Series("CPU", health.timeseries.cpu), Series("Memory", health.timeseries.memory), Series("Latency", health.timeseries.latencyP95)])])`,-- `Example — Analytics deep-dive (endpoints, errors, geo, funnel):-root = Stack([header, row1, row2])-header = CardHeader("Analytics Deep-Dive", "Endpoints, errors, geography and conversion")-endpoints = Query("get_top_endpoints", {limit: 10}, {endpoints: []})-errors = Query("get_error_breakdown", {}, {errors: []})-geo = Query("get_geo_usage", {}, {regions: []})-funnel = Query("get_funnel_metrics", {}, {steps: []})-row1 = Stack([endpointsCard, errorsCard], "row", "m", "stretch")-endpointsCard = Card([CardHeader("Top Endpoints"), Table([Col("Path", endpoints.endpoints.path), Col("Requests", endpoints.endpoints.requests, "number"), Col("Avg Latency (ms)", endpoints.endpoints.avgLatency, "number"), Col("Error Rate", endpoints.endpoints.errorRate, "number")])])-errorsCard = Card([CardHeader("Error Breakdown"), PieChart(errors.errors.category, errors.errors.count)])-row2 = Stack([geoCard, funnelCard], "row", "m", "stretch")-geoCard = Card([CardHeader("Geographic Usage"), Table([Col("Region", geo.regions.region), Col("Users", geo.regions.users, "number"), Col("Events", geo.regions.events, "number")])])-funnelCard = Card([CardHeader("Conversion Funnel"), BarChart(funnel.steps.step, [Series("Users", funnel.steps.users)])])`,- ],- additionalRules: [- "For time-series analytics, use get_usage_metrics with dateRange as a numeric string (\"7\", \"14\", \"30\")",- "For server monitoring / CPU / memory / latency, use get_server_health — it returns a 24h timeseries",- "For endpoint performance, use get_top_endpoints; for error categories, use get_error_breakdown",- "For geographic breakdown, use get_geo_usage; for conversion funnel, use get_funnel_metrics",- "For A/B testing results, use get_experiment_results; for resource cost breakdown, use get_resource_breakdown",- "Prefer including a date range selector for dashboards that use get_usage_metrics or get_top_endpoints",- 'dateRange values are numeric strings: "7", "14", "30", "90". Do not use suffixes like "d" or "h".',- ],- preamble: `You are an AI assistant that builds dashboards using openui-lang, a declarative UI language.--## Available Tools--- **get_usage_metrics** — events, users, errors, cost over time. Returns \`totalEvents\`, \`totalUsers\`, \`totalErrors\`, \`totalCost\`, and \`data[]\` (per-day rows with \`day\`, \`events\`, \`users\`, \`errors\`, \`cost\`). Accepts optional \`dateRange\` (numeric string of days).-- **get_top_endpoints** — top API endpoints by request count. Returns \`endpoints[]\` with \`path\`, \`requests\`, \`avgLatency\`, \`errorRate\`. Accepts optional \`limit\` and \`dateRange\`.-- **get_resource_breakdown** — usage split by resource type (API, Web App, Mobile, Webhook). Returns \`resources[]\` with \`name\`, \`events\`, \`users\`, \`cost\`.-- **get_error_breakdown** — errors by category. Returns \`errors[]\` with \`category\` and \`count\`.-- **get_server_health** — current CPU, memory, latency, error rate plus 24h timeseries. Returns scalar fields and \`timeseries[]\` with \`time\`, \`cpu\`, \`memory\`, \`latencyP95\`.-- **get_experiment_results** — A/B test variants. Returns \`variants[]\` with \`variant\`, \`conversionRate\`, \`users\`.-- **get_geo_usage** — usage by region. Returns \`regions[]\` with \`region\`, \`users\`, \`events\`.-- **get_funnel_metrics** — conversion funnel steps. Returns \`steps[]\` with \`step\` and \`users\`.`,-};diff --git a/examples/openui-dashboard/src/starters.ts b/examples/openui-dashboard/src/starters.tsdeleted file mode 100644index 8b1fdc69b..000000000--- a/examples/openui-dashboard/src/starters.ts+++ /dev/null@@ -1,13 +0,0 @@-export interface Starter {- label: string;- prompt: string;- icon: string;-}--export const STARTERS: Starter[] = [- { label: "Usage Overview", prompt: "Build a usage overview dashboard with KPI cards (events, users, errors, cost) and a daily trend chart with a date range selector", icon: "📊" },- { label: "Server Health", prompt: "Create a server monitoring dashboard that auto-refreshes every 30 seconds showing CPU, memory, latency P95 and a 24-hour trend chart", icon: "🖥️" },- { label: "Top Endpoints", prompt: "Build a dashboard showing the top 10 API endpoints by request count alongside an error breakdown pie chart", icon: "🔥" },- { label: "Geo & Funnel", prompt: "Create a dashboard with a geographic usage table by region and a conversion funnel bar chart", icon: "🌍" },- { label: "Full Analytics", prompt: "Build a full analytics dashboard with usage KPIs, top endpoints, error breakdown, geo usage, funnel metrics, and A/B experiment results", icon: "📈" },-];diff --git a/examples/openui-dashboard/src/tools.ts b/examples/openui-dashboard/src/tools.tsdeleted file mode 100644index 096fad538..000000000--- a/examples/openui-dashboard/src/tools.ts+++ /dev/null@@ -1,242 +0,0 @@-/**- * Shared tool registry — single source of truth for all tools.- *- * Consumed by:- * - /api/mcp/route.ts (MCP server, uses Zod inputSchema directly)- * - /api/chat/route.ts (OpenAI function-calling, via toOpenAITool())- */-import { z } from "zod";-import { ToolDef } from "./lib/tool-def";--// ── Helpers ──────────────────────────────────────────────────────────────────--/** Simulated network delay to surface intermediate loading states (ms). */-const TOOL_DELAY_MS = Number(process.env.NEXT_PUBLIC_TOOL_DELAY_MS) || 0;--function delay(ms: number): Promise<void> {- return new Promise((r) => setTimeout(r, ms));-}--function dateOffset(daysAgo: number): string {- const d = new Date();- d.setDate(d.getDate() + daysAgo);- return d.toISOString().slice(0, 10);-}--function generateTimeseries<T>(count: number, fn: (index: number) => T): T[] {- return Array.from({ length: count }, (_, i) => fn(i));-}--// ── Mock data generators ─────────────────────────────────────────────────────--function getUsageMetrics(args: Record<string, unknown>) {- const days = Number(args.dateRange ?? args.days ?? 14);- return {- totalEvents: 48200 + Math.floor(days * 120),- totalUsers: 3200 + Math.floor(days * 40),- totalErrors: 142 + Math.floor(days * 3),- totalCost: 1250.5 + days * 15,- data: generateTimeseries(days, (i) => ({- day: dateOffset(-days + i),- events: 2800 + Math.floor(Math.random() * 1200),- users: 180 + Math.floor(Math.random() * 80),- errors: 5 + Math.floor(Math.random() * 15),- cost: 70 + Math.random() * 30,- })),- };-}--function getTopEndpoints(args: Record<string, unknown>) {- const limit = Number(args.limit ?? 10);- const paths = ["/api/users", "/api/events", "/api/auth", "/api/data", "/api/search", "/api/upload", "/api/export", "/api/notify", "/api/billing", "/api/health"];- return {- endpoints: Array.from({ length: limit }, (_, i) => ({- path: paths[i % 10],- requests: 12000 - i * 900 + Math.floor(Math.random() * 400),- avgLatency: 45 + i * 12 + Math.floor(Math.random() * 20),- errorRate: Math.round((0.5 + i * 0.3 + Math.random() * 0.5) * 100) / 100,- })),- };-}--function getResourceBreakdown() {- return {- resources: [- { name: "API", events: 22000, users: 1800, cost: 450 },- { name: "Web App", events: 18000, users: 2400, cost: 380 },- { name: "Mobile", events: 8200, users: 900, cost: 220 },- { name: "Webhook", events: 3500, users: 120, cost: 95 },- ],- };-}--function getErrorBreakdown() {- return {- errors: [- { category: "TimeoutError", count: 45 },- { category: "AuthError", count: 32 },- { category: "RateLimitError", count: 28 },- { category: "ValidationError", count: 22 },- { category: "NotFoundError", count: 15 },- ],- };-}--function getServerHealth() {- return {- cpu: 42 + Math.floor(Math.random() * 20),- memory: 68 + Math.floor(Math.random() * 15),- latencyP95: 120 + Math.floor(Math.random() * 60),- errorRate: Math.round((1.2 + Math.random() * 0.8) * 100) / 100,- timeseries: generateTimeseries(24, (i) => ({- time: `${String(i).padStart(2, "0")}:00`,- cpu: 35 + Math.floor(Math.random() * 30),- memory: 60 + Math.floor(Math.random() * 20),- latencyP95: 80 + Math.floor(Math.random() * 80),- })),- };-}--function getExperimentResults() {- return {- variants: [- { variant: "Control", conversionRate: 3.2, users: 5200 },- { variant: "Variant A", conversionRate: 4.1, users: 5150 },- { variant: "Variant B", conversionRate: 3.8, users: 5100 },- ],- };-}--function getGeoUsage() {- return {- regions: [- { region: "North America", users: 4200, events: 18000 },- { region: "Europe", users: 3100, events: 14000 },- { region: "Asia Pacific", users: 1800, events: 8000 },- { region: "Latin America", users: 600, events: 2800 },- { region: "Africa", users: 200, events: 900 },- ],- };-}--function getFunnelMetrics() {- return {- steps: [- { step: "Visit", users: 10000 },- { step: "Sign Up", users: 3200 },- { step: "Activate", users: 1800 },- { step: "Subscribe", users: 450 },- { step: "Retain (30d)", users: 320 },- ],- };-}--// ── Tool registry ───────────────────────────────────────────────────────────--export { ToolDef } from "./lib/tool-def";--export const tools: ToolDef[] = [- new ToolDef({- name: "get_usage_metrics",- description: "Get usage metrics for the specified date range",- inputSchema: z.object({- dateRange: z.string().optional(),- days: z.string().optional(),- resource: z.string().optional(),- }),- outputSchema: z.object({- totalEvents: z.number(),- totalUsers: z.number(),- totalErrors: z.number(),- totalCost: z.number(),- data: z.array(- z.object({- day: z.string(),- events: z.number(),- users: z.number(),- errors: z.number(),- cost: z.number(),- }),- ),- }),- execute: async (args) => { await delay(TOOL_DELAY_MS); return getUsageMetrics(args); },- }),- new ToolDef({- name: "get_top_endpoints",- description: "Get top API endpoints by request count",- inputSchema: z.object({ limit: z.number().optional(), dateRange: z.string().optional() }),- outputSchema: z.object({- endpoints: z.array(- z.object({- path: z.string(),- requests: z.number(),- avgLatency: z.number(),- errorRate: z.number(),- }),- ),- }),- execute: async (args) => { await delay(TOOL_DELAY_MS); return getTopEndpoints(args); },- }),- new ToolDef({- name: "get_resource_breakdown",- description: "Get resource usage breakdown by type",- inputSchema: z.object({}),- outputSchema: z.object({- resources: z.array(- z.object({ name: z.string(), events: z.number(), users: z.number(), cost: z.number() }),- ),- }),- execute: async () => { await delay(TOOL_DELAY_MS); return getResourceBreakdown(); },- }),- new ToolDef({- name: "get_error_breakdown",- description: "Get error breakdown by category",- inputSchema: z.object({}),- outputSchema: z.object({- errors: z.array(z.object({ category: z.string(), count: z.number() })),- }),- execute: async () => { await delay(TOOL_DELAY_MS * 2); return getErrorBreakdown(); },- }),- new ToolDef({- name: "get_server_health",- description: "Get current server health metrics (CPU, memory, latency)",- inputSchema: z.object({}),- outputSchema: z.object({- cpu: z.number(),- memory: z.number(),- latencyP95: z.number(),- errorRate: z.number(),- timeseries: z.array(- z.object({ time: z.string(), cpu: z.number(), memory: z.number(), latencyP95: z.number() }),- ),- }),- execute: async () => { await delay(TOOL_DELAY_MS); return getServerHealth(); },- }),- new ToolDef({- name: "get_experiment_results",- description: "Get A/B experiment results with conversion rates",- inputSchema: z.object({}),- outputSchema: z.object({- variants: z.array(- z.object({ variant: z.string(), conversionRate: z.number(), users: z.number() }),- ),- }),- execute: async () => { await delay(TOOL_DELAY_MS); return getExperimentResults(); },- }),- new ToolDef({- name: "get_geo_usage",- description: "Get geographic usage breakdown by region",- inputSchema: z.object({}),- outputSchema: z.object({- regions: z.array(z.object({ region: z.string(), users: z.number(), events: z.number() })),- }),- execute: async () => { await delay(TOOL_DELAY_MS); return getGeoUsage(); },- }),- new ToolDef({- name: "get_funnel_metrics",- description: "Get conversion funnel metrics",- inputSchema: z.object({}),- outputSchema: z.object({ steps: z.array(z.object({ step: z.string(), users: z.number() })) }),- execute: async () => { await delay(TOOL_DELAY_MS); return getFunnelMetrics(); },- }),-];diff --git a/examples/openui-dashboard/tsconfig.json b/examples/openui-dashboard/tsconfig.jsondeleted file mode 100644index cf9c65d3e..000000000--- a/examples/openui-dashboard/tsconfig.json+++ /dev/null@@ -1,34 +0,0 @@-{- "compilerOptions": {- "target": "ES2017",- "lib": ["dom", "dom.iterable", "esnext"],- "allowJs": true,- "skipLibCheck": true,- "strict": true,- "noEmit": true,- "esModuleInterop": true,- "module": "esnext",- "moduleResolution": "bundler",- "resolveJsonModule": true,- "isolatedModules": true,- "jsx": "react-jsx",- "incremental": true,- "plugins": [- {- "name": "next"- }- ],- "paths": {- "@/*": ["./src/*"]- }- },- "include": [- "next-env.d.ts",- "**/*.ts",- "**/*.tsx",- ".next/types/**/*.ts",- ".next/dev/types/**/*.ts",- "**/*.mts"- ],- "exclude": ["node_modules"]-}diff --git a/examples/openui-react-native/backend/src/system-prompt.txt b/examples/openui-react-native/backend/src/system-prompt.txtdeleted file mode 100644index 5044cea03..000000000--- a/examples/openui-react-native/backend/src/system-prompt.txt+++ /dev/null@@ -1,66 +0,0 @@-You are a helpful assistant. Always respond using OpenUI Lang — never plain markdown or JSON.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names)-7. Optional arguments can be omitted from the end-8. No operators, no logic, no variables — only declarations-9. Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-The `action` prop type accepts: ContinueConversation (sends message to LLM), OpenUrl (navigates to URL), or Custom (app-defined).--Text(content: string, variant?: "body" | "heading" | "caption") — Renders a line of text. Use variant to control emphasis.-BarChart(data: {label: string, value: number}[], title?: string, color?: string) — Renders a vertical bar chart for comparing discrete values across categories.-LineChart(data: {label: string, value: number}[], title?: string, color?: string) — Renders a line chart to visualise trends across an ordered sequence of values.-PieChart(data: {label: string, value: number, color?: string}[], title?: string) — Renders a pie chart to show how parts contribute to a whole.-Card(children?: (Text | BarChart | LineChart | PieChart)[]) — A container card that holds a list of child components.--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--root = Card([intro, detail])-intro = Text("It's sunny and 24°C in San Francisco.", "heading")-detail = Text("Humidity is at 60%. No rain expected this week.", "body")--root = Card([heading, chart])-heading = Text("Revenue grew 42% over Q1.", "heading")-chart = LineChart([{label:"Jan",value:80},{label:"Feb",value:95},{label:"Mar",value:114}], "Q1 Revenue ($k)", "#6366f1")--root = Card([chart])-chart = PieChart([{label:"Product A",value:45},{label:"Product B",value:30},{label:"Product C",value:25}], "2025 Market Share")--## Important Rules-- ALWAYS start with root = Card(...)-- Write statements in TOP-DOWN order: root → components → data (leverages hoisting for progressive streaming)-- Each statement on its own line-- No trailing text or explanations — output ONLY openui-lang code-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)-- NEVER define a variable without referencing it from the tree. Every variable must be reachable from root, otherwise it will not render.--- Always wrap your entire response inside a single root Card.-- Use Text components for all textual content.-- Use variant="heading" for the main topic, variant="caption" for secondary info, and the default body variant for regular text.-- Use BarChart to compare discrete categories, LineChart for trends over time, and PieChart for part-to-whole proportions.-- Always provide meaningful labels for every data point.-- Only include a chart when the user's query involves data that genuinely benefits from visualisation.diff --git a/examples/openui-react-native/package.json b/examples/openui-react-native/package.jsondeleted file mode 100644index 154eaf406..000000000--- a/examples/openui-react-native/package.json+++ /dev/null@@ -1,14 +0,0 @@-{- "name": "chat-app",- "private": true,- "scripts": {- "dev:backend": "pnpm --filter backend dev",- "dev:mobile": "pnpm --filter react-native-openui start",- "generate:prompt": "pnpm --filter backend generate:prompt",- "lint": "eslint",- "lint:check": "eslint ./src",- "lint:fix": "eslint ./src --fix",- "format:fix": "prettier --write ./*",- "format:check": "prettier --check ./*"- }-}diff --git a/examples/react-email/postcss.config.mjs b/examples/react-email/postcss.config.mjsdeleted file mode 100644index 61e36849c..000000000--- a/examples/react-email/postcss.config.mjs+++ /dev/null@@ -1,7 +0,0 @@-const config = {- plugins: {- "@tailwindcss/postcss": {},- },-};--export default config;diff --git a/examples/react-email/src/generated/system-prompt.txt b/examples/react-email/src/generated/system-prompt.txtdeleted file mode 100644index 5f0cdc518..000000000--- a/examples/react-email/src/generated/system-prompt.txt+++ /dev/null@@ -1,376 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = EmailTemplate(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.--### Email Structure-EmailTemplate(subject: string, previewText?: string, children: (EmailHeading | EmailText | EmailButton | EmailImage | EmailDivider | EmailLink | EmailCodeBlock | EmailCodeInline | EmailMarkdown | EmailArticle | EmailProductCard | EmailFeatureGrid | EmailFeatureList | EmailNumberedSteps | EmailCheckoutTable | EmailPricingCard | EmailTestimonial | EmailSurveyRating | EmailStats | EmailImageGrid | EmailAvatarGroup | EmailAvatarWithText | EmailList | EmailCustomerReview | EmailBentoGrid | EmailSection | EmailColumns | EmailColumn | EmailHeaderSideNav | EmailHeaderCenteredNav | EmailHeaderSocial | EmailFooterCentered | EmailFooterTwoColumn)[]) — Root email template. Renders a live email preview with Copy HTML export. Always provide a subject line.-EmailSection(children: (EmailHeading | EmailText | EmailButton | EmailImage | EmailDivider | EmailLink | EmailCodeBlock | EmailCodeInline | EmailMarkdown | EmailArticle | EmailProductCard | EmailFeatureGrid | EmailFeatureList | EmailNumberedSteps | EmailCheckoutTable | EmailPricingCard | EmailTestimonial | EmailSurveyRating | EmailStats | EmailImageGrid | EmailAvatarGroup | EmailAvatarWithText | EmailList | EmailCustomerReview | EmailBentoGrid)[]) — Groups email content into a section. Use to organize header, body, and footer areas.-EmailColumns(children: EmailColumn[]) — Multi-column row layout. Contains EmailColumn children.-EmailColumn(children: (EmailHeading | EmailText | EmailButton | EmailImage | EmailDivider | EmailLink | EmailCodeBlock | EmailCodeInline | EmailMarkdown | EmailArticle | EmailProductCard | EmailFeatureGrid | EmailFeatureList | EmailNumberedSteps | EmailCheckoutTable | EmailPricingCard | EmailTestimonial | EmailSurveyRating | EmailStats | EmailImageGrid | EmailAvatarGroup | EmailAvatarWithText | EmailList | EmailCustomerReview | EmailBentoGrid)[]) — A single column within an EmailColumns row.-- EmailTemplate is the root email wrapper. Always use it for email content.-- Use EmailSection to group related content (e.g. header area, body, footer).-- Use EmailColumns + EmailColumn for multi-column layouts (e.g. two features side by side).--### Email Headers-EmailHeaderSideNav(logoSrc: string, logoAlt: string, logoHeight?: number, links: EmailNavLink[]) — Header with logo on the left and navigation links on the right. Uses EmailNavLink items.-EmailHeaderCenteredNav(logoSrc: string, logoAlt: string, logoHeight?: number, links: EmailNavLink[]) — Header with logo centered on top and navigation links centered below. Uses EmailNavLink items.-EmailHeaderSocial(logoSrc: string, logoAlt: string, logoHeight?: number, icons: EmailSocialIcon[]) — Header with logo on the left and social media icon links on the right. Uses EmailSocialIcon items.-EmailNavLink(text: string, href: string) — Navigation link item for email headers.-EmailSocialIcon(src: string, alt: string, href: string) — Social media icon link for email headers. src should be a square icon image URL.-- EmailHeaderSideNav: Logo on the left, text navigation links on the right. Use EmailNavLink for each link.-- EmailHeaderCenteredNav: Logo centered on top, text navigation links centered below. Use EmailNavLink for each link.-- EmailHeaderSocial: Logo on the left, social media icon links on the right. Use EmailSocialIcon for each icon.-- Place a header as the FIRST child of EmailTemplate for a professional branded look.-- Always follow the header with an EmailDivider to separate it from the body content.--### Email Footers-EmailFooterCentered(logoSrc: string, logoAlt: string, companyName: string, tagline?: string, address: string, contact?: string, icons?: EmailSocialIcon[]) — Centered footer with logo, company name, tagline, social icons, address, and contact info. Uses EmailSocialIcon items.-EmailFooterTwoColumn(logoSrc: string, logoAlt: string, companyName: string, tagline?: string, address: string, contact?: string, icons?: EmailSocialIcon[]) — Two-column footer with logo and company info on the left, social icons and address on the right. Uses EmailSocialIcon items.-- EmailFooterCentered: Centered footer with logo, company name, tagline, social icons, address, and contact info.-- EmailFooterTwoColumn: Two-column footer with logo and company info on the left, social icons and address on the right.-- Both footer components accept EmailSocialIcon items for social media icons.-- Place a footer as the LAST child of EmailTemplate, after an EmailDivider.--### Email Content-EmailHeading(text: string, level?: number) — Email heading (h1-h6). Use level 1 for main title, 2 for section headers.-EmailText(text: string) — Email text paragraph for body content.-EmailButton(label: string, href: string, backgroundColor?: string) — Email call-to-action button with link.-EmailImage(src: string, alt: string, width?: number) — Email image. Use real, publicly accessible URLs.-EmailDivider() — Horizontal divider line to separate email sections.-EmailLink(text: string, href: string) — Inline hyperlink in email content.-EmailCodeBlock(code: string, language?: string) — Syntax-highlighted code block for displaying code snippets in emails.-EmailCodeInline(code: string) — Inline code snippet for embedding code within text.-EmailMarkdown(content: string) — Renders markdown content as styled email HTML. Supports headings, bold, italic, links, lists, and code.-- EmailHeading level 1 for main title, level 2 for section headers.-- EmailButton always needs an href URL.-- EmailImage should use real, publicly accessible image URLs.-- EmailDivider takes no arguments: EmailDivider()-- EmailCodeBlock for multi-line code snippets. Optionally set language (e.g. 'javascript', 'python').-- EmailCodeInline for inline code within text (e.g. variable names, commands).-- EmailMarkdown for rendering markdown content (headings, bold, italic, links, lists).--### Email Articles & Products-EmailArticle(imageSrc: string, imageAlt: string, category?: string, title: string, description: string, buttonLabel: string, buttonHref: string, buttonColor?: string) — Article block with hero image, optional category label, title, description, and CTA button. Great for blog posts and newsletter articles.-EmailProductCard(imageSrc: string, imageAlt: string, category?: string, title: string, description: string, price: string, buttonLabel: string, buttonHref: string, buttonColor?: string) — Product showcase card with hero image, optional category, title, description, price, and buy button.-- EmailArticle: Hero image + category + title + description + CTA button. Great for blog posts and newsletters.-- EmailProductCard: Hero image + category + title + description + price + buy button. Great for product showcases.-- Both support an optional buttonColor prop for CTA button customization.--### Email Features & Steps-EmailFeatureItem(iconSrc: string, iconAlt: string, title: string, description: string) — Single feature item with icon, title, and description. Used inside EmailFeatureGrid or EmailFeatureList.-EmailFeatureGrid(title: string, description: string, items: EmailFeatureItem[]) — 2x2 feature grid with header title, description, and four feature items each with icon, title, and description.-EmailFeatureList(title: string, description: string, items: EmailFeatureItem[]) — Vertical feature list with header title, description, and feature items separated by dividers. Each item has an icon, title, and description.-EmailStepItem(title: string, description: string) — Single numbered step with title and description. Used inside EmailNumberedSteps.-EmailNumberedSteps(title: string, description: string, steps: EmailStepItem[]) — Numbered steps list with header title, description, and sequential step items. Each step shows a numbered badge, title, and description.-- EmailFeatureItem: Child component with iconSrc, iconAlt, title, description. Used inside EmailFeatureGrid or EmailFeatureList.-- EmailFeatureGrid: 2x2 grid of features with header title and description. Takes EmailFeatureItem items.-- EmailFeatureList: Vertical list of features separated by dividers. Takes EmailFeatureItem items.-- EmailStepItem: Child component with title and description. Used inside EmailNumberedSteps.-- EmailNumberedSteps: Numbered steps list with auto-numbered badges. Takes EmailStepItem items.-- For icon URLs, use https://picsum.photos/seed/KEYWORD/48/48 or similar.--### Email Commerce-EmailCheckoutItem(imageSrc?: string, imageAlt?: string, name: string, quantity?: number, price: string) — Single checkout/cart item with optional image, name, quantity, and price. Used inside EmailCheckoutTable.-EmailCheckoutTable(title?: string, items: EmailCheckoutItem[], buttonLabel: string, buttonHref: string, buttonColor?: string) — Checkout/cart table with product items (image, name, quantity, price) and a checkout button. Great for abandoned cart and order summary emails.-EmailPricingFeature(text: string) — Single pricing feature line item. Used inside EmailPricingCard.-EmailPricingCard(badge?: string, price: string, period?: string, description: string, features: EmailPricingFeature[], buttonLabel: string, buttonHref: string, buttonColor?: string, note?: string, subNote?: string) — Pricing card with badge, price, description, feature list, CTA button, and optional note. Great for upgrade and promotional emails.-- EmailCheckoutItem: Cart item with optional image, name, quantity, price. Used inside EmailCheckoutTable.-- EmailCheckoutTable: Cart table with items and checkout button. Great for abandoned cart and order summary emails.-- EmailPricingFeature: Single feature line item text. Used inside EmailPricingCard.-- EmailPricingCard: Pricing card with badge, price, period, description, features list, CTA button, and optional note.--### Email Social Proof & Surveys-EmailTestimonial(quote: string, avatarSrc: string, avatarAlt: string, name: string, role: string) — Testimonial quote with avatar, name, and role. Centered layout for social proof in emails.-EmailSurveyRating(question: string, description?: string, buttonColor?: string) — Rating survey section with a question and 1-5 numbered buttons. Great for feedback and NPS emails.-EmailStatItem(value: string, label: string) — Single stat with a value and label. Used inside EmailStats.-EmailStats(items: EmailStatItem[]) — Horizontal stats row displaying key metrics. Each stat has a large value and a label below it.-- EmailTestimonial: Centered testimonial quote with avatar, name, and role.-- EmailSurveyRating: Rating survey with question and 1-5 numbered buttons. Great for feedback/NPS emails.-- EmailStatItem: Child component with value and label. Used inside EmailStats.-- EmailStats: Horizontal row of key metrics/stats.--### Email Image Layouts-EmailImageGrid(title?: string, description?: string, images: EmailImage[]) — 2x2 image grid layout with optional header title and description. Pass up to 4 EmailImage items. Great for product galleries and portfolios.-- EmailImageGrid: 2x2 image grid with optional title and description. Pass up to 4 EmailImage items.-- Great for product galleries, portfolios, and visual showcases.--### Email Avatars-EmailAvatar(src: string, alt: string, size?: number, rounded?: "full" | "md") — Avatar image component. Supports circular (rounded='full') or rounded-square (rounded='md') shapes, and configurable size.-EmailAvatarGroup(avatars: EmailAvatar[]) — Overlapping stacked avatar group. Pass EmailAvatar items to display them in a horizontal row with negative offset overlap.-EmailAvatarWithText(avatarSrc: string, avatarAlt: string, name: string, role: string, href?: string) — Avatar with name and role text beside it. Optionally wraps in a link. Great for author attribution or team member display.-- EmailAvatar: Single avatar image. Supports circular (rounded='full') or rounded-square (rounded='md') shapes, and configurable size.-- EmailAvatarGroup: Overlapping stacked avatars. Pass EmailAvatar items. Great for showing team members or participants.-- EmailAvatarWithText: Avatar with name and role text beside it. Optionally wraps in a link. Great for author attribution.--### Email Lists-EmailListItem(title: string, description: string) — Data-only list item with title and description. Used as a child inside EmailList.-EmailList(title?: string, items: EmailListItem[]) — Numbered list with circular number badges and item title + description. Pass EmailListItem children. Great for feature lists, how-it-works sections, and top-N lists.-- EmailListItem: Data-only component with title and description. Used as a child inside EmailList.-- EmailList: Numbered list with circular badges. Pass EmailListItem children. Great for top-N lists, how-it-works, and feature lists.--### Email Reviews-EmailCustomerReview(title?: string, totalReviews: number, rating5: number, rating4: number, rating3: number, rating2: number, rating1: number, buttonLabel?: string, buttonHref?: string, buttonColor?: string) — Customer review summary with star rating distribution bars showing percentages for each rating (1-5). Includes total review count and optional CTA button to write a review.-- EmailCustomerReview: Star rating distribution with bars and percentages. Shows total review count and optional CTA button.-- Provide rating counts for each star level (rating1 through rating5) and totalReviews.--### Email Marketing-EmailBentoItem(imageSrc: string, imageAlt: string, title: string, description: string) — Data-only bento grid item with image, title, and description. Used as a child inside EmailBentoGrid.-EmailBentoGrid(heroTitle: string, heroDescription: string, heroLinkText?: string, heroLinkHref?: string, heroImageSrc: string, heroImageAlt: string, items: EmailBentoItem[]) — Bento grid layout with a dark hero section (title, description, link, image) on top and a row of product cards below. Pass EmailBentoItem children for the bottom row. Great for marketing and product showcase emails.-- EmailBentoItem: Data-only component with imageSrc, imageAlt, title, description. Used inside EmailBentoGrid.-- EmailBentoGrid: Bento-style layout with a dark hero section on top and product cards below. Pass EmailBentoItem children.-- Great for product showcase and marketing emails.--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = EmailTemplate(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = EmailTemplate(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Welcome email:-root = EmailTemplate("Welcome to Acme!", "You're in! Here's how to get started.", [heading, intro, btn, divider, footer])-heading = EmailHeading("Welcome aboard!", 1)-intro = EmailText("Thanks for signing up for Acme. We're thrilled to have you on board. Here's everything you need to get started.")-btn = EmailButton("Get Started", "https://example.com/start", "#5F51E8")-divider = EmailDivider()-footer = EmailText("If you have any questions, reply to this email. We're here to help.")--Example 2 — Newsletter with header and footer:-root = EmailTemplate("Acme Weekly", "This week: new features and tips", [header, divider1, section1, divider2, section2, divider3, footer])-header = EmailHeaderSideNav("https://picsum.photos/seed/acme-logo/150/42", "Acme", 42, [nav1, nav2, nav3])-nav1 = EmailNavLink("About", "https://example.com/about")-nav2 = EmailNavLink("Blog", "https://example.com/blog")-nav3 = EmailNavLink("Docs", "https://example.com/docs")-divider1 = EmailDivider()-section1 = EmailSection([s1title, s1text, s1btn])-s1title = EmailHeading("New Feature: Dark Mode", 2)-s1text = EmailText("We just launched dark mode across all platforms. Your eyes will thank you.")-s1btn = EmailButton("Try It Now", "https://example.com/dark-mode", "#1a1a2e")-divider2 = EmailDivider()-section2 = EmailSection([s2title, s2text])-s2title = EmailHeading("Tip of the Week", 2)-s2text = EmailText("Use keyboard shortcuts to navigate 3x faster.")-divider3 = EmailDivider()-footer = EmailFooterCentered("https://picsum.photos/seed/acme-icon/42/42", "Acme", "Acme Corporation", "Think different", "123 Main Street, Anytown, CA 12345", "[email protected]", [fi1, fi2, fi3])-fi1 = EmailSocialIcon("https://react.email/static/facebook-logo.png", "Facebook", "https://facebook.com/acme")-fi2 = EmailSocialIcon("https://react.email/static/x-logo.png", "X", "https://x.com/acme")-fi3 = EmailSocialIcon("https://react.email/static/instagram-logo.png", "Instagram", "https://instagram.com/acme")--Example 3 — Order confirmation with columns:-root = EmailTemplate("Order Confirmed #12345", "Your order has been placed!", [heading, thanks, divider1, cols, divider2, total, btn, divider3, footer])-heading = EmailHeading("Order Confirmed", 1)-thanks = EmailText("Thank you for your purchase! Here's a summary of your order.")-divider1 = EmailDivider()-cols = EmailColumns([col1, col2])-col1 = EmailColumn([itemTitle, itemDesc])-col2 = EmailColumn([priceTitle, priceVal])-itemTitle = EmailHeading("Item", 2)-itemDesc = EmailText("Premium Plan - Annual")-priceTitle = EmailHeading("Price", 2)-priceVal = EmailText("$99.00/year")-divider2 = EmailDivider()-total = EmailText("Total: $99.00")-btn = EmailButton("View Order", "https://example.com/orders/12345", "#16a34a")-divider3 = EmailDivider()-footer = EmailText("Need help? Contact us at [email protected]")--Example 4 — Developer onboarding with code:-root = EmailTemplate("Getting Started with Acme API", "Your API key is ready", [heading, intro, section1, divider, section2, divider2, footer])-heading = EmailHeading("Welcome to the Acme API", 1)-intro = EmailMarkdown("You're all set! Below you'll find everything you need to **get started** with our API.")-section1 = EmailSection([s1title, s1text, codeblock])-s1title = EmailHeading("Quick Start", 2)-s1text = EmailText("Install the SDK and make your first request:")-codeblock = EmailCodeBlock("npm install @acme/sdk\n\nimport { Acme } from '@acme/sdk';\nconst client = new Acme({ apiKey: 'your-key' });\nconst res = await client.ping();", "javascript")-divider = EmailDivider()-section2 = EmailSection([s2title, s2text])-s2title = EmailHeading("Need Help?", 2)-s2text = EmailMarkdown("Check our [documentation](https://docs.example.com) or reply to this email.")-divider2 = EmailDivider()-footer = EmailText("Happy coding!")--Example 5 — Password reset email:-root = EmailTemplate("Reset your password", "Someone requested a password change", [logo, heading, text1, btn, text2, divider, linkText, divider2, footer])-logo = EmailImage("https://picsum.photos/seed/app-logo/100/30", "App", 100)-heading = EmailHeading("Reset your password", 1)-text1 = EmailText("Someone recently requested a password change for your account. If this was you, click below:")-btn = EmailButton("Reset Password", "https://example.com/reset?token=abc123", "#0061fe")-text2 = EmailText("Or copy and paste this link:")-divider = EmailDivider()-linkText = EmailLink("https://example.com/reset?token=abc123", "https://example.com/reset?token=abc123")-divider2 = EmailDivider()-footer = EmailText("If you didn't request this, just ignore this email. This link expires in 24 hours.")--Example 6 — Promotional sale email:-root = EmailTemplate("Summer Sale — Up to 50% Off!", "Don't miss our biggest sale", [hero, heading, subhead, divider1, featCols, divider2, ctaBtn, divider3, footer])-hero = EmailImage("https://picsum.photos/seed/summer-sale/600/250", "Summer Sale Banner", 600)-heading = EmailHeading("Summer Sale is Here!", 1)-subhead = EmailText("For a limited time, enjoy up to 50% off on select items.")-divider1 = EmailDivider()-featCols = EmailColumns([deal1Col, deal2Col, deal3Col])-deal1Col = EmailColumn([deal1Img, deal1Name, deal1Price])-deal2Col = EmailColumn([deal2Img, deal2Name, deal2Price])-deal3Col = EmailColumn([deal3Img, deal3Name, deal3Price])-deal1Img = EmailImage("https://picsum.photos/seed/product1/180/180", "Sunglasses", 180)-deal1Name = EmailText("Designer Sunglasses")-deal1Price = EmailText("$49.99 (was $99.99)")-deal2Img = EmailImage("https://picsum.photos/seed/product2/180/180", "Beach Bag", 180)-deal2Name = EmailText("Canvas Beach Bag")-deal2Price = EmailText("$29.99 (was $59.99)")-deal3Img = EmailImage("https://picsum.photos/seed/product3/180/180", "Sandals", 180)-deal3Name = EmailText("Leather Sandals")-deal3Price = EmailText("$39.99 (was $79.99)")-divider2 = EmailDivider()-ctaBtn = EmailButton("Shop the Sale", "https://example.com/summer-sale", "#e11d48")-divider3 = EmailDivider()-footer = EmailText("StyleShop · 500 Fashion Ave · New York, NY 10018")--Example 7 — Feature showcase with grid and steps:-root = EmailTemplate("Welcome to Acme!", "Discover what you can do", [heading, intro, divider1, featureGrid, divider2, steps, divider3, footer])-heading = EmailHeading("Welcome to Acme!", 1)-intro = EmailText("Here's what you can do with your new account:")-divider1 = EmailDivider()-featureGrid = EmailFeatureGrid("Key Features", "Powerful features to help you succeed.", [feat1, feat2, feat3, feat4])-feat1 = EmailFeatureItem("https://picsum.photos/seed/heart/48/48", "Heart", "Easy to Use", "Get started in minutes.")-feat2 = EmailFeatureItem("https://picsum.photos/seed/rocket/48/48", "Rocket", "Lightning Fast", "Blazing fast performance.")-feat3 = EmailFeatureItem("https://picsum.photos/seed/shield/48/48", "Shield", "Secure", "Enterprise-grade security.")-feat4 = EmailFeatureItem("https://picsum.photos/seed/chart/48/48", "Chart", "Analytics", "Deep data insights.")-divider2 = EmailDivider()-steps = EmailNumberedSteps("Getting Started", "Follow these steps:", [step1, step2, step3])-step1 = EmailStepItem("Create Profile", "Set up your profile with a photo and bio.")-step2 = EmailStepItem("Connect Tools", "Integrate with Slack, GitHub, and Jira.")-step3 = EmailStepItem("Invite Team", "Add team members and start collaborating.")-divider3 = EmailDivider()-footer = EmailText("Acme, Inc. · San Francisco, CA 94107")--Example 8 — Abandoned cart email:-root = EmailTemplate("You left something behind!", "Complete your purchase", [heading, text, checkout, divider, footer])-heading = EmailHeading("Don't forget your items!", 1)-text = EmailText("Complete your purchase before these items sell out.")-checkout = EmailCheckoutTable("Your Cart", [item1, item2], "Complete Purchase", "https://example.com/checkout", "#4F46E5")-item1 = EmailCheckoutItem("https://picsum.photos/seed/watch/100/100", "Classic Watch", "Classic Watch", 1, "$210.00")-item2 = EmailCheckoutItem("https://picsum.photos/seed/clock/100/100", "Wall Clock", "Analogue Clock", 2, "$40.00")-divider = EmailDivider()-footer = EmailText("Acme Store · 123 Commerce Way · San Francisco, CA 94107")--Example 9 — Pricing with testimonial and survey:-root = EmailTemplate("Upgrade to Pro", "Unlock premium features", [heading, text, divider1, pricing, divider2, testimonial, divider3, survey, divider4, footer])-heading = EmailHeading("Upgrade Your Plan", 1)-text = EmailText("You've been on the free plan for 30 days. Unlock everything with Pro.")-divider1 = EmailDivider()-pricing = EmailPricingCard("Pro", "$12", "/ month", "Everything you need to grow.", [pf1, pf2, pf3], "Upgrade Now", "https://example.com/upgrade", "#4F46E5")-pf1 = EmailPricingFeature("Unlimited projects")-pf2 = EmailPricingFeature("Advanced analytics")-pf3 = EmailPricingFeature("Priority support")-divider2 = EmailDivider()-testimonial = EmailTestimonial("Acme Pro transformed our workflow. Can't imagine going back.", "https://picsum.photos/seed/ceo/100/100", "Jane Smith", "Jane Smith", "CEO, TechCorp")-divider3 = EmailDivider()-survey = EmailSurveyRating("How would you rate your experience?", "Your feedback helps us improve.", "#4F46E5")-divider4 = EmailDivider()-footer = EmailText("Acme, Inc. · San Francisco, CA 94107")--Example 10 — Stats, gallery, avatars, list, and bento grid:-root = EmailTemplate("Your Monthly Report", "Key metrics and highlights", [header, divider1, stats, divider2, gallery, divider3, team, divider4, list, divider5, bento, divider6, reviews, divider7, footer])-header = EmailHeaderCenteredNav("https://picsum.photos/seed/acme/150/42", "Acme", 42, [nav1, nav2])-nav1 = EmailNavLink("Dashboard", "https://example.com/dashboard")-nav2 = EmailNavLink("Reports", "https://example.com/reports")-divider1 = EmailDivider()-stats = EmailStats([stat1, stat2, stat3])-stat1 = EmailStatItem("12,847", "Users")-stat2 = EmailStatItem("94.2%", "Uptime")-stat3 = EmailStatItem("$48.5K", "Revenue")-divider2 = EmailDivider()-gallery = EmailImageGrid("New Products", "Our latest arrivals.", [img1, img2, img3, img4])-img1 = EmailImage("https://picsum.photos/seed/prod-a/300/288", "Product A")-img2 = EmailImage("https://picsum.photos/seed/prod-b/300/288", "Product B")-img3 = EmailImage("https://picsum.photos/seed/prod-c/300/288", "Product C")-img4 = EmailImage("https://picsum.photos/seed/prod-d/300/288", "Product D")-divider3 = EmailDivider()-team = EmailAvatarGroup([av1, av2, av3])-av1 = EmailAvatar("https://picsum.photos/seed/person1/100/100", "Alice", 44)-av2 = EmailAvatar("https://picsum.photos/seed/person2/100/100", "Bob", 44)-av3 = EmailAvatar("https://picsum.photos/seed/person3/100/100", "Carol", 44)-divider4 = EmailDivider()-list = EmailList("Top 3 Updates", [li1, li2, li3])-li1 = EmailListItem("New Dashboard", "Redesigned analytics dashboard with real-time data.")-li2 = EmailListItem("Mobile App", "Now available on iOS and Android.")-li3 = EmailListItem("API v2", "Faster, more reliable API with new endpoints.")-divider5 = EmailDivider()-bento = EmailBentoGrid("Featured Collection", "Handpicked products for you.", "Shop now", "https://example.com/shop", "https://picsum.photos/seed/hero/400/250", "Collection", [bi1, bi2])-bi1 = EmailBentoItem("https://picsum.photos/seed/item-x/300/200", "Item X", "Premium Widget", "High-quality craftsmanship.")-bi2 = EmailBentoItem("https://picsum.photos/seed/item-y/300/200", "Item Y", "Deluxe Gadget", "Next-gen technology.")-divider6 = EmailDivider()-reviews = EmailCustomerReview("Product Ratings", 500, 300, 100, 50, 30, 20, "Write a Review", "https://example.com/review", "#4F46E5")-divider7 = EmailDivider()-footer = EmailFooterTwoColumn("https://picsum.photos/seed/acme-icon/42/42", "Acme", "Acme Corp", "Innovation first", "123 Main St, CA 12345", "[email protected]", [si1, si2])-si1 = EmailSocialIcon("https://react.email/static/x-logo.png", "X", "https://x.com/acme")-si2 = EmailSocialIcon("https://react.email/static/instagram-logo.png", "Instagram", "https://instagram.com/acme")--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = EmailTemplate(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- You are an expert email designer using react-email components.-- The 10 supported email types are: Welcome/Onboarding, Newsletter, Order Confirmation, Password Reset, Promotional/Sale, Event Invitation, Feedback Request, Shipping/Delivery Update, Account Verification, Onboarding Tutorial.-- Use realistic, professional placeholder text — never use lorem ipsum.-- Always provide both subject and previewText for EmailTemplate.-- Use EmailSection to group related content areas (header, body, footer sections).-- Use EmailDivider between major sections for visual separation.-- For multi-column layouts (features, pricing comparisons), use EmailColumns with EmailColumn children.-- Keep email designs clean and focused — avoid too many colors or fonts.-- Use EmailButton with descriptive labels and realistic href URLs.-- For images, use publicly accessible URLs like https://picsum.photos/seed/KEYWORD/600/300.-- When the user asks to modify an existing email, regenerate the full EmailTemplate with the requested changes applied.-- Use EmailCodeBlock for multi-line code (API examples, install commands). Set the language prop for syntax context.-- Use EmailCodeInline for short inline code references within EmailText (e.g. variable names, CLI commands).-- Use EmailMarkdown when the content includes rich formatting like bold, italic, links, or lists — it's more flexible than plain EmailText.-- Use EmailHeaderSideNav for a professional header with logo left and nav links right.-- Use EmailHeaderCenteredNav for a centered brand header with logo on top and nav links below.-- Use EmailHeaderSocial for a header with logo left and social media icons right.-- Place the header as the FIRST child of EmailTemplate, followed by an EmailDivider.-- Use EmailFooterCentered for a centered footer with logo, company name, social icons, and contact info.-- Use EmailFooterTwoColumn for a two-column footer with logo and info on the left, social icons and address on the right.-- Place the footer as the LAST child of EmailTemplate, after an EmailDivider.-- Use EmailArticle for blog post or newsletter article blocks with hero image, category, title, description, and CTA.-- Use EmailProductCard for product showcases with image, title, description, price, and buy button.-- Use EmailFeatureGrid for a 2x2 grid of features with icons. Provide exactly 4 EmailFeatureItem children.-- Use EmailFeatureList for a vertical list of features with icons and dividers. Any number of EmailFeatureItem children.-- Use EmailNumberedSteps for step-by-step guides. Steps are auto-numbered. Provide EmailStepItem children.-- Use EmailCheckoutTable for cart/order summary tables. Provide EmailCheckoutItem children with product details.-- Use EmailPricingCard for pricing plans with feature lists. Provide EmailPricingFeature children for each feature line.-- Use EmailTestimonial for customer quotes with avatar, name, and role.-- Use EmailSurveyRating for feedback/NPS emails with a 1-5 rating scale.-- Use EmailStats for displaying key metrics. Provide EmailStatItem children with value and label.-- Use EmailImageGrid for a 2x2 image gallery. Provide up to 4 EmailImage children.-- Use EmailAvatar for a single avatar image. Set rounded='full' for circular or rounded='md' for rounded-square. Default size is 42px.-- Use EmailAvatarGroup for overlapping stacked avatars. Provide EmailAvatar children. Great for showing team members or participants.-- Use EmailAvatarWithText for an avatar with name and role text. Optionally wrap in a link with href. Great for author attribution in articles.-- Use EmailList for numbered lists with circular badges. Provide EmailListItem children with title and description.-- Use EmailCustomerReview for a star rating distribution summary. Provide counts for each rating level (rating1-rating5) and totalReviews.-- Use EmailBentoGrid for a bento-style marketing layout. Provide a dark hero section and EmailBentoItem children for product cards below.\ No newline at end of filediff --git a/examples/react-email/tsconfig.json b/examples/react-email/tsconfig.jsondeleted file mode 100644index cf9c65d3e..000000000--- a/examples/react-email/tsconfig.json+++ /dev/null@@ -1,34 +0,0 @@-{- "compilerOptions": {- "target": "ES2017",- "lib": ["dom", "dom.iterable", "esnext"],- "allowJs": true,- "skipLibCheck": true,- "strict": true,- "noEmit": true,- "esModuleInterop": true,- "module": "esnext",- "moduleResolution": "bundler",- "resolveJsonModule": true,- "isolatedModules": true,- "jsx": "react-jsx",- "incremental": true,- "plugins": [- {- "name": "next"- }- ],- "paths": {- "@/*": ["./src/*"]- }- },- "include": [- "next-env.d.ts",- "**/*.ts",- "**/*.tsx",- ".next/types/**/*.ts",- ".next/dev/types/**/*.ts",- "**/*.mts"- ],- "exclude": ["node_modules"]-}diff --git a/examples/shadcn-chat/.gitignore b/examples/shadcn-chat/.gitignoredeleted file mode 100644index c3a91b99c..000000000--- a/examples/shadcn-chat/.gitignore+++ /dev/null@@ -1,4 +0,0 @@-.next-node_modules-.env-.env.localdiff --git a/examples/shadcn-chat/next-env.d.ts b/examples/shadcn-chat/next-env.d.tsdeleted file mode 100644index 9edff1c7c..000000000--- a/examples/shadcn-chat/next-env.d.ts+++ /dev/null@@ -1,6 +0,0 @@-/// <reference types="next" />-/// <reference types="next/image-types/global" />-import "./.next/types/routes.d.ts";--// NOTE: This file should not be edited-// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.diff --git a/examples/shadcn-chat/next.config.ts b/examples/shadcn-chat/next.config.tsdeleted file mode 100644index b08275c80..000000000--- a/examples/shadcn-chat/next.config.ts+++ /dev/null@@ -1,7 +0,0 @@-import type { NextConfig } from "next";--const nextConfig: NextConfig = {- turbopack: {},-};--export default nextConfig;diff --git a/examples/shadcn-chat/postcss.config.mjs b/examples/shadcn-chat/postcss.config.mjsdeleted file mode 100644index 61e36849c..000000000--- a/examples/shadcn-chat/postcss.config.mjs+++ /dev/null@@ -1,7 +0,0 @@-const config = {- plugins: {- "@tailwindcss/postcss": {},- },-};--export default config;diff --git a/examples/shadcn-chat/src/generated/system-prompt.txt b/examples/shadcn-chat/src/generated/system-prompt.txtdeleted file mode 100644index b77b09ea0..000000000--- a/examples/shadcn-chat/src/generated/system-prompt.txt+++ /dev/null@@ -1,273 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.--### Content-CardHeader(title: string, description?: string) — Title/description header block for a Card.-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block with optional size. size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-MarkDownRenderer(text: string) — Renders markdown text with GFM support.-Alert(title: string, description: string, variant?: "default" | "destructive" | "info" | "success" | "warning") — Alert banner with icon, title, and description. variant: "default" | "destructive" | "info" | "success" | "warning".-Badge(text: string, variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link") — Inline label/badge. variant: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link".-Avatar(src?: string, alt?: string, fallback: string) — Circular avatar with image and fallback text.-CodeBlock(code: string, language?: string, title?: string) — Syntax-highlighted code block with optional language and title.-Image(src: string, alt?: string) — Displays an image with optional alt text.-ImageBlock(src: string, alt?: string, caption?: string) — Image with optional caption.-Progress(value: number, label?: string) — Progress bar showing completion percentage (0-100). Optional label.-Separator(orientation?: "horizontal" | "vertical") — Horizontal or vertical rule. orientation: "horizontal" | "vertical".--### Tables-Table(columns: Col[], [rows]) — Data table. columns: Col[] with header/type, rows: 2D array of values.-Col(header: string, type?: "string" | "number" | "boolean") — Column definition for Table — header label and optional type.--### Charts (2D)-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bar chart. Use for comparing values across categories.-LineChart(labels: string[], series: Series[], xLabel?: string, yLabel?: string) — Line chart for trends over categories.-AreaChart(labels: string[], series: Series[], xLabel?: string, yLabel?: string) — Area chart for showing volume over categories.-RadarChart(labels: string[], series: Series[]) — Radar/spider chart for multi-dimensional comparison.-Series(category: string, values: number[]) — One named data series with values matching labels.--### Charts (1D)-PieChart(slices: Slice[], donut?: boolean) — Pie or donut chart. slices: Slice[], donut: boolean for ring chart.-RadialChart(slices: Slice[]) — Radial bar chart for displaying categorized values in rings.-Slice(category: string, value: number) — A single slice in a PieChart or RadialChart.--### Charts (Scatter)-ScatterChart(series: ScatterSeries[], xLabel?: string, yLabel?: string) — Scatter plot with named series of Point references.-ScatterSeries(category: string, points: Point[]) — Named scatter series with Point references.-Point(x: number, y: number, label?: string) — A single data point in a ScatterChart series.--### Forms-Form(name: string, buttons: Buttons, fields) — Form container with fields and explicit action buttons. fields: FormControl[], buttons: Buttons.-FormControl(label: string, field) — Wraps a form field with a label and error display.-Label(text: string, htmlFor?: string) — Form label. Optionally links to an input via htmlFor.-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Text input field. type: "text" | "email" | "password" | "number" | "url". rules for validation.-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Multi-line text input. rows sets visible height. rules for validation.-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Dropdown select. items: SelectItem[], placeholder, rules for validation.-SelectItem(value: string, label: string) — Option for Select dropdown.-DatePicker(name: string, placeholder?: string) — Date selection input with calendar popover.-Slider(name: string, min?: number, max?: number, step?: number, defaultValue?: number) — Range slider input. min, max, step, defaultValue.-CheckBoxGroup(name: string, items: CheckBoxItem[]) — Multiple checkbox options. items: CheckBoxItem[].-CheckBoxItem(value: string, label: string) — Option in a CheckBoxGroup.-RadioGroup(name: string, items: RadioItem[]) — Radio selection group. items: RadioItem[].-RadioItem(value: string, label: string) — Option in a RadioGroup.-SwitchGroup(name: string, items: SwitchItem[]) — Group of toggle switches. items: SwitchItem[].-SwitchItem(value: string, label: string) — Toggle option in a SwitchGroup.-- Define EACH FormControl as its own reference — do NOT inline all controls in one array.-- NEVER nest Form inside Form.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.-- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }-- The renderer shows error messages automatically — do NOT generate error text in the UI--### Buttons-Button(label: string, action?: {type: "open_url", url: string} | {type: "continue_conversation", context?: string} | {type: string, params?}, variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link", size?: "default" | "xs" | "sm" | "lg" | "icon") — Clickable button. variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link". size: "default" | "xs" | "sm" | "lg" | "icon". action: { type: "continue_conversation" | "open_url", url? }.-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" | "column".--### Follow-ups-FollowUpBlock(items: FollowUpItem[]) — List of follow-up suggestion chips at the end of a response.-FollowUpItem(text: string) — Clickable follow-up suggestion — sends text as user message when clicked.-- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.-- Clicking a FollowUpItem sends its text to the LLM as a user message.--### Layout-Tabs(items: TabItem[], defaultValue?: string) — Tabbed content. items: TabItem[]. defaultValue: initially active tab.-TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Alert | Badge | Avatar | CodeBlock | Image | ImageBlock | Progress | Separator | BarChart | LineChart | AreaChart | PieChart | RadarChart | RadialChart | ScatterChart | Table | TagBlock | Form | Buttons | Heading | Blockquote | InlineCode | PaginationBlock | DialogBlock | AlertDialogBlock | DrawerBlock | CalendarBlock)[]) — Tab panel. value: unique id, trigger: tab label, content: children.-Accordion(items: AccordionItem[], type?: "single" | "multiple") — Collapsible sections. type: "single" | "multiple". items: AccordionItem[].-AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Alert | Badge | Avatar | CodeBlock | Image | ImageBlock | Progress | Separator | BarChart | LineChart | AreaChart | PieChart | RadarChart | RadialChart | ScatterChart | Table | TagBlock | Form | Buttons | Heading | Blockquote | InlineCode | PaginationBlock | DialogBlock | AlertDialogBlock | DrawerBlock | CalendarBlock)[]) — Collapsible item inside Accordion. value: unique id, trigger: header text.-Carousel([slides], variant?: "default" | "card") — Horizontal sliding content. slides: array of slide arrays. variant: "default" | "card".-- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.-- Carousel takes an array of slides, where each slide is an array of content.-- IMPORTANT: Every slide in a Carousel must have the same structure.--### Data Display-TagBlock(tags: (string | Tag)[]) — Group of tags. Accepts string array or Tag references.-Tag(text: string, variant?: "default" | "secondary" | "destructive" | "outline" | "ghost") — Styled tag/badge. Used inside TagBlock.--### Typography-Heading(text: string, level?: "h1" | "h2" | "h3" | "h4") — Heading text. level: "h1" | "h2" | "h3" | "h4". Defaults to "h2".-Blockquote(text: string, cite?: string) — Styled blockquote. Optional cite for attribution.-InlineCode(code: string) — Inline code snippet rendered with monospace font.-- Heading levels: "h1" | "h2" | "h3" | "h4". Each renders with appropriate shadcn/ui typography styles.-- Blockquote for styled quotes with optional cite attribution.-- InlineCode for monospace code snippets within text.--### Calendar-CalendarBlock(mode?: "single" | "multiple" | "range", defaultMonth?: string, numberOfMonths?: number, captionLayout?: "label" | "dropdown") — Standalone calendar display. mode: "single" | "multiple" | "range". captionLayout: "label" | "dropdown" (default "dropdown"). numberOfMonths defaults to 1.-- CalendarBlock renders a standalone interactive calendar. mode: "single" | "multiple" | "range".-- Use numberOfMonths to show multiple months side by side.-- Use defaultMonth (ISO date string) to set the initial visible month.--### Navigation-PaginationBlock(currentPage: number, totalPages: number) — Page navigation. currentPage and totalPages control which pages are shown.-- PaginationBlock takes currentPage and totalPages.--### Overlays-DialogBlock(triggerLabel: string, title: string, description?: string, content, triggerVariant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link") — Modal dialog triggered by a button. triggerLabel: button text, title/description in header, content: children rendered inside.-AlertDialogBlock(triggerLabel: string, title: string, description: string, confirmLabel?: string, cancelLabel?: string, triggerVariant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link") — Confirmation dialog with cancel and confirm buttons. Clicking confirm sends the confirmLabel as a message.-DrawerBlock(triggerLabel: string, title: string, description?: string, content) — Bottom drawer panel triggered by a button. triggerLabel: button text, title/description in header, content: children rendered inside.-- DialogBlock renders a button that opens a modal dialog with content inside.-- AlertDialogBlock renders a confirmation dialog with cancel/confirm actions.-- DrawerBlock renders a bottom drawer panel triggered by a button.--### Other-Card(children: (TextContent | MarkDownRenderer | CardHeader | Alert | Badge | Avatar | CodeBlock | Image | ImageBlock | Progress | Separator | BarChart | LineChart | AreaChart | PieChart | RadarChart | RadialChart | ScatterChart | Table | TagBlock | Form | Buttons | Heading | Blockquote | InlineCode | PaginationBlock | DialogBlock | AlertDialogBlock | DrawerBlock | CalendarBlock | FollowUpBlock | Tabs | Carousel)[]) — Vertical container for all content in a chat response. Children stack top to bottom automatically.--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Table with follow-ups:-root = Card([title, tbl, followUps])-title = TextContent("Top Languages", "large-heavy")-tbl = Table(cols, rows)-cols = [Col("Language", "string"), Col("Users (M)", "number"), Col("Year", "number")]-rows = [["Python", 15.7, 1991], ["JavaScript", 14.2, 1995], ["Java", 12.1, 1995]]-followUps = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Tell me more about Python")-fu2 = FollowUpItem("Show me a JavaScript comparison")--Example 2 — Form with validation:-root = Card([title, form])-title = TextContent("Contact Us", "large-heavy")-form = Form("contact", btns, [nameField, emailField, msgField])-nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))-emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))-msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))-btns = Buttons([Button("Submit", { type: "continue_conversation" }, "default")])--Example 3 — Alert variants:-root = Card([info, success, warning, danger])-info = Alert("Update available", "A new version is available for download.", "info")-success = Alert("Payment confirmed", "Your transaction was successful.", "success")-warning = Alert("Disk almost full", "You have less than 10% storage remaining.", "warning")-danger = Alert("Account suspended", "Please contact support immediately.", "destructive")--Example 4 — Bar chart with badges:-root = Card([header, badges, chart, followUps])-header = CardHeader("Monthly Revenue", "Q4 2024 performance across regions")-badges = TagBlock([Tag("Live data", "default"), Tag("USD", "secondary"), Tag("Grouped", "outline")])-chart = BarChart(["Oct", "Nov", "Dec"], [s1, s2], "grouped", "Month", "Revenue ($K)")-s1 = Series("North America", [420, 380, 510])-s2 = Series("Europe", [310, 290, 340])-followUps = FollowUpBlock([FollowUpItem("Show as line chart"), FollowUpItem("Add Asia-Pacific")])--Example 5 — Buttons with all variants:-root = Card([title, btns])-title = TextContent("Button Styles", "large-heavy")-btns = Buttons([b1, b2, b3, b4, b5, b6])-b1 = Button("Default", { type: "continue_conversation" }, "default")-b2 = Button("Secondary", { type: "continue_conversation" }, "secondary")-b3 = Button("Outline", { type: "continue_conversation" }, "outline")-b4 = Button("Ghost", { type: "continue_conversation" }, "ghost")-b5 = Button("Link", { type: "continue_conversation" }, "link")-b6 = Button("Destructive", { type: "continue_conversation" }, "destructive")--Example 6 — Tabs with charts:-root = Card([header, tabs])-header = CardHeader("Sales Dashboard", "Compare metrics across time periods")-tabs = Tabs([tab1, tab2, tab3])-tab1 = TabItem("revenue", "Revenue", [revChart])-tab2 = TabItem("users", "Users", [usersChart])-tab3 = TabItem("breakdown", "Breakdown", [pieChart])-revChart = BarChart(["Jan", "Feb", "Mar", "Apr"], [Series("Revenue", [45, 52, 61, 58])], "grouped", "Month", "USD ($K)")-usersChart = LineChart(["Jan", "Feb", "Mar", "Apr"], [Series("Active", [1200, 1350, 1500, 1420]), Series("New", [300, 420, 380, 450])], "Month", "Users")-pieChart = PieChart([Slice("Desktop", 62), Slice("Mobile", 31), Slice("Tablet", 7)])--Example 7 — Typography showcase:-root = Card([h1, h2, h3, quote, codeEx, sep, text])-h1 = Heading("Welcome to the Platform", "h1")-h2 = Heading("Getting Started", "h2")-h3 = Heading("Prerequisites", "h3")-quote = Blockquote("The best way to predict the future is to invent it.", "Alan Kay")-codeEx = InlineCode("npm install @acme/sdk")-sep = Separator()-text = TextContent("Follow the steps below to get up and running.")--Example 8 — Dialog and AlertDialog:-root = Card([title, btns])-title = TextContent("Actions Demo", "large-heavy")-btns = Buttons([viewBtn, deleteBtn])-viewBtn = DialogBlock("View Details", "Product Details", "Full specifications for Widget Pro", [detailText, detailTable], "outline")-detailText = TextContent("Here are the complete specifications:")-detailTable = Table([Col("Spec", "string"), Col("Value", "string")], [["Weight", "2.5 kg"], ["Dimensions", "30x20x10 cm"]])-deleteBtn = AlertDialogBlock("Delete Item", "Are you sure?", "This action cannot be undone. This will permanently delete the item.", "Delete", "Cancel", "destructive")--Example 9 — Pagination:-root = Card([title, table, pagination])-title = TextContent("Search Results", "large-heavy")-table = Table([Col("Name", "string"), Col("Status", "string")], [["Item 1", "Active"], ["Item 2", "Pending"], ["Item 3", "Active"]])-pagination = PaginationBlock(2, 10)--Example 10 — Drawer with content:-root = Card([title, drawerBtn])-title = TextContent("Report Summary", "large-heavy")-drawerBtn = DrawerBlock("View Full Report", "Quarterly Report Q4 2024", "Detailed breakdown of performance metrics", [chart, summary])-chart = BarChart(["Oct", "Nov", "Dec"], [Series("Revenue", [42, 38, 51])], "grouped", "Month", "Revenue ($K)")-summary = TextContent("Overall revenue increased by 12% compared to Q3.")--Example 11 — Standalone calendar:-root = Card([title, cal])-title = TextContent("Pick a Date", "large-heavy")-cal = CalendarBlock("single", "2025-01-01", 1)--Example 12 — Range calendar with two months:-root = Card([title, desc, cal])-title = TextContent("Select Travel Dates", "large-heavy")-desc = TextContent("Choose your check-in and check-out dates.", "small")-cal = CalendarBlock("range", "2025-06-01", 2)--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Card(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Card(children) — children stack vertically automatically.-- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.-- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.-- Carousel takes an array of slides, where each slide is an array of content.-- IMPORTANT: Every slide in a Carousel must use the same component structure in the same order.-- For forms, define one FormControl reference per field so controls can stream progressively.-- For forms, always provide the second Form argument with Buttons(...) actions.-- Never nest Form inside Form.-- Button variant mapping — "default" (filled primary), "secondary" (muted), "outline" (bordered), "ghost" (transparent), "link" (underlined text), "destructive" (red/danger). Use the right variant for the context.-- Button size mapping — "default" (standard), "xs" (extra small), "sm" (small), "lg" (large), "icon" (square icon-only).-- Badge/Tag variants — "default" (filled primary), "secondary" (muted fill), "destructive" (red), "outline" (bordered), "ghost" (minimal).-- Alert variants — "default" (neutral), "destructive" (red error), "info" (blue informational), "success" (green confirmation), "warning" (amber caution). Always pick the variant that matches the message tone.-- When the user asks for a specific component (e.g. 'show me an accordion'), generate a realistic, fully-populated example of that component with sample data.-- Use CardHeader for section titles. Use TextContent for body text. Use MarkDownRenderer for rich formatted text with links, bold, lists.-- Use CodeBlock with a language prop for code snippets. Always set the language for syntax context.-- Use Progress for completion/loading indicators.-- Use Avatar for user/profile images. Use Image/ImageBlock for content images.-- Use Heading for section titles with level: "h1" | "h2" | "h3" | "h4". Use Blockquote for quotes. Use InlineCode for inline code.-- Use DialogBlock to show a button that opens a modal dialog with content inside. Good for details/previews.-- Use AlertDialogBlock for confirmation dialogs (delete, logout, etc). Confirm action sends message to LLM.-- Use DrawerBlock for bottom panels with additional content. Good for details/reports.-- Use PaginationBlock for paginated data. currentPage/totalPages are required.-- Use CalendarBlock for standalone calendar display. mode: "single" (pick one date), "multiple" (pick many), "range" (date range). Use numberOfMonths to show side-by-side months.diff --git a/examples/shadcn-chat/src/hooks/use-system-theme.tsx b/examples/shadcn-chat/src/hooks/use-system-theme.tsxdeleted file mode 100644index 2a95a534d..000000000--- a/examples/shadcn-chat/src/hooks/use-system-theme.tsx+++ /dev/null@@ -1,41 +0,0 @@-"use client";--import { createContext, useContext, useEffect, useState } from "react";--type ThemeMode = "light" | "dark";--interface ThemeContextType {- mode: ThemeMode;-}--const ThemeContext = createContext<ThemeContextType | undefined>(undefined);--function getSystemMode(): ThemeMode {- if (typeof window === "undefined") return "light";- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";-}--export function ThemeProvider({ children }: { children: React.ReactNode }) {- const [mode, setMode] = useState<ThemeMode>(getSystemMode);-- useEffect(() => {- const mq = window.matchMedia("(prefers-color-scheme: dark)");- const handler = (e: MediaQueryListEvent) => setMode(e.matches ? "dark" : "light");- mq.addEventListener("change", handler);- return () => mq.removeEventListener("change", handler);- }, []);-- useEffect(() => {- document.body.setAttribute("data-theme", mode);- }, [mode]);-- return <ThemeContext.Provider value={{ mode }}>{children}</ThemeContext.Provider>;-}--export function useTheme(): ThemeMode {- const ctx = useContext(ThemeContext);- if (!ctx) {- throw new Error("useTheme must be used within a ThemeProvider");- }- return ctx.mode;-}diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/rules.ts b/examples/shadcn-chat/src/lib/shadcn-genui/rules.tsdeleted file mode 100644index cd77461f9..000000000--- a/examples/shadcn-chat/src/lib/shadcn-genui/rules.ts+++ /dev/null@@ -1,17 +0,0 @@-import { z } from "zod";--export const rulesSchema = z- .object({- required: z.boolean().optional(),- email: z.boolean().optional(),- url: z.boolean().optional(),- numeric: z.boolean().optional(),- min: z.number().optional(),- max: z.number().optional(),- minLength: z.number().optional(),- maxLength: z.number().optional(),- pattern: z.string().optional(),- })- .optional();--export type RulesSchema = z.infer<typeof rulesSchema>;diff --git a/examples/supabase-chat/postcss.config.mjs b/examples/supabase-chat/postcss.config.mjsdeleted file mode 100644index 61e36849c..000000000--- a/examples/supabase-chat/postcss.config.mjs+++ /dev/null@@ -1,7 +0,0 @@-const config = {- plugins: {- "@tailwindcss/postcss": {},- },-};--export default config;diff --git a/examples/vercel-ai-chat/.gitignore b/examples/vercel-ai-chat/.gitignoredeleted file mode 100644index 63271800a..000000000--- a/examples/vercel-ai-chat/.gitignore+++ /dev/null@@ -1,39 +0,0 @@-# dependencies-/node_modules-/.pnp-.pnp.*-.yarn/*-!.yarn/patches-!.yarn/plugins-!.yarn/releases-!.yarn/versions--# testing-/coverage--# next.js-/.next/-/out/--# production-/build--# misc-.DS_Store-*.pem--# debug-npm-debug.log*-yarn-debug.log*-yarn-error.log*-.pnpm-debug.log*--# env files (can opt-in for committing if needed)-.env*--# vercel-.vercel--# typescript-*.tsbuildinfo-next-env.d.tsdiff --git a/examples/vercel-ai-chat/eslint.config.mjs b/examples/vercel-ai-chat/eslint.config.mjsdeleted file mode 100644index 199c0ecf8..000000000--- a/examples/vercel-ai-chat/eslint.config.mjs+++ /dev/null@@ -1,16 +0,0 @@-import { defineConfig, globalIgnores } from "eslint/config";-import nextVitals from "eslint-config-next/core-web-vitals";-import nextTs from "eslint-config-next/typescript";--const eslintConfig = defineConfig([- ...nextVitals,- ...nextTs,- globalIgnores([- ".next/**",- "out/**",- "build/**",- "next-env.d.ts",- ]),-]);--export default eslintConfig;diff --git a/examples/vercel-ai-chat/next.config.ts b/examples/vercel-ai-chat/next.config.tsdeleted file mode 100644index b08275c80..000000000--- a/examples/vercel-ai-chat/next.config.ts+++ /dev/null@@ -1,7 +0,0 @@-import type { NextConfig } from "next";--const nextConfig: NextConfig = {- turbopack: {},-};--export default nextConfig;diff --git a/examples/vercel-ai-chat/postcss.config.mjs b/examples/vercel-ai-chat/postcss.config.mjsdeleted file mode 100644index 61e36849c..000000000--- a/examples/vercel-ai-chat/postcss.config.mjs+++ /dev/null@@ -1,7 +0,0 @@-const config = {- plugins: {- "@tailwindcss/postcss": {},- },-};--export default config;diff --git a/examples/vercel-ai-chat/src/app/globals.css b/examples/vercel-ai-chat/src/app/globals.cssdeleted file mode 100644index 436d6d8f2..000000000--- a/examples/vercel-ai-chat/src/app/globals.css+++ /dev/null@@ -1,3 +0,0 @@-@layer theme, base, openui, components, utilities;-@import "tailwindcss";-@import "@openuidev/react-ui/layered/styles/index.css";diff --git a/examples/vercel-ai-chat/src/components/chat-input.tsx b/examples/vercel-ai-chat/src/components/chat-input.tsxdeleted file mode 100644index 7f74245df..000000000--- a/examples/vercel-ai-chat/src/components/chat-input.tsx+++ /dev/null@@ -1,70 +0,0 @@-import { SendHorizonal, Square } from "lucide-react";-import { useRef, useState } from "react";--interface ChatInputProps {- input: string;- isLoading: boolean;- onInputChange: (value: string) => void;- onSend: (text: string) => void;- onStop: () => void;-}--export function ChatInput({ input, isLoading, onInputChange, onSend, onStop }: ChatInputProps) {- const inputRef = useRef<HTMLTextAreaElement>(null);- const [composing, setComposing] = useState(false);-- const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {- if (e.key === "Enter" && !e.shiftKey && !composing) {- e.preventDefault();- onSend(input);- }- };-- const handleSubmit = (e: React.FormEvent) => {- e.preventDefault();- onSend(input);- };-- return (- <div className="shrink-0 border-t border-zinc-200 dark:border-zinc-800 px-4 py-3">- <form onSubmit={handleSubmit} className="max-w-3xl mx-auto flex items-start gap-2">- <div className="flex-1 flex relative items-center">- <textarea- ref={inputRef}- value={input}- onChange={(e) => onInputChange(e.target.value)}- onKeyDown={handleKeyDown}- onCompositionStart={() => setComposing(true)}- onCompositionEnd={() => setComposing(false)}- placeholder="Send a message…"- rows={1}- className="w-full resize-none rounded-xl border border-zinc-300 dark:border-zinc-700 bg-white dark:bg-zinc-900 px-4 py-2.5 text-sm text-zinc-900 dark:text-zinc-100 placeholder-zinc-400 focus:outline-none focus:ring-2 focus:ring-violet-500/40 focus:border-violet-500 transition-shadow"- style={{ maxHeight: 160 }}- onInput={(e) => {- const el = e.currentTarget;- el.style.height = "auto";- el.style.height = `${Math.min(el.scrollHeight, 160)}px`;- }}- />- </div>- {isLoading ? (- <button- type="button"- onClick={onStop}- className="shrink-0 w-10 h-10 rounded-xl bg-zinc-200 dark:bg-zinc-800 flex items-center justify-center text-zinc-600 dark:text-zinc-400 hover:bg-zinc-300 dark:hover:bg-zinc-700 transition-colors"- >- <Square size={16} />- </button>- ) : (- <button- type="submit"- disabled={!input.trim()}- className="shrink-0 w-10 h-10 rounded-xl bg-zinc-900 dark:bg-zinc-100 flex items-center justify-center text-white dark:text-zinc-900 hover:bg-zinc-800 dark:hover:bg-zinc-200 transition-colors disabled:opacity-30 disabled:cursor-not-allowed"- >- <SendHorizonal size={16} />- </button>- )}- </form>- </div>- );-}diff --git a/examples/vercel-ai-chat/src/components/sidebar-toggle.tsx b/examples/vercel-ai-chat/src/components/sidebar-toggle.tsxdeleted file mode 100644index 99dd30eb0..000000000--- a/examples/vercel-ai-chat/src/components/sidebar-toggle.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { PanelLeft, X } from "lucide-react";--interface SidebarToggleProps {- isOpen: boolean;- onToggle: () => void;-}--export function SidebarToggle({ isOpen, onToggle }: SidebarToggleProps) {- return (- <button- onClick={onToggle}- className="w-8 h-8 rounded-lg flex items-center justify-center text-zinc-500 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors"- aria-label={isOpen ? "Close sidebar" : "Open sidebar"}- >- {isOpen ? <X size={18} /> : <PanelLeft size={18} />}- </button>- );-}diff --git a/examples/vercel-ai-chat/src/components/sidebar.tsx b/examples/vercel-ai-chat/src/components/sidebar.tsxdeleted file mode 100644index c513a567c..000000000--- a/examples/vercel-ai-chat/src/components/sidebar.tsx+++ /dev/null@@ -1,153 +0,0 @@-"use client";--import type { Thread } from "@/lib/thread-store";-import { Plus, Trash2, MessageSquare } from "lucide-react";--interface SidebarProps {- threads: Thread[];- activeThreadId: string;- isOpen: boolean;- onNewChat: () => void;- onSelectThread: (id: string) => void;- onDeleteThread: (id: string) => void;- onClose: () => void;-}--function relativeTime(timestamp: number): string {- const diff = Date.now() - timestamp;- const mins = Math.floor(diff / 60000);- if (mins < 1) return "Just now";- if (mins < 60) return `${mins}m ago`;- const hours = Math.floor(mins / 60);- if (hours < 24) return `${hours}h ago`;- const days = Math.floor(hours / 24);- if (days < 7) return `${days}d ago`;- return new Date(timestamp).toLocaleDateString();-}--function groupByDate(threads: Thread[]): { label: string; threads: Thread[] }[] {- const now = new Date();- const startOfToday = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime();- const startOfYesterday = startOfToday - 86400000;- const startOfLastWeek = startOfToday - 7 * 86400000;-- const today: Thread[] = [];- const yesterday: Thread[] = [];- const lastWeek: Thread[] = [];- const older: Thread[] = [];-- for (const t of threads) {- if (t.updatedAt >= startOfToday) today.push(t);- else if (t.updatedAt >= startOfYesterday) yesterday.push(t);- else if (t.updatedAt >= startOfLastWeek) lastWeek.push(t);- else older.push(t);- }-- const groups: { label: string; threads: Thread[] }[] = [];- if (today.length) groups.push({ label: "Today", threads: today });- if (yesterday.length) groups.push({ label: "Yesterday", threads: yesterday });- if (lastWeek.length) groups.push({ label: "Last 7 days", threads: lastWeek });- if (older.length) groups.push({ label: "Older", threads: older });- return groups;-}--export function Sidebar({- threads,- activeThreadId,- isOpen,- onNewChat,- onSelectThread,- onDeleteThread,- onClose,-}: SidebarProps) {- const groups = groupByDate(threads);-- return (- <>- {/* Backdrop for mobile */}- {isOpen && (- <div- className="fixed inset-0 z-40 bg-black/30 md:hidden"- onClick={onClose}- />- )}-- <aside- className={`- fixed z-50 top-0 left-0 h-full- w-[280px] shrink-0- bg-zinc-50 dark:bg-zinc-900 border-r border-zinc-200 dark:border-zinc-800- flex flex-col- transition-transform duration-200 ease-in-out- ${isOpen ? "translate-x-0" : "-translate-x-full"}- `}- >- {/* Sidebar header */}- <div className="p-3 border-b border-zinc-200 dark:border-zinc-800">- <button- onClick={() => {- onNewChat();- onClose();- }}- className="w-full flex items-center gap-2 px-3 py-[7px] rounded-lg text-sm font-medium text-zinc-700 dark:text-zinc-200 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 hover:bg-zinc-100 dark:hover:bg-zinc-700 transition-colors"- >- <Plus size={16} />- New Chat- </button>- </div>-- {/* Thread list */}- <div className="flex-1 overflow-y-auto py-2">- {groups.length === 0 ? (- <p className="px-4 py-8 text-center text-xs text-zinc-400 dark:text-zinc-500">- No conversations yet- </p>- ) : (- groups.map((group) => (- <div key={group.label} className="flex flex-col gap-1">- <h3 className="px-4 py-1 text-[11px] font-semibold uppercase tracking-wider text-zinc-400 dark:text-zinc-500">- {group.label}- </h3>- {group.threads.map((thread) => {- const isActive = thread.id === activeThreadId;- return (- <div- key={thread.id}- className={`group flex items-start gap-2 mx-2 px-2 py-1.5 rounded-lg cursor-pointer transition-colors ${- isActive- ? "bg-zinc-200 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100"- : "text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800/60"- }`}- onClick={() => {- onSelectThread(thread.id);- onClose();- }}- >- <MessageSquare size={14} className="shrink-0 opacity-50 mt-1" />- <div className="flex-1 min-w-0">- <p className="text-sm truncate">{thread.title}</p>- <p className="text-[11px] text-zinc-400 dark:text-zinc-500">- {relativeTime(thread.updatedAt)}- </p>- </div>- <button- onClick={(e) => {- e.stopPropagation();- onDeleteThread(thread.id);- }}- className="shrink-0 p-1 rounded opacity-0 group-hover:opacity-100 hover:bg-zinc-300 dark:hover:bg-zinc-700 transition-opacity text-zinc-400 hover:text-red-500"- aria-label="Delete thread"- >- <Trash2 size={14} />- </button>- </div>- );- })}- </div>- ))- )}- </div>- </aside>- </>- );-}diff --git a/examples/vercel-ai-chat/src/components/thinking-indicator.tsx b/examples/vercel-ai-chat/src/components/thinking-indicator.tsxdeleted file mode 100644index 321bd732c..000000000--- a/examples/vercel-ai-chat/src/components/thinking-indicator.tsx+++ /dev/null@@ -1,15 +0,0 @@-import { Bot, Loader2 } from "lucide-react";--export function ThinkingIndicator() {- return (- <div className="flex gap-3 max-w-3xl">- <div className="shrink-0 w-7 h-7 rounded-full bg-gradient-to-br from-violet-500 to-indigo-600 flex items-center justify-center">- <Bot size={14} className="text-white" />- </div>- <div className="flex items-center gap-2 text-sm text-zinc-400">- <Loader2 size={14} className="animate-spin" />- Thinking…- </div>- </div>- );-}diff --git a/examples/vercel-ai-chat/src/components/tool-call-indicator.tsx b/examples/vercel-ai-chat/src/components/tool-call-indicator.tsxdeleted file mode 100644index f5e4f7576..000000000--- a/examples/vercel-ai-chat/src/components/tool-call-indicator.tsx+++ /dev/null@@ -1,17 +0,0 @@-import { CheckCircle2, Loader2, Wrench } from "lucide-react";--export function ToolCallIndicator({ name, isDone }: { name: string; isDone: boolean }) {- const label = name.replace(/_/g, " ");-- return (- <div className="flex items-center gap-2 px-3 py-1.5 text-xs rounded-lg bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-400 w-fit">- {isDone ? (- <CheckCircle2 size={14} className="text-emerald-500" />- ) : (- <Loader2 size={14} className="animate-spin" />- )}- <Wrench size={12} />- <span className="capitalize">{label}</span>- </div>- );-}diff --git a/examples/vercel-ai-chat/src/components/user-message.tsx b/examples/vercel-ai-chat/src/components/user-message.tsxdeleted file mode 100644index c5082d10e..000000000--- a/examples/vercel-ai-chat/src/components/user-message.tsx+++ /dev/null@@ -1,24 +0,0 @@-import type { UIMessage } from "ai";-import { User } from "lucide-react";--function extractText(message: UIMessage): string {- return message.parts- .filter((p): p is { type: "text"; text: string } => p.type === "text")- .map((p) => p.text)- .join("");-}--export function UserMessage({ message }: { message: UIMessage }) {- const text = extractText(message);-- return (- <div className="flex gap-3 max-w-3xl justify-end ml-auto">- <div className="px-4 py-2.5 rounded-2xl bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 text-sm leading-relaxed max-w-[80%]">- {text}- </div>- <div className="shrink-0 w-7 h-7 rounded-full bg-zinc-300 dark:bg-zinc-700 flex items-center justify-center">- <User size={14} className="text-zinc-600 dark:text-zinc-300" />- </div>- </div>- );-}diff --git a/examples/vercel-ai-chat/src/generated/system-prompt.txt b/examples/vercel-ai-chat/src/generated/system-prompt.txtdeleted file mode 100644index af8c67770..000000000--- a/examples/vercel-ai-chat/src/generated/system-prompt.txt+++ /dev/null@@ -1,223 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Card(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks-7. Optional arguments can be omitted from the end-- Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-Props typed `ActionExpression` accept an Action([@steps...]) expression. See the Action section for available steps (@ToAssistant, @OpenUrl).-Props marked `$binding<type>` accept a `$variable` reference for two-way binding.--### Content-CardHeader(title?: string, subtitle?: string) — Header with optional title and subtitle-TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block. Supports markdown. Optional size: "small" | "default" | "large" | "small-heavy" | "large-heavy".-MarkDownRenderer(textMarkdown: string, variant?: "clear" | "card" | "sunk") — Renders markdown text with optional container variant-Callout(variant: "info" | "warning" | "error" | "success" | "neutral", title: string, description: string, visible?: $binding<boolean>) — Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.-TextCallout(variant?: "neutral" | "info" | "warning" | "success" | "danger", title?: string, description?: string) — Text callout with variant, title, and description-Image(alt: string, src?: string) — Image with alt text and optional URL-ImageBlock(src: string, alt?: string) — Image block with loading state-ImageGallery(images: {src: string, alt?: string, details?: string}[]) — Gallery grid of images with modal preview-CodeBlock(language: string, codeString: string) — Syntax-highlighted code block-Separator(orientation?: "horizontal" | "vertical", decorative?: boolean) — Visual divider between content sections--### Tables-Table(columns: Col[]) — Data table — column-oriented. Each Col holds its own data array.-Col(label: string, data, type?: "string" | "number" | "action") — Column definition — holds label + data array--### Charts (2D)-BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bars; use for comparing values across categories with one or more series-LineChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Lines over categories; use for trends and continuous data over time-AreaChart(labels: string[], series: Series[], variant?: "linear" | "natural" | "step", xLabel?: string, yLabel?: string) — Filled area under lines; use for cumulative totals or volume trends over time-RadarChart(labels: string[], series: Series[]) — Spider/web chart; use for comparing multiple variables across one or more entities-HorizontalBarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Horizontal bars; prefer when category labels are long or for ranked lists-Series(category: string, values: number[]) — One data series--### Charts (1D)-PieChart(labels: string[], values: number[], variant?: "pie" | "donut") — Circular slices; use plucked arrays: PieChart(data.categories, data.values)-RadialChart(labels: string[], values: number[]) — Radial bars; use plucked arrays: RadialChart(data.categories, data.values)-SingleStackedBarChart(labels: string[], values: number[]) — Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)-Slice(category: string, value: number) — One slice with label and numeric value--### Charts (Scatter)-ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string) — X/Y scatter plot; use for correlations, distributions, and clustering-ScatterSeries(name: string, points: Point[]) — Named dataset-Point(x: number, y: number, z?: number) — Data point with numeric coordinates--### Forms-Form(name: string, buttons: Buttons, fields) — Form container with fields and explicit action buttons-FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string) — Field with label, input component, and optional hint text-Label(text: string) — Text label-Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-SelectItem(value: string, label: string) — Option for Select-DatePicker(name: string, mode?: "single" | "range", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?)-Slider(name: string, variant: "continuous" | "discrete", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>) — Numeric slider input; supports continuous and discrete (stepped) variants-CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?)-CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)-RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)-RadioItem(label: string, description: string, value: string)-SwitchGroup(name: string, items: SwitchItem[], variant?: "clear" | "card" | "sunk", value?) — Group of switch toggles-SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean) — Individual switch toggle-- Define EACH FormControl as its own reference — do NOT inline all controls in one array.-- NEVER nest Form inside Form.-- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.-- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }-- The renderer shows error messages automatically — do NOT generate error text in the UI--### Buttons-Button(label: string, action?: ActionExpression, variant?: "primary" | "secondary" | "tertiary", type?: "normal" | "destructive", size?: "extra-small" | "small" | "medium" | "large") — Clickable button-Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components. direction: "row" (default) | "column".--### Lists & Follow-ups-ListBlock(items: ListItem[], variant?: "number" | "image") — A list of items with number or image indicators. Each item can optionally have an action.-ListItem(title: string, subtitle?: string, image?: {src: string, alt: string}, actionLabel?: string, action?: ActionExpression) — Item in a ListBlock — displays a title with an optional subtitle and image. When action is provided, the item becomes clickable.-FollowUpBlock(items: FollowUpItem[]) — List of clickable follow-up suggestions placed at the end of a response-FollowUpItem(text: string) — Clickable follow-up suggestion — when clicked, sends text as user message-- Use ListBlock with ListItem references for numbered, clickable lists.-- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.-- Clicking a ListItem or FollowUpItem sends its text to the LLM as a user message.-- Example: list = ListBlock([item1, item2]) item1 = ListItem("Option A", "Details about A")--### Sections-SectionBlock(sections: SectionItem[], isFoldable?: boolean) — Collapsible accordion sections. Auto-opens sections as they stream in. Use SectionItem for each section.-SectionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock)[]) — Section with a label and collapsible content — used inside SectionBlock-- SectionBlock renders collapsible accordion sections that auto-open as they stream.-- Each section needs a unique `value` id, a `trigger` label, and a `content` array.-- Example: sections = SectionBlock([s1, s2]) s1 = SectionItem("intro", "Introduction", [content1])-- Set isFoldable=false to render sections as flat headers instead of accordion.--### Layout-Tabs(items: TabItem[]) — Tabbed container-TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is tab label, content is array of components-Accordion(items: AccordionItem[]) — Collapsible sections-AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[]) — value is unique id, trigger is section title-Steps(items: StepsItem[]) — Step-by-step guide-StepsItem(title: string, details: string) — title and details text for one step-Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: "card" | "sunk") — Horizontal scrollable carousel-- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must have the same structure — same component types in the same order.-- For image carousels use: [[title, image, description, tags], ...] — every slide must follow this exact pattern.-- Use real, publicly accessible image URLs (e.g. https://picsum.photos/seed/KEYWORD/800/500). Never hallucinate image URLs.--### Data Display-TagBlock(tags: string[]) — tags is an array of strings-Tag(text: string, icon?: string, size?: "sm" | "md" | "lg", variant?: "neutral" | "info" | "success" | "warning" | "danger") — Styled tag/badge with optional icon and variant--### Other-Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock | SectionBlock | Tabs | Carousel)[]) — Vertical container for all content in a chat response. Children stack top to bottom automatically.--## Action — Button Behavior--Action([@steps...]) wires button clicks to operations. Steps are @-prefixed built-in actions. Steps execute in order.-Buttons without an explicit Action prop automatically send their label to the assistant (equivalent to Action([@ToAssistant(label)])).--Available steps:-- @ToAssistant("message") — Send a message to the assistant (for conversational buttons like "Tell me more", "Explain this")-- @OpenUrl("https://...") — Navigate to a URL--Example — simple nav:-```-viewBtn = Button("View", Action([@OpenUrl("https://example.com")]))-```--- Action can be assigned to a variable or inlined: Button("Go", onSubmit) and Button("Go", Action([...])) both work--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Card(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--Example 1 — Table with follow-ups:--root = Card([title, tbl, followUps])-title = TextContent("Top Languages", "large-heavy")-tbl = Table([Col("Language", langs), Col("Users (M)", users), Col("Year", years)])-langs = ["Python", "JavaScript", "Java"]-users = [15.7, 14.2, 12.1]-years = [1991, 1995, 1995]-followUps = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Tell me more about Python")-fu2 = FollowUpItem("Show me a JavaScript comparison")--Example 2 — Clickable list:--root = Card([title, list])-title = TextContent("Choose a topic", "large-heavy")-list = ListBlock([item1, item2, item3])-item1 = ListItem("Getting started", "New to the platform? Start here.")-item2 = ListItem("Advanced features", "Deep dives into powerful capabilities.")-item3 = ListItem("Troubleshooting", "Common issues and how to fix them.")--Example 3 — Image carousel with consistent slides + follow-ups:--root = Card([header, carousel, followups])-header = CardHeader("Featured Destinations", "Discover highlights and best time to visit")-carousel = Carousel([[t1, img1, d1, tags1], [t2, img2, d2, tags2], [t3, img3, d3, tags3]], "card")-t1 = TextContent("Paris, France", "large-heavy")-img1 = ImageBlock("https://picsum.photos/seed/paris/800/500", "Eiffel Tower at night")-d1 = TextContent("City of light — best Apr–Jun and Sep–Oct.", "default")-tags1 = TagBlock(["Landmark", "City Break", "Culture"])-t2 = TextContent("Kyoto, Japan", "large-heavy")-img2 = ImageBlock("https://picsum.photos/seed/kyoto/800/500", "Bamboo grove in Arashiyama")-d2 = TextContent("Temples and bamboo groves — best Mar–Apr and Nov.", "default")-tags2 = TagBlock(["Temples", "Autumn", "Culture"])-t3 = TextContent("Machu Picchu, Peru", "large-heavy")-img3 = ImageBlock("https://picsum.photos/seed/machupicchu/800/500", "Inca citadel in the clouds")-d3 = TextContent("High-altitude Inca citadel — best May–Sep.", "default")-tags3 = TagBlock(["Andes", "Hike", "UNESCO"])-followups = FollowUpBlock([fu1, fu2])-fu1 = FollowUpItem("Show me only beach destinations")-fu2 = FollowUpItem("Turn this into a comparison table")--Example 4 — Form with validation:--root = Card([title, form])-title = TextContent("Contact Us", "large-heavy")-form = Form("contact", btns, [nameField, emailField, msgField])-nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))-emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))-msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))-btns = Buttons([Button("Submit", Action([@ToAssistant("Submit")]), "primary")])--## Important Rules-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)--## Final Verification-Before finishing, walk your output and verify:-1. root = Card(...) is the FIRST line (for optimal streaming).-2. Every referenced name is defined. Every defined name (other than root) is reachable from root.--- Every response is a single Card(children) — children stack vertically automatically. No layout params are needed on Card.-- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.-- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.-- Use ListBlock when presenting a set of options or steps the user can click to select.-- Use SectionBlock to group long responses into collapsible sections — good for reports, FAQs, and structured content.-- Use SectionItem inside SectionBlock: each item needs a unique value id, a trigger (header label), and a content array.-- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])-- IMPORTANT: Every slide in a Carousel must use the same component structure in the same order — e.g. all slides: [title, image, description, tags].-- For image carousels, always use real accessible URLs like https://picsum.photos/seed/KEYWORD/800/500. Never hallucinate or invent image URLs.-- For forms, define one FormControl reference per field so controls can stream progressively.-- For forms, always provide the second Form argument with Buttons(...) actions: Form(name, buttons, fields).-- Never nest Form inside Form.diff --git a/examples/vercel-ai-chat/src/hooks/use-system-theme.tsx b/examples/vercel-ai-chat/src/hooks/use-system-theme.tsxdeleted file mode 100644index f001d61fe..000000000--- a/examples/vercel-ai-chat/src/hooks/use-system-theme.tsx+++ /dev/null@@ -1,46 +0,0 @@-"use client";--import { createContext, useContext, useEffect, useState } from "react";-import { ThemeProvider as OpenUIThemeProvider } from "@openuidev/react-ui";--type ThemeMode = "light" | "dark";--interface ThemeContextType {- mode: ThemeMode;-}--const ThemeContext = createContext<ThemeContextType | undefined>(undefined);--function getSystemMode(): ThemeMode {- if (typeof window === "undefined") return "light";- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";-}--export function ThemeProvider({ children }: { children: React.ReactNode }) {- const [mode, setMode] = useState<ThemeMode>(getSystemMode);-- useEffect(() => {- const mq = window.matchMedia("(prefers-color-scheme: dark)");- const handler = (e: MediaQueryListEvent) => setMode(e.matches ? "dark" : "light");- mq.addEventListener("change", handler);- return () => mq.removeEventListener("change", handler);- }, []);-- useEffect(() => {- document.documentElement.classList.toggle("dark", mode === "dark");- }, [mode]);-- return (- <ThemeContext.Provider value={{ mode }}>- <OpenUIThemeProvider mode={mode}>{children}</OpenUIThemeProvider>- </ThemeContext.Provider>- );-}--export function useTheme(): ThemeMode {- const ctx = useContext(ThemeContext);- if (!ctx) {- throw new Error("useTheme must be used within a ThemeProvider");- }- return ctx.mode;-}diff --git a/examples/vercel-ai-chat/src/lib/thread-store.ts b/examples/vercel-ai-chat/src/lib/thread-store.tsdeleted file mode 100644index 8da5c3317..000000000--- a/examples/vercel-ai-chat/src/lib/thread-store.ts+++ /dev/null@@ -1,62 +0,0 @@-import type { UIMessage } from "ai";--export interface Thread {- id: string;- title: string;- messages: UIMessage[];- createdAt: number;- updatedAt: number;-}--const STORAGE_KEY = "vercel-ai-chat-threads";--function readAll(): Thread[] {- if (typeof window === "undefined") return [];- try {- const raw = localStorage.getItem(STORAGE_KEY);- return raw ? JSON.parse(raw) : [];- } catch {- return [];- }-}--function writeAll(threads: Thread[]) {- localStorage.setItem(STORAGE_KEY, JSON.stringify(threads));-}--export function getThreads(): Thread[] {- return readAll().sort((a, b) => b.updatedAt - a.updatedAt);-}--export function getThread(id: string): Thread | null {- return readAll().find((t) => t.id === id) ?? null;-}--export function saveThread(thread: Thread) {- const threads = readAll();- const idx = threads.findIndex((t) => t.id === thread.id);- if (idx >= 0) {- threads[idx] = thread;- } else {- threads.push(thread);- }- writeAll(threads);-}--export function deleteThread(id: string) {- writeAll(readAll().filter((t) => t.id !== id));-}--export function generateId(): string {- return crypto.randomUUID();-}--export function titleFromMessages(messages: UIMessage[]): string {- const first = messages.find((m) => m.role === "user");- if (!first) return "New Chat";- const text = first.parts- .filter((p): p is { type: "text"; text: string } => p.type === "text")- .map((p) => p.text)- .join(" ");- return text.length > 40 ? text.slice(0, 40) + "..." : text || "New Chat";-}diff --git a/examples/vercel-ai-chat/src/library.ts b/examples/vercel-ai-chat/src/library.tsdeleted file mode 100644index c7ceecfc1..000000000--- a/examples/vercel-ai-chat/src/library.ts+++ /dev/null@@ -1 +0,0 @@-export { openuiChatLibrary as library, openuiChatPromptOptions as promptOptions } from "@openuidev/react-ui/genui-lib";diff --git a/examples/vercel-ai-chat/tsconfig.json b/examples/vercel-ai-chat/tsconfig.jsondeleted file mode 100644index cf9c65d3e..000000000--- a/examples/vercel-ai-chat/tsconfig.json+++ /dev/null@@ -1,34 +0,0 @@-{- "compilerOptions": {- "target": "ES2017",- "lib": ["dom", "dom.iterable", "esnext"],- "allowJs": true,- "skipLibCheck": true,- "strict": true,- "noEmit": true,- "esModuleInterop": true,- "module": "esnext",- "moduleResolution": "bundler",- "resolveJsonModule": true,- "isolatedModules": true,- "jsx": "react-jsx",- "incremental": true,- "plugins": [- {- "name": "next"- }- ],- "paths": {- "@/*": ["./src/*"]- }- },- "include": [- "next-env.d.ts",- "**/*.ts",- "**/*.tsx",- ".next/types/**/*.ts",- ".next/dev/types/**/*.ts",- "**/*.mts"- ],- "exclude": ["node_modules"]-}diff --git a/examples/vue-chat/.env.example b/examples/vue-chat/.env.exampledeleted file mode 100644index ed6ed73ba..000000000--- a/examples/vue-chat/.env.example+++ /dev/null@@ -1 +0,0 @@-OPENAI_API_KEY=sk-...diff --git a/examples/vue-chat/.gitignore b/examples/vue-chat/.gitignoredeleted file mode 100644index 76d2169c8..000000000--- a/examples/vue-chat/.gitignore+++ /dev/null@@ -1,3 +0,0 @@-.nuxt/-.output/-node_modules/diff --git a/examples/vue-chat/generated/system-prompt.txt b/examples/vue-chat/generated/system-prompt.txtdeleted file mode 100644index f2c484fa0..000000000--- a/examples/vue-chat/generated/system-prompt.txt+++ /dev/null@@ -1,86 +0,0 @@-You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.--## Syntax Rules--1. Each statement is on its own line: `identifier = Expression`-2. `root` is the entry point — every program must define `root = Stack(...)`-3. Expressions are: strings ("..."), numbers, booleans (true/false), arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)-4. Use references for readability: define `name = ...` on one line, then use `name` later-5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names)-7. Optional arguments can be omitted from the end-8. No operators, no logic, no variables — only declarations-9. Strings use double quotes with backslash escaping--## Component Signatures--Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.-The `action` prop type accepts: ContinueConversation (sends message to LLM), OpenUrl (navigates to URL), or Custom (app-defined).--TextContent(text: string) — Displays a block of text. Supports markdown formatting within the string.-Button(label: string, action?: string) — A clickable button. The label is shown to the user and used as the follow-up message.-Chart(title: string, type: "bar" | "line" | "pie" | "doughnut", labels: string[], values: number[], datasetLabel?: string) — Renders a chart. Use bar for comparisons, line for trends, pie/doughnut for proportions.-Card(title: string, children: (TextContent | Button | Chart)[]) — A card container with a title and child components-Stack(children: (Card | TextContent | Button | Chart)[]) — Vertical layout container. Use as the root.--## Hoisting & Streaming (CRITICAL)--openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.--During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.--**Recommended statement order for optimal streaming:**-1. `root = Stack(...)` — UI shell appears immediately-2. Component definitions — fill in as they stream-3. Data values — leaf content last--Always write the root = Stack(...) statement first so the UI shell appears immediately, even before child data has streamed in.--## Examples--User: What is Vue?--t1 = TextContent("Vue is a progressive JavaScript framework for building user interfaces. It builds on standard HTML, CSS, and JavaScript with a declarative, component-based programming model.")-t2 = TextContent("**Reactivity system** — Vue tracks dependencies at runtime and efficiently updates the DOM when state changes, with no virtual DOM diffing overhead in Vue 3's Vapor mode.")-t3 = TextContent("**Single-File Components** — Vue's .vue files combine template, logic, and styling in one file with full TypeScript support.")-t4 = TextContent("**Composition API** — Flexible, composable logic reuse with \`setup()\` and \`<script setup>\` syntax.")-intro = Card("What is Vue?", [t1])-features = Card("Key Features", [t2, t3, t4])-cta = Button("Tell me about Vue 3.5")-root = Stack([intro, features, cta])--User: What's the weather like?--t1 = TextContent("I can look up the current weather for any city. Just tell me which location you're interested in!")-card = Card("Weather Lookup", [t1])-b1 = Button("Weather in New York")-b2 = Button("Weather in Tokyo")-root = Stack([card, b1, b2])--User: Show me the top 5 programming languages by popularity--root = Stack([card, cta])-chart = Chart("Programming Language Popularity", "bar", ["Python", "JavaScript", "Java", "C++", "TypeScript"], [30, 25, 18, 12, 10], "% Market Share")-t1 = TextContent("Python leads with 30% market share, driven by AI/ML adoption. JavaScript remains dominant for web development at 25%.")-card = Card("Language Trends", [chart, t1])-cta = Button("Compare Python vs JavaScript")--## Important Rules-- ALWAYS start with root = Stack(...)-- Write statements in TOP-DOWN order: root → components → data (leverages hoisting for progressive streaming)-- Each statement on its own line-- No trailing text or explanations — output ONLY openui-lang code-- When asked about data, generate realistic/plausible data-- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)-- NEVER define a variable without referencing it from the tree. Every variable must be reachable from root, otherwise it will not render.--- Always use Stack as the root component.-- Group related content in Card components with descriptive titles.-- Use TextContent for all text output. You can use markdown within the text string.-- Use Button for suggested follow-up actions the user might want to take.-- For multi-section responses, use multiple Card components inside the root Stack.-- Prefer using references for readability and better streaming performance.-- Keep TextContent strings focused — use multiple TextContent components for different paragraphs or points.-- Never nest Stack inside Stack directly.-- Use Chart for data visualization. Choose bar for comparisons, line for trends, pie/doughnut for proportions.-- Chart labels and values arrays must have the same length.\ No newline at end of filediff --git a/package.json b/package.jsonindex 7767536fc..5064d04d7 100644--- a/package.json+++ b/package.json@@ -4,6 +4,8 @@"description": "A full-stack, renderer-agnostic Generative UI framework with a streaming-first language, official React support, and community integrations for other frameworks","main": "index.js","scripts": {+ "preexamples:verify": "pnpm --filter \"./packages/**\" --workspace-concurrency=1 run build",+ "examples:verify": "pnpm --filter \"./examples/**\" --workspace-concurrency=1 run verify","test": "pnpm -r run test"},"engines": {diff --git a/packages/langchain/README.md b/packages/langchain/README.mdindex 3a6f18bc2..6829d0290 100644--- a/packages/langchain/README.md+++ b/packages/langchain/README.md@@ -162,5 +162,5 @@ upstream LangGraph requests.types.See the repository's-[`examples/langchain-chat`](https://github.com/thesysdev/openui/tree/main/examples/langchain-chat)+[`examples/agent-frameworks/langchain`](https://github.com/thesysdev/openui/tree/main/examples/agent-frameworks/langchain)for a complete local and LangGraph Platform example.diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 32cd4863e..d64fbef46 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -4,6 +4,66 @@ settings:autoInstallPeers: trueexcludeLinksFromLockfile: false+catalogs:+ default:+ '@ai-sdk/openai':+ specifier: ^3.0.41+ version: 3.0.88+ '@ai-sdk/react':+ specifier: ^3.0.118+ version: 3.0.238+ '@types/node':+ specifier: ^22.15.32+ version: 22.20.1+ '@types/react':+ specifier: '>=19.0.0'+ version: 19.2.17+ '@types/react-dom':+ specifier: '>=19.0.0'+ version: 19.2.3+ '@typescript-eslint/eslint-plugin':+ specifier: ^8.56.1+ version: 8.65.0+ eslint:+ specifier: ^9.0.0+ version: 9.39.5+ eslint-config-prettier:+ specifier: ^10.1.8+ version: 10.1.8+ eslint-plugin-prettier:+ specifier: ^5.5.5+ version: 5.5.6+ eslint-plugin-react-hooks:+ specifier: ^7.0.1+ version: 7.1.1+ eslint-plugin-react-refresh:+ specifier: ^0.5.2+ version: 0.5.3+ eslint-plugin-storybook:+ specifier: ^10.2.14+ version: 10.5.5+ eslint-plugin-unused-imports:+ specifier: ^4.4.1+ version: 4.4.1+ jsdom:+ specifier: ^26.1.0+ version: 26.1.0+ react:+ specifier: ^18.3.1 || ^19.0.0+ version: 19.2.4+ react-dom:+ specifier: ^18.0.0 || ^19.0.0+ version: 19.2.4+ typescript:+ specifier: ^5.9.3+ version: 5.9.3+ zod:+ specifier: ^3.25.0 || ^4.0.0+ version: 4.4.3+ zustand:+ specifier: ^4.5.5+ version: 4.5.7+overrides:langsmith@<0.6.0: ^0.6.0ip-address@<10.1.1: '>=10.1.1'@@ -201,8 +261,11 @@ importers:specifier: ^4.1.18version: 4.3.3- examples/fastapi-backend/frontend:+ examples/agent-frameworks/google-adk:dependencies:+ '@google/adk':+ specifier: ^1.3.0+ version: 1.4.0(@bufbuild/[email protected])(@cfworker/[email protected])(@grpc/[email protected])(@mikro-orm/[email protected](@mikro-orm/[email protected])([email protected]))(@mikro-orm/[email protected](@mikro-orm/[email protected])([email protected])([email protected]))(@mikro-orm/[email protected](@mikro-orm/[email protected])(@types/[email protected])([email protected])([email protected]))(@mikro-orm/[email protected](@mikro-orm/[email protected])([email protected]))(@mikro-orm/[email protected](@mikro-orm/[email protected])([email protected])([email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])'@openuidev/react-headless':specifier: workspace:*version: link:../../../packages/react-headless@@ -212,49 +275,9 @@ importers:'@openuidev/react-ui':specifier: workspace:*version: link:../../../packages/react-ui- react:- specifier: ^19.0.0- version: 19.2.4- react-dom:- specifier: ^19.0.0- version: 19.2.4([email protected])- devDependencies:- '@tailwindcss/vite':- specifier: ^4.0.0- version: 4.3.3([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@vitejs/plugin-react':- specifier: ^4.0.0- version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- tailwindcss:- specifier: ^4.0.0- version: 4.3.3- vite:- specifier: ^6.0.0- version: 6.4.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])-- examples/form-generator:- dependencies:- '@heroui/react':- specifier: ^3.0.1- version: 3.2.2(@react-spectrum/[email protected]([email protected]([email protected]))([email protected]))(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])- '@heroui/styles':- specifier: ^3.0.1- version: 3.2.2([email protected])([email protected])- '@openuidev/react-headless':- specifier: workspace:*- version: link:../../packages/react-headless- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- lucide-react:- specifier: ^0.575.0- version: 0.575.0([email protected])next:specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- openai:- specifier: ^6.22.0- version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])react:specifier: 19.2.3version: 19.2.3@@ -267,7 +290,7 @@ importers:devDependencies:'@openuidev/cli':specifier: workspace:*- version: link:../../packages/openui-cli+ version: link:../../../packages/openui-cli'@tailwindcss/postcss':specifier: ^4version: 4.3.3@@ -293,23 +316,41 @@ importers:specifier: ^5version: 5.9.3- examples/google-adk:+ examples/agent-frameworks/langchain:dependencies:- '@google/adk':- specifier: ^1.3.0- version: 1.4.0(@bufbuild/[email protected])(@cfworker/[email protected])(@grpc/[email protected])(@mikro-orm/[email protected](@mikro-orm/[email protected])([email protected]))(@mikro-orm/[email protected](@mikro-orm/[email protected])([email protected])([email protected]))(@mikro-orm/[email protected](@mikro-orm/[email protected])(@types/[email protected])([email protected])([email protected]))(@mikro-orm/[email protected](@mikro-orm/[email protected])([email protected]))(@mikro-orm/[email protected](@mikro-orm/[email protected])([email protected])([email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])+ '@langchain/core':+ specifier: ^1.2.1+ version: 1.2.3(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected])+ '@langchain/langgraph':+ specifier: ^1.4.5+ version: 1.4.8(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected])+ '@langchain/langgraph-sdk':+ specifier: ^1.9.18+ version: 1.9.28(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))+ '@langchain/openai':+ specifier: ^1.5.2+ version: 1.5.5(@aws-sdk/[email protected])(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@smithy/[email protected])([email protected])+ '@openuidev/langchain':+ specifier: workspace:*+ version: link:../../../packages/langchain'@openuidev/react-headless':specifier: workspace:*- version: link:../../packages/react-headless+ version: link:../../../packages/react-headless'@openuidev/react-lang':specifier: workspace:*- version: link:../../packages/react-lang+ version: link:../../../packages/react-lang'@openuidev/react-ui':specifier: workspace:*- version: link:../../packages/react-ui+ version: link:../../../packages/react-ui+ deepagents:+ specifier: ^1.10.5+ version: 1.11.1(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected])))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected]))([email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected]))([email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))+ langchain:+ specifier: ^1.5.1+ version: 1.5.4(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected])next:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ specifier: 16.1.6+ version: 16.1.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])react:specifier: 19.2.3version: 19.2.3@@ -320,79 +361,12 @@ importers:specifier: ^4.0.0version: 4.4.3devDependencies:+ '@langchain/langgraph-cli':+ specifier: ^1.4.3+ version: 1.4.3(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected])))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected])([email protected])'@openuidev/cli':specifier: workspace:*- version: link:../../packages/openui-cli- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3- '@types/node':- specifier: 'catalog:'- version: 22.20.1- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- tailwindcss:- specifier: ^4- version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3-- examples/hands-on-table-chat:- dependencies:- '@handsontable/react-wrapper':- specifier: ^17.0.1- version: 17.1.0([email protected])- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@openuidev/react-headless':- specifier: workspace:*- version: link:../../packages/react-headless- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':- specifier: workspace:*- version: link:../../packages/react-ui- handsontable:- specifier: ^17.0.1- version: 17.1.0- hyperformula:- specifier: ^3.2.0- version: 3.3.0- lucide-react:- specifier: ^1.8.0- version: 1.27.0([email protected])- next:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- openai:- specifier: ^6.34.0- version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])- react:- specifier: 19.2.4- version: 19.2.4- react-dom:- specifier: 19.2.4- version: 19.2.4([email protected])- recharts:- specifier: ^2.15.4- zod:- specifier: ^4.3.6- version: 4.4.3- devDependencies:+ version: link:../../../packages/openui-cli'@tailwindcss/postcss':specifier: ^4version: 4.3.3@@ -409,8 +383,11 @@ importers:specifier: ^9version: 9.39.5([email protected])eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ specifier: 16.1.6+ version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ npm-run-all2:+ specifier: ^9.0.2+ version: 9.0.2tailwindcss:specifier: ^4version: 4.3.3@@ -418,17 +395,17 @@ importers:specifier: ^5version: 5.9.3- examples/harnesses/grok-build:+ examples/agent-frameworks/mastra:dependencies:'@ag-ui/core':specifier: ^0.0.53version: 0.0.53- '@agentclientprotocol/sdk':- specifier: 1.3.0- version: 1.3.0([email protected])- '@openuidev/lang-core':- specifier: workspace:*- version: link:../../../packages/lang-core+ '@ag-ui/mastra':+ specifier: ^1.0.1+ version: 1.1.1(@ag-ui/[email protected])(@ag-ui/[email protected])(@copilotkit/[email protected](@anthropic-ai/[email protected]([email protected]))(@cfworker/[email protected])(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@langchain/[email protected](@aws-sdk/[email protected])(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@smithy/[email protected])([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected]([email protected])))(@mastra/[email protected](@bufbuild/[email protected])(@cfworker/[email protected])(@grpc/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@mastra/[email protected](@cfworker/[email protected])(@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-community/[email protected](@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-schema/[email protected])([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected]))+ '@mastra/core':+ specifier: 1.15.0+ version: 1.15.0(@cfworker/[email protected])(@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-community/[email protected](@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-schema/[email protected])([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])'@openuidev/react-headless':specifier: workspace:*version: link:../../../packages/react-headless@@ -438,6 +415,9 @@ importers:'@openuidev/react-ui':specifier: workspace:*version: link:../../../packages/react-ui+ lucide-react:+ specifier: ^0.575.0+ version: 0.575.0([email protected])next:specifier: 16.2.6version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])@@ -448,9 +428,12 @@ importers:specifier: 19.2.3version: 19.2.3([email protected])zod:- specifier: 4.4.3+ specifier: ^4.0.0version: 4.4.3devDependencies:+ '@openuidev/cli':+ specifier: workspace:*+ version: link:../../../packages/openui-cli'@tailwindcss/postcss':specifier: ^4version: 4.3.3@@ -475,33 +458,42 @@ importers:typescript:specifier: ^5version: 5.9.3- vitest:- specifier: ^4.0.18- version: 4.1.10(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- examples/harnesses/pi-agent-harness:+ examples/agent-frameworks/vercel-ai-sdk:dependencies:- '@earendil-works/pi-coding-agent':- specifier: ^0.79.4- version: 0.79.10(@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected]))([email protected])([email protected])- '@openuidev/react-headless':+ '@ai-sdk/openai':+ specifier: 'catalog:'+ version: 3.0.88([email protected])+ '@ai-sdk/react':+ specifier: 'catalog:'+ version: 3.0.238([email protected])([email protected])+ '@openuidev/cli':specifier: workspace:*- version: link:../../../packages/react-headless+ version: link:../../../packages/openui-cli'@openuidev/react-lang':specifier: workspace:*version: link:../../../packages/react-lang'@openuidev/react-ui':specifier: workspace:*version: link:../../../packages/react-ui+ ai:+ specifier: ^6.0.116+ version: 6.0.236([email protected])+ lucide-react:+ specifier: ^0.575.0+ version: 0.575.0([email protected])next:- specifier: 16.1.6- version: 16.1.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ specifier: 16.2.6+ version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])react:specifier: 19.2.3version: 19.2.3react-dom:specifier: 19.2.3version: 19.2.3([email protected])+ zod:+ specifier: ^4.3.6+ version: 4.4.3devDependencies:'@tailwindcss/postcss':specifier: ^4@@ -519,8 +511,8 @@ importers:specifier: ^9version: 9.39.5([email protected])eslint-config-next:- specifier: 16.1.6- version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ specifier: 16.2.6+ version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])tailwindcss:specifier: ^4version: 4.3.3@@ -528,7 +520,7 @@ importers:specifier: ^5version: 5.9.3- examples/harnesses/vercel-eve:+ examples/agent-frameworks/vercel-eve:dependencies:'@ai-sdk/openai':specifier: 'catalog:'@@ -586,587 +578,42 @@ importers:specifier: ^5version: 5.9.3- examples/html-artifact:+ examples/app-frameworks/fastapi: {}++ examples/app-frameworks/fastapi/frontend:dependencies:'@openuidev/react-headless':specifier: workspace:*- version: link:../../packages/react-headless+ version: link:../../../../packages/react-headless'@openuidev/react-lang':specifier: workspace:*- version: link:../../packages/react-lang+ version: link:../../../../packages/react-lang'@openuidev/react-ui':specifier: workspace:*- version: link:../../packages/react-ui- lucide-react:- specifier: ^0.575.0- version: 0.575.0([email protected])- next:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- openai:- specifier: ^6.22.0- version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])- react:- specifier: 19.2.3- version: 19.2.3- react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- zod:- specifier: 'catalog:'- version: 4.4.3- devDependencies:- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3- '@types/node':- specifier: 'catalog:'- version: 22.20.1- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- tailwindcss:- specifier: ^4- version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3-- examples/langchain-chat:- dependencies:- '@langchain/core':- specifier: ^1.2.1- version: 1.2.3(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected])- '@langchain/langgraph':- specifier: ^1.4.5- version: 1.4.8(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected])- '@langchain/langgraph-sdk':- specifier: ^1.9.18- version: 1.9.28(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))- '@langchain/openai':- specifier: ^1.5.2- version: 1.5.5(@aws-sdk/[email protected])(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@smithy/[email protected])([email protected])- '@openuidev/langchain':- specifier: workspace:*- version: link:../../packages/langchain- '@openuidev/react-headless':- specifier: workspace:*- version: link:../../packages/react-headless- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':- specifier: workspace:*- version: link:../../packages/react-ui- deepagents:- specifier: ^1.10.5- version: 1.11.1(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected])))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected]))([email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected]))([email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))- langchain:- specifier: ^1.5.1- version: 1.5.4(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected])- next:- specifier: 16.1.6- version: 16.1.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- react:- specifier: 19.2.3- version: 19.2.3- react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- zod:- specifier: ^4.0.0- version: 4.4.3- devDependencies:- '@langchain/langgraph-cli':- specifier: ^1.4.3- version: 1.4.3(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected])))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected])([email protected])- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3- '@types/node':- specifier: 'catalog:'- version: 22.20.1- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.1.6- version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- npm-run-all2:- specifier: ^9.0.2- version: 9.0.2- tailwindcss:- specifier: ^4- version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3-- examples/mastra-chat:- dependencies:- '@ag-ui/core':- specifier: ^0.0.53- version: 0.0.53- '@ag-ui/mastra':- specifier: ^1.0.1- version: 1.1.1(@ag-ui/[email protected])(@ag-ui/[email protected])(@copilotkit/[email protected](@anthropic-ai/[email protected]([email protected]))(@cfworker/[email protected])(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@langchain/[email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@langchain/[email protected](@aws-sdk/[email protected])(@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@smithy/[email protected])([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])([email protected](@langchain/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]))(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))([email protected]))([email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected]([email protected])))(@mastra/[email protected](@bufbuild/[email protected])(@cfworker/[email protected])(@grpc/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@mastra/[email protected](@cfworker/[email protected])(@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-community/[email protected](@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-schema/[email protected])([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected]))- '@mastra/core':- specifier: 1.15.0- version: 1.15.0(@cfworker/[email protected])(@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-community/[email protected](@standard-community/[email protected](@standard-schema/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))(@standard-schema/[email protected])([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])- '@openuidev/react-headless':- specifier: workspace:*- version: link:../../packages/react-headless- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':- specifier: workspace:*- version: link:../../packages/react-ui- lucide-react:- specifier: ^0.575.0- version: 0.575.0([email protected])- next:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- react:- specifier: 19.2.3- version: 19.2.3- react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- zod:- specifier: ^4.0.0- version: 4.4.3- devDependencies:- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3- '@types/node':- specifier: 'catalog:'- version: 22.20.1- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- tailwindcss:- specifier: ^4- version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3-- examples/material-ui-chat:- dependencies:- '@emotion/react':- specifier: ^11.13.5- version: 11.14.0(@types/[email protected])([email protected])- '@emotion/styled':- specifier: ^11.13.5- version: 11.14.1(@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])- '@mui/icons-material':- specifier: ^6.4.12- version: 6.5.0(@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])- '@mui/material':- specifier: ^6.4.12- version: 6.5.0(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@mui/x-charts':- specifier: ^7.29.1- version: 7.29.1(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))(@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@openuidev/react-headless':- specifier: workspace:*- version: link:../../packages/react-headless- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':- specifier: workspace:*- version: link:../../packages/react-ui- next:- specifier: 16.2.7- version: 16.2.7(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- openai:- specifier: ^6.22.0- version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])- react:- specifier: 19.2.3- version: 19.2.3- react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- zod:- specifier: ^4.0.0- version: 4.4.3- devDependencies:- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@types/node':- specifier: 'catalog:'- version: 22.20.1- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.1.6- version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- typescript:- specifier: ^5- version: 5.9.3-- examples/multi-agent-chat:- dependencies:- '@ai-sdk/openai':- specifier: 'catalog:'- version: 3.0.88([email protected])- '@ai-sdk/react':- specifier: 'catalog:'- version: 3.0.238([email protected])([email protected])- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':- specifier: workspace:*- version: link:../../packages/react-ui- ai:- specifier: ^6.0.191- version: 6.0.236([email protected])- lucide-react:- specifier: ^0.575.0- version: 0.575.0([email protected])- next:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- react:- specifier: 19.2.3- version: 19.2.3- react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- streamdown:- specifier: ^2.5.0- zod:- specifier: ^4.3.6- version: 4.4.3- devDependencies:- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3- '@types/node':- specifier: 'catalog:'- version: 22.20.1- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- tailwindcss:- specifier: ^4- version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3-- examples/openui-chat:- dependencies:- '@openuidev/react-headless':- specifier: workspace:*- version: link:../../packages/react-headless- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':- specifier: workspace:*- version: link:../../packages/react-ui- lucide-react:- specifier: ^0.575.0- version: 0.575.0([email protected])- next:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- openai:- specifier: ^6.22.0- version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])- react:- specifier: 19.2.3- version: 19.2.3- react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- zod:- specifier: ^4.0.0- version: 4.4.3- devDependencies:- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3- '@types/node':- specifier: 'catalog:'- version: 22.20.1- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- tailwindcss:- specifier: ^4- version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3-- examples/openui-cloud:- dependencies:- '@floating-ui/react-dom':- specifier: 2.1.3- '@openuidev/lang-core':- specifier: workspace:*- version: link:../../packages/lang-core- '@openuidev/react-headless':- specifier: workspace:*- version: link:../../packages/react-headless- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':- specifier: workspace:*- version: link:../../packages/react-ui- '@openuidev/thesys':- specifier: latest- version: 0.3.1(@openuidev/lang-core@packages+lang-core)(@openuidev/react-headless@packages+react-headless)(@openuidev/react-lang@packages+react-lang)(@openuidev/react-ui@packages+react-ui)(@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))- '@openuidev/thesys-server':- specifier: latest- version: 0.1.3- '@radix-ui/react-dialog':- specifier: 1.1.15- version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-tooltip':- specifier: ^1.2.0- version: 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@tanstack/react-table':- specifier: 8.21.3- '@tiptap/extension-placeholder':- specifier: 2.27.2- '@tiptap/react':- specifier: 2.27.2- version: 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected]([email protected]))([email protected])- '@tiptap/starter-kit':- specifier: 2.27.2- version: 2.27.2- clsx:- specifier: 2.1.1- version: 2.1.1- katex:- specifier: 0.16.44- version: 0.16.44- lodash:- specifier: 4.17.21- version: 4.17.21- lucide-react:- specifier: ^0.575.0- version: 0.575.0([email protected])- mdast-util-find-and-replace:- specifier: 3.0.2- version: 3.0.2- mermaid:- specifier: 11.15.0- version: 11.15.0- next:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ version: link:../../../../packages/react-uireact:- specifier: 19.2.3- version: 19.2.3+ specifier: ^19.0.0+ version: 19.2.4react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- recharts:- specifier: 2.15.4- rehype-katex:- specifier: 7.0.1- version: 7.0.1- remark-breaks:- specifier: 4.0.0- version: 4.0.0- remark-gfm:- specifier: 4.0.1- version: 4.0.1- remark-math:- specifier: 6.0.0- version: 6.0.0- tiny-invariant:- specifier: 1.3.3- version: 1.3.3- unist-util-visit:- specifier: 5.1.0- version: 5.1.0- zod:- specifier: ^4.0.0- version: 4.4.3- zustand:- specifier: 'catalog:'- version: 4.5.7(@types/[email protected])([email protected])+ specifier: ^19.0.0+ version: 19.2.4([email protected])devDependencies:- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3- '@types/node':- specifier: ^20- version: 20.19.43- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- openai:- specifier: ^6.22.0- version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])- tailwindcss:- specifier: ^4- version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3- vitest:- specifier: ^4.1.0- version: 4.1.10(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))-- examples/openui-dashboard:- dependencies:- '@modelcontextprotocol/sdk':- specifier: ^1.27.1- version: 1.30.0(@cfworker/[email protected])([email protected])- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@openuidev/lang-core':- specifier: workspace:*- version: link:../../packages/lang-core- '@openuidev/react-headless':- specifier: workspace:*- version: link:../../packages/react-headless- '@openuidev/react-lang':- specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':- specifier: workspace:*- version: link:../../packages/react-ui- lucide-react:- specifier: ^0.575.0- version: 0.575.0([email protected])- next:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])- openai:- specifier: ^6.22.0- version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])- react:- specifier: 19.2.3- version: 19.2.3- react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- zod:+ '@tailwindcss/vite':specifier: ^4.0.0- version: 4.4.3- devDependencies:- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3- '@types/node':- specifier: 'catalog:'- version: 22.20.1- '@types/react':- specifier: ^19- version: 19.2.17- '@types/react-dom':- specifier: ^19- version: 19.2.3(@types/[email protected])- eslint:- specifier: ^9- version: 9.39.5([email protected])- eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 4.3.3([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitejs/plugin-react':+ specifier: ^4.0.0+ version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))tailwindcss:- specifier: ^4+ specifier: ^4.0.0version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3+ vite:+ specifier: ^6.0.0+ version: 6.4.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- examples/openui-react-native: {}+ examples/app-frameworks/react-native: {}- examples/openui-react-native/backend:+ examples/app-frameworks/react-native/backend:dependencies:next:specifier: ^15.2.3@@ -1200,7 +647,7 @@ importers:specifier: 4.4.3version: 4.4.3- examples/openui-react-native/chat-app:+ examples/app-frameworks/react-native/chat-app:dependencies:'@openuidev/react-lang':specifier: ^0.1.3@@ -1237,35 +684,130 @@ importers:specifier: ~19.2.2version: 19.2.17typescript:- specifier: ~5.9.2+ specifier: ~5.9.2+ version: 5.9.3++ examples/app-frameworks/svelte:+ dependencies:+ '@ai-sdk/openai':+ specifier: 'catalog:'+ version: 3.0.88([email protected])+ '@ai-sdk/svelte':+ specifier: ^4.0.191+ '@openuidev/svelte-lang':+ specifier: workspace:*+ version: link:../../../packages/svelte-lang+ ai:+ specifier: ^6.0.116+ version: 6.0.236([email protected])+ chart.js:+ specifier: ^4.5.1+ version: 4.5.1+ zod:+ specifier: ^4.3.6+ version: 4.4.3+ devDependencies:+ '@sveltejs/adapter-auto':+ specifier: ^4.0.0+ version: 4.0.0(@sveltejs/[email protected](@opentelemetry/[email protected])(@sveltejs/[email protected]([email protected](@typescript-eslint/[email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@typescript-eslint/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))+ '@sveltejs/kit':+ specifier: ^2.0.0+ version: 2.70.1(@opentelemetry/[email protected])(@sveltejs/[email protected]([email protected](@typescript-eslint/[email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@typescript-eslint/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@sveltejs/vite-plugin-svelte':+ specifier: ^5.0.0+ version: 5.1.1([email protected](@typescript-eslint/[email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tailwindcss/vite':+ specifier: ^4+ version: 4.3.3([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ svelte:+ specifier: ^5.0.0+ version: 5.56.8(@typescript-eslint/[email protected])+ tailwindcss:+ specifier: ^4+ version: 4.3.3+ typescript:+ specifier: ^5+ version: 5.9.3+ vite:+ specifier: ^6.0.0+ version: 6.4.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])++ examples/app-frameworks/vue:+ dependencies:+ '@ai-sdk/openai':+ specifier: 'catalog:'+ version: 3.0.88([email protected])+ '@ai-sdk/vue':+ specifier: ^3.0.0+ '@openuidev/lang-core':+ specifier: workspace:*+ version: link:../../../packages/lang-core+ '@openuidev/vue-lang':+ specifier: workspace:*+ version: link:../../../packages/vue-lang+ ai:+ specifier: ^6.0.116+ version: 6.0.236([email protected])+ chart.js:+ specifier: ^4.5.1+ version: 4.5.1+ zod:+ specifier: ^4.3.6+ version: 4.4.3+ devDependencies:+ '@tailwindcss/vite':+ specifier: ^4+ version: 4.3.3([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ jiti:+ specifier: ^2.0.0+ version: 2.7.0+ nuxt:+ specifier: ^3.17.0+ version: 3.21.10(@azure/[email protected])(@parcel/[email protected])(@types/[email protected])(@vue/[email protected])([email protected])([email protected])([email protected]([email protected](@types/[email protected]))([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected])([email protected])([email protected]))([email protected])([email protected])+ tailwindcss:+ specifier: ^4+ version: 4.3.3+ typescript:+ specifier: ^5version: 5.9.3+ vue:+ specifier: ^3.5.0+ version: 3.5.40([email protected])+ vue-router:+ specifier: ^4.5.0+ version: 4.6.4([email protected]([email protected]))- examples/react-email:+ examples/design-systems/material-ui:dependencies:- '@openuidev/cli':- specifier: workspace:*- version: link:../../packages/openui-cli- '@openuidev/react-email':- specifier: workspace:*- version: link:../../packages/react-email+ '@emotion/react':+ specifier: ^11.13.5+ version: 11.14.0(@types/[email protected])([email protected])+ '@emotion/styled':+ specifier: ^11.13.5+ version: 11.14.1(@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected])+ '@mui/icons-material':+ specifier: ^6.4.12+ version: 6.5.0(@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))(@types/[email protected])([email protected])+ '@mui/material':+ specifier: ^6.4.12+ version: 6.5.0(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@mui/x-charts':+ specifier: ^7.29.1+ version: 7.29.1(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))(@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@openuidev/react-headless':specifier: workspace:*- version: link:../../packages/react-headless+ version: link:../../../packages/react-headless'@openuidev/react-lang':specifier: workspace:*- version: link:../../packages/react-lang- '@react-email/components':- specifier: ^0.0.41- '@react-email/render':- specifier: ^1.0.6- lucide-react:- specifier: ^0.562.0- version: 0.562.0([email protected])+ version: link:../../../packages/react-lang+ '@openuidev/react-ui':+ specifier: workspace:*+ version: link:../../../packages/react-uinext:- specifier: 16.2.6- version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ specifier: 16.2.7+ version: 16.2.7(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])openai:specifier: ^6.22.0version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])@@ -1279,9 +821,9 @@ importers:specifier: ^4.0.0version: 4.4.3devDependencies:- '@tailwindcss/postcss':- specifier: ^4- version: 4.3.3+ '@openuidev/cli':+ specifier: workspace:*+ version: link:../../../packages/openui-cli'@types/node':specifier: 'catalog:'version: 22.20.1@@ -1295,29 +837,23 @@ importers:specifier: ^9version: 9.39.5([email protected])eslint-config-next:- specifier: 16.2.6- version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- tailwindcss:- specifier: ^4- version: 4.3.3- tsx:- specifier: ^4.19.2- version: 4.23.1+ specifier: 16.1.6+ version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])typescript:specifier: ^5version: 5.9.3- examples/shadcn-chat:+ examples/design-systems/shadcn:dependencies:'@openuidev/react-headless':specifier: workspace:*- version: link:../../packages/react-headless+ version: link:../../../packages/react-headless'@openuidev/react-lang':specifier: workspace:*- version: link:../../packages/react-lang+ version: link:../../../packages/react-lang'@openuidev/react-ui':specifier: workspace:*- version: link:../../packages/react-ui+ version: link:../../../packages/react-ui'@radix-ui/react-accordion':specifier: ^1.2.3version: 1.2.20(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -1415,28 +951,211 @@ importers:specifier: ^9.14.0version: 9.14.0([email protected])react-dom:- specifier: 19.2.3- version: 19.2.3([email protected])- react-markdown:- specifier: ^10.1.0- version: 10.1.0(@types/[email protected])([email protected])+ specifier: 19.2.3+ version: 19.2.3([email protected])+ react-markdown:+ specifier: ^10.1.0+ version: 10.1.0(@types/[email protected])([email protected])+ recharts:+ specifier: ^2.15.4+ remark-gfm:+ specifier: ^4.0.1+ version: 4.0.1+ sonner:+ specifier: ^2.0.7+ tailwind-merge:+ specifier: ^3.3.0+ version: 3.6.0+ vaul:+ specifier: ^1.1.2+ version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ zod:+ specifier: ^4.0.0+ version: 4.4.3+ devDependencies:+ '@tailwindcss/postcss':+ specifier: ^4+ version: 4.3.3+ '@types/node':+ specifier: 'catalog:'+ version: 22.20.1+ '@types/react':+ specifier: ^19+ version: 19.2.17+ '@types/react-dom':+ specifier: ^19+ version: 19.2.3(@types/[email protected])+ eslint:+ specifier: ^9+ version: 9.39.5([email protected])+ eslint-config-next:+ specifier: 16.2.6+ version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ tailwindcss:+ specifier: ^4+ version: 4.3.3+ tsx:+ specifier: ^4.19.2+ version: 4.23.1+ typescript:+ specifier: ^5+ version: 5.9.3++ examples/harnesses/grok-build:+ dependencies:+ '@ag-ui/core':+ specifier: ^0.0.53+ version: 0.0.53+ '@agentclientprotocol/sdk':+ specifier: 1.3.0+ version: 1.3.0([email protected])+ '@openuidev/lang-core':+ specifier: workspace:*+ version: link:../../../packages/lang-core+ '@openuidev/react-headless':+ specifier: workspace:*+ version: link:../../../packages/react-headless+ '@openuidev/react-lang':+ specifier: workspace:*+ version: link:../../../packages/react-lang+ '@openuidev/react-ui':+ specifier: workspace:*+ version: link:../../../packages/react-ui+ next:+ specifier: 16.2.6+ version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ react:+ specifier: 19.2.3+ version: 19.2.3+ react-dom:+ specifier: 19.2.3+ version: 19.2.3([email protected])+ zod:+ specifier: 4.4.3+ version: 4.4.3+ devDependencies:+ '@tailwindcss/postcss':+ specifier: ^4+ version: 4.3.3+ '@types/node':+ specifier: 'catalog:'+ version: 22.20.1+ '@types/react':+ specifier: ^19+ version: 19.2.17+ '@types/react-dom':+ specifier: ^19+ version: 19.2.3(@types/[email protected])+ eslint:+ specifier: ^9+ version: 9.39.5([email protected])+ eslint-config-next:+ specifier: 16.2.6+ version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ tailwindcss:+ specifier: ^4+ version: 4.3.3+ typescript:+ specifier: ^5+ version: 5.9.3+ vitest:+ specifier: ^4.0.18+ version: 4.1.10(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))++ examples/harnesses/pi:+ dependencies:+ '@earendil-works/pi-coding-agent':+ specifier: ^0.79.4+ version: 0.79.10(@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected]))([email protected])([email protected])+ '@openuidev/react-headless':+ specifier: workspace:*+ version: link:../../../packages/react-headless+ '@openuidev/react-lang':+ specifier: workspace:*+ version: link:../../../packages/react-lang+ '@openuidev/react-ui':+ specifier: workspace:*+ version: link:../../../packages/react-ui+ next:+ specifier: 16.1.6+ version: 16.1.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ react:+ specifier: 19.2.3+ version: 19.2.3+ react-dom:+ specifier: 19.2.3+ version: 19.2.3([email protected])+ devDependencies:+ '@tailwindcss/postcss':+ specifier: ^4+ version: 4.3.3+ '@types/node':+ specifier: 'catalog:'+ version: 22.20.1+ '@types/react':+ specifier: ^19+ version: 19.2.17+ '@types/react-dom':+ specifier: ^19+ version: 19.2.3(@types/[email protected])+ eslint:+ specifier: ^9+ version: 9.39.5([email protected])+ eslint-config-next:+ specifier: 16.1.6+ version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ tailwindcss:+ specifier: ^4+ version: 4.3.3+ typescript:+ specifier: ^5+ version: 5.9.3++ examples/miscellaneous/handsontable:+ dependencies:+ '@handsontable/react-wrapper':+ specifier: ^17.0.1+ version: 17.1.0([email protected])+ '@openuidev/cli':+ specifier: workspace:*+ version: link:../../../packages/openui-cli+ '@openuidev/react-headless':+ specifier: workspace:*+ version: link:../../../packages/react-headless+ '@openuidev/react-lang':+ specifier: workspace:*+ version: link:../../../packages/react-lang+ '@openuidev/react-ui':+ specifier: workspace:*+ version: link:../../../packages/react-ui+ handsontable:+ specifier: ^17.0.1+ version: 17.1.0+ hyperformula:+ specifier: ^3.2.0+ version: 3.3.0+ lucide-react:+ specifier: ^1.8.0+ version: 1.27.0([email protected])+ next:+ specifier: 16.2.6+ version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ openai:+ specifier: ^6.34.0+ version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ react:+ specifier: 19.2.4+ version: 19.2.4+ react-dom:+ specifier: 19.2.4+ version: 19.2.4([email protected])recharts:specifier: ^2.15.4- remark-gfm:- specifier: ^4.0.1- version: 4.0.1- sonner:- specifier: ^2.0.7- tailwind-merge:- specifier: ^3.3.0- version: 3.6.0- vaul:- specifier: ^1.1.2- version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])zod:- specifier: ^4.0.0+ specifier: ^4.3.6version: 4.4.3devDependencies:'@tailwindcss/postcss':@@ -1460,27 +1179,24 @@ importers:tailwindcss:specifier: ^4version: 4.3.3- tsx:- specifier: ^4.19.2- version: 4.23.1typescript:specifier: ^5version: 5.9.3- examples/supabase-chat:+ examples/miscellaneous/html-artifact:dependencies:'@openuidev/react-headless':specifier: workspace:*- version: link:../../packages/react-headless+ version: link:../../../packages/react-headless+ '@openuidev/react-lang':+ specifier: workspace:*+ version: link:../../../packages/react-lang'@openuidev/react-ui':specifier: workspace:*- version: link:../../packages/react-ui- '@supabase/ssr':- specifier: ^0.10.3- version: 0.10.3(@supabase/[email protected])- '@supabase/supabase-js':- specifier: ^2.49.4- version: 2.110.9+ version: link:../../../packages/react-ui+ lucide-react:+ specifier: ^0.575.0+ version: 0.575.0([email protected])next:specifier: 16.2.6version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])@@ -1493,7 +1209,13 @@ importers:react-dom:specifier: 19.2.3version: 19.2.3([email protected])+ zod:+ specifier: 'catalog:'+ version: 4.4.3devDependencies:+ '@openuidev/cli':+ specifier: workspace:*+ version: link:../../../packages/openui-cli'@tailwindcss/postcss':specifier: ^4version: 4.3.3@@ -1519,78 +1241,35 @@ importers:specifier: ^5version: 5.9.3- examples/svelte-chat:- dependencies:- '@ai-sdk/openai':- specifier: 'catalog:'- version: 3.0.88([email protected])- '@ai-sdk/svelte':- specifier: ^4.0.191- '@openuidev/svelte-lang':- specifier: workspace:*- version: link:../../packages/svelte-lang- ai:- specifier: ^6.0.116- version: 6.0.236([email protected])- chart.js:- specifier: ^4.5.1- version: 4.5.1- zod:- specifier: ^4.3.6- version: 4.4.3- devDependencies:- '@sveltejs/adapter-auto':- specifier: ^4.0.0- version: 4.0.0(@sveltejs/[email protected](@opentelemetry/[email protected])(@sveltejs/[email protected]([email protected](@typescript-eslint/[email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@typescript-eslint/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))- '@sveltejs/kit':- specifier: ^2.0.0- version: 2.70.1(@opentelemetry/[email protected])(@sveltejs/[email protected]([email protected](@typescript-eslint/[email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@typescript-eslint/[email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@sveltejs/vite-plugin-svelte':- specifier: ^5.0.0- version: 5.1.1([email protected](@typescript-eslint/[email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@tailwindcss/vite':- specifier: ^4- version: 4.3.3([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- svelte:- specifier: ^5.0.0- version: 5.56.8(@typescript-eslint/[email protected])- tailwindcss:- specifier: ^4- version: 4.3.3- typescript:- specifier: ^5- version: 5.9.3- vite:- specifier: ^6.0.0- version: 6.4.3(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])-- examples/vercel-ai-chat:+ examples/miscellaneous/react-email:dependencies:- '@ai-sdk/openai':- specifier: 'catalog:'- version: 3.0.88([email protected])- '@ai-sdk/react':- specifier: 'catalog:'- version: 3.0.238([email protected])([email protected])'@openuidev/cli':specifier: workspace:*- version: link:../../packages/openui-cli- '@openuidev/react-lang':+ version: link:../../../packages/openui-cli+ '@openuidev/react-email':specifier: workspace:*- version: link:../../packages/react-lang- '@openuidev/react-ui':+ version: link:../../../packages/react-email+ '@openuidev/react-headless':specifier: workspace:*- version: link:../../packages/react-ui- ai:- specifier: ^6.0.116- version: 6.0.236([email protected])+ version: link:../../../packages/react-headless+ '@openuidev/react-lang':+ specifier: workspace:*+ version: link:../../../packages/react-lang+ '@react-email/components':+ specifier: ^0.0.41+ '@react-email/render':+ specifier: ^1.0.6lucide-react:- specifier: ^0.575.0- version: 0.575.0([email protected])+ specifier: ^0.562.0+ version: 0.562.0([email protected])next:specifier: 16.2.6version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ openai:+ specifier: ^6.22.0+ version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])react:specifier: 19.2.3version: 19.2.3@@ -1598,7 +1277,7 @@ importers:specifier: 19.2.3version: 19.2.3([email protected])zod:- specifier: ^4.3.6+ specifier: ^4.0.0version: 4.4.3devDependencies:'@tailwindcss/postcss':@@ -1622,55 +1301,64 @@ importers:tailwindcss:specifier: ^4version: 4.3.3+ tsx:+ specifier: ^4.19.2+ version: 4.23.1typescript:specifier: ^5version: 5.9.3- examples/vue-chat:+ examples/miscellaneous/supabase:dependencies:- '@ai-sdk/openai':- specifier: 'catalog:'- version: 3.0.88([email protected])- '@ai-sdk/vue':- specifier: ^3.0.0- '@openuidev/lang-core':+ '@openuidev/react-headless':specifier: workspace:*- version: link:../../packages/lang-core- '@openuidev/vue-lang':+ version: link:../../../packages/react-headless+ '@openuidev/react-ui':specifier: workspace:*- version: link:../../packages/vue-lang- ai:- specifier: ^6.0.116- version: 6.0.236([email protected])- chart.js:- specifier: ^4.5.1- version: 4.5.1- zod:- specifier: ^4.3.6- version: 4.4.3+ version: link:../../../packages/react-ui+ '@supabase/ssr':+ specifier: ^0.10.3+ version: 0.10.3(@supabase/[email protected])+ '@supabase/supabase-js':+ specifier: ^2.49.4+ version: 2.110.9+ next:+ specifier: 16.2.6+ version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ openai:+ specifier: ^6.22.0+ version: 6.49.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ react:+ specifier: 19.2.3+ version: 19.2.3+ react-dom:+ specifier: 19.2.3+ version: 19.2.3([email protected])devDependencies:- '@tailwindcss/vite':+ '@tailwindcss/postcss':specifier: ^4- version: 4.3.3([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- jiti:- specifier: ^2.0.0- version: 2.7.0- nuxt:- specifier: ^3.17.0- version: 3.21.10(@azure/[email protected])(@parcel/[email protected])(@types/[email protected])(@vue/[email protected])([email protected])([email protected])([email protected]([email protected](@types/[email protected]))([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected])([email protected])([email protected]))([email protected])([email protected])+ version: 4.3.3+ '@types/node':+ specifier: 'catalog:'+ version: 22.20.1+ '@types/react':+ specifier: ^19+ version: 19.2.17+ '@types/react-dom':+ specifier: ^19+ version: 19.2.3(@types/[email protected])+ eslint:+ specifier: ^9+ version: 9.39.5([email protected])+ eslint-config-next:+ specifier: 16.2.6+ version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])tailwindcss:specifier: ^4version: 4.3.3typescript:specifier: ^5version: 5.9.3- vue:- specifier: ^3.5.0- version: 3.5.40([email protected])- vue-router:- specifier: ^4.5.0- version: 4.6.4([email protected]([email protected]))packages/assistant-ui:dependencies:@@ -18951,66 +18639,6 @@ packages:resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}-catalogs:- default:- '@ai-sdk/openai':- specifier: ^3.0.41- version: 3.0.88- '@ai-sdk/react':- specifier: ^3.0.118- version: 3.0.238- '@types/node':- specifier: ^22.15.32- version: 22.20.1- '@types/react':- specifier: '>=19.0.0'- version: 19.2.17- '@types/react-dom':- specifier: '>=19.0.0'- version: 19.2.3- '@typescript-eslint/eslint-plugin':- specifier: ^8.56.1- version: 8.65.0- eslint:- specifier: ^9.0.0- version: 9.39.5- eslint-config-prettier:- specifier: ^10.1.8- version: 10.1.8- eslint-plugin-prettier:- specifier: ^5.5.5- version: 5.5.6- eslint-plugin-react-hooks:- specifier: ^7.0.1- version: 7.1.1- eslint-plugin-react-refresh:- specifier: ^0.5.2- version: 0.5.3- eslint-plugin-storybook:- specifier: ^10.2.14- version: 10.5.5- eslint-plugin-unused-imports:- specifier: ^4.4.1- version: 4.4.1- jsdom:- specifier: ^26.1.0- version: 26.1.0- react:- specifier: ^18.3.1 || ^19.0.0- version: 19.2.4- react-dom:- specifier: ^18.0.0 || ^19.0.0- version: 19.2.4- typescript:- specifier: ^5.9.3- version: 5.9.3- zod:- specifier: ^3.25.0 || ^4.0.0- version: 4.4.3- zustand:- specifier: ^4.5.5- version: 4.5.7-snapshots:'@0no-co/[email protected]([email protected])':