@reqvire-org/ads 0.4.6 → 0.5.0

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 (1071) hide show
  1. package/README.md +265 -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 +3421 -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 +126 -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 +98 -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 +763 -0
  30. package/dist/analysis/owner-composition.mjs +612 -0
  31. package/dist/analysis/owner-discovery.mjs +164 -0
  32. package/dist/analysis/owner-failures.mjs +19 -0
  33. package/dist/analysis/owner-outcomes.mjs +42 -0
  34. package/dist/analysis/owner-reuse.mjs +100 -0
  35. package/dist/analysis/owner-source.mjs +1506 -0
  36. package/dist/analysis/public-imports.mjs +31 -0
  37. package/dist/analysis/queries.mjs +72 -54
  38. package/dist/analysis/runtime-setters.mjs +114 -0
  39. package/dist/analysis/scenario-keys.mjs +151 -0
  40. package/dist/analysis/service.mjs +111 -70
  41. package/dist/analysis/standalone.mjs +40 -37
  42. package/dist/analysis/styling-ownership.mjs +276 -0
  43. package/dist/analysis/svg-attributes.mjs +199 -0
  44. package/dist/analysis/syntax.mjs +82 -78
  45. package/dist/analysis/visual-bindings.mjs +68 -0
  46. package/dist/analysis/worker-protocol.mjs +302 -0
  47. package/dist/analysis/worker.mjs +234 -166
  48. package/dist/api-signature.mjs +53 -0
  49. package/dist/app-icon-checks.mjs +298 -0
  50. package/dist/app-icon-declaration.d.mts +53 -0
  51. package/dist/app-icon-declaration.mjs +66 -0
  52. package/dist/asset-binding.mjs +35 -0
  53. package/dist/asset-catalog.mjs +83 -0
  54. package/dist/asset-declaration.d.mts +42 -0
  55. package/dist/asset-declaration.mjs +108 -0
  56. package/dist/asset-macro.d.mts +63 -0
  57. package/dist/asset-macro.mjs +22 -0
  58. package/dist/asset-model.mjs +74 -0
  59. package/dist/asset-usage.mjs +14 -0
  60. package/dist/asset-view-facts.mjs +41 -0
  61. package/dist/authoring-macro.d.mts +11 -0
  62. package/dist/authoring-macro.mjs +21 -0
  63. package/dist/autocomplete-hints.mjs +31 -0
  64. package/dist/availability.mjs +9 -0
  65. package/dist/behavior-macro.d.mts +31 -0
  66. package/dist/behavior-macro.mjs +3 -0
  67. package/dist/behavior-registry.mjs +358 -0
  68. package/dist/boundaries.mjs +50 -212
  69. package/dist/browser-runtime.mjs +73 -0
  70. package/dist/browser-test.d.mts +3 -0
  71. package/dist/browser-test.mjs +2 -0
  72. package/dist/bun-bundler.mjs +10 -0
  73. package/dist/bun-compiler.mjs +30 -18
  74. package/dist/bun-runtime.mjs +4 -0
  75. package/dist/bun-worker.mjs +10 -4
  76. package/dist/capture/request.mjs +81 -0
  77. package/dist/capture/worker.mjs +69 -40
  78. package/dist/capture/worker.page.mjs +6 -0
  79. package/dist/capture-store.mjs +159 -75
  80. package/dist/capture.mjs +232 -95
  81. package/dist/check-service.mjs +27 -33
  82. package/dist/check.mjs +200 -904
  83. package/dist/cli-arguments.mjs +278 -0
  84. package/dist/cli.mjs +374 -304
  85. package/dist/color-values.mjs +294 -242
  86. package/dist/composed-contrast.mjs +628 -0
  87. package/dist/config.mjs +162 -454
  88. package/dist/construction-output.mjs +217 -0
  89. package/dist/construction-spec.d.mts +712 -0
  90. package/dist/construction-spec.mjs +937 -0
  91. package/dist/css-length.mjs +80 -0
  92. package/dist/css-quantity.mjs +173 -0
  93. package/dist/deletion-model.mjs +56 -0
  94. package/dist/deletion-plan.mjs +364 -0
  95. package/dist/dependency-manifest.mjs +56 -0
  96. package/dist/design-context-model.d.mts +61 -0
  97. package/dist/design-context-model.mjs +79 -0
  98. package/dist/design-contexts.mjs +105 -0
  99. package/dist/design-foundation.mjs +527 -0
  100. package/dist/design-inputs.mjs +156 -0
  101. package/dist/design-modules.mjs +27 -0
  102. package/dist/design-rejection.d.mts +23 -0
  103. package/dist/design-rejection.mjs +29 -0
  104. package/dist/design-system-closure.mjs +108 -0
  105. package/dist/design-usage.mjs +48 -0
  106. package/dist/development-modules.mjs +2 -0
  107. package/dist/development-runtime.mjs +0 -7
  108. package/dist/digest.mjs +2 -0
  109. package/dist/draft-boundary.mjs +1 -27
  110. package/dist/draft-workspace.mjs +11 -5
  111. package/dist/emit/accept.mjs +33 -0
  112. package/dist/emit/app-icon-emission.mjs +124 -0
  113. package/dist/emit/app-icon-render.mjs +126 -0
  114. package/dist/emit/asset-imports.mjs +18 -0
  115. package/dist/emit/cli-report.mjs +97 -0
  116. package/dist/emit/contract.mjs +136 -0
  117. package/dist/emit/emission.mjs +175 -0
  118. package/dist/emit/font-emission.mjs +91 -0
  119. package/dist/emit/foundation-sheet.mjs +55 -0
  120. package/dist/emit/icon-containers.mjs +46 -0
  121. package/dist/emit/integrity.mjs +61 -0
  122. package/dist/emit/lock.mjs +66 -0
  123. package/dist/emit/namespace.mjs +79 -0
  124. package/dist/emit/operation-reply.mjs +3 -0
  125. package/dist/emit/operation.mjs +36 -0
  126. package/dist/emit/output-location.mjs +20 -0
  127. package/dist/emit/output-package.mjs +7 -0
  128. package/dist/emit/owner-emission-cache.mjs +52 -0
  129. package/dist/emit/palette-module.mjs +19 -0
  130. package/dist/emit/palette-refresh.mjs +77 -0
  131. package/dist/emit/preview-emitter.mjs +110 -0
  132. package/dist/emit/preview-tree.mjs +174 -0
  133. package/dist/emit/scheduler.mjs +75 -0
  134. package/dist/emit/service.mjs +249 -0
  135. package/dist/emit/sync.mjs +38 -0
  136. package/dist/emit/watch.mjs +74 -0
  137. package/dist/emit/writer.mjs +102 -0
  138. package/dist/evidence.mjs +6 -8
  139. package/dist/example-babel.mjs +7 -0
  140. package/dist/example-literals.mjs +88 -0
  141. package/dist/finding-rules.mjs +71 -77
  142. package/dist/focus-checks.mjs +93 -0
  143. package/dist/font-checks.mjs +143 -0
  144. package/dist/font-declaration.d.mts +54 -0
  145. package/dist/font-declaration.mjs +77 -0
  146. package/dist/font-macro.d.mts +32 -0
  147. package/dist/font-macro.mjs +6 -0
  148. package/dist/font-model.mjs +37 -0
  149. package/dist/form-states.mjs +82 -0
  150. package/dist/foundation-macro.d.mts +108 -0
  151. package/dist/foundation-macro.mjs +6 -0
  152. package/dist/frame-regions.mjs +190 -0
  153. package/dist/glyph-set-declaration.d.mts +27 -0
  154. package/dist/glyph-set-declaration.mjs +36 -0
  155. package/dist/grid-checks.mjs +94 -0
  156. package/dist/grid-facts.mjs +92 -0
  157. package/dist/grid-lowering.mjs +257 -0
  158. package/dist/guard/cli.mjs +51 -0
  159. package/dist/guard/config.mjs +67 -0
  160. package/dist/guard/files.mjs +31 -0
  161. package/dist/guard/index.mjs +3 -0
  162. package/dist/guard/run.mjs +56 -0
  163. package/dist/guard/tsconfig.declarations.json +13 -0
  164. package/dist/index.mjs +2 -7
  165. package/dist/init-project.mjs +134 -0
  166. package/dist/init.mjs +225 -261
  167. package/dist/input-digests.mjs +216 -0
  168. package/dist/input-scope.mjs +18 -41
  169. package/dist/inspected-svg.d.mts +28 -0
  170. package/dist/inspected-svg.mjs +40 -0
  171. package/dist/inventories.mjs +149 -0
  172. package/dist/inventory-query.mjs +15 -0
  173. package/dist/investigations.mjs +177 -99
  174. package/dist/json.d.mts +10 -0
  175. package/dist/json.mjs +36 -0
  176. package/dist/linaria/atomic-processor.json +96 -0
  177. package/dist/linaria/atomic-processor.mjs +2452 -0
  178. package/dist/linaria/backend-identity.mjs +26 -0
  179. package/dist/linaria/compatibility.json +61 -0
  180. package/dist/linaria/css-shape.mjs +94 -0
  181. package/dist/linaria/custom-property-css.mjs +56 -0
  182. package/dist/linaria/delivery.mjs +111 -0
  183. package/dist/linaria/direct-extract.mjs +43 -0
  184. package/dist/linaria/extraction-cache.mjs +31 -0
  185. package/dist/linaria/extraction-model.mjs +5 -0
  186. package/dist/linaria/fingerprint.mjs +183 -0
  187. package/dist/linaria/pair-manifest.json +2315 -0
  188. package/dist/linaria/persisted-extraction-cache.mjs +352 -0
  189. package/dist/linaria/preservation.mjs +13 -0
  190. package/dist/linaria/priority-emitted-rank.mjs +40 -0
  191. package/dist/linaria/priority-manifest.mjs +87 -0
  192. package/dist/linaria/priority-table.mjs +47 -0
  193. package/dist/linaria/priority-tiers.mjs +27 -0
  194. package/dist/linaria/processor-host.mjs +42 -0
  195. package/dist/linaria/processor-runtime.mjs +36 -0
  196. package/dist/linaria-processor-NOTICES.md +147 -0
  197. package/dist/lowering-components.mjs +14 -0
  198. package/dist/lowering-effects.mjs +38 -0
  199. package/dist/lowering-emitter.mjs +29 -0
  200. package/dist/lowering-hidden.mjs +30 -0
  201. package/dist/lowering-layer.mjs +141 -0
  202. package/dist/lowering-motion.mjs +37 -0
  203. package/dist/lowering-normalize.mjs +194 -0
  204. package/dist/lowering-overlaps.mjs +328 -0
  205. package/dist/lowering-paint.mjs +32 -0
  206. package/dist/lowering-properties.mjs +144 -0
  207. package/dist/lowering-region-layout.mjs +191 -0
  208. package/dist/lowering-serialize.mjs +40 -0
  209. package/dist/lowering-session.mjs +130 -0
  210. package/dist/lowering-tiers.mjs +23 -0
  211. package/dist/lowering-transitions.mjs +39 -0
  212. package/dist/mcp/ads-mcp.mjs +423 -0
  213. package/dist/mcp/apps.mjs +3 -25
  214. package/dist/mcp/behavior-pages.mjs +58 -51
  215. package/dist/mcp/build-status.mjs +242 -254
  216. package/dist/mcp/catalog.mjs +21 -128
  217. package/dist/mcp/compiler-channel.mjs +280 -0
  218. package/dist/mcp/context.mjs +50 -40
  219. package/dist/mcp/deletions.mjs +147 -0
  220. package/dist/mcp/draft-discovery.mjs +43 -38
  221. package/dist/mcp/drafts.mjs +654 -755
  222. package/dist/mcp/execution-context.mjs +33 -22
  223. package/dist/mcp/execution-coordinator.mjs +367 -354
  224. package/dist/mcp/execution-results.mjs +440 -173
  225. package/dist/mcp/mutation-limits.mjs +1 -2
  226. package/dist/mcp/mutations.mjs +515 -553
  227. package/dist/mcp/patch.mjs +117 -75
  228. package/dist/mcp/preview-http.bundle.js +3 -7
  229. package/dist/mcp/preview-http.mjs +220 -107
  230. package/dist/mcp/preview-owner-guard.mjs +81 -43
  231. package/dist/mcp/preview-watch.mjs +492 -353
  232. package/dist/mcp/preview-widget.bundle.js +42 -46
  233. package/dist/mcp/preview-work.mjs +25 -13
  234. package/dist/mcp/prompts.mjs +22 -16
  235. package/dist/mcp/resource-loader.js +1 -1
  236. package/dist/mcp/result-pages.mjs +94 -54
  237. package/dist/mcp/sandbox-host.mjs +41 -19
  238. package/dist/mcp/server-discovery.mjs +96 -0
  239. package/dist/mcp/server-guides.mjs +43 -0
  240. package/dist/mcp/server-host.mjs +203 -0
  241. package/dist/mcp/server-observation.mjs +225 -0
  242. package/dist/mcp/server-project.mjs +371 -0
  243. package/dist/mcp/server-resources.mjs +466 -0
  244. package/dist/mcp/server-shared.mjs +79 -0
  245. package/dist/mcp/server-tools.mjs +791 -0
  246. package/dist/mcp/server.mjs +2 -2794
  247. package/dist/mcp/showcase-host.mjs +209 -135
  248. package/dist/mcp/showcase-http.mjs +50 -28
  249. package/dist/mcp/skills.mjs +32 -36
  250. package/dist/mcp/text-diff.mjs +18 -36
  251. package/dist/measured-geometry.mjs +157 -0
  252. package/dist/motion-model.mjs +50 -0
  253. package/dist/non-text-contrast.mjs +118 -0
  254. package/dist/owner-analysis-check.mjs +651 -0
  255. package/dist/owner-design.mjs +15 -0
  256. package/dist/owner-errors.mjs +200 -0
  257. package/dist/owner-lowering.mjs +186 -0
  258. package/dist/owner-scenarios.mjs +832 -0
  259. package/dist/ownership-model.d.mts +6 -0
  260. package/dist/ownership-model.mjs +124 -0
  261. package/dist/package-declarations.mjs +34 -0
  262. package/dist/paint-contrast.mjs +181 -0
  263. package/dist/palette-generated.mjs +101 -116
  264. package/dist/pictogram-model.mjs +13 -51
  265. package/dist/placeholder-contrast.mjs +34 -0
  266. package/dist/platform-features.mjs +377 -0
  267. package/dist/press-scale.mjs +26 -0
  268. package/dist/preview-bun.mjs +335 -406
  269. package/dist/preview-compile-inputs.mjs +78 -0
  270. package/dist/preview-contexts.mjs +7 -0
  271. package/dist/preview-failure.mjs +20 -10
  272. package/dist/preview-files.mjs +18 -36
  273. package/dist/preview-imports.mjs +76 -70
  274. package/dist/preview-incremental.mjs +322 -222
  275. package/dist/preview-inputs.mjs +28 -19
  276. package/dist/preview-manifest-update.mjs +67 -49
  277. package/dist/preview-requests.mjs +10 -17
  278. package/dist/preview-resources.mjs +275 -323
  279. package/dist/preview-scope.mjs +15 -17
  280. package/dist/preview-source.mjs +182 -0
  281. package/dist/preview-spatial.mjs +27 -0
  282. package/dist/profile-macro.d.mts +41 -0
  283. package/dist/profile-macro.mjs +6 -0
  284. package/dist/profile-model.d.mts +65 -0
  285. package/dist/profile-model.mjs +213 -0
  286. package/dist/profile-view-facts.mjs +42 -0
  287. package/dist/program-cache.mjs +9 -7
  288. package/dist/project-boundary.mjs +8 -13
  289. package/dist/project-documents.mjs +25 -29
  290. package/dist/property-registrations.mjs +44 -35
  291. package/dist/public-catalog.mjs +76 -0
  292. package/dist/recipe-defaults.mjs +117 -0
  293. package/dist/recipe-macro.d.mts +400 -0
  294. package/dist/recipe-macro.mjs +23 -0
  295. package/dist/recipe-model.d.mts +26 -0
  296. package/dist/recipe-model.mjs +190 -0
  297. package/dist/region-lowering.mjs +523 -0
  298. package/dist/registration-css.mjs +41 -0
  299. package/dist/registration-roles.mjs +35 -0
  300. package/dist/render-audit/axe-run.page.mjs +28 -0
  301. package/dist/render-audit/first-render.page.mjs +35 -0
  302. package/dist/render-audit/image-shape.page.mjs +42 -0
  303. package/dist/render-audit/layout-overflow.page.mjs +240 -0
  304. package/dist/render-audit/layout-shift.page.mjs +36 -0
  305. package/dist/render-audit/non-text-contrast.page.mjs +138 -0
  306. package/dist/render-audit/render-states.mjs +66 -293
  307. package/dist/render-audit/render-states.page.mjs +177 -0
  308. package/dist/render-audit/text-scale.mjs +42 -0
  309. package/dist/render-audit/text-scale.page.mjs +25 -0
  310. package/dist/render-audit/worker.mjs +125 -112
  311. package/dist/render-audit/worker.page.mjs +21 -0
  312. package/dist/render-audit.mjs +465 -500
  313. package/dist/resource-limits.mjs +185 -212
  314. package/dist/result.d.mts +34 -0
  315. package/dist/result.mjs +60 -0
  316. package/dist/role-vocabulary.d.mts +224 -0
  317. package/dist/role-vocabulary.mjs +223 -0
  318. package/dist/runtime-paint-contrast.mjs +97 -0
  319. package/dist/runtime-paint.mjs +42 -0
  320. package/dist/runtime-requirements.mjs +10 -11
  321. package/dist/runtime-style.mjs +21 -0
  322. package/dist/scenario-groups.mjs +42 -33
  323. package/dist/scenario-inspector.mjs +4 -4
  324. package/dist/scenario-kit.d.mts +79 -0
  325. package/dist/scenario-kit.mjs +18 -0
  326. package/dist/scenario-registry-model.mjs +2 -0
  327. package/dist/scenario-registry.mjs +89 -108
  328. package/dist/scenarios-compiler.mjs +901 -642
  329. package/dist/showcase/ads-views.mjs +103 -0
  330. package/dist/showcase/assets-view.mjs +221 -0
  331. package/dist/showcase/client.bundle.js +222 -59
  332. package/dist/showcase/guide-controls.d.mts +28 -0
  333. package/dist/showcase/guide-controls.mjs +31 -0
  334. package/dist/showcase/http-client.bundle.js +172 -9
  335. package/dist/showcase/index.html +1 -1
  336. package/dist/showcase/preview-frame.css +16 -0
  337. package/dist/showcase/preview-frame.d.mts +5 -0
  338. package/dist/showcase/preview-frame.mjs +4 -0
  339. package/dist/showcase/preview-root.d.mts +2 -0
  340. package/dist/showcase/preview-root.mjs +9 -0
  341. package/dist/showcase/profiles-view.mjs +280 -0
  342. package/dist/showcase/project-rules.mjs +9 -0
  343. package/dist/showcase/sandbox.bundle.js +1 -1
  344. package/dist/showcase/scenario-page.d.mts +39 -0
  345. package/dist/showcase/scenario-page.mjs +90 -0
  346. package/dist/showcase/style.css +2 -0
  347. package/dist/showcase/token-sample.mjs +46 -0
  348. package/dist/showcase/tokens-view.mjs +185 -0
  349. package/dist/showcase/ui/apple-touch-icon-9zwv3w79.png +0 -0
  350. package/dist/showcase/{favicon.ico → ui/favicon-c2c9kvtf.ico} +0 -0
  351. package/dist/showcase/ui/icon-192-t5zh7mxx.png +0 -0
  352. package/dist/showcase/ui/icon-512-ed6yz0n0.png +0 -0
  353. package/dist/showcase/ui/ui.css +1 -1353
  354. package/dist/showcase/ui/ui.js +165 -1064
  355. package/dist/showcase-http-routes.mjs +28 -21
  356. package/dist/skills/README.md +26 -26
  357. package/dist/skills/ads-designer/README.md +1 -1
  358. package/dist/skills/ads-designer/SKILL.md +311 -550
  359. package/dist/skills/ads-designer/references/accessibility.md +162 -114
  360. package/dist/skills/ads-designer/references/atomic-styles.md +61 -273
  361. package/dist/skills/ads-designer/references/behaviors.md +144 -278
  362. package/dist/skills/ads-designer/references/branding.md +132 -222
  363. package/dist/skills/ads-designer/references/captures.md +13 -7
  364. package/dist/skills/ads-designer/references/cli.md +80 -63
  365. package/dist/skills/ads-designer/references/contracts.md +218 -286
  366. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  367. package/dist/skills/ads-designer/references/design-data.md +299 -323
  368. package/dist/skills/ads-designer/references/drafts.md +83 -22
  369. package/dist/skills/ads-designer/references/evidence.md +2 -1
  370. package/dist/skills/ads-designer/references/forms.md +199 -0
  371. package/dist/skills/ads-designer/references/guarded-editing.md +37 -48
  372. package/dist/skills/ads-designer/references/layers.md +64 -76
  373. package/dist/skills/ads-designer/references/layout.md +185 -330
  374. package/dist/skills/ads-designer/references/mobile.md +2 -2
  375. package/dist/skills/ads-designer/references/motion.md +30 -25
  376. package/dist/skills/ads-designer/references/performance.md +48 -49
  377. package/dist/skills/ads-designer/references/pictograms.md +62 -127
  378. package/dist/skills/ads-designer/references/recipes.md +307 -0
  379. package/dist/skills/ads-designer/references/review.md +51 -95
  380. package/dist/skills/ads-designer/references/runtimes.md +34 -33
  381. package/dist/skills/ads-designer/references/scenarios.md +255 -216
  382. package/dist/skills/ads-designer/references/stress-test.md +13 -5
  383. package/dist/skills/ads-designer/references/validation.md +28 -21
  384. package/dist/skills/ads-designer/references/workflows.md +7 -5
  385. package/dist/skills/ads-import/SKILL.md +29 -29
  386. package/dist/skills/ads-import/references/atomic-styles.md +61 -273
  387. package/dist/skills/ads-import/references/behaviors.md +144 -278
  388. package/dist/skills/ads-import/references/branding.md +24 -41
  389. package/dist/skills/ads-import/references/captures.md +13 -7
  390. package/dist/skills/ads-import/references/cli.md +80 -63
  391. package/dist/skills/ads-import/references/compatibility.md +3 -3
  392. package/dist/skills/ads-import/references/contracts.md +218 -286
  393. package/dist/skills/ads-import/references/design-data.md +299 -323
  394. package/dist/skills/ads-import/references/drafts.md +83 -22
  395. package/dist/skills/ads-import/references/evidence.md +2 -1
  396. package/dist/skills/ads-import/references/forms.md +199 -0
  397. package/dist/skills/ads-import/references/guarded-editing.md +37 -48
  398. package/dist/skills/ads-import/references/implementation.md +20 -20
  399. package/dist/skills/ads-import/references/layers.md +64 -76
  400. package/dist/skills/ads-import/references/layout.md +185 -330
  401. package/dist/skills/ads-import/references/recipes.md +307 -0
  402. package/dist/skills/ads-import/references/review.md +51 -95
  403. package/dist/skills/ads-import/references/runtimes.md +34 -33
  404. package/dist/skills/ads-import/references/scenarios.md +255 -216
  405. package/dist/skills/ads-import/references/tokens.md +26 -17
  406. package/dist/skills/ads-import/references/validation.md +28 -21
  407. package/dist/skills/ads-import/references/workflows.md +7 -5
  408. package/dist/skills/ads-migrate/SKILL.md +20 -5
  409. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +6 -0
  410. package/dist/skills/ads-migrate/references/0.4.6-to-0.4.7.md +46 -0
  411. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0-boundary.md +71 -0
  412. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0-grid.md +204 -0
  413. package/dist/skills/ads-migrate/references/0.4.7-to-0.5.0.md +727 -0
  414. package/dist/skills/ads-port/SKILL.md +27 -28
  415. package/dist/skills/ads-port/references/atomic-styles.md +61 -273
  416. package/dist/skills/ads-port/references/behaviors.md +144 -278
  417. package/dist/skills/ads-port/references/captures.md +13 -7
  418. package/dist/skills/ads-port/references/cli.md +80 -63
  419. package/dist/skills/ads-port/references/contracts.md +218 -286
  420. package/dist/skills/ads-port/references/design-data.md +299 -323
  421. package/dist/skills/ads-port/references/drafts.md +83 -22
  422. package/dist/skills/ads-port/references/evidence.md +2 -1
  423. package/dist/skills/ads-port/references/forms.md +199 -0
  424. package/dist/skills/ads-port/references/guarded-editing.md +37 -48
  425. package/dist/skills/ads-port/references/layers.md +64 -76
  426. package/dist/skills/ads-port/references/layout.md +185 -330
  427. package/dist/skills/ads-port/references/lint-and-docs.md +2 -3
  428. package/dist/skills/ads-port/references/native-implementation.md +23 -33
  429. package/dist/skills/ads-port/references/recipes.md +307 -0
  430. package/dist/skills/ads-port/references/review.md +51 -95
  431. package/dist/skills/ads-port/references/runtimes.md +34 -33
  432. package/dist/skills/ads-port/references/scenarios.md +255 -216
  433. package/dist/skills/ads-port/references/validation.md +28 -21
  434. package/dist/skills/ads-port/references/workflows.md +7 -5
  435. package/dist/source-inventory.mjs +33 -0
  436. package/dist/source-values.mjs +272 -262
  437. package/dist/spatial-css.mjs +403 -0
  438. package/dist/spatial-metadata.mjs +11 -11
  439. package/dist/spatial-model.mjs +422 -0
  440. package/dist/spatial-reading.mjs +127 -0
  441. package/dist/stage-timing.mjs +27 -0
  442. package/dist/starter-files.mjs +155 -0
  443. package/dist/starter-overlay.mjs +189 -0
  444. package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +10 -0
  445. package/dist/starters/preact/design-system/assets/avatars/member.svg +1 -0
  446. package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +18 -0
  447. package/dist/starters/preact/design-system/assets/brand/emblem.svg +4 -0
  448. package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +14 -0
  449. package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +4 -0
  450. package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +14 -0
  451. package/dist/starters/preact/design-system/assets/brand/mark.svg +1 -0
  452. package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +14 -0
  453. package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +1 -0
  454. package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +1 -0
  455. package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +1 -0
  456. package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +20 -0
  457. package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +13 -0
  458. package/dist/starters/preact/design-system/assets/glyphs/close.svg +1 -0
  459. package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +23 -0
  460. package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +1 -0
  461. package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +1 -0
  462. package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +10 -0
  463. package/dist/starters/preact/design-system/assets/glyphs/search.svg +1 -0
  464. package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +32 -0
  465. package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +6 -0
  466. package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +13 -0
  467. package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +13 -0
  468. package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +17 -0
  469. package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +10 -0
  470. package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +10 -0
  471. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +15 -0
  472. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +9 -0
  473. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +9 -0
  474. package/dist/starters/preact/design-system/assets/status/error.svg +1 -0
  475. package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +31 -0
  476. package/dist/starters/preact/design-system/assets/status/status.ads.ts +16 -0
  477. package/dist/starters/preact/design-system/assets/status/success.svg +1 -0
  478. package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +14 -0
  479. package/dist/starters/preact/design-system/assets/status/sync-status.svg +7 -0
  480. package/dist/starters/preact/design-system/assets/status/warning.svg +1 -0
  481. package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +12 -0
  482. package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +198 -0
  483. package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +95 -0
  484. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +22 -0
  485. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +60 -0
  486. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +24 -0
  487. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +50 -0
  488. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +8 -0
  489. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +110 -0
  490. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +25 -0
  491. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +72 -0
  492. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +8 -0
  493. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +43 -0
  494. package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +21 -0
  495. package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +41 -0
  496. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +10 -0
  497. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +10 -0
  498. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +10 -0
  499. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +9 -0
  500. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +12 -0
  501. package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +83 -0
  502. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +27 -0
  503. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +46 -0
  504. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +17 -0
  505. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +41 -0
  506. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +20 -0
  507. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +37 -0
  508. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +24 -0
  509. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +173 -0
  510. package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +13 -0
  511. package/dist/starters/preact/design-system/components/Identity/Identity.tsx +146 -0
  512. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +27 -0
  513. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +194 -0
  514. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +19 -0
  515. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +37 -0
  516. package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +70 -0
  517. package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +237 -0
  518. package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +343 -0
  519. package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +70 -0
  520. package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +165 -0
  521. package/dist/starters/preact/design-system/foundation.ads.ts +22 -0
  522. package/dist/starters/preact/design-system/index.ts +51 -0
  523. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +5 -0
  524. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +22 -0
  525. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +12 -0
  526. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +21 -0
  527. package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +24 -0
  528. package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +24 -0
  529. package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +36 -0
  530. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +13 -0
  531. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +27 -0
  532. package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +1 -0
  533. package/dist/starters/preact/design-system/palette.generated.ts +188 -0
  534. package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +73 -0
  535. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +23 -0
  536. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +94 -0
  537. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +21 -0
  538. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +137 -0
  539. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +22 -0
  540. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +248 -0
  541. package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +26 -0
  542. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +254 -261
  543. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +28 -0
  544. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +105 -0
  545. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +179 -0
  546. package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +67 -0
  547. package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +32 -0
  548. package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +30 -0
  549. package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +26 -0
  550. package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +157 -0
  551. package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +50 -0
  552. package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +29 -0
  553. package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +13 -0
  554. package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +25 -0
  555. package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +22 -0
  556. package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +69 -0
  557. package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +146 -0
  558. package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +94 -0
  559. package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +296 -0
  560. package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +92 -0
  561. package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +142 -0
  562. package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +2 -0
  563. package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +18 -0
  564. package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +48 -0
  565. package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +19 -0
  566. package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +2 -0
  567. package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +15 -0
  568. package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +73 -0
  569. package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +46 -0
  570. package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +31 -0
  571. package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +52 -0
  572. package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +35 -0
  573. package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +24 -0
  574. package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +7 -0
  575. package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +12 -0
  576. package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +7 -0
  577. package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +19 -0
  578. package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +1 -0
  579. package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +5 -0
  580. package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +6 -0
  581. package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +11 -0
  582. package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +1 -0
  583. package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +4 -0
  584. package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +6 -0
  585. package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +17 -0
  586. package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +21 -0
  587. package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +1 -0
  588. package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +2 -0
  589. package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +2 -0
  590. package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +1 -0
  591. package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +1 -0
  592. package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +20 -0
  593. package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +6 -0
  594. package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +2 -0
  595. package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +15 -0
  596. package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +12 -0
  597. package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +1 -0
  598. package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +6 -0
  599. package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +1 -0
  600. package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +6 -0
  601. package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +5 -0
  602. package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +1 -0
  603. package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +2 -0
  604. package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +9 -0
  605. package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +2 -0
  606. package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +2 -0
  607. package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +2 -0
  608. package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +58 -0
  609. package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +20 -0
  610. package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +1 -0
  611. package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +1 -0
  612. package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +9 -0
  613. package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +1 -0
  614. package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +1 -0
  615. package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +1 -0
  616. package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +1 -0
  617. package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +11 -0
  618. package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +1 -0
  619. package/dist/starters/preact/starter.json +11 -0
  620. package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +10 -0
  621. package/dist/starters/react/design-system/assets/avatars/member.svg +1 -0
  622. package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +18 -0
  623. package/dist/starters/react/design-system/assets/brand/emblem.svg +4 -0
  624. package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +14 -0
  625. package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +4 -0
  626. package/dist/starters/react/design-system/assets/brand/mark.ads.ts +14 -0
  627. package/dist/starters/react/design-system/assets/brand/mark.svg +1 -0
  628. package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +14 -0
  629. package/dist/starters/react/design-system/assets/glyphs/arrow.svg +1 -0
  630. package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +1 -0
  631. package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +1 -0
  632. package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +20 -0
  633. package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +13 -0
  634. package/dist/starters/react/design-system/assets/glyphs/close.svg +1 -1
  635. package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +23 -0
  636. package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +1 -0
  637. package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +1 -0
  638. package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +10 -0
  639. package/dist/starters/react/design-system/assets/glyphs/search.svg +1 -1
  640. package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +32 -0
  641. package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +6 -0
  642. package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +13 -0
  643. package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +13 -0
  644. package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +17 -0
  645. package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +10 -0
  646. package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +10 -0
  647. package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +15 -0
  648. package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +9 -0
  649. package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +9 -0
  650. package/dist/starters/react/design-system/assets/status/error.svg +1 -0
  651. package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +31 -0
  652. package/dist/starters/react/design-system/assets/status/status.ads.ts +16 -0
  653. package/dist/starters/react/design-system/assets/status/success.svg +1 -0
  654. package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +14 -0
  655. package/dist/starters/react/design-system/assets/status/sync-status.svg +7 -0
  656. package/dist/starters/react/design-system/assets/status/warning.svg +1 -0
  657. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +11 -12
  658. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +187 -45
  659. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +83 -48
  660. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +22 -0
  661. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +60 -0
  662. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +24 -0
  663. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +50 -0
  664. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +8 -0
  665. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +110 -0
  666. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +25 -0
  667. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +72 -0
  668. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +8 -0
  669. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +43 -0
  670. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +21 -16
  671. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +32 -33
  672. package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +10 -0
  673. package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +10 -0
  674. package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +10 -0
  675. package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +9 -2
  676. package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +10 -11
  677. package/dist/starters/react/design-system/components/Content/Image/Image.tsx +74 -42
  678. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +27 -0
  679. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +46 -0
  680. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +17 -0
  681. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +41 -0
  682. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +20 -0
  683. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +37 -0
  684. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +23 -12
  685. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +161 -49
  686. package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +13 -0
  687. package/dist/starters/react/design-system/components/Identity/Identity.tsx +146 -0
  688. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +27 -0
  689. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +194 -0
  690. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +19 -0
  691. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +37 -0
  692. package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +70 -0
  693. package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +237 -0
  694. package/dist/starters/react/design-system/controllers/FormField/FormField.ts +343 -0
  695. package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +70 -0
  696. package/dist/starters/react/design-system/controllers/Palette/Palette.ts +5 -4
  697. package/dist/starters/react/design-system/foundation.ads.ts +22 -0
  698. package/dist/starters/react/design-system/index.ts +51 -12
  699. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +5 -0
  700. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +22 -0
  701. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +12 -0
  702. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +21 -0
  703. package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +24 -0
  704. package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +24 -0
  705. package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +36 -0
  706. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +13 -0
  707. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +27 -0
  708. package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +1 -0
  709. package/dist/starters/react/design-system/palette.generated.ts +188 -0
  710. package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +73 -0
  711. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +23 -0
  712. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +94 -0
  713. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +21 -0
  714. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +137 -0
  715. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +22 -0
  716. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +248 -0
  717. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +26 -21
  718. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +255 -261
  719. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +28 -0
  720. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +105 -0
  721. package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +179 -0
  722. package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +67 -0
  723. package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +32 -0
  724. package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +30 -0
  725. package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +26 -0
  726. package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +157 -0
  727. package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +50 -0
  728. package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +29 -0
  729. package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +13 -0
  730. package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +25 -0
  731. package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +22 -0
  732. package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +69 -0
  733. package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +146 -0
  734. package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +94 -0
  735. package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +296 -0
  736. package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +92 -0
  737. package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +142 -0
  738. package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +2 -0
  739. package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +18 -0
  740. package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +48 -0
  741. package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +19 -0
  742. package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +2 -0
  743. package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +15 -0
  744. package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +73 -0
  745. package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +46 -0
  746. package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +31 -0
  747. package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +52 -0
  748. package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +35 -0
  749. package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +24 -0
  750. package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +7 -0
  751. package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +12 -0
  752. package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +7 -0
  753. package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +19 -0
  754. package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +1 -0
  755. package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +5 -0
  756. package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +6 -0
  757. package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +11 -0
  758. package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +1 -0
  759. package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +4 -0
  760. package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +6 -0
  761. package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +17 -0
  762. package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +21 -0
  763. package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +1 -0
  764. package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +2 -0
  765. package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +2 -0
  766. package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +1 -0
  767. package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +1 -0
  768. package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +20 -0
  769. package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +6 -0
  770. package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +2 -0
  771. package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +15 -0
  772. package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +12 -0
  773. package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +1 -0
  774. package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +6 -0
  775. package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +1 -0
  776. package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +6 -0
  777. package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +5 -0
  778. package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +1 -0
  779. package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +2 -0
  780. package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +9 -0
  781. package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +2 -0
  782. package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +2 -0
  783. package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +2 -0
  784. package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +58 -0
  785. package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +20 -0
  786. package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +1 -0
  787. package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +1 -0
  788. package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +9 -0
  789. package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +1 -0
  790. package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +1 -0
  791. package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +1 -0
  792. package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +1 -0
  793. package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +11 -0
  794. package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +1 -0
  795. package/dist/starters/react/starter.json +11 -0
  796. package/dist/state-conditions.d.mts +51 -0
  797. package/dist/state-conditions.mjs +67 -0
  798. package/dist/static-values.mjs +94 -0
  799. package/dist/surface-contrast.mjs +194 -0
  800. package/dist/target-size.mjs +177 -0
  801. package/dist/task-cache.mjs +142 -136
  802. package/dist/task-worker.mjs +18 -18
  803. package/dist/test-boundaries.mjs +50 -189
  804. package/dist/token-checks.mjs +21 -0
  805. package/dist/token-dtcg.mjs +135 -0
  806. package/dist/token-expression.mjs +19 -0
  807. package/dist/token-inventory.mjs +146 -0
  808. package/dist/token-operations.mjs +37 -0
  809. package/dist/token-overlap.mjs +29 -0
  810. package/dist/token-provenance.mjs +260 -0
  811. package/dist/token-references.mjs +71 -0
  812. package/dist/token-registrations.mjs +116 -0
  813. package/dist/token-resolution.mjs +38 -0
  814. package/dist/token-sections.mjs +123 -0
  815. package/dist/token-shapes.mjs +121 -0
  816. package/dist/token-sheet-check.mjs +54 -0
  817. package/dist/token-type-check.mjs +89 -0
  818. package/dist/token-view-facts.mjs +62 -0
  819. package/dist/tsconfig.declarations.json +24 -0
  820. package/dist/types/css-tree.d.ts +45 -0
  821. package/dist/ui-framework.mjs +34 -34
  822. package/dist/units.mjs +186 -226
  823. package/dist/unknown.d.mts +9 -0
  824. package/dist/unknown.mjs +13 -0
  825. package/dist/validation-checks.mjs +62 -71
  826. package/dist/validation-inputs.mjs +287 -184
  827. package/dist/validation.mjs +132 -159
  828. package/dist/verification/browser.d.mts +21 -25
  829. package/dist/verification/browser.mjs +281 -124
  830. package/dist/verification/browser.page.d.mts +22 -0
  831. package/dist/verification/browser.page.mjs +19 -0
  832. package/dist/verification/paint-audit.page.d.mts +55 -0
  833. package/dist/verification/paint-audit.page.mjs +144 -0
  834. package/dist/verification/playwright-reporter.mjs +160 -0
  835. package/dist/verification/preview-startup.d.mts +51 -0
  836. package/dist/verification/preview-startup.mjs +76 -0
  837. package/dist/verification/request.d.mts +28 -0
  838. package/dist/verification/request.mjs +30 -0
  839. package/dist/verification/unit-preload.mjs +37 -0
  840. package/dist/verification.mjs +574 -607
  841. package/docs/ADS.md +562 -565
  842. package/docs/ARCHITECTURE.md +1857 -1345
  843. package/docs/ASSETS.md +416 -0
  844. package/docs/BEHAVIORS.md +339 -370
  845. package/docs/CACHING.md +365 -154
  846. package/docs/CHANGELOG.md +171 -21
  847. package/docs/COMPARISON.md +21 -26
  848. package/docs/DESIGN-REFERENCES.md +39 -26
  849. package/docs/GUIDE.md +2306 -1288
  850. package/docs/LANGUAGE.md +893 -0
  851. package/docs/LOWERING.md +168 -0
  852. package/docs/MCP.md +1461 -1179
  853. package/docs/MOTION.md +265 -0
  854. package/docs/PROFILE-KINDS.md +390 -0
  855. package/docs/PROFILES.md +176 -0
  856. package/docs/RULES.md +559 -0
  857. package/docs/STARTER.md +167 -0
  858. package/docs/TOKEN-ROLES.md +375 -0
  859. package/docs/benchmarks/README.md +26 -27
  860. package/package.json +59 -45
  861. package/dist/a11y.mjs +0 -187
  862. package/dist/assets.mjs +0 -159
  863. package/dist/atomic-composition.mjs +0 -337
  864. package/dist/atomic-trace.mjs +0 -162
  865. package/dist/behavior-libraries.mjs +0 -162
  866. package/dist/behaviors.mjs +0 -306
  867. package/dist/brand-assets.mjs +0 -458
  868. package/dist/brands.mjs +0 -141
  869. package/dist/component-contrast.mjs +0 -256
  870. package/dist/construction-styles.cjs +0 -10
  871. package/dist/contracts/foundation.json +0 -211
  872. package/dist/contracts/tokens.json +0 -52
  873. package/dist/contracts.d.mts +0 -30
  874. package/dist/contrast-composition.mjs +0 -80
  875. package/dist/contrast-styles.mjs +0 -88
  876. package/dist/control-padding.mjs +0 -113
  877. package/dist/css-values.mjs +0 -27
  878. package/dist/declarative-flow.mjs +0 -244
  879. package/dist/design-values.mjs +0 -173
  880. package/dist/font-rules.mjs +0 -108
  881. package/dist/fonts-generated.mjs +0 -112
  882. package/dist/foundation-views.mjs +0 -242
  883. package/dist/foundation.mjs +0 -154
  884. package/dist/generated-entries.mjs +0 -198
  885. package/dist/html.mjs +0 -30
  886. package/dist/icons.mjs +0 -154
  887. package/dist/image-attributes.mjs +0 -187
  888. package/dist/image-size.mjs +0 -28
  889. package/dist/layers.mjs +0 -461
  890. package/dist/layout-widths.mjs +0 -332
  891. package/dist/linaria/atomic-css.cjs +0 -2
  892. package/dist/linaria/atomic-styled.cjs +0 -2
  893. package/dist/linaria/preserve-values.cjs +0 -58
  894. package/dist/linaria/spatial-inputs.cjs +0 -56
  895. package/dist/linaria.d.mts +0 -1
  896. package/dist/linaria.mjs +0 -9
  897. package/dist/lockup-composition.mjs +0 -44
  898. package/dist/lockup-model.cjs +0 -64
  899. package/dist/paint-contracts.mjs +0 -216
  900. package/dist/pictograms.mjs +0 -52
  901. package/dist/public-api.mjs +0 -121
  902. package/dist/public-props.mjs +0 -91
  903. package/dist/render-audit/axe-run.mjs +0 -17
  904. package/dist/render-audit/first-render.mjs +0 -40
  905. package/dist/render-audit/image-shape.mjs +0 -46
  906. package/dist/render-audit/layout-overflow.mjs +0 -167
  907. package/dist/render-audit/layout-shift.mjs +0 -32
  908. package/dist/render-audit/non-text-contrast.mjs +0 -151
  909. package/dist/render-audit/pictograms.mjs +0 -88
  910. package/dist/render-color-probe.mjs +0 -202
  911. package/dist/render-composition.mjs +0 -186
  912. package/dist/runtime-contracts.mjs +0 -506
  913. package/dist/scenario-program.mjs +0 -19
  914. package/dist/scenario-selectors.mjs +0 -237
  915. package/dist/scenario-slots.mjs +0 -217
  916. package/dist/scenario-trace.mjs +0 -314
  917. package/dist/scenarios-vite.d.mts +0 -2
  918. package/dist/scenarios-vite.mjs +0 -2
  919. package/dist/scenarios.mjs +0 -616
  920. package/dist/selector-match.mjs +0 -94
  921. package/dist/showcase/comparison.js +0 -48
  922. package/dist/showcase/connection.js +0 -10
  923. package/dist/showcase/draft-navigation.js +0 -59
  924. package/dist/showcase/foundation-view.css +0 -58
  925. package/dist/showcase/foundation-view.mjs +0 -255
  926. package/dist/showcase/guide-controls.ads.review.mjs +0 -32
  927. package/dist/showcase/http-connection.js +0 -86
  928. package/dist/showcase/http-preview.js +0 -81
  929. package/dist/showcase/icons.js +0 -2
  930. package/dist/showcase/navigation.js +0 -13
  931. package/dist/showcase/pictogram-view.mjs +0 -53
  932. package/dist/showcase/preview-frame.ads.review.css +0 -46
  933. package/dist/showcase/preview-frame.ads.review.d.mts +0 -11
  934. package/dist/showcase/preview-frame.ads.review.mjs +0 -22
  935. package/dist/showcase/preview-state.js +0 -11
  936. package/dist/showcase/refresh-scheduler.js +0 -23
  937. package/dist/showcase/resource-reader.js +0 -37
  938. package/dist/showcase-coverage.mjs +0 -139
  939. package/dist/source-symbols.mjs +0 -4
  940. package/dist/spatial-composition.mjs +0 -322
  941. package/dist/spatial-contexts.cjs +0 -56
  942. package/dist/spatial-css.cjs +0 -351
  943. package/dist/spatial-inputs.cjs +0 -80
  944. package/dist/spatial-model.cjs +0 -322
  945. package/dist/spatial.mjs +0 -21
  946. package/dist/stage-timing.cjs +0 -21
  947. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +0 -105
  948. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +0 -7
  949. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +0 -10
  950. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +0 -8
  951. package/dist/starters/preact/ds.config.json +0 -37
  952. package/dist/starters/preact/package.json +0 -35
  953. package/dist/starters/preact/src/vite-env.d.ts +0 -7
  954. package/dist/starters/preact/tsconfig.json +0 -35
  955. package/dist/starters/preact/vite.config.ts +0 -23
  956. package/dist/starters/react/ADS.md +0 -286
  957. package/dist/starters/react/README.md +0 -184
  958. package/dist/starters/react/biome.css.json +0 -21
  959. package/dist/starters/react/design-system/assets/brand/README.md +0 -41
  960. package/dist/starters/react/design-system/assets/brand/app-icon.svg +0 -4
  961. package/dist/starters/react/design-system/assets/brand/logo.dark.svg +0 -6
  962. package/dist/starters/react/design-system/assets/brand/logo.svg +0 -6
  963. package/dist/starters/react/design-system/assets/glyphs/README.md +0 -15
  964. package/dist/starters/react/design-system/assets/glyphs/aliases.json +0 -1
  965. package/dist/starters/react/design-system/assets/glyphs/check.svg +0 -1
  966. package/dist/starters/react/design-system/assets/glyphs/chevron-down.svg +0 -1
  967. package/dist/starters/react/design-system/assets/glyphs/chevron-right.svg +0 -1
  968. package/dist/starters/react/design-system/assets/glyphs/external-link.svg +0 -1
  969. package/dist/starters/react/design-system/assets/glyphs/info.svg +0 -1
  970. package/dist/starters/react/design-system/assets/glyphs/menu.svg +0 -1
  971. package/dist/starters/react/design-system/assets/glyphs/plus.svg +0 -1
  972. package/dist/starters/react/design-system/assets/glyphs/warning.svg +0 -1
  973. package/dist/starters/react/design-system/assets/pictograms/catalog.ads.json +0 -13
  974. package/dist/starters/react/design-system/assets/pictograms/journey.dark.svg +0 -7
  975. package/dist/starters/react/design-system/assets/pictograms/journey.svg +0 -7
  976. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +0 -1
  977. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.fixture.ts +0 -1
  978. package/dist/starters/react/design-system/components/Actions/Button/README.md +0 -12
  979. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +0 -1
  980. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.fixture.ts +0 -9
  981. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.scenario.tsx +0 -16
  982. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +0 -17
  983. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +0 -1
  984. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.fixture.ts +0 -6
  985. package/dist/starters/react/design-system/components/Content/Icon/README.md +0 -17
  986. package/dist/starters/react/design-system/components/Content/Icon/glyphs.ts +0 -17
  987. package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +0 -1
  988. package/dist/starters/react/design-system/components/Content/Image/README.md +0 -20
  989. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +0 -1
  990. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.fixture.ts +0 -1
  991. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.scenario.tsx +0 -12
  992. package/dist/starters/react/design-system/components/Content/Logo/Logo.tsx +0 -35
  993. package/dist/starters/react/design-system/components/Content/Logo/README.md +0 -12
  994. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.exports.ts +0 -1
  995. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.fixture.ts +0 -1
  996. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.scenario.tsx +0 -7
  997. package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.tsx +0 -26
  998. package/dist/starters/react/design-system/components/Forms/TextField/README.md +0 -14
  999. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +0 -1
  1000. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.fixture.ts +0 -6
  1001. package/dist/starters/react/design-system/composition/Search/SearchPage/README.md +0 -4
  1002. package/dist/starters/react/design-system/composition/Search/SearchPage/SearchPage.ads.fixture.ts +0 -7
  1003. package/dist/starters/react/design-system/composition/Search/SearchPage/SearchPage.ads.scenario.tsx +0 -16
  1004. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +0 -5
  1005. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +0 -13
  1006. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +0 -22
  1007. package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +0 -1
  1008. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +0 -1
  1009. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +0 -7
  1010. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +0 -15
  1011. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +0 -105
  1012. package/dist/starters/react/design-system/patterns/Conversation/README.md +0 -9
  1013. package/dist/starters/react/design-system/patterns/Search/SearchBar/README.md +0 -12
  1014. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +0 -1
  1015. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.fixture.ts +0 -1
  1016. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.scenario.tsx +0 -11
  1017. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.tsx +0 -41
  1018. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +0 -5
  1019. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +0 -21
  1020. package/dist/starters/react/design-system/patterns/Shell/README.md +0 -43
  1021. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +0 -1
  1022. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +0 -5
  1023. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +0 -1
  1024. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +0 -7
  1025. package/dist/starters/react/design-system/review/index.ads.review.ts +0 -4
  1026. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +0 -1
  1027. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +0 -6
  1028. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +0 -1
  1029. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +0 -10
  1030. package/dist/starters/react/design-system/showcase/mcp/main.ads.mount.tsx +0 -10
  1031. package/dist/starters/react/design-system/styles.css +0 -7
  1032. package/dist/starters/react/design-system/tokens/base.css +0 -36
  1033. package/dist/starters/react/design-system/tokens/catalog.ads.json +0 -1221
  1034. package/dist/starters/react/design-system/tokens/colors.css +0 -215
  1035. package/dist/starters/react/design-system/tokens/elevation.css +0 -53
  1036. package/dist/starters/react/design-system/tokens/spacing.css +0 -87
  1037. package/dist/starters/react/design-system/tokens/spatial.ads.json +0 -70
  1038. package/dist/starters/react/design-system/tokens/themes.generated.css +0 -142
  1039. package/dist/starters/react/design-system/tokens/themes.generated.ts +0 -402
  1040. package/dist/starters/react/design-system/tokens/typography.css +0 -31
  1041. package/dist/starters/react/ds.config.json +0 -37
  1042. package/dist/starters/react/gitignore.template +0 -8
  1043. package/dist/starters/react/package.json +0 -39
  1044. package/dist/starters/react/scripts/build-mcp-previews.mjs +0 -3
  1045. package/dist/starters/react/src/vite-env.d.ts +0 -7
  1046. package/dist/starters/react/tsconfig.build.json +0 -20
  1047. package/dist/starters/react/tsconfig.json +0 -34
  1048. package/dist/starters/react/vite.config.ts +0 -23
  1049. package/dist/style-boundaries.mjs +0 -106
  1050. package/dist/style-token-rules.mjs +0 -51
  1051. package/dist/themes-generated.mjs +0 -161
  1052. package/dist/themes-watch.mjs +0 -83
  1053. package/dist/themes.mjs +0 -360
  1054. package/dist/token-export.mjs +0 -94
  1055. package/dist/token-origins.mjs +0 -24
  1056. package/dist/token-policy.mjs +0 -26
  1057. package/dist/token-quality.mjs +0 -149
  1058. package/dist/token-samples.mjs +0 -19
  1059. package/dist/tokens.mjs +0 -194
  1060. package/dist/unit-contracts.mjs +0 -396
  1061. package/dist/usage.mjs +0 -184
  1062. package/dist/verification/playwright-reporter.cjs +0 -87
  1063. package/docs/CONTRACTS.md +0 -285
  1064. package/docs/HTTP-SHOWCASE-POC.md +0 -397
  1065. package/docs/SPATIAL-CHECKS.md +0 -69
  1066. package/docs/benchmarks/http-showcase-optimized.json +0 -1879
  1067. package/docs/benchmarks/http-showcase-profile.json +0 -308
  1068. package/docs/benchmarks/http-showcase.json +0 -3069
  1069. /package/dist/{starters/react/design-system/assets/fonts/.gitkeep → analysis/semantic.mjs} +0 -0
  1070. /package/dist/{starters/react/design-system/controllers/.gitkeep → lowering-model.mjs} +0 -0
  1071. /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,204 @@ 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 starter 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
