@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.
Files changed (401) hide show
  1. package/README.md +114 -94
  2. package/dist/a11y.mjs +108 -29
  3. package/dist/analysis/compiler-options.mjs +13 -0
  4. package/dist/analysis/context.mjs +46 -0
  5. package/dist/analysis/file-tree.mjs +52 -0
  6. package/dist/analysis/helpers.mjs +140 -0
  7. package/dist/analysis/impact.mjs +20 -0
  8. package/dist/analysis/inputs.mjs +15 -0
  9. package/dist/analysis/native-adapter.mjs +180 -0
  10. package/dist/analysis/native-project.mjs +323 -0
  11. package/dist/analysis/queries.mjs +133 -0
  12. package/dist/analysis/service.mjs +146 -0
  13. package/dist/analysis/standalone.mjs +57 -0
  14. package/dist/analysis/syntax.mjs +164 -0
  15. package/dist/analysis/worker.mjs +182 -0
  16. package/dist/assets.mjs +6 -6
  17. package/dist/atomic-composition.mjs +191 -70
  18. package/dist/atomic-trace.mjs +120 -50
  19. package/dist/behavior-libraries.mjs +106 -37
  20. package/dist/behaviors.mjs +222 -79
  21. package/dist/boundaries.mjs +137 -40
  22. package/dist/brand-assets.mjs +219 -47
  23. package/dist/brands.mjs +86 -27
  24. package/dist/bun-compiler.mjs +34 -13
  25. package/dist/bun-worker.mjs +7 -5
  26. package/dist/capture/worker.mjs +15 -4
  27. package/dist/capture-store.mjs +4 -2
  28. package/dist/capture.mjs +17 -14
  29. package/dist/check-service.mjs +66 -0
  30. package/dist/check.mjs +756 -196
  31. package/dist/cli.mjs +203 -100
  32. package/dist/color-values.mjs +21 -21
  33. package/dist/component-contrast.mjs +2 -2
  34. package/dist/config.mjs +308 -163
  35. package/dist/construction-styles.cjs +10 -0
  36. package/dist/contracts.d.mts +9 -0
  37. package/dist/control-padding.mjs +45 -25
  38. package/dist/css-values.mjs +3 -2
  39. package/dist/declarative-flow.mjs +209 -109
  40. package/dist/design-values.mjs +136 -51
  41. package/dist/development-runtime.mjs +4 -6
  42. package/dist/draft-boundary.mjs +11 -6
  43. package/dist/evidence.mjs +1 -1
  44. package/dist/finding-rules.mjs +7 -5
  45. package/dist/font-rules.mjs +2 -2
  46. package/dist/fonts-generated.mjs +4 -2
  47. package/dist/foundation-views.mjs +238 -0
  48. package/dist/foundation.mjs +63 -39
  49. package/dist/generated-entries.mjs +198 -0
  50. package/dist/icons.mjs +80 -33
  51. package/dist/image-attributes.mjs +109 -36
  52. package/dist/image-size.mjs +1 -1
  53. package/dist/index.mjs +0 -2
  54. package/dist/init.mjs +128 -68
  55. package/dist/investigations.mjs +2 -2
  56. package/dist/layers.mjs +300 -127
  57. package/dist/layout-widths.mjs +180 -85
  58. package/dist/linaria/preserve-values.cjs +7 -0
  59. package/dist/linaria/spatial-inputs.cjs +56 -0
  60. package/dist/lockup-composition.mjs +44 -0
  61. package/dist/lockup-model.cjs +64 -0
  62. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  63. package/dist/mcp/apps.mjs +4 -30
  64. package/dist/mcp/behavior-pages.mjs +72 -24
  65. package/dist/mcp/build-status.mjs +257 -64
  66. package/dist/mcp/catalog.mjs +91 -26
  67. package/dist/mcp/context.mjs +17 -18
  68. package/dist/mcp/draft-discovery.mjs +44 -21
  69. package/dist/mcp/drafts.mjs +978 -343
  70. package/dist/mcp/execution-coordinator.mjs +417 -167
  71. package/dist/mcp/execution-results.mjs +7 -7
  72. package/dist/mcp/mutations.mjs +701 -219
  73. package/dist/mcp/preview-watch.mjs +465 -161
  74. package/dist/mcp/preview-widget.bundle.js +44 -50
  75. package/dist/mcp/prompts.mjs +6 -6
  76. package/dist/mcp/result-pages.mjs +1 -1
  77. package/dist/mcp/sandbox-host.mjs +1 -1
  78. package/dist/mcp/server.mjs +2436 -570
  79. package/dist/mcp/showcase-host.mjs +176 -39
  80. package/dist/mcp/skills.mjs +1 -1
  81. package/dist/mcp/text-diff.mjs +29 -10
  82. package/dist/paint-contracts.mjs +174 -81
  83. package/dist/palette-generated.mjs +2 -2
  84. package/dist/preview-bun.mjs +493 -187
  85. package/dist/preview-failure.mjs +1 -1
  86. package/dist/preview-files.mjs +13 -13
  87. package/dist/preview-imports.mjs +104 -55
  88. package/dist/preview-inputs.mjs +2 -2
  89. package/dist/preview-requests.mjs +24 -0
  90. package/dist/preview-resources.mjs +288 -147
  91. package/dist/preview-scope.mjs +5 -4
  92. package/dist/program-cache.mjs +10 -0
  93. package/dist/project-documents.mjs +1 -1
  94. package/dist/public-api.mjs +70 -31
  95. package/dist/public-props.mjs +39 -22
  96. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  97. package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
  98. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  99. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  100. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  101. package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
  102. package/dist/render-audit.mjs +828 -0
  103. package/dist/render-color-probe.mjs +96 -42
  104. package/dist/resource-limits.mjs +229 -97
  105. package/dist/runtime-contracts.mjs +467 -185
  106. package/dist/scenario-groups.mjs +22 -10
  107. package/dist/scenario-inspector.mjs +6 -43
  108. package/dist/scenario-program.mjs +8 -25
  109. package/dist/scenario-registry.mjs +72 -30
  110. package/dist/scenario-selectors.mjs +161 -64
  111. package/dist/scenario-slots.mjs +149 -56
  112. package/dist/scenario-trace.mjs +215 -109
  113. package/dist/scenarios-compiler.mjs +768 -359
  114. package/dist/scenarios-vite.d.mts +1 -3
  115. package/dist/scenarios-vite.mjs +2 -81
  116. package/dist/scenarios.mjs +424 -159
  117. package/dist/selector-match.mjs +2 -2
  118. package/dist/showcase/client.bundle.js +57 -56
  119. package/dist/showcase/draft-navigation.js +18 -0
  120. package/dist/showcase/favicon.ico +0 -0
  121. package/dist/showcase/favicon.svg +1 -0
  122. package/dist/showcase/foundation-view.css +55 -0
  123. package/dist/showcase/foundation-view.mjs +252 -0
  124. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  125. package/dist/showcase/icons.js +1 -145
  126. package/dist/showcase/index.html +3 -31
  127. package/dist/showcase/preview-frame.ads.review.css +46 -0
  128. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  129. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  130. package/dist/showcase/preview-state.js +0 -9
  131. package/dist/showcase/refresh-scheduler.js +23 -0
  132. package/dist/showcase/style.css +5 -47
  133. package/dist/showcase/ui/ui.css +1353 -0
  134. package/dist/showcase/ui/ui.js +1062 -0
  135. package/dist/showcase-coverage.mjs +58 -37
  136. package/dist/skills/README.md +24 -23
  137. package/dist/skills/ads-designer/README.md +8 -2
  138. package/dist/skills/ads-designer/SKILL.md +152 -144
  139. package/dist/skills/ads-designer/references/accessibility.md +14 -11
  140. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  141. package/dist/skills/ads-designer/references/behaviors.md +34 -30
  142. package/dist/skills/ads-designer/references/branding.md +98 -10
  143. package/dist/skills/ads-designer/references/captures.md +31 -31
  144. package/dist/skills/ads-designer/references/cli.md +21 -20
  145. package/dist/skills/ads-designer/references/contracts.md +63 -29
  146. package/dist/skills/ads-designer/references/design-data.md +49 -52
  147. package/dist/skills/ads-designer/references/drafts.md +71 -52
  148. package/dist/skills/ads-designer/references/evidence.md +1 -5
  149. package/dist/skills/ads-designer/references/guarded-editing.md +58 -51
  150. package/dist/skills/ads-designer/references/layers.md +1 -1
  151. package/dist/skills/ads-designer/references/layout.md +347 -0
  152. package/dist/skills/ads-designer/references/mobile.md +2 -1
  153. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  154. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  155. package/dist/skills/ads-designer/references/performance.md +3 -2
  156. package/dist/skills/ads-designer/references/review.md +42 -38
  157. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  158. package/dist/skills/ads-designer/references/scenarios.md +17 -19
  159. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  160. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  161. package/dist/skills/ads-designer/references/validation.md +83 -71
  162. package/dist/skills/ads-designer/references/workflows.md +19 -37
  163. package/dist/skills/ads-import/SKILL.md +43 -328
  164. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  165. package/dist/skills/ads-import/references/behaviors.md +34 -30
  166. package/dist/skills/ads-import/references/branding.md +5 -5
  167. package/dist/skills/ads-import/references/captures.md +31 -31
  168. package/dist/skills/ads-import/references/cli.md +21 -20
  169. package/dist/skills/ads-import/references/compatibility.md +1 -1
  170. package/dist/skills/ads-import/references/contracts.md +63 -29
  171. package/dist/skills/ads-import/references/design-data.md +49 -52
  172. package/dist/skills/ads-import/references/drafts.md +71 -52
  173. package/dist/skills/ads-import/references/evidence.md +1 -5
  174. package/dist/skills/ads-import/references/guarded-editing.md +58 -51
  175. package/dist/skills/ads-import/references/implementation.md +2 -1
  176. package/dist/skills/ads-import/references/layers.md +1 -1
  177. package/dist/skills/ads-import/references/layout.md +347 -0
  178. package/dist/skills/ads-import/references/review.md +42 -38
  179. package/dist/skills/ads-import/references/runtimes.md +33 -30
  180. package/dist/skills/ads-import/references/scenarios.md +17 -19
  181. package/dist/skills/ads-import/references/tokens.md +3 -3
  182. package/dist/skills/ads-import/references/validation.md +83 -71
  183. package/dist/skills/ads-import/references/workflows.md +19 -37
  184. package/dist/skills/ads-migrate/SKILL.md +56 -0
  185. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  186. package/dist/skills/ads-port/SKILL.md +54 -346
  187. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  188. package/dist/skills/ads-port/references/behaviors.md +34 -30
  189. package/dist/skills/ads-port/references/captures.md +31 -31
  190. package/dist/skills/ads-port/references/cli.md +21 -20
  191. package/dist/skills/ads-port/references/contracts.md +63 -29
  192. package/dist/skills/ads-port/references/design-data.md +49 -52
  193. package/dist/skills/ads-port/references/drafts.md +71 -52
  194. package/dist/skills/ads-port/references/evidence.md +1 -5
  195. package/dist/skills/ads-port/references/guarded-editing.md +58 -51
  196. package/dist/skills/ads-port/references/layers.md +1 -1
  197. package/dist/skills/ads-port/references/layout.md +347 -0
  198. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  199. package/dist/skills/ads-port/references/native-implementation.md +8 -7
  200. package/dist/skills/ads-port/references/review.md +42 -38
  201. package/dist/skills/ads-port/references/runtimes.md +33 -30
  202. package/dist/skills/ads-port/references/scenarios.md +17 -19
  203. package/dist/skills/ads-port/references/validation.md +83 -71
  204. package/dist/skills/ads-port/references/workflows.md +19 -37
  205. package/dist/source-symbols.mjs +1 -8
  206. package/dist/source-values.mjs +266 -128
  207. package/dist/spatial-composition.mjs +322 -0
  208. package/dist/spatial-contexts.cjs +56 -0
  209. package/dist/spatial-css.cjs +351 -0
  210. package/dist/spatial-inputs.cjs +80 -0
  211. package/dist/spatial-metadata.mjs +18 -0
  212. package/dist/spatial-model.cjs +322 -0
  213. package/dist/spatial.mjs +21 -0
  214. package/dist/stage-timing.cjs +20 -0
  215. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  216. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  217. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  218. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  219. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  220. package/dist/starters/preact/ds.config.json +24 -19
  221. package/dist/starters/preact/package.json +4 -8
  222. package/dist/starters/preact/tsconfig.json +4 -5
  223. package/dist/starters/preact/vite.config.ts +3 -3
  224. package/dist/starters/react/ADS.md +42 -47
  225. package/dist/starters/react/README.md +54 -52
  226. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
  227. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
  228. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  229. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  230. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
  231. package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
  232. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
  233. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
  234. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  235. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  236. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  237. package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
  238. package/dist/starters/react/design-system/index.ts +5 -8
  239. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  240. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  241. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  242. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  243. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  244. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
  245. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  246. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  247. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  248. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  249. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  250. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  251. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  252. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
  253. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  254. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  255. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  256. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  257. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
  258. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  259. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  260. package/dist/starters/react/design-system/styles.css +1 -0
  261. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  262. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  263. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  264. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  265. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  266. package/dist/starters/react/ds.config.json +24 -19
  267. package/dist/starters/react/package.json +2 -6
  268. package/dist/starters/react/tsconfig.json +2 -3
  269. package/dist/starters/react/vite.config.ts +3 -3
  270. package/dist/style-boundaries.mjs +73 -27
  271. package/dist/task-cache.mjs +173 -72
  272. package/dist/task-worker.mjs +22 -11
  273. package/dist/test-boundaries.mjs +133 -60
  274. package/dist/themes-generated.mjs +1 -1
  275. package/dist/themes-watch.mjs +60 -19
  276. package/dist/themes.mjs +176 -73
  277. package/dist/token-export.mjs +39 -14
  278. package/dist/token-policy.mjs +6 -3
  279. package/dist/token-quality.mjs +6 -6
  280. package/dist/token-samples.mjs +16 -5
  281. package/dist/tokens.mjs +71 -26
  282. package/dist/ui-framework.mjs +16 -14
  283. package/dist/unit-contracts.mjs +270 -89
  284. package/dist/units.mjs +215 -180
  285. package/dist/usage.mjs +138 -38
  286. package/dist/validation-checks.mjs +121 -38
  287. package/dist/validation-inputs.mjs +187 -78
  288. package/dist/validation.mjs +268 -102
  289. package/dist/verification/browser.mjs +27 -5
  290. package/dist/verification.mjs +711 -187
  291. package/docs/ADS.md +100 -89
  292. package/docs/ARCHITECTURE.md +353 -159
  293. package/docs/BEHAVIORS.md +33 -28
  294. package/docs/CACHING.md +55 -11
  295. package/docs/CHANGELOG.md +358 -17
  296. package/docs/COMPARISON.md +1 -1
  297. package/docs/CONTRACTS.md +22 -29
  298. package/docs/DESIGN-REFERENCES.md +40 -0
  299. package/docs/GUIDE.md +313 -292
  300. package/docs/MCP.md +261 -439
  301. package/docs/SPATIAL-CHECKS.md +69 -0
  302. package/docs/benchmarks/README.md +39 -0
  303. package/package.json +42 -34
  304. package/dist/browser-audit.mjs +0 -424
  305. package/dist/contract-migration.mjs +0 -110
  306. package/dist/create.mjs +0 -48
  307. package/dist/lint-config.mjs +0 -48
  308. package/dist/mcp/draft-exports.mjs +0 -40
  309. package/dist/mcp/edit-preparation.mjs +0 -115
  310. package/dist/mcp/project-widget.bundle.js +0 -114
  311. package/dist/mcp/reports.mjs +0 -101
  312. package/dist/mcp/widget.bundle.js +0 -147
  313. package/dist/oxlint.mjs +0 -88
  314. package/dist/preview-builder.mjs +0 -133
  315. package/dist/preview-workers.mjs +0 -184
  316. package/dist/showcase.mjs +0 -77
  317. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  318. package/dist/skills/ads-break-ui/README.md +0 -16
  319. package/dist/skills/ads-break-ui/SKILL.md +0 -415
  320. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  321. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  322. package/dist/skills/ads-break-ui/references/behaviors.md +0 -411
  323. package/dist/skills/ads-break-ui/references/captures.md +0 -160
  324. package/dist/skills/ads-break-ui/references/contracts.md +0 -284
  325. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  326. package/dist/skills/ads-break-ui/references/drafts.md +0 -178
  327. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  328. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -154
  329. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  330. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  331. package/dist/skills/ads-break-ui/references/review.md +0 -96
  332. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  333. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  334. package/dist/skills/ads-break-ui/references/validation.md +0 -162
  335. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  336. package/dist/skills/ads-break-ui/references/workflows.md +0 -83
  337. package/dist/skills/ads-designer/references/reporting.md +0 -101
  338. package/dist/skills/ads-import/references/reporting.md +0 -101
  339. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  340. package/dist/skills/ads-motion/README.md +0 -22
  341. package/dist/skills/ads-motion/SKILL.md +0 -388
  342. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  343. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  344. package/dist/skills/ads-motion/references/audit.md +0 -44
  345. package/dist/skills/ads-motion/references/behaviors.md +0 -411
  346. package/dist/skills/ads-motion/references/captures.md +0 -160
  347. package/dist/skills/ads-motion/references/contracts.md +0 -284
  348. package/dist/skills/ads-motion/references/design-data.md +0 -354
  349. package/dist/skills/ads-motion/references/drafts.md +0 -178
  350. package/dist/skills/ads-motion/references/evidence.md +0 -128
  351. package/dist/skills/ads-motion/references/guarded-editing.md +0 -154
  352. package/dist/skills/ads-motion/references/layers.md +0 -145
  353. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  354. package/dist/skills/ads-motion/references/reporting.md +0 -101
  355. package/dist/skills/ads-motion/references/review.md +0 -96
  356. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  357. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  358. package/dist/skills/ads-motion/references/validation.md +0 -162
  359. package/dist/skills/ads-motion/references/verification.md +0 -39
  360. package/dist/skills/ads-motion/references/workflows.md +0 -83
  361. package/dist/skills/ads-port/references/reporting.md +0 -101
  362. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  363. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  364. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  365. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  366. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  367. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  368. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  369. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  370. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  371. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  372. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  373. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  374. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  375. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  376. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  377. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  378. package/dist/starters/react/design-system/review/index.ts +0 -5
  379. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  380. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  381. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  382. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  383. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  384. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  385. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  386. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  387. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  388. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  389. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  390. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  391. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  392. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  393. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  394. package/dist/starters/react/package-lock.json +0 -4707
  395. package/dist/token-fixtures.mjs +0 -30
  396. package/docs/benchmarks/bun-previews.md +0 -91
  397. package/docs/benchmarks/preview-memory.md +0 -147
  398. package/docs/benchmarks/turbo-poc.md +0 -284
  399. package/docs/plans/execution-coordination.md +0 -57
  400. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  401. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ads-designer
