oh-my-opencode 5.1.69 → 5.1.71

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 (1702) hide show
  1. package/.agents/skills/codex-qa/scripts/lib/app-server-client.mjs +86 -69
  2. package/.agents/skills/codex-qa/scripts/lib/app-server-client.test.js +14 -14
  3. package/.agents/skills/codex-qa/scripts/lib/mock-model.mjs +17 -17
  4. package/.agents/skills/opencode-qa/scripts/lib/fake-openai-events.mjs +1 -2
  5. package/.agents/skills/opencode-qa/scripts/lib/fake-openai-server.mjs +33 -15
  6. package/.agents/skills/senpi-qa/scripts/resolve-evidence-dir.test.mjs +6 -10
  7. package/bin/knip.workspace.jsonc +11 -0
  8. package/bin/oh-my-opencode.js +83 -83
  9. package/bin/oh-my-opencode.test.ts +131 -114
  10. package/bin/platform.d.ts +14 -14
  11. package/bin/platform.js +32 -28
  12. package/bin/platform.test.ts +120 -146
  13. package/bin/version-mismatch.js +4 -4
  14. package/bin/version-mismatch.test.ts +52 -40
  15. package/dist/agents/dynamic-agent-prompt-builder.d.ts +1 -1
  16. package/dist/agents/prometheus/index.d.ts +1 -1
  17. package/dist/agents/sisyphus-junior/index.d.ts +1 -1
  18. package/dist/cli/cli-program.d.ts +3 -0
  19. package/dist/cli/config-manager.d.ts +2 -2
  20. package/dist/cli/index.js +4170 -728
  21. package/dist/cli/install-native/index.d.ts +1 -1
  22. package/dist/cli/service-auth/accounts-gate.d.ts +3 -3
  23. package/dist/cli/service-auth/cli-service-auth-state.d.ts +4 -0
  24. package/dist/cli/service-auth/closed-device-login.d.ts +10 -0
  25. package/dist/cli/service-auth/commands.d.ts +9 -2
  26. package/dist/cli/service-auth/device-flow.d.ts +2 -0
  27. package/dist/cli/service-auth/index.d.ts +1 -1
  28. package/dist/cli/service-auth/keychain-helper/fake-keychain.test-support.d.ts +2 -1
  29. package/dist/cli/service-auth/loopback.d.ts +2 -0
  30. package/dist/cli/service-auth/machine-device.d.ts +17 -0
  31. package/dist/cli/service-auth/machine-digest.d.ts +6 -0
  32. package/dist/cli/service-auth/protocol-request.d.ts +1 -0
  33. package/dist/cli/service-auth/protocol.d.ts +4 -4
  34. package/dist/cli/service-auth/session.d.ts +20 -1
  35. package/dist/cli-node/index.js +4170 -728
  36. package/dist/config/index.d.ts +1 -1
  37. package/dist/config-migration/index.d.ts +4 -4
  38. package/dist/features/background-agent/index.d.ts +1 -1
  39. package/dist/features/btw-side/context-injector.d.ts +1 -1
  40. package/dist/features/btw-side/index.d.ts +1 -1
  41. package/dist/features/context-injector/index.d.ts +1 -1
  42. package/dist/features/hook-message-injector/injector.d.ts +1 -1
  43. package/dist/features/monitor/output-injector.d.ts +1 -0
  44. package/dist/features/team-mode/team-runtime/resolve-member-dependencies.d.ts +6 -3
  45. package/dist/features/team-mode/tools/index.d.ts +1 -1
  46. package/dist/features/tmux-subagent/decision-engine.d.ts +1 -1
  47. package/dist/features/tool-metadata-store/index.d.ts +1 -1
  48. package/dist/hooks/auto-slash-command/hook.d.ts +1 -1
  49. package/dist/hooks/auto-update-checker/index.d.ts +1 -1
  50. package/dist/hooks/edit-error-recovery/index.d.ts +1 -1
  51. package/dist/hooks/index.d.ts +4 -4
  52. package/dist/hooks/keyword-detector/ultrawork/index.d.ts +2 -2
  53. package/dist/hooks/legacy-plugin-toast/plugin-entry-migrator.d.ts +2 -1
  54. package/dist/hooks/rules-injector/injector.d.ts +2 -2
  55. package/dist/index.js +2465 -2146
  56. package/dist/locales/en.d.ts +1 -1
  57. package/dist/shared/index.d.ts +2 -2
  58. package/dist/shared/migration.d.ts +2 -2
  59. package/dist/shared/model-capabilities-cache.d.ts +1 -1
  60. package/dist/shared/model-error-classifier.d.ts +1 -1
  61. package/dist/shared/model-requirements.d.ts +1 -1
  62. package/dist/shared/model-resolver.d.ts +1 -1
  63. package/dist/shared/opencode-config-dir.d.ts +1 -1
  64. package/dist/shared/prompt-async-gate.d.ts +1 -1
  65. package/dist/skills/ast-grep/references/recipes.md +1 -1
  66. package/dist/skills/ast-grep/tests/smoke.ps1 +1 -1
  67. package/dist/skills/ast-grep/tests/smoke.sh +1 -1
  68. package/dist/skills/browser/runtime/omowright/index.js +16 -16
  69. package/dist/skills/browser/runtime/omowright/manifest.json +5 -5
  70. package/dist/skills/browser/runtime/omowright/page-bundle.js +14 -4
  71. package/dist/skills/browser/scripts/browser-doctor-report.mjs +36 -9
  72. package/dist/skills/browser/scripts/browser-doctor.mjs +24 -7
  73. package/dist/skills/browser/scripts/browser-engine-guard.mjs +2 -1
  74. package/dist/skills/browser/scripts/browser-install.mjs +40 -8
  75. package/dist/skills/debugging/references/scripts/dap.mjs +280 -170
  76. package/dist/skills/debugging/references/scripts/dap.test.ts +83 -55
  77. package/dist/skills/debugging/references/scripts/fixture-adapter.mjs +104 -42
  78. package/dist/skills/frontend/scripts/detect/cli.ts +67 -50
  79. package/dist/skills/frontend/scripts/detect/config.test.ts +23 -19
  80. package/dist/skills/frontend/scripts/detect/config.ts +41 -38
  81. package/dist/skills/frontend/scripts/detect/core/color.test.ts +19 -19
  82. package/dist/skills/frontend/scripts/detect/core/color.ts +109 -94
  83. package/dist/skills/frontend/scripts/detect/core/page.ts +43 -42
  84. package/dist/skills/frontend/scripts/detect/core/shadow.ts +38 -29
  85. package/dist/skills/frontend/scripts/detect/core/source.ts +25 -20
  86. package/dist/skills/frontend/scripts/detect/detect.ts +63 -45
  87. package/dist/skills/frontend/scripts/detect/lint.test.ts +24 -16
  88. package/dist/skills/frontend/scripts/detect/lint.ts +78 -69
  89. package/dist/skills/frontend/scripts/detect/render/probe-placement.test.ts +35 -11
  90. package/dist/skills/frontend/scripts/detect/render/probe-placement.ts +36 -32
  91. package/dist/skills/frontend/scripts/detect/render/renderer.ts +14 -13
  92. package/dist/skills/frontend/scripts/detect/render/webview.ts +53 -50
  93. package/dist/skills/frontend/scripts/detect/report.ts +20 -18
  94. package/dist/skills/frontend/scripts/detect/rule.ts +21 -21
  95. package/dist/skills/frontend/scripts/detect/rules/color/ai-color-palette.test.ts +84 -53
  96. package/dist/skills/frontend/scripts/detect/rules/color/ai-color-palette.ts +144 -63
  97. package/dist/skills/frontend/scripts/detect/rules/color/cream-palette.test.ts +27 -15
  98. package/dist/skills/frontend/scripts/detect/rules/color/cream-palette.ts +41 -27
  99. package/dist/skills/frontend/scripts/detect/rules/color/dark-glow.test.ts +57 -32
  100. package/dist/skills/frontend/scripts/detect/rules/color/dark-glow.ts +59 -34
  101. package/dist/skills/frontend/scripts/detect/rules/color/design-system-color.test.ts +25 -17
  102. package/dist/skills/frontend/scripts/detect/rules/color/design-system-color.ts +37 -28
  103. package/dist/skills/frontend/scripts/detect/rules/color/gradient-text.test.ts +63 -15
  104. package/dist/skills/frontend/scripts/detect/rules/color/gradient-text.ts +68 -45
  105. package/dist/skills/frontend/scripts/detect/rules/color/gray-on-color.test.ts +49 -24
  106. package/dist/skills/frontend/scripts/detect/rules/color/gray-on-color.ts +34 -25
  107. package/dist/skills/frontend/scripts/detect/rules/color/index.ts +9 -2
  108. package/dist/skills/frontend/scripts/detect/rules/color/low-contrast.test.ts +419 -161
  109. package/dist/skills/frontend/scripts/detect/rules/color/low-contrast.ts +106 -43
  110. package/dist/skills/frontend/scripts/detect/rules/color/placeholder-contrast.test.ts +136 -45
  111. package/dist/skills/frontend/scripts/detect/rules/color/radial-halo.test.ts +42 -28
  112. package/dist/skills/frontend/scripts/detect/rules/color/radial-halo.ts +48 -23
  113. package/dist/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.test.ts +45 -18
  114. package/dist/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.ts +49 -26
  115. package/dist/skills/frontend/scripts/detect/rules/color/support/animation-opacity.ts +90 -66
  116. package/dist/skills/frontend/scripts/detect/rules/color/support/color-path.ts +43 -6
  117. package/dist/skills/frontend/scripts/detect/rules/color/support/contrast-pairs.ts +75 -38
  118. package/dist/skills/frontend/scripts/detect/rules/color/support/contrast-role.ts +142 -59
  119. package/dist/skills/frontend/scripts/detect/rules/color/support/glow-forms.ts +93 -44
  120. package/dist/skills/frontend/scripts/detect/rules/color/support/gradient-samples.ts +115 -114
  121. package/dist/skills/frontend/scripts/detect/rules/color/support/gradients.ts +77 -66
  122. package/dist/skills/frontend/scripts/detect/rules/color/support/mockup-roots.ts +178 -48
  123. package/dist/skills/frontend/scripts/detect/rules/color/support/page-ignore.ts +6 -2
  124. package/dist/skills/frontend/scripts/detect/rules/color/support/painted-text.ts +171 -108
  125. package/dist/skills/frontend/scripts/detect/rules/color/support/palette-roles.ts +60 -39
  126. package/dist/skills/frontend/scripts/detect/rules/color/support/placeholder-contrast.ts +36 -16
  127. package/dist/skills/frontend/scripts/detect/rules/color/support/stock-accent.ts +48 -18
  128. package/dist/skills/frontend/scripts/detect/rules/color/support/text-colors.ts +88 -62
  129. package/dist/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.test.ts +17 -9
  130. package/dist/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.ts +25 -15
  131. package/dist/skills/frontend/scripts/detect/rules/copy/broken-image.test.ts +22 -16
  132. package/dist/skills/frontend/scripts/detect/rules/copy/broken-image.ts +20 -12
  133. package/dist/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.test.ts +38 -24
  134. package/dist/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.ts +63 -39
  135. package/dist/skills/frontend/scripts/detect/rules/copy/index.ts +9 -2
  136. package/dist/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.test.ts +14 -9
  137. package/dist/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.ts +53 -25
  138. package/dist/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.test.ts +69 -37
  139. package/dist/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.ts +49 -28
  140. package/dist/skills/frontend/scripts/detect/rules/copy/repeated-container-text.test.ts +52 -26
  141. package/dist/skills/frontend/scripts/detect/rules/copy/repeated-container-text.ts +80 -47
  142. package/dist/skills/frontend/scripts/detect/rules/copy/script-error.test.ts +71 -30
  143. package/dist/skills/frontend/scripts/detect/rules/copy/script-error.ts +42 -34
  144. package/dist/skills/frontend/scripts/detect/rules/copy/skipped-heading.test.ts +64 -34
  145. package/dist/skills/frontend/scripts/detect/rules/copy/skipped-heading.ts +199 -75
  146. package/dist/skills/frontend/scripts/detect/rules/copy/support/numbered-label.ts +122 -71
  147. package/dist/skills/frontend/scripts/detect/rules/copy/support/page-text.ts +32 -24
  148. package/dist/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.test.ts +25 -8
  149. package/dist/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.ts +42 -13
  150. package/dist/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.test.ts +40 -31
  151. package/dist/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.ts +49 -41
  152. package/dist/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.test.ts +30 -25
  153. package/dist/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.ts +10 -10
  154. package/dist/skills/frontend/scripts/detect/rules/decoration/bounce-easing.test.ts +80 -53
  155. package/dist/skills/frontend/scripts/detect/rules/decoration/bounce-easing.ts +87 -68
  156. package/dist/skills/frontend/scripts/detect/rules/decoration/buried-raster.test.ts +122 -79
  157. package/dist/skills/frontend/scripts/detect/rules/decoration/buried-raster.ts +83 -64
  158. package/dist/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.test.ts +20 -20
  159. package/dist/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.ts +29 -29
  160. package/dist/skills/frontend/scripts/detect/rules/decoration/design-system-radius.test.ts +27 -27
  161. package/dist/skills/frontend/scripts/detect/rules/decoration/design-system-radius.ts +33 -26
  162. package/dist/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.test.ts +58 -45
  163. package/dist/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.ts +61 -58
  164. package/dist/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.test.ts +50 -33
  165. package/dist/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.ts +25 -23
  166. package/dist/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.test.ts +74 -60
  167. package/dist/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.ts +16 -14
  168. package/dist/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.test.ts +75 -54
  169. package/dist/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.ts +85 -84
  170. package/dist/skills/frontend/scripts/detect/rules/decoration/index.ts +17 -17
  171. package/dist/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.test.ts +128 -104
  172. package/dist/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.ts +79 -64
  173. package/dist/skills/frontend/scripts/detect/rules/decoration/marquee.test.ts +67 -50
  174. package/dist/skills/frontend/scripts/detect/rules/decoration/marquee.ts +57 -40
  175. package/dist/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.test.ts +67 -54
  176. package/dist/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.ts +34 -34
  177. package/dist/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.test.ts +56 -44
  178. package/dist/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.ts +92 -58
  179. package/dist/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.test.ts +18 -18
  180. package/dist/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.ts +19 -19
  181. package/dist/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.test.ts +57 -44
  182. package/dist/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.ts +59 -53
  183. package/dist/skills/frontend/scripts/detect/rules/decoration/side-tab.test.ts +112 -72
  184. package/dist/skills/frontend/scripts/detect/rules/decoration/side-tab.ts +15 -12
  185. package/dist/skills/frontend/scripts/detect/rules/decoration/support/appearance.ts +89 -85
  186. package/dist/skills/frontend/scripts/detect/rules/decoration/support/assert-cases.ts +17 -15
  187. package/dist/skills/frontend/scripts/detect/rules/decoration/support/borders.ts +178 -136
  188. package/dist/skills/frontend/scripts/detect/rules/decoration/support/clip-geometry.ts +155 -145
  189. package/dist/skills/frontend/scripts/detect/rules/decoration/support/css-candidates.ts +60 -54
  190. package/dist/skills/frontend/scripts/detect/rules/decoration/support/curve-samples.ts +51 -48
  191. package/dist/skills/frontend/scripts/detect/rules/decoration/support/gradient-pattern.ts +43 -34
  192. package/dist/skills/frontend/scripts/detect/rules/decoration/support/keyframes.ts +118 -113
  193. package/dist/skills/frontend/scripts/detect/rules/decoration/support/labels.ts +74 -67
  194. package/dist/skills/frontend/scripts/detect/rules/decoration/support/raster-state.ts +80 -42
  195. package/dist/skills/frontend/scripts/detect/rules/index.ts +6 -6
  196. package/dist/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.test.ts +71 -37
  197. package/dist/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.ts +116 -55
  198. package/dist/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.test.ts +41 -18
  199. package/dist/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.ts +22 -9
  200. package/dist/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.test.ts +57 -29
  201. package/dist/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.ts +113 -52
  202. package/dist/skills/frontend/scripts/detect/rules/layout/cramped-padding.test.ts +120 -31
  203. package/dist/skills/frontend/scripts/detect/rules/layout/cramped-padding.ts +167 -90
  204. package/dist/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.test.ts +43 -24
  205. package/dist/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.ts +82 -41
  206. package/dist/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.test.ts +34 -12
  207. package/dist/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.ts +74 -37
  208. package/dist/skills/frontend/scripts/detect/rules/layout/heading-rhythm.test.ts +85 -39
  209. package/dist/skills/frontend/scripts/detect/rules/layout/heading-rhythm.ts +49 -24
  210. package/dist/skills/frontend/scripts/detect/rules/layout/index.ts +14 -3
  211. package/dist/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.test.ts +24 -7
  212. package/dist/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.ts +47 -28
  213. package/dist/skills/frontend/scripts/detect/rules/layout/nested-cards.test.ts +79 -31
  214. package/dist/skills/frontend/scripts/detect/rules/layout/nested-cards.ts +66 -31
  215. package/dist/skills/frontend/scripts/detect/rules/layout/straggler.test.ts +33 -14
  216. package/dist/skills/frontend/scripts/detect/rules/layout/straggler.ts +46 -22
  217. package/dist/skills/frontend/scripts/detect/rules/layout/support/cards.ts +157 -82
  218. package/dist/skills/frontend/scripts/detect/rules/layout/support/clipping.ts +98 -50
  219. package/dist/skills/frontend/scripts/detect/rules/layout/support/declared-mockups.ts +100 -36
  220. package/dist/skills/frontend/scripts/detect/rules/layout/support/geometry.ts +66 -43
  221. package/dist/skills/frontend/scripts/detect/rules/layout/support/hidden-interface.ts +56 -24
  222. package/dist/skills/frontend/scripts/detect/rules/layout/support/layout-cases.ts +23 -8
  223. package/dist/skills/frontend/scripts/detect/rules/layout/support/line-breaks.ts +28 -16
  224. package/dist/skills/frontend/scripts/detect/rules/layout/support/motion.ts +88 -56
  225. package/dist/skills/frontend/scripts/detect/rules/layout/support/padding.ts +106 -68
  226. package/dist/skills/frontend/scripts/detect/rules/layout/support/rhythm.ts +204 -128
  227. package/dist/skills/frontend/scripts/detect/rules/layout/text-occlusion.test.ts +50 -17
  228. package/dist/skills/frontend/scripts/detect/rules/layout/text-occlusion.ts +125 -70
  229. package/dist/skills/frontend/scripts/detect/rules/layout/text-overflow.test.ts +96 -42
  230. package/dist/skills/frontend/scripts/detect/rules/layout/text-overflow.ts +111 -59
  231. package/dist/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.test.ts +15 -9
  232. package/dist/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.ts +27 -16
  233. package/dist/skills/frontend/scripts/detect/rules/layout/viewport-reflow.test.ts +34 -21
  234. package/dist/skills/frontend/scripts/detect/rules/layout/viewport-reflow.ts +38 -23
  235. package/dist/skills/frontend/scripts/detect/rules/source/ai-color-palette.test.ts +6 -6
  236. package/dist/skills/frontend/scripts/detect/rules/source/ai-color-palette.ts +17 -6
  237. package/dist/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.test.ts +5 -5
  238. package/dist/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.ts +19 -9
  239. package/dist/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.test.ts +7 -7
  240. package/dist/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.ts +31 -13
  241. package/dist/skills/frontend/scripts/detect/rules/source/bounce-easing.test.ts +20 -9
  242. package/dist/skills/frontend/scripts/detect/rules/source/bounce-easing.ts +41 -16
  243. package/dist/skills/frontend/scripts/detect/rules/source/broken-image.test.ts +17 -17
  244. package/dist/skills/frontend/scripts/detect/rules/source/broken-image.ts +19 -9
  245. package/dist/skills/frontend/scripts/detect/rules/source/codex-grid-background.test.ts +7 -4
  246. package/dist/skills/frontend/scripts/detect/rules/source/codex-grid-background.ts +36 -12
  247. package/dist/skills/frontend/scripts/detect/rules/source/dark-glow.test.ts +8 -8
  248. package/dist/skills/frontend/scripts/detect/rules/source/dark-glow.ts +28 -14
  249. package/dist/skills/frontend/scripts/detect/rules/source/em-dash-overuse.test.ts +6 -6
  250. package/dist/skills/frontend/scripts/detect/rules/source/em-dash-overuse.ts +17 -9
  251. package/dist/skills/frontend/scripts/detect/rules/source/gradient-text.test.ts +5 -5
  252. package/dist/skills/frontend/scripts/detect/rules/source/gradient-text.ts +14 -6
  253. package/dist/skills/frontend/scripts/detect/rules/source/gray-on-color.test.ts +13 -13
  254. package/dist/skills/frontend/scripts/detect/rules/source/gray-on-color.ts +18 -7
  255. package/dist/skills/frontend/scripts/detect/rules/source/index.ts +18 -1
  256. package/dist/skills/frontend/scripts/detect/rules/source/marketing-buzzword.test.ts +5 -5
  257. package/dist/skills/frontend/scripts/detect/rules/source/marketing-buzzword.ts +49 -11
  258. package/dist/skills/frontend/scripts/detect/rules/source/marquee.test.ts +11 -5
  259. package/dist/skills/frontend/scripts/detect/rules/source/marquee.ts +16 -6
  260. package/dist/skills/frontend/scripts/detect/rules/source/monotonous-spacing.test.ts +6 -6
  261. package/dist/skills/frontend/scripts/detect/rules/source/monotonous-spacing.ts +35 -17
  262. package/dist/skills/frontend/scripts/detect/rules/source/overused-font.test.ts +18 -11
  263. package/dist/skills/frontend/scripts/detect/rules/source/overused-font.ts +51 -10
  264. package/dist/skills/frontend/scripts/detect/rules/source/radial-halo.test.ts +12 -9
  265. package/dist/skills/frontend/scripts/detect/rules/source/radial-halo.ts +16 -8
  266. package/dist/skills/frontend/scripts/detect/rules/source/side-tab.test.ts +34 -22
  267. package/dist/skills/frontend/scripts/detect/rules/source/side-tab.ts +88 -47
  268. package/dist/skills/frontend/scripts/detect/rules/source/support/accent-scans.ts +103 -62
  269. package/dist/skills/frontend/scripts/detect/rules/source/support/check-source.ts +6 -2
  270. package/dist/skills/frontend/scripts/detect/rules/source/support/corners.ts +148 -80
  271. package/dist/skills/frontend/scripts/detect/rules/source/support/css-effects.ts +86 -66
  272. package/dist/skills/frontend/scripts/detect/rules/source/support/css-scopes.ts +148 -113
  273. package/dist/skills/frontend/scripts/detect/rules/source/support/image-tags.ts +113 -105
  274. package/dist/skills/frontend/scripts/detect/rules/source/support/js-punctuation.ts +47 -30
  275. package/dist/skills/frontend/scripts/detect/rules/source/support/markup-scope.ts +45 -34
  276. package/dist/skills/frontend/scripts/detect/rules/source/support/source-color.ts +64 -29
  277. package/dist/skills/frontend/scripts/detect/rules/source/support/source-shadow.ts +17 -10
  278. package/dist/skills/frontend/scripts/detect/rules/source/support/source-text.ts +128 -86
  279. package/dist/skills/frontend/scripts/detect/rules/typography/all-caps-body.test.ts +24 -15
  280. package/dist/skills/frontend/scripts/detect/rules/typography/all-caps-body.ts +23 -9
  281. package/dist/skills/frontend/scripts/detect/rules/typography/design-system-font-size.test.ts +16 -12
  282. package/dist/skills/frontend/scripts/detect/rules/typography/design-system-font-size.ts +27 -17
  283. package/dist/skills/frontend/scripts/detect/rules/typography/design-system-font.test.ts +17 -13
  284. package/dist/skills/frontend/scripts/detect/rules/typography/design-system-font.ts +27 -17
  285. package/dist/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.test.ts +50 -14
  286. package/dist/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.ts +26 -12
  287. package/dist/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.test.ts +44 -17
  288. package/dist/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.ts +41 -19
  289. package/dist/skills/frontend/scripts/detect/rules/typography/index.ts +14 -3
  290. package/dist/skills/frontend/scripts/detect/rules/typography/italic-serif-display.test.ts +39 -15
  291. package/dist/skills/frontend/scripts/detect/rules/typography/italic-serif-display.ts +67 -16
  292. package/dist/skills/frontend/scripts/detect/rules/typography/justified-text.test.ts +39 -22
  293. package/dist/skills/frontend/scripts/detect/rules/typography/justified-text.ts +47 -25
  294. package/dist/skills/frontend/scripts/detect/rules/typography/line-length.test.ts +65 -29
  295. package/dist/skills/frontend/scripts/detect/rules/typography/line-length.ts +37 -21
  296. package/dist/skills/frontend/scripts/detect/rules/typography/oversized-h1.test.ts +27 -17
  297. package/dist/skills/frontend/scripts/detect/rules/typography/oversized-h1.ts +35 -14
  298. package/dist/skills/frontend/scripts/detect/rules/typography/overused-font.test.ts +25 -18
  299. package/dist/skills/frontend/scripts/detect/rules/typography/overused-font.ts +83 -38
  300. package/dist/skills/frontend/scripts/detect/rules/typography/support/drawn-enlargement.ts +68 -40
  301. package/dist/skills/frontend/scripts/detect/rules/typography/support/fading-text.ts +59 -39
  302. package/dist/skills/frontend/scripts/detect/rules/typography/support/flex-runs.ts +13 -8
  303. package/dist/skills/frontend/scripts/detect/rules/typography/support/font-family.ts +68 -17
  304. package/dist/skills/frontend/scripts/detect/rules/typography/support/painted-text.test.ts +110 -46
  305. package/dist/skills/frontend/scripts/detect/rules/typography/support/painted-text.ts +173 -67
  306. package/dist/skills/frontend/scripts/detect/rules/typography/support/svg-size.ts +56 -49
  307. package/dist/skills/frontend/scripts/detect/rules/typography/support/text-context.ts +155 -78
  308. package/dist/skills/frontend/scripts/detect/rules/typography/support/text-lines.ts +38 -28
  309. package/dist/skills/frontend/scripts/detect/rules/typography/support/type-hierarchy.ts +43 -38
  310. package/dist/skills/frontend/scripts/detect/rules/typography/tight-leading.test.ts +109 -37
  311. package/dist/skills/frontend/scripts/detect/rules/typography/tight-leading.ts +67 -39
  312. package/dist/skills/frontend/scripts/detect/rules/typography/tiny-text.test.ts +80 -45
  313. package/dist/skills/frontend/scripts/detect/rules/typography/tiny-text.ts +34 -15
  314. package/dist/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.test.ts +158 -81
  315. package/dist/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.ts +52 -22
  316. package/dist/skills/frontend/scripts/detect/rules/typography/wide-tracking.test.ts +29 -17
  317. package/dist/skills/frontend/scripts/detect/rules/typography/wide-tracking.ts +37 -19
  318. package/dist/skills/frontend/scripts/detect/snapshot/collect.ts +154 -145
  319. package/dist/skills/frontend/scripts/detect/snapshot/style-props.ts +121 -21
  320. package/dist/skills/frontend/scripts/detect/testing/build-snapshot.ts +140 -65
  321. package/dist/skills/frontend/scripts/detect/types.ts +81 -76
  322. package/dist/skills/frontend/scripts/perfection/accent-stripes/color.ts +205 -85
  323. package/dist/skills/frontend/scripts/perfection/accent-stripes/css-parse.ts +97 -80
  324. package/dist/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +129 -101
  325. package/dist/skills/frontend/scripts/perfection/accent-stripes/findings.ts +23 -23
  326. package/dist/skills/frontend/scripts/perfection/accent-stripes/gradient.ts +43 -42
  327. package/dist/skills/frontend/scripts/perfection/accent-stripes/lint.ts +75 -60
  328. package/dist/skills/frontend/scripts/perfection/accent-stripes/markup.ts +131 -106
  329. package/dist/skills/frontend/scripts/perfection/accent-stripes/selector.ts +28 -25
  330. package/dist/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +93 -78
  331. package/dist/skills/frontend/scripts/perfection/check-accent-stripes.test.ts +111 -62
  332. package/dist/skills/frontend/scripts/perfection/check-accent-stripes.ts +22 -22
  333. package/dist/skills/frontend/scripts/perfection/check-draft-guard.test.ts +89 -65
  334. package/dist/skills/frontend/scripts/perfection/check-draft-guard.ts +24 -24
  335. package/dist/skills/frontend/scripts/perfection/collect-files.test.ts +36 -33
  336. package/dist/skills/frontend/scripts/perfection/collect-files.ts +49 -36
  337. package/dist/skills/frontend/scripts/perfection/draft-guard/findings.ts +10 -9
  338. package/dist/skills/frontend/scripts/perfection/draft-guard/lint.ts +27 -24
  339. package/dist/skills/frontend/scripts/perfection/draft-guard/rules.ts +46 -42
  340. package/dist/skills/frontend/scripts/perfection/draft-guard/text-nodes.ts +98 -75
  341. package/dist/skills/lsp-setup/scripts/detect-lsp.ts +162 -152
  342. package/dist/skills/lsp-setup/scripts/lsp-server-table.ts +164 -164
  343. package/dist/skills/lsp-setup/scripts/verify-lsp.ts +94 -91
  344. package/dist/skills/programming/SKILL.md +2 -2
  345. package/dist/skills/programming/scripts/go/new-project.ts +68 -68
  346. package/dist/skills/programming/scripts/python/new-project.ts +64 -64
  347. package/dist/skills/programming/scripts/python/new-script.ts +39 -39
  348. package/dist/skills/programming/scripts/rust/check-no-excuse-rules.test.ts +57 -57
  349. package/dist/skills/programming/scripts/rust/new-project.ts +60 -57
  350. package/dist/skills/programming/scripts/scaffolders.test.ts +113 -67
  351. package/dist/skills/programming/scripts/shared/run-tool.ts +7 -7
  352. package/dist/skills/programming/scripts/typescript/check-no-excuse-rules.test.ts +53 -53
  353. package/dist/skills/programming/scripts/typescript/check-no-excuse-rules.ts +96 -36
  354. package/dist/skills/programming/scripts/typescript/check-test-junk-rules.ts +38 -17
  355. package/dist/skills/programming/scripts/typescript/check-test-junk.ts +13 -2
  356. package/dist/skills/programming/scripts/typescript/mutation-proof.test.ts +4 -1
  357. package/dist/skills/programming/scripts/typescript/mutation-proof.ts +16 -4
  358. package/dist/skills/programming/scripts/typescript/new-project.test.ts +78 -92
  359. package/dist/skills/programming/scripts/typescript/new-project.ts +21 -21
  360. package/dist/skills/ultimate-browsing/engine/templates/knip.workspace.jsonc +31 -0
  361. package/dist/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +65 -62
  362. package/dist/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +73 -70
  363. package/dist/skills/ulw-plan/scripts/plan-templates.mjs +30 -30
  364. package/dist/skills/ulw-plan/scripts/scaffold-plan.mjs +131 -123
  365. package/dist/skills/ulw-research/scripts/claim-kinds.mjs +178 -67
  366. package/dist/skills/ulw-research/scripts/claim-kinds.test.ts +239 -168
  367. package/dist/skills/ulw-research/scripts/claim-prefix.test.ts +96 -47
  368. package/dist/skills/ulw-research/scripts/claims-index.mjs +117 -93
  369. package/dist/skills/ulw-research/scripts/claims-index.test.ts +147 -129
  370. package/dist/skills/ulw-research/scripts/cli-support.mjs +73 -73
  371. package/dist/skills/ulw-research/scripts/cli-support.test.ts +85 -74
  372. package/dist/skills/ulw-research/scripts/contracts-validation.test.ts +64 -64
  373. package/dist/skills/ulw-research/scripts/contracts.mjs +604 -174
  374. package/dist/skills/ulw-research/scripts/contracts.test.ts +171 -139
  375. package/dist/skills/ulw-research/scripts/conversion-altered.test.ts +268 -115
  376. package/dist/skills/ulw-research/scripts/conversion-originals.test.ts +355 -230
  377. package/dist/skills/ulw-research/scripts/conversion-probe-classes.test.ts +1319 -283
  378. package/dist/skills/ulw-research/scripts/conversion-probe.mjs +161 -113
  379. package/dist/skills/ulw-research/scripts/conversion-probe.test.ts +211 -173
  380. package/dist/skills/ulw-research/scripts/copy-returns-fidelity-policy.test.ts +201 -125
  381. package/dist/skills/ulw-research/scripts/copy-returns-polish.test.ts +230 -150
  382. package/dist/skills/ulw-research/scripts/copy-returns.test.ts +189 -145
  383. package/dist/skills/ulw-research/scripts/css-hiding.mjs +126 -92
  384. package/dist/skills/ulw-research/scripts/css-lite.mjs +143 -137
  385. package/dist/skills/ulw-research/scripts/css-lite.test.ts +136 -128
  386. package/dist/skills/ulw-research/scripts/delivery-barrier-meaning.test.ts +206 -113
  387. package/dist/skills/ulw-research/scripts/delivery-barrier.test.ts +191 -141
  388. package/dist/skills/ulw-research/scripts/design-spec.mjs +123 -107
  389. package/dist/skills/ulw-research/scripts/design-spec.test.ts +146 -136
  390. package/dist/skills/ulw-research/scripts/entities.mjs +66 -30
  391. package/dist/skills/ulw-research/scripts/entry-guard.mjs +8 -8
  392. package/dist/skills/ulw-research/scripts/fact-commands-fill.mjs +104 -51
  393. package/dist/skills/ulw-research/scripts/fact-commands-meaning.mjs +207 -105
  394. package/dist/skills/ulw-research/scripts/fact-commands-polish.mjs +143 -76
  395. package/dist/skills/ulw-research/scripts/fact-commands-verify.mjs +164 -120
  396. package/dist/skills/ulw-research/scripts/fact-commands.mjs +264 -151
  397. package/dist/skills/ulw-research/scripts/fact-derive-2.test.ts +158 -135
  398. package/dist/skills/ulw-research/scripts/fact-derive.mjs +92 -48
  399. package/dist/skills/ulw-research/scripts/fact-derive.test.ts +224 -167
  400. package/dist/skills/ulw-research/scripts/fact-expr.mjs +90 -78
  401. package/dist/skills/ulw-research/scripts/fact-fill.mjs +215 -127
  402. package/dist/skills/ulw-research/scripts/fact-fill.test.ts +204 -177
  403. package/dist/skills/ulw-research/scripts/fact-ledger-grammar.test.ts +293 -141
  404. package/dist/skills/ulw-research/scripts/fact-ledger-kinds.mjs +305 -131
  405. package/dist/skills/ulw-research/scripts/fact-ledger-kinds.test.ts +173 -108
  406. package/dist/skills/ulw-research/scripts/fact-ledger-legacy.test.ts +195 -134
  407. package/dist/skills/ulw-research/scripts/fact-ledger-schema.mjs +264 -158
  408. package/dist/skills/ulw-research/scripts/fact-ledger-schema.test.ts +29 -29
  409. package/dist/skills/ulw-research/scripts/fact-ledger.mjs +93 -57
  410. package/dist/skills/ulw-research/scripts/fact-ledger.test.ts +243 -221
  411. package/dist/skills/ulw-research/scripts/fact-locate.mjs +204 -147
  412. package/dist/skills/ulw-research/scripts/fact-locate.test.ts +143 -88
  413. package/dist/skills/ulw-research/scripts/fact-pairs.mjs +126 -108
  414. package/dist/skills/ulw-research/scripts/fact-pairs.test.ts +120 -113
  415. package/dist/skills/ulw-research/scripts/fact-recompute.mjs +89 -66
  416. package/dist/skills/ulw-research/scripts/fact-unit-dimensions-2.test.ts +164 -109
  417. package/dist/skills/ulw-research/scripts/fact-unit-dimensions.test.ts +237 -178
  418. package/dist/skills/ulw-research/scripts/fact-unit-rules.test.ts +180 -138
  419. package/dist/skills/ulw-research/scripts/fidelity-binding.mjs +101 -70
  420. package/dist/skills/ulw-research/scripts/fidelity-binding.test.ts +56 -52
  421. package/dist/skills/ulw-research/scripts/fidelity-brief.mjs +95 -89
  422. package/dist/skills/ulw-research/scripts/fidelity-brief.test.ts +167 -160
  423. package/dist/skills/ulw-research/scripts/fidelity-claims.mjs +76 -48
  424. package/dist/skills/ulw-research/scripts/fidelity-csv.mjs +27 -27
  425. package/dist/skills/ulw-research/scripts/fidelity-lexicon.mjs +101 -78
  426. package/dist/skills/ulw-research/scripts/fidelity-lexicon.test.ts +113 -90
  427. package/dist/skills/ulw-research/scripts/fidelity-originals.mjs +124 -77
  428. package/dist/skills/ulw-research/scripts/fidelity-policy.mjs +132 -83
  429. package/dist/skills/ulw-research/scripts/fidelity-records.mjs +179 -117
  430. package/dist/skills/ulw-research/scripts/fidelity-snapshot-readability.mjs +38 -33
  431. package/dist/skills/ulw-research/scripts/fidelity-sources.mjs +92 -54
  432. package/dist/skills/ulw-research/scripts/fidelity-state.mjs +27 -27
  433. package/dist/skills/ulw-research/scripts/fidelity-state.test.ts +32 -32
  434. package/dist/skills/ulw-research/scripts/fidelity-trace.mjs +81 -48
  435. package/dist/skills/ulw-research/scripts/fidelity-trace.test.ts +48 -32
  436. package/dist/skills/ulw-research/scripts/fidelity-value-unit.mjs +207 -104
  437. package/dist/skills/ulw-research/scripts/fidelity-values.mjs +255 -154
  438. package/dist/skills/ulw-research/scripts/fidelity-values.test.ts +283 -229
  439. package/dist/skills/ulw-research/scripts/format-extract-css.mjs +74 -74
  440. package/dist/skills/ulw-research/scripts/format-extract.mjs +161 -134
  441. package/dist/skills/ulw-research/scripts/format-extract.test.ts +207 -204
  442. package/dist/skills/ulw-research/scripts/gates-context.test.ts +47 -42
  443. package/dist/skills/ulw-research/scripts/gates-fidelity.mjs +118 -59
  444. package/dist/skills/ulw-research/scripts/gates-fidelity.test.ts +62 -45
  445. package/dist/skills/ulw-research/scripts/gates-figures.mjs +192 -141
  446. package/dist/skills/ulw-research/scripts/gates-layout.mjs +119 -85
  447. package/dist/skills/ulw-research/scripts/gates-layout.test.ts +250 -187
  448. package/dist/skills/ulw-research/scripts/gates-static-headings.test.ts +13 -10
  449. package/dist/skills/ulw-research/scripts/gates-static.mjs +109 -102
  450. package/dist/skills/ulw-research/scripts/gates-static.test.ts +310 -287
  451. package/dist/skills/ulw-research/scripts/gates-structure.mjs +105 -86
  452. package/dist/skills/ulw-research/scripts/gates-text.mjs +169 -113
  453. package/dist/skills/ulw-research/scripts/glossary-vocabulary.test.ts +35 -35
  454. package/dist/skills/ulw-research/scripts/html-foreign-object.mjs +39 -34
  455. package/dist/skills/ulw-research/scripts/html-lite.mjs +230 -176
  456. package/dist/skills/ulw-research/scripts/html-lite.test.ts +190 -183
  457. package/dist/skills/ulw-research/scripts/html-markup.mjs +150 -128
  458. package/dist/skills/ulw-research/scripts/html-text-map.mjs +125 -96
  459. package/dist/skills/ulw-research/scripts/html-text-map.test.ts +311 -128
  460. package/dist/skills/ulw-research/scripts/layout-probe.mjs +10 -8
  461. package/dist/skills/ulw-research/scripts/layout-probe.test.ts +65 -62
  462. package/dist/skills/ulw-research/scripts/lexicon.mjs +36 -19
  463. package/dist/skills/ulw-research/scripts/lexicon.test.ts +95 -49
  464. package/dist/skills/ulw-research/scripts/markdown-closers.mjs +85 -85
  465. package/dist/skills/ulw-research/scripts/md-lite-boundaries.test.ts +44 -34
  466. package/dist/skills/ulw-research/scripts/md-lite.mjs +133 -125
  467. package/dist/skills/ulw-research/scripts/md-lite.test.ts +289 -233
  468. package/dist/skills/ulw-research/scripts/meaning-check.mjs +154 -123
  469. package/dist/skills/ulw-research/scripts/meaning-check.test.ts +258 -173
  470. package/dist/skills/ulw-research/scripts/number-grammar.mjs +10 -8
  471. package/dist/skills/ulw-research/scripts/number-grammar.test.ts +31 -24
  472. package/dist/skills/ulw-research/scripts/numerals.mjs +181 -137
  473. package/dist/skills/ulw-research/scripts/numerals.test.ts +141 -113
  474. package/dist/skills/ulw-research/scripts/outcome-start.mjs +50 -36
  475. package/dist/skills/ulw-research/scripts/outcome-start.test.ts +89 -75
  476. package/dist/skills/ulw-research/scripts/outcome.mjs +194 -153
  477. package/dist/skills/ulw-research/scripts/outcome.test.ts +270 -264
  478. package/dist/skills/ulw-research/scripts/page-source-locator.test.ts +216 -150
  479. package/dist/skills/ulw-research/scripts/particles-ko.mjs +72 -70
  480. package/dist/skills/ulw-research/scripts/particles-ko.test.ts +66 -66
  481. package/dist/skills/ulw-research/scripts/placeholder.mjs +130 -112
  482. package/dist/skills/ulw-research/scripts/placeholder.test.ts +82 -55
  483. package/dist/skills/ulw-research/scripts/polish-apply.mjs +67 -51
  484. package/dist/skills/ulw-research/scripts/polish-apply.test.ts +397 -321
  485. package/dist/skills/ulw-research/scripts/polish-diff.mjs +10 -5
  486. package/dist/skills/ulw-research/scripts/polish-diff.test.ts +186 -134
  487. package/dist/skills/ulw-research/scripts/polish-markup.test.ts +271 -170
  488. package/dist/skills/ulw-research/scripts/polish-partial.test.ts +60 -34
  489. package/dist/skills/ulw-research/scripts/polish-project.mjs +67 -57
  490. package/dist/skills/ulw-research/scripts/polish-rules.mjs +120 -100
  491. package/dist/skills/ulw-research/scripts/rational.mjs +74 -73
  492. package/dist/skills/ulw-research/scripts/rational.test.ts +35 -35
  493. package/dist/skills/ulw-research/scripts/raw-decode.mjs +74 -74
  494. package/dist/skills/ulw-research/scripts/raw-locator.mjs +32 -24
  495. package/dist/skills/ulw-research/scripts/raw-snapshot.test.ts +166 -113
  496. package/dist/skills/ulw-research/scripts/references-fences.test.ts +14 -12
  497. package/dist/skills/ulw-research/scripts/repair-tracker.mjs +98 -93
  498. package/dist/skills/ulw-research/scripts/repair-tracker.test.ts +220 -214
  499. package/dist/skills/ulw-research/scripts/report-tools-2.test.ts +403 -215
  500. package/dist/skills/ulw-research/scripts/report-tools-3.test.ts +215 -112
  501. package/dist/skills/ulw-research/scripts/report-tools-4.test.ts +258 -116
  502. package/dist/skills/ulw-research/scripts/report-tools-5.test.ts +385 -205
  503. package/dist/skills/ulw-research/scripts/report-tools-commands.mjs +265 -176
  504. package/dist/skills/ulw-research/scripts/report-tools.mjs +65 -62
  505. package/dist/skills/ulw-research/scripts/report-tools.test.ts +295 -170
  506. package/dist/skills/ulw-research/scripts/sentence-split.mjs +63 -43
  507. package/dist/skills/ulw-research/scripts/sentence-split.test.ts +90 -90
  508. package/dist/skills/ulw-research/scripts/snapshot-readability.test.ts +107 -83
  509. package/dist/skills/ulw-research/scripts/source-commands.mjs +199 -125
  510. package/dist/skills/ulw-research/scripts/source-integrity.test.ts +359 -205
  511. package/dist/skills/ulw-research/scripts/source-refresh.mjs +91 -54
  512. package/dist/skills/ulw-research/scripts/source-snapshot.mjs +143 -102
  513. package/dist/skills/ulw-research/scripts/source-snapshot.test.ts +110 -86
  514. package/dist/skills/ulw-research/scripts/source-view.mjs +82 -46
  515. package/dist/skills/ulw-research/scripts/sources-citation.mjs +135 -96
  516. package/dist/skills/ulw-research/scripts/sources-citation.test.ts +180 -156
  517. package/dist/skills/ulw-research/scripts/tests/contracts-support.ts +123 -118
  518. package/dist/skills/ulw-research/scripts/tests/delivery-barrier-session.ts +37 -24
  519. package/dist/skills/ulw-research/scripts/tests/derive-clock.ts +5 -1
  520. package/dist/skills/ulw-research/scripts/tests/fact-derive-support.ts +31 -37
  521. package/dist/skills/ulw-research/scripts/tests/fact-unit-dimensions-support.ts +26 -17
  522. package/dist/skills/ulw-research/scripts/tests/fact-unit-rules-support.ts +474 -186
  523. package/dist/skills/ulw-research/scripts/tests/fidelity-values-support.ts +15 -8
  524. package/dist/skills/ulw-research/scripts/tests/numeral-classes.ts +324 -163
  525. package/dist/skills/ulw-research/scripts/tests/report-tools-support.ts +226 -103
  526. package/dist/skills/ulw-research/scripts/tests/value-mode-support.ts +33 -25
  527. package/dist/skills/ulw-research/scripts/text-normalize.mjs +63 -48
  528. package/dist/skills/ulw-research/scripts/text-normalize.test.ts +57 -57
  529. package/dist/skills/ulw-research/scripts/text-similarity.mjs +15 -15
  530. package/dist/skills/ulw-research/scripts/text-similarity.test.ts +29 -29
  531. package/dist/skills/ulw-research/scripts/unit-algebra.mjs +98 -66
  532. package/dist/skills/ulw-research/scripts/unit-errors.mjs +14 -14
  533. package/dist/skills/ulw-research/scripts/unit-metadata.mjs +30 -14
  534. package/dist/skills/ulw-research/scripts/unit-pairs.mjs +57 -45
  535. package/dist/skills/ulw-research/scripts/unit-precision.mjs +39 -25
  536. package/dist/skills/ulw-research/scripts/unit-rules-shapes.mjs +79 -44
  537. package/dist/skills/ulw-research/scripts/unit-rules.mjs +262 -135
  538. package/dist/skills/ulw-research/scripts/units.mjs +96 -65
  539. package/dist/skills/ulw-research/scripts/units.test.ts +75 -75
  540. package/dist/skills/ulw-research/scripts/value-mode-unit-classes.test.ts +411 -177
  541. package/dist/skills/ulw-research/scripts/value-mode-unit.test.ts +264 -154
  542. package/dist/skills/ulw-research/scripts/value-rules-cli.test.ts +165 -123
  543. package/dist/skills/ulw-research/scripts/value-rules-followups.test.ts +49 -25
  544. package/dist/skills/ulw-research/scripts/value-rules-priority.test.ts +69 -47
  545. package/dist/skills/visual-qa/scripts/ansi.test.ts +32 -32
  546. package/dist/skills/visual-qa/scripts/ansi.ts +3 -6
  547. package/dist/skills/visual-qa/scripts/cli.test.ts +57 -57
  548. package/dist/skills/visual-qa/scripts/cli.ts +52 -52
  549. package/dist/skills/visual-qa/scripts/east-asian-width.test.ts +47 -47
  550. package/dist/skills/visual-qa/scripts/east-asian-width.ts +53 -53
  551. package/dist/skills/visual-qa/scripts/image-diff.test.ts +55 -55
  552. package/dist/skills/visual-qa/scripts/image-diff.ts +86 -86
  553. package/dist/skills/visual-qa/scripts/png-crc.ts +16 -16
  554. package/dist/skills/visual-qa/scripts/png-decode.test.ts +33 -33
  555. package/dist/skills/visual-qa/scripts/png-decode.ts +167 -167
  556. package/dist/skills/visual-qa/scripts/png-synth.ts +36 -40
  557. package/dist/skills/visual-qa/scripts/skill-doc-fields.test.ts +16 -16
  558. package/dist/skills/visual-qa/scripts/tui-grid.test.ts +49 -49
  559. package/dist/skills/visual-qa/scripts/tui-grid.ts +63 -63
  560. package/dist/skills/visual-qa/scripts/types.ts +37 -37
  561. package/dist/skills/visual-qa/scripts/visual-qa.mjs +268 -289
  562. package/dist/tools/background-task/index.d.ts +1 -1
  563. package/dist/tools/glob/constants.d.ts +1 -1
  564. package/dist/tools/hashline-edit/index.d.ts +2 -2
  565. package/dist/tools/index.d.ts +1 -1
  566. package/dist/tools/look-at/look-at-session-runner.d.ts +1 -1
  567. package/dist/tools/session-manager/constants.d.ts +1 -3
  568. package/dist/tools/task/index.d.ts +1 -1
  569. package/dist/tui.js +275 -169
  570. package/package.json +35 -18
  571. package/packages/lsp-core/src/index.ts +30 -30
  572. package/packages/lsp-core/src/lsp/bun-command-output.ts +69 -69
  573. package/packages/lsp-core/src/lsp/bun-project-checks.test.ts +176 -156
  574. package/packages/lsp-core/src/lsp/bun-project-checks.ts +175 -162
  575. package/packages/lsp-core/src/lsp/cleanup-errors.test.ts +13 -13
  576. package/packages/lsp-core/src/lsp/cleanup-errors.ts +7 -7
  577. package/packages/lsp-core/src/lsp/client-diagnostics-concurrency.integration.test.ts +39 -43
  578. package/packages/lsp-core/src/lsp/client-diagnostics-freshness.integration.test.ts +446 -447
  579. package/packages/lsp-core/src/lsp/client-diagnostics-pull-timeout.test.ts +55 -48
  580. package/packages/lsp-core/src/lsp/client-wrapper-outside-cwd.test.ts +59 -59
  581. package/packages/lsp-core/src/lsp/client-wrapper.test.ts +195 -195
  582. package/packages/lsp-core/src/lsp/client-wrapper.ts +229 -229
  583. package/packages/lsp-core/src/lsp/client.ts +374 -374
  584. package/packages/lsp-core/src/lsp/config-loader.ts +200 -200
  585. package/packages/lsp-core/src/lsp/connection.ts +76 -76
  586. package/packages/lsp-core/src/lsp/constants.ts +13 -13
  587. package/packages/lsp-core/src/lsp/controlled-clock-test-support.ts +69 -69
  588. package/packages/lsp-core/src/lsp/directory-diagnostics.test.ts +209 -199
  589. package/packages/lsp-core/src/lsp/directory-diagnostics.ts +171 -168
  590. package/packages/lsp-core/src/lsp/effective-extension.ts +5 -5
  591. package/packages/lsp-core/src/lsp/errors.ts +58 -60
  592. package/packages/lsp-core/src/lsp/fake-bun-test-support.ts +77 -77
  593. package/packages/lsp-core/src/lsp/format-document.test.ts +136 -130
  594. package/packages/lsp-core/src/lsp/format-document.ts +54 -54
  595. package/packages/lsp-core/src/lsp/formatters.ts +108 -108
  596. package/packages/lsp-core/src/lsp/host-js-runtime.test.ts +116 -120
  597. package/packages/lsp-core/src/lsp/host-js-runtime.ts +34 -34
  598. package/packages/lsp-core/src/lsp/infer-extension.ts +50 -50
  599. package/packages/lsp-core/src/lsp/json-rpc-connection-cancellation.test.ts +83 -77
  600. package/packages/lsp-core/src/lsp/json-rpc-connection.ts +341 -340
  601. package/packages/lsp-core/src/lsp/language-mappings.ts +165 -165
  602. package/packages/lsp-core/src/lsp/manager-lifecycle.test.ts +227 -234
  603. package/packages/lsp-core/src/lsp/manager-max-clients.test.ts +133 -133
  604. package/packages/lsp-core/src/lsp/manager.ts +466 -466
  605. package/packages/lsp-core/src/lsp/outside-context-workspace.ts +22 -22
  606. package/packages/lsp-core/src/lsp/process-pipe-errors.test.ts +16 -16
  607. package/packages/lsp-core/src/lsp/process-signal-cleanup.ts +16 -16
  608. package/packages/lsp-core/src/lsp/process.ts +168 -168
  609. package/packages/lsp-core/src/lsp/server-definitions.ts +193 -193
  610. package/packages/lsp-core/src/lsp/server-install-state.ts +33 -33
  611. package/packages/lsp-core/src/lsp/server-installation.test.ts +347 -347
  612. package/packages/lsp-core/src/lsp/server-installation.ts +153 -153
  613. package/packages/lsp-core/src/lsp/server-resolution-local-binary.test.ts +151 -151
  614. package/packages/lsp-core/src/lsp/server-resolution.ts +102 -99
  615. package/packages/lsp-core/src/lsp/startup-failure.ts +1 -1
  616. package/packages/lsp-core/src/lsp/timer-provider.ts +8 -8
  617. package/packages/lsp-core/src/lsp/transport-protocol.ts +24 -24
  618. package/packages/lsp-core/src/lsp/transport-request-timeout.test.ts +56 -52
  619. package/packages/lsp-core/src/lsp/transport.ts +320 -325
  620. package/packages/lsp-core/src/lsp/types.ts +69 -69
  621. package/packages/lsp-core/src/lsp/typescript-server-defaults.test.ts +65 -65
  622. package/packages/lsp-core/src/lsp/utils.test.ts +59 -59
  623. package/packages/lsp-core/src/lsp/utils.ts +28 -28
  624. package/packages/lsp-core/src/lsp/workspace-apply-edit-failure.ts +9 -9
  625. package/packages/lsp-core/src/lsp/workspace-apply-edit-lease.integration.test.ts +203 -204
  626. package/packages/lsp-core/src/lsp/workspace-apply-edit-sync.integration.test.ts +102 -106
  627. package/packages/lsp-core/src/lsp/workspace-apply-edit-test-support.ts +153 -153
  628. package/packages/lsp-core/src/lsp/workspace-apply-edit.integration.test.ts +151 -151
  629. package/packages/lsp-core/src/lsp/workspace-document-state.test.ts +130 -127
  630. package/packages/lsp-core/src/lsp/workspace-document-state.ts +342 -345
  631. package/packages/lsp-core/src/lsp/workspace-edit-adversarial.test.ts +119 -119
  632. package/packages/lsp-core/src/lsp/workspace-edit-commit.test.ts +120 -120
  633. package/packages/lsp-core/src/lsp/workspace-edit-commit.ts +171 -173
  634. package/packages/lsp-core/src/lsp/workspace-edit-contract-evidence.test.ts +49 -48
  635. package/packages/lsp-core/src/lsp/workspace-edit-contract-evidence.ts +18 -20
  636. package/packages/lsp-core/src/lsp/workspace-edit-fingerprint.ts +40 -40
  637. package/packages/lsp-core/src/lsp/workspace-edit-options.test.ts +131 -137
  638. package/packages/lsp-core/src/lsp/workspace-edit-parse-helpers.ts +42 -41
  639. package/packages/lsp-core/src/lsp/workspace-edit-parser.ts +108 -108
  640. package/packages/lsp-core/src/lsp/workspace-edit-path.ts +75 -75
  641. package/packages/lsp-core/src/lsp/workspace-edit-plan-types.ts +46 -47
  642. package/packages/lsp-core/src/lsp/workspace-edit-plan.ts +60 -60
  643. package/packages/lsp-core/src/lsp/workspace-edit-prevalidation.test.ts +161 -161
  644. package/packages/lsp-core/src/lsp/workspace-edit-resource-parser.ts +74 -74
  645. package/packages/lsp-core/src/lsp/workspace-edit-simulation.ts +139 -139
  646. package/packages/lsp-core/src/lsp/workspace-edit-snapshot.ts +45 -42
  647. package/packages/lsp-core/src/lsp/workspace-edit-text.ts +85 -85
  648. package/packages/lsp-core/src/lsp/workspace-edit-types.ts +85 -85
  649. package/packages/lsp-core/src/lsp/workspace-edit.characterization.test.ts +85 -85
  650. package/packages/lsp-core/src/lsp/workspace-edit.ts +38 -38
  651. package/packages/lsp-core/src/lsp/workspace-markers.ts +9 -9
  652. package/packages/lsp-core/src/lsp/workspace-mutation-controller.ts +149 -156
  653. package/packages/lsp-core/src/mcp-protocol-pin.test.ts +42 -34
  654. package/packages/lsp-core/src/mcp.ts +89 -91
  655. package/packages/lsp-core/src/missing-dependency-result.test.ts +118 -118
  656. package/packages/lsp-core/src/missing-dependency-result.ts +66 -66
  657. package/packages/lsp-core/src/post-edit/file-location.ts +29 -29
  658. package/packages/lsp-core/src/post-edit/index.ts +3 -3
  659. package/packages/lsp-core/src/post-edit/not-installed-guidance.ts +18 -18
  660. package/packages/lsp-core/src/post-edit/not-installed.test.ts +198 -200
  661. package/packages/lsp-core/src/post-edit/orchestration.test.ts +161 -153
  662. package/packages/lsp-core/src/post-edit/orchestration.ts +137 -137
  663. package/packages/lsp-core/src/request-context.test.ts +189 -187
  664. package/packages/lsp-core/src/request-context.ts +160 -165
  665. package/packages/lsp-core/src/tool-surface.test.ts +163 -163
  666. package/packages/lsp-core/src/tools/bun-directory-diagnostics.test.ts +109 -87
  667. package/packages/lsp-core/src/tools/bun-directory-diagnostics.ts +68 -60
  668. package/packages/lsp-core/src/tools/definitions.ts +154 -154
  669. package/packages/lsp-core/src/tools/diagnostics.ts +121 -121
  670. package/packages/lsp-core/src/tools/format.test.ts +43 -43
  671. package/packages/lsp-core/src/tools/format.ts +45 -45
  672. package/packages/lsp-core/src/tools/index.ts +11 -11
  673. package/packages/lsp-core/src/tools/install-decision.ts +31 -31
  674. package/packages/lsp-core/src/tools/navigation.ts +77 -78
  675. package/packages/lsp-core/src/tools/parameters.test.ts +42 -42
  676. package/packages/lsp-core/src/tools/parameters.ts +25 -25
  677. package/packages/lsp-core/src/tools/rename.ts +59 -59
  678. package/packages/lsp-core/src/tools/result.ts +2 -2
  679. package/packages/lsp-core/src/tools/runtime.ts +11 -11
  680. package/packages/lsp-core/src/tools/schema.ts +6 -6
  681. package/packages/lsp-core/src/tools/status.ts +25 -25
  682. package/packages/lsp-core/src/tools/symbols.ts +84 -84
  683. package/packages/lsp-core/src/tools/types.ts +82 -82
  684. package/packages/lsp-core/src/tools.ts +1 -1
  685. package/packages/lsp-daemon/dist/cli.js +8 -2
  686. package/packages/lsp-daemon/dist/client.js +8 -2
  687. package/packages/lsp-daemon/dist/index.js +8 -2
  688. package/packages/lsp-tools-mcp/dist/cli.js +8 -2
  689. package/packages/lsp-tools-mcp/dist/mcp.js +8 -2
  690. package/packages/lsp-tools-mcp/dist/tools.js +8 -2
  691. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  692. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +161 -51
  693. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  694. package/packages/omo-codex/plugin/components/bootstrap/knip.workspace.jsonc +40 -0
  695. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  696. package/packages/omo-codex/plugin/components/bootstrap/scripts/build.mjs +21 -21
  697. package/packages/omo-codex/plugin/components/bootstrap/scripts/generate-manifests.mjs +43 -41
  698. package/packages/omo-codex/plugin/components/bootstrap/src/cli.ts +129 -127
  699. package/packages/omo-codex/plugin/components/bootstrap/src/download.ts +163 -158
  700. package/packages/omo-codex/plugin/components/bootstrap/src/environment.ts +226 -209
  701. package/packages/omo-codex/plugin/components/bootstrap/src/hook.ts +73 -77
  702. package/packages/omo-codex/plugin/components/bootstrap/src/provision.ts +99 -99
  703. package/packages/omo-codex/plugin/components/bootstrap/src/setup.ts +240 -237
  704. package/packages/omo-codex/plugin/components/bootstrap/src/worker.ts +227 -212
  705. package/packages/omo-codex/plugin/components/bootstrap/test/download.test.ts +235 -235
  706. package/packages/omo-codex/plugin/components/bootstrap/test/environment.test.ts +352 -346
  707. package/packages/omo-codex/plugin/components/bootstrap/test/provision.test.ts +426 -419
  708. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  709. package/packages/omo-codex/plugin/components/comment-checker/knip.workspace.jsonc +43 -0
  710. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  711. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  712. package/packages/omo-codex/plugin/components/git-bash/knip.workspace.jsonc +23 -0
  713. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  714. package/packages/omo-codex/plugin/components/git-bash/src/cli.ts +25 -25
  715. package/packages/omo-codex/plugin/components/git-bash/src/codex-hook.ts +118 -119
  716. package/packages/omo-codex/plugin/components/git-bash/src/index.ts +9 -9
  717. package/packages/omo-codex/plugin/components/git-bash/test/codex-hook.test.ts +168 -168
  718. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  719. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/knip.workspace.jsonc +38 -0
  720. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  721. package/packages/omo-codex/plugin/components/lcx/skills/lcx-contribute-bug-fix/scripts/create-pr-body.mjs +57 -57
  722. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
  723. package/packages/omo-codex/plugin/components/lsp/dist/cli.js +8 -2
  724. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  725. package/packages/omo-codex/plugin/components/lsp/knip.workspace.jsonc +42 -0
  726. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  727. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  728. package/packages/omo-codex/plugin/components/rules/knip.workspace.jsonc +40 -0
  729. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  730. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  731. package/packages/omo-codex/plugin/components/teammode/knip.workspace.jsonc +31 -0
  732. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  733. package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-guide.mjs +83 -76
  734. package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-state.mjs +357 -322
  735. package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-transport.mjs +22 -22
  736. package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-worktree.mjs +72 -66
  737. package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team.mjs +314 -304
  738. package/packages/omo-codex/plugin/components/teammode/src/cli.ts +5 -5
  739. package/packages/omo-codex/plugin/components/teammode/src/codex-hook.ts +96 -100
  740. package/packages/omo-codex/plugin/components/teammode/test/thread-title-hook.test.ts +151 -151
  741. package/packages/omo-codex/plugin/components/teammode/test/v2-spawn-schema.test.ts +64 -64
  742. package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +11 -10
  743. package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +11 -10
  744. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  745. package/packages/omo-codex/plugin/components/telemetry/knip.workspace.jsonc +38 -0
  746. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  747. package/packages/omo-codex/plugin/components/test-support/package-smoke-fixture.ts +79 -79
  748. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  749. package/packages/omo-codex/plugin/components/ultrawork/knip.workspace.jsonc +33 -0
  750. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  751. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  752. package/packages/omo-codex/plugin/components/ulw-execute-continuation/knip.workspace.jsonc +38 -0
  753. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  754. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  755. package/packages/omo-codex/plugin/components/ulw-loop/knip.workspace.jsonc +70 -0
  756. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  757. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  758. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  759. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  760. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  761. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  762. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  763. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  764. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  765. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  766. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  767. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  768. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  769. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  770. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  771. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  772. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  773. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  774. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  775. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  776. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  777. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  778. package/packages/omo-codex/plugin/knip.workspace.jsonc +60 -0
  779. package/packages/omo-codex/plugin/package-lock.json +12 -12
  780. package/packages/omo-codex/plugin/package.json +1 -1
  781. package/packages/omo-codex/plugin/scripts/auto-update-plan.mjs +215 -210
  782. package/packages/omo-codex/plugin/scripts/auto-update-state.d.mts +14 -14
  783. package/packages/omo-codex/plugin/scripts/auto-update-state.mjs +53 -53
  784. package/packages/omo-codex/plugin/scripts/auto-update.mjs +321 -285
  785. package/packages/omo-codex/plugin/scripts/build-bundled-mcp-runtimes.mjs +61 -58
  786. package/packages/omo-codex/plugin/scripts/canonical-ultrawork-directive.mjs +12 -6
  787. package/packages/omo-codex/plugin/scripts/entry-guard.mjs +10 -10
  788. package/packages/omo-codex/plugin/scripts/hook-status-message.mjs +32 -38
  789. package/packages/omo-codex/plugin/scripts/install-flow.mjs +30 -30
  790. package/packages/omo-codex/plugin/scripts/materialize-shared-upstreams.mjs +75 -73
  791. package/packages/omo-codex/plugin/scripts/migrate-codex-config/catalog.mjs +81 -75
  792. package/packages/omo-codex/plugin/scripts/migrate-codex-config/config-paths.mjs +32 -32
  793. package/packages/omo-codex/plugin/scripts/migrate-codex-config/context7-placeholder-guard.mjs +101 -98
  794. package/packages/omo-codex/plugin/scripts/migrate-codex-config/multi-agent-mode-guard.mjs +48 -48
  795. package/packages/omo-codex/plugin/scripts/migrate-codex-config/multi-agent-v2-guard.mjs +196 -187
  796. package/packages/omo-codex/plugin/scripts/migrate-codex-config/root-settings.mjs +87 -83
  797. package/packages/omo-codex/plugin/scripts/migrate-codex-config/state.mjs +17 -17
  798. package/packages/omo-codex/plugin/scripts/migrate-codex-config/subagent-limit-guard.mjs +26 -19
  799. package/packages/omo-codex/plugin/scripts/migrate-codex-config/toml-section-editor.mjs +372 -371
  800. package/packages/omo-codex/plugin/scripts/migrate-codex-config.mjs +127 -123
  801. package/packages/omo-codex/plugin/scripts/spawn-command.mjs +8 -8
  802. package/packages/omo-codex/plugin/scripts/sync-hook-status-messages.mjs +67 -67
  803. package/packages/omo-codex/plugin/scripts/sync-skills.mjs +207 -198
  804. package/packages/omo-codex/plugin/scripts/sync-version.mjs +65 -65
  805. package/packages/omo-codex/plugin/shared/knip.workspace.jsonc +17 -0
  806. package/packages/omo-codex/plugin/shared/src/config-loader.ts +57 -60
  807. package/packages/omo-codex/plugin/shared/src/config-migration.ts +130 -115
  808. package/packages/omo-codex/plugin/shared/test/config-loader.test.ts +255 -228
  809. package/packages/omo-codex/plugin/skills/ast-grep/references/recipes.md +1 -1
  810. package/packages/omo-codex/plugin/skills/ast-grep/tests/smoke.ps1 +1 -1
  811. package/packages/omo-codex/plugin/skills/ast-grep/tests/smoke.sh +1 -1
  812. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +16 -16
  813. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +5 -5
  814. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/page-bundle.js +14 -4
  815. package/packages/omo-codex/plugin/skills/browser/scripts/browser-doctor-report.mjs +36 -9
  816. package/packages/omo-codex/plugin/skills/browser/scripts/browser-doctor.mjs +24 -7
  817. package/packages/omo-codex/plugin/skills/browser/scripts/browser-engine-guard.mjs +2 -1
  818. package/packages/omo-codex/plugin/skills/browser/scripts/browser-install.mjs +40 -8
  819. package/packages/omo-codex/plugin/skills/debugging/references/scripts/dap.mjs +280 -170
  820. package/packages/omo-codex/plugin/skills/debugging/references/scripts/fixture-adapter.mjs +104 -42
  821. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/cli.ts +67 -50
  822. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/config.ts +41 -38
  823. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/core/color.ts +109 -94
  824. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/core/page.ts +43 -42
  825. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/core/shadow.ts +38 -29
  826. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/core/source.ts +25 -20
  827. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/detect.ts +63 -45
  828. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/lint.ts +78 -69
  829. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/render/probe-placement.ts +36 -32
  830. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/render/renderer.ts +14 -13
  831. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/render/webview.ts +53 -50
  832. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/report.ts +20 -18
  833. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rule.ts +21 -21
  834. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/ai-color-palette.ts +144 -63
  835. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/cream-palette.ts +41 -27
  836. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/dark-glow.ts +59 -34
  837. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/design-system-color.ts +37 -28
  838. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/gradient-text.ts +68 -45
  839. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/gray-on-color.ts +34 -25
  840. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/index.ts +9 -2
  841. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/low-contrast.ts +106 -43
  842. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/radial-halo.ts +48 -23
  843. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.ts +49 -26
  844. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/animation-opacity.ts +90 -66
  845. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/color-path.ts +43 -6
  846. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/contrast-pairs.ts +75 -38
  847. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/contrast-role.ts +142 -59
  848. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/glow-forms.ts +93 -44
  849. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/gradient-samples.ts +115 -114
  850. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/gradients.ts +77 -66
  851. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/mockup-roots.ts +178 -48
  852. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/page-ignore.ts +6 -2
  853. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/painted-text.ts +171 -108
  854. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/palette-roles.ts +60 -39
  855. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/placeholder-contrast.ts +36 -16
  856. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/stock-accent.ts +48 -18
  857. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/text-colors.ts +88 -62
  858. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.ts +25 -15
  859. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/broken-image.ts +20 -12
  860. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.ts +63 -39
  861. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/index.ts +9 -2
  862. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.ts +53 -25
  863. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.ts +49 -28
  864. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/repeated-container-text.ts +80 -47
  865. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/script-error.ts +42 -34
  866. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/skipped-heading.ts +199 -75
  867. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/support/numbered-label.ts +122 -71
  868. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/support/page-text.ts +32 -24
  869. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.ts +42 -13
  870. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.ts +49 -41
  871. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.ts +10 -10
  872. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/bounce-easing.ts +87 -68
  873. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/buried-raster.ts +83 -64
  874. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.ts +29 -29
  875. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/design-system-radius.ts +33 -26
  876. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.ts +61 -58
  877. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.ts +25 -23
  878. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.ts +16 -14
  879. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.ts +85 -84
  880. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/index.ts +17 -17
  881. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.ts +79 -64
  882. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/marquee.ts +57 -40
  883. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.ts +34 -34
  884. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.ts +92 -58
  885. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.ts +19 -19
  886. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.ts +59 -53
  887. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/side-tab.ts +15 -12
  888. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/appearance.ts +89 -85
  889. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/assert-cases.ts +17 -15
  890. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/borders.ts +178 -136
  891. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/clip-geometry.ts +155 -145
  892. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/css-candidates.ts +60 -54
  893. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/curve-samples.ts +51 -48
  894. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/gradient-pattern.ts +43 -34
  895. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/keyframes.ts +118 -113
  896. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/labels.ts +74 -67
  897. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/raster-state.ts +80 -42
  898. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/index.ts +6 -6
  899. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.ts +116 -55
  900. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.ts +22 -9
  901. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.ts +113 -52
  902. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/cramped-padding.ts +167 -90
  903. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.ts +82 -41
  904. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.ts +74 -37
  905. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/heading-rhythm.ts +49 -24
  906. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/index.ts +14 -3
  907. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.ts +47 -28
  908. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/nested-cards.ts +66 -31
  909. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/straggler.ts +46 -22
  910. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/cards.ts +157 -82
  911. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/clipping.ts +98 -50
  912. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/declared-mockups.ts +100 -36
  913. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/geometry.ts +66 -43
  914. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/hidden-interface.ts +56 -24
  915. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/layout-cases.ts +23 -8
  916. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/line-breaks.ts +28 -16
  917. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/motion.ts +88 -56
  918. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/padding.ts +106 -68
  919. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/rhythm.ts +204 -128
  920. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/text-occlusion.ts +125 -70
  921. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/text-overflow.ts +111 -59
  922. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.ts +27 -16
  923. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/viewport-reflow.ts +38 -23
  924. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/ai-color-palette.ts +17 -6
  925. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.ts +19 -9
  926. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.ts +31 -13
  927. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/bounce-easing.ts +41 -16
  928. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/broken-image.ts +19 -9
  929. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/codex-grid-background.ts +36 -12
  930. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/dark-glow.ts +28 -14
  931. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/em-dash-overuse.ts +17 -9
  932. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/gradient-text.ts +14 -6
  933. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/gray-on-color.ts +18 -7
  934. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/index.ts +18 -1
  935. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/marketing-buzzword.ts +49 -11
  936. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/marquee.ts +16 -6
  937. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/monotonous-spacing.ts +35 -17
  938. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/overused-font.ts +51 -10
  939. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/radial-halo.ts +16 -8
  940. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/side-tab.ts +88 -47
  941. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/accent-scans.ts +103 -62
  942. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/check-source.ts +6 -2
  943. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/corners.ts +148 -80
  944. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/css-effects.ts +86 -66
  945. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/css-scopes.ts +148 -113
  946. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/image-tags.ts +113 -105
  947. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/js-punctuation.ts +47 -30
  948. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/markup-scope.ts +45 -34
  949. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/source-color.ts +64 -29
  950. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/source-shadow.ts +17 -10
  951. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/source-text.ts +128 -86
  952. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/all-caps-body.ts +23 -9
  953. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/design-system-font-size.ts +27 -17
  954. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/design-system-font.ts +27 -17
  955. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.ts +26 -12
  956. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.ts +41 -19
  957. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/index.ts +14 -3
  958. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/italic-serif-display.ts +67 -16
  959. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/justified-text.ts +47 -25
  960. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/line-length.ts +37 -21
  961. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/oversized-h1.ts +35 -14
  962. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/overused-font.ts +83 -38
  963. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/drawn-enlargement.ts +68 -40
  964. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/fading-text.ts +59 -39
  965. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/flex-runs.ts +13 -8
  966. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/font-family.ts +68 -17
  967. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/painted-text.ts +173 -67
  968. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/svg-size.ts +56 -49
  969. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/text-context.ts +155 -78
  970. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/text-lines.ts +38 -28
  971. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/type-hierarchy.ts +43 -38
  972. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/tight-leading.ts +67 -39
  973. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/tiny-text.ts +34 -15
  974. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.ts +52 -22
  975. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/wide-tracking.ts +37 -19
  976. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/snapshot/collect.ts +154 -145
  977. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/snapshot/style-props.ts +121 -21
  978. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/testing/build-snapshot.ts +140 -65
  979. package/packages/omo-codex/plugin/skills/frontend/scripts/detect/types.ts +81 -76
  980. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/color.ts +205 -85
  981. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/css-parse.ts +97 -80
  982. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +129 -101
  983. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/findings.ts +23 -23
  984. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/gradient.ts +43 -42
  985. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/lint.ts +75 -60
  986. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/markup.ts +131 -106
  987. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/selector.ts +28 -25
  988. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +93 -78
  989. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/check-accent-stripes.ts +22 -22
  990. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/check-draft-guard.ts +24 -24
  991. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/collect-files.ts +49 -36
  992. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/draft-guard/findings.ts +10 -9
  993. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/draft-guard/lint.ts +27 -24
  994. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/draft-guard/rules.ts +46 -42
  995. package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/draft-guard/text-nodes.ts +98 -75
  996. package/packages/omo-codex/plugin/skills/lcx-contribute-bug-fix/scripts/create-pr-body.mjs +57 -57
  997. package/packages/omo-codex/plugin/skills/lsp-setup/scripts/detect-lsp.ts +162 -152
  998. package/packages/omo-codex/plugin/skills/lsp-setup/scripts/lsp-server-table.ts +164 -164
  999. package/packages/omo-codex/plugin/skills/lsp-setup/scripts/verify-lsp.ts +94 -91
  1000. package/packages/omo-codex/plugin/skills/programming/SKILL.md +2 -2
  1001. package/packages/omo-codex/plugin/skills/programming/scripts/go/new-project.ts +68 -68
  1002. package/packages/omo-codex/plugin/skills/programming/scripts/python/new-project.ts +64 -64
  1003. package/packages/omo-codex/plugin/skills/programming/scripts/python/new-script.ts +39 -39
  1004. package/packages/omo-codex/plugin/skills/programming/scripts/rust/new-project.ts +60 -57
  1005. package/packages/omo-codex/plugin/skills/programming/scripts/shared/run-tool.ts +7 -7
  1006. package/packages/omo-codex/plugin/skills/programming/scripts/typescript/check-no-excuse-rules.ts +96 -36
  1007. package/packages/omo-codex/plugin/skills/programming/scripts/typescript/check-test-junk-rules.ts +38 -17
  1008. package/packages/omo-codex/plugin/skills/programming/scripts/typescript/check-test-junk.ts +13 -2
  1009. package/packages/omo-codex/plugin/skills/programming/scripts/typescript/mutation-proof.ts +16 -4
  1010. package/packages/omo-codex/plugin/skills/programming/scripts/typescript/new-project.ts +21 -21
  1011. package/packages/omo-codex/plugin/skills/teammode/scripts/team-guide.mjs +83 -76
  1012. package/packages/omo-codex/plugin/skills/teammode/scripts/team-state.mjs +357 -322
  1013. package/packages/omo-codex/plugin/skills/teammode/scripts/team-transport.mjs +22 -22
  1014. package/packages/omo-codex/plugin/skills/teammode/scripts/team-worktree.mjs +72 -66
  1015. package/packages/omo-codex/plugin/skills/teammode/scripts/team.mjs +314 -304
  1016. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +65 -62
  1017. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +73 -70
  1018. package/packages/omo-codex/plugin/skills/ulw-research/scripts/claim-kinds.mjs +178 -67
  1019. package/packages/omo-codex/plugin/skills/ulw-research/scripts/claims-index.mjs +117 -93
  1020. package/packages/omo-codex/plugin/skills/ulw-research/scripts/cli-support.mjs +73 -73
  1021. package/packages/omo-codex/plugin/skills/ulw-research/scripts/contracts.mjs +604 -174
  1022. package/packages/omo-codex/plugin/skills/ulw-research/scripts/conversion-probe.mjs +161 -113
  1023. package/packages/omo-codex/plugin/skills/ulw-research/scripts/css-hiding.mjs +126 -92
  1024. package/packages/omo-codex/plugin/skills/ulw-research/scripts/css-lite.mjs +143 -137
  1025. package/packages/omo-codex/plugin/skills/ulw-research/scripts/design-spec.mjs +123 -107
  1026. package/packages/omo-codex/plugin/skills/ulw-research/scripts/entities.mjs +66 -30
  1027. package/packages/omo-codex/plugin/skills/ulw-research/scripts/entry-guard.mjs +8 -8
  1028. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands-fill.mjs +104 -51
  1029. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands-meaning.mjs +207 -105
  1030. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands-polish.mjs +143 -76
  1031. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands-verify.mjs +164 -120
  1032. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands.mjs +264 -151
  1033. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-derive.mjs +92 -48
  1034. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-expr.mjs +90 -78
  1035. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-fill.mjs +215 -127
  1036. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-ledger-kinds.mjs +305 -131
  1037. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-ledger-schema.mjs +264 -158
  1038. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-ledger.mjs +93 -57
  1039. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-locate.mjs +204 -147
  1040. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-pairs.mjs +126 -108
  1041. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-recompute.mjs +89 -66
  1042. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-binding.mjs +101 -70
  1043. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-brief.mjs +95 -89
  1044. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-claims.mjs +76 -48
  1045. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-csv.mjs +27 -27
  1046. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-lexicon.mjs +101 -78
  1047. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-originals.mjs +124 -77
  1048. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-policy.mjs +132 -83
  1049. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-records.mjs +179 -117
  1050. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-snapshot-readability.mjs +38 -33
  1051. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-sources.mjs +92 -54
  1052. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-state.mjs +27 -27
  1053. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-trace.mjs +81 -48
  1054. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-value-unit.mjs +207 -104
  1055. package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-values.mjs +255 -154
  1056. package/packages/omo-codex/plugin/skills/ulw-research/scripts/format-extract-css.mjs +74 -74
  1057. package/packages/omo-codex/plugin/skills/ulw-research/scripts/format-extract.mjs +161 -134
  1058. package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-fidelity.mjs +118 -59
  1059. package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-figures.mjs +192 -141
  1060. package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-layout.mjs +119 -85
  1061. package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-static.mjs +109 -102
  1062. package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-structure.mjs +105 -86
  1063. package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-text.mjs +169 -113
  1064. package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-foreign-object.mjs +39 -34
  1065. package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-lite.mjs +230 -176
  1066. package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-markup.mjs +150 -128
  1067. package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-text-map.mjs +125 -96
  1068. package/packages/omo-codex/plugin/skills/ulw-research/scripts/layout-probe.mjs +10 -8
  1069. package/packages/omo-codex/plugin/skills/ulw-research/scripts/lexicon.mjs +36 -19
  1070. package/packages/omo-codex/plugin/skills/ulw-research/scripts/markdown-closers.mjs +85 -85
  1071. package/packages/omo-codex/plugin/skills/ulw-research/scripts/md-lite.mjs +133 -125
  1072. package/packages/omo-codex/plugin/skills/ulw-research/scripts/meaning-check.mjs +154 -123
  1073. package/packages/omo-codex/plugin/skills/ulw-research/scripts/number-grammar.mjs +10 -8
  1074. package/packages/omo-codex/plugin/skills/ulw-research/scripts/numerals.mjs +181 -137
  1075. package/packages/omo-codex/plugin/skills/ulw-research/scripts/outcome-start.mjs +50 -36
  1076. package/packages/omo-codex/plugin/skills/ulw-research/scripts/outcome.mjs +194 -153
  1077. package/packages/omo-codex/plugin/skills/ulw-research/scripts/particles-ko.mjs +72 -70
  1078. package/packages/omo-codex/plugin/skills/ulw-research/scripts/placeholder.mjs +130 -112
  1079. package/packages/omo-codex/plugin/skills/ulw-research/scripts/polish-apply.mjs +67 -51
  1080. package/packages/omo-codex/plugin/skills/ulw-research/scripts/polish-diff.mjs +10 -5
  1081. package/packages/omo-codex/plugin/skills/ulw-research/scripts/polish-project.mjs +67 -57
  1082. package/packages/omo-codex/plugin/skills/ulw-research/scripts/polish-rules.mjs +120 -100
  1083. package/packages/omo-codex/plugin/skills/ulw-research/scripts/rational.mjs +74 -73
  1084. package/packages/omo-codex/plugin/skills/ulw-research/scripts/raw-decode.mjs +74 -74
  1085. package/packages/omo-codex/plugin/skills/ulw-research/scripts/raw-locator.mjs +32 -24
  1086. package/packages/omo-codex/plugin/skills/ulw-research/scripts/repair-tracker.mjs +98 -93
  1087. package/packages/omo-codex/plugin/skills/ulw-research/scripts/report-tools-commands.mjs +265 -176
  1088. package/packages/omo-codex/plugin/skills/ulw-research/scripts/report-tools.mjs +65 -62
  1089. package/packages/omo-codex/plugin/skills/ulw-research/scripts/sentence-split.mjs +63 -43
  1090. package/packages/omo-codex/plugin/skills/ulw-research/scripts/source-commands.mjs +199 -125
  1091. package/packages/omo-codex/plugin/skills/ulw-research/scripts/source-refresh.mjs +91 -54
  1092. package/packages/omo-codex/plugin/skills/ulw-research/scripts/source-snapshot.mjs +143 -102
  1093. package/packages/omo-codex/plugin/skills/ulw-research/scripts/source-view.mjs +82 -46
  1094. package/packages/omo-codex/plugin/skills/ulw-research/scripts/sources-citation.mjs +135 -96
  1095. package/packages/omo-codex/plugin/skills/ulw-research/scripts/text-normalize.mjs +63 -48
  1096. package/packages/omo-codex/plugin/skills/ulw-research/scripts/text-similarity.mjs +15 -15
  1097. package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-algebra.mjs +98 -66
  1098. package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-errors.mjs +14 -14
  1099. package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-metadata.mjs +30 -14
  1100. package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-pairs.mjs +57 -45
  1101. package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-precision.mjs +39 -25
  1102. package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-rules-shapes.mjs +79 -44
  1103. package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-rules.mjs +262 -135
  1104. package/packages/omo-codex/plugin/skills/ulw-research/scripts/units.mjs +96 -65
  1105. package/packages/omo-codex/plugin/skills/visual-qa/scripts/ansi.ts +3 -6
  1106. package/packages/omo-codex/plugin/skills/visual-qa/scripts/cli.ts +52 -52
  1107. package/packages/omo-codex/plugin/skills/visual-qa/scripts/east-asian-width.ts +53 -53
  1108. package/packages/omo-codex/plugin/skills/visual-qa/scripts/image-diff.ts +86 -86
  1109. package/packages/omo-codex/plugin/skills/visual-qa/scripts/png-crc.ts +16 -16
  1110. package/packages/omo-codex/plugin/skills/visual-qa/scripts/png-decode.ts +167 -167
  1111. package/packages/omo-codex/plugin/skills/visual-qa/scripts/png-synth.ts +36 -40
  1112. package/packages/omo-codex/plugin/skills/visual-qa/scripts/tui-grid.ts +63 -63
  1113. package/packages/omo-codex/plugin/skills/visual-qa/scripts/types.ts +37 -37
  1114. package/packages/omo-codex/plugin/skills/visual-qa/scripts/visual-qa.mjs +268 -289
  1115. package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +110 -90
  1116. package/packages/omo-codex/plugin/test/aggregate-build.test.mjs +36 -36
  1117. package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +229 -222
  1118. package/packages/omo-codex/plugin/test/aggregate-manifest.test.mjs +66 -66
  1119. package/packages/omo-codex/plugin/test/aggregate-mcp.test.mjs +57 -58
  1120. package/packages/omo-codex/plugin/test/aggregate-model-catalog.test.mjs +54 -54
  1121. package/packages/omo-codex/plugin/test/aggregate-plugin-fixture.mjs +219 -201
  1122. package/packages/omo-codex/plugin/test/aggregate.test.mjs +69 -61
  1123. package/packages/omo-codex/plugin/test/auto-update-release-notes.test.mjs +97 -99
  1124. package/packages/omo-codex/plugin/test/auto-update-restart-notice.test.mjs +250 -231
  1125. package/packages/omo-codex/plugin/test/auto-update-state-persistence.test.mjs +28 -28
  1126. package/packages/omo-codex/plugin/test/auto-update.test.mjs +685 -617
  1127. package/packages/omo-codex/plugin/test/bootstrap-binlinks.test.mjs +261 -250
  1128. package/packages/omo-codex/plugin/test/bootstrap-default-role.test.mjs +68 -57
  1129. package/packages/omo-codex/plugin/test/bootstrap-hooks.test.mjs +189 -178
  1130. package/packages/omo-codex/plugin/test/bootstrap-orchestration.test.mjs +356 -342
  1131. package/packages/omo-codex/plugin/test/bootstrap-ps-guard.test.mjs +151 -131
  1132. package/packages/omo-codex/plugin/test/bootstrap-setup.test.mjs +249 -240
  1133. package/packages/omo-codex/plugin/test/canonical-ultrawork-directive.test.mjs +43 -43
  1134. package/packages/omo-codex/plugin/test/component-bin-names.test.mjs +51 -51
  1135. package/packages/omo-codex/plugin/test/component-bundled-cli.test.mjs +338 -344
  1136. package/packages/omo-codex/plugin/test/component-hook-contract-cases.mjs +324 -318
  1137. package/packages/omo-codex/plugin/test/display-metadata.test.mjs +64 -64
  1138. package/packages/omo-codex/plugin/test/hook-status-message.test.mjs +195 -190
  1139. package/packages/omo-codex/plugin/test/index.js +8 -8
  1140. package/packages/omo-codex/plugin/test/install-time-build-runtime.test.mjs +35 -32
  1141. package/packages/omo-codex/plugin/test/lcx-bug-skills.test.mjs +14 -14
  1142. package/packages/omo-codex/plugin/test/lcx-contribute-bug-fix-template.test.mjs +79 -72
  1143. package/packages/omo-codex/plugin/test/lsp-prebuild-layouts.test.mjs +125 -125
  1144. package/packages/omo-codex/plugin/test/materialize-shared-upstreams.test.mjs +144 -113
  1145. package/packages/omo-codex/plugin/test/mcp-research-servers.test.mjs +17 -17
  1146. package/packages/omo-codex/plugin/test/migrate-codex-config.test.mjs +1062 -1076
  1147. package/packages/omo-codex/plugin/test/multi-agent-v2-regression.test.mjs +68 -62
  1148. package/packages/omo-codex/plugin/test/node-install-surface.test.mjs +28 -24
  1149. package/packages/omo-codex/plugin/test/payload-equivalence.test.mjs +103 -103
  1150. package/packages/omo-codex/plugin/test/scaffold-plan.test.mjs +169 -172
  1151. package/packages/omo-codex/plugin/test/subagent-limit-migration.test.mjs +434 -414
  1152. package/packages/omo-codex/plugin/test/sync-hook-status-messages.test.mjs +129 -129
  1153. package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +174 -162
  1154. package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +110 -109
  1155. package/packages/omo-codex/plugin/test/sync-skills.test.mjs +268 -235
  1156. package/packages/omo-codex/plugin/test/sync-version.test.mjs +54 -43
  1157. package/packages/omo-codex/plugin/test/teammode-archive-ambiguity.test.mjs +58 -57
  1158. package/packages/omo-codex/plugin/test/teammode-communication.test.mjs +64 -34
  1159. package/packages/omo-codex/plugin/test/teammode-safety-fixture.mjs +87 -87
  1160. package/packages/omo-codex/plugin/test/teammode-safety.test.mjs +308 -293
  1161. package/packages/omo-codex/plugin/test/teammode-thread-links.test.mjs +76 -76
  1162. package/packages/omo-codex/plugin/test/teammode-thread-title.test.mjs +235 -156
  1163. package/packages/omo-codex/plugin/test/teammode-transport.test.mjs +650 -297
  1164. package/packages/omo-codex/plugin/test/teammode-worktree.test.mjs +279 -197
  1165. package/packages/omo-codex/plugin/test/ultrawork-skill-pointer.test.mjs +42 -45
  1166. package/packages/omo-codex/plugin/test/ulw-plan-review-state-contract.test.mjs +280 -266
  1167. package/packages/omo-codex/plugin/test/ulw-plan-skill-contract.test.mjs +16 -16
  1168. package/packages/omo-codex/plugin/test/ulw-research-skill-contract.test.mjs +21 -21
  1169. package/packages/omo-codex/plugin/test/windows-console-hide.test.mjs +91 -86
  1170. package/packages/omo-codex/scripts/check-model-catalog-parity.mjs +46 -32
  1171. package/packages/omo-codex/scripts/install-agent-links.test.mjs +334 -333
  1172. package/packages/omo-codex/scripts/install-bin-links.test.mjs +447 -395
  1173. package/packages/omo-codex/scripts/install-cache-copy.test.mjs +248 -230
  1174. package/packages/omo-codex/scripts/install-cli-args.test.mjs +166 -166
  1175. package/packages/omo-codex/scripts/install-config-autonomous-features.test.mjs +136 -136
  1176. package/packages/omo-codex/scripts/install-config-autonomous.test.mjs +44 -44
  1177. package/packages/omo-codex/scripts/install-config-git-bash.test.mjs +78 -78
  1178. package/packages/omo-codex/scripts/install-config-preservation.test.mjs +38 -38
  1179. package/packages/omo-codex/scripts/install-config-reasoning.test.mjs +145 -142
  1180. package/packages/omo-codex/scripts/install-config.test.mjs +505 -532
  1181. package/packages/omo-codex/scripts/install-delegated-command.test.mjs +225 -221
  1182. package/packages/omo-codex/scripts/install-dist/install-local.mjs +192 -82
  1183. package/packages/omo-codex/scripts/install-generated-bundle.test.mjs +184 -178
  1184. package/packages/omo-codex/scripts/install-git-bash-mcp-env.test.mjs +68 -68
  1185. package/packages/omo-codex/scripts/install-hook-targets.test.mjs +152 -152
  1186. package/packages/omo-codex/scripts/install-lazycodex-version-stamp.test.mjs +92 -85
  1187. package/packages/omo-codex/scripts/install-local-bun-global-update.test.mjs +48 -39
  1188. package/packages/omo-codex/scripts/install-local-entrypoint.test.mjs +327 -305
  1189. package/packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs +153 -137
  1190. package/packages/omo-codex/scripts/install-local.mjs +61 -61
  1191. package/packages/omo-codex/scripts/install-local.test.mjs +185 -185
  1192. package/packages/omo-codex/scripts/install-marketplace-cache.test.mjs +166 -152
  1193. package/packages/omo-codex/scripts/install-mcp-context7-runtime.test.mjs +65 -65
  1194. package/packages/omo-codex/scripts/install-mcp-runtime.test.mjs +185 -181
  1195. package/packages/omo-codex/scripts/install-packaged-local.test.mjs +65 -62
  1196. package/packages/omo-codex/scripts/install-project-local-cleanup.test.mjs +292 -324
  1197. package/packages/omo-codex/scripts/install-test-fixtures.mjs +46 -46
  1198. package/packages/shared-skills/index.mjs +5 -7
  1199. package/packages/shared-skills/skill-source-filter.d.ts +7 -7
  1200. package/packages/shared-skills/skill-source-filter.mjs +42 -26
  1201. package/packages/shared-skills/skills/ast-grep/references/recipes.md +1 -1
  1202. package/packages/shared-skills/skills/ast-grep/tests/smoke.ps1 +1 -1
  1203. package/packages/shared-skills/skills/ast-grep/tests/smoke.sh +1 -1
  1204. package/packages/shared-skills/skills/browser/runtime/omowright/index.js +16 -16
  1205. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +5 -5
  1206. package/packages/shared-skills/skills/browser/runtime/omowright/page-bundle.js +14 -4
  1207. package/packages/shared-skills/skills/browser/scripts/browser-doctor-report.mjs +36 -9
  1208. package/packages/shared-skills/skills/browser/scripts/browser-doctor.mjs +24 -7
  1209. package/packages/shared-skills/skills/browser/scripts/browser-engine-guard.mjs +2 -1
  1210. package/packages/shared-skills/skills/browser/scripts/browser-install.mjs +40 -8
  1211. package/packages/shared-skills/skills/debugging/references/scripts/dap.mjs +280 -170
  1212. package/packages/shared-skills/skills/debugging/references/scripts/dap.test.ts +83 -55
  1213. package/packages/shared-skills/skills/debugging/references/scripts/fixture-adapter.mjs +104 -42
  1214. package/packages/shared-skills/skills/frontend/scripts/detect/cli.ts +67 -50
  1215. package/packages/shared-skills/skills/frontend/scripts/detect/config.test.ts +23 -19
  1216. package/packages/shared-skills/skills/frontend/scripts/detect/config.ts +41 -38
  1217. package/packages/shared-skills/skills/frontend/scripts/detect/core/color.test.ts +19 -19
  1218. package/packages/shared-skills/skills/frontend/scripts/detect/core/color.ts +109 -94
  1219. package/packages/shared-skills/skills/frontend/scripts/detect/core/page.ts +43 -42
  1220. package/packages/shared-skills/skills/frontend/scripts/detect/core/shadow.ts +38 -29
  1221. package/packages/shared-skills/skills/frontend/scripts/detect/core/source.ts +25 -20
  1222. package/packages/shared-skills/skills/frontend/scripts/detect/detect.ts +63 -45
  1223. package/packages/shared-skills/skills/frontend/scripts/detect/lint.test.ts +24 -16
  1224. package/packages/shared-skills/skills/frontend/scripts/detect/lint.ts +78 -69
  1225. package/packages/shared-skills/skills/frontend/scripts/detect/render/probe-placement.test.ts +35 -11
  1226. package/packages/shared-skills/skills/frontend/scripts/detect/render/probe-placement.ts +36 -32
  1227. package/packages/shared-skills/skills/frontend/scripts/detect/render/renderer.ts +14 -13
  1228. package/packages/shared-skills/skills/frontend/scripts/detect/render/webview.ts +53 -50
  1229. package/packages/shared-skills/skills/frontend/scripts/detect/report.ts +20 -18
  1230. package/packages/shared-skills/skills/frontend/scripts/detect/rule.ts +21 -21
  1231. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/ai-color-palette.test.ts +84 -53
  1232. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/ai-color-palette.ts +144 -63
  1233. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/cream-palette.test.ts +27 -15
  1234. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/cream-palette.ts +41 -27
  1235. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/dark-glow.test.ts +57 -32
  1236. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/dark-glow.ts +59 -34
  1237. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/design-system-color.test.ts +25 -17
  1238. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/design-system-color.ts +37 -28
  1239. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/gradient-text.test.ts +63 -15
  1240. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/gradient-text.ts +68 -45
  1241. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/gray-on-color.test.ts +49 -24
  1242. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/gray-on-color.ts +34 -25
  1243. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/index.ts +9 -2
  1244. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/low-contrast.test.ts +419 -161
  1245. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/low-contrast.ts +106 -43
  1246. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/placeholder-contrast.test.ts +136 -45
  1247. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/radial-halo.test.ts +42 -28
  1248. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/radial-halo.ts +48 -23
  1249. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.test.ts +45 -18
  1250. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.ts +49 -26
  1251. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/animation-opacity.ts +90 -66
  1252. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/color-path.ts +43 -6
  1253. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/contrast-pairs.ts +75 -38
  1254. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/contrast-role.ts +142 -59
  1255. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/glow-forms.ts +93 -44
  1256. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/gradient-samples.ts +115 -114
  1257. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/gradients.ts +77 -66
  1258. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/mockup-roots.ts +178 -48
  1259. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/page-ignore.ts +6 -2
  1260. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/painted-text.ts +171 -108
  1261. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/palette-roles.ts +60 -39
  1262. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/placeholder-contrast.ts +36 -16
  1263. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/stock-accent.ts +48 -18
  1264. package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/text-colors.ts +88 -62
  1265. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.test.ts +17 -9
  1266. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.ts +25 -15
  1267. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/broken-image.test.ts +22 -16
  1268. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/broken-image.ts +20 -12
  1269. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.test.ts +38 -24
  1270. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.ts +63 -39
  1271. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/index.ts +9 -2
  1272. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.test.ts +14 -9
  1273. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.ts +53 -25
  1274. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.test.ts +69 -37
  1275. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.ts +49 -28
  1276. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/repeated-container-text.test.ts +52 -26
  1277. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/repeated-container-text.ts +80 -47
  1278. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/script-error.test.ts +71 -30
  1279. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/script-error.ts +42 -34
  1280. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/skipped-heading.test.ts +64 -34
  1281. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/skipped-heading.ts +199 -75
  1282. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/support/numbered-label.ts +122 -71
  1283. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/support/page-text.ts +32 -24
  1284. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.test.ts +25 -8
  1285. package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.ts +42 -13
  1286. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.test.ts +40 -31
  1287. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.ts +49 -41
  1288. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.test.ts +30 -25
  1289. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.ts +10 -10
  1290. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/bounce-easing.test.ts +80 -53
  1291. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/bounce-easing.ts +87 -68
  1292. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/buried-raster.test.ts +122 -79
  1293. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/buried-raster.ts +83 -64
  1294. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.test.ts +20 -20
  1295. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.ts +29 -29
  1296. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/design-system-radius.test.ts +27 -27
  1297. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/design-system-radius.ts +33 -26
  1298. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.test.ts +58 -45
  1299. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.ts +61 -58
  1300. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.test.ts +50 -33
  1301. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.ts +25 -23
  1302. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.test.ts +74 -60
  1303. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.ts +16 -14
  1304. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.test.ts +75 -54
  1305. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.ts +85 -84
  1306. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/index.ts +17 -17
  1307. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.test.ts +128 -104
  1308. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.ts +79 -64
  1309. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/marquee.test.ts +67 -50
  1310. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/marquee.ts +57 -40
  1311. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.test.ts +67 -54
  1312. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.ts +34 -34
  1313. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.test.ts +56 -44
  1314. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.ts +92 -58
  1315. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.test.ts +18 -18
  1316. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.ts +19 -19
  1317. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.test.ts +57 -44
  1318. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.ts +59 -53
  1319. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/side-tab.test.ts +112 -72
  1320. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/side-tab.ts +15 -12
  1321. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/appearance.ts +89 -85
  1322. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/assert-cases.ts +17 -15
  1323. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/borders.ts +178 -136
  1324. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/clip-geometry.ts +155 -145
  1325. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/css-candidates.ts +60 -54
  1326. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/curve-samples.ts +51 -48
  1327. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/gradient-pattern.ts +43 -34
  1328. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/keyframes.ts +118 -113
  1329. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/labels.ts +74 -67
  1330. package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/raster-state.ts +80 -42
  1331. package/packages/shared-skills/skills/frontend/scripts/detect/rules/index.ts +6 -6
  1332. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.test.ts +71 -37
  1333. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.ts +116 -55
  1334. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.test.ts +41 -18
  1335. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.ts +22 -9
  1336. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.test.ts +57 -29
  1337. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.ts +113 -52
  1338. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/cramped-padding.test.ts +120 -31
  1339. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/cramped-padding.ts +167 -90
  1340. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.test.ts +43 -24
  1341. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.ts +82 -41
  1342. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.test.ts +34 -12
  1343. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.ts +74 -37
  1344. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/heading-rhythm.test.ts +85 -39
  1345. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/heading-rhythm.ts +49 -24
  1346. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/index.ts +14 -3
  1347. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.test.ts +24 -7
  1348. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.ts +47 -28
  1349. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/nested-cards.test.ts +79 -31
  1350. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/nested-cards.ts +66 -31
  1351. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/straggler.test.ts +33 -14
  1352. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/straggler.ts +46 -22
  1353. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/cards.ts +157 -82
  1354. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/clipping.ts +98 -50
  1355. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/declared-mockups.ts +100 -36
  1356. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/geometry.ts +66 -43
  1357. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/hidden-interface.ts +56 -24
  1358. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/layout-cases.ts +23 -8
  1359. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/line-breaks.ts +28 -16
  1360. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/motion.ts +88 -56
  1361. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/padding.ts +106 -68
  1362. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/rhythm.ts +204 -128
  1363. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/text-occlusion.test.ts +50 -17
  1364. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/text-occlusion.ts +125 -70
  1365. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/text-overflow.test.ts +96 -42
  1366. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/text-overflow.ts +111 -59
  1367. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.test.ts +15 -9
  1368. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.ts +27 -16
  1369. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/viewport-reflow.test.ts +34 -21
  1370. package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/viewport-reflow.ts +38 -23
  1371. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/ai-color-palette.test.ts +6 -6
  1372. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/ai-color-palette.ts +17 -6
  1373. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.test.ts +5 -5
  1374. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.ts +19 -9
  1375. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.test.ts +7 -7
  1376. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.ts +31 -13
  1377. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/bounce-easing.test.ts +20 -9
  1378. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/bounce-easing.ts +41 -16
  1379. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/broken-image.test.ts +17 -17
  1380. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/broken-image.ts +19 -9
  1381. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/codex-grid-background.test.ts +7 -4
  1382. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/codex-grid-background.ts +36 -12
  1383. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/dark-glow.test.ts +8 -8
  1384. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/dark-glow.ts +28 -14
  1385. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/em-dash-overuse.test.ts +6 -6
  1386. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/em-dash-overuse.ts +17 -9
  1387. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/gradient-text.test.ts +5 -5
  1388. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/gradient-text.ts +14 -6
  1389. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/gray-on-color.test.ts +13 -13
  1390. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/gray-on-color.ts +18 -7
  1391. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/index.ts +18 -1
  1392. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/marketing-buzzword.test.ts +5 -5
  1393. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/marketing-buzzword.ts +49 -11
  1394. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/marquee.test.ts +11 -5
  1395. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/marquee.ts +16 -6
  1396. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/monotonous-spacing.test.ts +6 -6
  1397. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/monotonous-spacing.ts +35 -17
  1398. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/overused-font.test.ts +18 -11
  1399. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/overused-font.ts +51 -10
  1400. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/radial-halo.test.ts +12 -9
  1401. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/radial-halo.ts +16 -8
  1402. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/side-tab.test.ts +34 -22
  1403. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/side-tab.ts +88 -47
  1404. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/accent-scans.ts +103 -62
  1405. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/check-source.ts +6 -2
  1406. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/corners.ts +148 -80
  1407. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/css-effects.ts +86 -66
  1408. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/css-scopes.ts +148 -113
  1409. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/image-tags.ts +113 -105
  1410. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/js-punctuation.ts +47 -30
  1411. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/markup-scope.ts +45 -34
  1412. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/source-color.ts +64 -29
  1413. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/source-shadow.ts +17 -10
  1414. package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/source-text.ts +128 -86
  1415. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/all-caps-body.test.ts +24 -15
  1416. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/all-caps-body.ts +23 -9
  1417. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/design-system-font-size.test.ts +16 -12
  1418. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/design-system-font-size.ts +27 -17
  1419. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/design-system-font.test.ts +17 -13
  1420. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/design-system-font.ts +27 -17
  1421. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.test.ts +50 -14
  1422. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.ts +26 -12
  1423. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.test.ts +44 -17
  1424. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.ts +41 -19
  1425. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/index.ts +14 -3
  1426. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/italic-serif-display.test.ts +39 -15
  1427. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/italic-serif-display.ts +67 -16
  1428. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/justified-text.test.ts +39 -22
  1429. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/justified-text.ts +47 -25
  1430. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/line-length.test.ts +65 -29
  1431. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/line-length.ts +37 -21
  1432. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/oversized-h1.test.ts +27 -17
  1433. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/oversized-h1.ts +35 -14
  1434. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/overused-font.test.ts +25 -18
  1435. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/overused-font.ts +83 -38
  1436. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/drawn-enlargement.ts +68 -40
  1437. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/fading-text.ts +59 -39
  1438. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/flex-runs.ts +13 -8
  1439. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/font-family.ts +68 -17
  1440. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/painted-text.test.ts +110 -46
  1441. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/painted-text.ts +173 -67
  1442. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/svg-size.ts +56 -49
  1443. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/text-context.ts +155 -78
  1444. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/text-lines.ts +38 -28
  1445. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/type-hierarchy.ts +43 -38
  1446. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/tight-leading.test.ts +109 -37
  1447. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/tight-leading.ts +67 -39
  1448. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/tiny-text.test.ts +80 -45
  1449. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/tiny-text.ts +34 -15
  1450. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.test.ts +158 -81
  1451. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.ts +52 -22
  1452. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/wide-tracking.test.ts +29 -17
  1453. package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/wide-tracking.ts +37 -19
  1454. package/packages/shared-skills/skills/frontend/scripts/detect/snapshot/collect.ts +154 -145
  1455. package/packages/shared-skills/skills/frontend/scripts/detect/snapshot/style-props.ts +121 -21
  1456. package/packages/shared-skills/skills/frontend/scripts/detect/testing/build-snapshot.ts +140 -65
  1457. package/packages/shared-skills/skills/frontend/scripts/detect/types.ts +81 -76
  1458. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/color.ts +205 -85
  1459. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/css-parse.ts +97 -80
  1460. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +129 -101
  1461. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/findings.ts +23 -23
  1462. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/gradient.ts +43 -42
  1463. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/lint.ts +75 -60
  1464. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/markup.ts +131 -106
  1465. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/selector.ts +28 -25
  1466. package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +93 -78
  1467. package/packages/shared-skills/skills/frontend/scripts/perfection/check-accent-stripes.test.ts +111 -62
  1468. package/packages/shared-skills/skills/frontend/scripts/perfection/check-accent-stripes.ts +22 -22
  1469. package/packages/shared-skills/skills/frontend/scripts/perfection/check-draft-guard.test.ts +89 -65
  1470. package/packages/shared-skills/skills/frontend/scripts/perfection/check-draft-guard.ts +24 -24
  1471. package/packages/shared-skills/skills/frontend/scripts/perfection/collect-files.test.ts +36 -33
  1472. package/packages/shared-skills/skills/frontend/scripts/perfection/collect-files.ts +49 -36
  1473. package/packages/shared-skills/skills/frontend/scripts/perfection/draft-guard/findings.ts +10 -9
  1474. package/packages/shared-skills/skills/frontend/scripts/perfection/draft-guard/lint.ts +27 -24
  1475. package/packages/shared-skills/skills/frontend/scripts/perfection/draft-guard/rules.ts +46 -42
  1476. package/packages/shared-skills/skills/frontend/scripts/perfection/draft-guard/text-nodes.ts +98 -75
  1477. package/packages/shared-skills/skills/lsp-setup/scripts/detect-lsp.ts +162 -152
  1478. package/packages/shared-skills/skills/lsp-setup/scripts/lsp-server-table.ts +164 -164
  1479. package/packages/shared-skills/skills/lsp-setup/scripts/verify-lsp.ts +94 -91
  1480. package/packages/shared-skills/skills/programming/SKILL.md +2 -2
  1481. package/packages/shared-skills/skills/programming/scripts/go/new-project.ts +68 -68
  1482. package/packages/shared-skills/skills/programming/scripts/python/new-project.ts +64 -64
  1483. package/packages/shared-skills/skills/programming/scripts/python/new-script.ts +39 -39
  1484. package/packages/shared-skills/skills/programming/scripts/rust/check-no-excuse-rules.test.ts +57 -57
  1485. package/packages/shared-skills/skills/programming/scripts/rust/new-project.ts +60 -57
  1486. package/packages/shared-skills/skills/programming/scripts/scaffolders.test.ts +113 -67
  1487. package/packages/shared-skills/skills/programming/scripts/shared/run-tool.ts +7 -7
  1488. package/packages/shared-skills/skills/programming/scripts/typescript/check-no-excuse-rules.test.ts +53 -53
  1489. package/packages/shared-skills/skills/programming/scripts/typescript/check-no-excuse-rules.ts +96 -36
  1490. package/packages/shared-skills/skills/programming/scripts/typescript/check-test-junk-rules.ts +38 -17
  1491. package/packages/shared-skills/skills/programming/scripts/typescript/check-test-junk.ts +13 -2
  1492. package/packages/shared-skills/skills/programming/scripts/typescript/mutation-proof.test.ts +4 -1
  1493. package/packages/shared-skills/skills/programming/scripts/typescript/mutation-proof.ts +16 -4
  1494. package/packages/shared-skills/skills/programming/scripts/typescript/new-project.test.ts +78 -92
  1495. package/packages/shared-skills/skills/programming/scripts/typescript/new-project.ts +21 -21
  1496. package/packages/shared-skills/skills/ultimate-browsing/engine/templates/knip.workspace.jsonc +31 -0
  1497. package/packages/shared-skills/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +65 -62
  1498. package/packages/shared-skills/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +73 -70
  1499. package/packages/shared-skills/skills/ulw-plan/scripts/plan-templates.mjs +30 -30
  1500. package/packages/shared-skills/skills/ulw-plan/scripts/scaffold-plan.mjs +131 -123
  1501. package/packages/shared-skills/skills/ulw-research/scripts/claim-kinds.mjs +178 -67
  1502. package/packages/shared-skills/skills/ulw-research/scripts/claim-kinds.test.ts +239 -168
  1503. package/packages/shared-skills/skills/ulw-research/scripts/claim-prefix.test.ts +96 -47
  1504. package/packages/shared-skills/skills/ulw-research/scripts/claims-index.mjs +117 -93
  1505. package/packages/shared-skills/skills/ulw-research/scripts/claims-index.test.ts +147 -129
  1506. package/packages/shared-skills/skills/ulw-research/scripts/cli-support.mjs +73 -73
  1507. package/packages/shared-skills/skills/ulw-research/scripts/cli-support.test.ts +85 -74
  1508. package/packages/shared-skills/skills/ulw-research/scripts/contracts-validation.test.ts +64 -64
  1509. package/packages/shared-skills/skills/ulw-research/scripts/contracts.mjs +604 -174
  1510. package/packages/shared-skills/skills/ulw-research/scripts/contracts.test.ts +171 -139
  1511. package/packages/shared-skills/skills/ulw-research/scripts/conversion-altered.test.ts +268 -115
  1512. package/packages/shared-skills/skills/ulw-research/scripts/conversion-originals.test.ts +355 -230
  1513. package/packages/shared-skills/skills/ulw-research/scripts/conversion-probe-classes.test.ts +1319 -283
  1514. package/packages/shared-skills/skills/ulw-research/scripts/conversion-probe.mjs +161 -113
  1515. package/packages/shared-skills/skills/ulw-research/scripts/conversion-probe.test.ts +211 -173
  1516. package/packages/shared-skills/skills/ulw-research/scripts/copy-returns-fidelity-policy.test.ts +201 -125
  1517. package/packages/shared-skills/skills/ulw-research/scripts/copy-returns-polish.test.ts +230 -150
  1518. package/packages/shared-skills/skills/ulw-research/scripts/copy-returns.test.ts +189 -145
  1519. package/packages/shared-skills/skills/ulw-research/scripts/css-hiding.mjs +126 -92
  1520. package/packages/shared-skills/skills/ulw-research/scripts/css-lite.mjs +143 -137
  1521. package/packages/shared-skills/skills/ulw-research/scripts/css-lite.test.ts +136 -128
  1522. package/packages/shared-skills/skills/ulw-research/scripts/delivery-barrier-meaning.test.ts +206 -113
  1523. package/packages/shared-skills/skills/ulw-research/scripts/delivery-barrier.test.ts +191 -141
  1524. package/packages/shared-skills/skills/ulw-research/scripts/design-spec.mjs +123 -107
  1525. package/packages/shared-skills/skills/ulw-research/scripts/design-spec.test.ts +146 -136
  1526. package/packages/shared-skills/skills/ulw-research/scripts/entities.mjs +66 -30
  1527. package/packages/shared-skills/skills/ulw-research/scripts/entry-guard.mjs +8 -8
  1528. package/packages/shared-skills/skills/ulw-research/scripts/fact-commands-fill.mjs +104 -51
  1529. package/packages/shared-skills/skills/ulw-research/scripts/fact-commands-meaning.mjs +207 -105
  1530. package/packages/shared-skills/skills/ulw-research/scripts/fact-commands-polish.mjs +143 -76
  1531. package/packages/shared-skills/skills/ulw-research/scripts/fact-commands-verify.mjs +164 -120
  1532. package/packages/shared-skills/skills/ulw-research/scripts/fact-commands.mjs +264 -151
  1533. package/packages/shared-skills/skills/ulw-research/scripts/fact-derive-2.test.ts +158 -135
  1534. package/packages/shared-skills/skills/ulw-research/scripts/fact-derive.mjs +92 -48
  1535. package/packages/shared-skills/skills/ulw-research/scripts/fact-derive.test.ts +224 -167
  1536. package/packages/shared-skills/skills/ulw-research/scripts/fact-expr.mjs +90 -78
  1537. package/packages/shared-skills/skills/ulw-research/scripts/fact-fill.mjs +215 -127
  1538. package/packages/shared-skills/skills/ulw-research/scripts/fact-fill.test.ts +204 -177
  1539. package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-grammar.test.ts +293 -141
  1540. package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-kinds.mjs +305 -131
  1541. package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-kinds.test.ts +173 -108
  1542. package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-legacy.test.ts +195 -134
  1543. package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-schema.mjs +264 -158
  1544. package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-schema.test.ts +29 -29
  1545. package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger.mjs +93 -57
  1546. package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger.test.ts +243 -221
  1547. package/packages/shared-skills/skills/ulw-research/scripts/fact-locate.mjs +204 -147
  1548. package/packages/shared-skills/skills/ulw-research/scripts/fact-locate.test.ts +143 -88
  1549. package/packages/shared-skills/skills/ulw-research/scripts/fact-pairs.mjs +126 -108
  1550. package/packages/shared-skills/skills/ulw-research/scripts/fact-pairs.test.ts +120 -113
  1551. package/packages/shared-skills/skills/ulw-research/scripts/fact-recompute.mjs +89 -66
  1552. package/packages/shared-skills/skills/ulw-research/scripts/fact-unit-dimensions-2.test.ts +164 -109
  1553. package/packages/shared-skills/skills/ulw-research/scripts/fact-unit-dimensions.test.ts +237 -178
  1554. package/packages/shared-skills/skills/ulw-research/scripts/fact-unit-rules.test.ts +180 -138
  1555. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-binding.mjs +101 -70
  1556. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-binding.test.ts +56 -52
  1557. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-brief.mjs +95 -89
  1558. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-brief.test.ts +167 -160
  1559. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-claims.mjs +76 -48
  1560. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-csv.mjs +27 -27
  1561. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-lexicon.mjs +101 -78
  1562. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-lexicon.test.ts +113 -90
  1563. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-originals.mjs +124 -77
  1564. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-policy.mjs +132 -83
  1565. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-records.mjs +179 -117
  1566. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-snapshot-readability.mjs +38 -33
  1567. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-sources.mjs +92 -54
  1568. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-state.mjs +27 -27
  1569. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-state.test.ts +32 -32
  1570. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-trace.mjs +81 -48
  1571. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-trace.test.ts +48 -32
  1572. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-value-unit.mjs +207 -104
  1573. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-values.mjs +255 -154
  1574. package/packages/shared-skills/skills/ulw-research/scripts/fidelity-values.test.ts +283 -229
  1575. package/packages/shared-skills/skills/ulw-research/scripts/format-extract-css.mjs +74 -74
  1576. package/packages/shared-skills/skills/ulw-research/scripts/format-extract.mjs +161 -134
  1577. package/packages/shared-skills/skills/ulw-research/scripts/format-extract.test.ts +207 -204
  1578. package/packages/shared-skills/skills/ulw-research/scripts/gates-context.test.ts +47 -42
  1579. package/packages/shared-skills/skills/ulw-research/scripts/gates-fidelity.mjs +118 -59
  1580. package/packages/shared-skills/skills/ulw-research/scripts/gates-fidelity.test.ts +62 -45
  1581. package/packages/shared-skills/skills/ulw-research/scripts/gates-figures.mjs +192 -141
  1582. package/packages/shared-skills/skills/ulw-research/scripts/gates-layout.mjs +119 -85
  1583. package/packages/shared-skills/skills/ulw-research/scripts/gates-layout.test.ts +250 -187
  1584. package/packages/shared-skills/skills/ulw-research/scripts/gates-static-headings.test.ts +13 -10
  1585. package/packages/shared-skills/skills/ulw-research/scripts/gates-static.mjs +109 -102
  1586. package/packages/shared-skills/skills/ulw-research/scripts/gates-static.test.ts +310 -287
  1587. package/packages/shared-skills/skills/ulw-research/scripts/gates-structure.mjs +105 -86
  1588. package/packages/shared-skills/skills/ulw-research/scripts/gates-text.mjs +169 -113
  1589. package/packages/shared-skills/skills/ulw-research/scripts/glossary-vocabulary.test.ts +35 -35
  1590. package/packages/shared-skills/skills/ulw-research/scripts/html-foreign-object.mjs +39 -34
  1591. package/packages/shared-skills/skills/ulw-research/scripts/html-lite.mjs +230 -176
  1592. package/packages/shared-skills/skills/ulw-research/scripts/html-lite.test.ts +190 -183
  1593. package/packages/shared-skills/skills/ulw-research/scripts/html-markup.mjs +150 -128
  1594. package/packages/shared-skills/skills/ulw-research/scripts/html-text-map.mjs +125 -96
  1595. package/packages/shared-skills/skills/ulw-research/scripts/html-text-map.test.ts +311 -128
  1596. package/packages/shared-skills/skills/ulw-research/scripts/layout-probe.mjs +10 -8
  1597. package/packages/shared-skills/skills/ulw-research/scripts/layout-probe.test.ts +65 -62
  1598. package/packages/shared-skills/skills/ulw-research/scripts/lexicon.mjs +36 -19
  1599. package/packages/shared-skills/skills/ulw-research/scripts/lexicon.test.ts +95 -49
  1600. package/packages/shared-skills/skills/ulw-research/scripts/markdown-closers.mjs +85 -85
  1601. package/packages/shared-skills/skills/ulw-research/scripts/md-lite-boundaries.test.ts +44 -34
  1602. package/packages/shared-skills/skills/ulw-research/scripts/md-lite.mjs +133 -125
  1603. package/packages/shared-skills/skills/ulw-research/scripts/md-lite.test.ts +289 -233
  1604. package/packages/shared-skills/skills/ulw-research/scripts/meaning-check.mjs +154 -123
  1605. package/packages/shared-skills/skills/ulw-research/scripts/meaning-check.test.ts +258 -173
  1606. package/packages/shared-skills/skills/ulw-research/scripts/number-grammar.mjs +10 -8
  1607. package/packages/shared-skills/skills/ulw-research/scripts/number-grammar.test.ts +31 -24
  1608. package/packages/shared-skills/skills/ulw-research/scripts/numerals.mjs +181 -137
  1609. package/packages/shared-skills/skills/ulw-research/scripts/numerals.test.ts +141 -113
  1610. package/packages/shared-skills/skills/ulw-research/scripts/outcome-start.mjs +50 -36
  1611. package/packages/shared-skills/skills/ulw-research/scripts/outcome-start.test.ts +89 -75
  1612. package/packages/shared-skills/skills/ulw-research/scripts/outcome.mjs +194 -153
  1613. package/packages/shared-skills/skills/ulw-research/scripts/outcome.test.ts +270 -264
  1614. package/packages/shared-skills/skills/ulw-research/scripts/page-source-locator.test.ts +216 -150
  1615. package/packages/shared-skills/skills/ulw-research/scripts/particles-ko.mjs +72 -70
  1616. package/packages/shared-skills/skills/ulw-research/scripts/particles-ko.test.ts +66 -66
  1617. package/packages/shared-skills/skills/ulw-research/scripts/placeholder.mjs +130 -112
  1618. package/packages/shared-skills/skills/ulw-research/scripts/placeholder.test.ts +82 -55
  1619. package/packages/shared-skills/skills/ulw-research/scripts/polish-apply.mjs +67 -51
  1620. package/packages/shared-skills/skills/ulw-research/scripts/polish-apply.test.ts +397 -321
  1621. package/packages/shared-skills/skills/ulw-research/scripts/polish-diff.mjs +10 -5
  1622. package/packages/shared-skills/skills/ulw-research/scripts/polish-diff.test.ts +186 -134
  1623. package/packages/shared-skills/skills/ulw-research/scripts/polish-markup.test.ts +271 -170
  1624. package/packages/shared-skills/skills/ulw-research/scripts/polish-partial.test.ts +60 -34
  1625. package/packages/shared-skills/skills/ulw-research/scripts/polish-project.mjs +67 -57
  1626. package/packages/shared-skills/skills/ulw-research/scripts/polish-rules.mjs +120 -100
  1627. package/packages/shared-skills/skills/ulw-research/scripts/rational.mjs +74 -73
  1628. package/packages/shared-skills/skills/ulw-research/scripts/rational.test.ts +35 -35
  1629. package/packages/shared-skills/skills/ulw-research/scripts/raw-decode.mjs +74 -74
  1630. package/packages/shared-skills/skills/ulw-research/scripts/raw-locator.mjs +32 -24
  1631. package/packages/shared-skills/skills/ulw-research/scripts/raw-snapshot.test.ts +166 -113
  1632. package/packages/shared-skills/skills/ulw-research/scripts/references-fences.test.ts +14 -12
  1633. package/packages/shared-skills/skills/ulw-research/scripts/repair-tracker.mjs +98 -93
  1634. package/packages/shared-skills/skills/ulw-research/scripts/repair-tracker.test.ts +220 -214
  1635. package/packages/shared-skills/skills/ulw-research/scripts/report-tools-2.test.ts +403 -215
  1636. package/packages/shared-skills/skills/ulw-research/scripts/report-tools-3.test.ts +215 -112
  1637. package/packages/shared-skills/skills/ulw-research/scripts/report-tools-4.test.ts +258 -116
  1638. package/packages/shared-skills/skills/ulw-research/scripts/report-tools-5.test.ts +385 -205
  1639. package/packages/shared-skills/skills/ulw-research/scripts/report-tools-commands.mjs +265 -176
  1640. package/packages/shared-skills/skills/ulw-research/scripts/report-tools.mjs +65 -62
  1641. package/packages/shared-skills/skills/ulw-research/scripts/report-tools.test.ts +295 -170
  1642. package/packages/shared-skills/skills/ulw-research/scripts/sentence-split.mjs +63 -43
  1643. package/packages/shared-skills/skills/ulw-research/scripts/sentence-split.test.ts +90 -90
  1644. package/packages/shared-skills/skills/ulw-research/scripts/snapshot-readability.test.ts +107 -83
  1645. package/packages/shared-skills/skills/ulw-research/scripts/source-commands.mjs +199 -125
  1646. package/packages/shared-skills/skills/ulw-research/scripts/source-integrity.test.ts +359 -205
  1647. package/packages/shared-skills/skills/ulw-research/scripts/source-refresh.mjs +91 -54
  1648. package/packages/shared-skills/skills/ulw-research/scripts/source-snapshot.mjs +143 -102
  1649. package/packages/shared-skills/skills/ulw-research/scripts/source-snapshot.test.ts +110 -86
  1650. package/packages/shared-skills/skills/ulw-research/scripts/source-view.mjs +82 -46
  1651. package/packages/shared-skills/skills/ulw-research/scripts/sources-citation.mjs +135 -96
  1652. package/packages/shared-skills/skills/ulw-research/scripts/sources-citation.test.ts +180 -156
  1653. package/packages/shared-skills/skills/ulw-research/scripts/tests/contracts-support.ts +123 -118
  1654. package/packages/shared-skills/skills/ulw-research/scripts/tests/delivery-barrier-session.ts +37 -24
  1655. package/packages/shared-skills/skills/ulw-research/scripts/tests/derive-clock.ts +5 -1
  1656. package/packages/shared-skills/skills/ulw-research/scripts/tests/fact-derive-support.ts +31 -37
  1657. package/packages/shared-skills/skills/ulw-research/scripts/tests/fact-unit-dimensions-support.ts +26 -17
  1658. package/packages/shared-skills/skills/ulw-research/scripts/tests/fact-unit-rules-support.ts +474 -186
  1659. package/packages/shared-skills/skills/ulw-research/scripts/tests/fidelity-values-support.ts +15 -8
  1660. package/packages/shared-skills/skills/ulw-research/scripts/tests/numeral-classes.ts +324 -163
  1661. package/packages/shared-skills/skills/ulw-research/scripts/tests/report-tools-support.ts +226 -103
  1662. package/packages/shared-skills/skills/ulw-research/scripts/tests/value-mode-support.ts +33 -25
  1663. package/packages/shared-skills/skills/ulw-research/scripts/text-normalize.mjs +63 -48
  1664. package/packages/shared-skills/skills/ulw-research/scripts/text-normalize.test.ts +57 -57
  1665. package/packages/shared-skills/skills/ulw-research/scripts/text-similarity.mjs +15 -15
  1666. package/packages/shared-skills/skills/ulw-research/scripts/text-similarity.test.ts +29 -29
  1667. package/packages/shared-skills/skills/ulw-research/scripts/unit-algebra.mjs +98 -66
  1668. package/packages/shared-skills/skills/ulw-research/scripts/unit-errors.mjs +14 -14
  1669. package/packages/shared-skills/skills/ulw-research/scripts/unit-metadata.mjs +30 -14
  1670. package/packages/shared-skills/skills/ulw-research/scripts/unit-pairs.mjs +57 -45
  1671. package/packages/shared-skills/skills/ulw-research/scripts/unit-precision.mjs +39 -25
  1672. package/packages/shared-skills/skills/ulw-research/scripts/unit-rules-shapes.mjs +79 -44
  1673. package/packages/shared-skills/skills/ulw-research/scripts/unit-rules.mjs +262 -135
  1674. package/packages/shared-skills/skills/ulw-research/scripts/units.mjs +96 -65
  1675. package/packages/shared-skills/skills/ulw-research/scripts/units.test.ts +75 -75
  1676. package/packages/shared-skills/skills/ulw-research/scripts/value-mode-unit-classes.test.ts +411 -177
  1677. package/packages/shared-skills/skills/ulw-research/scripts/value-mode-unit.test.ts +264 -154
  1678. package/packages/shared-skills/skills/ulw-research/scripts/value-rules-cli.test.ts +165 -123
  1679. package/packages/shared-skills/skills/ulw-research/scripts/value-rules-followups.test.ts +49 -25
  1680. package/packages/shared-skills/skills/ulw-research/scripts/value-rules-priority.test.ts +69 -47
  1681. package/packages/shared-skills/skills/visual-qa/scripts/ansi.test.ts +32 -32
  1682. package/packages/shared-skills/skills/visual-qa/scripts/ansi.ts +3 -6
  1683. package/packages/shared-skills/skills/visual-qa/scripts/cli.test.ts +57 -57
  1684. package/packages/shared-skills/skills/visual-qa/scripts/cli.ts +52 -52
  1685. package/packages/shared-skills/skills/visual-qa/scripts/east-asian-width.test.ts +47 -47
  1686. package/packages/shared-skills/skills/visual-qa/scripts/east-asian-width.ts +53 -53
  1687. package/packages/shared-skills/skills/visual-qa/scripts/image-diff.test.ts +55 -55
  1688. package/packages/shared-skills/skills/visual-qa/scripts/image-diff.ts +86 -86
  1689. package/packages/shared-skills/skills/visual-qa/scripts/png-crc.ts +16 -16
  1690. package/packages/shared-skills/skills/visual-qa/scripts/png-decode.test.ts +33 -33
  1691. package/packages/shared-skills/skills/visual-qa/scripts/png-decode.ts +167 -167
  1692. package/packages/shared-skills/skills/visual-qa/scripts/png-synth.ts +36 -40
  1693. package/packages/shared-skills/skills/visual-qa/scripts/skill-doc-fields.test.ts +16 -16
  1694. package/packages/shared-skills/skills/visual-qa/scripts/tui-grid.test.ts +49 -49
  1695. package/packages/shared-skills/skills/visual-qa/scripts/tui-grid.ts +63 -63
  1696. package/packages/shared-skills/skills/visual-qa/scripts/types.ts +37 -37
  1697. package/packages/shared-skills/skills/visual-qa/scripts/visual-qa.mjs +268 -289
  1698. package/postinstall.mjs +76 -80
  1699. package/script/qa/strip-ansi.mjs +3 -3
  1700. package/script/qa/web-terminal-redaction.mjs +8 -8
  1701. package/script/qa/web-terminal-visual-qa.mjs +149 -94
  1702. package/script/qa/xterm-live-terminal.mjs +136 -93
