opencode-matrixx-v2 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1103) hide show
  1. package/LICENSE.md +82 -0
  2. package/README.md +205 -2
  3. package/dist/agents/agent-builder.d.ts +28 -0
  4. package/dist/agents/agent-config.d.ts +46 -0
  5. package/dist/agents/agents.transform.d.ts +67 -0
  6. package/dist/agents/builtin-agents/agent-overrides.d.ts +12 -0
  7. package/dist/agents/builtin-agents/available-skills.d.ts +4 -0
  8. package/dist/agents/builtin-agents/general-agents.d.ts +21 -0
  9. package/dist/agents/builtin-agents/keymaker-agent.d.ts +20 -0
  10. package/dist/agents/builtin-agents/model-resolution.d.ts +25 -0
  11. package/dist/agents/builtin-agents/morpheus-agent.d.ts +22 -0
  12. package/dist/agents/builtin-agents/niobe-agent.d.ts +19 -0
  13. package/dist/agents/builtin-agents/resolve-file-uri.d.ts +1 -0
  14. package/dist/agents/builtin-agents.d.ts +5 -0
  15. package/dist/agents/cipher.d.ts +7 -0
  16. package/dist/agents/construct.d.ts +7 -0
  17. package/dist/agents/custom-agent-summaries.d.ts +8 -0
  18. package/dist/agents/dynamic-agent-prompt-builder.d.ts +54 -0
  19. package/dist/agents/env-context.d.ts +7 -0
  20. package/dist/agents/index.d.ts +14 -0
  21. package/dist/agents/keymaker.d.ts +6 -0
  22. package/dist/agents/merovingian.d.ts +8 -0
  23. package/dist/agents/model-directives.d.ts +7 -0
  24. package/dist/agents/morpheus.d.ts +6 -0
  25. package/dist/agents/mouse/agent.d.ts +32 -0
  26. package/dist/agents/mouse/deepseek.d.ts +16 -0
  27. package/dist/agents/mouse/default.d.ts +9 -0
  28. package/dist/agents/mouse/gpt.d.ts +18 -0
  29. package/dist/agents/mouse/index.d.ts +7 -0
  30. package/dist/agents/mouse/mimo.d.ts +15 -0
  31. package/dist/agents/mouse/qwen.d.ts +16 -0
  32. package/dist/agents/mouse/shared.d.ts +7 -0
  33. package/dist/agents/niobe/agent.d.ts +34 -0
  34. package/dist/agents/niobe/default.d.ts +11 -0
  35. package/dist/agents/niobe/gpt.d.ts +19 -0
  36. package/dist/agents/niobe/index.d.ts +6 -0
  37. package/dist/agents/niobe/prompt-section-builder.d.ts +13 -0
  38. package/dist/agents/operator.d.ts +7 -0
  39. package/dist/agents/oracle/behavioral-summary.d.ts +6 -0
  40. package/dist/agents/oracle/high-accuracy-mode.d.ts +25 -0
  41. package/dist/agents/oracle/identity-constraints.d.ts +7 -0
  42. package/dist/agents/oracle/index.d.ts +7 -0
  43. package/dist/agents/oracle/interview-mode.d.ts +7 -0
  44. package/dist/agents/oracle/plan-generation.d.ts +7 -0
  45. package/dist/agents/oracle/plan-template.d.ts +1 -0
  46. package/dist/agents/oracle/system-prompt.d.ts +20 -0
  47. package/dist/agents/sati.d.ts +7 -0
  48. package/dist/agents/sentinel.d.ts +7 -0
  49. package/dist/agents/seraph.d.ts +21 -0
  50. package/dist/agents/smith.d.ts +17 -0
  51. package/dist/agents/trinity.d.ts +7 -0
  52. package/dist/agents/types.d.ts +76 -0
  53. package/dist/cli/doctor/checks/auth.d.ts +2 -0
  54. package/dist/cli/doctor/checks/config.d.ts +2 -0
  55. package/dist/cli/doctor/checks/context-mode.d.ts +16 -0
  56. package/dist/cli/doctor/checks/dcp.d.ts +8 -0
  57. package/dist/cli/doctor/checks/docker.d.ts +2 -0
  58. package/dist/cli/doctor/checks/headroom.d.ts +2 -0
  59. package/dist/cli/doctor/checks/helpers.d.ts +2 -0
  60. package/dist/cli/doctor/checks/index.d.ts +16 -0
  61. package/dist/cli/doctor/checks/mcp.d.ts +2 -0
  62. package/dist/cli/doctor/checks/optional.d.ts +2 -0
  63. package/dist/cli/doctor/checks/plugin.d.ts +2 -0
  64. package/dist/cli/doctor/checks/rtk.d.ts +2 -0
  65. package/dist/cli/doctor/checks/runtime.d.ts +2 -0
  66. package/dist/cli/doctor/checks/tmux.d.ts +2 -0
  67. package/dist/cli/doctor/format.d.ts +3 -0
  68. package/dist/cli/doctor/index.d.ts +9 -0
  69. package/dist/cli/doctor/types.d.ts +24 -0
  70. package/dist/cli/index.d.ts +14 -0
  71. package/dist/cli/install/index.d.ts +12 -0
  72. package/dist/cli/setup/config-writer.d.ts +12 -0
  73. package/dist/cli/setup/constants.d.ts +8 -0
  74. package/dist/cli/setup/deps.d.ts +8 -0
  75. package/dist/cli/setup/index.d.ts +9 -0
  76. package/dist/cli/setup/opencode-sync.d.ts +9 -0
  77. package/dist/cli/setup/preset-wizard.d.ts +36 -0
  78. package/dist/cli/setup/prompts.d.ts +4 -0
  79. package/dist/cli/setup/types.d.ts +31 -0
  80. package/dist/cli.js +19958 -0
  81. package/dist/config/index.d.ts +2 -0
  82. package/dist/config/migrations/index.d.ts +1 -0
  83. package/dist/config/migrations/model-migration.d.ts +17 -0
  84. package/dist/config/preset-applier.d.ts +17 -0
  85. package/dist/config/schema/agent-definitions.d.ts +3 -0
  86. package/dist/config/schema/agent-names.d.ts +71 -0
  87. package/dist/config/schema/agent-overrides.d.ts +653 -0
  88. package/dist/config/schema/assembly.d.ts +13 -0
  89. package/dist/config/schema/babysitting.d.ts +5 -0
  90. package/dist/config/schema/background-task.d.ts +53 -0
  91. package/dist/config/schema/browser-automation.d.ts +17 -0
  92. package/dist/config/schema/categories.d.ts +65 -0
  93. package/dist/config/schema/commands.d.ts +21 -0
  94. package/dist/config/schema/comment-checker.d.ts +5 -0
  95. package/dist/config/schema/context-mode.d.ts +14 -0
  96. package/dist/config/schema/dcp.d.ts +367 -0
  97. package/dist/config/schema/evolution.d.ts +89 -0
  98. package/dist/config/schema/experimental.d.ts +14 -0
  99. package/dist/config/schema/headroom.d.ts +23 -0
  100. package/dist/config/schema/hooks.d.ts +70 -0
  101. package/dist/config/schema/internal/permission.d.ts +11 -0
  102. package/dist/config/schema/internal/request.d.ts +7 -0
  103. package/dist/config/schema/knowledge.d.ts +34 -0
  104. package/dist/config/schema/matrix-loop.d.ts +7 -0
  105. package/dist/config/schema/matrixx-config.d.ts +1299 -0
  106. package/dist/config/schema/matrixx-self-config.d.ts +6 -0
  107. package/dist/config/schema/memory.d.ts +191 -0
  108. package/dist/config/schema/model-config.d.ts +59 -0
  109. package/dist/config/schema/model-presets.d.ts +40 -0
  110. package/dist/config/schema/morpheus-agent.d.ts +8 -0
  111. package/dist/config/schema/morpheus.d.ts +26 -0
  112. package/dist/config/schema/notification.d.ts +12 -0
  113. package/dist/config/schema/plans.d.ts +6 -0
  114. package/dist/config/schema/rtk.d.ts +7 -0
  115. package/dist/config/schema/runtime-fallback.d.ts +10 -0
  116. package/dist/config/schema/security.d.ts +86 -0
  117. package/dist/config/schema/skills.d.ts +40 -0
  118. package/dist/config/schema/software-dev-enforcement.d.ts +30 -0
  119. package/dist/config/schema/subagent-block.d.ts +13 -0
  120. package/dist/config/schema/task.d.ts +6 -0
  121. package/dist/config/schema/tasks.d.ts +29 -0
  122. package/dist/config/schema/tdd-enforcer.d.ts +5 -0
  123. package/dist/config/schema/tmux.d.ts +23 -0
  124. package/dist/config/schema/tool-policy.d.ts +10 -0
  125. package/dist/config/schema.d.ts +39 -0
  126. package/dist/features/assembly-state/index.d.ts +1 -0
  127. package/dist/features/assembly-state/manager.d.ts +6 -0
  128. package/dist/features/background-agent/concurrency.d.ts +36 -0
  129. package/dist/features/background-agent/constants.d.ts +55 -0
  130. package/dist/features/background-agent/error-helpers.d.ts +4 -0
  131. package/dist/features/background-agent/handle-index.d.ts +79 -0
  132. package/dist/features/background-agent/index.d.ts +6 -0
  133. package/dist/features/background-agent/loop-detector.d.ts +16 -0
  134. package/dist/features/background-agent/manager.bench.d.ts +1 -0
  135. package/dist/features/background-agent/manager.d.ts +198 -0
  136. package/dist/features/background-agent/message-dir.d.ts +5 -0
  137. package/dist/features/background-agent/notification-builder.d.ts +11 -0
  138. package/dist/features/background-agent/revive.d.ts +39 -0
  139. package/dist/features/background-agent/session-output.d.ts +22 -0
  140. package/dist/features/background-agent/state.d.ts +35 -0
  141. package/dist/features/background-agent/task-history.d.ts +38 -0
  142. package/dist/features/background-agent/types.d.ts +113 -0
  143. package/dist/features/background-agent/wallclock.d.ts +37 -0
  144. package/dist/features/bdd/schema.d.ts +434 -0
  145. package/dist/features/bdd/types.d.ts +2 -0
  146. package/dist/features/builtin-commands/commands.d.ts +3 -0
  147. package/dist/features/builtin-commands/commands.transform.d.ts +57 -0
  148. package/dist/features/builtin-commands/templates/assembly.d.ts +1 -0
  149. package/dist/features/builtin-commands/templates/bdd-pipeline.d.ts +1 -0
  150. package/dist/features/builtin-commands/templates/cleanup-tasks.d.ts +1 -0
  151. package/dist/features/builtin-commands/templates/end-ultrawork.d.ts +1 -0
  152. package/dist/features/builtin-commands/templates/evolution.d.ts +1 -0
  153. package/dist/features/builtin-commands/templates/handoff.d.ts +1 -0
  154. package/dist/features/builtin-commands/templates/humanize.d.ts +1 -0
  155. package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
  156. package/dist/features/builtin-commands/templates/matrix-loop.d.ts +2 -0
  157. package/dist/features/builtin-commands/templates/pickup.d.ts +1 -0
  158. package/dist/features/builtin-commands/templates/plan-review.d.ts +1 -0
  159. package/dist/features/builtin-commands/templates/preset.d.ts +1 -0
  160. package/dist/features/builtin-commands/templates/quality-assurance.d.ts +1 -0
  161. package/dist/features/builtin-commands/templates/quality-audit.d.ts +1 -0
  162. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
  163. package/dist/features/builtin-commands/templates/remove-deadcode.d.ts +1 -0
  164. package/dist/features/builtin-commands/templates/research.d.ts +1 -0
  165. package/dist/features/builtin-commands/templates/security-audit.d.ts +1 -0
  166. package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
  167. package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -0
  168. package/dist/features/builtin-commands/templates/task-list.d.ts +1 -0
  169. package/dist/features/builtin-commands/templates/ultrawork.d.ts +1 -0
  170. package/dist/features/builtin-commands/types.d.ts +3 -0
  171. package/dist/features/command-loader/index.d.ts +1 -0
  172. package/dist/features/command-loader/types.d.ts +43 -0
  173. package/dist/features/completion-review/admission-gate.d.ts +84 -0
  174. package/dist/features/completion-review/calibration-baseline-check.d.ts +10 -0
  175. package/dist/features/completion-review/calibration-baseline.d.ts +9 -0
  176. package/dist/features/completion-review/calibration-corpus-aggregate.d.ts +18 -0
  177. package/dist/features/completion-review/calibration-corpus-scan.d.ts +20 -0
  178. package/dist/features/completion-review/calibration-corpus-types.d.ts +95 -0
  179. package/dist/features/completion-review/calibration-corpus.d.ts +5 -0
  180. package/dist/features/completion-review/calibration-observed.d.ts +16 -0
  181. package/dist/features/completion-review/calibration-render.d.ts +15 -0
  182. package/dist/features/completion-review/calibration-types.d.ts +51 -0
  183. package/dist/features/completion-review/calibration.d.ts +49 -0
  184. package/dist/features/completion-review/degradation-evaluate.d.ts +17 -0
  185. package/dist/features/completion-review/degradation-gate.d.ts +44 -0
  186. package/dist/features/completion-review/degradation-items.d.ts +38 -0
  187. package/dist/features/completion-review/degradation-model.d.ts +31 -0
  188. package/dist/features/completion-review/degradation-types.d.ts +99 -0
  189. package/dist/features/completion-review/degradation-vacuity.d.ts +32 -0
  190. package/dist/features/completion-review/degradation.d.ts +19 -0
  191. package/dist/features/completion-review/evidence-capture.d.ts +39 -0
  192. package/dist/features/completion-review/evidence-notepad.d.ts +15 -0
  193. package/dist/features/completion-review/evidence-resolve.d.ts +18 -0
  194. package/dist/features/completion-review/evidence-types.d.ts +34 -0
  195. package/dist/features/completion-review/gather-attribution.d.ts +36 -0
  196. package/dist/features/completion-review/gather-drift.d.ts +16 -0
  197. package/dist/features/completion-review/gather-notepads.d.ts +13 -0
  198. package/dist/features/completion-review/gather-types.d.ts +109 -0
  199. package/dist/features/completion-review/gather.d.ts +18 -0
  200. package/dist/features/completion-review/index.d.ts +35 -0
  201. package/dist/features/completion-review/report-gate.d.ts +29 -0
  202. package/dist/features/completion-review/report-sidecar.d.ts +2 -0
  203. package/dist/features/completion-review/report-summary.d.ts +10 -0
  204. package/dist/features/completion-review/report-taxonomy.d.ts +21 -0
  205. package/dist/features/completion-review/report-types.d.ts +142 -0
  206. package/dist/features/completion-review/report-write.d.ts +22 -0
  207. package/dist/features/completion-review/report.d.ts +9 -0
  208. package/dist/features/completion-review/rubric-dimensions.d.ts +11 -0
  209. package/dist/features/completion-review/rubric-dod.d.ts +10 -0
  210. package/dist/features/completion-review/rubric-drift.d.ts +6 -0
  211. package/dist/features/completion-review/rubric-gate.d.ts +1 -0
  212. package/dist/features/completion-review/rubric-score.d.ts +16 -0
  213. package/dist/features/completion-review/rubric-test-decision.d.ts +9 -0
  214. package/dist/features/completion-review/rubric-types.d.ts +87 -0
  215. package/dist/features/completion-review/rubric.d.ts +42 -0
  216. package/dist/features/context-injector/collector.d.ts +13 -0
  217. package/dist/features/context-injector/index.d.ts +3 -0
  218. package/dist/features/context-injector/injector.d.ts +28 -0
  219. package/dist/features/context-injector/types.d.ts +83 -0
  220. package/dist/features/context-mode-routing/routing-block.d.ts +24 -0
  221. package/dist/features/context-mode-routing/system-transform.d.ts +30 -0
  222. package/dist/features/evolution/compressor/index.d.ts +5 -0
  223. package/dist/features/evolution/compressor/interface.d.ts +10 -0
  224. package/dist/features/evolution/compressor/llm.d.ts +22 -0
  225. package/dist/features/evolution/evaluator.d.ts +11 -0
  226. package/dist/features/evolution/index.d.ts +11 -0
  227. package/dist/features/evolution/pipeline.d.ts +9 -0
  228. package/dist/features/evolution/schema.d.ts +46 -0
  229. package/dist/features/evolution/store/budget-ledger.d.ts +46 -0
  230. package/dist/features/evolution/store/lifecycle.d.ts +52 -0
  231. package/dist/features/evolution/store/project-identity.d.ts +27 -0
  232. package/dist/features/evolution/store/query.d.ts +23 -0
  233. package/dist/features/evolution/store/trace-store.d.ts +22 -0
  234. package/dist/features/evolution/types.d.ts +84 -0
  235. package/dist/features/evolution/writer-emit.d.ts +17 -0
  236. package/dist/features/evolution/writer-frontmatter.d.ts +23 -0
  237. package/dist/features/evolution/writer-supersede.d.ts +20 -0
  238. package/dist/features/evolution/writer.d.ts +24 -0
  239. package/dist/features/handoff/constants.d.ts +8 -0
  240. package/dist/features/handoff/index.d.ts +4 -0
  241. package/dist/features/handoff/schema.d.ts +90 -0
  242. package/dist/features/handoff/storage.d.ts +7 -0
  243. package/dist/features/handoff/validate.d.ts +22 -0
  244. package/dist/features/hook-message-injector/constants.d.ts +1 -0
  245. package/dist/features/hook-message-injector/index.d.ts +5 -0
  246. package/dist/features/hook-message-injector/injector.d.ts +62 -0
  247. package/dist/features/hook-message-injector/sdk-message-cache.d.ts +34 -0
  248. package/dist/features/hook-message-injector/types.d.ts +46 -0
  249. package/dist/features/knowledge-hub/index.d.ts +3 -0
  250. package/dist/features/knowledge-hub/loader.d.ts +11 -0
  251. package/dist/features/knowledge-hub/resolver.d.ts +2 -0
  252. package/dist/features/mission-state/atomic-write.d.ts +8 -0
  253. package/dist/features/mission-state/completion.d.ts +58 -0
  254. package/dist/features/mission-state/constants.d.ts +56 -0
  255. package/dist/features/mission-state/index.d.ts +7 -0
  256. package/dist/features/mission-state/plan-file-read.d.ts +15 -0
  257. package/dist/features/mission-state/plan-storage.d.ts +67 -0
  258. package/dist/features/mission-state/reconcile.d.ts +96 -0
  259. package/dist/features/mission-state/rehydrate.d.ts +30 -0
  260. package/dist/features/mission-state/storage.d.ts +53 -0
  261. package/dist/features/mission-state/types.d.ts +78 -0
  262. package/dist/features/plan-contract/appendix.d.ts +11 -0
  263. package/dist/features/plan-contract/constants.d.ts +18 -0
  264. package/dist/features/plan-contract/front-matter.d.ts +59 -0
  265. package/dist/features/plan-contract/index.d.ts +17 -0
  266. package/dist/features/plan-contract/lifecycle.d.ts +44 -0
  267. package/dist/features/plan-contract/migration-report.d.ts +50 -0
  268. package/dist/features/plan-contract/migration.d.ts +62 -0
  269. package/dist/features/plan-contract/parse.d.ts +38 -0
  270. package/dist/features/plan-contract/region.d.ts +67 -0
  271. package/dist/features/plan-contract/schema.d.ts +106 -0
  272. package/dist/features/plan-contract/section-registry-h3.d.ts +14 -0
  273. package/dist/features/plan-contract/section-registry.d.ts +87 -0
  274. package/dist/features/plan-contract/skeleton.d.ts +5 -0
  275. package/dist/features/plan-contract/types.d.ts +56 -0
  276. package/dist/features/plan-contract/validate.d.ts +12 -0
  277. package/dist/features/preset-state/manager.d.ts +5 -0
  278. package/dist/features/rtk-routing/routing-block.d.ts +19 -0
  279. package/dist/features/rtk-routing/system-transform.d.ts +43 -0
  280. package/dist/features/session-memory/compacting.d.ts +9 -0
  281. package/dist/features/session-memory/constants.d.ts +18 -0
  282. package/dist/features/session-memory/index.d.ts +13 -0
  283. package/dist/features/session-memory/recall.d.ts +64 -0
  284. package/dist/features/session-memory/retention.d.ts +29 -0
  285. package/dist/features/session-memory/storage.d.ts +21 -0
  286. package/dist/features/session-memory/summary.d.ts +26 -0
  287. package/dist/features/session-memory/types.d.ts +43 -0
  288. package/dist/features/session-state/state.d.ts +33 -0
  289. package/dist/features/task-session-scope/ancestry.d.ts +23 -0
  290. package/dist/features/task-session-scope/index.d.ts +2 -0
  291. package/dist/features/task-session-scope/session-task-pending.d.ts +83 -0
  292. package/dist/features/task-storage/storage.d.ts +23 -0
  293. package/dist/features/task-storage/types.d.ts +29 -0
  294. package/dist/features/task-toast-manager/index.d.ts +2 -0
  295. package/dist/features/task-toast-manager/manager.d.ts +55 -0
  296. package/dist/features/task-toast-manager/types.d.ts +24 -0
  297. package/dist/features/tool-metadata-store/call-id.d.ts +6 -0
  298. package/dist/features/tool-metadata-store/index.d.ts +4 -0
  299. package/dist/features/tool-metadata-store/store.d.ts +39 -0
  300. package/dist/features/ultrawork-state/index.d.ts +1 -0
  301. package/dist/features/ultrawork-state/manager.d.ts +6 -0
  302. package/dist/hooks/agent-usage-reminder/constants.d.ts +5 -0
  303. package/dist/hooks/agent-usage-reminder/hook.d.ts +16 -0
  304. package/dist/hooks/agent-usage-reminder/storage.d.ts +4 -0
  305. package/dist/hooks/agent-usage-reminder/types.d.ts +6 -0
  306. package/dist/hooks/anthropic-effort/hook.d.ts +26 -0
  307. package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
  308. package/dist/hooks/auto-slash-command/detector.d.ts +13 -0
  309. package/dist/hooks/auto-slash-command/executor.d.ts +23 -0
  310. package/dist/hooks/auto-slash-command/hook.d.ts +9 -0
  311. package/dist/hooks/auto-slash-command/index.d.ts +6 -0
  312. package/dist/hooks/auto-slash-command/types.d.ts +34 -0
  313. package/dist/hooks/auto-update-checker/cache.d.ts +1 -0
  314. package/dist/hooks/auto-update-checker/checker/cached-version.d.ts +1 -0
  315. package/dist/hooks/auto-update-checker/checker/check-for-update.d.ts +2 -0
  316. package/dist/hooks/auto-update-checker/checker/config-paths.d.ts +1 -0
  317. package/dist/hooks/auto-update-checker/checker/jsonc-strip.d.ts +1 -0
  318. package/dist/hooks/auto-update-checker/checker/latest-version.d.ts +1 -0
  319. package/dist/hooks/auto-update-checker/checker/local-dev-path.d.ts +2 -0
  320. package/dist/hooks/auto-update-checker/checker/local-dev-version.d.ts +1 -0
  321. package/dist/hooks/auto-update-checker/checker/package-json-locator.d.ts +1 -0
  322. package/dist/hooks/auto-update-checker/checker/pinned-version-updater.d.ts +2 -0
  323. package/dist/hooks/auto-update-checker/checker/plugin-entry.d.ts +7 -0
  324. package/dist/hooks/auto-update-checker/checker.d.ts +8 -0
  325. package/dist/hooks/auto-update-checker/constants.d.ts +9 -0
  326. package/dist/hooks/auto-update-checker/hook/background-update-check.d.ts +2 -0
  327. package/dist/hooks/auto-update-checker/hook/config-errors-toast.d.ts +2 -0
  328. package/dist/hooks/auto-update-checker/hook/connected-providers-status.d.ts +2 -0
  329. package/dist/hooks/auto-update-checker/hook/model-cache-warning.d.ts +2 -0
  330. package/dist/hooks/auto-update-checker/hook/spinner-toast.d.ts +2 -0
  331. package/dist/hooks/auto-update-checker/hook/startup-toasts.d.ts +3 -0
  332. package/dist/hooks/auto-update-checker/hook/update-toasts.d.ts +3 -0
  333. package/dist/hooks/auto-update-checker/hook.d.ts +5 -0
  334. package/dist/hooks/auto-update-checker/index.d.ts +5 -0
  335. package/dist/hooks/auto-update-checker/types.d.ts +25 -0
  336. package/dist/hooks/auto-update-checker/version-channel.d.ts +4 -0
  337. package/dist/hooks/background-notification/hook.d.ts +12 -0
  338. package/dist/hooks/background-notification/types.d.ts +4 -0
  339. package/dist/hooks/background-task-blocker/hook.d.ts +10 -0
  340. package/dist/hooks/bash-file-read-guard.d.ts +2 -0
  341. package/dist/hooks/category-skill-reminder/formatter.d.ts +2 -0
  342. package/dist/hooks/category-skill-reminder/hook.d.ts +19 -0
  343. package/dist/hooks/comment-checker/cli-runner.d.ts +20 -0
  344. package/dist/hooks/comment-checker/cli.d.ts +52 -0
  345. package/dist/hooks/comment-checker/downloader.d.ts +20 -0
  346. package/dist/hooks/comment-checker/hook.d.ts +19 -0
  347. package/dist/hooks/comment-checker/pending-calls.d.ts +4 -0
  348. package/dist/hooks/comment-checker/types.d.ts +13 -0
  349. package/dist/hooks/compaction-context-injector/hook.d.ts +8 -0
  350. package/dist/hooks/context-mode-enforcer/constants.d.ts +9 -0
  351. package/dist/hooks/context-mode-enforcer/guidance-throttle.d.ts +7 -0
  352. package/dist/hooks/context-mode-enforcer/hook.d.ts +3 -0
  353. package/dist/hooks/context-window-limit-recovery/client.d.ts +2 -0
  354. package/dist/hooks/context-window-limit-recovery/empty-content-recovery.d.ts +8 -0
  355. package/dist/hooks/context-window-limit-recovery/executor.d.ts +5 -0
  356. package/dist/hooks/context-window-limit-recovery/index.d.ts +8 -0
  357. package/dist/hooks/context-window-limit-recovery/message-builder.d.ts +4 -0
  358. package/dist/hooks/context-window-limit-recovery/parser-patterns.d.ts +11 -0
  359. package/dist/hooks/context-window-limit-recovery/parser.d.ts +15 -0
  360. package/dist/hooks/context-window-limit-recovery/recovery-hook.d.ts +11 -0
  361. package/dist/hooks/context-window-limit-recovery/state.d.ts +6 -0
  362. package/dist/hooks/context-window-limit-recovery/summarize-retry-strategy.d.ts +11 -0
  363. package/dist/hooks/context-window-limit-recovery/types.d.ts +31 -0
  364. package/dist/hooks/context-window-monitor.d.ts +18 -0
  365. package/dist/hooks/dcp-nudge-sanitizer/constants.d.ts +5 -0
  366. package/dist/hooks/dcp-nudge-sanitizer/hook.d.ts +34 -0
  367. package/dist/hooks/delegate-task-retry/guidance.d.ts +2 -0
  368. package/dist/hooks/delegate-task-retry/hook.d.ts +12 -0
  369. package/dist/hooks/delegate-task-retry/patterns.d.ts +11 -0
  370. package/dist/hooks/design-intent-preserver/constants.d.ts +6 -0
  371. package/dist/hooks/design-intent-preserver/hook.d.ts +19 -0
  372. package/dist/hooks/design-intent-preserver/phase-detector.d.ts +8 -0
  373. package/dist/hooks/directory-agents-injector/constants.d.ts +2 -0
  374. package/dist/hooks/directory-agents-injector/finder.d.ts +5 -0
  375. package/dist/hooks/directory-agents-injector/hook.d.ts +20 -0
  376. package/dist/hooks/directory-agents-injector/injector.d.ts +16 -0
  377. package/dist/hooks/directory-agents-injector/storage.d.ts +1 -0
  378. package/dist/hooks/directory-injector/factory.d.ts +34 -0
  379. package/dist/hooks/directory-injector/index.d.ts +1 -0
  380. package/dist/hooks/docs-lookup-guard/constants.d.ts +6 -0
  381. package/dist/hooks/docs-lookup-guard/hook.d.ts +3 -0
  382. package/dist/hooks/document-reader-guard/constants.d.ts +5 -0
  383. package/dist/hooks/document-reader-guard/hook.d.ts +3 -0
  384. package/dist/hooks/domain-keyword-detector/constants.d.ts +18 -0
  385. package/dist/hooks/domain-keyword-detector/detector.d.ts +16 -0
  386. package/dist/hooks/domain-keyword-detector/hook.d.ts +26 -0
  387. package/dist/hooks/domain-keyword-detector/index.d.ts +3 -0
  388. package/dist/hooks/edit-error-recovery/hook.d.ts +31 -0
  389. package/dist/hooks/empty-task-response-detector.d.ts +12 -0
  390. package/dist/hooks/env-context-injector/flat.d.ts +22 -0
  391. package/dist/hooks/env-context-injector/index.d.ts +39 -0
  392. package/dist/hooks/env-file-write-guard/hook.d.ts +15 -0
  393. package/dist/hooks/env-file-write-guard/sensitive-file-matcher.d.ts +1 -0
  394. package/dist/hooks/evolution-compressor/host-llm-call.d.ts +15 -0
  395. package/dist/hooks/evolution-hitl/flat.d.ts +29 -0
  396. package/dist/hooks/evolution-hitl/index.d.ts +27 -0
  397. package/dist/hooks/evolution-quality-gate/index.d.ts +6 -0
  398. package/dist/hooks/evolution-watcher/index.d.ts +21 -0
  399. package/dist/hooks/evolution-watcher/utils.d.ts +5 -0
  400. package/dist/hooks/hashline-read-enhancer/hook.d.ts +18 -0
  401. package/dist/hooks/index.d.ts +68 -0
  402. package/dist/hooks/input-secret-guard/detection-rules.d.ts +10 -0
  403. package/dist/hooks/input-secret-guard/detector.d.ts +21 -0
  404. package/dist/hooks/input-secret-guard/hook.d.ts +19 -0
  405. package/dist/hooks/input-secret-guard/redactor.d.ts +2 -0
  406. package/dist/hooks/input-secret-guard/session-allow-cache.d.ts +6 -0
  407. package/dist/hooks/interactive-bash-session/constants.d.ts +3 -0
  408. package/dist/hooks/interactive-bash-session/hook.d.ts +18 -0
  409. package/dist/hooks/interactive-bash-session/parser.d.ts +20 -0
  410. package/dist/hooks/interactive-bash-session/state-manager.d.ts +4 -0
  411. package/dist/hooks/interactive-bash-session/storage.d.ts +4 -0
  412. package/dist/hooks/interactive-bash-session/types.d.ts +10 -0
  413. package/dist/hooks/json-error-recovery/hook.d.ts +15 -0
  414. package/dist/hooks/json-error-recovery/index.d.ts +1 -0
  415. package/dist/hooks/keyword-detector/analyze/default.d.ts +12 -0
  416. package/dist/hooks/keyword-detector/constants.d.ts +10 -0
  417. package/dist/hooks/keyword-detector/detector.d.ts +11 -0
  418. package/dist/hooks/keyword-detector/docs/default.d.ts +14 -0
  419. package/dist/hooks/keyword-detector/hook.d.ts +20 -0
  420. package/dist/hooks/keyword-detector/search/default.d.ts +12 -0
  421. package/dist/hooks/keyword-detector/ultrawork/deepseek.d.ts +16 -0
  422. package/dist/hooks/keyword-detector/ultrawork/default.d.ts +6 -0
  423. package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +12 -0
  424. package/dist/hooks/keyword-detector/ultrawork/glm.d.ts +11 -0
  425. package/dist/hooks/keyword-detector/ultrawork/gpt5.2.d.ts +12 -0
  426. package/dist/hooks/keyword-detector/ultrawork/index.d.ts +25 -0
  427. package/dist/hooks/keyword-detector/ultrawork/mimo.d.ts +16 -0
  428. package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +6 -0
  429. package/dist/hooks/keyword-detector/ultrawork/source-detector.d.ts +33 -0
  430. package/dist/hooks/knowledge-hub-guard/approvals.d.ts +5 -0
  431. package/dist/hooks/knowledge-hub-guard/hook.d.ts +15 -0
  432. package/dist/hooks/knowledge-hub-injector/hook.d.ts +37 -0
  433. package/dist/hooks/knowledge-hub-search-nudge/hook.d.ts +16 -0
  434. package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +11 -0
  435. package/dist/hooks/matrix-loop/completion-verifier.d.ts +18 -0
  436. package/dist/hooks/matrix-loop/constants.d.ts +7 -0
  437. package/dist/hooks/matrix-loop/continuation-prompt-builder.d.ts +2 -0
  438. package/dist/hooks/matrix-loop/continuation-prompt-injector.d.ts +7 -0
  439. package/dist/hooks/matrix-loop/loop-session-recovery.d.ts +7 -0
  440. package/dist/hooks/matrix-loop/loop-state-controller.d.ts +16 -0
  441. package/dist/hooks/matrix-loop/matrix-loop-event-handler.d.ts +24 -0
  442. package/dist/hooks/matrix-loop/matrix-loop-hook.d.ts +14 -0
  443. package/dist/hooks/matrix-loop/storage.d.ts +5 -0
  444. package/dist/hooks/matrix-loop/types.d.ts +25 -0
  445. package/dist/hooks/mouse-notepad/constants.d.ts +2 -0
  446. package/dist/hooks/mouse-notepad/hook.d.ts +11 -0
  447. package/dist/hooks/niobe/bash-command-policy.d.ts +4 -0
  448. package/dist/hooks/niobe/event-handler.d.ts +9 -0
  449. package/dist/hooks/niobe/hook-name.d.ts +1 -0
  450. package/dist/hooks/niobe/matrix-path.d.ts +1 -0
  451. package/dist/hooks/niobe/mission-continuation-injector.d.ts +13 -0
  452. package/dist/hooks/niobe/niobe-hook.d.ts +14 -0
  453. package/dist/hooks/niobe/recent-model-resolver.d.ts +3 -0
  454. package/dist/hooks/niobe/session-last-agent.d.ts +2 -0
  455. package/dist/hooks/niobe/subagent-session-id.d.ts +1 -0
  456. package/dist/hooks/niobe/system-reminder-templates.d.ts +5 -0
  457. package/dist/hooks/niobe/tool-execute-after.d.ts +6 -0
  458. package/dist/hooks/niobe/tool-execute-before.d.ts +12 -0
  459. package/dist/hooks/niobe/types.d.ts +27 -0
  460. package/dist/hooks/niobe/verification-reminders.d.ts +5 -0
  461. package/dist/hooks/niobe/write-edit-tool-policy.d.ts +1 -0
  462. package/dist/hooks/non-interactive-env/constants.d.ts +34 -0
  463. package/dist/hooks/non-interactive-env/detector.d.ts +1 -0
  464. package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +13 -0
  465. package/dist/hooks/nudge-loop-breaker/constants.d.ts +9 -0
  466. package/dist/hooks/nudge-loop-breaker/hook.d.ts +12 -0
  467. package/dist/hooks/nudge-loop-breaker/session-state.d.ts +11 -0
  468. package/dist/hooks/oracle-md-only/agent-matcher.d.ts +1 -0
  469. package/dist/hooks/oracle-md-only/agent-resolution.d.ts +14 -0
  470. package/dist/hooks/oracle-md-only/constants.d.ts +6 -0
  471. package/dist/hooks/oracle-md-only/hook.d.ts +11 -0
  472. package/dist/hooks/oracle-md-only/path-policy.d.ts +10 -0
  473. package/dist/hooks/plan-persister/hook.d.ts +16 -0
  474. package/dist/hooks/plan-persister/index.d.ts +6 -0
  475. package/dist/hooks/plan-persister/task-link.d.ts +31 -0
  476. package/dist/hooks/plan-persister/task-sync.d.ts +39 -0
  477. package/dist/hooks/post-read-injector/block.d.ts +1 -0
  478. package/dist/hooks/post-read-injector/constants.d.ts +4 -0
  479. package/dist/hooks/post-read-injector/hook.d.ts +24 -0
  480. package/dist/hooks/post-read-injector/index.d.ts +8 -0
  481. package/dist/hooks/post-read-injector/injector.d.ts +21 -0
  482. package/dist/hooks/post-read-injector/sections.d.ts +7 -0
  483. package/dist/hooks/post-read-injector/unified-walk.d.ts +6 -0
  484. package/dist/hooks/quality-gate/hook.d.ts +31 -0
  485. package/dist/hooks/read-image-resizer/hook.d.ts +12 -0
  486. package/dist/hooks/read-image-resizer/image-dimensions.d.ts +2 -0
  487. package/dist/hooks/read-image-resizer/image-resizer.d.ts +5 -0
  488. package/dist/hooks/read-image-resizer/png-fallback-resizer.d.ts +2 -0
  489. package/dist/hooks/read-image-resizer/types.d.ts +14 -0
  490. package/dist/hooks/rtk-bash-rewriter/constants.d.ts +3 -0
  491. package/dist/hooks/rtk-bash-rewriter/hook.d.ts +12 -0
  492. package/dist/hooks/rtk-bash-rewriter/types.d.ts +11 -0
  493. package/dist/hooks/rules-injector/cache.d.ts +8 -0
  494. package/dist/hooks/rules-injector/constants.d.ts +6 -0
  495. package/dist/hooks/rules-injector/finder.d.ts +3 -0
  496. package/dist/hooks/rules-injector/hook.d.ts +20 -0
  497. package/dist/hooks/rules-injector/injector.d.ts +21 -0
  498. package/dist/hooks/rules-injector/matcher.d.ts +22 -0
  499. package/dist/hooks/rules-injector/output-path.d.ts +6 -0
  500. package/dist/hooks/rules-injector/parser.d.ts +18 -0
  501. package/dist/hooks/rules-injector/project-root-finder.d.ts +8 -0
  502. package/dist/hooks/rules-injector/rule-distance.d.ts +10 -0
  503. package/dist/hooks/rules-injector/rule-file-finder.d.ts +13 -0
  504. package/dist/hooks/rules-injector/rule-file-scanner.d.ts +14 -0
  505. package/dist/hooks/rules-injector/storage.d.ts +9 -0
  506. package/dist/hooks/rules-injector/types.d.ts +32 -0
  507. package/dist/hooks/runtime-fallback/agent-resolver.d.ts +4 -0
  508. package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +5 -0
  509. package/dist/hooks/runtime-fallback/auto-retry.d.ts +10 -0
  510. package/dist/hooks/runtime-fallback/chat-message-handler.d.ts +20 -0
  511. package/dist/hooks/runtime-fallback/constants.d.ts +4 -0
  512. package/dist/hooks/runtime-fallback/error-classifier.d.ts +13 -0
  513. package/dist/hooks/runtime-fallback/event-handler.d.ts +4 -0
  514. package/dist/hooks/runtime-fallback/fallback-bootstrap-model.d.ts +10 -0
  515. package/dist/hooks/runtime-fallback/fallback-models.d.ts +2 -0
  516. package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +11 -0
  517. package/dist/hooks/runtime-fallback/fallback-state.d.ts +4 -0
  518. package/dist/hooks/runtime-fallback/hook.d.ts +2 -0
  519. package/dist/hooks/runtime-fallback/index.d.ts +3 -0
  520. package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +4 -0
  521. package/dist/hooks/runtime-fallback/message-update-handler.d.ts +4 -0
  522. package/dist/hooks/runtime-fallback/model-utils.d.ts +7 -0
  523. package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +11 -0
  524. package/dist/hooks/runtime-fallback/retry-status-utils.d.ts +2 -0
  525. package/dist/hooks/runtime-fallback/session-category-registry.d.ts +6 -0
  526. package/dist/hooks/runtime-fallback/session-messages.d.ts +4 -0
  527. package/dist/hooks/runtime-fallback/session-status-handler.d.ts +3 -0
  528. package/dist/hooks/runtime-fallback/types.d.ts +65 -0
  529. package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +3 -0
  530. package/dist/hooks/secret-leak-guard/git-command-detector.d.ts +2 -0
  531. package/dist/hooks/secret-leak-guard/gitleaks-runner.d.ts +16 -0
  532. package/dist/hooks/secret-leak-guard/hook.d.ts +17 -0
  533. package/dist/hooks/secret-leak-guard/result-formatter.d.ts +3 -0
  534. package/dist/hooks/session-memory/hook.d.ts +23 -0
  535. package/dist/hooks/session-memory/index.d.ts +1 -0
  536. package/dist/hooks/session-notification-formatting.d.ts +3 -0
  537. package/dist/hooks/session-notification-scheduler.d.ts +24 -0
  538. package/dist/hooks/session-notification-sender.d.ts +6 -0
  539. package/dist/hooks/session-notification-utils.d.ts +9 -0
  540. package/dist/hooks/session-notification.d.ts +23 -0
  541. package/dist/hooks/session-recovery/constants.d.ts +3 -0
  542. package/dist/hooks/session-recovery/detect-error-type.d.ts +3 -0
  543. package/dist/hooks/session-recovery/hook.d.ts +20 -0
  544. package/dist/hooks/session-recovery/index.d.ts +5 -0
  545. package/dist/hooks/session-recovery/recover-thinking-block-order.d.ts +7 -0
  546. package/dist/hooks/session-recovery/recover-thinking-disabled-violation.d.ts +7 -0
  547. package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +7 -0
  548. package/dist/hooks/session-recovery/resume.d.ts +9 -0
  549. package/dist/hooks/session-recovery/storage/empty-messages.d.ts +3 -0
  550. package/dist/hooks/session-recovery/storage/empty-text.d.ts +5 -0
  551. package/dist/hooks/session-recovery/storage/messages-reader.d.ts +4 -0
  552. package/dist/hooks/session-recovery/storage/orphan-thinking-search.d.ts +2 -0
  553. package/dist/hooks/session-recovery/storage/part-content.d.ts +3 -0
  554. package/dist/hooks/session-recovery/storage/part-id.d.ts +1 -0
  555. package/dist/hooks/session-recovery/storage/parts-reader.d.ts +4 -0
  556. package/dist/hooks/session-recovery/storage/text-part-injector.d.ts +3 -0
  557. package/dist/hooks/session-recovery/storage/thinking-block-search.d.ts +2 -0
  558. package/dist/hooks/session-recovery/storage/thinking-prepend.d.ts +3 -0
  559. package/dist/hooks/session-recovery/storage/thinking-strip.d.ts +3 -0
  560. package/dist/hooks/session-recovery/storage.d.ts +12 -0
  561. package/dist/hooks/session-recovery/types.d.ts +66 -0
  562. package/dist/hooks/shared/compaction-model-resolver.d.ts +5 -0
  563. package/dist/hooks/silent-failure-guard/constants.d.ts +14 -0
  564. package/dist/hooks/silent-failure-guard/hook.d.ts +24 -0
  565. package/dist/hooks/silent-failure-guard/index.d.ts +2 -0
  566. package/dist/hooks/software-dev-enforcement/constants.d.ts +5 -0
  567. package/dist/hooks/software-dev-enforcement/hook.d.ts +11 -0
  568. package/dist/hooks/start-work/plan-filter.d.ts +61 -0
  569. package/dist/hooks/start-work/start-work-hook.d.ts +16 -0
  570. package/dist/hooks/stop-continuation-guard/hook.d.ts +19 -0
  571. package/dist/hooks/subagent-block/constants.d.ts +3 -0
  572. package/dist/hooks/subagent-block/hook.d.ts +16 -0
  573. package/dist/hooks/task-continuation-enforcer/abort-detection.d.ts +2 -0
  574. package/dist/hooks/task-continuation-enforcer/constants.d.ts +9 -0
  575. package/dist/hooks/task-continuation-enforcer/continuation-injection.d.ts +14 -0
  576. package/dist/hooks/task-continuation-enforcer/countdown.d.ts +16 -0
  577. package/dist/hooks/task-continuation-enforcer/handler.d.ts +13 -0
  578. package/dist/hooks/task-continuation-enforcer/idle-event.d.ts +13 -0
  579. package/dist/hooks/task-continuation-enforcer/index.d.ts +5 -0
  580. package/dist/hooks/task-continuation-enforcer/non-idle-events.d.ts +6 -0
  581. package/dist/hooks/task-continuation-enforcer/session-state.d.ts +10 -0
  582. package/dist/hooks/task-continuation-enforcer/staleness.d.ts +32 -0
  583. package/dist/hooks/task-continuation-enforcer/todo.d.ts +29 -0
  584. package/dist/hooks/task-continuation-enforcer/types.d.ts +54 -0
  585. package/dist/hooks/task-edit-guard/constants.d.ts +4 -0
  586. package/dist/hooks/task-edit-guard/hook.d.ts +3 -0
  587. package/dist/hooks/task-notepad-writer/constants.d.ts +42 -0
  588. package/dist/hooks/task-notepad-writer/hook.d.ts +14 -0
  589. package/dist/hooks/task-notepad-writer/notepad-path.d.ts +36 -0
  590. package/dist/hooks/task-resume-info/hook.d.ts +11 -0
  591. package/dist/hooks/think-mode/detector.d.ts +5 -0
  592. package/dist/hooks/think-mode/hook.d.ts +11 -0
  593. package/dist/hooks/think-mode/index.d.ts +4 -0
  594. package/dist/hooks/think-mode/switcher.d.ts +76 -0
  595. package/dist/hooks/think-mode/types.d.ts +25 -0
  596. package/dist/hooks/thinking-block-validator/flat.d.ts +24 -0
  597. package/dist/hooks/thinking-block-validator/hook.d.ts +45 -0
  598. package/dist/hooks/tool-output-truncator.d.ts +17 -0
  599. package/dist/hooks/tool-pair-validator/hook.d.ts +43 -0
  600. package/dist/hooks/unstable-agent-babysitter/index.d.ts +2 -0
  601. package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +23 -0
  602. package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +17 -0
  603. package/dist/hooks/webfetch-redirect-guard/constants.d.ts +6 -0
  604. package/dist/hooks/webfetch-redirect-guard/hook.d.ts +19 -0
  605. package/dist/hooks/webfetch-redirect-guard/redirect-resolution.d.ts +16 -0
  606. package/dist/hooks/write-existing-file-guard/hook.d.ts +3 -0
  607. package/dist/index.d.ts +21 -0
  608. package/dist/index.js +102004 -0
  609. package/dist/matrixx.schema.json +4730 -0
  610. package/dist/mcps/context7.d.ts +9 -0
  611. package/dist/mcps/document-reader.d.ts +5 -0
  612. package/dist/mcps/index.d.ts +22 -0
  613. package/dist/mcps/mcp-startup-state.d.ts +4 -0
  614. package/dist/mcps/mcp-validator.d.ts +11 -0
  615. package/dist/mcps/mcp.transform.d.ts +61 -0
  616. package/dist/mcps/types.d.ts +8 -0
  617. package/dist/plugin/available-categories.d.ts +3 -0
  618. package/dist/plugin/chat-message.d.ts +30 -0
  619. package/dist/plugin/chat-params.d.ts +28 -0
  620. package/dist/plugin/context.d.ts +298 -0
  621. package/dist/plugin/event-dispatch.d.ts +29 -0
  622. package/dist/plugin/event.d.ts +20 -0
  623. package/dist/plugin/hooks/create-continuation-hooks.d.ts +29 -0
  624. package/dist/plugin/hooks/create-session-hooks.d.ts +32 -0
  625. package/dist/plugin/hooks/create-skill-hooks.d.ts +16 -0
  626. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +38 -0
  627. package/dist/plugin/hooks/create-transform-hooks.d.ts +29 -0
  628. package/dist/plugin/legacy-hooks.d.ts +143 -0
  629. package/dist/plugin/message-hooks/context-injector.d.ts +12 -0
  630. package/dist/plugin/message-hooks/dcp-nudge-sanitizer.d.ts +43 -0
  631. package/dist/plugin/message-hooks/domain-keyword-detector.d.ts +30 -0
  632. package/dist/plugin/message-hooks/env-context-injector.d.ts +14 -0
  633. package/dist/plugin/message-hooks/evolution-hitl.d.ts +17 -0
  634. package/dist/plugin/message-hooks/index.d.ts +54 -0
  635. package/dist/plugin/message-hooks/knowledge-hub-injector.d.ts +18 -0
  636. package/dist/plugin/message-hooks/thinking-block-validator.d.ts +15 -0
  637. package/dist/plugin/message-hooks/tool-pair-validator.d.ts +47 -0
  638. package/dist/plugin/native-context.d.ts +12 -0
  639. package/dist/plugin/recent-synthetic-idles.d.ts +6 -0
  640. package/dist/plugin/session-agent-resolver.d.ts +2 -0
  641. package/dist/plugin/session-status-normalizer.d.ts +2 -0
  642. package/dist/plugin/setup-domains.d.ts +112 -0
  643. package/dist/plugin/skill-context.d.ts +14 -0
  644. package/dist/plugin/tool-catalog.d.ts +18 -0
  645. package/dist/plugin/tool-definition.d.ts +11 -0
  646. package/dist/plugin/tool-execute-after.d.ts +12 -0
  647. package/dist/plugin/tool-execute-before.bench.d.ts +1 -0
  648. package/dist/plugin/tool-execute-before.d.ts +14 -0
  649. package/dist/plugin/tool-policy.d.ts +67 -0
  650. package/dist/plugin/unstable-agent-babysitter.d.ts +10 -0
  651. package/dist/plugin-config.d.ts +30 -0
  652. package/dist/plugin-handlers/agent-config-handler.d.ts +15 -0
  653. package/dist/plugin-handlers/agent-priority-order.d.ts +1 -0
  654. package/dist/plugin-handlers/agent-tool-allowlist.d.ts +11 -0
  655. package/dist/plugin-handlers/category-config-resolver.d.ts +2 -0
  656. package/dist/plugin-handlers/command-config-handler.d.ts +10 -0
  657. package/dist/plugin-handlers/config-handler.d.ts +12 -0
  658. package/dist/plugin-handlers/formatter-config-handler.d.ts +17 -0
  659. package/dist/plugin-handlers/index.d.ts +11 -0
  660. package/dist/plugin-handlers/mcp-config-handler.d.ts +7 -0
  661. package/dist/plugin-handlers/oracle-agent-config-builder.d.ts +19 -0
  662. package/dist/plugin-handlers/plan-model-inheritance.d.ts +1 -0
  663. package/dist/plugin-handlers/plugin-components-loader.d.ts +22 -0
  664. package/dist/plugin-handlers/provider-config-handler.d.ts +5 -0
  665. package/dist/plugin-handlers/task-permissions.d.ts +41 -0
  666. package/dist/plugin-handlers/tool-config-handler.d.ts +6 -0
  667. package/dist/plugin-state.d.ts +5 -0
  668. package/dist/shared/agent-display-names.d.ts +17 -0
  669. package/dist/shared/agent-label.d.ts +21 -0
  670. package/dist/shared/agent-tool-restrictions.d.ts +6 -0
  671. package/dist/shared/agent-variant.d.ts +9 -0
  672. package/dist/shared/awaiting-user.d.ts +12 -0
  673. package/dist/shared/binary-downloader.d.ts +10 -0
  674. package/dist/shared/code-patterns.d.ts +2 -0
  675. package/dist/shared/command-executor/embedded-commands.d.ts +8 -0
  676. package/dist/shared/command-executor/execute-command.d.ts +1 -0
  677. package/dist/shared/command-executor/resolve-commands-in-text.d.ts +1 -0
  678. package/dist/shared/command-executor.d.ts +2 -0
  679. package/dist/shared/compaction-log.d.ts +11 -0
  680. package/dist/shared/config-errors.d.ts +10 -0
  681. package/dist/shared/connected-providers-cache.d.ts +55 -0
  682. package/dist/shared/context-limit-resolver.d.ts +6 -0
  683. package/dist/shared/context-limits.d.ts +36 -0
  684. package/dist/shared/context-mode-enforcement.d.ts +55 -0
  685. package/dist/shared/data-path.d.ts +30 -0
  686. package/dist/shared/dcp-guidance.d.ts +16 -0
  687. package/dist/shared/dcp-switch-profile.d.ts +19 -0
  688. package/dist/shared/deep-merge.d.ts +13 -0
  689. package/dist/shared/delay.d.ts +1 -0
  690. package/dist/shared/disabled-tools.d.ts +2 -0
  691. package/dist/shared/dynamic-truncator.d.ts +23 -0
  692. package/dist/shared/error-formatting.d.ts +28 -0
  693. package/dist/shared/escape-regexp.d.ts +1 -0
  694. package/dist/shared/external-plugin-detector.d.ts +19 -0
  695. package/dist/shared/file-reference-resolver.d.ts +1 -0
  696. package/dist/shared/file-utils.d.ts +7 -0
  697. package/dist/shared/first-message-variant.d.ts +11 -0
  698. package/dist/shared/format-bytes.d.ts +1 -0
  699. package/dist/shared/format-duration.d.ts +4 -0
  700. package/dist/shared/frontmatter.d.ts +8 -0
  701. package/dist/shared/git-worktree/collect-git-diff-stats.d.ts +2 -0
  702. package/dist/shared/git-worktree/format-file-changes.d.ts +2 -0
  703. package/dist/shared/git-worktree/parse-diff-numstat.d.ts +2 -0
  704. package/dist/shared/git-worktree/parse-status-porcelain.d.ts +2 -0
  705. package/dist/shared/git-worktree/types.d.ts +7 -0
  706. package/dist/shared/index.d.ts +70 -0
  707. package/dist/shared/injection-notifier.d.ts +14 -0
  708. package/dist/shared/is-abort-error.d.ts +1 -0
  709. package/dist/shared/json-safe-metadata.d.ts +1 -0
  710. package/dist/shared/jsonc-parser.d.ts +16 -0
  711. package/dist/shared/logger.d.ts +2 -0
  712. package/dist/shared/memory-backend-detect.d.ts +16 -0
  713. package/dist/shared/merge-categories.d.ts +6 -0
  714. package/dist/shared/migration/hook-names.d.ts +7 -0
  715. package/dist/shared/model-availability.d.ts +34 -0
  716. package/dist/shared/model-requirements.d.ts +23 -0
  717. package/dist/shared/model-resolution-pipeline.d.ts +27 -0
  718. package/dist/shared/model-sanitizer.d.ts +3 -0
  719. package/dist/shared/model-suggestion-retry.d.ts +43 -0
  720. package/dist/shared/normalize-sdk-response.d.ts +1 -0
  721. package/dist/shared/notify.d.ts +5 -0
  722. package/dist/shared/opencode-config-dir.d.ts +18 -0
  723. package/dist/shared/opencode-http-api.d.ts +3 -0
  724. package/dist/shared/opencode-message-dir.d.ts +1 -0
  725. package/dist/shared/opencode-server-auth.d.ts +6 -0
  726. package/dist/shared/opencode-storage-detection.d.ts +2 -0
  727. package/dist/shared/opencode-storage-paths.d.ts +4 -0
  728. package/dist/shared/opencode-version.d.ts +24 -0
  729. package/dist/shared/permission-compat.d.ts +19 -0
  730. package/dist/shared/poll-timeout-outcome.d.ts +21 -0
  731. package/dist/shared/port-utils.d.ts +9 -0
  732. package/dist/shared/record-type-guard.d.ts +1 -0
  733. package/dist/shared/revive-outcome.d.ts +15 -0
  734. package/dist/shared/rtk-enforcement.d.ts +18 -0
  735. package/dist/shared/safe-create-hook.d.ts +6 -0
  736. package/dist/shared/saturated-outcome.d.ts +18 -0
  737. package/dist/shared/sentinels.d.ts +2 -0
  738. package/dist/shared/session-context-source.d.ts +36 -0
  739. package/dist/shared/session-cursor.d.ts +9 -0
  740. package/dist/shared/session-directory-resolver.d.ts +1 -0
  741. package/dist/shared/session-facade.d.ts +55 -0
  742. package/dist/shared/session-id.d.ts +8 -0
  743. package/dist/shared/session-injected-paths.d.ts +5 -0
  744. package/dist/shared/session-message.d.ts +30 -0
  745. package/dist/shared/session-state.d.ts +15 -0
  746. package/dist/shared/session-utils.d.ts +2 -0
  747. package/dist/shared/shell-env.d.ts +25 -0
  748. package/dist/shared/shell-tool-name.d.ts +15 -0
  749. package/dist/shared/skill-path-resolver.d.ts +9 -0
  750. package/dist/shared/software-dev-enforcement/index.d.ts +2 -0
  751. package/dist/shared/software-dev-enforcement/payload.d.ts +29 -0
  752. package/dist/shared/software-dev-enforcement/targets.d.ts +13 -0
  753. package/dist/shared/state-root.d.ts +26 -0
  754. package/dist/shared/status-types.d.ts +1 -0
  755. package/dist/shared/system-directive.d.ts +77 -0
  756. package/dist/shared/task-system-gating.d.ts +33 -0
  757. package/dist/shared/tmux/constants.d.ts +5 -0
  758. package/dist/shared/tmux/tmux-utils/environment.d.ts +3 -0
  759. package/dist/shared/tmux/tmux-utils/pane-dimensions.d.ts +5 -0
  760. package/dist/shared/tmux/tmux-utils/server-health.d.ts +2 -0
  761. package/dist/shared/tmux/tmux-utils.d.ts +4 -0
  762. package/dist/shared/tmux/types.d.ts +4 -0
  763. package/dist/shared/token-cache.d.ts +23 -0
  764. package/dist/shared/tool-guards.d.ts +16 -0
  765. package/dist/shared/transcript-path.d.ts +1 -0
  766. package/dist/shared/truncate-description.d.ts +1 -0
  767. package/dist/shared/unwrap-list.d.ts +1 -0
  768. package/dist/shared/wallclock-outcome.d.ts +18 -0
  769. package/dist/shared/with-ephemeral-session.d.ts +16 -0
  770. package/dist/shared/with-timeout.d.ts +1 -0
  771. package/dist/shared/zip-extractor.d.ts +1 -0
  772. package/dist/skills/index.d.ts +4 -0
  773. package/dist/skills/lazy-skill-helper.d.ts +17 -0
  774. package/dist/skills/schemas/audits-store.d.ts +90 -0
  775. package/dist/skills/schemas/security-audit.d.ts +144 -0
  776. package/dist/skills/skills/bdd-backend.d.ts +3 -0
  777. package/dist/skills/skills/bdd-contract.d.ts +3 -0
  778. package/dist/skills/skills/bdd-frontend.d.ts +3 -0
  779. package/dist/skills/skills/bdd-tests.d.ts +3 -0
  780. package/dist/skills/skills/ccxt-pro-websockets.d.ts +3 -0
  781. package/dist/skills/skills/ccxt-rest.d.ts +3 -0
  782. package/dist/skills/skills/crypto-market-structure.d.ts +3 -0
  783. package/dist/skills/skills/data-quality-observability.d.ts +3 -0
  784. package/dist/skills/skills/dev-browser.d.ts +2 -0
  785. package/dist/skills/skills/docker-master.d.ts +2 -0
  786. package/dist/skills/skills/document-reader.d.ts +2 -0
  787. package/dist/skills/skills/dsl-codegen.d.ts +3 -0
  788. package/dist/skills/skills/dsl-composition.d.ts +3 -0
  789. package/dist/skills/skills/dsl-core.d.ts +3 -0
  790. package/dist/skills/skills/dsl-grammar.d.ts +3 -0
  791. package/dist/skills/skills/dsl-metamodel.d.ts +3 -0
  792. package/dist/skills/skills/dsl-model-transformation.d.ts +3 -0
  793. package/dist/skills/skills/dsl-pyecore-advanced.d.ts +3 -0
  794. package/dist/skills/skills/dsl-testing.d.ts +3 -0
  795. package/dist/skills/skills/dsl-textx-ecosystem.d.ts +3 -0
  796. package/dist/skills/skills/dsl-tooling.d.ts +3 -0
  797. package/dist/skills/skills/dsl-validation.d.ts +3 -0
  798. package/dist/skills/skills/frontend-a11y.d.ts +3 -0
  799. package/dist/skills/skills/frontend-build-tooling.d.ts +3 -0
  800. package/dist/skills/skills/frontend-perf.d.ts +3 -0
  801. package/dist/skills/skills/frontend-react-nextjs.d.ts +3 -0
  802. package/dist/skills/skills/frontend-state-data.d.ts +3 -0
  803. package/dist/skills/skills/frontend-svelte-sveltekit.d.ts +3 -0
  804. package/dist/skills/skills/frontend-testing.d.ts +3 -0
  805. package/dist/skills/skills/frontend-ui-ux.d.ts +2 -0
  806. package/dist/skills/skills/git-master.d.ts +2 -0
  807. package/dist/skills/skills/grafana-dashboards.d.ts +3 -0
  808. package/dist/skills/skills/index.d.ts +69 -0
  809. package/dist/skills/skills/influxdb-timeseries.d.ts +3 -0
  810. package/dist/skills/skills/market-data-architecture.d.ts +3 -0
  811. package/dist/skills/skills/market-data-bus.d.ts +3 -0
  812. package/dist/skills/skills/market-data-robustness-review.d.ts +3 -0
  813. package/dist/skills/skills/matrixx-self-config.d.ts +3 -0
  814. package/dist/skills/skills/playwright-cli.d.ts +10 -0
  815. package/dist/skills/skills/playwright.d.ts +3 -0
  816. package/dist/skills/skills/python-asyncio.d.ts +3 -0
  817. package/dist/skills/skills/quality-gate.d.ts +2 -0
  818. package/dist/skills/skills/remove-ai-slops.d.ts +2 -0
  819. package/dist/skills/skills/resilience-error-taxonomy.d.ts +3 -0
  820. package/dist/skills/skills/resilience-failure-hunting.d.ts +3 -0
  821. package/dist/skills/skills/review-work.d.ts +2 -0
  822. package/dist/skills/skills/security-api.d.ts +3 -0
  823. package/dist/skills/skills/security-audit.d.ts +3 -0
  824. package/dist/skills/skills/security-core.d.ts +3 -0
  825. package/dist/skills/skills/security-crypto.d.ts +3 -0
  826. package/dist/skills/skills/security-dast.d.ts +3 -0
  827. package/dist/skills/skills/security-dependencies.d.ts +3 -0
  828. package/dist/skills/skills/security-infra.d.ts +3 -0
  829. package/dist/skills/skills/security-review.d.ts +3 -0
  830. package/dist/skills/skills/security-sast.d.ts +3 -0
  831. package/dist/skills/skills/security-secrets.d.ts +3 -0
  832. package/dist/skills/skills/silent-failure-detection.d.ts +3 -0
  833. package/dist/skills/skills/software-dev.d.ts +2 -0
  834. package/dist/skills/skills/systematic-debugging.d.ts +2 -0
  835. package/dist/skills/skills/tdd-enforcer.d.ts +2 -0
  836. package/dist/skills/skills/telegram-bot.d.ts +3 -0
  837. package/dist/skills/skills/time-series-fundamentals.d.ts +3 -0
  838. package/dist/skills/skills/ulw-research.d.ts +2 -0
  839. package/dist/skills/skills/zeromq-advanced-reqrep.d.ts +3 -0
  840. package/dist/skills/skills/zeromq-architecture.d.ts +3 -0
  841. package/dist/skills/skills/zeromq-core.d.ts +3 -0
  842. package/dist/skills/skills/zeromq-frameworks.d.ts +3 -0
  843. package/dist/skills/skills/zeromq-pubsub.d.ts +3 -0
  844. package/dist/skills/skills/zeromq-reliability.d.ts +3 -0
  845. package/dist/skills/skills/zeromq-sockets-patterns.d.ts +3 -0
  846. package/dist/skills/skills.d.ts +7 -0
  847. package/dist/skills/skills.transform.d.ts +27 -0
  848. package/dist/skills/types.d.ts +24 -0
  849. package/dist/tool-entry.d.ts +6 -0
  850. package/dist/tools/assembly/assembly-executor.d.ts +17 -0
  851. package/dist/tools/assembly/constants.d.ts +6 -0
  852. package/dist/tools/assembly/provider-selector.d.ts +3 -0
  853. package/dist/tools/assembly/synthesizer.d.ts +3 -0
  854. package/dist/tools/assembly/tool-description.d.ts +2 -0
  855. package/dist/tools/assembly/tools.d.ts +10 -0
  856. package/dist/tools/assembly/types.d.ts +25 -0
  857. package/dist/tools/assembly/voter-spawner.d.ts +3 -0
  858. package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +4 -0
  859. package/dist/tools/ast-grep/cli.d.ts +12 -0
  860. package/dist/tools/ast-grep/constants.d.ts +4 -0
  861. package/dist/tools/ast-grep/downloader.d.ts +4 -0
  862. package/dist/tools/ast-grep/environment-check.d.ts +16 -0
  863. package/dist/tools/ast-grep/language-support.d.ts +5 -0
  864. package/dist/tools/ast-grep/pattern-hints.d.ts +4 -0
  865. package/dist/tools/ast-grep/process-output-timeout.d.ts +12 -0
  866. package/dist/tools/ast-grep/result-formatter.d.ts +3 -0
  867. package/dist/tools/ast-grep/sg-cli-path.d.ts +3 -0
  868. package/dist/tools/ast-grep/sg-compact-json-output.d.ts +2 -0
  869. package/dist/tools/ast-grep/tool-descriptions.d.ts +3 -0
  870. package/dist/tools/ast-grep/tools.d.ts +3 -0
  871. package/dist/tools/ast-grep/types.d.ts +35 -0
  872. package/dist/tools/background-task/clients.d.ts +28 -0
  873. package/dist/tools/background-task/constants.d.ts +4 -0
  874. package/dist/tools/background-task/create-background-cancel.d.ts +4 -0
  875. package/dist/tools/background-task/create-background-output.d.ts +4 -0
  876. package/dist/tools/background-task/create-background-revive.d.ts +3 -0
  877. package/dist/tools/background-task/create-background-wait-all.d.ts +3 -0
  878. package/dist/tools/background-task/full-session-format.d.ts +9 -0
  879. package/dist/tools/background-task/index.d.ts +3 -0
  880. package/dist/tools/background-task/message-dir.d.ts +1 -0
  881. package/dist/tools/background-task/session-messages.d.ts +3 -0
  882. package/dist/tools/background-task/task-result-format.d.ts +3 -0
  883. package/dist/tools/background-task/task-status-format.d.ts +2 -0
  884. package/dist/tools/background-task/time-format.d.ts +1 -0
  885. package/dist/tools/background-task/tools.d.ts +5 -0
  886. package/dist/tools/background-task/truncate-text.d.ts +1 -0
  887. package/dist/tools/background-task/types.d.ts +79 -0
  888. package/dist/tools/bdd-create-contract/constants.d.ts +1 -0
  889. package/dist/tools/bdd-create-contract/tools.d.ts +3 -0
  890. package/dist/tools/bdd-create-contract/types.d.ts +12 -0
  891. package/dist/tools/bdd-parse-gherkin/constants.d.ts +1 -0
  892. package/dist/tools/bdd-parse-gherkin/tools.d.ts +5 -0
  893. package/dist/tools/bdd-parse-gherkin/types.d.ts +9 -0
  894. package/dist/tools/bdd-pipeline/analysis-report-sections.d.ts +10 -0
  895. package/dist/tools/bdd-pipeline/analysis-report.d.ts +9 -0
  896. package/dist/tools/bdd-pipeline/constants.d.ts +4 -0
  897. package/dist/tools/bdd-pipeline/feature-resolver.d.ts +5 -0
  898. package/dist/tools/bdd-pipeline/pipeline-runner.d.ts +6 -0
  899. package/dist/tools/bdd-pipeline/subagent-runner.d.ts +14 -0
  900. package/dist/tools/bdd-pipeline/tools.d.ts +5 -0
  901. package/dist/tools/bdd-pipeline/types.d.ts +74 -0
  902. package/dist/tools/bdd-validate-contract/tools.d.ts +21 -0
  903. package/dist/tools/dashboard-flux-validator/constants.d.ts +8 -0
  904. package/dist/tools/dashboard-flux-validator/tools.d.ts +3 -0
  905. package/dist/tools/dashboard-flux-validator/types.d.ts +20 -0
  906. package/dist/tools/dashboard-flux-validator/validator.d.ts +5 -0
  907. package/dist/tools/delegate-task/available-models.d.ts +2 -0
  908. package/dist/tools/delegate-task/background-continuation.d.ts +3 -0
  909. package/dist/tools/delegate-task/background-task.d.ts +8 -0
  910. package/dist/tools/delegate-task/categories.d.ts +22 -0
  911. package/dist/tools/delegate-task/category-resolver.d.ts +24 -0
  912. package/dist/tools/delegate-task/complexity-constants.d.ts +23 -0
  913. package/dist/tools/delegate-task/complexity-scorer.d.ts +31 -0
  914. package/dist/tools/delegate-task/complexity-types.d.ts +10 -0
  915. package/dist/tools/delegate-task/constants.d.ts +37 -0
  916. package/dist/tools/delegate-task/default-model.d.ts +27 -0
  917. package/dist/tools/delegate-task/diagnostic-shape.d.ts +4 -0
  918. package/dist/tools/delegate-task/error-formatting.d.ts +6 -0
  919. package/dist/tools/delegate-task/executor-types.d.ts +37 -0
  920. package/dist/tools/delegate-task/executor.d.ts +11 -0
  921. package/dist/tools/delegate-task/index.d.ts +10 -0
  922. package/dist/tools/delegate-task/model-selection.d.ts +11 -0
  923. package/dist/tools/delegate-task/model-string-parser.d.ts +7 -0
  924. package/dist/tools/delegate-task/mouse-agent.d.ts +1 -0
  925. package/dist/tools/delegate-task/parent-context-resolver.d.ts +3 -0
  926. package/dist/tools/delegate-task/prompt-builder.d.ts +7 -0
  927. package/dist/tools/delegate-task/skill-resolver.d.ts +8 -0
  928. package/dist/tools/delegate-task/software-dev-enforcement.d.ts +1 -0
  929. package/dist/tools/delegate-task/software-dev-payload.d.ts +1 -0
  930. package/dist/tools/delegate-task/subagent-resolver.d.ts +11 -0
  931. package/dist/tools/delegate-task/sync-continuation-deps.d.ts +7 -0
  932. package/dist/tools/delegate-task/sync-continuation.d.ts +4 -0
  933. package/dist/tools/delegate-task/sync-empty-retry.d.ts +8 -0
  934. package/dist/tools/delegate-task/sync-prompt-sender.d.ts +27 -0
  935. package/dist/tools/delegate-task/sync-result-fetcher.d.ts +13 -0
  936. package/dist/tools/delegate-task/sync-session-creator.d.ts +21 -0
  937. package/dist/tools/delegate-task/sync-session-poller.d.ts +18 -0
  938. package/dist/tools/delegate-task/sync-task-deps.d.ts +11 -0
  939. package/dist/tools/delegate-task/sync-task.d.ts +10 -0
  940. package/dist/tools/delegate-task/task-title.d.ts +11 -0
  941. package/dist/tools/delegate-task/timing.d.ts +16 -0
  942. package/dist/tools/delegate-task/tool-options.d.ts +12 -0
  943. package/dist/tools/delegate-task/tools.d.ts +16 -0
  944. package/dist/tools/delegate-task/types.d.ts +90 -0
  945. package/dist/tools/delegate-task/unstable-agent-task.d.ts +8 -0
  946. package/dist/tools/evolution/constants.d.ts +24 -0
  947. package/dist/tools/evolution/index.d.ts +3 -0
  948. package/dist/tools/evolution/query-actions.d.ts +3 -0
  949. package/dist/tools/evolution/tools.d.ts +16 -0
  950. package/dist/tools/evolution/types.d.ts +20 -0
  951. package/dist/tools/github-search/cli.d.ts +7 -0
  952. package/dist/tools/github-search/constants.d.ts +6 -0
  953. package/dist/tools/github-search/result-formatter.d.ts +2 -0
  954. package/dist/tools/github-search/tools.d.ts +3 -0
  955. package/dist/tools/github-search/types.d.ts +20 -0
  956. package/dist/tools/glob/cli.d.ts +11 -0
  957. package/dist/tools/glob/constants.d.ts +6 -0
  958. package/dist/tools/glob/result-formatter.d.ts +2 -0
  959. package/dist/tools/glob/tools.d.ts +3 -0
  960. package/dist/tools/glob/types.d.ts +20 -0
  961. package/dist/tools/grep/cli.d.ts +2 -0
  962. package/dist/tools/grep/constants.d.ts +16 -0
  963. package/dist/tools/grep/downloader.d.ts +3 -0
  964. package/dist/tools/grep/result-formatter.d.ts +2 -0
  965. package/dist/tools/grep/tools.d.ts +3 -0
  966. package/dist/tools/grep/types.d.ts +32 -0
  967. package/dist/tools/handoff/archive-handler.d.ts +9 -0
  968. package/dist/tools/handoff/body-formatter.d.ts +9 -0
  969. package/dist/tools/handoff/constants.d.ts +14 -0
  970. package/dist/tools/handoff/create-handler.d.ts +35 -0
  971. package/dist/tools/handoff/git.d.ts +12 -0
  972. package/dist/tools/handoff/list-handler.d.ts +8 -0
  973. package/dist/tools/handoff/read-handler.d.ts +8 -0
  974. package/dist/tools/handoff/tools.d.ts +11 -0
  975. package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +1 -0
  976. package/dist/tools/hashline-edit/constants.d.ts +34 -0
  977. package/dist/tools/hashline-edit/diff-utils.d.ts +6 -0
  978. package/dist/tools/hashline-edit/edit-deduplication.d.ts +5 -0
  979. package/dist/tools/hashline-edit/edit-operation-primitives.d.ts +10 -0
  980. package/dist/tools/hashline-edit/edit-operations.d.ts +9 -0
  981. package/dist/tools/hashline-edit/edit-ordering.d.ts +4 -0
  982. package/dist/tools/hashline-edit/edit-text-normalization.d.ts +5 -0
  983. package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +8 -0
  984. package/dist/tools/hashline-edit/hash-computation.d.ts +17 -0
  985. package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +10 -0
  986. package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +10 -0
  987. package/dist/tools/hashline-edit/index.d.ts +6 -0
  988. package/dist/tools/hashline-edit/normalize-edits.d.ts +10 -0
  989. package/dist/tools/hashline-edit/tool-description.d.ts +1 -0
  990. package/dist/tools/hashline-edit/tools.d.ts +2 -0
  991. package/dist/tools/hashline-edit/types.d.ts +17 -0
  992. package/dist/tools/hashline-edit/validation.d.ts +18 -0
  993. package/dist/tools/index.d.ts +41 -0
  994. package/dist/tools/interactive-bash/constants.d.ts +3 -0
  995. package/dist/tools/interactive-bash/index.d.ts +3 -0
  996. package/dist/tools/interactive-bash/tmux-path-resolver.d.ts +3 -0
  997. package/dist/tools/interactive-bash/tools.d.ts +7 -0
  998. package/dist/tools/knowledge-hub-confirm/tools.d.ts +12 -0
  999. package/dist/tools/look-at/assistant-message-extractor.d.ts +1 -0
  1000. package/dist/tools/look-at/constants.d.ts +2 -0
  1001. package/dist/tools/look-at/look-at-arguments.d.ts +6 -0
  1002. package/dist/tools/look-at/mime-type-inference.d.ts +3 -0
  1003. package/dist/tools/look-at/multimodal-agent-metadata.d.ts +11 -0
  1004. package/dist/tools/look-at/tools.d.ts +4 -0
  1005. package/dist/tools/look-at/types.d.ts +5 -0
  1006. package/dist/tools/lsp/client.d.ts +3 -0
  1007. package/dist/tools/lsp/config.d.ts +3 -0
  1008. package/dist/tools/lsp/constants.d.ts +5 -0
  1009. package/dist/tools/lsp/diagnostics-tool.d.ts +2 -0
  1010. package/dist/tools/lsp/find-references-tool.d.ts +2 -0
  1011. package/dist/tools/lsp/goto-definition-tool.d.ts +2 -0
  1012. package/dist/tools/lsp/index.d.ts +8 -0
  1013. package/dist/tools/lsp/language-config.d.ts +1 -0
  1014. package/dist/tools/lsp/language-mappings.d.ts +3 -0
  1015. package/dist/tools/lsp/lsp-client-connection.d.ts +4 -0
  1016. package/dist/tools/lsp/lsp-client-transport.d.ts +20 -0
  1017. package/dist/tools/lsp/lsp-client-wrapper.d.ts +4 -0
  1018. package/dist/tools/lsp/lsp-client.d.ts +17 -0
  1019. package/dist/tools/lsp/lsp-formatters.d.ts +9 -0
  1020. package/dist/tools/lsp/lsp-manager-process-cleanup.d.ts +12 -0
  1021. package/dist/tools/lsp/lsp-manager-temp-directory-cleanup.d.ts +8 -0
  1022. package/dist/tools/lsp/lsp-process.d.ts +29 -0
  1023. package/dist/tools/lsp/lsp-server.d.ts +23 -0
  1024. package/dist/tools/lsp/rename-tools.d.ts +3 -0
  1025. package/dist/tools/lsp/server-config-loader.d.ts +25 -0
  1026. package/dist/tools/lsp/server-definitions.d.ts +3 -0
  1027. package/dist/tools/lsp/server-installation.d.ts +1 -0
  1028. package/dist/tools/lsp/server-resolution.d.ts +15 -0
  1029. package/dist/tools/lsp/symbols-tool.d.ts +2 -0
  1030. package/dist/tools/lsp/tools.d.ts +5 -0
  1031. package/dist/tools/lsp/types.d.ts +124 -0
  1032. package/dist/tools/lsp/workspace-edit.d.ts +8 -0
  1033. package/dist/tools/market-symbol-validator/constants.d.ts +14 -0
  1034. package/dist/tools/market-symbol-validator/tools.d.ts +3 -0
  1035. package/dist/tools/market-symbol-validator/types.d.ts +21 -0
  1036. package/dist/tools/market-symbol-validator/validator.d.ts +9 -0
  1037. package/dist/tools/notepad/constants.d.ts +24 -0
  1038. package/dist/tools/notepad/index.d.ts +20 -0
  1039. package/dist/tools/notepad/notepad-append.d.ts +4 -0
  1040. package/dist/tools/notepad/notepad-create.d.ts +3 -0
  1041. package/dist/tools/notepad/notepad-list.d.ts +3 -0
  1042. package/dist/tools/notepad/notepad-read.d.ts +3 -0
  1043. package/dist/tools/notepad/types.d.ts +14 -0
  1044. package/dist/tools/notepad/validation.d.ts +33 -0
  1045. package/dist/tools/pdf-extract-figures/tools.d.ts +11 -0
  1046. package/dist/tools/plan/constants.d.ts +13 -0
  1047. package/dist/tools/plan/error-codes.d.ts +99 -0
  1048. package/dist/tools/plan/index.d.ts +7 -0
  1049. package/dist/tools/plan/plan-create.d.ts +3 -0
  1050. package/dist/tools/plan/plan-delete.d.ts +3 -0
  1051. package/dist/tools/plan/plan-list.d.ts +3 -0
  1052. package/dist/tools/plan/plan-read-pagination.d.ts +42 -0
  1053. package/dist/tools/plan/plan-read.d.ts +3 -0
  1054. package/dist/tools/plan/plan-tasks-clamp.d.ts +32 -0
  1055. package/dist/tools/plan/plan-tasks.d.ts +3 -0
  1056. package/dist/tools/plan/plan-update.d.ts +4 -0
  1057. package/dist/tools/plan/plan-write-guard.d.ts +38 -0
  1058. package/dist/tools/plan/section-edit.d.ts +24 -0
  1059. package/dist/tools/plan/section-index.d.ts +22 -0
  1060. package/dist/tools/plan/section-locate.d.ts +9 -0
  1061. package/dist/tools/plan/section-read.d.ts +24 -0
  1062. package/dist/tools/plan/status-transition.d.ts +47 -0
  1063. package/dist/tools/plan/types.d.ts +56 -0
  1064. package/dist/tools/preset/tools.d.ts +7 -0
  1065. package/dist/tools/session-cleanup/index.d.ts +13 -0
  1066. package/dist/tools/session-manager/constants.d.ts +9 -0
  1067. package/dist/tools/session-manager/path-normalize.d.ts +7 -0
  1068. package/dist/tools/session-manager/session-formatter.d.ts +11 -0
  1069. package/dist/tools/session-manager/storage.d.ts +61 -0
  1070. package/dist/tools/session-manager/tools.d.ts +4 -0
  1071. package/dist/tools/session-manager/types.d.ts +86 -0
  1072. package/dist/tools/shared/define-tool.d.ts +78 -0
  1073. package/dist/tools/silent-failure-scanner/constants.d.ts +10 -0
  1074. package/dist/tools/silent-failure-scanner/index.d.ts +4 -0
  1075. package/dist/tools/silent-failure-scanner/scanner.d.ts +8 -0
  1076. package/dist/tools/silent-failure-scanner/tools.d.ts +3 -0
  1077. package/dist/tools/silent-failure-scanner/types.d.ts +43 -0
  1078. package/dist/tools/skill/constants.d.ts +2 -0
  1079. package/dist/tools/skill/tools.d.ts +4 -0
  1080. package/dist/tools/skill/types.d.ts +22 -0
  1081. package/dist/tools/slashcommand/command-discovery.d.ts +2 -0
  1082. package/dist/tools/slashcommand/command-output-formatter.d.ts +3 -0
  1083. package/dist/tools/slashcommand/skill-command-converter.d.ts +3 -0
  1084. package/dist/tools/slashcommand/slashcommand-description.d.ts +3 -0
  1085. package/dist/tools/slashcommand/slashcommand-tool.d.ts +4 -0
  1086. package/dist/tools/slashcommand/tools.d.ts +2 -0
  1087. package/dist/tools/slashcommand/types.d.ts +46 -0
  1088. package/dist/tools/staleness-gap-checker/checker.d.ts +15 -0
  1089. package/dist/tools/staleness-gap-checker/constants.d.ts +3 -0
  1090. package/dist/tools/staleness-gap-checker/index.d.ts +4 -0
  1091. package/dist/tools/staleness-gap-checker/tools.d.ts +3 -0
  1092. package/dist/tools/staleness-gap-checker/types.d.ts +42 -0
  1093. package/dist/tools/task/constants.d.ts +7 -0
  1094. package/dist/tools/task/create-one.d.ts +21 -0
  1095. package/dist/tools/task/index.d.ts +6 -0
  1096. package/dist/tools/task/task-cleanup.d.ts +4 -0
  1097. package/dist/tools/task/task-create.d.ts +4 -0
  1098. package/dist/tools/task/task-get.d.ts +4 -0
  1099. package/dist/tools/task/task-list.d.ts +4 -0
  1100. package/dist/tools/task/task-update.d.ts +4 -0
  1101. package/dist/tools/task/types.d.ts +156 -0
  1102. package/dist/tools.js +20554 -0
  1103. package/package.json +115 -4
