oh-my-parallel-agent-opencode 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (532) hide show
  1. package/LICENSE.md +82 -0
  2. package/README.ja.md +392 -0
  3. package/README.ko.md +397 -0
  4. package/README.md +375 -56
  5. package/README.zh-cn.md +402 -0
  6. package/bin/oh-my-parallel-agent-opencode.js +80 -0
  7. package/bin/platform.js +38 -0
  8. package/bin/platform.test.ts +148 -0
  9. package/dist/agents/atlas.d.ts +22 -0
  10. package/dist/agents/dynamic-agent-prompt-builder.d.ts +30 -0
  11. package/dist/agents/explore.d.ts +7 -0
  12. package/dist/agents/hephaestus.d.ts +6 -0
  13. package/dist/agents/index.d.ts +12 -0
  14. package/dist/agents/librarian.d.ts +7 -0
  15. package/dist/agents/metis.d.ts +21 -0
  16. package/dist/agents/momus.d.ts +21 -0
  17. package/dist/agents/momus.test.d.ts +1 -0
  18. package/dist/agents/multimodal-looker.d.ts +7 -0
  19. package/dist/agents/oracle.d.ts +7 -0
  20. package/dist/agents/prometheus/behavioral-summary.d.ts +6 -0
  21. package/dist/agents/prometheus/high-accuracy-mode.d.ts +6 -0
  22. package/dist/agents/prometheus/identity-constraints.d.ts +7 -0
  23. package/dist/agents/prometheus/index.d.ts +39 -0
  24. package/dist/agents/prometheus/interview-mode.d.ts +7 -0
  25. package/dist/agents/prometheus/plan-generation.d.ts +7 -0
  26. package/dist/agents/prometheus/plan-template.d.ts +7 -0
  27. package/dist/agents/prometheus-prompt.test.d.ts +1 -0
  28. package/dist/agents/sisyphus-junior.d.ts +10 -0
  29. package/dist/agents/sisyphus-junior.test.d.ts +1 -0
  30. package/dist/agents/sisyphus.d.ts +8 -0
  31. package/dist/agents/types.d.ts +63 -0
  32. package/dist/agents/utils.d.ts +16 -0
  33. package/dist/agents/utils.test.d.ts +1 -0
  34. package/dist/cli/config-manager.d.ts +162 -0
  35. package/dist/cli/config-manager.test.d.ts +1 -0
  36. package/dist/cli/doctor/checks/auth.d.ts +7 -0
  37. package/dist/cli/doctor/checks/auth.test.d.ts +1 -0
  38. package/dist/cli/doctor/checks/config.d.ts +8 -0
  39. package/dist/cli/doctor/checks/config.test.d.ts +1 -0
  40. package/dist/cli/doctor/checks/dependencies.d.ts +8 -0
  41. package/dist/cli/doctor/checks/dependencies.test.d.ts +1 -0
  42. package/dist/cli/doctor/checks/gh.d.ts +13 -0
  43. package/dist/cli/doctor/checks/gh.test.d.ts +1 -0
  44. package/dist/cli/doctor/checks/index.d.ts +13 -0
  45. package/dist/cli/doctor/checks/lsp.d.ts +8 -0
  46. package/dist/cli/doctor/checks/lsp.test.d.ts +1 -0
  47. package/dist/cli/doctor/checks/mcp-oauth.d.ts +15 -0
  48. package/dist/cli/doctor/checks/mcp-oauth.test.d.ts +1 -0
  49. package/dist/cli/doctor/checks/mcp.d.ts +6 -0
  50. package/dist/cli/doctor/checks/mcp.test.d.ts +1 -0
  51. package/dist/cli/doctor/checks/model-resolution.d.ts +33 -0
  52. package/dist/cli/doctor/checks/model-resolution.test.d.ts +1 -0
  53. package/dist/cli/doctor/checks/opencode.d.ts +19 -0
  54. package/dist/cli/doctor/checks/opencode.test.d.ts +1 -0
  55. package/dist/cli/doctor/checks/plugin.d.ts +4 -0
  56. package/dist/cli/doctor/checks/plugin.test.d.ts +1 -0
  57. package/dist/cli/doctor/checks/version.d.ts +4 -0
  58. package/dist/cli/doctor/checks/version.test.d.ts +1 -0
  59. package/dist/cli/doctor/constants.d.ts +42 -0
  60. package/dist/cli/doctor/formatter.d.ts +12 -0
  61. package/dist/cli/doctor/formatter.test.d.ts +1 -0
  62. package/dist/cli/doctor/index.d.ts +5 -0
  63. package/dist/cli/doctor/runner.d.ts +7 -0
  64. package/dist/cli/doctor/runner.test.d.ts +1 -0
  65. package/dist/cli/doctor/types.d.ts +91 -0
  66. package/dist/cli/get-local-version/formatter.d.ts +3 -0
  67. package/dist/cli/get-local-version/index.d.ts +3 -0
  68. package/dist/cli/get-local-version/types.d.ts +13 -0
  69. package/dist/cli/index.d.ts +2 -0
  70. package/dist/cli/index.js +26903 -0
  71. package/dist/cli/index.test.d.ts +1 -0
  72. package/dist/cli/install.d.ts +2 -0
  73. package/dist/cli/install.test.d.ts +1 -0
  74. package/dist/cli/mcp-oauth/index.d.ts +6 -0
  75. package/dist/cli/mcp-oauth/index.test.d.ts +1 -0
  76. package/dist/cli/mcp-oauth/login.d.ts +6 -0
  77. package/dist/cli/mcp-oauth/login.test.d.ts +1 -0
  78. package/dist/cli/mcp-oauth/logout.d.ts +4 -0
  79. package/dist/cli/mcp-oauth/logout.test.d.ts +1 -0
  80. package/dist/cli/mcp-oauth/status.d.ts +1 -0
  81. package/dist/cli/mcp-oauth/status.test.d.ts +1 -0
  82. package/dist/cli/model-fallback.d.ts +18 -0
  83. package/dist/cli/model-fallback.test.d.ts +1 -0
  84. package/dist/cli/run/completion.d.ts +2 -0
  85. package/dist/cli/run/completion.test.d.ts +1 -0
  86. package/dist/cli/run/events.d.ts +14 -0
  87. package/dist/cli/run/events.test.d.ts +1 -0
  88. package/dist/cli/run/index.d.ts +2 -0
  89. package/dist/cli/run/runner.d.ts +2 -0
  90. package/dist/cli/run/types.d.ts +73 -0
  91. package/dist/cli/types.d.ts +39 -0
  92. package/dist/config/index.d.ts +2 -0
  93. package/dist/config/schema.d.ts +2651 -0
  94. package/dist/config/schema.test.d.ts +1 -0
  95. package/dist/features/background-agent/concurrency.d.ts +27 -0
  96. package/dist/features/background-agent/concurrency.test.d.ts +1 -0
  97. package/dist/features/background-agent/constants.d.ts +44 -0
  98. package/dist/features/background-agent/index.d.ts +4 -0
  99. package/dist/features/background-agent/manager.d.ts +118 -0
  100. package/dist/features/background-agent/manager.test.d.ts +1 -0
  101. package/dist/features/background-agent/result-handler.d.ts +15 -0
  102. package/dist/features/background-agent/spawner.d.ts +14 -0
  103. package/dist/features/background-agent/state.d.ts +35 -0
  104. package/dist/features/background-agent/types.d.ts +79 -0
  105. package/dist/features/boulder-state/constants.d.ts +10 -0
  106. package/dist/features/boulder-state/index.d.ts +3 -0
  107. package/dist/features/boulder-state/storage.d.ts +28 -0
  108. package/dist/features/boulder-state/storage.test.d.ts +1 -0
  109. package/dist/features/boulder-state/types.d.ts +24 -0
  110. package/dist/features/builtin-commands/commands.d.ts +2 -0
  111. package/dist/features/builtin-commands/index.d.ts +2 -0
  112. package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
  113. package/dist/features/builtin-commands/templates/ralph-loop.d.ts +2 -0
  114. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
  115. package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
  116. package/dist/features/builtin-commands/templates/stop-continuation.d.ts +1 -0
  117. package/dist/features/builtin-commands/templates/stop-continuation.test.d.ts +1 -0
  118. package/dist/features/builtin-commands/types.d.ts +6 -0
  119. package/dist/features/builtin-skills/index.d.ts +2 -0
  120. package/dist/features/builtin-skills/skills/dev-browser.d.ts +2 -0
  121. package/dist/features/builtin-skills/skills/frontend-ui-ux.d.ts +2 -0
  122. package/dist/features/builtin-skills/skills/git-master.d.ts +2 -0
  123. package/dist/features/builtin-skills/skills/index.d.ts +4 -0
  124. package/dist/features/builtin-skills/skills/playwright.d.ts +3 -0
  125. package/dist/features/builtin-skills/skills.d.ts +6 -0
  126. package/dist/features/builtin-skills/skills.test.d.ts +1 -0
  127. package/dist/features/builtin-skills/types.d.ts +15 -0
  128. package/dist/features/claude-code-agent-loader/index.d.ts +2 -0
  129. package/dist/features/claude-code-agent-loader/loader.d.ts +3 -0
  130. package/dist/features/claude-code-agent-loader/types.d.ts +14 -0
  131. package/dist/features/claude-code-command-loader/index.d.ts +2 -0
  132. package/dist/features/claude-code-command-loader/loader.d.ts +6 -0
  133. package/dist/features/claude-code-command-loader/types.d.ts +42 -0
  134. package/dist/features/claude-code-mcp-loader/env-expander.d.ts +2 -0
  135. package/dist/features/claude-code-mcp-loader/index.d.ts +10 -0
  136. package/dist/features/claude-code-mcp-loader/loader.d.ts +4 -0
  137. package/dist/features/claude-code-mcp-loader/loader.test.d.ts +1 -0
  138. package/dist/features/claude-code-mcp-loader/transformer.d.ts +2 -0
  139. package/dist/features/claude-code-mcp-loader/types.d.ts +39 -0
  140. package/dist/features/claude-code-plugin-loader/index.d.ts +3 -0
  141. package/dist/features/claude-code-plugin-loader/loader.d.ts +20 -0
  142. package/dist/features/claude-code-plugin-loader/types.d.ts +186 -0
  143. package/dist/features/claude-code-session-state/index.d.ts +1 -0
  144. package/dist/features/claude-code-session-state/state.d.ts +9 -0
  145. package/dist/features/claude-code-session-state/state.test.d.ts +1 -0
  146. package/dist/features/context-injector/collector.d.ts +11 -0
  147. package/dist/features/context-injector/collector.test.d.ts +1 -0
  148. package/dist/features/context-injector/index.d.ts +3 -0
  149. package/dist/features/context-injector/injector.d.ts +39 -0
  150. package/dist/features/context-injector/injector.test.d.ts +1 -0
  151. package/dist/features/context-injector/types.d.ts +83 -0
  152. package/dist/features/hook-message-injector/constants.d.ts +3 -0
  153. package/dist/features/hook-message-injector/index.d.ts +4 -0
  154. package/dist/features/hook-message-injector/injector.d.ts +19 -0
  155. package/dist/features/hook-message-injector/types.d.ts +46 -0
  156. package/dist/features/mcp-oauth/callback-server.d.ts +11 -0
  157. package/dist/features/mcp-oauth/callback-server.test.d.ts +1 -0
  158. package/dist/features/mcp-oauth/dcr.d.ts +34 -0
  159. package/dist/features/mcp-oauth/dcr.test.d.ts +1 -0
  160. package/dist/features/mcp-oauth/discovery.d.ts +8 -0
  161. package/dist/features/mcp-oauth/discovery.test.d.ts +1 -0
  162. package/dist/features/mcp-oauth/index.d.ts +1 -0
  163. package/dist/features/mcp-oauth/provider.d.ts +41 -0
  164. package/dist/features/mcp-oauth/provider.test.d.ts +1 -0
  165. package/dist/features/mcp-oauth/resource-indicator.d.ts +2 -0
  166. package/dist/features/mcp-oauth/resource-indicator.test.d.ts +1 -0
  167. package/dist/features/mcp-oauth/schema.d.ts +6 -0
  168. package/dist/features/mcp-oauth/schema.test.d.ts +1 -0
  169. package/dist/features/mcp-oauth/step-up.d.ts +8 -0
  170. package/dist/features/mcp-oauth/step-up.test.d.ts +1 -0
  171. package/dist/features/mcp-oauth/storage.d.ts +17 -0
  172. package/dist/features/mcp-oauth/storage.test.d.ts +1 -0
  173. package/dist/features/opencode-skill-loader/async-loader.d.ts +6 -0
  174. package/dist/features/opencode-skill-loader/async-loader.test.d.ts +1 -0
  175. package/dist/features/opencode-skill-loader/blocking.d.ts +2 -0
  176. package/dist/features/opencode-skill-loader/blocking.test.d.ts +1 -0
  177. package/dist/features/opencode-skill-loader/discover-worker.d.ts +1 -0
  178. package/dist/features/opencode-skill-loader/index.d.ts +4 -0
  179. package/dist/features/opencode-skill-loader/loader.d.ts +16 -0
  180. package/dist/features/opencode-skill-loader/loader.test.d.ts +1 -0
  181. package/dist/features/opencode-skill-loader/merger.d.ts +7 -0
  182. package/dist/features/opencode-skill-loader/skill-content.d.ts +21 -0
  183. package/dist/features/opencode-skill-loader/skill-content.test.d.ts +1 -0
  184. package/dist/features/opencode-skill-loader/types.d.ts +34 -0
  185. package/dist/features/sisyphus-swarm/mailbox/types.d.ts +191 -0
  186. package/dist/features/sisyphus-swarm/mailbox/types.test.d.ts +1 -0
  187. package/dist/features/sisyphus-tasks/storage.d.ts +9 -0
  188. package/dist/features/sisyphus-tasks/storage.test.d.ts +1 -0
  189. package/dist/features/sisyphus-tasks/types.d.ts +47 -0
  190. package/dist/features/sisyphus-tasks/types.test.d.ts +1 -0
  191. package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
  192. package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
  193. package/dist/features/skill-mcp-manager/index.d.ts +2 -0
  194. package/dist/features/skill-mcp-manager/manager.d.ts +50 -0
  195. package/dist/features/skill-mcp-manager/manager.test.d.ts +1 -0
  196. package/dist/features/skill-mcp-manager/types.d.ts +11 -0
  197. package/dist/features/task-toast-manager/index.d.ts +2 -0
  198. package/dist/features/task-toast-manager/manager.d.ts +58 -0
  199. package/dist/features/task-toast-manager/manager.test.d.ts +1 -0
  200. package/dist/features/task-toast-manager/types.d.ts +24 -0
  201. package/dist/features/tmux-subagent/action-executor.d.ts +22 -0
  202. package/dist/features/tmux-subagent/decision-engine.d.ts +38 -0
  203. package/dist/features/tmux-subagent/decision-engine.test.d.ts +1 -0
  204. package/dist/features/tmux-subagent/index.d.ts +5 -0
  205. package/dist/features/tmux-subagent/manager.d.ts +59 -0
  206. package/dist/features/tmux-subagent/manager.test.d.ts +1 -0
  207. package/dist/features/tmux-subagent/pane-state-querier.d.ts +2 -0
  208. package/dist/features/tmux-subagent/types.d.ts +53 -0
  209. package/dist/hooks/agent-usage-reminder/constants.d.ts +5 -0
  210. package/dist/hooks/agent-usage-reminder/index.d.ts +22 -0
  211. package/dist/hooks/agent-usage-reminder/storage.d.ts +4 -0
  212. package/dist/hooks/agent-usage-reminder/types.d.ts +6 -0
  213. package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +4 -0
  214. package/dist/hooks/anthropic-context-window-limit-recovery/executor.test.d.ts +1 -0
  215. package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +16 -0
  216. package/dist/hooks/anthropic-context-window-limit-recovery/parser.d.ts +2 -0
  217. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +7 -0
  218. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.test.d.ts +1 -0
  219. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +36 -0
  220. package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +28 -0
  221. package/dist/hooks/anthropic-context-window-limit-recovery/storage.test.d.ts +1 -0
  222. package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +37 -0
  223. package/dist/hooks/atlas/index.d.ts +35 -0
  224. package/dist/hooks/atlas/index.test.d.ts +1 -0
  225. package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
  226. package/dist/hooks/auto-slash-command/detector.d.ts +9 -0
  227. package/dist/hooks/auto-slash-command/detector.test.d.ts +1 -0
  228. package/dist/hooks/auto-slash-command/executor.d.ts +11 -0
  229. package/dist/hooks/auto-slash-command/index.d.ts +12 -0
  230. package/dist/hooks/auto-slash-command/index.test.d.ts +1 -0
  231. package/dist/hooks/auto-slash-command/types.d.ts +27 -0
  232. package/dist/hooks/auto-update-checker/cache.d.ts +3 -0
  233. package/dist/hooks/auto-update-checker/checker.d.ts +20 -0
  234. package/dist/hooks/auto-update-checker/checker.test.d.ts +1 -0
  235. package/dist/hooks/auto-update-checker/constants.d.ts +10 -0
  236. package/dist/hooks/auto-update-checker/index.d.ts +17 -0
  237. package/dist/hooks/auto-update-checker/index.test.d.ts +1 -0
  238. package/dist/hooks/auto-update-checker/types.d.ts +25 -0
  239. package/dist/hooks/background-notification/index.d.ts +18 -0
  240. package/dist/hooks/background-notification/types.d.ts +4 -0
  241. package/dist/hooks/category-skill-reminder/index.d.ts +22 -0
  242. package/dist/hooks/category-skill-reminder/index.test.d.ts +1 -0
  243. package/dist/hooks/claude-code-hooks/config-loader.d.ts +13 -0
  244. package/dist/hooks/claude-code-hooks/config.d.ts +3 -0
  245. package/dist/hooks/claude-code-hooks/index.d.ts +48 -0
  246. package/dist/hooks/claude-code-hooks/plugin-config.d.ts +8 -0
  247. package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +40 -0
  248. package/dist/hooks/claude-code-hooks/pre-compact.d.ts +16 -0
  249. package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +25 -0
  250. package/dist/hooks/claude-code-hooks/stop.d.ts +20 -0
  251. package/dist/hooks/claude-code-hooks/todo.d.ts +12 -0
  252. package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +5 -0
  253. package/dist/hooks/claude-code-hooks/transcript.d.ts +34 -0
  254. package/dist/hooks/claude-code-hooks/types.d.ts +183 -0
  255. package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +22 -0
  256. package/dist/hooks/comment-checker/cli.d.ts +52 -0
  257. package/dist/hooks/comment-checker/cli.test.d.ts +1 -0
  258. package/dist/hooks/comment-checker/downloader.d.ts +25 -0
  259. package/dist/hooks/comment-checker/index.d.ts +19 -0
  260. package/dist/hooks/comment-checker/types.d.ts +31 -0
  261. package/dist/hooks/compaction-context-injector/index.d.ts +8 -0
  262. package/dist/hooks/compaction-context-injector/index.test.d.ts +1 -0
  263. package/dist/hooks/context-window-monitor.d.ts +18 -0
  264. package/dist/hooks/delegate-task-retry/index.d.ts +24 -0
  265. package/dist/hooks/delegate-task-retry/index.test.d.ts +1 -0
  266. package/dist/hooks/directory-agents-injector/constants.d.ts +3 -0
  267. package/dist/hooks/directory-agents-injector/index.d.ts +26 -0
  268. package/dist/hooks/directory-agents-injector/storage.d.ts +1 -0
  269. package/dist/hooks/directory-readme-injector/constants.d.ts +3 -0
  270. package/dist/hooks/directory-readme-injector/index.d.ts +26 -0
  271. package/dist/hooks/directory-readme-injector/storage.d.ts +1 -0
  272. package/dist/hooks/edit-error-recovery/index.d.ts +31 -0
  273. package/dist/hooks/edit-error-recovery/index.test.d.ts +1 -0
  274. package/dist/hooks/empty-task-response-detector.d.ts +12 -0
  275. package/dist/hooks/index.d.ts +35 -0
  276. package/dist/hooks/interactive-bash-session/constants.d.ts +4 -0
  277. package/dist/hooks/interactive-bash-session/index.d.ts +23 -0
  278. package/dist/hooks/interactive-bash-session/storage.d.ts +4 -0
  279. package/dist/hooks/interactive-bash-session/types.d.ts +10 -0
  280. package/dist/hooks/keyword-detector/analyze/default.d.ts +12 -0
  281. package/dist/hooks/keyword-detector/analyze/index.d.ts +1 -0
  282. package/dist/hooks/keyword-detector/constants.d.ts +10 -0
  283. package/dist/hooks/keyword-detector/detector.d.ts +11 -0
  284. package/dist/hooks/keyword-detector/index.d.ts +23 -0
  285. package/dist/hooks/keyword-detector/index.test.d.ts +1 -0
  286. package/dist/hooks/keyword-detector/search/default.d.ts +12 -0
  287. package/dist/hooks/keyword-detector/search/index.d.ts +1 -0
  288. package/dist/hooks/keyword-detector/types.d.ts +4 -0
  289. package/dist/hooks/keyword-detector/ultrawork/default.d.ts +10 -0
  290. package/dist/hooks/keyword-detector/ultrawork/gpt5.2.d.ts +16 -0
  291. package/dist/hooks/keyword-detector/ultrawork/index.d.ts +17 -0
  292. package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +6 -0
  293. package/dist/hooks/keyword-detector/ultrawork/utils.d.ts +24 -0
  294. package/dist/hooks/non-interactive-env/constants.d.ts +34 -0
  295. package/dist/hooks/non-interactive-env/detector.d.ts +1 -0
  296. package/dist/hooks/non-interactive-env/index.d.ts +14 -0
  297. package/dist/hooks/non-interactive-env/index.test.d.ts +1 -0
  298. package/dist/hooks/non-interactive-env/types.d.ts +3 -0
  299. package/dist/hooks/prometheus-md-only/constants.d.ts +7 -0
  300. package/dist/hooks/prometheus-md-only/index.d.ts +12 -0
  301. package/dist/hooks/prometheus-md-only/index.test.d.ts +1 -0
  302. package/dist/hooks/question-label-truncator/index.d.ts +7 -0
  303. package/dist/hooks/question-label-truncator/index.test.d.ts +1 -0
  304. package/dist/hooks/ralph-loop/constants.d.ts +5 -0
  305. package/dist/hooks/ralph-loop/index.d.ts +21 -0
  306. package/dist/hooks/ralph-loop/index.test.d.ts +1 -0
  307. package/dist/hooks/ralph-loop/storage.d.ts +6 -0
  308. package/dist/hooks/ralph-loop/types.d.ts +17 -0
  309. package/dist/hooks/rules-injector/constants.d.ts +8 -0
  310. package/dist/hooks/rules-injector/finder.d.ts +33 -0
  311. package/dist/hooks/rules-injector/finder.test.d.ts +1 -0
  312. package/dist/hooks/rules-injector/index.d.ts +26 -0
  313. package/dist/hooks/rules-injector/matcher.d.ts +21 -0
  314. package/dist/hooks/rules-injector/output-path.d.ts +5 -0
  315. package/dist/hooks/rules-injector/output-path.test.d.ts +1 -0
  316. package/dist/hooks/rules-injector/parser.d.ts +18 -0
  317. package/dist/hooks/rules-injector/parser.test.d.ts +1 -0
  318. package/dist/hooks/rules-injector/storage.d.ts +9 -0
  319. package/dist/hooks/rules-injector/types.d.ts +54 -0
  320. package/dist/hooks/session-notification-utils.d.ts +9 -0
  321. package/dist/hooks/session-notification.d.ts +20 -0
  322. package/dist/hooks/session-notification.test.d.ts +1 -0
  323. package/dist/hooks/session-recovery/constants.d.ts +6 -0
  324. package/dist/hooks/session-recovery/index.d.ts +22 -0
  325. package/dist/hooks/session-recovery/index.test.d.ts +1 -0
  326. package/dist/hooks/session-recovery/storage.d.ts +19 -0
  327. package/dist/hooks/session-recovery/types.d.ts +90 -0
  328. package/dist/hooks/sisyphus-junior-notepad/constants.d.ts +2 -0
  329. package/dist/hooks/sisyphus-junior-notepad/index.d.ts +12 -0
  330. package/dist/hooks/start-work/index.d.ts +16 -0
  331. package/dist/hooks/start-work/index.test.d.ts +1 -0
  332. package/dist/hooks/stop-continuation-guard/index.d.ts +16 -0
  333. package/dist/hooks/stop-continuation-guard/index.test.d.ts +1 -0
  334. package/dist/hooks/subagent-question-blocker/index.d.ts +2 -0
  335. package/dist/hooks/subagent-question-blocker/index.test.d.ts +1 -0
  336. package/dist/hooks/task-resume-info/index.d.ts +11 -0
  337. package/dist/hooks/think-mode/detector.d.ts +5 -0
  338. package/dist/hooks/think-mode/index.d.ts +14 -0
  339. package/dist/hooks/think-mode/index.test.d.ts +1 -0
  340. package/dist/hooks/think-mode/switcher.d.ts +69 -0
  341. package/dist/hooks/think-mode/switcher.test.d.ts +1 -0
  342. package/dist/hooks/think-mode/types.d.ts +21 -0
  343. package/dist/hooks/thinking-block-validator/index.d.ts +30 -0
  344. package/dist/hooks/todo-continuation-enforcer.d.ts +19 -0
  345. package/dist/hooks/todo-continuation-enforcer.test.d.ts +1 -0
  346. package/dist/hooks/tool-output-truncator.d.ts +17 -0
  347. package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
  348. package/dist/hooks/unstable-agent-babysitter/index.d.ts +50 -0
  349. package/dist/hooks/unstable-agent-babysitter/index.test.d.ts +1 -0
  350. package/dist/index.d.ts +5 -0
  351. package/dist/index.js +76117 -0
  352. package/dist/index.test.d.ts +1 -0
  353. package/dist/mcp/context7.d.ts +9 -0
  354. package/dist/mcp/grep-app.d.ts +6 -0
  355. package/dist/mcp/index.d.ts +9 -0
  356. package/dist/mcp/index.test.d.ts +1 -0
  357. package/dist/mcp/types.d.ts +9 -0
  358. package/dist/mcp/websearch.d.ts +9 -0
  359. package/dist/oh-my-parallel-agent-opencode.schema.json +2182 -0
  360. package/dist/plugin-config.d.ts +4 -0
  361. package/dist/plugin-config.test.d.ts +1 -0
  362. package/dist/plugin-handlers/config-handler.d.ts +13 -0
  363. package/dist/plugin-handlers/config-handler.test.d.ts +1 -0
  364. package/dist/plugin-handlers/index.d.ts +1 -0
  365. package/dist/plugin-state.d.ts +6 -0
  366. package/dist/shared/agent-config-integration.test.d.ts +1 -0
  367. package/dist/shared/agent-display-names.d.ts +12 -0
  368. package/dist/shared/agent-display-names.test.d.ts +1 -0
  369. package/dist/shared/agent-tool-restrictions.d.ts +7 -0
  370. package/dist/shared/agent-variant.d.ts +9 -0
  371. package/dist/shared/agent-variant.test.d.ts +1 -0
  372. package/dist/shared/binary-downloader.d.ts +10 -0
  373. package/dist/shared/claude-config-dir.d.ts +1 -0
  374. package/dist/shared/claude-config-dir.test.d.ts +1 -0
  375. package/dist/shared/command-executor.d.ts +21 -0
  376. package/dist/shared/config-errors.d.ts +7 -0
  377. package/dist/shared/connected-providers-cache.d.ts +52 -0
  378. package/dist/shared/data-path.d.ts +30 -0
  379. package/dist/shared/deep-merge.d.ts +13 -0
  380. package/dist/shared/deep-merge.test.d.ts +1 -0
  381. package/dist/shared/dynamic-truncator.d.ts +27 -0
  382. package/dist/shared/external-plugin-detector.d.ts +18 -0
  383. package/dist/shared/external-plugin-detector.test.d.ts +1 -0
  384. package/dist/shared/file-reference-resolver.d.ts +1 -0
  385. package/dist/shared/file-utils.d.ts +7 -0
  386. package/dist/shared/first-message-variant.d.ts +11 -0
  387. package/dist/shared/first-message-variant.test.d.ts +1 -0
  388. package/dist/shared/frontmatter.d.ts +7 -0
  389. package/dist/shared/frontmatter.test.d.ts +1 -0
  390. package/dist/shared/hook-disabled.d.ts +2 -0
  391. package/dist/shared/index.d.ts +36 -0
  392. package/dist/shared/jsonc-parser.d.ts +15 -0
  393. package/dist/shared/jsonc-parser.test.d.ts +1 -0
  394. package/dist/shared/logger.d.ts +2 -0
  395. package/dist/shared/migration.d.ts +32 -0
  396. package/dist/shared/migration.test.d.ts +1 -0
  397. package/dist/shared/model-availability.d.ts +19 -0
  398. package/dist/shared/model-availability.test.d.ts +1 -0
  399. package/dist/shared/model-requirements.d.ts +13 -0
  400. package/dist/shared/model-requirements.test.d.ts +1 -0
  401. package/dist/shared/model-resolution-pipeline.d.ts +24 -0
  402. package/dist/shared/model-resolver.d.ts +22 -0
  403. package/dist/shared/model-resolver.test.d.ts +1 -0
  404. package/dist/shared/model-sanitizer.d.ts +3 -0
  405. package/dist/shared/model-suggestion-retry.d.ts +24 -0
  406. package/dist/shared/model-suggestion-retry.test.d.ts +1 -0
  407. package/dist/shared/ollama-ndjson-parser.d.ts +108 -0
  408. package/dist/shared/opencode-config-dir.d.ts +19 -0
  409. package/dist/shared/opencode-config-dir.test.d.ts +1 -0
  410. package/dist/shared/opencode-version.d.ts +19 -0
  411. package/dist/shared/opencode-version.test.d.ts +1 -0
  412. package/dist/shared/pattern-matcher.d.ts +3 -0
  413. package/dist/shared/permission-compat.d.ts +27 -0
  414. package/dist/shared/permission-compat.test.d.ts +1 -0
  415. package/dist/shared/session-cursor.d.ts +13 -0
  416. package/dist/shared/session-cursor.test.d.ts +1 -0
  417. package/dist/shared/session-injected-paths.d.ts +10 -0
  418. package/dist/shared/session-utils.d.ts +2 -0
  419. package/dist/shared/shell-env.d.ts +41 -0
  420. package/dist/shared/shell-env.test.d.ts +1 -0
  421. package/dist/shared/snake-case.d.ts +5 -0
  422. package/dist/shared/system-directive.d.ts +45 -0
  423. package/dist/shared/system-directive.test.d.ts +1 -0
  424. package/dist/shared/tmux/constants.d.ts +5 -0
  425. package/dist/shared/tmux/index.d.ts +3 -0
  426. package/dist/shared/tmux/tmux-utils.d.ts +17 -0
  427. package/dist/shared/tmux/tmux-utils.test.d.ts +1 -0
  428. package/dist/shared/tmux/types.d.ts +4 -0
  429. package/dist/shared/tool-name.d.ts +1 -0
  430. package/dist/shared/zip-extractor.d.ts +1 -0
  431. package/dist/tools/ast-grep/cli.d.ts +15 -0
  432. package/dist/tools/ast-grep/constants.d.ts +29 -0
  433. package/dist/tools/ast-grep/downloader.d.ts +5 -0
  434. package/dist/tools/ast-grep/index.d.ts +8 -0
  435. package/dist/tools/ast-grep/tools.d.ts +3 -0
  436. package/dist/tools/ast-grep/types.d.ts +58 -0
  437. package/dist/tools/ast-grep/utils.d.ts +5 -0
  438. package/dist/tools/background-task/constants.d.ts +3 -0
  439. package/dist/tools/background-task/index.d.ts +4 -0
  440. package/dist/tools/background-task/tools.d.ts +47 -0
  441. package/dist/tools/background-task/tools.test.d.ts +1 -0
  442. package/dist/tools/background-task/types.d.ts +20 -0
  443. package/dist/tools/call-omo-agent/constants.d.ts +2 -0
  444. package/dist/tools/call-omo-agent/index.d.ts +3 -0
  445. package/dist/tools/call-omo-agent/tools.d.ts +3 -0
  446. package/dist/tools/call-omo-agent/types.d.ts +24 -0
  447. package/dist/tools/delegate-task/categories.d.ts +17 -0
  448. package/dist/tools/delegate-task/constants.d.ts +30 -0
  449. package/dist/tools/delegate-task/executor.d.ts +75 -0
  450. package/dist/tools/delegate-task/helpers.d.ts +30 -0
  451. package/dist/tools/delegate-task/index.d.ts +4 -0
  452. package/dist/tools/delegate-task/prompt-builder.d.ts +6 -0
  453. package/dist/tools/delegate-task/timing.d.ts +11 -0
  454. package/dist/tools/delegate-task/tools.d.ts +6 -0
  455. package/dist/tools/delegate-task/tools.test.d.ts +1 -0
  456. package/dist/tools/delegate-task/types.d.ts +44 -0
  457. package/dist/tools/glob/cli.d.ts +11 -0
  458. package/dist/tools/glob/cli.test.d.ts +1 -0
  459. package/dist/tools/glob/constants.d.ts +6 -0
  460. package/dist/tools/glob/index.d.ts +2 -0
  461. package/dist/tools/glob/tools.d.ts +2 -0
  462. package/dist/tools/glob/types.d.ts +20 -0
  463. package/dist/tools/glob/utils.d.ts +2 -0
  464. package/dist/tools/grep/cli.d.ts +3 -0
  465. package/dist/tools/grep/constants.d.ts +17 -0
  466. package/dist/tools/grep/downloader.d.ts +3 -0
  467. package/dist/tools/grep/downloader.test.d.ts +1 -0
  468. package/dist/tools/grep/index.d.ts +2 -0
  469. package/dist/tools/grep/tools.d.ts +2 -0
  470. package/dist/tools/grep/types.d.ts +36 -0
  471. package/dist/tools/grep/utils.d.ts +3 -0
  472. package/dist/tools/index.d.ts +15 -0
  473. package/dist/tools/interactive-bash/constants.d.ts +3 -0
  474. package/dist/tools/interactive-bash/index.d.ts +3 -0
  475. package/dist/tools/interactive-bash/tools.d.ts +7 -0
  476. package/dist/tools/interactive-bash/utils.d.ts +3 -0
  477. package/dist/tools/look-at/constants.d.ts +2 -0
  478. package/dist/tools/look-at/index.d.ts +3 -0
  479. package/dist/tools/look-at/tools.d.ts +9 -0
  480. package/dist/tools/look-at/tools.test.d.ts +1 -0
  481. package/dist/tools/look-at/types.d.ts +4 -0
  482. package/dist/tools/lsp/client.d.ts +50 -0
  483. package/dist/tools/lsp/config.d.ts +17 -0
  484. package/dist/tools/lsp/config.test.d.ts +1 -0
  485. package/dist/tools/lsp/constants.d.ts +9 -0
  486. package/dist/tools/lsp/index.d.ts +6 -0
  487. package/dist/tools/lsp/tools.d.ts +7 -0
  488. package/dist/tools/lsp/types.d.ts +123 -0
  489. package/dist/tools/lsp/utils.d.ts +26 -0
  490. package/dist/tools/session-manager/constants.d.ts +12 -0
  491. package/dist/tools/session-manager/index.d.ts +3 -0
  492. package/dist/tools/session-manager/storage.d.ts +12 -0
  493. package/dist/tools/session-manager/storage.test.d.ts +1 -0
  494. package/dist/tools/session-manager/tools.d.ts +5 -0
  495. package/dist/tools/session-manager/tools.test.d.ts +1 -0
  496. package/dist/tools/session-manager/types.d.ts +89 -0
  497. package/dist/tools/session-manager/utils.d.ts +11 -0
  498. package/dist/tools/session-manager/utils.test.d.ts +1 -0
  499. package/dist/tools/skill/constants.d.ts +3 -0
  500. package/dist/tools/skill/index.d.ts +3 -0
  501. package/dist/tools/skill/tools.d.ts +4 -0
  502. package/dist/tools/skill/tools.test.d.ts +1 -0
  503. package/dist/tools/skill/types.d.ts +28 -0
  504. package/dist/tools/skill-mcp/constants.d.ts +2 -0
  505. package/dist/tools/skill-mcp/index.d.ts +3 -0
  506. package/dist/tools/skill-mcp/tools.d.ts +11 -0
  507. package/dist/tools/skill-mcp/tools.test.d.ts +1 -0
  508. package/dist/tools/skill-mcp/types.d.ts +8 -0
  509. package/dist/tools/slashcommand/index.d.ts +2 -0
  510. package/dist/tools/slashcommand/tools.d.ts +5 -0
  511. package/dist/tools/slashcommand/tools.test.d.ts +1 -0
  512. package/dist/tools/slashcommand/types.d.ts +24 -0
  513. package/package.json +77 -6
  514. package/postinstall.mjs +43 -0
  515. package/__tests__/agents.test.ts +0 -107
  516. package/__tests__/config-handler.test.ts +0 -198
  517. package/__tests__/dynamic-agent.test.ts +0 -68
  518. package/__tests__/schema.test.ts +0 -149
  519. package/__tests__/setup.test.ts +0 -16
  520. package/bun.lock +0 -29
  521. package/oh-my-parallel-agent-opencode.example.json +0 -7
  522. package/src/agents/explore.ts +0 -117
  523. package/src/agents/index.ts +0 -69
  524. package/src/agents/librarian.ts +0 -302
  525. package/src/agents/metis.ts +0 -341
  526. package/src/agents/momus.ts +0 -237
  527. package/src/agents/types.ts +0 -95
  528. package/src/config/schema.ts +0 -15
  529. package/src/index.ts +0 -116
  530. package/src/plugin-handlers/config-handler.ts +0 -129
  531. package/src/utils/dynamic-agent.ts +0 -37
  532. package/tsconfig.json +0 -19
