@reqvire-org/ads 0.4.0 → 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 +105 -86
- 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 +5 -5
- 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 +219 -77
- package/dist/boundaries.mjs +135 -38
- package/dist/brand-assets.mjs +219 -47
- package/dist/brands.mjs +86 -27
- package/dist/bun-compiler.mjs +28 -14
- 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 +40 -57
- package/dist/check.mjs +749 -188
- package/dist/cli.mjs +200 -99
- package/dist/color-values.mjs +21 -21
- package/dist/component-contrast.mjs +2 -2
- package/dist/config.mjs +303 -135
- package/dist/construction-styles.cjs +10 -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 +2 -2
- package/dist/foundation-views.mjs +238 -0
- package/dist/foundation.mjs +63 -39
- package/dist/generated-entries.mjs +101 -34
- package/dist/icons.mjs +79 -32
- package/dist/image-attributes.mjs +109 -36
- package/dist/image-size.mjs +1 -1
- package/dist/index.mjs +0 -2
- package/dist/init.mjs +122 -41
- package/dist/investigations.mjs +2 -2
- package/dist/layers.mjs +298 -129
- 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 +90 -26
- package/dist/mcp/context.mjs +17 -18
- package/dist/mcp/draft-discovery.mjs +44 -21
- package/dist/mcp/drafts.mjs +901 -281
- package/dist/mcp/execution-coordinator.mjs +417 -167
- package/dist/mcp/execution-results.mjs +7 -7
- package/dist/mcp/mutations.mjs +670 -234
- package/dist/mcp/preview-watch.mjs +448 -170
- package/dist/mcp/preview-widget.bundle.js +44 -50
- package/dist/mcp/prompts.mjs +5 -5
- package/dist/mcp/result-pages.mjs +1 -1
- package/dist/mcp/sandbox-host.mjs +1 -1
- package/dist/mcp/server.mjs +2402 -577
- package/dist/mcp/showcase-host.mjs +165 -41
- 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 +8 -34
- package/dist/project-documents.mjs +1 -1
- package/dist/public-api.mjs +69 -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 +719 -378
- package/dist/scenarios-vite.d.mts +1 -3
- package/dist/scenarios-vite.mjs +2 -81
- package/dist/scenarios.mjs +421 -157
- 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 +130 -119
- package/dist/skills/ads-designer/references/accessibility.md +12 -13
- package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
- package/dist/skills/ads-designer/references/behaviors.md +30 -27
- package/dist/skills/ads-designer/references/branding.md +98 -10
- package/dist/skills/ads-designer/references/captures.md +25 -0
- package/dist/skills/ads-designer/references/cli.md +21 -24
- package/dist/skills/ads-designer/references/contracts.md +7 -6
- package/dist/skills/ads-designer/references/design-data.md +49 -52
- package/dist/skills/ads-designer/references/drafts.md +20 -17
- package/dist/skills/ads-designer/references/evidence.md +1 -5
- package/dist/skills/ads-designer/references/guarded-editing.md +14 -18
- 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/review.md +37 -34
- package/dist/skills/ads-designer/references/runtimes.md +33 -30
- package/dist/skills/ads-designer/references/scenarios.md +16 -18
- 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 -75
- package/dist/skills/ads-designer/references/workflows.md +8 -33
- package/dist/skills/ads-import/SKILL.md +43 -325
- package/dist/skills/ads-import/references/atomic-styles.md +4 -4
- package/dist/skills/ads-import/references/behaviors.md +30 -27
- package/dist/skills/ads-import/references/branding.md +5 -5
- package/dist/skills/ads-import/references/captures.md +25 -0
- package/dist/skills/ads-import/references/cli.md +21 -24
- package/dist/skills/ads-import/references/compatibility.md +1 -1
- package/dist/skills/ads-import/references/contracts.md +7 -6
- package/dist/skills/ads-import/references/design-data.md +49 -52
- package/dist/skills/ads-import/references/drafts.md +20 -17
- package/dist/skills/ads-import/references/evidence.md +1 -5
- package/dist/skills/ads-import/references/guarded-editing.md +14 -18
- 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 +37 -34
- package/dist/skills/ads-import/references/runtimes.md +33 -30
- package/dist/skills/ads-import/references/scenarios.md +16 -18
- package/dist/skills/ads-import/references/tokens.md +3 -3
- package/dist/skills/ads-import/references/validation.md +83 -75
- package/dist/skills/ads-import/references/workflows.md +8 -33
- 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 -343
- package/dist/skills/ads-port/references/atomic-styles.md +4 -4
- package/dist/skills/ads-port/references/behaviors.md +30 -27
- package/dist/skills/ads-port/references/captures.md +25 -0
- package/dist/skills/ads-port/references/cli.md +21 -24
- package/dist/skills/ads-port/references/contracts.md +7 -6
- package/dist/skills/ads-port/references/design-data.md +49 -52
- package/dist/skills/ads-port/references/drafts.md +20 -17
- package/dist/skills/ads-port/references/evidence.md +1 -5
- package/dist/skills/ads-port/references/guarded-editing.md +14 -18
- 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 +2 -1
- package/dist/skills/ads-port/references/review.md +37 -34
- package/dist/skills/ads-port/references/runtimes.md +33 -30
- package/dist/skills/ads-port/references/scenarios.md +16 -18
- package/dist/skills/ads-port/references/validation.md +83 -75
- package/dist/skills/ads-port/references/workflows.md +8 -33
- 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 +25 -6
- 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 +47 -49
- 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/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/index.ts +2 -1
- 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/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 -1
- 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 -1
- 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/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 +25 -6
- 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 +70 -25
- package/dist/task-cache.mjs +173 -72
- package/dist/task-worker.mjs +22 -11
- package/dist/test-boundaries.mjs +132 -59
- package/dist/themes-generated.mjs +1 -1
- package/dist/themes-watch.mjs +57 -22
- 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 +251 -104
- package/dist/units.mjs +208 -98
- package/dist/usage.mjs +138 -38
- package/dist/validation-checks.mjs +115 -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 +90 -79
- package/docs/ARCHITECTURE.md +294 -136
- package/docs/BEHAVIORS.md +29 -25
- package/docs/CACHING.md +52 -17
- package/docs/CHANGELOG.md +309 -17
- package/docs/CONTRACTS.md +12 -4
- package/docs/DESIGN-REFERENCES.md +40 -0
- package/docs/GUIDE.md +270 -258
- package/docs/MCP.md +181 -324
- 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 -429
- package/dist/create.mjs +0 -48
- package/dist/lint-config.mjs +0 -50
- 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 -89
- 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 -412
- 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 -412
- package/dist/skills/ads-break-ui/references/captures.md +0 -135
- package/dist/skills/ads-break-ui/references/contracts.md +0 -317
- package/dist/skills/ads-break-ui/references/design-data.md +0 -354
- package/dist/skills/ads-break-ui/references/drafts.md +0 -194
- package/dist/skills/ads-break-ui/references/evidence.md +0 -128
- package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -165
- 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 -97
- 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 -166
- package/dist/skills/ads-break-ui/references/verification.md +0 -58
- package/dist/skills/ads-break-ui/references/workflows.md +0 -90
- 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 -385
- 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 -412
- package/dist/skills/ads-motion/references/captures.md +0 -135
- package/dist/skills/ads-motion/references/contracts.md +0 -317
- package/dist/skills/ads-motion/references/design-data.md +0 -354
- package/dist/skills/ads-motion/references/drafts.md +0 -194
- package/dist/skills/ads-motion/references/evidence.md +0 -128
- package/dist/skills/ads-motion/references/guarded-editing.md +0 -165
- 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 -97
- 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 -166
- package/dist/skills/ads-motion/references/verification.md +0 -39
- package/dist/skills/ads-motion/references/workflows.md +0 -90
- package/dist/skills/ads-port/references/reporting.md +0 -101
- package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
- 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.ads.contract.ts +0 -6
- 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.contract.ts +0 -6
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +0 -1
- 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.ads.exports.ts +0 -1
- 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.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
- package/dist/starters/react/design-system/review/index.ts +0 -6
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +0 -1
- 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
|
@@ -1,385 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ads-motion
|
|
3
|
-
description: Implement, review, audit, or profile web animation in a project's local design system. Use for motion purpose, easing, timing, origins, interruptibility, reduced motion, and rendering performance while preserving token and component ownership.
|
|
4
|
-
---
|
|
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
|
-
Accept a component/pattern name, file, screen, or project path and infer the mode
|
|
37
|
-
from the request. Inspect before proposing motion: read `docs/ARCHITECTURE.md` when
|
|
38
|
-
present (or the existing architecture guide), the project's ADS guide,
|
|
39
|
-
public exports, item README, motion tokens, styles, and relevant state logic.
|
|
40
|
-
Preserve its framework and existing animation stack. Author component/pattern
|
|
41
|
-
CSS motion in the required Linaria pipeline; keep dynamic geometry within the
|
|
42
|
-
project's documented boundaries.
|
|
43
|
-
|
|
44
|
-
React and native Preact are supported. Preserve the target runtime in both
|
|
45
|
-
production and scenario builds; never alias React to Preact just to shrink a
|
|
46
|
-
preview. Native Preact uses its own JSX transform, hooks and DOM events (live
|
|
47
|
-
text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
|
|
48
|
-
not React presentation aliases. Keep Linaria extraction and the same public APIs.
|
|
49
|
-
`ads create` makes React or Preact projects; the tool repository's working
|
|
50
|
-
example uses Preact. Neither is a component dependency of the receiving project.
|
|
51
|
-
|
|
52
|
-
ADS is tooling only. Work on project-owned source; do not install a component
|
|
53
|
-
library or animation dependency merely because an upstream example uses one.
|
|
54
|
-
Use the actual local public API for demos and tests. An empty ADS needs a defined
|
|
55
|
-
interaction/component before motion can be implemented.
|
|
56
|
-
|
|
57
|
-
## Choose the mode
|
|
58
|
-
|
|
59
|
-
When ADS MCP is connected, use `ads_status`/`ads_catalog` to find public UI, guides
|
|
60
|
-
and addressable scenarios. Registered Apps render real project fixtures, while
|
|
61
|
-
`ads_tokens` inspects motion values. Use the normal showcase for unsupported
|
|
62
|
-
host behavior and performance measurement; HTML delivery does not verify motion.
|
|
63
|
-
Resolve served skill references relative to this `SKILL.md` URI and load them
|
|
64
|
-
lazily. Ordinary instruction reads do not establish native skill activation.
|
|
65
|
-
Use the returned `projectRoot` and `project.commands`; the connected ADS may be
|
|
66
|
-
inside a different or nested repository. Inspect the selected public API, owning
|
|
67
|
-
source/available guides and relevant tokens, then mount its discovered scenario.
|
|
68
|
-
Metadata and source reads do not prove rendered behavior.
|
|
69
|
-
|
|
70
|
-
For MCP-only guarded editing with `ads_status.mutations.enabled`, every source change
|
|
71
|
-
goes through a draft: discover the owner with `ads_units`, create its draft with
|
|
72
|
-
`ads_create_draft`, read relevant ranges with `ads_read_file`, edit the draft's files
|
|
73
|
-
or send a Git unified diff with `ads_update_draft({id, revision, patch})`, review it
|
|
74
|
-
with `ads_show_draft`, then `ads_accept` its exact revision (`dryRun: true` checks
|
|
75
|
-
without writing). A unit includes its own implementation, scenarios and fixtures;
|
|
76
|
-
imported peers remain separate. `tokens` is the token foundation unit. Unit
|
|
77
|
-
discovery and file ownership are distinct from preview IDs. An owner is in at most
|
|
78
|
-
one open draft; coupled owners share one draft, and a draft can depend on another
|
|
79
|
-
owner's open draft. Every authored file has one owner: an owner declares its public
|
|
80
|
-
names in `<Owner>.ads.exports.ts` and its style permissions (`styles.writes`,
|
|
81
|
-
`styles.inline`, `customization`) in `<Owner>.ads.contract.ts`. The public barrel,
|
|
82
|
-
review entry and styles entry are generated, so no draft edits them. Unused
|
|
83
|
-
permissions fail the core checks; do not declare a permission without its
|
|
84
|
-
implementation. Acceptance runs the mandatory ADS gates and the project's acceptance
|
|
85
|
-
policy; registered tests run when `acceptance.behaviorChecks` is true. `ads_verify`
|
|
86
|
-
checks current source and accepts no draft argument. Fix a failed acceptance in the
|
|
87
|
-
draft; never bypass a rejection with direct source writes. Shared styles/helpers use `foundation`, root guides use
|
|
88
|
-
`documentation`, and branding/fonts use their discovered `assets/*` unit.
|
|
89
|
-
Intentional configuration, rule exceptions, registered guard code and compiler
|
|
90
|
-
changes use `configuration`; validate the proposed settings and keep mandatory
|
|
91
|
-
ADS gates. For binary/large assets, generate `git diff --binary --full-index` into
|
|
92
|
-
`.ds/patches/<name>.patch` and send `patchFile` instead of inline `patch`, so bytes
|
|
93
|
-
stay out of model context. Binary changes require Git. These tool instructions
|
|
94
|
-
apply to the MCP editing route; direct editors use the workflow above and run
|
|
95
|
-
the same required gates/checks.
|
|
96
|
-
For owner drafts, token-sample reconciliation, coupled transactions and local
|
|
97
|
-
shared Data ownership, read [guarded-editing.md](references/guarded-editing.md).
|
|
98
|
-
For on-demand current/candidate screenshots and visual dry-run review, read
|
|
99
|
-
[captures.md](references/captures.md).
|
|
100
|
-
For a rejected patch, failed check or loading error, read
|
|
101
|
-
[evidence and diagnosis](references/evidence.md); inspect the failing boundary
|
|
102
|
-
then page needed `ads_results` sections using the returned result ID. Inspect
|
|
103
|
-
one `ads_investigate({unit,check,runId})` summary before changing APIs or policy;
|
|
104
|
-
load request/error/artifact details only when relevant.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Review/demo layout belongs in development-only `review/`, exported through the
|
|
108
|
-
separate `${publicAlias}/review` entry (normally `@ds/review`), never the production
|
|
109
|
-
barrel. Product patterns are application UI. For ownership, migration, token
|
|
110
|
-
renderers, build aliases or `review-import` / `review-contract` diagnostics, read
|
|
111
|
-
[development review UI](references/review.md), also served as `ads://guides/review`.
|
|
112
|
-
|
|
113
|
-
A component provides one cohesive UI capability; a pattern arranges capabilities
|
|
114
|
-
into reusable structures or workflows. Components may compose components/controllers;
|
|
115
|
-
layout patterns may arrange slots. Do not classify by component count. For shared
|
|
116
|
-
website/MCP App use, owner selection, or `component-dependency`,
|
|
117
|
-
`component-contract` or `component-style` diagnostics, read
|
|
118
|
-
[layer responsibilities and contracts](references/layers.md), also served as
|
|
119
|
-
`ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
|
|
120
|
-
|
|
121
|
-
For folder-group navigation, parent/child `covers`, conditional-control review, reference comparisons,
|
|
122
|
-
public style-helper use, native slot/selector composition, fragment navigation,
|
|
123
|
-
or `scenario-render` / `showcase-control` / `showcase-class` findings, read [scenario contracts](references/scenarios.md). Its verification
|
|
124
|
-
examples explain API visibility, reference baselines and state-transition checks.
|
|
125
|
-
Traced parents can cover declared public children; verified public Linaria
|
|
126
|
-
helpers do not grant custom scenario CSS.
|
|
127
|
-
|
|
128
|
-
For atomic base/variant styling, helper/wrapper class composition, extracted
|
|
129
|
-
custom-property arithmetic, typed `@property` registrations, or an
|
|
130
|
-
`atomic-composition-review` / `atomic-composition-limit` finding, read
|
|
131
|
-
[atomic style composition](references/atomic-styles.md). The same guide is served
|
|
132
|
-
as `ads://guides/atomic-styles`. It explains shorthand/logical conflicts and
|
|
133
|
-
matching-property fixes, plus the build resolver for preserving opaque custom
|
|
134
|
-
properties through extraction. Check review items in the real `cx` composition and verify
|
|
135
|
-
computed styles across affected sizes/states; retain intentional product behavior.
|
|
136
|
-
|
|
137
|
-
Controllers are UI behavior owners: private helpers stay with their component or
|
|
138
|
-
pattern; reusable controllers use discovered `controllers/<Name>` units. Use the
|
|
139
|
-
project's configured framework and declared dependencies, or plain TypeScript,
|
|
140
|
-
browser APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. The
|
|
141
|
-
framework setting selects compilation/mounting; controller checks also validate
|
|
142
|
-
imports. For controller/behavior work, read
|
|
143
|
-
[behaviors.md](references/behaviors.md), also served as `ads://guides/behaviors`. Discover registered guarantees
|
|
144
|
-
with `ads_behaviors`; use `ads_verify` for selected real checks. Optional
|
|
145
|
-
`exercises` links public behavioral APIs to scenarios; keep `covers` for rendered
|
|
146
|
-
UI. Registration and demonstration are not passing evidence. `<Owner>.ads.contract.ts`,
|
|
147
|
-
scenarios, fixtures and checks stay out of production exports/imports. Verify
|
|
148
|
-
current results, including lifecycle setup/cleanup/setup and the actual browser
|
|
149
|
-
profile when promised. React StrictMode needs a development harness; wrapping a
|
|
150
|
-
production widget cannot replay development effects. Keep dynamic behavior and
|
|
151
|
-
capabilities intact rather than rewriting them only for static coverage.
|
|
152
|
-
|
|
153
|
-
Before trusting a preview after edits, check `ads_status.build` or
|
|
154
|
-
`ads://project/build`. Fix build diagnostics in owned source; an older view or
|
|
155
|
-
unreported freshness is not evidence of current code. Notifications may not
|
|
156
|
-
reach the agent.
|
|
157
|
-
|
|
158
|
-
| Request | Reference | Outcome |
|
|
159
|
-
|---------|-----------|---------|
|
|
160
|
-
| Build or change an animation | [build.md](references/build.md) | Implement purposeful motion in its owning component/pattern |
|
|
161
|
-
| Review existing motion | [motion-review.md](references/motion-review.md) | Findings grounded in source and observed behavior |
|
|
162
|
-
| Audit a component or screen, or find opportunities | [audit.md](references/audit.md) | Prioritized findings or a concrete implementation plan when requested |
|
|
163
|
-
| Investigate jank or rendering cost | [performance.md](references/performance.md) | Evidence, a focused fix when requested, and a comparison |
|
|
164
|
-
|
|
165
|
-
Load the relevant reference and [verification.md](references/verification.md);
|
|
166
|
-
do not read all mode guides for a small task. A review/audit reports findings;
|
|
167
|
-
implement when requested. If a request spans modes, use only those needed to
|
|
168
|
-
complete it. Resolve routine choices from project contracts and existing
|
|
169
|
-
authorization; ask only for a material unresolved product decision.
|
|
170
|
-
|
|
171
|
-
## Keep ADS ownership
|
|
172
|
-
|
|
173
|
-
Use the project showcase as the shared motion review surface for agents and
|
|
174
|
-
humans. Use the connected MCP runtime URL or start `ads showcase`, with a configured
|
|
175
|
-
project preview compiler. Keep the frame
|
|
176
|
-
minimal and neutral. Showcase/scenario files define no CSS, custom classes, or
|
|
177
|
-
widget markup; change the owning ADS pattern when a layout is needed.
|
|
178
|
-
Scenarios use the same public ADS source,
|
|
179
|
-
tokens, and styles as the app. Add repeatable triggers and relevant states,
|
|
180
|
-
interruption cases, and reduced-motion examples; do not build separate demo
|
|
181
|
-
animations or reproduce a control inside the mock. Fix motion in the shared
|
|
182
|
-
owner so both consumers receive it. Run ADS/project guards for both builds and
|
|
183
|
-
give a full running URL or exact command for review. Static guards and a still
|
|
184
|
-
screenshot do not establish animation quality or parity.
|
|
185
|
-
|
|
186
|
-
The showcase is a minimal shell plus an MCP client and Apps host, supplied by ADS
|
|
187
|
-
tooling. It discovers Tokens/Components/Patterns/Composition entries through MCP
|
|
188
|
-
tools and renders their scenarios in the preview App. Navigation, theme and
|
|
189
|
-
pane/header visibility belong to the tool client. Do not create page files,
|
|
190
|
-
copy its shell into the project or assemble a second catalogue/rendering pipeline.
|
|
191
|
-
|
|
192
|
-
When MCP is connected, open the running URL from `ads_status`. Otherwise run the
|
|
193
|
-
installed `ads showcase` or the project's `dev:showcase` script. Do not launch a
|
|
194
|
-
second runtime/compiler for the same connected project. A configured project
|
|
195
|
-
preview watcher publishes a shared graph on first demand and after source
|
|
196
|
-
changes. The built-in client refreshes discovery and the active scenario in the
|
|
197
|
-
same App after a successful build. Shared runtime, foundation CSS, fonts and
|
|
198
|
-
selected scenario modules load through MCP
|
|
199
|
-
resources inside the sandboxed App. Never inject project styles/runtime into
|
|
200
|
-
the outer host. Keep the configured framework, compiler and mount/unmount adapter
|
|
201
|
-
consistent; scenario teardown must release owned timers, portals and workers.
|
|
202
|
-
The host shows errors and marks retained output as stale. Other hosts may need an
|
|
203
|
-
explicit preview-tool invocation. Compilation remains project-owned and required
|
|
204
|
-
for TSX/Linaria; it is automatic, not eliminated.
|
|
205
|
-
|
|
206
|
-
Reusable review layouts belong in development-only `review/`, exported through
|
|
207
|
-
the separate review entry, while scenario
|
|
208
|
-
files define no CSS, custom classes or widget replicas. Keep real presentation in
|
|
209
|
-
its component/pattern owner. The tooling shell's CSS is outside that project
|
|
210
|
-
contract. Legacy custom showcase pages may be retained during migration; new
|
|
211
|
-
projects require no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
|
|
212
|
-
|
|
213
|
-
Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` with tokens and
|
|
214
|
-
each component/pattern. Put larger entries under `composition/<Name>/` with their
|
|
215
|
-
own marked scenario and fixture. Export a default
|
|
216
|
-
zero-input mountable view and literal metadata, for example
|
|
217
|
-
`export const scenario = { title: "Button states", covers: ["Button"] };`.
|
|
218
|
-
Import the real UI from the public ADS alias. Keep fixture inputs, simulated
|
|
219
|
-
services and initial state/callback adapters beside the scenario. Empty fixtures
|
|
220
|
-
are valid for an entry with no inputs. Extra development helpers use a
|
|
221
|
-
`<Owner>.ads.helpers.ts` file, so guards
|
|
222
|
-
recognize their role even beside runtime code. Never require a page, router or store to
|
|
223
|
-
initialize the entry. Several contextual public parts may share one scenario.
|
|
224
|
-
|
|
225
|
-
IDs derive from ADS-relative filenames: both `components/core/Button/Button.ads.scenario.tsx`
|
|
226
|
-
and `components/core/Button.ads.scenario.tsx` identify `components/core/Button`.
|
|
227
|
-
Use one form, no duplicate IDs or hand-maintained registry. Renames change IDs.
|
|
228
|
-
The showcase and external hosts mount the same discovered entry. ADS owns Bun
|
|
229
|
-
preview compilation and Linaria extraction independently of the application's
|
|
230
|
-
bundler. Configure the ADS framework and preview manifest; keep the project-owned
|
|
231
|
-
framework mount adapter and its cleanup. Use `ads compile` for standalone/CI
|
|
232
|
-
preview builds. MCP discovers metadata without importing executable TSX. Read
|
|
233
|
-
[Runtime and compiler setup](references/runtimes.md) when setting up or migrating
|
|
234
|
-
the compiler.
|
|
235
|
-
Use `ads_scenarios` (query/kind/limit) and `ads_show_scenario({id})` to open an exact
|
|
236
|
-
entry. Check its build freshness; HTML delivery is not browser verification.
|
|
237
|
-
If Apps or resource forwarding are unavailable, open that scenario in the real
|
|
238
|
-
showcase, using the tool result's URL. Do not build a preview-only replica.
|
|
239
|
-
|
|
240
|
-
For a production screen, find and render the application's public screen pattern.
|
|
241
|
-
Its owner supplies structure, controls, layout and presentation. Scenario fixtures
|
|
242
|
-
supply data/state/callbacks. Move shared presentation into a pattern if needed,
|
|
243
|
-
preserving existing behavior and lazy imports, workers, caching and cancellation.
|
|
244
|
-
Do not reassemble an alternative screen or substitute placeholder content.
|
|
245
|
-
Screen reuse remains skill guidance, not a dedicated screen-parity lint.
|
|
246
|
-
|
|
247
|
-
Resolve `scenario-contract`, `scenario-render` and `scenario-coverage` findings
|
|
248
|
-
with meaningful entries. Every public renderable component and pattern needs an
|
|
249
|
-
addressable scenario, including unused exports; types/constants/utilities do not.
|
|
250
|
-
Only public render references reachable from the default entry count. Tests and
|
|
251
|
-
unused imports/functions do not. Static reachability does not prove successful
|
|
252
|
-
mounting, correct content, every branch/state or visual parity: open each affected
|
|
253
|
-
entry independently and verify real behavior at narrow/wide sizes in both themes.
|
|
254
|
-
The older `showcase-coverage` policy separately checks application references.
|
|
255
|
-
|
|
256
|
-
Token previews use that same scenario pipeline. Colocate a token scenario and
|
|
257
|
-
fixture under the configured token directory. Declare metadata
|
|
258
|
-
`{ title: fixture.title, covers: ["TokenSamples"], samples: fixture.samples }`.
|
|
259
|
-
The renderer name is project-owned; use its real public API. Each literal fixture
|
|
260
|
-
sample declares `{ token, property, probe }`: a real token, the CSS property its
|
|
261
|
-
sample demonstrates, and a valid test value different from that token's current
|
|
262
|
-
value. Pass `samples` into the rendered development-only review renderer. Names, sample text,
|
|
263
|
-
bindings and probes are fixture data; displayed values come from foundation CSS.
|
|
264
|
-
There is no property catalogue, token-name mapping or probe palette in ADS.
|
|
265
|
-
Every token needs sample coverage; fabricated tokens, missing bindings/probes,
|
|
266
|
-
unused fixtures and value-only lists fail the static gates. `covers: []` is invalid.
|
|
267
|
-
During App rendering, the browser checks sample markers `data-ads-token` and
|
|
268
|
-
`data-ads-property`, validates CSS with its own `CSS.supports`, and temporarily
|
|
269
|
-
probes each token to verify that the declared sample property responds. It restores
|
|
270
|
-
values immediately. Missing, hidden, invalid or hardcoded samples produce a preview
|
|
271
|
-
error instead of a successful review. These browser checks apply to the mounted
|
|
272
|
-
scenario/theme, not every application state or pixel-level design quality.
|
|
273
|
-
Keep styles in the project renderer; do not add inline-style exemptions to scenarios.
|
|
274
|
-
Fix `token-scenario-reference`, `token-scenario-render` and `token-scenario-coverage`
|
|
275
|
-
findings. Metadata and unused fixture fields do not count. Discover exact token IDs with `ads_scenarios({kind:"tokens"})`; mount them
|
|
276
|
-
with `ads_show_scenario({id})` or `ads_show_tokens({category:id})`. With the shared
|
|
277
|
-
resource compiler, omitting category opens the first project token scenario.
|
|
278
|
-
Legacy compilers retain the generic definition inspector. Use `ads_tokens` for
|
|
279
|
-
source definitions and values; inspecting definitions does not prove UI parity.
|
|
280
|
-
The tool keeps the shared naming contract; sample templates and their token
|
|
281
|
-
lists belong to the project.
|
|
282
|
-
|
|
283
|
-
Development review helpers need no product catalogue scenario. A token scenario
|
|
284
|
-
may name its review renderer in `covers`; ordinary component/pattern scenarios
|
|
285
|
-
cover their production subjects. Keep review exports in the separate review entry.
|
|
286
|
-
Remove redundant helper catalogue scenarios during migration. Product UI retains
|
|
287
|
-
its real render-coverage requirement. Keep directory ownership anchored by its
|
|
288
|
-
implementation entry (`index` or a file matching the directory name).
|
|
289
|
-
Import colocated image/font fixtures so MCP serves them through asset resources.
|
|
290
|
-
For a broken-image case, use a local failing fixture, rather than an external
|
|
291
|
-
network failure or a domain-specific CSP exception. Production asset APIs remain
|
|
292
|
-
unrestricted by this fixture guidance.
|
|
293
|
-
|
|
294
|
-
Scenarios, colocated fixtures and helpers are development-only. Never export them
|
|
295
|
-
from the runtime barrel or import them in production, including through aliases,
|
|
296
|
-
re-exports or dynamic imports. They may not import application stores, routers,
|
|
297
|
-
providers or HTTP clients. Live business data is application-owned; UI uses typed
|
|
298
|
-
inputs or injected services/callbacks. Direct global fetch/XHR/WebSocket/EventSource
|
|
299
|
-
is rejected; custom clients and computed access require review/project guards.
|
|
300
|
-
Use local simulated services in fixtures. Tests may import fixtures; load real
|
|
301
|
-
foundation CSS rather than assigning shared token values in JavaScript. Keep
|
|
302
|
-
full-app integration harnesses and workflow coverage in application test support.
|
|
303
|
-
|
|
304
|
-
Foundation CSS is checked, not an escape hatch. Value sheets define shared tokens
|
|
305
|
-
on the document root (per-theme halves) or a brand's `[data-brand]`; `fonts.css`
|
|
306
|
-
holds font-face metadata. `base.css` has three closed roles: root/body typography,
|
|
307
|
-
canvas and theme defaults; limited native normalization; and global focus
|
|
308
|
-
indicators/reduced-motion rules. Every selector
|
|
309
|
-
branch, property and value must fit its role. Token-backed control skins, layout,
|
|
310
|
-
interactive state rules and owner hooks are rejected even through `:where()`.
|
|
311
|
-
Do not copy an unchecked upstream preflight or turn a component repair into a reset.
|
|
312
|
-
Keep behavior and skin in their runtime owner. Put demo-only sizing and framing
|
|
313
|
-
in a development-only review helper; add component props for a deliberate runtime
|
|
314
|
-
API need. Preserve required capabilities while following ownership rules.
|
|
315
|
-
Use tokens for absolute/font-relative lengths, including `ch`, `ex`, `cap`, `ic`
|
|
316
|
-
and `lh`; calculations and fallback values follow the same rule. Structural
|
|
317
|
-
angle units remain available for orientation, skew and spin. Put tunable visual
|
|
318
|
-
angles in project tokens; static checks cannot infer that intent. Percentages,
|
|
319
|
-
grid fractions and viewport/container relationships retain structural use.
|
|
320
|
-
Browser review still verifies the effects.
|
|
321
|
-
|
|
322
|
-
Invalid metadata and source failures keep the managed compiler alive for repairs.
|
|
323
|
-
Read `ads_status.build` or `ads://project/build`, fix the owner, then wait for current
|
|
324
|
-
successful output. If the builder exited, fix its command and invoke the preview
|
|
325
|
-
again; ADS starts one fresh child without an MCP reconnect. Compiler-code changes
|
|
326
|
-
also reload on the next preview invocation. Reconnect the client when upgrading
|
|
327
|
-
the ADS server package itself. Persistent SSE/notification streams make
|
|
328
|
-
`networkidle` unsuitable: wait for the App's current ready/error state instead.
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
Run ADS's own gates directly with `ads check`; acceptance and validation do not
|
|
334
|
-
require Oxlint. Register project-specific checks as explicit package scripts in
|
|
335
|
-
`mcp.mutationChecks` / `validation.checks`, and behavior tests through ADS contracts.
|
|
336
|
-
A project can use its own linter in those scripts when desired. Measured renderer properties and documented
|
|
337
|
-
non-state hooks are declared in the owner's contract (`styles.writes`,
|
|
338
|
-
`styles.inline`, `customization`); shared token writes and primitive state overrides
|
|
339
|
-
cannot be allowed. When moving JSX inline geometry to imperative writes, change the
|
|
340
|
-
source and its contract permissions together in the owner's draft. Remove obsolete
|
|
341
|
-
`styles.inline` entries and unused `styles.writes` properties; do not broaden
|
|
342
|
-
permissions to keep a change passing.
|
|
343
|
-
Pointer-capture advisories call for review of cancellation, capture loss and
|
|
344
|
-
teardown, including cleanup delegated to hooks. Verify actual cleanup in a browser;
|
|
345
|
-
a locally present handler alone does not prove correctness.
|
|
346
|
-
Add generic architectural protections to
|
|
347
|
-
ADS core and keep domain/component-specific rules registered in project setup.
|
|
348
|
-
|
|
349
|
-
- Motion constants belong in the project's token layer. Shared token meanings
|
|
350
|
-
stay compatible across projects; values can differ. Reuse a fitting token or
|
|
351
|
-
add a narrowly scoped one. Do not alter global timing to tune one component.
|
|
352
|
-
- Components own state motion, layout, focus, gestures, and reduced-motion
|
|
353
|
-
behavior. Patterns own composition transitions. Applications supply state,
|
|
354
|
-
data, and callbacks through public props.
|
|
355
|
-
- Preserve documented exceptions and accepted upstream parity. A Sonner-derived
|
|
356
|
-
stack may deliberately use a 400 ms curve and height transitions; generic
|
|
357
|
-
duration/property advice is not enough to classify that as a defect.
|
|
358
|
-
- Measured geometry may use a private, documented, allowlisted boundary.
|
|
359
|
-
Keep visual policy in tokens and styles. A performance recommendation to write
|
|
360
|
-
`element.style.transform` is not permission to bypass local architecture rules.
|
|
361
|
-
- Add component-local lint only for statically provable misuse of the public
|
|
362
|
-
contract. Profiling, perceptual quality, and arbitrary duration thresholds
|
|
363
|
-
cannot be reliably enforced by a blanket lint rule.
|
|
364
|
-
|
|
365
|
-
Record public behavior, token hooks, important motion choices, validation,
|
|
366
|
-
source links/revision, and accepted differences in the item's local README.
|
|
367
|
-
Preserve copyright and applicable license notices for copied/adapted source;
|
|
368
|
-
native integration does not by itself make that material independent.
|
|
369
|
-
|
|
370
|
-
This workflow adapts Emil Kowalski's animation skills. See
|
|
371
|
-
[README.md](README.md) and [LICENSE.upstream](LICENSE.upstream) for provenance.
|
|
372
|
-
|
|
373
|
-
For static owner contracts, `.ads.` development roles, typed paint/binding APIs,
|
|
374
|
-
declarative parent graphs, constrained theme bindings, private visual subject roles,
|
|
375
|
-
shared Data ownership and guarded migration, read
|
|
376
|
-
[contracts.md](references/contracts.md) when the task touches those contracts.
|
|
377
|
-
|
|
378
|
-
For a suspected ADS defect or missing capability after targeted investigation, read
|
|
379
|
-
[reporting.md](references/reporting.md). Record actionable observations with
|
|
380
|
-
`ads_report_bug` or `ads_request_feature`; preserve valid APIs and rejected drafts.
|
|
381
|
-
|
|
382
|
-
For Data/UX/Skin boundaries, shared token reuse and private-value diagnostics, read
|
|
383
|
-
[design-data.md](references/design-data.md). Components own mappings and mechanics,
|
|
384
|
-
not independent token catalogues. Existing project font, text and spacing roles
|
|
385
|
-
take precedence over divergent upstream constants during adaptation.
|