opencode-matrixx 1.1.1 → 2.0.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 +162 -127
- package/bin/matrixx.js +4 -4
- package/dist/agents/agent-builder.d.ts +2 -3
- package/dist/agents/architect/agent.d.ts +2 -2
- package/dist/agents/architect/index.d.ts +4 -4
- package/dist/agents/builtin-agents/agent-overrides.d.ts +1 -1
- package/dist/agents/builtin-agents/atlas-agent.d.ts +1 -1
- package/dist/agents/builtin-agents/available-skills.d.ts +2 -2
- package/dist/agents/builtin-agents/general-agents.d.ts +2 -4
- package/dist/agents/builtin-agents/hephaestus-agent.d.ts +1 -1
- package/dist/agents/builtin-agents/sisyphus-agent.d.ts +1 -1
- package/dist/agents/builtin-agents.d.ts +3 -4
- package/dist/agents/env-context.d.ts +1 -1
- package/dist/agents/index.d.ts +6 -7
- package/dist/agents/keymaker.d.ts +1 -1
- package/dist/agents/morpheus.d.ts +1 -3
- package/dist/agents/mouse/index.d.ts +2 -2
- package/dist/agents/oracle/index.d.ts +3 -3
- package/dist/agents/sati.d.ts +7 -0
- package/dist/agents/seraph.d.ts +1 -1
- package/dist/agents/types.d.ts +6 -6
- package/dist/cli/config-manager/config-context.d.ts +1 -1
- package/dist/cli/config-manager/generate-matrixx-config.d.ts +2 -0
- package/dist/cli/config-manager/opencode-config-format.d.ts +2 -1
- package/dist/cli/config-manager/write-matrixx-config.d.ts +2 -0
- package/dist/cli/config-manager.d.ts +10 -10
- package/dist/cli/doctor/checks/index.d.ts +1 -1
- package/dist/cli/doctor/checks/model-resolution-config.d.ts +2 -2
- package/dist/cli/doctor/checks/model-resolution-details.d.ts +2 -2
- package/dist/cli/doctor/checks/model-resolution-types.d.ts +1 -1
- package/dist/cli/doctor/checks/model-resolution-variant.d.ts +3 -3
- package/dist/cli/doctor/checks/model-resolution.d.ts +2 -2
- package/dist/cli/doctor/checks/system-binary.d.ts +2 -7
- package/dist/cli/doctor/checks/system-loaded-version.d.ts +2 -1
- package/dist/cli/doctor/checks/tools-gh.d.ts +2 -1
- package/dist/cli/doctor/formatter.d.ts +1 -1
- package/dist/cli/doctor/index.d.ts +2 -2
- package/dist/cli/doctor/runner.d.ts +1 -1
- package/dist/cli/doctor/types.d.ts +2 -30
- package/dist/cli/index.js +16735 -14492
- package/dist/cli/mcp-oauth/login.d.ts +2 -1
- package/dist/cli/mcp-oauth/logout.d.ts +2 -1
- package/dist/cli/model-fallback-types.d.ts +1 -1
- package/dist/cli/model-fallback.d.ts +3 -4
- package/dist/cli/provider-availability.d.ts +1 -1
- package/dist/cli/run/agent-resolver.d.ts +1 -1
- package/dist/cli/run/event-formatting.d.ts +1 -1
- package/dist/cli/run/event-handlers.d.ts +1 -1
- package/dist/cli/run/event-stream-processor.d.ts +1 -1
- package/dist/cli/run/events.d.ts +1 -1
- package/dist/cli/run/index.d.ts +6 -6
- package/dist/cli/run/json-output.d.ts +1 -1
- package/dist/cli/run/opencode-binary-resolver.d.ts +0 -1
- package/dist/cli/run/poll-for-completion.d.ts +3 -2
- package/dist/cli/run/runner.d.ts +1 -1
- package/dist/config/index.d.ts +3 -3
- package/dist/config/profiles.d.ts +1 -1
- package/dist/config/schema/agent-definitions.d.ts +0 -1
- package/dist/config/schema/agent-names.d.ts +6 -39
- package/dist/config/schema/agent-overrides.d.ts +2 -2
- package/dist/config/schema/claude-code.d.ts +0 -1
- package/dist/config/schema/commands.d.ts +2 -0
- package/dist/config/schema/experimental.d.ts +0 -26
- package/dist/config/schema/hooks.d.ts +3 -1
- package/dist/config/schema/matrixx-config.d.ts +22 -51
- package/dist/config/schema/matrixx-self-config.d.ts +6 -0
- package/dist/config/schema/morpheus.d.ts +2 -1
- package/dist/config/schema/security.d.ts +4 -3
- package/dist/config/schema/skills.d.ts +2 -20
- package/dist/config/schema/websearch.d.ts +0 -5
- package/dist/config/schema.d.ts +10 -12
- package/dist/create-hooks.d.ts +4 -2
- package/dist/create-managers.d.ts +2 -2
- package/dist/create-tools.d.ts +3 -2
- package/dist/features/background-agent/background-task-notification-template.d.ts +2 -1
- package/dist/features/background-agent/constants.d.ts +1 -5
- package/dist/features/background-agent/index.d.ts +3 -3
- package/dist/features/background-agent/loop-detector.d.ts +2 -2
- package/dist/features/background-agent/manager.d.ts +13 -2
- package/dist/features/background-agent/state.d.ts +1 -1
- package/dist/features/background-agent/task-poller.d.ts +3 -2
- package/dist/features/background-agent/types.d.ts +4 -1
- package/dist/features/builtin-commands/index.d.ts +1 -1
- package/dist/features/builtin-commands/templates/end-ultrawork.d.ts +1 -0
- package/dist/features/builtin-commands/templates/handoff.d.ts +1 -1
- package/dist/features/builtin-commands/templates/pickup.d.ts +1 -1
- package/dist/features/builtin-commands/templates/profile.d.ts +1 -0
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
- package/dist/features/builtin-commands/types.d.ts +1 -4
- package/dist/features/builtin-skills/index.d.ts +1 -1
- package/dist/features/builtin-skills/skills/document-reader.d.ts +0 -2
- package/dist/features/builtin-skills/skills/dsl-codegen.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-composition.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-core.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-grammar.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-metamodel.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-model-transformation.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-pyecore-advanced.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-testing.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-textx-ecosystem.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-tooling.d.ts +0 -1
- package/dist/features/builtin-skills/skills/dsl-validation.d.ts +0 -1
- package/dist/features/builtin-skills/skills/frontend-a11y.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-build-tooling.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-perf.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-react-nextjs.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-state-data.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-svelte-sveltekit.d.ts +3 -0
- package/dist/features/builtin-skills/skills/frontend-testing.d.ts +3 -0
- package/dist/features/builtin-skills/skills/index.d.ts +25 -30
- package/dist/features/builtin-skills/skills/matrixx-self-config.d.ts +3 -0
- package/dist/features/builtin-skills/skills/quality-gate.d.ts +2 -0
- package/dist/features/builtin-skills/skills/review-work.d.ts +0 -2
- package/dist/features/builtin-skills/skills/security-api.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-core.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-crypto.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-dast.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-dependencies.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-infra.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-review.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-sast.d.ts +0 -1
- package/dist/features/builtin-skills/skills/security-secrets.d.ts +0 -1
- package/dist/features/builtin-skills/skills/software-dev.d.ts +2 -0
- package/dist/features/builtin-skills/skills/tdd-enforcer.d.ts +0 -2
- package/dist/features/builtin-skills/skills.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/index.d.ts +1 -1
- package/dist/features/claude-code-command-loader/index.d.ts +1 -1
- package/dist/features/claude-code-command-loader/types.d.ts +2 -1
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +0 -1
- package/dist/features/claude-code-mcp-loader/index.d.ts +2 -2
- package/dist/features/claude-code-mcp-loader/loader.d.ts +1 -2
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/index.d.ts +7 -7
- package/dist/features/claude-code-plugin-loader/loader.d.ts +5 -5
- package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +0 -1
- package/dist/features/claude-code-plugin-loader/types.d.ts +10 -9
- package/dist/features/claude-tasks/index.d.ts +2 -2
- package/dist/features/claude-tasks/session-storage.d.ts +2 -1
- package/dist/features/claude-tasks/storage.d.ts +0 -1
- package/dist/features/claude-tasks/types.d.ts +4 -4
- package/dist/features/context-injector/index.d.ts +1 -1
- package/dist/features/context-injector/injector.d.ts +1 -27
- package/dist/features/handoff/constants.d.ts +8 -0
- package/dist/features/handoff/index.d.ts +4 -0
- package/dist/features/handoff/schema.d.ts +90 -0
- package/dist/{hooks/handoff-injector → features/handoff}/storage.d.ts +2 -0
- package/dist/features/handoff/validate.d.ts +22 -0
- package/dist/features/hook-message-injector/constants.d.ts +1 -1
- package/dist/features/hook-message-injector/index.d.ts +2 -2
- package/dist/features/hook-message-injector/injector.d.ts +2 -2
- package/dist/features/mcp-oauth/dcr.d.ts +3 -9
- package/dist/features/mcp-oauth/index.d.ts +1 -1
- package/dist/features/mcp-oauth/provider.d.ts +4 -4
- package/dist/features/mcp-oauth/schema.d.ts +0 -1
- package/dist/features/mcp-oauth/step-up.d.ts +2 -1
- package/dist/features/mission-state/constants.d.ts +0 -3
- package/dist/features/mission-state/index.d.ts +1 -1
- package/dist/features/mission-state/storage.d.ts +0 -1
- package/dist/features/opencode-skill-loader/index.d.ts +6 -7
- package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +1 -1
- package/dist/features/opencode-skill-loader/loader.d.ts +2 -2
- package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger.d.ts +3 -2
- package/dist/features/opencode-skill-loader/skill-content.d.ts +3 -4
- package/dist/features/opencode-skill-loader/skill-discovery.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +1 -2
- package/dist/features/run-continuation-state/index.d.ts +1 -1
- package/dist/features/run-continuation-state/types.d.ts +2 -1
- package/dist/features/skill-mcp-manager/cleanup.d.ts +0 -1
- package/dist/features/skill-mcp-manager/index.d.ts +1 -1
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +0 -1
- package/dist/features/skill-mcp-manager/types.d.ts +5 -4
- package/dist/features/task-toast-manager/index.d.ts +2 -2
- package/dist/features/task-toast-manager/manager.d.ts +1 -1
- package/dist/features/tmux-subagent/action-executor.d.ts +2 -2
- package/dist/features/tmux-subagent/cleanup.d.ts +1 -9
- package/dist/features/tmux-subagent/decision-engine.d.ts +3 -3
- package/dist/features/tmux-subagent/event-handlers.d.ts +3 -3
- package/dist/features/tmux-subagent/index.d.ts +7 -8
- package/dist/features/tmux-subagent/manager.d.ts +1 -1
- package/dist/features/tmux-subagent/polling.d.ts +0 -18
- package/dist/features/tmux-subagent/session-created-handler.d.ts +1 -1
- package/dist/features/tmux-subagent/session-deleted-handler.d.ts +1 -1
- package/dist/features/tmux-subagent/spawn-action-decider.d.ts +1 -1
- package/dist/features/tool-metadata-store/index.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/aggressive-truncation-strategy.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/empty-content-recovery.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +3 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +5 -5
- package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/message-storage-directory.d.ts +0 -3
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.d.ts +1 -1
- package/dist/hooks/architect/index.d.ts +1 -1
- package/dist/hooks/auto-slash-command/executor.d.ts +2 -1
- package/dist/hooks/auto-slash-command/hook.d.ts +1 -1
- package/dist/hooks/auto-slash-command/index.d.ts +3 -3
- package/dist/hooks/auto-slash-command/types.d.ts +0 -5
- package/dist/hooks/auto-update-checker/checker.d.ts +6 -6
- package/dist/hooks/auto-update-checker/constants.d.ts +0 -2
- package/dist/hooks/auto-update-checker/index.d.ts +4 -4
- package/dist/hooks/comment-checker/cli-runner.d.ts +2 -1
- package/dist/hooks/comment-checker/downloader.d.ts +0 -5
- package/dist/hooks/comment-checker/types.d.ts +0 -18
- package/dist/hooks/delegate-task-retry/index.d.ts +2 -2
- package/dist/hooks/design-intent-preserver/constants.d.ts +6 -0
- package/dist/hooks/design-intent-preserver/hook.d.ts +19 -0
- package/dist/hooks/design-intent-preserver/index.d.ts +1 -0
- package/dist/hooks/design-intent-preserver/phase-detector.d.ts +8 -0
- package/dist/hooks/directory-agents-injector/finder.d.ts +1 -1
- package/dist/hooks/directory-agents-injector/hook.d.ts +3 -23
- package/dist/hooks/directory-injector/factory.d.ts +40 -0
- package/dist/hooks/directory-injector/index.d.ts +1 -0
- package/dist/hooks/directory-readme-injector/finder.d.ts +1 -1
- package/dist/hooks/directory-readme-injector/hook.d.ts +3 -23
- package/dist/hooks/env-file-write-guard/hook.d.ts +2 -1
- package/dist/hooks/index.d.ts +43 -41
- package/dist/hooks/interactive-bash-session/constants.d.ts +1 -1
- package/dist/hooks/interactive-bash-session/index.d.ts +0 -2
- package/dist/hooks/interactive-bash-session/parser.d.ts +2 -2
- package/dist/hooks/json-error-recovery/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/analyze/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/constants.d.ts +5 -6
- package/dist/hooks/keyword-detector/detector.d.ts +2 -2
- package/dist/hooks/keyword-detector/index.d.ts +1 -2
- package/dist/hooks/keyword-detector/search/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/index.d.ts +4 -4
- package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +10 -0
- package/dist/hooks/matrix-loop/completion-verifier.d.ts +4 -1
- package/dist/hooks/matrix-loop/constants.d.ts +0 -1
- package/dist/hooks/matrix-loop/index.d.ts +3 -3
- package/dist/hooks/matrix-loop/storage.d.ts +0 -1
- package/dist/hooks/non-interactive-env/index.d.ts +0 -1
- package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +0 -1
- package/dist/hooks/preemptive-compaction-types.d.ts +2 -1
- package/dist/hooks/prometheus-md-only/constants.d.ts +0 -1
- package/dist/hooks/quality-gate/hook.d.ts +18 -0
- package/dist/hooks/rules-injector/index.d.ts +1 -1
- package/dist/hooks/rules-injector/injector.d.ts +1 -0
- package/dist/hooks/rules-injector/matcher.d.ts +2 -1
- package/dist/hooks/rules-injector/output-path.d.ts +2 -1
- package/dist/hooks/rules-injector/parser.d.ts +2 -1
- package/dist/hooks/rules-injector/types.d.ts +0 -21
- package/dist/hooks/runtime-fallback/agent-resolver.d.ts +0 -2
- package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +2 -1
- package/dist/hooks/runtime-fallback/event-handler.d.ts +1 -1
- package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +1 -1
- package/dist/hooks/runtime-fallback/fallback-state.d.ts +1 -3
- package/dist/hooks/runtime-fallback/index.d.ts +1 -1
- package/dist/hooks/runtime-fallback/message-update-handler.d.ts +1 -1
- package/dist/hooks/runtime-fallback/session-status-handler.d.ts +1 -1
- package/dist/hooks/runtime-fallback/types.d.ts +1 -1
- package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +1 -1
- package/dist/hooks/secret-leak-guard/gitleaks-runner.d.ts +4 -3
- package/dist/hooks/secret-leak-guard/hook.d.ts +2 -1
- package/dist/hooks/session-recovery/constants.d.ts +1 -2
- package/dist/hooks/session-recovery/index.d.ts +3 -3
- package/dist/hooks/session-recovery/storage.d.ts +9 -17
- package/dist/hooks/session-recovery/types.d.ts +3 -5
- package/dist/hooks/start-work/index.d.ts +1 -1
- package/dist/hooks/stop-continuation-guard/hook.d.ts +2 -1
- package/dist/hooks/stop-continuation-guard/index.d.ts +1 -1
- package/dist/hooks/task-notepad/constants.d.ts +10 -0
- package/dist/hooks/task-notepad/hook.d.ts +12 -0
- package/dist/hooks/task-notepad/index.d.ts +3 -0
- package/dist/hooks/task-notepad/types.d.ts +16 -0
- package/dist/hooks/tasks-todowrite-disabler/index.d.ts +1 -1
- package/dist/hooks/think-mode/hook.d.ts +5 -1
- package/dist/hooks/think-mode/index.d.ts +1 -1
- package/dist/hooks/think-mode/switcher.d.ts +1 -0
- package/dist/hooks/think-mode/types.d.ts +3 -2
- package/dist/hooks/todo-continuation-enforcer/continuation-injection.d.ts +1 -1
- package/dist/hooks/todo-continuation-enforcer/countdown.d.ts +1 -1
- package/dist/hooks/unstable-agent-babysitter/index.d.ts +1 -1
- package/dist/hooks/webfetch-redirect-guard/redirect-resolution.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +64716 -51265
- package/dist/mcp/index.d.ts +1 -1
- package/dist/plugin/chat-message.d.ts +1 -1
- package/dist/plugin/event.d.ts +1 -1
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +1 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +3 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +3 -3
- package/dist/plugin/hooks/create-skill-hooks.d.ts +1 -1
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +3 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +3 -3
- package/dist/plugin/messages-transform.d.ts +1 -0
- package/dist/plugin/session-agent-resolver.d.ts +1 -1
- package/dist/plugin/tool-execute-before.bench.d.ts +1 -0
- package/dist/plugin/tool-execute-before.d.ts +1 -1
- package/dist/plugin/tool-registry.d.ts +1 -1
- package/dist/plugin/unstable-agent-babysitter.d.ts +1 -1
- package/dist/plugin-config.d.ts +24 -1
- package/dist/plugin-handlers/agent-config-handler.d.ts +1 -1
- package/dist/plugin-handlers/config-handler.d.ts +1 -1
- package/dist/plugin-handlers/index.d.ts +6 -6
- package/dist/plugin-interface.d.ts +1 -1
- package/dist/shared/agent-tool-restrictions.d.ts +0 -1
- package/dist/shared/code-patterns.d.ts +2 -0
- package/dist/shared/command-executor/embedded-commands.d.ts +2 -1
- package/dist/shared/command-executor/execute-command.d.ts +1 -1
- package/dist/shared/command-executor.d.ts +0 -2
- package/dist/shared/dynamic-truncator.d.ts +3 -9
- package/dist/shared/error-formatting.d.ts +27 -0
- package/dist/shared/external-plugin-detector.d.ts +2 -1
- package/dist/shared/frontmatter.d.ts +2 -1
- package/dist/shared/git-worktree/index.d.ts +3 -3
- package/dist/shared/index.d.ts +36 -35
- package/dist/shared/is-object.d.ts +1 -0
- package/dist/shared/jsonc-parser.d.ts +2 -1
- package/dist/shared/logger.d.ts +0 -1
- package/dist/shared/migration.d.ts +2 -2
- package/dist/shared/model-availability.d.ts +24 -2
- package/dist/shared/model-suggestion-retry.d.ts +1 -1
- package/dist/shared/normalize-sdk-response.d.ts +2 -1
- package/dist/shared/opencode-config-dir-types.d.ts +0 -1
- package/dist/shared/permission-compat.d.ts +2 -1
- package/dist/shared/port-utils.d.ts +1 -1
- package/dist/shared/session-cursor.d.ts +1 -1
- package/dist/shared/session-injected-paths.d.ts +0 -5
- package/dist/shared/session-model-state.d.ts +2 -3
- package/dist/shared/session-temperature-store.d.ts +3 -0
- package/dist/shared/shell-env.d.ts +2 -18
- package/dist/shared/skill-path-resolver.d.ts +1 -1
- package/dist/shared/system-directive.d.ts +0 -1
- package/dist/shared/tmux/index.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils.d.ts +6 -6
- package/dist/shared/token-cache.d.ts +23 -0
- package/dist/shared/transcript-path.d.ts +1 -0
- package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +0 -1
- package/dist/tools/ast-grep/constants.d.ts +1 -2
- package/dist/tools/ast-grep/downloader.d.ts +0 -1
- package/dist/tools/ast-grep/index.d.ts +4 -4
- package/dist/tools/ast-grep/result-formatter.d.ts +1 -3
- package/dist/tools/ast-grep/types.d.ts +1 -24
- package/dist/tools/background-task/index.d.ts +2 -2
- package/dist/tools/background-task/time-format.d.ts +0 -1
- package/dist/tools/background-task/tools.d.ts +2 -2
- package/dist/tools/background-task/types.d.ts +0 -19
- package/dist/tools/delegate-agent/background-agent-executor.d.ts +5 -0
- package/dist/tools/{call-omo-agent → delegate-agent}/background-executor.d.ts +3 -3
- package/dist/tools/delegate-agent/constants.d.ts +2 -0
- package/dist/tools/{call-omo-agent → delegate-agent}/index.d.ts +2 -2
- package/dist/tools/{call-omo-agent → delegate-agent}/session-creator.d.ts +2 -2
- package/dist/tools/{call-omo-agent → delegate-agent}/subagent-session-creator.d.ts +2 -2
- package/dist/tools/{call-omo-agent → delegate-agent}/sync-executor.d.ts +3 -3
- package/dist/tools/{call-omo-agent → delegate-agent}/tools.d.ts +1 -1
- package/dist/tools/{call-omo-agent → delegate-agent}/types.d.ts +1 -16
- package/dist/tools/delegate-task/background-continuation.d.ts +1 -1
- package/dist/tools/delegate-task/background-task.d.ts +2 -1
- package/dist/tools/delegate-task/categories.d.ts +5 -3
- package/dist/tools/delegate-task/category-resolver.d.ts +2 -1
- package/dist/tools/delegate-task/constants.d.ts +6 -18
- package/dist/tools/delegate-task/error-formatting.d.ts +4 -13
- package/dist/tools/delegate-task/executor-types.d.ts +1 -2
- package/dist/tools/delegate-task/executor.d.ts +7 -7
- package/dist/tools/delegate-task/index.d.ts +3 -3
- package/dist/tools/delegate-task/parent-context-resolver.d.ts +1 -2
- package/dist/tools/delegate-task/prompt-builder.d.ts +0 -1
- package/dist/tools/delegate-task/skill-resolver.d.ts +1 -2
- package/dist/tools/delegate-task/subagent-resolver.d.ts +1 -1
- package/dist/tools/delegate-task/sync-continuation-deps.d.ts +1 -1
- package/dist/tools/delegate-task/sync-continuation.d.ts +1 -1
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +2 -1
- package/dist/tools/delegate-task/sync-result-fetcher.d.ts +6 -1
- package/dist/tools/delegate-task/sync-session-poller.d.ts +5 -1
- package/dist/tools/delegate-task/sync-task-deps.d.ts +2 -2
- package/dist/tools/delegate-task/sync-task.d.ts +2 -1
- package/dist/tools/delegate-task/tools.d.ts +1 -1
- package/dist/tools/delegate-task/types.d.ts +2 -3
- package/dist/tools/delegate-task/unstable-agent-task.d.ts +2 -1
- package/dist/tools/glob/cli.d.ts +1 -1
- package/dist/tools/glob/constants.d.ts +1 -1
- package/dist/tools/grep/cli.d.ts +1 -2
- package/dist/tools/grep/constants.d.ts +0 -1
- package/dist/tools/grep/result-formatter.d.ts +1 -2
- package/dist/tools/grep/types.d.ts +0 -4
- package/dist/tools/handoff/archive-handler.d.ts +9 -0
- package/dist/tools/handoff/body-formatter.d.ts +9 -0
- package/dist/tools/handoff/constants.d.ts +17 -0
- package/dist/tools/handoff/create-handler.d.ts +34 -0
- package/dist/tools/handoff/git.d.ts +12 -0
- package/dist/tools/handoff/index.d.ts +3 -0
- package/dist/tools/handoff/list-handler.d.ts +8 -0
- package/dist/tools/handoff/read-handler.d.ts +8 -0
- package/dist/tools/handoff/tools.d.ts +11 -0
- package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +0 -5
- package/dist/tools/hashline-edit/edit-operations.d.ts +2 -1
- package/dist/tools/hashline-edit/edit-text-normalization.d.ts +0 -2
- package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +2 -1
- package/dist/tools/hashline-edit/hash-computation.d.ts +2 -1
- package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +1 -1
- package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +1 -1
- package/dist/tools/hashline-edit/index.d.ts +4 -5
- package/dist/tools/hashline-edit/validation.d.ts +0 -2
- package/dist/tools/index.d.ts +8 -7
- package/dist/tools/interactive-bash/constants.d.ts +1 -1
- package/dist/tools/interactive-bash/index.d.ts +1 -1
- package/dist/tools/look-at/index.d.ts +1 -1
- package/dist/tools/lsp/client.d.ts +1 -1
- package/dist/tools/lsp/config.d.ts +1 -1
- package/dist/tools/lsp/constants.d.ts +1 -1
- package/dist/tools/lsp/index.d.ts +4 -4
- package/dist/tools/lsp/lsp-client-transport.d.ts +1 -1
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +1 -5
- package/dist/tools/lsp/lsp-formatters.d.ts +1 -5
- package/dist/tools/lsp/lsp-server.d.ts +1 -1
- package/dist/tools/lsp/tools.d.ts +3 -3
- package/dist/tools/lsp/types.d.ts +8 -7
- package/dist/tools/session-manager/constants.d.ts +1 -1
- package/dist/tools/session-manager/index.d.ts +1 -1
- package/dist/tools/session-manager/session-formatter.d.ts +1 -1
- package/dist/tools/session-manager/storage.d.ts +2 -3
- package/dist/tools/session-manager/types.d.ts +0 -4
- package/dist/tools/skill/constants.d.ts +0 -1
- package/dist/tools/skill/index.d.ts +1 -1
- package/dist/tools/skill/types.d.ts +1 -4
- package/dist/tools/skill-mcp/constants.d.ts +0 -1
- package/dist/tools/skill-mcp/index.d.ts +1 -1
- package/dist/tools/skill-mcp/tools.d.ts +1 -1
- package/dist/tools/slashcommand/index.d.ts +1 -1
- package/dist/tools/slashcommand/types.d.ts +1 -1
- package/dist/tools/task/constants.d.ts +1 -0
- package/dist/tools/task/index.d.ts +1 -2
- package/dist/tools/task/types.d.ts +10 -10
- package/package.json +13 -9
- package/dist/agents/niobe.d.ts +0 -7
- package/dist/agents/zion.d.ts +0 -7
- package/dist/cli/config-manager/generate-omo-config.d.ts +0 -2
- package/dist/cli/config-manager/write-omo-config.d.ts +0 -2
- package/dist/config/schema/dynamic-context-pruning.d.ts +0 -28
- package/dist/config/schema/git-master.d.ts +0 -6
- package/dist/features/background-agent/background-event-handler.d.ts +0 -26
- package/dist/features/background-agent/background-manager-shutdown.d.ts +0 -25
- package/dist/features/background-agent/background-task-completer.d.ts +0 -3
- package/dist/features/background-agent/duration-formatter.d.ts +0 -1
- package/dist/features/background-agent/error-classifier.d.ts +0 -2
- package/dist/features/background-agent/format-duration.d.ts +0 -1
- package/dist/features/background-agent/message-dir.d.ts +0 -1
- package/dist/features/background-agent/notification-builder.d.ts +0 -8
- package/dist/features/background-agent/notification-tracker.d.ts +0 -6
- package/dist/features/background-agent/notify-parent-session.d.ts +0 -10
- package/dist/features/background-agent/parent-session-context-resolver.d.ts +0 -14
- package/dist/features/background-agent/parent-session-notifier.d.ts +0 -3
- package/dist/features/background-agent/poll-running-tasks.d.ts +0 -15
- package/dist/features/background-agent/process-signal.d.ts +0 -2
- package/dist/features/background-agent/result-handler-context.d.ts +0 -8
- package/dist/features/background-agent/result-handler.d.ts +0 -7
- package/dist/features/background-agent/session-idle-event-handler.d.ts +0 -10
- package/dist/features/background-agent/session-output-validator.d.ts +0 -2
- package/dist/features/background-agent/session-task-cleanup.d.ts +0 -10
- package/dist/features/background-agent/session-todo-checker.d.ts +0 -2
- package/dist/features/background-agent/session-validator.d.ts +0 -7
- package/dist/features/background-agent/spawner/background-session-creator.d.ts +0 -10
- package/dist/features/background-agent/spawner/concurrency-key-from-launch-input.d.ts +0 -2
- package/dist/features/background-agent/spawner/parent-directory-resolver.d.ts +0 -6
- package/dist/features/background-agent/spawner/spawner-context.d.ts +0 -11
- package/dist/features/background-agent/spawner/task-factory.d.ts +0 -2
- package/dist/features/background-agent/spawner/task-resumer.d.ts +0 -3
- package/dist/features/background-agent/spawner/task-starter.d.ts +0 -3
- package/dist/features/background-agent/spawner/tmux-callback-invoker.d.ts +0 -8
- package/dist/features/background-agent/spawner.d.ts +0 -14
- package/dist/features/background-agent/stale-task-pruner.d.ts +0 -15
- package/dist/features/background-agent/task-canceller.d.ts +0 -27
- package/dist/features/background-agent/task-completer.d.ts +0 -13
- package/dist/features/background-agent/task-launch.d.ts +0 -15
- package/dist/features/background-agent/task-queries.d.ts +0 -7
- package/dist/features/background-agent/task-queue-processor.d.ts +0 -14
- package/dist/features/background-agent/task-resumer.d.ts +0 -14
- package/dist/features/background-agent/task-starter.d.ts +0 -27
- package/dist/features/background-agent/task-tracker.d.ts +0 -18
- package/dist/features/builtin-skills/skills/academic-review.d.ts +0 -4
- package/dist/features/builtin-skills/skills/academic-writing.d.ts +0 -4
- package/dist/features/builtin-skills/skills/crypto-market-analysis.d.ts +0 -4
- package/dist/features/builtin-skills/skills/crypto-onchain.d.ts +0 -4
- package/dist/features/builtin-skills/skills/crypto-trading.d.ts +0 -4
- package/dist/features/builtin-skills/skills/data-management-plan.d.ts +0 -4
- package/dist/features/builtin-skills/skills/deliverable-writing.d.ts +0 -4
- package/dist/features/builtin-skills/skills/eu-horizon.d.ts +0 -4
- package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +0 -2
- package/dist/features/builtin-skills/skills/grant-writing.d.ts +0 -4
- package/dist/features/builtin-skills/skills/ip-exploitation.d.ts +0 -4
- package/dist/features/builtin-skills/skills/literature-review.d.ts +0 -4
- package/dist/features/builtin-skills/skills/project-management.d.ts +0 -4
- package/dist/features/builtin-skills/skills/research-methodology.d.ts +0 -4
- package/dist/features/builtin-skills/skills/scientific-presentation.d.ts +0 -4
- package/dist/features/builtin-skills/skills/technical-lead.d.ts +0 -4
- package/dist/features/mcp-oauth/resource-indicator.d.ts +0 -2
- package/dist/features/opencode-skill-loader/async-loader.d.ts +0 -6
- package/dist/features/opencode-skill-loader/blocking.d.ts +0 -2
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +0 -2
- package/dist/features/team-mode/index.d.ts +0 -2
- package/dist/features/team-mode/team-layout-tmux/index.d.ts +0 -1
- package/dist/features/team-mode/team-layout-tmux/layout.d.ts +0 -15
- package/dist/features/team-mode/team-worktree/cleanup.d.ts +0 -3
- package/dist/features/team-mode/team-worktree/index.d.ts +0 -2
- package/dist/features/team-mode/team-worktree/manager.d.ts +0 -15
- package/dist/features/team-mode/types.d.ts +0 -210
- package/dist/features/tmux-subagent/manager-cleanup.d.ts +0 -12
- package/dist/features/tmux-subagent/session-cleaner.d.ts +0 -23
- package/dist/features/tmux-subagent/session-message-count.d.ts +0 -1
- package/dist/features/tmux-subagent/session-spawner.d.ts +0 -34
- package/dist/hooks/anthropic-context-window-limit-recovery/deduplication-recovery.d.ts +0 -6
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +0 -10
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-tool-output-truncation.d.ts +0 -6
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +0 -36
- package/dist/hooks/claude-code-hooks/claude-code-hooks-hook.d.ts +0 -48
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +0 -13
- package/dist/hooks/claude-code-hooks/config.d.ts +0 -3
- package/dist/hooks/claude-code-hooks/handlers/chat-message-handler.d.ts +0 -19
- package/dist/hooks/claude-code-hooks/handlers/pre-compact-handler.d.ts +0 -7
- package/dist/hooks/claude-code-hooks/handlers/session-event-handler.d.ts +0 -8
- package/dist/hooks/claude-code-hooks/handlers/tool-execute-after-handler.d.ts +0 -11
- package/dist/hooks/claude-code-hooks/handlers/tool-execute-before-handler.d.ts +0 -9
- package/dist/hooks/claude-code-hooks/index.d.ts +0 -1
- package/dist/hooks/claude-code-hooks/plugin-config.d.ts +0 -8
- package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +0 -40
- package/dist/hooks/claude-code-hooks/pre-compact.d.ts +0 -16
- package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +0 -25
- package/dist/hooks/claude-code-hooks/session-hook-state.d.ts +0 -9
- package/dist/hooks/claude-code-hooks/stop.d.ts +0 -20
- package/dist/hooks/claude-code-hooks/todo.d.ts +0 -12
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +0 -5
- package/dist/hooks/claude-code-hooks/transcript.d.ts +0 -29
- package/dist/hooks/claude-code-hooks/types.d.ts +0 -183
- package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +0 -22
- package/dist/hooks/handoff-injector/constants.d.ts +0 -4
- package/dist/hooks/interactive-bash-session/interactive-bash-session-hook.d.ts +0 -23
- package/dist/hooks/interactive-bash-session/interactive-bash-session-tracker.d.ts +0 -21
- package/dist/hooks/interactive-bash-session/tmux-command-parser.d.ts +0 -4
- package/dist/hooks/keyword-detector/types.d.ts +0 -4
- package/dist/hooks/non-interactive-env/types.d.ts +0 -3
- package/dist/hooks/session-recovery/recover-empty-content-message.d.ts +0 -5
- package/dist/plugin-handlers/agent-key-remapper.d.ts +0 -1
- package/dist/shared/available-models-fetcher.d.ts +0 -4
- package/dist/shared/command-executor/execute-hook-command.d.ts +0 -10
- package/dist/shared/command-executor/home-directory.d.ts +0 -1
- package/dist/shared/command-executor/shell-path.d.ts +0 -2
- package/dist/shared/fallback-model-availability.d.ts +0 -5
- package/dist/shared/hook-disabled.d.ts +0 -2
- package/dist/shared/model-cache-availability.d.ts +0 -2
- package/dist/shared/model-name-matcher.d.ts +0 -1
- package/dist/shared/models-json-cache-reader.d.ts +0 -1
- package/dist/shared/open-code-client-accessors.d.ts +0 -3
- package/dist/shared/open-code-client-shapes.d.ts +0 -13
- package/dist/shared/pattern-matcher.d.ts +0 -3
- package/dist/shared/provider-models-cache-model-reader.d.ts +0 -1
- package/dist/shared/snake-case.d.ts +0 -5
- package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +0 -1
- package/dist/shared/tool-name.d.ts +0 -1
- package/dist/tools/background-task/modules/background-cancel.d.ts +0 -4
- package/dist/tools/background-task/modules/background-output.d.ts +0 -3
- package/dist/tools/background-task/modules/background-task.d.ts +0 -3
- package/dist/tools/background-task/modules/formatters.d.ts +0 -11
- package/dist/tools/background-task/modules/message-processing.d.ts +0 -59
- package/dist/tools/background-task/modules/utils.d.ts +0 -16
- package/dist/tools/call-omo-agent/agent-type-normalizer.d.ts +0 -2
- package/dist/tools/call-omo-agent/background-agent-executor.d.ts +0 -5
- package/dist/tools/call-omo-agent/constants.d.ts +0 -2
- package/dist/tools/call-omo-agent/session-completion-poller.d.ts +0 -13
- package/dist/tools/call-omo-agent/session-message-output-extractor.d.ts +0 -17
- package/dist/tools/call-omo-agent/subagent-session-prompter.d.ts +0 -11
- package/dist/tools/call-omo-agent/sync-agent-executor.d.ts +0 -4
- package/dist/tools/delegate-task/skill-content-resolver.d.ts +0 -9
- package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +0 -1
- package/dist/tools/look-at/session-poller.d.ts +0 -8
- /package/dist/features/{opencode-skill-loader/discover-worker.d.ts → background-agent/manager.bench.d.ts} +0 -0
- /package/dist/{tools/delegate-task/time-formatter.d.ts → shared/format-duration.d.ts} +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/completion-poller.d.ts +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/message-dir.d.ts +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/message-processor.d.ts +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/message-storage-directory.d.ts +0 -0
- /package/dist/tools/{call-omo-agent → delegate-agent}/tool-context-with-metadata.d.ts +0 -0
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Detect the current shell type based on environment variables.
|
|
4
|
-
*
|
|
5
|
-
* Detection priority:
|
|
6
|
-
* 1. PSModulePath → PowerShell
|
|
7
|
-
* 2. SHELL env var → Unix shell
|
|
8
|
-
* 3. Platform fallback → win32: cmd, others: unix
|
|
9
|
-
*/
|
|
10
|
-
export declare function detectShellType(): ShellType;
|
|
11
|
-
/**
|
|
12
|
-
* Shell-escape a value for use in environment variable assignment.
|
|
13
|
-
*
|
|
14
|
-
* @param value - The value to escape
|
|
15
|
-
* @param shellType - The target shell type
|
|
16
|
-
* @returns Escaped value appropriate for the shell
|
|
17
|
-
*/
|
|
18
|
-
export declare function shellEscape(value: string, shellType: ShellType): string;
|
|
1
|
+
type ShellType = "unix" | "powershell" | "cmd";
|
|
19
2
|
/**
|
|
20
3
|
* Build environment variable prefix command for the target shell.
|
|
21
4
|
*
|
|
@@ -39,3 +22,4 @@ export declare function shellEscape(value: string, shellType: ShellType): string
|
|
|
39
22
|
* ```
|
|
40
23
|
*/
|
|
41
24
|
export declare function buildEnvPrefix(env: Record<string, string>, shellType: ShellType): string;
|
|
25
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Resolves @path references in skill content to absolute paths.
|
|
3
3
|
*
|
|
4
4
|
* Matches @references that contain at least one slash (e.g., @scripts/search.py, @data/)
|
|
5
|
-
* to avoid false positives with decorators (@param), JSDoc tags (@ts-
|
|
5
|
+
* to avoid false positives with decorators (@param), JSDoc tags (@ts-expect-error), etc.
|
|
6
6
|
*
|
|
7
7
|
* Email addresses are excluded since they have alphanumeric characters before @.
|
|
8
8
|
*/
|
|
@@ -42,4 +42,3 @@ export declare const SystemDirectiveTypes: {
|
|
|
42
42
|
readonly CONTEXT_WINDOW_MONITOR: "CONTEXT WINDOW MONITOR";
|
|
43
43
|
readonly PROMETHEUS_READ_ONLY: "PROMETHEUS READ-ONLY";
|
|
44
44
|
};
|
|
45
|
-
export type SystemDirectiveType = (typeof SystemDirectiveTypes)[keyof typeof SystemDirectiveTypes];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { isInsideTmux, getCurrentPaneId } from "./tmux-utils/environment";
|
|
2
1
|
export type { SplitDirection } from "./tmux-utils/environment";
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export type { PaneDimensions } from "./tmux-utils/pane-dimensions";
|
|
6
|
-
export { spawnTmuxPane } from "./tmux-utils/pane-spawn";
|
|
2
|
+
export { getCurrentPaneId, isInsideTmux } from "./tmux-utils/environment";
|
|
3
|
+
export { applyLayout, enforceMainPaneWidth } from "./tmux-utils/layout";
|
|
7
4
|
export { closeTmuxPane } from "./tmux-utils/pane-close";
|
|
5
|
+
export type { PaneDimensions } from "./tmux-utils/pane-dimensions";
|
|
6
|
+
export { getPaneDimensions } from "./tmux-utils/pane-dimensions";
|
|
8
7
|
export { replaceTmuxPane } from "./tmux-utils/pane-replace";
|
|
9
|
-
export {
|
|
8
|
+
export { spawnTmuxPane } from "./tmux-utils/pane-spawn";
|
|
9
|
+
export { isServerRunning, resetServerCheck } from "./tmux-utils/server-health";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface TokenInfo {
|
|
2
|
+
input: number;
|
|
3
|
+
output: number;
|
|
4
|
+
reasoning: number;
|
|
5
|
+
cache: {
|
|
6
|
+
read: number;
|
|
7
|
+
write: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface CachedTokenEntry {
|
|
11
|
+
providerID: string;
|
|
12
|
+
modelID: string;
|
|
13
|
+
tokens: TokenInfo;
|
|
14
|
+
updatedAt: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function updateTokenCache(sessionID: string, data: {
|
|
17
|
+
providerID: string;
|
|
18
|
+
modelID?: string;
|
|
19
|
+
tokens: TokenInfo;
|
|
20
|
+
}): void;
|
|
21
|
+
export declare function getCachedTokenUsage(sessionID: string, staleThresholdMs?: number): CachedTokenEntry | null;
|
|
22
|
+
export declare function clearTokenCache(sessionID: string): void;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getTranscriptPath(sessionId: string): string;
|
|
@@ -2,4 +2,3 @@ export declare function getAstGrepPath(): Promise<string | null>;
|
|
|
2
2
|
export declare function startBackgroundInit(): void;
|
|
3
3
|
export declare function isCliAvailable(): boolean;
|
|
4
4
|
export declare function ensureCliAvailable(): Promise<boolean>;
|
|
5
|
-
export declare function getResolvedSgCliPath(): string | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export type { EnvironmentCheckResult } from "./environment-check";
|
|
2
2
|
export { checkEnvironment, formatEnvironmentCheck } from "./environment-check";
|
|
3
|
-
export { CLI_LANGUAGES,
|
|
4
|
-
export { DEFAULT_TIMEOUT_MS, DEFAULT_MAX_OUTPUT_BYTES, DEFAULT_MAX_MATCHES } from "./language-support";
|
|
3
|
+
export { CLI_LANGUAGES, DEFAULT_MAX_MATCHES, DEFAULT_MAX_OUTPUT_BYTES, DEFAULT_TIMEOUT_MS, LANG_EXTENSIONS, NAPI_LANGUAGES } from "./language-support";
|
|
5
4
|
export { findSgCliPathSync, getSgCliPath, setSgCliPath } from "./sg-cli-path";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare function getCacheDir(): string;
|
|
2
2
|
export declare function getBinaryName(): string;
|
|
3
3
|
export declare function getCachedBinaryPath(): string | null;
|
|
4
|
-
export declare function downloadAstGrep(version?: string): Promise<string | null>;
|
|
5
4
|
export declare function ensureAstGrepBinary(): Promise<string | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { ensureAstGrepBinary, getCachedBinaryPath, getCacheDir } from "./downloader";
|
|
3
|
-
export { getAstGrepPath, isCliAvailable, ensureCliAvailable, startBackgroundInit } from "./cli";
|
|
4
|
-
export { checkEnvironment, formatEnvironmentCheck } from "./constants";
|
|
1
|
+
export { ensureCliAvailable, getAstGrepPath, isCliAvailable, startBackgroundInit } from "./cli";
|
|
5
2
|
export type { EnvironmentCheckResult } from "./constants";
|
|
3
|
+
export { checkEnvironment, formatEnvironmentCheck } from "./constants";
|
|
4
|
+
export { ensureAstGrepBinary, getCacheDir, getCachedBinaryPath } from "./downloader";
|
|
5
|
+
export { createAstGrepTools } from "./tools";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SgResult } from "./types";
|
|
2
2
|
export declare function formatSearchResult(result: SgResult): string;
|
|
3
3
|
export declare function formatReplaceResult(result: SgResult, isDryRun: boolean): string;
|
|
4
|
-
export declare function formatAnalyzeResult(results: AnalyzeResult[], extractedMetaVars: boolean): string;
|
|
5
|
-
export declare function formatTransformResult(_original: string, transformed: string, editCount: number): string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { CLI_LANGUAGES
|
|
1
|
+
import type { CLI_LANGUAGES } from "./constants";
|
|
2
2
|
export type CliLanguage = (typeof CLI_LANGUAGES)[number];
|
|
3
|
-
export type NapiLanguage = (typeof NAPI_LANGUAGES)[number];
|
|
4
3
|
export interface Position {
|
|
5
4
|
line: number;
|
|
6
5
|
column: number;
|
|
@@ -27,28 +26,6 @@ export interface CliMatch {
|
|
|
27
26
|
};
|
|
28
27
|
language: string;
|
|
29
28
|
}
|
|
30
|
-
export interface SearchMatch {
|
|
31
|
-
file: string;
|
|
32
|
-
text: string;
|
|
33
|
-
range: Range;
|
|
34
|
-
lines: string;
|
|
35
|
-
}
|
|
36
|
-
export interface MetaVariable {
|
|
37
|
-
name: string;
|
|
38
|
-
text: string;
|
|
39
|
-
kind: string;
|
|
40
|
-
}
|
|
41
|
-
export interface AnalyzeResult {
|
|
42
|
-
text: string;
|
|
43
|
-
range: Range;
|
|
44
|
-
kind: string;
|
|
45
|
-
metaVariables: MetaVariable[];
|
|
46
|
-
}
|
|
47
|
-
export interface TransformResult {
|
|
48
|
-
original: string;
|
|
49
|
-
transformed: string;
|
|
50
|
-
editCount: number;
|
|
51
|
-
}
|
|
52
29
|
export interface SgResult {
|
|
53
30
|
matches: CliMatch[];
|
|
54
31
|
totalMatches: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createBackgroundTask, createBackgroundOutput, createBackgroundCancel, } from "./tools";
|
|
2
|
-
export type * from "./types";
|
|
3
1
|
export * from "./constants";
|
|
2
|
+
export { createBackgroundCancel, createBackgroundOutput, createBackgroundTask, } from "./tools";
|
|
3
|
+
export type * from "./types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { BackgroundCancelClient, BackgroundOutputClient, BackgroundOutputManager, BackgroundOutputMessage, BackgroundOutputMessagesResult, } from "./clients";
|
|
2
|
-
export { createBackgroundTask } from "./create-background-task";
|
|
3
|
-
export { createBackgroundOutput } from "./create-background-output";
|
|
4
2
|
export { createBackgroundCancel } from "./create-background-cancel";
|
|
3
|
+
export { createBackgroundOutput } from "./create-background-output";
|
|
4
|
+
export { createBackgroundTask } from "./create-background-task";
|
|
@@ -59,25 +59,6 @@ export type BackgroundCancelClient = {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
export type BackgroundOutputManager = Pick<import("../../features/background-agent").BackgroundManager, "getTask">;
|
|
62
|
-
export type FullSessionMessagePart = {
|
|
63
|
-
type?: string;
|
|
64
|
-
text?: string;
|
|
65
|
-
thinking?: string;
|
|
66
|
-
content?: string | Array<{
|
|
67
|
-
type?: string;
|
|
68
|
-
text?: string;
|
|
69
|
-
}>;
|
|
70
|
-
output?: string;
|
|
71
|
-
};
|
|
72
|
-
export type FullSessionMessage = {
|
|
73
|
-
id?: string;
|
|
74
|
-
info?: {
|
|
75
|
-
role?: string;
|
|
76
|
-
time?: string;
|
|
77
|
-
agent?: string;
|
|
78
|
-
};
|
|
79
|
-
parts?: FullSessionMessagePart[];
|
|
80
|
-
};
|
|
81
62
|
export type ToolContextWithMetadata = {
|
|
82
63
|
sessionID: string;
|
|
83
64
|
messageID: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
+
import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
|
|
4
|
+
import type { DelegateAgentArgs } from "./types";
|
|
5
|
+
export declare function executeBackgroundAgent(args: DelegateAgentArgs, toolContext: ToolContextWithMetadata, manager: BackgroundManager, client: PluginInput["client"]): Promise<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CallOmoAgentArgs } from "./types";
|
|
2
|
-
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
4
|
-
|
|
2
|
+
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
+
import type { DelegateAgentArgs } from "./types";
|
|
4
|
+
export declare function executeBackground(args: DelegateAgentArgs, toolContext: {
|
|
5
5
|
sessionID: string;
|
|
6
6
|
messageID: string;
|
|
7
7
|
agent: string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const ALLOWED_AGENTS: readonly ["trinity", "operator", "oracle", "hephaestus", "metis", "momus", "construct"];
|
|
2
|
+
export declare const CALL_DELEGATE_AGENT_DESCRIPTION = "Spawn explore/librarian agent. run_in_background REQUIRED (true=async with task_id, false=sync).\n\nAvailable: {agents}\n\nPass `session_id=<id>` to continue previous agent with full context. Prompts MUST be in English. Use `background_output` for async results.";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CallOmoAgentArgs } from "./types";
|
|
2
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
3
|
-
|
|
2
|
+
import type { DelegateAgentArgs } from "./types";
|
|
3
|
+
export declare function createOrGetSession(args: DelegateAgentArgs, toolContext: {
|
|
4
4
|
sessionID: string;
|
|
5
5
|
messageID: string;
|
|
6
6
|
agent: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { CallOmoAgentArgs } from "./types";
|
|
3
2
|
import type { ToolContextWithMetadata } from "./tool-context-with-metadata";
|
|
4
|
-
|
|
3
|
+
import type { DelegateAgentArgs } from "./types";
|
|
4
|
+
export declare function resolveOrCreateSessionId(ctx: PluginInput, args: DelegateAgentArgs, toolContext: ToolContextWithMetadata): Promise<{
|
|
5
5
|
ok: true;
|
|
6
6
|
sessionID: string;
|
|
7
7
|
} | {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { CallOmoAgentArgs } from "./types";
|
|
2
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
3
|
-
import { createOrGetSession } from "./session-creator";
|
|
4
2
|
import { waitForCompletion } from "./completion-poller";
|
|
5
3
|
import { processMessages } from "./message-processor";
|
|
4
|
+
import { createOrGetSession } from "./session-creator";
|
|
5
|
+
import type { DelegateAgentArgs } from "./types";
|
|
6
6
|
type ExecuteSyncDeps = {
|
|
7
7
|
createOrGetSession: typeof createOrGetSession;
|
|
8
8
|
waitForCompletion: typeof waitForCompletion;
|
|
9
9
|
processMessages: typeof processMessages;
|
|
10
10
|
};
|
|
11
|
-
export declare function executeSync(args:
|
|
11
|
+
export declare function executeSync(args: DelegateAgentArgs, toolContext: {
|
|
12
12
|
sessionID: string;
|
|
13
13
|
messageID: string;
|
|
14
14
|
agent: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function createDelegateAgent(ctx: PluginInput, backgroundManager: BackgroundManager, disabledAgents?: string[]): ToolDefinition;
|
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
import type { ALLOWED_AGENTS } from "./constants";
|
|
2
2
|
export type AllowedAgentType = (typeof ALLOWED_AGENTS)[number];
|
|
3
|
-
export interface
|
|
3
|
+
export interface DelegateAgentArgs {
|
|
4
4
|
description: string;
|
|
5
5
|
prompt: string;
|
|
6
6
|
subagent_type: string;
|
|
7
7
|
run_in_background: boolean;
|
|
8
8
|
session_id?: string;
|
|
9
9
|
}
|
|
10
|
-
export interface CallOmoAgentSyncResult {
|
|
11
|
-
title: string;
|
|
12
|
-
metadata: {
|
|
13
|
-
summary?: Array<{
|
|
14
|
-
id: string;
|
|
15
|
-
tool: string;
|
|
16
|
-
state: {
|
|
17
|
-
status: string;
|
|
18
|
-
title?: string;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
sessionId: string;
|
|
22
|
-
};
|
|
23
|
-
output: string;
|
|
24
|
-
}
|
|
25
10
|
export type ToolContextWithMetadata = {
|
|
26
11
|
sessionID: string;
|
|
27
12
|
messageID: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
2
1
|
import type { ExecutorContext, ParentContext } from "./executor-types";
|
|
2
|
+
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
3
3
|
export declare function executeBackgroundContinuation(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext): Promise<string>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
2
1
|
import type { ExecutorContext, ParentContext } from "./executor-types";
|
|
2
|
+
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
3
3
|
export declare function executeBackgroundTask(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext, agentToUse: string, categoryModel: {
|
|
4
4
|
providerID: string;
|
|
5
5
|
modelID: string;
|
|
6
6
|
variant?: string;
|
|
7
|
+
temperature?: number;
|
|
7
8
|
} | undefined, systemContent: string | undefined): Promise<string>;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { CategoriesConfig, CategoryConfig } from "../../config/schema";
|
|
2
|
+
interface ResolveCategoryConfigOptions {
|
|
3
3
|
userCategories?: CategoriesConfig;
|
|
4
4
|
inheritedModel?: string;
|
|
5
5
|
systemDefaultModel?: string;
|
|
6
6
|
availableModels?: Set<string>;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface ResolveCategoryConfigResult {
|
|
9
9
|
config: CategoryConfig;
|
|
10
10
|
promptAppend: string;
|
|
11
11
|
model: string | undefined;
|
|
12
|
+
temperature: number | undefined;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* Resolve the configuration for a given category name.
|
|
15
16
|
* Merges default and user configurations, handles model resolution.
|
|
16
17
|
*/
|
|
17
18
|
export declare function resolveCategoryConfig(categoryName: string, options: ResolveCategoryConfigOptions): ResolveCategoryConfigResult | null;
|
|
19
|
+
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { ModelFallbackInfo } from "../../features/task-toast-manager/types";
|
|
2
|
-
import type { DelegateTaskArgs } from "./types";
|
|
3
2
|
import type { ExecutorContext } from "./executor-types";
|
|
3
|
+
import type { DelegateTaskArgs } from "./types";
|
|
4
4
|
export interface CategoryResolutionResult {
|
|
5
5
|
agentToUse: string;
|
|
6
6
|
categoryModel: {
|
|
7
7
|
providerID: string;
|
|
8
8
|
modelID: string;
|
|
9
9
|
variant?: string;
|
|
10
|
+
temperature?: number;
|
|
10
11
|
} | undefined;
|
|
11
12
|
categoryPromptAppend: string | undefined;
|
|
12
13
|
modelInfo: ModelFallbackInfo | undefined;
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
import type { CategoryConfig } from "../../config/schema";
|
|
2
1
|
import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
3
|
-
|
|
4
|
-
export declare const SOURCE_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
|
-
export declare const MATRIX_BEND_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>";
|
|
6
|
-
export declare const QUICK_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on SMALL / QUICK tasks.\n\nEfficient execution mindset:\n- Fast, focused, minimal overhead\n- Get to the point immediately\n- No over-engineering\n- Simple solutions for simple problems\n\nApproach:\n- Minimal viable implementation\n- Skip unnecessary abstractions\n- Direct and concise\n</Category_Context>\n\n<Caller_Warning>\nTHIS CATEGORY USES A LESS CAPABLE MODEL (claude-haiku-4-5).\n\nThe model executing this task has LIMITED reasoning capacity. Your prompt MUST be:\n\n**EXHAUSTIVELY EXPLICIT** - Leave NOTHING to interpretation:\n1. MUST DO: List every required action as atomic, numbered steps\n2. MUST NOT DO: Explicitly forbid likely mistakes and deviations\n3. EXPECTED OUTPUT: Describe exact success criteria with concrete examples\n\n**WHY THIS MATTERS:**\n- Less capable models WILL deviate without explicit guardrails\n- Vague instructions \u2192 unpredictable results\n- Implicit expectations \u2192 missed requirements\n\n**PROMPT STRUCTURE (MANDATORY):**\n```\nTASK: [One-sentence goal]\n\nMUST DO:\n1. [Specific action with exact details]\n2. [Another specific action]\n...\n\nMUST NOT DO:\n- [Forbidden action + why]\n- [Another forbidden action]\n...\n\nEXPECTED OUTPUT:\n- [Exact deliverable description]\n- [Success criteria / verification method]\n```\n\nIf your prompt lacks this structure, REWRITE IT before delegating.\n</Caller_Warning>";
|
|
7
|
-
export declare const UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on tasks that don't fit specific categories but require moderate effort.\n\n<Selection_Gate>\nBEFORE selecting this category, VERIFY ALL conditions:\n1. Task does NOT fit: quick (trivial), construct (UI), source (deep logic), matrix-bend (creative), writing (docs)\n2. Task requires more than trivial effort but is NOT system-wide\n3. Scope is contained within a few files/modules\n\nIf task fits ANY other category, DO NOT select blue-pill.\nThis is NOT a default choice - it's for genuinely unclassifiable moderate-effort work.\n</Selection_Gate>\n</Category_Context>\n\n<Caller_Warning>\nTHIS CATEGORY USES A MID-TIER MODEL (claude-sonnet-4-6).\n\n**PROVIDE CLEAR STRUCTURE:**\n1. MUST DO: Enumerate required actions explicitly\n2. MUST NOT DO: State forbidden actions to prevent scope creep\n3. EXPECTED OUTPUT: Define concrete success criteria\n</Caller_Warning>";
|
|
8
|
-
export declare const UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on tasks that don't fit specific categories but require substantial effort.\n\n<Selection_Gate>\nBEFORE selecting this category, VERIFY ALL conditions:\n1. Task does NOT fit: quick (trivial), construct (UI), source (deep logic), matrix-bend (creative), writing (docs)\n2. Task requires substantial effort across multiple systems/modules\n3. Changes have broad impact or require careful coordination\n4. NOT just \"complex\" - must be genuinely unclassifiable AND high-effort\n\nIf task fits ANY other category, DO NOT select red-pill.\nIf task is unclassifiable but moderate-effort, use blue-pill instead.\n</Selection_Gate>\n</Category_Context>";
|
|
9
|
-
export declare const WRITING_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on WRITING / PROSE tasks.\n\nWordsmith mindset:\n- Clear, flowing prose\n- Appropriate tone and voice\n- Engaging and readable\n- Proper structure and organization\n\nApproach:\n- Understand the audience\n- Draft with care\n- Polish for clarity and impact\n- Documentation, READMEs, articles, technical writing\n\nANTI-AI-SLOP RULES (NON-NEGOTIABLE):\n- NEVER use em dashes (\u2014) or en dashes (\u2013). Use commas, periods, ellipses, or line breaks instead. Zero tolerance.\n- Remove AI-sounding phrases: \"delve\", \"it's important to note\", \"I'd be happy to\", \"certainly\", \"please don't hesitate\", \"leverage\", \"utilize\", \"in order to\", \"moving forward\", \"circle back\", \"at the end of the day\", \"robust\", \"streamline\", \"facilitate\"\n- Pick plain words. \"Use\" not \"utilize\". \"Start\" not \"commence\". \"Help\" not \"facilitate\".\n- Use contractions naturally: \"don't\" not \"do not\", \"it's\" not \"it is\".\n- Vary sentence length. Don't make every sentence the same length.\n- NEVER start consecutive sentences with the same word.\n- No filler openings: skip \"In today's world...\", \"As we all know...\", \"It goes without saying...\"\n- Write like a human, not a corporate template.\n</Category_Context>";
|
|
10
|
-
export declare const DEEP_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on GOAL-ORIENTED AUTONOMOUS tasks.\n\n**CRITICAL - AUTONOMOUS EXECUTION MINDSET (NON-NEGOTIABLE)**:\nYou are NOT an interactive assistant. You are an autonomous problem-solver.\n\n**BEFORE making ANY changes**:\n1. SILENTLY explore the codebase extensively (5-15 minutes of reading is normal)\n2. Read related files, trace dependencies, understand the full context\n3. Build a complete mental model of the problem space\n4. DO NOT ask clarifying questions - the goal is already defined\n\n**Autonomous executor mindset**:\n- You receive a GOAL, not step-by-step instructions\n- Figure out HOW to achieve the goal yourself\n- Thorough research before any action\n- Fix hairy problems that require deep understanding\n- Work independently without frequent check-ins\n\n**Approach**:\n- Explore extensively, understand deeply, then act decisively\n- Prefer comprehensive solutions over quick patches\n- If the goal is unclear, make reasonable assumptions and proceed\n- Document your reasoning in code comments only when non-obvious\n\n**Response format**:\n- Minimal status updates (user trusts your autonomy)\n- Focus on results, not play-by-play progress\n- Report completion with summary of changes made\n</Category_Context>";
|
|
2
|
+
import type { CategoryConfig } from "../../config/schema";
|
|
11
3
|
export declare const DEFAULT_CATEGORIES: Record<string, CategoryConfig>;
|
|
12
4
|
export declare const CATEGORY_PROMPT_APPENDS: Record<string, string>;
|
|
13
5
|
export declare const CATEGORY_DESCRIPTIONS: Record<string, string>;
|
|
14
|
-
/**
|
|
15
|
-
* System prompt prepended to plan agent invocations.
|
|
16
|
-
* Instructs the plan agent to first gather context via explore/librarian agents,
|
|
17
|
-
* then summarize user requirements and clarify uncertainties before proceeding.
|
|
18
|
-
* Also MANDATES dependency graphs, parallel execution analysis, and category+skill recommendations.
|
|
19
|
-
*/
|
|
20
|
-
export declare const PLAN_AGENT_SYSTEM_PREPEND_STATIC_BEFORE_SKILLS = "<system>\nBEFORE you begin planning, you MUST first understand the user's request deeply.\n\nMANDATORY CONTEXT GATHERING PROTOCOL:\n1. Launch background agents to gather context:\n - call_omo_agent(description=\"Explore codebase patterns\", subagent_type=\"trinity\", run_in_background=true, prompt=\"<search for relevant patterns, files, and implementations in the codebase related to user's request>\")\n - call_omo_agent(description=\"Research documentation\", subagent_type=\"operator\", run_in_background=true, prompt=\"<search for external documentation, examples, and best practices related to user's request>\")\n\n2. After gathering context, ALWAYS present:\n - **User Request Summary**: Concise restatement of what the user is asking for\n - **Uncertainties**: List of unclear points, ambiguities, or assumptions you're making\n - **Clarifying Questions**: Specific questions to resolve the uncertainties\n\n3. ITERATE until ALL requirements are crystal clear:\n - Do NOT proceed to planning until you have 100% clarity\n - Ask the user to confirm your understanding\n - Resolve every ambiguity before generating the work plan\n\nREMEMBER: Vague requirements lead to failed implementations. Take the time to understand thoroughly.\n</system>\n\n<CRITICAL_REQUIREMENT_DEPENDENCY_PARALLEL_EXECUTION_CATEGORY_SKILLS>\n#####################################################################\n# #\n# \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2557 #\n# \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557 #\n# \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551 #\n# \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2551\u2584\u2584 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2551 \u2588\u2588\u2551 #\n# \u2588\u2588\uFFFD\uFFFD \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D #\n# \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2580\u2580\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u255D #\n# #\n#####################################################################\n\nYOU MUST INCLUDE THE FOLLOWING SECTIONS IN YOUR PLAN OUTPUT.\nTHIS IS NON-NEGOTIABLE. FAILURE TO INCLUDE THESE SECTIONS = INCOMPLETE PLAN.\n\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\u2588 SECTION 1: TASK DEPENDENCY GRAPH (MANDATORY) \u2588\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nYOU MUST ANALYZE AND DOCUMENT TASK DEPENDENCIES.\n\nFor EVERY task in your plan, you MUST specify:\n- Which tasks it DEPENDS ON (blockers)\n- Which tasks DEPEND ON IT (dependents)\n- The REASON for each dependency\n\nExample format:\n```\n## Task Dependency Graph\n\n| Task | Depends On | Reason |\n|------|------------|--------|\n| Task 1 | None | Starting point, no prerequisites |\n| Task 2 | Task 1 | Requires output/artifact from Task 1 |\n| Task 3 | Task 1 | Uses same foundation established in Task 1 |\n| Task 4 | Task 2, Task 3 | Integrates results from both tasks |\n```\n\nWHY THIS MATTERS:\n- Executors need to know execution ORDER\n- Prevents blocked work from starting prematurely\n- Identifies critical path for project timeline\n\n\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\u2588 SECTION 2: PARALLEL EXECUTION GRAPH (MANDATORY) \u2588\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nYOU MUST IDENTIFY WHICH TASKS CAN RUN IN PARALLEL.\n\nAnalyze your dependency graph and group tasks into PARALLEL EXECUTION WAVES:\n\nExample format:\n```\n## Parallel Execution Graph\n\nWave 1 (Start immediately):\n\u251C\u2500\u2500 Task 1: [description] (no dependencies)\n\u2514\u2500\u2500 Task 5: [description] (no dependencies)\n\nWave 2 (After Wave 1 completes):\n\u251C\u2500\u2500 Task 2: [description] (depends: Task 1)\n\u251C\u2500\u2500 Task 3: [description] (depends: Task 1)\n\u2514\u2500\u2500 Task 6: [description] (depends: Task 5)\n\nWave 3 (After Wave 2 completes):\n\u2514\u2500\u2500 Task 4: [description] (depends: Task 2, Task 3)\n\nCritical Path: Task 1 \u2192 Task 2 \u2192 Task 4\nEstimated Parallel Speedup: 40% faster than sequential\n```\n\nWHY THIS MATTERS:\n- MASSIVE time savings through parallelization\n- Executors can dispatch multiple agents simultaneously\n- Identifies bottlenecks in the execution plan\n\n\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\u2588 SECTION 3: CATEGORY + SKILLS RECOMMENDATIONS (MANDATORY) \u2588\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nFOR EVERY TASK, YOU MUST RECOMMEND:\n1. Which CATEGORY to use for delegation\n2. Which SKILLS to load for the delegated agent\n";
|
|
21
|
-
export declare const PLAN_AGENT_SYSTEM_PREPEND_STATIC_AFTER_SKILLS = "### REQUIRED OUTPUT FORMAT\n\nFor EACH task, include a recommendation block:\n\n```\n### Task N: [Task Title]\n\n**Delegation Recommendation:**\n- Category: `[category-name]` - [reason for choice]\n- Skills: [`skill-1`, `skill-2`] - [reason each skill is needed]\n\n**Skills Evaluation:**\n- INCLUDED `skill-name`: [reason]\n- OMITTED `other-skill`: [reason domain doesn't overlap]\n```\n\nWHY THIS MATTERS:\n- Category determines the MODEL used for execution\n- Skills inject SPECIALIZED KNOWLEDGE into the executor\n- Missing a relevant skill = suboptimal execution\n- Wrong category = wrong model = poor results\n\n\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\u2588 RESPONSE FORMAT SPECIFICATION (MANDATORY) \u2588\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nYOUR PLAN OUTPUT MUST FOLLOW THIS EXACT STRUCTURE:\n\n```markdown\n# [Plan Title]\n\n## Context\n[User request summary, interview findings, research results]\n\n## Task Dependency Graph\n[Dependency table - see Section 1]\n\n## Parallel Execution Graph \n[Wave structure - see Section 2]\n\n## Tasks\n\n### Task 1: [Title]\n**Description**: [What to do]\n**Delegation Recommendation**:\n- Category: `[category]` - [reason]\n- Skills: [`skill-1`] - [reason]\n**Skills Evaluation**: [\u2705 included / \u274C omitted with reasons]\n**Depends On**: [Task IDs or \"None\"]\n**Acceptance Criteria**: [Verifiable conditions]\n\n### Task 2: [Title]\n[Same structure...]\n\n## Commit Strategy\n[How to commit changes atomically]\n\n## Success Criteria\n[Final verification steps]\n```\n\n#####################################################################\n# #\n# FAILURE TO INCLUDE THESE SECTIONS = PLAN WILL BE REJECTED #\n# BY MOMUS REVIEW. DO NOT SKIP. DO NOT ABBREVIATE. #\n# #\n#####################################################################\n</CRITICAL_REQUIREMENT_DEPENDENCY_PARALLEL_EXECUTION_CATEGORY_SKILLS>\n\n<FINAL_OUTPUT_FOR_CALLER>\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\u2588 SECTION 4: ACTIONABLE TODO LIST FOR CALLER (MANDATORY) \u2588\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nYOU MUST END YOUR RESPONSE WITH THIS SECTION.\n\n```markdown\n## TODO List (ADD THESE)\n\n> CALLER: Add these TODOs using TodoWrite/TaskCreate and execute by wave.\n\n### Wave 1 (Start Immediately - No Dependencies)\n\n- [ ] **1. [Task Title]**\n - What: [Clear implementation steps]\n - Depends: None\n - Blocks: [Tasks that depend on this]\n - Category: `category-name`\n - Skills: [`skill-1`, `skill-2`]\n - QA: [How to verify completion - specific command or check]\n\n- [ ] **N. [Task Title]**\n - What: [Steps]\n - Depends: None\n - Blocks: [...]\n - Category: `category-name`\n - Skills: [`skill-1`]\n - QA: [Verification]\n\n### Wave 2 (After Wave 1 Completes)\n\n- [ ] **2. [Task Title]**\n - What: [Steps]\n - Depends: 1\n - Blocks: [4]\n - Category: `category-name`\n - Skills: [`skill-1`]\n - QA: [Verification]\n\n[Continue for all waves...]\n\n## Execution Instructions\n\n1. **Wave 1**: Fire these tasks IN PARALLEL (no dependencies)\n ```\n task(category=\"...\", load_skills=[...], run_in_background=false, prompt=\"Task 1: ...\")\n task(category=\"...\", load_skills=[...], run_in_background=false, prompt=\"Task N: ...\")\n ```\n\n2. **Wave 2**: After Wave 1 completes, fire next wave IN PARALLEL\n ```\n task(category=\"...\", load_skills=[...], run_in_background=false, prompt=\"Task 2: ...\")\n ```\n\n3. Continue until all waves complete\n\n4. Final QA: Verify all tasks pass their QA criteria\n```\n\nWHY THIS FORMAT IS MANDATORY:\n- Caller can directly copy TODO items\n- Wave grouping enables parallel execution\n- Each task has clear task parameters\n- QA criteria ensure verifiable completion\n</FINAL_OUTPUT_FOR_CALLER>\n\n";
|
|
22
|
-
export declare function buildPlanAgentSkillsSection(categories?: AvailableCategory[], skills?: AvailableSkill[]): string;
|
|
23
6
|
export declare function buildPlanAgentSystemPrepend(categories?: AvailableCategory[], skills?: AvailableSkill[]): string;
|
|
24
7
|
/**
|
|
25
8
|
* List of agent names that should be treated as plan agents (receive plan system prompt).
|
|
@@ -35,6 +18,11 @@ export declare function isPlanAgent(agentName: string | undefined): boolean;
|
|
|
35
18
|
* Does NOT share system prompt (only isPlanAgent controls that).
|
|
36
19
|
*/
|
|
37
20
|
export declare const PLAN_FAMILY_NAMES: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Get the deliverable tag for a given agent name.
|
|
23
|
+
* Returns undefined if no tagging applies.
|
|
24
|
+
*/
|
|
25
|
+
export declare function getDeliverableTag(agentName: string | undefined): string | undefined;
|
|
38
26
|
/**
|
|
39
27
|
* Check if the given agent belongs to the plan family (blocking + task permission).
|
|
40
28
|
*/
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import type { DelegateTaskArgs } from "./types";
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
2
|
+
* Re-export shim for backward compatibility.
|
|
3
|
+
* The canonical location is src/shared/error-formatting.ts.
|
|
4
|
+
* New code should import directly from "../../shared/error-formatting".
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
operation: string;
|
|
7
|
-
args?: DelegateTaskArgs;
|
|
8
|
-
sessionID?: string;
|
|
9
|
-
agent?: string;
|
|
10
|
-
category?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Format an error with detailed context for debugging.
|
|
14
|
-
*/
|
|
15
|
-
export declare function formatDetailedError(error: unknown, ctx: ErrorContext): string;
|
|
6
|
+
export { type ErrorContext, formatDetailedError } from "../../shared/error-formatting";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
import type { AgentOverrides, BrowserAutomationProvider, CategoriesConfig } from "../../config/schema";
|
|
1
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
2
|
-
import type { CategoriesConfig, GitMasterConfig, BrowserAutomationProvider, AgentOverrides } from "../../config/schema";
|
|
3
3
|
import type { OpencodeClient } from "./types";
|
|
4
4
|
export interface ExecutorContext {
|
|
5
5
|
manager: BackgroundManager;
|
|
6
6
|
client: OpencodeClient;
|
|
7
7
|
directory: string;
|
|
8
8
|
userCategories?: CategoriesConfig;
|
|
9
|
-
gitMasterConfig?: GitMasterConfig;
|
|
10
9
|
sisyphusJuniorModel?: string;
|
|
11
10
|
browserProvider?: BrowserAutomationProvider;
|
|
12
11
|
agentOverrides?: AgentOverrides;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type { ExecutorContext, ParentContext } from "./executor-types";
|
|
2
|
-
export { resolveSkillContent } from "./skill-resolver";
|
|
3
|
-
export { resolveParentContext } from "./parent-context-resolver";
|
|
4
1
|
export { executeBackgroundContinuation } from "./background-continuation";
|
|
5
|
-
export { executeSyncContinuation } from "./sync-continuation";
|
|
6
|
-
export { executeUnstableAgentTask } from "./unstable-agent-task";
|
|
7
2
|
export { executeBackgroundTask } from "./background-task";
|
|
8
|
-
export { executeSyncTask } from "./sync-task";
|
|
9
|
-
export { resolveCategoryExecution } from "./category-resolver";
|
|
10
3
|
export type { CategoryResolutionResult } from "./category-resolver";
|
|
4
|
+
export { resolveCategoryExecution } from "./category-resolver";
|
|
5
|
+
export type { ExecutorContext, ParentContext } from "./executor-types";
|
|
6
|
+
export { resolveParentContext } from "./parent-context-resolver";
|
|
7
|
+
export { resolveSkillContent } from "./skill-resolver";
|
|
11
8
|
export { resolveSubagentExecution } from "./subagent-resolver";
|
|
9
|
+
export { executeSyncContinuation } from "./sync-continuation";
|
|
10
|
+
export { executeSyncTask } from "./sync-task";
|
|
11
|
+
export { executeUnstableAgentTask } from "./unstable-agent-task";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createDelegateTask, resolveCategoryConfig, buildSystemContent } from "./tools";
|
|
2
|
-
export type { DelegateTaskToolOptions, SyncSessionCreatedEvent, BuildSystemContentInput } from "./tools";
|
|
3
|
-
export type * from "./types";
|
|
4
1
|
export * from "./constants";
|
|
2
|
+
export type { BuildSystemContentInput, DelegateTaskToolOptions, SyncSessionCreatedEvent } from "./tools";
|
|
3
|
+
export { buildSystemContent, createDelegateTask, resolveCategoryConfig } from "./tools";
|
|
4
|
+
export type * from "./types";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ToolContextWithMetadata } from "./types";
|
|
2
|
-
import type { OpencodeClient } from "./types";
|
|
3
1
|
import type { ParentContext } from "./executor-types";
|
|
2
|
+
import type { OpencodeClient, ToolContextWithMetadata } from "./types";
|
|
4
3
|
export declare function resolveParentContext(ctx: ToolContextWithMetadata, client: OpencodeClient): Promise<ParentContext>;
|
|
@@ -4,4 +4,3 @@ 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, skillContent?: string): string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BrowserAutomationProvider } from "../../config/schema";
|
|
2
2
|
export declare function resolveSkillContent(skills: string[], options: {
|
|
3
|
-
gitMasterConfig?: GitMasterConfig;
|
|
4
3
|
browserProvider?: BrowserAutomationProvider;
|
|
5
4
|
disabledSkills?: Set<string>;
|
|
6
5
|
}): Promise<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DelegateTaskArgs } from "./types";
|
|
2
1
|
import type { ExecutorContext } from "./executor-types";
|
|
2
|
+
import type { DelegateTaskArgs } from "./types";
|
|
3
3
|
export declare function resolveSubagentExecution(args: DelegateTaskArgs, executorCtx: ExecutorContext, parentAgent: string | undefined, categoryExamples: string): Promise<{
|
|
4
4
|
agentToUse: string;
|
|
5
5
|
categoryModel: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pollSyncSession } from "./sync-session-poller";
|
|
2
1
|
import { fetchSyncResult } from "./sync-result-fetcher";
|
|
2
|
+
import { pollSyncSession } from "./sync-session-poller";
|
|
3
3
|
export declare const syncContinuationDeps: {
|
|
4
4
|
pollSyncSession: typeof pollSyncSession;
|
|
5
5
|
fetchSyncResult: typeof fetchSyncResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
2
1
|
import type { ExecutorContext } from "./executor-types";
|
|
3
2
|
import { type SyncContinuationDeps } from "./sync-continuation-deps";
|
|
3
|
+
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
4
4
|
export declare function executeSyncContinuation(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, deps?: SyncContinuationDeps): Promise<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DelegateTaskArgs, OpencodeClient } from "./types";
|
|
2
1
|
import { promptSyncWithModelSuggestionRetry, promptWithModelSuggestionRetry } from "../../shared/model-suggestion-retry";
|
|
2
|
+
import type { DelegateTaskArgs, OpencodeClient } from "./types";
|
|
3
3
|
type SendSyncPromptDeps = {
|
|
4
4
|
promptWithModelSuggestionRetry: typeof promptWithModelSuggestionRetry;
|
|
5
5
|
promptSyncWithModelSuggestionRetry: typeof promptSyncWithModelSuggestionRetry;
|
|
@@ -13,6 +13,7 @@ export declare function sendSyncPrompt(client: OpencodeClient, input: {
|
|
|
13
13
|
providerID: string;
|
|
14
14
|
modelID: string;
|
|
15
15
|
variant?: string;
|
|
16
|
+
temperature?: number;
|
|
16
17
|
} | undefined;
|
|
17
18
|
toastManager: {
|
|
18
19
|
removeTask: (id: string) => void;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { OpencodeClient } from "./types";
|
|
2
|
-
|
|
2
|
+
type FetchSyncResultOptions = {
|
|
3
|
+
deliverableTag?: string;
|
|
4
|
+
finalTextOnly?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function fetchSyncResult(client: OpencodeClient, sessionID: string, anchorMessageCount?: number, options?: FetchSyncResultOptions): Promise<{
|
|
3
7
|
ok: true;
|
|
4
8
|
textContent: string;
|
|
5
9
|
} | {
|
|
6
10
|
ok: false;
|
|
7
11
|
error: string;
|
|
8
12
|
}>;
|
|
13
|
+
export {};
|