oh-my-claude-sisyphus 3.7.4 → 3.7.6

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 (427) hide show
  1. package/commands/hud.md +3 -1
  2. package/dist/__tests__/analytics/output-estimator.test.js +18 -0
  3. package/dist/__tests__/analytics/output-estimator.test.js.map +1 -1
  4. package/dist/__tests__/analytics/token-extractor.test.js +44 -0
  5. package/dist/__tests__/analytics/token-extractor.test.js.map +1 -1
  6. package/dist/__tests__/analytics/token-tracker.test.d.ts +2 -0
  7. package/dist/__tests__/analytics/token-tracker.test.d.ts.map +1 -0
  8. package/dist/__tests__/analytics/token-tracker.test.js +189 -0
  9. package/dist/__tests__/analytics/token-tracker.test.js.map +1 -0
  10. package/dist/__tests__/hud/analytics-display.test.js +3 -8
  11. package/dist/__tests__/hud/analytics-display.test.js.map +1 -1
  12. package/dist/__tests__/hud/top-agents.test.d.ts +8 -0
  13. package/dist/__tests__/hud/top-agents.test.d.ts.map +1 -0
  14. package/dist/__tests__/hud/top-agents.test.js +157 -0
  15. package/dist/__tests__/hud/top-agents.test.js.map +1 -0
  16. package/dist/__tests__/installer.test.js +1 -1
  17. package/dist/analytics/output-estimator.d.ts.map +1 -1
  18. package/dist/analytics/output-estimator.js +5 -1
  19. package/dist/analytics/output-estimator.js.map +1 -1
  20. package/dist/analytics/token-extractor.js +2 -2
  21. package/dist/analytics/token-extractor.js.map +1 -1
  22. package/dist/cli/analytics.js +0 -0
  23. package/dist/cli/index.js +0 -0
  24. package/dist/hooks/pre-compact/index.d.ts +2 -4
  25. package/dist/hooks/pre-compact/index.d.ts.map +1 -1
  26. package/dist/hooks/pre-compact/index.js +3 -4
  27. package/dist/hooks/pre-compact/index.js.map +1 -1
  28. package/dist/hud/analytics-display.d.ts.map +1 -1
  29. package/dist/hud/analytics-display.js +0 -1
  30. package/dist/hud/analytics-display.js.map +1 -1
  31. package/dist/hud/index.js +52 -3
  32. package/dist/hud/index.js.map +1 -1
  33. package/dist/installer/index.d.ts +1 -1
  34. package/dist/installer/index.js +1 -1
  35. package/dist/tools/ast-tools.d.ts.map +1 -1
  36. package/dist/tools/ast-tools.js +39 -19
  37. package/dist/tools/ast-tools.js.map +1 -1
  38. package/dist/tools/diagnostics/__tests__/detectProjectType.test.d.ts +5 -0
  39. package/dist/tools/diagnostics/__tests__/detectProjectType.test.d.ts.map +1 -0
  40. package/dist/tools/diagnostics/__tests__/detectProjectType.test.js +42 -0
  41. package/dist/tools/diagnostics/__tests__/detectProjectType.test.js.map +1 -0
  42. package/dist/tools/diagnostics/__tests__/integration.test.d.ts +5 -0
  43. package/dist/tools/diagnostics/__tests__/integration.test.d.ts.map +1 -0
  44. package/dist/tools/diagnostics/__tests__/integration.test.js +66 -0
  45. package/dist/tools/diagnostics/__tests__/integration.test.js.map +1 -0
  46. package/dist/tools/diagnostics/__tests__/parser-tests.d.ts +5 -0
  47. package/dist/tools/diagnostics/__tests__/parser-tests.d.ts.map +1 -0
  48. package/dist/tools/diagnostics/__tests__/parser-tests.js +86 -0
  49. package/dist/tools/diagnostics/__tests__/parser-tests.js.map +1 -0
  50. package/dist/tools/diagnostics/__tests__/parsers.test.d.ts +5 -0
  51. package/dist/tools/diagnostics/__tests__/parsers.test.d.ts.map +1 -0
  52. package/dist/tools/diagnostics/__tests__/parsers.test.js +199 -0
  53. package/dist/tools/diagnostics/__tests__/parsers.test.js.map +1 -0
  54. package/dist/tools/diagnostics/constants.d.ts +9 -0
  55. package/dist/tools/diagnostics/constants.d.ts.map +1 -0
  56. package/dist/tools/diagnostics/constants.js +9 -0
  57. package/dist/tools/diagnostics/constants.js.map +1 -0
  58. package/dist/tools/diagnostics/go-runner.d.ts +31 -0
  59. package/dist/tools/diagnostics/go-runner.d.ts.map +1 -0
  60. package/dist/tools/diagnostics/go-runner.js +78 -0
  61. package/dist/tools/diagnostics/go-runner.js.map +1 -0
  62. package/dist/tools/diagnostics/index.d.ts +32 -7
  63. package/dist/tools/diagnostics/index.d.ts.map +1 -1
  64. package/dist/tools/diagnostics/index.js +171 -41
  65. package/dist/tools/diagnostics/index.js.map +1 -1
  66. package/dist/tools/diagnostics/lsp-aggregator.d.ts +13 -1
  67. package/dist/tools/diagnostics/lsp-aggregator.d.ts.map +1 -1
  68. package/dist/tools/diagnostics/lsp-aggregator.js +32 -4
  69. package/dist/tools/diagnostics/lsp-aggregator.js.map +1 -1
  70. package/dist/tools/diagnostics/python-runner.d.ts +39 -0
  71. package/dist/tools/diagnostics/python-runner.d.ts.map +1 -0
  72. package/dist/tools/diagnostics/python-runner.js +200 -0
  73. package/dist/tools/diagnostics/python-runner.js.map +1 -0
  74. package/dist/tools/diagnostics/rust-runner.d.ts +34 -0
  75. package/dist/tools/diagnostics/rust-runner.d.ts.map +1 -0
  76. package/dist/tools/diagnostics/rust-runner.js +106 -0
  77. package/dist/tools/diagnostics/rust-runner.js.map +1 -0
  78. package/dist/tools/diagnostics/tsc-runner.d.ts +6 -0
  79. package/dist/tools/diagnostics/tsc-runner.d.ts.map +1 -1
  80. package/dist/tools/diagnostics/tsc-runner.js +32 -5
  81. package/dist/tools/diagnostics/tsc-runner.js.map +1 -1
  82. package/dist/tools/lsp/client.d.ts.map +1 -1
  83. package/dist/tools/lsp/client.js +26 -1
  84. package/dist/tools/lsp/client.js.map +1 -1
  85. package/dist/tools/lsp/servers.d.ts +3 -0
  86. package/dist/tools/lsp/servers.d.ts.map +1 -1
  87. package/dist/tools/lsp/servers.js +111 -4
  88. package/dist/tools/lsp/servers.js.map +1 -1
  89. package/dist/tools/lsp-tools.d.ts +2 -2
  90. package/dist/tools/lsp-tools.d.ts.map +1 -1
  91. package/dist/tools/lsp-tools.js +2 -2
  92. package/dist/tools/lsp-tools.js.map +1 -1
  93. package/package.json +1 -1
  94. package/skills/hud/SKILL.md +3 -1
  95. package/dist/__tests__/analytics/analytics-summary.test.d.ts +0 -2
  96. package/dist/__tests__/analytics/analytics-summary.test.d.ts.map +0 -1
  97. package/dist/__tests__/analytics/analytics-summary.test.js +0 -267
  98. package/dist/__tests__/analytics/analytics-summary.test.js.map +0 -1
  99. package/dist/__tests__/analytics/cost-estimator.test.d.ts +0 -2
  100. package/dist/__tests__/analytics/cost-estimator.test.d.ts.map +0 -1
  101. package/dist/__tests__/analytics/cost-estimator.test.js +0 -212
  102. package/dist/__tests__/analytics/cost-estimator.test.js.map +0 -1
  103. package/dist/__tests__/hooks/auto-slash-command/executor.test.d.ts +0 -7
  104. package/dist/__tests__/hooks/auto-slash-command/executor.test.d.ts.map +0 -1
  105. package/dist/__tests__/hooks/auto-slash-command/executor.test.js +0 -374
  106. package/dist/__tests__/hooks/auto-slash-command/executor.test.js.map +0 -1
  107. package/dist/__tests__/hud/auto-tracking.integration.test.d.ts +0 -2
  108. package/dist/__tests__/hud/auto-tracking.integration.test.d.ts.map +0 -1
  109. package/dist/__tests__/hud/auto-tracking.integration.test.js +0 -12
  110. package/dist/__tests__/hud/auto-tracking.integration.test.js.map +0 -1
  111. package/dist/__tests__/learned-skills/config.test.d.ts +0 -2
  112. package/dist/__tests__/learned-skills/config.test.d.ts.map +0 -1
  113. package/dist/__tests__/learned-skills/config.test.js +0 -37
  114. package/dist/__tests__/learned-skills/config.test.js.map +0 -1
  115. package/dist/__tests__/learned-skills/detector.test.d.ts +0 -2
  116. package/dist/__tests__/learned-skills/detector.test.d.ts.map +0 -1
  117. package/dist/__tests__/learned-skills/detector.test.js +0 -99
  118. package/dist/__tests__/learned-skills/detector.test.js.map +0 -1
  119. package/dist/__tests__/learned-skills/finder.test.d.ts +0 -2
  120. package/dist/__tests__/learned-skills/finder.test.d.ts.map +0 -1
  121. package/dist/__tests__/learned-skills/finder.test.js +0 -59
  122. package/dist/__tests__/learned-skills/finder.test.js.map +0 -1
  123. package/dist/__tests__/learned-skills/loader.test.d.ts +0 -2
  124. package/dist/__tests__/learned-skills/loader.test.d.ts.map +0 -1
  125. package/dist/__tests__/learned-skills/loader.test.js +0 -69
  126. package/dist/__tests__/learned-skills/loader.test.js.map +0 -1
  127. package/dist/__tests__/learned-skills/parser.test.d.ts +0 -2
  128. package/dist/__tests__/learned-skills/parser.test.d.ts.map +0 -1
  129. package/dist/__tests__/learned-skills/parser.test.js +0 -81
  130. package/dist/__tests__/learned-skills/parser.test.js.map +0 -1
  131. package/dist/__tests__/learned-skills/validator.test.d.ts +0 -2
  132. package/dist/__tests__/learned-skills/validator.test.d.ts.map +0 -1
  133. package/dist/__tests__/learned-skills/validator.test.js +0 -85
  134. package/dist/__tests__/learned-skills/validator.test.js.map +0 -1
  135. package/dist/agents/codex-agents.d.ts +0 -20
  136. package/dist/agents/codex-agents.d.ts.map +0 -1
  137. package/dist/agents/codex-agents.js +0 -36
  138. package/dist/agents/codex-agents.js.map +0 -1
  139. package/dist/agents/document-writer.d.ts +0 -11
  140. package/dist/agents/document-writer.d.ts.map +0 -1
  141. package/dist/agents/document-writer.js +0 -209
  142. package/dist/agents/document-writer.js.map +0 -1
  143. package/dist/agents/frontend-engineer.d.ts +0 -11
  144. package/dist/agents/frontend-engineer.d.ts.map +0 -1
  145. package/dist/agents/frontend-engineer.js +0 -115
  146. package/dist/agents/frontend-engineer.js.map +0 -1
  147. package/dist/agents/librarian.d.ts +0 -12
  148. package/dist/agents/librarian.d.ts.map +0 -1
  149. package/dist/agents/librarian.js +0 -103
  150. package/dist/agents/librarian.js.map +0 -1
  151. package/dist/agents/metis.d.ts +0 -12
  152. package/dist/agents/metis.d.ts.map +0 -1
  153. package/dist/agents/metis.js +0 -117
  154. package/dist/agents/metis.js.map +0 -1
  155. package/dist/agents/momus.d.ts +0 -12
  156. package/dist/agents/momus.d.ts.map +0 -1
  157. package/dist/agents/momus.js +0 -128
  158. package/dist/agents/momus.js.map +0 -1
  159. package/dist/agents/multimodal-looker.d.ts +0 -11
  160. package/dist/agents/multimodal-looker.d.ts.map +0 -1
  161. package/dist/agents/multimodal-looker.js +0 -70
  162. package/dist/agents/multimodal-looker.js.map +0 -1
  163. package/dist/agents/oracle.d.ts +0 -13
  164. package/dist/agents/oracle.d.ts.map +0 -1
  165. package/dist/agents/oracle.js +0 -191
  166. package/dist/agents/oracle.js.map +0 -1
  167. package/dist/agents/orchestrator-sisyphus.d.ts +0 -11
  168. package/dist/agents/orchestrator-sisyphus.d.ts.map +0 -1
  169. package/dist/agents/orchestrator-sisyphus.js +0 -115
  170. package/dist/agents/orchestrator-sisyphus.js.map +0 -1
  171. package/dist/agents/prometheus.d.ts +0 -12
  172. package/dist/agents/prometheus.d.ts.map +0 -1
  173. package/dist/agents/prometheus.js +0 -195
  174. package/dist/agents/prometheus.js.map +0 -1
  175. package/dist/agents/sisyphus-junior.d.ts +0 -12
  176. package/dist/agents/sisyphus-junior.d.ts.map +0 -1
  177. package/dist/agents/sisyphus-junior.js +0 -93
  178. package/dist/agents/sisyphus-junior.js.map +0 -1
  179. package/dist/cli/components/CostDashboard.d.ts +0 -15
  180. package/dist/cli/components/CostDashboard.d.ts.map +0 -1
  181. package/dist/cli/components/CostDashboard.js +0 -15
  182. package/dist/cli/components/CostDashboard.js.map +0 -1
  183. package/dist/cli/components/LiveStats.d.ts +0 -16
  184. package/dist/cli/components/LiveStats.d.ts.map +0 -1
  185. package/dist/cli/components/LiveStats.js +0 -16
  186. package/dist/cli/components/LiveStats.js.map +0 -1
  187. package/dist/cli/components/SessionBrowser.d.ts +0 -14
  188. package/dist/cli/components/SessionBrowser.d.ts.map +0 -1
  189. package/dist/cli/components/SessionBrowser.js +0 -14
  190. package/dist/cli/components/SessionBrowser.js.map +0 -1
  191. package/dist/cli/tui.d.ts +0 -21
  192. package/dist/cli/tui.d.ts.map +0 -1
  193. package/dist/cli/tui.js +0 -21
  194. package/dist/cli/tui.js.map +0 -1
  195. package/dist/hooks/autopilot/signals.d.ts +0 -20
  196. package/dist/hooks/autopilot/signals.d.ts.map +0 -1
  197. package/dist/hooks/autopilot/signals.js +0 -75
  198. package/dist/hooks/autopilot/signals.js.map +0 -1
  199. package/dist/hooks/autopilot/summary.d.ts +0 -27
  200. package/dist/hooks/autopilot/summary.d.ts.map +0 -1
  201. package/dist/hooks/autopilot/summary.js +0 -160
  202. package/dist/hooks/autopilot/summary.js.map +0 -1
  203. package/dist/hooks/autopilot/transition.d.ts +0 -39
  204. package/dist/hooks/autopilot/transition.d.ts.map +0 -1
  205. package/dist/hooks/autopilot/transition.js +0 -216
  206. package/dist/hooks/autopilot/transition.js.map +0 -1
  207. package/dist/hooks/context-window-limit-recovery/constants.d.ts +0 -28
  208. package/dist/hooks/context-window-limit-recovery/constants.d.ts.map +0 -1
  209. package/dist/hooks/context-window-limit-recovery/constants.js +0 -85
  210. package/dist/hooks/context-window-limit-recovery/constants.js.map +0 -1
  211. package/dist/hooks/context-window-limit-recovery/index.d.ts +0 -62
  212. package/dist/hooks/context-window-limit-recovery/index.d.ts.map +0 -1
  213. package/dist/hooks/context-window-limit-recovery/index.js +0 -201
  214. package/dist/hooks/context-window-limit-recovery/index.js.map +0 -1
  215. package/dist/hooks/context-window-limit-recovery/parser.d.ts +0 -31
  216. package/dist/hooks/context-window-limit-recovery/parser.d.ts.map +0 -1
  217. package/dist/hooks/context-window-limit-recovery/parser.js +0 -241
  218. package/dist/hooks/context-window-limit-recovery/parser.js.map +0 -1
  219. package/dist/hooks/context-window-limit-recovery/types.d.ts +0 -84
  220. package/dist/hooks/context-window-limit-recovery/types.d.ts.map +0 -1
  221. package/dist/hooks/context-window-limit-recovery/types.js +0 -34
  222. package/dist/hooks/context-window-limit-recovery/types.js.map +0 -1
  223. package/dist/hooks/edit-error-recovery/index.d.ts +0 -62
  224. package/dist/hooks/edit-error-recovery/index.d.ts.map +0 -1
  225. package/dist/hooks/edit-error-recovery/index.js +0 -89
  226. package/dist/hooks/edit-error-recovery/index.js.map +0 -1
  227. package/dist/hooks/github-auto-responder/classifier.d.ts +0 -43
  228. package/dist/hooks/github-auto-responder/classifier.d.ts.map +0 -1
  229. package/dist/hooks/github-auto-responder/classifier.js +0 -150
  230. package/dist/hooks/github-auto-responder/classifier.js.map +0 -1
  231. package/dist/hooks/github-auto-responder/config.d.ts +0 -109
  232. package/dist/hooks/github-auto-responder/config.d.ts.map +0 -1
  233. package/dist/hooks/github-auto-responder/config.js +0 -69
  234. package/dist/hooks/github-auto-responder/config.js.map +0 -1
  235. package/dist/hooks/github-auto-responder/constants.d.ts +0 -45
  236. package/dist/hooks/github-auto-responder/constants.d.ts.map +0 -1
  237. package/dist/hooks/github-auto-responder/constants.js +0 -60
  238. package/dist/hooks/github-auto-responder/constants.js.map +0 -1
  239. package/dist/hooks/github-auto-responder/filters.d.ts +0 -95
  240. package/dist/hooks/github-auto-responder/filters.d.ts.map +0 -1
  241. package/dist/hooks/github-auto-responder/filters.js +0 -174
  242. package/dist/hooks/github-auto-responder/filters.js.map +0 -1
  243. package/dist/hooks/github-auto-responder/github-client.d.ts +0 -65
  244. package/dist/hooks/github-auto-responder/github-client.d.ts.map +0 -1
  245. package/dist/hooks/github-auto-responder/github-client.js +0 -128
  246. package/dist/hooks/github-auto-responder/github-client.js.map +0 -1
  247. package/dist/hooks/github-auto-responder/idempotency.d.ts +0 -68
  248. package/dist/hooks/github-auto-responder/idempotency.d.ts.map +0 -1
  249. package/dist/hooks/github-auto-responder/idempotency.js +0 -147
  250. package/dist/hooks/github-auto-responder/idempotency.js.map +0 -1
  251. package/dist/hooks/github-auto-responder/index.d.ts +0 -140
  252. package/dist/hooks/github-auto-responder/index.d.ts.map +0 -1
  253. package/dist/hooks/github-auto-responder/index.js +0 -145
  254. package/dist/hooks/github-auto-responder/index.js.map +0 -1
  255. package/dist/hooks/github-auto-responder/persona.d.ts +0 -40
  256. package/dist/hooks/github-auto-responder/persona.d.ts.map +0 -1
  257. package/dist/hooks/github-auto-responder/persona.js +0 -99
  258. package/dist/hooks/github-auto-responder/persona.js.map +0 -1
  259. package/dist/hooks/github-auto-responder/responder.d.ts +0 -122
  260. package/dist/hooks/github-auto-responder/responder.d.ts.map +0 -1
  261. package/dist/hooks/github-auto-responder/responder.js +0 -264
  262. package/dist/hooks/github-auto-responder/responder.js.map +0 -1
  263. package/dist/hooks/github-auto-responder/server.d.ts +0 -140
  264. package/dist/hooks/github-auto-responder/server.d.ts.map +0 -1
  265. package/dist/hooks/github-auto-responder/server.js +0 -301
  266. package/dist/hooks/github-auto-responder/server.js.map +0 -1
  267. package/dist/hooks/github-auto-responder/signature.d.ts +0 -34
  268. package/dist/hooks/github-auto-responder/signature.d.ts.map +0 -1
  269. package/dist/hooks/github-auto-responder/signature.js +0 -79
  270. package/dist/hooks/github-auto-responder/signature.js.map +0 -1
  271. package/dist/hooks/github-auto-responder/templates.d.ts +0 -16
  272. package/dist/hooks/github-auto-responder/templates.d.ts.map +0 -1
  273. package/dist/hooks/github-auto-responder/templates.js +0 -93
  274. package/dist/hooks/github-auto-responder/templates.js.map +0 -1
  275. package/dist/hooks/github-auto-responder/types.d.ts +0 -246
  276. package/dist/hooks/github-auto-responder/types.d.ts.map +0 -1
  277. package/dist/hooks/github-auto-responder/types.js +0 -7
  278. package/dist/hooks/github-auto-responder/types.js.map +0 -1
  279. package/dist/hooks/learned-skills/config.d.ts +0 -53
  280. package/dist/hooks/learned-skills/config.d.ts.map +0 -1
  281. package/dist/hooks/learned-skills/config.js +0 -103
  282. package/dist/hooks/learned-skills/config.js.map +0 -1
  283. package/dist/hooks/learned-skills/constants.d.ts +0 -24
  284. package/dist/hooks/learned-skills/constants.d.ts.map +0 -1
  285. package/dist/hooks/learned-skills/constants.js +0 -26
  286. package/dist/hooks/learned-skills/constants.js.map +0 -1
  287. package/dist/hooks/learned-skills/detection-hook.d.ts +0 -39
  288. package/dist/hooks/learned-skills/detection-hook.d.ts.map +0 -1
  289. package/dist/hooks/learned-skills/detection-hook.js +0 -83
  290. package/dist/hooks/learned-skills/detection-hook.js.map +0 -1
  291. package/dist/hooks/learned-skills/detector.d.ts +0 -30
  292. package/dist/hooks/learned-skills/detector.d.ts.map +0 -1
  293. package/dist/hooks/learned-skills/detector.js +0 -150
  294. package/dist/hooks/learned-skills/detector.js.map +0 -1
  295. package/dist/hooks/learned-skills/finder.d.ts +0 -21
  296. package/dist/hooks/learned-skills/finder.d.ts.map +0 -1
  297. package/dist/hooks/learned-skills/finder.js +0 -117
  298. package/dist/hooks/learned-skills/finder.js.map +0 -1
  299. package/dist/hooks/learned-skills/index.d.ts +0 -62
  300. package/dist/hooks/learned-skills/index.d.ts.map +0 -1
  301. package/dist/hooks/learned-skills/index.js +0 -137
  302. package/dist/hooks/learned-skills/index.js.map +0 -1
  303. package/dist/hooks/learned-skills/loader.d.ts +0 -20
  304. package/dist/hooks/learned-skills/loader.d.ts.map +0 -1
  305. package/dist/hooks/learned-skills/loader.js +0 -107
  306. package/dist/hooks/learned-skills/loader.js.map +0 -1
  307. package/dist/hooks/learned-skills/parser.d.ts +0 -21
  308. package/dist/hooks/learned-skills/parser.d.ts.map +0 -1
  309. package/dist/hooks/learned-skills/parser.js +0 -190
  310. package/dist/hooks/learned-skills/parser.js.map +0 -1
  311. package/dist/hooks/learned-skills/promotion.d.ts +0 -29
  312. package/dist/hooks/learned-skills/promotion.d.ts.map +0 -1
  313. package/dist/hooks/learned-skills/promotion.js +0 -87
  314. package/dist/hooks/learned-skills/promotion.js.map +0 -1
  315. package/dist/hooks/learned-skills/types.d.ts +0 -109
  316. package/dist/hooks/learned-skills/types.d.ts.map +0 -1
  317. package/dist/hooks/learned-skills/types.js +0 -8
  318. package/dist/hooks/learned-skills/types.js.map +0 -1
  319. package/dist/hooks/learned-skills/validator.d.ts +0 -15
  320. package/dist/hooks/learned-skills/validator.d.ts.map +0 -1
  321. package/dist/hooks/learned-skills/validator.js +0 -87
  322. package/dist/hooks/learned-skills/validator.js.map +0 -1
  323. package/dist/hooks/learned-skills/writer.d.ts +0 -27
  324. package/dist/hooks/learned-skills/writer.d.ts.map +0 -1
  325. package/dist/hooks/learned-skills/writer.js +0 -126
  326. package/dist/hooks/learned-skills/writer.js.map +0 -1
  327. package/dist/hooks/mnemosyne/config.d.ts +0 -53
  328. package/dist/hooks/mnemosyne/config.d.ts.map +0 -1
  329. package/dist/hooks/mnemosyne/config.js +0 -103
  330. package/dist/hooks/mnemosyne/config.js.map +0 -1
  331. package/dist/hooks/mnemosyne/constants.d.ts +0 -24
  332. package/dist/hooks/mnemosyne/constants.d.ts.map +0 -1
  333. package/dist/hooks/mnemosyne/constants.js +0 -26
  334. package/dist/hooks/mnemosyne/constants.js.map +0 -1
  335. package/dist/hooks/mnemosyne/detection-hook.d.ts +0 -39
  336. package/dist/hooks/mnemosyne/detection-hook.d.ts.map +0 -1
  337. package/dist/hooks/mnemosyne/detection-hook.js +0 -83
  338. package/dist/hooks/mnemosyne/detection-hook.js.map +0 -1
  339. package/dist/hooks/mnemosyne/detector.d.ts +0 -30
  340. package/dist/hooks/mnemosyne/detector.d.ts.map +0 -1
  341. package/dist/hooks/mnemosyne/detector.js +0 -150
  342. package/dist/hooks/mnemosyne/detector.js.map +0 -1
  343. package/dist/hooks/mnemosyne/finder.d.ts +0 -21
  344. package/dist/hooks/mnemosyne/finder.d.ts.map +0 -1
  345. package/dist/hooks/mnemosyne/finder.js +0 -117
  346. package/dist/hooks/mnemosyne/finder.js.map +0 -1
  347. package/dist/hooks/mnemosyne/index.d.ts +0 -62
  348. package/dist/hooks/mnemosyne/index.d.ts.map +0 -1
  349. package/dist/hooks/mnemosyne/index.js +0 -137
  350. package/dist/hooks/mnemosyne/index.js.map +0 -1
  351. package/dist/hooks/mnemosyne/loader.d.ts +0 -20
  352. package/dist/hooks/mnemosyne/loader.d.ts.map +0 -1
  353. package/dist/hooks/mnemosyne/loader.js +0 -113
  354. package/dist/hooks/mnemosyne/loader.js.map +0 -1
  355. package/dist/hooks/mnemosyne/parser.d.ts +0 -21
  356. package/dist/hooks/mnemosyne/parser.d.ts.map +0 -1
  357. package/dist/hooks/mnemosyne/parser.js +0 -190
  358. package/dist/hooks/mnemosyne/parser.js.map +0 -1
  359. package/dist/hooks/mnemosyne/promotion.d.ts +0 -29
  360. package/dist/hooks/mnemosyne/promotion.d.ts.map +0 -1
  361. package/dist/hooks/mnemosyne/promotion.js +0 -87
  362. package/dist/hooks/mnemosyne/promotion.js.map +0 -1
  363. package/dist/hooks/mnemosyne/types.d.ts +0 -109
  364. package/dist/hooks/mnemosyne/types.d.ts.map +0 -1
  365. package/dist/hooks/mnemosyne/types.js +0 -8
  366. package/dist/hooks/mnemosyne/types.js.map +0 -1
  367. package/dist/hooks/mnemosyne/validator.d.ts +0 -15
  368. package/dist/hooks/mnemosyne/validator.d.ts.map +0 -1
  369. package/dist/hooks/mnemosyne/validator.js +0 -87
  370. package/dist/hooks/mnemosyne/validator.js.map +0 -1
  371. package/dist/hooks/mnemosyne/writer.d.ts +0 -27
  372. package/dist/hooks/mnemosyne/writer.d.ts.map +0 -1
  373. package/dist/hooks/mnemosyne/writer.js +0 -126
  374. package/dist/hooks/mnemosyne/writer.js.map +0 -1
  375. package/dist/hooks/ralph-loop/index.d.ts +0 -116
  376. package/dist/hooks/ralph-loop/index.d.ts.map +0 -1
  377. package/dist/hooks/ralph-loop/index.js +0 -322
  378. package/dist/hooks/ralph-loop/index.js.map +0 -1
  379. package/dist/hooks/ralph-prd/index.d.ts +0 -130
  380. package/dist/hooks/ralph-prd/index.d.ts.map +0 -1
  381. package/dist/hooks/ralph-prd/index.js +0 -310
  382. package/dist/hooks/ralph-prd/index.js.map +0 -1
  383. package/dist/hooks/ralph-progress/index.d.ts +0 -102
  384. package/dist/hooks/ralph-progress/index.d.ts.map +0 -1
  385. package/dist/hooks/ralph-progress/index.js +0 -408
  386. package/dist/hooks/ralph-progress/index.js.map +0 -1
  387. package/dist/hooks/ralph-verifier/index.d.ts +0 -72
  388. package/dist/hooks/ralph-verifier/index.d.ts.map +0 -1
  389. package/dist/hooks/ralph-verifier/index.js +0 -223
  390. package/dist/hooks/ralph-verifier/index.js.map +0 -1
  391. package/dist/hooks/session-recovery/constants.d.ts +0 -56
  392. package/dist/hooks/session-recovery/constants.d.ts.map +0 -1
  393. package/dist/hooks/session-recovery/constants.js +0 -78
  394. package/dist/hooks/session-recovery/constants.js.map +0 -1
  395. package/dist/hooks/session-recovery/index.d.ts +0 -53
  396. package/dist/hooks/session-recovery/index.d.ts.map +0 -1
  397. package/dist/hooks/session-recovery/index.js +0 -321
  398. package/dist/hooks/session-recovery/index.js.map +0 -1
  399. package/dist/hooks/session-recovery/storage.d.ts +0 -76
  400. package/dist/hooks/session-recovery/storage.d.ts.map +0 -1
  401. package/dist/hooks/session-recovery/storage.js +0 -383
  402. package/dist/hooks/session-recovery/storage.js.map +0 -1
  403. package/dist/hooks/session-recovery/types.d.ts +0 -145
  404. package/dist/hooks/session-recovery/types.d.ts.map +0 -1
  405. package/dist/hooks/session-recovery/types.js +0 -8
  406. package/dist/hooks/session-recovery/types.js.map +0 -1
  407. package/dist/hooks/sisyphus-orchestrator/constants.d.ts +0 -23
  408. package/dist/hooks/sisyphus-orchestrator/constants.d.ts.map +0 -1
  409. package/dist/hooks/sisyphus-orchestrator/constants.js +0 -142
  410. package/dist/hooks/sisyphus-orchestrator/constants.js.map +0 -1
  411. package/dist/hooks/sisyphus-orchestrator/index.d.ts +0 -113
  412. package/dist/hooks/sisyphus-orchestrator/index.d.ts.map +0 -1
  413. package/dist/hooks/sisyphus-orchestrator/index.js +0 -309
  414. package/dist/hooks/sisyphus-orchestrator/index.js.map +0 -1
  415. package/dist/hooks/ultraqa-loop/index.d.ts +0 -94
  416. package/dist/hooks/ultraqa-loop/index.d.ts.map +0 -1
  417. package/dist/hooks/ultraqa-loop/index.js +0 -216
  418. package/dist/hooks/ultraqa-loop/index.js.map +0 -1
  419. package/dist/hooks/ultrawork-state/index.d.ts +0 -62
  420. package/dist/hooks/ultrawork-state/index.d.ts.map +0 -1
  421. package/dist/hooks/ultrawork-state/index.js +0 -208
  422. package/dist/hooks/ultrawork-state/index.js.map +0 -1
  423. package/dist/hud/sisyphus-state.d.ts +0 -31
  424. package/dist/hud/sisyphus-state.d.ts.map +0 -1
  425. package/dist/hud/sisyphus-state.js +0 -163
  426. package/dist/hud/sisyphus-state.js.map +0 -1
  427. package/scripts/github-webhook-server.ts +0 -141
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Integration tests for directory diagnostics
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration.test.d.ts","sourceRoot":"","sources":["../../../../src/tools/diagnostics/__tests__/integration.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Integration tests for directory diagnostics
3
+ */
4
+ import { describe, it, expect, vi, beforeEach } from 'vitest';
5
+ import * as path from 'path';
6
+ import * as os from 'os';
7
+ // Mock fs before importing the module under test
8
+ vi.mock('fs', async () => {
9
+ const actual = await vi.importActual('fs');
10
+ return {
11
+ ...actual,
12
+ realpathSync: vi.fn(actual.realpathSync),
13
+ };
14
+ });
15
+ import * as fs from 'fs';
16
+ import { runDirectoryDiagnostics } from '../index.js';
17
+ import { getAllSupportedExtensions, invalidateExtensionCache } from '../lsp-aggregator.js';
18
+ describe('runDirectoryDiagnostics path validation', () => {
19
+ beforeEach(() => {
20
+ // Reset all mocks to their default implementation before each test
21
+ vi.mocked(fs.realpathSync).mockRestore();
22
+ });
23
+ it('returns skipped strategy when realpathSync fails', async () => {
24
+ // Create a valid temp directory
25
+ const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'diag-test-'));
26
+ try {
27
+ // Mock realpathSync to throw for this specific path
28
+ const actualFs = await vi.importActual('fs');
29
+ vi.mocked(fs.realpathSync).mockImplementation((p) => {
30
+ if (p === tmpDir || p.toString() === tmpDir) {
31
+ throw new Error('Mock realpathSync failure');
32
+ }
33
+ // Call the real implementation for other paths
34
+ return actualFs.realpathSync(p);
35
+ });
36
+ const result = await runDirectoryDiagnostics(tmpDir);
37
+ expect(result.strategy).toBe('skipped');
38
+ expect(result.success).toBe(true);
39
+ expect(result.errorCount).toBe(0);
40
+ expect(result.summary).toContain('cannot resolve directory path');
41
+ }
42
+ finally {
43
+ fs.rmdirSync(tmpDir);
44
+ }
45
+ });
46
+ it('returns skipped strategy for non-existent directory', async () => {
47
+ const result = await runDirectoryDiagnostics('/nonexistent/path/that/does/not/exist');
48
+ expect(result.strategy).toBe('skipped');
49
+ expect(result.success).toBe(true);
50
+ expect(result.errorCount).toBe(0);
51
+ expect(result.summary).toContain('does not exist');
52
+ });
53
+ });
54
+ describe('invalidateExtensionCache', () => {
55
+ it('clears the cached extensions so next call recomputes', () => {
56
+ // First call populates the cache
57
+ const extensions1 = getAllSupportedExtensions();
58
+ expect(extensions1.length).toBeGreaterThan(0);
59
+ // Invalidate
60
+ invalidateExtensionCache();
61
+ // Second call should still return the same result (recomputed from same data)
62
+ const extensions2 = getAllSupportedExtensions();
63
+ expect(extensions2).toEqual(extensions1);
64
+ });
65
+ });
66
+ //# sourceMappingURL=integration.test.js.map
@@ -0,0 +1 @@
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,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,iDAAiD;AACjD,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,YAAY,CAAsB,IAAI,CAAC,CAAC;IAChE,OAAO;QACL,GAAG,MAAM;QACT,YAAY,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC;KACzC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;A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.ts","sourceRoot":"","sources":["../../../../src/tools/diagnostics/__tests__/parser-tests.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,86 @@
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
@@ -0,0 +1 @@
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,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEzE,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,MAAM,GAAG;uDACoC,CAAC;QAEpD,MAAM,MAAM,GA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C,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC9B,MAAM,MAAM,GAAG;mCACgB,CAAC;QAEhC,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAEzC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,MAAM,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;QACrC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Unit tests for diagnostic output parsers
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=parsers.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsers.test.d.ts","sourceRoot":"","sources":["../../../../src/tools/diagnostics/__tests__/parsers.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,199 @@
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
@@ -0,0 +1 @@
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,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,i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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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,78 @@
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
@@ -0,0 +1 @@
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,M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C;IAClD,IAAI,KAAK,CAAC;IAEV,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,IAAI,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,29 +1,54 @@
1
1
  /**
2
2
  * Directory Diagnostics - Project-level QA enforcement
3
3
  *
4
- * Provides dual strategy for checking TypeScript/JavaScript projects:
5
- * 1. Primary: tsc --noEmit (fast, comprehensive)
6
- * 2. Fallback: LSP iteration (when tsc not available)
4
+ * Provides strategy-based diagnostics for multiple languages:
5
+ * - TypeScript: tsc --noEmit
6
+ * - Go: go vet
7
+ * - Rust: cargo check
8
+ * - Python: mypy / pylint
9
+ * - Fallback: LSP iteration
7
10
  */
