oh-my-opencode-gpt-slim 0.0.3
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.md +84 -0
- package/README.zh-cn.md +341 -0
- package/bin/oh-my-opencode-gpt-slim.js +140 -0
- package/bin/platform.d.ts +14 -0
- package/bin/platform.js +64 -0
- package/dist/agents/agent-builder.d.ts +7 -0
- package/dist/agents/atlas/agent.d.ts +35 -0
- package/dist/agents/atlas/default.d.ts +11 -0
- package/dist/agents/atlas/gemini.d.ts +11 -0
- package/dist/agents/atlas/gpt.d.ts +11 -0
- package/dist/agents/atlas/index.d.ts +2 -0
- package/dist/agents/atlas/prompt-section-builder.d.ts +13 -0
- package/dist/agents/builtin-agents/agent-overrides.d.ts +12 -0
- package/dist/agents/builtin-agents/atlas-agent.d.ts +17 -0
- package/dist/agents/builtin-agents/available-skills.d.ts +4 -0
- package/dist/agents/builtin-agents/environment-context.d.ts +6 -0
- package/dist/agents/builtin-agents/general-agents.d.ts +24 -0
- package/dist/agents/builtin-agents/model-resolution.d.ts +24 -0
- package/dist/agents/builtin-agents/resolve-file-uri.d.ts +1 -0
- package/dist/agents/builtin-agents/sisyphus-agent.d.ts +20 -0
- package/dist/agents/builtin-agents.d.ts +6 -0
- package/dist/agents/custom-agent-summaries.d.ts +8 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +34 -0
- package/dist/agents/env-context.d.ts +7 -0
- package/dist/agents/explore.d.ts +7 -0
- package/dist/agents/index.d.ts +4 -0
- package/dist/agents/librarian.d.ts +7 -0
- package/dist/agents/metis.d.ts +21 -0
- package/dist/agents/momus.d.ts +25 -0
- package/dist/agents/multimodal-looker.d.ts +7 -0
- package/dist/agents/oracle.d.ts +7 -0
- package/dist/agents/prometheus/behavioral-summary.d.ts +6 -0
- package/dist/agents/prometheus/gemini.d.ts +12 -0
- package/dist/agents/prometheus/gpt.d.ts +11 -0
- package/dist/agents/prometheus/high-accuracy-mode.d.ts +6 -0
- package/dist/agents/prometheus/identity-constraints.d.ts +7 -0
- package/dist/agents/prometheus/index.d.ts +2 -0
- package/dist/agents/prometheus/interview-mode.d.ts +7 -0
- package/dist/agents/prometheus/plan-generation.d.ts +7 -0
- package/dist/agents/prometheus/plan-template.d.ts +7 -0
- package/dist/agents/prometheus/system-prompt.d.ts +28 -0
- package/dist/agents/sisyphus/default.d.ts +9 -0
- package/dist/agents/sisyphus/gemini.d.ts +20 -0
- package/dist/agents/sisyphus/gpt-5-4.d.ts +13 -0
- package/dist/agents/sisyphus/index.d.ts +11 -0
- package/dist/agents/sisyphus-junior/agent.d.ts +27 -0
- package/dist/agents/sisyphus-junior/default.d.ts +9 -0
- package/dist/agents/sisyphus-junior/gemini.d.ts +10 -0
- package/dist/agents/sisyphus-junior/gpt-5-3-codex.d.ts +8 -0
- package/dist/agents/sisyphus-junior/gpt-5-4.d.ts +11 -0
- package/dist/agents/sisyphus-junior/gpt.d.ts +9 -0
- package/dist/agents/sisyphus-junior/index.d.ts +7 -0
- package/dist/agents/sisyphus.d.ts +8 -0
- package/dist/agents/types.d.ts +67 -0
- package/dist/cli/cli-installer.d.ts +2 -0
- package/dist/cli/cli-program.d.ts +1 -0
- package/dist/cli/config-manager/add-plugin-to-opencode-config.d.ts +2 -0
- package/dist/cli/config-manager/bun-install.d.ts +7 -0
- package/dist/cli/config-manager/config-context.d.ts +13 -0
- package/dist/cli/config-manager/deep-merge-record.d.ts +1 -0
- package/dist/cli/config-manager/detect-current-config.d.ts +2 -0
- package/dist/cli/config-manager/ensure-config-directory-exists.d.ts +1 -0
- package/dist/cli/config-manager/format-error-with-suggestion.d.ts +1 -0
- package/dist/cli/config-manager/generate-omo-config.d.ts +2 -0
- package/dist/cli/config-manager/npm-dist-tags.d.ts +7 -0
- package/dist/cli/config-manager/opencode-binary.d.ts +2 -0
- package/dist/cli/config-manager/opencode-config-format.d.ts +5 -0
- package/dist/cli/config-manager/parse-opencode-config-file.d.ts +10 -0
- package/dist/cli/config-manager/plugin-array-updater.d.ts +1 -0
- package/dist/cli/config-manager/plugin-name-with-version.d.ts +1 -0
- package/dist/cli/config-manager/write-omo-config.d.ts +2 -0
- package/dist/cli/config-manager.d.ts +11 -0
- package/dist/cli/doctor/checks/config.d.ts +2 -0
- package/dist/cli/doctor/checks/dependencies.d.ts +4 -0
- package/dist/cli/doctor/checks/index.d.ts +7 -0
- package/dist/cli/doctor/checks/model-resolution-cache.d.ts +2 -0
- package/dist/cli/doctor/checks/model-resolution-config.d.ts +2 -0
- package/dist/cli/doctor/checks/model-resolution-details.d.ts +6 -0
- package/dist/cli/doctor/checks/model-resolution-effective-model.d.ts +3 -0
- package/dist/cli/doctor/checks/model-resolution-types.d.ts +37 -0
- package/dist/cli/doctor/checks/model-resolution-variant.d.ts +5 -0
- package/dist/cli/doctor/checks/model-resolution.d.ts +6 -0
- package/dist/cli/doctor/checks/system-binary.d.ts +13 -0
- package/dist/cli/doctor/checks/system-loaded-version.d.ts +10 -0
- package/dist/cli/doctor/checks/system-plugin.d.ts +17 -0
- package/dist/cli/doctor/checks/system.d.ts +3 -0
- package/dist/cli/doctor/checks/tools-gh.d.ts +10 -0
- package/dist/cli/doctor/checks/tools-lsp.d.ts +6 -0
- package/dist/cli/doctor/checks/tools-mcp.d.ts +3 -0
- package/dist/cli/doctor/checks/tools.d.ts +3 -0
- package/dist/cli/doctor/constants.d.ts +29 -0
- package/dist/cli/doctor/format-default.d.ts +2 -0
- package/dist/cli/doctor/format-shared.d.ts +6 -0
- package/dist/cli/doctor/format-status.d.ts +2 -0
- package/dist/cli/doctor/format-verbose.d.ts +2 -0
- package/dist/cli/doctor/formatter.d.ts +3 -0
- package/dist/cli/doctor/index.d.ts +5 -0
- package/dist/cli/doctor/runner.d.ts +5 -0
- package/dist/cli/doctor/types.d.ts +124 -0
- package/dist/cli/fallback-chain-resolution.d.ts +10 -0
- package/dist/cli/get-local-version/formatter.d.ts +3 -0
- package/dist/cli/get-local-version/get-local-version.d.ts +2 -0
- package/dist/cli/get-local-version/index.d.ts +2 -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 +29033 -0
- package/dist/cli/install-validators.d.ts +32 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/mcp-oauth/index.d.ts +6 -0
- package/dist/cli/mcp-oauth/login.d.ts +6 -0
- package/dist/cli/mcp-oauth/logout.d.ts +4 -0
- package/dist/cli/mcp-oauth/status.d.ts +1 -0
- package/dist/cli/model-fallback-requirements.d.ts +3 -0
- package/dist/cli/model-fallback-types.d.ts +26 -0
- package/dist/cli/model-fallback.d.ts +5 -0
- package/dist/cli/openai-only-model-catalog.d.ts +3 -0
- package/dist/cli/plugin-reference.d.ts +9 -0
- package/dist/cli/provider-availability.d.ts +4 -0
- package/dist/cli/provider-model-id-transform.d.ts +1 -0
- package/dist/cli/run/agent-profile-colors.d.ts +2 -0
- package/dist/cli/run/agent-resolver.d.ts +5 -0
- package/dist/cli/run/completion.d.ts +2 -0
- package/dist/cli/run/continuation-state.d.ts +9 -0
- package/dist/cli/run/display-chars.d.ts +5 -0
- package/dist/cli/run/event-formatting.d.ts +3 -0
- package/dist/cli/run/event-handlers.d.ts +11 -0
- package/dist/cli/run/event-state.d.ts +49 -0
- package/dist/cli/run/event-stream-processor.d.ts +3 -0
- package/dist/cli/run/events.d.ts +4 -0
- package/dist/cli/run/index.d.ts +9 -0
- package/dist/cli/run/json-output.d.ts +12 -0
- package/dist/cli/run/on-complete-hook.d.ts +7 -0
- package/dist/cli/run/opencode-binary-resolver.d.ts +5 -0
- package/dist/cli/run/output-renderer.d.ts +7 -0
- package/dist/cli/run/poll-for-completion.d.ts +10 -0
- package/dist/cli/run/runner.d.ts +5 -0
- package/dist/cli/run/server-connection.d.ts +6 -0
- package/dist/cli/run/session-resolver.d.ts +6 -0
- package/dist/cli/run/stdin-suppression.d.ts +12 -0
- package/dist/cli/run/timestamp-output.d.ts +5 -0
- package/dist/cli/run/tool-input-preview.d.ts +6 -0
- package/dist/cli/run/types.d.ts +131 -0
- package/dist/cli/tui-install-prompts.d.ts +2 -0
- package/dist/cli/tui-installer.d.ts +2 -0
- package/dist/cli/types.d.ts +39 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/schema/agent-names.d.ts +47 -0
- package/dist/config/schema/agent-overrides.d.ts +1181 -0
- package/dist/config/schema/babysitting.d.ts +5 -0
- package/dist/config/schema/background-task.d.ts +10 -0
- package/dist/config/schema/browser-automation.d.ts +17 -0
- package/dist/config/schema/categories.d.ts +78 -0
- package/dist/config/schema/claude-code.d.ts +11 -0
- package/dist/config/schema/commands.d.ts +11 -0
- package/dist/config/schema/comment-checker.d.ts +5 -0
- package/dist/config/schema/dynamic-context-pruning.d.ts +28 -0
- package/dist/config/schema/experimental.d.ts +40 -0
- package/dist/config/schema/fallback-models.d.ts +3 -0
- package/dist/config/schema/git-master.d.ts +6 -0
- package/dist/config/schema/hooks.d.ts +51 -0
- package/dist/config/schema/internal/permission.d.ts +44 -0
- package/dist/config/schema/notification.d.ts +5 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +1307 -0
- package/dist/config/schema/ralph-loop.d.ts +11 -0
- package/dist/config/schema/runtime-fallback.d.ts +10 -0
- package/dist/config/schema/sisyphus-agent.d.ts +8 -0
- package/dist/config/schema/sisyphus.d.ts +15 -0
- package/dist/config/schema/skills.d.ts +58 -0
- package/dist/config/schema/start-work.d.ts +5 -0
- package/dist/config/schema/tmux.d.ts +23 -0
- package/dist/config/schema/websearch.d.ts +13 -0
- package/dist/config/schema.d.ts +24 -0
- package/dist/create-hooks.d.ts +100 -0
- package/dist/create-managers.d.ts +20 -0
- package/dist/create-tools.d.ts +20 -0
- package/dist/features/background-agent/background-task-notification-template.d.ts +10 -0
- package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +3 -0
- package/dist/features/background-agent/concurrency.d.ts +27 -0
- package/dist/features/background-agent/constants.d.ts +45 -0
- package/dist/features/background-agent/duration-formatter.d.ts +1 -0
- package/dist/features/background-agent/error-classifier.d.ts +10 -0
- package/dist/features/background-agent/fallback-retry-handler.d.ts +16 -0
- package/dist/features/background-agent/index.d.ts +2 -0
- package/dist/features/background-agent/manager.d.ts +140 -0
- package/dist/features/background-agent/opencode-client.d.ts +2 -0
- package/dist/features/background-agent/process-cleanup.d.ts +8 -0
- package/dist/features/background-agent/remove-task-toast-tracking.d.ts +1 -0
- package/dist/features/background-agent/session-idle-event-handler.d.ts +10 -0
- package/dist/features/background-agent/spawner/parent-directory-resolver.d.ts +6 -0
- package/dist/features/background-agent/spawner.d.ts +14 -0
- package/dist/features/background-agent/state.d.ts +35 -0
- package/dist/features/background-agent/task-history.d.ts +18 -0
- package/dist/features/background-agent/task-poller.d.ts +21 -0
- package/dist/features/background-agent/types.d.ts +90 -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/types.d.ts +28 -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/handoff.d.ts +1 -0
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
- package/dist/features/builtin-commands/templates/ralph-loop.d.ts +3 -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/templates/stop-continuation.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/dev-browser.d.ts +2 -0
- package/dist/features/builtin-skills/skills/frontend-ui-ux.d.ts +2 -0
- package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +2 -0
- package/dist/features/builtin-skills/skills/git-master.d.ts +2 -0
- package/dist/features/builtin-skills/skills/index.d.ts +5 -0
- package/dist/features/builtin-skills/skills/playwright-cli.d.ts +10 -0
- package/dist/features/builtin-skills/skills/playwright.d.ts +3 -0
- package/dist/features/builtin-skills/skills.d.ts +7 -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 +15 -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/transformer.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/types.d.ts +39 -0
- package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/command-loader.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/hook-loader.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/index.d.ts +10 -0
- package/dist/features/claude-code-plugin-loader/loader.d.ts +20 -0
- package/dist/features/claude-code-plugin-loader/mcp-server-loader.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/skill-loader.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +196 -0
- package/dist/features/claude-code-session-state/index.d.ts +1 -0
- package/dist/features/claude-code-session-state/state.d.ts +10 -0
- package/dist/features/claude-tasks/session-storage.d.ts +9 -0
- package/dist/features/claude-tasks/storage.d.ts +14 -0
- package/dist/features/claude-tasks/types.d.ts +25 -0
- package/dist/features/context-injector/collector.d.ts +11 -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/types.d.ts +83 -0
- package/dist/features/hook-message-injector/constants.d.ts +1 -0
- package/dist/features/hook-message-injector/index.d.ts +4 -0
- package/dist/features/hook-message-injector/injector.d.ts +69 -0
- package/dist/features/hook-message-injector/types.d.ts +46 -0
- package/dist/features/mcp-oauth/callback-server.d.ts +11 -0
- package/dist/features/mcp-oauth/dcr.d.ts +34 -0
- package/dist/features/mcp-oauth/discovery.d.ts +8 -0
- package/dist/features/mcp-oauth/oauth-authorization-flow.d.ts +26 -0
- package/dist/features/mcp-oauth/provider.d.ts +29 -0
- package/dist/features/mcp-oauth/resource-indicator.d.ts +2 -0
- package/dist/features/mcp-oauth/schema.d.ts +6 -0
- package/dist/features/mcp-oauth/step-up.d.ts +8 -0
- package/dist/features/mcp-oauth/storage.d.ts +17 -0
- package/dist/features/opencode-skill-loader/allowed-tools-parser.d.ts +1 -0
- package/dist/features/opencode-skill-loader/async-loader.d.ts +6 -0
- package/dist/features/opencode-skill-loader/blocking.d.ts +2 -0
- package/dist/features/opencode-skill-loader/config-source-discovery.d.ts +7 -0
- package/dist/features/opencode-skill-loader/discover-worker.d.ts +1 -0
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +2 -0
- package/dist/features/opencode-skill-loader/index.d.ts +15 -0
- package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +9 -0
- package/dist/features/opencode-skill-loader/loaded-skill-template-extractor.d.ts +2 -0
- package/dist/features/opencode-skill-loader/loader.d.ts +19 -0
- package/dist/features/opencode-skill-loader/merger/builtin-skill-converter.d.ts +3 -0
- package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +3 -0
- package/dist/features/opencode-skill-loader/merger/scope-priority.d.ts +2 -0
- package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +3 -0
- package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +11 -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-deduplication.d.ts +2 -0
- package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +3 -0
- package/dist/features/opencode-skill-loader/skill-directory-loader.d.ts +8 -0
- package/dist/features/opencode-skill-loader/skill-discovery.d.ts +4 -0
- package/dist/features/opencode-skill-loader/skill-mcp-config.d.ts +3 -0
- package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +8 -0
- package/dist/features/opencode-skill-loader/skill-template-resolver.d.ts +11 -0
- package/dist/features/opencode-skill-loader/types.d.ts +34 -0
- package/dist/features/run-continuation-state/constants.d.ts +1 -0
- package/dist/features/run-continuation-state/index.d.ts +3 -0
- package/dist/features/run-continuation-state/storage.d.ts +6 -0
- package/dist/features/run-continuation-state/types.d.ts +12 -0
- package/dist/features/skill-mcp-manager/cleanup.d.ts +8 -0
- package/dist/features/skill-mcp-manager/connection-type.d.ts +7 -0
- package/dist/features/skill-mcp-manager/connection.d.ts +15 -0
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
- package/dist/features/skill-mcp-manager/http-client.d.ts +3 -0
- package/dist/features/skill-mcp-manager/index.d.ts +2 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +21 -0
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +9 -0
- package/dist/features/skill-mcp-manager/stdio-client.d.ts +3 -0
- package/dist/features/skill-mcp-manager/types.d.ts +55 -0
- package/dist/features/task-toast-manager/index.d.ts +2 -0
- package/dist/features/task-toast-manager/manager.d.ts +64 -0
- package/dist/features/task-toast-manager/types.d.ts +25 -0
- package/dist/features/tmux-subagent/action-executor-core.d.ts +21 -0
- package/dist/features/tmux-subagent/action-executor.d.ts +20 -0
- package/dist/features/tmux-subagent/cleanup.d.ts +9 -0
- package/dist/features/tmux-subagent/decision-engine.d.ts +7 -0
- package/dist/features/tmux-subagent/event-handlers.d.ts +6 -0
- package/dist/features/tmux-subagent/grid-planning.d.ts +21 -0
- package/dist/features/tmux-subagent/index.d.ts +15 -0
- package/dist/features/tmux-subagent/manager.d.ts +68 -0
- package/dist/features/tmux-subagent/oldest-agent-pane.d.ts +7 -0
- package/dist/features/tmux-subagent/pane-split-availability.d.ts +8 -0
- package/dist/features/tmux-subagent/pane-state-querier.d.ts +2 -0
- package/dist/features/tmux-subagent/polling-constants.d.ts +3 -0
- package/dist/features/tmux-subagent/polling-manager.d.ts +13 -0
- package/dist/features/tmux-subagent/polling.d.ts +19 -0
- package/dist/features/tmux-subagent/session-created-event.d.ts +14 -0
- package/dist/features/tmux-subagent/session-created-handler.d.ts +22 -0
- package/dist/features/tmux-subagent/session-deleted-handler.d.ts +15 -0
- package/dist/features/tmux-subagent/session-message-count.d.ts +1 -0
- package/dist/features/tmux-subagent/session-ready-waiter.d.ts +7 -0
- package/dist/features/tmux-subagent/session-status-parser.d.ts +5 -0
- package/dist/features/tmux-subagent/spawn-action-decider.d.ts +4 -0
- package/dist/features/tmux-subagent/spawn-target-finder.d.ts +6 -0
- package/dist/features/tmux-subagent/tmux-grid-constants.d.ts +11 -0
- package/dist/features/tmux-subagent/types.d.ts +55 -0
- package/dist/features/tool-metadata-store/index.d.ts +2 -0
- package/dist/features/tool-metadata-store/store.d.ts +39 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +2 -0
- package/dist/hooks/auto-update-checker/checker/cached-version.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/check-for-update.d.ts +2 -0
- package/dist/hooks/auto-update-checker/checker/config-paths.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/latest-version.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/local-dev-path.d.ts +2 -0
- package/dist/hooks/auto-update-checker/checker/local-dev-version.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/plugin-entry.d.ts +2 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +6 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +6 -0
- package/dist/hooks/auto-update-checker/hook.d.ts +10 -0
- package/dist/hooks/auto-update-checker/index.d.ts +5 -0
- package/dist/hooks/auto-update-checker/types.d.ts +20 -0
- package/dist/hooks/auto-update-checker/version-channel.d.ts +4 -0
- package/dist/hooks/claude-code-hooks/types.d.ts +14 -0
- package/dist/hooks/directory-agents-injector/constants.d.ts +2 -0
- package/dist/hooks/directory-agents-injector/finder.d.ts +5 -0
- package/dist/hooks/directory-agents-injector/hook.d.ts +28 -0
- package/dist/hooks/directory-agents-injector/index.d.ts +1 -0
- package/dist/hooks/directory-agents-injector/injector.d.ts +16 -0
- package/dist/hooks/directory-agents-injector/storage.d.ts +1 -0
- package/dist/hooks/directory-readme-injector/constants.d.ts +2 -0
- package/dist/hooks/directory-readme-injector/finder.d.ts +5 -0
- package/dist/hooks/directory-readme-injector/hook.d.ts +28 -0
- package/dist/hooks/directory-readme-injector/index.d.ts +1 -0
- package/dist/hooks/directory-readme-injector/injector.d.ts +16 -0
- package/dist/hooks/directory-readme-injector/storage.d.ts +1 -0
- package/dist/hooks/edit-error-recovery/hook.d.ts +31 -0
- package/dist/hooks/edit-error-recovery/index.d.ts +1 -0
- package/dist/hooks/hashline-edit-diff-enhancer/hook.d.ts +28 -0
- package/dist/hooks/hashline-edit-diff-enhancer/index.d.ts +1 -0
- package/dist/hooks/hashline-read-enhancer/hook.d.ts +18 -0
- package/dist/hooks/hashline-read-enhancer/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/model-fallback/hook.d.ts +60 -0
- package/dist/hooks/ralph-loop/command-arguments.d.ts +7 -0
- package/dist/hooks/ralph-loop/constants.d.ts +3 -0
- package/dist/hooks/ralph-loop/storage.d.ts +18 -0
- package/dist/hooks/rules-injector/cache.d.ts +8 -0
- package/dist/hooks/rules-injector/constants.d.ts +7 -0
- package/dist/hooks/rules-injector/finder.d.ts +3 -0
- package/dist/hooks/rules-injector/hook.d.ts +28 -0
- package/dist/hooks/rules-injector/index.d.ts +2 -0
- package/dist/hooks/rules-injector/injector.d.ts +20 -0
- package/dist/hooks/rules-injector/matcher.d.ts +21 -0
- package/dist/hooks/rules-injector/output-path.d.ts +5 -0
- package/dist/hooks/rules-injector/parser.d.ts +18 -0
- package/dist/hooks/rules-injector/project-root-finder.d.ts +8 -0
- package/dist/hooks/rules-injector/rule-distance.d.ts +10 -0
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +15 -0
- package/dist/hooks/rules-injector/rule-file-scanner.d.ts +14 -0
- package/dist/hooks/rules-injector/storage.d.ts +9 -0
- package/dist/hooks/rules-injector/types.d.ts +54 -0
- package/dist/hooks/runtime-fallback/agent-resolver.d.ts +5 -0
- package/dist/hooks/runtime-fallback/auto-retry.d.ts +10 -0
- package/dist/hooks/runtime-fallback/chat-message-handler.d.ts +20 -0
- package/dist/hooks/runtime-fallback/constants.d.ts +19 -0
- package/dist/hooks/runtime-fallback/error-classifier.d.ts +17 -0
- package/dist/hooks/runtime-fallback/event-handler.d.ts +8 -0
- package/dist/hooks/runtime-fallback/fallback-models.d.ts +2 -0
- package/dist/hooks/runtime-fallback/fallback-state.d.ts +6 -0
- package/dist/hooks/runtime-fallback/hook.d.ts +3 -0
- package/dist/hooks/runtime-fallback/index.d.ts +2 -0
- package/dist/hooks/runtime-fallback/message-update-handler.d.ts +5 -0
- package/dist/hooks/runtime-fallback/types.d.ts +59 -0
- package/dist/hooks/session-recovery/constants.d.ts +4 -0
- package/dist/hooks/session-recovery/detect-error-type.d.ts +4 -0
- package/dist/hooks/session-recovery/hook.d.ts +20 -0
- package/dist/hooks/session-recovery/index.d.ts +5 -0
- package/dist/hooks/session-recovery/recover-empty-content-message-sdk.d.ts +13 -0
- package/dist/hooks/session-recovery/recover-thinking-block-order.d.ts +5 -0
- package/dist/hooks/session-recovery/recover-thinking-disabled-violation.d.ts +5 -0
- package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +5 -0
- package/dist/hooks/session-recovery/recover-unavailable-tool.d.ts +5 -0
- package/dist/hooks/session-recovery/resume.d.ts +7 -0
- package/dist/hooks/session-recovery/storage/empty-messages.d.ts +3 -0
- package/dist/hooks/session-recovery/storage/empty-text.d.ts +7 -0
- package/dist/hooks/session-recovery/storage/message-dir.d.ts +1 -0
- package/dist/hooks/session-recovery/storage/messages-reader.d.ts +6 -0
- package/dist/hooks/session-recovery/storage/orphan-thinking-search.d.ts +2 -0
- package/dist/hooks/session-recovery/storage/part-content.d.ts +3 -0
- package/dist/hooks/session-recovery/storage/part-id.d.ts +1 -0
- package/dist/hooks/session-recovery/storage/parts-reader.d.ts +6 -0
- package/dist/hooks/session-recovery/storage/text-part-injector.d.ts +5 -0
- package/dist/hooks/session-recovery/storage/thinking-block-search.d.ts +2 -0
- package/dist/hooks/session-recovery/storage/thinking-prepend.d.ts +5 -0
- package/dist/hooks/session-recovery/storage/thinking-strip.d.ts +5 -0
- package/dist/hooks/session-recovery/storage.d.ts +20 -0
- package/dist/hooks/session-recovery/types.d.ts +91 -0
- package/dist/hooks/shared/compaction-model-resolver.d.ts +5 -0
- package/dist/hooks/tool-output-truncator.d.ts +20 -0
- package/dist/hooks/write-existing-file-guard/hook.d.ts +3 -0
- package/dist/hooks/write-existing-file-guard/index.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +79805 -0
- package/dist/mcp/context7.d.ts +9 -0
- package/dist/mcp/grep-app.d.ts +6 -0
- package/dist/mcp/index.d.ts +10 -0
- package/dist/mcp/types.d.ts +9 -0
- package/dist/mcp/websearch.d.ts +11 -0
- package/dist/oh-my-opencode.schema.json +3643 -0
- package/dist/plugin/available-categories.d.ts +3 -0
- package/dist/plugin/chat-headers.d.ts +4 -0
- package/dist/plugin/chat-message.d.ts +31 -0
- package/dist/plugin/chat-params.d.ts +27 -0
- package/dist/plugin/event.d.ts +21 -0
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +17 -0
- package/dist/plugin/hooks/create-core-hooks.d.ts +23 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +18 -0
- package/dist/plugin/hooks/create-skill-hooks.d.ts +13 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +19 -0
- package/dist/plugin/hooks/create-transform-hooks.d.ts +12 -0
- package/dist/plugin/messages-transform.d.ts +13 -0
- package/dist/plugin/recent-synthetic-idles.d.ts +6 -0
- package/dist/plugin/session-agent-resolver.d.ts +19 -0
- package/dist/plugin/session-status-normalizer.d.ts +8 -0
- package/dist/plugin/skill-context.d.ts +14 -0
- package/dist/plugin/system-transform.d.ts +10 -0
- package/dist/plugin/tool-execute-after.d.ts +14 -0
- package/dist/plugin/tool-execute-before.d.ts +12 -0
- package/dist/plugin/tool-registry.d.ts +16 -0
- package/dist/plugin/types.d.ts +18 -0
- package/dist/plugin/ultrawork-db-model-override.d.ts +11 -0
- package/dist/plugin/ultrawork-model-override.d.ts +37 -0
- package/dist/plugin/unstable-agent-babysitter.d.ts +8 -0
- package/dist/plugin-config.d.ts +5 -0
- package/dist/plugin-handlers/agent-config-handler.d.ts +11 -0
- package/dist/plugin-handlers/agent-key-remapper.d.ts +1 -0
- package/dist/plugin-handlers/agent-priority-order.d.ts +1 -0
- package/dist/plugin-handlers/category-config-resolver.d.ts +2 -0
- package/dist/plugin-handlers/command-config-handler.d.ts +10 -0
- package/dist/plugin-handlers/config-handler.d.ts +12 -0
- package/dist/plugin-handlers/index.d.ts +10 -0
- package/dist/plugin-handlers/mcp-config-handler.d.ts +7 -0
- package/dist/plugin-handlers/plan-model-inheritance.d.ts +1 -0
- package/dist/plugin-handlers/plugin-components-loader.d.ts +22 -0
- package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +23 -0
- package/dist/plugin-handlers/provider-config-handler.d.ts +5 -0
- package/dist/plugin-handlers/tool-config-handler.d.ts +6 -0
- package/dist/plugin-interface.d.ts +21 -0
- package/dist/plugin-state.d.ts +5 -0
- package/dist/shared/agent-display-names.d.ts +17 -0
- package/dist/shared/agent-tool-restrictions.d.ts +7 -0
- package/dist/shared/agent-variant.d.ts +9 -0
- package/dist/shared/binary-downloader.d.ts +10 -0
- package/dist/shared/claude-config-dir.d.ts +1 -0
- package/dist/shared/command-executor/embedded-commands.d.ts +7 -0
- package/dist/shared/command-executor/execute-command.d.ts +1 -0
- package/dist/shared/command-executor/execute-hook-command.d.ts +12 -0
- package/dist/shared/command-executor/home-directory.d.ts +1 -0
- package/dist/shared/command-executor/resolve-commands-in-text.d.ts +1 -0
- package/dist/shared/command-executor/shell-path.d.ts +2 -0
- package/dist/shared/command-executor.d.ts +4 -0
- package/dist/shared/config-errors.d.ts +7 -0
- package/dist/shared/connected-providers-cache.d.ts +55 -0
- package/dist/shared/data-path.d.ts +30 -0
- package/dist/shared/deep-merge.d.ts +13 -0
- package/dist/shared/disabled-tools.d.ts +2 -0
- package/dist/shared/dynamic-truncator.d.ts +31 -0
- package/dist/shared/external-plugin-detector.d.ts +18 -0
- package/dist/shared/fallback-chain-from-models.d.ts +3 -0
- package/dist/shared/fallback-model-availability.d.ts +12 -0
- package/dist/shared/file-reference-resolver.d.ts +1 -0
- package/dist/shared/file-utils.d.ts +7 -0
- package/dist/shared/first-message-variant.d.ts +11 -0
- package/dist/shared/frontmatter.d.ts +7 -0
- package/dist/shared/git-worktree/collect-git-diff-stats.d.ts +2 -0
- package/dist/shared/git-worktree/format-file-changes.d.ts +2 -0
- package/dist/shared/git-worktree/index.d.ts +7 -0
- package/dist/shared/git-worktree/parse-diff-numstat.d.ts +2 -0
- package/dist/shared/git-worktree/parse-status-porcelain-line.d.ts +6 -0
- package/dist/shared/git-worktree/parse-status-porcelain.d.ts +2 -0
- package/dist/shared/git-worktree/types.d.ts +7 -0
- package/dist/shared/hook-disabled.d.ts +2 -0
- package/dist/shared/index.d.ts +56 -0
- package/dist/shared/internal-initiator-marker.d.ts +5 -0
- package/dist/shared/jsonc-parser.d.ts +15 -0
- package/dist/shared/logger.d.ts +2 -0
- package/dist/shared/merge-categories.d.ts +6 -0
- package/dist/shared/migration/agent-category.d.ts +19 -0
- package/dist/shared/migration/agent-names.d.ts +6 -0
- package/dist/shared/migration/config-migration.d.ts +1 -0
- package/dist/shared/migration/hook-names.d.ts +6 -0
- package/dist/shared/migration/model-versions.d.ts +13 -0
- package/dist/shared/migration.d.ts +5 -0
- package/dist/shared/model-availability.d.ts +15 -0
- package/dist/shared/model-error-classifier.d.ts +32 -0
- package/dist/shared/model-format-normalizer.d.ts +7 -0
- package/dist/shared/model-normalization.d.ts +2 -0
- package/dist/shared/model-requirements.d.ts +14 -0
- package/dist/shared/model-resolution-pipeline.d.ts +26 -0
- package/dist/shared/model-resolution-types.d.ts +23 -0
- package/dist/shared/model-resolver.d.ts +28 -0
- package/dist/shared/model-sanitizer.d.ts +3 -0
- package/dist/shared/model-suggestion-retry.d.ts +36 -0
- package/dist/shared/normalize-sdk-response.d.ts +4 -0
- package/dist/shared/opencode-config-dir-types.d.ts +13 -0
- package/dist/shared/opencode-config-dir.d.ts +8 -0
- package/dist/shared/opencode-http-api.d.ts +3 -0
- package/dist/shared/opencode-message-dir.d.ts +1 -0
- package/dist/shared/opencode-server-auth.d.ts +19 -0
- package/dist/shared/opencode-storage-detection.d.ts +2 -0
- package/dist/shared/opencode-storage-paths.d.ts +4 -0
- package/dist/shared/opencode-version.d.ts +24 -0
- package/dist/shared/pattern-matcher.d.ts +3 -0
- package/dist/shared/permission-compat.d.ts +27 -0
- package/dist/shared/plugin-command-discovery.d.ts +6 -0
- package/dist/shared/port-utils.d.ts +9 -0
- package/dist/shared/prompt-timeout-context.d.ts +12 -0
- package/dist/shared/prompt-tools.d.ts +3 -0
- package/dist/shared/provider-model-id-transform.d.ts +1 -0
- package/dist/shared/record-type-guard.d.ts +1 -0
- package/dist/shared/retry-status-utils.d.ts +2 -0
- package/dist/shared/safe-create-hook.d.ts +5 -0
- package/dist/shared/session-category-registry.d.ts +32 -0
- package/dist/shared/session-cursor.d.ts +13 -0
- package/dist/shared/session-directory-resolver.d.ts +7 -0
- package/dist/shared/session-injected-paths.d.ts +10 -0
- package/dist/shared/session-model-state.d.ts +7 -0
- package/dist/shared/session-tools-store.d.ts +4 -0
- package/dist/shared/session-utils.d.ts +2 -0
- package/dist/shared/shell-env.d.ts +41 -0
- package/dist/shared/skill-path-resolver.d.ts +9 -0
- package/dist/shared/snake-case.d.ts +5 -0
- package/dist/shared/spawn-with-windows-hide.d.ts +15 -0
- package/dist/shared/system-directive.d.ts +45 -0
- package/dist/shared/tmux/constants.d.ts +5 -0
- package/dist/shared/tmux/index.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/environment.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/layout.d.ts +18 -0
- package/dist/shared/tmux/tmux-utils/pane-close.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/pane-dimensions.d.ts +5 -0
- package/dist/shared/tmux/tmux-utils/pane-replace.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/pane-spawn.d.ts +4 -0
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +2 -0
- package/dist/shared/tmux/tmux-utils.d.ts +9 -0
- package/dist/shared/tmux/types.d.ts +4 -0
- package/dist/shared/tool-name.d.ts +1 -0
- package/dist/shared/truncate-description.d.ts +1 -0
- package/dist/shared/zip-extractor.d.ts +1 -0
- package/dist/tools/background-task/clients.d.ts +45 -0
- package/dist/tools/background-task/constants.d.ts +3 -0
- package/dist/tools/background-task/create-background-cancel.d.ts +4 -0
- package/dist/tools/background-task/create-background-output.d.ts +3 -0
- package/dist/tools/background-task/create-background-task.d.ts +3 -0
- package/dist/tools/background-task/delay.d.ts +1 -0
- package/dist/tools/background-task/full-session-format.d.ts +9 -0
- package/dist/tools/background-task/index.d.ts +3 -0
- package/dist/tools/background-task/message-dir.d.ts +1 -0
- package/dist/tools/background-task/session-messages.d.ts +3 -0
- package/dist/tools/background-task/task-result-format.d.ts +3 -0
- package/dist/tools/background-task/task-status-format.d.ts +2 -0
- package/dist/tools/background-task/time-format.d.ts +2 -0
- package/dist/tools/background-task/tools.d.ts +4 -0
- package/dist/tools/background-task/truncate-text.d.ts +1 -0
- package/dist/tools/background-task/types.d.ts +90 -0
- package/dist/tools/delegate-task/available-models.d.ts +2 -0
- package/dist/tools/delegate-task/background-continuation.d.ts +3 -0
- package/dist/tools/delegate-task/background-task.d.ts +8 -0
- package/dist/tools/delegate-task/categories.d.ts +17 -0
- package/dist/tools/delegate-task/category-resolver.d.ts +20 -0
- package/dist/tools/delegate-task/constants.d.ts +42 -0
- package/dist/tools/delegate-task/error-formatting.d.ts +15 -0
- package/dist/tools/delegate-task/executor-types.d.ts +52 -0
- package/dist/tools/delegate-task/executor.d.ts +11 -0
- package/dist/tools/delegate-task/index.d.ts +4 -0
- package/dist/tools/delegate-task/model-selection.d.ts +12 -0
- package/dist/tools/delegate-task/model-string-parser.d.ts +7 -0
- package/dist/tools/delegate-task/parent-context-resolver.d.ts +4 -0
- package/dist/tools/delegate-task/prompt-builder.d.ts +7 -0
- package/dist/tools/delegate-task/sisyphus-junior-agent.d.ts +1 -0
- package/dist/tools/delegate-task/skill-resolver.d.ts +11 -0
- package/dist/tools/delegate-task/subagent-resolver.d.ts +13 -0
- package/dist/tools/delegate-task/sync-continuation-deps.d.ts +7 -0
- package/dist/tools/delegate-task/sync-continuation.d.ts +4 -0
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +22 -0
- package/dist/tools/delegate-task/sync-result-fetcher.d.ts +8 -0
- package/dist/tools/delegate-task/sync-session-creator.d.ts +14 -0
- package/dist/tools/delegate-task/sync-session-poller.d.ts +12 -0
- package/dist/tools/delegate-task/sync-task-deps.d.ts +11 -0
- package/dist/tools/delegate-task/sync-task.d.ts +9 -0
- package/dist/tools/delegate-task/time-formatter.d.ts +4 -0
- package/dist/tools/delegate-task/timing.d.ts +13 -0
- package/dist/tools/delegate-task/token-limiter.d.ts +4 -0
- package/dist/tools/delegate-task/tools.d.ts +6 -0
- package/dist/tools/delegate-task/types.d.ts +83 -0
- package/dist/tools/delegate-task/unstable-agent-task.d.ts +7 -0
- package/dist/tools/glob/cli.d.ts +11 -0
- package/dist/tools/glob/constants.d.ts +6 -0
- package/dist/tools/glob/index.d.ts +1 -0
- package/dist/tools/glob/result-formatter.d.ts +2 -0
- package/dist/tools/glob/tools.d.ts +3 -0
- package/dist/tools/glob/types.d.ts +21 -0
- package/dist/tools/grep/cli.d.ts +3 -0
- package/dist/tools/grep/constants.d.ts +18 -0
- package/dist/tools/grep/downloader.d.ts +3 -0
- package/dist/tools/grep/index.d.ts +1 -0
- package/dist/tools/grep/result-formatter.d.ts +3 -0
- package/dist/tools/grep/tools.d.ts +3 -0
- package/dist/tools/grep/types.d.ts +39 -0
- package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +6 -0
- package/dist/tools/hashline-edit/constants.d.ts +4 -0
- package/dist/tools/hashline-edit/diff-utils.d.ts +6 -0
- package/dist/tools/hashline-edit/edit-deduplication.d.ts +5 -0
- package/dist/tools/hashline-edit/edit-operation-primitives.d.ts +10 -0
- package/dist/tools/hashline-edit/edit-operations.d.ts +8 -0
- package/dist/tools/hashline-edit/edit-ordering.d.ts +4 -0
- package/dist/tools/hashline-edit/edit-text-normalization.d.ts +7 -0
- package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +7 -0
- package/dist/tools/hashline-edit/hash-computation.d.ts +10 -0
- package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +10 -0
- package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +1 -0
- package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +10 -0
- package/dist/tools/hashline-edit/index.d.ts +7 -0
- package/dist/tools/hashline-edit/normalize-edits.d.ts +10 -0
- package/dist/tools/hashline-edit/tool-description.d.ts +1 -0
- package/dist/tools/hashline-edit/tools.d.ts +2 -0
- package/dist/tools/hashline-edit/types.d.ts +17 -0
- package/dist/tools/hashline-edit/validation.d.ts +20 -0
- package/dist/tools/index.d.ts +17 -0
- package/dist/tools/interactive-bash/tmux-path-resolver.d.ts +1 -0
- package/dist/tools/lsp/client.d.ts +3 -0
- package/dist/tools/lsp/config.d.ts +3 -0
- package/dist/tools/lsp/constants.d.ts +6 -0
- package/dist/tools/lsp/diagnostics-tool.d.ts +2 -0
- package/dist/tools/lsp/directory-diagnostics.d.ts +1 -0
- package/dist/tools/lsp/find-references-tool.d.ts +2 -0
- package/dist/tools/lsp/goto-definition-tool.d.ts +2 -0
- package/dist/tools/lsp/index.d.ts +8 -0
- package/dist/tools/lsp/language-config.d.ts +1 -0
- package/dist/tools/lsp/language-mappings.d.ts +3 -0
- package/dist/tools/lsp/lsp-client-connection.d.ts +4 -0
- package/dist/tools/lsp/lsp-client-transport.d.ts +20 -0
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +9 -0
- package/dist/tools/lsp/lsp-client.d.ts +17 -0
- package/dist/tools/lsp/lsp-formatters.d.ts +13 -0
- package/dist/tools/lsp/lsp-manager-process-cleanup.d.ts +15 -0
- package/dist/tools/lsp/lsp-manager-temp-directory-cleanup.d.ts +8 -0
- package/dist/tools/lsp/lsp-process.d.ts +29 -0
- package/dist/tools/lsp/lsp-server.d.ts +24 -0
- package/dist/tools/lsp/rename-tools.d.ts +3 -0
- package/dist/tools/lsp/server-config-loader.d.ts +25 -0
- package/dist/tools/lsp/server-definitions.d.ts +3 -0
- package/dist/tools/lsp/server-installation.d.ts +1 -0
- package/dist/tools/lsp/server-resolution.d.ts +15 -0
- package/dist/tools/lsp/symbols-tool.d.ts +2 -0
- package/dist/tools/lsp/tools.d.ts +5 -0
- package/dist/tools/lsp/types.d.ts +123 -0
- package/dist/tools/lsp/workspace-edit.d.ts +8 -0
- package/dist/tools/session-manager/constants.d.ts +9 -0
- package/dist/tools/session-manager/index.d.ts +3 -0
- package/dist/tools/session-manager/session-formatter.d.ts +11 -0
- package/dist/tools/session-manager/storage.d.ts +15 -0
- package/dist/tools/session-manager/tools.d.ts +3 -0
- package/dist/tools/session-manager/types.d.ts +89 -0
- package/dist/tools/shared/semaphore.d.ts +14 -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 +4 -0
- package/dist/tools/skill/types.d.ts +37 -0
- package/dist/tools/slashcommand/command-discovery.d.ts +6 -0
- package/dist/tools/slashcommand/command-output-formatter.d.ts +3 -0
- package/dist/tools/slashcommand/index.d.ts +2 -0
- package/dist/tools/slashcommand/types.d.ts +18 -0
- package/dist/tools/task/index.d.ts +7 -0
- package/dist/tools/task/task-create.d.ts +4 -0
- package/dist/tools/task/task-get.d.ts +3 -0
- package/dist/tools/task/task-list.d.ts +3 -0
- package/dist/tools/task/task-update.d.ts +4 -0
- package/dist/tools/task/todo-sync.d.ts +16 -0
- package/dist/tools/task/types.d.ts +97 -0
- package/package.json +101 -0
- package/postinstall.mjs +55 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
import type { PluginContext } from "./types";
|
|
3
|
+
import type { CreatedHooks } from "../create-hooks";
|
|
4
|
+
type FirstMessageVariantGate = {
|
|
5
|
+
shouldOverride: (sessionID: string) => boolean;
|
|
6
|
+
markApplied: (sessionID: string) => void;
|
|
7
|
+
};
|
|
8
|
+
type ChatMessagePart = {
|
|
9
|
+
type: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
export type ChatMessageHandlerOutput = {
|
|
14
|
+
message: Record<string, unknown>;
|
|
15
|
+
parts: ChatMessagePart[];
|
|
16
|
+
};
|
|
17
|
+
export type ChatMessageInput = {
|
|
18
|
+
sessionID: string;
|
|
19
|
+
agent?: string;
|
|
20
|
+
model?: {
|
|
21
|
+
providerID: string;
|
|
22
|
+
modelID: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare function createChatMessageHandler(args: {
|
|
26
|
+
ctx: PluginContext;
|
|
27
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
28
|
+
firstMessageVariantGate: FirstMessageVariantGate;
|
|
29
|
+
hooks: CreatedHooks;
|
|
30
|
+
}): (input: ChatMessageInput, output: ChatMessageHandlerOutput) => Promise<void>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type ChatParamsInput = {
|
|
2
|
+
sessionID: string;
|
|
3
|
+
agent: {
|
|
4
|
+
name?: string;
|
|
5
|
+
};
|
|
6
|
+
model: {
|
|
7
|
+
providerID: string;
|
|
8
|
+
modelID: string;
|
|
9
|
+
};
|
|
10
|
+
provider: {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
message: {
|
|
14
|
+
variant?: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type ChatParamsOutput = {
|
|
18
|
+
temperature?: number;
|
|
19
|
+
topP?: number;
|
|
20
|
+
topK?: number;
|
|
21
|
+
options: Record<string, unknown>;
|
|
22
|
+
};
|
|
23
|
+
export declare function createChatParamsHandler(args: {
|
|
24
|
+
anthropicEffort: {
|
|
25
|
+
"chat.params"?: (input: ChatParamsInput, output: ChatParamsOutput) => Promise<void>;
|
|
26
|
+
} | null;
|
|
27
|
+
}): (input: unknown, output: unknown) => Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
import type { PluginContext } from "./types";
|
|
3
|
+
import type { CreatedHooks } from "../create-hooks";
|
|
4
|
+
import type { Managers } from "../create-managers";
|
|
5
|
+
type FirstMessageVariantGate = {
|
|
6
|
+
markSessionCreated: (sessionInfo: {
|
|
7
|
+
id?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
parentID?: string;
|
|
10
|
+
} | undefined) => void;
|
|
11
|
+
clear: (sessionID: string) => void;
|
|
12
|
+
};
|
|
13
|
+
type EventInput = Parameters<NonNullable<NonNullable<CreatedHooks["writeExistingFileGuard"]>["event"]>>[0];
|
|
14
|
+
export declare function createEventHandler(args: {
|
|
15
|
+
ctx: PluginContext;
|
|
16
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
17
|
+
firstMessageVariantGate: FirstMessageVariantGate;
|
|
18
|
+
managers: Managers;
|
|
19
|
+
hooks: CreatedHooks;
|
|
20
|
+
}): (input: EventInput) => Promise<void>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
2
|
+
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
+
import type { PluginContext } from "../types";
|
|
4
|
+
export type ContinuationHooks = Record<string, never>;
|
|
5
|
+
type SessionRecovery = {
|
|
6
|
+
setOnAbortCallback: (callback: (sessionID: string) => void) => void;
|
|
7
|
+
setOnRecoveryCompleteCallback: (callback: (sessionID: string) => void) => void;
|
|
8
|
+
} | null;
|
|
9
|
+
export declare function createContinuationHooks(_args: {
|
|
10
|
+
ctx: PluginContext;
|
|
11
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
12
|
+
isHookEnabled: (hookName: HookName) => boolean;
|
|
13
|
+
safeHookEnabled: boolean;
|
|
14
|
+
backgroundManager: BackgroundManager;
|
|
15
|
+
sessionRecovery: SessionRecovery;
|
|
16
|
+
}): ContinuationHooks;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
2
|
+
import type { PluginContext } from "../types";
|
|
3
|
+
import type { ModelCacheState } from "../../plugin-state";
|
|
4
|
+
export declare function createCoreHooks(args: {
|
|
5
|
+
ctx: PluginContext;
|
|
6
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
7
|
+
modelCacheState: ModelCacheState;
|
|
8
|
+
isHookEnabled: (hookName: HookName) => boolean;
|
|
9
|
+
safeHookEnabled: boolean;
|
|
10
|
+
}): {
|
|
11
|
+
contextInjectorMessagesTransform: ReturnType<typeof import("../../features/context-injector").createContextInjectorMessagesTransformHook>;
|
|
12
|
+
toolOutputTruncator: ReturnType<typeof import("../../hooks").createToolOutputTruncatorHook> | null;
|
|
13
|
+
directoryAgentsInjector: ReturnType<typeof import("../../hooks").createDirectoryAgentsInjectorHook> | null;
|
|
14
|
+
directoryReadmeInjector: ReturnType<typeof import("../../hooks").createDirectoryReadmeInjectorHook> | null;
|
|
15
|
+
rulesInjector: ReturnType<typeof import("../../hooks").createRulesInjectorHook> | null;
|
|
16
|
+
writeExistingFileGuard: ReturnType<typeof import("../../hooks").createWriteExistingFileGuardHook> | null;
|
|
17
|
+
hashlineReadEnhancer: ReturnType<typeof import("../../hooks").createHashlineReadEnhancerHook> | null;
|
|
18
|
+
autoUpdateChecker: ReturnType<typeof import("../../hooks").createAutoUpdateCheckerHook> | null;
|
|
19
|
+
sessionRecovery: ReturnType<typeof import("../../hooks").createSessionRecoveryHook> | null;
|
|
20
|
+
modelFallback: ReturnType<typeof import("../../hooks").createModelFallbackHook> | null;
|
|
21
|
+
editErrorRecovery: ReturnType<typeof import("../../hooks").createEditErrorRecoveryHook> | null;
|
|
22
|
+
runtimeFallback: ReturnType<typeof import("../../hooks").createRuntimeFallbackHook> | null;
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig, HookName } from "../../config";
|
|
2
|
+
import type { ModelCacheState } from "../../plugin-state";
|
|
3
|
+
import type { PluginContext } from "../types";
|
|
4
|
+
import { createAutoUpdateCheckerHook, createEditErrorRecoveryHook, createModelFallbackHook, createRuntimeFallbackHook, createSessionRecoveryHook } from "../../hooks";
|
|
5
|
+
export type SessionHooks = {
|
|
6
|
+
autoUpdateChecker: ReturnType<typeof createAutoUpdateCheckerHook> | null;
|
|
7
|
+
sessionRecovery: ReturnType<typeof createSessionRecoveryHook> | null;
|
|
8
|
+
modelFallback: ReturnType<typeof createModelFallbackHook> | null;
|
|
9
|
+
editErrorRecovery: ReturnType<typeof createEditErrorRecoveryHook> | null;
|
|
10
|
+
runtimeFallback: ReturnType<typeof createRuntimeFallbackHook> | null;
|
|
11
|
+
};
|
|
12
|
+
export declare function createSessionHooks(args: {
|
|
13
|
+
ctx: PluginContext;
|
|
14
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
15
|
+
modelCacheState: ModelCacheState;
|
|
16
|
+
isHookEnabled: (hookName: HookName) => boolean;
|
|
17
|
+
safeHookEnabled: boolean;
|
|
18
|
+
}): SessionHooks;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
2
|
+
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
3
|
+
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
4
|
+
import type { PluginContext } from "../types";
|
|
5
|
+
export type SkillHooks = Record<string, never>;
|
|
6
|
+
export declare function createSkillHooks(_args: {
|
|
7
|
+
ctx: PluginContext;
|
|
8
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
9
|
+
isHookEnabled: (hookName: HookName) => boolean;
|
|
10
|
+
safeHookEnabled: boolean;
|
|
11
|
+
mergedSkills: LoadedSkill[];
|
|
12
|
+
availableSkills: AvailableSkill[];
|
|
13
|
+
}): SkillHooks;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
2
|
+
import type { ModelCacheState } from "../../plugin-state";
|
|
3
|
+
import type { PluginContext } from "../types";
|
|
4
|
+
import { createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createRulesInjectorHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook } from "../../hooks";
|
|
5
|
+
export type ToolGuardHooks = {
|
|
6
|
+
toolOutputTruncator: ReturnType<typeof createToolOutputTruncatorHook> | null;
|
|
7
|
+
directoryAgentsInjector: ReturnType<typeof createDirectoryAgentsInjectorHook> | null;
|
|
8
|
+
directoryReadmeInjector: ReturnType<typeof createDirectoryReadmeInjectorHook> | null;
|
|
9
|
+
rulesInjector: ReturnType<typeof createRulesInjectorHook> | null;
|
|
10
|
+
writeExistingFileGuard: ReturnType<typeof createWriteExistingFileGuardHook> | null;
|
|
11
|
+
hashlineReadEnhancer: ReturnType<typeof createHashlineReadEnhancerHook> | null;
|
|
12
|
+
};
|
|
13
|
+
export declare function createToolGuardHooks(args: {
|
|
14
|
+
ctx: PluginContext;
|
|
15
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
16
|
+
modelCacheState: ModelCacheState;
|
|
17
|
+
isHookEnabled: (hookName: HookName) => boolean;
|
|
18
|
+
safeHookEnabled: boolean;
|
|
19
|
+
}): ToolGuardHooks;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../../config";
|
|
2
|
+
import type { PluginContext } from "../types";
|
|
3
|
+
import { createContextInjectorMessagesTransformHook } from "../../features/context-injector";
|
|
4
|
+
export type TransformHooks = {
|
|
5
|
+
contextInjectorMessagesTransform: ReturnType<typeof createContextInjectorMessagesTransformHook>;
|
|
6
|
+
};
|
|
7
|
+
export declare function createTransformHooks(args: {
|
|
8
|
+
ctx: PluginContext;
|
|
9
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
10
|
+
isHookEnabled: (hookName: string) => boolean;
|
|
11
|
+
safeHookEnabled?: boolean;
|
|
12
|
+
}): TransformHooks;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Message, Part } from "@opencode-ai/sdk";
|
|
2
|
+
import type { CreatedHooks } from "../create-hooks";
|
|
3
|
+
type MessageWithParts = {
|
|
4
|
+
info: Message;
|
|
5
|
+
parts: Part[];
|
|
6
|
+
};
|
|
7
|
+
type MessagesTransformOutput = {
|
|
8
|
+
messages: MessageWithParts[];
|
|
9
|
+
};
|
|
10
|
+
export declare function createMessagesTransformHandler(args: {
|
|
11
|
+
hooks: CreatedHooks;
|
|
12
|
+
}): (input: Record<string, never>, output: MessagesTransformOutput) => Promise<void>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface SessionMessage {
|
|
2
|
+
info?: {
|
|
3
|
+
agent?: string;
|
|
4
|
+
role?: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
type SessionClient = {
|
|
8
|
+
session: {
|
|
9
|
+
messages: (opts: {
|
|
10
|
+
path: {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
}) => Promise<{
|
|
14
|
+
data?: SessionMessage[];
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare function resolveSessionAgent(client: SessionClient, sessionId: string): Promise<string | undefined>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AvailableSkill } from "../agents/dynamic-agent-prompt-builder";
|
|
2
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
3
|
+
import type { BrowserAutomationProvider } from "../config/schema/browser-automation";
|
|
4
|
+
import type { LoadedSkill } from "../features/opencode-skill-loader/types";
|
|
5
|
+
export type SkillContext = {
|
|
6
|
+
mergedSkills: LoadedSkill[];
|
|
7
|
+
availableSkills: AvailableSkill[];
|
|
8
|
+
browserProvider: BrowserAutomationProvider;
|
|
9
|
+
disabledSkills: Set<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare function createSkillContext(args: {
|
|
12
|
+
directory: string;
|
|
13
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
14
|
+
}): Promise<SkillContext>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CreatedHooks } from "../create-hooks";
|
|
2
|
+
import type { PluginContext } from "./types";
|
|
3
|
+
export declare function createToolExecuteAfterHandler(args: {
|
|
4
|
+
ctx: PluginContext;
|
|
5
|
+
hooks: CreatedHooks;
|
|
6
|
+
}): (input: {
|
|
7
|
+
tool: string;
|
|
8
|
+
sessionID: string;
|
|
9
|
+
callID: string;
|
|
10
|
+
}, output: {
|
|
11
|
+
title: string;
|
|
12
|
+
output: string;
|
|
13
|
+
metadata: Record<string, unknown>;
|
|
14
|
+
} | undefined) => Promise<void>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginContext } from "./types";
|
|
2
|
+
import type { CreatedHooks } from "../create-hooks";
|
|
3
|
+
export declare function createToolExecuteBeforeHandler(args: {
|
|
4
|
+
ctx: PluginContext;
|
|
5
|
+
hooks: CreatedHooks;
|
|
6
|
+
}): (input: {
|
|
7
|
+
tool: string;
|
|
8
|
+
sessionID: string;
|
|
9
|
+
callID: string;
|
|
10
|
+
}, output: {
|
|
11
|
+
args: Record<string, unknown>;
|
|
12
|
+
}) => Promise<void>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AvailableCategory } from "../agents/dynamic-agent-prompt-builder";
|
|
2
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
3
|
+
import type { PluginContext, ToolsRecord } from "./types";
|
|
4
|
+
import type { Managers } from "../create-managers";
|
|
5
|
+
import type { SkillContext } from "./skill-context";
|
|
6
|
+
export type ToolRegistryResult = {
|
|
7
|
+
filteredTools: ToolsRecord;
|
|
8
|
+
taskSystemEnabled: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function createToolRegistry(args: {
|
|
11
|
+
ctx: PluginContext;
|
|
12
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
13
|
+
managers: Pick<Managers, "backgroundManager" | "tmuxSessionManager" | "skillMcpManager">;
|
|
14
|
+
skillContext: SkillContext;
|
|
15
|
+
availableCategories: AvailableCategory[];
|
|
16
|
+
}): ToolRegistryResult;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Plugin, ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
+
export type PluginContext = Parameters<Plugin>[0];
|
|
3
|
+
export type PluginInstance = Awaited<ReturnType<Plugin>>;
|
|
4
|
+
type ChatHeadersHook = PluginInstance extends {
|
|
5
|
+
"chat.headers"?: infer T;
|
|
6
|
+
} ? T : (input: unknown, output: unknown) => Promise<void>;
|
|
7
|
+
export type PluginInterface = Omit<PluginInstance, "experimental.session.compacting" | "chat.headers"> & {
|
|
8
|
+
"chat.headers"?: ChatHeadersHook;
|
|
9
|
+
};
|
|
10
|
+
export type ToolsRecord = Record<string, ToolDefinition>;
|
|
11
|
+
export type TmuxConfig = {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
layout: "main-horizontal" | "main-vertical" | "tiled" | "even-horizontal" | "even-vertical";
|
|
14
|
+
main_pane_size: number;
|
|
15
|
+
main_pane_min_width: number;
|
|
16
|
+
agent_pane_min_width: number;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schedules a deferred SQLite update to change the message model in the DB
|
|
3
|
+
* WITHOUT triggering a Bus event. Uses microtask retry loop to wait for
|
|
4
|
+
* Session.updateMessage() to save the message first, then overwrites the model.
|
|
5
|
+
*
|
|
6
|
+
* Falls back to setTimeout(fn, 0) after 10 microtask attempts.
|
|
7
|
+
*/
|
|
8
|
+
export declare function scheduleDeferredModelOverride(messageId: string, targetModel: {
|
|
9
|
+
providerID: string;
|
|
10
|
+
modelID: string;
|
|
11
|
+
}, variant?: string): void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
export declare function detectUltrawork(text: string): boolean;
|
|
3
|
+
export type UltraworkOverrideResult = {
|
|
4
|
+
providerID?: string;
|
|
5
|
+
modelID?: string;
|
|
6
|
+
variant?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Resolves the ultrawork model override config for the given agent and prompt text.
|
|
10
|
+
* Returns null if no override should be applied.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveUltraworkOverride(pluginConfig: OhMyOpenCodeConfig, inputAgentName: string | undefined, output: {
|
|
13
|
+
message: Record<string, unknown>;
|
|
14
|
+
parts: Array<{
|
|
15
|
+
type: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}>;
|
|
19
|
+
}, sessionID?: string): UltraworkOverrideResult | null;
|
|
20
|
+
/**
|
|
21
|
+
* Applies ultrawork model override using a deferred DB update strategy.
|
|
22
|
+
*
|
|
23
|
+
* Instead of directly mutating output.message.model (which would cause the TUI
|
|
24
|
+
* bottom bar to show the override model), this schedules a queueMicrotask that
|
|
25
|
+
* updates the message model directly in SQLite AFTER Session.updateMessage()
|
|
26
|
+
* saves the original model, but BEFORE loop() reads it for the API call.
|
|
27
|
+
*
|
|
28
|
+
* Result: API call uses opus, TUI bottom bar stays on sonnet.
|
|
29
|
+
*/
|
|
30
|
+
export declare function applyUltraworkModelOverrideOnMessage(pluginConfig: OhMyOpenCodeConfig, inputAgentName: string | undefined, output: {
|
|
31
|
+
message: Record<string, unknown>;
|
|
32
|
+
parts: Array<{
|
|
33
|
+
type: string;
|
|
34
|
+
text?: string;
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
}>;
|
|
37
|
+
}, tui: unknown, sessionID?: string): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
import type { PluginContext } from "./types";
|
|
3
|
+
import type { BackgroundManager } from "../features/background-agent";
|
|
4
|
+
export declare function createUnstableAgentBabysitter(args: {
|
|
5
|
+
ctx: PluginContext;
|
|
6
|
+
backgroundManager: BackgroundManager;
|
|
7
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
8
|
+
}): null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type OhMyOpenCodeConfig } from "./config";
|
|
2
|
+
export declare function parseConfigPartially(rawConfig: Record<string, unknown>): OhMyOpenCodeConfig | null;
|
|
3
|
+
export declare function loadConfigFromPath(configPath: string, _ctx: unknown): OhMyOpenCodeConfig | null;
|
|
4
|
+
export declare function mergeConfigs(base: OhMyOpenCodeConfig, override: OhMyOpenCodeConfig): OhMyOpenCodeConfig;
|
|
5
|
+
export declare function loadPluginConfig(directory: string, ctx: unknown): OhMyOpenCodeConfig;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
import type { PluginComponents } from "./plugin-components-loader";
|
|
3
|
+
export declare function applyAgentConfig(params: {
|
|
4
|
+
config: Record<string, unknown>;
|
|
5
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
6
|
+
ctx: {
|
|
7
|
+
directory: string;
|
|
8
|
+
client?: any;
|
|
9
|
+
};
|
|
10
|
+
pluginComponents: PluginComponents;
|
|
11
|
+
}): Promise<Record<string, unknown>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function remapAgentKeysToDisplayNames(agents: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function reorderAgentsByPriority(agents: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
import type { PluginComponents } from "./plugin-components-loader";
|
|
3
|
+
export declare function applyCommandConfig(params: {
|
|
4
|
+
config: Record<string, unknown>;
|
|
5
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
6
|
+
ctx: {
|
|
7
|
+
directory: string;
|
|
8
|
+
};
|
|
9
|
+
pluginComponents: PluginComponents;
|
|
10
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
import type { ModelCacheState } from "../plugin-state";
|
|
3
|
+
export { resolveCategoryConfig } from "./category-config-resolver";
|
|
4
|
+
export interface ConfigHandlerDeps {
|
|
5
|
+
ctx: {
|
|
6
|
+
directory: string;
|
|
7
|
+
client?: any;
|
|
8
|
+
};
|
|
9
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
10
|
+
modelCacheState: ModelCacheState;
|
|
11
|
+
}
|
|
12
|
+
export declare function createConfigHandler(deps: ConfigHandlerDeps): (config: Record<string, unknown>) => Promise<void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { createConfigHandler, type ConfigHandlerDeps } from "./config-handler";
|
|
2
|
+
export * from "./provider-config-handler";
|
|
3
|
+
export * from "./agent-config-handler";
|
|
4
|
+
export * from "./tool-config-handler";
|
|
5
|
+
export * from "./mcp-config-handler";
|
|
6
|
+
export * from "./command-config-handler";
|
|
7
|
+
export * from "./plugin-components-loader";
|
|
8
|
+
export * from "./category-config-resolver";
|
|
9
|
+
export * from "./prometheus-agent-config-builder";
|
|
10
|
+
export * from "./agent-priority-order";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
import type { PluginComponents } from "./plugin-components-loader";
|
|
3
|
+
export declare function applyMcpConfig(params: {
|
|
4
|
+
config: Record<string, unknown>;
|
|
5
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
6
|
+
pluginComponents: PluginComponents;
|
|
7
|
+
}): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buildPlanDemoteConfig(prometheusConfig: Record<string, unknown> | undefined, planOverride: Record<string, unknown> | undefined): Record<string, unknown>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
export type PluginComponents = {
|
|
3
|
+
commands: Record<string, unknown>;
|
|
4
|
+
skills: Record<string, unknown>;
|
|
5
|
+
agents: Record<string, unknown>;
|
|
6
|
+
mcpServers: Record<string, unknown>;
|
|
7
|
+
hooksConfigs: Array<{
|
|
8
|
+
hooks?: Record<string, unknown>;
|
|
9
|
+
}>;
|
|
10
|
+
plugins: Array<{
|
|
11
|
+
name: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}>;
|
|
14
|
+
errors: Array<{
|
|
15
|
+
pluginKey: string;
|
|
16
|
+
installPath: string;
|
|
17
|
+
error: string;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
export declare function loadPluginComponents(params: {
|
|
21
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
22
|
+
}): Promise<PluginComponents>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CategoryConfig } from "../config/schema";
|
|
2
|
+
type PrometheusOverride = Record<string, unknown> & {
|
|
3
|
+
category?: string;
|
|
4
|
+
model?: string;
|
|
5
|
+
variant?: string;
|
|
6
|
+
reasoningEffort?: string;
|
|
7
|
+
textVerbosity?: string;
|
|
8
|
+
thinking?: {
|
|
9
|
+
type: string;
|
|
10
|
+
budgetTokens?: number;
|
|
11
|
+
};
|
|
12
|
+
temperature?: number;
|
|
13
|
+
top_p?: number;
|
|
14
|
+
maxTokens?: number;
|
|
15
|
+
prompt_append?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function buildPrometheusAgentConfig(params: {
|
|
18
|
+
configAgentPlan: Record<string, unknown> | undefined;
|
|
19
|
+
pluginPrometheusOverride: PrometheusOverride | undefined;
|
|
20
|
+
userCategories: Record<string, CategoryConfig> | undefined;
|
|
21
|
+
currentModel: string | undefined;
|
|
22
|
+
}): Promise<Record<string, unknown>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PluginContext, PluginInterface, ToolsRecord } from "./plugin/types";
|
|
2
|
+
import type { OhMyOpenCodeConfig } from "./config";
|
|
3
|
+
import type { CreatedHooks } from "./create-hooks";
|
|
4
|
+
import type { Managers } from "./create-managers";
|
|
5
|
+
export declare function createPluginInterface(args: {
|
|
6
|
+
ctx: PluginContext;
|
|
7
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
8
|
+
firstMessageVariantGate: {
|
|
9
|
+
shouldOverride: (sessionID: string) => boolean;
|
|
10
|
+
markApplied: (sessionID: string) => void;
|
|
11
|
+
markSessionCreated: (sessionInfo: {
|
|
12
|
+
id?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
parentID?: string;
|
|
15
|
+
} | undefined) => void;
|
|
16
|
+
clear: (sessionID: string) => void;
|
|
17
|
+
};
|
|
18
|
+
managers: Managers;
|
|
19
|
+
hooks: CreatedHooks;
|
|
20
|
+
tools: ToolsRecord;
|
|
21
|
+
}): PluginInterface;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent config keys to display names mapping.
|
|
3
|
+
* Config keys are lowercase (e.g., "sisyphus", "atlas").
|
|
4
|
+
* Display names include suffixes for UI/logs (e.g., "Sisyphus (Ultraworker)").
|
|
5
|
+
*/
|
|
6
|
+
export declare const AGENT_DISPLAY_NAMES: Record<string, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Get display name for an agent config key.
|
|
9
|
+
* Uses case-insensitive lookup for backward compatibility.
|
|
10
|
+
* Returns original key if not found.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAgentDisplayName(configKey: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Resolve an agent name (display name or config key) to its lowercase config key.
|
|
15
|
+
* "Atlas (Plan Executor)" → "atlas", "atlas" → "atlas", "unknown" → "unknown"
|
|
16
|
+
*/
|
|
17
|
+
export declare function getAgentConfigKey(agentName: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent tool restrictions for session.prompt calls.
|
|
3
|
+
* OpenCode SDK's session.prompt `tools` parameter expects boolean values.
|
|
4
|
+
* true = tool allowed, false = tool denied.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getAgentToolRestrictions(agentName: string): Record<string, boolean>;
|
|
7
|
+
export declare function hasAgentToolRestrictions(agentName: string): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
+
export declare function resolveAgentVariant(config: OhMyOpenCodeConfig, agentName?: string): string | undefined;
|
|
3
|
+
export declare function resolveVariantForModel(config: OhMyOpenCodeConfig, agentName: string, currentModel: {
|
|
4
|
+
providerID: string;
|
|
5
|
+
modelID: string;
|
|
6
|
+
}): string | undefined;
|
|
7
|
+
export declare function applyAgentVariant(config: OhMyOpenCodeConfig, agentName: string | undefined, message: {
|
|
8
|
+
variant?: string;
|
|
9
|
+
}): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function getCachedBinaryPath(cacheDir: string, binaryName: string): string | null;
|
|
2
|
+
export declare function ensureCacheDir(cacheDir: string): void;
|
|
3
|
+
export declare function downloadArchive(downloadUrl: string, archivePath: string): Promise<void>;
|
|
4
|
+
export declare function extractTarGz(archivePath: string, destDir: string, options?: {
|
|
5
|
+
args?: string[];
|
|
6
|
+
cwd?: string;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
export declare function extractZipArchive(archivePath: string, destDir: string): Promise<void>;
|
|
9
|
+
export declare function cleanupArchive(archivePath: string): void;
|
|
10
|
+
export declare function ensureExecutable(binaryPath: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getClaudeConfigDir(): string;
|