@@ -0,0 +1,63 @@
1
+ import type { AgentConfig } from "@opencode-ai/sdk";
2
+ /**
3
+ * Agent mode determines UI model selection behavior:
4
+ * - "primary": Respects user's UI-selected model (sisyphus, atlas)
5
+ * - "subagent": Uses own fallback chain, ignores UI selection (oracle, explore, etc.)
6
+ * - "all": Available in both contexts (OpenCode compatibility)
7
+ */
8
+ export type AgentMode = "primary" | "subagent" | "all";
9
+ /**
10
+ * Agent factory function with static mode property.
11
+ * Mode is exposed as static property for pre-instantiation access.
12
+ */
13
+ export type AgentFactory = ((model: string) => AgentConfig) & {
14
+ mode: AgentMode;
15
+ };
16
+ /**
17
+ * Agent category for grouping in Sisyphus prompt sections
18
+ */
19
+ export type AgentCategory = "exploration" | "specialist" | "advisor" | "utility";
20
+ /**
21
+ * Cost classification for Tool Selection table
22
+ */
23
+ export type AgentCost = "FREE" | "CHEAP" | "EXPENSIVE";
24
+ /**
25
+ * Delegation trigger for Sisyphus prompt's Delegation Table
26
+ */
27
+ export interface DelegationTrigger {
28
+ /** Domain of work (e.g., "Frontend UI/UX") */
29
+ domain: string;
30
+ /** When to delegate (e.g., "Visual changes only...") */
31
+ trigger: string;
32
+ }
33
+ /**
34
+ * Metadata for generating Sisyphus prompt sections dynamically
35
+ * This allows adding/removing agents without manually updating the Sisyphus prompt
36
+ */
37
+ export interface AgentPromptMetadata {
38
+ /** Category for grouping in prompt sections */
39
+ category: AgentCategory;
40
+ /** Cost classification for Tool Selection table */
41
+ cost: AgentCost;
42
+ /** Domain triggers for Delegation Table */
43
+ triggers: DelegationTrigger[];
44
+ /** When to use this agent (for detailed sections) */
45
+ useWhen?: string[];
46
+ /** When NOT to use this agent */
47
+ avoidWhen?: string[];
48
+ /** Optional dedicated prompt section (markdown) - for agents like Oracle that have special sections */
49
+ dedicatedSection?: string;
50
+ /** Nickname/alias used in prompt (e.g., "Oracle" instead of "oracle") */
51
+ promptAlias?: string;
52
+ /** Key triggers that should appear in Phase 0 (e.g., "External library mentioned → fire librarian") */
53
+ keyTrigger?: string;
54
+ }
55
+ export declare function isGptModel(model: string): boolean;
56
+ export type BuiltinAgentName = "sisyphus" | "hephaestus" | "oracle" | "librarian" | "explore" | "multimodal-looker" | "metis" | "momus" | "atlas";
57
+ export type OverridableAgentName = "build" | BuiltinAgentName;
58
+ export type AgentName = BuiltinAgentName;
59
+ export type AgentOverrideConfig = Partial<AgentConfig> & {
60
+ prompt_append?: string;
61
+ variant?: string;
62
+ };
63
+ export type AgentOverrides = Partial<Record<OverridableAgentName, AgentOverrideConfig>>;
@@ -0,0 +1,16 @@
1
+ import type { AgentConfig } from "@opencode-ai/sdk";
2
+ import type { AgentOverrides, AgentFactory } from "./types";
3
+ import type { CategoriesConfig, GitMasterConfig } from "../config/schema";
4
+ import type { LoadedSkill } from "../features/opencode-skill-loader/types";
5
+ import type { BrowserAutomationProvider } from "../config/schema";
6
+ type AgentSource = AgentFactory | AgentConfig;
7
+ export declare function buildAgent(source: AgentSource, model: string, categories?: CategoriesConfig, gitMasterConfig?: GitMasterConfig, browserProvider?: BrowserAutomationProvider): AgentConfig;
8
+ /**
9
+ * Creates OmO-specific environment context (time, timezone, locale).
10
+ * Note: Working directory, platform, and date are already provided by OpenCode's system.ts,
11
+ * so we only include fields that OpenCode doesn't provide to avoid duplication.
12
+ * See: https://github.com/code-yeongyu/oh-my-parallel-agent-opencode/issues/379
13
+ */
14
+ export declare function createEnvContext(): string;
15
+ export declare function createBuiltinAgents(disabledAgents?: string[], agentOverrides?: AgentOverrides, directory?: string, systemDefaultModel?: string, categories?: CategoriesConfig, gitMasterConfig?: GitMasterConfig, discoveredSkills?: LoadedSkill[], client?: any, browserProvider?: BrowserAutomationProvider, uiSelectedModel?: string): Promise<Record<string, AgentConfig>>;
16
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,162 @@
1
+ import { type OpenCodeBinaryType, type OpenCodeConfigPaths } from "../shared";
2
+ import type { ConfigMergeResult, DetectedConfig, InstallConfig } from "./types";
3
+ interface ConfigContext {
4
+ binary: OpenCodeBinaryType;
5
+ version: string | null;
6
+ paths: OpenCodeConfigPaths;
7
+ }
8
+ export declare function initConfigContext(binary: OpenCodeBinaryType, version: string | null): void;
9
+ export declare function getConfigContext(): ConfigContext;
10
+ export declare function resetConfigContext(): void;
11
+ export declare function fetchLatestVersion(packageName: string): Promise<string | null>;
12
+ interface NpmDistTags {
13
+ latest?: string;
14
+ beta?: string;
15
+ next?: string;
16
+ [tag: string]: string | undefined;
17
+ }
18
+ export declare function fetchNpmDistTags(packageName: string): Promise<NpmDistTags | null>;
19
+ export declare function getPluginNameWithVersion(currentVersion: string): Promise<string>;
20
+ type ConfigFormat = "json" | "jsonc" | "none";
21
+ export declare function detectConfigFormat(): {
22
+ format: ConfigFormat;
23
+ path: string;
24
+ };
25
+ export declare function addPluginToOpenCodeConfig(currentVersion: string): Promise<ConfigMergeResult>;
26
+ export declare function generateOmoConfig(installConfig: InstallConfig): Record<string, unknown>;
27
+ export declare function writeOmoConfig(installConfig: InstallConfig): ConfigMergeResult;
28
+ export declare function isOpenCodeInstalled(): Promise<boolean>;
29
+ export declare function getOpenCodeVersion(): Promise<string | null>;
30
+ export declare function addAuthPlugins(config: InstallConfig): Promise<ConfigMergeResult>;
31
+ export interface BunInstallResult {
32
+ success: boolean;
33
+ timedOut?: boolean;
34
+ error?: string;
35
+ }
36
+ export declare function runBunInstall(): Promise<boolean>;
37
+ export declare function runBunInstallWithDetails(): Promise<BunInstallResult>;
38
+ /**
39
+ * Antigravity Provider Configuration
40
+ *
41
+ * IMPORTANT: Model names MUST use `antigravity-` prefix for stability.
42
+ *
43
+ * Since opencode-antigravity-auth v1.3.0, models use a variant system:
44
+ * - `antigravity-gemini-3-pro` with variants: low, high
45
+ * - `antigravity-gemini-3-flash` with variants: minimal, low, medium, high
46
+ *
47
+ * Legacy tier-suffixed names (e.g., `antigravity-gemini-3-pro-high`) still work
48
+ * but variants are the recommended approach.
49
+ *
50
+ * @see https://github.com/NoeFabris/opencode-antigravity-auth#models
51
+ */
52
+ export declare const ANTIGRAVITY_PROVIDER_CONFIG: {
53
+ google: {
54
+ name: string;
55
+ models: {
56
+ "antigravity-gemini-3-pro": {
57
+ name: string;
58
+ limit: {
59
+ context: number;
60
+ output: number;
61
+ };
62
+ modalities: {
63
+ input: string[];
64
+ output: string[];
65
+ };
66
+ variants: {
67
+ low: {
68
+ thinkingLevel: string;
69
+ };
70
+ high: {
71
+ thinkingLevel: string;
72
+ };
73
+ };
74
+ };
75
+ "antigravity-gemini-3-flash": {
76
+ name: string;
77
+ limit: {
78
+ context: number;
79
+ output: number;
80
+ };
81
+ modalities: {
82
+ input: string[];
83
+ output: string[];
84
+ };
85
+ variants: {
86
+ minimal: {
87
+ thinkingLevel: string;
88
+ };
89
+ low: {
90
+ thinkingLevel: string;
91
+ };
92
+ medium: {
93
+ thinkingLevel: string;
94
+ };
95
+ high: {
96
+ thinkingLevel: string;
97
+ };
98
+ };
99
+ };
100
+ "antigravity-claude-sonnet-4-5": {
101
+ name: string;
102
+ limit: {
103
+ context: number;
104
+ output: number;
105
+ };
106
+ modalities: {
107
+ input: string[];
108
+ output: string[];
109
+ };
110
+ };
111
+ "antigravity-claude-sonnet-4-5-thinking": {
112
+ name: string;
113
+ limit: {
114
+ context: number;
115
+ output: number;
116
+ };
117
+ modalities: {
118
+ input: string[];
119
+ output: string[];
120
+ };
121
+ variants: {
122
+ low: {
123
+ thinkingConfig: {
124
+ thinkingBudget: number;
125
+ };
126
+ };
127
+ max: {
128
+ thinkingConfig: {
129
+ thinkingBudget: number;
130
+ };
131
+ };
132
+ };
133
+ };
134
+ "antigravity-claude-opus-4-5-thinking": {
135
+ name: string;
136
+ limit: {
137
+ context: number;
138
+ output: number;
139
+ };
140
+ modalities: {
141
+ input: string[];
142
+ output: string[];
143
+ };
144
+ variants: {
145
+ low: {
146
+ thinkingConfig: {
147
+ thinkingBudget: number;
148
+ };
149
+ };
150
+ max: {
151
+ thinkingConfig: {
152
+ thinkingBudget: number;
153
+ };
154
+ };
155
+ };
156
+ };
157
+ };
158
+ };
159
+ };
160
+ export declare function addProviderConfig(config: InstallConfig): ConfigMergeResult;
161
+ export declare function detectCurrentConfig(): DetectedConfig;
162
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { CheckResult, CheckDefinition, AuthProviderInfo, AuthProviderId } from "../types";
2
+ export declare function getAuthProviderInfo(providerId: AuthProviderId): AuthProviderInfo;
3
+ export declare function checkAuthProvider(providerId: AuthProviderId): Promise<CheckResult>;
4
+ export declare function checkAnthropicAuth(): Promise<CheckResult>;
5
+ export declare function checkOpenAIAuth(): Promise<CheckResult>;
6
+ export declare function checkGoogleAuth(): Promise<CheckResult>;
7
+ export declare function getAuthCheckDefinitions(): CheckDefinition[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { CheckResult, CheckDefinition, ConfigInfo } from "../types";
2
+ export declare function validateConfig(configPath: string): {
3
+ valid: boolean;
4
+ errors: string[];
5
+ };
6
+ export declare function getConfigInfo(): ConfigInfo;
7
+ export declare function checkConfigValidity(): Promise<CheckResult>;
8
+ export declare function getConfigCheckDefinition(): CheckDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { CheckResult, CheckDefinition, DependencyInfo } from "../types";
2
+ export declare function checkAstGrepCli(): Promise<DependencyInfo>;
3
+ export declare function checkAstGrepNapi(): Promise<DependencyInfo>;
4
+ export declare function checkCommentChecker(): Promise<DependencyInfo>;
5
+ export declare function checkDependencyAstGrepCli(): Promise<CheckResult>;
6
+ export declare function checkDependencyAstGrepNapi(): Promise<CheckResult>;
7
+ export declare function checkDependencyCommentChecker(): Promise<CheckResult>;
8
+ export declare function getDependencyCheckDefinitions(): CheckDefinition[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { CheckResult, CheckDefinition } from "../types";
2
+ export interface GhCliInfo {
3
+ installed: boolean;
4
+ version: string | null;
5
+ path: string | null;
6
+ authenticated: boolean;
7
+ username: string | null;
8
+ scopes: string[];
9
+ error: string | null;
10
+ }
11
+ export declare function getGhCliInfo(): Promise<GhCliInfo>;
12
+ export declare function checkGhCli(): Promise<CheckResult>;
13
+ export declare function getGhCliCheckDefinition(): CheckDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { CheckDefinition } from "../types";
2
+ export * from "./opencode";
3
+ export * from "./plugin";
4
+ export * from "./config";
5
+ export * from "./model-resolution";
6
+ export * from "./auth";
7
+ export * from "./dependencies";
8
+ export * from "./gh";
9
+ export * from "./lsp";
10
+ export * from "./mcp";
11
+ export * from "./mcp-oauth";
12
+ export * from "./version";
13
+ export declare function getAllCheckDefinitions(): CheckDefinition[];
@@ -0,0 +1,8 @@
1
+ import type { CheckResult, CheckDefinition, LspServerInfo } from "../types";
2
+ export declare function getLspServersInfo(): Promise<LspServerInfo[]>;
3
+ export declare function getLspServerStats(servers: LspServerInfo[]): {
4
+ installed: number;
5
+ total: number;
6
+ };
7
+ export declare function checkLspServers(): Promise<CheckResult>;
8
+ export declare function getLspCheckDefinition(): CheckDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { CheckResult, CheckDefinition } from "../types";
2
+ interface OAuthTokenData {
3
+ accessToken: string;
4
+ refreshToken?: string;
5
+ expiresAt?: number;
6
+ clientInfo?: {
7
+ clientId: string;
8
+ clientSecret?: string;
9
+ };
10
+ }
11
+ type TokenStore = Record<string, OAuthTokenData>;
12
+ export declare function readTokenStore(): TokenStore | null;
13
+ export declare function checkMcpOAuthTokens(): Promise<CheckResult>;
14
+ export declare function getMcpOAuthCheckDefinition(): CheckDefinition;
15
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { CheckResult, CheckDefinition, McpServerInfo } from "../types";
2
+ export declare function getBuiltinMcpInfo(): McpServerInfo[];
3
+ export declare function getUserMcpInfo(): McpServerInfo[];
4
+ export declare function checkBuiltinMcpServers(): Promise<CheckResult>;
5
+ export declare function checkUserMcpServers(): Promise<CheckResult>;
6
+ export declare function getMcpCheckDefinitions(): CheckDefinition[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ import type { CheckResult, CheckDefinition } from "../types";
2
+ import { type ModelRequirement } from "../../../shared/model-requirements";
3
+ export interface AgentResolutionInfo {
4
+ name: string;
5
+ requirement: ModelRequirement;
6
+ userOverride?: string;
7
+ effectiveModel: string;
8
+ effectiveResolution: string;
9
+ }
10
+ export interface CategoryResolutionInfo {
11
+ name: string;
12
+ requirement: ModelRequirement;
13
+ userOverride?: string;
14
+ effectiveModel: string;
15
+ effectiveResolution: string;
16
+ }
17
+ export interface ModelResolutionInfo {
18
+ agents: AgentResolutionInfo[];
19
+ categories: CategoryResolutionInfo[];
20
+ }
21
+ interface OmoConfig {
22
+ agents?: Record<string, {
23
+ model?: string;
24
+ }>;
25
+ categories?: Record<string, {
26
+ model?: string;
27
+ }>;
28
+ }
29
+ export declare function getModelResolutionInfo(): ModelResolutionInfo;
30
+ export declare function getModelResolutionInfoWithOverrides(config: OmoConfig): ModelResolutionInfo;
31
+ export declare function checkModelResolution(): Promise<CheckResult>;
32
+ export declare function getModelResolutionCheckDefinition(): CheckDefinition;
33
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { CheckResult, CheckDefinition, OpenCodeInfo } from "../types";
2
+ export declare function getDesktopAppPaths(platform: NodeJS.Platform): string[];
3
+ export declare function getBinaryLookupCommand(platform: NodeJS.Platform): "which" | "where";
4
+ export declare function parseBinaryPaths(output: string): string[];
5
+ export declare function selectBinaryPath(paths: string[], platform: NodeJS.Platform): string | null;
6
+ export declare function buildVersionCommand(binaryPath: string, platform: NodeJS.Platform): string[];
7
+ export declare function findDesktopBinary(platform?: NodeJS.Platform, checkExists?: (path: string) => boolean): {
8
+ binary: string;
9
+ path: string;
10
+ } | null;
11
+ export declare function findOpenCodeBinary(): Promise<{
12
+ binary: string;
13
+ path: string;
14
+ } | null>;
15
+ export declare function getOpenCodeVersion(binaryPath: string, platform?: NodeJS.Platform): Promise<string | null>;
16
+ export declare function compareVersions(current: string, minimum: string): boolean;
17
+ export declare function getOpenCodeInfo(): Promise<OpenCodeInfo>;
18
+ export declare function checkOpenCodeInstallation(): Promise<CheckResult>;
19
+ export declare function getOpenCodeCheckDefinition(): CheckDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { CheckResult, CheckDefinition, PluginInfo } from "../types";
2
+ export declare function getPluginInfo(): PluginInfo;
3
+ export declare function checkPluginRegistration(): Promise<CheckResult>;
4
+ export declare function getPluginCheckDefinition(): CheckDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { CheckResult, CheckDefinition, VersionCheckInfo } from "../types";
2
+ export declare function getVersionInfo(): Promise<VersionCheckInfo>;
3
+ export declare function checkVersionStatus(): Promise<CheckResult>;
4
+ export declare function getVersionCheckDefinition(): CheckDefinition;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ export declare const SYMBOLS: {
2
+ readonly check: string;
3
+ readonly cross: string;
4
+ readonly warn: string;
5
+ readonly info: string;
6
+ readonly arrow: string;
7
+ readonly bullet: string;
8
+ readonly skip: string;
9
+ };
10
+ export declare const STATUS_COLORS: {
11
+ readonly pass: import("picocolors/types").Formatter;
12
+ readonly fail: import("picocolors/types").Formatter;
13
+ readonly warn: import("picocolors/types").Formatter;
14
+ readonly skip: import("picocolors/types").Formatter;
15
+ };
16
+ export declare const CHECK_IDS: {
17
+ readonly OPENCODE_INSTALLATION: "opencode-installation";
18
+ readonly PLUGIN_REGISTRATION: "plugin-registration";
19
+ readonly CONFIG_VALIDATION: "config-validation";
20
+ readonly MODEL_RESOLUTION: "model-resolution";
21
+ readonly AUTH_ANTHROPIC: "auth-anthropic";
22
+ readonly AUTH_OPENAI: "auth-openai";
23
+ readonly AUTH_GOOGLE: "auth-google";
24
+ readonly DEP_AST_GREP_CLI: "dep-ast-grep-cli";
25
+ readonly DEP_AST_GREP_NAPI: "dep-ast-grep-napi";
26
+ readonly DEP_COMMENT_CHECKER: "dep-comment-checker";
27
+ readonly GH_CLI: "gh-cli";
28
+ readonly LSP_SERVERS: "lsp-servers";
29
+ readonly MCP_BUILTIN: "mcp-builtin";
30
+ readonly MCP_USER: "mcp-user";
31
+ readonly MCP_OAUTH_TOKENS: "mcp-oauth-tokens";
32
+ readonly VERSION_STATUS: "version-status";
33
+ };
34
+ export declare const CHECK_NAMES: Record<string, string>;
35
+ export declare const CATEGORY_NAMES: Record<string, string>;
36
+ export declare const EXIT_CODES: {
37
+ readonly SUCCESS: 0;
38
+ readonly FAILURE: 1;
39
+ };
40
+ export declare const MIN_OPENCODE_VERSION = "1.0.150";
41
+ export declare const PACKAGE_NAME = "oh-my-parallel-agent-opencode";
42
+ export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];
@@ -0,0 +1,12 @@
1
+ import type { CheckResult, DoctorSummary, CheckCategory, DoctorResult } from "./types";
2
+ export declare function formatStatusSymbol(status: CheckResult["status"]): string;
3
+ export declare function formatCheckResult(result: CheckResult, verbose: boolean): string;
4
+ export declare function formatCategoryHeader(category: CheckCategory): string;
5
+ export declare function formatSummary(summary: DoctorSummary): string;
6
+ export declare function formatHeader(): string;
7
+ export declare function formatFooter(summary: DoctorSummary): string;
8
+ export declare function formatProgress(current: number, total: number, name: string): string;
9
+ export declare function formatJsonOutput(result: DoctorResult): string;
10
+ export declare function formatDetails(details: string[]): string;
11
+ export declare function formatBox(content: string, title?: string): string;
12
+ export declare function formatHelpSuggestions(results: CheckResult[]): string[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { DoctorOptions } from "./types";
2
+ export declare function doctor(options?: DoctorOptions): Promise<number>;
3
+ export * from "./types";
4
+ export { runDoctor } from "./runner";
5
+ export { formatJsonOutput } from "./formatter";
@@ -0,0 +1,7 @@
1
+ import type { DoctorOptions, DoctorResult, CheckDefinition, CheckResult, DoctorSummary, CheckCategory } from "./types";
2
+ export declare function runCheck(check: CheckDefinition): Promise<CheckResult>;
3
+ export declare function calculateSummary(results: CheckResult[], duration: number): DoctorSummary;
4
+ export declare function determineExitCode(results: CheckResult[]): number;
5
+ export declare function filterChecksByCategory(checks: CheckDefinition[], category?: CheckCategory): CheckDefinition[];
6
+ export declare function groupChecksByCategory(checks: CheckDefinition[]): Map<CheckCategory, CheckDefinition[]>;
7
+ export declare function runDoctor(options: DoctorOptions): Promise<DoctorResult>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,91 @@
1
+ export type CheckStatus = "pass" | "fail" | "warn" | "skip";
2
+ export interface CheckResult {
3
+ name: string;
4
+ status: CheckStatus;
5
+ message: string;
6
+ details?: string[];
7
+ duration?: number;
8
+ }
9
+ export type CheckFunction = () => Promise<CheckResult>;
10
+ export type CheckCategory = "installation" | "configuration" | "authentication" | "dependencies" | "tools" | "updates";
11
+ export interface CheckDefinition {
12
+ id: string;
13
+ name: string;
14
+ category: CheckCategory;
15
+ check: CheckFunction;
16
+ critical?: boolean;
17
+ }
18
+ export interface DoctorOptions {
19
+ verbose?: boolean;
20
+ json?: boolean;
21
+ category?: CheckCategory;
22
+ }
23
+ export interface DoctorSummary {
24
+ total: number;
25
+ passed: number;
26
+ failed: number;
27
+ warnings: number;
28
+ skipped: number;
29
+ duration: number;
30
+ }
31
+ export interface DoctorResult {
32
+ results: CheckResult[];
33
+ summary: DoctorSummary;
34
+ exitCode: number;
35
+ }
36
+ export interface OpenCodeInfo {
37
+ installed: boolean;
38
+ version: string | null;
39
+ path: string | null;
40
+ binary: "opencode" | "opencode-desktop" | null;
41
+ }
42
+ export interface PluginInfo {
43
+ registered: boolean;
44
+ configPath: string | null;
45
+ entry: string | null;
46
+ isPinned: boolean;
47
+ pinnedVersion: string | null;
48
+ }
49
+ export interface ConfigInfo {
50
+ exists: boolean;
51
+ path: string | null;
52
+ format: "json" | "jsonc" | null;
53
+ valid: boolean;
54
+ errors: string[];
55
+ }
56
+ export type AuthProviderId = "anthropic" | "openai" | "google";
57
+ export interface AuthProviderInfo {
58
+ id: AuthProviderId;
59
+ name: string;
60
+ pluginInstalled: boolean;
61
+ configured: boolean;
62
+ error?: string;
63
+ }
64
+ export interface DependencyInfo {
65
+ name: string;
66
+ required: boolean;
67
+ installed: boolean;
68
+ version: string | null;
69
+ path: string | null;
70
+ installHint?: string;
71
+ }
72
+ export interface LspServerInfo {
73
+ id: string;
74
+ installed: boolean;
75
+ extensions: string[];
76
+ source: "builtin" | "config" | "plugin";
77
+ }
78
+ export interface McpServerInfo {
79
+ id: string;
80
+ type: "builtin" | "user";
81
+ enabled: boolean;
82
+ valid: boolean;
83
+ error?: string;
84
+ }
85
+ export interface VersionCheckInfo {
86
+ currentVersion: string | null;
87
+ latestVersion: string | null;
88
+ isUpToDate: boolean;
89
+ isLocalDev: boolean;
90
+ isPinned: boolean;
91
+ }
@@ -0,0 +1,3 @@
1
+ import type { VersionInfo } from "./types";
2
+ export declare function formatVersionOutput(info: VersionInfo): string;
3
+ export declare function formatJsonOutput(info: VersionInfo): string;
@@ -0,0 +1,3 @@
1
+ import type { GetLocalVersionOptions } from "./types";
2
+ export declare function getLocalVersion(options?: GetLocalVersionOptions): Promise<number>;
3
+ export * from "./types";
@@ -0,0 +1,13 @@
1
+ export interface VersionInfo {
2
+ currentVersion: string | null;
3
+ latestVersion: string | null;
4
+ isUpToDate: boolean;
5
+ isLocalDev: boolean;
6
+ isPinned: boolean;
7
+ pinnedVersion: string | null;
8
+ status: "up-to-date" | "outdated" | "local-dev" | "pinned" | "error" | "unknown";
9
+ }
10
+ export interface GetLocalVersionOptions {
11
+ directory?: string;
12
+ json?: boolean;
13
+ }
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bun
2
+ export {};