@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
@@ -0,0 +1,602 @@
1
+ # ADS 0.4.1 → 0.4.2
2
+
3
+ Status: planned next patch release. This guide describes changes from the committed
4
+ 0.4.1 source to the current development tree. Confirm the target package or local
5
+ build contains them before applying it; the guide does not publish 0.4.2.
6
+
7
+ This upgrade includes source/configuration incompatibilities despite the patch
8
+ number. Apply the relevant sections to an existing design system; a fresh starter
9
+ already has the new layout.
10
+
11
+ Contents: [configuration](#1-runtime-and-configuration),
12
+ [file roles](#2-mark-project-development-source),
13
+ [showcase and mounts](#3-move-generic-showcase-ux-to-ads),
14
+ [tokens](#4-separate-product-tokens-from-demonstration-values),
15
+ [production builds](#5-enforce-the-production-boundary),
16
+ [compiler and integrations](#6-replace-old-preview-builders-and-integrations),
17
+ [icons](#7-repair-missing-starter-icon-configuration),
18
+ [obsolete files](#8-remove-obsolete-files),
19
+ [token and brand views](#9-let-ads-render-the-tokens-and-brand-views),
20
+ [layouts](#10-replace-the-grid-wrapper-with-ads-layout),
21
+ [guide options and tools](#11-guide-options-and-tools),
22
+ [verification](#12-regenerate-and-verify),
23
+ [ADS contributors](#ads-repository-only-shared-starters-and-playground).
24
+
25
+ ## 1. Runtime and configuration
26
+
27
+ ADS CLI/MCP execution now requires Bun ≥1.4.1. Keep an npm/Node application's
28
+ runtime and build tools if that is what the project uses; install Bun for ADS and
29
+ make it available to CI and the MCP launcher too. Replace launchers that force
30
+ `node .../ads/dist/cli.mjs` or the ADS server with Bun. The `linaria`,
31
+ `scenarios/vite` and `verification` package integrations remain usable from Node.
32
+
33
+ Upgrade the existing dependency with the project's package manager, for example
34
+ `npm install --save-dev @reqvire-org/ads@0.4.2` or
35
+ `bun add --dev @reqvire-org/ads@0.4.2` **once that release is available**. For a
36
+ pre-release migration, use the supplied local target package instead. Retain the
37
+ dependency's existing placement if the project deliberately manages it elsewhere.
38
+
39
+ Unknown configuration fields now fail. Remove the following keys from
40
+ `ds.config.json`, including keys whose value is `null` or a former default:
41
+
42
+ | Removed field | Required replacement/action |
43
+ |---------------|-----------------------------|
44
+ | `publicAlias` | Use `@ds` and `@ds/review`; update source imports and aliases if customized. |
45
+ | `publicEntry` | Generated production entry is `<dsDir>/index.ts`. |
46
+ | `reviewEntry` | Generated review entry is `<dsDir>/review/index.ads.review.ts`. |
47
+ | `stylesEntry` | Generated foundation CSS entry is `<dsDir>/styles.css`. |
48
+ | `tokenDir` | Foundation sheets live in `<dsDir>/tokens/`. |
49
+ | `oxlint` | Move project lint plugins/rules/overrides into the project's own linter configuration; remove ADS adapter registration. Keep `ads check` as a separate gate. |
50
+ | `mcp.previewManifest` | ADS publishes `.ds/preview/manifest.json` automatically. |
51
+ | `mcp.previewWatch` | ADS owns the preview compiler; custom commands and `false` external-builder mode are removed. |
52
+ | `mcp.apps` | Discover scenarios through ADS; separate registered HTML pages are removed. |
53
+ | `mcp.showcaseUrl` | Use the running server's reported URL; launch `ads mcp`/`ads showcase` with `--port` when a stable port is needed. |
54
+
55
+ `sourceDir`, `dsDir`, `framework`, themes, brands, assets and supported resource/
56
+ validation settings remain project choices. If an old layout was customized,
57
+ move its actual content to the fixed paths and update every consumer before
58
+ removing the configuration overrides. Merely deleting the keys loses the mapping.
59
+
60
+ The 0.4.1 gate configuration already uses `acceptance.scripts`,
61
+ `acceptance.behavior`, `acceptance.audit`, and `validation.scripts`/`inputs`.
62
+ Preserve it. Older `checks`, `behaviorChecks`, `browserAudit` or validation policy
63
+ settings indicate an earlier migration is incomplete; they are not new 0.4.2 fields.
64
+
65
+ ## 2. Mark project development source
66
+
67
+ Folder names no longer make source development-only. Unmarked implementation in
68
+ `review/`, `showcase/`, `composition/` or `brand/` fails `development-role`.
69
+ Use the role in the filename, including for colocated development code:
70
+
71
+ | Existing responsibility/example | Target |
72
+ |---------------------------------|--------|
73
+ | `review/demo-frame/DemoFrame.tsx` | `DemoFrame.ads.review.tsx` |
74
+ | Owned review styles, such as `review/frame/frame.css` | `frame.ads.review.css` |
75
+ | Generated `review/index.ts` | `review/index.ads.review.ts` |
76
+ | `showcase/mcp/main.tsx` | `showcase/mcp/main.ads.mount.tsx` |
77
+ | A retained development HTML mount | `index.ads.mount.html` |
78
+ | Scenario and fixture | `<Owner>.ads.scenario.tsx`, `<Owner>.ads.fixture.ts` (already marked in 0.4.1) |
79
+ | Plural `.ads.fixtures.*` spelling | Rename to `.ads.fixture.*` and update imports; the plural role is no longer accepted. |
80
+ | Non-styling development helper | `<Name>.ads.helpers.ts`/`.tsx` |
81
+
82
+ Review scripts/styles use `.ads.review.*`; mount scripts/HTML use `.ads.mount.*`.
83
+ Token and brand review renderers (`TokenPreview`, `BrandPreview`) are not renamed:
84
+ ADS renders those views itself, so remove them as described in
85
+ [section 9](#9-let-ads-render-the-tokens-and-brand-views).
86
+ Keep the established `.ads.exports.ts`, `.ads.contract.ts` and test/spec roles.
87
+ Tests and declaration files have their existing exceptions. Product code and
88
+ artwork do not acquire a marker merely because a review uses them.
89
+
90
+ After renaming, update imports, owner exports, contract implementation references,
91
+ test paths, aliases, build includes/excludes and links. For example:
92
+
93
+ ```ts
94
+ // review/demo-frame/DemoFrame.ads.exports.ts
95
+ export { DemoFrame } from "./DemoFrame.ads.review";
96
+ ```
97
+
98
+ Shared review owners belong under `review/`; ADS collects their exports sidecars
99
+ into the review entry. A helper local to a production owner may remain colocated
100
+ and marked, imported directly by development consumers. Do not put that helper
101
+ in a production owner's `.ads.exports.ts`: exports outside `review/` feed the
102
+ production barrel.
103
+
104
+ Regenerate entries with `ads assets` after editing owner sidecars. Remove the old
105
+ generated `review/index.ts` once all references have moved. If it contains manual
106
+ edits, preserve their intended exports in the correct owner sidecars first.
107
+ Update `@ds/review` in TypeScript and any independent dev/bundler harness to
108
+ `<dsDir>/review/index.ads.review.ts`. Put that exact alias before a broad `@ds`
109
+ alias in an ordered resolver.
110
+
111
+ Inspect responsibility before moving anything. A genuine product pattern named
112
+ `TokenPreview` or `Showcase` remains production UI if applications use it. A demo
113
+ wrapper incorrectly exported as product UI must have its consumers moved to the
114
+ review entry before its production export is removed. Do not delete real behavior
115
+ or coverage to make a rename pass.
116
+
117
+ ## 3. Move generic showcase UX to ADS
118
+
119
+ ADS owns navigation, section grouping, theme/viewport controls, preview framing,
120
+ hosting and grid inspection. A project supplies actual design examples and small
121
+ review helpers needed to demonstrate them. Keep these helpers next to the subject
122
+ or in `review/`; they do not belong in the application's `src/` unless they are
123
+ actual application UI.
124
+
125
+ Replace copied generic `Showcase.tsx`, page browsers, framing CSS and production
126
+ demo-frame patterns with the tooling preview API. Preserve project-specific
127
+ arrangements and stateful demonstrations as `.ads.review.*`. Token and brand
128
+ presentation moves to ADS entirely ([section 9](#9-let-ads-render-the-tokens-and-brand-views)).
129
+ There is no requirement to maintain `TokensPage`, `ComponentsPage`, `PatternsPage`
130
+ or `CompositionPage`; the shell discovers scenario groups. Remove obsolete pages
131
+ and their imports only after preserving any unique scenarios or fixtures they held.
132
+
133
+ The compiler imports **`showcase/mcp/main.ads.mount.tsx`**. Renaming the file is
134
+ mandatory even if retaining a custom native mount: this applies the development
135
+ filename rule to the compiler's entrypoint. The `mountScenario(Scenario, container)`
136
+ signature and returned cleanup function are unchanged.
137
+
138
+ To adopt ADS-owned framing, render into `createPreviewRoot(container)` and clean
139
+ up both the framework root and frame on unmount, as below. This replaces copied
140
+ generic frame styling; it is not a new mount signature or a requirement enforced
141
+ on custom mount implementations. Preserve necessary project providers and custom
142
+ lifecycle behavior.
143
+
144
+ React example:
145
+
146
+ ```tsx
147
+ import { createRoot } from "react-dom/client";
148
+ import type { ComponentType } from "react";
149
+ import { createPreviewRoot } from "@reqvire-org/ads/preview";
150
+ import "@ds";
151
+
152
+ export function mountScenario(Scenario: ComponentType, container: HTMLElement) {
153
+ const frame = createPreviewRoot(container);
154
+ const root = createRoot(frame);
155
+ root.render(<Scenario />);
156
+ return () => { root.unmount(); frame.remove(); };
157
+ }
158
+ ```
159
+
160
+ Preact uses its native renderer:
161
+
162
+ ```tsx
163
+ import { render, type ComponentType } from "preact";
164
+ import { createPreviewRoot } from "@reqvire-org/ads/preview";
165
+ import "@ds";
166
+
167
+ export function mountScenario(Scenario: ComponentType, container: HTMLElement) {
168
+ const frame = createPreviewRoot(container);
169
+ render(<Scenario />, frame);
170
+ return () => { render(null, frame); frame.remove(); };
171
+ }
172
+ ```
173
+
174
+ Small project review adapters can use `previewFrameClasses` from the same package,
175
+ for example `<div className={previewFrameClasses("row", "padded")}>…</div>`.
176
+ ADS supplies that generic framing CSS during preview compilation. Do not copy the
177
+ tool stylesheet into product tokens or import the preview API from production.
178
+ The old unused `showcase/mcp/index.html` is unnecessary for ADS's managed compiler;
179
+ retain a marked HTML mount only if a separate deliberate dev harness still uses it.
180
+
181
+ ## 4. Separate product tokens from demonstration values
182
+
183
+ Trace consumers before changing token ownership. Foundation sheets contain product
184
+ palette primitives, scales and semantic roles. A value used by both production
185
+ and review remains a production token; review may reuse it. Component `--ds-*`
186
+ and pattern `--ux-*` mappings stay in their owners rather than creating more shared
187
+ token catalogues. Do not add `audience`, `mixed`, `unknown` or classification flags
188
+ as a migration prerequisite.
189
+
190
+ For values used only to size a demonstration:
191
+
192
+ 1. Move the sizing into the responsible `.ads.review.*` helper/style, or use the
193
+ generic preview framing API if it already supplies the arrangement.
194
+ 2. Update review consumers and remove the obsolete shared token declaration only
195
+ after verifying no production consumer depends on it. Remove its entry from
196
+ `tokens/catalog.ads.json` ([section 9](#9-let-ads-render-the-tokens-and-brand-views)).
197
+ 3. Regenerate entries/theme output and check token coverage. Preserve product
198
+ colors, typography, spacing and state semantics.
199
+
200
+ Raw finite demonstration sizes are allowed only on `width`, `height`,
201
+ `inline-size`, `block-size` and their `min-`/`max-` variants, `flex-basis`,
202
+ `grid-template-columns` and `grid-template-rows` in marked review implementation.
203
+ This does not permit arbitrary hardcoded colors, spacing, type or motion, inline
204
+ styles without their normal contract, or overrides of product state styling.
205
+ Scenarios/fixtures still define no CSS; a helper's filename grants no other bypass.
206
+
207
+ CSS files with `.ads.*` in their name are excluded from the shared token inventory,
208
+ including when located beneath `tokens/`. That is not a new review token system:
209
+ prefer local helper geometry and existing product tokens. Move production values
210
+ out of a mistakenly marked sheet, and remove marked review CSS from product imports.
211
+
212
+ If reporting counts, distinguish primitive palettes/scales from semantic product
213
+ roles, list review-only values separately, and exclude owner mappings from shared
214
+ counts. Explain whether light/dark halves were collapsed. A lower inventory count
215
+ after removing demo values is not evidence that product tokens were lost.
216
+
217
+ ## 5. Enforce the production boundary
218
+
219
+ Replace the old `draftImportGuard` import and plugin call in the production
220
+ Vite/Rollup configuration with `developmentImportGuard` from the same package:
221
+
222
+ ```ts
223
+ import { developmentImportGuard } from "@reqvire-org/ads/scenarios/vite";
224
+ // Include developmentImportGuard() in the existing plugins array.
225
+ ```
226
+
227
+ `draftImportGuard` is no longer exported; there is no compatibility alias.
228
+ `developmentImportGuard()` rejects unaccepted drafts, all `.ads.*` modules/styles
229
+ and the preview API, including entry loads and resolved aliases or symlinks.
230
+ A build that previously imported a review helper may now fail correctly.
231
+ Move real reusable application behavior into its production owner and keep the
232
+ demonstration consumer in review; do not rename development code to evade the guard.
233
+
234
+ Production imports use the generated `@ds` barrel, never `.ads.exports.ts` itself,
235
+ `@ds/review`, `.ads.*` source or `@reqvire-org/ads/preview`. For declaration builds,
236
+ start from the production entry and exclude development files. TypeScript `exclude`
237
+ alone does not prevent a production import from pulling them in. Inspect the real
238
+ production JS/CSS/declarations, including projects with another bundler.
239
+
240
+ ## 6. Replace old preview builders and integrations
241
+
242
+ An ordinary 0.4.1 starter already uses `vite build` plus TypeScript for production
243
+ and `ads compile .` for previews. Those commands remain valid. Update its review
244
+ alias, replace the `draftImportGuard` import/call with `developmentImportGuard`,
245
+ and resolve any newly rejected production imports.
246
+
247
+ ADS now exclusively owns preview compilation through its managed Bun compiler
248
+ and shared resource graph. The builder removals below affect projects using those
249
+ old integrations. Remove or replace scripts/configuration that call removed APIs,
250
+ preserving any application work they also perform. Keep the application's Vite
251
+ build and Linaria integration. A thin script calling `compilePreviews()` from
252
+ `@reqvire-org/ads/scenarios/compile` remains supported, as does `ads compile .`;
253
+ neither needs replacing just for this upgrade. Do not launch a separate watcher
254
+ alongside the compiler managed by `ads mcp` or `ads showcase`.
255
+
256
+ | Old integration | Migration |
257
+ |-----------------|-----------|
258
+ | `draftImportGuard()` from `scenarios/vite` | Replace the import and call with `developmentImportGuard()`; the old export is removed. |
259
+ | `createVitePreviewBuilder`, `createPreviewResources`, `previewEntriesPlugin`, `scenarioRegistryPlugin`, `inlineScenarioHtml` from `scenarios/vite` | Remove preview-builder/virtual-registry usage. The export now supplies only the production guards. ADS discovers marked scenarios. |
260
+ | `@reqvire-org/ads/scenarios/compiler`, `/scenarios/bun`, `/mcp/build` | Removed public subpaths. Replace project builder/reporter scripts with `ads compile`, or let `ads mcp`/`ads showcase` manage compilation. |
261
+ | `ads lint-config`, `generateLintConfig`, `@reqvire-org/ads/oxlint`, generated `.ds/oxlintrc.json` | Remove ADS adapter wiring. Preserve project lint rules in its own configuration and execute its lint scripts alongside `ads check`. |
262
+ | `ads create`, `createProject`, `--name`, `--package-manager` | Setup scripts use an existing directory/package.json and `ads init --framework react\|preact`, optionally `--include-starter` for a fresh example. Init reads `packageManager` or an npm/Bun lockfile, not the launcher. Existing projects need source migration, not reinitialization. |
263
+ | Legacy `ds …` package scripts | Update explicitly to `ads …`; init no longer recognizes them as managed scripts. |
264
+ | Starter/repository `build:mcp-previews` script | Use `build:showcase` (`ads compile .`). Update callers, then delete the duplicate script. ADS recognizes `build:showcase` as configuration tooling. |
265
+ | Starter/repository `preview` or `preview:showcase` scripts | Use `dev:showcase` (`ads showcase`), then delete these duplicate scripts. Preserve an application's own preview command if it serves the application. |
266
+ | Repository `test:tool` script | Use `bun run test`; the duplicate script is removed. |
267
+ | Per-scenario HTML artifacts, `ui://ads/scenario`, `ui://ads/tokens` | Use discovered scenarios and the shared `ui://ads/preview` App/resource graph. |
268
+ | `?category=…` links | Use `?scenario=<discovered scenario id>`; do not invent a category alias. |
269
+ | `ads_show_tokens` | Use `ads_scenarios({kind:"tokens"})` then `ads_show_scenario({id})`. |
270
+ | `ads_status.previewWatch` | Read `ads_status.compiler`; also inspect build freshness/errors. |
271
+ | `ads_prepare_token_samples` | Removed. Token sample bindings are data in `tokens/catalog.ads.json`; edit it in a `tokens` draft ([section 9](#9-let-ads-render-the-tokens-and-brand-views)). |
272
+ | `ads_report_bug`, `ads_request_feature`, `ads_status.reports`, reporting guide/store | Removed. Update dependent automation; retained local report data is not a migration input and need not be deleted. |
273
+ | Unconditional `ads_skills` / `ads_read_skill` calls | Modern `2026-07-28` clients use native `skills/list`, `skills/get` and skill resources. The tools remain for 2025-era clients. |
274
+
275
+ The runtime's `showcaseUrl` is authoritative; `--no-showcase` produces no showcase
276
+ URL. Restart existing servers after upgrading so a new CLI does not talk to an
277
+ old process. Do not run a second watcher beside the managed compiler.
278
+
279
+ Remove the old full-preview build from `acceptance.scripts`; do not replace it
280
+ there with `build:showcase`. ADS already compiles the affected previews during
281
+ acceptance. Preserve other custom checks and any application-specific work in a
282
+ script before removing its old name.
283
+
284
+ ## 7. Repair missing starter icon configuration
285
+
286
+ New `init --include-starter` configurations now retain the selected starter's asset
287
+ choices. Existing configurations are preserved, so an older copied starter can
288
+ have glyph files but `assets.glyphs: null`, which hides the Icons section.
289
+
290
+ If this affects the project, merge the appropriate asset paths/settings. For the
291
+ unchanged starter these are:
292
+
293
+ ```json
294
+ {
295
+ "assets": {
296
+ "iconSource": "assets/brand/app-icon.svg",
297
+ "glyphs": {
298
+ "source": "assets/glyphs",
299
+ "output": "components/Content/Icon/glyphs.ts",
300
+ "attributes": {
301
+ "fill": "none", "stroke": "currentColor", "stroke-width": "2",
302
+ "stroke-linecap": "round", "stroke-linejoin": "round"
303
+ }
304
+ }
305
+ }
306
+ }
307
+ ```
308
+
309
+ These paths are relative to `dsDir`. Preserve existing `assets` settings and the
310
+ project's own icon source, glyph location and paint attributes. `iconSource` is
311
+ for brand asset generation; `glyphs` config enables the glyph catalogue. Do not
312
+ point at missing starter artwork or overwrite a custom icon implementation.
313
+ Run `ads assets`, then verify Icons search, aliases, rendering and size/grid views.
314
+
315
+ ## 8. Remove obsolete files
316
+
317
+ Finish renames as moves, not copies that leave both versions behind. ADS writes
318
+ the new generated entries; it does not delete every obsolete project file for you.
319
+ Paths below are relative to `dsDir` except where identified as project-root paths.
320
+
321
+ | Old file or responsibility | Cleanup after migrating its consumers |
322
+ |----------------------------|---------------------------------------|
323
+ | `review/index.ts` | Remove after preserving any manual export intent in owner sidecars and generating `review/index.ads.review.ts`. Update all aliases/direct imports. |
324
+ | `showcase/mcp/main.tsx` | Move its implementation/providers/cleanup into `main.ads.mount.tsx`; the old path must be absent. |
325
+ | Unmarked review implementations/styles, such as `DemoFrame.tsx` or `frame.css` | Move to their `.ads.review.*` names and update imports/contracts/exports. Remove the old copies; retain the migrated implementation. |
326
+ | `showcase/mcp/index.html` | Remove the old ADS preview entry when adopting the managed showcase. If a deliberate separate dev harness still uses it, migrate that harness and rename its entry to `index.ads.mount.html`. |
327
+ | Copied generic showcase shell, catalogue pages and framing CSS | Remove after the tool shell replaces their responsibilities and unique examples/state have moved into marked scenarios/review helpers. Names such as `Showcase.tsx`, `showcase.css` or `TokensPage.tsx` are examples, not a deletion glob. Preserve actual application UI. |
328
+ | Project-root scripts/configuration that exist solely for removed preview-builder APIs | Remove after updating package scripts, CI and launch settings to ADS-managed compilation. Preserve unrelated application build logic. A supported `compilePreviews()` wrapper need not be deleted. |
329
+ | Project-root `.ds/oxlintrc.json` and helpers used solely by the removed ADS Oxlint adapter | Remove generated adapter configuration after migrating any project rules into the project's own linter config and removing references. Keep the project's linter and its real rules. |
330
+
331
+ Remove review-only token declarations once all consumers have moved, but keep a
332
+ foundation sheet that still defines product tokens. Remove obsolete scripts/imports
333
+ from configuration along with their files; remove a dependency through the package
334
+ manager only if nothing retained uses it.
335
+
336
+ Old standalone showcase build outputs, such as `dist-showcase/`, can be discarded
337
+ if that directory belongs exclusively to the retired builder. No blanket cache
338
+ deletion is required. `.ds/scenarios/manifest.json` and the preview resource graph
339
+ remain active ADS outputs; let the target compiler regenerate them. Preserve
340
+ unfinished drafts (`ads-drafts/` and associated `.ds/` state), captures/report data
341
+ and unrelated work. Do not delete the consuming project's `design-system/`, assets,
342
+ Vite/TypeScript configuration or lockfile because ADS's own repository removed or
343
+ reorganized similarly named files.
344
+
345
+ Search for each retired path/import in source, aliases, scripts and CI, then run
346
+ the verification below. Include the actual removed files in the migration report.
347
+
348
+ ## 9. Let ADS render the Tokens and Brand views
349
+
350
+ ADS now builds the **Tokens** section itself from the token sheets and a new
351
+ `tokens/catalog.ads.json`. Each catalogue group is a sidebar group with one view per kind of
352
+ token, `tokens/<Group>/<section>` (for example `tokens/Typography/line-height`); a group with one
353
+ kind is a single `tokens/<Group>` view. It builds the **Brand** section
354
+ (`brand/Assets`) from the artwork in `assets/brand/`, subfolders such as `pictograms/`
355
+ included. Projects no longer author token scenarios, brand preview scenarios or their
356
+ review renderers.
357
+
358
+ 1. **Create the catalogue from the existing token fixtures.** Each 0.4.1 token scenario
359
+ (`tokens/<Name>.ads.scenario.tsx`) has a fixture with `samples: [{ token, property, probe }]`.
360
+ Turn each into one group, keeping the bindings unchanged:
361
+
362
+ ```ts
363
+ // Before: tokens/Color.ads.fixture.ts
364
+ export const fixture = { title: "Color", samples: [
365
+ { token: "--accent", property: "background-color", probe: "rgb(31, 97, 163)" },
366
+ ] };
367
+ ```
368
+
369
+ ```json
370
+ // After: tokens/catalog.ads.json
371
+ { "schemaVersion": 1, "groups": [
372
+ { "id": "Color", "title": "Color", "samples": [
373
+ { "token": "--accent", "property": "background-color", "probe": "rgb(31, 97, 163)" }
374
+ ] }
375
+ ] }
376
+ ```
377
+
378
+ Group ids must be unique and each token may belong to one group. A token with no entry
379
+ is shown in a **Values** group with a default binding for its type; add an entry when it
380
+ needs a specific property.
381
+ 2. **Remove the render-only sources.** Delete the token scenarios and fixtures under
382
+ `tokens/`, the `TokenPreview` review renderer and its exports sidecar, the `brand/`
383
+ preview scenarios and fixtures, and the `BrandPreview` renderer. Keep a product `Logo`
384
+ component and its own component scenario. Remove imports of the deleted renderers from
385
+ other review code first.
386
+ 3. **Update references to token view ids.** Capture targets, review links, documentation and
387
+ scripts that name a 0.4.1 token scenario id (`tokens/Color`) now name a section view
388
+ (`tokens/Color/color`, `tokens/Color/text`). List the current ids with
389
+ `ads_scenarios({kind:"tokens"})`.
390
+ 4. **Regenerate and check.** Run `ads assets`, then `ads check`. Invalid catalogue entries
391
+ are `foundation-catalog` errors. A leftover scenario whose id matches a view fails with
392
+ "Remove the render-only … scenario". The `brand-preview` rule no longer exists;
393
+ `brand-readme`, `brand-license` and `brand-unused` still apply.
394
+
395
+ ## 10. Replace the Grid wrapper with @ads-layout
396
+
397
+ This applies when the project kept the 0.4.1 starter's `components/Layout/Grid` (`Grid`,
398
+ `GridItem`) or uses `--grid-span-N` width tokens. Layout geometry is now written with
399
+ `@ads-layout` in owned Linaria styles, validated against a spatial definition and compiled
400
+ to plain CSS; there is no layout component. Read `ads://guides/layout` (ads-designer
401
+ `references/layout.md`) for the constructions.
402
+
403
+ ### How the layout system works
404
+
405
+ Three parts, each with one job:
406
+
407
+ 1. **The spatial definition** (`tokens/spatial.ads.json`) is the one source of layout
408
+ values: the mini unit, the sizing scale, supported ratios, the breakpoints (each with
409
+ its column count and outer margin) and the gutter modes. It names token roles; change
410
+ values in the token sheets and every layout follows.
411
+ 2. **Constructions** (`@ads-layout` inside an owner's Linaria `css`) say *what* a layout
412
+ is; ADS writes the CSS: grid templates, placement for each breakpoint, margins and the
413
+ maximum width, container queries and overlays. ADS checks every construction against
414
+ the definition during the build and `ads check`. A mistake is a `grid-construction`
415
+ error naming the cell and the breakpoint, before anything renders.
416
+ 3. **Inspection.** The showcase's layout guides draw the real tracks, gutters, padding
417
+ and margins of the element you point at.
418
+
419
+ Pick the layout by what extra space should do:
420
+
421
+ | Layout | Extra space… | Typical use |
422
+ |---|---|---|
423
+ | `fluid` | …makes each column wider | Page content, forms, card grids |
424
+ | `fixed` (`tile: <token>`) | …shows more tiles | Galleries, icon grids |
425
+ | `hybrid` (`fixed-start` / `fixed-end`) | …goes to the fluid tracks; fixed tracks keep their size | Side panels, an indent, a rail |
426
+ | `flow` | …nothing; items keep their natural height | Text, settings lists |
427
+ | `inherited` (inside a cell) | …follows the parent's columns | Nested content that must line up with the page |
428
+
429
+ Anatomy of a construction:
430
+
431
+ ```tsx
432
+ const page = css`
433
+ @ads-layout fluid { /* columns share the width: 4 / 8 / 16 by breakpoint */
434
+ gutter: wide; /* cell insets: where content sits inside each track */
435
+ row-gap: --space-16; /* space between rows, set on its own */
436
+ @ads-cell .ux-page-title { span: full; }
437
+ @ads-cell .ux-page-body { /* a direct child, named by its class */
438
+ span: full; /* base placement, at every width */
439
+ @ads-at lg { start: 3; span: 10; } /* from lg upwards */
440
+ }
441
+ }
442
+ `;
443
+ ```
444
+
445
+ The rules that matter:
446
+
447
+ - **Cells are direct children,** named by a class or `[data-*]` selector that is on the
448
+ element.
449
+ - **Responsive changes go through `@ads-at <breakpoint>`.** Each one applies from that
450
+ breakpoint up. Never write `@media (min-width: …)` for layout tracks.
451
+ - **Placement is checked at every breakpoint.** `start: 3; span: 3` fails at `sm` if `sm`
452
+ has 4 columns; give a base placement and widen it with `@ads-at`.
453
+ - **Keep every construction outcome source-resolvable.** Constants, imports and local
454
+ helpers are supported when every return path resolves. Unknown outcomes or exceeded
455
+ analysis limits fail rather than leaving an alternative unchecked.
456
+ - **Nest deliberately.** `@ads-layout inherited` inside a cell continues the parent's
457
+ columns (subgrid). For an independent layout, give the cell `container: region` and
458
+ use `context: container` on the child layout, so it responds to the space it gets
459
+ rather than the window.
460
+ - **Regions and panels** use a hybrid layout with fixed tracks that change per breakpoint,
461
+ cells that `overlay: start | end` (cover instead of push), `rows: auto fill` and
462
+ `visible: false`. The new starter's `Shell` pattern is a complete example.
463
+
464
+ `ads://guides/layout` (ads-designer `references/layout.md`) has the full property
465
+ reference, worked examples and fixes for each error.
466
+
467
+ ### Migration steps
468
+
469
+ 1. **Add the spatial definition.** Create `tokens/spatial.ads.json` and the roles it names.
470
+ The new starter's values, as a starting point:
471
+
472
+ ```css
473
+ /* tokens/spacing.css, :root */
474
+ --grid-mini-unit: var(--space-4);
475
+ --grid-fine-unit: var(--space-1);
476
+ --grid-breakpoint-sm: 320px; --grid-breakpoint-md: 672px; --grid-breakpoint-lg: 1056px;
477
+ --grid-breakpoint-xl: 1312px; --grid-breakpoint-max: 1584px;
478
+ --grid-max-width: var(--grid-breakpoint-max);
479
+ --grid-gutter-wide-start: var(--space-8); --grid-gutter-wide-end: var(--space-8);
480
+ --grid-gutter-narrow-start: var(--space-0); --grid-gutter-narrow-end: var(--space-8);
481
+ --grid-gutter-condensed-start: calc(var(--border-w) / 2);
482
+ --grid-gutter-condensed-end: var(--grid-gutter-condensed-start);
483
+ ```
484
+
485
+ Copy `spatial.ads.json` from the new starter (`dist/starters/react/design-system/tokens/`)
486
+ and adjust it to the project's roles. Keep the existing `--grid-columns-*` and
487
+ `--grid-margin-*`. Remove `--grid-gutter`, `--grid-gutter-narrow` and
488
+ `--grid-gutter-condensed` once nothing uses them.
489
+ 2. **Decide the breakpoints.** 0.4.1's `Grid` switched columns at 768 and 1024 px of
490
+ *container* width and margins at 768 and 1280 px. The new reference set is
491
+ 320/672/1056/1312/1584 px. Keep the old thresholds by setting the `--grid-breakpoint-*`
492
+ values, or adopt the new ones deliberately: either way it is a visual decision, so
493
+ compare the affected screens.
494
+ 3. **Mind the gutter change.** The old `gutter` prop was a CSS `gap` (32/16/1 px) on both
495
+ axes. Gutter modes are now **cell insets** on stable tracks (wide 16 + 16, narrow 0 + 16,
496
+ condensed 0.5 + 0.5), with `row-gap` set separately. Separation between cells is the
497
+ same, but content in the first and last cells is inset too, so keylines move. This is
498
+ not a textual rename; check alignment with the layout guides.
499
+ 4. **Rewrite each consumer in its owning pattern.**
500
+
501
+ ```tsx
502
+ // Before
503
+ <Grid gutter="wide">
504
+ <GridItem span={{ sm: 4, md: 4, lg: 8 }}><Card /></GridItem>
505
+ </Grid>
506
+ ```
507
+
508
+ ```tsx
509
+ // After
510
+ const cards = css`
511
+ @ads-layout fluid {
512
+ gutter: wide;
513
+ row-gap: --space-16;
514
+ @ads-cell .ux-cards-item { span: full; @ads-at md { span: 4; } @ads-at lg { span: 8; } }
515
+ }
516
+ `;
517
+ <div className={cards}><article className="ux-cards-item"><Card /></article></div>
518
+ ```
519
+
520
+ Placement now cascades from the base upward: an `@ads-at` applies from that
521
+ breakpoint on, and the base placement applies below it. 0.4.1 made an omitted size
522
+ take the full row; write `span: full` where that was intended. Cells must be direct
523
+ children of the layout element.
524
+ 5. **Container behaviour.** The old `Grid` answered to its own container width. The
525
+ equivalent is `context: container` on the layout, inside a cell declaring
526
+ `container: region`. The checker requires a proven owned ancestor at every owned call
527
+ site; wrapping one occurrence or adding a scenario-only container does not certify
528
+ the other occurrences. A missing ancestor is a construction error.
529
+ 6. **Review each `--grid-span-N` use.** Inside a grid it becomes cell placement. Elsewhere
530
+ use `%`, `fr` or a content width token; do not replace it blindly.
531
+ 7. **Remove the wrapper.** Delete `components/Layout/Grid` after its consumers have moved,
532
+ then run `ads assets` to regenerate the barrel. Layout tracks written with `@ads-layout`
533
+ are not judged again by `layout-fixed-width`.
534
+
535
+ ## 11. Guide options and tools
536
+
537
+ - **Preview guide helpers.** `setPreviewGuides` / `observePreviewGuides` options are now a
538
+ `mode` (`"off" | "hover" | "always"`) plus the layer booleans. `all: true` is still read
539
+ as `"always"`. Always now draws the *selected* layers on every element instead of forcing
540
+ every layer on; select all layers for the old behaviour. A composed toolbar that passed
541
+ `showAll`/`onAllChange` to a guide menu passes `mode`/`onModeChange` instead.
542
+ - **New, optional.** The starter's `Shell` pattern (application regions and panels),
543
+ `IconButton`'s `id`, `expanded` and `controls` props, and the preview frame's `region`
544
+ layout. Component and pattern previews now mark the scenario's subject automatically;
545
+ nothing to migrate.
546
+
547
+ ## 12. Regenerate and verify
548
+
549
+ After source/configuration migration, run the **installed target version** from
550
+ the consuming project root. This explicit invocation avoids fetching another
551
+ version through a package runner:
552
+
553
+ ```sh
554
+ bun node_modules/@reqvire-org/ads/dist/cli.mjs assets .
555
+ bun node_modules/@reqvire-org/ads/dist/cli.mjs check .
556
+ bun node_modules/@reqvire-org/ads/dist/cli.mjs compile .
557
+ bun node_modules/@reqvire-org/ads/dist/cli.mjs validate .
558
+ ```
559
+
560
+ Run the project's own typecheck, lint, production build and relevant tests as well;
561
+ some may already be registered under acceptance/validation scripts. Confirm full
562
+ validation is current, including registered behaviors and the render audit.
563
+ Open the project's `ads showcase` or connected runtime URL and review affected
564
+ token, component, pattern and composition scenarios in supported themes and sizes.
565
+ Exercise scenario switching, cleanup, lazy content and interactions that were moved.
566
+ Verify configured Icons separately. The layout-guides menu (Off · Hover · Always and
567
+ layer tiles) is available for Components, Patterns, Composition and the Tokens →
568
+ Grid system view; its guides describe each rendered element's actual geometry. It
569
+ stays hidden for other Tokens views, Icons and Brand.
570
+
571
+ | Failure after upgrade | Inspect/fix |
572
+ |-----------------------|-------------|
573
+ | `Unknown … configuration field` | Remove the exact retired key after migrating its intent using section 1. |
574
+ | `development-role` | Rename the actual development implementation/style with its supported role and update references. |
575
+ | `generated-entry` | Fix owner sidecars and run `ads assets`; remove obsolete generated entries after preserving any manual intent. |
576
+ | Missing `main.ads.mount.tsx` or unresolved review import | Apply the mount rename and review alias/exports changes, then rebuild. |
577
+ | `review-import`, `review-contract` or production guard rejection | Remove product→review dependencies and private product imports from review; demonstrate the public API. |
578
+ | “The preview resource graph is not ready for this scenario. Rebuild previews.” | Confirm the intended root/version and discovered scenario ID; inspect compiler diagnostics and build freshness, fix the failing source/configuration, then compile and reopen the scenario. A running process alone is not readiness. |
579
+ | `foundation-catalog` | Fix `tokens/catalog.ads.json`: unique group ids, one group per token, valid `{token, property, probe}` entries, no entries for removed tokens. |
580
+ | "Remove the render-only … scenario" | Delete the old token/brand scenario that duplicates an ADS view ([section 9](#9-let-ads-render-the-tokens-and-brand-views)). |
581
+ | `grid-construction` / `grid-definition` | Fix the `@ads-layout` rule or `spatial.ads.json` named in the message; see `ads://guides/layout`. |
582
+ | Unresolved `Grid`/`GridItem` import or `--grid-span-N` | Finish [section 10](#10-replace-the-grid-wrapper-with-ads-layout) for that consumer. |
583
+
584
+ Generated preview artifacts and old evidence are not migration source. Rebuild
585
+ them with the new compiler. Do not erase all `.ds/` to clear a preview failure:
586
+ it can also contain unfinished drafts and other work. Check a reported failure
587
+ before selectively cleaning any disposable cache.
588
+
589
+ ## ADS repository only: shared starters and playground
590
+
591
+ For ADS contributors, `starters/shared/` is the sole authored design system.
592
+ React/Preact folders retain only native `main.ads.mount.tsx` adapters; the build
593
+ generates framework import/type/build differences under `dist/starters/`.
594
+ The duplicate repository-root `design-system/` is gone. `bun run dev` initializes
595
+ and serves the shipped Preact starter under `.ds/playground/`; `bun run dev:react`
596
+ selects React. Promote intended starter edits into `starters/shared/` or the native
597
+ mount, then restart. Do not maintain generated playground/dist copies by hand.
598
+
599
+ This is a tooling-repository change, not a consuming-project directory migration.
600
+ Existing projects keep their own `dsDir`, React/Preact choice and product source;
601
+ they do not need a shared-starter generator or a framework switch. The lazy-loading
602
+ regression fixture belongs to ADS tests, not a required consumer demo component.