3
- description: Create a new local React or Preact design system with `ads create`, or build UI using a project's existing design system. Covers shared token contracts, local ownership, public APIs, external source integration, showcase inspection, and validation.
3
+ description: Start a local React or Preact design system with `ads init --include-starter`, or build UI using a project's existing design system. Covers shared token contracts, local ownership, public APIs, layout, motion, stress-testing with worst-case content, external source integration, showcase inspection, and validation.
4
4
  ---
5
5
 
6
6
  ## Choose the editing workflow
@@ -21,9 +21,7 @@ and accepting its required proposals. If blocked, report the exact unfinished
21
21
  draft/blocker; retain a proposal intentionally only when the user requests it.
22
22
  Auto mode means agent review, without an extra human approval step.
23
23
 
24
- Compiler ownership is independent: direct edits normally use ADS's managed
25
- compiler. `mcp.previewWatch: false` is the externally managed builder variant;
26
- MCP serves published previews and evidence without starting a compiler.
24
+ Every editing route uses ADS's own compiler, which `ads mcp` runs.
27
25
 
28
26
 
29
27
  For validation scope, full audits, and CLI/MCP parity, read
@@ -36,13 +34,13 @@ and memory limits in project configuration; verify real workloads under them.
36
34
  Inspect the target before editing. Read its `README.md`, `docs/ARCHITECTURE.md`