8
- export declare const LSP_DIAGNOSTICS_WAIT_MS = 300;
9
- export type DiagnosticsStrategy = 'tsc' | 'lsp' | 'auto';
11
+ export { EXTERNAL_PROCESS_TIMEOUT_MS, LSP_DIAGNOSTICS_WAIT_MS } from './constants.js';
12
+ export type DiagnosticsStrategy = 'tsc' | 'go' | 'rust' | 'python' | 'lsp' | 'auto';
10
13
  export interface DirectoryDiagnosticResult {
11
- strategy: 'tsc' | 'lsp';
14
+ strategy: 'tsc' | 'go' | 'rust' | 'python' | 'lsp' | 'skipped';
12
15
  success: boolean;
13
16
  errorCount: number;
14
17
  warningCount: number;
15
18
  diagnostics: string;
16
19
  summary: string;
17
20
  }
21
+ /**
22
+ * Detect project type from directory contents
23
+ *
24
+ * Priority order (first match wins):
25
+ * 1. tsconfig.json → 'typescript'
26
+ * 2. go.mod → 'go'
27
+ * 3. Cargo.toml → 'rust'
28
+ * 4. pyproject.toml / requirements.txt / setup.py → 'python'
29
+ * 5. (none) → 'unknown'
30
+ *
31
+ * Note: In monorepo scenarios with multiple project types,
32
+ * only the first match is returned. Use explicit strategy
33
+ * parameter to target a specific language.
34
+ */
35
+ declare function detectProjectType(directory: string): 'typescript' | 'go' | 'rust' | 'python' | 'unknown';
18
36
  /**
19
37
  * Run directory-level diagnostics using the best available strategy
20
38
  * @param directory - Project directory to check
21
- * @param strategy - Strategy to use ('tsc', 'lsp', or 'auto')
39
+ * @param strategy - Strategy to use ('tsc', 'go', 'rust', 'python', 'lsp', or 'auto')
22
40
  * @returns Diagnostic results
23
41
  */
24
42
  export declare function runDirectoryDiagnostics(directory: string, strategy?: DiagnosticsStrategy): Promise<DirectoryDiagnosticResult>;
25
43
  export type { TscDiagnostic, TscResult } from './tsc-runner.js';
26
44
  export type { LspDiagnosticWithFile, LspAggregationResult } from './lsp-aggregator.js';
45
+ export type { GoDiagnostic, GoResult } from './go-runner.js';
46
+ export type { RustDiagnostic, RustResult } from './rust-runner.js';
47
+ export type { PythonDiagnostic, PythonResult } from './python-runner.js';
27
48
  export { runTscDiagnostics } from './tsc-runner.js';
28
49
  export { runLspAggregatedDiagnostics } from './lsp-aggregator.js';
50
+ export { runGoDiagnostics } from './go-runner.js';
51
+ export { runRustDiagnostics } from './rust-runner.js';
52
+ export { runPythonDiagnostics } from './python-runner.js';
53
+ export { detectProjectType };
29
54
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/diagnostics/index.ts"],"names":[],"mappings":"AAAA;;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