@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/MCP.md
CHANGED
|
@@ -8,8 +8,8 @@ UI to demonstrate their subject; application adapters own store access and routi
|
|
|
8
8
|
|
|
9
9
|
`ads mcp [directory]` serves a project's local design system over stdio. It uses
|
|
10
10
|
the same `ds.config.json`, token inspection and core checks as the CLI. It reads
|
|
11
|
-
source and build artifacts.
|
|
12
|
-
preview
|
|
11
|
+
source and build artifacts. With a declared framework, it manages ADS's Bun
|
|
12
|
+
preview compiler and serves the built-in browser showcase, so the client needs
|
|
13
13
|
only one launch command. Source editing is disabled by default; `--mutations`
|
|
14
14
|
enables guarded ADS edits. MCP does not install skills or add a production runtime.
|
|
15
15
|
|
|
@@ -25,7 +25,7 @@ action and do not require restarting MCP.
|
|
|
25
25
|
its installed version and the ADS units that use it. Catalog entries expose their
|
|
26
26
|
`behaviorLibraries`, following local helpers and controllers. This allowlist
|
|
27
27
|
permits imports; it does not load packages or audit third-party dependencies.
|
|
28
|
-
Used code is bundled by
|
|
28
|
+
Used code is bundled by ADS's managed Bun preview compiler into the resources
|
|
29
29
|
read by the sandboxed MCP App. Existing style and geometry boundaries still apply.
|
|
30
30
|
|
|
31
31
|
Websites and product MCP Apps reuse the project's public design-system UI. The
|
|
@@ -45,16 +45,13 @@ With MCP-only access, enabled mutation tools provide source/draft edits and
|
|
|
45
45
|
exact-revision acceptance. Without them or a separate editor, source editing is
|
|
46
46
|
unavailable. `mutations.enabled` reports server capability, not the chosen route.
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
starting a compiler. Existing views may remain visible during compilation, but
|
|
52
|
-
changed-source evidence is stale until verified updated artifacts are published.
|
|
53
|
-
Both editing routes require current ADS/project checks and rendered review.
|
|
48
|
+
Both editing routes use ADS's compiler, which the MCP server runs. Existing views
|
|
49
|
+
may remain visible during compilation, but changed-source evidence is stale until
|
|
50
|
+
verified updated artifacts are published. Both editing routes require current ADS/project checks and rendered review.
|
|
54
51
|
|
|
55
|
-
## Command memory budgets
|
|
52
|
+
## Command memory budgets
|
|
56
53
|
|
|
57
|
-
|
|
54
|
+
`resources.memoryLimitMb` in `ds.config.json` controls command memory. Missing/null
|
|
58
55
|
selects an automatic process-tree budget of at most 6 GiB and one quarter of
|
|
59
56
|
physical RAM, with 1 GiB of available-memory headroom and inherited Linux limits
|
|
60
57
|
respected. A positive MiB value sets the project budget explicitly. Changing it
|
|
@@ -95,10 +92,12 @@ the slots. Read the returned PNG resources before visual acceptance; the result
|
|
|
95
92
|
is explicitly `previewOnly`, not behavioral or acceptance evidence.
|
|
96
93
|
|
|
97
94
|
`ads_accept({id,revision})` validates and applies the exact reviewed revision in
|
|
98
|
-
one operation
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
one operation; `dryRun:true` runs every check and writes nothing. It is the only way
|
|
96
|
+
MCP writes accepted source. It runs `ads check`, `acceptance.scripts`, the draft
|
|
97
|
+
owners' own registered behavior checks (`acceptance.behavior`, default true) and the
|
|
98
|
+
render audit of the draft owners' own UI scenarios (`acceptance.audit`, default
|
|
99
|
+
true), each scenario in every declared brand and theme, with the non-text contrast
|
|
100
|
+
and overflow checks; any `a11y-axe`,
|
|
102
101
|
`a11y-non-text-contrast` or `layout-overflow` error rejects acceptance. Edits during checking and baseline conflicts
|
|
103
102
|
prevent application; failures retain the draft and return execution evidence.
|
|
104
103
|
Successful acceptance removes draft source, records an event and resolves draft
|
|
@@ -111,16 +110,17 @@ manifest and `.ads` source files. Generated mirrors, compilers and events
|
|
|
111
110
|
live under ignored `.ds/`. A draft can be committed and reviewed in a PR without
|
|
112
111
|
being imported into application source. Normal imports of marked draft source,
|
|
113
112
|
including aliases/symlinks, fail guards; use the isolated preview overlay instead.
|
|
114
|
-
Install the exported `
|
|
113
|
+
Install the exported `developmentImportGuard()` in application Vite/Rollup builds too.
|
|
115
114
|
|
|
116
115
|
Explorer keeps pending proposals in the ordinary catalogue, with Draft badges
|
|
117
116
|
on their owners, including new owners without an accepted version. Selecting an
|
|
118
|
-
entry with
|
|
117
|
+
entry with accepted and draft versions shows Split view in the preview toolbar to compare Accepted
|
|
119
118
|
and Draft in the right pane using separate opaque MCP Apps, the same scenario/theme
|
|
120
119
|
and matched available/phone viewport widths. New-only entries show their draft
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
without a comparison toggle. Entries without a draft also hide the toggle, and
|
|
121
|
+
the toolbar disappears when empty. Unchanged scenarios available as explicit overlay review
|
|
122
|
+
contexts do not acquire owner badges. The Drafts tab lists active proposals by
|
|
123
|
+
catalogue category; selecting one opens its draft. `ads_drafts` provides draft-only MCP listing. Project
|
|
124
124
|
code remains inside the existing sandbox; no additional iframe origin is allowed.
|
|
125
125
|
Draft resource reads are explicitly scoped through `ads://drafts/<id>/resource`.
|
|
126
126
|
`ads://project/drafts` supports resource subscriptions; tool outcomes and persisted
|
|
@@ -163,21 +163,19 @@ the acceptance gates.
|
|
|
163
163
|
Starting `ads mcp` automatically serves a loopback showcase. Its URL is printed
|
|
164
164
|
on stderr and returned by `ads_status.showcaseUrl`/`project.showcase.url`.
|
|
165
165
|
The agent keeps its stdio connection; the browser connects to `/mcp` on the same
|
|
166
|
-
runtime
|
|
167
|
-
|
|
166
|
+
runtime over HTTP. Both serve the same protocol versions and share the compiler
|
|
167
|
+
and artifacts. Stdout remains exclusively JSON-RPC.
|
|
168
168
|
|
|
169
|
-
Every registered preview uses `?scenario=<discovered-id>`, including
|
|
170
|
-
|
|
171
|
-
from the scenario's discovered `kind`, never from the ID's path prefix.
|
|
172
|
-
|
|
173
|
-
`scenario` parameter takes precedence when both are present. `ads_show_tokens`
|
|
174
|
-
keeps its `category` tool argument and returns the same canonical showcase link
|
|
175
|
-
as `ads_show_scenario` for that ID.
|
|
169
|
+
Every registered preview uses `?scenario=<discovered-id>`, including the token and brand
|
|
170
|
+
views ADS builds from project definitions. The client selects its section
|
|
171
|
+
from the scenario's discovered `kind`, never from the ID's path prefix. `ads_show_scenario({id})`
|
|
172
|
+
opens those views like any other and returns their canonical showcase link.
|
|
176
173
|
|
|
177
174
|
For browser-only work, run `ads showcase` inside the project. It starts the same
|
|
178
175
|
runtime without stdio. `--port 4185` selects a port; otherwise the OS chooses an
|
|
179
176
|
available one. For a stable address, add `"--port", "4191"` to the server's `args`
|
|
180
|
-
in `.mcp.json` (or the corresponding client configuration).
|
|
177
|
+
in `.mcp.json` (or the corresponding client configuration). `ads_status.showcaseUrl`
|
|
178
|
+
always reports the URL and port of the showcase the server is running. An occupied explicit
|
|
181
179
|
port fails startup; ADS does not silently switch ports or terminate another live
|
|
182
180
|
client. Reuse the connected server's showcase instead of launching another one.
|
|
183
181
|
`ads mcp --no-showcase` disables the website for headless clients.
|
|
@@ -192,7 +190,7 @@ status/diagnostics when needed, and the App slot. The Icons tab (shown when the
|
|
|
192
190
|
a glyph set) renders `ads://project/icons` natively: the glyph set, each glyph on its grid
|
|
193
191
|
at every icon size with aliases and glyph errors, and the logos in `assets/logos/`. Its MCP client does discovery,
|
|
194
192
|
tool calls, resource forwarding and notification handling. Token categories come
|
|
195
|
-
from `ads_tokens.categories` (
|
|
193
|
+
from `ads_tokens.categories` (the catalogue's groups); every scenario section also
|
|
196
194
|
comes from the same `ads_scenarios` registry.
|
|
197
195
|
It invokes the selected App tool and uses the official Apps bridge to render its
|
|
198
196
|
HTML in an opaque sandbox. Project UI is never imported into the shell.
|
|
@@ -205,7 +203,7 @@ the selected preview again. The retained view is identified as stale. Themes and
|
|
|
205
203
|
available space flow through host context. Other coding-agent hosts retain their own reload
|
|
206
204
|
policy. A disconnected subscription marks retained output stale and tears down
|
|
207
205
|
App watchers; refresh the page after restarting ADS. Compilation remains necessary for project TSX/Linaria, performed by the
|
|
208
|
-
managed
|
|
206
|
+
managed Bun compiler on demand and after relevant source changes.
|
|
209
207
|
|
|
210
208
|
Switching entries updates the scenario inside the existing App. A quiet monochrome
|
|
211
209
|
indicator in the upper-right header reports compilation, checking, readiness or
|
|
@@ -217,10 +215,10 @@ selection cannot clear navigation's loading state.
|
|
|
217
215
|
Token presentation comes from project-owned scenarios, fixtures and
|
|
218
216
|
development-only review helpers, using the project's real foundation CSS and extracted
|
|
219
217
|
styles. The App runtime contains no token sample templates or named token ordering.
|
|
220
|
-
|
|
218
|
+
`ads_tokens` inspects definitions without a scenario build.
|
|
221
219
|
|
|
222
220
|
There are no required browser-page files in the project. Colocated scenarios and
|
|
223
|
-
fixtures, optional development-only review helpers, and the project's
|
|
221
|
+
fixtures, optional development-only review helpers, and the project's framework
|
|
224
222
|
entry supply the presentation. Use the existing runtime URL when MCP is connected
|
|
225
223
|
instead of starting a second compiler for that project.
|
|
226
224
|
|
|
@@ -232,8 +230,9 @@ render token samples without entering the deployed application's graph.
|
|
|
232
230
|
|
|
233
231
|
## Connect Codex or Claude
|
|
234
232
|
|
|
235
|
-
Use the published package through `npx
|
|
236
|
-
|
|
233
|
+
Use the published package through `npx` (or `bunx` in a Bun project). ADS runs on
|
|
234
|
+
Bun 1.4.1+, which must be installed; no ADS checkout or global installation is
|
|
235
|
+
needed. Open your client in the project folder containing `ds.config.json`.
|
|
237
236
|
|
|
238
237
|
For **Codex**, add this to the project's `.codex/config.toml`:
|
|
239
238
|
|
|
@@ -297,18 +296,18 @@ scripts rebuild ADS source first.
|
|
|
297
296
|
Checked against the current [base specification, 2026-07-28](https://modelcontextprotocol.io/specification/2026-07-28),
|
|
298
297
|
the stable [Skills extension](https://github.com/modelcontextprotocol/ext-skills/blob/main/specification/stable/skills.mdx),
|
|
299
298
|
and [Apps revision 2026-01-26](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx).
|
|
300
|
-
Skills and Apps are optional negotiated extensions.
|
|
301
|
-
|
|
299
|
+
Skills and Apps are optional negotiated extensions. A client gets the
|
|
300
|
+
capabilities its negotiated protocol version defines.
|
|
302
301
|
|
|
303
302
|
| Content | Protocol surface |
|
|
304
303
|
|---------|------------------|
|
|
305
304
|
| Discovery, checks and preview selection | `tools/list`, `tools/call`; small structured results |
|
|
306
305
|
| Source, guides, tokens, build reports, manifests and compiled bytes | `resources/list`, `resources/read`; URI-addressed text or binary content |
|
|
307
|
-
| Packaged agent workflows and their complete file manifests | `skills/list`, `skills/get` on the Skills extension; ordinary resource/tool access on
|
|
306
|
+
| Packaged agent workflows and their complete file manifests | `skills/list`, `skills/get` on the Skills extension; ordinary resource/tool access on 2025-era connections |
|
|
308
307
|
| Skill folders and direct children | `resources/directory/read`, gated by `directoryRead: true`; directory MIME type `inode/directory` |
|
|
309
308
|
| Reusable user-selected workflow messages | `prompts/list`, `prompts/get` |
|
|
310
309
|
| Interactive previews | Tool `_meta.ui.resourceUri` points to a `ui://` HTML App resource; rendering uses the Apps lifecycle and resource bridge |
|
|
311
|
-
| Source/catalogue, build and resource changes | List-change and resource-update notifications;
|
|
310
|
+
| Source/catalogue, build and resource changes | List-change and resource-update notifications; `subscriptions/listen` for the 2026 protocol and resource subscriptions for the supported 2025 protocols |
|
|
312
311
|
|
|
313
312
|
Directory reads cover the packaged skill trees, including references and starter
|
|
314
313
|
assets. They are not an arbitrary project filesystem browser. File manifests
|
|
@@ -323,11 +322,6 @@ protocol. The diagnostic explorer defaults to compatible mode; select
|
|
|
323
322
|
|
|
324
323
|
## Tools and resources
|
|
325
324
|
|
|
326
|
-
For suspected ADS defects after targeted investigation, use `ads_report_bug`;
|
|
327
|
-
for missing capabilities, use `ads_request_feature`. They collect project-local
|
|
328
|
-
untriaged reports with compact context/evidence and no upstream posting. See
|
|
329
|
-
[bug reports and feature requests](#bug-reports-and-feature-requests).
|
|
330
|
-
|
|
331
325
|
### Inspect the design system
|
|
332
326
|
|
|
333
327
|
Call `ads_status` to identify the connected project and preview build state.
|
|
@@ -336,10 +330,13 @@ For example, find Button with
|
|
|
336
330
|
open one of its returned preview IDs with `ads_show_scenario`. Results link to
|
|
337
331
|
the owning source and guides; `ads_scenarios` lists available previews.
|
|
338
332
|
|
|
339
|
-
`ads_tokens` inspects definitions and values. `
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
333
|
+
`ads_tokens` inspects definitions and values. `ads_scenarios({kind: "tokens"})` lists the
|
|
334
|
+
token views ADS builds from the token sheets and `tokens/catalog.ads.json`, which open with
|
|
335
|
+
`ads_show_scenario`. `ads_scenarios` also lists the brand view (`kind: "brand"`, `brand/Assets`,
|
|
336
|
+
built from `assets/brand/`), which leads the showcase. For
|
|
337
|
+
design tools, `ads://project/tokens/dtcg` serves the same W3C Design Tokens JSON as the CLI's
|
|
338
|
+
`ads tokens --format dtcg` (`?theme=<name>&brand=<name>` select one context; `ads_tokens`
|
|
339
|
+
returns it as `dtcgUri`). If the client cannot render Apps, use the returned
|
|
343
340
|
showcase URL. Build reports identify current, stale and failed output; browser
|
|
344
341
|
review and project checks still verify behavior.
|
|
345
342
|
|
|
@@ -351,26 +348,18 @@ The server supplies agent guidance through its instructions, tool descriptions,
|
|
|
351
348
|
| `ads_status` | Project paths, watcher/build states, preview revisions and diagnostics, skills |
|
|
352
349
|
| `ads_catalog` | Bounded search for public UI, controllers and hooks, with source/guide URIs |
|
|
353
350
|
| `ads_tokens` | Bounded token-definition and theme inspection |
|
|
354
|
-
| `
|
|
355
|
-
| `
|
|
356
|
-
| `ads_read_skill` | Explicit text instruction/support-file reads in bounded chunks |
|
|
357
|
-
| `ads_show_tokens` | Render a discovered token scenario; legacy compilers retain the definition inspector |
|
|
351
|
+
| `ads_skills` | 2025-era connections only: workflow names/descriptions without loading instructions |
|
|
352
|
+
| `ads_read_skill` | 2025-era connections only: explicit text instruction/support-file reads in bounded chunks |
|
|
358
353
|
| `ads_scenarios` | Bounded scenario discovery, including folder-derived groups searchable with `query` |
|
|
359
354
|
| `ads_show_scenario` | Render an exact discovered scenario with its own fixtures |
|
|
360
355
|
| `ads_behaviors` | Paged owner discovery; select a unit and detail section |
|
|
361
|
-
| `
|
|
362
|
-
| `ads_validate` | Run the complete project audit, or affected checks since a successful full baseline |
|
|
356
|
+
| `ads_validate` | The project gate: `ads check`, project scripts, and every behavior test and render audit its scope (`all`, or `changed` since the last successful full run) reaches |
|
|
363
357
|
| `ads_results` | Page saved execution outcomes, diagnostics, logs and captures without rerunning |
|
|
364
358
|
| `ads_investigate` | Read one check's summary, then paged requests/errors/artifacts |
|
|
365
359
|
| `ads_capture` | On-demand PNG of a discovered scenario or named element; replace current and clear candidate |
|
|
366
360
|
| `ads_capture_clear` | Remove generated captures or discard only the candidate |
|
|
367
|
-
| `ads_show_<id>` | Optional explicitly configured grouped App |
|
|
368
361
|
| `ads_units` | Discover edit owners and the files belonging to one unit |
|
|
369
|
-
| `ads_prepare_patch` | Prepare a local draft of one owner, then generate its Git patch |
|
|
370
|
-
| `ads_prepare_token_samples` | Reconcile real-token fixture samples using explicit project bindings |
|
|
371
|
-
| `ads_apply_transaction` | Validate and apply coupled owner patches as one final candidate |
|
|
372
362
|
| `ads_read_file` | Read bounded source ranges, with owning unit and full-file digest |
|
|
373
|
-
| `ads_apply_patch` | Opt-in Git unified diff for one ADS unit, with dry-run validation |
|
|
374
363
|
|
|
375
364
|
Scenario results include `group` only when folder structure supplies one. It is
|
|
376
365
|
computed output, never scenario metadata. `ads_scenarios({query: "Forms"})` searches
|
|
@@ -386,14 +375,14 @@ public exports from `components/`, `patterns/` and `controllers/`; it does not e
|
|
|
386
375
|
guess component props. Read the exported API and owning guide. An export name
|
|
387
376
|
alone does not prove that a preview renders that particular element.
|
|
388
377
|
|
|
389
|
-
`ads://project/status`, `/build`, `/tokens`, `/icons`, `/catalog`, `/scenarios` and
|
|
378
|
+
`ads://project/status`, `/build`, `/tokens`, `/tokens/dtcg`, `/icons`, `/catalog`, `/scenarios` and
|
|
390
379
|
`/checks` carry project JSON detail. Behavior discovery, execution outcomes and investigation
|
|
391
380
|
details are paged; their resource reads use the same bounds as their tools. Allowed project documentation/source and skill files are separate
|
|
392
381
|
resources. No arbitrary filesystem reader is exposed. Prefer bounded tools for
|
|
393
382
|
large catalogues; explicit resource reads can enter model context and a client
|
|
394
383
|
may truncate large payloads.
|
|
395
384
|
|
|
396
|
-
`
|
|
385
|
+
`ads://project/checks` returns errors under `diagnostics` (they fail the
|
|
397
386
|
check) and review items under `advisories` with `severity: "review"` (they never block),
|
|
398
387
|
then informational limits with `severity: "info"`; `summary` counts errors and review
|
|
399
388
|
items. Every finding id has one class (error, review or info), and no configuration changes
|
|
@@ -423,7 +412,7 @@ ownership, valid initial values, browser checks and examples.
|
|
|
423
412
|
|
|
424
413
|
### Screenshots and candidate comparison
|
|
425
414
|
|
|
426
|
-
`ads_capture({scenario:"<discovered ID>",target?,theme?,brand?,viewport?})` renders current
|
|
415
|
+
`ads_capture({scenario:"<discovered ID>",target?,theme?,brand?,viewport?,guides?})` renders current
|
|
427
416
|
source in the real sandboxed App using project-local Playwright/browser. `theme` is a declared
|
|
428
417
|
theme name (default: the first). Previews receive the theme in host context: `theme` carries
|
|
429
418
|
the MCP Apps light/dark scheme and `adsTheme` the project theme name; hosts that send only
|
|
@@ -435,11 +424,18 @@ viewport; optional `captureTargets` metadata names an element within the scenari
|
|
|
435
424
|
Token/component/pattern/composition scenarios share this path. The tool adds no
|
|
436
425
|
project-specific renderer or fixture assumptions.
|
|
437
426
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
427
|
+
Optional `guides` selects any of `bounds`, `tracks` (columns/rows), `gaps`
|
|
428
|
+
(including gutters), `padding`, `margins`, and `mini` (mini-unit squares), for
|
|
429
|
+
example `guides:["tracks","padding","mini"]`. The existing showcase overlay
|
|
430
|
+
draws those layers on all visible elements; omitted or `[]` produces a clean
|
|
431
|
+
image. Components, patterns, compositions and `tokens/Layout` support guides.
|
|
432
|
+
The selection is stored in `settings.guides`, applies to both comparison images,
|
|
433
|
+
and does not create extra capture slots. Named targets keep their existing crop.
|
|
434
|
+
|
|
435
|
+
`ads_capture` with a draft `id` and exact `revision` captures current and candidate
|
|
436
|
+
under matching settings without acceptance checks; acceptance and its dry run take
|
|
437
|
+
no screenshots. A newly added scenario has a candidate with an explicit absent
|
|
438
|
+
current baseline.
|
|
443
439
|
|
|
444
440
|
`ads://project/captures` lists current/candidate slots, metadata and freshness.
|
|
445
441
|
Read returned `ads://captures/{key}/{slot}` resources as `image/png` binary content;
|
|
@@ -463,8 +459,8 @@ and runner schema. `ads_behaviors({ "unit": "components/MessageScroller" })`
|
|
|
463
459
|
pages an owner's checks by default; select `section: "subjects"`, `"guarantees"`,
|
|
464
460
|
`"demonstrations"` or `"profiles"` for other details. Without a unit it lists owner
|
|
465
461
|
summaries. Follow `nextCursor` with identical filters. Changed registrations or
|
|
466
|
-
evidence revisions invalidate discovery cursors. `
|
|
467
|
-
runs those registered cases. The names here are examples, never built-in cases.
|
|
462
|
+
evidence revisions invalidate discovery cursors. `ads verify . --unit components/MessageScroller --check prepend-anchor`
|
|
463
|
+
runs those registered cases from the CLI; over MCP the gates run them. The names here are examples, never built-in cases.
|
|
468
464
|
|
|
469
465
|
`covers` describes rendered UI; optional `exercises` describes public behavioral
|
|
470
466
|
APIs used through reachable scenario code. Neither metadata nor README prose is
|
|
@@ -475,9 +471,9 @@ Missing/skipped cases, unavailable runners and changed inputs cannot pass.
|
|
|
475
471
|
Results and subscribed resource notifications are available through
|
|
476
472
|
`ads://project/behaviors`; explicitly re-read evidence when notifications are absent.
|
|
477
473
|
|
|
478
|
-
During
|
|
479
|
-
checks, timings and the profile's whole-run
|
|
480
|
-
`ads_status.mutations.progress`. Requested MCP progress notifications also report
|
|
474
|
+
During an `ads_validate` run, `ads_status.validation.progress` (stage `behavior`)
|
|
475
|
+
exposes completed/active/pending checks, timings and the profile's whole-run
|
|
476
|
+
timeout. Draft acceptance uses `ads_status.mutations.progress`. Requested MCP progress notifications also report
|
|
481
477
|
runner activity. Profiles accept an explicit `timeoutMs` from 100 to 900000 ms
|
|
482
478
|
(up to fifteen minutes), with a 60000 ms default. This covers the complete
|
|
483
479
|
selected suite; each runner's individual test/hook timeouts are separate.
|
|
@@ -542,9 +538,9 @@ the selected candidate's sources. StrictMode profiles need a project React
|
|
|
542
538
|
development harness. Profiles describe the execution environment, not a proof
|
|
543
539
|
that every possible interaction or lifecycle has been tested.
|
|
544
540
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
writing real source. Projects without contracts retain their existing checks.
|
|
541
|
+
Unless `acceptance.behavior` is false, guarded mutations also run the draft owners'
|
|
542
|
+
own registered behavior checks; `ads_validate` runs the contracts that depend on a
|
|
543
|
+
changed shared controller. Failures reject the candidate before writing real source. Projects without contracts retain their existing checks.
|
|
548
544
|
|
|
549
545
|
## Guarded editing
|
|
550
546
|
|
|
@@ -554,10 +550,12 @@ Enable editing in the MCP launch arguments and reconnect:
|
|
|
554
550
|
npx -y @reqvire-org/ads mcp --mutations
|
|
555
551
|
```
|
|
556
552
|
|
|
557
|
-
`ads_status.mutations` reports the mode, checks, limits and latest
|
|
558
|
-
is disabled by default.
|
|
559
|
-
|
|
560
|
-
|
|
553
|
+
`ads_status.mutations` reports the mode (`route: "draft"`), checks, limits and latest
|
|
554
|
+
result. Editing is disabled by default. Every change goes through a draft of one or
|
|
555
|
+
more owners: `ads_create_draft`, edits through its files or `ads_update_draft`
|
|
556
|
+
(contents, or a Git unified diff as `patch`/`patchFile`), `ads_show_draft`, then
|
|
557
|
+
`ads_accept`. An owner is in at most one open draft; genuinely coupled owners share
|
|
558
|
+
one draft.
|
|
561
559
|
|
|
562
560
|
Find the owner with `ads_units({ "query": "Button" })`, then request its file
|
|
563
561
|
manifest with `ads_units({ "unit": "components/core/Button" })`. IDs derive from
|
|
@@ -565,36 +563,35 @@ the flat/directory colocation convention. A component or pattern unit includes
|
|
|
565
563
|
its implementation and colocated scenarios, fixtures, tests and guides. A
|
|
566
564
|
composition owns its scenario and mock inputs. Imported components and patterns
|
|
567
565
|
remain separate owners. `tokens` is one foundation unit covering token definitions,
|
|
568
|
-
themes and
|
|
566
|
+
themes and `catalog.ads.json`, whose coverage spans shared source files.
|
|
569
567
|
Preview IDs remain separate: several token previews belong to `tokens`.
|
|
570
568
|
Design tokens and token previews belong to the shared Data foundation. Component
|
|
571
569
|
contracts do not register token namespaces or independent value sheets. Read
|
|
572
570
|
`ads://guides/tokens` for state mappings, color roles, the grid, contrast/rhythm/overlap
|
|
573
571
|
reviews and the token export; `ads://guides/branding` for brand artwork, web icons,
|
|
574
|
-
committed targets
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
`configuration` unit.
|
|
572
|
+
committed targets, glyph sets and `@ads-lockup`/`lockup-construction` fixes;
|
|
573
|
+
`ads://guides/accessibility` for the WCAG 2.2 AA
|
|
574
|
+
guards (`token-contrast`, `component-contrast`, `a11y-*`) and the practice no tool can check;
|
|
575
|
+
`ads://guides/layout` for `@ads-layout` constructions, regions, panels and the
|
|
576
|
+
`grid-construction`/`grid-definition` fixes.
|
|
577
|
+
|
|
578
|
+
No owner edits a shared entry. The styles entry is generated from the canonical
|
|
579
|
+
token sheets in foundation order: adding `tokens/fonts.css` adds its import, and
|
|
580
|
+
removing the sheet removes it. The public barrel and review entry are generated
|
|
581
|
+
from the owners' `<Owner>.ads.exports.ts` files. A draft that edits a generated entry
|
|
582
|
+
is refused.
|
|
583
|
+
|
|
584
|
+
An owner declares its own style permissions in its contract: `styles.writes`
|
|
585
|
+
(properties a file writes at runtime), `styles.inline` (files with inline geometry
|
|
586
|
+
styles) and, for a component, `customization` (non-state `--ds-*` variables others may
|
|
587
|
+
set). A JSX-to-imperative geometry change edits the source and the contract together
|
|
588
|
+
in the owner's draft. Unused inline permissions and properties never written fail
|
|
589
|
+
`stale-style-boundary` on the contract, so a permission cannot be declared before its
|
|
590
|
+
implementation. `ds.config.json` holds no per-owner entries; general policy and
|
|
591
|
+
compiler changes use the `configuration` unit.
|
|
595
592
|
|
|
596
593
|
A directory owner's runtime entry (`index` or a source file matching its directory
|
|
597
|
-
name)
|
|
594
|
+
name) keeps ownership stable without its `<Dir>.ads.scenario.tsx`.
|
|
598
595
|
A redundant standalone scenario can be removed when other registered scenarios
|
|
599
596
|
still declare and actually render its public exports. Coverage requirements remain
|
|
600
597
|
in force; there is no metadata waiver for uncovered UI.
|
|
@@ -605,7 +602,7 @@ The same discovery covers the rest of the project ADS:
|
|
|
605
602
|
|
|
606
603
|
| Unit | Scope |
|
|
607
604
|
|------|-------|
|
|
608
|
-
| `review/<Owner>` | Development-only frames,
|
|
605
|
+
| `review/<Owner>` | Development-only frames, demo controls, local checks and their review exports file |
|
|
609
606
|
| `foundation` | Shared ADS entry styles and root helpers |
|
|
610
607
|
| `documentation` | ADS/project guides, shared credits and license notices, and `licenses/` text collections |
|
|
611
608
|
| `assets/brand`, `assets/fonts`, other `assets/*` groups | Original SVG, image, font and other asset files |
|
|
@@ -632,131 +629,95 @@ Unregistered application code and installed dependencies retain their own owners
|
|
|
632
629
|
Read relevant source with `ads_read_file({ "path": "design-system/components/core/Button.tsx" })`.
|
|
633
630
|
Reads are bounded to 12,000 UTF-16 characters. `offset`, `nextOffset`, `startLine`
|
|
634
631
|
and `totalChars` support focused follow-up reads. The digest describes the whole
|
|
635
|
-
file
|
|
636
|
-
digest to apply a patch.
|
|
637
|
-
|
|
638
|
-
```json
|
|
639
|
-
{
|
|
640
|
-
"unit": "components/core/Button",
|
|
641
|
-
"dryRun": true,
|
|
642
|
-
"patch": "<Git unified diff for this unit>"
|
|
643
|
-
}
|
|
644
|
-
```
|
|
645
|
-
|
|
646
|
-
Send this to `ads_apply_patch`. Use ordinary `diff --git`, `--- a/path`,
|
|
647
|
-
`+++ b/path` and `@@ -old,count +new,count @@` text hunks with project-relative
|
|
648
|
-
paths. Context and removed lines must match the current source at the stated
|
|
649
|
-
positions; ADS uses no fuzzy matching. `/dev/null` identifies a created or deleted
|
|
650
|
-
file. New files naturally contain their added lines. Original binary images,
|
|
651
|
-
fonts and other assets use `git diff --binary --full-index`; Git 2.29 or newer must be installed
|
|
652
|
-
to validate/apply those blocks. Rename metadata and permission changes are
|
|
653
|
-
unsupported; owned deletion/creation can move a file within its unit.
|
|
632
|
+
file; the agent does not need to read or send the whole file.
|
|
654
633
|
|
|
655
|
-
|
|
656
|
-
`.ds/patches/`, then send a reference instead of its bytes:
|
|
634
|
+
Create the owner's draft, edit it, review it and accept it:
|
|
657
635
|
|
|
658
636
|
```json
|
|
659
|
-
{
|
|
660
|
-
"unit": "assets/fonts",
|
|
661
|
-
"dryRun": false,
|
|
662
|
-
"patchFile": ".ds/patches/font.patch"
|
|
663
|
-
}
|
|
637
|
+
{ "units": ["components/core/Button"] }
|
|
664
638
|
```
|
|
665
639
|
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
byte count without encoded content. Git verifies the original binary blob and
|
|
669
|
-
reconstructs the result inside the validation copy.
|
|
670
|
-
|
|
671
|
-
For local editing without a second Git mirror, call
|
|
672
|
-
`ads_prepare_patch({unit, action:"create"})`. It returns a draft ID and a local
|
|
673
|
-
directory containing only the owner and declared companions. Edit that directory
|
|
674
|
-
using the client's local file tools, then call
|
|
675
|
-
`ads_prepare_patch({unit, action:"diff", draft})`. It checks source/baseline
|
|
676
|
-
freshness and owner paths and returns a `patchFile`; it changes no live source.
|
|
677
|
-
Pass that `patchFile` to `ads_apply_patch` with `dryRun:true` to validate before
|
|
678
|
-
applying. This runs the normal candidate gates, including affected registered
|
|
679
|
-
behavior checks against an isolated candidate and its configured browser preview
|
|
680
|
-
and, unless `acceptance.browserAudit` is false, the candidate accessibility audit.
|
|
681
|
-
It writes no live source and does not persist passing evidence for live inputs.
|
|
682
|
-
Read the summary, then use its `resultId` with `ads_results` for failing
|
|
683
|
-
`outcomes`, `diagnostics` or named pipeline `checks`; update the draft, diff again
|
|
684
|
-
and repeat as needed. Apply with `dryRun:false` after validation;
|
|
685
|
-
the gates run again. `ads_verify({unit,checks?})` checks current source and accepts
|
|
686
|
-
no draft argument; a selected-check draft runner is not currently exposed.
|
|
687
|
-
Use `action:"discard"` to remove the draft. Remote clients can continue sending
|
|
688
|
-
inline Git diffs. Drafts are local conveniences, not an alternative mutation API.
|
|
689
|
-
|
|
690
|
-
`ads_prepare_token_samples({id, bindings?})` reconciles the selected token
|
|
691
|
-
scenario's consumed literal sample array. Existing bindings and other fixture
|
|
692
|
-
fields are preserved; undeclared samples are removed. New bindings explicitly
|
|
693
|
-
name a real `token`, CSS `property` and `probe`. Missing mappings are reported as
|
|
694
|
-
`unresolved`; ADS never guesses a property or renderer from the token name.
|
|
695
|
-
The result is an owner patch file for guarded application. This preparation does
|
|
696
|
-
not establish rendered effects or waive token coverage.
|
|
697
|
-
|
|
698
|
-
For a coupled rename or upgrade, call `ads_apply_transaction`:
|
|
640
|
+
`ads_create_draft` returns the draft `id`, `revision` and its folder; edit the `.ads`
|
|
641
|
+
files there with local tools, or send the change through `ads_update_draft`:
|
|
699
642
|
|
|
700
643
|
```json
|
|
701
644
|
{
|
|
702
|
-
"
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
],
|
|
706
|
-
"dryRun": true
|
|
645
|
+
"id": "<draft id>",
|
|
646
|
+
"revision": "<current revision>",
|
|
647
|
+
"patch": "<Git unified diff>"
|
|
707
648
|
}
|
|
708
649
|
```
|
|
709
650
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
651
|
+
Use ordinary `diff --git`, `--- a/path`, `+++ b/path` and `@@ -old,count +new,count @@`
|
|
652
|
+
text hunks with project-relative paths. Context and removed lines must match the
|
|
653
|
+
draft's current proposal at the stated positions; ADS uses no fuzzy matching.
|
|
654
|
+
`/dev/null` identifies a created or deleted file, and a new path joins its declared
|
|
655
|
+
owner. Rename metadata and permission changes are unsupported; owned
|
|
656
|
+
deletion/creation can move a file within its unit. For a large diff, write it to a
|
|
657
|
+
regular file in `.ds/patches/` and pass `patchFile` instead of `patch`. Binary
|
|
658
|
+
images, fonts and other assets go through `changes` with `encoding:"base64"`; binary
|
|
659
|
+
`ads_read_file` results return the digest and byte count without encoded content.
|
|
660
|
+
|
|
661
|
+
Review the draft with `ads_show_draft`, then check it with
|
|
662
|
+
`ads_accept({id, revision, dryRun:true})`. This runs the normal candidate gates,
|
|
663
|
+
including affected registered behavior checks and the acceptance accessibility audit,
|
|
664
|
+
in the draft's workspace through ADS's managed compiler; it writes no live source and
|
|
665
|
+
does not persist passing evidence for live inputs. Read the summary, then use its
|
|
666
|
+
`resultId` with `ads_results` for failing `outcomes`, `diagnostics` or named pipeline
|
|
667
|
+
`checks`; update the draft and repeat. Accept with `ads_accept({id, revision})`; the
|
|
668
|
+
gates run again, reusing the dry run's results for the same revision.
|
|
669
|
+
|
|
670
|
+
Token sample bindings are ordinary data in `tokens/catalog.ads.json`: change them in a
|
|
671
|
+
`tokens` draft with explicit `token`, CSS `property` and `probe` entries. ADS never guesses
|
|
672
|
+
a property from the token name, and reports entries for undefined tokens
|
|
673
|
+
(`foundation-catalog`).
|
|
674
|
+
|
|
675
|
+
For a coupled rename or upgrade, create one draft for all its owners (2–64 owners, at
|
|
676
|
+
most 256 distinct files) and accept it once. Core checks, configured project
|
|
677
|
+
commands, all affected behavior checks and the accessibility audit run against the
|
|
678
|
+
final candidate. Dry runs, failures, conflicts and cancellation write no source; a
|
|
679
|
+
publication failure rolls back prior writes. This coordinates owned source changes,
|
|
680
|
+
not dependency installation or arbitrary application files. Install changed
|
|
681
|
+
dependencies before verification; candidates use the project's installed
|
|
682
|
+
`node_modules`.
|
|
721
683
|
|
|
722
684
|
Resolve ownership diagnostics by preserving the required capability in its proper
|
|
723
685
|
layer. Demo-only sizing, borders and framing belong in a development-only review
|
|
724
686
|
helper; a component API addition needs a runtime use case. Measured imperative
|
|
725
|
-
geometry uses exact `
|
|
726
|
-
|
|
727
|
-
After the gates pass, verify the behavior in a
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
project's acceptance policy selects additional scripts and registered tests:
|
|
687
|
+
geometry uses exact `styles.writes` properties in the owner's contract. After
|
|
688
|
+
moving JSX inline geometry to imperative writes, update the contract in the same
|
|
689
|
+
draft and check the final state. After the gates pass, verify the behavior in a
|
|
690
|
+
browser.
|
|
691
|
+
|
|
692
|
+
A small change needs only its hunk. A complete new component's draft includes its
|
|
693
|
+
implementation, its `<Owner>.ads.exports.ts`, scenario and fixture, so coverage is
|
|
694
|
+
checked against a complete candidate; the barrel is regenerated from the exports
|
|
695
|
+
file. New units use a new `components/`, `patterns/`, `controllers/`, `review/` or
|
|
696
|
+
`composition/` owner ID following the same colocation convention. A draft cannot
|
|
697
|
+
include a peer unit or capture existing peers beneath a new directory owner, and a
|
|
698
|
+
failed acceptance requires correcting its owner or configuration, never a direct-write
|
|
699
|
+
bypass.
|
|
700
|
+
|
|
701
|
+
Acceptance reconstructs complete candidate files and validates a temporary project
|
|
702
|
+
copy with `ads check`. The project's `acceptance` settings select its scripts and
|
|
703
|
+
whether the owners' behavior tests and render audit run; `ads validate` adds
|
|
704
|
+
`validation.scripts`:
|
|
744
705
|
|
|
745
706
|
```json
|
|
746
707
|
{
|
|
747
|
-
"acceptance": { "
|
|
748
|
-
"validation": { "
|
|
708
|
+
"acceptance": { "scripts": ["typecheck"], "behavior": true, "audit": true },
|
|
709
|
+
"validation": { "scripts": ["test", "build:app"], "inputs": [] },
|
|
749
710
|
"mcp": { "mutationCheckTimeoutMs": 120000 }
|
|
750
711
|
}
|
|
751
712
|
```
|
|
752
713
|
|
|
753
|
-
Both script lists default to empty; script names are never inferred
|
|
754
|
-
|
|
714
|
+
Both script lists default to empty; script names are never inferred, and each
|
|
715
|
+
script is listed once. `acceptance.behavior` and `acceptance.audit` default to true.
|
|
716
|
+
An unknown field is a configuration error naming it.
|
|
755
717
|
Managed previews are built for required behavior checks or requested captures,
|
|
756
718
|
sharing one production graph. Core-only acceptance does not build the whole
|
|
757
719
|
preview graph. Keep standalone preview builds in normal project builds; avoid
|
|
758
|
-
selecting the same build twice.
|
|
759
|
-
`acceptance.checks` and choose `acceptance.behaviorChecks` explicitly.
|
|
720
|
+
selecting the same build twice.
|
|
760
721
|
|
|
761
722
|
Every listed script must exist. An empty list still runs mandatory ADS guards; registered tests run only when the policy enables them. Scripts use the project's npm/Bun runner; installed dependencies are
|
|
762
723
|
shared with the validation copy. These are trusted project commands, not an OS
|
|
@@ -804,15 +765,14 @@ runtime Linaria provenance; `exercises` alone grants no class permission. The
|
|
|
804
765
|
[local scenario reference](../skills/ads-designer/references/scenarios.md) describe
|
|
805
766
|
the bounded checks and diagnostics.
|
|
806
767
|
`ads_show_scenario({id})` selects an independently mountable entry with its own
|
|
807
|
-
fixtures.
|
|
808
|
-
omitting category selects the first token entry. The tool contains no project
|
|
768
|
+
fixtures, or a token or brand view. The tool contains no project
|
|
809
769
|
token templates or copied values.
|
|
810
770
|
|
|
811
771
|
Both tools default to `waitFor: "verified"`. The showcase requests
|
|
812
772
|
`waitFor: "compiled"` to browse live feedback or the last verified graph while
|
|
813
773
|
checks run. That mode can return `build.current: false`; it is visual feedback,
|
|
814
774
|
not successful verification evidence. It does not alter capture, behavior or
|
|
815
|
-
guarded-edit acceptance.
|
|
775
|
+
guarded-edit acceptance.
|
|
816
776
|
Registered browser verification URLs and `openPreviewScenario` explicitly select
|
|
817
777
|
`waitFor=verified`; captures also retain verified readiness.
|
|
818
778
|
|
|
@@ -837,7 +797,7 @@ the tool result. `resources/read` supplies these registered resources:
|
|
|
837
797
|
| URI | Content and owner |
|
|
838
798
|
|-----|-------------------|
|
|
839
799
|
| `ui://ads/preview` | Tool-owned App bootstrap, official App SDK and resource loader |
|
|
840
|
-
| `ads://preview/manifest` |
|
|
800
|
+
| `ads://preview/manifest` | ADS preview compiler's versioned scenario/dependency graph |
|
|
841
801
|
| `ads://preview/live` | Current-source compiled feedback while checks are pending; explicitly unverified |
|
|
842
802
|
| `ads://assets/<hash>.js` | Compiled shared runtime or scenario module |
|
|
843
803
|
| `ads://assets/<hash>.css` | Extracted foundation or scenario styles |
|
|
@@ -857,11 +817,11 @@ CSS/fonts, then invokes the selected module's `mount(container)`. It caches
|
|
|
857
817
|
unchanged resources and shared runtime modules within that App. Dynamic imports
|
|
858
818
|
load their own dependency closure when invoked. Bun's self-contained worker
|
|
859
819
|
output remains a separate asset; workers must be stopped by their owner.
|
|
860
|
-
|
|
861
|
-
worker fetches in opaque origins, so the resource compiler adapts those
|
|
820
|
+
Preview workers are compiled as self-contained classic scripts: Chrome rejects
|
|
821
|
+
module Blob worker fetches in opaque origins, so the resource compiler adapts those
|
|
862
822
|
self-contained preview constructors to classic workers. Production worker mode
|
|
863
|
-
is untouched.
|
|
864
|
-
|
|
823
|
+
is untouched. The managed compiler rejects worker output with unresolved module
|
|
824
|
+
imports; previews require self-contained worker output.
|
|
865
825
|
|
|
866
826
|
The built-in showcase keeps this App alive across selections. It unmounts the
|
|
867
827
|
previous scenario before mounting the next; scenario state resets while runtime
|
|
@@ -869,8 +829,8 @@ and unchanged styles/fonts are reused. External hosts may create a fresh App for
|
|
|
869
829
|
each tool call. Each fresh App loads independently through the same contract.
|
|
870
830
|
There is no special local direct-artifact rendering path.
|
|
871
831
|
|
|
872
|
-
`
|
|
873
|
-
`advisories
|
|
832
|
+
`ads://project/checks` returns blocking `diagnostics` separately from nonblocking
|
|
833
|
+
`advisories`.
|
|
874
834
|
For example, `pointer-capture-review` reports capture without a locally visible
|
|
875
835
|
capture-loss handler. Cleanup can be delegated; inspect it and test cancellation,
|
|
876
836
|
capture loss and teardown. A local handler suppresses that advisory but does not
|
|
@@ -895,8 +855,7 @@ for verification and diagnosis.
|
|
|
895
855
|
For inline documents without an explicit App base URL, ADS supplies
|
|
896
856
|
`<base href="about:srcdoc">` and permits the local `about:` base scheme in CSP.
|
|
897
857
|
Bare and named fragment links retain native in-document navigation and state.
|
|
898
|
-
Explicit App bases remain subject to declared CSP origins.
|
|
899
|
-
widget uses the same document preparation. External hosts own this behavior in
|
|
858
|
+
Explicit App bases remain subject to declared CSP origins. External hosts own this behavior in
|
|
900
859
|
their loaders; adding scenario click handlers would conceal a host defect.
|
|
901
860
|
|
|
902
861
|
Hosts need Apps support, server resource forwarding, native ESM/import maps and
|
|
@@ -919,16 +878,15 @@ area. Other Apps hosts retain the in-App status fallback.
|
|
|
919
878
|
### ADS-owned Bun compiler
|
|
920
879
|
|
|
921
880
|
Bun 1.4.1+ compiles ADS browser bundles and MCP previews independently of the
|
|
922
|
-
application's bundler. Configure `framework
|
|
923
|
-
|
|
881
|
+
application's bundler. Configure `framework`; ADS supplies its compiler and
|
|
882
|
+
publishes the graph to `.ds/preview/`:
|
|
924
883
|
|
|
925
884
|
```json
|
|
926
|
-
{"framework":"react"
|
|
885
|
+
{"framework":"react"}
|
|
927
886
|
```
|
|
928
887
|
|
|
929
|
-
Use `preact` for native Preact.
|
|
930
|
-
|
|
931
|
-
`showcase/mcp/main.tsx` under the ADS root. It exports
|
|
888
|
+
Use `preact` for native Preact. The project retains its framework mount in
|
|
889
|
+
`showcase/mcp/main.ads.mount.tsx` under the ADS root. It exports
|
|
932
890
|
`mountScenario(Scenario,container)` and returns cleanup. Bun selects the ADS JSX
|
|
933
891
|
runtime, resolves the public alias and extracts Linaria through the shared tag
|
|
934
892
|
resolver. Project application build settings stay under project control.
|
|
@@ -937,8 +895,8 @@ Run `ads compile .` for production previews or `ads compile . --watch` for a
|
|
|
937
895
|
continuous compiler. Project setup can call `compilePreviews` from
|
|
938
896
|
`@reqvire-org/ads/scenarios/compile`. Projects can integrate `ads check`,
|
|
939
897
|
`ads verify` and `ads validate` into their own build/test/CI scripts. ADS acceptance
|
|
940
|
-
always runs native gates; `acceptance.
|
|
941
|
-
choose additional scripts and
|
|
898
|
+
always runs native gates; `acceptance.scripts`, `acceptance.behavior` and
|
|
899
|
+
`acceptance.audit` choose additional scripts and whether the owners' tests and audit run. Oxlint is not an ADS gate dependency.
|
|
942
900
|
|
|
943
901
|
MCP warms the prioritized view first, then compiles the remaining graph in
|
|
944
902
|
one background build, without delaying service startup. One compiler job runs
|
|
@@ -967,7 +925,7 @@ reuses successful validation/output only when inputs, compiler/tool code,
|
|
|
967
925
|
lockfile, recorded dependencies and content digests match. A source edit
|
|
968
926
|
revalidates the project and incrementally updates the watched module graph. Both
|
|
969
927
|
must succeed against unchanged source before verified atomic publication; a failed or
|
|
970
|
-
superseded build cannot become current. Files outside
|
|
928
|
+
superseded build cannot become current. Files outside Bun's module graph still trigger
|
|
971
929
|
validation and a reconciled build. Preview refresh retains the selected view's
|
|
972
930
|
state when its complete static module/style/asset closure is unchanged, while
|
|
973
931
|
rerunning its token/paint audits against the new manifest. Actual selected-view
|
|
@@ -981,7 +939,9 @@ selected view paints, using its existing integrity-checked byte cache. This does
|
|
|
981
939
|
not import modules, attach styles or mount hidden examples; dynamic imports stay
|
|
982
940
|
lazy. Preparation is bounded and never establishes passing evidence by itself.
|
|
983
941
|
|
|
984
|
-
|
|
942
|
+
Graph assets live in the manifest's sibling `assets/` directory. Standalone
|
|
943
|
+
compilation writes `.ds/preview/manifest.json`; managed builders use private
|
|
944
|
+
directories under `.ds/preview/sessions/`. Tiny
|
|
985
945
|
`.ds/scenarios/<id>/index.html` descriptors retain the reporter/registry contract;
|
|
986
946
|
they are not standalone runnable previews. Six previous graph revisions retain
|
|
987
947
|
old assets for in-flight reads; older references expire with a refresh error.
|
|
@@ -990,37 +950,15 @@ built-in host then recreates the App automatically; external hosts receive an
|
|
|
990
950
|
explicit reopen diagnostic. Manifest size is capped at 2 MiB and individual resources
|
|
991
951
|
at 16 MiB; those development transport limits do not alter production bundles.
|
|
992
952
|
|
|
993
|
-
### Existing HTML compilers
|
|
994
|
-
|
|
995
|
-
Missing/null `mcp.previewManifest` retains the older per-scenario self-contained
|
|
996
|
-
HTML contract, `ui://ads/scenario`, and generic `ui://ads/tokens` definition
|
|
997
|
-
inspector. `inlineScenarioHtml()` and the scheduler's `build(entry,...)` adapter
|
|
998
|
-
remain available during migration. The older nested widget requires its declared
|
|
999
|
-
`about:` frame CSP; it does not share runtime modules across scenarios.
|
|
1000
|
-
Do not set `previewManifest` until the compiler emits the graph and mount adapter.
|
|
1001
|
-
|
|
1002
|
-
Explicit `mcp.apps` entries still accept unique lowercase/hyphen IDs, title, kind
|
|
1003
|
-
(`components`, `patterns`, `showcase`) and a project-relative self-contained HTML
|
|
1004
|
-
file. They remain capped at 2 MiB and do not replace scenario coverage.
|
|
1005
|
-
The generic token definition inspector remains available as a resource for source
|
|
1006
|
-
and alias diagnostics; `ads_tokens` works even when project previews cannot build.
|
|
1007
|
-
|
|
1008
953
|
### One client command, managed preview builds
|
|
1009
954
|
|
|
1010
|
-
With a declared framework
|
|
955
|
+
With a declared framework, `ads mcp` starts ADS's Bun
|
|
1011
956
|
compiler and warms the prioritized view followed by the remaining graph in
|
|
1012
957
|
the background. Jobs run sequentially; foreground selections have priority. The client configuration above stays the same; no second terminal
|
|
1013
|
-
or separately managed server is needed.
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
An agent or human edits code and runs `ads compile .` or an external watch/builder
|
|
1018
|
-
that publishes the ADS resource graph and build evidence. MCP serves that output
|
|
1019
|
-
without starting a compiler. Existing views can remain visible while building;
|
|
1020
|
-
source changes make their evidence stale until a verified update is published.
|
|
1021
|
-
Missing or null uses the native compiler when the framework and preview manifest
|
|
1022
|
-
are configured. This compiler choice does not force direct editors to use MCP
|
|
1023
|
-
mutation tools.
|
|
958
|
+
or separately managed server is needed. The same compiler also builds every draft
|
|
959
|
+
preview after the project's selected view. Existing views can remain visible while
|
|
960
|
+
building; source changes make their evidence stale until a verified update is
|
|
961
|
+
published.
|
|
1024
962
|
Standard output trees (`dist`, `build`, `target`, `out`, `.next`, `.nuxt`,
|
|
1025
963
|
`.svelte-kit`, `.turbo`) are excluded from preview watches and freshness inputs
|
|
1026
964
|
outside the configured source roots. Nested outputs are pruned before OS watches
|
|
@@ -1046,28 +984,21 @@ without JavaScript eval; external MCP hosts own their own CSP capabilities.
|
|
|
1046
984
|
Keep renderer/transport adapters and their dependency notices explicit. A working
|
|
1047
985
|
website or build alone does not establish that a binary renderer works in an App.
|
|
1048
986
|
|
|
1049
|
-
The configured command runs in the project root. `command` names an executable;
|
|
1050
|
-
`args` is a literal argument array, with no shell parsing. Local
|
|
1051
|
-
`node_modules/.bin` and the running interpreter's directory are added to its PATH.
|
|
1052
|
-
Use `runtime` with a project script to inherit Node or Bun; Windows `.cmd`
|
|
1053
|
-
wrappers require their own launcher and are not shell-executed by ADS.
|
|
1054
|
-
|
|
1055
987
|
Both build output streams go to stderr, keeping stdout exclusively for MCP.
|
|
1056
988
|
Opening an App waits up to 30 seconds for validated current output. A matching
|
|
1057
989
|
success cache is republished in the new watcher session without recompilation;
|
|
1058
990
|
merely finding an older HTML file is insufficient. Managed resource graphs and
|
|
1059
|
-
HTML descriptors use private session output; standalone
|
|
1060
|
-
|
|
991
|
+
HTML descriptors use private session output; standalone builds publish under
|
|
992
|
+
`.ds/preview/`. One cannot overwrite the other's success record. The
|
|
1061
993
|
compiler caches at most six verified graph snapshots under `.ds/preview-graphs/`
|
|
1062
994
|
and cleans its session output on ordinary shutdown. These are generated files;
|
|
1063
|
-
do not track or use them as source.
|
|
1064
|
-
their existing publication contract. A timeout leaves the watcher running: inspect the
|
|
995
|
+
do not track or use them as source. A timeout leaves the watcher running: inspect the
|
|
1065
996
|
logs and invoke the preview again. `ads_status` distinguishes watcher process
|
|
1066
997
|
state from reported build state. Token inspection and other ordinary tools
|
|
1067
998
|
remain available after a build failure. Invalid scenario metadata at startup and
|
|
1068
999
|
later source/validation failures remain reported while the compiler watches for
|
|
1069
1000
|
repairs. A successful edit recovers without reconnecting MCP. If the child process
|
|
1070
|
-
exits, fix the
|
|
1001
|
+
exits, fix the reported failure and invoke the preview again: concurrent requests share one
|
|
1071
1002
|
fresh child and session. ADS does not run an unattended crash/restart loop.
|
|
1072
1003
|
|
|
1073
1004
|
Changes to loaded compiler code or dependencies produce `ADS_PREVIEW_RESTART`;
|
|
@@ -1082,13 +1013,8 @@ receives SIGINT/SIGTERM. Active browser subscriptions do not retain the runtime.
|
|
|
1082
1013
|
A small independent ownership guard watches a pipe from MCP; owner death closes
|
|
1083
1014
|
that pipe even after SIGKILL. The guard terminates the owned compiler process
|
|
1084
1015
|
group, escalates for stubborn descendants, then exits. It is disarmed on ordinary
|
|
1085
|
-
shutdown; `
|
|
1086
|
-
second user command
|
|
1087
|
-
The project must keep its watcher in the foreground,
|
|
1088
|
-
rather than launching detached background processes. The configuration is
|
|
1089
|
-
trusted project setup; MCP tools accept no executable or command arguments.
|
|
1090
|
-
For resource previews, missing or null `previewWatch` selects the native compiler.
|
|
1091
|
-
Custom standalone HTML integrations must declare their own publication contract.
|
|
1016
|
+
shutdown; `ads_status.compiler.guardPid` identifies it while running. This requires
|
|
1017
|
+
no second user command. MCP tools accept no executable or command arguments.
|
|
1092
1018
|
|
|
1093
1019
|
### When a component changes
|
|
1094
1020
|
|
|
@@ -1101,38 +1027,29 @@ The MCP server detects the new artifact and sends resource-change notifications.
|
|
|
1101
1027
|
The built-in host forwards the current selection after a successful build;
|
|
1102
1028
|
the App reads the new manifest and remounts the scenario. Invoking the preview
|
|
1103
1029
|
tool again also works in compatible external hosts. The App checks freshness
|
|
1104
|
-
every two seconds when notifications are unavailable.
|
|
1105
|
-
retain their own reload behavior.
|
|
1030
|
+
every two seconds when notifications are unavailable.
|
|
1106
1031
|
No ADS package release or skill reinstall is needed for project component changes.
|
|
1107
1032
|
|
|
1108
1033
|
### When code or styles break
|
|
1109
1034
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
`.ds/build-status-<session>.json` through `ADS_MCP_BUILD_STATUS`; publishers must
|
|
1113
|
-
honor that path and `ADS_MCP_BUILD_SESSION`. Independent MCP clients therefore do
|
|
1114
|
-
not clobber each other's reports. `ads_status.build` and the `ads://project/build` resource
|
|
1115
|
-
expose those states, each preview's build revision, last successful revision,
|
|
1035
|
+
Use `ads_status.build` or the `ads://project/build` resource to inspect
|
|
1036
|
+
`building`, `ready` or `error` states, each preview's build revision, last successful revision,
|
|
1116
1037
|
availability, freshness and diagnostics. Diagnostic positions are one-based.
|
|
1117
1038
|
Tool summaries include the first three diagnostics per preview, capped at 1,000
|
|
1118
1039
|
characters each, with counts and truncation flags; the build resource retains
|
|
1119
1040
|
the complete bounded report.
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
captures a `sourceRevision` before compilation. Status reads compare that content
|
|
1123
|
-
digest with current project inputs; unchanged output cannot remain current after
|
|
1124
|
-
source changes. Such previews retain their last successful revision and output,
|
|
1041
|
+
After source changes, unchanged output cannot remain current.
|
|
1042
|
+
Such previews retain their last successful revision and output,
|
|
1125
1043
|
but report `current: false`, `stale: true` and `ADS_PREVIEW_STALE_SOURCE` while
|
|
1126
1044
|
awaiting the current build. Changes during compilation also invalidate success.
|
|
1127
1045
|
|
|
1128
|
-
|
|
1129
|
-
compiler after publication. Filesystem events provide fast updates; one-second
|
|
1046
|
+
Accepted drafts explicitly invalidate the managed compiler after publication. Filesystem events provide fast updates; one-second
|
|
1130
1047
|
input reconciliation recovers missed atomic replacements without touching source
|
|
1131
|
-
or restarting MCP. Keep the
|
|
1132
|
-
|
|
1048
|
+
or restarting MCP. Keep the ADS package used by managed compilation and MCP
|
|
1049
|
+
consistent; reports without source evidence cannot establish freshness.
|
|
1133
1050
|
|
|
1134
1051
|
On each status transition MCP sends `notifications/resources/updated` to build
|
|
1135
|
-
resource subscribers.
|
|
1052
|
+
resource subscribers. Connections using the supported 2025 protocols use `resources/subscribe`; 2026
|
|
1136
1053
|
connections use the SDK's `subscriptions/listen`. The notification identifies
|
|
1137
1054
|
the resource to read; it does not carry the diagnostics. This follows the
|
|
1138
1055
|
[resource subscription contract](https://modelcontextprotocol.io/specification/2025-11-25/server/resources#subscriptions).
|
|
@@ -1146,8 +1063,8 @@ failed build even when older output remains on disk. The reusable bootstrap and
|
|
|
1146
1063
|
retained immutable assets stay readable so an existing App can report freshness;
|
|
1147
1064
|
readability alone does not establish a current preview. After a successful rebuild the same
|
|
1148
1065
|
tool works again without restarting MCP. If the watcher itself exits, its
|
|
1149
|
-
failure is reported; after fixing the
|
|
1150
|
-
a fresh
|
|
1066
|
+
failure is reported; after fixing the source, configuration or dependency failure,
|
|
1067
|
+
invoke the preview again to start a fresh managed compiler. Partial or empty scenario discovery also exposes project-level
|
|
1151
1068
|
diagnostics through `ads://project/build`.
|
|
1152
1069
|
|
|
1153
1070
|
Already-mounted Apps show rebuilding, failure or a newer available revision
|
|
@@ -1157,66 +1074,15 @@ graph without replacing their iframe; failed builds leave the earlier view marke
|
|
|
1157
1074
|
stale. The built-in host recreates the App after its retained-module limit. Other hosts can also reinvoke the tool or reload the App. Token source
|
|
1158
1075
|
inspection is independent of component build failures.
|
|
1159
1076
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1077
|
+
When build status is unavailable, freshness is `unreported`
|
|
1078
|
+
(`current: false`, `stale: null`). This does not establish a usable current
|
|
1079
|
+
preview; request the preview to start ADS's managed compiler and inspect its
|
|
1080
|
+
diagnostics. A running process or an existing HTML file is not proof of current
|
|
1081
|
+
source. `ads://project/checks` separately reports source/CSS
|
|
1163
1082
|
syntax and architecture violations. Typechecks, behavior tests and browser
|
|
1164
1083
|
review still cover runtime exceptions, incorrect layout and motion. MCP does
|
|
1165
1084
|
not repair source automatically.
|
|
1166
1085
|
|
|
1167
|
-
### Custom builder integration (advanced)
|
|
1168
|
-
|
|
1169
|
-
The standard graph adapter already uses this reporter through
|
|
1170
|
-
`runScenarioCompiler`; use [the compiler setup](#configure-the-project-compiler)
|
|
1171
|
-
for that path. Custom builders can integrate the framework-independent reporter
|
|
1172
|
-
with their own publication step. A selective HTML builder, for example, uses one
|
|
1173
|
-
shared reporter for the compiler process:
|
|
1174
|
-
|
|
1175
|
-
```js
|
|
1176
|
-
import { createBuildReporter } from "@reqvire-org/ads/mcp/build";
|
|
1177
|
-
import { loadConfig } from "@reqvire-org/ads";
|
|
1178
|
-
|
|
1179
|
-
import { inspectScenarios } from "@reqvire-org/ads/scenarios";
|
|
1180
|
-
// loadConfig is also exported by @reqvire-org/ads.
|
|
1181
|
-
const { scenarios } = inspectScenarios(loadConfig(process.cwd()));
|
|
1182
|
-
const reports = createBuildReporter(process.cwd(), {
|
|
1183
|
-
apps: scenarios.map(entry => ({ id: entry.id, file: entry.artifact })),
|
|
1184
|
-
});
|
|
1185
|
-
|
|
1186
|
-
async function rebuild(entry) {
|
|
1187
|
-
const revision = reports.begin(entry.id);
|
|
1188
|
-
try {
|
|
1189
|
-
await buildProjectPreview(entry); // project-owned compilation, extraction and checks
|
|
1190
|
-
reports.ready(entry.id, revision); // only after writing complete output
|
|
1191
|
-
} catch (error) {
|
|
1192
|
-
reports.error(entry.id, revision, error);
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
```
|
|
1196
|
-
|
|
1197
|
-
For selective builds, MCP also supplies `ADS_MCP_REQUEST_FILE`: an atomically
|
|
1198
|
-
updated JSON file `{session, active, files: [project-relative artifact paths]}`.
|
|
1199
|
-
`active` is the most recently selected artifact path; prioritize it when draining
|
|
1200
|
-
affected builds. The shared scheduler handles this. Custom builders may ignore
|
|
1201
|
-
that optional field. Watch/read
|
|
1202
|
-
it, validate the session against `ADS_MCP_BUILD_SESSION`, and match paths against
|
|
1203
|
-
the discovered registry before building. Newly requested paths need a build;
|
|
1204
|
-
source changes invalidate and rebuild requested entries. A builder that compiles
|
|
1205
|
-
all entries may ignore this request file. It is removed when MCP stops.
|
|
1206
|
-
|
|
1207
|
-
ADS provides `ADS_MCP_BUILD_SESSION` and `ADS_MCP_BUILD_STATUS` to a managed child;
|
|
1208
|
-
the reporter uses them automatically. Standalone builders use the same project
|
|
1209
|
-
file and a new session. Updates are atomic and bounded to 256 KiB, with at most
|
|
1210
|
-
20 diagnostics per preview. The builder must report failures from its checks as
|
|
1211
|
-
well as its compiler. Call `begin` when source is invalidated, and capture a
|
|
1212
|
-
separate revision for each actual build; a completion from an older revision
|
|
1213
|
-
cannot clear a newer invalidation or error.
|
|
1214
|
-
|
|
1215
|
-
This checkout's [native compiler entry](../scripts/build-mcp-previews.mjs) reports initial and
|
|
1216
|
-
incremental builds, compiler/output errors and immediate invalidation. Another
|
|
1217
|
-
project wires the reporter into its existing build hooks; ADS does not infer
|
|
1218
|
-
success from free-form console output or install another compiler.
|
|
1219
|
-
|
|
1220
1086
|
Invoke an App's entry **tool** to ask a capable host to render it. Reading its
|
|
1221
1087
|
HTML resource is a data read, not evidence of a rendered view. When Apps are
|
|
1222
1088
|
unavailable, tool results provide a bounded descriptor and the runtime's
|
|
@@ -1249,13 +1115,13 @@ The npm distribution includes the five ADS skills, references, empty designer
|
|
|
1249
1115
|
scaffold, credits and upstream notices. Each `skill://ads/<name>/SKILL.md` has
|
|
1250
1116
|
a complete manifest of file URIs, UTF-8 byte lengths and SHA-256 digests.
|
|
1251
1117
|
Supporting files are read lazily via `resources/read`; directory browsing is
|
|
1252
|
-
available on
|
|
1118
|
+
available on `2026-07-28`. The packaged scaffold's `.gitignore` remains
|
|
1253
1119
|
addressable at its original resource URI.
|
|
1254
1120
|
|
|
1255
1121
|
`ads-import` assesses the destination and adapts selected source to its contracts.
|
|
1256
1122
|
Its compatibility reference is available at
|
|
1257
1123
|
`skill://ads/ads-import/references/compatibility.md`. Existing owner drafts,
|
|
1258
|
-
coupled
|
|
1124
|
+
coupled multi-owner drafts and candidate checks support the workflow; there is no
|
|
1259
1125
|
separate import tool, version-based acceptance filter or compatibility certificate.
|
|
1260
1126
|
The agent resolves semantic differences and reviews rendered behavior. Candidate
|
|
1261
1127
|
validation uses installed project dependencies; package installation remains a
|
|
@@ -1263,9 +1129,9 @@ project package-manager step before validating dependent changes.
|
|
|
1263
1129
|
|
|
1264
1130
|
On protocol `2026-07-28`, discovery advertises `io.modelcontextprotocol/skills`
|
|
1265
1131
|
with directory reading and implements `skills/list`, `skills/get`, and
|
|
1266
|
-
`resources/directory/read
|
|
1267
|
-
|
|
1268
|
-
native skill activation. Relative references resolve from the skill URI.
|
|
1132
|
+
`resources/directory/read`, and lists no skill tools. 2025-era connections, which
|
|
1133
|
+
have no native skills, get ordinary skill resources plus `ads_skills` and
|
|
1134
|
+
`ads_read_skill`; their metadata listing does not pretend to be native skill activation. Relative references resolve from the skill URI.
|
|
1269
1135
|
|
|
1270
1136
|
The host controls integrity verification, user approval and activation. Reading
|
|
1271
1137
|
`SKILL.md` through ordinary resources/tools does not prove activation. Local
|
|
@@ -1274,10 +1140,14 @@ installation with `npx skills` remains supported independently. See the
|
|
|
1274
1140
|
|
|
1275
1141
|
## Protocols, notifications and compatibility
|
|
1276
1142
|
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1143
|
+
ADS serves the same protocol versions on stdio and on HTTP: `2026-07-28` through
|
|
1144
|
+
discovery and per-request metadata, and `2024-10-07`, `2024-11-05`, `2025-03-26`,
|
|
1145
|
+
`2025-06-18` and `2025-11-25` through the initialize lifecycle. Over HTTP a
|
|
1146
|
+
2025-era client gets a session (`Mcp-Session-Id`) with its GET stream for server
|
|
1147
|
+
notifications, as the 2025 Streamable HTTP transport defines. A client gets what
|
|
1148
|
+
its negotiated version defines; only features that version lacks, such as native
|
|
1149
|
+
Skills or `subscriptions/listen`, are unavailable to it. Apps use their separate
|
|
1150
|
+
`2026-01-26` UI handshake.
|
|
1281
1151
|
|
|
1282
1152
|
Project source changes invalidate catalogue caches and notify resource
|
|
1283
1153
|
list/read subscribers. Artifact and build-status changes notify preview/build
|
|
@@ -1286,18 +1156,17 @@ also notify the tool catalog.
|
|
|
1286
1156
|
Publishing a changed asset catalogue also sends a resource-list notification;
|
|
1287
1157
|
status-only transitions with unchanged resource identities need only updates.
|
|
1288
1158
|
The server polls file metadata once a second, so replaced files and newly added
|
|
1289
|
-
directories are detected. On
|
|
1290
|
-
`subscriptions/listen`;
|
|
1291
|
-
notifications. Hosts may require a manual
|
|
1292
|
-
|
|
1293
|
-
supply their own controls.
|
|
1159
|
+
directories are detected. On `2026-07-28` connections, notifications use the SDK's
|
|
1160
|
+
`subscriptions/listen`; 2025-era connections, on stdio or in an HTTP session, get
|
|
1161
|
+
list-change and subscribed-resource notifications. Hosts may require a manual
|
|
1162
|
+
refresh.
|
|
1294
1163
|
|
|
1295
1164
|
Client support varies by product and version. Ordinary tools and resources
|
|
1296
1165
|
remain available without Apps or native Skills support. ADS uses bounded tool
|
|
1297
1166
|
results and separate resource reads; previews also return showcase links for
|
|
1298
1167
|
clients without Apps. Native Skills support is optional.
|
|
1299
1168
|
|
|
1300
|
-
Automated tests verify both protocol eras, resource/skill integrity, prompt
|
|
1169
|
+
Automated tests verify both protocol eras on both transports, resource/skill integrity, prompt
|
|
1301
1170
|
retrieval, bounded tools, initial preview readiness, managed rebuilds, process
|
|
1302
1171
|
cleanup and resource notifications. SDK and
|
|
1303
1172
|
browser-host tests are distinct from a real Codex/Claude session. In a new host,
|
|
@@ -1308,13 +1177,11 @@ instruction reads alone do not establish Apps/Skills activation.
|
|
|
1308
1177
|
|
|
1309
1178
|
### Token sample verification
|
|
1310
1179
|
|
|
1311
|
-
Token
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
covers do not satisfy review coverage. The same bindings travel in the compiled
|
|
1315
|
-
resource manifest or self-contained App seed.
|
|
1180
|
+
Token views take their bindings from `tokens/catalog.ads.json`: each record has
|
|
1181
|
+
`{ token, property, probe }`. The same bindings travel in the compiled resource manifest or
|
|
1182
|
+
self-contained App seed.
|
|
1316
1183
|
|
|
1317
|
-
The
|
|
1184
|
+
The view marks its styled sample elements with `data-ads-token` and
|
|
1318
1185
|
`data-ads-property`. After mounting and font loading, the App uses the browser's CSS
|
|
1319
1186
|
engine to validate each declared binding and project-supplied probe, then checks
|
|
1320
1187
|
that changing the token changes the sample's computed property. It restores token
|
|
@@ -1345,11 +1212,7 @@ contract source for additional relationships. Read the relevant source range;
|
|
|
1345
1212
|
these summaries establish registration, not completed verification. Detailed
|
|
1346
1213
|
results remain bounded and paged.
|
|
1347
1214
|
|
|
1348
|
-
|
|
1349
|
-
filenames and compatible legacy sections in a local draft. Inspect its notes,
|
|
1350
|
-
then use the existing diff and guarded dry-run/apply workflow. It does not write
|
|
1351
|
-
live source, loosen policy or add a second contract-editing protocol. See
|
|
1352
|
-
[CONTRACTS.md](CONTRACTS.md) for the static schema, compatibility and browser audits.
|
|
1215
|
+
See [CONTRACTS.md](CONTRACTS.md) for the static schema, compatibility and render audits.
|
|
1353
1216
|
The same guide is available at `ads://guides/contracts`.
|
|
1354
1217
|
|
|
1355
1218
|
A registered binding producer gives a per-theme value with `themed()` or
|
|
@@ -1366,48 +1229,6 @@ reachable use; registered browser checks establish the effects. Private visual
|
|
|
1366
1229
|
behavior subjects use explicit `role: "implementation"`; headless defaults and
|
|
1367
1230
|
shared-controller gates remain enabled. See [CONTRACTS.md](CONTRACTS.md).
|
|
1368
1231
|
|
|
1369
|
-
## Bug reports and feature requests
|
|
1370
|
-
|
|
1371
|
-
`ads_report_bug` records suspected broken existing ADS behavior after targeted
|
|
1372
|
-
investigation. Required fields are `title`, `expected`, `observed`, `steps` and
|
|
1373
|
-
`frequency` (`always`, `intermittent`, `once`, `unknown`); `suspectedCause` is optional.
|
|
1374
|
-
`ads_request_feature` records a legitimate workflow requiring a missing capability:
|
|
1375
|
-
`title`, `workflow`, `capability` and `impact` are required; `proposal` is optional.
|
|
1376
|
-
Both accept optional `unit`, `scenario`, agent-supplied `reporter`, and up to three
|
|
1377
|
-
`evidence` selectors: `{resultId}` or the exact `{unit, check, runId}`.
|
|
1378
|
-
|
|
1379
|
-
The server verifies evidence references and snapshots compact completion-time
|
|
1380
|
-
metadata before the underlying execution/check slot can be replaced. Superseded
|
|
1381
|
-
references fail explicitly. Current-project context separately captures ADS
|
|
1382
|
-
version, configured framework, runtime name/version/platform, source/configuration revisions,
|
|
1383
|
-
available build metadata and capture time. Missing metadata stays unobserved;
|
|
1384
|
-
context and candidate evidence do not become current passing source evidence.
|
|
1385
|
-
No source files, full logs, screenshots or trace bytes are automatically attached.
|
|
1386
|
-
|
|
1387
|
-
The tools save ordinary JSON at `<projectRoot>/.ds/reports/<reportId>.json`.
|
|
1388
|
-
They are available without `--mutations`, like other development-evidence tools,
|
|
1389
|
-
and write generated metadata rather than project-owned ADS source. Tool annotations
|
|
1390
|
-
mark them as writes. Each saved record is limited to 32 KiB. Neither tool posts to
|
|
1391
|
-
GitHub, sends telemetry nor changes validation policy. Reports remain `untriaged`;
|
|
1392
|
-
`classification: "agent-supplied"` distinguishes a claim from an established cause.
|
|
1393
|
-
|
|
1394
|
-
Equivalent submissions for the same ADS version/framework reuse the report ID,
|
|
1395
|
-
keep its creation time, increment `submissionCount` and replace its latest
|
|
1396
|
-
submission/context/evidence. This is a submission count, not independent
|
|
1397
|
-
reproductions. There is no automatic age/count pruning; report retention differs
|
|
1398
|
-
from replaceable execution evidence and screenshot slots. Archive or removal is
|
|
1399
|
-
an explicit maintenance action.
|
|
1400
|
-
|
|
1401
|
-
Each submission returns a compact receipt (at most 4096 JSON bytes) with
|
|
1402
|
-
`reportId`, `revision`, `storagePath`, `submissionCount` and deduplication status.
|
|
1403
|
-
The local path is relative to the connected project root. MCP intake is
|
|
1404
|
-
submission-only: saved reports have no listing/read tool, resource, URI template,
|
|
1405
|
-
subscription or notification. Inspect or share local JSON through normal project
|
|
1406
|
-
maintenance when needed. `ads_status.reports` identifies the two intake tools,
|
|
1407
|
-
storage directory and `ads://guides/reporting`, without listing report contents.
|
|
1408
|
-
All five skills include the same portable
|
|
1409
|
-
[reporting reference](../skills/ads-designer/references/reporting.md).
|
|
1410
|
-
|
|
1411
1232
|
Build errors carry optional `failure: {scope, phase}` metadata. `scope` is
|
|
1412
1233
|
`project`, `graph` or `scenario`; `phase` is `validation`, `discovery` or `build`.
|
|
1413
1234
|
A failed project gate blocks verification across previews; it does not establish
|
|
@@ -1420,34 +1241,36 @@ scenario's failure. A retained earlier view is not current-source evidence.
|
|
|
1420
1241
|
|
|
1421
1242
|
`ads_validate({})` and `ads validate` share the full validation engine.
|
|
1422
1243
|
`ads_validate({scope:"changed"})` matches `ads validate --changed`.
|
|
1423
|
-
`
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
`
|
|
1244
|
+
`ads validate` is the project gate: `ads check`, `acceptance.scripts` then
|
|
1245
|
+
`validation.scripts`, current production previews, and every registered behavior test
|
|
1246
|
+
and render audit its change set reaches; it writes nothing. With scope `all` that is
|
|
1247
|
+
everything; with `scope:"changed"` it is what changed since the last successful full
|
|
1248
|
+
run (configuration, foundation or token changes widen it to everything), the check to
|
|
1249
|
+
run after direct edits or a series of accepted drafts. `acceptance.behavior` and
|
|
1250
|
+
`acceptance.audit` affect draft acceptance only. Its `a11y-axe`,
|
|
1251
|
+
`a11y-non-text-contrast` and `layout-overflow` findings are errors, and skipped tests
|
|
1252
|
+
are reported as skipped, without a passing label. Draft preview/edit runs no gate.
|
|
1253
|
+
Draft acceptance checks its candidate before writing source: `ads check`,
|
|
1254
|
+
`acceptance.scripts`, and the draft owners' own behavior tests and render audit.
|
|
1255
|
+
`mcp.auditPages` (1–16, default 4) sets how many pages render at once. Any `a11y-axe`, `a11y-non-text-contrast` or
|
|
1256
|
+
`layout-overflow` error, a scenario that fails all 3 attempts (`render-audit`, naming it and the
|
|
1434
1257
|
last cause, with retried passes listed under `retries`), or an audit that
|
|
1435
|
-
cannot run (`
|
|
1258
|
+
cannot run (`render-audit`: no project Playwright or browser; the message names what to
|
|
1436
1259
|
install), rejects the change; findings are in `diagnostics` and the
|
|
1437
|
-
`
|
|
1438
|
-
timing.
|
|
1260
|
+
`render-audit` check lists the audited scenarios, themes, brands and
|
|
1261
|
+
timing. The MCP tool
|
|
1439
1262
|
runs trusted configured project commands with cancellation and bounded output; it
|
|
1440
1263
|
is available with source mutations disabled and writes only build/evidence output
|
|
1441
|
-
when project commands honor their checking contract. Summaries include
|
|
1264
|
+
when project commands honor their checking contract. Summaries include scope,
|
|
1442
1265
|
requestedScope, fallback reason, sourceRevision, current, elapsedMs and resultId.
|
|
1443
1266
|
Read diagnostics/checks/outcomes with `ads_results`; progress and the latest
|
|
1444
1267
|
validation summary are in `ads_status.validation`. Retention is latest per kind:
|
|
1445
|
-
validation
|
|
1268
|
+
validation and mutation are independent.
|
|
1446
1269
|
|
|
1447
1270
|
Read `ads://guides/validation` for trigger guidance, baseline expansion, test
|
|
1448
|
-
boundaries, script selection and limits. Full
|
|
1449
|
-
and
|
|
1450
|
-
opaque project scripts remain complete. Neither mode rewrites npm test commands
|
|
1271
|
+
boundaries, script selection and limits. Full runs include configured scripts,
|
|
1272
|
+
registered guarantees and every UI scenario; changed mode narrows behavior owners and
|
|
1273
|
+
audited scenarios while core and opaque project scripts remain complete. Neither mode rewrites npm test commands
|
|
1451
1274
|
or treats compiled live previews as verification evidence.
|
|
1452
1275
|
|
|
1453
1276
|
Source freshness covers the configured ADS and UI roots, public assets, local
|
|
@@ -1480,15 +1303,14 @@ selected commands; ADS cannot infer arbitrary filesystem access inside a command
|
|
|
1480
1303
|
## Shared-process execution coordination
|
|
1481
1304
|
|
|
1482
1305
|
One ADS process has an exclusive execution lease shared by its HTTP and stdio
|
|
1483
|
-
clients. `ads_validate` (both
|
|
1484
|
-
|
|
1306
|
+
clients. `ads_validate` (both scopes) and `ads_accept` acquire
|
|
1307
|
+
it before work and retain it
|
|
1485
1308
|
through child/ownership-guard cleanup and result publication. Changed scope still
|
|
1486
1309
|
runs full project scripts. Parallel units and `wait: true` are not supported.
|
|
1487
1310
|
|
|
1488
1311
|
A conflicting call is a tool error with `code: "ADS_VALIDATION_LOCKED"` and `lock`:
|
|
1489
|
-
run ID, instance ID, operation, owner/client label where known,
|
|
1490
|
-
and effective scope, units, start time
|
|
1491
|
-
milliseconds. Client labels (including optional request `_meta["ads/clientId"]`)
|
|
1312
|
+
run ID, instance ID, operation, owner/client label where known, requested
|
|
1313
|
+
and effective scope, units, start time and progress. Client labels (including optional request `_meta["ads/clientId"]`)
|
|
1492
1314
|
are advisory metadata, not authentication. Stateless HTTP requests do not define
|
|
1493
1315
|
persistent client sessions. The run ID is the result ID; any connected project
|
|
1494
1316
|
client can read retained evidence by ID after reconnecting.
|