@reqvire-org/ads 0.3.53 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -94
- package/dist/a11y.mjs +108 -29
- package/dist/analysis/compiler-options.mjs +13 -0
- package/dist/analysis/context.mjs +46 -0
- package/dist/analysis/file-tree.mjs +52 -0
- package/dist/analysis/helpers.mjs +140 -0
- package/dist/analysis/impact.mjs +20 -0
- package/dist/analysis/inputs.mjs +15 -0
- package/dist/analysis/native-adapter.mjs +180 -0
- package/dist/analysis/native-project.mjs +323 -0
- package/dist/analysis/queries.mjs +133 -0
- package/dist/analysis/service.mjs +146 -0
- package/dist/analysis/standalone.mjs +57 -0
- package/dist/analysis/syntax.mjs +164 -0
- package/dist/analysis/worker.mjs +182 -0
- package/dist/assets.mjs +6 -6
- package/dist/atomic-composition.mjs +191 -70
- package/dist/atomic-trace.mjs +120 -50
- package/dist/behavior-libraries.mjs +106 -37
- package/dist/behaviors.mjs +222 -79
- package/dist/boundaries.mjs +137 -40
- package/dist/brand-assets.mjs +219 -47
- package/dist/brands.mjs +86 -27
- package/dist/bun-compiler.mjs +34 -13
- package/dist/bun-worker.mjs +7 -5
- package/dist/capture/worker.mjs +15 -4
- package/dist/capture-store.mjs +4 -2
- package/dist/capture.mjs +17 -14
- package/dist/check-service.mjs +66 -0
- package/dist/check.mjs +756 -196
- package/dist/cli.mjs +203 -100
- package/dist/color-values.mjs +21 -21
- package/dist/component-contrast.mjs +2 -2
- package/dist/config.mjs +308 -163
- package/dist/construction-styles.cjs +10 -0
- package/dist/contracts.d.mts +9 -0
- package/dist/control-padding.mjs +45 -25
- package/dist/css-values.mjs +3 -2
- package/dist/declarative-flow.mjs +209 -109
- package/dist/design-values.mjs +136 -51
- package/dist/development-runtime.mjs +4 -6
- package/dist/draft-boundary.mjs +11 -6
- package/dist/evidence.mjs +1 -1
- package/dist/finding-rules.mjs +7 -5
- package/dist/font-rules.mjs +2 -2
- package/dist/fonts-generated.mjs +4 -2
- package/dist/foundation-views.mjs +238 -0
- package/dist/foundation.mjs +63 -39
- package/dist/generated-entries.mjs +198 -0
- package/dist/icons.mjs +80 -33
- package/dist/image-attributes.mjs +109 -36
- package/dist/image-size.mjs +1 -1
- package/dist/index.mjs +0 -2
- package/dist/init.mjs +128 -68
- package/dist/investigations.mjs +2 -2
- package/dist/layers.mjs +300 -127
- package/dist/layout-widths.mjs +180 -85
- package/dist/linaria/preserve-values.cjs +7 -0
- package/dist/linaria/spatial-inputs.cjs +56 -0
- package/dist/lockup-composition.mjs +44 -0
- package/dist/lockup-model.cjs +64 -0
- package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
- package/dist/mcp/apps.mjs +4 -30
- package/dist/mcp/behavior-pages.mjs +72 -24
- package/dist/mcp/build-status.mjs +257 -64
- package/dist/mcp/catalog.mjs +91 -26
- package/dist/mcp/context.mjs +17 -18
- package/dist/mcp/draft-discovery.mjs +44 -21
- package/dist/mcp/drafts.mjs +978 -343
- package/dist/mcp/execution-coordinator.mjs +417 -167
- package/dist/mcp/execution-results.mjs +7 -7
- package/dist/mcp/mutations.mjs +701 -219
- package/dist/mcp/preview-watch.mjs +465 -161
- package/dist/mcp/preview-widget.bundle.js +44 -50
- package/dist/mcp/prompts.mjs +6 -6
- package/dist/mcp/result-pages.mjs +1 -1
- package/dist/mcp/sandbox-host.mjs +1 -1
- package/dist/mcp/server.mjs +2436 -570
- package/dist/mcp/showcase-host.mjs +176 -39
- package/dist/mcp/skills.mjs +1 -1
- package/dist/mcp/text-diff.mjs +29 -10
- package/dist/paint-contracts.mjs +174 -81
- package/dist/palette-generated.mjs +2 -2
- package/dist/preview-bun.mjs +493 -187
- package/dist/preview-failure.mjs +1 -1
- package/dist/preview-files.mjs +13 -13
- package/dist/preview-imports.mjs +104 -55
- package/dist/preview-inputs.mjs +2 -2
- package/dist/preview-requests.mjs +24 -0
- package/dist/preview-resources.mjs +288 -147
- package/dist/preview-scope.mjs +5 -4
- package/dist/program-cache.mjs +10 -0
- package/dist/project-documents.mjs +1 -1
- package/dist/public-api.mjs +70 -31
- package/dist/public-props.mjs +39 -22
- package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
- package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
- package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
- package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
- package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
- package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
- package/dist/render-audit.mjs +828 -0
- package/dist/render-color-probe.mjs +96 -42
- package/dist/resource-limits.mjs +229 -97
- package/dist/runtime-contracts.mjs +467 -185
- package/dist/scenario-groups.mjs +22 -10
- package/dist/scenario-inspector.mjs +6 -43
- package/dist/scenario-program.mjs +8 -25
- package/dist/scenario-registry.mjs +72 -30
- package/dist/scenario-selectors.mjs +161 -64
- package/dist/scenario-slots.mjs +149 -56
- package/dist/scenario-trace.mjs +215 -109
- package/dist/scenarios-compiler.mjs +768 -359
- package/dist/scenarios-vite.d.mts +1 -3
- package/dist/scenarios-vite.mjs +2 -81
- package/dist/scenarios.mjs +424 -159
- package/dist/selector-match.mjs +2 -2
- package/dist/showcase/client.bundle.js +57 -56
- package/dist/showcase/draft-navigation.js +18 -0
- package/dist/showcase/favicon.ico +0 -0
- package/dist/showcase/favicon.svg +1 -0
- package/dist/showcase/foundation-view.css +55 -0
- package/dist/showcase/foundation-view.mjs +252 -0
- package/dist/showcase/guide-controls.ads.review.mjs +32 -0
- package/dist/showcase/icons.js +1 -145
- package/dist/showcase/index.html +3 -31
- package/dist/showcase/preview-frame.ads.review.css +46 -0
- package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
- package/dist/showcase/preview-frame.ads.review.mjs +22 -0
- package/dist/showcase/preview-state.js +0 -9
- package/dist/showcase/refresh-scheduler.js +23 -0
- package/dist/showcase/style.css +5 -47
- package/dist/showcase/ui/ui.css +1353 -0
- package/dist/showcase/ui/ui.js +1062 -0
- package/dist/showcase-coverage.mjs +58 -37
- package/dist/skills/README.md +24 -23
- package/dist/skills/ads-designer/README.md +8 -2
- package/dist/skills/ads-designer/SKILL.md +152 -144
- package/dist/skills/ads-designer/references/accessibility.md +14 -11
- package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
- package/dist/skills/ads-designer/references/behaviors.md +34 -30
- package/dist/skills/ads-designer/references/branding.md +98 -10
- package/dist/skills/ads-designer/references/captures.md +31 -31
- package/dist/skills/ads-designer/references/cli.md +21 -20
- package/dist/skills/ads-designer/references/contracts.md +63 -29
- package/dist/skills/ads-designer/references/design-data.md +49 -52
- package/dist/skills/ads-designer/references/drafts.md +71 -52
- package/dist/skills/ads-designer/references/evidence.md +1 -5
- package/dist/skills/ads-designer/references/guarded-editing.md +58 -51
- package/dist/skills/ads-designer/references/layers.md +1 -1
- package/dist/skills/ads-designer/references/layout.md +347 -0
- package/dist/skills/ads-designer/references/mobile.md +2 -1
- package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
- package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
- package/dist/skills/ads-designer/references/performance.md +3 -2
- package/dist/skills/ads-designer/references/review.md +42 -38
- package/dist/skills/ads-designer/references/runtimes.md +33 -30
- package/dist/skills/ads-designer/references/scenarios.md +17 -19
- package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
- package/dist/skills/ads-designer/references/stress-test.md +68 -0
- package/dist/skills/ads-designer/references/validation.md +83 -71
- package/dist/skills/ads-designer/references/workflows.md +19 -37
- package/dist/skills/ads-import/SKILL.md +43 -328
- package/dist/skills/ads-import/references/atomic-styles.md +4 -4
- package/dist/skills/ads-import/references/behaviors.md +34 -30
- package/dist/skills/ads-import/references/branding.md +5 -5
- package/dist/skills/ads-import/references/captures.md +31 -31
- package/dist/skills/ads-import/references/cli.md +21 -20
- package/dist/skills/ads-import/references/compatibility.md +1 -1
- package/dist/skills/ads-import/references/contracts.md +63 -29
- package/dist/skills/ads-import/references/design-data.md +49 -52
- package/dist/skills/ads-import/references/drafts.md +71 -52
- package/dist/skills/ads-import/references/evidence.md +1 -5
- package/dist/skills/ads-import/references/guarded-editing.md +58 -51
- package/dist/skills/ads-import/references/implementation.md +2 -1
- package/dist/skills/ads-import/references/layers.md +1 -1
- package/dist/skills/ads-import/references/layout.md +347 -0
- package/dist/skills/ads-import/references/review.md +42 -38
- package/dist/skills/ads-import/references/runtimes.md +33 -30
- package/dist/skills/ads-import/references/scenarios.md +17 -19
- package/dist/skills/ads-import/references/tokens.md +3 -3
- package/dist/skills/ads-import/references/validation.md +83 -71
- package/dist/skills/ads-import/references/workflows.md +19 -37
- package/dist/skills/ads-migrate/SKILL.md +56 -0
- package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
- package/dist/skills/ads-port/SKILL.md +54 -346
- package/dist/skills/ads-port/references/atomic-styles.md +4 -4
- package/dist/skills/ads-port/references/behaviors.md +34 -30
- package/dist/skills/ads-port/references/captures.md +31 -31
- package/dist/skills/ads-port/references/cli.md +21 -20
- package/dist/skills/ads-port/references/contracts.md +63 -29
- package/dist/skills/ads-port/references/design-data.md +49 -52
- package/dist/skills/ads-port/references/drafts.md +71 -52
- package/dist/skills/ads-port/references/evidence.md +1 -5
- package/dist/skills/ads-port/references/guarded-editing.md +58 -51
- package/dist/skills/ads-port/references/layers.md +1 -1
- package/dist/skills/ads-port/references/layout.md +347 -0
- package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
- package/dist/skills/ads-port/references/native-implementation.md +8 -7
- package/dist/skills/ads-port/references/review.md +42 -38
- package/dist/skills/ads-port/references/runtimes.md +33 -30
- package/dist/skills/ads-port/references/scenarios.md +17 -19
- package/dist/skills/ads-port/references/validation.md +83 -71
- package/dist/skills/ads-port/references/workflows.md +19 -37
- package/dist/source-symbols.mjs +1 -8
- package/dist/source-values.mjs +266 -128
- package/dist/spatial-composition.mjs +322 -0
- package/dist/spatial-contexts.cjs +56 -0
- package/dist/spatial-css.cjs +351 -0
- package/dist/spatial-inputs.cjs +80 -0
- package/dist/spatial-metadata.mjs +18 -0
- package/dist/spatial-model.cjs +322 -0
- package/dist/spatial.mjs +21 -0
- package/dist/stage-timing.cjs +20 -0
- package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
- package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
- package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
- package/dist/starters/preact/ds.config.json +24 -19
- package/dist/starters/preact/package.json +4 -8
- package/dist/starters/preact/tsconfig.json +4 -5
- package/dist/starters/preact/vite.config.ts +3 -3
- package/dist/starters/react/ADS.md +42 -47
- package/dist/starters/react/README.md +54 -52
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
- package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
- package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/index.ts +5 -8
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
- package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
- package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
- package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
- package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
- package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
- package/dist/starters/react/design-system/styles.css +1 -0
- package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
- package/dist/starters/react/design-system/tokens/colors.css +1 -1
- package/dist/starters/react/design-system/tokens/spacing.css +22 -32
- package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
- package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
- package/dist/starters/react/ds.config.json +24 -19
- package/dist/starters/react/package.json +2 -6
- package/dist/starters/react/tsconfig.json +2 -3
- package/dist/starters/react/vite.config.ts +3 -3
- package/dist/style-boundaries.mjs +73 -27
- package/dist/task-cache.mjs +173 -72
- package/dist/task-worker.mjs +22 -11
- package/dist/test-boundaries.mjs +133 -60
- package/dist/themes-generated.mjs +1 -1
- package/dist/themes-watch.mjs +60 -19
- package/dist/themes.mjs +176 -73
- package/dist/token-export.mjs +39 -14
- package/dist/token-policy.mjs +6 -3
- package/dist/token-quality.mjs +6 -6
- package/dist/token-samples.mjs +16 -5
- package/dist/tokens.mjs +71 -26
- package/dist/ui-framework.mjs +16 -14
- package/dist/unit-contracts.mjs +270 -89
- package/dist/units.mjs +215 -180
- package/dist/usage.mjs +138 -38
- package/dist/validation-checks.mjs +121 -38
- package/dist/validation-inputs.mjs +187 -78
- package/dist/validation.mjs +268 -102
- package/dist/verification/browser.mjs +27 -5
- package/dist/verification.mjs +711 -187
- package/docs/ADS.md +100 -89
- package/docs/ARCHITECTURE.md +353 -159
- package/docs/BEHAVIORS.md +33 -28
- package/docs/CACHING.md +55 -11
- package/docs/CHANGELOG.md +358 -17
- package/docs/COMPARISON.md +1 -1
- package/docs/CONTRACTS.md +22 -29
- package/docs/DESIGN-REFERENCES.md +40 -0
- package/docs/GUIDE.md +313 -292
- package/docs/MCP.md +261 -439
- package/docs/SPATIAL-CHECKS.md +69 -0
- package/docs/benchmarks/README.md +39 -0
- package/package.json +42 -34
- package/dist/browser-audit.mjs +0 -424
- package/dist/contract-migration.mjs +0 -110
- package/dist/create.mjs +0 -48
- package/dist/lint-config.mjs +0 -48
- package/dist/mcp/draft-exports.mjs +0 -40
- package/dist/mcp/edit-preparation.mjs +0 -115
- package/dist/mcp/project-widget.bundle.js +0 -114
- package/dist/mcp/reports.mjs +0 -101
- package/dist/mcp/widget.bundle.js +0 -147
- package/dist/oxlint.mjs +0 -88
- package/dist/preview-builder.mjs +0 -133
- package/dist/preview-workers.mjs +0 -184
- package/dist/showcase.mjs +0 -77
- package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
- package/dist/skills/ads-break-ui/README.md +0 -16
- package/dist/skills/ads-break-ui/SKILL.md +0 -415
- package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
- package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
- package/dist/skills/ads-break-ui/references/behaviors.md +0 -411
- package/dist/skills/ads-break-ui/references/captures.md +0 -160
- package/dist/skills/ads-break-ui/references/contracts.md +0 -284
- package/dist/skills/ads-break-ui/references/design-data.md +0 -354
- package/dist/skills/ads-break-ui/references/drafts.md +0 -178
- package/dist/skills/ads-break-ui/references/evidence.md +0 -128
- package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -154
- package/dist/skills/ads-break-ui/references/layers.md +0 -145
- package/dist/skills/ads-break-ui/references/reporting.md +0 -101
- package/dist/skills/ads-break-ui/references/review.md +0 -96
- package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
- package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
- package/dist/skills/ads-break-ui/references/validation.md +0 -162
- package/dist/skills/ads-break-ui/references/verification.md +0 -58
- package/dist/skills/ads-break-ui/references/workflows.md +0 -83
- package/dist/skills/ads-designer/references/reporting.md +0 -101
- package/dist/skills/ads-import/references/reporting.md +0 -101
- package/dist/skills/ads-motion/LICENSE.upstream +0 -21
- package/dist/skills/ads-motion/README.md +0 -22
- package/dist/skills/ads-motion/SKILL.md +0 -388
- package/dist/skills/ads-motion/agents/openai.yaml +0 -4
- package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
- package/dist/skills/ads-motion/references/audit.md +0 -44
- package/dist/skills/ads-motion/references/behaviors.md +0 -411
- package/dist/skills/ads-motion/references/captures.md +0 -160
- package/dist/skills/ads-motion/references/contracts.md +0 -284
- package/dist/skills/ads-motion/references/design-data.md +0 -354
- package/dist/skills/ads-motion/references/drafts.md +0 -178
- package/dist/skills/ads-motion/references/evidence.md +0 -128
- package/dist/skills/ads-motion/references/guarded-editing.md +0 -154
- package/dist/skills/ads-motion/references/layers.md +0 -145
- package/dist/skills/ads-motion/references/motion-review.md +0 -35
- package/dist/skills/ads-motion/references/reporting.md +0 -101
- package/dist/skills/ads-motion/references/review.md +0 -96
- package/dist/skills/ads-motion/references/runtimes.md +0 -203
- package/dist/skills/ads-motion/references/scenarios.md +0 -246
- package/dist/skills/ads-motion/references/validation.md +0 -162
- package/dist/skills/ads-motion/references/verification.md +0 -39
- package/dist/skills/ads-motion/references/workflows.md +0 -83
- package/dist/skills/ads-port/references/reporting.md +0 -101
- package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
- package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
- package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
- package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
- package/dist/starters/react/design-system/review/index.ts +0 -5
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
- package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
- package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
- package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
- package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
- package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
- package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
- package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
- package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
- package/dist/starters/react/package-lock.json +0 -4707
- package/dist/token-fixtures.mjs +0 -30
- package/docs/benchmarks/bun-previews.md +0 -91
- package/docs/benchmarks/preview-memory.md +0 -147
- package/docs/benchmarks/turbo-poc.md +0 -284
- package/docs/plans/execution-coordination.md +0 -57
- /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
- /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
|
@@ -3,163 +3,58 @@ name: ads-import
|
|
|
3
3
|
description: "Import selected source ADS components, patterns, styles, brand artwork or theme values into a project's design system. Check compatibility with the destination's framework, dependencies, APIs and token policy before applying. Preserve behavior, credits and license notices."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
## Choose the editing workflow
|
|
7
|
-
|
|
8
|
-
Read [direct editing and MCP-only editing](references/workflows.md) and use the
|
|
9
|
-
route matching the user's instructions and your actual source access:
|
|
10
|
-
|
|
11
|
-
- **Direct code access:** edit owned files with the normal editor; use MCP for
|
|
12
|
-
discovery, preview, captures and validation. Ordinary source edits do not
|
|
13
|
-
require a tracked draft or `ads_accept`, even when MCP mutations are enabled.
|
|
14
|
-
- **MCP-only access:** use source/draft mutation tools, rendered review and
|
|
15
|
-
exact-revision acceptance. Follow [tracked drafts](references/drafts.md).
|
|
16
|
-
Without mutation tools or another source channel, editing is unavailable.
|
|
17
|
-
|
|
18
|
-
Direct editors can also choose tracked drafts for isolation and comparison.
|
|
19
|
-
When using drafts, do not report coherent design work complete before reviewing
|
|
20
|
-
and accepting its required proposals. If blocked, report the exact unfinished
|
|
21
|
-
draft/blocker; retain a proposal intentionally only when the user requests it.
|
|
22
|
-
Auto mode means agent review, without an extra human approval step.
|
|
23
|
-
|
|
24
|
-
Compiler ownership is independent: direct edits normally use ADS's managed
|
|
25
|
-
compiler. `mcp.previewWatch: false` is the externally managed builder variant;
|
|
26
|
-
MCP serves published previews and evidence without starting a compiler.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
For validation scope, full audits, and CLI/MCP parity, read
|
|
30
|
-
[validation.md](references/validation.md).
|
|
31
|
-
|
|
32
|
-
For Node/Bun setup, MCP launch, compiler workers and project resource budgets,
|
|
33
|
-
read [runtimes.md](references/runtimes.md). Keep runtime choices, worker counts
|
|
34
|
-
and memory limits in project configuration; verify real workloads under them.
|
|
35
|
-
|
|
36
6
|
# ADS Import
|
|
37
7
|
|
|
38
|
-
When ADS MCP is connected, use `ads_status`/`ads_catalog` to inspect the destination
|
|
39
|
-
and discover its addressable scenarios; `ads_tokens` inspects its current
|
|
40
|
-
values. Render imported public implementations in real project fixtures, using
|
|
41
|
-
the normal showcase when Apps are unavailable. MCP does not perform the import
|
|
42
|
-
or replace source inspection. Resolve served skill references relative to this
|
|
43
|
-
`SKILL.md` URI and load them lazily; a read does not itself activate the skill.
|
|
44
|
-
Use the returned `projectRoot` and `project.commands`; the connected ADS may be
|
|
45
|
-
inside a different or nested repository. Inspect the selected public API, owning
|
|
46
|
-
source/available guides and relevant tokens, then mount its discovered scenario.
|
|
47
|
-
Metadata and source reads do not prove rendered behavior.
|
|
48
|
-
|
|
49
|
-
For MCP-only guarded editing with `ads_status.mutations.enabled`, discover the
|
|
50
|
-
owner with `ads_units`, read
|
|
51
|
-
relevant ranges with `ads_read_file` and send only a Git unified diff through
|
|
52
|
-
`ads_apply_patch({ unit, patch, dryRun })`. A unit includes its own implementation,
|
|
53
|
-
scenarios and fixtures; imported peers remain separate. `tokens` is the token
|
|
54
|
-
foundation unit. Unit discovery and file ownership are distinct from preview IDs.
|
|
55
|
-
Include only that owner's required re-exports in the public entry; preserve
|
|
56
|
-
unrelated statements. Its real re-export may accompany removal of a redundant
|
|
57
|
-
`export {};` placeholder; do not add empty exports. A `tokens` manifest lists the foundation
|
|
58
|
-
entry in `companionFiles`: when creating/deleting a canonical token file such as
|
|
59
|
-
`fonts.css`, include only its required import change there in the same patch.
|
|
60
|
-
Preserve other imports/comments and the canonical order. Runtime owner manifests
|
|
61
|
-
also list a `ds.config.json` companion: change only that owner's `inlineStyleFiles`
|
|
62
|
-
and `boundaries.styleWrites` entries together with its source. Unused permissions
|
|
63
|
-
fail the core checks; do not pre-register a boundary without its implementation.
|
|
64
|
-
Use `dryRun: true` to
|
|
65
|
-
inspect validation, including affected registered behavior checks on the isolated
|
|
66
|
-
candidate. For a prepared draft, request its diff and dry-run the returned
|
|
67
|
-
`patchFile`; `ads_verify` checks current source and accepts no draft argument.
|
|
68
|
-
Applying re-runs the gates. Fix rejected patches in their
|
|
69
|
-
owner. Use `ads_apply_transaction` for genuinely coupled owner patches;
|
|
70
|
-
never bypass a rejection with direct source writes. Shared styles/helpers use `foundation`, root guides use
|
|
71
|
-
`documentation`, and branding/fonts use their discovered `assets/*` unit.
|
|
72
|
-
Intentional configuration, rule exceptions, registered guard code and compiler
|
|
73
|
-
changes use `configuration`; validate the proposed settings and keep mandatory
|
|
74
|
-
ADS gates. For binary/large assets, generate `git diff --binary --full-index` into
|
|
75
|
-
`.ds/patches/<name>.patch` and send `patchFile` instead of inline `patch`, so bytes
|
|
76
|
-
stay out of model context. Binary changes require Git. These tool instructions
|
|
77
|
-
apply to the MCP editing route; direct editors use the workflow above and run
|
|
78
|
-
the same required gates/checks.
|
|
79
|
-
For owner drafts, token-sample reconciliation, coupled transactions and local
|
|
80
|
-
shared Data ownership, read [guarded-editing.md](references/guarded-editing.md).
|
|
81
|
-
For on-demand current/candidate screenshots and visual dry-run review, read
|
|
82
|
-
[captures.md](references/captures.md).
|
|
83
|
-
For a rejected patch, failed check or loading error, read
|
|
84
|
-
[evidence and diagnosis](references/evidence.md); inspect the failing boundary
|
|
85
|
-
then page needed `ads_results` sections using the returned result ID. Inspect
|
|
86
|
-
one `ads_investigate({unit,check,runId})` summary before changing APIs or policy;
|
|
87
|
-
load request/error/artifact details only when relevant.
|
|
88
|
-
|
|
89
|
-
Review/demo layout belongs in development-only `review/`, exported through the
|
|
90
|
-
separate `${publicAlias}/review` entry (normally `@ds/review`), never the production
|
|
91
|
-
barrel. Product patterns are application UI. For ownership, migration, token
|
|
92
|
-
renderers, build aliases or `review-import` / `review-contract` diagnostics, read
|
|
93
|
-
[development review UI](references/review.md), also served as `ads://guides/review`.
|
|
94
|
-
|
|
95
|
-
A component provides one cohesive UI capability; a pattern arranges capabilities
|
|
96
|
-
into reusable structures or workflows. Components may compose components/controllers;
|
|
97
|
-
layout patterns may arrange slots. Do not classify by component count. For shared
|
|
98
|
-
website/MCP App use, owner selection, or `component-dependency`,
|
|
99
|
-
`component-contract` or `component-style` diagnostics, read
|
|
100
|
-
[layer responsibilities and contracts](references/layers.md), also served as
|
|
101
|
-
`ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
|
|
102
|
-
|
|
103
|
-
For folder-group navigation, parent/child `covers`, conditional-control review, reference comparisons,
|
|
104
|
-
public style-helper use, native slot/selector composition, fragment navigation,
|
|
105
|
-
or `scenario-render` / `showcase-control` / `showcase-class` findings, read [scenario contracts](references/scenarios.md). Its verification
|
|
106
|
-
examples explain API visibility, reference baselines and state-transition checks.
|
|
107
|
-
Traced parents can cover declared public children; verified public Linaria
|
|
108
|
-
helpers do not grant custom scenario CSS.
|
|
109
|
-
|
|
110
|
-
For atomic base/variant styling, helper/wrapper class composition, extracted
|
|
111
|
-
custom-property arithmetic, typed `@property` registrations, or an
|
|
112
|
-
`atomic-composition-review` / `atomic-composition-limit` finding, read
|
|
113
|
-
[atomic style composition](references/atomic-styles.md). The same guide is served
|
|
114
|
-
as `ads://guides/atomic-styles`. It explains shorthand/logical conflicts and
|
|
115
|
-
matching-property fixes, plus the build resolver for preserving opaque custom
|
|
116
|
-
properties through extraction. Check review items in the real `cx` composition and verify
|
|
117
|
-
computed styles across affected sizes/states; retain intentional product behavior.
|
|
118
|
-
|
|
119
|
-
Controllers are UI behavior owners: private helpers stay with their component or
|
|
120
|
-
pattern; reusable controllers use discovered `controllers/<Name>` units. Use the
|
|
121
|
-
project's configured framework and declared dependencies, or plain TypeScript,
|
|
122
|
-
browser APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. The
|
|
123
|
-
framework setting selects compilation/mounting; controller checks also validate
|
|
124
|
-
imports. For controller/behavior work, read
|
|
125
|
-
[behaviors.md](references/behaviors.md), also served as `ads://guides/behaviors`. Discover registered guarantees
|
|
126
|
-
with `ads_behaviors`; use `ads_verify` for selected real checks. Optional
|
|
127
|
-
`exercises` links public behavioral APIs to scenarios; keep `covers` for rendered
|
|
128
|
-
UI. Registration and demonstration are not passing evidence. `<Owner>.ads.contract.ts`,
|
|
129
|
-
scenarios, fixtures and checks stay out of production exports/imports. Verify
|
|
130
|
-
current results, including lifecycle setup/cleanup/setup and the actual browser
|
|
131
|
-
profile when promised. React StrictMode needs a development harness; wrapping a
|
|
132
|
-
production widget cannot replay development effects. Keep dynamic behavior and
|
|
133
|
-
capabilities intact rather than rewriting them only for static coverage.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Before trusting a preview after edits, check `ads_status.build` or
|
|
137
|
-
`ads://project/build`. Fix build diagnostics in owned source; an older view or
|
|
138
|
-
unreported freshness is not evidence of current code. Notifications may not
|
|
139
|
-
reach the agent.
|
|
140
|
-
|
|
141
8
|
Transfer existing ADS implementation into the target design system. Use the
|
|
142
9
|
source's real files and documented contracts, integrating them with the target's
|
|
143
10
|
structure, exports, and build. Preserve the selected item's interaction and
|
|
144
11
|
motion mechanics. Its visual values follow the destination theme unless the
|
|
145
12
|
user also requests source token values.
|
|
146
13
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
|
|
151
|
-
not React presentation aliases. Keep Linaria extraction and the same public APIs.
|
|
152
|
-
`ads create` makes React or Preact projects; the tool repository's working
|
|
153
|
-
example uses Preact. Neither is a component dependency of the receiving project.
|
|
154
|
-
|
|
155
|
-
ADS is tooling only. Components, patterns, themes and scenarios live in
|
|
156
|
-
external sources, not a built-in or optional tool catalogue. Import the selected
|
|
157
|
-
external source into the destination's
|
|
158
|
-
local ADS folder; the project owns the resulting code and theme values, and the
|
|
159
|
-
app uses its local public barrel. Do not install the source ADS as a UI runtime
|
|
160
|
-
dependency. Later source updates require explicit imports or merges that preserve
|
|
14
|
+
Components, patterns, themes and scenarios live in external sources, not a
|
|
15
|
+
built-in tool catalogue. Import the selected source into the destination's local
|
|
16
|
+
ADS folder. Later source updates require explicit imports or merges that preserve
|
|
161
17
|
local customizations.
|
|
162
18
|
|
|
19
|
+
## Ground rules
|
|
20
|
+
|
|
21
|
+
Everything that is not specific to importing follows the shared ADS workflow. These
|
|
22
|
+
references ship with this skill; load them when the task touches their topic:
|
|
23
|
+
|
|
24
|
+
- Editing route (direct code access or MCP-only) and tracked drafts:
|
|
25
|
+
[workflows.md](references/workflows.md), [drafts.md](references/drafts.md),
|
|
26
|
+
[guarded-editing.md](references/guarded-editing.md).
|
|
27
|
+
- Gates and validation scope: [validation.md](references/validation.md); CLI integration:
|
|
28
|
+
[cli.md](references/cli.md); runtimes and the managed compiler: [runtimes.md](references/runtimes.md).
|
|
29
|
+
- Ownership: [layers.md](references/layers.md), [contracts.md](references/contracts.md),
|
|
30
|
+
[design-data.md](references/design-data.md).
|
|
31
|
+
- Scenarios, showcase and review helpers: [scenarios.md](references/scenarios.md),
|
|
32
|
+
[review.md](references/review.md), [captures.md](references/captures.md),
|
|
33
|
+
[evidence.md](references/evidence.md).
|
|
34
|
+
- Styling and layout: [atomic-styles.md](references/atomic-styles.md),
|
|
35
|
+
[layout.md](references/layout.md); controllers and behaviour: [behaviors.md](references/behaviors.md).
|
|
36
|
+
|
|
37
|
+
The rules that matter most while importing:
|
|
38
|
+
|
|
39
|
+
- With ADS MCP connected, start with `ads_status`; use its `projectRoot` and
|
|
40
|
+
`project.commands`, and check `ads_status.build` freshness before trusting a preview.
|
|
41
|
+
Metadata and source reads do not prove rendered behaviour.
|
|
42
|
+
- Every MCP source change goes through a draft and is accepted at its exact revision;
|
|
43
|
+
fix a rejected acceptance in the draft, never by writing source directly.
|
|
44
|
+
- React and native Preact are both supported: preserve the destination framework in
|
|
45
|
+
production and scenario builds, and keep Linaria extraction.
|
|
46
|
+
- ADS is tooling only. The project owns the resulting source and theme values, and the
|
|
47
|
+
app imports its local public barrel; never install a source library or ADS as a UI
|
|
48
|
+
runtime dependency of the product.
|
|
49
|
+
- Declare public names in each owner's `<Owner>.ads.exports.ts`; ADS generates the public
|
|
50
|
+
barrel, review entry and styles entry, and a hand edit fails.
|
|
51
|
+
- Demonstrate public UI in colocated `<Owner>.ads.scenario.tsx` / `.ads.fixture.ts` files;
|
|
52
|
+
larger screens go under `composition/`. Scenario files define no CSS, classes or widget
|
|
53
|
+
markup; reusable review framing lives in development-only `review/`.
|
|
54
|
+
- Run `ads check` and the project build. Register project-specific checks as package
|
|
55
|
+
scripts in `acceptance.scripts` / `validation.scripts`; behaviour tests go through ADS
|
|
56
|
+
contracts.
|
|
57
|
+
|
|
163
58
|
## Input and selection
|
|
164
59
|
|
|
165
60
|
```text
|
|
@@ -308,178 +203,12 @@ data, state and callback adapters beside their scenario; larger entries belong
|
|
|
308
203
|
under `composition/`, rather than inside browsing pages. Production-screen structure
|
|
309
204
|
and reusable controls/patterns must live in the ADS.
|
|
310
205
|
Do not copy a source mock's private implementation or keep a demo-only replica.
|
|
311
|
-
Reusable scenario review layouts are public ADS entities with defined APIs.
|
|
312
|
-
The outer minimal shell belongs to the MCP client. Showcase/scenario files define no CSS, custom classes, or widget markup.
|
|
313
|
-
Use the target's owned review layouts; change their development-only review helper if a new layout
|
|
314
|
-
is needed inside a scenario. The outer showcase shell belongs to the tool.
|
|
315
206
|
|
|
316
207
|
If no showcase is running, start the built-in client with `ads showcase`.
|
|
317
208
|
Run shared ADS/project guards before both showcase and app builds; inspect the
|
|
318
209
|
rendered examples and relevant interactions. Fix shared UI in its owner and
|
|
319
210
|
give a full running URL or exact run command for human review.
|
|
320
211
|
|
|
321
|
-
The showcase is a minimal shell plus an MCP client and Apps host, supplied by ADS
|
|
322
|
-
tooling. It discovers Tokens/Components/Patterns/Composition entries through MCP
|
|
323
|
-
tools and renders their scenarios in the preview App. Navigation, theme and
|
|
324
|
-
pane/header visibility belong to the tool client. Do not create page files,
|
|
325
|
-
copy its shell into the project or assemble a second catalogue/rendering pipeline.
|
|
326
|
-
|
|
327
|
-
When MCP is connected, open the running URL from `ads_status`. Otherwise run the
|
|
328
|
-
installed `ads showcase` or the project's `dev:showcase` script. Do not launch a
|
|
329
|
-
second runtime/compiler for the same connected project. A configured project
|
|
330
|
-
preview watcher publishes a shared graph on first demand and after source
|
|
331
|
-
changes. The built-in client refreshes discovery and the active scenario in the
|
|
332
|
-
same App after a successful build. Shared runtime, foundation CSS, fonts and
|
|
333
|
-
selected scenario modules load through MCP
|
|
334
|
-
resources inside the sandboxed App. Never inject project styles/runtime into
|
|
335
|
-
the outer host. Keep the configured framework, compiler and mount/unmount adapter
|
|
336
|
-
consistent; scenario teardown must release owned timers, portals and workers.
|
|
337
|
-
The host shows errors and marks retained output as stale. Other hosts may need an
|
|
338
|
-
explicit preview-tool invocation. Compilation remains project-owned and required
|
|
339
|
-
for TSX/Linaria; it is automatic, not eliminated.
|
|
340
|
-
|
|
341
|
-
Reusable review layouts belong in development-only `review/`, exported through
|
|
342
|
-
the separate review entry, while scenario
|
|
343
|
-
files define no CSS, custom classes or widget replicas. Keep real presentation in
|
|
344
|
-
its component/pattern owner. The tooling shell's CSS is outside that project
|
|
345
|
-
contract. Legacy custom showcase pages may be retained during migration; new
|
|
346
|
-
projects require no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
|
|
347
|
-
|
|
348
|
-
Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` with tokens and
|
|
349
|
-
each component/pattern. Put larger entries under `composition/<Name>/` with their
|
|
350
|
-
own marked scenario and fixture. Export a default
|
|
351
|
-
zero-input mountable view and literal metadata, for example
|
|
352
|
-
`export const scenario = { title: "Button states", covers: ["Button"] };`.
|
|
353
|
-
Import the real UI from the public ADS alias. Keep fixture inputs, simulated
|
|
354
|
-
services and initial state/callback adapters beside the scenario. Empty fixtures
|
|
355
|
-
are valid for an entry with no inputs. Extra development helpers use a
|
|
356
|
-
`<Owner>.ads.helpers.ts` file, so guards
|
|
357
|
-
recognize their role even beside runtime code. Never require a page, router or store to
|
|
358
|
-
initialize the entry. Several contextual public parts may share one scenario.
|
|
359
|
-
|
|
360
|
-
IDs derive from ADS-relative filenames: both `components/core/Button/Button.ads.scenario.tsx`
|
|
361
|
-
and `components/core/Button.ads.scenario.tsx` identify `components/core/Button`.
|
|
362
|
-
Use one form, no duplicate IDs or hand-maintained registry. Renames change IDs.
|
|
363
|
-
The showcase and external hosts mount the same discovered entry. ADS owns Bun
|
|
364
|
-
preview compilation and Linaria extraction independently of the application's
|
|
365
|
-
bundler. Configure the ADS framework and preview manifest; keep the project-owned
|
|
366
|
-
framework mount adapter and its cleanup. Use `ads compile` for standalone/CI
|
|
367
|
-
preview builds. MCP discovers metadata without importing executable TSX. Read
|
|
368
|
-
[Runtime and compiler setup](references/runtimes.md) when setting up or migrating
|
|
369
|
-
the compiler.
|
|
370
|
-
Use `ads_scenarios` (query/kind/limit) and `ads_show_scenario({id})` to open an exact
|
|
371
|
-
entry. Check its build freshness; HTML delivery is not browser verification.
|
|
372
|
-
If Apps or resource forwarding are unavailable, open that scenario in the real
|
|
373
|
-
showcase, using the tool result's URL. Do not build a preview-only replica.
|
|
374
|
-
|
|
375
|
-
For a production screen, find and render the application's public screen pattern.
|
|
376
|
-
Its owner supplies structure, controls, layout and presentation. Scenario fixtures
|
|
377
|
-
supply data/state/callbacks. Move shared presentation into a pattern if needed,
|
|
378
|
-
preserving existing behavior and lazy imports, workers, caching and cancellation.
|
|
379
|
-
Do not reassemble an alternative screen or substitute placeholder content.
|
|
380
|
-
Screen reuse remains skill guidance, not a dedicated screen-parity lint.
|
|
381
|
-
|
|
382
|
-
Resolve `scenario-contract`, `scenario-render` and `scenario-coverage` findings
|
|
383
|
-
with meaningful entries. Every public renderable component and pattern needs an
|
|
384
|
-
addressable scenario, including unused exports; types/constants/utilities do not.
|
|
385
|
-
Only public render references reachable from the default entry count. Tests and
|
|
386
|
-
unused imports/functions do not. Static reachability does not prove successful
|
|
387
|
-
mounting, correct content, every branch/state or visual parity: open each affected
|
|
388
|
-
entry independently and verify real behavior at narrow/wide sizes in both themes.
|
|
389
|
-
The older `showcase-coverage` policy separately checks application references.
|
|
390
|
-
|
|
391
|
-
Token previews use that same scenario pipeline. Colocate a token scenario and
|
|
392
|
-
fixture under the configured token directory. Declare metadata
|
|
393
|
-
`{ title: fixture.title, covers: ["TokenSamples"], samples: fixture.samples }`.
|
|
394
|
-
The renderer name is project-owned; use its real public API. Each literal fixture
|
|
395
|
-
sample declares `{ token, property, probe }`: a real token, the CSS property its
|
|
396
|
-
sample demonstrates, and a valid test value different from that token's current
|
|
397
|
-
value. Pass `samples` into the rendered development-only review renderer. Names, sample text,
|
|
398
|
-
bindings and probes are fixture data; displayed values come from foundation CSS.
|
|
399
|
-
There is no property catalogue, token-name mapping or probe palette in ADS.
|
|
400
|
-
Every token needs sample coverage; fabricated tokens, missing bindings/probes,
|
|
401
|
-
unused fixtures and value-only lists fail the static gates. `covers: []` is invalid.
|
|
402
|
-
During App rendering, the browser checks sample markers `data-ads-token` and
|
|
403
|
-
`data-ads-property`, validates CSS with its own `CSS.supports`, and temporarily
|
|
404
|
-
probes each token to verify that the declared sample property responds. It restores
|
|
405
|
-
values immediately. Missing, hidden, invalid or hardcoded samples produce a preview
|
|
406
|
-
error instead of a successful review. These browser checks apply to the mounted
|
|
407
|
-
scenario/theme, not every application state or pixel-level design quality.
|
|
408
|
-
Keep styles in the project renderer; do not add inline-style exemptions to scenarios.
|
|
409
|
-
Fix `token-scenario-reference`, `token-scenario-render` and `token-scenario-coverage`
|
|
410
|
-
findings. Metadata and unused fixture fields do not count. Discover exact token IDs with `ads_scenarios({kind:"tokens"})`; mount them
|
|
411
|
-
with `ads_show_scenario({id})` or `ads_show_tokens({category:id})`. With the shared
|
|
412
|
-
resource compiler, omitting category opens the first project token scenario.
|
|
413
|
-
Legacy compilers retain the generic definition inspector. Use `ads_tokens` for
|
|
414
|
-
source definitions and values; inspecting definitions does not prove UI parity.
|
|
415
|
-
The tool keeps the shared naming contract; sample templates and their token
|
|
416
|
-
lists belong to the project.
|
|
417
|
-
|
|
418
|
-
Development review helpers need no product catalogue scenario. A token scenario
|
|
419
|
-
may name its review renderer in `covers`; ordinary component/pattern scenarios
|
|
420
|
-
cover their production subjects. Keep review exports in the separate review entry.
|
|
421
|
-
Remove redundant helper catalogue scenarios during migration. Product UI retains
|
|
422
|
-
its real render-coverage requirement. Keep directory ownership anchored by its
|
|
423
|
-
implementation entry (`index` or a file matching the directory name) or colocated fixture.
|
|
424
|
-
Import colocated image/font fixtures so MCP serves them through asset resources.
|
|
425
|
-
For a broken-image case, use a local failing fixture, rather than an external
|
|
426
|
-
network failure or a domain-specific CSP exception. Production asset APIs remain
|
|
427
|
-
unrestricted by this fixture guidance.
|
|
428
|
-
|
|
429
|
-
Scenarios, colocated fixtures and helpers are development-only. Never export them
|
|
430
|
-
from the runtime barrel or import them in production, including through aliases,
|
|
431
|
-
re-exports or dynamic imports. They may not import application stores, routers,
|
|
432
|
-
providers or HTTP clients. Live business data is application-owned; UI uses typed
|
|
433
|
-
inputs or injected services/callbacks. Direct global fetch/XHR/WebSocket/EventSource
|
|
434
|
-
is rejected; custom clients and computed access require review/project guards.
|
|
435
|
-
Use local simulated services in fixtures. Tests may import fixtures; load real
|
|
436
|
-
foundation CSS rather than assigning shared token values in JavaScript. Keep
|
|
437
|
-
full-app integration harnesses and workflow coverage in application test support.
|
|
438
|
-
|
|
439
|
-
Foundation CSS is checked, not an escape hatch. Value sheets define shared tokens
|
|
440
|
-
on the document root (per-theme halves) or a brand's `[data-brand]`; `fonts.css`
|
|
441
|
-
holds font-face metadata. `base.css` has three closed roles: root/body typography,
|
|
442
|
-
canvas and theme defaults; limited native normalization; and global focus
|
|
443
|
-
indicators/reduced-motion rules. Every selector
|
|
444
|
-
branch, property and value must fit its role. Token-backed control skins, layout,
|
|
445
|
-
interactive state rules and owner hooks are rejected even through `:where()`.
|
|
446
|
-
Do not copy an unchecked upstream preflight or turn a component repair into a reset.
|
|
447
|
-
Keep behavior and skin in their runtime owner. Put demo-only sizing and framing
|
|
448
|
-
in a development-only review helper; add component props for a deliberate runtime
|
|
449
|
-
API need. Preserve required capabilities while following ownership rules.
|
|
450
|
-
Use tokens for absolute/font-relative lengths, including `ch`, `ex`, `cap`, `ic`
|
|
451
|
-
and `lh`; calculations and fallback values follow the same rule. Structural
|
|
452
|
-
angle units remain available for orientation, skew and spin. Put tunable visual
|
|
453
|
-
angles in project tokens; static checks cannot infer that intent. Percentages,
|
|
454
|
-
grid fractions and viewport/container relationships retain structural use.
|
|
455
|
-
Browser review still verifies the effects.
|
|
456
|
-
|
|
457
|
-
Invalid metadata and source failures keep the managed compiler alive for repairs.
|
|
458
|
-
Read `ads_status.build` or `ads://project/build`, fix the owner, then wait for current
|
|
459
|
-
successful output. If the builder exited, fix its command and invoke the preview
|
|
460
|
-
again; ADS starts one fresh child without an MCP reconnect. Compiler-code changes
|
|
461
|
-
also reload on the next preview invocation. Reconnect the client when upgrading
|
|
462
|
-
the ADS server package itself. Persistent SSE/notification streams make
|
|
463
|
-
`networkidle` unsuitable: wait for the App's current ready/error state instead.
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
Run ADS's own gates directly with `ads check`; acceptance and validation do not
|
|
469
|
-
require Oxlint. Register project-specific checks as explicit package scripts in
|
|
470
|
-
`mcp.mutationChecks` / `validation.checks`, and behavior tests through ADS contracts.
|
|
471
|
-
A project can use its own linter in those scripts when desired. Measured renderer properties and documented
|
|
472
|
-
non-state hooks use explicit `boundaries`; shared token writes and primitive
|
|
473
|
-
state overrides cannot be allowlisted. When migrating JSX inline geometry to
|
|
474
|
-
imperative writes, port the source and replace its own boundary entries together
|
|
475
|
-
in the owner's patch. Remove obsolete `inlineStyleFiles` entries and unused
|
|
476
|
-
`styleWrites` properties; do not broaden permissions to keep a migration passing.
|
|
477
|
-
Pointer-capture advisories call for review of cancellation, capture loss and
|
|
478
|
-
teardown, including cleanup delegated to hooks. Verify actual cleanup in a browser;
|
|
479
|
-
a locally present handler alone does not prove correctness.
|
|
480
|
-
Add generic architectural protections to
|
|
481
|
-
ADS core and keep domain/component-specific rules registered in project setup.
|
|
482
|
-
|
|
483
212
|
Write or update the imported item's local README with public usage, required
|
|
484
213
|
setup, token hooks, behavior, tests, and any integration differences. Include
|
|
485
214
|
source repository/file links, revision, authors, and concrete provenance. Carry
|
|
@@ -500,7 +229,7 @@ typography, spacing, and motion behavior.
|
|
|
500
229
|
Follow [references/cli.md](references/cli.md) to integrate the tool as a
|
|
501
230
|
development dependency in the target's actual lint/build pipeline. Run native ADS gates with `ads check`. Register imported component-specific
|
|
502
231
|
guards as explicit project scripts and include them in the project build and,
|
|
503
|
-
when needed, `
|
|
232
|
+
when needed, `acceptance.scripts`.
|
|
504
233
|
Use npx for bootstrap or ad hoc checks. Preserve unrelated existing lint setup;
|
|
505
234
|
do not add catalogue imports to core tooling. CLI checks complement the project
|
|
506
235
|
build and behavior tests.
|
|
@@ -510,17 +239,3 @@ destination values were retained or source values imported, source revision/path
|
|
|
510
239
|
retained notices, checks run, and any unresolved integration limits. Give actual
|
|
511
240
|
demo URLs only when running; clean up
|
|
512
241
|
temporary comparison servers when finished unless the user requested they remain.
|
|
513
|
-
|
|
514
|
-
For static owner contracts, `.ads.` development roles, typed paint/binding APIs,
|
|
515
|
-
declarative parent graphs, constrained theme bindings, private visual subject roles,
|
|
516
|
-
shared Data ownership and guarded migration, read
|
|
517
|
-
[contracts.md](references/contracts.md) when the task touches those contracts.
|
|
518
|
-
|
|
519
|
-
For a suspected ADS defect or missing capability after targeted investigation, read
|
|
520
|
-
[reporting.md](references/reporting.md). Record actionable observations with
|
|
521
|
-
`ads_report_bug` or `ads_request_feature`; preserve valid APIs and rejected drafts.
|
|
522
|
-
|
|
523
|
-
For Data/UX/Skin boundaries, shared token reuse and private-value diagnostics, read
|
|
524
|
-
[design-data.md](references/design-data.md). Components own mappings and mechanics,
|
|
525
|
-
not independent token catalogues. Existing project font, text and spacing roles
|
|
526
|
-
take precedence over divergent upstream constants during adaptation.
|
|
@@ -147,8 +147,8 @@ around the bare `+`, leaving `0.05+1`. The browser then treats the transform as
|
|
|
147
147
|
invalid. This can happen with CSS minification disabled. Source guards cannot
|
|
148
148
|
prove what a later extractor emits.
|
|
149
149
|
|
|
150
|
-
Use ADS's build-only resolver in
|
|
151
|
-
|
|
150
|
+
Use ADS's build-only resolver in the application's Linaria configuration.
|
|
151
|
+
ADS's managed Bun preview compiler already uses it:
|
|
152
152
|
|
|
153
153
|
```js
|
|
154
154
|
import wyw from "@wyw-in-js/vite";
|
|
@@ -161,7 +161,7 @@ wyw({ tagResolver: linariaTagResolver });
|
|
|
161
161
|
The resolver keeps the project's installed atomic processor and preserves opaque
|
|
162
162
|
custom-property values through its nesting/atomization pass. It does not add a
|
|
163
163
|
browser runtime or alter token ownership. Existing projects must adopt it in
|
|
164
|
-
|
|
164
|
+
their application extraction pipelines; upgrading ADS does not rewrite those builders.
|
|
165
165
|
If an existing `tagResolver` handles other tags, delegate atomic imports to
|
|
166
166
|
`linariaTagResolver(source, tag)` and retain the existing fallback. WyW config
|
|
167
167
|
files also support this resolver when a build integration requires serializable
|
|
@@ -235,7 +235,7 @@ the conflict. Prefer resolving the composition itself. If an overlap is
|
|
|
235
235
|
intentional, document why its precedence is stable and verify the resulting
|
|
236
236
|
behavior rather than changing product capabilities to silence a review item.
|
|
237
237
|
|
|
238
|
-
Use existing behavior contracts
|
|
238
|
+
Use existing behavior contracts, run by the gates or `ads verify`, for important geometry. Register
|
|
239
239
|
a check beside its owner, link its real scenario and use the project's browser
|
|
240
240
|
profile. An assertion can inspect the actual control in the App frame:
|
|
241
241
|
|
|
@@ -19,7 +19,8 @@ or assume a renderer/library supplied by an MCP host. The framework field select
|
|
|
19
19
|
compilation/mounting; controller checks also validate runtime imports. Type-only
|
|
20
20
|
UI references are allowed, but shared controllers cannot import component/pattern
|
|
21
21
|
runtime implementations. Keep business data in application adapters. Measured
|
|
22
|
-
style writes retain exact
|
|
22
|
+
style writes retain the exact properties declared in the owner contract's
|
|
23
|
+
`styles.writes`; they do not allow
|
|
23
24
|
shared-token overrides or an extra styling layer.
|
|
24
25
|
Projects explicitly approve installed runtime packages through
|
|
25
26
|
`behaviorLibraries` in `ds.config.json`; each must also be a `package.json`
|
|
@@ -38,7 +39,7 @@ build and browser review; declaring a dependency does not prove it is headless.
|
|
|
38
39
|
Register owner behavior in `<Owner>.ads.contract.ts` with actual API and
|
|
39
40
|
implementation references. The
|
|
40
41
|
[contract reference](contracts.md) covers static authoring, `.ads.behavior.spec.ts`,
|
|
41
|
-
declarative `exercises
|
|
42
|
+
declarative `exercises` and required browser checks.
|
|
42
43
|
A contract declaration alone is not passing evidence. Use
|
|
43
44
|
`auditBehaviorPaints(frame)` after relevant binding updates to repeat the current
|
|
44
45
|
App's generic paint audit, in addition to assertions for the named guarantee.
|
|
@@ -46,7 +47,7 @@ App's generic paint audit, in addition to assertions for the named guarantee.
|
|
|
46
47
|
## Development boundary
|
|
47
48
|
|
|
48
49
|
Production includes real components, controllers, tokens and compiled styles.
|
|
49
|
-
Scenarios and fixtures are included only in previews.
|
|
50
|
+
Scenarios and fixtures are included only in previews. Owner contracts and test
|
|
50
51
|
files are development/tooling inputs. Runtime imports and public re-exports of
|
|
51
52
|
those inputs are rejected, including dynamic imports and aliases.
|
|
52
53
|
|
|
@@ -162,7 +163,7 @@ command. For a project with an installed Playwright test runner:
|
|
|
162
163
|
}
|
|
163
164
|
```
|
|
164
165
|
|
|
165
|
-
Here `runtime` uses the
|
|
166
|
+
Here `runtime` uses the Bun that runs ADS, and the
|
|
166
167
|
project supplies the installed Playwright entry. Explicit executable commands
|
|
167
168
|
retain their meaning. A Bun package-script profile can use `command: "bun"`
|
|
168
169
|
with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
|
|
@@ -220,11 +221,11 @@ after a failure, does not establish the cause. Preserve the draft and original
|
|
|
220
221
|
diagnostic; do not change a component API, reference example or verification
|
|
221
222
|
policy to compensate for a resource-loading failure.
|
|
222
223
|
|
|
223
|
-
The reporter atomically publishes partial snapshots at test start/end. While
|
|
224
|
-
run is active, `ads_status.
|
|
225
|
-
elapsed time, completed/active/pending counts,
|
|
226
|
-
case identities/timings.
|
|
227
|
-
`ads_status.mutations.progress`. Clients requesting MCP progress receive updates
|
|
224
|
+
The reporter atomically publishes partial snapshots at test start/end. While an
|
|
225
|
+
`ads_validate` run is active, `ads_status.validation.progress` (stage `behavior`)
|
|
226
|
+
exposes the profile, runner budget, elapsed time, completed/active/pending counts,
|
|
227
|
+
worker count when available and case identities/timings. Draft acceptance exposes
|
|
228
|
+
the same data at `ads_status.mutations.progress`. Clients requesting MCP progress receive updates
|
|
228
229
|
and a heartbeat during the runner phase; client-side request timeouts still apply.
|
|
229
230
|
`durationMs` records completed case execution, including attempts, separately from
|
|
230
231
|
the suite's wall time. Parallel case durations can sum to more than wall time.
|
|
@@ -323,9 +324,10 @@ General listings return counts and short API/guarantee/scenario summaries. Exact
|
|
|
323
324
|
owner requests return the registered details; source reads remain available for
|
|
324
325
|
bounded inspection of large contracts. No full guide or test body is injected
|
|
325
326
|
into discovery results.
|
|
326
|
-
|
|
327
|
+
Over MCP, behavior tests run inside the two gates: `ads_accept` runs the draft
|
|
328
|
+
owners' own tests and `ads_validate` every test its change set reaches. Read
|
|
327
329
|
`ads://project/behaviors` for current evidence or `ads://guides/behaviors` for this
|
|
328
|
-
guide. CLI
|
|
330
|
+
guide. To run one unit's checks from the CLI or CI:
|
|
329
331
|
|
|
330
332
|
```sh
|
|
331
333
|
ads behaviors . --json
|
|
@@ -373,34 +375,36 @@ and retains dependencies with declared side effects. This narrowing requires a
|
|
|
373
375
|
package `sideEffects:false` or a supported simple `sideEffects` glob array; preserve
|
|
374
376
|
CSS/global effects in that policy. Unknown policies/patterns, wildcard exports and
|
|
375
377
|
computed imports remain conservative. Barrel source changes still invalidate
|
|
376
|
-
dependents.
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
`
|
|
384
|
-
`
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
for
|
|
378
|
+
dependents. Native snapshots reuse unchanged ASTs and semantic queries across
|
|
379
|
+
inspections; request facts and dependency digests are scoped to captured inputs.
|
|
380
|
+
Later runs verify current source/configuration before reusing results. Selection
|
|
381
|
+
includes previous consumers when imports change and widens conservatively when
|
|
382
|
+
dependency evidence is missing.
|
|
383
|
+
|
|
384
|
+
Draft acceptance and guarded mutations run the draft owners' own registered
|
|
385
|
+
behavior contracts after `ads check` and `acceptance.scripts`, before writing
|
|
386
|
+
source, unless `acceptance.behavior` is false. `ads_validate` always runs every
|
|
387
|
+
contract its change set reaches, including the consumers of a changed shared
|
|
388
|
+
controller, selected conservatively. See [the two gates](validation.md). Rejected
|
|
389
|
+
and dry-run patches publish no source changes. Verification output stays under
|
|
390
|
+
`.ds/`. To check a draft, call `ads_accept({id, revision, dryRun:true})`. This
|
|
391
|
+
checks the candidate, including the owners' behavior contracts and their browser
|
|
392
|
+
preview, rendered through ADS's managed compiler. Candidate evidence is not
|
|
393
|
+
persisted as passing evidence for live source. `ads verify` runs checks for current
|
|
394
|
+
source and has no draft argument.
|
|
392
395
|
|
|
393
396
|
## Packaging and performance
|
|
394
397
|
|
|
395
398
|
Controllers follow normal component/scenario imports into the project's compiled
|
|
396
|
-
resource graph. Their framework dependencies are bundled by
|
|
399
|
+
resource graph. Their framework dependencies are bundled by ADS's Bun preview compiler
|
|
397
400
|
and served through MCP resources inside the App iframe; external hosts install
|
|
398
401
|
nothing. The selected scenario loads its dependency closure. Shared modules are
|
|
399
402
|
cached within that App instance, and each separately opened App has its own runtime.
|
|
400
403
|
|
|
401
404
|
Keep ESM modules and explicit imports. Avoid an eagerly imported controller
|
|
402
|
-
registry.
|
|
403
|
-
side effects, global CSS and dynamic
|
|
405
|
+
registry. Production tree shaking and shared chunks follow the application's
|
|
406
|
+
bundler; previews use Bun. Class methods, side effects, global CSS and dynamic
|
|
407
|
+
maps can retain extra code. Inspect emitted
|
|
404
408
|
resources instead of assuming a controller produces a minimal bundle.
|
|
405
409
|
|
|
406
410
|
Development-only `review/<Owner>` units may register the same guarantee/check
|
|
@@ -13,9 +13,9 @@ icon source unless replacing them is part of the request.
|
|
|
13
13
|
Copy selected masters into `design-system/assets/brand/`, with their dark-theme
|
|
14
14
|
variants (`<name>.dark.svg`) when the source pairs them. Update its local README
|
|
15
15
|
with usage, suitable backgrounds, source repository/file links and revision,
|
|
16
|
-
authors, credits, and applicable license notices
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
authors, credits, and applicable license notices. ADS shows imported files in
|
|
17
|
+
`assets/brand/` (subfolders included) in the Brand section itself. `ads check` fails undescribed or unlicensed
|
|
18
|
+
artwork (`brand-readme`, `brand-license`) and lists unused artwork for review (`brand-unused`). Keep fixed colors and geometry
|
|
19
19
|
in original SVG artwork. Licensed fonts needed by an explicit theme import live
|
|
20
20
|
in `assets/fonts/`; declarations use `tokens/fonts.css`.
|
|
21
21
|
|
|
@@ -44,8 +44,8 @@ the project. A configured SVG background is retained; otherwise rendering keeps
|
|
|
44
44
|
transparent padding and the artwork's aspect ratio.
|
|
45
45
|
|
|
46
46
|
Follow [cli.md](cli.md) to integrate local tooling into the normal npm/Bun build:
|
|
47
|
-
ADS checks
|
|
48
|
-
|
|
47
|
+
ADS checks run before asset generation and the existing build steps. Keep the
|
|
48
|
+
project's own lint scripts in its build policy. Run the normal build, inspect actual icon dimensions and
|
|
49
49
|
transparency, and verify the real consumer URLs and selected artwork variants.
|
|
50
50
|
Confirm token values, unselected artwork, configuration, and unrelated build
|
|
51
51
|
steps were preserved. Report source provenance, selected originals, icon-source
|