@@ -8,180 +8,246 @@ import { run } from "./report-tools.mjs"
8
8
 
9
9
  const BRIEF = readFileSync(join(import.meta.dir, "tests/fixtures/fidelity-brief-locked.md"), "utf8")
10
10
 
11
- type Row = { fact_id: string; value: string; unit: string; quote: string; raw: string; sentence_id: string; locator: { artifact: string; unit: string; char_start: number; char_end: number } }
11
+ type Row = {
12
+ fact_id: string
13
+ value: string
14
+ unit: string
15
+ quote: string
16
+ raw: string
17
+ sentence_id: string
18
+ locator: { artifact: string; unit: string; char_start: number; char_end: number }
19
+ }
12
20
  type Defect = { code: string; message: string }
13
21
 
14
22
  /** {{F1}} -> {{F1:<its ledger label>}}: fill requires the label. */
15
23
  const labeled = (dir: string) => {
16
- const labels = new Map(readLedger(dir).rows.map((row: { fact_id: string; label: string }) => [row.fact_id, row.label]))
17
- return (placeholder: string) => placeholder.replace(/\{\{(\w+)\}\}/, (_, id) => `{{${id}:${labels.get(id)}}}`)
24
+ const labels = new Map(
25
+ readLedger(dir).rows.map((row: { fact_id: string; label: string }) => [row.fact_id, row.label]),
26
+ )
27
+ return (placeholder: string) => placeholder.replace(/\{\{(\w+)\}\}/, (_, id) => `{{${id}:${labels.get(id)}}}`)
18
28
  }
