The Open Standard for Generative UI
Update OpenClaw OS installation for windows (#509)
Aditya-thesysb1937065d3fc
diff --git a/docs/app/(home)/openclaw-os/page.tsx b/docs/app/(home)/openclaw-os/page.tsxindex 996a1d0ef..d0de267ef 100644--- a/docs/app/(home)/openclaw-os/page.tsx+++ b/docs/app/(home)/openclaw-os/page.tsx@@ -9,6 +9,8 @@ import { PossibilitiesSection } from "../sections/PossibilitiesSection/Possibiliimport { StuckInChatSection } from "../sections/StuckInChatSection/StuckInChatSection";const INSTALL_COMMAND = "curl -fsSL https://openui.com/openclaw-os/install.sh | bash";+const WINDOWS_INSTALL_COMMAND =+ 'powershell -c "irm https://openui.com/openclaw-os/install.ps1 | iex"';export const metadata: Metadata = {title: "OpenClaw OS - The Default Workspace for OpenClaw",@@ -50,6 +52,9 @@ export default function OpenClawOSPage() {</>}command={INSTALL_COMMAND}+ commandLabel="macOS / Linux"+ secondaryCommand={WINDOWS_INSTALL_COMMAND}+ secondaryCommandLabel="Windows PowerShell"compactshowBanner={false}showPlaygroundButton={false}@@ -105,7 +110,10 @@ export default function OpenClawOSPage() {]}/><FeaturesSection features={OPENCLAW_FEATURES} showCta={false} />- <StuckInChatSection installCommand={INSTALL_COMMAND} />+ <StuckInChatSection+ installCommand={INSTALL_COMMAND}+ windowsInstallCommand={WINDOWS_INSTALL_COMMAND}+ /></div><GradientDivider direction="up" /></div>diff --git a/docs/app/(home)/sections/FeaturesSection/FeaturesSection.tsx b/docs/app/(home)/sections/FeaturesSection/FeaturesSection.tsxindex a5f39d8c4..aa808a2b0 100644--- a/docs/app/(home)/sections/FeaturesSection/FeaturesSection.tsx+++ b/docs/app/(home)/sections/FeaturesSection/FeaturesSection.tsx@@ -1,5 +1,6 @@"use client";+import svgPaths from "@/imports/svg-urruvoh2be";import {BellIcon,BrowserIcon,@@ -9,7 +10,6 @@ import {SlidersHorizontalIcon,SquaresFourIcon,} from "@phosphor-icons/react";-import svgPaths from "@/imports/svg-urruvoh2be";import { PillLink } from "../../components/Button/Button";import { FeatureList, type FeatureListItem } from "../../components/FeatureList/FeatureList";import styles from "./FeaturesSection.module.css";diff --git a/docs/app/(home)/sections/HeroSection/HeroSection.module.css b/docs/app/(home)/sections/HeroSection/HeroSection.module.cssindex a7b91d2ef..5e5de6a8b 100644--- a/docs/app/(home)/sections/HeroSection/HeroSection.module.css+++ b/docs/app/(home)/sections/HeroSection/HeroSection.module.css@@ -153,6 +153,55 @@transform: translate(-50%, 0);}+.commandGroup {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 0.875rem;+}++.commandTabs {+ display: inline-flex;+ align-items: center;+ gap: 0.25rem;+ padding: 0.25rem;+ border: 1px solid var(--openui-border-default);+ border-radius: var(--openui-radius-full);+ background: var(--openui-highlight);+}++.commandTab {+ height: 2rem;+ padding-inline: 0.875rem;+ border: 0;+ border-radius: var(--openui-radius-full);+ background: transparent;+ color: var(--openui-text-neutral-secondary);+ cursor: pointer;+ font-family: "Inter", sans-serif;+ font-size: 0.875rem;+ font-weight: 500;+ line-height: 1;+ text-align: center;+ transition:+ background-color 0.2s ease,+ color 0.2s ease,+ box-shadow 0.2s ease;+}++.commandTabActive {+ background: var(--openui-foreground);+ color: var(--openui-text-neutral-primary);+ box-shadow: var(--openui-shadow-s);+}++.commandItem {+ display: flex;+ flex-direction: column;+ align-items: center;+ width: 100%;+}+.npmButton {display: flex;height: 3rem;diff --git a/docs/app/(home)/sections/HeroSection/HeroSection.tsx b/docs/app/(home)/sections/HeroSection/HeroSection.tsxindex 12f2f5929..801e0d916 100644--- a/docs/app/(home)/sections/HeroSection/HeroSection.tsx+++ b/docs/app/(home)/sections/HeroSection/HeroSection.tsx@@ -92,6 +92,45 @@ export function NpmButton({ className = "", command }: { className?: string; com);}+function CommandTabs({+ showSecondaryCommand,+ setShowSecondaryCommand,+ secondaryCommand,+}: {+ showSecondaryCommand: boolean;+ setShowSecondaryCommand: (value: boolean) => void;+ secondaryCommand?: string;+}) {+ if (!secondaryCommand) return null;++ return (+ <div className={styles.commandTabs} role="tablist" aria-label="Install platform">+ <button+ type="button"+ role="tab"+ aria-selected={!showSecondaryCommand}+ className={`${styles.commandTab} ${+ !showSecondaryCommand ? styles.commandTabActive : ""+ }`.trim()}+ onClick={() => setShowSecondaryCommand(false)}+ >+ macOS / Linux+ </button>+ <button+ type="button"+ role="tab"+ aria-selected={showSecondaryCommand}+ className={`${styles.commandTab} ${+ showSecondaryCommand ? styles.commandTabActive : ""+ }`.trim()}+ onClick={() => setShowSecondaryCommand(true)}+ >+ Windows+ </button>+ </div>+ );+}+function DesktopPlaygroundButton({ className = "" }: { className?: string }) {return (<PillLink@@ -205,6 +244,9 @@ function DesktopHero({title,subtitle,command,+ commandLabel,+ secondaryCommand,+ secondaryCommandLabel,compact,showBanner,showPlaygroundButton,@@ -214,6 +256,9 @@ function DesktopHero({title: ReactNode;subtitle: ReactNode;command: string;+ commandLabel?: string;+ secondaryCommand?: string;+ secondaryCommandLabel?: string;compact: boolean;showBanner: boolean;showPlaygroundButton: boolean;@@ -223,6 +268,7 @@ function DesktopHero({// The shadow-room class compensates for the absent secondary CTA — only// applied when both the playground button AND the GitHub button are off.const hasSecondaryCta = showPlaygroundButton || !!githubRepoUrl;+ const [showSecondaryCommand, setShowSecondaryCommand] = useState(false);return (<div className={styles.desktopHero}>@@ -242,11 +288,20 @@ function DesktopHero({!hasSecondaryCta ? styles.desktopCtaStackShadowRoom : ""}`.trim()}>- <NpmButton command={command} />+ <div className={styles.commandGroup}>+ <CommandTabs+ showSecondaryCommand={showSecondaryCommand}+ setShowSecondaryCommand={setShowSecondaryCommand}+ secondaryCommand={secondaryCommand}+ />+ <div className={styles.commandItem}>+ <NpmButton+ command={showSecondaryCommand && secondaryCommand ? secondaryCommand : command}+ />+ </div>+ </div>{showPlaygroundButton && <DesktopPlaygroundButton />}- {githubRepoUrl && (- <DesktopGithubButton href={githubRepoUrl} label={githubButtonLabel} />- )}+ {githubRepoUrl && <DesktopGithubButton href={githubRepoUrl} label={githubButtonLabel} />}</div></div></div>@@ -262,6 +317,9 @@ function MobileHero({title,subtitle,command,+ commandLabel,+ secondaryCommand,+ secondaryCommandLabel,compact,showBanner,showPlaygroundButton,@@ -277,6 +335,9 @@ function MobileHero({title: ReactNode;subtitle: ReactNode;command: string;+ commandLabel?: string;+ secondaryCommand?: string;+ secondaryCommandLabel?: string;compact: boolean;showBanner: boolean;showPlaygroundButton: boolean;@@ -288,6 +349,7 @@ function MobileHero({mobileImageHeight?: number;mobileImageCropTopPercent?: number;}) {+ const [showSecondaryCommand, setShowSecondaryCommand] = useState(false);const mobileHeroImage =mobileImageOverride ?? (theme === "dark" ? MOBILE_HERO_IMAGE.dark : MOBILE_HERO_IMAGE.light);@@ -309,7 +371,9 @@ function MobileHero({{showBanner && <AnnouncementBanner />}<div className={styles.mobileBrandGroup}>- <p className={`${styles.mobileTitle} ${compact ? styles.mobileTitleCompact : ""}`.trim()}>+ <p+ className={`${styles.mobileTitle} ${compact ? styles.mobileTitleCompact : ""}`.trim()}+ >{title}</p></div>@@ -321,7 +385,19 @@ function MobileHero({{/* CTA buttons */}<div className={styles.mobileCtaStack}>- <NpmButton className={styles.mobileCtaButtonWidth} command={command} />+ <div className={styles.commandGroup}>+ <CommandTabs+ showSecondaryCommand={showSecondaryCommand}+ setShowSecondaryCommand={setShowSecondaryCommand}+ secondaryCommand={secondaryCommand}+ />+ <div className={styles.commandItem}>+ <NpmButton+ className={styles.mobileCtaButtonWidth}+ command={showSecondaryCommand && secondaryCommand ? secondaryCommand : command}+ />+ </div>+ </div>{showPlaygroundButton && <MobilePlaygroundButton className={styles.mobileCtaButtonWidth} />}{showGitHubBanner && (<GitHubBanner href={githubRepoUrl} className={styles.mobileCtaButtonWidth} />@@ -366,8 +442,7 @@ function PreviewImage({widePreview?: boolean;}) {const desktopHeroImage =- desktopImageOverride ??- (theme === "dark" ? DESKTOP_HERO_IMAGE.dark : DESKTOP_HERO_IMAGE.light);+ desktopImageOverride ?? (theme === "dark" ? DESKTOP_HERO_IMAGE.dark : DESKTOP_HERO_IMAGE.light);return (<div@@ -422,6 +497,9 @@ export function HeroSection({title = "OpenUI",subtitle = "The Open Standard for Generative UI",command = primaryCTA,+ commandLabel,+ secondaryCommand,+ secondaryCommandLabel,compact = false,showBanner = true,showPlaygroundButton = true,@@ -445,6 +523,9 @@ export function HeroSection({title?: ReactNode;subtitle?: ReactNode;command?: string;+ commandLabel?: string;+ secondaryCommand?: string;+ secondaryCommandLabel?: string;compact?: boolean;showBanner?: boolean;showPlaygroundButton?: boolean;@@ -477,6 +558,9 @@ export function HeroSection({title={title}subtitle={subtitle}command={command}+ commandLabel={commandLabel}+ secondaryCommand={secondaryCommand}+ secondaryCommandLabel={secondaryCommandLabel}compact={compact}showBanner={showBanner}showPlaygroundButton={showPlaygroundButton}@@ -488,6 +572,9 @@ export function HeroSection({title={title}subtitle={subtitle}command={command}+ commandLabel={commandLabel}+ secondaryCommand={secondaryCommand}+ secondaryCommandLabel={secondaryCommandLabel}compact={compact}showBanner={showBanner}showPlaygroundButton={showPlaygroundButton}diff --git a/docs/app/(home)/sections/StuckInChatSection/StuckInChatSection.module.css b/docs/app/(home)/sections/StuckInChatSection/StuckInChatSection.module.cssindex 214c78b33..9c97a8c2e 100644--- a/docs/app/(home)/sections/StuckInChatSection/StuckInChatSection.module.css+++ b/docs/app/(home)/sections/StuckInChatSection/StuckInChatSection.module.css@@ -92,12 +92,6 @@margin-top: 2.5rem;}-.installButton {- width: 100%;- max-width: 320px;- justify-content: space-between;-}-.ctaSub {margin: 0;text-align: center;@@ -107,6 +101,61 @@color: var(--openui-text-neutral-primary);}+.installCommands {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 0.875rem;+ width: 100%;+}++.installTabs {+ display: inline-flex;+ align-items: center;+ gap: 0.25rem;+ padding: 0.25rem;+ border: 1px solid var(--openui-border-default);+ border-radius: var(--openui-radius-full);+ background: var(--openui-highlight);+}++.installTab {+ height: 2rem;+ padding-inline: 0.875rem;+ border: 0;+ border-radius: var(--openui-radius-full);+ background: transparent;+ color: var(--openui-text-neutral-secondary);+ cursor: pointer;+ font-family: "Inter", sans-serif;+ font-size: 0.875rem;+ font-weight: 500;+ line-height: 1;+ text-align: center;+ transition:+ background-color 0.2s ease,+ color 0.2s ease,+ box-shadow 0.2s ease;+}++.installTabActive {+ background: var(--openui-foreground);+ color: var(--openui-text-neutral-primary);+ box-shadow: var(--openui-shadow-s);+}++.installCommandItem {+ display: flex;+ flex-direction: column;+ align-items: center;+ width: 100%;+}++.installButton {+ width: 100%;+ max-width: 320px;+ justify-content: space-between;+}@media (min-width: 1024px) {.section {diff --git a/docs/app/(home)/sections/StuckInChatSection/StuckInChatSection.tsx b/docs/app/(home)/sections/StuckInChatSection/StuckInChatSection.tsxindex e04ee9224..18db54858 100644--- a/docs/app/(home)/sections/StuckInChatSection/StuckInChatSection.tsx+++ b/docs/app/(home)/sections/StuckInChatSection/StuckInChatSection.tsx@@ -1,6 +1,7 @@"use client";import { EyeSlash, LockSimple, Scroll } from "@phosphor-icons/react";+import { useState } from "react";import { NpmButton } from "../HeroSection/HeroSection";import styles from "./StuckInChatSection.module.css";@@ -24,7 +25,15 @@ const NEGATIVES = [},];-export function StuckInChatSection({ installCommand }: { installCommand: string }) {+export function StuckInChatSection({+ installCommand,+ windowsInstallCommand,+}: {+ installCommand: string;+ windowsInstallCommand: string;+}) {+ const [showWindowsCommand, setShowWindowsCommand] = useState(false);+return (<section className={styles.section}><div className={styles.container}>@@ -45,7 +54,38 @@ export function StuckInChatSection({ installCommand }: { installCommand: string<div className={styles.cta}><p className={styles.ctaSub}>Setup OpenClaw OS in under a minute</p>- <NpmButton command={installCommand} className={styles.installButton} />+ <div className={styles.installCommands}>+ <div className={styles.installTabs} role="tablist" aria-label="Install platform">+ <button+ type="button"+ role="tab"+ aria-selected={!showWindowsCommand}+ className={`${styles.installTab} ${+ !showWindowsCommand ? styles.installTabActive : ""+ }`.trim()}+ onClick={() => setShowWindowsCommand(false)}+ >+ macOS / Linux+ </button>+ <button+ type="button"+ role="tab"+ aria-selected={showWindowsCommand}+ className={`${styles.installTab} ${+ showWindowsCommand ? styles.installTabActive : ""+ }`.trim()}+ onClick={() => setShowWindowsCommand(true)}+ >+ Windows+ </button>+ </div>+ <div className={styles.installCommandItem}>+ <NpmButton+ command={showWindowsCommand ? windowsInstallCommand : installCommand}+ className={styles.installButton}+ />+ </div>+ </div></div></div></section>diff --git a/docs/content/blog/stop-making-ai-write-json.mdx b/docs/content/blog/stop-making-ai-write-json.mdxindex 0d8f7f709..440c388f2 100644--- a/docs/content/blog/stop-making-ai-write-json.mdx+++ b/docs/content/blog/stop-making-ai-write-json.mdx@@ -42,7 +42,7 @@ This is perfectly fine for what it does. LLMs know JSON quite well. It's one ofBut look at that chart. The data is baked into the output. `[120, 150, 180]` is frozen in time the moment the LLM writes it. There's no filter dropdown, no date range picker, no refresh button. Want to change anything? Go back to the LLM. Every. Single. Time.-We needed UIs that could actually *do* things on their own. Fetch data, manage state, respond to user input, call APIs. And we needed the LLM to wire all of that up in a single generation pass, then get out of the way.+We needed UIs that could actually _do_ things on their own. Fetch data, manage state, respond to user input, call APIs. And we needed the LLM to wire all of that up in a single generation pass, then get out of the way.## The JSON approach to interactivity (it gets ugly fast)@@ -163,23 +163,28 @@ Their button validation example for "accept terms AND provide email or phone" lo```json{- "checks": [{- "condition": {- "call": "and",- "args": {- "values": [- { "call": "required", "args": { "value": { "path": "/formData/terms" } } },- { "call": "or", "args": {- "values": [- { "call": "required", "args": { "value": { "path": "/formData/email" } } },- { "call": "required", "args": { "value": { "path": "/formData/phone" } } }- ]- }}- ]- }- },- "message": "You must accept terms AND provide either email or phone"- }]+ "checks": [+ {+ "condition": {+ "call": "and",+ "args": {+ "values": [+ { "call": "required", "args": { "value": { "path": "/formData/terms" } } },+ {+ "call": "or",+ "args": {+ "values": [+ { "call": "required", "args": { "value": { "path": "/formData/email" } } },+ { "call": "required", "args": { "value": { "path": "/formData/phone" } } }+ ]+ }+ }+ ]+ }+ },+ "message": "You must accept terms AND provide either email or phone"+ }+ ]}```@@ -205,7 +210,7 @@ Seven lines. `root` comes first so the UI shell renders immediately during streaYou already saw what state binding and conditionals look like in JSON above. In OpenUI Lang, passing `$title` to a component binds it (undeclared variables are auto-created), and `item.completed ? "line-through" : "none"` is just a ternary. The LLM already knows how all of these work.-The features that *don't* have clean JSON equivalents are more interesting.+The features that _don't_ have clean JSON equivalents are more interesting.### Data transforms and functional composition@@ -291,7 +296,7 @@ Same result. Up to 80% fewer tokens, 5x faster edits.After switching from JSON, structural parse errors dropped to zero. It didn't just get better, it dropped to **zero**.The reason: there's no document-level nesting to get wrong. In JSON, a missing `}` on line 12 corrupts everything after it. In OpenUI Lang, each line is self-contained. Brackets close within the same line they opened on. The LLM can't accidentally leave a `{` unclosed and wreck 50 lines of output, because nothing on line 13 depends on line 12's brackets.-The LLM still makes mistakes, but they're *semantic* instead of *structural*: wrong component name, missing a required prop, referencing a tool that doesn't exist.+The LLM still makes mistakes, but they're _semantic_ instead of _structural_: wrong component name, missing a required prop, referencing a tool that doesn't exist.And because each statement has a name, OpenUI renderer returns diagnostics that read like linter output:```json@@ -382,8 +387,8 @@ Same app. One is 12 JSONL patch operations, each a dense line of nested JSON wit## The space in between-*JSON is a data format pretending to be a language.* <br />-*JavaScript is a language with far more power than this problem needs.* <br />+_JSON is a data format pretending to be a language._ <br />+_JavaScript is a language with far more power than this problem needs._ <br />The interesting space is in between.When you bolt language features onto a data format, you end up reinventing programming concepts inside object literals: `{ "$cond": { "$state": "/path", "eq": value }, "$then": x, "$else": y }`. When you hand the LLM a full language, you get security headaches, streaming challenges, and models spending tokens on incidental complexity instead of UI design.diff --git a/docs/content/docs/openui-lang/comparison.mdx b/docs/content/docs/openui-lang/comparison.mdxindex c948b4fdf..2810007c4 100644--- a/docs/content/docs/openui-lang/comparison.mdx+++ b/docs/content/docs/openui-lang/comparison.mdx@@ -11,19 +11,19 @@ description: OpenUI vs json-render (Vercel), A2UI (Google), and CopilotKit OpenG## At a Glance-| | **[OpenUI](https://github.com/thesysdev/openui)** | **[json-render](https://github.com/vercel-labs/json-render)** (Vercel) | **[A2UI](https://github.com/google/A2UI)** (Google) | **[CopilotKit OpenGenUI](https://github.com/CopilotKit/OpenGenerativeUI)** |-|---|---|---|---|---|-| **Tokens** | **1x** | 3x | 3x | 4x |-| **Latency (60 tok/s)** | **4.9s** | 14.2s | 14.2s | ~20s |-| **Streaming** | Yes | Yes | Yes | Partial |-| **Consistent output** | Yes | Yes | Yes | No |-| **Design system** | Yes | Yes | Yes | No |-| **Components** | Library + custom | Library + custom | Custom only | None |-| **Built-in data fetching** | Yes | No | No | No |-| **Chat UI included** | Yes | No | No | Yes |-| **Multi-platform** | Web, mobile, email | Web, mobile, PDF, email, video | Web, iOS, Android | Web |-| **Security risk** | Minimal | Minimal | Minimal | Medium |-| **License** | MIT | Apache 2.0 | Apache 2.0 | MIT |+| | **[OpenUI](https://github.com/thesysdev/openui)** | **[json-render](https://github.com/vercel-labs/json-render)** (Vercel) | **[A2UI](https://github.com/google/A2UI)** (Google) | **[CopilotKit OpenGenUI](https://github.com/CopilotKit/OpenGenerativeUI)** |+| -------------------------- | ------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------- | -------------------------------------------------------------------------- |+| **Tokens** | **1x** | 3x | 3x | 4x |+| **Latency (60 tok/s)** | **4.9s** | 14.2s | 14.2s | ~20s |+| **Streaming** | Yes | Yes | Yes | Partial |+| **Consistent output** | Yes | Yes | Yes | No |+| **Design system** | Yes | Yes | Yes | No |+| **Components** | Library + custom | Library + custom | Custom only | None |+| **Built-in data fetching** | Yes | No | No | No |+| **Chat UI included** | Yes | No | No | Yes |+| **Multi-platform** | Web, mobile, email | Web, mobile, PDF, email, video | Web, iOS, Android | Web |+| **Security risk** | Minimal | Minimal | Minimal | Medium |+| **License** | MIT | Apache 2.0 | Apache 2.0 | MIT |---diff --git a/docs/content/docs/openui-lang/index.mdx b/docs/content/docs/openui-lang/index.mdxindex 40cebc929..efa5eb440 100644--- a/docs/content/docs/openui-lang/index.mdx+++ b/docs/content/docs/openui-lang/index.mdx@@ -27,9 +27,6 @@ Generative UI fundamentally changes this relationship. Instead of merely providiThe result is a native UI dynamically composed by the AI, streamed efficiently, and rendered safely from your own components. For data-driven apps with live tools and reactive state, see [Architecture](/docs/openui-lang/how-it-works).---## OpenUI LangOpenUI Lang is a compact, line-oriented language designed specifically for Large Language Models (LLMs) to generate user interfaces. It serves as a more efficient, predictable, and stream-friendly alternative to verbose formats like JSON. For the complete syntax reference, see the [Language Specification](/docs/openui-lang/specification-v05).@@ -61,4 +58,3 @@ OpenUI Lang was created to solve these core issues:</Cards>Want to try it? [Open the Playground](/playground) or follow the [Quick Start](/docs/openui-lang/quickstart).-diff --git a/docs/generated/playground-component-spec.json b/docs/generated/playground-component-spec.jsonindex a1001e93c..fb66938ca 100644--- a/docs/generated/playground-component-spec.json+++ b/docs/generated/playground-component-spec.json@@ -265,10 +265,7 @@},{"name": "Tables",- "components": [- "Table",- "Col"- ],+ "components": ["Table", "Col"],"notes": ["- Table is COLUMN-oriented: Table([Col(\"Label\", dataArray), Col(\"Count\", countArray, \"number\")]). Use array pluck for data: data.rows.fieldName","- Col data can be component arrays for styled cells: Col(\"Status\", @Each(data.rows, \"item\", Tag(item.status, null, \"sm\", item.status == \"open\" ? \"success\" : \"danger\")))",@@ -298,12 +295,7 @@},{"name": "Charts (1D)",- "components": [- "PieChart",- "RadialChart",- "SingleStackedBarChart",- "Slice"- ],+ "components": ["PieChart", "RadialChart", "SingleStackedBarChart", "Slice"],"notes": ["- PieChart and BarChart need NUMBERS, not objects. For list data, use @Count(@Filter(...)) to aggregate:","- PieChart from list: `PieChart([\"Low\", \"Med\", \"High\"], [@Count(@Filter(data.rows, \"priority\", \"==\", \"low\")), @Count(@Filter(data.rows, \"priority\", \"==\", \"medium\")), @Count(@Filter(data.rows, \"priority\", \"==\", \"high\"))], \"donut\")`",@@ -312,11 +304,7 @@},{"name": "Charts (Scatter)",- "components": [- "ScatterChart",- "ScatterSeries",- "Point"- ]+ "components": ["ScatterChart", "ScatterSeries", "Point"]},{"name": "Forms",@@ -350,20 +338,14 @@},{"name": "Buttons",- "components": [- "Button",- "Buttons"- ],+ "components": ["Button", "Buttons"],"notes": ["- Toggle in @Each: @Each(rows, \"t\", Button(t.status == \"open\" ? \"Close\" : \"Reopen\", Action([...])))"]},{"name": "Data Display",- "components": [- "TagBlock",- "Tag"- ],+ "components": ["TagBlock", "Tag"],"notes": ["- Color-mapped Tag: Tag(value, null, \"sm\", value == \"high\" ? \"danger\" : value == \"medium\" ? \"warning\" : \"neutral\")"]diff --git a/docs/public/openclaw-os/install.ps1 b/docs/public/openclaw-os/install.ps1index 959f97dc5..783fdb7ad 100644--- a/docs/public/openclaw-os/install.ps1+++ b/docs/public/openclaw-os/install.ps1@@ -1,7 +1,7 @@# OpenClaw OS Installer (Windows / PowerShell 5.1+)## Install:-# iwr -useb https://openui.com/openclaw-os/install.ps1 | iex+# powershell -c "irm https://openui.com/openclaw-os/install.ps1 | iex"## Uninstall (one-liner):# & ([scriptblock]::Create((iwr -useb https://openui.com/openclaw-os/install.ps1).Content)) -Uninstall@@ -100,8 +100,8 @@ function Download-Source {}function Build-Plugin {- Write-Step 'Building plugin (pnpm install + bundle-ui + build)'- Write-Log 'Compiles claw-client UI and bundles the plugin. Expect 1–3 minutes on first run.'+ Write-Step 'Building plugin (pnpm install + claw-client build + plugin bundle)'+ Write-Log 'Compiles claw-client UI and bundles the plugin. Expect 1-3 minutes on first run.'Push-Location $SrcDirtry {@@ -109,14 +109,33 @@ function Build-Plugin {if ($LASTEXITCODE -ne 0) { Write-Fatal 'Workspace pnpm install failed.' }} finally { Pop-Location }- # Run README's canonical sequence explicitly, not the `prepack` lifecycle —- # protects against silent no-op if the package.json script gets renamed.- Push-Location $PluginDir+ $clientDir = Join-Path $SrcDir 'packages\claw-client'+ $clientOutDir = Join-Path $clientDir 'out'+ $staticDir = Join-Path $PluginDir 'static'+ $distDir = Join-Path $PluginDir 'dist'++ # Keep this Windows-native: the package scripts are also cross-platform in the+ # repo, but the installer avoids shell-specific rm/cp assumptions.+ Push-Location $clientDirtry {- & pnpm bundle-ui- if ($LASTEXITCODE -ne 0) { Write-Fatal 'pnpm bundle-ui failed.' }+ & pnpm install --frozen-lockfile=false+ if ($LASTEXITCODE -ne 0) { Write-Fatal 'claw-client pnpm install failed.' }& pnpm build- if ($LASTEXITCODE -ne 0) { Write-Fatal 'pnpm build failed.' }+ if ($LASTEXITCODE -ne 0) { Write-Fatal 'claw-client build failed.' }+ } finally { Pop-Location }++ if (-not (Test-Path $clientOutDir)) { Write-Fatal "claw-client build did not produce $clientOutDir." }+ if (Test-Path $staticDir) { Remove-Item -Recurse -Force $staticDir }+ Copy-Item -Path $clientOutDir -Destination $staticDir -Recurse -Force++ if (Test-Path $distDir) { Remove-Item -Recurse -Force $distDir }+ New-Item -ItemType Directory -Force -Path $distDir | Out-Null++ Push-Location $PluginDir+ try {+ $banner = 'import { createRequire } from "node:module"; const require = createRequire(import.meta.url);'+ & pnpm exec esbuild 'src/index.ts' '--bundle' '--platform=node' '--target=node22' '--format=esm' '--outfile=dist/index.js' '--external:openclaw' '--external:openclaw/*' '--external:node:*' '--loader:.json=json' "--banner:js=$banner"+ if ($LASTEXITCODE -ne 0) { Write-Fatal 'Plugin esbuild bundle failed.' }} finally { Pop-Location }if (-not (Test-Path (Join-Path $PluginDir 'dist\index.js'))) { Write-Fatal 'Build did not produce dist\index.js.' }@@ -244,11 +263,12 @@ function Print-DashboardUrl {& openclaw os --help 2>&1 | Out-Nullif ($LASTEXITCODE -eq 0) {# The openclaw CLI emits plugin-registration logs to stdout when loading a- # plugin to discover its commands; grep just the URL line.+ # plugin to discover its commands. The action runs after registration, so+ # use the last URL-shaped line in case earlier logs contain URLs too.$output = (& openclaw os url 2>$null | Out-String)if ($output) {- $match = [regex]::Match($output, 'https?://[^\s]+')- if ($match.Success) { $url = $match.Value }+ $matches = [regex]::Matches($output, 'https?://[^\s]+')+ if ($matches.Count -gt 0) { $url = $matches[$matches.Count - 1].Value }}}diff --git a/docs/public/openclaw-os/install.sh b/docs/public/openclaw-os/install.shindex da10d45c6..b4aa7cecc 100755--- a/docs/public/openclaw-os/install.sh+++ b/docs/public/openclaw-os/install.sh@@ -1,7 +1,7 @@#!/bin/bashset -euo pipefail-# OpenClaw OS Installer (macOS / Linux)+# OpenClaw OS Installer (macOS / Linux / WSL2)# Install: curl -fsSL https://openui.com/openclaw-os/install.sh | bash# Uninstall: curl -fsSL https://openui.com/openclaw-os/install.sh | bash -s -- uninstall