37
35
  and `docs/ADS.md` when present (or existing project guides), public exports, and relevant
38
36
  component guides. Preserve its
39
- framework and contracts. Starting from zero uses `ads create`, which copies the
40
- starter shipped in the ADS package; no example repository is needed.
37
+ framework and contracts. Starting from zero uses `ads init --include-starter` in the
38
+ project, which adds the starter shipped in the ADS package; no example repository is needed.
41
39
 
42
40
  Linaria is required for ADS component and pattern styling. Preserve the target's
43
41
  UI framework and integrate compatible Linaria extraction with both application
44
- and preview builds. Projects from `ads create` (React or Preact) already configure it;
45
- `ads init` does not install or configure Linaria. Create new projects with the
42
+ and preview builds. `ads init --include-starter` (React or Preact) configures it;
43
+ plain `ads init` does not install or configure Linaria. Start design systems with the
46
44
  project's framework. Current core
47
45
  guards inspect JS/TS/JSX, CSS, and imported Linaria templates, not Vue/Svelte
48
46
  single-file components or general HTML component templates. Entry HTML mount
@@ -54,8 +52,8 @@ production and scenario builds; never alias React to Preact just to shrink a
54
52
  preview. Native Preact uses its own JSX transform, hooks and DOM events (live
55
53
  text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
56
54
  not React presentation aliases. Keep Linaria extraction and the same public APIs.
57
- `ads create` makes a React or Preact project; the tool repository's working
58
- example uses Preact. Neither is a component dependency of the receiving project.
55
+ `ads init --include-starter` sets up a React or Preact design system; the tool
56
+ repository's working example uses Preact. Neither is a component dependency of the receiving project.
59
57
 
60
58
  When initializing a project without a saved framework, pass `--framework react`
61
59
  or `--framework preact` for its actual runtime. Init saves the choice and later
@@ -73,8 +71,8 @@ implementations; external source updates require explicit imports or merges.
73
71
  ## MCP access when available
74
72
 
75
73
  Use `ads_status` and `ads_catalog` to discover the connected project's public UI,
76
- guides, showcase URL and addressable scenarios. `ads_tokens` inspects definitions; `ads_show_tokens` renders token scenarios;
77
- `ads_scenarios` discovers previews and `ads_show_scenario` opens the selected real entry. Read relevant source
74
+ guides, showcase URL and addressable scenarios. `ads_tokens` inspects definitions;
75
+ `ads_scenarios` discovers previews, including the token and brand views ADS renders itself, and `ads_show_scenario` opens the selected real entry. Read relevant source
78
76
  and inspect the actual view before changing it. HTML delivery alone is not a
79
77
  rendering check. Use the normal showcase when the host lacks Apps support.
80
78
  Use the returned `projectRoot` and `project.commands`; the connected ADS may be
@@ -82,28 +80,24 @@ inside a different or nested repository. Inspect the selected public API, owning
82
80
  source/available guides and relevant tokens, then mount its discovered scenario.
83
81
  Metadata and source reads do not prove rendered behavior.
84
82
 
85
- For MCP-only guarded editing with `ads_status.mutations.enabled`, discover the
86
- owner with `ads_units`, read
87
- relevant ranges with `ads_read_file` and send only a Git unified diff through
88
- `ads_apply_patch({ unit, patch, dryRun })`. A unit includes its own implementation,
89
- scenarios and fixtures; imported peers remain separate. `tokens` is the token
90
- foundation unit. Unit discovery and file ownership are distinct from preview IDs.
91
- Include only that owner's required re-exports in the public entry; preserve
92
- unrelated statements. Its real re-export may accompany removal of a redundant
93
- `export {};` placeholder; do not add empty exports. A `tokens` manifest lists the foundation
94
- entry in `companionFiles`: when creating/deleting a canonical token file such as
95
- `fonts.css`, include only its required import change there in the same patch.
96
- Preserve other imports/comments and the canonical order. Runtime owner manifests
97
- also list a `ds.config.json` companion: change only that owner's `inlineStyleFiles`
98
- and `boundaries.styleWrites` entries together with its source. Unused permissions
99
- fail the core checks; do not pre-register a boundary without its implementation.
100
- Use `dryRun: true` to
101
- inspect the isolated candidate against mandatory ADS gates and the project's
102
- acceptance policy; registered tests run when `acceptance.behaviorChecks` is true. For a prepared draft, request its diff and dry-run the returned
103
- `patchFile`; `ads_verify` checks current source and accepts no draft argument.
104
- Applying re-runs the gates. Fix rejected patches in their
105
- owner. Use `ads_apply_transaction` for genuinely coupled owner patches;
106
- never bypass a rejection with direct source writes. Shared styles/helpers use `foundation`, root guides use
83
+ For MCP-only guarded editing with `ads_status.mutations.enabled`, every source change
84
+ goes through a draft: discover the owner with `ads_units`, create its draft with
85
+ `ads_create_draft`, read relevant ranges with `ads_read_file`, edit the draft's files
86
+ or send a Git unified diff with `ads_update_draft({id, revision, patch})`, review it
87
+ with `ads_show_draft`, then `ads_accept` its exact revision (`dryRun: true` checks
88
+ without writing). A unit includes its own implementation, scenarios and fixtures;
89
+ imported peers remain separate. `tokens` is the token foundation unit. Unit
90
+ discovery and file ownership are distinct from preview IDs. An owner is in at most
91
+ one open draft; coupled owners share one draft, and a draft can depend on another
92
+ owner's open draft. Every authored file has one owner: an owner declares its public
93
+ names in `<Owner>.ads.exports.ts` and its style permissions (`styles.writes`,
94
+ `styles.inline`, `customization`) in `<Owner>.ads.contract.ts`. The public barrel,
95
+ review entry and styles entry are generated, so no draft edits them. Unused
96
+ permissions fail the core checks; do not declare a permission without its
97
+ implementation. Acceptance runs `ads check`, `acceptance.scripts`, and the draft
98
+ owners' own behavior tests and render audit (`acceptance.behavior`/`acceptance.audit`,
99
+ both default true); `ads_validate` checks everything a change reaches. Fix a failed acceptance in the
100
+ draft; never bypass a rejection with direct source writes. Shared styles/helpers use `foundation`, root guides use
107
101
  `documentation`, and branding/fonts use their discovered `assets/*` unit.
