@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
@@ -19,7 +19,8 @@ or assume a renderer/library supplied by an MCP host. The framework field select
19
19
  compilation/mounting; controller checks also validate runtime imports. Type-only
20
20
  UI references are allowed, but shared controllers cannot import component/pattern
21
21
  runtime implementations. Keep business data in application adapters. Measured
22
- style writes retain exact `boundaries.styleWrites` properties; they do not allow
22
+ style writes retain the exact properties declared in the owner contract's
23
+ `styles.writes`; they do not allow
23
24
  shared-token overrides or an extra styling layer.
24
25
  Projects explicitly approve installed runtime packages through
25
26
  `behaviorLibraries` in `ds.config.json`; each must also be a `package.json`
@@ -38,7 +39,7 @@ build and browser review; declaring a dependency does not prove it is headless.
38
39
  Register owner behavior in `<Owner>.ads.contract.ts` with actual API and
39
40
  implementation references. The
40
41
  [contract reference](contracts.md) covers static authoring, `.ads.behavior.spec.ts`,
41
- declarative `exercises`, required browser checks and guarded migration.
42
+ declarative `exercises` and required browser checks.
42
43
  A contract declaration alone is not passing evidence. Use
43
44
  `auditBehaviorPaints(frame)` after relevant binding updates to repeat the current
44
45
  App's generic paint audit, in addition to assertions for the named guarantee.
@@ -46,7 +47,7 @@ App's generic paint audit, in addition to assertions for the named guarantee.
46
47
  ## Development boundary
47
48
 
48
49
  Production includes real components, controllers, tokens and compiled styles.
49
- Scenarios and fixtures are included only in previews. Behavior manifests and test
50
+ Scenarios and fixtures are included only in previews. Owner contracts and test
50
51
  files are development/tooling inputs. Runtime imports and public re-exports of
51
52
  those inputs are rejected, including dynamic imports and aliases.
52
53
 
@@ -162,7 +163,7 @@ command. For a project with an installed Playwright test runner:
162
163
  }
163
164
  ```
164
165
 
165
- Here `runtime` uses the Node or Bun interpreter that launched ADS, and the
166
+ Here `runtime` uses the Bun that runs ADS, and the
166
167
  project supplies the installed Playwright entry. Explicit executable commands
167
168
  retain their meaning. A Bun package-script profile can use `command: "bun"`
168
169
  with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
@@ -220,11 +221,11 @@ after a failure, does not establish the cause. Preserve the draft and original
220
221
  diagnostic; do not change a component API, reference example or verification
221
222
  policy to compensate for a resource-loading failure.
222
223
 
223
- The reporter atomically publishes partial snapshots at test start/end. While a
224
- run is active, `ads_status.behaviors.progress` exposes the profile, runner budget,
225
- elapsed time, completed/active/pending counts, worker count when available and
226
- case identities/timings. Candidate mutation verification exposes the same data at
227
- `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
228
229
  and a heartbeat during the runner phase; client-side request timeouts still apply.
229
230
  `durationMs` records completed case execution, including attempts, separately from
230
231
  the suite's wall time. Parallel case durations can sum to more than wall time.
@@ -323,9 +324,10 @@ General listings return counts and short API/guarantee/scenario summaries. Exact
323
324
  owner requests return the registered details; source reads remain available for
324
325
  bounded inspection of large contracts. No full guide or test body is injected
325
326
  into discovery results.
326
- 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
327
329
  `ads://project/behaviors` for current evidence or `ads://guides/behaviors` for this
328
- guide. CLI/CI equivalents are:
330
+ guide. To run one unit's checks from the CLI or CI:
329
331
 
