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,5 +1,5 @@
1
- import type { ToolContextWithMetadata, OpencodeClient } from "./types";
2
1
  import type { SessionMessage } from "./executor-types";
2
+ import type { OpencodeClient, ToolContextWithMetadata } from "./types";
3
3
  export declare function isSessionComplete(messages: SessionMessage[]): boolean;
4
4
  export declare function hasToolResultAfterAssistant(messages: SessionMessage[]): boolean;
5
5
  export declare function hasAssistantContent(messages: SessionMessage[]): boolean;
@@ -11,4 +11,8 @@ export declare function pollSyncSession(ctx: ToolContextWithMetadata, client: Op
11
11
  } | null | undefined;
12
12
  taskId: string | undefined;
13
13
  anchorMessageCount?: number;
14
+ /** Callback: does the parent session still have running background children? */
15
+ hasActiveChildBackgroundTasks?: () => boolean;
16
+ /** Callback: is there a pending parent-wake notification in flight? */
17
+ hasPendingParentWake?: () => boolean;
14
18
  }): Promise<string | null>;
@@ -1,7 +1,7 @@
1
- import { createSyncSession } from "./sync-session-creator";
2
1
  import { sendSyncPrompt } from "./sync-prompt-sender";
3
- import { pollSyncSession } from "./sync-session-poller";
4
2
  import { fetchSyncResult } from "./sync-result-fetcher";
