@reqvire-org/ads 0.4.7 → 0.5.1

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 (751) hide show
  1. package/README.md +268 -420
  2. package/dist/accessibility-declarations.mjs +43 -0
  3. package/dist/active-clock.d.mts +30 -0
  4. package/dist/active-clock.mjs +26 -17
  5. package/dist/ads-errors.mjs +3684 -0
  6. package/dist/ads-view-choices.mjs +17 -0
  7. package/dist/ads-views.mjs +12 -0
  8. package/dist/analysis/captured-content.mjs +16 -0
  9. package/dist/analysis/compiler-options.mjs +3 -7
  10. package/dist/analysis/context.mjs +14 -20
  11. package/dist/analysis/controller-gates.mjs +119 -0
  12. package/dist/analysis/design-usage.mjs +142 -0
  13. package/dist/analysis/file-tree.mjs +44 -29
  14. package/dist/analysis/framework-imports.mjs +62 -0
  15. package/dist/analysis/glyph-macros.mjs +103 -0
  16. package/dist/analysis/helpers.mjs +119 -91
  17. package/dist/analysis/impact.mjs +25 -12
  18. package/dist/analysis/inputs.mjs +19 -13
  19. package/dist/analysis/mock-check.mjs +99 -0
  20. package/dist/analysis/module-graph.mjs +156 -0
  21. package/dist/analysis/module-resolvers.mjs +30 -28
  22. package/dist/analysis/native-adapter.mjs +139 -146
  23. package/dist/analysis/native-boundary.mjs +52 -0
  24. package/dist/analysis/native-project.mjs +331 -231
  25. package/dist/analysis/native-session.mjs +20 -0
  26. package/dist/analysis/owner-accessibility.mjs +74 -0
  27. package/dist/analysis/owner-analysis-cache.mjs +125 -0
  28. package/dist/analysis/owner-analysis-key.mjs +114 -0
  29. package/dist/analysis/owner-choices.mjs +896 -0
  30. package/dist/analysis/owner-composition.mjs +636 -0
  31. package/dist/analysis/owner-controls.mjs +27 -0
  32. package/dist/analysis/owner-discovery.mjs +164 -0
  33. package/dist/analysis/owner-failures.mjs +19 -0
  34. package/dist/analysis/owner-outcomes.mjs +42 -0
  35. package/dist/analysis/owner-reuse.mjs +100 -0
  36. package/dist/analysis/owner-source.mjs +1555 -0
  37. package/dist/analysis/prose-owners.mjs +57 -0
  38. package/dist/analysis/public-imports.mjs +31 -0
  39. package/dist/analysis/queries.mjs +72 -54
  40. package/dist/analysis/runtime-setters.mjs +114 -0
  41. package/dist/analysis/scenario-keys.mjs +151 -0
  42. package/dist/analysis/service.mjs +111 -70
  43. package/dist/analysis/standalone.mjs +40 -37
  44. package/dist/analysis/styling-ownership.mjs +298 -0
  45. package/dist/analysis/svg-attributes.mjs +199 -0
  46. package/dist/analysis/syntax.mjs +82 -78
  47. package/dist/analysis/visual-bindings.mjs +68 -0
  48. package/dist/analysis/worker-protocol.mjs +302 -0
  49. package/dist/analysis/worker.mjs +234 -166
  50. package/dist/api-signature.mjs +53 -0
  51. package/dist/app-icon-checks.mjs +298 -0
  52. package/dist/app-icon-declaration.d.mts +53 -0
  53. package/dist/app-icon-declaration.mjs +66 -0
  54. package/dist/asset-binding.mjs +35 -0
  55. package/dist/asset-catalog.mjs +83 -0
  56. package/dist/asset-declaration.d.mts +42 -0
  57. package/dist/asset-declaration.mjs +108 -0
  58. package/dist/asset-macro.d.mts +63 -0
  59. package/dist/asset-macro.mjs +22 -0
  60. package/dist/asset-model.mjs +74 -0
  61. package/dist/asset-usage.mjs +14 -0
  62. package/dist/asset-view-facts.mjs +41 -0
  63. package/dist/authoring-macro.d.mts +11 -0
  64. package/dist/authoring-macro.mjs +21 -0
  65. package/dist/autocomplete-hints.mjs +31 -0
  66. package/dist/availability.mjs +9 -0
  67. package/dist/behavior-macro.d.mts +31 -0
  68. package/dist/behavior-macro.mjs +3 -0
  69. package/dist/behavior-registry.mjs +358 -0
  70. package/dist/boundaries.mjs +50 -212
  71. package/dist/browser-runtime.mjs +73 -0
  72. package/dist/browser-test.d.mts +3 -0
  73. package/dist/browser-test.mjs +2 -0
  74. package/dist/bun-bundler.mjs +10 -0
  75. package/dist/bun-compiler.mjs +30 -18
  76. package/dist/bun-runtime.mjs +4 -0
  77. package/dist/bun-worker.mjs +10 -4
  78. package/dist/capture/request.mjs +81 -0
  79. package/dist/capture/worker.mjs +69 -40
  80. package/dist/capture/worker.page.mjs +6 -0
  81. package/dist/capture-store.mjs +159 -75
  82. package/dist/capture.mjs +232 -95
  83. package/dist/check-service.mjs +27 -33
  84. package/dist/check.mjs +206 -904
  85. package/dist/cli-arguments.mjs +278 -0
  86. package/dist/cli.mjs +374 -304
  87. package/dist/color-values.mjs +294 -242
  88. package/dist/composed-contrast.mjs +648 -0
  89. package/dist/composed-keyline.mjs +107 -0
  90. package/dist/config.mjs +162 -468
  91. package/dist/construction-output.mjs +345 -0
  92. package/dist/construction-spec.d.mts +915 -0
  93. package/dist/construction-spec.mjs +1178 -0
  94. package/dist/corner-overpaint.mjs +53 -0
  95. package/dist/css-length.mjs +80 -0
  96. package/dist/css-quantity.mjs +173 -0
  97. package/dist/deletion-model.mjs +56 -0
  98. package/dist/deletion-plan.mjs +364 -0
  99. package/dist/dependency-manifest.mjs +56 -0
  100. package/dist/design-context-model.d.mts +61 -0
  101. package/dist/design-context-model.mjs +79 -0
  102. package/dist/design-contexts.mjs +105 -0
  103. package/dist/design-foundation.mjs +532 -0
  104. package/dist/design-inputs.mjs +156 -0
  105. package/dist/design-modules.mjs +27 -0
  106. package/dist/design-rejection.d.mts +23 -0
  107. package/dist/design-rejection.mjs +29 -0
  108. package/dist/design-system-closure.mjs +108 -0
  109. package/dist/design-usage.mjs +54 -0
  110. package/dist/development-modules.mjs +2 -0
  111. package/dist/development-runtime.mjs +0 -7
  112. package/dist/digest.mjs +2 -0
  113. package/dist/draft-boundary.mjs +1 -27
  114. package/dist/draft-workspace.mjs +11 -5
  115. package/dist/emit/accept.mjs +33 -0
  116. package/dist/emit/app-icon-emission.mjs +124 -0
  117. package/dist/emit/app-icon-render.mjs +126 -0
  118. package/dist/emit/asset-imports.mjs +18 -0
  119. package/dist/emit/cli-report.mjs +97 -0
  120. package/dist/emit/contract.mjs +136 -0
  121. package/dist/emit/emission.mjs +182 -0
  122. package/dist/emit/font-emission.mjs +111 -0
  123. package/dist/emit/foundation-sheet.mjs +56 -0
  124. package/dist/emit/icon-containers.mjs +46 -0
  125. package/dist/emit/integrity.mjs +61 -0
  126. package/dist/emit/lock.mjs +66 -0
  127. package/dist/emit/namespace.mjs +79 -0
  128. package/dist/emit/operation-reply.mjs +3 -0
  129. package/dist/emit/operation.mjs +36 -0
  130. package/dist/emit/output-location.mjs +20 -0
  131. package/dist/emit/output-package.mjs +7 -0
  132. package/dist/emit/owner-emission-cache.mjs +52 -0
  133. package/dist/emit/palette-module.mjs +19 -0
  134. package/dist/emit/palette-refresh.mjs +77 -0
  135. package/dist/emit/preview-emitter.mjs +110 -0
  136. package/dist/emit/preview-tree.mjs +174 -0
  137. package/dist/emit/scheduler.mjs +75 -0
  138. package/dist/emit/service.mjs +249 -0
  139. package/dist/emit/sync.mjs +38 -0
  140. package/dist/emit/watch.mjs +74 -0
  141. package/dist/emit/writer.mjs +102 -0
  142. package/dist/evidence.mjs +6 -8
  143. package/dist/example-babel.mjs +7 -0
  144. package/dist/example-literals.mjs +88 -0
  145. package/dist/finding-rules.mjs +78 -77
  146. package/dist/focus-checks.mjs +93 -0
  147. package/dist/font-checks.mjs +185 -0
  148. package/dist/font-declaration.d.mts +64 -0
  149. package/dist/font-declaration.mjs +99 -0
  150. package/dist/font-fallback.d.mts +37 -0
  151. package/dist/font-fallback.mjs +25 -0
  152. package/dist/font-macro.d.mts +42 -0
  153. package/dist/font-macro.mjs +6 -0
  154. package/dist/font-metrics.d.mts +34 -0
  155. package/dist/font-metrics.mjs +314 -0
  156. package/dist/font-model.mjs +63 -0
  157. package/dist/form-states.mjs +82 -0
  158. package/dist/foundation-macro.d.mts +108 -0
  159. package/dist/foundation-macro.mjs +6 -0
  160. package/dist/frame-regions.mjs +253 -0
  161. package/dist/glyph-set-declaration.d.mts +27 -0
  162. package/dist/glyph-set-declaration.mjs +36 -0
  163. package/dist/grid-checks.mjs +94 -0
  164. package/dist/grid-facts.mjs +148 -0
  165. package/dist/grid-lowering.mjs +263 -0
  166. package/dist/guard/cli.mjs +51 -0
  167. package/dist/guard/config.mjs +67 -0
  168. package/dist/guard/files.mjs +31 -0
  169. package/dist/guard/index.mjs +3 -0
  170. package/dist/guard/run.mjs +56 -0
  171. package/dist/guard/tsconfig.declarations.json +13 -0
  172. package/dist/index.mjs +2 -7
  173. package/dist/init-project.mjs +134 -0
  174. package/dist/init.mjs +217 -264
  175. package/dist/input-digests.mjs +109 -163
  176. package/dist/input-scope.mjs +18 -41
  177. package/dist/inspected-svg.d.mts +28 -0
  178. package/dist/inspected-svg.mjs +40 -0
  179. package/dist/inventories.mjs +149 -0
  180. package/dist/inventory-query.mjs +15 -0
  181. package/dist/investigations.mjs +177 -99
  182. package/dist/json.d.mts +10 -0
  183. package/dist/json.mjs +36 -0
  184. package/dist/linaria/atomic-processor.json +96 -0
  185. package/dist/linaria/atomic-processor.mjs +2452 -0
  186. package/dist/linaria/backend-identity.mjs +26 -0
  187. package/dist/linaria/compatibility.json +61 -0
  188. package/dist/linaria/css-shape.mjs +94 -0
  189. package/dist/linaria/custom-property-css.mjs +56 -0
  190. package/dist/linaria/delivery.mjs +111 -0
  191. package/dist/linaria/direct-extract.mjs +43 -0
  192. package/dist/linaria/extraction-cache.mjs +31 -0
  193. package/dist/linaria/extraction-model.mjs +5 -0
  194. package/dist/linaria/fingerprint.mjs +183 -0
  195. package/dist/linaria/pair-manifest.json +2315 -0
  196. package/dist/linaria/persisted-extraction-cache.mjs +352 -0
  197. package/dist/linaria/preservation.mjs +13 -0
  198. package/dist/linaria/priority-emitted-rank.mjs +40 -0
  199. package/dist/linaria/priority-manifest.mjs +87 -0
  200. package/dist/linaria/priority-table.mjs +47 -0
  201. package/dist/linaria/priority-tiers.mjs +27 -0
  202. package/dist/linaria/processor-host.mjs +42 -0
  203. package/dist/linaria/processor-runtime.mjs +36 -0
  204. package/dist/linaria-processor-NOTICES.md +147 -0
  205. package/dist/lowering-components.mjs +14 -0
  206. package/dist/lowering-effects.mjs +38 -0
  207. package/dist/lowering-emitter.mjs +29 -0
  208. package/dist/lowering-enter.mjs +31 -0
  209. package/dist/lowering-hidden.mjs +30 -0
  210. package/dist/lowering-layer.mjs +141 -0
  211. package/dist/lowering-motion.mjs +37 -0
  212. package/dist/lowering-normalize.mjs +194 -0
  213. package/dist/lowering-overlaps.mjs +328 -0
  214. package/dist/lowering-paint.mjs +32 -0
  215. package/dist/lowering-properties.mjs +165 -0
  216. package/dist/lowering-region-layout.mjs +225 -0
  217. package/dist/lowering-sequence.mjs +89 -0
  218. package/dist/lowering-serialize.mjs +40 -0
  219. package/dist/lowering-session.mjs +137 -0
  220. package/dist/lowering-tiers.mjs +23 -0
  221. package/dist/lowering-transitions.mjs +53 -0
  222. package/dist/mcp/ads-mcp.mjs +423 -0
  223. package/dist/mcp/apps.mjs +3 -25
  224. package/dist/mcp/behavior-pages.mjs +58 -51
  225. package/dist/mcp/build-status.mjs +233 -267
  226. package/dist/mcp/catalog.mjs +21 -128
  227. package/dist/mcp/compiler-channel.mjs +218 -83
  228. package/dist/mcp/context.mjs +50 -40
  229. package/dist/mcp/deletions.mjs +147 -0
  230. package/dist/mcp/draft-discovery.mjs +43 -38
  231. package/dist/mcp/drafts.mjs +635 -691
  232. package/dist/mcp/execution-context.mjs +33 -22
  233. package/dist/mcp/execution-coordinator.mjs +367 -354
  234. package/dist/mcp/execution-results.mjs +440 -173
  235. package/dist/mcp/mutation-limits.mjs +1 -2
  236. package/dist/mcp/mutations.mjs +515 -553
  237. package/dist/mcp/patch.mjs +117 -75
  238. package/dist/mcp/preview-http.bundle.js +3 -7
  239. package/dist/mcp/preview-http.mjs +220 -107
  240. package/dist/mcp/preview-owner-guard.mjs +81 -43
  241. package/dist/mcp/preview-watch.mjs +428 -365
  242. package/dist/mcp/preview-widget.bundle.js +42 -46
  243. package/dist/mcp/preview-work.mjs +25 -13
  244. package/dist/mcp/prompts.mjs +22 -16
  245. package/dist/mcp/resource-loader.js +1 -1
  246. package/dist/mcp/result-pages.mjs +94 -54
  247. package/dist/mcp/sandbox-host.mjs +41 -19
  248. package/dist/mcp/server-discovery.mjs +96 -0
  249. package/dist/mcp/server-guides.mjs +43 -0
  250. package/dist/mcp/server-host.mjs +203 -0
  251. package/dist/mcp/server-observation.mjs +225 -0
  252. package/dist/mcp/server-project.mjs +371 -0
  253. package/dist/mcp/server-resources.mjs +466 -0
  254. package/dist/mcp/server-shared.mjs +79 -0
  255. package/dist/mcp/server-tools.mjs +791 -0
  256. package/dist/mcp/server.mjs +2 -2813
  257. package/dist/mcp/showcase-host.mjs +209 -135
  258. package/dist/mcp/showcase-http.mjs +50 -28
  259. package/dist/mcp/skills.mjs +32 -36
  260. package/dist/mcp/text-diff.mjs +18 -36
  261. package/dist/measured-geometry.mjs +157 -0
  262. package/dist/motion-model.mjs +52 -0
  263. package/dist/non-text-contrast.mjs +118 -0
  264. package/dist/owner-analysis-check.mjs +711 -0
  265. package/dist/owner-design.mjs +15 -0
  266. package/dist/owner-errors.mjs +216 -0
  267. package/dist/owner-lowering.mjs +206 -0
  268. package/dist/owner-scenarios.mjs +854 -0
  269. package/dist/ownership-model.d.mts +6 -0
  270. package/dist/ownership-model.mjs +143 -0
  271. package/dist/package-declarations.mjs +34 -0
  272. package/dist/paint-contrast.mjs +186 -0
  273. package/dist/palette-generated.mjs +101 -116
  274. package/dist/pictogram-model.mjs +13 -51
  275. package/dist/placeholder-contrast.mjs +35 -0
  276. package/dist/platform-features.mjs +401 -0
  277. package/dist/press-scale.mjs +26 -0
  278. package/dist/preview-bun.mjs +334 -404
  279. package/dist/preview-compile-inputs.mjs +78 -0
  280. package/dist/preview-contexts.mjs +7 -0
  281. package/dist/preview-controls.mjs +35 -0
  282. package/dist/preview-failure.mjs +20 -10
  283. package/dist/preview-files.mjs +18 -36
  284. package/dist/preview-imports.mjs +76 -70
  285. package/dist/preview-incremental.mjs +322 -222
  286. package/dist/preview-inputs.mjs +26 -26
  287. package/dist/preview-manifest-update.mjs +67 -49
  288. package/dist/preview-requests.mjs +10 -17
  289. package/dist/preview-resources.mjs +275 -323
  290. package/dist/preview-scope.mjs +15 -17
  291. package/dist/preview-source.mjs +182 -0
  292. package/dist/preview-spatial.mjs +27 -0
  293. package/dist/profile-macro.d.mts +56 -0
  294. package/dist/profile-macro.mjs +6 -0
  295. package/dist/profile-model.d.mts +65 -0
  296. package/dist/profile-model.mjs +213 -0
  297. package/dist/profile-view-facts.mjs +93 -0
  298. package/dist/program-cache.mjs +9 -7
  299. package/dist/project-boundary.mjs +8 -13
  300. package/dist/project-documents.mjs +25 -29
  301. package/dist/property-registrations.mjs +44 -35
  302. package/dist/prose-model.d.mts +81 -0
  303. package/dist/prose-model.mjs +101 -0
  304. package/dist/public-catalog.mjs +76 -0
  305. package/dist/recipe-defaults.mjs +117 -0
  306. package/dist/recipe-macro.d.mts +502 -0
  307. package/dist/recipe-macro.mjs +23 -0
  308. package/dist/recipe-model.d.mts +26 -0
  309. package/dist/recipe-model.mjs +214 -0
  310. package/dist/region-lowering.mjs +723 -0
  311. package/dist/registration-css.mjs +41 -0
  312. package/dist/registration-roles.mjs +35 -0
  313. package/dist/render-audit/axe-run.page.mjs +28 -0
  314. package/dist/render-audit/corner-overpaint.page.mjs +54 -0
  315. package/dist/render-audit/first-render.page.mjs +35 -0
  316. package/dist/render-audit/image-shape.page.mjs +42 -0
  317. package/dist/render-audit/layout-overflow.page.mjs +240 -0
  318. package/dist/render-audit/layout-shift.page.mjs +36 -0
  319. package/dist/render-audit/non-text-contrast.page.mjs +138 -0
  320. package/dist/render-audit/render-states.mjs +66 -293
  321. package/dist/render-audit/render-states.page.mjs +177 -0
  322. package/dist/render-audit/text-scale.mjs +42 -0
  323. package/dist/render-audit/text-scale.page.mjs +25 -0
  324. package/dist/render-audit/worker.mjs +130 -112
  325. package/dist/render-audit/worker.page.mjs +21 -0
  326. package/dist/render-audit.mjs +490 -500
  327. package/dist/resource-limits.mjs +174 -223
  328. package/dist/result.d.mts +34 -0
  329. package/dist/result.mjs +60 -0
  330. package/dist/role-vocabulary.d.mts +260 -0
  331. package/dist/role-vocabulary.mjs +258 -0
  332. package/dist/runtime-paint-contrast.mjs +97 -0
  333. package/dist/runtime-paint.mjs +42 -0
  334. package/dist/runtime-requirements.mjs +10 -11
  335. package/dist/runtime-style.mjs +21 -0
  336. package/dist/scenario-groups.mjs +42 -33
  337. package/dist/scenario-inspector.mjs +4 -4
  338. package/dist/scenario-kit.d.mts +85 -0
  339. package/dist/scenario-kit.mjs +18 -0
  340. package/dist/scenario-registry-model.mjs +2 -0
  341. package/dist/scenario-registry.mjs +89 -108
  342. package/dist/scenarios-compiler.mjs +875 -662
  343. package/dist/scheme-switch.d.mts +8 -0
  344. package/dist/scheme-switch.mjs +1 -0
  345. package/dist/showcase/ads-views.mjs +166 -0
  346. package/dist/showcase/assets-view.mjs +252 -0
  347. package/dist/showcase/client.bundle.js +211 -48
  348. package/dist/showcase/guide-controls.d.mts +28 -0
  349. package/dist/showcase/guide-controls.mjs +31 -0
  350. package/dist/showcase/http-client.bundle.js +172 -9
  351. package/dist/showcase/index.html +1 -1
  352. package/dist/showcase/preview-frame.css +18 -0
  353. package/dist/showcase/preview-frame.d.mts +5 -0
  354. package/dist/showcase/preview-frame.mjs +4 -0
  355. package/dist/showcase/preview-root.d.mts +2 -0
  356. package/dist/showcase/preview-root.mjs +9 -0
  357. package/dist/showcase/profiles-view.mjs +321 -0
  358. package/dist/showcase/project-rules.mjs +9 -0
  359. package/dist/showcase/sandbox.bundle.js +1 -1
  360. package/dist/showcase/scenario-page.d.mts +49 -0
  361. package/dist/showcase/scenario-page.mjs +105 -0
  362. package/dist/showcase/style.css +2 -0
  363. package/dist/showcase/token-sample.mjs +89 -0
  364. package/dist/showcase/tokens-view.mjs +233 -0
  365. package/dist/showcase/ui/apple-touch-icon-9zwv3w79.png +0 -0
  366. package/dist/showcase/{favicon.ico → ui/favicon-c2c9kvtf.ico} +0 -0
  367. package/dist/showcase/ui/icon-192-t5zh7mxx.png +0 -0
  368. package/dist/showcase/ui/icon-512-ed6yz0n0.png +0 -0
  369. package/dist/showcase/ui/ui.css +1 -1353
  370. package/dist/showcase/ui/ui.js +165 -1064
  371. package/dist/showcase-http-routes.mjs +28 -21
  372. package/dist/skills/README.md +28 -28
  373. package/dist/skills/ads-designer/README.md +1 -1
  374. package/dist/skills/ads-designer/SKILL.md +313 -551
  375. package/dist/skills/ads-designer/references/accessibility.md +162 -114
  376. package/dist/skills/ads-designer/references/atomic-styles.md +72 -277
  377. package/dist/skills/ads-designer/references/behaviors.md +144 -280
  378. package/dist/skills/ads-designer/references/branding.md +137 -222
  379. package/dist/skills/ads-designer/references/captures.md +13 -7
  380. package/dist/skills/ads-designer/references/cli.md +80 -63
  381. package/dist/skills/ads-designer/references/contracts.md +225 -286
  382. package/dist/skills/ads-designer/references/design-craft.md +2 -2
  383. package/dist/skills/ads-designer/references/design-data.md +299 -323
  384. package/dist/skills/ads-designer/references/drafts.md +83 -22
  385. package/dist/skills/ads-designer/references/evidence.md +2 -1
  386. package/dist/skills/ads-designer/references/forms.md +199 -0
  387. package/dist/skills/ads-designer/references/guarded-editing.md +37 -48
  388. package/dist/skills/ads-designer/references/layers.md +64 -76
  389. package/dist/skills/ads-designer/references/layout.md +224 -330
  390. package/dist/skills/ads-designer/references/mobile.md +2 -2
  391. package/dist/skills/ads-designer/references/motion.md +66 -25
  392. package/dist/skills/ads-designer/references/performance.md +55 -50
  393. package/dist/skills/ads-designer/references/pictograms.md +62 -127
  394. package/dist/skills/ads-designer/references/recipes.md +368 -0
  395. package/dist/skills/ads-designer/references/review.md +51 -95
  396. package/dist/skills/ads-designer/references/runtimes.md +34 -33
  397. package/dist/skills/ads-designer/references/scenarios.md +256 -216
  398. package/dist/skills/ads-designer/references/stress-test.md +13 -5
  399. package/dist/skills/ads-designer/references/validation.md +28 -21
  400. package/dist/skills/ads-designer/references/workflows.md +7 -5
  401. package/dist/skills/ads-import/SKILL.md +29 -29
  402. package/dist/skills/ads-import/references/atomic-styles.md +72 -277
  403. package/dist/skills/ads-import/references/behaviors.md +144 -280
  404. package/dist/skills/ads-import/references/branding.md +24 -41
  405. package/dist/skills/ads-import/references/captures.md +13 -7
  406. package/dist/skills/ads-import/references/cli.md +80 -63
  407. package/dist/skills/ads-import/references/compatibility.md +3 -3
  408. package/dist/skills/ads-import/references/contracts.md +225 -286
  409. package/dist/skills/ads-import/references/design-data.md +299 -323
  410. package/dist/skills/ads-import/references/drafts.md +83 -22
  411. package/dist/skills/ads-import/references/evidence.md +2 -1
  412. package/dist/skills/ads-import/references/forms.md +199 -0
  413. package/dist/skills/ads-import/references/guarded-editing.md +37 -48
  414. package/dist/skills/ads-import/references/implementation.md +20 -20
  415. package/dist/skills/ads-import/references/layers.md +64 -76
  416. package/dist/skills/ads-import/references/layout.md +224 -330
  417. package/dist/skills/ads-import/references/recipes.md +368 -0
  418. package/dist/skills/ads-import/references/review.md +51 -95
  419. package/dist/skills/ads-import/references/runtimes.md +34 -33
  420. package/dist/skills/ads-import/references/scenarios.md +256 -216
  421. package/dist/skills/ads-import/references/tokens.md +26 -17
  422. package/dist/skills/ads-import/references/validation.md +28 -21
  423. package/dist/skills/ads-import/references/workflows.md +7 -5
  424. package/dist/skills/ads-migrate/SKILL.md +20 -5
  425. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +6 -0
  426. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0-boundary.md +71 -0
  427. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0-grid.md +204 -0
  428. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0.md +727 -0
  429. package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
  430. package/dist/skills/ads-port/SKILL.md +27 -28
  431. package/dist/skills/ads-port/references/atomic-styles.md +72 -277
  432. package/dist/skills/ads-port/references/behaviors.md +144 -280
  433. package/dist/skills/ads-port/references/captures.md +13 -7
  434. package/dist/skills/ads-port/references/cli.md +80 -63
  435. package/dist/skills/ads-port/references/contracts.md +225 -286
  436. package/dist/skills/ads-port/references/design-data.md +299 -323
  437. package/dist/skills/ads-port/references/drafts.md +83 -22
  438. package/dist/skills/ads-port/references/evidence.md +2 -1
  439. package/dist/skills/ads-port/references/forms.md +199 -0
  440. package/dist/skills/ads-port/references/guarded-editing.md +37 -48
  441. package/dist/skills/ads-port/references/layers.md +64 -76
  442. package/dist/skills/ads-port/references/layout.md +224 -330
  443. package/dist/skills/ads-port/references/lint-and-docs.md +2 -3
  444. package/dist/skills/ads-port/references/native-implementation.md +23 -33
  445. package/dist/skills/ads-port/references/recipes.md +368 -0
  446. package/dist/skills/ads-port/references/review.md +51 -95
  447. package/dist/skills/ads-port/references/runtimes.md +34 -33
  448. package/dist/skills/ads-port/references/scenarios.md +256 -216
  449. package/dist/skills/ads-port/references/validation.md +28 -21
  450. package/dist/skills/ads-port/references/workflows.md +7 -5
  451. package/dist/source-inventory.mjs +33 -0
  452. package/dist/source-values.mjs +272 -262
  453. package/dist/spatial-css.mjs +403 -0
  454. package/dist/spatial-metadata.mjs +11 -11
  455. package/dist/spatial-model.mjs +438 -0
  456. package/dist/spatial-reading.mjs +127 -0
  457. package/dist/stage-timing.mjs +27 -0
  458. package/dist/state-conditions.d.mts +80 -0
  459. package/dist/state-conditions.mjs +107 -0
  460. package/dist/static-values.mjs +94 -0
  461. package/dist/surface-contrast.mjs +252 -0
  462. package/dist/surface-effects.mjs +98 -0
  463. package/dist/target-size.mjs +177 -0
  464. package/dist/task-cache.mjs +142 -136
  465. package/dist/task-worker.mjs +18 -18
  466. package/dist/test-boundaries.mjs +50 -189
  467. package/dist/token-checks.mjs +21 -0
  468. package/dist/token-dtcg.mjs +136 -0
  469. package/dist/token-expression.mjs +19 -0
  470. package/dist/token-inventory.mjs +146 -0
  471. package/dist/token-operations.mjs +37 -0
  472. package/dist/token-overlap.mjs +29 -0
  473. package/dist/token-provenance.mjs +260 -0
  474. package/dist/token-references.mjs +71 -0
  475. package/dist/token-registrations.mjs +116 -0
  476. package/dist/token-resolution.mjs +38 -0
  477. package/dist/token-sections.mjs +123 -0
  478. package/dist/token-shapes.mjs +121 -0
  479. package/dist/token-sheet-check.mjs +54 -0
  480. package/dist/token-type-check.mjs +89 -0
  481. package/dist/token-view-facts.mjs +111 -0
  482. package/dist/tsconfig.declarations.json +24 -0
  483. package/dist/types/css-tree.d.ts +45 -0
  484. package/dist/ui-framework.mjs +34 -34
  485. package/dist/units.mjs +186 -226
  486. package/dist/unknown.d.mts +9 -0
  487. package/dist/unknown.mjs +13 -0
  488. package/dist/unreached-sources.mjs +5 -0
  489. package/dist/validation-checks.mjs +62 -71
  490. package/dist/validation-inputs.mjs +209 -279
  491. package/dist/validation.mjs +132 -159
  492. package/dist/verification/browser.d.mts +21 -25
  493. package/dist/verification/browser.mjs +281 -124
  494. package/dist/verification/browser.page.d.mts +22 -0
  495. package/dist/verification/browser.page.mjs +19 -0
  496. package/dist/verification/paint-audit.page.d.mts +55 -0
  497. package/dist/verification/paint-audit.page.mjs +144 -0
  498. package/dist/verification/playwright-reporter.mjs +160 -0
  499. package/dist/verification/preview-startup.d.mts +51 -0
  500. package/dist/verification/preview-startup.mjs +76 -0
  501. package/dist/verification/request.d.mts +28 -0
  502. package/dist/verification/request.mjs +30 -0
  503. package/dist/verification/unit-preload.mjs +37 -0
  504. package/dist/verification.mjs +574 -607
  505. package/docs/ADS.md +585 -565
  506. package/docs/ARCHITECTURE.md +2002 -1384
  507. package/docs/ASSETS.md +487 -0
  508. package/docs/BEHAVIORS.md +339 -370
  509. package/docs/CACHING.md +365 -154
  510. package/docs/CHANGELOG.md +462 -21
  511. package/docs/COMPARISON.md +21 -26
  512. package/docs/DESIGN-REFERENCES.md +40 -27
  513. package/docs/GUIDE.md +2473 -1292
  514. package/docs/LANGUAGE.md +1159 -0
  515. package/docs/LOWERING.md +180 -0
  516. package/docs/MCP.md +1461 -1179
  517. package/docs/MOTION.md +491 -0
  518. package/docs/PROFILE-KINDS.md +544 -0
  519. package/docs/PROFILES.md +176 -0
  520. package/docs/RULES.md +590 -0
  521. package/docs/TOKEN-ROLES.md +377 -0
  522. package/docs/benchmarks/README.md +26 -27
  523. package/package.json +59 -45
  524. package/dist/a11y.mjs +0 -187
  525. package/dist/assets.mjs +0 -159
  526. package/dist/atomic-composition.mjs +0 -337
  527. package/dist/atomic-trace.mjs +0 -162
  528. package/dist/behavior-libraries.mjs +0 -174
  529. package/dist/behaviors.mjs +0 -306
  530. package/dist/brand-assets.mjs +0 -458
  531. package/dist/brands.mjs +0 -141
  532. package/dist/component-contrast.mjs +0 -256
  533. package/dist/construction-styles.cjs +0 -10
  534. package/dist/contracts/foundation.json +0 -211
  535. package/dist/contracts/tokens.json +0 -52
  536. package/dist/contracts.d.mts +0 -30
  537. package/dist/contrast-composition.mjs +0 -80
  538. package/dist/contrast-styles.mjs +0 -88
  539. package/dist/control-padding.mjs +0 -113
  540. package/dist/css-values.mjs +0 -27
  541. package/dist/declarative-flow.mjs +0 -244
  542. package/dist/design-values.mjs +0 -173
  543. package/dist/font-rules.mjs +0 -108
  544. package/dist/fonts-generated.mjs +0 -112
  545. package/dist/foundation-views.mjs +0 -242
  546. package/dist/foundation.mjs +0 -154
  547. package/dist/generated-entries.mjs +0 -198
  548. package/dist/html.mjs +0 -30
  549. package/dist/icons.mjs +0 -154
  550. package/dist/image-attributes.mjs +0 -187
  551. package/dist/image-size.mjs +0 -28
  552. package/dist/layers.mjs +0 -461
  553. package/dist/layout-widths.mjs +0 -332
  554. package/dist/linaria/atomic-css.cjs +0 -2
  555. package/dist/linaria/atomic-styled.cjs +0 -2
  556. package/dist/linaria/preserve-values.cjs +0 -58
  557. package/dist/linaria/spatial-inputs.cjs +0 -56
  558. package/dist/linaria.d.mts +0 -1
  559. package/dist/linaria.mjs +0 -9
  560. package/dist/lockup-composition.mjs +0 -44
  561. package/dist/lockup-model.cjs +0 -64
  562. package/dist/paint-contracts.mjs +0 -216
  563. package/dist/pictograms.mjs +0 -52
  564. package/dist/public-api.mjs +0 -121
  565. package/dist/public-props.mjs +0 -91
  566. package/dist/render-audit/axe-run.mjs +0 -17
  567. package/dist/render-audit/first-render.mjs +0 -40
  568. package/dist/render-audit/image-shape.mjs +0 -46
  569. package/dist/render-audit/layout-overflow.mjs +0 -167
  570. package/dist/render-audit/layout-shift.mjs +0 -32
  571. package/dist/render-audit/non-text-contrast.mjs +0 -151
  572. package/dist/render-audit/pictograms.mjs +0 -88
  573. package/dist/render-color-probe.mjs +0 -202
  574. package/dist/render-composition.mjs +0 -186
  575. package/dist/runtime-contracts.mjs +0 -506
  576. package/dist/scenario-program.mjs +0 -19
  577. package/dist/scenario-selectors.mjs +0 -237
  578. package/dist/scenario-slots.mjs +0 -217
  579. package/dist/scenario-trace.mjs +0 -314
  580. package/dist/scenarios-vite.d.mts +0 -2
  581. package/dist/scenarios-vite.mjs +0 -2
  582. package/dist/scenarios.mjs +0 -616
  583. package/dist/selector-match.mjs +0 -94
  584. package/dist/showcase/comparison.js +0 -48
  585. package/dist/showcase/connection.js +0 -10
  586. package/dist/showcase/draft-navigation.js +0 -59
  587. package/dist/showcase/foundation-view.css +0 -58
  588. package/dist/showcase/foundation-view.mjs +0 -255
  589. package/dist/showcase/guide-controls.ads.review.mjs +0 -32
  590. package/dist/showcase/http-connection.js +0 -86
  591. package/dist/showcase/http-preview.js +0 -81
  592. package/dist/showcase/icons.js +0 -2
  593. package/dist/showcase/navigation.js +0 -13
  594. package/dist/showcase/pictogram-view.mjs +0 -53
  595. package/dist/showcase/preview-frame.ads.review.css +0 -46
  596. package/dist/showcase/preview-frame.ads.review.d.mts +0 -11
  597. package/dist/showcase/preview-frame.ads.review.mjs +0 -22
  598. package/dist/showcase/preview-state.js +0 -11
  599. package/dist/showcase/refresh-scheduler.js +0 -23
  600. package/dist/showcase/resource-reader.js +0 -37
  601. package/dist/showcase-coverage.mjs +0 -139
  602. package/dist/source-symbols.mjs +0 -4
  603. package/dist/spatial-composition.mjs +0 -322
  604. package/dist/spatial-contexts.cjs +0 -56
  605. package/dist/spatial-css.cjs +0 -351
  606. package/dist/spatial-inputs.cjs +0 -80
  607. package/dist/spatial-model.cjs +0 -322
  608. package/dist/spatial.mjs +0 -21
  609. package/dist/stage-timing.cjs +0 -21
  610. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +0 -105
  611. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -275
  612. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +0 -7
  613. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +0 -10
  614. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +0 -8
  615. package/dist/starters/preact/ds.config.json +0 -37
  616. package/dist/starters/preact/package.json +0 -35
  617. package/dist/starters/preact/src/vite-env.d.ts +0 -7
  618. package/dist/starters/preact/tsconfig.json +0 -35
  619. package/dist/starters/preact/vite.config.ts +0 -23
  620. package/dist/starters/react/ADS.md +0 -286
  621. package/dist/starters/react/README.md +0 -184
  622. package/dist/starters/react/biome.css.json +0 -21
  623. package/dist/starters/react/design-system/assets/brand/README.md +0 -41
  624. package/dist/starters/react/design-system/assets/brand/app-icon.svg +0 -4
  625. package/dist/starters/react/design-system/assets/brand/logo.dark.svg +0 -6
  626. package/dist/starters/react/design-system/assets/brand/logo.svg +0 -6
  627. package/dist/starters/react/design-system/assets/glyphs/README.md +0 -15
  628. package/dist/starters/react/design-system/assets/glyphs/aliases.json +0 -1
  629. package/dist/starters/react/design-system/assets/glyphs/check.svg +0 -1
  630. package/dist/starters/react/design-system/assets/glyphs/chevron-down.svg +0 -1
  631. package/dist/starters/react/design-system/assets/glyphs/chevron-right.svg +0 -1
  632. package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
  633. package/dist/starters/react/design-system/assets/glyphs/external-link.svg +0 -1
  634. package/dist/starters/react/design-system/assets/glyphs/info.svg +0 -1
  635. package/dist/starters/react/design-system/assets/glyphs/menu.svg +0 -1
  636. package/dist/starters/react/design-system/assets/glyphs/plus.svg +0 -1
  637. package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
  638. package/dist/starters/react/design-system/assets/glyphs/warning.svg +0 -1
  639. package/dist/starters/react/design-system/assets/pictograms/catalog.ads.json +0 -13
  640. package/dist/starters/react/design-system/assets/pictograms/journey.dark.svg +0 -7
  641. package/dist/starters/react/design-system/assets/pictograms/journey.svg +0 -7
  642. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +0 -1
  643. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -1
  644. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -13
  645. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -56
  646. package/dist/starters/react/design-system/components/Actions/Button/README.md +0 -12
  647. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +0 -1
  648. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.fixture.ts +0 -9
  649. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.scenario.tsx +0 -16
  650. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -60
  651. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +0 -17
  652. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +0 -1
  653. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.fixture.ts +0 -6
  654. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -16
  655. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -42
  656. package/dist/starters/react/design-system/components/Content/Icon/README.md +0 -17
  657. package/dist/starters/react/design-system/components/Content/Icon/glyphs.ts +0 -17
  658. package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +0 -1
  659. package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -2
  660. package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -13
  661. package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -51
  662. package/dist/starters/react/design-system/components/Content/Image/README.md +0 -20
  663. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +0 -1
  664. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -1
  665. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -12
  666. package/dist/starters/react/design-system/components/Content/Logo/Logo.tsx +0 -35
  667. package/dist/starters/react/design-system/components/Content/Logo/README.md +0 -12
  668. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.exports.ts +0 -1
  669. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.fixture.ts +0 -1
  670. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.scenario.tsx +0 -7
  671. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.tsx +0 -26
  672. package/dist/starters/react/design-system/components/Forms/TextField/README.md +0 -14
  673. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +0 -1
  674. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -6
  675. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -13
  676. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -61
  677. package/dist/starters/react/design-system/composition/Search/SearchPage/README.md +0 -4
  678. package/dist/starters/react/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -7
  679. package/dist/starters/react/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -16
  680. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +0 -5
  681. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +0 -13
  682. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +0 -22
  683. package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +0 -1
  684. package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -164
  685. package/dist/starters/react/design-system/index.ts +0 -12
  686. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +0 -1
  687. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +0 -7
  688. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +0 -15
  689. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +0 -105
  690. package/dist/starters/react/design-system/patterns/Conversation/README.md +0 -9
  691. package/dist/starters/react/design-system/patterns/Search/SearchBar/README.md +0 -12
  692. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +0 -1
  693. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -1
  694. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -11
  695. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -41
  696. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +0 -5
  697. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +0 -21
  698. package/dist/starters/react/design-system/patterns/Shell/README.md +0 -43
  699. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +0 -1
  700. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +0 -5
  701. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -21
  702. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -274
  703. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +0 -1
  704. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +0 -7
  705. package/dist/starters/react/design-system/review/index.ads.review.ts +0 -4
  706. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +0 -1
  707. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +0 -6
  708. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +0 -1
  709. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +0 -10
  710. package/dist/starters/react/design-system/showcase/mcp/main.ads.mount.tsx +0 -10
  711. package/dist/starters/react/design-system/styles.css +0 -7
  712. package/dist/starters/react/design-system/tokens/base.css +0 -36
  713. package/dist/starters/react/design-system/tokens/catalog.ads.json +0 -1221
  714. package/dist/starters/react/design-system/tokens/colors.css +0 -215
  715. package/dist/starters/react/design-system/tokens/elevation.css +0 -53
  716. package/dist/starters/react/design-system/tokens/spacing.css +0 -87
  717. package/dist/starters/react/design-system/tokens/spatial.ads.json +0 -70
  718. package/dist/starters/react/design-system/tokens/themes.generated.css +0 -142
  719. package/dist/starters/react/design-system/tokens/themes.generated.ts +0 -402
  720. package/dist/starters/react/design-system/tokens/typography.css +0 -31
  721. package/dist/starters/react/ds.config.json +0 -37
  722. package/dist/starters/react/gitignore.template +0 -8
  723. package/dist/starters/react/package.json +0 -39
  724. package/dist/starters/react/scripts/build-mcp-previews.mjs +0 -3
  725. package/dist/starters/react/src/vite-env.d.ts +0 -7
  726. package/dist/starters/react/tsconfig.build.json +0 -20
  727. package/dist/starters/react/tsconfig.json +0 -34
  728. package/dist/starters/react/vite.config.ts +0 -23
  729. package/dist/style-boundaries.mjs +0 -106
  730. package/dist/style-token-rules.mjs +0 -51
  731. package/dist/themes-generated.mjs +0 -161
  732. package/dist/themes-watch.mjs +0 -83
  733. package/dist/themes.mjs +0 -360
  734. package/dist/token-export.mjs +0 -94
  735. package/dist/token-origins.mjs +0 -24
  736. package/dist/token-policy.mjs +0 -26
  737. package/dist/token-quality.mjs +0 -149
  738. package/dist/token-samples.mjs +0 -19
  739. package/dist/tokens.mjs +0 -194
  740. package/dist/unit-contracts.mjs +0 -396
  741. package/dist/usage.mjs +0 -184
  742. package/dist/verification/playwright-reporter.cjs +0 -87
  743. package/docs/CONTRACTS.md +0 -285
  744. package/docs/HTTP-SHOWCASE-POC.md +0 -397
  745. package/docs/SPATIAL-CHECKS.md +0 -69
  746. package/docs/benchmarks/http-showcase-optimized.json +0 -1879
  747. package/docs/benchmarks/http-showcase-profile.json +0 -308
  748. package/docs/benchmarks/http-showcase.json +0 -3069
  749. /package/dist/{starters/react/design-system/assets/fonts/.gitkeep → analysis/semantic.mjs} +0 -0
  750. /package/dist/{starters/react/design-system/controllers/.gitkeep → lowering-model.mjs} +0 -0
  751. /package/dist/showcase/{favicon.svg → ui/favicon-scavmehf.svg} +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ads-designer
