@mytechtoday/augment-extensions 3.1.0 → 3.2.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 (273) hide show
  1. package/AGENTS.md +123 -0
  2. package/README.md +981 -32
  3. package/augment-extensions/coding-standards/q/CHANGELOG.md +16 -0
  4. package/augment-extensions/coding-standards/q/README.md +53 -0
  5. package/augment-extensions/coding-standards/q/examples/ArrayAndTupleNamingConventions.qs +27 -0
  6. package/augment-extensions/coding-standards/q/examples/CallableAliasNamingConventions.qs +20 -0
  7. package/augment-extensions/coding-standards/q/examples/CircuitCompositionNamingConventions.qs +24 -0
  8. package/augment-extensions/coding-standards/q/examples/ConstantValueNamingConventions.qs +19 -0
  9. package/augment-extensions/coding-standards/q/examples/EntryPointAttributeNamingConventions.qs +17 -0
  10. package/augment-extensions/coding-standards/q/examples/FunctorApplicationInControlledCircuits.qs +84 -0
  11. package/augment-extensions/coding-standards/q/examples/FunctorSpecializationNamingConventions.qs +29 -0
  12. package/augment-extensions/coding-standards/q/examples/GenericTypeParameterNamingConventions.qs +20 -0
  13. package/augment-extensions/coding-standards/q/examples/HamiltonianOperatorNamingConventions.qs +24 -0
  14. package/augment-extensions/coding-standards/q/examples/MeasurementResultNamingConventions.qs +48 -0
  15. package/augment-extensions/coding-standards/q/examples/NamespaceNamingConventions.qs +30 -0
  16. package/augment-extensions/coding-standards/q/examples/OperationAndFunctionNamingConventions.qs +31 -0
  17. package/augment-extensions/coding-standards/q/examples/OracleCallableNamingConventions.qs +41 -0
  18. package/augment-extensions/coding-standards/q/examples/PauliBasisNamingConventions.qs +42 -0
  19. package/augment-extensions/coding-standards/q/examples/PauliOperatorNamingConventions.qs +24 -0
  20. package/augment-extensions/coding-standards/q/examples/QubitManagementAndTeleportation.qs +94 -0
  21. package/augment-extensions/coding-standards/q/examples/QubitNamingConventions.qs +53 -0
  22. package/augment-extensions/coding-standards/q/examples/QubitRegisterNamingConventions.qs +30 -0
  23. package/augment-extensions/coding-standards/q/examples/StateVectorNamingConventions.qs +23 -0
  24. package/augment-extensions/coding-standards/q/examples/UserDefinedTypeNamingConventions.qs +22 -0
  25. package/augment-extensions/coding-standards/q/examples/VariableAndParameterNamingConventions.qs +26 -0
  26. package/augment-extensions/coding-standards/q/examples/bell-state.qs +21 -0
  27. package/augment-extensions/coding-standards/q/metadata.json +38 -0
  28. package/augment-extensions/coding-standards/q/module.json +29 -0
  29. package/augment-extensions/coding-standards/q/rules/q-error-handling.md +143 -0
  30. package/augment-extensions/coding-standards/q/rules/q-naming-conventions.md +82 -0
  31. package/augment-extensions/coding-standards/q/rules/q-performance-optimization.md +10 -0
  32. package/augment-extensions/coding-standards/q/rules/q-qubit-management.md +10 -0
  33. package/augment-extensions/coding-standards/q/rules/q-security.md +10 -0
  34. package/augment-extensions/coding-standards/q/rules/q-standards.md +127 -0
  35. package/augment-extensions/coding-standards/q/rules/q-testing.md +10 -0
  36. package/augment-extensions/visual-design/CHANGELOG.md +2 -2
  37. package/augment-extensions/visual-design/README.md +31 -8
  38. package/augment-extensions/visual-design/VERSION +1 -0
  39. package/augment-extensions/visual-design/__tests__/README.md +32 -18
  40. package/augment-extensions/visual-design/__tests__/guidance-contract.test.ts +355 -0
  41. package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +23 -5
  42. package/augment-extensions/visual-design/domains/other/dotnet-application.ts +1 -1
  43. package/augment-extensions/visual-design/domains/other/mobile-application.ts +3 -4
  44. package/augment-extensions/visual-design/domains/other/os-application.ts +1 -1
  45. package/augment-extensions/visual-design/domains/other/windows-platform.ts +1 -1
  46. package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +4 -4
  47. package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +10 -10
  48. package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +3 -3
  49. package/augment-extensions/visual-design/examples/README.md +2 -0
  50. package/augment-extensions/visual-design/examples/basic-usage.md +5 -3
  51. package/augment-extensions/visual-design/examples/vendor-comparison.md +2 -2
  52. package/augment-extensions/visual-design/guidelines/coverage-map.md +30 -0
  53. package/augment-extensions/visual-design/guidelines/design-levels.md +211 -0
  54. package/augment-extensions/visual-design/guidelines/index.md +5 -0
  55. package/augment-extensions/visual-design/metadata.json +26 -5
  56. package/augment-extensions/visual-design/module.json +39 -6
  57. package/augment-extensions/visual-design/rules/accessibility-and-color.md +51 -0
  58. package/augment-extensions/visual-design/rules/design-practice.md +55 -0
  59. package/augment-extensions/visual-design/rules/index.md +34 -0
  60. package/augment-extensions/visual-design/rules/platform-guidance.md +47 -0
  61. package/augment-extensions/visual-design/scripts/validate-guidance.cjs +233 -0
  62. package/augment-extensions/visual-design/skills/README.md +11 -0
  63. package/augment-extensions/visual-design/skills/design-brief.md +40 -0
  64. package/augment-extensions/visual-design/skills/design-review.md +38 -0
  65. package/augment-extensions/visual-design/skills/responsive-validation/SKILL.md +94 -0
  66. package/augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs +457 -0
  67. package/augment-extensions/visual-design/style-selector.ts +4 -4
  68. package/augment-extensions/visual-design/types.ts +101 -46
  69. package/augment-extensions/visual-design/visual-design-core.ts +8 -8
  70. package/cli/dist/adapters/banner.d.ts +62 -0
  71. package/cli/dist/adapters/banner.d.ts.map +1 -0
  72. package/cli/dist/adapters/banner.js +105 -0
  73. package/cli/dist/adapters/banner.js.map +1 -0
  74. package/cli/dist/adapters/claude-code.d.ts +13 -0
  75. package/cli/dist/adapters/claude-code.d.ts.map +1 -0
  76. package/cli/dist/adapters/claude-code.js +79 -0
  77. package/cli/dist/adapters/claude-code.js.map +1 -0
  78. package/cli/dist/adapters/copilot.d.ts +17 -0
  79. package/cli/dist/adapters/copilot.d.ts.map +1 -0
  80. package/cli/dist/adapters/copilot.js +81 -0
  81. package/cli/dist/adapters/copilot.js.map +1 -0
  82. package/cli/dist/adapters/cursor.d.ts +16 -0
  83. package/cli/dist/adapters/cursor.d.ts.map +1 -0
  84. package/cli/dist/adapters/cursor.js +99 -0
  85. package/cli/dist/adapters/cursor.js.map +1 -0
  86. package/cli/dist/adapters/index.d.ts +25 -0
  87. package/cli/dist/adapters/index.d.ts.map +1 -0
  88. package/cli/dist/adapters/index.js +59 -0
  89. package/cli/dist/adapters/index.js.map +1 -0
  90. package/cli/dist/adapters/types.d.ts +113 -0
  91. package/cli/dist/adapters/types.d.ts.map +1 -0
  92. package/cli/dist/adapters/types.js +13 -0
  93. package/cli/dist/adapters/types.js.map +1 -0
  94. package/cli/dist/adapters/windsurf.d.ts +14 -0
  95. package/cli/dist/adapters/windsurf.d.ts.map +1 -0
  96. package/cli/dist/adapters/windsurf.js +78 -0
  97. package/cli/dist/adapters/windsurf.js.map +1 -0
  98. package/cli/dist/analysis/index.d.ts +1 -0
  99. package/cli/dist/analysis/index.d.ts.map +1 -1
  100. package/cli/dist/analysis/index.js +1 -0
  101. package/cli/dist/analysis/index.js.map +1 -1
  102. package/cli/dist/analysis/pattern-analyzer.d.ts +6 -0
  103. package/cli/dist/analysis/pattern-analyzer.d.ts.map +1 -0
  104. package/cli/dist/analysis/pattern-analyzer.js +100 -0
  105. package/cli/dist/analysis/pattern-analyzer.js.map +1 -0
  106. package/cli/dist/cli.js +62 -35
  107. package/cli/dist/cli.js.map +1 -1
  108. package/cli/dist/commands/code-analysis.d.ts.map +1 -1
  109. package/cli/dist/commands/code-analysis.js +22 -2
  110. package/cli/dist/commands/code-analysis.js.map +1 -1
  111. package/cli/dist/commands/export.d.ts +81 -0
  112. package/cli/dist/commands/export.d.ts.map +1 -0
  113. package/cli/dist/commands/export.js +334 -0
  114. package/cli/dist/commands/export.js.map +1 -0
  115. package/cli/dist/commands/gui.d.ts +3 -1
  116. package/cli/dist/commands/gui.d.ts.map +1 -1
  117. package/cli/dist/commands/gui.js +263 -22
  118. package/cli/dist/commands/gui.js.map +1 -1
  119. package/cli/dist/commands/init.d.ts +2 -0
  120. package/cli/dist/commands/init.d.ts.map +1 -1
  121. package/cli/dist/commands/init.js +95 -3
  122. package/cli/dist/commands/init.js.map +1 -1
  123. package/cli/dist/commands/lifecycle.d.ts +14 -0
  124. package/cli/dist/commands/lifecycle.d.ts.map +1 -0
  125. package/cli/dist/commands/lifecycle.js +463 -0
  126. package/cli/dist/commands/lifecycle.js.map +1 -0
  127. package/cli/dist/commands/link.d.ts +3 -0
  128. package/cli/dist/commands/link.d.ts.map +1 -1
  129. package/cli/dist/commands/link.js +126 -16
  130. package/cli/dist/commands/link.js.map +1 -1
  131. package/cli/dist/commands/list.js +2 -2
  132. package/cli/dist/commands/list.js.map +1 -1
  133. package/cli/dist/commands/mcp.d.ts +1 -2
  134. package/cli/dist/commands/mcp.d.ts.map +1 -1
  135. package/cli/dist/commands/mcp.js +20 -20
  136. package/cli/dist/commands/mcp.js.map +1 -1
  137. package/cli/dist/commands/module-management.d.ts +9 -0
  138. package/cli/dist/commands/module-management.d.ts.map +1 -0
  139. package/cli/dist/commands/module-management.js +420 -0
  140. package/cli/dist/commands/module-management.js.map +1 -0
  141. package/cli/dist/commands/self-remove.d.ts.map +1 -1
  142. package/cli/dist/commands/self-remove.js +98 -44
  143. package/cli/dist/commands/self-remove.js.map +1 -1
  144. package/cli/dist/commands/show.d.ts +1 -1
  145. package/cli/dist/commands/show.d.ts.map +1 -1
  146. package/cli/dist/commands/show.js +21 -10
  147. package/cli/dist/commands/show.js.map +1 -1
  148. package/cli/dist/commands/showCompleted.d.ts +1 -0
  149. package/cli/dist/commands/showCompleted.d.ts.map +1 -1
  150. package/cli/dist/commands/showCompleted.js +4 -3
  151. package/cli/dist/commands/showCompleted.js.map +1 -1
  152. package/cli/dist/commands/skill.d.ts +7 -1
  153. package/cli/dist/commands/skill.d.ts.map +1 -1
  154. package/cli/dist/commands/skill.js +79 -21
  155. package/cli/dist/commands/skill.js.map +1 -1
  156. package/cli/dist/commands/unlink.d.ts.map +1 -1
  157. package/cli/dist/commands/unlink.js +38 -2
  158. package/cli/dist/commands/unlink.js.map +1 -1
  159. package/cli/dist/commands/update.d.ts.map +1 -1
  160. package/cli/dist/commands/update.js +6 -16
  161. package/cli/dist/commands/update.js.map +1 -1
  162. package/cli/dist/commands/upgrade.d.ts +2 -0
  163. package/cli/dist/commands/upgrade.d.ts.map +1 -1
  164. package/cli/dist/commands/upgrade.js +22 -5
  165. package/cli/dist/commands/upgrade.js.map +1 -1
  166. package/cli/dist/commands/use.d.ts.map +1 -1
  167. package/cli/dist/commands/use.js +2 -68
  168. package/cli/dist/commands/use.js.map +1 -1
  169. package/cli/dist/core/compatibility-checker.d.ts +37 -1
  170. package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
  171. package/cli/dist/core/compatibility-checker.js +133 -12
  172. package/cli/dist/core/compatibility-checker.js.map +1 -1
  173. package/cli/dist/gui/state/navigation-state.d.ts +20 -0
  174. package/cli/dist/gui/state/navigation-state.d.ts.map +1 -0
  175. package/cli/dist/gui/state/navigation-state.js +115 -0
  176. package/cli/dist/gui/state/navigation-state.js.map +1 -0
  177. package/cli/dist/gui/state/selection-state.d.ts +21 -0
  178. package/cli/dist/gui/state/selection-state.d.ts.map +1 -0
  179. package/cli/dist/gui/state/selection-state.js +117 -0
  180. package/cli/dist/gui/state/selection-state.js.map +1 -0
  181. package/cli/dist/lib/export-runner.d.ts +76 -0
  182. package/cli/dist/lib/export-runner.d.ts.map +1 -0
  183. package/cli/dist/lib/export-runner.js +111 -0
  184. package/cli/dist/lib/export-runner.js.map +1 -0
  185. package/cli/dist/lib/mcp-detection.d.ts +40 -0
  186. package/cli/dist/lib/mcp-detection.d.ts.map +1 -0
  187. package/cli/dist/lib/mcp-detection.js +167 -0
  188. package/cli/dist/lib/mcp-detection.js.map +1 -0
  189. package/cli/dist/lib/mirror-coordination.d.ts +57 -0
  190. package/cli/dist/lib/mirror-coordination.d.ts.map +1 -0
  191. package/cli/dist/lib/mirror-coordination.js +151 -0
  192. package/cli/dist/lib/mirror-coordination.js.map +1 -0
  193. package/cli/dist/lib/mirror-runner.d.ts +123 -0
  194. package/cli/dist/lib/mirror-runner.d.ts.map +1 -0
  195. package/cli/dist/lib/mirror-runner.js +579 -0
  196. package/cli/dist/lib/mirror-runner.js.map +1 -0
  197. package/cli/dist/lib/module-resolver.d.ts +65 -0
  198. package/cli/dist/lib/module-resolver.d.ts.map +1 -0
  199. package/cli/dist/lib/module-resolver.js +211 -0
  200. package/cli/dist/lib/module-resolver.js.map +1 -0
  201. package/cli/dist/lib/source-hash.d.ts +62 -0
  202. package/cli/dist/lib/source-hash.d.ts.map +1 -0
  203. package/cli/dist/lib/source-hash.js +99 -0
  204. package/cli/dist/lib/source-hash.js.map +1 -0
  205. package/cli/dist/types/coordination-export.d.ts +33 -0
  206. package/cli/dist/types/coordination-export.d.ts.map +1 -0
  207. package/cli/dist/types/coordination-export.js +28 -0
  208. package/cli/dist/types/coordination-export.js.map +1 -0
  209. package/cli/dist/types/lifecycle.d.ts +81 -0
  210. package/cli/dist/types/lifecycle.d.ts.map +1 -0
  211. package/cli/dist/types/lifecycle.js +3 -0
  212. package/cli/dist/types/lifecycle.js.map +1 -0
  213. package/cli/dist/utils/beads-sync.d.ts +4 -0
  214. package/cli/dist/utils/beads-sync.d.ts.map +1 -1
  215. package/cli/dist/utils/beads-sync.js.map +1 -1
  216. package/cli/dist/utils/catalog-sync.d.ts.map +1 -1
  217. package/cli/dist/utils/catalog-sync.js +41 -8
  218. package/cli/dist/utils/catalog-sync.js.map +1 -1
  219. package/cli/dist/utils/coordination-queries.d.ts +3 -0
  220. package/cli/dist/utils/coordination-queries.d.ts.map +1 -1
  221. package/cli/dist/utils/coordination-queries.js.map +1 -1
  222. package/cli/dist/utils/extensions-config.d.ts +29 -0
  223. package/cli/dist/utils/extensions-config.d.ts.map +1 -0
  224. package/cli/dist/utils/extensions-config.js +151 -0
  225. package/cli/dist/utils/extensions-config.js.map +1 -0
  226. package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
  227. package/cli/dist/utils/extractCommandHelp.js +8 -2
  228. package/cli/dist/utils/extractCommandHelp.js.map +1 -1
  229. package/cli/dist/utils/file-tracking.d.ts +4 -0
  230. package/cli/dist/utils/file-tracking.d.ts.map +1 -1
  231. package/cli/dist/utils/file-tracking.js.map +1 -1
  232. package/cli/dist/utils/inspection-cache.d.ts +8 -0
  233. package/cli/dist/utils/inspection-cache.d.ts.map +1 -1
  234. package/cli/dist/utils/inspection-cache.js +12 -0
  235. package/cli/dist/utils/inspection-cache.js.map +1 -1
  236. package/cli/dist/utils/inspection-handlers.d.ts.map +1 -1
  237. package/cli/dist/utils/inspection-handlers.js +230 -52
  238. package/cli/dist/utils/inspection-handlers.js.map +1 -1
  239. package/cli/dist/utils/install-rules.d.ts +20 -0
  240. package/cli/dist/utils/install-rules.d.ts.map +1 -1
  241. package/cli/dist/utils/install-rules.js +367 -0
  242. package/cli/dist/utils/install-rules.js.map +1 -1
  243. package/cli/dist/utils/interactive-prompt.d.ts +7 -0
  244. package/cli/dist/utils/interactive-prompt.d.ts.map +1 -0
  245. package/cli/dist/utils/interactive-prompt.js +41 -0
  246. package/cli/dist/utils/interactive-prompt.js.map +1 -0
  247. package/cli/dist/utils/lifecycle.d.ts +47 -0
  248. package/cli/dist/utils/lifecycle.d.ts.map +1 -0
  249. package/cli/dist/utils/lifecycle.js +841 -0
  250. package/cli/dist/utils/lifecycle.js.map +1 -0
  251. package/cli/dist/utils/mcp-integration.d.ts +24 -3
  252. package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
  253. package/cli/dist/utils/mcp-integration.js +364 -151
  254. package/cli/dist/utils/mcp-integration.js.map +1 -1
  255. package/cli/dist/utils/module-system.d.ts +5 -0
  256. package/cli/dist/utils/module-system.d.ts.map +1 -1
  257. package/cli/dist/utils/module-system.js +113 -29
  258. package/cli/dist/utils/module-system.js.map +1 -1
  259. package/cli/dist/utils/openspec-sync.d.ts +4 -0
  260. package/cli/dist/utils/openspec-sync.d.ts.map +1 -1
  261. package/cli/dist/utils/openspec-sync.js.map +1 -1
  262. package/cli/dist/utils/plugin-system.js +1 -1
  263. package/cli/dist/utils/plugin-system.js.map +1 -1
  264. package/cli/dist/utils/skill-system.d.ts +11 -0
  265. package/cli/dist/utils/skill-system.d.ts.map +1 -1
  266. package/cli/dist/utils/skill-system.js +101 -3
  267. package/cli/dist/utils/skill-system.js.map +1 -1
  268. package/cli/dist/utils/zip-archive.d.ts +25 -0
  269. package/cli/dist/utils/zip-archive.d.ts.map +1 -0
  270. package/cli/dist/utils/zip-archive.js +287 -0
  271. package/cli/dist/utils/zip-archive.js.map +1 -0
  272. package/modules.md +21 -4
  273. package/package.json +138 -140