19
29
 
20
30
  function session() {
21
- const dir = mkdtempSync(join(tmpdir(), "page-source-"))
22
- onTestFinished(() => rmSync(dir, { recursive: true, force: true }))
23
- writeFileSync(join(dir, "brief.md"), BRIEF)
24
- return dir
31
+ const dir = mkdtempSync(join(tmpdir(), "page-source-"))
32
+ onTestFinished(() => rmSync(dir, { recursive: true, force: true }))
33
+ writeFileSync(join(dir, "brief.md"), BRIEF)
34
+ return dir
25
35
  }
26
36
 
27
37
  async function snapshotPage(dir: string, bytes: Buffer | string, id = "S1") {
28
- const file = join(dir, `${id}.capture.html`)
29
- writeFileSync(file, bytes)
30
- const result = await run(["source", "snapshot", "--id", id, "--html", file, "--session-dir", dir])
31
- expect(result.exitCode).toBe(0)
32
- return Buffer.from(bytes)
38
+ const file = join(dir, `${id}.capture.html`)
39
+ writeFileSync(file, bytes)
40
+ const result = await run(["source", "snapshot", "--id", id, "--html", file, "--session-dir", dir])
41
+ expect(result.exitCode).toBe(0)
42
+ return Buffer.from(bytes)
33
43
  }
