oh-my-opencode 4.10.0 → 4.11.0
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 +96 -0
- package/.agents/skills/codex-qa/references/app-server.md +63 -0
- package/.agents/skills/codex-qa/references/components-hooks.md +38 -0
- package/.agents/skills/codex-qa/references/docker-qa.md +62 -0
- package/.agents/skills/codex-qa/references/install-verify.md +57 -0
- package/.agents/skills/codex-qa/references/isolation.md +57 -0
- package/.agents/skills/codex-qa/references/logging-debug.md +60 -0
- package/.agents/skills/codex-qa/scripts/app-server-drive.sh +76 -0
- package/.agents/skills/codex-qa/scripts/hook-unit-probe.sh +69 -0
- package/.agents/skills/codex-qa/scripts/install-verify.sh +60 -0
- package/.agents/skills/codex-qa/scripts/lib/app-server-client.mjs +117 -0
- package/.agents/skills/codex-qa/scripts/lib/common.sh +180 -0
- package/.agents/skills/codex-qa/scripts/lib/mock-model.mjs +56 -0
- package/.agents/skills/codex-qa/scripts/tui-smoke.sh +71 -0
- package/.agents/skills/opencode-qa/SKILL.md +8 -1
- package/.agents/skills/opencode-qa/references/docker-qa.md +72 -0
- package/.agents/skills/tech-debt-audit/SKILL.md +14 -14
- package/.agents/skills/work-with-pr/SKILL.md +77 -53
- package/.opencode/skills/work-with-pr/SKILL.md +79 -55
- package/README.ja.md +3 -3
- package/README.ko.md +3 -3
- package/README.md +2 -2
- package/README.ru.md +3 -3
- package/README.zh-cn.md +3 -3
- package/THIRD-PARTY-NOTICES.md +205 -0
- package/dist/agents/dynamic-agent-prompt-types.d.ts +1 -1
- package/dist/agents/index.d.ts +0 -1
- package/dist/agents/prometheus/index.d.ts +0 -1
- package/dist/agents/prometheus/system-prompt.d.ts +0 -2
- package/dist/cli/config-manager/add-tui-plugin-to-tui-config.d.ts +7 -0
- package/dist/cli/doctor/checks/codex-components.d.ts +4 -4
- package/dist/cli/doctor/checks/codex-runtime-wrapper.d.ts +7 -0
- package/dist/cli/doctor/checks/codex.d.ts +1 -1
- package/dist/cli/doctor/checks/config.d.ts +1 -1
- package/dist/cli/doctor/checks/dependencies.d.ts +1 -2
- package/dist/cli/doctor/checks/index.d.ts +1 -1
- package/dist/cli/doctor/checks/model-resolution.d.ts +1 -1
- package/dist/cli/doctor/checks/system.d.ts +1 -1
- package/dist/cli/doctor/checks/team-mode.d.ts +1 -1
- package/dist/cli/doctor/checks/tools-gh.d.ts +1 -1
- package/dist/cli/doctor/checks/tools-mcp.d.ts +1 -1
- package/dist/cli/doctor/checks/tools.d.ts +2 -1
- package/dist/cli/doctor/checks/tui-plugin-config.d.ts +7 -1
- package/dist/cli/doctor/framework/constants.d.ts +32 -0
- package/dist/cli/doctor/framework/spawn-with-timeout.d.ts +8 -0
- package/dist/cli/doctor/framework/types.d.ts +147 -0
- package/dist/cli/doctor/index.d.ts +4 -4
- package/dist/cli/doctor/runner.d.ts +1 -1
- package/dist/cli/index.js +9717 -7523
- package/dist/cli/install-ast-grep-sg.d.ts +10 -0
- package/dist/cli/install-codex/codex-cache-bins.d.ts +1 -21
- package/dist/cli/install-codex/codex-cache-bundled-mcps.d.ts +1 -5
- package/dist/cli/install-codex/codex-cache-command-shim.d.ts +1 -1
- package/dist/cli/install-codex/codex-cache-fs.d.ts +1 -3
- package/dist/cli/install-codex/codex-cache-install.d.ts +1 -13
- package/dist/cli/install-codex/codex-cache-legacy-bins.d.ts +1 -3
- package/dist/cli/install-codex/codex-cache-local-dependencies.d.ts +1 -1
- package/dist/cli/install-codex/codex-cache-mcp-manifest.d.ts +1 -2
- package/dist/cli/install-codex/codex-cache-paths.d.ts +1 -2
- package/dist/cli/install-codex/codex-cache-prune.d.ts +1 -10
- package/dist/cli/install-codex/codex-cache.d.ts +1 -4
- package/dist/cli/install-codex/codex-cached-marketplace-manifest.d.ts +1 -6
- package/dist/cli/install-codex/codex-cleanup-config.d.ts +1 -6
- package/dist/cli/install-codex/codex-cleanup.d.ts +1 -25
- package/dist/cli/install-codex/codex-config-agents.d.ts +1 -3
- package/dist/cli/install-codex/codex-config-features.d.ts +1 -1
- package/dist/cli/install-codex/codex-config-marketplaces.d.ts +1 -6
- package/dist/cli/install-codex/codex-config-permissions.d.ts +1 -1
- package/dist/cli/install-codex/codex-config-plugins.d.ts +1 -9
- package/dist/cli/install-codex/codex-config-reasoning.d.ts +1 -2
- package/dist/cli/install-codex/codex-config-toml-sections.d.ts +1 -9
- package/dist/cli/install-codex/codex-config-toml.d.ts +1 -13
- package/dist/cli/install-codex/codex-hook-trust.d.ts +1 -6
- package/dist/cli/install-codex/codex-installation-detection.d.ts +1 -36
- package/dist/cli/install-codex/codex-installer-bin-dir.d.ts +1 -8
- package/dist/cli/install-codex/codex-marketplace-snapshot.d.ts +1 -15
- package/dist/cli/install-codex/codex-marketplace.d.ts +1 -9
- package/dist/cli/install-codex/codex-model-catalog.d.ts +1 -13
- package/dist/cli/install-codex/codex-multi-agent-v2-config.d.ts +1 -12
- package/dist/cli/install-codex/codex-package-layout.d.ts +1 -1
- package/dist/cli/install-codex/codex-process.d.ts +1 -7
- package/dist/cli/install-codex/codex-project-local-cleanup-best-effort.d.ts +1 -7
- package/dist/cli/install-codex/codex-project-local-cleanup.d.ts +1 -35
- package/dist/cli/install-codex/git-bash.d.ts +1 -35
- package/dist/cli/install-codex/index.d.ts +1 -11
- package/dist/cli/install-codex/install-codex.d.ts +1 -10
- package/dist/cli/install-codex/lazycodex-version-stamp.d.ts +1 -19
- package/dist/cli/install-codex/link-cached-plugin-agents.d.ts +1 -20
- package/dist/cli/install-codex/lsp-daemon-reaper.d.ts +1 -5
- package/dist/cli/install-codex/toml-section-editor.d.ts +1 -11
- package/dist/cli/install-codex/types.d.ts +1 -76
- package/dist/cli/mcp-oauth/login.d.ts +1 -1
- package/dist/cli-node/index.js +9774 -7525
- package/dist/config/index.d.ts +1 -1
- package/dist/config/schema/agent-names.d.ts +1 -1
- package/dist/config/schema/codegraph.d.ts +9 -0
- package/dist/config/schema/git-env-prefix.d.ts +1 -5
- package/dist/config/schema/hooks.d.ts +3 -0
- package/dist/config/schema/monitor.d.ts +15 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +27 -16
- package/dist/config/schema/openclaw.d.ts +5 -4
- package/dist/config/schema/team-mode.d.ts +1 -16
- package/dist/config/schema/tmux.d.ts +4 -5
- package/dist/config/schema/tui.d.ts +10 -0
- package/dist/config/schema.d.ts +2 -0
- package/dist/config/validate.d.ts +8 -0
- package/dist/create-hooks.d.ts +5 -0
- package/dist/create-managers.d.ts +7 -0
- package/dist/create-runtime-tmux-config.d.ts +1 -1
- package/dist/create-tools.d.ts +1 -1
- package/dist/features/background-agent/error-classifier.d.ts +2 -2
- package/dist/features/background-agent/manager.d.ts +29 -2
- package/dist/features/background-agent/parent-wake-dispatched-tracker.d.ts +8 -0
- package/dist/features/background-agent/parent-wake-notifier.d.ts +4 -0
- package/dist/features/background-agent/spawner/fallback-agent.d.ts +3 -2
- package/dist/features/background-agent/spawner/task-prompt-body.d.ts +5 -6
- package/dist/features/background-agent/task-snapshot.d.ts +2 -0
- package/dist/features/background-agent/types.d.ts +7 -0
- package/dist/features/builtin-commands/templates/refactor-sections/intro-and-analysis.d.ts +1 -1
- package/dist/features/builtin-commands/templates/refactor-sections/plan-and-execution.d.ts +1 -1
- package/dist/features/builtin-commands/templates/refactor-sections/team-mode-addendum.d.ts +1 -1
- package/dist/features/builtin-commands/templates/refactor-sections/verification-and-tooling.d.ts +1 -1
- package/dist/features/builtin-commands/templates/remove-ai-slops.d.ts +1 -1
- package/dist/features/builtin-skills/index.d.ts +1 -2
- package/dist/features/builtin-skills/skill-file-loader.d.ts +1 -4
- package/dist/features/builtin-skills/skills/agent-browser-skill.d.ts +1 -2
- package/dist/features/builtin-skills/skills/agent-browser-template.d.ts +1 -2
- package/dist/features/builtin-skills/skills/debugging.d.ts +1 -2
- package/dist/features/builtin-skills/skills/dev-browser.d.ts +1 -2
- package/dist/features/builtin-skills/skills/frontend.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/commit-atomic-planning.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/commit-context-analysis.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/commit-execution-verification.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/commit-workflow.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/history-search-workflow.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/overview.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/quick-reference.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/rebase-workflow.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +1 -2
- package/dist/features/builtin-skills/skills/git-master.d.ts +1 -2
- package/dist/features/builtin-skills/skills/index.d.ts +1 -13
- package/dist/features/builtin-skills/skills/init-deep.d.ts +1 -2
- package/dist/features/builtin-skills/skills/playwright-cli.d.ts +1 -10
- package/dist/features/builtin-skills/skills/playwright-mcp-skill.d.ts +1 -2
- package/dist/features/builtin-skills/skills/playwright.d.ts +1 -2
- package/dist/features/builtin-skills/skills/remove-ai-slops.d.ts +1 -2
- package/dist/features/builtin-skills/skills/review-work.d.ts +1 -2
- package/dist/features/builtin-skills/skills/security-research.d.ts +1 -2
- package/dist/features/builtin-skills/skills/security-review.d.ts +1 -2
- package/dist/features/builtin-skills/skills/team-mode.d.ts +1 -2
- package/dist/features/builtin-skills/skills/visual-qa.d.ts +1 -2
- package/dist/features/builtin-skills/skills.d.ts +1 -12
- package/dist/features/builtin-skills/types.d.ts +1 -15
- package/dist/features/claude-code-agent-loader/agent-definitions-loader.d.ts +1 -3
- package/dist/features/claude-code-agent-loader/claude-model-mapper.d.ts +1 -4
- package/dist/features/claude-code-agent-loader/index.d.ts +1 -5
- package/dist/features/claude-code-agent-loader/json-agent-loader.d.ts +1 -2
- package/dist/features/claude-code-agent-loader/loader.d.ts +1 -5
- package/dist/features/claude-code-agent-loader/opencode-config-agents-reader.d.ts +1 -2
- package/dist/features/claude-code-agent-loader/types.d.ts +1 -29
- package/dist/features/claude-code-command-loader/index.d.ts +1 -2
- package/dist/features/claude-code-command-loader/loader-cache.d.ts +1 -6
- package/dist/features/claude-code-command-loader/loader.d.ts +1 -8
- package/dist/features/claude-code-command-loader/types.d.ts +1 -42
- package/dist/features/claude-code-mcp-loader/configure-allowed-env-vars.d.ts +1 -5
- package/dist/features/claude-code-mcp-loader/index.d.ts +1 -11
- package/dist/features/claude-code-mcp-loader/loader.d.ts +1 -4
- package/dist/features/claude-code-mcp-loader/scope-filter.d.ts +1 -2
- package/dist/features/claude-code-mcp-loader/transformer.d.ts +1 -2
- package/dist/features/claude-code-mcp-loader/types.d.ts +1 -43
- package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +1 -3
- package/dist/features/claude-code-plugin-loader/command-loader.d.ts +1 -3
- package/dist/features/claude-code-plugin-loader/discovery-core.d.ts +1 -2
- package/dist/features/claude-code-plugin-loader/discovery-paths.d.ts +1 -3
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +1 -3
- package/dist/features/claude-code-plugin-loader/hook-loader.d.ts +1 -2
- package/dist/features/claude-code-plugin-loader/index.d.ts +1 -10
- package/dist/features/claude-code-plugin-loader/install-path-resolver.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/installed-plugin-database.d.ts +1 -3
- package/dist/features/claude-code-plugin-loader/loaded-plugin.d.ts +1 -2
- package/dist/features/claude-code-plugin-loader/loader.d.ts +1 -36
- package/dist/features/claude-code-plugin-loader/mcp-server-loader.d.ts +1 -3
- package/dist/features/claude-code-plugin-loader/plugin-key.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/plugin-manifest.d.ts +1 -4
- package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +1 -2
- package/dist/features/claude-code-plugin-loader/plugin-settings.d.ts +1 -3
- package/dist/features/claude-code-plugin-loader/scope-filter.d.ts +1 -2
- package/dist/features/claude-code-plugin-loader/skill-loader.d.ts +1 -3
- package/dist/features/claude-code-plugin-loader/types.d.ts +1 -240
- package/dist/features/claude-tasks/types.d.ts +4 -4
- package/dist/features/hook-message-injector/sdk-message-lookup.d.ts +9 -2
- package/dist/features/mcp-oauth/callback-server.d.ts +1 -19
- package/dist/features/mcp-oauth/dcr.d.ts +1 -34
- package/dist/features/mcp-oauth/discovery.d.ts +1 -8
- package/dist/features/mcp-oauth/oauth-authorization-flow.d.ts +1 -26
- package/dist/features/mcp-oauth/provider.d.ts +1 -30
- package/dist/features/mcp-oauth/refresh-mutex.d.ts +1 -26
- package/dist/features/mcp-oauth/resource-indicator.d.ts +1 -0
- package/dist/features/mcp-oauth/schema.d.ts +1 -0
- package/dist/features/mcp-oauth/step-up.d.ts +1 -8
- package/dist/features/mcp-oauth/storage.d.ts +1 -17
- package/dist/features/monitor/batcher.d.ts +36 -0
- package/dist/features/monitor/envelope.d.ts +9 -0
- package/dist/features/monitor/filter.d.ts +10 -0
- package/dist/features/monitor/index.d.ts +2 -0
- package/dist/features/monitor/line-stream.d.ts +29 -0
- package/dist/features/monitor/manager-internals.d.ts +65 -0
- package/dist/features/monitor/manager.d.ts +35 -0
- package/dist/features/monitor/monitor-state-factory.d.ts +24 -0
- package/dist/features/monitor/output-injector-session-inspect.d.ts +9 -0
- package/dist/features/monitor/output-injector-types.d.ts +48 -0
- package/dist/features/monitor/output-injector.d.ts +21 -0
- package/dist/features/monitor/permission.d.ts +33 -0
- package/dist/features/monitor/pipeline.d.ts +26 -0
- package/dist/features/monitor/process.d.ts +21 -0
- package/dist/features/monitor/ring-buffer.d.ts +25 -0
- package/dist/features/monitor/types.d.ts +83 -0
- package/dist/features/opencode-runtime-skills/index.d.ts +1 -2
- package/dist/features/opencode-runtime-skills/runtime-skill-config.d.ts +1 -17
- package/dist/features/opencode-runtime-skills/skill-markdown.d.ts +1 -7
- package/dist/features/opencode-runtime-skills/source-server.d.ts +1 -24
- package/dist/features/opencode-skill-loader/allowed-tools-parser.d.ts +1 -1
- package/dist/features/opencode-skill-loader/config-source-discovery.d.ts +1 -7
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +1 -20
- package/dist/features/opencode-skill-loader/index.d.ts +1 -16
- package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +1 -9
- package/dist/features/opencode-skill-loader/loaded-skill-template-extractor.d.ts +1 -2
- package/dist/features/opencode-skill-loader/loader.d.ts +1 -21
- package/dist/features/opencode-skill-loader/merger/builtin-skill-converter.d.ts +1 -3
- package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +1 -3
- package/dist/features/opencode-skill-loader/merger/scope-priority.d.ts +1 -2
- package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +1 -3
- package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +1 -11
- package/dist/features/opencode-skill-loader/merger.d.ts +1 -7
- package/dist/features/opencode-skill-loader/opencode-config-skills-reader.d.ts +1 -5
- package/dist/features/opencode-skill-loader/skill-content.d.ts +1 -5
- package/dist/features/opencode-skill-loader/skill-deduplication.d.ts +1 -2
- package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +1 -5
- package/dist/features/opencode-skill-loader/skill-directory-loader.d.ts +1 -8
- package/dist/features/opencode-skill-loader/skill-discovery.d.ts +1 -4
- package/dist/features/opencode-skill-loader/skill-mcp-config.d.ts +1 -3
- package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +1 -9
- package/dist/features/opencode-skill-loader/skill-template-resolver.d.ts +1 -11
- package/dist/features/opencode-skill-loader/types.d.ts +1 -34
- package/dist/features/skill-mcp-manager/cleanup.d.ts +1 -8
- package/dist/features/skill-mcp-manager/connection-type.d.ts +1 -7
- package/dist/features/skill-mcp-manager/connection.d.ts +1 -14
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +1 -2
- package/dist/features/skill-mcp-manager/error-redaction.d.ts +1 -10
- package/dist/features/skill-mcp-manager/http-client.d.ts +1 -19
- package/dist/features/skill-mcp-manager/index.d.ts +1 -2
- package/dist/features/skill-mcp-manager/manager.d.ts +1 -27
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +1 -17
- package/dist/features/skill-mcp-manager/stdio-client.d.ts +1 -16
- package/dist/features/skill-mcp-manager/types.d.ts +1 -79
- package/dist/features/team-mode/member-parser.d.ts +1 -16
- package/dist/features/team-mode/team-layout-tmux/close-team-member-pane.d.ts +1 -4
- package/dist/features/team-mode/team-layout-tmux/index.d.ts +1 -1
- package/dist/features/team-mode/team-layout-tmux/layout.d.ts +1 -37
- package/dist/features/team-mode/team-layout-tmux/rebalance-team-window.d.ts +1 -9
- package/dist/features/team-mode/team-layout-tmux/resolve-caller-tmux-session.d.ts +1 -9
- package/dist/features/team-mode/team-layout-tmux/sweep-stale-team-sessions.d.ts +1 -8
- package/dist/features/team-mode/team-mailbox/ack.d.ts +1 -2
- package/dist/features/team-mode/team-mailbox/inbox.d.ts +1 -3
- package/dist/features/team-mode/team-mailbox/index.d.ts +1 -7
- package/dist/features/team-mode/team-mailbox/pending-delivery-recovery.d.ts +1 -31
- package/dist/features/team-mode/team-mailbox/poll.d.ts +1 -10
- package/dist/features/team-mode/team-mailbox/reservation.d.ts +1 -11
- package/dist/features/team-mode/team-mailbox/send.d.ts +1 -30
- package/dist/features/team-mode/team-registry/index.d.ts +1 -3
- package/dist/features/team-mode/team-registry/loader.d.ts +1 -12
- package/dist/features/team-mode/team-registry/paths.d.ts +1 -28
- package/dist/features/team-mode/team-registry/team-spec-input-normalizer.d.ts +1 -6
- package/dist/features/team-mode/team-registry/validator.d.ts +1 -10
- package/dist/features/team-mode/team-runtime/shutdown-helpers.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/active-resume.d.ts +1 -5
- package/dist/features/team-mode/team-state-store/creating-resume.d.ts +1 -4
- package/dist/features/team-mode/team-state-store/deleting-resume.d.ts +1 -4
- package/dist/features/team-mode/team-state-store/error-normalization.d.ts +1 -2
- package/dist/features/team-mode/team-state-store/index.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/locks.d.ts +1 -15
- package/dist/features/team-mode/team-state-store/reservation-reconciliation.d.ts +1 -4
- package/dist/features/team-mode/team-state-store/resume-report.d.ts +1 -7
- package/dist/features/team-mode/team-state-store/resume.d.ts +1 -5
- package/dist/features/team-mode/team-state-store/runtime-cleanup.d.ts +1 -4
- package/dist/features/team-mode/team-state-store/session-liveness.d.ts +1 -9
- package/dist/features/team-mode/team-state-store/store.d.ts +1 -21
- package/dist/features/team-mode/team-state-store/worker-resume-status.d.ts +1 -9
- package/dist/features/team-mode/team-tasklist/claim.d.ts +1 -10
- package/dist/features/team-mode/team-tasklist/dependencies.d.ts +1 -2
- package/dist/features/team-mode/team-tasklist/get.d.ts +1 -3
- package/dist/features/team-mode/team-tasklist/index.d.ts +1 -6
- package/dist/features/team-mode/team-tasklist/list.d.ts +1 -8
- package/dist/features/team-mode/team-tasklist/store.d.ts +1 -3
- package/dist/features/team-mode/team-tasklist/test-support.d.ts +1 -9
- package/dist/features/team-mode/team-tasklist/update.d.ts +1 -9
- package/dist/features/team-mode/team-worktree/cleanup.d.ts +1 -3
- package/dist/features/team-mode/team-worktree/index.d.ts +1 -2
- package/dist/features/team-mode/team-worktree/manager.d.ts +1 -15
- package/dist/features/team-mode/tools/lifecycle-create-tool.d.ts +2 -2
- package/dist/features/team-mode/tools/lifecycle-inline-spec.d.ts +2 -2
- package/dist/features/team-mode/tools/lifecycle-participant.d.ts +2 -2
- package/dist/features/team-mode/tools/lifecycle-test-fixture.d.ts +8 -8
- package/dist/features/team-mode/tools/messaging-live-delivery-recipient.d.ts +2 -2
- package/dist/features/team-mode/tools/messaging-live-delivery-reservation.d.ts +1 -1
- package/dist/features/team-mode/tools/messaging-live-delivery-state.d.ts +1 -1
- package/dist/features/team-mode/tools/messaging-live-delivery.d.ts +1 -1
- package/dist/features/team-mode/tools/messaging-runtime.d.ts +2 -2
- package/dist/features/team-mode/tools/query.d.ts +3 -3
- package/dist/features/team-mode/tools/tasks.d.ts +2 -2
- package/dist/features/team-mode/types.d.ts +1 -343
- package/dist/features/tui-sidebar/compute-view.d.ts +10 -0
- package/dist/features/tui-sidebar/config-validator.d.ts +2 -0
- package/dist/features/tui-sidebar/constants.d.ts +10 -0
- package/dist/features/tui-sidebar/derivers.d.ts +10 -0
- package/dist/features/tui-sidebar/element-helpers.d.ts +9 -0
- package/dist/features/tui-sidebar/loop-reader.d.ts +2 -0
- package/dist/features/tui-sidebar/mirror-io.d.ts +3 -0
- package/dist/features/tui-sidebar/mirror-manager.d.ts +28 -0
- package/dist/features/tui-sidebar/mirror-path.d.ts +3 -0
- package/dist/features/tui-sidebar/render-view.d.ts +15 -0
- package/dist/features/tui-sidebar/roster-resolver.d.ts +2 -0
- package/dist/features/tui-sidebar/snapshot-builder.d.ts +28 -0
- package/dist/features/tui-sidebar/snapshot-schema.d.ts +41 -0
- package/dist/features/tui-sidebar/state-types.d.ts +72 -0
- package/dist/hooks/ast-grep-sg-provision/hook.d.ts +19 -0
- package/dist/hooks/ast-grep-sg-provision/index.d.ts +1 -0
- package/dist/hooks/auto-slash-command/constants.d.ts +1 -5
- package/dist/hooks/auto-slash-command/detector.d.ts +1 -15
- package/dist/hooks/auto-slash-command/processed-command-store.d.ts +1 -7
- package/dist/hooks/auto-slash-command/types.d.ts +1 -48
- package/dist/hooks/auto-update-checker/constants.d.ts +3 -3
- package/dist/hooks/codegraph-bootstrap/command-runner.d.ts +16 -0
- package/dist/hooks/codegraph-bootstrap/hook.d.ts +34 -0
- package/dist/hooks/codegraph-bootstrap/index.d.ts +1 -0
- package/dist/hooks/codegraph-bootstrap/project-root.d.ts +1 -0
- package/dist/hooks/codegraph-bootstrap/status.d.ts +11 -0
- package/dist/hooks/delegate-task-retry/guidance.d.ts +1 -2
- package/dist/hooks/delegate-task-retry/patterns.d.ts +2 -11
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/monitor-status-injector/hook.d.ts +30 -0
- package/dist/hooks/monitor-status-injector/index.d.ts +2 -0
- package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +1 -4
- package/dist/hooks/runtime-fallback/error-classifier.d.ts +7 -6
- package/dist/hooks/runtime-fallback/fallback-state.d.ts +3 -2
- package/dist/hooks/runtime-fallback/test-timeout-clock.test-support.d.ts +6 -0
- package/dist/hooks/tool-pair-validator/tool-part-ids.d.ts +2 -1
- package/dist/index.js +89513 -95172
- package/dist/interactive-bash-availability.d.ts +1 -0
- package/dist/mcp/codegraph.d.ts +16 -0
- package/dist/mcp/index.d.ts +10 -2
- package/dist/mcp/shared/ancestor-cli-resolver.d.ts +25 -0
- package/dist/mcp/types.d.ts +1 -1
- package/dist/oh-my-opencode.schema.json +139 -16
- package/dist/openclaw/config.d.ts +1 -8
- package/dist/openclaw/daemon.d.ts +1 -1
- package/dist/openclaw/dispatcher.d.ts +1 -12
- package/dist/openclaw/gateway-url-validation.d.ts +1 -1
- package/dist/openclaw/index.d.ts +1 -5
- package/dist/openclaw/reply-listener-discord.d.ts +1 -4
- package/dist/openclaw/reply-listener-injection.d.ts +1 -10
- package/dist/openclaw/reply-listener-log.d.ts +1 -2
- package/dist/openclaw/reply-listener-paths.d.ts +1 -7
- package/dist/openclaw/reply-listener-poll-loop.d.ts +1 -3
- package/dist/openclaw/reply-listener-process.d.ts +1 -4
- package/dist/openclaw/reply-listener-signature.d.ts +1 -2
- package/dist/openclaw/reply-listener-sleep.d.ts +1 -1
- package/dist/openclaw/reply-listener-spawn.d.ts +1 -5
- package/dist/openclaw/reply-listener-start.d.ts +1 -9
- package/dist/openclaw/reply-listener-startup.d.ts +1 -12
- package/dist/openclaw/reply-listener-state.d.ts +1 -29
- package/dist/openclaw/reply-listener-status.d.ts +1 -4
- package/dist/openclaw/reply-listener-stop.d.ts +1 -7
- package/dist/openclaw/reply-listener-telegram.d.ts +1 -4
- package/dist/openclaw/reply-listener.d.ts +1 -5
- package/dist/openclaw/runtime-dispatch.d.ts +1 -17
- package/dist/openclaw/session-registry-lock.d.ts +1 -2
- package/dist/openclaw/session-registry-paths.d.ts +1 -9
- package/dist/openclaw/session-registry-storage.d.ts +1 -4
- package/dist/openclaw/session-registry-types.d.ts +1 -11
- package/dist/openclaw/session-registry.d.ts +1 -8
- package/dist/openclaw/tmux.d.ts +1 -8
- package/dist/openclaw/types.d.ts +1 -42
- package/dist/plugin/event-error-utils.d.ts +2 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +5 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +3 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +4 -1
- package/dist/plugin/messages-transform.d.ts +1 -0
- package/dist/plugin/skill-context.d.ts +2 -0
- package/dist/plugin/tool-registry-factories.d.ts +2 -1
- package/dist/plugin/tool-registry-gated-tools.d.ts +7 -0
- package/dist/plugin/tool-registry.d.ts +1 -1
- package/dist/plugin/types.d.ts +2 -9
- package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +1 -0
- package/dist/shared/archive-entry-validator.d.ts +1 -6
- package/dist/shared/bun-file-shim.d.ts +1 -8
- package/dist/shared/bun-spawn-shim.d.ts +1 -43
- package/dist/shared/bun-which-shim.d.ts +1 -1
- package/dist/shared/classify-path-environment.d.ts +1 -3
- package/dist/shared/command-executor/embedded-commands.d.ts +1 -7
- package/dist/shared/command-executor/execute-command.d.ts +1 -1
- package/dist/shared/command-executor/execute-hook-command.d.ts +1 -23
- package/dist/shared/command-executor/home-directory.d.ts +1 -1
- package/dist/shared/command-executor/resolve-commands-in-text.d.ts +1 -1
- package/dist/shared/command-executor/shell-path.d.ts +1 -2
- package/dist/shared/command-executor.d.ts +1 -4
- package/dist/shared/git-worktree/collect-git-diff-stats.d.ts +1 -2
- package/dist/shared/git-worktree/format-file-changes.d.ts +1 -2
- package/dist/shared/git-worktree/index.d.ts +1 -7
- package/dist/shared/git-worktree/parse-diff-numstat.d.ts +1 -2
- package/dist/shared/git-worktree/parse-status-porcelain-line.d.ts +1 -6
- package/dist/shared/git-worktree/parse-status-porcelain.d.ts +1 -2
- package/dist/shared/git-worktree/types.d.ts +1 -7
- package/dist/shared/internal-initiator-marker.d.ts +1 -46
- package/dist/shared/logger.d.ts +3 -11
- package/dist/shared/migration/agent-category.d.ts +1 -19
- package/dist/shared/migration/agent-names.d.ts +1 -6
- package/dist/shared/migration/config-migration.d.ts +1 -1
- package/dist/shared/migration/hook-names.d.ts +1 -6
- package/dist/shared/migration/migrations-sidecar.d.ts +1 -41
- package/dist/shared/migration/model-versions.d.ts +1 -22
- package/dist/shared/migration.d.ts +1 -5
- package/dist/shared/model-suggestion-retry.d.ts +39 -17
- package/dist/shared/plugin-identity.d.ts +8 -8
- package/dist/shared/posthog.d.ts +3 -0
- package/dist/shared/process-stream-reader.d.ts +1 -3
- package/dist/shared/prompt-async-gate/message-inspection-error.d.ts +1 -1
- package/dist/shared/prompt-async-gate/pending-tool-turn.d.ts +1 -11
- package/dist/shared/prompt-async-gate/prompt-message-state.d.ts +1 -9
- package/dist/shared/prompt-async-gate/queue.d.ts +1 -8
- package/dist/shared/prompt-async-gate/recent-dispatches.d.ts +1 -14
- package/dist/shared/prompt-async-gate/reservations.d.ts +1 -9
- package/dist/shared/prompt-async-gate/semantic-dedupe.d.ts +1 -7
- package/dist/shared/prompt-async-gate/session-idle-dispatch.d.ts +1 -16
- package/dist/shared/prompt-async-gate/timing.d.ts +1 -9
- package/dist/shared/prompt-async-gate/types.d.ts +1 -123
- package/dist/shared/prompt-async-gate.d.ts +3 -7
- package/dist/shared/prompt-failure-classifier.d.ts +1 -9
- package/dist/shared/session-idle-settle.d.ts +1 -12
- package/dist/shared/shell-env.d.ts +1 -1
- package/dist/shared/skill-path-resolver.d.ts +1 -1
- package/dist/shared/tmux/cmux-detect.d.ts +1 -8
- package/dist/shared/tmux/constants.d.ts +1 -5
- package/dist/shared/tmux/runner.d.ts +2 -13
- package/dist/shared/tmux/tmux-utils/adapter-deps.d.ts +9 -0
- package/dist/shared/tmux/tmux-utils/environment.d.ts +2 -4
- package/dist/shared/tmux/tmux-utils/layout.d.ts +4 -17
- package/dist/shared/tmux/tmux-utils/pane-close.d.ts +3 -10
- package/dist/shared/tmux/tmux-utils/pane-command.d.ts +1 -2
- package/dist/shared/tmux/tmux-utils/pane-dimensions.d.ts +2 -4
- package/dist/shared/tmux/tmux-utils/pane-replace.d.ts +1 -11
- package/dist/shared/tmux/tmux-utils/pane-spawn.d.ts +1 -13
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +2 -15
- package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +3 -14
- package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/stale-session-sweep.d.ts +4 -17
- package/dist/shared/tmux/tmux-utils/window-spawn.d.ts +1 -13
- package/dist/shared/tmux/types.d.ts +1 -4
- package/dist/shared/write-file-atomically.d.ts +2 -0
- package/dist/shared/zip-entry-listing/powershell-zip-entry-listing.d.ts +1 -4
- package/dist/shared/zip-entry-listing/python-zip-entry-listing.d.ts +1 -3
- package/dist/shared/zip-entry-listing/read-zip-symlink-target.d.ts +1 -1
- package/dist/shared/zip-entry-listing/tar-zip-entry-listing.d.ts +1 -3
- package/dist/shared/zip-entry-listing/zipinfo-zip-entry-listing.d.ts +1 -4
- package/dist/shared/zip-entry-listing.d.ts +1 -4
- package/dist/skills/ast-grep/LICENSE +21 -0
- package/dist/skills/ast-grep/README.md +136 -0
- package/dist/skills/ast-grep/SKILL.md +272 -0
- package/dist/skills/ast-grep/SOURCE +1 -0
- package/dist/skills/ast-grep/install.ps1 +235 -0
- package/dist/skills/ast-grep/install.sh +286 -0
- package/dist/skills/ast-grep/references/cli.md +231 -0
- package/dist/skills/ast-grep/references/install.md +166 -0
- package/dist/skills/ast-grep/references/patterns.md +147 -0
- package/dist/skills/ast-grep/references/pitfalls.md +303 -0
- package/dist/skills/ast-grep/references/recipes.md +402 -0
- package/dist/skills/ast-grep/references/sgconfig.md +248 -0
- package/dist/skills/ast-grep/references/yaml-rules.md +509 -0
- package/dist/skills/ast-grep/scripts/ast_grep_helper.py +748 -0
- package/dist/skills/ast-grep/tests/smoke.ps1 +123 -0
- package/dist/skills/ast-grep/tests/smoke.sh +212 -0
- package/dist/skills/debugging/SKILL.md +116 -0
- package/dist/skills/debugging/references/methodology/00-setup.md +108 -0
- package/dist/skills/debugging/references/methodology/02-investigate.md +130 -0
- package/dist/skills/debugging/references/methodology/04-oracle-triple.md +136 -0
- package/dist/skills/debugging/references/methodology/05-escalate.md +69 -0
- package/dist/skills/debugging/references/methodology/06-fix.md +116 -0
- package/dist/skills/debugging/references/methodology/08-qa.md +94 -0
- package/dist/skills/debugging/references/methodology/09-cleanup.md +164 -0
- package/dist/skills/debugging/references/methodology/partial-runtime-evidence.md +229 -0
- package/dist/skills/debugging/references/runtimes/bundled-js-binary.md +415 -0
- package/dist/skills/debugging/references/runtimes/go.md +252 -0
- package/dist/skills/debugging/references/runtimes/native-binary.md +484 -0
- package/dist/skills/debugging/references/runtimes/node.md +260 -0
- package/dist/skills/debugging/references/runtimes/python.md +248 -0
- package/dist/skills/debugging/references/runtimes/rust.md +234 -0
- package/dist/skills/debugging/references/tools/ghidra.md +212 -0
- package/dist/skills/debugging/references/tools/playwright-cli.md +194 -0
- package/dist/skills/debugging/references/tools/pwndbg.md +263 -0
- package/dist/skills/debugging/references/tools/pwntools.md +265 -0
- package/dist/skills/frontend/ATTRIBUTION.md +127 -0
- package/dist/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
- package/dist/skills/frontend/SKILL.md +113 -0
- package/dist/skills/frontend/references/design/README.md +240 -0
- package/dist/skills/frontend/references/design/_INDEX.md +189 -0
- package/dist/skills/frontend/references/design/airbnb.md +390 -0
- package/dist/skills/frontend/references/design/airtable.md +89 -0
- package/dist/skills/frontend/references/design/apple.md +247 -0
- package/dist/skills/frontend/references/design/binance.md +345 -0
- package/dist/skills/frontend/references/design/bmw.md +180 -0
- package/dist/skills/frontend/references/design/brutalist-skill.md +92 -0
- package/dist/skills/frontend/references/design/bugatti.md +268 -0
- package/dist/skills/frontend/references/design/cal.md +259 -0
- package/dist/skills/frontend/references/design/claude.md +312 -0
- package/dist/skills/frontend/references/design/clay.md +304 -0
- package/dist/skills/frontend/references/design/clickhouse.md +281 -0
- package/dist/skills/frontend/references/design/cohere.md +266 -0
- package/dist/skills/frontend/references/design/coinbase.md +129 -0
- package/dist/skills/frontend/references/design/composio.md +307 -0
- package/dist/skills/frontend/references/design/cursor.md +309 -0
- package/dist/skills/frontend/references/design/design-system-architecture.md +217 -0
- package/dist/skills/frontend/references/design/elevenlabs.md +265 -0
- package/dist/skills/frontend/references/design/expo.md +281 -0
- package/dist/skills/frontend/references/design/ferrari.md +314 -0
- package/dist/skills/frontend/references/design/figma.md +220 -0
- package/dist/skills/frontend/references/design/framer.md +246 -0
- package/dist/skills/frontend/references/design/gpt-tasteskill.md +74 -0
- package/dist/skills/frontend/references/design/hashicorp.md +278 -0
- package/dist/skills/frontend/references/design/ibm.md +332 -0
- package/dist/skills/frontend/references/design/image-to-code-skill.md +1228 -0
- package/dist/skills/frontend/references/design/imagegen-brandkit.md +798 -0
- package/dist/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
- package/dist/skills/frontend/references/design/imagegen-frontend-web.md +686 -0
- package/dist/skills/frontend/references/design/intercom.md +146 -0
- package/dist/skills/frontend/references/design/kraken.md +125 -0
- package/dist/skills/frontend/references/design/lamborghini.md +288 -0
- package/dist/skills/frontend/references/design/linear.app.md +367 -0
- package/dist/skills/frontend/references/design/lovable.md +298 -0
- package/dist/skills/frontend/references/design/mastercard.md +365 -0
- package/dist/skills/frontend/references/design/meta.md +366 -0
- package/dist/skills/frontend/references/design/minimalist-skill.md +85 -0
- package/dist/skills/frontend/references/design/minimax.md +257 -0
- package/dist/skills/frontend/references/design/mintlify.md +326 -0
- package/dist/skills/frontend/references/design/miro.md +108 -0
- package/dist/skills/frontend/references/design/mistral.ai.md +261 -0
- package/dist/skills/frontend/references/design/mongodb.md +266 -0
- package/dist/skills/frontend/references/design/nike.md +363 -0
- package/dist/skills/frontend/references/design/notion.md +309 -0
- package/dist/skills/frontend/references/design/nvidia.md +293 -0
- package/dist/skills/frontend/references/design/ollama.md +267 -0
- package/dist/skills/frontend/references/design/opencode.ai.md +281 -0
- package/dist/skills/frontend/references/design/output-skill.md +49 -0
- package/dist/skills/frontend/references/design/pinterest.md +230 -0
- package/dist/skills/frontend/references/design/playstation.md +364 -0
- package/dist/skills/frontend/references/design/posthog.md +256 -0
- package/dist/skills/frontend/references/design/raycast.md +268 -0
- package/dist/skills/frontend/references/design/react-dev-tooling-skill.md +230 -0
- package/dist/skills/frontend/references/design/redesign-skill.md +178 -0
- package/dist/skills/frontend/references/design/renault.md +311 -0
- package/dist/skills/frontend/references/design/replicate.md +261 -0
- package/dist/skills/frontend/references/design/resend.md +303 -0
- package/dist/skills/frontend/references/design/revolut.md +185 -0
- package/dist/skills/frontend/references/design/runwayml.md +244 -0
- package/dist/skills/frontend/references/design/sanity.md +357 -0
- package/dist/skills/frontend/references/design/sentry.md +262 -0
- package/dist/skills/frontend/references/design/shopify.md +350 -0
- package/dist/skills/frontend/references/design/soft-skill.md +98 -0
- package/dist/skills/frontend/references/design/spacex.md +194 -0
- package/dist/skills/frontend/references/design/spotify.md +246 -0
- package/dist/skills/frontend/references/design/starbucks.md +580 -0
- package/dist/skills/frontend/references/design/stitch-skill.md +184 -0
- package/dist/skills/frontend/references/design/stripe.md +322 -0
- package/dist/skills/frontend/references/design/supabase.md +255 -0
- package/dist/skills/frontend/references/design/superhuman.md +252 -0
- package/dist/skills/frontend/references/design/taste-skill.md +226 -0
- package/dist/skills/frontend/references/design/tesla.md +286 -0
- package/dist/skills/frontend/references/design/theverge.md +339 -0
- package/dist/skills/frontend/references/design/together.ai.md +263 -0
- package/dist/skills/frontend/references/design/uber.md +295 -0
- package/dist/skills/frontend/references/design/vercel.md +310 -0
- package/dist/skills/frontend/references/design/vodafone.md +423 -0
- package/dist/skills/frontend/references/design/voltagent.md +323 -0
- package/dist/skills/frontend/references/design/warp.md +253 -0
- package/dist/skills/frontend/references/design/webflow.md +92 -0
- package/dist/skills/frontend/references/design/wired.md +278 -0
- package/dist/skills/frontend/references/design/wise.md +173 -0
- package/dist/skills/frontend/references/design/x.ai.md +257 -0
- package/dist/skills/frontend/references/design/zapier.md +328 -0
- package/dist/skills/frontend/references/perfection/README.md +160 -0
- package/dist/skills/frontend/references/perfection/react-perf-tooling.md +127 -0
- package/dist/skills/frontend/references/ui-ux-db/README.md +273 -0
- package/dist/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
- package/dist/skills/frontend/references/ui-ux-db/data/colors.csv +97 -0
- package/dist/skills/frontend/references/ui-ux-db/data/icons.csv +101 -0
- package/dist/skills/frontend/references/ui-ux-db/data/landing.csv +31 -0
- package/dist/skills/frontend/references/ui-ux-db/data/products.csv +97 -0
- package/dist/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/dist/skills/frontend/references/ui-ux-db/data/styles.csv +68 -0
- package/dist/skills/frontend/references/ui-ux-db/data/typography.csv +58 -0
- package/dist/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +101 -0
- package/dist/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/dist/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
- package/dist/skills/frontend/references/ui-ux-db/scripts/core.py +253 -0
- package/dist/skills/frontend/references/ui-ux-db/scripts/design_system.py +1067 -0
- package/dist/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
- package/dist/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
- package/dist/skills/git-master/SKILL.md +100 -0
- package/dist/skills/git-master/agents/openai.yaml +13 -0
- package/dist/skills/init-deep/SKILL.md +309 -0
- package/dist/skills/lcx-contribute-bug-fix/SKILL.md +242 -0
- package/dist/skills/lcx-contribute-bug-fix/agents/openai.yaml +12 -0
- package/dist/skills/lcx-contribute-bug-fix/scripts/create-pr-body.mjs +107 -0
- package/dist/skills/lcx-doctor/SKILL.md +93 -0
- package/dist/skills/lcx-doctor/agents/openai.yaml +11 -0
- package/dist/skills/lcx-report-bug/SKILL.md +237 -0
- package/dist/skills/lcx-report-bug/agents/openai.yaml +11 -0
- package/dist/skills/lsp-setup/SKILL.md +139 -0
- package/dist/skills/lsp-setup/references/bash/README.md +60 -0
- package/dist/skills/lsp-setup/references/c-cpp/README.md +61 -0
- package/dist/skills/lsp-setup/references/csharp/README.md +71 -0
- package/dist/skills/lsp-setup/references/dart/README.md +48 -0
- package/dist/skills/lsp-setup/references/elixir/README.md +51 -0
- package/dist/skills/lsp-setup/references/go/README.md +57 -0
- package/dist/skills/lsp-setup/references/haskell/README.md +57 -0
- package/dist/skills/lsp-setup/references/java/README.md +57 -0
- package/dist/skills/lsp-setup/references/julia/README.md +60 -0
- package/dist/skills/lsp-setup/references/kotlin/README.md +59 -0
- package/dist/skills/lsp-setup/references/lua/README.md +66 -0
- package/dist/skills/lsp-setup/references/php/README.md +62 -0
- package/dist/skills/lsp-setup/references/python/README.md +71 -0
- package/dist/skills/lsp-setup/references/ruby/README.md +53 -0
- package/dist/skills/lsp-setup/references/rust/README.md +59 -0
- package/dist/skills/lsp-setup/references/swift/README.md +51 -0
- package/dist/skills/lsp-setup/references/terraform/README.md +62 -0
- package/dist/skills/lsp-setup/references/typescript/README.md +77 -0
- package/dist/skills/lsp-setup/references/yaml/README.md +70 -0
- package/dist/skills/lsp-setup/references/zig/README.md +49 -0
- package/dist/skills/lsp-setup/scripts/detect-lsp.ts +210 -0
- package/dist/skills/lsp-setup/scripts/lsp-server-table.ts +177 -0
- package/dist/skills/lsp-setup/scripts/tsconfig.json +17 -0
- package/dist/skills/lsp-setup/scripts/verify-lsp.ts +147 -0
- package/dist/skills/programming/SKILL.md +463 -0
- package/dist/skills/programming/references/go/README.md +90 -0
- package/dist/skills/programming/references/go/backend-stack.md +641 -0
- package/dist/skills/programming/references/go/bootstrap.md +328 -0
- package/dist/skills/programming/references/go/bubbletea-v2.md +360 -0
- package/dist/skills/programming/references/go/cobra-stack.md +468 -0
- package/dist/skills/programming/references/go/concurrency.md +362 -0
- package/dist/skills/programming/references/go/data-modeling.md +329 -0
- package/dist/skills/programming/references/go/error-handling.md +359 -0
- package/dist/skills/programming/references/go/golangci-strict.md +236 -0
- package/dist/skills/programming/references/go/grpc-connect.md +375 -0
- package/dist/skills/programming/references/go/libraries.md +337 -0
- package/dist/skills/programming/references/go/one-liners.md +202 -0
- package/dist/skills/programming/references/go/sqlc-pgx.md +471 -0
- package/dist/skills/programming/references/go/testing.md +467 -0
- package/dist/skills/programming/references/go/type-patterns.md +298 -0
- package/dist/skills/programming/references/python/README.md +314 -0
- package/dist/skills/programming/references/python/async-anyio.md +442 -0
- package/dist/skills/programming/references/python/data-modeling.md +233 -0
- package/dist/skills/programming/references/python/data-processing.md +133 -0
- package/dist/skills/programming/references/python/error-handling.md +218 -0
- package/dist/skills/programming/references/python/fastapi-stack.md +316 -0
- package/dist/skills/programming/references/python/httpx2-optimization.md +360 -0
- package/dist/skills/programming/references/python/libraries.md +307 -0
- package/dist/skills/programming/references/python/one-liners.md +268 -0
- package/dist/skills/programming/references/python/orjson-stack.md +378 -0
- package/dist/skills/programming/references/python/pydantic-ai.md +285 -0
- package/dist/skills/programming/references/python/pyproject-strict.md +232 -0
- package/dist/skills/programming/references/python/textual-tui.md +201 -0
- package/dist/skills/programming/references/python/type-patterns.md +176 -0
- package/dist/skills/programming/references/rust/README.md +317 -0
- package/dist/skills/programming/references/rust/async-tokio.md +299 -0
- package/dist/skills/programming/references/rust/axum-stack.md +467 -0
- package/dist/skills/programming/references/rust/cargo-strict.md +317 -0
- package/dist/skills/programming/references/rust/clap-stack.md +409 -0
- package/dist/skills/programming/references/rust/concurrency.md +375 -0
- package/dist/skills/programming/references/rust/libraries.md +439 -0
- package/dist/skills/programming/references/rust/one-liners.md +291 -0
- package/dist/skills/programming/references/rust/proptest-insta.md +429 -0
- package/dist/skills/programming/references/rust/type-state.md +354 -0
- package/dist/skills/programming/references/rust/unsafe-discipline.md +250 -0
- package/dist/skills/programming/references/rust/zero-cost-safety.md +527 -0
- package/dist/skills/programming/references/rust-ub/README.md +289 -0
- package/dist/skills/programming/references/rust-ub/miri-sanitizers-loom.md +411 -0
- package/dist/skills/programming/references/rust-ub/ub-taxonomy.md +269 -0
- package/dist/skills/programming/references/typescript/README.md +195 -0
- package/dist/skills/programming/references/typescript/backend-hono.md +672 -0
- package/dist/skills/programming/references/typescript/bootstrap.md +199 -0
- package/dist/skills/programming/references/typescript/data-modeling.md +202 -0
- package/dist/skills/programming/references/typescript/error-handling.md +169 -0
- package/dist/skills/programming/references/typescript/tsconfig-strict.md +152 -0
- package/dist/skills/programming/references/typescript/type-patterns.md +196 -0
- package/dist/skills/programming/scripts/go/check-no-excuse-rules.sh +173 -0
- package/dist/skills/programming/scripts/go/new-project.py +138 -0
- package/dist/skills/programming/scripts/go/templates/.editorconfig +13 -0
- package/dist/skills/programming/scripts/go/templates/.golangci.yml +95 -0
- package/dist/skills/programming/scripts/go/templates/AGENTS.md.tmpl +24 -0
- package/dist/skills/programming/scripts/go/templates/README.md.tmpl +12 -0
- package/dist/skills/programming/scripts/go/templates/Taskfile.yml +40 -0
- package/dist/skills/programming/scripts/go/templates/ci.yml +37 -0
- package/dist/skills/programming/scripts/go/templates/config.go +24 -0
- package/dist/skills/programming/scripts/go/templates/gitignore +15 -0
- package/dist/skills/programming/scripts/go/templates/main.go.tmpl +22 -0
- package/dist/skills/programming/scripts/go/templates/run.go +15 -0
- package/dist/skills/programming/scripts/python/check-no-excuse-rules.py +687 -0
- package/dist/skills/programming/scripts/python/new-project.py +172 -0
- package/dist/skills/programming/scripts/python/new-script.py +116 -0
- package/dist/skills/programming/scripts/rust/check-no-excuse-rules.py +296 -0
- package/dist/skills/programming/scripts/rust/check-no-excuse-rules.sh +158 -0
- package/dist/skills/programming/scripts/rust/new-project.py +175 -0
- package/dist/skills/programming/scripts/typescript/check-no-excuse-rules.ts +282 -0
- package/dist/skills/programming/scripts/typescript/new-project.ts +177 -0
- package/dist/skills/refactor/SKILL.md +754 -0
- package/dist/skills/remove-ai-slops/SKILL.md +317 -0
- package/dist/skills/review-work/SKILL.md +594 -0
- package/dist/skills/start-work/SKILL.md +178 -0
- package/dist/skills/ultraresearch/SKILL.md +230 -0
- package/dist/skills/ulw-plan/SKILL.md +69 -0
- package/dist/skills/ulw-plan/agents/openai.yaml +7 -0
- package/dist/skills/ulw-plan/references/full-workflow.md +99 -0
- package/dist/skills/ulw-plan/references/intent-clear.md +44 -0
- package/dist/skills/ulw-plan/references/intent-unclear.md +44 -0
- package/dist/skills/ulw-plan/scripts/scaffold-plan.mjs +301 -0
- package/dist/skills/visual-qa/SKILL.md +235 -0
- package/dist/skills/visual-qa/references/agent-browser-setup.md +44 -0
- package/dist/skills/visual-qa/scripts/ansi.test.ts +45 -0
- package/dist/skills/visual-qa/scripts/ansi.ts +17 -0
- package/dist/skills/visual-qa/scripts/cli.test.ts +73 -0
- package/dist/skills/visual-qa/scripts/cli.ts +82 -0
- package/dist/skills/visual-qa/scripts/east-asian-width.test.ts +60 -0
- package/dist/skills/visual-qa/scripts/east-asian-width.ts +72 -0
- package/dist/skills/visual-qa/scripts/image-diff.test.ts +70 -0
- package/dist/skills/visual-qa/scripts/image-diff.ts +109 -0
- package/dist/skills/visual-qa/scripts/png-crc.ts +27 -0
- package/dist/skills/visual-qa/scripts/png-decode.test.ts +44 -0
- package/dist/skills/visual-qa/scripts/png-decode.ts +206 -0
- package/dist/skills/visual-qa/scripts/png-synth.ts +57 -0
- package/dist/skills/visual-qa/scripts/skill-prompt-contract.test.ts +127 -0
- package/dist/skills/visual-qa/scripts/tui-grid.test.ts +57 -0
- package/dist/skills/visual-qa/scripts/tui-grid.ts +88 -0
- package/dist/skills/visual-qa/scripts/types.ts +54 -0
- package/dist/tools/delegate-task/background-task-description.d.ts +2 -0
- package/dist/tools/delegate-task/constants.d.ts +13 -1
- package/dist/tools/delegate-task/model-selection.d.ts +3 -17
- package/dist/tools/delegate-task/model-string-parser.d.ts +1 -9
- package/dist/tools/delegate-task/sync-result-fetcher.d.ts +1 -0
- package/dist/tools/delegate-task/sync-session-poller.d.ts +1 -0
- package/dist/tools/delegate-task/types.d.ts +59 -2
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/monitor/create-monitor-tools.d.ts +4 -0
- package/dist/tools/monitor/index.d.ts +1 -0
- package/dist/tools/monitor/monitor-list.d.ts +7 -0
- package/dist/tools/monitor/monitor-output.d.ts +3 -0
- package/dist/tools/monitor/monitor-start.d.ts +9 -0
- package/dist/tools/monitor/monitor-stop.d.ts +16 -0
- package/dist/tools/skill/native-skills.d.ts +2 -2
- package/dist/tools/skill/scope-priority.d.ts +1 -4
- package/dist/tools/skill/skill-matcher.d.ts +1 -5
- package/dist/tools/task/types.d.ts +10 -10
- package/dist/tui.d.ts +4 -0
- package/dist/tui.js +69330 -0
- package/package.json +57 -36
- package/packages/git-bash-mcp/dist/cli.js +225 -55
- package/packages/lsp-core/package.json +41 -0
- package/packages/lsp-core/src/index.ts +28 -0
- package/packages/lsp-core/src/lsp/cleanup-errors.ts +5 -0
- package/packages/lsp-core/src/lsp/client-wrapper.ts +173 -0
- package/packages/lsp-core/src/lsp/client.ts +172 -0
- package/packages/lsp-core/src/lsp/config-loader.ts +266 -0
- package/packages/lsp-core/src/lsp/connection.ts +73 -0
- package/packages/lsp-core/src/lsp/constants.ts +11 -0
- package/packages/lsp-core/src/lsp/directory-diagnostics.ts +154 -0
- package/packages/lsp-core/src/lsp/effective-extension.ts +10 -0
- package/packages/lsp-core/src/lsp/errors.ts +63 -0
- package/packages/lsp-core/src/lsp/formatters.ts +141 -0
- package/packages/lsp-core/src/lsp/infer-extension.ts +66 -0
- package/packages/lsp-core/src/lsp/json-rpc-connection.ts +296 -0
- package/packages/lsp-core/src/lsp/language-mappings.ts +173 -0
- package/packages/lsp-core/src/lsp/manager.ts +369 -0
- package/packages/lsp-core/src/lsp/process-signal-cleanup.ts +21 -0
- package/packages/lsp-core/src/lsp/process.ts +202 -0
- package/packages/lsp-core/src/lsp/server-definitions.ts +176 -0
- package/packages/lsp-core/src/lsp/server-install-state.ts +70 -0
- package/packages/lsp-core/src/lsp/server-installation.ts +45 -0
- package/packages/lsp-core/src/lsp/server-resolution.ts +104 -0
- package/packages/lsp-core/src/lsp/startup-failure.ts +1 -0
- package/packages/lsp-core/src/lsp/transport.ts +299 -0
- package/packages/lsp-core/src/lsp/types.ts +126 -0
- package/packages/lsp-core/src/lsp/utils.test.ts +72 -0
- package/packages/lsp-core/src/lsp/utils.ts +40 -0
- package/packages/lsp-core/src/lsp/workspace-edit.ts +206 -0
- package/packages/lsp-core/src/mcp-protocol-pin.test.ts +68 -0
- package/packages/lsp-core/src/mcp.ts +95 -0
- package/packages/lsp-core/src/missing-dependency-result.ts +19 -0
- package/packages/lsp-core/src/request-context.ts +22 -0
- package/packages/lsp-core/src/tool-surface.test.ts +157 -0
- package/packages/lsp-core/src/tools/definitions.ts +141 -0
- package/packages/lsp-core/src/tools/diagnostics.ts +97 -0
- package/packages/lsp-core/src/tools/index.ts +10 -0
- package/packages/lsp-core/src/tools/install-decision.ts +39 -0
- package/packages/lsp-core/src/tools/navigation.ts +86 -0
- package/packages/lsp-core/src/tools/parameters.ts +49 -0
- package/packages/lsp-core/src/tools/rename.ts +72 -0
- package/packages/lsp-core/src/tools/result.ts +5 -0
- package/packages/lsp-core/src/tools/runtime.ts +21 -0
- package/packages/lsp-core/src/tools/schema.ts +9 -0
- package/packages/lsp-core/src/tools/status.ts +28 -0
- package/packages/lsp-core/src/tools/symbols.ts +99 -0
- package/packages/lsp-core/src/tools/types.ts +104 -0
- package/packages/lsp-core/src/tools.ts +1 -0
- package/packages/lsp-daemon/dist/cli.js +712 -527
- package/packages/lsp-daemon/dist/daemon-client.d.ts +1 -1
- package/packages/lsp-daemon/dist/daemon-server.js +1 -1
- package/packages/lsp-daemon/dist/index.d.ts +1 -1
- package/packages/lsp-daemon/dist/index.js +687 -500
- package/packages/lsp-daemon/dist/proxy.d.ts +3 -2
- package/packages/lsp-daemon/dist/proxy.js +16 -40
- package/packages/lsp-daemon/dist/request-routing.d.ts +2 -2
- package/packages/lsp-daemon/dist/request-routing.js +2 -2
- package/packages/lsp-daemon/package.json +2 -1
- package/packages/lsp-tools-mcp/dist/cli.js +3348 -15
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.d.ts +1 -13
- package/packages/lsp-tools-mcp/dist/lsp/client.d.ts +1 -20
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.d.ts +1 -16
- package/packages/lsp-tools-mcp/dist/lsp/connection.d.ts +1 -4
- package/packages/lsp-tools-mcp/dist/lsp/constants.d.ts +1 -10
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.d.ts +1 -3
- package/packages/lsp-tools-mcp/dist/lsp/effective-extension.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.d.ts +1 -35
- package/packages/lsp-tools-mcp/dist/lsp/formatters.d.ts +1 -12
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.d.ts +1 -36
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.d.ts +1 -4
- package/packages/lsp-tools-mcp/dist/lsp/manager.d.ts +1 -46
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +1390 -265
- package/packages/lsp-tools-mcp/dist/lsp/process-signal-cleanup.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/process.d.ts +1 -25
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.d.ts +1 -4
- package/packages/lsp-tools-mcp/dist/lsp/server-install-state.d.ts +1 -12
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.d.ts +1 -11
- package/packages/lsp-tools-mcp/dist/lsp/startup-failure.d.ts +1 -3
- package/packages/lsp-tools-mcp/dist/lsp/transport.d.ts +1 -35
- package/packages/lsp-tools-mcp/dist/lsp/types.d.ts +1 -124
- package/packages/lsp-tools-mcp/dist/lsp/utils.d.ts +1 -0
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.d.ts +1 -11
- package/packages/lsp-tools-mcp/dist/mcp.d.ts +1 -30
- package/packages/lsp-tools-mcp/dist/mcp.js +3312 -70
- package/packages/lsp-tools-mcp/dist/missing-dependency-result.d.ts +1 -2
- package/packages/lsp-tools-mcp/dist/request-context.d.ts +1 -7
- package/packages/lsp-tools-mcp/dist/request-context.js +16 -10
- package/packages/lsp-tools-mcp/dist/tools.d.ts +1 -90
- package/packages/lsp-tools-mcp/dist/tools.js +3028 -439
- package/packages/lsp-tools-mcp/package.json +3 -1
- package/packages/omo-codex/THIRD-PARTY-NOTICES.md +155 -0
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/.mcp.json +6 -5
- package/packages/omo-codex/plugin/README.md +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +1637 -1245
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/scripts/generate-manifests.mjs +8 -52
- package/packages/omo-codex/plugin/components/bootstrap/src/provision.ts +35 -143
- package/packages/omo-codex/plugin/components/bootstrap/src/setup.ts +11 -11
- package/packages/omo-codex/plugin/components/bootstrap/test/environment.test.ts +3 -2
- package/packages/omo-codex/plugin/components/bootstrap/test/provision.test.ts +37 -37
- package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +2205 -0
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.d.ts +32 -0
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +1603 -0
- package/packages/omo-codex/plugin/components/codegraph/package.json +27 -0
- package/packages/omo-codex/plugin/components/codegraph/src/cli.ts +55 -0
- package/packages/omo-codex/plugin/components/codegraph/src/hook-types.ts +83 -0
- package/packages/omo-codex/plugin/components/codegraph/src/hook.ts +108 -0
- package/packages/omo-codex/plugin/components/codegraph/src/serve.ts +191 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-worker.ts +213 -0
- package/packages/omo-codex/plugin/components/codegraph/test/hook.test.ts +563 -0
- package/packages/omo-codex/plugin/components/codegraph/test/serve.test.ts +401 -0
- package/packages/omo-codex/plugin/components/codegraph/tsconfig.build.json +13 -0
- package/packages/omo-codex/plugin/components/codegraph/tsconfig.json +25 -0
- package/packages/omo-codex/plugin/components/comment-checker/dist/cli.js +610 -7
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +4 -3
- package/packages/omo-codex/plugin/components/comment-checker/src/apply-patch.ts +28 -156
- package/packages/omo-codex/plugin/components/comment-checker/src/core-values.ts +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/src/core.ts +2 -2
- package/packages/omo-codex/plugin/components/comment-checker/src/request-extractor.ts +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/src/runner.ts +6 -2
- package/packages/omo-codex/plugin/components/comment-checker/test/core.test.ts +38 -35
- package/packages/omo-codex/plugin/components/comment-checker/test/fixtures/apply-patch-mixed-requests.ts +60 -0
- package/packages/omo-codex/plugin/components/git-bash/dist/cli.js +155 -26
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +2 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/biome.json +48 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/directive.md +11 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/cli.js +223 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/codex-hook.d.ts +2 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/codex-hook.js +123 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/directive.d.ts +2 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/directive.js +5 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/index.d.ts +4 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/index.js +3 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/state.d.ts +9 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/state.js +45 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/types.d.ts +39 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/types.js +1 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +17 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +44 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/cli.ts +56 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/codex-hook.ts +129 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/directive.ts +13 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/index.ts +4 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/state.ts +62 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/types.ts +38 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/test/cli.test.ts +124 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/test/codex-hook.test.ts +346 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/tsconfig.build.json +12 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/tsconfig.json +27 -0
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/vitest.config.ts +10 -0
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +3738 -28
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/bundled-rules/hephaestus.md +1 -1
- package/packages/omo-codex/plugin/components/rules/dist/cli.js +4565 -89
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +4 -3
- package/packages/omo-codex/plugin/components/rules/src/cli.ts +16 -3
- package/packages/omo-codex/plugin/components/rules/src/config.ts +3 -3
- package/packages/omo-codex/plugin/components/rules/src/dynamic-target-fingerprints.ts +6 -6
- package/packages/omo-codex/plugin/components/rules/src/event-budget.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/src/persistent-cache.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/src/post-compact-budget.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/src/rules-engine-factory.ts +9 -4
- package/packages/omo-codex/plugin/components/rules/src/static-injection.ts +3 -3
- package/packages/omo-codex/plugin/components/rules/src/transcript-rule-filter.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/test/bundled-rules-priority.test.ts +4 -4
- package/packages/omo-codex/plugin/components/rules/test/bundled-rules.test.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/test/dynamic-target-fingerprints.test.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/test/engine.test.ts +3 -3
- package/packages/omo-codex/plugin/components/rules/test/finder.test.ts +2 -2
- package/packages/omo-codex/plugin/components/rules/test/formatter.test.ts +2 -2
- package/packages/omo-codex/plugin/components/rules/test/matcher.test.ts +2 -2
- package/packages/omo-codex/plugin/components/rules/test/parser.test.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/test/post-compact-budget.test.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/test/rules-engine-consumption.test.ts +92 -0
- package/packages/omo-codex/plugin/components/rules/test/scanner.test.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/test/sources.test.ts +4 -4
- package/packages/omo-codex/plugin/components/rules/test/windows-git-bash-bundled-rule.test.ts +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/cli.js +394 -37
- package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +4 -3
- package/packages/omo-codex/plugin/components/start-work-continuation/src/boulder-reader.ts +20 -147
- package/packages/omo-codex/plugin/components/start-work-continuation/src/codex-hook.ts +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/src/index.ts +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/test/boulder-reader.test.ts +151 -27
- package/packages/omo-codex/plugin/components/start-work-continuation/test/codex-hook.test.ts +87 -49
- package/packages/omo-codex/plugin/components/telemetry/LICENSE +21 -0
- package/packages/omo-codex/plugin/components/telemetry/NOTICE +6 -0
- package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +5869 -42
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +5783 -108
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +4 -5
- package/packages/omo-codex/plugin/components/telemetry/src/codex-hook.ts +3 -3
- package/packages/omo-codex/plugin/components/telemetry/src/posthog.ts +92 -142
- package/packages/omo-codex/plugin/components/telemetry/src/product-identity.ts +59 -3
- package/packages/omo-codex/plugin/components/telemetry/test/codex-hook-diagnostics.test.ts +3 -3
- package/packages/omo-codex/plugin/components/telemetry/test/diagnostics.test.ts +13 -7
- package/packages/omo-codex/plugin/components/ultrawork/AGENTS.md +2 -2
- 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/lazycodex-clone-fidelity-reviewer.toml +31 -0
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-code-reviewer.toml +29 -0
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-executor.toml +24 -0
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-gate-reviewer.toml +23 -0
- package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-qa-executor.toml +22 -0
- package/packages/omo-codex/plugin/components/ultrawork/agents/librarian.toml +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/agents/plan.toml +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +104 -156
- package/packages/omo-codex/plugin/components/ultrawork/dist/cli.js +162 -37
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +4 -3
- package/packages/omo-codex/plugin/components/ultrawork/scripts/sync-directive.mjs +11 -0
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +47 -20
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +55 -88
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-clear.md +44 -0
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-unclear.md +44 -0
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/scripts/scaffold-plan.mjs +301 -0
- package/packages/omo-codex/plugin/components/ultrawork/src/codex-hook.ts +2 -2
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook-test-helpers.ts +101 -0
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook-trigger-policy.test.ts +111 -0
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook.test.ts +24 -128
- package/packages/omo-codex/plugin/components/ultrawork/test/directive-source.test.ts +16 -0
- package/packages/omo-codex/plugin/components/ultrawork/test/package-smoke.test.ts +4 -2
- package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint-reconciliation.d.ts +5 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint-reconciliation.js +79 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint.d.ts +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint.js +56 -82
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-commands.js +38 -144
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-subcommands.d.ts +10 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-subcommands.js +173 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +2419 -32
- package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-goal-instruction.js +13 -9
- package/packages/omo-codex/plugin/components/ulw-loop/dist/domain-types.d.ts +60 -12
- package/packages/omo-codex/plugin/components/ulw-loop/dist/evidence.d.ts +3 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/evidence.js +67 -10
- package/packages/omo-codex/plugin/components/ulw-loop/dist/goal-status.d.ts +3 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/goal-status.js +14 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-crud.d.ts +2 -6
- package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-crud.js +49 -39
- package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-goal-factory.d.ts +8 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-goal-factory.js +109 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate-blockers.d.ts +5 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate-blockers.js +41 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate-fields.d.ts +8 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate-fields.js +39 -0
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate.d.ts +13 -6
- package/packages/omo-codex/plugin/components/ulw-loop/dist/quality-gate.js +176 -105
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +17 -17
- package/packages/omo-codex/plugin/components/ulw-loop/src/checkpoint-reconciliation.ts +100 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/checkpoint.ts +162 -85
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli-commands.ts +62 -136
- package/packages/omo-codex/plugin/components/ulw-loop/src/cli-subcommands.ts +250 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/codex-goal-instruction.ts +18 -9
- package/packages/omo-codex/plugin/components/ulw-loop/src/domain-types.ts +67 -4
- package/packages/omo-codex/plugin/components/ulw-loop/src/evidence.ts +124 -18
- package/packages/omo-codex/plugin/components/ulw-loop/src/goal-status.ts +16 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/plan-crud.ts +131 -54
- package/packages/omo-codex/plugin/components/ulw-loop/src/plan-goal-factory.ts +124 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/quality-gate-blockers.ts +48 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/quality-gate-fields.ts +44 -0
- package/packages/omo-codex/plugin/components/ulw-loop/src/quality-gate.ts +230 -138
- package/packages/omo-codex/plugin/components/ulw-loop/test/checkpoint-final.test.ts +186 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/checkpoint-status.test.ts +85 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/checkpoint.test.ts +120 -192
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-checkpoint.test.ts +215 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-commands.test.ts +1 -195
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-complete-goals.test.ts +15 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-create-goals.test.ts +172 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-helpers.test.ts +0 -6
- package/packages/omo-codex/plugin/components/ulw-loop/test/codex-goal-instruction.test.ts +39 -8
- package/packages/omo-codex/plugin/components/ulw-loop/test/evidence-criteria-gate.test.ts +29 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/artifacts/browser-screenshot.txt +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/artifacts/cli-pass.txt +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/artifacts/code-review.md +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/artifacts/data-diff.txt +5 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/artifacts/gate-review.md +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/artifacts/http-dump.txt +4 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/artifacts/rejection.txt +1 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/checkpoint-builders.ts +98 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/quality-gate-builder.ts +91 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/sample-quality-gate.json +110 -8
- package/packages/omo-codex/plugin/components/ulw-loop/test/goal-status.test.ts +35 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/plan-crud.test.ts +11 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/quality-gate-blockers.test.ts +102 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/quality-gate-doc.test.ts +38 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/quality-gate-roles.test.ts +131 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/quality-gate.test.ts +150 -176
- package/packages/omo-codex/plugin/components/ulw-loop/test/skill-contract.test.ts +12 -0
- package/packages/omo-codex/plugin/hooks/hooks.json +38 -17
- package/packages/omo-codex/plugin/package-lock.json +144 -49
- package/packages/omo-codex/plugin/package.json +4 -2
- package/packages/omo-codex/plugin/scripts/auto-update.mjs +2 -0
- package/packages/omo-codex/plugin/scripts/build-bundled-mcp-runtimes.mjs +0 -5
- package/packages/omo-codex/plugin/scripts/build-components.mjs +29 -5
- package/packages/omo-codex/plugin/scripts/hook-status-message.mjs +2 -0
- package/packages/omo-codex/plugin/scripts/migrate-omo-sot/editor.mjs +125 -0
- package/packages/omo-codex/plugin/scripts/migrate-omo-sot/jsonc.mjs +43 -0
- package/packages/omo-codex/plugin/scripts/migrate-omo-sot/scaffold.mjs +29 -0
- package/packages/omo-codex/plugin/scripts/migrate-omo-sot.mjs +121 -0
- package/packages/omo-codex/plugin/scripts/sync-skills.mjs +5 -5
- package/packages/omo-codex/plugin/shared/package.json +24 -0
- package/packages/omo-codex/plugin/shared/src/config-loader.ts +28 -0
- package/packages/omo-codex/plugin/shared/test/config-loader.test.ts +105 -0
- package/packages/omo-codex/plugin/shared/tsconfig.build.json +9 -0
- package/packages/omo-codex/plugin/shared/tsconfig.json +16 -0
- package/packages/omo-codex/plugin/skills/ast-grep/LICENSE +21 -0
- package/packages/omo-codex/plugin/skills/ast-grep/README.md +136 -0
- package/packages/omo-codex/plugin/skills/ast-grep/SKILL.md +272 -0
- package/packages/omo-codex/plugin/skills/ast-grep/SOURCE +1 -0
- package/packages/omo-codex/plugin/skills/ast-grep/install.ps1 +235 -0
- package/packages/omo-codex/plugin/skills/ast-grep/install.sh +286 -0
- package/packages/omo-codex/plugin/skills/ast-grep/references/cli.md +231 -0
- package/packages/omo-codex/plugin/skills/ast-grep/references/install.md +166 -0
- package/packages/omo-codex/plugin/skills/ast-grep/references/patterns.md +147 -0
- package/packages/omo-codex/plugin/skills/ast-grep/references/pitfalls.md +303 -0
- package/packages/omo-codex/plugin/skills/ast-grep/references/recipes.md +402 -0
- package/packages/omo-codex/plugin/skills/ast-grep/references/sgconfig.md +248 -0
- package/packages/omo-codex/plugin/skills/ast-grep/references/yaml-rules.md +509 -0
- package/packages/omo-codex/plugin/skills/ast-grep/scripts/ast_grep_helper.py +748 -0
- package/packages/omo-codex/plugin/skills/ast-grep/tests/smoke.ps1 +123 -0
- package/packages/omo-codex/plugin/skills/ast-grep/tests/smoke.sh +212 -0
- package/packages/omo-codex/plugin/skills/frontend/ATTRIBUTION.md +127 -0
- package/packages/omo-codex/plugin/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
- package/packages/omo-codex/plugin/skills/frontend/SKILL.md +113 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/README.md +240 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/_INDEX.md +189 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/airbnb.md +390 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/airtable.md +89 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/apple.md +247 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/binance.md +345 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/bmw.md +180 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/brutalist-skill.md +92 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/bugatti.md +268 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/cal.md +259 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/claude.md +312 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/clay.md +304 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/clickhouse.md +281 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/cohere.md +266 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/coinbase.md +129 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/composio.md +307 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/cursor.md +309 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/design-system-architecture.md +217 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/elevenlabs.md +265 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/expo.md +281 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/ferrari.md +314 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/figma.md +220 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/framer.md +246 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/gpt-tasteskill.md +74 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/hashicorp.md +278 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/ibm.md +332 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/image-to-code-skill.md +1228 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/imagegen-brandkit.md +798 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/imagegen-frontend-web.md +686 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/intercom.md +146 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/kraken.md +125 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/lamborghini.md +288 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/linear.app.md +367 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/lovable.md +298 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/mastercard.md +365 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/meta.md +366 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/minimalist-skill.md +85 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/minimax.md +257 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/mintlify.md +326 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/miro.md +108 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/mistral.ai.md +261 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/mongodb.md +266 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/nike.md +363 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/notion.md +309 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/nvidia.md +293 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/ollama.md +267 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/opencode.ai.md +281 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/output-skill.md +49 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/pinterest.md +230 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/playstation.md +364 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/posthog.md +256 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/raycast.md +268 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/react-dev-tooling-skill.md +230 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/redesign-skill.md +178 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/renault.md +311 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/replicate.md +261 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/resend.md +303 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/revolut.md +185 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/runwayml.md +244 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/sanity.md +357 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/sentry.md +262 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/shopify.md +350 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/soft-skill.md +98 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/spacex.md +194 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/spotify.md +246 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/starbucks.md +580 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/stitch-skill.md +184 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/stripe.md +322 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/supabase.md +255 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/superhuman.md +252 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/taste-skill.md +226 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/tesla.md +286 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/theverge.md +339 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/together.ai.md +263 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/uber.md +295 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/vercel.md +310 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/vodafone.md +423 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/voltagent.md +323 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/warp.md +253 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/webflow.md +92 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/wired.md +278 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/wise.md +173 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/x.ai.md +257 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/zapier.md +328 -0
- package/packages/omo-codex/plugin/skills/frontend/references/perfection/README.md +160 -0
- package/packages/omo-codex/plugin/skills/frontend/references/perfection/react-perf-tooling.md +127 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/README.md +273 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/colors.csv +97 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/icons.csv +101 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/landing.csv +31 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/products.csv +97 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/styles.csv +68 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/typography.csv +58 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +101 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/scripts/core.py +253 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/scripts/design_system.py +1067 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
- package/packages/omo-codex/plugin/skills/init-deep/SKILL.md +3 -3
- package/packages/omo-codex/plugin/skills/refactor/SKILL.md +14 -23
- package/packages/omo-codex/plugin/skills/remove-ai-slops/SKILL.md +2 -2
- package/packages/omo-codex/plugin/skills/review-work/SKILL.md +2 -2
- package/packages/omo-codex/plugin/skills/start-work/SKILL.md +3 -3
- package/packages/omo-codex/plugin/skills/ultraresearch/SKILL.md +2 -2
- package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +17 -17
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +47 -20
- package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +55 -88
- package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-clear.md +44 -0
- package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-unclear.md +44 -0
- package/packages/omo-codex/plugin/skills/ulw-plan/scripts/scaffold-plan.mjs +301 -0
- package/packages/omo-codex/plugin/skills/visual-qa/SKILL.md +19 -3
- package/packages/omo-codex/plugin/skills/visual-qa/references/agent-browser-setup.md +44 -0
- package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +119 -11
- package/packages/omo-codex/plugin/test/aggregate-build.test.mjs +2 -4
- package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +29 -2
- package/packages/omo-codex/plugin/test/aggregate-manifest.test.mjs +2 -0
- package/packages/omo-codex/plugin/test/aggregate-mcp.test.mjs +12 -12
- package/packages/omo-codex/plugin/test/auto-update.test.mjs +26 -0
- package/packages/omo-codex/plugin/test/component-bundled-cli.test.mjs +287 -0
- package/packages/omo-codex/plugin/test/component-hook-contract-cases.mjs +199 -0
- package/packages/omo-codex/plugin/test/hook-status-message.test.mjs +38 -2
- package/packages/omo-codex/plugin/test/index.js +13 -0
- package/packages/omo-codex/plugin/test/install-time-build-runtime.test.mjs +4 -5
- package/packages/omo-codex/plugin/test/mcp-research-servers.test.mjs +5 -3
- package/packages/omo-codex/plugin/test/migrate-omo-sot.test.mjs +179 -0
- package/packages/omo-codex/plugin/test/payload-equivalence.test.mjs +109 -0
- package/packages/omo-codex/plugin/test/scaffold-plan.test.mjs +165 -0
- package/packages/omo-codex/plugin/test/sync-skills-orchestration.test.mjs +6 -6
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +2 -3
- package/packages/omo-codex/plugin/test/sync-skills.test.mjs +37 -1
- package/packages/omo-codex/scripts/install-bin-links.test.mjs +3 -3
- package/packages/omo-codex/scripts/install-cache-copy.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-cli-args.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-config-autonomous-features.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-config-autonomous.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-config-git-bash.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-config-preservation.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-config-reasoning.test.mjs +1 -2
- package/packages/omo-codex/scripts/install-config.test.mjs +8 -6
- package/packages/omo-codex/scripts/install-delegated-command.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +13377 -0
- package/packages/omo-codex/scripts/install-generated-bundle.test.mjs +55 -0
- package/packages/omo-codex/scripts/install-git-bash-mcp-env.test.mjs +3 -4
- package/packages/omo-codex/scripts/install-hook-targets.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-local.mjs +54 -237
- package/packages/omo-codex/scripts/install-local.test.mjs +8 -1
- package/packages/omo-codex/scripts/install-marketplace-cache.test.mjs +3 -3
- package/packages/omo-codex/scripts/install-mcp-runtime.test.mjs +34 -77
- package/packages/omo-codex/scripts/install-packaged-local.test.mjs +8 -4
- package/packages/omo-codex/scripts/install-project-local-cleanup.test.mjs +1 -1
- package/packages/shared-skills/package.json +6 -1
- package/packages/shared-skills/skills/ast-grep/LICENSE +21 -0
- package/packages/shared-skills/skills/ast-grep/README.md +136 -0
- package/packages/shared-skills/skills/ast-grep/SKILL.md +272 -0
- package/packages/shared-skills/skills/ast-grep/SOURCE +1 -0
- package/packages/shared-skills/skills/ast-grep/install.ps1 +235 -0
- package/packages/shared-skills/skills/ast-grep/install.sh +286 -0
- package/packages/shared-skills/skills/ast-grep/references/cli.md +231 -0
- package/packages/shared-skills/skills/ast-grep/references/install.md +166 -0
- package/packages/shared-skills/skills/ast-grep/references/patterns.md +147 -0
- package/packages/shared-skills/skills/ast-grep/references/pitfalls.md +303 -0
- package/packages/shared-skills/skills/ast-grep/references/recipes.md +402 -0
- package/packages/shared-skills/skills/ast-grep/references/sgconfig.md +248 -0
- package/packages/shared-skills/skills/ast-grep/references/yaml-rules.md +509 -0
- package/packages/shared-skills/skills/ast-grep/scripts/ast_grep_helper.py +748 -0
- package/packages/shared-skills/skills/ast-grep/tests/smoke.ps1 +123 -0
- package/packages/shared-skills/skills/ast-grep/tests/smoke.sh +212 -0
- package/packages/shared-skills/skills/frontend/ATTRIBUTION.md +127 -0
- package/packages/shared-skills/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
- package/packages/shared-skills/skills/frontend/SKILL.md +113 -0
- package/packages/shared-skills/skills/frontend/references/design/README.md +240 -0
- package/packages/shared-skills/skills/frontend/references/design/_INDEX.md +189 -0
- package/packages/shared-skills/skills/frontend/references/design/airbnb.md +390 -0
- package/packages/shared-skills/skills/frontend/references/design/airtable.md +89 -0
- package/packages/shared-skills/skills/frontend/references/design/apple.md +247 -0
- package/packages/shared-skills/skills/frontend/references/design/binance.md +345 -0
- package/packages/shared-skills/skills/frontend/references/design/bmw.md +180 -0
- package/packages/shared-skills/skills/frontend/references/design/brutalist-skill.md +92 -0
- package/packages/shared-skills/skills/frontend/references/design/bugatti.md +268 -0
- package/packages/shared-skills/skills/frontend/references/design/cal.md +259 -0
- package/packages/shared-skills/skills/frontend/references/design/claude.md +312 -0
- package/packages/shared-skills/skills/frontend/references/design/clay.md +304 -0
- package/packages/shared-skills/skills/frontend/references/design/clickhouse.md +281 -0
- package/packages/shared-skills/skills/frontend/references/design/cohere.md +266 -0
- package/packages/shared-skills/skills/frontend/references/design/coinbase.md +129 -0
- package/packages/shared-skills/skills/frontend/references/design/composio.md +307 -0
- package/packages/shared-skills/skills/frontend/references/design/cursor.md +309 -0
- package/packages/shared-skills/skills/frontend/references/design/design-system-architecture.md +217 -0
- package/packages/shared-skills/skills/frontend/references/design/elevenlabs.md +265 -0
- package/packages/shared-skills/skills/frontend/references/design/expo.md +281 -0
- package/packages/shared-skills/skills/frontend/references/design/ferrari.md +314 -0
- package/packages/shared-skills/skills/frontend/references/design/figma.md +220 -0
- package/packages/shared-skills/skills/frontend/references/design/framer.md +246 -0
- package/packages/shared-skills/skills/frontend/references/design/gpt-tasteskill.md +74 -0
- package/packages/shared-skills/skills/frontend/references/design/hashicorp.md +278 -0
- package/packages/shared-skills/skills/frontend/references/design/ibm.md +332 -0
- package/packages/shared-skills/skills/frontend/references/design/image-to-code-skill.md +1228 -0
- package/packages/shared-skills/skills/frontend/references/design/imagegen-brandkit.md +798 -0
- package/packages/shared-skills/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
- package/packages/shared-skills/skills/frontend/references/design/imagegen-frontend-web.md +686 -0
- package/packages/shared-skills/skills/frontend/references/design/intercom.md +146 -0
- package/packages/shared-skills/skills/frontend/references/design/kraken.md +125 -0
- package/packages/shared-skills/skills/frontend/references/design/lamborghini.md +288 -0
- package/packages/shared-skills/skills/frontend/references/design/linear.app.md +367 -0
- package/packages/shared-skills/skills/frontend/references/design/lovable.md +298 -0
- package/packages/shared-skills/skills/frontend/references/design/mastercard.md +365 -0
- package/packages/shared-skills/skills/frontend/references/design/meta.md +366 -0
- package/packages/shared-skills/skills/frontend/references/design/minimalist-skill.md +85 -0
- package/packages/shared-skills/skills/frontend/references/design/minimax.md +257 -0
- package/packages/shared-skills/skills/frontend/references/design/mintlify.md +326 -0
- package/packages/shared-skills/skills/frontend/references/design/miro.md +108 -0
- package/packages/shared-skills/skills/frontend/references/design/mistral.ai.md +261 -0
- package/packages/shared-skills/skills/frontend/references/design/mongodb.md +266 -0
- package/packages/shared-skills/skills/frontend/references/design/nike.md +363 -0
- package/packages/shared-skills/skills/frontend/references/design/notion.md +309 -0
- package/packages/shared-skills/skills/frontend/references/design/nvidia.md +293 -0
- package/packages/shared-skills/skills/frontend/references/design/ollama.md +267 -0
- package/packages/shared-skills/skills/frontend/references/design/opencode.ai.md +281 -0
- package/packages/shared-skills/skills/frontend/references/design/output-skill.md +49 -0
- package/packages/shared-skills/skills/frontend/references/design/pinterest.md +230 -0
- package/packages/shared-skills/skills/frontend/references/design/playstation.md +364 -0
- package/packages/shared-skills/skills/frontend/references/design/posthog.md +256 -0
- package/packages/shared-skills/skills/frontend/references/design/raycast.md +268 -0
- package/packages/shared-skills/skills/frontend/references/design/react-dev-tooling-skill.md +230 -0
- package/packages/shared-skills/skills/frontend/references/design/redesign-skill.md +178 -0
- package/packages/shared-skills/skills/frontend/references/design/renault.md +311 -0
- package/packages/shared-skills/skills/frontend/references/design/replicate.md +261 -0
- package/packages/shared-skills/skills/frontend/references/design/resend.md +303 -0
- package/packages/shared-skills/skills/frontend/references/design/revolut.md +185 -0
- package/packages/shared-skills/skills/frontend/references/design/runwayml.md +244 -0
- package/packages/shared-skills/skills/frontend/references/design/sanity.md +357 -0
- package/packages/shared-skills/skills/frontend/references/design/sentry.md +262 -0
- package/packages/shared-skills/skills/frontend/references/design/shopify.md +350 -0
- package/packages/shared-skills/skills/frontend/references/design/soft-skill.md +98 -0
- package/packages/shared-skills/skills/frontend/references/design/spacex.md +194 -0
- package/packages/shared-skills/skills/frontend/references/design/spotify.md +246 -0
- package/packages/shared-skills/skills/frontend/references/design/starbucks.md +580 -0
- package/packages/shared-skills/skills/frontend/references/design/stitch-skill.md +184 -0
- package/packages/shared-skills/skills/frontend/references/design/stripe.md +322 -0
- package/packages/shared-skills/skills/frontend/references/design/supabase.md +255 -0
- package/packages/shared-skills/skills/frontend/references/design/superhuman.md +252 -0
- package/packages/shared-skills/skills/frontend/references/design/taste-skill.md +226 -0
- package/packages/shared-skills/skills/frontend/references/design/tesla.md +286 -0
- package/packages/shared-skills/skills/frontend/references/design/theverge.md +339 -0
- package/packages/shared-skills/skills/frontend/references/design/together.ai.md +263 -0
- package/packages/shared-skills/skills/frontend/references/design/uber.md +295 -0
- package/packages/shared-skills/skills/frontend/references/design/vercel.md +310 -0
- package/packages/shared-skills/skills/frontend/references/design/vodafone.md +423 -0
- package/packages/shared-skills/skills/frontend/references/design/voltagent.md +323 -0
- package/packages/shared-skills/skills/frontend/references/design/warp.md +253 -0
- package/packages/shared-skills/skills/frontend/references/design/webflow.md +92 -0
- package/packages/shared-skills/skills/frontend/references/design/wired.md +278 -0
- package/packages/shared-skills/skills/frontend/references/design/wise.md +173 -0
- package/packages/shared-skills/skills/frontend/references/design/x.ai.md +257 -0
- package/packages/shared-skills/skills/frontend/references/design/zapier.md +328 -0
- package/packages/shared-skills/skills/frontend/references/perfection/README.md +160 -0
- package/packages/shared-skills/skills/frontend/references/perfection/react-perf-tooling.md +127 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/README.md +273 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/colors.csv +97 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/icons.csv +101 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/landing.csv +31 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/products.csv +97 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/styles.csv +68 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/typography.csv +58 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +101 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/scripts/core.py +253 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/scripts/design_system.py +1067 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
- package/packages/shared-skills/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
- package/packages/shared-skills/skills/init-deep/SKILL.md +1 -1
- package/packages/shared-skills/skills/refactor/SKILL.md +12 -21
- package/packages/shared-skills/skills/review-work/SKILL.md +11 -9
- package/packages/shared-skills/skills/start-work/SKILL.md +5 -4
- package/packages/shared-skills/skills/ultraresearch/SKILL.md +9 -8
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +69 -0
- package/packages/shared-skills/skills/ulw-plan/agents/openai.yaml +7 -0
- package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +99 -0
- package/packages/shared-skills/skills/ulw-plan/references/intent-clear.md +44 -0
- package/packages/shared-skills/skills/ulw-plan/references/intent-unclear.md +44 -0
- package/packages/shared-skills/skills/ulw-plan/scripts/scaffold-plan.mjs +301 -0
- package/packages/shared-skills/skills/visual-qa/SKILL.md +17 -1
- package/packages/shared-skills/skills/visual-qa/references/agent-browser-setup.md +44 -0
- package/packages/shared-skills/skills/visual-qa/scripts/skill-prompt-contract.test.ts +48 -4
- package/dist/cli/doctor/constants.d.ts +0 -32
- package/dist/cli/doctor/spawn-with-timeout.d.ts +0 -8
- package/dist/cli/doctor/types.d.ts +0 -148
- package/dist/features/builtin-skills/skills/frontend-ui-ux.d.ts +0 -2
- package/dist/mcp/ast-grep.d.ts +0 -11
- package/packages/ast-grep-mcp/dist/cli.js +0 -1159
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.js +0 -6
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.js +0 -132
- package/packages/lsp-tools-mcp/dist/lsp/client.js +0 -131
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.js +0 -220
- package/packages/lsp-tools-mcp/dist/lsp/connection.js +0 -66
- package/packages/lsp-tools-mcp/dist/lsp/constants.js +0 -10
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.js +0 -125
- package/packages/lsp-tools-mcp/dist/lsp/effective-extension.js +0 -8
- package/packages/lsp-tools-mcp/dist/lsp/errors.js +0 -56
- package/packages/lsp-tools-mcp/dist/lsp/formatters.js +0 -106
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.js +0 -59
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.js +0 -247
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.js +0 -170
- package/packages/lsp-tools-mcp/dist/lsp/process-signal-cleanup.js +0 -17
- package/packages/lsp-tools-mcp/dist/lsp/process.js +0 -153
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.js +0 -170
- package/packages/lsp-tools-mcp/dist/lsp/server-install-state.js +0 -51
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.js +0 -40
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.js +0 -86
- package/packages/lsp-tools-mcp/dist/lsp/startup-failure.js +0 -35
- package/packages/lsp-tools-mcp/dist/lsp/transport.js +0 -241
- package/packages/lsp-tools-mcp/dist/lsp/types.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.js +0 -175
- package/packages/lsp-tools-mcp/dist/missing-dependency-result.js +0 -14
- package/packages/omo-codex/plugin/components/bootstrap/manifests/ast-grep.json +0 -22
- package/packages/omo-codex/plugin/components/comment-checker/dist/apply-patch.d.ts +0 -7
- package/packages/omo-codex/plugin/components/comment-checker/dist/apply-patch.js +0 -173
- package/packages/omo-codex/plugin/components/comment-checker/dist/codex-hook.d.ts +0 -22
- package/packages/omo-codex/plugin/components/comment-checker/dist/codex-hook.js +0 -165
- package/packages/omo-codex/plugin/components/comment-checker/dist/core-values.d.ts +0 -1
- package/packages/omo-codex/plugin/components/comment-checker/dist/core-values.js +0 -1
- package/packages/omo-codex/plugin/components/comment-checker/dist/core.d.ts +0 -5
- package/packages/omo-codex/plugin/components/comment-checker/dist/core.js +0 -4
- package/packages/omo-codex/plugin/components/comment-checker/dist/hook-input.d.ts +0 -6
- package/packages/omo-codex/plugin/components/comment-checker/dist/hook-input.js +0 -10
- package/packages/omo-codex/plugin/components/comment-checker/dist/record.d.ts +0 -2
- package/packages/omo-codex/plugin/components/comment-checker/dist/record.js +0 -11
- package/packages/omo-codex/plugin/components/comment-checker/dist/request-extractor.d.ts +0 -3
- package/packages/omo-codex/plugin/components/comment-checker/dist/request-extractor.js +0 -104
- package/packages/omo-codex/plugin/components/comment-checker/dist/runner.d.ts +0 -26
- package/packages/omo-codex/plugin/components/comment-checker/dist/runner.js +0 -144
- package/packages/omo-codex/plugin/components/comment-checker/dist/types.d.ts +0 -43
- package/packages/omo-codex/plugin/components/comment-checker/dist/types.js +0 -1
- package/packages/omo-codex/plugin/components/comment-checker/src/record.ts +0 -11
- package/packages/omo-codex/plugin/components/rules/dist/codex-hook-options.d.ts +0 -5
- package/packages/omo-codex/plugin/components/rules/dist/codex-hook-options.js +0 -1
- package/packages/omo-codex/plugin/components/rules/dist/codex-hook.d.ts +0 -47
- package/packages/omo-codex/plugin/components/rules/dist/codex-hook.js +0 -127
- package/packages/omo-codex/plugin/components/rules/dist/config.d.ts +0 -2
- package/packages/omo-codex/plugin/components/rules/dist/config.js +0 -100
- package/packages/omo-codex/plugin/components/rules/dist/context-pressure.d.ts +0 -2
- package/packages/omo-codex/plugin/components/rules/dist/context-pressure.js +0 -26
- package/packages/omo-codex/plugin/components/rules/dist/debug-log.d.ts +0 -8
- package/packages/omo-codex/plugin/components/rules/dist/debug-log.js +0 -36
- package/packages/omo-codex/plugin/components/rules/dist/dynamic-target-fingerprints.d.ts +0 -7
- package/packages/omo-codex/plugin/components/rules/dist/dynamic-target-fingerprints.js +0 -65
- package/packages/omo-codex/plugin/components/rules/dist/event-budget.d.ts +0 -3
- package/packages/omo-codex/plugin/components/rules/dist/event-budget.js +0 -14
- package/packages/omo-codex/plugin/components/rules/dist/hook-output.d.ts +0 -2
- package/packages/omo-codex/plugin/components/rules/dist/hook-output.js +0 -24
- package/packages/omo-codex/plugin/components/rules/dist/path-utils.d.ts +0 -4
- package/packages/omo-codex/plugin/components/rules/dist/path-utils.js +0 -24
- package/packages/omo-codex/plugin/components/rules/dist/persistent-cache.d.ts +0 -13
- package/packages/omo-codex/plugin/components/rules/dist/persistent-cache.js +0 -172
- package/packages/omo-codex/plugin/components/rules/dist/post-compact-budget.d.ts +0 -6
- package/packages/omo-codex/plugin/components/rules/dist/post-compact-budget.js +0 -74
- package/packages/omo-codex/plugin/components/rules/dist/post-compact-claim.d.ts +0 -4
- package/packages/omo-codex/plugin/components/rules/dist/post-compact-claim.js +0 -6
- package/packages/omo-codex/plugin/components/rules/dist/post-compact-directive.d.ts +0 -1
- package/packages/omo-codex/plugin/components/rules/dist/post-compact-directive.js +0 -32
- package/packages/omo-codex/plugin/components/rules/dist/post-compact-state.d.ts +0 -13
- package/packages/omo-codex/plugin/components/rules/dist/post-compact-state.js +0 -29
- package/packages/omo-codex/plugin/components/rules/dist/rules/cache.d.ts +0 -9
- package/packages/omo-codex/plugin/components/rules/dist/rules/cache.js +0 -51
- package/packages/omo-codex/plugin/components/rules/dist/rules/constants.d.ts +0 -70
- package/packages/omo-codex/plugin/components/rules/dist/rules/constants.js +0 -101
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-dynamic-cache.d.ts +0 -5
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-dynamic-cache.js +0 -60
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-dynamic-loader.d.ts +0 -6
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-dynamic-loader.js +0 -61
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-loader.d.ts +0 -7
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-loader.js +0 -60
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-paths.d.ts +0 -11
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-paths.js +0 -75
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-static-loader.d.ts +0 -6
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-static-loader.js +0 -29
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-types.d.ts +0 -44
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine-types.js +0 -1
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine.d.ts +0 -5
- package/packages/omo-codex/plugin/components/rules/dist/rules/engine.js +0 -85
- package/packages/omo-codex/plugin/components/rules/dist/rules/errors.d.ts +0 -6
- package/packages/omo-codex/plugin/components/rules/dist/rules/errors.js +0 -12
- package/packages/omo-codex/plugin/components/rules/dist/rules/finder-cache.d.ts +0 -14
- package/packages/omo-codex/plugin/components/rules/dist/rules/finder-cache.js +0 -51
- package/packages/omo-codex/plugin/components/rules/dist/rules/finder-paths.d.ts +0 -6
- package/packages/omo-codex/plugin/components/rules/dist/rules/finder-paths.js +0 -33
- package/packages/omo-codex/plugin/components/rules/dist/rules/finder-sources.d.ts +0 -5
- package/packages/omo-codex/plugin/components/rules/dist/rules/finder-sources.js +0 -40
- package/packages/omo-codex/plugin/components/rules/dist/rules/finder.d.ts +0 -28
- package/packages/omo-codex/plugin/components/rules/dist/rules/finder.js +0 -146
- package/packages/omo-codex/plugin/components/rules/dist/rules/formatter.d.ts +0 -7
- package/packages/omo-codex/plugin/components/rules/dist/rules/formatter.js +0 -112
- package/packages/omo-codex/plugin/components/rules/dist/rules/matcher.d.ts +0 -18
- package/packages/omo-codex/plugin/components/rules/dist/rules/matcher.js +0 -93
- package/packages/omo-codex/plugin/components/rules/dist/rules/ordering.d.ts +0 -3
- package/packages/omo-codex/plugin/components/rules/dist/rules/ordering.js +0 -27
- package/packages/omo-codex/plugin/components/rules/dist/rules/parser-frontmatter.d.ts +0 -7
- package/packages/omo-codex/plugin/components/rules/dist/rules/parser-frontmatter.js +0 -30
- package/packages/omo-codex/plugin/components/rules/dist/rules/parser-yaml.d.ts +0 -2
- package/packages/omo-codex/plugin/components/rules/dist/rules/parser-yaml.js +0 -237
- package/packages/omo-codex/plugin/components/rules/dist/rules/parser.d.ts +0 -3
- package/packages/omo-codex/plugin/components/rules/dist/rules/parser.js +0 -31
- package/packages/omo-codex/plugin/components/rules/dist/rules/plugin-root.d.ts +0 -1
- package/packages/omo-codex/plugin/components/rules/dist/rules/plugin-root.js +0 -48
- package/packages/omo-codex/plugin/components/rules/dist/rules/project-root.d.ts +0 -1
- package/packages/omo-codex/plugin/components/rules/dist/rules/project-root.js +0 -23
- package/packages/omo-codex/plugin/components/rules/dist/rules/scanner.d.ts +0 -14
- package/packages/omo-codex/plugin/components/rules/dist/rules/scanner.js +0 -111
- package/packages/omo-codex/plugin/components/rules/dist/rules/sources.d.ts +0 -3
- package/packages/omo-codex/plugin/components/rules/dist/rules/sources.js +0 -9
- package/packages/omo-codex/plugin/components/rules/dist/rules/truncator.d.ts +0 -18
- package/packages/omo-codex/plugin/components/rules/dist/rules/truncator.js +0 -59
- package/packages/omo-codex/plugin/components/rules/dist/rules/types.d.ts +0 -126
- package/packages/omo-codex/plugin/components/rules/dist/rules/types.js +0 -8
- package/packages/omo-codex/plugin/components/rules/dist/rules-engine-factory.d.ts +0 -6
- package/packages/omo-codex/plugin/components/rules/dist/rules-engine-factory.js +0 -20
- package/packages/omo-codex/plugin/components/rules/dist/session-state-lock.d.ts +0 -3
- package/packages/omo-codex/plugin/components/rules/dist/session-state-lock.js +0 -41
- package/packages/omo-codex/plugin/components/rules/dist/sparkshell-awareness.d.ts +0 -10
- package/packages/omo-codex/plugin/components/rules/dist/sparkshell-awareness.js +0 -90
- package/packages/omo-codex/plugin/components/rules/dist/static-injection.d.ts +0 -3
- package/packages/omo-codex/plugin/components/rules/dist/static-injection.js +0 -128
- package/packages/omo-codex/plugin/components/rules/dist/tool-paths.d.ts +0 -6
- package/packages/omo-codex/plugin/components/rules/dist/tool-paths.js +0 -168
- package/packages/omo-codex/plugin/components/rules/dist/transcript-rule-filter.d.ts +0 -4
- package/packages/omo-codex/plugin/components/rules/dist/transcript-rule-filter.js +0 -49
- package/packages/omo-codex/plugin/components/rules/dist/transcript-search.d.ts +0 -4
- package/packages/omo-codex/plugin/components/rules/dist/transcript-search.js +0 -91
- package/packages/omo-codex/plugin/components/rules/src/rules/cache.ts +0 -64
- package/packages/omo-codex/plugin/components/rules/src/rules/constants.ts +0 -122
- package/packages/omo-codex/plugin/components/rules/src/rules/engine-dynamic-cache.ts +0 -87
- package/packages/omo-codex/plugin/components/rules/src/rules/engine-dynamic-loader.ts +0 -94
- package/packages/omo-codex/plugin/components/rules/src/rules/engine-loader.ts +0 -84
- package/packages/omo-codex/plugin/components/rules/src/rules/engine-paths.ts +0 -103
- package/packages/omo-codex/plugin/components/rules/src/rules/engine-static-loader.ts +0 -43
- package/packages/omo-codex/plugin/components/rules/src/rules/engine-types.ts +0 -45
- package/packages/omo-codex/plugin/components/rules/src/rules/engine.ts +0 -123
- package/packages/omo-codex/plugin/components/rules/src/rules/errors.ts +0 -13
- package/packages/omo-codex/plugin/components/rules/src/rules/finder-cache.ts +0 -73
- package/packages/omo-codex/plugin/components/rules/src/rules/finder-paths.ts +0 -47
- package/packages/omo-codex/plugin/components/rules/src/rules/finder-sources.ts +0 -45
- package/packages/omo-codex/plugin/components/rules/src/rules/finder.ts +0 -220
- package/packages/omo-codex/plugin/components/rules/src/rules/formatter.ts +0 -149
- package/packages/omo-codex/plugin/components/rules/src/rules/matcher.ts +0 -142
- package/packages/omo-codex/plugin/components/rules/src/rules/ordering.ts +0 -33
- package/packages/omo-codex/plugin/components/rules/src/rules/parser-frontmatter.ts +0 -39
- package/packages/omo-codex/plugin/components/rules/src/rules/parser-yaml.ts +0 -271
- package/packages/omo-codex/plugin/components/rules/src/rules/parser.ts +0 -35
- package/packages/omo-codex/plugin/components/rules/src/rules/plugin-root.ts +0 -55
- package/packages/omo-codex/plugin/components/rules/src/rules/project-root.ts +0 -30
- package/packages/omo-codex/plugin/components/rules/src/rules/scanner.ts +0 -162
- package/packages/omo-codex/plugin/components/rules/src/rules/sources.ts +0 -13
- package/packages/omo-codex/plugin/components/rules/src/rules/truncator.ts +0 -84
- package/packages/omo-codex/plugin/components/rules/src/rules/types.ts +0 -141
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/boulder-reader.d.ts +0 -16
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/boulder-reader.js +0 -146
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/cli.d.ts +0 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/codex-hook.d.ts +0 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/codex-hook.js +0 -80
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/directive.d.ts +0 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/directive.js +0 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/index.d.ts +0 -5
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/index.js +0 -3
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/types.d.ts +0 -20
- package/packages/omo-codex/plugin/components/start-work-continuation/dist/types.js +0 -1
- package/packages/omo-codex/plugin/components/telemetry/dist/atomic-write.d.ts +0 -1
- package/packages/omo-codex/plugin/components/telemetry/dist/atomic-write.js +0 -18
- package/packages/omo-codex/plugin/components/telemetry/dist/cli.d.ts +0 -2
- package/packages/omo-codex/plugin/components/telemetry/dist/codex-hook.d.ts +0 -15
- package/packages/omo-codex/plugin/components/telemetry/dist/codex-hook.js +0 -42
- package/packages/omo-codex/plugin/components/telemetry/dist/data-path.d.ts +0 -10
- package/packages/omo-codex/plugin/components/telemetry/dist/data-path.js +0 -35
- package/packages/omo-codex/plugin/components/telemetry/dist/diagnostics.d.ts +0 -12
- package/packages/omo-codex/plugin/components/telemetry/dist/diagnostics.js +0 -108
- package/packages/omo-codex/plugin/components/telemetry/dist/env-flags.d.ts +0 -4
- package/packages/omo-codex/plugin/components/telemetry/dist/env-flags.js +0 -31
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog-activity-state.d.ts +0 -8
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog-activity-state.js +0 -68
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.d.ts +0 -21
- package/packages/omo-codex/plugin/components/telemetry/dist/product-identity.d.ts +0 -8
- package/packages/omo-codex/plugin/components/telemetry/dist/product-identity.js +0 -29
- package/packages/omo-codex/plugin/components/telemetry/src/atomic-write.ts +0 -22
- package/packages/omo-codex/plugin/components/telemetry/src/data-path.ts +0 -45
- package/packages/omo-codex/plugin/components/telemetry/src/diagnostics.ts +0 -154
- package/packages/omo-codex/plugin/components/telemetry/src/env-flags.ts +0 -43
- package/packages/omo-codex/plugin/components/telemetry/src/posthog-activity-state.ts +0 -97
- package/packages/omo-codex/plugin/components/ultrawork/agents/codex-ultrawork-reviewer.toml +0 -21
- package/packages/omo-codex/plugin/components/ultrawork/dist/cli.d.ts +0 -2
- package/packages/omo-codex/plugin/components/ultrawork/dist/codex-hook.d.ts +0 -7
- package/packages/omo-codex/plugin/components/ultrawork/dist/codex-hook.js +0 -122
- package/packages/omo-codex/plugin/components/ultrawork/dist/directive.d.ts +0 -1
- package/packages/omo-codex/plugin/components/ultrawork/dist/directive.js +0 -2
- package/packages/omo-codex/plugin/skills/frontend-ui-ux/SKILL.md +0 -77
- package/packages/omo-codex/plugin/test/start-work-skill.test.mjs +0 -85
- package/packages/omo-codex/plugin/test/ulw-plan-skill.test.mjs +0 -89
- package/packages/omo-codex/scripts/atomic-write.test.mjs +0 -82
- package/packages/omo-codex/scripts/install/agent-source-roots.mjs +0 -13
- package/packages/omo-codex/scripts/install/agents.d.mts +0 -18
- package/packages/omo-codex/scripts/install/agents.mjs +0 -227
- package/packages/omo-codex/scripts/install/atomic-write.mjs +0 -59
- package/packages/omo-codex/scripts/install/bin-dir.d.mts +0 -7
- package/packages/omo-codex/scripts/install/bin-dir.mjs +0 -20
- package/packages/omo-codex/scripts/install/bin-links.d.mts +0 -18
- package/packages/omo-codex/scripts/install/bin-links.mjs +0 -276
- package/packages/omo-codex/scripts/install/cache.mjs +0 -295
- package/packages/omo-codex/scripts/install/cached-marketplace-manifest.mjs +0 -21
- package/packages/omo-codex/scripts/install/cli-args.mjs +0 -149
- package/packages/omo-codex/scripts/install/command-shim.mjs +0 -1
- package/packages/omo-codex/scripts/install/config.d.mts +0 -35
- package/packages/omo-codex/scripts/install/config.mjs +0 -267
- package/packages/omo-codex/scripts/install/delegated-command.mjs +0 -29
- package/packages/omo-codex/scripts/install/git-bash-mcp-env.d.mts +0 -5
- package/packages/omo-codex/scripts/install/git-bash-mcp-env.mjs +0 -28
- package/packages/omo-codex/scripts/install/git-bash.d.mts +0 -23
- package/packages/omo-codex/scripts/install/git-bash.mjs +0 -107
- package/packages/omo-codex/scripts/install/git-bash.test.mjs +0 -209
- package/packages/omo-codex/scripts/install/hook-targets.mjs +0 -46
- package/packages/omo-codex/scripts/install/hook-trust.d.mts +0 -10
- package/packages/omo-codex/scripts/install/hook-trust.mjs +0 -84
- package/packages/omo-codex/scripts/install/lazycodex-version-stamp.mjs +0 -102
- package/packages/omo-codex/scripts/install/legacy-bins.mjs +0 -66
- package/packages/omo-codex/scripts/install/marketplace.mjs +0 -104
- package/packages/omo-codex/scripts/install/mcp-runtime-cache.mjs +0 -81
- package/packages/omo-codex/scripts/install/model-catalog.mjs +0 -74
- package/packages/omo-codex/scripts/install/multi-agent-v2-config.mjs +0 -50
- package/packages/omo-codex/scripts/install/permissions.d.mts +0 -1
- package/packages/omo-codex/scripts/install/permissions.mjs +0 -37
- package/packages/omo-codex/scripts/install/process.mjs +0 -22
- package/packages/omo-codex/scripts/install/project-local-cleanup.mjs +0 -228
- package/packages/omo-codex/scripts/install/reasoning-config.mjs +0 -72
- package/packages/omo-codex/scripts/install/snapshot.mjs +0 -53
- package/packages/omo-codex/scripts/install/source-package-build.mjs +0 -20
- package/packages/omo-codex/scripts/install/toml-editor.mjs +0 -64
- package/packages/omo-codex/scripts/install/utils.mjs +0 -15
- package/packages/omo-codex/scripts/sync-telemetry-component.mjs +0 -116
- package/packages/omo-codex/scripts/sync-telemetry-component.test.mjs +0 -94
- package/packages/shared-skills/skills/frontend-ui-ux/SKILL.md +0 -77
- /package/dist/cli/doctor/{doctor-target.d.ts → framework/doctor-target.d.ts} +0 -0
- /package/dist/cli/doctor/{format-default.d.ts → framework/format-default.d.ts} +0 -0
- /package/dist/cli/doctor/{format-shared.d.ts → framework/format-shared.d.ts} +0 -0
- /package/dist/cli/doctor/{format-status.d.ts → framework/format-status.d.ts} +0 -0
- /package/dist/cli/doctor/{format-verbose.d.ts → framework/format-verbose.d.ts} +0 -0
- /package/dist/cli/doctor/{formatter.d.ts → framework/formatter.d.ts} +0 -0
- /package/packages/omo-codex/plugin/components/{comment-checker → codegraph}/dist/cli.d.ts +0 -0
- /package/packages/omo-codex/plugin/components/{rules → lazycodex-executor-verify}/dist/cli.d.ts +0 -0
|
@@ -0,0 +1,1603 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/serve.ts
|
|
4
|
+
import { spawn } from "node:child_process";
|
|
5
|
+
import { existsSync as existsSync4, realpathSync } from "node:fs";
|
|
6
|
+
import { homedir as homedir4 } from "node:os";
|
|
7
|
+
import { basename as basename2, extname, join as join5, resolve as resolve2 } from "node:path";
|
|
8
|
+
import {
|
|
9
|
+
cwd as processCwd,
|
|
10
|
+
env as processEnv,
|
|
11
|
+
execPath as processExecPath,
|
|
12
|
+
stderr as processStderr
|
|
13
|
+
} from "node:process";
|
|
14
|
+
import { fileURLToPath } from "node:url";
|
|
15
|
+
|
|
16
|
+
// ../../../../utils/src/codegraph/env.ts
|
|
17
|
+
import { homedir } from "node:os";
|
|
18
|
+
import { join } from "node:path";
|
|
19
|
+
var CODEGRAPH_INSTALL_DIR_ENV = "CODEGRAPH_INSTALL_DIR";
|
|
20
|
+
var CODEGRAPH_NO_DOWNLOAD_ENV = "CODEGRAPH_NO_DOWNLOAD";
|
|
21
|
+
var CODEGRAPH_TELEMETRY_ENV = "CODEGRAPH_TELEMETRY";
|
|
22
|
+
var DO_NOT_TRACK_ENV = "DO_NOT_TRACK";
|
|
23
|
+
function buildCodegraphEnv(options = {}) {
|
|
24
|
+
const homeDir = options.homeDir ?? homedir();
|
|
25
|
+
return {
|
|
26
|
+
[CODEGRAPH_INSTALL_DIR_ENV]: join(homeDir, ".omo", "codegraph"),
|
|
27
|
+
[CODEGRAPH_NO_DOWNLOAD_ENV]: "1",
|
|
28
|
+
[CODEGRAPH_TELEMETRY_ENV]: "0",
|
|
29
|
+
[DO_NOT_TRACK_ENV]: "1"
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// ../../../../utils/src/codegraph/node-support.ts
|
|
34
|
+
var CODEGRAPH_MIN_NODE_MAJOR = 20;
|
|
35
|
+
var CODEGRAPH_BLOCKED_NODE_MAJOR = 25;
|
|
36
|
+
var CODEGRAPH_UNSAFE_NODE_ENV = "CODEGRAPH_ALLOW_UNSAFE_NODE";
|
|
37
|
+
var CODEGRAPH_NODE_BIN_ENV = "CODEGRAPH_NODE_BIN";
|
|
38
|
+
function evaluateCodegraphNodeSupport(options = {}) {
|
|
39
|
+
const nodeVersion = options.nodeVersion ?? process.versions.node;
|
|
40
|
+
const env = options.env ?? process.env;
|
|
41
|
+
const override = (env[CODEGRAPH_UNSAFE_NODE_ENV]?.trim().length ?? 0) > 0;
|
|
42
|
+
const major = parseNodeMajor(nodeVersion);
|
|
43
|
+
if (major >= CODEGRAPH_BLOCKED_NODE_MAJOR) {
|
|
44
|
+
return { major, override, reason: "too-new", supported: override };
|
|
45
|
+
}
|
|
46
|
+
if (major < CODEGRAPH_MIN_NODE_MAJOR) {
|
|
47
|
+
return { major, override, reason: "too-old", supported: override };
|
|
48
|
+
}
|
|
49
|
+
return { major, override, supported: true };
|
|
50
|
+
}
|
|
51
|
+
function buildCodegraphNodeSkipHint(support) {
|
|
52
|
+
const detail = support.reason === "too-new" ? `Node ${support.major} is unsupported (>= ${CODEGRAPH_BLOCKED_NODE_MAJOR} crashes CodeGraph mid-indexing)` : `Node ${support.major} is too old (CodeGraph requires >= ${CODEGRAPH_MIN_NODE_MAJOR})`;
|
|
53
|
+
return `CodeGraph MCP skipped: ${detail}. Use Node ${CODEGRAPH_MIN_NODE_MAJOR}-${CODEGRAPH_BLOCKED_NODE_MAJOR - 1} (e.g. Node 22 LTS) or set ${CODEGRAPH_UNSAFE_NODE_ENV}=1 to override.
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
function parseNodeMajor(version) {
|
|
57
|
+
const normalized = version.startsWith("v") ? version.slice(1) : version;
|
|
58
|
+
const major = Number.parseInt(normalized.split(".")[0] ?? "", 10);
|
|
59
|
+
return Number.isNaN(major) ? 0 : major;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// ../../../../utils/src/codegraph/resolve.ts
|
|
63
|
+
import { existsSync } from "node:fs";
|
|
64
|
+
import { homedir as homedir2 } from "node:os";
|
|
65
|
+
import { spawnSync } from "node:child_process";
|
|
66
|
+
import { basename, dirname, join as join3 } from "node:path";
|
|
67
|
+
import { createRequire } from "node:module";
|
|
68
|
+
|
|
69
|
+
// ../../../../utils/src/runtime/which.ts
|
|
70
|
+
import { accessSync, constants } from "node:fs";
|
|
71
|
+
import { delimiter, join as join2 } from "node:path";
|
|
72
|
+
var runtime = globalThis;
|
|
73
|
+
function isUnsafeCommandName(commandName) {
|
|
74
|
+
if (commandName.includes("/") || commandName.includes("\\"))
|
|
75
|
+
return true;
|
|
76
|
+
if (commandName === "." || commandName === ".." || commandName.includes(".."))
|
|
77
|
+
return true;
|
|
78
|
+
if (/^[a-zA-Z]:/.test(commandName))
|
|
79
|
+
return true;
|
|
80
|
+
if (commandName.includes("\x00"))
|
|
81
|
+
return true;
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
function isExecutable(filePath) {
|
|
85
|
+
try {
|
|
86
|
+
accessSync(filePath, process.platform === "win32" ? constants.F_OK : constants.X_OK);
|
|
87
|
+
return true;
|
|
88
|
+
} catch (error) {
|
|
89
|
+
if (!(error instanceof Error) && Object.prototype.toString.call(error) !== "[object Error]") {
|
|
90
|
+
throw error;
|
|
91
|
+
}
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function resolvePathValue() {
|
|
96
|
+
if (process.platform === "win32")
|
|
97
|
+
return process.env["Path"] ?? process.env["PATH"];
|
|
98
|
+
return process.env["PATH"];
|
|
99
|
+
}
|
|
100
|
+
function getWindowsCandidates(commandName) {
|
|
101
|
+
if (process.platform !== "win32")
|
|
102
|
+
return [commandName];
|
|
103
|
+
if (/\.[^\\/]+$/.test(commandName))
|
|
104
|
+
return [commandName];
|
|
105
|
+
return [commandName, `${commandName}.exe`, `${commandName}.cmd`, `${commandName}.bat`, `${commandName}.com`];
|
|
106
|
+
}
|
|
107
|
+
function bunWhich(commandName) {
|
|
108
|
+
if (!commandName)
|
|
109
|
+
return null;
|
|
110
|
+
if (isUnsafeCommandName(commandName))
|
|
111
|
+
return null;
|
|
112
|
+
const candidateNames = getWindowsCandidates(commandName);
|
|
113
|
+
for (const candidateName of candidateNames) {
|
|
114
|
+
const resolvedPath = runtime.Bun?.which(candidateName) ?? null;
|
|
115
|
+
if (resolvedPath !== null)
|
|
116
|
+
return resolvedPath;
|
|
117
|
+
}
|
|
118
|
+
const pathValue = resolvePathValue();
|
|
119
|
+
if (!pathValue)
|
|
120
|
+
return null;
|
|
121
|
+
const pathEntries = pathValue.split(delimiter).filter((pathEntry) => pathEntry.length > 0);
|
|
122
|
+
if (pathEntries.length === 0)
|
|
123
|
+
return null;
|
|
124
|
+
for (const pathEntry of pathEntries) {
|
|
125
|
+
for (const candidateName of candidateNames) {
|
|
126
|
+
const candidatePath = join2(pathEntry, candidateName);
|
|
127
|
+
if (isExecutable(candidatePath))
|
|
128
|
+
return candidatePath;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// ../../../../utils/src/codegraph/resolve.ts
|
|
135
|
+
var CODEGRAPH_PACKAGE = "@colbymchenry/codegraph";
|
|
136
|
+
var CODEGRAPH_ENV_BIN = "OMO_CODEGRAPH_BIN";
|
|
137
|
+
var CODEGRAPH_LEGACY_ENV_BIN = "CODEGRAPH_BIN";
|
|
138
|
+
var CODEGRAPH_NODE_CANDIDATES = ["node24", "node22", "node20", "node"];
|
|
139
|
+
var requireFromHere = createRequire(import.meta.url);
|
|
140
|
+
function defaultRequireResolve(specifier) {
|
|
141
|
+
return requireFromHere.resolve(specifier);
|
|
142
|
+
}
|
|
143
|
+
function defaultNodeVersion(nodePath) {
|
|
144
|
+
if (nodePath === process.execPath && isNodeExecutableName(nodePath))
|
|
145
|
+
return process.versions.node;
|
|
146
|
+
try {
|
|
147
|
+
const result = spawnSync(nodePath, ["--version"], {
|
|
148
|
+
encoding: "utf8",
|
|
149
|
+
timeout: 2000,
|
|
150
|
+
windowsHide: true
|
|
151
|
+
});
|
|
152
|
+
if (result.error !== undefined || result.status !== 0)
|
|
153
|
+
return null;
|
|
154
|
+
const version = `${result.stdout}
|
|
155
|
+
${result.stderr}`.trim().split(/\s+/)[0];
|
|
156
|
+
return version === undefined || version.length === 0 ? null : version;
|
|
157
|
+
} catch (error) {
|
|
158
|
+
if (error instanceof Error)
|
|
159
|
+
return null;
|
|
160
|
+
throw error;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function isNodeExecutableName(filePath) {
|
|
164
|
+
const executable = basename(filePath).toLowerCase();
|
|
165
|
+
return executable === "node" || executable === "node.exe" || /^node\d+(\.exe)?$/.test(executable);
|
|
166
|
+
}
|
|
167
|
+
function looksLikePath(command) {
|
|
168
|
+
return command.includes("/") || command.includes("\\") || /^[a-zA-Z]:/.test(command);
|
|
169
|
+
}
|
|
170
|
+
function resolveConfiguredNodeRuntime(configured, fileExists, which) {
|
|
171
|
+
if (looksLikePath(configured))
|
|
172
|
+
return fileExists(configured) ? configured : null;
|
|
173
|
+
return which(configured);
|
|
174
|
+
}
|
|
175
|
+
function supportsCodegraphNodeRuntime(nodePath, env, nodeVersion) {
|
|
176
|
+
const version = nodeVersion(nodePath);
|
|
177
|
+
if (version === null)
|
|
178
|
+
return false;
|
|
179
|
+
return evaluateCodegraphNodeSupport({ env, nodeVersion: version }).supported;
|
|
180
|
+
}
|
|
181
|
+
function defaultNodeRuntime(env, fileExists, which, nodeVersion) {
|
|
182
|
+
const configured = env[CODEGRAPH_NODE_BIN_ENV]?.trim();
|
|
183
|
+
if (configured !== undefined && configured.length > 0) {
|
|
184
|
+
const resolved = resolveConfiguredNodeRuntime(configured, fileExists, which);
|
|
185
|
+
return resolved !== null && supportsCodegraphNodeRuntime(resolved, env, nodeVersion) ? resolved : null;
|
|
186
|
+
}
|
|
187
|
+
const candidates = [
|
|
188
|
+
...isNodeExecutableName(process.execPath) ? [process.execPath] : [],
|
|
189
|
+
...CODEGRAPH_NODE_CANDIDATES.map((commandName) => which(commandName)).filter((candidate) => candidate !== null)
|
|
190
|
+
];
|
|
191
|
+
const seen = new Set;
|
|
192
|
+
for (const candidate of candidates) {
|
|
193
|
+
if (seen.has(candidate))
|
|
194
|
+
continue;
|
|
195
|
+
seen.add(candidate);
|
|
196
|
+
if (supportsCodegraphNodeRuntime(candidate, env, nodeVersion))
|
|
197
|
+
return candidate;
|
|
198
|
+
}
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
function defaultProvisionedBin(homeDir, fileExists) {
|
|
202
|
+
const binaryName = process.platform === "win32" ? "codegraph.cmd" : "codegraph";
|
|
203
|
+
const candidates = [
|
|
204
|
+
join3(homeDir, ".omo", "codegraph", "bin", binaryName),
|
|
205
|
+
join3(homeDir, ".omo", "codegraph", "node-servers", "node_modules", ".bin", binaryName)
|
|
206
|
+
];
|
|
207
|
+
return candidates.find((candidate) => fileExists(candidate)) ?? null;
|
|
208
|
+
}
|
|
209
|
+
function resolveBundledShim(requireResolve, fileExists) {
|
|
210
|
+
try {
|
|
211
|
+
const packageJson = requireResolve(`${CODEGRAPH_PACKAGE}/package.json`);
|
|
212
|
+
const packageRoot = dirname(packageJson);
|
|
213
|
+
const candidates = [join3(packageRoot, "bin", "codegraph.js"), join3(packageRoot, "npm-shim.js")];
|
|
214
|
+
return candidates.find((candidate) => fileExists(candidate)) ?? null;
|
|
215
|
+
} catch (error) {
|
|
216
|
+
if (error instanceof Error)
|
|
217
|
+
return null;
|
|
218
|
+
if (error === null || error === undefined)
|
|
219
|
+
return null;
|
|
220
|
+
if (typeof error === "object" || typeof error === "string" || typeof error === "number")
|
|
221
|
+
return null;
|
|
222
|
+
if (typeof error === "boolean" || typeof error === "bigint" || typeof error === "symbol")
|
|
223
|
+
return null;
|
|
224
|
+
return null;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
function resolveCodegraphCommand(options = {}) {
|
|
228
|
+
const env = options.env ?? process.env;
|
|
229
|
+
const fileExists = options.fileExists ?? existsSync;
|
|
230
|
+
const configuredBin = env[CODEGRAPH_ENV_BIN]?.trim() || env[CODEGRAPH_LEGACY_ENV_BIN]?.trim();
|
|
231
|
+
if (configuredBin !== undefined && configuredBin.length > 0) {
|
|
232
|
+
return { argsPrefix: [], command: configuredBin, exists: fileExists(configuredBin), source: "env" };
|
|
233
|
+
}
|
|
234
|
+
const which = options.which ?? bunWhich;
|
|
235
|
+
const nodeRuntime = options.nodeRuntime ?? (() => defaultNodeRuntime(env, fileExists, which, options.nodeVersion ?? defaultNodeVersion));
|
|
236
|
+
const bundled = resolveBundledShim(options.requireResolve ?? defaultRequireResolve, fileExists);
|
|
237
|
+
const runtime2 = nodeRuntime();
|
|
238
|
+
if (bundled !== null && runtime2 !== null) {
|
|
239
|
+
return { argsPrefix: [bundled], command: runtime2, exists: true, source: "bundled" };
|
|
240
|
+
}
|
|
241
|
+
const provisioned = options.provisioned?.() ?? defaultProvisionedBin(options.homeDir ?? homedir2(), fileExists);
|
|
242
|
+
if (provisioned !== null && fileExists(provisioned)) {
|
|
243
|
+
return { argsPrefix: [], command: provisioned, exists: true, source: "provisioned" };
|
|
244
|
+
}
|
|
245
|
+
const pathCommand = which("codegraph");
|
|
246
|
+
return {
|
|
247
|
+
argsPrefix: [],
|
|
248
|
+
command: pathCommand ?? "codegraph",
|
|
249
|
+
exists: pathCommand !== null,
|
|
250
|
+
source: "path"
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// ../../../../utils/src/omo-config/loader.ts
|
|
255
|
+
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
256
|
+
import { homedir as homedir3 } from "node:os";
|
|
257
|
+
|
|
258
|
+
// ../../../../utils/src/deep-merge.ts
|
|
259
|
+
var DANGEROUS_KEYS = new Set(["__proto__", "constructor", "prototype"]);
|
|
260
|
+
function isUnsafeObjectKey(key) {
|
|
261
|
+
return DANGEROUS_KEYS.has(key);
|
|
262
|
+
}
|
|
263
|
+
function isPlainObject(value) {
|
|
264
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) && Object.prototype.toString.call(value) === "[object Object]";
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// ../../../../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
268
|
+
function createScanner(text, ignoreTrivia = false) {
|
|
269
|
+
const len = text.length;
|
|
270
|
+
let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
|
|
271
|
+
function scanHexDigits(count, exact) {
|
|
272
|
+
let digits = 0;
|
|
273
|
+
let value2 = 0;
|
|
274
|
+
while (digits < count || !exact) {
|
|
275
|
+
let ch = text.charCodeAt(pos);
|
|
276
|
+
if (ch >= 48 && ch <= 57) {
|
|
277
|
+
value2 = value2 * 16 + ch - 48;
|
|
278
|
+
} else if (ch >= 65 && ch <= 70) {
|
|
279
|
+
value2 = value2 * 16 + ch - 65 + 10;
|
|
280
|
+
} else if (ch >= 97 && ch <= 102) {
|
|
281
|
+
value2 = value2 * 16 + ch - 97 + 10;
|
|
282
|
+
} else {
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
pos++;
|
|
286
|
+
digits++;
|
|
287
|
+
}
|
|
288
|
+
if (digits < count) {
|
|
289
|
+
value2 = -1;
|
|
290
|
+
}
|
|
291
|
+
return value2;
|
|
292
|
+
}
|
|
293
|
+
function setPosition(newPosition) {
|
|
294
|
+
pos = newPosition;
|
|
295
|
+
value = "";
|
|
296
|
+
tokenOffset = 0;
|
|
297
|
+
token = 16;
|
|
298
|
+
scanError = 0;
|
|
299
|
+
}
|
|
300
|
+
function scanNumber() {
|
|
301
|
+
let start = pos;
|
|
302
|
+
if (text.charCodeAt(pos) === 48) {
|
|
303
|
+
pos++;
|
|
304
|
+
} else {
|
|
305
|
+
pos++;
|
|
306
|
+
while (pos < text.length && isDigit(text.charCodeAt(pos))) {
|
|
307
|
+
pos++;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
if (pos < text.length && text.charCodeAt(pos) === 46) {
|
|
311
|
+
pos++;
|
|
312
|
+
if (pos < text.length && isDigit(text.charCodeAt(pos))) {
|
|
313
|
+
pos++;
|
|
314
|
+
while (pos < text.length && isDigit(text.charCodeAt(pos))) {
|
|
315
|
+
pos++;
|
|
316
|
+
}
|
|
317
|
+
} else {
|
|
318
|
+
scanError = 3;
|
|
319
|
+
return text.substring(start, pos);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
let end = pos;
|
|
323
|
+
if (pos < text.length && (text.charCodeAt(pos) === 69 || text.charCodeAt(pos) === 101)) {
|
|
324
|
+
pos++;
|
|
325
|
+
if (pos < text.length && text.charCodeAt(pos) === 43 || text.charCodeAt(pos) === 45) {
|
|
326
|
+
pos++;
|
|
327
|
+
}
|
|
328
|
+
if (pos < text.length && isDigit(text.charCodeAt(pos))) {
|
|
329
|
+
pos++;
|
|
330
|
+
while (pos < text.length && isDigit(text.charCodeAt(pos))) {
|
|
331
|
+
pos++;
|
|
332
|
+
}
|
|
333
|
+
end = pos;
|
|
334
|
+
} else {
|
|
335
|
+
scanError = 3;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return text.substring(start, end);
|
|
339
|
+
}
|
|
340
|
+
function scanString() {
|
|
341
|
+
let result = "", start = pos;
|
|
342
|
+
while (true) {
|
|
343
|
+
if (pos >= len) {
|
|
344
|
+
result += text.substring(start, pos);
|
|
345
|
+
scanError = 2;
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
const ch = text.charCodeAt(pos);
|
|
349
|
+
if (ch === 34) {
|
|
350
|
+
result += text.substring(start, pos);
|
|
351
|
+
pos++;
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
if (ch === 92) {
|
|
355
|
+
result += text.substring(start, pos);
|
|
356
|
+
pos++;
|
|
357
|
+
if (pos >= len) {
|
|
358
|
+
scanError = 2;
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
const ch2 = text.charCodeAt(pos++);
|
|
362
|
+
switch (ch2) {
|
|
363
|
+
case 34:
|
|
364
|
+
result += '"';
|
|
365
|
+
break;
|
|
366
|
+
case 92:
|
|
367
|
+
result += "\\";
|
|
368
|
+
break;
|
|
369
|
+
case 47:
|
|
370
|
+
result += "/";
|
|
371
|
+
break;
|
|
372
|
+
case 98:
|
|
373
|
+
result += "\b";
|
|
374
|
+
break;
|
|
375
|
+
case 102:
|
|
376
|
+
result += "\f";
|
|
377
|
+
break;
|
|
378
|
+
case 110:
|
|
379
|
+
result += `
|
|
380
|
+
`;
|
|
381
|
+
break;
|
|
382
|
+
case 114:
|
|
383
|
+
result += "\r";
|
|
384
|
+
break;
|
|
385
|
+
case 116:
|
|
386
|
+
result += "\t";
|
|
387
|
+
break;
|
|
388
|
+
case 117:
|
|
389
|
+
const ch3 = scanHexDigits(4, true);
|
|
390
|
+
if (ch3 >= 0) {
|
|
391
|
+
result += String.fromCharCode(ch3);
|
|
392
|
+
} else {
|
|
393
|
+
scanError = 4;
|
|
394
|
+
}
|
|
395
|
+
break;
|
|
396
|
+
default:
|
|
397
|
+
scanError = 5;
|
|
398
|
+
}
|
|
399
|
+
start = pos;
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
if (ch >= 0 && ch <= 31) {
|
|
403
|
+
if (isLineBreak(ch)) {
|
|
404
|
+
result += text.substring(start, pos);
|
|
405
|
+
scanError = 2;
|
|
406
|
+
break;
|
|
407
|
+
} else {
|
|
408
|
+
scanError = 6;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
pos++;
|
|
412
|
+
}
|
|
413
|
+
return result;
|
|
414
|
+
}
|
|
415
|
+
function scanNext() {
|
|
416
|
+
value = "";
|
|
417
|
+
scanError = 0;
|
|
418
|
+
tokenOffset = pos;
|
|
419
|
+
lineStartOffset = lineNumber;
|
|
420
|
+
prevTokenLineStartOffset = tokenLineStartOffset;
|
|
421
|
+
if (pos >= len) {
|
|
422
|
+
tokenOffset = len;
|
|
423
|
+
return token = 17;
|
|
424
|
+
}
|
|
425
|
+
let code = text.charCodeAt(pos);
|
|
426
|
+
if (isWhiteSpace(code)) {
|
|
427
|
+
do {
|
|
428
|
+
pos++;
|
|
429
|
+
value += String.fromCharCode(code);
|
|
430
|
+
code = text.charCodeAt(pos);
|
|
431
|
+
} while (isWhiteSpace(code));
|
|
432
|
+
return token = 15;
|
|
433
|
+
}
|
|
434
|
+
if (isLineBreak(code)) {
|
|
435
|
+
pos++;
|
|
436
|
+
value += String.fromCharCode(code);
|
|
437
|
+
if (code === 13 && text.charCodeAt(pos) === 10) {
|
|
438
|
+
pos++;
|
|
439
|
+
value += `
|
|
440
|
+
`;
|
|
441
|
+
}
|
|
442
|
+
lineNumber++;
|
|
443
|
+
tokenLineStartOffset = pos;
|
|
444
|
+
return token = 14;
|
|
445
|
+
}
|
|
446
|
+
switch (code) {
|
|
447
|
+
case 123:
|
|
448
|
+
pos++;
|
|
449
|
+
return token = 1;
|
|
450
|
+
case 125:
|
|
451
|
+
pos++;
|
|
452
|
+
return token = 2;
|
|
453
|
+
case 91:
|
|
454
|
+
pos++;
|
|
455
|
+
return token = 3;
|
|
456
|
+
case 93:
|
|
457
|
+
pos++;
|
|
458
|
+
return token = 4;
|
|
459
|
+
case 58:
|
|
460
|
+
pos++;
|
|
461
|
+
return token = 6;
|
|
462
|
+
case 44:
|
|
463
|
+
pos++;
|
|
464
|
+
return token = 5;
|
|
465
|
+
case 34:
|
|
466
|
+
pos++;
|
|
467
|
+
value = scanString();
|
|
468
|
+
return token = 10;
|
|
469
|
+
case 47:
|
|
470
|
+
const start = pos - 1;
|
|
471
|
+
if (text.charCodeAt(pos + 1) === 47) {
|
|
472
|
+
pos += 2;
|
|
473
|
+
while (pos < len) {
|
|
474
|
+
if (isLineBreak(text.charCodeAt(pos))) {
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
pos++;
|
|
478
|
+
}
|
|
479
|
+
value = text.substring(start, pos);
|
|
480
|
+
return token = 12;
|
|
481
|
+
}
|
|
482
|
+
if (text.charCodeAt(pos + 1) === 42) {
|
|
483
|
+
pos += 2;
|
|
484
|
+
const safeLength = len - 1;
|
|
485
|
+
let commentClosed = false;
|
|
486
|
+
while (pos < safeLength) {
|
|
487
|
+
const ch = text.charCodeAt(pos);
|
|
488
|
+
if (ch === 42 && text.charCodeAt(pos + 1) === 47) {
|
|
489
|
+
pos += 2;
|
|
490
|
+
commentClosed = true;
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
pos++;
|
|
494
|
+
if (isLineBreak(ch)) {
|
|
495
|
+
if (ch === 13 && text.charCodeAt(pos) === 10) {
|
|
496
|
+
pos++;
|
|
497
|
+
}
|
|
498
|
+
lineNumber++;
|
|
499
|
+
tokenLineStartOffset = pos;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
if (!commentClosed) {
|
|
503
|
+
pos++;
|
|
504
|
+
scanError = 1;
|
|
505
|
+
}
|
|
506
|
+
value = text.substring(start, pos);
|
|
507
|
+
return token = 13;
|
|
508
|
+
}
|
|
509
|
+
value += String.fromCharCode(code);
|
|
510
|
+
pos++;
|
|
511
|
+
return token = 16;
|
|
512
|
+
case 45:
|
|
513
|
+
value += String.fromCharCode(code);
|
|
514
|
+
pos++;
|
|
515
|
+
if (pos === len || !isDigit(text.charCodeAt(pos))) {
|
|
516
|
+
return token = 16;
|
|
517
|
+
}
|
|
518
|
+
case 48:
|
|
519
|
+
case 49:
|
|
520
|
+
case 50:
|
|
521
|
+
case 51:
|
|
522
|
+
case 52:
|
|
523
|
+
case 53:
|
|
524
|
+
case 54:
|
|
525
|
+
case 55:
|
|
526
|
+
case 56:
|
|
527
|
+
case 57:
|
|
528
|
+
value += scanNumber();
|
|
529
|
+
return token = 11;
|
|
530
|
+
default:
|
|
531
|
+
while (pos < len && isUnknownContentCharacter(code)) {
|
|
532
|
+
pos++;
|
|
533
|
+
code = text.charCodeAt(pos);
|
|
534
|
+
}
|
|
535
|
+
if (tokenOffset !== pos) {
|
|
536
|
+
value = text.substring(tokenOffset, pos);
|
|
537
|
+
switch (value) {
|
|
538
|
+
case "true":
|
|
539
|
+
return token = 8;
|
|
540
|
+
case "false":
|
|
541
|
+
return token = 9;
|
|
542
|
+
case "null":
|
|
543
|
+
return token = 7;
|
|
544
|
+
}
|
|
545
|
+
return token = 16;
|
|
546
|
+
}
|
|
547
|
+
value += String.fromCharCode(code);
|
|
548
|
+
pos++;
|
|
549
|
+
return token = 16;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
function isUnknownContentCharacter(code) {
|
|
553
|
+
if (isWhiteSpace(code) || isLineBreak(code)) {
|
|
554
|
+
return false;
|
|
555
|
+
}
|
|
556
|
+
switch (code) {
|
|
557
|
+
case 125:
|
|
558
|
+
case 93:
|
|
559
|
+
case 123:
|
|
560
|
+
case 91:
|
|
561
|
+
case 34:
|
|
562
|
+
case 58:
|
|
563
|
+
case 44:
|
|
564
|
+
case 47:
|
|
565
|
+
return false;
|
|
566
|
+
}
|
|
567
|
+
return true;
|
|
568
|
+
}
|
|
569
|
+
function scanNextNonTrivia() {
|
|
570
|
+
let result;
|
|
571
|
+
do {
|
|
572
|
+
result = scanNext();
|
|
573
|
+
} while (result >= 12 && result <= 15);
|
|
574
|
+
return result;
|
|
575
|
+
}
|
|
576
|
+
return {
|
|
577
|
+
setPosition,
|
|
578
|
+
getPosition: () => pos,
|
|
579
|
+
scan: ignoreTrivia ? scanNextNonTrivia : scanNext,
|
|
580
|
+
getToken: () => token,
|
|
581
|
+
getTokenValue: () => value,
|
|
582
|
+
getTokenOffset: () => tokenOffset,
|
|
583
|
+
getTokenLength: () => pos - tokenOffset,
|
|
584
|
+
getTokenStartLine: () => lineStartOffset,
|
|
585
|
+
getTokenStartCharacter: () => tokenOffset - prevTokenLineStartOffset,
|
|
586
|
+
getTokenError: () => scanError
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
function isWhiteSpace(ch) {
|
|
590
|
+
return ch === 32 || ch === 9;
|
|
591
|
+
}
|
|
592
|
+
function isLineBreak(ch) {
|
|
593
|
+
return ch === 10 || ch === 13;
|
|
594
|
+
}
|
|
595
|
+
function isDigit(ch) {
|
|
596
|
+
return ch >= 48 && ch <= 57;
|
|
597
|
+
}
|
|
598
|
+
var CharacterCodes;
|
|
599
|
+
(function(CharacterCodes2) {
|
|
600
|
+
CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
|
|
601
|
+
CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
|
|
602
|
+
CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
|
|
603
|
+
CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
|
|
604
|
+
CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
|
|
605
|
+
CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
|
|
606
|
+
CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
|
|
607
|
+
CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
|
|
608
|
+
CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
|
|
609
|
+
CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
|
|
610
|
+
CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
|
|
611
|
+
CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
|
|
612
|
+
CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
|
|
613
|
+
CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
|
|
614
|
+
CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
|
|
615
|
+
CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
|
|
616
|
+
CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
|
|
617
|
+
CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
|
|
618
|
+
CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
|
|
619
|
+
CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
|
|
620
|
+
CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
|
|
621
|
+
CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
|
|
622
|
+
CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
|
|
623
|
+
CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
|
|
624
|
+
CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
|
|
625
|
+
CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
|
|
626
|
+
CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
|
|
627
|
+
CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
|
|
628
|
+
CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
|
|
629
|
+
CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
|
|
630
|
+
CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
|
|
631
|
+
CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
|
|
632
|
+
CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
|
|
633
|
+
CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
|
|
634
|
+
CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
|
|
635
|
+
CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
|
|
636
|
+
CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
|
|
637
|
+
CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
|
|
638
|
+
CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
|
|
639
|
+
CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
|
|
640
|
+
CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
|
|
641
|
+
CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
|
|
642
|
+
CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
|
|
643
|
+
CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
|
|
644
|
+
CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
|
|
645
|
+
CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
|
|
646
|
+
CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
|
|
647
|
+
CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
|
|
648
|
+
CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
|
|
649
|
+
CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
|
|
650
|
+
CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
|
|
651
|
+
CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
|
|
652
|
+
CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
|
|
653
|
+
CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
|
|
654
|
+
CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
|
|
655
|
+
CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
|
|
656
|
+
CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
|
|
657
|
+
CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
|
|
658
|
+
CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
|
|
659
|
+
CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
|
|
660
|
+
CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
|
|
661
|
+
CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
|
|
662
|
+
CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
|
|
663
|
+
CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
|
|
664
|
+
CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
|
|
665
|
+
CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
|
|
666
|
+
CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
|
|
667
|
+
CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
|
|
668
|
+
CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
|
|
669
|
+
CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
|
|
670
|
+
CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
|
|
671
|
+
CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
|
|
672
|
+
CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
|
|
673
|
+
CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
|
|
674
|
+
CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
|
|
675
|
+
CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
|
|
676
|
+
CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
|
|
677
|
+
CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
|
|
678
|
+
CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
|
|
679
|
+
CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
|
|
680
|
+
})(CharacterCodes || (CharacterCodes = {}));
|
|
681
|
+
|
|
682
|
+
// ../../../../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
683
|
+
var cachedSpaces = new Array(20).fill(0).map((_, index) => {
|
|
684
|
+
return " ".repeat(index);
|
|
685
|
+
});
|
|
686
|
+
var maxCachedValues = 200;
|
|
687
|
+
var cachedBreakLinesWithSpaces = {
|
|
688
|
+
" ": {
|
|
689
|
+
"\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
690
|
+
return `
|
|
691
|
+
` + " ".repeat(index);
|
|
692
|
+
}),
|
|
693
|
+
"\r": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
694
|
+
return "\r" + " ".repeat(index);
|
|
695
|
+
}),
|
|
696
|
+
"\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
697
|
+
return `\r
|
|
698
|
+
` + " ".repeat(index);
|
|
699
|
+
})
|
|
700
|
+
},
|
|
701
|
+
"\t": {
|
|
702
|
+
"\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
703
|
+
return `
|
|
704
|
+
` + "\t".repeat(index);
|
|
705
|
+
}),
|
|
706
|
+
"\r": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
707
|
+
return "\r" + "\t".repeat(index);
|
|
708
|
+
}),
|
|
709
|
+
"\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
710
|
+
return `\r
|
|
711
|
+
` + "\t".repeat(index);
|
|
712
|
+
})
|
|
713
|
+
}
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
// ../../../../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
717
|
+
var ParseOptions;
|
|
718
|
+
(function(ParseOptions2) {
|
|
719
|
+
ParseOptions2.DEFAULT = {
|
|
720
|
+
allowTrailingComma: false
|
|
721
|
+
};
|
|
722
|
+
})(ParseOptions || (ParseOptions = {}));
|
|
723
|
+
function parse(text, errors = [], options = ParseOptions.DEFAULT) {
|
|
724
|
+
let currentProperty = null;
|
|
725
|
+
let currentParent = [];
|
|
726
|
+
const previousParents = [];
|
|
727
|
+
function onValue(value) {
|
|
728
|
+
if (Array.isArray(currentParent)) {
|
|
729
|
+
currentParent.push(value);
|
|
730
|
+
} else if (currentProperty !== null) {
|
|
731
|
+
currentParent[currentProperty] = value;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
const visitor = {
|
|
735
|
+
onObjectBegin: () => {
|
|
736
|
+
const object = {};
|
|
737
|
+
onValue(object);
|
|
738
|
+
previousParents.push(currentParent);
|
|
739
|
+
currentParent = object;
|
|
740
|
+
currentProperty = null;
|
|
741
|
+
},
|
|
742
|
+
onObjectProperty: (name) => {
|
|
743
|
+
currentProperty = name;
|
|
744
|
+
},
|
|
745
|
+
onObjectEnd: () => {
|
|
746
|
+
currentParent = previousParents.pop();
|
|
747
|
+
},
|
|
748
|
+
onArrayBegin: () => {
|
|
749
|
+
const array = [];
|
|
750
|
+
onValue(array);
|
|
751
|
+
previousParents.push(currentParent);
|
|
752
|
+
currentParent = array;
|
|
753
|
+
currentProperty = null;
|
|
754
|
+
},
|
|
755
|
+
onArrayEnd: () => {
|
|
756
|
+
currentParent = previousParents.pop();
|
|
757
|
+
},
|
|
758
|
+
onLiteralValue: onValue,
|
|
759
|
+
onError: (error, offset, length) => {
|
|
760
|
+
errors.push({ error, offset, length });
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
visit(text, visitor, options);
|
|
764
|
+
return currentParent[0];
|
|
765
|
+
}
|
|
766
|
+
function visit(text, visitor, options = ParseOptions.DEFAULT) {
|
|
767
|
+
const _scanner = createScanner(text, false);
|
|
768
|
+
const _jsonPath = [];
|
|
769
|
+
let suppressedCallbacks = 0;
|
|
770
|
+
function toNoArgVisit(visitFunction) {
|
|
771
|
+
return visitFunction ? () => suppressedCallbacks === 0 && visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
|
|
772
|
+
}
|
|
773
|
+
function toOneArgVisit(visitFunction) {
|
|
774
|
+
return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
|
|
775
|
+
}
|
|
776
|
+
function toOneArgVisitWithPath(visitFunction) {
|
|
777
|
+
return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
|
|
778
|
+
}
|
|
779
|
+
function toBeginVisit(visitFunction) {
|
|
780
|
+
return visitFunction ? () => {
|
|
781
|
+
if (suppressedCallbacks > 0) {
|
|
782
|
+
suppressedCallbacks++;
|
|
783
|
+
} else {
|
|
784
|
+
let cbReturn = visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice());
|
|
785
|
+
if (cbReturn === false) {
|
|
786
|
+
suppressedCallbacks = 1;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
} : () => true;
|
|
790
|
+
}
|
|
791
|
+
function toEndVisit(visitFunction) {
|
|
792
|
+
return visitFunction ? () => {
|
|
793
|
+
if (suppressedCallbacks > 0) {
|
|
794
|
+
suppressedCallbacks--;
|
|
795
|
+
}
|
|
796
|
+
if (suppressedCallbacks === 0) {
|
|
797
|
+
visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter());
|
|
798
|
+
}
|
|
799
|
+
} : () => true;
|
|
800
|
+
}
|
|
801
|
+
const onObjectBegin = toBeginVisit(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toEndVisit(visitor.onObjectEnd), onArrayBegin = toBeginVisit(visitor.onArrayBegin), onArrayEnd = toEndVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError);
|
|
802
|
+
const disallowComments = options && options.disallowComments;
|
|
803
|
+
const allowTrailingComma = options && options.allowTrailingComma;
|
|
804
|
+
function scanNext() {
|
|
805
|
+
while (true) {
|
|
806
|
+
const token = _scanner.scan();
|
|
807
|
+
switch (_scanner.getTokenError()) {
|
|
808
|
+
case 4:
|
|
809
|
+
handleError(14);
|
|
810
|
+
break;
|
|
811
|
+
case 5:
|
|
812
|
+
handleError(15);
|
|
813
|
+
break;
|
|
814
|
+
case 3:
|
|
815
|
+
handleError(13);
|
|
816
|
+
break;
|
|
817
|
+
case 1:
|
|
818
|
+
if (!disallowComments) {
|
|
819
|
+
handleError(11);
|
|
820
|
+
}
|
|
821
|
+
break;
|
|
822
|
+
case 2:
|
|
823
|
+
handleError(12);
|
|
824
|
+
break;
|
|
825
|
+
case 6:
|
|
826
|
+
handleError(16);
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
829
|
+
switch (token) {
|
|
830
|
+
case 12:
|
|
831
|
+
case 13:
|
|
832
|
+
if (disallowComments) {
|
|
833
|
+
handleError(10);
|
|
834
|
+
} else {
|
|
835
|
+
onComment();
|
|
836
|
+
}
|
|
837
|
+
break;
|
|
838
|
+
case 16:
|
|
839
|
+
handleError(1);
|
|
840
|
+
break;
|
|
841
|
+
case 15:
|
|
842
|
+
case 14:
|
|
843
|
+
break;
|
|
844
|
+
default:
|
|
845
|
+
return token;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
function handleError(error, skipUntilAfter = [], skipUntil = []) {
|
|
850
|
+
onError(error);
|
|
851
|
+
if (skipUntilAfter.length + skipUntil.length > 0) {
|
|
852
|
+
let token = _scanner.getToken();
|
|
853
|
+
while (token !== 17) {
|
|
854
|
+
if (skipUntilAfter.indexOf(token) !== -1) {
|
|
855
|
+
scanNext();
|
|
856
|
+
break;
|
|
857
|
+
} else if (skipUntil.indexOf(token) !== -1) {
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
token = scanNext();
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
function parseString(isValue) {
|
|
865
|
+
const value = _scanner.getTokenValue();
|
|
866
|
+
if (isValue) {
|
|
867
|
+
onLiteralValue(value);
|
|
868
|
+
} else {
|
|
869
|
+
onObjectProperty(value);
|
|
870
|
+
_jsonPath.push(value);
|
|
871
|
+
}
|
|
872
|
+
scanNext();
|
|
873
|
+
return true;
|
|
874
|
+
}
|
|
875
|
+
function parseLiteral() {
|
|
876
|
+
switch (_scanner.getToken()) {
|
|
877
|
+
case 11:
|
|
878
|
+
const tokenValue = _scanner.getTokenValue();
|
|
879
|
+
let value = Number(tokenValue);
|
|
880
|
+
if (isNaN(value)) {
|
|
881
|
+
handleError(2);
|
|
882
|
+
value = 0;
|
|
883
|
+
}
|
|
884
|
+
onLiteralValue(value);
|
|
885
|
+
break;
|
|
886
|
+
case 7:
|
|
887
|
+
onLiteralValue(null);
|
|
888
|
+
break;
|
|
889
|
+
case 8:
|
|
890
|
+
onLiteralValue(true);
|
|
891
|
+
break;
|
|
892
|
+
case 9:
|
|
893
|
+
onLiteralValue(false);
|
|
894
|
+
break;
|
|
895
|
+
default:
|
|
896
|
+
return false;
|
|
897
|
+
}
|
|
898
|
+
scanNext();
|
|
899
|
+
return true;
|
|
900
|
+
}
|
|
901
|
+
function parseProperty() {
|
|
902
|
+
if (_scanner.getToken() !== 10) {
|
|
903
|
+
handleError(3, [], [2, 5]);
|
|
904
|
+
return false;
|
|
905
|
+
}
|
|
906
|
+
parseString(false);
|
|
907
|
+
if (_scanner.getToken() === 6) {
|
|
908
|
+
onSeparator(":");
|
|
909
|
+
scanNext();
|
|
910
|
+
if (!parseValue()) {
|
|
911
|
+
handleError(4, [], [2, 5]);
|
|
912
|
+
}
|
|
913
|
+
} else {
|
|
914
|
+
handleError(5, [], [2, 5]);
|
|
915
|
+
}
|
|
916
|
+
_jsonPath.pop();
|
|
917
|
+
return true;
|
|
918
|
+
}
|
|
919
|
+
function parseObject() {
|
|
920
|
+
onObjectBegin();
|
|
921
|
+
scanNext();
|
|
922
|
+
let needsComma = false;
|
|
923
|
+
while (_scanner.getToken() !== 2 && _scanner.getToken() !== 17) {
|
|
924
|
+
if (_scanner.getToken() === 5) {
|
|
925
|
+
if (!needsComma) {
|
|
926
|
+
handleError(4, [], []);
|
|
927
|
+
}
|
|
928
|
+
onSeparator(",");
|
|
929
|
+
scanNext();
|
|
930
|
+
if (_scanner.getToken() === 2 && allowTrailingComma) {
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
} else if (needsComma) {
|
|
934
|
+
handleError(6, [], []);
|
|
935
|
+
}
|
|
936
|
+
if (!parseProperty()) {
|
|
937
|
+
handleError(4, [], [2, 5]);
|
|
938
|
+
}
|
|
939
|
+
needsComma = true;
|
|
940
|
+
}
|
|
941
|
+
onObjectEnd();
|
|
942
|
+
if (_scanner.getToken() !== 2) {
|
|
943
|
+
handleError(7, [2], []);
|
|
944
|
+
} else {
|
|
945
|
+
scanNext();
|
|
946
|
+
}
|
|
947
|
+
return true;
|
|
948
|
+
}
|
|
949
|
+
function parseArray() {
|
|
950
|
+
onArrayBegin();
|
|
951
|
+
scanNext();
|
|
952
|
+
let isFirstElement = true;
|
|
953
|
+
let needsComma = false;
|
|
954
|
+
while (_scanner.getToken() !== 4 && _scanner.getToken() !== 17) {
|
|
955
|
+
if (_scanner.getToken() === 5) {
|
|
956
|
+
if (!needsComma) {
|
|
957
|
+
handleError(4, [], []);
|
|
958
|
+
}
|
|
959
|
+
onSeparator(",");
|
|
960
|
+
scanNext();
|
|
961
|
+
if (_scanner.getToken() === 4 && allowTrailingComma) {
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
} else if (needsComma) {
|
|
965
|
+
handleError(6, [], []);
|
|
966
|
+
}
|
|
967
|
+
if (isFirstElement) {
|
|
968
|
+
_jsonPath.push(0);
|
|
969
|
+
isFirstElement = false;
|
|
970
|
+
} else {
|
|
971
|
+
_jsonPath[_jsonPath.length - 1]++;
|
|
972
|
+
}
|
|
973
|
+
if (!parseValue()) {
|
|
974
|
+
handleError(4, [], [4, 5]);
|
|
975
|
+
}
|
|
976
|
+
needsComma = true;
|
|
977
|
+
}
|
|
978
|
+
onArrayEnd();
|
|
979
|
+
if (!isFirstElement) {
|
|
980
|
+
_jsonPath.pop();
|
|
981
|
+
}
|
|
982
|
+
if (_scanner.getToken() !== 4) {
|
|
983
|
+
handleError(8, [4], []);
|
|
984
|
+
} else {
|
|
985
|
+
scanNext();
|
|
986
|
+
}
|
|
987
|
+
return true;
|
|
988
|
+
}
|
|
989
|
+
function parseValue() {
|
|
990
|
+
switch (_scanner.getToken()) {
|
|
991
|
+
case 3:
|
|
992
|
+
return parseArray();
|
|
993
|
+
case 1:
|
|
994
|
+
return parseObject();
|
|
995
|
+
case 10:
|
|
996
|
+
return parseString(true);
|
|
997
|
+
default:
|
|
998
|
+
return parseLiteral();
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
scanNext();
|
|
1002
|
+
if (_scanner.getToken() === 17) {
|
|
1003
|
+
if (options.allowEmptyContent) {
|
|
1004
|
+
return true;
|
|
1005
|
+
}
|
|
1006
|
+
handleError(4, [], []);
|
|
1007
|
+
return false;
|
|
1008
|
+
}
|
|
1009
|
+
if (!parseValue()) {
|
|
1010
|
+
handleError(4, [], []);
|
|
1011
|
+
return false;
|
|
1012
|
+
}
|
|
1013
|
+
if (_scanner.getToken() !== 17) {
|
|
1014
|
+
handleError(9, [], []);
|
|
1015
|
+
}
|
|
1016
|
+
return true;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
// ../../../../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js
|
|
1020
|
+
var ScanError;
|
|
1021
|
+
(function(ScanError2) {
|
|
1022
|
+
ScanError2[ScanError2["None"] = 0] = "None";
|
|
1023
|
+
ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
|
|
1024
|
+
ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
|
|
1025
|
+
ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
|
|
1026
|
+
ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
|
|
1027
|
+
ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
|
|
1028
|
+
ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
|
|
1029
|
+
})(ScanError || (ScanError = {}));
|
|
1030
|
+
var SyntaxKind;
|
|
1031
|
+
(function(SyntaxKind2) {
|
|
1032
|
+
SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
|
|
1033
|
+
SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
|
|
1034
|
+
SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
|
|
1035
|
+
SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
|
|
1036
|
+
SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
|
|
1037
|
+
SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
|
|
1038
|
+
SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
|
|
1039
|
+
SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
|
|
1040
|
+
SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
|
|
1041
|
+
SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
|
|
1042
|
+
SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
|
|
1043
|
+
SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
|
|
1044
|
+
SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
|
|
1045
|
+
SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
|
|
1046
|
+
SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
|
|
1047
|
+
SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
|
|
1048
|
+
SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
|
|
1049
|
+
})(SyntaxKind || (SyntaxKind = {}));
|
|
1050
|
+
var parse2 = parse;
|
|
1051
|
+
var ParseErrorCode;
|
|
1052
|
+
(function(ParseErrorCode2) {
|
|
1053
|
+
ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
|
|
1054
|
+
ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
|
|
1055
|
+
ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
|
|
1056
|
+
ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
|
|
1057
|
+
ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
|
|
1058
|
+
ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
|
|
1059
|
+
ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
|
|
1060
|
+
ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
|
|
1061
|
+
ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
|
|
1062
|
+
ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
|
|
1063
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
|
|
1064
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
|
|
1065
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
|
|
1066
|
+
ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
|
|
1067
|
+
ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
|
|
1068
|
+
ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
|
|
1069
|
+
})(ParseErrorCode || (ParseErrorCode = {}));
|
|
1070
|
+
function printParseErrorCode(code) {
|
|
1071
|
+
switch (code) {
|
|
1072
|
+
case 1:
|
|
1073
|
+
return "InvalidSymbol";
|
|
1074
|
+
case 2:
|
|
1075
|
+
return "InvalidNumberFormat";
|
|
1076
|
+
case 3:
|
|
1077
|
+
return "PropertyNameExpected";
|
|
1078
|
+
case 4:
|
|
1079
|
+
return "ValueExpected";
|
|
1080
|
+
case 5:
|
|
1081
|
+
return "ColonExpected";
|
|
1082
|
+
case 6:
|
|
1083
|
+
return "CommaExpected";
|
|
1084
|
+
case 7:
|
|
1085
|
+
return "CloseBraceExpected";
|
|
1086
|
+
case 8:
|
|
1087
|
+
return "CloseBracketExpected";
|
|
1088
|
+
case 9:
|
|
1089
|
+
return "EndOfFileExpected";
|
|
1090
|
+
case 10:
|
|
1091
|
+
return "InvalidCommentToken";
|
|
1092
|
+
case 11:
|
|
1093
|
+
return "UnexpectedEndOfComment";
|
|
1094
|
+
case 12:
|
|
1095
|
+
return "UnexpectedEndOfString";
|
|
1096
|
+
case 13:
|
|
1097
|
+
return "UnexpectedEndOfNumber";
|
|
1098
|
+
case 14:
|
|
1099
|
+
return "InvalidUnicode";
|
|
1100
|
+
case 15:
|
|
1101
|
+
return "InvalidEscapeCharacter";
|
|
1102
|
+
case 16:
|
|
1103
|
+
return "InvalidCharacter";
|
|
1104
|
+
}
|
|
1105
|
+
return "<unknown ParseErrorCode>";
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
// ../../../../utils/src/jsonc-parser.ts
|
|
1109
|
+
var pluginConfigFileDetectionCache = new Map;
|
|
1110
|
+
function stripBom(content) {
|
|
1111
|
+
return content.charCodeAt(0) === 65279 ? content.slice(1) : content;
|
|
1112
|
+
}
|
|
1113
|
+
function parseJsoncSafe(content) {
|
|
1114
|
+
const errors = [];
|
|
1115
|
+
const data = parse2(stripBom(content), errors, {
|
|
1116
|
+
allowTrailingComma: true,
|
|
1117
|
+
disallowComments: false
|
|
1118
|
+
});
|
|
1119
|
+
return {
|
|
1120
|
+
data: errors.length > 0 ? null : data,
|
|
1121
|
+
errors: errors.map((e) => ({
|
|
1122
|
+
message: printParseErrorCode(e.error),
|
|
1123
|
+
offset: e.offset,
|
|
1124
|
+
length: e.length
|
|
1125
|
+
}))
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
// ../../../../utils/src/omo-config.ts
|
|
1130
|
+
var HARNESS_IDS = ["codex", "opencode", "omo"];
|
|
1131
|
+
var SETTING_HARNESS_SUPPORT = {
|
|
1132
|
+
"codegraph.auto_provision": HARNESS_IDS,
|
|
1133
|
+
"codegraph.enabled": HARNESS_IDS,
|
|
1134
|
+
"codegraph.install_dir": HARNESS_IDS,
|
|
1135
|
+
"codegraph.telemetry": HARNESS_IDS,
|
|
1136
|
+
"codegraph.watch_debounce_ms": ["opencode", "omo"]
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
// ../../../../utils/src/omo-config/env-overrides.ts
|
|
1140
|
+
var CODEGRAPH_ENV_KEYS = [
|
|
1141
|
+
["auto_provision", "AUTO_PROVISION", "boolean"],
|
|
1142
|
+
["enabled", "ENABLED", "boolean"],
|
|
1143
|
+
["install_dir", "INSTALL_DIR", "string"],
|
|
1144
|
+
["telemetry", "TELEMETRY", "boolean"],
|
|
1145
|
+
["watch_debounce_ms", "WATCH_DEBOUNCE_MS", "number"]
|
|
1146
|
+
];
|
|
1147
|
+
function parseBooleanEnv(value) {
|
|
1148
|
+
const normalized = value.trim().toLowerCase();
|
|
1149
|
+
if (["1", "true", "yes", "on"].includes(normalized))
|
|
1150
|
+
return true;
|
|
1151
|
+
if (["0", "false", "no", "off"].includes(normalized))
|
|
1152
|
+
return false;
|
|
1153
|
+
return null;
|
|
1154
|
+
}
|
|
1155
|
+
function parseEnvValue(value, kind) {
|
|
1156
|
+
if (kind === "boolean")
|
|
1157
|
+
return parseBooleanEnv(value);
|
|
1158
|
+
if (kind === "number") {
|
|
1159
|
+
const parsed = Number(value);
|
|
1160
|
+
return Number.isFinite(parsed) && parsed >= 0 ? parsed : null;
|
|
1161
|
+
}
|
|
1162
|
+
return value;
|
|
1163
|
+
}
|
|
1164
|
+
function setCodegraphSetting(config, key, value) {
|
|
1165
|
+
switch (key) {
|
|
1166
|
+
case "auto_provision":
|
|
1167
|
+
if (typeof value === "boolean")
|
|
1168
|
+
config.auto_provision = value;
|
|
1169
|
+
return;
|
|
1170
|
+
case "enabled":
|
|
1171
|
+
if (typeof value === "boolean")
|
|
1172
|
+
config.enabled = value;
|
|
1173
|
+
return;
|
|
1174
|
+
case "install_dir":
|
|
1175
|
+
if (typeof value === "string")
|
|
1176
|
+
config.install_dir = value;
|
|
1177
|
+
return;
|
|
1178
|
+
case "telemetry":
|
|
1179
|
+
if (typeof value === "boolean")
|
|
1180
|
+
config.telemetry = value;
|
|
1181
|
+
return;
|
|
1182
|
+
case "watch_debounce_ms":
|
|
1183
|
+
if (typeof value === "number")
|
|
1184
|
+
config.watch_debounce_ms = value;
|
|
1185
|
+
return;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
function buildEnvOverrides(harness, env, warnings, merge) {
|
|
1189
|
+
let config = {};
|
|
1190
|
+
for (const prefix of ["OMO", harness.toUpperCase()]) {
|
|
1191
|
+
const codegraph = {};
|
|
1192
|
+
for (const [settingKey, envSuffix, kind] of CODEGRAPH_ENV_KEYS) {
|
|
1193
|
+
const envKey = `${prefix}_CODEGRAPH_${envSuffix}`;
|
|
1194
|
+
const rawValue = env[envKey];
|
|
1195
|
+
if (rawValue === undefined)
|
|
1196
|
+
continue;
|
|
1197
|
+
const parsed = parseEnvValue(rawValue, kind);
|
|
1198
|
+
if (parsed === null) {
|
|
1199
|
+
warnings.push(`${envKey} has invalid ${kind} value "${rawValue}"`);
|
|
1200
|
+
continue;
|
|
1201
|
+
}
|
|
1202
|
+
setCodegraphSetting(codegraph, settingKey, parsed);
|
|
1203
|
+
}
|
|
1204
|
+
if (Object.keys(codegraph).length > 0) {
|
|
1205
|
+
config = merge(config, { codegraph });
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
return config;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
// ../../../../utils/src/omo-config/resolve.ts
|
|
1212
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
1213
|
+
import { dirname as dirname2, isAbsolute, join as join4, relative, resolve } from "node:path";
|
|
1214
|
+
function containsPath(parent, child) {
|
|
1215
|
+
const pathToChild = relative(parent, child);
|
|
1216
|
+
return pathToChild === "" || !pathToChild.startsWith("..") && !isAbsolute(pathToChild);
|
|
1217
|
+
}
|
|
1218
|
+
function findProjectConfigPathsNearestFirst(cwd, homeDir) {
|
|
1219
|
+
const startDir = resolve(cwd);
|
|
1220
|
+
const stopBeforeDir = containsPath(resolve(homeDir), startDir) ? resolve(homeDir) : null;
|
|
1221
|
+
const paths = [];
|
|
1222
|
+
let currentDir = startDir;
|
|
1223
|
+
while (true) {
|
|
1224
|
+
if (stopBeforeDir !== null && currentDir === stopBeforeDir)
|
|
1225
|
+
break;
|
|
1226
|
+
const configPath = join4(currentDir, ".omo", "config.jsonc");
|
|
1227
|
+
if (existsSync2(configPath)) {
|
|
1228
|
+
paths.push(configPath);
|
|
1229
|
+
}
|
|
1230
|
+
const parentDir = dirname2(currentDir);
|
|
1231
|
+
if (parentDir === currentDir)
|
|
1232
|
+
break;
|
|
1233
|
+
currentDir = parentDir;
|
|
1234
|
+
}
|
|
1235
|
+
return paths;
|
|
1236
|
+
}
|
|
1237
|
+
function resolveOmoConfigPaths(options) {
|
|
1238
|
+
const globalPath = join4(resolve(options.homeDir), ".omo", "config.jsonc");
|
|
1239
|
+
const projectPathsFarthestFirst = findProjectConfigPathsNearestFirst(options.cwd, options.homeDir).reverse();
|
|
1240
|
+
return [
|
|
1241
|
+
{ path: globalPath, scope: "global" },
|
|
1242
|
+
...projectPathsFarthestFirst.map((path) => ({ path, scope: "project" }))
|
|
1243
|
+
];
|
|
1244
|
+
}
|
|
1245
|
+
function toMissingSource(candidate) {
|
|
1246
|
+
return {
|
|
1247
|
+
exists: false,
|
|
1248
|
+
loaded: false,
|
|
1249
|
+
path: candidate.path,
|
|
1250
|
+
scope: candidate.scope
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
// ../../../../utils/src/omo-config/loader.ts
|
|
1255
|
+
var BUILT_IN_DEFAULTS = {
|
|
1256
|
+
codegraph: {
|
|
1257
|
+
auto_provision: true,
|
|
1258
|
+
enabled: true,
|
|
1259
|
+
telemetry: false
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1262
|
+
var HARNESS_BLOCK_KEYS = HARNESS_IDS.map((harness) => `[${harness}]`);
|
|
1263
|
+
var CODEGRAPH_SETTING_KEYS = [
|
|
1264
|
+
"auto_provision",
|
|
1265
|
+
"enabled",
|
|
1266
|
+
"install_dir",
|
|
1267
|
+
"telemetry",
|
|
1268
|
+
"watch_debounce_ms"
|
|
1269
|
+
];
|
|
1270
|
+
function isRecord(value) {
|
|
1271
|
+
return isPlainObject(value);
|
|
1272
|
+
}
|
|
1273
|
+
function hasOwn(record, key) {
|
|
1274
|
+
return Object.prototype.hasOwnProperty.call(record, key);
|
|
1275
|
+
}
|
|
1276
|
+
function isCodegraphSettingKey(key) {
|
|
1277
|
+
return CODEGRAPH_SETTING_KEYS.some((candidate) => candidate === key);
|
|
1278
|
+
}
|
|
1279
|
+
function mergeValues(base, override) {
|
|
1280
|
+
if (override === undefined)
|
|
1281
|
+
return base;
|
|
1282
|
+
if (Array.isArray(base) && Array.isArray(override)) {
|
|
1283
|
+
return [...new Set([...base, ...override])];
|
|
1284
|
+
}
|
|
1285
|
+
if (isPlainObject(base) && isPlainObject(override)) {
|
|
1286
|
+
const result = { ...base };
|
|
1287
|
+
for (const [key, value] of Object.entries(override)) {
|
|
1288
|
+
if (isUnsafeObjectKey(key))
|
|
1289
|
+
continue;
|
|
1290
|
+
result[key] = mergeValues(result[key], value);
|
|
1291
|
+
}
|
|
1292
|
+
return result;
|
|
1293
|
+
}
|
|
1294
|
+
return override;
|
|
1295
|
+
}
|
|
1296
|
+
function mergeCodegraphConfig(base, override) {
|
|
1297
|
+
const merged = mergeValues(base, override);
|
|
1298
|
+
if (!isRecord(merged))
|
|
1299
|
+
return;
|
|
1300
|
+
const codegraph = {};
|
|
1301
|
+
for (const key of CODEGRAPH_SETTING_KEYS) {
|
|
1302
|
+
if (!hasOwn(merged, key))
|
|
1303
|
+
continue;
|
|
1304
|
+
setCodegraphSetting2(codegraph, key, merged[key]);
|
|
1305
|
+
}
|
|
1306
|
+
return Object.keys(codegraph).length > 0 ? codegraph : undefined;
|
|
1307
|
+
}
|
|
1308
|
+
function mergeOmoConfig(base, override) {
|
|
1309
|
+
const codegraph = mergeCodegraphConfig(base.codegraph, override.codegraph);
|
|
1310
|
+
return {
|
|
1311
|
+
...codegraph === undefined ? {} : { codegraph }
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
function isHarnessBlockKey(key) {
|
|
1315
|
+
return key.startsWith("[") && key.endsWith("]");
|
|
1316
|
+
}
|
|
1317
|
+
function isKnownHarnessBlockKey(key) {
|
|
1318
|
+
return HARNESS_BLOCK_KEYS.includes(key);
|
|
1319
|
+
}
|
|
1320
|
+
function validateCodegraphValue(key, value) {
|
|
1321
|
+
if (key === "install_dir")
|
|
1322
|
+
return typeof value === "string" ? null : "must be a string";
|
|
1323
|
+
if (key === "watch_debounce_ms") {
|
|
1324
|
+
return typeof value === "number" && Number.isFinite(value) && value >= 0 ? null : "must be a non-negative finite number";
|
|
1325
|
+
}
|
|
1326
|
+
return typeof value === "boolean" ? null : "must be a boolean";
|
|
1327
|
+
}
|
|
1328
|
+
function setCodegraphSetting2(config, key, value) {
|
|
1329
|
+
switch (key) {
|
|
1330
|
+
case "auto_provision":
|
|
1331
|
+
if (typeof value === "boolean")
|
|
1332
|
+
config.auto_provision = value;
|
|
1333
|
+
return;
|
|
1334
|
+
case "enabled":
|
|
1335
|
+
if (typeof value === "boolean")
|
|
1336
|
+
config.enabled = value;
|
|
1337
|
+
return;
|
|
1338
|
+
case "install_dir":
|
|
1339
|
+
if (typeof value === "string")
|
|
1340
|
+
config.install_dir = value;
|
|
1341
|
+
return;
|
|
1342
|
+
case "telemetry":
|
|
1343
|
+
if (typeof value === "boolean")
|
|
1344
|
+
config.telemetry = value;
|
|
1345
|
+
return;
|
|
1346
|
+
case "watch_debounce_ms":
|
|
1347
|
+
if (typeof value === "number")
|
|
1348
|
+
config.watch_debounce_ms = value;
|
|
1349
|
+
return;
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
function normalizeCodegraphSection(section, pathPrefix, warnings) {
|
|
1353
|
+
if (!isRecord(section)) {
|
|
1354
|
+
warnings.push(`${pathPrefix} must be an object`);
|
|
1355
|
+
return {};
|
|
1356
|
+
}
|
|
1357
|
+
const codegraph = {};
|
|
1358
|
+
for (const [key, value] of Object.entries(section)) {
|
|
1359
|
+
if (!isCodegraphSettingKey(key)) {
|
|
1360
|
+
warnings.push(`${pathPrefix}.${key} is not a supported setting`);
|
|
1361
|
+
continue;
|
|
1362
|
+
}
|
|
1363
|
+
const error = validateCodegraphValue(key, value);
|
|
1364
|
+
if (error !== null) {
|
|
1365
|
+
warnings.push(`${pathPrefix}.${key} ${error}`);
|
|
1366
|
+
continue;
|
|
1367
|
+
}
|
|
1368
|
+
setCodegraphSetting2(codegraph, key, value);
|
|
1369
|
+
}
|
|
1370
|
+
return codegraph;
|
|
1371
|
+
}
|
|
1372
|
+
function normalizeConfigBody(value, pathPrefix, warnings) {
|
|
1373
|
+
if (!isRecord(value)) {
|
|
1374
|
+
warnings.push(`${pathPrefix} must be an object`);
|
|
1375
|
+
return {};
|
|
1376
|
+
}
|
|
1377
|
+
const config = {};
|
|
1378
|
+
for (const [key, section] of Object.entries(value)) {
|
|
1379
|
+
if (key === "codegraph") {
|
|
1380
|
+
config.codegraph = normalizeCodegraphSection(section, `${pathPrefix}.codegraph`, warnings);
|
|
1381
|
+
continue;
|
|
1382
|
+
}
|
|
1383
|
+
if (isHarnessBlockKey(key)) {
|
|
1384
|
+
if (!isKnownHarnessBlockKey(key)) {
|
|
1385
|
+
warnings.push(`Unknown harness override block "${key}"`);
|
|
1386
|
+
}
|
|
1387
|
+
continue;
|
|
1388
|
+
}
|
|
1389
|
+
warnings.push(`${pathPrefix}.${key} is not a supported setting`);
|
|
1390
|
+
}
|
|
1391
|
+
return config;
|
|
1392
|
+
}
|
|
1393
|
+
function normalizeActiveHarnessBlock(value, harness, pathPrefix, warnings) {
|
|
1394
|
+
if (!isRecord(value))
|
|
1395
|
+
return {};
|
|
1396
|
+
const blockKey = `[${harness}]`;
|
|
1397
|
+
if (!hasOwn(value, blockKey))
|
|
1398
|
+
return {};
|
|
1399
|
+
return normalizeConfigBody(value[blockKey], `${pathPrefix}.${blockKey}`, warnings);
|
|
1400
|
+
}
|
|
1401
|
+
function loadConfigFile(path, harness) {
|
|
1402
|
+
try {
|
|
1403
|
+
const content = readFileSync(path, "utf-8");
|
|
1404
|
+
const parsed = parseJsoncSafe(content);
|
|
1405
|
+
if (parsed.errors.length > 0) {
|
|
1406
|
+
return {
|
|
1407
|
+
config: {},
|
|
1408
|
+
loaded: false,
|
|
1409
|
+
warnings: parsed.errors.map((error) => `JSONC parse error in ${path}: ${error.message} at offset ${error.offset}`)
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
const warnings = [];
|
|
1413
|
+
const baseConfig = normalizeConfigBody(parsed.data, "config", warnings);
|
|
1414
|
+
const harnessConfig = normalizeActiveHarnessBlock(parsed.data, harness, "config", warnings);
|
|
1415
|
+
return {
|
|
1416
|
+
config: mergeOmoConfig(baseConfig, harnessConfig),
|
|
1417
|
+
loaded: true,
|
|
1418
|
+
warnings
|
|
1419
|
+
};
|
|
1420
|
+
} catch (error) {
|
|
1421
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1422
|
+
return {
|
|
1423
|
+
config: {},
|
|
1424
|
+
loaded: false,
|
|
1425
|
+
warnings: [`Failed to read ${path}: ${message}`]
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
function validateHarnessApplicability(config, harness) {
|
|
1430
|
+
const warnings = [];
|
|
1431
|
+
const codegraph = config.codegraph;
|
|
1432
|
+
if (codegraph === undefined)
|
|
1433
|
+
return warnings;
|
|
1434
|
+
for (const key of Object.keys(codegraph)) {
|
|
1435
|
+
if (!isCodegraphSettingKey(key))
|
|
1436
|
+
continue;
|
|
1437
|
+
const settingPath = `codegraph.${key}`;
|
|
1438
|
+
const supportedHarnesses = SETTING_HARNESS_SUPPORT[settingPath];
|
|
1439
|
+
if (supportedHarnesses === undefined)
|
|
1440
|
+
continue;
|
|
1441
|
+
if (!supportedHarnesses.includes(harness)) {
|
|
1442
|
+
warnings.push(`${settingPath} is not supported for harness ${harness}`);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
return warnings;
|
|
1446
|
+
}
|
|
1447
|
+
function loadOmoConfig(options) {
|
|
1448
|
+
const cwd = options.cwd ?? process.cwd();
|
|
1449
|
+
const homeDir = options.homeDir ?? process.env["HOME"] ?? process.env["USERPROFILE"] ?? homedir3();
|
|
1450
|
+
const env = options.env ?? process.env;
|
|
1451
|
+
let config = BUILT_IN_DEFAULTS;
|
|
1452
|
+
const sources = [];
|
|
1453
|
+
const warnings = [];
|
|
1454
|
+
for (const candidate of resolveOmoConfigPaths({ cwd, homeDir })) {
|
|
1455
|
+
if (!existsSync3(candidate.path)) {
|
|
1456
|
+
if (candidate.scope === "global") {
|
|
1457
|
+
sources.push(toMissingSource(candidate));
|
|
1458
|
+
}
|
|
1459
|
+
continue;
|
|
1460
|
+
}
|
|
1461
|
+
const result = loadConfigFile(candidate.path, options.harness);
|
|
1462
|
+
sources.push({
|
|
1463
|
+
exists: true,
|
|
1464
|
+
loaded: result.loaded,
|
|
1465
|
+
path: candidate.path,
|
|
1466
|
+
scope: candidate.scope
|
|
1467
|
+
});
|
|
1468
|
+
warnings.push(...result.warnings);
|
|
1469
|
+
config = mergeOmoConfig(config, result.config);
|
|
1470
|
+
}
|
|
1471
|
+
const envOverrides = buildEnvOverrides(options.harness, env, warnings, mergeOmoConfig);
|
|
1472
|
+
config = mergeOmoConfig(config, envOverrides);
|
|
1473
|
+
warnings.push(...validateHarnessApplicability(config, options.harness));
|
|
1474
|
+
return { config, sources, warnings };
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
// ../../shared/src/config-loader.ts
|
|
1478
|
+
function getCodexOmoConfig(options = {}) {
|
|
1479
|
+
const result = loadOmoConfig({
|
|
1480
|
+
...options.cwd === undefined ? {} : { cwd: options.cwd },
|
|
1481
|
+
...options.env === undefined ? {} : { env: options.env },
|
|
1482
|
+
...options.homeDir === undefined ? {} : { homeDir: options.homeDir },
|
|
1483
|
+
harness: "codex"
|
|
1484
|
+
});
|
|
1485
|
+
return {
|
|
1486
|
+
...result.config,
|
|
1487
|
+
sources: result.sources,
|
|
1488
|
+
warnings: result.warnings
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
// src/serve.ts
|
|
1493
|
+
var CODEGRAPH_SKIP_HINT = `CodeGraph MCP skipped: codegraph binary not found. Install CodeGraph or set OMO_CODEGRAPH_BIN.
|
|
1494
|
+
`;
|
|
1495
|
+
var CODEGRAPH_DISABLED_HINT = `CodeGraph MCP skipped: disabled by OMO SOT config. Set [codex].codegraph.enabled=true to enable it.
|
|
1496
|
+
`;
|
|
1497
|
+
var WINDOWS_CMD_EXTENSIONS = new Set([".bat", ".cmd"]);
|
|
1498
|
+
var WINDOWS_NODE_SCRIPT_EXTENSIONS = new Set([".cjs", ".js", ".mjs"]);
|
|
1499
|
+
async function runCodegraphServe(options = {}) {
|
|
1500
|
+
const env = options.env ?? processEnv;
|
|
1501
|
+
const homeDir = options.homeDir ?? homedir4();
|
|
1502
|
+
const config = options.config ?? getCodexOmoConfig({ cwd: options.cwd ?? processCwd(), env, homeDir });
|
|
1503
|
+
const codegraphConfig = config.codegraph ?? {};
|
|
1504
|
+
if (codegraphConfig.enabled === false) {
|
|
1505
|
+
(options.stderr ?? processStderr).write(CODEGRAPH_DISABLED_HINT);
|
|
1506
|
+
return 1;
|
|
1507
|
+
}
|
|
1508
|
+
const resolutionOptions = {
|
|
1509
|
+
env,
|
|
1510
|
+
homeDir,
|
|
1511
|
+
provisioned: () => provisionedBinFromInstallDir(codegraphConfig.install_dir)
|
|
1512
|
+
};
|
|
1513
|
+
const resolution = options.resolve?.(resolutionOptions) ?? resolveCodegraphCommand(resolutionOptions);
|
|
1514
|
+
if (!resolution.exists || shouldSkipResolvedCommand(resolution, options.commandExists ?? existsSync4)) {
|
|
1515
|
+
(options.stderr ?? processStderr).write(CODEGRAPH_SKIP_HINT);
|
|
1516
|
+
return 1;
|
|
1517
|
+
}
|
|
1518
|
+
const nodeSupport = evaluateCodegraphNodeSupport({ env, nodeVersion: options.nodeVersion });
|
|
1519
|
+
if (resolution.source !== "bundled" && resolution.source !== "env" && !nodeSupport.supported) {
|
|
1520
|
+
(options.stderr ?? processStderr).write(buildCodegraphNodeSkipHint(nodeSupport));
|
|
1521
|
+
return 1;
|
|
1522
|
+
}
|
|
1523
|
+
const runProcess = options.runProcess ?? runChildProcess;
|
|
1524
|
+
const codegraphEnv = codegraphEnvForConfig(codegraphConfig, homeDir, options.buildEnv);
|
|
1525
|
+
const mergedEnv = {
|
|
1526
|
+
...env,
|
|
1527
|
+
...codegraphEnv
|
|
1528
|
+
};
|
|
1529
|
+
return runProcess(resolution.command, [...resolution.argsPrefix, "serve", "--mcp"], {
|
|
1530
|
+
env: mergedEnv,
|
|
1531
|
+
stdio: "inherit"
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
function shouldSkipResolvedCommand(resolution, commandExists) {
|
|
1535
|
+
if (resolution.source !== "env")
|
|
1536
|
+
return false;
|
|
1537
|
+
if (!looksLikePath2(resolution.command))
|
|
1538
|
+
return false;
|
|
1539
|
+
return !commandExists(resolution.command);
|
|
1540
|
+
}
|
|
1541
|
+
function looksLikePath2(command) {
|
|
1542
|
+
return command.includes("/") || command.includes("\\");
|
|
1543
|
+
}
|
|
1544
|
+
function codegraphEnvForConfig(config, homeDir, buildEnv) {
|
|
1545
|
+
const env = buildEnv?.({ homeDir }) ?? buildCodegraphEnv({ homeDir });
|
|
1546
|
+
return config.install_dir === undefined ? env : { ...env, CODEGRAPH_INSTALL_DIR: config.install_dir };
|
|
1547
|
+
}
|
|
1548
|
+
function provisionedBinFromInstallDir(installDir) {
|
|
1549
|
+
if (installDir === undefined)
|
|
1550
|
+
return null;
|
|
1551
|
+
const candidate = join5(installDir, "bin", process.platform === "win32" ? "codegraph.cmd" : "codegraph");
|
|
1552
|
+
return existsSync4(candidate) ? candidate : null;
|
|
1553
|
+
}
|
|
1554
|
+
async function runCodegraphServeCli() {
|
|
1555
|
+
process.exitCode = await runCodegraphServe();
|
|
1556
|
+
}
|
|
1557
|
+
async function runChildProcess(command, args, options) {
|
|
1558
|
+
const invocation = resolveServeProcessInvocation(command, args);
|
|
1559
|
+
const child = spawn(invocation.command, invocation.args, { env: options.env, stdio: options.stdio });
|
|
1560
|
+
return new Promise((resolve3, reject) => {
|
|
1561
|
+
child.once("error", reject);
|
|
1562
|
+
child.once("exit", (code, signal) => {
|
|
1563
|
+
if (code !== null) {
|
|
1564
|
+
resolve3(code);
|
|
1565
|
+
return;
|
|
1566
|
+
}
|
|
1567
|
+
resolve3(signal === null ? 0 : 1);
|
|
1568
|
+
});
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
function resolveServeProcessInvocation(command, args, platform = process.platform) {
|
|
1572
|
+
if (platform !== "win32")
|
|
1573
|
+
return { args: [...args], command };
|
|
1574
|
+
const extension = extname(command).toLowerCase();
|
|
1575
|
+
if (WINDOWS_NODE_SCRIPT_EXTENSIONS.has(extension)) {
|
|
1576
|
+
return { args: [command, ...args], command: processExecPath };
|
|
1577
|
+
}
|
|
1578
|
+
if (WINDOWS_CMD_EXTENSIONS.has(extension)) {
|
|
1579
|
+
return { args: ["/d", "/s", "/c", command, ...args], command: "cmd.exe" };
|
|
1580
|
+
}
|
|
1581
|
+
return { args: [...args], command };
|
|
1582
|
+
}
|
|
1583
|
+
if (isDirectInvocation(process.argv[1])) {
|
|
1584
|
+
runCodegraphServeCli().catch((error) => {
|
|
1585
|
+
processStderr.write(`${error instanceof Error ? error.stack ?? error.message : String(error)}
|
|
1586
|
+
`);
|
|
1587
|
+
process.exitCode = 1;
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
function isDirectInvocation(argvPath) {
|
|
1591
|
+
if (argvPath === undefined)
|
|
1592
|
+
return false;
|
|
1593
|
+
const modulePath = fileURLToPath(import.meta.url);
|
|
1594
|
+
const moduleName = basename2(modulePath);
|
|
1595
|
+
if (moduleName !== "serve.js" && moduleName !== "serve.ts")
|
|
1596
|
+
return false;
|
|
1597
|
+
return realpathSync(resolve2(argvPath)) === realpathSync(modulePath);
|
|
1598
|
+
}
|
|
1599
|
+
export {
|
|
1600
|
+
runCodegraphServeCli,
|
|
1601
|
+
runCodegraphServe,
|
|
1602
|
+
resolveServeProcessInvocation
|
|
1603
|
+
};
|