3
- description: Start a local React or Preact design system with `ads init --include-starter`, or build UI using a project's existing design system. Covers shared token contracts, local ownership, public APIs, layout, motion, stress-testing with worst-case content, external source integration, showcase inspection, and validation.
3
+ description: Start a local React or Preact design system with `ads init folder --framework react|preact`, or build UI using a project's existing design system. Covers role tokens, profiles, owner recipes, assets, local ownership, public APIs, layout, motion, stress-testing with worst-case content, external source integration, emission and validation.
4
4
  ---
5
5
 
6
6
  ## Choose the editing workflow
@@ -9,11 +9,11 @@ Read [direct editing and MCP-only editing](references/workflows.md) and use the
9
9
  route matching the user's instructions and your actual source access:
10
10
 
11
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.
12
+ discovery, checks and emission. Ordinary source edits do not require a
13
+ tracked draft or `ads_accept`, even when MCP mutations are enabled.
14
+ - **MCP-only access:** use source/draft mutation tools and exact-revision
15
+ acceptance. Follow [tracked drafts](references/drafts.md). Without mutation
16
+ tools or another source channel, editing is unavailable.
17
17
 
18
18
  Direct editors can also choose tracked drafts for isolation and comparison.
19
19
  When using drafts, do not report coherent design work complete before reviewing