330
332
  ```sh
331
333
  ads behaviors . --json
@@ -373,34 +375,36 @@ and retains dependencies with declared side effects. This narrowing requires a
373
375
  package `sideEffects:false` or a supported simple `sideEffects` glob array; preserve
374
376
  CSS/global effects in that policy. Unknown policies/patterns, wildcard exports and
375
377
  computed imports remain conservative. Barrel source changes still invalidate
376
- dependents. ADS caches source parsing, resolution and digests within an inspection
377
- only; later runs read current source again.
378
-
379
- When `acceptance.behaviorChecks` is true, guarded mutations execute affected
380
- registered behavior contracts after mandatory native ADS gates and
381
- `acceptance.checks`, before writing source. The developer chooses gating through
382
- project policy; registration alone does not require execution at acceptance.
383
- `validation.behaviorChecks` separately controls audits, while explicit
384
- `ads_verify` always runs the requested checks. See [validation policies](validation.md). Imported shared
385
- controller changes also select dependent contracts conservatively. Rejected and
386
- dry-run patches publish no source changes. Verification output stays under `.ds/`.
387
- To check a prepared draft, request its diff and pass the returned `patchFile` to
388
- `ads_apply_patch` with `dryRun:true`. This checks the isolated candidate using the acceptance policy, including
389
- affected behavior contracts and their configured browser preview when enabled. Candidate evidence
390
- is not persisted as passing evidence for live source. `ads_verify` selects checks
391
- 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.
392
395
 
393
396
  ## Packaging and performance
394
397
 
395
398
  Controllers follow normal component/scenario imports into the project's compiled
396
- 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
397
400
  and served through MCP resources inside the App iframe; external hosts install
398
401
  nothing. The selected scenario loads its dependency closure. Shared modules are
399
402
  cached within that App instance, and each separately opened App has its own runtime.
400
403
 
401
404
  Keep ESM modules and explicit imports. Avoid an eagerly imported controller
402
- registry. Tree shaking and shared chunks follow the project bundler: class methods,
403
- 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
404
408
  resources instead of assuming a controller produces a minimal bundle.
405
409
 
406
410
  Development-only `review/<Owner>` units may register the same guarantee/check
@@ -31,19 +31,107 @@ artwork; component styles still use tokens.
31
31
  - **Show it in a component.** A logo appears in the UI through a project
32
32
  component (the starter's `components/Content/Logo`) that imports the SVG with
33
33
  a plain import, which gives its URL. Artwork that nothing uses is reported (`brand-unused`).
34
- - **Preview it.** Brand previews are the showcase's first section, **Brand**. They
35
- live in `brand/`, grouped by folder like components: the starter has
36
- `brand/Identity/Logo` and `brand/Icons/AppIcon`, rendered by the review
37
- `BrandPreview` (artwork in the current theme, the app icon at its sizes). They
38
- have no token samples. Artwork no preview shows is reported (`brand-preview`).
34
+ - **It is previewed for you.** ADS renders the artwork in `assets/brand/`, subfolders included, in the
35
+ showcase's first section, **Brand** (`brand/Assets`): each artwork in the current theme and
36
+ separate construction-grid cards and clean actual-size samples. Projects author no brand
37
+ preview scenarios or renderers. The grid follows the SVG viewBox (or image pixel coordinates),
38
+ not the page's layout mini unit; the caption identifies its scale. It is an inspection aid,
39
+ not evidence that the artwork is correctly aligned beside text.
40
+
41
+ ## Aligning artwork with text
42
+
43
+ Choose the relationship before changing dimensions. A UI icon, the project's brand mark
44
+ paired with its name, and another product's logo have different constraints.
45
+
46
+ **UI icons beside labels.** Use the project's icon-size and text-size pairing. The ADS
47
+ starter's 16/20/24/32px roles are a useful starting point, not a formula for every font.
48
+ Center the icon beside the label; align neighboring text spans by their text baseline.
49
+ Keep the SVG's intended internal padding and proportions. Do not baseline-align every
50
+ icon or resize its visible artwork to equal the capital letters. This follows
51
+ [IBM's UI icon guidance](https://www.ibm.com/design/language/iconography/ui-icons/usage/).
52
+
53
+ **A mark beside a brand name.** Prefer an approved combined wordmark when one exists.
54
+ Otherwise use a small-size mark appropriate to the text and preserve its documented
55
+ clear space. Start with a centered mark and a separate text group sharing one baseline:
56
+
57
+ ```tsx
58
+ const lockup = css`
59
+ @ads-lockup {
60
+ artwork: .ux-lockup-artwork;
61
+ text: .ux-lockup-text;
62
+ size: --icon-sm;
63
+ }
64
+ gap: var(--space-4);
65
+ & .ux-lockup-text {
66
+ gap: var(--space-4);
67
+ }
68
+ `;
69
+
70
+ <span className={lockup}>
71
+ <span className="ux-lockup-artwork"><BrandMark /></span>
72
+ <span className="ux-lockup-text"><strong>ADS</strong><span>Workspace</span></span>
73
+ </span>
74
+ ```
75
+
76
+ The lockup declares the artwork's height token and owns the relationship; the artwork
77
+ keeps its intrinsic width and proportions. The containing pattern owns spacing.
78
+ An intentionally cap-height-sized brand treatment is a separate documented
79
+ choice, not the default for all icons. CSS `cap` describes a font metric, not every
80
+ letter's painted edges. A mark inside a padded SVG viewBox does not fill its element box.
81
+
82
+ Review the actual size with the intended font loaded, the real label, both themes and
83
+ relevant zoom/text sizes. Use enlarged Brand/Icons grids to inspect padding and drawing
84
+ coordinates, then judge the clean small samples for legibility. Equal element heights
85
+ or matching the mini-unit grid do not prove optical balance. Keep corrections in the
86
+ owned artwork/component; avoid scattered per-use transforms that conceal inconsistent assets.
87
+ Whole-pixel outer sizes do not guarantee sharp internal edges: the SVG coordinates,
88
+ scale, element position and display pixel ratio all affect rasterization. A dense mark
89
+ may need an authorized small-size version rather than more shrinking or darker paint.
90
+
91
+ For a third-party logo, follow its owner's artwork and clear-space rules; the example
92
+ above does not authorize cropping, recoloring or redrawing it.
93
+
94
+ ### What checks establish
95
+
96
+ `@ads-lockup` is an opt-in construction in an owned atomic Linaria template. It names
97
+ one direct artwork child and one direct text-group child using distinct class hooks
98
+ or data hooks such as `[data-lockup="art"]`. `size` is a shared token name, not a
99
+ pixel value or `var()` expression. No spatial definition is required.
100
+
101
+ Keep each text run in its own native span (or `strong`/`em`) inside the text group,
102
+ as above. ADS centers the artwork beside that group and baseline-aligns its runs.
103
+ It emits `text-box-trim: trim-both; text-box-edge: cap alphabetic` on those runs,
104
+ so font leading does not offset the letters from the mark. This trims the text's
105
+ alignment box; it does not shrink the artwork to cap height or clip descenders.
106
+ Browsers without text-trimming support retain ordinary box centering; review those
107
+ browsers separately when they are supported by the product.
108
+
109
+ The blocking `lockup-construction` control checks the declaration, owned hooks in
110
+ every resolved class alternative, inline SVG `preserveAspectRatio`, and conflicting
111
+ size, ratio, alignment or text-trimming styles, including composed classes. Change
112
+ the declaration instead of adding a second class to override it. Unknown class
113
+ evidence does not certify a lockup. Artwork may be an image/SVG or a wrapper for an
114
+ owned component/theme variants; emitted image/SVG sizing preserves intrinsic ratios.
115
+
116
+ This control does not impose square artwork, symmetry, internal padding or painted
117
+ edge equality. It does not inspect drawing coordinates or prove optical balance.
118
+ CSS or SVG internals hidden behind an opaque component/import need their owner's
119
+ checks and visual review. Standalone illustrations and undeclared brand treatments
120
+ are not lockups and remain unrestricted by this control.
121
+
122
+ Current ADS checks cover token/style ownership, glyph viewBoxes/colors, image shape,
123
+ accessible names and configured accessibility/render checks. They do not compare a
124
+ logo's painted edges to a label's glyphs, or choose the right icon/text size pairing
125
+ for a project. Do not report a clean check as proof of optical alignment.
39
126
 
40
127
  ## SVG masters, finished images and icon files
41
128
 
42
129
  `assets/brand/` holds SVG masters, finished images (PNG, JPEG, WebP) and finished
43
130
  icon files (`.ico`, `.icns`), in any mix. Each file is artwork in its own right:
44
131
  described, previewed and used like an SVG. SVG renders cleanly at any size; a
45
- finished image renders only at or below its own pixel size, so supply it large (an
46
- app icon of 1024 px); ADS never enlarges it. A finished icon file is only copied.
132
+ finished image should be delivered at or below its own pixel size, so supply it large
133
+ (an app icon of 1024 px). The Brand construction view may enlarge it for inspection;
134
+ that does not create higher-resolution artwork. A finished icon file is only copied.
47
135
  Prefer SVG masters when they exist; take finished images as delivered when that
48
136
  is what the brand provides.
49
137
 
@@ -52,8 +140,8 @@ is what the brand provides.
52
140
  Pictograms are illustrations for empty states, onboarding and marketing surfaces, not UI
53
141
  icons: never use one as an icon, a logo or a header lockup, and never use a UI glyph as an
54
142
  illustration. Keep them as brand artwork in `assets/brand/pictograms/`, so the brand
55
- checks (README, license, preview, use) cover them, and preview them in a `brand/Pictograms`
56
- group.
143
+ checks (README, license, use) cover them and the Brand view shows them under their relative
144
+ names (`pictograms/<name>.svg`).
57
145
 
58
146
  - Show them at 48 px or larger, at their original proportions; never crop or stretch them.
59
147
  - Keep clear space of at least a quarter of their size on every side, with or without a
@@ -158,7 +246,7 @@ or written permission.
158
246
  The showcase's Icons tab shows each file as it is, on a white and a black tile.
159
247
 
160
248
  ADS generates nothing from `assets/logos/` and does not treat its files as brand
161
- artwork or glyphs: the brand checks (`brand-readme`, `brand-preview`,
249
+ artwork or glyphs: the brand checks (`brand-readme`, `brand-license`,
162
250
  `brand-unused`), `assets.iconSource` and `assets.targets` cover only
163
251
  `assets/brand/`, and the glyph checks cover only `assets.glyphs.source`. Keep the
164
252
  project's own colored artwork, including its pictograms, in `assets/brand/`.
@@ -81,43 +81,43 @@ 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
- ## Review a patch without applying it
84
+ ## Capture layout guides
85
85
 
86
- Prepare/diff an owner draft normally, then request screenshots during its guarded
87
- dry run:
86
+ Select any combination of the showcase's existing geometry layers:
88
87
 
89
88
  ```js
