The Open Standard for Generative UI
Add reliability doc (#1032)
abhithesys0d326615e56d
diff --git a/docs/content/docs/openui-lang/meta.json b/docs/content/docs/openui-lang/meta.jsonindex c5677aa81..520f0a8ca 100644--- a/docs/content/docs/openui-lang/meta.json+++ b/docs/content/docs/openui-lang/meta.json@@ -11,6 +11,7 @@"system-prompts","renderer","interactivity",+ "reliability","---Building Apps---","how-it-works","reactive-state",diff --git a/docs/content/docs/openui-lang/reliability.mdx b/docs/content/docs/openui-lang/reliability.mdxnew file mode 100644index 000000000..4baee490f--- /dev/null+++ b/docs/content/docs/openui-lang/reliability.mdx@@ -0,0 +1,207 @@+---+title: Reliability+description: Build reliable LLM-generated interfaces by measuring, reducing, and correcting generation errors.+---++Generative UI turns LLM output directly into interfaces that users see and interact with. The model receives a description of the available components and their properties, then generates an interface that follows that contract. Most generations follow it correctly, but an LLM can occasionally invent a component, use an unsupported value, leave a reference unresolved, or stop before completing the interface.++<img+ src="/images/openui-lang/reliability-benchmark.svg"+ alt="Benchmark comparing completion rates and fully blank screens for OpenUI Lang, A2UI, and json-render"+ className="w-full"+/>++In our [**Reliability benchmark**](/blog/generative-ui-benchmark), every tested format, including OpenUI, A2UI, and json-render, produced incomplete generations. OpenUI completed 92.9% of the evaluated tasks and produced only 2 blank screens across 1,104 runs, but it was not error-free. Even its strongest model pairing reached 99.5%, not 100%.++## Improving reliability++<img+ src="/images/openui-lang/reliability-layers.svg"+ alt="Reliability pipeline showing schema and prompt improvements, model selection, validation and correction, and observability feedback"+ className="w-full"+/>++There are four main ways to improve the reliability of LLM-generated interfaces:++- **Simplify the component schema.** Use distinct component names, clear descriptions, focused properties, and unambiguous enum values. Remove overlapping components and group related ones with `componentGroups`. See [Defining Components](/docs/openui-lang/defining-components).+- **Refine the system prompt.** Add targeted rules for recurring errors and provide valid examples for combinations the model finds difficult. In our benchmark, a single rule improved one model's completion rate by 13 percentage points, while an incorrect example caused double-digit regressions. See [System Prompts](/docs/openui-lang/system-prompts).+- **Evaluate model selection.** Test models using your own component library and representative prompts. Run each prompt multiple times and compare reliability alongside latency and cost.+- **Validate and correct generated output.** Detect invalid output at runtime and fix it before it reaches users. OpenUI Cloud provides this reliability layer for production applications.++Measure reliability before and after making these changes so you can identify the right intervention and verify that it worked.++## Measure reliability++LLM generations are nondeterministic. The same model can produce different output for the same prompt, and an interface that rendered correctly once may contain errors on another attempt. Reliability therefore needs to be measured across representative prompts and repeated generations.++### During development++OpenUI DevTools shows the errors captured while OpenUI parses and renders the generated interface. Each entry includes an error summary and additional details, such as the error code, affected component, or statement when available.++This helps identify failures that might otherwise be missed when the rest of the interface still renders. Test representative prompts during development and run important prompts multiple times.++<img+ src="/images/api-reference/devtools.gif"+ alt="OpenUI DevTools showing errors captured while rendering a generated interface"+ className="w-full rounded-lg border"+/>++Learn more in [developer tools docs](/docs/openui-lang/developer-tools).++<Callout type="info">+ When you use `@openuidev/react-lang`, DevTools is automatically mounted in browser development+ builds.+</Callout>++### In production++Development testing cannot cover every prompt your users will submit. Use `@openuidev/observability-cloud` to monitor UI generation across production traffic and review errors in the Thesys Console.++<img+ src="/images/openui-lang/reliability-dashboard.png"+ alt="Reliability pipeline showing schema and prompt improvements, model selection, validation and correction, and observability feedback"+ className="w-full rounded-lg border"+/>++Install the package:++```bash tab="pnpm" tab-group="pkg"+pnpm install @openuidev/observability-cloud+```++```bash tab="bun" tab-group="pkg"+bun install @openuidev/observability-cloud+```++```bash tab="yarn" tab-group="pkg"+yarn install @openuidev/observability-cloud+```++```bash tab="npm" tab-group="pkg"+npm run install @openuidev/observability-cloud+```++Create a client API key from the [Thesys Console](https://console.thesys.dev/client-api-keys), then initialize observability once in your application:++```ts+import * as Observability from "@openuidev/observability-cloud";++Observability.init({+ apiKey: "pk-th-…",+});+```++After deploying, open the [Reliability dashboard](https://console.thesys.dev/reliability) to see how frequently generation errors occur, identify the most common error types, and inspect the affected UI generations. This helps you prioritize the schema, prompt, or model changes that will have the greatest impact.++<Callout type="tip">+ **Using a coding agent?** The OpenUI skill can help your agent add production observability and+ configure reliability monitoring. [Install the OpenUI+ skill](/docs/mcp#install-via-the-skills-cli-recommended).+</Callout>++## Production reliability with OpenUI Cloud++OpenUI Cloud sits between your application and the LLM. It validates generated UI and fixes errors as it streams to your application.++<div+ className="not-prose my-6 rounded-2xl border border-fd-border bg-fd-muted/20 p-4 sm:p-6"+ role="img"+ aria-label="A request travels from an application through OpenUI Cloud to an LLM. The LLM streams generated UI through OpenUI Cloud, which validates the stream continuously, fixes errors as they are detected, and forwards the validated stream to the application."+>+ <div className="grid items-stretch gap-3 md:grid-cols-[minmax(0,1fr)_7rem_minmax(0,1.15fr)_7rem_minmax(0,1fr)]">+ <div className="flex min-h-40 flex-col rounded-xl border border-fd-border bg-fd-background p-4">+ <div className="text-sm font-semibold text-fd-foreground">Your application</div>+ <div className="mt-4 flex flex-1 flex-col gap-2 rounded-lg border border-fd-border bg-fd-muted/40 p-3">+ <div className="h-2 w-2/3 rounded-full bg-fd-muted-foreground/25" />+ <div className="h-2 w-1/2 rounded-full bg-fd-muted-foreground/20" />+ <div className="mt-2 flex-1 rounded-md border border-[color:color-mix(in_srgb,var(--openui-text-success-primary)_25%,transparent)] bg-[var(--openui-success-background)] p-2">+ <div className="text-xs font-medium text-[var(--openui-text-success-primary)]">+ Generated interface+ </div>+ <div className="mt-2 h-2 w-full rounded-full bg-fd-muted-foreground/20" />+ <div className="mt-2 h-2 w-3/4 rounded-full bg-fd-muted-foreground/20" />+ </div>+ </div>+ </div>++ <div className="flex items-center justify-around py-1 text-xs font-medium text-fd-muted-foreground md:hidden">+ <div className="flex flex-col items-center gap-1">+ <span>Request</span>+ <span className="text-lg" aria-hidden="true">↓</span>+ </div>+ <div className="flex flex-col items-center gap-1 text-[var(--openui-text-success-primary)]">+ <span aria-hidden="true">↑</span>+ <span>Validated UI</span>+ </div>+ </div>+ <div className="hidden flex-col items-center justify-center gap-10 text-xs font-medium md:flex">+ <div className="whitespace-nowrap text-fd-muted-foreground">Request →</div>+ <div className="whitespace-nowrap text-[var(--openui-text-success-primary)]">+ ← Validated UI+ </div>+ </div>++ <div className="flex min-h-40 flex-col rounded-xl border border-[var(--openui-text-purple-primary)] bg-[var(--openui-purple-background)] p-4 shadow-sm">+ <div className="text-sm font-semibold text-fd-foreground">OpenUI Cloud</div>+ <div className="text-xs font-medium text-[var(--openui-text-purple-primary)]">+ Reliability middleware+ </div>+ <div className="mt-4 flex flex-1 flex-col justify-center gap-2">+ <div className="rounded-lg border border-[color:color-mix(in_srgb,var(--openui-text-purple-primary)_30%,transparent)] bg-fd-background/70 px-3 py-2 text-xs font-medium text-fd-foreground">+ Validate generated UI+ </div>+ <div className="rounded-lg border border-[color:color-mix(in_srgb,var(--openui-text-purple-primary)_30%,transparent)] bg-fd-background/70 px-3 py-2 text-xs font-medium text-fd-foreground">+ Fix errors automatically+ </div>+ </div>+ </div>++ <div className="flex items-center justify-around py-1 text-xs font-medium text-fd-muted-foreground md:hidden">+ <div className="flex flex-col items-center gap-1">+ <span>Model request</span>+ <span className="text-lg" aria-hidden="true">↓</span>+ </div>+ <div className="flex flex-col items-center gap-1 text-[var(--openui-text-alert-primary)]">+ <span aria-hidden="true">↑</span>+ <span>Generated UI</span>+ </div>+ </div>+ <div className="hidden flex-col items-center justify-center gap-10 text-xs font-medium text-fd-muted-foreground md:flex">+ <div className="whitespace-nowrap">Model request →</div>+ <div className="whitespace-nowrap text-[var(--openui-text-alert-primary)]">+ ← Generated UI+ </div>+ </div>++ <div className="flex min-h-40 flex-col rounded-xl border border-fd-border bg-fd-background p-4">+ <div className="text-sm font-semibold text-fd-foreground">LLM</div>+ <div className="text-xs text-fd-muted-foreground">OpenAI, Anthropic, and others</div>+ <div className="mt-4 flex flex-1 items-center justify-center rounded-lg border border-[color:color-mix(in_srgb,var(--openui-text-alert-primary)_25%,transparent)] bg-[var(--openui-alert-background)] px-3 text-center text-xs font-medium text-[var(--openui-text-alert-primary)]">+ Generate interface+ </div>+ </div>++ </div>+</div>++For every generation, OpenUI Cloud:++- **Validates** generated UI as it streams.+- **Fixes** malformed output and schema violations on the fly.+- **Recovers** from model or provider failures using fallbacks.++In production data from our [Reliability benchmark](/blog/generative-ui-benchmark), OpenUI Cloud fixed **96% of generations** that initially failed validation.++<Callout type="tip">+ **Using a coding agent?** The OpenUI skill can help your agent integrate OpenUI Cloud into your+ application. [Install the OpenUI skill](/docs/mcp#install-via-the-skills-cli-recommended).+</Callout>++### Integrations options++OpenUI Cloud provides two OpenAI-compatible APIs for this generation flow:++- **[Chat Completions](/docs/openui-cloud/api/chat-completions):** A drop-in endpoint for applications that already use the OpenAI Chat Completions API for generative UI.+- **[Responses API](/docs/openui-cloud/api/responses):** Build stateful model interactions that continue from previous responses, with built-in persistence and hosted tools such as web search, image search, presentation generation, and more.++Learn more in the [OpenUI Cloud documentation](/docs/openui-cloud/how-it-works).diff --git a/docs/public/images/openui-lang/reliability-benchmark.svg b/docs/public/images/openui-lang/reliability-benchmark.svgnew file mode 100644index 000000000..45188f824--- /dev/null+++ b/docs/public/images/openui-lang/reliability-benchmark.svg@@ -0,0 +1,118 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="1120"+ height="560"+ viewBox="0 0 1120 560"+ role="img"+ aria-labelledby="title description"+>+ <title id="title">Generation outcomes across formats</title>+ <desc id="description">+ OpenUI Lang completed 92.9 percent of generations and produced 2 blank screens. A2UI+ completed 92.4 percent and produced 53 blank screens. json-render completed 81.3 percent+ and produced 9 blank screens. Each format was evaluated across 1,104 generations.+ </desc>++ <style>+ .surface { fill: #ffffff; }+ .frame { fill: none; stroke: #e9e8ed; }+ .ink { fill: #17151d; }+ .muted { fill: #716e7b; }+ .faint { fill: #9895a1; }+ .rule { stroke: #e9e8ed; }+ .track { fill: #f0eff3; }+ .openui { fill: #7c3aed; }+ .a2ui { fill: #e03060; }+ .json-render { fill: #c98500; }+ text {+ font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;+ font-variant-numeric: tabular-nums;+ }+ .title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }+ .subtitle { font-size: 16px; font-weight: 400; }+ .panel-title { font-size: 17px; font-weight: 600; }+ .panel-hint { font-size: 14px; font-weight: 400; }+ .axis { font-size: 13px; font-weight: 400; }+ .format { font-size: 16px; font-weight: 500; }+ .value { font-size: 16px; font-weight: 600; }+ .note { font-size: 14px; font-weight: 400; }++ @media (prefers-color-scheme: dark) {+ .surface { fill: #17161a; }+ .frame { stroke: #323036; }+ .ink { fill: #f4f2f7; }+ .muted { fill: #b4b0bc; }+ .faint { fill: #8e8996; }+ .rule { stroke: #343138; }+ .track { fill: #29272d; }+ .openui { fill: #a78bfa; }+ .a2ui { fill: #f2678a; }+ .json-render { fill: #e5a83b; }+ }+ </style>++ <rect class="surface" x="0.5" y="0.5" width="1119" height="559" rx="20" />+ <rect class="frame" x="0.5" y="0.5" width="1119" height="559" rx="20" />++ <text class="title ink" x="48" y="57">Reliability across formats</text>+ <text class="subtitle muted" x="48" y="88">+ No tested format eliminated incomplete generations or blank screens.+ </text>++ <text class="panel-title ink" x="200" y="145">Fully complete</text>+ <text class="panel-hint muted" x="200" y="169">Higher is better</text>++ <text class="panel-title ink" x="818" y="145">Fully blank</text>+ <text class="panel-hint muted" x="818" y="169">Lower is better</text>++ <line class="rule" x1="774" y1="128" x2="774" y2="409" />++ <text class="axis faint" x="200" y="200">0%</text>+ <text class="axis faint" x="442" y="200" text-anchor="middle">50%</text>+ <text class="axis faint" x="684" y="200" text-anchor="end">100%</text>+ <line class="rule" x1="200" y1="208" x2="200" y2="405" />+ <line class="rule" x1="442" y1="208" x2="442" y2="405" />+ <line class="rule" x1="684" y1="208" x2="684" y2="405" />++ <text class="axis faint" x="818" y="200">0</text>+ <text class="axis faint" x="929" y="200" text-anchor="middle">30</text>+ <text class="axis faint" x="1040" y="200" text-anchor="end">60</text>+ <line class="rule" x1="818" y1="208" x2="818" y2="405" />+ <line class="rule" x1="929" y1="208" x2="929" y2="405" />+ <line class="rule" x1="1040" y1="208" x2="1040" y2="405" />++ <rect class="openui" x="48" y="239" width="12" height="12" rx="2" />+ <text class="format ink" x="72" y="250">OpenUI Lang</text>+ <rect class="track" x="200" y="230" width="484" height="30" rx="3" />+ <rect class="openui" x="200" y="230" width="450" height="30" rx="3" />+ <text class="value ink" x="700" y="251">92.9%</text>+ <rect class="track" x="818" y="230" width="222" height="30" rx="3" />+ <rect class="openui" x="818" y="230" width="7.4" height="30" rx="3" />+ <text class="value ink" x="1056" y="251">2</text>++ <rect class="a2ui" x="48" y="309" width="12" height="12" rx="2" />+ <text class="format ink" x="72" y="320">A2UI</text>+ <rect class="track" x="200" y="300" width="484" height="30" rx="3" />+ <rect class="a2ui" x="200" y="300" width="447.2" height="30" rx="3" />+ <text class="value ink" x="700" y="321">92.4%</text>+ <rect class="track" x="818" y="300" width="222" height="30" rx="3" />+ <rect class="a2ui" x="818" y="300" width="196.1" height="30" rx="3" />+ <text class="value ink" x="1056" y="321">53</text>++ <rect class="json-render" x="48" y="379" width="12" height="12" rx="2" />+ <text class="format ink" x="72" y="390">json-render</text>+ <rect class="track" x="200" y="370" width="484" height="30" rx="3" />+ <rect class="json-render" x="200" y="370" width="393.5" height="30" rx="3" />+ <text class="value ink" x="700" y="391">81.3%</text>+ <rect class="track" x="818" y="370" width="222" height="30" rx="3" />+ <rect class="json-render" x="818" y="370" width="33.3" height="30" rx="3" />+ <text class="value ink" x="1056" y="391">9</text>++ <line class="rule" x1="48" y1="444" x2="1072" y2="444" />+ <text class="note muted" x="48" y="480">+ Six models · 46 prompts · four generations per prompt · 1,104 runs per format+ </text>+ <text class="note faint" x="48" y="510">+ Completion means everything requested rendered and every reference resolved. Blank screens are runs where users saw nothing.+ </text>+</svg>diff --git a/docs/public/images/openui-lang/reliability-dashboard.png b/docs/public/images/openui-lang/reliability-dashboard.pngnew file mode 100644index 000000000..f11712e29Binary files /dev/null and b/docs/public/images/openui-lang/reliability-dashboard.png differdiff --git a/docs/public/images/openui-lang/reliability-layers.svg b/docs/public/images/openui-lang/reliability-layers.svgnew file mode 100644index 000000000..910d57958--- /dev/null+++ b/docs/public/images/openui-lang/reliability-layers.svg@@ -0,0 +1,166 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="1120"+ height="390"+ viewBox="0 0 1120 390"+ role="img"+ aria-labelledby="title description"+>+ <title id="title">Generative UI reliability pipeline</title>+ <desc id="description">+ A component schema and system prompt guide the selected model. The model produces generated UI,+ which is validated and corrected before reaching users. Observability measures the result and+ provides feedback for improvements across the pipeline.+ </desc>++ <style>+ .surface { fill: #ffffff; }+ .frame { fill: none; stroke: #e9e8ed; }+ .card { fill: #f7f6f9; stroke: #e5e3e9; }+ .card-accent { fill: #f3efff; stroke: #c4b5fd; }+ .observe { fill: #faf9fb; stroke: #dedce3; }+ .ink { fill: #17151d; }+ .muted { fill: #716e7b; }+ .faint { fill: #9895a1; }+ .accent-fill { fill: #7c3aed; }+ .accent-stroke { stroke: #7c3aed; }+ .arrow-neutral { fill: #b6b2be; }+ .arrow-accent { fill: #7c3aed; }+ .connector { fill: none; stroke: #b6b2be; stroke-width: 2; }+ .feedback { fill: none; stroke: #7c3aed; stroke-width: 2; }+ text {+ font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;+ }+ .node-title { font-size: 16px; font-weight: 600; }+ .node-copy { font-size: 13px; font-weight: 400; }+ .observe-title { font-size: 16px; font-weight: 600; }+ .observe-copy { font-size: 14px; font-weight: 400; }+ .feedback-label { font-size: 12px; font-weight: 600; }++ @media (prefers-color-scheme: dark) {+ .surface { fill: #17161a; }+ .frame { stroke: #323036; }+ .card { fill: #242228; stroke: #39363e; }+ .card-accent { fill: #292239; stroke: #7256b5; }+ .observe { fill: #201e23; stroke: #39363e; }+ .ink { fill: #f4f2f7; }+ .muted { fill: #b4b0bc; }+ .faint { fill: #8e8996; }+ .accent-fill { fill: #a78bfa; }+ .accent-stroke { stroke: #a78bfa; }+ .arrow-neutral { fill: #b4b0bc; }+ .arrow-accent { fill: #a78bfa; }+ .connector { stroke: #5c5863; }+ .feedback { stroke: #a78bfa; }+ }+ </style>++ <defs>+ <marker+ id="arrow-neutral"+ viewBox="0 0 10 10"+ refX="8"+ refY="5"+ markerWidth="7"+ markerHeight="7"+ orient="auto-start-reverse"+ >+ <path class="arrow-neutral" d="M 0 0 L 10 5 L 0 10 z" />+ </marker>+ <marker+ id="arrow-accent"+ viewBox="0 0 10 10"+ refX="8"+ refY="5"+ markerWidth="7"+ markerHeight="7"+ orient="auto-start-reverse"+ >+ <path class="arrow-accent" d="M 0 0 L 10 5 L 0 10 z" />+ </marker>+ </defs>++ <rect class="surface" x="0.5" y="0.5" width="1119" height="389" rx="20" />+ <rect class="frame" x="0.5" y="0.5" width="1119" height="389" rx="20" />++ <rect class="card" x="48" y="51" width="224" height="72" rx="10" />+ <circle class="accent-fill" cx="68" cy="73" r="5" />+ <text class="node-title ink" x="82" y="79">Component schema</text>+ <text class="node-copy muted" x="60" y="105">Clear names and focused props</text>++ <rect class="card" x="48" y="151" width="224" height="72" rx="10" />+ <circle class="accent-fill" cx="68" cy="173" r="5" />+ <text class="node-title ink" x="82" y="179">System prompt</text>+ <text class="node-copy muted" x="60" y="205">Targeted rules and valid examples</text>++ <path+ class="connector"+ d="M272 87 H300 V151 H326"+ marker-end="url(#arrow-neutral)"+ />+ <path class="connector" d="M272 187 H300 V151" />++ <rect class="card" x="330" y="101" width="188" height="100" rx="10" />+ <circle class="accent-fill" cx="352" cy="125" r="5" />+ <text class="node-title ink" x="366" y="131">Model selection</text>+ <text class="node-copy muted" x="352" y="159">Evaluate reliability,</text>+ <text class="node-copy muted" x="352" y="179">latency, and cost</text>++ <path+ class="connector"+ d="M518 151 H557"+ marker-end="url(#arrow-neutral)"+ />++ <rect class="card" x="575" y="101" width="170" height="100" rx="10" />+ <text class="node-title ink" x="597" y="135">Generated UI</text>+ <text class="node-copy muted" x="597" y="163">Probabilistic</text>+ <text class="node-copy muted" x="597" y="183">model output</text>++ <path+ class="connector"+ d="M745 151 H774"+ marker-end="url(#arrow-neutral)"+ />++ <rect class="card-accent" x="792" y="101" width="208" height="100" rx="10" />+ <circle class="accent-fill" cx="814" cy="125" r="5" />+ <text class="node-title ink" x="828" y="131">Validate and correct</text>+ <text class="node-copy muted" x="814" y="159">Detect invalid output</text>+ <text class="node-copy muted" x="814" y="179">and repair errors</text>++ <path+ class="connector"+ d="M1000 151 H1031"+ marker-end="url(#arrow-neutral)"+ />+ <circle class="accent-fill" cx="1064" cy="151" r="26" />+ <path+ d="M1053 151 L1061 159 L1076 142"+ fill="none"+ stroke="#ffffff"+ stroke-width="3"+ stroke-linecap="round"+ stroke-linejoin="round"+ />+ <text class="node-copy muted" x="1064" y="192" text-anchor="middle">Users</text>++ <path class="connector" d="M896 201 V281" marker-end="url(#arrow-neutral)" />++ <rect class="observe" x="48" y="285" width="1024" height="78" rx="10" />+ <rect class="accent-fill" x="48" y="285" width="6" height="78" rx="3" />+ <text class="observe-title ink" x="76" y="317">Observability</text>+ <text class="observe-copy muted" x="210" y="317">+ Measure errors, identify recurring failures, and verify improvements+ </text>+ <text class="observe-copy muted" x="76" y="344">+ Production generations provide feedback for the schema, prompt, and model.+ </text>++ <path+ class="feedback"+ d="M310 285 V160"+ marker-end="url(#arrow-accent)"+ />+ <text class="feedback-label accent-fill" x="320" y="261">Feedback</text>+</svg>diff --git a/packages/observability-cloud/README.md b/packages/observability-cloud/README.mdindex 9092cf5bc..ec135ffe0 100644--- a/packages/observability-cloud/README.md+++ b/packages/observability-cloud/README.md@@ -10,7 +10,7 @@ npm i @openuidev/observability-cloud## Setup-Generate a publishable API key at [console.thesys.dev/client-api-keys](https://console.thesys.dev/client-api-keys), then initialise the SDK once at your app's entry point:+Generate a client API key at [console.thesys.dev/client-api-keys](https://console.thesys.dev/client-api-keys), then initialise the SDK once at your app's entry point:```tsimport * as Observability from "@openuidev/observability-cloud";@@ -26,7 +26,7 @@ Observability.init({ apiKey: "pk-th-…" });| option | type | default | description || ------------ | ----------------------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |-| `apiKey` | `string` | — | Your publishable API key (`pk-th-…`). Required. |+| `apiKey` | `string` | — | Your client API key (`pk-th-…`). Required. || `capture` | `"full"` \| `"minimal"` | `"full"` | `"full"` logs complete event data for the richest debugging in the console. `"minimal"` is a privacy-first mode that strips event data that may include PII. || `sampleRate` | `number` | `1` | Fraction of renders to send, `0`–`1`. Sampling is deterministic per render, so all events for one render are kept or dropped together. || `endpoint` | `string` | `https://ingest.thesys.dev/v1/events` | Override the ingest URL (testing). |diff --git a/packages/observability-cloud/package.json b/packages/observability-cloud/package.jsonindex f7baa584e..7f0f8e282 100644--- a/packages/observability-cloud/package.json+++ b/packages/observability-cloud/package.json@@ -1,6 +1,6 @@{"name": "@openuidev/observability-cloud",- "version": "0.0.1",+ "version": "0.0.2","description": "Cloud sink for @openuidev/observability: batches OpenUI events and ships them to Thesys ingest","license": "MIT","type": "module",