@@ -21,217 +21,205 @@ and accepting its required proposals. If blocked, report the exact unfinished
21
21
  draft/blocker; retain a proposal intentionally only when the user requests it.
22
22
  Auto mode means agent review, without an extra human approval step.
23
23
 
24
- Every editing route uses ADS's own compiler, which `ads mcp` runs.
25
-
26
-
27
- For validation scope, full audits, and CLI/MCP parity, read
28
- [validation.md](references/validation.md).
29
-
30
- For Node/Bun setup, MCP launch, compiler workers and project resource budgets,
31
- read [runtimes.md](references/runtimes.md). Keep runtime choices, worker counts
32
- and memory limits in project configuration; verify real workloads under them.
24
+ For validation scope, gates and CLI/MCP parity, read
25
+ [validation.md](references/validation.md). For Node/Bun setup, MCP launch,
26
+ compiler workers and project resource budgets, read
27
+ [runtimes.md](references/runtimes.md). Keep runtime choices, worker counts and
28
+ memory limits in project configuration; verify real workloads under them.
33
29
 
34
30
  Inspect the target before editing. Read its `README.md`, `docs/ARCHITECTURE.md`
35
- and `docs/ADS.md` when present (or existing project guides), public exports, and relevant
36
- component guides. Preserve its
37
- framework and contracts. Starting from zero uses `ads init --include-starter` in the
38
- project, which adds the starter shipped in the ADS package; no example repository is needed.
39
-
40
- Linaria is required for ADS component and pattern styling. Preserve the target's
41
- UI framework and integrate compatible Linaria extraction with both application
42
- and preview builds. `ads init --include-starter` (React or Preact) configures it;
43
- plain `ads init` does not install or configure Linaria. Start design systems with the
44
- project's framework. Current core
45
- guards inspect JS/TS/JSX, CSS, and imported Linaria templates, not Vue/Svelte
46
- single-file components or general HTML component templates. Entry HTML mount
47
- CSS is checked; that is not component-template coverage. Preserve the target stack and matching
48
- framework checks; do not claim unchecked formats have full guard coverage.
49
-
50
- React and native Preact are supported. Preserve the target runtime in both
51
- production and scenario builds; never alias React to Preact just to shrink a
52
- preview. Native Preact uses its own JSX transform, hooks and DOM events (live
53
- text updates use `onInput`). Native SVG uses DOM names such as `stroke-width`,
54
- not React presentation aliases. Keep Linaria extraction and the same public APIs.
55
- `ads init --include-starter` sets up a React or Preact design system; the tool
56
- repository's working example uses Preact. Neither is a component dependency of the receiving project.
57
-
58
- When initializing a project without a saved framework, pass `--framework react`
59
- or `--framework preact` for its actual runtime. Init saves the choice and later
60
- runs reuse it. Each starter already declares its framework. Resolve any explicit
61
- JSX/configuration conflict deliberately; do not change frameworks to make init
62
- pass. Init does not install the runtime or configure the application's compiler.
63
-
64
- ADS is tooling only. The target project owns its ADS source and token values;
65
- applications use its local public barrel, normally through `@ds`. Components,
66
- patterns, themes and scenarios come from external sources through explicit
67
- ADS import/adaptation workflows. Do not treat the tool repository as a built-in
68
- or optional UI catalogue. Tool upgrades preserve project values and customized
69
- implementations; external source updates require explicit imports or merges.
31
+ and `docs/ADS.md` when present (or existing project guides), the public barrel
32
+ `<dsDir>/index.ts`, `foundation.ads.ts` and the owners involved. Preserve its
33
+ framework and declarations. Starting from zero uses `ads init --framework react`
34
+ (or `preact`) in the project, which installs the example design system shipped in the ADS package; no example
35
+ repository is needed.
36
+
37
+ ADS is tooling only. The target project owns its design-system source and token
38
+ values. Applications import the compiled output `ads emit` writes (the emitted
39
+ `index.ts` in `compile.outDir`); inside the design system, mocks and
40
+ owners import public owners through `@ds`, the authored barrel. Components,
41
+ patterns and token values come from external sources only through explicit ADS
42
+ import/adaptation workflows. Do not treat the tool repository as a built-in UI
43
+ catalogue. Tool upgrades preserve project values and customized implementations.
44
+
45
+ ## How a design system is authored
46
+
47
+ **Tokens define values → profiles bind them to design responsibilities → owner
48
+ recipes consume profiles and declare construction → TypeScript handles markup
49
+ and behavior.** Every declaration is a typed Bun macro imported with
50
+ `with { type: "macro" }` from the installed `@reqvire-org/ads` package; nothing
51
+ ships at runtime.
52
+
53
+ | Source | Responsibility |
54
+ | --- | --- |
55
+ | `tokens/<group>/<role>.ads.css` | Values. The filename names the token role; themes and brands override values in the same file |
56
+ | `profiles/**/*.ads.ts` | Globally named `profile()` declarations of one kind (`text`, `frame`, `surface`, `visual`, `spacing`, `motion`, `focus`, `spatial`, `layer`, `composite`) |
57
+ | `assets/<group>/*.ads.ts` beside their SVGs | `asset()` declarations: identity, license, paint policy, drawings and optical geometry |
58
+ | `foundation.ads.ts` | One `foundation()` declaration: document text and surface profiles, reset, the ordered themes and the optional brands |
59
+ | `components/`, `patterns/` | Owners: TSX whose elements are styled only through their local `recipe()` / `combineRecipes()` |
60
+ | `controllers/` | Plain behavior modules the barrel exports: no recipe and no markup |
61
+ | `mocks/` | Preview adapters: mock data, state and callbacks passed to public patterns |
62
+ | `index.ts` | The authored public barrel; it names each public owner (`export *` is rejected) |
63
+
64
+ **Group by folder.** A subfolder is a group, and the showcase's left menu shows
65
+ it: people find a token, a profile or a component by its group, so a flat
66
+ folder gives them one long list. Group from the start, by what a designer
67
+ would call the area, not by technical kind.
68
+
69
+ | Source | Folder | In the showcase |
70
+ | --- | --- | --- |
71
+ | Tokens | `tokens/<Group>/<role>.ads.css` | Tokens: the group, then one entry per role sheet |
72
+ | Profiles | `profiles/<Group>/*.ads.ts` | Profiles: one entry per group |
73
+ | Artwork | `assets/<group>/` | Icons: one entry per group, then the glyph sets |
74
+ | Components, patterns, mocks | `components/<Group>/<Owner>/` (a folder that holds only owner folders) | The group, then the owner's scenarios |
75
+
76
+ - Use the same group names across tokens, profiles and owners where the area
77
+ is the same (`Controls`, `Surfaces`, `Typography`), so one area reads as one
78
+ thing in every section.
79
+ - A group is a place to look, not a namespace: names stay globally unique, and
80
+ moving a file between groups changes no behaviour.
81
+ - Aim for groups of about 3 to 12 entries. Split a group that grows past that;
82
+ merge groups of one.
83
+ - Do not group by state, size or theme (`hover`, `small`, `dark`): those are
84
+ choices and contexts of one decision, not areas.
85
+ | `palette.generated.ts` | Optional generated renderer palette; `ads sync` regenerates it |
86
+
87
+ Owners never author measurements, paints, local custom properties or direct
88
+ token reads; a new shared value belongs in a role token sheet and a profile,
89
+ even with one user. Read [design-data.md](references/design-data.md)
90
+ (`ads://guides/tokens`) before adding or changing tokens, themes or brands, and
91
+ [atomic-styles.md](references/atomic-styles.md) (`ads://guides/atomic-styles`)
92
+ for how recipe selections combine and compile. Read [recipes.md](references/recipes.md)
93
+ (`ads://guides/recipes`) before writing or changing a recipe: profiles and slots,
94
+ parts, choices, `when` states, layouts, layers, measured values, text layout,
95
+ assets, and what the compiler rejects and why. Read [forms.md](references/forms.md)
96
+ (`ads://guides/forms`) before building or changing a field or form: validation
97
+ timing, error announcement and linking, autofill, the form-field bridge and its
98
+ root states, and the form checks.
99
+
100
+ **A refusal is not something to route around.** ADS closes the forms its
101
+ checks have to understand (recipe and profile fields, `when` selectors, token
102
+ roles, breakpoint units, colour forms) and reports what it cannot evaluate as
103
+ review items. When a check refuses a form, tell the user what is refused, and
104
+ use the supported form the error names. If the design needs the refused one, it
105
+ needs an ADS release that adds it: say so and report the need. Never get past a
106
+ refusal with raw CSS, a renamed token, a wrapper element, an alias or
107
+ application code.
108
+
109
+ `ads check` runs one captured revision: project structure, the design-system
110
+ import closure, owner analysis of everything the barrel reaches (type-check,
111
+ analysis, lowering, compilation and token CSS, each failure an `owner-analysis`
112
+ finding with a fine-grained `code`, group, repair and position), mock
113
+ ownership, declared themes and brands, the generated palette and the integrity
114
+ of the emitted output folder. What analysis cannot prove is a nonblocking
115
+ `owner-analysis-review` item. Read [contracts.md](references/contracts.md)
116
+ (`ads://guides/contracts`) for the source rules owner analysis enforces.
70
117
 
