oh-my-musacode 0.0.1

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 (401) hide show
  1. package/LICENSE.md +82 -0
  2. package/README.ja.md +370 -0
  3. package/README.md +376 -0
  4. package/README.zh-cn.md +380 -0
  5. package/bin/oh-my-musacode-dev.js +80 -0
  6. package/bin/oh-my-musacode.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 +19 -0
  10. package/dist/agents/dynamic-agent-prompt-builder.d.ts +30 -0
  11. package/dist/agents/explore.d.ts +4 -0
  12. package/dist/agents/index.d.ts +11 -0
  13. package/dist/agents/librarian.d.ts +4 -0
  14. package/dist/agents/metis.d.ts +18 -0
  15. package/dist/agents/momus.d.ts +18 -0
  16. package/dist/agents/momus.test.d.ts +1 -0
  17. package/dist/agents/multimodal-looker.d.ts +4 -0
  18. package/dist/agents/musa-orchestrator-junior.d.ts +7 -0
  19. package/dist/agents/musa-orchestrator-junior.test.d.ts +1 -0
  20. package/dist/agents/musa-orchestrator.d.ts +3 -0
  21. package/dist/agents/oracle.d.ts +4 -0
  22. package/dist/agents/prometheus-prompt.d.ts +29 -0
  23. package/dist/agents/prometheus-prompt.test.d.ts +1 -0
  24. package/dist/agents/sisyphus-junior.d.ts +7 -0
  25. package/dist/agents/sisyphus-junior.test.d.ts +1 -0
  26. package/dist/agents/sisyphus.d.ts +3 -0
  27. package/dist/agents/types.d.ts +50 -0
  28. package/dist/agents/utils.d.ts +14 -0
  29. package/dist/agents/utils.test.d.ts +1 -0
  30. package/dist/cli/config-manager.d.ts +99 -0
  31. package/dist/cli/config-manager.test.d.ts +1 -0
  32. package/dist/cli/doctor/checks/auth.d.ts +7 -0
  33. package/dist/cli/doctor/checks/auth.test.d.ts +1 -0
  34. package/dist/cli/doctor/checks/config.d.ts +8 -0
  35. package/dist/cli/doctor/checks/config.test.d.ts +1 -0
  36. package/dist/cli/doctor/checks/dependencies.d.ts +8 -0
  37. package/dist/cli/doctor/checks/dependencies.test.d.ts +1 -0
  38. package/dist/cli/doctor/checks/gh.d.ts +13 -0
  39. package/dist/cli/doctor/checks/gh.test.d.ts +1 -0
  40. package/dist/cli/doctor/checks/index.d.ts +11 -0
  41. package/dist/cli/doctor/checks/lsp.d.ts +8 -0
  42. package/dist/cli/doctor/checks/lsp.test.d.ts +1 -0
  43. package/dist/cli/doctor/checks/mcp.d.ts +6 -0
  44. package/dist/cli/doctor/checks/mcp.test.d.ts +1 -0
  45. package/dist/cli/doctor/checks/musacode.d.ts +14 -0
  46. package/dist/cli/doctor/checks/musacode.test.d.ts +1 -0
  47. package/dist/cli/doctor/checks/plugin.d.ts +4 -0
  48. package/dist/cli/doctor/checks/plugin.test.d.ts +1 -0
  49. package/dist/cli/doctor/checks/version.d.ts +4 -0
  50. package/dist/cli/doctor/checks/version.test.d.ts +1 -0
  51. package/dist/cli/doctor/constants.d.ts +40 -0
  52. package/dist/cli/doctor/formatter.d.ts +12 -0
  53. package/dist/cli/doctor/formatter.test.d.ts +1 -0
  54. package/dist/cli/doctor/index.d.ts +5 -0
  55. package/dist/cli/doctor/runner.d.ts +7 -0
  56. package/dist/cli/doctor/runner.test.d.ts +1 -0
  57. package/dist/cli/doctor/types.d.ts +91 -0
  58. package/dist/cli/get-local-version/formatter.d.ts +3 -0
  59. package/dist/cli/get-local-version/index.d.ts +3 -0
  60. package/dist/cli/get-local-version/types.d.ts +13 -0
  61. package/dist/cli/index.d.ts +2 -0
  62. package/dist/cli/index.js +25243 -0
  63. package/dist/cli/install.d.ts +2 -0
  64. package/dist/cli/run/completion.d.ts +2 -0
  65. package/dist/cli/run/completion.test.d.ts +1 -0
  66. package/dist/cli/run/events.d.ts +12 -0
  67. package/dist/cli/run/events.test.d.ts +1 -0
  68. package/dist/cli/run/index.d.ts +2 -0
  69. package/dist/cli/run/runner.d.ts +2 -0
  70. package/dist/cli/run/types.d.ts +71 -0
  71. package/dist/cli/types.d.ts +27 -0
  72. package/dist/config/index.d.ts +2 -0
  73. package/dist/config/schema.d.ts +1835 -0
  74. package/dist/config/schema.test.d.ts +1 -0
  75. package/dist/features/background-agent/concurrency.d.ts +27 -0
  76. package/dist/features/background-agent/concurrency.test.d.ts +1 -0
  77. package/dist/features/background-agent/index.d.ts +3 -0
  78. package/dist/features/background-agent/manager.d.ts +104 -0
  79. package/dist/features/background-agent/manager.test.d.ts +1 -0
  80. package/dist/features/background-agent/types.d.ts +73 -0
  81. package/dist/features/boulder-state/constants.d.ts +10 -0
  82. package/dist/features/boulder-state/index.d.ts +3 -0
  83. package/dist/features/boulder-state/storage.d.ts +28 -0
  84. package/dist/features/boulder-state/storage.test.d.ts +1 -0
  85. package/dist/features/boulder-state/types.d.ts +24 -0
  86. package/dist/features/builtin-commands/commands.d.ts +2 -0
  87. package/dist/features/builtin-commands/index.d.ts +2 -0
  88. package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
  89. package/dist/features/builtin-commands/templates/ralph-loop.d.ts +2 -0
  90. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
  91. package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
  92. package/dist/features/builtin-commands/types.d.ts +6 -0
  93. package/dist/features/builtin-skills/index.d.ts +2 -0
  94. package/dist/features/builtin-skills/skills.d.ts +2 -0
  95. package/dist/features/builtin-skills/types.d.ts +15 -0
  96. package/dist/features/claude-code-agent-loader/index.d.ts +2 -0
  97. package/dist/features/claude-code-agent-loader/loader.d.ts +3 -0
  98. package/dist/features/claude-code-agent-loader/types.d.ts +14 -0
  99. package/dist/features/claude-code-command-loader/index.d.ts +2 -0
  100. package/dist/features/claude-code-command-loader/loader.d.ts +6 -0
  101. package/dist/features/claude-code-command-loader/types.d.ts +42 -0
  102. package/dist/features/claude-code-mcp-loader/env-expander.d.ts +2 -0
  103. package/dist/features/claude-code-mcp-loader/index.d.ts +10 -0
  104. package/dist/features/claude-code-mcp-loader/loader.d.ts +4 -0
  105. package/dist/features/claude-code-mcp-loader/loader.test.d.ts +1 -0
  106. package/dist/features/claude-code-mcp-loader/transformer.d.ts +2 -0
  107. package/dist/features/claude-code-mcp-loader/types.d.ts +35 -0
  108. package/dist/features/claude-code-plugin-loader/index.d.ts +3 -0
  109. package/dist/features/claude-code-plugin-loader/loader.d.ts +20 -0
  110. package/dist/features/claude-code-plugin-loader/types.d.ts +186 -0
  111. package/dist/features/claude-code-session-state/index.d.ts +1 -0
  112. package/dist/features/claude-code-session-state/state.d.ts +9 -0
  113. package/dist/features/claude-code-session-state/state.test.d.ts +1 -0
  114. package/dist/features/context-injector/collector.d.ts +11 -0
  115. package/dist/features/context-injector/collector.test.d.ts +1 -0
  116. package/dist/features/context-injector/index.d.ts +3 -0
  117. package/dist/features/context-injector/injector.d.ts +39 -0
  118. package/dist/features/context-injector/injector.test.d.ts +1 -0
  119. package/dist/features/context-injector/types.d.ts +83 -0
  120. package/dist/features/hook-message-injector/constants.d.ts +3 -0
  121. package/dist/features/hook-message-injector/index.d.ts +4 -0
  122. package/dist/features/hook-message-injector/injector.d.ts +18 -0
  123. package/dist/features/hook-message-injector/types.d.ts +44 -0
  124. package/dist/features/musacode-skill-loader/async-loader.d.ts +6 -0
  125. package/dist/features/musacode-skill-loader/async-loader.test.d.ts +1 -0
  126. package/dist/features/musacode-skill-loader/blocking.d.ts +2 -0
  127. package/dist/features/musacode-skill-loader/blocking.test.d.ts +1 -0
  128. package/dist/features/musacode-skill-loader/discover-worker.d.ts +1 -0
  129. package/dist/features/musacode-skill-loader/index.d.ts +4 -0
  130. package/dist/features/musacode-skill-loader/loader.d.ts +16 -0
  131. package/dist/features/musacode-skill-loader/loader.test.d.ts +1 -0
  132. package/dist/features/musacode-skill-loader/merger.d.ts +7 -0
  133. package/dist/features/musacode-skill-loader/skill-content.d.ts +20 -0
  134. package/dist/features/musacode-skill-loader/skill-content.test.d.ts +1 -0
  135. package/dist/features/musacode-skill-loader/types.d.ts +34 -0
  136. package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
  137. package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
  138. package/dist/features/skill-mcp-manager/index.d.ts +2 -0
  139. package/dist/features/skill-mcp-manager/manager.d.ts +40 -0
  140. package/dist/features/skill-mcp-manager/manager.test.d.ts +1 -0
  141. package/dist/features/skill-mcp-manager/types.d.ts +11 -0
  142. package/dist/features/task-toast-manager/index.d.ts +2 -0
  143. package/dist/features/task-toast-manager/manager.d.ts +57 -0
  144. package/dist/features/task-toast-manager/manager.test.d.ts +1 -0
  145. package/dist/features/task-toast-manager/types.d.ts +21 -0
  146. package/dist/hooks/agent-usage-reminder/constants.d.ts +5 -0
  147. package/dist/hooks/agent-usage-reminder/index.d.ts +22 -0
  148. package/dist/hooks/agent-usage-reminder/storage.d.ts +4 -0
  149. package/dist/hooks/agent-usage-reminder/types.d.ts +6 -0
  150. package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +4 -0
  151. package/dist/hooks/anthropic-context-window-limit-recovery/executor.test.d.ts +1 -0
  152. package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +16 -0
  153. package/dist/hooks/anthropic-context-window-limit-recovery/parser.d.ts +2 -0
  154. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +7 -0
  155. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.test.d.ts +1 -0
  156. package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +36 -0
  157. package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +28 -0
  158. package/dist/hooks/anthropic-context-window-limit-recovery/storage.test.d.ts +1 -0
  159. package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +37 -0
  160. package/dist/hooks/atlas/index.d.ts +35 -0
  161. package/dist/hooks/atlas/index.test.d.ts +1 -0
  162. package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
  163. package/dist/hooks/auto-slash-command/detector.d.ts +9 -0
  164. package/dist/hooks/auto-slash-command/detector.test.d.ts +1 -0
  165. package/dist/hooks/auto-slash-command/executor.d.ts +11 -0
  166. package/dist/hooks/auto-slash-command/index.d.ts +12 -0
  167. package/dist/hooks/auto-slash-command/index.test.d.ts +1 -0
  168. package/dist/hooks/auto-slash-command/types.d.ts +27 -0
  169. package/dist/hooks/auto-update-checker/cache.d.ts +3 -0
  170. package/dist/hooks/auto-update-checker/checker.d.ts +20 -0
  171. package/dist/hooks/auto-update-checker/checker.test.d.ts +1 -0
  172. package/dist/hooks/auto-update-checker/constants.d.ts +13 -0
  173. package/dist/hooks/auto-update-checker/index.d.ts +17 -0
  174. package/dist/hooks/auto-update-checker/index.test.d.ts +1 -0
  175. package/dist/hooks/auto-update-checker/types.d.ts +25 -0
  176. package/dist/hooks/background-compaction/index.d.ts +19 -0
  177. package/dist/hooks/background-notification/index.d.ts +18 -0
  178. package/dist/hooks/background-notification/types.d.ts +4 -0
  179. package/dist/hooks/claude-code-hooks/config-loader.d.ts +13 -0
  180. package/dist/hooks/claude-code-hooks/config.d.ts +3 -0
  181. package/dist/hooks/claude-code-hooks/index.d.ts +48 -0
  182. package/dist/hooks/claude-code-hooks/plugin-config.d.ts +8 -0
  183. package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +40 -0
  184. package/dist/hooks/claude-code-hooks/pre-compact.d.ts +16 -0
  185. package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +25 -0
  186. package/dist/hooks/claude-code-hooks/stop.d.ts +20 -0
  187. package/dist/hooks/claude-code-hooks/todo.d.ts +12 -0
  188. package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +5 -0
  189. package/dist/hooks/claude-code-hooks/transcript.d.ts +38 -0
  190. package/dist/hooks/claude-code-hooks/types.d.ts +183 -0
  191. package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +22 -0
  192. package/dist/hooks/comment-checker/cli.d.ts +52 -0
  193. package/dist/hooks/comment-checker/cli.test.d.ts +1 -0
  194. package/dist/hooks/comment-checker/downloader.d.ts +25 -0
  195. package/dist/hooks/comment-checker/index.d.ts +19 -0
  196. package/dist/hooks/comment-checker/types.d.ts +31 -0
  197. package/dist/hooks/compaction-context-injector/index.d.ts +8 -0
  198. package/dist/hooks/context-window-monitor.d.ts +18 -0
  199. package/dist/hooks/delegate-task-retry/index.d.ts +24 -0
  200. package/dist/hooks/delegate-task-retry/index.test.d.ts +1 -0
  201. package/dist/hooks/directory-agents-injector/constants.d.ts +3 -0
  202. package/dist/hooks/directory-agents-injector/index.d.ts +26 -0
  203. package/dist/hooks/directory-agents-injector/storage.d.ts +3 -0
  204. package/dist/hooks/directory-agents-injector/types.d.ts +5 -0
  205. package/dist/hooks/directory-readme-injector/constants.d.ts +3 -0
  206. package/dist/hooks/directory-readme-injector/index.d.ts +26 -0
  207. package/dist/hooks/directory-readme-injector/storage.d.ts +3 -0
  208. package/dist/hooks/directory-readme-injector/types.d.ts +5 -0
  209. package/dist/hooks/edit-error-recovery/index.d.ts +31 -0
  210. package/dist/hooks/edit-error-recovery/index.test.d.ts +1 -0
  211. package/dist/hooks/empty-task-response-detector.d.ts +12 -0
  212. package/dist/hooks/index.d.ts +29 -0
  213. package/dist/hooks/interactive-bash-session/constants.d.ts +4 -0
  214. package/dist/hooks/interactive-bash-session/index.d.ts +23 -0
  215. package/dist/hooks/interactive-bash-session/storage.d.ts +4 -0
  216. package/dist/hooks/interactive-bash-session/types.d.ts +10 -0
  217. package/dist/hooks/keyword-detector/constants.d.ts +12 -0
  218. package/dist/hooks/keyword-detector/detector.d.ts +11 -0
  219. package/dist/hooks/keyword-detector/index.d.ts +23 -0
  220. package/dist/hooks/keyword-detector/index.test.d.ts +1 -0
  221. package/dist/hooks/keyword-detector/types.d.ts +4 -0
  222. package/dist/hooks/non-interactive-env/constants.d.ts +34 -0
  223. package/dist/hooks/non-interactive-env/detector.d.ts +1 -0
  224. package/dist/hooks/non-interactive-env/index.d.ts +14 -0
  225. package/dist/hooks/non-interactive-env/index.test.d.ts +1 -0
  226. package/dist/hooks/non-interactive-env/types.d.ts +3 -0
  227. package/dist/hooks/prometheus-md-only/constants.d.ts +6 -0
  228. package/dist/hooks/prometheus-md-only/index.d.ts +12 -0
  229. package/dist/hooks/prometheus-md-only/index.test.d.ts +1 -0
  230. package/dist/hooks/ralph-loop/constants.d.ts +5 -0
  231. package/dist/hooks/ralph-loop/index.d.ts +21 -0
  232. package/dist/hooks/ralph-loop/index.test.d.ts +1 -0
  233. package/dist/hooks/ralph-loop/storage.d.ts +6 -0
  234. package/dist/hooks/ralph-loop/types.d.ts +17 -0
  235. package/dist/hooks/rules-injector/constants.d.ts +8 -0
  236. package/dist/hooks/rules-injector/finder.d.ts +33 -0
  237. package/dist/hooks/rules-injector/finder.test.d.ts +1 -0
  238. package/dist/hooks/rules-injector/index.d.ts +26 -0
  239. package/dist/hooks/rules-injector/matcher.d.ts +21 -0
  240. package/dist/hooks/rules-injector/parser.d.ts +18 -0
  241. package/dist/hooks/rules-injector/parser.test.d.ts +1 -0
  242. package/dist/hooks/rules-injector/storage.d.ts +9 -0
  243. package/dist/hooks/rules-injector/types.d.ts +54 -0
  244. package/dist/hooks/session-notification-utils.d.ts +9 -0
  245. package/dist/hooks/session-notification.d.ts +20 -0
  246. package/dist/hooks/session-notification.test.d.ts +1 -0
  247. package/dist/hooks/session-recovery/constants.d.ts +6 -0
  248. package/dist/hooks/session-recovery/index.d.ts +22 -0
  249. package/dist/hooks/session-recovery/index.test.d.ts +1 -0
  250. package/dist/hooks/session-recovery/storage.d.ts +19 -0
  251. package/dist/hooks/session-recovery/types.d.ts +90 -0
  252. package/dist/hooks/start-work/index.d.ts +16 -0
  253. package/dist/hooks/start-work/index.test.d.ts +1 -0
  254. package/dist/hooks/task-resume-info/index.d.ts +11 -0
  255. package/dist/hooks/think-mode/detector.d.ts +5 -0
  256. package/dist/hooks/think-mode/index.d.ts +14 -0
  257. package/dist/hooks/think-mode/index.test.d.ts +1 -0
  258. package/dist/hooks/think-mode/switcher.d.ts +57 -0
  259. package/dist/hooks/think-mode/switcher.test.d.ts +1 -0
  260. package/dist/hooks/think-mode/types.d.ts +21 -0
  261. package/dist/hooks/thinking-block-validator/index.d.ts +30 -0
  262. package/dist/hooks/todo-continuation-enforcer.d.ts +17 -0
  263. package/dist/hooks/todo-continuation-enforcer.test.d.ts +1 -0
  264. package/dist/hooks/tool-output-truncator.d.ts +17 -0
  265. package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
  266. package/dist/index.d.ts +5 -0
  267. package/dist/index.js +67990 -0
  268. package/dist/mcp/context7.d.ts +6 -0
  269. package/dist/mcp/grep-app.d.ts +6 -0
  270. package/dist/mcp/index.d.ts +9 -0
  271. package/dist/mcp/index.test.d.ts +1 -0
  272. package/dist/mcp/types.d.ts +9 -0
  273. package/dist/mcp/websearch.d.ts +9 -0
  274. package/dist/plugin-config.d.ts +4 -0
  275. package/dist/plugin-config.test.d.ts +1 -0
  276. package/dist/plugin-handlers/config-handler.d.ts +12 -0
  277. package/dist/plugin-handlers/config-handler.test.d.ts +1 -0
  278. package/dist/plugin-handlers/index.d.ts +1 -0
  279. package/dist/plugin-state.d.ts +6 -0
  280. package/dist/shared/agent-tool-restrictions.d.ts +7 -0
  281. package/dist/shared/agent-variant.d.ts +5 -0
  282. package/dist/shared/agent-variant.test.d.ts +1 -0
  283. package/dist/shared/claude-config-dir.d.ts +1 -0
  284. package/dist/shared/claude-config-dir.test.d.ts +1 -0
  285. package/dist/shared/command-executor.d.ts +21 -0
  286. package/dist/shared/config-errors.d.ts +7 -0
  287. package/dist/shared/config-path.d.ts +17 -0
  288. package/dist/shared/data-path.d.ts +14 -0
  289. package/dist/shared/deep-merge.d.ts +13 -0
  290. package/dist/shared/deep-merge.test.d.ts +1 -0
  291. package/dist/shared/dynamic-truncator.d.ts +27 -0
  292. package/dist/shared/external-plugin-detector.d.ts +18 -0
  293. package/dist/shared/external-plugin-detector.test.d.ts +1 -0
  294. package/dist/shared/file-reference-resolver.d.ts +1 -0
  295. package/dist/shared/file-utils.d.ts +7 -0
  296. package/dist/shared/first-message-variant.d.ts +11 -0
  297. package/dist/shared/first-message-variant.test.d.ts +1 -0
  298. package/dist/shared/frontmatter.d.ts +7 -0
  299. package/dist/shared/frontmatter.test.d.ts +1 -0
  300. package/dist/shared/hook-disabled.d.ts +2 -0
  301. package/dist/shared/index.d.ts +29 -0
  302. package/dist/shared/jsonc-parser.d.ts +15 -0
  303. package/dist/shared/jsonc-parser.test.d.ts +1 -0
  304. package/dist/shared/logger.d.ts +2 -0
  305. package/dist/shared/migration.d.ts +31 -0
  306. package/dist/shared/migration.test.d.ts +1 -0
  307. package/dist/shared/model-resolver.d.ts +19 -0
  308. package/dist/shared/model-resolver.test.d.ts +1 -0
  309. package/dist/shared/model-sanitizer.d.ts +3 -0
  310. package/dist/shared/musacode-config-dir.d.ts +19 -0
  311. package/dist/shared/musacode-config-dir.test.d.ts +1 -0
  312. package/dist/shared/musacode-version.d.ts +13 -0
  313. package/dist/shared/musacode-version.test.d.ts +1 -0
  314. package/dist/shared/pattern-matcher.d.ts +3 -0
  315. package/dist/shared/permission-compat.d.ts +27 -0
  316. package/dist/shared/permission-compat.test.d.ts +1 -0
  317. package/dist/shared/session-cursor.d.ts +13 -0
  318. package/dist/shared/session-cursor.test.d.ts +1 -0
  319. package/dist/shared/shell-env.d.ts +41 -0
  320. package/dist/shared/shell-env.test.d.ts +1 -0
  321. package/dist/shared/snake-case.d.ts +4 -0
  322. package/dist/shared/system-directive.d.ts +31 -0
  323. package/dist/shared/tool-name.d.ts +1 -0
  324. package/dist/shared/zip-extractor.d.ts +1 -0
  325. package/dist/tools/ast-grep/cli.d.ts +15 -0
  326. package/dist/tools/ast-grep/constants.d.ts +29 -0
  327. package/dist/tools/ast-grep/downloader.d.ts +5 -0
  328. package/dist/tools/ast-grep/index.d.ts +8 -0
  329. package/dist/tools/ast-grep/tools.d.ts +3 -0
  330. package/dist/tools/ast-grep/types.d.ts +58 -0
  331. package/dist/tools/ast-grep/utils.d.ts +5 -0
  332. package/dist/tools/background-task/constants.d.ts +3 -0
  333. package/dist/tools/background-task/index.d.ts +3 -0
  334. package/dist/tools/background-task/tools.d.ts +7 -0
  335. package/dist/tools/background-task/types.d.ts +14 -0
  336. package/dist/tools/call-omo-agent/constants.d.ts +2 -0
  337. package/dist/tools/call-omo-agent/index.d.ts +3 -0
  338. package/dist/tools/call-omo-agent/tools.d.ts +3 -0
  339. package/dist/tools/call-omo-agent/types.d.ts +24 -0
  340. package/dist/tools/delegate-task/constants.d.ts +12 -0
  341. package/dist/tools/delegate-task/index.d.ts +3 -0
  342. package/dist/tools/delegate-task/tools.d.ts +27 -0
  343. package/dist/tools/delegate-task/tools.test.d.ts +1 -0
  344. package/dist/tools/delegate-task/types.d.ts +9 -0
  345. package/dist/tools/glob/cli.d.ts +11 -0
  346. package/dist/tools/glob/cli.test.d.ts +1 -0
  347. package/dist/tools/glob/constants.d.ts +6 -0
  348. package/dist/tools/glob/index.d.ts +2 -0
  349. package/dist/tools/glob/tools.d.ts +2 -0
  350. package/dist/tools/glob/types.d.ts +20 -0
  351. package/dist/tools/glob/utils.d.ts +2 -0
  352. package/dist/tools/grep/cli.d.ts +3 -0
  353. package/dist/tools/grep/constants.d.ts +17 -0
  354. package/dist/tools/grep/downloader.d.ts +3 -0
  355. package/dist/tools/grep/downloader.test.d.ts +1 -0
  356. package/dist/tools/grep/index.d.ts +2 -0
  357. package/dist/tools/grep/tools.d.ts +2 -0
  358. package/dist/tools/grep/types.d.ts +36 -0
  359. package/dist/tools/grep/utils.d.ts +3 -0
  360. package/dist/tools/index.d.ts +16 -0
  361. package/dist/tools/interactive-bash/constants.d.ts +3 -0
  362. package/dist/tools/interactive-bash/index.d.ts +3 -0
  363. package/dist/tools/interactive-bash/tools.d.ts +7 -0
  364. package/dist/tools/interactive-bash/utils.d.ts +3 -0
  365. package/dist/tools/look-at/constants.d.ts +2 -0
  366. package/dist/tools/look-at/index.d.ts +3 -0
  367. package/dist/tools/look-at/tools.d.ts +9 -0
  368. package/dist/tools/look-at/tools.test.d.ts +1 -0
  369. package/dist/tools/look-at/types.d.ts +4 -0
  370. package/dist/tools/lsp/client.d.ts +57 -0
  371. package/dist/tools/lsp/config.d.ts +17 -0
  372. package/dist/tools/lsp/config.test.d.ts +1 -0
  373. package/dist/tools/lsp/constants.d.ts +9 -0
  374. package/dist/tools/lsp/index.d.ts +6 -0
  375. package/dist/tools/lsp/tools.d.ts +7 -0
  376. package/dist/tools/lsp/types.d.ts +123 -0
  377. package/dist/tools/lsp/utils.d.ts +26 -0
  378. package/dist/tools/session-manager/constants.d.ts +12 -0
  379. package/dist/tools/session-manager/index.d.ts +3 -0
  380. package/dist/tools/session-manager/storage.d.ts +12 -0
  381. package/dist/tools/session-manager/storage.test.d.ts +1 -0
  382. package/dist/tools/session-manager/tools.d.ts +5 -0
  383. package/dist/tools/session-manager/tools.test.d.ts +1 -0
  384. package/dist/tools/session-manager/types.d.ts +89 -0
  385. package/dist/tools/session-manager/utils.d.ts +11 -0
  386. package/dist/tools/session-manager/utils.test.d.ts +1 -0
  387. package/dist/tools/skill/constants.d.ts +3 -0
  388. package/dist/tools/skill/index.d.ts +3 -0
  389. package/dist/tools/skill/tools.d.ts +4 -0
  390. package/dist/tools/skill/tools.test.d.ts +1 -0
  391. package/dist/tools/skill/types.d.ts +28 -0
  392. package/dist/tools/skill-mcp/constants.d.ts +2 -0
  393. package/dist/tools/skill-mcp/index.d.ts +3 -0
  394. package/dist/tools/skill-mcp/tools.d.ts +11 -0
  395. package/dist/tools/skill-mcp/tools.test.d.ts +1 -0
  396. package/dist/tools/skill-mcp/types.d.ts +8 -0
  397. package/dist/tools/slashcommand/index.d.ts +2 -0
  398. package/dist/tools/slashcommand/tools.d.ts +5 -0
  399. package/dist/tools/slashcommand/types.d.ts +24 -0
  400. package/package.json +89 -0
  401. package/postinstall.mjs +47 -0