3
+ import { createSyncSession } from "./sync-session-creator";
4
+ import { pollSyncSession } from "./sync-session-poller";
5
5
  export declare const syncTaskDeps: {
6
6
  createSyncSession: typeof createSyncSession;
7
7
  sendSyncPrompt: typeof sendSyncPrompt;
@@ -1,9 +1,10 @@
1
1
  import type { ModelFallbackInfo } from "../../features/task-toast-manager/types";
2
- import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
3
2
  import type { ExecutorContext, ParentContext } from "./executor-types";
4
3
  import { type SyncTaskDeps } from "./sync-task-deps";
4
+ import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
5
5
  export declare function executeSyncTask(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext, agentToUse: string, categoryModel: {
6
6
  providerID: string;
7
7
  modelID: string;
8
8
  variant?: string;
9
+ temperature?: number;
9
10
  } | undefined, systemContent: string | undefined, modelInfo?: ModelFallbackInfo, deps?: SyncTaskDeps): Promise<string>;
@@ -1,6 +1,6 @@
1
1
  import { type ToolDefinition } from "@opencode-ai/plugin";
2
2
  import type { DelegateTaskToolOptions } from "./types";
3
3
  export { resolveCategoryConfig } from "./categories";
4
- export type { SyncSessionCreatedEvent, DelegateTaskToolOptions, BuildSystemContentInput } from "./types";
5
4
  export { buildSystemContent } from "./prompt-builder";
5
+ export type { BuildSystemContentInput, DelegateTaskToolOptions, SyncSessionCreatedEvent } from "./types";
6
6
  export declare function createDelegateTask(options: DelegateTaskToolOptions): ToolDefinition;
@@ -1,7 +1,7 @@
1
1
  import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { BackgroundManager } from "../../features/background-agent";
3
- import type { CategoriesConfig, GitMasterConfig, BrowserAutomationProvider, AgentOverrides } from "../../config/schema";
4
2
  import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
3
+ import type { AgentOverrides, BrowserAutomationProvider, CategoriesConfig } from "../../config/schema";
4
+ import type { BackgroundManager } from "../../features/background-agent";
5
5
  export type OpencodeClient = PluginInput["client"];
6
6
  export interface DelegateTaskArgs {
7
7
  description: string;
@@ -55,7 +55,6 @@ export interface DelegateTaskToolOptions {
55
55
  */
56
56
  availableModelsOverride?: Set<string>;
57
57
  userCategories?: CategoriesConfig;
58
- gitMasterConfig?: GitMasterConfig;
59
58
  sisyphusJuniorModel?: string;
60
59
  browserProvider?: BrowserAutomationProvider;
61
60
  disabledSkills?: Set<string>;
@@ -1,7 +1,8 @@
1
- import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
2
1
  import type { ExecutorContext, ParentContext } from "./executor-types";
2
+ import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
3
3
  export declare function executeUnstableAgentTask(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext, agentToUse: string, categoryModel: {
4
4
  providerID: string;
5
5
  modelID: string;
6
6
  variant?: string;
7
+ temperature?: number;
7
8
  } | undefined, systemContent: string | undefined, actualModel: string | undefined): Promise<string>;
@@ -7,5 +7,5 @@ export interface ResolvedCli {
7
7
  declare function buildRgArgs(options: GlobOptions): string[];
8
8
  declare function buildFindArgs(options: GlobOptions): string[];
9
9
  declare function buildPowerShellCommand(options: GlobOptions): string[];
10
- export { buildRgArgs, buildFindArgs, buildPowerShellCommand };
10
+ export { buildFindArgs, buildPowerShellCommand, buildRgArgs };
11
11
  export declare function runRgFiles(options: GlobOptions, resolvedCli?: ResolvedCli): Promise<GlobResult>;
@@ -1,4 +1,4 @@
1
- export { resolveGrepCli, resolveGrepCliWithAutoInstall, type GrepBackend } from "../grep/constants";
1
+ export { type GrepBackend, resolveGrepCli, resolveGrepCliWithAutoInstall } from "../grep/constants";
2
2
  export declare const DEFAULT_TIMEOUT_MS = 60000;
3
3
  export declare const DEFAULT_LIMIT = 100;
4
4
  export declare const DEFAULT_MAX_DEPTH = 20;
@@ -1,3 +1,2 @@
1
- import type { GrepOptions, GrepResult, CountResult } from "./types";
1
+ import type { GrepOptions, GrepResult } from "./types";
2
2
  export declare function runRg(options: GrepOptions): Promise<GrepResult>;
3
- export declare function runRgCount(options: Omit<GrepOptions, "context">): Promise<CountResult[]>;
@@ -9,7 +9,6 @@ export declare const DEFAULT_MAX_DEPTH = 20;
9
9
  export declare const DEFAULT_MAX_FILESIZE = "10M";
10
10
  export declare const DEFAULT_MAX_COUNT = 500;
11
11
  export declare const DEFAULT_MAX_COLUMNS = 1000;
12
- export declare const DEFAULT_CONTEXT = 2;
13
12
  export declare const DEFAULT_TIMEOUT_MS = 300000;
14
13
  export declare const DEFAULT_MAX_OUTPUT_BYTES: number;
15
14
  export declare const RG_SAFETY_FLAGS: readonly ["--no-follow", "--color=never", "--no-heading", "--line-number", "--with-filename"];
@@ -1,3 +1,2 @@
1
- import type { GrepResult, CountResult } from "./types";
1
+ import type { GrepResult } from "./types";
2
2
  export declare function formatGrepResult(result: GrepResult): string;
3
- export declare function formatCountResult(results: CountResult[]): string;
@@ -30,7 +30,3 @@ export interface GrepOptions {
30
30
  fileType?: string[];
31
31
  timeout?: number;
32
32
  }
33
- export interface CountResult {
34
- file: string;
35
- count: number;
36
- }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * `handoff` tool — `action: "archive"` handler.
3
+ *
4
+ * Renames the active `.matrixx/handoff.md` to `.matrixx/handoff.consumed.md`.
5
+ * Returns a clear `Error:` string if there is no active handoff to archive
6
+ * (idempotent semantics: archiving nothing is an error so the caller knows
7
+ * nothing happened, not a silent no-op).
8
+ */
9
+ export declare function handleArchive(directory: string): string;
@@ -0,0 +1,9 @@
1
+ import type { HandoffSection } from "../../features/handoff";
2
+ /**
3
+ * Build the human-readable markdown body that follows the YAML frontmatter.
4
+ *
5
+ * Mirrors the format from `src/features/builtin-commands/templates/handoff.ts`
6
+ * (the canonical /handoff command template). Sections are emitted only when
7
+ * they have content, so a minimal handoff stays minimal.
8
+ */
9
+ export declare function buildHandoffBody(sections: HandoffSection): string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * handoff tool — description string and shared constants.
3
+ *
4
+ * The tool description is referenced by the tool factory and included in the
5
+ * LLM-facing tool schema, so keep it factual, concise, and triggerable.
6
+ */
7
+ /** Tool description — covers all four supported actions. */
8
+ export declare const HANDOFF_DESCRIPTION = "Multi-action handoff tool backed by .matrixx/handoff.md. Actions: 'create' (write a structured handoff with YAML frontmatter and a markdown body), 'read' (load the current handoff content for context pickup), 'archive' (rename the active handoff to handoff.consumed.md to mark it as consumed), 'list' (show all handoff files in .matrixx/). Use this tool when the current session needs to preserve state for a future session, or when a fresh session is resuming work from a prior handoff.";
9
+ /** Maximum bytes tolerated from a single git stdout read before we abort. */
10
+ export declare const MAX_GIT_OUTPUT_BYTES = 4096;
11
+ /** Hard timeout for any single `git` invocation, in milliseconds. */
12
+ export declare const GIT_COMMAND_TIMEOUT_MS = 5000;
13
+ /** Sentinel used when we cannot resolve git metadata for the working dir. */
14
+ export declare const UNKNOWN_GIT_SHA = "unknown";
15
+ /** Canonical list of supported actions (kept in sync with the zod enum). */
16
+ export declare const HANDOFF_ACTIONS: readonly ["create", "read", "list", "archive"];
17
+ export type HandoffAction = (typeof HANDOFF_ACTIONS)[number];
@@ -0,0 +1,34 @@
1
+ import type { ToolContext } from "@opencode-ai/plugin/tool";
2
+ /**
3
+ * Args expected for the `create` action. Mirrors the documented handoff
4
+ * sections. All `optional()` fields are passed through to the schema as-is.
5
+ */
6
+ export type HandoffCreateArgs = {
7
+ topics: string[];
8
+ user_requests: string;
9
+ goal: string;
10
+ work_completed: string[];
11
+ current_state: string;
12
+ pending_tasks?: string[];
13
+ key_files?: {
14
+ path: string;
15
+ purpose: string;
16
+ }[];
17
+ important_decisions?: {
18
+ decision: string;
19
+ rationale: string;
20
+ }[];
21
+ explicit_constraints?: string[];
22
+ context_for_continuation?: string;
23
+ };
24
+ /**
25
+ * `handoff` tool — `action: "create"` handler.
26
+ *
27
+ * Builds a structured handoff document (validated YAML frontmatter +
28
+ * human-readable markdown body) and writes it to `.matrixx/handoff.md`.
29
+ * Returns a `Error:` string if the inputs fail schema validation OR if the
30
+ * underlying I/O write fails.
31
+ */
32
+ export declare function handleCreate(args: HandoffCreateArgs, ctx: {
33
+ directory: string;
34
+ }, context: ToolContext): Promise<string>;
@@ -0,0 +1,12 @@
1
+ import type { GitHead } from "../../features/handoff";
2
+ /**
3
+ * Resolve the current git HEAD for `directory`.
4
+ *
5
+ * Returns a `GitHead` (`{ sha, branch?, detached? }`) when `directory` is
6
+ * inside a working git repo, or `null` otherwise. Never throws.
7
+ *
8
+ * - `sha` always populated (HEAD's commit sha)
9
+ * - `branch` populated when HEAD points at a local branch
10
+ * - `detached: true` when HEAD points directly at a commit
11
+ */
12
+ export declare function getGitHead(directory: string): Promise<GitHead | null>;
@@ -0,0 +1,3 @@
1
+ export { HANDOFF_DESCRIPTION } from "./constants";
2
+ export { getGitHead } from "./git";
3
+ export { createHandoffTools } from "./tools";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * `handoff` tool — `action: "list"` handler.
3
+ *
4
+ * Returns a human-readable summary of every handoff-shaped file inside
5
+ * `.matrixx/`. If the directory or any matching files are missing, returns
6
+ * the documented empty-state string.
7
+ */
8
+ export declare function handleList(directory: string): string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * `handoff` tool — `action: "read"` handler.
3
+ *
4
+ * Loads `.matrixx/handoff.md` and returns its full content (YAML frontmatter
5
+ * + markdown body) so the LLM can apply it as context for the new session.
6
+ * Returns a clear `Error:` string if no active handoff exists.
7
+ */
8
+ export declare function handleRead(directory: string): string;
@@ -0,0 +1,11 @@
1
+ import type { PluginInput } from "@opencode-ai/plugin";
2
+ import { type ToolDefinition } from "@opencode-ai/plugin/tool";
3
+ /**
4
+ * `handoff` tool factory.
5
+ *
6
+ * Exposes a single `handoff` tool that the LLM dispatches via its `action`
7
+ * argument. Action handlers are split out into sibling files
8
+ * (`create-handler`, `read-handler`, `archive-handler`, `list-handler`) so
9
+ * this dispatcher stays small and each handler can evolve independently.
10
+ */
11
+ export declare function createHandoffTools(ctx: PluginInput): Record<string, ToolDefinition>;
@@ -1,6 +1 @@
1
- export declare function stripTrailingContinuationTokens(text: string): string;
2
- export declare function stripMergeOperatorChars(text: string): string;
3
- export declare function restoreOldWrappedLines(originalLines: string[], replacementLines: string[]): string[];
4
- export declare function maybeExpandSingleLineMerge(originalLines: string[], replacementLines: string[]): string[];
5
- export declare function restoreIndentForPairedReplacement(originalLines: string[], replacementLines: string[]): string[];
6
1
  export declare function autocorrectReplacementLines(originalLines: string[], replacementLines: string[]): string[];
@@ -1,8 +1,9 @@
1
1
  import type { HashlineEdit } from "./types";
2
- export interface HashlineApplyReport {
2
+ interface HashlineApplyReport {
3
3
  content: string;
4
4
  noopEdits: number;
5
5
  deduplicatedEdits: number;
6
6
  }
7
7
  export declare function applyHashlineEditsWithReport(content: string, edits: HashlineEdit[]): HashlineApplyReport;
8
8
  export declare function applyHashlineEdits(content: string, edits: HashlineEdit[]): string;
9
+ export {};
@@ -1,7 +1,5 @@
1
- export declare function stripLinePrefixes(lines: string[]): string[];
2
1
  export declare function toNewLines(input: string | string[]): string[];
3
2
  export declare function restoreLeadingIndent(templateLine: string, line: string): string;
4
3
  export declare function stripInsertAnchorEcho(anchorLine: string, newLines: string[]): string[];
5
4
  export declare function stripInsertBeforeEcho(anchorLine: string, newLines: string[]): string[];
6
- export declare function stripInsertBoundaryEcho(afterLine: string, beforeLine: string, newLines: string[]): string[];
7
5
  export declare function stripRangeBoundaryEcho(lines: string[], startLine: number, endLine: number, newLines: string[]): string[];
@@ -1,7 +1,8 @@
1
- export interface FileTextEnvelope {
1
+ interface FileTextEnvelope {
2
2
  content: string;
3
3
  hadBom: boolean;
4
4
  lineEnding: "\n" | "\r\n";
5
5
  }
6
6
  export declare function canonicalizeFileText(content: string): FileTextEnvelope;
7
7
  export declare function restoreFileText(content: string, envelope: FileTextEnvelope): string;
8
+ export {};
@@ -2,10 +2,11 @@ export declare function computeLineHash(lineNumber: number, content: string): st
2
2
  export declare function computeLegacyLineHash(lineNumber: number, content: string): string;
3
3
  export declare function formatHashLine(lineNumber: number, content: string): string;
4
4
  export declare function formatHashLines(content: string): string;
5
- export interface HashlineStreamOptions {
5
+ interface HashlineStreamOptions {
6
6
  startLine?: number;
7
7
  maxChunkLines?: number;
8
8
  maxChunkBytes?: number;
9
9
  }
10
10
  export declare function streamHashLinesFromUtf8(source: ReadableStream<Uint8Array> | AsyncIterable<Uint8Array>, options?: HashlineStreamOptions): AsyncGenerator<string>;
11
11
  export declare function streamHashLinesFromLines(lines: Iterable<string> | AsyncIterable<string>, options?: HashlineStreamOptions): AsyncGenerator<string>;
12
+ export {};
@@ -1,4 +1,4 @@
1
- export interface HashlineChunkFormatter {
1
+ interface HashlineChunkFormatter {
2
2
  push(formattedLine: string): string[];
3
3
  flush(): string | undefined;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import type { ToolContext } from "@opencode-ai/plugin/tool";
2
- import { type RawHashlineEdit } from "./normalize-edits";
3
2
  import type { PluginContext } from "../../plugin/types";
3
+ import { type RawHashlineEdit } from "./normalize-edits";
4
4
  interface HashlineEditArgs {
5
5
  filePath: string;
6
6
  edits: RawHashlineEdit[];
@@ -1,7 +1,6 @@
1
+ export { HASHLINE_DICT, HASHLINE_OUTPUT_PATTERN, HASHLINE_REF_PATTERN, NIBBLE_STR } from "./constants";
1
2
  export { computeLineHash, formatHashLine, formatHashLines, streamHashLinesFromLines, streamHashLinesFromUtf8, } from "./hash-computation";
2
- export { parseLineRef, validateLineRef } from "./validation";
3
- export type { LineRef } from "./validation";
4
- export type { ReplaceEdit, AppendEdit, PrependEdit, HashlineEdit, } from "./types";
5
- export { NIBBLE_STR, HASHLINE_DICT, HASHLINE_REF_PATTERN, HASHLINE_OUTPUT_PATTERN } from "./constants";
6
- export { applyHashlineEdits, } from "./edit-operations";
7
3
  export { createHashlineEditTool } from "./tools";
4
+ export type { AppendEdit, HashlineEdit, PrependEdit, ReplaceEdit, } from "./types";
5
+ export type { LineRef } from "./validation";
6
+ export { parseLineRef, validateLineRef } from "./validation";
@@ -10,8 +10,6 @@ export declare function normalizeLineRef(ref: string): string;
10
10
  export declare function parseLineRef(ref: string): LineRef;
11
11
  export declare function validateLineRef(lines: string[], ref: string): void;
12
12
  export declare class HashlineMismatchError extends Error {
13
- private readonly mismatches;
14
- private readonly fileLines;
15
13
  readonly remaps: ReadonlyMap<string, string>;
16
14
  constructor(mismatches: HashMismatch[], fileLines: string[]);
17
15
  static formatMessage(mismatches: HashMismatch[], fileLines: string[]): string;
@@ -1,21 +1,22 @@
1
1
  import { lspManager } from "./lsp";
2
- export { lspManager };
3
2
  export { createAstGrepTools } from "./ast-grep";
4
- export { createGrepTools } from "./grep";
5
3
  export { createGlobTools } from "./glob";
6
- export { createSlashcommandTool, discoverCommandsSync } from "./slashcommand";
4
+ export { createGrepTools } from "./grep";
5
+ export { createHandoffTools } from "./handoff";
6
+ export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
7
7
  export { createSessionManagerTools } from "./session-manager";
8
8
  export { sessionExists } from "./session-manager/storage";
9
- export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
10
9
  export { createSkillTool } from "./skill";
11
10
  export { createSkillMcpTool } from "./skill-mcp";
11
+ export { createSlashcommandTool, discoverCommandsSync } from "./slashcommand";
12
+ export { lspManager };
12
13
  import type { PluginInput, ToolDefinition } from "@opencode-ai/plugin";
13
14
  import type { BackgroundManager } from "../features/background-agent";
14
15
  type OpencodeClient = PluginInput["client"];
15
- export { createCallOmoAgent } from "./call-omo-agent";
16
- export { createLookAt } from "./look-at";
16
+ export { createDelegateAgent } from "./delegate-agent";
17
17
  export { createDelegateTask } from "./delegate-task";
18
- export { createTaskCreateTool, createTaskGetTool, createTaskList, createTaskUpdateTool, } from "./task";
19
18
  export { createHashlineEditTool } from "./hashline-edit";
19
+ export { createLookAt } from "./look-at";
20
+ export { createTaskCreateTool, createTaskGetTool, createTaskList, createTaskUpdateTool, } from "./task";
20
21
  export declare function createBackgroundTools(manager: BackgroundManager, client: OpencodeClient): Record<string, ToolDefinition>;
21
22
  export declare const builtinTools: Record<string, ToolDefinition>;
@@ -1,3 +1,3 @@
1
1
  export declare const DEFAULT_TIMEOUT_MS = 60000;
2
2
  export declare const BLOCKED_TMUX_SUBCOMMANDS: string[];
3
- export declare const INTERACTIVE_BASH_DESCRIPTION = "WARNING: This is TMUX ONLY. Pass tmux subcommands directly (without 'tmux' prefix).\n\nExamples: new-session -d -s omo-dev, send-keys -t omo-dev \"vim\" Enter\n\nFor TUI apps needing ongoing interaction (vim, htop, pudb). One-shot commands \u2192 use Bash with &.";
3
+ export declare const INTERACTIVE_BASH_DESCRIPTION = "WARNING: This is TMUX ONLY. Pass tmux subcommands directly (without 'tmux' prefix).\n\nExamples: new-session -d -s matrixx-dev, send-keys -t matrixx-dev \"vim\" Enter\n\nFor TUI apps needing ongoing interaction (vim, htop, pudb). One-shot commands \u2192 use Bash with &.";
@@ -1,3 +1,3 @@
1
- import { interactive_bash } from "./tools";
2
1
  import { startBackgroundCheck } from "./tmux-path-resolver";
2
+ import { interactive_bash } from "./tools";
3
3
  export { interactive_bash, startBackgroundCheck };
@@ -1,3 +1,3 @@
1
- export * from "./types";
2
1
  export * from "./constants";
3
2
  export { createLookAt } from "./tools";
3
+ export * from "./types";
@@ -1,3 +1,3 @@
1
+ export { LSPClient } from "./lsp-client";
1
2
  export { validateCwd } from "./lsp-process";
2
3
  export { lspManager } from "./lsp-server";
3
- export { LSPClient } from "./lsp-client";
@@ -1,3 +1,3 @@
1
- export { findServerForExtension, getAllServers, getConfigPaths_ } from "./server-resolution";
2
1
  export { getLanguageId } from "./language-config";
3
2
  export { isServerInstalled } from "./server-installation";
3
+ export { findServerForExtension, getAllServers, getConfigPaths_ } from "./server-resolution";
@@ -1,5 +1,5 @@
1
1
  export declare const DEFAULT_MAX_REFERENCES = 200;
2
2
  export declare const DEFAULT_MAX_SYMBOLS = 200;
3
3
  export declare const DEFAULT_MAX_DIAGNOSTICS = 200;
4
- export { SYMBOL_KIND_MAP, SEVERITY_MAP, EXT_TO_LANG } from "./language-mappings";
4
+ export { EXT_TO_LANG, SEVERITY_MAP, SYMBOL_KIND_MAP } from "./language-mappings";
5
5
  export { BUILTIN_SERVERS, LSP_INSTALL_HINTS } from "./server-definitions";
@@ -1,8 +1,8 @@
1
- export * from "./types";
2
- export * from "./constants";
3
- export * from "./config";
4
1
  export * from "./client";
2
+ export * from "./config";
3
+ export * from "./constants";
5
4
  export * from "./lsp-client-wrapper";
6
5
  export * from "./lsp-formatters";
6
+ export { lsp_diagnostics, lsp_find_references, lsp_goto_definition, lsp_prepare_rename, lsp_rename, lsp_symbols } from "./tools";
7
+ export * from "./types";
7
8
  export * from "./workspace-edit";
8
- export { lsp_goto_definition, lsp_find_references, lsp_symbols, lsp_diagnostics, lsp_prepare_rename, lsp_rename } from "./tools";
@@ -1,6 +1,6 @@
1
1
  import { type MessageConnection } from "vscode-jsonrpc/node";
2
- import type { Diagnostic, ResolvedServer } from "./types";
3
2
  import { type UnifiedProcess } from "./lsp-process";
3
+ import type { Diagnostic, ResolvedServer } from "./types";
4
4
  export declare class LSPClientTransport {
5
5
  protected root: string;
6
6
  protected server: ResolvedServer;
@@ -1,8 +1,4 @@
1
- import { LSPClient } from "./client";
2
- import type { ServerLookupResult } from "./types";
1
+ import { type LSPClient } from "./client";
3
2
  export declare function findWorkspaceRoot(filePath: string): string;
4
3
  export declare function uriToPath(uri: string): string;
5
- export declare function formatServerLookupError(result: Exclude<ServerLookupResult, {
6
- status: "found";
7
- }>): string;
8
4
  export declare function withLspClient<T>(filePath: string, fn: (client: LSPClient) => Promise<T>): Promise<T>;
@@ -1,13 +1,9 @@
1
- import type { Diagnostic, DocumentSymbol, Location, LocationLink, PrepareRenameDefaultBehavior, PrepareRenameResult, Range, SymbolInfo, TextEdit, WorkspaceEdit } from "./types";
1
+ import type { Diagnostic, DocumentSymbol, Location, LocationLink, PrepareRenameDefaultBehavior, PrepareRenameResult, Range, SymbolInfo } from "./types";
2
2
  import type { ApplyResult } from "./workspace-edit";
3
3
  export declare function formatLocation(loc: Location | LocationLink): string;
4
- export declare function formatSymbolKind(kind: number): string;
5
- export declare function formatSeverity(severity: number | undefined): string;
6
4
  export declare function formatDocumentSymbol(symbol: DocumentSymbol, indent?: number): string;
7
5
  export declare function formatSymbolInfo(symbol: SymbolInfo): string;
8
6
  export declare function formatDiagnostic(diag: Diagnostic): string;
9
7
  export declare function filterDiagnosticsBySeverity(diagnostics: Diagnostic[], severityFilter?: "error" | "warning" | "information" | "hint" | "all"): Diagnostic[];
10
8
  export declare function formatPrepareRenameResult(result: PrepareRenameResult | PrepareRenameDefaultBehavior | Range | null): string;
11
- export declare function formatTextEdit(edit: TextEdit): string;
12
- export declare function formatWorkspaceEdit(edit: WorkspaceEdit | null): string;
13
9
  export declare function formatApplyResult(result: ApplyResult): string;
@@ -1,5 +1,5 @@
1
- import type { ResolvedServer } from "./types";
2
1
  import { LSPClient } from "./lsp-client";
2
+ import type { ResolvedServer } from "./types";
3
3
  declare class LSPServerManager {
4
4
  private static instance;
5
5
  private clients;
@@ -1,5 +1,5 @@
1
- export { lsp_goto_definition } from "./goto-definition-tool";
2
- export { lsp_find_references } from "./find-references-tool";
3
- export { lsp_symbols } from "./symbols-tool";
4
1
  export { lsp_diagnostics } from "./diagnostics-tool";
2
+ export { lsp_find_references } from "./find-references-tool";
3
+ export { lsp_goto_definition } from "./goto-definition-tool";
5
4
  export { lsp_prepare_rename, lsp_rename } from "./rename-tools";
5
+ export { lsp_symbols } from "./symbols-tool";
@@ -44,21 +44,21 @@ export interface Diagnostic {
44
44
  source?: string;
45
45
  message: string;
46
46
  }
47
- export interface TextDocumentIdentifier {
47
+ interface TextDocumentIdentifier {
48
48
  uri: string;
49
49
  }
50
- export interface VersionedTextDocumentIdentifier extends TextDocumentIdentifier {
50
+ interface VersionedTextDocumentIdentifier extends TextDocumentIdentifier {
51
51
  version: number | null;
52
52
  }
53
53
  export interface TextEdit {
54
54
  range: Range;
55
55
  newText: string;
56
56
  }
57
- export interface TextDocumentEdit {
57
+ interface TextDocumentEdit {
58
58
  textDocument: VersionedTextDocumentIdentifier;
59
59
  edits: TextEdit[];
60
60
  }
61
- export interface CreateFile {
61
+ interface CreateFile {
62
62
  kind: "create";
63
63
  uri: string;
64
64
  options?: {
@@ -66,7 +66,7 @@ export interface CreateFile {
66
66
  ignoreIfExists?: boolean;
67
67
  };
68
68
  }
69
- export interface RenameFile {
69
+ interface RenameFile {
70
70
  kind: "rename";
71
71
  oldUri: string;
72
72
  newUri: string;
@@ -75,7 +75,7 @@ export interface RenameFile {
75
75
  ignoreIfExists?: boolean;
76
76
  };
77
77
  }
78
- export interface DeleteFile {
78
+ interface DeleteFile {
79
79
  kind: "delete";
80
80
  uri: string;
81
81
  options?: {
@@ -96,7 +96,7 @@ export interface PrepareRenameResult {
96
96
  export interface PrepareRenameDefaultBehavior {
97
97
  defaultBehavior: boolean;
98
98
  }
99
- export interface ServerLookupInfo {
99
+ interface ServerLookupInfo {
100
100
  id: string;
101
101
  command: string[];
102
102
  extensions: string[];
@@ -121,3 +121,4 @@ export interface ResolvedServer {
121
121
  env?: Record<string, string>;
122
122
  initialization?: Record<string, unknown>;
123
123
  }
124
+ export {};
@@ -1,4 +1,4 @@
1
- export { OPENCODE_STORAGE, MESSAGE_STORAGE, PART_STORAGE, SESSION_STORAGE } from "../../shared";
1
+ export { MESSAGE_STORAGE, OPENCODE_STORAGE, PART_STORAGE, SESSION_STORAGE } from "../../shared";
2
2
  export declare const TODO_DIR: string;
3
3
  export declare const TRANSCRIPT_DIR: string;
4
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 |";
@@ -1,3 +1,3 @@
1
+ export * from "./constants";
1
2
  export { createSessionManagerTools } from "./tools";
2
3
  export * from "./types";
3
- export * from "./constants";
@@ -1,4 +1,4 @@
1
- import type { SessionInfo, SessionMessage, SearchResult } from "./types";
1
+ import type { SearchResult, SessionInfo, SessionMessage } from "./types";
2
2
  export declare function formatSessionList(sessionIDs: string[]): Promise<string>;
3
3
  export declare function formatSessionMessages(messages: SessionMessage[], includeTodos?: boolean, todos?: Array<{
4
4
  id?: string;
@@ -1,6 +1,6 @@
1
1
  import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { SessionMessage, SessionInfo, TodoItem, SessionMetadata } from "./types";
3
- export interface GetMainSessionsOptions {
2
+ import type { SessionInfo, SessionMessage, SessionMetadata, TodoItem } from "./types";
3
+ interface GetMainSessionsOptions {
4
4
  directory?: string;
5
5
  }
6
6
  export declare function setStorageClient(client: PluginInput["client"]): void;
@@ -11,5 +11,4 @@ export { getMessageDir } from "../../shared/opencode-message-dir";
11
11
  export declare function sessionExists(sessionID: string): Promise<boolean>;
12
12
  export declare function readSessionMessages(sessionID: string): Promise<SessionMessage[]>;
13
13
  export declare function readSessionTodos(sessionID: string): Promise<TodoItem[]>;
14
- export declare function readSessionTranscript(sessionID: string): Promise<number>;
15
14
  export declare function getSessionInfo(sessionID: string): Promise<SessionInfo | null>;
@@ -83,7 +83,3 @@ export interface SessionSearchArgs {
83
83
  export interface SessionInfoArgs {
84
84
  session_id: string;
85
85
  }
86
- export interface SessionDeleteArgs {
87
- session_id: string;
88
- confirm: boolean;
89
- }
@@ -1,3 +1,2 @@
1
- export declare const TOOL_NAME: "skill";
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.";
3
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.";
@@ -1,3 +1,3 @@
1
1
  export * from "./constants";
2
+ export { createSkillTool, skill } from "./tools";
2
3
  export * from "./types";
3
- export { skill, createSkillTool } from "./tools";
@@ -1,6 +1,5 @@
1
- import type { SkillScope, LoadedSkill } from "../../features/opencode-skill-loader/types";
1
+ import type { LoadedSkill, SkillScope } from "../../features/opencode-skill-loader/types";
2
2
  import type { SkillMcpManager } from "../../features/skill-mcp-manager";
3
- import type { GitMasterConfig } from "../../config/schema";
4
3
  export interface SkillArgs {
5
4
  name: string;
6
5
  }
@@ -23,7 +22,5 @@ export interface SkillLoadOptions {
23
22
  mcpManager?: SkillMcpManager;
24
23
  /** Session ID getter for MCP client identification */
25
24
  getSessionID?: () => string;
26
- /** Git master configuration for watermark/co-author settings */
27
- gitMasterConfig?: GitMasterConfig;
28
25
  disabledSkills?: Set<string>;
29
26
  }