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
package/dist/cli/sparkshell.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type RuntimeEnv, type SparkShellAppServerClient, type SparkShellAppServerCommand, type SparkShellAppServerResult } from "./sparkshell-appserver";
|
|
2
|
-
import { type SessionContextDetails } from "./sparkshell-session-context";
|
|
3
|
-
import { type SparkSummarizer } from "./sparkshell-spark";
|
|
4
|
-
export declare const SPARKSHELL_BIN_ENV = "OMO_SPARKSHELL_BIN";
|
|
5
|
-
export declare const SPARKSHELL_CONDENSE_ENV = "OMO_SPARKSHELL_CONDENSE";
|
|
6
|
-
export declare const SPARKSHELL_CONDENSE_BUDGET_ENV = "OMO_SPARKSHELL_CONDENSE_BUDGET";
|
|
7
|
-
export type { SparkShellAppServerClient, SparkShellAppServerCommand, SparkShellAppServerResult };
|
|
8
|
-
export { parseSparkShellFallbackInvocation, parseTopLevelSparkShellBudget, resolveFallbackShellArgv, SPARKSHELL_USAGE, } from "./sparkshell-parse";
|
|
9
|
-
export { DEFAULT_SPARK_MODEL, SPARKSHELL_SPARK_BIN_ENV, SPARKSHELL_SPARK_ENV, SPARKSHELL_SPARK_MODEL_ENV, SPARKSHELL_SPARK_TIMEOUT_ENV, type SparkSummarizer, type SparkSummaryRequest, } from "./sparkshell-spark";
|
|
10
|
-
export type SparkShellSpawnResult = {
|
|
11
|
-
readonly status?: number | null;
|
|
12
|
-
readonly signal?: string | null;
|
|
13
|
-
readonly stdout?: string;
|
|
14
|
-
readonly stderr?: string;
|
|
15
|
-
readonly error?: Error;
|
|
16
|
-
};
|
|
17
|
-
export type SparkShellSpawn = (command: string, args: readonly string[], options: {
|
|
18
|
-
readonly cwd: string;
|
|
19
|
-
readonly env: RuntimeEnv;
|
|
20
|
-
}) => SparkShellSpawnResult;
|
|
21
|
-
export type SparkShellRunOptions = {
|
|
22
|
-
readonly cwd?: string;
|
|
23
|
-
readonly env?: RuntimeEnv;
|
|
24
|
-
readonly platform?: NodeJS.Platform;
|
|
25
|
-
readonly spawn?: SparkShellSpawn;
|
|
26
|
-
readonly writeStdout?: (value: string) => void;
|
|
27
|
-
readonly writeStderr?: (value: string) => void;
|
|
28
|
-
readonly commandExists?: (command: string) => boolean;
|
|
29
|
-
readonly appServerClient?: SparkShellAppServerClient | null;
|
|
30
|
-
readonly loadSessionContext?: (env: RuntimeEnv) => SessionContextDetails | null;
|
|
31
|
-
readonly sparkSummarize?: SparkSummarizer | null;
|
|
32
|
-
};
|
|
33
|
-
export declare function runSparkShell(args: readonly string[], options?: SparkShellRunOptions): Promise<number>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type RuntimeEnv = Readonly<Record<string, string | undefined>>;
|
|
2
|
-
export declare function isCodexAppServerActive(env?: RuntimeEnv): boolean;
|
|
3
|
-
export declare function getSparkShellRuntimeAwareness(env?: RuntimeEnv): string;
|
|
4
|
-
export declare function hasSparkShellRuntimeAwareness(value: string): boolean;
|
|
5
|
-
export {};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { existsSync } from "node:fs";
|
|
2
|
-
import { join } from "node:path";
|
|
3
|
-
|
|
4
|
-
type RuntimeEnv = Readonly<Record<string, string | undefined>>;
|
|
5
|
-
|
|
6
|
-
interface OmoResolutionDeps {
|
|
7
|
-
readonly fileExists?: (path: string) => boolean;
|
|
8
|
-
readonly platform?: NodeJS.Platform;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const SPARKSHELL_AWARENESS_MARKER = "## Sparkshell Runtime";
|
|
12
|
-
|
|
13
|
-
export const SPARKSHELL_AWARENESS_DEDUP_KEY = "__omo_sparkshell_awareness__";
|
|
14
|
-
|
|
15
|
-
export function isCodexAppServerActive(env: RuntimeEnv = process.env): boolean {
|
|
16
|
-
const originator = env["CODEX_INTERNAL_ORIGINATOR_OVERRIDE"]?.toLowerCase() ?? "";
|
|
17
|
-
const bundleIdentifier = env["__CFBundleIdentifier"]?.toLowerCase() ?? "";
|
|
18
|
-
const shellActive = isTruthy(env["CODEX_SHELL"]);
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
shellActive &&
|
|
22
|
-
(originator.includes("codex desktop") ||
|
|
23
|
-
originator.includes("codex app") ||
|
|
24
|
-
bundleIdentifier === "com.openai.codex")
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function isSparkShellAppServerConfigured(env: RuntimeEnv = process.env): boolean {
|
|
29
|
-
const codexSocketPath = env["CODEX_APP_SERVER_SOCKET"]?.trim() ?? "";
|
|
30
|
-
const omoSocketPath = env["OMO_SPARKSHELL_APP_SERVER_SOCKET"]?.trim() ?? "";
|
|
31
|
-
return codexSocketPath.length > 0 || omoSocketPath.length > 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function resolveOmoInvocation(env: RuntimeEnv = process.env, deps: OmoResolutionDeps = {}): string | null {
|
|
35
|
-
const fileExists = deps.fileExists ?? existsSync;
|
|
36
|
-
const platform = deps.platform ?? process.platform;
|
|
37
|
-
const binNames = platform === "win32" ? ["omo.cmd", "omo.exe", "omo"] : ["omo"];
|
|
38
|
-
const pathDelimiter = platform === "win32" ? ";" : ":";
|
|
39
|
-
const pathEntries = (env["PATH"] ?? "").split(pathDelimiter).filter((entry) => entry.trim().length > 0);
|
|
40
|
-
for (const pathEntry of pathEntries) {
|
|
41
|
-
for (const binName of binNames) {
|
|
42
|
-
if (fileExists(join(pathEntry, binName))) return "omo";
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
for (const candidateDir of omoCandidateBinDirs(env)) {
|
|
46
|
-
for (const binName of binNames) {
|
|
47
|
-
const candidate = join(candidateDir, binName);
|
|
48
|
-
if (fileExists(candidate)) return candidate;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function omoCandidateBinDirs(env: RuntimeEnv): readonly string[] {
|
|
55
|
-
const dirs: string[] = [];
|
|
56
|
-
const localBinDir = env["CODEX_LOCAL_BIN_DIR"]?.trim() ?? "";
|
|
57
|
-
if (localBinDir.length > 0) dirs.push(localBinDir);
|
|
58
|
-
const home = env["HOME"]?.trim() || env["USERPROFILE"]?.trim() || "";
|
|
59
|
-
const codexHome = env["CODEX_HOME"]?.trim() || (home.length > 0 ? join(home, ".codex") : "");
|
|
60
|
-
if (codexHome.length > 0) dirs.push(join(codexHome, "bin"));
|
|
61
|
-
if (home.length > 0) dirs.push(join(home, ".local", "bin"));
|
|
62
|
-
return dirs;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function getSparkShellRuntimeAwareness(env: RuntimeEnv = process.env, deps: OmoResolutionDeps = {}): string {
|
|
66
|
-
const override = env["OMO_SPARKSHELL_AWARENESS"] ?? env["LAZYCODEX_SPARKSHELL_AWARENESS"];
|
|
67
|
-
if (isFalsy(override)) {
|
|
68
|
-
return "";
|
|
69
|
-
}
|
|
70
|
-
if (!isTruthy(override) && !isCodexAppServerActive(env) && !isSparkShellAppServerConfigured(env)) {
|
|
71
|
-
return "";
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const resolved = resolveOmoInvocation(env, deps);
|
|
75
|
-
const invocation = resolved ?? (isTruthy(override) ? "omo" : null);
|
|
76
|
-
if (invocation === null) {
|
|
77
|
-
return "";
|
|
78
|
-
}
|
|
79
|
-
const command = /\s/.test(invocation) ? `"${invocation}"` : invocation;
|
|
80
|
-
|
|
81
|
-
return [
|
|
82
|
-
SPARKSHELL_AWARENESS_MARKER,
|
|
83
|
-
"",
|
|
84
|
-
`- Use \`${command} sparkshell <command>\` first for repo inspection, CLI smoke tests, git/history checks, and bounded command output. Raw \`rg\`/\`grep\`/\`cat\`/\`git\` are fallbacks when Sparkshell is unavailable or too narrow for the task.`,
|
|
85
|
-
`- Use \`${command} sparkshell --shell '<command>'\` only for shell metacharacters or pipelines.`,
|
|
86
|
-
`- Use \`${command} sparkshell --tmux-pane <pane-id> --tail-lines 400\` only to inspect an existing pane, never to launch ordinary commands. Tail lines must stay between 100 and 1000.`,
|
|
87
|
-
"- When no native sidecar or appserver is available, Sparkshell silently falls back to raw command execution. `OMO_SPARKSHELL_BIN` selects a native sidecar path.",
|
|
88
|
-
"- When `CODEX_THREAD_ID` identifies a Codex session, Sparkshell feeds recent session context (first/latest user request + last 5 conversation messages) into oversized-output condensation for relevance ranking, but never appends that context to command output. `OMO_SPARKSHELL_SESSION_CONTEXT=0` disables the lookup.",
|
|
89
|
-
`- Route potentially huge output (full log files, big diffs, \`cat\`/\`grep\` over large artifacts) through \`${command} sparkshell\` instead of reading it raw: oversized output is condensed to a budget while preserving error signatures, repeated patterns, session-goal-relevant lines, and head/tail. Tune with \`--budget <chars>\`; disable with \`OMO_SPARKSHELL_CONDENSE=0\`.`,
|
|
90
|
-
"- Oversized output is first summarized by the spark model (`codex exec`, default `gpt-5.3-codex-spark`) fed with the shell output plus session context: the summary keeps selected output as-is (no masking) and ends with a `[sparkshell caption]` line describing what ran, what the full output contained, and which lines were omitted. `OMO_SPARKSHELL_SPARK=0` skips the model and uses deterministic condensation directly.",
|
|
91
|
-
].join("\n");
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function isTruthy(value: string | undefined): boolean {
|
|
95
|
-
if (value === undefined) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
return ["1", "true", "yes", "on"].includes(value.trim().toLowerCase());
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function isFalsy(value: string | undefined): boolean {
|
|
102
|
-
if (value === undefined) {
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
return ["0", "false", "no", "off"].includes(value.trim().toLowerCase());
|
|
106
|
-
}
|
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
2
|
-
import { tmpdir } from "node:os";
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
-
|
|
5
|
-
import { afterAll, describe, expect, it } from "vitest";
|
|
6
|
-
|
|
7
|
-
import { runSessionStartHook, runUserPromptSubmitHook } from "../src/codex-hook.js";
|
|
8
|
-
import { formatAdditionalContextOutput } from "../src/hook-output.js";
|
|
9
|
-
|
|
10
|
-
type HookOutput = {
|
|
11
|
-
readonly hookSpecificOutput?: {
|
|
12
|
-
readonly additionalContext?: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
function parseAdditionalContext(output: string): string {
|
|
17
|
-
expect(output.trim().length).toBeGreaterThan(0);
|
|
18
|
-
const parsed = parseHookOutput(JSON.parse(output));
|
|
19
|
-
return parsed.hookSpecificOutput?.additionalContext ?? "";
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function normalizeGuidance(value: string): string {
|
|
23
|
-
return value.toLowerCase().replace(/\s+/g, " ").trim();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function expectSparkshellFirstContract(value: string): void {
|
|
27
|
-
const guidance = normalizeGuidance(value);
|
|
28
|
-
|
|
29
|
-
expect(guidance).toMatch(/`omo sparkshell <command>`[^.]*\bfirst\b/);
|
|
30
|
-
expect(guidance).toMatch(/\brepo inspection\b/);
|
|
31
|
-
expect(guidance).toMatch(/\bcli smoke tests\b/);
|
|
32
|
-
expect(guidance).toMatch(/\bgit\/history checks\b/);
|
|
33
|
-
expect(guidance).toMatch(/\bbounded command output\b/);
|
|
34
|
-
expect(guidance).toMatch(/\braw\b[^.]*`rg`\/`grep`\/`cat`\/`git`[^.]*\bfallbacks?\b/);
|
|
35
|
-
expect(guidance).toMatch(/\bsparkshell is unavailable\b/);
|
|
36
|
-
expect(guidance).toMatch(/\btoo narrow\b/);
|
|
37
|
-
expect(guidance).toMatch(/`omo sparkshell --shell '<command>'`[^.]*\bmetacharacters\b[^.]*\bpipelines\b/);
|
|
38
|
-
expect(guidance).toMatch(
|
|
39
|
-
/`omo sparkshell --tmux-pane <pane-id> --tail-lines 400`[^.]*\bonly\b[^.]*\binspect\b[^.]*\bexisting pane\b/,
|
|
40
|
-
);
|
|
41
|
-
expect(guidance).toMatch(/`omo sparkshell --tmux-pane <pane-id> --tail-lines 400`[^.]*\bnever\b[^.]*\blaunch ordinary commands\b/);
|
|
42
|
-
expect(guidance).not.toMatch(/\bprefer\b[^.]*\bbefore raw shell commands\b/);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function parseHookOutput(value: unknown): HookOutput {
|
|
46
|
-
if (typeof value !== "object" || value === null) {
|
|
47
|
-
return {};
|
|
48
|
-
}
|
|
49
|
-
const record = value;
|
|
50
|
-
if (!("hookSpecificOutput" in record)) {
|
|
51
|
-
return {};
|
|
52
|
-
}
|
|
53
|
-
const hookSpecificOutput = record.hookSpecificOutput;
|
|
54
|
-
if (typeof hookSpecificOutput !== "object" || hookSpecificOutput === null) {
|
|
55
|
-
return {};
|
|
56
|
-
}
|
|
57
|
-
if (!("additionalContext" in hookSpecificOutput)) {
|
|
58
|
-
return { hookSpecificOutput: {} };
|
|
59
|
-
}
|
|
60
|
-
const additionalContext = hookSpecificOutput.additionalContext;
|
|
61
|
-
if (typeof additionalContext !== "string") {
|
|
62
|
-
return { hookSpecificOutput: {} };
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
hookSpecificOutput: {
|
|
66
|
-
additionalContext,
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const fixtureRoot = mkdtempSync(join(tmpdir(), "codex-sparkshell-omo-bin-"));
|
|
72
|
-
const omoOnPathDir = join(fixtureRoot, "path-bin");
|
|
73
|
-
const emptyHomeDir = join(fixtureRoot, "empty-home");
|
|
74
|
-
const localBinHomeDir = join(fixtureRoot, "local-bin-home");
|
|
75
|
-
mkdirSync(omoOnPathDir, { recursive: true });
|
|
76
|
-
mkdirSync(emptyHomeDir, { recursive: true });
|
|
77
|
-
mkdirSync(join(localBinHomeDir, ".local", "bin"), { recursive: true });
|
|
78
|
-
writeFileSync(join(omoOnPathDir, "omo"), "#!/bin/sh\n");
|
|
79
|
-
writeFileSync(join(localBinHomeDir, ".local", "bin", "omo"), "#!/bin/sh\n");
|
|
80
|
-
|
|
81
|
-
describe("Codex Sparkshell awareness", () => {
|
|
82
|
-
afterAll(() => {
|
|
83
|
-
rmSync(fixtureRoot, { recursive: true, force: true });
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
it("#given active Codex app server env with omo on PATH #when SessionStart runs #then emits Sparkshell guidance", async () => {
|
|
87
|
-
// given
|
|
88
|
-
const env = {
|
|
89
|
-
CODEX_INTERNAL_ORIGINATOR_OVERRIDE: "Codex Desktop",
|
|
90
|
-
CODEX_SHELL: "1",
|
|
91
|
-
CODEX_RULES_ENABLED_SOURCES: ".omo/rules",
|
|
92
|
-
PATH: omoOnPathDir,
|
|
93
|
-
HOME: emptyHomeDir,
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
// when
|
|
97
|
-
const output = await runSessionStartHook(
|
|
98
|
-
{
|
|
99
|
-
session_id: "session-sparkshell-active",
|
|
100
|
-
transcript_path: null,
|
|
101
|
-
cwd: process.cwd(),
|
|
102
|
-
hook_event_name: "SessionStart",
|
|
103
|
-
model: "gpt-5.5",
|
|
104
|
-
permission_mode: "default",
|
|
105
|
-
source: "startup",
|
|
106
|
-
},
|
|
107
|
-
{ env },
|
|
108
|
-
);
|
|
109
|
-
|
|
110
|
-
// then
|
|
111
|
-
const context = parseAdditionalContext(output);
|
|
112
|
-
expectSparkshellFirstContract(context);
|
|
113
|
-
expect(context).toContain("OMO_SPARKSHELL_SESSION_CONTEXT");
|
|
114
|
-
expect(context).toContain("OMO_SPARKSHELL_CONDENSE");
|
|
115
|
-
expect(context).toContain("OMO_SPARKSHELL_SPARK");
|
|
116
|
-
expect(context).toContain("[sparkshell caption]");
|
|
117
|
-
expect(context).toContain("never appends that context to command output");
|
|
118
|
-
expect(context).toContain("what the full output contained");
|
|
119
|
-
expect(context).not.toContain("[REDACTED]");
|
|
120
|
-
expect(context).not.toContain("appends recent session context");
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
it("#given inactive env #when SessionStart runs #then emits no Sparkshell guidance", async () => {
|
|
124
|
-
// given
|
|
125
|
-
const env = {
|
|
126
|
-
CODEX_RULES_ENABLED_SOURCES: ".omo/rules",
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// when
|
|
130
|
-
const output = await runSessionStartHook(
|
|
131
|
-
{
|
|
132
|
-
session_id: "session-sparkshell-inactive",
|
|
133
|
-
transcript_path: null,
|
|
134
|
-
cwd: process.cwd(),
|
|
135
|
-
hook_event_name: "SessionStart",
|
|
136
|
-
model: "gpt-5.5",
|
|
137
|
-
permission_mode: "default",
|
|
138
|
-
source: "startup",
|
|
139
|
-
},
|
|
140
|
-
{ env },
|
|
141
|
-
);
|
|
142
|
-
|
|
143
|
-
// then
|
|
144
|
-
expect(output).toBe("");
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
it("#given Codex CLI appserver socket env #when SessionStart runs #then emits Sparkshell guidance", async () => {
|
|
148
|
-
// given
|
|
149
|
-
const env = {
|
|
150
|
-
OMO_SPARKSHELL_APP_SERVER_SOCKET: "/tmp/app-server-control.sock",
|
|
151
|
-
CODEX_THREAD_ID: "thread-sparkshell-cli",
|
|
152
|
-
CODEX_RULES_ENABLED_SOURCES: ".omo/rules",
|
|
153
|
-
PATH: omoOnPathDir,
|
|
154
|
-
HOME: emptyHomeDir,
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
// when
|
|
158
|
-
const output = await runSessionStartHook(
|
|
159
|
-
{
|
|
160
|
-
session_id: "session-sparkshell-cli-wrapper",
|
|
161
|
-
transcript_path: null,
|
|
162
|
-
cwd: process.cwd(),
|
|
163
|
-
hook_event_name: "SessionStart",
|
|
164
|
-
model: "gpt-5.5",
|
|
165
|
-
permission_mode: "default",
|
|
166
|
-
source: "startup",
|
|
167
|
-
},
|
|
168
|
-
{ env },
|
|
169
|
-
);
|
|
170
|
-
|
|
171
|
-
// then
|
|
172
|
-
expect(parseAdditionalContext(output)).toContain("omo sparkshell <command>");
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
it("#given active Codex app env without a resolvable omo command #when SessionStart runs #then emits no Sparkshell guidance", async () => {
|
|
176
|
-
// given
|
|
177
|
-
const env = {
|
|
178
|
-
CODEX_INTERNAL_ORIGINATOR_OVERRIDE: "Codex Desktop",
|
|
179
|
-
CODEX_SHELL: "1",
|
|
180
|
-
CODEX_RULES_ENABLED_SOURCES: ".omo/rules",
|
|
181
|
-
PATH: join(fixtureRoot, "missing-path-entry"),
|
|
182
|
-
HOME: emptyHomeDir,
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
// when
|
|
186
|
-
const output = await runSessionStartHook(
|
|
187
|
-
{
|
|
188
|
-
session_id: "session-sparkshell-unresolvable",
|
|
189
|
-
transcript_path: null,
|
|
190
|
-
cwd: process.cwd(),
|
|
191
|
-
hook_event_name: "SessionStart",
|
|
192
|
-
model: "gpt-5.5",
|
|
193
|
-
permission_mode: "default",
|
|
194
|
-
source: "startup",
|
|
195
|
-
},
|
|
196
|
-
{ env },
|
|
197
|
-
);
|
|
198
|
-
|
|
199
|
-
// then
|
|
200
|
-
expect(output).toBe("");
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
it("#given omo only under HOME/.local/bin #when SessionStart runs #then emits guidance with the absolute omo path", async () => {
|
|
204
|
-
// given
|
|
205
|
-
const env = {
|
|
206
|
-
CODEX_INTERNAL_ORIGINATOR_OVERRIDE: "Codex Desktop",
|
|
207
|
-
CODEX_SHELL: "1",
|
|
208
|
-
CODEX_RULES_ENABLED_SOURCES: ".omo/rules",
|
|
209
|
-
PATH: join(fixtureRoot, "missing-path-entry"),
|
|
210
|
-
HOME: localBinHomeDir,
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
// when
|
|
214
|
-
const output = await runSessionStartHook(
|
|
215
|
-
{
|
|
216
|
-
session_id: "session-sparkshell-local-bin",
|
|
217
|
-
transcript_path: null,
|
|
218
|
-
cwd: process.cwd(),
|
|
219
|
-
hook_event_name: "SessionStart",
|
|
220
|
-
model: "gpt-5.5",
|
|
221
|
-
permission_mode: "default",
|
|
222
|
-
source: "startup",
|
|
223
|
-
},
|
|
224
|
-
{ env },
|
|
225
|
-
);
|
|
226
|
-
|
|
227
|
-
// then
|
|
228
|
-
const context = parseAdditionalContext(output);
|
|
229
|
-
expect(context).toContain(`${join(localBinHomeDir, ".local", "bin", "omo")} sparkshell <command>`);
|
|
230
|
-
expect(context).not.toContain("`omo sparkshell <command>`");
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
it("#given explicit force-on env #when SessionStart runs #then emits Sparkshell guidance", async () => {
|
|
234
|
-
// given
|
|
235
|
-
const env = {
|
|
236
|
-
OMO_SPARKSHELL_AWARENESS: "1",
|
|
237
|
-
CODEX_RULES_ENABLED_SOURCES: ".omo/rules",
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
// when
|
|
241
|
-
const output = await runSessionStartHook(
|
|
242
|
-
{
|
|
243
|
-
session_id: "session-sparkshell-force-on",
|
|
244
|
-
transcript_path: null,
|
|
245
|
-
cwd: process.cwd(),
|
|
246
|
-
hook_event_name: "SessionStart",
|
|
247
|
-
model: "gpt-5.5",
|
|
248
|
-
permission_mode: "default",
|
|
249
|
-
source: "startup",
|
|
250
|
-
},
|
|
251
|
-
{ env },
|
|
252
|
-
);
|
|
253
|
-
|
|
254
|
-
// then
|
|
255
|
-
expect(parseAdditionalContext(output)).toContain("omo sparkshell <command>");
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
it("#given explicit force-off env with active Codex app context #when SessionStart runs #then emits no Sparkshell guidance", async () => {
|
|
259
|
-
// given
|
|
260
|
-
const env = {
|
|
261
|
-
OMO_SPARKSHELL_AWARENESS: "0",
|
|
262
|
-
CODEX_INTERNAL_ORIGINATOR_OVERRIDE: "Codex Desktop",
|
|
263
|
-
CODEX_SHELL: "1",
|
|
264
|
-
CODEX_RULES_ENABLED_SOURCES: ".omo/rules",
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
// when
|
|
268
|
-
const output = await runSessionStartHook(
|
|
269
|
-
{
|
|
270
|
-
session_id: "session-sparkshell-force-off",
|
|
271
|
-
transcript_path: null,
|
|
272
|
-
cwd: process.cwd(),
|
|
273
|
-
hook_event_name: "SessionStart",
|
|
274
|
-
model: "gpt-5.5",
|
|
275
|
-
permission_mode: "default",
|
|
276
|
-
source: "startup",
|
|
277
|
-
},
|
|
278
|
-
{ env },
|
|
279
|
-
);
|
|
280
|
-
|
|
281
|
-
// then
|
|
282
|
-
expect(output).toBe("");
|
|
283
|
-
});
|
|
284
|
-
|
|
285
|
-
it("#given Sparkshell awareness already emitted for a session #when UserPromptSubmit runs #then emits no duplicate guidance", async () => {
|
|
286
|
-
// given
|
|
287
|
-
const pluginDataRoot = mkdtempSync(join(tmpdir(), "codex-sparkshell-awareness-"));
|
|
288
|
-
const env = {
|
|
289
|
-
CODEX_INTERNAL_ORIGINATOR_OVERRIDE: "Codex Desktop",
|
|
290
|
-
CODEX_SHELL: "1",
|
|
291
|
-
CODEX_RULES_ENABLED_SOURCES: ".omo/rules",
|
|
292
|
-
PATH: omoOnPathDir,
|
|
293
|
-
HOME: emptyHomeDir,
|
|
294
|
-
};
|
|
295
|
-
try {
|
|
296
|
-
const firstOutput = await runSessionStartHook(
|
|
297
|
-
{
|
|
298
|
-
session_id: "session-sparkshell-dedupe",
|
|
299
|
-
transcript_path: null,
|
|
300
|
-
cwd: process.cwd(),
|
|
301
|
-
hook_event_name: "SessionStart",
|
|
302
|
-
model: "gpt-5.5",
|
|
303
|
-
permission_mode: "default",
|
|
304
|
-
source: "startup",
|
|
305
|
-
},
|
|
306
|
-
{ env, pluginDataRoot },
|
|
307
|
-
);
|
|
308
|
-
expect(parseAdditionalContext(firstOutput)).toContain("omo sparkshell <command>");
|
|
309
|
-
|
|
310
|
-
// when
|
|
311
|
-
const secondOutput = await runUserPromptSubmitHook(
|
|
312
|
-
{
|
|
313
|
-
session_id: "session-sparkshell-dedupe",
|
|
314
|
-
turn_id: "turn-1",
|
|
315
|
-
transcript_path: null,
|
|
316
|
-
cwd: process.cwd(),
|
|
317
|
-
hook_event_name: "UserPromptSubmit",
|
|
318
|
-
model: "gpt-5.5",
|
|
319
|
-
permission_mode: "default",
|
|
320
|
-
prompt: "continue",
|
|
321
|
-
},
|
|
322
|
-
{ env, pluginDataRoot },
|
|
323
|
-
);
|
|
324
|
-
|
|
325
|
-
// then
|
|
326
|
-
expect(secondOutput).toBe("");
|
|
327
|
-
} finally {
|
|
328
|
-
rmSync(pluginDataRoot, { recursive: true, force: true });
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
it("#given explicit force-on env #when hook output is formatted #then awareness remains valid hook JSON", () => {
|
|
333
|
-
// given
|
|
334
|
-
const context = [
|
|
335
|
-
"## Sparkshell Runtime",
|
|
336
|
-
"",
|
|
337
|
-
"- Prefer `omo sparkshell <command>` for shell-native inspection.",
|
|
338
|
-
].join("\n");
|
|
339
|
-
|
|
340
|
-
// when
|
|
341
|
-
const output = formatAdditionalContextOutput("SessionStart", context);
|
|
342
|
-
|
|
343
|
-
// then
|
|
344
|
-
expect(parseAdditionalContext(output)).toContain("## Sparkshell Runtime");
|
|
345
|
-
});
|
|
346
|
-
});
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
from __future__ import annotations
|
|
3
|
-
|
|
4
|
-
import shutil
|
|
5
|
-
import sqlite3
|
|
6
|
-
import sys
|
|
7
|
-
import tempfile
|
|
8
|
-
import unittest
|
|
9
|
-
from collections.abc import Callable
|
|
10
|
-
from pathlib import Path
|
|
11
|
-
|
|
12
|
-
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
|
|
13
|
-
|
|
14
|
-
from extract_cookies import extract_cookies # noqa: E402
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
def _make_chromium_db(path: Path, rows: list[tuple[str, bytes, str]]) -> None:
|
|
18
|
-
conn = sqlite3.connect(str(path))
|
|
19
|
-
conn.execute(
|
|
20
|
-
"CREATE TABLE cookies (name TEXT, encrypted_value BLOB, host_key TEXT, path TEXT, "
|
|
21
|
-
"expires_utc INTEGER, is_secure INTEGER, is_httponly INTEGER, samesite INTEGER)"
|
|
22
|
-
)
|
|
23
|
-
conn.executemany(
|
|
24
|
-
"INSERT INTO cookies VALUES (?,?,?,?,?,?,?,?)",
|
|
25
|
-
[
|
|
26
|
-
(name, value, host, "/", 13_300_000_000_000_000, 1, 1, 1)
|
|
27
|
-
for name, value, host in rows
|
|
28
|
-
],
|
|
29
|
-
)
|
|
30
|
-
conn.commit()
|
|
31
|
-
conn.close()
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def _make_firefox_db(path: Path, rows: list[tuple[str, str, str]]) -> None:
|
|
35
|
-
conn = sqlite3.connect(str(path))
|
|
36
|
-
conn.execute(
|
|
37
|
-
"CREATE TABLE moz_cookies (name TEXT, value TEXT, host TEXT, path TEXT, "
|
|
38
|
-
"expiry INTEGER, isSecure INTEGER, isHttpOnly INTEGER, sameSite INTEGER)"
|
|
39
|
-
)
|
|
40
|
-
conn.executemany(
|
|
41
|
-
"INSERT INTO moz_cookies VALUES (?,?,?,?,?,?,?,?)",
|
|
42
|
-
[
|
|
43
|
-
(name, value, host, "/", 9999999999, 1, 1, 1)
|
|
44
|
-
for name, value, host in rows
|
|
45
|
-
],
|
|
46
|
-
)
|
|
47
|
-
conn.commit()
|
|
48
|
-
conn.close()
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
class DomainFilter(unittest.TestCase):
|
|
52
|
-
def _base_with_db(self, rel: str, make: Callable[[Path], None]) -> Path:
|
|
53
|
-
base = Path(tempfile.mkdtemp())
|
|
54
|
-
self.addCleanup(lambda: shutil.rmtree(str(base), ignore_errors=True))
|
|
55
|
-
db = base / rel
|
|
56
|
-
db.parent.mkdir(parents=True)
|
|
57
|
-
make(db)
|
|
58
|
-
return base
|
|
59
|
-
|
|
60
|
-
def test_chromium_does_not_overmatch_suffix_text(self) -> None:
|
|
61
|
-
base = self._base_with_db(
|
|
62
|
-
"Google/Chrome/User Data/Default/Cookies",
|
|
63
|
-
lambda p: _make_chromium_db(
|
|
64
|
-
p,
|
|
65
|
-
[
|
|
66
|
-
("exact", b"exact-value", "example.com"),
|
|
67
|
-
("sub", b"sub-value", ".login.example.com"),
|
|
68
|
-
("near", b"near-value", ".example.com"),
|
|
69
|
-
],
|
|
70
|
-
),
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
near = extract_cookies(
|
|
74
|
-
"chrome", ["ample.com"], platform="win32",
|
|
75
|
-
keyring_reader=lambda _s: b"k" * 32, base_override=base,
|
|
76
|
-
)
|
|
77
|
-
exact = extract_cookies(
|
|
78
|
-
"chrome", ["example.com"], platform="win32",
|
|
79
|
-
keyring_reader=lambda _s: b"k" * 32, base_override=base,
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
self.assertEqual(near, [])
|
|
83
|
-
self.assertEqual({cookie["name"] for cookie in exact}, {"exact", "near", "sub"})
|
|
84
|
-
|
|
85
|
-
def test_firefox_does_not_overmatch_suffix_text(self) -> None:
|
|
86
|
-
base = self._base_with_db(
|
|
87
|
-
"Firefox/Profiles/abc.default/cookies.sqlite",
|
|
88
|
-
lambda p: _make_firefox_db(
|
|
89
|
-
p,
|
|
90
|
-
[
|
|
91
|
-
("exact", "exact-value", "example.com"),
|
|
92
|
-
("sub", "sub-value", ".login.example.com"),
|
|
93
|
-
("near", "near-value", ".example.com"),
|
|
94
|
-
],
|
|
95
|
-
),
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
near = extract_cookies(
|
|
99
|
-
"firefox", ["ample.com"], platform="darwin", base_override=base,
|
|
100
|
-
)
|
|
101
|
-
exact = extract_cookies(
|
|
102
|
-
"firefox", ["example.com"], platform="darwin", base_override=base,
|
|
103
|
-
)
|
|
104
|
-
|
|
105
|
-
self.assertEqual(near, [])
|
|
106
|
-
self.assertEqual({cookie["name"] for cookie in exact}, {"exact", "near", "sub"})
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
if __name__ == "__main__":
|
|
110
|
-
unittest.main(verbosity=2)
|