#!/usr/bin/env node /** * agent-app-theme-check — CI guard against the invisible-surface incident class. * * A consumer app runs this over its own source; it fails (exit 1) when a * component references a theme token — `var(--popover)` or a preset-mapped * utility like `bg-surface-container-high` — that the app's shipped CSS never * defines, which would paint that surface transparent with no error at runtime. * * agent-app-theme-check --src src --src packages/ui/src \ * --extra-css src/app-tokens.css * * Flags (all repeatable except --tokens): * --src