oh-my-parallel-agent-opencode 0.1.0 → 0.2.1
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 +105 -42
- package/bin/oh-my-parallel-agent-opencode.js +80 -0
- package/bin/platform.js +38 -0
- package/bin/platform.test.ts +148 -0
- package/dist/agents/atlas.d.ts +22 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +30 -0
- package/dist/agents/explore.d.ts +7 -0
- package/dist/agents/hephaestus.d.ts +6 -0
- package/dist/agents/index.d.ts +12 -0
- package/dist/agents/librarian.d.ts +7 -0
- package/dist/agents/metis.d.ts +21 -0
- package/dist/agents/momus.d.ts +21 -0
- package/dist/agents/momus.test.d.ts +1 -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/high-accuracy-mode.d.ts +6 -0
- package/dist/agents/prometheus/identity-constraints.d.ts +7 -0
- package/dist/agents/prometheus/index.d.ts +39 -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-prompt.test.d.ts +1 -0
- package/dist/agents/sisyphus-junior.d.ts +10 -0
- package/dist/agents/sisyphus-junior.test.d.ts +1 -0
- package/dist/agents/sisyphus.d.ts +8 -0
- package/dist/agents/types.d.ts +63 -0
- package/dist/agents/utils.d.ts +16 -0
- package/dist/agents/utils.test.d.ts +1 -0
- package/dist/cli/config-manager.d.ts +162 -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 +13 -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-oauth.d.ts +15 -0
- package/dist/cli/doctor/checks/mcp-oauth.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/model-resolution.d.ts +33 -0
- package/dist/cli/doctor/checks/model-resolution.test.d.ts +1 -0
- package/dist/cli/doctor/checks/opencode.d.ts +19 -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 +42 -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 +26903 -0
- package/dist/cli/index.test.d.ts +1 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/install.test.d.ts +1 -0
- package/dist/cli/mcp-oauth/index.d.ts +6 -0
- package/dist/cli/mcp-oauth/index.test.d.ts +1 -0
- package/dist/cli/mcp-oauth/login.d.ts +6 -0
- package/dist/cli/mcp-oauth/login.test.d.ts +1 -0
- package/dist/cli/mcp-oauth/logout.d.ts +4 -0
- package/dist/cli/mcp-oauth/logout.test.d.ts +1 -0
- package/dist/cli/mcp-oauth/status.d.ts +1 -0
- package/dist/cli/mcp-oauth/status.test.d.ts +1 -0
- package/dist/cli/model-fallback.d.ts +18 -0
- package/dist/cli/model-fallback.test.d.ts +1 -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 +14 -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 +73 -0
- package/dist/cli/types.d.ts +39 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/schema.d.ts +2651 -0
- package/dist/config/schema.test.d.ts +1 -0
- package/dist/features/background-agent/concurrency.d.ts +27 -0
- package/dist/features/background-agent/concurrency.test.d.ts +1 -0
- package/dist/features/background-agent/constants.d.ts +44 -0
- package/dist/features/background-agent/index.d.ts +4 -0
- package/dist/features/background-agent/manager.d.ts +118 -0
- package/dist/features/background-agent/manager.test.d.ts +1 -0
- package/dist/features/background-agent/result-handler.d.ts +15 -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/types.d.ts +79 -0
- package/dist/features/boulder-state/constants.d.ts +10 -0
- package/dist/features/boulder-state/index.d.ts +3 -0
- package/dist/features/boulder-state/storage.d.ts +28 -0
- package/dist/features/boulder-state/storage.test.d.ts +1 -0
- package/dist/features/boulder-state/types.d.ts +24 -0
- package/dist/features/builtin-commands/commands.d.ts +2 -0
- package/dist/features/builtin-commands/index.d.ts +2 -0
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
- package/dist/features/builtin-commands/templates/ralph-loop.d.ts +2 -0
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
- package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -0
- package/dist/features/builtin-commands/templates/stop-continuation.test.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.d.ts +2 -0
- package/dist/features/builtin-skills/skills/index.d.ts +4 -0
- package/dist/features/builtin-skills/skills/playwright.d.ts +3 -0
- package/dist/features/builtin-skills/skills.d.ts +6 -0
- package/dist/features/builtin-skills/skills.test.d.ts +1 -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 +39 -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 +9 -0
- package/dist/features/claude-code-session-state/state.test.d.ts +1 -0
- package/dist/features/context-injector/collector.d.ts +11 -0
- package/dist/features/context-injector/collector.test.d.ts +1 -0
- package/dist/features/context-injector/index.d.ts +3 -0
- package/dist/features/context-injector/injector.d.ts +39 -0
- package/dist/features/context-injector/injector.test.d.ts +1 -0
- package/dist/features/context-injector/types.d.ts +83 -0
- package/dist/features/hook-message-injector/constants.d.ts +3 -0
- package/dist/features/hook-message-injector/index.d.ts +4 -0
- package/dist/features/hook-message-injector/injector.d.ts +19 -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/callback-server.test.d.ts +1 -0
- package/dist/features/mcp-oauth/dcr.d.ts +34 -0
- package/dist/features/mcp-oauth/dcr.test.d.ts +1 -0
- package/dist/features/mcp-oauth/discovery.d.ts +8 -0
- package/dist/features/mcp-oauth/discovery.test.d.ts +1 -0
- package/dist/features/mcp-oauth/index.d.ts +1 -0
- package/dist/features/mcp-oauth/provider.d.ts +41 -0
- package/dist/features/mcp-oauth/provider.test.d.ts +1 -0
- package/dist/features/mcp-oauth/resource-indicator.d.ts +2 -0
- package/dist/features/mcp-oauth/resource-indicator.test.d.ts +1 -0
- package/dist/features/mcp-oauth/schema.d.ts +6 -0
- package/dist/features/mcp-oauth/schema.test.d.ts +1 -0
- package/dist/features/mcp-oauth/step-up.d.ts +8 -0
- package/dist/features/mcp-oauth/step-up.test.d.ts +1 -0
- package/dist/features/mcp-oauth/storage.d.ts +17 -0
- package/dist/features/mcp-oauth/storage.test.d.ts +1 -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 +21 -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/sisyphus-swarm/mailbox/types.d.ts +191 -0
- package/dist/features/sisyphus-swarm/mailbox/types.test.d.ts +1 -0
- package/dist/features/sisyphus-tasks/storage.d.ts +9 -0
- package/dist/features/sisyphus-tasks/storage.test.d.ts +1 -0
- package/dist/features/sisyphus-tasks/types.d.ts +47 -0
- package/dist/features/sisyphus-tasks/types.test.d.ts +1 -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 +50 -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 +58 -0
- package/dist/features/task-toast-manager/manager.test.d.ts +1 -0
- package/dist/features/task-toast-manager/types.d.ts +24 -0
- package/dist/features/tmux-subagent/action-executor.d.ts +22 -0
- package/dist/features/tmux-subagent/decision-engine.d.ts +38 -0
- package/dist/features/tmux-subagent/decision-engine.test.d.ts +1 -0
- package/dist/features/tmux-subagent/index.d.ts +5 -0
- package/dist/features/tmux-subagent/manager.d.ts +59 -0
- package/dist/features/tmux-subagent/manager.test.d.ts +1 -0
- package/dist/features/tmux-subagent/pane-state-querier.d.ts +2 -0
- package/dist/features/tmux-subagent/types.d.ts +53 -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 +16 -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-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 +37 -0
- package/dist/hooks/atlas/index.d.ts +35 -0
- package/dist/hooks/atlas/index.test.d.ts +1 -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/checker.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +10 -0
- package/dist/hooks/auto-update-checker/index.d.ts +17 -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-notification/index.d.ts +18 -0
- package/dist/hooks/background-notification/types.d.ts +4 -0
- package/dist/hooks/category-skill-reminder/index.d.ts +22 -0
- package/dist/hooks/category-skill-reminder/index.test.d.ts +1 -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 +34 -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 +52 -0
- package/dist/hooks/comment-checker/cli.test.d.ts +1 -0
- package/dist/hooks/comment-checker/downloader.d.ts +25 -0
- package/dist/hooks/comment-checker/index.d.ts +19 -0
- package/dist/hooks/comment-checker/types.d.ts +31 -0
- package/dist/hooks/compaction-context-injector/index.d.ts +8 -0
- package/dist/hooks/compaction-context-injector/index.test.d.ts +1 -0
- package/dist/hooks/context-window-monitor.d.ts +18 -0
- package/dist/hooks/delegate-task-retry/index.d.ts +24 -0
- package/dist/hooks/delegate-task-retry/index.test.d.ts +1 -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 +1 -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 +1 -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-task-response-detector.d.ts +12 -0
- package/dist/hooks/index.d.ts +35 -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/analyze/default.d.ts +12 -0
- package/dist/hooks/keyword-detector/analyze/index.d.ts +1 -0
- package/dist/hooks/keyword-detector/constants.d.ts +10 -0
- package/dist/hooks/keyword-detector/detector.d.ts +11 -0
- package/dist/hooks/keyword-detector/index.d.ts +23 -0
- package/dist/hooks/keyword-detector/index.test.d.ts +1 -0
- package/dist/hooks/keyword-detector/search/default.d.ts +12 -0
- package/dist/hooks/keyword-detector/search/index.d.ts +1 -0
- package/dist/hooks/keyword-detector/types.d.ts +4 -0
- package/dist/hooks/keyword-detector/ultrawork/default.d.ts +10 -0
- package/dist/hooks/keyword-detector/ultrawork/gpt5.2.d.ts +16 -0
- package/dist/hooks/keyword-detector/ultrawork/index.d.ts +17 -0
- package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +6 -0
- package/dist/hooks/keyword-detector/ultrawork/utils.d.ts +24 -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/prometheus-md-only/constants.d.ts +7 -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/question-label-truncator/index.d.ts +7 -0
- package/dist/hooks/question-label-truncator/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/constants.d.ts +5 -0
- package/dist/hooks/ralph-loop/index.d.ts +21 -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 +17 -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/output-path.d.ts +5 -0
- package/dist/hooks/rules-injector/output-path.test.d.ts +1 -0
- package/dist/hooks/rules-injector/parser.d.ts +18 -0
- package/dist/hooks/rules-injector/parser.test.d.ts +1 -0
- package/dist/hooks/rules-injector/storage.d.ts +9 -0
- package/dist/hooks/rules-injector/types.d.ts +54 -0
- package/dist/hooks/session-notification-utils.d.ts +9 -0
- package/dist/hooks/session-notification.d.ts +20 -0
- package/dist/hooks/session-notification.test.d.ts +1 -0
- package/dist/hooks/session-recovery/constants.d.ts +6 -0
- package/dist/hooks/session-recovery/index.d.ts +22 -0
- package/dist/hooks/session-recovery/index.test.d.ts +1 -0
- package/dist/hooks/session-recovery/storage.d.ts +19 -0
- package/dist/hooks/session-recovery/types.d.ts +90 -0
- package/dist/hooks/sisyphus-junior-notepad/constants.d.ts +2 -0
- package/dist/hooks/sisyphus-junior-notepad/index.d.ts +12 -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/stop-continuation-guard/index.d.ts +16 -0
- package/dist/hooks/stop-continuation-guard/index.test.d.ts +1 -0
- package/dist/hooks/subagent-question-blocker/index.d.ts +2 -0
- package/dist/hooks/subagent-question-blocker/index.test.d.ts +1 -0
- package/dist/hooks/task-resume-info/index.d.ts +11 -0
- package/dist/hooks/think-mode/detector.d.ts +5 -0
- package/dist/hooks/think-mode/index.d.ts +14 -0
- package/dist/hooks/think-mode/index.test.d.ts +1 -0
- package/dist/hooks/think-mode/switcher.d.ts +69 -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 +19 -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/hooks/unstable-agent-babysitter/index.d.ts +50 -0
- package/dist/hooks/unstable-agent-babysitter/index.test.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +76117 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/mcp/context7.d.ts +9 -0
- package/dist/mcp/grep-app.d.ts +6 -0
- package/dist/mcp/index.d.ts +9 -0
- package/dist/mcp/index.test.d.ts +1 -0
- package/dist/mcp/types.d.ts +9 -0
- package/dist/mcp/websearch.d.ts +9 -0
- package/dist/oh-my-parallel-agent-opencode.schema.json +2182 -0
- package/dist/plugin-config.d.ts +4 -0
- package/dist/plugin-config.test.d.ts +1 -0
- package/dist/plugin-handlers/config-handler.d.ts +13 -0
- package/dist/plugin-handlers/config-handler.test.d.ts +1 -0
- package/dist/plugin-handlers/index.d.ts +1 -0
- package/dist/plugin-state.d.ts +6 -0
- package/dist/shared/agent-config-integration.test.d.ts +1 -0
- package/dist/shared/agent-display-names.d.ts +12 -0
- package/dist/shared/agent-display-names.test.d.ts +1 -0
- package/dist/shared/agent-tool-restrictions.d.ts +7 -0
- package/dist/shared/agent-variant.d.ts +9 -0
- package/dist/shared/agent-variant.test.d.ts +1 -0
- package/dist/shared/binary-downloader.d.ts +10 -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/connected-providers-cache.d.ts +52 -0
- package/dist/shared/data-path.d.ts +30 -0
- package/dist/shared/deep-merge.d.ts +13 -0
- package/dist/shared/deep-merge.test.d.ts +1 -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/first-message-variant.d.ts +11 -0
- package/dist/shared/first-message-variant.test.d.ts +1 -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 +36 -0
- package/dist/shared/jsonc-parser.d.ts +15 -0
- package/dist/shared/jsonc-parser.test.d.ts +1 -0
- package/dist/shared/logger.d.ts +2 -0
- package/dist/shared/migration.d.ts +32 -0
- package/dist/shared/migration.test.d.ts +1 -0
- package/dist/shared/model-availability.d.ts +19 -0
- package/dist/shared/model-availability.test.d.ts +1 -0
- package/dist/shared/model-requirements.d.ts +13 -0
- package/dist/shared/model-requirements.test.d.ts +1 -0
- package/dist/shared/model-resolution-pipeline.d.ts +24 -0
- package/dist/shared/model-resolver.d.ts +22 -0
- package/dist/shared/model-resolver.test.d.ts +1 -0
- package/dist/shared/model-sanitizer.d.ts +3 -0
- package/dist/shared/model-suggestion-retry.d.ts +24 -0
- package/dist/shared/model-suggestion-retry.test.d.ts +1 -0
- package/dist/shared/ollama-ndjson-parser.d.ts +108 -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 +19 -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 +27 -0
- package/dist/shared/permission-compat.test.d.ts +1 -0
- package/dist/shared/session-cursor.d.ts +13 -0
- package/dist/shared/session-cursor.test.d.ts +1 -0
- package/dist/shared/session-injected-paths.d.ts +10 -0
- package/dist/shared/session-utils.d.ts +2 -0
- package/dist/shared/shell-env.d.ts +41 -0
- package/dist/shared/shell-env.test.d.ts +1 -0
- package/dist/shared/snake-case.d.ts +5 -0
- package/dist/shared/system-directive.d.ts +45 -0
- package/dist/shared/system-directive.test.d.ts +1 -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.d.ts +17 -0
- package/dist/shared/tmux/tmux-utils.test.d.ts +1 -0
- package/dist/shared/tmux/types.d.ts +4 -0
- package/dist/shared/tool-name.d.ts +1 -0
- package/dist/shared/zip-extractor.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/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 +4 -0
- package/dist/tools/background-task/tools.d.ts +47 -0
- package/dist/tools/background-task/tools.test.d.ts +1 -0
- package/dist/tools/background-task/types.d.ts +20 -0
- package/dist/tools/call-omo-agent/constants.d.ts +2 -0
- package/dist/tools/call-omo-agent/index.d.ts +3 -0
- package/dist/tools/call-omo-agent/tools.d.ts +3 -0
- package/dist/tools/call-omo-agent/types.d.ts +24 -0
- package/dist/tools/delegate-task/categories.d.ts +17 -0
- package/dist/tools/delegate-task/constants.d.ts +30 -0
- package/dist/tools/delegate-task/executor.d.ts +75 -0
- package/dist/tools/delegate-task/helpers.d.ts +30 -0
- package/dist/tools/delegate-task/index.d.ts +4 -0
- package/dist/tools/delegate-task/prompt-builder.d.ts +6 -0
- package/dist/tools/delegate-task/timing.d.ts +11 -0
- package/dist/tools/delegate-task/tools.d.ts +6 -0
- package/dist/tools/delegate-task/tools.test.d.ts +1 -0
- package/dist/tools/delegate-task/types.d.ts +44 -0
- package/dist/tools/glob/cli.d.ts +11 -0
- package/dist/tools/glob/cli.test.d.ts +1 -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 +20 -0
- package/dist/tools/glob/utils.d.ts +2 -0
- package/dist/tools/grep/cli.d.ts +3 -0
- package/dist/tools/grep/constants.d.ts +17 -0
- package/dist/tools/grep/downloader.d.ts +3 -0
- package/dist/tools/grep/downloader.test.d.ts +1 -0
- package/dist/tools/grep/index.d.ts +2 -0
- package/dist/tools/grep/tools.d.ts +2 -0
- package/dist/tools/grep/types.d.ts +36 -0
- package/dist/tools/grep/utils.d.ts +3 -0
- package/dist/tools/index.d.ts +15 -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/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 +9 -0
- package/dist/tools/look-at/tools.test.d.ts +1 -0
- package/dist/tools/look-at/types.d.ts +4 -0
- package/dist/tools/lsp/client.d.ts +50 -0
- package/dist/tools/lsp/config.d.ts +17 -0
- package/dist/tools/lsp/config.test.d.ts +1 -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 +7 -0
- package/dist/tools/lsp/types.d.ts +123 -0
- package/dist/tools/lsp/utils.d.ts +26 -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 +28 -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/tools.test.d.ts +1 -0
- package/dist/tools/slashcommand/types.d.ts +24 -0
- package/package.json +77 -6
- package/postinstall.mjs +43 -0
- package/__tests__/agents.test.ts +0 -107
- package/__tests__/config-handler.test.ts +0 -198
- package/__tests__/dynamic-agent.test.ts +0 -68
- package/__tests__/schema.test.ts +0 -149
- package/__tests__/setup.test.ts +0 -16
- package/bun.lock +0 -29
- package/oh-my-parallel-agent-opencode.example.json +0 -7
- package/src/agents/explore.ts +0 -117
- package/src/agents/index.ts +0 -69
- package/src/agents/librarian.ts +0 -302
- package/src/agents/metis.ts +0 -341
- package/src/agents/momus.ts +0 -237
- package/src/agents/types.ts +0 -95
- package/src/config/schema.ts +0 -15
- package/src/index.ts +0 -116
- package/src/plugin-handlers/config-handler.ts +0 -129
- package/src/utils/dynamic-agent.ts +0 -37
- package/tsconfig.json +0 -19
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { OAuthTokenData } from "./storage";
|
|
2
|
+
import type { OAuthServerMetadata } from "./discovery";
|
|
3
|
+
import type { ClientCredentials } from "./dcr";
|
|
4
|
+
export type McpOAuthProviderOptions = {
|
|
5
|
+
serverUrl: string;
|
|
6
|
+
clientId?: string;
|
|
7
|
+
scopes?: string[];
|
|
8
|
+
};
|
|
9
|
+
type CallbackResult = {
|
|
10
|
+
code: string;
|
|
11
|
+
state: string;
|
|
12
|
+
};
|
|
13
|
+
declare function generateCodeVerifier(): string;
|
|
14
|
+
declare function generateCodeChallenge(verifier: string): string;
|
|
15
|
+
declare function buildAuthorizationUrl(authorizationEndpoint: string, options: {
|
|
16
|
+
clientId: string;
|
|
17
|
+
redirectUri: string;
|
|
18
|
+
codeChallenge: string;
|
|
19
|
+
state: string;
|
|
20
|
+
scopes?: string[];
|
|
21
|
+
resource?: string;
|
|
22
|
+
}): string;
|
|
23
|
+
declare function startCallbackServer(port: number): Promise<CallbackResult>;
|
|
24
|
+
export declare class McpOAuthProvider {
|
|
25
|
+
private readonly serverUrl;
|
|
26
|
+
private readonly configClientId;
|
|
27
|
+
private readonly scopes;
|
|
28
|
+
private storedCodeVerifier;
|
|
29
|
+
private storedClientInfo;
|
|
30
|
+
private callbackPort;
|
|
31
|
+
constructor(options: McpOAuthProviderOptions);
|
|
32
|
+
tokens(): OAuthTokenData | null;
|
|
33
|
+
saveTokens(tokenData: OAuthTokenData): boolean;
|
|
34
|
+
clientInformation(): ClientCredentials | null;
|
|
35
|
+
redirectUrl(): string;
|
|
36
|
+
saveCodeVerifier(verifier: string): void;
|
|
37
|
+
codeVerifier(): string | null;
|
|
38
|
+
redirectToAuthorization(metadata: OAuthServerMetadata): Promise<CallbackResult>;
|
|
39
|
+
login(): Promise<OAuthTokenData>;
|
|
40
|
+
}
|
|
41
|
+
export { generateCodeVerifier, generateCodeChallenge, buildAuthorizationUrl, startCallbackServer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface StepUpInfo {
|
|
2
|
+
requiredScopes: string[];
|
|
3
|
+
error?: string;
|
|
4
|
+
errorDescription?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function parseWwwAuthenticate(header: string): StepUpInfo | null;
|
|
7
|
+
export declare function mergeScopes(existing: string[], required: string[]): string[];
|
|
8
|
+
export declare function isStepUpRequired(statusCode: number, headers: Record<string, string>): StepUpInfo | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface OAuthTokenData {
|
|
2
|
+
accessToken: string;
|
|
3
|
+
refreshToken?: string;
|
|
4
|
+
expiresAt?: number;
|
|
5
|
+
clientInfo?: {
|
|
6
|
+
clientId: string;
|
|
7
|
+
clientSecret?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
type TokenStore = Record<string, OAuthTokenData>;
|
|
11
|
+
export declare function getMcpOauthStoragePath(): string;
|
|
12
|
+
export declare function loadToken(serverHost: string, resource: string): OAuthTokenData | null;
|
|
13
|
+
export declare function saveToken(serverHost: string, resource: string, token: OAuthTokenData): boolean;
|
|
14
|
+
export declare function deleteToken(serverHost: string, resource: string): boolean;
|
|
15
|
+
export declare function listTokensByHost(serverHost: string): TokenStore;
|
|
16
|
+
export declare function listAllTokens(): TokenStore;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SkillScope, LoadedSkill } from "./types";
|
|
2
|
+
import type { SkillMcpConfig } from "../skill-mcp-manager/types";
|
|
3
|
+
export declare function mapWithConcurrency<T, R>(items: T[], mapper: (item: T) => Promise<R>, concurrency: number): Promise<R[]>;
|
|
4
|
+
export declare function loadMcpJsonFromDirAsync(skillDir: string): Promise<SkillMcpConfig | undefined>;
|
|
5
|
+
export declare function loadSkillFromPathAsync(skillPath: string, resolvedPath: string, defaultName: string, scope: SkillScope): Promise<LoadedSkill | null>;
|
|
6
|
+
export declare function discoverSkillsInDirAsync(skillsDir: string): Promise<LoadedSkill[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CommandDefinition } from "../claude-code-command-loader/types";
|
|
2
|
+
import type { LoadedSkill } from "./types";
|
|
3
|
+
export declare function loadUserSkills(): Promise<Record<string, CommandDefinition>>;
|
|
4
|
+
export declare function loadProjectSkills(): Promise<Record<string, CommandDefinition>>;
|
|
5
|
+
export declare function loadOpencodeGlobalSkills(): Promise<Record<string, CommandDefinition>>;
|
|
6
|
+
export declare function loadOpencodeProjectSkills(): Promise<Record<string, CommandDefinition>>;
|
|
7
|
+
export interface DiscoverSkillsOptions {
|
|
8
|
+
includeClaudeCodePaths?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function discoverAllSkills(): Promise<LoadedSkill[]>;
|
|
11
|
+
export declare function discoverSkills(options?: DiscoverSkillsOptions): Promise<LoadedSkill[]>;
|
|
12
|
+
export declare function getSkillByName(name: string, options?: DiscoverSkillsOptions): Promise<LoadedSkill | undefined>;
|
|
13
|
+
export declare function discoverUserClaudeSkills(): Promise<LoadedSkill[]>;
|
|
14
|
+
export declare function discoverProjectClaudeSkills(): Promise<LoadedSkill[]>;
|
|
15
|
+
export declare function discoverOpencodeGlobalSkills(): Promise<LoadedSkill[]>;
|
|
16
|
+
export declare function discoverOpencodeProjectSkills(): Promise<LoadedSkill[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LoadedSkill } from "./types";
|
|
2
|
+
import type { SkillsConfig } from "../../config/schema";
|
|
3
|
+
import type { BuiltinSkill } from "../builtin-skills/types";
|
|
4
|
+
export interface MergeSkillsOptions {
|
|
5
|
+
configDir?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function mergeSkills(builtinSkills: BuiltinSkill[], config: SkillsConfig | undefined, userClaudeSkills: LoadedSkill[], userOpencodeSkills: LoadedSkill[], projectClaudeSkills: LoadedSkill[], projectOpencodeSkills: LoadedSkill[], options?: MergeSkillsOptions): LoadedSkill[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { LoadedSkill } from "./types";
|
|
2
|
+
import type { GitMasterConfig, BrowserAutomationProvider } from "../../config/schema";
|
|
3
|
+
export interface SkillResolutionOptions {
|
|
4
|
+
gitMasterConfig?: GitMasterConfig;
|
|
5
|
+
browserProvider?: BrowserAutomationProvider;
|
|
6
|
+
}
|
|
7
|
+
declare function clearSkillCache(): void;
|
|
8
|
+
declare function getAllSkills(options?: SkillResolutionOptions): Promise<LoadedSkill[]>;
|
|
9
|
+
declare function extractSkillTemplate(skill: LoadedSkill): Promise<string>;
|
|
10
|
+
export { clearSkillCache, getAllSkills, extractSkillTemplate };
|
|
11
|
+
export declare function injectGitMasterConfig(template: string, config?: GitMasterConfig): string;
|
|
12
|
+
export declare function resolveSkillContent(skillName: string, options?: SkillResolutionOptions): string | null;
|
|
13
|
+
export declare function resolveMultipleSkills(skillNames: string[], options?: SkillResolutionOptions): {
|
|
14
|
+
resolved: Map<string, string>;
|
|
15
|
+
notFound: string[];
|
|
16
|
+
};
|
|
17
|
+
export declare function resolveSkillContentAsync(skillName: string, options?: SkillResolutionOptions): Promise<string | null>;
|
|
18
|
+
export declare function resolveMultipleSkillsAsync(skillNames: string[], options?: SkillResolutionOptions): Promise<{
|
|
19
|
+
resolved: Map<string, string>;
|
|
20
|
+
notFound: string[];
|
|
21
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CommandDefinition } from "../claude-code-command-loader/types";
|
|
2
|
+
import type { SkillMcpConfig } from "../skill-mcp-manager/types";
|
|
3
|
+
export type SkillScope = "builtin" | "config" | "user" | "project" | "opencode" | "opencode-project";
|
|
4
|
+
export interface SkillMetadata {
|
|
5
|
+
name?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
model?: string;
|
|
8
|
+
"argument-hint"?: string;
|
|
9
|
+
agent?: string;
|
|
10
|
+
subtask?: boolean;
|
|
11
|
+
license?: string;
|
|
12
|
+
compatibility?: string;
|
|
13
|
+
metadata?: Record<string, string>;
|
|
14
|
+
"allowed-tools"?: string | string[];
|
|
15
|
+
mcp?: SkillMcpConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface LazyContentLoader {
|
|
18
|
+
loaded: boolean;
|
|
19
|
+
content?: string;
|
|
20
|
+
load: () => Promise<string>;
|
|
21
|
+
}
|
|
22
|
+
export interface LoadedSkill {
|
|
23
|
+
name: string;
|
|
24
|
+
path?: string;
|
|
25
|
+
resolvedPath?: string;
|
|
26
|
+
definition: CommandDefinition;
|
|
27
|
+
scope: SkillScope;
|
|
28
|
+
license?: string;
|
|
29
|
+
compatibility?: string;
|
|
30
|
+
metadata?: Record<string, string>;
|
|
31
|
+
allowedTools?: string[];
|
|
32
|
+
mcpConfig?: SkillMcpConfig;
|
|
33
|
+
lazyContent?: LazyContentLoader;
|
|
34
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MailboxMessageSchema: z.ZodObject<{
|
|
3
|
+
from: z.ZodString;
|
|
4
|
+
text: z.ZodString;
|
|
5
|
+
timestamp: z.ZodString;
|
|
6
|
+
color: z.ZodOptional<z.ZodString>;
|
|
7
|
+
read: z.ZodBoolean;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type MailboxMessage = z.infer<typeof MailboxMessageSchema>;
|
|
10
|
+
export declare const PermissionRequestSchema: z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<"permission_request">;
|
|
12
|
+
requestId: z.ZodString;
|
|
13
|
+
toolName: z.ZodString;
|
|
14
|
+
input: z.ZodUnknown;
|
|
15
|
+
agentId: z.ZodString;
|
|
16
|
+
timestamp: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type PermissionRequest = z.infer<typeof PermissionRequestSchema>;
|
|
19
|
+
export declare const PermissionResponseSchema: z.ZodObject<{
|
|
20
|
+
type: z.ZodLiteral<"permission_response">;
|
|
21
|
+
requestId: z.ZodString;
|
|
22
|
+
decision: z.ZodEnum<{
|
|
23
|
+
rejected: "rejected";
|
|
24
|
+
approved: "approved";
|
|
25
|
+
}>;
|
|
26
|
+
updatedInput: z.ZodOptional<z.ZodUnknown>;
|
|
27
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
28
|
+
permissionUpdates: z.ZodOptional<z.ZodUnknown>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type PermissionResponse = z.infer<typeof PermissionResponseSchema>;
|
|
31
|
+
export declare const ShutdownRequestSchema: z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"shutdown_request">;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type ShutdownRequest = z.infer<typeof ShutdownRequestSchema>;
|
|
35
|
+
export declare const ShutdownApprovedSchema: z.ZodObject<{
|
|
36
|
+
type: z.ZodLiteral<"shutdown_approved">;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type ShutdownApproved = z.infer<typeof ShutdownApprovedSchema>;
|
|
39
|
+
export declare const ShutdownRejectedSchema: z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<"shutdown_rejected">;
|
|
41
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type ShutdownRejected = z.infer<typeof ShutdownRejectedSchema>;
|
|
44
|
+
export declare const TaskAssignmentSchema: z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"task_assignment">;
|
|
46
|
+
taskId: z.ZodString;
|
|
47
|
+
subject: z.ZodString;
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
assignedBy: z.ZodString;
|
|
50
|
+
timestamp: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type TaskAssignment = z.infer<typeof TaskAssignmentSchema>;
|
|
53
|
+
export declare const TaskCompletedSchema: z.ZodObject<{
|
|
54
|
+
type: z.ZodLiteral<"task_completed">;
|
|
55
|
+
taskId: z.ZodString;
|
|
56
|
+
agentId: z.ZodString;
|
|
57
|
+
timestamp: z.ZodNumber;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type TaskCompleted = z.infer<typeof TaskCompletedSchema>;
|
|
60
|
+
export declare const IdleNotificationSchema: z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"idle_notification">;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type IdleNotification = z.infer<typeof IdleNotificationSchema>;
|
|
64
|
+
export declare const JoinRequestSchema: z.ZodObject<{
|
|
65
|
+
type: z.ZodLiteral<"join_request">;
|
|
66
|
+
agentName: z.ZodString;
|
|
67
|
+
sessionId: z.ZodString;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type JoinRequest = z.infer<typeof JoinRequestSchema>;
|
|
70
|
+
export declare const JoinApprovedSchema: z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"join_approved">;
|
|
72
|
+
agentName: z.ZodString;
|
|
73
|
+
teamName: z.ZodString;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type JoinApproved = z.infer<typeof JoinApprovedSchema>;
|
|
76
|
+
export declare const JoinRejectedSchema: z.ZodObject<{
|
|
77
|
+
type: z.ZodLiteral<"join_rejected">;
|
|
78
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export type JoinRejected = z.infer<typeof JoinRejectedSchema>;
|
|
81
|
+
export declare const PlanApprovalRequestSchema: z.ZodObject<{
|
|
82
|
+
type: z.ZodLiteral<"plan_approval_request">;
|
|
83
|
+
requestId: z.ZodString;
|
|
84
|
+
plan: z.ZodString;
|
|
85
|
+
agentId: z.ZodString;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type PlanApprovalRequest = z.infer<typeof PlanApprovalRequestSchema>;
|
|
88
|
+
export declare const PlanApprovalResponseSchema: z.ZodObject<{
|
|
89
|
+
type: z.ZodLiteral<"plan_approval_response">;
|
|
90
|
+
requestId: z.ZodString;
|
|
91
|
+
decision: z.ZodEnum<{
|
|
92
|
+
rejected: "rejected";
|
|
93
|
+
approved: "approved";
|
|
94
|
+
}>;
|
|
95
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type PlanApprovalResponse = z.infer<typeof PlanApprovalResponseSchema>;
|
|
98
|
+
export declare const ModeSetRequestSchema: z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"mode_set_request">;
|
|
100
|
+
mode: z.ZodEnum<{
|
|
101
|
+
default: "default";
|
|
102
|
+
plan: "plan";
|
|
103
|
+
acceptEdits: "acceptEdits";
|
|
104
|
+
bypassPermissions: "bypassPermissions";
|
|
105
|
+
delegate: "delegate";
|
|
106
|
+
dontAsk: "dontAsk";
|
|
107
|
+
}>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export type ModeSetRequest = z.infer<typeof ModeSetRequestSchema>;
|
|
110
|
+
export declare const TeamPermissionUpdateSchema: z.ZodObject<{
|
|
111
|
+
type: z.ZodLiteral<"team_permission_update">;
|
|
112
|
+
permissions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export type TeamPermissionUpdate = z.infer<typeof TeamPermissionUpdateSchema>;
|
|
115
|
+
export declare const ProtocolMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
116
|
+
type: z.ZodLiteral<"permission_request">;
|
|
117
|
+
requestId: z.ZodString;
|
|
118
|
+
toolName: z.ZodString;
|
|
119
|
+
input: z.ZodUnknown;
|
|
120
|
+
agentId: z.ZodString;
|
|
121
|
+
timestamp: z.ZodNumber;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
+
type: z.ZodLiteral<"permission_response">;
|
|
124
|
+
requestId: z.ZodString;
|
|
125
|
+
decision: z.ZodEnum<{
|
|
126
|
+
rejected: "rejected";
|
|
127
|
+
approved: "approved";
|
|
128
|
+
}>;
|
|
129
|
+
updatedInput: z.ZodOptional<z.ZodUnknown>;
|
|
130
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
131
|
+
permissionUpdates: z.ZodOptional<z.ZodUnknown>;
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"shutdown_request">;
|
|
134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
+
type: z.ZodLiteral<"shutdown_approved">;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
type: z.ZodLiteral<"shutdown_rejected">;
|
|
138
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
type: z.ZodLiteral<"task_assignment">;
|
|
141
|
+
taskId: z.ZodString;
|
|
142
|
+
subject: z.ZodString;
|
|
143
|
+
description: z.ZodString;
|
|
144
|
+
assignedBy: z.ZodString;
|
|
145
|
+
timestamp: z.ZodNumber;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
type: z.ZodLiteral<"task_completed">;
|
|
148
|
+
taskId: z.ZodString;
|
|
149
|
+
agentId: z.ZodString;
|
|
150
|
+
timestamp: z.ZodNumber;
|
|
151
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
152
|
+
type: z.ZodLiteral<"idle_notification">;
|
|
153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<"join_request">;
|
|
155
|
+
agentName: z.ZodString;
|
|
156
|
+
sessionId: z.ZodString;
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
+
type: z.ZodLiteral<"join_approved">;
|
|
159
|
+
agentName: z.ZodString;
|
|
160
|
+
teamName: z.ZodString;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
type: z.ZodLiteral<"join_rejected">;
|
|
163
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
type: z.ZodLiteral<"plan_approval_request">;
|
|
166
|
+
requestId: z.ZodString;
|
|
167
|
+
plan: z.ZodString;
|
|
168
|
+
agentId: z.ZodString;
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
type: z.ZodLiteral<"plan_approval_response">;
|
|
171
|
+
requestId: z.ZodString;
|
|
172
|
+
decision: z.ZodEnum<{
|
|
173
|
+
rejected: "rejected";
|
|
174
|
+
approved: "approved";
|
|
175
|
+
}>;
|
|
176
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<"mode_set_request">;
|
|
179
|
+
mode: z.ZodEnum<{
|
|
180
|
+
default: "default";
|
|
181
|
+
plan: "plan";
|
|
182
|
+
acceptEdits: "acceptEdits";
|
|
183
|
+
bypassPermissions: "bypassPermissions";
|
|
184
|
+
delegate: "delegate";
|
|
185
|
+
dontAsk: "dontAsk";
|
|
186
|
+
}>;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
type: z.ZodLiteral<"team_permission_update">;
|
|
189
|
+
permissions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
190
|
+
}, z.core.$strip>], "type">;
|
|
191
|
+
export type ProtocolMessage = z.infer<typeof ProtocolMessageSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
import type { OhMyOpenCodeConfig } from "../../config/schema";
|
|
3
|
+
export declare function getTaskDir(listId: string, config: Partial<OhMyOpenCodeConfig>): string;
|
|
4
|
+
export declare function getTaskPath(listId: string, taskId: string, config: Partial<OhMyOpenCodeConfig>): string;
|
|
5
|
+
export declare function getTeamDir(teamName: string, config: Partial<OhMyOpenCodeConfig>): string;
|
|
6
|
+
export declare function getInboxPath(teamName: string, agentName: string, config: Partial<OhMyOpenCodeConfig>): string;
|
|
7
|
+
export declare function ensureDir(dirPath: string): void;
|
|
8
|
+
export declare function readJsonSafe<T>(filePath: string, schema: z.ZodType<T>): T | null;
|
|
9
|
+
export declare function writeJsonAtomic(filePath: string, data: unknown): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TaskStatusSchema: z.ZodEnum<{
|
|
3
|
+
pending: "pending";
|
|
4
|
+
completed: "completed";
|
|
5
|
+
in_progress: "in_progress";
|
|
6
|
+
}>;
|
|
7
|
+
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
8
|
+
export declare const TaskSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
subject: z.ZodString;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
13
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
14
|
+
status: z.ZodEnum<{
|
|
15
|
+
pending: "pending";
|
|
16
|
+
completed: "completed";
|
|
17
|
+
in_progress: "in_progress";
|
|
18
|
+
}>;
|
|
19
|
+
blocks: z.ZodArray<z.ZodString>;
|
|
20
|
+
blockedBy: z.ZodArray<z.ZodString>;
|
|
21
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type Task = z.infer<typeof TaskSchema>;
|
|
24
|
+
export declare const TaskCreateInputSchema: z.ZodObject<{
|
|
25
|
+
subject: z.ZodString;
|
|
26
|
+
description: z.ZodString;
|
|
27
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
28
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type TaskCreateInput = z.infer<typeof TaskCreateInputSchema>;
|
|
31
|
+
export declare const TaskUpdateInputSchema: z.ZodObject<{
|
|
32
|
+
taskId: z.ZodString;
|
|
33
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
36
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
pending: "pending";
|
|
38
|
+
completed: "completed";
|
|
39
|
+
in_progress: "in_progress";
|
|
40
|
+
deleted: "deleted";
|
|
41
|
+
}>>;
|
|
42
|
+
addBlocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
+
addBlockedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
45
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type TaskUpdateInput = z.infer<typeof TaskUpdateInputSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2
|
+
import type { Tool, Resource, Prompt } from "@modelcontextprotocol/sdk/types.js";
|
|
3
|
+
import type { ClaudeCodeMcpServer } from "../claude-code-mcp-loader/types";
|
|
4
|
+
import type { SkillMcpClientInfo, SkillMcpServerContext } from "./types";
|
|
5
|
+
export declare class SkillMcpManager {
|
|
6
|
+
private clients;
|
|
7
|
+
private pendingConnections;
|
|
8
|
+
private authProviders;
|
|
9
|
+
private cleanupRegistered;
|
|
10
|
+
private cleanupInterval;
|
|
11
|
+
private cleanupHandlers;
|
|
12
|
+
private readonly IDLE_TIMEOUT;
|
|
13
|
+
private getClientKey;
|
|
14
|
+
/**
|
|
15
|
+
* Get or create an McpOAuthProvider for a given server URL + oauth config.
|
|
16
|
+
* Providers are cached by server URL to reuse tokens across reconnections.
|
|
17
|
+
*/
|
|
18
|
+
private getOrCreateAuthProvider;
|
|
19
|
+
private registerProcessCleanup;
|
|
20
|
+
private unregisterProcessCleanup;
|
|
21
|
+
getOrCreateClient(info: SkillMcpClientInfo, config: ClaudeCodeMcpServer): Promise<Client>;
|
|
22
|
+
private createClient;
|
|
23
|
+
/**
|
|
24
|
+
* Create an HTTP-based MCP client using StreamableHTTPClientTransport.
|
|
25
|
+
* Supports remote MCP servers with optional authentication headers.
|
|
26
|
+
*/
|
|
27
|
+
private createHttpClient;
|
|
28
|
+
/**
|
|
29
|
+
* Create a stdio-based MCP client using StdioClientTransport.
|
|
30
|
+
* Spawns a local process and communicates via stdin/stdout.
|
|
31
|
+
*/
|
|
32
|
+
private createStdioClient;
|
|
33
|
+
disconnectSession(sessionID: string): Promise<void>;
|
|
34
|
+
disconnectAll(): Promise<void>;
|
|
35
|
+
private startCleanupTimer;
|
|
36
|
+
private stopCleanupTimer;
|
|
37
|
+
private cleanupIdleClients;
|
|
38
|
+
listTools(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Tool[]>;
|
|
39
|
+
listResources(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Resource[]>;
|
|
40
|
+
listPrompts(info: SkillMcpClientInfo, context: SkillMcpServerContext): Promise<Prompt[]>;
|
|
41
|
+
callTool(info: SkillMcpClientInfo, context: SkillMcpServerContext, name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
42
|
+
readResource(info: SkillMcpClientInfo, context: SkillMcpServerContext, uri: string): Promise<unknown>;
|
|
43
|
+
getPrompt(info: SkillMcpClientInfo, context: SkillMcpServerContext, name: string, args: Record<string, string>): Promise<unknown>;
|
|
44
|
+
private withOperationRetry;
|
|
45
|
+
private handleStepUpIfNeeded;
|
|
46
|
+
private forceReconnect;
|
|
47
|
+
private getOrCreateClientWithRetry;
|
|
48
|
+
getConnectedServers(): string[];
|
|
49
|
+
isConnected(info: SkillMcpClientInfo): boolean;
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ClaudeCodeMcpServer } from "../claude-code-mcp-loader/types";
|
|
2
|
+
export type SkillMcpConfig = Record<string, ClaudeCodeMcpServer>;
|
|
3
|
+
export interface SkillMcpClientInfo {
|
|
4
|
+
serverName: string;
|
|
5
|
+
skillName: string;
|
|
6
|
+
sessionID: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SkillMcpServerContext {
|
|
9
|
+
config: ClaudeCodeMcpServer;
|
|
10
|
+
skillName: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import type { TrackedTask, TaskStatus, ModelFallbackInfo } from "./types";
|
|
3
|
+
import type { ConcurrencyManager } from "../background-agent/concurrency";
|
|
4
|
+
type OpencodeClient = PluginInput["client"];
|
|
5
|
+
export declare class TaskToastManager {
|
|
6
|
+
private tasks;
|
|
7
|
+
private client;
|
|
8
|
+
private concurrencyManager?;
|
|
9
|
+
constructor(client: OpencodeClient, concurrencyManager?: ConcurrencyManager);
|
|
10
|
+
setConcurrencyManager(manager: ConcurrencyManager): void;
|
|
11
|
+
addTask(task: {
|
|
12
|
+
id: string;
|
|
13
|
+
description: string;
|
|
14
|
+
agent: string;
|
|
15
|
+
isBackground: boolean;
|
|
16
|
+
status?: TaskStatus;
|
|
17
|
+
category?: string;
|
|
18
|
+
skills?: string[];
|
|
19
|
+
modelInfo?: ModelFallbackInfo;
|
|
20
|
+
}): void;
|
|
21
|
+
/**
|
|
22
|
+
* Update task status
|
|
23
|
+
*/
|
|
24
|
+
updateTask(id: string, status: TaskStatus): void;
|
|
25
|
+
/**
|
|
26
|
+
* Remove completed/error task
|
|
27
|
+
*/
|
|
28
|
+
removeTask(id: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Get all running tasks (newest first)
|
|
31
|
+
*/
|
|
32
|
+
getRunningTasks(): TrackedTask[];
|
|
33
|
+
/**
|
|
34
|
+
* Get all queued tasks
|
|
35
|
+
*/
|
|
36
|
+
getQueuedTasks(): TrackedTask[];
|
|
37
|
+
/**
|
|
38
|
+
* Format duration since task started
|
|
39
|
+
*/
|
|
40
|
+
private formatDuration;
|
|
41
|
+
private getConcurrencyInfo;
|
|
42
|
+
private buildTaskListMessage;
|
|
43
|
+
/**
|
|
44
|
+
* Show consolidated toast with all running/queued tasks
|
|
45
|
+
*/
|
|
46
|
+
private showTaskListToast;
|
|
47
|
+
/**
|
|
48
|
+
* Show task completion toast
|
|
49
|
+
*/
|
|
50
|
+
showCompletionToast(task: {
|
|
51
|
+
id: string;
|
|
52
|
+
description: string;
|
|
53
|
+
duration: string;
|
|
54
|
+
}): void;
|
|
55
|
+
}
|
|
56
|
+
export declare function getTaskToastManager(): TaskToastManager | null;
|
|
57
|
+
export declare function initTaskToastManager(client: OpencodeClient, concurrencyManager?: ConcurrencyManager): TaskToastManager;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ModelSource } from "../../shared/model-resolver";
|
|
2
|
+
export type TaskStatus = "running" | "queued" | "completed" | "error";
|
|
3
|
+
export interface ModelFallbackInfo {
|
|
4
|
+
model: string;
|
|
5
|
+
type: "user-defined" | "inherited" | "category-default" | "system-default";
|
|
6
|
+
source?: ModelSource;
|
|
7
|
+
}
|
|
8
|
+
export interface TrackedTask {
|
|
9
|
+
id: string;
|
|
10
|
+
description: string;
|
|
11
|
+
agent: string;
|
|
12
|
+
status: TaskStatus;
|
|
13
|
+
startedAt: Date;
|
|
14
|
+
isBackground: boolean;
|
|
15
|
+
category?: string;
|
|
16
|
+
skills?: string[];
|
|
17
|
+
modelInfo?: ModelFallbackInfo;
|
|
18
|
+
}
|
|
19
|
+
export interface TaskToastOptions {
|
|
20
|
+
title: string;
|
|
21
|
+
message: string;
|
|
22
|
+
variant: "info" | "success" | "warning" | "error";
|
|
23
|
+
duration?: number;
|
|
24
|
+
}
|