@@ -0,0 +1,355 @@
1
+ import * as fs from 'node:fs';
2
+ import * as os from 'node:os';
3
+ import * as path from 'node:path';
4
+ import { calculateModuleCharacterCount, findModule, validateModuleMetadata } from '../../../cli/src/utils/module-system';
5
+ import { ModuleLoader } from '../../../cli/src/core/module-loader';
6
+ import { DEFAULT_VENDOR_PRIORITY } from '../style-selector';
7
+
8
+ const responsiveSweep = require('../skills/responsive-validation/scripts/responsive-sweep.cjs') as {
9
+ ASPECT_RATIOS: Array<{ name: string; value: number }>;
10
+ parseArguments: (argv: string[]) => Record<string, unknown>;
11
+ buildViewportPlan: (options?: Record<string, unknown>) => Array<{
12
+ width: number;
13
+ height: number;
14
+ labels: string[];
15
+ boundary: boolean;
16
+ }>;
17
+ evaluateViewportMetrics: (metrics: Record<string, unknown>) => {
18
+ status: string;
19
+ failures: string[];
20
+ review: string[];
21
+ };
22
+ };
23
+
24
+ const guidanceValidator = require('../scripts/validate-guidance.cjs') as {
25
+ validateGuidanceModule: (moduleRoot: string) => { errors: string[] };
26
+ };
27
+
28
+ const moduleRoot = path.resolve(__dirname, '..');
29
+ const guidance = JSON.parse(fs.readFileSync(path.join(moduleRoot, 'module.json'), 'utf8')).contents.guidance;
30
+
31
+ function makeValidFixture(): string {
32
+ const root = fs.mkdtempSync(path.join(os.tmpdir(), 'visual-design-guidance-'));
33
+ const metadata = {
34
+ name: 'visual-design-fixture',
35
+ version: '1.0.0',
36
+ displayName: 'Visual Design Fixture',
37
+ description: 'A fixture for validating visual design guidance paths.',
38
+ type: 'domain-rules',
39
+ contents: {
40
+ guidance: {
41
+ rules: ['rules/index.md'],
42
+ guidelines: ['guidelines/levels.md'],
43
+ skills: ['skills/review.md'],
44
+ coverageMap: 'guidelines/levels.md',
45
+ responsiveRunner: 'skills/responsive-sweep.cjs',
46
+ validationScript: 'scripts/validate-guidance.cjs'
47
+ }
48
+ }
49
+ };
50
+ fs.writeFileSync(path.join(root, 'module.json'), JSON.stringify(metadata, null, 2));
51
+ fs.writeFileSync(path.join(root, 'metadata.json'), JSON.stringify({
52
+ version: '1.0.0',
53
+ files: { rules: ['index.md'], guidelines: ['levels.md'], skills: ['review.md'] }
54
+ }, null, 2));
55
+ const files: Record<string, string> = {
56
+ 'README.md': 'Fixture module.',
57
+ 'rules/index.md': '[Levels](../guidelines/levels.md#basic-levels)',
58
+ 'guidelines/levels.md': '## Basic Levels\n\nUsable guidance.',
59
+ 'skills/review.md': '[Rules](../rules/index.md)',
60
+ 'skills/responsive-sweep.cjs': 'module.exports = {};\n',
61
+ 'scripts/validate-guidance.cjs': 'module.exports = {};\n'
62
+ };
63
+ for (const [relativePath, content] of Object.entries(files)) {
64
+ const filePath = path.join(root, relativePath);
65
+ fs.mkdirSync(path.dirname(filePath), { recursive: true });
66
+ fs.writeFileSync(filePath, content);
67
+ }
68
+ return root;
69
+ }
70
+
71
+ describe('Visual Design guidance contract', () => {
72
+ let temporaryRoots: string[] = [];
73
+
74
+ afterEach(() => {
75
+ for (const root of temporaryRoots) fs.rmSync(root, { recursive: true, force: true });
76
+ temporaryRoots = [];
77
+ });
78
+
79
+ it('keeps the module discoverable and version-loadable through existing CLI mechanisms', () => {
80
+ const discovered = findModule('visual-design');
81
+ expect(discovered?.fullName).toBe('visual-design');
82
+ expect(discovered?.rules).toEqual(expect.arrayContaining([
83
+ 'index.md',
84
+ 'design-practice.md',
85
+ 'accessibility-and-color.md',
86
+ 'platform-guidance.md'
87
+ ]));
88
+
89
+ const loaded = new ModuleLoader().load(moduleRoot, { version: '1.0.0', useCache: false });
90
+ expect(loaded?.version).toBe('1.0.0');
91
+ expect(loaded?.module.metadata.name).toBe('visual-design');
92
+ });
93
+
94
+ it('keeps vendor selection priority unchanged', () => {
95
+ expect(DEFAULT_VENDOR_PRIORITY).toEqual(['google', 'microsoft', 'amazon']);
96
+ });
97
+
98
+ it('keeps declared core, vendor, and domain file references available', () => {
99
+ const moduleMetadata = JSON.parse(fs.readFileSync(path.join(moduleRoot, 'module.json'), 'utf8'));
100
+ for (const relativePath of moduleMetadata.contents.core) {
101
+ expect(fs.existsSync(path.join(moduleRoot, relativePath))).toBe(true);
102
+ }
103
+ for (const [directory, files] of Object.entries(moduleMetadata.contents.vendors)) {
104
+ for (const relativePath of files as string[]) {
105
+ expect(fs.existsSync(path.join(moduleRoot, 'domains', directory, relativePath))).toBe(true);
106
+ }
107
+ }
108
+ for (const [directory, files] of Object.entries(moduleMetadata.contents.domains)) {
109
+ for (const relativePath of files as string[]) {
110
+ expect(fs.existsSync(path.join(moduleRoot, 'domains', directory, relativePath))).toBe(true);
111
+ }
112
+ }
113
+ });
114
+
115
+ it('declares the guidance paths used by the module', () => {
116
+ for (const field of ['rules', 'guidelines', 'skills']) {
117
+ expect(guidance[field].length).toBeGreaterThan(0);
118
+ for (const relativePath of guidance[field]) {
119
+ expect(fs.existsSync(path.join(moduleRoot, relativePath))).toBe(true);
120
+ }
121
+ }
122
+ expect(fs.existsSync(path.join(moduleRoot, guidance.coverageMap))).toBe(true);
123
+ expect(fs.existsSync(path.join(moduleRoot, guidance.responsiveRunner))).toBe(true);
124
+ expect(fs.existsSync(path.join(moduleRoot, guidance.validationScript))).toBe(true);
125
+ expect(guidance.rules).toContain('rules/index.md');
126
+ expect(guidance.guidelines).toContain('guidelines/coverage-map.md');
127
+ expect(guidance.skills).toEqual(expect.arrayContaining([
128
+ 'skills/design-brief.md',
129
+ 'skills/design-review.md',
130
+ 'skills/responsive-validation/SKILL.md'
131
+ ]));
132
+ });
133
+
134
+ it('maps every required design and platform area to three levels', () => {
135
+ const coverageMap = fs.readFileSync(path.join(moduleRoot, guidance.coverageMap), 'utf8');
136
+ const requiredAreas = [
137
+ 'General design', 'Color', 'Typography', 'Layout', 'UX design', 'UI design', 'Interaction design',
138
+ 'Visual and graphic design', 'Information architecture', 'User research and strategy', 'Product design',
139
+ 'Service design', 'UX writing', 'Accessibility', 'Motion', 'Design systems', 'Web applications and sites',
140
+ 'Mobile applications', 'Desktop software', 'Cross-platform products'
141
+ ];
142
+ for (const area of requiredAreas) {
143
+ const row = coverageMap.split(/\r?\n/).find((line) => line.startsWith('| ' + area + ' |'));
144
+ expect(row).toBeDefined();
145
+ expect((row?.match(/\]\(/g) || []).length).toBe(3);
146
+ }
147
+ });
148
+
149
+ it('keeps sidecar metadata and declared character counts synchronized', () => {
150
+ const moduleMetadata = JSON.parse(fs.readFileSync(path.join(moduleRoot, 'module.json'), 'utf8'));
151
+ const sidecarMetadata = JSON.parse(fs.readFileSync(path.join(moduleRoot, 'metadata.json'), 'utf8'));
152
+ const actualCount = calculateModuleCharacterCount(moduleRoot);
153
+ expect(moduleMetadata.characterCount).toBe(actualCount);
154
+ expect(moduleMetadata.augment.characterCount).toBe(actualCount);
155
+ expect(sidecarMetadata.characterCount).toBe(actualCount);
156
+
157
+ const fixtureRoot = makeValidFixture();
158
+ temporaryRoots.push(fixtureRoot);
159
+ const sidecarPath = path.join(fixtureRoot, 'metadata.json');
160
+ const originalSidecar = fs.readFileSync(sidecarPath, 'utf8');
161
+ const inconsistent = JSON.parse(originalSidecar);
162
+ inconsistent.files.skills = ['missing.md'];
163
+ fs.writeFileSync(sidecarPath, JSON.stringify(inconsistent, null, 2) + '\n');
164
+ expect(guidanceValidator.validateGuidanceModule(fixtureRoot).errors).toContain(
165
+ 'metadata.json files.skills must match module.json contents.guidance.skills.'
166
+ );
167
+ inconsistent.files.skills = ['review.md'];
168
+ inconsistent.characterCount = 1;
169
+ fs.writeFileSync(sidecarPath, JSON.stringify(inconsistent, null, 2) + '\n');
170
+ expect(guidanceValidator.validateGuidanceModule(fixtureRoot).errors).toContain(
171
+ 'metadata.json characterCount does not match the module files.'
172
+ );
173
+ fs.writeFileSync(sidecarPath, originalSidecar);
174
+ });
175
+
176
+ it('validates the checked-in guidance index and local links', () => {
177
+ const result = guidanceValidator.validateGuidanceModule(moduleRoot);
178
+ expect(result.errors).toEqual([]);
179
+ });
180
+
181
+ it('reports missing or malformed module metadata', () => {
182
+ const missing = validateModuleMetadata({ name: 'incomplete' });
183
+ expect(missing.valid).toBe(false);
184
+ expect(missing.errors).toContain('Missing required field: version');
185
+
186
+ const unsupported = validateModuleMetadata({
187
+ name: 'fixture',
188
+ version: '1.0.0',
189
+ displayName: 'Fixture',
190
+ description: 'A metadata validation fixture.',
191
+ type: 'unsupported'
192
+ });
193
+ expect(unsupported.valid).toBe(false);
194
+ expect(unsupported.errors.some((error) => error.includes('Invalid type: unsupported'))).toBe(true);
195
+ });
196
+
197
+ it('reports malformed JSON, invalid guidance configuration, and missing references', () => {
198
+ const root = makeValidFixture();
199
+ temporaryRoots.push(root);
200
+
201
+ const manifestPath = path.join(root, 'module.json');
202
+ const validMetadata = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
203
+ fs.writeFileSync(manifestPath, '{');
204
+ expect(guidanceValidator.validateGuidanceModule(root).errors[0]).toContain('Unable to parse module.json');
205
+
206
+ fs.writeFileSync(manifestPath, JSON.stringify(validMetadata, null, 2));
207
+ const sidecarPath = path.join(root, 'metadata.json');
208
+ const validSidecar = fs.readFileSync(sidecarPath, 'utf8');
209
+ fs.writeFileSync(sidecarPath, '{');
210
+ expect(guidanceValidator.validateGuidanceModule(root).errors.some((error) => error.startsWith('Unable to parse metadata.json:'))).toBe(true);
211
+ fs.writeFileSync(sidecarPath, validSidecar);
212
+
213
+ const metadata = JSON.parse(JSON.stringify(validMetadata));
214
+ metadata.contents.guidance.skills = 'skills/review.md';
215
+ fs.writeFileSync(manifestPath, JSON.stringify(metadata, null, 2));
216
+ expect(guidanceValidator.validateGuidanceModule(root).errors).toContain(
217
+ 'contents.guidance.skills must be a non-empty array.'
218
+ );
219
+
220
+ metadata.contents.guidance.skills = ['skills/missing.md'];
221
+ fs.writeFileSync(manifestPath, JSON.stringify(metadata, null, 2));
222
+ expect(guidanceValidator.validateGuidanceModule(root).errors).toContain(
223
+ 'Referenced file for contents.guidance.skills[0] was not found: skills/missing.md'
224
+ );
225
+
226
+ fs.rmSync(sidecarPath);
227
+ expect(guidanceValidator.validateGuidanceModule(root).errors).toContain('metadata.json is missing.');
228
+ });
229
+
230
+ it('rejects a missing required validation script reference', () => {
231
+ const root = makeValidFixture();
232
+ temporaryRoots.push(root);
233
+ const manifestPath = path.join(root, 'module.json');
234
+ const metadata = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
235
+ delete metadata.contents.guidance.validationScript;
236
+ fs.writeFileSync(manifestPath, JSON.stringify(metadata, null, 2));
237
+ expect(guidanceValidator.validateGuidanceModule(root).errors).toContain(
238
+ 'contents.guidance.validationScript must be a non-empty module-relative path.'
239
+ );
240
+ });
241
+
242
+ it('reports links to missing files and headings without passing the fixture', () => {
243
+ const root = makeValidFixture();
244
+ temporaryRoots.push(root);
245
+ fs.writeFileSync(path.join(root, 'skills/review.md'), '[Missing file](../missing.md)');
246
+ const missingFile = guidanceValidator.validateGuidanceModule(root);
247
+ expect(missingFile.errors.some((error) => error.includes('links to a missing file'))).toBe(true);
248
+
249
+ fs.writeFileSync(path.join(root, 'skills/review.md'), '[Missing heading](../guidelines/levels.md#not-a-heading)');
250
+ const missingHeading = guidanceValidator.validateGuidanceModule(root);
251
+ expect(missingHeading.errors.some((error) => error.includes('links to a missing heading'))).toBe(true);
252
+ });
253
+ });
254
+
255
+ describe('Responsive viewport plan and audit policy', () => {
256
+ const plan = responsiveSweep.buildViewportPlan({
257
+ step: 128,
258
+ widthBreakpoints: [768],
259
+ heightBreakpoints: [600]
260
+ });
261
+
262
+ it('covers minimum, maximum, portrait, landscape, 4K, and 8K CSS viewport cases', () => {
263
+ expect(plan.some((item) => item.width === 256 && item.height === 256)).toBe(true);
264
+ expect(plan.some((item) => item.width === 7680 && item.height === 256)).toBe(true);
265
+ expect(plan.some((item) => item.width === 256 && item.height === 7680)).toBe(true);
266
+ expect(plan.some((item) => item.width === 3840 && item.height === 2160)).toBe(true);
267
+ expect(plan.some((item) => item.width === 2160 && item.height === 3840)).toBe(true);
268
+ expect(plan.some((item) => item.width === 7680 && item.height === 4320)).toBe(true);
269
+ expect(plan.some((item) => item.width === 4320 && item.height === 7680)).toBe(true);
270
+ expect(responsiveSweep.ASPECT_RATIOS.map((ratio) => ratio.name)).toEqual(['1:1', '4:3', '3:2', '16:9', '21:9', '32:9']);
271
+ expect(plan.some((item) => item.labels.some((label) => label.includes('32:9')))).toBe(true);
272
+ });
273
+
274
+ it('covers every 128-pixel long-edge step from 256 through 7680', () => {
275
+ for (let longEdge = 256; longEdge <= 7680; longEdge += 128) {
276
+ expect(plan.some((item) => item.labels.some((label) => label.includes('long edge ' + longEdge)))).toBe(true);
277
+ }
278
+ expect(plan.some((item) => item.labels.some((label) => label.includes('long edge 7680')))).toBe(true);
279
+ });
280
+
281
+ it('validates runner options and keeps the broad sweep plan dry-run compatible', () => {
282
+ expect(responsiveSweep.parseArguments(['--dry-run', '--width-breakpoints', '768,1024']).widthBreakpoints).toEqual([768, 1024]);
283
+ expect(() => responsiveSweep.parseArguments(['--width-breakpoints', '768,wide', '--dry-run'])).toThrow('positive integer CSS pixels');
284
+ expect(() => responsiveSweep.parseArguments([])).toThrow('--url is required');
285
+ });
286
+
287
+ it('tests the exact width and height breakpoints and adjacent CSS pixels', () => {
288
+ for (const width of [767, 768, 769]) {
289
+ expect(plan.some((item) => item.width === width && item.labels.some((label) => label.includes('width breakpoint 768')))).toBe(true);
290
+ }
291
+ for (const height of [599, 600, 601]) {
292
+ expect(plan.some((item) => item.height === height && item.labels.some((label) => label.includes('height breakpoint 600')))).toBe(true);
293
+ }
294
+ });
295
+
296
+ it('passes conforming metrics and fails measured horizontal overflow or broken images', () => {
297
+ expect(responsiveSweep.evaluateViewportMetrics({
298
+ horizontalOverflowPx: 0,
299
+ brokenImages: [],
300
+ clippedControls: [],
301
+ clippedText: [],
302
+ overlappingControls: []
303
+ }).status).toBe('pass');
304
+
305
+ const overflow = responsiveSweep.evaluateViewportMetrics({ horizontalOverflowPx: 2, brokenImages: [] });
306
+ expect(overflow.status).toBe('fail');
307
+ expect(overflow.failures[0]).toContain('Horizontal overflow is 2');
308
+
309
+ const brokenImage = responsiveSweep.evaluateViewportMetrics({
310
+ horizontalOverflowPx: 0,
311
+ brokenImages: ['broken.png']
312
+ });
313
+ expect(brokenImage.status).toBe('fail');
314
+ });
315
+
316
+ it('keeps clipped or overlapping controls in review instead of reporting a false pass', () => {
317
+ const result = responsiveSweep.evaluateViewportMetrics({
318
+ horizontalOverflowPx: 0,
319
+ brokenImages: [],
320
+ clippedControls: ['button: Save'],
321
+ clippedText: [],
322
+ overlappingControls: ['button: Save overlaps button: Cancel']
323
+ });
324
+ expect(result.status).toBe('needs-review');
325
+ expect(result.review.length).toBeGreaterThan(0);
326
+ });
327
+
328
+ it('flags clipped long text, small touch targets, limited overlap scans, and missing focus evidence for review', () => {
329
+ const result = responsiveSweep.evaluateViewportMetrics({
330
+ horizontalOverflowPx: 0,
331
+ brokenImages: [],
332
+ clippedText: ['button: localized action'],
333
+ smallTouchTargets: ['button: Save (20x20)'],
334
+ overlapAuditLimited: true,
335
+ focusIndicatorCandidates: ['button: Save'],
336
+ focusUnavailable: true
337
+ });
338
+ expect(result.status).toBe('needs-review');
339
+ expect(result.review.join(' ')).toContain('text element');
340
+ expect(result.review.join(' ')).toContain('touch target');
341
+ expect(result.review.join(' ')).toContain('sample');
342
+ expect(result.review.join(' ')).toContain('Keyboard focus');
343
+ });
344
+
345
+ it('does not treat a 200 percent text-size overflow as a pass', () => {
346
+ const largeText = responsiveSweep.evaluateViewportMetrics({
347
+ horizontalOverflowPx: 12,
348
+ clippedText: ['heading: Expanded localized content'],
349
+ brokenImages: []
350
+ });
351
+ expect(largeText.status).toBe('fail');
352
+ expect(largeText.failures[0]).toContain('12 CSS pixels');
353
+ expect(largeText.review[0]).toContain('text element');
354
+ });
355
+ });
@@ -30,29 +30,35 @@ describe('Vendor Styles', () => {
30
30
  expect(GOOGLE_MODERN.colorPalette).toBeDefined();
31
31
  expect(GOOGLE_MODERN.colorPalette.primary).toBeDefined();
32
32
  expect(GOOGLE_MODERN.colorPalette.primary.hex).toBe('#6750A4');
33
+ expect(GOOGLE_MODERN.colorPalette.semantic).toBeUndefined();
34
+ expect(GOOGLE_MODERN.colorPalette.accessibility).toBeUndefined();
33
35
  });
