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
|
@@ -18,15 +18,15 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
18
18
|
default_run_agent: z.ZodOptional<z.ZodString>;
|
|
19
19
|
disabled_mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
20
|
disabled_agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
21
|
-
trinity: "trinity";
|
|
22
|
-
operator: "operator";
|
|
23
|
-
merovingian: "merovingian";
|
|
24
|
-
seraph: "seraph";
|
|
25
|
-
smith: "smith";
|
|
26
|
-
construct: "construct";
|
|
27
21
|
morpheus: "morpheus";
|
|
28
22
|
keymaker: "keymaker";
|
|
29
23
|
oracle: "oracle";
|
|
24
|
+
merovingian: "merovingian";
|
|
25
|
+
operator: "operator";
|
|
26
|
+
trinity: "trinity";
|
|
27
|
+
construct: "construct";
|
|
28
|
+
seraph: "seraph";
|
|
29
|
+
smith: "smith";
|
|
30
30
|
niobe: "niobe";
|
|
31
31
|
cipher: "cipher";
|
|
32
32
|
sentinel: "sentinel";
|
|
@@ -35,10 +35,11 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
35
35
|
disabled_skills: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
36
36
|
playwright: "playwright";
|
|
37
37
|
"agent-browser": "agent-browser";
|
|
38
|
-
"
|
|
38
|
+
"playwright-cli": "playwright-cli";
|
|
39
39
|
"frontend-ui-ux": "frontend-ui-ux";
|
|
40
|
-
"git-master": "git-master";
|
|
41
40
|
"docker-master": "docker-master";
|
|
41
|
+
"git-master": "git-master";
|
|
42
|
+
"dev-browser": "dev-browser";
|
|
42
43
|
"dsl-core": "dsl-core";
|
|
43
44
|
"dsl-grammar": "dsl-grammar";
|
|
44
45
|
"dsl-codegen": "dsl-codegen";
|
|
@@ -50,12 +51,25 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
50
51
|
"dsl-testing": "dsl-testing";
|
|
51
52
|
"dsl-validation": "dsl-validation";
|
|
52
53
|
"dsl-composition": "dsl-composition";
|
|
54
|
+
"frontend-a11y": "frontend-a11y";
|
|
55
|
+
"bdd-backend": "bdd-backend";
|
|
56
|
+
"bdd-contract": "bdd-contract";
|
|
57
|
+
"bdd-frontend": "bdd-frontend";
|
|
58
|
+
"bdd-tests": "bdd-tests";
|
|
59
|
+
"frontend-build-tooling": "frontend-build-tooling";
|
|
60
|
+
"frontend-perf": "frontend-perf";
|
|
61
|
+
"frontend-state-data": "frontend-state-data";
|
|
62
|
+
"frontend-testing": "frontend-testing";
|
|
63
|
+
"react-nextjs-patterns": "react-nextjs-patterns";
|
|
64
|
+
"svelte-sveltekit-patterns": "svelte-sveltekit-patterns";
|
|
65
|
+
"document-reader": "document-reader";
|
|
53
66
|
"security-core": "security-core";
|
|
54
67
|
"security-secrets": "security-secrets";
|
|
55
68
|
"security-sast": "security-sast";
|
|
56
69
|
"security-dast": "security-dast";
|
|
57
70
|
"security-dependencies": "security-dependencies";
|
|
58
71
|
"security-api": "security-api";
|
|
72
|
+
"security-audit": "security-audit";
|
|
59
73
|
"security-crypto": "security-crypto";
|
|
60
74
|
"security-infra": "security-infra";
|
|
61
75
|
"security-review": "security-review";
|
|
@@ -66,10 +80,13 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
66
80
|
"matrixx-self-config": "matrixx-self-config";
|
|
67
81
|
"ulw-research": "ulw-research";
|
|
68
82
|
"remove-ai-slops": "remove-ai-slops";
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
83
|
+
"zeromq-core": "zeromq-core";
|
|
84
|
+
"zeromq-sockets-patterns": "zeromq-sockets-patterns";
|
|
85
|
+
"zeromq-advanced-reqrep": "zeromq-advanced-reqrep";
|
|
86
|
+
"zeromq-reliability": "zeromq-reliability";
|
|
87
|
+
"zeromq-pubsub": "zeromq-pubsub";
|
|
88
|
+
"zeromq-architecture": "zeromq-architecture";
|
|
89
|
+
"zeromq-frameworks": "zeromq-frameworks";
|
|
73
90
|
"python-asyncio": "python-asyncio";
|
|
74
91
|
"ccxt-rest": "ccxt-rest";
|
|
75
92
|
"ccxt-pro-websockets": "ccxt-pro-websockets";
|
|
@@ -82,8 +99,9 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
82
99
|
"grafana-dashboards": "grafana-dashboards";
|
|
83
100
|
"telegram-bot": "telegram-bot";
|
|
84
101
|
"resilience-error-taxonomy": "resilience-error-taxonomy";
|
|
85
|
-
"silent-failure-detection": "silent-failure-detection";
|
|
86
102
|
"resilience-failure-hunting": "resilience-failure-hunting";
|
|
103
|
+
"silent-failure-detection": "silent-failure-detection";
|
|
104
|
+
"systematic-debugging": "systematic-debugging";
|
|
87
105
|
"data-quality-observability": "data-quality-observability";
|
|
88
106
|
}>>>;
|
|
89
107
|
disabled_hooks: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -92,7 +110,6 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
92
110
|
"matrix-loop": "matrix-loop";
|
|
93
111
|
"start-work": "start-work";
|
|
94
112
|
"evolution-watcher": "evolution-watcher";
|
|
95
|
-
"task-continuation-enforcer": "task-continuation-enforcer";
|
|
96
113
|
"context-window-monitor": "context-window-monitor";
|
|
97
114
|
"session-recovery": "session-recovery";
|
|
98
115
|
"session-notification": "session-notification";
|
|
@@ -153,7 +170,7 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
153
170
|
"task-notepad-writer": "task-notepad-writer";
|
|
154
171
|
"session-memory": "session-memory";
|
|
155
172
|
"subagent-block": "subagent-block";
|
|
156
|
-
}>, z.ZodPipe<z.ZodLiteral<"anthropic-context-window-limit-recovery">, z.ZodTransform<"context-window-limit-recovery", "anthropic-context-window-limit-recovery">>, z.ZodLiteral<"todo-continuation-enforcer">, z.ZodLiteral<"compaction-todo-preserver">, z.ZodLiteral<"tasks-todowrite-disabler">, z.ZodLiteral<"task-notepad">, z.ZodLiteral<"preemptive-compaction">, z.ZodLiteral<"evolution-compressor">]>>>;
|
|
173
|
+
}>, z.ZodPipe<z.ZodLiteral<"anthropic-context-window-limit-recovery">, z.ZodTransform<"context-window-limit-recovery", "anthropic-context-window-limit-recovery">>, z.ZodLiteral<"todo-continuation-enforcer">, z.ZodLiteral<"compaction-todo-preserver">, z.ZodLiteral<"tasks-todowrite-disabler">, z.ZodLiteral<"task-notepad">, z.ZodLiteral<"task-continuation-enforcer">, z.ZodLiteral<"preemptive-compaction">, z.ZodLiteral<"evolution-compressor">]>>>;
|
|
157
174
|
disabled_commands: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
158
175
|
"init-deep": "init-deep";
|
|
159
176
|
"matrix-loop": "matrix-loop";
|
|
@@ -1033,8 +1050,8 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
1033
1050
|
provider: z.ZodDefault<z.ZodEnum<{
|
|
1034
1051
|
playwright: "playwright";
|
|
1035
1052
|
"agent-browser": "agent-browser";
|
|
1036
|
-
"dev-browser": "dev-browser";
|
|
1037
1053
|
"playwright-cli": "playwright-cli";
|
|
1054
|
+
"dev-browser": "dev-browser";
|
|
1038
1055
|
}>>;
|
|
1039
1056
|
}, z.core.$strip>>;
|
|
1040
1057
|
tmux: z.ZodOptional<z.ZodObject<{
|
|
@@ -1142,12 +1159,12 @@ export declare const MatrixxConfigSchema: z.ZodObject<{
|
|
|
1142
1159
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1143
1160
|
enforce: z.ZodDefault<z.ZodBoolean>;
|
|
1144
1161
|
blocked_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1145
|
-
read: "read";
|
|
1146
1162
|
grep: "grep";
|
|
1147
1163
|
glob: "glob";
|
|
1148
1164
|
webfetch: "webfetch";
|
|
1149
1165
|
bash: "bash";
|
|
1150
1166
|
shell: "shell";
|
|
1167
|
+
read: "read";
|
|
1151
1168
|
}>>>;
|
|
1152
1169
|
}, z.core.$strip>>;
|
|
1153
1170
|
memory: z.ZodOptional<z.ZodObject<{
|
|
@@ -22,11 +22,11 @@ export declare const BgHandleSchema: z.ZodObject<{
|
|
|
22
22
|
agent: z.ZodString;
|
|
23
23
|
status: z.ZodEnum<{
|
|
24
24
|
error: "error";
|
|
25
|
-
|
|
26
|
-
interrupt: "interrupt";
|
|
25
|
+
completed: "completed";
|
|
27
26
|
pending: "pending";
|
|
28
27
|
running: "running";
|
|
29
|
-
|
|
28
|
+
cancelled: "cancelled";
|
|
29
|
+
interrupt: "interrupt";
|
|
30
30
|
stopped: "stopped";
|
|
31
31
|
statusUncertain: "statusUncertain";
|
|
32
32
|
}>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/** Background-execution cross-link (separate layers, not moved in Phase 4):
|
|
2
|
+
* - `features/background-agent/` owns agent handle files and lifecycle management.
|
|
3
|
+
* - `hooks/background-notification/` observes session events and emits notifications.
|
|
4
|
+
* - `hooks/background-task-blocker/` guards tool execution while background tasks run.
|
|
5
|
+
* - `tools/background-task/` exposes agent-callable task controls (cancel/output/revive).
|
|
6
|
+
*/
|
|
1
7
|
export { BG_HANDLE_FILE_PREFIX, type BgHandle, BgHandleSchema, deleteHandleFile, getBgHandleDir, getHandlePath, readHandles, sweepStaleHandles, toHandle, writeHandle, } from "./handle-index";
|
|
2
8
|
export { BackgroundManager, type OnSubagentSessionCreated, type SubagentSessionCreatedEvent } from "./manager";
|
|
3
9
|
export { TaskStateManager } from "./state";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { EventProperties, OnSubagentSessionCreated, SubagentSessionCreatedEvent, } from "./manager";
|
|
2
|
+
export { BackgroundManager } from "./manager";
|
|
3
|
+
export { _resetPruneThrottleForTesting, listKnownSessions, resolveAny, } from "./reconcile";
|
|
4
|
+
export { ManagerStore } from "./store";
|
|
5
|
+
export type { ManagerRuntime, NativeDescendant, ResolveAnyResult } from "./types";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { NativeDomains } from "../../../shared/session/session-context-source";
|
|
2
|
+
import type { BackgroundTask, LaunchInput, ResumeInput } from "../types";
|
|
3
|
+
import type { ManagerRuntime } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* Task lifecycle: restore, launch, track, resume, prompt.
|
|
6
|
+
*
|
|
7
|
+
* Each function takes the shared `ManagerRuntime` explicitly instead of a
|
|
8
|
+
* `BackgroundManager` receiver — same statements, no `this`. Thin
|
|
9
|
+
* delegating methods on `BackgroundManager` preserve the public API.
|
|
10
|
+
*/
|
|
11
|
+
export declare function restoreHandles(rt: ManagerRuntime): Promise<void>;
|
|
12
|
+
export declare function launchTask(rt: ManagerRuntime, input: LaunchInput & {
|
|
13
|
+
sessionId?: string;
|
|
14
|
+
sessionID?: string;
|
|
15
|
+
messageId?: string;
|
|
16
|
+
messageID?: string;
|
|
17
|
+
}): Promise<BackgroundTask>;
|
|
18
|
+
export declare function trackTask(rt: ManagerRuntime, input: {
|
|
19
|
+
taskId: string;
|
|
20
|
+
sessionID: string;
|
|
21
|
+
parentSessionID: string;
|
|
22
|
+
description: string;
|
|
23
|
+
agent?: string;
|
|
24
|
+
parentAgent?: string;
|
|
25
|
+
concurrencyKey?: string;
|
|
26
|
+
}): Promise<BackgroundTask>;
|
|
27
|
+
export declare function resumeTask(rt: ManagerRuntime, input: ResumeInput): Promise<BackgroundTask>;
|
|
28
|
+
export declare function abortSessionQuietly(native: NativeDomains, sessionID: string, context?: string): void;
|
|
29
|
+
export declare function firePrompt(native: NativeDomains, task: BackgroundTask, prompt: string, skillContent?: string): Promise<void>;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import type { BackgroundTaskConfig, MatrixxConfig } from "../../../config/schema";
|
|
2
|
+
import type { V2Event } from "../../../plugin/tool/context";
|
|
3
|
+
import type { NativeDomains, NativePluginContext } from "../../../shared/session/session-context-source";
|
|
4
|
+
import type { EventProperties, OnSubagentSessionCreated, SubagentSessionCreatedEvent } from "../constants";
|
|
5
|
+
import { TaskHistory } from "../task-history";
|
|
6
|
+
import type { BackgroundTask, LaunchInput, ResumeInput, ReviveInput } from "../types";
|
|
7
|
+
import { listRevivable } from "./reconcile";
|
|
8
|
+
import { ManagerStore } from "./store";
|
|
9
|
+
import type { ManagerRuntime } from "./types";
|
|
10
|
+
export type { EventProperties, OnSubagentSessionCreated, SubagentSessionCreatedEvent, };
|
|
1
11
|
/**
|
|
2
12
|
* Native v2 background-task shim (D5).
|
|
3
13
|
*
|
|
@@ -20,35 +30,17 @@
|
|
|
20
30
|
* (pure eligibility logic), `task-history.ts` (compaction context),
|
|
21
31
|
* `types.ts` / `constants.ts` (shapes). The interactive-bash tool and the
|
|
22
32
|
* doctor `tmux-integration` check keep their own tmux binary usage.
|
|
23
|
-
*/
|
|
24
|
-
import type { BackgroundTaskConfig, MatrixxConfig } from "../../config/schema";
|
|
25
|
-
import type { V2Event } from "../../plugin/context";
|
|
26
|
-
import type { NativePluginContext } from "../../shared/session-context-source";
|
|
27
|
-
import type { EventProperties, OnSubagentSessionCreated, SubagentSessionCreatedEvent } from "./constants";
|
|
28
|
-
import { TaskHistory } from "./task-history";
|
|
29
|
-
import type { BackgroundTask, LaunchInput, ResumeInput, ReviveInput } from "./types";
|
|
30
|
-
export type { EventProperties, OnSubagentSessionCreated, SubagentSessionCreatedEvent, };
|
|
31
|
-
/**
|
|
32
|
-
* Ephemeral native session descriptor (T1 unified-bg-native-tracking).
|
|
33
33
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* which requires directory-scoped sqlite/JSON access.
|
|
34
|
+
* The class below is the composing control surface: it owns the
|
|
35
|
+
* `ManagerStore` and delegates lifecycle work to `lifecycle.ts` and
|
|
36
|
+
* event-driven consistency to `reconcile.ts`. Method bodies there are the
|
|
37
|
+
* original statements with the receiver spelled `rt` instead of `this`.
|
|
39
38
|
*/
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export declare class BackgroundManager {
|
|
46
|
-
private tasks;
|
|
47
|
-
private knownSessions;
|
|
48
|
-
private nativeDescCache;
|
|
49
|
-
private native;
|
|
50
|
-
private directory;
|
|
51
|
-
private config?;
|
|
39
|
+
export declare class BackgroundManager implements ManagerRuntime {
|
|
40
|
+
readonly store: ManagerStore;
|
|
41
|
+
readonly native: NativeDomains;
|
|
42
|
+
readonly directory: string;
|
|
43
|
+
readonly config?: BackgroundTaskConfig;
|
|
52
44
|
readonly taskHistory: TaskHistory;
|
|
53
45
|
constructor(ctx: NativePluginContext, config?: BackgroundTaskConfig, options?: {
|
|
54
46
|
/** @deprecated Native session events own display; ignored. */
|
|
@@ -57,6 +49,12 @@ export declare class BackgroundManager {
|
|
|
57
49
|
/** Full plugin config — supplies the `tasks.*` store location. */
|
|
58
50
|
pluginConfig?: Partial<MatrixxConfig>;
|
|
59
51
|
});
|
|
52
|
+
/**
|
|
53
|
+
* Legacy direct-state access: the live task registry.
|
|
54
|
+
* Tests and benches reach into `manager.tasks`; the getter keeps that
|
|
55
|
+
* working while the store owns the map.
|
|
56
|
+
*/
|
|
57
|
+
get tasks(): Map<string, BackgroundTask>;
|
|
60
58
|
/**
|
|
61
59
|
* Reload persisted handles for restart visibility. Persisted
|
|
62
60
|
* `running|pending` handles are NOT probed against the host (no reconcile
|
|
@@ -91,39 +89,18 @@ export declare class BackgroundManager {
|
|
|
91
89
|
resume(input: ResumeInput): Promise<BackgroundTask>;
|
|
92
90
|
/** Revive a terminal task with a new prompt via native `session.prompt`. */
|
|
93
91
|
revive(input: ReviveInput): Promise<BackgroundTask>;
|
|
94
|
-
listRevivable(parentSessionID?: string):
|
|
95
|
-
taskId: string;
|
|
96
|
-
description: string;
|
|
97
|
-
agent: string;
|
|
98
|
-
status: string;
|
|
99
|
-
sessionID: string;
|
|
100
|
-
terminalReason?: string;
|
|
101
|
-
}>;
|
|
92
|
+
listRevivable(parentSessionID?: string): ReturnType<typeof listRevivable>;
|
|
102
93
|
/**
|
|
103
94
|
* Native event routing (wired by the background-notification hook).
|
|
104
95
|
* Completion is detected from native session lifecycle events only —
|
|
105
96
|
* no polling, no reconcile probes.
|
|
106
97
|
*/
|
|
107
|
-
/**
|
|
108
|
-
* Normalize a raw session ID: trim surrounding whitespace and strip
|
|
109
|
-
* query/hash suffixes so mismatched shapes still hit the same task.
|
|
110
|
-
*/
|
|
111
|
-
private static normalizeSessionID;
|
|
112
98
|
handleEvent(event: V2Event): void;
|
|
113
99
|
getKnownSessionIds(): Set<string>;
|
|
114
100
|
getTask(id: string): BackgroundTask | undefined;
|
|
115
101
|
getTasksByParentSession(sessionID: string): BackgroundTask[];
|
|
116
102
|
getAllDescendantTasks(sessionID: string): BackgroundTask[];
|
|
117
|
-
|
|
118
|
-
* Read-only native descendants of a session (T1).
|
|
119
|
-
*
|
|
120
|
-
* Walks the ephemeral session-state registry: a native ses_ session
|
|
121
|
-
* counts as a descendant when its ancestor chain (via getParentSessionID)
|
|
122
|
-
* includes `sessionId`. Returns ephemeral descriptors only — no handle
|
|
123
|
-
* writes, no persistence. Cycle-guarded with a visited set (the older
|
|
124
|
-
* getAllDescendantTasks lacks one). Returns [] for unknown sessions.
|
|
125
|
-
*/
|
|
126
|
-
getNativeDescendants(sessionId: string): NativeDescendant[];
|
|
103
|
+
getNativeDescendants(sessionId: string): ReturnType<ManagerStore["getNativeDescendants"]>;
|
|
127
104
|
findBySession(sessionID: string): BackgroundTask | undefined;
|
|
128
105
|
findDiskTaskBySession(sessionID: string): BackgroundTask | undefined;
|
|
129
106
|
cancelTask(taskId: string, options?: {
|
|
@@ -149,51 +126,4 @@ export declare class BackgroundManager {
|
|
|
149
126
|
}>;
|
|
150
127
|
}>;
|
|
151
128
|
shutdown(): void;
|
|
152
|
-
private taskTtlMs;
|
|
153
|
-
private persistHandle;
|
|
154
|
-
private abortSessionQuietly;
|
|
155
|
-
/** Fire-and-forget native prompt with the task's agent/model/tool scope. */
|
|
156
|
-
private firePrompt;
|
|
157
129
|
}
|
|
158
|
-
/**
|
|
159
|
-
* Resolve any task/session id to a unified payload (unified output/wait_all).
|
|
160
|
-
*
|
|
161
|
-
* - bg_ prefix: registry map lookup (origin bg). Covers bg tasks only.
|
|
162
|
-
* - ses_ prefix: findBySession first (covering bg task); else read-only live
|
|
163
|
-
* lookup via the native client session.messages/session.get (no registry
|
|
164
|
-
* write, no handle persist). Origin is ses when the session answers live,
|
|
165
|
-
* foreign when only visible via bounded session.list backfill sweep.
|
|
166
|
-
* - task_id vs session_id ambiguity: a bg_ id that is also a session id is
|
|
167
|
-
* treated as a bg_ task first (registry wins); tools surface ambiguity.
|
|
168
|
-
* - unknown: typed { error: not_found, id }.
|
|
169
|
-
*/
|
|
170
|
-
export type ResolveAnyResult = {
|
|
171
|
-
origin: "bg";
|
|
172
|
-
task: import("./types").BackgroundTask;
|
|
173
|
-
} | {
|
|
174
|
-
origin: "ses" | "foreign";
|
|
175
|
-
sessionId: string;
|
|
176
|
-
output: unknown;
|
|
177
|
-
messages?: unknown;
|
|
178
|
-
} | {
|
|
179
|
-
error: "not_found";
|
|
180
|
-
id: string;
|
|
181
|
-
};
|
|
182
|
-
export declare function resolveAny(manager: BackgroundManager, id: string): Promise<ResolveAnyResult>;
|
|
183
|
-
/**
|
|
184
|
-
* Sessions covered by wait_all: pending/running bg_ tasks plus known live
|
|
185
|
-
* ses_* ids (knownSessions + bounded list backfill). Wired into
|
|
186
|
-
* waitForAllDescendants via uncoveredNatives; documented here so the
|
|
187
|
-
* coverage contract lives next to the query.
|
|
188
|
-
*/
|
|
189
|
-
export declare function listKnownSessions(manager: BackgroundManager): {
|
|
190
|
-
bgPending: string[];
|
|
191
|
-
liveSes: string[];
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Test-only reset hook (D5 native migration): the pre-migration in-memory
|
|
195
|
-
* prune throttle was removed — stale-handle expiry is now the throttle-free TTL sweep in
|
|
196
|
-
* `handle-index.ts` (`sweepStaleHandles`, invoked per operation). Kept as a
|
|
197
|
-
* no-op so `tests/test-setup.ts` and older prune-throttle tests keep loading.
|
|
198
|
-
*/
|
|
199
|
-
export declare function _resetPruneThrottleForTesting(): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { V2Event } from "../../../plugin/tool/context";
|
|
2
|
+
import type { BackgroundTask, ReviveInput } from "../types";
|
|
3
|
+
import type { BackgroundManager } from "./manager";
|
|
4
|
+
import type { ManagerRuntime, ResolveAnyResult } from "./types";
|
|
5
|
+
export declare function reviveTask(rt: ManagerRuntime, input: ReviveInput): Promise<BackgroundTask>;
|
|
6
|
+
export declare function listRevivable(rt: ManagerRuntime, parentSessionID?: string): Array<{
|
|
7
|
+
taskId: string;
|
|
8
|
+
description: string;
|
|
9
|
+
agent: string;
|
|
10
|
+
status: string;
|
|
11
|
+
sessionID: string;
|
|
12
|
+
terminalReason?: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function handleManagerEvent(rt: ManagerRuntime, event: V2Event): void;
|
|
15
|
+
export declare function resolveAny(manager: BackgroundManager, id: string): Promise<ResolveAnyResult>;
|
|
16
|
+
export declare function listKnownSessions(manager: BackgroundManager): {
|
|
17
|
+
bgPending: string[];
|
|
18
|
+
liveSes: string[];
|
|
19
|
+
};
|
|
20
|
+
export declare function _resetPruneThrottleForTesting(): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { BackgroundTaskConfig } from "../../../config/schema";
|
|
2
|
+
import type { BackgroundTask } from "../types";
|
|
3
|
+
import type { NativeDescendant } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* In-memory task registry behind `BackgroundManager`.
|
|
6
|
+
*
|
|
7
|
+
* Owns the task map, the known-session set, and the native-descendant
|
|
8
|
+
* cache plus every pure state query over them (getters, finders, handle
|
|
9
|
+
* persistence). Lifecycle (launch/track/resume) and reconcile
|
|
10
|
+
* (revive/events/resolve) live in their own modules and operate on this
|
|
11
|
+
* store through `ManagerRuntime` — they never touch `BackgroundManager`.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ManagerStore {
|
|
14
|
+
readonly tasks: Map<string, BackgroundTask>;
|
|
15
|
+
readonly knownSessions: Set<string>;
|
|
16
|
+
readonly nativeDescCache: Map<string, {
|
|
17
|
+
at: number;
|
|
18
|
+
rows: NativeDescendant[];
|
|
19
|
+
}>;
|
|
20
|
+
directory: string;
|
|
21
|
+
config?: BackgroundTaskConfig;
|
|
22
|
+
constructor(directory: string, config?: BackgroundTaskConfig);
|
|
23
|
+
static normalizeSessionID(raw: string): string;
|
|
24
|
+
getKnownSessionIds(): Set<string>;
|
|
25
|
+
getTask(id: string): BackgroundTask | undefined;
|
|
26
|
+
getTasksByParentSession(sessionID: string): BackgroundTask[];
|
|
27
|
+
getAllDescendantTasks(sessionID: string): BackgroundTask[];
|
|
28
|
+
getNativeDescendants(sessionId: string): NativeDescendant[];
|
|
29
|
+
findBySession(sessionID: string): BackgroundTask | undefined;
|
|
30
|
+
findDiskTaskBySession(sessionID: string): BackgroundTask | undefined;
|
|
31
|
+
taskTtlMs(): number;
|
|
32
|
+
persistHandle(task: BackgroundTask): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { BackgroundTaskConfig } from "../../../config/schema";
|
|
2
|
+
import type { NativeDomains } from "../../../shared/session/session-context-source";
|
|
3
|
+
import type { TaskHistory } from "../task-history";
|
|
4
|
+
import type { ManagerStore } from "./store";
|
|
5
|
+
/**
|
|
6
|
+
* Shared runtime handed to the lifecycle/reconcile function modules.
|
|
7
|
+
* `BackgroundManager` satisfies this structurally; the function modules
|
|
8
|
+
* never reach back into the class itself (no import cycle at runtime).
|
|
9
|
+
*/
|
|
10
|
+
export interface ManagerRuntime {
|
|
11
|
+
readonly store: ManagerStore;
|
|
12
|
+
readonly native: NativeDomains;
|
|
13
|
+
readonly directory: string;
|
|
14
|
+
readonly config?: BackgroundTaskConfig;
|
|
15
|
+
readonly taskHistory: TaskHistory;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Ephemeral native session descriptor (T1 unified-bg-native-tracking).
|
|
19
|
+
*
|
|
20
|
+
* Read-only view over the session-state registry — NOT a persisted bg_
|
|
21
|
+
* handle. Uses the lightweight `subagentSessions`/`subagentParentMap`
|
|
22
|
+
* registry (getSubagentSessionIDs + getParentSessionID) rather than the
|
|
23
|
+
* heavier storage.ts SDK read path (getMainSessions/getAllSessions),
|
|
24
|
+
* which requires directory-scoped sqlite/JSON access.
|
|
25
|
+
*/
|
|
26
|
+
export interface NativeDescendant {
|
|
27
|
+
sessionId: string;
|
|
28
|
+
parentSessionId: string;
|
|
29
|
+
isChild: boolean;
|
|
30
|
+
}
|
|
31
|
+
export type ResolveAnyResult = {
|
|
32
|
+
origin: "bg";
|
|
33
|
+
task: import("../types").BackgroundTask;
|
|
34
|
+
} | {
|
|
35
|
+
origin: "ses" | "foreign";
|
|
36
|
+
sessionId: string;
|
|
37
|
+
output: unknown;
|
|
38
|
+
messages?: unknown;
|
|
39
|
+
} | {
|
|
40
|
+
error: "not_found";
|
|
41
|
+
id: string;
|
|
42
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type StoredMessage } from "../hook-
|
|
1
|
+
import { type StoredMessage } from "../context-injection/hook-bridge";
|
|
2
2
|
export declare function getMessageDir(sessionID: string): string | null;
|
|
3
3
|
export declare function _resetMessageDirCacheForTesting(): void;
|
|
4
4
|
export declare function isCompactionAgent(agent: string | undefined): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionContextCarrier } from "../../shared/session-context-source";
|
|
1
|
+
import type { SessionContextCarrier } from "../../shared/session/session-context-source";
|
|
2
2
|
import type { BackgroundTask } from "./types";
|
|
3
3
|
export declare function buildCompletionNotification(task: Pick<BackgroundTask, "id" | "description" | "error" | "status">, allComplete: boolean, completedTasks: Pick<BackgroundTask, "id" | "description">[], remainingCount: number, duration: string, errorInfo: string): string;
|
|
4
4
|
export declare function resolveAgentAndModel(client: SessionContextCarrier, task: Pick<BackgroundTask, "parentSessionID" | "parentAgent">, enableParentSessionNotifications: boolean): Promise<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SessionContextCarrier } from "../../shared/session-context-source";
|
|
2
|
-
import type { SessionMessage } from "../../shared/session-message";
|
|
1
|
+
import type { SessionContextCarrier } from "../../shared/session/session-context-source";
|
|
2
|
+
import type { SessionMessage } from "../../shared/session/session-message";
|
|
3
3
|
export type SessionOutputClient = SessionContextCarrier;
|
|
4
4
|
export type { SessionMessage };
|
|
5
5
|
/**
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/** bdd barrel: explicit named re-exports of local modules only. */
|
|
2
|
+
export { type ApiAnnotations, ApiAnnotationsSchema, type ApiEndpoint, ApiEndpointSchema, type ApiResponse, ApiResponseSchema, type Background, BackgroundSchema, CamelCaseSchema, type Contract, type ContractAnnotations, ContractAnnotationsSchema, ContractSchema, DottedKebabSchema, type ExampleRow, ExampleRowSchema, type Feature, FeatureSchema, type HttpMethod, HttpMethodSchema, KebabCaseSchema, type ResponseFormat, ResponseFormatSchema, type Rule, RuleSchema, type Scenario, ScenarioSchema, type StateAnnotations, StateAnnotationsSchema, type StateTransition, StateTransitionSchema, type StateVariable, StateVariableSchema, type Step, type StepKeyword, StepKeywordSchema, StepSchema, type UiAnnotations, UiAnnotationsSchema, type UiRoute, UiRouteSchema, type UiString, UiStringSchema, type UiTestId, UiTestIdSchema, UrlPathSchema, type VarType, VarTypeSchema, } from "./schema";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** builtin-commands barrel: explicit named re-exports of local modules only. */
|
|
2
|
+
export { BUILTIN_COMMAND_DEFINITIONS, } from "./commands";
|
|
3
|
+
export { buildBuiltinCommandEntries, type CommandAgentDeps, type CommandDefinitionInput, type CommandInvocation, type CommandSessionDeps, type CommandTransformDomain, type CommandTransformEditor, evaluateCommandTemplate, type RegisterCommandTransformDeps, type RegisterCommandTransformResult, registerCommandTransform, } from "./commands.transform";
|
|
4
|
+
export type { BuiltinCommandName, BuiltinCommands, } from "./types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const STOP_CONTINUATION_TEMPLATE = "Stop all continuation mechanisms for the current session.\n\nThis command will:\n1. Stop
|
|
1
|
+
export declare const STOP_CONTINUATION_TEMPLATE = "Stop all continuation mechanisms for the current session.\n\nThis command will:\n1. Stop automatic continuation of incomplete tasks\n2. Cancel any active Matrix Loop\n3. Clear the mission state for the current project\n\nAfter running this command:\n- The session will not auto-continue when idle\n- You can manually continue work when ready\n- The stop state is per-session and clears when the session ends\n\nUse this when you need to pause automated continuation and take manual control.";
|
package/dist/features/{hook-message-injector → context-injection/hook-bridge}/constants.d.ts
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MESSAGE_STORAGE, OPENCODE_STORAGE, PART_STORAGE } from "
|
|
1
|
+
export { MESSAGE_STORAGE, OPENCODE_STORAGE, PART_STORAGE } from "../../../shared";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { MESSAGE_STORAGE } from "./constants";
|
|
2
2
|
export type { StoredMessage } from "./injector";
|
|
3
3
|
export { findFirstMessageWithAgent, findFirstMessageWithAgentFromSDK, findNearestMessageWithFields, findNearestMessageWithFieldsFromSDK, injectHookMessage, resolveMessageContext, } from "./injector";
|
|
4
|
-
export { invalidateSdkMessageCache } from "./sdk-message-cache";
|
|
4
|
+
export { _resetSdkMessageCache, invalidateSdkMessageCache } from "./sdk-message-cache";
|
|
5
5
|
export type { MessageMeta, OriginalMessageContext, TextPart, ToolPermission } from "./types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionContextCarrier } from "
|
|
1
|
+
import type { SessionContextCarrier } from "../../../shared/session/session-context-source";
|
|
2
2
|
import type { OriginalMessageContext, ToolPermission } from "./types";
|
|
3
3
|
export interface StoredMessage {
|
|
4
4
|
agent?: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** context-injection barrel: explicit named re-exports of local submodules only. */
|
|
2
|
+
export type { MessageMeta, OriginalMessageContext, StoredMessage, TextPart, ToolPermission, } from "./hook-bridge";
|
|
3
|
+
export { findFirstMessageWithAgent, findFirstMessageWithAgentFromSDK, findNearestMessageWithFields, findNearestMessageWithFieldsFromSDK, injectHookMessage, invalidateSdkMessageCache, MESSAGE_STORAGE, resolveMessageContext, } from "./hook-bridge";
|
|
4
|
+
export type { ContextEntry, ContextPriority, ContextSourceType, InjectionStrategy, MessageContext, OutputParts, PendingContext, RegisterContextOptions, } from "./injector";
|
|
5
|
+
export { ContextCollector, contextCollector, createContextInjectorMessagesTransformHook, MAX_MERGED_CHARS, MAX_PER_SOURCE_CHARS, } from "./injector";
|
|
6
|
+
export { buildContextModeRoutingBlock, buildFallbackRoutingBlock, CONTEXT_MODE_INJECTOR_ID, CONTEXT_MODE_NOTICE_MESSAGE, CONTEXT_MODE_NOTICE_TITLE, containsContextModeMarker, createContextModeSystemTransformHook, HOOK_NAME, hashInjectionContent, MATRIXX_CONTEXT_MODE_MARKER, } from "./routing";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** context-mode-routing barrel: explicit named re-exports of local modules only. */
|
|
2
|
+
export { buildContextModeRoutingBlock, buildFallbackRoutingBlock, containsContextModeMarker, MATRIXX_CONTEXT_MODE_MARKER, } from "./routing-block";
|
|
3
|
+
export { CONTEXT_MODE_INJECTOR_ID, CONTEXT_MODE_NOTICE_MESSAGE, CONTEXT_MODE_NOTICE_TITLE, createContextModeSystemTransformHook, HOOK_NAME, hashInjectionContent, } from "./system-transform";
|
package/dist/features/{context-mode-routing → context-injection/routing}/system-transform.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { MatrixxConfig } from "
|
|
2
|
-
import type { MatrixxContext } from "
|
|
3
|
-
import type { Hooks } from "
|
|
1
|
+
import type { MatrixxConfig } from "../../../config";
|
|
2
|
+
import type { MatrixxContext } from "../../../plugin/tool/context";
|
|
3
|
+
import type { Hooks } from "../../../plugin/tool/legacy-hooks";
|
|
4
4
|
export declare const HOOK_NAME = "context-mode-routing";
|
|
5
5
|
/** Stable injector id for injection-notifier dedupe. */
|
|
6
6
|
export declare const CONTEXT_MODE_INJECTOR_ID = "context-mode-routing";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/** Evolution layer cross-link (orchestration vs triggers vs actions):
|
|
2
|
+
* - Orchestration: this module (`features/evolution/`) owns the pipeline, store, and writer.
|
|
3
|
+
* - Triggers: `hooks/evolution-hitl`, `hooks/evolution-watcher`, `hooks/evolution-compressor`,
|
|
4
|
+
* `hooks/evolution-quality-gate` observe session/tool events and feed the pipeline.
|
|
5
|
+
* - Actions: `tools/evolution` exposes agent-callable tools (propose/approve/query) on the store.
|
|
6
|
+
*/
|
|
1
7
|
export { createCompressor } from "./compressor";
|
|
2
8
|
export { LlmCompressor } from "./compressor/llm";
|
|
3
9
|
export * from "./evaluator";
|
|
@@ -29,8 +29,8 @@ import { z } from "zod";
|
|
|
29
29
|
export declare const PlanContractSchema: z.ZodObject<{
|
|
30
30
|
frontMatter: z.ZodOptional<z.ZodObject<{
|
|
31
31
|
status: z.ZodEnum<{
|
|
32
|
-
pending: "pending";
|
|
33
32
|
completed: "completed";
|
|
33
|
+
pending: "pending";
|
|
34
34
|
in_progress: "in_progress";
|
|
35
35
|
}>;
|
|
36
36
|
revision: z.ZodNumber;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** rtk-routing barrel: explicit named re-exports of local modules only. */
|
|
2
|
+
export { buildRtkRoutingBlock, containsRtkMarker, MATRIXX_RTK_MARKER, } from "./routing-block";
|
|
3
|
+
export { createRtkSystemTransformHook, HOOK_NAME, hashRtkInjectionContent, RTK_INJECTOR_ID, RTK_NOTICE_MESSAGE, RTK_NOTICE_TITLE, type RtkSystemTransformOptions, } from "./system-transform";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../../config";
|
|
2
|
-
import type { MatrixxContext } from "../../plugin/context";
|
|
3
|
-
import type { Hooks } from "../../plugin/legacy-hooks";
|
|
2
|
+
import type { MatrixxContext } from "../../plugin/tool/context";
|
|
3
|
+
import type { Hooks } from "../../plugin/tool/legacy-hooks";
|
|
4
4
|
export declare const HOOK_NAME = "rtk-routing";
|
|
5
5
|
/** Stable injector id for injection-notifier dedupe. */
|
|
6
6
|
export declare const RTK_INJECTOR_ID = "rtk-routing";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/** session-state barrel: explicit named re-exports of local modules only. */
|
|
2
|
+
export { _resetForTesting, clearSessionAgent, clearSessionModel, getMainSessionID, getParentSessionID, getSessionAgent, getSessionModel, getSubagentSessionIDs, isMainSessionCandidate, registerSubagentSession, releaseSubagentSession, setMainSession, setSessionAgent, setSessionModel, subagentSessions, unregisterSubagentSession, updateSessionAgent, } from "./state";
|
package/dist/{hooks/task-continuation-enforcer → features/task-session-scope}/staleness.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MatrixxConfig } from "../../config/schema";
|
|
2
|
-
import type { Task } from "
|
|
2
|
+
import type { Task } from "../task-storage/types";
|
|
3
3
|
export declare const DEFAULT_STALE_AFTER_HOURS = 24;
|
|
4
|
-
export { DEFAULT_BACKGROUND_STALE_AFTER_HOURS } from "../../shared/task-system-gating";
|
|
4
|
+
export { DEFAULT_BACKGROUND_STALE_AFTER_HOURS } from "../../shared/config/task-system-gating";
|
|
5
5
|
/**
|
|
6
6
|
* Resolve the stale threshold (ms) from plugin config.
|
|
7
7
|
* `tasks.stale_after_hours` (default 24h, legacy `morpheus.tasks.stale_after_hours`) — a pending task whose
|
|
@@ -14,7 +14,7 @@ export declare function getStaleAfterMs(config?: Partial<MatrixxConfig>): number
|
|
|
14
14
|
* mtime basis as `getStaleAfterMs`, but a much shorter window because a task
|
|
15
15
|
* held `pending`/`in_progress` with no file activity is a far stronger signal
|
|
16
16
|
* when it is blocking a background handle than when it is merely delaying a
|
|
17
|
-
* continuation nudge. The
|
|
17
|
+
* continuation nudge. The 24h default deliberately stays at 24.
|
|
18
18
|
*/
|
|
19
19
|
export declare function getBackgroundStaleAfterMs(config?: Partial<MatrixxConfig>): number;
|
|
20
20
|
/**
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** task-storage barrel: explicit named re-exports of local modules only. */
|
|
2
|
+
export { acquireLock, acquireLockWithRetry, generateTaskId, getProjectTaskDir, getTaskDir, listTaskFiles, migrateLegacyTasksIfNeeded, readJsonSafe, resolveTaskListId, sanitizePathSegment, writeJsonAtomic, } from "./storage";
|
|
3
|
+
export { type Task, TaskSchema, type TaskStatus, TaskStatusSchema, } from "./types";
|