@reinamaccredy/oh-my-opencode 3.0.1-beta.1 → 3.0.1-beta.3

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 (404) hide show
  1. package/dist/cli/index.js +44 -23
  2. package/dist/index.js +19100 -28924
  3. package/package.json +3 -2
  4. package/dist/agents/build-prompt.d.ts +0 -31
  5. package/dist/agents/document-writer.d.ts +0 -5
  6. package/dist/agents/explore.d.ts +0 -5
  7. package/dist/agents/frontend-ui-ux-engineer.d.ts +0 -5
  8. package/dist/agents/index.d.ts +0 -5
  9. package/dist/agents/librarian.d.ts +0 -5
  10. package/dist/agents/metis.d.ts +0 -19
  11. package/dist/agents/momus.d.ts +0 -6
  12. package/dist/agents/multimodal-looker.d.ts +0 -5
  13. package/dist/agents/oracle.d.ts +0 -5
  14. package/dist/agents/orchestrator-sisyphus.d.ts +0 -20
  15. package/dist/agents/plan-prompt.d.ts +0 -64
  16. package/dist/agents/prometheus-prompt.d.ts +0 -27
  17. package/dist/agents/sisyphus-junior.d.ts +0 -3
  18. package/dist/agents/sisyphus-prompt-builder.d.ts +0 -26
  19. package/dist/agents/sisyphus.d.ts +0 -4
  20. package/dist/agents/types.d.ts +0 -51
  21. package/dist/agents/utils.d.ts +0 -13
  22. package/dist/agents/utils.test.d.ts +0 -1
  23. package/dist/cli/config-manager.d.ts +0 -77
  24. package/dist/cli/doctor/checks/auth.d.ts +0 -7
  25. package/dist/cli/doctor/checks/auth.test.d.ts +0 -1
  26. package/dist/cli/doctor/checks/config.d.ts +0 -8
  27. package/dist/cli/doctor/checks/config.test.d.ts +0 -1
  28. package/dist/cli/doctor/checks/dependencies.d.ts +0 -8
  29. package/dist/cli/doctor/checks/dependencies.test.d.ts +0 -1
  30. package/dist/cli/doctor/checks/gh.d.ts +0 -13
  31. package/dist/cli/doctor/checks/gh.test.d.ts +0 -1
  32. package/dist/cli/doctor/checks/index.d.ts +0 -11
  33. package/dist/cli/doctor/checks/lsp.d.ts +0 -8
  34. package/dist/cli/doctor/checks/lsp.test.d.ts +0 -1
  35. package/dist/cli/doctor/checks/mcp.d.ts +0 -6
  36. package/dist/cli/doctor/checks/mcp.test.d.ts +0 -1
  37. package/dist/cli/doctor/checks/opencode.d.ts +0 -10
  38. package/dist/cli/doctor/checks/opencode.test.d.ts +0 -1
  39. package/dist/cli/doctor/checks/plugin.d.ts +0 -4
  40. package/dist/cli/doctor/checks/plugin.test.d.ts +0 -1
  41. package/dist/cli/doctor/checks/version.d.ts +0 -4
  42. package/dist/cli/doctor/checks/version.test.d.ts +0 -1
  43. package/dist/cli/doctor/constants.d.ts +0 -40
  44. package/dist/cli/doctor/formatter.d.ts +0 -12
  45. package/dist/cli/doctor/formatter.test.d.ts +0 -1
  46. package/dist/cli/doctor/index.d.ts +0 -5
  47. package/dist/cli/doctor/runner.d.ts +0 -7
  48. package/dist/cli/doctor/runner.test.d.ts +0 -1
  49. package/dist/cli/doctor/types.d.ts +0 -91
  50. package/dist/cli/get-local-version/formatter.d.ts +0 -3
  51. package/dist/cli/get-local-version/index.d.ts +0 -3
  52. package/dist/cli/get-local-version/types.d.ts +0 -13
  53. package/dist/cli/index.d.ts +0 -2
  54. package/dist/cli/install.d.ts +0 -2
  55. package/dist/cli/run/completion.d.ts +0 -2
  56. package/dist/cli/run/completion.test.d.ts +0 -1
  57. package/dist/cli/run/events.d.ts +0 -11
  58. package/dist/cli/run/events.test.d.ts +0 -1
  59. package/dist/cli/run/index.d.ts +0 -2
  60. package/dist/cli/run/runner.d.ts +0 -2
  61. package/dist/cli/run/types.d.ts +0 -71
  62. package/dist/cli/types.d.ts +0 -29
  63. package/dist/config/index.d.ts +0 -2
  64. package/dist/config/schema.d.ts +0 -1948
  65. package/dist/config/schema.test.d.ts +0 -1
  66. package/dist/features/background-agent/concurrency.d.ts +0 -10
  67. package/dist/features/background-agent/concurrency.test.d.ts +0 -1
  68. package/dist/features/background-agent/index.d.ts +0 -3
  69. package/dist/features/background-agent/manager.d.ts +0 -66
  70. package/dist/features/background-agent/manager.test.d.ts +0 -1
  71. package/dist/features/background-agent/types.d.ts +0 -68
  72. package/dist/features/boulder-state/constants.d.ts +0 -10
  73. package/dist/features/boulder-state/index.d.ts +0 -4
  74. package/dist/features/boulder-state/storage.d.ts +0 -28
  75. package/dist/features/boulder-state/storage.test.d.ts +0 -1
  76. package/dist/features/boulder-state/types.d.ts +0 -24
  77. package/dist/features/boulder-state/unified-state.d.ts +0 -86
  78. package/dist/features/builtin-commands/commands.d.ts +0 -2
  79. package/dist/features/builtin-commands/index.d.ts +0 -2
  80. package/dist/features/builtin-commands/templates/init-deep.d.ts +0 -1
  81. package/dist/features/builtin-commands/templates/ralph-loop.d.ts +0 -2
  82. package/dist/features/builtin-commands/templates/refactor.d.ts +0 -1
  83. package/dist/features/builtin-commands/templates/start-work.d.ts +0 -1
  84. package/dist/features/builtin-commands/types.d.ts +0 -6
  85. package/dist/features/builtin-skills/index.d.ts +0 -2
  86. package/dist/features/builtin-skills/skills.d.ts +0 -2
  87. package/dist/features/builtin-skills/types.d.ts +0 -15
  88. package/dist/features/claude-code-agent-loader/index.d.ts +0 -2
  89. package/dist/features/claude-code-agent-loader/loader.d.ts +0 -3
  90. package/dist/features/claude-code-agent-loader/types.d.ts +0 -14
  91. package/dist/features/claude-code-command-loader/index.d.ts +0 -2
  92. package/dist/features/claude-code-command-loader/loader.d.ts +0 -6
  93. package/dist/features/claude-code-command-loader/types.d.ts +0 -42
  94. package/dist/features/claude-code-mcp-loader/env-expander.d.ts +0 -2
  95. package/dist/features/claude-code-mcp-loader/index.d.ts +0 -10
  96. package/dist/features/claude-code-mcp-loader/loader.d.ts +0 -4
  97. package/dist/features/claude-code-mcp-loader/loader.test.d.ts +0 -1
  98. package/dist/features/claude-code-mcp-loader/transformer.d.ts +0 -2
  99. package/dist/features/claude-code-mcp-loader/types.d.ts +0 -35
  100. package/dist/features/claude-code-plugin-loader/index.d.ts +0 -3
  101. package/dist/features/claude-code-plugin-loader/loader.d.ts +0 -20
  102. package/dist/features/claude-code-plugin-loader/types.d.ts +0 -186
  103. package/dist/features/claude-code-session-state/index.d.ts +0 -1
  104. package/dist/features/claude-code-session-state/state.d.ts +0 -4
  105. package/dist/features/context-injector/collector.d.ts +0 -11
  106. package/dist/features/context-injector/collector.test.d.ts +0 -1
  107. package/dist/features/context-injector/index.d.ts +0 -3
  108. package/dist/features/context-injector/injector.d.ts +0 -39
  109. package/dist/features/context-injector/injector.test.d.ts +0 -1
  110. package/dist/features/context-injector/types.d.ts +0 -83
  111. package/dist/features/hook-message-injector/constants.d.ts +0 -3
  112. package/dist/features/hook-message-injector/index.d.ts +0 -4
  113. package/dist/features/hook-message-injector/injector.d.ts +0 -11
  114. package/dist/features/hook-message-injector/types.d.ts +0 -44
  115. package/dist/features/maestro/hooks/index.d.ts +0 -16
  116. package/dist/features/maestro/index.d.ts +0 -4
  117. package/dist/features/maestro/skills/index.d.ts +0 -4
  118. package/dist/features/maestro/types.d.ts +0 -42
  119. package/dist/features/maestro/utils/index.d.ts +0 -4
  120. package/dist/features/opencode-skill-loader/async-loader.d.ts +0 -6
  121. package/dist/features/opencode-skill-loader/async-loader.test.d.ts +0 -1
  122. package/dist/features/opencode-skill-loader/blocking.d.ts +0 -2
  123. package/dist/features/opencode-skill-loader/blocking.test.d.ts +0 -1
  124. package/dist/features/opencode-skill-loader/discover-worker.d.ts +0 -1
  125. package/dist/features/opencode-skill-loader/index.d.ts +0 -4
  126. package/dist/features/opencode-skill-loader/loader.d.ts +0 -16
  127. package/dist/features/opencode-skill-loader/loader.test.d.ts +0 -1
  128. package/dist/features/opencode-skill-loader/merger.d.ts +0 -7
  129. package/dist/features/opencode-skill-loader/skill-content.d.ts +0 -5
  130. package/dist/features/opencode-skill-loader/skill-content.test.d.ts +0 -1
  131. package/dist/features/opencode-skill-loader/types.d.ts +0 -34
  132. package/dist/features/skill-mcp-manager/env-cleaner.d.ts +0 -2
  133. package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +0 -1
  134. package/dist/features/skill-mcp-manager/index.d.ts +0 -2
  135. package/dist/features/skill-mcp-manager/manager.d.ts +0 -29
  136. package/dist/features/skill-mcp-manager/manager.test.d.ts +0 -1
  137. package/dist/features/skill-mcp-manager/types.d.ts +0 -11
  138. package/dist/features/task-toast-manager/index.d.ts +0 -2
  139. package/dist/features/task-toast-manager/manager.d.ts +0 -56
  140. package/dist/features/task-toast-manager/manager.test.d.ts +0 -1
  141. package/dist/features/task-toast-manager/types.d.ts +0 -16
  142. package/dist/features/workflow-engine/adapters/index.d.ts +0 -2
  143. package/dist/features/workflow-engine/adapters/maestro/index.d.ts +0 -43
  144. package/dist/features/workflow-engine/adapters/sisyphus/index.d.ts +0 -30
  145. package/dist/features/workflow-engine/contracts/v1/contract.test.d.ts +0 -1
  146. package/dist/features/workflow-engine/contracts/v1/engine.contract.d.ts +0 -27
  147. package/dist/features/workflow-engine/contracts/v1/index.d.ts +0 -2
  148. package/dist/features/workflow-engine/contracts/v1/types.d.ts +0 -346
  149. package/dist/features/workflow-engine/engines/index.d.ts +0 -1
  150. package/dist/features/workflow-engine/engines/maestro-engine.d.ts +0 -40
  151. package/dist/features/workflow-engine/index.d.ts +0 -4
  152. package/dist/features/workflow-engine/service.d.ts +0 -6
  153. package/dist/hooks/agent-usage-reminder/constants.d.ts +0 -5
  154. package/dist/hooks/agent-usage-reminder/index.d.ts +0 -22
  155. package/dist/hooks/agent-usage-reminder/storage.d.ts +0 -4
  156. package/dist/hooks/agent-usage-reminder/types.d.ts +0 -6
  157. package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +0 -4
  158. package/dist/hooks/anthropic-context-window-limit-recovery/executor.test.d.ts +0 -1
  159. package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +0 -17
  160. package/dist/hooks/anthropic-context-window-limit-recovery/parser.d.ts +0 -2
  161. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +0 -7
  162. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.test.d.ts +0 -1
  163. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-executor.d.ts +0 -3
  164. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-purge-errors.d.ts +0 -7
  165. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-storage.d.ts +0 -2
  166. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-supersede.d.ts +0 -6
  167. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +0 -36
  168. package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +0 -28
  169. package/dist/hooks/anthropic-context-window-limit-recovery/storage.test.d.ts +0 -1
  170. package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +0 -42
  171. package/dist/hooks/auto-slash-command/constants.d.ts +0 -5
  172. package/dist/hooks/auto-slash-command/detector.d.ts +0 -9
  173. package/dist/hooks/auto-slash-command/detector.test.d.ts +0 -1
  174. package/dist/hooks/auto-slash-command/executor.d.ts +0 -11
  175. package/dist/hooks/auto-slash-command/index.d.ts +0 -12
  176. package/dist/hooks/auto-slash-command/index.test.d.ts +0 -1
  177. package/dist/hooks/auto-slash-command/types.d.ts +0 -27
  178. package/dist/hooks/auto-update-checker/cache.d.ts +0 -3
  179. package/dist/hooks/auto-update-checker/checker.d.ts +0 -20
  180. package/dist/hooks/auto-update-checker/constants.d.ts +0 -13
  181. package/dist/hooks/auto-update-checker/index.d.ts +0 -16
  182. package/dist/hooks/auto-update-checker/index.test.d.ts +0 -1
  183. package/dist/hooks/auto-update-checker/types.d.ts +0 -25
  184. package/dist/hooks/background-notification/index.d.ts +0 -22
  185. package/dist/hooks/background-notification/types.d.ts +0 -4
  186. package/dist/hooks/claude-code-hooks/config-loader.d.ts +0 -13
  187. package/dist/hooks/claude-code-hooks/config.d.ts +0 -3
  188. package/dist/hooks/claude-code-hooks/index.d.ts +0 -48
  189. package/dist/hooks/claude-code-hooks/plugin-config.d.ts +0 -8
  190. package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +0 -40
  191. package/dist/hooks/claude-code-hooks/pre-compact.d.ts +0 -16
  192. package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +0 -25
  193. package/dist/hooks/claude-code-hooks/stop.d.ts +0 -20
  194. package/dist/hooks/claude-code-hooks/todo.d.ts +0 -12
  195. package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +0 -5
  196. package/dist/hooks/claude-code-hooks/transcript.d.ts +0 -38
  197. package/dist/hooks/claude-code-hooks/types.d.ts +0 -183
  198. package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +0 -22
  199. package/dist/hooks/comment-checker/cli.d.ts +0 -53
  200. package/dist/hooks/comment-checker/constants.d.ts +0 -3
  201. package/dist/hooks/comment-checker/downloader.d.ts +0 -25
  202. package/dist/hooks/comment-checker/filters/bdd.d.ts +0 -2
  203. package/dist/hooks/comment-checker/filters/directive.d.ts +0 -2
  204. package/dist/hooks/comment-checker/filters/docstring.d.ts +0 -2
  205. package/dist/hooks/comment-checker/filters/index.d.ts +0 -7
  206. package/dist/hooks/comment-checker/filters/shebang.d.ts +0 -2
  207. package/dist/hooks/comment-checker/index.d.ts +0 -19
  208. package/dist/hooks/comment-checker/output/formatter.d.ts +0 -2
  209. package/dist/hooks/comment-checker/output/index.d.ts +0 -2
  210. package/dist/hooks/comment-checker/output/xml-builder.d.ts +0 -2
  211. package/dist/hooks/comment-checker/types.d.ts +0 -31
  212. package/dist/hooks/compaction-context-injector/index.d.ts +0 -2
  213. package/dist/hooks/context-window-monitor.d.ts +0 -18
  214. package/dist/hooks/directory-agents-injector/constants.d.ts +0 -3
  215. package/dist/hooks/directory-agents-injector/index.d.ts +0 -26
  216. package/dist/hooks/directory-agents-injector/storage.d.ts +0 -3
  217. package/dist/hooks/directory-agents-injector/types.d.ts +0 -5
  218. package/dist/hooks/directory-readme-injector/constants.d.ts +0 -3
  219. package/dist/hooks/directory-readme-injector/index.d.ts +0 -26
  220. package/dist/hooks/directory-readme-injector/storage.d.ts +0 -3
  221. package/dist/hooks/directory-readme-injector/types.d.ts +0 -5
  222. package/dist/hooks/edit-error-recovery/index.d.ts +0 -31
  223. package/dist/hooks/edit-error-recovery/index.test.d.ts +0 -1
  224. package/dist/hooks/empty-message-sanitizer/index.d.ts +0 -12
  225. package/dist/hooks/empty-task-response-detector.d.ts +0 -12
  226. package/dist/hooks/index.d.ts +0 -33
  227. package/dist/hooks/interactive-bash-session/constants.d.ts +0 -4
  228. package/dist/hooks/interactive-bash-session/index.d.ts +0 -23
  229. package/dist/hooks/interactive-bash-session/storage.d.ts +0 -4
  230. package/dist/hooks/interactive-bash-session/types.d.ts +0 -10
  231. package/dist/hooks/keyword-detector/constants.d.ts +0 -12
  232. package/dist/hooks/keyword-detector/detector.d.ts +0 -11
  233. package/dist/hooks/keyword-detector/index.d.ts +0 -22
  234. package/dist/hooks/keyword-detector/index.test.d.ts +0 -1
  235. package/dist/hooks/keyword-detector/types.d.ts +0 -4
  236. package/dist/hooks/maestro-sisyphus-bridge/constants.d.ts +0 -9
  237. package/dist/hooks/maestro-sisyphus-bridge/index.d.ts +0 -53
  238. package/dist/hooks/non-interactive-env/constants.d.ts +0 -34
  239. package/dist/hooks/non-interactive-env/detector.d.ts +0 -1
  240. package/dist/hooks/non-interactive-env/index.d.ts +0 -14
  241. package/dist/hooks/non-interactive-env/index.test.d.ts +0 -1
  242. package/dist/hooks/non-interactive-env/types.d.ts +0 -3
  243. package/dist/hooks/preemptive-compaction/constants.d.ts +0 -3
  244. package/dist/hooks/preemptive-compaction/index.d.ts +0 -24
  245. package/dist/hooks/preemptive-compaction/types.d.ts +0 -17
  246. package/dist/hooks/prometheus-md-only/constants.d.ts +0 -6
  247. package/dist/hooks/prometheus-md-only/index.d.ts +0 -12
  248. package/dist/hooks/prometheus-md-only/index.test.d.ts +0 -1
  249. package/dist/hooks/ralph-loop/constants.d.ts +0 -5
  250. package/dist/hooks/ralph-loop/index.d.ts +0 -20
  251. package/dist/hooks/ralph-loop/index.test.d.ts +0 -1
  252. package/dist/hooks/ralph-loop/storage.d.ts +0 -6
  253. package/dist/hooks/ralph-loop/types.d.ts +0 -16
  254. package/dist/hooks/rules-injector/constants.d.ts +0 -8
  255. package/dist/hooks/rules-injector/finder.d.ts +0 -33
  256. package/dist/hooks/rules-injector/finder.test.d.ts +0 -1
  257. package/dist/hooks/rules-injector/index.d.ts +0 -26
  258. package/dist/hooks/rules-injector/matcher.d.ts +0 -21
  259. package/dist/hooks/rules-injector/parser.d.ts +0 -18
  260. package/dist/hooks/rules-injector/parser.test.d.ts +0 -1
  261. package/dist/hooks/rules-injector/storage.d.ts +0 -9
  262. package/dist/hooks/rules-injector/types.d.ts +0 -54
  263. package/dist/hooks/session-notification-utils.d.ts +0 -9
  264. package/dist/hooks/session-notification.d.ts +0 -20
  265. package/dist/hooks/session-notification.test.d.ts +0 -1
  266. package/dist/hooks/session-recovery/constants.d.ts +0 -6
  267. package/dist/hooks/session-recovery/index.d.ts +0 -22
  268. package/dist/hooks/session-recovery/index.test.d.ts +0 -1
  269. package/dist/hooks/session-recovery/storage.d.ts +0 -19
  270. package/dist/hooks/session-recovery/types.d.ts +0 -90
  271. package/dist/hooks/sisyphus-orchestrator/index.d.ts +0 -35
  272. package/dist/hooks/sisyphus-orchestrator/index.test.d.ts +0 -1
  273. package/dist/hooks/start-work/index.d.ts +0 -16
  274. package/dist/hooks/start-work/index.test.d.ts +0 -1
  275. package/dist/hooks/task-resume-info/index.d.ts +0 -11
  276. package/dist/hooks/tdd-enforcement/constants.d.ts +0 -16
  277. package/dist/hooks/tdd-enforcement/index.d.ts +0 -54
  278. package/dist/hooks/think-mode/detector.d.ts +0 -5
  279. package/dist/hooks/think-mode/index.d.ts +0 -14
  280. package/dist/hooks/think-mode/index.test.d.ts +0 -1
  281. package/dist/hooks/think-mode/switcher.d.ts +0 -57
  282. package/dist/hooks/think-mode/switcher.test.d.ts +0 -1
  283. package/dist/hooks/think-mode/types.d.ts +0 -21
  284. package/dist/hooks/thinking-block-validator/index.d.ts +0 -30
  285. package/dist/hooks/todo-continuation-enforcer.d.ts +0 -17
  286. package/dist/hooks/todo-continuation-enforcer.test.d.ts +0 -1
  287. package/dist/hooks/tool-output-truncator.d.ts +0 -17
  288. package/dist/hooks/tool-output-truncator.test.d.ts +0 -1
  289. package/dist/index.d.ts +0 -5
  290. package/dist/mcp/context7.d.ts +0 -5
  291. package/dist/mcp/grep-app.d.ts +0 -5
  292. package/dist/mcp/index.d.ts +0 -8
  293. package/dist/mcp/index.test.d.ts +0 -1
  294. package/dist/mcp/types.d.ts +0 -9
  295. package/dist/mcp/websearch.d.ts +0 -8
  296. package/dist/plugin-config.d.ts +0 -4
  297. package/dist/plugin-handlers/config-handler.d.ts +0 -10
  298. package/dist/plugin-handlers/index.d.ts +0 -1
  299. package/dist/plugin-state.d.ts +0 -6
  300. package/dist/shared/claude-config-dir.d.ts +0 -1
  301. package/dist/shared/claude-config-dir.test.d.ts +0 -1
  302. package/dist/shared/command-executor.d.ts +0 -21
  303. package/dist/shared/config-errors.d.ts +0 -7
  304. package/dist/shared/config-path.d.ts +0 -17
  305. package/dist/shared/data-path.d.ts +0 -14
  306. package/dist/shared/deep-merge.d.ts +0 -13
  307. package/dist/shared/dynamic-truncator.d.ts +0 -27
  308. package/dist/shared/external-plugin-detector.d.ts +0 -18
  309. package/dist/shared/external-plugin-detector.test.d.ts +0 -1
  310. package/dist/shared/file-reference-resolver.d.ts +0 -1
  311. package/dist/shared/file-utils.d.ts +0 -7
  312. package/dist/shared/frontmatter.d.ts +0 -7
  313. package/dist/shared/frontmatter.test.d.ts +0 -1
  314. package/dist/shared/hook-disabled.d.ts +0 -2
  315. package/dist/shared/index.d.ts +0 -22
  316. package/dist/shared/jsonc-parser.d.ts +0 -15
  317. package/dist/shared/jsonc-parser.test.d.ts +0 -1
  318. package/dist/shared/logger.d.ts +0 -2
  319. package/dist/shared/migration.d.ts +0 -30
  320. package/dist/shared/migration.test.d.ts +0 -1
  321. package/dist/shared/model-sanitizer.d.ts +0 -3
  322. package/dist/shared/opencode-config-dir.d.ts +0 -19
  323. package/dist/shared/opencode-config-dir.test.d.ts +0 -1
  324. package/dist/shared/opencode-version.d.ts +0 -10
  325. package/dist/shared/opencode-version.test.d.ts +0 -1
  326. package/dist/shared/pattern-matcher.d.ts +0 -3
  327. package/dist/shared/permission-compat.d.ts +0 -12
  328. package/dist/shared/permission-compat.test.d.ts +0 -1
  329. package/dist/shared/snake-case.d.ts +0 -4
  330. package/dist/shared/tool-name.d.ts +0 -1
  331. package/dist/tools/ast-grep/cli.d.ts +0 -15
  332. package/dist/tools/ast-grep/constants.d.ts +0 -29
  333. package/dist/tools/ast-grep/downloader.d.ts +0 -5
  334. package/dist/tools/ast-grep/index.d.ts +0 -8
  335. package/dist/tools/ast-grep/napi.d.ts +0 -13
  336. package/dist/tools/ast-grep/tools.d.ts +0 -3
  337. package/dist/tools/ast-grep/types.d.ts +0 -58
  338. package/dist/tools/ast-grep/utils.d.ts +0 -5
  339. package/dist/tools/background-task/constants.d.ts +0 -3
  340. package/dist/tools/background-task/index.d.ts +0 -3
  341. package/dist/tools/background-task/tools.d.ts +0 -7
  342. package/dist/tools/background-task/types.d.ts +0 -14
  343. package/dist/tools/call-omo-agent/constants.d.ts +0 -2
  344. package/dist/tools/call-omo-agent/index.d.ts +0 -3
  345. package/dist/tools/call-omo-agent/tools.d.ts +0 -3
  346. package/dist/tools/call-omo-agent/types.d.ts +0 -24
  347. package/dist/tools/glob/cli.d.ts +0 -7
  348. package/dist/tools/glob/constants.d.ts +0 -6
  349. package/dist/tools/glob/index.d.ts +0 -2
  350. package/dist/tools/glob/tools.d.ts +0 -2
  351. package/dist/tools/glob/types.d.ts +0 -19
  352. package/dist/tools/glob/utils.d.ts +0 -2
  353. package/dist/tools/grep/cli.d.ts +0 -3
  354. package/dist/tools/grep/constants.d.ts +0 -17
  355. package/dist/tools/grep/downloader.d.ts +0 -3
  356. package/dist/tools/grep/downloader.test.d.ts +0 -1
  357. package/dist/tools/grep/index.d.ts +0 -2
  358. package/dist/tools/grep/tools.d.ts +0 -2
  359. package/dist/tools/grep/types.d.ts +0 -36
  360. package/dist/tools/grep/utils.d.ts +0 -3
  361. package/dist/tools/index.d.ts +0 -14
  362. package/dist/tools/interactive-bash/constants.d.ts +0 -3
  363. package/dist/tools/interactive-bash/index.d.ts +0 -3
  364. package/dist/tools/interactive-bash/tools.d.ts +0 -7
  365. package/dist/tools/interactive-bash/types.d.ts +0 -3
  366. package/dist/tools/interactive-bash/utils.d.ts +0 -3
  367. package/dist/tools/look-at/constants.d.ts +0 -2
  368. package/dist/tools/look-at/index.d.ts +0 -3
  369. package/dist/tools/look-at/tools.d.ts +0 -2
  370. package/dist/tools/look-at/types.d.ts +0 -4
  371. package/dist/tools/lsp/client.d.ts +0 -59
  372. package/dist/tools/lsp/config.d.ts +0 -17
  373. package/dist/tools/lsp/constants.d.ts +0 -9
  374. package/dist/tools/lsp/index.d.ts +0 -6
  375. package/dist/tools/lsp/tools.d.ts +0 -12
  376. package/dist/tools/lsp/types.d.ts +0 -156
  377. package/dist/tools/lsp/utils.d.ts +0 -29
  378. package/dist/tools/session-manager/constants.d.ts +0 -12
  379. package/dist/tools/session-manager/index.d.ts +0 -3
  380. package/dist/tools/session-manager/storage.d.ts +0 -12
  381. package/dist/tools/session-manager/storage.test.d.ts +0 -1
  382. package/dist/tools/session-manager/tools.d.ts +0 -5
  383. package/dist/tools/session-manager/tools.test.d.ts +0 -1
  384. package/dist/tools/session-manager/types.d.ts +0 -89
  385. package/dist/tools/session-manager/utils.d.ts +0 -11
  386. package/dist/tools/session-manager/utils.test.d.ts +0 -1
  387. package/dist/tools/sisyphus-task/constants.d.ts +0 -12
  388. package/dist/tools/sisyphus-task/index.d.ts +0 -3
  389. package/dist/tools/sisyphus-task/tools.d.ts +0 -16
  390. package/dist/tools/sisyphus-task/tools.test.d.ts +0 -1
  391. package/dist/tools/sisyphus-task/types.d.ts +0 -9
  392. package/dist/tools/skill/constants.d.ts +0 -3
  393. package/dist/tools/skill/index.d.ts +0 -3
  394. package/dist/tools/skill/tools.d.ts +0 -4
  395. package/dist/tools/skill/tools.test.d.ts +0 -1
  396. package/dist/tools/skill/types.d.ts +0 -25
  397. package/dist/tools/skill-mcp/constants.d.ts +0 -2
  398. package/dist/tools/skill-mcp/index.d.ts +0 -3
  399. package/dist/tools/skill-mcp/tools.d.ts +0 -11
  400. package/dist/tools/skill-mcp/tools.test.d.ts +0 -1
  401. package/dist/tools/skill-mcp/types.d.ts +0 -8
  402. package/dist/tools/slashcommand/index.d.ts +0 -2
  403. package/dist/tools/slashcommand/tools.d.ts +0 -5
  404. package/dist/tools/slashcommand/types.d.ts +0 -24