108
102
  Intentional configuration, rule exceptions, registered guard code and compiler
109
103
  changes use `configuration`; validate the proposed settings and keep mandatory
@@ -112,19 +106,22 @@ ADS gates. For binary/large assets, generate `git diff --binary --full-index` in
112
106
  stay out of model context. Binary changes require Git. These tool instructions
113
107
  apply to the MCP editing route; direct editors use the workflow above and run
114
108
  the same required gates/checks.
115
- For owner drafts, token-sample reconciliation, coupled transactions and local
109
+ For owner drafts, token-sample reconciliation, multi-owner drafts and local
116
110
  shared Data ownership, read [guarded-editing.md](references/guarded-editing.md).
117
111
  For on-demand current/candidate screenshots and visual dry-run review, read
118
112
  [captures.md](references/captures.md).
113
+ For spacing or grid diagnosis, use `ads_capture` with selected `guides` layers
114
+ (`bounds`, `tracks`, `gaps`, `padding`, `margins`, `mini`) and read the returned
115
+ PNG resource. Capture with `guides:[]` for final appearance review. Read each
116
+ image before replacing that target's slot; guides do not establish passing
117
+ layout or behavior checks. Discover supported scenarios rather than inventing IDs.
119
118
  For a rejected patch, failed check or loading error, read
120
119
  [evidence and diagnosis](references/evidence.md); inspect the failing boundary
121
120
  then page needed `ads_results` sections using the returned result ID. Inspect
122
121
  one `ads_investigate({unit,check,runId})` summary before changing APIs or policy;
123
122
  load request/error/artifact details only when relevant.
124
123
 
125
- Review/demo layout belongs in development-only `review/`, exported through the
126
- separate `${publicAlias}/review` entry (normally `@ds/review`), never the production
127
- barrel. Product patterns are application UI. For ownership, migration, token
124
+ The showcase owns generic preview UX. Project-specific demonstrations use `.ads.scenario.*`, `.ads.fixture.*`, and small `.ads.review.*` helpers. Shared helpers may be organized in `review/` and exported through `@ds/review`, never the production barrel. Product patterns are application UI. For ownership, migration, token
128
125
  renderers, build aliases or `review-import` / `review-contract` diagnostics, read
129
126
  [development review UI](references/review.md), also served as `ads://guides/review`.
130
127
 
@@ -166,7 +163,7 @@ browser APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. The
166
163
  framework setting selects compilation/mounting; controller checks also validate
167
164
  imports. For controller/behavior work, read
168
165
  [behaviors.md](references/behaviors.md), also served as `ads://guides/behaviors`. Discover registered guarantees
169
- with `ads_behaviors`; use `ads_verify` for selected real checks. Optional
166
+ with `ads_behaviors`; the gates run them, and `ads verify` runs one unit's checks from the CLI. Optional
170
167
  `exercises` links public behavioral APIs to scenarios; keep `covers` for rendered
171
168
  UI. Registration and demonstration are not passing evidence. `<Owner>.ads.contract.ts`,
172
169
  scenarios, fixtures and checks stay out of production exports/imports. Verify
@@ -176,48 +173,49 @@ production widget cannot replay development effects. Keep dynamic behavior and
176
173
  capabilities intact rather than rewriting them only for static coverage.
177
174
 
178
175
 