71
118
  ## MCP access when available
72
119
 
73
- Use `ads_status` and `ads_catalog` to discover the connected project's public UI,
74
- guides, showcase URL and addressable scenarios. `ads_tokens` inspects definitions;
75
- `ads_scenarios` discovers previews, including the token and brand views ADS renders itself, and `ads_show_scenario` opens the selected real entry. Read relevant source
76
- and inspect the actual view before changing it. HTML delivery alone is not a
77
- rendering check. Use the normal showcase when the host lacks Apps support.
78
- Use the returned `projectRoot` and `project.commands`; the connected ADS may be
79
- inside a different or nested repository. Inspect the selected public API, owning
80
- source/available guides and relevant tokens, then mount its discovered scenario.
81
- Metadata and source reads do not prove rendered behavior.
120
+ Use `ads_status` for the project root, commands, compiler, build and mutation
121
+ state. Find public UI and behavioral APIs with `ads_catalog` (kind, props, scenarios
122
+ and, for owners, the profiles and choices they select) and tokens with `ads_tokens`
123
+ (values per theme, brand and condition, the profiles and owners using each); read
124
+ their owners with `ads_units` and `ads_read_file`. Find scenarios
125
+ with `ads_scenarios` and preview them with `ads_show_scenario`; in a project without
126
+ scenarios, previews, captures and the render audit report `no-scenarios`. Behavior
127
+ tools report `no-behavior-checks`; treat these as "nothing ran", never as a pass. Use the returned `projectRoot` and
128
+ `project.commands`; the connected ADS may be inside a different or nested
129
+ repository. Metadata and source reads do not prove rendered behavior.
82
130
 
