An open source design system that's fully customizable and agent ready
TypeScript
test(vibe-tests): add a plain Tailwind app for setup testing (#5499)
nynexman44644013182fa757
diff --git a/.gitignore b/.gitignoreindex 927d0747fc..9521cbb07c 100644--- a/.gitignore+++ b/.gitignore@@ -47,6 +47,7 @@ e2e/playwright/.cache/# Vibe tests (large generated files)internal/vibe-tests/results/+internal/vibe-tests/.fixture-runs/# Astryx agent docs (generated).astryx-docs/diff --git a/eslint.config.js b/eslint.config.jsindex 6321cf3884..00865b0c11 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -1,13 +1,13 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-import { defineConfig } from "eslint/config";-import { includeIgnoreFile } from "@eslint/compat";-import path from "node:path";-import js from "@eslint/js";-import tseslint from "typescript-eslint";-import eslintReact from "@eslint-react/eslint-plugin";-import reactCompiler from "eslint-plugin-react-compiler";-import astryxPlugin from "./internal/eslint-plugin-astryx/index.js";+import {defineConfig} from 'eslint/config';+import {includeIgnoreFile} from '@eslint/compat';+import path from 'node:path';+import js from '@eslint/js';+import tseslint from 'typescript-eslint';+import eslintReact from '@eslint-react/eslint-plugin';+import reactCompiler from 'eslint-plugin-react-compiler';+import astryxPlugin from './internal/eslint-plugin-astryx/index.js';/* global process */@@ -24,8 +24,11 @@ import astryxPlugin from "./internal/eslint-plugin-astryx/index.js";* CI=true pnpm lint # Also triggers strict mode*/-const isStrictMode = process.env.ASTRYX_STRICT_LINT === '1' || process.env.CI === 'true';-const astryxConfig = isStrictMode ? astryxPlugin.configs.strict : astryxPlugin.configs.recommended;+const isStrictMode =+ process.env.ASTRYX_STRICT_LINT === '1' || process.env.CI === 'true';+const astryxConfig = isStrictMode+ ? astryxPlugin.configs.strict+ : astryxPlugin.configs.recommended;const reactSeverity = isStrictMode ? 'error' : 'warn';// The internal plugin is plain untyped JS (kept out of the lint/type surface),@@ -48,20 +51,23 @@ const astryxEslintPlugin = /** @type {import('eslint').ESLint.Plugin} */ (* needs its directory as `basePath`.*/const gitignoreDirs = [- "apps/docsite",- "apps/sandbox",- "apps/template-viewer",- "internal/vibe-tests",- "packages/build",- "packages/cli",+ 'apps/docsite',+ 'apps/sandbox',+ 'apps/template-viewer',+ 'internal/vibe-tests',+ 'packages/build',+ 'packages/cli',];const gitignores = [- includeIgnoreFile(path.join(import.meta.dirname, ".gitignore"), "root .gitignore"),- ...gitignoreDirs.map((dir) => ({+ includeIgnoreFile(+ path.join(import.meta.dirname, '.gitignore'),+ 'root .gitignore',+ ),+ ...gitignoreDirs.map(dir => ({basePath: dir,...includeIgnoreFile(- path.join(import.meta.dirname, dir, ".gitignore"),+ path.join(import.meta.dirname, dir, '.gitignore'),`${dir}/.gitignore`,),})),@@ -81,45 +87,48 @@ export default defineConfig({ignores: [// dist/** and node_modules/** come from the .gitignore imports above.- ".claude/**",- "**/internal/eslint-plugin-astryx/**",- ".github/scripts/**",- "scripts/**",+ '.claude/**',+ '**/internal/eslint-plugin-astryx/**',+ '.github/scripts/**',+ 'scripts/**',+ // Canonical consumer fixtures are validated and built in copied,+ // standalone sandboxes rather than linted as workspace source.+ 'internal/vibe-tests/fixtures/**',// Changesets tooling (custom changelog module + config) is CommonJS// build/release glue, not shipped source — keep it out of the TS/ESM// lint pass (consistent with scripts/** above).- ".changeset/**",+ '.changeset/**',// .mjs is ignored everywhere EXCEPT the CLI package, whose runtime is// entirely .mjs. The negations below opt packages/cli back into linting// (see the dedicated CLI block lower down). Scoped to packages/cli on// purpose — other packages' .mjs stay unlinted (#2468).- "**/*.mjs",- "!packages/cli/api/**/*.mjs",- "!packages/cli/clients/cli/**/*.mjs",- "!packages/cli/assets/codemods/**/*.mjs",- "!packages/cli/authoring/**/*.mjs",- "!packages/cli/lib/**/*.mjs",- "!packages/cli/utils/**/*.mjs",- "!packages/cli/foundation/**/*.mjs",- "!packages/cli/clients/cli/bin/**/*.mjs",- "**/*.test-violations.tsx",- "apps/example-nextjs/*.js",+ '**/*.mjs',+ '!packages/cli/api/**/*.mjs',+ '!packages/cli/clients/cli/**/*.mjs',+ '!packages/cli/assets/codemods/**/*.mjs',+ '!packages/cli/authoring/**/*.mjs',+ '!packages/cli/lib/**/*.mjs',+ '!packages/cli/utils/**/*.mjs',+ '!packages/cli/foundation/**/*.mjs',+ '!packages/cli/clients/cli/bin/**/*.mjs',+ '**/*.test-violations.tsx',+ 'apps/example-nextjs/*.js',// Generated declaration files (e.g. the CLI's `./api` type surface emitted// from JSDoc by `sync:api-types` at prepack). Like `**/*.d.ts`, these are// build artifacts — not hand-authored source to lint.- "**/*.d.mts",- "**/next-env.d.ts",- "**/.next/**",- "apps/example-nextjs-source/*.js",- "apps/docsite/*.js",- "apps/docsite/scripts/**",- "apps/sandbox/*.js",- "apps/sandbox/out/**",- "packages/build/**",+ '**/*.d.mts',+ '**/next-env.d.ts',+ '**/.next/**',+ 'apps/example-nextjs-source/*.js',+ 'apps/docsite/*.js',+ 'apps/docsite/scripts/**',+ 'apps/sandbox/*.js',+ 'apps/sandbox/out/**',+ 'packages/build/**',],},{- files: ["**/*.{ts,tsx}"],+ files: ['**/*.{ts,tsx}'],languageOptions: {parserOptions: {ecmaFeatures: {@@ -128,22 +137,28 @@ export default defineConfig(},},rules: {- "@typescript-eslint/no-unused-vars": ["warn", {- argsIgnorePattern: "^_",- varsIgnorePattern: "^_",- destructuredArrayIgnorePattern: "^_",- caughtErrorsIgnorePattern: "^_",- }],- "no-console": ["warn", { allow: ["warn", "error"] }],- "curly": "warn",- "@typescript-eslint/no-non-null-assertion": "warn",- "@typescript-eslint/consistent-type-assertions": ["warn", {- assertionStyle: "as",- objectLiteralTypeAssertions: "never",- }],- "@typescript-eslint/consistent-type-imports": [- "warn",- {fixStyle: "inline-type-imports"},+ '@typescript-eslint/no-unused-vars': [+ 'warn',+ {+ argsIgnorePattern: '^_',+ varsIgnorePattern: '^_',+ destructuredArrayIgnorePattern: '^_',+ caughtErrorsIgnorePattern: '^_',+ },+ ],+ 'no-console': ['warn', {allow: ['warn', 'error']}],+ curly: 'warn',+ '@typescript-eslint/no-non-null-assertion': 'warn',+ '@typescript-eslint/consistent-type-assertions': [+ 'warn',+ {+ assertionStyle: 'as',+ objectLiteralTypeAssertions: 'never',+ },+ ],+ '@typescript-eslint/consistent-type-imports': [+ 'warn',+ {fixStyle: 'inline-type-imports'},],},},@@ -151,50 +166,50 @@ export default defineConfig(// measurable startup cost, but catches async correctness issues syntax-only// lint cannot see.{- files: ["packages/core/src/**/*.{ts,tsx}"],+ files: ['packages/core/src/**/*.{ts,tsx}'],languageOptions: {parserOptions: {projectService: true,},},rules: {- "@typescript-eslint/array-type": [+ '@typescript-eslint/array-type': [reactSeverity,- {default: "array", readonly: "generic"},+ {default: 'array', readonly: 'generic'},],- "@typescript-eslint/await-thenable": reactSeverity,- "@typescript-eslint/no-array-delete": reactSeverity,- "@typescript-eslint/no-base-to-string": reactSeverity,- "@typescript-eslint/no-duplicate-type-constituents": reactSeverity,- "@typescript-eslint/no-dynamic-delete": reactSeverity,- "@typescript-eslint/no-floating-promises": reactSeverity,- "@typescript-eslint/no-for-in-array": reactSeverity,- "@typescript-eslint/no-implied-eval": reactSeverity,- "@typescript-eslint/no-import-type-side-effects": reactSeverity,- "@typescript-eslint/no-invalid-void-type": reactSeverity,- "@typescript-eslint/no-misused-promises": reactSeverity,- "@typescript-eslint/no-unnecessary-type-conversion": reactSeverity,- "@typescript-eslint/no-unnecessary-type-assertion": reactSeverity,- "@typescript-eslint/no-useless-default-assignment": reactSeverity,- "@typescript-eslint/no-redeclare": reactSeverity,- "@typescript-eslint/only-throw-error": reactSeverity,- "@typescript-eslint/prefer-includes": reactSeverity,- "@typescript-eslint/prefer-string-starts-ends-with": reactSeverity,- "@typescript-eslint/promise-function-async": [+ '@typescript-eslint/await-thenable': reactSeverity,+ '@typescript-eslint/no-array-delete': reactSeverity,+ '@typescript-eslint/no-base-to-string': reactSeverity,+ '@typescript-eslint/no-duplicate-type-constituents': reactSeverity,+ '@typescript-eslint/no-dynamic-delete': reactSeverity,+ '@typescript-eslint/no-floating-promises': reactSeverity,+ '@typescript-eslint/no-for-in-array': reactSeverity,+ '@typescript-eslint/no-implied-eval': reactSeverity,+ '@typescript-eslint/no-import-type-side-effects': reactSeverity,+ '@typescript-eslint/no-invalid-void-type': reactSeverity,+ '@typescript-eslint/no-misused-promises': reactSeverity,+ '@typescript-eslint/no-unnecessary-type-conversion': reactSeverity,+ '@typescript-eslint/no-unnecessary-type-assertion': reactSeverity,+ '@typescript-eslint/no-useless-default-assignment': reactSeverity,+ '@typescript-eslint/no-redeclare': reactSeverity,+ '@typescript-eslint/only-throw-error': reactSeverity,+ '@typescript-eslint/prefer-includes': reactSeverity,+ '@typescript-eslint/prefer-string-starts-ends-with': reactSeverity,+ '@typescript-eslint/promise-function-async': [reactSeverity,{allowAny: false},],- "@typescript-eslint/require-array-sort-compare": reactSeverity,- "@typescript-eslint/restrict-plus-operands": reactSeverity,- "@typescript-eslint/restrict-template-expressions": reactSeverity,- "@typescript-eslint/return-await": reactSeverity,- "@typescript-eslint/switch-exhaustiveness-check": reactSeverity,+ '@typescript-eslint/require-array-sort-compare': reactSeverity,+ '@typescript-eslint/restrict-plus-operands': reactSeverity,+ '@typescript-eslint/restrict-template-expressions': reactSeverity,+ '@typescript-eslint/return-await': reactSeverity,+ '@typescript-eslint/switch-exhaustiveness-check': reactSeverity,},},// Copyright header — all source files must have the Meta copyright notice{- files: ["**/*.{ts,tsx}"],- ignores: ["**/*.d.ts", "**/dist/**"],+ files: ['**/*.{ts,tsx}'],+ ignores: ['**/*.d.ts', '**/dist/**'],plugins: {'@astryx': astryxEslintPlugin,},@@ -210,8 +225,8 @@ export default defineConfig(// copy into their own apps, and the @eslint-react DOM rules below are scoped// to packages/core/src.{- files: ["**/*.{ts,tsx}"],- ignores: ["**/*.d.ts", "**/dist/**"],+ files: ['**/*.{ts,tsx}'],+ ignores: ['**/*.d.ts', '**/dist/**'],plugins: {'@astryx': astryxEslintPlugin,},@@ -225,10 +240,10 @@ export default defineConfig(// infrastructure boundary. Lab adopts this gate when a component graduates.{files: [- "packages/core/src/**/*.{ts,tsx}",- "packages/charts/src/**/*.{ts,tsx}",- "packages/richtext/src/**/*.{ts,tsx}",- "packages/vega/src/**/*.{ts,tsx}",+ 'packages/core/src/**/*.{ts,tsx}',+ 'packages/charts/src/**/*.{ts,tsx}',+ 'packages/richtext/src/**/*.{ts,tsx}',+ 'packages/vega/src/**/*.{ts,tsx}',],plugins: {'@astryx': astryxEslintPlugin,@@ -239,20 +254,23 @@ export default defineConfig(},// Astryx design token enforcement - applies to core package (excluding theme files){- files: ["packages/core/src/**/*.{ts,tsx}"],- ignores: ["packages/core/src/theme/**"],+ files: ['packages/core/src/**/*.{ts,tsx}'],+ ignores: ['packages/core/src/theme/**'],...astryxConfig,rules: {...astryxConfig.rules,// Temporarily allow Children.* in files that need architectural fixes.// Tracked: OverflowList, MetadataList, Carousel need data-driven APIs.- '@astryx/no-react-introspection': ['error', {- allowFiles: [- 'OverflowList/OverflowList',- 'MetadataList/MetadataList',- 'Carousel/Carousel',- ],- }],+ '@astryx/no-react-introspection': [+ 'error',+ {+ allowFiles: [+ 'OverflowList/OverflowList',+ 'MetadataList/MetadataList',+ 'Carousel/Carousel',+ ],+ },+ ],// announce() live-region messages are user-facing text; the rule checks// them as call arguments (callees defaults to ['announce']).'@astryx/no-hardcoded-i18n-string': isStrictMode ? 'error' : 'warn',@@ -262,7 +280,7 @@ export default defineConfig(// ships, so these two rules reach past core: lab components are consumed// the same way, and lab is where the next core component comes from.{- files: ["packages/lab/src/**/*.{ts,tsx}"],+ files: ['packages/lab/src/**/*.{ts,tsx}'],plugins: {'@astryx': astryxEslintPlugin,},@@ -282,7 +300,7 @@ export default defineConfig(// they should read — a token decision, not a mechanical one. Flip to// 'error' once that lands.{- files: ["packages/lab/src/**/*.{ts,tsx}"],+ files: ['packages/lab/src/**/*.{ts,tsx}'],plugins: {'@astryx': astryxEslintPlugin,},@@ -301,10 +319,10 @@ export default defineConfig(// substitution. Promote to 'error' per package as each reaches zero.{files: [- "packages/lab/src/**/*.{ts,tsx}",- "packages/charts/src/**/*.{ts,tsx}",- "packages/richtext/src/**/*.{ts,tsx}",- "packages/vega/src/**/*.{ts,tsx}",+ 'packages/lab/src/**/*.{ts,tsx}',+ 'packages/charts/src/**/*.{ts,tsx}',+ 'packages/richtext/src/**/*.{ts,tsx}',+ 'packages/vega/src/**/*.{ts,tsx}',],plugins: {'@astryx': astryxEslintPlugin,@@ -317,7 +335,7 @@ export default defineConfig(// package resolves against; a "hardcoded string" check against it would be// circular. Turn off @astryx/no-hardcoded-i18n-string just for this dir.{- files: ["packages/core/src/i18n/**/*.{ts,tsx}"],+ files: ['packages/core/src/i18n/**/*.{ts,tsx}'],rules: {'@astryx/no-hardcoded-i18n-string': 'off',},@@ -326,7 +344,7 @@ export default defineConfig(// Uses @eslint-react for bugs that TypeScript alone cannot catch.// Children.*/cloneElement are already covered by @astryx/no-react-introspection.{- files: ["packages/core/src/**/*.{ts,tsx}"],+ files: ['packages/core/src/**/*.{ts,tsx}'],plugins: {...eslintReact.configs.recommended.plugins,'react-compiler': reactCompiler,@@ -361,7 +379,8 @@ export default defineConfig('@eslint-react/dom-no-missing-iframe-sandbox': reactSeverity,'@eslint-react/dom-no-void-elements-with-children': reactSeverity,'@eslint-react/dom-no-dangerously-set-innerhtml': reactSeverity,- '@eslint-react/dom-no-dangerously-set-innerhtml-with-children': reactSeverity,+ '@eslint-react/dom-no-dangerously-set-innerhtml-with-children':+ reactSeverity,'@eslint-react/dom-no-find-dom-node': reactSeverity,'@eslint-react/dom-no-flush-sync': reactSeverity,'@eslint-react/dom-no-script-url': reactSeverity,@@ -399,7 +418,7 @@ export default defineConfig(},// App preview surfaces may embed local pages, but every iframe must be sandboxed.{- files: ["apps/docsite/**/*.{ts,tsx}", "apps/sandbox/**/*.{ts,tsx}"],+ files: ['apps/docsite/**/*.{ts,tsx}', 'apps/sandbox/**/*.{ts,tsx}'],plugins: {...eslintReact.configs.recommended.plugins,},@@ -410,9 +429,9 @@ export default defineConfig(// Browser documentation/demo surfaces should avoid unsafe new-tab links.{files: [- "apps/docsite/**/*.{ts,tsx}",- "apps/sandbox/**/*.{ts,tsx}",- "apps/storybook/**/*.{ts,tsx}",+ 'apps/docsite/**/*.{ts,tsx}',+ 'apps/sandbox/**/*.{ts,tsx}',+ 'apps/storybook/**/*.{ts,tsx}',],plugins: {...eslintReact.configs.recommended.plugins,@@ -424,29 +443,29 @@ export default defineConfig(// Test files — relax rules for test ergonomics (must be after React rules// block so it overrides react-compiler/react-compiler){- files: ["**/*.test.{ts,tsx}", "**/*.perf.test.{ts,tsx}"],+ files: ['**/*.test.{ts,tsx}', '**/*.perf.test.{ts,tsx}'],rules: {- "no-console": "off",- "@typescript-eslint/no-non-null-assertion": "off",- "@typescript-eslint/consistent-type-assertions": "off",- "react-compiler/react-compiler": "off",+ 'no-console': 'off',+ '@typescript-eslint/no-non-null-assertion': 'off',+ '@typescript-eslint/consistent-type-assertions': 'off',+ 'react-compiler/react-compiler': 'off',// Test harnesses wrap components in sized/positioned <div>s to set up a// scenario; that scaffolding is not shipped DOM.- "@astryx/no-style-only-wrapper": "off",+ '@astryx/no-style-only-wrapper': 'off',},},// Non-production code — allow console.log for demos, tools, and examples{files: [- "apps/storybook/stories/**/*.{ts,tsx}",- "apps/docsite/src/generated/**/*.{ts,tsx}",- "apps/sandbox/**/*.{ts,tsx}",- "apps/example-*/**/*.{ts,tsx}",- "internal/**/*.{ts,tsx}",- "packages/cli/assets/templates/**/*.{ts,tsx}",+ 'apps/storybook/stories/**/*.{ts,tsx}',+ 'apps/docsite/src/generated/**/*.{ts,tsx}',+ 'apps/sandbox/**/*.{ts,tsx}',+ 'apps/example-*/**/*.{ts,tsx}',+ 'internal/**/*.{ts,tsx}',+ 'packages/cli/assets/templates/**/*.{ts,tsx}',],rules: {- "no-console": "off",+ 'no-console': 'off',},},// CLI runtime (.mjs). The CLI ships as ESM Node modules and was never linted@@ -455,69 +474,72 @@ export default defineConfig(// contract (#2467) at author time via @astryx/no-raw-console-cli.{files: [- "packages/cli/api/**/*.mjs",- "packages/cli/clients/cli/**/*.mjs",- "packages/cli/assets/codemods/**/*.mjs",- "packages/cli/authoring/**/*.mjs",- "packages/cli/lib/**/*.mjs",- "packages/cli/utils/**/*.mjs",- "packages/cli/foundation/**/*.mjs",- "packages/cli/clients/cli/bin/**/*.mjs",+ 'packages/cli/api/**/*.mjs',+ 'packages/cli/clients/cli/**/*.mjs',+ 'packages/cli/assets/codemods/**/*.mjs',+ 'packages/cli/authoring/**/*.mjs',+ 'packages/cli/lib/**/*.mjs',+ 'packages/cli/utils/**/*.mjs',+ 'packages/cli/foundation/**/*.mjs',+ 'packages/cli/clients/cli/bin/**/*.mjs',],plugins: {'@astryx': astryxEslintPlugin,},languageOptions: {- sourceType: "module",+ sourceType: 'module',globals: {// Node globals (no `globals` package dependency in this repo).- process: "readonly",- console: "readonly",- Buffer: "readonly",- URL: "readonly",- URLSearchParams: "readonly",- TextEncoder: "readonly",- TextDecoder: "readonly",- setTimeout: "readonly",- clearTimeout: "readonly",- setInterval: "readonly",- clearInterval: "readonly",- setImmediate: "readonly",- clearImmediate: "readonly",- queueMicrotask: "readonly",- __dirname: "readonly",- __filename: "readonly",- global: "readonly",- globalThis: "readonly",- structuredClone: "readonly",- fetch: "readonly",- AbortController: "readonly",+ process: 'readonly',+ console: 'readonly',+ Buffer: 'readonly',+ URL: 'readonly',+ URLSearchParams: 'readonly',+ TextEncoder: 'readonly',+ TextDecoder: 'readonly',+ setTimeout: 'readonly',+ clearTimeout: 'readonly',+ setInterval: 'readonly',+ clearInterval: 'readonly',+ setImmediate: 'readonly',+ clearImmediate: 'readonly',+ queueMicrotask: 'readonly',+ __dirname: 'readonly',+ __filename: 'readonly',+ global: 'readonly',+ globalThis: 'readonly',+ structuredClone: 'readonly',+ fetch: 'readonly',+ AbortController: 'readonly',},},rules: {- "@typescript-eslint/no-unused-vars": ["error", {- argsIgnorePattern: "^_",- varsIgnorePattern: "^_",- destructuredArrayIgnorePattern: "^_",- caughtErrorsIgnorePattern: "^_",- }],+ '@typescript-eslint/no-unused-vars': [+ 'error',+ {+ argsIgnorePattern: '^_',+ varsIgnorePattern: '^_',+ destructuredArrayIgnorePattern: '^_',+ caughtErrorsIgnorePattern: '^_',+ },+ ],// Bare console.log corrupts --json stdout. Route human chatter through// humanLog(); console.error/console.warn (stderr) stay allowed.- "@astryx/no-raw-console-cli": "error",+ '@astryx/no-raw-console-cli': 'error',},},// Copyright header for CLI .mjs sources (the main copyright block only// covers .ts/.tsx).{files: [- "packages/cli/api/**/*.mjs",- "packages/cli/clients/cli/**/*.mjs",- "packages/cli/assets/codemods/**/*.mjs",- "packages/cli/authoring/**/*.mjs",- "packages/cli/lib/**/*.mjs",- "packages/cli/utils/**/*.mjs",- "packages/cli/foundation/**/*.mjs",- "packages/cli/clients/cli/bin/**/*.mjs",+ 'packages/cli/api/**/*.mjs',+ 'packages/cli/clients/cli/**/*.mjs',+ 'packages/cli/assets/codemods/**/*.mjs',+ 'packages/cli/authoring/**/*.mjs',+ 'packages/cli/lib/**/*.mjs',+ 'packages/cli/utils/**/*.mjs',+ 'packages/cli/foundation/**/*.mjs',+ 'packages/cli/clients/cli/bin/**/*.mjs',],plugins: {'@astryx': astryxEslintPlugin,@@ -537,48 +559,65 @@ export default defineConfig(// authoring/ is pure data contracts + sealed parsers: it sits below every// other layer and imports none of them.{- files: ["packages/cli/authoring/**/*.mjs"],+ files: ['packages/cli/authoring/**/*.mjs'],rules: {- "no-restricted-imports": ["error", {- patterns: [{- group: ["**/api/**", "**/clients/**", "**/foundation/**"],- message:- "authoring/ is pure data contracts (types + sealed parsers) and must not import api/, clients/, or foundation/. Move shared behavior down into the contract, or invert the dependency.",- }],- }],+ 'no-restricted-imports': [+ 'error',+ {+ patterns: [+ {+ group: ['**/api/**', '**/clients/**', '**/foundation/**'],+ message:+ 'authoring/ is pure data contracts (types + sealed parsers) and must not import api/, clients/, or foundation/. Move shared behavior down into the contract, or invert the dependency.',+ },+ ],+ },+ ],},},// api/ is the behavior source of truth — it must never reach up into the// CLI presentation layer (that's what keeps `astryx --json` and the imported// function returning identical data).{- files: ["packages/cli/api/**/*.mjs"],+ files: ['packages/cli/api/**/*.mjs'],rules: {- "no-restricted-imports": ["error", {- patterns: [{- group: ["**/clients/**"],- message:- "api/ is the behavior source of truth and must not import clients/ (the CLI presentation layer). Return data in the { type, data } envelope and let the command handler render it.",- }],- paths: [{- name: "zod",- message:- "zod is sealed behind the authoring/ parsers. Validate at the load boundary (parseDoc/parseConfig/parseIntegration) and pass typed data inward.",- }],- }],+ 'no-restricted-imports': [+ 'error',+ {+ patterns: [+ {+ group: ['**/clients/**'],+ message:+ 'api/ is the behavior source of truth and must not import clients/ (the CLI presentation layer). Return data in the { type, data } envelope and let the command handler render it.',+ },+ ],+ paths: [+ {+ name: 'zod',+ message:+ 'zod is sealed behind the authoring/ parsers. Validate at the load boundary (parseDoc/parseConfig/parseIntegration) and pass typed data inward.',+ },+ ],+ },+ ],},},// Everything above the contracts consumes already-parsed, typed data.{- files: ["packages/cli/clients/**/*.mjs"],+ files: ['packages/cli/clients/**/*.mjs'],rules: {- "no-restricted-imports": ["error", {- paths: [{- name: "zod",- message:- "zod is sealed behind the authoring/ parsers. Validate at the load boundary (parseDoc/parseConfig/parseIntegration) and pass typed data inward.",- }],- }],+ 'no-restricted-imports': [+ 'error',+ {+ paths: [+ {+ name: 'zod',+ message:+ 'zod is sealed behind the authoring/ parsers. Validate at the load boundary (parseDoc/parseConfig/parseIntegration) and pass typed data inward.',+ },+ ],+ },+ ],},},// foundation/ is the bottom layer: cross-cutting infra that the layers above@@ -587,46 +626,56 @@ export default defineConfig(// imported Project back — a cycle across the layer boundary. The adapter and// the contribution validators now live in foundation, where their callers are.){- files: ["packages/cli/foundation/**/*.mjs"],+ files: ['packages/cli/foundation/**/*.mjs'],rules: {- "no-restricted-imports": ["error", {- patterns: [{- group: ["**/api/**", "**/clients/**"],- message:- "foundation/ is the bottom layer and must not import api/ or clients/. If foundation needs it, it belongs in foundation — move it down rather than reaching up.",- }],- paths: [{- name: "zod",- message:- "zod is sealed behind the authoring/ parsers. Validate at the load boundary (parseDoc/parseConfig/parseIntegration) and pass typed data inward.",- }],- }],+ 'no-restricted-imports': [+ 'error',+ {+ patterns: [+ {+ group: ['**/api/**', '**/clients/**'],+ message:+ 'foundation/ is the bottom layer and must not import api/ or clients/. If foundation needs it, it belongs in foundation — move it down rather than reaching up.',+ },+ ],+ paths: [+ {+ name: 'zod',+ message:+ 'zod is sealed behind the authoring/ parsers. Validate at the load boundary (parseDoc/parseConfig/parseIntegration) and pass typed data inward.',+ },+ ],+ },+ ],},},// A command's --help and its manifest entry are generated from its colocated// CommandDoc via defineCommand. Registering straight onto Commander bypasses// the doc, so the docs silently stop describing the real CLI.{- files: ["packages/cli/clients/cli/commands/**/*.mjs"],+ files: ['packages/cli/clients/cli/commands/**/*.mjs'],rules: {- "no-restricted-syntax": ["error", {- selector:- "CallExpression[callee.type='MemberExpression'][callee.property.name='command']",- message:- "Register commands with defineCommand(parent, doc, {fn, action}) so --help and the manifest come from the colocated CommandDoc. See CONTRIBUTING > Working on the astryx CLI.",- }],+ 'no-restricted-syntax': [+ 'error',+ {+ selector:+ "CallExpression[callee.type='MemberExpression'][callee.property.name='command']",+ message:+ 'Register commands with defineCommand(parent, doc, {fn, action}) so --help and the manifest come from the colocated CommandDoc. See CONTRIBUTING > Working on the astryx CLI.',+ },+ ],},},// CLI tests — relax author-ergonomics rules (test files emit freely and may// keep intentionally-unused fixtures). Must come after the CLI block above.{- files: ["packages/cli/**/*.test.mjs"],+ files: ['packages/cli/**/*.test.mjs'],rules: {- "@astryx/no-raw-console-cli": "off",- "@typescript-eslint/no-unused-vars": "off",+ '@astryx/no-raw-console-cli': 'off',+ '@typescript-eslint/no-unused-vars': 'off',// Tests build fixtures directly against zod and Commander.- "no-restricted-imports": "off",- "no-restricted-syntax": "off",+ 'no-restricted-imports': 'off',+ 'no-restricted-syntax': 'off',},},);diff --git a/internal/vibe-tests/.gitignore b/internal/vibe-tests/.gitignoreindex f55dd97408..0a053d21bd 100644--- a/internal/vibe-tests/.gitignore+++ b/internal/vibe-tests/.gitignore@@ -18,4 +18,7 @@ results/# Preview build temp dirs.preview-tmp*++# Canonical fixture run sandboxes+.fixture-runs/# .baseline/ is committed (real shadcn components for type checking)diff --git a/internal/vibe-tests/README.md b/internal/vibe-tests/README.mdindex 9188db8ff7..7d0b8f9a63 100644--- a/internal/vibe-tests/README.md+++ b/internal/vibe-tests/README.md@@ -137,7 +137,7 @@ See [`docs/execution-provenance.md`](docs/execution-provenance.md) for the schem```internal/vibe-tests/├── test-sets/ # Prompt batteries (JSON)-├── src/ # Runner scripts and evaluation+├── src/ # Runner scripts, evaluation, and fixture guards│ ├── setup-nightly.mjs # 4-target nightly setup│ ├── universal-eval.ts # Static analysis scoring (5 dimensions)│ ├── universal-aggregate.ts # Score aggregation@@ -146,7 +146,38 @@ internal/vibe-tests/│ ├── screenshot-previews.ts # Playwright screenshots│ ├── build-report.ts # Vite HTML report│ └── deploy-report.ts # gh-pages deployment+├── fixtures/ # Immutable standalone consumer-app fixtures+├── fixture-recipes/ # Pinned provenance and SHA-256 manifests+├── scripts/ # Fixture setup plus report helpers├── .baseline/ # Real shadcn/ui components for baseline tsc├── results/ # Iteration results (gitignored)└── README.md # This file```++## Canonical fixture suite++The app under `fixtures/` is a plain Tailwind v4 control with no design-system+semantics. It is a standalone package with exact dependencies and its own+lockfile, and it does not have Astryx installed.++Treat canonical fixture files as immutable inputs. Setup validates their pinned+recipe and SHA-256 manifest, then copies the listed files into a sandbox without+writing into the canonical directory:++```bash+pnpm -F @astryxdesign/vibe-tests fixtures:verify+pnpm -F @astryxdesign/vibe-tests fixtures:prepare -- tailwind-v4-control --output /tmp/tailwind-control-run+pnpm -F @astryxdesign/vibe-tests fixtures:build+```++When intentionally refreshing a fixture, update its pinned recipe, regenerate+its lockfile, review the authored patches, and refresh the recorded hashes:++```bash+pnpm -F @astryxdesign/vibe-tests fixtures:refresh -- tailwind-v4-control+```++The root repository guard verifies provenance, exact manifests, deterministic+source, dependency isolation, workspace exclusion, and separation from every+publishable package root. This keeps future setup or migration tests independent+of any unlanded harness branch.diff --git a/internal/vibe-tests/fixture-recipes/tailwind-v4-control.json b/internal/vibe-tests/fixture-recipes/tailwind-v4-control.jsonnew file mode 100644index 0000000000..9402da06ef--- /dev/null+++ b/internal/vibe-tests/fixture-recipes/tailwind-v4-control.json@@ -0,0 +1,42 @@+{+ "schemaVersion": 1,+ "fixture": "tailwind-v4-control",+ "synthetic": false,+ "source": "https://github.com/vitejs/vite",+ "generator": "create-vite",+ "version": "9.2.0",+ "commit": "57f0bf51a08dec0ec507258434cead9b72718e3f",+ "license": "MIT",+ "commands": [+ {+ "command": "pnpm dlx [email protected] tailwind-v4-control --template react-ts --no-interactive",+ "flags": ["--template", "react-ts", "--no-interactive"]+ },+ {+ "command": "pnpm add [email protected] @tailwindcss/[email protected]",+ "flags": []+ }+ ],+ "authoredPatches": [+ "Pinned every dependency, pnpm, and the Node 24 range.",+ "Added the Tailwind Vite plugin and only background/foreground semantic variables.",+ "Replaced the starter screen with fixed host controls, a form, and a table."+ ],+ "refresh": {+ "command": "pnpm -F @astryxdesign/vibe-tests fixtures:refresh -- tailwind-v4-control",+ "notes": "Regenerate from the pinned commands, reapply the authored patches, regenerate the lockfile, then refresh this manifest."+ },+ "manifest": {+ "algorithm": "sha256",+ "files": {+ "index.html": "d8daff351fd28efd42676b86e34c9312cf08410898a07f025082d619fe933240",+ "package.json": "6388776258b624beb19538053dd7103c02f70024f3f4be79e4d7c489797db986",+ "pnpm-lock.yaml": "5b50b51c8b1f5045813b3fbdcf9842527e684b34eb7aa1129a7c496b0be3158c",+ "src/App.tsx": "fbd7fda6dc358d5be9c71484fe8afebf329079a46e737c375cee0c2b667cf6cb",+ "src/index.css": "40c956dc7a7bfedf424aa3be1384390e728b912df21d3a0a55bfd0bbb01a0092",+ "src/main.tsx": "47cc0b4b1cc9e21351c3a37b160d7f64277f59cd57937659022cdae97608a6a5",+ "tsconfig.json": "39e5a743eb4be3f35a40bb28a216567a2df28de553728b5e9fb545ace0a2042c",+ "vite.config.ts": "c5f65f5b80994105ba79afc20590c2e42ca0c67166dfaf250269eb0bab9db3b6"+ }+ }+}diff --git a/internal/vibe-tests/fixtures/README.md b/internal/vibe-tests/fixtures/README.mdnew file mode 100644index 0000000000..0ae66f7e1f--- /dev/null+++ b/internal/vibe-tests/fixtures/README.md@@ -0,0 +1,10 @@+# Consumer fixture gallery++This deterministic app is the low-semantic control for setup testing. The screenshot documents its production build; it is not a golden test.++| Plain Tailwind control |+| ------------------------------------------------------------------------------------------------------------------------------------- |+|  |+| A minimal Tailwind app that catches setup steps that assume an existing semantic theme or change baseline utility and reset behavior. |++The gallery is capped at 250 KiB per PNG and 300 KiB total.diff --git a/internal/vibe-tests/fixtures/assets/tailwind-v4-control-light.png b/internal/vibe-tests/fixtures/assets/tailwind-v4-control-light.pngnew file mode 100644index 0000000000..5606de9f0dBinary files /dev/null and b/internal/vibe-tests/fixtures/assets/tailwind-v4-control-light.png differdiff --git a/internal/vibe-tests/fixtures/tailwind-v4-control/index.html b/internal/vibe-tests/fixtures/tailwind-v4-control/index.htmlnew file mode 100644index 0000000000..e60304d1b9--- /dev/null+++ b/internal/vibe-tests/fixtures/tailwind-v4-control/index.html@@ -0,0 +1,14 @@+<!-- Copyright (c) Meta Platforms, Inc. and affiliates. -->++<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>Tailwind v4 control fixture</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/internal/vibe-tests/fixtures/tailwind-v4-control/package.json b/internal/vibe-tests/fixtures/tailwind-v4-control/package.jsonnew file mode 100644index 0000000000..6b0759ebde--- /dev/null+++ b/internal/vibe-tests/fixtures/tailwind-v4-control/package.json@@ -0,0 +1,31 @@+{+ "name": "tailwind-v4-control-fixture",+ "version": "0.0.0",+ "private": true,+ "type": "module",+ "license": "MIT",+ "packageManager": "[email protected]",+ "engines": {+ "node": ">=24 <25"+ },+ "scripts": {+ "dev": "vite",+ "typecheck": "tsc --noEmit",+ "build": "tsc --noEmit && vite build",+ "preview": "vite preview"+ },+ "dependencies": {+ "react": "19.2.8",+ "react-dom": "19.2.8",+ "tailwindcss": "4.3.3"+ },+ "devDependencies": {+ "@tailwindcss/vite": "4.3.3",+ "@types/node": "24.13.3",+ "@types/react": "19.2.18",+ "@types/react-dom": "19.2.5",+ "@vitejs/plugin-react": "6.1.0",+ "typescript": "6.0.2",+ "vite": "8.2.2"+ }+}diff --git a/internal/vibe-tests/fixtures/tailwind-v4-control/pnpm-lock.yaml b/internal/vibe-tests/fixtures/tailwind-v4-control/pnpm-lock.yamlnew file mode 100644index 0000000000..1d2abf5123--- /dev/null+++ b/internal/vibe-tests/fixtures/tailwind-v4-control/pnpm-lock.yaml@@ -0,0 +1,1171 @@+lockfileVersion: '9.0'++settings:+ autoInstallPeers: true+ excludeLinksFromLockfile: false++importers:+ .:+ dependencies:+ react:+ specifier: 19.2.8+ version: 19.2.8+ react-dom:+ specifier: 19.2.8+ version: 19.2.8([email protected])+ tailwindcss:+ specifier: 4.3.3+ version: 4.3.3+ devDependencies:+ '@tailwindcss/vite':+ specifier: 4.3.3+ '@types/node':+ specifier: 24.13.3+ version: 24.13.3+ '@types/react':+ specifier: 19.2.18+ version: 19.2.18+ '@types/react-dom':+ specifier: 19.2.5+ version: 19.2.5(@types/[email protected])+ '@vitejs/plugin-react':+ specifier: 6.1.0+ typescript:+ specifier: 6.0.2+ version: 6.0.2+ vite:+ specifier: 8.2.2+ version: 8.2.2(@types/[email protected])([email protected])++packages:+ '@jridgewell/[email protected]':+ resolution:+ {+ integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==,+ }++ '@jridgewell/[email protected]':+ resolution:+ {+ integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==,+ }++ '@jridgewell/[email protected]':+ resolution:+ {+ integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==,+ }+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution:+ {+ integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==,+ }++ '@jridgewell/[email protected]':+ resolution:+ {+ integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==,+ }++ '@oxc-project/[email protected]':+ resolution:+ {+ integrity: sha512-XC0QsnnhVe7sLIWmYmdPw7x5P0h4W8vUU3Nv1ySgWXtvCz8NizoAEpGXA0sOYoJQV2Rl13LgURAHQ5cI5ILCSA==,+ }++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-DLe/i+l8ynIBY7XEQ191TeZvCoowIGa18R+dIV30GW7DiOtp74i/xX8hs8GUjW5ARV7VZuie3d6AumSmCwbeRA==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [android]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-zXcwKlQApYAOELHd8PwKDFkagYF9Wy4e0RJ+0qnzl9Pjnpj75TEG8ufv40p2J7kCEfwZAsNiuzRIyNNMWT38ig==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-dK4QakI42nzWgJT5sm4y4y/O//D4OxM75/cH28RLV+nzIN9AY+YsbuUVrUTjlLjXR6vpyxFbSsbmNuJ6BP9sww==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [darwin]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-fqSALaUu1Wjd1nK2uW2kJDWdLCc8lx1IcY+MTY26Aurfdx19anlzhqXOgCFbBFQnlFDTn4TC1/7Nz4Bl2mLP3A==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [darwin]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-/vCnNxlkxs9tKxNDcyWUePpJ/PgTzxIaVhoM5SmG8UV+GR/IcPam4VYxi7GIMo7PSDuNqlJqvprqii9NqqVCMw==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-abk0NLA519LxRCszmbE0jYKuQ9YPocOXTiOXOo6Yr+YAT95VH+PtqYAjOJvGKt3viEd/x4qzabAlwd5bHOOARg==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-Y7eALiJ8lr0M2HH103Js+g7V34wf6snlpZLAsHI90uLhr3PVlNsbFVAXJC9d/V6BnPyKtpSwI+NcB/RLxsQxuA==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-xMvZgnbZg4YVnR/AX2b3oOPDTFYJvUVaJg5FedA/LuvexAtXibZQej4cnTkw3rjsJ/ggUROB64TdtETiim+FYA==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-GRjeqTUDHTo5GwntsLaAMcBahG3nlpjftXWZLN73HiYQlhwEowvarFgQnRnQZtIp4keXX7quXFbG38uPZBa2EA==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-vLNTR45F2Uwc8AufkNXPmB4VliaXs+FvcheEogIzOXzO4l+LzieXF5A/TWxLy5HtqpsRCHUfd0lPVrrdgXdLHQ==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-Mgj59/HTuYeK9Gz2MA+mBWKnHsAgkBSec15ZMb1st3oIfFbX7gCjOae7GydHhzcyQi9Z/7M1QuN9bR3oFqF0jQ==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-mY8AP0/ichsbhAxGnLa3d3+MwV0EfgrPND2bplI3Ym8T6R2pJ0N87bvrKVwNXmdy3jnr6eQBecdqx/HMknBmpA==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-8SLssA2oweAxyRgDp789ACfRb/3P+zNRJpzZxSizxF9m8NUDQ4+3xjo8ttjhVGGw6Qxb70oZiEtIjaKikCO7Yw==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [openharmony]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-vGbruD5zquhoc8D9SViXgN2FBJtNdTyQ4DtG+SWiEGlJiAzoKcZ2xp+xuXCffhubVdt0NJlTZqkeRuERy7g8Cw==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-e/SXpgISz+IoqVcSSI0rx/d/he8zqLex+/rCWpnHpmVfmPIUjag9H6P7zotf0gJHwPUhQxZ/mF8tr6acebT9yw==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [win32]++ '@rolldown/[email protected]':+ resolution:+ {+ integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==,+ }++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==,+ }++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==,+ }+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [android]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==,+ }+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==,+ }+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==,+ }+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [freebsd]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==,+ }+ engines: {node: '>= 20'}+ cpu: [arm]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==,+ }+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==,+ }+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==,+ }+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==,+ }+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==,+ }+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]+ bundledDependencies:+ - '@napi-rs/wasm-runtime'+ - '@emnapi/core'+ - '@emnapi/runtime'+ - '@tybys/wasm-util'+ - '@emnapi/wasi-threads'+ - tslib++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==,+ }+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==,+ }+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==,+ }+ engines: {node: '>= 20'}++ '@tailwindcss/[email protected]':+ resolution:+ {+ integrity: sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==,+ }+ peerDependencies:+ vite: ^5.2.0 || ^6 || ^7 || ^8++ '@types/[email protected]':+ resolution:+ {+ integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==,+ }++ '@types/[email protected]':+ resolution:+ {+ integrity: sha512-fMPwH9v7r/pp43yUd2/Mbiex5KouJwwR3dzHkhLREUC6764VyDsqxhAxv6OFEYR1RhjOyD1naqba8ECDBe7ZQg==,+ }+ peerDependencies:+ '@types/react': ^19.2.0++ '@types/[email protected]':+ resolution:+ {+ integrity: sha512-AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w==,+ }++ '@vitejs/[email protected]':+ resolution:+ {+ integrity: sha512-qd2BzUBehkov86WFhg0JkEFEYyCLG9uPCe6qWTY/kRlss9OvJrOF2UbIWT7p+8IzZHkEu0DNGHc4HSv+JdDLsw==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ peerDependencies:+ '@rolldown/plugin-babel': ^0.1.7 || ^0.2.0+ babel-plugin-react-compiler: ^1.0.0+ oxc-transform-react: ^0.145.0+ vite: ^8.0.0+ peerDependenciesMeta:+ '@rolldown/plugin-babel':+ optional: true+ babel-plugin-react-compiler:+ optional: true+ oxc-transform-react:+ optional: true++ resolution:+ {+ integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==,+ }++ resolution:+ {+ integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==,+ }+ engines: {node: '>=8'}++ resolution:+ {+ integrity: sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==,+ }+ engines: {node: '>=10.13.0'}++ resolution:+ {+ integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==,+ }+ engines: {node: '>=12.0.0'}+ peerDependencies:+ picomatch: ^3 || ^4+ peerDependenciesMeta:+ picomatch:+ optional: true++ resolution:+ {+ integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==,+ }+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}+ os: [darwin]++ resolution:+ {+ integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==,+ }++ resolution:+ {+ integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==,+ }+ hasBin: true++ resolution:+ {+ integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [android]++ resolution:+ {+ integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [android]++ resolution:+ {+ integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [darwin]++ resolution:+ {+ integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [darwin]++ resolution:+ {+ integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [darwin]++ resolution:+ {+ integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [darwin]++ resolution:+ {+ integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [freebsd]++ resolution:+ {+ integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [freebsd]++ resolution:+ {+ integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm]+ os: [linux]++ resolution:+ {+ integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm]+ os: [linux]++ resolution:+ {+ integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ resolution:+ {+ integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ resolution:+ {+ integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ resolution:+ {+ integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ resolution:+ {+ integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ resolution:+ {+ integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ resolution:+ {+ integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ resolution:+ {+ integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ resolution:+ {+ integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [win32]++ resolution:+ {+ integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [win32]++ resolution:+ {+ integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [win32]++ resolution:+ {+ integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==,+ }+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [win32]++ resolution:+ {+ integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==,+ }+ engines: {node: '>= 12.0.0'}++ resolution:+ {+ integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==,+ }+ engines: {node: '>= 12.0.0'}++ resolution:+ {+ integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==,+ }++ resolution:+ {+ integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==,+ }+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}+ hasBin: true++ resolution:+ {+ integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==,+ }++ resolution:+ {+ integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==,+ }+ engines: {node: '>=12'}++ resolution:+ {+ integrity: sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==,+ }+ engines: {node: ^10 || ^12 || >=14}++ resolution:+ {+ integrity: sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==,+ }+ peerDependencies:+ react: ^19.2.8++ resolution:+ {+ integrity: sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==,+ }+ engines: {node: '>=0.10.0'}++ resolution:+ {+ integrity: sha512-VD2IE5PUG4Oj8zz2VGykiYd5wbnjdIiSsNQb8Qu5B+noEp+A78mu2iVvpp27g8es14Tk9rofNs5Tku9iQCS4fA==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true++ resolution:+ {+ integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==,+ }++ resolution:+ {+ integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==,+ }+ engines: {node: '>=0.10.0'}++ resolution:+ {+ integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==,+ }++ resolution:+ {+ integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==,+ }+ engines: {node: '>=6'}++ resolution:+ {+ integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==,+ }+ engines: {node: '>=12.0.0'}++ resolution:+ {+ integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==,+ }+ engines: {node: '>=14.17'}+ hasBin: true++ resolution:+ {+ integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==,+ }++ resolution:+ {+ integrity: sha512-cFKLV/PRgAUlIRm5WjMjJ86jrftzpqcgH+Us+DS8mI3CDNiH30Whrz8uHL3+MOLPAgqbMBAqWdAHAphOAM+z/Q==,+ }+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+ peerDependencies:+ '@types/node': ^20.19.0 || >=22.12.0+ '@vitejs/devtools': ^0.4.0 || ^0.5.0+ esbuild: ^0.27.0 || ^0.28.0+ jiti: '>=1.21.0'+ less: ^4.0.0+ sass: ^1.70.0+ sass-embedded: ^1.70.0+ stylus: '>=0.54.8'+ sugarss: ^5.0.0+ terser: ^5.16.0+ tsx: ^4.8.1+ yaml: ^2.4.2+ peerDependenciesMeta:+ '@types/node':+ optional: true+ '@vitejs/devtools':+ optional: true+ esbuild:+ optional: true+ jiti:+ optional: true+ less:+ optional: true+ sass:+ optional: true+ sass-embedded:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ tsx:+ optional: true+ yaml:+ optional: true++snapshots:+ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5+ '@jridgewell/trace-mapping': 0.3.31++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.31++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.5++ '@oxc-project/[email protected]': {}++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]': {}++ '@tailwindcss/[email protected]':+ dependencies:+ '@jridgewell/remapping': 2.3.5+ enhanced-resolve: 5.24.5+ jiti: 2.7.0+ lightningcss: 1.32.0+ magic-string: 0.30.21+ source-map-js: 1.2.1+ tailwindcss: 4.3.3++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optionalDependencies:+ '@tailwindcss/oxide-android-arm64': 4.3.3+ '@tailwindcss/oxide-darwin-arm64': 4.3.3+ '@tailwindcss/oxide-darwin-x64': 4.3.3+ '@tailwindcss/oxide-freebsd-x64': 4.3.3+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.3+ '@tailwindcss/oxide-linux-arm64-gnu': 4.3.3+ '@tailwindcss/oxide-linux-arm64-musl': 4.3.3+ '@tailwindcss/oxide-linux-x64-gnu': 4.3.3+ '@tailwindcss/oxide-linux-x64-musl': 4.3.3+ '@tailwindcss/oxide-wasm32-wasi': 4.3.3+ '@tailwindcss/oxide-win32-arm64-msvc': 4.3.3+ '@tailwindcss/oxide-win32-x64-msvc': 4.3.3++ dependencies:+ '@tailwindcss/node': 4.3.3+ '@tailwindcss/oxide': 4.3.3+ tailwindcss: 4.3.3+ vite: 8.2.2(@types/[email protected])([email protected])++ '@types/[email protected]':+ dependencies:+ undici-types: 7.18.2++ '@types/[email protected](@types/[email protected])':+ dependencies:+ '@types/react': 19.2.18++ '@types/[email protected]':+ dependencies:+ csstype: 3.2.3++ dependencies:+ '@rolldown/pluginutils': 1.0.1+ vite: 8.2.2(@types/[email protected])([email protected])++ [email protected]: {}++ [email protected]: {}++ dependencies:+ graceful-fs: 4.2.11+ tapable: 2.3.3++ optionalDependencies:+ picomatch: 4.0.7++ optional: true++ [email protected]: {}++ [email protected]: {}++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ dependencies:+ detect-libc: 2.1.2+ optionalDependencies:+ lightningcss-android-arm64: 1.32.0+ lightningcss-darwin-arm64: 1.32.0+ lightningcss-darwin-x64: 1.32.0+ lightningcss-freebsd-x64: 1.32.0+ lightningcss-linux-arm-gnueabihf: 1.32.0+ lightningcss-linux-arm64-gnu: 1.32.0+ lightningcss-linux-arm64-musl: 1.32.0+ lightningcss-linux-x64-gnu: 1.32.0+ lightningcss-linux-x64-musl: 1.32.0+ lightningcss-win32-arm64-msvc: 1.32.0+ lightningcss-win32-x64-msvc: 1.32.0++ dependencies:+ detect-libc: 2.1.2+ optionalDependencies:+ lightningcss-android-arm64: 1.33.0+ lightningcss-darwin-arm64: 1.33.0+ lightningcss-darwin-x64: 1.33.0+ lightningcss-freebsd-x64: 1.33.0+ lightningcss-linux-arm-gnueabihf: 1.33.0+ lightningcss-linux-arm64-gnu: 1.33.0+ lightningcss-linux-arm64-musl: 1.33.0+ lightningcss-linux-x64-gnu: 1.33.0+ lightningcss-linux-x64-musl: 1.33.0+ lightningcss-win32-arm64-msvc: 1.33.0+ lightningcss-win32-x64-msvc: 1.33.0++ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ nanoid: 3.3.18+ picocolors: 1.1.1+ source-map-js: 1.2.1++ dependencies:+ react: 19.2.8+ scheduler: 0.27.0++ [email protected]: {}++ dependencies:+ '@oxc-project/types': 0.146.0+ '@rolldown/pluginutils': 1.0.1+ optionalDependencies:+ '@rolldown/binding-android-arm-eabi': 1.2.5+ '@rolldown/binding-android-arm64': 1.2.5+ '@rolldown/binding-darwin-arm64': 1.2.5+ '@rolldown/binding-darwin-x64': 1.2.5+ '@rolldown/binding-freebsd-x64': 1.2.5+ '@rolldown/binding-linux-arm-gnueabihf': 1.2.5+ '@rolldown/binding-linux-arm64-gnu': 1.2.5+ '@rolldown/binding-linux-arm64-musl': 1.2.5+ '@rolldown/binding-linux-ppc64-gnu': 1.2.5+ '@rolldown/binding-linux-s390x-gnu': 1.2.5+ '@rolldown/binding-linux-x64-gnu': 1.2.5+ '@rolldown/binding-linux-x64-musl': 1.2.5+ '@rolldown/binding-openharmony-arm64': 1.2.5+ '@rolldown/binding-win32-arm64-msvc': 1.2.5+ '@rolldown/binding-win32-x64-msvc': 1.2.5++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ fdir: 6.5.0([email protected])+ picomatch: 4.0.7++ [email protected]: {}++ [email protected]: {}++ dependencies:+ lightningcss: 1.33.0+ picomatch: 4.0.7+ postcss: 8.5.26+ rolldown: 1.2.5+ tinyglobby: 0.2.17+ optionalDependencies:+ '@types/node': 24.13.3+ fsevents: 2.3.3+ jiti: 2.7.0diff --git a/internal/vibe-tests/fixtures/tailwind-v4-control/src/App.tsx b/internal/vibe-tests/fixtures/tailwind-v4-control/src/App.tsxnew file mode 100644index 0000000000..be2ab9410a--- /dev/null+++ b/internal/vibe-tests/fixtures/tailwind-v4-control/src/App.tsx@@ -0,0 +1,118 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++const activity = [+ {item: 'Quarterly plan', owner: 'Avery', state: 'Ready'},+ {item: 'Partner review', owner: 'Morgan', state: 'In progress'},+ {item: 'Launch checklist', owner: 'Riley', state: 'Blocked'},+];++export default function App() {+ return (+ <div+ className="min-h-screen bg-background text-foreground"+ data-vibe-probe="host-shell">+ <header className="border-b border-zinc-200 bg-zinc-50">+ <div className="mx-auto flex max-w-5xl items-center justify-between px-6 py-4">+ <div>+ <p className="text-xs font-semibold uppercase tracking-[0.18em] text-zinc-500">+ Workspace+ </p>+ <h1 className="text-xl font-semibold" data-vibe-probe="page-title">+ Delivery overview+ </h1>+ </div>+ <nav aria-label="Primary navigation" className="flex gap-4 text-sm">+ <a+ className="font-medium underline underline-offset-4"+ href="#activity">+ Activity+ </a>+ <a className="text-zinc-600" href="#settings">+ Settings+ </a>+ </nav>+ </div>+ </header>++ <main className="mx-auto grid max-w-5xl gap-6 px-6 py-8 md:grid-cols-[2fr_1fr]">+ <section+ id="activity"+ className="overflow-hidden rounded-lg border border-zinc-200">+ <div className="flex items-center justify-between border-b border-zinc-200 px-5 py-4">+ <div>+ <h2 className="font-semibold">Recent activity</h2>+ <p className="text-sm text-zinc-600">+ Three fixed records for layout checks.+ </p>+ </div>+ <button+ className="rounded-md bg-zinc-900 px-3 py-2 text-sm font-medium text-white"+ data-vibe-probe="primary-action">+ Create item+ </button>+ </div>+ <div className="overflow-x-auto">+ <table className="w-full border-collapse text-left text-sm">+ <thead className="bg-zinc-50 text-xs uppercase tracking-wide text-zinc-500">+ <tr>+ <th+ className="px-5 py-3 font-medium"+ data-vibe-probe="table-header">+ Item+ </th>+ <th className="px-5 py-3 font-medium">Owner</th>+ <th className="px-5 py-3 font-medium">State</th>+ </tr>+ </thead>+ <tbody className="divide-y divide-zinc-200">+ {activity.map(row => (+ <tr key={row.item}>+ <td+ className="px-5 py-3 font-medium"+ data-vibe-probe={+ row.item === 'Quarterly plan' ? 'table-cell' : undefined+ }>+ {row.item}+ </td>+ <td className="px-5 py-3 text-zinc-600">{row.owner}</td>+ <td className="px-5 py-3">{row.state}</td>+ </tr>+ ))}+ </tbody>+ </table>+ </div>+ </section>++ <aside id="settings" className="rounded-lg border border-zinc-200 p-5">+ <h2 className="font-semibold">Review settings</h2>+ <form className="mt-4 space-y-4">+ <label className="block text-sm font-medium">+ Reviewer+ <select className="mt-1 block w-full rounded-md border border-zinc-300 bg-white px-3 py-2">+ <option>Avery</option>+ <option>Morgan</option>+ </select>+ </label>+ <label className="block text-sm font-medium">+ Summary+ <input+ className="mt-1 block w-full rounded-md border border-zinc-300 px-3 py-2"+ data-vibe-probe="form-control"+ defaultValue="Weekly review"+ />+ </label>+ <label className="flex items-center gap-2 text-sm">+ <input type="checkbox" defaultChecked />+ Send a completion notice+ </label>+ <button+ className="w-full rounded-md border border-zinc-300 px-3 py-2 text-sm font-medium"+ type="button">+ Save settings+ </button>+ </form>+ </aside>+ </main>+ </div>+ );+}diff --git a/internal/vibe-tests/fixtures/tailwind-v4-control/src/index.css b/internal/vibe-tests/fixtures/tailwind-v4-control/src/index.cssnew file mode 100644index 0000000000..749749039f--- /dev/null+++ b/internal/vibe-tests/fixtures/tailwind-v4-control/src/index.css@@ -0,0 +1,28 @@+/* Copyright (c) Meta Platforms, Inc. and affiliates. */++@import 'tailwindcss';++:root {+ --background: #ffffff;+ --foreground: #18181b;+}++@theme inline {+ --color-background: var(--background);+ --color-foreground: var(--foreground);+}++body {+ min-width: 320px;+ min-height: 100vh;+ margin: 0;+ background: var(--background);+ color: var(--foreground);+ font-family: ui-sans-serif, system-ui, sans-serif;+}++button,+input,+select {+ font: inherit;+}diff --git a/internal/vibe-tests/fixtures/tailwind-v4-control/src/main.tsx b/internal/vibe-tests/fixtures/tailwind-v4-control/src/main.tsxnew file mode 100644index 0000000000..ad96066634--- /dev/null+++ b/internal/vibe-tests/fixtures/tailwind-v4-control/src/main.tsx@@ -0,0 +1,12 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import {StrictMode} from 'react';+import {createRoot} from 'react-dom/client';+import App from './App.tsx';+import './index.css';++createRoot(document.getElementById('root')!).render(+ <StrictMode>+ <App />+ </StrictMode>,+);diff --git a/internal/vibe-tests/fixtures/tailwind-v4-control/tsconfig.json b/internal/vibe-tests/fixtures/tailwind-v4-control/tsconfig.jsonnew file mode 100644index 0000000000..3bae4d1ecf--- /dev/null+++ b/internal/vibe-tests/fixtures/tailwind-v4-control/tsconfig.json@@ -0,0 +1,21 @@+{+ "compilerOptions": {+ "target": "ES2023",+ "lib": ["ES2023", "DOM", "DOM.Iterable"],+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "allowImportingTsExtensions": true,+ "verbatimModuleSyntax": true,+ "moduleDetection": "force",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "noEmit": true,+ "jsx": "react-jsx",+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "skipLibCheck": true,+ "types": ["vite/client", "node"]+ },+ "include": ["src", "vite.config.ts"]+}diff --git a/internal/vibe-tests/fixtures/tailwind-v4-control/vite.config.ts b/internal/vibe-tests/fixtures/tailwind-v4-control/vite.config.tsnew file mode 100644index 0000000000..2ef69d4156--- /dev/null+++ b/internal/vibe-tests/fixtures/tailwind-v4-control/vite.config.ts@@ -0,0 +1,9 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import tailwindcss from '@tailwindcss/vite';+import react from '@vitejs/plugin-react';+import {defineConfig} from 'vite';++export default defineConfig({+ plugins: [react(), tailwindcss()],+});diff --git a/internal/vibe-tests/package.json b/internal/vibe-tests/package.jsonindex 06ec73874c..25e601bde0 100644--- a/internal/vibe-tests/package.json+++ b/internal/vibe-tests/package.json@@ -28,7 +28,11 @@"design-judge:dry": "tsx src/design-judge.ts --dry-run","correct": "tsx src/correct-previews.ts","correct:dry": "tsx src/correct-previews.ts --dry-run",- "preview:tsc-only": "tsx src/build-previews.ts --tsc-only"+ "preview:tsc-only": "tsx src/build-previews.ts --tsc-only",+ "fixtures:verify": "node scripts/fixture-suite.mjs verify",+ "fixtures:prepare": "node scripts/fixture-suite.mjs prepare",+ "fixtures:refresh": "node scripts/fixture-suite.mjs refresh",+ "fixtures:build": "node scripts/fixture-suite.mjs build"},"dependencies": {"@astryxdesign/cli": "*",diff --git a/internal/vibe-tests/scripts/fixture-suite.mjs b/internal/vibe-tests/scripts/fixture-suite.mjsnew file mode 100644index 0000000000..c984ca35c6--- /dev/null+++ b/internal/vibe-tests/scripts/fixture-suite.mjs@@ -0,0 +1,61 @@+#!/usr/bin/env node+// Copyright (c) Meta Platforms, Inc. and affiliates.++import path from 'node:path';+import {+ FIXTURE_IDS,+ buildFixture,+ copyFixture,+ refreshManifest,+ validateCanonicalSuite,+} from '../src/fixture-suite.mjs';++const [command, fixtureId, ...rest] = process.argv+ .slice(2)+ .filter(argument => argument !== '--');++function option(name) {+ const index = rest.indexOf(`--${name}`);+ return index === -1 ? undefined : rest[index + 1];+}++function requireFixture() {+ if (!FIXTURE_IDS.includes(fixtureId)) {+ throw new Error(`fixture must be one of: ${FIXTURE_IDS.join(', ')}`);+ }+}++switch (command) {+ case 'verify': {+ validateCanonicalSuite();+ console.log(`verified ${FIXTURE_IDS.length} canonical fixtures`);+ break;+ }+ case 'prepare': {+ requireFixture();+ const output = option('output');+ if (!output) throw new Error('prepare requires --output <directory>');+ const destination = copyFixture(fixtureId, path.resolve(output));+ console.log(`prepared ${fixtureId} at ${destination}`);+ break;+ }+ case 'refresh': {+ requireFixture();+ refreshManifest(fixtureId);+ console.log(`refreshed ${fixtureId} manifest`);+ break;+ }+ case 'build': {+ const fixtures = fixtureId ? [fixtureId] : FIXTURE_IDS;+ for (const id of fixtures) {+ if (!FIXTURE_IDS.includes(id)) throw new Error(`unknown fixture: ${id}`);+ const result = buildFixture(id);+ console.log(`built ${result.fixtureId} from a copied sandbox`);+ }+ break;+ }+ default:+ throw new Error(+ 'usage: fixture-suite.mjs <verify|prepare|refresh|build> [fixture] [--output directory]',+ );+}diff --git a/internal/vibe-tests/src/fixture-suite.mjs b/internal/vibe-tests/src/fixture-suite.mjsnew file mode 100644index 0000000000..93904d1a8a--- /dev/null+++ b/internal/vibe-tests/src/fixture-suite.mjs@@ -0,0 +1,517 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import {createHash} from 'node:crypto';+import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';+import {spawnSync} from 'node:child_process';+import {fileURLToPath} from 'node:url';+import {+ expandWorkspaceDirs,+ readWorkspaceGlobs,+} from '../../../scripts/lib/workspace-globs.mjs';++const HERE = path.dirname(fileURLToPath(import.meta.url));+export const REPO_ROOT = path.resolve(HERE, '..', '..', '..');+export const FIXTURES_ROOT = path.join(+ REPO_ROOT,+ 'internal',+ 'vibe-tests',+ 'fixtures',+);+export const RECIPES_ROOT = path.join(+ REPO_ROOT,+ 'internal',+ 'vibe-tests',+ 'fixture-recipes',+);+export const FIXTURE_GALLERY_README = path.join(FIXTURES_ROOT, 'README.md');+export const FIXTURE_ASSETS_ROOT = path.join(FIXTURES_ROOT, 'assets');+export const FIXTURE_ASSET_MAX_BYTES = 250 * 1024;+export const FIXTURE_ASSETS_TOTAL_MAX_BYTES = 300 * 1024;+export const FIXTURE_IDS = ['tailwind-v4-control'];++const REQUIRED_PROVENANCE_FIELDS = [+ 'source',+ 'generator',+ 'version',+ 'commit',+ 'license',+];++const NONDETERMINISTIC_PATTERNS = [+ ['current time', /\b(?:new\s+Date|Date\.now|performance\.now)\s*\(/],+ ['timer', /\b(?:setTimeout|setInterval)\s*\(/],+ ['random value', /\b(?:Math\.random|crypto\.randomUUID)\s*\(/],+ [+ 'UUID literal',+ /\b[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\b/i,+ ],+ [+ 'network access',+ /\b(?:fetch|XMLHttpRequest|WebSocket|EventSource)\s*(?:\(|\b)/,+ ],+];++function fail(message) {+ throw new Error(message);+}++function readJson(file) {+ return JSON.parse(fs.readFileSync(file, 'utf8'));+}++export function sha256File(file) {+ return createHash('sha256').update(fs.readFileSync(file)).digest('hex');+}++export function recipePath(fixtureId, recipesRoot = RECIPES_ROOT) {+ return path.join(recipesRoot, `${fixtureId}.json`);+}++export function readRecipe(fixtureId, recipesRoot = RECIPES_ROOT) {+ return readJson(recipePath(fixtureId, recipesRoot));+}++export function validateProvenance(recipe) {+ if (recipe.schemaVersion !== 1)+ fail(`${recipe.fixture}: unsupported recipe schema`);+ if (typeof recipe.synthetic !== 'boolean')+ fail(`${recipe.fixture}: synthetic must be boolean`);+ for (const field of REQUIRED_PROVENANCE_FIELDS) {+ if (typeof recipe[field] !== 'string' || recipe[field].trim() === '') {+ fail(`${recipe.fixture}: missing provenance field ${field}`);+ }+ }+ if (!Array.isArray(recipe.commands) || recipe.commands.length === 0) {+ fail(`${recipe.fixture}: commands must be a non-empty array`);+ }+ for (const command of recipe.commands) {+ if (typeof command.command !== 'string' || !Array.isArray(command.flags)) {+ fail(+ `${recipe.fixture}: every command must record its command and flags`,+ );+ }+ }+ if (+ !Array.isArray(recipe.authoredPatches) ||+ recipe.authoredPatches.length === 0+ ) {+ fail(`${recipe.fixture}: authoredPatches must be a non-empty array`);+ }+ if (+ typeof recipe.refresh?.command !== 'string' ||+ typeof recipe.refresh?.notes !== 'string'+ ) {+ fail(`${recipe.fixture}: refresh command and notes are required`);+ }+ if (recipe.synthetic) {+ if (+ recipe.source !== 'original synthetic fixture' ||+ recipe.generator !== 'hand-authored'+ ) {+ fail(+ `${recipe.fixture}: synthetic provenance must identify original hand-authored work`,+ );+ }+ } else if (!recipe.source.startsWith('https://github.com/')) {+ fail(`${recipe.fixture}: public source must be a pinned GitHub repository`);+ }+}++export function validateDeterministicContent(relativeFile, content) {+ for (const [label, pattern] of NONDETERMINISTIC_PATTERNS) {+ if (pattern.test(content))+ fail(`${relativeFile}: fixture contains ${label}`);+ }+}++export function validatePackageJson(fixtureId, packageJson) {+ if (packageJson.private !== true)+ fail(`${fixtureId}: package must be private`);+ if (packageJson.packageManager !== '[email protected]') {+ fail(`${fixtureId}: packageManager must be [email protected]`);+ }+ if (packageJson.engines?.node !== '>=24 <25') {+ fail(`${fixtureId}: Node range must be >=24 <25`);+ }+ const dependencyGroups = [+ 'dependencies',+ 'devDependencies',+ 'peerDependencies',+ ];+ for (const group of dependencyGroups) {+ for (const [name, version] of Object.entries(packageJson[group] ?? {})) {+ if (name.startsWith('@astryxdesign/') || name === 'astryx') {+ fail(`${fixtureId}: Astryx must not be preinstalled`);+ }+ if (+ typeof version !== 'string' ||+ !/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(version)+ ) {+ fail(`${fixtureId}: ${group}.${name} must use an exact version`);+ }+ }+ }+}++function validateFixtureShape(fixtureId, fixtureRoot) {+ const css = fs.readFileSync(+ path.join(fixtureRoot, 'src', 'index.css'),+ 'utf8',+ );+ const app = fs.readFileSync(path.join(fixtureRoot, 'src', 'App.tsx'), 'utf8');+ const requiredProbeMarkers = [+ 'host-shell',+ 'page-title',+ 'primary-action',+ 'table-header',+ 'table-cell',+ 'form-control',+ ];+ const probeAttributeCount = [...app.matchAll(/\bdata-vibe-probe=/g)].length;+ if (probeAttributeCount !== requiredProbeMarkers.length) {+ fail(+ `${fixtureId}: expected ${requiredProbeMarkers.length} stable host probe markers, found ${probeAttributeCount}`,+ );+ }+ for (const marker of requiredProbeMarkers) {+ if (!app.includes(`"${marker}"`) && !app.includes(`'${marker}'`)) {+ fail(`${fixtureId}: missing stable host probe marker ${marker}`);+ }+ }++ if (fixtureId === 'tailwind-v4-control') {+ const customColors = [...css.matchAll(/--color-([\w-]+):/g)]+ .map(match => match[1])+ .sort();+ if (+ JSON.stringify(customColors) !==+ JSON.stringify(['background', 'foreground'])+ ) {+ fail(+ `${fixtureId}: control must define only background/foreground semantic colors`,+ );+ }+ if (/shadcn|components\.json/i.test(app + css)) {+ fail(`${fixtureId}: control must not contain shadcn structure`);+ }+ }+}++export function validateFixture({fixtureId, fixtureRoot, recipe, actualFiles}) {+ validateProvenance(recipe);+ if (recipe.fixture !== fixtureId)+ fail(`${fixtureId}: recipe fixture name does not match`);+ if (+ recipe.manifest?.algorithm !== 'sha256' ||+ typeof recipe.manifest.files !== 'object'+ ) {+ fail(`${fixtureId}: sha256 manifest is required`);+ }++ const expectedFiles = Object.keys(recipe.manifest.files).sort();+ if (expectedFiles.length === 0)+ fail(`${fixtureId}: manifest must not be empty`);+ if (actualFiles) {+ const sortedActual = [...actualFiles].sort();+ if (JSON.stringify(sortedActual) !== JSON.stringify(expectedFiles)) {+ fail(`${fixtureId}: manifest file list does not match canonical files`);+ }+ }++ for (const relativeFile of expectedFiles) {+ if (+ path.isAbsolute(relativeFile) ||+ relativeFile.split(path.sep).includes('..')+ ) {+ fail(`${fixtureId}: unsafe manifest path ${relativeFile}`);+ }+ const file = path.join(fixtureRoot, relativeFile);+ if (!fs.existsSync(file) || !fs.statSync(file).isFile()) {+ fail(`${fixtureId}: missing manifest file ${relativeFile}`);+ }+ const expectedHash = recipe.manifest.files[relativeFile];+ const actualHash = sha256File(file);+ if (actualHash !== expectedHash) {+ fail(`${fixtureId}: hash mismatch for ${relativeFile}`);+ }+ validateDeterministicContent(+ `${fixtureId}/${relativeFile}`,+ fs.readFileSync(file, 'utf8'),+ );+ }++ validatePackageJson(+ fixtureId,+ readJson(path.join(fixtureRoot, 'package.json')),+ );+ validateFixtureShape(fixtureId, fixtureRoot);+}++export function validateWorkspaceIsolation(+ workspaceGlobs,+ workspacePackages,+ fixturesRoot = FIXTURES_ROOT,+) {+ if (!workspaceGlobs.includes('!internal/vibe-tests/fixtures/**')) {+ fail('pnpm workspace must explicitly exclude canonical fixtures');+ }+ const resolvedFixtures = path.resolve(fixturesRoot);+ for (const packagePath of workspacePackages) {+ const resolvedPackage = path.resolve(packagePath);+ if (+ resolvedPackage === resolvedFixtures ||+ resolvedPackage.startsWith(`${resolvedFixtures}${path.sep}`)+ ) {+ fail(`fixture entered workspace package discovery: ${resolvedPackage}`);+ }+ }+}++export function validateTarballIsolation(fixturesRoot, packageRoots) {+ const resolvedFixtures = path.resolve(fixturesRoot);+ for (const entry of packageRoots) {+ if (entry.private) continue;+ const resolvedPackage = path.resolve(entry.path);+ if (+ resolvedFixtures === resolvedPackage ||+ resolvedFixtures.startsWith(`${resolvedPackage}${path.sep}`)+ ) {+ fail(`fixtures are inside publishable tarball root: ${resolvedPackage}`);+ }+ }+}++function gitFixtureFiles(fixtureId, repoRoot = REPO_ROOT) {+ const fixturePrefix = path.posix.join(+ 'internal',+ 'vibe-tests',+ 'fixtures',+ fixtureId,+ );+ const result = spawnSync(+ 'git',+ [+ 'ls-files',+ '--cached',+ '--others',+ '--exclude-standard',+ '--',+ fixturePrefix,+ ],+ {cwd: repoRoot, encoding: 'utf8'},+ );+ if (result.status !== 0) fail(`git ls-files failed: ${result.stderr.trim()}`);+ return result.stdout+ .split('\n')+ .filter(Boolean)+ .map(file => path.posix.relative(fixturePrefix, file))+ .sort();+}++function workspacePackagePaths(repoRoot = REPO_ROOT) {+ const result = spawnSync(+ 'pnpm',+ ['list', '--recursive', '--depth', '-1', '--json'],+ {+ cwd: repoRoot,+ encoding: 'utf8',+ },+ );+ if (result.status !== 0)+ fail(`pnpm workspace discovery failed: ${result.stderr.trim()}`);+ return JSON.parse(result.stdout).map(entry => entry.path);+}++function publishablePackageRoots(repoRoot = REPO_ROOT) {+ const dirs = [repoRoot, ...expandWorkspaceDirs(repoRoot)];+ return dirs.flatMap(dir => {+ const packageFile = path.join(dir, 'package.json');+ if (!fs.existsSync(packageFile)) return [];+ const packageJson = readJson(packageFile);+ return [{path: dir, private: packageJson.private === true}];+ });+}++export function validateFixtureGallery({+ readmeFile = FIXTURE_GALLERY_README,+ assetsRoot = FIXTURE_ASSETS_ROOT,+ maxAssetBytes = FIXTURE_ASSET_MAX_BYTES,+ maxTotalBytes = FIXTURE_ASSETS_TOTAL_MAX_BYTES,+} = {}) {+ if (!fs.existsSync(readmeFile)) fail('fixture gallery README is missing');+ if (!fs.existsSync(assetsRoot) || !fs.statSync(assetsRoot).isDirectory()) {+ fail('fixture gallery assets directory is missing');+ }++ const markdown = fs.readFileSync(readmeFile, 'utf8');+ const imageReferences = [+ ...markdown.matchAll(/!\[[^\]]*\]\(([^)\s]+)(?:\s+['"][^'"]*['"])?\)/g),+ ].map(match => match[1]);+ if (imageReferences.length === 0) {+ fail('fixture gallery README must reference at least one image');+ }++ const referencedFiles = new Set();+ let totalBytes = 0;+ for (const reference of imageReferences) {+ if (+ !reference.startsWith('assets/') ||+ path.extname(reference) !== '.png'+ ) {+ fail(+ `fixture gallery image must be a relative PNG under assets/: ${reference}`,+ );+ }+ const file = path.resolve(path.dirname(readmeFile), reference);+ if (!file.startsWith(`${path.resolve(assetsRoot)}${path.sep}`)) {+ fail(`fixture gallery image escapes assets directory: ${reference}`);+ }+ if (!fs.existsSync(file) || !fs.statSync(file).isFile()) {+ fail(`fixture gallery image is missing: ${reference}`);+ }+ const size = fs.statSync(file).size;+ if (size > maxAssetBytes) {+ fail(+ `fixture gallery image exceeds ${maxAssetBytes} bytes: ${reference}`,+ );+ }+ totalBytes += size;+ referencedFiles.add(path.basename(file));+ }++ const assetFiles = fs+ .readdirSync(assetsRoot, {withFileTypes: true})+ .filter(entry => entry.isFile())+ .map(entry => entry.name)+ .sort();+ const expectedFiles = [...referencedFiles].sort();+ if (JSON.stringify(assetFiles) !== JSON.stringify(expectedFiles)) {+ fail(+ 'fixture gallery assets must all be referenced exactly once in README.md',+ );+ }+ if (totalBytes > maxTotalBytes) {+ fail(`fixture gallery assets exceed ${maxTotalBytes} bytes total`);+ }+}++export function validateCanonicalSuite(repoRoot = REPO_ROOT) {+ const fixturesRoot = path.join(+ repoRoot,+ 'internal',+ 'vibe-tests',+ 'fixtures',+ );+ const recipesRoot = path.join(+ repoRoot,+ 'internal',+ 'vibe-tests',+ 'fixture-recipes',+ );+ const discoveredRecipes = fs+ .readdirSync(recipesRoot, {withFileTypes: true})+ .filter(entry => entry.isFile() && entry.name.endsWith('.json'))+ .map(entry => entry.name.replace(/\.json$/, ''))+ .sort();+ if (+ JSON.stringify(discoveredRecipes) !==+ JSON.stringify([...FIXTURE_IDS].sort())+ ) {+ fail(+ 'fixture recipe directory must contain exactly one recipe per canonical fixture',+ );+ }++ validateFixtureGallery({+ readmeFile: path.join(fixturesRoot, 'README.md'),+ assetsRoot: path.join(fixturesRoot, 'assets'),+ });++ for (const fixtureId of FIXTURE_IDS) {+ validateFixture({+ fixtureId,+ fixtureRoot: path.join(fixturesRoot, fixtureId),+ recipe: readRecipe(fixtureId, recipesRoot),+ actualFiles: gitFixtureFiles(fixtureId, repoRoot),+ });+ }++ validateWorkspaceIsolation(+ readWorkspaceGlobs(repoRoot),+ workspacePackagePaths(repoRoot),+ fixturesRoot,+ );+ validateTarballIsolation(fixturesRoot, publishablePackageRoots(repoRoot));+}++export function copyFixture(+ fixtureId,+ outputDir,+ {fixturesRoot = FIXTURES_ROOT, recipesRoot = RECIPES_ROOT} = {},+) {+ const recipe = readRecipe(fixtureId, recipesRoot);+ const sourceRoot = path.join(fixturesRoot, fixtureId);+ validateFixture({fixtureId, fixtureRoot: sourceRoot, recipe});+ if (fs.existsSync(outputDir)) fail(`sandbox already exists: ${outputDir}`);+ fs.mkdirSync(outputDir, {recursive: true});+ for (const relativeFile of Object.keys(recipe.manifest.files)) {+ const target = path.join(outputDir, relativeFile);+ fs.mkdirSync(path.dirname(target), {recursive: true});+ fs.copyFileSync(path.join(sourceRoot, relativeFile), target);+ }+ validateFixture({fixtureId, fixtureRoot: outputDir, recipe});+ return outputDir;+}++export function refreshManifest(+ fixtureId,+ {fixturesRoot = FIXTURES_ROOT, recipesRoot = RECIPES_ROOT} = {},+) {+ const file = recipePath(fixtureId, recipesRoot);+ const recipe = readJson(file);+ validateProvenance(recipe);+ const fixtureRoot = path.join(fixturesRoot, fixtureId);+ for (const relativeFile of Object.keys(recipe.manifest.files)) {+ const manifestFile = path.join(fixtureRoot, relativeFile);+ if (!fs.existsSync(manifestFile))+ fail(`${fixtureId}: missing manifest file ${relativeFile}`);+ recipe.manifest.files[relativeFile] = sha256File(manifestFile);+ }+ fs.writeFileSync(file, `${JSON.stringify(recipe, null, 2)}\n`);+}++function run(command, args, cwd) {+ const result = spawnSync(command, args, {+ cwd,+ encoding: 'utf8',+ stdio: 'pipe',+ });+ if (result.status !== 0) {+ fail(+ `${command} ${args.join(' ')} failed in ${cwd}\n${result.stdout}${result.stderr}`,+ );+ }+ return `${result.stdout}${result.stderr}`.trim();+}++export function buildFixture(fixtureId) {+ const sandboxParent = fs.mkdtempSync(+ path.join(os.tmpdir(), 'astryx-fixture-'),+ );+ const sandbox = path.join(sandboxParent, fixtureId);+ try {+ copyFixture(fixtureId, sandbox);+ const installOutput = run(+ 'pnpm',+ ['install', '--frozen-lockfile', '--ignore-scripts'],+ sandbox,+ );+ const typecheckOutput = run('pnpm', ['typecheck'], sandbox);+ const buildOutput = run('pnpm', ['build'], sandbox);+ return {fixtureId, installOutput, typecheckOutput, buildOutput};+ } finally {+ fs.rmSync(sandboxParent, {recursive: true, force: true});+ }+}diff --git a/internal/vibe-tests/src/fixture-suite.test.mjs b/internal/vibe-tests/src/fixture-suite.test.mjsnew file mode 100644index 0000000000..4bb5274730--- /dev/null+++ b/internal/vibe-tests/src/fixture-suite.test.mjs@@ -0,0 +1,233 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';+import {afterAll, describe, expect, it} from 'vitest';+import {+ FIXTURE_ASSET_MAX_BYTES,+ FIXTURE_ASSETS_TOTAL_MAX_BYTES,+ FIXTURE_IDS,+ FIXTURES_ROOT,+ RECIPES_ROOT,+ copyFixture,+ readRecipe,+ sha256File,+ validateCanonicalSuite,+ validateDeterministicContent,+ validateFixture,+ validateFixtureGallery,+ validatePackageJson,+ validateProvenance,+ validateTarballIsolation,+ validateWorkspaceIsolation,+} from './fixture-suite.mjs';++const temporaryDirectories = [];++function sandboxFor(fixtureId) {+ const parent = fs.mkdtempSync(path.join(os.tmpdir(), 'fixture-suite-test-'));+ temporaryDirectories.push(parent);+ const sandbox = path.join(parent, fixtureId);+ copyFixture(fixtureId, sandbox);+ return sandbox;+}++function cloneRecipe(fixtureId) {+ return structuredClone(readRecipe(fixtureId));+}++function updateHash(recipe, fixtureRoot, relativeFile) {+ recipe.manifest.files[relativeFile] = sha256File(+ path.join(fixtureRoot, relativeFile),+ );+}++afterAll(() => {+ for (const directory of temporaryDirectories) {+ fs.rmSync(directory, {recursive: true, force: true});+ }+});++describe('canonical fixture suite', () => {+ it('validates provenance, manifests, hashes, package pins, and isolation', () => {+ expect(() => validateCanonicalSuite()).not.toThrow();+ });++ it('copies a canonical fixture file-by-file without changing its source', () => {+ const fixtureId = FIXTURE_IDS[0];+ const sourcePackage = path.join(FIXTURES_ROOT, fixtureId, 'package.json');+ const sourceHash = sha256File(sourcePackage);+ const sandbox = sandboxFor(fixtureId);++ fs.appendFileSync(path.join(sandbox, 'package.json'), '\n');++ expect(sha256File(sourcePackage)).toBe(sourceHash);+ });++ it('rejects incomplete provenance', () => {+ const recipe = cloneRecipe(FIXTURE_IDS[0]);+ recipe.source = '';+ expect(() => validateProvenance(recipe)).toThrow(+ /missing provenance field source/,+ );+ });++ it('rejects a canonical byte mutation through its hash', () => {+ const fixtureId = FIXTURE_IDS[0];+ const sandbox = sandboxFor(fixtureId);+ fs.appendFileSync(path.join(sandbox, 'src', 'App.tsx'), '\n// changed\n');++ expect(() =>+ validateFixture({+ fixtureId,+ fixtureRoot: sandbox,+ recipe: readRecipe(fixtureId),+ }),+ ).toThrow(/hash mismatch for src\/App\.tsx/);+ });++ it('rejects an unmanifested canonical file', () => {+ const fixtureId = FIXTURE_IDS[0];+ const recipe = readRecipe(fixtureId);+ const actualFiles = [+ ...Object.keys(recipe.manifest.files),+ 'unexpected.txt',+ ];++ expect(() =>+ validateFixture({+ fixtureId,+ fixtureRoot: path.join(FIXTURES_ROOT, fixtureId),+ recipe,+ actualFiles,+ }),+ ).toThrow(/manifest file list does not match/);+ });++ it.each([+ ['current time', 'const value = Date.now();'],+ ['random value', 'const value = Math.random();'],+ ['network access', "fetch('/data.json');"],+ ])('rejects %s in fixture source', (label, source) => {+ expect(() => validateDeterministicContent('mutated.ts', source)).toThrow(+ label,+ );+ });++ it('rejects a preinstalled Astryx package', () => {+ const packageJson = JSON.parse(+ fs.readFileSync(+ path.join(FIXTURES_ROOT, FIXTURE_IDS[0], 'package.json'),+ 'utf8',+ ),+ );+ packageJson.dependencies['@astryxdesign/core'] = '1.0.0';++ expect(() => validatePackageJson(FIXTURE_IDS[0], packageJson)).toThrow(+ /Astryx must not be preinstalled/,+ );+ });++ it('rejects removal of the explicit workspace exclusion', () => {+ expect(() =>+ validateWorkspaceIsolation(+ ['apps/*', 'packages/*', 'internal/*'],+ [],+ FIXTURES_ROOT,+ ),+ ).toThrow(/explicitly exclude canonical fixtures/);+ });++ it('rejects a fixture discovered as a workspace package', () => {+ expect(() =>+ validateWorkspaceIsolation(+ ['internal/*', '!internal/vibe-tests/fixtures/**'],+ [path.join(FIXTURES_ROOT, FIXTURE_IDS[0])],+ FIXTURES_ROOT,+ ),+ ).toThrow(/entered workspace package discovery/);+ });++ it('rejects a fixture under a publishable tarball root', () => {+ expect(() =>+ validateTarballIsolation(FIXTURES_ROOT, [+ {path: path.dirname(FIXTURES_ROOT), private: false},+ ]),+ ).toThrow(/inside publishable tarball root/);+ });++ it('rejects extra control semantics even with a refreshed hash', () => {+ const fixtureId = 'tailwind-v4-control';+ const sandbox = sandboxFor(fixtureId);+ const cssFile = path.join(sandbox, 'src', 'index.css');+ fs.appendFileSync(cssFile, '\n@theme inline { --color-card: #fff; }\n');+ const recipe = cloneRecipe(fixtureId);+ updateHash(recipe, sandbox, 'src/index.css');++ expect(() =>+ validateFixture({fixtureId, fixtureRoot: sandbox, recipe}),+ ).toThrow(/only background\/foreground semantic colors/);+ });++ it('rejects missing and oversized gallery assets', () => {+ const parent = fs.mkdtempSync(+ path.join(os.tmpdir(), 'fixture-gallery-test-'),+ );+ temporaryDirectories.push(parent);+ const assetsRoot = path.join(parent, 'assets');+ const readmeFile = path.join(parent, 'README.md');+ fs.mkdirSync(assetsRoot);+ fs.writeFileSync(readmeFile, '\n');++ expect(() => validateFixtureGallery({readmeFile, assetsRoot})).toThrow(+ /image is missing/,+ );++ fs.writeFileSync(+ path.join(assetsRoot, 'fixture.png'),+ Buffer.alloc(FIXTURE_ASSET_MAX_BYTES + 1),+ );+ expect(() => validateFixtureGallery({readmeFile, assetsRoot})).toThrow(+ /image exceeds/,+ );+ });++ it('rejects gallery assets over the aggregate size cap', () => {+ const parent = fs.mkdtempSync(+ path.join(os.tmpdir(), 'fixture-gallery-total-test-'),+ );+ temporaryDirectories.push(parent);+ const assetsRoot = path.join(parent, 'assets');+ const readmeFile = path.join(parent, 'README.md');+ fs.mkdirSync(assetsRoot);+ fs.writeFileSync(+ readmeFile,+ [+ '',+ '',+ ].join('\n'),+ );+ const assetSize = Math.floor(FIXTURE_ASSETS_TOTAL_MAX_BYTES / 2) + 1;+ fs.writeFileSync(+ path.join(assetsRoot, 'fixture-one.png'),+ Buffer.alloc(assetSize),+ );+ fs.writeFileSync(+ path.join(assetsRoot, 'fixture-two.png'),+ Buffer.alloc(assetSize),+ );++ expect(() => validateFixtureGallery({readmeFile, assetsRoot})).toThrow(+ /assets exceed/,+ );+ });++ it('keeps one recipe per fixture', () => {+ const recipeFiles = fs+ .readdirSync(RECIPES_ROOT)+ .filter(file => file.endsWith('.json'))+ .sort();+ expect(recipeFiles).toEqual(FIXTURE_IDS.map(id => `${id}.json`).sort());+ });+});diff --git a/package.json b/package.jsonindex 8396fe68cf..93cb6084d6 100644--- a/package.json+++ b/package.json@@ -11,7 +11,8 @@"test:watch": "vitest","test:coverage": "vitest --coverage","check:package-boundaries": "node scripts/check-package-boundaries.js",- "check:repo": "pnpm check:sync && pnpm check:package-boundaries && pnpm check:changesets && pnpm check:demo-media && pnpm check:executable-bits && pnpm check:cli-structure && pnpm check:use-client && pnpm check:portable-scripts && pnpm check:i18n-catalog && pnpm check:cldr-weekdays",+ "check:repo": "pnpm check:sync && pnpm check:package-boundaries && pnpm check:changesets && pnpm check:demo-media && pnpm check:executable-bits && pnpm check:cli-structure && pnpm check:use-client && pnpm check:portable-scripts && pnpm check:i18n-catalog && pnpm check:cldr-weekdays && pnpm check:fixtures",+ "check:fixtures": "node internal/vibe-tests/scripts/fixture-suite.mjs verify","generate:cldr-weekdays": "node scripts/generate-cldr-weekdays.mjs","check:cldr-weekdays": "node scripts/generate-cldr-weekdays.mjs --check","check:changesets": "node scripts/check-changesets.mjs",diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 1aed90c077..bec90467ac 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -9,6 +9,9 @@ packages:- 'packages/*'- 'packages/themes/*'- 'internal/*'+ # Canonical vibe-test fixtures are standalone consumer apps. They carry their+ # own exact dependencies and lockfiles and are copied to sandboxes before use.+ - '!internal/vibe-tests/fixtures/**'# Migrated from .npmrc: pnpm 11 reads these hoisting/linker settings from# pnpm-workspace.yaml, not .npmrc. Keeps the flat, Yarn-1-style node_modules