@reinamaccredy/oh-my-opencode 1.0.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/LICENSE.md +82 -0
- package/README.ja.md +1107 -0
- package/README.md +1243 -0
- package/README.zh-cn.md +1107 -0
- package/dist/agents/build-prompt.d.ts +31 -0
- package/dist/agents/document-writer.d.ts +5 -0
- package/dist/agents/explore.d.ts +5 -0
- package/dist/agents/frontend-ui-ux-engineer.d.ts +5 -0
- package/dist/agents/index.d.ts +5 -0
- package/dist/agents/librarian.d.ts +5 -0
- package/dist/agents/metis.d.ts +18 -0
- package/dist/agents/momus.d.ts +6 -0
- package/dist/agents/multimodal-looker.d.ts +5 -0
- package/dist/agents/oracle.d.ts +5 -0
- package/dist/agents/orchestrator-sisyphus.d.ts +19 -0
- package/dist/agents/plan-prompt.d.ts +64 -0
- package/dist/agents/prometheus-prompt.d.ts +27 -0
- package/dist/agents/sisyphus-junior.d.ts +3 -0
- package/dist/agents/sisyphus-prompt-builder.d.ts +26 -0
- package/dist/agents/sisyphus.d.ts +4 -0
- package/dist/agents/types.d.ts +49 -0
- package/dist/agents/utils.d.ts +13 -0
- package/dist/agents/utils.test.d.ts +1 -0
- package/dist/auth/antigravity/accounts.d.ts +40 -0
- package/dist/auth/antigravity/accounts.test.d.ts +1 -0
- package/dist/auth/antigravity/browser.d.ts +27 -0
- package/dist/auth/antigravity/browser.test.d.ts +1 -0
- package/dist/auth/antigravity/cli.d.ts +2 -0
- package/dist/auth/antigravity/cli.test.d.ts +1 -0
- package/dist/auth/antigravity/constants.d.ts +98 -0
- package/dist/auth/antigravity/constants.test.d.ts +1 -0
- package/dist/auth/antigravity/fetch.d.ts +69 -0
- package/dist/auth/antigravity/index.d.ts +13 -0
- package/dist/auth/antigravity/integration.test.d.ts +10 -0
- package/dist/auth/antigravity/message-converter.d.ts +54 -0
- package/dist/auth/antigravity/oauth.d.ts +51 -0
- package/dist/auth/antigravity/oauth.test.d.ts +1 -0
- package/dist/auth/antigravity/plugin.d.ts +54 -0
- package/dist/auth/antigravity/project.d.ts +10 -0
- package/dist/auth/antigravity/request.d.ts +116 -0
- package/dist/auth/antigravity/request.test.d.ts +1 -0
- package/dist/auth/antigravity/response.d.ts +137 -0
- package/dist/auth/antigravity/storage.d.ts +5 -0
- package/dist/auth/antigravity/storage.test.d.ts +1 -0
- package/dist/auth/antigravity/thinking.d.ts +278 -0
- package/dist/auth/antigravity/thinking.test.d.ts +10 -0
- package/dist/auth/antigravity/thought-signature-store.d.ts +52 -0
- package/dist/auth/antigravity/token.d.ts +38 -0
- package/dist/auth/antigravity/token.test.d.ts +1 -0
- package/dist/auth/antigravity/tools.d.ts +119 -0
- package/dist/auth/antigravity/types.d.ts +229 -0
- package/dist/cli/commands/auth.d.ts +2 -0
- package/dist/cli/config-manager.d.ts +91 -0
- package/dist/cli/config-manager.test.d.ts +1 -0
- package/dist/cli/doctor/checks/auth.d.ts +7 -0
- package/dist/cli/doctor/checks/auth.test.d.ts +1 -0
- package/dist/cli/doctor/checks/config.d.ts +8 -0
- package/dist/cli/doctor/checks/config.test.d.ts +1 -0
- package/dist/cli/doctor/checks/dependencies.d.ts +8 -0
- package/dist/cli/doctor/checks/dependencies.test.d.ts +1 -0
- package/dist/cli/doctor/checks/gh.d.ts +13 -0
- package/dist/cli/doctor/checks/gh.test.d.ts +1 -0
- package/dist/cli/doctor/checks/index.d.ts +11 -0
- package/dist/cli/doctor/checks/lsp.d.ts +8 -0
- package/dist/cli/doctor/checks/lsp.test.d.ts +1 -0
- package/dist/cli/doctor/checks/mcp.d.ts +6 -0
- package/dist/cli/doctor/checks/mcp.test.d.ts +1 -0
- package/dist/cli/doctor/checks/opencode.d.ts +10 -0
- package/dist/cli/doctor/checks/opencode.test.d.ts +1 -0
- package/dist/cli/doctor/checks/plugin.d.ts +4 -0
- package/dist/cli/doctor/checks/plugin.test.d.ts +1 -0
- package/dist/cli/doctor/checks/version.d.ts +4 -0
- package/dist/cli/doctor/checks/version.test.d.ts +1 -0
- package/dist/cli/doctor/constants.d.ts +40 -0
- package/dist/cli/doctor/formatter.d.ts +12 -0
- package/dist/cli/doctor/formatter.test.d.ts +1 -0
- package/dist/cli/doctor/index.d.ts +5 -0
- package/dist/cli/doctor/runner.d.ts +7 -0
- package/dist/cli/doctor/runner.test.d.ts +1 -0
- package/dist/cli/doctor/types.d.ts +91 -0
- package/dist/cli/get-local-version/formatter.d.ts +3 -0
- package/dist/cli/get-local-version/index.d.ts +3 -0
- package/dist/cli/get-local-version/types.d.ts +13 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +23604 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/run/completion.d.ts +2 -0
- package/dist/cli/run/completion.test.d.ts +1 -0
- package/dist/cli/run/events.d.ts +11 -0
- package/dist/cli/run/events.test.d.ts +1 -0
- package/dist/cli/run/index.d.ts +2 -0
- package/dist/cli/run/runner.d.ts +2 -0
- package/dist/cli/run/types.d.ts +71 -0
- package/dist/cli/types.d.ts +27 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/schema.d.ts +1914 -0
- package/dist/config/schema.test.d.ts +1 -0
- package/dist/features/background-agent/concurrency.d.ts +10 -0
- package/dist/features/background-agent/concurrency.test.d.ts +1 -0
- package/dist/features/background-agent/index.d.ts +3 -0
- package/dist/features/background-agent/manager.d.ts +55 -0
- package/dist/features/background-agent/manager.test.d.ts +1 -0
- package/dist/features/background-agent/types.d.ts +64 -0
- package/dist/features/boulder-state/constants.d.ts +10 -0
- package/dist/features/boulder-state/index.d.ts +3 -0
- package/dist/features/boulder-state/storage.d.ts +28 -0
- package/dist/features/boulder-state/storage.test.d.ts +1 -0
- package/dist/features/boulder-state/types.d.ts +24 -0
- package/dist/features/builtin-commands/commands.d.ts +2 -0
- package/dist/features/builtin-commands/index.d.ts +2 -0
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
- package/dist/features/builtin-commands/templates/ralph-loop.d.ts +2 -0
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +6 -0
- package/dist/features/builtin-skills/index.d.ts +2 -0
- package/dist/features/builtin-skills/skills.d.ts +2 -0
- package/dist/features/builtin-skills/types.d.ts +15 -0
- package/dist/features/claude-code-agent-loader/index.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +3 -0
- package/dist/features/claude-code-agent-loader/types.d.ts +14 -0
- package/dist/features/claude-code-command-loader/index.d.ts +2 -0
- package/dist/features/claude-code-command-loader/loader.d.ts +6 -0
- package/dist/features/claude-code-command-loader/types.d.ts +42 -0
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/index.d.ts +10 -0
- package/dist/features/claude-code-mcp-loader/loader.d.ts +4 -0
- package/dist/features/claude-code-mcp-loader/loader.test.d.ts +1 -0
- package/dist/features/claude-code-mcp-loader/transformer.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/types.d.ts +35 -0
- package/dist/features/claude-code-plugin-loader/index.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/loader.d.ts +20 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +186 -0
- package/dist/features/claude-code-session-state/index.d.ts +1 -0
- package/dist/features/claude-code-session-state/state.d.ts +4 -0
- package/dist/features/context-injector/collector.d.ts +11 -0
- package/dist/features/context-injector/collector.test.d.ts +1 -0
- package/dist/features/context-injector/index.d.ts +3 -0
- package/dist/features/context-injector/injector.d.ts +39 -0
- package/dist/features/context-injector/injector.test.d.ts +1 -0
- package/dist/features/context-injector/types.d.ts +83 -0
- package/dist/features/hook-message-injector/constants.d.ts +3 -0
- package/dist/features/hook-message-injector/index.d.ts +4 -0
- package/dist/features/hook-message-injector/injector.d.ts +11 -0
- package/dist/features/hook-message-injector/types.d.ts +44 -0
- package/dist/features/opencode-skill-loader/async-loader.d.ts +6 -0
- package/dist/features/opencode-skill-loader/async-loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/blocking.d.ts +2 -0
- package/dist/features/opencode-skill-loader/blocking.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/discover-worker.d.ts +1 -0
- package/dist/features/opencode-skill-loader/index.d.ts +4 -0
- package/dist/features/opencode-skill-loader/loader.d.ts +16 -0
- package/dist/features/opencode-skill-loader/loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/merger.d.ts +7 -0
- package/dist/features/opencode-skill-loader/skill-content.d.ts +5 -0
- package/dist/features/opencode-skill-loader/skill-content.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/types.d.ts +34 -0
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
- package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/index.d.ts +2 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +29 -0
- package/dist/features/skill-mcp-manager/manager.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/types.d.ts +11 -0
- package/dist/features/task-toast-manager/index.d.ts +2 -0
- package/dist/features/task-toast-manager/manager.d.ts +56 -0
- package/dist/features/task-toast-manager/manager.test.d.ts +1 -0
- package/dist/features/task-toast-manager/types.d.ts +16 -0
- package/dist/features/workflow-engine/adapters/index.d.ts +2 -0
- package/dist/features/workflow-engine/adapters/maestro/index.d.ts +43 -0
- package/dist/features/workflow-engine/adapters/sisyphus/index.d.ts +30 -0
- package/dist/features/workflow-engine/contracts/v1/contract.test.d.ts +1 -0
- package/dist/features/workflow-engine/contracts/v1/engine.contract.d.ts +27 -0
- package/dist/features/workflow-engine/contracts/v1/index.d.ts +2 -0
- package/dist/features/workflow-engine/contracts/v1/types.d.ts +337 -0
- package/dist/features/workflow-engine/engines/index.d.ts +1 -0
- package/dist/features/workflow-engine/engines/maestro-engine.d.ts +40 -0
- package/dist/features/workflow-engine/index.d.ts +4 -0
- package/dist/features/workflow-engine/service.d.ts +6 -0
- package/dist/google-auth.d.ts +3 -0
- package/dist/google-auth.js +3871 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts +5 -0
- package/dist/hooks/agent-usage-reminder/index.d.ts +22 -0
- package/dist/hooks/agent-usage-reminder/storage.d.ts +4 -0
- package/dist/hooks/agent-usage-reminder/types.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +4 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +17 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/parser.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +7 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-executor.d.ts +3 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-purge-errors.d.ts +7 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-storage.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-supersede.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +36 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +28 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +42 -0
- package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
- package/dist/hooks/auto-slash-command/detector.d.ts +9 -0
- package/dist/hooks/auto-slash-command/detector.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/executor.d.ts +11 -0
- package/dist/hooks/auto-slash-command/index.d.ts +12 -0
- package/dist/hooks/auto-slash-command/index.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/types.d.ts +27 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +3 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +20 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +13 -0
- package/dist/hooks/auto-update-checker/index.d.ts +13 -0
- package/dist/hooks/auto-update-checker/types.d.ts +25 -0
- package/dist/hooks/background-notification/index.d.ts +12 -0
- package/dist/hooks/background-notification/types.d.ts +4 -0
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +13 -0
- package/dist/hooks/claude-code-hooks/config.d.ts +3 -0
- package/dist/hooks/claude-code-hooks/index.d.ts +48 -0
- package/dist/hooks/claude-code-hooks/plugin-config.d.ts +8 -0
- package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +40 -0
- package/dist/hooks/claude-code-hooks/pre-compact.d.ts +16 -0
- package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +25 -0
- package/dist/hooks/claude-code-hooks/stop.d.ts +20 -0
- package/dist/hooks/claude-code-hooks/todo.d.ts +12 -0
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +5 -0
- package/dist/hooks/claude-code-hooks/transcript.d.ts +38 -0
- package/dist/hooks/claude-code-hooks/types.d.ts +183 -0
- package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +22 -0
- package/dist/hooks/comment-checker/cli.d.ts +53 -0
- package/dist/hooks/comment-checker/constants.d.ts +3 -0
- package/dist/hooks/comment-checker/downloader.d.ts +25 -0
- package/dist/hooks/comment-checker/filters/bdd.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/directive.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/docstring.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/index.d.ts +7 -0
- package/dist/hooks/comment-checker/filters/shebang.d.ts +2 -0
- package/dist/hooks/comment-checker/index.d.ts +19 -0
- package/dist/hooks/comment-checker/output/formatter.d.ts +2 -0
- package/dist/hooks/comment-checker/output/index.d.ts +2 -0
- package/dist/hooks/comment-checker/output/xml-builder.d.ts +2 -0
- package/dist/hooks/comment-checker/types.d.ts +31 -0
- package/dist/hooks/compaction-context-injector/index.d.ts +2 -0
- package/dist/hooks/context-window-monitor.d.ts +18 -0
- package/dist/hooks/directory-agents-injector/constants.d.ts +3 -0
- package/dist/hooks/directory-agents-injector/index.d.ts +26 -0
- package/dist/hooks/directory-agents-injector/storage.d.ts +3 -0
- package/dist/hooks/directory-agents-injector/types.d.ts +5 -0
- package/dist/hooks/directory-readme-injector/constants.d.ts +3 -0
- package/dist/hooks/directory-readme-injector/index.d.ts +26 -0
- package/dist/hooks/directory-readme-injector/storage.d.ts +3 -0
- package/dist/hooks/directory-readme-injector/types.d.ts +5 -0
- package/dist/hooks/edit-error-recovery/index.d.ts +31 -0
- package/dist/hooks/edit-error-recovery/index.test.d.ts +1 -0
- package/dist/hooks/empty-message-sanitizer/index.d.ts +12 -0
- package/dist/hooks/empty-task-response-detector.d.ts +12 -0
- package/dist/hooks/index.d.ts +30 -0
- package/dist/hooks/interactive-bash-session/constants.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/index.d.ts +23 -0
- package/dist/hooks/interactive-bash-session/storage.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/types.d.ts +10 -0
- package/dist/hooks/keyword-detector/constants.d.ts +12 -0
- package/dist/hooks/keyword-detector/detector.d.ts +11 -0
- package/dist/hooks/keyword-detector/index.d.ts +22 -0
- package/dist/hooks/keyword-detector/index.test.d.ts +1 -0
- package/dist/hooks/keyword-detector/types.d.ts +4 -0
- package/dist/hooks/non-interactive-env/constants.d.ts +34 -0
- package/dist/hooks/non-interactive-env/detector.d.ts +1 -0
- package/dist/hooks/non-interactive-env/index.d.ts +14 -0
- package/dist/hooks/non-interactive-env/index.test.d.ts +1 -0
- package/dist/hooks/non-interactive-env/types.d.ts +3 -0
- package/dist/hooks/preemptive-compaction/constants.d.ts +3 -0
- package/dist/hooks/preemptive-compaction/index.d.ts +24 -0
- package/dist/hooks/preemptive-compaction/types.d.ts +17 -0
- package/dist/hooks/prometheus-md-only/constants.d.ts +6 -0
- package/dist/hooks/prometheus-md-only/index.d.ts +12 -0
- package/dist/hooks/prometheus-md-only/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/constants.d.ts +5 -0
- package/dist/hooks/ralph-loop/index.d.ts +20 -0
- package/dist/hooks/ralph-loop/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/storage.d.ts +6 -0
- package/dist/hooks/ralph-loop/types.d.ts +16 -0
- package/dist/hooks/rules-injector/constants.d.ts +8 -0
- package/dist/hooks/rules-injector/finder.d.ts +33 -0
- package/dist/hooks/rules-injector/finder.test.d.ts +1 -0
- package/dist/hooks/rules-injector/index.d.ts +26 -0
- package/dist/hooks/rules-injector/matcher.d.ts +21 -0
- package/dist/hooks/rules-injector/parser.d.ts +18 -0
- package/dist/hooks/rules-injector/parser.test.d.ts +1 -0
- package/dist/hooks/rules-injector/storage.d.ts +9 -0
- package/dist/hooks/rules-injector/types.d.ts +54 -0
- package/dist/hooks/session-notification-utils.d.ts +9 -0
- package/dist/hooks/session-notification.d.ts +20 -0
- package/dist/hooks/session-notification.test.d.ts +1 -0
- package/dist/hooks/session-recovery/constants.d.ts +6 -0
- package/dist/hooks/session-recovery/index.d.ts +22 -0
- package/dist/hooks/session-recovery/index.test.d.ts +1 -0
- package/dist/hooks/session-recovery/storage.d.ts +19 -0
- package/dist/hooks/session-recovery/types.d.ts +90 -0
- package/dist/hooks/sisyphus-orchestrator/index.d.ts +35 -0
- package/dist/hooks/sisyphus-orchestrator/index.test.d.ts +1 -0
- package/dist/hooks/start-work/index.d.ts +16 -0
- package/dist/hooks/start-work/index.test.d.ts +1 -0
- package/dist/hooks/task-resume-info/index.d.ts +11 -0
- package/dist/hooks/think-mode/detector.d.ts +5 -0
- package/dist/hooks/think-mode/index.d.ts +14 -0
- package/dist/hooks/think-mode/index.test.d.ts +1 -0
- package/dist/hooks/think-mode/switcher.d.ts +57 -0
- package/dist/hooks/think-mode/switcher.test.d.ts +1 -0
- package/dist/hooks/think-mode/types.d.ts +21 -0
- package/dist/hooks/thinking-block-validator/index.d.ts +30 -0
- package/dist/hooks/todo-continuation-enforcer.d.ts +17 -0
- package/dist/hooks/todo-continuation-enforcer.test.d.ts +1 -0
- package/dist/hooks/tool-output-truncator.d.ts +17 -0
- package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +56428 -0
- package/dist/mcp/context7.d.ts +5 -0
- package/dist/mcp/grep-app.d.ts +5 -0
- package/dist/mcp/index.d.ts +8 -0
- package/dist/mcp/index.test.d.ts +1 -0
- package/dist/mcp/types.d.ts +9 -0
- package/dist/mcp/websearch.d.ts +8 -0
- package/dist/plugin-config.d.ts +4 -0
- package/dist/plugin-handlers/config-handler.d.ts +10 -0
- package/dist/plugin-handlers/index.d.ts +1 -0
- package/dist/plugin-state.d.ts +6 -0
- package/dist/shared/claude-config-dir.d.ts +1 -0
- package/dist/shared/claude-config-dir.test.d.ts +1 -0
- package/dist/shared/command-executor.d.ts +21 -0
- package/dist/shared/config-errors.d.ts +7 -0
- package/dist/shared/config-path.d.ts +17 -0
- package/dist/shared/data-path.d.ts +14 -0
- package/dist/shared/deep-merge.d.ts +13 -0
- package/dist/shared/dynamic-truncator.d.ts +27 -0
- package/dist/shared/external-plugin-detector.d.ts +18 -0
- package/dist/shared/external-plugin-detector.test.d.ts +1 -0
- package/dist/shared/file-reference-resolver.d.ts +1 -0
- package/dist/shared/file-utils.d.ts +7 -0
- package/dist/shared/frontmatter.d.ts +7 -0
- package/dist/shared/frontmatter.test.d.ts +1 -0
- package/dist/shared/hook-disabled.d.ts +2 -0
- package/dist/shared/index.d.ts +22 -0
- package/dist/shared/jsonc-parser.d.ts +15 -0
- package/dist/shared/jsonc-parser.test.d.ts +1 -0
- package/dist/shared/logger.d.ts +2 -0
- package/dist/shared/migration.d.ts +17 -0
- package/dist/shared/migration.test.d.ts +1 -0
- package/dist/shared/model-sanitizer.d.ts +3 -0
- package/dist/shared/opencode-config-dir.d.ts +19 -0
- package/dist/shared/opencode-config-dir.test.d.ts +1 -0
- package/dist/shared/opencode-version.d.ts +10 -0
- package/dist/shared/opencode-version.test.d.ts +1 -0
- package/dist/shared/pattern-matcher.d.ts +3 -0
- package/dist/shared/permission-compat.d.ts +12 -0
- package/dist/shared/permission-compat.test.d.ts +1 -0
- package/dist/shared/snake-case.d.ts +4 -0
- package/dist/shared/tool-name.d.ts +1 -0
- package/dist/tools/ast-grep/cli.d.ts +15 -0
- package/dist/tools/ast-grep/constants.d.ts +29 -0
- package/dist/tools/ast-grep/downloader.d.ts +5 -0
- package/dist/tools/ast-grep/index.d.ts +8 -0
- package/dist/tools/ast-grep/napi.d.ts +13 -0
- package/dist/tools/ast-grep/tools.d.ts +3 -0
- package/dist/tools/ast-grep/types.d.ts +58 -0
- package/dist/tools/ast-grep/utils.d.ts +5 -0
- package/dist/tools/background-task/constants.d.ts +3 -0
- package/dist/tools/background-task/index.d.ts +3 -0
- package/dist/tools/background-task/tools.d.ts +7 -0
- package/dist/tools/background-task/types.d.ts +14 -0
- package/dist/tools/call-omo-agent/constants.d.ts +2 -0
- package/dist/tools/call-omo-agent/index.d.ts +3 -0
- package/dist/tools/call-omo-agent/tools.d.ts +3 -0
- package/dist/tools/call-omo-agent/types.d.ts +24 -0
- package/dist/tools/glob/cli.d.ts +7 -0
- package/dist/tools/glob/constants.d.ts +6 -0
- package/dist/tools/glob/index.d.ts +2 -0
- package/dist/tools/glob/tools.d.ts +2 -0
- package/dist/tools/glob/types.d.ts +19 -0
- package/dist/tools/glob/utils.d.ts +2 -0
- package/dist/tools/grep/cli.d.ts +3 -0
- package/dist/tools/grep/constants.d.ts +17 -0
- package/dist/tools/grep/downloader.d.ts +3 -0
- package/dist/tools/grep/downloader.test.d.ts +1 -0
- package/dist/tools/grep/index.d.ts +2 -0
- package/dist/tools/grep/tools.d.ts +2 -0
- package/dist/tools/grep/types.d.ts +36 -0
- package/dist/tools/grep/utils.d.ts +3 -0
- package/dist/tools/index.d.ts +14 -0
- package/dist/tools/interactive-bash/constants.d.ts +3 -0
- package/dist/tools/interactive-bash/index.d.ts +3 -0
- package/dist/tools/interactive-bash/tools.d.ts +7 -0
- package/dist/tools/interactive-bash/types.d.ts +3 -0
- package/dist/tools/interactive-bash/utils.d.ts +3 -0
- package/dist/tools/look-at/constants.d.ts +2 -0
- package/dist/tools/look-at/index.d.ts +3 -0
- package/dist/tools/look-at/tools.d.ts +2 -0
- package/dist/tools/look-at/types.d.ts +4 -0
- package/dist/tools/lsp/client.d.ts +59 -0
- package/dist/tools/lsp/config.d.ts +17 -0
- package/dist/tools/lsp/constants.d.ts +9 -0
- package/dist/tools/lsp/index.d.ts +6 -0
- package/dist/tools/lsp/tools.d.ts +12 -0
- package/dist/tools/lsp/types.d.ts +156 -0
- package/dist/tools/lsp/utils.d.ts +29 -0
- package/dist/tools/session-manager/constants.d.ts +12 -0
- package/dist/tools/session-manager/index.d.ts +3 -0
- package/dist/tools/session-manager/storage.d.ts +12 -0
- package/dist/tools/session-manager/storage.test.d.ts +1 -0
- package/dist/tools/session-manager/tools.d.ts +5 -0
- package/dist/tools/session-manager/tools.test.d.ts +1 -0
- package/dist/tools/session-manager/types.d.ts +89 -0
- package/dist/tools/session-manager/utils.d.ts +11 -0
- package/dist/tools/session-manager/utils.test.d.ts +1 -0
- package/dist/tools/sisyphus-task/constants.d.ts +12 -0
- package/dist/tools/sisyphus-task/index.d.ts +3 -0
- package/dist/tools/sisyphus-task/tools.d.ts +16 -0
- package/dist/tools/sisyphus-task/tools.test.d.ts +1 -0
- package/dist/tools/sisyphus-task/types.d.ts +9 -0
- package/dist/tools/skill/constants.d.ts +3 -0
- package/dist/tools/skill/index.d.ts +3 -0
- package/dist/tools/skill/tools.d.ts +10 -0
- package/dist/tools/skill/tools.test.d.ts +1 -0
- package/dist/tools/skill/types.d.ts +25 -0
- package/dist/tools/skill-mcp/constants.d.ts +2 -0
- package/dist/tools/skill-mcp/index.d.ts +3 -0
- package/dist/tools/skill-mcp/tools.d.ts +11 -0
- package/dist/tools/skill-mcp/tools.test.d.ts +1 -0
- package/dist/tools/skill-mcp/types.d.ts +8 -0
- package/dist/tools/slashcommand/index.d.ts +2 -0
- package/dist/tools/slashcommand/tools.d.ts +11 -0
- package/dist/tools/slashcommand/types.d.ts +24 -0
- package/package.json +83 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Antigravity Auth Type Definitions
|
|
3
|
+
* Matches cliproxyapi/sdk/auth/antigravity.go token format exactly
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Token storage format for Antigravity authentication
|
|
7
|
+
* Matches Go metadata structure: type, access_token, refresh_token, expires_in, timestamp, email, project_id
|
|
8
|
+
*/
|
|
9
|
+
export interface AntigravityTokens {
|
|
10
|
+
/** Always "antigravity" for this auth type */
|
|
11
|
+
type: "antigravity";
|
|
12
|
+
/** OAuth access token from Google */
|
|
13
|
+
access_token: string;
|
|
14
|
+
/** OAuth refresh token from Google */
|
|
15
|
+
refresh_token: string;
|
|
16
|
+
/** Token expiration time in seconds */
|
|
17
|
+
expires_in: number;
|
|
18
|
+
/** Unix timestamp in milliseconds when tokens were obtained */
|
|
19
|
+
timestamp: number;
|
|
20
|
+
/** ISO 8601 formatted expiration datetime (optional, for display) */
|
|
21
|
+
expired?: string;
|
|
22
|
+
/** User's email address from Google userinfo */
|
|
23
|
+
email?: string;
|
|
24
|
+
/** GCP project ID from loadCodeAssist API */
|
|
25
|
+
project_id?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Project context returned from loadCodeAssist API
|
|
29
|
+
* Used to get cloudaicompanionProject for API calls
|
|
30
|
+
*/
|
|
31
|
+
export interface AntigravityProjectContext {
|
|
32
|
+
/** GCP project ID for Cloud AI Companion */
|
|
33
|
+
cloudaicompanionProject?: string;
|
|
34
|
+
/** Managed project ID for enterprise users (optional) */
|
|
35
|
+
managedProjectId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Metadata for loadCodeAssist API request
|
|
39
|
+
*/
|
|
40
|
+
export interface AntigravityClientMetadata {
|
|
41
|
+
/** IDE type identifier */
|
|
42
|
+
ideType: "IDE_UNSPECIFIED" | string;
|
|
43
|
+
/** Platform identifier */
|
|
44
|
+
platform: "PLATFORM_UNSPECIFIED" | string;
|
|
45
|
+
/** Plugin type - typically "GEMINI" */
|
|
46
|
+
pluginType: "GEMINI" | string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Request body for loadCodeAssist API
|
|
50
|
+
*/
|
|
51
|
+
export interface AntigravityLoadCodeAssistRequest {
|
|
52
|
+
metadata: AntigravityClientMetadata;
|
|
53
|
+
}
|
|
54
|
+
export interface AntigravityUserTier {
|
|
55
|
+
id?: string;
|
|
56
|
+
isDefault?: boolean;
|
|
57
|
+
userDefinedCloudaicompanionProject?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface AntigravityLoadCodeAssistResponse {
|
|
60
|
+
cloudaicompanionProject?: string | {
|
|
61
|
+
id: string;
|
|
62
|
+
};
|
|
63
|
+
currentTier?: {
|
|
64
|
+
id?: string;
|
|
65
|
+
};
|
|
66
|
+
allowedTiers?: AntigravityUserTier[];
|
|
67
|
+
}
|
|
68
|
+
export interface AntigravityOnboardUserPayload {
|
|
69
|
+
done?: boolean;
|
|
70
|
+
response?: {
|
|
71
|
+
cloudaicompanionProject?: {
|
|
72
|
+
id?: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Request body format for Antigravity API calls
|
|
78
|
+
* Wraps the actual request with project and model context
|
|
79
|
+
*/
|
|
80
|
+
export interface AntigravityRequestBody {
|
|
81
|
+
project: string;
|
|
82
|
+
model: string;
|
|
83
|
+
userAgent: string;
|
|
84
|
+
requestType: string;
|
|
85
|
+
requestId: string;
|
|
86
|
+
request: Record<string, unknown>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Response format from Antigravity API
|
|
90
|
+
* Follows OpenAI-compatible structure with Gemini extensions
|
|
91
|
+
*/
|
|
92
|
+
export interface AntigravityResponse {
|
|
93
|
+
/** Response ID */
|
|
94
|
+
id?: string;
|
|
95
|
+
/** Object type (e.g., "chat.completion") */
|
|
96
|
+
object?: string;
|
|
97
|
+
/** Creation timestamp */
|
|
98
|
+
created?: number;
|
|
99
|
+
/** Model used for response */
|
|
100
|
+
model?: string;
|
|
101
|
+
/** Response choices */
|
|
102
|
+
choices?: AntigravityResponseChoice[];
|
|
103
|
+
/** Token usage statistics */
|
|
104
|
+
usage?: AntigravityUsage;
|
|
105
|
+
/** Error information if request failed */
|
|
106
|
+
error?: AntigravityError;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Single response choice in Antigravity response
|
|
110
|
+
*/
|
|
111
|
+
export interface AntigravityResponseChoice {
|
|
112
|
+
/** Choice index */
|
|
113
|
+
index: number;
|
|
114
|
+
/** Message content */
|
|
115
|
+
message?: {
|
|
116
|
+
role: "assistant";
|
|
117
|
+
content?: string;
|
|
118
|
+
tool_calls?: AntigravityToolCall[];
|
|
119
|
+
};
|
|
120
|
+
/** Delta for streaming responses */
|
|
121
|
+
delta?: {
|
|
122
|
+
role?: "assistant";
|
|
123
|
+
content?: string;
|
|
124
|
+
tool_calls?: AntigravityToolCall[];
|
|
125
|
+
};
|
|
126
|
+
/** Finish reason */
|
|
127
|
+
finish_reason?: "stop" | "tool_calls" | "length" | "content_filter" | null;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Tool call in Antigravity response
|
|
131
|
+
*/
|
|
132
|
+
export interface AntigravityToolCall {
|
|
133
|
+
id: string;
|
|
134
|
+
type: "function";
|
|
135
|
+
function: {
|
|
136
|
+
name: string;
|
|
137
|
+
arguments: string;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Token usage statistics
|
|
142
|
+
*/
|
|
143
|
+
export interface AntigravityUsage {
|
|
144
|
+
prompt_tokens: number;
|
|
145
|
+
completion_tokens: number;
|
|
146
|
+
total_tokens: number;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Error response from Antigravity API
|
|
150
|
+
*/
|
|
151
|
+
export interface AntigravityError {
|
|
152
|
+
message: string;
|
|
153
|
+
type?: string;
|
|
154
|
+
code?: string | number;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Token exchange result from Google OAuth
|
|
158
|
+
* Matches antigravityTokenResponse in Go
|
|
159
|
+
*/
|
|
160
|
+
export interface AntigravityTokenExchangeResult {
|
|
161
|
+
access_token: string;
|
|
162
|
+
refresh_token: string;
|
|
163
|
+
expires_in: number;
|
|
164
|
+
token_type: string;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* User info from Google userinfo API
|
|
168
|
+
*/
|
|
169
|
+
export interface AntigravityUserInfo {
|
|
170
|
+
email: string;
|
|
171
|
+
name?: string;
|
|
172
|
+
picture?: string;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Parsed refresh token parts
|
|
176
|
+
* Format: refreshToken|projectId|managedProjectId
|
|
177
|
+
*/
|
|
178
|
+
export interface AntigravityRefreshParts {
|
|
179
|
+
refreshToken: string;
|
|
180
|
+
projectId?: string;
|
|
181
|
+
managedProjectId?: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* OAuth error payload from Google
|
|
185
|
+
* Google returns errors in multiple formats, this handles all of them
|
|
186
|
+
*/
|
|
187
|
+
export interface OAuthErrorPayload {
|
|
188
|
+
error?: string | {
|
|
189
|
+
status?: string;
|
|
190
|
+
code?: string;
|
|
191
|
+
message?: string;
|
|
192
|
+
};
|
|
193
|
+
error_description?: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Parsed OAuth error with normalized fields
|
|
197
|
+
*/
|
|
198
|
+
export interface ParsedOAuthError {
|
|
199
|
+
code?: string;
|
|
200
|
+
description?: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Multi-account support types
|
|
204
|
+
*/
|
|
205
|
+
/** All model families for rate limit tracking */
|
|
206
|
+
export declare const MODEL_FAMILIES: readonly ["claude", "gemini-flash", "gemini-pro"];
|
|
207
|
+
/** Model family for rate limit tracking */
|
|
208
|
+
export type ModelFamily = (typeof MODEL_FAMILIES)[number];
|
|
209
|
+
/** Account tier for prioritization */
|
|
210
|
+
export type AccountTier = "free" | "paid";
|
|
211
|
+
/** Rate limit state per model family (Unix timestamps in ms) */
|
|
212
|
+
export type RateLimitState = Partial<Record<ModelFamily, number>>;
|
|
213
|
+
/** Account metadata for storage */
|
|
214
|
+
export interface AccountMetadata {
|
|
215
|
+
email: string;
|
|
216
|
+
tier: AccountTier;
|
|
217
|
+
refreshToken: string;
|
|
218
|
+
projectId: string;
|
|
219
|
+
managedProjectId?: string;
|
|
220
|
+
accessToken: string;
|
|
221
|
+
expiresAt: number;
|
|
222
|
+
rateLimits: RateLimitState;
|
|
223
|
+
}
|
|
224
|
+
/** Storage schema for persisting multiple accounts */
|
|
225
|
+
export interface AccountStorage {
|
|
226
|
+
version: number;
|
|
227
|
+
accounts: AccountMetadata[];
|
|
228
|
+
activeIndex: number;
|
|
229
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type OpenCodeBinaryType, type OpenCodeConfigPaths } from "../shared";
|
|
2
|
+
import type { ConfigMergeResult, DetectedConfig, InstallConfig } from "./types";
|
|
3
|
+
interface ConfigContext {
|
|
4
|
+
binary: OpenCodeBinaryType;
|
|
5
|
+
version: string | null;
|
|
6
|
+
paths: OpenCodeConfigPaths;
|
|
7
|
+
}
|
|
8
|
+
export declare function initConfigContext(binary: OpenCodeBinaryType, version: string | null): void;
|
|
9
|
+
export declare function getConfigContext(): ConfigContext;
|
|
10
|
+
export declare function resetConfigContext(): void;
|
|
11
|
+
export declare function fetchLatestVersion(packageName: string): Promise<string | null>;
|
|
12
|
+
type ConfigFormat = "json" | "jsonc" | "none";
|
|
13
|
+
export declare function detectConfigFormat(): {
|
|
14
|
+
format: ConfigFormat;
|
|
15
|
+
path: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function addPluginToOpenCodeConfig(): ConfigMergeResult;
|
|
18
|
+
export declare function generateOmoConfig(installConfig: InstallConfig): Record<string, unknown>;
|
|
19
|
+
export declare function writeOmoConfig(installConfig: InstallConfig): ConfigMergeResult;
|
|
20
|
+
export declare function isOpenCodeInstalled(): Promise<boolean>;
|
|
21
|
+
export declare function getOpenCodeVersion(): Promise<string | null>;
|
|
22
|
+
export declare function addAuthPlugins(config: InstallConfig): Promise<ConfigMergeResult>;
|
|
23
|
+
export interface BunInstallResult {
|
|
24
|
+
success: boolean;
|
|
25
|
+
timedOut?: boolean;
|
|
26
|
+
error?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function runBunInstall(): Promise<boolean>;
|
|
29
|
+
export declare function runBunInstallWithDetails(): Promise<BunInstallResult>;
|
|
30
|
+
/**
|
|
31
|
+
* Antigravity Provider Configuration
|
|
32
|
+
*
|
|
33
|
+
* IMPORTANT: Model names MUST use `antigravity-` prefix for stability.
|
|
34
|
+
*
|
|
35
|
+
* The opencode-antigravity-auth plugin supports two naming conventions:
|
|
36
|
+
* - `antigravity-gemini-3-pro-high` (RECOMMENDED, explicit Antigravity quota routing)
|
|
37
|
+
* - `gemini-3-pro-high` (LEGACY, backward compatible but may break in future)
|
|
38
|
+
*
|
|
39
|
+
* Legacy names rely on Gemini CLI using `-preview` suffix for disambiguation.
|
|
40
|
+
* If Google removes `-preview`, legacy names may route to wrong quota.
|
|
41
|
+
*
|
|
42
|
+
* @see https://github.com/NoeFabris/opencode-antigravity-auth#migration-guide-v127
|
|
43
|
+
*/
|
|
44
|
+
export declare const ANTIGRAVITY_PROVIDER_CONFIG: {
|
|
45
|
+
google: {
|
|
46
|
+
name: string;
|
|
47
|
+
models: {
|
|
48
|
+
"antigravity-gemini-3-pro-high": {
|
|
49
|
+
name: string;
|
|
50
|
+
thinking: boolean;
|
|
51
|
+
attachment: boolean;
|
|
52
|
+
limit: {
|
|
53
|
+
context: number;
|
|
54
|
+
output: number;
|
|
55
|
+
};
|
|
56
|
+
modalities: {
|
|
57
|
+
input: string[];
|
|
58
|
+
output: string[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
"antigravity-gemini-3-pro-low": {
|
|
62
|
+
name: string;
|
|
63
|
+
thinking: boolean;
|
|
64
|
+
attachment: boolean;
|
|
65
|
+
limit: {
|
|
66
|
+
context: number;
|
|
67
|
+
output: number;
|
|
68
|
+
};
|
|
69
|
+
modalities: {
|
|
70
|
+
input: string[];
|
|
71
|
+
output: string[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
"antigravity-gemini-3-flash": {
|
|
75
|
+
name: string;
|
|
76
|
+
attachment: boolean;
|
|
77
|
+
limit: {
|
|
78
|
+
context: number;
|
|
79
|
+
output: number;
|
|
80
|
+
};
|
|
81
|
+
modalities: {
|
|
82
|
+
input: string[];
|
|
83
|
+
output: string[];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare function addProviderConfig(config: InstallConfig): ConfigMergeResult;
|
|
90
|
+
export declare function detectCurrentConfig(): DetectedConfig;
|
|
91
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition, AuthProviderInfo, AuthProviderId } from "../types";
|
|
2
|
+
export declare function getAuthProviderInfo(providerId: AuthProviderId): AuthProviderInfo;
|
|
3
|
+
export declare function checkAuthProvider(providerId: AuthProviderId): Promise<CheckResult>;
|
|
4
|
+
export declare function checkAnthropicAuth(): Promise<CheckResult>;
|
|
5
|
+
export declare function checkOpenAIAuth(): Promise<CheckResult>;
|
|
6
|
+
export declare function checkGoogleAuth(): Promise<CheckResult>;
|
|
7
|
+
export declare function getAuthCheckDefinitions(): CheckDefinition[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition, ConfigInfo } from "../types";
|
|
2
|
+
export declare function validateConfig(configPath: string): {
|
|
3
|
+
valid: boolean;
|
|
4
|
+
errors: string[];
|
|
5
|
+
};
|
|
6
|
+
export declare function getConfigInfo(): ConfigInfo;
|
|
7
|
+
export declare function checkConfigValidity(): Promise<CheckResult>;
|
|
8
|
+
export declare function getConfigCheckDefinition(): CheckDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition, DependencyInfo } from "../types";
|
|
2
|
+
export declare function checkAstGrepCli(): Promise<DependencyInfo>;
|
|
3
|
+
export declare function checkAstGrepNapi(): DependencyInfo;
|
|
4
|
+
export declare function checkCommentChecker(): Promise<DependencyInfo>;
|
|
5
|
+
export declare function checkDependencyAstGrepCli(): Promise<CheckResult>;
|
|
6
|
+
export declare function checkDependencyAstGrepNapi(): Promise<CheckResult>;
|
|
7
|
+
export declare function checkDependencyCommentChecker(): Promise<CheckResult>;
|
|
8
|
+
export declare function getDependencyCheckDefinitions(): CheckDefinition[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition } from "../types";
|
|
2
|
+
export interface GhCliInfo {
|
|
3
|
+
installed: boolean;
|
|
4
|
+
version: string | null;
|
|
5
|
+
path: string | null;
|
|
6
|
+
authenticated: boolean;
|
|
7
|
+
username: string | null;
|
|
8
|
+
scopes: string[];
|
|
9
|
+
error: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare function getGhCliInfo(): Promise<GhCliInfo>;
|
|
12
|
+
export declare function checkGhCli(): Promise<CheckResult>;
|
|
13
|
+
export declare function getGhCliCheckDefinition(): CheckDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CheckDefinition } from "../types";
|
|
2
|
+
export * from "./opencode";
|
|
3
|
+
export * from "./plugin";
|
|
4
|
+
export * from "./config";
|
|
5
|
+
export * from "./auth";
|
|
6
|
+
export * from "./dependencies";
|
|
7
|
+
export * from "./gh";
|
|
8
|
+
export * from "./lsp";
|
|
9
|
+
export * from "./mcp";
|
|
10
|
+
export * from "./version";
|
|
11
|
+
export declare function getAllCheckDefinitions(): CheckDefinition[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition, LspServerInfo } from "../types";
|
|
2
|
+
export declare function getLspServersInfo(): Promise<LspServerInfo[]>;
|
|
3
|
+
export declare function getLspServerStats(servers: LspServerInfo[]): {
|
|
4
|
+
installed: number;
|
|
5
|
+
total: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function checkLspServers(): Promise<CheckResult>;
|
|
8
|
+
export declare function getLspCheckDefinition(): CheckDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition, McpServerInfo } from "../types";
|
|
2
|
+
export declare function getBuiltinMcpInfo(): McpServerInfo[];
|
|
3
|
+
export declare function getUserMcpInfo(): McpServerInfo[];
|
|
4
|
+
export declare function checkBuiltinMcpServers(): Promise<CheckResult>;
|
|
5
|
+
export declare function checkUserMcpServers(): Promise<CheckResult>;
|
|
6
|
+
export declare function getMcpCheckDefinitions(): CheckDefinition[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition, OpenCodeInfo } from "../types";
|
|
2
|
+
export declare function findOpenCodeBinary(): Promise<{
|
|
3
|
+
binary: string;
|
|
4
|
+
path: string;
|
|
5
|
+
} | null>;
|
|
6
|
+
export declare function getOpenCodeVersion(binary: string): Promise<string | null>;
|
|
7
|
+
export declare function compareVersions(current: string, minimum: string): boolean;
|
|
8
|
+
export declare function getOpenCodeInfo(): Promise<OpenCodeInfo>;
|
|
9
|
+
export declare function checkOpenCodeInstallation(): Promise<CheckResult>;
|
|
10
|
+
export declare function getOpenCodeCheckDefinition(): CheckDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition, PluginInfo } from "../types";
|
|
2
|
+
export declare function getPluginInfo(): PluginInfo;
|
|
3
|
+
export declare function checkPluginRegistration(): Promise<CheckResult>;
|
|
4
|
+
export declare function getPluginCheckDefinition(): CheckDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CheckResult, CheckDefinition, VersionCheckInfo } from "../types";
|
|
2
|
+
export declare function getVersionInfo(): Promise<VersionCheckInfo>;
|
|
3
|
+
export declare function checkVersionStatus(): Promise<CheckResult>;
|
|
4
|
+
export declare function getVersionCheckDefinition(): CheckDefinition;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const SYMBOLS: {
|
|
2
|
+
readonly check: string;
|
|
3
|
+
readonly cross: string;
|
|
4
|
+
readonly warn: string;
|
|
5
|
+
readonly info: string;
|
|
6
|
+
readonly arrow: string;
|
|
7
|
+
readonly bullet: string;
|
|
8
|
+
readonly skip: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const STATUS_COLORS: {
|
|
11
|
+
readonly pass: import("picocolors/types").Formatter;
|
|
12
|
+
readonly fail: import("picocolors/types").Formatter;
|
|
13
|
+
readonly warn: import("picocolors/types").Formatter;
|
|
14
|
+
readonly skip: import("picocolors/types").Formatter;
|
|
15
|
+
};
|
|
16
|
+
export declare const CHECK_IDS: {
|
|
17
|
+
readonly OPENCODE_INSTALLATION: "opencode-installation";
|
|
18
|
+
readonly PLUGIN_REGISTRATION: "plugin-registration";
|
|
19
|
+
readonly CONFIG_VALIDATION: "config-validation";
|
|
20
|
+
readonly AUTH_ANTHROPIC: "auth-anthropic";
|
|
21
|
+
readonly AUTH_OPENAI: "auth-openai";
|
|
22
|
+
readonly AUTH_GOOGLE: "auth-google";
|
|
23
|
+
readonly DEP_AST_GREP_CLI: "dep-ast-grep-cli";
|
|
24
|
+
readonly DEP_AST_GREP_NAPI: "dep-ast-grep-napi";
|
|
25
|
+
readonly DEP_COMMENT_CHECKER: "dep-comment-checker";
|
|
26
|
+
readonly GH_CLI: "gh-cli";
|
|
27
|
+
readonly LSP_SERVERS: "lsp-servers";
|
|
28
|
+
readonly MCP_BUILTIN: "mcp-builtin";
|
|
29
|
+
readonly MCP_USER: "mcp-user";
|
|
30
|
+
readonly VERSION_STATUS: "version-status";
|
|
31
|
+
};
|
|
32
|
+
export declare const CHECK_NAMES: Record<string, string>;
|
|
33
|
+
export declare const CATEGORY_NAMES: Record<string, string>;
|
|
34
|
+
export declare const EXIT_CODES: {
|
|
35
|
+
readonly SUCCESS: 0;
|
|
36
|
+
readonly FAILURE: 1;
|
|
37
|
+
};
|
|
38
|
+
export declare const MIN_OPENCODE_VERSION = "1.0.150";
|
|
39
|
+
export declare const PACKAGE_NAME = "oh-my-opencode";
|
|
40
|
+
export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CheckResult, DoctorSummary, CheckCategory, DoctorResult } from "./types";
|
|
2
|
+
export declare function formatStatusSymbol(status: CheckResult["status"]): string;
|
|
3
|
+
export declare function formatCheckResult(result: CheckResult, verbose: boolean): string;
|
|
4
|
+
export declare function formatCategoryHeader(category: CheckCategory): string;
|
|
5
|
+
export declare function formatSummary(summary: DoctorSummary): string;
|
|
6
|
+
export declare function formatHeader(): string;
|
|
7
|
+
export declare function formatFooter(summary: DoctorSummary): string;
|
|
8
|
+
export declare function formatProgress(current: number, total: number, name: string): string;
|
|
9
|
+
export declare function formatJsonOutput(result: DoctorResult): string;
|
|
10
|
+
export declare function formatDetails(details: string[]): string;
|
|
11
|
+
export declare function formatBox(content: string, title?: string): string;
|
|
12
|
+
export declare function formatHelpSuggestions(results: CheckResult[]): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DoctorOptions, DoctorResult, CheckDefinition, CheckResult, DoctorSummary, CheckCategory } from "./types";
|
|
2
|
+
export declare function runCheck(check: CheckDefinition): Promise<CheckResult>;
|
|
3
|
+
export declare function calculateSummary(results: CheckResult[], duration: number): DoctorSummary;
|
|
4
|
+
export declare function determineExitCode(results: CheckResult[]): number;
|
|
5
|
+
export declare function filterChecksByCategory(checks: CheckDefinition[], category?: CheckCategory): CheckDefinition[];
|
|
6
|
+
export declare function groupChecksByCategory(checks: CheckDefinition[]): Map<CheckCategory, CheckDefinition[]>;
|
|
7
|
+
export declare function runDoctor(options: DoctorOptions): Promise<DoctorResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export type CheckStatus = "pass" | "fail" | "warn" | "skip";
|
|
2
|
+
export interface CheckResult {
|
|
3
|
+
name: string;
|
|
4
|
+
status: CheckStatus;
|
|
5
|
+
message: string;
|
|
6
|
+
details?: string[];
|
|
7
|
+
duration?: number;
|
|
8
|
+
}
|
|
9
|
+
export type CheckFunction = () => Promise<CheckResult>;
|
|
10
|
+
export type CheckCategory = "installation" | "configuration" | "authentication" | "dependencies" | "tools" | "updates";
|
|
11
|
+
export interface CheckDefinition {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
category: CheckCategory;
|
|
15
|
+
check: CheckFunction;
|
|
16
|
+
critical?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface DoctorOptions {
|
|
19
|
+
verbose?: boolean;
|
|
20
|
+
json?: boolean;
|
|
21
|
+
category?: CheckCategory;
|
|
22
|
+
}
|
|
23
|
+
export interface DoctorSummary {
|
|
24
|
+
total: number;
|
|
25
|
+
passed: number;
|
|
26
|
+
failed: number;
|
|
27
|
+
warnings: number;
|
|
28
|
+
skipped: number;
|
|
29
|
+
duration: number;
|
|
30
|
+
}
|
|
31
|
+
export interface DoctorResult {
|
|
32
|
+
results: CheckResult[];
|
|
33
|
+
summary: DoctorSummary;
|
|
34
|
+
exitCode: number;
|
|
35
|
+
}
|
|
36
|
+
export interface OpenCodeInfo {
|
|
37
|
+
installed: boolean;
|
|
38
|
+
version: string | null;
|
|
39
|
+
path: string | null;
|
|
40
|
+
binary: "opencode" | "opencode-desktop" | null;
|
|
41
|
+
}
|
|
42
|
+
export interface PluginInfo {
|
|
43
|
+
registered: boolean;
|
|
44
|
+
configPath: string | null;
|
|
45
|
+
entry: string | null;
|
|
46
|
+
isPinned: boolean;
|
|
47
|
+
pinnedVersion: string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface ConfigInfo {
|
|
50
|
+
exists: boolean;
|
|
51
|
+
path: string | null;
|
|
52
|
+
format: "json" | "jsonc" | null;
|
|
53
|
+
valid: boolean;
|
|
54
|
+
errors: string[];
|
|
55
|
+
}
|
|
56
|
+
export type AuthProviderId = "anthropic" | "openai" | "google";
|
|
57
|
+
export interface AuthProviderInfo {
|
|
58
|
+
id: AuthProviderId;
|
|
59
|
+
name: string;
|
|
60
|
+
pluginInstalled: boolean;
|
|
61
|
+
configured: boolean;
|
|
62
|
+
error?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface DependencyInfo {
|
|
65
|
+
name: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
installed: boolean;
|
|
68
|
+
version: string | null;
|
|
69
|
+
path: string | null;
|
|
70
|
+
installHint?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface LspServerInfo {
|
|
73
|
+
id: string;
|
|
74
|
+
installed: boolean;
|
|
75
|
+
extensions: string[];
|
|
76
|
+
source: "builtin" | "config" | "plugin";
|
|
77
|
+
}
|
|
78
|
+
export interface McpServerInfo {
|
|
79
|
+
id: string;
|
|
80
|
+
type: "builtin" | "user";
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
valid: boolean;
|
|
83
|
+
error?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface VersionCheckInfo {
|
|
86
|
+
currentVersion: string | null;
|
|
87
|
+
latestVersion: string | null;
|
|
88
|
+
isUpToDate: boolean;
|
|
89
|
+
isLocalDev: boolean;
|
|
90
|
+
isPinned: boolean;
|
|
91
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface VersionInfo {
|
|
2
|
+
currentVersion: string | null;
|
|
3
|
+
latestVersion: string | null;
|
|
4
|
+
isUpToDate: boolean;
|
|
5
|
+
isLocalDev: boolean;
|
|
6
|
+
isPinned: boolean;
|
|
7
|
+
pinnedVersion: string | null;
|
|
8
|
+
status: "up-to-date" | "outdated" | "local-dev" | "pinned" | "error" | "unknown";
|
|
9
|
+
}
|
|
10
|
+
export interface GetLocalVersionOptions {
|
|
11
|
+
directory?: string;
|
|
12
|
+
json?: boolean;
|
|
13
|
+
}
|