34
44
 
35
- const find = (dir: string, anchor: string, id = "S1") => run(["fact", "add", "--session-dir", dir, "--source", id, "--find", anchor, "--json"])
36
- const quote = (dir: string, match: string) => run(["fact", "quote", "--session-dir", dir, "--source", "S1", "--match", match, "--json"])
45
+ const find = (dir: string, anchor: string, id = "S1") =>
46
+ run(["fact", "add", "--session-dir", dir, "--source", id, "--find", anchor, "--json"])
47
+ const quote = (dir: string, match: string) =>
48
+ run(["fact", "quote", "--session-dir", dir, "--source", "S1", "--match", match, "--json"])
37
49
 
38
50
  /** Fill a report citing every given placeholder, then verify it; returns the verify result and the filled html. */
39
51
  async function fillAndVerify(dir: string, placeholders: string[]) {
40
- const body = [
41
- '<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Bridge</title></head><body><h1>Bridge</h1>',
42
- "<h2>Findings</h2>",
43
- ...placeholders.map(labeled(dir)).map((placeholder) => `<p>The source states ${placeholder} [S1].</p>`),
44
- "<h2>How this report was made</h2><p>Collected from one cited public page [S1].</p>",
45
- '<h2>Sources</h2><ol><li id="s1">[S1] Bridge page, retrieved 2026-10-01.</li></ol></body></html>',
46
- ].join("\n")
47
- writeFileSync(join(dir, "report.src.html"), body)
48
- const filled = await run(["fact", "fill", join(dir, "report.src.html"), "--out", join(dir, "report.html"), "--session-dir", dir])
49
- expect(filled.exitCode).toBe(0)
50
- const verified = await run(["fact", "verify", join(dir, "report.html"), "--session-dir", dir])
51
- return { verified, html: readFileSync(join(dir, "report.html"), "utf8") }
52
+ const body = [
53
+ '<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Bridge</title></head><body><h1>Bridge</h1>',
54
+ "<h2>Findings</h2>",
55
+ ...placeholders.map(labeled(dir)).map((placeholder) => `<p>The source states ${placeholder} [S1].</p>`),
56
+ "<h2>How this report was made</h2><p>Collected from one cited public page [S1].</p>",
57
+ '<h2>Sources</h2><ol><li id="s1">[S1] Bridge page, retrieved 2026-10-01.</li></ol></body></html>',
58
+ ].join("\n")
59
+ writeFileSync(join(dir, "report.src.html"), body)
60
+ const filled = await run([
61
+ "fact",
62
+ "fill",
63
+ join(dir, "report.src.html"),
64
+ "--out",
65
+ join(dir, "report.html"),
66
+ "--session-dir",
67
+ dir,
68
+ ])
69
+ expect(filled.exitCode).toBe(0)
70
+ const verified = await run(["fact", "verify", join(dir, "report.html"), "--session-dir", dir])
71
+ return { verified, html: readFileSync(join(dir, "report.html"), "utf8") }
52
72
  }
