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
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const TaskStatusSchema: z.ZodEnum<{
3
+ completed: "completed";
3
4
  deleted: "deleted";
4
5
  pending: "pending";
5
- completed: "completed";
6
6
  in_progress: "in_progress";
7
7
  }>;
8
8
  export type TaskStatus = z.infer<typeof TaskStatusSchema>;
@@ -11,9 +11,9 @@ export declare const TaskSchema: z.ZodObject<{
11
11
  subject: z.ZodString;
12
12
  description: z.ZodString;
13
13
  status: z.ZodEnum<{
14
+ completed: "completed";
14
15
  deleted: "deleted";
15
16
  pending: "pending";
16
- completed: "completed";
17
17
  in_progress: "in_progress";
18
18
  }>;
19
19
  activeForm: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,4 @@
1
- import type { ModelResolutionProvenance } from "../../shared/model-resolution-pipeline";
1
+ import type { ModelResolutionProvenance } from "../../shared/model/model-resolution-pipeline";
2
2
  export type TaskStatus = "running" | "queued" | "completed" | "error";
3
3
  export interface ModelFallbackInfo {
4
4
  model: string;
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext, V2Event } from "../../plugin/context";
1
+ import type { MatrixxContext, V2Event } from "../../plugin/tool/context";
2
2
  interface ToolExecuteInput {
3
3
  tool: string;
4
4
  sessionID: string;
@@ -0,0 +1,5 @@
1
+ /** agent-usage-reminder barrel: explicit named re-exports of local modules only. */
2
+ export { AGENT_TOOLS, AGENT_USAGE_REMINDER_STORAGE, MAX_AGENT_USAGE_REMINDERS, REMINDER_MESSAGE, TARGET_TOOLS, } from "./constants";
3
+ export { createAgentUsageReminderHook, } from "./hook";
4
+ export { clearAgentUsageState, loadAgentUsageState, saveAgentUsageState, } from "./storage";
5
+ export type { AgentUsageState, } from "./types";
@@ -0,0 +1,2 @@
1
+ /** anthropic-effort barrel: explicit named re-exports of local modules only. */
2
+ export { createAnthropicEffortHook, } from "./hook";
@@ -1,2 +1,2 @@
1
- import type { MatrixxContext } from "../../../plugin/context";
1
+ import type { MatrixxContext } from "../../../plugin/tool/context";
2
2
  export declare function runBackgroundUpdateCheck(ctx: MatrixxContext, autoUpdate: boolean, getToastMessage: (isUpdate: boolean, latestVersion?: string) => string): Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { MatrixxContext } from "../../../plugin/context";
1
+ import type { MatrixxContext } from "../../../plugin/tool/context";
2
2
  export declare function showConfigErrorsIfAny(_ctx: MatrixxContext): Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { MatrixxContext } from "../../../plugin/context";
1
+ import type { MatrixxContext } from "../../../plugin/tool/context";
2
2
  export declare function updateAndShowConnectedProvidersCacheStatus(_ctx: MatrixxContext): Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { MatrixxContext } from "../../../plugin/context";
1
+ import type { MatrixxContext } from "../../../plugin/tool/context";
2
2
  export declare function showModelCacheWarningIfNeeded(_ctx: MatrixxContext): Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { MatrixxContext } from "../../../plugin/context";
1
+ import type { MatrixxContext } from "../../../plugin/tool/context";
2
2
  export declare function showSpinnerToast(_ctx: MatrixxContext, version: string, message: string): Promise<void>;
@@ -1,3 +1,3 @@
1
- import type { MatrixxContext } from "../../../plugin/context";
1
+ import type { MatrixxContext } from "../../../plugin/tool/context";
2
2
  export declare function showVersionToast(ctx: MatrixxContext, version: string | null, message: string): Promise<void>;
3
3
  export declare function showLocalDevToast(ctx: MatrixxContext, version: string | null, isMorpheusEnabled: boolean): Promise<void>;
@@ -1,3 +1,3 @@
1
- import type { MatrixxContext } from "../../../plugin/context";
1
+ import type { MatrixxContext } from "../../../plugin/tool/context";
2
2
  export declare function showUpdateAvailableToast(_ctx: MatrixxContext, latestVersion: string, getToastMessage: (isUpdate: boolean, latestVersion?: string) => string): Promise<void>;
3
3
  export declare function showAutoUpdatedToast(_ctx: MatrixxContext, oldVersion: string, newVersion: string): Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext, V2Event } from "../../plugin/context";
1
+ import type { MatrixxContext, V2Event } from "../../plugin/tool/context";
2
2
  import type { AutoUpdateCheckerOptions } from "./types";
3
3
  export declare function createAutoUpdateCheckerHook(ctx: MatrixxContext, options?: AutoUpdateCheckerOptions): {
4
4
  event: (event: V2Event) => void;
@@ -1,5 +1,5 @@
1
1
  import type { BackgroundManager } from "../../features/background-agent";
2
- import type { V2Event } from "../../plugin/context";
2
+ import type { V2Event } from "../../plugin/tool/context";
3
3
  /**
4
4
  * Background notification hook - handles event routing to BackgroundManager.
5
5
  *
@@ -0,0 +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
+ */
7
+ /** background-notification barrel: explicit named re-exports of local modules only. */
8
+ export { createBackgroundNotificationHook, } from "./hook";
9
+ export type { BackgroundNotificationHookConfig, } from "./types";
@@ -0,0 +1,8 @@
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
+ */
7
+ /** background-task-blocker barrel: explicit named re-exports of local modules only. */
8
+ export { createBackgroundTaskBlockerHook, } from "./hook";
@@ -1,2 +1,2 @@
1
- import type { Hooks } from "../plugin/legacy-hooks";
1
+ import type { Hooks } from "../plugin/tool/legacy-hooks";
2
2
  export declare function createBashFileReadGuardHook(): Hooks;
@@ -0,0 +1,13 @@
1
+ export interface NudgeInput {
2
+ tool: string;
3
+ sessionID: string;
4
+ agent?: string;
5
+ toolCallCount: number;
6
+ delegationUsed: boolean;
7
+ reminderShown: boolean;
8
+ }
9
+ export interface NudgeEvent {
10
+ skill: string;
11
+ reason: string;
12
+ }
13
+ export declare function detectNudge(input: NudgeInput): NudgeEvent | null;
@@ -1,2 +1,7 @@
1
1
  import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
2
2
  export declare function buildReminderMessage(availableSkills: AvailableSkill[]): string;
3
+ export interface NudgeMessageEvent {
4
+ skill: string;
5
+ reason: string;
6
+ }
7
+ export declare function buildNudgeMessage(event: NudgeMessageEvent): string;
@@ -1,5 +1,7 @@
1
1
  import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
2
- import type { MatrixxContext } from "../../plugin/context";
2
+ import type { MatrixxContext } from "../../plugin/tool/context";
3
+ export type { NudgeEvent, NudgeInput } from "./detector";
4
+ export { detectNudge } from "./detector";
3
5
  interface ToolExecuteInput {
4
6
  tool: string;
5
7
  sessionID: string;
@@ -11,9 +13,11 @@ interface ToolExecuteOutput {
11
13
  output: string;
12
14
  metadata: unknown;
13
15
  }
14
- import type { V2Event } from "../../plugin/context";
15
- export declare function createCategorySkillReminderHook(ctx: MatrixxContext, availableSkills?: AvailableSkill[]): {
16
+ export interface CategorySkillReminderOptions {
17
+ now?: () => number;
18
+ }
19
+ import type { V2Event } from "../../plugin/tool/context";
20
+ export declare function createCategorySkillReminderHook(ctx: MatrixxContext, availableSkills?: AvailableSkill[], options?: CategorySkillReminderOptions): {
16
21
  "tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
17
22
  event: (event: V2Event) => Promise<void>;
18
23
  };
19
- export {};
@@ -0,0 +1,4 @@
1
+ /** category-skill-reminder barrel: explicit named re-exports of local modules only. */
2
+ export { detectNudge, type NudgeEvent, type NudgeInput, } from "./detector";
3
+ export { buildNudgeMessage, buildReminderMessage, type NudgeMessageEvent, } from "./formatter";
4
+ export { type CategorySkillReminderOptions, createCategorySkillReminderHook, } from "./hook";
@@ -0,0 +1,7 @@
1
+ /** comment-checker barrel: explicit named re-exports of local modules only. */
2
+ export { type CheckResult, ensureCliAvailable, getCommentCheckerPath, getCommentCheckerPathSync, type HookInput, isCliAvailable, runCommentChecker, startBackgroundInit, } from "./cli";
3
+ export { getCommentCheckerCliPathPromise, initializeCommentCheckerCli, isCliPathUsable, processApplyPatchEditsWithCli, processWithCli, } from "./cli-runner";
4
+ export { ensureCommentCheckerBinary, getBinaryName, getCacheDir, getCachedBinaryPath, } from "./downloader";
5
+ export { createCommentCheckerHooks, } from "./hook";
6
+ export { registerPendingCall, startPendingCallCleanup, takePendingCall, } from "./pending-calls";
7
+ export type { PendingCall, } from "./types";
@@ -0,0 +1,2 @@
1
+ /** compaction-context-injector barrel: explicit named re-exports of local modules only. */
2
+ export { type CompactionMemoryOptions, createCompactionContextInjector, MAX_TASK_HISTORY_CHARS, } from "./hook";
@@ -1,4 +1,4 @@
1
- import { CONTEXT_MODE_DEFAULT_BLOCKED_TOOLS } from "../../shared/context-mode-enforcement";
1
+ import { CONTEXT_MODE_DEFAULT_BLOCKED_TOOLS } from "../../shared/policy/context-mode-enforcement";
2
2
  export declare const HOOK_NAME = "context-mode-enforcer";
3
3
  export declare const WARN_MESSAGE_READ: string;
4
4
  export declare const BLOCK_MESSAGE_GREP_GLOB: string;
@@ -1,3 +1,3 @@
1
1
  import type { MatrixxConfig } from "../../config";
2
- import type { Hooks } from "../../plugin/legacy-hooks";
2
+ import type { Hooks } from "../../plugin/tool/legacy-hooks";
3
3
  export declare function createContextModeEnforcerHook(pluginConfig: MatrixxConfig): Hooks;
@@ -0,0 +1,4 @@
1
+ /** context-mode-enforcer barrel: explicit named re-exports of local modules only. */
2
+ export { BASH_ROUTED_MESSAGE, BLOCK_MESSAGE_GREP_GLOB, DEFAULT_BLOCKED_TOOLS, HOOK_NAME, WARN_MESSAGE_BASH_READ, WARN_MESSAGE_READ, WARN_ONLY_TOOLS, WEBFETCH_BLOCK_MESSAGE, } from "./constants";
3
+ export { _resetGuidanceThrottleForTesting, shouldShowGuidance, } from "./guidance-throttle";
4
+ export { createContextModeEnforcerHook, } from "./hook";
@@ -1,2 +1,2 @@
1
- import type { NativePluginContext } from "../../shared/session-context-source";
1
+ import type { NativePluginContext } from "../../shared/session/session-context-source";
2
2
  export type Client = NativePluginContext;
@@ -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
  export declare const PLACEHOLDER_TEXT = "[user interrupted]";
3
3
  export declare function sanitizeEmptyMessagesBeforeSummarize(sessionID: string, client?: SessionContextCarrier): Promise<number>;
4
4
  export declare function getLastAssistant(sessionID: string, client: SessionContextCarrier): Promise<Record<string, unknown> | null>;
@@ -1,6 +1,6 @@
1
1
  import type { ExperimentalConfig } from "../../config";
2
- import type { V2Event } from "../../plugin/context";
3
- import type { NativePluginContext } from "../../shared/session-context-source";
2
+ import type { V2Event } from "../../plugin/tool/context";
3
+ import type { NativePluginContext } from "../../shared/session/session-context-source";
4
4
  export interface AnthropicContextWindowLimitRecoveryOptions {
5
5
  experimental?: ExperimentalConfig;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import type { MatrixxConfig } from "../config";
2
2
  import type { ExperimentalConfig } from "../config/schema/experimental";
3
- import type { MatrixxContext } from "../plugin/context";
4
- import type { V2Event } from "../plugin/context";
3
+ import type { MatrixxContext } from "../plugin/tool/context";
4
+ import type { V2Event } from "../plugin/tool/context";
5
5
  export declare function createContextWindowMonitorHook(_ctx: MatrixxContext, pluginConfig?: MatrixxConfig | {
6
6
  experimental?: ExperimentalConfig;
7
7
  }): {
@@ -19,7 +19,7 @@ type Part = {
19
19
  text?: string;
20
20
  [key: string]: unknown;
21
21
  };
22
- import type { MatrixxContext } from "../../plugin/context";
22
+ import type { MatrixxContext } from "../../plugin/tool/context";
23
23
  interface MessageWithParts {
24
24
  info: unknown;
25
25
  parts: Part[];
@@ -0,0 +1,3 @@
1
+ /** dcp-nudge-sanitizer barrel: explicit named re-exports of local modules only. */
2
+ export { COMPRESS_AVAILABILITY_GUARD, COMPRESS_TOOL_REFERENCE, guardCompressDirective, NUDGE_MARKERS, normalizeNudgeText, } from "./constants";
3
+ export { createDcpNudgeSanitizerHook, sanitizeNudgeParts, } from "./hook";
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../../plugin/context";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
2
  export declare function createDelegateTaskRetryHook(_ctx: MatrixxContext): {
3
3
  "tool.execute.after": (input: {
4
4
  tool: string;
@@ -0,0 +1,4 @@
1
+ /** delegate-task-retry barrel: explicit named re-exports of local modules only. */
2
+ export { buildRetryGuidance, } from "./guidance";
3
+ export { createDelegateTaskRetryHook, } from "./hook";
4
+ export { DELEGATE_TASK_ERROR_PATTERNS, type DelegateTaskErrorPattern, type DetectedError, detectDelegateTaskError, } from "./patterns";
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../../plugin/context";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
2
  import { type MessagePart } from "./phase-detector";
3
3
  type ChatMessageInput = {
4
4
  sessionID: string;
@@ -0,0 +1,4 @@
1
+ /** design-intent-preserver barrel: explicit named re-exports of local modules only. */
2
+ export { CONSTRUCT_INDICATORS, HOOK_NAME, IDEMPOTENCY_MARKER, INTENT_PRESERVATION_BLOCK, PHASE_TRANSITION_PATTERN, PLANS_DIR, } from "./constants";
3
+ export { createDesignIntentPreserverHook, } from "./hook";
4
+ export { extractPromptText, findMostRecentPlanFile, hasPhaseTransition, type MessagePart, planHasConstruct, } from "./phase-detector";
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../../plugin/context";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
2
  export declare function createDirectoryAgentsInjectorHook(ctx: MatrixxContext): {
3
3
  "tool.execute.before": (input: {
4
4
  tool: string;
@@ -16,5 +16,5 @@ export declare function createDirectoryAgentsInjectorHook(ctx: MatrixxContext):
16
16
  output: string;
17
17
  metadata: unknown;
18
18
  }) => Promise<void>;
19
- event: (event: import("../../plugin/context").V2Event) => Promise<void>;
19
+ event: (event: import("../../plugin").V2Event) => Promise<void>;
20
20
  };
@@ -0,0 +1,5 @@
1
+ /** directory-agents-injector barrel: explicit named re-exports of local modules only. */
2
+ export { AGENTS_FILENAME, AGENTS_INJECTOR_STORAGE, } from "./constants";
3
+ export { findAgentsMdUp, resolveFilePath, } from "./finder";
4
+ export { createDirectoryAgentsInjectorHook, } from "./hook";
5
+ export { processFilePathForAgentsInjection, } from "./injector";
@@ -1,5 +1,5 @@
1
- import type { MatrixxContext } from "../../plugin/context";
2
- import type { createDynamicTruncator } from "../../shared/dynamic-truncator";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
+ import type { createDynamicTruncator } from "../../shared/compaction/dynamic-truncator";
3
3
  type DynamicTruncator = ReturnType<typeof createDynamicTruncator>;
4
4
  export declare function processFilePathForAgentsInjection(input: {
5
5
  ctx: MatrixxContext;
@@ -1,5 +1,5 @@
1
- import type { MatrixxContext, V2Event } from "../../plugin/context";
2
- import { createDynamicTruncator } from "../../shared/dynamic-truncator";
1
+ import type { MatrixxContext, V2Event } from "../../plugin/tool/context";
2
+ import { createDynamicTruncator } from "../../shared/compaction/dynamic-truncator";
3
3
  export interface ToolExecuteInput {
4
4
  tool: string;
5
5
  sessionID: string;
@@ -1,3 +1,3 @@
1
- import type { MatrixxContext } from "../../plugin/context";
2
- import type { Hooks } from "../../plugin/legacy-hooks";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
+ import type { Hooks } from "../../plugin/tool/legacy-hooks";
3
3
  export declare function createDocsLookupGuardHook(ctx: MatrixxContext): Hooks;
@@ -0,0 +1,3 @@
1
+ /** docs-lookup-guard barrel: explicit named re-exports of local modules only. */
2
+ export { DOC_INTENT_TRIGGERS, FALLBACK_MESSAGE, GUARDED_TOOLS, HOOK_NAME, NUDGE_MESSAGE, OPERATOR_AGENT, } from "./constants";
3
+ export { createDocsLookupGuardHook, } from "./hook";
@@ -1,3 +1,3 @@
1
- import type { MatrixxContext } from "../../plugin/context";
2
- import type { Hooks } from "../../plugin/legacy-hooks";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
+ import type { Hooks } from "../../plugin/tool/legacy-hooks";
3
3
  export declare function createDocumentReaderGuardHook(ctx: MatrixxContext): Hooks;
@@ -0,0 +1,3 @@
1
+ /** document-reader-guard barrel: explicit named re-exports of local modules only. */
2
+ export { BASH_BLOCK_MESSAGE, BINARY_EXTENSIONS, BLOCKED_PATTERNS, HOOK_NAME, READ_BLOCK_MESSAGE, } from "./constants";
3
+ export { createDocumentReaderGuardHook, } from "./hook";
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../../plugin/context";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
2
  interface TransformMessage {
3
3
  info: {
4
4
  role?: string;
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../../plugin/context";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
2
  /**
3
3
  * Known Edit tool error patterns that indicate the AI made a mistake
4
4
  */
@@ -0,0 +1,2 @@
1
+ /** edit-error-recovery barrel: explicit named re-exports of local modules only. */
2
+ export { createEditErrorRecoveryHook, EDIT_ERROR_PATTERNS, EDIT_ERROR_REMINDER, } from "./hook";
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../plugin/context";
1
+ import type { MatrixxContext } from "../plugin/tool/context";
2
2
  export declare function createEmptyTaskResponseDetectorHook(_ctx: MatrixxContext): {
3
3
  "tool.execute.after": (input: {
4
4
  tool: string;
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../../plugin/context";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
2
  export interface FlatContentPart {
3
3
  type?: string;
4
4
  text?: string;
@@ -14,7 +14,7 @@ type Part = {
14
14
  text?: string;
15
15
  [key: string]: unknown;
16
16
  };
17
- import type { MatrixxContext } from "../../plugin/context";
17
+ import type { MatrixxContext } from "../../plugin/tool/context";
18
18
  interface MessageWithParts {
19
19
  info: Message;
20
20
  parts: Part[];
@@ -0,0 +1,3 @@
1
+ /** env-file-write-guard barrel: explicit named re-exports of local modules only. */
2
+ export { createEnvFileWriteGuardHook, } from "./hook";
3
+ export { createSensitiveFileMatcher, } from "./sensitive-file-matcher";
@@ -1,5 +1,5 @@
1
1
  import type { LlmUsage } from "../../features/evolution/compressor/interface";
2
- import type { NativePluginContext } from "../../shared/session-context-source";
2
+ import type { NativePluginContext } from "../../shared/session/session-context-source";
3
3
  export declare function parseModelOverride(model: string | undefined): {
4
4
  providerID: string;
5
5
  modelID: string;
@@ -0,0 +1,8 @@
1
+ /** Evolution layer cross-link (orchestration vs triggers vs actions):
2
+ * - Triggers: this hook (`hooks/evolution-compressor`, with `hooks/evolution-hitl`, `hooks/evolution-watcher`, `hooks/evolution-quality-gate`) observes session/tool events
3
+ * and feeds the evolution pipeline.
4
+ * - Orchestration: `features/evolution/` owns the pipeline, store, and writer.
5
+ * - Actions: `tools/evolution` exposes agent-callable tools (propose/approve/query) on the store.
6
+ */
7
+ /** evolution-compressor barrel: explicit named re-exports of local modules only. */
8
+ export { createHostLlmCall, parseModelOverride, } from "./host-llm-call";
@@ -1,3 +1,9 @@
1
+ /** Evolution layer cross-link (orchestration vs triggers vs actions):
2
+ * - Triggers: this hook (`hooks/evolution-hitl`, with `hooks/evolution-watcher`, `hooks/evolution-compressor`, `hooks/evolution-quality-gate`) observes session/tool events
3
+ * and feeds the evolution pipeline.
4
+ * - Orchestration: `features/evolution/` owns the pipeline, store, and writer.
5
+ * - Actions: `tools/evolution` exposes agent-callable tools (propose/approve/query) on the store.
6
+ */
1
7
  /**
2
8
  * Local legacy `{info, parts}` shapes (Task 27: the V1 `experimental.chat.messages.transform`
3
9
  * fan-out is deleted, so `legacy V1 SDK` message types are no longer imported).
@@ -1,3 +1,9 @@
1
+ /** Evolution layer cross-link (orchestration vs triggers vs actions):
2
+ * - Triggers: this hook (`hooks/evolution-quality-gate`, with `hooks/evolution-hitl`, `hooks/evolution-watcher`, `hooks/evolution-compressor`) observes session/tool events
3
+ * and feeds the evolution pipeline.
4
+ * - Orchestration: `features/evolution/` owns the pipeline, store, and writer.
5
+ * - Actions: `tools/evolution` exposes agent-callable tools (propose/approve/query) on the store.
6
+ */
1
7
  import type { EvolutionGovernanceConfig } from "../../config/schema/evolution";
2
8
  import type { DistilledKnowledge } from "../../features/evolution/types";
3
9
  export declare function passesQualityGate(knowledge: DistilledKnowledge, config: EvolutionGovernanceConfig): {
@@ -1,5 +1,11 @@
1
+ /** Evolution layer cross-link (orchestration vs triggers vs actions):
2
+ * - Triggers: this hook (`hooks/evolution-watcher`, with `hooks/evolution-hitl`, `hooks/evolution-compressor`, `hooks/evolution-quality-gate`) observes session/tool events
3
+ * and feeds the evolution pipeline.
4
+ * - Orchestration: `features/evolution/` owns the pipeline, store, and writer.
5
+ * - Actions: `tools/evolution` exposes agent-callable tools (propose/approve/query) on the store.
6
+ */
1
7
  import type { EvolutionConfig } from "../../config/schema/evolution";
2
- import type { MatrixxContext } from "../../plugin/context";
8
+ import type { MatrixxContext } from "../../plugin/tool/context";
3
9
  export { classifySuccess, truncate } from "./utils";
4
10
  export declare function createEvolutionWatcherHook(a?: MatrixxContext | EvolutionConfig, b?: EvolutionConfig): {
5
11
  "tool.execute.before": (input: {
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../../plugin/context";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
2
  interface HashlineReadEnhancerConfig {
3
3
  hashline_edit?: {
4
4
  enabled: boolean;
@@ -0,0 +1,2 @@
1
+ /** hashline-read-enhancer barrel: explicit named re-exports of local modules only. */
2
+ export { createHashlineReadEnhancerHook, } from "./hook";
@@ -55,7 +55,6 @@ export { createSoftwareDevEnforcementHook } from "./software-dev-enforcement/hoo
55
55
  export { createStartWorkHook } from "./start-work/start-work-hook";
56
56
  export { createStopContinuationGuardHook, type StopContinuationGuard } from "./stop-continuation-guard/hook";
57
57
  export { createSubagentBlockHook } from "./subagent-block/hook";
58
- export { createTaskContinuationEnforcer, type TaskContinuationEnforcer } from "./task-continuation-enforcer";
59
58
  export { createTaskEditGuardHook } from "./task-edit-guard/hook";
60
59
  export { createTaskNotepadWriterHook } from "./task-notepad-writer/hook";
61
60
  export { createTaskResumeInfoHook } from "./task-resume-info/hook";
@@ -1,5 +1,5 @@
1
1
  import type { InputSecretGuardConfig } from "../../config/schema/security";
2
- import type { NativePluginContext } from "../../shared/session-context-source";
2
+ import type { NativePluginContext } from "../../shared/session/session-context-source";
3
3
  export declare function createInputSecretGuardHook(_ctx: NativePluginContext, cfg?: InputSecretGuardConfig): {
4
4
  "chat.message": (input: {
5
5
  sessionID: string;
@@ -0,0 +1,5 @@
1
+ /** input-secret-guard barrel: explicit named re-exports of local modules only. */
2
+ export { BLOCKLIST_RULES, type DetectionRule, type Rule, type RuleSeverity, WARNLIST_HEURISTICS, } from "./detection-rules";
3
+ export { type CompiledRule, detectSecrets, type Finding, hashFinding, redactMatch, shannonEntropy, } from "./detector";
4
+ export { createInputSecretGuardHook, } from "./hook";
5
+ export { allowOnce, allowSession, clearAll, clearSession, consumeOneShot, isSessionAllowed, } from "./session-allow-cache";
@@ -1,5 +1,5 @@
1
- import type { V2Event } from "../../plugin/context";
2
- import type { NativePluginContext } from "../../shared/session-context-source";
1
+ import type { V2Event } from "../../plugin/tool/context";
2
+ import type { NativePluginContext } from "../../shared/session/session-context-source";
3
3
  interface ToolExecuteInput {
4
4
  tool: string;
5
5
  sessionID: string;
@@ -0,0 +1,7 @@
1
+ /** interactive-bash-session barrel: explicit named re-exports of local modules only. */
2
+ export { buildSessionReminderMessage, INTERACTIVE_BASH_SESSION_STORAGE, MATRIXX_SESSION_PREFIX, } from "./constants";
3
+ export { createInteractiveBashSessionHook, } from "./hook";
4
+ export { extractSessionNameFromTokens, findSubcommand, tokenizeCommand, } from "./parser";
5
+ export { getOrCreateState, isOmoSession, killAllTrackedSessions, } from "./state-manager";
6
+ export { clearInteractiveBashSessionState, loadInteractiveBashSessionState, saveInteractiveBashSessionState, } from "./storage";
7
+ export type { InteractiveBashSessionState, SerializedInteractiveBashSessionState, } from "./types";
@@ -1,4 +1,4 @@
1
- import type { MatrixxContext } from "../../plugin/context";
1
+ import type { MatrixxContext } from "../../plugin/tool/context";
2
2
  export declare const JSON_ERROR_TOOL_EXCLUDE_LIST: readonly ["bash", "shell", "read", "glob", "grep", "webfetch", "look_at", "github_search", "websearch"];
3
3
  export declare const JSON_ERROR_PATTERNS: readonly RegExp[];
4
4
  export declare const JSON_ERROR_REMINDER = "\n[JSON PARSE ERROR - IMMEDIATE ACTION REQUIRED]\n\nYou sent invalid JSON arguments to a tool. STOP and do this NOW:\n\n1. DO NOT retry with the same malformed JSON\n2. CORRECT the JSON syntax \u2014 check for: missing quotes, trailing commas, unmatched braces\n3. RETRY the tool call with valid JSON arguments\n\nThis usually means you garbled a string parameter or forgot to escape a character.\n";
@@ -1,4 +1,4 @@
1
- export { CODE_BLOCK_PATTERN, INLINE_CODE_PATTERN } from "../../shared/code-patterns";
1
+ export { CODE_BLOCK_PATTERN, INLINE_CODE_PATTERN } from "../../shared/policy/code-patterns";
2
2
  export { ANALYZE_MESSAGE, ANALYZE_PATTERN } from "./analyze/default";
3
3
  export { DOCS_MESSAGE, DOCS_PATTERN } from "./docs/default";
4
4
  export { SEARCH_MESSAGE, SEARCH_PATTERN } from "./search/default";
@@ -1,5 +1,5 @@
1
- import type { ContextCollector } from "../../features/context-injector";
2
- import type { NativePluginContext } from "../../shared/session-context-source";
1
+ import type { ContextCollector } from "../../features/context-injection/injector";
2
+ import type { NativePluginContext } from "../../shared/session/session-context-source";
3
3
  export declare function createKeywordDetectorHook(_ctx: NativePluginContext, _collector?: ContextCollector): {
4
4
  "chat.message": (input: {
5
5
  sessionID: string;
@@ -0,0 +1,4 @@
1
+ /** keyword-detector barrel: explicit named re-exports of local modules only. */
2
+ export { KEYWORD_DETECTORS, } from "./constants";
3
+ export { detectKeywordsWithType, extractPromptText, removeCodeBlocks, } from "./detector";
4
+ export { createKeywordDetectorHook, } from "./hook";
@@ -1,5 +1,5 @@
1
1
  import type { LoadedHub } from "../../features/knowledge-hub/loader";
2
- import type { MatrixxContext } from "../../plugin/context";
2
+ import type { MatrixxContext } from "../../plugin/tool/context";
3
3
  export interface KnowledgeHubGuardOptions {
4
4
  hubs?: LoadedHub[];
5
5
  getHubs?: () => LoadedHub[];
@@ -0,0 +1,3 @@
1
+ /** knowledge-hub-guard barrel: explicit named re-exports of local modules only. */
2
+ export { approveHubWrite, clearHubWriteApprovals, HUB_WRITE_APPROVAL_TTL_MS, isHubWriteApproved, normalizeApprovedPath, } from "./approvals";
3
+ export { createKnowledgeHubGuardHook, type KnowledgeHubGuardOptions, } from "./hook";
@@ -15,9 +15,9 @@ type Part = {
15
15
  [key: string]: unknown;
16
16
  };
17
17
  import type { KnowledgeHub } from "../../config/schema/knowledge";
18
- import { type ContextCollector } from "../../features/context-injector";
19
- import type { MatrixxContext } from "../../plugin/context";
20
- import type { V2Event } from "../../plugin/context";
18
+ import { type ContextCollector } from "../../features/context-injection/injector";
19
+ import type { MatrixxContext } from "../../plugin/tool/context";
20
+ import type { V2Event } from "../../plugin/tool/context";
21
21
  export interface KnowledgeHubInjectorOptions {
22
22
  hubs?: KnowledgeHub[];
23
23
  getHubs?: () => KnowledgeHub[];
@@ -0,0 +1,2 @@
1
+ /** knowledge-hub-injector barrel: explicit named re-exports of local modules only. */
2
+ export { createKnowledgeHubInjectorHook, type KnowledgeHubInjectorOptions, } from "./hook";
@@ -1,5 +1,5 @@
1
1
  import type { LoadedHub } from "../../features/knowledge-hub/loader";
2
- import type { MatrixxContext } from "../../plugin/context";
2
+ import type { MatrixxContext } from "../../plugin/tool/context";
3
3
  export interface KnowledgeHubSearchNudgeOptions {
4
4
  hubs?: LoadedHub[];
5
5
  getHubs?: () => LoadedHub[];