34
36
 
35
37
  it('should have typography system', () => {
36
38
  expect(GOOGLE_MODERN.typography).toBeDefined();
37
39
  expect(GOOGLE_MODERN.typography.fontFamilies).toBeDefined();
38
- expect(GOOGLE_MODERN.typography.hierarchy).toBeDefined();
40
+ expect(GOOGLE_MODERN.typography.typeScale).toBeDefined();
39
41
  });
40
42
 
41
43
  it('should have layout system', () => {
42
44
  expect(GOOGLE_MODERN.layout).toBeDefined();
43
45
  expect(GOOGLE_MODERN.layout.grid).toBeDefined();
44
46
  expect(GOOGLE_MODERN.layout.spacing).toBeDefined();
47
+ expect(GOOGLE_MODERN.layout.grid.breakpoints).toBeDefined();
48
+ expect(GOOGLE_MODERN.layout.containerWidths).toBeDefined();
45
49
  });
46
50
 
47
51
  it('should have motion system', () => {
48
52
  expect(GOOGLE_MODERN.motion).toBeDefined();
49
53
  expect(GOOGLE_MODERN.motion.durations).toBeDefined();
50
54
  expect(GOOGLE_MODERN.motion.easings).toBeDefined();
55
+ expect(GOOGLE_MODERN.motion.patterns).toBeDefined();
51
56
  });