90
- ads_apply_patch({
91
- unit: "components/Example",
92
- patchFile: ".ds/patches/<returned-name>.patch",
93
- dryRun: true,
94
- screenshot: true,
95
- captures: [{ scenario: "components/Example", target: "control", theme: "light" }]
89
+ ads_capture({
90
+ scenario: "patterns/Example",
91
+ guides: ["tracks", "gaps", "padding", "mini"],
92
+ viewport: { width: 1280, height: 800 }
96
93
  })
97
94
  ```
98
95
 
99
- The placeholder owner/ID/path must come from discovery/preparation. Transactions
100
- accept the same `screenshot`/`captures` fields. Select 1–8 distinct scenario/target
101
- pairs explicitly; do not capture every affected scenario by default. Ordinary dry
102
- runs and patches create no screenshots. `screenshot:true` requires `dryRun:true`.
103
-
104
- Core, registered lint/project and affected behavior gates pass first. ADS then
105
- captures current source and the isolated candidate under matching theme, viewport,
106
- animation and browser settings. Candidate screenshots survive candidate-directory
107
- cleanup. Final source/conflict checks still run before the pair is published. A
108
- failed/cancelled capture does not replace existing image slots or apply source.
109
- If a scenario/target is newly introduced, `current` is null with an explicit
110
- `currentAbsent` explanation; only the real candidate image exists.
111
-
112
- The edit reply is a summary. Read `ads_results({resultId,section:"captures"})` for
113
- the requested image resource URIs and `section:"diagnostics"` for relevant
114
- messages; follow `nextCursor` when needed. Read image resources explicitly.
115
- Standalone `ads_capture` continues returning its selected capture directly.
116
-
117
- Review those images and diagnostics, fix the draft if necessary, then apply
118
- with `dryRun:false`. Apply reruns all gates. An image is promoted only when the
119
- accepted source revision matches the captured candidate; other proposals remain
120
- stale. Images do not approve a patch or certify interaction/accessibility/parity.
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
+
109
+ ## Review a draft without accepting it
110
+
111
+ Capture the draft's exact revision beside the accepted version, without acceptance
112
+ checks:
113
+
114
+ ```js
115
+ ads_capture({ scenario: "components/Example", target: "control", theme: "light", draft: "<draft id>", revision: "<draft revision>" })
116
+ ```
117
+
118
+ The placeholder IDs come from discovery and `ads_drafts`. A capture is an explicit
119
+ call: acceptance and its dry run take no screenshots. A new scenario has only a
120
+ candidate image. Edits during capture prevent publication of its image slots.
121
121
 
122
122
  ## Two slots, no automatic history
123
123
 
@@ -2,7 +2,8 @@
2
2
 
3
3
  Choose [direct source editing or MCP-only editing](workflows.md). CLI commands
4
4
  are available to direct editors; MCP-only clients use exposed tools instead of
5
- assuming shell access. The compiler can be managed by MCP or externally.
5
+ assuming shell access. ADS owns preview compilation: MCP manages its watcher;
6
+ `ads compile` provides the standalone/CI command.
6
7
 
7
8
  Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
8
9
  Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
@@ -10,6 +11,9 @@ implementation, documentation, and verification workflow. ADS must be a project
10
11
  development dependency, and its checks must run before the project's build.
11
12
  Routine builds use the local CLI. ADS manages its internal Turbo dependency and
12
13
  local task cache automatically; no project Turbo configuration is required.
14
+ Checks reuse successful source reports only when their captured inputs match.
15
+ `ads assets` also writes the generated entries: the styles entry and the
16
+ public/review barrels from the owners' `.ads.exports.ts` files.
13
17
  In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
14
18
  ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
15
19
  `ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
@@ -39,16 +43,16 @@ tooling and rejects conflicting saved/JSX settings instead of converting it.
39
43
 
40
44
  Use the confirmed package name/version if different. For a Bun project, use
41
45
  `bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
42
- `bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init detects
43
- `packageManager` or `bun.lock`/`bun.lockb`, then defaults to Bun when launched
44
- with Bun. See [runtimes.md](runtimes.md)
46
+ `bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init reads
47
+ `packageManager` or `bun.lock`/`bun.lockb`. See [runtimes.md](runtimes.md)
45
48
  for MCP configuration and portable compiler/behavior commands.
46
- Use `--package-manager bun` only for an explicit override. Preserve the project's
47
- existing package-manager policy and lockfile.
49
+ Init reads the package manager from the project: `packageManager` in `package.json`,
50
+ else its lockfile. A project that declares neither must set one first. Preserve the
51
+ project's existing package-manager policy and lockfile.
48
52
 
49
- `create <folder> --framework react|preact` starts from zero: it copies the starter
50
- shipped in the same package version into a new or empty folder (`--name` sets the
51
- package name, `--package-manager bun` adapts scripts and lockfile), then runs init.
53
+ `init --include-starter` also adds the starter shipped in the same package version: its
54
+ example design system, Vite and TypeScript setup, scripts and development dependencies
55
+ that the project lacks. It never replaces an existing file or writes a lockfile.
52
56
  `init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
53
57
  framework configuration, lockfiles, and build scripts. It adds only missing ADS
54
58
  foundation files, config, development dependencies, and build checks. Existing
@@ -65,11 +69,11 @@ commit the updated lockfile.
65
69
  ## Local checkout testing
66
70
 
67
71
  If no published distribution exists, build and pack the tooling checkout with
68
- `npm run build` and `npm run pack:tool`. Resolve its tarball to an absolute path.
72
+ `bun run build` and `bun run pack:tool`. Resolve its tarball to an absolute path.
69
73
  From inside an existing test project:
70
74
 
71
75
  ```sh
72
- ads_tool_package="/absolute/path/to/reqvire-org-ads-0.3.2.tgz"
76
+ ads_tool_package="/absolute/path/to/the-tarball-produced-by-pack-tool.tgz"
73
77
  npx --yes --package "$ads_tool_package" ads --help
74
78
  npx --yes --package "$ads_tool_package" ads init --framework react --tool-package "$ads_tool_package"
75
79
  npm install
@@ -77,7 +81,7 @@ npm run build
77
81
  ```
78
82
 
79
83
  Use Bun's install/build commands for Bun projects. Keep npx options before
80
- `ds`. `--tool-package` is optional local-testing/version-override support;
84
+ `ads`. `--tool-package` is optional local-testing/version-override support;
81
85
  registry users do not need an archive. A `file:` dependency must remain
82
86
  available wherever dependencies are installed. A published pinned version is
83
87
  portable between machines.
@@ -110,23 +114,20 @@ Integrate that directory through the app's existing asset mount. Fixed token
110
114
  names and prefixes are required; project values and artwork remain project-owned.
111
115
  Builds use the installed local tool, not the initializing npx cache. Ignore `.ds/`.
112
116
  Register component-specific guards as explicit project scripts and include them
113
- in the project build and, when needed, `acceptance.checks`. `lint-config` is an
114
- optional adapter for projects that explicitly choose Oxlint; ADS gates do not
115
- require or invoke it.
117
+ in the project build and, when needed, `acceptance.scripts`.
116
118
 
117
119
  `mcp` starts stdio plus its local website; `showcase` starts the browser-only MCP
118
120
  runtime. Open the existing URL from `ads_status` when connected; otherwise use
119
- `npm run dev:showcase` or the installed `ads showcase`. With the saved framework
120
- and `mcp.previewManifest`, ADS supplies the Bun compiler and prewarms views
121
+ `npm run dev:showcase` or the installed `ads showcase`. With the saved framework,
122
+ ADS supplies the Bun compiler and prewarms views
121
123
  sequentially. Init supplies a framework mount adapter; existing projects can keep
122
- their own compatible adapter. Remove old project `mcp.previewWatch` build commands;
123
- then use the same foundation and Linaria extraction as the application. Source discovery,
124
+ their own compatible adapter, using the same foundation and Linaria extraction as the application. Source discovery,
124
125
  selected component/pattern/style/brand imports, explicit theme-value imports, and
125
126
  migration are agent workflows. There is no CLI `import` command. Core checks
126
127
  do not copy source, import values, or establish behavior/motion parity; continue
127
128
  project type checking, meaningful tests, and browser comparisons.
128
129
 
129
130
  If no CLI distribution is available, continue with the target's existing
130
- checks; creating a project needs the ADS package (`ads create`).
131
+ checks; setting ADS up needs the ADS package (`ads init`).
131
132
  Install skills separately with `npx skills`; the tool does not install skills
132
133
  or fetch an external UI catalogue.
@@ -21,14 +21,15 @@ components/Plot/
21
21
  Plot.ads.behavior.spec.ts registered browser checks
22
22
  Plot.ads.test.tsx optional unit tests
23
23
  Plot.ads.helpers.ts development-only adapters
24
+ Plot.ads.review.tsx project-specific demonstration presentation
24
25
  README.md API/provenance
25
26
  ```
26
27
 
27
28
  This is an example, not a required inventory. Use the same roles for patterns,
28
- controllers and relevant development owners. `review/` remains a separate
29
- shared development layer; its implementation filenames need no extra marker.
29
+ controllers and relevant development owners. `review/` optionally organizes shared scenario helpers; every implementation and
30
+ style file still carries its `.ads.review.*` marker.
30
31
  Runtime components, types and styles cannot import `.ads.` files, tests, fixtures
31
- or review code through aliases, barrels or helpers. Unknown `.ads.` roles are
32
+ or review code through aliases, barrels or helpers. Review presentation uses `.ads.review.*`; generic preview mounting uses `.ads.mount.*`. Unknown `.ads.` roles are
32
33
  still development-only and are diagnosed. Fixtures/helpers cannot define styles;
33
34
  put demo framing in review. Ordinary README/license files retain their names.
34
35
 
@@ -42,6 +43,54 @@ the runtime dependency closure. Review custom emitter configurations through
42
43
  the configuration owner before migrating a consuming project. Guards remain tooling. Production prop types
43
44
  belong in runtime files, never inferred from a development contract.
44
45
 
46
+ ## Public names and generated entries
47
+
48
+ Each owner declares its public names in its own `<Owner>.ads.exports.ts`, beside its
49
+ source (`components/Button.ads.exports.ts` for a flat owner,
50
+ `components/Forms/Input/Input.ads.exports.ts` for a directory owner):
51
+
52
+ ```ts
53
+ export { Button } from "./Button";
54
+ export type { ButtonProps } from "./Button";
55
+ ```
56
+
57
+ An exports file holds only named re-exports of its own owner's modules by relative
58
+ path: no `export *`, no other code, no peers' files. Public names are unique across
59
+ owners. ADS generates the public barrel (`index.ts`) by copying
60
+ every exports file's re-exports with paths rebased onto the barrel, so it names each
61
+ public export directly from its source and a product build never includes an exports
62
+ file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`styles.css`) with one `@import`
63
+ per canonical token sheet in foundation order; the public barrel imports it first.
64
+ Never edit a generated entry: `ads check` reports a stale or hand-edited one
65
+ (`generated-entry`), and the showcase, the MCP server, draft previews, acceptance
66
+ and `ads assets` rewrite them. An exports file belongs to its owner's layer:
67
+ production, or development under `review/`.
68
+
69
+ ## Style permissions
70
+
71
+ An owner declares the style permissions its own code needs in its contract, with
72
+ paths relative to the contract:
73
+
74
+ ```ts
75
+ export default {
76
+ schemaVersion: 1,
77
+ styles: {
78
+ writes: { "./Menu.tsx": ["--ds-menu-x", "--ds-menu-y"] },
79
+ inline: ["./Menu.tsx"],
80
+ },
81
+ customization: ["--ds-menu-gap"],
82
+ } satisfies UnitContract;
83
+ ```
84
+
85
+ `styles.writes` lists the CSS properties or owned `--ds-`/`--ux-`/`--showcase-`
86
+ variables a file writes at runtime (never `cssText`, state variables or shared
87
+ tokens); `styles.inline` lists files that may use inline JSX/factory styles for
88
+ measured geometry; `customization` lists a component's non-state `--ds-*` variables
89
+ that patterns, the showcase and the application may set. Contracts are allowed for
90
+ component, pattern, controller, review and showcase owners; `customization` only for
91
+ components. An unused permission is reported as stale on the contract.
92
+ `ds.config.json` holds no per-owner entries.
93
+
45
94
  ## A contract uses actual implementation references
46
95
 
47
96
  ```ts
@@ -160,7 +209,7 @@ one declared field, or a per-theme value built with the generated helpers from
160
209
  takes the value for its color scheme). Every value is a declared field and the argument is
161
210
  an object literal without spreads. The normal key/map/root proof still applies. Raw
162
211
  constants, undeclared fields, `light-dark()`, extra writes and unknown transforms are
163
- rejected. The browser audit checks an accessible color reference in every theme's branch;
212
+ rejected. The render audit checks an accessible color reference in every theme's branch;
164
213
  a local SVG URL or `none` is not a color there.
165
214
 
166
215
  Families cannot overlap shared tokens, private runtime
@@ -251,34 +300,19 @@ Shared token samples belong under the token directory. See
251
300
  project-specific audits of shared alias relationships. It supplements mandatory
252
301
  core source checks and does not enable independent local values.
253
302
 
254
- ## Migration and MCP editing
303
+ ## MCP editing
255
304
 
256
- Use the static owner contract for new registrations. Competing declarations fail.
305
+ The static owner contract is the only token, paint, declarative-part and behavior
306
+ registration. Competing declarations fail.
257
307
  Contracts participate in discovery, ownership, source revisions, affected-check
258
308
  selection and candidate gates. `ads_units` exposes `contractFile`; `ads_catalog`
259
309
  reports constrained paint paths and declarative parent/consumer/check references.
260
310
  Use bounded file reads and paged detailed results, not repeated whole-project dumps.
261
311
 
262
- Install supporting ADS tooling before migrating a consuming project and reconnect
263
- MCP before replacing a package used by a running server. Then:
264
-
265
- 1. Discover one owner with `ads_units`.
266
- 2. `ads_prepare_patch({ unit, action: "migrate" })` creates a normal local draft.
267
- 3. Review the converted contract, renamed files/imports and migration notes.
268
- 4. `ads_prepare_patch({ unit, action: "diff", draft })` emits its Git patchFile.
269
- 5. Dry-run/apply with `ads_apply_patch`, or a genuinely coupled transaction.
270
-
271
- Migration never edits live source or bypasses gates. It retains stable scenario
272
- IDs, check case IDs and directory ownership. A canonical `<Owner>.ads.scenario.tsx` is the same
273
- development entry as `Scenario.tsx`, even without a production entry or owner
274
- contract. Explicit flat IDs and existing flat peer families remain separate.
275
- An optional static `scenario.id` preserves a legacy
276
- identity when a renamed filename would otherwise be ambiguous; it must stay
277
- inside the owning unit and be unique. Whole-file or unimportable private behavior subjects stay
278
- in legacy registration with a note until deliberately resolved. Unknown runner
279
- globs, custom adapters and documentation references require review. Ambiguous
280
- flat-to-directory renames stay in the legacy form with a migration note so file
281
- ownership cannot silently change. Preserve
282
- licenses, pending drafts and unrelated work; keep transactions within their limits.
283
- There is no alternate JSON contract editor. Do not loosen a guard or make a valid
284
- API private merely to complete a migration.
312
+ A canonical `<Dir>/<Dir>.ads.scenario.tsx` is the development entry of the
313
+ directory owner `<Dir>`, even without a production entry or owner contract. In a
314
+ folder without that entry, each `<Owner>.ads.scenario.tsx` belongs to its own flat
315
+ owner, and an explicit flat `scenario.id` (`<Dir>/<Dir>`) keeps the canonical file
316
+ a flat entry. An optional static `scenario.id` keeps an identity stable when a
317
+ renamed filename would otherwise be ambiguous; it must stay inside the owning unit
318
+ and be unique.