@heidi-dang/oh-my-opencode 3.12.4 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -367
- package/dist/agents/atlas/agent.d.ts +1 -1
- package/dist/agents/atlas/default.d.ts +1 -1
- package/dist/agents/atlas/gemini.d.ts +1 -1
- package/dist/agents/atlas/gpt.d.ts +1 -1
- package/dist/agents/atlas/prompt-section-builder.d.ts +1 -1
- package/dist/agents/builtin-agents/atlas-agent.d.ts +4 -1
- package/dist/agents/builtin-agents/available-skills.d.ts +1 -1
- package/dist/agents/builtin-agents/general-agents.d.ts +4 -1
- package/dist/agents/builtin-agents/hephaestus-agent.d.ts +5 -1
- package/dist/agents/builtin-agents/model-resolution.d.ts +2 -0
- package/dist/agents/builtin-agents/resolve-file-uri.test.d.ts +1 -0
- package/dist/agents/builtin-agents/sisyphus-agent.d.ts +4 -1
- package/dist/agents/builtin-agents.d.ts +3 -3
- package/dist/agents/chat.d.ts +7 -0
- package/dist/agents/dynamic-agent-prompt-builder.test.d.ts +1 -0
- package/dist/agents/env-context.test.d.ts +1 -0
- package/dist/agents/hephaestus/agent.d.ts +19 -0
- package/dist/agents/hephaestus/agent.test.d.ts +1 -0
- package/dist/agents/hephaestus/gpt-5-3-codex.d.ts +21 -0
- package/dist/agents/hephaestus/gpt-5-4.d.ts +3 -0
- package/dist/agents/hephaestus/gpt.d.ts +3 -0
- package/dist/agents/hephaestus/index.d.ts +2 -0
- package/dist/agents/hephaestus.d.ts +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/metis.d.ts +1 -1
- package/dist/agents/momus.d.ts +1 -1
- package/dist/agents/momus.test.d.ts +1 -0
- package/dist/agents/prometheus-prompt.test.d.ts +1 -0
- package/dist/agents/prompts/agent-role.d.ts +2 -0
- package/dist/agents/prompts/anti-patterns.d.ts +2 -0
- package/dist/agents/prompts/base-system.d.ts +1 -0
- package/dist/agents/prompts/execution-rules.d.ts +2 -0
- package/dist/agents/prompts/hard-blocks.d.ts +2 -0
- package/dist/agents/prompts/index.d.ts +6 -0
- package/dist/agents/{dynamic-agent-prompt-builder.d.ts → prompts/orchestration.d.ts} +2 -23
- package/dist/agents/prompts/skill-context.d.ts +2 -0
- package/dist/agents/runtime/action-validator.d.ts +31 -0
- package/dist/agents/runtime/agent-logger.d.ts +15 -0
- package/dist/agents/runtime/loop-guard.d.ts +2 -0
- package/dist/agents/runtime/verify-action.d.ts +58 -0
- package/dist/agents/sisyphus/default.d.ts +9 -0
- package/dist/agents/sisyphus/gemini.d.ts +20 -0
- package/dist/agents/sisyphus/gpt-5-4.d.ts +16 -0
- package/dist/agents/sisyphus/index.d.ts +11 -0
- package/dist/agents/sisyphus-junior/index.test.d.ts +1 -0
- package/dist/agents/sisyphus.d.ts +1 -1
- package/dist/agents/tool-restrictions.test.d.ts +1 -0
- package/dist/agents/types.d.ts +24 -6
- package/dist/agents/types.test.d.ts +1 -0
- package/dist/agents/utils.test.d.ts +1 -0
- package/dist/cli/cli-installer.test.d.ts +1 -0
- package/dist/cli/config-manager/write-omo-config.test.d.ts +1 -0
- package/dist/cli/config-manager.test.d.ts +1 -0
- package/dist/cli/doctor/checks/config.test.d.ts +1 -0
- package/dist/cli/doctor/checks/dependencies.test.d.ts +1 -0
- package/dist/cli/doctor/checks/edit-atomicity.d.ts +5 -0
- package/dist/cli/doctor/checks/issue-resolution.d.ts +7 -0
- package/dist/cli/doctor/checks/model-resolution.test.d.ts +1 -0
- package/dist/cli/doctor/checks/plan-compiler.d.ts +8 -0
- package/dist/cli/doctor/checks/progress.d.ts +8 -0
- package/dist/cli/doctor/checks/run-state-watchdog.d.ts +2 -0
- package/dist/cli/doctor/checks/system-loaded-version.test.d.ts +1 -0
- package/dist/cli/doctor/checks/system.test.d.ts +1 -0
- package/dist/cli/doctor/checks/tool-contract.d.ts +8 -0
- package/dist/cli/doctor/checks/tool-metadata.d.ts +2 -0
- package/dist/cli/doctor/constants.d.ts +3 -0
- package/dist/cli/doctor/format-default.test.d.ts +1 -0
- package/dist/cli/doctor/formatter.test.d.ts +1 -0
- package/dist/cli/doctor/runner.test.d.ts +1 -0
- package/dist/cli/doctor/types.d.ts +3 -0
- package/dist/cli/index.js +2542 -214
- package/dist/cli/index.test.d.ts +1 -0
- package/dist/cli/install.test.d.ts +1 -0
- package/dist/cli/mcp-oauth/index.test.d.ts +1 -0
- package/dist/cli/mcp-oauth/login.test.d.ts +1 -0
- package/dist/cli/mcp-oauth/logout.test.d.ts +1 -0
- package/dist/cli/mcp-oauth/status.test.d.ts +1 -0
- package/dist/cli/model-fallback.test.d.ts +1 -0
- package/dist/cli/provider-model-id-transform.test.d.ts +1 -0
- package/dist/cli/run/completion-continuation.test.d.ts +1 -0
- package/dist/cli/run/completion-verbose-logging.test.d.ts +1 -0
- package/dist/cli/run/completion.test.d.ts +1 -0
- package/dist/cli/run/continuation-state-marker.test.d.ts +1 -0
- package/dist/cli/run/event-handlers.test.d.ts +1 -0
- package/dist/cli/run/events.test.d.ts +1 -0
- package/dist/cli/run/integration.test.d.ts +1 -0
- package/dist/cli/run/json-output.test.d.ts +1 -0
- package/dist/cli/run/message-part-delta.test.d.ts +1 -0
- package/dist/cli/run/on-complete-hook.test.d.ts +1 -0
- package/dist/cli/run/opencode-binary-resolver.test.d.ts +1 -0
- package/dist/cli/run/poll-for-completion.test.d.ts +1 -0
- package/dist/cli/run/runner.test.d.ts +1 -0
- package/dist/cli/run/server-connection.test.d.ts +1 -0
- package/dist/cli/run/session-resolver.test.d.ts +1 -0
- package/dist/cli/run/stdin-suppression.test.d.ts +1 -0
- package/dist/cli/run/timestamp-output.test.d.ts +1 -0
- package/dist/config/schema/agent-names.d.ts +6 -3
- package/dist/config/schema/agent-overrides.d.ts +150 -30
- package/dist/config/schema/background-task.test.d.ts +1 -0
- package/dist/config/schema/categories.d.ts +21 -3
- package/dist/config/schema/categories.test.d.ts +1 -0
- package/dist/config/schema/fallback-models.d.ts +11 -1
- package/dist/config/schema/hooks.d.ts +7 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +151 -29
- package/dist/config/schema.test.d.ts +1 -0
- package/dist/create-hooks.d.ts +11 -1
- package/dist/create-managers.d.ts +2 -0
- package/dist/create-tools.d.ts +1 -1
- package/dist/features/background-agent/compaction-aware-message-resolver.test.d.ts +1 -0
- package/dist/features/background-agent/concurrency.test.d.ts +1 -0
- package/dist/features/background-agent/error-classifier.test.d.ts +1 -0
- package/dist/features/background-agent/fallback-retry-handler.test.d.ts +1 -0
- package/dist/features/background-agent/manager.d.ts +13 -0
- package/dist/features/background-agent/manager.polling.test.d.ts +1 -0
- package/dist/features/background-agent/manager.test.d.ts +1 -0
- package/dist/features/background-agent/process-cleanup.test.d.ts +1 -0
- package/dist/features/background-agent/session-idle-event-handler.test.d.ts +1 -0
- package/dist/features/background-agent/spawner/parent-directory-resolver.test.d.ts +1 -0
- package/dist/features/background-agent/spawner.test.d.ts +1 -0
- package/dist/features/background-agent/task-history.test.d.ts +1 -0
- package/dist/features/background-agent/task-poller.test.d.ts +1 -0
- package/dist/features/background-agent/types.d.ts +9 -4
- package/dist/features/boulder-state/storage.test.d.ts +1 -0
- package/dist/features/builtin-commands/commands.test.d.ts +1 -0
- package/dist/features/builtin-commands/templates/stop-continuation.test.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git/git-commit.d.ts +2 -0
- package/dist/features/builtin-skills/skills/git/git-history.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git/git-push-pr.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git/git-rebase.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git/git-shared.d.ts +2 -0
- package/dist/features/builtin-skills/skills.test.d.ts +1 -0
- package/dist/features/claude-code-mcp-loader/loader.test.d.ts +1 -0
- package/dist/features/claude-code-session-state/state.d.ts +4 -0
- package/dist/features/claude-code-session-state/state.test.d.ts +1 -0
- package/dist/features/claude-tasks/session-storage.test.d.ts +1 -0
- package/dist/features/claude-tasks/storage.test.d.ts +1 -0
- package/dist/features/claude-tasks/types.test.d.ts +1 -0
- package/dist/features/context-injector/collector.test.d.ts +1 -0
- package/dist/features/context-injector/injector.test.d.ts +1 -0
- package/dist/features/hook-message-injector/injector.d.ts +2 -0
- package/dist/features/hook-message-injector/injector.test.d.ts +1 -0
- package/dist/features/issue-resolution/state.d.ts +12 -0
- package/dist/features/issue-resolution/tests/integration.test.d.ts +1 -0
- package/dist/features/mcp-oauth/callback-server.test.d.ts +1 -0
- package/dist/features/mcp-oauth/dcr.test.d.ts +1 -0
- package/dist/features/mcp-oauth/discovery.test.d.ts +1 -0
- package/dist/features/mcp-oauth/provider.test.d.ts +1 -0
- package/dist/features/mcp-oauth/resource-indicator.test.d.ts +1 -0
- package/dist/features/mcp-oauth/schema.test.d.ts +1 -0
- package/dist/features/mcp-oauth/step-up.test.d.ts +1 -0
- package/dist/features/mcp-oauth/storage.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/agents-skills-global.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/async-loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/blocking.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/config-source-discovery.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/merger.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/skill-content.test.d.ts +1 -0
- package/dist/features/pr-state/storage.d.ts +10 -0
- package/dist/features/run-continuation-state/storage.test.d.ts +1 -0
- package/dist/features/run-state-watchdog/index.d.ts +1 -0
- package/dist/features/run-state-watchdog/manager.d.ts +31 -0
- package/dist/features/run-state-watchdog/manager.test.d.ts +1 -0
- package/dist/features/run-state-watchdog/reconnect.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/manager.test.d.ts +1 -0
- package/dist/features/task-toast-manager/manager.d.ts +9 -0
- package/dist/features/task-toast-manager/manager.test.d.ts +1 -0
- package/dist/features/task-toast-manager/types.d.ts +5 -0
- package/dist/features/tmux-subagent/action-executor.test.d.ts +1 -0
- package/dist/features/tmux-subagent/decision-engine.test.d.ts +1 -0
- package/dist/features/tmux-subagent/layout-config.test.d.ts +1 -0
- package/dist/features/tmux-subagent/manager.test.d.ts +1 -0
- package/dist/features/tmux-subagent/polling-manager.test.d.ts +1 -0
- package/dist/features/tool-metadata-store/index.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/empty-content-recovery-sdk.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/parser.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-deduplication.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-hook.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.test.d.ts +1 -0
- package/dist/hooks/anthropic-effort/index.test.d.ts +1 -0
- package/dist/hooks/atlas/index.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/constants.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/detector.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/executor.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/index.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/pinned-version-updater.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker/plugin-entry.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/checker.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/hook/background-update-check.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/hook.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/index.test.d.ts +1 -0
- package/dist/hooks/category-skill-reminder/formatter.d.ts +1 -1
- package/dist/hooks/category-skill-reminder/hook.d.ts +1 -1
- package/dist/hooks/category-skill-reminder/index.test.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/execute-http-hook.test.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/stop.test.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/transcript.test.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/user-prompt-submit.test.d.ts +1 -0
- package/dist/hooks/comment-checker/cli.test.d.ts +1 -0
- package/dist/hooks/comment-checker/hook.apply-patch.test.d.ts +1 -0
- package/dist/hooks/comment-checker/pending-calls.test.d.ts +1 -0
- package/dist/hooks/compaction-context-injector/index.test.d.ts +1 -0
- package/dist/hooks/compaction-todo-preserver/index.test.d.ts +1 -0
- package/dist/hooks/context-window-monitor.test.d.ts +1 -0
- package/dist/hooks/delegate-task-retry/index.test.d.ts +1 -0
- package/dist/hooks/directory-agents-injector/injector.test.d.ts +1 -0
- package/dist/hooks/directory-readme-injector/injector.test.d.ts +1 -0
- package/dist/hooks/edit-error-recovery/hook.d.ts +2 -1
- package/dist/hooks/edit-error-recovery/index.test.d.ts +1 -0
- package/dist/hooks/edit-safeguard/hook.d.ts +2 -0
- package/dist/hooks/execution-journal/hook.d.ts +19 -0
- package/dist/hooks/execution-journal/index.d.ts +1 -0
- package/dist/hooks/hashline-read-enhancer/index.test.d.ts +1 -0
- package/dist/hooks/index.d.ts +11 -3
- package/dist/hooks/json-error-recovery/index.test.d.ts +1 -0
- package/dist/hooks/keyword-detector/constants.d.ts +1 -0
- package/dist/hooks/keyword-detector/detector.d.ts +1 -1
- package/dist/hooks/keyword-detector/index.test.d.ts +1 -0
- package/dist/hooks/keyword-detector/issue.d.ts +2 -0
- package/dist/hooks/model-fallback/hook.test.d.ts +1 -0
- package/dist/hooks/no-hephaestus-non-gpt/index.test.d.ts +1 -0
- package/dist/hooks/no-sisyphus-gpt/index.test.d.ts +1 -0
- package/dist/hooks/non-interactive-env/index.test.d.ts +1 -0
- package/dist/hooks/plan-enforcement/hook.d.ts +29 -0
- package/dist/hooks/plan-enforcement/hook.test.d.ts +1 -0
- package/dist/hooks/plan-enforcement/index.d.ts +1 -0
- package/dist/hooks/preemptive-compaction.test.d.ts +1 -0
- package/dist/hooks/prometheus-md-only/index.test.d.ts +1 -0
- package/dist/hooks/question-label-truncator/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/completion-handler.d.ts +14 -0
- package/dist/hooks/ralph-loop/completion-promise-detector.d.ts +1 -1
- package/dist/hooks/ralph-loop/completion-promise-detector.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/constants.d.ts +1 -0
- package/dist/hooks/ralph-loop/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/loop-state-controller.d.ts +2 -0
- package/dist/hooks/ralph-loop/ralph-loop-event-handler.d.ts +2 -0
- package/dist/hooks/ralph-loop/reset-strategy-race-condition.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/session-event-handler.d.ts +12 -0
- package/dist/hooks/ralph-loop/types.d.ts +5 -1
- package/dist/hooks/ralph-loop/ulw-loop-verification.test.d.ts +1 -0
- package/dist/hooks/read-image-resizer/hook.test.d.ts +1 -0
- package/dist/hooks/read-image-resizer/image-dimensions.test.d.ts +1 -0
- package/dist/hooks/read-image-resizer/image-resizer.test.d.ts +1 -0
- package/dist/hooks/rules-injector/finder.test.d.ts +1 -0
- package/dist/hooks/rules-injector/injector.test.d.ts +1 -0
- package/dist/hooks/rules-injector/output-path.test.d.ts +1 -0
- package/dist/hooks/rules-injector/parser.test.d.ts +1 -0
- package/dist/hooks/run-state-watchdog/hook.d.ts +5 -0
- package/dist/hooks/run-state-watchdog/index.d.ts +1 -0
- package/dist/hooks/runtime-enforcement/hook.d.ts +10 -0
- package/dist/hooks/runtime-enforcement/hook.test.d.ts +1 -0
- package/dist/hooks/runtime-enforcement/index.d.ts +1 -0
- package/dist/hooks/runtime-enforcement/synthetic-injection.test.d.ts +1 -0
- package/dist/hooks/runtime-fallback/index.test.d.ts +1 -0
- package/dist/hooks/semantic-loop-guard/hook.d.ts +10 -0
- package/dist/hooks/semantic-loop-guard/hook.test.d.ts +1 -0
- package/dist/hooks/semantic-loop-guard/index.d.ts +1 -0
- package/dist/hooks/session-notification-input-needed.test.d.ts +1 -0
- package/dist/hooks/session-notification.test.d.ts +1 -0
- package/dist/hooks/session-recovery/detect-error-type.test.d.ts +1 -0
- package/dist/hooks/session-recovery/index.test.d.ts +1 -0
- package/dist/hooks/session-recovery/recover-empty-content-message-sdk.test.d.ts +1 -0
- package/dist/hooks/session-recovery/resume.test.d.ts +1 -0
- package/dist/hooks/session-recovery/storage/readers-from-sdk.test.d.ts +1 -0
- package/dist/hooks/start-work/index.test.d.ts +1 -0
- package/dist/hooks/start-work/parse-user-request.test.d.ts +1 -0
- package/dist/hooks/start-work/worktree-detector.test.d.ts +1 -0
- package/dist/hooks/stop-continuation-guard/index.test.d.ts +1 -0
- package/dist/hooks/task-reminder/index.test.d.ts +1 -0
- package/dist/hooks/task-resume-info/index.test.d.ts +1 -0
- package/dist/hooks/tasks-todowrite-disabler/index.test.d.ts +1 -0
- package/dist/hooks/think-mode/index.test.d.ts +1 -0
- package/dist/hooks/think-mode/switcher.test.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/continuation-injection.test.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/pending-question-detection.test.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/todo-continuation-enforcer.test.d.ts +1 -0
- package/dist/hooks/tool-contract/hook.d.ts +19 -0
- package/dist/hooks/tool-contract/hook.test.d.ts +1 -0
- package/dist/hooks/tool-contract/index.d.ts +1 -0
- package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
- package/dist/hooks/unstable-agent-babysitter/index.test.d.ts +1 -0
- package/dist/hooks/write-existing-file-guard/index.test.d.ts +1 -0
- package/dist/hooks/xai-usage-patch/hook.d.ts +20 -0
- package/dist/hooks/xai-usage-patch/hook.test.d.ts +1 -0
- package/dist/index.compaction-model-agnostic.static.test.d.ts +1 -0
- package/dist/index.js +4980 -14453
- package/dist/index.test.d.ts +1 -0
- package/dist/mcp/index.test.d.ts +1 -0
- package/dist/mcp/websearch.test.d.ts +1 -0
- package/dist/oh-my-opencode.schema.json +622 -15
- package/dist/plugin/available-categories.d.ts +1 -1
- package/dist/plugin/chat-headers.test.d.ts +1 -0
- package/dist/plugin/chat-message.test.d.ts +1 -0
- package/dist/plugin/chat-params.test.d.ts +1 -0
- package/dist/plugin/event.model-fallback.test.d.ts +1 -0
- package/dist/plugin/event.test.d.ts +1 -0
- package/dist/plugin/hooks/create-core-hooks.d.ts +10 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +4 -1
- package/dist/plugin/hooks/create-skill-hooks.d.ts +1 -1
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +7 -1
- package/dist/plugin/recent-synthetic-idles.test.d.ts +1 -0
- package/dist/plugin/session-agent-resolver.test.d.ts +1 -0
- package/dist/plugin/session-status-normalizer.test.d.ts +1 -0
- package/dist/plugin/skill-context.d.ts +1 -1
- package/dist/plugin/tool-execute-before-session-notification.test.d.ts +1 -0
- package/dist/plugin/tool-execute-before.test.d.ts +1 -0
- package/dist/plugin/tool-normalization.test.d.ts +1 -0
- package/dist/plugin/tool-registry.d.ts +1 -1
- package/dist/plugin/truth-model-integration.test.d.ts +1 -0
- package/dist/plugin/ultrawork-db-model-override.test.d.ts +1 -0
- package/dist/plugin/ultrawork-model-override.test.d.ts +1 -0
- package/dist/plugin-config.test.d.ts +1 -0
- package/dist/plugin-handlers/agent-key-remapper.test.d.ts +1 -0
- package/dist/plugin-handlers/config-handler-formatter.test.d.ts +1 -0
- package/dist/plugin-handlers/config-handler.test.d.ts +1 -0
- package/dist/plugin-handlers/mcp-config-handler.test.d.ts +1 -0
- package/dist/plugin-handlers/plan-model-inheritance.test.d.ts +1 -0
- package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +3 -2
- package/dist/plugin-handlers/tool-config-handler.test.d.ts +1 -0
- package/dist/runtime/journal.d.ts +33 -0
- package/dist/runtime/plan-compiler.d.ts +20 -0
- package/dist/runtime/plan-compiler.test.d.ts +1 -0
- package/dist/runtime/startup-validation.d.ts +7 -0
- package/dist/runtime/state-ledger.d.ts +52 -0
- package/dist/runtime/tools/complete-task.d.ts +4 -0
- package/dist/runtime/tools/fs-safe.contract.test.d.ts +1 -0
- package/dist/runtime/tools/fs-safe.d.ts +1 -0
- package/dist/runtime/tools/gh-safe.d.ts +1 -0
- package/dist/runtime/tools/git-safe.d.ts +1 -0
- package/dist/runtime/tools/index.d.ts +8 -0
- package/dist/runtime/tools/plan.d.ts +3 -0
- package/dist/runtime/tools/query-ledger.d.ts +3 -0
- package/dist/runtime/tools/registry.d.ts +8 -0
- package/dist/runtime/tools/report-issue-verification.d.ts +1 -0
- package/dist/runtime/tools/verify.d.ts +1 -0
- package/dist/runtime/truth-model.test.d.ts +1 -0
- package/dist/runtime/vcs-detection.test.d.ts +1 -0
- package/dist/shared/active-task-storage.d.ts +15 -0
- package/dist/shared/agent-config-integration.test.d.ts +1 -0
- package/dist/shared/agent-display-names.test.d.ts +1 -0
- package/dist/shared/agent-variant.test.d.ts +1 -0
- package/dist/shared/claude-config-dir.test.d.ts +1 -0
- package/dist/shared/connected-providers-cache.test.d.ts +1 -0
- package/dist/shared/deep-merge.test.d.ts +1 -0
- package/dist/shared/dynamic-truncator.test.d.ts +1 -0
- package/dist/shared/external-plugin-detector.test.d.ts +1 -0
- package/dist/shared/file-utils.test.d.ts +1 -0
- package/dist/shared/first-message-variant.test.d.ts +1 -0
- package/dist/shared/frontmatter.test.d.ts +1 -0
- package/dist/shared/git-worktree/collect-git-diff-stats.test.d.ts +1 -0
- package/dist/shared/git-worktree/git-worktree.test.d.ts +1 -0
- package/dist/shared/git-worktree/parse-status-porcelain-line.test.d.ts +1 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/jsonc-parser.test.d.ts +1 -0
- package/dist/shared/merge-categories.test.d.ts +1 -0
- package/dist/shared/migration.test.d.ts +1 -0
- package/dist/shared/model-availability.d.ts +6 -0
- package/dist/shared/model-availability.test.d.ts +1 -0
- package/dist/shared/model-error-classifier.d.ts +5 -0
- package/dist/shared/model-error-classifier.test.d.ts +1 -0
- package/dist/shared/model-format-normalizer.test.d.ts +1 -0
- package/dist/shared/model-normalization.test.d.ts +1 -0
- package/dist/shared/model-requirements.d.ts +6 -0
- package/dist/shared/model-requirements.test.d.ts +1 -0
- package/dist/shared/model-resolution-acceptance.test.d.ts +1 -0
- package/dist/shared/model-resolution-pipeline.d.ts +5 -1
- package/dist/shared/model-resolution-pipeline.test.d.ts +1 -0
- package/dist/shared/model-resolution-tracker.d.ts +17 -0
- package/dist/shared/model-resolution-types.d.ts +7 -1
- package/dist/shared/model-resolver.d.ts +10 -3
- package/dist/shared/model-resolver.test.d.ts +1 -0
- package/dist/shared/model-suggestion-retry.test.d.ts +1 -0
- package/dist/shared/normalize-sdk-response.test.d.ts +1 -0
- package/dist/shared/opencode-config-dir.test.d.ts +1 -0
- package/dist/shared/opencode-http-api.test.d.ts +1 -0
- package/dist/shared/opencode-message-dir.test.d.ts +1 -0
- package/dist/shared/opencode-server-auth.test.d.ts +1 -0
- package/dist/shared/opencode-storage-detection.test.d.ts +1 -0
- package/dist/shared/opencode-version.test.d.ts +1 -0
- package/dist/shared/pattern-matcher.test.d.ts +1 -0
- package/dist/shared/permission-compat.test.d.ts +1 -0
- package/dist/shared/plugin-command-discovery.test.d.ts +1 -0
- package/dist/shared/port-utils.test.d.ts +1 -0
- package/dist/shared/prompt-tools.test.d.ts +1 -0
- package/dist/shared/read-permission-tracker.d.ts +15 -0
- package/dist/shared/safe-create-hook.test.d.ts +1 -0
- package/dist/shared/session-cursor.test.d.ts +1 -0
- package/dist/shared/session-directory-resolver.test.d.ts +1 -0
- package/dist/shared/session-model-state.test.d.ts +1 -0
- package/dist/shared/session-tools-store.test.d.ts +1 -0
- package/dist/shared/shell-env.test.d.ts +1 -0
- package/dist/shared/skill-path-resolver.test.d.ts +1 -0
- package/dist/shared/system-directive.test.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/layout.test.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils.test.d.ts +1 -0
- package/dist/shared/tool-name.test.d.ts +1 -0
- package/dist/shared/truncate-description.test.d.ts +1 -0
- package/dist/shared/verify-task-completion.d.ts +1 -0
- package/dist/tools/background-task/create-background-output.blocking.test.d.ts +1 -0
- package/dist/tools/background-task/create-background-task.test.d.ts +1 -0
- package/dist/tools/background-task/tools.test.d.ts +1 -0
- package/dist/tools/call-omo-agent/background-agent-executor.test.d.ts +1 -0
- package/dist/tools/call-omo-agent/background-executor.test.d.ts +1 -0
- package/dist/tools/call-omo-agent/session-creator.test.d.ts +1 -0
- package/dist/tools/call-omo-agent/subagent-session-creator.test.d.ts +1 -0
- package/dist/tools/call-omo-agent/sync-executor.test.d.ts +1 -0
- package/dist/tools/call-omo-agent/tools.test.d.ts +1 -0
- package/dist/tools/delegate-task/background-continuation.test.d.ts +1 -0
- package/dist/tools/delegate-task/background-task.d.ts +1 -1
- package/dist/tools/delegate-task/background-task.test.d.ts +1 -0
- package/dist/tools/delegate-task/category-resolver.d.ts +1 -0
- package/dist/tools/delegate-task/category-resolver.test.d.ts +1 -0
- package/dist/tools/delegate-task/constants.d.ts +1 -1
- package/dist/tools/delegate-task/metadata-await.test.d.ts +1 -0
- package/dist/tools/delegate-task/metadata-model-unification.test.d.ts +1 -0
- package/dist/tools/delegate-task/model-selection.d.ts +2 -0
- package/dist/tools/delegate-task/subagent-resolver.d.ts +2 -1
- package/dist/tools/delegate-task/subagent-resolver.test.d.ts +1 -0
- package/dist/tools/delegate-task/sync-continuation.test.d.ts +1 -0
- package/dist/tools/delegate-task/sync-poll-timeout.test.d.ts +1 -0
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +1 -0
- package/dist/tools/delegate-task/sync-prompt-sender.test.d.ts +1 -0
- package/dist/tools/delegate-task/sync-result-fetcher.test.d.ts +1 -0
- package/dist/tools/delegate-task/sync-session-poller.test.d.ts +1 -0
- package/dist/tools/delegate-task/sync-task.d.ts +1 -1
- package/dist/tools/delegate-task/sync-task.test.d.ts +1 -0
- package/dist/tools/delegate-task/timing.test.d.ts +1 -0
- package/dist/tools/delegate-task/token-limiter.test.d.ts +1 -0
- package/dist/tools/delegate-task/tools.test.d.ts +1 -0
- package/dist/tools/delegate-task/types.d.ts +1 -1
- package/dist/tools/delegate-task/unstable-agent-task.test.d.ts +1 -0
- package/dist/tools/delegate-task/unstable-agent-timeout.test.d.ts +1 -0
- package/dist/tools/glob/cli.test.d.ts +1 -0
- package/dist/tools/grep/downloader.test.d.ts +1 -0
- package/dist/tools/grep/result-formatter.test.d.ts +1 -0
- package/dist/tools/hashline-edit/diff-utils.test.d.ts +1 -0
- package/dist/tools/hashline-edit/edit-operations.test.d.ts +1 -0
- package/dist/tools/hashline-edit/edit-text-normalization.test.d.ts +1 -0
- package/dist/tools/hashline-edit/hash-computation.test.d.ts +1 -0
- package/dist/tools/hashline-edit/normalize-edits.test.d.ts +1 -0
- package/dist/tools/hashline-edit/tools.test.d.ts +1 -0
- package/dist/tools/hashline-edit/validation.test.d.ts +1 -0
- package/dist/tools/look-at/create-look-at-error-handling.test.d.ts +1 -0
- package/dist/tools/look-at/create-look-at-image-data.test.d.ts +1 -0
- package/dist/tools/look-at/create-look-at-model-passthrough.test.d.ts +1 -0
- package/dist/tools/look-at/create-look-at-sync-prompt.test.d.ts +1 -0
- package/dist/tools/look-at/create-look-at-unhandled-error.test.d.ts +1 -0
- package/dist/tools/look-at/image-converter.test.d.ts +1 -0
- package/dist/tools/look-at/mime-type-inference.test.d.ts +1 -0
- package/dist/tools/look-at/normalize-args.test.d.ts +1 -0
- package/dist/tools/look-at/session-poller.test.d.ts +1 -0
- package/dist/tools/look-at/tools.test.d.ts +7 -0
- package/dist/tools/look-at/validate-args.test.d.ts +1 -0
- package/dist/tools/lsp/client.test.d.ts +1 -0
- package/dist/tools/lsp/config.test.d.ts +1 -0
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +3 -0
- package/dist/tools/lsp/lsp-process.test.d.ts +1 -0
- package/dist/tools/lsp/server-config-loader.test.d.ts +1 -0
- package/dist/tools/lsp/utils.test.d.ts +1 -0
- package/dist/tools/session-manager/storage.test.d.ts +1 -0
- package/dist/tools/session-manager/tools.test.d.ts +1 -0
- package/dist/tools/session-manager/utils.test.d.ts +1 -0
- package/dist/tools/skill/tools.test.agent-restriction.d.ts +1 -0
- package/dist/tools/skill/tools.test.d.ts +1 -0
- package/dist/tools/skill/tools.test.description.d.ts +1 -0
- package/dist/tools/skill/tools.test.mcp-schema.d.ts +1 -0
- package/dist/tools/skill/tools.test.ordering.d.ts +1 -0
- package/dist/tools/skill/tools.test.utils.d.ts +10 -0
- package/dist/tools/skill-mcp/builtin-mcp-hint.test.d.ts +1 -0
- package/dist/tools/skill-mcp/tools.test.d.ts +1 -0
- package/dist/tools/slashcommand/command-discovery.test.d.ts +1 -0
- package/dist/tools/slashcommand/command-output-formatter.test.d.ts +1 -0
- package/dist/tools/slashcommand/index.test.d.ts +1 -0
- package/dist/tools/task/task-create-input.test.d.ts +1 -0
- package/dist/tools/task/task-create.test.d.ts +1 -0
- package/dist/tools/task/task-delete-input.test.d.ts +1 -0
- package/dist/tools/task/task-get-input.test.d.ts +1 -0
- package/dist/tools/task/task-get.test.d.ts +1 -0
- package/dist/tools/task/task-list-input.test.d.ts +1 -0
- package/dist/tools/task/task-list.test.d.ts +1 -0
- package/dist/tools/task/task-schema-core.test.d.ts +1 -0
- package/dist/tools/task/task-schema-fields.test.d.ts +1 -0
- package/dist/tools/task/task-status.test.d.ts +1 -0
- package/dist/tools/task/task-update-input.test.d.ts +1 -0
- package/dist/tools/task/task-update.test.d.ts +1 -0
- package/dist/tools/task/todo-sync-all-fetch.test.d.ts +1 -0
- package/dist/tools/task/todo-sync-all-write.test.d.ts +1 -0
- package/dist/tools/task/todo-sync-sync.test.d.ts +1 -0
- package/dist/tools/task/todo-sync-update.test.d.ts +1 -0
- package/dist/tools/task/todo-sync.test.d.ts +1 -0
- package/dist/utils/context-trimmer.d.ts +21 -0
- package/dist/utils/safety-tool-result.d.ts +31 -0
- package/dist/utils/tool-contract-wrapper.d.ts +10 -0
- package/package.json +17 -16
|
@@ -4,7 +4,7 @@ export type ModelResolutionInput = {
|
|
|
4
4
|
inheritedModel?: string;
|
|
5
5
|
systemDefault?: string;
|
|
6
6
|
};
|
|
7
|
-
export type ModelSource = "override" | "category-default" | "provider-fallback" | "system-default";
|
|
7
|
+
export type ModelSource = "override" | "category-default" | "user-fallback" | "provider-fallback" | "system-default";
|
|
8
8
|
export type ModelResolutionResult = {
|
|
9
9
|
model: string;
|
|
10
10
|
source: ModelSource;
|
|
@@ -13,16 +13,23 @@ export type ModelResolutionResult = {
|
|
|
13
13
|
export type ExtendedModelResolutionInput = {
|
|
14
14
|
uiSelectedModel?: string;
|
|
15
15
|
userModel?: string;
|
|
16
|
+
userFallbackModel?: string;
|
|
16
17
|
userFallbackModels?: string[];
|
|
17
18
|
categoryDefaultModel?: string;
|
|
19
|
+
categoryFallbackModel?: string;
|
|
18
20
|
fallbackChain?: FallbackEntry[];
|
|
19
21
|
availableModels: Set<string>;
|
|
20
22
|
systemDefaultModel?: string;
|
|
23
|
+
systemDefaultFallbackModel?: string;
|
|
21
24
|
};
|
|
22
25
|
export declare function resolveModel(input: ModelResolutionInput): string | undefined;
|
|
23
26
|
export declare function resolveModelWithFallback(input: ExtendedModelResolutionInput): ModelResolutionResult | undefined;
|
|
24
27
|
/**
|
|
25
|
-
* Normalizes fallback_models config (which can be string or
|
|
28
|
+
* Normalizes fallback_models config (which can be string or objects) to string[]
|
|
26
29
|
* Centralized helper to avoid duplicated normalization logic
|
|
27
30
|
*/
|
|
28
|
-
export declare function normalizeFallbackModels(models: string | string
|
|
31
|
+
export declare function normalizeFallbackModels(models: string | (string | {
|
|
32
|
+
model: string;
|
|
33
|
+
providers?: string[];
|
|
34
|
+
variant?: string;
|
|
35
|
+
})[] | undefined): string[] | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read Permission Tracker
|
|
3
|
+
*
|
|
4
|
+
* Tracks which files have been read by the agent in the current session.
|
|
5
|
+
* Used to enforce "edit discipline" - you cannot edit a file you haven't read.
|
|
6
|
+
*/
|
|
7
|
+
declare class ReadPermissionTracker {
|
|
8
|
+
private readFiles;
|
|
9
|
+
recordRead(sessionID: string, filePath: string): void;
|
|
10
|
+
hasRead(sessionID: string, filePath: string): boolean;
|
|
11
|
+
clearSession(sessionID: string): void;
|
|
12
|
+
private normalizePath;
|
|
13
|
+
}
|
|
14
|
+
export declare const readTracker: ReadPermissionTracker;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function verifyTaskCompletionState(client: any, sessionID: string): Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,4 +5,4 @@ export declare function executeBackgroundTask(args: DelegateTaskArgs, ctx: ToolC
|
|
|
5
5
|
providerID: string;
|
|
6
6
|
modelID: string;
|
|
7
7
|
variant?: string;
|
|
8
|
-
} | undefined, systemContent: string | undefined, fallbackChain?: FallbackEntry[]): Promise<string>;
|
|
8
|
+
} | undefined, systemContent: string | undefined, fallbackChain?: FallbackEntry[], fallbackModel?: string): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface CategoryResolutionResult {
|
|
|
15
15
|
actualModel: string | undefined;
|
|
16
16
|
isUnstableAgent: boolean;
|
|
17
17
|
fallbackChain?: FallbackEntry[];
|
|
18
|
+
fallbackModel?: string;
|
|
18
19
|
error?: string;
|
|
19
20
|
}
|
|
20
21
|
export declare function resolveCategoryExecution(args: DelegateTaskArgs, executorCtx: ExecutorContext, inheritedModel: string | undefined, systemDefaultModel: string | undefined): Promise<CategoryResolutionResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CategoryConfig } from "../../config/schema";
|
|
2
|
-
import type { AvailableCategory, AvailableSkill } from "../../agents/
|
|
2
|
+
import type { AvailableCategory, AvailableSkill } from "../../agents/types";
|
|
3
3
|
export declare const VISUAL_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on VISUAL/UI tasks.\n\nDesign-first mindset:\n- Bold aesthetic choices over safe defaults\n- Unexpected layouts, asymmetry, grid-breaking elements\n- Distinctive typography (avoid: Arial, Inter, Roboto, Space Grotesk)\n- Cohesive color palettes with sharp accents\n- High-impact animations with staggered reveals\n- Atmosphere: gradient meshes, noise textures, layered transparencies\n\nAVOID: Generic fonts, purple gradients on white, predictable layouts, cookie-cutter patterns.\n</Category_Context>";
|
|
4
4
|
export declare const ULTRABRAIN_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on DEEP LOGICAL REASONING / COMPLEX ARCHITECTURE tasks.\n\n**CRITICAL - CODE STYLE REQUIREMENTS (NON-NEGOTIABLE)**:\n1. BEFORE writing ANY code, SEARCH the existing codebase to find similar patterns/styles\n2. Your code MUST match the project's existing conventions - blend in seamlessly\n3. Write READABLE code that humans can easily understand - no clever tricks\n4. If unsure about style, explore more files until you find the pattern\n\nStrategic advisor mindset:\n- Bias toward simplicity: least complex solution that fulfills requirements\n- Leverage existing code/patterns over new components\n- Prioritize developer experience and maintainability\n- One clear recommendation with effort estimate (Quick/Short/Medium/Large)\n- Signal when advanced approach warranted\n\nResponse format:\n- Bottom line (2-3 sentences)\n- Action plan (numbered steps)\n- Risks and mitigations (if relevant)\n</Category_Context>";
|
|
5
5
|
export declare const ARTISTRY_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on HIGHLY CREATIVE / ARTISTIC tasks.\n\nArtistic genius mindset:\n- Push far beyond conventional boundaries\n- Explore radical, unconventional directions\n- Surprise and delight: unexpected twists, novel combinations\n- Rich detail and vivid expression\n- Break patterns deliberately when it serves the creative vision\n\nApproach:\n- Generate diverse, bold options first\n- Embrace ambiguity and wild experimentation\n- Balance novelty with coherence\n- This is for tasks requiring exceptional creativity\n</Category_Context>";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
2
2
|
export declare function resolveModelForDelegateTask(input: {
|
|
3
3
|
userModel?: string;
|
|
4
|
+
userFallbackModel?: string;
|
|
4
5
|
categoryDefaultModel?: string;
|
|
6
|
+
categoryFallbackModel?: string;
|
|
5
7
|
fallbackChain?: FallbackEntry[];
|
|
6
8
|
availableModels: Set<string>;
|
|
7
9
|
systemDefaultModel?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DelegateTaskArgs } from "./types";
|
|
2
2
|
import type { ExecutorContext } from "./executor-types";
|
|
3
|
-
import type
|
|
3
|
+
import { type FallbackEntry } from "../../shared/model-requirements";
|
|
4
4
|
export declare function resolveSubagentExecution(args: DelegateTaskArgs, executorCtx: ExecutorContext, parentAgent: string | undefined, categoryExamples: string): Promise<{
|
|
5
5
|
agentToUse: string;
|
|
6
6
|
categoryModel: {
|
|
@@ -9,5 +9,6 @@ export declare function resolveSubagentExecution(args: DelegateTaskArgs, executo
|
|
|
9
9
|
variant?: string;
|
|
10
10
|
} | undefined;
|
|
11
11
|
fallbackChain?: FallbackEntry[];
|
|
12
|
+
fallbackModel?: string;
|
|
12
13
|
error?: string;
|
|
13
14
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare const bunDescribe: any, bunTest: any, bunExpect: any, bunMock: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,4 +6,4 @@ export declare function executeSyncTask(args: DelegateTaskArgs, ctx: ToolContext
|
|
|
6
6
|
providerID: string;
|
|
7
7
|
modelID: string;
|
|
8
8
|
variant?: string;
|
|
9
|
-
} | undefined, systemContent: string | undefined, modelInfo?: ModelFallbackInfo, fallbackChain?: import("../../shared/model-requirements").FallbackEntry[], deps?: SyncTaskDeps): Promise<string>;
|
|
9
|
+
} | undefined, systemContent: string | undefined, modelInfo?: ModelFallbackInfo, fallbackChain?: import("../../shared/model-requirements").FallbackEntry[], fallbackModel?: string, deps?: SyncTaskDeps): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
3
|
import type { CategoriesConfig, GitMasterConfig, BrowserAutomationProvider, AgentOverrides } from "../../config/schema";
|
|
4
|
-
import type { AvailableCategory, AvailableSkill } from "../../agents/
|
|
4
|
+
import type { AvailableCategory, AvailableSkill } from "../../agents/types";
|
|
5
5
|
export type OpencodeClient = PluginInput["client"];
|
|
6
6
|
export interface DelegateTaskArgs {
|
|
7
7
|
description: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./normalize-args.test";
|
|
2
|
+
export * from "./validate-args.test";
|
|
3
|
+
export * from "./create-look-at-error-handling.test";
|
|
4
|
+
export * from "./create-look-at-model-passthrough.test";
|
|
5
|
+
export * from "./create-look-at-sync-prompt.test";
|
|
6
|
+
export * from "./create-look-at-unhandled-error.test";
|
|
7
|
+
export * from "./create-look-at-image-data.test";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { LSPClient } from "./client";
|
|
2
2
|
import type { ServerLookupResult } from "./types";
|
|
3
|
+
export declare class LspNotConfiguredError extends Error {
|
|
4
|
+
constructor(message: string);
|
|
5
|
+
}
|
|
3
6
|
export declare function findWorkspaceRoot(filePath: string): string;
|
|
4
7
|
export declare function uriToPath(uri: string): string;
|
|
5
8
|
export declare function formatServerLookupError(result: Exclude<ServerLookupResult, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ToolContext } from "@opencode-ai/plugin/tool";
|
|
2
|
+
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
3
|
+
import type { CommandInfo } from "../slashcommand/types";
|
|
4
|
+
export declare function createMockSkill(name: string, options?: {
|
|
5
|
+
agent?: string;
|
|
6
|
+
}): LoadedSkill;
|
|
7
|
+
export declare function createMockSkillWithMcp(name: string, mcpServers: Record<string, unknown>): LoadedSkill;
|
|
8
|
+
export declare function createMockSkillWithScope(name: string, scope: string): LoadedSkill;
|
|
9
|
+
export declare function createMockCommand(name: string, scope: string): CommandInfo;
|
|
10
|
+
export declare const mockContext: ToolContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context Trimmer
|
|
3
|
+
*
|
|
4
|
+
* Summarizes large inputs to aggressively reduce token usage.
|
|
5
|
+
*/
|
|
6
|
+
export interface FileContext {
|
|
7
|
+
path: string;
|
|
8
|
+
content: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ContextTrimmer: {
|
|
11
|
+
/**
|
|
12
|
+
* Trims an array of files down to a budget of items and lines.
|
|
13
|
+
* If a file is too large, it summarizes its top section only,
|
|
14
|
+
* assuming that's where imports and class definitions reside.
|
|
15
|
+
*/
|
|
16
|
+
trimFiles: (files: FileContext[], maxFiles?: number, maxLinesPerFile?: number) => string[];
|
|
17
|
+
/**
|
|
18
|
+
* Summarizes generic text outputs (like git diffs or test logs) to prevent token bloat.
|
|
19
|
+
*/
|
|
20
|
+
trimOutput: (output: string, maxLength?: number) => string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Safety Tool Result Interface
|
|
3
|
+
*
|
|
4
|
+
* Consistent structure for all safety-critical tools (git, fs, verify, complete).
|
|
5
|
+
* This ensures the tool-contract hook can reliably validate execution.
|
|
6
|
+
*/
|
|
7
|
+
export interface StateChange {
|
|
8
|
+
type: string;
|
|
9
|
+
key: string;
|
|
10
|
+
details?: any;
|
|
11
|
+
}
|
|
12
|
+
export interface SafetyToolResult {
|
|
13
|
+
success: boolean;
|
|
14
|
+
verified: boolean;
|
|
15
|
+
changedState: boolean;
|
|
16
|
+
stateChange?: StateChange;
|
|
17
|
+
message?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Creates a standard successful safety tool result.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createSuccessResult(params: {
|
|
23
|
+
verified: boolean;
|
|
24
|
+
changedState: boolean;
|
|
25
|
+
stateChange?: StateChange;
|
|
26
|
+
message?: string;
|
|
27
|
+
}): SafetyToolResult;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a standard failure result (tool execution error).
|
|
30
|
+
*/
|
|
31
|
+
export declare function createFailureResult(message: string): SafetyToolResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wraps a safety-critical tool's execute function to ensure it ALWAYS
|
|
3
|
+
* returns valid metadata, even if the underlying logic throws an error
|
|
4
|
+
* or returns early. This prevents the runtime `[Tool Contract Violation]`
|
|
5
|
+
* from being triggered by malformed tool returns.
|
|
6
|
+
*
|
|
7
|
+
* It ensures metadata is stored for hook retrieval and flattens nested metadata,
|
|
8
|
+
* but no longer auto-fills success/verified status.
|
|
9
|
+
*/
|
|
10
|
+
export declare function withToolContract(toolName: string, executeFn: (args: any, context: any) => Promise<string>): (args: any, context: any) => Promise<string>;
|