@reqvire-org/ads 0.3.53 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -94
- package/dist/a11y.mjs +108 -29
- package/dist/analysis/compiler-options.mjs +13 -0
- package/dist/analysis/context.mjs +46 -0
- package/dist/analysis/file-tree.mjs +52 -0
- package/dist/analysis/helpers.mjs +140 -0
- package/dist/analysis/impact.mjs +20 -0
- package/dist/analysis/inputs.mjs +15 -0
- package/dist/analysis/native-adapter.mjs +180 -0
- package/dist/analysis/native-project.mjs +323 -0
- package/dist/analysis/queries.mjs +133 -0
- package/dist/analysis/service.mjs +146 -0
- package/dist/analysis/standalone.mjs +57 -0
- package/dist/analysis/syntax.mjs +164 -0
- package/dist/analysis/worker.mjs +182 -0
- package/dist/assets.mjs +6 -6
- package/dist/atomic-composition.mjs +191 -70
- package/dist/atomic-trace.mjs +120 -50
- package/dist/behavior-libraries.mjs +106 -37
- package/dist/behaviors.mjs +222 -79
- package/dist/boundaries.mjs +137 -40
- package/dist/brand-assets.mjs +219 -47
- package/dist/brands.mjs +86 -27
- package/dist/bun-compiler.mjs +34 -13
- package/dist/bun-worker.mjs +7 -5
- package/dist/capture/worker.mjs +15 -4
- package/dist/capture-store.mjs +4 -2
- package/dist/capture.mjs +17 -14
- package/dist/check-service.mjs +66 -0
- package/dist/check.mjs +756 -196
- package/dist/cli.mjs +203 -100
- package/dist/color-values.mjs +21 -21
- package/dist/component-contrast.mjs +2 -2
- package/dist/config.mjs +308 -163
- package/dist/construction-styles.cjs +10 -0
- package/dist/contracts.d.mts +9 -0
- package/dist/control-padding.mjs +45 -25
- package/dist/css-values.mjs +3 -2
- package/dist/declarative-flow.mjs +209 -109
- package/dist/design-values.mjs +136 -51
- package/dist/development-runtime.mjs +4 -6
- package/dist/draft-boundary.mjs +11 -6
- package/dist/evidence.mjs +1 -1
- package/dist/finding-rules.mjs +7 -5
- package/dist/font-rules.mjs +2 -2
- package/dist/fonts-generated.mjs +4 -2
- package/dist/foundation-views.mjs +238 -0
- package/dist/foundation.mjs +63 -39
- package/dist/generated-entries.mjs +198 -0
- package/dist/icons.mjs +80 -33
- package/dist/image-attributes.mjs +109 -36
- package/dist/image-size.mjs +1 -1
- package/dist/index.mjs +0 -2
- package/dist/init.mjs +128 -68
- package/dist/investigations.mjs +2 -2
- package/dist/layers.mjs +300 -127
- package/dist/layout-widths.mjs +180 -85
- package/dist/linaria/preserve-values.cjs +7 -0
- package/dist/linaria/spatial-inputs.cjs +56 -0
- package/dist/lockup-composition.mjs +44 -0
- package/dist/lockup-model.cjs +64 -0
- package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
- package/dist/mcp/apps.mjs +4 -30
- package/dist/mcp/behavior-pages.mjs +72 -24
- package/dist/mcp/build-status.mjs +257 -64
- package/dist/mcp/catalog.mjs +91 -26
- package/dist/mcp/context.mjs +17 -18
- package/dist/mcp/draft-discovery.mjs +44 -21
- package/dist/mcp/drafts.mjs +978 -343
- package/dist/mcp/execution-coordinator.mjs +417 -167
- package/dist/mcp/execution-results.mjs +7 -7
- package/dist/mcp/mutations.mjs +701 -219
- package/dist/mcp/preview-watch.mjs +465 -161
- package/dist/mcp/preview-widget.bundle.js +44 -50
- package/dist/mcp/prompts.mjs +6 -6
- package/dist/mcp/result-pages.mjs +1 -1
- package/dist/mcp/sandbox-host.mjs +1 -1
- package/dist/mcp/server.mjs +2436 -570
- package/dist/mcp/showcase-host.mjs +176 -39
- package/dist/mcp/skills.mjs +1 -1
- package/dist/mcp/text-diff.mjs +29 -10
- package/dist/paint-contracts.mjs +174 -81
- package/dist/palette-generated.mjs +2 -2
- package/dist/preview-bun.mjs +493 -187
- package/dist/preview-failure.mjs +1 -1
- package/dist/preview-files.mjs +13 -13
- package/dist/preview-imports.mjs +104 -55
- package/dist/preview-inputs.mjs +2 -2
- package/dist/preview-requests.mjs +24 -0
- package/dist/preview-resources.mjs +288 -147
- package/dist/preview-scope.mjs +5 -4
- package/dist/program-cache.mjs +10 -0
- package/dist/project-documents.mjs +1 -1
- package/dist/public-api.mjs +70 -31
- package/dist/public-props.mjs +39 -22
- package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
- package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
- package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
- package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
- package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
- package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
- package/dist/render-audit.mjs +828 -0
- package/dist/render-color-probe.mjs +96 -42
- package/dist/resource-limits.mjs +229 -97
- package/dist/runtime-contracts.mjs +467 -185
- package/dist/scenario-groups.mjs +22 -10
- package/dist/scenario-inspector.mjs +6 -43
- package/dist/scenario-program.mjs +8 -25
- package/dist/scenario-registry.mjs +72 -30
- package/dist/scenario-selectors.mjs +161 -64
- package/dist/scenario-slots.mjs +149 -56
- package/dist/scenario-trace.mjs +215 -109
- package/dist/scenarios-compiler.mjs +768 -359
- package/dist/scenarios-vite.d.mts +1 -3
- package/dist/scenarios-vite.mjs +2 -81
- package/dist/scenarios.mjs +424 -159
- package/dist/selector-match.mjs +2 -2
- package/dist/showcase/client.bundle.js +57 -56
- package/dist/showcase/draft-navigation.js +18 -0
- package/dist/showcase/favicon.ico +0 -0
- package/dist/showcase/favicon.svg +1 -0
- package/dist/showcase/foundation-view.css +55 -0
- package/dist/showcase/foundation-view.mjs +252 -0
- package/dist/showcase/guide-controls.ads.review.mjs +32 -0
- package/dist/showcase/icons.js +1 -145
- package/dist/showcase/index.html +3 -31
- package/dist/showcase/preview-frame.ads.review.css +46 -0
- package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
- package/dist/showcase/preview-frame.ads.review.mjs +22 -0
- package/dist/showcase/preview-state.js +0 -9
- package/dist/showcase/refresh-scheduler.js +23 -0
- package/dist/showcase/style.css +5 -47
- package/dist/showcase/ui/ui.css +1353 -0
- package/dist/showcase/ui/ui.js +1062 -0
- package/dist/showcase-coverage.mjs +58 -37
- package/dist/skills/README.md +24 -23
- package/dist/skills/ads-designer/README.md +8 -2
- package/dist/skills/ads-designer/SKILL.md +152 -144
- package/dist/skills/ads-designer/references/accessibility.md +14 -11
- package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
- package/dist/skills/ads-designer/references/behaviors.md +34 -30
- package/dist/skills/ads-designer/references/branding.md +98 -10
- package/dist/skills/ads-designer/references/captures.md +31 -31
- package/dist/skills/ads-designer/references/cli.md +21 -20
- package/dist/skills/ads-designer/references/contracts.md +63 -29
- package/dist/skills/ads-designer/references/design-data.md +49 -52
- package/dist/skills/ads-designer/references/drafts.md +71 -52
- package/dist/skills/ads-designer/references/evidence.md +1 -5
- package/dist/skills/ads-designer/references/guarded-editing.md +58 -51
- package/dist/skills/ads-designer/references/layers.md +1 -1
- package/dist/skills/ads-designer/references/layout.md +347 -0
- package/dist/skills/ads-designer/references/mobile.md +2 -1
- package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
- package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
- package/dist/skills/ads-designer/references/performance.md +3 -2
- package/dist/skills/ads-designer/references/review.md +42 -38
- package/dist/skills/ads-designer/references/runtimes.md +33 -30
- package/dist/skills/ads-designer/references/scenarios.md +17 -19
- package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
- package/dist/skills/ads-designer/references/stress-test.md +68 -0
- package/dist/skills/ads-designer/references/validation.md +83 -71
- package/dist/skills/ads-designer/references/workflows.md +19 -37
- package/dist/skills/ads-import/SKILL.md +43 -328
- package/dist/skills/ads-import/references/atomic-styles.md +4 -4
- package/dist/skills/ads-import/references/behaviors.md +34 -30
- package/dist/skills/ads-import/references/branding.md +5 -5
- package/dist/skills/ads-import/references/captures.md +31 -31
- package/dist/skills/ads-import/references/cli.md +21 -20
- package/dist/skills/ads-import/references/compatibility.md +1 -1
- package/dist/skills/ads-import/references/contracts.md +63 -29
- package/dist/skills/ads-import/references/design-data.md +49 -52
- package/dist/skills/ads-import/references/drafts.md +71 -52
- package/dist/skills/ads-import/references/evidence.md +1 -5
- package/dist/skills/ads-import/references/guarded-editing.md +58 -51
- package/dist/skills/ads-import/references/implementation.md +2 -1
- package/dist/skills/ads-import/references/layers.md +1 -1
- package/dist/skills/ads-import/references/layout.md +347 -0
- package/dist/skills/ads-import/references/review.md +42 -38
- package/dist/skills/ads-import/references/runtimes.md +33 -30
- package/dist/skills/ads-import/references/scenarios.md +17 -19
- package/dist/skills/ads-import/references/tokens.md +3 -3
- package/dist/skills/ads-import/references/validation.md +83 -71
- package/dist/skills/ads-import/references/workflows.md +19 -37
- package/dist/skills/ads-migrate/SKILL.md +56 -0
- package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
- package/dist/skills/ads-port/SKILL.md +54 -346
- package/dist/skills/ads-port/references/atomic-styles.md +4 -4
- package/dist/skills/ads-port/references/behaviors.md +34 -30
- package/dist/skills/ads-port/references/captures.md +31 -31
- package/dist/skills/ads-port/references/cli.md +21 -20
- package/dist/skills/ads-port/references/contracts.md +63 -29
- package/dist/skills/ads-port/references/design-data.md +49 -52
- package/dist/skills/ads-port/references/drafts.md +71 -52
- package/dist/skills/ads-port/references/evidence.md +1 -5
- package/dist/skills/ads-port/references/guarded-editing.md +58 -51
- package/dist/skills/ads-port/references/layers.md +1 -1
- package/dist/skills/ads-port/references/layout.md +347 -0
- package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
- package/dist/skills/ads-port/references/native-implementation.md +8 -7
- package/dist/skills/ads-port/references/review.md +42 -38
- package/dist/skills/ads-port/references/runtimes.md +33 -30
- package/dist/skills/ads-port/references/scenarios.md +17 -19
- package/dist/skills/ads-port/references/validation.md +83 -71
- package/dist/skills/ads-port/references/workflows.md +19 -37
- package/dist/source-symbols.mjs +1 -8
- package/dist/source-values.mjs +266 -128
- package/dist/spatial-composition.mjs +322 -0
- package/dist/spatial-contexts.cjs +56 -0
- package/dist/spatial-css.cjs +351 -0
- package/dist/spatial-inputs.cjs +80 -0
- package/dist/spatial-metadata.mjs +18 -0
- package/dist/spatial-model.cjs +322 -0
- package/dist/spatial.mjs +21 -0
- package/dist/stage-timing.cjs +20 -0
- package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
- package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
- package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
- package/dist/starters/preact/ds.config.json +24 -19
- package/dist/starters/preact/package.json +4 -8
- package/dist/starters/preact/tsconfig.json +4 -5
- package/dist/starters/preact/vite.config.ts +3 -3
- package/dist/starters/react/ADS.md +42 -47
- package/dist/starters/react/README.md +54 -52
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
- package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
- package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/index.ts +5 -8
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
- package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
- package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
- package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
- package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
- package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
- package/dist/starters/react/design-system/styles.css +1 -0
- package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
- package/dist/starters/react/design-system/tokens/colors.css +1 -1
- package/dist/starters/react/design-system/tokens/spacing.css +22 -32
- package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
- package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
- package/dist/starters/react/ds.config.json +24 -19
- package/dist/starters/react/package.json +2 -6
- package/dist/starters/react/tsconfig.json +2 -3
- package/dist/starters/react/vite.config.ts +3 -3
- package/dist/style-boundaries.mjs +73 -27
- package/dist/task-cache.mjs +173 -72
- package/dist/task-worker.mjs +22 -11
- package/dist/test-boundaries.mjs +133 -60
- package/dist/themes-generated.mjs +1 -1
- package/dist/themes-watch.mjs +60 -19
- package/dist/themes.mjs +176 -73
- package/dist/token-export.mjs +39 -14
- package/dist/token-policy.mjs +6 -3
- package/dist/token-quality.mjs +6 -6
- package/dist/token-samples.mjs +16 -5
- package/dist/tokens.mjs +71 -26
- package/dist/ui-framework.mjs +16 -14
- package/dist/unit-contracts.mjs +270 -89
- package/dist/units.mjs +215 -180
- package/dist/usage.mjs +138 -38
- package/dist/validation-checks.mjs +121 -38
- package/dist/validation-inputs.mjs +187 -78
- package/dist/validation.mjs +268 -102
- package/dist/verification/browser.mjs +27 -5
- package/dist/verification.mjs +711 -187
- package/docs/ADS.md +100 -89
- package/docs/ARCHITECTURE.md +353 -159
- package/docs/BEHAVIORS.md +33 -28
- package/docs/CACHING.md +55 -11
- package/docs/CHANGELOG.md +358 -17
- package/docs/COMPARISON.md +1 -1
- package/docs/CONTRACTS.md +22 -29
- package/docs/DESIGN-REFERENCES.md +40 -0
- package/docs/GUIDE.md +313 -292
- package/docs/MCP.md +261 -439
- package/docs/SPATIAL-CHECKS.md +69 -0
- package/docs/benchmarks/README.md +39 -0
- package/package.json +42 -34
- package/dist/browser-audit.mjs +0 -424
- package/dist/contract-migration.mjs +0 -110
- package/dist/create.mjs +0 -48
- package/dist/lint-config.mjs +0 -48
- package/dist/mcp/draft-exports.mjs +0 -40
- package/dist/mcp/edit-preparation.mjs +0 -115
- package/dist/mcp/project-widget.bundle.js +0 -114
- package/dist/mcp/reports.mjs +0 -101
- package/dist/mcp/widget.bundle.js +0 -147
- package/dist/oxlint.mjs +0 -88
- package/dist/preview-builder.mjs +0 -133
- package/dist/preview-workers.mjs +0 -184
- package/dist/showcase.mjs +0 -77
- package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
- package/dist/skills/ads-break-ui/README.md +0 -16
- package/dist/skills/ads-break-ui/SKILL.md +0 -415
- package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
- package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
- package/dist/skills/ads-break-ui/references/behaviors.md +0 -411
- package/dist/skills/ads-break-ui/references/captures.md +0 -160
- package/dist/skills/ads-break-ui/references/contracts.md +0 -284
- package/dist/skills/ads-break-ui/references/design-data.md +0 -354
- package/dist/skills/ads-break-ui/references/drafts.md +0 -178
- package/dist/skills/ads-break-ui/references/evidence.md +0 -128
- package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -154
- package/dist/skills/ads-break-ui/references/layers.md +0 -145
- package/dist/skills/ads-break-ui/references/reporting.md +0 -101
- package/dist/skills/ads-break-ui/references/review.md +0 -96
- package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
- package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
- package/dist/skills/ads-break-ui/references/validation.md +0 -162
- package/dist/skills/ads-break-ui/references/verification.md +0 -58
- package/dist/skills/ads-break-ui/references/workflows.md +0 -83
- package/dist/skills/ads-designer/references/reporting.md +0 -101
- package/dist/skills/ads-import/references/reporting.md +0 -101
- package/dist/skills/ads-motion/LICENSE.upstream +0 -21
- package/dist/skills/ads-motion/README.md +0 -22
- package/dist/skills/ads-motion/SKILL.md +0 -388
- package/dist/skills/ads-motion/agents/openai.yaml +0 -4
- package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
- package/dist/skills/ads-motion/references/audit.md +0 -44
- package/dist/skills/ads-motion/references/behaviors.md +0 -411
- package/dist/skills/ads-motion/references/captures.md +0 -160
- package/dist/skills/ads-motion/references/contracts.md +0 -284
- package/dist/skills/ads-motion/references/design-data.md +0 -354
- package/dist/skills/ads-motion/references/drafts.md +0 -178
- package/dist/skills/ads-motion/references/evidence.md +0 -128
- package/dist/skills/ads-motion/references/guarded-editing.md +0 -154
- package/dist/skills/ads-motion/references/layers.md +0 -145
- package/dist/skills/ads-motion/references/motion-review.md +0 -35
- package/dist/skills/ads-motion/references/reporting.md +0 -101
- package/dist/skills/ads-motion/references/review.md +0 -96
- package/dist/skills/ads-motion/references/runtimes.md +0 -203
- package/dist/skills/ads-motion/references/scenarios.md +0 -246
- package/dist/skills/ads-motion/references/validation.md +0 -162
- package/dist/skills/ads-motion/references/verification.md +0 -39
- package/dist/skills/ads-motion/references/workflows.md +0 -83
- package/dist/skills/ads-port/references/reporting.md +0 -101
- package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
- package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
- package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
- package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
- package/dist/starters/react/design-system/review/index.ts +0 -5
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
- package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
- package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
- package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
- package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
- package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
- package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
- package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
- package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
- package/dist/starters/react/package-lock.json +0 -4707
- package/dist/token-fixtures.mjs +0 -30
- package/docs/benchmarks/bun-previews.md +0 -91
- package/docs/benchmarks/preview-memory.md +0 -147
- package/docs/benchmarks/turbo-poc.md +0 -284
- package/docs/plans/execution-coordination.md +0 -57
- /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
- /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
|
@@ -19,7 +19,8 @@ or assume a renderer/library supplied by an MCP host. The framework field select
|
|
|
19
19
|
compilation/mounting; controller checks also validate runtime imports. Type-only
|
|
20
20
|
UI references are allowed, but shared controllers cannot import component/pattern
|
|
21
21
|
runtime implementations. Keep business data in application adapters. Measured
|
|
22
|
-
style writes retain exact
|
|
22
|
+
style writes retain the exact properties declared in the owner contract's
|
|
23
|
+
`styles.writes`; they do not allow
|
|
23
24
|
shared-token overrides or an extra styling layer.
|
|
24
25
|
Projects explicitly approve installed runtime packages through
|
|
25
26
|
`behaviorLibraries` in `ds.config.json`; each must also be a `package.json`
|
|
@@ -38,7 +39,7 @@ build and browser review; declaring a dependency does not prove it is headless.
|
|
|
38
39
|
Register owner behavior in `<Owner>.ads.contract.ts` with actual API and
|
|
39
40
|
implementation references. The
|
|
40
41
|
[contract reference](contracts.md) covers static authoring, `.ads.behavior.spec.ts`,
|
|
41
|
-
declarative `exercises
|
|
42
|
+
declarative `exercises` and required browser checks.
|
|
42
43
|
A contract declaration alone is not passing evidence. Use
|
|
43
44
|
`auditBehaviorPaints(frame)` after relevant binding updates to repeat the current
|
|
44
45
|
App's generic paint audit, in addition to assertions for the named guarantee.
|
|
@@ -46,7 +47,7 @@ App's generic paint audit, in addition to assertions for the named guarantee.
|
|
|
46
47
|
## Development boundary
|
|
47
48
|
|
|
48
49
|
Production includes real components, controllers, tokens and compiled styles.
|
|
49
|
-
Scenarios and fixtures are included only in previews.
|
|
50
|
+
Scenarios and fixtures are included only in previews. Owner contracts and test
|
|
50
51
|
files are development/tooling inputs. Runtime imports and public re-exports of
|
|
51
52
|
those inputs are rejected, including dynamic imports and aliases.
|
|
52
53
|
|
|
@@ -162,7 +163,7 @@ command. For a project with an installed Playwright test runner:
|
|
|
162
163
|
}
|
|
163
164
|
```
|
|
164
165
|
|
|
165
|
-
Here `runtime` uses the
|
|
166
|
+
Here `runtime` uses the Bun that runs ADS, and the
|
|
166
167
|
project supplies the installed Playwright entry. Explicit executable commands
|
|
167
168
|
retain their meaning. A Bun package-script profile can use `command: "bun"`
|
|
168
169
|
with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
|
|
@@ -220,11 +221,11 @@ after a failure, does not establish the cause. Preserve the draft and original
|
|
|
220
221
|
diagnostic; do not change a component API, reference example or verification
|
|
221
222
|
policy to compensate for a resource-loading failure.
|
|
222
223
|
|
|
223
|
-
The reporter atomically publishes partial snapshots at test start/end. While
|
|
224
|
-
run is active, `ads_status.
|
|
225
|
-
elapsed time, completed/active/pending counts,
|
|
226
|
-
case identities/timings.
|
|
227
|
-
`ads_status.mutations.progress`. Clients requesting MCP progress receive updates
|
|
224
|
+
The reporter atomically publishes partial snapshots at test start/end. While an
|
|
225
|
+
`ads_validate` run is active, `ads_status.validation.progress` (stage `behavior`)
|
|
226
|
+
exposes the profile, runner budget, elapsed time, completed/active/pending counts,
|
|
227
|
+
worker count when available and case identities/timings. Draft acceptance exposes
|
|
228
|
+
the same data at `ads_status.mutations.progress`. Clients requesting MCP progress receive updates
|
|
228
229
|
and a heartbeat during the runner phase; client-side request timeouts still apply.
|
|
229
230
|
`durationMs` records completed case execution, including attempts, separately from
|
|
230
231
|
the suite's wall time. Parallel case durations can sum to more than wall time.
|
|
@@ -323,9 +324,10 @@ General listings return counts and short API/guarantee/scenario summaries. Exact
|
|
|
323
324
|
owner requests return the registered details; source reads remain available for
|
|
324
325
|
bounded inspection of large contracts. No full guide or test body is injected
|
|
325
326
|
into discovery results.
|
|
326
|
-
|
|
327
|
+
Over MCP, behavior tests run inside the two gates: `ads_accept` runs the draft
|
|
328
|
+
owners' own tests and `ads_validate` every test its change set reaches. Read
|
|
327
329
|
`ads://project/behaviors` for current evidence or `ads://guides/behaviors` for this
|
|
328
|
-
guide. CLI
|
|
330
|
+
guide. To run one unit's checks from the CLI or CI:
|
|
329
331
|
|
|
330
332
|
```sh
|
|
331
333
|
ads behaviors . --json
|
|
@@ -373,34 +375,36 @@ and retains dependencies with declared side effects. This narrowing requires a
|
|
|
373
375
|
package `sideEffects:false` or a supported simple `sideEffects` glob array; preserve
|
|
374
376
|
CSS/global effects in that policy. Unknown policies/patterns, wildcard exports and
|
|
375
377
|
computed imports remain conservative. Barrel source changes still invalidate
|
|
376
|
-
dependents.
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
`
|
|
384
|
-
`
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
for
|
|
378
|
+
dependents. Native snapshots reuse unchanged ASTs and semantic queries across
|
|
379
|
+
inspections; request facts and dependency digests are scoped to captured inputs.
|
|
380
|
+
Later runs verify current source/configuration before reusing results. Selection
|
|
381
|
+
includes previous consumers when imports change and widens conservatively when
|
|
382
|
+
dependency evidence is missing.
|
|
383
|
+
|
|
384
|
+
Draft acceptance and guarded mutations run the draft owners' own registered
|
|
385
|
+
behavior contracts after `ads check` and `acceptance.scripts`, before writing
|
|
386
|
+
source, unless `acceptance.behavior` is false. `ads_validate` always runs every
|
|
387
|
+
contract its change set reaches, including the consumers of a changed shared
|
|
388
|
+
controller, selected conservatively. See [the two gates](validation.md). Rejected
|
|
389
|
+
and dry-run patches publish no source changes. Verification output stays under
|
|
390
|
+
`.ds/`. To check a draft, call `ads_accept({id, revision, dryRun:true})`. This
|
|
391
|
+
checks the candidate, including the owners' behavior contracts and their browser
|
|
392
|
+
preview, rendered through ADS's managed compiler. Candidate evidence is not
|
|
393
|
+
persisted as passing evidence for live source. `ads verify` runs checks for current
|
|
394
|
+
source and has no draft argument.
|
|
392
395
|
|
|
393
396
|
## Packaging and performance
|
|
394
397
|
|
|
395
398
|
Controllers follow normal component/scenario imports into the project's compiled
|
|
396
|
-
resource graph. Their framework dependencies are bundled by
|
|
399
|
+
resource graph. Their framework dependencies are bundled by ADS's Bun preview compiler
|
|
397
400
|
and served through MCP resources inside the App iframe; external hosts install
|
|
398
401
|
nothing. The selected scenario loads its dependency closure. Shared modules are
|
|
399
402
|
cached within that App instance, and each separately opened App has its own runtime.
|
|
400
403
|
|
|
401
404
|
Keep ESM modules and explicit imports. Avoid an eagerly imported controller
|
|
402
|
-
registry.
|
|
403
|
-
side effects, global CSS and dynamic
|
|
405
|
+
registry. Production tree shaking and shared chunks follow the application's
|
|
406
|
+
bundler; previews use Bun. Class methods, side effects, global CSS and dynamic
|
|
407
|
+
maps can retain extra code. Inspect emitted
|
|
404
408
|
resources instead of assuming a controller produces a minimal bundle.
|
|
405
409
|
|
|
406
410
|
Development-only `review/<Owner>` units may register the same guarantee/check
|
|
@@ -31,19 +31,107 @@ artwork; component styles still use tokens.
|
|
|
31
31
|
- **Show it in a component.** A logo appears in the UI through a project
|
|
32
32
|
component (the starter's `components/Content/Logo`) that imports the SVG with
|
|
33
33
|
a plain import, which gives its URL. Artwork that nothing uses is reported (`brand-unused`).
|
|
34
|
-
- **
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
- **It is previewed for you.** ADS renders the artwork in `assets/brand/`, subfolders included, in the
|
|
35
|
+
showcase's first section, **Brand** (`brand/Assets`): each artwork in the current theme and
|
|
36
|
+
separate construction-grid cards and clean actual-size samples. Projects author no brand
|
|
37
|
+
preview scenarios or renderers. The grid follows the SVG viewBox (or image pixel coordinates),
|
|
38
|
+
not the page's layout mini unit; the caption identifies its scale. It is an inspection aid,
|
|
39
|
+
not evidence that the artwork is correctly aligned beside text.
|
|
40
|
+
|
|
41
|
+
## Aligning artwork with text
|
|
42
|
+
|
|
43
|
+
Choose the relationship before changing dimensions. A UI icon, the project's brand mark
|
|
44
|
+
paired with its name, and another product's logo have different constraints.
|
|
45
|
+
|
|
46
|
+
**UI icons beside labels.** Use the project's icon-size and text-size pairing. The ADS
|
|
47
|
+
starter's 16/20/24/32px roles are a useful starting point, not a formula for every font.
|
|
48
|
+
Center the icon beside the label; align neighboring text spans by their text baseline.
|
|
49
|
+
Keep the SVG's intended internal padding and proportions. Do not baseline-align every
|
|
50
|
+
icon or resize its visible artwork to equal the capital letters. This follows
|
|
51
|
+
[IBM's UI icon guidance](https://www.ibm.com/design/language/iconography/ui-icons/usage/).
|
|
52
|
+
|
|
53
|
+
**A mark beside a brand name.** Prefer an approved combined wordmark when one exists.
|
|
54
|
+
Otherwise use a small-size mark appropriate to the text and preserve its documented
|
|
55
|
+
clear space. Start with a centered mark and a separate text group sharing one baseline:
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
const lockup = css`
|
|
59
|
+
@ads-lockup {
|
|
60
|
+
artwork: .ux-lockup-artwork;
|
|
61
|
+
text: .ux-lockup-text;
|
|
62
|
+
size: --icon-sm;
|
|
63
|
+
}
|
|
64
|
+
gap: var(--space-4);
|
|
65
|
+
& .ux-lockup-text {
|
|
66
|
+
gap: var(--space-4);
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
<span className={lockup}>
|
|
71
|
+
<span className="ux-lockup-artwork"><BrandMark /></span>
|
|
72
|
+
<span className="ux-lockup-text"><strong>ADS</strong><span>Workspace</span></span>
|
|
73
|
+
</span>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The lockup declares the artwork's height token and owns the relationship; the artwork
|
|
77
|
+
keeps its intrinsic width and proportions. The containing pattern owns spacing.
|
|
78
|
+
An intentionally cap-height-sized brand treatment is a separate documented
|
|
79
|
+
choice, not the default for all icons. CSS `cap` describes a font metric, not every
|
|
80
|
+
letter's painted edges. A mark inside a padded SVG viewBox does not fill its element box.
|
|
81
|
+
|
|
82
|
+
Review the actual size with the intended font loaded, the real label, both themes and
|
|
83
|
+
relevant zoom/text sizes. Use enlarged Brand/Icons grids to inspect padding and drawing
|
|
84
|
+
coordinates, then judge the clean small samples for legibility. Equal element heights
|
|
85
|
+
or matching the mini-unit grid do not prove optical balance. Keep corrections in the
|
|
86
|
+
owned artwork/component; avoid scattered per-use transforms that conceal inconsistent assets.
|
|
87
|
+
Whole-pixel outer sizes do not guarantee sharp internal edges: the SVG coordinates,
|
|
88
|
+
scale, element position and display pixel ratio all affect rasterization. A dense mark
|
|
89
|
+
may need an authorized small-size version rather than more shrinking or darker paint.
|
|
90
|
+
|
|
91
|
+
For a third-party logo, follow its owner's artwork and clear-space rules; the example
|
|
92
|
+
above does not authorize cropping, recoloring or redrawing it.
|
|
93
|
+
|
|
94
|
+
### What checks establish
|
|
95
|
+
|
|
96
|
+
`@ads-lockup` is an opt-in construction in an owned atomic Linaria template. It names
|
|
97
|
+
one direct artwork child and one direct text-group child using distinct class hooks
|
|
98
|
+
or data hooks such as `[data-lockup="art"]`. `size` is a shared token name, not a
|
|
99
|
+
pixel value or `var()` expression. No spatial definition is required.
|
|
100
|
+
|
|
101
|
+
Keep each text run in its own native span (or `strong`/`em`) inside the text group,
|
|
102
|
+
as above. ADS centers the artwork beside that group and baseline-aligns its runs.
|
|
103
|
+
It emits `text-box-trim: trim-both; text-box-edge: cap alphabetic` on those runs,
|
|
104
|
+
so font leading does not offset the letters from the mark. This trims the text's
|
|
105
|
+
alignment box; it does not shrink the artwork to cap height or clip descenders.
|
|
106
|
+
Browsers without text-trimming support retain ordinary box centering; review those
|
|
107
|
+
browsers separately when they are supported by the product.
|
|
108
|
+
|
|
109
|
+
The blocking `lockup-construction` control checks the declaration, owned hooks in
|
|
110
|
+
every resolved class alternative, inline SVG `preserveAspectRatio`, and conflicting
|
|
111
|
+
size, ratio, alignment or text-trimming styles, including composed classes. Change
|
|
112
|
+
the declaration instead of adding a second class to override it. Unknown class
|
|
113
|
+
evidence does not certify a lockup. Artwork may be an image/SVG or a wrapper for an
|
|
114
|
+
owned component/theme variants; emitted image/SVG sizing preserves intrinsic ratios.
|
|
115
|
+
|
|
116
|
+
This control does not impose square artwork, symmetry, internal padding or painted
|
|
117
|
+
edge equality. It does not inspect drawing coordinates or prove optical balance.
|
|
118
|
+
CSS or SVG internals hidden behind an opaque component/import need their owner's
|
|
119
|
+
checks and visual review. Standalone illustrations and undeclared brand treatments
|
|
120
|
+
are not lockups and remain unrestricted by this control.
|
|
121
|
+
|
|
122
|
+
Current ADS checks cover token/style ownership, glyph viewBoxes/colors, image shape,
|
|
123
|
+
accessible names and configured accessibility/render checks. They do not compare a
|
|
124
|
+
logo's painted edges to a label's glyphs, or choose the right icon/text size pairing
|
|
125
|
+
for a project. Do not report a clean check as proof of optical alignment.
|
|
39
126
|
|
|
40
127
|
## SVG masters, finished images and icon files
|
|
41
128
|
|
|
42
129
|
`assets/brand/` holds SVG masters, finished images (PNG, JPEG, WebP) and finished
|
|
43
130
|
icon files (`.ico`, `.icns`), in any mix. Each file is artwork in its own right:
|
|
44
131
|
described, previewed and used like an SVG. SVG renders cleanly at any size; a
|
|
45
|
-
finished image
|
|
46
|
-
app icon of 1024 px)
|
|
132
|
+
finished image should be delivered at or below its own pixel size, so supply it large
|
|
133
|
+
(an app icon of 1024 px). The Brand construction view may enlarge it for inspection;
|
|
134
|
+
that does not create higher-resolution artwork. A finished icon file is only copied.
|
|
47
135
|
Prefer SVG masters when they exist; take finished images as delivered when that
|
|
48
136
|
is what the brand provides.
|
|
49
137
|
|
|
@@ -52,8 +140,8 @@ is what the brand provides.
|
|
|
52
140
|
Pictograms are illustrations for empty states, onboarding and marketing surfaces, not UI
|
|
53
141
|
icons: never use one as an icon, a logo or a header lockup, and never use a UI glyph as an
|
|
54
142
|
illustration. Keep them as brand artwork in `assets/brand/pictograms/`, so the brand
|
|
55
|
-
checks (README, license,
|
|
56
|
-
|
|
143
|
+
checks (README, license, use) cover them and the Brand view shows them under their relative
|
|
144
|
+
names (`pictograms/<name>.svg`).
|
|
57
145
|
|
|
58
146
|
- Show them at 48 px or larger, at their original proportions; never crop or stretch them.
|
|
59
147
|
- Keep clear space of at least a quarter of their size on every side, with or without a
|
|
@@ -158,7 +246,7 @@ or written permission.
|
|
|
158
246
|
The showcase's Icons tab shows each file as it is, on a white and a black tile.
|
|
159
247
|
|
|
160
248
|
ADS generates nothing from `assets/logos/` and does not treat its files as brand
|
|
161
|
-
artwork or glyphs: the brand checks (`brand-readme`, `brand-
|
|
249
|
+
artwork or glyphs: the brand checks (`brand-readme`, `brand-license`,
|
|
162
250
|
`brand-unused`), `assets.iconSource` and `assets.targets` cover only
|
|
163
251
|
`assets/brand/`, and the glyph checks cover only `assets.glyphs.source`. Keep the
|
|
164
252
|
project's own colored artwork, including its pictograms, in `assets/brand/`.
|
|
@@ -81,43 +81,43 @@ 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
|
-
##
|
|
84
|
+
## Capture layout guides
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
dry run:
|
|
86
|
+
Select any combination of the showcase's existing geometry layers:
|
|
88
87
|
|
|
89
88
|
```js
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
screenshot: true,
|
|
95
|
-
captures: [{ scenario: "components/Example", target: "control", theme: "light" }]
|
|
89
|
+
ads_capture({
|
|
90
|
+
scenario: "patterns/Example",
|
|
91
|
+
guides: ["tracks", "gaps", "padding", "mini"],
|
|
92
|
+
viewport: { width: 1280, height: 800 }
|
|
96
93
|
})
|
|
97
94
|
```
|
|
98
95
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
+
|
|
109
|
+
## Review a draft without accepting it
|
|
110
|
+
|
|
111
|
+
Capture the draft's exact revision beside the accepted version, without acceptance
|
|
112
|
+
checks:
|
|
113
|
+
|
|
114
|
+
```js
|
|
115
|
+
ads_capture({ scenario: "components/Example", target: "control", theme: "light", draft: "<draft id>", revision: "<draft revision>" })
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The placeholder IDs come from discovery and `ads_drafts`. A capture is an explicit
|
|
119
|
+
call: acceptance and its dry run take no screenshots. A new scenario has only a
|
|
120
|
+
candidate image. Edits during capture prevent publication of its image slots.
|
|
121
121
|
|
|
122
122
|
## Two slots, no automatic history
|
|
123
123
|
|
|
@@ -2,7 +2,8 @@
|
|
|
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,
|
|
@@ -10,6 +11,9 @@ 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
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
|
+
public/review barrels from the owners' `.ads.exports.ts` files.
|
|
13
17
|
In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
|
|
14
18
|
ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
|
|
15
19
|
`ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
|
|
@@ -39,16 +43,16 @@ tooling and rejects conflicting saved/JSX settings instead of converting it.
|
|
|
39
43
|
|
|
40
44
|
Use the confirmed package name/version if different. For a Bun project, use
|
|
41
45
|
`bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
|
|
42
|
-
`bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init
|
|
43
|
-
`packageManager` or `bun.lock`/`bun.lockb
|
|
44
|
-
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)
|
|
45
48
|
for MCP configuration and portable compiler/behavior commands.
|
|
46
|
-
|
|
47
|
-
|
|
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.
|
|
48
52
|
|
|
49
|
-
`
|
|
50
|
-
|
|
51
|
-
|
|
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.
|
|
52
56
|
`init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
|
|
53
57
|
framework configuration, lockfiles, and build scripts. It adds only missing ADS
|
|
54
58
|
foundation files, config, development dependencies, and build checks. Existing
|
|
@@ -65,11 +69,11 @@ commit the updated lockfile.
|
|
|
65
69
|
## Local checkout testing
|
|
66
70
|
|
|
67
71
|
If no published distribution exists, build and pack the tooling checkout with
|
|
68
|
-
`
|
|
72
|
+
`bun run build` and `bun run pack:tool`. Resolve its tarball to an absolute path.
|
|
69
73
|
From inside an existing test project:
|
|
70
74
|
|
|
71
75
|
```sh
|
|
72
|
-
ads_tool_package="/absolute/path/to/
|
|
76
|
+
ads_tool_package="/absolute/path/to/the-tarball-produced-by-pack-tool.tgz"
|
|
73
77
|
npx --yes --package "$ads_tool_package" ads --help
|
|
74
78
|
npx --yes --package "$ads_tool_package" ads init --framework react --tool-package "$ads_tool_package"
|
|
75
79
|
npm install
|
|
@@ -77,7 +81,7 @@ npm run build
|
|
|
77
81
|
```
|
|
78
82
|
|
|
79
83
|
Use Bun's install/build commands for Bun projects. Keep npx options before
|
|
80
|
-
`
|
|
84
|
+
`ads`. `--tool-package` is optional local-testing/version-override support;
|
|
81
85
|
registry users do not need an archive. A `file:` dependency must remain
|
|
82
86
|
available wherever dependencies are installed. A published pinned version is
|
|
83
87
|
portable between machines.
|
|
@@ -110,23 +114,20 @@ Integrate that directory through the app's existing asset mount. Fixed token
|
|
|
110
114
|
names and prefixes are required; project values and artwork remain project-owned.
|
|
111
115
|
Builds use the installed local tool, not the initializing npx cache. Ignore `.ds/`.
|
|
112
116
|
Register component-specific guards as explicit project scripts and include them
|
|
113
|
-
in the project build and, when needed, `acceptance.
|
|
114
|
-
optional adapter for projects that explicitly choose Oxlint; ADS gates do not
|
|
115
|
-
require or invoke it.
|
|
117
|
+
in the project build and, when needed, `acceptance.scripts`.
|
|
116
118
|
|
|
117
119
|
`mcp` starts stdio plus its local website; `showcase` starts the browser-only MCP
|
|
118
120
|
runtime. Open the existing URL from `ads_status` when connected; otherwise use
|
|
119
|
-
`npm run dev:showcase` or the installed `ads showcase`. With the saved framework
|
|
120
|
-
|
|
121
|
+
`npm run dev:showcase` or the installed `ads showcase`. With the saved framework,
|
|
122
|
+
ADS supplies the Bun compiler and prewarms views
|
|
121
123
|
sequentially. Init supplies a framework mount adapter; existing projects can keep
|
|
122
|
-
their own compatible adapter
|
|
123
|
-
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,
|
|
124
125
|
selected component/pattern/style/brand imports, explicit theme-value imports, and
|
|
125
126
|
migration are agent workflows. There is no CLI `import` command. Core checks
|
|
126
127
|
do not copy source, import values, or establish behavior/motion parity; continue
|
|
127
128
|
project type checking, meaningful tests, and browser comparisons.
|
|
128
129
|
|
|
129
130
|
If no CLI distribution is available, continue with the target's existing
|
|
130
|
-
checks;
|
|
131
|
+
checks; setting ADS up needs the ADS package (`ads init`).
|
|
131
132
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
132
133
|
or fetch an external UI catalogue.
|
|
@@ -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
|
|
|
@@ -42,6 +43,54 @@ the runtime dependency closure. Review custom emitter configurations through
|
|
|
42
43
|
the configuration owner before migrating a consuming project. Guards remain tooling. Production prop types
|
|
43
44
|
belong in runtime files, never inferred from a development contract.
|
|
44
45
|
|
|
46
|
+
## Public names and generated entries
|
|
47
|
+
|
|
48
|
+
Each owner declares its public names in its own `<Owner>.ads.exports.ts`, beside its
|
|
49
|
+
source (`components/Button.ads.exports.ts` for a flat owner,
|
|
50
|
+
`components/Forms/Input/Input.ads.exports.ts` for a directory owner):
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
export { Button } from "./Button";
|
|
54
|
+
export type { ButtonProps } from "./Button";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
An exports file holds only named re-exports of its own owner's modules by relative
|
|
58
|
+
path: no `export *`, no other code, no peers' files. Public names are unique across
|
|
59
|
+
owners. ADS generates the public barrel (`index.ts`) by copying
|
|
60
|
+
every exports file's re-exports with paths rebased onto the barrel, so it names each
|
|
61
|
+
public export directly from its source and a product build never includes an exports
|
|
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`
|
|
63
|
+
per canonical token sheet in foundation order; the public barrel imports it first.
|
|
64
|
+
Never edit a generated entry: `ads check` reports a stale or hand-edited one
|
|
65
|
+
(`generated-entry`), and the showcase, the MCP server, draft previews, acceptance
|
|
66
|
+
and `ads assets` rewrite them. An exports file belongs to its owner's layer:
|
|
67
|
+
production, or development under `review/`.
|
|
68
|
+
|
|
69
|
+
## Style permissions
|
|
70
|
+
|
|
71
|
+
An owner declares the style permissions its own code needs in its contract, with
|
|
72
|
+
paths relative to the contract:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
export default {
|
|
76
|
+
schemaVersion: 1,
|
|
77
|
+
styles: {
|
|
78
|
+
writes: { "./Menu.tsx": ["--ds-menu-x", "--ds-menu-y"] },
|
|
79
|
+
inline: ["./Menu.tsx"],
|
|
80
|
+
},
|
|
81
|
+
customization: ["--ds-menu-gap"],
|
|
82
|
+
} satisfies UnitContract;
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
`styles.writes` lists the CSS properties or owned `--ds-`/`--ux-`/`--showcase-`
|
|
86
|
+
variables a file writes at runtime (never `cssText`, state variables or shared
|
|
87
|
+
tokens); `styles.inline` lists files that may use inline JSX/factory styles for
|
|
88
|
+
measured geometry; `customization` lists a component's non-state `--ds-*` variables
|
|
89
|
+
that patterns, the showcase and the application may set. Contracts are allowed for
|
|
90
|
+
component, pattern, controller, review and showcase owners; `customization` only for
|
|
91
|
+
components. An unused permission is reported as stale on the contract.
|
|
92
|
+
`ds.config.json` holds no per-owner entries.
|
|
93
|
+
|
|
45
94
|
## A contract uses actual implementation references
|
|
46
95
|
|
|
47
96
|
```ts
|
|
@@ -160,7 +209,7 @@ one declared field, or a per-theme value built with the generated helpers from
|
|
|
160
209
|
takes the value for its color scheme). Every value is a declared field and the argument is
|
|
161
210
|
an object literal without spreads. The normal key/map/root proof still applies. Raw
|
|
162
211
|
constants, undeclared fields, `light-dark()`, extra writes and unknown transforms are
|
|
163
|
-
rejected. The
|
|
212
|
+
rejected. The render audit checks an accessible color reference in every theme's branch;
|
|
164
213
|
a local SVG URL or `none` is not a color there.
|
|
165
214
|
|
|
166
215
|
Families cannot overlap shared tokens, private runtime
|
|
@@ -251,34 +300,19 @@ Shared token samples belong under the token directory. See
|
|
|
251
300
|
project-specific audits of shared alias relationships. It supplements mandatory
|
|
252
301
|
core source checks and does not enable independent local values.
|
|
253
302
|
|
|
254
|
-
##
|
|
303
|
+
## MCP editing
|
|
255
304
|
|
|
256
|
-
|
|
305
|
+
The static owner contract is the only token, paint, declarative-part and behavior
|
|
306
|
+
registration. Competing declarations fail.
|
|
257
307
|
Contracts participate in discovery, ownership, source revisions, affected-check
|
|
258
308
|
selection and candidate gates. `ads_units` exposes `contractFile`; `ads_catalog`
|
|
259
309
|
reports constrained paint paths and declarative parent/consumer/check references.
|
|
260
310
|
Use bounded file reads and paged detailed results, not repeated whole-project dumps.
|
|
261
311
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
5. Dry-run/apply with `ads_apply_patch`, or a genuinely coupled transaction.
|
|
270
|
-
|
|
271
|
-
Migration never edits live source or bypasses gates. It retains stable scenario
|
|
272
|
-
IDs, check case IDs and directory ownership. A canonical `<Owner>.ads.scenario.tsx` is the same
|
|
273
|
-
development entry as `Scenario.tsx`, even without a production entry or owner
|
|
274
|
-
contract. Explicit flat IDs and existing flat peer families remain separate.
|
|
275
|
-
An optional static `scenario.id` preserves a legacy
|
|
276
|
-
identity when a renamed filename would otherwise be ambiguous; it must stay
|
|
277
|
-
inside the owning unit and be unique. Whole-file or unimportable private behavior subjects stay
|
|
278
|
-
in legacy registration with a note until deliberately resolved. Unknown runner
|
|
279
|
-
globs, custom adapters and documentation references require review. Ambiguous
|
|
280
|
-
flat-to-directory renames stay in the legacy form with a migration note so file
|
|
281
|
-
ownership cannot silently change. Preserve
|
|
282
|
-
licenses, pending drafts and unrelated work; keep transactions within their limits.
|
|
283
|
-
There is no alternate JSON contract editor. Do not loosen a guard or make a valid
|
|
284
|
-
API private merely to complete a migration.
|
|
312
|
+
A canonical `<Dir>/<Dir>.ads.scenario.tsx` is the development entry of the
|
|
313
|
+
directory owner `<Dir>`, even without a production entry or owner contract. In a
|
|
314
|
+
folder without that entry, each `<Owner>.ads.scenario.tsx` belongs to its own flat
|
|
315
|
+
owner, and an explicit flat `scenario.id` (`<Dir>/<Dir>`) keeps the canonical file
|
|
316
|
+
a flat entry. An optional static `scenario.id` keeps an identity stable when a
|
|
317
|
+
renamed filename would otherwise be ambiguous; it must stay inside the owning unit
|
|
318
|
+
and be unique.
|