+ Never rebuild a project from skill text: the starter comes from `ads init`.
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) and installs the starter that
189
+ ships in the same ADS package version, so the design system always matches the tool
190
+ that checks it. For one application, put it in the application's `design/` folder
191
+ and emit into its source; for several applications, give it its own repository
192
+ (they install its committed `dist/` by git reference, tarball or registry):
194
193
 
195
194
  ```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
195
+ npx @reqvire-org/ads@<version> init design --framework react --out ../src/ui
196
+ # several applications: npx @reqvire-org/ads@<version> init acme-design --framework react
197
+ cd design # or acme-design
198
198
  npm install # bun install
199
- npm run build # bun run build
199
+ npm run lint:ds # ads check
200
+ npm run emit:ds # ads emit
200
201
  ```
201
202
 
202
203
  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.
204
+ [references/cli.md](references/cli.md) for a local tarball (`--tool-package`) and
205
+ what init writes. Use `--framework preact` for a Preact project: it installs the
206
+ native Preact starter (Preact's own JSX runtime and `preact/hooks`, no `preact/compat`).
207
+ Never copy starter files by hand.
208
+
209
+ The starter is one coherent design system: role token sheets, profiles for every
210
+ kind, a foundation declaring its themes and brands, declared artwork, components,
211
+ patterns, a renderer-palette controller and preview mocks. Treat them as the
212
+ project's own: adapt or replace them for the requested product.
213
+
214
+ For an existing app without a design system, run `ads init design --out ../src/ui`
215
+ in that app: the design package gets its own folder, `package.json` and install, and
216
+ the application's own files, scripts and lockfile stay untouched (the application
217
+ never installs ADS). Init never edits `.gitignore` or writes a lockfile, and stops
218
+ before writing anything when the design-system folder already has content and the
219
+ package has no `ds.config.json`. The application imports the emitted source and
220
+ declares the packages `ads-dependencies.json` lists; ADS does not rewrite
221
+ application configuration.
235
222
 