@@ -1,183 +0,0 @@
1
- /**
2
- * Claude Code Hooks Type Definitions
3
- * Maps Claude Code hook concepts to OpenCode plugin events
4
- */
5
- export type ClaudeHookEvent = "PreToolUse" | "PostToolUse" | "UserPromptSubmit" | "Stop" | "PreCompact";
6
- export interface HookMatcher {
7
- matcher: string;
8
- hooks: HookCommand[];
9
- }
10
- export interface HookCommand {
11
- type: "command";
12
- command: string;
13
- }
14
- export interface ClaudeHooksConfig {
15
- PreToolUse?: HookMatcher[];
16
- PostToolUse?: HookMatcher[];
17
- UserPromptSubmit?: HookMatcher[];
18
- Stop?: HookMatcher[];
19
- PreCompact?: HookMatcher[];
20
- }
21
- export interface PreToolUseInput {
22
- session_id: string;
23
- transcript_path?: string;
24
- cwd: string;
25
- permission_mode?: PermissionMode;
26
- hook_event_name: "PreToolUse";
27
- tool_name: string;
28
- tool_input: Record<string, unknown>;
29
- tool_use_id?: string;
30
- hook_source?: HookSource;
31
- }
32
- export interface PostToolUseInput {
33
- session_id: string;
34
- transcript_path?: string;
35
- cwd: string;
36
- permission_mode?: PermissionMode;
37
- hook_event_name: "PostToolUse";
38
- tool_name: string;
39
- tool_input: Record<string, unknown>;
40
- tool_response: {
41
- title?: string;
42
- output?: string;
43
- [key: string]: unknown;
44
- };
45
- tool_use_id?: string;
46
- hook_source?: HookSource;
47
- }
48
- export interface UserPromptSubmitInput {
49
- session_id: string;
50
- cwd: string;
51
- permission_mode?: PermissionMode;
52
- hook_event_name: "UserPromptSubmit";
53
- prompt: string;
54
- session?: {
55
- id: string;
56
- };
57
- hook_source?: HookSource;
58
- }
59
- export type PermissionMode = "default" | "plan" | "acceptEdits" | "bypassPermissions";
60
- export type HookSource = "opencode-plugin";
61
- export interface StopInput {
62
- session_id: string;
63
- transcript_path?: string;
64
- cwd: string;
65
- permission_mode?: PermissionMode;
66
- hook_event_name: "Stop";
67
- stop_hook_active: boolean;
68
- todo_path?: string;
69
- hook_source?: HookSource;
70
- }
71
- export interface PreCompactInput {
72
- session_id: string;
73
- cwd: string;
74
- hook_event_name: "PreCompact";
75
- hook_source?: HookSource;
76
- }
77
- export type PermissionDecision = "allow" | "deny" | "ask";
78
- /**
79
- * Common JSON fields for all hook outputs (Claude Code spec)
80
- */
81
- export interface HookCommonOutput {
82
- /** If false, Claude stops entirely */
83
- continue?: boolean;
84
- /** Message shown to user when continue=false */
85
- stopReason?: string;
86
- /** Suppress output from transcript */
87
- suppressOutput?: boolean;
88
- /** Warning/message displayed to user */
89
- systemMessage?: string;
90
- }
91
- export interface PreToolUseOutput extends HookCommonOutput {
92
- /** Deprecated: use hookSpecificOutput.permissionDecision instead */
93
- decision?: "allow" | "deny" | "approve" | "block" | "ask";
94
- /** Deprecated: use hookSpecificOutput.permissionDecisionReason instead */
95
- reason?: string;
96
- hookSpecificOutput?: {
97
- hookEventName: "PreToolUse";
98
- permissionDecision: PermissionDecision;
99
- permissionDecisionReason?: string;
100
- updatedInput?: Record<string, unknown>;
101
- };
102
- }
103
- export interface PostToolUseOutput extends HookCommonOutput {
104
- decision?: "block";
105
- reason?: string;
106
- hookSpecificOutput?: {
107
- hookEventName: "PostToolUse";
108
- /** Additional context to provide to Claude */
109
- additionalContext?: string;
110
- };
111
- }
112
- export interface HookResult {
113
- exitCode: number;
114
- stdout?: string;
115
- stderr?: string;
116
- }
117
- export interface TranscriptEntry {
118
- type: "tool_use" | "tool_result" | "user" | "assistant";
119
- timestamp: string;
120
- tool_name?: string;
121
- tool_input?: Record<string, unknown>;
122
- tool_output?: Record<string, unknown>;
123
- content?: string;
124
- }
125
- export interface TodoItem {
126
- id: string;
127
- content: string;
128
- status: "pending" | "in_progress" | "completed" | "cancelled";
129
- priority?: "low" | "medium" | "high";
130
- created_at: string;
131
- updated_at?: string;
132
- }
133
- export interface ClaudeCodeTodoItem {
134
- content: string;
135
- status: string;
136
- activeForm: string;
137
- }
138
- export interface TodoFile {
139
- session_id: string;
140
- items: TodoItem[];
141
- created_at: string;
142
- updated_at: string;
143
- }
144
- export interface StopOutput {
145
- decision?: "block" | "continue";
146
- reason?: string;
147
- stop_hook_active?: boolean;
148
- permission_mode?: PermissionMode;
149
- inject_prompt?: string;
150
- }
151
- export interface PreCompactOutput extends HookCommonOutput {
152
- /** Additional context to inject into compaction prompt */
153
- context?: string[];
154
- hookSpecificOutput?: {
155
- hookEventName: "PreCompact";
156
- /** Additional context strings to inject */
157
- additionalContext?: string[];
158
- };
159
- }
160
- export type ClaudeCodeContent = {
161
- type: "text";
162
- text: string;
163
- } | {
164
- type: "tool_use";
165
- id: string;
166
- name: string;
167
- input: Record<string, unknown>;
168
- } | {
169
- type: "tool_result";
170
- tool_use_id: string;
171
- content: string;
172
- };
173
- export interface ClaudeCodeMessage {
174
- type: "user" | "assistant";
175
- message: {
176
- role: "user" | "assistant";
177
- content: ClaudeCodeContent[];
178
- };
179
- }
180
- export interface PluginConfig {
181
- disabledHooks?: boolean | ClaudeHookEvent[];
182
- keywordDetectorDisabled?: boolean;
183
- }
@@ -1,22 +0,0 @@
1
- import type { ClaudeHooksConfig } from "./types";
2
- import { type PluginExtendedConfig } from "./config-loader";
3
- export interface MessagePart {
4
- type: "text" | "tool_use" | "tool_result";
5
- text?: string;
6
- [key: string]: unknown;
7
- }
8
- export interface UserPromptSubmitContext {
9
- sessionId: string;
10
- parentSessionId?: string;
11
- prompt: string;
12
- parts: MessagePart[];
13
- cwd: string;
14
- permissionMode?: "default" | "acceptEdits" | "bypassPermissions";
15
- }
16
- export interface UserPromptSubmitResult {
17
- block: boolean;
18
- reason?: string;
19
- modifiedParts: MessagePart[];
20
- messages: string[];
21
- }
22
- export declare function executeUserPromptSubmitHooks(ctx: UserPromptSubmitContext, config: ClaudeHooksConfig | null, extendedConfig?: PluginExtendedConfig | null): Promise<UserPromptSubmitResult>;
@@ -1,53 +0,0 @@
1
- /**
2
- * Asynchronously get comment-checker binary path.
3
- * Will trigger lazy download if binary not found.
4
- */
5
- export declare function getCommentCheckerPath(): Promise<string | null>;
6
- /**
7
- * Synchronously get comment-checker path (no download).
8
- * Returns cached path or searches known locations.
9
- */
10
- export declare function getCommentCheckerPathSync(): string | null;
11
- /**
12
- * Start background initialization.
13
- * Call this early to trigger download while other init happens.
14
- */
15
- export declare function startBackgroundInit(): void;
16
- export declare const COMMENT_CHECKER_CLI_PATH: string | null;
17
- export interface HookInput {
18
- session_id: string;
19
- tool_name: string;
20
- transcript_path: string;
21
- cwd: string;
22
- hook_event_name: string;
23
- tool_input: {
24
- file_path?: string;
25
- content?: string;
26
- old_string?: string;
27
- new_string?: string;
28
- edits?: Array<{
29
- old_string: string;
30
- new_string: string;
31
- }>;
32
- };
33
- tool_response?: unknown;
34
- }
35
- export interface CheckResult {
36
- hasComments: boolean;
37
- message: string;
38
- }
39
- /**
40
- * Run comment-checker CLI with given input.
41
- * @param input Hook input to check
42
- * @param cliPath Optional explicit path to CLI binary
43
- * @param customPrompt Optional custom prompt to replace default warning message
44
- */
45
- export declare function runCommentChecker(input: HookInput, cliPath?: string, customPrompt?: string): Promise<CheckResult>;
46
- /**
47
- * Check if CLI is available (sync check, no download).
48
- */
49
- export declare function isCliAvailable(): boolean;
50
- /**
51
- * Check if CLI will be available (async, may trigger download).
52
- */
53
- export declare function ensureCliAvailable(): Promise<boolean>;
@@ -1,3 +0,0 @@
1
- export declare const BDD_KEYWORDS: Set<string>;
2
- export declare const TYPE_CHECKER_PREFIXES: string[];
3
- export declare const HOOK_MESSAGE_HEADER = "COMMENT/DOCSTRING DETECTED - IMMEDIATE ACTION REQUIRED\n\nYour recent changes contain comments or docstrings, which triggered this hook.\nYou need to take immediate action. You must follow the conditions below.\n(Listed in priority order - you must always act according to this priority order)\n\nCRITICAL WARNING: This hook message MUST NEVER be ignored, even if you receive it multiple times.\nYou MUST provide corresponding explanation or action for EACH occurrence of this message.\nIgnoring this message or failing to respond appropriately is strictly prohibited.\n\nPRIORITY-BASED ACTION GUIDELINES:\n\n1. This is a comment/docstring that already existed before\n\t-> Explain to the user that this is an existing comment/docstring and proceed (justify it)\n\n2. This is a newly written comment: but it's in given, when, then format\n\t-> Tell the user it's a BDD comment and proceed (justify it)\n\t-> Note: This applies to comments only, not docstrings\n\n3. This is a newly written comment/docstring: but it's a necessary comment/docstring\n\t-> Tell the user why this comment/docstring is absolutely necessary and proceed (justify it)\n\t-> Examples of necessary comments: complex algorithms, security-related, performance optimization, regex, mathematical formulas\n\t-> Examples of necessary docstrings: public API documentation, complex module/class interfaces\n\t-> IMPORTANT: Most docstrings are unnecessary if the code is self-explanatory. Only keep truly essential ones.\n\n4. This is a newly written comment/docstring: but it's an unnecessary comment/docstring\n\t-> Apologize to the user and remove the comment/docstring.\n\t-> Make the code itself clearer so it can be understood without comments/docstrings.\n\t-> For verbose docstrings: refactor code to be self-documenting instead of adding lengthy explanations.\n\nCODE SMELL WARNING: Using comments as visual separators (e.g., \"// =========\", \"# ---\", \"// *** Section ***\")\nis a code smell. If you need separators, your file is too long or poorly organized.\nRefactor into smaller modules or use proper code organization instead of comment-based section dividers.\n\nMANDATORY REQUIREMENT: You must acknowledge this hook message and take one of the above actions.\nReview in the above priority order and take the corresponding action EVERY TIME this appears.\n\nDetected comments/docstrings:\n";
@@ -1,25 +0,0 @@
1
- /**
2
- * Get the cache directory for oh-my-opencode binaries.
3
- * On Windows: Uses %LOCALAPPDATA% or %APPDATA% (Windows conventions)
4
- * On Unix: Follows XDG Base Directory Specification
5
- */
6
- export declare function getCacheDir(): string;
7
- /**
8
- * Get the binary name based on platform.
9
- */
10
- export declare function getBinaryName(): string;
11
- /**
12
- * Get the cached binary path if it exists.
13
- */
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
- /**
21
- * Ensure the comment-checker binary is available.
22
- * First checks cache, then downloads if needed.
23
- * Returns the binary path or null if unavailable.
24
- */
25
- export declare function ensureCommentCheckerBinary(): Promise<string | null>;
@@ -1,2 +0,0 @@
1
- import type { CommentInfo, FilterResult } from "../types";
2
- export declare function filterBddComments(comment: CommentInfo): FilterResult;
@@ -1,2 +0,0 @@
1
- import type { CommentInfo, FilterResult } from "../types";
2
- export declare function filterDirectiveComments(comment: CommentInfo): FilterResult;
@@ -1,2 +0,0 @@
1
- import type { CommentInfo, FilterResult } from "../types";
2
- export declare function filterDocstringComments(comment: CommentInfo): FilterResult;
@@ -1,7 +0,0 @@
1
- import type { CommentInfo } from "../types";
2
- import { filterBddComments } from "./bdd";
3
- import { filterDirectiveComments } from "./directive";
4
- import { filterDocstringComments } from "./docstring";
5
- import { filterShebangComments } from "./shebang";
6
- export { filterBddComments, filterDirectiveComments, filterDocstringComments, filterShebangComments };
7
- export declare function applyFilters(comments: CommentInfo[]): CommentInfo[];
@@ -1,2 +0,0 @@
1
- import type { CommentInfo, FilterResult } from "../types";
2
- export declare function filterShebangComments(comment: CommentInfo): FilterResult;
@@ -1,19 +0,0 @@
1
- import type { CommentCheckerConfig } from "../../config/schema";
2
- export declare function createCommentCheckerHooks(config?: CommentCheckerConfig): {
3
- "tool.execute.before": (input: {
4
- tool: string;
5
- sessionID: string;
6
- callID: string;
7
- }, output: {
8
- args: Record<string, unknown>;
9
- }) => Promise<void>;
10
- "tool.execute.after": (input: {
11
- tool: string;
12
- sessionID: string;
13
- callID: string;
14
- }, output: {
15
- title: string;
16
- output: string;
17
- metadata: unknown;
18
- }) => Promise<void>;
19
- };
@@ -1,2 +0,0 @@
1
- import type { FileComments } from "../types";
2
- export declare function formatHookMessage(fileCommentsList: FileComments[]): string;
@@ -1,2 +0,0 @@
1
- export { buildCommentsXml } from "./xml-builder";
2
- export { formatHookMessage } from "./formatter";
@@ -1,2 +0,0 @@
1
- import type { FileComments } from "../types";
2
- export declare function buildCommentsXml(fileCommentsList: FileComments[]): string;
@@ -1,31 +0,0 @@
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
- export interface PendingCall {
11
- filePath: string;
12
- content?: string;
13
- oldString?: string;
14
- newString?: string;
15
- edits?: Array<{
16
- old_string: string;
17
- new_string: string;
18
- }>;
19
- tool: "write" | "edit" | "multiedit";
20
- sessionID: string;
21
- timestamp: number;
22
- }
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,2 +0,0 @@
1
- import type { SummarizeContext } from "../preemptive-compaction";
2
- export declare function createCompactionContextInjector(): (ctx: SummarizeContext) => Promise<void>;
@@ -1,18 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- export declare function createContextWindowMonitorHook(ctx: PluginInput): {
3
- "tool.execute.after": (input: {
4
- tool: string;
5
- sessionID: string;
6
- callID: string;
7
- }, output: {
8
- title: string;
9
- output: string;
10
- metadata: unknown;
11
- }) => Promise<void>;
12
- event: ({ event }: {
13
- event: {
14
- type: string;
15
- properties?: unknown;
16
- };
17
- }) => Promise<void>;
18
- };
@@ -1,3 +0,0 @@
1
- export declare const OPENCODE_STORAGE: string;
2
- export declare const AGENTS_INJECTOR_STORAGE: string;
3
- export declare const AGENTS_FILENAME = "AGENTS.md";
@@ -1,26 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- interface ToolExecuteInput {
3
- tool: string;
4
- sessionID: string;
5
- callID: string;
6
- }
7
- interface ToolExecuteOutput {
8
- title: string;
9
- output: string;
10
- metadata: unknown;
11
- }
12
- interface ToolExecuteBeforeOutput {
13
- args: unknown;
14
- }
15
- interface EventInput {
16
- event: {
17
- type: string;
18
- properties?: unknown;
19
- };
20
- }
21
- export declare function createDirectoryAgentsInjectorHook(ctx: PluginInput): {
22
- "tool.execute.before": (input: ToolExecuteInput, output: ToolExecuteBeforeOutput) => Promise<void>;
23
- "tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
24
- event: ({ event }: EventInput) => Promise<void>;
25
- };
26
- export {};
@@ -1,3 +0,0 @@
1
- export declare function loadInjectedPaths(sessionID: string): Set<string>;
2
- export declare function saveInjectedPaths(sessionID: string, paths: Set<string>): void;
3
- export declare function clearInjectedPaths(sessionID: string): void;
@@ -1,5 +0,0 @@
1
- export interface InjectedPathsData {
2
- sessionID: string;
3
- injectedPaths: string[];
4
- updatedAt: number;
5
- }
@@ -1,3 +0,0 @@
1
- export declare const OPENCODE_STORAGE: string;
2
- export declare const README_INJECTOR_STORAGE: string;
3
- export declare const README_FILENAME = "README.md";
@@ -1,26 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- interface ToolExecuteInput {
3
- tool: string;
4
- sessionID: string;
5
- callID: string;
6
- }
7
- interface ToolExecuteOutput {
8
- title: string;
9
- output: string;
10
- metadata: unknown;
11
- }
12
- interface ToolExecuteBeforeOutput {
13
- args: unknown;
14
- }
15
- interface EventInput {
16
- event: {
17
- type: string;
18
- properties?: unknown;
19
- };
20
- }
21
- export declare function createDirectoryReadmeInjectorHook(ctx: PluginInput): {
22
- "tool.execute.before": (input: ToolExecuteInput, output: ToolExecuteBeforeOutput) => Promise<void>;
23
- "tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
24
- event: ({ event }: EventInput) => Promise<void>;
25
- };
26
- export {};
@@ -1,3 +0,0 @@
1
- export declare function loadInjectedPaths(sessionID: string): Set<string>;
2
- export declare function saveInjectedPaths(sessionID: string, paths: Set<string>): void;
3
- export declare function clearInjectedPaths(sessionID: string): void;
@@ -1,5 +0,0 @@
1
- export interface InjectedPathsData {
2
- sessionID: string;
3
- injectedPaths: string[];
4
- updatedAt: number;
5
- }
@@ -1,31 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- /**
3
- * Known Edit tool error patterns that indicate the AI made a mistake
4
- */
5
- export declare const EDIT_ERROR_PATTERNS: readonly ["oldString and newString must be different", "oldString not found", "oldString found multiple times"];
6
- /**
7
- * System reminder injected when Edit tool fails due to AI mistake
8
- * Short, direct, and commanding - forces immediate corrective action
9
- */
10
- export declare const EDIT_ERROR_REMINDER = "\n[EDIT ERROR - IMMEDIATE ACTION REQUIRED]\n\nYou made an Edit mistake. STOP and do this NOW:\n\n1. READ the file immediately to see its ACTUAL current state\n2. VERIFY what the content really looks like (your assumption was wrong)\n3. APOLOGIZE briefly to the user for the error\n4. CONTINUE with corrected action based on the real file content\n\nDO NOT attempt another edit until you've read and verified the file state.\n";
11
- /**
12
- * Detects Edit tool errors caused by AI mistakes and injects a recovery reminder
13
- *
14
- * This hook catches common Edit tool failures:
15
- * - oldString and newString must be different (trying to "edit" to same content)
16
- * - oldString not found (wrong assumption about file content)
17
- * - oldString found multiple times (ambiguous match, need more context)
18
- *
19
- * @see https://github.com/sst/opencode/issues/4718
20
- */
21
- export declare function createEditErrorRecoveryHook(_ctx: PluginInput): {
22
- "tool.execute.after": (input: {
23
- tool: string;
24
- sessionID: string;
25
- callID: string;
26
- }, output: {
27
- title: string;
28
- output: string;
29
- metadata: unknown;
30
- }) => Promise<void>;
31
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import type { Message, Part } from "@opencode-ai/sdk";
2
- interface MessageWithParts {
3
- info: Message;
4
- parts: Part[];
5
- }
6
- type MessagesTransformHook = {
7
- "experimental.chat.messages.transform"?: (input: Record<string, never>, output: {
8
- messages: MessageWithParts[];
9
- }) => Promise<void>;
10
- };
11
- export declare function createEmptyMessageSanitizerHook(): MessagesTransformHook;
12
- export {};
@@ -1,12 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- export declare function createEmptyTaskResponseDetectorHook(_ctx: PluginInput): {
3
- "tool.execute.after": (input: {
4
- tool: string;
5
- sessionID: string;
6
- callID: string;
7
- }, output: {
8
- title: string;
9
- output: string;
10
- metadata: unknown;
11
- }) => Promise<void>;
12
- };
@@ -1,33 +0,0 @@
1
- export { createTodoContinuationEnforcer, type TodoContinuationEnforcer } from "./todo-continuation-enforcer";
2
- export { createContextWindowMonitorHook } from "./context-window-monitor";
3
- export { createSessionNotification } from "./session-notification";
4
- export { createSessionRecoveryHook, type SessionRecoveryHook, type SessionRecoveryOptions } from "./session-recovery";
5
- export { createCommentCheckerHooks } from "./comment-checker";
6
- export { createToolOutputTruncatorHook } from "./tool-output-truncator";
7
- export { createDirectoryAgentsInjectorHook } from "./directory-agents-injector";
8
- export { createDirectoryReadmeInjectorHook } from "./directory-readme-injector";
9
- export { createEmptyTaskResponseDetectorHook } from "./empty-task-response-detector";
10
- export { createAnthropicContextWindowLimitRecoveryHook, type AnthropicContextWindowLimitRecoveryOptions } from "./anthropic-context-window-limit-recovery";
11
- export { createPreemptiveCompactionHook, type PreemptiveCompactionOptions, type SummarizeContext, type BeforeSummarizeCallback } from "./preemptive-compaction";
12
- export { createCompactionContextInjector } from "./compaction-context-injector";
13
- export { createThinkModeHook } from "./think-mode";
14
- export { createClaudeCodeHooksHook } from "./claude-code-hooks";
15
- export { createRulesInjectorHook } from "./rules-injector";
16
- export { createBackgroundNotificationHook } from "./background-notification";
17
- export { createAutoUpdateCheckerHook } from "./auto-update-checker";
18
- export { createAgentUsageReminderHook } from "./agent-usage-reminder";
19
- export { createKeywordDetectorHook } from "./keyword-detector";
20
- export { createNonInteractiveEnvHook } from "./non-interactive-env";
21
- export { createInteractiveBashSessionHook } from "./interactive-bash-session";
22
- export { createEmptyMessageSanitizerHook } from "./empty-message-sanitizer";
23
- export { createThinkingBlockValidatorHook } from "./thinking-block-validator";
24
- export { createRalphLoopHook, type RalphLoopHook } from "./ralph-loop";
25
- export { createAutoSlashCommandHook } from "./auto-slash-command";
26
- export { createEditErrorRecoveryHook } from "./edit-error-recovery";
27
- export { createPrometheusMdOnlyHook } from "./prometheus-md-only";
28
- export { createTaskResumeInfoHook } from "./task-resume-info";
29
- export { createStartWorkHook } from "./start-work";
30
- export { createSisyphusOrchestratorHook } from "./sisyphus-orchestrator";
31
- export { createMaestroModeDetectorHook, MAESTRO_HOOK_NAME } from "../features/maestro/hooks";
32
- export { createMaestroSisyphusBridgeHook } from "./maestro-sisyphus-bridge";
33
- export { createTddEnforcementHook } from "./tdd-enforcement";
@@ -1,4 +0,0 @@
1
- export declare const OPENCODE_STORAGE: string;
2
- export declare const INTERACTIVE_BASH_SESSION_STORAGE: string;
3
- export declare const OMO_SESSION_PREFIX = "omo-";
4
- export declare function buildSessionReminderMessage(sessions: string[]): string;
@@ -1,23 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- interface ToolExecuteInput {
3
- tool: string;
4
- sessionID: string;
5
- callID: string;
6
- args?: Record<string, unknown>;
7
- }
8
- interface ToolExecuteOutput {
9
- title: string;
10
- output: string;
11
- metadata: unknown;
12
- }
13
- interface EventInput {
14
- event: {
15
- type: string;
16
- properties?: unknown;
17
- };
18
- }
19
- export declare function createInteractiveBashSessionHook(_ctx: PluginInput): {
20
- "tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
21
- event: ({ event }: EventInput) => Promise<void>;
22
- };
23
- export {};
@@ -1,4 +0,0 @@
1
- import type { InteractiveBashSessionState } from "./types";
2
- export declare function loadInteractiveBashSessionState(sessionID: string): InteractiveBashSessionState | null;
3
- export declare function saveInteractiveBashSessionState(state: InteractiveBashSessionState): void;
4
- export declare function clearInteractiveBashSessionState(sessionID: string): void;
@@ -1,10 +0,0 @@
1
- export interface InteractiveBashSessionState {
2
- sessionID: string;
3
- tmuxSessions: Set<string>;
4
- updatedAt: number;
5
- }
6
- export interface SerializedInteractiveBashSessionState {
7
- sessionID: string;
8
- tmuxSessions: string[];
9
- updatedAt: number;
10
- }
@@ -1,12 +0,0 @@
1
- export declare const CODE_BLOCK_PATTERN: RegExp;
2
- export declare const INLINE_CODE_PATTERN: RegExp;
3
- /**
4
- * Generates the ultrawork message based on agent context.
5
- * Planner agents get context-gathering focused instructions.
6
- * Other agents get the original strong agent utilization instructions.
7
- */
8
- export declare function getUltraworkMessage(agentName?: string): string;
9
- export declare const KEYWORD_DETECTORS: Array<{
10
- pattern: RegExp;
11
- message: string | ((agentName?: string) => string);
12
- }>;