oh-my-opencode 5.1.68 → 5.1.70
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.
- package/.agents/skills/codex-qa/scripts/lib/app-server-client.mjs +86 -69
- package/.agents/skills/codex-qa/scripts/lib/app-server-client.test.js +14 -14
- package/.agents/skills/codex-qa/scripts/lib/mock-model.mjs +17 -17
- package/.agents/skills/opencode-qa/scripts/lib/fake-openai-events.mjs +1 -2
- package/.agents/skills/opencode-qa/scripts/lib/fake-openai-server.mjs +33 -15
- package/.agents/skills/senpi-qa/scripts/resolve-evidence-dir.test.mjs +6 -10
- package/bin/knip.workspace.jsonc +11 -0
- package/bin/oh-my-opencode.js +83 -83
- package/bin/oh-my-opencode.test.ts +131 -114
- package/bin/platform.d.ts +14 -14
- package/bin/platform.js +32 -28
- package/bin/platform.test.ts +120 -146
- package/bin/version-mismatch.js +4 -4
- package/bin/version-mismatch.test.ts +52 -40
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +1 -1
- package/dist/agents/prometheus/index.d.ts +1 -1
- package/dist/agents/sisyphus-junior/index.d.ts +1 -1
- package/dist/cli/cli-program.d.ts +3 -0
- package/dist/cli/config-manager.d.ts +2 -2
- package/dist/cli/index.js +4078 -671
- package/dist/cli/install-native/index.d.ts +1 -1
- package/dist/cli/service-auth/accounts-gate.d.ts +3 -3
- package/dist/cli/service-auth/cli-service-auth-state.d.ts +4 -0
- package/dist/cli/service-auth/closed-device-login.d.ts +10 -0
- package/dist/cli/service-auth/commands.d.ts +9 -2
- package/dist/cli/service-auth/device-flow.d.ts +2 -0
- package/dist/cli/service-auth/index.d.ts +1 -1
- package/dist/cli/service-auth/keychain-helper/fake-keychain.test-support.d.ts +2 -1
- package/dist/cli/service-auth/loopback.d.ts +2 -0
- package/dist/cli/service-auth/machine-device.d.ts +17 -0
- package/dist/cli/service-auth/machine-digest.d.ts +6 -0
- package/dist/cli/service-auth/protocol.d.ts +2 -2
- package/dist/cli/service-auth/session.d.ts +20 -1
- package/dist/cli-node/index.js +4078 -671
- package/dist/config/index.d.ts +1 -1
- package/dist/config-migration/index.d.ts +4 -4
- package/dist/features/background-agent/index.d.ts +1 -1
- package/dist/features/btw-side/context-injector.d.ts +1 -1
- package/dist/features/btw-side/index.d.ts +1 -1
- package/dist/features/context-injector/index.d.ts +1 -1
- package/dist/features/hook-message-injector/injector.d.ts +1 -1
- package/dist/features/monitor/output-injector.d.ts +1 -0
- package/dist/features/team-mode/tools/index.d.ts +1 -1
- package/dist/features/tmux-subagent/decision-engine.d.ts +1 -1
- package/dist/features/tool-metadata-store/index.d.ts +1 -1
- package/dist/hooks/auto-slash-command/hook.d.ts +1 -1
- package/dist/hooks/auto-update-checker/index.d.ts +1 -1
- package/dist/hooks/edit-error-recovery/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/keyword-detector/ultrawork/index.d.ts +2 -2
- package/dist/hooks/rules-injector/injector.d.ts +2 -2
- package/dist/index.js +1317 -1019
- package/dist/locales/en.d.ts +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/migration.d.ts +2 -2
- package/dist/shared/model-capabilities-cache.d.ts +1 -1
- package/dist/shared/model-error-classifier.d.ts +1 -1
- package/dist/shared/model-requirements.d.ts +1 -1
- package/dist/shared/model-resolver.d.ts +1 -1
- package/dist/shared/opencode-config-dir.d.ts +1 -1
- package/dist/shared/prompt-async-gate.d.ts +1 -1
- package/dist/skills/ast-grep/references/recipes.md +1 -1
- package/dist/skills/ast-grep/tests/smoke.ps1 +1 -1
- package/dist/skills/ast-grep/tests/smoke.sh +1 -1
- package/dist/skills/browser/runtime/omowright/index.js +16 -16
- package/dist/skills/browser/runtime/omowright/manifest.json +5 -5
- package/dist/skills/browser/runtime/omowright/page-bundle.js +14 -4
- package/dist/skills/browser/scripts/browser-doctor-report.mjs +36 -9
- package/dist/skills/browser/scripts/browser-doctor.mjs +24 -7
- package/dist/skills/browser/scripts/browser-engine-guard.mjs +2 -1
- package/dist/skills/browser/scripts/browser-install.mjs +40 -8
- package/dist/skills/debugging/references/scripts/dap.mjs +280 -170
- package/dist/skills/debugging/references/scripts/dap.test.ts +83 -55
- package/dist/skills/debugging/references/scripts/fixture-adapter.mjs +104 -42
- package/dist/skills/frontend/scripts/detect/cli.ts +67 -50
- package/dist/skills/frontend/scripts/detect/config.test.ts +23 -19
- package/dist/skills/frontend/scripts/detect/config.ts +41 -38
- package/dist/skills/frontend/scripts/detect/core/color.test.ts +19 -19
- package/dist/skills/frontend/scripts/detect/core/color.ts +109 -94
- package/dist/skills/frontend/scripts/detect/core/page.ts +43 -42
- package/dist/skills/frontend/scripts/detect/core/shadow.ts +38 -29
- package/dist/skills/frontend/scripts/detect/core/source.ts +25 -20
- package/dist/skills/frontend/scripts/detect/detect.ts +63 -45
- package/dist/skills/frontend/scripts/detect/lint.test.ts +24 -16
- package/dist/skills/frontend/scripts/detect/lint.ts +78 -69
- package/dist/skills/frontend/scripts/detect/render/probe-placement.test.ts +35 -11
- package/dist/skills/frontend/scripts/detect/render/probe-placement.ts +36 -32
- package/dist/skills/frontend/scripts/detect/render/renderer.ts +14 -13
- package/dist/skills/frontend/scripts/detect/render/webview.ts +53 -50
- package/dist/skills/frontend/scripts/detect/report.ts +20 -18
- package/dist/skills/frontend/scripts/detect/rule.ts +21 -21
- package/dist/skills/frontend/scripts/detect/rules/color/ai-color-palette.test.ts +84 -53
- package/dist/skills/frontend/scripts/detect/rules/color/ai-color-palette.ts +144 -63
- package/dist/skills/frontend/scripts/detect/rules/color/cream-palette.test.ts +27 -15
- package/dist/skills/frontend/scripts/detect/rules/color/cream-palette.ts +41 -27
- package/dist/skills/frontend/scripts/detect/rules/color/dark-glow.test.ts +57 -32
- package/dist/skills/frontend/scripts/detect/rules/color/dark-glow.ts +59 -34
- package/dist/skills/frontend/scripts/detect/rules/color/design-system-color.test.ts +25 -17
- package/dist/skills/frontend/scripts/detect/rules/color/design-system-color.ts +37 -28
- package/dist/skills/frontend/scripts/detect/rules/color/gradient-text.test.ts +63 -15
- package/dist/skills/frontend/scripts/detect/rules/color/gradient-text.ts +68 -45
- package/dist/skills/frontend/scripts/detect/rules/color/gray-on-color.test.ts +49 -24
- package/dist/skills/frontend/scripts/detect/rules/color/gray-on-color.ts +34 -25
- package/dist/skills/frontend/scripts/detect/rules/color/index.ts +9 -2
- package/dist/skills/frontend/scripts/detect/rules/color/low-contrast.test.ts +419 -161
- package/dist/skills/frontend/scripts/detect/rules/color/low-contrast.ts +106 -43
- package/dist/skills/frontend/scripts/detect/rules/color/placeholder-contrast.test.ts +136 -45
- package/dist/skills/frontend/scripts/detect/rules/color/radial-halo.test.ts +42 -28
- package/dist/skills/frontend/scripts/detect/rules/color/radial-halo.ts +48 -23
- package/dist/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.test.ts +45 -18
- package/dist/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.ts +49 -26
- package/dist/skills/frontend/scripts/detect/rules/color/support/animation-opacity.ts +90 -66
- package/dist/skills/frontend/scripts/detect/rules/color/support/color-path.ts +43 -6
- package/dist/skills/frontend/scripts/detect/rules/color/support/contrast-pairs.ts +75 -38
- package/dist/skills/frontend/scripts/detect/rules/color/support/contrast-role.ts +142 -59
- package/dist/skills/frontend/scripts/detect/rules/color/support/glow-forms.ts +93 -44
- package/dist/skills/frontend/scripts/detect/rules/color/support/gradient-samples.ts +115 -114
- package/dist/skills/frontend/scripts/detect/rules/color/support/gradients.ts +77 -66
- package/dist/skills/frontend/scripts/detect/rules/color/support/mockup-roots.ts +178 -48
- package/dist/skills/frontend/scripts/detect/rules/color/support/page-ignore.ts +6 -2
- package/dist/skills/frontend/scripts/detect/rules/color/support/painted-text.ts +171 -108
- package/dist/skills/frontend/scripts/detect/rules/color/support/palette-roles.ts +60 -39
- package/dist/skills/frontend/scripts/detect/rules/color/support/placeholder-contrast.ts +36 -16
- package/dist/skills/frontend/scripts/detect/rules/color/support/stock-accent.ts +48 -18
- package/dist/skills/frontend/scripts/detect/rules/color/support/text-colors.ts +88 -62
- package/dist/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.test.ts +17 -9
- package/dist/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.ts +25 -15
- package/dist/skills/frontend/scripts/detect/rules/copy/broken-image.test.ts +22 -16
- package/dist/skills/frontend/scripts/detect/rules/copy/broken-image.ts +20 -12
- package/dist/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.test.ts +38 -24
- package/dist/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.ts +63 -39
- package/dist/skills/frontend/scripts/detect/rules/copy/index.ts +9 -2
- package/dist/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.test.ts +14 -9
- package/dist/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.ts +53 -25
- package/dist/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.test.ts +69 -37
- package/dist/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.ts +49 -28
- package/dist/skills/frontend/scripts/detect/rules/copy/repeated-container-text.test.ts +52 -26
- package/dist/skills/frontend/scripts/detect/rules/copy/repeated-container-text.ts +80 -47
- package/dist/skills/frontend/scripts/detect/rules/copy/script-error.test.ts +71 -30
- package/dist/skills/frontend/scripts/detect/rules/copy/script-error.ts +42 -34
- package/dist/skills/frontend/scripts/detect/rules/copy/skipped-heading.test.ts +64 -34
- package/dist/skills/frontend/scripts/detect/rules/copy/skipped-heading.ts +199 -75
- package/dist/skills/frontend/scripts/detect/rules/copy/support/numbered-label.ts +122 -71
- package/dist/skills/frontend/scripts/detect/rules/copy/support/page-text.ts +32 -24
- package/dist/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.test.ts +25 -8
- package/dist/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.ts +42 -13
- package/dist/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.test.ts +40 -31
- package/dist/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.ts +49 -41
- package/dist/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.test.ts +30 -25
- package/dist/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.ts +10 -10
- package/dist/skills/frontend/scripts/detect/rules/decoration/bounce-easing.test.ts +80 -53
- package/dist/skills/frontend/scripts/detect/rules/decoration/bounce-easing.ts +87 -68
- package/dist/skills/frontend/scripts/detect/rules/decoration/buried-raster.test.ts +122 -79
- package/dist/skills/frontend/scripts/detect/rules/decoration/buried-raster.ts +83 -64
- package/dist/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.test.ts +20 -20
- package/dist/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.ts +29 -29
- package/dist/skills/frontend/scripts/detect/rules/decoration/design-system-radius.test.ts +27 -27
- package/dist/skills/frontend/scripts/detect/rules/decoration/design-system-radius.ts +33 -26
- package/dist/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.test.ts +58 -45
- package/dist/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.ts +61 -58
- package/dist/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.test.ts +50 -33
- package/dist/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.ts +25 -23
- package/dist/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.test.ts +74 -60
- package/dist/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.ts +16 -14
- package/dist/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.test.ts +75 -54
- package/dist/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.ts +85 -84
- package/dist/skills/frontend/scripts/detect/rules/decoration/index.ts +17 -17
- package/dist/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.test.ts +128 -104
- package/dist/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.ts +79 -64
- package/dist/skills/frontend/scripts/detect/rules/decoration/marquee.test.ts +67 -50
- package/dist/skills/frontend/scripts/detect/rules/decoration/marquee.ts +57 -40
- package/dist/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.test.ts +67 -54
- package/dist/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.ts +34 -34
- package/dist/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.test.ts +56 -44
- package/dist/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.ts +92 -58
- package/dist/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.test.ts +18 -18
- package/dist/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.ts +19 -19
- package/dist/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.test.ts +57 -44
- package/dist/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.ts +59 -53
- package/dist/skills/frontend/scripts/detect/rules/decoration/side-tab.test.ts +112 -72
- package/dist/skills/frontend/scripts/detect/rules/decoration/side-tab.ts +15 -12
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/appearance.ts +89 -85
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/assert-cases.ts +17 -15
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/borders.ts +178 -136
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/clip-geometry.ts +155 -145
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/css-candidates.ts +60 -54
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/curve-samples.ts +51 -48
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/gradient-pattern.ts +43 -34
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/keyframes.ts +118 -113
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/labels.ts +74 -67
- package/dist/skills/frontend/scripts/detect/rules/decoration/support/raster-state.ts +80 -42
- package/dist/skills/frontend/scripts/detect/rules/index.ts +6 -6
- package/dist/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.test.ts +71 -37
- package/dist/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.ts +116 -55
- package/dist/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.test.ts +41 -18
- package/dist/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.ts +22 -9
- package/dist/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.test.ts +57 -29
- package/dist/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.ts +113 -52
- package/dist/skills/frontend/scripts/detect/rules/layout/cramped-padding.test.ts +120 -31
- package/dist/skills/frontend/scripts/detect/rules/layout/cramped-padding.ts +167 -90
- package/dist/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.test.ts +43 -24
- package/dist/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.ts +82 -41
- package/dist/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.test.ts +34 -12
- package/dist/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.ts +74 -37
- package/dist/skills/frontend/scripts/detect/rules/layout/heading-rhythm.test.ts +85 -39
- package/dist/skills/frontend/scripts/detect/rules/layout/heading-rhythm.ts +49 -24
- package/dist/skills/frontend/scripts/detect/rules/layout/index.ts +14 -3
- package/dist/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.test.ts +24 -7
- package/dist/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.ts +47 -28
- package/dist/skills/frontend/scripts/detect/rules/layout/nested-cards.test.ts +79 -31
- package/dist/skills/frontend/scripts/detect/rules/layout/nested-cards.ts +66 -31
- package/dist/skills/frontend/scripts/detect/rules/layout/straggler.test.ts +33 -14
- package/dist/skills/frontend/scripts/detect/rules/layout/straggler.ts +46 -22
- package/dist/skills/frontend/scripts/detect/rules/layout/support/cards.ts +157 -82
- package/dist/skills/frontend/scripts/detect/rules/layout/support/clipping.ts +98 -50
- package/dist/skills/frontend/scripts/detect/rules/layout/support/declared-mockups.ts +100 -36
- package/dist/skills/frontend/scripts/detect/rules/layout/support/geometry.ts +66 -43
- package/dist/skills/frontend/scripts/detect/rules/layout/support/hidden-interface.ts +56 -24
- package/dist/skills/frontend/scripts/detect/rules/layout/support/layout-cases.ts +23 -8
- package/dist/skills/frontend/scripts/detect/rules/layout/support/line-breaks.ts +28 -16
- package/dist/skills/frontend/scripts/detect/rules/layout/support/motion.ts +88 -56
- package/dist/skills/frontend/scripts/detect/rules/layout/support/padding.ts +106 -68
- package/dist/skills/frontend/scripts/detect/rules/layout/support/rhythm.ts +204 -128
- package/dist/skills/frontend/scripts/detect/rules/layout/text-occlusion.test.ts +50 -17
- package/dist/skills/frontend/scripts/detect/rules/layout/text-occlusion.ts +125 -70
- package/dist/skills/frontend/scripts/detect/rules/layout/text-overflow.test.ts +96 -42
- package/dist/skills/frontend/scripts/detect/rules/layout/text-overflow.ts +111 -59
- package/dist/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.test.ts +15 -9
- package/dist/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.ts +27 -16
- package/dist/skills/frontend/scripts/detect/rules/layout/viewport-reflow.test.ts +34 -21
- package/dist/skills/frontend/scripts/detect/rules/layout/viewport-reflow.ts +38 -23
- package/dist/skills/frontend/scripts/detect/rules/source/ai-color-palette.test.ts +6 -6
- package/dist/skills/frontend/scripts/detect/rules/source/ai-color-palette.ts +17 -6
- package/dist/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.test.ts +5 -5
- package/dist/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.ts +19 -9
- package/dist/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.test.ts +7 -7
- package/dist/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.ts +31 -13
- package/dist/skills/frontend/scripts/detect/rules/source/bounce-easing.test.ts +20 -9
- package/dist/skills/frontend/scripts/detect/rules/source/bounce-easing.ts +41 -16
- package/dist/skills/frontend/scripts/detect/rules/source/broken-image.test.ts +17 -17
- package/dist/skills/frontend/scripts/detect/rules/source/broken-image.ts +19 -9
- package/dist/skills/frontend/scripts/detect/rules/source/codex-grid-background.test.ts +7 -4
- package/dist/skills/frontend/scripts/detect/rules/source/codex-grid-background.ts +36 -12
- package/dist/skills/frontend/scripts/detect/rules/source/dark-glow.test.ts +8 -8
- package/dist/skills/frontend/scripts/detect/rules/source/dark-glow.ts +28 -14
- package/dist/skills/frontend/scripts/detect/rules/source/em-dash-overuse.test.ts +6 -6
- package/dist/skills/frontend/scripts/detect/rules/source/em-dash-overuse.ts +17 -9
- package/dist/skills/frontend/scripts/detect/rules/source/gradient-text.test.ts +5 -5
- package/dist/skills/frontend/scripts/detect/rules/source/gradient-text.ts +14 -6
- package/dist/skills/frontend/scripts/detect/rules/source/gray-on-color.test.ts +13 -13
- package/dist/skills/frontend/scripts/detect/rules/source/gray-on-color.ts +18 -7
- package/dist/skills/frontend/scripts/detect/rules/source/index.ts +18 -1
- package/dist/skills/frontend/scripts/detect/rules/source/marketing-buzzword.test.ts +5 -5
- package/dist/skills/frontend/scripts/detect/rules/source/marketing-buzzword.ts +49 -11
- package/dist/skills/frontend/scripts/detect/rules/source/marquee.test.ts +11 -5
- package/dist/skills/frontend/scripts/detect/rules/source/marquee.ts +16 -6
- package/dist/skills/frontend/scripts/detect/rules/source/monotonous-spacing.test.ts +6 -6
- package/dist/skills/frontend/scripts/detect/rules/source/monotonous-spacing.ts +35 -17
- package/dist/skills/frontend/scripts/detect/rules/source/overused-font.test.ts +18 -11
- package/dist/skills/frontend/scripts/detect/rules/source/overused-font.ts +51 -10
- package/dist/skills/frontend/scripts/detect/rules/source/radial-halo.test.ts +12 -9
- package/dist/skills/frontend/scripts/detect/rules/source/radial-halo.ts +16 -8
- package/dist/skills/frontend/scripts/detect/rules/source/side-tab.test.ts +34 -22
- package/dist/skills/frontend/scripts/detect/rules/source/side-tab.ts +88 -47
- package/dist/skills/frontend/scripts/detect/rules/source/support/accent-scans.ts +103 -62
- package/dist/skills/frontend/scripts/detect/rules/source/support/check-source.ts +6 -2
- package/dist/skills/frontend/scripts/detect/rules/source/support/corners.ts +148 -80
- package/dist/skills/frontend/scripts/detect/rules/source/support/css-effects.ts +86 -66
- package/dist/skills/frontend/scripts/detect/rules/source/support/css-scopes.ts +148 -113
- package/dist/skills/frontend/scripts/detect/rules/source/support/image-tags.ts +113 -105
- package/dist/skills/frontend/scripts/detect/rules/source/support/js-punctuation.ts +47 -30
- package/dist/skills/frontend/scripts/detect/rules/source/support/markup-scope.ts +45 -34
- package/dist/skills/frontend/scripts/detect/rules/source/support/source-color.ts +64 -29
- package/dist/skills/frontend/scripts/detect/rules/source/support/source-shadow.ts +17 -10
- package/dist/skills/frontend/scripts/detect/rules/source/support/source-text.ts +128 -86
- package/dist/skills/frontend/scripts/detect/rules/typography/all-caps-body.test.ts +24 -15
- package/dist/skills/frontend/scripts/detect/rules/typography/all-caps-body.ts +23 -9
- package/dist/skills/frontend/scripts/detect/rules/typography/design-system-font-size.test.ts +16 -12
- package/dist/skills/frontend/scripts/detect/rules/typography/design-system-font-size.ts +27 -17
- package/dist/skills/frontend/scripts/detect/rules/typography/design-system-font.test.ts +17 -13
- package/dist/skills/frontend/scripts/detect/rules/typography/design-system-font.ts +27 -17
- package/dist/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.test.ts +50 -14
- package/dist/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.ts +26 -12
- package/dist/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.test.ts +44 -17
- package/dist/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.ts +41 -19
- package/dist/skills/frontend/scripts/detect/rules/typography/index.ts +14 -3
- package/dist/skills/frontend/scripts/detect/rules/typography/italic-serif-display.test.ts +39 -15
- package/dist/skills/frontend/scripts/detect/rules/typography/italic-serif-display.ts +67 -16
- package/dist/skills/frontend/scripts/detect/rules/typography/justified-text.test.ts +39 -22
- package/dist/skills/frontend/scripts/detect/rules/typography/justified-text.ts +47 -25
- package/dist/skills/frontend/scripts/detect/rules/typography/line-length.test.ts +65 -29
- package/dist/skills/frontend/scripts/detect/rules/typography/line-length.ts +37 -21
- package/dist/skills/frontend/scripts/detect/rules/typography/oversized-h1.test.ts +27 -17
- package/dist/skills/frontend/scripts/detect/rules/typography/oversized-h1.ts +35 -14
- package/dist/skills/frontend/scripts/detect/rules/typography/overused-font.test.ts +25 -18
- package/dist/skills/frontend/scripts/detect/rules/typography/overused-font.ts +83 -38
- package/dist/skills/frontend/scripts/detect/rules/typography/support/drawn-enlargement.ts +68 -40
- package/dist/skills/frontend/scripts/detect/rules/typography/support/fading-text.ts +59 -39
- package/dist/skills/frontend/scripts/detect/rules/typography/support/flex-runs.ts +13 -8
- package/dist/skills/frontend/scripts/detect/rules/typography/support/font-family.ts +68 -17
- package/dist/skills/frontend/scripts/detect/rules/typography/support/painted-text.test.ts +110 -46
- package/dist/skills/frontend/scripts/detect/rules/typography/support/painted-text.ts +173 -67
- package/dist/skills/frontend/scripts/detect/rules/typography/support/svg-size.ts +56 -49
- package/dist/skills/frontend/scripts/detect/rules/typography/support/text-context.ts +155 -78
- package/dist/skills/frontend/scripts/detect/rules/typography/support/text-lines.ts +38 -28
- package/dist/skills/frontend/scripts/detect/rules/typography/support/type-hierarchy.ts +43 -38
- package/dist/skills/frontend/scripts/detect/rules/typography/tight-leading.test.ts +109 -37
- package/dist/skills/frontend/scripts/detect/rules/typography/tight-leading.ts +67 -39
- package/dist/skills/frontend/scripts/detect/rules/typography/tiny-text.test.ts +80 -45
- package/dist/skills/frontend/scripts/detect/rules/typography/tiny-text.ts +34 -15
- package/dist/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.test.ts +158 -81
- package/dist/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.ts +52 -22
- package/dist/skills/frontend/scripts/detect/rules/typography/wide-tracking.test.ts +29 -17
- package/dist/skills/frontend/scripts/detect/rules/typography/wide-tracking.ts +37 -19
- package/dist/skills/frontend/scripts/detect/snapshot/collect.ts +154 -145
- package/dist/skills/frontend/scripts/detect/snapshot/style-props.ts +121 -21
- package/dist/skills/frontend/scripts/detect/testing/build-snapshot.ts +140 -65
- package/dist/skills/frontend/scripts/detect/types.ts +81 -76
- package/dist/skills/frontend/scripts/perfection/accent-stripes/color.ts +205 -85
- package/dist/skills/frontend/scripts/perfection/accent-stripes/css-parse.ts +97 -80
- package/dist/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +129 -101
- package/dist/skills/frontend/scripts/perfection/accent-stripes/findings.ts +23 -23
- package/dist/skills/frontend/scripts/perfection/accent-stripes/gradient.ts +43 -42
- package/dist/skills/frontend/scripts/perfection/accent-stripes/lint.ts +75 -60
- package/dist/skills/frontend/scripts/perfection/accent-stripes/markup.ts +131 -106
- package/dist/skills/frontend/scripts/perfection/accent-stripes/selector.ts +28 -25
- package/dist/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +93 -78
- package/dist/skills/frontend/scripts/perfection/check-accent-stripes.test.ts +111 -62
- package/dist/skills/frontend/scripts/perfection/check-accent-stripes.ts +22 -22
- package/dist/skills/frontend/scripts/perfection/check-draft-guard.test.ts +89 -65
- package/dist/skills/frontend/scripts/perfection/check-draft-guard.ts +24 -24
- package/dist/skills/frontend/scripts/perfection/collect-files.test.ts +36 -33
- package/dist/skills/frontend/scripts/perfection/collect-files.ts +49 -36
- package/dist/skills/frontend/scripts/perfection/draft-guard/findings.ts +10 -9
- package/dist/skills/frontend/scripts/perfection/draft-guard/lint.ts +27 -24
- package/dist/skills/frontend/scripts/perfection/draft-guard/rules.ts +46 -42
- package/dist/skills/frontend/scripts/perfection/draft-guard/text-nodes.ts +98 -75
- package/dist/skills/lsp-setup/scripts/detect-lsp.ts +162 -152
- package/dist/skills/lsp-setup/scripts/lsp-server-table.ts +164 -164
- package/dist/skills/lsp-setup/scripts/verify-lsp.ts +94 -91
- package/dist/skills/programming/SKILL.md +2 -2
- package/dist/skills/programming/scripts/go/new-project.ts +68 -68
- package/dist/skills/programming/scripts/python/new-project.ts +64 -64
- package/dist/skills/programming/scripts/python/new-script.ts +39 -39
- package/dist/skills/programming/scripts/rust/check-no-excuse-rules.test.ts +57 -57
- package/dist/skills/programming/scripts/rust/new-project.ts +60 -57
- package/dist/skills/programming/scripts/scaffolders.test.ts +113 -67
- package/dist/skills/programming/scripts/shared/run-tool.ts +7 -7
- package/dist/skills/programming/scripts/typescript/check-no-excuse-rules.test.ts +53 -53
- package/dist/skills/programming/scripts/typescript/check-no-excuse-rules.ts +96 -36
- package/dist/skills/programming/scripts/typescript/check-test-junk-rules.ts +38 -17
- package/dist/skills/programming/scripts/typescript/check-test-junk.ts +13 -2
- package/dist/skills/programming/scripts/typescript/mutation-proof.test.ts +4 -1
- package/dist/skills/programming/scripts/typescript/mutation-proof.ts +16 -4
- package/dist/skills/programming/scripts/typescript/new-project.test.ts +78 -92
- package/dist/skills/programming/scripts/typescript/new-project.ts +21 -21
- package/dist/skills/ultimate-browsing/engine/templates/knip.workspace.jsonc +31 -0
- package/dist/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +65 -62
- package/dist/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +73 -70
- package/dist/skills/ulw-plan/scripts/plan-templates.mjs +30 -30
- package/dist/skills/ulw-plan/scripts/scaffold-plan.mjs +131 -123
- package/dist/skills/ulw-research/scripts/claim-kinds.mjs +178 -67
- package/dist/skills/ulw-research/scripts/claim-kinds.test.ts +239 -168
- package/dist/skills/ulw-research/scripts/claim-prefix.test.ts +96 -47
- package/dist/skills/ulw-research/scripts/claims-index.mjs +117 -93
- package/dist/skills/ulw-research/scripts/claims-index.test.ts +147 -129
- package/dist/skills/ulw-research/scripts/cli-support.mjs +73 -73
- package/dist/skills/ulw-research/scripts/cli-support.test.ts +85 -74
- package/dist/skills/ulw-research/scripts/contracts-validation.test.ts +64 -64
- package/dist/skills/ulw-research/scripts/contracts.mjs +604 -174
- package/dist/skills/ulw-research/scripts/contracts.test.ts +171 -139
- package/dist/skills/ulw-research/scripts/conversion-altered.test.ts +268 -115
- package/dist/skills/ulw-research/scripts/conversion-originals.test.ts +355 -230
- package/dist/skills/ulw-research/scripts/conversion-probe-classes.test.ts +1319 -283
- package/dist/skills/ulw-research/scripts/conversion-probe.mjs +161 -113
- package/dist/skills/ulw-research/scripts/conversion-probe.test.ts +211 -173
- package/dist/skills/ulw-research/scripts/copy-returns-fidelity-policy.test.ts +201 -125
- package/dist/skills/ulw-research/scripts/copy-returns-polish.test.ts +230 -150
- package/dist/skills/ulw-research/scripts/copy-returns.test.ts +189 -145
- package/dist/skills/ulw-research/scripts/css-hiding.mjs +126 -92
- package/dist/skills/ulw-research/scripts/css-lite.mjs +143 -137
- package/dist/skills/ulw-research/scripts/css-lite.test.ts +136 -128
- package/dist/skills/ulw-research/scripts/delivery-barrier-meaning.test.ts +206 -113
- package/dist/skills/ulw-research/scripts/delivery-barrier.test.ts +191 -141
- package/dist/skills/ulw-research/scripts/design-spec.mjs +123 -107
- package/dist/skills/ulw-research/scripts/design-spec.test.ts +146 -136
- package/dist/skills/ulw-research/scripts/entities.mjs +66 -30
- package/dist/skills/ulw-research/scripts/entry-guard.mjs +8 -8
- package/dist/skills/ulw-research/scripts/fact-commands-fill.mjs +104 -51
- package/dist/skills/ulw-research/scripts/fact-commands-meaning.mjs +207 -105
- package/dist/skills/ulw-research/scripts/fact-commands-polish.mjs +143 -76
- package/dist/skills/ulw-research/scripts/fact-commands-verify.mjs +164 -120
- package/dist/skills/ulw-research/scripts/fact-commands.mjs +264 -151
- package/dist/skills/ulw-research/scripts/fact-derive-2.test.ts +158 -135
- package/dist/skills/ulw-research/scripts/fact-derive.mjs +92 -48
- package/dist/skills/ulw-research/scripts/fact-derive.test.ts +224 -167
- package/dist/skills/ulw-research/scripts/fact-expr.mjs +90 -78
- package/dist/skills/ulw-research/scripts/fact-fill.mjs +215 -127
- package/dist/skills/ulw-research/scripts/fact-fill.test.ts +204 -177
- package/dist/skills/ulw-research/scripts/fact-ledger-grammar.test.ts +293 -141
- package/dist/skills/ulw-research/scripts/fact-ledger-kinds.mjs +305 -131
- package/dist/skills/ulw-research/scripts/fact-ledger-kinds.test.ts +173 -108
- package/dist/skills/ulw-research/scripts/fact-ledger-legacy.test.ts +195 -134
- package/dist/skills/ulw-research/scripts/fact-ledger-schema.mjs +264 -158
- package/dist/skills/ulw-research/scripts/fact-ledger-schema.test.ts +29 -29
- package/dist/skills/ulw-research/scripts/fact-ledger.mjs +93 -57
- package/dist/skills/ulw-research/scripts/fact-ledger.test.ts +243 -221
- package/dist/skills/ulw-research/scripts/fact-locate.mjs +204 -147
- package/dist/skills/ulw-research/scripts/fact-locate.test.ts +143 -88
- package/dist/skills/ulw-research/scripts/fact-pairs.mjs +126 -108
- package/dist/skills/ulw-research/scripts/fact-pairs.test.ts +120 -113
- package/dist/skills/ulw-research/scripts/fact-recompute.mjs +89 -66
- package/dist/skills/ulw-research/scripts/fact-unit-dimensions-2.test.ts +164 -109
- package/dist/skills/ulw-research/scripts/fact-unit-dimensions.test.ts +237 -178
- package/dist/skills/ulw-research/scripts/fact-unit-rules.test.ts +180 -138
- package/dist/skills/ulw-research/scripts/fidelity-binding.mjs +101 -70
- package/dist/skills/ulw-research/scripts/fidelity-binding.test.ts +56 -52
- package/dist/skills/ulw-research/scripts/fidelity-brief.mjs +95 -89
- package/dist/skills/ulw-research/scripts/fidelity-brief.test.ts +167 -160
- package/dist/skills/ulw-research/scripts/fidelity-claims.mjs +76 -48
- package/dist/skills/ulw-research/scripts/fidelity-csv.mjs +27 -27
- package/dist/skills/ulw-research/scripts/fidelity-lexicon.mjs +101 -78
- package/dist/skills/ulw-research/scripts/fidelity-lexicon.test.ts +113 -90
- package/dist/skills/ulw-research/scripts/fidelity-originals.mjs +124 -77
- package/dist/skills/ulw-research/scripts/fidelity-policy.mjs +132 -83
- package/dist/skills/ulw-research/scripts/fidelity-records.mjs +179 -117
- package/dist/skills/ulw-research/scripts/fidelity-snapshot-readability.mjs +38 -33
- package/dist/skills/ulw-research/scripts/fidelity-sources.mjs +92 -54
- package/dist/skills/ulw-research/scripts/fidelity-state.mjs +27 -27
- package/dist/skills/ulw-research/scripts/fidelity-state.test.ts +32 -32
- package/dist/skills/ulw-research/scripts/fidelity-trace.mjs +81 -48
- package/dist/skills/ulw-research/scripts/fidelity-trace.test.ts +48 -32
- package/dist/skills/ulw-research/scripts/fidelity-value-unit.mjs +207 -104
- package/dist/skills/ulw-research/scripts/fidelity-values.mjs +255 -154
- package/dist/skills/ulw-research/scripts/fidelity-values.test.ts +283 -229
- package/dist/skills/ulw-research/scripts/format-extract-css.mjs +74 -74
- package/dist/skills/ulw-research/scripts/format-extract.mjs +161 -134
- package/dist/skills/ulw-research/scripts/format-extract.test.ts +207 -204
- package/dist/skills/ulw-research/scripts/gates-context.test.ts +47 -42
- package/dist/skills/ulw-research/scripts/gates-fidelity.mjs +118 -59
- package/dist/skills/ulw-research/scripts/gates-fidelity.test.ts +62 -45
- package/dist/skills/ulw-research/scripts/gates-figures.mjs +192 -141
- package/dist/skills/ulw-research/scripts/gates-layout.mjs +119 -85
- package/dist/skills/ulw-research/scripts/gates-layout.test.ts +250 -187
- package/dist/skills/ulw-research/scripts/gates-static-headings.test.ts +13 -10
- package/dist/skills/ulw-research/scripts/gates-static.mjs +109 -102
- package/dist/skills/ulw-research/scripts/gates-static.test.ts +310 -287
- package/dist/skills/ulw-research/scripts/gates-structure.mjs +105 -86
- package/dist/skills/ulw-research/scripts/gates-text.mjs +169 -113
- package/dist/skills/ulw-research/scripts/glossary-vocabulary.test.ts +35 -35
- package/dist/skills/ulw-research/scripts/html-foreign-object.mjs +39 -34
- package/dist/skills/ulw-research/scripts/html-lite.mjs +230 -176
- package/dist/skills/ulw-research/scripts/html-lite.test.ts +190 -183
- package/dist/skills/ulw-research/scripts/html-markup.mjs +150 -128
- package/dist/skills/ulw-research/scripts/html-text-map.mjs +125 -96
- package/dist/skills/ulw-research/scripts/html-text-map.test.ts +311 -128
- package/dist/skills/ulw-research/scripts/layout-probe.mjs +10 -8
- package/dist/skills/ulw-research/scripts/layout-probe.test.ts +65 -62
- package/dist/skills/ulw-research/scripts/lexicon.mjs +36 -19
- package/dist/skills/ulw-research/scripts/lexicon.test.ts +95 -49
- package/dist/skills/ulw-research/scripts/markdown-closers.mjs +85 -85
- package/dist/skills/ulw-research/scripts/md-lite-boundaries.test.ts +44 -34
- package/dist/skills/ulw-research/scripts/md-lite.mjs +133 -125
- package/dist/skills/ulw-research/scripts/md-lite.test.ts +289 -233
- package/dist/skills/ulw-research/scripts/meaning-check.mjs +154 -123
- package/dist/skills/ulw-research/scripts/meaning-check.test.ts +258 -173
- package/dist/skills/ulw-research/scripts/number-grammar.mjs +10 -8
- package/dist/skills/ulw-research/scripts/number-grammar.test.ts +31 -24
- package/dist/skills/ulw-research/scripts/numerals.mjs +181 -137
- package/dist/skills/ulw-research/scripts/numerals.test.ts +141 -113
- package/dist/skills/ulw-research/scripts/outcome-start.mjs +50 -36
- package/dist/skills/ulw-research/scripts/outcome-start.test.ts +89 -75
- package/dist/skills/ulw-research/scripts/outcome.mjs +194 -153
- package/dist/skills/ulw-research/scripts/outcome.test.ts +270 -264
- package/dist/skills/ulw-research/scripts/page-source-locator.test.ts +216 -150
- package/dist/skills/ulw-research/scripts/particles-ko.mjs +72 -70
- package/dist/skills/ulw-research/scripts/particles-ko.test.ts +66 -66
- package/dist/skills/ulw-research/scripts/placeholder.mjs +130 -112
- package/dist/skills/ulw-research/scripts/placeholder.test.ts +82 -55
- package/dist/skills/ulw-research/scripts/polish-apply.mjs +67 -51
- package/dist/skills/ulw-research/scripts/polish-apply.test.ts +397 -321
- package/dist/skills/ulw-research/scripts/polish-diff.mjs +10 -5
- package/dist/skills/ulw-research/scripts/polish-diff.test.ts +186 -134
- package/dist/skills/ulw-research/scripts/polish-markup.test.ts +271 -170
- package/dist/skills/ulw-research/scripts/polish-partial.test.ts +60 -34
- package/dist/skills/ulw-research/scripts/polish-project.mjs +67 -57
- package/dist/skills/ulw-research/scripts/polish-rules.mjs +120 -100
- package/dist/skills/ulw-research/scripts/rational.mjs +74 -73
- package/dist/skills/ulw-research/scripts/rational.test.ts +35 -35
- package/dist/skills/ulw-research/scripts/raw-decode.mjs +74 -74
- package/dist/skills/ulw-research/scripts/raw-locator.mjs +32 -24
- package/dist/skills/ulw-research/scripts/raw-snapshot.test.ts +166 -113
- package/dist/skills/ulw-research/scripts/references-fences.test.ts +14 -12
- package/dist/skills/ulw-research/scripts/repair-tracker.mjs +98 -93
- package/dist/skills/ulw-research/scripts/repair-tracker.test.ts +220 -214
- package/dist/skills/ulw-research/scripts/report-tools-2.test.ts +403 -215
- package/dist/skills/ulw-research/scripts/report-tools-3.test.ts +215 -112
- package/dist/skills/ulw-research/scripts/report-tools-4.test.ts +258 -116
- package/dist/skills/ulw-research/scripts/report-tools-5.test.ts +385 -205
- package/dist/skills/ulw-research/scripts/report-tools-commands.mjs +265 -176
- package/dist/skills/ulw-research/scripts/report-tools.mjs +65 -62
- package/dist/skills/ulw-research/scripts/report-tools.test.ts +295 -170
- package/dist/skills/ulw-research/scripts/sentence-split.mjs +63 -43
- package/dist/skills/ulw-research/scripts/sentence-split.test.ts +90 -90
- package/dist/skills/ulw-research/scripts/snapshot-readability.test.ts +107 -83
- package/dist/skills/ulw-research/scripts/source-commands.mjs +199 -125
- package/dist/skills/ulw-research/scripts/source-integrity.test.ts +359 -205
- package/dist/skills/ulw-research/scripts/source-refresh.mjs +91 -54
- package/dist/skills/ulw-research/scripts/source-snapshot.mjs +143 -102
- package/dist/skills/ulw-research/scripts/source-snapshot.test.ts +110 -86
- package/dist/skills/ulw-research/scripts/source-view.mjs +82 -46
- package/dist/skills/ulw-research/scripts/sources-citation.mjs +135 -96
- package/dist/skills/ulw-research/scripts/sources-citation.test.ts +180 -156
- package/dist/skills/ulw-research/scripts/tests/contracts-support.ts +123 -118
- package/dist/skills/ulw-research/scripts/tests/delivery-barrier-session.ts +37 -24
- package/dist/skills/ulw-research/scripts/tests/derive-clock.ts +5 -1
- package/dist/skills/ulw-research/scripts/tests/fact-derive-support.ts +31 -37
- package/dist/skills/ulw-research/scripts/tests/fact-unit-dimensions-support.ts +26 -17
- package/dist/skills/ulw-research/scripts/tests/fact-unit-rules-support.ts +474 -186
- package/dist/skills/ulw-research/scripts/tests/fidelity-values-support.ts +15 -8
- package/dist/skills/ulw-research/scripts/tests/numeral-classes.ts +324 -163
- package/dist/skills/ulw-research/scripts/tests/report-tools-support.ts +226 -103
- package/dist/skills/ulw-research/scripts/tests/value-mode-support.ts +33 -25
- package/dist/skills/ulw-research/scripts/text-normalize.mjs +63 -48
- package/dist/skills/ulw-research/scripts/text-normalize.test.ts +57 -57
- package/dist/skills/ulw-research/scripts/text-similarity.mjs +15 -15
- package/dist/skills/ulw-research/scripts/text-similarity.test.ts +29 -29
- package/dist/skills/ulw-research/scripts/unit-algebra.mjs +98 -66
- package/dist/skills/ulw-research/scripts/unit-errors.mjs +14 -14
- package/dist/skills/ulw-research/scripts/unit-metadata.mjs +30 -14
- package/dist/skills/ulw-research/scripts/unit-pairs.mjs +57 -45
- package/dist/skills/ulw-research/scripts/unit-precision.mjs +39 -25
- package/dist/skills/ulw-research/scripts/unit-rules-shapes.mjs +79 -44
- package/dist/skills/ulw-research/scripts/unit-rules.mjs +262 -135
- package/dist/skills/ulw-research/scripts/units.mjs +96 -65
- package/dist/skills/ulw-research/scripts/units.test.ts +75 -75
- package/dist/skills/ulw-research/scripts/value-mode-unit-classes.test.ts +411 -177
- package/dist/skills/ulw-research/scripts/value-mode-unit.test.ts +264 -154
- package/dist/skills/ulw-research/scripts/value-rules-cli.test.ts +165 -123
- package/dist/skills/ulw-research/scripts/value-rules-followups.test.ts +49 -25
- package/dist/skills/ulw-research/scripts/value-rules-priority.test.ts +69 -47
- package/dist/skills/visual-qa/scripts/ansi.test.ts +32 -32
- package/dist/skills/visual-qa/scripts/ansi.ts +3 -6
- package/dist/skills/visual-qa/scripts/cli.test.ts +57 -57
- package/dist/skills/visual-qa/scripts/cli.ts +52 -52
- package/dist/skills/visual-qa/scripts/east-asian-width.test.ts +47 -47
- package/dist/skills/visual-qa/scripts/east-asian-width.ts +53 -53
- package/dist/skills/visual-qa/scripts/image-diff.test.ts +55 -55
- package/dist/skills/visual-qa/scripts/image-diff.ts +86 -86
- package/dist/skills/visual-qa/scripts/png-crc.ts +16 -16
- package/dist/skills/visual-qa/scripts/png-decode.test.ts +33 -33
- package/dist/skills/visual-qa/scripts/png-decode.ts +167 -167
- package/dist/skills/visual-qa/scripts/png-synth.ts +36 -40
- package/dist/skills/visual-qa/scripts/skill-doc-fields.test.ts +16 -16
- package/dist/skills/visual-qa/scripts/tui-grid.test.ts +49 -49
- package/dist/skills/visual-qa/scripts/tui-grid.ts +63 -63
- package/dist/skills/visual-qa/scripts/types.ts +37 -37
- package/dist/skills/visual-qa/scripts/visual-qa.mjs +268 -289
- package/dist/tools/background-task/index.d.ts +1 -1
- package/dist/tools/glob/constants.d.ts +1 -1
- package/dist/tools/hashline-edit/index.d.ts +2 -2
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/look-at/look-at-session-runner.d.ts +1 -1
- package/dist/tools/task/index.d.ts +1 -1
- package/dist/tui.js +267 -171
- package/package.json +38 -19
- package/packages/lsp-core/src/index.ts +30 -30
- package/packages/lsp-core/src/lsp/bun-command-output.ts +69 -69
- package/packages/lsp-core/src/lsp/bun-project-checks.test.ts +176 -156
- package/packages/lsp-core/src/lsp/bun-project-checks.ts +175 -162
- package/packages/lsp-core/src/lsp/cleanup-errors.test.ts +13 -13
- package/packages/lsp-core/src/lsp/cleanup-errors.ts +7 -7
- package/packages/lsp-core/src/lsp/client-diagnostics-concurrency.integration.test.ts +39 -43
- package/packages/lsp-core/src/lsp/client-diagnostics-freshness.integration.test.ts +446 -447
- package/packages/lsp-core/src/lsp/client-diagnostics-pull-timeout.test.ts +55 -48
- package/packages/lsp-core/src/lsp/client-wrapper-outside-cwd.test.ts +59 -59
- package/packages/lsp-core/src/lsp/client-wrapper.test.ts +195 -195
- package/packages/lsp-core/src/lsp/client-wrapper.ts +229 -229
- package/packages/lsp-core/src/lsp/client.ts +374 -374
- package/packages/lsp-core/src/lsp/config-loader.ts +200 -200
- package/packages/lsp-core/src/lsp/connection.ts +76 -76
- package/packages/lsp-core/src/lsp/constants.ts +13 -13
- package/packages/lsp-core/src/lsp/controlled-clock-test-support.ts +69 -69
- package/packages/lsp-core/src/lsp/directory-diagnostics.test.ts +209 -199
- package/packages/lsp-core/src/lsp/directory-diagnostics.ts +171 -168
- package/packages/lsp-core/src/lsp/effective-extension.ts +5 -5
- package/packages/lsp-core/src/lsp/errors.ts +58 -60
- package/packages/lsp-core/src/lsp/fake-bun-test-support.ts +77 -77
- package/packages/lsp-core/src/lsp/format-document.test.ts +136 -130
- package/packages/lsp-core/src/lsp/format-document.ts +54 -54
- package/packages/lsp-core/src/lsp/formatters.ts +108 -108
- package/packages/lsp-core/src/lsp/host-js-runtime.test.ts +116 -120
- package/packages/lsp-core/src/lsp/host-js-runtime.ts +34 -34
- package/packages/lsp-core/src/lsp/infer-extension.ts +50 -50
- package/packages/lsp-core/src/lsp/json-rpc-connection-cancellation.test.ts +83 -77
- package/packages/lsp-core/src/lsp/json-rpc-connection.ts +341 -340
- package/packages/lsp-core/src/lsp/language-mappings.ts +165 -165
- package/packages/lsp-core/src/lsp/manager-lifecycle.test.ts +227 -234
- package/packages/lsp-core/src/lsp/manager-max-clients.test.ts +133 -133
- package/packages/lsp-core/src/lsp/manager.ts +466 -466
- package/packages/lsp-core/src/lsp/outside-context-workspace.ts +22 -22
- package/packages/lsp-core/src/lsp/process-pipe-errors.test.ts +16 -16
- package/packages/lsp-core/src/lsp/process-signal-cleanup.ts +16 -16
- package/packages/lsp-core/src/lsp/process.ts +168 -168
- package/packages/lsp-core/src/lsp/server-definitions.ts +193 -193
- package/packages/lsp-core/src/lsp/server-install-state.ts +33 -33
- package/packages/lsp-core/src/lsp/server-installation.test.ts +347 -347
- package/packages/lsp-core/src/lsp/server-installation.ts +153 -153
- package/packages/lsp-core/src/lsp/server-resolution-local-binary.test.ts +151 -151
- package/packages/lsp-core/src/lsp/server-resolution.ts +102 -99
- package/packages/lsp-core/src/lsp/startup-failure.ts +1 -1
- package/packages/lsp-core/src/lsp/timer-provider.ts +8 -8
- package/packages/lsp-core/src/lsp/transport-protocol.ts +24 -24
- package/packages/lsp-core/src/lsp/transport-request-timeout.test.ts +56 -52
- package/packages/lsp-core/src/lsp/transport.ts +320 -325
- package/packages/lsp-core/src/lsp/types.ts +69 -69
- package/packages/lsp-core/src/lsp/typescript-server-defaults.test.ts +65 -65
- package/packages/lsp-core/src/lsp/utils.test.ts +59 -59
- package/packages/lsp-core/src/lsp/utils.ts +28 -28
- package/packages/lsp-core/src/lsp/workspace-apply-edit-failure.ts +9 -9
- package/packages/lsp-core/src/lsp/workspace-apply-edit-lease.integration.test.ts +203 -204
- package/packages/lsp-core/src/lsp/workspace-apply-edit-sync.integration.test.ts +102 -106
- package/packages/lsp-core/src/lsp/workspace-apply-edit-test-support.ts +153 -153
- package/packages/lsp-core/src/lsp/workspace-apply-edit.integration.test.ts +151 -151
- package/packages/lsp-core/src/lsp/workspace-document-state.test.ts +130 -127
- package/packages/lsp-core/src/lsp/workspace-document-state.ts +342 -345
- package/packages/lsp-core/src/lsp/workspace-edit-adversarial.test.ts +119 -119
- package/packages/lsp-core/src/lsp/workspace-edit-commit.test.ts +120 -120
- package/packages/lsp-core/src/lsp/workspace-edit-commit.ts +171 -173
- package/packages/lsp-core/src/lsp/workspace-edit-contract-evidence.test.ts +49 -48
- package/packages/lsp-core/src/lsp/workspace-edit-contract-evidence.ts +18 -20
- package/packages/lsp-core/src/lsp/workspace-edit-fingerprint.ts +40 -40
- package/packages/lsp-core/src/lsp/workspace-edit-options.test.ts +131 -137
- package/packages/lsp-core/src/lsp/workspace-edit-parse-helpers.ts +42 -41
- package/packages/lsp-core/src/lsp/workspace-edit-parser.ts +108 -108
- package/packages/lsp-core/src/lsp/workspace-edit-path.ts +75 -75
- package/packages/lsp-core/src/lsp/workspace-edit-plan-types.ts +46 -47
- package/packages/lsp-core/src/lsp/workspace-edit-plan.ts +60 -60
- package/packages/lsp-core/src/lsp/workspace-edit-prevalidation.test.ts +161 -161
- package/packages/lsp-core/src/lsp/workspace-edit-resource-parser.ts +74 -74
- package/packages/lsp-core/src/lsp/workspace-edit-simulation.ts +139 -139
- package/packages/lsp-core/src/lsp/workspace-edit-snapshot.ts +45 -42
- package/packages/lsp-core/src/lsp/workspace-edit-text.ts +85 -85
- package/packages/lsp-core/src/lsp/workspace-edit-types.ts +85 -85
- package/packages/lsp-core/src/lsp/workspace-edit.characterization.test.ts +85 -85
- package/packages/lsp-core/src/lsp/workspace-edit.ts +38 -38
- package/packages/lsp-core/src/lsp/workspace-markers.ts +9 -9
- package/packages/lsp-core/src/lsp/workspace-mutation-controller.ts +149 -156
- package/packages/lsp-core/src/mcp-protocol-pin.test.ts +42 -34
- package/packages/lsp-core/src/mcp.ts +89 -91
- package/packages/lsp-core/src/missing-dependency-result.test.ts +118 -118
- package/packages/lsp-core/src/missing-dependency-result.ts +66 -66
- package/packages/lsp-core/src/post-edit/file-location.ts +29 -29
- package/packages/lsp-core/src/post-edit/index.ts +3 -3
- package/packages/lsp-core/src/post-edit/not-installed-guidance.ts +18 -18
- package/packages/lsp-core/src/post-edit/not-installed.test.ts +198 -200
- package/packages/lsp-core/src/post-edit/orchestration.test.ts +161 -153
- package/packages/lsp-core/src/post-edit/orchestration.ts +137 -137
- package/packages/lsp-core/src/request-context.test.ts +189 -187
- package/packages/lsp-core/src/request-context.ts +160 -165
- package/packages/lsp-core/src/tool-surface.test.ts +163 -163
- package/packages/lsp-core/src/tools/bun-directory-diagnostics.test.ts +109 -87
- package/packages/lsp-core/src/tools/bun-directory-diagnostics.ts +68 -60
- package/packages/lsp-core/src/tools/definitions.ts +154 -154
- package/packages/lsp-core/src/tools/diagnostics.ts +121 -121
- package/packages/lsp-core/src/tools/format.test.ts +43 -43
- package/packages/lsp-core/src/tools/format.ts +45 -45
- package/packages/lsp-core/src/tools/index.ts +11 -11
- package/packages/lsp-core/src/tools/install-decision.ts +31 -31
- package/packages/lsp-core/src/tools/navigation.ts +77 -78
- package/packages/lsp-core/src/tools/parameters.test.ts +42 -42
- package/packages/lsp-core/src/tools/parameters.ts +25 -25
- package/packages/lsp-core/src/tools/rename.ts +59 -59
- package/packages/lsp-core/src/tools/result.ts +2 -2
- package/packages/lsp-core/src/tools/runtime.ts +11 -11
- package/packages/lsp-core/src/tools/schema.ts +6 -6
- package/packages/lsp-core/src/tools/status.ts +25 -25
- package/packages/lsp-core/src/tools/symbols.ts +84 -84
- package/packages/lsp-core/src/tools/types.ts +82 -82
- package/packages/lsp-core/src/tools.ts +1 -1
- package/packages/lsp-daemon/dist/cli.js +8 -2
- package/packages/lsp-daemon/dist/client.js +8 -2
- package/packages/lsp-daemon/dist/index.js +8 -2
- package/packages/lsp-tools-mcp/dist/cli.js +8 -2
- package/packages/lsp-tools-mcp/dist/mcp.js +8 -2
- package/packages/lsp-tools-mcp/dist/tools.js +8 -2
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +156 -52
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/knip.workspace.jsonc +40 -0
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/scripts/build.mjs +21 -21
- package/packages/omo-codex/plugin/components/bootstrap/scripts/generate-manifests.mjs +43 -41
- package/packages/omo-codex/plugin/components/bootstrap/src/cli.ts +129 -127
- package/packages/omo-codex/plugin/components/bootstrap/src/download.ts +163 -158
- package/packages/omo-codex/plugin/components/bootstrap/src/environment.ts +226 -209
- package/packages/omo-codex/plugin/components/bootstrap/src/hook.ts +73 -77
- package/packages/omo-codex/plugin/components/bootstrap/src/provision.ts +99 -99
- package/packages/omo-codex/plugin/components/bootstrap/src/setup.ts +240 -237
- package/packages/omo-codex/plugin/components/bootstrap/src/worker.ts +227 -212
- package/packages/omo-codex/plugin/components/bootstrap/test/download.test.ts +235 -235
- package/packages/omo-codex/plugin/components/bootstrap/test/environment.test.ts +352 -346
- package/packages/omo-codex/plugin/components/bootstrap/test/provision.test.ts +426 -419
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/knip.workspace.jsonc +43 -0
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/knip.workspace.jsonc +23 -0
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/src/cli.ts +25 -25
- package/packages/omo-codex/plugin/components/git-bash/src/codex-hook.ts +118 -119
- package/packages/omo-codex/plugin/components/git-bash/src/index.ts +9 -9
- package/packages/omo-codex/plugin/components/git-bash/test/codex-hook.test.ts +168 -168
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/knip.workspace.jsonc +38 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lcx/skills/lcx-contribute-bug-fix/scripts/create-pr-body.mjs +57 -57
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +8 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/knip.workspace.jsonc +42 -0
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/knip.workspace.jsonc +40 -0
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/knip.workspace.jsonc +31 -0
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-guide.mjs +83 -76
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-state.mjs +357 -322
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-transport.mjs +22 -22
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-worktree.mjs +72 -66
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team.mjs +314 -304
- package/packages/omo-codex/plugin/components/teammode/src/cli.ts +5 -5
- package/packages/omo-codex/plugin/components/teammode/src/codex-hook.ts +96 -100
- package/packages/omo-codex/plugin/components/teammode/test/thread-title-hook.test.ts +151 -151
- package/packages/omo-codex/plugin/components/teammode/test/v2-spawn-schema.test.ts +64 -64
- package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +11 -10
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +11 -10
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/knip.workspace.jsonc +38 -0
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/test-support/package-smoke-fixture.ts +79 -79
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/knip.workspace.jsonc +33 -0
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/knip.workspace.jsonc +38 -0
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/knip.workspace.jsonc +70 -0
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/knip.workspace.jsonc +60 -0
- package/packages/omo-codex/plugin/package-lock.json +12 -12
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/scripts/auto-update-plan.mjs +215 -210
- package/packages/omo-codex/plugin/scripts/auto-update-state.d.mts +14 -14
- package/packages/omo-codex/plugin/scripts/auto-update-state.mjs +53 -53
- package/packages/omo-codex/plugin/scripts/auto-update.mjs +321 -285
- package/packages/omo-codex/plugin/scripts/build-bundled-mcp-runtimes.mjs +61 -58
- package/packages/omo-codex/plugin/scripts/canonical-ultrawork-directive.mjs +12 -6
- package/packages/omo-codex/plugin/scripts/entry-guard.mjs +10 -10
- package/packages/omo-codex/plugin/scripts/hook-status-message.mjs +32 -38
- package/packages/omo-codex/plugin/scripts/install-flow.mjs +30 -30
- package/packages/omo-codex/plugin/scripts/materialize-shared-upstreams.mjs +75 -73
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/catalog.mjs +81 -75
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/config-paths.mjs +32 -32
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/context7-placeholder-guard.mjs +101 -98
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/multi-agent-mode-guard.mjs +48 -48
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/multi-agent-v2-guard.mjs +196 -187
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/root-settings.mjs +87 -83
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/state.mjs +17 -17
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/subagent-limit-guard.mjs +26 -19
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/toml-section-editor.mjs +372 -371
- package/packages/omo-codex/plugin/scripts/migrate-codex-config.mjs +127 -123
- package/packages/omo-codex/plugin/scripts/spawn-command.mjs +8 -8
- package/packages/omo-codex/plugin/scripts/sync-hook-status-messages.mjs +67 -67
- package/packages/omo-codex/plugin/scripts/sync-skills.mjs +207 -198
- package/packages/omo-codex/plugin/scripts/sync-version.mjs +65 -65
- package/packages/omo-codex/plugin/shared/knip.workspace.jsonc +17 -0
- package/packages/omo-codex/plugin/shared/src/config-loader.ts +57 -60
- package/packages/omo-codex/plugin/shared/src/config-migration.ts +130 -115
- package/packages/omo-codex/plugin/shared/test/config-loader.test.ts +255 -228
- package/packages/omo-codex/plugin/skills/ast-grep/references/recipes.md +1 -1
- package/packages/omo-codex/plugin/skills/ast-grep/tests/smoke.ps1 +1 -1
- package/packages/omo-codex/plugin/skills/ast-grep/tests/smoke.sh +1 -1
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/index.js +16 -16
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +5 -5
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/page-bundle.js +14 -4
- package/packages/omo-codex/plugin/skills/browser/scripts/browser-doctor-report.mjs +36 -9
- package/packages/omo-codex/plugin/skills/browser/scripts/browser-doctor.mjs +24 -7
- package/packages/omo-codex/plugin/skills/browser/scripts/browser-engine-guard.mjs +2 -1
- package/packages/omo-codex/plugin/skills/browser/scripts/browser-install.mjs +40 -8
- package/packages/omo-codex/plugin/skills/debugging/references/scripts/dap.mjs +280 -170
- package/packages/omo-codex/plugin/skills/debugging/references/scripts/fixture-adapter.mjs +104 -42
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/cli.ts +67 -50
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/config.ts +41 -38
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/core/color.ts +109 -94
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/core/page.ts +43 -42
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/core/shadow.ts +38 -29
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/core/source.ts +25 -20
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/detect.ts +63 -45
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/lint.ts +78 -69
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/render/probe-placement.ts +36 -32
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/render/renderer.ts +14 -13
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/render/webview.ts +53 -50
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/report.ts +20 -18
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rule.ts +21 -21
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/ai-color-palette.ts +144 -63
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/cream-palette.ts +41 -27
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/dark-glow.ts +59 -34
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/design-system-color.ts +37 -28
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/gradient-text.ts +68 -45
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/gray-on-color.ts +34 -25
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/index.ts +9 -2
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/low-contrast.ts +106 -43
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/radial-halo.ts +48 -23
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.ts +49 -26
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/animation-opacity.ts +90 -66
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/color-path.ts +43 -6
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/contrast-pairs.ts +75 -38
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/contrast-role.ts +142 -59
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/glow-forms.ts +93 -44
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/gradient-samples.ts +115 -114
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/gradients.ts +77 -66
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/mockup-roots.ts +178 -48
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/page-ignore.ts +6 -2
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/painted-text.ts +171 -108
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/palette-roles.ts +60 -39
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/placeholder-contrast.ts +36 -16
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/stock-accent.ts +48 -18
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/color/support/text-colors.ts +88 -62
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.ts +25 -15
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/broken-image.ts +20 -12
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.ts +63 -39
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/index.ts +9 -2
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.ts +53 -25
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.ts +49 -28
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/repeated-container-text.ts +80 -47
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/script-error.ts +42 -34
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/skipped-heading.ts +199 -75
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/support/numbered-label.ts +122 -71
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/support/page-text.ts +32 -24
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.ts +42 -13
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.ts +49 -41
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.ts +10 -10
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/bounce-easing.ts +87 -68
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/buried-raster.ts +83 -64
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.ts +29 -29
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/design-system-radius.ts +33 -26
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.ts +61 -58
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.ts +25 -23
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.ts +16 -14
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.ts +85 -84
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/index.ts +17 -17
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.ts +79 -64
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/marquee.ts +57 -40
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.ts +34 -34
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.ts +92 -58
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.ts +19 -19
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.ts +59 -53
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/side-tab.ts +15 -12
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/appearance.ts +89 -85
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/assert-cases.ts +17 -15
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/borders.ts +178 -136
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/clip-geometry.ts +155 -145
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/css-candidates.ts +60 -54
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/curve-samples.ts +51 -48
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/gradient-pattern.ts +43 -34
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/keyframes.ts +118 -113
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/labels.ts +74 -67
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/decoration/support/raster-state.ts +80 -42
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/index.ts +6 -6
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.ts +116 -55
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.ts +22 -9
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.ts +113 -52
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/cramped-padding.ts +167 -90
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.ts +82 -41
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.ts +74 -37
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/heading-rhythm.ts +49 -24
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/index.ts +14 -3
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.ts +47 -28
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/nested-cards.ts +66 -31
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/straggler.ts +46 -22
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/cards.ts +157 -82
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/clipping.ts +98 -50
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/declared-mockups.ts +100 -36
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/geometry.ts +66 -43
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/hidden-interface.ts +56 -24
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/layout-cases.ts +23 -8
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/line-breaks.ts +28 -16
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/motion.ts +88 -56
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/padding.ts +106 -68
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/support/rhythm.ts +204 -128
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/text-occlusion.ts +125 -70
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/text-overflow.ts +111 -59
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.ts +27 -16
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/layout/viewport-reflow.ts +38 -23
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/ai-color-palette.ts +17 -6
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.ts +19 -9
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.ts +31 -13
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/bounce-easing.ts +41 -16
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/broken-image.ts +19 -9
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/codex-grid-background.ts +36 -12
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/dark-glow.ts +28 -14
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/em-dash-overuse.ts +17 -9
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/gradient-text.ts +14 -6
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/gray-on-color.ts +18 -7
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/index.ts +18 -1
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/marketing-buzzword.ts +49 -11
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/marquee.ts +16 -6
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/monotonous-spacing.ts +35 -17
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/overused-font.ts +51 -10
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/radial-halo.ts +16 -8
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/side-tab.ts +88 -47
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/accent-scans.ts +103 -62
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/check-source.ts +6 -2
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/corners.ts +148 -80
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/css-effects.ts +86 -66
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/css-scopes.ts +148 -113
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/image-tags.ts +113 -105
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/js-punctuation.ts +47 -30
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/markup-scope.ts +45 -34
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/source-color.ts +64 -29
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/source-shadow.ts +17 -10
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/source/support/source-text.ts +128 -86
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/all-caps-body.ts +23 -9
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/design-system-font-size.ts +27 -17
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/design-system-font.ts +27 -17
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.ts +26 -12
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.ts +41 -19
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/index.ts +14 -3
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/italic-serif-display.ts +67 -16
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/justified-text.ts +47 -25
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/line-length.ts +37 -21
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/oversized-h1.ts +35 -14
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/overused-font.ts +83 -38
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/drawn-enlargement.ts +68 -40
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/fading-text.ts +59 -39
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/flex-runs.ts +13 -8
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/font-family.ts +68 -17
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/painted-text.ts +173 -67
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/svg-size.ts +56 -49
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/text-context.ts +155 -78
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/text-lines.ts +38 -28
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/support/type-hierarchy.ts +43 -38
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/tight-leading.ts +67 -39
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/tiny-text.ts +34 -15
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.ts +52 -22
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/rules/typography/wide-tracking.ts +37 -19
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/snapshot/collect.ts +154 -145
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/snapshot/style-props.ts +121 -21
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/testing/build-snapshot.ts +140 -65
- package/packages/omo-codex/plugin/skills/frontend/scripts/detect/types.ts +81 -76
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/color.ts +205 -85
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/css-parse.ts +97 -80
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +129 -101
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/findings.ts +23 -23
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/gradient.ts +43 -42
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/lint.ts +75 -60
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/markup.ts +131 -106
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/selector.ts +28 -25
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +93 -78
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/check-accent-stripes.ts +22 -22
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/check-draft-guard.ts +24 -24
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/collect-files.ts +49 -36
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/draft-guard/findings.ts +10 -9
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/draft-guard/lint.ts +27 -24
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/draft-guard/rules.ts +46 -42
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/draft-guard/text-nodes.ts +98 -75
- package/packages/omo-codex/plugin/skills/lcx-contribute-bug-fix/scripts/create-pr-body.mjs +57 -57
- package/packages/omo-codex/plugin/skills/lsp-setup/scripts/detect-lsp.ts +162 -152
- package/packages/omo-codex/plugin/skills/lsp-setup/scripts/lsp-server-table.ts +164 -164
- package/packages/omo-codex/plugin/skills/lsp-setup/scripts/verify-lsp.ts +94 -91
- package/packages/omo-codex/plugin/skills/programming/SKILL.md +2 -2
- package/packages/omo-codex/plugin/skills/programming/scripts/go/new-project.ts +68 -68
- package/packages/omo-codex/plugin/skills/programming/scripts/python/new-project.ts +64 -64
- package/packages/omo-codex/plugin/skills/programming/scripts/python/new-script.ts +39 -39
- package/packages/omo-codex/plugin/skills/programming/scripts/rust/new-project.ts +60 -57
- package/packages/omo-codex/plugin/skills/programming/scripts/shared/run-tool.ts +7 -7
- package/packages/omo-codex/plugin/skills/programming/scripts/typescript/check-no-excuse-rules.ts +96 -36
- package/packages/omo-codex/plugin/skills/programming/scripts/typescript/check-test-junk-rules.ts +38 -17
- package/packages/omo-codex/plugin/skills/programming/scripts/typescript/check-test-junk.ts +13 -2
- package/packages/omo-codex/plugin/skills/programming/scripts/typescript/mutation-proof.ts +16 -4
- package/packages/omo-codex/plugin/skills/programming/scripts/typescript/new-project.ts +21 -21
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-guide.mjs +83 -76
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-state.mjs +357 -322
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-transport.mjs +22 -22
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-worktree.mjs +72 -66
- package/packages/omo-codex/plugin/skills/teammode/scripts/team.mjs +314 -304
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +65 -62
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +73 -70
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/claim-kinds.mjs +178 -67
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/claims-index.mjs +117 -93
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/cli-support.mjs +73 -73
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/contracts.mjs +604 -174
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/conversion-probe.mjs +161 -113
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/css-hiding.mjs +126 -92
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/css-lite.mjs +143 -137
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/design-spec.mjs +123 -107
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/entities.mjs +66 -30
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/entry-guard.mjs +8 -8
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands-fill.mjs +104 -51
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands-meaning.mjs +207 -105
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands-polish.mjs +143 -76
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands-verify.mjs +164 -120
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-commands.mjs +264 -151
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-derive.mjs +92 -48
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-expr.mjs +90 -78
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-fill.mjs +215 -127
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-ledger-kinds.mjs +305 -131
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-ledger-schema.mjs +264 -158
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-ledger.mjs +93 -57
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-locate.mjs +204 -147
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-pairs.mjs +126 -108
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fact-recompute.mjs +89 -66
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-binding.mjs +101 -70
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-brief.mjs +95 -89
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-claims.mjs +76 -48
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-csv.mjs +27 -27
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-lexicon.mjs +101 -78
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-originals.mjs +124 -77
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-policy.mjs +132 -83
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-records.mjs +179 -117
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-snapshot-readability.mjs +38 -33
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-sources.mjs +92 -54
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-state.mjs +27 -27
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-trace.mjs +81 -48
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-value-unit.mjs +207 -104
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/fidelity-values.mjs +255 -154
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/format-extract-css.mjs +74 -74
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/format-extract.mjs +161 -134
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-fidelity.mjs +118 -59
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-figures.mjs +192 -141
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-layout.mjs +119 -85
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-static.mjs +109 -102
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-structure.mjs +105 -86
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/gates-text.mjs +169 -113
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-foreign-object.mjs +39 -34
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-lite.mjs +230 -176
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-markup.mjs +150 -128
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/html-text-map.mjs +125 -96
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/layout-probe.mjs +10 -8
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/lexicon.mjs +36 -19
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/markdown-closers.mjs +85 -85
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/md-lite.mjs +133 -125
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/meaning-check.mjs +154 -123
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/number-grammar.mjs +10 -8
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/numerals.mjs +181 -137
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/outcome-start.mjs +50 -36
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/outcome.mjs +194 -153
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/particles-ko.mjs +72 -70
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/placeholder.mjs +130 -112
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/polish-apply.mjs +67 -51
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/polish-diff.mjs +10 -5
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/polish-project.mjs +67 -57
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/polish-rules.mjs +120 -100
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/rational.mjs +74 -73
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/raw-decode.mjs +74 -74
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/raw-locator.mjs +32 -24
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/repair-tracker.mjs +98 -93
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/report-tools-commands.mjs +265 -176
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/report-tools.mjs +65 -62
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/sentence-split.mjs +63 -43
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/source-commands.mjs +199 -125
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/source-refresh.mjs +91 -54
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/source-snapshot.mjs +143 -102
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/source-view.mjs +82 -46
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/sources-citation.mjs +135 -96
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/text-normalize.mjs +63 -48
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/text-similarity.mjs +15 -15
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-algebra.mjs +98 -66
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-errors.mjs +14 -14
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-metadata.mjs +30 -14
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-pairs.mjs +57 -45
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-precision.mjs +39 -25
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-rules-shapes.mjs +79 -44
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/unit-rules.mjs +262 -135
- package/packages/omo-codex/plugin/skills/ulw-research/scripts/units.mjs +96 -65
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/ansi.ts +3 -6
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/cli.ts +52 -52
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/east-asian-width.ts +53 -53
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/image-diff.ts +86 -86
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/png-crc.ts +16 -16
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/png-decode.ts +167 -167
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/png-synth.ts +36 -40
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/tui-grid.ts +63 -63
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/types.ts +37 -37
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/visual-qa.mjs +268 -289
- package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +110 -90
- package/packages/omo-codex/plugin/test/aggregate-build.test.mjs +36 -36
- package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +229 -222
- package/packages/omo-codex/plugin/test/aggregate-manifest.test.mjs +66 -66
- package/packages/omo-codex/plugin/test/aggregate-mcp.test.mjs +57 -58
- package/packages/omo-codex/plugin/test/aggregate-model-catalog.test.mjs +54 -54
- package/packages/omo-codex/plugin/test/aggregate-plugin-fixture.mjs +219 -201
- package/packages/omo-codex/plugin/test/aggregate.test.mjs +69 -61
- package/packages/omo-codex/plugin/test/auto-update-release-notes.test.mjs +97 -99
- package/packages/omo-codex/plugin/test/auto-update-restart-notice.test.mjs +250 -231
- package/packages/omo-codex/plugin/test/auto-update-state-persistence.test.mjs +28 -28
- package/packages/omo-codex/plugin/test/auto-update.test.mjs +685 -617
- package/packages/omo-codex/plugin/test/bootstrap-binlinks.test.mjs +261 -250
- package/packages/omo-codex/plugin/test/bootstrap-default-role.test.mjs +68 -57
- package/packages/omo-codex/plugin/test/bootstrap-hooks.test.mjs +189 -178
- package/packages/omo-codex/plugin/test/bootstrap-orchestration.test.mjs +356 -342
- package/packages/omo-codex/plugin/test/bootstrap-ps-guard.test.mjs +151 -131
- package/packages/omo-codex/plugin/test/bootstrap-setup.test.mjs +249 -240
- package/packages/omo-codex/plugin/test/canonical-ultrawork-directive.test.mjs +43 -43
- package/packages/omo-codex/plugin/test/component-bin-names.test.mjs +51 -51
- package/packages/omo-codex/plugin/test/component-bundled-cli.test.mjs +338 -344
- package/packages/omo-codex/plugin/test/component-hook-contract-cases.mjs +324 -318
- package/packages/omo-codex/plugin/test/display-metadata.test.mjs +64 -64
- package/packages/omo-codex/plugin/test/hook-status-message.test.mjs +195 -190
- package/packages/omo-codex/plugin/test/index.js +8 -8
- package/packages/omo-codex/plugin/test/install-time-build-runtime.test.mjs +35 -32
- package/packages/omo-codex/plugin/test/lcx-bug-skills.test.mjs +14 -14
- package/packages/omo-codex/plugin/test/lcx-contribute-bug-fix-template.test.mjs +79 -72
- package/packages/omo-codex/plugin/test/lsp-prebuild-layouts.test.mjs +125 -125
- package/packages/omo-codex/plugin/test/materialize-shared-upstreams.test.mjs +144 -113
- package/packages/omo-codex/plugin/test/mcp-research-servers.test.mjs +17 -17
- package/packages/omo-codex/plugin/test/migrate-codex-config.test.mjs +1062 -1076
- package/packages/omo-codex/plugin/test/multi-agent-v2-regression.test.mjs +68 -62
- package/packages/omo-codex/plugin/test/node-install-surface.test.mjs +28 -24
- package/packages/omo-codex/plugin/test/payload-equivalence.test.mjs +103 -103
- package/packages/omo-codex/plugin/test/scaffold-plan.test.mjs +169 -172
- package/packages/omo-codex/plugin/test/subagent-limit-migration.test.mjs +434 -414
- package/packages/omo-codex/plugin/test/sync-hook-status-messages.test.mjs +129 -129
- package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +174 -162
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +110 -109
- package/packages/omo-codex/plugin/test/sync-skills.test.mjs +268 -235
- package/packages/omo-codex/plugin/test/sync-version.test.mjs +54 -43
- package/packages/omo-codex/plugin/test/teammode-archive-ambiguity.test.mjs +58 -57
- package/packages/omo-codex/plugin/test/teammode-communication.test.mjs +64 -34
- package/packages/omo-codex/plugin/test/teammode-safety-fixture.mjs +87 -87
- package/packages/omo-codex/plugin/test/teammode-safety.test.mjs +308 -293
- package/packages/omo-codex/plugin/test/teammode-thread-links.test.mjs +76 -76
- package/packages/omo-codex/plugin/test/teammode-thread-title.test.mjs +235 -156
- package/packages/omo-codex/plugin/test/teammode-transport.test.mjs +650 -297
- package/packages/omo-codex/plugin/test/teammode-worktree.test.mjs +279 -197
- package/packages/omo-codex/plugin/test/ultrawork-skill-pointer.test.mjs +42 -45
- package/packages/omo-codex/plugin/test/ulw-plan-review-state-contract.test.mjs +280 -266
- package/packages/omo-codex/plugin/test/ulw-plan-skill-contract.test.mjs +16 -16
- package/packages/omo-codex/plugin/test/ulw-research-skill-contract.test.mjs +21 -21
- package/packages/omo-codex/plugin/test/windows-console-hide.test.mjs +91 -86
- package/packages/omo-codex/scripts/check-model-catalog-parity.mjs +46 -32
- package/packages/omo-codex/scripts/install-agent-links.test.mjs +334 -333
- package/packages/omo-codex/scripts/install-bin-links.test.mjs +447 -395
- package/packages/omo-codex/scripts/install-cache-copy.test.mjs +248 -230
- package/packages/omo-codex/scripts/install-cli-args.test.mjs +166 -166
- package/packages/omo-codex/scripts/install-config-autonomous-features.test.mjs +136 -136
- package/packages/omo-codex/scripts/install-config-autonomous.test.mjs +44 -44
- package/packages/omo-codex/scripts/install-config-git-bash.test.mjs +78 -78
- package/packages/omo-codex/scripts/install-config-preservation.test.mjs +38 -38
- package/packages/omo-codex/scripts/install-config-reasoning.test.mjs +145 -142
- package/packages/omo-codex/scripts/install-config.test.mjs +505 -532
- package/packages/omo-codex/scripts/install-delegated-command.test.mjs +225 -221
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +187 -83
- package/packages/omo-codex/scripts/install-generated-bundle.test.mjs +184 -178
- package/packages/omo-codex/scripts/install-git-bash-mcp-env.test.mjs +68 -68
- package/packages/omo-codex/scripts/install-hook-targets.test.mjs +152 -152
- package/packages/omo-codex/scripts/install-lazycodex-version-stamp.test.mjs +92 -85
- package/packages/omo-codex/scripts/install-local-bun-global-update.test.mjs +48 -39
- package/packages/omo-codex/scripts/install-local-entrypoint.test.mjs +327 -305
- package/packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs +153 -137
- package/packages/omo-codex/scripts/install-local.mjs +61 -61
- package/packages/omo-codex/scripts/install-local.test.mjs +185 -185
- package/packages/omo-codex/scripts/install-marketplace-cache.test.mjs +166 -152
- package/packages/omo-codex/scripts/install-mcp-context7-runtime.test.mjs +65 -65
- package/packages/omo-codex/scripts/install-mcp-runtime.test.mjs +185 -181
- package/packages/omo-codex/scripts/install-packaged-local.test.mjs +65 -62
- package/packages/omo-codex/scripts/install-project-local-cleanup.test.mjs +292 -324
- package/packages/omo-codex/scripts/install-test-fixtures.mjs +46 -46
- package/packages/shared-skills/index.mjs +5 -7
- package/packages/shared-skills/skill-source-filter.d.ts +7 -7
- package/packages/shared-skills/skill-source-filter.mjs +42 -26
- package/packages/shared-skills/skills/ast-grep/references/recipes.md +1 -1
- package/packages/shared-skills/skills/ast-grep/tests/smoke.ps1 +1 -1
- package/packages/shared-skills/skills/ast-grep/tests/smoke.sh +1 -1
- package/packages/shared-skills/skills/browser/runtime/omowright/index.js +16 -16
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +5 -5
- package/packages/shared-skills/skills/browser/runtime/omowright/page-bundle.js +14 -4
- package/packages/shared-skills/skills/browser/scripts/browser-doctor-report.mjs +36 -9
- package/packages/shared-skills/skills/browser/scripts/browser-doctor.mjs +24 -7
- package/packages/shared-skills/skills/browser/scripts/browser-engine-guard.mjs +2 -1
- package/packages/shared-skills/skills/browser/scripts/browser-install.mjs +40 -8
- package/packages/shared-skills/skills/debugging/references/scripts/dap.mjs +280 -170
- package/packages/shared-skills/skills/debugging/references/scripts/dap.test.ts +83 -55
- package/packages/shared-skills/skills/debugging/references/scripts/fixture-adapter.mjs +104 -42
- package/packages/shared-skills/skills/frontend/scripts/detect/cli.ts +67 -50
- package/packages/shared-skills/skills/frontend/scripts/detect/config.test.ts +23 -19
- package/packages/shared-skills/skills/frontend/scripts/detect/config.ts +41 -38
- package/packages/shared-skills/skills/frontend/scripts/detect/core/color.test.ts +19 -19
- package/packages/shared-skills/skills/frontend/scripts/detect/core/color.ts +109 -94
- package/packages/shared-skills/skills/frontend/scripts/detect/core/page.ts +43 -42
- package/packages/shared-skills/skills/frontend/scripts/detect/core/shadow.ts +38 -29
- package/packages/shared-skills/skills/frontend/scripts/detect/core/source.ts +25 -20
- package/packages/shared-skills/skills/frontend/scripts/detect/detect.ts +63 -45
- package/packages/shared-skills/skills/frontend/scripts/detect/lint.test.ts +24 -16
- package/packages/shared-skills/skills/frontend/scripts/detect/lint.ts +78 -69
- package/packages/shared-skills/skills/frontend/scripts/detect/render/probe-placement.test.ts +35 -11
- package/packages/shared-skills/skills/frontend/scripts/detect/render/probe-placement.ts +36 -32
- package/packages/shared-skills/skills/frontend/scripts/detect/render/renderer.ts +14 -13
- package/packages/shared-skills/skills/frontend/scripts/detect/render/webview.ts +53 -50
- package/packages/shared-skills/skills/frontend/scripts/detect/report.ts +20 -18
- package/packages/shared-skills/skills/frontend/scripts/detect/rule.ts +21 -21
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/ai-color-palette.test.ts +84 -53
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/ai-color-palette.ts +144 -63
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/cream-palette.test.ts +27 -15
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/cream-palette.ts +41 -27
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/dark-glow.test.ts +57 -32
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/dark-glow.ts +59 -34
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/design-system-color.test.ts +25 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/design-system-color.ts +37 -28
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/gradient-text.test.ts +63 -15
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/gradient-text.ts +68 -45
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/gray-on-color.test.ts +49 -24
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/gray-on-color.ts +34 -25
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/index.ts +9 -2
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/low-contrast.test.ts +419 -161
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/low-contrast.ts +106 -43
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/placeholder-contrast.test.ts +136 -45
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/radial-halo.test.ts +42 -28
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/radial-halo.ts +48 -23
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.test.ts +45 -18
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/radial-spotlight-glow.ts +49 -26
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/animation-opacity.ts +90 -66
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/color-path.ts +43 -6
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/contrast-pairs.ts +75 -38
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/contrast-role.ts +142 -59
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/glow-forms.ts +93 -44
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/gradient-samples.ts +115 -114
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/gradients.ts +77 -66
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/mockup-roots.ts +178 -48
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/page-ignore.ts +6 -2
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/painted-text.ts +171 -108
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/palette-roles.ts +60 -39
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/placeholder-contrast.ts +36 -16
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/stock-accent.ts +48 -18
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/color/support/text-colors.ts +88 -62
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.test.ts +17 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/aphoristic-cadence.ts +25 -15
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/broken-image.test.ts +22 -16
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/broken-image.ts +20 -12
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.test.ts +38 -24
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/em-dash-overuse.ts +63 -39
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/index.ts +9 -2
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.test.ts +14 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/marketing-buzzword.ts +53 -25
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.test.ts +69 -37
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/numbered-section-labels.ts +49 -28
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/repeated-container-text.test.ts +52 -26
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/repeated-container-text.ts +80 -47
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/script-error.test.ts +71 -30
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/script-error.ts +42 -34
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/skipped-heading.test.ts +64 -34
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/skipped-heading.ts +199 -75
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/support/numbered-label.ts +122 -71
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/support/page-text.ts +32 -24
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.test.ts +25 -8
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/copy/theater-slop-phrase.ts +42 -13
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.test.ts +40 -31
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/blinking-cursor.ts +49 -41
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.test.ts +30 -25
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/border-accent-on-rounded.ts +10 -10
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/bounce-easing.test.ts +80 -53
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/bounce-easing.ts +87 -68
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/buried-raster.test.ts +122 -79
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/buried-raster.ts +83 -64
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.test.ts +20 -20
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/codex-grid-background.ts +29 -29
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/design-system-radius.test.ts +27 -27
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/design-system-radius.ts +33 -26
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.test.ts +58 -45
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/gpt-thin-border-wide-shadow.ts +61 -58
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.test.ts +50 -33
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/hard-offset-shadow.ts +25 -23
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.test.ts +74 -60
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/hero-eyebrow-chip.ts +16 -14
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.test.ts +75 -54
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/icon-tile-stack.ts +85 -84
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/index.ts +17 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.test.ts +128 -104
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/kicker-above-heading.ts +79 -64
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/marquee.test.ts +67 -50
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/marquee.ts +57 -40
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.test.ts +67 -54
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/organic-clip-path.ts +34 -34
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.test.ts +56 -44
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/pulsing-dot.ts +92 -58
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.test.ts +18 -18
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/repeating-stripes-gradient.ts +19 -19
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.test.ts +57 -44
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/shape-assembled-illustration.ts +59 -53
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/side-tab.test.ts +112 -72
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/side-tab.ts +15 -12
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/appearance.ts +89 -85
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/assert-cases.ts +17 -15
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/borders.ts +178 -136
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/clip-geometry.ts +155 -145
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/css-candidates.ts +60 -54
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/curve-samples.ts +51 -48
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/gradient-pattern.ts +43 -34
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/keyframes.ts +118 -113
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/labels.ts +74 -67
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/decoration/support/raster-state.ts +80 -42
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/index.ts +6 -6
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.test.ts +71 -37
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/body-text-viewport-edge.ts +116 -55
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.test.ts +41 -18
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/clipped-overflow-container.ts +22 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.test.ts +57 -29
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/content-hidden-at-rest.ts +113 -52
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/cramped-padding.test.ts +120 -31
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/cramped-padding.ts +167 -90
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.test.ts +43 -24
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/edge-flush-cards.ts +82 -41
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.test.ts +34 -12
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/first-viewport-column-overflow.ts +74 -37
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/heading-rhythm.test.ts +85 -39
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/heading-rhythm.ts +49 -24
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/index.ts +14 -3
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.test.ts +24 -7
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/monotonous-spacing.ts +47 -28
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/nested-cards.test.ts +79 -31
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/nested-cards.ts +66 -31
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/straggler.test.ts +33 -14
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/straggler.ts +46 -22
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/cards.ts +157 -82
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/clipping.ts +98 -50
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/declared-mockups.ts +100 -36
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/geometry.ts +66 -43
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/hidden-interface.ts +56 -24
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/layout-cases.ts +23 -8
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/line-breaks.ts +28 -16
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/motion.ts +88 -56
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/padding.ts +106 -68
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/support/rhythm.ts +204 -128
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/text-occlusion.test.ts +50 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/text-occlusion.ts +125 -70
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/text-overflow.test.ts +96 -42
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/text-overflow.ts +111 -59
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.test.ts +15 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/unbalanced-heading.ts +27 -16
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/viewport-reflow.test.ts +34 -21
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/layout/viewport-reflow.ts +38 -23
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/ai-color-palette.test.ts +6 -6
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/ai-color-palette.ts +17 -6
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.test.ts +5 -5
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/aphoristic-cadence.ts +19 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.test.ts +7 -7
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/border-accent-on-rounded.ts +31 -13
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/bounce-easing.test.ts +20 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/bounce-easing.ts +41 -16
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/broken-image.test.ts +17 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/broken-image.ts +19 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/codex-grid-background.test.ts +7 -4
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/codex-grid-background.ts +36 -12
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/dark-glow.test.ts +8 -8
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/dark-glow.ts +28 -14
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/em-dash-overuse.test.ts +6 -6
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/em-dash-overuse.ts +17 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/gradient-text.test.ts +5 -5
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/gradient-text.ts +14 -6
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/gray-on-color.test.ts +13 -13
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/gray-on-color.ts +18 -7
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/index.ts +18 -1
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/marketing-buzzword.test.ts +5 -5
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/marketing-buzzword.ts +49 -11
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/marquee.test.ts +11 -5
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/marquee.ts +16 -6
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/monotonous-spacing.test.ts +6 -6
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/monotonous-spacing.ts +35 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/overused-font.test.ts +18 -11
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/overused-font.ts +51 -10
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/radial-halo.test.ts +12 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/radial-halo.ts +16 -8
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/side-tab.test.ts +34 -22
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/side-tab.ts +88 -47
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/accent-scans.ts +103 -62
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/check-source.ts +6 -2
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/corners.ts +148 -80
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/css-effects.ts +86 -66
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/css-scopes.ts +148 -113
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/image-tags.ts +113 -105
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/js-punctuation.ts +47 -30
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/markup-scope.ts +45 -34
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/source-color.ts +64 -29
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/source-shadow.ts +17 -10
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/source/support/source-text.ts +128 -86
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/all-caps-body.test.ts +24 -15
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/all-caps-body.ts +23 -9
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/design-system-font-size.test.ts +16 -12
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/design-system-font-size.ts +27 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/design-system-font.test.ts +17 -13
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/design-system-font.ts +27 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.test.ts +50 -14
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/extreme-negative-tracking.ts +26 -12
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.test.ts +44 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/flat-type-hierarchy.ts +41 -19
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/index.ts +14 -3
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/italic-serif-display.test.ts +39 -15
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/italic-serif-display.ts +67 -16
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/justified-text.test.ts +39 -22
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/justified-text.ts +47 -25
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/line-length.test.ts +65 -29
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/line-length.ts +37 -21
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/oversized-h1.test.ts +27 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/oversized-h1.ts +35 -14
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/overused-font.test.ts +25 -18
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/overused-font.ts +83 -38
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/drawn-enlargement.ts +68 -40
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/fading-text.ts +59 -39
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/flex-runs.ts +13 -8
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/font-family.ts +68 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/painted-text.test.ts +110 -46
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/painted-text.ts +173 -67
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/svg-size.ts +56 -49
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/text-context.ts +155 -78
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/text-lines.ts +38 -28
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/support/type-hierarchy.ts +43 -38
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/tight-leading.test.ts +109 -37
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/tight-leading.ts +67 -39
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/tiny-text.test.ts +80 -45
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/tiny-text.ts +34 -15
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.test.ts +158 -81
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/undersized-ui-text.ts +52 -22
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/wide-tracking.test.ts +29 -17
- package/packages/shared-skills/skills/frontend/scripts/detect/rules/typography/wide-tracking.ts +37 -19
- package/packages/shared-skills/skills/frontend/scripts/detect/snapshot/collect.ts +154 -145
- package/packages/shared-skills/skills/frontend/scripts/detect/snapshot/style-props.ts +121 -21
- package/packages/shared-skills/skills/frontend/scripts/detect/testing/build-snapshot.ts +140 -65
- package/packages/shared-skills/skills/frontend/scripts/detect/types.ts +81 -76
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/color.ts +205 -85
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/css-parse.ts +97 -80
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +129 -101
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/findings.ts +23 -23
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/gradient.ts +43 -42
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/lint.ts +75 -60
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/markup.ts +131 -106
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/selector.ts +28 -25
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +93 -78
- package/packages/shared-skills/skills/frontend/scripts/perfection/check-accent-stripes.test.ts +111 -62
- package/packages/shared-skills/skills/frontend/scripts/perfection/check-accent-stripes.ts +22 -22
- package/packages/shared-skills/skills/frontend/scripts/perfection/check-draft-guard.test.ts +89 -65
- package/packages/shared-skills/skills/frontend/scripts/perfection/check-draft-guard.ts +24 -24
- package/packages/shared-skills/skills/frontend/scripts/perfection/collect-files.test.ts +36 -33
- package/packages/shared-skills/skills/frontend/scripts/perfection/collect-files.ts +49 -36
- package/packages/shared-skills/skills/frontend/scripts/perfection/draft-guard/findings.ts +10 -9
- package/packages/shared-skills/skills/frontend/scripts/perfection/draft-guard/lint.ts +27 -24
- package/packages/shared-skills/skills/frontend/scripts/perfection/draft-guard/rules.ts +46 -42
- package/packages/shared-skills/skills/frontend/scripts/perfection/draft-guard/text-nodes.ts +98 -75
- package/packages/shared-skills/skills/lsp-setup/scripts/detect-lsp.ts +162 -152
- package/packages/shared-skills/skills/lsp-setup/scripts/lsp-server-table.ts +164 -164
- package/packages/shared-skills/skills/lsp-setup/scripts/verify-lsp.ts +94 -91
- package/packages/shared-skills/skills/programming/SKILL.md +2 -2
- package/packages/shared-skills/skills/programming/scripts/go/new-project.ts +68 -68
- package/packages/shared-skills/skills/programming/scripts/python/new-project.ts +64 -64
- package/packages/shared-skills/skills/programming/scripts/python/new-script.ts +39 -39
- package/packages/shared-skills/skills/programming/scripts/rust/check-no-excuse-rules.test.ts +57 -57
- package/packages/shared-skills/skills/programming/scripts/rust/new-project.ts +60 -57
- package/packages/shared-skills/skills/programming/scripts/scaffolders.test.ts +113 -67
- package/packages/shared-skills/skills/programming/scripts/shared/run-tool.ts +7 -7
- package/packages/shared-skills/skills/programming/scripts/typescript/check-no-excuse-rules.test.ts +53 -53
- package/packages/shared-skills/skills/programming/scripts/typescript/check-no-excuse-rules.ts +96 -36
- package/packages/shared-skills/skills/programming/scripts/typescript/check-test-junk-rules.ts +38 -17
- package/packages/shared-skills/skills/programming/scripts/typescript/check-test-junk.ts +13 -2
- package/packages/shared-skills/skills/programming/scripts/typescript/mutation-proof.test.ts +4 -1
- package/packages/shared-skills/skills/programming/scripts/typescript/mutation-proof.ts +16 -4
- package/packages/shared-skills/skills/programming/scripts/typescript/new-project.test.ts +78 -92
- package/packages/shared-skills/skills/programming/scripts/typescript/new-project.ts +21 -21
- package/packages/shared-skills/skills/ultimate-browsing/engine/templates/knip.workspace.jsonc +31 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +65 -62
- package/packages/shared-skills/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +73 -70
- package/packages/shared-skills/skills/ulw-plan/scripts/plan-templates.mjs +30 -30
- package/packages/shared-skills/skills/ulw-plan/scripts/scaffold-plan.mjs +131 -123
- package/packages/shared-skills/skills/ulw-research/scripts/claim-kinds.mjs +178 -67
- package/packages/shared-skills/skills/ulw-research/scripts/claim-kinds.test.ts +239 -168
- package/packages/shared-skills/skills/ulw-research/scripts/claim-prefix.test.ts +96 -47
- package/packages/shared-skills/skills/ulw-research/scripts/claims-index.mjs +117 -93
- package/packages/shared-skills/skills/ulw-research/scripts/claims-index.test.ts +147 -129
- package/packages/shared-skills/skills/ulw-research/scripts/cli-support.mjs +73 -73
- package/packages/shared-skills/skills/ulw-research/scripts/cli-support.test.ts +85 -74
- package/packages/shared-skills/skills/ulw-research/scripts/contracts-validation.test.ts +64 -64
- package/packages/shared-skills/skills/ulw-research/scripts/contracts.mjs +604 -174
- package/packages/shared-skills/skills/ulw-research/scripts/contracts.test.ts +171 -139
- package/packages/shared-skills/skills/ulw-research/scripts/conversion-altered.test.ts +268 -115
- package/packages/shared-skills/skills/ulw-research/scripts/conversion-originals.test.ts +355 -230
- package/packages/shared-skills/skills/ulw-research/scripts/conversion-probe-classes.test.ts +1319 -283
- package/packages/shared-skills/skills/ulw-research/scripts/conversion-probe.mjs +161 -113
- package/packages/shared-skills/skills/ulw-research/scripts/conversion-probe.test.ts +211 -173
- package/packages/shared-skills/skills/ulw-research/scripts/copy-returns-fidelity-policy.test.ts +201 -125
- package/packages/shared-skills/skills/ulw-research/scripts/copy-returns-polish.test.ts +230 -150
- package/packages/shared-skills/skills/ulw-research/scripts/copy-returns.test.ts +189 -145
- package/packages/shared-skills/skills/ulw-research/scripts/css-hiding.mjs +126 -92
- package/packages/shared-skills/skills/ulw-research/scripts/css-lite.mjs +143 -137
- package/packages/shared-skills/skills/ulw-research/scripts/css-lite.test.ts +136 -128
- package/packages/shared-skills/skills/ulw-research/scripts/delivery-barrier-meaning.test.ts +206 -113
- package/packages/shared-skills/skills/ulw-research/scripts/delivery-barrier.test.ts +191 -141
- package/packages/shared-skills/skills/ulw-research/scripts/design-spec.mjs +123 -107
- package/packages/shared-skills/skills/ulw-research/scripts/design-spec.test.ts +146 -136
- package/packages/shared-skills/skills/ulw-research/scripts/entities.mjs +66 -30
- package/packages/shared-skills/skills/ulw-research/scripts/entry-guard.mjs +8 -8
- package/packages/shared-skills/skills/ulw-research/scripts/fact-commands-fill.mjs +104 -51
- package/packages/shared-skills/skills/ulw-research/scripts/fact-commands-meaning.mjs +207 -105
- package/packages/shared-skills/skills/ulw-research/scripts/fact-commands-polish.mjs +143 -76
- package/packages/shared-skills/skills/ulw-research/scripts/fact-commands-verify.mjs +164 -120
- package/packages/shared-skills/skills/ulw-research/scripts/fact-commands.mjs +264 -151
- package/packages/shared-skills/skills/ulw-research/scripts/fact-derive-2.test.ts +158 -135
- package/packages/shared-skills/skills/ulw-research/scripts/fact-derive.mjs +92 -48
- package/packages/shared-skills/skills/ulw-research/scripts/fact-derive.test.ts +224 -167
- package/packages/shared-skills/skills/ulw-research/scripts/fact-expr.mjs +90 -78
- package/packages/shared-skills/skills/ulw-research/scripts/fact-fill.mjs +215 -127
- package/packages/shared-skills/skills/ulw-research/scripts/fact-fill.test.ts +204 -177
- package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-grammar.test.ts +293 -141
- package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-kinds.mjs +305 -131
- package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-kinds.test.ts +173 -108
- package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-legacy.test.ts +195 -134
- package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-schema.mjs +264 -158
- package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger-schema.test.ts +29 -29
- package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger.mjs +93 -57
- package/packages/shared-skills/skills/ulw-research/scripts/fact-ledger.test.ts +243 -221
- package/packages/shared-skills/skills/ulw-research/scripts/fact-locate.mjs +204 -147
- package/packages/shared-skills/skills/ulw-research/scripts/fact-locate.test.ts +143 -88
- package/packages/shared-skills/skills/ulw-research/scripts/fact-pairs.mjs +126 -108
- package/packages/shared-skills/skills/ulw-research/scripts/fact-pairs.test.ts +120 -113
- package/packages/shared-skills/skills/ulw-research/scripts/fact-recompute.mjs +89 -66
- package/packages/shared-skills/skills/ulw-research/scripts/fact-unit-dimensions-2.test.ts +164 -109
- package/packages/shared-skills/skills/ulw-research/scripts/fact-unit-dimensions.test.ts +237 -178
- package/packages/shared-skills/skills/ulw-research/scripts/fact-unit-rules.test.ts +180 -138
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-binding.mjs +101 -70
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-binding.test.ts +56 -52
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-brief.mjs +95 -89
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-brief.test.ts +167 -160
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-claims.mjs +76 -48
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-csv.mjs +27 -27
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-lexicon.mjs +101 -78
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-lexicon.test.ts +113 -90
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-originals.mjs +124 -77
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-policy.mjs +132 -83
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-records.mjs +179 -117
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-snapshot-readability.mjs +38 -33
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-sources.mjs +92 -54
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-state.mjs +27 -27
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-state.test.ts +32 -32
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-trace.mjs +81 -48
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-trace.test.ts +48 -32
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-value-unit.mjs +207 -104
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-values.mjs +255 -154
- package/packages/shared-skills/skills/ulw-research/scripts/fidelity-values.test.ts +283 -229
- package/packages/shared-skills/skills/ulw-research/scripts/format-extract-css.mjs +74 -74
- package/packages/shared-skills/skills/ulw-research/scripts/format-extract.mjs +161 -134
- package/packages/shared-skills/skills/ulw-research/scripts/format-extract.test.ts +207 -204
- package/packages/shared-skills/skills/ulw-research/scripts/gates-context.test.ts +47 -42
- package/packages/shared-skills/skills/ulw-research/scripts/gates-fidelity.mjs +118 -59
- package/packages/shared-skills/skills/ulw-research/scripts/gates-fidelity.test.ts +62 -45
- package/packages/shared-skills/skills/ulw-research/scripts/gates-figures.mjs +192 -141
- package/packages/shared-skills/skills/ulw-research/scripts/gates-layout.mjs +119 -85
- package/packages/shared-skills/skills/ulw-research/scripts/gates-layout.test.ts +250 -187
- package/packages/shared-skills/skills/ulw-research/scripts/gates-static-headings.test.ts +13 -10
- package/packages/shared-skills/skills/ulw-research/scripts/gates-static.mjs +109 -102
- package/packages/shared-skills/skills/ulw-research/scripts/gates-static.test.ts +310 -287
- package/packages/shared-skills/skills/ulw-research/scripts/gates-structure.mjs +105 -86
- package/packages/shared-skills/skills/ulw-research/scripts/gates-text.mjs +169 -113
- package/packages/shared-skills/skills/ulw-research/scripts/glossary-vocabulary.test.ts +35 -35
- package/packages/shared-skills/skills/ulw-research/scripts/html-foreign-object.mjs +39 -34
- package/packages/shared-skills/skills/ulw-research/scripts/html-lite.mjs +230 -176
- package/packages/shared-skills/skills/ulw-research/scripts/html-lite.test.ts +190 -183
- package/packages/shared-skills/skills/ulw-research/scripts/html-markup.mjs +150 -128
- package/packages/shared-skills/skills/ulw-research/scripts/html-text-map.mjs +125 -96
- package/packages/shared-skills/skills/ulw-research/scripts/html-text-map.test.ts +311 -128
- package/packages/shared-skills/skills/ulw-research/scripts/layout-probe.mjs +10 -8
- package/packages/shared-skills/skills/ulw-research/scripts/layout-probe.test.ts +65 -62
- package/packages/shared-skills/skills/ulw-research/scripts/lexicon.mjs +36 -19
- package/packages/shared-skills/skills/ulw-research/scripts/lexicon.test.ts +95 -49
- package/packages/shared-skills/skills/ulw-research/scripts/markdown-closers.mjs +85 -85
- package/packages/shared-skills/skills/ulw-research/scripts/md-lite-boundaries.test.ts +44 -34
- package/packages/shared-skills/skills/ulw-research/scripts/md-lite.mjs +133 -125
- package/packages/shared-skills/skills/ulw-research/scripts/md-lite.test.ts +289 -233
- package/packages/shared-skills/skills/ulw-research/scripts/meaning-check.mjs +154 -123
- package/packages/shared-skills/skills/ulw-research/scripts/meaning-check.test.ts +258 -173
- package/packages/shared-skills/skills/ulw-research/scripts/number-grammar.mjs +10 -8
- package/packages/shared-skills/skills/ulw-research/scripts/number-grammar.test.ts +31 -24
- package/packages/shared-skills/skills/ulw-research/scripts/numerals.mjs +181 -137
- package/packages/shared-skills/skills/ulw-research/scripts/numerals.test.ts +141 -113
- package/packages/shared-skills/skills/ulw-research/scripts/outcome-start.mjs +50 -36
- package/packages/shared-skills/skills/ulw-research/scripts/outcome-start.test.ts +89 -75
- package/packages/shared-skills/skills/ulw-research/scripts/outcome.mjs +194 -153
- package/packages/shared-skills/skills/ulw-research/scripts/outcome.test.ts +270 -264
- package/packages/shared-skills/skills/ulw-research/scripts/page-source-locator.test.ts +216 -150
- package/packages/shared-skills/skills/ulw-research/scripts/particles-ko.mjs +72 -70
- package/packages/shared-skills/skills/ulw-research/scripts/particles-ko.test.ts +66 -66
- package/packages/shared-skills/skills/ulw-research/scripts/placeholder.mjs +130 -112
- package/packages/shared-skills/skills/ulw-research/scripts/placeholder.test.ts +82 -55
- package/packages/shared-skills/skills/ulw-research/scripts/polish-apply.mjs +67 -51
- package/packages/shared-skills/skills/ulw-research/scripts/polish-apply.test.ts +397 -321
- package/packages/shared-skills/skills/ulw-research/scripts/polish-diff.mjs +10 -5
- package/packages/shared-skills/skills/ulw-research/scripts/polish-diff.test.ts +186 -134
- package/packages/shared-skills/skills/ulw-research/scripts/polish-markup.test.ts +271 -170
- package/packages/shared-skills/skills/ulw-research/scripts/polish-partial.test.ts +60 -34
- package/packages/shared-skills/skills/ulw-research/scripts/polish-project.mjs +67 -57
- package/packages/shared-skills/skills/ulw-research/scripts/polish-rules.mjs +120 -100
- package/packages/shared-skills/skills/ulw-research/scripts/rational.mjs +74 -73
- package/packages/shared-skills/skills/ulw-research/scripts/rational.test.ts +35 -35
- package/packages/shared-skills/skills/ulw-research/scripts/raw-decode.mjs +74 -74
- package/packages/shared-skills/skills/ulw-research/scripts/raw-locator.mjs +32 -24
- package/packages/shared-skills/skills/ulw-research/scripts/raw-snapshot.test.ts +166 -113
- package/packages/shared-skills/skills/ulw-research/scripts/references-fences.test.ts +14 -12
- package/packages/shared-skills/skills/ulw-research/scripts/repair-tracker.mjs +98 -93
- package/packages/shared-skills/skills/ulw-research/scripts/repair-tracker.test.ts +220 -214
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools-2.test.ts +403 -215
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools-3.test.ts +215 -112
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools-4.test.ts +258 -116
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools-5.test.ts +385 -205
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools-commands.mjs +265 -176
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools.mjs +65 -62
- package/packages/shared-skills/skills/ulw-research/scripts/report-tools.test.ts +295 -170
- package/packages/shared-skills/skills/ulw-research/scripts/sentence-split.mjs +63 -43
- package/packages/shared-skills/skills/ulw-research/scripts/sentence-split.test.ts +90 -90
- package/packages/shared-skills/skills/ulw-research/scripts/snapshot-readability.test.ts +107 -83
- package/packages/shared-skills/skills/ulw-research/scripts/source-commands.mjs +199 -125
- package/packages/shared-skills/skills/ulw-research/scripts/source-integrity.test.ts +359 -205
- package/packages/shared-skills/skills/ulw-research/scripts/source-refresh.mjs +91 -54
- package/packages/shared-skills/skills/ulw-research/scripts/source-snapshot.mjs +143 -102
- package/packages/shared-skills/skills/ulw-research/scripts/source-snapshot.test.ts +110 -86
- package/packages/shared-skills/skills/ulw-research/scripts/source-view.mjs +82 -46
- package/packages/shared-skills/skills/ulw-research/scripts/sources-citation.mjs +135 -96
- package/packages/shared-skills/skills/ulw-research/scripts/sources-citation.test.ts +180 -156
- package/packages/shared-skills/skills/ulw-research/scripts/tests/contracts-support.ts +123 -118
- package/packages/shared-skills/skills/ulw-research/scripts/tests/delivery-barrier-session.ts +37 -24
- package/packages/shared-skills/skills/ulw-research/scripts/tests/derive-clock.ts +5 -1
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fact-derive-support.ts +31 -37
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fact-unit-dimensions-support.ts +26 -17
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fact-unit-rules-support.ts +474 -186
- package/packages/shared-skills/skills/ulw-research/scripts/tests/fidelity-values-support.ts +15 -8
- package/packages/shared-skills/skills/ulw-research/scripts/tests/numeral-classes.ts +324 -163
- package/packages/shared-skills/skills/ulw-research/scripts/tests/report-tools-support.ts +226 -103
- package/packages/shared-skills/skills/ulw-research/scripts/tests/value-mode-support.ts +33 -25
- package/packages/shared-skills/skills/ulw-research/scripts/text-normalize.mjs +63 -48
- package/packages/shared-skills/skills/ulw-research/scripts/text-normalize.test.ts +57 -57
- package/packages/shared-skills/skills/ulw-research/scripts/text-similarity.mjs +15 -15
- package/packages/shared-skills/skills/ulw-research/scripts/text-similarity.test.ts +29 -29
- package/packages/shared-skills/skills/ulw-research/scripts/unit-algebra.mjs +98 -66
- package/packages/shared-skills/skills/ulw-research/scripts/unit-errors.mjs +14 -14
- package/packages/shared-skills/skills/ulw-research/scripts/unit-metadata.mjs +30 -14
- package/packages/shared-skills/skills/ulw-research/scripts/unit-pairs.mjs +57 -45
- package/packages/shared-skills/skills/ulw-research/scripts/unit-precision.mjs +39 -25
- package/packages/shared-skills/skills/ulw-research/scripts/unit-rules-shapes.mjs +79 -44
- package/packages/shared-skills/skills/ulw-research/scripts/unit-rules.mjs +262 -135
- package/packages/shared-skills/skills/ulw-research/scripts/units.mjs +96 -65
- package/packages/shared-skills/skills/ulw-research/scripts/units.test.ts +75 -75
- package/packages/shared-skills/skills/ulw-research/scripts/value-mode-unit-classes.test.ts +411 -177
- package/packages/shared-skills/skills/ulw-research/scripts/value-mode-unit.test.ts +264 -154
- package/packages/shared-skills/skills/ulw-research/scripts/value-rules-cli.test.ts +165 -123
- package/packages/shared-skills/skills/ulw-research/scripts/value-rules-followups.test.ts +49 -25
- package/packages/shared-skills/skills/ulw-research/scripts/value-rules-priority.test.ts +69 -47
- package/packages/shared-skills/skills/visual-qa/scripts/ansi.test.ts +32 -32
- package/packages/shared-skills/skills/visual-qa/scripts/ansi.ts +3 -6
- package/packages/shared-skills/skills/visual-qa/scripts/cli.test.ts +57 -57
- package/packages/shared-skills/skills/visual-qa/scripts/cli.ts +52 -52
- package/packages/shared-skills/skills/visual-qa/scripts/east-asian-width.test.ts +47 -47
- package/packages/shared-skills/skills/visual-qa/scripts/east-asian-width.ts +53 -53
- package/packages/shared-skills/skills/visual-qa/scripts/image-diff.test.ts +55 -55
- package/packages/shared-skills/skills/visual-qa/scripts/image-diff.ts +86 -86
- package/packages/shared-skills/skills/visual-qa/scripts/png-crc.ts +16 -16
- package/packages/shared-skills/skills/visual-qa/scripts/png-decode.test.ts +33 -33
- package/packages/shared-skills/skills/visual-qa/scripts/png-decode.ts +167 -167
- package/packages/shared-skills/skills/visual-qa/scripts/png-synth.ts +36 -40
- package/packages/shared-skills/skills/visual-qa/scripts/skill-doc-fields.test.ts +16 -16
- package/packages/shared-skills/skills/visual-qa/scripts/tui-grid.test.ts +49 -49
- package/packages/shared-skills/skills/visual-qa/scripts/tui-grid.ts +63 -63
- package/packages/shared-skills/skills/visual-qa/scripts/types.ts +37 -37
- package/packages/shared-skills/skills/visual-qa/scripts/visual-qa.mjs +268 -289
- package/postinstall.mjs +76 -80
- package/script/qa/strip-ansi.mjs +3 -3
- package/script/qa/web-terminal-redaction.mjs +8 -8
- package/script/qa/web-terminal-visual-qa.mjs +149 -94
- package/script/qa/xterm-live-terminal.mjs +136 -93
|
@@ -10,167 +10,690 @@ type Row = { form: string; raw: string; converted: string; altered: string[]; lo
|
|
|
10
10
|
const BUILTIN = "\u0000builtin"
|
|
11
11
|
|
|
12
12
|
function check(row: Row) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const builtin = row.converted === BUILTIN
|
|
14
|
+
const converted = builtin ? snapshotFromHtml(row.raw) : row.converted
|
|
15
|
+
const result = probeConversion(row.raw, converted, { attributes: builtin ? false : (row.attributes ?? true) })
|
|
16
|
+
expect({ altered: result.altered, lost: result.lost }).toEqual({ altered: row.altered, lost: row.lost })
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
const rows = (table: Row[]) => table.map((row) => [row.form, row] as const)
|
|
20
20
|
|
|
21
21
|
const OL = "<ol><li>Alpha</li><li>Beta</li></ol>"
|
|
22
|
-
const PANDOC_NOTE =
|
|
22
|
+
const PANDOC_NOTE =
|
|
23
|
+
'<p>Margin 12%<a href="#fn1" id="fnref1"><sup>1</sup></a></p><section><ol><li id="fn1"><p>Filing.<a href="#fnref1">back</a></p></li></ol></section>'
|
|
23
24
|
|
|
24
25
|
const CONVERTER_DIGITS: Row[] = [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
26
|
+
{ form: "ol -> '1. '", raw: OL, converted: "1. Alpha\n2. Beta", altered: [], lost: [] },
|
|
27
|
+
{ form: "ol -> '1) '", raw: OL, converted: "1) Alpha\n2) Beta", altered: [], lost: [] },
|
|
28
|
+
{ form: "ol -> '(1) '", raw: OL, converted: "(1) Alpha\n(2) Beta", altered: [], lost: [] },
|
|
29
|
+
{
|
|
30
|
+
form: "KO ol with numbers in the items",
|
|
31
|
+
raw: "<ol><li>\uB9E4\uCD9C 3\uC870 \uC6D0</li><li>\uC601\uC5C5\uC774\uC775 1,250\uC5B5 \uC6D0</li></ol>",
|
|
32
|
+
converted: "1. \uB9E4\uCD9C 3\uC870 \uC6D0\n2. \uC601\uC5C5\uC774\uC775 1,250\uC5B5 \uC6D0",
|
|
33
|
+
altered: [],
|
|
34
|
+
lost: [],
|
|
35
|
+
},
|
|
36
|
+
{ form: "indented markers (spaces, tab)", raw: OL, converted: " 1. Alpha\n\t2. Beta", altered: [], lost: [] },
|
|
37
|
+
{
|
|
38
|
+
form: "ol start=3",
|
|
39
|
+
raw: '<ol start="3"><li>x</li><li>y</li></ol>',
|
|
40
|
+
converted: "3. x\n4. y",
|
|
41
|
+
altered: [],
|
|
42
|
+
lost: [],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
form: "ol start=3 renumbered from 1 by the converter",
|
|
46
|
+
raw: '<ol start="3"><li>x</li></ol>',
|
|
47
|
+
converted: "1. x",
|
|
48
|
+
altered: ["1"],
|
|
49
|
+
lost: [],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
form: "nested ol",
|
|
53
|
+
raw: "<ol><li>A<ol><li>B</li><li>C</li></ol></li><li>D</li></ol>",
|
|
54
|
+
converted: "1. A\n 1. B\n 2. C\n2. D",
|
|
55
|
+
altered: [],
|
|
56
|
+
lost: [],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
form: "ol inside a blockquote",
|
|
60
|
+
raw: "<blockquote><ol><li>A</li></ol></blockquote>",
|
|
61
|
+
converted: "> 1. A",
|
|
62
|
+
altered: [],
|
|
63
|
+
lost: [],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
form: "footnote list (references ol)",
|
|
67
|
+
raw: '<p>Revenue rose 4%.<sup><a href="#cite_note-1">[1]</a></sup></p><ol class="references"><li id="cite_note-1">Annual report.</li></ol>',
|
|
68
|
+
converted: "Revenue rose 4%.[[1]](#cite_note-1)\n\n1. Annual report.",
|
|
69
|
+
altered: [],
|
|
70
|
+
lost: [],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
form: "pandoc footnote -> [^1] and [^1]: definition",
|
|
74
|
+
raw: PANDOC_NOTE,
|
|
75
|
+
converted: "Margin 12%[^1]\n\n[^1]: Filing.",
|
|
76
|
+
altered: [],
|
|
77
|
+
lost: [],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
form: "pandoc footnote -> markdownify list",
|
|
81
|
+
raw: PANDOC_NOTE,
|
|
82
|
+
converted: "Margin 12%[1](#fn1)\n\n1. Filing.[back](#fnref1)",
|
|
83
|
+
altered: [],
|
|
84
|
+
lost: [],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
form: "KO footnote list",
|
|
88
|
+
raw: '<p>\uB9E4\uCD9C 3,234\uC5B5 \uC6D0<sup><a href="#n1">1</a></sup></p><ol><li id="n1">\uC0AC\uC5C5\uBCF4\uACE0\uC11C</li></ol>',
|
|
89
|
+
converted: "\uB9E4\uCD9C 3,234\uC5B5 \uC6D0[1](#n1)\n\n1. \uC0AC\uC5C5\uBCF4\uACE0\uC11C",
|
|
90
|
+
altered: [],
|
|
91
|
+
lost: [],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
form: "table of contents as nested ol",
|
|
95
|
+
raw: '<ol><li><a href="#intro">Intro</a><ol><li><a href="#scope">Scope</a></li></ol></li><li><a href="#method">Method</a></li></ol>',
|
|
96
|
+
converted: "1. [Intro](#intro)\n 1. [Scope](#scope)\n2. [Method](#method)",
|
|
97
|
+
altered: [],
|
|
98
|
+
lost: [],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
form: "table of contents numbers written in the source",
|
|
102
|
+
raw: '<ul><li><a href="#s1"><span>1</span> Intro</a><ul><li><a href="#s1-1"><span>1.1</span> Scope</a></li></ul></li></ul>',
|
|
103
|
+
converted: "- [1 Intro](#s1)\n - [1.1 Scope](#s1-1)",
|
|
104
|
+
altered: [],
|
|
105
|
+
lost: [],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
form: "table of contents number the converter invented",
|
|
109
|
+
raw: '<ul><li><a href="#scope">Scope</a></li></ul>',
|
|
110
|
+
converted: "- [1.1 Scope](#scope)",
|
|
111
|
+
altered: ["1.1"],
|
|
112
|
+
lost: [],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
form: "heading number written in the source",
|
|
116
|
+
raw: "<h2>3. Results</h2>",
|
|
117
|
+
converted: "## 3. Results",
|
|
118
|
+
altered: [],
|
|
119
|
+
lost: [],
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
form: "KO heading number written in the source",
|
|
123
|
+
raw: "<h2>2\uC7A5 \uACB0\uACFC</h2>",
|
|
124
|
+
converted: "## 2\uC7A5 \uACB0\uACFC",
|
|
125
|
+
altered: [],
|
|
126
|
+
lost: [],
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
form: "heading number the converter invented",
|
|
130
|
+
raw: "<h2>Results</h2>",
|
|
131
|
+
converted: "## 3 Results",
|
|
132
|
+
altered: ["3"],
|
|
133
|
+
lost: [],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
form: "setext heading '2. Method' beside an ol",
|
|
137
|
+
raw: "<h2>2. Method</h2><ol><li>x</li><li>y</li></ol>",
|
|
138
|
+
converted: "2. Method\n---------\n\n1. x\n2. y",
|
|
139
|
+
altered: [],
|
|
140
|
+
lost: [],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
form: "numbered paragraph, escaped by the converter",
|
|
144
|
+
raw: "<p>1. Alpha</p>",
|
|
145
|
+
converted: "1\\. Alpha",
|
|
146
|
+
altered: [],
|
|
147
|
+
lost: [],
|
|
148
|
+
},
|
|
149
|
+
{ form: "numbered paragraph, unescaped", raw: "<p>1. Alpha</p>", converted: "1. Alpha", altered: [], lost: [] },
|
|
150
|
+
{ form: "bare '1. ' with no ol in the source", raw: "<p>Alpha</p>", converted: "1. Alpha", altered: ["1"], lost: [] },
|
|
151
|
+
{
|
|
152
|
+
form: "ul source written as '1. '",
|
|
153
|
+
raw: "<ul><li>Alpha</li></ul>",
|
|
154
|
+
converted: "1. Alpha",
|
|
155
|
+
altered: ["1"],
|
|
156
|
+
lost: [],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
form: "KO bare '1. ' with no ol",
|
|
160
|
+
raw: "<p>\uB9E4\uCD9C \uC99D\uAC00</p>",
|
|
161
|
+
converted: "1. \uB9E4\uCD9C \uC99D\uAC00",
|
|
162
|
+
altered: ["1"],
|
|
163
|
+
lost: [],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
form: "more markers than ol items",
|
|
167
|
+
raw: "<ol><li>Alpha</li></ol>",
|
|
168
|
+
converted: "1. Alpha\n2. Beta",
|
|
169
|
+
altered: ["2"],
|
|
170
|
+
lost: [],
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
form: "lazy numbering '1. 1. 1.' over a three-item ol",
|
|
174
|
+
raw: "<ol><li>a</li><li>b</li><li>c</li></ol>",
|
|
175
|
+
converted: "1. a\n1. b\n1. c",
|
|
176
|
+
altered: [],
|
|
177
|
+
lost: [],
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
form: "lazy numbering at start=3",
|
|
181
|
+
raw: '<ol start="3"><li>x</li><li>y</li></ol>',
|
|
182
|
+
converted: "3. x\n3. y",
|
|
183
|
+
altered: [],
|
|
184
|
+
lost: [],
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
form: "KO lazy numbering",
|
|
188
|
+
raw: "<ol><li>\uB9E4\uCD9C</li><li>\uBE44\uC6A9</li></ol>",
|
|
189
|
+
converted: "1. \uB9E4\uCD9C\n1. \uBE44\uC6A9",
|
|
190
|
+
altered: [],
|
|
191
|
+
lost: [],
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
form: "lazy numbering with more markers than ol items",
|
|
195
|
+
raw: "<ol><li>a</li><li>b</li></ol>",
|
|
196
|
+
converted: "1. a\n1. b\n1. c",
|
|
197
|
+
altered: ["1"],
|
|
198
|
+
lost: [],
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
form: "built-in path: no marker exemption",
|
|
202
|
+
raw: "<ol><li>Alpha</li></ol>",
|
|
203
|
+
converted: "1. Alpha",
|
|
204
|
+
altered: ["1"],
|
|
205
|
+
lost: [],
|
|
206
|
+
attributes: false,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
form: "inline link target digits",
|
|
210
|
+
raw: '<p><a href="https://example.com/2024/03/report-4">Report</a></p>',
|
|
211
|
+
converted: "[Report](https://example.com/2024/03/report-4)",
|
|
212
|
+
altered: [],
|
|
213
|
+
lost: [],
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
form: "image src, alt and title digits",
|
|
217
|
+
raw: '<p><img src="chart-640x480.png" alt="Chart 2023" title="Fig 4"></p>',
|
|
218
|
+
converted: '',
|
|
219
|
+
altered: [],
|
|
220
|
+
lost: [],
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
form: "autolink",
|
|
224
|
+
raw: '<p><a href="https://example.com/2024">https://example.com/2024</a></p>',
|
|
225
|
+
converted: "<https://example.com/2024>",
|
|
226
|
+
altered: [],
|
|
227
|
+
lost: [],
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
form: "reference-style links with numeric labels",
|
|
231
|
+
raw: '<p><a href="https://example.com/r/7">report</a> and <a href="https://example.com/r/9">data</a></p>',
|
|
232
|
+
converted: "[report][1] and [data][2]\n\n[1]: https://example.com/r/7\n[2]: https://example.com/r/9",
|
|
233
|
+
altered: [],
|
|
234
|
+
lost: [],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
form: "KO reference-style link",
|
|
238
|
+
raw: '<p><a href="https://example.kr/b/2024">\uBCF4\uACE0\uC11C</a></p>',
|
|
239
|
+
converted: "[\uBCF4\uACE0\uC11C][1]\n\n[1]: https://example.kr/b/2024",
|
|
240
|
+
altered: [],
|
|
241
|
+
lost: [],
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
form: "reference label with no definition",
|
|
245
|
+
raw: "<p>report</p>",
|
|
246
|
+
converted: "[report][1]",
|
|
247
|
+
altered: ["1"],
|
|
248
|
+
lost: [],
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
form: "reference definition with a title",
|
|
252
|
+
raw: '<p><a href="https://example.com/r/7" title="Fig 4">report</a></p>',
|
|
253
|
+
converted: '[report][1]\n\n[1]: https://example.com/r/7 "Fig 4"',
|
|
254
|
+
altered: [],
|
|
255
|
+
lost: [],
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
form: "footnote definition text is prose, not link syntax",
|
|
259
|
+
raw: '<p>Margin<sup><a href="#note">1</a></sup> per <a href="https://s.example/4.22">source</a>.</p><ol><li id="note">Rate 4.2<sup>2</sup>.</li></ol>',
|
|
260
|
+
converted: "Margin[^1] per source.\n\n[^1]: Rate 4.22.",
|
|
261
|
+
altered: ["4.22"],
|
|
262
|
+
lost: ["4.2", "2"],
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
form: "KO footnote definition text is prose",
|
|
266
|
+
raw: '<p>\uB9E4\uCD9C<sup><a href="#n">1</a></sup> <a href="https://s.example/3,234">\uCD9C\uCC98</a></p><ol><li id="n">\uB9E4\uCD9C 3,23<sup>4</sup>\uC5B5 \uC6D0</li></ol>',
|
|
267
|
+
converted: "\uB9E4\uCD9C[^1] \uCD9C\uCC98\n\n[^1]: \uB9E4\uCD9C 3,234\uC5B5 \uC6D0",
|
|
268
|
+
altered: ["3,234"],
|
|
269
|
+
lost: ["3,23", "4"],
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
form: "footnote definition with no use keeps its label a candidate",
|
|
273
|
+
raw: "<p>Filing.</p>",
|
|
274
|
+
converted: "[^1]: Filing.",
|
|
275
|
+
altered: ["1"],
|
|
276
|
+
lost: [],
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
form: "attribute digit written into prose",
|
|
280
|
+
raw: '<p><a href="/p/42">page</a></p>',
|
|
281
|
+
converted: "page 42",
|
|
282
|
+
altered: ["42"],
|
|
283
|
+
lost: [],
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
form: "built-in path: attribute digit in link syntax",
|
|
287
|
+
raw: '<p><a href="/p/42">page</a></p>',
|
|
288
|
+
converted: "[page](/p/42)",
|
|
289
|
+
altered: ["42"],
|
|
290
|
+
lost: [],
|
|
291
|
+
attributes: false,
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
form: "href page number beside a glued footnote",
|
|
295
|
+
raw: '<p>Output reached 10<sup>9</sup> kWh</p><p><a href="https://b.example/b?pg=PA109">book</a></p>',
|
|
296
|
+
converted: "Output reached 109 kWh\n\n[book](https://b.example/b?pg=PA109)",
|
|
297
|
+
altered: ["109"],
|
|
298
|
+
lost: ["10", "9"],
|
|
299
|
+
},
|
|
69
300
|
]
|
|
70
301
|
|
|
71
302
|
const SIGNS: Row[] = [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
303
|
+
{
|
|
304
|
+
form: "U+2212 written as a hyphen",
|
|
305
|
+
raw: "fell \u22123.5 points",
|
|
306
|
+
converted: "fell -3.5 points",
|
|
307
|
+
altered: [],
|
|
308
|
+
lost: [],
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
form: "U+2212 dropped",
|
|
312
|
+
raw: "fell \u22123.5 points",
|
|
313
|
+
converted: "fell 3.5 points",
|
|
314
|
+
altered: ["3.5"],
|
|
315
|
+
lost: ["\u22123.5"],
|
|
316
|
+
},
|
|
317
|
+
{ form: "hyphen-minus dropped", raw: "fell -3.5", converted: "fell 3.5", altered: ["3.5"], lost: ["-3.5"] },
|
|
318
|
+
{
|
|
319
|
+
form: "en dash minus after a space dropped",
|
|
320
|
+
raw: "fell \u20135%",
|
|
321
|
+
converted: "fell 5%",
|
|
322
|
+
altered: ["5"],
|
|
323
|
+
lost: ["\u20135"],
|
|
324
|
+
},
|
|
325
|
+
{ form: "en dash minus written as a hyphen", raw: "fell \u20135%", converted: "fell -5%", altered: [], lost: [] },
|
|
326
|
+
{
|
|
327
|
+
form: "hyphen after a space written as U+2212",
|
|
328
|
+
raw: "change -4.2",
|
|
329
|
+
converted: "change \u22124.2",
|
|
330
|
+
altered: [],
|
|
331
|
+
lost: [],
|
|
332
|
+
},
|
|
333
|
+
{ form: "U+2212 inside parentheses dropped", raw: "(\u22125)", converted: "(5)", altered: ["5"], lost: ["\u22125"] },
|
|
334
|
+
{
|
|
335
|
+
form: "U+2212 after one letter dropped",
|
|
336
|
+
raw: "\u0394\u22125 points",
|
|
337
|
+
converted: "\u03945 points",
|
|
338
|
+
altered: ["5"],
|
|
339
|
+
lost: ["\u22125"],
|
|
340
|
+
},
|
|
341
|
+
{ form: "hyphen after one letter dropped", raw: "x-5", converted: "x5", altered: ["5"], lost: ["-5"] },
|
|
342
|
+
{
|
|
343
|
+
form: "U+2212 after one letter written as a hyphen",
|
|
344
|
+
raw: "\u0394\u22125",
|
|
345
|
+
converted: "\u0394-5",
|
|
346
|
+
altered: [],
|
|
347
|
+
lost: [],
|
|
348
|
+
},
|
|
349
|
+
{ form: "en dash after one letter is a connector", raw: "A\u20135", converted: "A5", altered: [], lost: [] },
|
|
350
|
+
{ form: "range after a digit with U+2212", raw: "2019\u22122023", converted: "2019-2023", altered: [], lost: [] },
|
|
351
|
+
{ form: "range after a digit with an en dash", raw: "2019\u20132023", converted: "2019-2023", altered: [], lost: [] },
|
|
352
|
+
{ form: "ISO date", raw: "2026-10-26", converted: "2026-10-26", altered: [], lost: [] },
|
|
353
|
+
{
|
|
354
|
+
form: "hyphen after Hangul dropped",
|
|
355
|
+
raw: "\uAC10\uC18C\uC728-3.5%",
|
|
356
|
+
converted: "\uAC10\uC18C\uC728 3.5%",
|
|
357
|
+
altered: ["3.5"],
|
|
358
|
+
lost: ["-3.5"],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
form: "U+2212 after Hangul dropped",
|
|
362
|
+
raw: "\uC804\uB144 \uB300\uBE44\u22122.1%",
|
|
363
|
+
converted: "\uC804\uB144 \uB300\uBE44 2.1%",
|
|
364
|
+
altered: ["2.1"],
|
|
365
|
+
lost: ["\u22122.1"],
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
form: "U+2212 after Hangul written as a hyphen",
|
|
369
|
+
raw: "\uC99D\uAC10\uB960\u22122.1%",
|
|
370
|
+
converted: "\uC99D\uAC10\uB960-2.1%",
|
|
371
|
+
altered: [],
|
|
372
|
+
lost: [],
|
|
373
|
+
},
|
|
374
|
+
{ form: "identifier cite_note-7", raw: "cite_note-7", converted: "cite_note7", altered: [], lost: [] },
|
|
375
|
+
{ form: "identifier ISO-8601", raw: "ISO-8601", converted: "ISO 8601", altered: [], lost: [] },
|
|
376
|
+
{ form: "identifier UTF-8", raw: "UTF-8 text", converted: "UTF8 text", altered: [], lost: [] },
|
|
377
|
+
{ form: "identifier COVID-19", raw: "COVID-19 cases", converted: "COVID 19 cases", altered: [], lost: [] },
|
|
378
|
+
{ form: "two-letter code AB-12", raw: "AB-12", converted: "AB12", altered: [], lost: [] },
|
|
379
|
+
{ form: "digit-letter code 3x-5", raw: "3x-5", converted: "3x5", altered: [], lost: [] },
|
|
380
|
+
{ form: "exponent minus dropped", raw: "1e-5", converted: "1e5", altered: ["5"], lost: ["-5"] },
|
|
381
|
+
{ form: "exponent U+2212 written as a hyphen", raw: "2.5E\u22123", converted: "2.5E-3", altered: [], lost: [] },
|
|
382
|
+
{
|
|
383
|
+
form: "superscript exponent flattened onto its base",
|
|
384
|
+
raw: "<p>10<sup>\u22125</sup></p>",
|
|
385
|
+
converted: "10-5",
|
|
386
|
+
altered: ["5"],
|
|
387
|
+
lost: ["\u22125"],
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
form: "superscript exponent written with a caret",
|
|
391
|
+
raw: "<p>10<sup>\u22125</sup></p>",
|
|
392
|
+
converted: "10^-5",
|
|
393
|
+
altered: [],
|
|
394
|
+
lost: [],
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
form: "negative cells kept",
|
|
398
|
+
raw: "<table><tr><td>Q4</td><td>-5</td><td>\u22123.2</td></tr></table>",
|
|
399
|
+
converted: "| Q4 | -5 | -3.2 |",
|
|
400
|
+
altered: [],
|
|
401
|
+
lost: [],
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
form: "negative cells lose their sign",
|
|
405
|
+
raw: "<table><tr><td>Q4</td><td>-5</td><td>\u22123.2</td></tr></table>",
|
|
406
|
+
converted: "| Q4 | 5 | 3.2 |",
|
|
407
|
+
altered: ["5", "3.2"],
|
|
408
|
+
lost: ["-5", "\u22123.2"],
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
form: "KO negative cell",
|
|
412
|
+
raw: "<table><tr><th>\uC99D\uAC10</th><td>\u22122.1%</td></tr></table>",
|
|
413
|
+
converted: "| \uC99D\uAC10 | -2.1% |",
|
|
414
|
+
altered: [],
|
|
415
|
+
lost: [],
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
form: "built-in path: negative cell",
|
|
419
|
+
raw: "<table><tr><td>Q4</td><td>\u22123.2</td></tr></table>",
|
|
420
|
+
converted: BUILTIN,
|
|
421
|
+
altered: [],
|
|
422
|
+
lost: [],
|
|
423
|
+
},
|
|
424
|
+
{ form: "plus sign carries no sign", raw: "+7", converted: "7", altered: [], lost: [] },
|
|
425
|
+
{
|
|
426
|
+
form: "minus with a space after it is not a sign",
|
|
427
|
+
raw: "change - 5",
|
|
428
|
+
converted: "change 5",
|
|
429
|
+
altered: [],
|
|
430
|
+
lost: [],
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
form: "Markdown bullet before a number",
|
|
434
|
+
raw: "<ul><li>5 sites</li></ul>",
|
|
435
|
+
converted: "- 5 sites",
|
|
436
|
+
altered: [],
|
|
437
|
+
lost: [],
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
form: "Markdown bullet before a negative number",
|
|
441
|
+
raw: "<ul><li>-5 C</li></ul>",
|
|
442
|
+
converted: "- -5 C",
|
|
443
|
+
altered: [],
|
|
444
|
+
lost: [],
|
|
445
|
+
},
|
|
107
446
|
]
|
|
108
447
|
|
|
109
448
|
const GROUPING: Row[] = [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
449
|
+
{
|
|
450
|
+
form: "td | td | td",
|
|
451
|
+
raw: "<table><tr><td>3</td><td>250</td><td>100</td></tr></table>",
|
|
452
|
+
converted: "| 3 | 250 | 100 |",
|
|
453
|
+
altered: [],
|
|
454
|
+
lost: [],
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
form: "th | td",
|
|
458
|
+
raw: "<table><tr><th>12</th><td>345</td></tr></table>",
|
|
459
|
+
converted: "| 12 | 345 |",
|
|
460
|
+
altered: [],
|
|
461
|
+
lost: [],
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
form: "tr / tr",
|
|
465
|
+
raw: "<table><tr><td>12</td></tr><tr><td>345</td></tr></table>",
|
|
466
|
+
converted: "| 12 |\n| 345 |",
|
|
467
|
+
altered: [],
|
|
468
|
+
lost: [],
|
|
469
|
+
},
|
|
470
|
+
{ form: "ul li / li", raw: "<ul><li>3</li><li>250</li></ul>", converted: "- 3\n- 250", altered: [], lost: [] },
|
|
471
|
+
{ form: "ol li / li", raw: "<ol><li>3</li><li>250</li></ol>", converted: "1. 3\n2. 250", altered: [], lost: [] },
|
|
472
|
+
{ form: "p / p", raw: "<p>3</p><p>250</p>", converted: "3\n\n250", altered: [], lost: [] },
|
|
473
|
+
{ form: "div / div", raw: "<div>12</div><div>345</div>", converted: "12\n345", altered: [], lost: [] },
|
|
474
|
+
{ form: "h2 / p", raw: "<h2>12</h2><p>345</p>", converted: "## 12\n\n345", altered: [], lost: [] },
|
|
475
|
+
{ form: "dt / dd", raw: "<dl><dt>12</dt><dd>345</dd></dl>", converted: "12\n: 345", altered: [], lost: [] },
|
|
476
|
+
{
|
|
477
|
+
form: "blockquote / p",
|
|
478
|
+
raw: "<blockquote>12</blockquote><p>345</p>",
|
|
479
|
+
converted: "> 12\n\n345",
|
|
480
|
+
altered: [],
|
|
481
|
+
lost: [],
|
|
482
|
+
},
|
|
483
|
+
{ form: "br -> line break", raw: "<p>12<br>345</p>", converted: "12\n345", altered: [], lost: [] },
|
|
484
|
+
{
|
|
485
|
+
form: "br kept as <br> in a Markdown cell",
|
|
486
|
+
raw: "<table><tr><td>2,500<br>300</td></tr></table>",
|
|
487
|
+
converted: "| 2,500<br>300 |",
|
|
488
|
+
altered: [],
|
|
489
|
+
lost: [],
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
form: "br flattened to a space (real artifact)",
|
|
493
|
+
raw: "<p>12<br>345</p>",
|
|
494
|
+
converted: "12 345",
|
|
495
|
+
altered: ["12 345"],
|
|
496
|
+
lost: ["12", "345"],
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
form: "li holding two paragraphs, flattened",
|
|
500
|
+
raw: "<ul><li><p>in 2023</p><p>500 sites</p></li></ul>",
|
|
501
|
+
converted: "in 2023 500 sites",
|
|
502
|
+
altered: [],
|
|
503
|
+
lost: [],
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
form: "comma group then a space, one paragraph",
|
|
507
|
+
raw: "<p>1,250\n300</p>",
|
|
508
|
+
converted: "1,250 300",
|
|
509
|
+
altered: [],
|
|
510
|
+
lost: [],
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
form: "comma group | next cell",
|
|
514
|
+
raw: "<table><tr><td>1,250</td><td>300</td></tr></table>",
|
|
515
|
+
converted: "| 1,250 | 300 |",
|
|
516
|
+
altered: [],
|
|
517
|
+
lost: [],
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
form: "period decimal | next cell",
|
|
521
|
+
raw: "<table><tr><td>1.234</td><td>567</td></tr></table>",
|
|
522
|
+
converted: "| 1.234 | 567 |",
|
|
523
|
+
altered: [],
|
|
524
|
+
lost: [],
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
form: "KO td | td | td",
|
|
528
|
+
raw: "<table><tr><td>\uB9E4\uCD9C</td><td>3,234</td><td>\uC5B5\uC6D0</td></tr></table>",
|
|
529
|
+
converted: "| \uB9E4\uCD9C | 3,234 | \uC5B5\uC6D0 |",
|
|
530
|
+
altered: [],
|
|
531
|
+
lost: [],
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
form: "KO li / li",
|
|
535
|
+
raw: "<ul><li>12</li><li>345\uBA85</li></ul>",
|
|
536
|
+
converted: "- 12\n- 345\uBA85",
|
|
537
|
+
altered: [],
|
|
538
|
+
lost: [],
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
form: "KO p / p",
|
|
542
|
+
raw: "<p>12</p><p>345\uC5B5 \uC6D0</p>",
|
|
543
|
+
converted: "12\n\n345\uC5B5 \uC6D0",
|
|
544
|
+
altered: [],
|
|
545
|
+
lost: [],
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
form: "spaces inside one cell group",
|
|
549
|
+
raw: "<table><tr><td>1 234 567</td><td>8</td></tr></table>",
|
|
550
|
+
converted: "| 1 234 567 | 8 |",
|
|
551
|
+
altered: [],
|
|
552
|
+
lost: [],
|
|
553
|
+
},
|
|
554
|
+
{ form: "NBSP groups", raw: "1\u00a0234\u00a0567", converted: "1 234 567", altered: [], lost: [] },
|
|
555
|
+
{ form: "narrow NBSP groups", raw: "1\u202f234\u202f567", converted: "1 234 567", altered: [], lost: [] },
|
|
556
|
+
{
|
|
557
|
+
form: "thin space entity groups",
|
|
558
|
+
raw: "<p>1 234 567</p>",
|
|
559
|
+
converted: "1 234 567",
|
|
560
|
+
altered: [],
|
|
561
|
+
lost: [],
|
|
562
|
+
},
|
|
563
|
+
{ form: "figure space entity groups", raw: "<p>1 234</p>", converted: "1 234", altered: [], lost: [] },
|
|
564
|
+
{
|
|
565
|
+
form: "span-split groups",
|
|
566
|
+
raw: "<p><span>1</span> <span>234</span> <span>567</span></p>",
|
|
567
|
+
converted: "1 234 567",
|
|
568
|
+
altered: [],
|
|
569
|
+
lost: [],
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
form: "source newline between spans is a space",
|
|
573
|
+
raw: "<p><span>1</span>\n<span>234</span></p>",
|
|
574
|
+
converted: "1 234",
|
|
575
|
+
altered: [],
|
|
576
|
+
lost: [],
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
form: "KO space group with a unit",
|
|
580
|
+
raw: "<p>1 234 567\uC6D0</p>",
|
|
581
|
+
converted: "1 234 567\uC6D0",
|
|
582
|
+
altered: [],
|
|
583
|
+
lost: [],
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
form: "KO comma group in a cell",
|
|
587
|
+
raw: "<table><tr><td>3,234\uC5B5 \uC6D0</td></tr></table>",
|
|
588
|
+
converted: "| 3,234\uC5B5 \uC6D0 |",
|
|
589
|
+
altered: [],
|
|
590
|
+
lost: [],
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
form: "converter hard wrap inside a space group",
|
|
594
|
+
raw: "<p>Population 1 234 567 people</p>",
|
|
595
|
+
converted: "Population 1 234\n567 people",
|
|
596
|
+
altered: [],
|
|
597
|
+
lost: [],
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
form: "KO hard wrap inside a space group",
|
|
601
|
+
raw: "<p>\uC778\uAD6C 1 234 567\uBA85</p>",
|
|
602
|
+
converted: "\uC778\uAD6C 1 234\n567\uBA85",
|
|
603
|
+
altered: [],
|
|
604
|
+
lost: [],
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
form: "hard wrap between two separate numbers",
|
|
608
|
+
raw: "<p>in 2023 500 sites</p>",
|
|
609
|
+
converted: "in 2023\n500 sites",
|
|
610
|
+
altered: [],
|
|
611
|
+
lost: [],
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
form: "a wrap is not rejoined when the raw side holds both halves too",
|
|
615
|
+
raw: "<p>12 345 and 12 and 345</p>",
|
|
616
|
+
converted: "12\n345 and 12 and 345",
|
|
617
|
+
altered: ["12", "345"],
|
|
618
|
+
lost: ["12 345"],
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
form: "a blank line never rejoins a group",
|
|
622
|
+
raw: "<p>Population 1 234 567 people</p>",
|
|
623
|
+
converted: "Population 1 234\n\n567 people",
|
|
624
|
+
altered: ["1 234", "567"],
|
|
625
|
+
lost: ["1 234 567"],
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
form: "footnote glued onto a space group",
|
|
629
|
+
raw: "<p>1 234<sup>5</sup></p>",
|
|
630
|
+
converted: "1 2345",
|
|
631
|
+
altered: ["1", "2345"],
|
|
632
|
+
lost: ["1 234", "5"],
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
form: "built-in path: td | td | td",
|
|
636
|
+
raw: "<table><tr><td>3</td><td>250</td><td>100</td></tr></table>",
|
|
637
|
+
converted: BUILTIN,
|
|
638
|
+
altered: [],
|
|
639
|
+
lost: [],
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
form: "built-in path: li / li",
|
|
643
|
+
raw: "<ul><li>12</li><li>345</li></ul>",
|
|
644
|
+
converted: BUILTIN,
|
|
645
|
+
altered: [],
|
|
646
|
+
lost: [],
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
form: "built-in path: br inside a paragraph is joined by the snapshot, so it is flagged",
|
|
650
|
+
raw: "<p>12<br>345</p>",
|
|
651
|
+
converted: BUILTIN,
|
|
652
|
+
altered: ["12 345"],
|
|
653
|
+
lost: ["12", "345"],
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
form: "built-in path: br between cells' lines",
|
|
657
|
+
raw: "<table><tr><td>12</td></tr><tr><td>345</td></tr></table>",
|
|
658
|
+
converted: BUILTIN,
|
|
659
|
+
altered: [],
|
|
660
|
+
lost: [],
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
form: "built-in path: KO space group in a cell",
|
|
664
|
+
raw: "<table><tr><td>1 234 567\uC6D0</td><td>8</td></tr></table>",
|
|
665
|
+
converted: BUILTIN,
|
|
666
|
+
altered: [],
|
|
667
|
+
lost: [],
|
|
668
|
+
},
|
|
150
669
|
]
|
|
151
670
|
|
|
152
671
|
// Markdown markup a converter writes beside a sign must not change how the sign reads: the text the
|
|
153
672
|
// markup closes (or opens) decides, as it does in the raw HTML. One row per markup x dash x context.
|
|
154
673
|
type Shape = { form: string; html: (c: string) => string; md: (c: string) => string; opaque?: boolean }
|
|
155
674
|
const MARKUP: Shape[] = [
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
675
|
+
{ form: "**", html: (c) => `<b>${c}</b>`, md: (c) => `**${c}**` },
|
|
676
|
+
{ form: "*", html: (c) => `<i>${c}</i>`, md: (c) => `*${c}*` },
|
|
677
|
+
{ form: "_", html: (c) => `<em>${c}</em>`, md: (c) => `_${c}_` },
|
|
678
|
+
{ form: "__", html: (c) => `<strong>${c}</strong>`, md: (c) => `__${c}__` },
|
|
679
|
+
{ form: "~~", html: (c) => `<del>${c}</del>`, md: (c) => `~~${c}~~` },
|
|
680
|
+
{ form: "`", html: (c) => `<code>${c}</code>`, md: (c) => `\`${c}\`` },
|
|
681
|
+
{ form: "``", html: (c) => `<code>${c}</code>`, md: (c) => `\`\`${c}\`\`` },
|
|
682
|
+
{ form: "[](url)", html: (c) => `<a href="/c">${c}</a>`, md: (c) => `[${c}](/c)` },
|
|
683
|
+
{ form: "[][ref]", html: (c) => `<a href="/c">${c}</a>`, md: (c) => `[${c}][c]` },
|
|
684
|
+
{ form: "[] shortcut", html: (c) => `<a href="/c">${c}</a>`, md: (c) => `[${c}]` },
|
|
166
685
|
]
|
|
167
|
-
const DASHES = [
|
|
686
|
+
const DASHES = [
|
|
687
|
+
["hyphen", "-"],
|
|
688
|
+
["en dash", "\u2013"],
|
|
689
|
+
["U+2212", "\u2212"],
|
|
690
|
+
] as const
|
|
168
691
|
const CLOSED = [
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
692
|
+
{ form: "a digit", text: "2019", gap: "", after: "2023", signed: (_dash: string) => false },
|
|
693
|
+
{ form: "a Latin word", text: "COVID", gap: "", after: "19", signed: (_dash: string) => false },
|
|
694
|
+
{ form: "one Latin letter", text: "x", gap: "", after: "5", signed: (dash: string) => dash !== "\u2013" },
|
|
695
|
+
{ form: "KO Hangul", text: "\uAC10\uC18C", gap: "", after: "3", signed: (_dash: string) => true },
|
|
696
|
+
{ form: "a space", text: "fell", gap: " ", after: "5", signed: (_dash: string) => true },
|
|
174
697
|
]
|
|
175
698
|
// Every closer shape a CommonMark converter writes after text: inline links and images with a
|
|
176
699
|
// "title", 'title' or (title), a target with balanced parentheses or in <...>, collapsed and full
|
|
@@ -178,63 +701,210 @@ const CLOSED = [
|
|
|
178
701
|
// character it stands for; an escaped opener (`opaque`) is a real character, so every dash after it is a sign.
|
|
179
702
|
const IMG = '<img src="i.png" alt="x"'
|
|
180
703
|
const CLOSER_SHAPES: Shape[] = [
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
704
|
+
{ form: '[](url "title")', html: (c) => `<a href="/c" title="t">${c}</a>`, md: (c) => `[${c}](/c "t")` },
|
|
705
|
+
{ form: "[](url 'title')", html: (c) => `<a href="/c" title="t">${c}</a>`, md: (c) => `[${c}](/c 't')` },
|
|
706
|
+
{ form: "[](url (title))", html: (c) => `<a href="/c" title="t">${c}</a>`, md: (c) => `[${c}](/c (t))` },
|
|
707
|
+
{
|
|
708
|
+
form: '[](url "title with \\" and )")',
|
|
709
|
+
html: (c) => `<a href="/c" title='a " )'>${c}</a>`,
|
|
710
|
+
md: (c) => `[${c}](/c "a \\" )")`,
|
|
711
|
+
},
|
|
712
|
+
{ form: "[](url_(x))", html: (c) => `<a href="/F_(x)">${c}</a>`, md: (c) => `[${c}](/F_(x))` },
|
|
713
|
+
{ form: '[](url_(x) "title")', html: (c) => `<a href="/F_(x)" title="t">${c}</a>`, md: (c) => `[${c}](/F_(x) "t")` },
|
|
714
|
+
{ form: "[](<url with a space>)", html: (c) => `<a href="/a b">${c}</a>`, md: (c) => `[${c}](</a b>)` },
|
|
715
|
+
{ form: "[][] collapsed", html: (c) => `<a href="/c">${c}</a>`, md: (c) => `[${c}][]` },
|
|
716
|
+
{
|
|
717
|
+
form: '[**text**](url "title")',
|
|
718
|
+
html: (c) => `<a href="/c" title="t"><b>${c}</b></a>`,
|
|
719
|
+
md: (c) => `[**${c}**](/c "t")`,
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
form: '**[text](url "title")**',
|
|
723
|
+
html: (c) => `<b><a href="/c" title="t">${c}</a></b>`,
|
|
724
|
+
md: (c) => `**[${c}](/c "t")**`,
|
|
725
|
+
},
|
|
726
|
+
{ form: "", html: (c) => `${c}${IMG}>`, md: (c) => `${c}` },
|
|
727
|
+
{ form: '', html: (c) => `${c}${IMG} title="t">`, md: (c) => `${c}` },
|
|
728
|
+
{ form: "", html: (c) => `${c}${IMG} title="t">`, md: (c) => `${c}` },
|
|
729
|
+
{ form: ".png)", html: (c) => `${c}<img src="a_(b).png" alt="x">`, md: (c) => `${c}.png)` },
|
|
730
|
+
{
|
|
731
|
+
form: '.png "title")',
|
|
732
|
+
html: (c) => `${c}<img src="a_(b).png" alt="x" title="t">`,
|
|
733
|
+
md: (c) => `${c}.png "t")`,
|
|
734
|
+
},
|
|
735
|
+
{ form: "", html: (c) => `${c}<img src="a b.png" alt="x">`, md: (c) => `${c}` },
|
|
736
|
+
{ form: "![][ref]", html: (c) => `${c}${IMG}>`, md: (c) => `${c}![x][i]` },
|
|
737
|
+
{ form: "[](url)", html: (c) => `${c}<a href="/p">${IMG}></a>`, md: (c) => `${c}[](/p)` },
|
|
738
|
+
{ form: "****", html: (c) => `${c}<b>${IMG}></b>`, md: (c) => `${c}****` },
|
|
739
|
+
...["*", "_", "]", ")", "~", "`"].map((x): Shape => ({
|
|
740
|
+
form: `escaped \\${x}`,
|
|
741
|
+
html: (c) => `${c}${x}`,
|
|
742
|
+
md: (c) => `${c}\\${x}`,
|
|
743
|
+
})),
|
|
744
|
+
...["[", "("].map((x): Shape => ({
|
|
745
|
+
form: `escaped \\${x} (an opener)`,
|
|
746
|
+
html: (c) => `${c}${x}`,
|
|
747
|
+
md: (c) => `${c}\\${x}`,
|
|
748
|
+
opaque: true,
|
|
749
|
+
})),
|
|
202
750
|
]
|
|
203
|
-
const closerRows = (shapes: Shape[]): Row[] =>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
751
|
+
const closerRows = (shapes: Shape[]): Row[] =>
|
|
752
|
+
shapes.flatMap((m) =>
|
|
753
|
+
DASHES.flatMap(([dash, d]) =>
|
|
754
|
+
CLOSED.flatMap((c) => {
|
|
755
|
+
const raw = `<p>${m.html(c.text)}${c.gap}${d}${c.after}</p>`
|
|
756
|
+
const kept: Row = {
|
|
757
|
+
form: `${m.form} closing ${c.form}, then a ${dash}`,
|
|
758
|
+
raw,
|
|
759
|
+
converted: `${m.md(c.text)}${c.gap}${d}${c.after}`,
|
|
760
|
+
altered: [],
|
|
761
|
+
lost: [],
|
|
762
|
+
}
|
|
763
|
+
if (!(m.opaque || c.signed(d))) return [kept]
|
|
764
|
+
return [
|
|
765
|
+
kept,
|
|
766
|
+
{
|
|
767
|
+
form: `${m.form} closing ${c.form}, ${dash} dropped`,
|
|
768
|
+
raw,
|
|
769
|
+
converted: `${m.md(c.text)}${c.gap}${c.after}`,
|
|
770
|
+
altered: [c.after],
|
|
771
|
+
lost: [`${d}${c.after}`],
|
|
772
|
+
},
|
|
773
|
+
]
|
|
774
|
+
}),
|
|
775
|
+
),
|
|
776
|
+
)
|
|
209
777
|
const SIGN_MARKUP: Row[] = [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
778
|
+
...closerRows(MARKUP),
|
|
779
|
+
...closerRows(CLOSER_SHAPES),
|
|
780
|
+
...MARKUP.flatMap((m) => [
|
|
781
|
+
...DASHES.flatMap(([dash, d]) => [
|
|
782
|
+
{
|
|
783
|
+
form: `${m.form} around a ${dash} number after a space`,
|
|
784
|
+
raw: `<p>fell ${m.html(`${d}5`)}</p>`,
|
|
785
|
+
converted: `fell ${m.md(`${d}5`)}`,
|
|
786
|
+
altered: [],
|
|
787
|
+
lost: [],
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
form: `${m.form} around a ${dash} number at line start`,
|
|
791
|
+
raw: `<p>${m.html(`${d}5`)} pts</p>`,
|
|
792
|
+
converted: `${m.md(`${d}5`)} pts`,
|
|
793
|
+
altered: [],
|
|
794
|
+
lost: [],
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
form: `${m.form} opened between a ${dash} and its digits`,
|
|
798
|
+
raw: `<p>fell ${d}${m.html("5")}</p>`,
|
|
799
|
+
converted: `fell ${d}${m.md("5")}`,
|
|
800
|
+
altered: [],
|
|
801
|
+
lost: [],
|
|
802
|
+
},
|
|
803
|
+
]),
|
|
804
|
+
{
|
|
805
|
+
form: `${m.form} around a number whose U+2212 was dropped`,
|
|
806
|
+
raw: `<p>fell ${m.html("\u22125")}</p>`,
|
|
807
|
+
converted: `fell ${m.md("5")}`,
|
|
808
|
+
altered: ["5"],
|
|
809
|
+
lost: ["\u22125"],
|
|
810
|
+
},
|
|
811
|
+
]),
|
|
812
|
+
{
|
|
813
|
+
form: "reviewer: **2019**-2023",
|
|
814
|
+
raw: "<p><b>2019</b>-2023</p>",
|
|
815
|
+
converted: "**2019**-2023",
|
|
816
|
+
altered: [],
|
|
817
|
+
lost: [],
|
|
818
|
+
},
|
|
819
|
+
{ form: "reviewer: *UTF*-8", raw: "<p><i>UTF</i>-8</p>", converted: "*UTF*-8", altered: [], lost: [] },
|
|
820
|
+
{ form: "reviewer: `v1`-2", raw: "<p><code>v1</code>-2</p>", converted: "`v1`-2", altered: [], lost: [] },
|
|
821
|
+
{
|
|
822
|
+
form: "image before a minus: the alt text is not the context",
|
|
823
|
+
raw: '<p>Q <img src="i.png" alt="chart">\u22125</p>',
|
|
824
|
+
converted: "Q -5",
|
|
825
|
+
altered: [],
|
|
826
|
+
lost: [],
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
form: "KO image before a minus",
|
|
830
|
+
raw: '<p>\uC99D\uAC10 <img src="i.png" alt="\uADF8\uB9BC">\u22122.1%</p>',
|
|
831
|
+
converted: "\uC99D\uAC10 -2.1%",
|
|
832
|
+
altered: [],
|
|
833
|
+
lost: [],
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
form: "autolink closer before one letter's minus",
|
|
837
|
+
raw: '<p><a href="https://x.example/a">https://x.example/a</a>\u22125</p>',
|
|
838
|
+
converted: "<https://x.example/a>-5",
|
|
839
|
+
altered: [],
|
|
840
|
+
lost: [],
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
form: "identifier kept through markup: **cite_note**-7",
|
|
844
|
+
raw: "<p><b>cite_note</b>-7</p>",
|
|
845
|
+
converted: "**cite_note**-7",
|
|
846
|
+
altered: [],
|
|
847
|
+
lost: [],
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
form: "two letters split by markup stay an identifier",
|
|
851
|
+
raw: "<p>a<b>b</b>\u22125</p>",
|
|
852
|
+
converted: "a**b**-5",
|
|
853
|
+
altered: [],
|
|
854
|
+
lost: [],
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
form: "reviewer r5: titled link before an en dash range",
|
|
858
|
+
raw: 'From <a href="/wiki/1990" title="1990">1990</a>\u20132000',
|
|
859
|
+
converted: 'From [1990](/wiki/1990 "1990")\u20132000',
|
|
860
|
+
altered: [],
|
|
861
|
+
lost: [],
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
form: "reviewer r5: titled link before a hyphen range",
|
|
865
|
+
raw: 'From <a href="/wiki/1990" title="1990">1990</a>-2000',
|
|
866
|
+
converted: 'From [1990](/wiki/1990 "1990")-2000',
|
|
867
|
+
altered: [],
|
|
868
|
+
lost: [],
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
form: "reviewer r5: titled link on a word",
|
|
872
|
+
raw: '<p><a href="/x" title="t">ab</a>-5</p>',
|
|
873
|
+
converted: '[ab](/x "t")-5',
|
|
874
|
+
altered: [],
|
|
875
|
+
lost: [],
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
form: "reviewer r5: titled image after a word",
|
|
879
|
+
raw: '<p>ab<img alt="x" title="t" src="i.png">-5</p>',
|
|
880
|
+
converted: 'ab-5',
|
|
881
|
+
altered: [],
|
|
882
|
+
lost: [],
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
form: "reviewer r5: image target with parentheses after a space",
|
|
886
|
+
raw: '<p>fell <img src="a_(b).png" alt="x">-5</p>',
|
|
887
|
+
converted: "fell .png)-5",
|
|
888
|
+
altered: [],
|
|
889
|
+
lost: [],
|
|
890
|
+
},
|
|
891
|
+
{ form: "reviewer r5: escaped brackets", raw: "x[3]-5", converted: "x\\[3\\]-5", altered: [], lost: [] },
|
|
892
|
+
{ form: "reviewer r5: escaped asterisk", raw: "foo*-5", converted: "foo\\*-5", altered: [], lost: [] },
|
|
893
|
+
{ form: "reviewer r5: escaped underscore", raw: "ab_-5", converted: "ab\\_-5", altered: [], lost: [] },
|
|
894
|
+
{
|
|
895
|
+
form: "link target digits after balanced parentheses are link syntax",
|
|
896
|
+
raw: '<p><a href="/wiki/File_(2019)_v9.png">pic</a></p>',
|
|
897
|
+
converted: "[pic](/wiki/File_(2019)_v9.png)",
|
|
898
|
+
altered: [],
|
|
899
|
+
lost: [],
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
form: "titled link target digits are link syntax",
|
|
903
|
+
raw: '<p><a href="/r/7" title="Fig (4)">pic</a></p>',
|
|
904
|
+
converted: '[pic](/r/7 "Fig (4)")',
|
|
905
|
+
altered: [],
|
|
906
|
+
lost: [],
|
|
907
|
+
},
|
|
238
908
|
]
|
|
239
909
|
|
|
240
910
|
// Raw inline HTML a converter leaves inside its Markdown (pandoc's gfm writer keeps <sup>, <sub>,
|
|
@@ -242,70 +912,290 @@ const SIGN_MARKUP: Row[] = [
|
|
|
242
912
|
// boundary as on the raw side (`opaque`: every dash after it is a sign), any other tag or comment
|
|
243
913
|
// is dropped with its attributes, like a Markdown closer or opener.
|
|
244
914
|
const HTML_SHAPES: Shape[] = [
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
915
|
+
{ form: "<sup>", html: (c) => `<sup>${c}</sup>`, md: (c) => `<sup>${c}</sup>`, opaque: true },
|
|
916
|
+
{ form: "<sub>", html: (c) => `<sub>${c}</sub>`, md: (c) => `<sub>${c}</sub>`, opaque: true },
|
|
917
|
+
{ form: "<br> after the text", html: (c) => `${c}<br>`, md: (c) => `${c}<br>`, opaque: true },
|
|
918
|
+
{ form: "<br /> after the text", html: (c) => `${c}<br>`, md: (c) => `${c}<br />`, opaque: true },
|
|
919
|
+
{ form: "<span>", html: (c) => `<span>${c}</span>`, md: (c) => `<span>${c}</span>` },
|
|
920
|
+
{ form: '<span class="x">', html: (c) => `<span class="x">${c}</span>`, md: (c) => `<span class="x">${c}</span>` },
|
|
921
|
+
{ form: "<em> written for <i>", html: (c) => `<i>${c}</i>`, md: (c) => `<em>${c}</em>` },
|
|
922
|
+
{
|
|
923
|
+
form: '<a href="/wiki/1990">',
|
|
924
|
+
html: (c) => `<a href="/wiki/1990">${c}</a>`,
|
|
925
|
+
md: (c) => `<a href="/wiki/1990">${c}</a>`,
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
form: '<a href title="Fig (4)">',
|
|
929
|
+
html: (c) => `<a href="/c" title="Fig (4)">${c}</a>`,
|
|
930
|
+
md: (c) => `<a href="/c" title="Fig (4)">${c}</a>`,
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
form: '<img width="320"> after the text',
|
|
934
|
+
html: (c) => `${c}<img src="i.png" width="320">`,
|
|
935
|
+
md: (c) => `${c}<img src="i.png" width="320">`,
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
form: "<img src=a2019.png /> after the text",
|
|
939
|
+
html: (c) => `${c}<img src="a2019.png" alt="x">`,
|
|
940
|
+
md: (c) => `${c}<img src=a2019.png alt=x />`,
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
form: "<!-- comment 7 --> after the text",
|
|
944
|
+
html: (c) => `${c}<!-- comment 7 -->`,
|
|
945
|
+
md: (c) => `${c}<!-- comment 7 -->`,
|
|
946
|
+
},
|
|
947
|
+
{ form: "**<span>**", html: (c) => `<b><span>${c}</span></b>`, md: (c) => `**<span>${c}</span>**` },
|
|
948
|
+
{
|
|
949
|
+
form: "<span>[link](url)</span>",
|
|
950
|
+
html: (c) => `<span><a href="/c">${c}</a></span>`,
|
|
951
|
+
md: (c) => `<span>[${c}](/c)</span>`,
|
|
952
|
+
},
|
|
259
953
|
]
|
|
260
954
|
const RAW_HTML: Row[] = [
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
955
|
+
...closerRows(HTML_SHAPES),
|
|
956
|
+
{
|
|
957
|
+
form: "reviewer r6: pandoc 10<sup>-5</sup>",
|
|
958
|
+
raw: "<p>10<sup>-5</sup> m</p>",
|
|
959
|
+
converted: "10<sup>-5</sup> m",
|
|
960
|
+
altered: [],
|
|
961
|
+
lost: [],
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
form: "reviewer r6: pandoc 10<sup>U+2212 5</sup>",
|
|
965
|
+
raw: "<p>10<sup>\u22125</sup> m</p>",
|
|
966
|
+
converted: "10<sup>\u22125</sup> m",
|
|
967
|
+
altered: [],
|
|
968
|
+
lost: [],
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
form: "reviewer r6: pandoc 10<sup>9</sup>",
|
|
972
|
+
raw: "<p>Output reached 10<sup>9</sup> kWh</p>",
|
|
973
|
+
converted: "Output reached 10<sup>9</sup> kWh",
|
|
974
|
+
altered: [],
|
|
975
|
+
lost: [],
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
form: "reviewer r6: <span>a</span>-5",
|
|
979
|
+
raw: "<p><span>a</span>-5</p>",
|
|
980
|
+
converted: "<span>a</span>-5",
|
|
981
|
+
altered: [],
|
|
982
|
+
lost: [],
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
form: 'reviewer r6: <img src="a2019.png">',
|
|
986
|
+
raw: '<p><img src="a2019.png"></p>',
|
|
987
|
+
converted: '<img src="a2019.png">',
|
|
988
|
+
altered: [],
|
|
989
|
+
lost: [],
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
form: "reviewer r6: <img src=x width=320> before a number",
|
|
993
|
+
raw: "<p><img src=x width=320> 5 apples</p>",
|
|
994
|
+
converted: "<img src=x width=320> 5 apples",
|
|
995
|
+
altered: [],
|
|
996
|
+
lost: [],
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
form: "KO <img width=320> before a number",
|
|
1000
|
+
raw: "<p><img src=x width=320> \uC0AC\uACFC 5\uAC1C</p>",
|
|
1001
|
+
converted: "<img src=x width=320> \uC0AC\uACFC 5\uAC1C",
|
|
1002
|
+
altered: [],
|
|
1003
|
+
lost: [],
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
form: "reviewer r6: 2019<sup>a</sup>-2023",
|
|
1007
|
+
raw: "<p>2019<sup>a</sup>-2023</p>",
|
|
1008
|
+
converted: "2019<sup>a</sup>-2023",
|
|
1009
|
+
altered: [],
|
|
1010
|
+
lost: [],
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
form: "KO 3,234<sup>1</sup>\uC5B5 kept as raw HTML",
|
|
1014
|
+
raw: "<p>\uB9E4\uCD9C 3,234<sup>1</sup>\uC5B5 \uC6D0</p>",
|
|
1015
|
+
converted: "\uB9E4\uCD9C 3,234<sup>1</sup>\uC5B5 \uC6D0",
|
|
1016
|
+
altered: [],
|
|
1017
|
+
lost: [],
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
form: "a superscript the converter flattened is still altered",
|
|
1021
|
+
raw: "<p>10<sup>-5</sup> m</p>",
|
|
1022
|
+
converted: "10-5 m",
|
|
1023
|
+
altered: ["5"],
|
|
1024
|
+
lost: ["-5"],
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
form: "a glued footnote is still altered next to raw HTML",
|
|
1028
|
+
raw: "<p>4.2<sup>2</sup> <span>bn</span></p>",
|
|
1029
|
+
converted: "4.22 <span>bn</span>",
|
|
1030
|
+
altered: ["4.22"],
|
|
1031
|
+
lost: ["4.2", "2"],
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
form: "an img width written into prose is still altered",
|
|
1035
|
+
raw: "<p><img src=x width=320> 5</p>",
|
|
1036
|
+
converted: "320 5",
|
|
1037
|
+
altered: ["320"],
|
|
1038
|
+
lost: [],
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
form: "an autolink is not a tag",
|
|
1042
|
+
raw: '<p><a href="https://x.example/2024">https://x.example/2024</a></p>',
|
|
1043
|
+
converted: "<https://x.example/2024>",
|
|
1044
|
+
altered: [],
|
|
1045
|
+
lost: [],
|
|
1046
|
+
},
|
|
1047
|
+
{ form: "an escaped \\< is text, not a tag", raw: "<p>a<b>7</p>", converted: "a\\<b>7", altered: [], lost: [] },
|
|
1048
|
+
{ form: "a < with no tag end stays text", raw: "<p>a <sup 5</p>", converted: "a <sup 5", altered: [], lost: [] },
|
|
1049
|
+
{
|
|
1050
|
+
form: "a tag never spans a blank line",
|
|
1051
|
+
raw: "<p>a <span</p><p>5 x></p>",
|
|
1052
|
+
converted: "a <span\n\n5 x>",
|
|
1053
|
+
altered: [],
|
|
1054
|
+
lost: [],
|
|
1055
|
+
},
|
|
278
1056
|
]
|
|
279
1057
|
|
|
280
1058
|
// A reference definition's title may sit alone on the next line (CommonMark): its digits are link
|
|
281
1059
|
// syntax there too. Only the title is read across the line break; text after it makes it prose.
|
|
282
1060
|
const REF_TITLES: Row[] = [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
1061
|
+
...[
|
|
1062
|
+
['"Fig 2019"', "double quotes"],
|
|
1063
|
+
["'Fig 2019'", "single quotes"],
|
|
1064
|
+
["(Fig 2019)", "parentheses"],
|
|
1065
|
+
].flatMap(([title, form]) => [
|
|
1066
|
+
{
|
|
1067
|
+
form: `title in ${form} on the next line, indented`,
|
|
1068
|
+
raw: '<p><a href="/x" title="Fig 2019">fig</a></p>',
|
|
1069
|
+
converted: `[fig][1]\n\n[1]: /x\n ${title}`,
|
|
1070
|
+
altered: [],
|
|
1071
|
+
lost: [],
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
form: `title in ${form} on the next line, not indented`,
|
|
1075
|
+
raw: '<p><a href="/x" title="Fig 2019">fig</a></p>',
|
|
1076
|
+
converted: `[fig][1]\n\n[1]: /x\n${title}\n`,
|
|
1077
|
+
altered: [],
|
|
1078
|
+
lost: [],
|
|
1079
|
+
},
|
|
1080
|
+
]),
|
|
1081
|
+
{
|
|
1082
|
+
form: "KO title on the next line",
|
|
1083
|
+
raw: '<p><a href="/x" title="\uADF8\uB9BC 2019">\uADF8\uB9BC</a></p>',
|
|
1084
|
+
converted: '[\uADF8\uB9BC][1]\n\n[1]: /x\n "\uADF8\uB9BC 2019"',
|
|
1085
|
+
altered: [],
|
|
1086
|
+
lost: [],
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
form: "two definitions, the first with its title on the next line",
|
|
1090
|
+
raw: '<p><a href="/x" title="Fig 2019">a</a> <a href="/y/7">b</a></p>',
|
|
1091
|
+
converted: '[a][1] [b][2]\n\n[1]: /x\n "Fig 2019"\n[2]: /y/7',
|
|
1092
|
+
altered: [],
|
|
1093
|
+
lost: [],
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
form: "a quoted line with text after it is prose, not a title",
|
|
1097
|
+
raw: '<p><a href="/x" title="Fig 2019">fig</a></p>',
|
|
1098
|
+
converted: '[fig][1]\n\n[1]: /x\n"Fig 2019" was cited',
|
|
1099
|
+
altered: ["2019"],
|
|
1100
|
+
lost: [],
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
form: "a next-line title digit the source does not hold is altered",
|
|
1104
|
+
raw: '<p><a href="/x" title="Fig">fig</a></p>',
|
|
1105
|
+
converted: '[fig][1]\n\n[1]: /x\n "Fig 2019"',
|
|
1106
|
+
altered: ["2019"],
|
|
1107
|
+
lost: [],
|
|
1108
|
+
},
|
|
291
1109
|
]
|
|
292
1110
|
|
|
293
1111
|
// Declared out of scope (references/fact-ledger.md): constructs outside the CommonMark inline grammar,
|
|
294
1112
|
// the html-lite tag set and the named-entity table. Each row ASSERTS the safe-direction report, so
|
|
295
1113
|
// the boundary is tested: the numbers are altered and `source snapshot --replace` recovers.
|
|
296
1114
|
const OUT_OF_SCOPE: Row[] = [
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
1115
|
+
{
|
|
1116
|
+
form: "custom converter syntax: a Hugo figure shortcode",
|
|
1117
|
+
raw: '<figure><img src="chart-2019.png" width="640"></figure>',
|
|
1118
|
+
converted: '{{< figure src="chart-2019.png" width="640" >}}',
|
|
1119
|
+
altered: ["2019", "640"],
|
|
1120
|
+
lost: [],
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
form: "custom converter syntax: pandoc image attributes {width=640}",
|
|
1124
|
+
raw: '<p><img src="i.png" alt="x" width="640"></p>',
|
|
1125
|
+
converted: "{width=640}",
|
|
1126
|
+
altered: ["640"],
|
|
1127
|
+
lost: [],
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
form: "LaTeX: \\frac{3}{4} for a vulgar fraction",
|
|
1131
|
+
raw: "<p>\u00BE of sites</p>",
|
|
1132
|
+
converted: "$\\frac{3}{4}$ of sites",
|
|
1133
|
+
altered: ["3", "4"],
|
|
1134
|
+
lost: [],
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
form: "KO LaTeX: \\frac{3}{4}",
|
|
1138
|
+
raw: "<p>\uC0AC\uC774\uD2B8\uC758 \u00BE</p>",
|
|
1139
|
+
converted: "\uC0AC\uC774\uD2B8\uC758 $\\frac{3}{4}$",
|
|
1140
|
+
altered: ["3", "4"],
|
|
1141
|
+
lost: [],
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
form: "MathJax: \\sqrt[3]{8} for a cube root",
|
|
1145
|
+
raw: "<p>\u221B8</p>",
|
|
1146
|
+
converted: "\\(\\sqrt[3]{8}\\)",
|
|
1147
|
+
altered: ["3"],
|
|
1148
|
+
lost: [],
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
form: "non-CommonMark table: AsciiDoc cols",
|
|
1152
|
+
raw: "<table><tr><td>A</td><td>B</td></tr></table>",
|
|
1153
|
+
converted: '[cols="1,3"]\n|===\n| A | B\n|===',
|
|
1154
|
+
altered: ["1,3"],
|
|
1155
|
+
lost: [],
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
form: "non-CommonMark table: a colspan cell repeated per column",
|
|
1159
|
+
raw: '<table><tr><td colspan="2">5</td></tr></table>',
|
|
1160
|
+
converted: "| 5 | 5 |",
|
|
1161
|
+
altered: ["5"],
|
|
1162
|
+
lost: [],
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
form: "footnote extension beyond pandoc's: a numbered back-reference title",
|
|
1166
|
+
raw: '<p>Margin 12%<sup><a href="#fn-a">a</a></sup></p><p id="fn-a">Filing.</p>',
|
|
1167
|
+
converted: 'Margin 12%[^a]\n\n[^a]: Filing. [\u21A9](#fnref-a "Jump back to footnote 2 in the text")',
|
|
1168
|
+
altered: ["2"],
|
|
1169
|
+
lost: [],
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
form: "reference definition with its destination on the next line",
|
|
1173
|
+
raw: '<p><a href="/x/2019">fig</a></p>',
|
|
1174
|
+
converted: "[fig][1]\n\n[1]:\n /x/2019",
|
|
1175
|
+
altered: ["2019"],
|
|
1176
|
+
lost: [],
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
form: "an unescaped & whose text spells a reference (turndown)",
|
|
1180
|
+
raw: "<p>Type &minus;5 to negate</p>",
|
|
1181
|
+
converted: "Type −5 to negate",
|
|
1182
|
+
altered: ["\u22125"],
|
|
1183
|
+
lost: ["5"],
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
form: "a legacy reference without its semicolon ( )",
|
|
1187
|
+
raw: "<p>1 234 567</p>",
|
|
1188
|
+
converted: "1\u00A0234 567",
|
|
1189
|
+
altered: ["1 234 567"],
|
|
1190
|
+
lost: ["1", "234 567"],
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
form: "a numeric reference padded past 6 hex digits",
|
|
1194
|
+
raw: "<p>−5</p>",
|
|
1195
|
+
converted: "\u22125",
|
|
1196
|
+
altered: ["\u22125"],
|
|
1197
|
+
lost: ["00002212", "5"],
|
|
1198
|
+
},
|
|
309
1199
|
]
|
|
310
1200
|
|
|
311
1201
|
// Named character references whose decoded character the probe reads as a sign or a separator (or
|
|
@@ -313,49 +1203,195 @@ const OUT_OF_SCOPE: Row[] = [
|
|
|
313
1203
|
// separator position, EN and KO, kept as the decoded character, plus the sign position with the
|
|
314
1204
|
// character dropped (a sign is lost; any other character changes nothing).
|
|
315
1205
|
const ENTITIES: [string, string][] = [
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
1206
|
+
["minus", "\u2212"],
|
|
1207
|
+
["ndash", "\u2013"],
|
|
1208
|
+
["mdash", "\u2014"],
|
|
1209
|
+
["hyphen", "\u2010"],
|
|
1210
|
+
["dash", "\u2010"],
|
|
1211
|
+
["thinsp", "\u2009"],
|
|
1212
|
+
["ThinSpace", "\u2009"],
|
|
1213
|
+
["numsp", "\u2007"],
|
|
1214
|
+
["puncsp", "\u2008"],
|
|
1215
|
+
["hairsp", "\u200A"],
|
|
1216
|
+
["VeryThinSpace", "\u200A"],
|
|
1217
|
+
["ensp", "\u2002"],
|
|
1218
|
+
["emsp", "\u2003"],
|
|
1219
|
+
["emsp13", "\u2004"],
|
|
1220
|
+
["emsp14", "\u2005"],
|
|
1221
|
+
["MediumSpace", "\u205F"],
|
|
1222
|
+
["nbsp", "\u00A0"],
|
|
1223
|
+
["NonBreakingSpace", "\u00A0"],
|
|
1224
|
+
["comma", ","],
|
|
1225
|
+
["period", "."],
|
|
1226
|
+
["plus", "+"],
|
|
1227
|
+
["lowbar", "_"],
|
|
1228
|
+
["ast", "*"],
|
|
1229
|
+
["midast", "*"],
|
|
1230
|
+
["grave", "`"],
|
|
1231
|
+
["DiacriticalGrave", "`"],
|
|
1232
|
+
["lpar", "("],
|
|
1233
|
+
["rpar", ")"],
|
|
1234
|
+
["lsqb", "["],
|
|
1235
|
+
["lbrack", "["],
|
|
1236
|
+
["rsqb", "]"],
|
|
1237
|
+
["rbrack", "]"],
|
|
322
1238
|
]
|
|
323
1239
|
const SIGN_CHARS = new Set(["\u2212", "\u2013"])
|
|
324
1240
|
const ENTITY_ROWS: Row[] = ENTITIES.flatMap(([name, ch]) => {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
1241
|
+
const e = `&${name};`
|
|
1242
|
+
return [
|
|
1243
|
+
{
|
|
1244
|
+
form: `&${name}; in a sign position`,
|
|
1245
|
+
raw: `<p>fell ${e}5 pts</p>`,
|
|
1246
|
+
converted: `fell ${ch}5 pts`,
|
|
1247
|
+
altered: [],
|
|
1248
|
+
lost: [],
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
form: `KO &${name}; in a sign position`,
|
|
1252
|
+
raw: `<p>\uAC10\uC18C${e}3%</p>`,
|
|
1253
|
+
converted: `\uAC10\uC18C${ch}3%`,
|
|
1254
|
+
altered: [],
|
|
1255
|
+
lost: [],
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
form: `&${name}; as a separator`,
|
|
1259
|
+
raw: `<p>1${e}234${e}567 people</p>`,
|
|
1260
|
+
converted: `1${ch}234${ch}567 people`,
|
|
1261
|
+
altered: [],
|
|
1262
|
+
lost: [],
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
form: `KO &${name}; as a separator`,
|
|
1266
|
+
raw: `<p>\uC778\uAD6C 1${e}234${e}567\uBA85</p>`,
|
|
1267
|
+
converted: `\uC778\uAD6C 1${ch}234${ch}567\uBA85`,
|
|
1268
|
+
altered: [],
|
|
1269
|
+
lost: [],
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
form: `&${name}; in a sign position, dropped`,
|
|
1273
|
+
raw: `<p>fell ${e}5 pts</p>`,
|
|
1274
|
+
converted: "fell 5 pts",
|
|
1275
|
+
altered: SIGN_CHARS.has(ch) ? ["5"] : [],
|
|
1276
|
+
lost: SIGN_CHARS.has(ch) ? [`${ch}5`] : [],
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
form: `KO &${name}; in a sign position, dropped`,
|
|
1280
|
+
raw: `<p>\uAC10\uC18C${e}3%</p>`,
|
|
1281
|
+
converted: "\uAC10\uC18C3%",
|
|
1282
|
+
altered: SIGN_CHARS.has(ch) ? ["3"] : [],
|
|
1283
|
+
lost: SIGN_CHARS.has(ch) ? [`${ch}3`] : [],
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
form: `&${name}; kept as the reference in a sign position`,
|
|
1287
|
+
raw: `<p>fell ${e}5 pts</p>`,
|
|
1288
|
+
converted: `fell ${e}5 pts`,
|
|
1289
|
+
altered: [],
|
|
1290
|
+
lost: [],
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
form: `KO &${name}; kept as the reference in a sign position`,
|
|
1294
|
+
raw: `<p>\uAC10\uC18C${e}3%</p>`,
|
|
1295
|
+
converted: `\uAC10\uC18C${e}3%`,
|
|
1296
|
+
altered: [],
|
|
1297
|
+
lost: [],
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
form: `&${name}; kept as the reference as a separator`,
|
|
1301
|
+
raw: `<p>1${e}234${e}567 people</p>`,
|
|
1302
|
+
converted: `1${e}234${e}567 people`,
|
|
1303
|
+
altered: [],
|
|
1304
|
+
lost: [],
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
form: `KO &${name}; kept as the reference as a separator`,
|
|
1308
|
+
raw: `<p>\uC778\uAD6C 1${e}234${e}567\uBA85</p>`,
|
|
1309
|
+
converted: `\uC778\uAD6C 1${e}234${e}567\uBA85`,
|
|
1310
|
+
altered: [],
|
|
1311
|
+
lost: [],
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
form: `&${name}; in a verbatim plain-text copy (sign position)`,
|
|
1315
|
+
raw: `fell ${e}5 pts`,
|
|
1316
|
+
converted: `fell ${e}5 pts`,
|
|
1317
|
+
altered: [],
|
|
1318
|
+
lost: [],
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
form: `&${name}; in a verbatim plain-text copy (separator)`,
|
|
1322
|
+
raw: `1${e}234${e}567 people`,
|
|
1323
|
+
converted: `1${e}234${e}567 people`,
|
|
1324
|
+
altered: [],
|
|
1325
|
+
lost: [],
|
|
1326
|
+
},
|
|
1327
|
+
]
|
|
340
1328
|
})
|
|
341
1329
|
ENTITY_ROWS.push(
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
1330
|
+
{
|
|
1331
|
+
form: "reviewer r5: − in a text with no tags",
|
|
1332
|
+
raw: "x −3.5%",
|
|
1333
|
+
converted: "x \u22123.5%",
|
|
1334
|
+
altered: [],
|
|
1335
|
+
lost: [],
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
form: "reviewer r5:   groups in a text with no tags",
|
|
1339
|
+
raw: "1 234 567",
|
|
1340
|
+
converted: "1\u2009234\u2009567",
|
|
1341
|
+
altered: [],
|
|
1342
|
+
lost: [],
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
form: "reviewer r5: − in a paragraph",
|
|
1346
|
+
raw: "<p>x −3.5%</p>",
|
|
1347
|
+
converted: "x\u00A0\u22123.5%",
|
|
1348
|
+
altered: [],
|
|
1349
|
+
lost: [],
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
form: "an unterminated reference in a text with no tags stays literal",
|
|
1353
|
+
raw: "a < b & c 5",
|
|
1354
|
+
converted: "a < b & c 5",
|
|
1355
|
+
altered: [],
|
|
1356
|
+
lost: [],
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
form: "reviewer r6: 'Rate −5 and 1 234' copied verbatim",
|
|
1360
|
+
raw: "Rate −5 and 1 234",
|
|
1361
|
+
converted: "Rate −5 and 1 234",
|
|
1362
|
+
altered: [],
|
|
1363
|
+
lost: [],
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
form: "KO verbatim copy with − and  ",
|
|
1367
|
+
raw: "\uC99D\uAC10 −5%, \uC778\uAD6C 1 234\uBA85",
|
|
1368
|
+
converted: "\uC99D\uAC10 −5%, \uC778\uAD6C 1 234\uBA85",
|
|
1369
|
+
altered: [],
|
|
1370
|
+
lost: [],
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
form: "a sign the converted side spells as another reference is still dropped",
|
|
1374
|
+
raw: "<p>fell −5 pts</p>",
|
|
1375
|
+
converted: "fell 5 pts",
|
|
1376
|
+
altered: ["5"],
|
|
1377
|
+
lost: ["\u22125"],
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
form: "a separator spelled as a reference on the converted side still joins two numbers",
|
|
1381
|
+
raw: "<p>12</p><p>345</p>",
|
|
1382
|
+
converted: "12 345",
|
|
1383
|
+
altered: ["12 345"],
|
|
1384
|
+
lost: ["12", "345"],
|
|
1385
|
+
},
|
|
350
1386
|
)
|
|
351
1387
|
|
|
352
1388
|
describe("conversion probe classes (one row per form, EN and KO)", () => {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
1389
|
+
test.each(rows(CONVERTER_DIGITS))("converter-emitted digits: %s", (_form, row) => check(row))
|
|
1390
|
+
test.each(rows(SIGNS))("signs and separators around numbers: %s", (_form, row) => check(row))
|
|
1391
|
+
test.each(rows(GROUPING))("grouping boundaries: %s", (_form, row) => check(row))
|
|
1392
|
+
test.each(rows(SIGN_MARKUP))("sign context through Markdown markup: %s", (_form, row) => check(row))
|
|
1393
|
+
test.each(rows(ENTITY_ROWS))("named character references on both sides: %s", (_form, row) => check(row))
|
|
1394
|
+
test.each(rows(RAW_HTML))("raw inline HTML in the converted Markdown: %s", (_form, row) => check(row))
|
|
1395
|
+
test.each(rows(REF_TITLES))("reference definition titles on the next line: %s", (_form, row) => check(row))
|
|
1396
|
+
test.each(rows(OUT_OF_SCOPE))("declared out of scope (reported as altered): %s", (_form, row) => check(row))
|
|
361
1397
|
})
|