179
- Check `ads_status.previewWatch` before launching another preview builder. With a
180
- managed watcher, edit owned sources, wait for the rebuild and invoke the preview
181
- again; the client already starts and stops the builder through `ads mcp`. Check
176
+ Never launch another preview builder: `ads mcp` runs ADS's compiler, reported in
177
+ `ads_status.compiler`. Edit owned sources, wait for the rebuild and invoke the
178
+ preview again. Check
182
179
  `ads_status.build` or `ads://project/build` explicitly: a running process, older
183
180
  artifact or unreported freshness does not establish current source. Fix reported
184
181
  diagnostics in the owning source; notifications may not reach the agent.
185
182
  When this skill is served over MCP, resolve relative references/assets from its
186
183
  `SKILL.md` URI and fetch supporting files lazily. The host controls native skill
187
184
  activation; ordinary resource reads do not establish it. Never rebuild a project
188
- from skill text: new projects come from `ads create`.
185
+ from skill text: the starter comes from `ads init --include-starter`.
189
186
 
190
187
  ## Start from zero
191
188
 
192
- Create a new design-system project with the ADS CLI. It copies the starter that
193
- ships in the same ADS package version, so the project always matches the tool that
194
- checks it, then runs init (scripts, the tool as a development dependency, checks in
195
- the build):
189
+ Start inside the project, whose `package.json` declares its package manager
190
+ (`"packageManager"`, or a `package-lock.json` / `bun.lock`). `ads init --include-starter`
191
+ adds the starter that ships in the same ADS package version, so the design system always
192
+ matches the tool that checks it, and sets ADS up (scripts, the tool as a development
193
+ dependency, checks in the build). It adds only what the project lacks:
196
194
 
197
195
  ```sh
198
- npx @reqvire-org/ads@<version> create <folder> --framework react # or preact
199
- # Bun: bunx @reqvire-org/ads@<version> create <folder> --framework preact --package-manager bun
200
- cd <folder>
196
+ npx @reqvire-org/ads@<version> init --framework react --include-starter # or preact
197
+ # Bun: bunx @reqvire-org/ads@<version> init --framework preact --include-starter
201
198
  npm install # bun install
202
199
  npm run build # bun run build
203
200
  ```
204
201
 
205
- `--name` sets the package name (default: the folder name); the folder must be new
206
- or empty. Use the latest published version unless the user names one; read
202
+ Use the latest published version unless the user names one; read
207
203
  [references/cli.md](references/cli.md) for a local tarball (`--tool-package`).
208
204
  Never copy starter files by hand or port React files to Preact.
209
205
 
210
- The created project's `README.md` and `ADS.md` explain it. It has semantic token
206
+ The starter's `README.md` and `ADS.md` (added when the project has none) explain it. It
207
+ has a semantic token
211
208
  foundation in six groups (Color ramps and AA-checked roles, Type, Space & sizing, Shape &
212
209
  elevation, Motion, Layout) with light and dark themes declared in `ds.config.json`
213
210
  (`[data-theme]` themes the page or one section; optional `brands` add a brand axis beside
214
211
  the themes; see `ads://guides/tokens`), React or Preact
215
- TypeScript/Linaria configuration, general lint, a public barrel, project-owned
216
- review renderers (token tiles, brand preview, demo and screen frames), placeholder
217
- brand artwork with an app icon, a `Grid` (`GridItem`) on the grid tokens, an icon set with
218
- `Icon` and `IconButton`, and one example of each layer: `Button`, `IconButton`, `Icon`,
219
- `Logo`, `Image`, `TextField` and `Grid` in four component groups, the `SearchBar` pattern and the
220
- `SearchPage` composition. Treat them as the project's own: adapt or replace them
212
+ TypeScript/Linaria configuration, general lint, a generated public barrel, project-owned
213
+ review frames (demo and screen frames), placeholder brand artwork with an app icon, a
214
+ spatial definition (`tokens/spatial.ads.json`) for `@ads-layout`, an icon set with `Icon` and
215
+ `IconButton`, and examples of each layer: `Button`, `IconButton`, `Icon`, `Logo`, `Image` and
216
+ `TextField` in four component groups; the `SearchBar`, `Conversation` and `Shell` patterns; and
217
+ the `SearchPage` and `WorkspacePage` compositions. ADS renders the Tokens, Icons and Brand
218
+ views itself from the project's definitions and assets. Treat them as the project's own: adapt or replace them
221
219
  for the requested product. The browser shell is supplied by ADS tooling.
222
220
 
223
221
  Initialize/install ADS before running `npm run dev:showcase` for visual inspection.
@@ -230,7 +228,8 @@ For an existing app without an ADS, run init inside that app when the tool is
230
228
  available, then integrate its local public alias, CSS entry, and Linaria
231
229
  extraction with the existing framework. Init detects the package manager from
232
230
  the app and preserves its scripts and lockfile. Init adds only the foundation
233
- (tokens, token groups, review renderer, scenario mount); copy no other starter files.
231
+ (token sheets, `catalog.ads.json`, `spatial.ads.json`, the scenario mount and the generated
232
+ entries); copy no other starter files.
234
233
  Inspect files before editing; preserve configuration and application entry
235
234
  points. Never copy the standalone package/configuration over an existing app.
236
235
 
@@ -296,9 +295,9 @@ architectural reuse does not require moving application services into the ADS.
296
295
  Discover existing tokens and artwork before changing identity. Keep UI values
297
296
  in the existing token files using fixed ADS names, and original artwork plus its
298
297
  usage, backgrounds, credits, and licenses in `assets/brand/`. Keep fonts in
299
- `assets/fonts/`, with optional `tokens/fonts.css` imported first. Follow the
300
- canonical foundation import order: fonts (if present), colors, typography,
301
- spacing, elevation, base, then the generated `themes.generated.css`. Artwork can
298
+ `assets/fonts/`, with an optional `tokens/fonts.css`. ADS generates the styles entry
299
+ (`styles.css`) from the token sheets present, in foundation order; add or remove a sheet, never
300
+ edit the entry. Artwork can
302
301
  have fixed SVG colors; UI styles must
303
302
  still use tokens and must not override primitive state.
304
303
 