53
73
 
54
74
  const codes = (json: { defects: Defect[] }) => json.defects.map((defect) => defect.code)
55
75
 
56
76
  const PAGE = [
57
- "<!doctype html><html><head><title>Deck 9 m</title><style>.deck{font-size:14px}</style><script>var span = 9;</script></head><body>",
58
- '<p>The main deck spans <span title="9 m" data-v="320">320</span> m in total.</p>',
59
- '<p>The upper deck spans <span style="font-size:14px">330</span> m.</p>',
60
- "</body></html>",
77
+ "<!doctype html><html><head><title>Deck 9 m</title><style>.deck{font-size:14px}</style><script>var span = 9;</script></head><body>",
78
+ '<p>The main deck spans <span title="9 m" data-v="320">320</span> m in total.</p>',
79
+ '<p>The upper deck spans <span style="font-size:14px">330</span> m.</p>',
80
+ "</body></html>",
61
81
  ].join("")
62
82
 
63
83
  describe("page sources locate on visible text nodes only", () => {
64
- test("#given numbers in title, data and style attributes #when fact add --find runs #then the text-node value is recorded and verifies", async () => {
65
- const dir = session()
66
- const raw = await snapshotPage(dir, PAGE)
67
- const main = await find(dir, "main deck spans")
68
- const upper = await find(dir, "upper deck spans")
69
- expect(main.exitCode).toBe(0)
70
- const row: Row = main.json.data.row
71
- expect([row.value, row.unit, row.quote]).toEqual(["320", "m", "The main deck spans 320 m in total."])
72
- expect(row.locator).toMatchObject({ artifact: "raw.bin", unit: "bytes" })
73
- const span = raw.subarray(row.locator.char_start, row.locator.char_end).toString("utf8")
74
- expect(span).toBe('The main deck spans <span title="9 m" data-v="320">320</span> m in total.')
75
- expect([upper.json.data.row.value, upper.json.data.row.unit]).toEqual(["330", "m"])
76
- const { verified, html } = await fillAndVerify(dir, ["{{F1}}", "{{F2}}"])
77
- expect(verified.exitCode).toBe(0)
78
- expect(html).toContain("320 m")
79
- expect(html).not.toContain(">9 m<")
80
- })
81
-
82
- test("#given the same anchor in a hidden element and a visible paragraph #when --find runs #then only the visible number is located", async () => {
83
- const dir = session()
84
- const hidden = [
85
- '<div style="display:none"><p>Visible length is 999 m.</p></div>',
86
- '<div style="color:red; visibility: hidden"><p>Shadow length is 998 m.</p></div>',
87
- '<p aria-hidden="true">Ghost length is 997 m.</p>',
88
- "<p hidden>Secret length is 996 m.</p>",
89
- "<noscript>Script length is 995 m.</noscript>",
90
- "<template><p>Template length is 994 m.</p></template>",
91
- ].join("")
92
- await snapshotPage(dir, `<html><head><script>Inline length is 993 m.</script><style>.x{}</style></head><body>${hidden}<p>Visible length is 410 m.</p></body></html>`)
93
- const visible = await find(dir, "Visible length is")
94
- expect(visible.exitCode).toBe(0)
95
- expect(visible.json.data.row.value).toBe("410")
96
- for (const anchor of ["Shadow length is", "Ghost length is", "Secret length is", "Script length is", "Template length is", "Inline length is"]) {
97
- const result = await find(dir, anchor)
98
- expect([anchor, result.json.error]).toEqual([anchor, "fact_not_located"])
99
- }
100
- expect(readFileSync(join(dir, "sources/S1/text.txt"), "utf8")).toBe("Visible length is 410 m.")
101
- })
102
-
103
- test("#given elements hidden by <style> rules on a class, an id, or a tag #when --find runs #then they are not located", async () => {
104
- const dir = session()
105
- const style = "<style>.d-none, .sr-only { display: none } #gone{visibility:hidden} footer{color:red;display:none} div p.keep{display:none}</style>"
106
- const body = '<p class="lead d-none">Class length is 999 m.</p><p id="gone">Id length is 998 m.</p><footer>Tag length is 997 m.</footer><p class="keep">Kept length is 410 m.</p>'
107
- await snapshotPage(dir, `<html><head>${style}</head><body>${body}</body></html>`)
108
- for (const anchor of ["Class length is", "Id length is", "Tag length is"]) expect([anchor, (await find(dir, anchor)).json.error]).toEqual([anchor, "fact_not_located"])
109
- expect((await find(dir, "Kept length is")).json.data.row.value).toBe("410")
110
- })
111
-
112
- test("#given rules inside @media (a responsive or a print copy) #when --find runs #then the text is located, and an unconditional rule still hides", async () => {
113
- const dir = session()
114
- const style = "<style>@media (max-width:600px){.desk{display:none}} @media print{.screen{display:none}} .d-none{display:none}</style>"
115
- const body = '<p class="desk">Desktop length is 410 m.</p><p class="screen">Screen length is 411 m.</p><p class="d-none">Mobile length is 412 m.</p>'
116
- await snapshotPage(dir, `<html><head>${style}</head><body>${body}</body></html>`)
117
- const desktop = await find(dir, "Desktop length is")
118
- expect(desktop.exitCode).toBe(0)
119
- expect(desktop.json.data.row.value).toBe("410")
120
- expect((await find(dir, "Screen length is")).json.data.row.value).toBe("411")
121
- expect((await find(dir, "Mobile length is")).json.error).toBe("fact_not_located")
122
- })
123
-
124
- test("#given a quote across inline markup #when fact quote --match runs #then the quotation is that sentence, indexed like sentences.jsonl", async () => {
125
- const dir = session()
126
- await snapshotPage(dir, "<!doctype html><html><head><script>var x = 1;</script></head><body><p>Construction opens <em>no earlier</em> than 2027. Funding is pending.</p></body></html>")
127
- const result = await quote(dir, "opens no earlier than 2027")
128
- expect(result.exitCode).toBe(0)
129
- const row: Row = result.json.data.row
130
- expect(row.quote).toBe("Construction opens no earlier than 2027.")
131
- const sentences = readFileSync(join(dir, "sources/S1/sentences.jsonl"), "utf8").trim().split("\n").map((line) => JSON.parse(line))
132
- expect(sentences.find((entry: { sid: string }) => entry.sid === row.sentence_id)?.text).toBe(row.quote)
133
- const { verified, html } = await fillAndVerify(dir, ["{{Q1}}"])
134
- expect(verified.exitCode).toBe(0)
135
- expect(html).toContain("Construction opens no earlier than 2027.")
136
- expect(html).not.toContain("&lt;")
137
- })
138
-
139
- test("#given a table cell without </td> #when --table runs #then the quote is the cell text, not the rest of the document", async () => {
140
- const dir = session()
141
- const raw = await snapshotPage(dir, '<table id="sizes"><tr><th>Name</th><th>Length</th></tr><tr><td>Deck</td><td><b title="9">320</b> m</tr></table><p>Appendix 9 holds notes.</p>')
142
- const result = await run(["fact", "add", "--session-dir", dir, "--source", "S1", "--table", "sizes", "--row", "Deck", "--col", "Length", "--json"])
143
- expect(result.exitCode).toBe(0)
144
- const row: Row = result.json.data.row
145
- expect([row.value, row.unit, row.quote]).toEqual(["320", "m", "320 m"])
146
- expect(raw.subarray(row.locator.char_start, row.locator.char_end).toString()).toBe('320</b> m')
147
- expect((await fillAndVerify(dir, ["{{F1}}"])).verified.exitCode).toBe(0)
148
- })
84
+ test("#given numbers in title, data and style attributes #when fact add --find runs #then the text-node value is recorded and verifies", async () => {
85
+ const dir = session()
86
+ const raw = await snapshotPage(dir, PAGE)
87
+ const main = await find(dir, "main deck spans")
88
+ const upper = await find(dir, "upper deck spans")
89
+ expect(main.exitCode).toBe(0)
90
+ const row: Row = main.json.data.row
91
+ expect([row.value, row.unit, row.quote]).toEqual(["320", "m", "The main deck spans 320 m in total."])
92
+ expect(row.locator).toMatchObject({ artifact: "raw.bin", unit: "bytes" })
93
+ const span = raw.subarray(row.locator.char_start, row.locator.char_end).toString("utf8")
94
+ expect(span).toBe('The main deck spans <span title="9 m" data-v="320">320</span> m in total.')
95
+ expect([upper.json.data.row.value, upper.json.data.row.unit]).toEqual(["330", "m"])
96
+ const { verified, html } = await fillAndVerify(dir, ["{{F1}}", "{{F2}}"])
97
+ expect(verified.exitCode).toBe(0)
98
+ expect(html).toContain("320 m")
99
+ expect(html).not.toContain(">9 m<")
100
+ })
101
+
102
+ test("#given the same anchor in a hidden element and a visible paragraph #when --find runs #then only the visible number is located", async () => {
103
+ const dir = session()
104
+ const hidden = [
105
+ '<div style="display:none"><p>Visible length is 999 m.</p></div>',
106
+ '<div style="color:red; visibility: hidden"><p>Shadow length is 998 m.</p></div>',
107
+ '<p aria-hidden="true">Ghost length is 997 m.</p>',
108
+ "<p hidden>Secret length is 996 m.</p>",
109
+ "<noscript>Script length is 995 m.</noscript>",
110
+ "<template><p>Template length is 994 m.</p></template>",
111
+ ].join("")
112
+ await snapshotPage(
113
+ dir,
114
+ `<html><head><script>Inline length is 993 m.</script><style>.x{}</style></head><body>${hidden}<p>Visible length is 410 m.</p></body></html>`,
115
+ )
116
+ const visible = await find(dir, "Visible length is")
117
+ expect(visible.exitCode).toBe(0)
118
+ expect(visible.json.data.row.value).toBe("410")
119
+ for (const anchor of [
120
+ "Shadow length is",
121
+ "Ghost length is",
122
+ "Secret length is",
123
+ "Script length is",
124
+ "Template length is",
125
+ "Inline length is",
126
+ ]) {
127
+ const result = await find(dir, anchor)
128
+ expect([anchor, result.json.error]).toEqual([anchor, "fact_not_located"])
129
+ }
130
+ expect(readFileSync(join(dir, "sources/S1/text.txt"), "utf8")).toBe("Visible length is 410 m.")
131
+ })
132
+
133
+ test("#given elements hidden by <style> rules on a class, an id, or a tag #when --find runs #then they are not located", async () => {
134
+ const dir = session()
135
+ const style =
136
+ "<style>.d-none, .sr-only { display: none } #gone{visibility:hidden} footer{color:red;display:none} div p.keep{display:none}</style>"
137
+ const body =
138
+ '<p class="lead d-none">Class length is 999 m.</p><p id="gone">Id length is 998 m.</p><footer>Tag length is 997 m.</footer><p class="keep">Kept length is 410 m.</p>'
139
+ await snapshotPage(dir, `<html><head>${style}</head><body>${body}</body></html>`)
140
+ for (const anchor of ["Class length is", "Id length is", "Tag length is"])
141
+ expect([anchor, (await find(dir, anchor)).json.error]).toEqual([anchor, "fact_not_located"])
142
+ expect((await find(dir, "Kept length is")).json.data.row.value).toBe("410")
143
+ })
144
+
145
+ test("#given rules inside @media (a responsive or a print copy) #when --find runs #then the text is located, and an unconditional rule still hides", async () => {
146
+ const dir = session()
147
+ const style =
148
+ "<style>@media (max-width:600px){.desk{display:none}} @media print{.screen{display:none}} .d-none{display:none}</style>"
149
+ const body =
150
+ '<p class="desk">Desktop length is 410 m.</p><p class="screen">Screen length is 411 m.</p><p class="d-none">Mobile length is 412 m.</p>'
151
+ await snapshotPage(dir, `<html><head>${style}</head><body>${body}</body></html>`)
152
+ const desktop = await find(dir, "Desktop length is")
153
+ expect(desktop.exitCode).toBe(0)
154
+ expect(desktop.json.data.row.value).toBe("410")
155
+ expect((await find(dir, "Screen length is")).json.data.row.value).toBe("411")
156
+ expect((await find(dir, "Mobile length is")).json.error).toBe("fact_not_located")
157
+ })
158
+
159
+ test("#given a quote across inline markup #when fact quote --match runs #then the quotation is that sentence, indexed like sentences.jsonl", async () => {
160
+ const dir = session()
161
+ await snapshotPage(
162
+ dir,
163
+ "<!doctype html><html><head><script>var x = 1;</script></head><body><p>Construction opens <em>no earlier</em> than 2027. Funding is pending.</p></body></html>",
164
+ )
165
+ const result = await quote(dir, "opens no earlier than 2027")
166
+ expect(result.exitCode).toBe(0)
167
+ const row: Row = result.json.data.row
168
+ expect(row.quote).toBe("Construction opens no earlier than 2027.")
169
+ const sentences = readFileSync(join(dir, "sources/S1/sentences.jsonl"), "utf8")
170
+ .trim()
171
+ .split("\n")
172
+ .map((line) => JSON.parse(line))
173
+ expect(sentences.find((entry: { sid: string }) => entry.sid === row.sentence_id)?.text).toBe(row.quote)
174
+ const { verified, html } = await fillAndVerify(dir, ["{{Q1}}"])
175
+ expect(verified.exitCode).toBe(0)
176
+ expect(html).toContain("Construction opens no earlier than 2027.")
177
+ expect(html).not.toContain("&lt;")
178
+ })
179
+
180
+ test("#given a table cell without </td> #when --table runs #then the quote is the cell text, not the rest of the document", async () => {
181
+ const dir = session()
182
+ const raw = await snapshotPage(
183
+ dir,
184
+ '<table id="sizes"><tr><th>Name</th><th>Length</th></tr><tr><td>Deck</td><td><b title="9">320</b> m</tr></table><p>Appendix 9 holds notes.</p>',
185
+ )
186
+ const result = await run([
187
+ "fact",
188
+ "add",
189
+ "--session-dir",
190
+ dir,
191
+ "--source",
192
+ "S1",
193
+ "--table",
194
+ "sizes",
195
+ "--row",
196
+ "Deck",
197
+ "--col",
198
+ "Length",
199
+ "--json",
200
+ ])
201
+ expect(result.exitCode).toBe(0)
202
+ const row: Row = result.json.data.row
203
+ expect([row.value, row.unit, row.quote]).toEqual(["320", "m", "320 m"])
204
+ expect(raw.subarray(row.locator.char_start, row.locator.char_end).toString()).toBe("320</b> m")
205
+ expect((await fillAndVerify(dir, ["{{F1}}"])).verified.exitCode).toBe(0)
206
+ })
149
207
  })
