@reqvire-org/ads 0.4.0 → 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 (394) hide show
  1. package/README.md +105 -86
  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 +5 -5
  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 +219 -77
  21. package/dist/boundaries.mjs +135 -38
  22. package/dist/brand-assets.mjs +219 -47
  23. package/dist/brands.mjs +86 -27
  24. package/dist/bun-compiler.mjs +28 -14
  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 +40 -57
  30. package/dist/check.mjs +749 -188
  31. package/dist/cli.mjs +200 -99
  32. package/dist/color-values.mjs +21 -21
  33. package/dist/component-contrast.mjs +2 -2
  34. package/dist/config.mjs +303 -135
  35. package/dist/construction-styles.cjs +10 -0
  36. package/dist/control-padding.mjs +45 -25
  37. package/dist/css-values.mjs +3 -2
  38. package/dist/declarative-flow.mjs +209 -109
  39. package/dist/design-values.mjs +136 -51
  40. package/dist/development-runtime.mjs +4 -6
  41. package/dist/draft-boundary.mjs +11 -6
  42. package/dist/evidence.mjs +1 -1
  43. package/dist/finding-rules.mjs +7 -5
  44. package/dist/font-rules.mjs +2 -2
  45. package/dist/fonts-generated.mjs +2 -2
  46. package/dist/foundation-views.mjs +238 -0
  47. package/dist/foundation.mjs +63 -39
  48. package/dist/generated-entries.mjs +101 -34
  49. package/dist/icons.mjs +79 -32
  50. package/dist/image-attributes.mjs +109 -36
  51. package/dist/image-size.mjs +1 -1
  52. package/dist/index.mjs +0 -2
  53. package/dist/init.mjs +122 -41
  54. package/dist/investigations.mjs +2 -2
  55. package/dist/layers.mjs +298 -129
  56. package/dist/layout-widths.mjs +180 -85
  57. package/dist/linaria/preserve-values.cjs +7 -0
  58. package/dist/linaria/spatial-inputs.cjs +56 -0
  59. package/dist/lockup-composition.mjs +44 -0
  60. package/dist/lockup-model.cjs +64 -0
  61. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  62. package/dist/mcp/apps.mjs +4 -30
  63. package/dist/mcp/behavior-pages.mjs +72 -24
  64. package/dist/mcp/build-status.mjs +257 -64
  65. package/dist/mcp/catalog.mjs +90 -26
  66. package/dist/mcp/context.mjs +17 -18
  67. package/dist/mcp/draft-discovery.mjs +44 -21
  68. package/dist/mcp/drafts.mjs +901 -281
  69. package/dist/mcp/execution-coordinator.mjs +417 -167
  70. package/dist/mcp/execution-results.mjs +7 -7
  71. package/dist/mcp/mutations.mjs +670 -234
  72. package/dist/mcp/preview-watch.mjs +448 -170
  73. package/dist/mcp/preview-widget.bundle.js +44 -50
  74. package/dist/mcp/prompts.mjs +5 -5
  75. package/dist/mcp/result-pages.mjs +1 -1
  76. package/dist/mcp/sandbox-host.mjs +1 -1
  77. package/dist/mcp/server.mjs +2402 -577
  78. package/dist/mcp/showcase-host.mjs +165 -41
  79. package/dist/mcp/skills.mjs +1 -1
  80. package/dist/mcp/text-diff.mjs +29 -10
  81. package/dist/paint-contracts.mjs +174 -81
  82. package/dist/palette-generated.mjs +2 -2
  83. package/dist/preview-bun.mjs +493 -187
  84. package/dist/preview-failure.mjs +1 -1
  85. package/dist/preview-files.mjs +13 -13
  86. package/dist/preview-imports.mjs +104 -55
  87. package/dist/preview-inputs.mjs +2 -2
  88. package/dist/preview-requests.mjs +24 -0
  89. package/dist/preview-resources.mjs +288 -147
  90. package/dist/preview-scope.mjs +5 -4
  91. package/dist/program-cache.mjs +8 -34
  92. package/dist/project-documents.mjs +1 -1
  93. package/dist/public-api.mjs +69 -31
  94. package/dist/public-props.mjs +39 -22
  95. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  96. package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
  97. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  98. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  99. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  100. package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
  101. package/dist/render-audit.mjs +828 -0
  102. package/dist/render-color-probe.mjs +96 -42
  103. package/dist/resource-limits.mjs +229 -97
  104. package/dist/runtime-contracts.mjs +467 -185
  105. package/dist/scenario-groups.mjs +22 -10
  106. package/dist/scenario-inspector.mjs +6 -43
  107. package/dist/scenario-program.mjs +8 -25
  108. package/dist/scenario-registry.mjs +72 -30
  109. package/dist/scenario-selectors.mjs +161 -64
  110. package/dist/scenario-slots.mjs +149 -56
  111. package/dist/scenario-trace.mjs +215 -109
  112. package/dist/scenarios-compiler.mjs +719 -378
  113. package/dist/scenarios-vite.d.mts +1 -3
  114. package/dist/scenarios-vite.mjs +2 -81
  115. package/dist/scenarios.mjs +421 -157
  116. package/dist/selector-match.mjs +2 -2
  117. package/dist/showcase/client.bundle.js +57 -56
  118. package/dist/showcase/draft-navigation.js +18 -0
  119. package/dist/showcase/favicon.ico +0 -0
  120. package/dist/showcase/favicon.svg +1 -0
  121. package/dist/showcase/foundation-view.css +55 -0
  122. package/dist/showcase/foundation-view.mjs +252 -0
  123. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  124. package/dist/showcase/icons.js +1 -145
  125. package/dist/showcase/index.html +3 -31
  126. package/dist/showcase/preview-frame.ads.review.css +46 -0
  127. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  128. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  129. package/dist/showcase/preview-state.js +0 -9
  130. package/dist/showcase/refresh-scheduler.js +23 -0
  131. package/dist/showcase/style.css +5 -47
  132. package/dist/showcase/ui/ui.css +1353 -0
  133. package/dist/showcase/ui/ui.js +1062 -0
  134. package/dist/showcase-coverage.mjs +58 -37
  135. package/dist/skills/README.md +24 -23
  136. package/dist/skills/ads-designer/README.md +8 -2
  137. package/dist/skills/ads-designer/SKILL.md +130 -119
  138. package/dist/skills/ads-designer/references/accessibility.md +12 -13
  139. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  140. package/dist/skills/ads-designer/references/behaviors.md +30 -27
  141. package/dist/skills/ads-designer/references/branding.md +98 -10
  142. package/dist/skills/ads-designer/references/captures.md +25 -0
  143. package/dist/skills/ads-designer/references/cli.md +21 -24
  144. package/dist/skills/ads-designer/references/contracts.md +7 -6
  145. package/dist/skills/ads-designer/references/design-data.md +49 -52
  146. package/dist/skills/ads-designer/references/drafts.md +20 -17
  147. package/dist/skills/ads-designer/references/evidence.md +1 -5
  148. package/dist/skills/ads-designer/references/guarded-editing.md +14 -18
  149. package/dist/skills/ads-designer/references/layers.md +1 -1
  150. package/dist/skills/ads-designer/references/layout.md +347 -0
  151. package/dist/skills/ads-designer/references/mobile.md +2 -1
  152. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  153. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  154. package/dist/skills/ads-designer/references/review.md +37 -34
  155. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  156. package/dist/skills/ads-designer/references/scenarios.md +16 -18
  157. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  158. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  159. package/dist/skills/ads-designer/references/validation.md +83 -75
  160. package/dist/skills/ads-designer/references/workflows.md +8 -33
  161. package/dist/skills/ads-import/SKILL.md +43 -325
  162. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  163. package/dist/skills/ads-import/references/behaviors.md +30 -27
  164. package/dist/skills/ads-import/references/branding.md +5 -5
  165. package/dist/skills/ads-import/references/captures.md +25 -0
  166. package/dist/skills/ads-import/references/cli.md +21 -24
  167. package/dist/skills/ads-import/references/compatibility.md +1 -1
  168. package/dist/skills/ads-import/references/contracts.md +7 -6
  169. package/dist/skills/ads-import/references/design-data.md +49 -52
  170. package/dist/skills/ads-import/references/drafts.md +20 -17
  171. package/dist/skills/ads-import/references/evidence.md +1 -5
  172. package/dist/skills/ads-import/references/guarded-editing.md +14 -18
  173. package/dist/skills/ads-import/references/implementation.md +2 -1
  174. package/dist/skills/ads-import/references/layers.md +1 -1
  175. package/dist/skills/ads-import/references/layout.md +347 -0
  176. package/dist/skills/ads-import/references/review.md +37 -34
  177. package/dist/skills/ads-import/references/runtimes.md +33 -30
  178. package/dist/skills/ads-import/references/scenarios.md +16 -18
  179. package/dist/skills/ads-import/references/tokens.md +3 -3
  180. package/dist/skills/ads-import/references/validation.md +83 -75
  181. package/dist/skills/ads-import/references/workflows.md +8 -33
  182. package/dist/skills/ads-migrate/SKILL.md +56 -0
  183. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  184. package/dist/skills/ads-port/SKILL.md +54 -343
  185. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  186. package/dist/skills/ads-port/references/behaviors.md +30 -27
  187. package/dist/skills/ads-port/references/captures.md +25 -0
  188. package/dist/skills/ads-port/references/cli.md +21 -24
  189. package/dist/skills/ads-port/references/contracts.md +7 -6
  190. package/dist/skills/ads-port/references/design-data.md +49 -52
  191. package/dist/skills/ads-port/references/drafts.md +20 -17
  192. package/dist/skills/ads-port/references/evidence.md +1 -5
  193. package/dist/skills/ads-port/references/guarded-editing.md +14 -18
  194. package/dist/skills/ads-port/references/layers.md +1 -1
  195. package/dist/skills/ads-port/references/layout.md +347 -0
  196. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  197. package/dist/skills/ads-port/references/native-implementation.md +2 -1
  198. package/dist/skills/ads-port/references/review.md +37 -34
  199. package/dist/skills/ads-port/references/runtimes.md +33 -30
  200. package/dist/skills/ads-port/references/scenarios.md +16 -18
  201. package/dist/skills/ads-port/references/validation.md +83 -75
  202. package/dist/skills/ads-port/references/workflows.md +8 -33
  203. package/dist/source-symbols.mjs +1 -8
  204. package/dist/source-values.mjs +266 -128
  205. package/dist/spatial-composition.mjs +322 -0
  206. package/dist/spatial-contexts.cjs +56 -0
  207. package/dist/spatial-css.cjs +351 -0
  208. package/dist/spatial-inputs.cjs +80 -0
  209. package/dist/spatial-metadata.mjs +18 -0
  210. package/dist/spatial-model.cjs +322 -0
  211. package/dist/spatial.mjs +21 -0
  212. package/dist/stage-timing.cjs +20 -0
  213. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  214. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  215. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  216. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  217. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  218. package/dist/starters/preact/ds.config.json +25 -6
  219. package/dist/starters/preact/package.json +4 -8
  220. package/dist/starters/preact/tsconfig.json +4 -5
  221. package/dist/starters/preact/vite.config.ts +3 -3
  222. package/dist/starters/react/ADS.md +42 -47
  223. package/dist/starters/react/README.md +47 -49
  224. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  225. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  226. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  227. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  228. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  229. package/dist/starters/react/design-system/index.ts +2 -1
  230. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  231. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  232. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  233. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  234. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  235. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  236. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  237. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  238. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  239. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  240. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  241. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  242. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -1
  243. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  244. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  245. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  246. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  247. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -1
  248. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  249. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  250. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  251. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  252. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  253. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  254. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  255. package/dist/starters/react/ds.config.json +25 -6
  256. package/dist/starters/react/package.json +2 -6
  257. package/dist/starters/react/tsconfig.json +2 -3
  258. package/dist/starters/react/vite.config.ts +3 -3
  259. package/dist/style-boundaries.mjs +70 -25
  260. package/dist/task-cache.mjs +173 -72
  261. package/dist/task-worker.mjs +22 -11
  262. package/dist/test-boundaries.mjs +132 -59
  263. package/dist/themes-generated.mjs +1 -1
  264. package/dist/themes-watch.mjs +57 -22
  265. package/dist/themes.mjs +176 -73
  266. package/dist/token-export.mjs +39 -14
  267. package/dist/token-policy.mjs +6 -3
  268. package/dist/token-quality.mjs +6 -6
  269. package/dist/token-samples.mjs +16 -5
  270. package/dist/tokens.mjs +71 -26
  271. package/dist/ui-framework.mjs +16 -14
  272. package/dist/unit-contracts.mjs +251 -104
  273. package/dist/units.mjs +208 -98
  274. package/dist/usage.mjs +138 -38
  275. package/dist/validation-checks.mjs +115 -38
  276. package/dist/validation-inputs.mjs +187 -78
  277. package/dist/validation.mjs +268 -102
  278. package/dist/verification/browser.mjs +27 -5
  279. package/dist/verification.mjs +711 -187
  280. package/docs/ADS.md +90 -79
  281. package/docs/ARCHITECTURE.md +294 -136
  282. package/docs/BEHAVIORS.md +29 -25
  283. package/docs/CACHING.md +52 -17
  284. package/docs/CHANGELOG.md +309 -17
  285. package/docs/CONTRACTS.md +12 -4
  286. package/docs/DESIGN-REFERENCES.md +40 -0
  287. package/docs/GUIDE.md +270 -258
  288. package/docs/MCP.md +181 -324
  289. package/docs/SPATIAL-CHECKS.md +69 -0
  290. package/docs/benchmarks/README.md +39 -0
  291. package/package.json +42 -34
  292. package/dist/browser-audit.mjs +0 -429
  293. package/dist/create.mjs +0 -48
  294. package/dist/lint-config.mjs +0 -50
  295. package/dist/mcp/project-widget.bundle.js +0 -114
  296. package/dist/mcp/reports.mjs +0 -101
  297. package/dist/mcp/widget.bundle.js +0 -147
  298. package/dist/oxlint.mjs +0 -89
  299. package/dist/preview-builder.mjs +0 -133
  300. package/dist/preview-workers.mjs +0 -184
  301. package/dist/showcase.mjs +0 -77
  302. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  303. package/dist/skills/ads-break-ui/README.md +0 -16
  304. package/dist/skills/ads-break-ui/SKILL.md +0 -412
  305. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  306. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  307. package/dist/skills/ads-break-ui/references/behaviors.md +0 -412
  308. package/dist/skills/ads-break-ui/references/captures.md +0 -135
  309. package/dist/skills/ads-break-ui/references/contracts.md +0 -317
  310. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  311. package/dist/skills/ads-break-ui/references/drafts.md +0 -194
  312. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  313. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -165
  314. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  315. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  316. package/dist/skills/ads-break-ui/references/review.md +0 -97
  317. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  318. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  319. package/dist/skills/ads-break-ui/references/validation.md +0 -166
  320. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  321. package/dist/skills/ads-break-ui/references/workflows.md +0 -90
  322. package/dist/skills/ads-designer/references/reporting.md +0 -101
  323. package/dist/skills/ads-import/references/reporting.md +0 -101
  324. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  325. package/dist/skills/ads-motion/README.md +0 -22
  326. package/dist/skills/ads-motion/SKILL.md +0 -385
  327. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  328. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  329. package/dist/skills/ads-motion/references/audit.md +0 -44
  330. package/dist/skills/ads-motion/references/behaviors.md +0 -412
  331. package/dist/skills/ads-motion/references/captures.md +0 -135
  332. package/dist/skills/ads-motion/references/contracts.md +0 -317
  333. package/dist/skills/ads-motion/references/design-data.md +0 -354
  334. package/dist/skills/ads-motion/references/drafts.md +0 -194
  335. package/dist/skills/ads-motion/references/evidence.md +0 -128
  336. package/dist/skills/ads-motion/references/guarded-editing.md +0 -165
  337. package/dist/skills/ads-motion/references/layers.md +0 -145
  338. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  339. package/dist/skills/ads-motion/references/reporting.md +0 -101
  340. package/dist/skills/ads-motion/references/review.md +0 -97
  341. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  342. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  343. package/dist/skills/ads-motion/references/validation.md +0 -166
  344. package/dist/skills/ads-motion/references/verification.md +0 -39
  345. package/dist/skills/ads-motion/references/workflows.md +0 -90
  346. package/dist/skills/ads-port/references/reporting.md +0 -101
  347. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  348. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  349. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  350. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  351. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  352. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  353. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  354. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  355. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  356. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  357. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  358. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  359. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +0 -1
  360. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  361. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  362. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  363. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  364. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +0 -1
  365. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  366. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  367. package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +0 -1
  368. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  369. package/dist/starters/react/design-system/review/index.ts +0 -6
  370. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  371. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  372. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +0 -1
  373. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  374. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  375. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  376. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  377. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  378. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  379. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  380. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  381. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  382. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  383. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  384. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  385. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  386. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  387. package/dist/starters/react/package-lock.json +0 -4707
  388. package/dist/token-fixtures.mjs +0 -30
  389. package/docs/benchmarks/bun-previews.md +0 -91
  390. package/docs/benchmarks/preview-memory.md +0 -147
  391. package/docs/benchmarks/turbo-poc.md +0 -284
  392. package/docs/plans/execution-coordination.md +0 -57
  393. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  394. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
