opencode-matrixx-v2 1.2.0 → 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.
Files changed (559) hide show
  1. package/README.md +11 -21
  2. package/dist/agents/agent-config.d.ts +3 -3
  3. package/dist/agents/dynamic-agent-prompt-builder.d.ts +2 -1
  4. package/dist/agents/oracle/system-prompt.d.ts +1 -1
  5. package/dist/cli.js +123 -105
  6. package/dist/config/schema/agent-names.d.ts +31 -13
  7. package/dist/config/schema/browser-automation.d.ts +2 -2
  8. package/dist/config/schema/context-mode.d.ts +1 -1
  9. package/dist/config/schema/hooks.d.ts +1 -2
  10. package/dist/config/schema/matrixx-config.d.ts +34 -17
  11. package/dist/features/background-agent/handle-index.d.ts +3 -3
  12. package/dist/features/background-agent/index.d.ts +6 -0
  13. package/dist/features/background-agent/manager/index.d.ts +5 -0
  14. package/dist/features/background-agent/manager/lifecycle.d.ts +29 -0
  15. package/dist/features/background-agent/{manager.d.ts → manager/manager.d.ts} +27 -97
  16. package/dist/features/background-agent/manager/reconcile.d.ts +20 -0
  17. package/dist/features/background-agent/manager/store.d.ts +33 -0
  18. package/dist/features/background-agent/manager/types.d.ts +42 -0
  19. package/dist/features/background-agent/message-dir.d.ts +1 -1
  20. package/dist/features/background-agent/notification-builder.d.ts +1 -1
  21. package/dist/features/background-agent/session-output.d.ts +2 -2
  22. package/dist/features/bdd/index.d.ts +2 -0
  23. package/dist/features/builtin-commands/index.d.ts +4 -0
  24. package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -1
  25. package/dist/features/{hook-message-injector → context-injection/hook-bridge}/constants.d.ts +1 -1
  26. package/dist/features/{hook-message-injector → context-injection/hook-bridge}/index.d.ts +1 -1
  27. package/dist/features/{hook-message-injector → context-injection/hook-bridge}/injector.d.ts +1 -1
  28. package/dist/features/context-injection/index.d.ts +6 -0
  29. package/dist/features/context-injection/routing/index.d.ts +3 -0
  30. package/dist/features/{context-mode-routing → context-injection/routing}/system-transform.d.ts +3 -3
  31. package/dist/features/evolution/index.d.ts +6 -0
  32. package/dist/features/plan-contract/schema.d.ts +1 -1
  33. package/dist/features/preset-state/index.d.ts +2 -0
  34. package/dist/features/rtk-routing/index.d.ts +3 -0
  35. package/dist/features/rtk-routing/system-transform.d.ts +2 -2
  36. package/dist/features/session-state/index.d.ts +2 -0
  37. package/dist/{hooks/task-continuation-enforcer → features/task-session-scope}/staleness.d.ts +3 -3
  38. package/dist/{hooks/task-continuation-enforcer → features/task-session-scope}/todo.d.ts +1 -1
  39. package/dist/features/task-storage/index.d.ts +3 -0
  40. package/dist/features/task-storage/types.d.ts +2 -2
  41. package/dist/features/task-toast-manager/types.d.ts +1 -1
  42. package/dist/hooks/agent-usage-reminder/hook.d.ts +1 -1
  43. package/dist/hooks/agent-usage-reminder/index.d.ts +5 -0
  44. package/dist/hooks/anthropic-effort/index.d.ts +2 -0
  45. package/dist/hooks/auto-update-checker/hook/background-update-check.d.ts +1 -1
  46. package/dist/hooks/auto-update-checker/hook/config-errors-toast.d.ts +1 -1
  47. package/dist/hooks/auto-update-checker/hook/connected-providers-status.d.ts +1 -1
  48. package/dist/hooks/auto-update-checker/hook/model-cache-warning.d.ts +1 -1
  49. package/dist/hooks/auto-update-checker/hook/spinner-toast.d.ts +1 -1
  50. package/dist/hooks/auto-update-checker/hook/startup-toasts.d.ts +1 -1
  51. package/dist/hooks/auto-update-checker/hook/update-toasts.d.ts +1 -1
  52. package/dist/hooks/auto-update-checker/hook.d.ts +1 -1
  53. package/dist/hooks/background-notification/hook.d.ts +1 -1
  54. package/dist/hooks/background-notification/index.d.ts +9 -0
  55. package/dist/hooks/background-task-blocker/index.d.ts +8 -0
  56. package/dist/hooks/bash-file-read-guard.d.ts +1 -1
  57. package/dist/hooks/category-skill-reminder/detector.d.ts +13 -0
  58. package/dist/hooks/category-skill-reminder/formatter.d.ts +5 -0
  59. package/dist/hooks/category-skill-reminder/hook.d.ts +8 -4
  60. package/dist/hooks/category-skill-reminder/index.d.ts +4 -0
  61. package/dist/hooks/comment-checker/index.d.ts +7 -0
  62. package/dist/hooks/compaction-context-injector/index.d.ts +2 -0
  63. package/dist/hooks/context-mode-enforcer/constants.d.ts +1 -1
  64. package/dist/hooks/context-mode-enforcer/hook.d.ts +1 -1
  65. package/dist/hooks/context-mode-enforcer/index.d.ts +4 -0
  66. package/dist/hooks/context-window-limit-recovery/client.d.ts +1 -1
  67. package/dist/hooks/context-window-limit-recovery/message-builder.d.ts +1 -1
  68. package/dist/hooks/context-window-limit-recovery/recovery-hook.d.ts +2 -2
  69. package/dist/hooks/context-window-monitor.d.ts +2 -2
  70. package/dist/hooks/dcp-nudge-sanitizer/hook.d.ts +1 -1
  71. package/dist/hooks/dcp-nudge-sanitizer/index.d.ts +3 -0
  72. package/dist/hooks/delegate-task-retry/hook.d.ts +1 -1
  73. package/dist/hooks/delegate-task-retry/index.d.ts +4 -0
  74. package/dist/hooks/design-intent-preserver/hook.d.ts +1 -1
  75. package/dist/hooks/design-intent-preserver/index.d.ts +4 -0
  76. package/dist/hooks/directory-agents-injector/hook.d.ts +2 -2
  77. package/dist/hooks/directory-agents-injector/index.d.ts +5 -0
  78. package/dist/hooks/directory-agents-injector/injector.d.ts +2 -2
  79. package/dist/hooks/directory-injector/factory.d.ts +2 -2
  80. package/dist/hooks/docs-lookup-guard/hook.d.ts +2 -2
  81. package/dist/hooks/docs-lookup-guard/index.d.ts +3 -0
  82. package/dist/hooks/document-reader-guard/hook.d.ts +2 -2
  83. package/dist/hooks/document-reader-guard/index.d.ts +3 -0
  84. package/dist/hooks/domain-keyword-detector/hook.d.ts +1 -1
  85. package/dist/hooks/edit-error-recovery/hook.d.ts +1 -1
  86. package/dist/hooks/edit-error-recovery/index.d.ts +2 -0
  87. package/dist/hooks/empty-task-response-detector.d.ts +1 -1
  88. package/dist/hooks/env-context-injector/flat.d.ts +1 -1
  89. package/dist/hooks/env-context-injector/index.d.ts +1 -1
  90. package/dist/hooks/env-file-write-guard/index.d.ts +3 -0
  91. package/dist/hooks/evolution-compressor/host-llm-call.d.ts +1 -1
  92. package/dist/hooks/evolution-compressor/index.d.ts +8 -0
  93. package/dist/hooks/evolution-hitl/index.d.ts +6 -0
  94. package/dist/hooks/evolution-quality-gate/index.d.ts +6 -0
  95. package/dist/hooks/evolution-watcher/index.d.ts +7 -1
  96. package/dist/hooks/hashline-read-enhancer/hook.d.ts +1 -1
  97. package/dist/hooks/hashline-read-enhancer/index.d.ts +2 -0
  98. package/dist/hooks/index.d.ts +0 -1
  99. package/dist/hooks/input-secret-guard/hook.d.ts +1 -1
  100. package/dist/hooks/input-secret-guard/index.d.ts +5 -0
  101. package/dist/hooks/interactive-bash-session/hook.d.ts +2 -2
  102. package/dist/hooks/interactive-bash-session/index.d.ts +7 -0
  103. package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
  104. package/dist/hooks/keyword-detector/constants.d.ts +1 -1
  105. package/dist/hooks/keyword-detector/hook.d.ts +2 -2
  106. package/dist/hooks/keyword-detector/index.d.ts +4 -0
  107. package/dist/hooks/knowledge-hub-guard/hook.d.ts +1 -1
  108. package/dist/hooks/knowledge-hub-guard/index.d.ts +3 -0
  109. package/dist/hooks/knowledge-hub-injector/hook.d.ts +3 -3
  110. package/dist/hooks/knowledge-hub-injector/index.d.ts +2 -0
  111. package/dist/hooks/knowledge-hub-search-nudge/hook.d.ts +1 -1
  112. package/dist/hooks/knowledge-hub-search-nudge/index.d.ts +2 -0
  113. package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +2 -2
  114. package/dist/hooks/matrix-loop/completion-verifier.d.ts +1 -1
  115. package/dist/hooks/matrix-loop/continuation-prompt-injector.d.ts +1 -1
  116. package/dist/hooks/matrix-loop/index.d.ts +12 -0
  117. package/dist/hooks/matrix-loop/matrix-loop-event-handler.d.ts +2 -2
  118. package/dist/hooks/matrix-loop/matrix-loop-hook.d.ts +2 -2
  119. package/dist/hooks/mouse-notepad/hook.d.ts +1 -1
  120. package/dist/hooks/mouse-notepad/index.d.ts +3 -0
  121. package/dist/hooks/niobe/event-handler.d.ts +2 -2
  122. package/dist/hooks/niobe/index.d.ts +16 -0
  123. package/dist/hooks/niobe/mission-continuation-injector.d.ts +1 -1
  124. package/dist/hooks/niobe/niobe-hook.d.ts +2 -2
  125. package/dist/hooks/niobe/recent-model-resolver.d.ts +1 -1
  126. package/dist/hooks/niobe/session-last-agent.d.ts +1 -1
  127. package/dist/hooks/niobe/tool-execute-after.d.ts +1 -1
  128. package/dist/hooks/niobe/tool-execute-before.d.ts +1 -1
  129. package/dist/hooks/non-interactive-env/index.d.ts +4 -0
  130. package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +1 -1
  131. package/dist/hooks/nudge-loop-breaker/hook.d.ts +2 -2
  132. package/dist/hooks/nudge-loop-breaker/index.d.ts +4 -0
  133. package/dist/hooks/oracle-md-only/agent-resolution.d.ts +1 -1
  134. package/dist/hooks/oracle-md-only/hook.d.ts +1 -1
  135. package/dist/hooks/oracle-md-only/index.d.ts +6 -0
  136. package/dist/hooks/plan-persister/hook.d.ts +2 -2
  137. package/dist/hooks/post-read-injector/hook.d.ts +2 -2
  138. package/dist/hooks/post-read-injector/injector.d.ts +1 -1
  139. package/dist/hooks/quality-gate/index.d.ts +2 -0
  140. package/dist/hooks/read-image-resizer/hook.d.ts +1 -1
  141. package/dist/hooks/read-image-resizer/index.d.ts +6 -0
  142. package/dist/hooks/rtk-bash-rewriter/hook.d.ts +1 -1
  143. package/dist/hooks/rtk-bash-rewriter/index.d.ts +4 -0
  144. package/dist/hooks/rules-injector/hook.d.ts +2 -2
  145. package/dist/hooks/rules-injector/index.d.ts +14 -0
  146. package/dist/hooks/runtime-fallback/event-handler.d.ts +1 -1
  147. package/dist/hooks/runtime-fallback/session-messages.d.ts +2 -2
  148. package/dist/hooks/runtime-fallback/types.d.ts +2 -2
  149. package/dist/hooks/secret-leak-guard/hook.d.ts +1 -1
  150. package/dist/hooks/secret-leak-guard/index.d.ts +5 -0
  151. package/dist/hooks/session-memory/hook.d.ts +1 -1
  152. package/dist/hooks/session-notification-scheduler.d.ts +1 -1
  153. package/dist/hooks/session-notification-sender.d.ts +1 -1
  154. package/dist/hooks/session-notification.d.ts +2 -2
  155. package/dist/hooks/session-recovery/hook.d.ts +1 -1
  156. package/dist/hooks/session-recovery/recover-thinking-block-order.d.ts +1 -1
  157. package/dist/hooks/session-recovery/recover-thinking-disabled-violation.d.ts +1 -1
  158. package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +1 -1
  159. package/dist/hooks/session-recovery/resume.d.ts +1 -1
  160. package/dist/hooks/session-recovery/storage/empty-text.d.ts +1 -1
  161. package/dist/hooks/session-recovery/storage/messages-reader.d.ts +1 -1
  162. package/dist/hooks/session-recovery/storage/parts-reader.d.ts +1 -1
  163. package/dist/hooks/session-recovery/storage/text-part-injector.d.ts +1 -1
  164. package/dist/hooks/session-recovery/storage/thinking-prepend.d.ts +1 -1
  165. package/dist/hooks/session-recovery/storage/thinking-strip.d.ts +1 -1
  166. package/dist/hooks/session-recovery/storage.d.ts +1 -1
  167. package/dist/hooks/session-recovery/types.d.ts +2 -2
  168. package/dist/hooks/silent-failure-guard/hook.d.ts +1 -1
  169. package/dist/hooks/software-dev-enforcement/index.d.ts +3 -0
  170. package/dist/hooks/start-work/index.d.ts +3 -0
  171. package/dist/hooks/start-work/start-work-hook.d.ts +1 -1
  172. package/dist/hooks/stop-continuation-guard/hook.d.ts +2 -2
  173. package/dist/hooks/stop-continuation-guard/index.d.ts +2 -0
  174. package/dist/hooks/subagent-block/hook.d.ts +2 -2
  175. package/dist/hooks/subagent-block/index.d.ts +3 -0
  176. package/dist/hooks/task-edit-guard/hook.d.ts +2 -2
  177. package/dist/hooks/task-edit-guard/index.d.ts +3 -0
  178. package/dist/hooks/task-notepad-writer/index.d.ts +4 -0
  179. package/dist/hooks/task-notepad-writer/notepad-path.d.ts +1 -1
  180. package/dist/hooks/task-resume-info/index.d.ts +2 -0
  181. package/dist/hooks/think-mode/hook.d.ts +1 -1
  182. package/dist/hooks/thinking-block-validator/index.d.ts +3 -0
  183. package/dist/hooks/tool-output-truncator.d.ts +1 -1
  184. package/dist/hooks/tool-pair-validator/index.d.ts +2 -0
  185. package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +2 -2
  186. package/dist/hooks/webfetch-redirect-guard/hook.d.ts +1 -1
  187. package/dist/hooks/webfetch-redirect-guard/index.d.ts +4 -0
  188. package/dist/hooks/write-existing-file-guard/hook.d.ts +2 -2
  189. package/dist/hooks/write-existing-file-guard/index.d.ts +2 -0
  190. package/dist/index.d.ts +2 -2
  191. package/dist/index.js +45168 -45645
  192. package/dist/matrixx.schema.json +29 -8
  193. package/dist/{plugin-handlers → plugin/handlers}/agent-config-handler.d.ts +2 -2
  194. package/dist/{plugin-handlers → plugin/handlers}/category-config-resolver.d.ts +1 -1
  195. package/dist/{plugin-handlers → plugin/handlers}/command-config-handler.d.ts +1 -1
  196. package/dist/{plugin-handlers → plugin/handlers}/config-handler.d.ts +2 -2
  197. package/dist/{plugin-handlers → plugin/handlers}/mcp-config-handler.d.ts +1 -1
  198. package/dist/{plugin-handlers → plugin/handlers}/oracle-agent-config-builder.d.ts +3 -3
  199. package/dist/{plugin-handlers → plugin/handlers}/plugin-components-loader.d.ts +1 -1
  200. package/dist/{plugin-handlers → plugin/handlers}/provider-config-handler.d.ts +1 -1
  201. package/dist/{plugin-handlers → plugin/handlers}/task-permissions.d.ts +1 -1
  202. package/dist/{plugin-handlers → plugin/handlers}/tool-config-handler.d.ts +1 -1
  203. package/dist/plugin/hooks/create-continuation-hooks.d.ts +3 -4
  204. package/dist/plugin/hooks/create-session-hooks.d.ts +1 -1
  205. package/dist/plugin/hooks/create-skill-hooks.d.ts +1 -1
  206. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +1 -1
  207. package/dist/plugin/hooks/create-transform-hooks.d.ts +3 -3
  208. package/dist/plugin/index.d.ts +43 -0
  209. package/dist/plugin/message-hooks/context-injector.d.ts +3 -3
  210. package/dist/plugin/message-hooks/dcp-nudge-sanitizer.d.ts +1 -1
  211. package/dist/plugin/message-hooks/domain-keyword-detector.d.ts +2 -2
  212. package/dist/plugin/message-hooks/env-context-injector.d.ts +1 -1
  213. package/dist/plugin/message-hooks/evolution-hitl.d.ts +1 -1
  214. package/dist/plugin/message-hooks/index.d.ts +2 -2
  215. package/dist/plugin/message-hooks/knowledge-hub-injector.d.ts +3 -3
  216. package/dist/plugin/message-hooks/thinking-block-validator.d.ts +1 -1
  217. package/dist/plugin/message-hooks/tool-pair-validator.d.ts +1 -1
  218. package/dist/plugin/setup-domains/assemble.d.ts +28 -0
  219. package/dist/plugin/setup-domains/hooks.d.ts +33 -0
  220. package/dist/plugin/setup-domains/index.d.ts +5 -0
  221. package/dist/plugin/setup-domains/managers.d.ts +15 -0
  222. package/dist/plugin/setup-domains/tools.d.ts +23 -0
  223. package/dist/plugin/setup-domains.d.ts +10 -86
  224. package/dist/plugin/tool/available-categories.d.ts +3 -0
  225. package/dist/plugin/{chat-message.d.ts → tool/chat-message.d.ts} +2 -2
  226. package/dist/plugin/{context.d.ts → tool/context.d.ts} +2 -2
  227. package/dist/plugin/{event.d.ts → tool/event.d.ts} +3 -3
  228. package/dist/plugin/tool/index.d.ts +22 -0
  229. package/dist/plugin/{legacy-hooks.d.ts → tool/legacy-hooks.d.ts} +1 -1
  230. package/dist/plugin/{native-context.d.ts → tool/native-context.d.ts} +1 -1
  231. package/dist/plugin/{session-agent-resolver.d.ts → tool/session-agent-resolver.d.ts} +1 -1
  232. package/dist/plugin/{skill-context.d.ts → tool/skill-context.d.ts} +4 -4
  233. package/dist/plugin/{tool-catalog.d.ts → tool/tool-catalog.d.ts} +4 -4
  234. package/dist/plugin/{tool-definition.d.ts → tool/tool-definition.d.ts} +2 -2
  235. package/dist/plugin/{tool-execute-after.d.ts → tool/tool-execute-after.d.ts} +1 -1
  236. package/dist/plugin/{tool-execute-before.d.ts → tool/tool-execute-before.d.ts} +2 -2
  237. package/dist/plugin/{unstable-agent-babysitter.d.ts → tool/unstable-agent-babysitter.d.ts} +3 -3
  238. package/dist/shared/{agent-variant.d.ts → agent/agent-variant.d.ts} +1 -1
  239. package/dist/shared/agent/index.d.ts +5 -0
  240. package/dist/shared/{context-limits.d.ts → compaction/context-limits.d.ts} +1 -1
  241. package/dist/shared/{dynamic-truncator.d.ts → compaction/dynamic-truncator.d.ts} +2 -2
  242. package/dist/shared/compaction/index.d.ts +7 -0
  243. package/dist/shared/config/index.d.ts +8 -0
  244. package/dist/shared/{task-system-gating.d.ts → config/task-system-gating.d.ts} +2 -2
  245. package/dist/shared/index.d.ts +63 -61
  246. package/dist/shared/io/index.d.ts +8 -0
  247. package/dist/shared/model/index.d.ts +7 -0
  248. package/dist/shared/{model-requirements.d.ts → model/model-requirements.d.ts} +1 -1
  249. package/dist/shared/{model-suggestion-retry.d.ts → model/model-suggestion-retry.d.ts} +1 -1
  250. package/dist/shared/opencode/index.d.ts +5 -0
  251. package/dist/shared/{memory-backend-detect.d.ts → opencode/memory-backend-detect.d.ts} +1 -1
  252. package/dist/shared/outcome/index.d.ts +5 -0
  253. package/dist/shared/{dcp-switch-profile.d.ts → policy/dcp-switch-profile.d.ts} +1 -1
  254. package/dist/shared/policy/index.d.ts +7 -0
  255. package/dist/shared/{injection-notifier.d.ts → policy/injection-notifier.d.ts} +1 -1
  256. package/dist/shared/{rtk-enforcement.d.ts → policy/rtk-enforcement.d.ts} +1 -1
  257. package/dist/shared/runtime/index.d.ts +7 -0
  258. package/dist/shared/session/index.d.ts +14 -0
  259. package/dist/shared/{session-context-source.d.ts → session/session-context-source.d.ts} +1 -1
  260. package/dist/shared/text/index.d.ts +7 -0
  261. package/dist/{tools/shared → shared/tool}/define-tool.d.ts +1 -1
  262. package/dist/shared/{disabled-tools.d.ts → tool/disabled-tools.d.ts} +1 -1
  263. package/dist/shared/tool/index.d.ts +6 -0
  264. package/dist/shared/{merge-categories.d.ts → tool/merge-categories.d.ts} +1 -1
  265. package/dist/skills/{skills → builtin/bdd}/bdd-backend.d.ts +1 -1
  266. package/dist/skills/{skills → builtin/bdd}/bdd-contract.d.ts +1 -1
  267. package/dist/skills/{skills → builtin/bdd}/bdd-frontend.d.ts +1 -1
  268. package/dist/skills/{skills → builtin/bdd}/bdd-tests.d.ts +1 -1
  269. package/dist/skills/builtin/bdd/index.d.ts +4 -0
  270. package/dist/skills/builtin/core/dev-browser.d.ts +2 -0
  271. package/dist/skills/builtin/core/docker-master/build.d.ts +1 -0
  272. package/dist/skills/builtin/core/docker-master/compose.d.ts +1 -0
  273. package/dist/skills/builtin/core/docker-master/delivery.d.ts +1 -0
  274. package/dist/skills/builtin/core/docker-master/index.d.ts +2 -0
  275. package/dist/skills/builtin/core/docker-master/reference.d.ts +1 -0
  276. package/dist/skills/{skills → builtin/core}/document-reader.d.ts +1 -1
  277. package/dist/skills/builtin/core/git-master/commit.d.ts +1 -0
  278. package/dist/skills/builtin/core/git-master/execution.d.ts +1 -0
  279. package/dist/skills/builtin/core/git-master/history.d.ts +1 -0
  280. package/dist/skills/builtin/core/git-master/index.d.ts +2 -0
  281. package/dist/skills/builtin/core/git-master/rebase.d.ts +1 -0
  282. package/dist/skills/builtin/core/index.d.ts +19 -0
  283. package/dist/skills/{skills → builtin/core}/matrixx-self-config.d.ts +1 -1
  284. package/dist/skills/{skills → builtin/core}/playwright-cli.d.ts +1 -1
  285. package/dist/skills/{skills → builtin/core}/playwright.d.ts +1 -1
  286. package/dist/skills/{skills → builtin/core}/python-asyncio.d.ts +1 -1
  287. package/dist/skills/builtin/core/quality-gate.d.ts +2 -0
  288. package/dist/skills/builtin/core/remove-ai-slops.d.ts +2 -0
  289. package/dist/skills/{skills → builtin/core}/resilience-error-taxonomy.d.ts +1 -1
  290. package/dist/skills/{skills → builtin/core}/resilience-failure-hunting.d.ts +1 -1
  291. package/dist/skills/builtin/core/review-work.d.ts +2 -0
  292. package/dist/skills/{skills → builtin/core}/silent-failure-detection.d.ts +1 -1
  293. package/dist/skills/builtin/core/software-dev.d.ts +2 -0
  294. package/dist/skills/{skills → builtin/core}/systematic-debugging.d.ts +1 -1
  295. package/dist/skills/builtin/core/tdd-enforcer.d.ts +2 -0
  296. package/dist/skills/{skills → builtin/core}/telegram-bot.d.ts +1 -1
  297. package/dist/skills/builtin/core/ulw-research.d.ts +2 -0
  298. package/dist/skills/{skills → builtin/dsl}/dsl-codegen.d.ts +1 -1
  299. package/dist/skills/{skills → builtin/dsl}/dsl-composition.d.ts +1 -1
  300. package/dist/skills/{skills → builtin/dsl}/dsl-core.d.ts +1 -1
  301. package/dist/skills/{skills → builtin/dsl}/dsl-grammar.d.ts +1 -1
  302. package/dist/skills/{skills → builtin/dsl}/dsl-metamodel.d.ts +1 -1
  303. package/dist/skills/{skills → builtin/dsl}/dsl-model-transformation.d.ts +1 -1
  304. package/dist/skills/{skills → builtin/dsl}/dsl-pyecore-advanced.d.ts +1 -1
  305. package/dist/skills/{skills → builtin/dsl}/dsl-testing.d.ts +1 -1
  306. package/dist/skills/{skills → builtin/dsl}/dsl-textx-ecosystem.d.ts +1 -1
  307. package/dist/skills/{skills → builtin/dsl}/dsl-tooling.d.ts +1 -1
  308. package/dist/skills/{skills → builtin/dsl}/dsl-validation.d.ts +1 -1
  309. package/dist/skills/builtin/dsl/index.d.ts +11 -0
  310. package/dist/skills/{skills → builtin/frontend}/frontend-a11y.d.ts +1 -1
  311. package/dist/skills/{skills → builtin/frontend}/frontend-build-tooling.d.ts +1 -1
  312. package/dist/skills/{skills → builtin/frontend}/frontend-perf.d.ts +1 -1
  313. package/dist/skills/{skills → builtin/frontend}/frontend-react-nextjs.d.ts +1 -1
  314. package/dist/skills/{skills → builtin/frontend}/frontend-state-data.d.ts +1 -1
  315. package/dist/skills/{skills → builtin/frontend}/frontend-svelte-sveltekit.d.ts +1 -1
  316. package/dist/skills/{skills → builtin/frontend}/frontend-testing.d.ts +1 -1
  317. package/dist/skills/builtin/frontend/frontend-ui-ux.d.ts +2 -0
  318. package/dist/skills/builtin/frontend/index.d.ts +8 -0
  319. package/dist/skills/builtin/index.d.ts +7 -0
  320. package/dist/skills/{skills → builtin/market-data}/ccxt-pro-websockets.d.ts +1 -1
  321. package/dist/skills/{skills → builtin/market-data}/ccxt-rest.d.ts +1 -1
  322. package/dist/skills/{skills → builtin/market-data}/crypto-market-structure.d.ts +1 -1
  323. package/dist/skills/{skills → builtin/market-data}/data-quality-observability.d.ts +1 -1
  324. package/dist/skills/{skills → builtin/market-data}/grafana-dashboards.d.ts +1 -1
  325. package/dist/skills/builtin/market-data/index.d.ts +10 -0
  326. package/dist/skills/{skills → builtin/market-data}/influxdb-timeseries.d.ts +1 -1
  327. package/dist/skills/{skills → builtin/market-data}/market-data-architecture.d.ts +1 -1
  328. package/dist/skills/{skills → builtin/market-data}/market-data-bus.d.ts +1 -1
  329. package/dist/skills/{skills → builtin/market-data}/market-data-robustness-review.d.ts +1 -1
  330. package/dist/skills/{skills → builtin/market-data}/time-series-fundamentals.d.ts +1 -1
  331. package/dist/skills/builtin/security/index.d.ts +10 -0
  332. package/dist/skills/{skills → builtin/security}/security-api.d.ts +1 -1
  333. package/dist/skills/{skills → builtin/security}/security-audit.d.ts +1 -1
  334. package/dist/skills/{skills → builtin/security}/security-core.d.ts +1 -1
  335. package/dist/skills/{skills → builtin/security}/security-crypto.d.ts +1 -1
  336. package/dist/skills/{skills → builtin/security}/security-dast.d.ts +1 -1
  337. package/dist/skills/{skills → builtin/security}/security-dependencies.d.ts +1 -1
  338. package/dist/skills/{skills → builtin/security}/security-infra.d.ts +1 -1
  339. package/dist/skills/{skills → builtin/security}/security-review.d.ts +1 -1
  340. package/dist/skills/{skills → builtin/security}/security-sast.d.ts +1 -1
  341. package/dist/skills/{skills → builtin/security}/security-secrets.d.ts +1 -1
  342. package/dist/skills/builtin/zeromq/index.d.ts +7 -0
  343. package/dist/skills/{skills → builtin/zeromq}/zeromq-advanced-reqrep.d.ts +1 -1
  344. package/dist/skills/{skills → builtin/zeromq}/zeromq-architecture.d.ts +1 -1
  345. package/dist/skills/{skills → builtin/zeromq}/zeromq-core.d.ts +1 -1
  346. package/dist/skills/{skills → builtin/zeromq}/zeromq-frameworks.d.ts +1 -1
  347. package/dist/skills/{skills → builtin/zeromq}/zeromq-pubsub.d.ts +1 -1
  348. package/dist/skills/{skills → builtin/zeromq}/zeromq-reliability.d.ts +1 -1
  349. package/dist/skills/{skills → builtin/zeromq}/zeromq-sockets-patterns.d.ts +1 -1
  350. package/dist/skills/index.d.ts +10 -4
  351. package/dist/skills/{skills.d.ts → loader/factories.d.ts} +1 -1
  352. package/dist/skills/loader/index.d.ts +4 -0
  353. package/dist/tools/assembly/index.d.ts +9 -0
  354. package/dist/tools/assembly/tools.d.ts +1 -1
  355. package/dist/tools/ast-grep/index.d.ts +14 -0
  356. package/dist/tools/ast-grep/tools.d.ts +2 -2
  357. package/dist/tools/background-task/clients.d.ts +1 -1
  358. package/dist/tools/background-task/create-background-cancel.d.ts +1 -1
  359. package/dist/tools/background-task/create-background-output.d.ts +2 -2
  360. package/dist/tools/background-task/create-background-revive.d.ts +1 -1
  361. package/dist/tools/background-task/create-background-wait-all.d.ts +1 -1
  362. package/dist/tools/background-task/full-session-format.d.ts +1 -1
  363. package/dist/tools/background-task/index.d.ts +6 -0
  364. package/dist/tools/background-task/message-dir.d.ts +1 -1
  365. package/dist/tools/background-task/task-result-format.d.ts +1 -1
  366. package/dist/tools/bdd-create-contract/index.d.ts +4 -0
  367. package/dist/tools/bdd-create-contract/tools.d.ts +1 -1
  368. package/dist/tools/bdd-parse-gherkin/index.d.ts +4 -0
  369. package/dist/tools/bdd-parse-gherkin/tools.d.ts +1 -1
  370. package/dist/tools/bdd-pipeline/index.d.ts +9 -0
  371. package/dist/tools/bdd-pipeline/tools.d.ts +1 -1
  372. package/dist/tools/bdd-validate-contract/index.d.ts +2 -0
  373. package/dist/tools/bdd-validate-contract/tools.d.ts +1 -1
  374. package/dist/tools/dashboard-flux-validator/index.d.ts +5 -0
  375. package/dist/tools/dashboard-flux-validator/tools.d.ts +2 -2
  376. package/dist/tools/delegate-task/diagnostic-shape.d.ts +1 -1
  377. package/dist/tools/delegate-task/error-formatting.d.ts +2 -2
  378. package/dist/tools/delegate-task/executor-types.d.ts +1 -1
  379. package/dist/tools/delegate-task/model-selection.d.ts +1 -1
  380. package/dist/tools/delegate-task/sync-prompt-sender.d.ts +1 -1
  381. package/dist/tools/delegate-task/sync-session-poller.d.ts +1 -1
  382. package/dist/tools/delegate-task/tools.d.ts +1 -1
  383. package/dist/tools/delegate-task/types.d.ts +1 -1
  384. package/dist/tools/evolution/index.d.ts +6 -0
  385. package/dist/tools/evolution/tools.d.ts +2 -2
  386. package/dist/tools/github-search/index.d.ts +6 -0
  387. package/dist/tools/github-search/tools.d.ts +2 -2
  388. package/dist/tools/glob/index.d.ts +6 -0
  389. package/dist/tools/glob/tools.d.ts +2 -2
  390. package/dist/tools/grep/index.d.ts +7 -0
  391. package/dist/tools/grep/tools.d.ts +2 -2
  392. package/dist/tools/handoff/create-handler.d.ts +1 -1
  393. package/dist/tools/handoff/index.d.ts +9 -0
  394. package/dist/tools/handoff/tools.d.ts +2 -2
  395. package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +1 -1
  396. package/dist/tools/hashline-edit/tools.d.ts +1 -1
  397. package/dist/tools/index.d.ts +2 -2
  398. package/dist/tools/interactive-bash/tools.d.ts +1 -1
  399. package/dist/tools/knowledge-hub-confirm/index.d.ts +2 -0
  400. package/dist/tools/knowledge-hub-confirm/tools.d.ts +2 -2
  401. package/dist/tools/look-at/index.d.ts +8 -0
  402. package/dist/tools/look-at/multimodal-agent-metadata.d.ts +1 -1
  403. package/dist/tools/look-at/tools.d.ts +2 -2
  404. package/dist/tools/lsp/diagnostics-tool.d.ts +1 -1
  405. package/dist/tools/lsp/find-references-tool.d.ts +1 -1
  406. package/dist/tools/lsp/goto-definition-tool.d.ts +1 -1
  407. package/dist/tools/lsp/rename-tools.d.ts +1 -1
  408. package/dist/tools/lsp/symbols-tool.d.ts +1 -1
  409. package/dist/tools/market-symbol-validator/index.d.ts +5 -0
  410. package/dist/tools/market-symbol-validator/tools.d.ts +2 -2
  411. package/dist/tools/notepad/notepad-append.d.ts +2 -2
  412. package/dist/tools/notepad/notepad-create.d.ts +2 -2
  413. package/dist/tools/notepad/notepad-list.d.ts +2 -2
  414. package/dist/tools/notepad/notepad-read.d.ts +2 -2
  415. package/dist/tools/pdf-extract-figures/index.d.ts +2 -0
  416. package/dist/tools/pdf-extract-figures/tools.d.ts +1 -1
  417. package/dist/tools/plan/plan-create.d.ts +2 -2
  418. package/dist/tools/plan/plan-delete.d.ts +2 -2
  419. package/dist/tools/plan/plan-list.d.ts +2 -2
  420. package/dist/tools/plan/plan-read.d.ts +2 -2
  421. package/dist/tools/plan/plan-tasks.d.ts +2 -2
  422. package/dist/tools/plan/plan-update.d.ts +2 -2
  423. package/dist/tools/preset/index.d.ts +2 -0
  424. package/dist/tools/preset/tools.d.ts +1 -1
  425. package/dist/tools/session-cleanup/index.d.ts +2 -2
  426. package/dist/tools/session-manager/index.d.ts +7 -0
  427. package/dist/tools/session-manager/storage.d.ts +3 -3
  428. package/dist/tools/session-manager/tools.d.ts +2 -2
  429. package/dist/tools/silent-failure-scanner/tools.d.ts +2 -2
  430. package/dist/tools/skill/index.d.ts +4 -0
  431. package/dist/tools/skill/tools.d.ts +1 -1
  432. package/dist/tools/slashcommand/index.d.ts +7 -0
  433. package/dist/tools/slashcommand/slashcommand-tool.d.ts +1 -1
  434. package/dist/tools/staleness-gap-checker/tools.d.ts +2 -2
  435. package/dist/tools/task/task-cleanup.d.ts +2 -2
  436. package/dist/tools/task/task-create.d.ts +2 -2
  437. package/dist/tools/task/task-get.d.ts +2 -2
  438. package/dist/tools/task/task-list.d.ts +2 -2
  439. package/dist/tools/task/task-update.d.ts +2 -2
  440. package/dist/tools/task/types.d.ts +10 -10
  441. package/dist/tools.js +154 -155
  442. package/package.json +1 -1
  443. package/dist/hooks/task-continuation-enforcer/abort-detection.d.ts +0 -2
  444. package/dist/hooks/task-continuation-enforcer/constants.d.ts +0 -9
  445. package/dist/hooks/task-continuation-enforcer/continuation-injection.d.ts +0 -14
  446. package/dist/hooks/task-continuation-enforcer/countdown.d.ts +0 -16
  447. package/dist/hooks/task-continuation-enforcer/handler.d.ts +0 -13
  448. package/dist/hooks/task-continuation-enforcer/idle-event.d.ts +0 -13
  449. package/dist/hooks/task-continuation-enforcer/index.d.ts +0 -5
  450. package/dist/hooks/task-continuation-enforcer/non-idle-events.d.ts +0 -6
  451. package/dist/hooks/task-continuation-enforcer/session-state.d.ts +0 -10
  452. package/dist/hooks/task-continuation-enforcer/types.d.ts +0 -54
  453. package/dist/plugin/available-categories.d.ts +0 -3
  454. package/dist/skills/skills/dev-browser.d.ts +0 -2
  455. package/dist/skills/skills/docker-master.d.ts +0 -2
  456. package/dist/skills/skills/frontend-ui-ux.d.ts +0 -2
  457. package/dist/skills/skills/git-master.d.ts +0 -2
  458. package/dist/skills/skills/index.d.ts +0 -69
  459. package/dist/skills/skills/quality-gate.d.ts +0 -2
  460. package/dist/skills/skills/remove-ai-slops.d.ts +0 -2
  461. package/dist/skills/skills/review-work.d.ts +0 -2
  462. package/dist/skills/skills/software-dev.d.ts +0 -2
  463. package/dist/skills/skills/tdd-enforcer.d.ts +0 -2
  464. package/dist/skills/skills/ulw-research.d.ts +0 -2
  465. package/dist/features/{hook-message-injector → context-injection/hook-bridge}/sdk-message-cache.d.ts +0 -0
  466. package/dist/features/{hook-message-injector → context-injection/hook-bridge}/types.d.ts +0 -0
  467. package/dist/features/{context-injector → context-injection/injector}/collector.d.ts +0 -0
  468. package/dist/features/{context-injector → context-injection/injector}/index.d.ts +0 -0
  469. package/dist/features/{context-injector → context-injection/injector}/injector.d.ts +0 -0
  470. package/dist/features/{context-injector → context-injection/injector}/types.d.ts +0 -0
  471. package/dist/features/{context-mode-routing → context-injection/routing}/routing-block.d.ts +0 -0
  472. package/dist/{plugin-handlers → plugin/handlers}/agent-priority-order.d.ts +0 -0
  473. package/dist/{plugin-handlers → plugin/handlers}/agent-tool-allowlist.d.ts +0 -0
  474. package/dist/{plugin-handlers → plugin/handlers}/formatter-config-handler.d.ts +0 -0
  475. package/dist/{plugin-handlers → plugin/handlers}/index.d.ts +0 -0
  476. package/dist/{plugin-handlers → plugin/handlers}/plan-model-inheritance.d.ts +0 -0
  477. package/dist/plugin/{chat-params.d.ts → tool/chat-params.d.ts} +0 -0
  478. package/dist/plugin/{event-dispatch.d.ts → tool/event-dispatch.d.ts} +0 -0
  479. package/dist/plugin/{recent-synthetic-idles.d.ts → tool/recent-synthetic-idles.d.ts} +0 -0
  480. package/dist/plugin/{session-status-normalizer.d.ts → tool/session-status-normalizer.d.ts} +0 -0
  481. package/dist/plugin/{tool-execute-before.bench.d.ts → tool/tool-execute-before.bench.d.ts} +0 -0
  482. package/dist/plugin/{tool-policy.d.ts → tool/tool-policy.d.ts} +0 -0
  483. package/dist/shared/{agent-display-names.d.ts → agent/agent-display-names.d.ts} +0 -0
  484. package/dist/shared/{agent-label.d.ts → agent/agent-label.d.ts} +0 -0
  485. package/dist/shared/{permission-compat.d.ts → agent/permission-compat.d.ts} +0 -0
  486. package/dist/shared/{safe-create-hook.d.ts → agent/safe-create-hook.d.ts} +0 -0
  487. package/dist/shared/{compaction-log.d.ts → compaction/compaction-log.d.ts} +0 -0
  488. package/dist/{hooks/shared → shared/compaction}/compaction-model-resolver.d.ts +0 -0
  489. package/dist/shared/{context-limit-resolver.d.ts → compaction/context-limit-resolver.d.ts} +0 -0
  490. package/dist/shared/{token-cache.d.ts → compaction/token-cache.d.ts} +0 -0
  491. package/dist/shared/{truncate-description.d.ts → compaction/truncate-description.d.ts} +0 -0
  492. package/dist/shared/{config-errors.d.ts → config/config-errors.d.ts} +0 -0
  493. package/dist/shared/{data-path.d.ts → config/data-path.d.ts} +0 -0
  494. package/dist/shared/{deep-merge.d.ts → config/deep-merge.d.ts} +0 -0
  495. package/dist/shared/{opencode-config-dir.d.ts → config/opencode-config-dir.d.ts} +0 -0
  496. package/dist/shared/{opencode-storage-detection.d.ts → config/opencode-storage-detection.d.ts} +0 -0
  497. package/dist/shared/{opencode-storage-paths.d.ts → config/opencode-storage-paths.d.ts} +0 -0
  498. package/dist/shared/{opencode-version.d.ts → config/opencode-version.d.ts} +0 -0
  499. package/dist/shared/{binary-downloader.d.ts → io/binary-downloader.d.ts} +0 -0
  500. package/dist/shared/{file-reference-resolver.d.ts → io/file-reference-resolver.d.ts} +0 -0
  501. package/dist/shared/{file-utils.d.ts → io/file-utils.d.ts} +0 -0
  502. package/dist/shared/{frontmatter.d.ts → io/frontmatter.d.ts} +0 -0
  503. package/dist/shared/{port-utils.d.ts → io/port-utils.d.ts} +0 -0
  504. package/dist/shared/{shell-env.d.ts → io/shell-env.d.ts} +0 -0
  505. package/dist/shared/{shell-tool-name.d.ts → io/shell-tool-name.d.ts} +0 -0
  506. package/dist/shared/{zip-extractor.d.ts → io/zip-extractor.d.ts} +0 -0
  507. package/dist/shared/{connected-providers-cache.d.ts → model/connected-providers-cache.d.ts} +0 -0
  508. package/dist/shared/{model-availability.d.ts → model/model-availability.d.ts} +0 -0
  509. package/dist/shared/{model-resolution-pipeline.d.ts → model/model-resolution-pipeline.d.ts} +0 -0
  510. package/dist/shared/{model-sanitizer.d.ts → model/model-sanitizer.d.ts} +0 -0
  511. package/dist/shared/{normalize-sdk-response.d.ts → model/normalize-sdk-response.d.ts} +0 -0
  512. package/dist/shared/{external-plugin-detector.d.ts → opencode/external-plugin-detector.d.ts} +0 -0
  513. package/dist/shared/{opencode-http-api.d.ts → opencode/opencode-http-api.d.ts} +0 -0
  514. package/dist/shared/{opencode-message-dir.d.ts → opencode/opencode-message-dir.d.ts} +0 -0
  515. package/dist/shared/{opencode-server-auth.d.ts → opencode/opencode-server-auth.d.ts} +0 -0
  516. package/dist/shared/{poll-timeout-outcome.d.ts → outcome/poll-timeout-outcome.d.ts} +0 -0
  517. package/dist/shared/{revive-outcome.d.ts → outcome/revive-outcome.d.ts} +0 -0
  518. package/dist/shared/{saturated-outcome.d.ts → outcome/saturated-outcome.d.ts} +0 -0
  519. package/dist/shared/{sentinels.d.ts → outcome/sentinels.d.ts} +0 -0
  520. package/dist/shared/{wallclock-outcome.d.ts → outcome/wallclock-outcome.d.ts} +0 -0
  521. package/dist/shared/{code-patterns.d.ts → policy/code-patterns.d.ts} +0 -0
  522. package/dist/shared/{context-mode-enforcement.d.ts → policy/context-mode-enforcement.d.ts} +0 -0
  523. package/dist/shared/{dcp-guidance.d.ts → policy/dcp-guidance.d.ts} +0 -0
  524. package/dist/shared/{status-types.d.ts → policy/status-types.d.ts} +0 -0
  525. package/dist/shared/{delay.d.ts → runtime/delay.d.ts} +0 -0
  526. package/dist/shared/{is-abort-error.d.ts → runtime/is-abort-error.d.ts} +0 -0
  527. package/dist/shared/{logger.d.ts → runtime/logger.d.ts} +0 -0
  528. package/dist/shared/{notify.d.ts → runtime/notify.d.ts} +0 -0
  529. package/dist/shared/{record-type-guard.d.ts → runtime/record-type-guard.d.ts} +0 -0
  530. package/dist/shared/{unwrap-list.d.ts → runtime/unwrap-list.d.ts} +0 -0
  531. package/dist/shared/{with-timeout.d.ts → runtime/with-timeout.d.ts} +0 -0
  532. package/dist/shared/{awaiting-user.d.ts → session/awaiting-user.d.ts} +0 -0
  533. package/dist/shared/{first-message-variant.d.ts → session/first-message-variant.d.ts} +0 -0
  534. package/dist/shared/{session-cursor.d.ts → session/session-cursor.d.ts} +0 -0
  535. package/dist/shared/{session-directory-resolver.d.ts → session/session-directory-resolver.d.ts} +0 -0
  536. package/dist/shared/{session-facade.d.ts → session/session-facade.d.ts} +0 -0
  537. package/dist/shared/{session-id.d.ts → session/session-id.d.ts} +0 -0
  538. package/dist/shared/{session-injected-paths.d.ts → session/session-injected-paths.d.ts} +0 -0
  539. package/dist/shared/{session-message.d.ts → session/session-message.d.ts} +0 -0
  540. package/dist/shared/{session-state.d.ts → session/session-state.d.ts} +0 -0
  541. package/dist/shared/{session-utils.d.ts → session/session-utils.d.ts} +0 -0
  542. package/dist/shared/{state-root.d.ts → session/state-root.d.ts} +0 -0
  543. package/dist/shared/{transcript-path.d.ts → session/transcript-path.d.ts} +0 -0
  544. package/dist/shared/{with-ephemeral-session.d.ts → session/with-ephemeral-session.d.ts} +0 -0
  545. package/dist/shared/{error-formatting.d.ts → text/error-formatting.d.ts} +0 -0
  546. package/dist/shared/{escape-regexp.d.ts → text/escape-regexp.d.ts} +0 -0
  547. package/dist/shared/{format-bytes.d.ts → text/format-bytes.d.ts} +0 -0
  548. package/dist/shared/{format-duration.d.ts → text/format-duration.d.ts} +0 -0
  549. package/dist/shared/{json-safe-metadata.d.ts → text/json-safe-metadata.d.ts} +0 -0
  550. package/dist/shared/{jsonc-parser.d.ts → text/jsonc-parser.d.ts} +0 -0
  551. package/dist/shared/{system-directive.d.ts → text/system-directive.d.ts} +0 -0
  552. package/dist/shared/{agent-tool-restrictions.d.ts → tool/agent-tool-restrictions.d.ts} +0 -0
  553. package/dist/shared/{skill-path-resolver.d.ts → tool/skill-path-resolver.d.ts} +0 -0
  554. package/dist/shared/{tool-guards.d.ts → tool/tool-guards.d.ts} +0 -0
  555. package/dist/skills/{lazy-skill-helper.d.ts → loader/lazy-skill-helper.d.ts} +0 -0
  556. package/dist/skills/{schemas → loader/schemas}/audits-store.d.ts +1 -1
  557. package/dist/skills/{schemas → loader/schemas}/security-audit.d.ts +2 -2
  558. /package/dist/skills/{skills.transform.d.ts → loader/skills.transform.d.ts} +0 -0
  559. /package/dist/skills/{types.d.ts → loader/types.d.ts} +0 -0
