@skj1724/oh-my-opencode 3.11.8 → 3.17.4
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/README.ja.md +8 -4
- package/README.ko.md +8 -4
- package/README.md +20 -10
- package/README.ru.md +8 -4
- package/README.zh-cn.md +8 -4
- package/bin/oh-my-opencode.js +11 -0
- package/bin/platform.js +13 -13
- package/bin/platform.test.ts +15 -0
- package/dist/agents/atlas/agent.d.ts +1 -1
- package/dist/agents/atlas/default-prompt-sections.d.ts +6 -0
- package/dist/agents/atlas/default.d.ts +0 -9
- package/dist/agents/atlas/gemini-prompt-sections.d.ts +6 -0
- package/dist/agents/atlas/gpt-prompt-sections.d.ts +6 -0
- package/dist/agents/atlas/gpt.d.ts +0 -9
- package/dist/agents/atlas/shared-prompt.d.ts +9 -0
- package/dist/agents/dynamic-agent-category-skills-guide.d.ts +2 -0
- package/dist/agents/dynamic-agent-core-sections.d.ts +17 -0
- package/dist/agents/dynamic-agent-policy-sections.d.ts +6 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +5 -35
- package/dist/agents/dynamic-agent-prompt-types.d.ts +20 -0
- package/dist/agents/dynamic-agent-tool-categorization.d.ts +3 -0
- package/dist/agents/gpt-apply-patch-guard.d.ts +2 -0
- package/dist/agents/hephaestus/agent.d.ts +1 -1
- package/dist/agents/hephaestus/gpt-5-3-codex.d.ts +1 -2
- package/dist/agents/hephaestus/gpt-5-4.d.ts +22 -1
- package/dist/agents/hephaestus/gpt.d.ts +1 -1
- package/dist/agents/metis.d.ts +9 -9
- package/dist/agents/momus.d.ts +2 -2
- package/dist/agents/prometheus/behavioral-summary.d.ts +1 -1
- package/dist/agents/prometheus/identity-constraints.d.ts +4 -3
- package/dist/agents/prometheus/interview-mode.d.ts +3 -3
- package/dist/agents/prometheus/plan-generation.d.ts +4 -4
- package/dist/agents/prometheus/plan-template.d.ts +1 -1
- package/dist/agents/sisyphus/default.d.ts +2 -2
- package/dist/agents/sisyphus/gemini.d.ts +10 -10
- package/dist/agents/sisyphus/gpt-5-4.d.ts +18 -18
- package/dist/agents/sisyphus/index.d.ts +1 -1
- package/dist/agents/sisyphus.d.ts +1 -1
- package/dist/agents/types.d.ts +1 -0
- package/dist/cli/config-manager/backup-config.d.ts +6 -0
- package/dist/cli/config-manager/version-compatibility.d.ts +9 -0
- package/dist/cli/config-manager.d.ts +4 -0
- package/dist/cli/doctor/checks/system.d.ts +15 -2
- package/dist/cli/doctor/constants.d.ts +1 -1
- package/dist/cli/doctor/spawn-with-timeout.d.ts +8 -0
- package/dist/cli/index.js +27570 -18945
- package/dist/cli/install-validators.d.ts +1 -0
- package/dist/cli/mcp-oauth/login.d.ts +6 -1
- package/dist/cli/minimum-opencode-version.d.ts +1 -0
- package/dist/cli/model-fallback-types.d.ts +4 -0
- package/dist/cli/provider-model-id-transform.d.ts +1 -1
- package/dist/cli/run/continuation-state.d.ts +2 -1
- package/dist/cli/run/event-state.d.ts +0 -2
- package/dist/cli/run/types.d.ts +0 -1
- package/dist/cli/types.d.ts +4 -0
- package/dist/config/schema/agent-definitions.d.ts +3 -0
- package/dist/config/schema/agent-names.d.ts +2 -0
- package/dist/config/schema/agent-overrides.d.ts +330 -15
- package/dist/config/schema/background-task.d.ts +2 -1
- package/dist/config/schema/categories.d.ts +44 -2
- package/dist/config/schema/commands.d.ts +1 -0
- package/dist/config/schema/experimental.d.ts +1 -0
- package/dist/config/schema/fallback-models.d.ts +67 -1
- package/dist/config/schema/hooks.d.ts +3 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +345 -17
- package/dist/config/schema/sisyphus-agent.d.ts +1 -0
- package/dist/config/schema/tmux.d.ts +11 -0
- package/dist/create-hooks.d.ts +8 -0
- package/dist/create-managers.d.ts +16 -0
- package/dist/create-runtime-tmux-config.d.ts +10 -0
- package/dist/create-tools.d.ts +3 -2
- package/dist/features/background-agent/abort-with-timeout.d.ts +2 -0
- package/dist/features/background-agent/background-task-notification-template.d.ts +10 -4
- package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +5 -2
- package/dist/features/background-agent/constants.d.ts +1 -0
- package/dist/features/background-agent/fallback-retry-handler.d.ts +1 -1
- package/dist/features/background-agent/index.d.ts +2 -0
- package/dist/features/background-agent/manager.d.ts +10 -0
- package/dist/features/background-agent/process-cleanup.d.ts +1 -1
- package/dist/features/background-agent/session-existence.d.ts +3 -0
- package/dist/features/background-agent/spawner.d.ts +3 -0
- package/dist/features/background-agent/subagent-spawn-limits.d.ts +1 -8
- package/dist/features/background-agent/task-poller.d.ts +2 -0
- package/dist/features/background-agent/types.d.ts +2 -0
- package/dist/features/background-agent/wait-for-task-session.d.ts +17 -0
- package/dist/features/boulder-state/storage.d.ts +8 -1
- package/dist/features/boulder-state/types.d.ts +1 -0
- package/dist/features/builtin-commands/commands.d.ts +5 -1
- package/dist/features/builtin-commands/templates/handoff.d.ts +1 -1
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
- package/dist/features/builtin-commands/templates/ralph-loop.d.ts +3 -3
- package/dist/features/builtin-commands/templates/remove-ai-slops.d.ts +1 -0
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/builtin-skills/skills/ai-slop-remover.d.ts +2 -0
- package/dist/features/builtin-skills/skills/git-master-sections/commit-workflow.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/history-search-workflow.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/overview.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/quick-reference.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/rebase-workflow.d.ts +1 -0
- package/dist/features/builtin-skills/skills/index.d.ts +2 -0
- package/dist/features/builtin-skills/skills/playwright-cli.d.ts +1 -1
- package/dist/features/builtin-skills/skills/review-work.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/agent-definitions-loader.d.ts +3 -0
- package/dist/features/claude-code-agent-loader/index.d.ts +3 -0
- package/dist/features/claude-code-agent-loader/json-agent-loader.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/opencode-config-agents-reader.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/types.d.ts +9 -1
- package/dist/features/claude-code-mcp-loader/configure-allowed-env-vars.d.ts +5 -0
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +5 -2
- package/dist/features/claude-code-mcp-loader/index.d.ts +1 -0
- package/dist/features/claude-code-mcp-loader/scope-filter.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/types.d.ts +8 -4
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +2 -1
- package/dist/features/claude-code-plugin-loader/loader.d.ts +16 -0
- package/dist/features/claude-code-plugin-loader/scope-filter.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +21 -0
- package/dist/features/claude-code-session-state/state.d.ts +3 -0
- package/dist/features/context-injector/collector.d.ts +1 -0
- package/dist/features/mcp-oauth/provider.d.ts +1 -0
- package/dist/features/mcp-oauth/refresh-mutex.d.ts +26 -0
- package/dist/features/opencode-skill-loader/async-loader.d.ts +2 -2
- package/dist/features/skill-mcp-manager/connection.d.ts +3 -4
- package/dist/features/skill-mcp-manager/error-redaction.d.ts +10 -0
- package/dist/features/skill-mcp-manager/http-client.d.ts +17 -3
- package/dist/features/skill-mcp-manager/manager.d.ts +5 -3
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +12 -4
- package/dist/features/skill-mcp-manager/stdio-client.d.ts +16 -3
- package/dist/features/skill-mcp-manager/types.d.ts +25 -6
- package/dist/features/team-mode/index.d.ts +2 -0
- package/dist/features/team-mode/team-worktree/cleanup.d.ts +3 -0
- package/dist/features/team-mode/team-worktree/index.d.ts +2 -0
- package/dist/features/team-mode/team-worktree/manager.d.ts +15 -0
- package/dist/features/team-mode/types.d.ts +210 -0
- package/dist/features/tmux-subagent/manager.d.ts +16 -13
- package/dist/features/tmux-subagent/polling-manager.d.ts +5 -0
- package/dist/features/tmux-subagent/types.d.ts +2 -0
- package/dist/features/tool-metadata-store/index.d.ts +7 -0
- package/dist/features/tool-metadata-store/publish-tool-metadata.d.ts +9 -0
- package/dist/features/tool-metadata-store/recover-tool-metadata.d.ts +3 -0
- package/dist/features/tool-metadata-store/resolve-tool-call-id.d.ts +6 -0
- package/dist/features/tool-metadata-store/task-metadata-contract.d.ts +10 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +4 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-hook.d.ts +10 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-hook.test-support.d.ts +29 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/session-timeout-map.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/state.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +1 -0
- package/dist/hooks/atlas/background-launch-session-tracking.d.ts +11 -0
- package/dist/hooks/atlas/boulder-continuation-injector.d.ts +2 -1
- package/dist/hooks/atlas/session-last-agent.d.ts +10 -1
- package/dist/hooks/atlas/subagent-session-id.d.ts +1 -0
- package/dist/hooks/atlas/system-reminder-templates.d.ts +2 -2
- package/dist/hooks/atlas/task-context.d.ts +7 -0
- package/dist/hooks/atlas/types.d.ts +2 -0
- package/dist/hooks/auto-slash-command/executor.d.ts +1 -0
- package/dist/hooks/auto-slash-command/hook.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/sync-package-json.d.ts +1 -1
- package/dist/hooks/auto-update-checker/constants.d.ts +19 -3
- package/dist/hooks/auto-update-checker/hook/background-update-check.d.ts +29 -1
- package/dist/hooks/auto-update-checker/hook.d.ts +22 -1
- package/dist/hooks/bash-file-read-guard.d.ts +2 -0
- package/dist/hooks/claude-code-hooks/claude-code-hooks-hook.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/config.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/handlers/session-event-handler.d.ts +3 -1
- package/dist/hooks/claude-code-hooks/session-hook-state.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +2 -0
- package/dist/hooks/claude-code-hooks/transcript.d.ts +1 -3
- package/dist/hooks/comment-checker/cli-runner.d.ts +4 -1
- package/dist/hooks/comment-checker/hook.d.ts +1 -0
- package/dist/hooks/comment-checker/pending-calls.d.ts +1 -0
- package/dist/hooks/directory-agents-injector/hook.d.ts +7 -7
- package/dist/hooks/directory-readme-injector/hook.d.ts +7 -7
- package/dist/hooks/edit-error-recovery/hook.d.ts +1 -1
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
- package/dist/hooks/keyword-detector/hook.d.ts +2 -1
- package/dist/hooks/keyword-detector/ultrawork/default.d.ts +3 -4
- package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +11 -12
- package/dist/hooks/keyword-detector/ultrawork/gpt.d.ts +4 -5
- package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +1 -2
- package/dist/hooks/legacy-plugin-toast/auto-migrate-runner.d.ts +2 -0
- package/dist/hooks/legacy-plugin-toast/auto-migrate.d.ts +7 -0
- package/dist/hooks/legacy-plugin-toast/hook.d.ts +18 -0
- package/dist/hooks/legacy-plugin-toast/index.d.ts +1 -0
- package/dist/hooks/legacy-plugin-toast/plugin-entry-migrator.d.ts +1 -0
- package/dist/hooks/model-fallback/chat-message-fallback-handler.d.ts +23 -0
- package/dist/hooks/model-fallback/controller-accessor.d.ts +8 -0
- package/dist/hooks/model-fallback/fallback-state-controller.d.ts +26 -0
- package/dist/hooks/model-fallback/hook.d.ts +21 -16
- package/dist/hooks/model-fallback/index.d.ts +2 -0
- package/dist/hooks/model-fallback/next-fallback.d.ts +14 -0
- package/dist/hooks/preemptive-compaction-trigger.d.ts +13 -0
- package/dist/hooks/preemptive-compaction-types.d.ts +53 -0
- package/dist/hooks/preemptive-compaction.d.ts +3 -15
- package/dist/hooks/ralph-loop/completion-promise-detector-test-input.d.ts +11 -0
- package/dist/hooks/ralph-loop/constants.d.ts +1 -0
- package/dist/hooks/ralph-loop/oracle-verification-detector.d.ts +8 -0
- package/dist/hooks/read-image-resizer/image-resizer.d.ts +3 -1
- package/dist/hooks/read-image-resizer/png-fallback-resizer.d.ts +2 -0
- package/dist/hooks/rules-injector/constants.d.ts +1 -0
- package/dist/hooks/rules-injector/finder.d.ts +1 -1
- package/dist/hooks/rules-injector/hook.d.ts +2 -0
- package/dist/hooks/rules-injector/injector.d.ts +14 -0
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +9 -1
- package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +4 -0
- package/dist/hooks/runtime-fallback/error-classifier.d.ts +1 -5
- package/dist/hooks/runtime-fallback/fallback-models.d.ts +1 -1
- package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +5 -1
- package/dist/hooks/session-notification-event-properties.d.ts +5 -0
- package/dist/hooks/session-recovery/types.d.ts +2 -0
- package/dist/hooks/start-work/context-info-builder.d.ts +12 -0
- package/dist/hooks/start-work/start-work-hook.d.ts +6 -0
- package/dist/hooks/start-work/worktree-block.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/pending-question-detection.d.ts +1 -1
- package/dist/hooks/todo-continuation-enforcer/resolve-message-info.d.ts +2 -2
- package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +4 -3
- package/dist/hooks/todo-continuation-enforcer/token-limit-detection.d.ts +4 -0
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +14 -0
- package/dist/hooks/todo-description-override/description.d.ts +1 -1
- package/dist/hooks/tool-pair-validator/hook.d.ts +28 -0
- package/dist/hooks/tool-pair-validator/index.d.ts +1 -0
- package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +1 -0
- package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +2 -0
- package/dist/hooks/write-existing-file-guard/hook.d.ts +12 -0
- package/dist/hooks/write-existing-file-guard/session-read-permissions.d.ts +3 -0
- package/dist/hooks/write-existing-file-guard/tool-execute-before-handler.d.ts +15 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +84801 -95412
- package/dist/mcp/websearch.d.ts +2 -2
- package/dist/oh-my-opencode.schema.json +1059 -8
- package/dist/openclaw/config.d.ts +1 -1
- package/dist/openclaw/dispatcher.d.ts +9 -13
- package/dist/openclaw/gateway-url-validation.d.ts +1 -0
- package/dist/openclaw/reply-listener-discord.d.ts +4 -0
- package/dist/openclaw/reply-listener-injection.d.ts +10 -0
- package/dist/openclaw/reply-listener-log.d.ts +2 -0
- package/dist/openclaw/reply-listener-paths.d.ts +7 -0
- package/dist/openclaw/reply-listener-process.d.ts +4 -0
- package/dist/openclaw/reply-listener-spawn.d.ts +5 -0
- package/dist/openclaw/reply-listener-startup.d.ts +12 -0
- package/dist/openclaw/reply-listener-state.d.ts +29 -0
- package/dist/openclaw/reply-listener-telegram.d.ts +4 -0
- package/dist/openclaw/reply-listener.d.ts +5 -18
- package/dist/openclaw/runtime-dispatch.d.ts +17 -0
- package/dist/openclaw/types.d.ts +4 -0
- package/dist/plugin/chat-params.d.ts +1 -0
- package/dist/plugin/command-execute-before.d.ts +19 -0
- package/dist/plugin/hooks/create-core-hooks.d.ts +5 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +4 -1
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +4 -1
- package/dist/plugin/tool-registry.d.ts +26 -1
- package/dist/plugin/types.d.ts +1 -0
- package/dist/plugin-handlers/agent-priority-order.d.ts +11 -0
- package/dist/shared/agent-display-names.d.ts +23 -2
- package/dist/shared/agent-tool-restrictions.d.ts +0 -5
- package/dist/shared/archive-entry-validator.d.ts +6 -0
- package/dist/shared/background-output-consumption.d.ts +5 -0
- package/dist/shared/compaction-marker.d.ts +13 -0
- package/dist/shared/connected-providers-cache.d.ts +2 -1
- package/dist/shared/contains-path.d.ts +2 -0
- package/dist/shared/external-plugin-detector.d.ts +14 -0
- package/dist/shared/index.d.ts +9 -0
- package/dist/shared/internal-initiator-marker.d.ts +1 -0
- package/dist/shared/is-abort-error.d.ts +1 -0
- package/dist/shared/json-file-cache-store.d.ts +16 -0
- package/dist/shared/jsonc-parser.d.ts +1 -0
- package/dist/shared/legacy-plugin-warning.d.ts +7 -0
- package/dist/shared/load-opencode-plugins.d.ts +1 -0
- package/dist/shared/log-legacy-plugin-startup-warning.d.ts +10 -0
- package/dist/shared/migrate-legacy-config-file.d.ts +1 -0
- package/dist/shared/migrate-legacy-plugin-entry.d.ts +1 -0
- package/dist/shared/migration/migrations-sidecar.d.ts +41 -0
- package/dist/shared/model-capabilities/bundled-snapshot.d.ts +2 -0
- package/dist/shared/model-capabilities/get-model-capabilities.d.ts +2 -0
- package/dist/shared/model-capabilities/index.d.ts +3 -0
- package/dist/shared/model-capabilities/runtime-model-readers.d.ts +11 -0
- package/dist/shared/{model-capabilities.d.ts → model-capabilities/types.d.ts} +35 -32
- package/dist/shared/model-suggestion-retry.d.ts +0 -9
- package/dist/shared/opencode-provider-auth.d.ts +3 -0
- package/dist/shared/parse-tools-config.d.ts +6 -0
- package/dist/shared/permission-compat.d.ts +1 -1
- package/dist/shared/plugin-entry-migrator.d.ts +3 -0
- package/dist/shared/plugin-identity.d.ts +6 -3
- package/dist/shared/posthog-activity-state.d.ts +8 -0
- package/dist/shared/posthog.d.ts +14 -0
- package/dist/shared/resolve-agent-definition-paths.d.ts +1 -0
- package/dist/shared/ripgrep-cli.d.ts +8 -0
- package/dist/shared/session-category-registry.d.ts +0 -24
- package/dist/shared/session-cursor.d.ts +6 -0
- package/dist/shared/session-prompt-params-state.d.ts +1 -0
- package/dist/shared/shell-env.d.ts +6 -2
- package/dist/shared/skill-path-resolver.d.ts +0 -8
- package/dist/shared/task-system-enabled.d.ts +6 -0
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/window-spawn.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils.d.ts +3 -1
- package/dist/shared/write-file-atomically.d.ts +1 -0
- package/dist/shared/zip-entry-listing/powershell-zip-entry-listing.d.ts +4 -0
- package/dist/shared/zip-entry-listing/python-zip-entry-listing.d.ts +3 -0
- package/dist/shared/zip-entry-listing/read-zip-symlink-target.d.ts +1 -0
- package/dist/shared/zip-entry-listing/tar-zip-entry-listing.d.ts +3 -0
- package/dist/shared/zip-entry-listing/zipinfo-zip-entry-listing.d.ts +4 -0
- package/dist/shared/zip-entry-listing.d.ts +4 -0
- package/dist/testing/module-mock-lifecycle.d.ts +21 -0
- package/dist/tools/background-task/constants.d.ts +3 -3
- package/dist/tools/call-omo-agent/agent-resolver.d.ts +17 -0
- package/dist/tools/call-omo-agent/background-executor.d.ts +2 -1
- package/dist/tools/call-omo-agent/constants.d.ts +1 -1
- package/dist/tools/call-omo-agent/sync-executor.d.ts +4 -4
- package/dist/tools/call-omo-agent/tools.d.ts +2 -1
- package/dist/tools/delegate-task/anthropic-categories.d.ts +2 -0
- package/dist/tools/delegate-task/builtin-categories.d.ts +4 -0
- package/dist/tools/delegate-task/builtin-category-definition.d.ts +7 -0
- package/dist/tools/delegate-task/constants.d.ts +1 -12
- package/dist/tools/delegate-task/delegated-model-config.d.ts +3 -0
- package/dist/tools/delegate-task/executor-types.d.ts +4 -1
- package/dist/tools/delegate-task/fallback-entry-resolution.d.ts +12 -0
- package/dist/tools/delegate-task/fallback-entry-settings.d.ts +7 -0
- package/dist/tools/delegate-task/google-categories.d.ts +2 -0
- package/dist/tools/delegate-task/kimi-categories.d.ts +2 -0
- package/dist/tools/delegate-task/openai-categories.d.ts +2 -0
- package/dist/tools/delegate-task/prompt-builder.d.ts +1 -1
- package/dist/tools/delegate-task/resolve-metadata-model.d.ts +8 -0
- package/dist/tools/delegate-task/subagent-discovery.d.ts +15 -0
- package/dist/tools/delegate-task/sync-continuation.d.ts +2 -2
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +2 -0
- package/dist/tools/delegate-task/sync-task-fallback.d.ts +12 -0
- package/dist/tools/delegate-task/task-id.d.ts +2 -0
- package/dist/tools/delegate-task/tool-argument-preparation.d.ts +2 -0
- package/dist/tools/delegate-task/tool-description.d.ts +9 -0
- package/dist/tools/delegate-task/types.d.ts +5 -2
- package/dist/tools/glob/constants.d.ts +1 -1
- package/dist/tools/grep/cli.d.ts +3 -2
- package/dist/tools/grep/constants.d.ts +0 -9
- package/dist/tools/hashline-edit/tool-description.d.ts +1 -1
- package/dist/tools/look-at/constants.d.ts +1 -1
- package/dist/tools/look-at/look-at-input-preparer.d.ts +22 -0
- package/dist/tools/look-at/look-at-prompt.d.ts +2 -0
- package/dist/tools/look-at/look-at-session-runner.d.ts +12 -0
- package/dist/tools/lsp/infer-extension.d.ts +1 -0
- package/dist/tools/session-manager/file-storage.d.ts +8 -0
- package/dist/tools/session-manager/sdk-storage.d.ts +8 -0
- package/dist/tools/session-manager/sdk-unavailable.d.ts +1 -0
- package/dist/tools/session-manager/storage.d.ts +1 -1
- package/dist/tools/session-manager/tools.d.ts +19 -1
- package/dist/tools/skill/constants.d.ts +2 -2
- package/dist/tools/skill/description-formatter.d.ts +3 -0
- package/dist/tools/skill/mcp-capability-formatter.d.ts +3 -0
- package/dist/tools/skill/native-skills.d.ts +12 -0
- package/dist/tools/skill/scope-priority.d.ts +4 -0
- package/dist/tools/skill/skill-body.d.ts +2 -0
- package/dist/tools/skill/skill-matcher.d.ts +5 -0
- package/dist/tools/skill/types.d.ts +30 -2
- package/dist/tools/skill-mcp/parse-skill-mcp-arguments.d.ts +1 -0
- package/dist/tools/skill-mcp/tools.d.ts +1 -1
- package/package.json +26 -25
- package/postinstall.mjs +75 -1
- package/dist/hooks/openclaw.d.ts +0 -11
- package/dist/plugin-dispose.d.ts +0 -10
- /package/dist/{tools/delegate-task → shared}/model-string-parser.d.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
2
|
+
import type { DelegatedModelConfig } from "./types";
|
|
3
|
+
export declare function resolveEffectiveFallbackEntry(input: {
|
|
4
|
+
categoryModel: DelegatedModelConfig | undefined;
|
|
5
|
+
configuredFallbackChain: FallbackEntry[] | undefined;
|
|
6
|
+
resolution: {
|
|
7
|
+
skipped: true;
|
|
8
|
+
} | {
|
|
9
|
+
fallbackEntry?: FallbackEntry;
|
|
10
|
+
matchedFallback?: boolean;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}): FallbackEntry | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DelegatedModelConfig } from "./types";
|
|
2
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
3
|
+
export declare function applyFallbackEntrySettings(input: {
|
|
4
|
+
categoryModel: DelegatedModelConfig;
|
|
5
|
+
effectiveEntry: FallbackEntry;
|
|
6
|
+
variantOverride?: string;
|
|
7
|
+
}): DelegatedModelConfig;
|
|
@@ -4,4 +4,4 @@ import type { BuildSystemContentInput } from "./types";
|
|
|
4
4
|
* Combines skill content, category prompt append, and plan agent system prepend.
|
|
5
5
|
*/
|
|
6
6
|
export declare function buildSystemContent(input: BuildSystemContentInput): string | undefined;
|
|
7
|
-
export declare function buildTaskPrompt(prompt: string, agentName: string | undefined): string;
|
|
7
|
+
export declare function buildTaskPrompt(prompt: string, agentName: string | undefined, tddEnabled?: boolean): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DelegatedModelConfig } from "./types";
|
|
2
|
+
export interface MetadataModel {
|
|
3
|
+
providerID: string;
|
|
4
|
+
modelID: string;
|
|
5
|
+
}
|
|
6
|
+
type ModelLike = Pick<DelegatedModelConfig, "providerID" | "modelID"> | MetadataModel;
|
|
7
|
+
export declare function resolveMetadataModel(primary: ModelLike | undefined, fallback: ModelLike | undefined): MetadataModel | undefined;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type AgentMode = "subagent" | "primary" | "all" | undefined;
|
|
2
|
+
export type AgentInfo = {
|
|
3
|
+
name: string;
|
|
4
|
+
mode?: "subagent" | "primary" | "all";
|
|
5
|
+
model?: string | {
|
|
6
|
+
providerID: string;
|
|
7
|
+
modelID: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function sanitizeSubagentType(subagentType: string): string;
|
|
11
|
+
export declare function mergeWithClaudeCodeAgents(serverAgents: AgentInfo[], directory: string | undefined): AgentInfo[];
|
|
12
|
+
export declare function isTaskCallableAgentMode(mode: AgentMode): boolean;
|
|
13
|
+
export declare function findPrimaryAgentMatch(agents: AgentInfo[], requestedAgentName: string): AgentInfo | undefined;
|
|
14
|
+
export declare function findCallableAgentMatch(agents: AgentInfo[], requestedAgentName: string): AgentInfo | undefined;
|
|
15
|
+
export declare function listCallableAgentNames(agents: AgentInfo[]): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
2
|
-
import type { ExecutorContext } from "./executor-types";
|
|
2
|
+
import type { ExecutorContext, ParentContext } from "./executor-types";
|
|
3
3
|
import { type SyncContinuationDeps } from "./sync-continuation-deps";
|
|
4
|
-
export declare function executeSyncContinuation(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, deps?: SyncContinuationDeps): Promise<string>;
|
|
4
|
+
export declare function executeSyncContinuation(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext, deps?: SyncContinuationDeps): Promise<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DelegateTaskArgs, OpencodeClient, DelegatedModelConfig } from "./types";
|
|
2
|
+
import type { SisyphusAgentConfig } from "../../config/schema";
|
|
2
3
|
import { promptSyncWithModelSuggestionRetry, promptWithModelSuggestionRetry } from "../../shared/model-suggestion-retry";
|
|
3
4
|
type SendSyncPromptDeps = {
|
|
4
5
|
promptWithModelSuggestionRetry: typeof promptWithModelSuggestionRetry;
|
|
@@ -14,5 +15,6 @@ export declare function sendSyncPrompt(client: OpencodeClient, input: {
|
|
|
14
15
|
removeTask: (id: string) => void;
|
|
15
16
|
} | null | undefined;
|
|
16
17
|
taskId: string | undefined;
|
|
18
|
+
sisyphusAgentConfig?: SisyphusAgentConfig;
|
|
17
19
|
}, deps?: SendSyncPromptDeps): Promise<string | null>;
|
|
18
20
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
2
|
+
import type { DelegatedModelConfig } from "./types";
|
|
3
|
+
export declare function retrySyncPromptWithFallbacks(input: {
|
|
4
|
+
sessionID: string;
|
|
5
|
+
initialError: string;
|
|
6
|
+
categoryModel: DelegatedModelConfig | undefined;
|
|
7
|
+
fallbackChain: FallbackEntry[] | undefined;
|
|
8
|
+
sendPrompt: (categoryModel: DelegatedModelConfig) => Promise<string | null>;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
promptError: string | null;
|
|
11
|
+
categoryModel: DelegatedModelConfig | undefined;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
2
|
+
import type { DelegateTaskToolOptions } from "./types";
|
|
3
|
+
export interface DelegateTaskPresentation {
|
|
4
|
+
availableCategories: AvailableCategory[];
|
|
5
|
+
availableSkills: AvailableSkill[];
|
|
6
|
+
categoryExamples: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function createDelegateTaskPresentation(options: DelegateTaskToolOptions): DelegateTaskPresentation;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
-
import type { CategoriesConfig, GitMasterConfig, BrowserAutomationProvider, AgentOverrides } from "../../config/schema";
|
|
3
|
+
import type { CategoriesConfig, GitMasterConfig, BrowserAutomationProvider, AgentOverrides, SisyphusAgentConfig } from "../../config/schema";
|
|
4
|
+
import type { ModelFallbackControllerAccessor } from "../../hooks/model-fallback";
|
|
4
5
|
import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
5
6
|
export type OpencodeClient = PluginInput["client"];
|
|
6
7
|
export interface DelegateTaskArgs {
|
|
@@ -9,7 +10,7 @@ export interface DelegateTaskArgs {
|
|
|
9
10
|
category?: string;
|
|
10
11
|
subagent_type?: string;
|
|
11
12
|
run_in_background: boolean;
|
|
12
|
-
|
|
13
|
+
task_id?: string;
|
|
13
14
|
command?: string;
|
|
14
15
|
load_skills: string[];
|
|
15
16
|
execute?: {
|
|
@@ -62,6 +63,8 @@ export interface DelegateTaskToolOptions {
|
|
|
62
63
|
availableCategories?: AvailableCategory[];
|
|
63
64
|
availableSkills?: AvailableSkill[];
|
|
64
65
|
agentOverrides?: AgentOverrides;
|
|
66
|
+
sisyphusAgentConfig?: SisyphusAgentConfig;
|
|
67
|
+
modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
|
|
65
68
|
onSyncSessionCreated?: (event: SyncSessionCreatedEvent) => Promise<void>;
|
|
66
69
|
syncPollTimeoutMs?: number;
|
|
67
70
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { resolveGrepCli, resolveGrepCliWithAutoInstall, type GrepBackend, DEFAULT_RG_THREADS } from "
|
|
1
|
+
export { resolveGrepCli, resolveGrepCliWithAutoInstall, type GrepBackend, DEFAULT_RG_THREADS } from "../../shared/ripgrep-cli";
|
|
2
2
|
export declare const DEFAULT_TIMEOUT_MS = 60000;
|
|
3
3
|
export declare const DEFAULT_LIMIT = 100;
|
|
4
4
|
export declare const DEFAULT_MAX_DEPTH = 20;
|
package/dist/tools/grep/cli.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ResolvedCli } from "../../shared/ripgrep-cli";
|
|
1
2
|
import type { GrepOptions, GrepResult, CountResult } from "./types";
|
|
2
|
-
export declare function runRg(options: GrepOptions): Promise<GrepResult>;
|
|
3
|
-
export declare function runRgCount(options: Omit<GrepOptions, "context"
|
|
3
|
+
export declare function runRg(options: GrepOptions, resolvedCli?: ResolvedCli): Promise<GrepResult>;
|
|
4
|
+
export declare function runRgCount(options: Omit<GrepOptions, "context">, resolvedCli?: ResolvedCli): Promise<CountResult[]>;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export type GrepBackend = "rg" | "grep";
|
|
2
|
-
interface ResolvedCli {
|
|
3
|
-
path: string;
|
|
4
|
-
backend: GrepBackend;
|
|
5
|
-
}
|
|
6
|
-
export declare function resolveGrepCli(): ResolvedCli;
|
|
7
|
-
export declare function resolveGrepCliWithAutoInstall(): Promise<ResolvedCli>;
|
|
8
1
|
export declare const DEFAULT_MAX_DEPTH = 20;
|
|
9
2
|
export declare const DEFAULT_MAX_FILESIZE = "10M";
|
|
10
3
|
export declare const DEFAULT_MAX_COUNT = 500;
|
|
@@ -12,7 +5,5 @@ export declare const DEFAULT_MAX_COLUMNS = 1000;
|
|
|
12
5
|
export declare const DEFAULT_CONTEXT = 2;
|
|
13
6
|
export declare const DEFAULT_TIMEOUT_MS = 60000;
|
|
14
7
|
export declare const DEFAULT_MAX_OUTPUT_BYTES: number;
|
|
15
|
-
export declare const DEFAULT_RG_THREADS = 4;
|
|
16
8
|
export declare const RG_SAFETY_FLAGS: readonly ["--no-follow", "--color=never", "--no-heading", "--line-number", "--with-filename"];
|
|
17
9
|
export declare const GREP_SAFETY_FLAGS: readonly ["-n", "-H", "--color=never"];
|
|
18
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HASHLINE_EDIT_DESCRIPTION = "
|
|
1
|
+
export declare const HASHLINE_EDIT_DESCRIPTION = "Edit files using LINE#ID format for precise, safe modifications.\n\nWORKFLOW:\n1. Read target file/range and copy exact LINE#ID tags.\n2. Pick the smallest operation per logical mutation site.\n3. Submit one edit call per file with all related operations.\n4. If same file needs another call, re-read first.\n5. Use anchors as \"LINE#ID\" only (never include trailing \"|content\").\n\n<must>\n- SNAPSHOT: All edits in one call reference the ORIGINAL file state. Do NOT adjust line numbers for prior edits in the same call - the system applies them bottom-up automatically.\n- replace removes lines pos..end (inclusive) and inserts lines in their place. Lines BEFORE pos and AFTER end are UNTOUCHED - do NOT include them in lines. If you do, they will appear twice.\n- lines must contain ONLY the content that belongs inside the consumed range. Content after end survives unchanged.\n- Tags MUST be copied exactly from read output or >>> mismatch output. NEVER guess tags.\n- Batch = multiple operations in edits[], NOT one big replace covering everything. Each operation targets the smallest possible change.\n- lines must contain plain replacement text only (no LINE#ID prefixes, no diff + markers).\n</must>\n\n<operations>\nLINE#ID FORMAT:\n Each line reference must be in \"{line_number}#{hash_id}\" format where:\n {line_number}: 1-based line number\n {hash_id}: Two CID letters from the set ZPMQVRWSNKTXJBYH\n\nOPERATION CHOICE:\n replace with pos only -> replace one line at pos\n replace with pos+end -> replace range pos..end inclusive as a block (ranges MUST NOT overlap across edits)\n append with pos/end anchor -> insert after that anchor\n prepend with pos/end anchor -> insert before that anchor\n append/prepend without anchors -> EOF/BOF insertion (also creates missing files)\n\nCONTENT FORMAT:\n lines can be a string (single line) or string[] (multi-line, preferred).\n If you pass a multi-line string, it is split by real newline characters.\n lines: null or lines: [] with replace -> delete those lines.\n\nFILE MODES:\n delete=true deletes file and requires edits=[] with no rename\n rename moves final content to a new path and removes old path\n\nRULES:\n 1. Minimize scope: one logical mutation site per operation.\n 2. Preserve formatting: keep indentation, punctuation, line breaks, trailing commas, brace style.\n 3. Prefer insertion over neighbor rewrites: anchor to structural boundaries (}, ], },), not interior property lines.\n 4. No no-ops: replacement content must differ from current content.\n 5. Touch only requested code: avoid incidental edits.\n 6. Use exact current tokens: NEVER rewrite approximately.\n 7. For swaps/moves: prefer one range operation over multiple single-line operations.\n 8. Anchor to structural lines (function/class/brace), NEVER blank lines.\n 9. Re-read after each successful edit call before issuing another on the same file.\n</operations>\n\n<examples>\nGiven this file content after read:\n 10#VK|function hello() {\n 11#XJ| console.log(\"hi\");\n 12#MB| console.log(\"bye\");\n 13#QR|}\n 14#TN|\n 15#WS|function world() {\n\nSingle-line replace (change line 11):\n { op: \"replace\", pos: \"11#XJ\", lines: [\" console.log(\\\"hello\\\");\"] }\n Result: line 11 replaced. Lines 10, 12-15 unchanged.\n\nRange replace (rewrite function body, lines 11-12):\n { op: \"replace\", pos: \"11#XJ\", end: \"12#MB\", lines: [\" return \\\"hello world\\\";\"] }\n Result: lines 11-12 removed, replaced by 1 new line. Lines 10, 13-15 unchanged.\n\nDelete a line:\n { op: \"replace\", pos: \"12#MB\", lines: null }\n Result: line 12 removed. Lines 10-11, 13-15 unchanged.\n\nInsert after line 13 (between functions):\n { op: \"append\", pos: \"13#QR\", lines: [\"\", \"function added() {\", \" return true;\", \"}\"] }\n Result: 4 new lines inserted after line 13. All existing lines unchanged.\n\nBAD - lines extend past end (DUPLICATES line 13):\n { op: \"replace\", pos: \"11#XJ\", end: \"12#MB\", lines: [\" return \\\"hi\\\";\", \"}\"] }\n Line 13 is \"}\" which already exists after end. Including \"}\" in lines duplicates it.\n CORRECT: { op: \"replace\", pos: \"11#XJ\", end: \"12#MB\", lines: [\" return \\\"hi\\\";\"] }\n</examples>\n\n<auto>\nBuilt-in autocorrect (you do NOT need to handle these):\n Merged lines are auto-expanded back to original line count.\n Indentation is auto-restored from original lines.\n BOM and CRLF line endings are preserved automatically.\n Hashline prefixes and diff markers in text are auto-stripped.\n Boundary echo lines (duplicating adjacent surviving lines) are auto-stripped.\n</auto>\n\nRECOVERY (when >>> mismatch error appears):\n Copy the updated LINE#ID tags shown in the error output directly.\n Re-read only if the needed tags are missing from the error snippet.";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const MULTIMODAL_LOOKER_AGENT: "multimodal-looker";
|
|
2
|
-
export declare const LOOK_AT_DESCRIPTION = "
|
|
2
|
+
export declare const LOOK_AT_DESCRIPTION = "Extract basic information from media files (PDFs, images, diagrams) when a quick summary suffices over precise reading. Good for simple text-based content extraction without using the Read tool. NEVER use for visual precision, aesthetic evaluation, or exact accuracy - use Read tool instead for those cases.";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LookAtArgs } from "./types";
|
|
2
|
+
export interface LookAtFilePart {
|
|
3
|
+
type: "file";
|
|
4
|
+
mime: string;
|
|
5
|
+
url: string;
|
|
6
|
+
filename: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PreparedLookAtInput {
|
|
9
|
+
readonly filePart: LookAtFilePart;
|
|
10
|
+
readonly isBase64Input: boolean;
|
|
11
|
+
readonly sourceDescription: string;
|
|
12
|
+
cleanup(): void;
|
|
13
|
+
}
|
|
14
|
+
type PrepareLookAtInputResult = {
|
|
15
|
+
ok: true;
|
|
16
|
+
value: PreparedLookAtInput;
|
|
17
|
+
} | {
|
|
18
|
+
ok: false;
|
|
19
|
+
error: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function prepareLookAtInput(args: LookAtArgs): PrepareLookAtInputResult;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import type { ToolContext } from "@opencode-ai/plugin/tool";
|
|
3
|
+
import type { LookAtFilePart } from "./look-at-input-preparer";
|
|
4
|
+
interface RunLookAtSessionInput {
|
|
5
|
+
ctx: PluginInput;
|
|
6
|
+
toolContext: ToolContext;
|
|
7
|
+
goal: string;
|
|
8
|
+
filePart: LookAtFilePart;
|
|
9
|
+
isBase64Input: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function runLookAtSession({ ctx, toolContext, goal, filePart, isBase64Input, }: RunLookAtSessionInput): Promise<string>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function inferExtensionFromDirectory(directory: string): string | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SessionInfo, SessionMessage, SessionMetadata, TodoItem } from "./types";
|
|
2
|
+
export declare function getFileMainSessions(directory?: string): Promise<SessionMetadata[]>;
|
|
3
|
+
export declare function getFileAllSessions(): Promise<string[]>;
|
|
4
|
+
export declare function fileSessionExists(sessionID: string): Promise<boolean>;
|
|
5
|
+
export declare function getFileSessionMessages(sessionID: string): Promise<SessionMessage[]>;
|
|
6
|
+
export declare function getFileSessionTodos(sessionID: string): Promise<TodoItem[]>;
|
|
7
|
+
export declare function getFileSessionTranscript(sessionID: string): Promise<number>;
|
|
8
|
+
export declare function getFileSessionInfo(sessionID: string): Promise<SessionInfo | null>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import type { SessionMessage, SessionMetadata, TodoItem } from "./types";
|
|
3
|
+
export declare function getSdkMainSessions(client: PluginInput["client"], directory?: string): Promise<SessionMetadata[]>;
|
|
4
|
+
export declare function getSdkAllSessions(client: PluginInput["client"]): Promise<string[]>;
|
|
5
|
+
export declare function sdkSessionExists(client: PluginInput["client"], sessionID: string): Promise<boolean>;
|
|
6
|
+
export declare function getSdkSessionMessages(client: PluginInput["client"], sessionID: string): Promise<SessionMessage[]>;
|
|
7
|
+
export declare function getSdkSessionTodos(client: PluginInput["client"], sessionID: string): Promise<TodoItem[]>;
|
|
8
|
+
export declare function shouldFallbackFromSdkError(error: unknown): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isSessionSdkUnavailableError(value: unknown): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { SessionMessage,
|
|
2
|
+
import type { SessionInfo, SessionMessage, SessionMetadata, TodoItem } from "./types";
|
|
3
3
|
export interface GetMainSessionsOptions {
|
|
4
4
|
directory?: string;
|
|
5
5
|
}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
3
|
-
|
|
3
|
+
import { getAllSessions, getMainSessions, getSessionInfo, readSessionMessages, readSessionTodos, sessionExists, setStorageClient } from "./storage";
|
|
4
|
+
import { filterSessionsByDate, formatSessionInfo, formatSessionList, formatSessionMessages, formatSearchResults, searchInSession } from "./session-formatter";
|
|
5
|
+
type SessionManagerToolDeps = {
|
|
6
|
+
getAllSessions: typeof getAllSessions;
|
|
7
|
+
getMainSessions: typeof getMainSessions;
|
|
8
|
+
getSessionInfo: typeof getSessionInfo;
|
|
9
|
+
readSessionMessages: typeof readSessionMessages;
|
|
10
|
+
readSessionTodos: typeof readSessionTodos;
|
|
11
|
+
sessionExists: typeof sessionExists;
|
|
12
|
+
setStorageClient: typeof setStorageClient;
|
|
13
|
+
filterSessionsByDate: typeof filterSessionsByDate;
|
|
14
|
+
formatSessionInfo: typeof formatSessionInfo;
|
|
15
|
+
formatSessionList: typeof formatSessionList;
|
|
16
|
+
formatSessionMessages: typeof formatSessionMessages;
|
|
17
|
+
formatSearchResults: typeof formatSearchResults;
|
|
18
|
+
searchInSession: typeof searchInSession;
|
|
19
|
+
};
|
|
20
|
+
export declare function createSessionManagerTools(ctx: PluginInput, deps?: Partial<SessionManagerToolDeps>): Record<string, ToolDefinition>;
|
|
21
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const TOOL_NAME: "skill";
|
|
2
|
-
export declare const TOOL_DESCRIPTION_NO_SKILLS = "
|
|
3
|
-
export declare const TOOL_DESCRIPTION_PREFIX = "
|
|
2
|
+
export declare const TOOL_DESCRIPTION_NO_SKILLS = "Load a skill or execute a slash command to get detailed instructions for a specific task. No skills are currently available.";
|
|
3
|
+
export declare const TOOL_DESCRIPTION_PREFIX = "Load a skill or execute a slash command to get detailed instructions for a specific task.\n\nSkills and commands provide specialized knowledge and step-by-step guidance.\nUse this when a task matches an available skill's or command's description.\n\n**How to use:**\n- Call with a skill name: name='review-work'\n- Call with a command name (without leading slash): name='publish'\n- The tool will return detailed instructions with your context applied.\n";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SkillMcpManager } from "../../features/skill-mcp-manager";
|
|
2
|
+
import type { LoadedSkill } from "../../features/opencode-skill-loader";
|
|
3
|
+
export declare function formatMcpCapabilities(skill: LoadedSkill, manager: SkillMcpManager, sessionID: string): Promise<string | null>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SkillInfo } from "./types";
|
|
2
|
+
import type { LoadedSkill } from "../../features/opencode-skill-loader";
|
|
3
|
+
export type NativeSkillEntry = {
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
location: string;
|
|
7
|
+
content: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function loadedSkillToInfo(skill: LoadedSkill): SkillInfo;
|
|
10
|
+
export declare function mergeNativeSkills(skills: LoadedSkill[], nativeSkills: NativeSkillEntry[]): void;
|
|
11
|
+
export declare function mergeNativeSkillInfos(skillInfos: SkillInfo[], nativeSkills: NativeSkillEntry[]): void;
|
|
12
|
+
export declare function isPromiseLike<TValue>(value: TValue | Promise<TValue>): value is Promise<TValue>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CommandInfo } from "../slashcommand/types";
|
|
2
|
+
import type { LoadedSkill } from "../../features/opencode-skill-loader";
|
|
3
|
+
export declare function matchSkillByName(skills: LoadedSkill[], requestedName: string): LoadedSkill | undefined;
|
|
4
|
+
export declare function matchCommandByName(commands: CommandInfo[], requestedName: string): CommandInfo | undefined;
|
|
5
|
+
export declare function findPartialMatches(skills: LoadedSkill[], commands: CommandInfo[], requestedName: string): string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SkillScope, LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
2
2
|
import type { SkillMcpManager } from "../../features/skill-mcp-manager";
|
|
3
|
-
import type { GitMasterConfig } from "../../config/schema";
|
|
3
|
+
import type { BrowserAutomationProvider, GitMasterConfig } from "../../config/schema";
|
|
4
4
|
import type { CommandInfo } from "../slashcommand/types";
|
|
5
5
|
export interface SkillArgs {
|
|
6
6
|
name: string;
|
|
@@ -26,12 +26,40 @@ export interface SkillLoadOptions {
|
|
|
26
26
|
/** MCP manager for querying skill-embedded MCP servers */
|
|
27
27
|
mcpManager?: SkillMcpManager;
|
|
28
28
|
/** Session ID getter for MCP client identification */
|
|
29
|
-
getSessionID?: () => string;
|
|
29
|
+
getSessionID?: () => string | undefined;
|
|
30
30
|
/** Git master configuration for watermark/co-author settings */
|
|
31
31
|
gitMasterConfig?: GitMasterConfig;
|
|
32
32
|
disabledSkills?: Set<string>;
|
|
33
|
+
/** Browser automation provider for provider-gated skill filtering */
|
|
34
|
+
browserProvider?: BrowserAutomationProvider;
|
|
33
35
|
/** Include Claude marketplace plugin commands in discovery (default: true) */
|
|
34
36
|
pluginsEnabled?: boolean;
|
|
35
37
|
/** Override plugin enablement from Claude settings by plugin key */
|
|
36
38
|
enabledPluginsOverride?: Record<string, boolean>;
|
|
39
|
+
/** Native skill accessor from PluginInput for discovering skills registered via config.skills.paths */
|
|
40
|
+
nativeSkills?: {
|
|
41
|
+
all(): {
|
|
42
|
+
name: string;
|
|
43
|
+
description: string;
|
|
44
|
+
location: string;
|
|
45
|
+
content: string;
|
|
46
|
+
}[] | Promise<{
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
location: string;
|
|
50
|
+
content: string;
|
|
51
|
+
}[]>;
|
|
52
|
+
get(name: string): {
|
|
53
|
+
name: string;
|
|
54
|
+
description: string;
|
|
55
|
+
location: string;
|
|
56
|
+
content: string;
|
|
57
|
+
} | undefined | Promise<{
|
|
58
|
+
name: string;
|
|
59
|
+
description: string;
|
|
60
|
+
location: string;
|
|
61
|
+
content: string;
|
|
62
|
+
} | undefined>;
|
|
63
|
+
dirs(): string[] | Promise<string[]>;
|
|
64
|
+
};
|
|
37
65
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseSkillMcpArguments(argsJson: string | Record<string, unknown> | undefined): Record<string, unknown>;
|
|
@@ -4,7 +4,7 @@ import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
|
4
4
|
interface SkillMcpToolOptions {
|
|
5
5
|
manager: SkillMcpManager;
|
|
6
6
|
getLoadedSkills: () => LoadedSkill[];
|
|
7
|
-
getSessionID
|
|
7
|
+
getSessionID?: () => string | undefined;
|
|
8
8
|
}
|
|
9
9
|
export declare function applyGrepFilter(output: string, pattern: string | undefined): string;
|
|
10
10
|
export declare function createSkillMcpTool(options: SkillMcpToolOptions): ToolDefinition;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skj1724/oh-my-opencode",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.4",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
|
-
"main": "dist/index.js",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
9
|
-
"oh-my-opencode": "bin/oh-my-opencode.js"
|
|
9
|
+
"oh-my-opencode": "bin/oh-my-opencode.js",
|
|
10
|
+
"oh-my-openagent": "bin/oh-my-opencode.js"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|
|
12
13
|
"dist",
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"./schema.json": "./dist/oh-my-opencode.schema.json"
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
|
-
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
|
|
25
|
+
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external zod && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
|
|
25
26
|
"build:all": "bun run build && bun run build:binaries",
|
|
26
27
|
"build:binaries": "bun run script/build-binaries.ts",
|
|
27
28
|
"build:schema": "bun run script/build-schema.ts",
|
|
@@ -59,8 +60,8 @@
|
|
|
59
60
|
"@clack/prompts": "^0.11.0",
|
|
60
61
|
"@code-yeongyu/comment-checker": "^0.7.0",
|
|
61
62
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
62
|
-
"@opencode-ai/plugin": "^1.
|
|
63
|
-
"@opencode-ai/sdk": "^1.
|
|
63
|
+
"@opencode-ai/plugin": "^1.4.0",
|
|
64
|
+
"@opencode-ai/sdk": "^1.4.0",
|
|
64
65
|
"commander": "^14.0.2",
|
|
65
66
|
"detect-libc": "^2.0.0",
|
|
66
67
|
"diff": "^8.0.3",
|
|
@@ -68,36 +69,36 @@
|
|
|
68
69
|
"jsonc-parser": "^3.3.1",
|
|
69
70
|
"picocolors": "^1.1.1",
|
|
70
71
|
"picomatch": "^4.0.2",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
72
|
+
"posthog-node": "^5.29.2",
|
|
73
|
+
"vscode-jsonrpc": "^8.2.0"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@types/js-yaml": "^4.0.9",
|
|
76
77
|
"@types/picomatch": "^3.0.2",
|
|
77
|
-
"bun-types": "1.3.
|
|
78
|
+
"bun-types": "1.3.11",
|
|
78
79
|
"typescript": "^5.7.3",
|
|
79
|
-
"
|
|
80
|
+
"zod": "^4.3.0"
|
|
80
81
|
},
|
|
81
82
|
"optionalDependencies": {
|
|
82
|
-
"oh-my-opencode-darwin-arm64": "3.
|
|
83
|
-
"oh-my-opencode-darwin-x64": "3.
|
|
84
|
-
"oh-my-opencode-darwin-x64-baseline": "3.
|
|
85
|
-
"oh-my-opencode-linux-arm64": "3.
|
|
86
|
-
"oh-my-opencode-linux-arm64-musl": "3.
|
|
87
|
-
"oh-my-opencode-linux-x64": "3.
|
|
88
|
-
"oh-my-opencode-linux-x64-baseline": "3.
|
|
89
|
-
"oh-my-opencode-linux-x64-musl": "3.
|
|
90
|
-
"oh-my-opencode-linux-x64-musl-baseline": "3.
|
|
91
|
-
"oh-my-opencode-windows-x64": "3.
|
|
92
|
-
"oh-my-opencode-windows-x64-baseline": "3.
|
|
93
|
-
},
|
|
94
|
-
"overrides": {
|
|
95
|
-
"@opencode-ai/sdk": "^1.2.24"
|
|
83
|
+
"oh-my-opencode-darwin-arm64": "3.17.4",
|
|
84
|
+
"oh-my-opencode-darwin-x64": "3.17.4",
|
|
85
|
+
"oh-my-opencode-darwin-x64-baseline": "3.17.4",
|
|
86
|
+
"oh-my-opencode-linux-arm64": "3.17.4",
|
|
87
|
+
"oh-my-opencode-linux-arm64-musl": "3.17.4",
|
|
88
|
+
"oh-my-opencode-linux-x64": "3.17.4",
|
|
89
|
+
"oh-my-opencode-linux-x64-baseline": "3.17.4",
|
|
90
|
+
"oh-my-opencode-linux-x64-musl": "3.17.4",
|
|
91
|
+
"oh-my-opencode-linux-x64-musl-baseline": "3.17.4",
|
|
92
|
+
"oh-my-opencode-windows-x64": "3.17.4",
|
|
93
|
+
"oh-my-opencode-windows-x64-baseline": "3.17.4"
|
|
96
94
|
},
|
|
95
|
+
"overrides": {},
|
|
97
96
|
"trustedDependencies": [
|
|
98
97
|
"@ast-grep/cli",
|
|
99
98
|
"@ast-grep/napi",
|
|
100
99
|
"@code-yeongyu/comment-checker"
|
|
101
100
|
],
|
|
102
|
-
"
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"zod": "^4.0.0"
|
|
103
|
+
}
|
|
103
104
|
}
|