opencode-matrixx 1.1.1 → 2.1.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 +168 -129
- package/bin/matrixx.js +4 -4
- package/dist/agents/agent-builder.d.ts +2 -3
- package/dist/agents/architect/agent.d.ts +11 -11
- package/dist/agents/architect/default.d.ts +3 -3
- package/dist/agents/architect/gpt.d.ts +3 -3
- package/dist/agents/architect/index.d.ts +5 -5
- package/dist/agents/architect/prompt-section-builder.d.ts +1 -1
- package/dist/agents/builtin-agents/agent-overrides.d.ts +1 -1
- package/dist/agents/builtin-agents/{atlas-agent.d.ts → architect-agent.d.ts} +2 -2
- package/dist/agents/builtin-agents/available-skills.d.ts +2 -2
- package/dist/agents/builtin-agents/general-agents.d.ts +3 -5
- package/dist/agents/builtin-agents/hephaestus-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/merovingian.d.ts +1 -0
- 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 +7 -7
- 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 +16738 -14494
- 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 +8 -41
- 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 +4 -2
- package/dist/config/schema/matrixx-config.d.ts +24 -53
- 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 +6 -4
- 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/templates/start-work.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 +3 -3
- 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/mission-state/types.d.ts +1 -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/{atlas-hook.d.ts → architect-hook.d.ts} +2 -2
- package/dist/hooks/architect/event-handler.d.ts +3 -3
- package/dist/hooks/architect/index.d.ts +2 -2
- package/dist/hooks/architect/types.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/mouse-notepad/constants.d.ts +1 -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 +65863 -52362
- 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 +2 -2
- package/dist/plugin/hooks/create-core-hooks.d.ts +4 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts +4 -4
- 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 +2 -3
- 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/mouse-agent.d.ts +1 -1
- 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 +3 -4
- 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/agents/builtin-agents/{sisyphus-agent.d.ts → morpheus-agent.d.ts} +1 -1
- /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
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../config";
|
|
2
|
-
import type { PluginContext } from "./types";
|
|
3
2
|
import type { CreatedHooks } from "../create-hooks";
|
|
3
|
+
import type { PluginContext } from "./types";
|
|
4
4
|
type FirstMessageVariantGate = {
|
|
5
5
|
shouldOverride: (sessionID: string) => boolean;
|
|
6
6
|
markApplied: (sessionID: string) => void;
|
package/dist/plugin/event.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../config";
|
|
2
|
-
import type { PluginContext } from "./types";
|
|
3
2
|
import type { CreatedHooks } from "../create-hooks";
|
|
4
3
|
import type { Managers } from "../create-managers";
|
|
4
|
+
import type { PluginContext } from "./types";
|
|
5
5
|
type FirstMessageVariantGate = {
|
|
6
6
|
markSessionCreated: (sessionInfo: {
|
|
7
7
|
id?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
+
import { createArchitectHook, createBackgroundNotificationHook, createCompactionContextInjector, createCompactionTodoPreserverHook, createStopContinuationGuardHook, createTodoContinuationEnforcer } from "../../hooks";
|
|
3
4
|
import type { PluginContext } from "../types";
|
|
4
|
-
import { createTodoContinuationEnforcer, createBackgroundNotificationHook, createStopContinuationGuardHook, createCompactionContextInjector, createCompactionTodoPreserverHook, createAtlasHook } from "../../hooks";
|
|
5
5
|
import { createUnstableAgentBabysitter } from "../unstable-agent-babysitter";
|
|
6
6
|
export type ContinuationHooks = {
|
|
7
7
|
stopContinuationGuard: ReturnType<typeof createStopContinuationGuardHook> | null;
|
|
@@ -10,7 +10,7 @@ export type ContinuationHooks = {
|
|
|
10
10
|
todoContinuationEnforcer: ReturnType<typeof createTodoContinuationEnforcer> | null;
|
|
11
11
|
unstableAgentBabysitter: ReturnType<typeof createUnstableAgentBabysitter> | null;
|
|
12
12
|
backgroundNotificationHook: ReturnType<typeof createBackgroundNotificationHook> | null;
|
|
13
|
-
|
|
13
|
+
architectHook: ReturnType<typeof createArchitectHook> | null;
|
|
14
14
|
};
|
|
15
15
|
type SessionRecovery = {
|
|
16
16
|
setOnAbortCallback: (callback: (sessionID: string) => void) => void;
|
|
@@ -6,11 +6,11 @@ export declare function createCoreHooks(args: {
|
|
|
6
6
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
7
7
|
safeHookEnabled: boolean;
|
|
8
8
|
}): {
|
|
9
|
-
claudeCodeHooks: ReturnType<typeof import("../../hooks").createClaudeCodeHooksHook>;
|
|
10
9
|
keywordDetector: ReturnType<typeof import("../../hooks").createKeywordDetectorHook> | null;
|
|
11
10
|
contextInjectorMessagesTransform: ReturnType<typeof import("../../features/context-injector").createContextInjectorMessagesTransformHook>;
|
|
12
11
|
thinkingBlockValidator: ReturnType<typeof import("../../hooks").createThinkingBlockValidatorHook> | null;
|
|
13
12
|
toolPairValidator: ReturnType<typeof import("../../hooks").createToolPairValidatorHook> | null;
|
|
13
|
+
designIntentPreserver: ReturnType<typeof import("../../hooks").createDesignIntentPreserverHook> | null;
|
|
14
14
|
commentChecker: ReturnType<typeof import("../../hooks").createCommentCheckerHooks> | null;
|
|
15
15
|
toolOutputTruncator: ReturnType<typeof import("../../hooks").createToolOutputTruncatorHook> | null;
|
|
16
16
|
directoryAgentsInjector: ReturnType<typeof import("../../hooks").createDirectoryAgentsInjectorHook> | null;
|
|
@@ -28,6 +28,8 @@ export declare function createCoreHooks(args: {
|
|
|
28
28
|
readImageResizer: ReturnType<typeof import("../../hooks").createReadImageResizerHook> | null;
|
|
29
29
|
webfetchRedirectGuard: ReturnType<typeof import("../../hooks").createWebFetchRedirectGuardHook> | null;
|
|
30
30
|
hashlineEditDiffEnhancer: ReturnType<typeof import("../../hooks").createHashlineEditDiffEnhancerHook> | null;
|
|
31
|
+
qualityGate: ReturnType<typeof import("../../hooks").createQualityGateHook> | null;
|
|
32
|
+
taskNotepad: ReturnType<typeof import("../../hooks").createTaskNotepadHook> | null;
|
|
31
33
|
contextWindowMonitor: ReturnType<typeof import("../../hooks").createContextWindowMonitorHook> | null;
|
|
32
34
|
preemptiveCompaction: ReturnType<typeof import("../../hooks").createPreemptiveCompactionHook> | null;
|
|
33
35
|
sessionRecovery: ReturnType<typeof import("../../hooks").createSessionRecoveryHook> | null;
|
|
@@ -43,7 +45,7 @@ export declare function createCoreHooks(args: {
|
|
|
43
45
|
delegateTaskRetry: ReturnType<typeof import("../../hooks").createDelegateTaskRetryHook> | null;
|
|
44
46
|
startWork: ReturnType<typeof import("../../hooks").createStartWorkHook> | null;
|
|
45
47
|
prometheusMdOnly: ReturnType<typeof import("../../hooks").createOracleMdOnlyHook> | null;
|
|
46
|
-
|
|
48
|
+
mouseNotepad: ReturnType<typeof import("../../hooks").createMouseNotepadHook> | null;
|
|
47
49
|
questionLabelTruncator: ReturnType<typeof import("../../hooks").createQuestionLabelTruncatorHook>;
|
|
48
50
|
taskResumeInfo: ReturnType<typeof import("../../hooks").createTaskResumeInfoHook>;
|
|
49
51
|
anthropicEffort: ReturnType<typeof import("../../hooks/anthropic-effort").createAnthropicEffortHook> | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
import { createContextWindowMonitorHook, createSessionRecoveryHook, createSessionNotification, createThinkModeHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createAgentUsageReminderHook, createNonInteractiveEnvHook, createInteractiveBashSessionHook, createMatrixLoopHook, createEditErrorRecoveryHook, createDelegateTaskRetryHook, createTaskResumeInfoHook, createStartWorkHook, createOracleMdOnlyHook, createMouseNotepadHook, createQuestionLabelTruncatorHook, createPreemptiveCompactionHook, createRuntimeFallbackHook } from "../../hooks";
|
|
1
|
+
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
|
+
import { createAgentUsageReminderHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createContextWindowMonitorHook, createDelegateTaskRetryHook, createEditErrorRecoveryHook, createInteractiveBashSessionHook, createMatrixLoopHook, createMouseNotepadHook, createNonInteractiveEnvHook, createOracleMdOnlyHook, createPreemptiveCompactionHook, createQuestionLabelTruncatorHook, createRuntimeFallbackHook, createSessionNotification, createSessionRecoveryHook, createStartWorkHook, createTaskResumeInfoHook, createThinkModeHook } from "../../hooks";
|
|
4
3
|
import { createAnthropicEffortHook } from "../../hooks/anthropic-effort";
|
|
4
|
+
import type { PluginContext } from "../types";
|
|
5
5
|
export type SessionHooks = {
|
|
6
6
|
contextWindowMonitor: ReturnType<typeof createContextWindowMonitorHook> | null;
|
|
7
7
|
preemptiveCompaction: ReturnType<typeof createPreemptiveCompactionHook> | null;
|
|
@@ -18,7 +18,7 @@ export type SessionHooks = {
|
|
|
18
18
|
delegateTaskRetry: ReturnType<typeof createDelegateTaskRetryHook> | null;
|
|
19
19
|
startWork: ReturnType<typeof createStartWorkHook> | null;
|
|
20
20
|
prometheusMdOnly: ReturnType<typeof createOracleMdOnlyHook> | null;
|
|
21
|
-
|
|
21
|
+
mouseNotepad: ReturnType<typeof createMouseNotepadHook> | null;
|
|
22
22
|
questionLabelTruncator: ReturnType<typeof createQuestionLabelTruncatorHook>;
|
|
23
23
|
taskResumeInfo: ReturnType<typeof createTaskResumeInfoHook>;
|
|
24
24
|
anthropicEffort: ReturnType<typeof createAnthropicEffortHook> | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
2
2
|
import type { HookName } from "../../config";
|
|
3
3
|
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
4
|
-
import type { PluginContext } from "../types";
|
|
5
4
|
import { createAutoSlashCommandHook, createCategorySkillReminderHook } from "../../hooks";
|
|
5
|
+
import type { PluginContext } from "../types";
|
|
6
6
|
export type SkillHooks = {
|
|
7
7
|
categorySkillReminder: ReturnType<typeof createCategorySkillReminderHook> | null;
|
|
8
8
|
autoSlashCommand: ReturnType<typeof createAutoSlashCommandHook> | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
|
+
import { createBashFileReadGuardHook, createCommentCheckerHooks, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createEnvFileWriteGuardHook, createHashlineEditDiffEnhancerHook, createHashlineReadEnhancerHook, createJsonErrorRecoveryHook, createQualityGateHook, createReadImageResizerHook, createRulesInjectorHook, createSecretLeakGuardHook, createTaskNotepadHook, createTasksTodowriteDisablerHook, createTodoDescriptionOverrideHook, createToolOutputTruncatorHook, createWebFetchRedirectGuardHook, createWriteExistingFileGuardHook } from "../../hooks";
|
|
2
3
|
import type { PluginContext } from "../types";
|
|
3
|
-
import { createCommentCheckerHooks, createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createRulesInjectorHook, createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook, createSecretLeakGuardHook, createEnvFileWriteGuardHook, createJsonErrorRecoveryHook, createBashFileReadGuardHook, createTodoDescriptionOverrideHook, createReadImageResizerHook, createWebFetchRedirectGuardHook, createHashlineEditDiffEnhancerHook } from "../../hooks";
|
|
4
4
|
export type ToolGuardHooks = {
|
|
5
5
|
commentChecker: ReturnType<typeof createCommentCheckerHooks> | null;
|
|
6
6
|
toolOutputTruncator: ReturnType<typeof createToolOutputTruncatorHook> | null;
|
|
@@ -19,6 +19,8 @@ export type ToolGuardHooks = {
|
|
|
19
19
|
readImageResizer: ReturnType<typeof createReadImageResizerHook> | null;
|
|
20
20
|
webfetchRedirectGuard: ReturnType<typeof createWebFetchRedirectGuardHook> | null;
|
|
21
21
|
hashlineEditDiffEnhancer: ReturnType<typeof createHashlineEditDiffEnhancerHook> | null;
|
|
22
|
+
qualityGate: ReturnType<typeof createQualityGateHook> | null;
|
|
23
|
+
taskNotepad: ReturnType<typeof createTaskNotepadHook> | null;
|
|
22
24
|
};
|
|
23
25
|
export declare function createToolGuardHooks(args: {
|
|
24
26
|
ctx: PluginContext;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../../config";
|
|
2
|
-
import type { PluginContext } from "../types";
|
|
3
|
-
import { createClaudeCodeHooksHook, createKeywordDetectorHook, createThinkingBlockValidatorHook, createToolPairValidatorHook } from "../../hooks";
|
|
4
2
|
import { createContextInjectorMessagesTransformHook } from "../../features/context-injector";
|
|
3
|
+
import { createDesignIntentPreserverHook, createKeywordDetectorHook, createThinkingBlockValidatorHook, createToolPairValidatorHook } from "../../hooks";
|
|
4
|
+
import type { PluginContext } from "../types";
|
|
5
5
|
export type TransformHooks = {
|
|
6
|
-
claudeCodeHooks: ReturnType<typeof createClaudeCodeHooksHook>;
|
|
7
6
|
keywordDetector: ReturnType<typeof createKeywordDetectorHook> | null;
|
|
8
7
|
contextInjectorMessagesTransform: ReturnType<typeof createContextInjectorMessagesTransformHook>;
|
|
9
8
|
thinkingBlockValidator: ReturnType<typeof createThinkingBlockValidatorHook> | null;
|
|
10
9
|
toolPairValidator: ReturnType<typeof createToolPairValidatorHook> | null;
|
|
10
|
+
designIntentPreserver: ReturnType<typeof createDesignIntentPreserverHook> | null;
|
|
11
11
|
};
|
|
12
12
|
export declare function createTransformHooks(args: {
|
|
13
13
|
ctx: PluginContext;
|
|
@@ -7,6 +7,7 @@ type MessageWithParts = {
|
|
|
7
7
|
type MessagesTransformOutput = {
|
|
8
8
|
messages: MessageWithParts[];
|
|
9
9
|
};
|
|
10
|
+
export declare function _resetMessagesTransformCacheForTesting(): void;
|
|
10
11
|
export declare function createMessagesTransformHandler(args: {
|
|
11
12
|
hooks: CreatedHooks;
|
|
12
13
|
}): (input: Record<string, never>, output: MessagesTransformOutput) => Promise<void>;
|
|
@@ -15,5 +15,5 @@ type SessionClient = {
|
|
|
15
15
|
}>;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export declare function resolveSessionAgent(client: SessionClient, sessionId: string): Promise<string | undefined>;
|
|
18
|
+
export declare function resolveSessionAgent(client: SessionClient, sessionId: string, timeoutMs?: number): Promise<string | undefined>;
|
|
19
19
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AvailableCategory } from "../agents/dynamic-agent-prompt-builder";
|
|
2
2
|
import type { MatrixxConfig } from "../config";
|
|
3
|
-
import type { PluginContext, ToolsRecord } from "./types";
|
|
4
3
|
import type { Managers } from "../create-managers";
|
|
5
4
|
import type { SkillContext } from "./skill-context";
|
|
5
|
+
import type { PluginContext, ToolsRecord } from "./types";
|
|
6
6
|
export type ToolRegistryResult = {
|
|
7
7
|
filteredTools: ToolsRecord;
|
|
8
8
|
taskSystemEnabled: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../config";
|
|
2
|
-
import type { PluginContext } from "./types";
|
|
3
2
|
import type { BackgroundManager } from "../features/background-agent";
|
|
3
|
+
import type { PluginContext } from "./types";
|
|
4
4
|
export declare function createUnstableAgentBabysitter(args: {
|
|
5
5
|
ctx: PluginContext;
|
|
6
6
|
backgroundManager: BackgroundManager;
|
package/dist/plugin-config.d.ts
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
import { type MatrixxConfig } from "./config";
|
|
2
2
|
export declare function parseConfigPartially(rawConfig: Record<string, unknown>): MatrixxConfig | null;
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Cached view of the 5 `disabled_*` arrays on a `MatrixxConfig` as Sets.
|
|
5
|
+
* Returned by {@link getDisabledSets} so callers can do O(1) membership
|
|
6
|
+
* checks without re-constructing a Set on every read.
|
|
7
|
+
*/
|
|
8
|
+
interface DisabledSets {
|
|
9
|
+
disabledAgents: Set<string>;
|
|
10
|
+
disabledMcps: Set<string>;
|
|
11
|
+
disabledHooks: Set<string>;
|
|
12
|
+
disabledCommands: Set<string>;
|
|
13
|
+
disabledSkills: Set<string>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns the cached `DisabledSets` view for `config`, constructing and
|
|
17
|
+
* caching it on first access. Callers MUST treat the returned Sets as
|
|
18
|
+
* read-only — they are shared across all readers of the same config.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getDisabledSets(config: MatrixxConfig): DisabledSets;
|
|
21
|
+
/**
|
|
22
|
+
* Test-only: drop all cached `DisabledSets`. WeakMap has no `clear()`,
|
|
23
|
+
* so we replace the map with a fresh one — the old map is GC'd.
|
|
24
|
+
*/
|
|
25
|
+
export declare function _resetDisabledSetsCacheForTesting(): void;
|
|
4
26
|
export declare function mergeConfigs(base: MatrixxConfig, override: MatrixxConfig): MatrixxConfig;
|
|
5
27
|
export declare function loadPluginConfig(directory: string, ctx: unknown): MatrixxConfig;
|
|
28
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { createConfigHandler, type ConfigHandlerDeps } from "./config-handler";
|
|
2
|
-
export * from "./provider-config-handler";
|
|
3
1
|
export * from "./agent-config-handler";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
2
|
+
export * from "./agent-priority-order";
|
|
3
|
+
export * from "./category-config-resolver";
|
|
6
4
|
export * from "./command-config-handler";
|
|
5
|
+
export { type ConfigHandlerDeps, createConfigHandler } from "./config-handler";
|
|
6
|
+
export * from "./mcp-config-handler";
|
|
7
7
|
export * from "./plugin-components-loader";
|
|
8
|
-
export * from "./category-config-resolver";
|
|
9
8
|
export * from "./prometheus-agent-config-builder";
|
|
10
|
-
export * from "./
|
|
9
|
+
export * from "./provider-config-handler";
|
|
10
|
+
export * from "./tool-config-handler";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PluginContext, PluginInterface, ToolsRecord } from "./plugin/types";
|
|
2
1
|
import type { MatrixxConfig } from "./config";
|
|
3
2
|
import type { CreatedHooks } from "./create-hooks";
|
|
4
3
|
import type { Managers } from "./create-managers";
|
|
4
|
+
import type { PluginContext, PluginInterface, ToolsRecord } from "./plugin/types";
|
|
5
5
|
export declare function createPluginInterface(args: {
|
|
6
6
|
ctx: PluginContext;
|
|
7
7
|
pluginConfig: MatrixxConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function executeCommand(command: string): Promise<string>;
|
|
1
|
+
export declare function executeCommand(command: string, timeoutMs?: number): Promise<string>;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export { executeHookCommand } from "./command-executor/execute-hook-command";
|
|
2
|
-
export type { CommandResult, ExecuteHookOptions } from "./command-executor/execute-hook-command";
|
|
3
1
|
export { executeCommand } from "./command-executor/execute-command";
|
|
4
2
|
export { resolveCommandsInText } from "./command-executor/resolve-commands-in-text";
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
|
|
2
|
+
interface TruncationResult {
|
|
3
3
|
result: string;
|
|
4
4
|
truncated: boolean;
|
|
5
5
|
removedCount?: number;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface TruncationOptions {
|
|
8
8
|
targetMaxTokens?: number;
|
|
9
9
|
preserveHeaderLines?: number;
|
|
10
10
|
contextWindowLimit?: number;
|
|
11
11
|
}
|
|
12
|
-
export declare function truncateToTokenLimit(output: string, maxTokens: number, preserveHeaderLines?: number): TruncationResult;
|
|
13
|
-
export declare function getContextWindowUsage(ctx: PluginInput, sessionID: string): Promise<{
|
|
14
|
-
usedTokens: number;
|
|
15
|
-
remainingTokens: number;
|
|
16
|
-
usagePercentage: number;
|
|
17
|
-
} | null>;
|
|
18
|
-
export declare function dynamicTruncate(ctx: PluginInput, sessionID: string, output: string, options?: TruncationOptions): Promise<TruncationResult>;
|
|
19
12
|
export declare function createDynamicTruncator(ctx: PluginInput): {
|
|
20
13
|
truncate: (sessionID: string, output: string, options?: TruncationOptions) => Promise<TruncationResult>;
|
|
21
14
|
getUsage: (sessionID: string) => Promise<{
|
|
@@ -25,3 +18,4 @@ export declare function createDynamicTruncator(ctx: PluginInput): {
|
|
|
25
18
|
} | null>;
|
|
26
19
|
truncateSync: (output: string, maxTokens: number, preserveHeaderLines?: number) => TruncationResult;
|
|
27
20
|
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context for formatting an error with full debugging details.
|
|
3
|
+
* Used across all matrixx background task tools.
|
|
4
|
+
*/
|
|
5
|
+
export interface ErrorContext {
|
|
6
|
+
operation: string;
|
|
7
|
+
/**
|
|
8
|
+
* DelegateTaskArgs (structurally compatible — see src/tools/delegate-task/types.ts).
|
|
9
|
+
* Only the fields read by formatDetailedError are required.
|
|
10
|
+
*/
|
|
11
|
+
args?: {
|
|
12
|
+
description: string;
|
|
13
|
+
category?: string;
|
|
14
|
+
subagent_type?: string;
|
|
15
|
+
run_in_background: boolean;
|
|
16
|
+
load_skills?: string[];
|
|
17
|
+
session_id?: string;
|
|
18
|
+
};
|
|
19
|
+
sessionID?: string;
|
|
20
|
+
agent?: string;
|
|
21
|
+
category?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Format an error with detailed context for debugging.
|
|
25
|
+
* Replaces the `?? "pending"` anti-pattern across matrixx background task tools.
|
|
26
|
+
*/
|
|
27
|
+
export declare function formatDetailedError(error: unknown, ctx: ErrorContext): string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Detects external plugins that may conflict with matrixx features.
|
|
3
3
|
* Used to prevent crashes from concurrent notification plugins.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
interface ExternalNotifierResult {
|
|
6
6
|
detected: boolean;
|
|
7
7
|
pluginName: string | null;
|
|
8
8
|
allPlugins: string[];
|
|
@@ -16,3 +16,4 @@ export declare function detectExternalNotificationPlugin(directory: string): Ext
|
|
|
16
16
|
* Generate a warning message for users with conflicting notification plugins.
|
|
17
17
|
*/
|
|
18
18
|
export declare function getNotificationConflictWarning(pluginName: string): string;
|
|
19
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface FrontmatterResult<T = Record<string, unknown>> {
|
|
2
2
|
data: T;
|
|
3
3
|
body: string;
|
|
4
4
|
hadFrontmatter: boolean;
|
|
5
5
|
parseError: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function parseFrontmatter<T = Record<string, unknown>>(content: string): FrontmatterResult<T>;
|
|
8
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { GitFileStatus, GitFileStat } from "./types";
|
|
2
|
-
export { parseGitStatusPorcelain } from "./parse-status-porcelain";
|
|
3
|
-
export { parseGitDiffNumstat } from "./parse-diff-numstat";
|
|
4
1
|
export { collectGitDiffStats } from "./collect-git-diff-stats";
|
|
5
2
|
export { formatFileChanges } from "./format-file-changes";
|
|
3
|
+
export { parseGitDiffNumstat } from "./parse-diff-numstat";
|
|
4
|
+
export { parseGitStatusPorcelain } from "./parse-status-porcelain";
|
|
5
|
+
export type { GitFileStat, GitFileStatus } from "./types";
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./agent-tool-restrictions";
|
|
2
|
+
export * from "./agent-variant";
|
|
3
|
+
export * from "./binary-downloader";
|
|
4
|
+
export * from "./claude-config-dir";
|
|
5
|
+
export * from "./code-patterns";
|
|
2
6
|
export * from "./command-executor";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./snake-case";
|
|
7
|
-
export * from "./tool-name";
|
|
8
|
-
export * from "./pattern-matcher";
|
|
9
|
-
export * from "./hook-disabled";
|
|
7
|
+
export * from "./config-errors";
|
|
8
|
+
export * from "./connected-providers-cache";
|
|
9
|
+
export * from "./data-path";
|
|
10
10
|
export * from "./deep-merge";
|
|
11
|
-
export * from "./file-utils";
|
|
12
11
|
export * from "./dynamic-truncator";
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
12
|
+
export * from "./external-plugin-detector";
|
|
13
|
+
export * from "./file-reference-resolver";
|
|
14
|
+
export * from "./file-utils";
|
|
15
|
+
export * from "./format-duration";
|
|
16
|
+
export * from "./frontmatter";
|
|
17
|
+
export * from "./git-worktree";
|
|
18
|
+
export * from "./is-object";
|
|
16
19
|
export * from "./jsonc-parser";
|
|
20
|
+
export * from "./logger";
|
|
17
21
|
export * from "./migration";
|
|
22
|
+
export * from "./model-availability";
|
|
23
|
+
export * from "./model-requirements";
|
|
24
|
+
export { resolveModelPipeline } from "./model-resolution-pipeline";
|
|
25
|
+
export type { ModelResolutionProvenance, ModelResolutionRequest, ModelResolutionResult, } from "./model-resolution-types";
|
|
26
|
+
export * from "./model-resolver";
|
|
27
|
+
export * from "./model-sanitizer";
|
|
28
|
+
export * from "./model-suggestion-retry";
|
|
29
|
+
export * from "./normalize-sdk-response";
|
|
18
30
|
export * from "./opencode-config-dir";
|
|
19
31
|
export type { OpenCodeBinaryType, OpenCodeConfigDirOptions, OpenCodeConfigPaths, } from "./opencode-config-dir-types";
|
|
20
|
-
export * from "./opencode-
|
|
32
|
+
export * from "./opencode-http-api";
|
|
33
|
+
export * from "./opencode-message-dir";
|
|
34
|
+
export * from "./opencode-server-auth";
|
|
21
35
|
export * from "./opencode-storage-detection";
|
|
36
|
+
export * from "./opencode-storage-paths";
|
|
37
|
+
export * from "./opencode-version";
|
|
22
38
|
export * from "./permission-compat";
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./binary-downloader";
|
|
26
|
-
export * from "./agent-variant";
|
|
39
|
+
export * from "./port-utils";
|
|
40
|
+
export * from "./safe-create-hook";
|
|
27
41
|
export * from "./session-cursor";
|
|
42
|
+
export * from "./session-directory-resolver";
|
|
43
|
+
export * from "./session-utils";
|
|
28
44
|
export * from "./shell-env";
|
|
29
45
|
export * from "./system-directive";
|
|
30
|
-
export * from "./agent-tool-restrictions";
|
|
31
|
-
export * from "./model-requirements";
|
|
32
|
-
export * from "./model-resolver";
|
|
33
|
-
export { resolveModelPipeline } from "./model-resolution-pipeline";
|
|
34
|
-
export type { ModelResolutionRequest, ModelResolutionProvenance, ModelResolutionResult, } from "./model-resolution-types";
|
|
35
|
-
export * from "./model-availability";
|
|
36
|
-
export * from "./connected-providers-cache";
|
|
37
|
-
export * from "./session-utils";
|
|
38
46
|
export * from "./tmux";
|
|
39
|
-
export * from "./
|
|
40
|
-
export * from "./
|
|
41
|
-
export * from "./opencode-http-api";
|
|
42
|
-
export * from "./port-utils";
|
|
43
|
-
export * from "./git-worktree";
|
|
44
|
-
export * from "./safe-create-hook";
|
|
47
|
+
export * from "./token-cache";
|
|
48
|
+
export * from "./transcript-path";
|
|
45
49
|
export * from "./truncate-description";
|
|
46
|
-
export * from "./
|
|
47
|
-
export * from "./opencode-message-dir";
|
|
48
|
-
export * from "./normalize-sdk-response";
|
|
49
|
-
export * from "./session-directory-resolver";
|
|
50
|
+
export * from "./zip-extractor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isObject(value: unknown): value is Record<string, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface JsoncParseResult<T> {
|
|
2
2
|
data: T | null;
|
|
3
3
|
errors: Array<{
|
|
4
4
|
message: string;
|
|
@@ -13,3 +13,4 @@ export declare function detectConfigFile(basePath: string): {
|
|
|
13
13
|
format: "json" | "jsonc" | "none";
|
|
14
14
|
path: string;
|
|
15
15
|
};
|
|
16
|
+
export {};
|
package/dist/shared/logger.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export { MODEL_TO_CATEGORY_MAP, migrateAgentConfigToCategory, shouldDeleteAgentConfig } from "./migration/agent-category";
|
|
1
2
|
export { AGENT_NAME_MAP, BUILTIN_AGENT_NAMES, migrateAgentNames } from "./migration/agent-names";
|
|
3
|
+
export { migrateConfigFile } from "./migration/config-migration";
|
|
2
4
|
export { HOOK_NAME_MAP, migrateHookNames } from "./migration/hook-names";
|
|
3
5
|
export { MODEL_VERSION_MAP, migrateModelVersions } from "./migration/model-versions";
|
|
4
|
-
export { MODEL_TO_CATEGORY_MAP, migrateAgentConfigToCategory, shouldDeleteAgentConfig } from "./migration/agent-category";
|
|
5
|
-
export { migrateConfigFile } from "./migration/config-migration";
|
|
@@ -7,8 +7,30 @@ export declare function fuzzyMatchModel(target: string, available: Set<string>,
|
|
|
7
7
|
* @returns true if model is available, false otherwise
|
|
8
8
|
*/
|
|
9
9
|
export declare function isModelAvailable(targetModel: string, availableModels: Set<string>): boolean;
|
|
10
|
-
export declare function getConnectedProviders(client:
|
|
11
|
-
|
|
10
|
+
export declare function getConnectedProviders(client: {
|
|
11
|
+
provider?: {
|
|
12
|
+
list?: () => Promise<{
|
|
13
|
+
data?: {
|
|
14
|
+
connected?: string[];
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
model?: {
|
|
19
|
+
list?: () => Promise<unknown>;
|
|
20
|
+
};
|
|
21
|
+
}): Promise<string[]>;
|
|
22
|
+
export declare function fetchAvailableModels(client?: {
|
|
23
|
+
provider?: {
|
|
24
|
+
list?: () => Promise<{
|
|
25
|
+
data?: {
|
|
26
|
+
connected?: string[];
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
model?: {
|
|
31
|
+
list?: () => Promise<unknown>;
|
|
32
|
+
};
|
|
33
|
+
}, options?: {
|
|
12
34
|
connectedProviders?: string[] | null;
|
|
13
35
|
}): Promise<Set<string>>;
|
|
14
36
|
export declare function isAnyFallbackModelAvailable(fallbackChain: Array<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
interface NormalizeSDKResponseOptions {
|
|
2
2
|
preferResponseOnMissingData?: boolean;
|
|
3
3
|
}
|
|
4
4
|
export declare function normalizeSDKResponse<TData>(response: unknown, fallback: TData, options?: NormalizeSDKResponseOptions): TData;
|
|
5
|
+
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This module only supports the new permission format.
|
|
4
4
|
*/
|
|
5
5
|
export type PermissionValue = "ask" | "allow" | "deny";
|
|
6
|
-
|
|
6
|
+
interface PermissionFormat {
|
|
7
7
|
permission: Record<string, PermissionValue>;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
@@ -25,3 +25,4 @@ export declare function migrateToolsToPermission(tools: Record<string, boolean>)
|
|
|
25
25
|
* If config has `tools`, converts to `permission`.
|
|
26
26
|
*/
|
|
27
27
|
export declare function migrateAgentConfig(config: Record<string, unknown>): Record<string, unknown>;
|
|
28
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const DEFAULT_SERVER_PORT = 4096;
|
|
2
2
|
export declare function isPortAvailable(port: number, hostname?: string): Promise<boolean>;
|
|
3
3
|
export declare function findAvailablePort(startPort?: number, hostname?: string): Promise<number>;
|
|
4
|
-
|
|
4
|
+
interface AutoPortResult {
|
|
5
5
|
port: number;
|
|
6
6
|
wasAutoSelected: boolean;
|
|
7
7
|
}
|
|
@@ -5,7 +5,7 @@ type MessageInfo = {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
time?: MessageTime;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type CursorMessage = {
|
|
9
9
|
info?: MessageInfo;
|
|
10
10
|
};
|
|
11
11
|
export declare function consumeNewMessages<T extends CursorMessage>(sessionID: string | undefined, messages: T[]): T[];
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export interface InjectedPathsData {
|
|
2
|
-
sessionID: string;
|
|
3
|
-
injectedPaths: string[];
|
|
4
|
-
updatedAt: number;
|
|
5
|
-
}
|
|
6
1
|
export declare function createInjectedPathsStorage(storageDir: string): {
|
|
7
2
|
loadInjectedPaths: (sessionID: string) => Set<string>;
|
|
8
3
|
saveInjectedPaths: (sessionID: string, paths: Set<string>) => void;
|