@@ -113,10 +113,11 @@
113
113
  "enum": [
114
114
  "playwright",
115
115
  "agent-browser",
116
- "dev-browser",
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
- "bdd-backend",
148
- "bdd-contract",
149
- "bdd-frontend",
150
- "bdd-tests",
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 "../config";
2
- import { type ContextModeConfigInput } from "../shared/context-mode-enforcement";
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 "../config/schema";
1
+ import type { CategoryConfig } from "../../config/schema";
2
2
  export declare function resolveCategoryConfig(categoryName: string, userCategories?: Record<string, CategoryConfig>): CategoryConfig | undefined;
@@ -1,4 +1,4 @@
1
- import type { MatrixxConfig } from "../config";
1
+ import type { MatrixxConfig } from "../../config";
2
2
  import type { PluginComponents } from "./plugin-components-loader";
3
3
  export declare function applyCommandConfig(params: {
4
4
  config: Record<string, unknown>;
@@ -1,5 +1,5 @@
1
- import type { MatrixxConfig } from "../config";
2
- import type { ModelCacheState } from "../plugin-state";
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,4 +1,4 @@
1
- import type { MatrixxConfig } from "../config";
1
+ import type { MatrixxConfig } from "../../config";
2
2
  import type { PluginComponents } from "./plugin-components-loader";
3
3
  export declare function applyMcpConfig(params: {
4
4
  config: Record<string, unknown>;
@@ -1,6 +1,6 @@
1
- import { type AgentConfig } from "../agents/agent-config";
2
- import type { AgentOverrideConfig } from "../agents/types";
3
- import type { BrowserAutomationProvider, CategoryConfig, ModelRequirements } from "../config/schema";
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;
@@ -1,4 +1,4 @@
1
- import type { MatrixxConfig } from "../config";
1
+ import type { MatrixxConfig } from "../../config";
2
2
  export type PluginComponents = {
3
3
  commands: Record<string, unknown>;
4
4
  skills: Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import type { ModelCacheState } from "../plugin-state";
1
+ import type { ModelCacheState } from "../../plugin-state";
2
2
  export declare function applyProviderConfig(params: {
3
3
  config: Record<string, unknown>;
4
4
  modelCacheState: ModelCacheState;
@@ -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 "../shared/permission-compat";
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,4 +1,4 @@
1
- import type { MatrixxConfig } from "../config";
1
+ import type { MatrixxConfig } from "../../config";
2
2
  export declare function applyToolConfig(params: {
3
3
  config: Record<string, unknown>;
4
4
  pluginConfig: MatrixxConfig;
@@ -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, createTaskContinuationEnforcer } from "../../hooks";
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-mode-routing/system-transform";
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,5 @@
1
+ export { setupDomains } from "../setup-domains";
2
+ export * from "./assemble";
3
+ export * from "./hooks";
4
+ export * from "./managers";
5
+ export * from "./tools";
@@ -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-handlers/config-handler`) that feeds the config draft
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 { AvailableCategory, AvailableSkill } from "../agents/dynamic-agent-prompt-builder";
22
- import type { MatrixxConfig } from "../config";
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 interface RegisterDomainsInput {
90
- ctx: MatrixxContext;
91
- hooks: Hooks;
92
- directory: string;
93
- worktree: string;
94
- }
95
- export interface DomainRegistration {
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";
@@ -0,0 +1,3 @@
1
+ import type { AvailableCategory } from "../../agents/dynamic-agent-prompt-builder";
2
+ import type { MatrixxConfig } from "../../config";
3
+ export declare function createAvailableCategories(pluginConfig: MatrixxConfig): AvailableCategory[];
@@ -1,6 +1,6 @@
1
- import type { MatrixxConfig } from "../config";
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;