opencode-matrixx-v2 1.2.1 → 1.2.2
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 +11 -21
- package/dist/agents/agent-config.d.ts +3 -3
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +2 -1
- package/dist/agents/oracle/system-prompt.d.ts +1 -1
- package/dist/cli.js +123 -105
- package/dist/config/schema/agent-names.d.ts +31 -13
- package/dist/config/schema/browser-automation.d.ts +2 -2
- package/dist/config/schema/context-mode.d.ts +1 -1
- package/dist/config/schema/hooks.d.ts +1 -2
- package/dist/config/schema/matrixx-config.d.ts +34 -17
- package/dist/features/background-agent/handle-index.d.ts +3 -3
- package/dist/features/background-agent/index.d.ts +6 -0
- package/dist/features/background-agent/manager/index.d.ts +5 -0
- package/dist/features/background-agent/manager/lifecycle.d.ts +29 -0
- package/dist/features/background-agent/{manager.d.ts → manager/manager.d.ts} +27 -97
- package/dist/features/background-agent/manager/reconcile.d.ts +20 -0
- package/dist/features/background-agent/manager/store.d.ts +33 -0
- package/dist/features/background-agent/manager/types.d.ts +42 -0
- package/dist/features/background-agent/message-dir.d.ts +1 -1
- package/dist/features/background-agent/notification-builder.d.ts +1 -1
- package/dist/features/background-agent/session-output.d.ts +2 -2
- package/dist/features/bdd/index.d.ts +2 -0
- package/dist/features/builtin-commands/index.d.ts +4 -0
- package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -1
- package/dist/features/{hook-message-injector → context-injection/hook-bridge}/constants.d.ts +1 -1
- package/dist/features/{hook-message-injector → context-injection/hook-bridge}/index.d.ts +1 -1
- package/dist/features/{hook-message-injector → context-injection/hook-bridge}/injector.d.ts +1 -1
- package/dist/features/context-injection/index.d.ts +6 -0
- package/dist/features/context-injection/routing/index.d.ts +3 -0
- package/dist/features/{context-mode-routing → context-injection/routing}/system-transform.d.ts +3 -3
- package/dist/features/evolution/index.d.ts +6 -0
- package/dist/features/plan-contract/schema.d.ts +1 -1
- package/dist/features/preset-state/index.d.ts +2 -0
- package/dist/features/rtk-routing/index.d.ts +3 -0
- package/dist/features/rtk-routing/system-transform.d.ts +2 -2
- package/dist/features/session-state/index.d.ts +2 -0
- package/dist/{hooks/task-continuation-enforcer → features/task-session-scope}/staleness.d.ts +3 -3
- package/dist/{hooks/task-continuation-enforcer → features/task-session-scope}/todo.d.ts +1 -1
- package/dist/features/task-storage/index.d.ts +3 -0
- package/dist/features/task-storage/types.d.ts +2 -2
- package/dist/features/task-toast-manager/types.d.ts +1 -1
- package/dist/hooks/agent-usage-reminder/hook.d.ts +1 -1
- package/dist/hooks/agent-usage-reminder/index.d.ts +5 -0
- package/dist/hooks/anthropic-effort/index.d.ts +2 -0
- package/dist/hooks/auto-update-checker/hook/background-update-check.d.ts +1 -1
- package/dist/hooks/auto-update-checker/hook/config-errors-toast.d.ts +1 -1
- package/dist/hooks/auto-update-checker/hook/connected-providers-status.d.ts +1 -1
- package/dist/hooks/auto-update-checker/hook/model-cache-warning.d.ts +1 -1
- package/dist/hooks/auto-update-checker/hook/spinner-toast.d.ts +1 -1
- package/dist/hooks/auto-update-checker/hook/startup-toasts.d.ts +1 -1
- package/dist/hooks/auto-update-checker/hook/update-toasts.d.ts +1 -1
- package/dist/hooks/auto-update-checker/hook.d.ts +1 -1
- package/dist/hooks/background-notification/hook.d.ts +1 -1
- package/dist/hooks/background-notification/index.d.ts +9 -0
- package/dist/hooks/background-task-blocker/index.d.ts +8 -0
- package/dist/hooks/bash-file-read-guard.d.ts +1 -1
- package/dist/hooks/category-skill-reminder/hook.d.ts +2 -2
- package/dist/hooks/category-skill-reminder/index.d.ts +4 -0
- package/dist/hooks/comment-checker/index.d.ts +7 -0
- package/dist/hooks/compaction-context-injector/index.d.ts +2 -0
- package/dist/hooks/context-mode-enforcer/constants.d.ts +1 -1
- package/dist/hooks/context-mode-enforcer/hook.d.ts +1 -1
- package/dist/hooks/context-mode-enforcer/index.d.ts +4 -0
- package/dist/hooks/context-window-limit-recovery/client.d.ts +1 -1
- package/dist/hooks/context-window-limit-recovery/message-builder.d.ts +1 -1
- package/dist/hooks/context-window-limit-recovery/recovery-hook.d.ts +2 -2
- package/dist/hooks/context-window-monitor.d.ts +2 -2
- package/dist/hooks/dcp-nudge-sanitizer/hook.d.ts +1 -1
- package/dist/hooks/dcp-nudge-sanitizer/index.d.ts +3 -0
- package/dist/hooks/delegate-task-retry/hook.d.ts +1 -1
- package/dist/hooks/delegate-task-retry/index.d.ts +4 -0
- package/dist/hooks/design-intent-preserver/hook.d.ts +1 -1
- package/dist/hooks/design-intent-preserver/index.d.ts +4 -0
- package/dist/hooks/directory-agents-injector/hook.d.ts +2 -2
- package/dist/hooks/directory-agents-injector/index.d.ts +5 -0
- package/dist/hooks/directory-agents-injector/injector.d.ts +2 -2
- package/dist/hooks/directory-injector/factory.d.ts +2 -2
- package/dist/hooks/docs-lookup-guard/hook.d.ts +2 -2
- package/dist/hooks/docs-lookup-guard/index.d.ts +3 -0
- package/dist/hooks/document-reader-guard/hook.d.ts +2 -2
- package/dist/hooks/document-reader-guard/index.d.ts +3 -0
- package/dist/hooks/domain-keyword-detector/hook.d.ts +1 -1
- package/dist/hooks/edit-error-recovery/hook.d.ts +1 -1
- package/dist/hooks/edit-error-recovery/index.d.ts +2 -0
- package/dist/hooks/empty-task-response-detector.d.ts +1 -1
- package/dist/hooks/env-context-injector/flat.d.ts +1 -1
- package/dist/hooks/env-context-injector/index.d.ts +1 -1
- package/dist/hooks/env-file-write-guard/index.d.ts +3 -0
- package/dist/hooks/evolution-compressor/host-llm-call.d.ts +1 -1
- package/dist/hooks/evolution-compressor/index.d.ts +8 -0
- package/dist/hooks/evolution-hitl/index.d.ts +6 -0
- package/dist/hooks/evolution-quality-gate/index.d.ts +6 -0
- package/dist/hooks/evolution-watcher/index.d.ts +7 -1
- package/dist/hooks/hashline-read-enhancer/hook.d.ts +1 -1
- package/dist/hooks/hashline-read-enhancer/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/input-secret-guard/hook.d.ts +1 -1
- package/dist/hooks/input-secret-guard/index.d.ts +5 -0
- package/dist/hooks/interactive-bash-session/hook.d.ts +2 -2
- package/dist/hooks/interactive-bash-session/index.d.ts +7 -0
- package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
- package/dist/hooks/keyword-detector/constants.d.ts +1 -1
- package/dist/hooks/keyword-detector/hook.d.ts +2 -2
- package/dist/hooks/keyword-detector/index.d.ts +4 -0
- package/dist/hooks/knowledge-hub-guard/hook.d.ts +1 -1
- package/dist/hooks/knowledge-hub-guard/index.d.ts +3 -0
- package/dist/hooks/knowledge-hub-injector/hook.d.ts +3 -3
- package/dist/hooks/knowledge-hub-injector/index.d.ts +2 -0
- package/dist/hooks/knowledge-hub-search-nudge/hook.d.ts +1 -1
- package/dist/hooks/knowledge-hub-search-nudge/index.d.ts +2 -0
- package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +2 -2
- package/dist/hooks/matrix-loop/completion-verifier.d.ts +1 -1
- package/dist/hooks/matrix-loop/continuation-prompt-injector.d.ts +1 -1
- package/dist/hooks/matrix-loop/index.d.ts +12 -0
- package/dist/hooks/matrix-loop/matrix-loop-event-handler.d.ts +2 -2
- package/dist/hooks/matrix-loop/matrix-loop-hook.d.ts +2 -2
- package/dist/hooks/mouse-notepad/hook.d.ts +1 -1
- package/dist/hooks/mouse-notepad/index.d.ts +3 -0
- package/dist/hooks/niobe/event-handler.d.ts +2 -2
- package/dist/hooks/niobe/index.d.ts +16 -0
- package/dist/hooks/niobe/mission-continuation-injector.d.ts +1 -1
- package/dist/hooks/niobe/niobe-hook.d.ts +2 -2
- package/dist/hooks/niobe/recent-model-resolver.d.ts +1 -1
- package/dist/hooks/niobe/session-last-agent.d.ts +1 -1
- package/dist/hooks/niobe/tool-execute-after.d.ts +1 -1
- package/dist/hooks/niobe/tool-execute-before.d.ts +1 -1
- package/dist/hooks/non-interactive-env/index.d.ts +4 -0
- package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +1 -1
- package/dist/hooks/nudge-loop-breaker/hook.d.ts +2 -2
- package/dist/hooks/nudge-loop-breaker/index.d.ts +4 -0
- package/dist/hooks/oracle-md-only/agent-resolution.d.ts +1 -1
- package/dist/hooks/oracle-md-only/hook.d.ts +1 -1
- package/dist/hooks/oracle-md-only/index.d.ts +6 -0
- package/dist/hooks/plan-persister/hook.d.ts +2 -2
- package/dist/hooks/post-read-injector/hook.d.ts +2 -2
- package/dist/hooks/post-read-injector/injector.d.ts +1 -1
- package/dist/hooks/quality-gate/index.d.ts +2 -0
- package/dist/hooks/read-image-resizer/hook.d.ts +1 -1
- package/dist/hooks/read-image-resizer/index.d.ts +6 -0
- package/dist/hooks/rtk-bash-rewriter/hook.d.ts +1 -1
- package/dist/hooks/rtk-bash-rewriter/index.d.ts +4 -0
- package/dist/hooks/rules-injector/hook.d.ts +2 -2
- package/dist/hooks/rules-injector/index.d.ts +14 -0
- package/dist/hooks/runtime-fallback/event-handler.d.ts +1 -1
- package/dist/hooks/runtime-fallback/session-messages.d.ts +2 -2
- package/dist/hooks/runtime-fallback/types.d.ts +2 -2
- package/dist/hooks/secret-leak-guard/hook.d.ts +1 -1
- package/dist/hooks/secret-leak-guard/index.d.ts +5 -0
- package/dist/hooks/session-memory/hook.d.ts +1 -1
- package/dist/hooks/session-notification-scheduler.d.ts +1 -1
- package/dist/hooks/session-notification-sender.d.ts +1 -1
- package/dist/hooks/session-notification.d.ts +2 -2
- package/dist/hooks/session-recovery/hook.d.ts +1 -1
- package/dist/hooks/session-recovery/recover-thinking-block-order.d.ts +1 -1
- package/dist/hooks/session-recovery/recover-thinking-disabled-violation.d.ts +1 -1
- package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +1 -1
- package/dist/hooks/session-recovery/resume.d.ts +1 -1
- package/dist/hooks/session-recovery/storage/empty-text.d.ts +1 -1
- package/dist/hooks/session-recovery/storage/messages-reader.d.ts +1 -1
- package/dist/hooks/session-recovery/storage/parts-reader.d.ts +1 -1
- package/dist/hooks/session-recovery/storage/text-part-injector.d.ts +1 -1
- package/dist/hooks/session-recovery/storage/thinking-prepend.d.ts +1 -1
- package/dist/hooks/session-recovery/storage/thinking-strip.d.ts +1 -1
- package/dist/hooks/session-recovery/storage.d.ts +1 -1
- package/dist/hooks/session-recovery/types.d.ts +2 -2
- package/dist/hooks/silent-failure-guard/hook.d.ts +1 -1
- package/dist/hooks/software-dev-enforcement/index.d.ts +3 -0
- package/dist/hooks/start-work/index.d.ts +3 -0
- package/dist/hooks/start-work/start-work-hook.d.ts +1 -1
- package/dist/hooks/stop-continuation-guard/hook.d.ts +2 -2
- package/dist/hooks/stop-continuation-guard/index.d.ts +2 -0
- package/dist/hooks/subagent-block/hook.d.ts +2 -2
- package/dist/hooks/subagent-block/index.d.ts +3 -0
- package/dist/hooks/task-edit-guard/hook.d.ts +2 -2
- package/dist/hooks/task-edit-guard/index.d.ts +3 -0
- package/dist/hooks/task-notepad-writer/index.d.ts +4 -0
- package/dist/hooks/task-notepad-writer/notepad-path.d.ts +1 -1
- package/dist/hooks/task-resume-info/index.d.ts +2 -0
- package/dist/hooks/think-mode/hook.d.ts +1 -1
- package/dist/hooks/thinking-block-validator/index.d.ts +3 -0
- package/dist/hooks/tool-output-truncator.d.ts +1 -1
- package/dist/hooks/tool-pair-validator/index.d.ts +2 -0
- package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +2 -2
- package/dist/hooks/webfetch-redirect-guard/hook.d.ts +1 -1
- package/dist/hooks/webfetch-redirect-guard/index.d.ts +4 -0
- package/dist/hooks/write-existing-file-guard/hook.d.ts +2 -2
- package/dist/hooks/write-existing-file-guard/index.d.ts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +45129 -45699
- package/dist/matrixx.schema.json +29 -8
- package/dist/{plugin-handlers → plugin/handlers}/agent-config-handler.d.ts +2 -2
- package/dist/{plugin-handlers → plugin/handlers}/category-config-resolver.d.ts +1 -1
- package/dist/{plugin-handlers → plugin/handlers}/command-config-handler.d.ts +1 -1
- package/dist/{plugin-handlers → plugin/handlers}/config-handler.d.ts +2 -2
- package/dist/{plugin-handlers → plugin/handlers}/mcp-config-handler.d.ts +1 -1
- package/dist/{plugin-handlers → plugin/handlers}/oracle-agent-config-builder.d.ts +3 -3
- package/dist/{plugin-handlers → plugin/handlers}/plugin-components-loader.d.ts +1 -1
- package/dist/{plugin-handlers → plugin/handlers}/provider-config-handler.d.ts +1 -1
- package/dist/{plugin-handlers → plugin/handlers}/task-permissions.d.ts +1 -1
- package/dist/{plugin-handlers → plugin/handlers}/tool-config-handler.d.ts +1 -1
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +3 -4
- package/dist/plugin/hooks/create-session-hooks.d.ts +1 -1
- package/dist/plugin/hooks/create-skill-hooks.d.ts +1 -1
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +1 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +3 -3
- package/dist/plugin/index.d.ts +43 -0
- package/dist/plugin/message-hooks/context-injector.d.ts +3 -3
- package/dist/plugin/message-hooks/dcp-nudge-sanitizer.d.ts +1 -1
- package/dist/plugin/message-hooks/domain-keyword-detector.d.ts +2 -2
- package/dist/plugin/message-hooks/env-context-injector.d.ts +1 -1
- package/dist/plugin/message-hooks/evolution-hitl.d.ts +1 -1
- package/dist/plugin/message-hooks/index.d.ts +2 -2
- package/dist/plugin/message-hooks/knowledge-hub-injector.d.ts +3 -3
- package/dist/plugin/message-hooks/thinking-block-validator.d.ts +1 -1
- package/dist/plugin/message-hooks/tool-pair-validator.d.ts +1 -1
- package/dist/plugin/setup-domains/assemble.d.ts +28 -0
- package/dist/plugin/setup-domains/hooks.d.ts +33 -0
- package/dist/plugin/setup-domains/index.d.ts +5 -0
- package/dist/plugin/setup-domains/managers.d.ts +15 -0
- package/dist/plugin/setup-domains/tools.d.ts +23 -0
- package/dist/plugin/setup-domains.d.ts +10 -86
- package/dist/plugin/tool/available-categories.d.ts +3 -0
- package/dist/plugin/{chat-message.d.ts → tool/chat-message.d.ts} +2 -2
- package/dist/plugin/{context.d.ts → tool/context.d.ts} +2 -2
- package/dist/plugin/{event.d.ts → tool/event.d.ts} +3 -3
- package/dist/plugin/tool/index.d.ts +22 -0
- package/dist/plugin/{legacy-hooks.d.ts → tool/legacy-hooks.d.ts} +1 -1
- package/dist/plugin/{native-context.d.ts → tool/native-context.d.ts} +1 -1
- package/dist/plugin/{session-agent-resolver.d.ts → tool/session-agent-resolver.d.ts} +1 -1
- package/dist/plugin/{skill-context.d.ts → tool/skill-context.d.ts} +4 -4
- package/dist/plugin/{tool-catalog.d.ts → tool/tool-catalog.d.ts} +4 -4
- package/dist/plugin/{tool-definition.d.ts → tool/tool-definition.d.ts} +2 -2
- package/dist/plugin/{tool-execute-after.d.ts → tool/tool-execute-after.d.ts} +1 -1
- package/dist/plugin/{tool-execute-before.d.ts → tool/tool-execute-before.d.ts} +2 -2
- package/dist/plugin/{unstable-agent-babysitter.d.ts → tool/unstable-agent-babysitter.d.ts} +3 -3
- package/dist/shared/{agent-variant.d.ts → agent/agent-variant.d.ts} +1 -1
- package/dist/shared/agent/index.d.ts +5 -0
- package/dist/shared/{context-limits.d.ts → compaction/context-limits.d.ts} +1 -1
- package/dist/shared/{dynamic-truncator.d.ts → compaction/dynamic-truncator.d.ts} +2 -2
- package/dist/shared/compaction/index.d.ts +7 -0
- package/dist/shared/config/index.d.ts +8 -0
- package/dist/shared/{task-system-gating.d.ts → config/task-system-gating.d.ts} +2 -2
- package/dist/shared/index.d.ts +63 -61
- package/dist/shared/io/index.d.ts +8 -0
- package/dist/shared/model/index.d.ts +7 -0
- package/dist/shared/{model-requirements.d.ts → model/model-requirements.d.ts} +1 -1
- package/dist/shared/{model-suggestion-retry.d.ts → model/model-suggestion-retry.d.ts} +1 -1
- package/dist/shared/opencode/index.d.ts +5 -0
- package/dist/shared/{memory-backend-detect.d.ts → opencode/memory-backend-detect.d.ts} +1 -1
- package/dist/shared/outcome/index.d.ts +5 -0
- package/dist/shared/{dcp-switch-profile.d.ts → policy/dcp-switch-profile.d.ts} +1 -1
- package/dist/shared/policy/index.d.ts +7 -0
- package/dist/shared/{injection-notifier.d.ts → policy/injection-notifier.d.ts} +1 -1
- package/dist/shared/{rtk-enforcement.d.ts → policy/rtk-enforcement.d.ts} +1 -1
- package/dist/shared/runtime/index.d.ts +7 -0
- package/dist/shared/session/index.d.ts +14 -0
- package/dist/shared/{session-context-source.d.ts → session/session-context-source.d.ts} +1 -1
- package/dist/shared/text/index.d.ts +7 -0
- package/dist/{tools/shared → shared/tool}/define-tool.d.ts +1 -1
- package/dist/shared/{disabled-tools.d.ts → tool/disabled-tools.d.ts} +1 -1
- package/dist/shared/tool/index.d.ts +6 -0
- package/dist/shared/{merge-categories.d.ts → tool/merge-categories.d.ts} +1 -1
- package/dist/skills/{skills → builtin/bdd}/bdd-backend.d.ts +1 -1
- package/dist/skills/{skills → builtin/bdd}/bdd-contract.d.ts +1 -1
- package/dist/skills/{skills → builtin/bdd}/bdd-frontend.d.ts +1 -1
- package/dist/skills/{skills → builtin/bdd}/bdd-tests.d.ts +1 -1
- package/dist/skills/builtin/bdd/index.d.ts +4 -0
- package/dist/skills/builtin/core/dev-browser.d.ts +2 -0
- package/dist/skills/builtin/core/docker-master/build.d.ts +1 -0
- package/dist/skills/builtin/core/docker-master/compose.d.ts +1 -0
- package/dist/skills/builtin/core/docker-master/delivery.d.ts +1 -0
- package/dist/skills/builtin/core/docker-master/index.d.ts +2 -0
- package/dist/skills/builtin/core/docker-master/reference.d.ts +1 -0
- package/dist/skills/{skills → builtin/core}/document-reader.d.ts +1 -1
- package/dist/skills/builtin/core/git-master/commit.d.ts +1 -0
- package/dist/skills/builtin/core/git-master/execution.d.ts +1 -0
- package/dist/skills/builtin/core/git-master/history.d.ts +1 -0
- package/dist/skills/builtin/core/git-master/index.d.ts +2 -0
- package/dist/skills/builtin/core/git-master/rebase.d.ts +1 -0
- package/dist/skills/builtin/core/index.d.ts +19 -0
- package/dist/skills/{skills → builtin/core}/matrixx-self-config.d.ts +1 -1
- package/dist/skills/{skills → builtin/core}/playwright-cli.d.ts +1 -1
- package/dist/skills/{skills → builtin/core}/playwright.d.ts +1 -1
- package/dist/skills/{skills → builtin/core}/python-asyncio.d.ts +1 -1
- package/dist/skills/builtin/core/quality-gate.d.ts +2 -0
- package/dist/skills/builtin/core/remove-ai-slops.d.ts +2 -0
- package/dist/skills/{skills → builtin/core}/resilience-error-taxonomy.d.ts +1 -1
- package/dist/skills/{skills → builtin/core}/resilience-failure-hunting.d.ts +1 -1
- package/dist/skills/builtin/core/review-work.d.ts +2 -0
- package/dist/skills/{skills → builtin/core}/silent-failure-detection.d.ts +1 -1
- package/dist/skills/builtin/core/software-dev.d.ts +2 -0
- package/dist/skills/{skills → builtin/core}/systematic-debugging.d.ts +1 -1
- package/dist/skills/builtin/core/tdd-enforcer.d.ts +2 -0
- package/dist/skills/{skills → builtin/core}/telegram-bot.d.ts +1 -1
- package/dist/skills/builtin/core/ulw-research.d.ts +2 -0
- package/dist/skills/{skills → builtin/dsl}/dsl-codegen.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-composition.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-core.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-grammar.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-metamodel.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-model-transformation.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-pyecore-advanced.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-testing.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-textx-ecosystem.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-tooling.d.ts +1 -1
- package/dist/skills/{skills → builtin/dsl}/dsl-validation.d.ts +1 -1
- package/dist/skills/builtin/dsl/index.d.ts +11 -0
- package/dist/skills/{skills → builtin/frontend}/frontend-a11y.d.ts +1 -1
- package/dist/skills/{skills → builtin/frontend}/frontend-build-tooling.d.ts +1 -1
- package/dist/skills/{skills → builtin/frontend}/frontend-perf.d.ts +1 -1
- package/dist/skills/{skills → builtin/frontend}/frontend-react-nextjs.d.ts +1 -1
- package/dist/skills/{skills → builtin/frontend}/frontend-state-data.d.ts +1 -1
- package/dist/skills/{skills → builtin/frontend}/frontend-svelte-sveltekit.d.ts +1 -1
- package/dist/skills/{skills → builtin/frontend}/frontend-testing.d.ts +1 -1
- package/dist/skills/builtin/frontend/frontend-ui-ux.d.ts +2 -0
- package/dist/skills/builtin/frontend/index.d.ts +8 -0
- package/dist/skills/builtin/index.d.ts +7 -0
- package/dist/skills/{skills → builtin/market-data}/ccxt-pro-websockets.d.ts +1 -1
- package/dist/skills/{skills → builtin/market-data}/ccxt-rest.d.ts +1 -1
- package/dist/skills/{skills → builtin/market-data}/crypto-market-structure.d.ts +1 -1
- package/dist/skills/{skills → builtin/market-data}/data-quality-observability.d.ts +1 -1
- package/dist/skills/{skills → builtin/market-data}/grafana-dashboards.d.ts +1 -1
- package/dist/skills/builtin/market-data/index.d.ts +10 -0
- package/dist/skills/{skills → builtin/market-data}/influxdb-timeseries.d.ts +1 -1
- package/dist/skills/{skills → builtin/market-data}/market-data-architecture.d.ts +1 -1
- package/dist/skills/{skills → builtin/market-data}/market-data-bus.d.ts +1 -1
- package/dist/skills/{skills → builtin/market-data}/market-data-robustness-review.d.ts +1 -1
- package/dist/skills/{skills → builtin/market-data}/time-series-fundamentals.d.ts +1 -1
- package/dist/skills/builtin/security/index.d.ts +10 -0
- package/dist/skills/{skills → builtin/security}/security-api.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-audit.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-core.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-crypto.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-dast.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-dependencies.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-infra.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-review.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-sast.d.ts +1 -1
- package/dist/skills/{skills → builtin/security}/security-secrets.d.ts +1 -1
- package/dist/skills/builtin/zeromq/index.d.ts +7 -0
- package/dist/skills/{skills → builtin/zeromq}/zeromq-advanced-reqrep.d.ts +1 -1
- package/dist/skills/{skills → builtin/zeromq}/zeromq-architecture.d.ts +1 -1
- package/dist/skills/{skills → builtin/zeromq}/zeromq-core.d.ts +1 -1
- package/dist/skills/{skills → builtin/zeromq}/zeromq-frameworks.d.ts +1 -1
- package/dist/skills/{skills → builtin/zeromq}/zeromq-pubsub.d.ts +1 -1
- package/dist/skills/{skills → builtin/zeromq}/zeromq-reliability.d.ts +1 -1
- package/dist/skills/{skills → builtin/zeromq}/zeromq-sockets-patterns.d.ts +1 -1
- package/dist/skills/index.d.ts +10 -4
- package/dist/skills/{skills.d.ts → loader/factories.d.ts} +1 -1
- package/dist/skills/loader/index.d.ts +4 -0
- package/dist/tools/assembly/index.d.ts +9 -0
- package/dist/tools/assembly/tools.d.ts +1 -1
- package/dist/tools/ast-grep/index.d.ts +14 -0
- package/dist/tools/ast-grep/tools.d.ts +2 -2
- package/dist/tools/background-task/clients.d.ts +1 -1
- package/dist/tools/background-task/create-background-cancel.d.ts +1 -1
- package/dist/tools/background-task/create-background-output.d.ts +2 -2
- package/dist/tools/background-task/create-background-revive.d.ts +1 -1
- package/dist/tools/background-task/create-background-wait-all.d.ts +1 -1
- package/dist/tools/background-task/full-session-format.d.ts +1 -1
- package/dist/tools/background-task/index.d.ts +6 -0
- package/dist/tools/background-task/message-dir.d.ts +1 -1
- package/dist/tools/background-task/task-result-format.d.ts +1 -1
- package/dist/tools/bdd-create-contract/index.d.ts +4 -0
- package/dist/tools/bdd-create-contract/tools.d.ts +1 -1
- package/dist/tools/bdd-parse-gherkin/index.d.ts +4 -0
- package/dist/tools/bdd-parse-gherkin/tools.d.ts +1 -1
- package/dist/tools/bdd-pipeline/index.d.ts +9 -0
- package/dist/tools/bdd-pipeline/tools.d.ts +1 -1
- package/dist/tools/bdd-validate-contract/index.d.ts +2 -0
- package/dist/tools/bdd-validate-contract/tools.d.ts +1 -1
- package/dist/tools/dashboard-flux-validator/index.d.ts +5 -0
- package/dist/tools/dashboard-flux-validator/tools.d.ts +2 -2
- package/dist/tools/delegate-task/diagnostic-shape.d.ts +1 -1
- package/dist/tools/delegate-task/error-formatting.d.ts +2 -2
- package/dist/tools/delegate-task/executor-types.d.ts +1 -1
- package/dist/tools/delegate-task/model-selection.d.ts +1 -1
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +1 -1
- package/dist/tools/delegate-task/sync-session-poller.d.ts +1 -1
- package/dist/tools/delegate-task/tools.d.ts +1 -1
- package/dist/tools/delegate-task/types.d.ts +1 -1
- package/dist/tools/evolution/index.d.ts +6 -0
- package/dist/tools/evolution/tools.d.ts +2 -2
- package/dist/tools/github-search/index.d.ts +6 -0
- package/dist/tools/github-search/tools.d.ts +2 -2
- package/dist/tools/glob/index.d.ts +6 -0
- package/dist/tools/glob/tools.d.ts +2 -2
- package/dist/tools/grep/index.d.ts +7 -0
- package/dist/tools/grep/tools.d.ts +2 -2
- package/dist/tools/handoff/create-handler.d.ts +1 -1
- package/dist/tools/handoff/index.d.ts +9 -0
- package/dist/tools/handoff/tools.d.ts +2 -2
- package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +1 -1
- package/dist/tools/hashline-edit/tools.d.ts +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/interactive-bash/tools.d.ts +1 -1
- package/dist/tools/knowledge-hub-confirm/index.d.ts +2 -0
- package/dist/tools/knowledge-hub-confirm/tools.d.ts +2 -2
- package/dist/tools/look-at/index.d.ts +8 -0
- package/dist/tools/look-at/multimodal-agent-metadata.d.ts +1 -1
- package/dist/tools/look-at/tools.d.ts +2 -2
- package/dist/tools/lsp/diagnostics-tool.d.ts +1 -1
- package/dist/tools/lsp/find-references-tool.d.ts +1 -1
- package/dist/tools/lsp/goto-definition-tool.d.ts +1 -1
- package/dist/tools/lsp/rename-tools.d.ts +1 -1
- package/dist/tools/lsp/symbols-tool.d.ts +1 -1
- package/dist/tools/market-symbol-validator/index.d.ts +5 -0
- package/dist/tools/market-symbol-validator/tools.d.ts +2 -2
- package/dist/tools/notepad/notepad-append.d.ts +2 -2
- package/dist/tools/notepad/notepad-create.d.ts +2 -2
- package/dist/tools/notepad/notepad-list.d.ts +2 -2
- package/dist/tools/notepad/notepad-read.d.ts +2 -2
- package/dist/tools/pdf-extract-figures/index.d.ts +2 -0
- package/dist/tools/pdf-extract-figures/tools.d.ts +1 -1
- package/dist/tools/plan/plan-create.d.ts +2 -2
- package/dist/tools/plan/plan-delete.d.ts +2 -2
- package/dist/tools/plan/plan-list.d.ts +2 -2
- package/dist/tools/plan/plan-read.d.ts +2 -2
- package/dist/tools/plan/plan-tasks.d.ts +2 -2
- package/dist/tools/plan/plan-update.d.ts +2 -2
- package/dist/tools/preset/index.d.ts +2 -0
- package/dist/tools/preset/tools.d.ts +1 -1
- package/dist/tools/session-cleanup/index.d.ts +2 -2
- package/dist/tools/session-manager/index.d.ts +7 -0
- package/dist/tools/session-manager/storage.d.ts +3 -3
- package/dist/tools/session-manager/tools.d.ts +2 -2
- package/dist/tools/silent-failure-scanner/tools.d.ts +2 -2
- package/dist/tools/skill/index.d.ts +4 -0
- package/dist/tools/skill/tools.d.ts +1 -1
- package/dist/tools/slashcommand/index.d.ts +7 -0
- package/dist/tools/slashcommand/slashcommand-tool.d.ts +1 -1
- package/dist/tools/staleness-gap-checker/tools.d.ts +2 -2
- package/dist/tools/task/task-cleanup.d.ts +2 -2
- package/dist/tools/task/task-create.d.ts +2 -2
- package/dist/tools/task/task-get.d.ts +2 -2
- package/dist/tools/task/task-list.d.ts +2 -2
- package/dist/tools/task/task-update.d.ts +2 -2
- package/dist/tools/task/types.d.ts +10 -10
- package/dist/tools.js +154 -155
- package/package.json +1 -1
- package/dist/hooks/task-continuation-enforcer/abort-detection.d.ts +0 -2
- package/dist/hooks/task-continuation-enforcer/constants.d.ts +0 -9
- package/dist/hooks/task-continuation-enforcer/continuation-injection.d.ts +0 -14
- package/dist/hooks/task-continuation-enforcer/countdown.d.ts +0 -16
- package/dist/hooks/task-continuation-enforcer/handler.d.ts +0 -13
- package/dist/hooks/task-continuation-enforcer/idle-event.d.ts +0 -13
- package/dist/hooks/task-continuation-enforcer/index.d.ts +0 -5
- package/dist/hooks/task-continuation-enforcer/non-idle-events.d.ts +0 -6
- package/dist/hooks/task-continuation-enforcer/session-state.d.ts +0 -10
- package/dist/hooks/task-continuation-enforcer/types.d.ts +0 -54
- package/dist/plugin/available-categories.d.ts +0 -3
- package/dist/skills/skills/dev-browser.d.ts +0 -2
- package/dist/skills/skills/docker-master.d.ts +0 -2
- package/dist/skills/skills/frontend-ui-ux.d.ts +0 -2
- package/dist/skills/skills/git-master.d.ts +0 -2
- package/dist/skills/skills/index.d.ts +0 -69
- package/dist/skills/skills/quality-gate.d.ts +0 -2
- package/dist/skills/skills/remove-ai-slops.d.ts +0 -2
- package/dist/skills/skills/review-work.d.ts +0 -2
- package/dist/skills/skills/software-dev.d.ts +0 -2
- package/dist/skills/skills/tdd-enforcer.d.ts +0 -2
- package/dist/skills/skills/ulw-research.d.ts +0 -2
- package/dist/features/{hook-message-injector → context-injection/hook-bridge}/sdk-message-cache.d.ts +0 -0
- package/dist/features/{hook-message-injector → context-injection/hook-bridge}/types.d.ts +0 -0
- package/dist/features/{context-injector → context-injection/injector}/collector.d.ts +0 -0
- package/dist/features/{context-injector → context-injection/injector}/index.d.ts +0 -0
- package/dist/features/{context-injector → context-injection/injector}/injector.d.ts +0 -0
- package/dist/features/{context-injector → context-injection/injector}/types.d.ts +0 -0
- package/dist/features/{context-mode-routing → context-injection/routing}/routing-block.d.ts +0 -0
- package/dist/{plugin-handlers → plugin/handlers}/agent-priority-order.d.ts +0 -0
- package/dist/{plugin-handlers → plugin/handlers}/agent-tool-allowlist.d.ts +0 -0
- package/dist/{plugin-handlers → plugin/handlers}/formatter-config-handler.d.ts +0 -0
- package/dist/{plugin-handlers → plugin/handlers}/index.d.ts +0 -0
- package/dist/{plugin-handlers → plugin/handlers}/plan-model-inheritance.d.ts +0 -0
- package/dist/plugin/{chat-params.d.ts → tool/chat-params.d.ts} +0 -0
- package/dist/plugin/{event-dispatch.d.ts → tool/event-dispatch.d.ts} +0 -0
- package/dist/plugin/{recent-synthetic-idles.d.ts → tool/recent-synthetic-idles.d.ts} +0 -0
- package/dist/plugin/{session-status-normalizer.d.ts → tool/session-status-normalizer.d.ts} +0 -0
- package/dist/plugin/{tool-execute-before.bench.d.ts → tool/tool-execute-before.bench.d.ts} +0 -0
- package/dist/plugin/{tool-policy.d.ts → tool/tool-policy.d.ts} +0 -0
- package/dist/shared/{agent-display-names.d.ts → agent/agent-display-names.d.ts} +0 -0
- package/dist/shared/{agent-label.d.ts → agent/agent-label.d.ts} +0 -0
- package/dist/shared/{permission-compat.d.ts → agent/permission-compat.d.ts} +0 -0
- package/dist/shared/{safe-create-hook.d.ts → agent/safe-create-hook.d.ts} +0 -0
- package/dist/shared/{compaction-log.d.ts → compaction/compaction-log.d.ts} +0 -0
- package/dist/{hooks/shared → shared/compaction}/compaction-model-resolver.d.ts +0 -0
- package/dist/shared/{context-limit-resolver.d.ts → compaction/context-limit-resolver.d.ts} +0 -0
- package/dist/shared/{token-cache.d.ts → compaction/token-cache.d.ts} +0 -0
- package/dist/shared/{truncate-description.d.ts → compaction/truncate-description.d.ts} +0 -0
- package/dist/shared/{config-errors.d.ts → config/config-errors.d.ts} +0 -0
- package/dist/shared/{data-path.d.ts → config/data-path.d.ts} +0 -0
- package/dist/shared/{deep-merge.d.ts → config/deep-merge.d.ts} +0 -0
- package/dist/shared/{opencode-config-dir.d.ts → config/opencode-config-dir.d.ts} +0 -0
- package/dist/shared/{opencode-storage-detection.d.ts → config/opencode-storage-detection.d.ts} +0 -0
- package/dist/shared/{opencode-storage-paths.d.ts → config/opencode-storage-paths.d.ts} +0 -0
- package/dist/shared/{opencode-version.d.ts → config/opencode-version.d.ts} +0 -0
- package/dist/shared/{binary-downloader.d.ts → io/binary-downloader.d.ts} +0 -0
- package/dist/shared/{file-reference-resolver.d.ts → io/file-reference-resolver.d.ts} +0 -0
- package/dist/shared/{file-utils.d.ts → io/file-utils.d.ts} +0 -0
- package/dist/shared/{frontmatter.d.ts → io/frontmatter.d.ts} +0 -0
- package/dist/shared/{port-utils.d.ts → io/port-utils.d.ts} +0 -0
- package/dist/shared/{shell-env.d.ts → io/shell-env.d.ts} +0 -0
- package/dist/shared/{shell-tool-name.d.ts → io/shell-tool-name.d.ts} +0 -0
- package/dist/shared/{zip-extractor.d.ts → io/zip-extractor.d.ts} +0 -0
- package/dist/shared/{connected-providers-cache.d.ts → model/connected-providers-cache.d.ts} +0 -0
- package/dist/shared/{model-availability.d.ts → model/model-availability.d.ts} +0 -0
- package/dist/shared/{model-resolution-pipeline.d.ts → model/model-resolution-pipeline.d.ts} +0 -0
- package/dist/shared/{model-sanitizer.d.ts → model/model-sanitizer.d.ts} +0 -0
- package/dist/shared/{normalize-sdk-response.d.ts → model/normalize-sdk-response.d.ts} +0 -0
- package/dist/shared/{external-plugin-detector.d.ts → opencode/external-plugin-detector.d.ts} +0 -0
- package/dist/shared/{opencode-http-api.d.ts → opencode/opencode-http-api.d.ts} +0 -0
- package/dist/shared/{opencode-message-dir.d.ts → opencode/opencode-message-dir.d.ts} +0 -0
- package/dist/shared/{opencode-server-auth.d.ts → opencode/opencode-server-auth.d.ts} +0 -0
- package/dist/shared/{poll-timeout-outcome.d.ts → outcome/poll-timeout-outcome.d.ts} +0 -0
- package/dist/shared/{revive-outcome.d.ts → outcome/revive-outcome.d.ts} +0 -0
- package/dist/shared/{saturated-outcome.d.ts → outcome/saturated-outcome.d.ts} +0 -0
- package/dist/shared/{sentinels.d.ts → outcome/sentinels.d.ts} +0 -0
- package/dist/shared/{wallclock-outcome.d.ts → outcome/wallclock-outcome.d.ts} +0 -0
- package/dist/shared/{code-patterns.d.ts → policy/code-patterns.d.ts} +0 -0
- package/dist/shared/{context-mode-enforcement.d.ts → policy/context-mode-enforcement.d.ts} +0 -0
- package/dist/shared/{dcp-guidance.d.ts → policy/dcp-guidance.d.ts} +0 -0
- package/dist/shared/{status-types.d.ts → policy/status-types.d.ts} +0 -0
- package/dist/shared/{delay.d.ts → runtime/delay.d.ts} +0 -0
- package/dist/shared/{is-abort-error.d.ts → runtime/is-abort-error.d.ts} +0 -0
- package/dist/shared/{logger.d.ts → runtime/logger.d.ts} +0 -0
- package/dist/shared/{notify.d.ts → runtime/notify.d.ts} +0 -0
- package/dist/shared/{record-type-guard.d.ts → runtime/record-type-guard.d.ts} +0 -0
- package/dist/shared/{unwrap-list.d.ts → runtime/unwrap-list.d.ts} +0 -0
- package/dist/shared/{with-timeout.d.ts → runtime/with-timeout.d.ts} +0 -0
- package/dist/shared/{awaiting-user.d.ts → session/awaiting-user.d.ts} +0 -0
- package/dist/shared/{first-message-variant.d.ts → session/first-message-variant.d.ts} +0 -0
- package/dist/shared/{session-cursor.d.ts → session/session-cursor.d.ts} +0 -0
- package/dist/shared/{session-directory-resolver.d.ts → session/session-directory-resolver.d.ts} +0 -0
- package/dist/shared/{session-facade.d.ts → session/session-facade.d.ts} +0 -0
- package/dist/shared/{session-id.d.ts → session/session-id.d.ts} +0 -0
- package/dist/shared/{session-injected-paths.d.ts → session/session-injected-paths.d.ts} +0 -0
- package/dist/shared/{session-message.d.ts → session/session-message.d.ts} +0 -0
- package/dist/shared/{session-state.d.ts → session/session-state.d.ts} +0 -0
- package/dist/shared/{session-utils.d.ts → session/session-utils.d.ts} +0 -0
- package/dist/shared/{state-root.d.ts → session/state-root.d.ts} +0 -0
- package/dist/shared/{transcript-path.d.ts → session/transcript-path.d.ts} +0 -0
- package/dist/shared/{with-ephemeral-session.d.ts → session/with-ephemeral-session.d.ts} +0 -0
- package/dist/shared/{error-formatting.d.ts → text/error-formatting.d.ts} +0 -0
- package/dist/shared/{escape-regexp.d.ts → text/escape-regexp.d.ts} +0 -0
- package/dist/shared/{format-bytes.d.ts → text/format-bytes.d.ts} +0 -0
- package/dist/shared/{format-duration.d.ts → text/format-duration.d.ts} +0 -0
- package/dist/shared/{json-safe-metadata.d.ts → text/json-safe-metadata.d.ts} +0 -0
- package/dist/shared/{jsonc-parser.d.ts → text/jsonc-parser.d.ts} +0 -0
- package/dist/shared/{system-directive.d.ts → text/system-directive.d.ts} +0 -0
- package/dist/shared/{agent-tool-restrictions.d.ts → tool/agent-tool-restrictions.d.ts} +0 -0
- package/dist/shared/{skill-path-resolver.d.ts → tool/skill-path-resolver.d.ts} +0 -0
- package/dist/shared/{tool-guards.d.ts → tool/tool-guards.d.ts} +0 -0
- package/dist/skills/{lazy-skill-helper.d.ts → loader/lazy-skill-helper.d.ts} +0 -0
- package/dist/skills/{schemas → loader/schemas}/audits-store.d.ts +1 -1
- package/dist/skills/{schemas → loader/schemas}/security-audit.d.ts +2 -2
- /package/dist/skills/{skills.transform.d.ts → loader/skills.transform.d.ts} +0 -0
- /package/dist/skills/{types.d.ts → loader/types.d.ts} +0 -0
package/dist/matrixx.schema.json
CHANGED
|
@@ -113,10 +113,11 @@
|
|
|
113
113
|
"enum": [
|
|
114
114
|
"playwright",
|
|
115
115
|
"agent-browser",
|
|
116
|
-
"
|
|
116
|
+
"playwright-cli",
|
|
117
117
|
"frontend-ui-ux",
|
|
118
|
-
"git-master",
|
|
119
118
|
"docker-master",
|
|
119
|
+
"git-master",
|
|
120
|
+
"dev-browser",
|
|
120
121
|
"dsl-core",
|
|
121
122
|
"dsl-grammar",
|
|
122
123
|
"dsl-codegen",
|
|
@@ -128,12 +129,25 @@
|
|
|
128
129
|
"dsl-testing",
|
|
129
130
|
"dsl-validation",
|
|
130
131
|
"dsl-composition",
|
|
132
|
+
"frontend-a11y",
|
|
133
|
+
"bdd-backend",
|
|
134
|
+
"bdd-contract",
|
|
135
|
+
"bdd-frontend",
|
|
136
|
+
"bdd-tests",
|
|
137
|
+
"frontend-build-tooling",
|
|
138
|
+
"frontend-perf",
|
|
139
|
+
"frontend-state-data",
|
|
140
|
+
"frontend-testing",
|
|
141
|
+
"react-nextjs-patterns",
|
|
142
|
+
"svelte-sveltekit-patterns",
|
|
143
|
+
"document-reader",
|
|
131
144
|
"security-core",
|
|
132
145
|
"security-secrets",
|
|
133
146
|
"security-sast",
|
|
134
147
|
"security-dast",
|
|
135
148
|
"security-dependencies",
|
|
136
149
|
"security-api",
|
|
150
|
+
"security-audit",
|
|
137
151
|
"security-crypto",
|
|
138
152
|
"security-infra",
|
|
139
153
|
"security-review",
|
|
@@ -144,10 +158,13 @@
|
|
|
144
158
|
"matrixx-self-config",
|
|
145
159
|
"ulw-research",
|
|
146
160
|
"remove-ai-slops",
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
161
|
+
"zeromq-core",
|
|
162
|
+
"zeromq-sockets-patterns",
|
|
163
|
+
"zeromq-advanced-reqrep",
|
|
164
|
+
"zeromq-reliability",
|
|
165
|
+
"zeromq-pubsub",
|
|
166
|
+
"zeromq-architecture",
|
|
167
|
+
"zeromq-frameworks",
|
|
151
168
|
"python-asyncio",
|
|
152
169
|
"ccxt-rest",
|
|
153
170
|
"ccxt-pro-websockets",
|
|
@@ -160,8 +177,9 @@
|
|
|
160
177
|
"grafana-dashboards",
|
|
161
178
|
"telegram-bot",
|
|
162
179
|
"resilience-error-taxonomy",
|
|
163
|
-
"silent-failure-detection",
|
|
164
180
|
"resilience-failure-hunting",
|
|
181
|
+
"silent-failure-detection",
|
|
182
|
+
"systematic-debugging",
|
|
165
183
|
"data-quality-observability"
|
|
166
184
|
]
|
|
167
185
|
}
|
|
@@ -173,7 +191,6 @@
|
|
|
173
191
|
{
|
|
174
192
|
"type": "string",
|
|
175
193
|
"enum": [
|
|
176
|
-
"task-continuation-enforcer",
|
|
177
194
|
"context-window-monitor",
|
|
178
195
|
"session-recovery",
|
|
179
196
|
"session-notification",
|
|
@@ -258,6 +275,10 @@
|
|
|
258
275
|
"type": "string",
|
|
259
276
|
"const": "task-notepad"
|
|
260
277
|
},
|
|
278
|
+
{
|
|
279
|
+
"type": "string",
|
|
280
|
+
"const": "task-continuation-enforcer"
|
|
281
|
+
},
|
|
261
282
|
{
|
|
262
283
|
"type": "string",
|
|
263
284
|
"const": "preemptive-compaction"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MatrixxConfig } from "
|
|
2
|
-
import { type ContextModeConfigInput } from "
|
|
1
|
+
import type { MatrixxConfig } from "../../config";
|
|
2
|
+
import { type ContextModeConfigInput } from "../../shared/policy/context-mode-enforcement";
|
|
3
3
|
import type { PluginComponents } from "./plugin-components-loader";
|
|
4
4
|
export declare function setAvailableToolNames(names: string[]): void;
|
|
5
5
|
export declare function getAvailableToolNames(): string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CategoryConfig } from "
|
|
1
|
+
import type { CategoryConfig } from "../../config/schema";
|
|
2
2
|
export declare function resolveCategoryConfig(categoryName: string, userCategories?: Record<string, CategoryConfig>): CategoryConfig | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MatrixxConfig } from "
|
|
2
|
-
import type { ModelCacheState } from "
|
|
1
|
+
import type { MatrixxConfig } from "../../config";
|
|
2
|
+
import type { ModelCacheState } from "../../plugin-state";
|
|
3
3
|
export { resolveCategoryConfig } from "./category-config-resolver";
|
|
4
4
|
export interface ConfigHandlerDeps {
|
|
5
5
|
ctx: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AgentConfig } from "
|
|
2
|
-
import type { AgentOverrideConfig } from "
|
|
3
|
-
import type { BrowserAutomationProvider, CategoryConfig, ModelRequirements } from "
|
|
1
|
+
import { type AgentConfig } from "../../agents/agent-config";
|
|
2
|
+
import type { AgentOverrideConfig } from "../../agents/types";
|
|
3
|
+
import type { BrowserAutomationProvider, CategoryConfig, ModelRequirements } from "../../config/schema";
|
|
4
4
|
export declare function buildOracleAgentConfig(params: {
|
|
5
5
|
configAgentPlan: Record<string, unknown> | undefined;
|
|
6
6
|
pluginOracleOverride: AgentOverrideConfig | undefined;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ruleset where the last matching rule wins, so grants are appended after the
|
|
10
10
|
* agent's own rules.
|
|
11
11
|
*/
|
|
12
|
-
import { type PermissionRule } from "
|
|
12
|
+
import { type PermissionRule } from "../../shared/agent/permission-compat";
|
|
13
13
|
/** The legacy todo tools are denied for every task-capable agent. */
|
|
14
14
|
export declare const denyTodoPermissions: PermissionRule[];
|
|
15
15
|
/**
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
-
import { createBackgroundNotificationHook, createCompactionContextInjector, createEvolutionHitlHook, createNiobeHook, createNudgeLoopBreakerHook, createPlanPersister, createStopContinuationGuardHook
|
|
4
|
-
import type { NativePluginContext } from "../../shared/session-context-source";
|
|
5
|
-
import { createUnstableAgentBabysitter } from "../unstable-agent-babysitter";
|
|
3
|
+
import { createBackgroundNotificationHook, createCompactionContextInjector, createEvolutionHitlHook, createNiobeHook, createNudgeLoopBreakerHook, createPlanPersister, createStopContinuationGuardHook } from "../../hooks";
|
|
4
|
+
import type { NativePluginContext } from "../../shared/session/session-context-source";
|
|
5
|
+
import { createUnstableAgentBabysitter } from "../tool/unstable-agent-babysitter";
|
|
6
6
|
export type ContinuationHooks = {
|
|
7
7
|
stopContinuationGuard: ReturnType<typeof createStopContinuationGuardHook> | null;
|
|
8
8
|
compactionContextInjector: ReturnType<typeof createCompactionContextInjector> | null;
|
|
9
|
-
taskContinuationEnforcer: ReturnType<typeof createTaskContinuationEnforcer> | null;
|
|
10
9
|
unstableAgentBabysitter: ReturnType<typeof createUnstableAgentBabysitter> | null;
|
|
11
10
|
nudgeLoopBreaker: ReturnType<typeof createNudgeLoopBreakerHook> | null;
|
|
12
11
|
backgroundNotificationHook: ReturnType<typeof createBackgroundNotificationHook> | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
2
|
import { createAgentUsageReminderHook, createAutoUpdateCheckerHook, createContextWindowLimitRecoveryHook, createContextWindowMonitorHook, createDelegateTaskRetryHook, createEditErrorRecoveryHook, createInteractiveBashSessionHook, createMatrixLoopHook, createMouseNotepadHook, createNonInteractiveEnvHook, createOracleMdOnlyHook, createRtkBashRewriterHook, createRuntimeFallbackHook, createSessionMemoryHook, createSessionNotification, createSessionRecoveryHook, createStartWorkHook, createTaskResumeInfoHook, createThinkModeHook } from "../../hooks";
|
|
3
3
|
import { createAnthropicEffortHook } from "../../hooks/anthropic-effort/hook";
|
|
4
|
-
import type { NativePluginContext } from "../../shared/session-context-source";
|
|
4
|
+
import type { NativePluginContext } from "../../shared/session/session-context-source";
|
|
5
5
|
export type SessionHooks = {
|
|
6
6
|
contextWindowMonitor: ReturnType<typeof createContextWindowMonitorHook> | null;
|
|
7
7
|
sessionRecovery: ReturnType<typeof createSessionRecoveryHook> | null;
|
|
@@ -2,7 +2,7 @@ import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
|
2
2
|
import type { HookName } from "../../config";
|
|
3
3
|
import { createAutoSlashCommandHook, createCategorySkillReminderHook } from "../../hooks";
|
|
4
4
|
import type { BuiltinSkill } from "../../skills";
|
|
5
|
-
import type { MatrixxContext } from "../context";
|
|
5
|
+
import type { MatrixxContext } from "../tool/context";
|
|
6
6
|
export type SkillHooks = {
|
|
7
7
|
categorySkillReminder: ReturnType<typeof createCategorySkillReminderHook> | null;
|
|
8
8
|
autoSlashCommand: ReturnType<typeof createAutoSlashCommandHook> | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HookName, MatrixxConfig } from "../../config";
|
|
2
2
|
import { createBackgroundTaskBlockerHook, createBashFileReadGuardHook, createCommentCheckerHooks, createContextModeEnforcerHook, createDirectoryAgentsInjectorHook, createDocsLookupGuardHook, createDocumentReaderGuardHook, createEmptyTaskResponseDetectorHook, createEnvFileWriteGuardHook, createEvolutionWatcherHook, createHashlineReadEnhancerHook, createJsonErrorRecoveryHook, createKnowledgeHubGuardHook, createKnowledgeHubSearchNudgeHook, createQualityGateHook, createReadImageResizerHook, createRulesInjectorHook, createSecretLeakGuardHook, createSoftwareDevEnforcementHook, createSubagentBlockHook, createTaskEditGuardHook, createTaskNotepadWriterHook, createToolOutputTruncatorHook, createWebFetchRedirectGuardHook, createWriteExistingFileGuardHook } from "../../hooks";
|
|
3
3
|
import { createSilentFailureGuardHook } from "../../hooks/silent-failure-guard";
|
|
4
|
-
import type { MatrixxContext } from "../context";
|
|
4
|
+
import type { MatrixxContext } from "../tool/context";
|
|
5
5
|
export type ToolGuardHooks = {
|
|
6
6
|
backgroundTaskBlocker: ReturnType<typeof createBackgroundTaskBlockerHook> | null;
|
|
7
7
|
commentChecker: ReturnType<typeof createCommentCheckerHooks> | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../../config";
|
|
2
|
-
import { createContextInjectorMessagesTransformHook } from "../../features/context-injector";
|
|
3
|
-
import { createContextModeSystemTransformHook } from "../../features/context-
|
|
2
|
+
import { createContextInjectorMessagesTransformHook } from "../../features/context-injection/injector";
|
|
3
|
+
import { createContextModeSystemTransformHook } from "../../features/context-injection/routing";
|
|
4
4
|
import { createRtkSystemTransformHook } from "../../features/rtk-routing/system-transform";
|
|
5
5
|
import { createDesignIntentPreserverHook, createEnvContextInjectorHook, createKeywordDetectorHook, createKnowledgeHubInjectorHook, createThinkingBlockValidatorHook, createToolPairValidatorHook } from "../../hooks";
|
|
6
6
|
import { createDcpNudgeSanitizerHook } from "../../hooks/dcp-nudge-sanitizer/hook";
|
|
7
7
|
import { createDomainKeywordDetectorHook } from "../../hooks/domain-keyword-detector";
|
|
8
8
|
import { createInputSecretGuardHook } from "../../hooks/input-secret-guard/hook";
|
|
9
|
-
import type { NativePluginContext } from "../../shared/session-context-source";
|
|
9
|
+
import type { NativePluginContext } from "../../shared/session/session-context-source";
|
|
10
10
|
export type TransformHooks = {
|
|
11
11
|
inputSecretGuard: ReturnType<typeof createInputSecretGuardHook> | null;
|
|
12
12
|
keywordDetector: ReturnType<typeof createKeywordDetectorHook> | null;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export { applyAgentConfig, getAvailableToolNames, injectContextDiscipline, setAvailableToolNames, } from "./handlers/agent-config-handler";
|
|
2
|
+
export { reorderAgentsByPriority } from "./handlers/agent-priority-order";
|
|
3
|
+
export type { PilotToolAllowlistAgent } from "./handlers/agent-tool-allowlist";
|
|
4
|
+
export { applyAgentToolAllowlist, DEFAULT_TOOL_ALLOWLIST, PILOT_TOOL_ALLOWLIST_AGENTS, } from "./handlers/agent-tool-allowlist";
|
|
5
|
+
export { resolveCategoryConfig } from "./handlers/category-config-resolver";
|
|
6
|
+
export { applyCommandConfig } from "./handlers/command-config-handler";
|
|
7
|
+
export type { ConfigHandlerDeps } from "./handlers/config-handler";
|
|
8
|
+
export { createConfigHandler } from "./handlers/config-handler";
|
|
9
|
+
export { applyFormatterConfig } from "./handlers/formatter-config-handler";
|
|
10
|
+
export { applyMcpConfig } from "./handlers/mcp-config-handler";
|
|
11
|
+
export { buildOracleAgentConfig } from "./handlers/oracle-agent-config-builder";
|
|
12
|
+
export { buildPlanDemoteConfig } from "./handlers/plan-model-inheritance";
|
|
13
|
+
export type { PluginComponents } from "./handlers/plugin-components-loader";
|
|
14
|
+
export { loadPluginComponents } from "./handlers/plugin-components-loader";
|
|
15
|
+
export { applyProviderConfig } from "./handlers/provider-config-handler";
|
|
16
|
+
export { deniesDelegation, denyTodoPermissions, deriveTaskPermissions, fullTaskPermissions, isTaskStorePrimary, taskStorePermissions, } from "./handlers/task-permissions";
|
|
17
|
+
export { applyToolConfig } from "./handlers/tool-config-handler";
|
|
18
|
+
export type { ContinuationHooks } from "./hooks/create-continuation-hooks";
|
|
19
|
+
export { createContinuationHooks } from "./hooks/create-continuation-hooks";
|
|
20
|
+
export type { SessionHooks } from "./hooks/create-session-hooks";
|
|
21
|
+
export { createSessionHooks } from "./hooks/create-session-hooks";
|
|
22
|
+
export type { SkillHooks } from "./hooks/create-skill-hooks";
|
|
23
|
+
export { createSkillHooks } from "./hooks/create-skill-hooks";
|
|
24
|
+
export type { ToolGuardHooks } from "./hooks/create-tool-guard-hooks";
|
|
25
|
+
export { createToolGuardHooks } from "./hooks/create-tool-guard-hooks";
|
|
26
|
+
export type { TransformHooks } from "./hooks/create-transform-hooks";
|
|
27
|
+
export { createTransformHooks } from "./hooks/create-transform-hooks";
|
|
28
|
+
export type { MessageHookDeps, MessageHookName, MessageHookRow, SessionMessage } from "./message-hooks";
|
|
29
|
+
export { MESSAGE_HOOK_TABLE, registerMessageHooks, validateMessageHookTable, } from "./message-hooks";
|
|
30
|
+
export { createAvailableCategories } from "./tool/available-categories";
|
|
31
|
+
export { createChatMessageHandler } from "./tool/chat-message";
|
|
32
|
+
export { createChatParamsHandler } from "./tool/chat-params";
|
|
33
|
+
export type { Cleanup, MatrixxContext, ToolsRecord, V2Event, V2Registration, V2SessionDomain, V2ToolDomain, } from "./tool/context";
|
|
34
|
+
export { createEventHandler } from "./tool/event";
|
|
35
|
+
export { createEventDispatcher } from "./tool/event-dispatch";
|
|
36
|
+
export type { Hooks } from "./tool/legacy-hooks";
|
|
37
|
+
export { createNativePluginContext } from "./tool/native-context";
|
|
38
|
+
export type { SkillContext } from "./tool/skill-context";
|
|
39
|
+
export { createSkillContext } from "./tool/skill-context";
|
|
40
|
+
export type { ToolCatalogResult } from "./tool/tool-catalog";
|
|
41
|
+
export { createToolCatalog } from "./tool/tool-catalog";
|
|
42
|
+
export { createToolExecuteAfterHandler } from "./tool/tool-execute-after";
|
|
43
|
+
export { createToolExecuteBeforeHandler } from "./tool/tool-execute-before";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ContextCollector } from "../../features/context-injector";
|
|
2
|
-
import { type SessionMessage } from "../../shared/session-message";
|
|
3
|
-
import type { MatrixxContext, V2Registration } from "../context";
|
|
1
|
+
import { type ContextCollector } from "../../features/context-injection/injector";
|
|
2
|
+
import { type SessionMessage } from "../../shared/session/session-message";
|
|
3
|
+
import type { MatrixxContext, V2Registration } from "../tool/context";
|
|
4
4
|
export interface FlatMessageHookEvent {
|
|
5
5
|
readonly sessionID: string;
|
|
6
6
|
messages: SessionMessage[];
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* cleans prior-cycle sticky nudges and caps accumulation at ~1/cycle. It cannot
|
|
13
13
|
* suppress the nudge DCP injects later in the same cycle.
|
|
14
14
|
*/
|
|
15
|
-
import type { MatrixxContext, V2Registration, V2SessionContextEvent } from "../context";
|
|
15
|
+
import type { MatrixxContext, V2Registration, V2SessionContextEvent } from "../tool/context";
|
|
16
16
|
/** Minimal flat content block (text blocks carry `type: "text"` + `text`). */
|
|
17
17
|
export type FlatContentBlock = {
|
|
18
18
|
readonly type?: unknown;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* user text is `.text`), and the session ID comes from the native event
|
|
11
11
|
* instead of `message.info.sessionID`.
|
|
12
12
|
*/
|
|
13
|
-
import { type SessionMessage } from "../../shared/session-message";
|
|
14
|
-
import type { MatrixxContext, V2Registration } from "../context";
|
|
13
|
+
import { type SessionMessage } from "../../shared/session/session-message";
|
|
14
|
+
import type { MatrixxContext, V2Registration } from "../tool/context";
|
|
15
15
|
/** Minimal flat-message view of the native context/compaction event. */
|
|
16
16
|
export interface FlatMessageHookEvent {
|
|
17
17
|
readonly sessionID: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* (`applyEnvContextInjector` in `src/hooks/env-context-injector/flat.ts`).
|
|
7
7
|
* Same targets (`context`, `compaction`), same call shape, no behavior change.
|
|
8
8
|
*/
|
|
9
|
-
import type { MatrixxContext, V2Registration } from "../context";
|
|
9
|
+
import type { MatrixxContext, V2Registration } from "../tool/context";
|
|
10
10
|
/**
|
|
11
11
|
* Register the flat port on every native kind in its mapping-table row
|
|
12
12
|
* (`envContextInjector` -> `context`, `compaction`).
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* (`context`), same call shape (config + deps passthrough), no behavior change.
|
|
8
8
|
*/
|
|
9
9
|
import { type EvolutionHitlDeps } from "../../hooks/evolution-hitl/flat";
|
|
10
|
-
import type { MatrixxContext, V2Registration } from "../context";
|
|
10
|
+
import type { MatrixxContext, V2Registration } from "../tool/context";
|
|
11
11
|
/**
|
|
12
12
|
* Register the flat port on every native kind in its mapping-table row
|
|
13
13
|
* (`evolutionHitl` -> `context`).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EvolutionHitlDeps } from "../../hooks/evolution-hitl/flat";
|
|
2
|
-
import type { SessionMessage } from "../../shared/session-message";
|
|
3
|
-
import type { MatrixxContext, V2Registration } from "../context";
|
|
2
|
+
import type { SessionMessage } from "../../shared/session/session-message";
|
|
3
|
+
import type { MatrixxContext, V2Registration } from "../tool/context";
|
|
4
4
|
import { type ContextInjectorDeps } from "./context-injector";
|
|
5
5
|
import { type KnowledgeHubInjectorDeps } from "./knowledge-hub-injector";
|
|
6
6
|
/** Native session hook kinds that carry messages. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { KnowledgeHub } from "../../config/schema/knowledge";
|
|
2
|
-
import { type ContextCollector } from "../../features/context-injector";
|
|
3
|
-
import { type SessionMessage } from "../../shared/session-message";
|
|
4
|
-
import type { MatrixxContext, V2Registration } from "../context";
|
|
2
|
+
import { type ContextCollector } from "../../features/context-injection/injector";
|
|
3
|
+
import { type SessionMessage } from "../../shared/session/session-message";
|
|
4
|
+
import type { MatrixxContext, V2Registration } from "../tool/context";
|
|
5
5
|
export interface FlatMessageHookEvent {
|
|
6
6
|
readonly sessionID: string;
|
|
7
7
|
messages: SessionMessage[];
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Same targets (`context`, `generate`), same call shape, no behavior change.
|
|
8
8
|
* `generate` coverage matters because auxiliary requests bypass `context`.
|
|
9
9
|
*/
|
|
10
|
-
import type { MatrixxContext, V2Registration } from "../context";
|
|
10
|
+
import type { MatrixxContext, V2Registration } from "../tool/context";
|
|
11
11
|
/**
|
|
12
12
|
* Register the flat port on every native kind in its mapping-table row
|
|
13
13
|
* (`thinkingBlockValidator` -> `context`, `generate`).
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* a synthetic `{ role: "user" }` message is spliced in. Operates on the V2 flat
|
|
9
9
|
* shape (`role` + `content`); messages without an array `content` never throw.
|
|
10
10
|
*/
|
|
11
|
-
import type { MatrixxContext, V2Registration, V2SessionContextEvent } from "../context";
|
|
11
|
+
import type { MatrixxContext, V2Registration, V2SessionContextEvent } from "../tool/context";
|
|
12
12
|
/** Minimal flat content block (tool calls, results, and text). */
|
|
13
13
|
export type FlatContentBlock = {
|
|
14
14
|
readonly type?: unknown;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { MatrixxContext, V2Registration } from "../tool/context";
|
|
2
|
+
import type { Hooks } from "../tool/legacy-hooks";
|
|
3
|
+
export interface RegisterDomainsInput {
|
|
4
|
+
ctx: MatrixxContext;
|
|
5
|
+
hooks: Hooks;
|
|
6
|
+
directory: string;
|
|
7
|
+
worktree: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DomainRegistration {
|
|
10
|
+
registrations: V2Registration[];
|
|
11
|
+
controller: AbortController;
|
|
12
|
+
dispose(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
/** Extract hook-visible text from a completed tool result.
|
|
15
|
+
*
|
|
16
|
+
* The host normalizes string content to a [{type: "text", text}] array before
|
|
17
|
+
* hooks run, so a string-only check drops every tool result (observed live as
|
|
18
|
+
* the empty task response). Join text parts; non-text parts contribute nothing.
|
|
19
|
+
*/
|
|
20
|
+
export declare function hookOutputText(content: unknown): string | undefined;
|
|
21
|
+
export declare function hideNativeSubagentTool(editor: {
|
|
22
|
+
remove(id: string): void;
|
|
23
|
+
}): void;
|
|
24
|
+
/**
|
|
25
|
+
* Applies the assembled `Hooks` onto the V2 context.
|
|
26
|
+
* Returns the registration set whose `dispose` tears everything down.
|
|
27
|
+
*/
|
|
28
|
+
export declare function registerDomains(input: RegisterDomainsInput): Promise<DomainRegistration>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { MatrixxConfig } from "../../config";
|
|
2
|
+
import type { createFirstMessageVariantGate } from "../../shared/session/first-message-variant";
|
|
3
|
+
import type { SessionContextCarrier } from "../../shared/session/session-context-source";
|
|
4
|
+
import type { ContinuationHooks } from "../hooks/create-continuation-hooks";
|
|
5
|
+
import type { SessionHooks } from "../hooks/create-session-hooks";
|
|
6
|
+
import type { SkillHooks } from "../hooks/create-skill-hooks";
|
|
7
|
+
import type { ToolGuardHooks } from "../hooks/create-tool-guard-hooks";
|
|
8
|
+
import type { TransformHooks } from "../hooks/create-transform-hooks";
|
|
9
|
+
import type { MatrixxContext } from "../tool/context";
|
|
10
|
+
import type { Hooks } from "../tool/legacy-hooks";
|
|
11
|
+
/**
|
|
12
|
+
* Every hook the plugin owns, keyed by domain. Same shape the 3-tier
|
|
13
|
+
* grouping produced — the tiers are gone, the leaf domains remain.
|
|
14
|
+
*/
|
|
15
|
+
export type DomainHooks = SessionHooks & ToolGuardHooks & TransformHooks & ContinuationHooks & SkillHooks;
|
|
16
|
+
type FirstMessageVariantGate = ReturnType<typeof createFirstMessageVariantGate>;
|
|
17
|
+
/** Chat domain: message, params, and message/system transforms. */
|
|
18
|
+
export declare function setupChatHooks(args: {
|
|
19
|
+
ctx: MatrixxContext;
|
|
20
|
+
pluginConfig: MatrixxConfig;
|
|
21
|
+
firstMessageVariantGate: FirstMessageVariantGate;
|
|
22
|
+
hooks: DomainHooks;
|
|
23
|
+
}): Pick<Hooks, "chat.message" | "chat.params" | "experimental.chat.system.transform">;
|
|
24
|
+
/** Tool domain: execute guards and tool definition passthrough. */
|
|
25
|
+
export declare function setupToolHooks(args: {
|
|
26
|
+
ctx: MatrixxContext & SessionContextCarrier;
|
|
27
|
+
hooks: DomainHooks;
|
|
28
|
+
}): Pick<Hooks, "tool.execute.before" | "tool.execute.after" | "tool.definition">;
|
|
29
|
+
/** Compaction domain: the single session-compacting contributor. */
|
|
30
|
+
export declare function setupCompactionHooks(args: {
|
|
31
|
+
hooks: DomainHooks;
|
|
32
|
+
}): Pick<Hooks, "experimental.session.compacting">;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MatrixxConfig, TmuxConfig } from "../../config";
|
|
2
|
+
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
+
import type { NativePluginContext } from "../../shared/session/session-context-source";
|
|
4
|
+
import { createConfigHandler } from "../handlers";
|
|
5
|
+
/** Managers owned by the composition root (moved from `create-managers.ts`). */
|
|
6
|
+
export type DomainManagers = {
|
|
7
|
+
backgroundManager: BackgroundManager;
|
|
8
|
+
configHandler: ReturnType<typeof createConfigHandler>;
|
|
9
|
+
};
|
|
10
|
+
export declare function createDomainManagers(args: {
|
|
11
|
+
ctx: NativePluginContext;
|
|
12
|
+
pluginConfig: MatrixxConfig;
|
|
13
|
+
tmuxConfig: TmuxConfig;
|
|
14
|
+
backgroundNotificationHookEnabled: boolean;
|
|
15
|
+
}): DomainManagers;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
2
|
+
import type { MatrixxConfig } from "../../config";
|
|
3
|
+
import type { BrowserAutomationProvider } from "../../config/schema/browser-automation";
|
|
4
|
+
import type { NativePluginContext } from "../../shared/session/session-context-source";
|
|
5
|
+
import type { BuiltinSkill } from "../../skills";
|
|
6
|
+
import type { ToolsRecord } from "../tool/context";
|
|
7
|
+
import type { DomainManagers } from "./managers";
|
|
8
|
+
export type SetupToolsDomainResult = {
|
|
9
|
+
filteredTools: ToolsRecord;
|
|
10
|
+
builtinSkills: BuiltinSkill[];
|
|
11
|
+
availableSkills: AvailableSkill[];
|
|
12
|
+
availableCategories: AvailableCategory[];
|
|
13
|
+
browserProvider: BrowserAutomationProvider;
|
|
14
|
+
disabledSkills: Set<string>;
|
|
15
|
+
taskSystemEnabled: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** Tool domain: skill context, categories, and the filtered tool registry. */
|
|
18
|
+
export declare function setupToolsDomain(args: {
|
|
19
|
+
ctx: NativePluginContext;
|
|
20
|
+
pluginConfig: MatrixxConfig;
|
|
21
|
+
managers: Pick<DomainManagers, "backgroundManager">;
|
|
22
|
+
systemDefaultModel?: () => Promise<string | undefined>;
|
|
23
|
+
}): Promise<SetupToolsDomainResult>;
|
|
@@ -11,71 +11,15 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Still load-bearing below this module (owned by later TODOs):
|
|
13
13
|
* - the V1 `MatrixxContext` substrate (`./types`) every hook/tool is written against
|
|
14
|
-
* - the 6-phase config pipeline (`../plugin
|
|
14
|
+
* - the 6-phase config pipeline (`../plugin/handlers/config-handler`) that feeds the config draft
|
|
15
15
|
* - the unified compaction hook (Task 8)
|
|
16
16
|
*
|
|
17
17
|
* Native background/session lifecycle landed in Task 7 (D5): the slim
|
|
18
18
|
* `BackgroundManager` talks to `session.create`/`promptAsync` directly and
|
|
19
19
|
* the tmux pane mirror is gone.
|
|
20
20
|
*/
|
|
21
|
-
import type {
|
|
22
|
-
import type {
|
|
23
|
-
import type { BrowserAutomationProvider } from "../config/schema/browser-automation";
|
|
24
|
-
import type { BackgroundManager } from "../features/background-agent";
|
|
25
|
-
import { createConfigHandler } from "../plugin-handlers";
|
|
26
|
-
import { createFirstMessageVariantGate } from "../shared/first-message-variant";
|
|
27
|
-
import type { NativePluginContext, SessionContextCarrier } from "../shared/session-context-source";
|
|
28
|
-
import type { BuiltinSkill } from "../skills";
|
|
29
|
-
import type { MatrixxContext, ToolsRecord, V2Registration } from "./context";
|
|
30
|
-
import type { ContinuationHooks } from "./hooks/create-continuation-hooks";
|
|
31
|
-
import type { SessionHooks } from "./hooks/create-session-hooks";
|
|
32
|
-
import type { SkillHooks } from "./hooks/create-skill-hooks";
|
|
33
|
-
import type { ToolGuardHooks } from "./hooks/create-tool-guard-hooks";
|
|
34
|
-
import type { TransformHooks } from "./hooks/create-transform-hooks";
|
|
35
|
-
import type { Hooks } from "./legacy-hooks";
|
|
36
|
-
/** Managers owned by the composition root (moved from `create-managers.ts`). */
|
|
37
|
-
export type DomainManagers = {
|
|
38
|
-
backgroundManager: BackgroundManager;
|
|
39
|
-
configHandler: ReturnType<typeof createConfigHandler>;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Every hook the plugin owns, keyed by domain. Same shape the 3-tier
|
|
43
|
-
* grouping produced — the tiers are gone, the leaf domains remain.
|
|
44
|
-
*/
|
|
45
|
-
export type DomainHooks = SessionHooks & ToolGuardHooks & TransformHooks & ContinuationHooks & SkillHooks;
|
|
46
|
-
type FirstMessageVariantGate = ReturnType<typeof createFirstMessageVariantGate>;
|
|
47
|
-
export type SetupToolsDomainResult = {
|
|
48
|
-
filteredTools: ToolsRecord;
|
|
49
|
-
builtinSkills: BuiltinSkill[];
|
|
50
|
-
availableSkills: AvailableSkill[];
|
|
51
|
-
availableCategories: AvailableCategory[];
|
|
52
|
-
browserProvider: BrowserAutomationProvider;
|
|
53
|
-
disabledSkills: Set<string>;
|
|
54
|
-
taskSystemEnabled: boolean;
|
|
55
|
-
};
|
|
56
|
-
/** Tool domain: skill context, categories, and the filtered tool registry. */
|
|
57
|
-
export declare function setupToolsDomain(args: {
|
|
58
|
-
ctx: NativePluginContext;
|
|
59
|
-
pluginConfig: MatrixxConfig;
|
|
60
|
-
managers: Pick<DomainManagers, "backgroundManager">;
|
|
61
|
-
systemDefaultModel?: () => Promise<string | undefined>;
|
|
62
|
-
}): Promise<SetupToolsDomainResult>;
|
|
63
|
-
/** Chat domain: message, params, and message/system transforms. */
|
|
64
|
-
export declare function setupChatHooks(args: {
|
|
65
|
-
ctx: MatrixxContext;
|
|
66
|
-
pluginConfig: MatrixxConfig;
|
|
67
|
-
firstMessageVariantGate: FirstMessageVariantGate;
|
|
68
|
-
hooks: DomainHooks;
|
|
69
|
-
}): Pick<Hooks, "chat.message" | "chat.params" | "experimental.chat.system.transform">;
|
|
70
|
-
/** Tool domain: execute guards and tool definition passthrough. */
|
|
71
|
-
export declare function setupToolHooks(args: {
|
|
72
|
-
ctx: MatrixxContext & SessionContextCarrier;
|
|
73
|
-
hooks: DomainHooks;
|
|
74
|
-
}): Pick<Hooks, "tool.execute.before" | "tool.execute.after" | "tool.definition">;
|
|
75
|
-
/** Compaction domain: the single session-compacting contributor. */
|
|
76
|
-
export declare function setupCompactionHooks(args: {
|
|
77
|
-
hooks: DomainHooks;
|
|
78
|
-
}): Pick<Hooks, "experimental.session.compacting">;
|
|
21
|
+
import type { MatrixxContext } from "./tool/context";
|
|
22
|
+
import type { Hooks } from "./tool/legacy-hooks";
|
|
79
23
|
/**
|
|
80
24
|
* Full init sequence (moved from the 10-step `plugin-factory`).
|
|
81
25
|
* Builds managers, tools, hooks, and the `Hooks` fragments the V2
|
|
@@ -86,30 +30,10 @@ export declare function setupDomains(ctx: MatrixxContext): Promise<{
|
|
|
86
30
|
worktree: string;
|
|
87
31
|
hooks: Hooks;
|
|
88
32
|
}>;
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
export
|
|
96
|
-
registrations: V2Registration[];
|
|
97
|
-
controller: AbortController;
|
|
98
|
-
dispose(): Promise<void>;
|
|
99
|
-
}
|
|
100
|
-
/** Extract hook-visible text from a completed tool result.
|
|
101
|
-
*
|
|
102
|
-
* The host normalizes string content to a [{type: "text", text}] array before
|
|
103
|
-
* hooks run, so a string-only check drops every tool result (observed live as
|
|
104
|
-
* the empty task response). Join text parts; non-text parts contribute nothing.
|
|
105
|
-
*/
|
|
106
|
-
export declare function hookOutputText(content: unknown): string | undefined;
|
|
107
|
-
export declare function hideNativeSubagentTool(editor: {
|
|
108
|
-
remove(id: string): void;
|
|
109
|
-
}): void;
|
|
110
|
-
/**
|
|
111
|
-
* Applies the assembled `Hooks` onto the V2 context.
|
|
112
|
-
* Returns the registration set whose `dispose` tears everything down.
|
|
113
|
-
*/
|
|
114
|
-
export declare function registerDomains(input: RegisterDomainsInput): Promise<DomainRegistration>;
|
|
115
|
-
export {};
|
|
33
|
+
export type { DomainRegistration, RegisterDomainsInput, } from "./setup-domains/assemble";
|
|
34
|
+
export { hideNativeSubagentTool, hookOutputText, registerDomains, } from "./setup-domains/assemble";
|
|
35
|
+
export type { DomainHooks } from "./setup-domains/hooks";
|
|
36
|
+
export { setupChatHooks, setupCompactionHooks, setupToolHooks, } from "./setup-domains/hooks";
|
|
37
|
+
export type { DomainManagers } from "./setup-domains/managers";
|
|
38
|
+
export type { SetupToolsDomainResult } from "./setup-domains/tools";
|
|
39
|
+
export { setupToolsDomain } from "./setup-domains/tools";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { MatrixxConfig } from "
|
|
1
|
+
import type { MatrixxConfig } from "../../config";
|
|
2
|
+
import type { DomainHooks } from "../setup-domains";
|
|
2
3
|
import type { MatrixxContext } from "./context";
|
|
3
|
-
import type { DomainHooks } from "./setup-domains";
|
|
4
4
|
type FirstMessageVariantGate = {
|
|
5
5
|
shouldOverride: (sessionID: string) => boolean;
|
|
6
6
|
markApplied: (sessionID: string) => void;
|