@@ -3,36 +3,6 @@ name: ads-port
3
3
  description: "Port existing library components into a coherent project-owned ADS, reusing shared tokens and primitives while preserving required behavior. Use for native adaptation from a library URL, with reference comparison and provenance; reuse explicitly declared behavior libraries as installed."
4
4
  ---
5
5
 
6
- ## Choose the editing workflow
7
-
8
- Read [direct editing and MCP-only editing](references/workflows.md) and use the
9
- route matching the user's instructions and your actual source access:
10
-
11
- - **Direct code access:** edit owned files with the normal editor; use MCP for
12
- discovery, preview, captures and validation. Ordinary source edits do not
13
- require a tracked draft or `ads_accept`, even when MCP mutations are enabled.
14
- - **MCP-only access:** use source/draft mutation tools, rendered review and
15
- exact-revision acceptance. Follow [tracked drafts](references/drafts.md).
16
- Without mutation tools or another source channel, editing is unavailable.
17
-
18
- Direct editors can also choose tracked drafts for isolation and comparison.
19
- When using drafts, do not report coherent design work complete before reviewing
20
- and accepting its required proposals. If blocked, report the exact unfinished
21
- draft/blocker; retain a proposal intentionally only when the user requests it.
22
- Auto mode means agent review, without an extra human approval step.
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.
27
-
28
-
29
- For validation scope, full audits, and CLI/MCP parity, read
30
- [validation.md](references/validation.md).
31
-
32
- For Node/Bun setup, MCP launch, compiler workers and project resource budgets,
33
- read [runtimes.md](references/runtimes.md). Keep runtime choices, worker counts
34
- and memory limits in project configuration; verify real workloads under them.
35
-
36
6
  # ADS Port