236
223
  ## External references and content
237
224
 
@@ -241,146 +228,83 @@ continue independent local discovery first. Do not invent a repository URL or
241
228
  use the tooling checkout's origin as an example library. Bootstrap needs no
242
229
  external source.
243
230
 
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.
231
+ Inspect the external repository's instructions, architecture, actual design-system
232
+ folder, public barrel, item guides, token sheets, profiles, build and license.
233
+ Do not assume it has a particular component, hook, font or token. Record the
234
+ source revision and required dependencies.
248
235
 
249
236
  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
237
+ or porting to create a native component from an upstream library. Follow
251
238
  those workflows directly if the corresponding skills are unavailable: copy
252
239
  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.
240
+ behavior; integrate local ownership, the barrel, profiles, tokens, assets, credits,
241
+ applicable notices and checks. Do not copy the whole catalogue or source
242
+ configuration. Mocks and example screens remain mocks unless explicitly
243
+ requested.
256
244
 
257
245
  Preserve the target's performance strategy when changing ownership: lazy imports,
258
246
  worker execution, caches, memoization, cancellation, and stale-result rejection.
259
247
  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.
248
+ Shared screen patterns can accept injected services; architectural reuse does not
249
+ require moving application services into the design system.
263
250
 
264
251
  ## Token and component ownership