52
57
 
53
58
  it('should have elevation system', () => {
54
59
  expect(GOOGLE_MODERN.elevation).toBeDefined();
55
60
  expect(GOOGLE_MODERN.elevation.levels).toBeDefined();
61
+ expect(GOOGLE_MODERN.elevation.levels).toHaveProperty('level0');
56
62
  });
57
63
 
58
64
  it('should have component library', () => {
@@ -81,6 +87,8 @@ describe('Vendor Styles', () => {
81
87
  expect(MICROSOFT_FLUENT.colorPalette).toBeDefined();
82
88
  expect(MICROSOFT_FLUENT.colorPalette.primary).toBeDefined();
83
89
  expect(MICROSOFT_FLUENT.colorPalette.primary.hex).toBe('#0078D4');
90
+ expect(MICROSOFT_FLUENT.colorPalette.semantic).toBeDefined();
91
+ expect(MICROSOFT_FLUENT.colorPalette.accessibility).toBeDefined();
84
92
  });
85
93
 
86
94
  it('should have typography system', () => {
@@ -93,17 +101,21 @@ describe('Vendor Styles', () => {
93
101
  expect(MICROSOFT_FLUENT.layout).toBeDefined();
94
102
  expect(MICROSOFT_FLUENT.layout.grid).toBeDefined();
95
103
  expect(MICROSOFT_FLUENT.layout.spacing).toBeDefined();
104
+ expect(MICROSOFT_FLUENT.layout.breakpoints).toBeDefined();
105
+ expect(MICROSOFT_FLUENT.layout.containers).toBeDefined();
96
106
  });
97
107
 
98
108
  it('should have motion system', () => {
99
109
  expect(MICROSOFT_FLUENT.motion).toBeDefined();
100
110
  expect(MICROSOFT_FLUENT.motion.durations).toBeDefined();
101
111
  expect(MICROSOFT_FLUENT.motion.easings).toBeDefined();
112
+ expect(MICROSOFT_FLUENT.motion.animations).toBeDefined();
102
113
  });
103
114
 
104
115
  it('should have elevation system', () => {
105
116
  expect(MICROSOFT_FLUENT.elevation).toBeDefined();
106
117
  expect(MICROSOFT_FLUENT.elevation.levels).toBeDefined();
118
+ expect(Array.isArray(MICROSOFT_FLUENT.elevation.levels)).toBe(true);
107
119
  });
108
120
 
109
121
  it('should have component library', () => {
@@ -132,6 +144,8 @@ describe('Vendor Styles', () => {
132
144
  expect(AMAZON_CLOUDSCAPE.colorPalette).toBeDefined();
133
145
  expect(AMAZON_CLOUDSCAPE.colorPalette.primary).toBeDefined();
134
146
  expect(AMAZON_CLOUDSCAPE.colorPalette.primary.hex).toBe('#0972D3');
147
+ expect(AMAZON_CLOUDSCAPE.colorPalette.semantic).toBeDefined();
148
+ expect(AMAZON_CLOUDSCAPE.colorPalette.accessibility).toBeDefined();
135
149
  });
136
150
 
137
151
  it('should have typography system', () => {
@@ -144,17 +158,21 @@ describe('Vendor Styles', () => {
144
158
  expect(AMAZON_CLOUDSCAPE.layout).toBeDefined();
145
159
  expect(AMAZON_CLOUDSCAPE.layout.grid).toBeDefined();
146
160
  expect(AMAZON_CLOUDSCAPE.layout.spacing).toBeDefined();
161
+ expect(AMAZON_CLOUDSCAPE.layout.breakpoints).toBeDefined();
162
+ expect(AMAZON_CLOUDSCAPE.layout.containers).toBeDefined();
147
163
  });
148
164
 
149
165
  it('should have motion system', () => {
150
166
  expect(AMAZON_CLOUDSCAPE.motion).toBeDefined();
151
167
  expect(AMAZON_CLOUDSCAPE.motion.durations).toBeDefined();
152
168
  expect(AMAZON_CLOUDSCAPE.motion.easings).toBeDefined();
169
+ expect(AMAZON_CLOUDSCAPE.motion.animations).toBeDefined();
153
170
  });
154
171
 
155
172
  it('should have elevation system', () => {
156
173
  expect(AMAZON_CLOUDSCAPE.elevation).toBeDefined();
157
174
  expect(AMAZON_CLOUDSCAPE.elevation.levels).toBeDefined();
175
+ expect(Array.isArray(AMAZON_CLOUDSCAPE.elevation.levels)).toBe(true);
158
176
  });
159
177
 
160
178
  it('should have component library', () => {
@@ -187,8 +205,8 @@ describe('Vendor Styles', () => {
187
205
  expect(uniqueIds.size).toBe(vendors.length);
188
206
  });
189
207
 
190
- it('all vendors should have accessibility standards', () => {
191
- vendors.forEach(vendor => {
208
+ it('Microsoft Fluent and Amazon Cloudscape should keep palette accessibility standards', () => {
209
+ [MICROSOFT_FLUENT, AMAZON_CLOUDSCAPE].forEach(vendor => {
192
210
  expect(vendor.colorPalette.accessibility).toBeDefined();
193
211
  expect(vendor.colorPalette.accessibility?.wcagLevel).toBeDefined();
194
212
  });
@@ -198,14 +216,14 @@ describe('Vendor Styles', () => {
198
216
  vendors.forEach(vendor => {
199
217
  expect(vendor.layout.grid).toBeDefined();
200
218
  expect(vendor.layout.grid.columns).toBeGreaterThan(0);
201
- expect(vendor.layout.breakpoints).toBeDefined();
219
+ expect(vendor.layout.grid.gutter).toBeDefined();
202
220
  });
203
221
  });
204
222
 
205
223
  it('all vendors should have spacing systems', () => {
206
224
  vendors.forEach(vendor => {
207
225
  expect(vendor.layout.spacing).toBeDefined();
208
- expect(vendor.layout.spacing.base).toBeGreaterThan(0);
226
+ expect(vendor.layout.spacing.base ?? vendor.layout.spacing.unit).toBeGreaterThan(0);
209
227
  expect(vendor.layout.spacing.scale).toBeDefined();
210
228
  });
211
229
  });
@@ -40,7 +40,7 @@ const DOTNET_COLORS: ColorPalette = {
40
40
  targetContrast: 7,
41
41
  colorBlindSafe: true,
42
42
  guidelines: [
43
- 'Follow WCAG 2.1 AA standards',
43
+ 'Follow the product accessibility target and platform accessibility guidance',
44
44
  'Support Windows high contrast mode',
45
45
  'Test with .NET accessibility tools',
46
46
  'Ensure keyboard navigation'
@@ -42,8 +42,8 @@ const MOBILE_COLORS: ColorPalette = {
42
42
  guidelines: [
43
43
  'Support iOS Dynamic Type',
44
44
  'Support Android Material You theming',
45
- 'Ensure 44x44pt touch targets (iOS)',
46
- 'Ensure 48x48dp touch targets (Android)',
45
+ 'Follow current Apple-recommended control sizes for iOS and iPadOS',
46
+ 'Follow Android accessibility guidance for touch target size and spacing',
47
47
  'Test with accessibility scanners'
48
48
  ]
49
49
  }
@@ -104,8 +104,7 @@ const MOBILE_LAYOUT: LayoutSystem = {
104
104
  scale: [0, 8, 16, 24, 32, 40, 48, 64],
105
105
  guidelines: [
106
106
  'Use 8px base unit for spacing',
107
- 'Maintain 44x44pt touch targets (iOS)',
108
- 'Maintain 48x48dp touch targets (Android)',
107
+ 'Use platform-recommended touch target sizes and spacing',
109
108
  'Use safe area insets for notched devices'
110
109
  ]
111
110
  },
@@ -104,7 +104,7 @@ const OS_APP_LAYOUT: LayoutSystem = {
104
104
  guidelines: [
105
105
  'Use 4px base unit for consistency',
106
106
  'Follow platform spacing conventions',
107
- 'Maintain touch-friendly targets (44x44px minimum)',
107
+ 'Use target sizes suited to the operating system and supported input modes',
108
108
  'Use consistent padding in panels'
109
109
  ]
110
110
  },
@@ -104,7 +104,7 @@ const WINDOWS_LAYOUT: LayoutSystem = {
104
104
  guidelines: [
105
105
  'Use 4px base unit for spacing',
106
106
  'Follow WinUI 3 spacing guidelines',
107
- 'Maintain 44x44px touch targets',
107
+ 'Follow current Windows touch guidance for supported input modes',
108
108
  'Use consistent padding in controls'
109
109
  ]
110
110
  },
@@ -9,7 +9,7 @@
9
9
  * Key characteristics:
10
10
  * - Enterprise-focused: Optimized for complex, data-rich applications
11
11
  * - Component-heavy: Extensive library of pre-built UI components
12
- * - Accessibility-first: WCAG 2.1 Level AA compliance built-in
12
+ * - Accessibility patterns are included; verify the application against its current target
13
13
  * - Responsive: Mobile-first approach with adaptive layouts
14
14
  * - Dark mode: Full support for light and dark themes
15
15
  *
@@ -391,7 +391,7 @@ export const AMAZON_CLOUDSCAPE: VendorStyle = {
391
391
  'Component-heavy architecture with extensive pre-built UI library',
392
392
  'Data-dense interfaces optimized for dashboards and analytics',
393
393
  'Amazon Ember typography for brand consistency',
394
- 'WCAG 2.1 Level AA accessibility compliance built-in',
394
+ 'Accessibility patterns require verification against the product target',
395
395
  'Full dark mode support with adaptive color tokens',
396
396
  'Responsive design with mobile-first approach',
397
397
  'Subtle animations and transitions for professional feel',
@@ -457,7 +457,7 @@ export const AMAZON_CLOUDSCAPE: VendorStyle = {
457
457
  /**
458
458
  * Accessibility Guidelines
459
459
  *
460
- * Cloudscape enforces WCAG 2.1 Level AA compliance:
460
+ * Verify the rendered application against its current accessibility target:
461
461
  *
462
462
  * - Color contrast: Minimum 4.5:1 for text, 3:1 for UI components
463
463
  * - Keyboard navigation: All interactive elements accessible via keyboard
@@ -465,7 +465,7 @@ export const AMAZON_CLOUDSCAPE: VendorStyle = {
465
465
  * - Focus indicators: Clear visual focus states
466
466
  * - Responsive text: Supports browser zoom up to 200%
467
467
  * - Motion preferences: Respects prefers-reduced-motion
468
- * - Touch targets: Minimum 44x44px for mobile
468
+ * - Touch targets: Follow the applicable platform guidance and input mode
469
469
  */
470
470
 
471
471
  /**
@@ -30,7 +30,7 @@ const GOOGLE_MODERN_COLORS: ColorPalette = {
30
30
  hex: '#6750A4',
31
31
  rgb: 'rgb(103, 80, 164)',
32
32
  usage: 'Primary brand color, key actions, important UI elements',
33
- accessibility: 'WCAG AA compliant with white text',
33
+ accessibility: 'Verify white-text contrast for the actual state against the product target',
34
34
  tones: {
35
35
  0: '#000000',
36
36
  10: '#21005D',
@@ -52,7 +52,7 @@ const GOOGLE_MODERN_COLORS: ColorPalette = {
52
52
  hex: '#625B71',
53
53
  rgb: 'rgb(98, 91, 113)',
54
54
  usage: 'Secondary actions, less prominent UI elements',
55
- accessibility: 'WCAG AA compliant',
55
+ accessibility: 'Verify contrast for the actual state against the product target',
56
56
  tones: {
57
57
  0: '#000000',
58
58
  10: '#1D192B',
@@ -74,7 +74,7 @@ const GOOGLE_MODERN_COLORS: ColorPalette = {
74
74
  hex: '#7D5260',
75
75
  rgb: 'rgb(125, 82, 96)',
76
76
  usage: 'Accent color, highlights, contrasting elements',
77
- accessibility: 'WCAG AA compliant',
77
+ accessibility: 'Verify contrast for the actual state against the product target',
78
78
  tones: {
79
79
  0: '#000000',
80
80
  10: '#31111D',
@@ -96,21 +96,21 @@ const GOOGLE_MODERN_COLORS: ColorPalette = {
96
96
  hex: '#B3261E',
97
97
  rgb: 'rgb(179, 38, 30)',
98
98
  usage: 'Error states, destructive actions, warnings',
99
- accessibility: 'WCAG AA compliant with white text'
99
+ accessibility: 'Verify white-text contrast for the actual state against the product target'
100
100
  },
101
101
  neutral: {
102
102
  name: 'Neutral',
103
103
  hex: '#79747E',
104
104
  rgb: 'rgb(121, 116, 126)',
105
105
  usage: 'Backgrounds, surfaces, outlines',
106
- accessibility: 'WCAG AA compliant'
106
+ accessibility: 'Verify contrast for the actual state against the product target'
107
107
  },
108
108
  neutralVariant: {
109
109
  name: 'Neutral Variant',
110
110
  hex: '#79747E',
111
111
  rgb: 'rgb(121, 116, 126)',
112
112
  usage: 'Medium emphasis backgrounds, subtle outlines',
113
- accessibility: 'WCAG AA compliant'
113
+ accessibility: 'Verify contrast for the actual state against the product target'
114
114
  }
115
115
  };
116
116
 
@@ -532,7 +532,7 @@ export const GOOGLE_MODERN: VendorStyle = {
532
532
  'Dynamic color theming with tonal palettes',
533
533
  'Rounded corners (8px-24px radius)',
534
534
  'Springy, expressive motion with emphasized easing',
535
- 'High accessibility standards (WCAG 2.1 AA+)',
535
+ 'Accessibility patterns require verification against the product target',
536
536
  'Personalized and adaptive design',
537
537
  'Subtle elevation with layered shadows',
538
538
  'Google Sans and Roboto typography',
@@ -562,7 +562,7 @@ export const GOOGLE_MODERN: VendorStyle = {
562
562
  * - Use dynamic color system with tonal palettes
563
563
  * - Apply primary color for key actions and branding
564
564
  * - Use secondary and tertiary for supporting elements
565
- * - Ensure WCAG AA compliance for all color combinations
565
+ * - Verify each used foreground and background pair against the product target
566
566
  * - Support both light and dark themes
567
567
  *
568
568
  * 2. TYPOGRAPHY
@@ -597,12 +597,12 @@ export const GOOGLE_MODERN: VendorStyle = {
597
597
  * - Follow accessibility guidelines
598
598
  *
599
599
  * 7. ACCESSIBILITY
600
- * - Ensure WCAG 2.1 AA compliance minimum
600
+ * - Verify the implementation against the applicable current accessibility target
601
601
  * - Provide sufficient color contrast
602
602
  * - Support keyboard navigation
603
603
  * - Include ARIA labels and roles
604
604
  * - Provide reduced motion alternatives
605
- * - Ensure touch targets are at least 48x48px
605
+ * - Follow target-size guidance for each supported platform and input mode
606
606
  *
607
607
  * REFERENCES:
608
608
  * - Material Design 3: https://m3.material.io/