83
131
  For MCP-only guarded editing with `ads_status.mutations.enabled`, every source change
84
132
  goes through a draft: discover the owner with `ads_units`, create its draft with
85
133
  `ads_create_draft`, read relevant ranges with `ads_read_file`, edit the draft's files
86
134
  or send a Git unified diff with `ads_update_draft({id, revision, patch})`, review it
87
135
  with `ads_show_draft`, then `ads_accept` its exact revision (`dryRun: true` checks
88
- without writing). A unit includes its own implementation, scenarios and fixtures;
89
- imported peers remain separate. `tokens` is the token foundation unit. Unit
90
- discovery and file ownership are distinct from preview IDs. An owner is in at most
91
- one open draft; coupled owners share one draft, and a draft can depend on another
92
- owner's open draft. Every authored file has one owner: an owner declares its public
93
- names in `<Owner>.ads.exports.ts` and its style permissions (`styles.writes`,
94
- `styles.inline`, `customization`) in `<Owner>.ads.contract.ts`. The public barrel,
95
- review entry and styles entry are generated, so no draft edits them. Unused
96
- permissions fail the core checks; do not declare a permission without its
97
- implementation. Acceptance runs `ads check`, `acceptance.scripts`, and the draft
98
- owners' own behavior tests and render audit (`acceptance.behavior`/`acceptance.audit`,
99
- both default true); `ads_validate` checks everything a change reaches. Fix a failed acceptance in the
100
- draft; never bypass a rejection with direct source writes. Shared styles/helpers use `foundation`, root guides use
101
- `documentation`, and branding/fonts use their discovered `assets/*` unit.
102
- Intentional configuration, rule exceptions, registered guard code and compiler
103
- changes use `configuration`; validate the proposed settings and keep mandatory
104
- ADS gates. For binary/large assets, generate `git diff --binary --full-index` into
105
- `.ds/patches/<name>.patch` and send `patchFile` instead of inline `patch`, so bytes
106
- stay out of model context. Binary changes require Git. These tool instructions
107
- apply to the MCP editing route; direct editors use the workflow above and run
108
- the same required gates/checks.
109
- For owner drafts, token-sample reconciliation, multi-owner drafts and local
110
- shared Data ownership, read [guarded-editing.md](references/guarded-editing.md).
111
- For on-demand current/candidate screenshots and visual dry-run review, read
136
+ without writing). A unit includes its own implementation and development files;
137
+ imported peers remain separate. `tokens` owns the token sheets; `foundation` owns
138
+ the public barrel and `foundation.ads.ts`. An owner is in at most one open draft;
139
+ coupled owners share one draft, and a draft can depend on another owner's open
140
+ draft. Acceptance runs `ads check`, `acceptance.scripts`, and the draft owners' own
141
+ behavior tests and render audit (`acceptance.behavior`/`acceptance.audit`); a stage
142
+ with nothing to run is listed as skipped with its not-available reason and is never
143
+ reported as passed. Accepting regenerates stale generated source in the candidate
144
+ and emits the published revision unless `compile.emitOnAccept` is `false`.
145
+ `ads_validate` checks everything a change reaches. Fix a failed acceptance in the
146
+ draft; never bypass a rejection with direct source writes. Root guides use
147
+ `documentation`, artwork uses its discovered `assets/<group>` unit, and
148
+ intentional configuration, registered guard code and compiler changes use
149
+ `configuration`. For binary/large assets, generate `git diff --binary --full-index`
150
+ into `.ds/patches/<name>.patch` and send `patchFile` instead of inline `patch`, so
151
+ bytes stay out of model context. Binary changes require Git. Direct editors run the
152
+ same gates themselves.
153
+ For owner drafts and multi-owner drafts, read
154
+ [guarded-editing.md](references/guarded-editing.md). For captures, read
112
155
  [captures.md](references/captures.md).
113
- For spacing or grid diagnosis, use `ads_capture` with selected `guides` layers
114
- (`bounds`, `tracks`, `gaps`, `padding`, `margins`, `mini`) and read the returned
115
- PNG resource. Capture with `guides:[]` for final appearance review. Read each
116
- image before replacing that target's slot; guides do not establish passing
117
- layout or behavior checks. Discover supported scenarios rather than inventing IDs.
118
156
  For a rejected patch, failed check or loading error, read
119
157
  [evidence and diagnosis](references/evidence.md); inspect the failing boundary
120
158
  then page needed `ads_results` sections using the returned result ID. Inspect
121
159
  one `ads_investigate({unit,check,runId})` summary before changing APIs or policy;
122
160
  load request/error/artifact details only when relevant.
123
161
 
124
- The showcase owns generic preview UX. Project-specific demonstrations use `.ads.scenario.*`, `.ads.fixture.*`, and small `.ads.review.*` helpers. Shared helpers may be organized in `review/` and exported through `@ds/review`, never the production barrel. Product patterns are application UI. For ownership, migration, token
125
- renderers, build aliases or `review-import` / `review-contract` diagnostics, read
126
- [development review UI](references/review.md), also served as `ads://guides/review`.
127
-
128
162
  A component provides one cohesive UI capability; a pattern arranges capabilities
129
- into reusable structures or workflows. Components may compose components/controllers;
130
- layout patterns may arrange slots. Do not classify by component count. For shared
131
- website/MCP App use, owner selection, or `component-dependency`,
132
- `component-contract` or `component-style` diagnostics, read
133
- [layer responsibilities and contracts](references/layers.md), also served as
134
- `ads://guides/layers`. Preserve public APIs and documented non-state styling hooks.
135
-
136
- For folder-group navigation, parent/child `covers`, conditional-control review, reference comparisons,
137
- public style-helper use, native slot/selector composition, fragment navigation,
138
- or `scenario-render` / `showcase-control` / `showcase-class` findings, read [scenario contracts](references/scenarios.md). Its verification
139
- examples explain API visibility, reference baselines and state-transition checks.
140
- Traced parents can cover declared public children; verified public Linaria
141
- helpers do not grant custom scenario CSS.
142
-
143
- For atomic base/variant styling, helper/wrapper class composition, extracted
144
- custom-property arithmetic, typed `@property` registrations, or an
145
- `atomic-composition-review` / `atomic-composition-limit` finding, read
146
- [atomic style composition](references/atomic-styles.md). The same guide is served
147
- as `ads://guides/atomic-styles`. It explains shorthand/logical conflicts and
148
- matching-property fixes, plus the build resolver for preserving opaque custom
149
- properties through extraction. Check review items in the real `cx` composition and verify
150
- computed styles across affected sizes/states; retain intentional product behavior.
151
-
152
- For positioning, menu/listbox keyboard handling, focus trapping and virtual lists,
153
- prefer an installed library already listed in `ds.config.json` behaviorLibraries.
154
- Use it directly in its consuming component, pattern or controller, with project-owned
155
- styling and existing measured-geometry boundaries. If none fits, suggest a suitable
156
- framework-free package for approval or implement natively. Add dependencies and
157
- allowlist entries only with authorization; existing approval need not be repeated.
163
+ into reusable structures or workflows. Do not classify by component count. For
164
+ owner selection, the import closure, public dependencies and mock rules,
165
+ read [layer responsibilities](references/layers.md) (`ads://guides/layers`).
166
+ Preserve public APIs.
158
167
 
159
168
  Controllers are UI behavior owners: private helpers stay with their component or
160
- pattern; reusable controllers use discovered `controllers/<Name>` units. Use the
161
- project's configured framework and declared dependencies, or plain TypeScript,
162
- browser APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. The
163
- framework setting selects compilation/mounting; controller checks also validate
164
- imports. For controller/behavior work, read
165
- [behaviors.md](references/behaviors.md), also served as `ads://guides/behaviors`. Discover registered guarantees
166
- with `ads_behaviors`; the gates run them, and `ads verify` runs one unit's checks from the CLI. Optional
167
- `exercises` links public behavioral APIs to scenarios; keep `covers` for rendered
168
- UI. Registration and demonstration are not passing evidence. `<Owner>.ads.contract.ts`,
169
- scenarios, fixtures and checks stay out of production exports/imports. Verify
170
- current results, including lifecycle setup/cleanup/setup and the actual browser
171
- profile when promised. React StrictMode needs a development harness; wrapping a
172
- production widget cannot replay development effects. Keep dynamic behavior and
173
- capabilities intact rather than rewriting them only for static coverage.
174
-
169
+ pattern; reusable controllers live in `controllers/<Name>`. Use the project's
170
+ configured framework and declared dependencies, or plain TypeScript, browser
171
+ APIs and local helpers. MCP hosts supply no ad hoc runtime APIs. For
172
+ controller/behavior work, read [behaviors.md](references/behaviors.md)
173
+ (`ads://guides/behaviors`). Keep dynamic behavior and capabilities intact rather
174
+ than rewriting them only for static coverage.
175
175
 
176
176
  Never launch another preview builder: `ads mcp` runs ADS's compiler, reported in
