@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,56 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { TrackedTask, TaskStatus } from "./types";
3
- import type { ConcurrencyManager } from "../background-agent/concurrency";
4
- type OpencodeClient = PluginInput["client"];
5
- export declare class TaskToastManager {
6
- private tasks;
7
- private client;
8
- private concurrencyManager?;
9
- constructor(client: OpencodeClient, concurrencyManager?: ConcurrencyManager);
10
- setConcurrencyManager(manager: ConcurrencyManager): void;
11
- addTask(task: {
12
- id: string;
13
- description: string;
14
- agent: string;
15
- isBackground: boolean;
16
- status?: TaskStatus;
17
- skills?: string[];
18
- }): void;
19
- /**
20
- * Update task status
21
- */
22
- updateTask(id: string, status: TaskStatus): void;
23
- /**
24
- * Remove completed/error task
25
- */
26
- removeTask(id: string): void;
27
- /**
28
- * Get all running tasks (newest first)
29
- */
30
- getRunningTasks(): TrackedTask[];
31
- /**
32
- * Get all queued tasks
33
- */
34
- getQueuedTasks(): TrackedTask[];
35
- /**
36
- * Format duration since task started
37
- */
38
- private formatDuration;
39
- private getConcurrencyInfo;
40
- private buildTaskListMessage;
41
- /**
42
- * Show consolidated toast with all running/queued tasks
43
- */
44
- private showTaskListToast;
45
- /**
46
- * Show task completion toast
47
- */
48
- showCompletionToast(task: {
49
- id: string;
50
- description: string;
51
- duration: string;
52
- }): void;
53
- }
54
- export declare function getTaskToastManager(): TaskToastManager | null;
55
- export declare function initTaskToastManager(client: OpencodeClient, concurrencyManager?: ConcurrencyManager): TaskToastManager;
56
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- export type TaskStatus = "running" | "queued" | "completed" | "error";
2
- export interface TrackedTask {
3
- id: string;
4
- description: string;
5
- agent: string;
6
- status: TaskStatus;
7
- startedAt: Date;
8
- isBackground: boolean;
9
- skills?: string[];
10
- }
11
- export interface TaskToastOptions {
12
- title: string;
13
- message: string;
14
- variant: "info" | "success" | "warning" | "error";
15
- duration?: number;
16
- }
@@ -1,2 +0,0 @@
1
- export * from "./sisyphus";
2
- export * from "./maestro";
@@ -1,43 +0,0 @@
1
- import type { WorkflowEngineContract_v1, EngineCapabilities, WorkflowContext, WorkflowPlan, WorkflowTask, WorkflowTrack, WorkflowResult, WorkflowEvent, WorkflowEventListener, CreatePlanRequest, ExecutePlanRequest, UpdateTaskRequest, SessionState, HandoffPayload, DesignSessionState, DesignPhase, PlanProgress } from "../../contracts/v1";
2
- import { SisyphusAdapter } from "../sisyphus";
3
- export declare class MaestroAdapter implements WorkflowEngineContract_v1 {
4
- readonly name = "MaestroAdapter";
5
- readonly version = "1.0.0";
6
- readonly capabilities: EngineCapabilities;
7
- private sisyphusAdapter;
8
- private listeners;
9
- private projectRoot;
10
- private designSession;
11
- constructor(sisyphusAdapter?: SisyphusAdapter);
12
- initialize(context: WorkflowContext): Promise<WorkflowResult>;
13
- shutdown(): Promise<void>;
14
- createPlan(request: CreatePlanRequest, context: WorkflowContext): Promise<WorkflowResult<WorkflowPlan>>;
15
- getActivePlan(context: WorkflowContext): Promise<WorkflowPlan | null>;
16
- getPlanProgress(planId: string): Promise<PlanProgress | null>;
17
- getReadyTasks(planId: string): Promise<WorkflowTask[]>;
18
- updateTask(request: UpdateTaskRequest): Promise<WorkflowResult<WorkflowTask>>;
19
- getTracks(planId: string): Promise<WorkflowTrack[]>;
20
- getReadyTracks(planId: string): Promise<WorkflowTrack[]>;
21
- execute(request: ExecutePlanRequest, context: WorkflowContext): Promise<WorkflowResult>;
22
- canExecuteParallel(planId: string): Promise<boolean>;
23
- getSessionState(sessionId: string): Promise<SessionState | null>;
24
- createHandoff(context: WorkflowContext): Promise<WorkflowResult<HandoffPayload>>;
25
- restoreFromHandoff(payload: HandoffPayload, context: WorkflowContext): Promise<WorkflowResult>;
26
- startDesignSession(context: WorkflowContext): Promise<WorkflowResult<DesignSessionState>>;
27
- advanceDesignPhase(currentPhase: DesignPhase): Promise<WorkflowResult<DesignSessionState>>;
28
- getDesignSessionState(): Promise<DesignSessionState | null>;
29
- on(listener: WorkflowEventListener): () => void;
30
- emit(event: WorkflowEvent): void;
31
- private ensureConductorStructure;
32
- private generateTrackId;
33
- private getTrackDir;
34
- private generateDesignTemplate;
35
- private loadPlanFromTrack;
36
- private getLatestHandoffPath;
37
- private getTrackFileScopes;
38
- private hasNonOverlappingScopes;
39
- private generateHandoffSummary;
40
- private getRecommendedAction;
41
- private calculateProgress;
42
- }
43
- export declare function createMaestroAdapter(sisyphusAdapter?: SisyphusAdapter): MaestroAdapter;
@@ -1,30 +0,0 @@
1
- import type { WorkflowEngineContract_v1, EngineCapabilities, WorkflowContext, WorkflowPlan, WorkflowTask, WorkflowTrack, WorkflowResult, WorkflowEvent, WorkflowEventListener, CreatePlanRequest, ExecutePlanRequest, UpdateTaskRequest, SessionState, HandoffPayload, PlanProgress } from "../../contracts/v1";
2
- export declare class SisyphusAdapter implements WorkflowEngineContract_v1 {
3
- readonly name = "SisyphusAdapter";
4
- readonly version = "1.0.0";
5
- readonly capabilities: EngineCapabilities;
6
- private listeners;
7
- private projectRoot;
8
- private activePlanCache;
9
- initialize(context: WorkflowContext): Promise<WorkflowResult>;
10
- shutdown(): Promise<void>;
11
- createPlan(request: CreatePlanRequest, context: WorkflowContext): Promise<WorkflowResult<WorkflowPlan>>;
12
- getActivePlan(context: WorkflowContext): Promise<WorkflowPlan | null>;
13
- getPlanProgress(planId: string): Promise<PlanProgress | null>;
14
- getReadyTasks(planId: string): Promise<WorkflowTask[]>;
15
- updateTask(request: UpdateTaskRequest): Promise<WorkflowResult<WorkflowTask>>;
16
- getTracks(planId: string): Promise<WorkflowTrack[]>;
17
- getReadyTracks(planId: string): Promise<WorkflowTrack[]>;
18
- execute(request: ExecutePlanRequest, context: WorkflowContext): Promise<WorkflowResult>;
19
- canExecuteParallel(planId: string): Promise<boolean>;
20
- getSessionState(sessionId: string): Promise<SessionState | null>;
21
- createHandoff(context: WorkflowContext): Promise<WorkflowResult<HandoffPayload>>;
22
- restoreFromHandoff(payload: HandoffPayload, context: WorkflowContext): Promise<WorkflowResult>;
23
- on(listener: WorkflowEventListener): () => void;
24
- emit(event: WorkflowEvent): void;
25
- private generatePlanMarkdown;
26
- private parseTasksFromPlan;
27
- private updatePlanFile;
28
- private calculateProgress;
29
- }
30
- export declare function createSisyphusAdapter(): SisyphusAdapter;
@@ -1,27 +0,0 @@
1
- import type { EngineCapabilities, WorkflowContext, WorkflowPlan, WorkflowTask, WorkflowTrack, WorkflowResult, WorkflowEvent, WorkflowEventListener, CreatePlanRequest, ExecutePlanRequest, UpdateTaskRequest, SessionState, HandoffPayload, DesignSessionState, DesignPhase, PlanProgress } from "./types";
2
- export declare const CONTRACT_VERSION: "1.0.0";
3
- export interface WorkflowEngineContract_v1 {
4
- readonly name: string;
5
- readonly version: string;
6
- readonly capabilities: EngineCapabilities;
7
- initialize(context: WorkflowContext): Promise<WorkflowResult>;
8
- shutdown(): Promise<void>;
9
- createPlan(request: CreatePlanRequest, context: WorkflowContext): Promise<WorkflowResult<WorkflowPlan>>;
10
- getActivePlan(context: WorkflowContext): Promise<WorkflowPlan | null>;
11
- getPlanProgress(planId: string): Promise<PlanProgress | null>;
12
- getReadyTasks(planId: string): Promise<WorkflowTask[]>;
13
- updateTask(request: UpdateTaskRequest): Promise<WorkflowResult<WorkflowTask>>;
14
- getTracks(planId: string): Promise<WorkflowTrack[]>;
15
- getReadyTracks(planId: string): Promise<WorkflowTrack[]>;
16
- execute(request: ExecutePlanRequest, context: WorkflowContext): Promise<WorkflowResult>;
17
- canExecuteParallel(planId: string): Promise<boolean>;
18
- getSessionState(sessionId: string): Promise<SessionState | null>;
19
- createHandoff(context: WorkflowContext): Promise<WorkflowResult<HandoffPayload>>;
20
- restoreFromHandoff(payload: HandoffPayload, context: WorkflowContext): Promise<WorkflowResult>;
21
- startDesignSession?(context: WorkflowContext): Promise<WorkflowResult<DesignSessionState>>;
22
- advanceDesignPhase?(currentPhase: DesignPhase): Promise<WorkflowResult<DesignSessionState>>;
23
- getDesignSessionState?(): Promise<DesignSessionState | null>;
24
- on(listener: WorkflowEventListener): () => void;
25
- emit(event: WorkflowEvent): void;
26
- }
27
- export type WorkflowEngineFactory = (config?: Record<string, unknown>) => WorkflowEngineContract_v1;
@@ -1,2 +0,0 @@
1
- export * from "./types";
2
- export * from "./engine.contract";
@@ -1,346 +0,0 @@
1
- /**
2
- * Workflow Engine Contract Types (v1)
3
- *
4
- * Shared types for the Workflow Engine abstraction layer.
5
- * Enables multiple workflow engines (Sisyphus, Maestro) to implement
6
- * a common interface for orchestration, planning, and task execution.
7
- */
8
- /**
9
- * Engine capability flags for feature detection.
10
- * Allows runtime checking of what features an engine supports.
11
- */
12
- export interface EngineCapabilities {
13
- /** Supports TDD cycle (RED → GREEN → REFACTOR) */
14
- tdd: boolean;
15
- /** Supports parallel track execution via orchestrator */
16
- parallelExecution: boolean;
17
- /** Supports Double Diamond design phases */
18
- designPhases: boolean;
19
- /** Supports session handoff/preservation */
20
- sessionHandoff: boolean;
21
- /** Supports external issue tracking (Beads CLI) */
22
- externalTracking: boolean;
23
- /** Supports internal state tracking (Boulder) */
24
- internalTracking: boolean;
25
- /** Supports autonomous execution loops (Ralph) */
26
- autonomousExecution: boolean;
27
- /** Supports skill-based workflow routing */
28
- skillRouting: boolean;
29
- }
30
- /**
31
- * Status of a workflow task/bead.
32
- */
33
- export type TaskStatus = "pending" | "in_progress" | "completed" | "blocked" | "cancelled" | "skipped";
34
- /**
35
- * Priority levels for tasks.
36
- */
37
- export type TaskPriority = "critical" | "high" | "medium" | "low";
38
- /**
39
- * A single task/bead in the workflow.
40
- */
41
- export interface WorkflowTask {
42
- /** Unique identifier */
43
- id: string;
44
- /** Human-readable title */
45
- title: string;
46
- /** Detailed description */
47
- description?: string;
48
- /** Current status */
49
- status: TaskStatus;
50
- /** Priority level */
51
- priority: TaskPriority;
52
- /** Task IDs this task depends on (blockers) */
53
- dependencies: string[];
54
- /** Task IDs that depend on this task */
55
- dependents: string[];
56
- /** File paths this task affects (for parallel grouping) */
57
- fileScope?: string[];
58
- /** Labels/tags for categorization */
59
- labels?: string[];
60
- /** Progress notes and history */
61
- notes?: string[];
62
- /** ISO timestamp when created */
63
- createdAt: string;
64
- /** ISO timestamp when last updated */
65
- updatedAt: string;
66
- /** ISO timestamp when completed */
67
- completedAt?: string;
68
- /** Track ID this task belongs to */
69
- trackId?: string;
70
- }
71
- /**
72
- * A track is a grouping of related tasks for parallel execution.
73
- */
74
- export interface WorkflowTrack {
75
- /** Unique identifier (e.g., "BlueLake", "GreenCastle") */
76
- id: string;
77
- /** Human-readable name */
78
- name: string;
79
- /** Description of the track's purpose */
80
- description?: string;
81
- /** Task IDs in this track */
82
- taskIds: string[];
83
- /** Current phase of the track */
84
- phase: TrackPhase;
85
- /** Whether this track is ready for execution */
86
- isReady: boolean;
87
- /** Assigned agent/worker for parallel execution */
88
- assignedAgent?: string;
89
- /** File paths this track exclusively owns */
90
- fileReservations?: string[];
91
- }
92
- /**
93
- * Phase of a track in the workflow pipeline.
94
- */
95
- export type TrackPhase = "design" | "planning" | "ready" | "executing" | "completed";
96
- /**
97
- * A workflow plan containing tasks and tracks.
98
- */
99
- export interface WorkflowPlan {
100
- /** Unique plan identifier */
101
- id: string;
102
- /** Plan name */
103
- name: string;
104
- /** Path to plan file (if file-based) */
105
- filePath?: string;
106
- /** All tasks in this plan */
107
- tasks: WorkflowTask[];
108
- /** Tracks for parallel execution grouping */
109
- tracks: WorkflowTrack[];
110
- /** Overall progress */
111
- progress: PlanProgress;
112
- /** ISO timestamp when plan was created */
113
- createdAt: string;
114
- /** ISO timestamp when plan was last updated */
115
- updatedAt: string;
116
- /** Session IDs that have worked on this plan */
117
- sessionIds: string[];
118
- /** Metadata for extensibility */
119
- metadata?: Record<string, unknown>;
120
- }
121
- /**
122
- * Plan progress summary.
123
- */
124
- export interface PlanProgress {
125
- /** Total number of tasks */
126
- total: number;
127
- /** Number of completed tasks */
128
- completed: number;
129
- /** Number of in-progress tasks */
130
- inProgress: number;
131
- /** Number of blocked tasks */
132
- blocked: number;
133
- /** Whether all tasks are done */
134
- isComplete: boolean;
135
- /** Completion percentage (0-100) */
136
- percentage: number;
137
- }
138
- /**
139
- * Context passed to workflow operations.
140
- */
141
- export interface WorkflowContext {
142
- /** Current session ID */
143
- sessionId: string;
144
- /** Project root directory */
145
- projectRoot: string;
146
- /** Active plan (if any) */
147
- activePlan?: WorkflowPlan;
148
- /** Current track being worked on */
149
- currentTrack?: WorkflowTrack;
150
- /** Available skills for routing */
151
- availableSkills?: string[];
152
- /** User preferences/configuration */
153
- config?: WorkflowConfig;
154
- }
155
- /**
156
- * Workflow engine configuration.
157
- */
158
- export interface WorkflowConfig {
159
- /** Enable TDD by default */
160
- tddEnabled?: boolean;
161
- /** Maximum parallel tracks */
162
- maxParallelTracks?: number;
163
- /** Enable autonomous execution */
164
- autonomousEnabled?: boolean;
165
- /** Custom tracking backend */
166
- trackingBackend?: "boulder" | "beads" | "both";
167
- /** Skill routing mode */
168
- skillRoutingMode?: "maestro" | "sisyphus" | "auto";
169
- }
170
- /**
171
- * Request to create a new plan.
172
- */
173
- export interface CreatePlanRequest {
174
- /** Plan name */
175
- name: string;
176
- /** Optional source document (PRD, design.md) */
177
- sourceDocument?: string;
178
- /** Initial tasks to include */
179
- initialTasks?: Omit<WorkflowTask, "id" | "createdAt" | "updatedAt">[];
180
- /** Skip design phases (SPEED mode) */
181
- skipDesign?: boolean;
182
- }
183
- /**
184
- * Request to execute a plan or track.
185
- */
186
- export interface ExecutePlanRequest {
187
- /** Plan ID to execute */
188
- planId: string;
189
- /** Specific track ID (optional, defaults to all ready tracks) */
190
- trackId?: string;
191
- /** Execution mode */
192
- mode: ExecutionMode;
193
- /** Skills to use during execution */
194
- skills?: string[];
195
- /** Maximum iterations for autonomous mode */
196
- maxIterations?: number;
197
- }
198
- /**
199
- * Execution mode for plan/track execution.
200
- */
201
- export type ExecutionMode = "sequential" | "parallel" | "autonomous";
202
- /**
203
- * Request to update a task.
204
- */
205
- export interface UpdateTaskRequest {
206
- /** Task ID to update */
207
- taskId: string;
208
- /** New status */
209
- status?: TaskStatus;
210
- /** Add a progress note */
211
- note?: string;
212
- /** Completion reason (for close) */
213
- completionReason?: "completed" | "skipped" | "blocked";
214
- /** File paths to add to scope */
215
- addFiles?: string[];
216
- }
217
- /**
218
- * Result of a workflow operation.
219
- */
220
- export interface WorkflowResult<T = void> {
221
- /** Whether the operation succeeded */
222
- success: boolean;
223
- /** Result data (if successful) */
224
- data?: T;
225
- /** Error message (if failed) */
226
- error?: string;
227
- /** Warnings (non-fatal issues) */
228
- warnings?: string[];
229
- }
230
- /**
231
- * Session state for handoff between sessions.
232
- */
233
- export interface SessionState {
234
- /** Session ID */
235
- sessionId: string;
236
- /** Active plan state */
237
- activePlan?: {
238
- planId: string;
239
- currentTaskId?: string;
240
- currentTrackId?: string;
241
- };
242
- /** Important context to preserve */
243
- context?: {
244
- /** Key decisions made */
245
- decisions?: string[];
246
- /** Blockers encountered */
247
- blockers?: string[];
248
- /** Next steps planned */
249
- nextSteps?: string[];
250
- };
251
- /** ISO timestamp */
252
- timestamp: string;
253
- }
254
- /**
255
- * Handoff payload for session continuation.
256
- */
257
- export interface HandoffPayload {
258
- /** Previous session state */
259
- previousState: SessionState;
260
- /** Summary for the next session */
261
- summary: string;
262
- /** Recommended first action */
263
- recommendedAction?: string;
264
- }
265
- /**
266
- * Design phase in the unified pipeline.
267
- */
268
- export type DesignPhase = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
269
- /**
270
- * Design session state.
271
- */
272
- export interface DesignSessionState {
273
- /** Current phase */
274
- currentPhase: DesignPhase;
275
- /** Complexity score for mode routing */
276
- complexityScore?: number;
277
- /** Design mode (SPEED < 4, ASK 4-6, FULL > 6) */
278
- mode: "speed" | "ask" | "full";
279
- /** Design document path */
280
- designDocPath?: string;
281
- /** Research findings from hooks */
282
- researchFindings?: string[];
283
- /** Oracle verification result */
284
- oracleVerification?: {
285
- approved: boolean;
286
- concerns?: string[];
287
- };
288
- }
289
- /**
290
- * Events emitted by the workflow engine.
291
- */
292
- export type WorkflowEvent = {
293
- type: "plan:created";
294
- plan: WorkflowPlan;
295
- } | {
296
- type: "plan:updated";
297
- plan: WorkflowPlan;
298
- } | {
299
- type: "plan:ready";
300
- planPath: string;
301
- planName: string;
302
- autoExecute?: boolean;
303
- } | {
304
- type: "task:created";
305
- task: WorkflowTask;
306
- } | {
307
- type: "task:updated";
308
- task: WorkflowTask;
309
- previousStatus: TaskStatus;
310
- } | {
311
- type: "task:completed";
312
- task: WorkflowTask;
313
- } | {
314
- type: "track:ready";
315
- track: WorkflowTrack;
316
- } | {
317
- type: "track:executing";
318
- track: WorkflowTrack;
319
- agent?: string;
320
- } | {
321
- type: "track:completed";
322
- track: WorkflowTrack;
323
- } | {
324
- type: "design:phase-changed";
325
- phase: DesignPhase;
326
- previousPhase?: DesignPhase;
327
- } | {
328
- type: "execution:started";
329
- mode: ExecutionMode;
330
- trackIds: string[];
331
- } | {
332
- type: "execution:completed";
333
- success: boolean;
334
- summary?: string;
335
- } | {
336
- type: "execution:requested";
337
- planPath: string;
338
- triggeredBy: "maestro" | "prometheus" | "manual";
339
- } | {
340
- type: "handoff:created";
341
- payload: HandoffPayload;
342
- };
343
- /**
344
- * Event listener type.
345
- */
346
- export type WorkflowEventListener = (event: WorkflowEvent) => void | Promise<void>;
@@ -1 +0,0 @@
1
- export * from "./maestro-engine";
@@ -1,40 +0,0 @@
1
- import type { WorkflowEngineContract_v1, EngineCapabilities, WorkflowContext, WorkflowPlan, WorkflowTask, WorkflowTrack, WorkflowResult, WorkflowEvent, WorkflowEventListener, CreatePlanRequest, ExecutePlanRequest, UpdateTaskRequest, SessionState, HandoffPayload, DesignSessionState, DesignPhase, PlanProgress } from "../contracts/v1";
2
- import { SisyphusAdapter } from "../adapters/sisyphus";
3
- import { MaestroAdapter } from "../adapters/maestro";
4
- export interface MaestroEngineConfig {
5
- useMaestroDesign?: boolean;
6
- useMaestroTracking?: boolean;
7
- preferredExecutionMode?: "sisyphus" | "maestro";
8
- }
9
- export declare class MaestroEngine implements WorkflowEngineContract_v1 {
10
- readonly name = "MaestroEngine";
11
- readonly version = "1.0.0";
12
- readonly capabilities: EngineCapabilities;
13
- private sisyphusAdapter;
14
- private maestroAdapter;
15
- private config;
16
- private listeners;
17
- constructor(config?: MaestroEngineConfig);
18
- initialize(context: WorkflowContext): Promise<WorkflowResult>;
19
- shutdown(): Promise<void>;
20
- createPlan(request: CreatePlanRequest, context: WorkflowContext): Promise<WorkflowResult<WorkflowPlan>>;
21
- getActivePlan(context: WorkflowContext): Promise<WorkflowPlan | null>;
22
- getPlanProgress(planId: string): Promise<PlanProgress | null>;
23
- getReadyTasks(planId: string): Promise<WorkflowTask[]>;
24
- updateTask(request: UpdateTaskRequest): Promise<WorkflowResult<WorkflowTask>>;
25
- getTracks(planId: string): Promise<WorkflowTrack[]>;
26
- getReadyTracks(planId: string): Promise<WorkflowTrack[]>;
27
- execute(request: ExecutePlanRequest, context: WorkflowContext): Promise<WorkflowResult>;
28
- canExecuteParallel(planId: string): Promise<boolean>;
29
- getSessionState(sessionId: string): Promise<SessionState | null>;
30
- createHandoff(context: WorkflowContext): Promise<WorkflowResult<HandoffPayload>>;
31
- restoreFromHandoff(payload: HandoffPayload, context: WorkflowContext): Promise<WorkflowResult>;
32
- startDesignSession(context: WorkflowContext): Promise<WorkflowResult<DesignSessionState>>;
33
- advanceDesignPhase(currentPhase: DesignPhase): Promise<WorkflowResult<DesignSessionState>>;
34
- getDesignSessionState(): Promise<DesignSessionState | null>;
35
- on(listener: WorkflowEventListener): () => void;
36
- emit(event: WorkflowEvent): void;
37
- getSisyphusAdapter(): SisyphusAdapter;
38
- getMaestroAdapter(): MaestroAdapter;
39
- }
40
- export declare function createMaestroEngine(config?: MaestroEngineConfig): MaestroEngine;
@@ -1,4 +0,0 @@
1
- export * from "./contracts/v1";
2
- export * from "./adapters";
3
- export * from "./engines";
4
- export * from "./service";
@@ -1,6 +0,0 @@
1
- import type { WorkflowEngineContract_v1 } from "./contracts/v1";
2
- export declare function getWorkflowEngine(): WorkflowEngineContract_v1;
3
- export declare function resetWorkflowEngine(): Promise<void>;
4
- export { MaestroEngine } from "./engines/maestro-engine";
5
- export { SisyphusAdapter } from "./adapters/sisyphus";
6
- export { MaestroAdapter } from "./adapters/maestro";
@@ -1,5 +0,0 @@
1
- export declare const OPENCODE_STORAGE: string;
2
- export declare const AGENT_USAGE_REMINDER_STORAGE: string;
3
- export declare const TARGET_TOOLS: Set<string>;
4
- export declare const AGENT_TOOLS: Set<string>;
5
- export declare const REMINDER_MESSAGE = "\n[Agent Usage Reminder]\n\nYou called a search/fetch tool directly without leveraging specialized agents.\n\nRECOMMENDED: Use sisyphus_task with explore/librarian agents for better results:\n\n```\n// Parallel exploration - fire multiple agents simultaneously\nsisyphus_task(agent=\"explore\", prompt=\"Find all files matching pattern X\")\nsisyphus_task(agent=\"explore\", prompt=\"Search for implementation of Y\") \nsisyphus_task(agent=\"librarian\", prompt=\"Lookup documentation for Z\")\n\n// Then continue your work while they run in background\n// System will notify you when each completes\n```\n\nWHY:\n- Agents can perform deeper, more thorough searches\n- Background tasks run in parallel, saving time\n- Specialized agents have domain expertise\n- Reduces context window usage in main session\n\nALWAYS prefer: Multiple parallel sisyphus_task calls > Direct tool calls\n";
@@ -1,22 +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 EventInput {
13
- event: {
14
- type: string;
15
- properties?: unknown;
16
- };
17
- }
18
- export declare function createAgentUsageReminderHook(_ctx: PluginInput): {
19
- "tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
20
- event: ({ event }: EventInput) => Promise<void>;
21
- };
22
- export {};
@@ -1,4 +0,0 @@
1
- import type { AgentUsageState } from "./types";
2
- export declare function loadAgentUsageState(sessionID: string): AgentUsageState | null;
3
- export declare function saveAgentUsageState(state: AgentUsageState): void;
4
- export declare function clearAgentUsageState(sessionID: string): void;
@@ -1,6 +0,0 @@
1
- export interface AgentUsageState {
2
- sessionID: string;
3
- agentUsed: boolean;
4
- reminderCount: number;
5
- updatedAt: number;
6
- }
@@ -1,4 +0,0 @@
1
- import type { AutoCompactState } from "./types";
2
- import type { ExperimentalConfig } from "../../config";
3
- export declare function getLastAssistant(sessionID: string, client: any, directory: string): Promise<Record<string, unknown> | null>;
4
- export declare function executeCompact(sessionID: string, msg: Record<string, unknown>, autoCompactState: AutoCompactState, client: any, directory: string, experimental?: ExperimentalConfig, dcpForCompaction?: boolean): Promise<void>;
@@ -1,17 +0,0 @@
1
- import type { PluginInput } from "@opencode-ai/plugin";
2
- import type { ExperimentalConfig } from "../../config";
3
- export interface AnthropicContextWindowLimitRecoveryOptions {
4
- experimental?: ExperimentalConfig;
5
- dcpForCompaction?: boolean;
6
- }
7
- export declare function createAnthropicContextWindowLimitRecoveryHook(ctx: PluginInput, options?: AnthropicContextWindowLimitRecoveryOptions): {
8
- event: ({ event }: {
9
- event: {
10
- type: string;
11
- properties?: unknown;
12
- };
13
- }) => Promise<void>;
14
- };
15
- export type { AutoCompactState, DcpState, ParsedTokenLimitError, TruncateState } from "./types";
16
- export { parseAnthropicTokenLimitError } from "./parser";
17
- export { executeCompact, getLastAssistant } from "./executor";
@@ -1,2 +0,0 @@
1
- import type { ParsedTokenLimitError } from "./types";
2
- export declare function parseAnthropicTokenLimitError(err: unknown): ParsedTokenLimitError | null;