oh-my-claude-sisyphus 3.7.6 → 3.7.8

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 (421) hide show
  1. package/agents/AGENTS.md +144 -0
  2. package/dist/__tests__/analytics/analytics-summary.test.d.ts +2 -0
  3. package/dist/__tests__/analytics/analytics-summary.test.d.ts.map +1 -0
  4. package/dist/__tests__/analytics/analytics-summary.test.js +267 -0
  5. package/dist/__tests__/analytics/analytics-summary.test.js.map +1 -0
  6. package/dist/__tests__/analytics/cost-estimator.test.d.ts +2 -0
  7. package/dist/__tests__/analytics/cost-estimator.test.d.ts.map +1 -0
  8. package/dist/__tests__/analytics/cost-estimator.test.js +212 -0
  9. package/dist/__tests__/analytics/cost-estimator.test.js.map +1 -0
  10. package/dist/__tests__/hooks/auto-slash-command/executor.test.d.ts +7 -0
  11. package/dist/__tests__/hooks/auto-slash-command/executor.test.d.ts.map +1 -0
  12. package/dist/__tests__/hooks/auto-slash-command/executor.test.js +374 -0
  13. package/dist/__tests__/hooks/auto-slash-command/executor.test.js.map +1 -0
  14. package/dist/__tests__/hud/auto-tracking.integration.test.d.ts +2 -0
  15. package/dist/__tests__/hud/auto-tracking.integration.test.d.ts.map +1 -0
  16. package/dist/__tests__/hud/auto-tracking.integration.test.js +12 -0
  17. package/dist/__tests__/hud/auto-tracking.integration.test.js.map +1 -0
  18. package/dist/__tests__/learned-skills/config.test.d.ts +2 -0
  19. package/dist/__tests__/learned-skills/config.test.d.ts.map +1 -0
  20. package/dist/__tests__/learned-skills/config.test.js +37 -0
  21. package/dist/__tests__/learned-skills/config.test.js.map +1 -0
  22. package/dist/__tests__/learned-skills/detector.test.d.ts +2 -0
  23. package/dist/__tests__/learned-skills/detector.test.d.ts.map +1 -0
  24. package/dist/__tests__/learned-skills/detector.test.js +99 -0
  25. package/dist/__tests__/learned-skills/detector.test.js.map +1 -0
  26. package/dist/__tests__/learned-skills/finder.test.d.ts +2 -0
  27. package/dist/__tests__/learned-skills/finder.test.d.ts.map +1 -0
  28. package/dist/__tests__/learned-skills/finder.test.js +59 -0
  29. package/dist/__tests__/learned-skills/finder.test.js.map +1 -0
  30. package/dist/__tests__/learned-skills/loader.test.d.ts +2 -0
  31. package/dist/__tests__/learned-skills/loader.test.d.ts.map +1 -0
  32. package/dist/__tests__/learned-skills/loader.test.js +69 -0
  33. package/dist/__tests__/learned-skills/loader.test.js.map +1 -0
  34. package/dist/__tests__/learned-skills/parser.test.d.ts +2 -0
  35. package/dist/__tests__/learned-skills/parser.test.d.ts.map +1 -0
  36. package/dist/__tests__/learned-skills/parser.test.js +81 -0
  37. package/dist/__tests__/learned-skills/parser.test.js.map +1 -0
  38. package/dist/__tests__/learned-skills/validator.test.d.ts +2 -0
  39. package/dist/__tests__/learned-skills/validator.test.d.ts.map +1 -0
  40. package/dist/__tests__/learned-skills/validator.test.js +85 -0
  41. package/dist/__tests__/learned-skills/validator.test.js.map +1 -0
  42. package/dist/__tests__/omc-tools-server.test.d.ts +2 -0
  43. package/dist/__tests__/omc-tools-server.test.d.ts.map +1 -0
  44. package/dist/__tests__/omc-tools-server.test.js +52 -0
  45. package/dist/__tests__/omc-tools-server.test.js.map +1 -0
  46. package/dist/agents/architect.js +1 -1
  47. package/dist/agents/architect.js.map +1 -1
  48. package/dist/agents/codex-agents.d.ts +20 -0
  49. package/dist/agents/codex-agents.d.ts.map +1 -0
  50. package/dist/agents/codex-agents.js +36 -0
  51. package/dist/agents/codex-agents.js.map +1 -0
  52. package/dist/agents/definitions.js +13 -13
  53. package/dist/agents/definitions.js.map +1 -1
  54. package/dist/agents/document-writer.d.ts +11 -0
  55. package/dist/agents/document-writer.d.ts.map +1 -0
  56. package/dist/agents/document-writer.js +209 -0
  57. package/dist/agents/document-writer.js.map +1 -0
  58. package/dist/agents/executor.js +1 -1
  59. package/dist/agents/executor.js.map +1 -1
  60. package/dist/agents/explore.js +1 -1
  61. package/dist/agents/explore.js.map +1 -1
  62. package/dist/agents/frontend-engineer.d.ts +11 -0
  63. package/dist/agents/frontend-engineer.d.ts.map +1 -0
  64. package/dist/agents/frontend-engineer.js +115 -0
  65. package/dist/agents/frontend-engineer.js.map +1 -0
  66. package/dist/agents/librarian.d.ts +12 -0
  67. package/dist/agents/librarian.d.ts.map +1 -0
  68. package/dist/agents/librarian.js +103 -0
  69. package/dist/agents/librarian.js.map +1 -0
  70. package/dist/agents/metis.d.ts +12 -0
  71. package/dist/agents/metis.d.ts.map +1 -0
  72. package/dist/agents/metis.js +117 -0
  73. package/dist/agents/metis.js.map +1 -0
  74. package/dist/agents/momus.d.ts +12 -0
  75. package/dist/agents/momus.d.ts.map +1 -0
  76. package/dist/agents/momus.js +128 -0
  77. package/dist/agents/momus.js.map +1 -0
  78. package/dist/agents/multimodal-looker.d.ts +11 -0
  79. package/dist/agents/multimodal-looker.d.ts.map +1 -0
  80. package/dist/agents/multimodal-looker.js +70 -0
  81. package/dist/agents/multimodal-looker.js.map +1 -0
  82. package/dist/agents/oracle.d.ts +13 -0
  83. package/dist/agents/oracle.d.ts.map +1 -0
  84. package/dist/agents/oracle.js +191 -0
  85. package/dist/agents/oracle.js.map +1 -0
  86. package/dist/agents/orchestrator-sisyphus.d.ts +11 -0
  87. package/dist/agents/orchestrator-sisyphus.d.ts.map +1 -0
  88. package/dist/agents/orchestrator-sisyphus.js +115 -0
  89. package/dist/agents/orchestrator-sisyphus.js.map +1 -0
  90. package/dist/agents/prometheus.d.ts +12 -0
  91. package/dist/agents/prometheus.d.ts.map +1 -0
  92. package/dist/agents/prometheus.js +195 -0
  93. package/dist/agents/prometheus.js.map +1 -0
  94. package/dist/agents/qa-tester.js +1 -1
  95. package/dist/agents/qa-tester.js.map +1 -1
  96. package/dist/agents/sisyphus-junior.d.ts +12 -0
  97. package/dist/agents/sisyphus-junior.d.ts.map +1 -0
  98. package/dist/agents/sisyphus-junior.js +93 -0
  99. package/dist/agents/sisyphus-junior.js.map +1 -0
  100. package/dist/cli/analytics.js +0 -0
  101. package/dist/cli/components/CostDashboard.d.ts +15 -0
  102. package/dist/cli/components/CostDashboard.d.ts.map +1 -0
  103. package/dist/cli/components/CostDashboard.js +15 -0
  104. package/dist/cli/components/CostDashboard.js.map +1 -0
  105. package/dist/cli/components/LiveStats.d.ts +16 -0
  106. package/dist/cli/components/LiveStats.d.ts.map +1 -0
  107. package/dist/cli/components/LiveStats.js +16 -0
  108. package/dist/cli/components/LiveStats.js.map +1 -0
  109. package/dist/cli/components/SessionBrowser.d.ts +14 -0
  110. package/dist/cli/components/SessionBrowser.d.ts.map +1 -0
  111. package/dist/cli/components/SessionBrowser.js +14 -0
  112. package/dist/cli/components/SessionBrowser.js.map +1 -0
  113. package/dist/cli/index.js +0 -0
  114. package/dist/cli/tui.d.ts +21 -0
  115. package/dist/cli/tui.d.ts.map +1 -0
  116. package/dist/cli/tui.js +21 -0
  117. package/dist/cli/tui.js.map +1 -0
  118. package/dist/hooks/autopilot/signals.d.ts +20 -0
  119. package/dist/hooks/autopilot/signals.d.ts.map +1 -0
  120. package/dist/hooks/autopilot/signals.js +75 -0
  121. package/dist/hooks/autopilot/signals.js.map +1 -0
  122. package/dist/hooks/autopilot/summary.d.ts +27 -0
  123. package/dist/hooks/autopilot/summary.d.ts.map +1 -0
  124. package/dist/hooks/autopilot/summary.js +160 -0
  125. package/dist/hooks/autopilot/summary.js.map +1 -0
  126. package/dist/hooks/autopilot/transition.d.ts +39 -0
  127. package/dist/hooks/autopilot/transition.d.ts.map +1 -0
  128. package/dist/hooks/autopilot/transition.js +216 -0
  129. package/dist/hooks/autopilot/transition.js.map +1 -0
  130. package/dist/hooks/context-window-limit-recovery/constants.d.ts +28 -0
  131. package/dist/hooks/context-window-limit-recovery/constants.d.ts.map +1 -0
  132. package/dist/hooks/context-window-limit-recovery/constants.js +85 -0
  133. package/dist/hooks/context-window-limit-recovery/constants.js.map +1 -0
  134. package/dist/hooks/context-window-limit-recovery/index.d.ts +62 -0
  135. package/dist/hooks/context-window-limit-recovery/index.d.ts.map +1 -0
  136. package/dist/hooks/context-window-limit-recovery/index.js +201 -0
  137. package/dist/hooks/context-window-limit-recovery/index.js.map +1 -0
  138. package/dist/hooks/context-window-limit-recovery/parser.d.ts +31 -0
  139. package/dist/hooks/context-window-limit-recovery/parser.d.ts.map +1 -0
  140. package/dist/hooks/context-window-limit-recovery/parser.js +241 -0
  141. package/dist/hooks/context-window-limit-recovery/parser.js.map +1 -0
  142. package/dist/hooks/context-window-limit-recovery/types.d.ts +84 -0
  143. package/dist/hooks/context-window-limit-recovery/types.d.ts.map +1 -0
  144. package/dist/hooks/context-window-limit-recovery/types.js +34 -0
  145. package/dist/hooks/context-window-limit-recovery/types.js.map +1 -0
  146. package/dist/hooks/edit-error-recovery/index.d.ts +62 -0
  147. package/dist/hooks/edit-error-recovery/index.d.ts.map +1 -0
  148. package/dist/hooks/edit-error-recovery/index.js +89 -0
  149. package/dist/hooks/edit-error-recovery/index.js.map +1 -0
  150. package/dist/hooks/github-auto-responder/classifier.d.ts +43 -0
  151. package/dist/hooks/github-auto-responder/classifier.d.ts.map +1 -0
  152. package/dist/hooks/github-auto-responder/classifier.js +150 -0
  153. package/dist/hooks/github-auto-responder/classifier.js.map +1 -0
  154. package/dist/hooks/github-auto-responder/config.d.ts +109 -0
  155. package/dist/hooks/github-auto-responder/config.d.ts.map +1 -0
  156. package/dist/hooks/github-auto-responder/config.js +69 -0
  157. package/dist/hooks/github-auto-responder/config.js.map +1 -0
  158. package/dist/hooks/github-auto-responder/constants.d.ts +45 -0
  159. package/dist/hooks/github-auto-responder/constants.d.ts.map +1 -0
  160. package/dist/hooks/github-auto-responder/constants.js +60 -0
  161. package/dist/hooks/github-auto-responder/constants.js.map +1 -0
  162. package/dist/hooks/github-auto-responder/filters.d.ts +95 -0
  163. package/dist/hooks/github-auto-responder/filters.d.ts.map +1 -0
  164. package/dist/hooks/github-auto-responder/filters.js +174 -0
  165. package/dist/hooks/github-auto-responder/filters.js.map +1 -0
  166. package/dist/hooks/github-auto-responder/github-client.d.ts +65 -0
  167. package/dist/hooks/github-auto-responder/github-client.d.ts.map +1 -0
  168. package/dist/hooks/github-auto-responder/github-client.js +128 -0
  169. package/dist/hooks/github-auto-responder/github-client.js.map +1 -0
  170. package/dist/hooks/github-auto-responder/idempotency.d.ts +68 -0
  171. package/dist/hooks/github-auto-responder/idempotency.d.ts.map +1 -0
  172. package/dist/hooks/github-auto-responder/idempotency.js +147 -0
  173. package/dist/hooks/github-auto-responder/idempotency.js.map +1 -0
  174. package/dist/hooks/github-auto-responder/index.d.ts +140 -0
  175. package/dist/hooks/github-auto-responder/index.d.ts.map +1 -0
  176. package/dist/hooks/github-auto-responder/index.js +145 -0
  177. package/dist/hooks/github-auto-responder/index.js.map +1 -0
  178. package/dist/hooks/github-auto-responder/persona.d.ts +40 -0
  179. package/dist/hooks/github-auto-responder/persona.d.ts.map +1 -0
  180. package/dist/hooks/github-auto-responder/persona.js +99 -0
  181. package/dist/hooks/github-auto-responder/persona.js.map +1 -0
  182. package/dist/hooks/github-auto-responder/responder.d.ts +122 -0
  183. package/dist/hooks/github-auto-responder/responder.d.ts.map +1 -0
  184. package/dist/hooks/github-auto-responder/responder.js +264 -0
  185. package/dist/hooks/github-auto-responder/responder.js.map +1 -0
  186. package/dist/hooks/github-auto-responder/server.d.ts +140 -0
  187. package/dist/hooks/github-auto-responder/server.d.ts.map +1 -0
  188. package/dist/hooks/github-auto-responder/server.js +301 -0
  189. package/dist/hooks/github-auto-responder/server.js.map +1 -0
  190. package/dist/hooks/github-auto-responder/signature.d.ts +34 -0
  191. package/dist/hooks/github-auto-responder/signature.d.ts.map +1 -0
  192. package/dist/hooks/github-auto-responder/signature.js +79 -0
  193. package/dist/hooks/github-auto-responder/signature.js.map +1 -0
  194. package/dist/hooks/github-auto-responder/templates.d.ts +16 -0
  195. package/dist/hooks/github-auto-responder/templates.d.ts.map +1 -0
  196. package/dist/hooks/github-auto-responder/templates.js +93 -0
  197. package/dist/hooks/github-auto-responder/templates.js.map +1 -0
  198. package/dist/hooks/github-auto-responder/types.d.ts +246 -0
  199. package/dist/hooks/github-auto-responder/types.d.ts.map +1 -0
  200. package/dist/hooks/github-auto-responder/types.js +7 -0
  201. package/dist/hooks/github-auto-responder/types.js.map +1 -0
  202. package/dist/hooks/learned-skills/config.d.ts +53 -0
  203. package/dist/hooks/learned-skills/config.d.ts.map +1 -0
  204. package/dist/hooks/learned-skills/config.js +103 -0
  205. package/dist/hooks/learned-skills/config.js.map +1 -0
  206. package/dist/hooks/learned-skills/constants.d.ts +24 -0
  207. package/dist/hooks/learned-skills/constants.d.ts.map +1 -0
  208. package/dist/hooks/learned-skills/constants.js +26 -0
  209. package/dist/hooks/learned-skills/constants.js.map +1 -0
  210. package/dist/hooks/learned-skills/detection-hook.d.ts +39 -0
  211. package/dist/hooks/learned-skills/detection-hook.d.ts.map +1 -0
  212. package/dist/hooks/learned-skills/detection-hook.js +83 -0
  213. package/dist/hooks/learned-skills/detection-hook.js.map +1 -0
  214. package/dist/hooks/learned-skills/detector.d.ts +30 -0
  215. package/dist/hooks/learned-skills/detector.d.ts.map +1 -0
  216. package/dist/hooks/learned-skills/detector.js +150 -0
  217. package/dist/hooks/learned-skills/detector.js.map +1 -0
  218. package/dist/hooks/learned-skills/finder.d.ts +21 -0
  219. package/dist/hooks/learned-skills/finder.d.ts.map +1 -0
  220. package/dist/hooks/learned-skills/finder.js +117 -0
  221. package/dist/hooks/learned-skills/finder.js.map +1 -0
  222. package/dist/hooks/learned-skills/index.d.ts +62 -0
  223. package/dist/hooks/learned-skills/index.d.ts.map +1 -0
  224. package/dist/hooks/learned-skills/index.js +137 -0
  225. package/dist/hooks/learned-skills/index.js.map +1 -0
  226. package/dist/hooks/learned-skills/loader.d.ts +20 -0
  227. package/dist/hooks/learned-skills/loader.d.ts.map +1 -0
  228. package/dist/hooks/learned-skills/loader.js +107 -0
  229. package/dist/hooks/learned-skills/loader.js.map +1 -0
  230. package/dist/hooks/learned-skills/parser.d.ts +21 -0
  231. package/dist/hooks/learned-skills/parser.d.ts.map +1 -0
  232. package/dist/hooks/learned-skills/parser.js +190 -0
  233. package/dist/hooks/learned-skills/parser.js.map +1 -0
  234. package/dist/hooks/learned-skills/promotion.d.ts +29 -0
  235. package/dist/hooks/learned-skills/promotion.d.ts.map +1 -0
  236. package/dist/hooks/learned-skills/promotion.js +87 -0
  237. package/dist/hooks/learned-skills/promotion.js.map +1 -0
  238. package/dist/hooks/learned-skills/types.d.ts +109 -0
  239. package/dist/hooks/learned-skills/types.d.ts.map +1 -0
  240. package/dist/hooks/learned-skills/types.js +8 -0
  241. package/dist/hooks/learned-skills/types.js.map +1 -0
  242. package/dist/hooks/learned-skills/validator.d.ts +15 -0
  243. package/dist/hooks/learned-skills/validator.d.ts.map +1 -0
  244. package/dist/hooks/learned-skills/validator.js +87 -0
  245. package/dist/hooks/learned-skills/validator.js.map +1 -0
  246. package/dist/hooks/learned-skills/writer.d.ts +27 -0
  247. package/dist/hooks/learned-skills/writer.d.ts.map +1 -0
  248. package/dist/hooks/learned-skills/writer.js +126 -0
  249. package/dist/hooks/learned-skills/writer.js.map +1 -0
  250. package/dist/hooks/mnemosyne/config.d.ts +53 -0
  251. package/dist/hooks/mnemosyne/config.d.ts.map +1 -0
  252. package/dist/hooks/mnemosyne/config.js +103 -0
  253. package/dist/hooks/mnemosyne/config.js.map +1 -0
  254. package/dist/hooks/mnemosyne/constants.d.ts +24 -0
  255. package/dist/hooks/mnemosyne/constants.d.ts.map +1 -0
  256. package/dist/hooks/mnemosyne/constants.js +26 -0
  257. package/dist/hooks/mnemosyne/constants.js.map +1 -0
  258. package/dist/hooks/mnemosyne/detection-hook.d.ts +39 -0
  259. package/dist/hooks/mnemosyne/detection-hook.d.ts.map +1 -0
  260. package/dist/hooks/mnemosyne/detection-hook.js +83 -0
  261. package/dist/hooks/mnemosyne/detection-hook.js.map +1 -0
  262. package/dist/hooks/mnemosyne/detector.d.ts +30 -0
  263. package/dist/hooks/mnemosyne/detector.d.ts.map +1 -0
  264. package/dist/hooks/mnemosyne/detector.js +150 -0
  265. package/dist/hooks/mnemosyne/detector.js.map +1 -0
  266. package/dist/hooks/mnemosyne/finder.d.ts +21 -0
  267. package/dist/hooks/mnemosyne/finder.d.ts.map +1 -0
  268. package/dist/hooks/mnemosyne/finder.js +117 -0
  269. package/dist/hooks/mnemosyne/finder.js.map +1 -0
  270. package/dist/hooks/mnemosyne/index.d.ts +62 -0
  271. package/dist/hooks/mnemosyne/index.d.ts.map +1 -0
  272. package/dist/hooks/mnemosyne/index.js +137 -0
  273. package/dist/hooks/mnemosyne/index.js.map +1 -0
  274. package/dist/hooks/mnemosyne/loader.d.ts +20 -0
  275. package/dist/hooks/mnemosyne/loader.d.ts.map +1 -0
  276. package/dist/hooks/mnemosyne/loader.js +113 -0
  277. package/dist/hooks/mnemosyne/loader.js.map +1 -0
  278. package/dist/hooks/mnemosyne/parser.d.ts +21 -0
  279. package/dist/hooks/mnemosyne/parser.d.ts.map +1 -0
  280. package/dist/hooks/mnemosyne/parser.js +190 -0
  281. package/dist/hooks/mnemosyne/parser.js.map +1 -0
  282. package/dist/hooks/mnemosyne/promotion.d.ts +29 -0
  283. package/dist/hooks/mnemosyne/promotion.d.ts.map +1 -0
  284. package/dist/hooks/mnemosyne/promotion.js +87 -0
  285. package/dist/hooks/mnemosyne/promotion.js.map +1 -0
  286. package/dist/hooks/mnemosyne/types.d.ts +109 -0
  287. package/dist/hooks/mnemosyne/types.d.ts.map +1 -0
  288. package/dist/hooks/mnemosyne/types.js +8 -0
  289. package/dist/hooks/mnemosyne/types.js.map +1 -0
  290. package/dist/hooks/mnemosyne/validator.d.ts +15 -0
  291. package/dist/hooks/mnemosyne/validator.d.ts.map +1 -0
  292. package/dist/hooks/mnemosyne/validator.js +87 -0
  293. package/dist/hooks/mnemosyne/validator.js.map +1 -0
  294. package/dist/hooks/mnemosyne/writer.d.ts +27 -0
  295. package/dist/hooks/mnemosyne/writer.d.ts.map +1 -0
  296. package/dist/hooks/mnemosyne/writer.js +126 -0
  297. package/dist/hooks/mnemosyne/writer.js.map +1 -0
  298. package/dist/hooks/ralph-loop/index.d.ts +116 -0
  299. package/dist/hooks/ralph-loop/index.d.ts.map +1 -0
  300. package/dist/hooks/ralph-loop/index.js +322 -0
  301. package/dist/hooks/ralph-loop/index.js.map +1 -0
  302. package/dist/hooks/ralph-prd/index.d.ts +130 -0
  303. package/dist/hooks/ralph-prd/index.d.ts.map +1 -0
  304. package/dist/hooks/ralph-prd/index.js +310 -0
  305. package/dist/hooks/ralph-prd/index.js.map +1 -0
  306. package/dist/hooks/ralph-progress/index.d.ts +102 -0
  307. package/dist/hooks/ralph-progress/index.d.ts.map +1 -0
  308. package/dist/hooks/ralph-progress/index.js +408 -0
  309. package/dist/hooks/ralph-progress/index.js.map +1 -0
  310. package/dist/hooks/ralph-verifier/index.d.ts +72 -0
  311. package/dist/hooks/ralph-verifier/index.d.ts.map +1 -0
  312. package/dist/hooks/ralph-verifier/index.js +223 -0
  313. package/dist/hooks/ralph-verifier/index.js.map +1 -0
  314. package/dist/hooks/session-recovery/constants.d.ts +56 -0
  315. package/dist/hooks/session-recovery/constants.d.ts.map +1 -0
  316. package/dist/hooks/session-recovery/constants.js +78 -0
  317. package/dist/hooks/session-recovery/constants.js.map +1 -0
  318. package/dist/hooks/session-recovery/index.d.ts +53 -0
  319. package/dist/hooks/session-recovery/index.d.ts.map +1 -0
  320. package/dist/hooks/session-recovery/index.js +321 -0
  321. package/dist/hooks/session-recovery/index.js.map +1 -0
  322. package/dist/hooks/session-recovery/storage.d.ts +76 -0
  323. package/dist/hooks/session-recovery/storage.d.ts.map +1 -0
  324. package/dist/hooks/session-recovery/storage.js +383 -0
  325. package/dist/hooks/session-recovery/storage.js.map +1 -0
  326. package/dist/hooks/session-recovery/types.d.ts +145 -0
  327. package/dist/hooks/session-recovery/types.d.ts.map +1 -0
  328. package/dist/hooks/session-recovery/types.js +8 -0
  329. package/dist/hooks/session-recovery/types.js.map +1 -0
  330. package/dist/hooks/sisyphus-orchestrator/constants.d.ts +23 -0
  331. package/dist/hooks/sisyphus-orchestrator/constants.d.ts.map +1 -0
  332. package/dist/hooks/sisyphus-orchestrator/constants.js +142 -0
  333. package/dist/hooks/sisyphus-orchestrator/constants.js.map +1 -0
  334. package/dist/hooks/sisyphus-orchestrator/index.d.ts +113 -0
  335. package/dist/hooks/sisyphus-orchestrator/index.d.ts.map +1 -0
  336. package/dist/hooks/sisyphus-orchestrator/index.js +309 -0
  337. package/dist/hooks/sisyphus-orchestrator/index.js.map +1 -0
  338. package/dist/hooks/ultraqa-loop/index.d.ts +94 -0
  339. package/dist/hooks/ultraqa-loop/index.d.ts.map +1 -0
  340. package/dist/hooks/ultraqa-loop/index.js +216 -0
  341. package/dist/hooks/ultraqa-loop/index.js.map +1 -0
  342. package/dist/hooks/ultrawork-state/index.d.ts +62 -0
  343. package/dist/hooks/ultrawork-state/index.d.ts.map +1 -0
  344. package/dist/hooks/ultrawork-state/index.js +208 -0
  345. package/dist/hooks/ultrawork-state/index.js.map +1 -0
  346. package/dist/hud/sisyphus-state.d.ts +31 -0
  347. package/dist/hud/sisyphus-state.d.ts.map +1 -0
  348. package/dist/hud/sisyphus-state.js +163 -0
  349. package/dist/hud/sisyphus-state.js.map +1 -0
  350. package/dist/index.d.ts +1 -0
  351. package/dist/index.d.ts.map +1 -1
  352. package/dist/index.js +15 -3
  353. package/dist/index.js.map +1 -1
  354. package/dist/mcp/index.d.ts +1 -0
  355. package/dist/mcp/index.d.ts.map +1 -1
  356. package/dist/mcp/index.js +2 -0
  357. package/dist/mcp/index.js.map +1 -1
  358. package/dist/mcp/omc-tools-server.d.ts +25 -0
  359. package/dist/mcp/omc-tools-server.d.ts.map +1 -0
  360. package/dist/mcp/omc-tools-server.js +49 -0
  361. package/dist/mcp/omc-tools-server.js.map +1 -0
  362. package/dist/tools/ast-tools.d.ts.map +1 -1
  363. package/dist/tools/ast-tools.js +19 -39
  364. package/dist/tools/ast-tools.js.map +1 -1
  365. package/dist/tools/diagnostics/index.d.ts +7 -32
  366. package/dist/tools/diagnostics/index.d.ts.map +1 -1
  367. package/dist/tools/diagnostics/index.js +41 -171
  368. package/dist/tools/diagnostics/index.js.map +1 -1
  369. package/dist/tools/diagnostics/lsp-aggregator.d.ts +1 -13
  370. package/dist/tools/diagnostics/lsp-aggregator.d.ts.map +1 -1
  371. package/dist/tools/diagnostics/lsp-aggregator.js +4 -32
  372. package/dist/tools/diagnostics/lsp-aggregator.js.map +1 -1
  373. package/dist/tools/diagnostics/tsc-runner.d.ts +0 -6
  374. package/dist/tools/diagnostics/tsc-runner.d.ts.map +1 -1
  375. package/dist/tools/diagnostics/tsc-runner.js +5 -32
  376. package/dist/tools/diagnostics/tsc-runner.js.map +1 -1
  377. package/dist/tools/lsp/client.d.ts.map +1 -1
  378. package/dist/tools/lsp/client.js +1 -26
  379. package/dist/tools/lsp/client.js.map +1 -1
  380. package/dist/tools/lsp/servers.d.ts +0 -3
  381. package/dist/tools/lsp/servers.d.ts.map +1 -1
  382. package/dist/tools/lsp/servers.js +4 -111
  383. package/dist/tools/lsp/servers.js.map +1 -1
  384. package/dist/tools/lsp-tools.d.ts +2 -2
  385. package/dist/tools/lsp-tools.d.ts.map +1 -1
  386. package/dist/tools/lsp-tools.js +2 -2
  387. package/dist/tools/lsp-tools.js.map +1 -1
  388. package/package.json +1 -1
  389. package/skills/AGENTS.md +187 -0
  390. package/dist/tools/diagnostics/__tests__/detectProjectType.test.d.ts +0 -5
  391. package/dist/tools/diagnostics/__tests__/detectProjectType.test.d.ts.map +0 -1
  392. package/dist/tools/diagnostics/__tests__/detectProjectType.test.js +0 -42
  393. package/dist/tools/diagnostics/__tests__/detectProjectType.test.js.map +0 -1
  394. package/dist/tools/diagnostics/__tests__/integration.test.d.ts +0 -5
  395. package/dist/tools/diagnostics/__tests__/integration.test.d.ts.map +0 -1
  396. package/dist/tools/diagnostics/__tests__/integration.test.js +0 -66
  397. package/dist/tools/diagnostics/__tests__/integration.test.js.map +0 -1
  398. package/dist/tools/diagnostics/__tests__/parser-tests.d.ts +0 -5
  399. package/dist/tools/diagnostics/__tests__/parser-tests.d.ts.map +0 -1
  400. package/dist/tools/diagnostics/__tests__/parser-tests.js +0 -86
  401. package/dist/tools/diagnostics/__tests__/parser-tests.js.map +0 -1
  402. package/dist/tools/diagnostics/__tests__/parsers.test.d.ts +0 -5
  403. package/dist/tools/diagnostics/__tests__/parsers.test.d.ts.map +0 -1
  404. package/dist/tools/diagnostics/__tests__/parsers.test.js +0 -199
  405. package/dist/tools/diagnostics/__tests__/parsers.test.js.map +0 -1
  406. package/dist/tools/diagnostics/constants.d.ts +0 -9
  407. package/dist/tools/diagnostics/constants.d.ts.map +0 -1
  408. package/dist/tools/diagnostics/constants.js +0 -9
  409. package/dist/tools/diagnostics/constants.js.map +0 -1
  410. package/dist/tools/diagnostics/go-runner.d.ts +0 -31
  411. package/dist/tools/diagnostics/go-runner.d.ts.map +0 -1
  412. package/dist/tools/diagnostics/go-runner.js +0 -78
  413. package/dist/tools/diagnostics/go-runner.js.map +0 -1
  414. package/dist/tools/diagnostics/python-runner.d.ts +0 -39
  415. package/dist/tools/diagnostics/python-runner.d.ts.map +0 -1
  416. package/dist/tools/diagnostics/python-runner.js +0 -200
  417. package/dist/tools/diagnostics/python-runner.js.map +0 -1
  418. package/dist/tools/diagnostics/rust-runner.d.ts +0 -34
  419. package/dist/tools/diagnostics/rust-runner.d.ts.map +0 -1
  420. package/dist/tools/diagnostics/rust-runner.js +0 -106
  421. package/dist/tools/diagnostics/rust-runner.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration.test.js","sourceRoot":"","sources":["../../../../src/tools/diagnostics/__tests__/integration.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OA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M,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QAC9C,aAAa;QACb,wBAAwB,EAAE,CAAC;QAC3B,8EAA8E;QAC9E,MAAM,WAAW,GAAG,yBAAyB,EAAE,CAAC;QAChD,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Unit tests for diagnostic output parsers