177
- `ads_status.compiler`. Edit owned sources, wait for the rebuild and invoke the
178
- preview again. Check
179
- `ads_status.build` or `ads://project/build` explicitly: a running process, older
180
- artifact or unreported freshness does not establish current source. Fix reported
181
- diagnostics in the owning source; notifications may not reach the agent.
182
- When this skill is served over MCP, resolve relative references/assets from its
183
- `SKILL.md` URI and fetch supporting files lazily. The host controls native skill
184
- activation; ordinary resource reads do not establish it. Never rebuild a project
185
- from skill text: the starter comes from `ads init --include-starter`.
177
+ `ads_status.compiler`. Check `ads_status.build` or `ads://project/build` explicitly:
178
+ a running process, older artifact or unreported freshness does not establish
179
+ current source. Fix reported diagnostics in the owning source; notifications may
180
+ not reach the agent. When this skill is served over MCP, resolve relative
181
+ references/assets from its `SKILL.md` URI and fetch supporting files lazily. The
182
+ host controls native skill activation; ordinary resource reads do not establish it.
183
+ `ads init` sets a project up and installs no design system: the design system is authored in the project.
186
184
 
187
185
  ## Start from zero
188
186
 
189
- Start inside the project, whose `package.json` declares its package manager
190
- (`"packageManager"`, or a `package-lock.json` / `bun.lock`). `ads init --include-starter`
191
- adds the starter that ships in the same ADS package version, so the design system always
192
- matches the tool that checks it, and sets ADS up (scripts, the tool as a development
193
- dependency, checks in the build). It adds only what the project lacks:
187
+ The design system is its own package. `ads init <folder>` creates it (its package
188
+ manager follows the repository it sits in, else Bun): its configuration, its
189
+ dependencies and an empty design-system folder. It installs no design system.
190
+ Author the foundation (`foundation.ads.ts`), the public barrel (`index.ts`), the
191
+ role token sheets, the profiles and the owners there; `ads check` names what is
192
+ missing until the design system holds. For one application, put it in the application's `design/` folder
193
+ and emit into its source; for several applications, give it its own repository
194
+ (they install its committed `dist/` by git reference, tarball or registry):
194
195
 
195
196
  ```sh
196
- npx @reqvire-org/ads@<version> init --framework react --include-starter # or preact
197
- # Bun: bunx @reqvire-org/ads@<version> init --framework preact --include-starter
197
+ npx @reqvire-org/ads@<version> init design --framework react --out ../src/ui
198
+ # several applications: npx @reqvire-org/ads@<version> init acme-design --framework react
199
+ cd design # or acme-design
198
200
  npm install # bun install
199
- npm run build # bun run build
201
+ npm run lint:ds # ads check
202
+ npm run emit:ds # ads emit
200
203
  ```
201
204
 
202
205
  Use the latest published version unless the user names one; read
203
- [references/cli.md](references/cli.md) for a local tarball (`--tool-package`).
204
- Never copy starter files by hand or port React files to Preact.
205
-
206
- The starter's `README.md` and `ADS.md` (added when the project has none) explain it. It
207
- has a semantic token
208
- foundation in six groups (Color ramps and AA-checked roles, Type, Space & sizing, Shape &
209
- elevation, Motion, Layout) with light and dark themes declared in `ds.config.json`
210
- (`[data-theme]` themes the page or one section; optional `brands` add a brand axis beside
211
- the themes; see `ads://guides/tokens`), React or Preact
212
- TypeScript/Linaria configuration, general lint, a generated public barrel, project-owned
213
- review frames (demo and screen frames), placeholder brand artwork with an app icon, a
214
- spatial definition (`tokens/spatial.ads.json`) for `@ads-layout`, an icon set with `Icon` and
215
- `IconButton`, and examples of each layer: `Button`, `IconButton`, `Icon`, `Logo`, `Image` and
216
- `TextField` in four component groups; the `SearchBar`, `Conversation` and `Shell` patterns; and
217
- the `SearchPage` and `WorkspacePage` compositions. ADS renders the Tokens, Icons and Brand
218
- views itself from the project's definitions and assets. Treat them as the project's own: adapt or replace them
219
- for the requested product. The browser shell is supplied by ADS tooling.
220
-
221
- Initialize/install ADS before running `npm run dev:showcase` for visual inspection.
222
- `dev:showcase` and the project's ADS MCP (`.mcp.json`) each serve a showcase:
223
- give them different ports, or open the MCP's showcase instead of starting one.
224
- Use an existing MCP runtime URL when connected; do not leave an unrequested
225
- server running.
226
-
227
- For an existing app without an ADS, run init inside that app when the tool is
228
- available, then integrate its local public alias, CSS entry, and Linaria
229
- extraction with the existing framework. Init detects the package manager from
230
- the app and preserves its scripts and lockfile. Init adds only the foundation
231
- (token sheets, `catalog.ads.json`, `spatial.ads.json`, the scenario mount and the generated
232
- entries); copy no other starter files.
233
- Inspect files before editing; preserve configuration and application entry
234
- points. Never copy the standalone package/configuration over an existing app.
206
+ [references/cli.md](references/cli.md) for a local tarball (`--tool-package`) and
207
+ what init writes. Use `--framework preact` for a Preact project: its owners use
208
+ Preact's own JSX runtime and `preact/hooks`, with no `preact/compat`.
209
+
210
+ The example design system is one coherent design system: role token sheets, profiles for every
211
+ kind, a foundation declaring its themes and brands, declared artwork, components,
212
+ patterns, a renderer-palette controller and preview mocks. Treat them as the
213
+ project's own: adapt or replace them for the requested product.
214
+
215
+ For an existing app without a design system, run `ads init design --out ../src/ui`
216
+ in that app: the design package gets its own folder, `package.json` and install, and
217
+ the application's own files, scripts and lockfile stay untouched (the application
218
+ never installs ADS). Init never edits `.gitignore` or writes a lockfile, and stops
219
+ before writing anything when the design-system folder already has content and the
220
+ package has no `ds.config.json`. The application imports the emitted source and
221
+ declares the packages `ads-dependencies.json` lists; ADS does not rewrite
222
+ application configuration.
235
223
 
236
224
  ## External references and content
237
225
 
@@ -241,146 +229,83 @@ continue independent local discovery first. Do not invent a repository URL or
241
229
  use the tooling checkout's origin as an example library. Bootstrap needs no
242
230
  external source.
243
231
 
244
- Inspect the external repository's instructions, architecture, actual ADS folder,
245
- public exports, item guides, token contract, styles, build, and license.
246
- Do not assume it has a particular component, hook, font, or token helper.
247
- Record the source revision and required dependencies.
232
+ Inspect the external repository's instructions, architecture, actual design-system
233
+ folder, public barrel, item guides, token sheets, profiles, build and license.
234
+ Do not assume it has a particular component, hook, font or token. Record the
235
+ source revision and required dependencies.
248
236
 
249
237
  Use the ADS import workflow to bring selected existing ADS items into the target,
250
- or migration to create a native component from an upstream library. Follow
238
+ or porting to create a native component from an upstream library. Follow
251
239
  those workflows directly if the corresponding skills are unavailable: copy
252
240
  selected source and its dependency closure, or study/reproduce the upstream
253
- contract; integrate local ownership, exports, styles, assets, credits, applicable
254
- notices, and checks. Do not copy the whole catalogue or source configuration.
255
- Mocks and example screens remain development fixtures unless explicitly requested.
241
+ behavior; integrate local ownership, the barrel, profiles, tokens, assets, credits,
242
+ applicable notices and checks. Do not copy the whole catalogue or source
243
+ configuration. Mocks and example screens remain mocks unless explicitly
244
+ requested.
256
245
 
257
246
  Preserve the target's performance strategy when changing ownership: lazy imports,
258
247
  worker execution, caches, memoization, cancellation, and stale-result rejection.
259
248
  Public exports must not eagerly load heavy renderers for unrelated consumers.
260
- Compare relevant bundle loading and existing performance/lifecycle tests before
261
- and after a migration. Shared screen patterns can accept injected services;
262
- architectural reuse does not require moving application services into the ADS.
249
+ Shared screen patterns can accept injected services; architectural reuse does not
250
+ require moving application services into the design system.
263
251
 
264
252
  ## Token and component ownership
265
253
 
266
- - Token names and prefixes are fixed by ADS architecture. Use existing shared
267
- names; `--ds-*` belongs to components, `--ux-*` to patterns, and
268
- `--showcase-*` is reserved for showcase-local boundaries, not fixture styling.
269
- ADS-owned frame patterns use `--ux-*`. Do not introduce configurable or
270
- product-prefixed token vocabularies.
271
- - Shared token names, meanings, types, and alias relationships form the contract;
272
- project values and per-theme halves can differ. Item imports retain existing
273
- values and add missing definitions. Explicit token-values imports adopt source
274
- values and their per-theme halves.
275
- - Scaffold defaults are 16 px body text, the 2 px spacing rhythm, slate surfaces
276
- and text, a rose accent, restrained elevation, and system fonts. Treat these as
277
- initial project values; honor requested branding and preserve existing themes.
278
- - Reuse existing public components, patterns, and shared icons when compatible.
279
- Add missing primitives in their owning layer; inspect exports rather than
254
+ - Global token names are unique and their role comes from the sheet's filename;
255
+ folders organize files and infer no semantics. Reuse existing roles and
256
+ profiles before adding new ones.
257
+ - Shared token names, meanings, roles and relationships form the contract;
258
+ project values and per-theme/brand values can differ. Item imports retain
259
+ existing values and add missing definitions. Explicit token-value imports adopt
260
+ source values and their theme and brand overrides.
261
+ - Reuse existing public components, patterns and declared assets when compatible.
262
+ Add missing primitives in their owning layer; read the barrel rather than
280
263
  assuming they exist.
281
- - Components own hover, selected, active, focus, disabled, loading, and motion.
282
- Change these through typed props/variants in the component. Consumers and
283
- showcase CSS must not override internals.
284
- - Put visual constants in tokens. Avoid inline visual styles, arbitrary visual
285
- string props, and broad imperative style mutations. Measured geometry can use
286
- a narrow documented boundary while visual policy stays in tokens and styles.
287
- - Keep product data, routing, effects, and callbacks in application code.
288
- Reusable layouts and controls belong in the local ADS.
289
- - Document detailed API, behavior, motion, token hooks, validation, and source
290
- credits beside each component or pattern. Shared project architecture belongs
291
- in its ADS guide.
292
-
293
- ## Branding
294
-
295
- Discover existing tokens and artwork before changing identity. Keep UI values
296
- in the existing token files using fixed ADS names, and original artwork plus its
297
- usage, backgrounds, credits, and licenses in `assets/brand/`. Keep fonts in
298
- `assets/fonts/`, with an optional `tokens/fonts.css`. ADS generates the styles entry
299
- (`styles.css`) from the token sheets present, in foundation order; add or remove a sheet, never
300
- edit the entry. Artwork can
301
- have fixed SVG colors; UI styles must
302
- still use tokens and must not override primitive state.
303
-
304
- For standard web icons, set `assets.iconSource` to an SVG under `assets/brand/`,
305
- relative to the ADS folder. After init, the normal build runs native ADS checks,
306
- then `ads assets`, then existing prebuild/build steps. Mount ignored `.ds/assets/`
307
- through the application's own bundler without public asset collisions. Keep
308
- manifest metadata and other platform exports project-owned. Verify the actual
309
- consumer paths, dimensions, and transparent/background variants. With no icon
310
- source, generation is a no-op. Component imports retain destination branding;
311
- artwork replacement and token-value adoption are explicit selections.
312
-
313
- Committed native and export icons are `assets.targets` (SVG copy, PNG, ICO, ICNS),
314
- and UI icon sets are `assets.glyphs`; `ads assets` keeps them and the committed
315
- `assets/generated.json` current, and `ads check` fails when they are stale. Describe
316
- and license each artwork in `assets/brand/README.md`, pair dark-theme variants as
317
- `<name>.dark.svg`, and show them through a component where the product uses them. ADS renders
318
- the artwork in `assets/brand/` in the Brand section itself; do not author brand preview scenarios. Finished PNG/JPEG/WebP images and
319
- delivered `.ico`/`.icns` files are artwork too; supply enough source resolution for
320
- their production size. Enlarged inspection samples do not add image detail.
321
- Other products' logos are not brand artwork or glyphs: keep them, in their own
322
- colors and under their owners' trademark and usage terms, in `assets/logos/` and
323
- show them as images, never muted, tinted or recolored; ADS generates
324
- and checks nothing there.
325
- Read [branding.md](references/branding.md) (`ads://guides/branding`) before changing
326
- brand artwork, icon outputs or glyphs. Its alignment guidance distinguishes UI
327
- icons beside text from a brand mark paired with a name: use the project's size
328
- roles and optical centering, and do not assume equal boxes or cap-height matching
329
- prove visual alignment. Use its opt-in `@ads-lockup` construction to guard an owned
330
- artwork/text pairing: declare the size token and direct artwork/text hooks, keep
331
- text runs in spans, and fix `lockup-construction` errors at that declaration.
332
-
333
- ## Pictograms
334
-
335
- Keep illustrative pictograms separate from brand identity and small UI icons.
336
- Read [pictograms.md](references/pictograms.md) (`ads://guides/pictograms`) before
337
- adding them. It covers `assets/pictograms/catalog.ads.json`, fixed-color/gradient
338
- artwork, theme variants, the dedicated gallery and source/render guards. Preserve
339
- artistic freedom; do not apply glyph recoloring or brand-lockup sizing to them.
264
+ - Components own hover, selected, active, focus, disabled, loading and motion,
265
+ as recipe state treatments (`when`) selecting shared profiles. Change them
266
+ through finite typed props. Consumers style a child only through its public
267
+ props, never by classing its interior.
268
+ - Owned elements are styled only through their recipe: no inline `style`, `css`
269
+ attributes, spreads onto owned elements, imperative style writes or class names
270
+ built from anything but recipe outputs.
271
+ - Keep product data, routing, effects and callbacks in application code.
272
+ Application text is data: design may depend on whether text is present, never
273
+ on what it says.
274
+ - Document detailed API, behavior, motion, validation and source credits beside
275
+ each component or pattern. Shared project architecture belongs in its guide.
276
+
277
+ ## Branding and artwork
278
+
279
+ Discover existing tokens, profiles and asset declarations before changing identity.
280
+ Brand values live in the role token sheets, with non-default brands under
281
+ `:root[data-brand="<name>"]` and brands declared in `foundation.ads.ts`. Artwork is
282
+ declared with `asset()` beside its SVGs under `assets/<group>/`, with its
283
+ description, license and paint policy (`foreground`, `slots` or `intrinsic`);
284
+ owners bind it through a visual part. Read [branding.md](references/branding.md)
285
+ (`ads://guides/branding`) before changing brand values or artwork, and
286
+ [pictograms.md](references/pictograms.md) (`ads://guides/pictograms`) for
287
+ illustrative, multicolor and themed artwork. Other products' logos are intrinsic
288
+ assets in a group of their own (`assets/logos/`), shown unaltered in their own
289
+ colors under their owners' terms; the example design system's `PartnerLogo` is the example.
340
290
 
