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,5 +1,5 @@
|
|
|
1
|
-
import type { ToolContextWithMetadata, OpencodeClient } from "./types";
|
|
2
1
|
import type { SessionMessage } from "./executor-types";
|
|
2
|
+
import type { OpencodeClient, ToolContextWithMetadata } from "./types";
|
|
3
3
|
export declare function isSessionComplete(messages: SessionMessage[]): boolean;
|
|
4
4
|
export declare function hasToolResultAfterAssistant(messages: SessionMessage[]): boolean;
|
|
5
5
|
export declare function hasAssistantContent(messages: SessionMessage[]): boolean;
|
|
@@ -11,4 +11,8 @@ export declare function pollSyncSession(ctx: ToolContextWithMetadata, client: Op
|
|
|
11
11
|
} | null | undefined;
|
|
12
12
|
taskId: string | undefined;
|
|
13
13
|
anchorMessageCount?: number;
|
|
14
|
+
/** Callback: does the parent session still have running background children? */
|
|
15
|
+
hasActiveChildBackgroundTasks?: () => boolean;
|
|
16
|
+
/** Callback: is there a pending parent-wake notification in flight? */
|
|
17
|
+
hasPendingParentWake?: () => boolean;
|
|
14
18
|
}): Promise<string | null>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createSyncSession } from "./sync-session-creator";
|
|
2
1
|
import { sendSyncPrompt } from "./sync-prompt-sender";
|
|
3
|
-
import { pollSyncSession } from "./sync-session-poller";
|
|
4
2
|
import { fetchSyncResult } from "./sync-result-fetcher";
|
|
3
|
+
import { createSyncSession } from "./sync-session-creator";
|
|
4
|
+
import { pollSyncSession } from "./sync-session-poller";
|
|
5
5
|
export declare const syncTaskDeps: {
|
|
6
6
|
createSyncSession: typeof createSyncSession;
|
|
7
7
|
sendSyncPrompt: typeof sendSyncPrompt;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ModelFallbackInfo } from "../../features/task-toast-manager/types";
|
|
2
|
-
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
3
2
|
import type { ExecutorContext, ParentContext } from "./executor-types";
|
|
4
3
|
import { type SyncTaskDeps } from "./sync-task-deps";
|
|
4
|
+
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
5
5
|
export declare function executeSyncTask(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext, agentToUse: string, categoryModel: {
|
|
6
6
|
providerID: string;
|
|
7
7
|
modelID: string;
|
|
8
8
|
variant?: string;
|
|
9
|
+
temperature?: number;
|
|
9
10
|
} | undefined, systemContent: string | undefined, modelInfo?: ModelFallbackInfo, deps?: SyncTaskDeps): Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import type { DelegateTaskToolOptions } from "./types";
|
|
3
3
|
export { resolveCategoryConfig } from "./categories";
|
|
4
|
-
export type { SyncSessionCreatedEvent, DelegateTaskToolOptions, BuildSystemContentInput } from "./types";
|
|
5
4
|
export { buildSystemContent } from "./prompt-builder";
|
|
5
|
+
export type { BuildSystemContentInput, DelegateTaskToolOptions, SyncSessionCreatedEvent } from "./types";
|
|
6
6
|
export declare function createDelegateTask(options: DelegateTaskToolOptions): ToolDefinition;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
-
import type { CategoriesConfig, GitMasterConfig, BrowserAutomationProvider, AgentOverrides } from "../../config/schema";
|
|
4
2
|
import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
3
|
+
import type { AgentOverrides, BrowserAutomationProvider, CategoriesConfig } from "../../config/schema";
|
|
4
|
+
import type { BackgroundManager } from "../../features/background-agent";
|
|
5
5
|
export type OpencodeClient = PluginInput["client"];
|
|
6
6
|
export interface DelegateTaskArgs {
|
|
7
7
|
description: string;
|
|
@@ -55,7 +55,6 @@ export interface DelegateTaskToolOptions {
|
|
|
55
55
|
*/
|
|
56
56
|
availableModelsOverride?: Set<string>;
|
|
57
57
|
userCategories?: CategoriesConfig;
|
|
58
|
-
gitMasterConfig?: GitMasterConfig;
|
|
59
58
|
sisyphusJuniorModel?: string;
|
|
60
59
|
browserProvider?: BrowserAutomationProvider;
|
|
61
60
|
disabledSkills?: Set<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 executeUnstableAgentTask(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, actualModel: string | undefined): Promise<string>;
|
package/dist/tools/glob/cli.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export interface ResolvedCli {
|
|
|
7
7
|
declare function buildRgArgs(options: GlobOptions): string[];
|
|
8
8
|
declare function buildFindArgs(options: GlobOptions): string[];
|
|
9
9
|
declare function buildPowerShellCommand(options: GlobOptions): string[];
|
|
10
|
-
export {
|
|
10
|
+
export { buildFindArgs, buildPowerShellCommand, buildRgArgs };
|
|
11
11
|
export declare function runRgFiles(options: GlobOptions, resolvedCli?: ResolvedCli): Promise<GlobResult>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { resolveGrepCli, resolveGrepCliWithAutoInstall
|
|
1
|
+
export { type GrepBackend, resolveGrepCli, resolveGrepCliWithAutoInstall } from "../grep/constants";
|
|
2
2
|
export declare const DEFAULT_TIMEOUT_MS = 60000;
|
|
3
3
|
export declare const DEFAULT_LIMIT = 100;
|
|
4
4
|
export declare const DEFAULT_MAX_DEPTH = 20;
|
package/dist/tools/grep/cli.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { GrepOptions, GrepResult
|
|
1
|
+
import type { GrepOptions, GrepResult } from "./types";
|
|
2
2
|
export declare function runRg(options: GrepOptions): Promise<GrepResult>;
|
|
3
|
-
export declare function runRgCount(options: Omit<GrepOptions, "context">): Promise<CountResult[]>;
|
|
@@ -9,7 +9,6 @@ export declare const DEFAULT_MAX_DEPTH = 20;
|
|
|
9
9
|
export declare const DEFAULT_MAX_FILESIZE = "10M";
|
|
10
10
|
export declare const DEFAULT_MAX_COUNT = 500;
|
|
11
11
|
export declare const DEFAULT_MAX_COLUMNS = 1000;
|
|
12
|
-
export declare const DEFAULT_CONTEXT = 2;
|
|
13
12
|
export declare const DEFAULT_TIMEOUT_MS = 300000;
|
|
14
13
|
export declare const DEFAULT_MAX_OUTPUT_BYTES: number;
|
|
15
14
|
export declare const RG_SAFETY_FLAGS: readonly ["--no-follow", "--color=never", "--no-heading", "--line-number", "--with-filename"];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `handoff` tool — `action: "archive"` handler.
|
|
3
|
+
*
|
|
4
|
+
* Renames the active `.matrixx/handoff.md` to `.matrixx/handoff.consumed.md`.
|
|
5
|
+
* Returns a clear `Error:` string if there is no active handoff to archive
|
|
6
|
+
* (idempotent semantics: archiving nothing is an error so the caller knows
|
|
7
|
+
* nothing happened, not a silent no-op).
|
|
8
|
+
*/
|
|
9
|
+
export declare function handleArchive(directory: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HandoffSection } from "../../features/handoff";
|
|
2
|
+
/**
|
|
3
|
+
* Build the human-readable markdown body that follows the YAML frontmatter.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the format from `src/features/builtin-commands/templates/handoff.ts`
|
|
6
|
+
* (the canonical /handoff command template). Sections are emitted only when
|
|
7
|
+
* they have content, so a minimal handoff stays minimal.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildHandoffBody(sections: HandoffSection): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* handoff tool — description string and shared constants.
|
|
3
|
+
*
|
|
4
|
+
* The tool description is referenced by the tool factory and included in the
|
|
5
|
+
* LLM-facing tool schema, so keep it factual, concise, and triggerable.
|
|
6
|
+
*/
|
|
7
|
+
/** Tool description — covers all four supported actions. */
|
|
8
|
+
export declare const HANDOFF_DESCRIPTION = "Multi-action handoff tool backed by .matrixx/handoff.md. Actions: 'create' (write a structured handoff with YAML frontmatter and a markdown body), 'read' (load the current handoff content for context pickup), 'archive' (rename the active handoff to handoff.consumed.md to mark it as consumed), 'list' (show all handoff files in .matrixx/). Use this tool when the current session needs to preserve state for a future session, or when a fresh session is resuming work from a prior handoff.";
|
|
9
|
+
/** Maximum bytes tolerated from a single git stdout read before we abort. */
|
|
10
|
+
export declare const MAX_GIT_OUTPUT_BYTES = 4096;
|
|
11
|
+
/** Hard timeout for any single `git` invocation, in milliseconds. */
|
|
12
|
+
export declare const GIT_COMMAND_TIMEOUT_MS = 5000;
|
|
13
|
+
/** Sentinel used when we cannot resolve git metadata for the working dir. */
|
|
14
|
+
export declare const UNKNOWN_GIT_SHA = "unknown";
|
|
15
|
+
/** Canonical list of supported actions (kept in sync with the zod enum). */
|
|
16
|
+
export declare const HANDOFF_ACTIONS: readonly ["create", "read", "list", "archive"];
|
|
17
|
+
export type HandoffAction = (typeof HANDOFF_ACTIONS)[number];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ToolContext } from "@opencode-ai/plugin/tool";
|
|
2
|
+
/**
|
|
3
|
+
* Args expected for the `create` action. Mirrors the documented handoff
|
|
4
|
+
* sections. All `optional()` fields are passed through to the schema as-is.
|
|
5
|
+
*/
|
|
6
|
+
export type HandoffCreateArgs = {
|
|
7
|
+
topics: string[];
|
|
8
|
+
user_requests: string;
|
|
9
|
+
goal: string;
|
|
10
|
+
work_completed: string[];
|
|
11
|
+
current_state: string;
|
|
12
|
+
pending_tasks?: string[];
|
|
13
|
+
key_files?: {
|
|
14
|
+
path: string;
|
|
15
|
+
purpose: string;
|
|
16
|
+
}[];
|
|
17
|
+
important_decisions?: {
|
|
18
|
+
decision: string;
|
|
19
|
+
rationale: string;
|
|
20
|
+
}[];
|
|
21
|
+
explicit_constraints?: string[];
|
|
22
|
+
context_for_continuation?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* `handoff` tool — `action: "create"` handler.
|
|
26
|
+
*
|
|
27
|
+
* Builds a structured handoff document (validated YAML frontmatter +
|
|
28
|
+
* human-readable markdown body) and writes it to `.matrixx/handoff.md`.
|
|
29
|
+
* Returns a `Error:` string if the inputs fail schema validation OR if the
|
|
30
|
+
* underlying I/O write fails.
|
|
31
|
+
*/
|
|
32
|
+
export declare function handleCreate(args: HandoffCreateArgs, ctx: {
|
|
33
|
+
directory: string;
|
|
34
|
+
}, context: ToolContext): Promise<string>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GitHead } from "../../features/handoff";
|
|
2
|
+
/**
|
|
3
|
+
* Resolve the current git HEAD for `directory`.
|
|
4
|
+
*
|
|
5
|
+
* Returns a `GitHead` (`{ sha, branch?, detached? }`) when `directory` is
|
|
6
|
+
* inside a working git repo, or `null` otherwise. Never throws.
|
|
7
|
+
*
|
|
8
|
+
* - `sha` always populated (HEAD's commit sha)
|
|
9
|
+
* - `branch` populated when HEAD points at a local branch
|
|
10
|
+
* - `detached: true` when HEAD points directly at a commit
|
|
11
|
+
*/
|
|
12
|
+
export declare function getGitHead(directory: string): Promise<GitHead | null>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `handoff` tool — `action: "list"` handler.
|
|
3
|
+
*
|
|
4
|
+
* Returns a human-readable summary of every handoff-shaped file inside
|
|
5
|
+
* `.matrixx/`. If the directory or any matching files are missing, returns
|
|
6
|
+
* the documented empty-state string.
|
|
7
|
+
*/
|
|
8
|
+
export declare function handleList(directory: string): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `handoff` tool — `action: "read"` handler.
|
|
3
|
+
*
|
|
4
|
+
* Loads `.matrixx/handoff.md` and returns its full content (YAML frontmatter
|
|
5
|
+
* + markdown body) so the LLM can apply it as context for the new session.
|
|
6
|
+
* Returns a clear `Error:` string if no active handoff exists.
|
|
7
|
+
*/
|
|
8
|
+
export declare function handleRead(directory: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import { type ToolDefinition } from "@opencode-ai/plugin/tool";
|
|
3
|
+
/**
|
|
4
|
+
* `handoff` tool factory.
|
|
5
|
+
*
|
|
6
|
+
* Exposes a single `handoff` tool that the LLM dispatches via its `action`
|
|
7
|
+
* argument. Action handlers are split out into sibling files
|
|
8
|
+
* (`create-handler`, `read-handler`, `archive-handler`, `list-handler`) so
|
|
9
|
+
* this dispatcher stays small and each handler can evolve independently.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createHandoffTools(ctx: PluginInput): Record<string, ToolDefinition>;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export declare function stripTrailingContinuationTokens(text: string): string;
|
|
2
|
-
export declare function stripMergeOperatorChars(text: string): string;
|
|
3
|
-
export declare function restoreOldWrappedLines(originalLines: string[], replacementLines: string[]): string[];
|
|
4
|
-
export declare function maybeExpandSingleLineMerge(originalLines: string[], replacementLines: string[]): string[];
|
|
5
|
-
export declare function restoreIndentForPairedReplacement(originalLines: string[], replacementLines: string[]): string[];
|
|
6
1
|
export declare function autocorrectReplacementLines(originalLines: string[], replacementLines: string[]): string[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { HashlineEdit } from "./types";
|
|
2
|
-
|
|
2
|
+
interface HashlineApplyReport {
|
|
3
3
|
content: string;
|
|
4
4
|
noopEdits: number;
|
|
5
5
|
deduplicatedEdits: number;
|
|
6
6
|
}
|
|
7
7
|
export declare function applyHashlineEditsWithReport(content: string, edits: HashlineEdit[]): HashlineApplyReport;
|
|
8
8
|
export declare function applyHashlineEdits(content: string, edits: HashlineEdit[]): string;
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare function stripLinePrefixes(lines: string[]): string[];
|
|
2
1
|
export declare function toNewLines(input: string | string[]): string[];
|
|
3
2
|
export declare function restoreLeadingIndent(templateLine: string, line: string): string;
|
|
4
3
|
export declare function stripInsertAnchorEcho(anchorLine: string, newLines: string[]): string[];
|
|
5
4
|
export declare function stripInsertBeforeEcho(anchorLine: string, newLines: string[]): string[];
|
|
6
|
-
export declare function stripInsertBoundaryEcho(afterLine: string, beforeLine: string, newLines: string[]): string[];
|
|
7
5
|
export declare function stripRangeBoundaryEcho(lines: string[], startLine: number, endLine: number, newLines: string[]): string[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface FileTextEnvelope {
|
|
2
2
|
content: string;
|
|
3
3
|
hadBom: boolean;
|
|
4
4
|
lineEnding: "\n" | "\r\n";
|
|
5
5
|
}
|
|
6
6
|
export declare function canonicalizeFileText(content: string): FileTextEnvelope;
|
|
7
7
|
export declare function restoreFileText(content: string, envelope: FileTextEnvelope): string;
|
|
8
|
+
export {};
|
|
@@ -2,10 +2,11 @@ export declare function computeLineHash(lineNumber: number, content: string): st
|
|
|
2
2
|
export declare function computeLegacyLineHash(lineNumber: number, content: string): string;
|
|
3
3
|
export declare function formatHashLine(lineNumber: number, content: string): string;
|
|
4
4
|
export declare function formatHashLines(content: string): string;
|
|
5
|
-
|
|
5
|
+
interface HashlineStreamOptions {
|
|
6
6
|
startLine?: number;
|
|
7
7
|
maxChunkLines?: number;
|
|
8
8
|
maxChunkBytes?: number;
|
|
9
9
|
}
|
|
10
10
|
export declare function streamHashLinesFromUtf8(source: ReadableStream<Uint8Array> | AsyncIterable<Uint8Array>, options?: HashlineStreamOptions): AsyncGenerator<string>;
|
|
11
11
|
export declare function streamHashLinesFromLines(lines: Iterable<string> | AsyncIterable<string>, options?: HashlineStreamOptions): AsyncGenerator<string>;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ToolContext } from "@opencode-ai/plugin/tool";
|
|
2
|
-
import { type RawHashlineEdit } from "./normalize-edits";
|
|
3
2
|
import type { PluginContext } from "../../plugin/types";
|
|
3
|
+
import { type RawHashlineEdit } from "./normalize-edits";
|
|
4
4
|
interface HashlineEditArgs {
|
|
5
5
|
filePath: string;
|
|
6
6
|
edits: RawHashlineEdit[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
export { HASHLINE_DICT, HASHLINE_OUTPUT_PATTERN, HASHLINE_REF_PATTERN, NIBBLE_STR } from "./constants";
|
|
1
2
|
export { computeLineHash, formatHashLine, formatHashLines, streamHashLinesFromLines, streamHashLinesFromUtf8, } from "./hash-computation";
|
|
2
|
-
export { parseLineRef, validateLineRef } from "./validation";
|
|
3
|
-
export type { LineRef } from "./validation";
|
|
4
|
-
export type { ReplaceEdit, AppendEdit, PrependEdit, HashlineEdit, } from "./types";
|
|
5
|
-
export { NIBBLE_STR, HASHLINE_DICT, HASHLINE_REF_PATTERN, HASHLINE_OUTPUT_PATTERN } from "./constants";
|
|
6
|
-
export { applyHashlineEdits, } from "./edit-operations";
|
|
7
3
|
export { createHashlineEditTool } from "./tools";
|
|
4
|
+
export type { AppendEdit, HashlineEdit, PrependEdit, ReplaceEdit, } from "./types";
|
|
5
|
+
export type { LineRef } from "./validation";
|
|
6
|
+
export { parseLineRef, validateLineRef } from "./validation";
|
|
@@ -10,8 +10,6 @@ export declare function normalizeLineRef(ref: string): string;
|
|
|
10
10
|
export declare function parseLineRef(ref: string): LineRef;
|
|
11
11
|
export declare function validateLineRef(lines: string[], ref: string): void;
|
|
12
12
|
export declare class HashlineMismatchError extends Error {
|
|
13
|
-
private readonly mismatches;
|
|
14
|
-
private readonly fileLines;
|
|
15
13
|
readonly remaps: ReadonlyMap<string, string>;
|
|
16
14
|
constructor(mismatches: HashMismatch[], fileLines: string[]);
|
|
17
15
|
static formatMessage(mismatches: HashMismatch[], fileLines: string[]): string;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { lspManager } from "./lsp";
|
|
2
|
-
export { lspManager };
|
|
3
2
|
export { createAstGrepTools } from "./ast-grep";
|
|
4
|
-
export { createGrepTools } from "./grep";
|
|
5
3
|
export { createGlobTools } from "./glob";
|
|
6
|
-
export {
|
|
4
|
+
export { createGrepTools } from "./grep";
|
|
5
|
+
export { createHandoffTools } from "./handoff";
|
|
6
|
+
export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
|
|
7
7
|
export { createSessionManagerTools } from "./session-manager";
|
|
8
8
|
export { sessionExists } from "./session-manager/storage";
|
|
9
|
-
export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
|
|
10
9
|
export { createSkillTool } from "./skill";
|
|
11
10
|
export { createSkillMcpTool } from "./skill-mcp";
|
|
11
|
+
export { createSlashcommandTool, discoverCommandsSync } from "./slashcommand";
|
|
12
|
+
export { lspManager };
|
|
12
13
|
import type { PluginInput, ToolDefinition } from "@opencode-ai/plugin";
|
|
13
14
|
import type { BackgroundManager } from "../features/background-agent";
|
|
14
15
|
type OpencodeClient = PluginInput["client"];
|
|
15
|
-
export {
|
|
16
|
-
export { createLookAt } from "./look-at";
|
|
16
|
+
export { createDelegateAgent } from "./delegate-agent";
|
|
17
17
|
export { createDelegateTask } from "./delegate-task";
|
|
18
|
-
export { createTaskCreateTool, createTaskGetTool, createTaskList, createTaskUpdateTool, } from "./task";
|
|
19
18
|
export { createHashlineEditTool } from "./hashline-edit";
|
|
19
|
+
export { createLookAt } from "./look-at";
|
|
20
|
+
export { createTaskCreateTool, createTaskGetTool, createTaskList, createTaskUpdateTool, } from "./task";
|
|
20
21
|
export declare function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient): Record<string, ToolDefinition>;
|
|
21
22
|
export declare const builtinTools: Record<string, ToolDefinition>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const DEFAULT_TIMEOUT_MS = 60000;
|
|
2
2
|
export declare const BLOCKED_TMUX_SUBCOMMANDS: string[];
|
|
3
|
-
export declare const INTERACTIVE_BASH_DESCRIPTION = "WARNING: This is TMUX ONLY. Pass tmux subcommands directly (without 'tmux' prefix).\n\nExamples: new-session -d -s
|
|
3
|
+
export declare const INTERACTIVE_BASH_DESCRIPTION = "WARNING: This is TMUX ONLY. Pass tmux subcommands directly (without 'tmux' prefix).\n\nExamples: new-session -d -s matrixx-dev, send-keys -t matrixx-dev \"vim\" Enter\n\nFor TUI apps needing ongoing interaction (vim, htop, pudb). One-shot commands \u2192 use Bash with &.";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { findServerForExtension, getAllServers, getConfigPaths_ } from "./server-resolution";
|
|
2
1
|
export { getLanguageId } from "./language-config";
|
|
3
2
|
export { isServerInstalled } from "./server-installation";
|
|
3
|
+
export { findServerForExtension, getAllServers, getConfigPaths_ } from "./server-resolution";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const DEFAULT_MAX_REFERENCES = 200;
|
|
2
2
|
export declare const DEFAULT_MAX_SYMBOLS = 200;
|
|
3
3
|
export declare const DEFAULT_MAX_DIAGNOSTICS = 200;
|
|
4
|
-
export {
|
|
4
|
+
export { EXT_TO_LANG, SEVERITY_MAP, SYMBOL_KIND_MAP } from "./language-mappings";
|
|
5
5
|
export { BUILTIN_SERVERS, LSP_INSTALL_HINTS } from "./server-definitions";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./types";
|
|
2
|
-
export * from "./constants";
|
|
3
|
-
export * from "./config";
|
|
4
1
|
export * from "./client";
|
|
2
|
+
export * from "./config";
|
|
3
|
+
export * from "./constants";
|
|
5
4
|
export * from "./lsp-client-wrapper";
|
|
6
5
|
export * from "./lsp-formatters";
|
|
6
|
+
export { lsp_diagnostics, lsp_find_references, lsp_goto_definition, lsp_prepare_rename, lsp_rename, lsp_symbols } from "./tools";
|
|
7
|
+
export * from "./types";
|
|
7
8
|
export * from "./workspace-edit";
|
|
8
|
-
export { lsp_goto_definition, lsp_find_references, lsp_symbols, lsp_diagnostics, lsp_prepare_rename, lsp_rename } from "./tools";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MessageConnection } from "vscode-jsonrpc/node";
|
|
2
|
-
import type { Diagnostic, ResolvedServer } from "./types";
|
|
3
2
|
import { type UnifiedProcess } from "./lsp-process";
|
|
3
|
+
import type { Diagnostic, ResolvedServer } from "./types";
|
|
4
4
|
export declare class LSPClientTransport {
|
|
5
5
|
protected root: string;
|
|
6
6
|
protected server: ResolvedServer;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { LSPClient } from "./client";
|
|
2
|
-
import type { ServerLookupResult } from "./types";
|
|
1
|
+
import { type LSPClient } from "./client";
|
|
3
2
|
export declare function findWorkspaceRoot(filePath: string): string;
|
|
4
3
|
export declare function uriToPath(uri: string): string;
|
|
5
|
-
export declare function formatServerLookupError(result: Exclude<ServerLookupResult, {
|
|
6
|
-
status: "found";
|
|
7
|
-
}>): string;
|
|
8
4
|
export declare function withLspClient<T>(filePath: string, fn: (client: LSPClient) => Promise<T>): Promise<T>;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import type { Diagnostic, DocumentSymbol, Location, LocationLink, PrepareRenameDefaultBehavior, PrepareRenameResult, Range, SymbolInfo
|
|
1
|
+
import type { Diagnostic, DocumentSymbol, Location, LocationLink, PrepareRenameDefaultBehavior, PrepareRenameResult, Range, SymbolInfo } from "./types";
|
|
2
2
|
import type { ApplyResult } from "./workspace-edit";
|
|
3
3
|
export declare function formatLocation(loc: Location | LocationLink): string;
|
|
4
|
-
export declare function formatSymbolKind(kind: number): string;
|
|
5
|
-
export declare function formatSeverity(severity: number | undefined): string;
|
|
6
4
|
export declare function formatDocumentSymbol(symbol: DocumentSymbol, indent?: number): string;
|
|
7
5
|
export declare function formatSymbolInfo(symbol: SymbolInfo): string;
|
|
8
6
|
export declare function formatDiagnostic(diag: Diagnostic): string;
|
|
9
7
|
export declare function filterDiagnosticsBySeverity(diagnostics: Diagnostic[], severityFilter?: "error" | "warning" | "information" | "hint" | "all"): Diagnostic[];
|
|
10
8
|
export declare function formatPrepareRenameResult(result: PrepareRenameResult | PrepareRenameDefaultBehavior | Range | null): string;
|
|
11
|
-
export declare function formatTextEdit(edit: TextEdit): string;
|
|
12
|
-
export declare function formatWorkspaceEdit(edit: WorkspaceEdit | null): string;
|
|
13
9
|
export declare function formatApplyResult(result: ApplyResult): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { lsp_goto_definition } from "./goto-definition-tool";
|
|
2
|
-
export { lsp_find_references } from "./find-references-tool";
|
|
3
|
-
export { lsp_symbols } from "./symbols-tool";
|
|
4
1
|
export { lsp_diagnostics } from "./diagnostics-tool";
|
|
2
|
+
export { lsp_find_references } from "./find-references-tool";
|
|
3
|
+
export { lsp_goto_definition } from "./goto-definition-tool";
|
|
5
4
|
export { lsp_prepare_rename, lsp_rename } from "./rename-tools";
|
|
5
|
+
export { lsp_symbols } from "./symbols-tool";
|
|
@@ -44,21 +44,21 @@ export interface Diagnostic {
|
|
|
44
44
|
source?: string;
|
|
45
45
|
message: string;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
interface TextDocumentIdentifier {
|
|
48
48
|
uri: string;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
interface VersionedTextDocumentIdentifier extends TextDocumentIdentifier {
|
|
51
51
|
version: number | null;
|
|
52
52
|
}
|
|
53
53
|
export interface TextEdit {
|
|
54
54
|
range: Range;
|
|
55
55
|
newText: string;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
interface TextDocumentEdit {
|
|
58
58
|
textDocument: VersionedTextDocumentIdentifier;
|
|
59
59
|
edits: TextEdit[];
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
interface CreateFile {
|
|
62
62
|
kind: "create";
|
|
63
63
|
uri: string;
|
|
64
64
|
options?: {
|
|
@@ -66,7 +66,7 @@ export interface CreateFile {
|
|
|
66
66
|
ignoreIfExists?: boolean;
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
interface RenameFile {
|
|
70
70
|
kind: "rename";
|
|
71
71
|
oldUri: string;
|
|
72
72
|
newUri: string;
|
|
@@ -75,7 +75,7 @@ export interface RenameFile {
|
|
|
75
75
|
ignoreIfExists?: boolean;
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
interface DeleteFile {
|
|
79
79
|
kind: "delete";
|
|
80
80
|
uri: string;
|
|
81
81
|
options?: {
|
|
@@ -96,7 +96,7 @@ export interface PrepareRenameResult {
|
|
|
96
96
|
export interface PrepareRenameDefaultBehavior {
|
|
97
97
|
defaultBehavior: boolean;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
interface ServerLookupInfo {
|
|
100
100
|
id: string;
|
|
101
101
|
command: string[];
|
|
102
102
|
extensions: string[];
|
|
@@ -121,3 +121,4 @@ export interface ResolvedServer {
|
|
|
121
121
|
env?: Record<string, string>;
|
|
122
122
|
initialization?: Record<string, unknown>;
|
|
123
123
|
}
|
|
124
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { MESSAGE_STORAGE, OPENCODE_STORAGE, PART_STORAGE, SESSION_STORAGE } from "../../shared";
|
|
2
2
|
export declare const TODO_DIR: string;
|
|
3
3
|
export declare const TRANSCRIPT_DIR: string;
|
|
4
4
|
export declare const SESSION_LIST_DESCRIPTION = "List all OpenCode sessions with optional filtering.\n\nReturns a list of available session IDs with metadata including message count, date range, and agents used.\n\nArguments:\n- limit (optional): Maximum number of sessions to return\n- from_date (optional): Filter sessions from this date (ISO 8601 format)\n- to_date (optional): Filter sessions until this date (ISO 8601 format)\n\nExample output:\n| Session ID | Messages | First | Last | Agents |\n|------------|----------|-------|------|--------|\n| ses_abc123 | 45 | 2025-12-20 | 2025-12-24 | build, oracle |\n| ses_def456 | 12 | 2025-12-19 | 2025-12-19 | build |";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionInfo, SessionMessage
|
|
1
|
+
import type { SearchResult, SessionInfo, SessionMessage } from "./types";
|
|
2
2
|
export declare function formatSessionList(sessionIDs: string[]): Promise<string>;
|
|
3
3
|
export declare function formatSessionMessages(messages: SessionMessage[], includeTodos?: boolean, todos?: Array<{
|
|
4
4
|
id?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { SessionMessage,
|
|
3
|
-
|
|
2
|
+
import type { SessionInfo, SessionMessage, SessionMetadata, TodoItem } from "./types";
|
|
3
|
+
interface GetMainSessionsOptions {
|
|
4
4
|
directory?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function setStorageClient(client: PluginInput["client"]): void;
|
|
@@ -11,5 +11,4 @@ export { getMessageDir } from "../../shared/opencode-message-dir";
|
|
|
11
11
|
export declare function sessionExists(sessionID: string): Promise<boolean>;
|
|
12
12
|
export declare function readSessionMessages(sessionID: string): Promise<SessionMessage[]>;
|
|
13
13
|
export declare function readSessionTodos(sessionID: string): Promise<TodoItem[]>;
|
|
14
|
-
export declare function readSessionTranscript(sessionID: string): Promise<number>;
|
|
15
14
|
export declare function getSessionInfo(sessionID: string): Promise<SessionInfo | null>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export declare const TOOL_NAME: "skill";
|
|
2
1
|
export declare const TOOL_DESCRIPTION_NO_SKILLS = "Load a skill to get detailed instructions for a specific task. No skills are currently available.";
|
|
3
2
|
export declare const TOOL_DESCRIPTION_PREFIX = "Load a skill to get detailed instructions for a specific task.\n\nSkills provide specialized knowledge and step-by-step guidance.\nUse this when a task matches an available skill's description.";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LoadedSkill, SkillScope } from "../../features/opencode-skill-loader/types";
|
|
2
2
|
import type { SkillMcpManager } from "../../features/skill-mcp-manager";
|
|
3
|
-
import type { GitMasterConfig } from "../../config/schema";
|
|
4
3
|
export interface SkillArgs {
|
|
5
4
|
name: string;
|
|
6
5
|
}
|
|
@@ -23,7 +22,5 @@ export interface SkillLoadOptions {
|
|
|
23
22
|
mcpManager?: SkillMcpManager;
|
|
24
23
|
/** Session ID getter for MCP client identification */
|
|
25
24
|
getSessionID?: () => string;
|
|
26
|
-
/** Git master configuration for watermark/co-author settings */
|
|
27
|
-
gitMasterConfig?: GitMasterConfig;
|
|
28
25
|
disabledSkills?: Set<string>;
|
|
29
26
|
}
|