37
7
 
38
8
  The result should be one coherent project design system. Reuse its shared tokens,
@@ -42,113 +12,6 @@ default goal. Preserve required capabilities, accessibility and interactions.
42
12
  Read [native-implementation.md](references/native-implementation.md#converge-on-the-projects-design-language)
43
13
  for token mapping, consolidation and dependency boundaries.
44
14
 
45
- When ADS MCP is connected, discover public UI and addressable scenarios with
46
- `ads_status`/`ads_catalog`; use `ads_tokens` for definitions and values, and
47
- `ads_scenarios`/`ads_show_scenario` for real project scenarios. Keep the external
48
- library as the behavioral reference.
49
- If Apps are unavailable, inspect the normal showcase. Resolve MCP-served skill
50
- references relative to this `SKILL.md` URI and load them lazily; a resource read
51
- does not itself activate the skill.
52
- Use the returned `projectRoot` and `project.commands`; the connected ADS may be
53
- inside a different or nested repository. Inspect the selected public API, owning
54
- source/available guides and relevant tokens, then mount its discovered scenario.
55
- Metadata and source reads do not prove rendered behavior.
56
-
57
- For MCP-only guarded editing with `ads_status.mutations.enabled`, every source change
58
- goes through a draft: discover the owner with `ads_units`, create its draft with
59
- `ads_create_draft`, read relevant ranges with `ads_read_file`, edit the draft's files
60
- or send a Git unified diff with `ads_update_draft({id, revision, patch})`, review it
61
- with `ads_show_draft`, then `ads_accept` its exact revision (`dryRun: true` checks
62
- without writing). A unit includes its own implementation, scenarios and fixtures;
63
- imported peers remain separate. `tokens` is the token foundation unit. Unit
64
- discovery and file ownership are distinct from preview IDs. An owner is in at most
65
- one open draft; coupled owners share one draft, and a draft can depend on another
66
- owner's open draft. Every authored file has one owner: an owner declares its public
67
- names in `<Owner>.ads.exports.ts` and its style permissions (`styles.writes`,
68
- `styles.inline`, `customization`) in `<Owner>.ads.contract.ts`. The public barrel,
69
- review entry and styles entry are generated, so no draft edits them. Unused
70
- permissions fail the core checks; do not declare a permission without its
71
- implementation. Acceptance runs the mandatory ADS gates and the project's acceptance
72
- policy; registered tests run when `acceptance.behaviorChecks` is true. `ads_verify`
73
- checks current source and accepts no draft argument. Fix a failed acceptance in the
74
- draft; never bypass a rejection with direct source writes. Shared styles/helpers use `foundation`, root guides use
75
- `documentation`, and branding/fonts use their discovered `assets/*` unit.
76
- Intentional configuration, rule exceptions, registered guard code and compiler
77
- changes use `configuration`; validate the proposed settings and keep mandatory
78
- ADS gates. For binary/large assets, generate `git diff --binary --full-index` into
79
- `.ds/patches/<name>.patch` and send `patchFile` instead of inline `patch`, so bytes
80
- stay out of model context. Binary changes require Git. These tool instructions
81
- apply to the MCP editing route; direct editors use the workflow above and run
82
- the same required gates/checks.
83
- For owner drafts, token-sample reconciliation, coupled transactions and local
84
- shared Data ownership, read [guarded-editing.md](references/guarded-editing.md).
85
- For on-demand current/candidate screenshots and visual dry-run review, read
86
- [captures.md](references/captures.md).
87
- For a rejected patch, failed check or loading error, read
88
- [evidence and diagnosis](references/evidence.md); inspect the failing boundary
89
- then page needed `ads_results` sections using the returned result ID. Inspect
90
- one `ads_investigate({unit,check,runId})` summary before changing APIs or policy;
91
- load request/error/artifact details only when relevant.
92
-
93
-
94
- Review/demo layout belongs in development-only `review/`, exported through the
95
- separate `${publicAlias}/review` entry (normally `@ds/review`), never the production
96
- barrel. Product patterns are application UI. For ownership, migration, token
97
- renderers, build aliases or `review-import` / `review-contract` diagnostics, read
98
- [development review UI](references/review.md), also served as `ads://guides/review`.
99
-
100
- A component provides one cohesive UI capability; a pattern arranges capabilities
101
- into reusable structures or workflows. Components may compose components/controllers;
102
- layout patterns may arrange slots. Do not classify by component count. For shared
103
- website/MCP App use, owner selection, or `component-dependency`,
104
- `component-contract` or `component-style` diagnostics, read
105
- [layer responsibilities and contracts](references/layers.md), also served as
106
- `ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
107
-
108
- For folder-group navigation, parent/child `covers`, conditional-control review, reference comparisons,
109
- public style-helper use, native slot/selector composition, fragment navigation,
110
- or `scenario-render` / `showcase-control` / `showcase-class` findings, read [scenario contracts](references/scenarios.md). Its verification
111
- examples explain API visibility, reference baselines and state-transition checks.
112
- Traced parents can cover declared public children; verified public Linaria
113
- helpers do not grant custom scenario CSS.
114
-
115
- For atomic base/variant styling, helper/wrapper class composition, extracted
116
- custom-property arithmetic, typed `@property` registrations, or an
117
- `atomic-composition-review` / `atomic-composition-limit` finding, read
118
- [atomic style composition](references/atomic-styles.md). The same guide is served
119
- as `ads://guides/atomic-styles`. It explains shorthand/logical conflicts and
120
- matching-property fixes, plus the build resolver for preserving opaque custom
121
- properties through extraction. Check review items in the real `cx` composition and verify
122
- computed styles across affected sizes/states; retain intentional product behavior.
123
-
124
- For positioning, menu/listbox keyboard handling, focus trapping and virtual lists,
125
- prefer an installed library already listed in `ds.config.json` behaviorLibraries.
126
- Use the installed API with minimal lifecycle/event integration and project-owned
127
- styling; preserve the existing measured-geometry boundaries. If none fits, suggest
128
- a framework-free package for approval or port natively. Add dependencies and
129
- allowlist entries only with authorization; existing approval need not be repeated.
130
-
131
- Controllers are UI behavior owners: private helpers stay with their component or
132
- pattern; reusable controllers use discovered `controllers/<Name>` units. Use the
133
- project's configured framework and declared dependencies, or plain TypeScript,
134
- browser APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. The
135
- framework setting selects compilation/mounting; controller checks also validate
136
- imports. For controller/behavior work, read
137
- [behaviors.md](references/behaviors.md), also served as `ads://guides/behaviors`. Discover registered guarantees
138
- with `ads_behaviors`; use `ads_verify` for selected real checks. Optional
139
- `exercises` links public behavioral APIs to scenarios; keep `covers` for rendered
140
- UI. Registration and demonstration are not passing evidence. `<Owner>.ads.contract.ts`,
141
- scenarios, fixtures and checks stay out of production exports/imports. Verify
142
- current results, including lifecycle setup/cleanup/setup and the actual browser
143
- profile when promised. React StrictMode needs a development harness; wrapping a
144
- production widget cannot replay development effects. Keep dynamic behavior and
145
- capabilities intact rather than rewriting them only for static coverage.
146
-
147
- Before trusting a preview after edits, check `ads_status.build` or
148
- `ads://project/build`. Fix build diagnostics in owned source; an older view or
149
- unreported freshness is not evidence of current code. Notifications may not
150
- reach the agent.
151
-
152
15
  Turn a supplied component-library reference into a native component in the current
153
16
  design-system repository. Preserve the requested interaction contract while
154
17
  using the target system's primitives, tokens, styling architecture, and public API.
@@ -158,20 +21,51 @@ Document intentional adaptations and verify the resulting design as a whole.
158
21
  Exact visual fidelity is an explicit requirement, not the default acceptance
159
22
  criterion. Broader product redesign remains outside a component port's scope.
160
23
 
161
- React and native Preact are supported. Preserve the target runtime in both
162
- production and scenario builds; never alias React to Preact just to shrink a
163
- preview. Native Preact uses its own JSX transform, hooks and DOM events (live
164
- text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
165
- not React presentation aliases. Keep Linaria extraction and the same public APIs.
166
- `ads create` makes React or Preact projects; the tool repository's working
167
- example uses Preact. Neither is a component dependency of the receiving project.
168
-
169
- ADS is tooling only. Implement in the target project's
170
- local ADS folder: the project owns the component source and theme values, and
171
- the app imports its local public barrel (normally `@ds`). Shared tooling supplies
172
- contracts, rules, skills, and a starter. Component libraries, patterns,
173
- themes and scenarios are external sources, loaded through explicit ADS
174
- workflows. Do not look for a built-in or optional UI catalogue in the tool.
24
+ For positioning, menu/listbox keyboard handling, focus trapping and virtual lists,
25
+ prefer an installed library already listed in `ds.config.json` behaviorLibraries.
26
+ Use the installed API with minimal lifecycle/event integration and project-owned
27
+ styling; preserve the existing measured-geometry boundaries. If none fits, suggest
28
+ a framework-free package for approval or port natively. Add dependencies and
29
+ allowlist entries only with authorization; existing approval need not be repeated.
30
+
31
+ ## Ground rules
32
+
33
+ Everything that is not specific to porting follows the shared ADS workflow. These
34
+ references ship with this skill; load them when the task touches their topic:
35
+
36
+ - Editing route (direct code access or MCP-only) and tracked drafts:
37
+ [workflows.md](references/workflows.md), [drafts.md](references/drafts.md),
38
+ [guarded-editing.md](references/guarded-editing.md).
39
+ - Gates and validation scope: [validation.md](references/validation.md); CLI integration:
40
+ [cli.md](references/cli.md); runtimes and the managed compiler: [runtimes.md](references/runtimes.md).
41
+ - Ownership: [layers.md](references/layers.md), [contracts.md](references/contracts.md),
42
+ [design-data.md](references/design-data.md).
43
+ - Scenarios, showcase and review helpers: [scenarios.md](references/scenarios.md),
44
+ [review.md](references/review.md), [captures.md](references/captures.md),
45
+ [evidence.md](references/evidence.md).
46
+ - Styling and layout: [atomic-styles.md](references/atomic-styles.md),
47
+ [layout.md](references/layout.md); controllers and behaviour: [behaviors.md](references/behaviors.md).
48
+
49
+ The rules that matter most while porting:
50
+
51
+ - With ADS MCP connected, start with `ads_status`; use its `projectRoot` and
52
+ `project.commands`, and check `ads_status.build` freshness before trusting a preview.
53
+ Metadata and source reads do not prove rendered behaviour.
54
+ - Every MCP source change goes through a draft and is accepted at its exact revision;
55
+ fix a rejected acceptance in the draft, never by writing source directly.
56
+ - React and native Preact are both supported: preserve the destination framework in
57
+ production and scenario builds, and keep Linaria extraction.
58
+ - ADS is tooling only. The project owns the resulting source and theme values, and the
59
+ app imports its local public barrel; never install a source library or ADS as a UI
60
+ runtime dependency of the product.
61
+ - Declare public names in each owner's `<Owner>.ads.exports.ts`; ADS generates the public
62
+ barrel, review entry and styles entry, and a hand edit fails.
63
+ - Demonstrate public UI in colocated `<Owner>.ads.scenario.tsx` / `.ads.fixture.ts` files;
64
+ larger screens go under `composition/`. Scenario files define no CSS, classes or widget
65
+ markup; reusable review framing lives in development-only `review/`.
66
+ - Run `ads check` and the project build. Register project-specific checks as package
67
+ scripts in `acceptance.scripts` / `validation.scripts`; behaviour tests go through ADS
68
+ contracts.
175
69
 
176
70
  ## Input
177
71
 
@@ -224,7 +118,7 @@ timer, focus, gesture or placement contract merely to simplify implementation.
224
118
 
225
119
  Use [native-implementation.md](references/native-implementation.md) for research
226
120
  and implementation mechanics. Keep state, geometry, and visual policy in their
227
- owning layers. Export the native API through the public barrel, add real showcase
121
+ owning layers. Declare the native API in the owner's `<Owner>.ads.exports.ts` (ADS generates the public barrel), add real showcase
228
122
  examples, and migrate authorized consumers without changing unrelated surfaces.
229
123
 
230
124
  Write the component-local README with usage, API, behavior, motion, token hooks,
@@ -242,180 +136,10 @@ it through shared tooling; avoid duplicating existing TypeScript or lint checks.
242
136
 
243
137
  ## Verify against the original
244
138
 
245
- Use the project showcase as the permanent native demonstration and shared
246
- review surface for agents and humans. Discover its existing run/build commands;
247
- use the built-in MCP client and configure project preview compilation. Examples and
248
- composition scenarios import the real public ADS API and the same token/foundation styles
249
- as the application. Put reusable UI discovered while building a mock in ADS
250
- components/patterns first. Colocate sample data and state/callback adapters with
251
- the scenario; larger entries belong under `composition/`. Browsing pages only
252
- select these entries. Scenario controls use public product APIs; labels and review layouts use the
253
- separate development-only review entry. The outer shell belongs to the tool client. Showcase/scenario files define no CSS, custom classes, or widget markup.
254
- Change the owning development-only review helper when a frame layout is missing; do not recreate
255
- the migrated UI there or override its internals.
256
-
257
- The showcase is a minimal shell plus an MCP client and Apps host, supplied by ADS
258
- tooling. It discovers Tokens/Components/Patterns/Composition entries through MCP
259
- tools and renders their scenarios in the preview App. Navigation, theme and
260
- pane/header visibility belong to the tool client. Do not create page files,
261
- copy its shell into the project or assemble a second catalogue/rendering pipeline.
262
-
263
- When MCP is connected, open the running URL from `ads_status`. Otherwise run the
264
- installed `ads showcase` or the project's `dev:showcase` script. Do not launch a
265
- second runtime/compiler for the same connected project. A configured project
266
- preview watcher publishes a shared graph on first demand and after source
267
- changes. The built-in client refreshes discovery and the active scenario in the
268
- same App after a successful build. Shared runtime, foundation CSS, fonts and
269
- selected scenario modules load through MCP
270
- resources inside the sandboxed App. Never inject project styles/runtime into
271
- the outer host. Keep the configured framework, compiler and mount/unmount adapter
272
- consistent; scenario teardown must release owned timers, portals and workers.
273
- The host shows errors and marks retained output as stale. Other hosts may need an
274
- explicit preview-tool invocation. Compilation remains project-owned and required
275
- for TSX/Linaria; it is automatic, not eliminated.
276
-
277
- Reusable review layouts belong in development-only `review/`, exported through
278
- the separate review entry, while scenario
279
- files define no CSS, custom classes or widget replicas. Keep real presentation in
280
- its component/pattern owner. The tooling shell's CSS is outside that project
281
- contract. Legacy custom showcase pages may be retained during migration; new
282
- projects require no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
283
-
284
- Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` with tokens and
285
- each component/pattern. Put larger entries under `composition/<Name>/` with their
286
- own marked scenario and fixture. Export a default
287
- zero-input mountable view and literal metadata, for example
288
- `export const scenario = { title: "Button states", covers: ["Button"] };`.
289
- Import the real UI from the public ADS alias. Keep fixture inputs, simulated
290
- services and initial state/callback adapters beside the scenario. Empty fixtures
291
- are valid for an entry with no inputs. Extra development helpers use a
292
- `<Owner>.ads.helpers.ts` file, so guards
293
- recognize their role even beside runtime code. Never require a page, router or store to
294
- initialize the entry. Several contextual public parts may share one scenario.
295
-
296
- IDs derive from ADS-relative filenames: both `components/core/Button/Button.ads.scenario.tsx`
297
- and `components/core/Button.ads.scenario.tsx` identify `components/core/Button`.
298
- Use one form, no duplicate IDs or hand-maintained registry. Renames change IDs.
299
- The showcase and external hosts mount the same discovered entry. ADS owns Bun
300
- preview compilation and Linaria extraction independently of the application's
301
- bundler. Configure the ADS framework and preview manifest; keep the project-owned
302
- framework mount adapter and its cleanup. Use `ads compile` for standalone/CI
303
- preview builds. MCP discovers metadata without importing executable TSX. Read
304
- [Runtime and compiler setup](references/runtimes.md) when setting up or migrating
305
- the compiler.
306
- Use `ads_scenarios` (query/kind/limit) and `ads_show_scenario({id})` to open an exact
307
- entry. Check its build freshness; HTML delivery is not browser verification.
308
- If Apps or resource forwarding are unavailable, open that scenario in the real
309
- showcase, using the tool result's URL. Do not build a preview-only replica.
310
-
311
- For a production screen, find and render the application's public screen pattern.
312
- Its owner supplies structure, controls, layout and presentation. Scenario fixtures
313
- supply data/state/callbacks. Move shared presentation into a pattern if needed,
314
- preserving existing behavior and lazy imports, workers, caching and cancellation.
315
- Do not reassemble an alternative screen or substitute placeholder content.
316
- Screen reuse remains skill guidance, not a dedicated screen-parity lint.
317
-
318
- Resolve `scenario-contract`, `scenario-render` and `scenario-coverage` findings
319
- with meaningful entries. Every public renderable component and pattern needs an
320
- addressable scenario, including unused exports; types/constants/utilities do not.
321
- Only public render references reachable from the default entry count. Tests and
322
- unused imports/functions do not. Static reachability does not prove successful
323
- mounting, correct content, every branch/state or visual parity: open each affected
324
- entry independently and verify real behavior at narrow/wide sizes in both themes.
325
- The older `showcase-coverage` policy separately checks application references.
326
-
327
- Token previews use that same scenario pipeline. Colocate a token scenario and
328
- fixture under the configured token directory. Declare metadata
329
- `{ title: fixture.title, covers: ["TokenSamples"], samples: fixture.samples }`.
330
- The renderer name is project-owned; use its real public API. Each literal fixture
331
- sample declares `{ token, property, probe }`: a real token, the CSS property its
332
- sample demonstrates, and a valid test value different from that token's current
333
- value. Pass `samples` into the rendered development-only review renderer. Names, sample text,
334
- bindings and probes are fixture data; displayed values come from foundation CSS.
335
- There is no property catalogue, token-name mapping or probe palette in ADS.
336
- Every token needs sample coverage; fabricated tokens, missing bindings/probes,
337
- unused fixtures and value-only lists fail the static gates. `covers: []` is invalid.
338
- During App rendering, the browser checks sample markers `data-ads-token` and
339
- `data-ads-property`, validates CSS with its own `CSS.supports`, and temporarily
340
- probes each token to verify that the declared sample property responds. It restores
341
- values immediately. Missing, hidden, invalid or hardcoded samples produce a preview
342
- error instead of a successful review. These browser checks apply to the mounted
343
- scenario/theme, not every application state or pixel-level design quality.
344
- Keep styles in the project renderer; do not add inline-style exemptions to scenarios.
345
- Fix `token-scenario-reference`, `token-scenario-render` and `token-scenario-coverage`
346
- findings. Metadata and unused fixture fields do not count. Discover exact token IDs with `ads_scenarios({kind:"tokens"})`; mount them
347
- with `ads_show_scenario({id})` or `ads_show_tokens({category:id})`. With the shared
348
- resource compiler, omitting category opens the first project token scenario.
349
- Legacy compilers retain the generic definition inspector. Use `ads_tokens` for
350
- source definitions and values; inspecting definitions does not prove UI parity.
351
- The tool keeps the shared naming contract; sample templates and their token
352
- lists belong to the project.
353
-
354
- Development review helpers need no product catalogue scenario. A token scenario
355
- may name its review renderer in `covers`; ordinary component/pattern scenarios
356
- cover their production subjects. Keep review exports in the separate review entry.
357
- Remove redundant helper catalogue scenarios during migration. Product UI retains
358
- its real render-coverage requirement. Keep directory ownership anchored by its
359
- implementation entry (`index` or a file matching the directory name).
360
- Import colocated image/font fixtures so MCP serves them through asset resources.
361
- For a broken-image case, use a local failing fixture, rather than an external
362
- network failure or a domain-specific CSP exception. Production asset APIs remain
363
- unrestricted by this fixture guidance.
364
-
365
- Scenarios, colocated fixtures and helpers are development-only. Never export them
366
- from the runtime barrel or import them in production, including through aliases,
367
- re-exports or dynamic imports. They may not import application stores, routers,
368
- providers or HTTP clients. Live business data is application-owned; UI uses typed
369
- inputs or injected services/callbacks. Direct global fetch/XHR/WebSocket/EventSource
370
- is rejected; custom clients and computed access require review/project guards.
371
- Use local simulated services in fixtures. Tests may import fixtures; load real
372
- foundation CSS rather than assigning shared token values in JavaScript. Keep
373
- full-app integration harnesses and workflow coverage in application test support.
374
-
375
- Foundation CSS is checked, not an escape hatch. Value sheets define shared tokens
376
- on the document root (per-theme halves) or a brand's `[data-brand]`; `fonts.css`
377
- holds font-face metadata. `base.css` has three closed roles: root/body typography,
378
- canvas and theme defaults; limited native normalization; and global focus
379
- indicators/reduced-motion rules. Every selector
380
- branch, property and value must fit its role. Token-backed control skins, layout,
381
- interactive state rules and owner hooks are rejected even through `:where()`.
382
- Do not copy an unchecked upstream preflight or turn a component repair into a reset.
383
- Keep behavior and skin in their runtime owner. Put demo-only sizing and framing
384
- in a development-only review helper; add component props for a deliberate runtime
385
- API need. Preserve required capabilities while following ownership rules.
386
- Use tokens for absolute/font-relative lengths, including `ch`, `ex`, `cap`, `ic`
387
- and `lh`; calculations and fallback values follow the same rule. Structural
388
- angle units remain available for orientation, skew and spin. Put tunable visual
389
- angles in project tokens; static checks cannot infer that intent. Percentages,
390
- grid fractions and viewport/container relationships retain structural use.
391
- Browser review still verifies the effects.
392
-
393
- Invalid metadata and source failures keep the managed compiler alive for repairs.
394
- Read `ads_status.build` or `ads://project/build`, fix the owner, then wait for current
395
- successful output. If the builder exited, fix its command and invoke the preview
396
- again; ADS starts one fresh child without an MCP reconnect. Compiler-code changes
397
- also reload on the next preview invocation. Reconnect the client when upgrading
398
- the ADS server package itself. Persistent SSE/notification streams make
399
- `networkidle` unsuitable: wait for the App's current ready/error state instead.
400
-
401
-
402
-
403
-
404
- Run ADS's own gates directly with `ads check`; acceptance and validation do not
405
- require Oxlint. Register project-specific checks as explicit package scripts in
406
- `mcp.mutationChecks` / `validation.checks`, and behavior tests through ADS contracts.
407
- A project can use its own linter in those scripts when desired. Measured renderer properties and documented
408
- non-state hooks are declared in the owner's contract (`styles.writes`,
409
- `styles.inline`, `customization`); shared token writes and primitive state overrides
410
- cannot be allowed. When moving JSX inline geometry to imperative writes, change the
411
- source and its contract permissions together in the owner's draft. Remove obsolete
412
- `styles.inline` entries and unused `styles.writes` properties; do not broaden
413
- permissions to keep a change passing.
414
- Pointer-capture advisories call for review of cancellation, capture loss and
415
- teardown, including cleanup delegated to hooks. Verify actual cleanup in a browser;
416
- a locally present handler alone does not prove correctness.
417
- Add generic architectural protections to
418
- ADS core and keep domain/component-specific rules registered in project setup.
139
+ Use the project showcase as the permanent native demonstration and shared review
140
+ surface. Put reusable UI discovered while building a mock in ADS components/patterns
141
+ first, and change the owning development-only review helper when a frame layout is
142
+ missing; do not recreate the migrated UI there or override its internals.
419
143
 
420
144
  Update meaningful variants, states, content, themes, and container sizes in the
421
145
  showcase. Run ADS/project guards before its build as well as the app build.
@@ -450,9 +174,10 @@ build exists in every project. Repeat only affected checks after new changes.
450
174
 
451
175
  Follow [references/cli.md](references/cli.md) to integrate the tool as a
452
176
  development dependency in the target's actual lint/build pipeline.
453
- Register applicable local rules through its project-owned plugin adapter and
454
- `ds.config.json`, then run the normal project build. Its lint step refreshes
455
- configuration and runs ADS/core/project rules automatically. Use npx for bootstrap
177
+ Register applicable local rules in the project's own linter/check scripts and
178
+ include the required scripts in `acceptance.scripts` or `validation.scripts`.
179
+ Run `ads check` and the normal project build; ADS does not generate project lint
180
+ configuration. Use npx for bootstrap
456
181
  or ad hoc checks. Core checks complement component/rule tests and the browser
457
182
  comparison; they do not establish runtime or motion parity.
458
183
 
@@ -468,17 +193,3 @@ resets and obsolete port-only files have not become another styling system.
468
193
  Do not claim complete parity for untested states, or call a native replica a real
469
194
  upstream reference. Keep comparison dependencies and downloaded source outside
470
195
  the production dependency graph unless the user chose otherwise.
471
-
472
- For static owner contracts, `.ads.` development roles, typed paint/binding APIs,
473
- declarative parent graphs, constrained theme bindings, private visual subject roles,
474
- shared Data ownership and guarded migration, read
475
- [contracts.md](references/contracts.md) when the task touches those contracts.
476
-
477
- For a suspected ADS defect or missing capability after targeted investigation, read
478
- [reporting.md](references/reporting.md). Record actionable observations with
479
- `ads_report_bug` or `ads_request_feature`; preserve valid APIs and rejected drafts.
480
-
481
- For Data/UX/Skin boundaries, shared token reuse and private-value diagnostics, read
482
- [design-data.md](references/design-data.md). Components own mappings and mechanics,
483
- not independent token catalogues. Existing project font, text and spacing roles
484
- take precedence over divergent upstream constants during adaptation.
@@ -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
 
@@ -163,7 +163,7 @@ command. For a project with an installed Playwright test runner:
163
163
  }