341
291
  ## Layout
342
292
 
343
- Write layout geometry (columns, placement, gutters, margins, rows, regions and panels) with
344
- `@ads-layout` in owned Linaria styles. ADS validates it against `tokens/spatial.ads.json` and
345
- compiles it to plain CSS; nothing ships at runtime. Choose fluid, fixed, hybrid, flow or inherited
346
- tracks by what extra space should do, use `context: container` for regions that adapt to their own
347
- width, and `overlay` for panels that cover content. Read [layout.md](references/layout.md)
348
- (`ads://guides/layout`) for worked examples (page grid, tiles, nested alignment, application shell)
349
- and the `grid-construction` fixes.
350
-
351
- Outside `@ads-layout`, use shared sizing roles for fixed dimensions and responsive or intrinsic
352
- sizing where the part can shrink. `layout-fixed-width` checks role membership and spatial
353
- bounds. Use the spatial scale, standard control/icon sizes or an explicit `layout.widthTokens`
354
- role; overlays declare their owner in `layout.fixedWidthUnits`. See the layout guide for
355
- validated fixed tiles and hybrid panels. Atomic CSS
356
- does not keep rule order: give queries on one property exclusive ranges, such as
357
- `(min-width: 768px) and (max-width: 1023.98px)`. `ads audit` fails horizontal overflow at 390,
358
- 768 and 1280 px, and reports a set width above 96 px that overflows a 240 px container as a review item (`layout-overflow-narrow`). See the Layout widths section of
359
- [design-data.md](references/design-data.md) (`ads://guides/tokens`).
360
-
361
- ## Web performance
362
-
363
- Use the project's image component; give `priority` to the view's main visible image only, since
364
- lazy loading above the fold hurts. Call `preloadFonts()` from the public entry (the barrel re-exports it once `ads assets` has
365
- written it) in the app entry, or put its `fontPreloadTags()` in the page from a build step for an
366
- earlier preload. `ads check` fails unsized or unchosen `<img>` (`img-attributes`), oversized assets
367
- (`asset-image-budget`, `asset-font-budget`) and a weight no face covers (`font-weight-missing`);
368
- `ads audit` fails layout shift above 0.1 (`layout-shift`) and an image at another shape than it
369
- declares (`img-shape`). ADS does not cover page metadata, `noindex`, sitemaps or hosting: run Lighthouse
370
- on a production build with real URLs. Read [performance.md](references/performance.md)
371
- (`ads://guides/performance`).
372
-
373
- ## Accessibility
374
-
375
- Target WCAG 2.2 AA. `ads check` fails on contrast in every theme and brand, target size,
376
- focus, text resize, reduced motion, text spacing, image alternatives and icon-only controls
377
- (`a11y-*`, `token-contrast` and `component-contrast`), and lists keyboard reach for review
378
- (`a11y-keyboard`); `ads audit` adds axe-core and non-text contrast in the browser. Read [accessibility.md](references/accessibility.md)
379
- (`ads://guides/accessibility`) for the rules and the practice no tool can check. When a
380
- required color (a brand or reference color) cannot reach contrast with its text, follow its
381
- "When a required color cannot reach contrast" options: other text color, WCAG's 3:1
382
- large-text minimum (size declared in the block that pairs the colors), or the nearest passing
383
- color, presented with ratios when the color is a stakeholder's decision.
293
+ Grids and regions are recipe constructions: a `layout` mode (`fluid`, `fixed`,
294
+ `hybrid`, `flow`, `inherited`, `stack`, `inline`, `layered`), a spatial profile
295
+ supplying tracks, breakpoints, gutters and conditions, and per-cell placement with
296
+ `at` tiers. Public rows a child exposes align through `alignRows`. Read
297
+ [layout.md](references/layout.md) (`ads://guides/layout`) for worked examples and
298
+ the fixes for spatial errors.
299
+
300
+ ## Web performance and accessibility
301
+
302
+ Read [performance.md](references/performance.md) (`ads://guides/performance`) for
303
+ images, fonts and layout stability, and
304
+ [accessibility.md](references/accessibility.md) (`ads://guides/accessibility`) for
305
+ what owner analysis proves (placeholder contrast, named dialogs, summaries,
306
+ reachable scrollers), what the browser audit measures and the practice no tool can
307
+ check. Target WCAG 2.2 AA. Run Lighthouse on a production build for page metadata,
308
+ hosting and real-network loading.
384
309
 
385
310
  ## Design craft and mobile behavior
386
311
 
@@ -394,260 +319,97 @@ than imposing mobile application setup on every component task.
394
319
  ## Motion
395
320
 
396
321
  To implement, review or audit animation, read [references/motion.md](references/motion.md):
397
- when motion is worth adding, driver choice, timing and easing through the motion tokens,
398
- recipes for common controls, a review checklist and interruption coverage. For jank or
399
- rendering cost, read [references/motion-performance.md](references/motion-performance.md).
400
- `a11y-reduced-motion` already guards the reduced-motion tokens.
322
+ when motion is worth adding, driver choice, timing and easing through motion
323
+ profiles, recipes for common controls, a review checklist and interruption coverage.
324
+ For jank or rendering cost, read
325
+ [references/motion-performance.md](references/motion-performance.md). Motion
326
+ profiles declare their reduced-motion policy; owners do not repeat it.
327
+
328
+ Implement motion inside the owner using existing profiles. Use the project's
329
+ existing driver, preserve documented exceptions, and verify interruption and
330
+ cleanup.
401
331
 
402
332
  ## Stress-testing
403
333
 
404
334
  To find what real content and states break a component or pattern, read
405
335
  [references/stress-test.md](references/stress-test.md) and pick values from
406
336
  [references/stress-catalog.md](references/stress-catalog.md). The default is a report;
