opencode-matrixx 1.1.1 → 2.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 (575) hide show
  1. package/README.md +162 -127
  2. package/bin/matrixx.js +4 -4
  3. package/dist/agents/agent-builder.d.ts +2 -3
  4. package/dist/agents/architect/agent.d.ts +2 -2
  5. package/dist/agents/architect/index.d.ts +4 -4
  6. package/dist/agents/builtin-agents/agent-overrides.d.ts +1 -1
  7. package/dist/agents/builtin-agents/atlas-agent.d.ts +1 -1
  8. package/dist/agents/builtin-agents/available-skills.d.ts +2 -2
  9. package/dist/agents/builtin-agents/general-agents.d.ts +2 -4
  10. package/dist/agents/builtin-agents/hephaestus-agent.d.ts +1 -1
  11. package/dist/agents/builtin-agents/sisyphus-agent.d.ts +1 -1
  12. package/dist/agents/builtin-agents.d.ts +3 -4
  13. package/dist/agents/env-context.d.ts +1 -1
  14. package/dist/agents/index.d.ts +6 -7
  15. package/dist/agents/keymaker.d.ts +1 -1
  16. package/dist/agents/morpheus.d.ts +1 -3
  17. package/dist/agents/mouse/index.d.ts +2 -2
  18. package/dist/agents/oracle/index.d.ts +3 -3
  19. package/dist/agents/sati.d.ts +7 -0
  20. package/dist/agents/seraph.d.ts +1 -1
  21. package/dist/agents/types.d.ts +6 -6
  22. package/dist/cli/config-manager/config-context.d.ts +1 -1
  23. package/dist/cli/config-manager/generate-matrixx-config.d.ts +2 -0
  24. package/dist/cli/config-manager/opencode-config-format.d.ts +2 -1
  25. package/dist/cli/config-manager/write-matrixx-config.d.ts +2 -0
  26. package/dist/cli/config-manager.d.ts +10 -10
  27. package/dist/cli/doctor/checks/index.d.ts +1 -1
  28. package/dist/cli/doctor/checks/model-resolution-config.d.ts +2 -2
  29. package/dist/cli/doctor/checks/model-resolution-details.d.ts +2 -2
  30. package/dist/cli/doctor/checks/model-resolution-types.d.ts +1 -1
  31. package/dist/cli/doctor/checks/model-resolution-variant.d.ts +3 -3
  32. package/dist/cli/doctor/checks/model-resolution.d.ts +2 -2
  33. package/dist/cli/doctor/checks/system-binary.d.ts +2 -7
  34. package/dist/cli/doctor/checks/system-loaded-version.d.ts +2 -1
  35. package/dist/cli/doctor/checks/tools-gh.d.ts +2 -1
  36. package/dist/cli/doctor/formatter.d.ts +1 -1
  37. package/dist/cli/doctor/index.d.ts +2 -2
  38. package/dist/cli/doctor/runner.d.ts +1 -1
  39. package/dist/cli/doctor/types.d.ts +2 -30
  40. package/dist/cli/index.js +16735 -14492
  41. package/dist/cli/mcp-oauth/login.d.ts +2 -1
  42. package/dist/cli/mcp-oauth/logout.d.ts +2 -1
  43. package/dist/cli/model-fallback-types.d.ts +1 -1
  44. package/dist/cli/model-fallback.d.ts +3 -4
  45. package/dist/cli/provider-availability.d.ts +1 -1
  46. package/dist/cli/run/agent-resolver.d.ts +1 -1
  47. package/dist/cli/run/event-formatting.d.ts +1 -1
  48. package/dist/cli/run/event-handlers.d.ts +1 -1
  49. package/dist/cli/run/event-stream-processor.d.ts +1 -1
  50. package/dist/cli/run/events.d.ts +1 -1
  51. package/dist/cli/run/index.d.ts +6 -6
  52. package/dist/cli/run/json-output.d.ts +1 -1
  53. package/dist/cli/run/opencode-binary-resolver.d.ts +0 -1
  54. package/dist/cli/run/poll-for-completion.d.ts +3 -2
  55. package/dist/cli/run/runner.d.ts +1 -1
  56. package/dist/config/index.d.ts +3 -3
  57. package/dist/config/profiles.d.ts +1 -1
  58. package/dist/config/schema/agent-definitions.d.ts +0 -1
  59. package/dist/config/schema/agent-names.d.ts +6 -39
  60. package/dist/config/schema/agent-overrides.d.ts +2 -2
  61. package/dist/config/schema/claude-code.d.ts +0 -1
  62. package/dist/config/schema/commands.d.ts +2 -0
  63. package/dist/config/schema/experimental.d.ts +0 -26
  64. package/dist/config/schema/hooks.d.ts +3 -1
  65. package/dist/config/schema/matrixx-config.d.ts +22 -51
  66. package/dist/config/schema/matrixx-self-config.d.ts +6 -0
  67. package/dist/config/schema/morpheus.d.ts +2 -1
  68. package/dist/config/schema/security.d.ts +4 -3
  69. package/dist/config/schema/skills.d.ts +2 -20
  70. package/dist/config/schema/websearch.d.ts +0 -5
  71. package/dist/config/schema.d.ts +10 -12
  72. package/dist/create-hooks.d.ts +4 -2
  73. package/dist/create-managers.d.ts +2 -2
  74. package/dist/create-tools.d.ts +3 -2
  75. package/dist/features/background-agent/background-task-notification-template.d.ts +2 -1
  76. package/dist/features/background-agent/constants.d.ts +1 -5
  77. package/dist/features/background-agent/index.d.ts +3 -3
  78. package/dist/features/background-agent/loop-detector.d.ts +2 -2
  79. package/dist/features/background-agent/manager.d.ts +13 -2
  80. package/dist/features/background-agent/state.d.ts +1 -1
  81. package/dist/features/background-agent/task-poller.d.ts +3 -2
  82. package/dist/features/background-agent/types.d.ts +4 -1
  83. package/dist/features/builtin-commands/index.d.ts +1 -1
  84. package/dist/features/builtin-commands/templates/end-ultrawork.d.ts +1 -0
  85. package/dist/features/builtin-commands/templates/handoff.d.ts +1 -1
  86. package/dist/features/builtin-commands/templates/pickup.d.ts +1 -1
  87. package/dist/features/builtin-commands/templates/profile.d.ts +1 -0
  88. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
  89. package/dist/features/builtin-commands/types.d.ts +1 -4
  90. package/dist/features/builtin-skills/index.d.ts +1 -1
  91. package/dist/features/builtin-skills/skills/document-reader.d.ts +0 -2
  92. package/dist/features/builtin-skills/skills/dsl-codegen.d.ts +0 -1
  93. package/dist/features/builtin-skills/skills/dsl-composition.d.ts +0 -1
  94. package/dist/features/builtin-skills/skills/dsl-core.d.ts +0 -1
  95. package/dist/features/builtin-skills/skills/dsl-grammar.d.ts +0 -1
  96. package/dist/features/builtin-skills/skills/dsl-metamodel.d.ts +0 -1
  97. package/dist/features/builtin-skills/skills/dsl-model-transformation.d.ts +0 -1
  98. package/dist/features/builtin-skills/skills/dsl-pyecore-advanced.d.ts +0 -1
  99. package/dist/features/builtin-skills/skills/dsl-testing.d.ts +0 -1
  100. package/dist/features/builtin-skills/skills/dsl-textx-ecosystem.d.ts +0 -1
  101. package/dist/features/builtin-skills/skills/dsl-tooling.d.ts +0 -1
  102. package/dist/features/builtin-skills/skills/dsl-validation.d.ts +0 -1
  103. package/dist/features/builtin-skills/skills/frontend-a11y.d.ts +3 -0
  104. package/dist/features/builtin-skills/skills/frontend-build-tooling.d.ts +3 -0
  105. package/dist/features/builtin-skills/skills/frontend-perf.d.ts +3 -0
  106. package/dist/features/builtin-skills/skills/frontend-react-nextjs.d.ts +3 -0
  107. package/dist/features/builtin-skills/skills/frontend-state-data.d.ts +3 -0
  108. package/dist/features/builtin-skills/skills/frontend-svelte-sveltekit.d.ts +3 -0
  109. package/dist/features/builtin-skills/skills/frontend-testing.d.ts +3 -0
  110. package/dist/features/builtin-skills/skills/index.d.ts +25 -30
  111. package/dist/features/builtin-skills/skills/matrixx-self-config.d.ts +3 -0
  112. package/dist/features/builtin-skills/skills/quality-gate.d.ts +2 -0
  113. package/dist/features/builtin-skills/skills/review-work.d.ts +0 -2
  114. package/dist/features/builtin-skills/skills/security-api.d.ts +0 -1
  115. package/dist/features/builtin-skills/skills/security-core.d.ts +0 -1
  116. package/dist/features/builtin-skills/skills/security-crypto.d.ts +0 -1
  117. package/dist/features/builtin-skills/skills/security-dast.d.ts +0 -1
  118. package/dist/features/builtin-skills/skills/security-dependencies.d.ts +0 -1
  119. package/dist/features/builtin-skills/skills/security-infra.d.ts +0 -1
  120. package/dist/features/builtin-skills/skills/security-review.d.ts +0 -1
  121. package/dist/features/builtin-skills/skills/security-sast.d.ts +0 -1
  122. package/dist/features/builtin-skills/skills/security-secrets.d.ts +0 -1
  123. package/dist/features/builtin-skills/skills/software-dev.d.ts +2 -0
  124. package/dist/features/builtin-skills/skills/tdd-enforcer.d.ts +0 -2
  125. package/dist/features/builtin-skills/skills.d.ts +1 -1
  126. package/dist/features/claude-code-agent-loader/index.d.ts +1 -1
  127. package/dist/features/claude-code-command-loader/index.d.ts +1 -1
  128. package/dist/features/claude-code-command-loader/types.d.ts +2 -1
  129. package/dist/features/claude-code-mcp-loader/env-expander.d.ts +0 -1
  130. package/dist/features/claude-code-mcp-loader/index.d.ts +2 -2
  131. package/dist/features/claude-code-mcp-loader/loader.d.ts +1 -2
  132. package/dist/features/claude-code-plugin-loader/discovery.d.ts +1 -1
  133. package/dist/features/claude-code-plugin-loader/index.d.ts +7 -7
  134. package/dist/features/claude-code-plugin-loader/loader.d.ts +5 -5
  135. package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +0 -1
  136. package/dist/features/claude-code-plugin-loader/types.d.ts +10 -9
  137. package/dist/features/claude-tasks/index.d.ts +2 -2
  138. package/dist/features/claude-tasks/session-storage.d.ts +2 -1
  139. package/dist/features/claude-tasks/storage.d.ts +0 -1
  140. package/dist/features/claude-tasks/types.d.ts +4 -4
  141. package/dist/features/context-injector/index.d.ts +1 -1
  142. package/dist/features/context-injector/injector.d.ts +1 -27
  143. package/dist/features/handoff/constants.d.ts +8 -0
  144. package/dist/features/handoff/index.d.ts +4 -0
  145. package/dist/features/handoff/schema.d.ts +90 -0
  146. package/dist/{hooks/handoff-injector → features/handoff}/storage.d.ts +2 -0
  147. package/dist/features/handoff/validate.d.ts +22 -0
  148. package/dist/features/hook-message-injector/constants.d.ts +1 -1
  149. package/dist/features/hook-message-injector/index.d.ts +2 -2
  150. package/dist/features/hook-message-injector/injector.d.ts +2 -2
  151. package/dist/features/mcp-oauth/dcr.d.ts +3 -9
  152. package/dist/features/mcp-oauth/index.d.ts +1 -1
  153. package/dist/features/mcp-oauth/provider.d.ts +4 -4
  154. package/dist/features/mcp-oauth/schema.d.ts +0 -1
  155. package/dist/features/mcp-oauth/step-up.d.ts +2 -1
  156. package/dist/features/mission-state/constants.d.ts +0 -3
  157. package/dist/features/mission-state/index.d.ts +1 -1
  158. package/dist/features/mission-state/storage.d.ts +0 -1
  159. package/dist/features/opencode-skill-loader/index.d.ts +6 -7
  160. package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +1 -1
  161. package/dist/features/opencode-skill-loader/loader.d.ts +2 -2
  162. package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +1 -1
  163. package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +1 -1
  164. package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +1 -1
  165. package/dist/features/opencode-skill-loader/merger.d.ts +3 -2
  166. package/dist/features/opencode-skill-loader/skill-content.d.ts +3 -4
  167. package/dist/features/opencode-skill-loader/skill-discovery.d.ts +1 -1
  168. package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +1 -2
  169. package/dist/features/run-continuation-state/index.d.ts +1 -1
  170. package/dist/features/run-continuation-state/types.d.ts +2 -1
  171. package/dist/features/skill-mcp-manager/cleanup.d.ts +0 -1
  172. package/dist/features/skill-mcp-manager/index.d.ts +1 -1
  173. package/dist/features/skill-mcp-manager/oauth-handler.d.ts +0 -1
  174. package/dist/features/skill-mcp-manager/types.d.ts +5 -4
  175. package/dist/features/task-toast-manager/index.d.ts +2 -2
  176. package/dist/features/task-toast-manager/manager.d.ts +1 -1
  177. package/dist/features/tmux-subagent/action-executor.d.ts +2 -2
  178. package/dist/features/tmux-subagent/cleanup.d.ts +1 -9
  179. package/dist/features/tmux-subagent/decision-engine.d.ts +3 -3
  180. package/dist/features/tmux-subagent/event-handlers.d.ts +3 -3
  181. package/dist/features/tmux-subagent/index.d.ts +7 -8
  182. package/dist/features/tmux-subagent/manager.d.ts +1 -1
  183. package/dist/features/tmux-subagent/polling.d.ts +0 -18
  184. package/dist/features/tmux-subagent/session-created-handler.d.ts +1 -1
  185. package/dist/features/tmux-subagent/session-deleted-handler.d.ts +1 -1
  186. package/dist/features/tmux-subagent/spawn-action-decider.d.ts +1 -1
  187. package/dist/features/tool-metadata-store/index.d.ts +1 -1
  188. package/dist/hooks/anthropic-context-window-limit-recovery/aggressive-truncation-strategy.d.ts +1 -1
  189. package/dist/hooks/anthropic-context-window-limit-recovery/empty-content-recovery.d.ts +1 -1
  190. package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +3 -2
  191. package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +5 -5
  192. package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +1 -1
  193. package/dist/hooks/anthropic-context-window-limit-recovery/message-storage-directory.d.ts +0 -3
  194. package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +1 -1
  195. package/dist/hooks/anthropic-context-window-limit-recovery/summarize-retry-strategy.d.ts +1 -1
  196. package/dist/hooks/architect/index.d.ts +1 -1
  197. package/dist/hooks/auto-slash-command/executor.d.ts +2 -1
  198. package/dist/hooks/auto-slash-command/hook.d.ts +1 -1
  199. package/dist/hooks/auto-slash-command/index.d.ts +3 -3
  200. package/dist/hooks/auto-slash-command/types.d.ts +0 -5
  201. package/dist/hooks/auto-update-checker/checker.d.ts +6 -6
  202. package/dist/hooks/auto-update-checker/constants.d.ts +0 -2
  203. package/dist/hooks/auto-update-checker/index.d.ts +4 -4
  204. package/dist/hooks/comment-checker/cli-runner.d.ts +2 -1
  205. package/dist/hooks/comment-checker/downloader.d.ts +0 -5
  206. package/dist/hooks/comment-checker/types.d.ts +0 -18
  207. package/dist/hooks/delegate-task-retry/index.d.ts +2 -2
  208. package/dist/hooks/design-intent-preserver/constants.d.ts +6 -0
  209. package/dist/hooks/design-intent-preserver/hook.d.ts +19 -0
  210. package/dist/hooks/design-intent-preserver/index.d.ts +1 -0
  211. package/dist/hooks/design-intent-preserver/phase-detector.d.ts +8 -0
  212. package/dist/hooks/directory-agents-injector/finder.d.ts +1 -1
  213. package/dist/hooks/directory-agents-injector/hook.d.ts +3 -23
  214. package/dist/hooks/directory-injector/factory.d.ts +40 -0
  215. package/dist/hooks/directory-injector/index.d.ts +1 -0
  216. package/dist/hooks/directory-readme-injector/finder.d.ts +1 -1
  217. package/dist/hooks/directory-readme-injector/hook.d.ts +3 -23
  218. package/dist/hooks/env-file-write-guard/hook.d.ts +2 -1
  219. package/dist/hooks/index.d.ts +43 -41
  220. package/dist/hooks/interactive-bash-session/constants.d.ts +1 -1
  221. package/dist/hooks/interactive-bash-session/index.d.ts +0 -2
  222. package/dist/hooks/interactive-bash-session/parser.d.ts +2 -2
  223. package/dist/hooks/json-error-recovery/index.d.ts +1 -1
  224. package/dist/hooks/keyword-detector/analyze/index.d.ts +1 -1
  225. package/dist/hooks/keyword-detector/constants.d.ts +5 -6
  226. package/dist/hooks/keyword-detector/detector.d.ts +2 -2
  227. package/dist/hooks/keyword-detector/index.d.ts +1 -2
  228. package/dist/hooks/keyword-detector/search/index.d.ts +1 -1
  229. package/dist/hooks/keyword-detector/ultrawork/index.d.ts +4 -4
  230. package/dist/hooks/matrix-loop/completion-promise-detector.d.ts +10 -0
  231. package/dist/hooks/matrix-loop/completion-verifier.d.ts +4 -1
  232. package/dist/hooks/matrix-loop/constants.d.ts +0 -1
  233. package/dist/hooks/matrix-loop/index.d.ts +3 -3
  234. package/dist/hooks/matrix-loop/storage.d.ts +0 -1
  235. package/dist/hooks/non-interactive-env/index.d.ts +0 -1
  236. package/dist/hooks/non-interactive-env/non-interactive-env-hook.d.ts +0 -1
  237. package/dist/hooks/preemptive-compaction-types.d.ts +2 -1
  238. package/dist/hooks/prometheus-md-only/constants.d.ts +0 -1
  239. package/dist/hooks/quality-gate/hook.d.ts +18 -0
  240. package/dist/hooks/rules-injector/index.d.ts +1 -1
  241. package/dist/hooks/rules-injector/injector.d.ts +1 -0
  242. package/dist/hooks/rules-injector/matcher.d.ts +2 -1
  243. package/dist/hooks/rules-injector/output-path.d.ts +2 -1
  244. package/dist/hooks/rules-injector/parser.d.ts +2 -1
  245. package/dist/hooks/rules-injector/types.d.ts +0 -21
  246. package/dist/hooks/runtime-fallback/agent-resolver.d.ts +0 -2
  247. package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +2 -1
  248. package/dist/hooks/runtime-fallback/event-handler.d.ts +1 -1
  249. package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +1 -1
  250. package/dist/hooks/runtime-fallback/fallback-state.d.ts +1 -3
  251. package/dist/hooks/runtime-fallback/index.d.ts +1 -1
  252. package/dist/hooks/runtime-fallback/message-update-handler.d.ts +1 -1
  253. package/dist/hooks/runtime-fallback/session-status-handler.d.ts +1 -1
  254. package/dist/hooks/runtime-fallback/types.d.ts +1 -1
  255. package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +1 -1
  256. package/dist/hooks/secret-leak-guard/gitleaks-runner.d.ts +4 -3
  257. package/dist/hooks/secret-leak-guard/hook.d.ts +2 -1
  258. package/dist/hooks/session-recovery/constants.d.ts +1 -2
  259. package/dist/hooks/session-recovery/index.d.ts +3 -3
  260. package/dist/hooks/session-recovery/storage.d.ts +9 -17
  261. package/dist/hooks/session-recovery/types.d.ts +3 -5
  262. package/dist/hooks/start-work/index.d.ts +1 -1
  263. package/dist/hooks/stop-continuation-guard/hook.d.ts +2 -1
  264. package/dist/hooks/stop-continuation-guard/index.d.ts +1 -1
  265. package/dist/hooks/task-notepad/constants.d.ts +10 -0
  266. package/dist/hooks/task-notepad/hook.d.ts +12 -0
  267. package/dist/hooks/task-notepad/index.d.ts +3 -0
  268. package/dist/hooks/task-notepad/types.d.ts +16 -0
  269. package/dist/hooks/tasks-todowrite-disabler/index.d.ts +1 -1
  270. package/dist/hooks/think-mode/hook.d.ts +5 -1
  271. package/dist/hooks/think-mode/index.d.ts +1 -1
  272. package/dist/hooks/think-mode/switcher.d.ts +1 -0
  273. package/dist/hooks/think-mode/types.d.ts +3 -2
  274. package/dist/hooks/todo-continuation-enforcer/continuation-injection.d.ts +1 -1
  275. package/dist/hooks/todo-continuation-enforcer/countdown.d.ts +1 -1
  276. package/dist/hooks/unstable-agent-babysitter/index.d.ts +1 -1
  277. package/dist/hooks/webfetch-redirect-guard/redirect-resolution.d.ts +1 -1
  278. package/dist/index.d.ts +1 -1
  279. package/dist/index.js +64716 -51265
  280. package/dist/mcp/index.d.ts +1 -1
  281. package/dist/plugin/chat-message.d.ts +1 -1
  282. package/dist/plugin/event.d.ts +1 -1
  283. package/dist/plugin/hooks/create-continuation-hooks.d.ts +1 -1
  284. package/dist/plugin/hooks/create-core-hooks.d.ts +3 -1
  285. package/dist/plugin/hooks/create-session-hooks.d.ts +3 -3
  286. package/dist/plugin/hooks/create-skill-hooks.d.ts +1 -1
  287. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +3 -1
  288. package/dist/plugin/hooks/create-transform-hooks.d.ts +3 -3
  289. package/dist/plugin/messages-transform.d.ts +1 -0
  290. package/dist/plugin/session-agent-resolver.d.ts +1 -1
  291. package/dist/plugin/tool-execute-before.bench.d.ts +1 -0
  292. package/dist/plugin/tool-execute-before.d.ts +1 -1
  293. package/dist/plugin/tool-registry.d.ts +1 -1
  294. package/dist/plugin/unstable-agent-babysitter.d.ts +1 -1
  295. package/dist/plugin-config.d.ts +24 -1
  296. package/dist/plugin-handlers/agent-config-handler.d.ts +1 -1
  297. package/dist/plugin-handlers/config-handler.d.ts +1 -1
  298. package/dist/plugin-handlers/index.d.ts +6 -6
  299. package/dist/plugin-interface.d.ts +1 -1
  300. package/dist/shared/agent-tool-restrictions.d.ts +0 -1
  301. package/dist/shared/code-patterns.d.ts +2 -0
  302. package/dist/shared/command-executor/embedded-commands.d.ts +2 -1
  303. package/dist/shared/command-executor/execute-command.d.ts +1 -1
  304. package/dist/shared/command-executor.d.ts +0 -2
  305. package/dist/shared/dynamic-truncator.d.ts +3 -9
  306. package/dist/shared/error-formatting.d.ts +27 -0
  307. package/dist/shared/external-plugin-detector.d.ts +2 -1
  308. package/dist/shared/frontmatter.d.ts +2 -1
  309. package/dist/shared/git-worktree/index.d.ts +3 -3
  310. package/dist/shared/index.d.ts +36 -35
  311. package/dist/shared/is-object.d.ts +1 -0
  312. package/dist/shared/jsonc-parser.d.ts +2 -1
  313. package/dist/shared/logger.d.ts +0 -1
  314. package/dist/shared/migration.d.ts +2 -2
  315. package/dist/shared/model-availability.d.ts +24 -2
  316. package/dist/shared/model-suggestion-retry.d.ts +1 -1
  317. package/dist/shared/normalize-sdk-response.d.ts +2 -1
  318. package/dist/shared/opencode-config-dir-types.d.ts +0 -1
  319. package/dist/shared/permission-compat.d.ts +2 -1
  320. package/dist/shared/port-utils.d.ts +1 -1
  321. package/dist/shared/session-cursor.d.ts +1 -1
  322. package/dist/shared/session-injected-paths.d.ts +0 -5
  323. package/dist/shared/session-model-state.d.ts +2 -3
  324. package/dist/shared/session-temperature-store.d.ts +3 -0
  325. package/dist/shared/shell-env.d.ts +2 -18
  326. package/dist/shared/skill-path-resolver.d.ts +1 -1
  327. package/dist/shared/system-directive.d.ts +0 -1
  328. package/dist/shared/tmux/index.d.ts +1 -1
  329. package/dist/shared/tmux/tmux-utils.d.ts +6 -6
  330. package/dist/shared/token-cache.d.ts +23 -0
  331. package/dist/shared/transcript-path.d.ts +1 -0
  332. package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +0 -1
  333. package/dist/tools/ast-grep/constants.d.ts +1 -2
  334. package/dist/tools/ast-grep/downloader.d.ts +0 -1
  335. package/dist/tools/ast-grep/index.d.ts +4 -4
  336. package/dist/tools/ast-grep/result-formatter.d.ts +1 -3
  337. package/dist/tools/ast-grep/types.d.ts +1 -24
  338. package/dist/tools/background-task/index.d.ts +2 -2
  339. package/dist/tools/background-task/time-format.d.ts +0 -1
  340. package/dist/tools/background-task/tools.d.ts +2 -2
  341. package/dist/tools/background-task/types.d.ts +0 -19
  342. package/dist/tools/delegate-agent/background-agent-executor.d.ts +5 -0
  343. package/dist/tools/{call-omo-agent → delegate-agent}/background-executor.d.ts +3 -3
  344. package/dist/tools/delegate-agent/constants.d.ts +2 -0
  345. package/dist/tools/{call-omo-agent → delegate-agent}/index.d.ts +2 -2
  346. package/dist/tools/{call-omo-agent → delegate-agent}/session-creator.d.ts +2 -2
  347. package/dist/tools/{call-omo-agent → delegate-agent}/subagent-session-creator.d.ts +2 -2
  348. package/dist/tools/{call-omo-agent → delegate-agent}/sync-executor.d.ts +3 -3
  349. package/dist/tools/{call-omo-agent → delegate-agent}/tools.d.ts +1 -1
  350. package/dist/tools/{call-omo-agent → delegate-agent}/types.d.ts +1 -16
  351. package/dist/tools/delegate-task/background-continuation.d.ts +1 -1
  352. package/dist/tools/delegate-task/background-task.d.ts +2 -1
  353. package/dist/tools/delegate-task/categories.d.ts +5 -3
  354. package/dist/tools/delegate-task/category-resolver.d.ts +2 -1
  355. package/dist/tools/delegate-task/constants.d.ts +6 -18
  356. package/dist/tools/delegate-task/error-formatting.d.ts +4 -13
  357. package/dist/tools/delegate-task/executor-types.d.ts +1 -2
  358. package/dist/tools/delegate-task/executor.d.ts +7 -7
  359. package/dist/tools/delegate-task/index.d.ts +3 -3
  360. package/dist/tools/delegate-task/parent-context-resolver.d.ts +1 -2
  361. package/dist/tools/delegate-task/prompt-builder.d.ts +0 -1
  362. package/dist/tools/delegate-task/skill-resolver.d.ts +1 -2
  363. package/dist/tools/delegate-task/subagent-resolver.d.ts +1 -1
  364. package/dist/tools/delegate-task/sync-continuation-deps.d.ts +1 -1
  365. package/dist/tools/delegate-task/sync-continuation.d.ts +1 -1
  366. package/dist/tools/delegate-task/sync-prompt-sender.d.ts +2 -1
  367. package/dist/tools/delegate-task/sync-result-fetcher.d.ts +6 -1
  368. package/dist/tools/delegate-task/sync-session-poller.d.ts +5 -1
  369. package/dist/tools/delegate-task/sync-task-deps.d.ts +2 -2
  370. package/dist/tools/delegate-task/sync-task.d.ts +2 -1
  371. package/dist/tools/delegate-task/tools.d.ts +1 -1
  372. package/dist/tools/delegate-task/types.d.ts +2 -3
  373. package/dist/tools/delegate-task/unstable-agent-task.d.ts +2 -1
  374. package/dist/tools/glob/cli.d.ts +1 -1
  375. package/dist/tools/glob/constants.d.ts +1 -1
  376. package/dist/tools/grep/cli.d.ts +1 -2
  377. package/dist/tools/grep/constants.d.ts +0 -1
  378. package/dist/tools/grep/result-formatter.d.ts +1 -2
  379. package/dist/tools/grep/types.d.ts +0 -4
  380. package/dist/tools/handoff/archive-handler.d.ts +9 -0
  381. package/dist/tools/handoff/body-formatter.d.ts +9 -0
  382. package/dist/tools/handoff/constants.d.ts +17 -0
  383. package/dist/tools/handoff/create-handler.d.ts +34 -0
  384. package/dist/tools/handoff/git.d.ts +12 -0
  385. package/dist/tools/handoff/index.d.ts +3 -0
  386. package/dist/tools/handoff/list-handler.d.ts +8 -0
  387. package/dist/tools/handoff/read-handler.d.ts +8 -0
  388. package/dist/tools/handoff/tools.d.ts +11 -0
  389. package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +0 -5
  390. package/dist/tools/hashline-edit/edit-operations.d.ts +2 -1
  391. package/dist/tools/hashline-edit/edit-text-normalization.d.ts +0 -2
  392. package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +2 -1
  393. package/dist/tools/hashline-edit/hash-computation.d.ts +2 -1
  394. package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +1 -1
  395. package/dist/tools/hashline-edit/hashline-edit-executor.d.ts +1 -1
  396. package/dist/tools/hashline-edit/index.d.ts +4 -5
  397. package/dist/tools/hashline-edit/validation.d.ts +0 -2
  398. package/dist/tools/index.d.ts +8 -7
  399. package/dist/tools/interactive-bash/constants.d.ts +1 -1
  400. package/dist/tools/interactive-bash/index.d.ts +1 -1
  401. package/dist/tools/look-at/index.d.ts +1 -1
  402. package/dist/tools/lsp/client.d.ts +1 -1
  403. package/dist/tools/lsp/config.d.ts +1 -1
  404. package/dist/tools/lsp/constants.d.ts +1 -1
  405. package/dist/tools/lsp/index.d.ts +4 -4
  406. package/dist/tools/lsp/lsp-client-transport.d.ts +1 -1
  407. package/dist/tools/lsp/lsp-client-wrapper.d.ts +1 -5
  408. package/dist/tools/lsp/lsp-formatters.d.ts +1 -5
  409. package/dist/tools/lsp/lsp-server.d.ts +1 -1
  410. package/dist/tools/lsp/tools.d.ts +3 -3
  411. package/dist/tools/lsp/types.d.ts +8 -7
  412. package/dist/tools/session-manager/constants.d.ts +1 -1
  413. package/dist/tools/session-manager/index.d.ts +1 -1
  414. package/dist/tools/session-manager/session-formatter.d.ts +1 -1
  415. package/dist/tools/session-manager/storage.d.ts +2 -3
  416. package/dist/tools/session-manager/types.d.ts +0 -4
  417. package/dist/tools/skill/constants.d.ts +0 -1
  418. package/dist/tools/skill/index.d.ts +1 -1
  419. package/dist/tools/skill/types.d.ts +1 -4
  420. package/dist/tools/skill-mcp/constants.d.ts +0 -1
  421. package/dist/tools/skill-mcp/index.d.ts +1 -1
  422. package/dist/tools/skill-mcp/tools.d.ts +1 -1
  423. package/dist/tools/slashcommand/index.d.ts +1 -1
  424. package/dist/tools/slashcommand/types.d.ts +1 -1
  425. package/dist/tools/task/constants.d.ts +1 -0
  426. package/dist/tools/task/index.d.ts +1 -2
  427. package/dist/tools/task/types.d.ts +10 -10
  428. package/package.json +13 -9
  429. package/dist/agents/niobe.d.ts +0 -7
  430. package/dist/agents/zion.d.ts +0 -7
  431. package/dist/cli/config-manager/generate-omo-config.d.ts +0 -2
  432. package/dist/cli/config-manager/write-omo-config.d.ts +0 -2
  433. package/dist/config/schema/dynamic-context-pruning.d.ts +0 -28
  434. package/dist/config/schema/git-master.d.ts +0 -6
  435. package/dist/features/background-agent/background-event-handler.d.ts +0 -26
  436. package/dist/features/background-agent/background-manager-shutdown.d.ts +0 -25
  437. package/dist/features/background-agent/background-task-completer.d.ts +0 -3
  438. package/dist/features/background-agent/duration-formatter.d.ts +0 -1
  439. package/dist/features/background-agent/error-classifier.d.ts +0 -2
  440. package/dist/features/background-agent/format-duration.d.ts +0 -1
  441. package/dist/features/background-agent/message-dir.d.ts +0 -1
  442. package/dist/features/background-agent/notification-builder.d.ts +0 -8
  443. package/dist/features/background-agent/notification-tracker.d.ts +0 -6
  444. package/dist/features/background-agent/notify-parent-session.d.ts +0 -10
  445. package/dist/features/background-agent/parent-session-context-resolver.d.ts +0 -14
  446. package/dist/features/background-agent/parent-session-notifier.d.ts +0 -3
  447. package/dist/features/background-agent/poll-running-tasks.d.ts +0 -15
  448. package/dist/features/background-agent/process-signal.d.ts +0 -2
  449. package/dist/features/background-agent/result-handler-context.d.ts +0 -8
  450. package/dist/features/background-agent/result-handler.d.ts +0 -7
  451. package/dist/features/background-agent/session-idle-event-handler.d.ts +0 -10
  452. package/dist/features/background-agent/session-output-validator.d.ts +0 -2
  453. package/dist/features/background-agent/session-task-cleanup.d.ts +0 -10
  454. package/dist/features/background-agent/session-todo-checker.d.ts +0 -2
  455. package/dist/features/background-agent/session-validator.d.ts +0 -7
  456. package/dist/features/background-agent/spawner/background-session-creator.d.ts +0 -10
  457. package/dist/features/background-agent/spawner/concurrency-key-from-launch-input.d.ts +0 -2
  458. package/dist/features/background-agent/spawner/parent-directory-resolver.d.ts +0 -6
  459. package/dist/features/background-agent/spawner/spawner-context.d.ts +0 -11
  460. package/dist/features/background-agent/spawner/task-factory.d.ts +0 -2
  461. package/dist/features/background-agent/spawner/task-resumer.d.ts +0 -3
  462. package/dist/features/background-agent/spawner/task-starter.d.ts +0 -3
  463. package/dist/features/background-agent/spawner/tmux-callback-invoker.d.ts +0 -8
  464. package/dist/features/background-agent/spawner.d.ts +0 -14
  465. package/dist/features/background-agent/stale-task-pruner.d.ts +0 -15
  466. package/dist/features/background-agent/task-canceller.d.ts +0 -27
  467. package/dist/features/background-agent/task-completer.d.ts +0 -13
  468. package/dist/features/background-agent/task-launch.d.ts +0 -15
  469. package/dist/features/background-agent/task-queries.d.ts +0 -7
  470. package/dist/features/background-agent/task-queue-processor.d.ts +0 -14
  471. package/dist/features/background-agent/task-resumer.d.ts +0 -14
  472. package/dist/features/background-agent/task-starter.d.ts +0 -27
  473. package/dist/features/background-agent/task-tracker.d.ts +0 -18
  474. package/dist/features/builtin-skills/skills/academic-review.d.ts +0 -4
  475. package/dist/features/builtin-skills/skills/academic-writing.d.ts +0 -4
  476. package/dist/features/builtin-skills/skills/crypto-market-analysis.d.ts +0 -4
  477. package/dist/features/builtin-skills/skills/crypto-onchain.d.ts +0 -4
  478. package/dist/features/builtin-skills/skills/crypto-trading.d.ts +0 -4
  479. package/dist/features/builtin-skills/skills/data-management-plan.d.ts +0 -4
  480. package/dist/features/builtin-skills/skills/deliverable-writing.d.ts +0 -4
  481. package/dist/features/builtin-skills/skills/eu-horizon.d.ts +0 -4
  482. package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +0 -2
  483. package/dist/features/builtin-skills/skills/grant-writing.d.ts +0 -4
  484. package/dist/features/builtin-skills/skills/ip-exploitation.d.ts +0 -4
  485. package/dist/features/builtin-skills/skills/literature-review.d.ts +0 -4
  486. package/dist/features/builtin-skills/skills/project-management.d.ts +0 -4
  487. package/dist/features/builtin-skills/skills/research-methodology.d.ts +0 -4
  488. package/dist/features/builtin-skills/skills/scientific-presentation.d.ts +0 -4
  489. package/dist/features/builtin-skills/skills/technical-lead.d.ts +0 -4
  490. package/dist/features/mcp-oauth/resource-indicator.d.ts +0 -2
  491. package/dist/features/opencode-skill-loader/async-loader.d.ts +0 -6
  492. package/dist/features/opencode-skill-loader/blocking.d.ts +0 -2
  493. package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +0 -2
  494. package/dist/features/team-mode/index.d.ts +0 -2
  495. package/dist/features/team-mode/team-layout-tmux/index.d.ts +0 -1
  496. package/dist/features/team-mode/team-layout-tmux/layout.d.ts +0 -15
  497. package/dist/features/team-mode/team-worktree/cleanup.d.ts +0 -3
  498. package/dist/features/team-mode/team-worktree/index.d.ts +0 -2
  499. package/dist/features/team-mode/team-worktree/manager.d.ts +0 -15
  500. package/dist/features/team-mode/types.d.ts +0 -210
  501. package/dist/features/tmux-subagent/manager-cleanup.d.ts +0 -12
  502. package/dist/features/tmux-subagent/session-cleaner.d.ts +0 -23
  503. package/dist/features/tmux-subagent/session-message-count.d.ts +0 -1
  504. package/dist/features/tmux-subagent/session-spawner.d.ts +0 -34
  505. package/dist/hooks/anthropic-context-window-limit-recovery/deduplication-recovery.d.ts +0 -6
  506. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +0 -10
  507. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-tool-output-truncation.d.ts +0 -6
  508. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +0 -36
  509. package/dist/hooks/claude-code-hooks/claude-code-hooks-hook.d.ts +0 -48
  510. package/dist/hooks/claude-code-hooks/config-loader.d.ts +0 -13
  511. package/dist/hooks/claude-code-hooks/config.d.ts +0 -3
  512. package/dist/hooks/claude-code-hooks/handlers/chat-message-handler.d.ts +0 -19
  513. package/dist/hooks/claude-code-hooks/handlers/pre-compact-handler.d.ts +0 -7
  514. package/dist/hooks/claude-code-hooks/handlers/session-event-handler.d.ts +0 -8
  515. package/dist/hooks/claude-code-hooks/handlers/tool-execute-after-handler.d.ts +0 -11
  516. package/dist/hooks/claude-code-hooks/handlers/tool-execute-before-handler.d.ts +0 -9
  517. package/dist/hooks/claude-code-hooks/index.d.ts +0 -1
  518. package/dist/hooks/claude-code-hooks/plugin-config.d.ts +0 -8
  519. package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +0 -40
  520. package/dist/hooks/claude-code-hooks/pre-compact.d.ts +0 -16
  521. package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +0 -25
  522. package/dist/hooks/claude-code-hooks/session-hook-state.d.ts +0 -9
  523. package/dist/hooks/claude-code-hooks/stop.d.ts +0 -20
  524. package/dist/hooks/claude-code-hooks/todo.d.ts +0 -12
  525. package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +0 -5
  526. package/dist/hooks/claude-code-hooks/transcript.d.ts +0 -29
  527. package/dist/hooks/claude-code-hooks/types.d.ts +0 -183
  528. package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +0 -22
  529. package/dist/hooks/handoff-injector/constants.d.ts +0 -4
  530. package/dist/hooks/interactive-bash-session/interactive-bash-session-hook.d.ts +0 -23
  531. package/dist/hooks/interactive-bash-session/interactive-bash-session-tracker.d.ts +0 -21
  532. package/dist/hooks/interactive-bash-session/tmux-command-parser.d.ts +0 -4
  533. package/dist/hooks/keyword-detector/types.d.ts +0 -4
  534. package/dist/hooks/non-interactive-env/types.d.ts +0 -3
  535. package/dist/hooks/session-recovery/recover-empty-content-message.d.ts +0 -5
  536. package/dist/plugin-handlers/agent-key-remapper.d.ts +0 -1
  537. package/dist/shared/available-models-fetcher.d.ts +0 -4
  538. package/dist/shared/command-executor/execute-hook-command.d.ts +0 -10
  539. package/dist/shared/command-executor/home-directory.d.ts +0 -1
  540. package/dist/shared/command-executor/shell-path.d.ts +0 -2
  541. package/dist/shared/fallback-model-availability.d.ts +0 -5
  542. package/dist/shared/hook-disabled.d.ts +0 -2
  543. package/dist/shared/model-cache-availability.d.ts +0 -2
  544. package/dist/shared/model-name-matcher.d.ts +0 -1
  545. package/dist/shared/models-json-cache-reader.d.ts +0 -1
  546. package/dist/shared/open-code-client-accessors.d.ts +0 -3
  547. package/dist/shared/open-code-client-shapes.d.ts +0 -13
  548. package/dist/shared/pattern-matcher.d.ts +0 -3
  549. package/dist/shared/provider-models-cache-model-reader.d.ts +0 -1
  550. package/dist/shared/snake-case.d.ts +0 -5
  551. package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +0 -1
  552. package/dist/shared/tool-name.d.ts +0 -1
  553. package/dist/tools/background-task/modules/background-cancel.d.ts +0 -4
  554. package/dist/tools/background-task/modules/background-output.d.ts +0 -3
  555. package/dist/tools/background-task/modules/background-task.d.ts +0 -3
  556. package/dist/tools/background-task/modules/formatters.d.ts +0 -11
  557. package/dist/tools/background-task/modules/message-processing.d.ts +0 -59
  558. package/dist/tools/background-task/modules/utils.d.ts +0 -16
  559. package/dist/tools/call-omo-agent/agent-type-normalizer.d.ts +0 -2
  560. package/dist/tools/call-omo-agent/background-agent-executor.d.ts +0 -5
  561. package/dist/tools/call-omo-agent/constants.d.ts +0 -2
  562. package/dist/tools/call-omo-agent/session-completion-poller.d.ts +0 -13
  563. package/dist/tools/call-omo-agent/session-message-output-extractor.d.ts +0 -17
  564. package/dist/tools/call-omo-agent/subagent-session-prompter.d.ts +0 -11
  565. package/dist/tools/call-omo-agent/sync-agent-executor.d.ts +0 -4
  566. package/dist/tools/delegate-task/skill-content-resolver.d.ts +0 -9
  567. package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +0 -1
  568. package/dist/tools/look-at/session-poller.d.ts +0 -8
  569. /package/dist/features/{opencode-skill-loader/discover-worker.d.ts → background-agent/manager.bench.d.ts} +0 -0
  570. /package/dist/{tools/delegate-task/time-formatter.d.ts → shared/format-duration.d.ts} +0 -0
  571. /package/dist/tools/{call-omo-agent → delegate-agent}/completion-poller.d.ts +0 -0
  572. /package/dist/tools/{call-omo-agent → delegate-agent}/message-dir.d.ts +0 -0
  573. /package/dist/tools/{call-omo-agent → delegate-agent}/message-processor.d.ts +0 -0
  574. /package/dist/tools/{call-omo-agent → delegate-agent}/message-storage-directory.d.ts +0 -0
  575. /package/dist/tools/{call-omo-agent → delegate-agent}/tool-context-with-metadata.d.ts +0 -0