164
164
  ```
165
165
 
166
- Here `runtime` uses the Node or Bun interpreter that launched ADS, and the
166
+ Here `runtime` uses the Bun that runs ADS, and the
167
167
  project supplies the installed Playwright entry. Explicit executable commands
168
168
  retain their meaning. A Bun package-script profile can use `command: "bun"`
169
169
  with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
@@ -221,11 +221,11 @@ after a failure, does not establish the cause. Preserve the draft and original
221
221
  diagnostic; do not change a component API, reference example or verification
222
222
  policy to compensate for a resource-loading failure.
223
223
 
224
- The reporter atomically publishes partial snapshots at test start/end. While a
225
- run is active, `ads_status.behaviors.progress` exposes the profile, runner budget,
226
- elapsed time, completed/active/pending counts, worker count when available and
227
- case identities/timings. Candidate mutation verification exposes the same data at
228
- `ads_status.mutations.progress`. Clients requesting MCP progress receive updates
224
+ The reporter atomically publishes partial snapshots at test start/end. While an
225
+ `ads_validate` run is active, `ads_status.validation.progress` (stage `behavior`)
226
+ exposes the profile, runner budget, elapsed time, completed/active/pending counts,
227
+ worker count when available and case identities/timings. Draft acceptance exposes
228
+ the same data at `ads_status.mutations.progress`. Clients requesting MCP progress receive updates
229
229
  and a heartbeat during the runner phase; client-side request timeouts still apply.
230
230
  `durationMs` records completed case execution, including attempts, separately from
231
231
  the suite's wall time. Parallel case durations can sum to more than wall time.
@@ -324,9 +324,10 @@ General listings return counts and short API/guarantee/scenario summaries. Exact
324
324
  owner requests return the registered details; source reads remain available for
325
325
  bounded inspection of large contracts. No full guide or test body is injected
326
326
  into discovery results.
327
- Call `ads_verify({unit, checks?})` for selected registered checks. Read
327
+ Over MCP, behavior tests run inside the two gates: `ads_accept` runs the draft
328
+ owners' own tests and `ads_validate` every test its change set reaches. Read
328
329
  `ads://project/behaviors` for current evidence or `ads://guides/behaviors` for this