407
- fix only when asked (`+fix`). The render audit already fails overflow; a stress test adds the
408
- content, collection, state and environment cases no guard knows.
409
-
410
- Implement motion inside the owner using existing tokens and reduced-motion
411
- policy. Use the project's existing driver, preserve documented exceptions, and
412
- verify interruption and cleanup. Dedicated motion or stress-test skills can
413
- help when installed; they are not required for this workflow. Use the real
414
- public-API showcase and the checks below when they are unavailable.
415
-
416
- Selected guidance adapts Emil Kowalski's design/mobile skills. Preserve its
417
- [credits](README.md) and [MIT notice](LICENSE.upstream) with redistributed material.
418
-
419
- ## Use the showcase as the design workspace
420
-
421
- Discover the existing showcase and its run/build commands before visual work.
422
- Open its MCP-reported URL in the built-in client to inspect the current design.
423
- Declare the project's framework and supply its native scenario mount adapter;
424
- ADS manages preview compilation.
425
-
426
- The showcase is a minimal shell plus an MCP client and Apps host, supplied by ADS
427
- tooling. It discovers Tokens/Components/Patterns/Composition entries through MCP
428
- tools and renders their scenarios in the preview App. Navigation, theme and
429
- pane/header visibility belong to the tool client. Do not create page files,
430
- copy its shell into the project or assemble a second catalogue/rendering pipeline.
431
-
432
- When MCP is connected, open the running URL from `ads_status`. Otherwise run the
433
- installed `ads showcase` or the project's `dev:showcase` script. Do not launch a
434
- second runtime/compiler for the same connected project. ADS's managed Bun
435
- preview compiler publishes a shared graph on first demand and after source
436
- changes. The built-in client refreshes discovery and the active scenario in the
437
- same App; compatible watched edits preserve state and focus. Incompatible edits
438
- or rollback can reset the frame. Compiled feedback can appear before checks pass:
439
- use current verified output for captures and acceptance. See
440
- [runtime guidance](references/runtimes.md) for updates and upgrade behavior.
441
- Shared runtime, foundation CSS, fonts and
442
- selected scenario modules load through MCP
443
- resources inside the sandboxed App. Never inject project styles/runtime into
444
- the outer host. Keep the declared framework and its native mount/unmount adapter
445
- consistent; scenario teardown must release owned timers, portals and workers.
446
- The host shows errors and marks retained output as stale. Other hosts may need an
447
- explicit preview-tool invocation. ADS compiles the project's TSX/Linaria
448
- source automatically; the application's production build remains project-owned.
449
-
450
- Project-specific review helpers use `.ads.review.*`; generic framing belongs to the showcase preview UX. Shared helpers are exported through the separate review entry, while scenario
451
- files define no CSS, custom classes or widget replicas. Keep real presentation in
452
- its component/pattern owner. The tooling shell's CSS is outside that project
453
- contract. A project's own showcase pages are checked like other showcase source; the
454
- built-in client requires no TokensPage/ComponentsPage/PatternsPage/CompositionPage files.
455
-
456
- Colocate `<Owner>.ads.scenario.tsx` and `<Owner>.ads.fixture.ts` with tokens and
457
- each component/pattern. Put larger entries under `composition/<Name>/` with their
458
- own marked scenario and fixture. Export a default
459
- zero-input mountable view and literal metadata, for example
460
- `export const scenario = { title: "Button states", covers: ["Button"] };`.
461
- Import the real UI from the public ADS alias. Keep fixture inputs, simulated
462
- services and initial state/callback adapters beside the scenario. Empty fixtures
463
- are valid for an entry with no inputs. Extra development helpers use a
464
- `<Owner>.ads.helpers.ts` file, so guards
465
- recognize their role even beside runtime code. Never require a page, router or store to
466
- initialize the entry. Several contextual public parts may share one scenario.
467
-
468
- IDs derive from ADS-relative filenames: both `components/core/Button/Button.ads.scenario.tsx`
469
- and `components/core/Button.ads.scenario.tsx` identify `components/core/Button`.
470
- Use one form, no duplicate IDs or hand-maintained registry. Renames change IDs.
471
- The showcase and external hosts mount the same discovered entry. ADS owns Bun
472
- preview compilation and Linaria extraction independently of the application's
473
- bundler. Declare `framework`; ADS publishes `.ds/preview/manifest.json`
474
- automatically. Keep the project-owned
475
- framework mount adapter and its cleanup. Use `ads compile` for standalone/CI
476
- preview builds. MCP discovers metadata without importing executable TSX. Read
477
- [Runtime and compiler setup](references/runtimes.md) when setting up or migrating
478
- the compiler.
479
- Use `ads_scenarios` (query/kind/limit) and `ads_show_scenario({id})` to open an exact
480
- entry. Check its build freshness; HTML delivery is not browser verification.
481
- If Apps or resource forwarding are unavailable, open that scenario in the real
482
- showcase, using the tool result's URL. Do not build a preview-only replica.
483
-
484
- For a production screen, find and render the application's public screen pattern.
485
- Its owner supplies structure, controls, layout and presentation. Scenario fixtures
486
- supply data/state/callbacks. Move shared presentation into a pattern if needed,
487
- preserving existing behavior and lazy imports, workers, caching and cancellation.
488
- Do not reassemble an alternative screen or substitute placeholder content.
489
- Screen reuse remains skill guidance, not a dedicated screen-parity lint.
490
-
491
- Resolve `scenario-contract`, `scenario-render` and `scenario-coverage` findings
492
- with meaningful entries. Every public renderable component and pattern needs an
493
- addressable scenario, including unused exports; types/constants/utilities do not.
494
- Direct and traced parent/child public render references reachable from the default
495
- entry count. Declared children need returned JSX selected by known props/defaults;
496
- unresolved branches do not grant speculative coverage. Tests and
497
- unused imports/functions do not. Static reachability does not prove successful
498
- mounting, correct content, every branch/state or visual parity: open each affected
499
- entry independently and verify real behavior at narrow/wide sizes in both themes.
500
- The `showcase-coverage` policy also checks application render references.
501
-
502
- ADS renders the Tokens views itself from the token definitions and `tokens/catalog.ads.json`.
503
- Each catalogue group is a sidebar group with one view per kind of token
504
- (`tokens/<Group>/<section>`, such as `tokens/Typography/line-height`); a group with one kind is a
505
- single `tokens/<Group>` view. The catalogue groups tokens and gives each a sample binding:
506
- `{ "token": "--accent", "property": "background-color", "probe": "rgb(31, 97, 163)" }`, the CSS
507
- property the token is shown with and a valid test value different from its own. Tokens without an
508
- entry appear in a "Values" group with a default binding for their type. Do not author
509
- `tokens/…` scenarios or token review renderers: a project scenario with a foundation view's
510
- ID fails. Invalid catalogue entries are `foundation-catalog` errors. Discover the views with
511
- `ads_scenarios({kind:"tokens"})` and inspect definitions with `ads_tokens`.
512
-
513
- Development review helpers need no product catalogue scenario; component and pattern
514
- scenarios cover their production subjects. Keep review exports in the separate review entry.
515
- Remove redundant helper catalogue scenarios during migration. Product UI retains
516
- its real render-coverage requirement. Keep directory ownership anchored by its
517
- implementation entry (`index` or a file matching the directory name).
518
- Import colocated image/font fixtures so MCP serves them through asset resources.
519
- For a broken-image case, use a local failing fixture, rather than an external
520
- network failure or a domain-specific CSP exception. Production asset APIs remain
521
- unrestricted by this fixture guidance.
522
-
523
- Scenarios, colocated fixtures and helpers are development-only. Never export them
524
- from the runtime barrel or import them in production, including through aliases,
525
- re-exports or dynamic imports. They may not import application stores, routers,
526
- providers or HTTP clients. Live business data is application-owned; UI uses typed
527
- inputs or injected services/callbacks. Direct global fetch/XHR/WebSocket/EventSource
528
- is rejected; custom clients and computed access require review/project guards.
529
- Use local simulated services in fixtures. Tests may import fixtures; load real
530
- foundation CSS rather than assigning shared token values in JavaScript. Keep
531
- full-app integration harnesses and workflow coverage in application test support.
532
-
533
- Foundation CSS is checked, not an escape hatch. Value sheets define shared tokens
534
- on the document root (per-theme halves) or a brand's `[data-brand]`; `fonts.css`
535
- holds font-face metadata. `base.css` has three closed roles: root/body typography,
536
- canvas and theme defaults; limited native normalization; and global focus
537
- indicators/reduced-motion rules. Every selector
538
- branch, property and value must fit its role. Token-backed control skins, layout,
539
- interactive state rules and owner hooks are rejected even through `:where()`.
540
- Do not copy an unchecked upstream preflight or turn a component repair into a reset.
541
- Keep behavior and skin in their runtime owner. Put demo-only sizing and framing
542
- in a development-only review helper; add component props for a deliberate runtime
543
- API need. Preserve required capabilities while following ownership rules.
544
- Use tokens for absolute/font-relative lengths, including `ch`, `ex`, `cap`, `ic`
545
- and `lh`; calculations and fallback values follow the same rule. Structural
546
- angle units remain available for orientation, skew and spin. Put tunable visual
547
- angles in project tokens; static checks cannot infer that intent. Percentages,
548
- grid fractions and viewport/container relationships retain structural use.
549
- Browser review still verifies the effects.
550
-
551
- Invalid metadata and source failures keep the managed compiler alive for repairs.
552
- Read `ads_status.build` or `ads://project/build`, fix the owner, then wait for current
553
- successful output. If the builder exited, fix its command and invoke the preview
554
- again; ADS starts one fresh child without an MCP reconnect. Compiler-code changes
555
- also reload on the next preview invocation. Reconnect the client when upgrading
556
- the ADS server package itself. Persistent SSE/notification streams make
557
- `networkidle` unsuitable: wait for the App's current ready/error state instead.
558
-
559
-
560
-
561
-
562
- Run ADS's own gates directly with `ads check`. Register project-specific checks as explicit package scripts in
563
- `acceptance.scripts` / `validation.scripts` (list each once), and behavior tests
564
- through ADS contracts. Direct edits run `ads validate --changed` or
565
- `ads_validate({scope:"changed"})`. Follow [validation](references/validation.md)
566
- for what each gate runs; never weaken a gate to pass a failing change.
567
- A project can use its own linter in those scripts when desired. Measured renderer properties and documented
568
- non-state hooks are declared in the owner's contract (`styles.writes`,
569
- `styles.inline`, `customization`); shared token writes and primitive state overrides
570
- cannot be allowed. When moving JSX inline geometry to imperative writes, change the
571
- source and its contract permissions together in the owner's draft. Remove obsolete
572
- `styles.inline` entries and unused `styles.writes` properties; do not broaden
573
- permissions to keep a change passing.
574
- Pointer-capture advisories call for review of cancellation, capture loss and
575
- teardown, including cleanup delegated to hooks. Verify actual cleanup in a browser;
576
- a locally present handler alone does not prove correctness.
577
- Add generic architectural protections to
578
- ADS core and keep domain/component-specific rules registered in project setup.
579
-
580
- Examples and composition scenarios must consume the same public components, patterns,
581
- foundation CSS, and token values as the application. Scenario adapters may own sample data,
582
- state, callbacks, and example selection. A missing reusable control or pattern
583
- must be implemented/exported in its owning ADS layer, then imported through the
584
- public API. Never finish a mock with a separately styled component replica.
585
- The outer shell, navigation and theme controls belong to the tool client.
586
- Scenario labels and sample layouts use known public ADS entities with defined
587
- APIs, owned by development-only `review/`. Keep review layouts minimal so they do not
588
- influence the product design. Showcase/scenario
589
- files define no CSS, custom class names, inline styling, or widget markup.
590
- Use semantic fixture content and public entities; a missing frame/layout is an
591
- explicit review-layer change. Component appearance, states, sizing policy,
592
- accessibility, and motion stay in the shared owner.
593
-
594
- Update examples when creating/changing components, patterns, or token values.
595
- Include meaningful variants, difficult content, supported states, themes, and
596
- container sizes. Run ADS and registered project guards for both app and showcase
597
- builds; do not exclude scenarios or loosen ownership rules to make a demo pass.
598
- For unchecked source formats or styling engines, retain the project's matching
599
- guards and report the gap. A clean static check does not prove all UI is shared.
600
-
601
- Inspect the rendered examples and relevant interactions. Fix shared design in
602
- the implementation so the showcase and application receive it together. Give
603
- the human a full running URL, or an exact command when the server is stopped,
604
- and identify what is ready to review. Continue already-authorized work without
605
- adding an approval step solely because a showcase exists.
337
+ fix only when asked (`+fix`). A stress test adds the content, collection, state and
338
+ environment cases no guard knows.
339
+
340
+ Selected design, mobile and motion guidance adapts Emil Kowalski's skills.
341
+ Preserve its [credits](README.md) and [MIT notice](LICENSE.upstream) with
342
+ redistributed material.
343
+
344
+ ## Development files and mocks
345
+
346
+ Scenarios (`*.ads.scenario.*`), fixtures (`*.ads.fixture.*`), export stubs,
347
+ tests and everything under `mocks/` are development files: they are never
348
+ emitted, and production code never imports them. Mocks supply mock data,
349
+ local state and simulated actions to public patterns; they render only public
350
+ patterns from `@ds` with explicit props, import only `@ds`, react's adapter hooks,
351
+ their own captured helpers and their own `media/` images, and define no design
352
+ (`mock-ownership`, codes `mock/<kind>`). Read
353
+ [scenarios.md](references/scenarios.md) (`ads://guides/scenarios`) and
354
+ [review.md](references/review.md) (`ads://guides/review`).
355
+
356
+ A scenario supplies data and subjects; ADS draws the page. Export one literal
357
+ `scenario` with `specimens` (each a title, a note, an arrangement, a width and a
358
+ `render` that returns owners), optional named `states`, and `frame: "screen"` for
359
+ a mock. Write no markup, styles or helper components in it
360
+ (`scenario-markup`); use the kit from `@reqvire-org/ads/showcase` (Container,
361
+ Placeholder, Anchor, EventLog) where a subject needs a sized parent, a stand-in,
362
+ an overlay's control or a callback's output.
363
+
364
+ Every public owner needs a scenario covering it (`scenario-coverage`), and `covers`
365
+ names only public UI its specimens render (`scenario-covers`,
366
+ `scenario-covers-role`, `scenario-render`). Optional `exercises` names the public
367
+ behavioral APIs (hooks, controllers, providers) the mounted code calls
368
+ (`scenario-exercise-api`, `scenario-exercise`). ADS registers these scenarios: the showcase lists them and
369
+ `ads_show_scenario` previews them from the emitted design system. Say which
370
+ environment you inspected when you report rendered evidence.
606
371
 
607
372
  ## Notifications when a local Toast exists
608
373
 
609
- Read the local notification guide before using its API; the starter has
374
+ Read the local notification guide before using its API; the example design system has
610
375
  no Toast. Follow its host/provider mounting, routing, scope, duration, and focus
611
376
  contracts instead of assuming Sonner compatibility or a particular native API.
612
377
 
613
378
  Create transient notifications from client handlers/callbacks, rather than render
614
- or server execution. Follow documented stable-ID policy for effects. Use the
615
- component's promise/loading lifecycle API when available and settle manual
616
- loading notifications on success and failure. Keep field errors and persistent
617
- information in the relevant form, inline alert, or dialog.
618
-
619
- Customize through shared tokens, component mappings and documented variants. Stacking, gestures,
620
- measured geometry, and animation belong to the component. Register the notification API in
621
- `usage.notifications` (`[{ "api", "host", "rootFiles" }]` in `ds.config.json`): `ads check` then
622
- fails a call during render or from a `'use server'` module (`notification-client-usage`) and a
623
- host mounted outside the listed roots (`notification-host-root`).
379
+ or server execution. Use the component's promise/loading lifecycle API when
380
+ available and settle manual loading notifications on success and failure. Keep
381
+ field errors and persistent information in the relevant form, inline alert, or
382
+ dialog. ADS does not read application source, so where the application calls the
383
+ notification API or mounts its host is checked by the application's own tooling.
624
384
 
625
385
  ## Validate
626
386
 
627
- Use the target's actual lint/typecheck/build commands. The starter provides:
628
-
629
- ```sh
630
- npm run typecheck
631
- npm run build
632
- ```
633
-
634
- Run meaningful component/rule tests when behavior or enforcement changes.
635
- Follow [references/cli.md](references/cli.md) to integrate the tool as a
636
- development dependency in the target's actual lint/build pipeline. Initialization
637
- already does this. Routine builds refresh configuration and run core checks
638
- automatically; npx remains useful for bootstrap or ad hoc inspection. Core checks do
639
- not replace framework type checking, component rules, or interaction tests.
640
- For visual work, inspect the real project showcase, including keyboard/focus,
641
- relevant pointer/touch behavior, dark theme, and reduced motion as needed.
642
- A screenshot alone does not prove behavior or animation. Validate public imports,
643
- CSS/asset resolution, required setup, and local documentation links.
644
-
645
- For static owner contracts, `.ads.` development roles, typed paint/binding APIs,
646
- declarative parent graphs, constrained theme bindings, private visual subject roles,
647
- shared Data ownership and guarded migration, read
648
- [contracts.md](references/contracts.md) when the task touches those contracts.
649
-
650
- For Data/UX/Skin boundaries, shared token reuse and private-value diagnostics, read
651
- [design-data.md](references/design-data.md). Components own mappings and mechanics,
652
- not independent token catalogues. Existing project font, text and spacing roles
653
- take precedence over divergent upstream constants during adaptation.
387
+ Run `ads check` (the example design system's `lint:ds`) after every change, and `ads emit`
388
+ (`emit:ds`) when the application should receive it. After changing colour tokens
389
+ or the declared themes and brands by direct edits, run `ads sync` so
390
+ `palette.generated.ts` is current. Register project-specific checks as explicit
391
+ package scripts in `acceptance.scripts` / `validation.scripts` (list each once).
392
+ Direct edits run `ads validate --changed` or `ads_validate({scope:"changed"})`.
393
+ Follow [validation](references/validation.md) for what each gate runs; never
394
+ weaken a gate to pass a failing change. Follow [references/cli.md](references/cli.md)
395
+ to integrate the tool as a development dependency in the target's actual
396
+ lint/build pipeline.
397
+
398
+ **Application source (optional).** ADS checks the design system, not the
399
+ application. When you also edit application code, look for
400
+ `ads-guard.config.json` in the application's root. If it is there, run
401
+ `npx ads-guard` (or `bunx ads-guard`) after your edits and fix every finding:
402
+ use a design-system owner, put a component inside a pattern, or add the missing
403
+ pattern to the design system. Do not add the file to `exclude` and do not add a
404
+ component to `allow` to make a finding go away; those are the project's
405
+ decisions. If the application has no guard and the user wants application code
406
+ kept free of design, suggest `@reqvire-org/ads-guard`
407
+ ([scenarios.md](references/scenarios.md), "The guard"); it is the user's
408
+ choice.
409
+
410
+ Core checks do not replace framework type checking, project rules or interaction
411
+ tests. For visual work, inspect the real rendered UI, including keyboard/focus,
412
+ relevant pointer/touch behavior, every declared theme and reduced motion as
413
+ needed. A screenshot alone does not prove behavior or animation. Validate public
414
+ imports, CSS/asset resolution and local documentation links in the consuming
415
+ application.