@@ -0,0 +1,29 @@
1
+ export declare function findSgCliPathSync(): string | null;
2
+ export declare function getSgCliPath(): string;
3
+ export declare function setSgCliPath(path: string): void;
4
+ export declare const CLI_LANGUAGES: readonly ["bash", "c", "cpp", "csharp", "css", "elixir", "go", "haskell", "html", "java", "javascript", "json", "kotlin", "lua", "nix", "php", "python", "ruby", "rust", "scala", "solidity", "swift", "typescript", "tsx", "yaml"];
5
+ export declare const NAPI_LANGUAGES: readonly ["html", "javascript", "tsx", "css", "typescript"];
6
+ export declare const DEFAULT_TIMEOUT_MS = 300000;
7
+ export declare const DEFAULT_MAX_OUTPUT_BYTES: number;
8
+ export declare const DEFAULT_MAX_MATCHES = 500;
9
+ export declare const LANG_EXTENSIONS: Record<string, string[]>;
10
+ export interface EnvironmentCheckResult {
11
+ cli: {
12
+ available: boolean;
13
+ path: string;
14
+ error?: string;
15
+ };
16
+ napi: {
17
+ available: boolean;
18
+ error?: string;
19
+ };
20
+ }
21
+ /**
22
+ * Check if ast-grep CLI and NAPI are available.
23
+ * Call this at startup to provide early feedback about missing dependencies.
24
+ */
25
+ export declare function checkEnvironment(): EnvironmentCheckResult;
26
+ /**
27
+ * Format environment check result as user-friendly message.
28
+ */
29
+ export declare function formatEnvironmentCheck(result: EnvironmentCheckResult): string;
@@ -0,0 +1,5 @@
1
+ export declare function getCacheDir(): string;
2
+ export declare function getBinaryName(): string;
3
+ export declare function getCachedBinaryPath(): string | null;
4
+ export declare function downloadAstGrep(version?: string): Promise<string | null>;
5
+ export declare function ensureAstGrepBinary(): Promise<string | null>;
@@ -0,0 +1,8 @@
1
+ import type { ToolDefinition } from "@opencode-ai/plugin";
2
+ import { ast_grep_search, ast_grep_replace } from "./tools";
3
+ export declare const builtinTools: Record<string, ToolDefinition>;
4
+ export { ast_grep_search, ast_grep_replace };
5
+ export { ensureAstGrepBinary, getCachedBinaryPath, getCacheDir } from "./downloader";
6
+ export { getAstGrepPath, isCliAvailable, ensureCliAvailable, startBackgroundInit } from "./cli";
7
+ export { checkEnvironment, formatEnvironmentCheck } from "./constants";
8
+ export type { EnvironmentCheckResult } from "./constants";
@@ -0,0 +1,3 @@
1
+ import { type ToolDefinition } from "@opencode-ai/plugin/tool";
2
+ export declare const ast_grep_search: ToolDefinition;
3
+ export declare const ast_grep_replace: ToolDefinition;
@@ -0,0 +1,58 @@
1
+ import type { CLI_LANGUAGES, NAPI_LANGUAGES } from "./constants";
2
+ export type CliLanguage = (typeof CLI_LANGUAGES)[number];
3
+ export type NapiLanguage = (typeof NAPI_LANGUAGES)[number];
4
+ export interface Position {
5
+ line: number;
6
+ column: number;
7
+ }
8
+ export interface Range {
9
+ start: Position;
10
+ end: Position;
11
+ }
12
+ export interface CliMatch {
13
+ text: string;
14
+ range: {
15
+ byteOffset: {
16
+ start: number;
17
+ end: number;
18
+ };
19
+ start: Position;
20
+ end: Position;
21
+ };
22
+ file: string;
23
+ lines: string;
24
+ charCount: {
25
+ leading: number;
26
+ trailing: number;
27
+ };
28
+ language: string;
29
+ }
30
+ export interface SearchMatch {
31
+ file: string;
32
+ text: string;
33
+ range: Range;
34
+ lines: string;
35
+ }
36
+ export interface MetaVariable {
37
+ name: string;
38
+ text: string;
39
+ kind: string;
40
+ }
41
+ export interface AnalyzeResult {
42
+ text: string;
43
+ range: Range;
44
+ kind: string;
45
+ metaVariables: MetaVariable[];
46
+ }
47
+ export interface TransformResult {
48
+ original: string;
49
+ transformed: string;
50
+ editCount: number;
51
+ }
52
+ export interface SgResult {
53
+ matches: CliMatch[];
54
+ totalMatches: number;
55
+ truncated: boolean;
56
+ truncatedReason?: "max_matches" | "max_output_bytes" | "timeout";
57
+ error?: string;
58
+ }
@@ -0,0 +1,5 @@
1
+ import type { AnalyzeResult, SgResult } from "./types";
2
+ export declare function formatSearchResult(result: SgResult): string;
3
+ export declare function formatReplaceResult(result: SgResult, isDryRun: boolean): string;
4
+ export declare function formatAnalyzeResult(results: AnalyzeResult[], extractedMetaVars: boolean): string;
5
+ export declare function formatTransformResult(_original: string, transformed: string, editCount: number): string;
@@ -0,0 +1,3 @@
1
+ export declare const BACKGROUND_TASK_DESCRIPTION = "Run agent task in background. Returns task_id immediately; notifies on completion.\n\nUse `background_output` to get results. Prompts MUST be in English.";
2
+ export declare const BACKGROUND_OUTPUT_DESCRIPTION = "Get output from background task. System notifies on completion, so block=true rarely needed.";
3
+ export declare const BACKGROUND_CANCEL_DESCRIPTION = "Cancel running background task(s). Use all=true to cancel ALL before final answer.";
@@ -0,0 +1,3 @@
1
+ export { createBackgroundOutput, createBackgroundCancel, } from "./tools";
2
+ export type * from "./types";
3
+ export * from "./constants";
@@ -0,0 +1,7 @@
1
+ import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
2
+ import type { BackgroundManager } from "../../features/background-agent";
3
+ type MusacodeClient = PluginInput["client"];
4
+ export declare function createBackgroundTask(manager: BackgroundManager): ToolDefinition;
5
+ export declare function createBackgroundOutput(manager: BackgroundManager, client: MusacodeClient): ToolDefinition;
6
+ export declare function createBackgroundCancel(manager: BackgroundManager, client: MusacodeClient): ToolDefinition;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ export interface BackgroundTaskArgs {
2
+ description: string;
3
+ prompt: string;
4
+ agent: string;
5
+ }
6
+ export interface BackgroundOutputArgs {
7
+ task_id: string;
8
+ block?: boolean;
9
+ timeout?: number;
10
+ }
11
+ export interface BackgroundCancelArgs {
12
+ taskId?: string;
13
+ all?: boolean;
14
+ }
@@ -0,0 +1,2 @@
1
+ export declare const ALLOWED_AGENTS: readonly ["explore", "librarian"];
2
+ export declare const CALL_OMO_AGENT_DESCRIPTION = "Spawn explore/librarian agent. run_in_background REQUIRED (true=async with task_id, false=sync).\n\nAvailable: {agents}\n\nPass `resume=session_id` to continue previous agent with full context. Prompts MUST be in English. Use `background_output` for async results.";
@@ -0,0 +1,3 @@
1
+ export * from "./types";
2
+ export * from "./constants";
3
+ export { createCallOmoAgent } from "./tools";
@@ -0,0 +1,3 @@
1
+ import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
2
+ import type { BackgroundManager } from "../../features/background-agent";
3
+ export declare function createCallOmoAgent(ctx: PluginInput, backgroundManager: BackgroundManager): ToolDefinition;
@@ -0,0 +1,24 @@
1
+ import type { ALLOWED_AGENTS } from "./constants";
2
+ export type AllowedAgentType = (typeof ALLOWED_AGENTS)[number];
3
+ export interface CallOmoAgentArgs {
4
+ description: string;
5
+ prompt: string;
6
+ subagent_type: string;
7
+ run_in_background: boolean;
8
+ session_id?: string;
9
+ }
10
+ export interface CallOmoAgentSyncResult {
11
+ title: string;
12
+ metadata: {
13
+ summary?: Array<{
14
+ id: string;
15
+ tool: string;
16
+ state: {
17
+ status: string;
18
+ title?: string;
19
+ };
20
+ }>;
21
+ sessionId: string;
22
+ };
23
+ output: string;
24
+ }
@@ -0,0 +1,12 @@
1
+ import type { CategoryConfig } from "../../config/schema";
2
+ export declare const VISUAL_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on VISUAL/UI tasks.\n\nDesign-first mindset:\n- Bold aesthetic choices over safe defaults\n- Unexpected layouts, asymmetry, grid-breaking elements\n- Distinctive typography (avoid: Arial, Inter, Roboto, Space Grotesk)\n- Cohesive color palettes with sharp accents\n- High-impact animations with staggered reveals\n- Atmosphere: gradient meshes, noise textures, layered transparencies\n\nAVOID: Generic fonts, purple gradients on white, predictable layouts, cookie-cutter patterns.\n</Category_Context>";
3
+ export declare const STRATEGIC_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on BUSINESS LOGIC / ARCHITECTURE tasks.\n\nStrategic advisor mindset:\n- Bias toward simplicity: least complex solution that fulfills requirements\n- Leverage existing code/patterns over new components\n- Prioritize developer experience and maintainability\n- One clear recommendation with effort estimate (Quick/Short/Medium/Large)\n- Signal when advanced approach warranted\n\nResponse format:\n- Bottom line (2-3 sentences)\n- Action plan (numbered steps)\n- Risks and mitigations (if relevant)\n</Category_Context>";
4
+ export declare const ARTISTRY_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on HIGHLY CREATIVE / ARTISTIC tasks.\n\nArtistic genius mindset:\n- Push far beyond conventional boundaries\n- Explore radical, unconventional directions\n- Surprise and delight: unexpected twists, novel combinations\n- Rich detail and vivid expression\n- Break patterns deliberately when it serves the creative vision\n\nApproach:\n- Generate diverse, bold options first\n- Embrace ambiguity and wild experimentation\n- Balance novelty with coherence\n- This is for tasks requiring exceptional creativity\n</Category_Context>";
5
+ export declare const QUICK_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on SMALL / QUICK tasks.\n\nEfficient execution mindset:\n- Fast, focused, minimal overhead\n- Get to the point immediately\n- No over-engineering\n- Simple solutions for simple problems\n\nApproach:\n- Minimal viable implementation\n- Skip unnecessary abstractions\n- Direct and concise\n</Category_Context>\n\n<Caller_Warning>\nTHIS CATEGORY USES A LESS CAPABLE MODEL (claude-haiku-4-5).\n\nThe model executing this task has LIMITED reasoning capacity. Your prompt MUST be:\n\n**EXHAUSTIVELY EXPLICIT** - Leave NOTHING to interpretation:\n1. MUST DO: List every required action as atomic, numbered steps\n2. MUST NOT DO: Explicitly forbid likely mistakes and deviations\n3. EXPECTED OUTPUT: Describe exact success criteria with concrete examples\n\n**WHY THIS MATTERS:**\n- Less capable models WILL deviate without explicit guardrails\n- Vague instructions \u2192 unpredictable results\n- Implicit expectations \u2192 missed requirements\n\n**PROMPT STRUCTURE (MANDATORY):**\n```\nTASK: [One-sentence goal]\n\nMUST DO:\n1. [Specific action with exact details]\n2. [Another specific action]\n...\n\nMUST NOT DO:\n- [Forbidden action + why]\n- [Another forbidden action]\n...\n\nEXPECTED OUTPUT:\n- [Exact deliverable description]\n- [Success criteria / verification method]\n```\n\nIf your prompt lacks this structure, REWRITE IT before delegating.\n</Caller_Warning>";
6
+ export declare const UNSPECIFIED_LOW_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on tasks that don't fit specific categories but require moderate effort.\n\n<Selection_Gate>\nBEFORE selecting this category, VERIFY ALL conditions:\n1. Task does NOT fit: quick (trivial), visual-engineering (UI), ultrabrain (deep logic), artistry (creative), writing (docs)\n2. Task requires more than trivial effort but is NOT system-wide\n3. Scope is contained within a few files/modules\n\nIf task fits ANY other category, DO NOT select unspecified-low.\nThis is NOT a default choice - it's for genuinely unclassifiable moderate-effort work.\n</Selection_Gate>\n</Category_Context>\n\n<Caller_Warning>\nTHIS CATEGORY USES A MID-TIER MODEL (claude-sonnet-4-5).\n\n**PROVIDE CLEAR STRUCTURE:**\n1. MUST DO: Enumerate required actions explicitly\n2. MUST NOT DO: State forbidden actions to prevent scope creep\n3. EXPECTED OUTPUT: Define concrete success criteria\n</Caller_Warning>";
7
+ export declare const UNSPECIFIED_HIGH_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on tasks that don't fit specific categories but require substantial effort.\n\n<Selection_Gate>\nBEFORE selecting this category, VERIFY ALL conditions:\n1. Task does NOT fit: quick (trivial), visual-engineering (UI), ultrabrain (deep logic), artistry (creative), writing (docs)\n2. Task requires substantial effort across multiple systems/modules\n3. Changes have broad impact or require careful coordination\n4. NOT just \"complex\" - must be genuinely unclassifiable AND high-effort\n\nIf task fits ANY other category, DO NOT select unspecified-high.\nIf task is unclassifiable but moderate-effort, use unspecified-low instead.\n</Selection_Gate>\n</Category_Context>";
8
+ export declare const WRITING_CATEGORY_PROMPT_APPEND = "<Category_Context>\nYou are working on WRITING / PROSE tasks.\n\nWordsmith mindset:\n- Clear, flowing prose\n- Appropriate tone and voice\n- Engaging and readable\n- Proper structure and organization\n\nApproach:\n- Understand the audience\n- Draft with care\n- Polish for clarity and impact\n- Documentation, READMEs, articles, technical writing\n</Category_Context>";
9
+ export declare const DEFAULT_CATEGORIES: Record<string, CategoryConfig>;
10
+ export declare const CATEGORY_PROMPT_APPENDS: Record<string, string>;
11
+ export declare const CATEGORY_DESCRIPTIONS: Record<string, string>;
12
+ export declare const DELEGATE_TASK_DESCRIPTION: string;
@@ -0,0 +1,3 @@
1
+ export { createDelegateTask, type DelegateTaskToolOptions } from "./tools";
2
+ export type * from "./types";
3
+ export * from "./constants";
@@ -0,0 +1,27 @@
1
+ import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
2
+ import type { BackgroundManager } from "../../features/background-agent";
3
+ import type { CategoryConfig, CategoriesConfig, GitMasterConfig } from "../../config/schema";
4
+ type MusacodeClient = PluginInput["client"];
5
+ export declare function resolveCategoryConfig(categoryName: string, options: {
6
+ userCategories?: CategoriesConfig;
7
+ inheritedModel?: string;
8
+ systemDefaultModel: string;
9
+ }): {
10
+ config: CategoryConfig;
11
+ promptAppend: string;
12
+ model: string;
13
+ } | null;
14
+ export interface DelegateTaskToolOptions {
15
+ manager: BackgroundManager;
16
+ client: MusacodeClient;
17
+ directory: string;
18
+ userCategories?: CategoriesConfig;
19
+ gitMasterConfig?: GitMasterConfig;
20
+ }
21
+ export interface BuildSystemContentInput {
22
+ skillContent?: string;
23
+ categoryPromptAppend?: string;
24
+ }
25
+ export declare function buildSystemContent(input: BuildSystemContentInput): string | undefined;
26
+ export declare function createDelegateTask(options: DelegateTaskToolOptions): ToolDefinition;
27
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface DelegateTaskArgs {
2
+ description: string;
3
+ prompt: string;
4
+ category?: string;
5
+ subagent_type?: string;
6
+ run_in_background: boolean;
7
+ resume?: string;
8
+ skills: string[];
9
+ }
@@ -0,0 +1,11 @@
1
+ import { type GrepBackend } from "./constants";
2
+ import type { GlobOptions, GlobResult } from "./types";
3
+ export interface ResolvedCli {
4
+ path: string;
5
+ backend: GrepBackend;
6
+ }
7
+ declare function buildRgArgs(options: GlobOptions): string[];
8
+ declare function buildFindArgs(options: GlobOptions): string[];
9
+ declare function buildPowerShellCommand(options: GlobOptions): string[];
10
+ export { buildRgArgs, buildFindArgs, buildPowerShellCommand };
11
+ export declare function runRgFiles(options: GlobOptions, resolvedCli?: ResolvedCli): Promise<GlobResult>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export { resolveGrepCli, resolveGrepCliWithAutoInstall, type GrepBackend } from "../grep/constants";
2
+ export declare const DEFAULT_TIMEOUT_MS = 60000;
3
+ export declare const DEFAULT_LIMIT = 100;
4
+ export declare const DEFAULT_MAX_DEPTH = 20;
5
+ export declare const DEFAULT_MAX_OUTPUT_BYTES: number;
6
+ export declare const RG_FILES_FLAGS: readonly ["--files", "--color=never", "--glob=!.git/*"];
@@ -0,0 +1,2 @@
1
+ import { glob } from "./tools";
2
+ export { glob };
@@ -0,0 +1,2 @@
1
+ import { type ToolDefinition } from "@opencode-ai/plugin/tool";
2
+ export declare const glob: ToolDefinition;
@@ -0,0 +1,20 @@
1
+ export interface FileMatch {
2
+ path: string;
3
+ mtime: number;
4
+ }
5
+ export interface GlobResult {
6
+ files: FileMatch[];
7
+ totalFiles: number;
8
+ truncated: boolean;
9
+ error?: string;
10
+ }
11
+ export interface GlobOptions {
12
+ pattern: string;
13
+ paths?: string[];
14
+ hidden?: boolean;
15
+ follow?: boolean;
16
+ noIgnore?: boolean;
17
+ maxDepth?: number;
18
+ timeout?: number;
19
+ limit?: number;
20
+ }
@@ -0,0 +1,2 @@
1
+ import type { GlobResult } from "./types";
2
+ export declare function formatGlobResult(result: GlobResult): string;
@@ -0,0 +1,3 @@
1
+ import type { GrepOptions, GrepResult, CountResult } from "./types";
2
+ export declare function runRg(options: GrepOptions): Promise<GrepResult>;
3
+ export declare function runRgCount(options: Omit<GrepOptions, "context">): Promise<CountResult[]>;
@@ -0,0 +1,17 @@
1
+ export type GrepBackend = "rg" | "grep";
2
+ interface ResolvedCli {
3
+ path: string;
4
+ backend: GrepBackend;
5
+ }
6
+ export declare function resolveGrepCli(): ResolvedCli;
7
+ export declare function resolveGrepCliWithAutoInstall(): Promise<ResolvedCli>;
8
+ export declare const DEFAULT_MAX_DEPTH = 20;
9
+ export declare const DEFAULT_MAX_FILESIZE = "10M";
10
+ export declare const DEFAULT_MAX_COUNT = 500;
11
+ export declare const DEFAULT_MAX_COLUMNS = 1000;
12
+ export declare const DEFAULT_CONTEXT = 2;
13
+ export declare const DEFAULT_TIMEOUT_MS = 300000;
14
+ export declare const DEFAULT_MAX_OUTPUT_BYTES: number;
15
+ export declare const RG_SAFETY_FLAGS: readonly ["--no-follow", "--color=never", "--no-heading", "--line-number", "--with-filename"];
16
+ export declare const GREP_SAFETY_FLAGS: readonly ["-n", "-H", "--color=never"];
17
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare function findFileRecursive(dir: string, filename: string): string | null;
2
+ export declare function downloadAndInstallRipgrep(): Promise<string>;
3
+ export declare function getInstalledRipgrepPath(): string | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { grep } from "./tools";
2
+ export { grep };
@@ -0,0 +1,2 @@
1
+ import { type ToolDefinition } from "@opencode-ai/plugin/tool";
2
+ export declare const grep: ToolDefinition;
@@ -0,0 +1,36 @@
1
+ export interface GrepMatch {
2
+ file: string;
3
+ line: number;
4
+ column?: number;
5
+ text: string;
6
+ }
7
+ export interface GrepResult {
8
+ matches: GrepMatch[];
9
+ totalMatches: number;
10
+ filesSearched: number;
11
+ truncated: boolean;
12
+ error?: string;
13
+ }
14
+ export interface GrepOptions {
15
+ pattern: string;
16
+ paths?: string[];
17
+ globs?: string[];
18
+ excludeGlobs?: string[];
19
+ context?: number;
20
+ maxDepth?: number;
21
+ maxFilesize?: string;
22
+ maxCount?: number;
23
+ maxColumns?: number;
24
+ caseSensitive?: boolean;
25
+ wholeWord?: boolean;
26
+ fixedStrings?: boolean;
27
+ multiline?: boolean;
28
+ hidden?: boolean;
29
+ noIgnore?: boolean;
30
+ fileType?: string[];
31
+ timeout?: number;
32
+ }
33
+ export interface CountResult {
34
+ file: string;
35
+ count: number;
36
+ }
@@ -0,0 +1,3 @@
1
+ import type { GrepResult, CountResult } from "./types";
2
+ export declare function formatGrepResult(result: GrepResult): string;
3
+ export declare function formatCountResult(results: CountResult[]): string;
@@ -0,0 +1,16 @@
1
+ import { lspManager } from "./lsp";
2
+ export { lspManager };
3
+ export { createSlashcommandTool, discoverCommandsSync } from "./slashcommand";
4
+ export { sessionExists } from "./session-manager/storage";
5
+ export { interactive_bash, startBackgroundCheck as startTmuxCheck } from "./interactive-bash";
6
+ export { createSkillTool } from "./skill";
7
+ export { getTmuxPath } from "./interactive-bash/utils";
8
+ export { createSkillMcpTool } from "./skill-mcp";
9
+ import type { PluginInput, ToolDefinition } from "@opencode-ai/plugin";
10
+ import type { BackgroundManager } from "../features/background-agent";
11
+ type MusacodeClient = PluginInput["client"];
12
+ export { createCallOmoAgent } from "./call-omo-agent";
13
+ export { createLookAt } from "./look-at";
14
+ export { createDelegateTask, type DelegateTaskToolOptions, DEFAULT_CATEGORIES, CATEGORY_PROMPT_APPENDS } from "./delegate-task";
15
+ export declare function createBackgroundTools(manager: BackgroundManager, client: MusacodeClient): Record<string, ToolDefinition>;
16
+ export declare const builtinTools: Record<string, ToolDefinition>;
@@ -0,0 +1,3 @@
1
+ export declare const DEFAULT_TIMEOUT_MS = 60000;
2
+ export declare const BLOCKED_TMUX_SUBCOMMANDS: string[];
3
+ export declare const INTERACTIVE_BASH_DESCRIPTION = "WARNING: This is TMUX ONLY. Pass tmux subcommands directly (without 'tmux' prefix).\n\nExamples: new-session -d -s omo-dev, send-keys -t omo-dev \"vim\" Enter\n\nFor TUI apps needing ongoing interaction (vim, htop, pudb). One-shot commands \u2192 use Bash with &.";
@@ -0,0 +1,3 @@
1
+ import { interactive_bash } from "./tools";
2
+ import { startBackgroundCheck } from "./utils";
3
+ export { interactive_bash, startBackgroundCheck };
@@ -0,0 +1,7 @@
1
+ import { type ToolDefinition } from "@opencode-ai/plugin/tool";
2
+ /**
3
+ * Quote-aware command tokenizer with escape handling
4
+ * Handles single/double quotes and backslash escapes without external dependencies
5
+ */
6
+ export declare function tokenizeCommand(cmd: string): string[];
7
+ export declare const interactive_bash: ToolDefinition;
@@ -0,0 +1,3 @@
1
+ export declare function getTmuxPath(): Promise<string | null>;
2
+ export declare function getCachedTmuxPath(): string | null;
3
+ export declare function startBackgroundCheck(): void;
@@ -0,0 +1,2 @@
1
+ export declare const MULTIMODAL_LOOKER_AGENT: "multimodal-looker";
2
+ export declare const LOOK_AT_DESCRIPTION = "Analyze media files (PDFs, images, diagrams) that require interpretation beyond raw text. Extracts specific information or summaries from documents, describes visual content. Use when you need analyzed/extracted data rather than literal file contents.";
@@ -0,0 +1,3 @@
1
+ export * from "./types";
2
+ export * from "./constants";
3
+ export { createLookAt } from "./tools";
@@ -0,0 +1,9 @@
1
+ import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
2
+ import type { LookAtArgs } from "./types";
3
+ interface LookAtArgsWithAlias extends LookAtArgs {
4
+ path?: string;
5
+ }
6
+ export declare function normalizeArgs(args: LookAtArgsWithAlias): LookAtArgs;
7
+ export declare function validateArgs(args: LookAtArgs): string | null;
8
+ export declare function createLookAt(ctx: PluginInput): ToolDefinition;
9
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface LookAtArgs {
2
+ file_path: string;
3
+ goal: string;
4
+ }
@@ -0,0 +1,57 @@
1
+ import type { Diagnostic, ResolvedServer } from "./types";
2
+ declare class LSPServerManager {
3
+ private static instance;
4
+ private clients;
5
+ private cleanupInterval;
6
+ private readonly IDLE_TIMEOUT;
7
+ private constructor();
8
+ private registerProcessCleanup;
9
+ static getInstance(): LSPServerManager;
10
+ private getKey;
11
+ private startCleanupTimer;
12
+ private cleanupIdleClients;
13
+ getClient(root: string, server: ResolvedServer): Promise<LSPClient>;
14
+ warmupClient(root: string, server: ResolvedServer): void;
15
+ releaseClient(root: string, serverId: string): void;
16
+ isServerInitializing(root: string, serverId: string): boolean;
17
+ stopAll(): Promise<void>;
18
+ cleanupTempDirectoryClients(): Promise<void>;
19
+ }
20
+ export declare const lspManager: LSPServerManager;
21
+ export declare class LSPClient {
22
+ private root;
23
+ private server;
24
+ private proc;
25
+ private buffer;
26
+ private pending;
27
+ private requestIdCounter;
28
+ private openedFiles;
29
+ private stderrBuffer;
30
+ private processExited;
31
+ private diagnosticsStore;
32
+ constructor(root: string, server: ResolvedServer);
33
+ start(): Promise<void>;
34
+ private startReading;
35
+ private startStderrReading;
36
+ private rejectAllPending;
37
+ private findSequence;
38
+ private processBuffer;
39
+ private send;
40
+ private notify;
41
+ private respond;
42
+ private handleServerRequest;
43
+ initialize(): Promise<void>;
44
+ openFile(filePath: string): Promise<void>;
45
+ definition(filePath: string, line: number, character: number): Promise<unknown>;
46
+ references(filePath: string, line: number, character: number, includeDeclaration?: boolean): Promise<unknown>;
47
+ documentSymbols(filePath: string): Promise<unknown>;
48
+ workspaceSymbols(query: string): Promise<unknown>;
49
+ diagnostics(filePath: string): Promise<{
50
+ items: Diagnostic[];
51
+ }>;
52
+ prepareRename(filePath: string, line: number, character: number): Promise<unknown>;
53
+ rename(filePath: string, line: number, character: number, newName: string): Promise<unknown>;
54
+ isAlive(): boolean;
55
+ stop(): Promise<void>;
56
+ }
57
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { ServerLookupResult } from "./types";
2
+ export declare function findServerForExtension(ext: string): ServerLookupResult;
3
+ export declare function getLanguageId(ext: string): string;
4
+ export declare function isServerInstalled(command: string[]): boolean;
5
+ export declare function getAllServers(): Array<{
6
+ id: string;
7
+ installed: boolean;
8
+ extensions: string[];
9
+ disabled: boolean;
10
+ source: string;
11
+ priority: number;
12
+ }>;
13
+ export declare function getConfigPaths_(): {
14
+ project: string;
15
+ user: string;
16
+ musacode: string;
17
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { LSPServerConfig } from "./types";
2
+ export declare const SYMBOL_KIND_MAP: Record<number, string>;
3
+ export declare const SEVERITY_MAP: Record<number, string>;
4
+ export declare const DEFAULT_MAX_REFERENCES = 200;
5
+ export declare const DEFAULT_MAX_SYMBOLS = 200;
6
+ export declare const DEFAULT_MAX_DIAGNOSTICS = 200;
7
+ export declare const LSP_INSTALL_HINTS: Record<string, string>;
8
+ export declare const BUILTIN_SERVERS: Record<string, Omit<LSPServerConfig, "id">>;
9
+ export declare const EXT_TO_LANG: Record<string, string>;
@@ -0,0 +1,6 @@
1
+ export * from "./types";
2
+ export * from "./constants";
3
+ export * from "./config";
4
+ export * from "./client";
5
+ export * from "./utils";
6
+ export { lsp_goto_definition, lsp_find_references, lsp_symbols, lsp_diagnostics, lsp_prepare_rename, lsp_rename } from "./tools";
@@ -0,0 +1,7 @@
1
+ import { type ToolDefinition } from "@opencode-ai/plugin/tool";
2
+ export declare const lsp_goto_definition: ToolDefinition;
3
+ export declare const lsp_find_references: ToolDefinition;
4
+ export declare const lsp_symbols: ToolDefinition;
5
+ export declare const lsp_diagnostics: ToolDefinition;
6
+ export declare const lsp_prepare_rename: ToolDefinition;
7
+ export declare const lsp_rename: ToolDefinition;