homer-simpson 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +82 -0
- package/README.ja.md +1107 -0
- package/README.md +1274 -0
- package/README.zh-cn.md +1107 -0
- package/dist/agents/architect.d.ts +5 -0
- package/dist/agents/bart.d.ts +3 -0
- package/dist/agents/build-prompt.d.ts +31 -0
- package/dist/agents/comic-book-guy.d.ts +5 -0
- package/dist/agents/consultant.d.ts +19 -0
- package/dist/agents/designer.d.ts +5 -0
- package/dist/agents/edna.d.ts +5 -0
- package/dist/agents/explorer.d.ts +5 -0
- package/dist/agents/grandpa.d.ts +6 -0
- package/dist/agents/homer-prompt-builder.d.ts +26 -0
- package/dist/agents/homer.d.ts +4 -0
- package/dist/agents/index.d.ts +5 -0
- package/dist/agents/lisa.d.ts +5 -0
- package/dist/agents/milhouse.d.ts +5 -0
- package/dist/agents/orchestrator.d.ts +20 -0
- package/dist/agents/plan-prompt.d.ts +64 -0
- package/dist/agents/prometheus-prompt.d.ts +27 -0
- package/dist/agents/researcher.d.ts +5 -0
- package/dist/agents/reviewer.d.ts +6 -0
- package/dist/agents/santas-little-helper.d.ts +5 -0
- package/dist/agents/types.d.ts +49 -0
- package/dist/agents/utils.d.ts +13 -0
- package/dist/agents/utils.test.d.ts +1 -0
- package/dist/agents/viewer.d.ts +5 -0
- package/dist/agents/writer.d.ts +5 -0
- package/dist/auth/antigravity/accounts.d.ts +40 -0
- package/dist/auth/antigravity/accounts.test.d.ts +1 -0
- package/dist/auth/antigravity/browser.d.ts +27 -0
- package/dist/auth/antigravity/browser.test.d.ts +1 -0
- package/dist/auth/antigravity/cli.d.ts +2 -0
- package/dist/auth/antigravity/cli.test.d.ts +1 -0
- package/dist/auth/antigravity/constants.d.ts +98 -0
- package/dist/auth/antigravity/constants.test.d.ts +1 -0
- package/dist/auth/antigravity/fetch.d.ts +69 -0
- package/dist/auth/antigravity/index.d.ts +13 -0
- package/dist/auth/antigravity/integration.test.d.ts +10 -0
- package/dist/auth/antigravity/message-converter.d.ts +54 -0
- package/dist/auth/antigravity/oauth.d.ts +51 -0
- package/dist/auth/antigravity/oauth.test.d.ts +1 -0
- package/dist/auth/antigravity/plugin.d.ts +54 -0
- package/dist/auth/antigravity/project.d.ts +10 -0
- package/dist/auth/antigravity/request.d.ts +116 -0
- package/dist/auth/antigravity/request.test.d.ts +1 -0
- package/dist/auth/antigravity/response.d.ts +137 -0
- package/dist/auth/antigravity/storage.d.ts +5 -0
- package/dist/auth/antigravity/storage.test.d.ts +1 -0
- package/dist/auth/antigravity/thinking.d.ts +278 -0
- package/dist/auth/antigravity/thinking.test.d.ts +10 -0
- package/dist/auth/antigravity/thought-signature-store.d.ts +52 -0
- package/dist/auth/antigravity/token.d.ts +38 -0
- package/dist/auth/antigravity/token.test.d.ts +1 -0
- package/dist/auth/antigravity/tools.d.ts +119 -0
- package/dist/auth/antigravity/types.d.ts +229 -0
- package/dist/cli/commands/auth.d.ts +2 -0
- package/dist/cli/config-manager.d.ts +91 -0
- package/dist/cli/config-manager.test.d.ts +1 -0
- package/dist/cli/doctor/checks/auth.d.ts +7 -0
- package/dist/cli/doctor/checks/auth.test.d.ts +1 -0
- package/dist/cli/doctor/checks/config.d.ts +8 -0
- package/dist/cli/doctor/checks/config.test.d.ts +1 -0
- package/dist/cli/doctor/checks/dependencies.d.ts +8 -0
- package/dist/cli/doctor/checks/dependencies.test.d.ts +1 -0
- package/dist/cli/doctor/checks/gh.d.ts +13 -0
- package/dist/cli/doctor/checks/gh.test.d.ts +1 -0
- package/dist/cli/doctor/checks/index.d.ts +11 -0
- package/dist/cli/doctor/checks/lsp.d.ts +8 -0
- package/dist/cli/doctor/checks/lsp.test.d.ts +1 -0
- package/dist/cli/doctor/checks/mcp.d.ts +6 -0
- package/dist/cli/doctor/checks/mcp.test.d.ts +1 -0
- package/dist/cli/doctor/checks/opencode.d.ts +10 -0
- package/dist/cli/doctor/checks/opencode.test.d.ts +1 -0
- package/dist/cli/doctor/checks/plugin.d.ts +4 -0
- package/dist/cli/doctor/checks/plugin.test.d.ts +1 -0
- package/dist/cli/doctor/checks/version.d.ts +4 -0
- package/dist/cli/doctor/checks/version.test.d.ts +1 -0
- package/dist/cli/doctor/constants.d.ts +40 -0
- package/dist/cli/doctor/formatter.d.ts +12 -0
- package/dist/cli/doctor/formatter.test.d.ts +1 -0
- package/dist/cli/doctor/index.d.ts +5 -0
- package/dist/cli/doctor/runner.d.ts +7 -0
- package/dist/cli/doctor/runner.test.d.ts +1 -0
- package/dist/cli/doctor/types.d.ts +91 -0
- package/dist/cli/get-local-version/formatter.d.ts +3 -0
- package/dist/cli/get-local-version/index.d.ts +3 -0
- package/dist/cli/get-local-version/types.d.ts +13 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +23631 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/run/completion.d.ts +2 -0
- package/dist/cli/run/completion.test.d.ts +1 -0
- package/dist/cli/run/events.d.ts +11 -0
- package/dist/cli/run/events.test.d.ts +1 -0
- package/dist/cli/run/index.d.ts +2 -0
- package/dist/cli/run/runner.d.ts +2 -0
- package/dist/cli/run/types.d.ts +71 -0
- package/dist/cli/types.d.ts +27 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/presets.d.ts +89 -0
- package/dist/config/schema.d.ts +1952 -0
- package/dist/config/schema.test.d.ts +1 -0
- package/dist/features/background-agent/concurrency.d.ts +10 -0
- package/dist/features/background-agent/concurrency.test.d.ts +1 -0
- package/dist/features/background-agent/index.d.ts +3 -0
- package/dist/features/background-agent/manager.d.ts +70 -0
- package/dist/features/background-agent/manager.test.d.ts +1 -0
- package/dist/features/background-agent/types.d.ts +68 -0
- package/dist/features/builtin-commands/commands.d.ts +2 -0
- package/dist/features/builtin-commands/index.d.ts +2 -0
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
- package/dist/features/builtin-commands/templates/ralph-loop.d.ts +2 -0
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +6 -0
- package/dist/features/builtin-skills/index.d.ts +2 -0
- package/dist/features/builtin-skills/skills.d.ts +2 -0
- package/dist/features/builtin-skills/types.d.ts +15 -0
- package/dist/features/claude-code-agent-loader/index.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +3 -0
- package/dist/features/claude-code-agent-loader/types.d.ts +14 -0
- package/dist/features/claude-code-command-loader/index.d.ts +2 -0
- package/dist/features/claude-code-command-loader/loader.d.ts +6 -0
- package/dist/features/claude-code-command-loader/types.d.ts +42 -0
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/index.d.ts +10 -0
- package/dist/features/claude-code-mcp-loader/loader.d.ts +4 -0
- package/dist/features/claude-code-mcp-loader/loader.test.d.ts +1 -0
- package/dist/features/claude-code-mcp-loader/transformer.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/types.d.ts +35 -0
- package/dist/features/claude-code-plugin-loader/index.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/loader.d.ts +20 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +186 -0
- package/dist/features/claude-code-session-state/index.d.ts +1 -0
- package/dist/features/claude-code-session-state/state.d.ts +4 -0
- package/dist/features/context-injector/collector.d.ts +11 -0
- package/dist/features/context-injector/collector.test.d.ts +1 -0
- package/dist/features/context-injector/index.d.ts +3 -0
- package/dist/features/context-injector/injector.d.ts +39 -0
- package/dist/features/context-injector/injector.test.d.ts +1 -0
- package/dist/features/context-injector/types.d.ts +83 -0
- package/dist/features/donut-state/constants.d.ts +10 -0
- package/dist/features/donut-state/index.d.ts +3 -0
- package/dist/features/donut-state/storage.d.ts +28 -0
- package/dist/features/donut-state/storage.test.d.ts +1 -0
- package/dist/features/donut-state/types.d.ts +24 -0
- package/dist/features/hook-message-injector/constants.d.ts +3 -0
- package/dist/features/hook-message-injector/index.d.ts +4 -0
- package/dist/features/hook-message-injector/injector.d.ts +11 -0
- package/dist/features/hook-message-injector/types.d.ts +44 -0
- package/dist/features/opencode-skill-loader/async-loader.d.ts +6 -0
- package/dist/features/opencode-skill-loader/async-loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/blocking.d.ts +2 -0
- package/dist/features/opencode-skill-loader/blocking.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/discover-worker.d.ts +1 -0
- package/dist/features/opencode-skill-loader/index.d.ts +4 -0
- package/dist/features/opencode-skill-loader/loader.d.ts +16 -0
- package/dist/features/opencode-skill-loader/loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/merger.d.ts +7 -0
- package/dist/features/opencode-skill-loader/skill-content.d.ts +5 -0
- package/dist/features/opencode-skill-loader/skill-content.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/types.d.ts +34 -0
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
- package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/index.d.ts +2 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +29 -0
- package/dist/features/skill-mcp-manager/manager.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/types.d.ts +11 -0
- package/dist/features/task-toast-manager/index.d.ts +2 -0
- package/dist/features/task-toast-manager/manager.d.ts +56 -0
- package/dist/features/task-toast-manager/manager.test.d.ts +1 -0
- package/dist/features/task-toast-manager/types.d.ts +16 -0
- package/dist/google-auth.d.ts +3 -0
- package/dist/google-auth.js +3871 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts +5 -0
- package/dist/hooks/agent-usage-reminder/index.d.ts +22 -0
- package/dist/hooks/agent-usage-reminder/storage.d.ts +4 -0
- package/dist/hooks/agent-usage-reminder/types.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +4 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +17 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/parser.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +7 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-executor.d.ts +3 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-purge-errors.d.ts +7 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-storage.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-supersede.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +36 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +28 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +42 -0
- package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
- package/dist/hooks/auto-slash-command/detector.d.ts +9 -0
- package/dist/hooks/auto-slash-command/detector.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/executor.d.ts +11 -0
- package/dist/hooks/auto-slash-command/index.d.ts +12 -0
- package/dist/hooks/auto-slash-command/index.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/types.d.ts +27 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +3 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +20 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +13 -0
- package/dist/hooks/auto-update-checker/index.d.ts +16 -0
- package/dist/hooks/auto-update-checker/index.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/types.d.ts +25 -0
- package/dist/hooks/background-compaction/index.d.ts +19 -0
- package/dist/hooks/background-notification/index.d.ts +18 -0
- package/dist/hooks/background-notification/types.d.ts +4 -0
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +13 -0
- package/dist/hooks/claude-code-hooks/config.d.ts +3 -0
- package/dist/hooks/claude-code-hooks/index.d.ts +48 -0
- package/dist/hooks/claude-code-hooks/plugin-config.d.ts +8 -0
- package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +40 -0
- package/dist/hooks/claude-code-hooks/pre-compact.d.ts +16 -0
- package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +25 -0
- package/dist/hooks/claude-code-hooks/stop.d.ts +20 -0
- package/dist/hooks/claude-code-hooks/todo.d.ts +12 -0
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +5 -0
- package/dist/hooks/claude-code-hooks/transcript.d.ts +38 -0
- package/dist/hooks/claude-code-hooks/types.d.ts +183 -0
- package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +22 -0
- package/dist/hooks/comment-checker/cli.d.ts +53 -0
- package/dist/hooks/comment-checker/constants.d.ts +3 -0
- package/dist/hooks/comment-checker/downloader.d.ts +25 -0
- package/dist/hooks/comment-checker/filters/bdd.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/directive.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/docstring.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/index.d.ts +7 -0
- package/dist/hooks/comment-checker/filters/shebang.d.ts +2 -0
- package/dist/hooks/comment-checker/index.d.ts +19 -0
- package/dist/hooks/comment-checker/output/formatter.d.ts +2 -0
- package/dist/hooks/comment-checker/output/index.d.ts +2 -0
- package/dist/hooks/comment-checker/output/xml-builder.d.ts +2 -0
- package/dist/hooks/comment-checker/types.d.ts +31 -0
- package/dist/hooks/compaction-context-injector/index.d.ts +2 -0
- package/dist/hooks/context-window-monitor.d.ts +18 -0
- package/dist/hooks/directory-agents-injector/constants.d.ts +3 -0
- package/dist/hooks/directory-agents-injector/index.d.ts +26 -0
- package/dist/hooks/directory-agents-injector/storage.d.ts +3 -0
- package/dist/hooks/directory-agents-injector/types.d.ts +5 -0
- package/dist/hooks/directory-readme-injector/constants.d.ts +3 -0
- package/dist/hooks/directory-readme-injector/index.d.ts +26 -0
- package/dist/hooks/directory-readme-injector/storage.d.ts +3 -0
- package/dist/hooks/directory-readme-injector/types.d.ts +5 -0
- package/dist/hooks/edit-error-recovery/index.d.ts +31 -0
- package/dist/hooks/edit-error-recovery/index.test.d.ts +1 -0
- package/dist/hooks/empty-message-sanitizer/index.d.ts +12 -0
- package/dist/hooks/empty-task-response-detector.d.ts +12 -0
- package/dist/hooks/homer-orchestrator/index.d.ts +35 -0
- package/dist/hooks/homer-orchestrator/index.test.d.ts +1 -0
- package/dist/hooks/index.d.ts +32 -0
- package/dist/hooks/interactive-bash-session/constants.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/index.d.ts +23 -0
- package/dist/hooks/interactive-bash-session/storage.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/types.d.ts +10 -0
- package/dist/hooks/keyword-detector/constants.d.ts +12 -0
- package/dist/hooks/keyword-detector/detector.d.ts +11 -0
- package/dist/hooks/keyword-detector/index.d.ts +31 -0
- package/dist/hooks/keyword-detector/index.test.d.ts +1 -0
- package/dist/hooks/keyword-detector/types.d.ts +4 -0
- package/dist/hooks/non-interactive-env/constants.d.ts +34 -0
- package/dist/hooks/non-interactive-env/detector.d.ts +1 -0
- package/dist/hooks/non-interactive-env/index.d.ts +14 -0
- package/dist/hooks/non-interactive-env/index.test.d.ts +1 -0
- package/dist/hooks/non-interactive-env/types.d.ts +3 -0
- package/dist/hooks/preemptive-compaction/constants.d.ts +3 -0
- package/dist/hooks/preemptive-compaction/index.d.ts +24 -0
- package/dist/hooks/preemptive-compaction/types.d.ts +17 -0
- package/dist/hooks/prometheus-md-only/constants.d.ts +6 -0
- package/dist/hooks/prometheus-md-only/index.d.ts +12 -0
- package/dist/hooks/prometheus-md-only/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/constants.d.ts +5 -0
- package/dist/hooks/ralph-loop/index.d.ts +20 -0
- package/dist/hooks/ralph-loop/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/storage.d.ts +6 -0
- package/dist/hooks/ralph-loop/types.d.ts +16 -0
- package/dist/hooks/rules-injector/constants.d.ts +8 -0
- package/dist/hooks/rules-injector/finder.d.ts +33 -0
- package/dist/hooks/rules-injector/finder.test.d.ts +1 -0
- package/dist/hooks/rules-injector/index.d.ts +26 -0
- package/dist/hooks/rules-injector/matcher.d.ts +21 -0
- package/dist/hooks/rules-injector/parser.d.ts +18 -0
- package/dist/hooks/rules-injector/parser.test.d.ts +1 -0
- package/dist/hooks/rules-injector/storage.d.ts +9 -0
- package/dist/hooks/rules-injector/types.d.ts +54 -0
- package/dist/hooks/session-notification-utils.d.ts +9 -0
- package/dist/hooks/session-notification.d.ts +20 -0
- package/dist/hooks/session-notification.test.d.ts +1 -0
- package/dist/hooks/session-recovery/constants.d.ts +6 -0
- package/dist/hooks/session-recovery/index.d.ts +22 -0
- package/dist/hooks/session-recovery/index.test.d.ts +1 -0
- package/dist/hooks/session-recovery/storage.d.ts +19 -0
- package/dist/hooks/session-recovery/types.d.ts +90 -0
- package/dist/hooks/start-work/index.d.ts +16 -0
- package/dist/hooks/start-work/index.test.d.ts +1 -0
- package/dist/hooks/status-recorder/index.d.ts +51 -0
- package/dist/hooks/task-resume-info/index.d.ts +11 -0
- package/dist/hooks/think-mode/detector.d.ts +5 -0
- package/dist/hooks/think-mode/index.d.ts +14 -0
- package/dist/hooks/think-mode/index.test.d.ts +1 -0
- package/dist/hooks/think-mode/switcher.d.ts +57 -0
- package/dist/hooks/think-mode/switcher.test.d.ts +1 -0
- package/dist/hooks/think-mode/types.d.ts +21 -0
- package/dist/hooks/thinking-block-validator/index.d.ts +30 -0
- package/dist/hooks/todo-continuation-enforcer.d.ts +17 -0
- package/dist/hooks/todo-continuation-enforcer.test.d.ts +1 -0
- package/dist/hooks/tool-output-truncator.d.ts +17 -0
- package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +57170 -0
- package/dist/mcp/context7.d.ts +5 -0
- package/dist/mcp/grep-app.d.ts +5 -0
- package/dist/mcp/index.d.ts +8 -0
- package/dist/mcp/index.test.d.ts +1 -0
- package/dist/mcp/types.d.ts +9 -0
- package/dist/mcp/websearch.d.ts +8 -0
- package/dist/plugin-config.d.ts +4 -0
- package/dist/plugin-handlers/config-handler.d.ts +10 -0
- package/dist/plugin-handlers/index.d.ts +1 -0
- package/dist/plugin-state.d.ts +6 -0
- package/dist/shared/agent-display.d.ts +43 -0
- package/dist/shared/agent-display.test.d.ts +1 -0
- package/dist/shared/claude-config-dir.d.ts +1 -0
- package/dist/shared/claude-config-dir.test.d.ts +1 -0
- package/dist/shared/command-executor.d.ts +21 -0
- package/dist/shared/config-errors.d.ts +7 -0
- package/dist/shared/config-path.d.ts +17 -0
- package/dist/shared/data-path.d.ts +14 -0
- package/dist/shared/deep-merge.d.ts +13 -0
- package/dist/shared/dynamic-truncator.d.ts +27 -0
- package/dist/shared/external-plugin-detector.d.ts +18 -0
- package/dist/shared/external-plugin-detector.test.d.ts +1 -0
- package/dist/shared/file-reference-resolver.d.ts +1 -0
- package/dist/shared/file-utils.d.ts +7 -0
- package/dist/shared/frontmatter.d.ts +7 -0
- package/dist/shared/frontmatter.test.d.ts +1 -0
- package/dist/shared/hook-disabled.d.ts +2 -0
- package/dist/shared/index.d.ts +24 -0
- package/dist/shared/jsonc-parser.d.ts +15 -0
- package/dist/shared/jsonc-parser.test.d.ts +1 -0
- package/dist/shared/logger.d.ts +2 -0
- package/dist/shared/messages.d.ts +33 -0
- package/dist/shared/messages.test.d.ts +1 -0
- package/dist/shared/migration.d.ts +17 -0
- package/dist/shared/migration.test.d.ts +1 -0
- package/dist/shared/model-sanitizer.d.ts +3 -0
- package/dist/shared/opencode-config-dir.d.ts +19 -0
- package/dist/shared/opencode-config-dir.test.d.ts +1 -0
- package/dist/shared/opencode-version.d.ts +10 -0
- package/dist/shared/opencode-version.test.d.ts +1 -0
- package/dist/shared/pattern-matcher.d.ts +3 -0
- package/dist/shared/permission-compat.d.ts +12 -0
- package/dist/shared/permission-compat.test.d.ts +1 -0
- package/dist/shared/snake-case.d.ts +4 -0
- package/dist/shared/tool-name.d.ts +1 -0
- package/dist/tools/ast-grep/cli.d.ts +15 -0
- package/dist/tools/ast-grep/constants.d.ts +29 -0
- package/dist/tools/ast-grep/downloader.d.ts +5 -0
- package/dist/tools/ast-grep/index.d.ts +8 -0
- package/dist/tools/ast-grep/napi.d.ts +13 -0
- package/dist/tools/ast-grep/tools.d.ts +3 -0
- package/dist/tools/ast-grep/types.d.ts +58 -0
- package/dist/tools/ast-grep/utils.d.ts +5 -0
- package/dist/tools/background-task/constants.d.ts +3 -0
- package/dist/tools/background-task/index.d.ts +3 -0
- package/dist/tools/background-task/tools.d.ts +7 -0
- package/dist/tools/background-task/types.d.ts +14 -0
- package/dist/tools/call-homer-agent/constants.d.ts +2 -0
- package/dist/tools/call-homer-agent/index.d.ts +3 -0
- package/dist/tools/call-homer-agent/tools.d.ts +3 -0
- package/dist/tools/call-homer-agent/types.d.ts +24 -0
- package/dist/tools/glob/cli.d.ts +7 -0
- package/dist/tools/glob/constants.d.ts +6 -0
- package/dist/tools/glob/index.d.ts +2 -0
- package/dist/tools/glob/tools.d.ts +2 -0
- package/dist/tools/glob/types.d.ts +19 -0
- package/dist/tools/glob/utils.d.ts +2 -0
- package/dist/tools/grep/cli.d.ts +3 -0
- package/dist/tools/grep/constants.d.ts +17 -0
- package/dist/tools/grep/downloader.d.ts +3 -0
- package/dist/tools/grep/downloader.test.d.ts +1 -0
- package/dist/tools/grep/index.d.ts +2 -0
- package/dist/tools/grep/tools.d.ts +2 -0
- package/dist/tools/grep/types.d.ts +36 -0
- package/dist/tools/grep/utils.d.ts +3 -0
- package/dist/tools/homer-task/constants.d.ts +12 -0
- package/dist/tools/homer-task/index.d.ts +3 -0
- package/dist/tools/homer-task/tools.d.ts +16 -0
- package/dist/tools/homer-task/tools.test.d.ts +1 -0
- package/dist/tools/homer-task/types.d.ts +9 -0
- package/dist/tools/index.d.ts +16 -0
- package/dist/tools/interactive-bash/constants.d.ts +3 -0
- package/dist/tools/interactive-bash/index.d.ts +3 -0
- package/dist/tools/interactive-bash/tools.d.ts +7 -0
- package/dist/tools/interactive-bash/types.d.ts +3 -0
- package/dist/tools/interactive-bash/utils.d.ts +3 -0
- package/dist/tools/look-at/constants.d.ts +2 -0
- package/dist/tools/look-at/index.d.ts +3 -0
- package/dist/tools/look-at/tools.d.ts +2 -0
- package/dist/tools/look-at/types.d.ts +4 -0
- package/dist/tools/lsp/client.d.ts +60 -0
- package/dist/tools/lsp/config.d.ts +17 -0
- package/dist/tools/lsp/constants.d.ts +9 -0
- package/dist/tools/lsp/index.d.ts +6 -0
- package/dist/tools/lsp/tools.d.ts +12 -0
- package/dist/tools/lsp/types.d.ts +156 -0
- package/dist/tools/lsp/utils.d.ts +29 -0
- package/dist/tools/session-manager/constants.d.ts +12 -0
- package/dist/tools/session-manager/index.d.ts +3 -0
- package/dist/tools/session-manager/storage.d.ts +12 -0
- package/dist/tools/session-manager/storage.test.d.ts +1 -0
- package/dist/tools/session-manager/tools.d.ts +5 -0
- package/dist/tools/session-manager/tools.test.d.ts +1 -0
- package/dist/tools/session-manager/types.d.ts +89 -0
- package/dist/tools/session-manager/utils.d.ts +11 -0
- package/dist/tools/session-manager/utils.test.d.ts +1 -0
- package/dist/tools/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/tools.test.d.ts +1 -0
- package/dist/tools/skill/types.d.ts +25 -0
- package/dist/tools/skill-mcp/constants.d.ts +2 -0
- package/dist/tools/skill-mcp/index.d.ts +3 -0
- package/dist/tools/skill-mcp/tools.d.ts +11 -0
- package/dist/tools/skill-mcp/tools.test.d.ts +1 -0
- package/dist/tools/skill-mcp/types.d.ts +8 -0
- package/dist/tools/slashcommand/index.d.ts +2 -0
- package/dist/tools/slashcommand/tools.d.ts +5 -0
- package/dist/tools/slashcommand/types.d.ts +24 -0
- package/dist/tools/spec-system/clarity-checker.d.ts +23 -0
- package/dist/tools/spec-system/clarity-checker.test.d.ts +1 -0
- package/dist/tools/spec-system/index.d.ts +9 -0
- package/dist/tools/spec-system/scenario-builder.d.ts +56 -0
- package/dist/tools/spec-system/spec-file-manager.d.ts +59 -0
- package/dist/tools/spec-system/types.d.ts +92 -0
- package/dist/tools/status-recorder/attempt-tracker.d.ts +98 -0
- package/dist/tools/status-recorder/failure-analyzer.d.ts +48 -0
- package/dist/tools/status-recorder/index.d.ts +7 -0
- package/dist/tools/status-recorder/types.d.ts +80 -0
- package/package.json +82 -0
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status Recorder Hook
|
|
3
|
+
* 현재 세션 내 시도 기록 및 실패 분석을 위한 훅
|
|
4
|
+
*/
|
|
5
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
6
|
+
import type { ContextCollector } from "../../features/context-injector";
|
|
7
|
+
export interface StatusRecorderOptions {
|
|
8
|
+
/** Project root path */
|
|
9
|
+
projectRoot: string;
|
|
10
|
+
/** Enable status recording */
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Creates the status recorder hook
|
|
15
|
+
*/
|
|
16
|
+
export declare function createStatusRecorderHook(_ctx: PluginInput, collector?: ContextCollector, options?: StatusRecorderOptions): {
|
|
17
|
+
/**
|
|
18
|
+
* When a new task starts, create status file
|
|
19
|
+
*/
|
|
20
|
+
"task.start": (input: {
|
|
21
|
+
sessionID: string;
|
|
22
|
+
task: string;
|
|
23
|
+
specFile?: string;
|
|
24
|
+
}) => Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* When an attempt is made (success or failure)
|
|
27
|
+
*/
|
|
28
|
+
"task.attempt": (input: {
|
|
29
|
+
sessionID: string;
|
|
30
|
+
method: string;
|
|
31
|
+
result: "success" | "failed" | "partial";
|
|
32
|
+
reason?: string;
|
|
33
|
+
files?: string[];
|
|
34
|
+
}) => Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Add a lesson learned
|
|
37
|
+
*/
|
|
38
|
+
"task.lesson": (input: {
|
|
39
|
+
sessionID: string;
|
|
40
|
+
lesson: string;
|
|
41
|
+
}) => Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Inject status summary at the start of a message
|
|
44
|
+
*/
|
|
45
|
+
"chat.message": (input: {
|
|
46
|
+
sessionID: string;
|
|
47
|
+
}, _output: {
|
|
48
|
+
message: Record<string, unknown>;
|
|
49
|
+
}) => Promise<void>;
|
|
50
|
+
};
|
|
51
|
+
export { createStatus, recordAttempt, addLesson, getStatus } from "../../tools/status-recorder";
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Plugin } from "@opencode-ai/plugin";
|
|
2
|
+
declare const HomerSimpsonPlugin: Plugin;
|
|
3
|
+
export default HomerSimpsonPlugin;
|
|
4
|
+
export type { HomerSimpsonConfig, AgentName, AgentOverrideConfig, AgentOverrides, McpName, HookName, BuiltinCommandName, } from "./config";
|
|
5
|
+
export type { ConfigLoadError } from "./shared/config-errors";
|