@@ -1,15 +1,14 @@
1
- export * from "./types";
1
+ export * from "./config-source-discovery";
2
+ export * from "./loaded-skill-from-path";
3
+ export * from "./loaded-skill-template-extractor";
2
4
  export * from "./loader";
3
5
  export * from "./merger";
4
6
  export * from "./skill-content";
5
- export * from "./skill-directory-loader";
6
- export * from "./loaded-skill-from-path";
7
- export * from "./skill-mcp-config";
8
7
  export * from "./skill-deduplication";
9
8
  export * from "./skill-definition-record";
10
- export * from "./git-master-template-injection";
9
+ export * from "./skill-directory-loader";
11
10
  export * from "./skill-discovery";
11
+ export * from "./skill-mcp-config";
12
12
  export * from "./skill-resolution-options";
13
- export * from "./loaded-skill-template-extractor";
14
13
  export * from "./skill-template-resolver";
15
- export * from "./config-source-discovery";
14
+ export * from "./types";
@@ -1,4 +1,4 @@
1
- import type { SkillScope, LoadedSkill } from "./types";
1
+ import type { LoadedSkill, SkillScope } from "./types";
2
2
  export declare function loadSkillFromPath(options: {
3
3
  skillPath: string;
4
4
  resolvedPath: string;
@@ -4,16 +4,16 @@ export declare function loadUserSkills(): Promise<Record<string, CommandDefiniti
4
4
  export declare function loadProjectSkills(directory?: string): Promise<Record<string, CommandDefinition>>;
5
5
  export declare function loadOpencodeGlobalSkills(): Promise<Record<string, CommandDefinition>>;
6
6
  export declare function loadOpencodeProjectSkills(directory?: string): Promise<Record<string, CommandDefinition>>;
7
- export interface DiscoverSkillsOptions {
7
+ interface DiscoverSkillsOptions {
8
8
  includeClaudeCodePaths?: boolean;
9
9
  directory?: string;
10
10
  }
11
11
  export declare function discoverAllSkills(directory?: string): Promise<LoadedSkill[]>;
12
12
  export declare function discoverSkills(options?: DiscoverSkillsOptions): Promise<LoadedSkill[]>;
13
- export declare function getSkillByName(name: string, options?: DiscoverSkillsOptions): Promise<LoadedSkill | undefined>;
14
13
  export declare function discoverUserClaudeSkills(): Promise<LoadedSkill[]>;
15
14
  export declare function discoverProjectClaudeSkills(directory?: string): Promise<LoadedSkill[]>;
16
15
  export declare function discoverOpencodeGlobalSkills(): Promise<LoadedSkill[]>;
17
16
  export declare function discoverOpencodeProjectSkills(directory?: string): Promise<LoadedSkill[]>;
18
17
  export declare function discoverProjectAgentsSkills(directory?: string): Promise<LoadedSkill[]>;
19
18
  export declare function discoverGlobalAgentsSkills(): Promise<LoadedSkill[]>;
19
+ export {};
@@ -1,3 +1,3 @@
1
- import type { LoadedSkill } from "../types";
2
1
  import type { SkillDefinition } from "../../../config/schema";
2
+ import type { LoadedSkill } from "../types";
3
3
  export declare function configEntryToLoadedSkill(name: string, entry: SkillDefinition, configDir?: string): LoadedSkill | null;
@@ -1,3 +1,3 @@
1
- import type { LoadedSkill } from "../types";
2
1
  import type { SkillDefinition } from "../../../config/schema";
2
+ import type { LoadedSkill } from "../types";
3
3
  export declare function mergeSkillDefinitions(base: LoadedSkill, patch: SkillDefinition): LoadedSkill;
@@ -1,4 +1,4 @@
1
- import type { SkillsConfig, SkillDefinition } from "../../../config/schema";
1
+ import type { SkillDefinition, SkillsConfig } from "../../../config/schema";
2
2
  export declare function normalizeSkillsConfig(config: SkillsConfig | undefined): {
3
3
  sources: Array<string | {
4
4
  path: string;
@@ -1,7 +1,8 @@
1
- import type { LoadedSkill } from "./types";
2
1
  import type { SkillsConfig } from "../../config/schema";
3
2
  import type { BuiltinSkill } from "../builtin-skills/types";
4
- export interface MergeSkillsOptions {
3
+ import type { LoadedSkill } from "./types";
4
+ interface MergeSkillsOptions {
5
5
  configDir?: string;
6
6
  }
7
7
  export declare function mergeSkills(builtinSkills: BuiltinSkill[], config: SkillsConfig | undefined, configSourceSkills: LoadedSkill[], userClaudeSkills: LoadedSkill[], userOpencodeSkills: LoadedSkill[], projectClaudeSkills: LoadedSkill[], projectOpencodeSkills: LoadedSkill[], options?: MergeSkillsOptions): LoadedSkill[];
8
+ export {};
@@ -1,5 +1,4 @@
1
- export type { SkillResolutionOptions } from "./skill-resolution-options";
2
- export { clearSkillCache, getAllSkills } from "./skill-discovery";
3
1
  export { extractSkillTemplate } from "./loaded-skill-template-extractor";
4
- export { injectGitMasterConfig } from "./git-master-template-injection";
5
- export { resolveSkillContent, resolveMultipleSkills, resolveSkillContentAsync, resolveMultipleSkillsAsync, } from "./skill-template-resolver";
2
+ export { clearSkillCache, getAllSkills } from "./skill-discovery";
3
+ export type { SkillResolutionOptions } from "./skill-resolution-options";
4
+ export { resolveMultipleSkills, resolveMultipleSkillsAsync, resolveSkillContent, resolveSkillContentAsync, } from "./skill-template-resolver";
@@ -1,4 +1,4 @@
1
- import type { LoadedSkill } from "./types";
2
1
  import type { SkillResolutionOptions } from "./skill-resolution-options";
2
+ import type { LoadedSkill } from "./types";
3
3
  export declare function clearSkillCache(): void;
4
4
  export declare function getAllSkills(options?: SkillResolutionOptions): Promise<LoadedSkill[]>;
@@ -1,6 +1,5 @@
1
- import type { BrowserAutomationProvider, GitMasterConfig } from "../../config/schema";
1
+ import type { BrowserAutomationProvider } from "../../config/schema";
2
2
  export interface SkillResolutionOptions {
3
- gitMasterConfig?: GitMasterConfig;
4
3
  browserProvider?: BrowserAutomationProvider;
5
4
  disabledSkills?: Set<string>;
6
5
  /** Project directory to discover project-level skills from. Falls back to process.cwd() if not provided. */
@@ -1,3 +1,3 @@
1
- export * from "./types";
2
1
  export * from "./constants";
3
2
  export * from "./storage";
3
+ export * from "./types";
@@ -1,6 +1,6 @@
1
1
  export type ContinuationMarkerSource = "todo" | "stop";
2
2
  export type ContinuationMarkerState = "idle" | "active" | "stopped";
3
- export interface ContinuationMarkerSourceEntry {
3
+ interface ContinuationMarkerSourceEntry {
4
4
  state: ContinuationMarkerState;
5
5
  reason?: string;
6
6
  updatedAt: string;
@@ -10,3 +10,4 @@ export interface ContinuationMarker {
10
10
  updatedAt: string;
11
11
  sources: Partial<Record<ContinuationMarkerSource, ContinuationMarkerSourceEntry>>;
12
12
  }
13
+ export {};
@@ -2,7 +2,6 @@ import type { SkillMcpManagerState } from "./types";
2
2
  export declare function registerProcessCleanup(state: SkillMcpManagerState): void;
3
3
  export declare function unregisterProcessCleanup(state: SkillMcpManagerState): void;
4
4
  export declare function startCleanupTimer(state: SkillMcpManagerState): void;
5
- export declare function stopCleanupTimer(state: SkillMcpManagerState): void;
6
5
  export declare function disconnectSession(state: SkillMcpManagerState, sessionID: string): Promise<void>;
7
6
  export declare function disconnectAll(state: SkillMcpManagerState): Promise<void>;
8
7
  export declare function forceReconnect(state: SkillMcpManagerState, clientKey: string): Promise<boolean>;
@@ -1,2 +1,2 @@
1
- export * from "./types";
2
1
  export { SkillMcpManager } from "./manager";
2
+ export * from "./types";
@@ -1,6 +1,5 @@
1
1
  import type { ClaudeCodeMcpServer } from "../claude-code-mcp-loader/types";
2
2
  import { McpOAuthProvider } from "../mcp-oauth/provider";
3
- export declare function getOrCreateAuthProvider(authProviders: Map<string, McpOAuthProvider>, serverUrl: string, oauth: NonNullable<ClaudeCodeMcpServer["oauth"]>): McpOAuthProvider;
4
3
  export declare function buildHttpRequestInit(config: ClaudeCodeMcpServer, authProviders: Map<string, McpOAuthProvider>): Promise<RequestInit | undefined>;
5
4
  export declare function handleStepUpIfNeeded(params: {
6
5
  error: Error;
@@ -19,22 +19,22 @@ export interface SkillMcpServerContext {
19
19
  * - "http": Remote server via HTTP (Streamable HTTP transport)
20
20
  */
21
21
  export type ConnectionType = "stdio" | "http";
22
- export interface ManagedClientBase {
22
+ interface ManagedClientBase {
23
23
  client: Client;
24
24
  skillName: string;
25
25
  lastUsedAt: number;
26
26
  connectionType: ConnectionType;
27
27
  }
28
- export interface ManagedStdioClient extends ManagedClientBase {
28
+ interface ManagedStdioClient extends ManagedClientBase {
29
29
  connectionType: "stdio";
30
30
  transport: StdioClientTransport;
31
31
  }
32
- export interface ManagedHttpClient extends ManagedClientBase {
32
+ interface ManagedHttpClient extends ManagedClientBase {
33
33
  connectionType: "http";
34
34
  transport: StreamableHTTPClientTransport;
35
35
  }
36
36
  export type ManagedClient = ManagedStdioClient | ManagedHttpClient;
37
- export interface ProcessCleanupHandler {
37
+ interface ProcessCleanupHandler {
38
38
  signal: NodeJS.Signals;
39
39
  listener: () => void;
40
40
  }
@@ -53,3 +53,4 @@ export interface SkillMcpClientConnectionParams {
53
53
  info: SkillMcpClientInfo;
54
54
  config: ClaudeCodeMcpServer;
55
55
  }
56
+ export {};
@@ -1,2 +1,2 @@
1
- export { TaskToastManager, getTaskToastManager, initTaskToastManager } from "./manager";
2
- export type { TrackedTask, TaskStatus, TaskToastOptions, ModelFallbackInfo } from "./types";
1
+ export { getTaskToastManager, initTaskToastManager, TaskToastManager } from "./manager";
2
+ export type { ModelFallbackInfo, TaskStatus, TaskToastOptions, TrackedTask } from "./types";
@@ -1,6 +1,6 @@
1
1
  import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { TrackedTask, TaskStatus, ModelFallbackInfo } from "./types";
3
2
  import type { ConcurrencyManager } from "../background-agent/concurrency";
3
+ import type { ModelFallbackInfo, TaskStatus, TrackedTask } from "./types";
4
4
  type OpencodeClient = PluginInput["client"];
5
5
  export declare class TaskToastManager {
6
6
  private tasks;
@@ -1,7 +1,7 @@
1
- import type { PaneAction } from "./types";
2
1
  import type { ActionResult, ExecuteContext } from "./action-executor-core";
2
+ import type { PaneAction } from "./types";
3
3
  export type { ActionExecutorDeps, ActionResult, ExecuteContext } from "./action-executor-core";
4
- export interface ExecuteActionsResult {
4
+ interface ExecuteActionsResult {
5
5
  success: boolean;
6
6
  spawnedPaneId?: string;
7
7
  results: Array<{
@@ -1,9 +1 @@
1
- import type { TmuxConfig } from "../../config/schema";
2
- import type { TrackedSession } from "./types";
3
- export declare function cleanupTmuxSessions(params: {
4
- tmuxConfig: TmuxConfig;
5
- serverUrl: string;
6
- sourcePaneId: string | undefined;
7
- sessions: Map<string, TrackedSession>;
8
- stopPolling: () => void;
9
- }): Promise<void>;
1
+ export {};
@@ -1,7 +1,7 @@
1
- export type { SessionMapping } from "./oldest-agent-pane";
2
1
  export type { GridCapacity, GridPlan, GridSlot } from "./grid-planning";
3
- export type { SpawnTarget } from "./spawn-target-finder";
4
2
  export { calculateCapacity, computeGridPlan, mapPaneToSlot, } from "./grid-planning";
3
+ export type { SessionMapping } from "./oldest-agent-pane";
5
4
  export { canSplitPane, canSplitPaneAnyDirection, findMinimalEvictions, getBestSplitDirection, getColumnCount, getColumnWidth, isSplittableAtCount, } from "./pane-split-availability";
6
- export { findSpawnTarget } from "./spawn-target-finder";
7
5
  export { decideCloseAction, decideSpawnActions } from "./spawn-action-decider";
6
+ export type { SpawnTarget } from "./spawn-target-finder";
7
+ export { findSpawnTarget } from "./spawn-target-finder";
@@ -1,6 +1,6 @@
1
- export { coerceSessionCreatedEvent } from "./session-created-event";
2
1
  export type { SessionCreatedEvent } from "./session-created-event";
3
- export { handleSessionCreated } from "./session-created-handler";
2
+ export { coerceSessionCreatedEvent } from "./session-created-event";
4
3
  export type { SessionCreatedHandlerDeps } from "./session-created-handler";
5
- export { handleSessionDeleted } from "./session-deleted-handler";
4
+ export { handleSessionCreated } from "./session-created-handler";
6
5
  export type { SessionDeletedHandlerDeps } from "./session-deleted-handler";
6
+ export { handleSessionDeleted } from "./session-deleted-handler";
@@ -1,15 +1,14 @@
1
- export * from "./manager";
1
+ export * from "./action-executor";
2
+ export * from "./cleanup";
3
+ export * from "./decision-engine";
2
4
  export * from "./event-handlers";
5
+ export * from "./manager";
6
+ export * from "./pane-state-querier";
3
7
  export * from "./polling";
4
- export * from "./cleanup";
8
+ export * from "./polling-constants";
5
9
  export * from "./session-created-event";
6
10
  export * from "./session-created-handler";
7
11
  export * from "./session-deleted-handler";
8
- export * from "./polling-constants";
9
- export * from "./session-status-parser";
10
- export * from "./session-message-count";
11
12
  export * from "./session-ready-waiter";
13
+ export * from "./session-status-parser";
12
14
  export * from "./types";
13
- export * from "./pane-state-querier";
14
- export * from "./decision-engine";
15
- export * from "./action-executor";
@@ -10,7 +10,7 @@ interface SessionCreatedEvent {
10
10
  };
11
11
  };
12
12
  }
13
- export interface TmuxUtilDeps {
13
+ interface TmuxUtilDeps {
14
14
  isInsideTmux: () => boolean;
15
15
  getCurrentPaneId: () => string | undefined;
16
16
  }
@@ -1,19 +1 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { TmuxConfig } from "../../config/schema";
3
- import type { TrackedSession } from "./types";
4
- type OpencodeClient = PluginInput["client"];
5
- export interface SessionPollingController {
6
- startPolling: () => void;
7
- stopPolling: () => void;
8
- closeSessionById: (sessionId: string) => Promise<void>;
9
- waitForSessionReady: (sessionId: string) => Promise<boolean>;
10
- pollSessions: () => Promise<void>;
11
- }
12
- export declare function createSessionPollingController(params: {
13
- client: OpencodeClient;
14
- tmuxConfig: TmuxConfig;
15
- serverUrl: string;
16
- sourcePaneId: string | undefined;
17
- sessions: Map<string, TrackedSession>;
18
- }): SessionPollingController;
19
1
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { PluginInput } from "@opencode-ai/plugin";
2
2
  import type { TmuxConfig } from "../../config/schema";
3
- import type { CapacityConfig, TrackedSession } from "./types";
4
3
  import { type SessionMapping } from "./decision-engine";
5
4
  import type { SessionCreatedEvent } from "./session-created-event";
5
+ import type { CapacityConfig, TrackedSession } from "./types";
6
6
  type OpencodeClient = PluginInput["client"];
7
7
  export interface SessionCreatedHandlerDeps {
8
8
  client: OpencodeClient;
@@ -1,6 +1,6 @@
1
1
  import type { TmuxConfig } from "../../config/schema";
2
- import type { TrackedSession } from "./types";
3
2
  import { type SessionMapping } from "./decision-engine";
3
+ import type { TrackedSession } from "./types";
4
4
  export interface SessionDeletedHandlerDeps {
5
5
  tmuxConfig: TmuxConfig;
6
6
  serverUrl: string;
@@ -1,4 +1,4 @@
1
- import type { CapacityConfig, PaneAction, SpawnDecision, WindowState } from "./types";
2
1
  import { type SessionMapping } from "./oldest-agent-pane";
2
+ import type { CapacityConfig, PaneAction, SpawnDecision, WindowState } from "./types";
3
3
  export declare function decideSpawnActions(state: WindowState, sessionId: string, description: string, config: CapacityConfig, sessionMappings: SessionMapping[]): SpawnDecision;
4
4
  export declare function decideCloseAction(state: WindowState, sessionId: string, sessionMappings: SessionMapping[]): PaneAction | null;
@@ -1,2 +1,2 @@
1
- export { clearPendingStore, consumeToolMetadata, getPendingStoreSize, storeToolMetadata, } from "./store";
2
1
  export type { PendingToolMetadata } from "./store";
2
+ export { clearPendingStore, consumeToolMetadata, getPendingStoreSize, storeToolMetadata, } from "./store";
@@ -1,5 +1,5 @@
1
- import type { AutoCompactState } from "./types";
2
1
  import type { Client } from "./client";
2
+ import type { AutoCompactState } from "./types";
3
3
  export declare function runAggressiveTruncationStrategy(params: {
4
4
  sessionID: string;
5
5
  autoCompactState: AutoCompactState;
@@ -1,5 +1,5 @@
1
- import type { AutoCompactState } from "./types";
2
1
  import type { Client } from "./client";
2
+ import type { AutoCompactState } from "./types";
3
3
  export declare function fixEmptyMessages(params: {
4
4
  sessionID: string;
5
5
  autoCompactState: AutoCompactState;
@@ -1,4 +1,5 @@
1
- import type { AutoCompactState } from "./types";
1
+ import type { PluginInput } from "@opencode-ai/plugin";
2
2
  import type { ExperimentalConfig } from "../../config";
3
+ import type { AutoCompactState } from "./types";
3
4
  export { getLastAssistant } from "./message-builder";
4
- export declare function executeCompact(sessionID: string, msg: Record<string, unknown>, autoCompactState: AutoCompactState, client: any, directory: string, experimental?: ExperimentalConfig): Promise<void>;
5
+ export declare function executeCompact(sessionID: string, msg: Record<string, unknown>, autoCompactState: AutoCompactState, client: PluginInput["client"], directory: string, experimental?: ExperimentalConfig): Promise<void>;
@@ -1,8 +1,8 @@
1
- export { createAnthropicContextWindowLimitRecoveryHook } from "./recovery-hook";
2
- export type { AnthropicContextWindowLimitRecoveryOptions } from "./recovery-hook";
3
- export type { AutoCompactState, ParsedTokenLimitError, TruncateState } from "./types";
4
- export { parseAnthropicTokenLimitError } from "./parser";
5
1
  export { executeCompact, getLastAssistant } from "./executor";
6
- export * from "./state";
7
2
  export * from "./message-builder";
3
+ export { parseAnthropicTokenLimitError } from "./parser";
4
+ export type { AnthropicContextWindowLimitRecoveryOptions } from "./recovery-hook";
5
+ export { createAnthropicContextWindowLimitRecoveryHook } from "./recovery-hook";
8
6
  export * from "./recovery-strategy";
7
+ export * from "./state";
8
+ export type { AutoCompactState, ParsedTokenLimitError, TruncateState } from "./types";
@@ -3,5 +3,5 @@ export declare const PLACEHOLDER_TEXT = "[user interrupted]";
3
3
  type OpencodeClient = PluginInput["client"];
4
4
  export declare function sanitizeEmptyMessagesBeforeSummarize(sessionID: string, client?: OpencodeClient): Promise<number>;
5
5
  export declare function formatBytes(bytes: number): string;
6
- export declare function getLastAssistant(sessionID: string, client: any, directory: string): Promise<Record<string, unknown> | null>;
6
+ export declare function getLastAssistant(sessionID: string, client: OpencodeClient, directory: string): Promise<Record<string, unknown> | null>;
7
7
  export {};
@@ -1,6 +1,3 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
1
  import { getMessageDir } from "../../shared/opencode-message-dir";
3
2
  export { getMessageDir };
4
- type OpencodeClient = PluginInput["client"];
5
- export declare function getMessageIdsFromSDK(client: OpencodeClient, sessionID: string): Promise<string[]>;
6
3
  export declare function getMessageIds(sessionID: string): string[];
@@ -1,4 +1,4 @@
1
+ export { truncateUntilTargetTokens } from "./target-token-truncation";
1
2
  export type { AggressiveTruncateResult, ToolResultInfo } from "./tool-part-types";
2
3
  export { countTruncatedResults, findLargestToolResult, findToolResultsBySize, getTotalToolOutputSize, truncateToolResult, } from "./tool-result-storage";
3
4
  export { countTruncatedResultsFromSDK, findToolResultsBySizeFromSDK, getTotalToolOutputSizeFromSDK, truncateToolResultAsync, } from "./tool-result-storage-sdk";
4
- export { truncateUntilTargetTokens } from "./target-token-truncation";
@@ -1,5 +1,5 @@
1
- import type { AutoCompactState } from "./types";
2
1
  import type { Client } from "./client";
2
+ import type { AutoCompactState } from "./types";
3
3
  export declare function runSummarizeRetryStrategy(params: {
4
4
  sessionID: string;
5
5
  msg: Record<string, unknown>;
@@ -1,3 +1,3 @@
1
- export { HOOK_NAME } from "./hook-name";
2
1
  export { createAtlasHook } from "./atlas-hook";
2
+ export { HOOK_NAME } from "./hook-name";
3
3
  export type { AtlasHookOptions } from "./types";
@@ -3,9 +3,10 @@ import type { ParsedSlashCommand } from "./types";
3
3
  export interface ExecutorOptions {
4
4
  skills?: LoadedSkill[];
5
5
  }
6
- export interface ExecuteResult {
6
+ interface ExecuteResult {
7
7
  success: boolean;
8
8
  replacementText?: string;
9
9
  error?: string;
10
10
  }
11
11
  export declare function executeSlashCommand(parsed: ParsedSlashCommand, options?: ExecutorOptions): Promise<ExecuteResult>;
12
+ export {};
@@ -1,5 +1,5 @@
1
- import type { AutoSlashCommandHookInput, AutoSlashCommandHookOutput, CommandExecuteBeforeInput, CommandExecuteBeforeOutput } from "./types";
2
1
  import type { LoadedSkill } from "../../features/opencode-skill-loader";
2
+ import type { AutoSlashCommandHookInput, AutoSlashCommandHookOutput, CommandExecuteBeforeInput, CommandExecuteBeforeOutput } from "./types";
3
3
  export interface AutoSlashCommandHookOptions {
4
4
  skills?: LoadedSkill[];
5
5
  }
@@ -1,6 +1,6 @@
1
+ export * from "./constants";
1
2
  export * from "./detector";
2
3
  export * from "./executor";
3
- export * from "./constants";
4
- export * from "./types";
5
- export { createAutoSlashCommandHook } from "./hook";
6
4
  export type { AutoSlashCommandHookOptions } from "./hook";
5
+ export { createAutoSlashCommandHook } from "./hook";
6
+ export * from "./types";
@@ -20,11 +20,6 @@ export interface ParsedSlashCommand {
20
20
  args: string;
21
21
  raw: string;
22
22
  }
23
- export interface AutoSlashCommandResult {
24
- detected: boolean;
25
- parsedCommand?: ParsedSlashCommand;
26
- injectedMessage?: string;
27
- }
28
23
  export interface CommandExecuteBeforeInput {
29
24
  command: string;
30
25
  sessionID: string;
@@ -1,8 +1,8 @@
1
- export { isLocalDevMode, getLocalDevPath } from "./checker/local-dev-path";
2
- export { getLocalDevVersion } from "./checker/local-dev-version";
3
- export { findPluginEntry } from "./checker/plugin-entry";
4
- export type { PluginEntryInfo } from "./checker/plugin-entry";
5
1
  export { getCachedVersion } from "./checker/cached-version";
6
- export { updatePinnedVersion, revertPinnedVersion } from "./checker/pinned-version-updater";
7
- export { getLatestVersion } from "./checker/latest-version";
8
2
  export { checkForUpdate } from "./checker/check-for-update";
3
+ export { getLatestVersion } from "./checker/latest-version";
4
+ export { getLocalDevPath, isLocalDevMode } from "./checker/local-dev-path";
5
+ export { getLocalDevVersion } from "./checker/local-dev-version";
6
+ export { revertPinnedVersion, updatePinnedVersion } from "./checker/pinned-version-updater";
7
+ export type { PluginEntryInfo } from "./checker/plugin-entry";
8
+ export { findPluginEntry } from "./checker/plugin-entry";
@@ -2,8 +2,6 @@ export declare const PACKAGE_NAME = "opencode-matrixx";
2
2
  export declare const LEGACY_PACKAGE_NAME = "matrixx";
3
3
  export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/opencode-matrixx/dist-tags";
4
4
  export declare const NPM_FETCH_TIMEOUT = 5000;
5
- export declare const CACHE_DIR: string;
6
- export declare const VERSION_FILE: string;
7
5
  export declare function getWindowsAppdataDir(): string | null;
8
6
  export declare const USER_CONFIG_DIR: string;
9
7
  export declare const USER_OPENCODE_CONFIG: string;
@@ -1,5 +1,5 @@
1
- export { createAutoUpdateCheckerHook } from "./hook";
2
- export { isPrereleaseVersion, isDistTag, isPrereleaseOrDistTag, extractChannel, } from "./version-channel";
1
+ export { invalidateCache, invalidatePackage } from "./cache";
3
2
  export { checkForUpdate } from "./checker";
4
- export { invalidatePackage, invalidateCache } from "./cache";
5
- export type { UpdateCheckResult, AutoUpdateCheckerOptions } from "./types";
3
+ export { createAutoUpdateCheckerHook } from "./hook";
4
+ export type { AutoUpdateCheckerOptions, UpdateCheckResult } from "./types";
5
+ export { extractChannel, isDistTag, isPrereleaseOrDistTag, isPrereleaseVersion, } from "./version-channel";
@@ -8,7 +8,7 @@ export declare function processWithCli(input: {
8
8
  }, pendingCall: PendingCall, output: {
9
9
  output: string;
10
10
  }, cliPath: string, customPrompt: string | undefined, debugLog: (...args: unknown[]) => void): Promise<void>;
11
- export interface ApplyPatchEdit {
11
+ interface ApplyPatchEdit {
12
12
  filePath: string;
13
13
  before: string;
14
14
  after: string;
@@ -17,3 +17,4 @@ export declare function processApplyPatchEditsWithCli(sessionID: string, edits:
17
17
  output: string;
18
18
  }, cliPath: string, customPrompt: string | undefined, debugLog: (...args: unknown[]) => void): Promise<void>;
19
19
  export declare function isCliPathUsable(cliPath: string | null): cliPath is string;
20
+ export {};
@@ -12,11 +12,6 @@ export declare function getBinaryName(): string;
12
12
  * Get the cached binary path if it exists.
13
13
  */
14
14
  export declare function getCachedBinaryPath(): string | null;
15
- /**
16
- * Download the comment-checker binary from GitHub Releases.
17
- * Returns the path to the downloaded binary, or null on failure.
18
- */
19
- export declare function downloadCommentChecker(): Promise<string | null>;
20
15
  /**
21
16
  * Ensure the comment-checker binary is available.
22
17
  * First checks cache, then downloads if needed.
@@ -1,12 +1,3 @@
1
- export type CommentType = "line" | "block" | "docstring";
2
- export interface CommentInfo {
3
- text: string;
4
- lineNumber: number;
5
- filePath: string;
6
- commentType: CommentType;
7
- isDocstring: boolean;
8
- metadata?: Record<string, string>;
9
- }
10
1
  export interface PendingCall {
11
2
  filePath: string;
12
3
  content?: string;
@@ -20,12 +11,3 @@ export interface PendingCall {
20
11
  sessionID: string;
21
12
  timestamp: number;
22
13
  }
23
- export interface FileComments {
24
- filePath: string;
25
- comments: CommentInfo[];
26
- }
27
- export interface FilterResult {
28
- shouldSkip: boolean;
29
- reason?: string;
30
- }
31
- export type CommentFilter = (comment: CommentInfo) => FilterResult;
@@ -1,4 +1,4 @@
1
- export type { DelegateTaskErrorPattern, DetectedError } from "./patterns";
2
- export { DELEGATE_TASK_ERROR_PATTERNS, detectDelegateTaskError } from "./patterns";
3
1
  export { buildRetryGuidance } from "./guidance";
4
2
  export { createDelegateTaskRetryHook } from "./hook";
3
+ export type { DelegateTaskErrorPattern, DetectedError } from "./patterns";
4
+ export { DELEGATE_TASK_ERROR_PATTERNS, detectDelegateTaskError } from "./patterns";
@@ -0,0 +1,6 @@
1
+ export declare const HOOK_NAME = "design-intent-preserver";
2
+ export declare const PLANS_DIR = ".matrixx/plans";
3
+ export declare const PHASE_TRANSITION_PATTERN: RegExp;
4
+ export declare const CONSTRUCT_INDICATORS: RegExp;
5
+ export declare const IDEMPOTENCY_MARKER = "<design-intent-preservation>";
6
+ export declare const INTENT_PRESERVATION_BLOCK = "<design-intent-preservation>\nThe previous phase included @construct / @web-designer / @frontend-ui-ux work. Visual decisions are FROZEN:\n- Layout, rhythm, hierarchy, motion, spacing, color\n- Affordances, responsiveness, component feel\nRoute ANY visual / responsive / motion / polish changes back to @construct or @web-designer.\nUse @source only for bounded mechanical follow-up that preserves design exactly\n(wiring, tests, type fixes, non-visual behavior).\nIf design intent must change, record why in .matrixx/drafts/design-changes.md first.\n</design-intent-preservation>";
@@ -0,0 +1,19 @@
1
+ import type { PluginInput } from "@opencode-ai/plugin";
2
+ import { type MessagePart } from "./phase-detector";
3
+ type ChatMessageInput = {
4
+ sessionID: string;
5
+ agent?: string;
6
+ model?: {
7
+ providerID: string;
8
+ modelID: string;
9
+ };
10
+ messageID?: string;
11
+ };
12
+ type ChatMessageOutput = {
13
+ message: Record<string, unknown>;
14
+ parts: MessagePart[];
15
+ };
16
+ export declare function createDesignIntentPreserverHook(_ctx: PluginInput): {
17
+ "chat.message": (input: ChatMessageInput, output: ChatMessageOutput) => Promise<void>;
18
+ };
19
+ export {};
@@ -0,0 +1 @@
1
+ export { createDesignIntentPreserverHook } from "./hook";
@@ -0,0 +1,8 @@
1
+ export type MessagePart = {
2
+ type: string;
3
+ text?: string;
4
+ };
5
+ export declare function extractPromptText(parts: MessagePart[]): string;
6
+ export declare function hasPhaseTransition(text: string): boolean;
7
+ export declare function findMostRecentPlanFile(plansDir: string): string | null;
8
+ export declare function planHasConstruct(filePath: string): boolean;
@@ -2,4 +2,4 @@ export declare function resolveFilePath(rootDirectory: string, path: string): st
2
2
  export declare function findAgentsMdUp(input: {
3
3
  startDir: string;
4
4
  rootDir: string;
5
- }): string[];
5
+ }): Promise<string[]>;