Skip to content

The Open Standard for Generative UI

Add standalone OpenUI OSS and Cloud chat demo (#758)

Zahle Khanb507578d7d13
diff --git a/docs/README.md b/docs/README.md
index 2ef7e832b..b014ab032 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -17,6 +17,29 @@ pnpm --filter @openuidev/docs dev
pnpm --filter @openuidev/docs build
```
+### `/chat` demo configuration
+
+The standalone `/chat` page always starts in **OpenUI OSS** mode. Its selected mode is not
+stored across reloads. Live OSS generation uses the existing server-side
+`OPENROUTER_API_KEY`.
+
+OpenUI Cloud requires the following server-side variables. If either is missing, Cloud requests
+show the unavailable state at runtime:
+
+```bash
+OPENUI_CLOUD_DEMO_ENABLED=true
+THESYS_API_KEY=your-cloud-key
+```
+
+Do not expose `THESYS_API_KEY` through a `NEXT_PUBLIC_*` variable. The browser generates an
+anonymous user ID, retains it in `sessionStorage`, and sends it with Cloud requests so persisted
+conversations remain scoped to that tab session.
+
+The Cloud feature flag is intentionally fail-closed. Keep it disabled on public deployments until
+a shared, cross-instance session-and-IP rate limiter, Cloud organization budgets/token scopes, and
+an approved conversation retention/deletion process are in place. Same-origin validation is an
+additional browser safeguard, not a substitute for those cost controls.
+
## Project structure
```
diff --git a/docs/app/(home)/components/Button/Button.tsx b/docs/app/(home)/components/Button/Button.tsx
index a5a02a07c..b5a42cc27 100644
--- a/docs/app/(home)/components/Button/Button.tsx
+++ b/docs/app/(home)/components/Button/Button.tsx
@@ -1,5 +1,6 @@
"use client";
+import { copyText } from "@/lib/copy-text";
import { Check, Copy } from "lucide-react";
import Link from "next/link";
import { useEffect, useRef, useState, type ButtonHTMLAttributes, type ReactNode } from "react";
@@ -49,37 +50,6 @@ function CopyStatusIcon({
);
}
-export async function copyText(text: string): Promise<boolean> {
- if (typeof navigator !== "undefined" && navigator.clipboard?.writeText) {
- try {
- await navigator.clipboard.writeText(text);
- return true;
- } catch {
- // fall through to execCommand fallback
- }
- }
-
- if (typeof document === "undefined") return false;
-
- try {
- const textarea = document.createElement("textarea");
- textarea.value = text;
- textarea.setAttribute("readonly", "");
- textarea.style.position = "fixed";
- textarea.style.top = "0";
- textarea.style.left = "0";
- textarea.style.opacity = "0";
- textarea.style.pointerEvents = "none";
- document.body.appendChild(textarea);
- textarea.select();
- const ok = document.execCommand("copy");
- document.body.removeChild(textarea);
- return ok;
- } catch {
- return false;
- }
-}
-
interface ClipboardCommandButtonProps {
command: string;
children: ReactNode;
diff --git a/docs/app/(home)/openclaw-os/InstallSplitButton.tsx b/docs/app/(home)/openclaw-os/InstallSplitButton.tsx
index a5424973a..19d760241 100644
--- a/docs/app/(home)/openclaw-os/InstallSplitButton.tsx
+++ b/docs/app/(home)/openclaw-os/InstallSplitButton.tsx
@@ -1,9 +1,9 @@
"use client";
+import { copyText } from "@/lib/copy-text";
import { useState } from "react";
-import { copyText } from "../components/Button/Button";
-import styles from "./InstallSplitButton.module.css";
import { PLATFORMS, type Platform } from "../components/PlatformLogos";
+import styles from "./InstallSplitButton.module.css";
function CopyIcon({ className }: { className?: string }) {
return (
diff --git a/docs/app/api/chat/route.ts b/docs/app/api/chat/route.ts
index 13aefd6ca..f197cdf55 100644
--- a/docs/app/api/chat/route.ts
+++ b/docs/app/api/chat/route.ts
@@ -6,39 +6,6 @@ import { join } from "path";
const systemPrompt = readFileSync(join(process.cwd(), "generated/chat-system-prompt.txt"), "utf-8");
-const conversationLog: Array<{ role: string; content: string }> = [];
-
-/* eslint-disable @typescript-eslint/no-explicit-any */
-function extractText(msg: any): string {
- const content = msg?.content;
- if (typeof content === "string") {
- try {
- const parsed = JSON.parse(content);
- if (parsed?.parts)
- return parsed.parts
- .filter((p: any) => p.type === "text")
- .map((p: any) => p.text)
- .join("");
- } catch {
- /* plain string */
- }
- return content;
- }
- if (Array.isArray(content))
- return content
- .filter((p: any) => p.type === "text")
- .map((p: any) => p.text)
- .join("");
- if (Array.isArray(msg?.parts))
- return msg.parts
- .filter((p: any) => p.type === "text")
- .map((p: any) => p.text)
- .join("");
- if (typeof msg?.text === "string") return msg.text;
- return JSON.stringify(msg);
-}
-/* eslint-enable @typescript-eslint/no-explicit-any */
-
// ── Tool implementations ──
function getWeather({ location }: { location: string }): Promise<string> {
@@ -133,7 +100,6 @@ function searchWeb({ query }: { query: string }): Promise<string> {
// ── Tool definitions ──
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
const tools: any[] = [
{
type: "function",
@@ -245,10 +211,6 @@ function sseToolCallArgs(
export async function POST(req: NextRequest) {
const { messages } = await req.json();
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- const lastUserMsg = (messages as any[]).filter((m: any) => m.role === "user").pop();
- if (lastUserMsg) conversationLog.push({ role: "user", content: extractText(lastUserMsg) });
-
const apiKey = process.env.OPENROUTER_API_KEY;
if (!apiKey) {
return Response.json(
@@ -263,12 +225,11 @@ export async function POST(req: NextRequest) {
});
const MODEL = "openai/gpt-5.4";
- // 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) {
- const { tool_calls: _tc, ...rest } = m; // eslint-disable-line @typescript-eslint/no-unused-vars
+ const { tool_calls: _tc, ...rest } = m;
return rest;
}
return m;
@@ -281,6 +242,7 @@ export async function POST(req: NextRequest) {
const encoder = new TextEncoder();
let controllerClosed = false;
+ let activeRunner: { abort: () => void } | undefined;
const readable = new ReadableStream({
start(controller) {
@@ -302,20 +264,33 @@ export async function POST(req: NextRequest) {
}
};
- let fullResponse = "";
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,
- });
+ const runner = (client.chat.completions as any).runTools(
+ {
+ model: MODEL,
+ messages: chatMessages,
+ tools,
+ stream: true,
+ },
+ { signal: req.signal },
+ );
+ activeRunner = runner;
+
+ const handleAbort = () => {
+ runner.abort();
+ close();
+ };
+ req.signal.addEventListener("abort", handleAbort, { once: true });
+
+ const finish = () => {
+ req.signal.removeEventListener("abort", handleAbort);
+ activeRunner = undefined;
+ close();
+ };
- // 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 });
@@ -338,7 +313,6 @@ export async function POST(req: NextRequest) {
resultIdx++;
});
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
runner.on("chunk", (chunk: any) => {
// Keep credit handling to non-2xx responses. Provider-specific mid-stream
// chunks are intentionally ignored because they are harder to maintain
@@ -347,7 +321,6 @@ export async function POST(req: NextRequest) {
const delta = choice?.delta;
if (!delta) return;
if (delta.content) {
- fullResponse += delta.content;
enqueue(encoder.encode(`data: ${JSON.stringify(chunk)}\n\n`));
}
if (choice?.finish_reason === "stop") {
@@ -358,28 +331,24 @@ export async function POST(req: NextRequest) {
runner.on("end", () => {
if (controllerClosed) return;
- conversationLog.push({ role: "assistant", content: fullResponse });
- console.info(
- "[OpenUI Lang] Conversation:\n",
- JSON.stringify(
- conversationLog.map((m) => ({ ...m, content: m.content.replace(/\n/g, " ") })),
- null,
- 2,
- ),
- );
enqueue(encoder.encode("data: [DONE]\n\n"));
- close();
+ finish();
});
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
runner.on("error", (err: any) => {
if (controllerClosed) return;
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();
+ finish();
});
+
+ runner.on("abort", finish);
+ },
+ cancel() {
+ activeRunner?.abort();
+ activeRunner = undefined;
},
});
diff --git a/docs/app/api/openui-cloud/chat/route.ts b/docs/app/api/openui-cloud/chat/route.ts
new file mode 100644
index 000000000..b24d53836
--- /dev/null
+++ b/docs/app/api/openui-cloud/chat/route.ts
@@ -0,0 +1,125 @@
+import { readOpenuiCloudConfig } from "@/lib/openui-cloud/config";
+import { unavailableResponse } from "@/lib/openui-cloud/errors";
+import { resolveRequestedModel } from "@/lib/openui-cloud/models";
+import { hasAllowedOrigin, hasJsonContentType, readLimitedJson } from "@/lib/openui-cloud/request";
+import { artifactTool, createResponsesInstructions } from "@openuidev/thesys-server";
+import OpenAI from "openai";
+import type { ResponseInputItem } from "openai/resources/responses/responses";
+
+const MAX_INPUT_ITEMS = 16;
+const MAX_THREAD_ID_LENGTH = 256;
+
+interface CloudChatRequest {
+ threadId: string;
+ input: ResponseInputItem[];
+ model: string;
+}
+
+export async function POST(request: Request): Promise<Response> {
+ const config = readOpenuiCloudConfig();
+ if (!config) return unavailableResponse();
+ if (!hasAllowedOrigin(request)) return unavailableResponse(403);
+ if (!hasJsonContentType(request)) return unavailableResponse(415);
+
+ let body: CloudChatRequest;
+ try {
+ const payload = await readLimitedJson(request);
+ const parsed = parseCloudChatRequest(payload);
+ if (!parsed) return unavailableResponse(400);
+ body = parsed;
+ } catch {
+ return unavailableResponse(400);
+ }
+
+ const client = new OpenAI({
+ baseURL: `${config.apiOrigin}/v1/embed`,
+ apiKey: config.apiKey,
+ });
+
+ const stream = (await client.responses.create(
+ {
+ model: body.model,
+ conversation: body.threadId,
+ input: body.input,
+ stream: true,
+ store: true,
+ tools: [
+ artifactTool({ artifacts: ["slides", "report"] }),
+ { type: "web_search" },
+ { type: "image_search" },
+ ],
+ instructions: createResponsesInstructions(),
+ // The Cloud Responses endpoint extends the stock OpenAI tool union.
+ } as any,
+ { signal: request.signal },
+ )) as unknown as AsyncIterable<Record<string, unknown>>;
+
+ return createSseResponse(stream, request.signal);
+}
+
+function parseCloudChatRequest(value: unknown): CloudChatRequest | null {
+ if (!isRecord(value)) return null;
+
+ const threadId = value.threadId;
+ if (
+ typeof threadId !== "string" ||
+ threadId.length === 0 ||
+ threadId.length > MAX_THREAD_ID_LENGTH ||
+ !/^[A-Za-z0-9][A-Za-z0-9_-]*$/.test(threadId)
+ ) {
+ return null;
+ }
+
+ const input = value.input;
+ if (
+ !Array.isArray(input) ||
+ input.length === 0 ||
+ input.length > MAX_INPUT_ITEMS ||
+ !input.every(isRecord)
+ ) {
+ return null;
+ }
+
+ const model = resolveRequestedModel(value.model);
+ if (!model) return null;
+
+ return { threadId, input: input as unknown as ResponseInputItem[], model };
+}
+
+function createSseResponse(
+ stream: AsyncIterable<Record<string, unknown>>,
+ requestSignal: AbortSignal,
+): Response {
+ const encoder = new TextEncoder();
+ let cancelled = false;
+ let iterator: AsyncIterator<Record<string, unknown>> | undefined;
+
+ const body = new ReadableStream<Uint8Array>({
+ async start(controller) {
+ iterator = stream[Symbol.asyncIterator]();
+ while (!cancelled) {
+ const next = await iterator.next();
+ if (next.done || cancelled) break;
+ controller.enqueue(encoder.encode(`data: ${JSON.stringify(next.value)}\n\n`));
+ }
+ if (!cancelled && !requestSignal.aborted) controller.close();
+ },
+ async cancel() {
+ cancelled = true;
+ await iterator?.return?.();
+ },
+ });
+
+ return new Response(body, {
+ headers: {
+ "Content-Type": "text/event-stream",
+ "Cache-Control": "no-cache, no-transform",
+ Connection: "keep-alive",
+ "X-Accel-Buffering": "no",
+ },
+ });
+}
+
+function isRecord(value: unknown): value is Record<string, unknown> {
+ return typeof value === "object" && value !== null && !Array.isArray(value);
+}
diff --git a/docs/app/api/openui-cloud/frontend-token/route.ts b/docs/app/api/openui-cloud/frontend-token/route.ts
new file mode 100644
index 000000000..13aa7d089
--- /dev/null
+++ b/docs/app/api/openui-cloud/frontend-token/route.ts
@@ -0,0 +1,26 @@
+import { mintFrontendToken } from "@/lib/openui-cloud/cloud-api";
+import { readOpenuiCloudConfig } from "@/lib/openui-cloud/config";
+import { unavailableResponse } from "@/lib/openui-cloud/errors";
+import { hasAllowedOrigin, hasValidEmptyBody } from "@/lib/openui-cloud/request";
+import { readCloudUserId } from "@/lib/openui-cloud/user-id";
+
+export async function POST(request: Request): Promise<Response> {
+ const config = readOpenuiCloudConfig();
+ if (!config) return unavailableResponse();
+ if (!hasAllowedOrigin(request)) return unavailableResponse(403);
+ if (!(await hasValidEmptyBody(request))) return unavailableResponse(415);
+
+ const userId = readCloudUserId(request);
+ if (!userId) return unavailableResponse(401);
+
+ try {
+ const { token, expiresAt } = await mintFrontendToken(config, userId, request.signal);
+
+ return Response.json(
+ { token, expires_at: expiresAt },
+ { headers: { "Cache-Control": "no-store" } },
+ );
+ } catch {
+ return unavailableResponse(503);
+ }
+}
diff --git a/docs/app/chat/_components/agent-surfaces/cloud-agent-surface.tsx b/docs/app/chat/_components/agent-surfaces/cloud-agent-surface.tsx
new file mode 100644
index 000000000..a8c2e4da2
--- /dev/null
+++ b/docs/app/chat/_components/agent-surfaces/cloud-agent-surface.tsx
@@ -0,0 +1,113 @@
+"use client";
+
+import { DEFAULT_MODEL } from "@/lib/openui-cloud/models";
+import { CLOUD_USER_ID_HEADER } from "@/lib/openui-cloud/user-id";
+import { defineArtifactCategories } from "@openuidev/react-headless";
+import { AgentInterface } from "@openuidev/react-ui";
+import {
+ chatLibrary,
+ presentationArtifactRenderer,
+ reportArtifactRenderer,
+ useOpenuiCloudStorage,
+} from "@openuidev/thesys";
+import { useCallback, useEffect, useMemo, useState } from "react";
+import styles from "../../chat-page.module.css";
+import { createCloudChatLLM } from "./cloud-chat-llm";
+import { CloudModelSwitcher } from "./cloud-model-switcher";
+import { getOrCreateCloudUserId } from "./cloud-user-id";
+
+const { artifactRenderers, artifactCategories } = defineArtifactCategories([
+ { name: "Presentations", renderers: [presentationArtifactRenderer] },
+ { name: "Reports", renderers: [reportArtifactRenderer] },
+]);
+
+const CLOUD_STARTERS = [
+ {
+ displayText: "Summarize EV trends",
+ prompt: "In a few sentences, summarize the biggest EV market trends this quarter.",
+ },
+ {
+ displayText: "Pricing strategy tips",
+ prompt: "List five quick tips for pricing a new electric vehicle competitively.",
+ },
+ {
+ displayText: "Quarterly deck",
+ prompt: "Create a short presentation about our Q2 results with three slides.",
+ },
+ {
+ displayText: "Market report",
+ prompt: "Write a brief market-analysis report on the EV sector.",
+ },
+];
+
+interface CloudAgentSurfaceProps {
+ themeMode: "light" | "dark";
+}
+
+export function CloudAgentSurface({ themeMode }: CloudAgentSurfaceProps) {
+ const [selectedModel, setSelectedModel] = useState(DEFAULT_MODEL);
+ const [userId] = useState(getOrCreateCloudUserId);
+ const [llm] = useState(createCloudChatLLM);
+ const cloudFetch = useMemo<typeof fetch>(() => {
+ return async (input, init) => {
+ if (typeof input !== "string" || input !== "/api/openui-cloud/frontend-token") {
+ return fetch(input, init);
+ }
+
+ const headers = new Headers(init?.headers);
+ headers.set(CLOUD_USER_ID_HEADER, userId);
+ return fetch(input, { ...init, headers });
+ };
+ }, [userId]);
+ const cloudStorage = useOpenuiCloudStorage({
+ token: "/api/openui-cloud/frontend-token",
+ apiBaseUrl: "https://api.thesys.dev",
+ features: { artifact: true },
+ fetch: cloudFetch,
+ });
+
+ useEffect(() => {
+ llm.setSelectedModel(selectedModel);
+ }, [llm, selectedModel]);
+
+ const handleModelChange = useCallback(
+ (model: string) => {
+ llm.setSelectedModel(model);
+ setSelectedModel(model);
+ },
+ [llm],
+ );
+
+ return (
+ <div className="chat-agent-surface" data-chat-mode="cloud">
+ <AgentInterface
+ storage={cloudStorage}
+ llm={llm}
+ componentLibrary={chatLibrary}
+ artifactRenderers={artifactRenderers}
+ artifactCategories={artifactCategories}
+ agentName="OpenUI Cloud"
+ scrollVariant="always"
+ scrollOnLoad={false}
+ theme={{ mode: themeMode }}
+ starterVariant="short"
+ starters={CLOUD_STARTERS}
+ >
+ <AgentInterface.MobileHeader
+ className={styles.cloudMobileHeader}
+ agentName=""
+ actions={
+ <CloudModelSwitcher selectedModel={selectedModel} onModelChange={handleModelChange} />
+ }
+ />
+ <AgentInterface.ThreadHeader className={styles.cloudThreadHeader}>
+ <CloudModelSwitcher selectedModel={selectedModel} onModelChange={handleModelChange} />
+ </AgentInterface.ThreadHeader>
+ <AgentInterface.Welcome
+ title="Build with OpenUI Cloud"
+ description="Create managed generative interfaces, reports, and presentations."
+ />
+ </AgentInterface>
+ </div>
+ );
+}
diff --git a/docs/app/chat/_components/agent-surfaces/cloud-chat-llm.ts b/docs/app/chat/_components/agent-surfaces/cloud-chat-llm.ts
new file mode 100644
index 000000000..490b24f0c
--- /dev/null
+++ b/docs/app/chat/_components/agent-surfaces/cloud-chat-llm.ts
@@ -0,0 +1,33 @@
+import { DEFAULT_MODEL } from "@/lib/openui-cloud/models";
+import {
+ openAIConversationMessageFormat,
+ openAIResponsesAdapter,
+ type ChatLLM,
+} from "@openuidev/react-headless";
+
+interface CloudChatLLM extends ChatLLM {
+ setSelectedModel: (model: string) => void;
+}
+
+export function createCloudChatLLM(): CloudChatLLM {
+ let selectedModel = DEFAULT_MODEL;
+
+ return {
+ setSelectedModel(model) {
+ selectedModel = model;
+ },
+ async send({ threadId, messages, signal }) {
+ return fetch("/api/openui-cloud/chat", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ threadId,
+ input: openAIConversationMessageFormat.toApi(messages.slice(-1)),
+ model: selectedModel,
+ }),
+ signal,
+ });
+ },
+ streamProtocol: openAIResponsesAdapter(),
+ };
+}
diff --git a/docs/app/chat/_components/agent-surfaces/cloud-model-switcher.tsx b/docs/app/chat/_components/agent-surfaces/cloud-model-switcher.tsx
new file mode 100644
index 000000000..a086dacec
--- /dev/null
+++ b/docs/app/chat/_components/agent-surfaces/cloud-model-switcher.tsx
@@ -0,0 +1,73 @@
+"use client";
+
+import { MODEL_OPTIONS, type ModelOption } from "@/lib/openui-cloud/models";
+import {
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+ SelectLabel,
+ SelectTrigger,
+} from "@openuidev/react-ui";
+import { useMemo } from "react";
+import styles from "../../chat-page.module.css";
+
+interface CloudModelSwitcherProps {
+ selectedModel: string;
+ onModelChange: (model: string) => void;
+}
+
+export function CloudModelSwitcher({ selectedModel, onModelChange }: CloudModelSwitcherProps) {
+ const selectedOption =
+ MODEL_OPTIONS.find((model) => model.id === selectedModel) ?? MODEL_OPTIONS[0];
+ const groupedModels = useMemo(() => groupByProvider(MODEL_OPTIONS), []);
+
+ return (
+ <div className={styles.modelSwitcher}>
+ <Select value={selectedModel} onValueChange={onModelChange} size="sm">
+ <SelectTrigger
+ aria-label="Select model"
+ className={styles.modelSwitcherTrigger}
+ title={selectedOption?.id ?? selectedModel}
+ >
+ <span className={styles.modelSwitcherValue}>{selectedOption?.name ?? selectedModel}</span>
+ {selectedOption?.badge ? (
+ <span className={styles.modelBadge}>{selectedOption.badge}</span>
+ ) : null}
+ </SelectTrigger>
+ <SelectContent align="start" className={styles.modelSwitcherContent}>
+ {groupedModels.map(([provider, providerModels]) => (
+ <SelectGroup key={provider}>
+ <SelectLabel>{provider}</SelectLabel>
+ {providerModels.map((model) => (
+ <SelectItem key={model.id} value={model.id}>
+ <span className={styles.modelOption}>
+ <span className={styles.modelOptionHeading}>
+ <span className={styles.modelOptionName}>{model.name}</span>
+ {model.badge ? (
+ <span className={styles.modelBadge}>{model.badge}</span>
+ ) : null}
+ </span>
+ <span className={styles.modelOptionId}>{model.id}</span>
+ </span>
+ </SelectItem>
+ ))}
+ </SelectGroup>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+ );
+}
+
+function groupByProvider(models: readonly ModelOption[]): [string, ModelOption[]][] {
+ const grouped = new Map<string, ModelOption[]>();
+
+ for (const model of models) {
+ const group = grouped.get(model.provider) ?? [];
+ group.push(model);
+ grouped.set(model.provider, group);
+ }
+
+ return [...grouped.entries()];
+}
diff --git a/docs/app/chat/_components/agent-surfaces/cloud-user-id.ts b/docs/app/chat/_components/agent-surfaces/cloud-user-id.ts
new file mode 100644
index 000000000..a0391545a
--- /dev/null
+++ b/docs/app/chat/_components/agent-surfaces/cloud-user-id.ts
@@ -0,0 +1,28 @@
+import { isCloudUserId } from "@/lib/openui-cloud/user-id";
+
+const CLOUD_USER_ID_STORAGE_KEY = "openui-cloud-user-id";
+
+export function getOrCreateCloudUserId(): string {
+ const storedUserId = readStoredUserId();
+ if (isCloudUserId(storedUserId)) return storedUserId;
+
+ const userId = `openui_docs_${crypto.randomUUID()}`;
+ storeUserId(userId);
+ return userId;
+}
+
+function readStoredUserId(): string | null {
+ try {
+ return sessionStorage.getItem(CLOUD_USER_ID_STORAGE_KEY);
+ } catch {
+ return null;
+ }
+}
+
+function storeUserId(userId: string): void {
+ try {
+ sessionStorage.setItem(CLOUD_USER_ID_STORAGE_KEY, userId);
+ } catch {
+ // Continue with the generated ID when browser storage is unavailable.
+ }
+}
diff --git a/docs/app/chat/_components/agent-surfaces/oss-agent-surface.tsx b/docs/app/chat/_components/agent-surfaces/oss-agent-surface.tsx
new file mode 100644
index 000000000..79739b5cd
--- /dev/null
+++ b/docs/app/chat/_components/agent-surfaces/oss-agent-surface.tsx
@@ -0,0 +1,92 @@
+"use client";
+
+import { isDemoCreditsErrorPayload } from "@/lib/demo-credits";
+import {
+ AgentInterface,
+ openAIAdapter,
+ openAIMessageFormat,
+ type ChatLLM,
+} from "@openuidev/react-ui";
+import { openuiChatLibrary } from "@openuidev/react-ui/genui-lib";
+import { useMemo } from "react";
+
+interface OssAgentSurfaceProps {
+ themeMode: "light" | "dark";
+ onCreditsExhausted: () => void;
+}
+
+const OSS_STARTERS = [
+ {
+ displayText: "Revenue dashboard",
+ prompt:
+ "Build a revenue dashboard with a bar chart showing monthly revenue for Q4, key metrics, and a summary table.",
+ },
+ {
+ displayText: "Signup form",
+ prompt:
+ "Create a user registration form with name, email, password, and country fields with validation.",
+ },
+ {
+ displayText: "Compare React vs Vue",
+ prompt:
+ "Show me a comparison of React and Vue frameworks using tabs with pros, cons, and a feature comparison table.",
+ },
+ {
+ displayText: "Travel destinations",
+ prompt:
+ "Show me a carousel of 3 popular travel destinations with images, descriptions, and best time to visit.",
+ },
+];
+
+export function OssAgentSurface({ themeMode, onCreditsExhausted }: OssAgentSurfaceProps) {
+ const llm = useMemo<ChatLLM>(
+ () => ({
+ send: async ({ messages, signal }) => {
+ const response = await fetch("/api/chat", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ messages: openAIMessageFormat.toApi(messages),
+ }),
+ signal,
+ });
+
+ if (!response.ok) {
+ const errorPayload = await response
+ .clone()
+ .json()
+ .catch(() => ({}));
+
+ if (isDemoCreditsErrorPayload((errorPayload as { error?: unknown }).error)) {
+ onCreditsExhausted();
+ return new Response("data: [DONE]\n\n", {
+ headers: { "Content-Type": "text/event-stream" },
+ });
+ }
+ }
+
+ return response;
+ },
+ streamProtocol: openAIAdapter(),
+ }),
+ [onCreditsExhausted],
+ );
+
+ return (
+ <div className="chat-agent-surface" data-chat-mode="oss">
+ <AgentInterface
+ llm={llm}
+ componentLibrary={openuiChatLibrary}
+ agentName="OpenUI OSS"
+ theme={{ mode: themeMode }}
+ starterVariant="short"
+ starters={OSS_STARTERS}
+ >
+ <AgentInterface.Welcome
+ title="Build with OpenUI OSS"
+ description="Generate interactive interfaces with the open-source component library."
+ />
+ </AgentInterface>
+ </div>
+ );
+}
diff --git a/docs/app/chat/_components/chat-page-client.tsx b/docs/app/chat/_components/chat-page-client.tsx
new file mode 100644
index 000000000..34c893045
--- /dev/null
+++ b/docs/app/chat/_components/chat-page-client.tsx
@@ -0,0 +1,106 @@
+"use client";
+
+import { DemoCreditsDialog } from "@/components/DemoCreditsDialog";
+import { OPENUI_CLOUD_UNAVAILABLE_MESSAGE } from "@/lib/openui-cloud/errors";
+import { useTheme } from "next-themes";
+import dynamic from "next/dynamic";
+import { Component, useCallback, useState, type ReactNode } from "react";
+import styles from "../chat-page.module.css";
+import { OssAgentSurface } from "./agent-surfaces/oss-agent-surface";
+import { ChatPageHeader } from "./chat-page-header";
+import type { ChatMode } from "./chat-types";
+
+const CloudAgentSurface = dynamic(
+ () => import("./agent-surfaces/cloud-agent-surface").then((module) => module.CloudAgentSurface),
+ {
+ ssr: false,
+ loading: () => <ChatLoadingState label="Loading OpenUI Cloud…" />,
+ },
+);
+
+interface CloudSurfaceErrorBoundaryProps {
+ children: ReactNode;
+}
+
+class CloudSurfaceErrorBoundary extends Component<
+ CloudSurfaceErrorBoundaryProps,
+ { hasError: boolean }
+> {
+ state = { hasError: false };
+
+ static getDerivedStateFromError() {
+ return { hasError: true };
+ }
+
+ render() {
+ if (this.state.hasError) return <CloudUnavailableState />;
+ return this.props.children;
+ }
+}
+
+export function ChatPageClient() {
+ const { resolvedTheme } = useTheme();
+ const [mode, setMode] = useState<ChatMode>("oss");
+ const [announcement, setAnnouncement] = useState("");
+ const [creditsDialogOpen, setCreditsDialogOpen] = useState(false);
+ const themeMode = resolvedTheme === "dark" ? "dark" : "light";
+
+ const handleCreditsExhausted = useCallback(() => {
+ setCreditsDialogOpen(true);
+ }, []);
+
+ const requestModeChange = useCallback(
+ (nextMode: ChatMode) => {
+ if (nextMode === mode) return;
+
+ setMode(nextMode);
+ setAnnouncement(
+ `${nextMode === "oss" ? "OpenUI OSS" : "OpenUI Cloud"} mode selected. New chat started.`,
+ );
+ },
+ [mode],
+ );
+
+ return (
+ <main className={styles.page}>
+ <h1 className={styles.srOnly}>OpenUI Chat</h1>
+ <ChatPageHeader mode={mode} onModeChange={requestModeChange} />
+
+ <section
+ className={styles.agentViewport}
+ aria-label={`${mode === "oss" ? "OpenUI OSS" : "OpenUI Cloud"} chat`}
+ >
+ {mode === "oss" ? (
+ <OssAgentSurface themeMode={themeMode} onCreditsExhausted={handleCreditsExhausted} />
+ ) : (
+ <CloudSurfaceErrorBoundary>
+ <CloudAgentSurface themeMode={themeMode} />
+ </CloudSurfaceErrorBoundary>
+ )}
+ </section>
+
+ <p className={styles.srOnly} aria-live="polite">
+ {announcement}
+ </p>
+
+ <DemoCreditsDialog open={creditsDialogOpen} onClose={() => setCreditsDialogOpen(false)} />
+ </main>
+ );
+}
+
+function ChatLoadingState({ label }: { label: string }) {
+ return (
+ <div className={styles.centeredState} role="status">
+ <span className={styles.loadingIndicator} aria-hidden="true" />
+ <p>{label}</p>
+ </div>
+ );
+}
+
+function CloudUnavailableState() {
+ return (
+ <div className={styles.centeredState} role="status">
+ <p>{OPENUI_CLOUD_UNAVAILABLE_MESSAGE}</p>
+ </div>
+ );
+}
diff --git a/docs/app/chat/_components/chat-page-header.tsx b/docs/app/chat/_components/chat-page-header.tsx
new file mode 100644
index 000000000..d88193e04
--- /dev/null
+++ b/docs/app/chat/_components/chat-page-header.tsx
@@ -0,0 +1,99 @@
+"use client";
+
+import { copyText } from "@/lib/copy-text";
+import { ToggleGroup } from "@openuidev/react-ui/ToggleGroup";
+import { ToggleItem } from "@openuidev/react-ui/ToggleItem";
+import { ArrowLeft, Check, SquareTerminal } from "lucide-react";
+import Link from "next/link";
+import { useEffect, useRef, useState } from "react";
+import styles from "../chat-page.module.css";
+import type { ChatMode } from "./chat-types";
+
+const CREATE_COMMAND = "npx @openuidev/cli@latest create";
+const COPY_FEEDBACK_MS = 1800;
+
+function StartLocallyButton() {
+ const [copied, setCopied] = useState(false);
+ const resetTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
+
+ useEffect(() => {
+ return () => {
+ if (resetTimeoutRef.current) clearTimeout(resetTimeoutRef.current);
+ };
+ }, []);
+
+ const handleCopy = async () => {
+ if (!(await copyText(CREATE_COMMAND))) return;
+
+ setCopied(true);
+ if (resetTimeoutRef.current) clearTimeout(resetTimeoutRef.current);
+ resetTimeoutRef.current = setTimeout(() => setCopied(false), COPY_FEEDBACK_MS);
+ };
+
+ return (
+ <button
+ type="button"
+ className={styles.startLocallyButton}
+ data-copied={copied}
+ onClick={handleCopy}
+ aria-label={`Copy local setup command: ${CREATE_COMMAND}`}
+ >
+ {copied ? (
+ <Check size={17} strokeWidth={2} aria-hidden="true" />
+ ) : (
+ <SquareTerminal size={17} strokeWidth={1.8} aria-hidden="true" />
+ )}
+ <span className={styles.startLocallyLabelGroup} aria-hidden="true">
+ <span className={`${styles.startLocallyLabel} ${styles.startLocallyDefault}`}>
+ Run on your machine
+ </span>
+ <span className={`${styles.startLocallyLabel} ${styles.startLocallyCommand}`}>
+ {CREATE_COMMAND}
+ </span>
+ <span className={`${styles.startLocallyLabel} ${styles.startLocallyCopied}`}>Copied</span>
+ </span>
+ <span className={styles.srOnly} aria-live="polite">
+ {copied ? "Local setup command copied." : ""}
+ </span>
+ </button>
+ );
+}
+
+interface ChatPageHeaderProps {
+ mode: ChatMode;
+ onModeChange: (mode: ChatMode) => void;
+}
+
+export function ChatPageHeader({ mode, onModeChange }: ChatPageHeaderProps) {
+ return (
+ <header className={styles.header} aria-label="OpenUI chat controls">
+ <div className={styles.headerRow}>
+ <Link className={styles.backLink} href="/" prefetch={false}>
+ <ArrowLeft aria-hidden="true" size={17} />
+ <span>Back to docs</span>
+ </Link>
+
+ <StartLocallyButton />
+
+ <div className={styles.modeControl}>
+ <ToggleGroup
+ type="single"
+ value={mode}
+ aria-label="OpenUI implementation"
+ className={styles.modeGroup}
+ onValueChange={(value) => {
+ if (value === "oss" || value === "cloud") onModeChange(value);
+ }}
+ >
+ <ToggleItem id="chat-mode-oss" value="oss" className={styles.modeItem}>
+ OpenUI OSS
+ </ToggleItem>
+ <ToggleItem id="chat-mode-cloud" value="cloud" className={styles.modeItem}>
+ OpenUI Cloud
+ </ToggleItem>
+ </ToggleGroup>
+ </div>
+ </div>
+ </header>
+ );
+}
diff --git a/docs/app/chat/_components/chat-types.ts b/docs/app/chat/_components/chat-types.ts
new file mode 100644
index 000000000..e459463c8
--- /dev/null
+++ b/docs/app/chat/_components/chat-types.ts
@@ -0,0 +1 @@
+export type ChatMode = "oss" | "cloud";
diff --git a/docs/app/chat/chat-page.module.css b/docs/app/chat/chat-page.module.css
new file mode 100644
index 000000000..eb93f3b09
--- /dev/null
+++ b/docs/app/chat/chat-page.module.css
@@ -0,0 +1,445 @@
+.page {
+ display: flex;
+ width: 100%;
+ height: 100dvh;
+ min-width: 0;
+ flex-direction: column;
+ overflow: hidden;
+ color: var(--openui-text-neutral-primary);
+ background: var(--openui-background);
+}
+
+.header {
+ position: relative;
+ z-index: 5;
+ flex: none;
+ border-bottom: 1px solid var(--openui-border-default);
+ background: var(--openui-foreground);
+ padding: 12px 20px 10px;
+}
+
+.headerRow {
+ display: flex;
+ min-width: 0;
+ align-items: center;
+ gap: 16px;
+}
+
+.backLink {
+ display: inline-flex;
+ min-height: 44px;
+ flex: none;
+ align-items: center;
+ gap: 7px;
+ border-radius: var(--openui-radius-m);
+ color: var(--openui-text-neutral-secondary);
+ font: var(--openui-text-body-sm);
+ text-decoration: none;
+ transition:
+ color 120ms ease,
+ background-color 120ms ease;
+}
+
+.backLink:hover {
+ color: var(--openui-text-neutral-primary);
+}
+
+.backLink:focus-visible {
+ outline: 2px solid var(--openui-border-accent-emphasis);
+ outline-offset: 3px;
+}
+
+.startLocallyButton {
+ display: inline-flex;
+ box-sizing: border-box;
+ inline-size: 18.75rem;
+ height: 2.5rem;
+ min-inline-size: 18.75rem;
+ flex: 0 0 18.75rem;
+ align-items: center;
+ justify-content: center;
+ gap: 0.45rem;
+ padding-inline: 0.875rem;
+ border: 1px solid rgba(255, 255, 255, 0.14);
+ border-radius: 999px;
+ background: #0a0a0a;
+ color: #fff;
+ box-shadow:
+ inset 0 7px 12px -6px rgba(255, 255, 255, 0.16),
+ inset 0 -5px 8px -2px rgba(0, 0, 0, 0.6);
+ font-family: var(--font-geist-mono), monospace;
+ font-size: 0.75rem;
+ font-weight: 500;
+ line-height: 1;
+ white-space: nowrap;
+ cursor: pointer;
+ transition:
+ border-color 160ms ease,
+ background-color 160ms ease,
+ color 160ms ease,
+ box-shadow 160ms ease;
+}
+
+.startLocallyButton:is(:hover, :focus-visible) {
+ border-color: rgba(10, 10, 10, 0.18);
+ background: #fff;
+ color: #0a0a0a;
+ box-shadow:
+ 0 5px 14px rgba(0, 0, 0, 0.14),
+ inset 0 -3px 6px rgba(0, 0, 0, 0.06);
+}
+
+.startLocallyButton:focus-visible {
+ outline: 2px solid var(--openui-text-neutral-primary);
+ outline-offset: 2px;
+}
+
+.startLocallyButton svg {
+ flex-shrink: 0;
+}
+
+.startLocallyLabelGroup {
+ display: grid;
+ min-width: 0;
+ place-items: center;
+}
+
+.startLocallyLabel {
+ grid-area: 1 / 1;
+ transition: opacity 140ms ease;
+}
+
+.startLocallyCommand,
+.startLocallyCopied {
+ opacity: 0;
+}
+
+.startLocallyButton:not([data-copied="true"]):is(:hover, :focus-visible) .startLocallyDefault {
+ opacity: 0;
+}
+
+.startLocallyButton:not([data-copied="true"]):is(:hover, :focus-visible) .startLocallyCommand {
+ opacity: 1;
+}
+
+.startLocallyButton[data-copied="true"] .startLocallyDefault,
+.startLocallyButton[data-copied="true"] .startLocallyCommand {
+ opacity: 0;
+}
+
+.startLocallyButton[data-copied="true"] .startLocallyCopied {
+ opacity: 1;
+}
+
+.modeControl {
+ min-width: 0;
+ margin-left: auto;
+}
+
+.modeGroup {
+ display: inline-flex !important;
+ width: auto !important;
+ min-width: 0;
+ flex-wrap: nowrap !important;
+ gap: 0 !important;
+ border: 1px solid var(--openui-border-default);
+ border-radius: var(--openui-radius-m);
+ background: var(--openui-sunk);
+ padding: 3px;
+}
+
+.modeItem {
+ min-height: 38px !important;
+ border: 0 !important;
+ border-radius: calc(var(--openui-radius-m) - 3px) !important;
+ background: transparent !important;
+ padding: 7px 13px !important;
+ color: var(--openui-text-neutral-secondary) !important;
+ font: var(--openui-text-label-sm) !important;
+ white-space: nowrap;
+}
+
+.modeItem:hover:not(:disabled) {
+ color: var(--openui-text-neutral-primary) !important;
+ background: var(--openui-highlight) !important;
+}
+
+.modeItem[data-state="on"] {
+ color: var(--openui-text-white) !important;
+ background: var(--openui-text-black) !important;
+ box-shadow: var(--openui-shadow-s);
+}
+
+.modeItem:focus-visible {
+ position: relative;
+ z-index: 1;
+ outline: 2px solid var(--openui-border-accent-emphasis);
+ outline-offset: 1px;
+}
+
+.agentViewport {
+ position: relative;
+ display: flex;
+ min-width: 0;
+ min-height: 0;
+ flex: 1;
+ overflow: hidden;
+ background: var(--openui-foreground);
+}
+
+.agentViewport > * {
+ width: 100%;
+ height: 100%;
+ min-width: 0;
+ min-height: 0;
+}
+
+.agentViewport :global(.chat-agent-surface) {
+ width: 100%;
+ height: 100%;
+ min-width: 0;
+ min-height: 0;
+ overflow: hidden;
+}
+
+.agentViewport :global(.openui-agent-container) {
+ width: 100% !important;
+ height: 100% !important;
+}
+
+/* AgentInterface normally swaps a collapsed sidebar logo for this control on
+ hover. The chat surfaces have no logo, so keep the only expand affordance
+ visible at rest. */
+.agentViewport
+ :global(.openui-agent-sidebar-header--collapsed .openui-agent-sidebar-header__toggle-button) {
+ opacity: 1;
+ pointer-events: auto;
+}
+
+.agentViewport :global([data-chat-mode="cloud"] .openui-agent-thread-error) {
+ display: none;
+}
+
+.agentViewport :global(.openui-detailed-view-panel) {
+ display: flex !important;
+ min-height: 0 !important;
+ flex: 1 1 0% !important;
+ flex-direction: column !important;
+}
+
+.agentViewport :global(.openui-detailed-view-panel > .thesys-artifact-standalone) {
+ min-height: 0 !important;
+ flex: 1 1 0% !important;
+}
+
+.centeredState {
+ display: flex;
+ width: 100%;
+ height: 100%;
+ min-height: 220px;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+ color: var(--openui-text-neutral-secondary);
+ background: var(--openui-foreground);
+ font: var(--openui-text-body-default);
+}
+
+.centeredState p {
+ margin: 0;
+}
+
+.loadingIndicator {
+ width: 16px;
+ height: 16px;
+ border: 2px solid var(--openui-border-default);
+ border-top-color: var(--openui-text-neutral-primary);
+ border-radius: 999px;
+ animation: chat-loading-spin 700ms linear infinite;
+}
+
+@keyframes chat-loading-spin {
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+.cloudThreadHeader :global(.openui-agent-thread-header__title) {
+ display: none;
+}
+
+.cloudThreadHeader :global(.openui-agent-thread-header__actions) {
+ min-width: 0;
+ flex: 1 1 auto;
+ justify-content: space-between;
+}
+
+.modelSwitcher {
+ min-width: 0;
+}
+
+.cloudThreadHeader .modelSwitcher {
+ flex: 0 1 auto;
+}
+
+.modelSwitcherTrigger {
+ width: auto !important;
+ min-width: 0 !important;
+ max-width: min(240px, calc(100vw - 32px));
+ height: 32px !important;
+ justify-content: flex-start !important;
+ gap: 6px !important;
+ border: 1px solid var(--openui-border-default) !important;
+ border-radius: var(--openui-radius-m) !important;
+ background: var(--openui-foreground) !important;
+ padding-inline: 10px !important;
+ color: var(--openui-text-neutral-primary) !important;
+ box-shadow: var(--openui-shadow-s);
+ font: var(--openui-text-body-sm) !important;
+}
+
+.modelSwitcherValue {
+ min-width: 0;
+ flex: 0 1 auto;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.modelBadge {
+ display: inline-flex;
+ flex: none;
+ align-items: center;
+ justify-content: center;
+ border-radius: 999px;
+ background: var(--openui-success-background);
+ padding: 3px 7px;
+ color: var(--openui-text-success-primary);
+ font-size: 10px;
+ font-weight: 600;
+ line-height: 1;
+}
+
+.modelSwitcherContent {
+ width: min(360px, calc(100vw - 32px));
+ max-height: 360px;
+ overflow: auto;
+}
+
+.modelOption {
+ display: flex;
+ min-width: 0;
+ flex-direction: column;
+ gap: 2px;
+}
+
+.modelOptionHeading {
+ display: flex;
+ min-width: 0;
+ align-items: center;
+ gap: 6px;
+}
+
+.modelOptionName,
+.modelOptionId {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.modelOptionId {
+ color: var(--openui-text-neutral-tertiary);
+ font-size: 12px;
+}
+
+.cloudMobileHeader :global(.openui-agent-mobile-header-logo-container) {
+ display: none;
+}
+
+.cloudMobileHeader :global(.openui-agent-mobile-header-actions) {
+ min-width: 0;
+ flex: 1 1 auto;
+ justify-content: space-between;
+}
+
+.cloudMobileHeader .modelSwitcher {
+ order: -1;
+ min-width: 0;
+ flex: 0 1 auto;
+}
+
+.cloudMobileHeader .modelSwitcherTrigger {
+ width: min(220px, 100%) !important;
+}
+
+.srOnly {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border: 0;
+}
+
+@media (max-width: 820px) {
+ .startLocallyButton {
+ display: none;
+ }
+}
+
+@media (max-width: 760px) {
+ .header {
+ padding: 8px 12px;
+ }
+
+ .headerRow {
+ flex-wrap: wrap;
+ gap: 6px 12px;
+ }
+
+ .backLink {
+ min-height: 36px;
+ }
+
+ .modeControl {
+ width: 100%;
+ margin-left: 0;
+ }
+
+ .modeGroup {
+ display: flex !important;
+ width: 100% !important;
+ }
+
+ .modeItem {
+ min-width: 0;
+ min-height: 44px !important;
+ flex: 1;
+ justify-content: center;
+ padding-inline: 8px !important;
+ }
+}
+
+@media (max-width: 380px) {
+ .cloudMobileHeader .modelSwitcherTrigger {
+ width: min(190px, 100%) !important;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .startLocallyButton {
+ transition: none;
+ }
+
+ .startLocallyLabel {
+ transition: none;
+ }
+
+ .loadingIndicator {
+ animation: none;
+ }
+}
diff --git a/docs/app/chat/layout.tsx b/docs/app/chat/layout.tsx
new file mode 100644
index 000000000..87e87c6a8
--- /dev/null
+++ b/docs/app/chat/layout.tsx
@@ -0,0 +1,6 @@
+import { WebsiteThemeProvider } from "@/components/website-theme-provider";
+import type { ReactNode } from "react";
+
+export default function ChatLayout({ children }: { children: ReactNode }) {
+ return <WebsiteThemeProvider>{children}</WebsiteThemeProvider>;
+}
diff --git a/docs/app/chat/page.tsx b/docs/app/chat/page.tsx
new file mode 100644
index 000000000..805b6a028
--- /dev/null
+++ b/docs/app/chat/page.tsx
@@ -0,0 +1,14 @@
+import type { Metadata } from "next";
+import { ChatPageClient } from "./_components/chat-page-client";
+
+export const metadata: Metadata = {
+ title: "OpenUI Chat",
+ description: "Try OpenUI OSS and OpenUI Cloud in a live generative UI chat.",
+ alternates: {
+ canonical: "/chat",
+ },
+};
+
+export default function ChatPage() {
+ return <ChatPageClient />;
+}
diff --git a/docs/app/global.css b/docs/app/global.css
index 347cdca1d..ac4955f41 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -4,6 +4,7 @@
@import "fumadocs-ui/css/preset.css";
@import "../shared/design-system/styles/variables/index.css";
@import "@openuidev/react-ui/styles/index.css";
+@import "@openuidev/thesys/styles.css";
body {
--color-fd-background: var(--openui-background);
diff --git a/docs/app/sitemap.ts b/docs/app/sitemap.ts
index 8ab517728..127621a3c 100644
--- a/docs/app/sitemap.ts
+++ b/docs/app/sitemap.ts
@@ -1,6 +1,6 @@
import { BASE_URL, blog, source } from "@/lib/source";
-const STATIC_PATHS = ["/", "/playground", "/blog"];
+const STATIC_PATHS = ["/", "/playground", "/chat", "/blog"];
export default async function sitemap() {
const staticRoutes = STATIC_PATHS.map((path) => ({
diff --git a/docs/components/DemoCreditsDialog.css b/docs/components/DemoCreditsDialog.css
index 4c73e8a53..136abd722 100644
--- a/docs/components/DemoCreditsDialog.css
+++ b/docs/components/DemoCreditsDialog.css
@@ -2,17 +2,19 @@
position: fixed;
inset: 0;
z-index: 1000;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 24px;
background: var(--openui-overlay, rgb(0 0 0 / 40%));
backdrop-filter: blur(4px);
}
.demo-credits-dialog {
- position: relative;
- width: min(520px, 100%);
+ position: fixed;
+ z-index: 1001;
+ top: 50%;
+ left: 50%;
+ width: min(520px, calc(100vw - 48px));
+ max-height: calc(100dvh - 48px);
+ overflow-y: auto;
+ transform: translate(-50%, -50%);
border: 1px solid var(--openui-border-default, rgb(0 0 0 / 12%));
border-radius: 8px;
background: var(--openui-foreground, #fff);
@@ -125,13 +127,13 @@
}
@media (max-width: 540px) {
- .demo-credits-dialog-overlay {
- align-items: flex-end;
- padding: 12px;
- }
-
.demo-credits-dialog {
+ top: auto;
+ bottom: 12px;
+ width: calc(100vw - 24px);
+ max-height: calc(100dvh - 24px);
padding: 20px;
+ transform: translateX(-50%);
}
.demo-credits-dialog-actions {
diff --git a/docs/components/DemoCreditsDialog.tsx b/docs/components/DemoCreditsDialog.tsx
index 1f928df81..66ecf6f2e 100644
--- a/docs/components/DemoCreditsDialog.tsx
+++ b/docs/components/DemoCreditsDialog.tsx
@@ -1,11 +1,8 @@
"use client";
+import { DEMO_CREDITS_EXHAUSTED_MESSAGE, DEMO_CREDITS_LOCAL_COMMANDS } from "@/lib/demo-credits";
+import * as Dialog from "@radix-ui/react-dialog";
import { Download, X } from "lucide-react";
-import { useCallback, useEffect, useRef } from "react";
-import {
- DEMO_CREDITS_EXHAUSTED_MESSAGE,
- DEMO_CREDITS_LOCAL_COMMANDS,
-} from "@/lib/demo-credits";
import "./DemoCreditsDialog.css";
type DemoCreditsDialogProps = {
@@ -14,69 +11,53 @@ type DemoCreditsDialogProps = {
};
export function DemoCreditsDialog({ open, onClose }: DemoCreditsDialogProps) {
- const closeButtonRef = useRef<HTMLButtonElement>(null);
-
- const handleKeyDown = useCallback(
- (event: KeyboardEvent) => {
- if (event.key === "Escape") onClose();
- },
- [onClose],
- );
-
- useEffect(() => {
- if (!open) return;
-
- closeButtonRef.current?.focus();
- document.addEventListener("keydown", handleKeyDown);
- return () => document.removeEventListener("keydown", handleKeyDown);
- }, [handleKeyDown, open]);
-
- if (!open) return null;
-
return (
- <div className="demo-credits-dialog-overlay" onClick={onClose}>
- <section
- className="demo-credits-dialog"
- role="dialog"
- aria-modal="true"
- aria-labelledby="demo-credits-dialog-title"
- onClick={(event) => event.stopPropagation()}
- >
- <button
- ref={closeButtonRef}
- className="demo-credits-dialog-close"
- onClick={onClose}
- aria-label="Close dialog"
- >
- <X size={16} />
- </button>
-
- <div className="demo-credits-dialog-icon">
- <Download size={18} />
- </div>
-
- <h2 id="demo-credits-dialog-title">Hosted demo credits are recharging</h2>
- <p>{DEMO_CREDITS_EXHAUSTED_MESSAGE}</p>
-
- <pre className="demo-credits-dialog-commands">
- <code>{DEMO_CREDITS_LOCAL_COMMANDS.join("\n")}</code>
- </pre>
-
- <div className="demo-credits-dialog-actions">
- <a
- className="demo-credits-dialog-primary"
- href="https://github.com/thesysdev/openui"
- target="_blank"
- rel="noreferrer"
- >
- <Download size={14} />
- Download repo
- </a>
- <button className="demo-credits-dialog-secondary" onClick={onClose}>
- Close
- </button>
- </div>
- </section>
- </div>
+ <Dialog.Root
+ open={open}
+ onOpenChange={(nextOpen) => {
+ if (!nextOpen) onClose();
+ }}
+ >
+ <Dialog.Portal>
+ <Dialog.Overlay className="demo-credits-dialog-overlay" />
+ <Dialog.Content className="demo-credits-dialog">
+ <Dialog.Close asChild>
+ <button className="demo-credits-dialog-close" aria-label="Close dialog">
+ <X size={16} />
+ </button>
+ </Dialog.Close>
+
+ <div className="demo-credits-dialog-icon">
+ <Download size={18} />
+ </div>
+
+ <Dialog.Title asChild>
+ <h2>Hosted demo credits are recharging</h2>
+ </Dialog.Title>
+ <Dialog.Description asChild>
+ <p>{DEMO_CREDITS_EXHAUSTED_MESSAGE}</p>
+ </Dialog.Description>
+
+ <pre className="demo-credits-dialog-commands">
+ <code>{DEMO_CREDITS_LOCAL_COMMANDS.join("\n")}</code>
+ </pre>
+
+ <div className="demo-credits-dialog-actions">
+ <a
+ className="demo-credits-dialog-primary"
+ href="https://github.com/thesysdev/openui"
+ target="_blank"
+ rel="noreferrer"
+ >
+ <Download size={14} />
+ Download repo
+ </a>
+ <Dialog.Close asChild>
+ <button className="demo-credits-dialog-secondary">Close</button>
+ </Dialog.Close>
+ </div>
+ </Dialog.Content>
+ </Dialog.Portal>
+ </Dialog.Root>
);
}
diff --git a/docs/components/overview-components/chat-modal.css b/docs/components/overview-components/chat-modal.css
deleted file mode 100644
index 5fbd3cbbe..000000000
--- a/docs/components/overview-components/chat-modal.css
+++ /dev/null
@@ -1,105 +0,0 @@
-.chat-modal-overlay {
- position: fixed;
- inset: 0;
- z-index: 200;
- background: rgba(0, 0, 0, 0.5);
- backdrop-filter: blur(4px);
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 24px;
- animation: chat-modal-overlay-in 0.15s ease;
-}
-
-@keyframes chat-modal-overlay-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-.chat-modal-container {
- position: relative;
- width: min(1400px, 95vw);
- height: 90vh;
- border-radius: 16px;
- overflow: hidden;
- box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
- animation: chat-modal-in 0.2s ease;
-}
-
-@keyframes chat-modal-in {
- from {
- opacity: 0;
- transform: translateY(12px) scale(0.98);
- }
- to {
- opacity: 1;
- transform: translateY(0) scale(1);
- }
-}
-
-.chat-modal-close {
- position: absolute;
- top: 12px;
- right: 12px;
- z-index: 210;
- background: rgba(128, 128, 128, 0.2);
- backdrop-filter: blur(8px);
- border: none;
- border-radius: 50%;
- width: 36px;
- height: 36px;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- color: inherit;
- transition: background 0.15s;
-}
-
-.chat-modal-close:hover {
- background: rgba(128, 128, 128, 0.4);
-}
-
-.chat-modal-body {
- width: 100%;
- height: 100%;
-}
-
-/* Override AgentInterface container sizing to fit within the modal */
-.chat-modal-body .openui-agent-container {
- height: 100% !important;
- width: 100% !important;
-}
-
-/* Hide the sidebar in the modal */
-.chat-modal-body .openui-agent-sidebar-container {
- display: none !important;
-}
-
-/* ─── Mobile ─────────────────────────────────────────────────────────────────── */
-@media (max-width: 768px) {
- .chat-modal-overlay {
- padding: 0;
- align-items: flex-end;
- }
-
- .chat-modal-container {
- width: 100vw;
- height: 95dvh;
- border-radius: 16px 16px 0 0;
- animation: chat-modal-mobile-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
- }
-}
-
-@keyframes chat-modal-mobile-in {
- from {
- transform: translateY(100%);
- }
- to {
- transform: translateY(0);
- }
-}
diff --git a/docs/components/overview-components/chat-modal.tsx b/docs/components/overview-components/chat-modal.tsx
deleted file mode 100644
index f45cffbfb..000000000
--- a/docs/components/overview-components/chat-modal.tsx
+++ /dev/null
@@ -1,129 +0,0 @@
-"use client";
-
-// NOTE: do not import react-ui CSS here. It is loaded once, app-wide, via
-// docs/app/global.css. A second react-ui CSS import makes the bundler hoist a
-// statement-less `@layer openui` chunk that loads BEFORE global.css's `@layer`
-// order declaration, which breaks the cascade order (Tailwind preflight wins).
-import "./chat-modal.css";
-
-import { DemoCreditsDialog } from "@/components/DemoCreditsDialog";
-import { isDemoCreditsErrorPayload } from "@/lib/demo-credits";
-import {
- AgentInterface,
- openAIAdapter,
- openAIMessageFormat,
- type ChatLLM,
-} from "@openuidev/react-ui";
-import { openuiChatLibrary } from "@openuidev/react-ui/genui-lib";
-import { X } from "lucide-react";
-import { useTheme } from "next-themes";
-import { useCallback, useEffect, useMemo, useState } from "react";
-import { createPortal } from "react-dom";
-
-interface ChatModalProps {
- onClose: () => void;
-}
-
-export function ChatModal({ onClose }: ChatModalProps) {
- const { resolvedTheme } = useTheme();
- const [showOverviewCreditsDialog, setShowOverviewCreditsDialog] = useState(false);
-
- const handleKey = useCallback(
- (e: KeyboardEvent) => {
- if (e.key === "Escape") onClose();
- },
- [onClose],
- );
-
- useEffect(() => {
- document.addEventListener("keydown", handleKey);
- document.body.style.overflow = "hidden";
- return () => {
- document.removeEventListener("keydown", handleKey);
- document.body.style.overflow = "";
- };
- }, [handleKey]);
-
- // The backend call — including the demo-credits error handling — is unchanged;
- // only the chat surface moved from FullScreen to AgentInterface. AgentInterface
- // uses its built-in in-memory thread storage (wiped on reload).
- const llm = useMemo<ChatLLM>(
- () => ({
- send: async ({ messages, signal }) => {
- const response = await fetch("/api/chat", {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify({
- messages: openAIMessageFormat.toApi(messages),
- }),
- signal,
- });
-
- if (!response.ok) {
- const err = await response
- .clone()
- .json()
- .catch(() => ({}));
- if (isDemoCreditsErrorPayload((err as { error?: unknown }).error)) {
- setShowOverviewCreditsDialog(true);
- return new Response("data: [DONE]\n\n", {
- headers: { "Content-Type": "text/event-stream" },
- });
- }
- }
-
- return response;
- },
- streamProtocol: openAIAdapter(),
- }),
- [],
- );
-
- return createPortal(
- <div className="chat-modal-overlay" onClick={onClose}>
- <div className="chat-modal-container" onClick={(e) => e.stopPropagation()}>
- <button className="chat-modal-close" onClick={onClose} aria-label="Close chat">
- <X size={20} />
- </button>
- <div className="chat-modal-body">
- <AgentInterface
- llm={llm}
- componentLibrary={openuiChatLibrary}
- agentName="OpenUI Chat"
- theme={{ mode: (resolvedTheme as "light" | "dark") ?? "light" }}
- starterVariant="short"
- starters={[
- {
- displayText: "Revenue dashboard",
- prompt:
- "Build a revenue dashboard with a bar chart showing monthly revenue for Q4, key metrics, and a summary table.",
- },
- {
- displayText: "Signup form",
- prompt:
- "Create a user registration form with name, email, password, and country fields with validation.",
- },
- {
- displayText: "Compare React vs Vue",
- prompt:
- "Show me a comparison of React and Vue frameworks using tabs with pros, cons, and a feature comparison table.",
- },
- {
- displayText: "Travel destinations",
- prompt:
- "Show me a carousel of 3 popular travel destinations with images, descriptions, and best time to visit.",
- },
- ]}
- >
- <AgentInterface.Welcome title="Hello, how can I help you today?" />
- </AgentInterface>
- </div>
- <DemoCreditsDialog
- open={showOverviewCreditsDialog}
- onClose={() => setShowOverviewCreditsDialog(false)}
- />
- </div>
- </div>,
- document.body,
- );
-}
diff --git a/docs/components/overview-components/overview-page.tsx b/docs/components/overview-components/overview-page.tsx
index ebae10889..1908cdb90 100644
--- a/docs/components/overview-components/overview-page.tsx
+++ b/docs/components/overview-components/overview-page.tsx
@@ -13,13 +13,10 @@ import {
TabsTrigger,
} from "@/components/overview-components";
import { ArrowUpRight, Code2, MessageSquare, Package } from "lucide-react";
-import { useState } from "react";
-import { ChatModal } from "./chat-modal";
+import Link from "next/link";
import { genuiOutput } from "./genui";
export function OverviewPage() {
- const [isChatModalOpen, setIsChatModalOpen] = useState(false);
-
return (
<div className="mx-auto max-w-4xl px-3 py-8 font-sans text-slate-900 sm:px-4 sm:py-12 lg:px-8 dark:text-slate-100">
{/* Introduction */}
@@ -222,17 +219,15 @@ export function AssistantMessage({ content, isStreaming }) {
</FeatureCards>
{/* Interactive Demo */}
- <div
- className="group mb-6 cursor-pointer overflow-hidden rounded-xl border-2 border-slate-200 transition-all hover:border-blue-400 hover:shadow-lg dark:border-slate-700 dark:hover:border-blue-500"
- onClick={() => setIsChatModalOpen(true)}
- role="button"
- tabIndex={0}
- onKeyDown={(e) => e.key === "Enter" && setIsChatModalOpen(true)}
+ <Link
+ href="/chat"
+ prefetch={false}
+ className="group mb-6 block cursor-pointer overflow-hidden rounded-xl border-2 border-slate-200 no-underline transition-all hover:border-blue-400 hover:shadow-lg focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 dark:border-slate-700 dark:hover:border-blue-500"
>
<div className="relative">
<img
src="/images/openui-lang/compare.png"
- alt="OpenUI Chat Demo - Click to try it live"
+ alt="Preview of the OpenUI Chat live demo"
className="w-full"
/>
<div className="absolute inset-0 bg-black/0 transition-all group-hover:bg-black/5" />
@@ -246,9 +241,7 @@ export function AssistantMessage({ content, isStreaming }) {
</div>
<ArrowUpRight className="mt-1 size-5 shrink-0 text-slate-400 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5 dark:text-slate-500" />
</div>
- </div>
-
- {isChatModalOpen && <ChatModal onClose={() => setIsChatModalOpen(false)} />}
+ </Link>
<div className="mb-6">
<CodeBlock
diff --git a/docs/components/site-primary-nav.tsx b/docs/components/site-primary-nav.tsx
index 51c722e9c..440bdfd7f 100644
--- a/docs/components/site-primary-nav.tsx
+++ b/docs/components/site-primary-nav.tsx
@@ -36,6 +36,11 @@ export const PRIMARY_SITE_NAV_ITEMS: NavItem[] = [
description: "Compare OpenUI Lang with raw code and JSON.",
href: "/playground",
},
+ {
+ title: "OpenUI Chat",
+ description: "Try OpenUI OSS and Cloud in a live chat.",
+ href: "/chat",
+ },
{
title: "Dashboard Demo",
description: "Testdrive a dashboard building experience.",
diff --git a/docs/content/docs/openui-lang/components/try-it-out.tsx b/docs/content/docs/openui-lang/components/try-it-out.tsx
index 545fc3aff..a3763c348 100644
--- a/docs/content/docs/openui-lang/components/try-it-out.tsx
+++ b/docs/content/docs/openui-lang/components/try-it-out.tsx
@@ -1,24 +1,18 @@
-"use client";
-import { ChatModal } from "@/components/overview-components/chat-modal";
import { ArrowUpRight } from "lucide-react";
import Image from "next/image";
-import { useState } from "react";
+import Link from "next/link";
export const TryItOut = () => {
- const [isChatModalOpen, setIsChatModalOpen] = useState(false);
-
return (
- <div
- className="group mb-6 cursor-pointer overflow-hidden rounded-xl border-2 border-slate-200 transition-all hover:border-blue-400 hover:shadow-lg dark:border-slate-700 dark:hover:border-blue-500"
- onClick={() => setIsChatModalOpen(true)}
- role="button"
- tabIndex={0}
- onKeyDown={(e) => e.key === "Enter" && setIsChatModalOpen(true)}
+ <Link
+ href="/chat"
+ prefetch={false}
+ className="group mb-6 block cursor-pointer overflow-hidden rounded-xl border-2 border-slate-200 no-underline transition-all hover:border-blue-400 hover:shadow-lg focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 dark:border-slate-700 dark:hover:border-blue-500"
>
<div className="relative">
<Image
src="/images/openui-lang/compare.png"
- alt="OpenUI Chat Demo - Click to try it live"
+ alt="Preview of the OpenUI Chat live demo"
width={1200}
height={675}
className="w-full m-0!"
@@ -34,7 +28,6 @@ export const TryItOut = () => {
</div>
<ArrowUpRight className="mt-1 size-5 shrink-0 text-slate-400 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5 dark:text-slate-500" />
</div>
- {isChatModalOpen && <ChatModal onClose={() => setIsChatModalOpen(false)} />}
- </div>
+ </Link>
);
};
diff --git a/docs/lib/copy-text.ts b/docs/lib/copy-text.ts
new file mode 100644
index 000000000..6deabbbd6
--- /dev/null
+++ b/docs/lib/copy-text.ts
@@ -0,0 +1,30 @@
+export async function copyText(text: string): Promise<boolean> {
+ if (typeof navigator !== "undefined" && navigator.clipboard?.writeText) {
+ try {
+ await navigator.clipboard.writeText(text);
+ return true;
+ } catch {
+ // fall through to execCommand fallback
+ }
+ }
+
+ if (typeof document === "undefined") return false;
+
+ try {
+ const textarea = document.createElement("textarea");
+ textarea.value = text;
+ textarea.setAttribute("readonly", "");
+ textarea.style.position = "fixed";
+ textarea.style.top = "0";
+ textarea.style.left = "0";
+ textarea.style.opacity = "0";
+ textarea.style.pointerEvents = "none";
+ document.body.appendChild(textarea);
+ textarea.select();
+ const ok = document.execCommand("copy");
+ document.body.removeChild(textarea);
+ return ok;
+ } catch {
+ return false;
+ }
+}
diff --git a/docs/lib/openui-cloud/cloud-api.ts b/docs/lib/openui-cloud/cloud-api.ts
new file mode 100644
index 000000000..699ab3e0a
--- /dev/null
+++ b/docs/lib/openui-cloud/cloud-api.ts
@@ -0,0 +1,41 @@
+import type { OpenuiCloudConfig } from "./config";
+
+interface FrontendToken {
+ token: string;
+ expiresAt: number;
+}
+
+export class OpenuiCloudUpstreamError extends Error {
+ constructor() {
+ super("OpenUI Cloud upstream request failed");
+ this.name = "OpenuiCloudUpstreamError";
+ }
+}
+
+export async function mintFrontendToken(
+ config: OpenuiCloudConfig,
+ userId: string,
+ signal: AbortSignal,
+): Promise<FrontendToken> {
+ const response = await fetch(`${config.apiOrigin}/v1/frontend-tokens`, {
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${config.apiKey}`,
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({ user_id: userId }),
+ cache: "no-store",
+ signal,
+ });
+
+ if (!response.ok) throw new OpenuiCloudUpstreamError();
+
+ let payload: { token: string; expires_at: number };
+ try {
+ payload = (await response.json()) as { token: string; expires_at: number };
+ } catch {
+ throw new OpenuiCloudUpstreamError();
+ }
+
+ return { token: payload.token, expiresAt: payload.expires_at };
+}
diff --git a/docs/lib/openui-cloud/config.ts b/docs/lib/openui-cloud/config.ts
new file mode 100644
index 000000000..b5dec15cf
--- /dev/null
+++ b/docs/lib/openui-cloud/config.ts
@@ -0,0 +1,19 @@
+const CLOUD_API_ORIGIN = "https://api.thesys.dev";
+
+export interface OpenuiCloudConfig {
+ apiKey: string;
+ apiOrigin: string;
+}
+
+/** Read Cloud configuration at request time so OSS-only builds do not require Cloud secrets. */
+export function readOpenuiCloudConfig(): OpenuiCloudConfig | null {
+ if (process.env.OPENUI_CLOUD_DEMO_ENABLED !== "true") return null;
+
+ const apiKey = process.env.THESYS_API_KEY?.trim();
+ if (!apiKey) return null;
+
+ return {
+ apiKey,
+ apiOrigin: CLOUD_API_ORIGIN,
+ };
+}
diff --git a/docs/lib/openui-cloud/errors.ts b/docs/lib/openui-cloud/errors.ts
new file mode 100644
index 000000000..4e8bcf91b
--- /dev/null
+++ b/docs/lib/openui-cloud/errors.ts
@@ -0,0 +1,14 @@
+export const OPENUI_CLOUD_UNAVAILABLE_MESSAGE = "OpenUI Cloud is unavailable.";
+
+export function unavailableResponse(status = 503, headers?: HeadersInit): Response {
+ return Response.json(
+ { error: { message: OPENUI_CLOUD_UNAVAILABLE_MESSAGE } },
+ {
+ status,
+ headers: {
+ "Cache-Control": "no-store",
+ ...headers,
+ },
+ },
+ );
+}
diff --git a/docs/lib/openui-cloud/models.ts b/docs/lib/openui-cloud/models.ts
new file mode 100644
index 000000000..3e7fff3d2
--- /dev/null
+++ b/docs/lib/openui-cloud/models.ts
@@ -0,0 +1,43 @@
+export const DEFAULT_MODEL = "google/gemini-3.1-pro-free";
+
+export interface ModelOption {
+ id: string;
+ name: string;
+ provider: "Anthropic" | "Google" | "OpenAI";
+ badge?: string;
+}
+
+export const MODEL_OPTIONS: readonly 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.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: "OpenAI", id: "openai/gpt-5.1", name: "GPT-5.1" },
+ { provider: "OpenAI", id: "openai/gpt-5", name: "GPT-5" },
+ { 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-7", name: "Claude Opus 4.7" },
+];
+
+const MODEL_IDS = new Set(MODEL_OPTIONS.map((model) => model.id));
+
+export function resolveRequestedModel(requestedModel: unknown): string | null {
+ const fallback = process.env.OPENUI_MODEL?.trim() || DEFAULT_MODEL;
+ const model = requestedModel === undefined ? fallback : requestedModel;
+ return typeof model === "string" && MODEL_IDS.has(model) ? model : null;
+}
diff --git a/docs/lib/openui-cloud/request.ts b/docs/lib/openui-cloud/request.ts
new file mode 100644
index 000000000..9bc48bde2
--- /dev/null
+++ b/docs/lib/openui-cloud/request.ts
@@ -0,0 +1,120 @@
+const DEFAULT_MAX_BODY_BYTES = 256 * 1024;
+
+export class InvalidCloudRequestError extends Error {
+ constructor() {
+ super("Invalid OpenUI Cloud request");
+ this.name = "InvalidCloudRequestError";
+ }
+}
+
+export function hasAllowedOrigin(request: Request): boolean {
+ const origin = request.headers.get("origin");
+ if (!origin || origin === "null") return false;
+
+ let normalizedOrigin: string;
+ try {
+ normalizedOrigin = new URL(origin).origin;
+ } catch {
+ return false;
+ }
+
+ if (normalizedOrigin !== origin) return false;
+
+ const allowedOrigins = new Set([new URL(request.url).origin]);
+ for (const configuredOrigin of (process.env.OPENUI_CLOUD_ALLOWED_ORIGINS ?? "").split(",")) {
+ const candidate = configuredOrigin.trim();
+ if (!candidate) continue;
+ try {
+ allowedOrigins.add(new URL(candidate).origin);
+ } catch {
+ // A malformed allowlist entry is ignored rather than broadening access.
+ }
+ }
+
+ return allowedOrigins.has(normalizedOrigin);
+}
+
+export function hasJsonContentType(request: Request): boolean {
+ const contentType = request.headers.get("content-type");
+ if (!contentType) return false;
+ return contentType.split(";", 1)[0]?.trim().toLowerCase() === "application/json";
+}
+
+/** The frontend-token endpoint is bodyless in the maintained Cloud client. */
+export async function hasValidEmptyBody(request: Request): Promise<boolean> {
+ const contentLength = request.headers.get("content-length");
+ if (contentLength && contentLength !== "0") return false;
+
+ const contentType = request.headers.get("content-type");
+ if (contentType !== null && !hasJsonContentType(request)) return false;
+ if (request.body === null) return true;
+
+ // Next's Node adapter exposes an empty stream for bodyless non-GET/HEAD requests.
+ const reader = request.body.getReader();
+ try {
+ while (true) {
+ const { done, value } = await reader.read();
+ if (done) return true;
+ if (value.byteLength === 0) continue;
+
+ await reader.cancel().catch(() => undefined);
+ return false;
+ }
+ } catch {
+ return false;
+ } finally {
+ reader.releaseLock();
+ }
+}
+
+export async function readLimitedJson(
+ request: Request,
+ maxBytes = DEFAULT_MAX_BODY_BYTES,
+): Promise<unknown> {
+ const declaredLength = request.headers.get("content-length");
+ if (declaredLength !== null) {
+ const length = Number(declaredLength);
+ if (!Number.isSafeInteger(length) || length < 0 || length > maxBytes) {
+ throw new InvalidCloudRequestError();
+ }
+ }
+
+ if (!request.body) throw new InvalidCloudRequestError();
+
+ const reader = request.body.getReader();
+ const chunks: Uint8Array[] = [];
+ let totalBytes = 0;
+
+ try {
+ while (true) {
+ const { done, value } = await reader.read();
+ if (done) break;
+
+ totalBytes += value.byteLength;
+ if (totalBytes > maxBytes) {
+ await reader.cancel().catch(() => undefined);
+ throw new InvalidCloudRequestError();
+ }
+ chunks.push(value);
+ }
+ } catch (error) {
+ if (error instanceof InvalidCloudRequestError) throw error;
+ throw new InvalidCloudRequestError();
+ } finally {
+ reader.releaseLock();
+ }
+
+ const bytes = new Uint8Array(totalBytes);
+ let offset = 0;
+ for (const chunk of chunks) {
+ bytes.set(chunk, offset);
+ offset += chunk.byteLength;
+ }
+
+ try {
+ const text = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
+ return JSON.parse(text) as unknown;
+ } catch {
+ throw new InvalidCloudRequestError();
+ }
+}
diff --git a/docs/lib/openui-cloud/user-id.ts b/docs/lib/openui-cloud/user-id.ts
new file mode 100644
index 000000000..b35f50e61
--- /dev/null
+++ b/docs/lib/openui-cloud/user-id.ts
@@ -0,0 +1,14 @@
+export const CLOUD_USER_ID_HEADER = "x-openui-cloud-user-id";
+
+const CLOUD_USER_ID_PATTERN =
+ /^openui_docs_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
+
+export function isCloudUserId(value: string | null): value is string {
+ return value !== null && CLOUD_USER_ID_PATTERN.test(value);
+}
+
+/** Read the anonymous Cloud user ID generated and retained by the browser session. */
+export function readCloudUserId(request: Request): string | null {
+ const userId = request.headers.get(CLOUD_USER_ID_HEADER);
+ return isCloudUserId(userId) ? userId : null;
+}
diff --git a/docs/package.json b/docs/package.json
index d140447fb..581d573bd 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -20,7 +20,11 @@
"@openuidev/react-headless": "workspace:^",
"@openuidev/react-lang": "workspace:^",
"@openuidev/react-ui": "workspace:^",
+ "@openuidev/thesys": "0.2.1",
+ "@openuidev/thesys-server": "0.1.1",
"@phosphor-icons/react": "^2.1.10",
+ "@radix-ui/react-dialog": "1.1.15",
+ "@radix-ui/react-tooltip": "1.2.7",
"@takumi-rs/image-response": "^0.68.17",
"fumadocs-core": "16.9.1",
"fumadocs-mdx": "14.3.2",
@@ -37,7 +41,8 @@
"react": "^19.2.4",
"react-dom": "^19.2.4",
"tailwind-merge": "^3.4.1",
- "zod": "^4.3.6"
+ "zod": "^4.3.6",
+ "zustand": "4.5.7"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.18",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b51cbc546..914e86164 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -141,9 +141,21 @@ importers:
'@openuidev/react-ui':
specifier: workspace:^
version: link:../packages/react-ui
+ '@openuidev/thesys':
+ specifier: 0.2.1
+ version: 0.2.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])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))
+ '@openuidev/thesys-server':
+ specifier: 0.1.1
+ version: 0.1.1
'@phosphor-icons/react':
specifier: ^2.1.10
+ '@radix-ui/react-dialog':
+ specifier: 1.1.15
+ '@radix-ui/react-tooltip':
+ specifier: 1.2.7
'@takumi-rs/image-response':
specifier: ^0.68.17
version: 0.68.17
@@ -195,6 +207,9 @@ importers:
zod:
specifier: ^4.3.6
version: 4.3.6
+ zustand:
+ specifier: 4.5.7
+ version: 4.5.7(@types/[email protected])([email protected])
devDependencies:
'@tailwindcss/postcss':
specifier: ^4.1.18
@@ -454,7 +469,7 @@ importers:
version: link:../../../packages/react-ui
next:
specifier: 16.1.6
react:
specifier: 19.2.3
version: 19.2.3
@@ -896,7 +911,7 @@ importers:
version: link:../../packages/react-ui
'@openuidev/thesys':
specifier: latest
- version: 0.2.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])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))
+ version: 0.2.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])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))
'@openuidev/thesys-server':
specifier: latest
version: 0.1.1
@@ -905,7 +920,7 @@ importers:
'@radix-ui/react-tooltip':
specifier: ^1.2.0
'@tanstack/react-table':
specifier: 8.21.3
@@ -2372,41 +2387,41 @@ packages:
resolution: {integrity: sha512-iY8yvjE0y651BixKNPgmv1WrQc+GZ142sb0z4gYnChDDY2YqI4P/jsSopBWrKfAt7LOJAkOXt7rC/hms+WclQQ==}
engines: {node: '>=18.0.0'}
- '@azure-rest/[email protected]':
- resolution: {integrity: sha512-rL0lJqh1E8HLXNgjIw8cRyGAV/v+m6p1xRu/8OhsnmN8XHhwkyYJkAoGM+zrew96v7jZYPmVfy7pv7v4Iccfsg==}
- engines: {node: '>=20.0.0'}
+ '@azure-rest/[email protected]':
+ resolution: {integrity: sha512-F1ybHeN+++QhyFCF/ehLUEvrOB6fehPdFBFtGdj0C3B2lpQ9zkPiO5JDgsqc6IfjuUe6b3dAbXK0a7+VgSGfhw==}
+ engines: {node: '>=22.0.0'}
- '@azure/[email protected]':
- resolution: {integrity: sha512-nBrLsEWm4J2u5LpAPjxADTlq3trDgVZZXHNKabeXZtpq3d3AbN/KGO82R87rdDz5/lYB024rtEf10/q0urNgsA==}
- engines: {node: '>=18.0.0'}
+ '@azure/[email protected]':
+ resolution: {integrity: sha512-fNAjWnA/nZ2jz31kxR/AqRaUT8ewHBw/WuBIosK0moMy1C9e5ValbDfFdIxJzVOOYaYkV/b2F1S4H/aHiqfVQg==}
+ engines: {node: '>=22.0.0'}
- '@azure/[email protected]':
- resolution: {integrity: sha512-ykRMW8PjVAn+RS6ww5cmK9U2CyH9p4Q88YJwvUslfuMmN98w/2rdGRLPqJYObapBCdzBVeDgYWdJnFPFb7qzpg==}
- engines: {node: '>=20.0.0'}
+ '@azure/[email protected]':
+ resolution: {integrity: sha512-IUZydyTUkDnYdstOW9pFOOUQlBjAepK5teihDE3x6yxsPJs/hsAaaYpeGxdxrgtOiJbBKSjKW7MDk7AEhb4LRg==}
+ engines: {node: '>=22.0.0'}
- '@azure/[email protected]':
- resolution: {integrity: sha512-1D2LpsU7y9xrqKjdIbsB7PlrRePw0xsVV8p+AKTlzITrWmscajryfJCdDJB/oGwvDI5HmRo04eMMADB67uwAwQ==}
- engines: {node: '>=20.0.0'}
+ '@azure/[email protected]':
+ resolution: {integrity: sha512-JjQWO6akOck45PH/XBrxzsQGAiKrfFl4m5iggJ0ItMIz5omRufOXWpqCPpdjKN3vKDzlSUvFjaMb7Zwf0gvAdA==}
+ engines: {node: '>=22.0.0'}
resolution: {integrity: sha512-0YIpccoX8m/k00O7mDDMdJpbr6mf1yWo2dfmxt5A8XVZVVMz2SSKaEbMCeJRvgQ0IaSlqhjT47p4hVIRRy90xw==}
engines: {node: '>=18.0.0'}
- '@azure/[email protected]':
- resolution: {integrity: sha512-YKWi9YuCU04B55h25cnOYZHxXYtEvQEbKST5vqRga7hWY9ydd3FZHdeQF8pyh+acWZvppw13M/LMGx0LABUVMA==}
- engines: {node: '>=18.0.0'}
+ '@azure/[email protected]':
+ resolution: {integrity: sha512-7GEAoIsaoBr6KELNRb8nypowCqvk8dnCHFCYg4XD4lOQGY2GqjQg5IhkRjyBFRO18CGSMq05PaNqSOE9GQro3g==}
+ engines: {node: '>=22.0.0'}
- '@azure/[email protected]':
- resolution: {integrity: sha512-PpLsoDQ3AMmKZ0VU+0GrmqMxgp/sExjlVm4R+nLWngeoEGAzOIPVifaxKGU5gMv+nWELUoHfvrolWD+ZS/nFJg==}
- engines: {node: '>=20.0.0'}
+ '@azure/[email protected]':
+ resolution: {integrity: sha512-bMs8ekJLjX8wPV+9IPBges1SLPyuDtE9g5gLDWOpxzKcoOFQnpLGkbcT1tdw3FaAmDS1gnPmMmJ6y/T5B96kIA==}
+ engines: {node: '>=22.0.0'}
- '@azure/[email protected]':
- resolution: {integrity: sha512-9MWKevR7Hz8kNzzPLfX4EAtGM2b8mr50HPDBvio96bURP/9C+HjdH3sBlLSNNrvRAr5/k/svoH457gB5IKpmwQ==}
- engines: {node: '>=20.0.0'}
+ '@azure/[email protected]':
+ resolution: {integrity: sha512-eGwxD0AtncrxeBM4tG8R55Pc3rdX1hNW2WibJAgYpCVA6E93mvvVH+LcssoVjOBrSKWS55yEIHsk0X8ctHmfOQ==}
+ engines: {node: '>=22.0.0'}
- '@azure/[email protected]':
- resolution: {integrity: sha512-XPArKLzsvl0Hf0CaGyKHUyVgF7oDnhKoP85Xv6M4StF/1AhfORhZudHtOyf2s+FcbuQ9dPRAjB8J2KvRRMUK2A==}
- engines: {node: '>=20.0.0'}
+ '@azure/[email protected]':
+ resolution: {integrity: sha512-9n2pWK61veAuN0V20t9lOuoV4CFMdyAZ1ygZzvBGk/pBBJRib/PjL9PLXa/aI2CcPpyHfqVsxxqLCYl6uZlfDw==}
+ engines: {node: '>=22.0.0'}
resolution: {integrity: sha512-5C/2WD5Vb1lHnZS16dNQRPMjN6oV/Upba+C9nBIs15PmOi6A3ZGs4Lr2u60zw4S04gi+u3cEXiqTVP7M4Pz3kw==}
@@ -2420,9 +2435,9 @@ packages:
resolution: {integrity: sha512-VmUSLbXRAbSzDD8grXHGPaknYs0SKr3yuf6U+d4XMpX4XuVYskNqbTTwXce0zR1LyxfTZm9rWEBcvs3vdYwCmQ==}
engines: {node: '>=20.0.0'}
- '@azure/[email protected]':
- resolution: {integrity: sha512-fCqPIfOcLE+CGqGPd66c8bZpwAji98tZ4JI9i/mlTNTlsIWslCfpg48s/ypyLxZTump5sypjrKn2/kY7q8oAbA==}
- engines: {node: '>=20.0.0'}
+ '@azure/[email protected]':
+ resolution: {integrity: sha512-rbAE25KUfjU/s3XHUdJgceoCP5dEOpMx85J04kF+QMdta73XkuG9JGHHinch+XIoKpBdqljin+KqURpJriSzLA==}
+ engines: {node: '>=22.0.0'}
resolution: {integrity: sha512-/yTnW2TCk9Mh+2b/NOaHAN+MryUNxzRTaJD/YtrqOA9bpBWfTXn/iyReRbaLrK/btBo3stEzLyEvuWp2NZ5DuA==}
@@ -3281,6 +3296,9 @@ packages:
'@emnapi/[email protected]':
resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==}
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==}
+
'@emnapi/[email protected]':
resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==}
@@ -10035,9 +10053,9 @@ packages:
peerDependencies:
typescript: '*'
- '@typespec/[email protected]':
- resolution: {integrity: sha512-jIXhD0eWQ1JA6ln/5Dltyx22UxWNrw0hZmhy2rlv6m6KgF7kplHx3g0fzi09lNmTJQRR91OlemYp3xFnvDK9og==}
- engines: {node: '>=20.0.0'}
+ '@typespec/[email protected]':
+ resolution: {integrity: sha512-JVUD8X2tfDMWjcjLs4yVxxVrS8yR5vnh386GAXT9Qj79nBxxXSaHFQZg5FweLmT8HlPQ3kii6noUB+Z9RN7DvQ==}
+ engines: {node: '>=22.0.0'}
resolution: {integrity: sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==}
@@ -19933,87 +19951,87 @@ snapshots:
'@aws/[email protected]': {}
- '@azure-rest/[email protected]':
+ '@azure-rest/[email protected]':
dependencies:
- '@azure/abort-controller': 2.1.2
- '@azure/core-auth': 1.10.1
- '@azure/core-rest-pipeline': 1.24.0
- '@azure/core-tracing': 1.3.1
- '@typespec/ts-http-runtime': 0.3.6
+ '@azure/abort-controller': 2.2.0
+ '@azure/core-auth': 1.11.0
+ '@azure/core-rest-pipeline': 1.25.0
+ '@azure/core-tracing': 1.4.0
+ '@typespec/ts-http-runtime': 0.3.7
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
- '@azure/[email protected]':
+ '@azure/[email protected]':
dependencies:
tslib: 2.8.1
- '@azure/[email protected]':
+ '@azure/[email protected]':
dependencies:
- '@azure/abort-controller': 2.1.2
- '@azure/core-util': 1.13.1
+ '@azure/abort-controller': 2.2.0
+ '@azure/core-util': 1.14.0
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
- '@azure/[email protected]':
+ '@azure/[email protected]':
dependencies:
- '@azure/abort-controller': 2.1.2
- '@azure/core-auth': 1.10.1
- '@azure/core-rest-pipeline': 1.24.0
- '@azure/core-tracing': 1.3.1
- '@azure/core-util': 1.13.1
- '@azure/logger': 1.3.0
+ '@azure/abort-controller': 2.2.0
+ '@azure/core-auth': 1.11.0
+ '@azure/core-rest-pipeline': 1.25.0
+ '@azure/core-tracing': 1.4.0
+ '@azure/core-util': 1.14.0
+ '@azure/logger': 1.4.0
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
dependencies:
- '@azure/abort-controller': 2.1.2
- '@azure/core-util': 1.13.1
- '@azure/logger': 1.3.0
+ '@azure/abort-controller': 2.2.0
+ '@azure/core-util': 1.14.0
+ '@azure/logger': 1.4.0
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
- '@azure/[email protected]':
+ '@azure/[email protected]':
dependencies:
tslib: 2.8.1
- '@azure/[email protected]':
+ '@azure/[email protected]':
dependencies:
- '@azure/abort-controller': 2.1.2
- '@azure/core-auth': 1.10.1
- '@azure/core-tracing': 1.3.1
- '@azure/core-util': 1.13.1
- '@azure/logger': 1.3.0
- '@typespec/ts-http-runtime': 0.3.6
+ '@azure/abort-controller': 2.2.0
+ '@azure/core-auth': 1.11.0
+ '@azure/core-tracing': 1.4.0
+ '@azure/core-util': 1.14.0
+ '@azure/logger': 1.4.0
+ '@typespec/ts-http-runtime': 0.3.7
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
- '@azure/[email protected]':
+ '@azure/[email protected]':
dependencies:
tslib: 2.8.1
- '@azure/[email protected]':
+ '@azure/[email protected]':
dependencies:
- '@azure/abort-controller': 2.1.2
- '@typespec/ts-http-runtime': 0.3.6
+ '@azure/abort-controller': 2.2.0
+ '@typespec/ts-http-runtime': 0.3.7
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
dependencies:
- '@azure/abort-controller': 2.1.2
- '@azure/core-auth': 1.10.1
- '@azure/core-client': 1.10.2
- '@azure/core-rest-pipeline': 1.24.0
- '@azure/core-tracing': 1.3.1
- '@azure/core-util': 1.13.1
- '@azure/logger': 1.3.0
+ '@azure/abort-controller': 2.2.0
+ '@azure/core-auth': 1.11.0
+ '@azure/core-client': 1.11.0
+ '@azure/core-rest-pipeline': 1.25.0
+ '@azure/core-tracing': 1.4.0
+ '@azure/core-util': 1.14.0
+ '@azure/logger': 1.4.0
'@azure/msal-browser': 5.17.0
'@azure/msal-node': 5.4.0
open: 10.2.0
@@ -20023,36 +20041,36 @@ snapshots:
dependencies:
- '@azure-rest/core-client': 2.7.0
- '@azure/abort-controller': 2.1.2
- '@azure/core-auth': 1.10.1
- '@azure/core-rest-pipeline': 1.24.0
- '@azure/core-tracing': 1.3.1
- '@azure/core-util': 1.13.1
- '@azure/logger': 1.3.0
+ '@azure-rest/core-client': 2.8.0
+ '@azure/abort-controller': 2.2.0
+ '@azure/core-auth': 1.11.0
+ '@azure/core-rest-pipeline': 1.25.0
+ '@azure/core-tracing': 1.4.0
+ '@azure/core-util': 1.14.0
+ '@azure/logger': 1.4.0
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
dependencies:
- '@azure-rest/core-client': 2.7.0
- '@azure/abort-controller': 2.1.2
- '@azure/core-auth': 1.10.1
+ '@azure-rest/core-client': 2.8.0
+ '@azure/abort-controller': 2.2.0
+ '@azure/core-auth': 1.11.0
'@azure/core-lro': 2.7.2
- '@azure/core-paging': 1.6.2
- '@azure/core-rest-pipeline': 1.24.0
- '@azure/core-tracing': 1.3.1
- '@azure/core-util': 1.13.1
+ '@azure/core-paging': 1.7.0
+ '@azure/core-rest-pipeline': 1.25.0
+ '@azure/core-tracing': 1.4.0
+ '@azure/core-util': 1.14.0
'@azure/keyvault-common': 2.1.0
- '@azure/logger': 1.3.0
+ '@azure/logger': 1.4.0
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
- '@azure/[email protected]':
+ '@azure/[email protected]':
dependencies:
- '@typespec/ts-http-runtime': 0.3.6
+ '@typespec/ts-http-runtime': 0.3.7
tslib: 2.8.1
transitivePeerDependencies:
- supports-color
@@ -21031,7 +21049,7 @@ snapshots:
'@nuxt/kit': 4.4.2([email protected])
chokidar: 5.0.0
pathe: 2.0.3
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
optionalDependencies:
typescript: 5.9.3
transitivePeerDependencies:
@@ -21130,6 +21148,11 @@ snapshots:
tslib: 2.8.1
optional: true
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@emnapi/[email protected]':
dependencies:
tslib: 2.8.1
@@ -21718,7 +21741,7 @@ snapshots:
jsc-safe-url: 0.2.4
lightningcss: 1.32.0
picomatch: 4.0.4
- postcss: 8.5.16
+ postcss: 8.5.15
resolve-from: 5.0.0
optionalDependencies:
@@ -21866,9 +21889,9 @@ snapshots:
optional: true
- '@google-cloud/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])':
+ '@google-cloud/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])':
dependencies:
- '@google-cloud/opentelemetry-resource-util': 3.0.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])
+ '@google-cloud/opentelemetry-resource-util': 3.0.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])
'@google-cloud/precise-date': 4.0.0
'@opentelemetry/api': 1.9.0
'@opentelemetry/core': 2.9.0(@opentelemetry/[email protected])
@@ -21880,9 +21903,9 @@ snapshots:
- encoding
- supports-color
- '@google-cloud/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])':
+ '@google-cloud/[email protected](@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])':
dependencies:
- '@google-cloud/opentelemetry-resource-util': 3.0.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])
+ '@google-cloud/opentelemetry-resource-util': 3.0.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])
'@grpc/grpc-js': 1.14.4
'@grpc/proto-loader': 0.8.1
'@opentelemetry/api': 1.9.0
@@ -21894,7 +21917,7 @@ snapshots:
- encoding
- supports-color
- '@google-cloud/[email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])':
+ '@google-cloud/[email protected](@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])':
dependencies:
'@opentelemetry/core': 2.9.0(@opentelemetry/[email protected])
'@opentelemetry/resources': 2.7.1(@opentelemetry/[email protected])
@@ -21949,8 +21972,8 @@ snapshots:
dependencies:
'@a2a-js/sdk': 0.3.14(@bufbuild/[email protected])(@grpc/[email protected])([email protected])
- '@google-cloud/opentelemetry-cloud-monitoring-exporter': 0.21.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])
- '@google-cloud/opentelemetry-cloud-trace-exporter': 3.0.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])
+ '@google-cloud/opentelemetry-cloud-monitoring-exporter': 0.21.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])
+ '@google-cloud/opentelemetry-cloud-trace-exporter': 3.0.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected])
'@google-cloud/storage': 7.21.0([email protected])
'@google-cloud/vertexai': 1.12.0(@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected]))([email protected])
'@google/genai': 1.52.0(@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected]))
@@ -22241,7 +22264,7 @@ snapshots:
dependencies:
- '@emnapi/runtime': 1.11.1
+ '@emnapi/runtime': 1.8.1
optional: true
@@ -23042,24 +23065,6 @@ snapshots:
- supports-color
- tedious
- dependencies:
- '@mikro-orm/core': 6.6.15
- fs-extra: 11.3.3
- knex: 3.2.10([email protected])
- sqlstring: 2.3.3
- optionalDependencies:
- mariadb: 3.4.5
- transitivePeerDependencies:
- - mysql
- - mysql2
- - pg
- - pg-native
- - pg-query-stream
- - sqlite3
- - supports-color
- - tedious
-
dependencies:
'@mikro-orm/core': 6.6.15
@@ -23099,7 +23104,7 @@ snapshots:
dependencies:
'@mikro-orm/core': 6.6.15
- '@mikro-orm/knex': 6.6.15(@mikro-orm/[email protected])([email protected])([email protected])
mariadb: 3.4.5
transitivePeerDependencies:
- better-sqlite3
@@ -23152,7 +23157,7 @@ snapshots:
dependencies:
'@mikro-orm/core': 6.6.15
- '@mikro-orm/knex': 6.6.15(@mikro-orm/[email protected])([email protected])([email protected])
pg: 8.20.0
postgres-array: 3.0.4
postgres-date: 2.1.0
@@ -23439,13 +23444,6 @@ snapshots:
'@tybys/wasm-util': 0.10.2
optional: true
- dependencies:
- '@emnapi/core': 1.10.0
- '@emnapi/runtime': 1.10.0
- '@tybys/wasm-util': 0.10.3
- optional: true
-
dependencies:
'@emnapi/core': 1.11.1
@@ -23681,7 +23679,7 @@ snapshots:
simple-git: 3.36.0
sirv: 3.0.2
structured-clone-es: 2.0.0
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
@@ -23712,7 +23710,7 @@ snapshots:
rc9: 3.0.1
scule: 1.3.0
semver: 7.8.1
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
ufo: 1.6.4
unctx: 2.5.0
untyped: 2.0.0
@@ -23737,7 +23735,7 @@ snapshots:
rc9: 3.0.1
scule: 1.3.0
semver: 7.8.1
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
ufo: 1.6.4
unctx: 2.5.0
untyped: 2.0.0
@@ -23835,9 +23833,9 @@ snapshots:
'@rollup/plugin-replace': 6.0.3([email protected])
- autoprefixer: 10.5.0([email protected])
+ autoprefixer: 10.5.0([email protected])
consola: 3.4.2
- cssnano: 7.1.9([email protected])
+ cssnano: 7.1.9([email protected])
defu: 6.1.7
escape-string-regexp: 5.0.0
exsolve: 1.0.8
@@ -23854,7 +23852,7 @@ snapshots:
pathe: 2.0.3
perfect-debounce: 2.1.0
pkg-types: 2.3.1
- postcss: 8.5.16
+ postcss: 8.5.15
seroval: 1.5.4
std-env: 4.1.0
ufo: 1.6.4
@@ -24350,21 +24348,21 @@ snapshots:
'@openuidev/[email protected]': {}
- '@openuidev/[email protected](@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])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))':
+ '@openuidev/[email protected](@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])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))':
dependencies:
'@floating-ui/react-dom': 2.1.3([email protected]([email protected]))([email protected])
'@openuidev/lang-core': link:packages/lang-core
'@openuidev/react-headless': link:packages/react-headless
'@openuidev/react-lang': link:packages/react-lang
'@openuidev/react-ui': link:packages/react-ui
'@tanstack/react-table': 8.21.3([email protected]([email protected]))([email protected])
'@tiptap/extension-placeholder': 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
'@tiptap/starter-kit': 2.27.2
clsx: 2.1.1
katex: 0.16.44
- lodash: 4.17.21
+ lodash: 4.18.1
lucide-react: 0.562.0([email protected])
mermaid: 11.15.0
react: 19.2.3
@@ -24381,6 +24379,37 @@ snapshots:
- '@tiptap/pm'
- supports-color
+ '@openuidev/[email protected](@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])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected]))':
+ dependencies:
+ '@floating-ui/react-dom': 2.1.3([email protected]([email protected]))([email protected])
+ '@openuidev/lang-core': link:packages/lang-core
+ '@openuidev/react-headless': link:packages/react-headless
+ '@openuidev/react-lang': link:packages/react-lang
+ '@openuidev/react-ui': link:packages/react-ui
+ '@tanstack/react-table': 8.21.3([email protected]([email protected]))([email protected])
+ '@tiptap/extension-placeholder': 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/starter-kit': 2.27.2
+ clsx: 2.1.1
+ katex: 0.16.44
+ lodash: 4.18.1
+ lucide-react: 0.562.0([email protected])
+ mermaid: 11.15.0
+ react: 19.2.4
+ react-dom: 19.2.4([email protected])
+ 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
+ zod: 4.3.6
+ zustand: 4.5.7(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - '@tiptap/core'
+ - '@tiptap/pm'
+ - supports-color
+
'@orama/[email protected]': {}
'@oxc-minify/[email protected]':
@@ -26196,6 +26225,26 @@ snapshots:
'@types/react': 19.2.14
'@types/react-dom': 19.2.3(@types/[email protected])
+ dependencies:
+ '@radix-ui/primitive': 1.1.2
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.14
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
dependencies:
'@radix-ui/primitive': 1.1.2
@@ -28930,6 +28979,12 @@ snapshots:
react: 19.2.3
react-dom: 19.2.3([email protected])
+ dependencies:
+ '@tanstack/table-core': 8.21.3
+ react: 19.2.4
+ react-dom: 19.2.4([email protected])
+
'@tanstack/[email protected]': {}
'@testing-library/[email protected]':
@@ -29105,6 +29160,18 @@ snapshots:
react-dom: 19.2.3([email protected])
use-sync-external-store: 1.6.0([email protected])
+ dependencies:
+ '@tiptap/core': 2.27.2(@tiptap/[email protected])
+ '@tiptap/extension-bubble-menu': 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/extension-floating-menu': 2.27.2(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/pm': 2.27.2
+ '@types/use-sync-external-store': 0.0.6
+ fast-deep-equal: 3.1.3
+ react: 19.2.4
+ react-dom: 19.2.4([email protected])
+ use-sync-external-store: 1.6.0([email protected])
+
'@tiptap/[email protected]':
dependencies:
'@tiptap/core': 2.27.2(@tiptap/[email protected])
@@ -29596,7 +29663,7 @@ snapshots:
debug: 4.4.3
minimatch: 10.2.5
semver: 7.8.1
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
ts-api-utils: 2.5.0([email protected])
typescript: 5.9.3
transitivePeerDependencies:
@@ -29656,7 +29723,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@typespec/[email protected]':
+ '@typespec/[email protected]':
dependencies:
http-proxy-agent: 7.0.2
https-proxy-agent: 7.0.6
@@ -29730,7 +29797,7 @@ snapshots:
dependencies:
'@emnapi/core': 1.10.0
'@emnapi/runtime': 1.10.0
- '@napi-rs/wasm-runtime': 1.1.6(@emnapi/[email protected])(@emnapi/[email protected])
+ '@napi-rs/wasm-runtime': 1.1.4(@emnapi/[email protected])(@emnapi/[email protected])
optional: true
@@ -30029,7 +30096,7 @@ snapshots:
'@vue/shared': 3.5.31
estree-walker: 2.0.2
magic-string: 0.30.21
- postcss: 8.5.16
+ postcss: 8.5.15
source-map-js: 1.2.1
@@ -30605,6 +30672,15 @@ snapshots:
+ dependencies:
+ browserslist: 4.28.2
+ caniuse-lite: 1.0.30001793
+ fraction.js: 5.3.4
+ picocolors: 1.1.1
+ postcss: 8.5.15
+ postcss-value-parser: 4.2.0
+
dependencies:
browserslist: 4.28.2
@@ -31458,9 +31534,9 @@ snapshots:
optionalDependencies:
srvx: 0.11.16
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
dependencies:
@@ -31495,49 +31571,49 @@ snapshots:
dependencies:
browserslist: 4.28.2
- css-declaration-sorter: 7.3.1([email protected])
- cssnano-utils: 5.0.3([email protected])
- postcss: 8.5.16
- postcss-calc: 10.1.1([email protected])
- postcss-colormin: 7.0.10([email protected])
- postcss-convert-values: 7.0.12([email protected])
- postcss-discard-comments: 7.0.8([email protected])
- postcss-discard-duplicates: 7.0.4([email protected])
- postcss-discard-empty: 7.0.3([email protected])
- postcss-discard-overridden: 7.0.3([email protected])
- postcss-merge-longhand: 7.0.7([email protected])
- postcss-merge-rules: 7.0.11([email protected])
- postcss-minify-font-values: 7.0.3([email protected])
- postcss-minify-gradients: 7.0.5([email protected])
- postcss-minify-params: 7.0.9([email protected])
- postcss-minify-selectors: 7.1.2([email protected])
- postcss-normalize-charset: 7.0.3([email protected])
- postcss-normalize-display-values: 7.0.3([email protected])
- postcss-normalize-positions: 7.0.4([email protected])
- postcss-normalize-repeat-style: 7.0.4([email protected])
- postcss-normalize-string: 7.0.3([email protected])
- postcss-normalize-timing-functions: 7.0.3([email protected])
- postcss-normalize-unicode: 7.0.9([email protected])
- postcss-normalize-url: 7.0.3([email protected])
- postcss-normalize-whitespace: 7.0.3([email protected])
- postcss-ordered-values: 7.0.4([email protected])
- postcss-reduce-initial: 7.0.9([email protected])
- postcss-reduce-transforms: 7.0.3([email protected])
- postcss-svgo: 7.1.3([email protected])
- postcss-unique-selectors: 7.0.7([email protected])
-
+ css-declaration-sorter: 7.3.1([email protected])
+ cssnano-utils: 5.0.3([email protected])
+ postcss: 8.5.15
+ postcss-calc: 10.1.1([email protected])
+ postcss-colormin: 7.0.10([email protected])
+ postcss-convert-values: 7.0.12([email protected])
+ postcss-discard-comments: 7.0.8([email protected])
+ postcss-discard-duplicates: 7.0.4([email protected])
+ postcss-discard-empty: 7.0.3([email protected])
+ postcss-discard-overridden: 7.0.3([email protected])
+ postcss-merge-longhand: 7.0.7([email protected])
+ postcss-merge-rules: 7.0.11([email protected])
+ postcss-minify-font-values: 7.0.3([email protected])
+ postcss-minify-gradients: 7.0.5([email protected])
+ postcss-minify-params: 7.0.9([email protected])
+ postcss-minify-selectors: 7.1.2([email protected])
+ postcss-normalize-charset: 7.0.3([email protected])
+ postcss-normalize-display-values: 7.0.3([email protected])
+ postcss-normalize-positions: 7.0.4([email protected])
+ postcss-normalize-repeat-style: 7.0.4([email protected])
+ postcss-normalize-string: 7.0.3([email protected])
+ postcss-normalize-timing-functions: 7.0.3([email protected])
+ postcss-normalize-unicode: 7.0.9([email protected])
+ postcss-normalize-url: 7.0.3([email protected])
+ postcss-normalize-whitespace: 7.0.3([email protected])
+ postcss-ordered-values: 7.0.4([email protected])
+ postcss-reduce-initial: 7.0.9([email protected])
+ postcss-reduce-transforms: 7.0.3([email protected])
+ postcss-svgo: 7.1.3([email protected])
+ postcss-unique-selectors: 7.0.7([email protected])
+
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
dependencies:
- cssnano-preset-default: 7.0.17([email protected])
+ cssnano-preset-default: 7.0.17([email protected])
lilconfig: 3.1.3
- postcss: 8.5.16
+ postcss: 8.5.15
dependencies:
@@ -32337,8 +32413,8 @@ snapshots:
'@next/eslint-plugin-next': 16.1.6
eslint: 9.29.0([email protected])
eslint-import-resolver-node: 0.3.10
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
eslint-plugin-react: 7.37.5([email protected]([email protected]))
eslint-plugin-react-hooks: 7.1.1([email protected]([email protected]))
@@ -32384,21 +32460,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@nolyfill/is-core-module': 1.0.39
- debug: 4.4.3
- eslint: 9.29.0([email protected])
- get-tsconfig: 4.14.0
- is-bun-module: 2.0.0
- stable-hash: 0.0.5
- tinyglobby: 0.2.17
- unrs-resolver: 1.12.2
- optionalDependencies:
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@nolyfill/is-core-module': 1.0.39
@@ -32407,24 +32468,13 @@ snapshots:
get-tsconfig: 4.14.0
is-bun-module: 2.0.0
stable-hash: 0.0.5
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
unrs-resolver: 1.12.2
optionalDependencies:
transitivePeerDependencies:
- supports-color
- dependencies:
- debug: 3.2.7
- optionalDependencies:
- '@typescript-eslint/parser': 8.59.4([email protected]([email protected]))([email protected])
- eslint: 9.29.0([email protected])
- eslint-import-resolver-node: 0.3.10
- transitivePeerDependencies:
- - supports-color
-
dependencies:
debug: 3.2.7
@@ -32436,35 +32486,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@rtsao/scc': 1.1.0
- array-includes: 3.1.9
- array.prototype.findlastindex: 1.2.6
- array.prototype.flat: 1.3.3
- array.prototype.flatmap: 1.3.3
- debug: 3.2.7
- doctrine: 2.1.0
- eslint: 9.29.0([email protected])
- eslint-import-resolver-node: 0.3.10
- hasown: 2.0.3
- is-core-module: 2.16.2
- is-glob: 4.0.3
- minimatch: 3.1.5
- object.fromentries: 2.0.8
- object.groupby: 1.0.3
- object.values: 1.2.1
- semver: 6.3.1
- string.prototype.trimend: 1.0.9
- tsconfig-paths: 3.15.0
- optionalDependencies:
- '@typescript-eslint/parser': 8.59.4([email protected]([email protected]))([email protected])
- transitivePeerDependencies:
- - eslint-import-resolver-typescript
- - eslint-import-resolver-webpack
- - supports-color
-
dependencies:
'@rtsao/scc': 1.1.0
@@ -32539,8 +32560,8 @@ snapshots:
'@babel/parser': 7.29.7
eslint: 9.29.0([email protected])
hermes-parser: 0.25.1
- zod: 4.4.3
- zod-validation-error: 4.0.2([email protected])
+ zod: 4.3.6
+ zod-validation-error: 4.0.2([email protected])
transitivePeerDependencies:
- supports-color
@@ -33396,7 +33417,7 @@ snapshots:
unist-util-remove-position: 5.0.0
unist-util-visit: 5.1.0
vfile: 6.0.3
- zod: 4.4.3
+ zod: 4.3.6
optionalDependencies:
'@types/mdast': 4.0.4
'@types/mdx': 2.0.13
@@ -34781,27 +34802,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- colorette: 2.0.19
- commander: 10.0.1
- debug: 4.3.4
- escalade: 3.2.0
- esm: 3.2.25
- get-package-type: 0.1.0
- getopts: 2.3.0
- interpret: 2.2.0
- lodash: 4.18.1
- pg-connection-string: 2.6.2
- rechoir: 0.8.0
- resolve-from: 5.0.0
- tarn: 3.1.2
- tildify: 2.0.0
- optionalDependencies:
- pg: 8.20.0
- transitivePeerDependencies:
- - supports-color
-
dependencies:
colorette: 2.0.19
@@ -36485,33 +36485,6 @@ snapshots:
- '@babel/core'
- babel-plugin-macros
- dependencies:
- '@next/env': 16.1.6
- '@swc/helpers': 0.5.15
- baseline-browser-mapping: 2.10.32
- caniuse-lite: 1.0.30001793
- postcss: 8.5.16
- react: 19.2.3
- react-dom: 19.2.3([email protected])
- styled-jsx: 5.1.6(@babel/[email protected])([email protected])
- optionalDependencies:
- '@next/swc-darwin-arm64': 16.1.6
- '@next/swc-darwin-x64': 16.1.6
- '@next/swc-linux-arm64-gnu': 16.1.6
- '@next/swc-linux-arm64-musl': 16.1.6
- '@next/swc-linux-x64-gnu': 16.1.6
- '@next/swc-linux-x64-musl': 16.1.6
- '@next/swc-win32-arm64-msvc': 16.1.6
- '@next/swc-win32-x64-msvc': 16.1.6
- '@opentelemetry/api': 1.9.1
- babel-plugin-react-compiler: 1.0.0
- sass: 1.89.2
- sharp: 0.34.5
- transitivePeerDependencies:
- - '@babel/core'
- - babel-plugin-macros
-
dependencies:
'@next/env': 16.2.6
@@ -36521,7 +36494,7 @@ snapshots:
postcss: 8.5.16
react: 19.2.3
react-dom: 19.2.3([email protected])
- styled-jsx: 5.1.6(@babel/[email protected])([email protected])
optionalDependencies:
'@next/swc-darwin-arm64': 16.2.6
'@next/swc-darwin-x64': 16.2.6
@@ -36575,7 +36548,7 @@ snapshots:
postcss: 8.5.15
react: 19.2.3
react-dom: 19.2.3([email protected])
- styled-jsx: 5.1.6(@babel/[email protected])([email protected])
optionalDependencies:
'@next/swc-darwin-arm64': 16.2.7
'@next/swc-darwin-x64': 16.2.7
@@ -37613,42 +37586,42 @@ snapshots:
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-selector-parser: 7.1.1
postcss-value-parser: 4.2.0
dependencies:
'@colordx/core': 5.4.3
browserslist: 4.28.2
caniuse-api: 3.0.0
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
browserslist: 4.28.2
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-selector-parser: 7.1.1
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
dependencies:
@@ -37669,45 +37642,45 @@ snapshots:
optionalDependencies:
postcss: 8.5.15
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
- stylehacks: 7.0.11([email protected])
+ stylehacks: 7.0.11([email protected])
dependencies:
browserslist: 4.28.2
caniuse-api: 3.0.0
- cssnano-utils: 5.0.3([email protected])
- postcss: 8.5.16
+ cssnano-utils: 5.0.3([email protected])
+ postcss: 8.5.15
postcss-selector-parser: 7.1.1
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
'@colordx/core': 5.4.3
- cssnano-utils: 5.0.3([email protected])
- postcss: 8.5.16
+ cssnano-utils: 5.0.3([email protected])
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
browserslist: 4.28.2
- cssnano-utils: 5.0.3([email protected])
- postcss: 8.5.16
+ cssnano-utils: 5.0.3([email protected])
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
browserslist: 4.28.2
caniuse-api: 3.0.0
cssesc: 3.0.0
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-selector-parser: 7.1.1
@@ -37748,66 +37721,66 @@ snapshots:
postcss: 8.5.15
postcss-selector-parser: 6.1.2
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
browserslist: 4.28.2
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
- cssnano-utils: 5.0.3([email protected])
- postcss: 8.5.16
+ cssnano-utils: 5.0.3([email protected])
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
dependencies:
browserslist: 4.28.2
caniuse-api: 3.0.0
- postcss: 8.5.16
+ postcss: 8.5.15
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
@@ -37824,15 +37797,15 @@ snapshots:
cssesc: 3.0.0
util-deprecate: 1.0.2
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-value-parser: 4.2.0
svgo: 4.0.1
dependencies:
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-selector-parser: 7.1.1
@@ -39398,7 +39371,7 @@ snapshots:
dependencies:
'@img/colour': 1.0.0
detect-libc: 2.1.2
- semver: 7.8.1
+ semver: 7.7.4
optionalDependencies:
'@img/sharp-darwin-arm64': 0.34.5
'@img/sharp-darwin-x64': 0.34.5
@@ -39842,13 +39815,6 @@ snapshots:
'@babel/core': 7.29.7
babel-plugin-macros: 3.1.0
- dependencies:
- client-only: 0.0.1
- react: 19.2.3
- optionalDependencies:
- '@babel/core': 7.29.7
-
dependencies:
client-only: 0.0.1
@@ -39856,10 +39822,10 @@ snapshots:
optionalDependencies:
'@babel/core': 7.29.7
dependencies:
browserslist: 4.28.2
- postcss: 8.5.16
+ postcss: 8.5.15
postcss-selector-parser: 7.1.1
@@ -39875,7 +39841,7 @@ snapshots:
lines-and-columns: 1.2.4
mz: 2.7.0
pirates: 4.0.7
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
ts-interface-checker: 0.1.13
@@ -40068,7 +40034,7 @@ snapshots:
dependencies:
- '@azure/core-auth': 1.10.1
+ '@azure/core-auth': 1.11.0
'@azure/identity': 4.13.1
'@azure/keyvault-keys': 4.10.2
'@js-joda/core': 5.7.0
@@ -40497,7 +40463,7 @@ snapshots:
pkg-types: 2.3.1
scule: 1.3.0
strip-literal: 3.1.0
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
unplugin: 3.0.0
unplugin-utils: 0.3.1
optionalDependencies:
@@ -40580,7 +40546,7 @@ snapshots:
pathe: 2.0.3
picomatch: 4.0.4
scule: 1.3.0
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
unplugin: 2.3.11
unplugin-utils: 0.3.1
yaml: 2.9.0
@@ -40854,7 +40820,7 @@ snapshots:
picomatch: 4.0.4
proper-lockfile: 4.1.2
tiny-invariant: 1.3.3
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
vscode-uri: 3.1.0
optionalDependencies:
@@ -40933,7 +40899,7 @@ snapshots:
picomatch: 4.0.4
postcss: 8.5.16
rollup: 4.60.4
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
optionalDependencies:
'@types/node': 25.3.2
fsevents: 2.3.3
@@ -41058,7 +41024,7 @@ snapshots:
std-env: 4.1.0
tinybench: 2.9.0
tinyexec: 1.2.2
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
tinyrainbow: 3.1.0
why-is-node-running: 2.3.0
@@ -41087,7 +41053,7 @@ snapshots:
std-env: 4.1.0
tinybench: 2.9.0
tinyexec: 1.2.2
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
tinyrainbow: 3.1.0
why-is-node-running: 2.3.0
@@ -41116,7 +41082,7 @@ snapshots:
std-env: 4.1.0
tinybench: 2.9.0
tinyexec: 1.2.2
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
tinyrainbow: 3.1.0
why-is-node-running: 2.3.0
@@ -41145,7 +41111,7 @@ snapshots:
std-env: 4.1.0
tinybench: 2.9.0
tinyexec: 1.2.2
- tinyglobby: 0.2.17
+ tinyglobby: 0.2.16
tinyrainbow: 3.1.0
why-is-node-running: 2.3.0
@@ -41596,9 +41562,9 @@ snapshots:
dependencies:
zod: 4.4.3
dependencies:
- zod: 4.4.3
+ zod: 4.3.6