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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { isLocalDevMode, getLocalDevPath } from "./checker/local-dev-path";
|
|
2
|
-
export { getLocalDevVersion } from "./checker/local-dev-version";
|
|
3
|
-
export { findPluginEntry } from "./checker/plugin-entry";
|
|
4
|
-
export type { PluginEntryInfo } from "./checker/plugin-entry";
|
|
5
1
|
export { getCachedVersion } from "./checker/cached-version";
|
|
6
|
-
export { updatePinnedVersion, revertPinnedVersion } from "./checker/pinned-version-updater";
|
|
7
|
-
export { getLatestVersion } from "./checker/latest-version";
|
|
8
2
|
export { checkForUpdate } from "./checker/check-for-update";
|
|
3
|
+
export { getLatestVersion } from "./checker/latest-version";
|
|
4
|
+
export { getLocalDevPath, isLocalDevMode } from "./checker/local-dev-path";
|
|
5
|
+
export { getLocalDevVersion } from "./checker/local-dev-version";
|
|
6
|
+
export { revertPinnedVersion, updatePinnedVersion } from "./checker/pinned-version-updater";
|
|
7
|
+
export type { PluginEntryInfo } from "./checker/plugin-entry";
|
|
8
|
+
export { findPluginEntry } from "./checker/plugin-entry";
|
|
@@ -2,8 +2,6 @@ export declare const PACKAGE_NAME = "opencode-matrixx";
|
|
|
2
2
|
export declare const LEGACY_PACKAGE_NAME = "matrixx";
|
|
3
3
|
export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/opencode-matrixx/dist-tags";
|
|
4
4
|
export declare const NPM_FETCH_TIMEOUT = 5000;
|
|
5
|
-
export declare const CACHE_DIR: string;
|
|
6
|
-
export declare const VERSION_FILE: string;
|
|
7
5
|
export declare function getWindowsAppdataDir(): string | null;
|
|
8
6
|
export declare const USER_CONFIG_DIR: string;
|
|
9
7
|
export declare const USER_OPENCODE_CONFIG: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { isPrereleaseVersion, isDistTag, isPrereleaseOrDistTag, extractChannel, } from "./version-channel";
|
|
1
|
+
export { invalidateCache, invalidatePackage } from "./cache";
|
|
3
2
|
export { checkForUpdate } from "./checker";
|
|
4
|
-
export {
|
|
5
|
-
export type {
|
|
3
|
+
export { createAutoUpdateCheckerHook } from "./hook";
|
|
4
|
+
export type { AutoUpdateCheckerOptions, UpdateCheckResult } from "./types";
|
|
5
|
+
export { extractChannel, isDistTag, isPrereleaseOrDistTag, isPrereleaseVersion, } from "./version-channel";
|
|
@@ -8,7 +8,7 @@ export declare function processWithCli(input: {
|
|
|
8
8
|
}, pendingCall: PendingCall, output: {
|
|
9
9
|
output: string;
|
|
10
10
|
}, cliPath: string, customPrompt: string | undefined, debugLog: (...args: unknown[]) => void): Promise<void>;
|
|
11
|
-
|
|
11
|
+
interface ApplyPatchEdit {
|
|
12
12
|
filePath: string;
|
|
13
13
|
before: string;
|
|
14
14
|
after: string;
|
|
@@ -17,3 +17,4 @@ export declare function processApplyPatchEditsWithCli(sessionID: string, edits:
|
|
|
17
17
|
output: string;
|
|
18
18
|
}, cliPath: string, customPrompt: string | undefined, debugLog: (...args: unknown[]) => void): Promise<void>;
|
|
19
19
|
export declare function isCliPathUsable(cliPath: string | null): cliPath is string;
|
|
20
|
+
export {};
|
|
@@ -12,11 +12,6 @@ export declare function getBinaryName(): string;
|
|
|
12
12
|
* Get the cached binary path if it exists.
|
|
13
13
|
*/
|
|
14
14
|
export declare function getCachedBinaryPath(): string | null;
|
|
15
|
-
/**
|
|
16
|
-
* Download the comment-checker binary from GitHub Releases.
|
|
17
|
-
* Returns the path to the downloaded binary, or null on failure.
|
|
18
|
-
*/
|
|
19
|
-
export declare function downloadCommentChecker(): Promise<string | null>;
|
|
20
15
|
/**
|
|
21
16
|
* Ensure the comment-checker binary is available.
|
|
22
17
|
* First checks cache, then downloads if needed.
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
export type CommentType = "line" | "block" | "docstring";
|
|
2
|
-
export interface CommentInfo {
|
|
3
|
-
text: string;
|
|
4
|
-
lineNumber: number;
|
|
5
|
-
filePath: string;
|
|
6
|
-
commentType: CommentType;
|
|
7
|
-
isDocstring: boolean;
|
|
8
|
-
metadata?: Record<string, string>;
|
|
9
|
-
}
|
|
10
1
|
export interface PendingCall {
|
|
11
2
|
filePath: string;
|
|
12
3
|
content?: string;
|
|
@@ -20,12 +11,3 @@ export interface PendingCall {
|
|
|
20
11
|
sessionID: string;
|
|
21
12
|
timestamp: number;
|
|
22
13
|
}
|
|
23
|
-
export interface FileComments {
|
|
24
|
-
filePath: string;
|
|
25
|
-
comments: CommentInfo[];
|
|
26
|
-
}
|
|
27
|
-
export interface FilterResult {
|
|
28
|
-
shouldSkip: boolean;
|
|
29
|
-
reason?: string;
|
|
30
|
-
}
|
|
31
|
-
export type CommentFilter = (comment: CommentInfo) => FilterResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { DelegateTaskErrorPattern, DetectedError } from "./patterns";
|
|
2
|
-
export { DELEGATE_TASK_ERROR_PATTERNS, detectDelegateTaskError } from "./patterns";
|
|
3
1
|
export { buildRetryGuidance } from "./guidance";
|
|
4
2
|
export { createDelegateTaskRetryHook } from "./hook";
|
|
3
|
+
export type { DelegateTaskErrorPattern, DetectedError } from "./patterns";
|
|
4
|
+
export { DELEGATE_TASK_ERROR_PATTERNS, detectDelegateTaskError } from "./patterns";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const HOOK_NAME = "design-intent-preserver";
|
|
2
|
+
export declare const PLANS_DIR = ".matrixx/plans";
|
|
3
|
+
export declare const PHASE_TRANSITION_PATTERN: RegExp;
|
|
4
|
+
export declare const CONSTRUCT_INDICATORS: RegExp;
|
|
5
|
+
export declare const IDEMPOTENCY_MARKER = "<design-intent-preservation>";
|
|
6
|
+
export declare const INTENT_PRESERVATION_BLOCK = "<design-intent-preservation>\nThe previous phase included @construct / @web-designer / @frontend-ui-ux work. Visual decisions are FROZEN:\n- Layout, rhythm, hierarchy, motion, spacing, color\n- Affordances, responsiveness, component feel\nRoute ANY visual / responsive / motion / polish changes back to @construct or @web-designer.\nUse @source only for bounded mechanical follow-up that preserves design exactly\n(wiring, tests, type fixes, non-visual behavior).\nIf design intent must change, record why in .matrixx/drafts/design-changes.md first.\n</design-intent-preservation>";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import { type MessagePart } from "./phase-detector";
|
|
3
|
+
type ChatMessageInput = {
|
|
4
|
+
sessionID: string;
|
|
5
|
+
agent?: string;
|
|
6
|
+
model?: {
|
|
7
|
+
providerID: string;
|
|
8
|
+
modelID: string;
|
|
9
|
+
};
|
|
10
|
+
messageID?: string;
|
|
11
|
+
};
|
|
12
|
+
type ChatMessageOutput = {
|
|
13
|
+
message: Record<string, unknown>;
|
|
14
|
+
parts: MessagePart[];
|
|
15
|
+
};
|
|
16
|
+
export declare function createDesignIntentPreserverHook(_ctx: PluginInput): {
|
|
17
|
+
"chat.message": (input: ChatMessageInput, output: ChatMessageOutput) => Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createDesignIntentPreserverHook } from "./hook";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type MessagePart = {
|
|
2
|
+
type: string;
|
|
3
|
+
text?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function extractPromptText(parts: MessagePart[]): string;
|
|
6
|
+
export declare function hasPhaseTransition(text: string): boolean;
|
|
7
|
+
export declare function findMostRecentPlanFile(plansDir: string): string | null;
|
|
8
|
+
export declare function planHasConstruct(filePath: string): boolean;
|
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
interface ToolExecuteInput {
|
|
3
|
-
tool: string;
|
|
4
|
-
sessionID: string;
|
|
5
|
-
callID: string;
|
|
6
|
-
}
|
|
7
|
-
interface ToolExecuteOutput {
|
|
8
|
-
title: string;
|
|
9
|
-
output: string;
|
|
10
|
-
metadata: unknown;
|
|
11
|
-
}
|
|
12
|
-
interface ToolExecuteBeforeOutput {
|
|
13
|
-
args: unknown;
|
|
14
|
-
}
|
|
15
|
-
interface EventInput {
|
|
16
|
-
event: {
|
|
17
|
-
type: string;
|
|
18
|
-
properties?: unknown;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
2
|
export declare function createDirectoryAgentsInjectorHook(ctx: PluginInput): {
|
|
22
|
-
"tool.execute.before": (input: ToolExecuteInput, output: ToolExecuteBeforeOutput) => Promise<void>;
|
|
23
|
-
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
|
24
|
-
event: ({ event }: EventInput) => Promise<void>;
|
|
3
|
+
"tool.execute.before": (input: import("../directory-injector/factory").ToolExecuteInput, output: import("../directory-injector/factory").ToolExecuteBeforeOutput) => Promise<void>;
|
|
4
|
+
"tool.execute.after": (input: import("../directory-injector/factory").ToolExecuteInput, output: import("../directory-injector/factory").ToolExecuteOutput) => Promise<void>;
|
|
5
|
+
event: ({ event }: import("../directory-injector/factory").EventInput) => Promise<void>;
|
|
25
6
|
};
|
|
26
|
-
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import { createDynamicTruncator } from "../../shared/dynamic-truncator";
|
|
3
|
+
export interface ToolExecuteInput {
|
|
4
|
+
tool: string;
|
|
5
|
+
sessionID: string;
|
|
6
|
+
callID: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ToolExecuteOutput {
|
|
9
|
+
title: string;
|
|
10
|
+
output: string;
|
|
11
|
+
metadata: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface ToolExecuteBeforeOutput {
|
|
14
|
+
args: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface EventInput {
|
|
17
|
+
event: {
|
|
18
|
+
type: string;
|
|
19
|
+
properties?: unknown;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
type DynamicTruncator = ReturnType<typeof createDynamicTruncator>;
|
|
23
|
+
type ProcessFileFunction = (input: {
|
|
24
|
+
ctx: PluginInput;
|
|
25
|
+
truncator: DynamicTruncator;
|
|
26
|
+
sessionCaches: Map<string, Set<string>>;
|
|
27
|
+
filePath: string;
|
|
28
|
+
sessionID: string;
|
|
29
|
+
output: {
|
|
30
|
+
title: string;
|
|
31
|
+
output: string;
|
|
32
|
+
metadata: unknown;
|
|
33
|
+
};
|
|
34
|
+
}) => Promise<void>;
|
|
35
|
+
export declare function createDirectoryInjectorHook(ctx: PluginInput, processFile: ProcessFileFunction, clearInjectedPaths: (sessionID: string) => void): {
|
|
36
|
+
"tool.execute.before": (input: ToolExecuteInput, output: ToolExecuteBeforeOutput) => Promise<void>;
|
|
37
|
+
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
|
38
|
+
event: ({ event }: EventInput) => Promise<void>;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createDirectoryInjectorHook } from "./factory";
|
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
interface ToolExecuteInput {
|
|
3
|
-
tool: string;
|
|
4
|
-
sessionID: string;
|
|
5
|
-
callID: string;
|
|
6
|
-
}
|
|
7
|
-
interface ToolExecuteOutput {
|
|
8
|
-
title: string;
|
|
9
|
-
output: string;
|
|
10
|
-
metadata: unknown;
|
|
11
|
-
}
|
|
12
|
-
interface ToolExecuteBeforeOutput {
|
|
13
|
-
args: unknown;
|
|
14
|
-
}
|
|
15
|
-
interface EventInput {
|
|
16
|
-
event: {
|
|
17
|
-
type: string;
|
|
18
|
-
properties?: unknown;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
2
|
export declare function createDirectoryReadmeInjectorHook(ctx: PluginInput): {
|
|
22
|
-
"tool.execute.before": (input: ToolExecuteInput, output: ToolExecuteBeforeOutput) => Promise<void>;
|
|
23
|
-
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
|
24
|
-
event: ({ event }: EventInput) => Promise<void>;
|
|
3
|
+
"tool.execute.before": (input: import("../directory-injector/factory").ToolExecuteInput, output: import("../directory-injector/factory").ToolExecuteBeforeOutput) => Promise<void>;
|
|
4
|
+
"tool.execute.after": (input: import("../directory-injector/factory").ToolExecuteInput, output: import("../directory-injector/factory").ToolExecuteOutput) => Promise<void>;
|
|
5
|
+
event: ({ event }: import("../directory-injector/factory").EventInput) => Promise<void>;
|
|
25
6
|
};
|
|
26
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface EnvFileWriteGuardOptions {
|
|
2
2
|
enabled?: boolean;
|
|
3
3
|
blocked_patterns?: string[];
|
|
4
4
|
allowed_paths?: string[];
|
|
@@ -12,3 +12,4 @@ export declare function createEnvFileWriteGuardHook(config?: EnvFileWriteGuardOp
|
|
|
12
12
|
args: Record<string, unknown>;
|
|
13
13
|
}) => Promise<void>;
|
|
14
14
|
};
|
|
15
|
+
export {};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,53 +1,55 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
1
|
+
export { createAgentUsageReminderHook } from "./agent-usage-reminder";
|
|
2
|
+
export { type AnthropicContextWindowLimitRecoveryOptions, createAnthropicContextWindowLimitRecoveryHook } from "./anthropic-context-window-limit-recovery";
|
|
3
|
+
export { createArchitectHook } from "./architect";
|
|
4
|
+
export { createAutoSlashCommandHook } from "./auto-slash-command";
|
|
5
|
+
export { createAutoUpdateCheckerHook } from "./auto-update-checker";
|
|
6
|
+
export { createBackgroundNotificationHook } from "./background-notification";
|
|
7
|
+
export { createBashFileReadGuardHook } from "./bash-file-read-guard";
|
|
8
|
+
export { createCategorySkillReminderHook } from "./category-skill-reminder";
|
|
9
9
|
export { createCommentCheckerHooks } from "./comment-checker";
|
|
10
|
-
export {
|
|
10
|
+
export { createCompactionContextInjector } from "./compaction-context-injector";
|
|
11
|
+
export { createCompactionTodoPreserverHook } from "./compaction-todo-preserver";
|
|
12
|
+
export { createContextWindowMonitorHook } from "./context-window-monitor";
|
|
13
|
+
export { createDelegateTaskRetryHook } from "./delegate-task-retry";
|
|
14
|
+
export { createDesignIntentPreserverHook } from "./design-intent-preserver";
|
|
11
15
|
export { createDirectoryAgentsInjectorHook } from "./directory-agents-injector";
|
|
12
16
|
export { createDirectoryReadmeInjectorHook } from "./directory-readme-injector";
|
|
17
|
+
export { createEditErrorRecoveryHook } from "./edit-error-recovery";
|
|
13
18
|
export { createEmptyTaskResponseDetectorHook } from "./empty-task-response-detector";
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export { createRulesInjectorHook } from "./rules-injector";
|
|
18
|
-
export { createBackgroundNotificationHook } from "./background-notification";
|
|
19
|
-
export { createAutoUpdateCheckerHook } from "./auto-update-checker";
|
|
20
|
-
export { createAgentUsageReminderHook } from "./agent-usage-reminder";
|
|
21
|
-
export { createKeywordDetectorHook } from "./keyword-detector";
|
|
22
|
-
export { createNonInteractiveEnvHook } from "./non-interactive-env";
|
|
19
|
+
export { createEnvFileWriteGuardHook } from "./env-file-write-guard";
|
|
20
|
+
export { createHashlineEditDiffEnhancerHook } from "./hashline-edit-diff-enhancer";
|
|
21
|
+
export { createHashlineReadEnhancerHook } from "./hashline-read-enhancer";
|
|
23
22
|
export { createInteractiveBashSessionHook } from "./interactive-bash-session";
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
23
|
+
export { createJsonErrorRecoveryHook } from "./json-error-recovery";
|
|
24
|
+
export { createKeywordDetectorHook } from "./keyword-detector";
|
|
26
25
|
export { createMatrixLoopHook, type MatrixLoopHook } from "./matrix-loop";
|
|
27
|
-
export { createAutoSlashCommandHook } from "./auto-slash-command";
|
|
28
|
-
export { createEditErrorRecoveryHook } from "./edit-error-recovery";
|
|
29
|
-
export { createOracleMdOnlyHook } from "./prometheus-md-only";
|
|
30
26
|
export { createMouseNotepadHook } from "./mouse-notepad";
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
27
|
+
export { createNonInteractiveEnvHook } from "./non-interactive-env";
|
|
28
|
+
export { createPreemptiveCompactionHook } from "./preemptive-compaction";
|
|
29
|
+
export { createOracleMdOnlyHook } from "./prometheus-md-only";
|
|
30
|
+
export { createQualityGateHook } from "./quality-gate/hook";
|
|
35
31
|
export { createQuestionLabelTruncatorHook } from "./question-label-truncator";
|
|
32
|
+
export { createReadImageResizerHook } from "./read-image-resizer";
|
|
33
|
+
export { createRulesInjectorHook } from "./rules-injector";
|
|
34
|
+
export { createRuntimeFallbackHook, type RuntimeFallbackHook, type RuntimeFallbackOptions, SessionCategoryRegistry } from "./runtime-fallback";
|
|
35
|
+
export { createSecretLeakGuardHook } from "./secret-leak-guard";
|
|
36
|
+
export { createSessionNotification } from "./session-notification";
|
|
37
|
+
export { buildWindowsToastScript, escapeAppleScriptText, escapePowerShellSingleQuotedText } from "./session-notification-formatting";
|
|
38
|
+
export { createIdleNotificationScheduler } from "./session-notification-scheduler";
|
|
39
|
+
export { detectPlatform, getDefaultSoundPath, playSessionNotificationSound, sendSessionNotification } from "./session-notification-sender";
|
|
40
|
+
export { createSessionRecoveryHook, type SessionRecoveryHook, type SessionRecoveryOptions } from "./session-recovery";
|
|
41
|
+
export { hasIncompleteTodos } from "./session-todo-status";
|
|
42
|
+
export { createStartWorkHook } from "./start-work";
|
|
36
43
|
export { createStopContinuationGuardHook, type StopContinuationGuard } from "./stop-continuation-guard";
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export { createUnstableAgentBabysitterHook } from "./unstable-agent-babysitter";
|
|
40
|
-
export { createPreemptiveCompactionHook } from "./preemptive-compaction";
|
|
44
|
+
export { createTaskNotepadHook } from "./task-notepad";
|
|
45
|
+
export { createTaskResumeInfoHook } from "./task-resume-info";
|
|
41
46
|
export { createTasksTodowriteDisablerHook } from "./tasks-todowrite-disabler";
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export { createEnvFileWriteGuardHook } from "./env-file-write-guard";
|
|
46
|
-
export { createJsonErrorRecoveryHook } from "./json-error-recovery";
|
|
47
|
-
export { createBashFileReadGuardHook } from "./bash-file-read-guard";
|
|
47
|
+
export { createThinkModeHook } from "./think-mode";
|
|
48
|
+
export { createThinkingBlockValidatorHook } from "./thinking-block-validator";
|
|
49
|
+
export { createTodoContinuationEnforcer, type TodoContinuationEnforcer } from "./todo-continuation-enforcer";
|
|
48
50
|
export { createTodoDescriptionOverrideHook } from "./todo-description-override";
|
|
49
|
-
export {
|
|
50
|
-
export { createRuntimeFallbackHook, type RuntimeFallbackHook, type RuntimeFallbackOptions, SessionCategoryRegistry } from "./runtime-fallback";
|
|
51
|
-
export { createWebFetchRedirectGuardHook } from "./webfetch-redirect-guard";
|
|
52
|
-
export { createHashlineEditDiffEnhancerHook } from "./hashline-edit-diff-enhancer";
|
|
51
|
+
export { createToolOutputTruncatorHook } from "./tool-output-truncator";
|
|
53
52
|
export { createToolPairValidatorHook } from "./tool-pair-validator";
|
|
53
|
+
export { createUnstableAgentBabysitterHook } from "./unstable-agent-babysitter";
|
|
54
|
+
export { createWebFetchRedirectGuardHook } from "./webfetch-redirect-guard";
|
|
55
|
+
export { createWriteExistingFileGuardHook } from "./write-existing-file-guard";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export declare function tokenizeCommand(cmd: string): string[];
|
|
6
6
|
/**
|
|
7
7
|
* Normalize session name by stripping :window and .pane suffixes
|
|
8
|
-
* e.g., "
|
|
8
|
+
* e.g., "matrixx-x:1" -> "matrixx-x", "matrixx-x:1.2" -> "matrixx-x"
|
|
9
9
|
*/
|
|
10
10
|
export declare function normalizeSessionName(name: string): string;
|
|
11
11
|
export declare function findFlagValue(tokens: string[], flag: string): string | null;
|
|
@@ -18,7 +18,7 @@ export declare function extractSessionNameFromTokens(tokens: string[], subComman
|
|
|
18
18
|
/**
|
|
19
19
|
* Find the tmux subcommand from tokens, skipping global options.
|
|
20
20
|
* tmux allows global options before the subcommand:
|
|
21
|
-
* e.g., `tmux -L socket-name new-session -s
|
|
21
|
+
* e.g., `tmux -L socket-name new-session -s matrixx-x`
|
|
22
22
|
* Global options with args: -L, -S, -f, -c, -T
|
|
23
23
|
* Standalone flags: -C, -v, -V, etc.
|
|
24
24
|
* Special: -- (end of options marker)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createJsonErrorRecoveryHook,
|
|
1
|
+
export { createJsonErrorRecoveryHook, JSON_ERROR_PATTERNS, JSON_ERROR_REMINDER, JSON_ERROR_TOOL_EXCLUDE_LIST, } from "./hook";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ANALYZE_MESSAGE, ANALYZE_PATTERN } from "./default";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export type KeywordDetector = {
|
|
1
|
+
export { CODE_BLOCK_PATTERN, INLINE_CODE_PATTERN } from "../../shared";
|
|
2
|
+
export { ANALYZE_MESSAGE, ANALYZE_PATTERN } from "./analyze";
|
|
3
|
+
export { SEARCH_MESSAGE, SEARCH_PATTERN } from "./search";
|
|
4
|
+
export { getUltraworkMessage, isPlannerAgent } from "./ultrawork";
|
|
5
|
+
type KeywordDetector = {
|
|
7
6
|
pattern: RegExp;
|
|
8
7
|
message: string | ((agentName?: string, modelID?: string) => string);
|
|
9
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
interface DetectedKeyword {
|
|
2
2
|
type: "ultrawork" | "search" | "analyze";
|
|
3
3
|
message: string;
|
|
4
4
|
}
|
|
5
5
|
export declare function removeCodeBlocks(text: string): string;
|
|
6
|
-
export declare function detectKeywords(text: string, agentName?: string, modelID?: string): string[];
|
|
7
6
|
export declare function detectKeywordsWithType(text: string, agentName?: string, modelID?: string): DetectedKeyword[];
|
|
8
7
|
export declare function extractPromptText(parts: Array<{
|
|
9
8
|
type: string;
|
|
10
9
|
text?: string;
|
|
11
10
|
}>): string;
|
|
11
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SEARCH_MESSAGE, SEARCH_PATTERN } from "./default";
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* 2. GPT 5.2 models → gpt5.2.ts
|
|
7
7
|
* 3. Default (Claude, etc.) → default.ts (optimized for Claude series)
|
|
8
8
|
*/
|
|
9
|
-
export {
|
|
9
|
+
export { getDefaultUltraworkMessage, ULTRAWORK_DEFAULT_MESSAGE } from "./default";
|
|
10
|
+
export { getGptUltraworkMessage, ULTRAWORK_GPT_MESSAGE } from "./gpt5.2";
|
|
11
|
+
export { getPlannerUltraworkMessage, ULTRAWORK_PLANNER_SECTION } from "./planner";
|
|
10
12
|
export type { UltraworkSource } from "./source-detector";
|
|
11
|
-
export {
|
|
12
|
-
export { ULTRAWORK_GPT_MESSAGE, getGptUltraworkMessage } from "./gpt5.2";
|
|
13
|
-
export { ULTRAWORK_DEFAULT_MESSAGE, getDefaultUltraworkMessage } from "./default";
|
|
13
|
+
export { getUltraworkSource, isGptModel, isPlannerAgent } from "./source-detector";
|
|
14
14
|
/**
|
|
15
15
|
* Gets the appropriate ultrawork message based on agent and model context.
|
|
16
16
|
*/
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
export interface OpenCodeSessionMessage {
|
|
3
|
+
info?: {
|
|
4
|
+
role?: string;
|
|
5
|
+
};
|
|
6
|
+
parts?: Array<{
|
|
7
|
+
type: string;
|
|
8
|
+
text?: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
2
11
|
export declare function detectCompletionInTranscript(transcriptPath: string | undefined, promise: string): boolean;
|
|
3
12
|
export declare function detectCompletionInSessionMessages(ctx: PluginInput, options: {
|
|
4
13
|
sessionID: string;
|
|
5
14
|
promise: string;
|
|
6
15
|
apiTimeoutMs: number;
|
|
7
16
|
directory: string;
|
|
17
|
+
preFetchedMessages?: OpenCodeSessionMessage[];
|
|
8
18
|
}): Promise<boolean>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
|
|
2
|
+
import type { OpenCodeSessionMessage } from "./completion-promise-detector";
|
|
3
|
+
interface VerificationResult {
|
|
3
4
|
verified: boolean;
|
|
4
5
|
reason?: string;
|
|
5
6
|
}
|
|
@@ -12,4 +13,6 @@ export declare function verifyCompletion(ctx: PluginInput, options: {
|
|
|
12
13
|
agent?: string;
|
|
13
14
|
timeoutMs?: number;
|
|
14
15
|
pollIntervalMs?: number;
|
|
16
|
+
preFetchedMessages?: OpenCodeSessionMessage[];
|
|
15
17
|
}): Promise<VerificationResult>;
|
|
18
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const HOOK_NAME = "matrix-loop";
|
|
2
2
|
export declare const DEFAULT_STATE_FILE = ".matrixx/matrix-loop.local.md";
|
|
3
|
-
export declare const COMPLETION_TAG_PATTERN: RegExp;
|
|
4
3
|
export declare const DEFAULT_MAX_ITERATIONS = 100;
|
|
5
4
|
export declare const DEFAULT_COMPLETION_PROMISE = "DONE";
|
|
6
5
|
export declare const DEFAULT_VERIFICATION_AGENT = "merovingian";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./types";
|
|
2
1
|
export * from "./constants";
|
|
3
|
-
export { readState, writeState, clearState, incrementIteration } from "./storage";
|
|
4
|
-
export { createMatrixLoopHook } from "./matrix-loop-hook";
|
|
5
2
|
export type { MatrixLoopHook } from "./matrix-loop-hook";
|
|
3
|
+
export { createMatrixLoopHook } from "./matrix-loop-hook";
|
|
4
|
+
export { clearState, incrementIteration, readState, writeState } from "./storage";
|
|
5
|
+
export * from "./types";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { MatrixLoopState } from "./types";
|
|
2
|
-
export declare function getStateFilePath(directory: string, customPath?: string): string;
|
|
3
2
|
export declare function readState(directory: string, customPath?: string): MatrixLoopState | null;
|
|
4
3
|
export declare function writeState(directory: string, state: MatrixLoopState, customPath?: string): boolean;
|
|
5
4
|
export declare function clearState(directory: string, customPath?: string): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const HOOK_NAME = "
|
|
1
|
+
export declare const HOOK_NAME = "mouse-notepad";
|
|
2
2
|
export declare const NOTEPAD_DIRECTIVE = "\n<Work_Context>\n## Notepad Location (for recording learnings)\nNOTEPAD PATH: .matrixx/notepads/{plan-name}/\n- learnings.md: Record patterns, conventions, successful approaches\n- issues.md: Record problems, blockers, gotchas encountered\n- decisions.md: Record architectural choices and rationales\n- problems.md: Record unresolved issues, technical debt\n\nYou SHOULD append findings to notepad files after completing work.\nIMPORTANT: Always APPEND to notepad files - never overwrite or use Edit tool.\n\n## Plan Location (READ ONLY)\nPLAN PATH: .matrixx/plans/{plan-name}.md\n\nCRITICAL RULE: NEVER MODIFY THE PLAN FILE\n\nThe plan file (.matrixx/plans/*.md) is SACRED and READ-ONLY.\n- You may READ the plan to understand tasks\n- You may READ checkbox items to know what to do\n- You MUST NOT edit, modify, or update the plan file\n- You MUST NOT mark checkboxes as complete in the plan\n- Only the Orchestrator manages the plan file\n\nVIOLATION = IMMEDIATE FAILURE. The Orchestrator tracks plan state.\n</Work_Context>\n";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
export * from "./constants";
|
|
3
3
|
export * from "./detector";
|
|
4
|
-
export * from "./types";
|
|
5
4
|
export declare function createNonInteractiveEnvHook(_ctx: PluginInput): {
|
|
6
5
|
"tool.execute.before": (input: {
|
|
7
6
|
tool: string;
|
|
@@ -12,7 +12,7 @@ export interface CachedCompactionState {
|
|
|
12
12
|
modelID: string;
|
|
13
13
|
tokens: TokenInfo;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface PreemptiveCompactionClient {
|
|
16
16
|
session: {
|
|
17
17
|
messages: (input: {
|
|
18
18
|
path: {
|
|
@@ -51,3 +51,4 @@ export interface PreemptiveCompactionContext {
|
|
|
51
51
|
client: PreemptiveCompactionClient;
|
|
52
52
|
directory: string;
|
|
53
53
|
}
|
|
54
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const HOOK_NAME = "prometheus-md-only";
|
|
2
2
|
export declare const ORACLE_AGENT = "oracle";
|
|
3
3
|
export declare const ALLOWED_EXTENSIONS: string[];
|
|
4
|
-
export declare const ALLOWED_PATH_PREFIX = ".matrixx";
|
|
5
4
|
export declare const BLOCKED_TOOLS: string[];
|
|
6
5
|
export declare const PLANNING_CONSULT_WARNING: string;
|
|
7
6
|
export declare const PROMETHEUS_WORKFLOW_REMINDER: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function createQualityGateHook(): {
|
|
2
|
+
"tool.execute.before": (input: {
|
|
3
|
+
tool: string;
|
|
4
|
+
sessionID: string;
|
|
5
|
+
callID: string;
|
|
6
|
+
}, output: {
|
|
7
|
+
args: Record<string, unknown>;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
"tool.execute.after": (input: {
|
|
10
|
+
tool: string;
|
|
11
|
+
sessionID: string;
|
|
12
|
+
callID: string;
|
|
13
|
+
}, output: {
|
|
14
|
+
title: string;
|
|
15
|
+
output: string;
|
|
16
|
+
metadata: Record<string, unknown>;
|
|
17
|
+
}) => Promise<void>;
|
|
18
|
+
};
|