150
208
 
151
209
  describe("byte offsets count the source's own encoding", () => {
152
- const latin1 = (text: string) => Buffer.from(text, "latin1")
153
-
154
- test("#given a declared ISO-8859-1 page with Caf\\xE9 before the value #when added and verified unchanged #then offsets hit the real bytes and verify is clean", async () => {
155
- const dir = session()
156
- const raw = await snapshotPage(dir, latin1('<html><head><meta charset="iso-8859-1"></head><body><p>Caf\u00e9. The span is 320 m.</p></body></html>'))
157
- const result = await find(dir, "The span is")
158
- const row: Row = result.json.data.row
159
- expect(raw.subarray(row.locator.char_start, row.locator.char_end).toString("latin1")).toBe("The span is 320 m.")
160
- const { verified } = await fillAndVerify(dir, ["{{F1}}"])
161
- expect(verified.exitCode).toBe(0)
162
- expect(codes(verified.json)).not.toContain("relocated")
163
- })
164
-
165
- test("#given an undeclared Latin-1 byte with more than 32 characters before the value #when verified unchanged #then no false relocation", async () => {
166
- const dir = session()
167
- await snapshotPage(dir, latin1("<p>Caf\u00e9 au lait is served here all day long. The span is 320 m.</p>"))
168
- await find(dir, "The span is")
169
- const { verified } = await fillAndVerify(dir, ["{{F1}}"])
170
- expect(verified.exitCode).toBe(0)
171
- expect(codes(verified.json)).toEqual([])
172
- })
173
-
174
- test("#given an EUC-KR page #when added and verified unchanged #then the locator spans the EUC-KR bytes and verify is clean", async () => {
175
- const dir = session()
176
- const bytes = Buffer.from("3c68746d6c3e3c686561643e3c6d65746120636861727365743d226575632d6b72223e3c2f686561643e3c626f64793e3c703ec1d620b1b3b7aec0c720b1e6c0ccb4c220333230206d20c0ccb4d92e3c2f703e3c2f626f64793e3c2f68746d6c3e", "hex")
177
- const raw = await snapshotPage(dir, bytes)
178
- const result = await find(dir, "\uae38\uc774\ub294")
179
- expect(result.exitCode).toBe(0)
180
- const row: Row = result.json.data.row
181
- expect(row.value).toBe("320")
182
- expect(raw.subarray(row.locator.char_start, row.locator.char_end).toString("hex")).toBe("c1d620b1b3b7aec0c720b1e6c0ccb4c220333230206d20c0ccb4d92e")
183
- const { verified } = await fillAndVerify(dir, ["{{F1}}"])
184
- expect(verified.exitCode).toBe(0)
185
- expect(codes(verified.json)).toEqual([])
186
- })
210
+ const latin1 = (text: string) => Buffer.from(text, "latin1")
211
+
212
+ test("#given a declared ISO-8859-1 page with Caf\\xE9 before the value #when added and verified unchanged #then offsets hit the real bytes and verify is clean", async () => {
213
+ const dir = session()
214
+ const raw = await snapshotPage(
215
+ dir,
216
+ latin1('<html><head><meta charset="iso-8859-1"></head><body><p>Caf\u00e9. The span is 320 m.</p></body></html>'),
217
+ )
218
+ const result = await find(dir, "The span is")
219
+ const row: Row = result.json.data.row
220
+ expect(raw.subarray(row.locator.char_start, row.locator.char_end).toString("latin1")).toBe("The span is 320 m.")
221
+ const { verified } = await fillAndVerify(dir, ["{{F1}}"])
222
+ expect(verified.exitCode).toBe(0)
223
+ expect(codes(verified.json)).not.toContain("relocated")
224
+ })
225
+
226
+ test("#given an undeclared Latin-1 byte with more than 32 characters before the value #when verified unchanged #then no false relocation", async () => {
227
+ const dir = session()
228
+ await snapshotPage(dir, latin1("<p>Caf\u00e9 au lait is served here all day long. The span is 320 m.</p>"))
229
+ await find(dir, "The span is")
230
+ const { verified } = await fillAndVerify(dir, ["{{F1}}"])
231
+ expect(verified.exitCode).toBe(0)
232
+ expect(codes(verified.json)).toEqual([])
233
+ })
234
+
235
+ test("#given an EUC-KR page #when added and verified unchanged #then the locator spans the EUC-KR bytes and verify is clean", async () => {
236
+ const dir = session()
237
+ const bytes = Buffer.from(
238
+ "3c68746d6c3e3c686561643e3c6d65746120636861727365743d226575632d6b72223e3c2f686561643e3c626f64793e3c703ec1d620b1b3b7aec0c720b1e6c0ccb4c220333230206d20c0ccb4d92e3c2f703e3c2f626f64793e3c2f68746d6c3e",
239
+ "hex",
240
+ )
241
+ const raw = await snapshotPage(dir, bytes)
242
+ const result = await find(dir, "\uae38\uc774\ub294")
243
+ expect(result.exitCode).toBe(0)
244
+ const row: Row = result.json.data.row
245
+ expect(row.value).toBe("320")
246
+ expect(raw.subarray(row.locator.char_start, row.locator.char_end).toString("hex")).toBe(
247
+ "c1d620b1b3b7aec0c720b1e6c0ccb4c220333230206d20c0ccb4d92e",
248
+ )
249
+ const { verified } = await fillAndVerify(dir, ["{{F1}}"])
250
+ expect(verified.exitCode).toBe(0)
251
+ expect(codes(verified.json)).toEqual([])
252
+ })
187
253
  })