@@ -315,33 +314,47 @@ Committed native and export icons are `assets.targets` (SVG copy, PNG, ICO, ICNS
315
314
  and UI icon sets are `assets.glyphs`; `ads assets` keeps them and the committed
316
315
  `assets/generated.json` current, and `ads check` fails when they are stale. Describe
317
316
  and license each artwork in `assets/brand/README.md`, pair dark-theme variants as
318
- `<name>.dark.svg`, show them through a component, and preview them in the Brand
319
- section (`brand/<Group>/<Name>` scenarios). Finished PNG/JPEG/WebP images and
320
- delivered `.ico`/`.icns` files are artwork too; ADS never enlarges a finished
321
- image. Other products' logos are not brand artwork or glyphs: keep them, in their own
317
+ `<name>.dark.svg`, and show them through a component where the product uses them. ADS renders
318
+ the artwork in `assets/brand/` in the Brand section itself; do not author brand preview scenarios. Finished PNG/JPEG/WebP images and
319
+ delivered `.ico`/`.icns` files are artwork too; supply enough source resolution for
320
+ their production size. Enlarged inspection samples do not add image detail.
321
+ Other products' logos are not brand artwork or glyphs: keep them, in their own
322
322
  colors and under their owners' trademark and usage terms, in `assets/logos/` and
323
323
  show them as images, never muted, tinted or recolored; ADS generates
324
324
  and checks nothing there.
325
325
  Read [branding.md](references/branding.md) (`ads://guides/branding`) before changing
326
- brand artwork, icon outputs or glyphs.
327
-
328
- ## Layout widths
329
-
330
- Widths are fluid on the grid. Span columns with a `--grid-span-N` token in a container query, or
331
- use `%` or `fr`. `layout-fixed-width` fails a width that cannot shrink below 96 px, in any unit.
332
- Small parts use plain sizes up to 96 px. A panel takes `width: min(100%, 280px)`. A part that truly
333
- stays wider takes a token listed in `layout.widthTokens`, and an overlay's owner goes in
334
- `layout.fixedWidthUnits`. `max-width` is not read. Atomic CSS
326
+ brand artwork, icon outputs or glyphs. Its alignment guidance distinguishes UI
327
+ icons beside text from a brand mark paired with a name: use the project's size
328
+ roles and optical centering, and do not assume equal boxes or cap-height matching
329
+ prove visual alignment. Use its opt-in `@ads-lockup` construction to guard an owned
330
+ artwork/text pairing: declare the size token and direct artwork/text hooks, keep
331
+ text runs in spans, and fix `lockup-construction` errors at that declaration.
332
+
333
+ ## Layout
334
+
335
+ Write layout geometry (columns, placement, gutters, margins, rows, regions and panels) with
336
+ `@ads-layout` in owned Linaria styles. ADS validates it against `tokens/spatial.ads.json` and
337
+ compiles it to plain CSS; nothing ships at runtime. Choose fluid, fixed, hybrid, flow or inherited
338
+ tracks by what extra space should do, use `context: container` for regions that adapt to their own
339
+ width, and `overlay` for panels that cover content. Read [layout.md](references/layout.md)
340
+ (`ads://guides/layout`) for worked examples (page grid, tiles, nested alignment, application shell)
341
+ and the `grid-construction` fixes.
342
+
343
+ Outside `@ads-layout`, use shared sizing roles for fixed dimensions and responsive or intrinsic
344
+ sizing where the part can shrink. `layout-fixed-width` checks role membership and spatial
345
+ bounds. Use the spatial scale, standard control/icon sizes or an explicit `layout.widthTokens`
346
+ role; overlays declare their owner in `layout.fixedWidthUnits`. See the layout guide for
347
+ validated fixed tiles and hybrid panels. Atomic CSS
335
348
  does not keep rule order: give queries on one property exclusive ranges, such as
336
349
  `(min-width: 768px) and (max-width: 1023.98px)`. `ads audit` fails horizontal overflow at 390,
337
- 768 and 1280 px, and reports a set width above 96 px that overflows a 240 px container as a review item (`layout-overflow-narrow`). See the Grid section of
350
+ 768 and 1280 px, and reports a set width above 96 px that overflows a 240 px container as a review item (`layout-overflow-narrow`). See the Layout widths section of
338
351
  [design-data.md](references/design-data.md) (`ads://guides/tokens`).
339
352
 
340
353
  ## Web performance
341
354
 
342
355
  Use the project's image component; give `priority` to the view's main visible image only, since
343
- lazy loading above the fold hurts. Call `preloadFonts()` from `tokens/fonts.preload.generated.ts`
344
- in the app entry when it exists, or put its `fontPreloadTags()` in the page from a build step for an
356
+ lazy loading above the fold hurts. Call `preloadFonts()` from the public entry (the barrel re-exports it once `ads assets` has
357
+ written it) in the app entry, or put its `fontPreloadTags()` in the page from a build step for an
345
358
  earlier preload. `ads check` fails unsized or unchosen `<img>` (`img-attributes`), oversized assets
346
359
  (`asset-image-budget`, `asset-font-budget`) and a weight no face covers (`font-weight-missing`);
347
360
  `ads audit` fails layout shift above 0.1 (`layout-shift`) and an image at another shape than it
@@ -366,6 +379,22 @@ screens, browser chrome, safe areas, or mobile forms, read
366
379
  [references/mobile.md](references/mobile.md). Load these when relevant rather
367
380
  than imposing mobile application setup on every component task.
368
381
 
382
+ ## Motion
383
+
384
+ To implement, review or audit animation, read [references/motion.md](references/motion.md):
385
+ when motion is worth adding, driver choice, timing and easing through the motion tokens,
386
+ recipes for common controls, a review checklist and interruption coverage. For jank or
387
+ rendering cost, read [references/motion-performance.md](references/motion-performance.md).
388
+ `a11y-reduced-motion` already guards the reduced-motion tokens.
389
+
390
+ ## Stress-testing
391
+
392
+ To find what real content and states break a component or pattern, read
393
+ [references/stress-test.md](references/stress-test.md) and pick values from
394
+ [references/stress-catalog.md](references/stress-catalog.md). The default is a report;
395
+ fix only when asked (`+fix`). The render audit already fails overflow; a stress test adds the
396
+ content, collection, state and environment cases no guard knows.
397
+
369
398
  Implement motion inside the owner using existing tokens and reduced-motion
370
399
  policy. Use the project's existing driver, preserve documented exceptions, and
371
400
  verify interruption and cleanup. Dedicated motion or stress-test skills can
@@ -378,9 +407,9 @@ Selected guidance adapts Emil Kowalski's design/mobile skills. Preserve its
378
407
  ## Use the showcase as the design workspace
379
408
 
380
409
  Discover the existing showcase and its run/build commands before visual work.
381
- Open its MCP-reported URL to inspect the current design. If the installed tool
382
- supports the built-in client, use it; add the project compiler/scenario adapters
383
- needed for real previews instead of building another browser app.
410
+ Open its MCP-reported URL in the built-in client to inspect the current design.
411
+ Declare the project's framework and supply its native scenario mount adapter;
412
+ ADS manages preview compilation.
384
413
 
385
414
  The showcase is a minimal shell plus an MCP client and Apps host, supplied by ADS
386
415
  tooling. It discovers Tokens/Components/Patterns/Composition entries through MCP
@@ -390,24 +419,23 @@ copy its shell into the project or assemble a second catalogue/rendering pipelin
390
419
 
391
420
  When MCP is connected, open the running URL from `ads_status`. Otherwise run the
392
421
  installed `ads showcase` or the project's `dev:showcase` script. Do not launch a
393
- second runtime/compiler for the same connected project. A configured project
394
- preview watcher publishes a shared graph on first demand and after source
422
+ second runtime/compiler for the same connected project. ADS's managed Bun
423
+ preview compiler publishes a shared graph on first demand and after source
395
424
  changes. The built-in client refreshes discovery and the active scenario in the
396
425
  same App after a successful build. Shared runtime, foundation CSS, fonts and
397
426
  selected scenario modules load through MCP
398
427
  resources inside the sandboxed App. Never inject project styles/runtime into
399
- the outer host. Keep the configured framework, compiler and mount/unmount adapter
428
+ the outer host. Keep the declared framework and its native mount/unmount adapter
400
429
  consistent; scenario teardown must release owned timers, portals and workers.
401
430
  The host shows errors and marks retained output as stale. Other hosts may need an
402
- explicit preview-tool invocation. Compilation remains project-owned and required
403
- for TSX/Linaria; it is automatic, not eliminated.
431
+ explicit preview-tool invocation. ADS compiles the project's TSX/Linaria
432
+ source automatically; the application's production build remains project-owned.
404
433
 
405
- Reusable review layouts belong in development-only `review/`, exported through
406
- the separate review entry, while scenario
434
+ Project-specific review helpers use `.ads.review.*`; generic framing belongs to the showcase preview UX. Shared helpers are exported through the separate review entry, while scenario
407
435
  files define no CSS, custom classes or widget replicas. Keep real presentation in
408
436
  its component/pattern owner. The tooling shell's CSS is outside that project
409
- contract. Legacy custom showcase pages may be retained during migration; new
410
- projects require no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
437
+ contract. A project's own showcase pages are checked like other showcase source; the
438
+ built-in client requires no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
411
439
 
412
440
  Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` with tokens and
413
441
  each component/pattern. Put larger entries under `composition/<Name>/` with their
@@ -426,7 +454,8 @@ and `components/core/Button.ads.scenario.tsx` identify `components/core/Button`.
426
454
  Use one form, no duplicate IDs or hand-maintained registry. Renames change IDs.
427
455
  The showcase and external hosts mount the same discovered entry. ADS owns Bun
428
456
  preview compilation and Linaria extraction independently of the application's
429
- bundler. Configure the ADS framework and preview manifest; keep the project-owned
457
+ bundler. Declare `framework`; ADS publishes `.ds/preview/manifest.json`
458
+ automatically. Keep the project-owned
430
459
  framework mount adapter and its cleanup. Use `ads compile` for standalone/CI
431
460
  preview builds. MCP discovers metadata without importing executable TSX. Read
432
461
  [Runtime and compiler setup](references/runtimes.md) when setting up or migrating
@@ -452,41 +481,24 @@ unresolved branches do not grant speculative coverage. Tests and
452
481
  unused imports/functions do not. Static reachability does not prove successful
453
482
  mounting, correct content, every branch/state or visual parity: open each affected
454
483
  entry independently and verify real behavior at narrow/wide sizes in both themes.
455
- The older `showcase-coverage` policy separately checks application references.
456
-
457
- Token previews use that same scenario pipeline. Colocate a token scenario and
458
- fixture under the configured token directory. Declare metadata
459
- `{ title: fixture.title, covers: ["TokenSamples"], samples: fixture.samples }`.
460
- The renderer name is project-owned; use its real public API. Each literal fixture
461
- sample declares `{ token, property, probe }`: a real token, the CSS property its
462
- sample demonstrates, and a valid test value different from that token's current
463
- value. Pass `samples` into the rendered development-only review renderer. Names, sample text,
464
- bindings and probes are fixture data; displayed values come from foundation CSS.
465
- There is no property catalogue, token-name mapping or probe palette in ADS.
466
- Every token needs sample coverage; fabricated tokens, missing bindings/probes,
467
- unused fixtures and value-only lists fail the static gates. `covers: []` is invalid.
468
- During App rendering, the browser checks sample markers `data-ads-token` and
469
- `data-ads-property`, validates CSS with its own `CSS.supports`, and temporarily
470
- probes each token to verify that the declared sample property responds. It restores
471
- values immediately. Missing, hidden, invalid or hardcoded samples produce a preview
472
- error instead of a successful review. These browser checks apply to the mounted
473
- scenario/theme, not every application state or pixel-level design quality.
474
- Keep styles in the project renderer; do not add inline-style exemptions to scenarios.
475
- Fix `token-scenario-reference`, `token-scenario-render` and `token-scenario-coverage`
476
- findings. Metadata and unused fixture fields do not count. Discover exact token IDs with `ads_scenarios({kind:"tokens"})`; mount them
477
- with `ads_show_scenario({id})` or `ads_show_tokens({category:id})`. With the shared
478
- resource compiler, omitting category opens the first project token scenario.
479
- Legacy compilers retain the generic definition inspector. Use `ads_tokens` for
480
- source definitions and values; inspecting definitions does not prove UI parity.
481
- The tool keeps the shared naming contract; sample templates and their token
482
- lists belong to the project.
483
-
484
- Development review helpers need no product catalogue scenario. A token scenario
485
- may name its review renderer in `covers`; ordinary component/pattern scenarios
486
- cover their production subjects. Keep review exports in the separate review entry.
484
+ The `showcase-coverage` policy also checks application render references.
485
+
486
+ ADS renders the Tokens views itself from the token definitions and `tokens/catalog.ads.json`.
487
+ Each catalogue group is a sidebar group with one view per kind of token
488
+ (`tokens/<Group>/<section>`, such as `tokens/Typography/line-height`); a group with one kind is a
489
+ single `tokens/<Group>` view. The catalogue groups tokens and gives each a sample binding:
490
+ `{ "token": "--accent", "property": "background-color", "probe": "rgb(31, 97, 163)" }`, the CSS
491
+ property the token is shown with and a valid test value different from its own. Tokens without an
492
+ entry appear in a "Values" group with a default binding for their type. Do not author
493
+ `tokens/…` scenarios or token review renderers: a project scenario with a foundation view's
494
+ ID fails. Invalid catalogue entries are `foundation-catalog` errors. Discover the views with
495
+ `ads_scenarios({kind:"tokens"})` and inspect definitions with `ads_tokens`.
496
+
497
+ Development review helpers need no product catalogue scenario; component and pattern
498
+ scenarios cover their production subjects. Keep review exports in the separate review entry.
487
499
  Remove redundant helper catalogue scenarios during migration. Product UI retains
488
500
  its real render-coverage requirement. Keep directory ownership anchored by its
489
- implementation entry (`index` or a file matching the directory name) or colocated fixture.
501
+ implementation entry (`index` or a file matching the directory name).
490
502
  Import colocated image/font fixtures so MCP serves them through asset resources.
491
503
  For a broken-image case, use a local failing fixture, rather than an external
492
504
  network failure or a domain-specific CSP exception. Production asset APIs remain
@@ -531,19 +543,18 @@ the ADS server package itself. Persistent SSE/notification streams make
531
543
 
532
544
 
533
545
 
534
- Run ADS's own gates directly with `ads check`; acceptance and validation do not
535
- require Oxlint. Register project-specific checks as explicit package scripts in
536
- `acceptance.checks` / `validation.checks`, and behavior tests through ADS contracts.
537
- The developer chooses each policy's `behaviorChecks` flag; registration alone
538
- does not gate acceptance. Direct edits can run `ads validate --policy acceptance`
539
- or `ads_validate({policy:"acceptance"})`. Follow [validation](references/validation.md)
540
- for triggers and evidence scopes; never weaken a policy to pass a failing change.
546
+ Run ADS's own gates directly with `ads check`. Register project-specific checks as explicit package scripts in
547
+ `acceptance.scripts` / `validation.scripts` (list each once), and behavior tests
548
+ through ADS contracts. Direct edits run `ads validate --changed` or
549
+ `ads_validate({scope:"changed"})`. Follow [validation](references/validation.md)
550
+ for what each gate runs; never weaken a gate to pass a failing change.
541
551
  A project can use its own linter in those scripts when desired. Measured renderer properties and documented
542
- non-state hooks use explicit `boundaries`; shared token writes and primitive
543
- state overrides cannot be allowlisted. When migrating JSX inline geometry to
544
- imperative writes, port the source and replace its own boundary entries together
545
- in the owner's patch. Remove obsolete `inlineStyleFiles` entries and unused
546
- `styleWrites` properties; do not broaden permissions to keep a migration passing.
552
+ non-state hooks are declared in the owner's contract (`styles.writes`,
553
+ `styles.inline`, `customization`); shared token writes and primitive state overrides
554
+ cannot be allowed. When moving JSX inline geometry to imperative writes, change the
555
+ source and its contract permissions together in the owner's draft. Remove obsolete
556
+ `styles.inline` entries and unused `styles.writes` properties; do not broaden
557
+ permissions to keep a change passing.
547
558
  Pointer-capture advisories call for review of cancellation, capture loss and
548
559
  teardown, including cleanup delegated to hooks. Verify actual cleanup in a browser;
549
560
  a locally present handler alone does not prove correctness.
@@ -590,9 +601,10 @@ loading notifications on success and failure. Keep field errors and persistent
590
601
  information in the relevant form, inline alert, or dialog.
591
602
 
592
603
  Customize through shared tokens, component mappings and documented variants. Stacking, gestures,
593
- measured geometry, and animation belong to the component. Register applicable
594
- component-local usage rules in project tooling; do not assume the starter
595
- includes them or that core tooling bundles this component.
604
+ measured geometry, and animation belong to the component. Register the notification API in
605
+ `usage.notifications` (`[{ "api", "host", "rootFiles" }]` in `ds.config.json`): `ads check` then
606
+ fails a call during render or from a `'use server'` module (`notification-client-usage`) and a
607
+ host mounted outside the listed roots (`notification-host-root`).
596
608
 
597
609
  ## Validate
598
610
 
@@ -619,10 +631,6 @@ declarative parent graphs, constrained theme bindings, private visual subject ro
619
631
  shared Data ownership and guarded migration, read
620
632
  [contracts.md](references/contracts.md) when the task touches those contracts.
621
633
 
622
- For a suspected ADS defect or missing capability after targeted investigation, read
623
- [reporting.md](references/reporting.md). Record actionable observations with
624
- `ads_report_bug` or `ads_request_feature`; preserve valid APIs and rejected drafts.
625
-
626
634
  For Data/UX/Skin boundaries, shared token reuse and private-value diagnostics, read
627
635
  [design-data.md](references/design-data.md). Components own mappings and mechanics,
628
636
  not independent token catalogues. Existing project font, text and spacing roles
@@ -26,7 +26,7 @@ attribute, or move the interaction to a native control. Do not silence it with a
26
26
  value. Fix `component-contrast` with the role contract: `--x-text` on `--x-bg`, `--x-fg` on
27
27
  `--x`; never a status color (`--success`) as text on its own tint (`--success-bg`).
28
28
 
29
- ## Browser audit (axe-core and non-text contrast)
29
+ ## Render audit (axe-core and non-text contrast)
30
30
 
31
31
  Run `ads audit` after changing a component, pattern or composition scenario. It renders
32
32
  each one in every declared brand and theme, runs axe-core's WCAG A/AA rules on the
@@ -42,7 +42,7 @@ Each finding is an `a11y-axe` error on the scenario file, naming the axe rule, t
42
42
  criterion, the themes and brands it fails in, the failing elements and the rule's help link:
43
43
 
44
44
  ```text
45
- design-system/components/Broken.scenario.tsx:1:1 [error:a11y-axe] axe button-name (critical), WCAG 4.1.2 in components/Broken [light, dark]: Buttons must have discernible text. 1 element: button. https://dequeuniversity.com/rules/axe/4.14/button-name?application=axeAPI
45
+ design-system/components/Broken.ads.scenario.tsx:1:1 [error:a11y-axe] axe button-name (critical), WCAG 4.1.2 in components/Broken [light, dark]: Buttons must have discernible text. 1 element: button. https://dequeuniversity.com/rules/axe/4.14/button-name?application=axeAPI
46
46
  ```
47
47
 
48
48
  - Fix the finding in the component that renders the failing element, not in the scenario.
@@ -59,17 +59,20 @@ design-system/components/Broken.scenario.tsx:1:1 [error:a11y-axe] axe button-nam
59
59
  or `-fg` token. Disabled controls are exempt. Each finding names the elements, themes,
60
60
  brands and lowest ratio.
61
61
  - A failed render is retried on its own, up to 3 attempts. Read `retries` for retried passes; a
62
- `browser-audit` error names a scenario that still failed and its last cause.
62
+ `render-audit` error names a scenario that still failed and its last cause.
63
63
  - Token and brand scenarios are skipped; name one with `--scenario` to audit it.
64
- - `ads validate`/`ads_validate` run the audit in both policies (`validation` and
65
- `acceptance`); its findings fail the policy, as they fail `ads audit`. `ads_accept`,
66
- `ads_apply_patch` and `ads_apply_transaction` audit the candidate's affected scenarios
67
- and reject the change on any `a11y-axe` or `a11y-non-text-contrast` error; read the findings with `ads_results`
68
- (`diagnostics`). `"browserAudit": false` in a policy turns its audit off.
64
+ - `ads validate`/`ads_validate` always run the audit of every scenario their change
65
+ set reaches (everything with scope `all`); its findings fail validation, as they
66
+ fail `ads audit`. `ads_accept` audits the draft owners' own scenarios unless
67
+ `acceptance.audit` is false, and rejects the draft on any `a11y-axe` or
68
+ `a11y-non-text-contrast` error; read the findings with `ads_results`
69
+ (`diagnostics`). After a series of accepted drafts, `ads_validate` with
70
+ `scope:"changed"` audits everything they reach. `mcp.auditPages` (1–16, default 4) sets how many pages
71
+ render at once.
69
72
  - It needs the project's Playwright and browser, as captures do: `npm install -D
70
- @playwright/test` and `npx playwright install chromium` (`ads create` and
71
- `ads init` declare `@playwright/test`). `mcp.capture` selects the browser or an installed Chrome channel.
72
- Without them the policy fails with a `browser-audit` error.
73
+ @playwright/test` and `npx playwright install chromium` (`ads init` declares
74
+ `@playwright/test`). `mcp.capture` selects the browser or an installed Chrome channel.
75
+ Without them the gate fails with a `render-audit` error.
73
76
 
74
77
  A clean audit is not a pass: automated rules find only part of the WCAG failures. Keep the
75
78
  manual checks below.
@@ -147,8 +147,8 @@ around the bare `+`, leaving `0.05+1`. The browser then treats the transform as
147
147
  invalid. This can happen with CSS minification disabled. Source guards cannot
148
148
  prove what a later extractor emits.
149
149
 
150
- Use ADS's build-only resolver in **both** the application's Linaria configuration
151
- and its separately configured MCP preview builder:
150
+ Use ADS's build-only resolver in the application's Linaria configuration.
151
+ ADS's managed Bun preview compiler already uses it:
152
152
 
153
153
  ```js
154
154
  import wyw from "@wyw-in-js/vite";
@@ -161,7 +161,7 @@ wyw({ tagResolver: linariaTagResolver });
161
161
  The resolver keeps the project's installed atomic processor and preserves opaque
162
162
  custom-property values through its nesting/atomization pass. It does not add a
163
163
  browser runtime or alter token ownership. Existing projects must adopt it in
164
- each extraction pipeline; upgrading ADS alone does not rewrite custom builders.
164
+ their application extraction pipelines; upgrading ADS does not rewrite those builders.
165
165
  If an existing `tagResolver` handles other tags, delegate atomic imports to
166
166
  `linariaTagResolver(source, tag)` and retain the existing fallback. WyW config
167
167
  files also support this resolver when a build integration requires serializable
@@ -235,7 +235,7 @@ the conflict. Prefer resolving the composition itself. If an overlap is
235
235
  intentional, document why its precedence is stable and verify the resulting
236
236
  behavior rather than changing product capabilities to silence a review item.
237
237
 
238
- Use existing behavior contracts and `ads_verify` for important geometry. Register
238
+ Use existing behavior contracts, run by the gates or `ads verify`, for important geometry. Register
239
239
  a check beside its owner, link its real scenario and use the project's browser
240
240
  profile. An assertion can inspect the actual control in the App frame:
241
241