265
252
 
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
253
+ - Global token names are unique and their role comes from the sheet's filename;
254
+ folders organize files and infer no semantics. Reuse existing roles and
255
+ profiles before adding new ones.
256
+ - Shared token names, meanings, roles and relationships form the contract;
257
+ project values and per-theme/brand values can differ. Item imports retain
258
+ existing values and add missing definitions. Explicit token-value imports adopt
259
+ source values and their theme and brand overrides.
260
+ - Reuse existing public components, patterns and declared assets when compatible.
261
+ Add missing primitives in their owning layer; read the barrel rather than
280
262
  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.
263
+ - Components own hover, selected, active, focus, disabled, loading and motion,
264
+ as recipe state treatments (`when`) selecting shared profiles. Change them
265
+ through finite typed props. Consumers style a child only through its public
266
+ props, never by classing its interior.
267
+ - Owned elements are styled only through their recipe: no inline `style`, `css`
268
+ attributes, spreads onto owned elements, imperative style writes or class names
269
+ built from anything but recipe outputs.
270
+ - Keep product data, routing, effects and callbacks in application code.
271
+ Application text is data: design may depend on whether text is present, never
272
+ on what it says.
273
+ - Document detailed API, behavior, motion, validation and source credits beside
274
+ each component or pattern. Shared project architecture belongs in its guide.
275
+
276
+ ## Branding and artwork
277
+
278
+ Discover existing tokens, profiles and asset declarations before changing identity.
279
+ Brand values live in the role token sheets, with non-default brands under
280
+ `:root[data-brand="<name>"]` and brands declared in `foundation.ads.ts`. Artwork is
281
+ declared with `asset()` beside its SVGs under `assets/<group>/`, with its
282
+ description, license and paint policy (`foreground`, `slots` or `intrinsic`);
283
+ owners bind it through a visual part. Read [branding.md](references/branding.md)
284
+ (`ads://guides/branding`) before changing brand values or artwork, and
285
+ [pictograms.md](references/pictograms.md) (`ads://guides/pictograms`) for
286
+ illustrative, multicolor and themed artwork. Other products' logos are intrinsic
287
+ assets in a group of their own (`assets/logos/`), shown unaltered in their own
288
+ colors under their owners' terms; the starter's `PartnerLogo` is the example.
340
289
 