@@ -5,36 +5,36 @@
5
5
  // module has no dependency on a sibling not yet landed; the units module reconciles the two tables.
6
6
  // Hangul unit words (won, dalleo, jo, eok, ...) need no row: they are read by code point.
7
7
  const UNIT_READINGS = new Map([
8
- ["%", "open"], // peosenteu
9
- ["%p", "open"], // peosenteu pointeu
10
- ["pp", "open"], // peosenteu pointeu
11
- ["m", "open"], // miteo
12
- ["mm", "open"], // millimiteo
13
- ["cm", "open"], // sentimiteo
14
- ["km", "open"], // killomiteo
15
- ["kg", "closed"], // killogeuraem
16
- ["g", "closed"], // geuraem
17
- ["t", "closed"], // ton
18
- ["s", "open"], // cho
19
- ["ms", "open"], // millicho
20
- ["min", "closed"], // bun
21
- ["h", "closed"], // sigan
22
- ["B", "open"], // baiteu
23
- ["KB", "open"], // killobaiteu
24
- ["MB", "open"], // megabaiteu
25
- ["GB", "open"], // gigabaiteu
26
- ["TB", "open"], // terabaiteu
27
- ["C", "open"], // do
28
- ["\u00B0C", "open"], // do
29
- ["F", "open"], // do
30
- ["\u00B0F", "open"], // do
31
- ["USD", "open"], // dalleo
32
- ["$", "open"], // dalleo
33
- ["KRW", "closed"], // won
34
- ["EUR", "open"], // yuro
35
- ["JPY", "closed"], // en
36
- ["x", "open"], // bae
37
- ["\u00D7", "open"], // bae
8
+ ["%", "open"], // peosenteu
9
+ ["%p", "open"], // peosenteu pointeu
10
+ ["pp", "open"], // peosenteu pointeu
11
+ ["m", "open"], // miteo
12
+ ["mm", "open"], // millimiteo
13
+ ["cm", "open"], // sentimiteo
14
+ ["km", "open"], // killomiteo
15
+ ["kg", "closed"], // killogeuraem
16
+ ["g", "closed"], // geuraem
17
+ ["t", "closed"], // ton
18
+ ["s", "open"], // cho
19
+ ["ms", "open"], // millicho
20
+ ["min", "closed"], // bun
21
+ ["h", "closed"], // sigan
22
+ ["B", "open"], // baiteu
23
+ ["KB", "open"], // killobaiteu
24
+ ["MB", "open"], // megabaiteu
25
+ ["GB", "open"], // gigabaiteu
26
+ ["TB", "open"], // terabaiteu
27
+ ["C", "open"], // do
28
+ ["\u00B0C", "open"], // do
29
+ ["F", "open"], // do
30
+ ["\u00B0F", "open"], // do
31
+ ["USD", "open"], // dalleo
32
+ ["$", "open"], // dalleo
33
+ ["KRW", "closed"], // won
34
+ ["EUR", "open"], // yuro
35
+ ["JPY", "closed"], // en
36
+ ["x", "open"], // bae
37
+ ["\u00D7", "open"], // bae
38
38
  ])
