@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
|
@@ -81,6 +81,31 @@ Screenshots hide the text caret and disable animations by default. Set
|
|
|
81
81
|
`animations:"allow"` when motion must remain active, and account for nondeterminism.
|
|
82
82
|
The same capture settings are used for both sides of a candidate comparison.
|
|
83
83
|
|
|
84
|
+
## Capture layout guides
|
|
85
|
+
|
|
86
|
+
Select any combination of the showcase's existing geometry layers:
|
|
87
|
+
|
|
88
|
+
```js
|
|
89
|
+
ads_capture({
|
|
90
|
+
scenario: "patterns/Example",
|
|
91
|
+
guides: ["tracks", "gaps", "padding", "mini"],
|
|
92
|
+
viewport: { width: 1280, height: 800 }
|
|
93
|
+
})
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
`guides` accepts `bounds`, `tracks` (columns and rows), `gaps` (including gutters),
|
|
97
|
+
`padding`, `margins`, and `mini` (mini-unit squares). Omit it or pass `[]` for a
|
|
98
|
+
clean screenshot. Selected layers show on all visible elements using the same
|
|
99
|
+
overlay as the showcase, without hover or a toolbar in the image. Geometry is
|
|
100
|
+
drawn only where it exists; mini-unit squares use the project's mini-unit token.
|
|
101
|
+
Guides are supported for components, patterns, compositions and `tokens/Layout`;
|
|
102
|
+
other scenario kinds reject a nonempty selection.
|
|
103
|
+
|
|
104
|
+
Named targets retain their existing crop. Current and candidate use the same
|
|
105
|
+
guide selection, which is recorded in each image's `settings.guides`. It replaces
|
|
106
|
+
the existing scenario/target slots, not an additional image history. These
|
|
107
|
+
annotations are visual inspection aids, not evidence that layout checks pass.
|
|
108
|
+
|
|
84
109
|
## Review a draft without accepting it
|
|
85
110
|
|
|
86
111
|
Capture the draft's exact revision beside the accepted version, without acceptance
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Choose [direct source editing or MCP-only editing](workflows.md). CLI commands
|
|
4
4
|
are available to direct editors; MCP-only clients use exposed tools instead of
|
|
5
|
-
assuming shell access.
|
|
5
|
+
assuming shell access. ADS owns preview compilation: MCP manages its watcher;
|
|
6
|
+
`ads compile` provides the standalone/CI command.
|
|
6
7
|
|
|
7
8
|
Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
|
|
8
9
|
Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
|
|
9
10
|
implementation, documentation, and verification workflow. ADS must be a project
|
|
10
11
|
development dependency, and its checks must run before the project's build.
|
|
11
12
|
Routine builds use the local CLI. ADS manages its internal Turbo dependency and
|
|
12
|
-
local task cache automatically; no project Turbo configuration is required.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
inputs. `ads assets` also writes the generated entries: the styles entry and the
|
|
13
|
+
local task cache automatically; no project Turbo configuration is required.
|
|
14
|
+
Checks reuse successful source reports only when their captured inputs match.
|
|
15
|
+
`ads assets` also writes the generated entries: the styles entry and the
|
|
16
16
|
public/review barrels from the owners' `.ads.exports.ts` files.
|
|
17
17
|
In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
|
|
18
18
|
ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
|
|
@@ -43,16 +43,16 @@ tooling and rejects conflicting saved/JSX settings instead of converting it.
|
|
|
43
43
|
|
|
44
44
|
Use the confirmed package name/version if different. For a Bun project, use
|
|
45
45
|
`bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
|
|
46
|
-
`bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init
|
|
47
|
-
`packageManager` or `bun.lock`/`bun.lockb
|
|
48
|
-
with Bun. See [runtimes.md](runtimes.md)
|
|
46
|
+
`bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init reads
|
|
47
|
+
`packageManager` or `bun.lock`/`bun.lockb`. See [runtimes.md](runtimes.md)
|
|
49
48
|
for MCP configuration and portable compiler/behavior commands.
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
Init reads the package manager from the project: `packageManager` in `package.json`,
|
|
50
|
+
else its lockfile. A project that declares neither must set one first. Preserve the
|
|
51
|
+
project's existing package-manager policy and lockfile.
|
|
52
52
|
|
|
53
|
-
`
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
`init --include-starter` also adds the starter shipped in the same package version: its
|
|
54
|
+
example design system, Vite and TypeScript setup, scripts and development dependencies
|
|
55
|
+
that the project lacks. It never replaces an existing file or writes a lockfile.
|
|
56
56
|
`init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
|
|
57
57
|
framework configuration, lockfiles, and build scripts. It adds only missing ADS
|
|
58
58
|
foundation files, config, development dependencies, and build checks. Existing
|
|
@@ -69,11 +69,11 @@ commit the updated lockfile.
|
|
|
69
69
|
## Local checkout testing
|
|
70
70
|
|
|
71
71
|
If no published distribution exists, build and pack the tooling checkout with
|
|
72
|
-
`
|
|
72
|
+
`bun run build` and `bun run pack:tool`. Resolve its tarball to an absolute path.
|
|
73
73
|
From inside an existing test project:
|
|
74
74
|
|
|
75
75
|
```sh
|
|
76
|
-
ads_tool_package="/absolute/path/to/
|
|
76
|
+
ads_tool_package="/absolute/path/to/the-tarball-produced-by-pack-tool.tgz"
|
|
77
77
|
npx --yes --package "$ads_tool_package" ads --help
|
|
78
78
|
npx --yes --package "$ads_tool_package" ads init --framework react --tool-package "$ads_tool_package"
|
|
79
79
|
npm install
|
|
@@ -81,7 +81,7 @@ npm run build
|
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
Use Bun's install/build commands for Bun projects. Keep npx options before
|
|
84
|
-
`
|
|
84
|
+
`ads`. `--tool-package` is optional local-testing/version-override support;
|
|
85
85
|
registry users do not need an archive. A `file:` dependency must remain
|
|
86
86
|
available wherever dependencies are installed. A published pinned version is
|
|
87
87
|
portable between machines.
|
|
@@ -114,23 +114,20 @@ Integrate that directory through the app's existing asset mount. Fixed token
|
|
|
114
114
|
names and prefixes are required; project values and artwork remain project-owned.
|
|
115
115
|
Builds use the installed local tool, not the initializing npx cache. Ignore `.ds/`.
|
|
116
116
|
Register component-specific guards as explicit project scripts and include them
|
|
117
|
-
in the project build and, when needed, `acceptance.
|
|
118
|
-
optional adapter for projects that explicitly choose Oxlint; ADS gates do not
|
|
119
|
-
require or invoke it.
|
|
117
|
+
in the project build and, when needed, `acceptance.scripts`.
|
|
120
118
|
|
|
121
119
|
`mcp` starts stdio plus its local website; `showcase` starts the browser-only MCP
|
|
122
120
|
runtime. Open the existing URL from `ads_status` when connected; otherwise use
|
|
123
|
-
`npm run dev:showcase` or the installed `ads showcase`. With the saved framework
|
|
124
|
-
|
|
121
|
+
`npm run dev:showcase` or the installed `ads showcase`. With the saved framework,
|
|
122
|
+
ADS supplies the Bun compiler and prewarms views
|
|
125
123
|
sequentially. Init supplies a framework mount adapter; existing projects can keep
|
|
126
|
-
their own compatible adapter
|
|
127
|
-
then use the same foundation and Linaria extraction as the application. Source discovery,
|
|
124
|
+
their own compatible adapter, using the same foundation and Linaria extraction as the application. Source discovery,
|
|
128
125
|
selected component/pattern/style/brand imports, explicit theme-value imports, and
|
|
129
126
|
migration are agent workflows. There is no CLI `import` command. Core checks
|
|
130
127
|
do not copy source, import values, or establish behavior/motion parity; continue
|
|
131
128
|
project type checking, meaningful tests, and browser comparisons.
|
|
132
129
|
|
|
133
130
|
If no CLI distribution is available, continue with the target's existing
|
|
134
|
-
checks;
|
|
131
|
+
checks; setting ADS up needs the ADS package (`ads init`).
|
|
135
132
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
136
133
|
or fetch an external UI catalogue.
|
|
@@ -81,7 +81,7 @@ selected capabilities, source revision and destination policy. A standalone
|
|
|
81
81
|
research without requiring another installed skill. Record material API changes
|
|
82
82
|
and preserve applicable upstream notices even after rewriting the implementation.
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
Use a one-owner draft for an independent change. Use one multi-owner draft when, for example,
|
|
85
85
|
a genuinely missing shared role and its component must change together. Inspect
|
|
86
86
|
the failing validation boundary, revise the affected owner, and validate again.
|
|
87
87
|
An assertion failure calls for implementation investigation; a resource-loading
|
|
@@ -21,14 +21,15 @@ components/Plot/
|
|
|
21
21
|
Plot.ads.behavior.spec.ts registered browser checks
|
|
22
22
|
Plot.ads.test.tsx optional unit tests
|
|
23
23
|
Plot.ads.helpers.ts development-only adapters
|
|
24
|
+
Plot.ads.review.tsx project-specific demonstration presentation
|
|
24
25
|
README.md API/provenance
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
This is an example, not a required inventory. Use the same roles for patterns,
|
|
28
|
-
controllers and relevant development owners. `review/`
|
|
29
|
-
|
|
29
|
+
controllers and relevant development owners. `review/` optionally organizes shared scenario helpers; every implementation and
|
|
30
|
+
style file still carries its `.ads.review.*` marker.
|
|
30
31
|
Runtime components, types and styles cannot import `.ads.` files, tests, fixtures
|
|
31
|
-
or review code through aliases, barrels or helpers. Unknown `.ads.` roles are
|
|
32
|
+
or review code through aliases, barrels or helpers. Review presentation uses `.ads.review.*`; generic preview mounting uses `.ads.mount.*`. Unknown `.ads.` roles are
|
|
32
33
|
still development-only and are diagnosed. Fixtures/helpers cannot define styles;
|
|
33
34
|
put demo framing in review. Ordinary README/license files retain their names.
|
|
34
35
|
|
|
@@ -55,10 +56,10 @@ export type { ButtonProps } from "./Button";
|
|
|
55
56
|
|
|
56
57
|
An exports file holds only named re-exports of its own owner's modules by relative
|
|
57
58
|
path: no `export *`, no other code, no peers' files. Public names are unique across
|
|
58
|
-
owners. ADS generates the public barrel (`
|
|
59
|
+
owners. ADS generates the public barrel (`index.ts`) by copying
|
|
59
60
|
every exports file's re-exports with paths rebased onto the barrel, so it names each
|
|
60
61
|
public export directly from its source and a product build never includes an exports
|
|
61
|
-
file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`
|
|
62
|
+
file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`styles.css`) with one `@import`
|
|
62
63
|
per canonical token sheet in foundation order; the public barrel imports it first.
|
|
63
64
|
Never edit a generated entry: `ads check` reports a stale or hand-edited one
|
|
64
65
|
(`generated-entry`), and the showcase, the MCP server, draft previews, acceptance
|
|
@@ -208,7 +209,7 @@ one declared field, or a per-theme value built with the generated helpers from
|
|
|
208
209
|
takes the value for its color scheme). Every value is a declared field and the argument is
|
|
209
210
|
an object literal without spreads. The normal key/map/root proof still applies. Raw
|
|
210
211
|
constants, undeclared fields, `light-dark()`, extra writes and unknown transforms are
|
|
211
|
-
rejected. The
|
|
212
|
+
rejected. The render audit checks an accessible color reference in every theme's branch;
|
|
212
213
|
a local SVG URL or `none` is not a color there.
|
|
213
214
|
|
|
214
215
|
Families cannot overlap shared tokens, private runtime
|
|
@@ -34,6 +34,19 @@ belong under the shared token directory. The public contract remains about share
|
|
|
34
34
|
names, meanings, types and alias relationships; ADS supplies no hardcoded palette,
|
|
35
35
|
spacing grid or component catalogue.
|
|
36
36
|
|
|
37
|
+
## How the Tokens section is built
|
|
38
|
+
|
|
39
|
+
ADS renders the Tokens section itself from the token sheets and `tokens/catalog.ads.json`. Each
|
|
40
|
+
catalogue group is a sidebar group with one view per kind of token (fills, text colors, font
|
|
41
|
+
sizes, shadows…), derived from each token's sample property; a group with one kind is one view. The catalogue is project data: groups (`id`, `title`) and, for each
|
|
42
|
+
token, a sample binding `{ "token", "property", "probe" }`. `property` is the CSS property the
|
|
43
|
+
token is shown with; `probe` is a valid test value different from the token's own, which the view
|
|
44
|
+
swaps in to prove the property responds. Each token belongs to at most one group. A token with no
|
|
45
|
+
entry is listed under **Values** with a default binding for its type. When adding a token, add
|
|
46
|
+
its catalogue entry in the same change. Invalid JSON, unknown fields, duplicate groups or
|
|
47
|
+
bindings, and entries for undefined tokens are `foundation-catalog` errors. Do not write token
|
|
48
|
+
scenarios or review renderers; ADS owns the presentation.
|
|
49
|
+
|
|
37
50
|
## Component variables are mappings and runtime mechanics
|
|
38
51
|
|
|
39
52
|
`--ds-*` belongs to component implementations, `--ux-*` to patterns and review
|
|
@@ -72,6 +85,15 @@ calculations using shared values can remain valid; static analysis cannot prove
|
|
|
72
85
|
whether a dimensionless factor represents real geometry or an invented scale.
|
|
73
86
|
Review that intent and do not disguise a new design decision as arithmetic.
|
|
74
87
|
|
|
88
|
+
## Demonstration geometry stays out of production Data
|
|
89
|
+
|
|
90
|
+
The showcase owns generic preview framing. Project-specific `.ads.review.*`
|
|
91
|
+
helpers may declare finite dimensions for demonstration width/height, logical
|
|
92
|
+
sizes, flex-basis and grid tracks. Those values stay in development source;
|
|
93
|
+
they do not become production tokens. Color, typography, spacing and motion
|
|
94
|
+
still use production Data unchanged. Marked `.ads.*` CSS is excluded from the
|
|
95
|
+
production token inventory and cannot enter the production stylesheet graph.
|
|
96
|
+
|
|
75
97
|
## Review overlap without deleting legitimate roles
|
|
76
98
|
|
|
77
99
|
`token-overlap-review` is a nonblocking review item for shared tokens with identical
|
|
@@ -113,6 +135,9 @@ keeps independent component token definitions valid.
|
|
|
113
135
|
inside a track (segmented control, switch) uses `--control-inset` (add it to the spacing
|
|
114
136
|
tokens if the project has none). Anything that is not a control does not use
|
|
115
137
|
`--control-height-*`.
|
|
138
|
+
Local aliases preserve this requirement; a different size's padding token is not a
|
|
139
|
+
substitute. In the starter, control heights and side padding derive from shared spacing
|
|
140
|
+
primitives while retaining their established 32/40/48px heights and 10/14/18px padding.
|
|
116
141
|
|
|
117
142
|
`token-overlap-review` (review) compares values only within a token family (`--radius-*`
|
|
118
143
|
with `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
|
|
@@ -120,68 +145,40 @@ with `--radius-*`): a radius equal to a spacing step is two scales meeting, not
|
|
|
120
145
|
## Exchange format
|
|
121
146
|
|
|
122
147
|
`ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
|
|
123
|
-
JSON: groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
|
|
148
|
+
JSON (over MCP, read `ads://project/tokens/dtcg`, with `?theme=` and `?brand=`): groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
|
|
124
149
|
Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
|
|
125
150
|
`$extensions["org.reqvire.ads"].css`; other themes' values are in
|
|
126
151
|
`$extensions["org.reqvire.ads"].scopes`.
|
|
127
152
|
|
|
128
|
-
##
|
|
129
|
-
|
|
130
|
-
The `--grid-*` tokens describe a column grid: `--grid-columns-sm/md/lg` (the starter's 4, 8
|
|
131
|
-
and 16), `--grid-gutter`, `--grid-gutter-narrow`, `--grid-gutter-condensed` and
|
|
132
|
-
`--grid-margin-sm/md/lg`, aliasing spacing steps. The starter's `Grid` switches columns by
|
|
133
|
-
container width (768 and 1024 px) with container queries, since CSS variables cannot be
|
|
134
|
-
breakpoints. The showcase's grid overlay draws these tokens over every preview at the same
|
|
135
|
-
widths; a project without them shows no overlay. Align text to a cell's edge, not its gutter.
|
|
153
|
+
## Layout widths
|
|
136
154
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
```css
|
|
144
|
-
inline-size: 100%;
|
|
145
|
-
@container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Atomic CSS does not keep rule order, so two queries on one property need exclusive ranges:
|
|
149
|
-
|
|
150
|
-
```css
|
|
151
|
-
@container (min-width: 768px) and (max-width: 1023.98px) { max-inline-size: var(--grid-span-12); }
|
|
152
|
-
@container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
|
|
153
|
-
```
|
|
155
|
+
Grid geometry is not a set of width tokens. The `--grid-*` tokens are roles in the project's
|
|
156
|
+
spatial definition (`tokens/spatial.ads.json`): breakpoints, column counts, margins and gutter
|
|
157
|
+
insets. Layouts use them through `@ads-layout`, which ADS validates and compiles; see
|
|
158
|
+
`ads://guides/layout`. The showcase's layout guides draw the actual rendered tracks, gutters,
|
|
159
|
+
padding and margins of the inspected element.
|
|
154
160
|
|
|
155
161
|
Use `%` or `fr` for a share of the parent and a `ch` measure for running text
|
|
156
162
|
(`max-inline-size: 65ch`).
|
|
157
163
|
|
|
158
|
-
`layout-fixed-width`
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
When it fires, pick the fix by what the element is:
|
|
164
|
+
`layout-fixed-width` checks the role and bounds of a fixed minimum, rather than imposing a
|
|
165
|
+
universal pixel limit. Fixed sizes come from `spatial.ads.json`'s scale, its mini/fine units,
|
|
166
|
+
standard control/icon sizes, or explicit `layout.widthTokens` roles. Aliases and calculated
|
|
167
|
+
values retain their source roles; a fixed minimum must also fit the spatial maximum.
|
|
168
|
+
Projects without a spatial definition may use their shared `--space-N` sizing primitives.
|
|
164
169
|
|
|
165
170
|
| The element | Do |
|
|
166
171
|
|---|---|
|
|
167
|
-
| A
|
|
168
|
-
| A panel
|
|
169
|
-
| A
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
173
|
-
These do not fix it:
|
|
174
|
-
|
|
175
|
-
- Another unit. `32.5ch`, `20em` and `20rem` are as fixed as `280px`, and depend on the font too.
|
|
176
|
-
`ch` and `em` are measured at the rule's `font-size`, or 16 px.
|
|
177
|
-
- `max(100%, 280px)`, `clamp(200px, 50%, 400px)`, `calc(100% + 200px)`: they cannot shrink below
|
|
178
|
-
their fixed part.
|
|
179
|
-
- `min(100%, 64px)` around a small part. `layout-width-noop` asks for the plain size; in a flex or
|
|
180
|
-
grid parent the percentage can affect wrapping, so compare the scenario after changing it.
|
|
181
|
-
- A token name. `--control-*`, `--side-pane-*` and every other name are read for their value.
|
|
172
|
+
| A control, icon or fixed part | Use its shared control/icon size or a size in the spatial scale |
|
|
173
|
+
| A panel or column that can give way | Use `width: min(100%, var(--side-pane-width))`, a shrinking flex basis, or a fluid track |
|
|
174
|
+
| A fixed panel beside fluid content | Use `@ads-layout hybrid`; ADS checks remaining space at each tier |
|
|
175
|
+
| Repeated fixed tiles | Use `@ads-layout fixed` with a tile token |
|
|
176
|
+
| A fixed role outside the shared scale | Declare the token in `layout.widthTokens` and use it plainly |
|
|
177
|
+
| An overlay | Declare its owner in `layout.fixedWidthUnits`; keep its sizing in shared tokens |
|
|
182
178
|
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
Percentages, fractional tracks, intrinsic sizing, legitimate bounded calculations and maximum
|
|
180
|
+
sizes remain available. `min(100%, var(--space-8))` is valid: wrapping behavior is not a source
|
|
181
|
+
error. Declared fixed roles are listed for review (`layout-declared-width`).
|
|
185
182
|
|
|
186
183
|
`ads audit` opens each control with `aria-haspopup` and measures what opens, hovers and focuses
|
|
187
184
|
controls for contrast, and checks a control with `aria-busy="true"`. So give overlay triggers
|
|
@@ -190,8 +187,8 @@ controls for contrast, and checks a control with `aria-busy="true"`. So give ove
|
|
|
190
187
|
`layout-overflow` (`ads audit`) renders every UI scenario at 390, 768 and 1280 px and fails on
|
|
191
188
|
horizontal page overflow, elements past the viewport and clipped content. `overflow-x: auto`
|
|
192
189
|
scrollers and `text-overflow: ellipsis` are exempt. It also renders components and patterns in a
|
|
193
|
-
240 px container
|
|
194
|
-
scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
|
|
190
|
+
240 px container and lists a set width above 96 px that overflows it for review
|
|
191
|
+
(`layout-overflow-narrow`). Make that width fluid, or scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
|
|
195
192
|
|
|
196
193
|
## Color roles and states
|
|
197
194
|
|
|
@@ -350,5 +347,5 @@ padding inside components and for gaps between them; a value off the scale needs
|
|
|
350
347
|
Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
|
|
351
348
|
240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
|
|
352
349
|
`-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
|
|
353
|
-
number: the ads-motion
|
|
350
|
+
number: the ads-designer motion guide (`references/motion.md`) maps each token to its use and gives the easing
|
|
354
351
|
rules.
|
|
@@ -82,10 +82,12 @@ remain warm within the four-session bound. MCP edits
|
|
|
82
82
|
and direct draft-file edits notify warm previews through file events; periodic
|
|
83
83
|
reconciliation recovers missed events. Watched builds compile requested scenarios
|
|
84
84
|
and their dependencies, retaining roots used by other open previews. Full builds
|
|
85
|
-
and validation still cover the complete configured scope.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
and validation still cover the complete configured scope. Native analysis keeps
|
|
86
|
+
isolated draft snapshots and reuses unchanged ASTs and semantic queries.
|
|
87
|
+
Successful architecture reports are reusable only for an exact current input
|
|
88
|
+
key; parsed or compiled output alone is not acceptance evidence.
|
|
89
|
+
Reopening a known scenario renders through the existing compiler while the shared
|
|
90
|
+
asynchronous analysis service refreshes catalogue metadata. Read `discovery.state` (`current`, `pending`,
|
|
89
91
|
`error`) and its metadata revision separately from the exact proposal revision.
|
|
90
92
|
New/missing scenario identities wait for fresh discovery. A previous preview may
|
|
91
93
|
stay visible until compilation finishes; pending/stale output is not evidence.
|
|
@@ -129,11 +131,13 @@ If a dependency is dropped, correct the remaining draft's dependency list.
|
|
|
129
131
|
|
|
130
132
|
DS Explorer keeps drafts in the ordinary Tokens, Components, Patterns and
|
|
131
133
|
Composition navigation. A Draft badge marks an owner with a pending proposal,
|
|
132
|
-
whether or not it has an accepted version. Select
|
|
133
|
-
Split view
|
|
134
|
+
whether or not it has an accepted version. Select an entry with both versions and
|
|
135
|
+
use Split view in the preview toolbar to compare Accepted and Draft in the right pane. Both use the
|
|
134
136
|
same scenario/theme and available or phone viewport width. New owners appear
|
|
135
137
|
in their normal section; without an accepted counterpart they show only the
|
|
136
|
-
draft
|
|
138
|
+
draft without a comparison toggle. Entries without a draft also hide the toggle;
|
|
139
|
+
the toolbar disappears when empty. The Drafts tab lists active proposals by
|
|
140
|
+
catalogue category, and selecting one opens its draft.
|
|
137
141
|
An isolated overlay can also render an unchanged scenario as an explicit review
|
|
138
142
|
context; that alone does not give its owner a Draft badge. Use `ads_drafts` for
|
|
139
143
|
draft-only MCP listing.
|
|
@@ -149,7 +153,7 @@ include `preview` and preview calls include `build`; inspect `building`,
|
|
|
149
153
|
Subscribe to `ads://project/build` and `ads://project/drafts` for standard
|
|
150
154
|
resource-update notifications on completion, failure and metadata refresh, or
|
|
151
155
|
subscribe only to an active draft's `preview.resourceUri` for its isolated report.
|
|
152
|
-
|
|
156
|
+
`2026-07-28` clients use `subscriptions/listen` resource filters; 2025-era clients use
|
|
153
157
|
`resources/subscribe`. Re-read notified resources to update the existing view;
|
|
154
158
|
unsubscribe on teardown and resubscribe/read after reconnect. Removal invalidates
|
|
155
159
|
the scoped resource. Poll when the host does not forward notifications.
|
|
@@ -161,16 +165,15 @@ current rendered revision and complete acceptance before finishing the change.
|
|
|
161
165
|
|
|
162
166
|
After rendered review, call `ads_accept({id,revision})`, or first
|
|
163
167
|
`ads_accept({id,revision,dryRun:true})` to run every check without writing. It checks
|
|
164
|
-
that exact revision, runs
|
|
165
|
-
`acceptance.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
draft. Checks and renders run in the draft's reviewed workspace through the project's
|
|
168
|
+
that exact revision, runs `ads check`, `acceptance.scripts`, the draft owners' own
|
|
169
|
+
registered behavior tests when `acceptance.behavior` is true and the render audit
|
|
170
|
+
of the draft owners' own scenarios when `acceptance.audit` is true (both default
|
|
171
|
+
true), and applies passing changes at their normal paths; an `a11y-axe` error
|
|
172
|
+
rejects the draft. Checks and renders run in the draft's reviewed workspace through the project's
|
|
170
173
|
compiler and showcase, and accepting a revision a dry run just passed reuses its
|
|
171
174
|
results. Fix a failure in the component and accept the new revision. After a series
|
|
172
|
-
of accepted drafts, run
|
|
173
|
-
|
|
175
|
+
of accepted drafts, run `ads_validate` with `scope:"changed"`: it runs the behavior
|
|
176
|
+
tests and render audit of everything those drafts reach. Changes during checking or baseline conflicts prevent
|
|
174
177
|
application. Successful acceptance removes the proposal and records an event.
|
|
175
178
|
There is no separate Apply or Iterate action. A failed attempt retains the draft;
|
|
176
179
|
inspect its returned resultId with `ads_results` and fix the reported boundary.
|
|
@@ -187,7 +190,7 @@ Draft presence alone must not fail an application build. Drafts are excluded fro
|
|
|
187
190
|
normal ADS discovery and validation inputs. ADS import guards reject direct,
|
|
188
191
|
aliased, re-exported, dynamic and symlink imports of marked files or ads-drafts/,
|
|
189
192
|
including attempts from scenarios/tests outside the isolated preview overlay.
|
|
190
|
-
Install `
|
|
193
|
+
Install `developmentImportGuard()` from `@reqvire-org/ads/scenarios/vite` in application
|
|
191
194
|
Vite/Rollup builds as well as keeping the mandatory ADS check/build pipeline.
|
|
192
195
|
It rejects resolved draft modules and glob-expanded module loads. Merely adding a
|
|
193
196
|
TypeScript exclude pattern is not an import boundary. Do not export drafts, add
|
|
@@ -22,7 +22,7 @@ a pass. Keep the reported case outcome separate from whole-run acceptance.
|
|
|
22
22
|
|
|
23
23
|
## Retrieve only the evidence needed
|
|
24
24
|
|
|
25
|
-
`
|
|
25
|
+
`ads_validate` and `ads_accept` reply with counts,
|
|
26
26
|
bounded acceptance, at most three failure previews and `resultId`, within 4096
|
|
27
27
|
UTF-8 JSON bytes. Full validation still decides acceptance. Do not repeat a suite
|
|
28
28
|
merely to recover its output, or restate the complete report in conversation.
|
|
@@ -122,7 +122,3 @@ the smallest source/browser reproduction when ownership remains unprovable.
|
|
|
122
122
|
guard acceptance; registered tests establish only their actual cases/profiles.
|
|
123
123
|
Neither establishes untested states, visual parity, an accessibility audit or
|
|
124
124
|
another MCP host's compatibility. Captures show an appearance, not a transition.
|
|
125
|
-
|
|
126
|
-
When targeted investigation suggests a tooling defect or missing capability, read
|
|
127
|
-
[reporting.md](reporting.md), then use the matching intake tool. Reports preserve
|
|
128
|
-
compact evidence without certifying an ADS cause or changing validation policy.
|
|
@@ -22,14 +22,12 @@ Coupled owners share one draft (1–64 owners); a pattern that needs an unaccept
|
|
|
22
22
|
component change depends on that component's draft instead of including its owner.
|
|
23
23
|
|
|
24
24
|
`dryRun:true` runs every acceptance check on the candidate and writes nothing; the
|
|
25
|
-
draft stays. The candidate is checked with
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
`
|
|
29
|
-
|
|
30
|
-
`
|
|
31
|
-
affected as a stage after a series of accepted drafts: `ads_validate` with the
|
|
32
|
-
validation policy and `scope:"changed"` (see [validation policies](validation.md)).
|
|
25
|
+
draft stays. The candidate is checked with `ads check`, `acceptance.scripts`, the
|
|
26
|
+
draft owners' own registered behavior tests (`acceptance.behavior`, default true)
|
|
27
|
+
and the render audit of the draft owners' own scenarios (`acceptance.audit`,
|
|
28
|
+
default true); `a11y-axe` errors reject the draft. What reaches other owners, such
|
|
29
|
+
as a pattern that uses the changed component, is checked by `ads_validate` with
|
|
30
|
+
`scope:"changed"` after a series of accepted drafts (see [the two gates](validation.md)).
|
|
33
31
|
|
|
34
32
|
Checks and browser renders run in the draft's reviewed preview workspace, compiled by
|
|
35
33
|
the project's one compiler and served by its one showcase. Accepting the revision a
|
|
@@ -42,8 +40,8 @@ specs with their owner and use registered checks; a scratchpad run against live
|
|
|
42
40
|
source cannot verify unapplied changes. Acceptance revalidates before writing.
|
|
43
41
|
Dry-run evidence is not saved as passing evidence for the live project.
|
|
44
42
|
|
|
45
|
-
`
|
|
46
|
-
draft argument.
|
|
43
|
+
`ads verify --unit <unit>` on the CLI runs one unit's checks against current project
|
|
44
|
+
source; it has no draft argument and is not a gate.
|
|
47
45
|
|
|
48
46
|
Build notifications are deferred until the showcase finishes initial discovery;
|
|
49
47
|
a preview cannot be opened with an incomplete tool list. A missing App tool is a
|
|
@@ -65,8 +63,8 @@ per-test timeouts and its profile's whole-run `timeoutMs`. The latter covers the
|
|
|
65
63
|
entire runner process, not each test. Do not rewrite APIs, drop guarantees or
|
|
66
64
|
disable checks to fit the budget. Inspect measured durations before tuning it.
|
|
67
65
|
|
|
68
|
-
During
|
|
69
|
-
|
|
66
|
+
During `ads_validate`, inspect `ads_status.validation.progress`; during draft
|
|
67
|
+
acceptance, inspect `ads_status.mutations.progress`. These show completed/active/
|
|
70
68
|
pending checks and timings. MCP clients requesting progress also receive updates.
|
|
71
69
|
A timeout retains reported case outcomes and identifies active/unstarted checks;
|
|
72
70
|
it still blocks the mutation. `reportedStatus:"passed"` within an incomplete run
|
|
@@ -128,12 +126,10 @@ token namespaces/value sheets or token sections in owner contracts. Keep measure
|
|
|
128
126
|
runtime geometry separate. Read [design-data.md](design-data.md) before adding a
|
|
129
127
|
design value or repairing an ownership/value-source diagnostic.
|
|
130
128
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
meaning or fabricate renderers. Show the draft, inspect the actual App sample
|
|
136
|
-
effects, then accept it.
|
|
129
|
+
Token views take their groups and sample bindings from `tokens/catalog.ads.json`.
|
|
130
|
+
Change them in a `tokens` draft like any other token file, with explicit
|
|
131
|
+
`{token, property, probe}` entries; ADS does not infer visual meaning. Show the draft,
|
|
132
|
+
open the affected `tokens/<Group>` view in both themes, then accept it.
|
|
137
133
|
|
|
138
134
|
Every authored file has one owner, and drafts carry only their owners' files. Shared
|
|
139
135
|
entries are generated: the public barrel and review entry from each owner's
|
|
@@ -60,7 +60,8 @@ the chosen value policy; record resulting theme differences. Do not implement
|
|
|
60
60
|
imported visual policy as consumer overrides targeting
|
|
61
61
|
internal classes or as new app-level CSS.
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
Declare the selected API and required public types in each owner's `<Owner>.ads.exports.ts`;
|
|
64
|
+
ADS generates the target barrel from them.
|
|
64
65
|
Resolve export-name collisions explicitly; do not silently replace an unrelated
|
|
65
66
|
target component. Update assets and internal imports for their new locations.
|
|
66
67
|
Demonstrate the actual imported item through public exports in the target showcase.
|
|
@@ -78,7 +78,7 @@ build contract.
|
|
|
78
78
|
helpers. It cannot depend on patterns or composition, including indirectly
|
|
79
79
|
through aliases, forwarding exports, helpers or literal dynamic imports.
|
|
80
80
|
Type-only pattern references do not introduce runtime dependencies.
|
|
81
|
-
- Patterns consume component symbols published by the
|
|
81
|
+
- Patterns consume component symbols published by the generated `@ds` public entry,
|
|
82
82
|
including intentional public types. A relative import of a public symbol is
|
|
83
83
|
allowed inside the ADS; requiring a self-import through the barrel can create
|
|
84
84
|
cycles. Private state, class blocks and implementation helpers stay internal.
|