329
- guide. CLI/CI equivalents are:
330
+ guide. To run one unit's checks from the CLI or CI:
330
331
 
331
332
  ```sh
332
333
  ads behaviors . --json
@@ -374,34 +375,36 @@ and retains dependencies with declared side effects. This narrowing requires a
374
375
  package `sideEffects:false` or a supported simple `sideEffects` glob array; preserve
375
376
  CSS/global effects in that policy. Unknown policies/patterns, wildcard exports and
376
377
  computed imports remain conservative. Barrel source changes still invalidate
377
- dependents. ADS caches source parsing, resolution and digests within an inspection
378
- only; later runs read current source again.
379
-
380
- When `acceptance.behaviorChecks` is true, guarded mutations execute affected
381
- registered behavior contracts after mandatory native ADS gates and
382
- `acceptance.checks`, before writing source. The developer chooses gating through
383
- project policy; registration alone does not require execution at acceptance.
384
- `validation.behaviorChecks` separately controls audits, while explicit
385
- `ads_verify` always runs the requested checks. See [validation policies](validation.md). Imported shared
386
- controller changes also select dependent contracts conservatively. Rejected and
387
- dry-run patches publish no source changes. Verification output stays under `.ds/`.
388
- To check a draft, call `ads_accept({id, revision, dryRun:true})`. This checks the
389
- candidate using the acceptance policy, including affected behavior contracts and
390
- their browser preview when enabled, rendered through the project's own compiler. Candidate evidence
391
- is not persisted as passing evidence for live source. `ads_verify` selects checks
392
- for current source and has no draft argument.
378
+ dependents. Native snapshots reuse unchanged ASTs and semantic queries across
379
+ inspections; request facts and dependency digests are scoped to captured inputs.
380
+ Later runs verify current source/configuration before reusing results. Selection
381
+ includes previous consumers when imports change and widens conservatively when
382
+ dependency evidence is missing.
383
+
384
+ Draft acceptance and guarded mutations run the draft owners' own registered
385
+ behavior contracts after `ads check` and `acceptance.scripts`, before writing
386
+ source, unless `acceptance.behavior` is false. `ads_validate` always runs every
387
+ contract its change set reaches, including the consumers of a changed shared
388
+ controller, selected conservatively. See [the two gates](validation.md). Rejected
389
+ and dry-run patches publish no source changes. Verification output stays under
390
+ `.ds/`. To check a draft, call `ads_accept({id, revision, dryRun:true})`. This
391
+ checks the candidate, including the owners' behavior contracts and their browser
392
+ preview, rendered through ADS's managed compiler. Candidate evidence is not
393
+ persisted as passing evidence for live source. `ads verify` runs checks for current
394
+ source and has no draft argument.
393
395
 
394
396
  ## Packaging and performance
395
397
 
396
398
  Controllers follow normal component/scenario imports into the project's compiled
397
- resource graph. Their framework dependencies are bundled by the project compiler
399
+ resource graph. Their framework dependencies are bundled by ADS's Bun preview compiler
398
400
  and served through MCP resources inside the App iframe; external hosts install
399
401
  nothing. The selected scenario loads its dependency closure. Shared modules are
400
402
  cached within that App instance, and each separately opened App has its own runtime.
401
403
 
402
404
  Keep ESM modules and explicit imports. Avoid an eagerly imported controller
403
- registry. Tree shaking and shared chunks follow the project bundler: class methods,
404
- side effects, global CSS and dynamic maps can retain extra code. Inspect emitted
405
+ registry. Production tree shaking and shared chunks follow the application's
406
+ bundler; previews use Bun. Class methods, side effects, global CSS and dynamic
407
+ maps can retain extra code. Inspect emitted
405
408
  resources instead of assuming a controller produces a minimal bundle.
406
409
 
407
410
  Development-only `review/<Owner>` units may register the same guarantee/check
@@ -81,6 +81,31 @@ Screenshots hide the text caret and disable animations by default. Set
81
81
  `animations:"allow"` when motion must remain active, and account for nondeterminism.
82
82
  The same capture settings are used for both sides of a candidate comparison.
83
83
 
84
+ ## Capture layout guides
85
+
86
+ Select any combination of the showcase's existing geometry layers:
87
+
88
+ ```js
89
+ ads_capture({
90
+ scenario: "patterns/Example",
91
+ guides: ["tracks", "gaps", "padding", "mini"],
92
+ viewport: { width: 1280, height: 800 }
93
+ })
94
+ ```
95
+
96
+ `guides` accepts `bounds`, `tracks` (columns and rows), `gaps` (including gutters),
97
+ `padding`, `margins`, and `mini` (mini-unit squares). Omit it or pass `[]` for a
98
+ clean screenshot. Selected layers show on all visible elements using the same
99
+ overlay as the showcase, without hover or a toolbar in the image. Geometry is
100
+ drawn only where it exists; mini-unit squares use the project's mini-unit token.
101
+ Guides are supported for components, patterns, compositions and `tokens/Layout`;
102
+ other scenario kinds reject a nonempty selection.
103
+
104
+ Named targets retain their existing crop. Current and candidate use the same
105
+ guide selection, which is recorded in each image's `settings.guides`. It replaces
106
+ the existing scenario/target slots, not an additional image history. These
107
+ annotations are visual inspection aids, not evidence that layout checks pass.
108
+
84
109
  ## Review a draft without accepting it
85
110
 
86
111
  Capture the draft's exact revision beside the accepted version, without acceptance