oh-my-opencode 5.1.69 → 5.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +4170 -728
- 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-request.d.ts +1 -0
- package/dist/cli/service-auth/protocol.d.ts +4 -4
- package/dist/cli/service-auth/session.d.ts +20 -1
- package/dist/cli-node/index.js +4170 -728
- 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/team-runtime/resolve-member-dependencies.d.ts +6 -3
- 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/legacy-plugin-toast/plugin-entry-migrator.d.ts +2 -1
- package/dist/hooks/rules-injector/injector.d.ts +2 -2
- package/dist/index.js +2465 -2146
- 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/session-manager/constants.d.ts +1 -3
- package/dist/tools/task/index.d.ts +1 -1
- package/dist/tui.js +275 -169
- package/package.json +35 -18
- 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 +161 -51
- 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 +192 -82
- 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
|
@@ -1,1242 +1,1228 @@
|
|
|
1
1
|
// allow: SIZE_OK - migration scenarios share one temp Codex-home harness across legacy TOML shapes; this release only adds config cases and future additions should split by migration family.
|
|
2
2
|
|
|
3
|
-
import assert from "node:assert/strict"
|
|
4
|
-
import { spawnSync } from "node:child_process"
|
|
5
|
-
import { mkdir, mkdtemp, readFile, rm, symlink, writeFile } from "node:fs/promises"
|
|
6
|
-
import { tmpdir } from "node:os"
|
|
7
|
-
import { dirname, join } from "node:path"
|
|
8
|
-
import test from "node:test"
|
|
3
|
+
import assert from "node:assert/strict"
|
|
4
|
+
import { spawnSync } from "node:child_process"
|
|
5
|
+
import { mkdir, mkdtemp, readFile, rm, symlink, writeFile } from "node:fs/promises"
|
|
6
|
+
import { tmpdir } from "node:os"
|
|
7
|
+
import { dirname, join } from "node:path"
|
|
8
|
+
import test from "node:test"
|
|
9
9
|
|
|
10
|
-
import { removeUnsupportedRootMultiAgentMode } from "../scripts/migrate-codex-config/multi-agent-mode-guard.mjs"
|
|
11
|
-
import { forceDisableMultiAgentV2 } from "../scripts/migrate-codex-config/multi-agent-v2-guard.mjs"
|
|
12
|
-
import { ensureCodexReasoningConfig, migrateCodexConfig } from "../scripts/migrate-codex-config.mjs"
|
|
10
|
+
import { removeUnsupportedRootMultiAgentMode } from "../scripts/migrate-codex-config/multi-agent-mode-guard.mjs"
|
|
11
|
+
import { forceDisableMultiAgentV2 } from "../scripts/migrate-codex-config/multi-agent-v2-guard.mjs"
|
|
12
|
+
import { ensureCodexReasoningConfig, migrateCodexConfig } from "../scripts/migrate-codex-config.mjs"
|
|
13
13
|
|
|
14
14
|
function parseTomlWithPython(config) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
].join("; "),
|
|
24
|
-
],
|
|
25
|
-
{ encoding: "utf8", input: config },
|
|
26
|
-
);
|
|
27
|
-
assert.equal(result.status, 0, result.stderr);
|
|
28
|
-
return JSON.parse(result.stdout);
|
|
15
|
+
const python = resolvePython()
|
|
16
|
+
const result = spawnSync(
|
|
17
|
+
python,
|
|
18
|
+
["-c", ["import json, sys, tomllib", "print(json.dumps(tomllib.loads(sys.stdin.read())))"].join("; ")],
|
|
19
|
+
{ encoding: "utf8", input: config },
|
|
20
|
+
)
|
|
21
|
+
assert.equal(result.status, 0, result.stderr)
|
|
22
|
+
return JSON.parse(result.stdout)
|
|
29
23
|
}
|
|
30
24
|
|
|
31
25
|
function resolvePython() {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
for (const command of ["python3", "python"]) {
|
|
27
|
+
const result = spawnSync(command, ["-c", "import tomllib"], { encoding: "utf8" })
|
|
28
|
+
if (result.status === 0) return command
|
|
29
|
+
}
|
|
30
|
+
assert.fail("Python with tomllib is required for TOML parse assertions")
|
|
37
31
|
}
|
|
38
32
|
|
|
39
33
|
test("#given stale root reasoning config #when ensuring config #then replaces stale values without duplicate keys", () => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
})
|
|
34
|
+
const result = ensureCodexReasoningConfig(
|
|
35
|
+
[
|
|
36
|
+
'model = "gpt-5.5"',
|
|
37
|
+
"model_context_window = 272000",
|
|
38
|
+
'model_reasoning_effort = "low"',
|
|
39
|
+
'plan_mode_reasoning_effort = "medium"',
|
|
40
|
+
"",
|
|
41
|
+
"[features]",
|
|
42
|
+
"plugins = true",
|
|
43
|
+
"",
|
|
44
|
+
].join("\n"),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
assert.equal(result.match(/^model\s*=/gm)?.length, 1)
|
|
48
|
+
assert.equal(result.match(/^model_context_window\s*=/gm)?.length, 1)
|
|
49
|
+
assert.equal(result.match(/^model_reasoning_effort\s*=/gm)?.length, 1)
|
|
50
|
+
assert.equal(result.match(/^plan_mode_reasoning_effort\s*=/gm)?.length, 1)
|
|
51
|
+
assert.match(result, /model = "gpt-6-astra"/)
|
|
52
|
+
assert.match(result, /model_context_window = 600000/)
|
|
53
|
+
assert.match(result, /model_reasoning_effort = "high"/)
|
|
54
|
+
assert.match(result, /plan_mode_reasoning_effort = "xhigh"/)
|
|
55
|
+
assert.doesNotMatch(result, /gpt-5\.2/)
|
|
56
|
+
assert.match(result, /\[features\]/)
|
|
57
|
+
})
|
|
64
58
|
|
|
65
59
|
test("#given section settings reuse managed root keys #when ensuring config #then section settings are preserved", () => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
})
|
|
60
|
+
const result = ensureCodexReasoningConfig(
|
|
61
|
+
[
|
|
62
|
+
'model = "gpt-5.5"',
|
|
63
|
+
"model_context_window = 272000",
|
|
64
|
+
"",
|
|
65
|
+
"[model_providers.openai]",
|
|
66
|
+
'model = "provider-scoped-value"',
|
|
67
|
+
"model_context_window = 123456",
|
|
68
|
+
"",
|
|
69
|
+
"[profiles.review]",
|
|
70
|
+
'model_reasoning_effort = "medium"',
|
|
71
|
+
'plan_mode_reasoning_effort = "medium"',
|
|
72
|
+
"",
|
|
73
|
+
].join("\n"),
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
assert.match(result, /^model = "gpt-6-astra"$/m)
|
|
77
|
+
assert.match(result, /^model_context_window = 600000$/m)
|
|
78
|
+
assert.match(result, /\[model_providers\.openai\]\nmodel = "provider-scoped-value"\nmodel_context_window = 123456/)
|
|
79
|
+
assert.match(result, /\[profiles\.review\]\nmodel_reasoning_effort = "medium"\nplan_mode_reasoning_effort = "medium"/)
|
|
80
|
+
})
|
|
87
81
|
|
|
88
82
|
test("#given project .codex is a symlink #when migrating #then project config is skipped", async (t) => {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
})
|
|
83
|
+
if (!(await canCreateSymlink("dir"))) t.skip("symbolic links are unavailable in this environment")
|
|
84
|
+
|
|
85
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-symlink-dir-"))
|
|
86
|
+
const codexHome = join(root, "codex-home")
|
|
87
|
+
const project = join(root, "project")
|
|
88
|
+
const projectNested = join(project, "nested")
|
|
89
|
+
const projectCodexDirectory = join(root, "project-codex-real")
|
|
90
|
+
const projectConfigTarget = join(projectCodexDirectory, "config.toml")
|
|
91
|
+
const projectConfig = join(project, ".codex", "config.toml")
|
|
92
|
+
|
|
93
|
+
await mkdir(codexHome, { recursive: true })
|
|
94
|
+
await mkdir(projectCodexDirectory, { recursive: true })
|
|
95
|
+
await mkdir(dirname(projectConfigTarget), { recursive: true })
|
|
96
|
+
await mkdir(projectNested, { recursive: true })
|
|
97
|
+
await writeFile(join(codexHome, "config.toml"), 'model = "gpt-5.5"\nmodel_context_window = 272000\n')
|
|
98
|
+
await writeFile(projectConfigTarget, 'model = "gpt-5.4"\nmodel_context_window = 272000\n')
|
|
99
|
+
await rm(join(project, ".codex"), { recursive: true, force: true })
|
|
100
|
+
await symlink(projectCodexDirectory, join(project, ".codex"), "dir")
|
|
101
|
+
|
|
102
|
+
const result = await migrateCodexConfig({
|
|
103
|
+
env: {
|
|
104
|
+
CODEX_HOME: codexHome,
|
|
105
|
+
LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json"),
|
|
106
|
+
},
|
|
107
|
+
cwd: projectNested,
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
assert.deepEqual(result.changed, [join(codexHome, "config.toml")])
|
|
111
|
+
assert.match(await readFile(projectConfig, "utf8"), /model = "gpt-5\.4"/)
|
|
112
|
+
})
|
|
119
113
|
|
|
120
114
|
test("#given project config.toml is a symlink #when migrating #then project config is skipped", async (t) => {
|
|
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
|
-
})
|
|
115
|
+
if (!(await canCreateSymlink("file"))) t.skip("symbolic links are unavailable in this environment")
|
|
116
|
+
|
|
117
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-symlink-file-"))
|
|
118
|
+
const codexHome = join(root, "codex-home")
|
|
119
|
+
const project = join(root, "project")
|
|
120
|
+
const projectConfigDirectory = join(project, ".codex")
|
|
121
|
+
const projectConfig = join(projectConfigDirectory, "config.toml")
|
|
122
|
+
const realConfigSource = join(root, "shared-config.toml")
|
|
123
|
+
|
|
124
|
+
await mkdir(codexHome, { recursive: true })
|
|
125
|
+
await mkdir(projectConfigDirectory, { recursive: true })
|
|
126
|
+
await writeFile(join(codexHome, "config.toml"), 'model = "gpt-5.5"\nmodel_context_window = 272000\n')
|
|
127
|
+
await writeFile(realConfigSource, 'model = "gpt-5.4"\nmodel_context_window = 272000\n')
|
|
128
|
+
await symlink(realConfigSource, projectConfig, "file")
|
|
129
|
+
|
|
130
|
+
const result = await migrateCodexConfig({
|
|
131
|
+
env: {
|
|
132
|
+
CODEX_HOME: codexHome,
|
|
133
|
+
LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json"),
|
|
134
|
+
},
|
|
135
|
+
cwd: project,
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
assert.deepEqual(result.changed, [join(codexHome, "config.toml")])
|
|
139
|
+
assert.match(await readFile(realConfigSource, "utf8"), /model = "gpt-5\.4"/)
|
|
140
|
+
})
|
|
147
141
|
|
|
148
142
|
test("#given global and project-local stale Codex configs #when migrating #then both configs are forced to current defaults", async () => {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
})
|
|
143
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-migration-"))
|
|
144
|
+
const codexHome = join(root, "codex-home")
|
|
145
|
+
const project = join(root, "project", "nested")
|
|
146
|
+
const projectConfig = join(root, "project", ".codex", "config.toml")
|
|
147
|
+
await mkdir(codexHome, { recursive: true })
|
|
148
|
+
await mkdir(dirname(projectConfig), { recursive: true })
|
|
149
|
+
await writeFile(join(codexHome, "config.toml"), 'model = "gpt-5.5"\nmodel_context_window = 272000\n')
|
|
150
|
+
await writeFile(projectConfig, 'model = "gpt-5.5"\nmodel_context_window = 272000\n')
|
|
151
|
+
|
|
152
|
+
const result = await migrateCodexConfig({
|
|
153
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
154
|
+
cwd: project,
|
|
155
|
+
})
|
|
156
|
+
|
|
157
|
+
assert.deepEqual(result.changed.sort(), [join(codexHome, "config.toml"), projectConfig].sort())
|
|
158
|
+
assert.match(await readFile(join(codexHome, "config.toml"), "utf8"), /model = "gpt-6-astra"/)
|
|
159
|
+
assert.match(await readFile(projectConfig, "utf8"), /model_context_window = 600000/)
|
|
160
|
+
})
|
|
167
161
|
|
|
168
162
|
test("#given model catalog is unavailable and stale 272k config #when migrating #then fallback catalog still upgrades it", async () => {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
})
|
|
163
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-fallback-catalog-"))
|
|
164
|
+
const codexHome = join(root, "codex-home")
|
|
165
|
+
const missingCatalog = join(root, "missing-model-catalog.json")
|
|
166
|
+
await mkdir(codexHome, { recursive: true })
|
|
167
|
+
await writeFile(join(codexHome, "config.toml"), 'model = "gpt-5.5"\nmodel_context_window = 272000\n')
|
|
168
|
+
|
|
169
|
+
const result = await migrateCodexConfig({
|
|
170
|
+
env: {
|
|
171
|
+
CODEX_HOME: codexHome,
|
|
172
|
+
LAZYCODEX_MODEL_CATALOG_PATH: missingCatalog,
|
|
173
|
+
LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json"),
|
|
174
|
+
},
|
|
175
|
+
cwd: root,
|
|
176
|
+
})
|
|
177
|
+
|
|
178
|
+
const content = await readFile(join(codexHome, "config.toml"), "utf8")
|
|
179
|
+
assert.deepEqual(result.changed, [join(codexHome, "config.toml")])
|
|
180
|
+
assert.match(content, /model = "gpt-6-astra"/)
|
|
181
|
+
assert.match(content, /model_context_window = 600000/)
|
|
182
|
+
})
|
|
189
183
|
|
|
190
184
|
test("#given model catalog is malformed and stale config #when migrating #then fallback catalog still upgrades it", async () => {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
})
|
|
185
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-malformed-catalog-"))
|
|
186
|
+
const codexHome = join(root, "codex-home")
|
|
187
|
+
const catalogPath = join(root, "model-catalog.json")
|
|
188
|
+
await mkdir(codexHome, { recursive: true })
|
|
189
|
+
await writeFile(catalogPath, "{not-json")
|
|
190
|
+
await writeFile(join(codexHome, "config.toml"), 'model = "gpt-5.5"\nmodel_context_window = 272000\n')
|
|
191
|
+
|
|
192
|
+
const result = await migrateCodexConfig({
|
|
193
|
+
env: {
|
|
194
|
+
CODEX_HOME: codexHome,
|
|
195
|
+
LAZYCODEX_MODEL_CATALOG_PATH: catalogPath,
|
|
196
|
+
LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json"),
|
|
197
|
+
},
|
|
198
|
+
cwd: root,
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
const content = await readFile(join(codexHome, "config.toml"), "utf8")
|
|
202
|
+
assert.deepEqual(result.changed, [join(codexHome, "config.toml")])
|
|
203
|
+
assert.match(content, /model = "gpt-6-astra"/)
|
|
204
|
+
assert.match(content, /model_context_window = 600000/)
|
|
205
|
+
})
|
|
212
206
|
|
|
213
207
|
test("#given user-customized Codex model config #when migrating #then user values are preserved without root multi-agent mode", async () => {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
})
|
|
208
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-custom-"))
|
|
209
|
+
const codexHome = join(root, "codex-home")
|
|
210
|
+
await mkdir(codexHome, { recursive: true })
|
|
211
|
+
await writeFile(
|
|
212
|
+
join(codexHome, "config.toml"),
|
|
213
|
+
[
|
|
214
|
+
'model = "gpt-5.4"',
|
|
215
|
+
"model_context_window = 123456",
|
|
216
|
+
'model_reasoning_effort = "medium"',
|
|
217
|
+
'plan_mode_reasoning_effort = "medium"',
|
|
218
|
+
"",
|
|
219
|
+
"[features.multi_agent_v2]",
|
|
220
|
+
"enabled = false",
|
|
221
|
+
"",
|
|
222
|
+
].join("\n"),
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
const result = await migrateCodexConfig({
|
|
226
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
227
|
+
cwd: root,
|
|
228
|
+
})
|
|
229
|
+
|
|
230
|
+
const content = await readFile(join(codexHome, "config.toml"), "utf8")
|
|
231
|
+
assert.deepEqual(result.changed, [])
|
|
232
|
+
assert.deepEqual(result.modeChanged, [])
|
|
233
|
+
assert.match(content, /model = "gpt-5\.4"/)
|
|
234
|
+
assert.match(content, /model_context_window = 123456/)
|
|
235
|
+
assert.match(content, /model_reasoning_effort = "medium"/)
|
|
236
|
+
assert.match(content, /plan_mode_reasoning_effort = "medium"/)
|
|
237
|
+
assert.doesNotMatch(content, /^\s*multi_agent_mode\s*=/m)
|
|
238
|
+
assert.doesNotMatch(content, /^\s*max_threads\s*=/m)
|
|
239
|
+
assert.match(content, /\[features\.multi_agent_v2\][\s\S]*?enabled = false/)
|
|
240
|
+
assert.doesNotMatch(content, /max_concurrent_threads_per_session\s*=/)
|
|
241
|
+
})
|
|
248
242
|
|
|
249
243
|
test("#given managed config state is malformed #when migrating #then migration ignores stale state safely", async () => {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
})
|
|
244
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-malformed-state-"))
|
|
245
|
+
const codexHome = join(root, "codex-home")
|
|
246
|
+
const statePath = join(root, "model-state.json")
|
|
247
|
+
await mkdir(codexHome, { recursive: true })
|
|
248
|
+
await writeFile(statePath, "[broken-json")
|
|
249
|
+
await writeFile(join(codexHome, "config.toml"), 'model = "gpt-5.5"\nmodel_context_window = 272000\n')
|
|
250
|
+
|
|
251
|
+
const result = await migrateCodexConfig({
|
|
252
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: statePath },
|
|
253
|
+
cwd: root,
|
|
254
|
+
})
|
|
255
|
+
|
|
256
|
+
const content = await readFile(join(codexHome, "config.toml"), "utf8")
|
|
257
|
+
const state = JSON.parse(await readFile(statePath, "utf8"))
|
|
258
|
+
assert.deepEqual(result.changed, [join(codexHome, "config.toml")])
|
|
259
|
+
assert.match(content, /model_context_window = 600000/)
|
|
260
|
+
assert.equal(state.files[join(codexHome, "config.toml")].managed, true)
|
|
261
|
+
})
|
|
268
262
|
|
|
269
263
|
test("#given managed config state path has surrounding whitespace #when migrating #then trimmed state path is used", async () => {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
})
|
|
264
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-trimmed-state-"))
|
|
265
|
+
const codexHome = join(root, "codex-home")
|
|
266
|
+
const statePath = join(root, "model-state.json")
|
|
267
|
+
await mkdir(codexHome, { recursive: true })
|
|
268
|
+
await writeFile(join(codexHome, "config.toml"), 'model = "gpt-5.5"\nmodel_context_window = 272000\n')
|
|
269
|
+
|
|
270
|
+
const result = await migrateCodexConfig({
|
|
271
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: ` ${statePath} ` },
|
|
272
|
+
cwd: root,
|
|
273
|
+
})
|
|
274
|
+
|
|
275
|
+
const state = JSON.parse(await readFile(statePath, "utf8"))
|
|
276
|
+
assert.deepEqual(result.changed, [join(codexHome, "config.toml")])
|
|
277
|
+
assert.equal(state.files[join(codexHome, "config.toml")].managed, true)
|
|
278
|
+
})
|
|
285
279
|
|
|
286
280
|
test("#given managed catalog state #when catalog version advances #then only previously managed config is updated", async () => {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
})
|
|
281
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-catalog-state-"))
|
|
282
|
+
const codexHome = join(root, "codex-home")
|
|
283
|
+
const catalogPath = join(root, "catalog.json")
|
|
284
|
+
const statePath = join(root, "model-state.json")
|
|
285
|
+
await mkdir(codexHome, { recursive: true })
|
|
286
|
+
await writeFile(
|
|
287
|
+
catalogPath,
|
|
288
|
+
JSON.stringify(
|
|
289
|
+
{
|
|
290
|
+
version: "test.v1",
|
|
291
|
+
current: {
|
|
292
|
+
model: "gpt-5.4",
|
|
293
|
+
model_context_window: 1000000,
|
|
294
|
+
model_reasoning_effort: "high",
|
|
295
|
+
plan_mode_reasoning_effort: "xhigh",
|
|
296
|
+
},
|
|
297
|
+
managedProfiles: [],
|
|
298
|
+
},
|
|
299
|
+
null,
|
|
300
|
+
2,
|
|
301
|
+
),
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
const first = await migrateCodexConfig({
|
|
305
|
+
env: {
|
|
306
|
+
CODEX_HOME: codexHome,
|
|
307
|
+
LAZYCODEX_MODEL_CATALOG_PATH: catalogPath,
|
|
308
|
+
LAZYCODEX_MODEL_CATALOG_STATE_PATH: statePath,
|
|
309
|
+
},
|
|
310
|
+
cwd: root,
|
|
311
|
+
})
|
|
312
|
+
await writeFile(
|
|
313
|
+
catalogPath,
|
|
314
|
+
JSON.stringify(
|
|
315
|
+
{
|
|
316
|
+
version: "test.v2",
|
|
317
|
+
current: {
|
|
318
|
+
model: "gpt-5.5",
|
|
319
|
+
model_context_window: 400000,
|
|
320
|
+
model_reasoning_effort: "high",
|
|
321
|
+
plan_mode_reasoning_effort: "xhigh",
|
|
322
|
+
},
|
|
323
|
+
managedProfiles: [],
|
|
324
|
+
},
|
|
325
|
+
null,
|
|
326
|
+
2,
|
|
327
|
+
),
|
|
328
|
+
)
|
|
329
|
+
const second = await migrateCodexConfig({
|
|
330
|
+
env: {
|
|
331
|
+
CODEX_HOME: codexHome,
|
|
332
|
+
LAZYCODEX_MODEL_CATALOG_PATH: catalogPath,
|
|
333
|
+
LAZYCODEX_MODEL_CATALOG_STATE_PATH: statePath,
|
|
334
|
+
},
|
|
335
|
+
cwd: root,
|
|
336
|
+
})
|
|
337
|
+
|
|
338
|
+
const content = await readFile(join(codexHome, "config.toml"), "utf8")
|
|
339
|
+
assert.deepEqual(first.changed, [join(codexHome, "config.toml")])
|
|
340
|
+
assert.deepEqual(second.changed, [join(codexHome, "config.toml")])
|
|
341
|
+
assert.match(content, /model = "gpt-5\.5"/)
|
|
342
|
+
assert.match(content, /model_context_window = 400000/)
|
|
343
|
+
})
|
|
350
344
|
|
|
351
345
|
test("#given config already matches current catalog #when catalog version advances for role-only changes #then managed state is preserved", async () => {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
})
|
|
346
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-config-current-managed-"))
|
|
347
|
+
const codexHome = join(root, "codex-home")
|
|
348
|
+
const catalogPath = join(root, "catalog.json")
|
|
349
|
+
const statePath = join(root, "model-state.json")
|
|
350
|
+
const configPath = join(codexHome, "config.toml")
|
|
351
|
+
await mkdir(codexHome, { recursive: true })
|
|
352
|
+
await writeFile(
|
|
353
|
+
configPath,
|
|
354
|
+
[
|
|
355
|
+
'model = "gpt-5.5"',
|
|
356
|
+
"model_context_window = 400000",
|
|
357
|
+
'model_reasoning_effort = "high"',
|
|
358
|
+
'plan_mode_reasoning_effort = "xhigh"',
|
|
359
|
+
'multi_agent_mode = "proactive"',
|
|
360
|
+
"",
|
|
361
|
+
"[features.multi_agent_v2]",
|
|
362
|
+
"enabled = false",
|
|
363
|
+
"",
|
|
364
|
+
].join("\n"),
|
|
365
|
+
)
|
|
366
|
+
await writeFile(
|
|
367
|
+
catalogPath,
|
|
368
|
+
JSON.stringify(
|
|
369
|
+
{
|
|
370
|
+
version: "test.role-only",
|
|
371
|
+
current: {
|
|
372
|
+
model: "gpt-5.5",
|
|
373
|
+
model_context_window: 400000,
|
|
374
|
+
model_reasoning_effort: "high",
|
|
375
|
+
plan_mode_reasoning_effort: "xhigh",
|
|
376
|
+
},
|
|
377
|
+
roles: { verifier: { model: "gpt-5.5", model_reasoning_effort: "high" } },
|
|
378
|
+
managedProfiles: [],
|
|
379
|
+
},
|
|
380
|
+
null,
|
|
381
|
+
2,
|
|
382
|
+
),
|
|
383
|
+
)
|
|
384
|
+
|
|
385
|
+
const result = await migrateCodexConfig({
|
|
386
|
+
env: {
|
|
387
|
+
CODEX_HOME: codexHome,
|
|
388
|
+
LAZYCODEX_MODEL_CATALOG_PATH: catalogPath,
|
|
389
|
+
LAZYCODEX_MODEL_CATALOG_STATE_PATH: statePath,
|
|
390
|
+
},
|
|
391
|
+
cwd: root,
|
|
392
|
+
})
|
|
393
|
+
|
|
394
|
+
const state = JSON.parse(await readFile(statePath, "utf8"))
|
|
395
|
+
assert.deepEqual(result.changed, [configPath])
|
|
396
|
+
assert.deepEqual(result.modeChanged, [configPath])
|
|
397
|
+
assert.equal(state.files[configPath].managed, true)
|
|
398
|
+
assert.equal(state.files[configPath].catalogVersion, "test.role-only")
|
|
399
|
+
const content = await readFile(configPath, "utf8")
|
|
400
|
+
assert.doesNotMatch(content, /^\s*multi_agent_mode\s*=/m)
|
|
401
|
+
assert.doesNotMatch(content, /^\s*max_threads\s*=/m)
|
|
402
|
+
assert.doesNotMatch(content, /max_concurrent_threads_per_session\s*=/)
|
|
403
|
+
})
|
|
410
404
|
|
|
411
405
|
test("#given stale Context7 placeholder MCP config #when migrating #then removes it and keeps plugin policy", async () => {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
})
|
|
406
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-context7-placeholder-cleanup-"))
|
|
407
|
+
const codexHome = join(root, "codex-home")
|
|
408
|
+
const configPath = join(codexHome, "config.toml")
|
|
409
|
+
await mkdir(codexHome, { recursive: true })
|
|
410
|
+
await writeFile(
|
|
411
|
+
configPath,
|
|
412
|
+
[
|
|
413
|
+
'model = "gpt-5.5"',
|
|
414
|
+
"model_context_window = 400000",
|
|
415
|
+
'model_reasoning_effort = "high"',
|
|
416
|
+
'plan_mode_reasoning_effort = "xhigh"',
|
|
417
|
+
"",
|
|
418
|
+
"[mcp_servers.context7] # stale npx package from old docs",
|
|
419
|
+
'command = "npx"',
|
|
420
|
+
'args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]',
|
|
421
|
+
"startup_timeout_sec = 20",
|
|
422
|
+
"",
|
|
423
|
+
'[plugins."omo@sisyphuslabs".mcp_servers.context7]',
|
|
424
|
+
"enabled = true",
|
|
425
|
+
"",
|
|
426
|
+
].join("\n"),
|
|
427
|
+
)
|
|
428
|
+
|
|
429
|
+
const result = await migrateCodexConfig({
|
|
430
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
431
|
+
cwd: root,
|
|
432
|
+
})
|
|
433
|
+
|
|
434
|
+
const content = await readFile(configPath, "utf8")
|
|
435
|
+
assert.deepEqual(result.changed, [configPath])
|
|
436
|
+
assert.doesNotMatch(content, /\[mcp_servers\.context7\]/)
|
|
437
|
+
assert.doesNotMatch(content, /@upstash\/context7-mcp/)
|
|
438
|
+
assert.doesNotMatch(content, /YOUR_API_KEY/)
|
|
439
|
+
assert.match(content, /\[plugins\."omo@sisyphuslabs"\.mcp_servers\.context7\][\s\S]*?enabled = true/)
|
|
440
|
+
})
|
|
447
441
|
|
|
448
442
|
test("#given real Context7 API key and placeholder comment #when migrating #then preserves user server settings", async () => {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
})
|
|
443
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-context7-real-key-"))
|
|
444
|
+
const codexHome = join(root, "codex-home")
|
|
445
|
+
const configPath = join(codexHome, "config.toml")
|
|
446
|
+
await mkdir(codexHome, { recursive: true })
|
|
447
|
+
await writeFile(
|
|
448
|
+
configPath,
|
|
449
|
+
[
|
|
450
|
+
'model = "gpt-5.5"',
|
|
451
|
+
"model_context_window = 400000",
|
|
452
|
+
'model_reasoning_effort = "high"',
|
|
453
|
+
'plan_mode_reasoning_effort = "xhigh"',
|
|
454
|
+
"",
|
|
455
|
+
"[mcp_servers.context7]",
|
|
456
|
+
'command = "npx"',
|
|
457
|
+
'args = ["-y", "@upstash/context7-mcp", "--api-key", "ctx7sk_live_example"] # replace YOUR_API_KEY in docs only',
|
|
458
|
+
"startup_timeout_sec = 20",
|
|
459
|
+
"",
|
|
460
|
+
'[plugins."omo@sisyphuslabs".mcp_servers.context7]',
|
|
461
|
+
"enabled = true",
|
|
462
|
+
"",
|
|
463
|
+
].join("\n"),
|
|
464
|
+
)
|
|
465
|
+
|
|
466
|
+
const result = await migrateCodexConfig({
|
|
467
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
468
|
+
cwd: root,
|
|
469
|
+
})
|
|
470
|
+
|
|
471
|
+
const content = await readFile(configPath, "utf8")
|
|
472
|
+
assert.deepEqual(result.changed, [configPath])
|
|
473
|
+
assert.match(content, /\[mcp_servers\.context7\]/)
|
|
474
|
+
assert.match(content, /ctx7sk_live_example/)
|
|
475
|
+
assert.match(content, /replace YOUR_API_KEY in docs only/)
|
|
476
|
+
assert.match(content, /\[plugins\."omo@sisyphuslabs"\.mcp_servers\.context7\][\s\S]*?enabled = true/)
|
|
477
|
+
})
|
|
484
478
|
|
|
485
479
|
test("#given multi_agent_v2 enabled #when forcing disable #then flips the flag to false", () => {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
})
|
|
480
|
+
const config = [
|
|
481
|
+
'model = "gpt-5.5"',
|
|
482
|
+
'model_reasoning_effort = "high"',
|
|
483
|
+
"",
|
|
484
|
+
"[features.multi_agent_v2]",
|
|
485
|
+
"enabled = true",
|
|
486
|
+
"max_concurrent_threads_per_session = 10000",
|
|
487
|
+
"",
|
|
488
|
+
].join("\n")
|
|
489
|
+
|
|
490
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
491
|
+
|
|
492
|
+
assert.match(result, /enabled = false/)
|
|
493
|
+
assert.doesNotMatch(result, /enabled = true/)
|
|
494
|
+
assert.match(result, /max_concurrent_threads_per_session = 10000/)
|
|
495
|
+
})
|
|
502
496
|
|
|
503
497
|
test("#given no multi_agent_v2 section #when forcing disable #then appends a disabled section", () => {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
"",
|
|
508
|
-
"[features]",
|
|
509
|
-
"plugins = true",
|
|
510
|
-
"",
|
|
511
|
-
].join("\n");
|
|
498
|
+
const config = ['model = "gpt-5.5"', 'model_reasoning_effort = "high"', "", "[features]", "plugins = true", ""].join(
|
|
499
|
+
"\n",
|
|
500
|
+
)
|
|
512
501
|
|
|
513
|
-
|
|
502
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
514
503
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
})
|
|
504
|
+
assert.match(result, /\[features\.multi_agent_v2\]\nenabled = false\n/)
|
|
505
|
+
assert.match(result, /plugins = true/)
|
|
506
|
+
})
|
|
518
507
|
|
|
519
508
|
test("#given multi_agent_v2 section without enabled key #when forcing disable #then inserts enabled = false", () => {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
509
|
+
const config = [
|
|
510
|
+
'model = "gpt-5.5"',
|
|
511
|
+
"",
|
|
512
|
+
"[features.multi_agent_v2]",
|
|
513
|
+
"max_concurrent_threads_per_session = 10000",
|
|
514
|
+
"",
|
|
515
|
+
].join("\n")
|
|
527
516
|
|
|
528
|
-
|
|
517
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
529
518
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
})
|
|
519
|
+
assert.match(result, /\[features\.multi_agent_v2\]\nenabled = false\n/)
|
|
520
|
+
assert.match(result, /max_concurrent_threads_per_session = 10000/)
|
|
521
|
+
})
|
|
533
522
|
|
|
534
523
|
test("#given [features] boolean shorthand multi_agent_v2 = true #when forcing disable #then removes it and appends a disabled section", () => {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null });
|
|
545
|
-
|
|
546
|
-
assert.doesNotMatch(result, /^multi_agent_v2\s*=/m);
|
|
547
|
-
assert.match(result, /\[features\.multi_agent_v2\]\nenabled = false\n/);
|
|
548
|
-
assert.match(result, /plugins = true/);
|
|
549
|
-
});
|
|
524
|
+
const config = ['model = "gpt-5.5"', "", "[features]", "plugins = true", "multi_agent_v2 = true", ""].join("\n")
|
|
525
|
+
|
|
526
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
527
|
+
|
|
528
|
+
assert.doesNotMatch(result, /^multi_agent_v2\s*=/m)
|
|
529
|
+
assert.match(result, /\[features\.multi_agent_v2\]\nenabled = false\n/)
|
|
530
|
+
assert.match(result, /plugins = true/)
|
|
531
|
+
})
|
|
550
532
|
|
|
551
533
|
test("#given multi_agent_v2 enabled #when forcing disable #then annotates the managed section with the upstream issue and opt-out", () => {
|
|
552
|
-
|
|
553
|
-
'model = "gpt-5.5"',
|
|
554
|
-
"",
|
|
555
|
-
"[features.multi_agent_v2]",
|
|
556
|
-
"enabled = true",
|
|
557
|
-
"",
|
|
558
|
-
].join("\n");
|
|
534
|
+
const config = ['model = "gpt-5.5"', "", "[features.multi_agent_v2]", "enabled = true", ""].join("\n")
|
|
559
535
|
|
|
560
|
-
|
|
536
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
561
537
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
})
|
|
538
|
+
assert.match(result, /openai\/codex#26753/)
|
|
539
|
+
assert.match(result, /LAZYCODEX_CONFIG_MIGRATION_DISABLED=1/)
|
|
540
|
+
assert.match(result, /^#[^\n]*\n(?:#[^\n]*\n)*\[features\.multi_agent_v2\]/m)
|
|
541
|
+
})
|
|
566
542
|
|
|
567
543
|
test("#given no multi_agent_v2 section #when forcing disable #then annotates the appended section", () => {
|
|
568
|
-
|
|
544
|
+
const config = ['model = "gpt-5.5"', ""].join("\n")
|
|
569
545
|
|
|
570
|
-
|
|
546
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
571
547
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
})
|
|
548
|
+
assert.match(result, /openai\/codex#26753/)
|
|
549
|
+
assert.match(result, /^#[^\n]*\n(?:#[^\n]*\n)*\[features\.multi_agent_v2\]\nenabled = false\n/m)
|
|
550
|
+
})
|
|
575
551
|
|
|
576
552
|
test("#given an annotated managed section #when forcing disable runs again #then does not duplicate the comment", () => {
|
|
577
|
-
|
|
553
|
+
const config = ['model = "gpt-5.5"', "", "[features.multi_agent_v2]", "enabled = true", ""].join("\n")
|
|
578
554
|
|
|
579
|
-
|
|
580
|
-
|
|
555
|
+
const annotated = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
556
|
+
const rerun = forceDisableMultiAgentV2(`${annotated.replace("enabled = false", "enabled = true")}`, {
|
|
557
|
+
multiAgentVersion: null,
|
|
558
|
+
})
|
|
581
559
|
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
})
|
|
560
|
+
const markers = rerun.match(/openai\/codex#26753/g) ?? []
|
|
561
|
+
assert.equal(markers.length, 1)
|
|
562
|
+
assert.match(rerun, /enabled = false/)
|
|
563
|
+
})
|
|
586
564
|
|
|
587
565
|
test("#given [features] boolean shorthand multi_agent_v2 = false #when forcing disable #then rewrites to the non-conflicting disabled table", () => {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
const parsed = parseTomlWithPython(result);
|
|
599
|
-
|
|
600
|
-
assert.doesNotMatch(result, /^\s*multi_agent_v2\s*=/m);
|
|
601
|
-
assert.equal((result.match(/\[features\.multi_agent_v2\]/g) ?? []).length, 1);
|
|
602
|
-
assert.equal(parsed.features.plugins, true);
|
|
603
|
-
assert.equal(parsed.features.multi_agent_v2.enabled, false);
|
|
604
|
-
});
|
|
566
|
+
const config = ['model = "gpt-5.5"', "", "[features]", "multi_agent_v2 = false", "plugins = true", ""].join("\n")
|
|
567
|
+
|
|
568
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
569
|
+
const parsed = parseTomlWithPython(result)
|
|
570
|
+
|
|
571
|
+
assert.doesNotMatch(result, /^\s*multi_agent_v2\s*=/m)
|
|
572
|
+
assert.equal((result.match(/\[features\.multi_agent_v2\]/g) ?? []).length, 1)
|
|
573
|
+
assert.equal(parsed.features.plugins, true)
|
|
574
|
+
assert.equal(parsed.features.multi_agent_v2.enabled, false)
|
|
575
|
+
})
|
|
605
576
|
|
|
606
577
|
test("#given multi_agent_v2 already disabled #when forcing disable #then returns config unchanged", () => {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
578
|
+
const config = [
|
|
579
|
+
'model = "gpt-5.5"',
|
|
580
|
+
'model_reasoning_effort = "high"',
|
|
581
|
+
"",
|
|
582
|
+
"[features.multi_agent_v2]",
|
|
583
|
+
"enabled = false",
|
|
584
|
+
"max_concurrent_threads_per_session = 10000",
|
|
585
|
+
"",
|
|
586
|
+
].join("\n")
|
|
616
587
|
|
|
617
|
-
|
|
588
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null })
|
|
618
589
|
|
|
619
|
-
|
|
620
|
-
})
|
|
590
|
+
assert.equal(result, config)
|
|
591
|
+
})
|
|
621
592
|
|
|
622
593
|
test("#given global config without multi_agent_v2 section #when full migration runs #then writes a disabled section on disk", async () => {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
assert.deepEqual(result.modeChanged, []);
|
|
643
|
-
const content = await readFile(configPath, "utf8");
|
|
644
|
-
assert.match(content, /\[features\.multi_agent_v2\][\s\S]*?enabled = false/);
|
|
645
|
-
assert.doesNotMatch(content, /max_concurrent_threads_per_session\s*=/);
|
|
646
|
-
assert.doesNotMatch(content, /^\s*max_threads\s*=/m);
|
|
647
|
-
assert.doesNotMatch(content, /^\s*multi_agent_mode\s*=/m);
|
|
648
|
-
});
|
|
594
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-multi-agent-v2-guard-"))
|
|
595
|
+
const codexHome = join(root, "codex-home")
|
|
596
|
+
await mkdir(codexHome, { recursive: true })
|
|
597
|
+
const configPath = join(codexHome, "config.toml")
|
|
598
|
+
await writeFile(configPath, ['model = "gpt-5.5"', 'model_reasoning_effort = "high"', ""].join("\n"))
|
|
599
|
+
|
|
600
|
+
const result = await migrateCodexConfig({
|
|
601
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
602
|
+
cwd: root,
|
|
603
|
+
})
|
|
604
|
+
|
|
605
|
+
assert.deepEqual(result.changed, [configPath])
|
|
606
|
+
assert.deepEqual(result.modeChanged, [])
|
|
607
|
+
const content = await readFile(configPath, "utf8")
|
|
608
|
+
assert.match(content, /\[features\.multi_agent_v2\][\s\S]*?enabled = false/)
|
|
609
|
+
assert.doesNotMatch(content, /max_concurrent_threads_per_session\s*=/)
|
|
610
|
+
assert.doesNotMatch(content, /^\s*max_threads\s*=/m)
|
|
611
|
+
assert.doesNotMatch(content, /^\s*multi_agent_mode\s*=/m)
|
|
612
|
+
})
|
|
649
613
|
|
|
650
614
|
test("#given global config starts with inline-comment features table #when full migration runs #then managed root settings stay at TOML root", async () => {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
assert.equal("multi_agent_mode" in parsed.features, false);
|
|
679
|
-
assert.equal("model" in parsed.features, false);
|
|
680
|
-
assert.equal("model_context_window" in parsed.features, false);
|
|
681
|
-
assert.match(content, /^model = "gpt-6-astra"\nmodel_context_window = 600000/m);
|
|
682
|
-
assert.doesNotMatch(content, /^\s*multi_agent_mode\s*=/m);
|
|
683
|
-
assert.match(content, /\[features\] # keep comment\nplugins = true/);
|
|
684
|
-
});
|
|
615
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-root-settings-inline-features-"))
|
|
616
|
+
const codexHome = join(root, "codex-home")
|
|
617
|
+
await mkdir(codexHome, { recursive: true })
|
|
618
|
+
const configPath = join(codexHome, "config.toml")
|
|
619
|
+
await writeFile(configPath, ["[features] # keep comment", "plugins = true", ""].join("\n"))
|
|
620
|
+
|
|
621
|
+
const result = await migrateCodexConfig({
|
|
622
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
623
|
+
cwd: root,
|
|
624
|
+
})
|
|
625
|
+
|
|
626
|
+
assert.deepEqual(result.changed, [configPath])
|
|
627
|
+
const content = await readFile(configPath, "utf8")
|
|
628
|
+
const parsed = parseTomlWithPython(content)
|
|
629
|
+
assert.equal("multi_agent_mode" in parsed, false)
|
|
630
|
+
assert.equal(parsed.model, "gpt-6-astra")
|
|
631
|
+
assert.equal(parsed.model_context_window, 600000)
|
|
632
|
+
assert.equal(parsed.model_reasoning_effort, "high")
|
|
633
|
+
assert.equal(parsed.plan_mode_reasoning_effort, "xhigh")
|
|
634
|
+
assert.equal(parsed.features.plugins, true)
|
|
635
|
+
assert.equal("multi_agent_mode" in parsed.features, false)
|
|
636
|
+
assert.equal("model" in parsed.features, false)
|
|
637
|
+
assert.equal("model_context_window" in parsed.features, false)
|
|
638
|
+
assert.match(content, /^model = "gpt-6-astra"\nmodel_context_window = 600000/m)
|
|
639
|
+
assert.doesNotMatch(content, /^\s*multi_agent_mode\s*=/m)
|
|
640
|
+
assert.match(content, /\[features\] # keep comment\nplugins = true/)
|
|
641
|
+
})
|
|
685
642
|
|
|
686
643
|
test("#given queue multi-agent mode #when removing unsupported root key #then deletes root setting", () => {
|
|
687
|
-
|
|
644
|
+
const config = ['multi_agent_mode = "queue"', "", "[features]", "multi_agent = true", ""].join("\n")
|
|
688
645
|
|
|
689
|
-
|
|
646
|
+
const result = removeUnsupportedRootMultiAgentMode(config)
|
|
690
647
|
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
})
|
|
648
|
+
assert.doesNotMatch(result, /^\s*multi_agent_mode\s*=/m)
|
|
649
|
+
assert.doesNotMatch(result, /multi_agent_mode = "queue"/)
|
|
650
|
+
assert.match(result, /\[features\]/)
|
|
651
|
+
})
|
|
695
652
|
|
|
696
653
|
test("#given proactive multi-agent mode #when removing unsupported root key #then deletes root setting", () => {
|
|
697
|
-
|
|
654
|
+
const config = [
|
|
655
|
+
'multi_agent_mode = "proactive" # user already opted in',
|
|
656
|
+
"",
|
|
657
|
+
"[features]",
|
|
658
|
+
"multi_agent = true",
|
|
659
|
+
"",
|
|
660
|
+
].join("\n")
|
|
698
661
|
|
|
699
|
-
|
|
662
|
+
const result = removeUnsupportedRootMultiAgentMode(config)
|
|
700
663
|
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
})
|
|
664
|
+
assert.doesNotMatch(result, /^\s*multi_agent_mode\s*=/m)
|
|
665
|
+
assert.match(result, /\[features\]/)
|
|
666
|
+
})
|
|
704
667
|
|
|
705
668
|
test("#given inline-comment features table #when removing unsupported root key #then config stays unchanged", () => {
|
|
706
|
-
|
|
669
|
+
const config = ["[features] # keep comment", "multi_agent = true", ""].join("\n")
|
|
707
670
|
|
|
708
|
-
|
|
709
|
-
|
|
671
|
+
const result = removeUnsupportedRootMultiAgentMode(config)
|
|
672
|
+
const parsed = parseTomlWithPython(result)
|
|
710
673
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
})
|
|
674
|
+
assert.equal(result, config)
|
|
675
|
+
assert.equal("multi_agent_mode" in parsed, false)
|
|
676
|
+
assert.equal(parsed.features.multi_agent, true)
|
|
677
|
+
})
|
|
715
678
|
|
|
716
679
|
test("#given indented root proactive mode #when removing unsupported root key #then no root setting remains", () => {
|
|
717
|
-
|
|
680
|
+
const config = [
|
|
681
|
+
' multi_agent_mode = "proactive" # user already opted in',
|
|
682
|
+
"",
|
|
683
|
+
"[features] # keep comment",
|
|
684
|
+
"multi_agent = true",
|
|
685
|
+
"",
|
|
686
|
+
].join("\n")
|
|
718
687
|
|
|
719
|
-
|
|
688
|
+
const result = removeUnsupportedRootMultiAgentMode(config)
|
|
720
689
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
})
|
|
690
|
+
assert.equal(result.match(/multi_agent_mode\s*=/g)?.length ?? 0, 0)
|
|
691
|
+
assert.match(result, /^\[features\] # keep comment$/m)
|
|
692
|
+
})
|
|
724
693
|
|
|
725
694
|
test("#given global config with forced multi_agent_v2 #when full migration runs #then disables it on disk", async () => {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
})
|
|
695
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-multi-agent-v2-guard-"))
|
|
696
|
+
const codexHome = join(root, "codex-home")
|
|
697
|
+
await mkdir(codexHome, { recursive: true })
|
|
698
|
+
const configPath = join(codexHome, "config.toml")
|
|
699
|
+
await writeFile(
|
|
700
|
+
configPath,
|
|
701
|
+
[
|
|
702
|
+
'model = "gpt-5.5"',
|
|
703
|
+
'model_reasoning_effort = "high"',
|
|
704
|
+
"",
|
|
705
|
+
"[features.multi_agent_v2]",
|
|
706
|
+
"enabled = true",
|
|
707
|
+
"max_concurrent_threads_per_session = 10000",
|
|
708
|
+
"",
|
|
709
|
+
].join("\n"),
|
|
710
|
+
)
|
|
711
|
+
|
|
712
|
+
const result = await migrateCodexConfig({
|
|
713
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
714
|
+
cwd: root,
|
|
715
|
+
})
|
|
716
|
+
|
|
717
|
+
assert.deepEqual(result.changed, [configPath])
|
|
718
|
+
const content = await readFile(configPath, "utf8")
|
|
719
|
+
assert.match(content, /enabled = false/)
|
|
720
|
+
assert.doesNotMatch(content, /enabled = true/)
|
|
721
|
+
assert.match(content, /max_concurrent_threads_per_session = 10000/)
|
|
722
|
+
assert.doesNotMatch(content, /^\s*max_threads\s*=/m)
|
|
723
|
+
})
|
|
755
724
|
|
|
756
725
|
test("#given enabled = true with an inline comment #when forcing disable #then flips to false and preserves the comment", () => {
|
|
757
|
-
|
|
726
|
+
const config = ["[features.multi_agent_v2]", "enabled = true # tuned by me", ""].join("\n")
|
|
758
727
|
|
|
759
|
-
|
|
728
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v1" })
|
|
760
729
|
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
})
|
|
730
|
+
assert.match(result, /^enabled = false # tuned by me$/m)
|
|
731
|
+
assert.doesNotMatch(result, /enabled = true/)
|
|
732
|
+
assert.equal((result.match(/^\s*enabled\s*=/gm) ?? []).length, 1)
|
|
733
|
+
assert.equal((result.match(/\[features\.multi_agent_v2\]/g) ?? []).length, 1)
|
|
734
|
+
})
|
|
766
735
|
|
|
767
736
|
test("#given a section header with an inline comment #when forcing disable #then patches in place without duplicating the table", () => {
|
|
768
|
-
|
|
737
|
+
const config = ["[features.multi_agent_v2] # pinned by me", "enabled = true", ""].join("\n")
|
|
769
738
|
|
|
770
|
-
|
|
739
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v1" })
|
|
771
740
|
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
})
|
|
741
|
+
assert.equal((result.match(/\[features\.multi_agent_v2\]/g) ?? []).length, 1)
|
|
742
|
+
assert.match(result, /enabled = false/)
|
|
743
|
+
assert.doesNotMatch(result, /enabled = true/)
|
|
744
|
+
assert.match(result, /# pinned by me/)
|
|
745
|
+
})
|
|
777
746
|
|
|
778
747
|
test("#given an already-guarded commented config #when re-running #then output is byte-identical", () => {
|
|
779
|
-
|
|
780
|
-
|
|
748
|
+
const configA = ["[features.multi_agent_v2]", "enabled = true # tuned by me", ""].join("\n")
|
|
749
|
+
const configB = ["[features.multi_agent_v2] # pinned by me", "enabled = true", ""].join("\n")
|
|
781
750
|
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
751
|
+
const firstA = forceDisableMultiAgentV2(configA, { multiAgentVersion: "v1" })
|
|
752
|
+
const rerunA = forceDisableMultiAgentV2(firstA, { multiAgentVersion: "v1" })
|
|
753
|
+
assert.equal(rerunA, firstA)
|
|
785
754
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
})
|
|
755
|
+
const firstB = forceDisableMultiAgentV2(configB, { multiAgentVersion: "v1" })
|
|
756
|
+
const rerunB = forceDisableMultiAgentV2(firstB, { multiAgentVersion: "v1" })
|
|
757
|
+
assert.equal(rerunB, firstB)
|
|
758
|
+
})
|
|
790
759
|
|
|
791
760
|
test("#given user-disabled with an inline comment #when forcing disable #then returns config unchanged", () => {
|
|
792
|
-
|
|
761
|
+
const config = ["[features.multi_agent_v2]", "enabled = false # I turned this off myself", ""].join("\n")
|
|
793
762
|
|
|
794
|
-
|
|
763
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v1" })
|
|
795
764
|
|
|
796
|
-
|
|
797
|
-
})
|
|
765
|
+
assert.equal(result, config)
|
|
766
|
+
})
|
|
798
767
|
|
|
799
768
|
test("#given [features] shorthand true with an inline comment #when forcing disable #then removes the shorthand and appends one disabled table", () => {
|
|
800
|
-
|
|
769
|
+
const config = ["[features]", "plugins = true", "multi_agent_v2 = true # legacy", ""].join("\n")
|
|
801
770
|
|
|
802
|
-
|
|
771
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v1" })
|
|
803
772
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
})
|
|
773
|
+
assert.doesNotMatch(result, /^\s*multi_agent_v2\s*=/m)
|
|
774
|
+
assert.equal((result.match(/\[features\.multi_agent_v2\]/g) ?? []).length, 1)
|
|
775
|
+
assert.match(result, /\[features\.multi_agent_v2\]\nenabled = false\n/)
|
|
776
|
+
assert.match(result, /plugins = true/)
|
|
777
|
+
})
|
|
809
778
|
|
|
810
779
|
test("#given a following section header with an inline comment #when inserting enabled=false #then does not leak into the next section", () => {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
780
|
+
const config = [
|
|
781
|
+
"[features.multi_agent_v2]",
|
|
782
|
+
"max_concurrent_threads_per_session = 2",
|
|
783
|
+
"[mcp_servers.x] # note",
|
|
784
|
+
"enabled = true",
|
|
785
|
+
"",
|
|
786
|
+
].join("\n")
|
|
818
787
|
|
|
819
|
-
|
|
788
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v1" })
|
|
820
789
|
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
})
|
|
790
|
+
assert.match(result, /\[features\.multi_agent_v2\]\nenabled = false\n/)
|
|
791
|
+
assert.match(result, /\[mcp_servers\.x\][^\n]*\nenabled = true/)
|
|
792
|
+
})
|
|
824
793
|
|
|
825
794
|
test("#given gpt-5.6-terra with managed disable #when model catalog prefers v2 #then clears enabled=false and managed comments", () => {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
})
|
|
795
|
+
const config = [
|
|
796
|
+
'model = "gpt-5.6-terra"',
|
|
797
|
+
"",
|
|
798
|
+
"# Managed by LazyCodex: multi_agent_v2 is re-disabled on every Codex session start",
|
|
799
|
+
"# because enabling it fails every turn with HTTP 400 (openai/codex#26753).",
|
|
800
|
+
"# Opt out: LAZYCODEX_CONFIG_MIGRATION_DISABLED=1 (or OMO_CODEX_CONFIG_MIGRATION_DISABLED=1).",
|
|
801
|
+
"",
|
|
802
|
+
"[features.multi_agent_v2]",
|
|
803
|
+
"enabled = false",
|
|
804
|
+
"max_concurrent_threads_per_session = 7",
|
|
805
|
+
"",
|
|
806
|
+
].join("\n")
|
|
807
|
+
|
|
808
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v2" })
|
|
809
|
+
|
|
810
|
+
assert.doesNotMatch(result, /^\s*enabled\s*=\s*false/m)
|
|
811
|
+
assert.doesNotMatch(result, /openai\/codex#26753/)
|
|
812
|
+
assert.doesNotMatch(result, /Managed by LazyCodex: multi_agent_v2/)
|
|
813
|
+
assert.match(result, /\[features\.multi_agent_v2\]/)
|
|
814
|
+
assert.match(result, /max_concurrent_threads_per_session = 7/)
|
|
815
|
+
})
|
|
847
816
|
|
|
848
817
|
test("#given gpt-5.6 v2 model with hide_spawn_agent_metadata=false #when clearing #then removes the stale metadata override", () => {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
})
|
|
818
|
+
const config = [
|
|
819
|
+
'model = "gpt-5.6-sol"',
|
|
820
|
+
"",
|
|
821
|
+
"[features.multi_agent_v2]",
|
|
822
|
+
"enabled = false",
|
|
823
|
+
"hide_spawn_agent_metadata = false",
|
|
824
|
+
"max_concurrent_threads_per_session = 7",
|
|
825
|
+
"",
|
|
826
|
+
].join("\n")
|
|
827
|
+
|
|
828
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v2" })
|
|
829
|
+
|
|
830
|
+
assert.doesNotMatch(result, /^\s*enabled\s*=\s*false/m)
|
|
831
|
+
assert.doesNotMatch(result, /^\s*hide_spawn_agent_metadata\s*=/m)
|
|
832
|
+
assert.match(result, /max_concurrent_threads_per_session = 7/)
|
|
833
|
+
})
|
|
865
834
|
|
|
866
835
|
test("#given gpt-5.6 v2 model with hide_spawn_agent_metadata=true #when clearing #then leaves the default-matching value alone", () => {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
})
|
|
836
|
+
const config = [
|
|
837
|
+
'model = "gpt-5.6-sol"',
|
|
838
|
+
"",
|
|
839
|
+
"[features.multi_agent_v2]",
|
|
840
|
+
"enabled = false",
|
|
841
|
+
"hide_spawn_agent_metadata = true",
|
|
842
|
+
"max_concurrent_threads_per_session = 1000",
|
|
843
|
+
"",
|
|
844
|
+
].join("\n")
|
|
845
|
+
|
|
846
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v2" })
|
|
847
|
+
|
|
848
|
+
assert.doesNotMatch(result, /^\s*enabled\s*=\s*false/m)
|
|
849
|
+
assert.match(result, /hide_spawn_agent_metadata = true/)
|
|
850
|
+
})
|
|
882
851
|
|
|
883
852
|
test("#given v1 model with hide_spawn_agent_metadata=false #when forcing disable #then keeps the metadata override", () => {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
853
|
+
const config = [
|
|
854
|
+
'model = "gpt-5.5"',
|
|
855
|
+
"",
|
|
856
|
+
"[features.multi_agent_v2]",
|
|
857
|
+
"hide_spawn_agent_metadata = false",
|
|
858
|
+
"max_concurrent_threads_per_session = 1000",
|
|
859
|
+
"",
|
|
860
|
+
].join("\n")
|
|
892
861
|
|
|
893
|
-
|
|
862
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v1" })
|
|
894
863
|
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
})
|
|
864
|
+
assert.match(result, /hide_spawn_agent_metadata = false/)
|
|
865
|
+
assert.match(result, /enabled = false/)
|
|
866
|
+
})
|
|
898
867
|
|
|
899
868
|
test("#given gpt-5.6-sol with no multi_agent_v2 section #when model catalog prefers v2 #then does not append a disable", () => {
|
|
900
|
-
|
|
869
|
+
const config = ['model = "gpt-5.6-sol"', "", "[features]", "plugins = true", ""].join("\n")
|
|
901
870
|
|
|
902
|
-
|
|
871
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: "v2" })
|
|
903
872
|
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
})
|
|
873
|
+
assert.doesNotMatch(result, /\[features\.multi_agent_v2\]/)
|
|
874
|
+
assert.doesNotMatch(result, /enabled = false/)
|
|
875
|
+
assert.match(result, /plugins = true/)
|
|
876
|
+
})
|
|
908
877
|
|
|
909
878
|
test("#given gpt-5.6-terra managed disable #when full migration sees models_cache v2 #then clears disable and drops agents.max_threads", async () => {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
})
|
|
879
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-multi-agent-v2-gpt56-"))
|
|
880
|
+
const codexHome = join(root, "codex-home")
|
|
881
|
+
await mkdir(codexHome, { recursive: true })
|
|
882
|
+
const configPath = join(codexHome, "config.toml")
|
|
883
|
+
await writeFile(
|
|
884
|
+
configPath,
|
|
885
|
+
[
|
|
886
|
+
'model = "gpt-5.6-terra"',
|
|
887
|
+
'model_reasoning_effort = "xhigh"',
|
|
888
|
+
"",
|
|
889
|
+
"# Managed by LazyCodex: multi_agent_v2 is re-disabled on every Codex session start",
|
|
890
|
+
"# because enabling it fails every turn with HTTP 400 (openai/codex#26753).",
|
|
891
|
+
"",
|
|
892
|
+
"[agents]",
|
|
893
|
+
"max_threads = 1000",
|
|
894
|
+
"max_depth = 2",
|
|
895
|
+
"",
|
|
896
|
+
"[features.multi_agent_v2]",
|
|
897
|
+
"enabled = false",
|
|
898
|
+
"max_concurrent_threads_per_session = 1000",
|
|
899
|
+
"",
|
|
900
|
+
].join("\n"),
|
|
901
|
+
)
|
|
902
|
+
await writeFile(
|
|
903
|
+
join(codexHome, "models_cache.json"),
|
|
904
|
+
JSON.stringify({
|
|
905
|
+
models: [{ slug: "gpt-5.6-terra", multi_agent_version: "v2" }],
|
|
906
|
+
}),
|
|
907
|
+
)
|
|
908
|
+
|
|
909
|
+
const result = await migrateCodexConfig({
|
|
910
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
911
|
+
cwd: root,
|
|
912
|
+
})
|
|
913
|
+
|
|
914
|
+
assert.deepEqual(result.changed, [configPath])
|
|
915
|
+
const content = await readFile(configPath, "utf8")
|
|
916
|
+
assert.doesNotMatch(content, /^\s*enabled\s*=\s*false/m)
|
|
917
|
+
assert.doesNotMatch(content, /openai\/codex#26753/)
|
|
918
|
+
assert.doesNotMatch(content, /^\s*max_threads\s*=/m)
|
|
919
|
+
assert.match(content, /max_depth = 2/)
|
|
920
|
+
assert.doesNotMatch(content, /max_concurrent_threads_per_session\s*=/)
|
|
921
|
+
})
|
|
953
922
|
|
|
954
923
|
test("#given config default gpt-5.5 #when SessionStart model is gpt-5.6-terra #then prefers session model and clears disable", () => {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
})
|
|
924
|
+
const config = [
|
|
925
|
+
'model = "gpt-5.5"',
|
|
926
|
+
"",
|
|
927
|
+
"[features.multi_agent_v2]",
|
|
928
|
+
"enabled = false",
|
|
929
|
+
"max_concurrent_threads_per_session = 7",
|
|
930
|
+
"",
|
|
931
|
+
].join("\n")
|
|
932
|
+
|
|
933
|
+
const result = forceDisableMultiAgentV2(config, {
|
|
934
|
+
sessionModel: "gpt-5.6-terra",
|
|
935
|
+
multiAgentVersion: "v2",
|
|
936
|
+
})
|
|
937
|
+
|
|
938
|
+
assert.doesNotMatch(result, /^\s*enabled\s*=\s*false/m)
|
|
939
|
+
assert.match(result, /max_concurrent_threads_per_session = 7/)
|
|
940
|
+
})
|
|
972
941
|
|
|
973
942
|
test("#given SessionStart without model #when requireSessionModel is set #then skips legacy force-disable", () => {
|
|
974
|
-
|
|
943
|
+
const config = ['model = "gpt-5.5"', "", "[features]", "plugins = true", ""].join("\n")
|
|
975
944
|
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
945
|
+
const result = forceDisableMultiAgentV2(config, {
|
|
946
|
+
multiAgentVersion: null,
|
|
947
|
+
requireSessionModel: true,
|
|
948
|
+
sessionModel: null,
|
|
949
|
+
})
|
|
981
950
|
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
})
|
|
951
|
+
assert.equal(result, config)
|
|
952
|
+
assert.doesNotMatch(result, /\[features\.multi_agent_v2\]/)
|
|
953
|
+
})
|
|
985
954
|
|
|
986
955
|
test("#given legacy [features] shorthand #when requireSessionModel skips force-disable #then still removes the shorthand", () => {
|
|
987
|
-
|
|
956
|
+
const config = ['model = "gpt-5.5"', "", "[features]", "plugins = true", "multi_agent_v2 = true", ""].join("\n")
|
|
988
957
|
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
958
|
+
const result = forceDisableMultiAgentV2(config, {
|
|
959
|
+
multiAgentVersion: null,
|
|
960
|
+
requireSessionModel: true,
|
|
961
|
+
sessionModel: null,
|
|
962
|
+
})
|
|
994
963
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
})
|
|
964
|
+
assert.doesNotMatch(result, /^\s*multi_agent_v2\s*=/m)
|
|
965
|
+
assert.match(result, /plugins = true/)
|
|
966
|
+
assert.doesNotMatch(result, /\[features\.multi_agent_v2\]/)
|
|
967
|
+
})
|
|
999
968
|
|
|
1000
969
|
test("#given legacy [features] shorthand #when session model has no catalog entry #then still removes the shorthand", () => {
|
|
1001
|
-
|
|
970
|
+
const config = ['model = "gpt-5.5"', "", "[features]", "multi_agent_v2 = false", ""].join("\n")
|
|
1002
971
|
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
972
|
+
const result = forceDisableMultiAgentV2(config, {
|
|
973
|
+
multiAgentVersion: null,
|
|
974
|
+
sessionModel: "gpt-5.7-nova",
|
|
975
|
+
})
|
|
1007
976
|
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
})
|
|
977
|
+
assert.doesNotMatch(result, /^\s*multi_agent_v2\s*=/m)
|
|
978
|
+
assert.doesNotMatch(result, /\[features\.multi_agent_v2\]/)
|
|
979
|
+
})
|
|
1011
980
|
|
|
1012
981
|
test("#given legacy shorthand and no session model on hook path #when full migration runs #then output stays valid TOML", async () => {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
})
|
|
982
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-multi-agent-v2-shorthand-hook-"))
|
|
983
|
+
const codexHome = join(root, "codex-home")
|
|
984
|
+
await mkdir(codexHome, { recursive: true })
|
|
985
|
+
const configPath = join(codexHome, "config.toml")
|
|
986
|
+
await writeFile(
|
|
987
|
+
configPath,
|
|
988
|
+
[
|
|
989
|
+
'model = "gpt-5.5"',
|
|
990
|
+
'model_reasoning_effort = "high"',
|
|
991
|
+
"",
|
|
992
|
+
"[features]",
|
|
993
|
+
"plugins = true",
|
|
994
|
+
"multi_agent_v2 = true",
|
|
995
|
+
"",
|
|
996
|
+
].join("\n"),
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
await migrateCodexConfig({
|
|
1000
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
1001
|
+
cwd: root,
|
|
1002
|
+
sessionModel: null,
|
|
1003
|
+
requireSessionModel: true,
|
|
1004
|
+
})
|
|
1005
|
+
|
|
1006
|
+
const content = await readFile(configPath, "utf8")
|
|
1007
|
+
const parsed = parseTomlWithPython(content)
|
|
1008
|
+
assert.doesNotMatch(content, /^\s*multi_agent_v2\s*=\s*(?:true|false)/m)
|
|
1009
|
+
assert.equal(parsed.features.plugins, true)
|
|
1010
|
+
assert.equal(parsed.features.multi_agent_v2?.max_concurrent_threads_per_session, undefined)
|
|
1011
|
+
assert.equal(parsed.features.multi_agent_v2?.enabled, undefined)
|
|
1012
|
+
})
|
|
1036
1013
|
|
|
1037
1014
|
test("#given SoT migration failure #when hook migration runs #then config.toml repair still happens", async () => {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
})
|
|
1015
|
+
const { runAutoUpdateCheck } = await import("../scripts/auto-update.mjs")
|
|
1016
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-sot-isolation-"))
|
|
1017
|
+
const codexHome = join(root, "codex-home")
|
|
1018
|
+
await mkdir(codexHome, { recursive: true })
|
|
1019
|
+
const configPath = join(codexHome, "config.toml")
|
|
1020
|
+
await writeFile(
|
|
1021
|
+
configPath,
|
|
1022
|
+
['model = "gpt-5.6-sol"', "", "[features.multi_agent_v2]", "enabled = false", ""].join("\n"),
|
|
1023
|
+
)
|
|
1024
|
+
await writeFile(
|
|
1025
|
+
join(codexHome, "models_cache.json"),
|
|
1026
|
+
JSON.stringify({ models: [{ slug: "gpt-5.6-sol", multi_agent_version: "v2" }] }),
|
|
1027
|
+
)
|
|
1028
|
+
// HOME pointing at a FILE makes migrateOmoSotConfig's mkdir(~/.omo) throw.
|
|
1029
|
+
const brokenHome = join(root, "not-a-dir")
|
|
1030
|
+
await writeFile(brokenHome, "")
|
|
1031
|
+
|
|
1032
|
+
await runAutoUpdateCheck({
|
|
1033
|
+
env: {
|
|
1034
|
+
CODEX_HOME: codexHome,
|
|
1035
|
+
HOME: brokenHome,
|
|
1036
|
+
USERPROFILE: brokenHome,
|
|
1037
|
+
LAZYCODEX_AUTO_UPDATE_DISABLED: "1",
|
|
1038
|
+
LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json"),
|
|
1039
|
+
LAZYCODEX_AUTO_UPDATE_STATE_PATH: join(root, "state.json"),
|
|
1040
|
+
},
|
|
1041
|
+
sessionModel: "gpt-5.6-sol",
|
|
1042
|
+
requireSessionModel: true,
|
|
1043
|
+
})
|
|
1044
|
+
|
|
1045
|
+
const content = await readFile(configPath, "utf8")
|
|
1046
|
+
assert.doesNotMatch(content, /^\s*enabled\s*=\s*false/m)
|
|
1047
|
+
})
|
|
1071
1048
|
|
|
1072
1049
|
test("#given config default gpt-5.5 #when full migration gets SessionStart gpt-5.6-terra #then clears disable using session model", async () => {
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
})
|
|
1050
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-multi-agent-v2-session-model-"))
|
|
1051
|
+
const codexHome = join(root, "codex-home")
|
|
1052
|
+
await mkdir(codexHome, { recursive: true })
|
|
1053
|
+
const configPath = join(codexHome, "config.toml")
|
|
1054
|
+
await writeFile(
|
|
1055
|
+
configPath,
|
|
1056
|
+
[
|
|
1057
|
+
'model = "gpt-5.5"',
|
|
1058
|
+
'model_reasoning_effort = "high"',
|
|
1059
|
+
"",
|
|
1060
|
+
"[agents]",
|
|
1061
|
+
"max_threads = 1000",
|
|
1062
|
+
"",
|
|
1063
|
+
"[features.multi_agent_v2]",
|
|
1064
|
+
"enabled = false",
|
|
1065
|
+
"max_concurrent_threads_per_session = 1000",
|
|
1066
|
+
"",
|
|
1067
|
+
].join("\n"),
|
|
1068
|
+
)
|
|
1069
|
+
await writeFile(
|
|
1070
|
+
join(codexHome, "models_cache.json"),
|
|
1071
|
+
JSON.stringify({
|
|
1072
|
+
models: [
|
|
1073
|
+
{ slug: "gpt-5.5", multi_agent_version: "v1" },
|
|
1074
|
+
{ slug: "gpt-5.6-terra", multi_agent_version: "v2" },
|
|
1075
|
+
],
|
|
1076
|
+
}),
|
|
1077
|
+
)
|
|
1078
|
+
|
|
1079
|
+
const result = await migrateCodexConfig({
|
|
1080
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
1081
|
+
cwd: root,
|
|
1082
|
+
sessionModel: "gpt-5.6-terra",
|
|
1083
|
+
requireSessionModel: true,
|
|
1084
|
+
})
|
|
1085
|
+
|
|
1086
|
+
assert.deepEqual(result.changed, [configPath])
|
|
1087
|
+
const content = await readFile(configPath, "utf8")
|
|
1088
|
+
assert.doesNotMatch(content, /^\s*enabled\s*=\s*false/m)
|
|
1089
|
+
assert.doesNotMatch(content, /^\s*max_threads\s*=/m)
|
|
1090
|
+
assert.doesNotMatch(content, /max_concurrent_threads_per_session\s*=/)
|
|
1091
|
+
})
|
|
1115
1092
|
|
|
1116
1093
|
test("#given no session model and no root model #when forcing disable #then leaves the enable state untouched", () => {
|
|
1117
|
-
|
|
1094
|
+
const config = ["[features]", "plugins = true", "", "[features.multi_agent_v2]", "enabled = true", ""].join("\n")
|
|
1118
1095
|
|
|
1119
|
-
|
|
1096
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null, sessionModel: null })
|
|
1120
1097
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
})
|
|
1098
|
+
assert.match(result, /enabled = true/)
|
|
1099
|
+
assert.doesNotMatch(result, /enabled = false/)
|
|
1100
|
+
assert.doesNotMatch(result, /openai\/codex#26753/)
|
|
1101
|
+
})
|
|
1125
1102
|
|
|
1126
1103
|
test("#given no session model and no root model #when config has no multi_agent_v2 section #then does not append a disable", () => {
|
|
1127
|
-
|
|
1104
|
+
const config = ["[features]", "plugins = true", ""].join("\n")
|
|
1128
1105
|
|
|
1129
|
-
|
|
1106
|
+
const result = forceDisableMultiAgentV2(config, { multiAgentVersion: null, sessionModel: null })
|
|
1130
1107
|
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
})
|
|
1108
|
+
assert.equal(result, config)
|
|
1109
|
+
assert.doesNotMatch(result, /\[features\.multi_agent_v2\]/)
|
|
1110
|
+
})
|
|
1134
1111
|
|
|
1135
1112
|
test("#given user-modified config without root model #when full non-hook migration runs #then writes no disable and no new agents.max_threads", async () => {
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
})
|
|
1113
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-multi-agent-v2-desktop-no-model-"))
|
|
1114
|
+
const codexHome = join(root, "codex-home")
|
|
1115
|
+
await mkdir(codexHome, { recursive: true })
|
|
1116
|
+
const configPath = join(codexHome, "config.toml")
|
|
1117
|
+
// Codex Desktop sessions select the model in the UI; config.toml has no root
|
|
1118
|
+
// `model`, so migration cannot prove the session is not a GPT-5.6
|
|
1119
|
+
// reserved-schema model (#6002).
|
|
1120
|
+
await writeFile(configPath, ['model_reasoning_effort = "high"', "", "[features]", "plugins = true", ""].join("\n"))
|
|
1121
|
+
|
|
1122
|
+
await migrateCodexConfig({
|
|
1123
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
1124
|
+
cwd: root,
|
|
1125
|
+
})
|
|
1126
|
+
|
|
1127
|
+
const content = await readFile(configPath, "utf8")
|
|
1128
|
+
assert.doesNotMatch(content, /^\s*enabled\s*=\s*false/m)
|
|
1129
|
+
assert.doesNotMatch(content, /openai\/codex#26753/)
|
|
1130
|
+
assert.doesNotMatch(content, /^\s*max_threads\s*=/m)
|
|
1131
|
+
assert.doesNotMatch(content, /max_concurrent_threads_per_session\s*=/)
|
|
1132
|
+
})
|
|
1156
1133
|
|
|
1157
1134
|
async function canCreateSymlink(type) {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1135
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-symlink-capability-"))
|
|
1136
|
+
const target = join(root, "target")
|
|
1137
|
+
const link = join(root, "link")
|
|
1138
|
+
|
|
1139
|
+
try {
|
|
1140
|
+
if (type === "dir") {
|
|
1141
|
+
await mkdir(target, { recursive: true })
|
|
1142
|
+
await symlink(target, link, "dir")
|
|
1143
|
+
} else {
|
|
1144
|
+
await writeFile(target, "")
|
|
1145
|
+
await symlink(target, link, "file")
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
await rm(link)
|
|
1149
|
+
await rm(target, { recursive: true, force: true })
|
|
1150
|
+
await rm(root, { recursive: true, force: true })
|
|
1151
|
+
return true
|
|
1152
|
+
} catch (error) {
|
|
1153
|
+
await rm(root, { recursive: true, force: true })
|
|
1154
|
+
if (!(error instanceof Error)) throw error
|
|
1155
|
+
if (error.code === "EPERM" || error.code === "EEXIST") return false
|
|
1156
|
+
return false
|
|
1157
|
+
}
|
|
1181
1158
|
}
|
|
1182
1159
|
|
|
1183
1160
|
test("#given model_catalog_json declares a v2 model as v1 #when full migration runs #then keeps the managed disable and max_threads", async () => {
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1161
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-multi-agent-v2-catalog-override-"))
|
|
1162
|
+
const codexHome = join(root, "codex-home")
|
|
1163
|
+
await mkdir(codexHome, { recursive: true })
|
|
1164
|
+
const configPath = join(codexHome, "config.toml")
|
|
1165
|
+
const catalogPath = join(root, "custom-catalog.json")
|
|
1166
|
+
// Codex Desktop user forces gpt-5.6-sol to v1 via an explicit replacement catalog.
|
|
1167
|
+
await writeFile(
|
|
1168
|
+
configPath,
|
|
1169
|
+
[
|
|
1170
|
+
'model = "gpt-5.6-sol"',
|
|
1171
|
+
`model_catalog_json = "${catalogPath}"`,
|
|
1172
|
+
"",
|
|
1173
|
+
"[agents]",
|
|
1174
|
+
"max_threads = 1000",
|
|
1175
|
+
"max_depth = 2",
|
|
1176
|
+
"",
|
|
1177
|
+
"[features.multi_agent_v2]",
|
|
1178
|
+
"enabled = false",
|
|
1179
|
+
"max_concurrent_threads_per_session = 1000",
|
|
1180
|
+
"",
|
|
1181
|
+
].join("\n"),
|
|
1182
|
+
)
|
|
1183
|
+
// models_cache.json STILL says v2 (stale), but the explicit catalog wins and says v1.
|
|
1184
|
+
await writeFile(
|
|
1185
|
+
join(codexHome, "models_cache.json"),
|
|
1186
|
+
JSON.stringify({ models: [{ slug: "gpt-5.6-sol", multi_agent_version: "v2" }] }),
|
|
1187
|
+
)
|
|
1188
|
+
await writeFile(catalogPath, JSON.stringify({ models: [{ slug: "gpt-5.6-sol", multi_agent_version: "v1" }] }))
|
|
1189
|
+
|
|
1190
|
+
await migrateCodexConfig({
|
|
1191
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
1192
|
+
cwd: root,
|
|
1193
|
+
})
|
|
1194
|
+
|
|
1195
|
+
const content = await readFile(configPath, "utf8")
|
|
1196
|
+
assert.match(content, /enabled = false/, "explicit v1 catalog must keep the managed disable")
|
|
1197
|
+
assert.doesNotMatch(content, /^\s*max_threads\s*=/m, "managed agents.max_threads must be removed")
|
|
1198
|
+
assert.doesNotMatch(content, /max_concurrent_threads_per_session\s*=/)
|
|
1199
|
+
assert.match(content, /max_depth = 2/)
|
|
1200
|
+
})
|
|
1218
1201
|
|
|
1219
1202
|
test("#given model_catalog_json declares a model as v2 #when full migration runs #then clears the managed disable", async () => {
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1203
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-multi-agent-v2-catalog-v2-"))
|
|
1204
|
+
const codexHome = join(root, "codex-home")
|
|
1205
|
+
await mkdir(codexHome, { recursive: true })
|
|
1206
|
+
const configPath = join(codexHome, "config.toml")
|
|
1207
|
+
const catalogPath = join(root, "custom-catalog.json")
|
|
1208
|
+
await writeFile(
|
|
1209
|
+
configPath,
|
|
1210
|
+
[
|
|
1211
|
+
'model = "custom-model"',
|
|
1212
|
+
`model_catalog_json = "${catalogPath}"`,
|
|
1213
|
+
"",
|
|
1214
|
+
"[features.multi_agent_v2]",
|
|
1215
|
+
"enabled = false",
|
|
1216
|
+
"",
|
|
1217
|
+
].join("\n"),
|
|
1218
|
+
)
|
|
1219
|
+
await writeFile(catalogPath, JSON.stringify({ models: [{ slug: "custom-model", multi_agent_version: "v2" }] }))
|
|
1220
|
+
|
|
1221
|
+
await migrateCodexConfig({
|
|
1222
|
+
env: { CODEX_HOME: codexHome, LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json") },
|
|
1223
|
+
cwd: root,
|
|
1224
|
+
})
|
|
1225
|
+
|
|
1226
|
+
const content = await readFile(configPath, "utf8")
|
|
1227
|
+
assert.doesNotMatch(content, /^\s*enabled\s*=\s*false/m, "explicit v2 catalog must clear the disable")
|
|
1228
|
+
})
|