@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
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -14,7 +14,7 @@ Normal application checks verify website integration.
|
|
|
14
14
|
|
|
15
15
|
This document explains the what, why, and high-level how. [ADS.md](ADS.md) defines
|
|
16
16
|
the enforceable contract, [GUIDE.md](GUIDE.md) covers tool integration, and the
|
|
17
|
-
[
|
|
17
|
+
[starter/playground guide](../starters/README.md) covers implementation details.
|
|
18
18
|
|
|
19
19
|
## Shared tooling, project-owned design
|
|
20
20
|
|
|
@@ -36,20 +36,126 @@ their own reviewed lifecycle.
|
|
|
36
36
|
|
|
37
37
|
ADS is opinionated about tooling and ownership. Linaria is required for the
|
|
38
38
|
component and pattern styling pipeline. Visual choices belong to the project.
|
|
39
|
-
ADS
|
|
40
|
-
|
|
39
|
+
ADS's tools run on Bun 1.4.1+ and compile MCP previews independently of the
|
|
40
|
+
application's build tools. The project may use Node or Bun: what it imports from
|
|
41
|
+
ADS in its own build, lint or Playwright specs works under Node. Project scripts
|
|
41
42
|
and behavior profiles retain their explicit interpreter commands; `command:
|
|
42
|
-
"runtime"`
|
|
43
|
+
"runtime"` runs on ADS's Bun. This tooling choice is separate
|
|
43
44
|
from the UI framework and adds no Node/Bun dependency to deployed components.
|
|
45
|
+
|
|
46
|
+
### Semantic analysis
|
|
47
|
+
|
|
48
|
+
ADS semantic analysis uses its own pinned TypeScript 7.1 beta asynchronous
|
|
49
|
+
native API from Bun. Analysis, orchestration and preview compilation all run on
|
|
50
|
+
Bun; registered application commands retain their explicit runtimes. Generated
|
|
51
|
+
applications retain their TypeScript 5.9.3 dependency and their own `tsc`; ADS's
|
|
52
|
+
compiler is a separate nested package when necessary.
|
|
53
|
+
|
|
54
|
+
`src/analysis/service.mjs` is the shared asynchronous entry point for acceptance,
|
|
55
|
+
architecture checks, scenario/catalog discovery, tokens, behavior planning and
|
|
56
|
+
audit selection. Each calling ADS process shares a Bun child host with plain-data IPC. That host
|
|
57
|
+
serializes analysis requests and owns bounded native project sessions. One job
|
|
58
|
+
is an inspection/check/selection request that may inspect many files. Independent
|
|
59
|
+
native queries inside it can share pending promises and be batched.
|
|
60
|
+
Rendering and registered test commands execute outside this service.
|
|
61
|
+
|
|
62
|
+
Each project keeps an immutable live snapshot. Drafts branch from it using file
|
|
63
|
+
deltas; acceptance promotes the checked revision, while rejection releases it.
|
|
64
|
+
Sibling drafts cannot alter each other, and a changed live generation prevents
|
|
65
|
+
stale promotion. Project input bytes are captured during the existing validation
|
|
66
|
+
inventory read. Imported dependencies, missing resolution targets, configuration
|
|
67
|
+
and package changes invalidate the compiler state. Content fences remain required
|
|
68
|
+
around operations that can overlap filesystem edits; timestamps alone never
|
|
69
|
+
establish freshness. The beta compiler's unsafe program-removal operation is
|
|
70
|
+
avoided by bounded snapshot compaction within the same compiler process.
|
|
71
|
+
Relocated AST wrappers belong to a live project or one draft, rather than a
|
|
72
|
+
global map of draft paths. Unchanged live trees keep their identity across
|
|
73
|
+
revisions; releasing a draft releases its wrapper cache. Promotion creates live
|
|
74
|
+
paths without mutating trees already returned to draft callers.
|
|
75
|
+
|
|
76
|
+
Production acceptance registers the candidate's file delta against its live
|
|
77
|
+
project before checking. The architecture guard, contract discovery and affected
|
|
78
|
+
selection use that branch through the shared analysis service. Successful source
|
|
79
|
+
publication promotes the checked snapshot; rejected, abandoned and temporary
|
|
80
|
+
branches are released. Configured scripts and browser evidence remain separate
|
|
81
|
+
acceptance stages and retain their own source-freshness requirements.
|
|
82
|
+
|
|
83
|
+
Rules must use `analysis/helpers.mjs` for `sourceAst`, `sourceText`, `symbolAt`,
|
|
84
|
+
`valueSymbolAt`, `localValueDeclarations`, `walk`, `findNode`, `nodesOfKind`, `memoFact` and `memoProgram`. Program acquisition
|
|
85
|
+
goes through `cachedProgram`; import resolution goes through `importResolver`.
|
|
86
|
+
Optional inputs and immediate directory membership use `optionalSourceText` and
|
|
87
|
+
`sourceDirectoryFiles`; both observe the captured revision, including absence.
|
|
88
|
+
`sourceCss` shares read-only PostCSS trees within a request; transforms clone
|
|
89
|
+
before modifying them. Spatial guards and foundation discovery use
|
|
90
|
+
`spatial.mjs` over these helpers. The pure `spatial-model.cjs` compiler does no
|
|
91
|
+
filesystem I/O. `spatial-inputs.cjs` retains a bounded cache of immutable models
|
|
92
|
+
by contents, without branch paths or ASTs. Linaria's build adapter captures at
|
|
93
|
+
the build/extraction boundary, and Bun previews track spatial contents and token
|
|
94
|
+
sheet membership, including layouts introduced by evaluated interpolations.
|
|
95
|
+
`spatial-contexts.cjs` validates bounded conditional token graphs and shares immutable
|
|
96
|
+
context models. `spatial-css.cjs` normalizes supported ordinary CSS placement and protects
|
|
97
|
+
generated geometry. Its bounded 256-entry cache contains only immutable selector-text
|
|
98
|
+
facts, including finite functional branches and attribute targets; it retains no source
|
|
99
|
+
trees or project paths. Keyframe effects join the same target/property checks.
|
|
100
|
+
`spatial-composition.mjs` binds those facts to existing native JSX
|
|
101
|
+
nodes and owned component calls; it creates no compiler or independent syntax tree.
|
|
102
|
+
Standalone extraction checks algebra; acceptance adds the owned composition evidence.
|
|
103
|
+
|
|
104
|
+
The spatial design and starter defaults draw on IBM Carbon's 2x Grid. The
|
|
105
|
+
[design references](DESIGN-REFERENCES.md) record adopted concepts, the consulted
|
|
106
|
+
source revision, and attribution boundaries. ADS's compiler and analysis services
|
|
107
|
+
are separate from Carbon's Sass/React grid packages; consumers own their definitions.
|
|
108
|
+
|
|
109
|
+
Do not create compiler programs, native clients, path-keyed semantic caches or
|
|
110
|
+
independent AST parsers in new rules. `memoFact` lives for one fenced request;
|
|
111
|
+
`memoProgram` is only for facts determined by an immutable program/tree or captured
|
|
112
|
+
revision, with weak ownership. Return
|
|
113
|
+
copies when exposing cached mutable results. A boundary test prevents rule modules
|
|
114
|
+
from constructing programs or importing native transports. Library inspection
|
|
115
|
+
APIs are asynchronous and use the same native session implementation. Await
|
|
116
|
+
`checkProject`, `inspectTokens`, contract/scenario inspection and import
|
|
117
|
+
resolution. Direct library callers acquire a context through `standalone.mjs`;
|
|
118
|
+
they do not select a different engine. Syntax-only work uses the native API's
|
|
119
|
+
bounded source-file leases. There is one compiler implementation.
|
|
120
|
+
|
|
121
|
+
Semantic calls go through `analysis/queries.mjs`, which shares pending promises
|
|
122
|
+
and batches independent symbol/type queries. Await source and semantic lookups;
|
|
123
|
+
ordinary syntax predicates remain synchronous. Use the ordered async traversal
|
|
124
|
+
and collection helpers when callbacks perform semantic work, so short-circuit
|
|
125
|
+
checks and diagnostic order remain deterministic.
|
|
126
|
+
Use `walkValuesAsync` for CSS values: returning false prunes that function's
|
|
127
|
+
children. `walkAsync` follows PostCSS's different contract, stopping the walk.
|
|
128
|
+
Resolve named subjects through `localValueDeclarations` instead of enumerating
|
|
129
|
+
all symbols in scope. Resolving declarations for a global symbol inventory can
|
|
130
|
+
load the compiler libraries unnecessarily and exhaust memory.
|
|
131
|
+
|
|
132
|
+
`bun run test:analysis` verifies native analysis, cache invalidation, production
|
|
133
|
+
draft acceptance and computed-CSS compilation without browser rendering or
|
|
134
|
+
registered behavior execution. The [analysis benchmark](../scripts/benchmarks/analysis/README.md)
|
|
135
|
+
runs the current engine serially with correctness assertions and time/memory
|
|
136
|
+
regression gates when a compatible baseline is supplied. Its acceptance fixtures
|
|
137
|
+
disable scripts, registered behavior execution and rendering so measurements
|
|
138
|
+
include input capture, branching, guards and publication without browser work.
|
|
139
|
+
[AGENTS.md](../AGENTS.md#mandatory-analysis-benchmarks) requires both inventory
|
|
140
|
+
sizes for relevant changes. Browser and component behavior suites remain
|
|
141
|
+
separate from these engine measurements.
|
|
142
|
+
|
|
143
|
+
Changed-scope validation follows shared source trees and native import resolution.
|
|
144
|
+
Its successful full baseline also retains plain dependency closures, so later
|
|
145
|
+
selection includes consumers from both the previous and current revisions.
|
|
146
|
+
Deleted inputs without previous evidence, unknown ownership, computed imports
|
|
147
|
+
and shared configuration widen selection conservatively. This selects what to
|
|
148
|
+
audit; it does not replace browser evidence or grant a passing result.
|
|
44
149
|
The project declares React or native Preact in `ds.config.json` and uses the
|
|
45
150
|
matching compiler and mount adapter. Both integrate with the required styling
|
|
46
151
|
and validation pipeline; additional frameworks need explicit tooling support.
|
|
47
152
|
|
|
48
|
-
|
|
49
|
-
`ads
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
153
|
+
A design system can start from the starter that ships inside the same ADS package:
|
|
154
|
+
`ads init --framework react|preact --include-starter`, run inside an existing project, adds
|
|
155
|
+
`dist/starters/react` and its generated Preact overlay
|
|
156
|
+
where the project has nothing, so it always matches the tool version that checks it. It
|
|
157
|
+
never replaces a project file or writes a lockfile. Skills carry no starter copy; they
|
|
158
|
+
point agents to `ads init --include-starter`. The starter is a working base: a
|
|
53
159
|
token foundation in six groups (color ramps with AA-checked roles, type,
|
|
54
160
|
space and sizing, shape and elevation, motion, layout with a column grid), brand artwork
|
|
55
161
|
with Brand previews, an icon set, and one example of each layer.
|
|
@@ -91,6 +197,11 @@ The shared foundation is the only design-value catalogue. Components and pattern
|
|
|
91
197
|
map its roles into owned `--ds-*` and `--ux-*` variables; these namespaces cannot
|
|
92
198
|
introduce independent design values. Raw literals hidden by aliases, fallbacks,
|
|
93
199
|
themes or static helper/import interpolation follow the same source checks.
|
|
200
|
+
Every interpolated alternative must resolve. The checker deduplicates known
|
|
201
|
+
values and checks all resulting styles; unknown alternatives and work-limit
|
|
202
|
+
exhaustion produce a blocking `design-value-source` finding. A template may
|
|
203
|
+
produce at most 256 distinct styles, including combinations of interpolations;
|
|
204
|
+
larger constructions must be split into smaller styles, never silently sampled.
|
|
94
205
|
Runtime measurements and typed instance paints retain narrow, explicit contracts.
|
|
95
206
|
When adapting external UI, use the project's existing font, text, spacing and
|
|
96
207
|
other semantic roles even when their values differ from the reference. Add a
|
|
@@ -115,15 +226,32 @@ patterns. Import count, element count and implementation size do not decide the
|
|
|
115
226
|
layer. Scenarios may compose public UI and development review helpers to demonstrate their
|
|
116
227
|
subject without becoming production patterns.
|
|
117
228
|
|
|
118
|
-
Patterns are production application UI.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
229
|
+
Patterns are production application UI. The showcase owns generic preview UX:
|
|
230
|
+
navigation, theme/viewport controls, framing and hosting inside the App iframe.
|
|
231
|
+
Projects supply `.ads.scenario.*` demonstrations and `.ads.fixture.*` inputs for
|
|
232
|
+
the actual production implementation. Small project-specific arrangements
|
|
233
|
+
and demonstration controls use `.ads.review.*` files. `review/`
|
|
234
|
+
is an optional organizational home for shared helpers, not another production
|
|
235
|
+
UI layer or an exemption from the filename marker. Its generated helper entry is
|
|
236
|
+
`review/index.ads.review.ts`, imported through `@ds/review`.
|
|
237
|
+
|
|
238
|
+
The tool-owned `@reqvire-org/ads/preview` API supplies generic frame classes and
|
|
239
|
+
mount containers; project framework adapters use `.ads.mount.*`. Its development-only
|
|
240
|
+
`setPreviewGuides(options)` and `observePreviewGuides(listener)` helpers let a
|
|
241
|
+
composed inspection toolbar control the managed preview’s existing guide overlay.
|
|
242
|
+
Choices are a `mode` (`off`, `hover` or `always`: where guides show) and boolean
|
|
243
|
+
layers (`bounds`, `tracks`, `gaps`, `padding`, `margins`, `mini`: what they draw);
|
|
244
|
+
the observer receives the current choices immediately and returns an unsubscribe
|
|
245
|
+
function. The App forwards edits to its host, which retains them across views and
|
|
246
|
+
synchronizes other controls. This does not create a second overlay or a production
|
|
247
|
+
layout dependency. Neither this
|
|
248
|
+
preview API nor marked project code/styles may enter production dependencies.
|
|
249
|
+
Review helpers retain public product-contract and style checks. They reuse
|
|
250
|
+
production tokens unchanged; literal width/height and grid-track dimensions are
|
|
251
|
+
permitted only for isolated demonstration geometry. Colors, typography, spacing
|
|
252
|
+
and component states remain governed by production Data and owners. Showcase-only
|
|
253
|
+
values do not belong in the production token foundation. See the
|
|
254
|
+
[scenario support guide](../skills/ads-designer/references/review.md).
|
|
127
255
|
|
|
128
256
|
Core guards reject component runtime dependencies on patterns/composition through
|
|
129
257
|
resolved imports, re-exports and helpers. Patterns consume public component
|
|
@@ -166,9 +294,8 @@ visual expression.
|
|
|
166
294
|
## Linaria is the implementation mechanism
|
|
167
295
|
|
|
168
296
|
Linaria connects these responsibilities in the component and pattern styling
|
|
169
|
-
pipeline. The
|
|
170
|
-
|
|
171
|
-
implement that pipeline. Both are supported: the project
|
|
297
|
+
pipeline. The starter has one authored `starters/shared/` design with generated
|
|
298
|
+
native React/Preact imports and configuration. Both runtimes are supported: the project
|
|
172
299
|
chooses its rendering runtime, while ADS checks the same architecture and serves
|
|
173
300
|
its actual compiled scenarios. A React application remains React; MCP does not
|
|
174
301
|
substitute a different runtime or a visual reproduction.
|
|
@@ -223,7 +350,7 @@ of every unused variant. Atomic composition still requires care with the cascade
|
|
|
223
350
|
|
|
224
351
|
Apply extraction to application and project preview builds, preserve intentional
|
|
225
352
|
foundation CSS, and inspect compiled output when performance matters. The
|
|
226
|
-
[
|
|
353
|
+
[starter guide](../starters/shared/README.md) covers these details.
|
|
227
354
|
Both extraction pipelines use the build-only `@reqvire-org/ads/linaria` tag
|
|
228
355
|
resolver. It delegates atomization and nesting to the project's installed Linaria
|
|
229
356
|
processor while preserving custom-property token streams around that pass.
|
|
@@ -275,7 +402,7 @@ components, patterns or controllers; extract a shared controller only when the
|
|
|
275
402
|
behavior is shared. Other external runtime imports fail
|
|
276
403
|
`behavior-library-undeclared`. Type-only imports and development roles retain
|
|
277
404
|
their existing rules, as do the configured framework and Linaria exceptions.
|
|
278
|
-
`ads
|
|
405
|
+
`ads check` reports import locations and the exact list to declare.
|
|
279
406
|
|
|
280
407
|
This is project approval, not a recursive dependency audit or a guarantee about
|
|
281
408
|
third-party internals. ADS reads installed versions without executing packages
|
|
@@ -285,9 +412,9 @@ checks retain their scope; it introduces no new package-CSS certification gate.
|
|
|
285
412
|
For example, Floating UI's `computePosition` can supply `x` and `y` to an
|
|
286
413
|
allowlisted producer's `style.setProperty("--ds-popover-x", ...)` and
|
|
287
414
|
`style.setProperty("--ds-popover-y", ...)`; project Linaria owns positioning
|
|
288
|
-
rules and visual treatment.
|
|
289
|
-
`
|
|
290
|
-
|
|
415
|
+
rules and visual treatment. Declare those exact properties in the owner contract's
|
|
416
|
+
`styles.writes`. Clean up positioning observers on unmount.
|
|
417
|
+
ADS's managed preview compiler bundles used library code into the normal MCP App
|
|
291
418
|
resource graph; declarations alone do not load packages or change its sandbox.
|
|
292
419
|
|
|
293
420
|
Optional `<Owner>.ads.contract.ts` modules identify public APIs or private
|
|
@@ -309,15 +436,41 @@ side effects, rather than the controller directory name.
|
|
|
309
436
|
|
|
310
437
|
## The showcase is the shared design workspace
|
|
311
438
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
439
|
+
Every MCP source change is a tracked proposal: `ads-drafts/` source in explicit
|
|
440
|
+
`.ads` files, with canonical target mappings and baseline fingerprints. Only
|
|
441
|
+
`ads_accept` of an exact draft revision writes accepted source. Production
|
|
442
|
+
discovery/imports exclude drafts.
|
|
443
|
+
|
|
444
|
+
Ownership makes drafts independent. Every authored file has one owner, and an owner
|
|
445
|
+
is in at most one open draft, so concurrent clients edit different owners and drafts
|
|
446
|
+
never share a file. A draft carries only its owners' files; a companion such as
|
|
447
|
+
`ds.config.json` joins when the draft changes it. Shared entries are generated from
|
|
448
|
+
owned files: the public barrel and review entry from each owner's
|
|
449
|
+
`<Owner>.ads.exports.ts` (its named re-exports, copied with rebased paths, so a product
|
|
450
|
+
build never includes an exports file), the styles entry from the canonical token sheets, the theme
|
|
451
|
+
files from the token halves. Style permissions live in the owner's contract. ADS
|
|
452
|
+
therefore never merges: if accepted source changes under a draft (a direct edit or a
|
|
453
|
+
Git pull), acceptance reports a baseline conflict and the draft is recreated.
|
|
454
|
+
|
|
455
|
+
Each connected project runtime owns one managed preview compiler process.
|
|
456
|
+
Semantic analysis uses the shared host described above. Generated preview
|
|
457
|
+
workspaces (`.ds/draft-previews/<id>/project`) retain the normal project layout and
|
|
458
|
+
public imports while overlaying proposed owner files and declared draft dependencies,
|
|
459
|
+
with the generated entries regenerated. The preview compiler process hosts each
|
|
460
|
+
draft workspace as an in-process instance listed in a control file, and one scheduler
|
|
461
|
+
runs their builds in turn: the viewed draft first, then the project, then background
|
|
462
|
+
work. A draft's preview is a view of its workspace served by the project's showcase,
|
|
463
|
+
in comparison (`?draft=<id>`) or alone (`/draft/<id>/`, the same client with that
|
|
464
|
+
workspace's MCP endpoint). Only these workspaces skip acceptance validation for fast
|
|
465
|
+
feedback. A draft's own edits and the viewed draft resync at once; other drafts
|
|
466
|
+
behind an accepted-source change catch up in the background.
|
|
467
|
+
|
|
468
|
+
Acceptance fences the exact reviewed revision, builds a candidate copy and rechecks
|
|
469
|
+
live inputs before publication. When the draft's workspace holds the same inputs as
|
|
470
|
+
the candidate, `ads check` and the browser renders run there, through the project's
|
|
471
|
+
compiler and host, so a dry run followed by acceptance of the same revision reuses its
|
|
472
|
+
check and audit results. Pattern/composition and token-group draft dependencies
|
|
473
|
+
resolve to normal accepted source after promotion.
|
|
321
474
|
The [draft guide](../skills/ads-designer/references/drafts.md) defines lifecycle,
|
|
322
475
|
completion requirements, build integration and recovery.
|
|
323
476
|
|
|
@@ -326,16 +479,16 @@ Humans and coding agents inspect the same project through MCP. The showcase is
|
|
|
326
479
|
tooling. Its header, section tabs (Brand, shown first when the project previews its
|
|
327
480
|
artwork, then Tokens, Icons when the project has a glyph set, Components, Patterns and
|
|
328
481
|
Composition), collapsible left menu,
|
|
329
|
-
grid overlay and theme switches and preview area stay neutral.
|
|
330
|
-
the
|
|
331
|
-
|
|
482
|
+
grid overlay and theme switches and preview area stay neutral. Through the App's host
|
|
483
|
+
context, the grid inspector highlights actual computed grid tracks inside the rendered
|
|
484
|
+
widgets, following each container's padding, gaps, size and scroll position. The client discovers entries, invokes tools, forwards App
|
|
332
485
|
resource requests and subscribes to changes. It contains no project UI catalogue
|
|
333
486
|
or implementation imports.
|
|
334
487
|
|
|
335
|
-
The server supplies catalogues,
|
|
488
|
+
The server supplies catalogues, the token and brand views it builds, source guides, preview Apps,
|
|
336
489
|
build status and diagnostics. Agents connect over stdio; the browser uses a
|
|
337
|
-
loopback HTTP MCP endpoint in the same runtime. Both share
|
|
338
|
-
compiler. Starting MCP starts the website; a browser-only command starts the same
|
|
490
|
+
loopback HTTP MCP endpoint in the same runtime. Both share ADS's managed Bun
|
|
491
|
+
preview compiler. Starting MCP starts the website; a browser-only command starts the same
|
|
339
492
|
runtime without stdio. Shutdown closes the website, connections and compiler.
|
|
340
493
|
Local and external compatible hosts load the same reusable preview App. The
|
|
341
494
|
browser host uses a separate-origin sandbox proxy around its opaque App iframe.
|
|
@@ -350,14 +503,13 @@ external bases still require declared CSP origins. This belongs to document
|
|
|
350
503
|
loading and changes no project link or scenario handler. External hosts control
|
|
351
504
|
their own document-loading and CSP behavior.
|
|
352
505
|
|
|
353
|
-
The proxy and App sandbox permit native forms (`allow-forms`)
|
|
354
|
-
legacy nested widget. This lets browser constraint validation and `submit`
|
|
506
|
+
The proxy and App sandbox permit native forms (`allow-forms`). This lets browser constraint validation and `submit`
|
|
355
507
|
handlers run for clicks, Enter and `requestSubmit()`. Client-side handlers retain
|
|
356
508
|
their own `preventDefault()` behavior. The App stays opaque; CSP
|
|
357
509
|
`form-action 'none'` blocks native action requests without suppressing submit
|
|
358
510
|
handlers. Hosts outside ADS choose their own sandbox and CSP permissions.
|
|
359
511
|
|
|
360
|
-
|
|
512
|
+
ADS's Bun preview compiler publishes a versioned dependency graph: shared runtime and
|
|
361
513
|
foundation assets, plus independently addressable scenario modules. Inside the
|
|
362
514
|
App, a resource loader obtains the selected dependency closure through MCP,
|
|
363
515
|
verifies its content and mounts it using the project's framework adapter. Native
|
|
@@ -382,9 +534,9 @@ its case results. Persistent transport failures still block a mutation. External
|
|
|
382
534
|
hosts own their transport recovery; the reusable App's integrity checks remain
|
|
383
535
|
the same.
|
|
384
536
|
|
|
385
|
-
Managed graph builders publish into
|
|
386
|
-
|
|
387
|
-
standalone builds
|
|
537
|
+
Managed graph builders publish into `.ds/preview/sessions/<session>/`.
|
|
538
|
+
Logical scenario IDs and resource URIs stay unchanged;
|
|
539
|
+
standalone builds publish `.ds/preview/manifest.json` and cannot overwrite a live
|
|
388
540
|
session's success record. Verified compiled snapshots form a bounded shared
|
|
389
541
|
warm-start cache. Source, compiler, dependency and output hashes still gate reuse.
|
|
390
542
|
Ordinary shutdown removes owned session output while retaining that cache.
|
|
@@ -433,14 +585,13 @@ to produce useful UI. A scenario supplies that development context around the
|
|
|
433
585
|
real public implementation. It mounts independently, without opening a showcase
|
|
434
586
|
page or initializing the application's router, store or services first.
|
|
435
587
|
|
|
436
|
-
Scenarios and their fixtures live beside the
|
|
588
|
+
Scenarios and their fixtures live beside the component or pattern they exercise.
|
|
437
589
|
Demo framing belongs to development-only review helpers; component props describe
|
|
438
590
|
intentional product behavior and visual variants.
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
a definitions-only inspector does not establish preview coverage.
|
|
591
|
+
The token and brand views are tool-owned: ADS builds them from the token sheets,
|
|
592
|
+
`tokens/catalog.ads.json` (groups and sample bindings) and `assets/brand/`. The project
|
|
593
|
+
owns the data; ADS owns the presentation. The tool contains no project token list,
|
|
594
|
+
sample values or assumed visual identity.
|
|
444
595
|
Larger scenarios live under `composition/`. They use the same public screen
|
|
445
596
|
patterns as production: application adapters supply live data and effects;
|
|
446
597
|
scenario adapters supply fixture data, local state and simulated services.
|
|
@@ -449,9 +600,7 @@ Reassembling a second screen from shared primitives still allows design drift.
|
|
|
449
600
|
The server discovers one path-derived scenario registry. The showcase's scenario
|
|
450
601
|
sections (Brand, Tokens, Components, Patterns and Composition) browse that same registry
|
|
451
602
|
through MCP results. They do not initialize the entry or define
|
|
452
|
-
its UI. Every preview uses `?scenario=<id>`; discovered `kind` selects its section
|
|
453
|
-
including token scenarios colocated with component/pattern owners. Existing
|
|
454
|
-
`?category=` links remain compatibility aliases. The host supplies theme and
|
|
603
|
+
its UI. Every preview uses `?scenario=<id>`; discovered `kind` selects its section. The host supplies theme and
|
|
455
604
|
available space; the public implementation
|
|
456
605
|
supplies presentation. Several related public parts may share a scenario with
|
|
457
606
|
their required parent. Every declared token and every public renderable component
|
|
@@ -507,6 +656,11 @@ bundles. Native ADS gates run directly; project lint/build/test commands remain
|
|
|
507
656
|
explicit integration checks. Explorer navigation and metadata are served
|
|
508
657
|
independently of compilation and validation.
|
|
509
658
|
|
|
659
|
+
New preview requests share one input-stamp capture per batch. After that
|
|
660
|
+
asynchronous capture, scheduling reads the current candidate, publication and
|
|
661
|
+
registry together. Candidate completion or replacement during capture cannot
|
|
662
|
+
lose a requested view or reuse coverage from a retired candidate.
|
|
663
|
+
|
|
510
664
|
```mermaid
|
|
511
665
|
flowchart LR
|
|
512
666
|
Edit[Source edit] --> Compile[Compile changes with Bun]
|
|
@@ -522,8 +676,8 @@ flowchart LR
|
|
|
522
676
|
```
|
|
523
677
|
|
|
524
678
|
Watched compilation provides immediate visual feedback while validation and
|
|
525
|
-
scenario inspection run in the background. Inspection uses
|
|
526
|
-
|
|
679
|
+
scenario inspection run in the background. Inspection uses the shared asynchronous
|
|
680
|
+
analysis host, rather than an inspector-owned worker. Rapid edits replace pending work, with one
|
|
527
681
|
verification run in flight. Production builds retain their own optimization.
|
|
528
682
|
|
|
529
683
|
Preview discovery shares `.ds/scenario-registry.json` between the MCP host,
|
|
@@ -535,16 +689,17 @@ startup; changed inputs or missing/corrupt snapshots trigger fresh discovery.
|
|
|
535
689
|
Explicit catalogue reads fence their in-memory registry against current source,
|
|
536
690
|
so edits and removals are visible before the next observation/reconciliation tick.
|
|
537
691
|
Reopening an already known draft scenario retains its last discovered metadata
|
|
538
|
-
while
|
|
539
|
-
|
|
540
|
-
|
|
692
|
+
while the shared asynchronous analysis service refreshes the catalogue.
|
|
693
|
+
New/missing scenario identities await discovery; accepted comparison metadata
|
|
694
|
+
is independently revision-fenced.
|
|
541
695
|
The response's `discovery` distinguishes current, pending and failed metadata
|
|
542
696
|
from the exact proposal revision and the actual preview build. Superseded worker
|
|
543
|
-
results cannot replace newer requests; drop/shutdown
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
697
|
+
results cannot replace newer requests; drop/shutdown removes owned discovery
|
|
698
|
+
state and releases registered revisions. Preview analysis and checks share
|
|
699
|
+
bounded native snapshots through `analysis/service.mjs`. Program acquisition
|
|
700
|
+
delegates through `program-cache.mjs`; unchanged ASTs retain identity, and source,
|
|
701
|
+
import and configuration edits invalidate the relevant snapshot. Watched graphs
|
|
702
|
+
include requested scenario roots and their dependencies,
|
|
548
703
|
preserving roots used by other mounted Apps; untouched catalogue entries are not
|
|
549
704
|
compiled until requested. Unwatched full builds retain complete entry coverage.
|
|
550
705
|
Snapshot publication fences source edits during inspection. This cache supplies
|
|
@@ -577,7 +732,11 @@ not initialize fresh observation and misclassify each request as a source edit.
|
|
|
577
732
|
Draft-only edits preserve accepted registry/catalogue snapshots. Capture updates
|
|
578
733
|
reuse source-fenced discovery rather than allocating another semantic program.
|
|
579
734
|
Explorer uses these reports for monochrome
|
|
580
|
-
entry glyphs and refreshes its mounted Apps.
|
|
735
|
+
entry glyphs and refreshes its mounted Apps. Its notification scheduler keeps an
|
|
736
|
+
already scheduled refresh's deadline; later build notices cannot postpone a
|
|
737
|
+
catalogue update indefinitely. Refreshes run one at a time, and notices arriving
|
|
738
|
+
during a refresh form one follow-up batch that retains any discovery request.
|
|
739
|
+
A ready draft preview remains
|
|
581
740
|
unaccepted; catalogue metadata or compiled feedback cannot establish acceptance.
|
|
582
741
|
|
|
583
742
|
Live resources are fenced to the current source digest and managed session.
|
|
@@ -604,10 +763,10 @@ newer inputs; it leaves the previous cache intact and requires the next build.
|
|
|
604
763
|
A transferred checked graph can refresh older watcher metadata without recompiling
|
|
605
764
|
it, while a partial watched graph cannot replace the complete catalogue.
|
|
606
765
|
Its full semantic registry snapshot transfers only when source revisions match,
|
|
607
|
-
so
|
|
766
|
+
so reopening a compiler need not repeat discovery of accepted source.
|
|
608
767
|
Shared dependency maps are stored once, with a fresh validation memo for each
|
|
609
768
|
reuse operation. No file hash is retained across operations. Configuration input
|
|
610
|
-
ordering is canonical
|
|
769
|
+
ordering is canonical; complete caches stay within the
|
|
611
770
|
existing 8 MiB budget rather than silently writing an unreadable large file.
|
|
612
771
|
|
|
613
772
|
Background acceptance, validation and architecture checks serialize independently
|
|
@@ -615,21 +774,26 @@ of the accepted/draft preview lane. They never suspend Explorer's compiler or
|
|
|
615
774
|
make a cold selection wait for a browser verification suite. Existing publications
|
|
616
775
|
remain readable while interactive source changes compile.
|
|
617
776
|
|
|
618
|
-
For managed resource previews, ADS requests
|
|
619
|
-
through
|
|
620
|
-
|
|
621
|
-
|
|
777
|
+
For managed resource previews, ADS requests the scenarios in production mode
|
|
778
|
+
through the reviewed draft's workspace, compiled by ADS's managed compiler and
|
|
779
|
+
served by its host. Only a candidate without such a workspace gets a preview host
|
|
780
|
+
of its own; its compiler is parked after production publication while the host
|
|
781
|
+
continues serving that immutable graph to registered browser verification. Either
|
|
782
|
+
way the incremental graph is closed before production compilation starts.
|
|
622
783
|
Warming an already-current selection does not restart or wait for that compiler.
|
|
623
784
|
Production reuse requires a successful production build of the exact inputs,
|
|
624
785
|
not merely a previously compiled development graph. Project-owned additional
|
|
625
786
|
commands still run as configured. Remove the standalone preview-build command
|
|
626
|
-
from `acceptance.
|
|
787
|
+
from `acceptance.scripts`; keep it in the ordinary project build.
|
|
627
788
|
|
|
628
|
-
Candidate architecture inspection
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
789
|
+
Candidate architecture inspection shares the project's native compiler through
|
|
790
|
+
an isolated snapshot rather than starting a compiler for each acceptance.
|
|
791
|
+
Releasing a candidate drops its adapters, resolvers and snapshot leases while
|
|
792
|
+
keeping live/sibling revisions valid. The service bounds active project/revision
|
|
793
|
+
state and closes after idle time when no registered revision pins it. Direct
|
|
794
|
+
library and syntax-only clients have their own short idle cleanup. Closing one
|
|
795
|
+
scenario inspector cancels its requests without retiring other callers' shared
|
|
796
|
+
compiler. Persisted registry metadata has separate content checks.
|
|
633
797
|
|
|
634
798
|
After the selected view paints, a connected showcase can prefetch changed peers'
|
|
635
799
|
static resources into the App's existing byte cache. This bounded, opportunistic
|
|
@@ -644,15 +808,16 @@ adapter. Native ESM resources still obey digest checks and the existing bounded
|
|
|
644
808
|
revision lifecycle; this is state-preserving refresh, not component-level HMR.
|
|
645
809
|
|
|
646
810
|
Incremental compilation is separate from test selection. Preview refresh runs the
|
|
647
|
-
adapter's validation callback.
|
|
648
|
-
|
|
811
|
+
adapter's validation callback. Draft acceptance executes the draft owners' own
|
|
812
|
+
registered behavior checks when `acceptance.behavior` is enabled. `ads validate`
|
|
813
|
+
selects affected behavior owners through registered input dependencies; a shared
|
|
649
814
|
foundation change can select every owner. Configured project checks still run as
|
|
650
815
|
authored; releases run the full test suite. ADS does not claim per-test-case
|
|
651
816
|
selection or skip validation because a module transform was cached.
|
|
652
817
|
|
|
653
|
-
Architecture inspection shares
|
|
654
|
-
and
|
|
655
|
-
|
|
818
|
+
Architecture inspection shares immutable ASTs/programs, native semantic queries
|
|
819
|
+
and request-scoped facts. A new inspection still observes current source and
|
|
820
|
+
configuration; successful reports are reused only for their exact input key.
|
|
656
821
|
Source scans prepare generated-directory and source-root comparisons once per
|
|
657
822
|
inventory. Every scan still discovers tests and hashes current input bytes.
|
|
658
823
|
|
|
@@ -669,8 +834,8 @@ The built-in client uses `waitFor: compiled` for interactive selections, so it
|
|
|
669
834
|
can browse compiled feedback or a retained verified graph while checks run.
|
|
670
835
|
Default MCP preview calls, captures and verification still wait for verified
|
|
671
836
|
output. Pending selections never report App readiness as verified. Discovery
|
|
672
|
-
notifications are reconciled after validation
|
|
673
|
-
|
|
837
|
+
notifications are reconciled after validation through asynchronous discovery.
|
|
838
|
+
The App retains or remounts its view
|
|
674
839
|
according to its dependency closure. A quiet monochrome indicator in the
|
|
675
840
|
showcase's upper-right header exposes compilation, checking, reload and fallback
|
|
676
841
|
status through its accessible label, tooltip and details popover. Editing keeps
|
|
@@ -682,6 +847,11 @@ failures stay in the watcher's recoverable diagnostic path. Fixing source trigge
|
|
|
682
847
|
If the compiler process exits, the next preview request starts one fresh child;
|
|
683
848
|
MCP inspection remains available. Each child generation has its own status report,
|
|
684
849
|
so independent MCP clients do not overwrite each other's build state.
|
|
850
|
+
Standalone compilation writes `.ds/build-status.json`. Managed compilation uses
|
|
851
|
+
`.ds/build-status-<session>.json`, selected through the internal
|
|
852
|
+
`ADS_MCP_BUILD_STATUS` and `ADS_MCP_BUILD_SESSION` launch variables. Session identity
|
|
853
|
+
separates revisions across restarts; source and artifact digests establish
|
|
854
|
+
freshness independently of process state.
|
|
685
855
|
Compilation remains necessary for TSX and Linaria;
|
|
686
856
|
there is one preview pipeline with automatic updates.
|
|
687
857
|
|
|
@@ -715,9 +885,9 @@ sandboxed App the requested viewport. Project runtime, fonts and styles remain
|
|
|
715
885
|
inside the App resource graph. The image excludes showcase chrome.
|
|
716
886
|
|
|
717
887
|
Captures exist only when requested. `ads_capture` replaces current and removes any
|
|
718
|
-
candidate for that scenario/target
|
|
719
|
-
|
|
720
|
-
|
|
888
|
+
candidate for that scenario/target; with a draft and its exact revision it renders
|
|
889
|
+
current and candidate under matching settings without changing live source.
|
|
890
|
+
Acceptance and its dry run take no screenshots.
|
|
721
891
|
A new scenario has no fabricated baseline. Final freshness/conflict checks precede
|
|
722
892
|
image publication. Matching accepted source promotes candidate to current.
|
|
723
893
|
|
|
@@ -737,8 +907,8 @@ source ownership and product bundles. Detailed usage lives in each portable skil
|
|
|
737
907
|
|
|
738
908
|
Brand artwork lives in `assets/brand/`: SVG masters, finished PNG/JPEG/WebP images and
|
|
739
909
|
delivered `.ico`/`.icns` files, each described with its use and license in the folder's
|
|
740
|
-
README.
|
|
741
|
-
|
|
910
|
+
README. ADS generates the Brand view from those assets, including construction grids
|
|
911
|
+
and actual-size samples; projects do not author brand preview scenarios.
|
|
742
912
|
|
|
743
913
|
`ads assets` makes three kinds of output. Web icons from `assets.iconSource` are rebuilt
|
|
744
914
|
into ignored `.ds/assets/` on every build, for the application's bundler. Committed targets
|
|
@@ -757,6 +927,32 @@ owners' colors, render as images, and are never muted, tinted or recolored (a on
|
|
|
757
927
|
only where the owner's rules allow it, in the colors they name). ADS generates and checks
|
|
758
928
|
nothing there.
|
|
759
929
|
|
|
930
|
+
### Declared artwork/text lockups
|
|
931
|
+
|
|
932
|
+
`@ads-lockup { artwork: .hook; text: .other-hook; size: --icon-sm; }` is an opt-in
|
|
933
|
+
construction on an owned row. It emits ordinary CSS for centered artwork, an intrinsic
|
|
934
|
+
aspect ratio, a baseline-aligned text group and font-metric trimming of the group's
|
|
935
|
+
native text runs. It does not impose a canvas shape, symmetric artwork, internal
|
|
936
|
+
padding or cap-height-sized logos. Older browsers without text trimming retain box
|
|
937
|
+
centering. The [branding guide](../skills/ads-designer/references/branding.md#aligning-artwork-with-text)
|
|
938
|
+
contains the complete authoring example and visual-review boundaries.
|
|
939
|
+
|
|
940
|
+
The `lockup-construction` control is a blocking source check, shared by `ads check`,
|
|
941
|
+
validation and draft acceptance. It rejects malformed declarations, missing or
|
|
942
|
+
unresolved owned hooks, explicitly distorted inline SVGs and conflicting geometry,
|
|
943
|
+
alignment or text-trimming declarations across resolved class compositions. It
|
|
944
|
+
does not claim proof of painted-edge alignment or inspect opaque artwork internals.
|
|
945
|
+
|
|
946
|
+
`src/construction-styles.cjs` runs the pure lockup and spatial transforms for both
|
|
947
|
+
checking and the public Linaria resolver, including preview compilation. The lockup
|
|
948
|
+
transform in `src/lockup-model.cjs` reads no files and needs no spatial model. Generated
|
|
949
|
+
declarations retain their rule identity for shared CSS override protection.
|
|
950
|
+
`src/lockup-composition.mjs` binds the declaration through the existing captured native
|
|
951
|
+
AST/class-composition analysis. It adds no compiler, source capture, disk reads or
|
|
952
|
+
persistent rule-local cache. Preview fingerprints include the transform modules;
|
|
953
|
+
changes cannot reuse previously compiled output. Optical review remains separate
|
|
954
|
+
from these source-only checks and benchmarks.
|
|
955
|
+
|
|
760
956
|
## Build checks keep the architecture in place
|
|
761
957
|
|
|
762
958
|
The project build runs ADS checks before producing application or showcase
|
|
@@ -768,7 +964,7 @@ Themes and brands are declared in `ds.config.json` and are only value sets: ever
|
|
|
768
964
|
brand shares the same token names. A theme sets the color mode and a brand sets identity
|
|
769
965
|
values (an accent ramp, a font), so a white-label product needs one brand per customer
|
|
770
966
|
rather than one theme per customer and mode. The declaration is the one list the showcase,
|
|
771
|
-
captures, preview host context, contrast review,
|
|
967
|
+
captures, preview host context, contrast review, render audit and token export read, so a
|
|
772
968
|
project can add a high-contrast theme or a brand without tool changes.
|
|
773
969
|
|
|
774
970
|
A token that differs per theme is authored as one plain half per theme (`--x-light`,
|
|
@@ -800,16 +996,20 @@ equal token values with possibly different roles, keyboard reach, unused artwork
|
|
|
800
996
|
in a render path); it is shown with guidance and never blocks. An info item notes an analysis
|
|
801
997
|
limit. Stale or hand-edited generated outputs are errors, since they ship.
|
|
802
998
|
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
999
|
+
The [spatial check map](SPATIAL-CHECKS.md) records GC-01–GC-06 enforcement, supported
|
|
1000
|
+
construction boundaries and focused evidence, including per-call container ancestry,
|
|
1001
|
+
placement alternatives and protection of emitted geometry.
|
|
1002
|
+
|
|
1003
|
+
Fixed minima use the spatial scale, mini/fine units, standard control/icon dimensions or
|
|
1004
|
+
explicit `layout.widthTokens` roles; their resolved minimum must fit the spatial maximum.
|
|
1005
|
+
Projects without a spatial definition may use their shared spacing primitives. The checker
|
|
1006
|
+
follows private aliases and calculated expressions. Responsive, fractional and intrinsic
|
|
1007
|
+
sizing remain supported; maximum sizes can cap otherwise fixed dimensions. Validated
|
|
1008
|
+
`@ads-layout` fixed/hybrid tracks use their own local algebra. Declared fixed roles and
|
|
1009
|
+
`layout.fixedWidthUnits` owners remain visible as review findings. The browser
|
|
810
1010
|
audit adds what source cannot show: axe-core, non-text contrast of control borders and icons,
|
|
811
1011
|
image shape and horizontal overflow at 390, 768 and 1280 px, by resizing each rendered scenario. It
|
|
812
|
-
also narrows components and patterns to a 240 px container: a set width above the
|
|
1012
|
+
also narrows components and patterns to a 240 px container: a set width above the browser review threshold of 96 px
|
|
813
1013
|
that overflows it is a review item, since whether a part ever sits in a pane takes judgement.
|
|
814
1014
|
|
|
815
1015
|
Each render waits, bounded, for its content to settle before anything is measured, and says so when it
|
|
@@ -817,7 +1017,16 @@ did not. The audit also renders what a scenario shows only after someone acts on
|
|
|
817
1017
|
`aria-haspopup` controls open, and hovers and focuses controls for contrast. Each worker lists what
|
|
818
1018
|
every render could measure, then assigns targets in request order, so which render measures a shared
|
|
819
1019
|
control does not depend on page speed. Its result states what it covered, and what it skipped is an
|
|
820
|
-
info item per reason.
|
|
1020
|
+
info item per reason. `mcp.auditPages` (1–16, default 4) sets how many pages render at once.
|
|
1021
|
+
|
|
1022
|
+
The audit runs in both gates. Draft acceptance audits the draft owners' own UI
|
|
1023
|
+
scenarios unless `acceptance.audit` is false. `ads validate` always audits every
|
|
1024
|
+
scenario its change set reaches through imports: everything with scope `all`, and
|
|
1025
|
+
with scope `changed` what changed since the last successful full run (all scenarios
|
|
1026
|
+
after shared configuration, foundation or token changes). The cost of auditing what
|
|
1027
|
+
a change reaches grows with how widely the owner is used, so it runs once for a
|
|
1028
|
+
series of drafts, before a commit or release, rather than on every acceptance. A dry run's audit is remembered by candidate revision and selection,
|
|
1029
|
+
so accepting that revision does not render again.
|
|
821
1030
|
|
|
822
1031
|
Static errors split by what they stop. A preview session the audit starts renders despite policy
|
|
823
1032
|
errors, records no pass, and reports them with the audit's findings; the audit still exits non-zero.
|
|
@@ -834,7 +1043,7 @@ tests and browser review verify the resulting accessibility, layout, themes,
|
|
|
834
1043
|
states, and motion. Both forms of verification support agent-driven iteration.
|
|
835
1044
|
|
|
836
1045
|
The CLI `ads validate` and MCP `ads_validate` share one audit engine, combining
|
|
837
|
-
architecture and test-boundary guards,
|
|
1046
|
+
architecture and test-boundary guards, configured project lint/check scripts
|
|
838
1047
|
and behavior contracts. Full audits establish a content baseline. Changed audits
|
|
839
1048
|
select affected behavior owners from that baseline; broad or unclassified changes
|
|
840
1049
|
expand to full. Opaque project commands retain their declared scope.
|
|
@@ -847,8 +1056,8 @@ recording changed paths and known/unknown attribution. Source-change interruptio
|
|
|
847
1056
|
cannot publish a successful baseline. A small run journal supports crash recovery;
|
|
848
1057
|
immutable run results and exact-run investigations survive reconnects and subsequent
|
|
849
1058
|
runs under bounded age/count/disk retention. Collection protects active work and
|
|
850
|
-
expires owned evidence with its result. See
|
|
851
|
-
|
|
1059
|
+
expires owned evidence with its result. See
|
|
1060
|
+
[execution coordination](MCP.md#shared-process-execution-coordination).
|
|
852
1061
|
|
|
853
1062
|
Only a successful full audit against unchanged source advances the baseline.
|
|
854
1063
|
This works without Git history and does not cache individual test results. Skills
|
|
@@ -878,17 +1087,6 @@ Bounded tools establish what exists; explicit resource reads provide detail.
|
|
|
878
1087
|
Prompts and packaged skills explain how to reason through Data, UX and Skin and
|
|
879
1088
|
how to inspect the real implementation before changing it.
|
|
880
1089
|
|
|
881
|
-
Agent feedback has a separate intake boundary. `ads_report_bug` records suspected
|
|
882
|
-
broken behavior; `ads_request_feature` records a missing capability and its use
|
|
883
|
-
case. Both save durable development metadata under the connected project's
|
|
884
|
-
`.ds/reports/`, with verified evidence selectors, compact snapshots and observed
|
|
885
|
-
version/framework/revisions. Classification remains an untriaged agent claim.
|
|
886
|
-
Reports grant no architecture exception, execute no submitted command and upload
|
|
887
|
-
nothing. Equivalent submissions reuse an ID; records do not expire or get pruned
|
|
888
|
-
by count. Individual records and receipts are bounded. MCP intake is submission-only:
|
|
889
|
-
it exposes no report-reading tools, resources, subscriptions or notifications.
|
|
890
|
-
See the [reporting contract](MCP.md#bug-reports-and-feature-requests).
|
|
891
|
-
|
|
892
1090
|
The MCP runtime owns its browser hosts and preview builder lifetime. Closing the
|
|
893
1091
|
client connection releases them together; a separate ownership guard can stop
|
|
894
1092
|
detached builders after abrupt owner death. A preview process must not outlive
|
|
@@ -900,29 +1098,35 @@ Build reports expose queued, validation, compilation and publication progress.
|
|
|
900
1098
|
A timed-out preview request marks the builder stalled; the next explicit request
|
|
901
1099
|
restarts it within the same MCP session. A running process alone is not freshness.
|
|
902
1100
|
|
|
903
|
-
Opt-in MCP editing makes validation part of the write operation. The agent
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
1101
|
+
Opt-in MCP editing makes validation part of the write operation. The agent edits a
|
|
1102
|
+
draft of one or more owners (file contents or a Git unified diff) and accepts it. ADS
|
|
1103
|
+
resolves file ownership, takes the draft's files as they are and validates a
|
|
1104
|
+
temporary project copy with architecture checks and configured project
|
|
1105
|
+
lint/validation scripts.
|
|
908
1106
|
The temporary copy contains the relevant input graph and patched files, with room
|
|
909
1107
|
for 100,000 files / 2 GiB. Unrelated native artifacts are not copied. Declared extra
|
|
910
1108
|
inputs support project commands that read data outside the UI graph. When
|
|
911
|
-
`acceptance.
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
1109
|
+
`acceptance.behavior` is true (the default), the draft owners' own registered behavior
|
|
1110
|
+
checks run in the isolated candidate project; the consumers of a changed shared
|
|
1111
|
+
controller run in `ads validate`.
|
|
1112
|
+
Architecture batch checks from the CLI and CI use the internal pinned Turbo runner
|
|
1113
|
+
and its installed platform binary; no global Turbo or runtime dependency installer is
|
|
1114
|
+
invoked. A task miss invokes the same asynchronous native analysis service.
|
|
1115
|
+
The MCP server, its preview compiler and registered candidates use warm checks
|
|
1116
|
+
(`check-service.mjs`) backed by that service. Native snapshots reuse unchanged
|
|
1117
|
+
ASTs and query results; an exact input-key repeat can return a remembered passing
|
|
1118
|
+
report. Local artifact
|
|
915
1119
|
reuse is enabled by default and fenced by current input/tool/runtime/Git state;
|
|
916
|
-
|
|
1120
|
+
gate results, browser evidence, locks and baselines are never task outputs.
|
|
917
1121
|
Project scripts remain uncached without a known deterministic contract. The warm
|
|
918
1122
|
Bun preview compiler retains its module cache; complete verified graph restoration
|
|
919
1123
|
publishes fresh build-session evidence without semantic rediscovery. See
|
|
920
1124
|
[cache controls and CI wiring](CACHING.md).
|
|
921
1125
|
|
|
922
|
-
`acceptance.
|
|
923
|
-
names are inferred
|
|
924
|
-
edits
|
|
925
|
-
|
|
1126
|
+
`acceptance.scripts` and `validation.scripts` explicitly select project scripts; no
|
|
1127
|
+
names are inferred, and `ads validate` runs both lists, so each script is listed
|
|
1128
|
+
once. Direct edits invoke `ads validate --changed`; draft acceptance records no
|
|
1129
|
+
baseline, so its owner-scoped evidence never satisfies a complete validation. The project owns its test code and runner policy;
|
|
926
1130
|
ADS owns affected-check selection, candidate hosting, progress, evidence freshness
|
|
927
1131
|
and process cleanup. One profile timeout bounds its entire runner process. Parallel
|
|
928
1132
|
workers can share that candidate host with independent App state. Partial outcomes
|
|
@@ -968,18 +1172,15 @@ replace the managed process while retaining the MCP connection. Normal build gat
|
|
|
968
1172
|
remain in place for source changes made through other editors; preview review remains
|
|
969
1173
|
necessary after either editing path.
|
|
970
1174
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
project bindings and reports unresolved mappings. Neither preparation changes live
|
|
976
|
-
source or substitutes for guarded application and rendered review.
|
|
1175
|
+
Genuinely coupled owners share one draft (up to 64 owners), validated as a single
|
|
1176
|
+
complete candidate and published together. Token-sample reconciliation writes into
|
|
1177
|
+
a draft, preserves project bindings and reports unresolved mappings; it never
|
|
1178
|
+
changes live source or substitutes for rendered review and acceptance.
|
|
977
1179
|
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
before writing, so coupled changes do not need a guard bypass.
|
|
1180
|
+
No owner edits a shared entry. An owner's public names, its style permissions and its
|
|
1181
|
+
token sheets are its own files; ADS regenerates the barrels and the styles entry in
|
|
1182
|
+
the candidate, and deletes an empty `.gitkeep` itself when accepted source is added
|
|
1183
|
+
beneath it. Coupled changes therefore need no companion edits or guard bypass.
|
|
983
1184
|
|
|
984
1185
|
The architecture makes that inspection practical. A public export has an owning
|
|
985
1186
|
source and addressable preview coverage. Token definitions expose its visual
|
|
@@ -996,20 +1197,14 @@ of evidence; source checks and metadata cannot establish visual or behavioral
|
|
|
996
1197
|
correctness. Text/resource access and the normal showcase keep the workflow
|
|
997
1198
|
usable when a client lacks experimental presentation capabilities.
|
|
998
1199
|
|
|
999
|
-
Experimental MCP Apps are another development review surface.
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
inspector remains available for token source/alias diagnostics, even if project
|
|
1003
|
-
previews cannot compile; it does not substitute for token scenario coverage.
|
|
1200
|
+
Experimental MCP Apps are another development review surface. Component, pattern and
|
|
1201
|
+
composition views are project-built scenarios with the project's own extracted CSS and
|
|
1202
|
+
public implementations; token and brand views are built by ADS from project definitions.
|
|
1004
1203
|
The server serves those artifacts; it does not interpret arbitrary component
|
|
1005
1204
|
code or introduce production UI dependencies. File-change notifications let
|
|
1006
|
-
hosts refresh their views. ADS
|
|
1205
|
+
hosts refresh their views. ADS runs its Bun preview compiler itself, with no launch command.
|
|
1007
1206
|
Editing access is independent: direct editors can use MCP only for preview/checks,
|
|
1008
|
-
while MCP-only editors use enabled mutation tools.
|
|
1009
|
-
manage compilation externally with `mcp.previewWatch: false`; the external builder
|
|
1010
|
-
must publish the ADS resource graph and build evidence. MCP still serves previews,
|
|
1011
|
-
but source changes stale their evidence until verified updated output is published.
|
|
1012
|
-
See the [editing workflows](../skills/ads-designer/references/workflows.md). Structured build reports distinguish running compilers
|
|
1207
|
+
while MCP-only editors use enabled mutation tools. Both use ADS's compiler. See the [editing workflows](../skills/ads-designer/references/workflows.md). Structured build reports distinguish running compilers
|
|
1013
1208
|
from successful, current previews; diagnostics remain readable even when a host
|
|
1014
1209
|
does not forward notifications. Older clients retain tools/resources/prompts;
|
|
1015
1210
|
native skill discovery and Apps presentation depend on the host's capabilities.
|
|
@@ -1019,13 +1214,13 @@ For concrete instructions, use:
|
|
|
1019
1214
|
|
|
1020
1215
|
- [ADS tooling contract](ADS.md) for naming, ownership rules, updates, and lint responsibilities.
|
|
1021
1216
|
- [Tool guide](GUIDE.md) for prerequisites, supported formats, configuration, and build wiring.
|
|
1022
|
-
- [
|
|
1217
|
+
- [Starter/playground guide](../starters/README.md) for Linaria composition, extraction, and project commands.
|
|
1023
1218
|
- Component-local READMEs for APIs, lifecycle, tests, and provenance.
|
|
1024
1219
|
|
|
1025
|
-
Token preview completeness has two checks. Static guards
|
|
1026
|
-
bindings (`token`, CSS `property`, and project-selected `probe`)
|
|
1027
|
-
|
|
1028
|
-
|
|
1220
|
+
Token preview completeness has two checks. Static guards validate the catalogue's explicit
|
|
1221
|
+
bindings (`token`, CSS `property`, and project-selected `probe`; `foundation-catalog`). The
|
|
1222
|
+
view then verifies rendered samples in the actual browser by probing those bindings and
|
|
1223
|
+
restoring them. The tool supplies no token/property
|
|
1029
1224
|
classification or visual sample palette. A source build alone is not a rendered
|
|
1030
1225
|
verification, and the browser check does not judge design quality.
|
|
1031
1226
|
|
|
@@ -1065,7 +1260,7 @@ scenarios and fixtures use the marked names; existing IDs remain stable.
|
|
|
1065
1260
|
Instance bindings are distinct from static tokens and arbitrary inline styles.
|
|
1066
1261
|
Source checks trace config origin, key validation, exact map construction and
|
|
1067
1262
|
attachment to an owner root. Shared token and private runtime-variable ownership and consumer permissions
|
|
1068
|
-
remain enforced.
|
|
1263
|
+
remain enforced. Render audits inspect current scoped values, paint effects and
|
|
1069
1264
|
local SVG resources; registered checks must cover updates/removal, isolation and
|
|
1070
1265
|
relevant themes. Registration, source-demonstrated consumption and current browser
|
|
1071
1266
|
verification are separate evidence. Unknown paths establish no blanket permission.
|
|
@@ -1080,8 +1275,7 @@ Shared token references remain visible across the project. Component state and
|
|
|
1080
1275
|
implementation variables retain their existing ownership boundaries. Project checks
|
|
1081
1276
|
may use `inspectTokenOrigins` to audit more specific shared alias relationships;
|
|
1082
1277
|
core Data/UX/Skin separation does not depend on opting into such a check. ADS does
|
|
1083
|
-
not hardcode a spacing scale or palette.
|
|
1084
|
-
ordinary owner drafts, candidate gates and rollback.
|
|
1278
|
+
not hardcode a spacing scale or palette.
|
|
1085
1279
|
|
|
1086
1280
|
Preview scheduling prunes standard generated output trees before allocating OS
|
|
1087
1281
|
watches and computing source freshness. Explicit source roots retain priority;
|