341
290
  ## Layout
342
291
 
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.
292
+ Grids and regions are recipe constructions: a `layout` mode (`fluid`, `fixed`,
293
+ `hybrid`, `flow`, `inherited`, `stack`, `inline`, `layered`), a spatial profile
294
+ supplying tracks, breakpoints, gutters and conditions, and per-cell placement with
295
+ `at` tiers. Public rows a child exposes align through `alignRows`. Read
296
+ [layout.md](references/layout.md) (`ads://guides/layout`) for worked examples and
297
+ the fixes for spatial errors.
298
+
299
+ ## Web performance and accessibility
300
+
301
+ Read [performance.md](references/performance.md) (`ads://guides/performance`) for
302
+ images, fonts and layout stability, and
303
+ [accessibility.md](references/accessibility.md) (`ads://guides/accessibility`) for
304
+ what owner analysis proves (placeholder contrast, named dialogs, summaries,
305
+ reachable scrollers), what the browser audit measures and the practice no tool can
306
+ check. Target WCAG 2.2 AA. Run Lighthouse on a production build for page metadata,
307
+ hosting and real-network loading.
384
308
 
385
309
  ## Design craft and mobile behavior
386
310
 
@@ -394,215 +318,55 @@ than imposing mobile application setup on every component task.
394
318
  ## Motion