3
- */
4
- export {};
5
- //# sourceMappingURL=parser-tests.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser-tests.d.ts","sourceRoot":"","sources":["../../../../src/tools/diagnostics/__tests__/parser-tests.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,86 +0,0 @@
1
- /**
2
- * Unit tests for diagnostic output parsers
3
- */
4
- import { describe, it, expect } from 'vitest';
5
- import { parseGoOutput } from '../go-runner.js';
6
- import { parseRustOutput } from '../rust-runner.js';
7
- import { parseMypyOutput, parsePylintOutput } from '../python-runner.js';
8
- describe('parseGoOutput', () => {
9
- it('parses go vet output correctly', () => {
10
- const output = `main.go:10:5: unreachable code
11
- pkg/util.go:25:12: result of fmt.Sprintf call not used`;
12
- const result = parseGoOutput(output);
13
- expect(result.diagnostics).toHaveLength(2);
14
- expect(result.diagnostics[0]).toMatchObject({
15
- file: 'main.go',
16
- line: 10,
17
- column: 5,
18
- message: 'unreachable code',
19
- severity: 'warning'
20
- });
21
- expect(result.warningCount).toBe(2);
22
- });
23
- it('returns empty for clean output', () => {
24
- const result = parseGoOutput('');
25
- expect(result.diagnostics).toHaveLength(0);
26
- expect(result.success).toBe(true);
27
- });
28
- });
29
- describe('parseRustOutput', () => {
30
- it('parses cargo check errors', () => {
31
- const output = `error[E0382]: borrow of moved value: \`x\`
32
- --> src/main.rs:5:20
33
- warning: unused variable: \`y\`
34
- --> src/lib.rs:10:9`;
35
- const result = parseRustOutput(output);
36
- expect(result.diagnostics).toHaveLength(2);
37
- expect(result.errorCount).toBe(1);
38
- expect(result.warningCount).toBe(1);
39
- expect(result.diagnostics[0]).toMatchObject({
40
- file: 'src/main.rs',
41
- line: 5,
42
- column: 20,
43
- code: 'E0382',
44
- severity: 'error'
45
- });
46
- });
47
- it('returns empty for clean output', () => {
48
- const result = parseRustOutput('');
49
- expect(result.diagnostics).toHaveLength(0);
50
- expect(result.success).toBe(true);
51
- });
52
- });
53
- describe('parseMypyOutput', () => {
54
- it('parses mypy errors', () => {
55
- const output = `main.py:10:5: error: Incompatible types [arg-type]
56
- utils.py:25:1: warning: Unused variable [unused-variable]
57
- main.py:15:1: note: See docs for details`;
58
- const result = parseMypyOutput(output);
59
- expect(result.diagnostics).toHaveLength(2); // note should be skipped
60
- expect(result.errorCount).toBe(1);
61
- expect(result.warningCount).toBe(1);
62
- expect(result.tool).toBe('mypy');
63
- });
64
- it('returns empty for clean output', () => {
65
- const result = parseMypyOutput('');
66
- expect(result.diagnostics).toHaveLength(0);
67
- expect(result.success).toBe(true);
68
- });
69
- });
70
- describe('parsePylintOutput', () => {
71
- it('parses pylint errors', () => {
72
- const output = `main.py:10:5: E0001: syntax error
73
- main.py:20:0: W0611: Unused import`;
74
- const result = parsePylintOutput(output);
75
- expect(result.diagnostics).toHaveLength(2);
76
- expect(result.errorCount).toBe(1);
77
- expect(result.warningCount).toBe(1);
78
- expect(result.tool).toBe('pylint');
79
- });
80
- it('returns empty for clean output', () => {
81
- const result = parsePylintOutput('');
82
- expect(result.diagnostics).toHaveLength(0);
83
- expect(result.success).toBe(true);
84
- });
85
- });
86
- //# sourceMappingURL=parser-tests.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser-tests.js","sourceRoot":"","sources":["../../../../src/tools/diagnostics/__tests__/parser-tests.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,aA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/**
2
- * Unit tests for diagnostic output parsers
3
- */
4
- export {};
5
- //# sourceMappingURL=parsers.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.test.d.ts","sourceRoot":"","sources":["../../../../src/tools/diagnostics/__tests__/parsers.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,199 +0,0 @@
1
- /**
2
- * Unit tests for diagnostic output parsers
3
- */
4
- import { describe, it, expect } from 'vitest';
5
- import { parseGoOutput } from '../go-runner.js';
6
- import { parseTscOutput } from '../tsc-runner.js';
7
- import { parseRustOutput } from '../rust-runner.js';
8
- import { parseMypyOutput, parsePylintOutput } from '../python-runner.js';
9
- describe('parseGoOutput', () => {
10
- it('parses go vet output correctly', () => {
11
- const output = `main.go:10:5: unreachable code
12
- pkg/util.go:25:12: result of fmt.Sprintf call not used`;
13
- const result = parseGoOutput(output);
14
- expect(result.diagnostics).toHaveLength(2);
15
- expect(result.diagnostics[0]).toMatchObject({
16
- file: 'main.go',
17
- line: 10,
18
- column: 5,
19
- message: 'unreachable code',
20
- severity: 'warning'
21
- });
22
- expect(result.warningCount).toBe(2);
23
- });
24
- it('returns empty for clean output', () => {
25
- const result = parseGoOutput('');
26
- expect(result.diagnostics).toHaveLength(0);
27
- expect(result.success).toBe(true);
28
- });
29
- it('parses Windows-style paths correctly', () => {
30
- const output = `C:\\Users\\dev\\project\\main.go:10:5: unreachable code`;
31
- const result = parseGoOutput(output);
32
- expect(result.diagnostics).toHaveLength(1);
33
- expect(result.diagnostics[0].file).toBe('C:\\Users\\dev\\project\\main.go');
34
- expect(result.diagnostics[0].line).toBe(10);
35
- expect(result.diagnostics[0].column).toBe(5);
36
- });
37
- it('handles Unicode filenames', () => {
38
- const output = `pkg/日本語.go:5:3: unreachable code`;
39
- const result = parseGoOutput(output);
40
- expect(result.diagnostics).toHaveLength(1);
41
- expect(result.diagnostics[0].file).toBe('pkg/日本語.go');
42
- });
43
- it('handles malformed output gracefully', () => {
44
- const result = parseGoOutput('not valid output\nrandom noise\n');
45
- expect(result.diagnostics).toHaveLength(0);
46
- expect(result.success).toBe(true);
47
- });
48
- });
49
- describe('parseTscOutput', () => {
50
- it('parses tsc errors correctly', () => {
51
- const output = `src/index.ts(10,5): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
52
- src/utils.ts(25,12): error TS2304: Cannot find name 'foo'.`;
53
- const result = parseTscOutput(output);
54
- expect(result.diagnostics).toHaveLength(2);
55
- expect(result.errorCount).toBe(2);
56
- expect(result.warningCount).toBe(0);
57
- expect(result.success).toBe(false);
58
- expect(result.diagnostics[0]).toMatchObject({
59
- file: 'src/index.ts',
60
- line: 10,
61
- column: 5,
62
- code: 'TS2345',
63
- severity: 'error',
64
- message: "Argument of type 'string' is not assignable to parameter of type 'number'."
65
- });
66
- });
67
- it('parses tsc warnings correctly', () => {
68
- const output = `src/index.ts(5,1): warning TS6133: 'x' is declared but its value is never read.`;
69
- const result = parseTscOutput(output);
70
- expect(result.diagnostics).toHaveLength(1);
71
- expect(result.errorCount).toBe(0);
72
- expect(result.warningCount).toBe(1);
73
- expect(result.success).toBe(true);
74
- });
75
- it('returns empty for clean output', () => {
76
- const result = parseTscOutput('');
77
- expect(result.diagnostics).toHaveLength(0);
78
- expect(result.success).toBe(true);
79
- });
80
- it('parses Windows-style paths correctly', () => {
81
- const output = `C:\\Users\\dev\\src\\index.ts(10,5): error TS2345: Type mismatch.`;
82
- const result = parseTscOutput(output);
83
- expect(result.diagnostics).toHaveLength(1);
84
- expect(result.diagnostics[0].file).toBe('C:\\Users\\dev\\src\\index.ts');
85
- });
86
- });
87
- describe('parseRustOutput', () => {
88
- it('parses cargo check JSON errors', () => {
89
- // Cargo JSON format: one JSON object per line
90
- const output = [
91
- '{"reason":"compiler-message","package_id":"test","manifest_path":"/test/Cargo.toml","target":{"name":"test"},"message":{"message":"borrow of moved value: `x`","code":{"code":"E0382","explanation":null},"level":"error","spans":[{"file_name":"src/main.rs","line_start":5,"line_end":5,"column_start":20,"column_end":21,"is_primary":true,"text":[],"label":null}],"children":[],"rendered":null}}',
92
- '{"reason":"compiler-message","package_id":"test","manifest_path":"/test/Cargo.toml","target":{"name":"test"},"message":{"message":"unused variable: `y`","code":null,"level":"warning","spans":[{"file_name":"src/lib.rs","line_start":10,"line_end":10,"column_start":9,"column_end":10,"is_primary":true,"text":[],"label":null}],"children":[],"rendered":null}}'
93
- ].join('\n');
94
- const result = parseRustOutput(output);
95
- expect(result.diagnostics).toHaveLength(2);
96
- expect(result.errorCount).toBe(1);
97
- expect(result.warningCount).toBe(1);
98
- expect(result.diagnostics[0]).toMatchObject({
99
- file: 'src/main.rs',
100
- line: 5,
101
- column: 20,
102
- code: 'E0382',
103
- severity: 'error',
104
- message: 'borrow of moved value: `x`'
105
- });
106
- });
107
- it('returns empty for clean output', () => {
108
- // Empty output or only build-finished message
109
- const result = parseRustOutput('');
110
- expect(result.diagnostics).toHaveLength(0);
111
- expect(result.success).toBe(true);
112
- });
113
- it('ignores non-compiler-message JSON lines', () => {
114
- const output = [
115
- '{"reason":"compiler-artifact","package_id":"test","target":{"name":"test"}}',
116
- '{"reason":"build-finished","success":false}',
117
- '{"reason":"compiler-message","package_id":"test","manifest_path":"/test/Cargo.toml","target":{"name":"test"},"message":{"message":"type mismatch","code":{"code":"E0308","explanation":null},"level":"error","spans":[{"file_name":"src/main.rs","line_start":3,"line_end":3,"column_start":18,"column_end":25,"is_primary":true,"text":[],"label":null}],"children":[],"rendered":null}}'
118
- ].join('\n');
119
- const result = parseRustOutput(output);
120
- expect(result.diagnostics).toHaveLength(1);
121
- expect(result.diagnostics[0].file).toBe('src/main.rs');
122
- expect(result.diagnostics[0].code).toBe('E0308');
123
- });
124
- it('handles warnings without error codes', () => {
125
- const output = '{"reason":"compiler-message","package_id":"test","manifest_path":"/test/Cargo.toml","target":{"name":"test"},"message":{"message":"unused variable: `x`","code":null,"level":"warning","spans":[{"file_name":"src/lib.rs","line_start":3,"line_end":3,"column_start":9,"column_end":10,"is_primary":true,"text":[],"label":null}],"children":[],"rendered":null}}';
126
- const result = parseRustOutput(output);
127
- expect(result.diagnostics).toHaveLength(1);
128
- expect(result.diagnostics[0].code).toBe('');
129
- expect(result.diagnostics[0].severity).toBe('warning');
130
- });
131
- it('skips messages without primary span', () => {
132
- // Message with no spans or no primary span should be skipped
133
- const output = '{"reason":"compiler-message","package_id":"test","manifest_path":"/test/Cargo.toml","target":{"name":"test"},"message":{"message":"some note","code":null,"level":"note","spans":[],"children":[],"rendered":null}}';
134
- const result = parseRustOutput(output);
135
- expect(result.diagnostics).toHaveLength(0);
136
- });
137
- it('uses primary span when multiple spans exist', () => {
138
- // Multiple spans, only primary should be used for location
139
- const output = '{"reason":"compiler-message","package_id":"test","manifest_path":"/test/Cargo.toml","target":{"name":"test"},"message":{"message":"mismatched types","code":{"code":"E0308","explanation":null},"level":"error","spans":[{"file_name":"src/other.rs","line_start":1,"line_end":1,"column_start":1,"column_end":2,"is_primary":false,"text":[],"label":"expected"},{"file_name":"src/main.rs","line_start":10,"line_end":10,"column_start":5,"column_end":15,"is_primary":true,"text":[],"label":"found"}],"children":[],"rendered":null}}';
140
- const result = parseRustOutput(output);
141
- expect(result.diagnostics).toHaveLength(1);
142
- expect(result.diagnostics[0].file).toBe('src/main.rs');
143
- expect(result.diagnostics[0].line).toBe(10);
144
- expect(result.diagnostics[0].column).toBe(5);
145
- });
146
- });
147
- describe('parseMypyOutput', () => {
148
- it('parses mypy errors', () => {
149
- const output = `main.py:10:5: error: Incompatible types [arg-type]
150
- utils.py:25:1: warning: Unused variable [unused-variable]
151
- main.py:15:1: note: See docs for details`;
152
- const result = parseMypyOutput(output);
153
- expect(result.diagnostics).toHaveLength(2); // note should be skipped
154
- expect(result.errorCount).toBe(1);
155
- expect(result.warningCount).toBe(1);
156
- expect(result.tool).toBe('mypy');
157
- });
158
- it('returns empty for clean output', () => {
159
- const result = parseMypyOutput('');
160
- expect(result.diagnostics).toHaveLength(0);
161
- expect(result.success).toBe(true);
162
- });
163
- it('parses Windows-style mypy paths', () => {
164
- const output = `C:\\Users\\dev\\main.py:10:5: error: Incompatible types [arg-type]`;
165
- const result = parseMypyOutput(output);
166
- expect(result.diagnostics).toHaveLength(1);
167
- expect(result.diagnostics[0].file).toBe('C:\\Users\\dev\\main.py');
168
- });
169
- });
170
- describe('parsePylintOutput', () => {
171
- it('parses pylint errors', () => {
172
- const output = `main.py:10:5: E0001: syntax error
173
- main.py:20:0: W0611: Unused import`;
174
- const result = parsePylintOutput(output);
175
- expect(result.diagnostics).toHaveLength(2);
176
- expect(result.errorCount).toBe(1);
177
- expect(result.warningCount).toBe(1);
178
- expect(result.tool).toBe('pylint');
179
- });
180
- it('returns empty for clean output', () => {
181
- const result = parsePylintOutput('');
182
- expect(result.diagnostics).toHaveLength(0);
183
- expect(result.success).toBe(true);
184
- });
185
- it('classifies F (Fatal) codes as errors', () => {
186
- const output = `main.py:1:0: F0001: error in module (fatal)`;
187
- const result = parsePylintOutput(output);
188
- expect(result.diagnostics).toHaveLength(1);
189
- expect(result.diagnostics[0].severity).toBe('error');
190
- expect(result.errorCount).toBe(1);
191
- });
192
- it('parses Windows-style pylint paths', () => {
193
- const output = `C:\\Users\\dev\\main.py:10:5: E0001: syntax error`;
194
- const result = parsePylintOutput(output);
195
- expect(result.diagnostics).toHaveLength(1);
196
- expect(result.diagnostics[0].file).toBe('C:\\Users\\dev\\main.py');
197
- });
198
- });
199
- //# sourceMappingURL=parsers.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.test.js","sourceRoot":"","sources":["../../../../src/tools/diagnostics/__tests__/parsers.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM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extracted to break circular dependency between index.ts and runners.
4
- */
5
- /** Timeout for external process execution (5 minutes) */
6
- export declare const EXTERNAL_PROCESS_TIMEOUT_MS = 300000;
7
- /** Wait time for LSP diagnostics to be published */
8
- export declare const LSP_DIAGNOSTICS_WAIT_MS = 300;
9
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/tools/diagnostics/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,yDAAyD;AACzD,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAElD,oDAAoD;AACpD,eAAO,MAAM,uBAAuB,MAAM,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Shared constants for diagnostics module.
3
- * Extracted to break circular dependency between index.ts and runners.
4
- */
5
- /** Timeout for external process execution (5 minutes) */
6
- export const EXTERNAL_PROCESS_TIMEOUT_MS = 300000;
7
- /** Wait time for LSP diagnostics to be published */
8
- export const LSP_DIAGNOSTICS_WAIT_MS = 300;
9
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/tools/diagnostics/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,yDAAyD;AACzD,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAElD,oDAAoD;AACpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC"}
@@ -1,31 +0,0 @@
1
- /**
2
- * Go Diagnostics Runner
3
- *
4
- * Uses `go vet` for static analysis of Go projects.
5
- */
6
- export interface GoDiagnostic {
7
- file: string;
8
- line: number;
9
- column: number;
10
- message: string;
11
- severity: 'error' | 'warning';
12
- }
13
- export interface GoResult {
14
- success: boolean;
15
- diagnostics: GoDiagnostic[];
16
- errorCount: number;
17
- warningCount: number;
18
- skipped?: string;
19
- }
20
- /**
21
- * Run Go vet diagnostics on a directory
22
- * @param directory - Project directory containing go.mod
23
- * @returns Result with diagnostics
24
- */
25
- export declare function runGoDiagnostics(directory: string): GoResult;
26
- /**
27
- * Parse go vet output
28
- * Format: file.go:line:col: message
29
- */
30
- export declare function parseGoOutput(output: string): GoResult;
31
- //# sourceMappingURL=go-runner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"go-runner.d.ts","sourceRoot":"","sources":["../../../src/tools/diagnostics/go-runner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAuC5D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAqBtD"}
@@ -1,78 +0,0 @@
1
- /**
2
- * Go Diagnostics Runner
3
- *
4
- * Uses `go vet` for static analysis of Go projects.
5
- */
6
- import { execFileSync } from 'child_process';
7
- import { existsSync } from 'fs';
8
- import { join } from 'path';
9
- import { EXTERNAL_PROCESS_TIMEOUT_MS } from './constants.js';
10
- /**
11
- * Run Go vet diagnostics on a directory
12
- * @param directory - Project directory containing go.mod
13
- * @returns Result with diagnostics
14
- */
15
- export function runGoDiagnostics(directory) {
16
- const goModPath = join(directory, 'go.mod');
17
- if (!existsSync(goModPath)) {
18
- return {
19
- success: true,
20
- diagnostics: [],
21
- errorCount: 0,
22
- warningCount: 0,
23
- skipped: 'no go.mod found in directory'
24
- };
25
- }
26
- try {
27
- execFileSync('go', ['vet', './...'], {
28
- cwd: directory,
29
- encoding: 'utf-8',
30
- stdio: ['pipe', 'pipe', 'pipe'],
31
- timeout: EXTERNAL_PROCESS_TIMEOUT_MS
32
- });
33
- return {
34
- success: true,
35
- diagnostics: [],
36
- errorCount: 0,
37
- warningCount: 0
38
- };
39
- }
40
- catch (error) {
41
- if (error.code === 'ENOENT') {
42
- return {
43
- success: true,
44
- diagnostics: [],
45
- errorCount: 0,
46
- warningCount: 0,
47
- skipped: '`go` binary not found in PATH'
48
- };
49
- }
50
- const output = error.stderr || error.stdout || '';
51
- return parseGoOutput(output);
52
- }
53
- }
54
- /**
55
- * Parse go vet output
56
- * Format: file.go:line:col: message
57
- */
58
- export function parseGoOutput(output) {
59
- const diagnostics = [];
60
- const regex = /^(.+?\.go):(\d+):(\d+):\s+(.+)$/gm;
61
- let match;
62
- while ((match = regex.exec(output)) !== null) {
63
- diagnostics.push({
64
- file: match[1],
65
- line: parseInt(match[2], 10),
66
- column: parseInt(match[3], 10),
67
- message: match[4],
68
- severity: 'warning'
69
- });
70
- }
71
- return {
72
- success: diagnostics.length === 0,
73
- diagnostics,
74
- errorCount: 0,
75
- warningCount: diagnostics.length
76
- };
77
- }
78
- //# sourceMappingURL=go-runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"go-runner.js","sourceRoot":"","sources":["../../../src/tools/diagnostics/go-runner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAkB7D;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAiB;IAChD,MAAM,SAAS,GAAG,IAAI,CAAC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EAAE,CAAC;QAC7C,WAAW,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;YACd,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;YAC5B,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;YAC9B,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;YACjB,QAAQ,EAAE,SAAS;SACpB,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,OAAO,EAAE,WAAW,CAAC,MAAM,KAAK,CAAC;QACjC,WAAW;QACX,UAAU,EAAE,CAAC;QACb,YAAY,EAAE,WAAW,CAAC,MAAM;KACjC,CAAC;AACJ,CAAC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * Python Diagnostics Runner
3
- *
4
- * Uses mypy for type checking of Python projects.
5
- * Falls back to pylint if mypy unavailable.
6
- */
7
- export interface PythonDiagnostic {
8
- file: string;
9
- line: number;
10
- column: number;
11
- code: string;
12
- message: string;
13
- severity: 'error' | 'warning';
14
- }
15
- export interface PythonResult {
16
- success: boolean;
17
- diagnostics: PythonDiagnostic[];
18
- errorCount: number;
19
- warningCount: number;
20
- tool: 'mypy' | 'pylint' | 'none';
21
- skipped?: string;
22
- }
23
- /**
24
- * Run Python diagnostics on a directory
25
- * @param directory - Project directory
26
- * @returns Result with diagnostics
27
- */
28
- export declare function runPythonDiagnostics(directory: string): PythonResult;
29
- /**
30
- * Parse mypy output
31
- * Format: file.py:line:col: severity: message [code]
32
- */
33
- export declare function parseMypyOutput(output: string): PythonResult;
34
- /**
35
- * Parse pylint output
36
- * Format: file.py:line:col: code: message
37
- */
38
- export declare function parsePylintOutput(output: string): PythonResult;
39
- //# sourceMappingURL=python-runner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"python-runner.d.ts","sourceRoot":"","sources":["../../../src/tools/diagnostics/python-runner.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAgCpE;AAiDD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,CA2B5D;AAiDD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,CA4B9D"}