39
39
 
40
40
  // Sino-Korean digit readings: yeong il i sam sa o yuk chil pal gu.
@@ -47,16 +47,16 @@ const GROUP_READINGS = Object.freeze({ 4: "closed", 8: "closed", 12: "open", 16:
47
47
 
48
48
  // [particle, form after an open vowel, form after final l, form after another final consonant]
49
49
  const PARTICLES = Object.freeze([
50
- Object.freeze(["\uC73C\uB85C", "\uB85C", "\uB85C", "\uC73C\uB85C"]),
51
- Object.freeze(["\uB85C", "\uB85C", "\uB85C", "\uC73C\uB85C"]),
52
- Object.freeze(["\uC740", "\uB294", "\uC740", "\uC740"]),
53
- Object.freeze(["\uB294", "\uB294", "\uC740", "\uC740"]),
54
- Object.freeze(["\uC774", "\uAC00", "\uC774", "\uC774"]),
55
- Object.freeze(["\uAC00", "\uAC00", "\uC774", "\uC774"]),
56
- Object.freeze(["\uC744", "\uB97C", "\uC744", "\uC744"]),
57
- Object.freeze(["\uB97C", "\uB97C", "\uC744", "\uC744"]),
58
- Object.freeze(["\uC640", "\uC640", "\uACFC", "\uACFC"]),
59
- Object.freeze(["\uACFC", "\uC640", "\uACFC", "\uACFC"]),
50
+ Object.freeze(["\uC73C\uB85C", "\uB85C", "\uB85C", "\uC73C\uB85C"]),
51
+ Object.freeze(["\uB85C", "\uB85C", "\uB85C", "\uC73C\uB85C"]),
52
+ Object.freeze(["\uC740", "\uB294", "\uC740", "\uC740"]),
53
+ Object.freeze(["\uB294", "\uB294", "\uC740", "\uC740"]),
54
+ Object.freeze(["\uC774", "\uAC00", "\uC774", "\uC774"]),
55
+ Object.freeze(["\uAC00", "\uAC00", "\uC774", "\uC774"]),
56
+ Object.freeze(["\uC744", "\uB97C", "\uC744", "\uC744"]),
57
+ Object.freeze(["\uB97C", "\uB97C", "\uC744", "\uC744"]),
58
+ Object.freeze(["\uC640", "\uC640", "\uACFC", "\uACFC"]),
59
+ Object.freeze(["\uACFC", "\uC640", "\uACFC", "\uACFC"]),
60
60
  ])
61
61
  const FORM_INDEX = Object.freeze({ open: 1, l: 2, closed: 3 })
62
62
 
@@ -66,43 +66,45 @@ const BOUNDARY = /^[\s\p{P}]/u
66
66
  const TRAILING_DIGITS = /([0-9][0-9,]*)(?:\.([0-9]+))?$/
67
67
 
68
68
  function hangulReading(char) {
69
- const code = char.codePointAt(0)
70
- if (code === undefined || code < HANGUL_FIRST || code > HANGUL_LAST) return null
71
- const finalConsonant = (code - HANGUL_FIRST) % 28
72
- if (finalConsonant === 0) return "open"
73
- return finalConsonant === 8 ? "l" : "closed"
69
+ const code = char.codePointAt(0)
70
+ if (code === undefined || code < HANGUL_FIRST || code > HANGUL_LAST) return null
71
+ const finalConsonant = (code - HANGUL_FIRST) % 28
72
+ if (finalConsonant === 0) return "open"
73
+ return finalConsonant === 8 ? "l" : "closed"
74
74
  }
75
75
 
76
76
  function numberReading(text) {
77
- const match = TRAILING_DIGITS.exec(text)
78
- if (!match) return null
79
- // Decimals read digit by digit: 6.50 ends on yeong, so a trailing 0 after the point is closed.
80
- if (match[2] !== undefined) return DIGIT_READINGS[Number(match[2].at(-1))]
81
- const digits = match[1].replaceAll(",", "")
82
- const trailingZeros = digits.length - digits.replace(/0+$/, "").length
83
- if (trailingZeros === 0 || trailingZeros === digits.length) return DIGIT_READINGS[Number(digits.at(-1))]
84
- // From 10^4 up the spoken end is the last non-zero group word (sipjo ends on jo), not sip/baek/cheon.
85
- if (trailingZeros >= 4) return GROUP_READINGS[trailingZeros - (trailingZeros % 4)] ?? null
86
- return TEN_POWER_READINGS[trailingZeros - 1]
77
+ const match = TRAILING_DIGITS.exec(text)
78
+ if (!match) return null
79
+ // Decimals read digit by digit: 6.50 ends on yeong, so a trailing 0 after the point is closed.
80
+ if (match[2] !== undefined) return DIGIT_READINGS[Number(match[2].at(-1))]
81
+ const digits = match[1].replaceAll(",", "")
82
+ const trailingZeros = digits.length - digits.replace(/0+$/, "").length
83
+ if (trailingZeros === 0 || trailingZeros === digits.length) return DIGIT_READINGS[Number(digits.at(-1))]
84
+ // From 10^4 up the spoken end is the last non-zero group word (sipjo ends on jo), not sip/baek/cheon.
85
+ if (trailingZeros >= 4) return GROUP_READINGS[trailingZeros - (trailingZeros % 4)] ?? null
86
+ return TEN_POWER_READINGS[trailingZeros - 1]
87
87
  }
88
88
 
89
89
  export function finalReading(valueText, unitToken) {
90
- if (unitToken !== null && unitToken !== undefined) return UNIT_READINGS.get(unitToken) ?? hangulReading(unitToken.at(-1) ?? "")
91
- const text = valueText.trimEnd()
92
- const last = text.at(-1)
93
- if (last === undefined) return null
94
- const hangul = hangulReading(last)
95
- if (hangul !== null) return hangul
96
- if (last >= "0" && last <= "9") return numberReading(text)
97
- const token = /[^\s0-9.,]+$/u.exec(text)?.[0] ?? ""
98
- return UNIT_READINGS.get(token) ?? null
90
+ if (unitToken !== null && unitToken !== undefined)
91
+ return UNIT_READINGS.get(unitToken) ?? hangulReading(unitToken.at(-1) ?? "")
92
+ const text = valueText.trimEnd()
93
+ const last = text.at(-1)
94
+ if (last === undefined) return null
95
+ const hangul = hangulReading(last)
96
+ if (hangul !== null) return hangul
97
+ if (last >= "0" && last <= "9") return numberReading(text)
98
+ const token = /[^\s0-9.,]+$/u.exec(text)?.[0] ?? ""
99
+ return UNIT_READINGS.get(token) ?? null
99
100
  }
100
101
 
101
102
  export function rewriteParticle(following, reading) {
102
- const entry = PARTICLES.find(([particle]) => following.startsWith(particle))
103
- if (entry === undefined) return { text: following, applied: false, candidate: false }
104
- const rest = following.slice(entry[0].length)
105
- const index = FORM_INDEX[reading]
106
- if ((rest !== "" && !BOUNDARY.test(rest)) || index === undefined) return { text: following, applied: false, candidate: true }
107
- return { text: entry[index] + rest, applied: true, candidate: true }
103
+ const entry = PARTICLES.find(([particle]) => following.startsWith(particle))
104
+ if (entry === undefined) return { text: following, applied: false, candidate: false }
105
+ const rest = following.slice(entry[0].length)
106
+ const index = FORM_INDEX[reading]
107
+ if ((rest !== "" && !BOUNDARY.test(rest)) || index === undefined)
108
+ return { text: following, applied: false, candidate: true }
109
+ return { text: entry[index] + rest, applied: true, candidate: true }
108
110
  }