@reinamaccredy/oh-my-opencode 3.0.1-beta.1 → 3.0.1-beta.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/dist/cli/index.js +44 -23
- package/dist/index.js +19100 -28924
- package/package.json +3 -2
- package/dist/agents/build-prompt.d.ts +0 -31
- package/dist/agents/document-writer.d.ts +0 -5
- package/dist/agents/explore.d.ts +0 -5
- package/dist/agents/frontend-ui-ux-engineer.d.ts +0 -5
- package/dist/agents/index.d.ts +0 -5
- package/dist/agents/librarian.d.ts +0 -5
- package/dist/agents/metis.d.ts +0 -19
- package/dist/agents/momus.d.ts +0 -6
- package/dist/agents/multimodal-looker.d.ts +0 -5
- package/dist/agents/oracle.d.ts +0 -5
- package/dist/agents/orchestrator-sisyphus.d.ts +0 -20
- package/dist/agents/plan-prompt.d.ts +0 -64
- package/dist/agents/prometheus-prompt.d.ts +0 -27
- package/dist/agents/sisyphus-junior.d.ts +0 -3
- package/dist/agents/sisyphus-prompt-builder.d.ts +0 -26
- package/dist/agents/sisyphus.d.ts +0 -4
- package/dist/agents/types.d.ts +0 -51
- package/dist/agents/utils.d.ts +0 -13
- package/dist/agents/utils.test.d.ts +0 -1
- package/dist/cli/config-manager.d.ts +0 -77
- package/dist/cli/doctor/checks/auth.d.ts +0 -7
- package/dist/cli/doctor/checks/auth.test.d.ts +0 -1
- package/dist/cli/doctor/checks/config.d.ts +0 -8
- package/dist/cli/doctor/checks/config.test.d.ts +0 -1
- package/dist/cli/doctor/checks/dependencies.d.ts +0 -8
- package/dist/cli/doctor/checks/dependencies.test.d.ts +0 -1
- package/dist/cli/doctor/checks/gh.d.ts +0 -13
- package/dist/cli/doctor/checks/gh.test.d.ts +0 -1
- package/dist/cli/doctor/checks/index.d.ts +0 -11
- package/dist/cli/doctor/checks/lsp.d.ts +0 -8
- package/dist/cli/doctor/checks/lsp.test.d.ts +0 -1
- package/dist/cli/doctor/checks/mcp.d.ts +0 -6
- package/dist/cli/doctor/checks/mcp.test.d.ts +0 -1
- package/dist/cli/doctor/checks/opencode.d.ts +0 -10
- package/dist/cli/doctor/checks/opencode.test.d.ts +0 -1
- package/dist/cli/doctor/checks/plugin.d.ts +0 -4
- package/dist/cli/doctor/checks/plugin.test.d.ts +0 -1
- package/dist/cli/doctor/checks/version.d.ts +0 -4
- package/dist/cli/doctor/checks/version.test.d.ts +0 -1
- package/dist/cli/doctor/constants.d.ts +0 -40
- package/dist/cli/doctor/formatter.d.ts +0 -12
- package/dist/cli/doctor/formatter.test.d.ts +0 -1
- package/dist/cli/doctor/index.d.ts +0 -5
- package/dist/cli/doctor/runner.d.ts +0 -7
- package/dist/cli/doctor/runner.test.d.ts +0 -1
- package/dist/cli/doctor/types.d.ts +0 -91
- package/dist/cli/get-local-version/formatter.d.ts +0 -3
- package/dist/cli/get-local-version/index.d.ts +0 -3
- package/dist/cli/get-local-version/types.d.ts +0 -13
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/install.d.ts +0 -2
- package/dist/cli/run/completion.d.ts +0 -2
- package/dist/cli/run/completion.test.d.ts +0 -1
- package/dist/cli/run/events.d.ts +0 -11
- package/dist/cli/run/events.test.d.ts +0 -1
- package/dist/cli/run/index.d.ts +0 -2
- package/dist/cli/run/runner.d.ts +0 -2
- package/dist/cli/run/types.d.ts +0 -71
- package/dist/cli/types.d.ts +0 -29
- package/dist/config/index.d.ts +0 -2
- package/dist/config/schema.d.ts +0 -1948
- package/dist/config/schema.test.d.ts +0 -1
- package/dist/features/background-agent/concurrency.d.ts +0 -10
- package/dist/features/background-agent/concurrency.test.d.ts +0 -1
- package/dist/features/background-agent/index.d.ts +0 -3
- package/dist/features/background-agent/manager.d.ts +0 -66
- package/dist/features/background-agent/manager.test.d.ts +0 -1
- package/dist/features/background-agent/types.d.ts +0 -68
- package/dist/features/boulder-state/constants.d.ts +0 -10
- package/dist/features/boulder-state/index.d.ts +0 -4
- package/dist/features/boulder-state/storage.d.ts +0 -28
- package/dist/features/boulder-state/storage.test.d.ts +0 -1
- package/dist/features/boulder-state/types.d.ts +0 -24
- package/dist/features/boulder-state/unified-state.d.ts +0 -86
- package/dist/features/builtin-commands/commands.d.ts +0 -2
- package/dist/features/builtin-commands/index.d.ts +0 -2
- package/dist/features/builtin-commands/templates/init-deep.d.ts +0 -1
- package/dist/features/builtin-commands/templates/ralph-loop.d.ts +0 -2
- package/dist/features/builtin-commands/templates/refactor.d.ts +0 -1
- package/dist/features/builtin-commands/templates/start-work.d.ts +0 -1
- package/dist/features/builtin-commands/types.d.ts +0 -6
- package/dist/features/builtin-skills/index.d.ts +0 -2
- package/dist/features/builtin-skills/skills.d.ts +0 -2
- package/dist/features/builtin-skills/types.d.ts +0 -15
- package/dist/features/claude-code-agent-loader/index.d.ts +0 -2
- package/dist/features/claude-code-agent-loader/loader.d.ts +0 -3
- package/dist/features/claude-code-agent-loader/types.d.ts +0 -14
- package/dist/features/claude-code-command-loader/index.d.ts +0 -2
- package/dist/features/claude-code-command-loader/loader.d.ts +0 -6
- package/dist/features/claude-code-command-loader/types.d.ts +0 -42
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +0 -2
- package/dist/features/claude-code-mcp-loader/index.d.ts +0 -10
- package/dist/features/claude-code-mcp-loader/loader.d.ts +0 -4
- package/dist/features/claude-code-mcp-loader/loader.test.d.ts +0 -1
- package/dist/features/claude-code-mcp-loader/transformer.d.ts +0 -2
- package/dist/features/claude-code-mcp-loader/types.d.ts +0 -35
- package/dist/features/claude-code-plugin-loader/index.d.ts +0 -3
- package/dist/features/claude-code-plugin-loader/loader.d.ts +0 -20
- package/dist/features/claude-code-plugin-loader/types.d.ts +0 -186
- package/dist/features/claude-code-session-state/index.d.ts +0 -1
- package/dist/features/claude-code-session-state/state.d.ts +0 -4
- package/dist/features/context-injector/collector.d.ts +0 -11
- package/dist/features/context-injector/collector.test.d.ts +0 -1
- package/dist/features/context-injector/index.d.ts +0 -3
- package/dist/features/context-injector/injector.d.ts +0 -39
- package/dist/features/context-injector/injector.test.d.ts +0 -1
- package/dist/features/context-injector/types.d.ts +0 -83
- package/dist/features/hook-message-injector/constants.d.ts +0 -3
- package/dist/features/hook-message-injector/index.d.ts +0 -4
- package/dist/features/hook-message-injector/injector.d.ts +0 -11
- package/dist/features/hook-message-injector/types.d.ts +0 -44
- package/dist/features/maestro/hooks/index.d.ts +0 -16
- package/dist/features/maestro/index.d.ts +0 -4
- package/dist/features/maestro/skills/index.d.ts +0 -4
- package/dist/features/maestro/types.d.ts +0 -42
- package/dist/features/maestro/utils/index.d.ts +0 -4
- package/dist/features/opencode-skill-loader/async-loader.d.ts +0 -6
- package/dist/features/opencode-skill-loader/async-loader.test.d.ts +0 -1
- package/dist/features/opencode-skill-loader/blocking.d.ts +0 -2
- package/dist/features/opencode-skill-loader/blocking.test.d.ts +0 -1
- package/dist/features/opencode-skill-loader/discover-worker.d.ts +0 -1
- package/dist/features/opencode-skill-loader/index.d.ts +0 -4
- package/dist/features/opencode-skill-loader/loader.d.ts +0 -16
- package/dist/features/opencode-skill-loader/loader.test.d.ts +0 -1
- package/dist/features/opencode-skill-loader/merger.d.ts +0 -7
- package/dist/features/opencode-skill-loader/skill-content.d.ts +0 -5
- package/dist/features/opencode-skill-loader/skill-content.test.d.ts +0 -1
- package/dist/features/opencode-skill-loader/types.d.ts +0 -34
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +0 -2
- package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +0 -1
- package/dist/features/skill-mcp-manager/index.d.ts +0 -2
- package/dist/features/skill-mcp-manager/manager.d.ts +0 -29
- package/dist/features/skill-mcp-manager/manager.test.d.ts +0 -1
- package/dist/features/skill-mcp-manager/types.d.ts +0 -11
- package/dist/features/task-toast-manager/index.d.ts +0 -2
- package/dist/features/task-toast-manager/manager.d.ts +0 -56
- package/dist/features/task-toast-manager/manager.test.d.ts +0 -1
- package/dist/features/task-toast-manager/types.d.ts +0 -16
- package/dist/features/workflow-engine/adapters/index.d.ts +0 -2
- package/dist/features/workflow-engine/adapters/maestro/index.d.ts +0 -43
- package/dist/features/workflow-engine/adapters/sisyphus/index.d.ts +0 -30
- package/dist/features/workflow-engine/contracts/v1/contract.test.d.ts +0 -1
- package/dist/features/workflow-engine/contracts/v1/engine.contract.d.ts +0 -27
- package/dist/features/workflow-engine/contracts/v1/index.d.ts +0 -2
- package/dist/features/workflow-engine/contracts/v1/types.d.ts +0 -346
- package/dist/features/workflow-engine/engines/index.d.ts +0 -1
- package/dist/features/workflow-engine/engines/maestro-engine.d.ts +0 -40
- package/dist/features/workflow-engine/index.d.ts +0 -4
- package/dist/features/workflow-engine/service.d.ts +0 -6
- package/dist/hooks/agent-usage-reminder/constants.d.ts +0 -5
- package/dist/hooks/agent-usage-reminder/index.d.ts +0 -22
- package/dist/hooks/agent-usage-reminder/storage.d.ts +0 -4
- package/dist/hooks/agent-usage-reminder/types.d.ts +0 -6
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +0 -4
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.test.d.ts +0 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +0 -17
- package/dist/hooks/anthropic-context-window-limit-recovery/parser.d.ts +0 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +0 -7
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.test.d.ts +0 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-executor.d.ts +0 -3
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-purge-errors.d.ts +0 -7
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-storage.d.ts +0 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-supersede.d.ts +0 -6
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +0 -36
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +0 -28
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.test.d.ts +0 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +0 -42
- package/dist/hooks/auto-slash-command/constants.d.ts +0 -5
- package/dist/hooks/auto-slash-command/detector.d.ts +0 -9
- package/dist/hooks/auto-slash-command/detector.test.d.ts +0 -1
- package/dist/hooks/auto-slash-command/executor.d.ts +0 -11
- package/dist/hooks/auto-slash-command/index.d.ts +0 -12
- package/dist/hooks/auto-slash-command/index.test.d.ts +0 -1
- package/dist/hooks/auto-slash-command/types.d.ts +0 -27
- package/dist/hooks/auto-update-checker/cache.d.ts +0 -3
- package/dist/hooks/auto-update-checker/checker.d.ts +0 -20
- package/dist/hooks/auto-update-checker/constants.d.ts +0 -13
- package/dist/hooks/auto-update-checker/index.d.ts +0 -16
- package/dist/hooks/auto-update-checker/index.test.d.ts +0 -1
- package/dist/hooks/auto-update-checker/types.d.ts +0 -25
- package/dist/hooks/background-notification/index.d.ts +0 -22
- package/dist/hooks/background-notification/types.d.ts +0 -4
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +0 -13
- package/dist/hooks/claude-code-hooks/config.d.ts +0 -3
- package/dist/hooks/claude-code-hooks/index.d.ts +0 -48
- package/dist/hooks/claude-code-hooks/plugin-config.d.ts +0 -8
- package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +0 -40
- package/dist/hooks/claude-code-hooks/pre-compact.d.ts +0 -16
- package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +0 -25
- package/dist/hooks/claude-code-hooks/stop.d.ts +0 -20
- package/dist/hooks/claude-code-hooks/todo.d.ts +0 -12
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +0 -5
- package/dist/hooks/claude-code-hooks/transcript.d.ts +0 -38
- package/dist/hooks/claude-code-hooks/types.d.ts +0 -183
- package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +0 -22
- package/dist/hooks/comment-checker/cli.d.ts +0 -53
- package/dist/hooks/comment-checker/constants.d.ts +0 -3
- package/dist/hooks/comment-checker/downloader.d.ts +0 -25
- package/dist/hooks/comment-checker/filters/bdd.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/directive.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/docstring.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/index.d.ts +0 -7
- package/dist/hooks/comment-checker/filters/shebang.d.ts +0 -2
- package/dist/hooks/comment-checker/index.d.ts +0 -19
- package/dist/hooks/comment-checker/output/formatter.d.ts +0 -2
- package/dist/hooks/comment-checker/output/index.d.ts +0 -2
- package/dist/hooks/comment-checker/output/xml-builder.d.ts +0 -2
- package/dist/hooks/comment-checker/types.d.ts +0 -31
- package/dist/hooks/compaction-context-injector/index.d.ts +0 -2
- package/dist/hooks/context-window-monitor.d.ts +0 -18
- package/dist/hooks/directory-agents-injector/constants.d.ts +0 -3
- package/dist/hooks/directory-agents-injector/index.d.ts +0 -26
- package/dist/hooks/directory-agents-injector/storage.d.ts +0 -3
- package/dist/hooks/directory-agents-injector/types.d.ts +0 -5
- package/dist/hooks/directory-readme-injector/constants.d.ts +0 -3
- package/dist/hooks/directory-readme-injector/index.d.ts +0 -26
- package/dist/hooks/directory-readme-injector/storage.d.ts +0 -3
- package/dist/hooks/directory-readme-injector/types.d.ts +0 -5
- package/dist/hooks/edit-error-recovery/index.d.ts +0 -31
- package/dist/hooks/edit-error-recovery/index.test.d.ts +0 -1
- package/dist/hooks/empty-message-sanitizer/index.d.ts +0 -12
- package/dist/hooks/empty-task-response-detector.d.ts +0 -12
- package/dist/hooks/index.d.ts +0 -33
- package/dist/hooks/interactive-bash-session/constants.d.ts +0 -4
- package/dist/hooks/interactive-bash-session/index.d.ts +0 -23
- package/dist/hooks/interactive-bash-session/storage.d.ts +0 -4
- package/dist/hooks/interactive-bash-session/types.d.ts +0 -10
- package/dist/hooks/keyword-detector/constants.d.ts +0 -12
- package/dist/hooks/keyword-detector/detector.d.ts +0 -11
- package/dist/hooks/keyword-detector/index.d.ts +0 -22
- package/dist/hooks/keyword-detector/index.test.d.ts +0 -1
- package/dist/hooks/keyword-detector/types.d.ts +0 -4
- package/dist/hooks/maestro-sisyphus-bridge/constants.d.ts +0 -9
- package/dist/hooks/maestro-sisyphus-bridge/index.d.ts +0 -53
- package/dist/hooks/non-interactive-env/constants.d.ts +0 -34
- package/dist/hooks/non-interactive-env/detector.d.ts +0 -1
- package/dist/hooks/non-interactive-env/index.d.ts +0 -14
- package/dist/hooks/non-interactive-env/index.test.d.ts +0 -1
- package/dist/hooks/non-interactive-env/types.d.ts +0 -3
- package/dist/hooks/preemptive-compaction/constants.d.ts +0 -3
- package/dist/hooks/preemptive-compaction/index.d.ts +0 -24
- package/dist/hooks/preemptive-compaction/types.d.ts +0 -17
- package/dist/hooks/prometheus-md-only/constants.d.ts +0 -6
- package/dist/hooks/prometheus-md-only/index.d.ts +0 -12
- package/dist/hooks/prometheus-md-only/index.test.d.ts +0 -1
- package/dist/hooks/ralph-loop/constants.d.ts +0 -5
- package/dist/hooks/ralph-loop/index.d.ts +0 -20
- package/dist/hooks/ralph-loop/index.test.d.ts +0 -1
- package/dist/hooks/ralph-loop/storage.d.ts +0 -6
- package/dist/hooks/ralph-loop/types.d.ts +0 -16
- package/dist/hooks/rules-injector/constants.d.ts +0 -8
- package/dist/hooks/rules-injector/finder.d.ts +0 -33
- package/dist/hooks/rules-injector/finder.test.d.ts +0 -1
- package/dist/hooks/rules-injector/index.d.ts +0 -26
- package/dist/hooks/rules-injector/matcher.d.ts +0 -21
- package/dist/hooks/rules-injector/parser.d.ts +0 -18
- package/dist/hooks/rules-injector/parser.test.d.ts +0 -1
- package/dist/hooks/rules-injector/storage.d.ts +0 -9
- package/dist/hooks/rules-injector/types.d.ts +0 -54
- package/dist/hooks/session-notification-utils.d.ts +0 -9
- package/dist/hooks/session-notification.d.ts +0 -20
- package/dist/hooks/session-notification.test.d.ts +0 -1
- package/dist/hooks/session-recovery/constants.d.ts +0 -6
- package/dist/hooks/session-recovery/index.d.ts +0 -22
- package/dist/hooks/session-recovery/index.test.d.ts +0 -1
- package/dist/hooks/session-recovery/storage.d.ts +0 -19
- package/dist/hooks/session-recovery/types.d.ts +0 -90
- package/dist/hooks/sisyphus-orchestrator/index.d.ts +0 -35
- package/dist/hooks/sisyphus-orchestrator/index.test.d.ts +0 -1
- package/dist/hooks/start-work/index.d.ts +0 -16
- package/dist/hooks/start-work/index.test.d.ts +0 -1
- package/dist/hooks/task-resume-info/index.d.ts +0 -11
- package/dist/hooks/tdd-enforcement/constants.d.ts +0 -16
- package/dist/hooks/tdd-enforcement/index.d.ts +0 -54
- package/dist/hooks/think-mode/detector.d.ts +0 -5
- package/dist/hooks/think-mode/index.d.ts +0 -14
- package/dist/hooks/think-mode/index.test.d.ts +0 -1
- package/dist/hooks/think-mode/switcher.d.ts +0 -57
- package/dist/hooks/think-mode/switcher.test.d.ts +0 -1
- package/dist/hooks/think-mode/types.d.ts +0 -21
- package/dist/hooks/thinking-block-validator/index.d.ts +0 -30
- package/dist/hooks/todo-continuation-enforcer.d.ts +0 -17
- package/dist/hooks/todo-continuation-enforcer.test.d.ts +0 -1
- package/dist/hooks/tool-output-truncator.d.ts +0 -17
- package/dist/hooks/tool-output-truncator.test.d.ts +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/mcp/context7.d.ts +0 -5
- package/dist/mcp/grep-app.d.ts +0 -5
- package/dist/mcp/index.d.ts +0 -8
- package/dist/mcp/index.test.d.ts +0 -1
- package/dist/mcp/types.d.ts +0 -9
- package/dist/mcp/websearch.d.ts +0 -8
- package/dist/plugin-config.d.ts +0 -4
- package/dist/plugin-handlers/config-handler.d.ts +0 -10
- package/dist/plugin-handlers/index.d.ts +0 -1
- package/dist/plugin-state.d.ts +0 -6
- package/dist/shared/claude-config-dir.d.ts +0 -1
- package/dist/shared/claude-config-dir.test.d.ts +0 -1
- package/dist/shared/command-executor.d.ts +0 -21
- package/dist/shared/config-errors.d.ts +0 -7
- package/dist/shared/config-path.d.ts +0 -17
- package/dist/shared/data-path.d.ts +0 -14
- package/dist/shared/deep-merge.d.ts +0 -13
- package/dist/shared/dynamic-truncator.d.ts +0 -27
- package/dist/shared/external-plugin-detector.d.ts +0 -18
- package/dist/shared/external-plugin-detector.test.d.ts +0 -1
- package/dist/shared/file-reference-resolver.d.ts +0 -1
- package/dist/shared/file-utils.d.ts +0 -7
- package/dist/shared/frontmatter.d.ts +0 -7
- package/dist/shared/frontmatter.test.d.ts +0 -1
- package/dist/shared/hook-disabled.d.ts +0 -2
- package/dist/shared/index.d.ts +0 -22
- package/dist/shared/jsonc-parser.d.ts +0 -15
- package/dist/shared/jsonc-parser.test.d.ts +0 -1
- package/dist/shared/logger.d.ts +0 -2
- package/dist/shared/migration.d.ts +0 -30
- package/dist/shared/migration.test.d.ts +0 -1
- package/dist/shared/model-sanitizer.d.ts +0 -3
- package/dist/shared/opencode-config-dir.d.ts +0 -19
- package/dist/shared/opencode-config-dir.test.d.ts +0 -1
- package/dist/shared/opencode-version.d.ts +0 -10
- package/dist/shared/opencode-version.test.d.ts +0 -1
- package/dist/shared/pattern-matcher.d.ts +0 -3
- package/dist/shared/permission-compat.d.ts +0 -12
- package/dist/shared/permission-compat.test.d.ts +0 -1
- package/dist/shared/snake-case.d.ts +0 -4
- package/dist/shared/tool-name.d.ts +0 -1
- package/dist/tools/ast-grep/cli.d.ts +0 -15
- package/dist/tools/ast-grep/constants.d.ts +0 -29
- package/dist/tools/ast-grep/downloader.d.ts +0 -5
- package/dist/tools/ast-grep/index.d.ts +0 -8
- package/dist/tools/ast-grep/napi.d.ts +0 -13
- package/dist/tools/ast-grep/tools.d.ts +0 -3
- package/dist/tools/ast-grep/types.d.ts +0 -58
- package/dist/tools/ast-grep/utils.d.ts +0 -5
- package/dist/tools/background-task/constants.d.ts +0 -3
- package/dist/tools/background-task/index.d.ts +0 -3
- package/dist/tools/background-task/tools.d.ts +0 -7
- package/dist/tools/background-task/types.d.ts +0 -14
- package/dist/tools/call-omo-agent/constants.d.ts +0 -2
- package/dist/tools/call-omo-agent/index.d.ts +0 -3
- package/dist/tools/call-omo-agent/tools.d.ts +0 -3
- package/dist/tools/call-omo-agent/types.d.ts +0 -24
- package/dist/tools/glob/cli.d.ts +0 -7
- package/dist/tools/glob/constants.d.ts +0 -6
- package/dist/tools/glob/index.d.ts +0 -2
- package/dist/tools/glob/tools.d.ts +0 -2
- package/dist/tools/glob/types.d.ts +0 -19
- package/dist/tools/glob/utils.d.ts +0 -2
- package/dist/tools/grep/cli.d.ts +0 -3
- package/dist/tools/grep/constants.d.ts +0 -17
- package/dist/tools/grep/downloader.d.ts +0 -3
- package/dist/tools/grep/downloader.test.d.ts +0 -1
- package/dist/tools/grep/index.d.ts +0 -2
- package/dist/tools/grep/tools.d.ts +0 -2
- package/dist/tools/grep/types.d.ts +0 -36
- package/dist/tools/grep/utils.d.ts +0 -3
- package/dist/tools/index.d.ts +0 -14
- package/dist/tools/interactive-bash/constants.d.ts +0 -3
- package/dist/tools/interactive-bash/index.d.ts +0 -3
- package/dist/tools/interactive-bash/tools.d.ts +0 -7
- package/dist/tools/interactive-bash/types.d.ts +0 -3
- package/dist/tools/interactive-bash/utils.d.ts +0 -3
- package/dist/tools/look-at/constants.d.ts +0 -2
- package/dist/tools/look-at/index.d.ts +0 -3
- package/dist/tools/look-at/tools.d.ts +0 -2
- package/dist/tools/look-at/types.d.ts +0 -4
- package/dist/tools/lsp/client.d.ts +0 -59
- package/dist/tools/lsp/config.d.ts +0 -17
- package/dist/tools/lsp/constants.d.ts +0 -9
- package/dist/tools/lsp/index.d.ts +0 -6
- package/dist/tools/lsp/tools.d.ts +0 -12
- package/dist/tools/lsp/types.d.ts +0 -156
- package/dist/tools/lsp/utils.d.ts +0 -29
- package/dist/tools/session-manager/constants.d.ts +0 -12
- package/dist/tools/session-manager/index.d.ts +0 -3
- package/dist/tools/session-manager/storage.d.ts +0 -12
- package/dist/tools/session-manager/storage.test.d.ts +0 -1
- package/dist/tools/session-manager/tools.d.ts +0 -5
- package/dist/tools/session-manager/tools.test.d.ts +0 -1
- package/dist/tools/session-manager/types.d.ts +0 -89
- package/dist/tools/session-manager/utils.d.ts +0 -11
- package/dist/tools/session-manager/utils.test.d.ts +0 -1
- package/dist/tools/sisyphus-task/constants.d.ts +0 -12
- package/dist/tools/sisyphus-task/index.d.ts +0 -3
- package/dist/tools/sisyphus-task/tools.d.ts +0 -16
- package/dist/tools/sisyphus-task/tools.test.d.ts +0 -1
- package/dist/tools/sisyphus-task/types.d.ts +0 -9
- package/dist/tools/skill/constants.d.ts +0 -3
- package/dist/tools/skill/index.d.ts +0 -3
- package/dist/tools/skill/tools.d.ts +0 -4
- package/dist/tools/skill/tools.test.d.ts +0 -1
- package/dist/tools/skill/types.d.ts +0 -25
- package/dist/tools/skill-mcp/constants.d.ts +0 -2
- package/dist/tools/skill-mcp/index.d.ts +0 -3
- package/dist/tools/skill-mcp/tools.d.ts +0 -11
- package/dist/tools/skill-mcp/tools.test.d.ts +0 -1
- package/dist/tools/skill-mcp/types.d.ts +0 -8
- package/dist/tools/slashcommand/index.d.ts +0 -2
- package/dist/tools/slashcommand/tools.d.ts +0 -5
- package/dist/tools/slashcommand/types.d.ts +0 -24
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
export type ThinkingPartType = "thinking" | "redacted_thinking" | "reasoning";
|
|
2
|
-
export type MetaPartType = "step-start" | "step-finish";
|
|
3
|
-
export type ContentPartType = "text" | "tool" | "tool_use" | "tool_result";
|
|
4
|
-
export interface StoredMessageMeta {
|
|
5
|
-
id: string;
|
|
6
|
-
sessionID: string;
|
|
7
|
-
role: "user" | "assistant";
|
|
8
|
-
parentID?: string;
|
|
9
|
-
time?: {
|
|
10
|
-
created: number;
|
|
11
|
-
completed?: number;
|
|
12
|
-
};
|
|
13
|
-
error?: unknown;
|
|
14
|
-
}
|
|
15
|
-
export interface StoredTextPart {
|
|
16
|
-
id: string;
|
|
17
|
-
sessionID: string;
|
|
18
|
-
messageID: string;
|
|
19
|
-
type: "text";
|
|
20
|
-
text: string;
|
|
21
|
-
synthetic?: boolean;
|
|
22
|
-
ignored?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface StoredToolPart {
|
|
25
|
-
id: string;
|
|
26
|
-
sessionID: string;
|
|
27
|
-
messageID: string;
|
|
28
|
-
type: "tool";
|
|
29
|
-
callID: string;
|
|
30
|
-
tool: string;
|
|
31
|
-
state: {
|
|
32
|
-
status: "pending" | "running" | "completed" | "error";
|
|
33
|
-
input: Record<string, unknown>;
|
|
34
|
-
output?: string;
|
|
35
|
-
error?: string;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export interface StoredReasoningPart {
|
|
39
|
-
id: string;
|
|
40
|
-
sessionID: string;
|
|
41
|
-
messageID: string;
|
|
42
|
-
type: "reasoning";
|
|
43
|
-
text: string;
|
|
44
|
-
}
|
|
45
|
-
export interface StoredStepPart {
|
|
46
|
-
id: string;
|
|
47
|
-
sessionID: string;
|
|
48
|
-
messageID: string;
|
|
49
|
-
type: "step-start" | "step-finish";
|
|
50
|
-
}
|
|
51
|
-
export type StoredPart = StoredTextPart | StoredToolPart | StoredReasoningPart | StoredStepPart | {
|
|
52
|
-
id: string;
|
|
53
|
-
sessionID: string;
|
|
54
|
-
messageID: string;
|
|
55
|
-
type: string;
|
|
56
|
-
[key: string]: unknown;
|
|
57
|
-
};
|
|
58
|
-
export interface MessageData {
|
|
59
|
-
info?: {
|
|
60
|
-
id?: string;
|
|
61
|
-
role?: string;
|
|
62
|
-
sessionID?: string;
|
|
63
|
-
parentID?: string;
|
|
64
|
-
error?: unknown;
|
|
65
|
-
agent?: string;
|
|
66
|
-
model?: {
|
|
67
|
-
providerID: string;
|
|
68
|
-
modelID: string;
|
|
69
|
-
};
|
|
70
|
-
system?: string;
|
|
71
|
-
tools?: Record<string, boolean>;
|
|
72
|
-
};
|
|
73
|
-
parts?: Array<{
|
|
74
|
-
type: string;
|
|
75
|
-
id?: string;
|
|
76
|
-
text?: string;
|
|
77
|
-
thinking?: string;
|
|
78
|
-
name?: string;
|
|
79
|
-
input?: Record<string, unknown>;
|
|
80
|
-
callID?: string;
|
|
81
|
-
}>;
|
|
82
|
-
}
|
|
83
|
-
export interface ResumeConfig {
|
|
84
|
-
sessionID: string;
|
|
85
|
-
agent?: string;
|
|
86
|
-
model?: {
|
|
87
|
-
providerID: string;
|
|
88
|
-
modelID: string;
|
|
89
|
-
};
|
|
90
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
-
export declare const HOOK_NAME = "sisyphus-orchestrator";
|
|
4
|
-
interface ToolExecuteAfterInput {
|
|
5
|
-
tool: string;
|
|
6
|
-
sessionID?: string;
|
|
7
|
-
callID?: string;
|
|
8
|
-
}
|
|
9
|
-
interface ToolExecuteAfterOutput {
|
|
10
|
-
title: string;
|
|
11
|
-
output: string;
|
|
12
|
-
metadata: Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
export interface SisyphusOrchestratorHookOptions {
|
|
15
|
-
directory: string;
|
|
16
|
-
backgroundManager?: BackgroundManager;
|
|
17
|
-
}
|
|
18
|
-
export declare function createSisyphusOrchestratorHook(ctx: PluginInput, options?: SisyphusOrchestratorHookOptions): {
|
|
19
|
-
handler: ({ event }: {
|
|
20
|
-
event: {
|
|
21
|
-
type: string;
|
|
22
|
-
properties?: unknown;
|
|
23
|
-
};
|
|
24
|
-
}) => Promise<void>;
|
|
25
|
-
"tool.execute.before": (input: {
|
|
26
|
-
tool: string;
|
|
27
|
-
sessionID?: string;
|
|
28
|
-
callID?: string;
|
|
29
|
-
}, output: {
|
|
30
|
-
args: Record<string, unknown>;
|
|
31
|
-
message?: string;
|
|
32
|
-
}) => Promise<void>;
|
|
33
|
-
"tool.execute.after": (input: ToolExecuteAfterInput, output: ToolExecuteAfterOutput) => Promise<void>;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
export declare const HOOK_NAME = "start-work";
|
|
3
|
-
interface StartWorkHookInput {
|
|
4
|
-
sessionID: string;
|
|
5
|
-
messageID?: string;
|
|
6
|
-
}
|
|
7
|
-
interface StartWorkHookOutput {
|
|
8
|
-
parts: Array<{
|
|
9
|
-
type: string;
|
|
10
|
-
text?: string;
|
|
11
|
-
}>;
|
|
12
|
-
}
|
|
13
|
-
export declare function createStartWorkHook(ctx: PluginInput): {
|
|
14
|
-
"chat.message": (input: StartWorkHookInput, output: StartWorkHookOutput) => Promise<void>;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const HOOK_NAME = "tdd-enforcement";
|
|
2
|
-
export declare const TDD_PHASES: {
|
|
3
|
-
readonly RED: "red";
|
|
4
|
-
readonly GREEN: "green";
|
|
5
|
-
readonly REFACTOR: "refactor";
|
|
6
|
-
};
|
|
7
|
-
export type TddPhase = typeof TDD_PHASES[keyof typeof TDD_PHASES];
|
|
8
|
-
export declare const TDD_GATE_PROMPTS: {
|
|
9
|
-
RED_REQUIRES_FAILING_TEST: string;
|
|
10
|
-
GREEN_REQUIRES_PASSING_TEST: string;
|
|
11
|
-
REFACTOR_REQUIRES_GREEN_TESTS: string;
|
|
12
|
-
BLOCK_IMPLEMENTATION_NO_TEST: string;
|
|
13
|
-
BLOCK_REFACTOR_TESTS_FAILING: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const IMPLEMENTATION_INDICATORS: string[];
|
|
16
|
-
export declare const TEST_FILE_PATTERNS: string[];
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TDD Enforcement Hook
|
|
3
|
-
*
|
|
4
|
-
* Engine-level TDD gate that enforces RED-GREEN-REFACTOR cycle
|
|
5
|
-
* when maestro.enforceTdd is enabled.
|
|
6
|
-
*/
|
|
7
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
8
|
-
import type { MaestroConfig } from "../../config/schema";
|
|
9
|
-
export * from "./constants";
|
|
10
|
-
interface TddHookInput {
|
|
11
|
-
tool: string;
|
|
12
|
-
sessionID: string;
|
|
13
|
-
callID: string;
|
|
14
|
-
}
|
|
15
|
-
interface TddHookOutput {
|
|
16
|
-
args: Record<string, unknown>;
|
|
17
|
-
message?: string;
|
|
18
|
-
blocked?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function createTddEnforcementHook(ctx: PluginInput, maestroConfig?: MaestroConfig): {
|
|
21
|
-
/**
|
|
22
|
-
* Pre-tool hook to enforce TDD gates
|
|
23
|
-
*/
|
|
24
|
-
"tool.execute.before"?: undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Post-tool hook to track test results
|
|
27
|
-
*/
|
|
28
|
-
"tool.execute.after"?: undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Inject TDD context into agent prompts
|
|
31
|
-
*/
|
|
32
|
-
"agent.prompt.before"?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
/**
|
|
35
|
-
* Pre-tool hook to enforce TDD gates
|
|
36
|
-
*/
|
|
37
|
-
"tool.execute.before": (input: TddHookInput, output: TddHookOutput) => Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Post-tool hook to track test results
|
|
40
|
-
*/
|
|
41
|
-
"tool.execute.after": (input: TddHookInput, output: {
|
|
42
|
-
result?: unknown;
|
|
43
|
-
message?: string;
|
|
44
|
-
}) => Promise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* Inject TDD context into agent prompts
|
|
47
|
-
*/
|
|
48
|
-
"agent.prompt.before": (input: {
|
|
49
|
-
agentName: string;
|
|
50
|
-
sessionID: string;
|
|
51
|
-
}, output: {
|
|
52
|
-
systemPrompt?: string;
|
|
53
|
-
}) => Promise<void>;
|
|
54
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ThinkModeInput } from "./types";
|
|
2
|
-
export * from "./detector";
|
|
3
|
-
export * from "./switcher";
|
|
4
|
-
export * from "./types";
|
|
5
|
-
export declare function clearThinkModeState(sessionID: string): void;
|
|
6
|
-
export declare function createThinkModeHook(): {
|
|
7
|
-
"chat.params": (output: ThinkModeInput, sessionID: string) => Promise<void>;
|
|
8
|
-
event: ({ event }: {
|
|
9
|
-
event: {
|
|
10
|
-
type: string;
|
|
11
|
-
properties?: unknown;
|
|
12
|
-
};
|
|
13
|
-
}) => Promise<void>;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Think Mode Switcher
|
|
3
|
-
*
|
|
4
|
-
* This module handles "thinking mode" activation for reasoning-capable models.
|
|
5
|
-
* When a user includes "think" keywords in their prompt, models are upgraded to
|
|
6
|
-
* their high-reasoning variants with extended thinking budgets.
|
|
7
|
-
*
|
|
8
|
-
* PROVIDER ALIASING:
|
|
9
|
-
* GitHub Copilot acts as a proxy provider that routes to underlying providers
|
|
10
|
-
* (Anthropic, Google, OpenAI). We resolve the proxy to the actual provider
|
|
11
|
-
* based on model name patterns, allowing GitHub Copilot to inherit thinking
|
|
12
|
-
* configurations without duplication.
|
|
13
|
-
*
|
|
14
|
-
* NORMALIZATION:
|
|
15
|
-
* Model IDs are normalized (dots → hyphens in version numbers) to handle API
|
|
16
|
-
* inconsistencies defensively while maintaining backwards compatibility.
|
|
17
|
-
*/
|
|
18
|
-
export declare const THINKING_CONFIGS: {
|
|
19
|
-
readonly anthropic: {
|
|
20
|
-
readonly thinking: {
|
|
21
|
-
readonly type: "enabled";
|
|
22
|
-
readonly budgetTokens: 64000;
|
|
23
|
-
};
|
|
24
|
-
readonly maxTokens: 128000;
|
|
25
|
-
};
|
|
26
|
-
readonly "amazon-bedrock": {
|
|
27
|
-
readonly reasoningConfig: {
|
|
28
|
-
readonly type: "enabled";
|
|
29
|
-
readonly budgetTokens: 32000;
|
|
30
|
-
};
|
|
31
|
-
readonly maxTokens: 64000;
|
|
32
|
-
};
|
|
33
|
-
readonly google: {
|
|
34
|
-
readonly providerOptions: {
|
|
35
|
-
readonly google: {
|
|
36
|
-
readonly thinkingConfig: {
|
|
37
|
-
readonly thinkingLevel: "HIGH";
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
readonly "google-vertex": {
|
|
43
|
-
readonly providerOptions: {
|
|
44
|
-
readonly "google-vertex": {
|
|
45
|
-
readonly thinkingConfig: {
|
|
46
|
-
readonly thinkingLevel: "HIGH";
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
readonly openai: {
|
|
52
|
-
readonly reasoning_effort: "high";
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export declare function getHighVariant(modelID: string): string | null;
|
|
56
|
-
export declare function isAlreadyHighVariant(modelID: string): boolean;
|
|
57
|
-
export declare function getThinkingConfig(providerID: string, modelID: string): Record<string, unknown> | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface ThinkModeState {
|
|
2
|
-
requested: boolean;
|
|
3
|
-
modelSwitched: boolean;
|
|
4
|
-
thinkingConfigInjected: boolean;
|
|
5
|
-
providerID?: string;
|
|
6
|
-
modelID?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ModelRef {
|
|
9
|
-
providerID: string;
|
|
10
|
-
modelID: string;
|
|
11
|
-
}
|
|
12
|
-
export interface MessageWithModel {
|
|
13
|
-
model?: ModelRef;
|
|
14
|
-
}
|
|
15
|
-
export interface ThinkModeInput {
|
|
16
|
-
parts: Array<{
|
|
17
|
-
type: string;
|
|
18
|
-
text?: string;
|
|
19
|
-
}>;
|
|
20
|
-
message: MessageWithModel;
|
|
21
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Proactive Thinking Block Validator Hook
|
|
3
|
-
*
|
|
4
|
-
* Prevents "Expected thinking/redacted_thinking but found tool_use" errors
|
|
5
|
-
* by validating and fixing message structure BEFORE sending to Anthropic API.
|
|
6
|
-
*
|
|
7
|
-
* This hook runs on the "experimental.chat.messages.transform" hook point,
|
|
8
|
-
* which is called before messages are converted to ModelMessage format and
|
|
9
|
-
* sent to the API.
|
|
10
|
-
*
|
|
11
|
-
* Key differences from session-recovery hook:
|
|
12
|
-
* - PROACTIVE (prevents error) vs REACTIVE (fixes after error)
|
|
13
|
-
* - Runs BEFORE API call vs AFTER API error
|
|
14
|
-
* - User never sees the error vs User sees error then recovery
|
|
15
|
-
*/
|
|
16
|
-
import type { Message, Part } from "@opencode-ai/sdk";
|
|
17
|
-
interface MessageWithParts {
|
|
18
|
-
info: Message;
|
|
19
|
-
parts: Part[];
|
|
20
|
-
}
|
|
21
|
-
type MessagesTransformHook = {
|
|
22
|
-
"experimental.chat.messages.transform"?: (input: Record<string, never>, output: {
|
|
23
|
-
messages: MessageWithParts[];
|
|
24
|
-
}) => Promise<void>;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Validate and fix assistant messages that have tool_use but no thinking block
|
|
28
|
-
*/
|
|
29
|
-
export declare function createThinkingBlockValidatorHook(): MessagesTransformHook;
|
|
30
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { BackgroundManager } from "../features/background-agent";
|
|
3
|
-
export interface TodoContinuationEnforcerOptions {
|
|
4
|
-
backgroundManager?: BackgroundManager;
|
|
5
|
-
skipAgents?: string[];
|
|
6
|
-
}
|
|
7
|
-
export interface TodoContinuationEnforcer {
|
|
8
|
-
handler: (input: {
|
|
9
|
-
event: {
|
|
10
|
-
type: string;
|
|
11
|
-
properties?: unknown;
|
|
12
|
-
};
|
|
13
|
-
}) => Promise<void>;
|
|
14
|
-
markRecovering: (sessionID: string) => void;
|
|
15
|
-
markRecoveryComplete: (sessionID: string) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare function createTodoContinuationEnforcer(ctx: PluginInput, options?: TodoContinuationEnforcerOptions): TodoContinuationEnforcer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { ExperimentalConfig } from "../config/schema";
|
|
3
|
-
interface ToolOutputTruncatorOptions {
|
|
4
|
-
experimental?: ExperimentalConfig;
|
|
5
|
-
}
|
|
6
|
-
export declare function createToolOutputTruncatorHook(ctx: PluginInput, options?: ToolOutputTruncatorOptions): {
|
|
7
|
-
"tool.execute.after": (input: {
|
|
8
|
-
tool: string;
|
|
9
|
-
sessionID: string;
|
|
10
|
-
callID: string;
|
|
11
|
-
}, output: {
|
|
12
|
-
title: string;
|
|
13
|
-
output: string;
|
|
14
|
-
metadata: unknown;
|
|
15
|
-
}) => Promise<void>;
|
|
16
|
-
};
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from "@opencode-ai/plugin";
|
|
2
|
-
declare const OhMyOpenCodePlugin: Plugin;
|
|
3
|
-
export default OhMyOpenCodePlugin;
|
|
4
|
-
export type { OhMyOpenCodeConfig, AgentName, AgentOverrideConfig, AgentOverrides, McpName, HookName, BuiltinCommandName, } from "./config";
|
|
5
|
-
export type { ConfigLoadError } from "./shared/config-errors";
|
package/dist/mcp/context7.d.ts
DELETED
package/dist/mcp/grep-app.d.ts
DELETED
package/dist/mcp/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { McpNameSchema, type McpName } from "./types";
|
|
2
|
-
type RemoteMcpConfig = {
|
|
3
|
-
type: "remote";
|
|
4
|
-
url: string;
|
|
5
|
-
enabled: boolean;
|
|
6
|
-
headers?: Record<string, string>;
|
|
7
|
-
};
|
|
8
|
-
export declare function createBuiltinMcps(disabledMcps?: string[]): Record<string, RemoteMcpConfig>;
|
package/dist/mcp/index.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/mcp/types.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const McpNameSchema: z.ZodEnum<{
|
|
3
|
-
websearch: "websearch";
|
|
4
|
-
context7: "context7";
|
|
5
|
-
grep_app: "grep_app";
|
|
6
|
-
}>;
|
|
7
|
-
export type McpName = z.infer<typeof McpNameSchema>;
|
|
8
|
-
export declare const AnyMcpNameSchema: z.ZodString;
|
|
9
|
-
export type AnyMcpName = z.infer<typeof AnyMcpNameSchema>;
|
package/dist/mcp/websearch.d.ts
DELETED
package/dist/plugin-config.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type OhMyOpenCodeConfig } from "./config";
|
|
2
|
-
export declare function loadConfigFromPath(configPath: string, ctx: unknown): OhMyOpenCodeConfig | null;
|
|
3
|
-
export declare function mergeConfigs(base: OhMyOpenCodeConfig, override: OhMyOpenCodeConfig): OhMyOpenCodeConfig;
|
|
4
|
-
export declare function loadPluginConfig(directory: string, ctx: unknown): OhMyOpenCodeConfig;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { OhMyOpenCodeConfig } from "../config";
|
|
2
|
-
import type { ModelCacheState } from "../plugin-state";
|
|
3
|
-
export interface ConfigHandlerDeps {
|
|
4
|
-
ctx: {
|
|
5
|
-
directory: string;
|
|
6
|
-
};
|
|
7
|
-
pluginConfig: OhMyOpenCodeConfig;
|
|
8
|
-
modelCacheState: ModelCacheState;
|
|
9
|
-
}
|
|
10
|
-
export declare function createConfigHandler(deps: ConfigHandlerDeps): (config: Record<string, unknown>) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createConfigHandler, type ConfigHandlerDeps } from "./config-handler";
|
package/dist/plugin-state.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export interface ModelCacheState {
|
|
2
|
-
modelContextLimitsCache: Map<string, number>;
|
|
3
|
-
anthropicContext1MEnabled: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare function createModelCacheState(): ModelCacheState;
|
|
6
|
-
export declare function getModelLimit(state: ModelCacheState, providerID: string, modelID: string): number | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getClaudeConfigDir(): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface CommandResult {
|
|
2
|
-
exitCode: number;
|
|
3
|
-
stdout?: string;
|
|
4
|
-
stderr?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ExecuteHookOptions {
|
|
7
|
-
forceZsh?: boolean;
|
|
8
|
-
zshPath?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Execute a hook command with stdin input
|
|
12
|
-
*/
|
|
13
|
-
export declare function executeHookCommand(command: string, stdin: string, cwd: string, options?: ExecuteHookOptions): Promise<CommandResult>;
|
|
14
|
-
/**
|
|
15
|
-
* Execute a simple command and return output
|
|
16
|
-
*/
|
|
17
|
-
export declare function executeCommand(command: string): Promise<string>;
|
|
18
|
-
/**
|
|
19
|
-
* Resolve embedded commands in text recursively
|
|
20
|
-
*/
|
|
21
|
-
export declare function resolveCommandsInText(text: string, depth?: number, maxDepth?: number): Promise<string>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type ConfigLoadError = {
|
|
2
|
-
path: string;
|
|
3
|
-
error: string;
|
|
4
|
-
};
|
|
5
|
-
export declare function getConfigLoadErrors(): ConfigLoadError[];
|
|
6
|
-
export declare function clearConfigLoadErrors(): void;
|
|
7
|
-
export declare function addConfigLoadError(error: ConfigLoadError): void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the user-level config directory based on the OS.
|
|
3
|
-
* - Linux/macOS: XDG_CONFIG_HOME or ~/.config
|
|
4
|
-
* - Windows: Checks ~/.config first (cross-platform), then %APPDATA% (fallback)
|
|
5
|
-
*
|
|
6
|
-
* On Windows, prioritizes ~/.config for cross-platform consistency.
|
|
7
|
-
* Falls back to %APPDATA% for backward compatibility with existing installations.
|
|
8
|
-
*/
|
|
9
|
-
export declare function getUserConfigDir(): string;
|
|
10
|
-
/**
|
|
11
|
-
* Returns the full path to the user-level oh-my-opencode config file.
|
|
12
|
-
*/
|
|
13
|
-
export declare function getUserConfigPath(): string;
|
|
14
|
-
/**
|
|
15
|
-
* Returns the full path to the project-level oh-my-opencode config file.
|
|
16
|
-
*/
|
|
17
|
-
export declare function getProjectConfigPath(directory: string): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the user-level data directory.
|
|
3
|
-
* Matches OpenCode's behavior via xdg-basedir:
|
|
4
|
-
* - All platforms: XDG_DATA_HOME or ~/.local/share
|
|
5
|
-
*
|
|
6
|
-
* Note: OpenCode uses xdg-basedir which returns ~/.local/share on ALL platforms
|
|
7
|
-
* including Windows, so we match that behavior exactly.
|
|
8
|
-
*/
|
|
9
|
-
export declare function getDataDir(): string;
|
|
10
|
-
/**
|
|
11
|
-
* Returns the OpenCode storage directory path.
|
|
12
|
-
* All platforms: ~/.local/share/opencode/storage
|
|
13
|
-
*/
|
|
14
|
-
export declare function getOpenCodeStorageDir(): string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
|
|
2
|
-
/**
|
|
3
|
-
* Deep merges two objects, with override values taking precedence.
|
|
4
|
-
* - Objects are recursively merged
|
|
5
|
-
* - Arrays are replaced (not concatenated)
|
|
6
|
-
* - undefined values in override do not overwrite base values
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* deepMerge({ a: 1, b: { c: 2, d: 3 } }, { b: { c: 10 }, e: 5 })
|
|
10
|
-
* // => { a: 1, b: { c: 10, d: 3 }, e: 5 }
|
|
11
|
-
*/
|
|
12
|
-
export declare function deepMerge<T extends Record<string, unknown>>(base: T, override: Partial<T>, depth?: number): T;
|
|
13
|
-
export declare function deepMerge<T extends Record<string, unknown>>(base: T | undefined, override: T | undefined, depth?: number): T | undefined;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
export interface TruncationResult {
|
|
3
|
-
result: string;
|
|
4
|
-
truncated: boolean;
|
|
5
|
-
removedCount?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface TruncationOptions {
|
|
8
|
-
targetMaxTokens?: number;
|
|
9
|
-
preserveHeaderLines?: number;
|
|
10
|
-
contextWindowLimit?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function truncateToTokenLimit(output: string, maxTokens: number, preserveHeaderLines?: number): TruncationResult;
|
|
13
|
-
export declare function getContextWindowUsage(ctx: PluginInput, sessionID: string): Promise<{
|
|
14
|
-
usedTokens: number;
|
|
15
|
-
remainingTokens: number;
|
|
16
|
-
usagePercentage: number;
|
|
17
|
-
} | null>;
|
|
18
|
-
export declare function dynamicTruncate(ctx: PluginInput, sessionID: string, output: string, options?: TruncationOptions): Promise<TruncationResult>;
|
|
19
|
-
export declare function createDynamicTruncator(ctx: PluginInput): {
|
|
20
|
-
truncate: (sessionID: string, output: string, options?: TruncationOptions) => Promise<TruncationResult>;
|
|
21
|
-
getUsage: (sessionID: string) => Promise<{
|
|
22
|
-
usedTokens: number;
|
|
23
|
-
remainingTokens: number;
|
|
24
|
-
usagePercentage: number;
|
|
25
|
-
} | null>;
|
|
26
|
-
truncateSync: (output: string, maxTokens: number, preserveHeaderLines?: number) => TruncationResult;
|
|
27
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detects external plugins that may conflict with oh-my-opencode features.
|
|
3
|
-
* Used to prevent crashes from concurrent notification plugins.
|
|
4
|
-
*/
|
|
5
|
-
export interface ExternalNotifierResult {
|
|
6
|
-
detected: boolean;
|
|
7
|
-
pluginName: string | null;
|
|
8
|
-
allPlugins: string[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Detect if any external notification plugin is configured.
|
|
12
|
-
* Returns information about detected plugins for logging/warning.
|
|
13
|
-
*/
|
|
14
|
-
export declare function detectExternalNotificationPlugin(directory: string): ExternalNotifierResult;
|
|
15
|
-
/**
|
|
16
|
-
* Generate a warning message for users with conflicting notification plugins.
|
|
17
|
-
*/
|
|
18
|
-
export declare function getNotificationConflictWarning(pluginName: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function resolveFileReferencesInText(text: string, cwd?: string, depth?: number, maxDepth?: number): Promise<string>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function isMarkdownFile(entry: {
|
|
2
|
-
name: string;
|
|
3
|
-
isFile: () => boolean;
|
|
4
|
-
}): boolean;
|
|
5
|
-
export declare function isSymbolicLink(filePath: string): boolean;
|
|
6
|
-
export declare function resolveSymlink(filePath: string): string;
|
|
7
|
-
export declare function resolveSymlinkAsync(filePath: string): Promise<string>;
|