oh-my-opencode 4.13.0 → 4.14.1
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/SKILL.md +15 -0
- package/.agents/skills/codex-qa/references/isolation.md +1 -1
- package/.agents/skills/codex-qa/references/logging-debug.md +12 -0
- package/.agents/skills/opencode-qa/SKILL.md +17 -0
- package/.agents/skills/opencode-qa/references/tui-tmux.md +17 -0
- package/.agents/skills/work-with-pr/SKILL.md +18 -10
- package/.opencode/skills/work-with-pr/SKILL.md +18 -10
- package/README.md +3 -3
- package/dist/cli/doctor/checks/telemetry.d.ts +2 -0
- package/dist/cli/doctor/framework/constants.d.ts +1 -0
- package/dist/cli/doctor/framework/doctor-target.d.ts +1 -1
- package/dist/cli/doctor/framework/types.d.ts +2 -0
- package/dist/cli/index.js +24779 -17857
- package/dist/cli-node/index.js +24779 -17857
- package/dist/config/schema/oh-my-opencode-config.d.ts +1 -0
- package/dist/features/team-mode/test-support/async-test-helpers.d.ts +19 -0
- package/dist/hooks/atlas/final-wave-approval-gate.d.ts +1 -0
- package/dist/hooks/atlas/subagent-completion-reminder.d.ts +30 -0
- package/dist/hooks/atlas/types.d.ts +2 -0
- package/dist/hooks/atlas/verification-reminders.d.ts +3 -0
- package/dist/hooks/team-session-events/team-idle-wake-hint.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +43845 -26631
- package/dist/mcp/context7.d.ts +9 -8
- package/dist/oh-my-opencode.schema.json +4 -0
- package/dist/plugin/native-skills.d.ts +9 -0
- package/dist/plugin/system-transform.d.ts +1 -1
- package/dist/shared/posthog.d.ts +17 -10
- package/dist/shared/telemetry-product-identity.d.ts +2 -0
- package/dist/skills/coding-agent-sessions/SKILL.md +128 -0
- package/dist/skills/coding-agent-sessions/agents/openai.yaml +4 -0
- package/dist/skills/coding-agent-sessions/references/all-platforms.md +71 -0
- package/dist/skills/coding-agent-sessions/references/claude.md +32 -0
- package/dist/skills/coding-agent-sessions/references/codex.md +30 -0
- package/dist/skills/coding-agent-sessions/references/opencode.md +43 -0
- package/dist/skills/coding-agent-sessions/references/senpi.md +17 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +92 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
- package/dist/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
- package/dist/skills/frontend/ATTRIBUTION.md +52 -8
- package/dist/skills/frontend/SKILL.md +29 -8
- package/dist/skills/frontend/references/design/README.md +29 -12
- package/dist/skills/frontend/references/design/_INDEX.md +3 -3
- package/dist/skills/frontend/references/design/design-system-architecture.md +22 -19
- package/dist/skills/frontend/references/designpowers/EVIDENCE.md +89 -0
- package/dist/skills/frontend/references/designpowers/README.md +48 -0
- package/dist/skills/frontend/references/designpowers/UPSTREAM.md +80 -0
- package/dist/skills/frontend/references/designpowers/lane-a-direction.md +64 -0
- package/dist/skills/frontend/references/designpowers/lane-b-execution.md +65 -0
- package/dist/skills/frontend/references/designpowers/lane-c-review.md +65 -0
- package/dist/skills/frontend/references/designpowers/lane-d-memory.md +83 -0
- package/dist/skills/frontend/references/designpowers/orchestration.md +80 -0
- package/dist/skills/frontend/references/designpowers/routing.md +79 -0
- package/dist/skills/frontend/references/designpowers/vendor/LICENSE +21 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/accessibility-reviewer.md +83 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/content-writer.md +132 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/design-builder.md +109 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/design-critic.md +89 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/design-lead.md +113 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/design-scout.md +78 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/design-strategist.md +121 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/heuristic-evaluator.md +268 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/inspiration-scout.md +107 -0
- package/dist/skills/frontend/references/designpowers/vendor/agents/motion-designer.md +120 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/accessible-content/SKILL.md +101 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/adaptive-interfaces/SKILL.md +109 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/cognitive-accessibility/SKILL.md +107 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/design-debate/SKILL.md +199 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/design-debt-tracker/SKILL.md +174 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/design-handoff/SKILL.md +125 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/design-md/SKILL.md +106 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/design-retrospective/SKILL.md +266 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/design-review/SKILL.md +123 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/design-system-alignment/SKILL.md +120 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/designpowers-critique/SKILL.md +164 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/heuristic-evaluation/SKILL.md +85 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/inclusive-personas/SKILL.md +98 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/inspiration-scouting/SKILL.md +165 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/interaction-design/SKILL.md +122 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/motion-choreography/SKILL.md +81 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/research-planning/SKILL.md +96 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/responsive-patterns/SKILL.md +77 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/synthetic-user-testing/SKILL.md +192 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/taste-feedback/SKILL.md +165 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/taste-report/SKILL.md +78 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/token-architecture/SKILL.md +75 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/ui-composition/SKILL.md +117 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/usability-testing/SKILL.md +78 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/verification-before-shipping/SKILL.md +125 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/voice-and-tone/SKILL.md +79 -0
- package/dist/skills/frontend/references/designpowers/vendor/skills/writing-design-plans/SKILL.md +119 -0
- package/dist/skills/frontend/references/ui-ux-db/scripts/core.py +0 -0
- package/dist/skills/git-master/SKILL.md +4 -0
- package/dist/skills/lcx-contribute-bug-fix/SKILL.md +44 -13
- package/dist/skills/lcx-contribute-bug-fix/agents/openai.yaml +1 -1
- package/dist/skills/lcx-doctor/SKILL.md +48 -13
- package/dist/skills/lcx-doctor/agents/openai.yaml +1 -1
- package/dist/skills/lcx-report-bug/SKILL.md +44 -13
- package/dist/skills/lcx-report-bug/agents/openai.yaml +1 -1
- package/dist/skills/review-work/SKILL.md +3 -3
- package/dist/skills/start-work/SKILL.md +7 -5
- package/dist/skills/ultraresearch/SKILL.md +4 -252
- package/dist/skills/ulw-plan/SKILL.md +8 -6
- package/dist/skills/ulw-plan/references/full-workflow.md +11 -6
- package/dist/skills/ulw-plan/references/intent-clear.md +3 -3
- package/dist/skills/ulw-plan/references/intent-unclear.md +1 -1
- package/{packages/shared-skills/skills/ultraresearch → dist/skills/ulw-research}/ATTRIBUTION.md +1 -1
- package/dist/skills/ulw-research/SKILL.md +260 -0
- package/dist/skills/visual-qa/SKILL.md +109 -18
- package/dist/skills/visual-qa/references/agent-browser-setup.md +5 -4
- package/dist/skills/visual-qa/scripts/cli.test.ts +7 -2
- package/dist/skills/visual-qa/scripts/skill-prompt-contract.test.ts +130 -3
- package/dist/skills/visual-qa/scripts/visual-qa.mjs +530 -0
- package/dist/testing/create-plugin-module.d.ts +2 -0
- package/dist/tools/delegate-task/skill-resolver.d.ts +1 -0
- package/dist/tools/delegate-task/types.d.ts +2 -0
- package/dist/tools/skill/types.d.ts +1 -0
- package/dist/tui.js +23917 -16117
- package/docs/reference/github-attachment-upload.md +51 -0
- package/docs/reference/web-terminal-visual-qa.md +81 -0
- package/package.json +33 -14
- package/packages/git-bash-mcp/dist/cli.js +2 -0
- package/packages/lsp-core/src/lsp/process.ts +4 -1
- package/packages/lsp-core/src/mcp.ts +1 -0
- package/packages/lsp-daemon/dist/cli.js +20 -5
- package/packages/lsp-daemon/dist/ensure-daemon.d.ts +1 -0
- package/packages/lsp-daemon/dist/ensure-daemon.js +9 -3
- package/packages/lsp-daemon/dist/index.js +20 -5
- package/packages/lsp-daemon/dist/paths.d.ts +1 -0
- package/packages/lsp-daemon/dist/paths.js +6 -1
- package/packages/lsp-daemon/dist/proxy.js +1 -0
- package/packages/lsp-tools-mcp/dist/cli.js +5 -1
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +4 -1
- package/packages/lsp-tools-mcp/dist/mcp.js +5 -1
- package/packages/lsp-tools-mcp/dist/tools.js +4 -1
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +327 -69
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/scripts/bootstrap.ps1 +37 -68
- package/packages/omo-codex/plugin/components/bootstrap/scripts/node-dispatch.ps1 +75 -0
- package/packages/omo-codex/plugin/components/bootstrap/src/cli.ts +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/src/setup.ts +3 -19
- package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +688 -334
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +317 -39
- package/packages/omo-codex/plugin/components/codegraph/package.json +2 -2
- package/packages/omo-codex/plugin/components/codegraph/src/hook-types.ts +7 -1
- package/packages/omo-codex/plugin/components/codegraph/src/hook.ts +103 -3
- package/packages/omo-codex/plugin/components/codegraph/src/mcp-bridge.ts +231 -0
- package/packages/omo-codex/plugin/components/codegraph/src/serve-invocation.ts +29 -0
- package/packages/omo-codex/plugin/components/codegraph/src/serve.ts +31 -57
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-worker.ts +7 -4
- package/packages/omo-codex/plugin/components/codegraph/test/hook.test.ts +43 -9
- package/packages/omo-codex/plugin/components/codegraph/test/serve-mcp-bridge.test.ts +287 -0
- package/packages/omo-codex/plugin/components/codegraph/test/serve.test.ts +12 -7
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-worker-flow.test.ts +71 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +94 -26
- package/packages/omo-codex/plugin/components/lsp/dist/codex-hook.js +2 -0
- package/packages/omo-codex/plugin/components/lsp/dist/daemon-cli-path.d.ts +2 -0
- package/packages/omo-codex/plugin/components/lsp/dist/daemon-cli-path.js +56 -0
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/src/cli.ts +2 -5
- package/packages/omo-codex/plugin/components/lsp/src/codex-hook.ts +2 -0
- package/packages/omo-codex/plugin/components/lsp/src/daemon-cli-path.ts +65 -0
- package/packages/omo-codex/plugin/components/lsp/test/package-smoke.test.ts +6 -1
- package/packages/omo-codex/plugin/components/rules/dist/cli.js +8 -106
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/src/static-injection.ts +4 -17
- package/packages/omo-codex/plugin/components/start-work-continuation/directive.md +6 -6
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/test/codex-hook.test.ts +23 -0
- package/packages/omo-codex/plugin/components/teammode/dist/cli.js +22 -4
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/SKILL.md +57 -7
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-guide.mjs +32 -5
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-state.mjs +63 -1
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team.mjs +87 -53
- package/packages/omo-codex/plugin/components/teammode/src/codex-hook.ts +19 -4
- package/packages/omo-codex/plugin/components/teammode/test/thread-title-hook.test.ts +32 -2
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/README.md +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/agents/explorer.toml +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/agents/plan.toml +2 -2
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +18 -10
- package/packages/omo-codex/plugin/components/ultrawork/dist/cli.js +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +6 -4
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +11 -6
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-clear.md +3 -3
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-unclear.md +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/src/codex-hook.ts +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook-trigger-policy.test.ts +24 -0
- package/packages/omo-codex/plugin/components/ultrawork/test/package-smoke.test.ts +7 -28
- package/packages/omo-codex/plugin/components/ulw-loop/AGENTS.md +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/README.md +25 -21
- package/packages/omo-codex/plugin/components/ulw-loop/biome.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/directive.md +373 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-steering.js +14 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +145 -14
- package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-hook.d.ts +6 -3
- package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-hook.js +16 -6
- package/packages/omo-codex/plugin/components/ulw-loop/dist/ultrawork-directive.d.ts +5 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/ultrawork-directive.js +104 -0
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +5 -2
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +22 -14
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli-steering.ts +14 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli.ts +4 -2
- package/packages/omo-codex/plugin/components/ulw-loop/src/codex-hook.ts +28 -6
- package/packages/omo-codex/plugin/components/ulw-loop/src/ultrawork-directive.ts +113 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-entrypoint.test.ts +33 -2
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-steering-kind-guidance.test.ts +31 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/codex-hook.test.ts +13 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-quality-gate.json +7 -7
- package/packages/omo-codex/plugin/components/ulw-loop/test/package-smoke.test.ts +39 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/quality-gate-doc.test.ts +2 -2
- package/packages/omo-codex/plugin/components/ulw-loop/test/quality-gate.test.ts +7 -6
- package/packages/omo-codex/plugin/components/ulw-loop/test/skill-contract.test.ts +12 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/ultrawork-directive.test.ts +64 -0
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +2 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +2 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +2 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +2 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +2 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +2 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +2 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +2 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +2 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +2 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +2 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +2 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +2 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +2 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +2 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +2 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +2 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +2 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +2 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +2 -1
- package/packages/omo-codex/plugin/package-lock.json +16 -56
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/scripts/auto-update.mjs +9 -5
- package/packages/omo-codex/plugin/scripts/materialize-shared-upstreams.mjs +1 -0
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/context7-placeholder-guard.mjs +131 -0
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/multi-agent-mode-guard.mjs +60 -0
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/multi-agent-v2-guard.mjs +3 -10
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/root-settings.mjs +31 -1
- package/packages/omo-codex/plugin/scripts/migrate-codex-config/subagent-limit-guard.mjs +73 -0
- package/packages/omo-codex/plugin/scripts/migrate-codex-config.mjs +20 -3
- package/packages/omo-codex/plugin/scripts/sync-skills.mjs +30 -8
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/SKILL.md +128 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/agents/openai.yaml +4 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/all-platforms.md +71 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/claude.md +32 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/codex.md +30 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/opencode.md +43 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/senpi.md +17 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +92 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
- package/packages/omo-codex/plugin/skills/frontend/ATTRIBUTION.md +52 -8
- package/packages/omo-codex/plugin/skills/frontend/SKILL.md +29 -8
- package/packages/omo-codex/plugin/skills/frontend/references/design/README.md +29 -12
- package/packages/omo-codex/plugin/skills/frontend/references/design/_INDEX.md +3 -3
- package/packages/omo-codex/plugin/skills/frontend/references/design/design-system-architecture.md +22 -19
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/EVIDENCE.md +89 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/README.md +48 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/UPSTREAM.md +80 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/lane-a-direction.md +64 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/lane-b-execution.md +65 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/lane-c-review.md +65 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/lane-d-memory.md +83 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/orchestration.md +80 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/routing.md +79 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/LICENSE +21 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/accessibility-reviewer.md +83 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/content-writer.md +132 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/design-builder.md +109 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/design-critic.md +89 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/design-lead.md +113 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/design-scout.md +78 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/design-strategist.md +121 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/heuristic-evaluator.md +268 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/inspiration-scout.md +107 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/agents/motion-designer.md +120 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/accessible-content/SKILL.md +101 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/adaptive-interfaces/SKILL.md +109 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/cognitive-accessibility/SKILL.md +107 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/design-debate/SKILL.md +199 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/design-debt-tracker/SKILL.md +174 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/design-handoff/SKILL.md +125 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/design-md/SKILL.md +106 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/design-retrospective/SKILL.md +266 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/design-review/SKILL.md +123 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/design-system-alignment/SKILL.md +120 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/designpowers-critique/SKILL.md +164 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/heuristic-evaluation/SKILL.md +85 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/inclusive-personas/SKILL.md +98 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/inspiration-scouting/SKILL.md +165 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/interaction-design/SKILL.md +122 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/motion-choreography/SKILL.md +81 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/research-planning/SKILL.md +96 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/responsive-patterns/SKILL.md +77 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/synthetic-user-testing/SKILL.md +192 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/taste-feedback/SKILL.md +165 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/taste-report/SKILL.md +78 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/token-architecture/SKILL.md +75 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/ui-composition/SKILL.md +117 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/usability-testing/SKILL.md +78 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/verification-before-shipping/SKILL.md +125 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/voice-and-tone/SKILL.md +79 -0
- package/packages/omo-codex/plugin/skills/frontend/references/designpowers/vendor/skills/writing-design-plans/SKILL.md +119 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/scripts/core.py +0 -0
- package/packages/omo-codex/plugin/skills/git-master/SKILL.md +4 -0
- package/packages/omo-codex/plugin/skills/init-deep/SKILL.md +4 -0
- package/packages/omo-codex/plugin/skills/lcx-contribute-bug-fix/SKILL.md +44 -13
- package/packages/omo-codex/plugin/skills/lcx-contribute-bug-fix/agents/openai.yaml +1 -1
- package/packages/omo-codex/plugin/skills/lcx-doctor/SKILL.md +48 -13
- package/packages/omo-codex/plugin/skills/lcx-doctor/agents/openai.yaml +1 -1
- package/packages/omo-codex/plugin/skills/lcx-report-bug/SKILL.md +44 -13
- package/packages/omo-codex/plugin/skills/lcx-report-bug/agents/openai.yaml +1 -1
- package/packages/omo-codex/plugin/skills/refactor/SKILL.md +4 -0
- package/packages/omo-codex/plugin/skills/remove-ai-slops/SKILL.md +4 -0
- package/packages/omo-codex/plugin/skills/review-work/SKILL.md +12 -4
- package/packages/omo-codex/plugin/skills/start-work/SKILL.md +14 -8
- package/packages/omo-codex/plugin/skills/teammode/SKILL.md +57 -7
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-guide.mjs +32 -5
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-state.mjs +63 -1
- package/packages/omo-codex/plugin/skills/teammode/scripts/team.mjs +87 -53
- package/packages/omo-codex/plugin/skills/ultraresearch/SKILL.md +4 -250
- package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +22 -14
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +6 -4
- package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +11 -6
- package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-clear.md +3 -3
- package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-unclear.md +1 -1
- package/{dist/skills/ultraresearch → packages/omo-codex/plugin/skills/ulw-research}/ATTRIBUTION.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +262 -0
- package/packages/omo-codex/plugin/skills/ulw-research/agents/openai.yaml +2 -0
- package/packages/omo-codex/plugin/skills/visual-qa/SKILL.md +113 -18
- package/packages/omo-codex/plugin/skills/visual-qa/references/agent-browser-setup.md +5 -4
- package/packages/omo-codex/plugin/skills/visual-qa/scripts/visual-qa.mjs +530 -0
- package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +23 -0
- package/packages/omo-codex/plugin/test/aggregate-manifest.test.mjs +1 -0
- package/packages/omo-codex/plugin/test/auto-update-release-notes.test.mjs +1 -0
- package/packages/omo-codex/plugin/test/auto-update-restart-notice.test.mjs +24 -1
- package/packages/omo-codex/plugin/test/bootstrap-binlinks.test.mjs +61 -7
- package/packages/omo-codex/plugin/test/bootstrap-hooks.test.mjs +38 -0
- package/packages/omo-codex/plugin/test/bootstrap-ps-guard.test.mjs +25 -0
- package/packages/omo-codex/plugin/test/bootstrap-setup.test.mjs +1 -7
- package/packages/omo-codex/plugin/test/component-bin-names.test.mjs +12 -11
- package/packages/omo-codex/plugin/test/component-bundled-cli.test.mjs +99 -1
- package/packages/omo-codex/plugin/test/lcx-bug-skills.test.mjs +62 -8
- package/packages/omo-codex/plugin/test/migrate-codex-config.test.mjs +206 -6
- package/packages/omo-codex/plugin/test/node-install-surface.test.mjs +1 -0
- package/packages/omo-codex/plugin/test/subagent-limit-migration.test.mjs +44 -0
- package/packages/omo-codex/plugin/test/sync-skills-orchestration.test.mjs +50 -1
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +10 -7
- package/packages/omo-codex/plugin/test/sync-skills.test.mjs +28 -2
- package/packages/omo-codex/plugin/test/teammode-archive-ambiguity.test.mjs +102 -0
- package/packages/omo-codex/plugin/test/teammode-communication.test.mjs +20 -0
- package/packages/omo-codex/plugin/test/teammode-safety-fixture.mjs +41 -1
- package/packages/omo-codex/plugin/test/teammode-safety.test.mjs +93 -0
- package/packages/omo-codex/plugin/test/teammode-thread-links.test.mjs +117 -0
- package/packages/omo-codex/plugin/test/teammode-worktree.test.mjs +5 -2
- package/packages/omo-codex/plugin/test/ulw-research-skill-contract.test.mjs +285 -0
- package/packages/omo-codex/scripts/install-bin-links.test.mjs +12 -1
- package/packages/omo-codex/scripts/install-cache-copy.test.mjs +79 -0
- package/packages/omo-codex/scripts/install-config-autonomous-features.test.mjs +43 -3
- package/packages/omo-codex/scripts/install-config.test.mjs +198 -17
- package/packages/omo-codex/scripts/install-delegated-command.test.mjs +93 -0
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +803 -309
- package/packages/omo-codex/scripts/install-local-entrypoint.test.mjs +21 -2
- package/packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs +24 -15
- package/packages/omo-codex/scripts/install-local.test.mjs +5 -2
- package/packages/omo-codex/scripts/install-mcp-context7-runtime.test.mjs +84 -0
- package/packages/shared-skills/skills/coding-agent-sessions/SKILL.md +128 -0
- package/packages/shared-skills/skills/coding-agent-sessions/agents/openai.yaml +4 -0
- package/packages/shared-skills/skills/coding-agent-sessions/references/all-platforms.md +71 -0
- package/packages/shared-skills/skills/coding-agent-sessions/references/claude.md +32 -0
- package/packages/shared-skills/skills/coding-agent-sessions/references/codex.md +30 -0
- package/packages/shared-skills/skills/coding-agent-sessions/references/opencode.md +43 -0
- package/packages/shared-skills/skills/coding-agent-sessions/references/senpi.md +17 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +92 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
- package/packages/shared-skills/skills/frontend/ATTRIBUTION.md +52 -8
- package/packages/shared-skills/skills/frontend/SKILL.md +29 -8
- package/packages/shared-skills/skills/frontend/references/design/README.md +29 -12
- package/packages/shared-skills/skills/frontend/references/design/_INDEX.md +3 -3
- package/packages/shared-skills/skills/frontend/references/design/design-system-architecture.md +22 -19
- package/packages/shared-skills/skills/frontend/references/designpowers/EVIDENCE.md +89 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/README.md +48 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/UPSTREAM.md +80 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/lane-a-direction.md +64 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/lane-b-execution.md +65 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/lane-c-review.md +65 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/lane-d-memory.md +83 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/orchestration.md +80 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/routing.md +79 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/LICENSE +21 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/accessibility-reviewer.md +83 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/content-writer.md +132 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/design-builder.md +109 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/design-critic.md +89 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/design-lead.md +113 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/design-scout.md +78 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/design-strategist.md +121 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/heuristic-evaluator.md +268 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/inspiration-scout.md +107 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/agents/motion-designer.md +120 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/accessible-content/SKILL.md +101 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/adaptive-interfaces/SKILL.md +109 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/cognitive-accessibility/SKILL.md +107 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/design-debate/SKILL.md +199 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/design-debt-tracker/SKILL.md +174 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/design-handoff/SKILL.md +125 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/design-md/SKILL.md +106 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/design-retrospective/SKILL.md +266 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/design-review/SKILL.md +123 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/design-system-alignment/SKILL.md +120 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/designpowers-critique/SKILL.md +164 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/heuristic-evaluation/SKILL.md +85 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/inclusive-personas/SKILL.md +98 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/inspiration-scouting/SKILL.md +165 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/interaction-design/SKILL.md +122 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/motion-choreography/SKILL.md +81 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/research-planning/SKILL.md +96 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/responsive-patterns/SKILL.md +77 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/synthetic-user-testing/SKILL.md +192 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/taste-feedback/SKILL.md +165 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/taste-report/SKILL.md +78 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/token-architecture/SKILL.md +75 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/ui-composition/SKILL.md +117 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/usability-testing/SKILL.md +78 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/verification-before-shipping/SKILL.md +125 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/voice-and-tone/SKILL.md +79 -0
- package/packages/shared-skills/skills/frontend/references/designpowers/vendor/skills/writing-design-plans/SKILL.md +119 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/scripts/core.py +0 -0
- package/packages/shared-skills/skills/git-master/SKILL.md +4 -0
- package/packages/shared-skills/skills/lcx-contribute-bug-fix/SKILL.md +44 -13
- package/packages/shared-skills/skills/lcx-contribute-bug-fix/agents/openai.yaml +1 -1
- package/packages/shared-skills/skills/lcx-doctor/SKILL.md +48 -13
- package/packages/shared-skills/skills/lcx-doctor/agents/openai.yaml +1 -1
- package/packages/shared-skills/skills/lcx-report-bug/SKILL.md +44 -13
- package/packages/shared-skills/skills/lcx-report-bug/agents/openai.yaml +1 -1
- package/packages/shared-skills/skills/review-work/SKILL.md +3 -3
- package/packages/shared-skills/skills/start-work/SKILL.md +7 -5
- package/packages/shared-skills/skills/ultraresearch/SKILL.md +4 -252
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +8 -6
- package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +11 -6
- package/packages/shared-skills/skills/ulw-plan/references/intent-clear.md +3 -3
- package/packages/shared-skills/skills/ulw-plan/references/intent-unclear.md +1 -1
- package/packages/{omo-codex/plugin/skills/ultraresearch → shared-skills/skills/ulw-research}/ATTRIBUTION.md +1 -1
- package/packages/shared-skills/skills/ulw-research/SKILL.md +260 -0
- package/packages/shared-skills/skills/visual-qa/SKILL.md +109 -18
- package/packages/shared-skills/skills/visual-qa/references/agent-browser-setup.md +5 -4
- package/packages/shared-skills/skills/visual-qa/scripts/cli.test.ts +7 -2
- package/packages/shared-skills/skills/visual-qa/scripts/skill-prompt-contract.test.ts +130 -3
- package/packages/shared-skills/skills/visual-qa/scripts/visual-qa.mjs +530 -0
- package/script/qa/web-terminal-redaction.d.mts +13 -0
- package/script/qa/web-terminal-redaction.mjs +43 -0
- package/script/qa/web-terminal-renderer.mjs +218 -0
- package/script/qa/web-terminal-visual-qa.mjs +264 -0
- package/dist/cli/sparkshell-appserver-websocket.d.ts +0 -4
- package/dist/cli/sparkshell-appserver.d.ts +0 -16
- package/dist/cli/sparkshell-condense.d.ts +0 -10
- package/dist/cli/sparkshell-parse.d.ts +0 -24
- package/dist/cli/sparkshell-session-context.d.ts +0 -20
- package/dist/cli/sparkshell-spark.d.ts +0 -23
- package/dist/cli/sparkshell.d.ts +0 -33
- package/dist/shared/sparkshell-awareness.d.ts +0 -5
- package/packages/omo-codex/plugin/components/rules/src/sparkshell-awareness.ts +0 -106
- package/packages/omo-codex/plugin/components/rules/test/sparkshell-awareness.test.ts +0 -346
- package/packages/omo-codex/plugin/skills/ultimate-browsing/scripts/tests/test_cookie_domain_filter.py +0 -110
- package/packages/omo-codex/plugin/skills/ultimate-browsing/scripts/tests/test_extract_cookies.py +0 -245
- package/packages/omo-codex/plugin/test/ultraresearch-skill-contract.test.mjs +0 -204
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// packages/shared-skills/skills/visual-qa/scripts/cli.ts
|
|
5
|
+
import { readFileSync } from "node:fs";
|
|
6
|
+
|
|
7
|
+
// packages/shared-skills/skills/visual-qa/scripts/image-diff.ts
|
|
8
|
+
var GRID_SIZE = 8;
|
|
9
|
+
function round4(value) {
|
|
10
|
+
return Math.round(value * 1e4) / 1e4;
|
|
11
|
+
}
|
|
12
|
+
function pixelsDiffer(ref, refOffset, act, actOffset) {
|
|
13
|
+
return ref[refOffset] !== act[actOffset] || ref[refOffset + 1] !== act[actOffset + 1] || ref[refOffset + 2] !== act[actOffset + 2] || ref[refOffset + 3] !== act[actOffset + 3];
|
|
14
|
+
}
|
|
15
|
+
function buildHotspots(cellDiff, cellTotal, cols, rows, overlapWidth, overlapHeight) {
|
|
16
|
+
const hotspots = [];
|
|
17
|
+
for (let gridY = 0;gridY < rows; gridY++) {
|
|
18
|
+
for (let gridX = 0;gridX < cols; gridX++) {
|
|
19
|
+
const index = gridY * cols + gridX;
|
|
20
|
+
const diff = cellDiff[index] ?? 0;
|
|
21
|
+
const total = cellTotal[index] ?? 0;
|
|
22
|
+
if (diff === 0 || total === 0)
|
|
23
|
+
continue;
|
|
24
|
+
const left = Math.floor(gridX * overlapWidth / cols);
|
|
25
|
+
const right = Math.floor((gridX + 1) * overlapWidth / cols);
|
|
26
|
+
const top = Math.floor(gridY * overlapHeight / rows);
|
|
27
|
+
const bottom = Math.floor((gridY + 1) * overlapHeight / rows);
|
|
28
|
+
hotspots.push({
|
|
29
|
+
gridX,
|
|
30
|
+
gridY,
|
|
31
|
+
x: left,
|
|
32
|
+
y: top,
|
|
33
|
+
width: right - left,
|
|
34
|
+
height: bottom - top,
|
|
35
|
+
diffRatio: round4(diff / total)
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
hotspots.sort((a, b) => b.diffRatio - a.diffRatio);
|
|
40
|
+
return hotspots;
|
|
41
|
+
}
|
|
42
|
+
function buildSummary(similarityScore, diffPixels, totalPixels, dimensionsMatch, hotspotCount) {
|
|
43
|
+
const parts = [`${similarityScore}/100 similarity`, `${diffPixels}/${totalPixels} pixels differ`];
|
|
44
|
+
if (!dimensionsMatch)
|
|
45
|
+
parts.push("dimensions differ");
|
|
46
|
+
if (hotspotCount > 0)
|
|
47
|
+
parts.push(`${hotspotCount} hotspot region(s)`);
|
|
48
|
+
return `${parts.join("; ")}.`;
|
|
49
|
+
}
|
|
50
|
+
function diffImages(reference, actual) {
|
|
51
|
+
const overlapWidth = Math.min(reference.width, actual.width);
|
|
52
|
+
const overlapHeight = Math.min(reference.height, actual.height);
|
|
53
|
+
const totalPixels = overlapWidth * overlapHeight;
|
|
54
|
+
const cols = Math.max(1, Math.min(GRID_SIZE, overlapWidth));
|
|
55
|
+
const rows = Math.max(1, Math.min(GRID_SIZE, overlapHeight));
|
|
56
|
+
const cellDiff = new Array(cols * rows).fill(0);
|
|
57
|
+
const cellTotal = new Array(cols * rows).fill(0);
|
|
58
|
+
let diffPixels = 0;
|
|
59
|
+
for (let y = 0;y < overlapHeight; y++) {
|
|
60
|
+
const cellY = Math.min(rows - 1, Math.floor(y * rows / overlapHeight));
|
|
61
|
+
for (let x = 0;x < overlapWidth; x++) {
|
|
62
|
+
const cellX = Math.min(cols - 1, Math.floor(x * cols / overlapWidth));
|
|
63
|
+
const cellIndex = cellY * cols + cellX;
|
|
64
|
+
cellTotal[cellIndex] = (cellTotal[cellIndex] ?? 0) + 1;
|
|
65
|
+
const refOffset = (y * reference.width + x) * 4;
|
|
66
|
+
const actOffset = (y * actual.width + x) * 4;
|
|
67
|
+
if (pixelsDiffer(reference.rgba, refOffset, actual.rgba, actOffset)) {
|
|
68
|
+
diffPixels++;
|
|
69
|
+
cellDiff[cellIndex] = (cellDiff[cellIndex] ?? 0) + 1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const diffRatio = totalPixels === 0 ? 0 : diffPixels / totalPixels;
|
|
74
|
+
const similarityScore = Math.round((1 - diffRatio) * 100);
|
|
75
|
+
const hotspots = buildHotspots(cellDiff, cellTotal, cols, rows, overlapWidth, overlapHeight);
|
|
76
|
+
const dimensionsMatch = reference.width === actual.width && reference.height === actual.height;
|
|
77
|
+
const alphaChannelIntact = !(reference.hasTransparentPixels && !actual.hasTransparentPixels);
|
|
78
|
+
return {
|
|
79
|
+
command: "image-diff",
|
|
80
|
+
dimensionsMatch,
|
|
81
|
+
reference: { width: reference.width, height: reference.height },
|
|
82
|
+
actual: { width: actual.width, height: actual.height },
|
|
83
|
+
totalPixels,
|
|
84
|
+
diffPixels,
|
|
85
|
+
diffRatio: round4(diffRatio),
|
|
86
|
+
similarityScore,
|
|
87
|
+
alphaChannelIntact,
|
|
88
|
+
hotspots,
|
|
89
|
+
summary: buildSummary(similarityScore, diffPixels, totalPixels, dimensionsMatch, hotspots.length)
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// packages/shared-skills/skills/visual-qa/scripts/png-decode.ts
|
|
94
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
95
|
+
import { inflateSync } from "node:zlib";
|
|
96
|
+
|
|
97
|
+
// packages/shared-skills/skills/visual-qa/scripts/png-crc.ts
|
|
98
|
+
import { Buffer } from "node:buffer";
|
|
99
|
+
var PNG_SIGNATURE = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
|
|
100
|
+
function buildCrcTable() {
|
|
101
|
+
const table = new Uint32Array(256);
|
|
102
|
+
for (let n = 0;n < 256; n++) {
|
|
103
|
+
let c = n;
|
|
104
|
+
for (let k = 0;k < 8; k++) {
|
|
105
|
+
c = (c & 1) === 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
|
|
106
|
+
}
|
|
107
|
+
table[n] = c >>> 0;
|
|
108
|
+
}
|
|
109
|
+
return table;
|
|
110
|
+
}
|
|
111
|
+
var CRC_TABLE = buildCrcTable();
|
|
112
|
+
|
|
113
|
+
// packages/shared-skills/skills/visual-qa/scripts/png-decode.ts
|
|
114
|
+
class PngDecodeError extends Error {
|
|
115
|
+
name = "PngDecodeError";
|
|
116
|
+
}
|
|
117
|
+
function readChunks(buffer) {
|
|
118
|
+
const chunks = [];
|
|
119
|
+
let offset = 8;
|
|
120
|
+
while (offset + 8 <= buffer.length) {
|
|
121
|
+
const length = buffer.readUInt32BE(offset);
|
|
122
|
+
const type = buffer.toString("ascii", offset + 4, offset + 8);
|
|
123
|
+
const dataStart = offset + 8;
|
|
124
|
+
const dataEnd = dataStart + length;
|
|
125
|
+
if (dataEnd + 4 > buffer.length)
|
|
126
|
+
break;
|
|
127
|
+
chunks.push({ type, data: buffer.subarray(dataStart, dataEnd) });
|
|
128
|
+
offset = dataEnd + 4;
|
|
129
|
+
}
|
|
130
|
+
return chunks;
|
|
131
|
+
}
|
|
132
|
+
function channelsForColorType(colorType) {
|
|
133
|
+
switch (colorType) {
|
|
134
|
+
case 0:
|
|
135
|
+
return 1;
|
|
136
|
+
case 2:
|
|
137
|
+
return 3;
|
|
138
|
+
case 4:
|
|
139
|
+
return 2;
|
|
140
|
+
case 6:
|
|
141
|
+
return 4;
|
|
142
|
+
default:
|
|
143
|
+
throw new PngDecodeError(`unsupported color type ${colorType}`);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function parseHeader(data) {
|
|
147
|
+
if (data.length < 13) {
|
|
148
|
+
throw new PngDecodeError("invalid IHDR chunk length");
|
|
149
|
+
}
|
|
150
|
+
const colorType = data[9] ?? 0;
|
|
151
|
+
return {
|
|
152
|
+
width: data.readUInt32BE(0),
|
|
153
|
+
height: data.readUInt32BE(4),
|
|
154
|
+
bitDepth: data[8] ?? 0,
|
|
155
|
+
colorType,
|
|
156
|
+
channels: channelsForColorType(colorType)
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function paeth(a, b, c) {
|
|
160
|
+
const p = a + b - c;
|
|
161
|
+
const pa = Math.abs(p - a);
|
|
162
|
+
const pb = Math.abs(p - b);
|
|
163
|
+
const pc = Math.abs(p - c);
|
|
164
|
+
if (pa <= pb && pa <= pc)
|
|
165
|
+
return a;
|
|
166
|
+
if (pb <= pc)
|
|
167
|
+
return b;
|
|
168
|
+
return c;
|
|
169
|
+
}
|
|
170
|
+
function unfilterRow(filterType, row, prev, bpp) {
|
|
171
|
+
const out = Buffer2.alloc(row.length);
|
|
172
|
+
for (let i = 0;i < row.length; i++) {
|
|
173
|
+
const raw = row[i] ?? 0;
|
|
174
|
+
const a = i >= bpp ? out[i - bpp] ?? 0 : 0;
|
|
175
|
+
const b = prev ? prev[i] ?? 0 : 0;
|
|
176
|
+
const c = i >= bpp && prev ? prev[i - bpp] ?? 0 : 0;
|
|
177
|
+
switch (filterType) {
|
|
178
|
+
case 0:
|
|
179
|
+
out[i] = raw;
|
|
180
|
+
break;
|
|
181
|
+
case 1:
|
|
182
|
+
out[i] = raw + a & 255;
|
|
183
|
+
break;
|
|
184
|
+
case 2:
|
|
185
|
+
out[i] = raw + b & 255;
|
|
186
|
+
break;
|
|
187
|
+
case 3:
|
|
188
|
+
out[i] = raw + (a + b >> 1) & 255;
|
|
189
|
+
break;
|
|
190
|
+
case 4:
|
|
191
|
+
out[i] = raw + paeth(a, b, c) & 255;
|
|
192
|
+
break;
|
|
193
|
+
default:
|
|
194
|
+
throw new PngDecodeError(`unsupported filter type ${filterType}`);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return out;
|
|
198
|
+
}
|
|
199
|
+
function decodePixels(idat, width, height, bpp) {
|
|
200
|
+
const inflated = inflateSync(idat);
|
|
201
|
+
const rowBytes = width * bpp;
|
|
202
|
+
if (inflated.length < height * (rowBytes + 1)) {
|
|
203
|
+
throw new PngDecodeError("truncated image data");
|
|
204
|
+
}
|
|
205
|
+
const pixels = Buffer2.alloc(width * height * bpp);
|
|
206
|
+
let prev = null;
|
|
207
|
+
for (let y = 0;y < height; y++) {
|
|
208
|
+
const rowStart = y * (rowBytes + 1);
|
|
209
|
+
const filterType = inflated[rowStart] ?? 0;
|
|
210
|
+
const filtered = inflated.subarray(rowStart + 1, rowStart + 1 + rowBytes);
|
|
211
|
+
const row = unfilterRow(filterType, filtered, prev, bpp);
|
|
212
|
+
row.copy(pixels, y * rowBytes);
|
|
213
|
+
prev = row;
|
|
214
|
+
}
|
|
215
|
+
return pixels;
|
|
216
|
+
}
|
|
217
|
+
function normalizeToRgba(pixels, pixelCount, channels) {
|
|
218
|
+
const rgba = new Uint8Array(pixelCount * 4);
|
|
219
|
+
let hasTransparent = false;
|
|
220
|
+
for (let i = 0;i < pixelCount; i++) {
|
|
221
|
+
const src = i * channels;
|
|
222
|
+
let r = 0;
|
|
223
|
+
let g = 0;
|
|
224
|
+
let b = 0;
|
|
225
|
+
let a = 255;
|
|
226
|
+
switch (channels) {
|
|
227
|
+
case 1: {
|
|
228
|
+
const v = pixels[src] ?? 0;
|
|
229
|
+
r = v;
|
|
230
|
+
g = v;
|
|
231
|
+
b = v;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
case 2: {
|
|
235
|
+
const v = pixels[src] ?? 0;
|
|
236
|
+
r = v;
|
|
237
|
+
g = v;
|
|
238
|
+
b = v;
|
|
239
|
+
a = pixels[src + 1] ?? 255;
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
case 3: {
|
|
243
|
+
r = pixels[src] ?? 0;
|
|
244
|
+
g = pixels[src + 1] ?? 0;
|
|
245
|
+
b = pixels[src + 2] ?? 0;
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
default: {
|
|
249
|
+
r = pixels[src] ?? 0;
|
|
250
|
+
g = pixels[src + 1] ?? 0;
|
|
251
|
+
b = pixels[src + 2] ?? 0;
|
|
252
|
+
a = pixels[src + 3] ?? 255;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
const dst = i * 4;
|
|
256
|
+
rgba[dst] = r;
|
|
257
|
+
rgba[dst + 1] = g;
|
|
258
|
+
rgba[dst + 2] = b;
|
|
259
|
+
rgba[dst + 3] = a;
|
|
260
|
+
if (a < 255)
|
|
261
|
+
hasTransparent = true;
|
|
262
|
+
}
|
|
263
|
+
return { rgba, hasTransparent };
|
|
264
|
+
}
|
|
265
|
+
function decodePng(buffer) {
|
|
266
|
+
if (buffer.length < 8 || !buffer.subarray(0, 8).equals(PNG_SIGNATURE)) {
|
|
267
|
+
throw new PngDecodeError("not a PNG file (bad signature)");
|
|
268
|
+
}
|
|
269
|
+
const chunks = readChunks(buffer);
|
|
270
|
+
const ihdr = chunks.find((chunk) => chunk.type === "IHDR");
|
|
271
|
+
if (ihdr === undefined) {
|
|
272
|
+
throw new PngDecodeError("missing IHDR chunk");
|
|
273
|
+
}
|
|
274
|
+
const header = parseHeader(ihdr.data);
|
|
275
|
+
if (header.bitDepth !== 8) {
|
|
276
|
+
throw new PngDecodeError(`unsupported bit depth ${header.bitDepth}`);
|
|
277
|
+
}
|
|
278
|
+
const idatChunks = chunks.filter((chunk) => chunk.type === "IDAT");
|
|
279
|
+
if (idatChunks.length === 0) {
|
|
280
|
+
throw new PngDecodeError("missing IDAT chunk");
|
|
281
|
+
}
|
|
282
|
+
const idat = Buffer2.concat(idatChunks.map((chunk) => chunk.data));
|
|
283
|
+
const pixels = decodePixels(idat, header.width, header.height, header.channels);
|
|
284
|
+
const normalized = normalizeToRgba(pixels, header.width * header.height, header.channels);
|
|
285
|
+
return {
|
|
286
|
+
width: header.width,
|
|
287
|
+
height: header.height,
|
|
288
|
+
rgba: normalized.rgba,
|
|
289
|
+
hasAlphaChannel: header.colorType === 4 || header.colorType === 6,
|
|
290
|
+
hasTransparentPixels: normalized.hasTransparent
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// packages/shared-skills/skills/visual-qa/scripts/ansi.ts
|
|
295
|
+
var ESC = String.fromCharCode(27);
|
|
296
|
+
var CSI = String.fromCharCode(155);
|
|
297
|
+
var ANSI_PATTERN = new RegExp(`[${ESC}${CSI}][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]`, "g");
|
|
298
|
+
function stripAnsi(input) {
|
|
299
|
+
return input.replace(ANSI_PATTERN, "");
|
|
300
|
+
}
|
|
301
|
+
function hasAnsi(input) {
|
|
302
|
+
return stripAnsi(input) !== input;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// packages/shared-skills/skills/visual-qa/scripts/east-asian-width.ts
|
|
306
|
+
var ZERO_WIDTH_RANGES = [
|
|
307
|
+
{ start: 768, end: 879 },
|
|
308
|
+
{ start: 1155, end: 1161 },
|
|
309
|
+
{ start: 1425, end: 1469 },
|
|
310
|
+
{ start: 1552, end: 1562 },
|
|
311
|
+
{ start: 1611, end: 1631 },
|
|
312
|
+
{ start: 1648, end: 1648 },
|
|
313
|
+
{ start: 1750, end: 1756 },
|
|
314
|
+
{ start: 4448, end: 4607 },
|
|
315
|
+
{ start: 8203, end: 8207 },
|
|
316
|
+
{ start: 8234, end: 8238 },
|
|
317
|
+
{ start: 8288, end: 8292 },
|
|
318
|
+
{ start: 8400, end: 8447 },
|
|
319
|
+
{ start: 65056, end: 65071 },
|
|
320
|
+
{ start: 65279, end: 65279 }
|
|
321
|
+
];
|
|
322
|
+
var WIDE_RANGES = [
|
|
323
|
+
{ start: 4352, end: 4447 },
|
|
324
|
+
{ start: 8986, end: 8987 },
|
|
325
|
+
{ start: 11904, end: 12350 },
|
|
326
|
+
{ start: 12353, end: 13311 },
|
|
327
|
+
{ start: 13312, end: 19903 },
|
|
328
|
+
{ start: 19968, end: 40959 },
|
|
329
|
+
{ start: 40960, end: 42191 },
|
|
330
|
+
{ start: 43360, end: 43391 },
|
|
331
|
+
{ start: 44032, end: 55203 },
|
|
332
|
+
{ start: 63744, end: 64255 },
|
|
333
|
+
{ start: 65040, end: 65049 },
|
|
334
|
+
{ start: 65072, end: 65135 },
|
|
335
|
+
{ start: 65280, end: 65376 },
|
|
336
|
+
{ start: 65504, end: 65510 },
|
|
337
|
+
{ start: 110592, end: 110959 },
|
|
338
|
+
{ start: 127488, end: 127743 },
|
|
339
|
+
{ start: 127744, end: 129791 },
|
|
340
|
+
{ start: 131072, end: 262141 }
|
|
341
|
+
];
|
|
342
|
+
function inRanges(codePoint, ranges) {
|
|
343
|
+
for (const range of ranges) {
|
|
344
|
+
if (codePoint >= range.start && codePoint <= range.end) {
|
|
345
|
+
return true;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
function charWidth(codePoint) {
|
|
351
|
+
if (codePoint === 0)
|
|
352
|
+
return 0;
|
|
353
|
+
if (codePoint < 32)
|
|
354
|
+
return 0;
|
|
355
|
+
if (codePoint >= 127 && codePoint <= 159)
|
|
356
|
+
return 0;
|
|
357
|
+
if (inRanges(codePoint, ZERO_WIDTH_RANGES))
|
|
358
|
+
return 0;
|
|
359
|
+
if (inRanges(codePoint, WIDE_RANGES))
|
|
360
|
+
return 2;
|
|
361
|
+
return 1;
|
|
362
|
+
}
|
|
363
|
+
function stringWidth(text) {
|
|
364
|
+
let total = 0;
|
|
365
|
+
for (const char of text) {
|
|
366
|
+
const codePoint = char.codePointAt(0);
|
|
367
|
+
if (codePoint === undefined)
|
|
368
|
+
continue;
|
|
369
|
+
total += charWidth(codePoint);
|
|
370
|
+
}
|
|
371
|
+
return total;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// packages/shared-skills/skills/visual-qa/scripts/tui-grid.ts
|
|
375
|
+
var BOX_DRAWING_START = 9472;
|
|
376
|
+
var BOX_DRAWING_END = 9599;
|
|
377
|
+
var MAX_WIDE_COLUMNS = 64;
|
|
378
|
+
function splitLines(text) {
|
|
379
|
+
const lines = text.split(/\r?\n/);
|
|
380
|
+
if (lines.length > 1 && lines[lines.length - 1] === "")
|
|
381
|
+
lines.pop();
|
|
382
|
+
return lines;
|
|
383
|
+
}
|
|
384
|
+
function isFrameLine(plain) {
|
|
385
|
+
for (const char of plain) {
|
|
386
|
+
const codePoint = char.codePointAt(0);
|
|
387
|
+
if (codePoint !== undefined && codePoint >= BOX_DRAWING_START && codePoint <= BOX_DRAWING_END) {
|
|
388
|
+
return true;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return false;
|
|
392
|
+
}
|
|
393
|
+
function wideStartColumns(plain) {
|
|
394
|
+
const columns = [];
|
|
395
|
+
let column = 0;
|
|
396
|
+
for (const char of plain) {
|
|
397
|
+
const codePoint = char.codePointAt(0);
|
|
398
|
+
if (codePoint === undefined)
|
|
399
|
+
continue;
|
|
400
|
+
const width = charWidth(codePoint);
|
|
401
|
+
if (width === 2)
|
|
402
|
+
columns.push(column);
|
|
403
|
+
column += width;
|
|
404
|
+
}
|
|
405
|
+
return columns;
|
|
406
|
+
}
|
|
407
|
+
function summarize(lineCount, maxWidth, expectedColumns, overflowCount, borderMisaligned, containsAnsi) {
|
|
408
|
+
const parts = [`${lineCount} line(s)`, `max width ${maxWidth}/${expectedColumns}`];
|
|
409
|
+
if (overflowCount > 0)
|
|
410
|
+
parts.push(`${overflowCount} overflow line(s)`);
|
|
411
|
+
if (borderMisaligned)
|
|
412
|
+
parts.push("borders misaligned");
|
|
413
|
+
if (containsAnsi)
|
|
414
|
+
parts.push("contains ANSI");
|
|
415
|
+
return `${parts.join("; ")}.`;
|
|
416
|
+
}
|
|
417
|
+
function checkTui(text, expectedColumns) {
|
|
418
|
+
const lines = splitLines(text);
|
|
419
|
+
const lineWidths = [];
|
|
420
|
+
const overflowLines = [];
|
|
421
|
+
const wideColumns = new Set;
|
|
422
|
+
const frameWidths = new Set;
|
|
423
|
+
for (let index = 0;index < lines.length; index++) {
|
|
424
|
+
const plain = stripAnsi(lines[index] ?? "");
|
|
425
|
+
const width = stringWidth(plain);
|
|
426
|
+
lineWidths.push(width);
|
|
427
|
+
if (expectedColumns > 0 && width > expectedColumns) {
|
|
428
|
+
overflowLines.push({ line: index + 1, width });
|
|
429
|
+
}
|
|
430
|
+
if (isFrameLine(plain))
|
|
431
|
+
frameWidths.add(width);
|
|
432
|
+
for (const column of wideStartColumns(plain)) {
|
|
433
|
+
if (wideColumns.size < MAX_WIDE_COLUMNS)
|
|
434
|
+
wideColumns.add(column);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
const maxWidth = lineWidths.reduce((max, width) => width > max ? width : max, 0);
|
|
438
|
+
const borderMisaligned = frameWidths.size > 1;
|
|
439
|
+
const containsAnsi = hasAnsi(text);
|
|
440
|
+
return {
|
|
441
|
+
command: "tui-check",
|
|
442
|
+
expectedColumns,
|
|
443
|
+
lineCount: lines.length,
|
|
444
|
+
lineWidths,
|
|
445
|
+
maxWidth,
|
|
446
|
+
overflowLines,
|
|
447
|
+
borderMisaligned,
|
|
448
|
+
wideCharColumns: [...wideColumns].sort((a, b) => a - b),
|
|
449
|
+
hasAnsi: containsAnsi,
|
|
450
|
+
summary: summarize(lines.length, maxWidth, expectedColumns, overflowLines.length, borderMisaligned, containsAnsi)
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// packages/shared-skills/skills/visual-qa/scripts/cli.ts
|
|
455
|
+
class CliError extends Error {
|
|
456
|
+
name = "CliError";
|
|
457
|
+
}
|
|
458
|
+
var DEFAULT_COLUMNS = 80;
|
|
459
|
+
var COLS_FLAG = "--cols";
|
|
460
|
+
function runImageDiff(args) {
|
|
461
|
+
const referencePath = args[0];
|
|
462
|
+
const actualPath = args[1];
|
|
463
|
+
if (referencePath === undefined || actualPath === undefined) {
|
|
464
|
+
throw new CliError("usage: image-diff <reference.png> <actual.png>");
|
|
465
|
+
}
|
|
466
|
+
const reference = decodePng(readFileSync(referencePath));
|
|
467
|
+
const actual = decodePng(readFileSync(actualPath));
|
|
468
|
+
return diffImages(reference, actual);
|
|
469
|
+
}
|
|
470
|
+
function parseColumns(args) {
|
|
471
|
+
for (let index = 0;index < args.length; index++) {
|
|
472
|
+
const arg = args[index] ?? "";
|
|
473
|
+
if (arg === COLS_FLAG) {
|
|
474
|
+
const parsed = Number(args[index + 1]);
|
|
475
|
+
if (!Number.isInteger(parsed) || parsed <= 0) {
|
|
476
|
+
throw new CliError(`${COLS_FLAG} requires a positive integer`);
|
|
477
|
+
}
|
|
478
|
+
return parsed;
|
|
479
|
+
}
|
|
480
|
+
if (arg.startsWith(`${COLS_FLAG}=`)) {
|
|
481
|
+
const parsed = Number(arg.slice(COLS_FLAG.length + 1));
|
|
482
|
+
if (!Number.isInteger(parsed) || parsed <= 0) {
|
|
483
|
+
throw new CliError(`${COLS_FLAG} requires a positive integer`);
|
|
484
|
+
}
|
|
485
|
+
return parsed;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
return DEFAULT_COLUMNS;
|
|
489
|
+
}
|
|
490
|
+
function runTuiCheck(args) {
|
|
491
|
+
const capturePath = args[0];
|
|
492
|
+
if (capturePath === undefined || capturePath.startsWith("--")) {
|
|
493
|
+
throw new CliError("usage: tui-check <capture.txt> [--cols N]");
|
|
494
|
+
}
|
|
495
|
+
const text = readFileSync(capturePath, "utf8");
|
|
496
|
+
return checkTui(text, parseColumns(args.slice(1)));
|
|
497
|
+
}
|
|
498
|
+
function run(argv) {
|
|
499
|
+
const command = argv[0];
|
|
500
|
+
const rest = argv.slice(1);
|
|
501
|
+
switch (command) {
|
|
502
|
+
case "image-diff":
|
|
503
|
+
return runImageDiff(rest);
|
|
504
|
+
case "tui-check":
|
|
505
|
+
return runTuiCheck(rest);
|
|
506
|
+
default:
|
|
507
|
+
throw new CliError(`unknown command "${command ?? ""}"; expected "image-diff" or "tui-check"`);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
function main(argv) {
|
|
511
|
+
try {
|
|
512
|
+
const result = run(argv);
|
|
513
|
+
process.stdout.write(`${JSON.stringify(result, null, 2)}
|
|
514
|
+
`);
|
|
515
|
+
} catch (error) {
|
|
516
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
517
|
+
process.stderr.write(`visual-qa error: ${message}
|
|
518
|
+
`);
|
|
519
|
+
process.exitCode = 1;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
if (__require.main == __require.module) {
|
|
523
|
+
main(process.argv.slice(2));
|
|
524
|
+
}
|
|
525
|
+
export {
|
|
526
|
+
runTuiCheck,
|
|
527
|
+
runImageDiff,
|
|
528
|
+
run,
|
|
529
|
+
CliError
|
|
530
|
+
};
|
|
@@ -107,6 +107,7 @@ test("#given aggregate hook commands #when inspected #then commands stay Node-ba
|
|
|
107
107
|
// then
|
|
108
108
|
assert(!commands.some((command) => /\bpython3?\b/i.test(command)));
|
|
109
109
|
assert(commands.includes('node "${PLUGIN_ROOT}/components/ultrawork/dist/cli.js" hook user-prompt-submit'));
|
|
110
|
+
assert(!commands.some((command) => command.includes("components/workflow-selector/")));
|
|
110
111
|
assert(commands.every((command) => command.startsWith("node ")));
|
|
111
112
|
assert(commands.every((command) => !command.includes("\\")));
|
|
112
113
|
});
|
|
@@ -160,6 +161,28 @@ test("#given aggregate OMO plugin is enabled #when hooks are inspected #then she
|
|
|
160
161
|
assert.deepEqual(preToolUseGroups.map((group) => group.matcher), ["^Bash$", "^create_goal$"]);
|
|
161
162
|
});
|
|
162
163
|
|
|
164
|
+
test("#given aggregate OMO plugin has a dedicated ultrawork trigger #when hooks are inspected #then ulw-loop does not duplicate ultrawork injection", async () => {
|
|
165
|
+
// given
|
|
166
|
+
const commandHooks = await readAggregateCommandHooks();
|
|
167
|
+
|
|
168
|
+
// when
|
|
169
|
+
const ulwLoopUserPromptHooks = commandHooks.filter(
|
|
170
|
+
(hook) =>
|
|
171
|
+
hook.eventName === "UserPromptSubmit" &&
|
|
172
|
+
hook.handler.command === 'node "${PLUGIN_ROOT}/components/ulw-loop/dist/cli.js" hook user-prompt-submit',
|
|
173
|
+
);
|
|
174
|
+
const ultraworkUserPromptHooks = commandHooks.filter(
|
|
175
|
+
(hook) =>
|
|
176
|
+
hook.eventName === "UserPromptSubmit" &&
|
|
177
|
+
hook.handler.command === 'node "${PLUGIN_ROOT}/components/ultrawork/dist/cli.js" hook user-prompt-submit',
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
// then
|
|
181
|
+
assert.equal(ulwLoopUserPromptHooks.length, 1);
|
|
182
|
+
assert.equal(ultraworkUserPromptHooks.length, 1);
|
|
183
|
+
assert(ulwLoopUserPromptHooks.every((hook) => !hook.handler.command.includes("--with-ultrawork")));
|
|
184
|
+
});
|
|
185
|
+
|
|
163
186
|
test("#given aggregate SessionStart hooks #when inspected #then LazyCodex auto-update is registered", async () => {
|
|
164
187
|
// given
|
|
165
188
|
const manifests = await readAggregateHookManifests();
|
|
@@ -20,6 +20,7 @@ test("#given aggregate plugin manifest #when inspected #then it owns the omo nam
|
|
|
20
20
|
assert.equal(hookPaths.length, 21);
|
|
21
21
|
assert(hookPaths.every((hookPath) => typeof hookPath === "string" && hookPath.startsWith("./hooks/")));
|
|
22
22
|
assert(!hookPaths.includes("./hooks/hooks.json"));
|
|
23
|
+
assert(!hookPaths.includes("./hooks/user-prompt-submit-selecting-lazycodex-workflow.json"));
|
|
23
24
|
assert.equal(skillsPath, "./skills/");
|
|
24
25
|
assert.equal(mcpPath, "./.mcp.json");
|
|
25
26
|
});
|
|
@@ -14,6 +14,7 @@ function autoUpdateEnv(root, extra = {}) {
|
|
|
14
14
|
LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json"),
|
|
15
15
|
LAZYCODEX_AUTO_UPDATE_STATE_PATH: join(root, "state.json"),
|
|
16
16
|
LAZYCODEX_AUTO_UPDATE_LOG_PATH: join(root, "auto-update.log"),
|
|
17
|
+
LAZYCODEX_CONFIG_MIGRATION_DISABLED: "1",
|
|
17
18
|
...extra,
|
|
18
19
|
};
|
|
19
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import assert from "node:assert/strict";
|
|
2
2
|
import { spawnSync } from "node:child_process";
|
|
3
|
-
import { mkdtemp, readFile, writeFile } from "node:fs/promises";
|
|
3
|
+
import { mkdir, mkdtemp, readFile, writeFile } from "node:fs/promises";
|
|
4
4
|
import { tmpdir } from "node:os";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import test from "node:test";
|
|
@@ -20,6 +20,7 @@ function autoUpdateEnv(root, extra = {}) {
|
|
|
20
20
|
LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json"),
|
|
21
21
|
LAZYCODEX_AUTO_UPDATE_STATE_PATH: join(root, "state.json"),
|
|
22
22
|
LAZYCODEX_AUTO_UPDATE_LOG_PATH: join(root, "auto-update.log"),
|
|
23
|
+
LAZYCODEX_CONFIG_MIGRATION_DISABLED: "1",
|
|
23
24
|
...extra,
|
|
24
25
|
};
|
|
25
26
|
}
|
|
@@ -47,6 +48,28 @@ test("#given a newer version #when resolving auto update plan #then plan carries
|
|
|
47
48
|
assert.equal(plan.latestVersion, "1.0.1");
|
|
48
49
|
});
|
|
49
50
|
|
|
51
|
+
test("#given SessionStart migration removes unsupported root multi-agent mode #when startup check runs #then emits cleanup notice", async () => {
|
|
52
|
+
const root = await mkdtemp(join(tmpdir(), "lazycodex-root-mode-cleanup-notice-"));
|
|
53
|
+
const env = autoUpdateEnv(root, {
|
|
54
|
+
LAZYCODEX_CURRENT_VERSION: "1.0.1",
|
|
55
|
+
LAZYCODEX_LATEST_VERSION: "1.0.1",
|
|
56
|
+
LAZYCODEX_CONFIG_MIGRATION_DISABLED: "0",
|
|
57
|
+
});
|
|
58
|
+
await mkdir(env.CODEX_HOME, { recursive: true });
|
|
59
|
+
await writeFile(join(env.CODEX_HOME, "config.toml"), ['multi_agent_mode = "queue"', ""].join("\n"));
|
|
60
|
+
|
|
61
|
+
const result = await runAutoUpdateCheck({ env, now: 90_000_000 });
|
|
62
|
+
|
|
63
|
+
assert.equal(result.started, false);
|
|
64
|
+
assert.equal(result.reason, "up-to-date");
|
|
65
|
+
assert.equal(result.notices.length, 1);
|
|
66
|
+
assert.match(result.notices[0], /multi_agent_mode/);
|
|
67
|
+
assert.match(result.notices[0], /Removed unsupported Codex root/);
|
|
68
|
+
assert.match(result.notices[0], /per-turn multiAgentMode API/);
|
|
69
|
+
const config = await readFile(join(env.CODEX_HOME, "config.toml"), "utf8");
|
|
70
|
+
assert.doesNotMatch(config, /^\s*multi_agent_mode\s*=/m);
|
|
71
|
+
});
|
|
72
|
+
|
|
50
73
|
test("#given a newer version #when waited update succeeds #then returns update-started notice and persists pendingNotice", async () => {
|
|
51
74
|
const root = await mkdtemp(join(tmpdir(), "lazycodex-restart-notice-started-"));
|
|
52
75
|
const env = autoUpdateEnv(root, {
|