395
319
 
396
320
  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.
321
+ when motion is worth adding, driver choice, timing and easing through motion
322
+ profiles, recipes for common controls, a review checklist and interruption coverage.
323
+ For jank or rendering cost, read
324
+ [references/motion-performance.md](references/motion-performance.md). Motion
325
+ profiles declare their reduced-motion policy; owners do not repeat it.
326
+
327
+ Implement motion inside the owner using existing profiles. Use the project's
328
+ existing driver, preserve documented exceptions, and verify interruption and
329
+ cleanup.
401
330
 
402
331
  ## Stress-testing
403
332
 
404
333
  To find what real content and states break a component or pattern, read
405
334
  [references/stress-test.md](references/stress-test.md) and pick values from
406
335
  [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.
336
+ fix only when asked (`+fix`). A stress test adds the content, collection, state and
337
+ environment cases no guard knows.
338
+
339
+ Selected design, mobile and motion guidance adapts Emil Kowalski's skills.
340
+ Preserve its [credits](README.md) and [MIT notice](LICENSE.upstream) with
341
+ redistributed material.
342
+
343
+ ## Development files and mocks
344
+
345
+ Scenarios (`*.ads.scenario.*`), fixtures (`*.ads.fixture.*`), export stubs,
346
+ tests and everything under `mocks/` are development files: they are never
347
+ emitted, and production code never imports them. Mocks supply mock data,
348
+ local state and simulated actions to public patterns; they render only public
349
+ patterns from `@ds` with explicit props, import only `@ds`, react's adapter hooks,
350
+ their own captured helpers and their own `media/` images, and define no design
351
+ (`mock-ownership`, codes `mock/<kind>`). Read
352
+ [scenarios.md](references/scenarios.md) (`ads://guides/scenarios`) and
353
+ [review.md](references/review.md) (`ads://guides/review`).
354
+
355
+ A scenario supplies data and subjects; ADS draws the page. Export one literal
356
+ `scenario` with `specimens` (each a title, a note, an arrangement, a width and a
357
+ `render` that returns owners), optional named `states`, and `frame: "screen"` for
358
+ a mock. Write no markup, styles or helper components in it
359
+ (`scenario-markup`); use the kit from `@reqvire-org/ads/showcase` (Container,
360
+ Placeholder, Anchor, EventLog) where a subject needs a sized parent, a stand-in,
361
+ an overlay's control or a callback's output.
362
+
363
+ Every public owner needs a scenario covering it (`scenario-coverage`), and `covers`
364
+ names only public UI its specimens render (`scenario-covers`,
365
+ `scenario-covers-role`, `scenario-render`). Optional `exercises` names the public
366
+ behavioral APIs (hooks, controllers, providers) the mounted code calls
367
+ (`scenario-exercise-api`, `scenario-exercise`). ADS registers these scenarios: the showcase lists them and
368
+ `ads_show_scenario` previews them from the emitted design system. Say which
369
+ environment you inspected when you report rendered evidence.
606
370
 
607
371
  ## Notifications when a local Toast exists
608
372
 
@@ -611,43 +375,40 @@ no Toast. Follow its host/provider mounting, routing, scope, duration, and focus
611
375
  contracts instead of assuming Sonner compatibility or a particular native API.
612
376
 
613
377
  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`).
378
+ or server execution. Use the component's promise/loading lifecycle API when
379
+ available and settle manual loading notifications on success and failure. Keep
380
+ field errors and persistent information in the relevant form, inline alert, or
381
+ dialog. ADS does not read application source, so where the application calls the
382
+ notification API or mounts its host is checked by the application's own tooling.
624
383
 
625
384
  ## Validate
626
385
 
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.
386
+ Run `ads check` (the starter's `lint:ds`) after every change, and `ads emit`
387
+ (`emit:ds`) when the application should receive it. After changing colour tokens
388
+ or the declared themes and brands by direct edits, run `ads sync` so
389
+ `palette.generated.ts` is current. Register project-specific checks as explicit
390
+ package scripts in `acceptance.scripts` / `validation.scripts` (list each once).
391
+ Direct edits run `ads validate --changed` or `ads_validate({scope:"changed"})`.
392
+ Follow [validation](references/validation.md) for what each gate runs; never
393
+ weaken a gate to pass a failing change. Follow [references/cli.md](references/cli.md)
394
+ to integrate the tool as a development dependency in the target's actual
395
+ lint/build pipeline.
396
+
397
+ **Application source (optional).** ADS checks the design system, not the
398
+ application. When you also edit application code, look for
399
+ `ads-guard.config.json` in the application's root. If it is there, run
400
+ `npx ads-guard` (or `bunx ads-guard`) after your edits and fix every finding:
401
+ use a design-system owner, put a component inside a pattern, or add the missing
402
+ pattern to the design system. Do not add the file to `exclude` and do not add a
403
+ component to `allow` to make a finding go away; those are the project's
404
+ decisions. If the application has no guard and the user wants application code
405
+ kept free of design, suggest `@reqvire-org/ads-guard`
406
+ ([scenarios.md](references/scenarios.md), "The guard"); it is the user's
407
+ choice.
408
+
409
+ Core checks do not replace framework type checking, project rules or interaction
410
+ tests. For visual work, inspect the real rendered UI, including keyboard/focus,
411
+ relevant pointer/touch behavior, every declared theme and reduced motion as
412
+ needed. A screenshot alone does not prove behavior or animation. Validate public
413
+ imports, CSS/asset resolution and local documentation links in the consuming
414
+ application.