An open source design system that's fully customizable and agent ready
TypeScript
fix(sandbox): generate AGENTS.md on install via postinstall (#404)
Cindy Zhangbe5b68c6ce3e
diff --git a/apps/sandbox/README.md b/apps/sandbox/README.mdindex 61ac3cb064..5574955cca 100644--- a/apps/sandbox/README.md+++ b/apps/sandbox/README.md@@ -4,6 +4,22 @@ XDS component sandbox for designer exploration and vibe testing. Deployed alongs<!-- SYNC: When files in this directory change, update this document. -->+## Setup++Before writing any code, install dependencies:++```bash+npm install+```++This automatically generates `AGENTS.md` with the XDS component index via `xds agent-docs`. **Read `AGENTS.md` for all XDS component documentation** — it contains CLI commands to browse components, tokens, themes, and design rules.++If `AGENTS.md` is missing, regenerate it:++```bash+npx xds agent-docs+```+## How it worksThe sandbox is a Next.js app configured for static export (`output: 'export'`). On PRs, the CI workflow builds it and deploys to GitHub Pages at a versioned URL:diff --git a/apps/sandbox/package.json b/apps/sandbox/package.jsonindex a09d91d6d5..2fe0faf847 100644--- a/apps/sandbox/package.json+++ b/apps/sandbox/package.json@@ -6,7 +6,7 @@"dev": "next dev","build": "next build","start": "next start",- "postinstall": "xds postinstall"+ "postinstall": "xds agent-docs"},"dependencies": {"@stylexjs/stylex": "^0.17.4",