@@ -0,0 +1,24 @@
1
+ import type { PlanReadFormat } from "./types";
2
+ type SectionOutcome = {
3
+ kind: "error";
4
+ body: Record<string, unknown>;
5
+ } | {
6
+ kind: "ok";
7
+ body: Record<string, unknown>;
8
+ };
9
+ export interface SectionReadRequest {
10
+ filePath: string;
11
+ content: string;
12
+ lines: string[];
13
+ format: PlanReadFormat;
14
+ selector: string;
15
+ sectionIndex: number | undefined;
16
+ /** True when `offset`/`limit` were also supplied — reported as `precedence`. */
17
+ paginated: boolean;
18
+ }
19
+ /**
20
+ * Build the `plan_read` response for a section read. Returns a JSON-ready object
21
+ * so the caller keeps a single stringify site.
22
+ */
23
+ export declare function readSection(request: SectionReadRequest): SectionOutcome;
24
+ export {};
@@ -0,0 +1,47 @@
1
+ import { type PlanErrorCode } from "./error-codes";
2
+ /**
3
+ * Explicit human override for a backward plan-status jump.
4
+ *
5
+ * SINGLE definition site for the force-completion contract: Tasks 2 and 3
6
+ * import this type rather than redeclaring it. Structurally identical to
7
+ * `PlanStatusTransitionOptions` in `plan-contract/schema.ts`, so it passes
8
+ * straight through to `isPlanStatusTransitionAllowed`.
9
+ */
10
+ export interface ForceCompletionOptions {
11
+ /** When true, a backward jump is honored instead of rejected. */
12
+ forceCompletion?: boolean;
13
+ }
14
+ /** Intended plan-status change extracted from a proposed edit. */
15
+ export interface PlanStatusTransition {
16
+ /** Authoritative status before the edit. */
17
+ from: string;
18
+ /** Authoritative status after the edit. */
19
+ to: string;
20
+ }
21
+ /** Verdict of `adjudicate`: allow carries no payload, reject names the code. */
22
+ export type StatusAdjudication = {
23
+ allowed: true;
24
+ } | {
25
+ allowed: false;
26
+ error: PlanErrorCode;
27
+ from: string;
28
+ to: string;
29
+ };
30
+ /**
31
+ * Extract the intended plan-status transition between two plan contents.
32
+ *
33
+ * Parses the leading front-matter block of each side (body text is never
34
+ * scanned, so status words in prose are ignored) and returns the before/after
35
+ * pair when the status differs. Returns null when there is no transition:
36
+ * identical statuses, or either side missing/unparseable front-matter.
37
+ */
38
+ export declare function extractStatusEdit(currentContent: string, nextContent: string): PlanStatusTransition | null;
39
+ /**
40
+ * Allow or reject an extracted plan-status transition.
41
+ *
42
+ * A null transition (no status change) always allows. Otherwise the verdict
43
+ * delegates to `isPlanStatusTransitionAllowed`: forward or same-status jumps
44
+ * pass, backward jumps reject with `status_transition_rejected` unless
45
+ * `{ forceCompletion: true }` is supplied.
46
+ */
47
+ export declare function adjudicate(transition: PlanStatusTransition | null, options?: ForceCompletionOptions): StatusAdjudication;
@@ -0,0 +1,56 @@
1
+ import type { RawHashlineEdit } from "../hashline-edit/normalize-edits";
2
+ export declare function resolveDirectory(context: unknown, ctx: unknown): string;
3
+ export declare function validatePlanFilePath(filePath: string, directory: string): {
4
+ resolved: string;
5
+ } | {
6
+ error: string;
7
+ };
8
+ export interface PlanCreateArgs {
9
+ filePath: string;
10
+ content: string;
11
+ }
12
+ export type PlanReadFormat = "hashline" | "content";
13
+ export interface PlanOutlineEntry {
14
+ level: 2 | 3;
15
+ text: string;
16
+ line: number;
17
+ anchor: string;
18
+ }
19
+ /**
20
+ * One row of the byte-accounted section index (see `section-index.ts`).
21
+ * `endLine` is EXCLUSIVE — the section owns `[startLine, endLine)`.
22
+ */
23
+ export interface PlanSectionIndexEntry {
24
+ /** Kebab-case id, `normalizeSectionKey(headingText)`. */
25
+ id: string;
26
+ level: 2 | 3;
27
+ /** Heading text exactly as it appears in the plan. */
28
+ headingText: string;
29
+ startLine: number;
30
+ /** Exclusive: next heading of level <= this one, else lines.length + 1. */
31
+ endLine: number;
32
+ /** UTF-8 byte length of the section's original text span (single byte ruler). */
33
+ bytes: number;
34
+ /** 64-bit position-sensitive hash over `id + startLine + span text`. */
35
+ contentHash: string;
36
+ }
37
+ export interface PlanReadArgs {
38
+ filePath: string;
39
+ format?: PlanReadFormat;
40
+ offset?: number;
41
+ limit?: number;
42
+ }
43
+ export interface PlanUpdateArgs {
44
+ filePath: string;
45
+ edits: RawHashlineEdit[];
46
+ }
47
+ export interface PlanDeleteArgs {
48
+ filePath: string;
49
+ }
50
+ export interface PlanInfo {
51
+ fileName: string;
52
+ filePath: string;
53
+ mtime: string;
54
+ mtimeMs: number;
55
+ size: number;
56
+ }
@@ -0,0 +1,7 @@
1
+ import type { MatrixxConfig } from "../../config";
2
+ import { type MatrixxToolDefinition } from "../shared/define-tool";
3
+ export interface PresetToolOptions {
4
+ pluginConfig?: MatrixxConfig;
5
+ directory?: string;
6
+ }
7
+ export declare function createPresetTool(options?: PresetToolOptions): Record<string, MatrixxToolDefinition>;
@@ -0,0 +1,13 @@
1
+ import type { SessionDomainLike } from "../../shared/session-facade";
2
+ import { type MatrixxToolDefinition } from "../shared/define-tool";
3
+ type SessionCleanupSession = SessionDomainLike & {
4
+ remove?(input: {
5
+ sessionID: string;
6
+ }): Promise<unknown>;
7
+ };
8
+ type SessionCleanupContext = {
9
+ session: SessionCleanupSession;
10
+ };
11
+ export declare const SESSION_CLEANUP_DESCRIPTION = "Delete leaked Matrixx-created sessions from the OpenCode session list.\n\nOlder Matrixx versions created a real top-level session (no parentID) on every\nevolution-compressor run and never deleted it, so the TUI session list filled up\nwith dozens of \"evolution-compressor\" entries. This tool removes them.\n\nSafety rules:\n- Dry run by default. Nothing is deleted unless you pass apply=true.\n- ONLY parentless sessions are touched. A session that has a parentID is already\n hidden from the TUI list, so it is never a candidate.\n- Only titles matching known Matrixx patterns are considered. Your own sessions\n (including \"Pickup ...\") are never touched.\n- include_look_at is opt-in and off by default.";
12
+ export declare function createSessionCleanupTool(ctx: SessionCleanupContext): MatrixxToolDefinition;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ export { MESSAGE_STORAGE, OPENCODE_STORAGE, PART_STORAGE, SESSION_STORAGE } from "../../shared";
2
+ export declare const TODO_DIR: string;
3
+ export declare const TRANSCRIPT_DIR: string;
4
+ export declare const SESSION_LIST_DESCRIPTION = "List all OpenCode sessions with optional filtering.\n\nReturns a list of available session IDs with metadata including message count, date range, and agents used.\n\nArguments:\n- limit (optional): Maximum number of sessions to return\n- from_date (optional): Filter sessions from this date (ISO 8601 format)\n- to_date (optional): Filter sessions until this date (ISO 8601 format)\n\nExample output:\n| Session ID | Messages | First | Last | Agents |\n|------------|----------|-------|------|--------|\n| ses_abc123 | 45 | 2025-12-20 | 2025-12-24 | build, oracle |\n| ses_def456 | 12 | 2025-12-19 | 2025-12-19 | build |";
5
+ export declare const SESSION_READ_DESCRIPTION = "Read messages and history from an OpenCode session.\n\nReturns a formatted view of session messages with role, timestamp, and content. Optionally includes task state and transcript data.\n\nArguments:\n- session_id (required): Session ID to read\n- include_todos (optional): Include the session's task state from the task store if available (default: false). Every task attributed to the session is listed, including one that has been untouched long enough to be stale, so an unfinished item is never hidden from this diagnostic.\n- include_transcript (optional): Include transcript log if available (default: false)\n- limit (optional): Maximum number of messages to return (default: all)\n\nExample output:\nSession: ses_abc123\nMessages: 45\nDate Range: 2025-12-20 to 2025-12-24\n\n[Message 1] user (2025-12-20 10:30:00)\nHello, can you help me with...\n\n[Message 2] assistant (2025-12-20 10:30:15)\nOf course! Let me help you with...";
6
+ export declare const SESSION_SEARCH_DESCRIPTION = "Search for content within OpenCode session messages.\n\nPerforms full-text search across session messages and returns matching excerpts with context.\n\nArguments:\n- query (required): Search query string\n- session_id (optional): Search within specific session only (default: all sessions)\n- case_sensitive (optional): Case-sensitive search (default: false)\n- limit (optional): Maximum number of results to return (default: 20)\n\nExample output:\nFound 3 matches across 2 sessions:\n\n[ses_abc123] Message msg_001 (user)\n...implement the **session manager** tool...\n\n[ses_abc123] Message msg_005 (assistant)\n...I'll create a **session manager** with full search...\n\n[ses_def456] Message msg_012 (user)\n...use the **session manager** to find...";
7
+ export declare const SESSION_INFO_DESCRIPTION = "Get metadata and statistics about an OpenCode session.\n\nReturns detailed information about a session including message count, date range, agents used, and available data sources.\n\nArguments:\n- session_id (required): Session ID to inspect\n\nExample output:\nSession ID: ses_abc123\nMessages: 45\nDate Range: 2025-12-20 10:30:00 to 2025-12-24 15:45:30\nDuration: 4 days, 5 hours\nAgents Used: build, oracle, librarian\nHas Todos: Yes (12 items, 8 completed)\nHas Transcript: Yes (234 entries)";
8
+ export declare const SESSION_DELETE_DESCRIPTION = "Delete an OpenCode session and all associated data.\n\nRemoves session messages, parts, todos, and transcript. This operation cannot be undone.\n\nArguments:\n- session_id (required): Session ID to delete\n- confirm (required): Must be true to confirm deletion\n\nExample:\nsession_delete(session_id=\"ses_abc123\", confirm=true)\nSuccessfully deleted session ses_abc123";
9
+ export declare const TOOL_NAME_PREFIX = "session_";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Normalize a directory for string comparison. Resolves symlinks via
3
+ * `realpathSync` (guarded: falls back to lexical normalize for missing
4
+ * paths), resolves relative paths against cwd, strips one trailing slash
5
+ * except for the filesystem root. Never throws.
6
+ */
7
+ export declare function normalizeDirForCompare(dir: string): string;
@@ -0,0 +1,11 @@
1
+ import type { SearchResult, SessionInfo, SessionMessage } from "./types";
2
+ export declare function formatSessionList(sessionIDs: string[]): Promise<string>;
3
+ export declare function formatSessionMessages(messages: SessionMessage[], includeTodos?: boolean, todos?: Array<{
4
+ id?: string;
5
+ content: string;
6
+ status: string;
7
+ }>): string;
8
+ export declare function formatSessionInfo(info: SessionInfo): string;
9
+ export declare function formatSearchResults(results: SearchResult[]): string;
10
+ export declare function filterSessionsByDate(sessionIDs: string[], fromDate?: string, toDate?: string): Promise<string[]>;
11
+ export declare function searchInSession(sessionID: string, query: string, caseSensitive?: boolean, maxResults?: number): Promise<SearchResult[]>;
@@ -0,0 +1,61 @@
1
+ import type { MatrixxConfig } from "../../config/schema";
2
+ import { type SessionContextCarrier } from "../../shared/session-context-source";
3
+ import type { SessionDomainLike } from "../../shared/session-facade";
4
+ import type { SessionInfo, SessionMessage, SessionMetadata, TodoItem } from "./types";
5
+ interface GetMainSessionsOptions {
6
+ directory?: string;
7
+ }
8
+ export declare function setStorageClient(carrier: SessionContextCarrier & {
9
+ session: SessionDomainLike;
10
+ }): void;
11
+ export declare function resetStorageClient(): void;
12
+ /**
13
+ * Thread `ctx.directory` into the storage layer. `createSessionManagerTools` is the
14
+ * single construction point of this module, so the directory is held in a module
15
+ * setter for the same reason the SDK client is: `getSessionInfo` is a second
16
+ * consumer of the task read and has no directory of its own, so an explicit
17
+ * parameter would have to be threaded through both public signatures. Passing no
18
+ * directory makes the task store resolve to its global default, matching
19
+ * `getTaskDir`'s own contract when `directory` is omitted; this function needs a
20
+ * concrete string, so an unset directory falls back to `process.cwd()` exactly as
21
+ * `getTaskDir` does for a relative `storage_path`.
22
+ */
23
+ export declare function setStorageDirectory(directory: string | undefined): void;
24
+ /**
25
+ * Thread the plugin config into the task read, for the same reason as the directory:
26
+ * `getSessionInfo` is a second consumer of `readSessionTodos` and carries neither a
27
+ * config nor a directory of its own. Without it the read always resolves the
28
+ * `process.cwd()`-relative project store, which silently returns nothing for a user
29
+ * who configured `tasks.storage_path` or `tasks.scope: "global"` — the `include_todos`
30
+ * diagnostic would be permanently empty for exactly those users.
31
+ */
32
+ export declare function setStorageConfig(config: Partial<MatrixxConfig> | undefined): void;
33
+ export declare function getMainSessions(options: GetMainSessionsOptions): Promise<SessionMetadata[]>;
34
+ export declare function getAllSessions(): Promise<string[]>;
35
+ export { getMessageDir } from "../../shared/opencode-message-dir";
36
+ export declare function sessionExists(sessionID: string): Promise<boolean>;
37
+ export declare function readSessionMessages(sessionID: string): Promise<SessionMessage[]>;
38
+ /**
39
+ * Read the file-backed task store for one session. Replaces the legacy read of
40
+ * OpenCode's own todo state, which had two branches: the SDK endpoint and a "stable
41
+ * mode" scan of OpenCode's on-disk todo directory. Both are gone.
42
+ *
43
+ * There is deliberately no `isSqliteBackend()` split here, unlike the message and
44
+ * session readers in this file. That distinction exists because those endpoints
45
+ * differ per backend; the task store is a plugin-owned local directory, so it is
46
+ * backend-independent and one read covers both. Do not "restore" the branch.
47
+ *
48
+ * Fails open via `readSessionTasks`: a missing store or an unreadable file yields
49
+ * `[]` rather than throwing, matching the contract of the reads it replaces.
50
+ *
51
+ * `excludeStale: false` is an explicit local opt-out, not a change of default.
52
+ * `SessionTaskQuery.excludeStale` stays `true` so a completion gate cannot leak a
53
+ * pending handle forever; that bound belongs to the gates, not to this read. This
54
+ * is the `include_todos` / `SessionInfo.todos` diagnostic, and the native list it
55
+ * replaced applied no staleness filter at all, so inheriting the default silently
56
+ * dropped an untouched-but-unfinished task from the view a user inspects when
57
+ * asking "what is this session carrying?" — which is why a session could report
58
+ * `has_todos: true` and render an empty list.
59
+ */
60
+ export declare function readSessionTodos(sessionID: string): Promise<TodoItem[]>;
61
+ export declare function getSessionInfo(sessionID: string): Promise<SessionInfo | null>;
@@ -0,0 +1,4 @@
1
+ import type { MatrixxConfig } from "../../config/schema";
2
+ import type { NativePluginContext } from "../../shared/session-context-source";
3
+ import { type MatrixxToolDefinition } from "../shared/define-tool";
4
+ export declare function createSessionManagerTools(ctx: NativePluginContext, pluginConfig?: Partial<MatrixxConfig>): Record<string, MatrixxToolDefinition>;
@@ -0,0 +1,86 @@
1
+ export interface SessionMessage {
2
+ id: string;
3
+ role: "user" | "assistant";
4
+ agent?: string;
5
+ time?: {
6
+ created: number;
7
+ updated?: number;
8
+ };
9
+ content: MessagePart[];
10
+ }
11
+ export interface MessagePart {
12
+ id: string;
13
+ type: string;
14
+ text?: string;
15
+ thinking?: string;
16
+ tool?: string;
17
+ callID?: string;
18
+ input?: Record<string, unknown>;
19
+ output?: string;
20
+ error?: string;
21
+ }
22
+ export interface SessionInfo {
23
+ id: string;
24
+ message_count: number;
25
+ first_message?: Date;
26
+ last_message?: Date;
27
+ agents_used: string[];
28
+ has_todos: boolean;
29
+ has_transcript: boolean;
30
+ todos?: TodoItem[];
31
+ transcript_entries?: number;
32
+ }
33
+ export interface TodoItem {
34
+ id?: string;
35
+ content: string;
36
+ status: "pending" | "in_progress" | "completed" | "cancelled";
37
+ priority?: string;
38
+ }
39
+ export interface SearchResult {
40
+ session_id: string;
41
+ message_id: string;
42
+ role: string;
43
+ excerpt: string;
44
+ match_count: number;
45
+ timestamp?: number;
46
+ }
47
+ export interface SessionMetadata {
48
+ id: string;
49
+ version?: string;
50
+ projectID: string;
51
+ directory: string;
52
+ title?: string;
53
+ parentID?: string;
54
+ isChild?: boolean;
55
+ time: {
56
+ created: number;
57
+ updated: number;
58
+ };
59
+ summary?: {
60
+ additions: number;
61
+ deletions: number;
62
+ files: number;
63
+ };
64
+ }
65
+ export interface SessionListArgs {
66
+ limit?: number;
67
+ offset?: number;
68
+ from_date?: string;
69
+ to_date?: string;
70
+ project_path?: string;
71
+ }
72
+ export interface SessionReadArgs {
73
+ session_id: string;
74
+ include_todos?: boolean;
75
+ include_transcript?: boolean;
76
+ limit?: number;
77
+ }
78
+ export interface SessionSearchArgs {
79
+ query: string;
80
+ session_id?: string;
81
+ case_sensitive?: boolean;
82
+ limit?: number;
83
+ }
84
+ export interface SessionInfoArgs {
85
+ session_id: string;
86
+ }
@@ -0,0 +1,78 @@
1
+ import type { ZodType } from "zod";
2
+ import { z } from "zod";
3
+ import type { V2ToolContext, V2ToolInfo, V2ToolResult } from "../../plugin/context";
4
+ /** Tool execution result: a plain string or a structured payload. */
5
+ export type MatrixxToolResult = string | {
6
+ output?: unknown;
7
+ metadata?: Record<string, unknown>;
8
+ title?: string;
9
+ };
10
+ /** Context passed to every Matrixx tool execute function. */
11
+ export interface MatrixxToolContext {
12
+ readonly sessionID: string;
13
+ readonly messageID: string;
14
+ readonly agent: string;
15
+ readonly callID?: string;
16
+ readonly directory: string;
17
+ readonly worktree: string;
18
+ readonly abort: AbortSignal;
19
+ metadata(input: {
20
+ title?: string;
21
+ metadata?: Record<string, unknown>;
22
+ }): void;
23
+ ask(input: Record<string, unknown>): Promise<void>;
24
+ }
25
+ /**
26
+ * The single tool authoring shape for matrixx tools.
27
+ *
28
+ * `TArgs` is a Zod raw shape (a plain object mapping names to Zod schemas),
29
+ * converted to plain JSON Schema at registration time via
30
+ * `z.toJSONSchema(z.object(args), { io: "input" })`.
31
+ */
32
+ export interface MatrixxToolDefinition<TArgs extends Record<string, ZodType> = Record<string, ZodType>> {
33
+ description: string;
34
+ args: TArgs;
35
+ execute(args: z.infer<z.ZodObject<TArgs>>, ctx: MatrixxToolContext): Promise<MatrixxToolResult>;
36
+ options?: {
37
+ codemode?: boolean;
38
+ };
39
+ }
40
+ export type DefinedTool<TArgs extends Record<string, ZodType> = Record<string, ZodType>> = MatrixxToolDefinition<TArgs> & {
41
+ name: string;
42
+ };
43
+ /**
44
+ * The only tool authoring entry point. Validates eagerly so a malformed
45
+ * definition fails fast with an explicit error instead of registering a
46
+ * silently undefined schema.
47
+ */
48
+ export declare function defineTool<TArgs extends Record<string, ZodType>>(name: string, def: MatrixxToolDefinition<TArgs>): DefinedTool<TArgs>;
49
+ /** Convert a Zod raw shape to plain JSON Schema (no Zod instances survive). */
50
+ export declare function toInputSchema(name: string, args: unknown): Record<string, unknown>;
51
+ /** Normalize a tool result, routing metadata through jsonSafeMetadata.
52
+ *
53
+ * Every result carries BOTH channels: `content` (rendered message parts) and
54
+ * `output` (the hook-visible result and declared tool output). The host hook
55
+ * layer only forwards `output` to tool.execute.after hooks and derives the
56
+ * final message from it — a content-only result arrives as an empty string
57
+ * downstream (observed live as the empty task response).
58
+ */
59
+ export declare function normalizeResult(result: unknown): V2ToolResult;
60
+ /** Build the Matrixx tool context from a V2 tool context and bridge deps. */
61
+ export declare function buildMatrixxToolContext(context: V2ToolContext, deps: {
62
+ directory: string;
63
+ worktree: string;
64
+ assertPermission?: (input: Record<string, unknown>) => Promise<void>;
65
+ }): MatrixxToolContext;
66
+ /**
67
+ * Deps needed to bridge a Matrixx tool definition onto the V2 tool registry.
68
+ * Relocated verbatim from the deleted `src/plugin/opencode-tools.ts` (task 24)
69
+ * so the V2 `Tool.Info` translation survives and R1 still holds.
70
+ */
71
+ export interface ToolBridgeDeps {
72
+ directory: string;
73
+ worktree: string;
74
+ assertPermission?: (input: Record<string, unknown>) => Promise<void>;
75
+ context?: unknown;
76
+ }
77
+ export declare function emitToolInfo(name: string, definition: MatrixxToolDefinition, deps: ToolBridgeDeps): V2ToolInfo | undefined;
78
+ export declare function emitToolInfos(tools: Record<string, MatrixxToolDefinition>, deps: ToolBridgeDeps): V2ToolInfo[];
@@ -0,0 +1,10 @@
1
+ import type { ScanSeverity } from "./types";
2
+ export declare const SILENT_FAILURE_SCAN_DESCRIPTION = "Scan Python and TypeScript/JavaScript source for silent-failure anti-patterns \u2014 code paths that turn a real error into a plausible-looking normal result. Read-only and deterministic; returns a JSON report with a status exit code (0=clean, 1=warnings, 2=errors).\n\nRules:\n- SF001 bare `except:` or an `except` whose body is only `pass` (also empty TS `catch {}`).\n- SF002 an `except`/catch that logs a warning and then returns a default value indistinguishable from a real outcome.\n- SF003 `asyncio.gather(...)` without `return_exceptions=True`.\n- SF004 results from `gather(return_exceptions=True)` indexed without per-result `isinstance` inspection.\n- SF005 gap-masking flags such as `createEmpty: true`.\n\nDetection is line-oriented with bounded block tracking (documented fallback); no AST dependency. Use `severity` to filter the report to a minimum severity (\"warn\" reports warnings and errors; \"error\" reports errors only).\n\nWaivers: pass `waivers` (project-relative or absolute path to a COMMITTED waiver JSON file \u2014 never under gitignored `.matrixx/`) shaped `{version:1,waivers:[{rule,file,symbol,reason,reviewedAt,owner?}]}`. The match key is rule+file+enclosing-symbol (never line numbers); matched findings are excluded from the status but reported in `waived`. Entries matching nothing appear in `staleWaivers` and force status to at least 1.";
3
+ export declare const DEFAULT_GLOBS: string[];
4
+ export declare const IGNORED_DIRS: Set<string>;
5
+ export declare const RULE_CATALOG: Record<string, {
6
+ severity: ScanSeverity;
7
+ why: string;
8
+ fix: string;
9
+ }>;
10
+ export declare const SEVERITY_RANK: Record<ScanSeverity, number>;
@@ -0,0 +1,4 @@
1
+ export { DEFAULT_GLOBS, RULE_CATALOG, SILENT_FAILURE_SCAN_DESCRIPTION } from "./constants";
2
+ export { scanPath } from "./scanner";
3
+ export { createSilentFailureScannerTool } from "./tools";
4
+ export type { ScanSeverity, SilentFailureFinding, SilentFailureScanResult, SilentFailureSummary, SilentFailureWaiver, SilentFailureWaiverWarning, } from "./types";
@@ -0,0 +1,8 @@
1
+ import type { ScanSeverity, SilentFailureScanResult } from "./types";
2
+ export declare function scanPath(opts: {
3
+ base: string;
4
+ target: string;
5
+ globs?: string[];
6
+ threshold?: ScanSeverity;
7
+ waivers?: string;
8
+ }): SilentFailureScanResult;
@@ -0,0 +1,3 @@
1
+ import type { MatrixxContext } from "../../plugin/context";
2
+ import { type MatrixxToolDefinition } from "../shared/define-tool";
3
+ export declare function createSilentFailureScannerTool(ctx: MatrixxContext): Record<string, MatrixxToolDefinition>;
@@ -0,0 +1,43 @@
1
+ export type ScanSeverity = "warn" | "error";
2
+ export interface SilentFailureFinding {
3
+ rule: string;
4
+ severity: ScanSeverity;
5
+ file: string;
6
+ line: number;
7
+ excerpt: string;
8
+ why: string;
9
+ fix: string;
10
+ symbol: string;
11
+ }
12
+ export interface SilentFailureSummary {
13
+ filesScanned: number;
14
+ total: number;
15
+ errors: number;
16
+ warnings: number;
17
+ byRule: Record<string, number>;
18
+ waived: number;
19
+ waivedByRule: Record<string, number>;
20
+ stale: number;
21
+ }
22
+ export interface SilentFailureScanResult {
23
+ status: 0 | 1 | 2;
24
+ findings: SilentFailureFinding[];
25
+ waived: SilentFailureFinding[];
26
+ summary: SilentFailureSummary;
27
+ waiverFile?: string;
28
+ staleWaivers: SilentFailureWaiver[];
29
+ waiverWarnings: SilentFailureWaiverWarning[];
30
+ }
31
+ export interface SilentFailureWaiver {
32
+ rule: string;
33
+ file: string;
34
+ symbol: string;
35
+ reason: string;
36
+ reviewedAt: string;
37
+ owner?: string;
38
+ }
39
+ export interface SilentFailureWaiverWarning {
40
+ kind: "stale" | "invalid-entry" | "load-warning";
41
+ message: string;
42
+ entry?: unknown;
43
+ }
@@ -0,0 +1,2 @@
1
+ export declare const TOOL_DESCRIPTION_NO_SKILLS = "Load a skill to get detailed instructions for a specific task. No skills are currently available.";
2
+ export declare const TOOL_DESCRIPTION_PREFIX = "Load a skill to get detailed instructions for a specific task.\n\nSkills provide specialized knowledge and step-by-step guidance.\nUse this when a task matches an available skill's description.";
@@ -0,0 +1,4 @@
1
+ import { type MatrixxToolDefinition } from "../shared/define-tool";
2
+ import type { SkillLoadOptions } from "./types";
3
+ export declare function createSkillTool(options?: SkillLoadOptions): MatrixxToolDefinition;
4
+ export declare const skill: MatrixxToolDefinition;
@@ -0,0 +1,22 @@
1
+ import type { BuiltinSkill } from "../../skills";
2
+ export interface SkillArgs {
3
+ name: string;
4
+ }
5
+ export interface SkillInfo {
6
+ name: string;
7
+ description: string;
8
+ location?: string;
9
+ license?: string;
10
+ compatibility?: string;
11
+ metadata?: Record<string, string>;
12
+ allowedTools?: string[];
13
+ }
14
+ export interface SkillLoadOptions {
15
+ /** Pre-merged skills to use instead of discovering */
16
+ skills?: BuiltinSkill[];
17
+ /** MCP manager for querying skill-embedded MCP servers */
18
+ mcpManager?: never;
19
+ /** Session ID getter for MCP client identification */
20
+ getSessionID?: () => string;
21
+ disabledSkills?: Set<string>;
22
+ }
@@ -0,0 +1,2 @@
1
+ import type { CommandInfo } from "./types";
2
+ export declare function discoverCommandsSync(directory?: string): CommandInfo[];
@@ -0,0 +1,3 @@
1
+ import type { CommandInfo } from "./types";
2
+ export declare function formatLoadedCommand(command: CommandInfo, userMessage?: string): Promise<string>;
3
+ export declare function formatCommandList(items: CommandInfo[]): string;
@@ -0,0 +1,3 @@
1
+ import type { BuiltinSkill } from "../../skills";
2
+ import type { CommandInfo } from "./types";
3
+ export declare function skillToCommandInfo(skill: BuiltinSkill): CommandInfo;
@@ -0,0 +1,3 @@
1
+ import type { CommandInfo } from "./types";
2
+ export declare const TOOL_DESCRIPTION_PREFIX = "Load a skill or execute a command to get detailed instructions for a specific task.\n\nSkills and commands provide specialized knowledge and step-by-step guidance.\nUse this when a task matches an available skill's or command's description.\n\n**How to use:**\n- Call with command name only: command='publish'\n- Call with command and arguments: command='publish' user_message='patch'\n- The tool will return detailed instructions for the command with your arguments substituted.\n";
3
+ export declare function buildDescriptionFromItems(items: CommandInfo[]): string;
@@ -0,0 +1,4 @@
1
+ import { type MatrixxToolDefinition } from "../shared/define-tool";
2
+ import type { SlashcommandToolOptions } from "./types";
3
+ export declare function createSlashcommandTool(options?: SlashcommandToolOptions): MatrixxToolDefinition;
4
+ export declare const slashcommand: MatrixxToolDefinition;
@@ -0,0 +1,2 @@
1
+ export { discoverCommandsSync } from "./command-discovery";
2
+ export { createSlashcommandTool, slashcommand } from "./slashcommand-tool";
@@ -0,0 +1,46 @@
1
+ import type { BuiltinSkill } from "../../skills";
2
+ export interface LazyContentLoader {
3
+ loaded: boolean;
4
+ content?: string;
5
+ load: () => Promise<string>;
6
+ }
7
+ export type CommandScope = "builtin" | "config" | "user" | "project" | "opencode" | "opencode-project" | "plugin";
8
+ export interface CommandMetadata {
9
+ name: string;
10
+ description: string;
11
+ argumentHint?: string;
12
+ model?: string;
13
+ agent?: string;
14
+ subtask?: boolean;
15
+ }
16
+ export interface CommandInfo {
17
+ name: string;
18
+ path?: string;
19
+ metadata: CommandMetadata;
20
+ content?: string;
21
+ scope: CommandScope;
22
+ lazyContentLoader?: LazyContentLoader;
23
+ }
24
+ export interface PluginCommandEntry {
25
+ name: string;
26
+ description?: string;
27
+ model?: unknown;
28
+ agent?: string;
29
+ subtask?: boolean;
30
+ template?: unknown;
31
+ }
32
+ export interface PluginCommandClient {
33
+ command: {
34
+ list(): Promise<{
35
+ data?: PluginCommandEntry[];
36
+ }>;
37
+ };
38
+ }
39
+ export interface SlashcommandToolOptions {
40
+ /** Pre-loaded commands (skip discovery if provided) */
41
+ commands?: CommandInfo[];
42
+ /** Pre-loaded skills (skip discovery if provided) */
43
+ skills?: BuiltinSkill[];
44
+ /** Host command client for discovering plugin-registered commands */
45
+ client?: PluginCommandClient;
46
+ }
@@ -0,0 +1,15 @@
1
+ import type { StalenessResult, StalenessSample } from "./types";
2
+ export declare function toMillis(value: number | string | undefined): number | null;
3
+ /**
4
+ * Validates and normalizes a raw parsed object into a sample, or returns null
5
+ * when the object does not carry the required shape.
6
+ */
7
+ export declare function coerceSample(raw: unknown): StalenessSample | null;
8
+ export declare function parseNdjson(text: string): {
9
+ samples: StalenessSample[];
10
+ invalid: number;
11
+ };
12
+ export declare function analyzeSamples(samples: StalenessSample[], opts?: {
13
+ maxGapMultiplier?: number;
14
+ now?: number;
15
+ }): StalenessResult;
@@ -0,0 +1,3 @@
1
+ export declare const STALENESS_GAP_CHECK_DESCRIPTION = "Deterministic, read-only checker for market-data feed health. Given a list of samples (or a newline-delimited JSON log) it detects per-(symbol,exchange) sequence gaps, regressions and duplicates, and classifies staleness (now - exchange_ts vs the expected inter-arrival interval). Returns a JSON report with a status exit code (0=clean, 1=warnings, 2=errors).\n\nStaleness: expected interval is the median positive delta of exchange_ts within a group; state is healthy, warn (> maxGapMultiplier x expected, default 2x), or stale (> 5x expected). \"now\" defaults to the maximum pub_ts across the input (so the check is deterministic without a wall clock); pass \"now\" to override.\n\nProviding neither samples nor logPath fails closed with status 2 rather than a clean pass.";
2
+ export declare const DEFAULT_MAX_GAP_MULTIPLIER = 2;
3
+ export declare const STALE_MULTIPLIER = 5;
@@ -0,0 +1,4 @@
1
+ export { analyzeSamples, coerceSample, parseNdjson, toMillis } from "./checker";
2
+ export { DEFAULT_MAX_GAP_MULTIPLIER, STALE_MULTIPLIER, STALENESS_GAP_CHECK_DESCRIPTION } from "./constants";
3
+ export { createStalenessGapCheckerTool } from "./tools";
4
+ export type { GapFinding, GapKind, StalenessEntry, StalenessResult, StalenessSample, StalenessState, StalenessSummary, } from "./types";
@@ -0,0 +1,3 @@
1
+ import type { MatrixxContext } from "../../plugin/context";
2
+ import { type MatrixxToolDefinition } from "../shared/define-tool";
3
+ export declare function createStalenessGapCheckerTool(ctx: MatrixxContext): Record<string, MatrixxToolDefinition>;