oh-my-claude-sisyphus 3.6.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/commands/omc-setup.md +3 -3
  2. package/commands/release.md +1 -1
  3. package/dist/__tests__/analytics/transcript-scanner.test.js +69 -27
  4. package/dist/__tests__/analytics/transcript-scanner.test.js.map +1 -1
  5. package/dist/__tests__/installer.test.js +2 -1
  6. package/dist/__tests__/installer.test.js.map +1 -1
  7. package/dist/analytics/session-manager.d.ts +24 -0
  8. package/dist/analytics/session-manager.d.ts.map +1 -1
  9. package/dist/analytics/session-manager.js +98 -9
  10. package/dist/analytics/session-manager.js.map +1 -1
  11. package/dist/analytics/transcript-scanner.d.ts +9 -8
  12. package/dist/analytics/transcript-scanner.d.ts.map +1 -1
  13. package/dist/analytics/transcript-scanner.js +146 -16
  14. package/dist/analytics/transcript-scanner.js.map +1 -1
  15. package/dist/cli/analytics.js +0 -0
  16. package/dist/cli/index.js +0 -0
  17. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.d.ts +2 -0
  18. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.d.ts.map +1 -0
  19. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.js +416 -0
  20. package/dist/hooks/empty-message-sanitizer/__tests__/index.test.js.map +1 -0
  21. package/dist/hooks/keyword-detector/__tests__/index.test.d.ts +2 -0
  22. package/dist/hooks/keyword-detector/__tests__/index.test.d.ts.map +1 -0
  23. package/dist/hooks/keyword-detector/__tests__/index.test.js +427 -0
  24. package/dist/hooks/keyword-detector/__tests__/index.test.js.map +1 -0
  25. package/dist/hooks/think-mode/__tests__/index.test.d.ts +2 -0
  26. package/dist/hooks/think-mode/__tests__/index.test.d.ts.map +1 -0
  27. package/dist/hooks/think-mode/__tests__/index.test.js +556 -0
  28. package/dist/hooks/think-mode/__tests__/index.test.js.map +1 -0
  29. package/dist/installer/index.d.ts.map +1 -1
  30. package/dist/installer/index.js +8 -0
  31. package/dist/installer/index.js.map +1 -1
  32. package/package.json +1 -1
  33. package/skills/omc-setup/SKILL.md +27 -3
  34. package/skills/release/SKILL.md +1 -1
  35. package/dist/__tests__/analytics/analytics-summary.test.d.ts +0 -2
  36. package/dist/__tests__/analytics/analytics-summary.test.d.ts.map +0 -1
  37. package/dist/__tests__/analytics/analytics-summary.test.js +0 -267
  38. package/dist/__tests__/analytics/analytics-summary.test.js.map +0 -1
  39. package/dist/__tests__/analytics/cost-estimator.test.d.ts +0 -2
  40. package/dist/__tests__/analytics/cost-estimator.test.d.ts.map +0 -1
  41. package/dist/__tests__/analytics/cost-estimator.test.js +0 -212
  42. package/dist/__tests__/analytics/cost-estimator.test.js.map +0 -1
  43. package/dist/__tests__/hooks/auto-slash-command/executor.test.d.ts +0 -7
  44. package/dist/__tests__/hooks/auto-slash-command/executor.test.d.ts.map +0 -1
  45. package/dist/__tests__/hooks/auto-slash-command/executor.test.js +0 -374
  46. package/dist/__tests__/hooks/auto-slash-command/executor.test.js.map +0 -1
  47. package/dist/__tests__/hud/auto-tracking.integration.test.d.ts +0 -2
  48. package/dist/__tests__/hud/auto-tracking.integration.test.d.ts.map +0 -1
  49. package/dist/__tests__/hud/auto-tracking.integration.test.js +0 -12
  50. package/dist/__tests__/hud/auto-tracking.integration.test.js.map +0 -1
  51. package/dist/__tests__/learned-skills/config.test.d.ts +0 -2
  52. package/dist/__tests__/learned-skills/config.test.d.ts.map +0 -1
  53. package/dist/__tests__/learned-skills/config.test.js +0 -37
  54. package/dist/__tests__/learned-skills/config.test.js.map +0 -1
  55. package/dist/__tests__/learned-skills/detector.test.d.ts +0 -2
  56. package/dist/__tests__/learned-skills/detector.test.d.ts.map +0 -1
  57. package/dist/__tests__/learned-skills/detector.test.js +0 -99
  58. package/dist/__tests__/learned-skills/detector.test.js.map +0 -1
  59. package/dist/__tests__/learned-skills/finder.test.d.ts +0 -2
  60. package/dist/__tests__/learned-skills/finder.test.d.ts.map +0 -1
  61. package/dist/__tests__/learned-skills/finder.test.js +0 -59
  62. package/dist/__tests__/learned-skills/finder.test.js.map +0 -1
  63. package/dist/__tests__/learned-skills/loader.test.d.ts +0 -2
  64. package/dist/__tests__/learned-skills/loader.test.d.ts.map +0 -1
  65. package/dist/__tests__/learned-skills/loader.test.js +0 -69
  66. package/dist/__tests__/learned-skills/loader.test.js.map +0 -1
  67. package/dist/__tests__/learned-skills/parser.test.d.ts +0 -2
  68. package/dist/__tests__/learned-skills/parser.test.d.ts.map +0 -1
  69. package/dist/__tests__/learned-skills/parser.test.js +0 -81
  70. package/dist/__tests__/learned-skills/parser.test.js.map +0 -1
  71. package/dist/__tests__/learned-skills/validator.test.d.ts +0 -2
  72. package/dist/__tests__/learned-skills/validator.test.d.ts.map +0 -1
  73. package/dist/__tests__/learned-skills/validator.test.js +0 -85
  74. package/dist/__tests__/learned-skills/validator.test.js.map +0 -1
  75. package/dist/agents/codex-agents.d.ts +0 -20
  76. package/dist/agents/codex-agents.d.ts.map +0 -1
  77. package/dist/agents/codex-agents.js +0 -36
  78. package/dist/agents/codex-agents.js.map +0 -1
  79. package/dist/agents/document-writer.d.ts +0 -11
  80. package/dist/agents/document-writer.d.ts.map +0 -1
  81. package/dist/agents/document-writer.js +0 -209
  82. package/dist/agents/document-writer.js.map +0 -1
  83. package/dist/agents/frontend-engineer.d.ts +0 -11
  84. package/dist/agents/frontend-engineer.d.ts.map +0 -1
  85. package/dist/agents/frontend-engineer.js +0 -115
  86. package/dist/agents/frontend-engineer.js.map +0 -1
  87. package/dist/agents/librarian.d.ts +0 -12
  88. package/dist/agents/librarian.d.ts.map +0 -1
  89. package/dist/agents/librarian.js +0 -103
  90. package/dist/agents/librarian.js.map +0 -1
  91. package/dist/agents/metis.d.ts +0 -12
  92. package/dist/agents/metis.d.ts.map +0 -1
  93. package/dist/agents/metis.js +0 -117
  94. package/dist/agents/metis.js.map +0 -1
  95. package/dist/agents/momus.d.ts +0 -12
  96. package/dist/agents/momus.d.ts.map +0 -1
  97. package/dist/agents/momus.js +0 -128
  98. package/dist/agents/momus.js.map +0 -1
  99. package/dist/agents/multimodal-looker.d.ts +0 -11
  100. package/dist/agents/multimodal-looker.d.ts.map +0 -1
  101. package/dist/agents/multimodal-looker.js +0 -70
  102. package/dist/agents/multimodal-looker.js.map +0 -1
  103. package/dist/agents/oracle.d.ts +0 -13
  104. package/dist/agents/oracle.d.ts.map +0 -1
  105. package/dist/agents/oracle.js +0 -191
  106. package/dist/agents/oracle.js.map +0 -1
  107. package/dist/agents/orchestrator-sisyphus.d.ts +0 -11
  108. package/dist/agents/orchestrator-sisyphus.d.ts.map +0 -1
  109. package/dist/agents/orchestrator-sisyphus.js +0 -115
  110. package/dist/agents/orchestrator-sisyphus.js.map +0 -1
  111. package/dist/agents/prometheus.d.ts +0 -12
  112. package/dist/agents/prometheus.d.ts.map +0 -1
  113. package/dist/agents/prometheus.js +0 -195
  114. package/dist/agents/prometheus.js.map +0 -1
  115. package/dist/agents/sisyphus-junior.d.ts +0 -12
  116. package/dist/agents/sisyphus-junior.d.ts.map +0 -1
  117. package/dist/agents/sisyphus-junior.js +0 -93
  118. package/dist/agents/sisyphus-junior.js.map +0 -1
  119. package/dist/cli/components/CostDashboard.d.ts +0 -15
  120. package/dist/cli/components/CostDashboard.d.ts.map +0 -1
  121. package/dist/cli/components/CostDashboard.js +0 -15
  122. package/dist/cli/components/CostDashboard.js.map +0 -1
  123. package/dist/cli/components/LiveStats.d.ts +0 -16
  124. package/dist/cli/components/LiveStats.d.ts.map +0 -1
  125. package/dist/cli/components/LiveStats.js +0 -16
  126. package/dist/cli/components/LiveStats.js.map +0 -1
  127. package/dist/cli/components/SessionBrowser.d.ts +0 -14
  128. package/dist/cli/components/SessionBrowser.d.ts.map +0 -1
  129. package/dist/cli/components/SessionBrowser.js +0 -14
  130. package/dist/cli/components/SessionBrowser.js.map +0 -1
  131. package/dist/cli/tui.d.ts +0 -21
  132. package/dist/cli/tui.d.ts.map +0 -1
  133. package/dist/cli/tui.js +0 -21
  134. package/dist/cli/tui.js.map +0 -1
  135. package/dist/hooks/autopilot/signals.d.ts +0 -20
  136. package/dist/hooks/autopilot/signals.d.ts.map +0 -1
  137. package/dist/hooks/autopilot/signals.js +0 -75
  138. package/dist/hooks/autopilot/signals.js.map +0 -1
  139. package/dist/hooks/autopilot/summary.d.ts +0 -27
  140. package/dist/hooks/autopilot/summary.d.ts.map +0 -1
  141. package/dist/hooks/autopilot/summary.js +0 -160
  142. package/dist/hooks/autopilot/summary.js.map +0 -1
  143. package/dist/hooks/autopilot/transition.d.ts +0 -39
  144. package/dist/hooks/autopilot/transition.d.ts.map +0 -1
  145. package/dist/hooks/autopilot/transition.js +0 -216
  146. package/dist/hooks/autopilot/transition.js.map +0 -1
  147. package/dist/hooks/context-window-limit-recovery/constants.d.ts +0 -28
  148. package/dist/hooks/context-window-limit-recovery/constants.d.ts.map +0 -1
  149. package/dist/hooks/context-window-limit-recovery/constants.js +0 -85
  150. package/dist/hooks/context-window-limit-recovery/constants.js.map +0 -1
  151. package/dist/hooks/context-window-limit-recovery/index.d.ts +0 -62
  152. package/dist/hooks/context-window-limit-recovery/index.d.ts.map +0 -1
  153. package/dist/hooks/context-window-limit-recovery/index.js +0 -201
  154. package/dist/hooks/context-window-limit-recovery/index.js.map +0 -1
  155. package/dist/hooks/context-window-limit-recovery/parser.d.ts +0 -31
  156. package/dist/hooks/context-window-limit-recovery/parser.d.ts.map +0 -1
  157. package/dist/hooks/context-window-limit-recovery/parser.js +0 -241
  158. package/dist/hooks/context-window-limit-recovery/parser.js.map +0 -1
  159. package/dist/hooks/context-window-limit-recovery/types.d.ts +0 -84
  160. package/dist/hooks/context-window-limit-recovery/types.d.ts.map +0 -1
  161. package/dist/hooks/context-window-limit-recovery/types.js +0 -34
  162. package/dist/hooks/context-window-limit-recovery/types.js.map +0 -1
  163. package/dist/hooks/edit-error-recovery/index.d.ts +0 -62
  164. package/dist/hooks/edit-error-recovery/index.d.ts.map +0 -1
  165. package/dist/hooks/edit-error-recovery/index.js +0 -89
  166. package/dist/hooks/edit-error-recovery/index.js.map +0 -1
  167. package/dist/hooks/learned-skills/config.d.ts +0 -53
  168. package/dist/hooks/learned-skills/config.d.ts.map +0 -1
  169. package/dist/hooks/learned-skills/config.js +0 -103
  170. package/dist/hooks/learned-skills/config.js.map +0 -1
  171. package/dist/hooks/learned-skills/constants.d.ts +0 -24
  172. package/dist/hooks/learned-skills/constants.d.ts.map +0 -1
  173. package/dist/hooks/learned-skills/constants.js +0 -26
  174. package/dist/hooks/learned-skills/constants.js.map +0 -1
  175. package/dist/hooks/learned-skills/detection-hook.d.ts +0 -39
  176. package/dist/hooks/learned-skills/detection-hook.d.ts.map +0 -1
  177. package/dist/hooks/learned-skills/detection-hook.js +0 -83
  178. package/dist/hooks/learned-skills/detection-hook.js.map +0 -1
  179. package/dist/hooks/learned-skills/detector.d.ts +0 -30
  180. package/dist/hooks/learned-skills/detector.d.ts.map +0 -1
  181. package/dist/hooks/learned-skills/detector.js +0 -150
  182. package/dist/hooks/learned-skills/detector.js.map +0 -1
  183. package/dist/hooks/learned-skills/finder.d.ts +0 -21
  184. package/dist/hooks/learned-skills/finder.d.ts.map +0 -1
  185. package/dist/hooks/learned-skills/finder.js +0 -117
  186. package/dist/hooks/learned-skills/finder.js.map +0 -1
  187. package/dist/hooks/learned-skills/index.d.ts +0 -62
  188. package/dist/hooks/learned-skills/index.d.ts.map +0 -1
  189. package/dist/hooks/learned-skills/index.js +0 -137
  190. package/dist/hooks/learned-skills/index.js.map +0 -1
  191. package/dist/hooks/learned-skills/loader.d.ts +0 -20
  192. package/dist/hooks/learned-skills/loader.d.ts.map +0 -1
  193. package/dist/hooks/learned-skills/loader.js +0 -107
  194. package/dist/hooks/learned-skills/loader.js.map +0 -1
  195. package/dist/hooks/learned-skills/parser.d.ts +0 -21
  196. package/dist/hooks/learned-skills/parser.d.ts.map +0 -1
  197. package/dist/hooks/learned-skills/parser.js +0 -190
  198. package/dist/hooks/learned-skills/parser.js.map +0 -1
  199. package/dist/hooks/learned-skills/promotion.d.ts +0 -29
  200. package/dist/hooks/learned-skills/promotion.d.ts.map +0 -1
  201. package/dist/hooks/learned-skills/promotion.js +0 -87
  202. package/dist/hooks/learned-skills/promotion.js.map +0 -1
  203. package/dist/hooks/learned-skills/types.d.ts +0 -109
  204. package/dist/hooks/learned-skills/types.d.ts.map +0 -1
  205. package/dist/hooks/learned-skills/types.js +0 -8
  206. package/dist/hooks/learned-skills/types.js.map +0 -1
  207. package/dist/hooks/learned-skills/validator.d.ts +0 -15
  208. package/dist/hooks/learned-skills/validator.d.ts.map +0 -1
  209. package/dist/hooks/learned-skills/validator.js +0 -87
  210. package/dist/hooks/learned-skills/validator.js.map +0 -1
  211. package/dist/hooks/learned-skills/writer.d.ts +0 -27
  212. package/dist/hooks/learned-skills/writer.d.ts.map +0 -1
  213. package/dist/hooks/learned-skills/writer.js +0 -126
  214. package/dist/hooks/learned-skills/writer.js.map +0 -1
  215. package/dist/hooks/mnemosyne/config.d.ts +0 -53
  216. package/dist/hooks/mnemosyne/config.d.ts.map +0 -1
  217. package/dist/hooks/mnemosyne/config.js +0 -103
  218. package/dist/hooks/mnemosyne/config.js.map +0 -1
  219. package/dist/hooks/mnemosyne/constants.d.ts +0 -24
  220. package/dist/hooks/mnemosyne/constants.d.ts.map +0 -1
  221. package/dist/hooks/mnemosyne/constants.js +0 -26
  222. package/dist/hooks/mnemosyne/constants.js.map +0 -1
  223. package/dist/hooks/mnemosyne/detection-hook.d.ts +0 -39
  224. package/dist/hooks/mnemosyne/detection-hook.d.ts.map +0 -1
  225. package/dist/hooks/mnemosyne/detection-hook.js +0 -83
  226. package/dist/hooks/mnemosyne/detection-hook.js.map +0 -1
  227. package/dist/hooks/mnemosyne/detector.d.ts +0 -30
  228. package/dist/hooks/mnemosyne/detector.d.ts.map +0 -1
  229. package/dist/hooks/mnemosyne/detector.js +0 -150
  230. package/dist/hooks/mnemosyne/detector.js.map +0 -1
  231. package/dist/hooks/mnemosyne/finder.d.ts +0 -21
  232. package/dist/hooks/mnemosyne/finder.d.ts.map +0 -1
  233. package/dist/hooks/mnemosyne/finder.js +0 -117
  234. package/dist/hooks/mnemosyne/finder.js.map +0 -1
  235. package/dist/hooks/mnemosyne/index.d.ts +0 -62
  236. package/dist/hooks/mnemosyne/index.d.ts.map +0 -1
  237. package/dist/hooks/mnemosyne/index.js +0 -137
  238. package/dist/hooks/mnemosyne/index.js.map +0 -1
  239. package/dist/hooks/mnemosyne/loader.d.ts +0 -20
  240. package/dist/hooks/mnemosyne/loader.d.ts.map +0 -1
  241. package/dist/hooks/mnemosyne/loader.js +0 -113
  242. package/dist/hooks/mnemosyne/loader.js.map +0 -1
  243. package/dist/hooks/mnemosyne/parser.d.ts +0 -21
  244. package/dist/hooks/mnemosyne/parser.d.ts.map +0 -1
  245. package/dist/hooks/mnemosyne/parser.js +0 -190
  246. package/dist/hooks/mnemosyne/parser.js.map +0 -1
  247. package/dist/hooks/mnemosyne/promotion.d.ts +0 -29
  248. package/dist/hooks/mnemosyne/promotion.d.ts.map +0 -1
  249. package/dist/hooks/mnemosyne/promotion.js +0 -87
  250. package/dist/hooks/mnemosyne/promotion.js.map +0 -1
  251. package/dist/hooks/mnemosyne/types.d.ts +0 -109
  252. package/dist/hooks/mnemosyne/types.d.ts.map +0 -1
  253. package/dist/hooks/mnemosyne/types.js +0 -8
  254. package/dist/hooks/mnemosyne/types.js.map +0 -1
  255. package/dist/hooks/mnemosyne/validator.d.ts +0 -15
  256. package/dist/hooks/mnemosyne/validator.d.ts.map +0 -1
  257. package/dist/hooks/mnemosyne/validator.js +0 -87
  258. package/dist/hooks/mnemosyne/validator.js.map +0 -1
  259. package/dist/hooks/mnemosyne/writer.d.ts +0 -27
  260. package/dist/hooks/mnemosyne/writer.d.ts.map +0 -1
  261. package/dist/hooks/mnemosyne/writer.js +0 -126
  262. package/dist/hooks/mnemosyne/writer.js.map +0 -1
  263. package/dist/hooks/ralph-loop/index.d.ts +0 -116
  264. package/dist/hooks/ralph-loop/index.d.ts.map +0 -1
  265. package/dist/hooks/ralph-loop/index.js +0 -322
  266. package/dist/hooks/ralph-loop/index.js.map +0 -1
  267. package/dist/hooks/ralph-prd/index.d.ts +0 -130
  268. package/dist/hooks/ralph-prd/index.d.ts.map +0 -1
  269. package/dist/hooks/ralph-prd/index.js +0 -310
  270. package/dist/hooks/ralph-prd/index.js.map +0 -1
  271. package/dist/hooks/ralph-progress/index.d.ts +0 -102
  272. package/dist/hooks/ralph-progress/index.d.ts.map +0 -1
  273. package/dist/hooks/ralph-progress/index.js +0 -408
  274. package/dist/hooks/ralph-progress/index.js.map +0 -1
  275. package/dist/hooks/ralph-verifier/index.d.ts +0 -72
  276. package/dist/hooks/ralph-verifier/index.d.ts.map +0 -1
  277. package/dist/hooks/ralph-verifier/index.js +0 -223
  278. package/dist/hooks/ralph-verifier/index.js.map +0 -1
  279. package/dist/hooks/session-recovery/constants.d.ts +0 -56
  280. package/dist/hooks/session-recovery/constants.d.ts.map +0 -1
  281. package/dist/hooks/session-recovery/constants.js +0 -78
  282. package/dist/hooks/session-recovery/constants.js.map +0 -1
  283. package/dist/hooks/session-recovery/index.d.ts +0 -53
  284. package/dist/hooks/session-recovery/index.d.ts.map +0 -1
  285. package/dist/hooks/session-recovery/index.js +0 -321
  286. package/dist/hooks/session-recovery/index.js.map +0 -1
  287. package/dist/hooks/session-recovery/storage.d.ts +0 -76
  288. package/dist/hooks/session-recovery/storage.d.ts.map +0 -1
  289. package/dist/hooks/session-recovery/storage.js +0 -383
  290. package/dist/hooks/session-recovery/storage.js.map +0 -1
  291. package/dist/hooks/session-recovery/types.d.ts +0 -145
  292. package/dist/hooks/session-recovery/types.d.ts.map +0 -1
  293. package/dist/hooks/session-recovery/types.js +0 -8
  294. package/dist/hooks/session-recovery/types.js.map +0 -1
  295. package/dist/hooks/sisyphus-orchestrator/constants.d.ts +0 -23
  296. package/dist/hooks/sisyphus-orchestrator/constants.d.ts.map +0 -1
  297. package/dist/hooks/sisyphus-orchestrator/constants.js +0 -142
  298. package/dist/hooks/sisyphus-orchestrator/constants.js.map +0 -1
  299. package/dist/hooks/sisyphus-orchestrator/index.d.ts +0 -113
  300. package/dist/hooks/sisyphus-orchestrator/index.d.ts.map +0 -1
  301. package/dist/hooks/sisyphus-orchestrator/index.js +0 -309
  302. package/dist/hooks/sisyphus-orchestrator/index.js.map +0 -1
  303. package/dist/hooks/ultraqa-loop/index.d.ts +0 -94
  304. package/dist/hooks/ultraqa-loop/index.d.ts.map +0 -1
  305. package/dist/hooks/ultraqa-loop/index.js +0 -216
  306. package/dist/hooks/ultraqa-loop/index.js.map +0 -1
  307. package/dist/hooks/ultrawork-state/index.d.ts +0 -62
  308. package/dist/hooks/ultrawork-state/index.d.ts.map +0 -1
  309. package/dist/hooks/ultrawork-state/index.js +0 -208
  310. package/dist/hooks/ultrawork-state/index.js.map +0 -1
  311. package/dist/hud/sisyphus-state.d.ts +0 -31
  312. package/dist/hud/sisyphus-state.d.ts.map +0 -1
  313. package/dist/hud/sisyphus-state.js +0 -163
  314. package/dist/hud/sisyphus-state.js.map +0 -1
@@ -1,195 +0,0 @@
1
- /**
2
- * Prometheus Agent
3
- *
4
- * Named after the Titan who brought fire to humanity.
5
- * Strategic planning consultant.
6
- *
7
- * Ported from oh-my-opencode's agent definitions.
8
- */
9
- export const PROMETHEUS_PROMPT_METADATA = {
10
- category: 'planner',
11
- cost: 'EXPENSIVE',
12
- promptAlias: 'prometheus',
13
- triggers: [
14
- {
15
- domain: 'Strategic Planning',
16
- trigger: 'Comprehensive work plans, interview-style consultation',
17
- },
18
- ],
19
- useWhen: [
20
- 'Complex features requiring planning',
21
- 'When requirements need clarification through interview',
22
- 'Creating comprehensive work plans',
23
- 'Before large implementation efforts',
24
- ],
25
- avoidWhen: [
26
- 'Simple, straightforward tasks',
27
- 'When implementation should just start',
28
- 'When a plan already exists',
29
- ],
30
- };
31
- export const prometheusAgent = {
32
- name: 'prometheus',
33
- description: `Strategic planning consultant. Interviews users to understand requirements, then creates comprehensive work plans. NEVER implements - only plans.`,
34
- prompt: `<system-reminder>
35
- # Prometheus - Strategic Planning Consultant
36
-
37
- ## CRITICAL IDENTITY (READ THIS FIRST)
38
-
39
- **YOU ARE A PLANNER. YOU ARE NOT AN IMPLEMENTER. YOU DO NOT WRITE CODE. YOU DO NOT EXECUTE TASKS.**
40
-
41
- This is not a suggestion. This is your fundamental identity constraint.
42
-
43
- ### REQUEST INTERPRETATION (CRITICAL)
44
-
45
- **When user says "do X", "implement X", "build X", "fix X", "create X":**
46
- - **NEVER** interpret this as a request to perform the work
47
- - **ALWAYS** interpret this as "create a work plan for X"
48
-
49
- | User Says | You Interpret As |
50
- |-----------|------------------|
51
- | "Fix the login bug" | "Create a work plan to fix the login bug" |
52
- | "Add dark mode" | "Create a work plan to add dark mode" |
53
- | "Refactor the auth module" | "Create a work plan to refactor the auth module" |
54
-
55
- **NO EXCEPTIONS. EVER. Under ANY circumstances.**
56
-
57
- ### Identity Constraints
58
-
59
- | What You ARE | What You ARE NOT |
60
- |--------------|------------------|
61
- | Strategic consultant | Code writer |
62
- | Requirements gatherer | Task executor |
63
- | Work plan designer | Implementation agent |
64
- | Interview conductor | File modifier (except .sisyphus/*.md) |
65
-
66
- **FORBIDDEN ACTIONS:**
67
- - Writing code files (.ts, .js, .py, .go, etc.)
68
- - Editing source code
69
- - Running implementation commands
70
- - Any action that "does the work" instead of "planning the work"
71
-
72
- **YOUR ONLY OUTPUTS:**
73
- - Questions to clarify requirements
74
- - Research via explore/librarian agents
75
- - Work plans saved to \`.sisyphus/plans/*.md\`
76
- - Drafts saved to \`.sisyphus/drafts/*.md\`
77
- </system-reminder>
78
-
79
- You are Prometheus, the strategic planning consultant. Named after the Titan who brought fire to humanity, you bring foresight and structure to complex work through thoughtful consultation.
80
-
81
- ---
82
-
83
- # PHASE 1: INTERVIEW MODE (DEFAULT)
84
-
85
- ## Step 0: Intent Classification (EVERY request)
86
-
87
- Before diving into consultation, classify the work intent:
88
-
89
- | Intent | Signal | Interview Focus |
90
- |--------|--------|-----------------|
91
- | **Trivial/Simple** | Quick fix, small change | Fast turnaround: Quick questions, propose action |
92
- | **Refactoring** | "refactor", "restructure" | Safety focus: Test coverage, risk tolerance |
93
- | **Build from Scratch** | New feature, greenfield | Discovery focus: Explore patterns first |
94
- | **Mid-sized Task** | Scoped feature | Boundary focus: Clear deliverables, exclusions |
95
-
96
- ## When to Use Research Agents
97
-
98
- | Situation | Action |
99
- |-----------|--------|
100
- | User mentions unfamiliar technology | \`librarian\`: Find official docs |
101
- | User wants to modify existing code | \`explore\`: Find current implementation |
102
- | User describes new feature | \`explore\`: Find similar features in codebase |
103
-
104
- ## Context-Aware Interview Mode (CRITICAL)
105
-
106
- If you receive **PRE-GATHERED CONTEXT** from the orchestrator (look for "Pre-Gathered Codebase Context" section in your prompt):
107
-
108
- 1. **DO NOT** ask questions that the context already answers
109
- 2. **DO** use the context to inform your interview
110
- 3. **ONLY** ask questions about user preferences, NOT codebase facts
111
-
112
- ### Question Classification (Before Asking ANY Question)
113
-
114
- | Type | Example | Ask User? |
115
- |------|---------|-----------|
116
- | **Codebase fact** | "What patterns exist?" | NO - use provided context |
117
- | **Codebase fact** | "Where is X implemented?" | NO - use provided context |
118
- | **Codebase fact** | "What's the current architecture?" | NO - use provided context |
119
- | **Codebase fact** | "What files are involved?" | NO - use provided context |
120
- | **Preference** | "Should we prioritize speed or quality?" | YES - ask user |
121
- | **Requirement** | "What's the deadline?" | YES - ask user |
122
- | **Scope** | "Should this include feature Y?" | YES - ask user |
123
- | **Constraint** | "Are there performance requirements?" | YES - ask user |
124
- | **Ownership** | "Who will maintain this?" | YES - ask user |
125
- | **Risk tolerance** | "How much refactoring is acceptable?" | YES - ask user |
126
-
127
- ### If Context NOT Provided
128
-
129
- If the orchestrator did NOT provide pre-gathered context:
130
- 1. Use \`explore\` agent yourself to gather codebase context FIRST
131
- 2. THEN ask only user-preference questions
132
- 3. **Never burden the user with questions the codebase can answer**
133
-
134
- ### Example Good vs Bad Questions
135
-
136
- | BAD (asks user about codebase) | GOOD (asks user about preferences) |
137
- |--------------------------------|-------------------------------------|
138
- | "Where is auth implemented?" | "What auth method do you prefer (OAuth, JWT, session)?" |
139
- | "What patterns does the codebase use?" | "What's your timeline for this feature?" |
140
- | "How many files will this touch?" | "Should we prioritize backward compatibility?" |
141
- | "What's the test coverage?" | "What's your risk tolerance for this change?" |
142
-
143
- ---
144
-
145
- # PHASE 2: PLAN GENERATION TRIGGER
146
-
147
- ONLY transition to plan generation when user says:
148
- - "Make it into a work plan!"
149
- - "Save it as a file"
150
- - "Generate the plan" / "Create the work plan"
151
-
152
- ## Pre-Generation: Metis Consultation (MANDATORY)
153
-
154
- **BEFORE generating the plan**, summon Metis to catch what you might have missed.
155
-
156
- ---
157
-
158
- # PHASE 3: PLAN GENERATION
159
-
160
- ## Plan Structure
161
-
162
- Generate plan to: \`.sisyphus/plans/{name}.md\`
163
-
164
- Include:
165
- - Context (Original Request, Interview Summary, Research Findings)
166
- - Work Objectives (Core Objective, Deliverables, Definition of Done)
167
- - Must Have / Must NOT Have (Guardrails)
168
- - Task Flow and Dependencies
169
- - Detailed TODOs with acceptance criteria
170
- - Commit Strategy
171
- - Success Criteria
172
-
173
- ---
174
-
175
- # BEHAVIORAL SUMMARY
176
-
177
- | Phase | Trigger | Behavior |
178
- |-------|---------|----------|
179
- | **Interview Mode** | Default state | Consult, research, discuss. NO plan generation. |
180
- | **Pre-Generation** | "Make it into a work plan" | Summon Metis → Ask final questions |
181
- | **Plan Generation** | After pre-generation complete | Generate plan, optionally loop through Momus |
182
- | **Handoff** | Plan saved | Tell user "Plan saved. Start implementing when ready." |
183
-
184
- ## Key Principles
185
-
186
- 1. **Interview First** - Understand before planning
187
- 2. **Research-Backed Advice** - Use agents to provide evidence-based recommendations
188
- 3. **User Controls Transition** - NEVER generate plan until explicitly requested
189
- 4. **Metis Before Plan** - Always catch gaps before committing to plan
190
- 5. **Clear Handoff** - Tell user the plan is ready to implement`,
191
- tools: ['Read', 'Write', 'Edit', 'Grep', 'Glob'],
192
- model: 'opus',
193
- metadata: PROMETHEUS_PROMPT_METADATA,
194
- };
195
- //# sourceMappingURL=prometheus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prometheus.js","sourceRoot":"","sources":["../../src/agents/prometheus.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,0BAA0B,GAAwB;IAC7D,QAAQ,EAAE,SAAS;IACnB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,QAAQ,EAAE;QACR;YACE,MAAM,EAAE,oBAAoB;YAC5B,OAAO,EAAE,wDAAwD;SAClE;KACF;IACD,OAAO,EAAE;QACP,qCAAqC;QACrC,wDAAwD;QACxD,mCAAmC;QACnC,qCAAqC;KACtC;IACD,SAAS,EAAE;QACT,+BAA+B;QAC/B,uCAAuC;QACvC,4BAA4B;KAC7B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAgB;IAC1C,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,mJAAmJ;IAChK,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEA4JsD;IAC9D,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAChD,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,0BAA0B;CACrC,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Sisyphus Junior Agent - Focused Task Executor
3
- *
4
- * Executes tasks directly without delegation capabilities.
5
- * Same discipline as Sisyphus, but works alone.
6
- *
7
- * Ported from oh-my-opencode's sisyphus-junior agent.
8
- */
9
- import type { AgentConfig, AgentPromptMetadata } from './types.js';
10
- export declare const SISYPHUS_JUNIOR_PROMPT_METADATA: AgentPromptMetadata;
11
- export declare const sisyphusJuniorAgent: AgentConfig;
12
- //# sourceMappingURL=sisyphus-junior.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sisyphus-junior.d.ts","sourceRoot":"","sources":["../../src/agents/sisyphus-junior.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEnE,eAAO,MAAM,+BAA+B,EAAE,mBAoB7C,CAAC;AA0DF,eAAO,MAAM,mBAAmB,EAAE,WAOjC,CAAC"}
@@ -1,93 +0,0 @@
1
- /**
2
- * Sisyphus Junior Agent - Focused Task Executor
3
- *
4
- * Executes tasks directly without delegation capabilities.
5
- * Same discipline as Sisyphus, but works alone.
6
- *
7
- * Ported from oh-my-opencode's sisyphus-junior agent.
8
- */
9
- export const SISYPHUS_JUNIOR_PROMPT_METADATA = {
10
- category: 'specialist',
11
- cost: 'CHEAP',
12
- promptAlias: 'Junior',
13
- triggers: [
14
- { domain: 'Direct implementation', trigger: 'Single-file changes, focused tasks' },
15
- { domain: 'Bug fixes', trigger: 'Clear, scoped fixes' },
16
- { domain: 'Small features', trigger: 'Well-defined, isolated work' },
17
- ],
18
- useWhen: [
19
- 'Direct, focused implementation tasks',
20
- 'Single-file or few-file changes',
21
- 'When delegation overhead isn\'t worth it',
22
- 'Clear, well-scoped work items',
23
- ],
24
- avoidWhen: [
25
- 'Multi-file refactoring (use orchestrator)',
26
- 'Tasks requiring research (use explore/librarian first)',
27
- 'Complex decisions (consult oracle)',
28
- ],
29
- };
30
- const SISYPHUS_JUNIOR_PROMPT = `<Role>
31
- Sisyphus-Junior - Focused executor from OhMyOpenCode.
32
- Execute tasks directly. NEVER delegate or spawn other agents.
33
- </Role>
34
-
35
- <Critical_Constraints>
36
- BLOCKED ACTIONS (will fail if attempted):
37
- - Task tool: BLOCKED
38
- - Any agent spawning: BLOCKED
39
-
40
- You work ALONE. No delegation. No background tasks. Execute directly.
41
- </Critical_Constraints>
42
-
43
- <Work_Context>
44
- ## Notepad Location (for recording learnings)
45
- NOTEPAD PATH: .sisyphus/notepads/{plan-name}/
46
- - learnings.md: Record patterns, conventions, successful approaches
47
- - issues.md: Record problems, blockers, gotchas encountered
48
- - decisions.md: Record architectural choices and rationales
49
-
50
- You SHOULD append findings to notepad files after completing work.
51
-
52
- ## Plan Location (READ ONLY)
53
- PLAN PATH: .sisyphus/plans/{plan-name}.md
54
-
55
- ⚠️⚠️⚠️ CRITICAL RULE: NEVER MODIFY THE PLAN FILE ⚠️⚠️⚠️
56
-
57
- The plan file (.sisyphus/plans/*.md) is SACRED and READ-ONLY.
58
- - You may READ the plan to understand tasks
59
- - You MUST NOT edit, modify, or update the plan file
60
- - Only the Orchestrator manages the plan file
61
- </Work_Context>
62
-
63
- <Todo_Discipline>
64
- TODO OBSESSION (NON-NEGOTIABLE):
65
- - 2+ steps → TodoWrite FIRST, atomic breakdown
66
- - Mark in_progress before starting (ONE at a time)
67
- - Mark completed IMMEDIATELY after each step
68
- - NEVER batch completions
69
-
70
- No todos on multi-step work = INCOMPLETE WORK.
71
- </Todo_Discipline>
72
-
73
- <Verification>
74
- Task NOT complete without:
75
- - lsp_diagnostics clean on changed files
76
- - Build passes (if applicable)
77
- - All todos marked completed
78
- </Verification>
79
-
80
- <Style>
81
- - Start immediately. No acknowledgments.
82
- - Match user's communication style.
83
- - Dense > verbose.
84
- </Style>`;
85
- export const sisyphusJuniorAgent = {
86
- name: 'sisyphus-junior',
87
- description: 'Focused task executor. Execute tasks directly. NEVER delegate or spawn other agents. Same discipline as Sisyphus, no delegation.',
88
- prompt: SISYPHUS_JUNIOR_PROMPT,
89
- tools: ['Read', 'Write', 'Edit', 'Grep', 'Glob', 'Bash'],
90
- model: 'sonnet',
91
- metadata: SISYPHUS_JUNIOR_PROMPT_METADATA
92
- };
93
- //# sourceMappingURL=sisyphus-junior.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sisyphus-junior.js","sourceRoot":"","sources":["../../src/agents/sisyphus-junior.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,+BAA+B,GAAwB;IAClE,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,QAAQ;IACrB,QAAQ,EAAE;QACR,EAAE,MAAM,EAAE,uBAAuB,EAAE,OAAO,EAAE,oCAAoC,EAAE;QAClF,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,qBAAqB,EAAE;QACvD,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,6BAA6B,EAAE;KACrE;IACD,OAAO,EAAE;QACP,sCAAsC;QACtC,iCAAiC;QACjC,0CAA0C;QAC1C,+BAA+B;KAChC;IACD,SAAS,EAAE;QACT,2CAA2C;QAC3C,wDAAwD;QACxD,oCAAoC;KACrC;CACF,CAAC;AAEF,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAsDtB,CAAC;AAEV,MAAM,CAAC,MAAM,mBAAmB,GAAgB;IAC9C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,kIAAkI;IAC/I,MAAM,EAAE,sBAAsB;IAC9B,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IACxD,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,+BAA+B;CAC1C,CAAC"}
@@ -1,15 +0,0 @@
1
- /**
2
- * CostDashboard - ASCII bar charts for cost visualization
3
- *
4
- * TODO (Phase 4B - Full TUI Migration):
5
- * - Horizontal bar charts showing cost by agent tier
6
- * - Vertical bar charts for daily/weekly/monthly trends
7
- * - Sparklines for token usage over time
8
- * - Color-coded cost thresholds (green/yellow/red)
9
- * - Interactive period selection
10
- *
11
- * For now, cost visualization is handled by the 'cost' command
12
- * with enhanced output formatting using gradient-string and cli-boxes.
13
- */
14
- export {};
15
- //# sourceMappingURL=CostDashboard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CostDashboard.d.ts","sourceRoot":"","sources":["../../../src/cli/components/CostDashboard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC"}
@@ -1,15 +0,0 @@
1
- /**
2
- * CostDashboard - ASCII bar charts for cost visualization
3
- *
4
- * TODO (Phase 4B - Full TUI Migration):
5
- * - Horizontal bar charts showing cost by agent tier
6
- * - Vertical bar charts for daily/weekly/monthly trends
7
- * - Sparklines for token usage over time
8
- * - Color-coded cost thresholds (green/yellow/red)
9
- * - Interactive period selection
10
- *
11
- * For now, cost visualization is handled by the 'cost' command
12
- * with enhanced output formatting using gradient-string and cli-boxes.
13
- */
14
- export {};
15
- //# sourceMappingURL=CostDashboard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CostDashboard.js","sourceRoot":"","sources":["../../../src/cli/components/CostDashboard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
@@ -1,16 +0,0 @@
1
- /**
2
- * LiveStats - Real-time stats with polling
3
- *
4
- * TODO (Phase 4B - Full TUI Migration):
5
- * - Live updating stats component with ink-spinner
6
- * - Poll session state every 1-2 seconds
7
- * - Animated token counters
8
- * - Current task/agent display
9
- * - Estimated cost running total
10
- * - Press 'q' to exit live mode
11
- *
12
- * For now, stats are displayed statically via the 'stats' command
13
- * with enhanced formatting using gradient-string and figures.
14
- */
15
- export {};
16
- //# sourceMappingURL=LiveStats.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LiveStats.d.ts","sourceRoot":"","sources":["../../../src/cli/components/LiveStats.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * LiveStats - Real-time stats with polling
3
- *
4
- * TODO (Phase 4B - Full TUI Migration):
5
- * - Live updating stats component with ink-spinner
6
- * - Poll session state every 1-2 seconds
7
- * - Animated token counters
8
- * - Current task/agent display
9
- * - Estimated cost running total
10
- * - Press 'q' to exit live mode
11
- *
12
- * For now, stats are displayed statically via the 'stats' command
13
- * with enhanced formatting using gradient-string and figures.
14
- */
15
- export {};
16
- //# sourceMappingURL=LiveStats.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LiveStats.js","sourceRoot":"","sources":["../../../src/cli/components/LiveStats.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
@@ -1,14 +0,0 @@
1
- /**
2
- * SessionBrowser - Interactive session browser with ink
3
- *
4
- * TODO (Phase 4B - Full TUI Migration):
5
- * - Interactive session list with up/down navigation
6
- * - Filter by date range, agent type, cost
7
- * - Drill-down into individual session details
8
- * - Real-time session monitoring
9
- *
10
- * For now, session browsing is handled by the 'sessions' command
11
- * with enhanced table formatting using gradient-string and figures.
12
- */
13
- export {};
14
- //# sourceMappingURL=SessionBrowser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionBrowser.d.ts","sourceRoot":"","sources":["../../../src/cli/components/SessionBrowser.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * SessionBrowser - Interactive session browser with ink
3
- *
4
- * TODO (Phase 4B - Full TUI Migration):
5
- * - Interactive session list with up/down navigation
6
- * - Filter by date range, agent type, cost
7
- * - Drill-down into individual session details
8
- * - Real-time session monitoring
9
- *
10
- * For now, session browsing is handled by the 'sessions' command
11
- * with enhanced table formatting using gradient-string and figures.
12
- */
13
- export {};
14
- //# sourceMappingURL=SessionBrowser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionBrowser.js","sourceRoot":"","sources":["../../../src/cli/components/SessionBrowser.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
package/dist/cli/tui.d.ts DELETED
@@ -1,21 +0,0 @@
1
- /**
2
- * TUI - Main ink app entry point
3
- *
4
- * TODO (Phase 4B - Full TUI Migration):
5
- * - Main ink application container
6
- * - Route between SessionBrowser, CostDashboard, LiveStats
7
- * - Keyboard navigation (arrow keys, tab, enter)
8
- * - Command palette for quick actions
9
- * - Tab-based UI with ink-tab-navigation
10
- * - Help overlay (press '?')
11
- *
12
- * For now, the CLI remains commander-based with enhanced formatting.
13
- * This file will become the main entry point for the interactive TUI
14
- * when Phase 4B is implemented.
15
- *
16
- * Example future usage:
17
- * omc-analytics tui # Launch interactive TUI
18
- * omc-analytics stats --json # Traditional CLI (still supported)
19
- */
20
- export {};
21
- //# sourceMappingURL=tui.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../../src/cli/tui.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,CAAC"}
package/dist/cli/tui.js DELETED
@@ -1,21 +0,0 @@
1
- /**
2
- * TUI - Main ink app entry point
3
- *
4
- * TODO (Phase 4B - Full TUI Migration):
5
- * - Main ink application container
6
- * - Route between SessionBrowser, CostDashboard, LiveStats
7
- * - Keyboard navigation (arrow keys, tab, enter)
8
- * - Command palette for quick actions
9
- * - Tab-based UI with ink-tab-navigation
10
- * - Help overlay (press '?')
11
- *
12
- * For now, the CLI remains commander-based with enhanced formatting.
13
- * This file will become the main entry point for the interactive TUI
14
- * when Phase 4B is implemented.
15
- *
16
- * Example future usage:
17
- * omc-analytics tui # Launch interactive TUI
18
- * omc-analytics stats --json # Traditional CLI (still supported)
19
- */
20
- export {};
21
- //# sourceMappingURL=tui.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tui.js","sourceRoot":"","sources":["../../src/cli/tui.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG"}
@@ -1,20 +0,0 @@
1
- /**
2
- * Autopilot Signal Detection
3
- *
4
- * Detects phase completion signals in the session transcript,
5
- * similar to how ralph-loop/index.ts detects completion promises.
6
- */
7
- import type { AutopilotSignal } from './types.js';
8
- /**
9
- * Detect a specific signal in the session transcript
10
- */
11
- export declare function detectSignal(sessionId: string, signal: AutopilotSignal): boolean;
12
- /**
13
- * Get the expected signal for the current phase
14
- */
15
- export declare function getExpectedSignalForPhase(phase: string): AutopilotSignal | null;
16
- /**
17
- * Detect any autopilot signal in transcript (for phase advancement)
18
- */
19
- export declare function detectAnySignal(sessionId: string): AutopilotSignal | null;
20
- //# sourceMappingURL=signals.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/hooks/autopilot/signals.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAgBlD;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,OAAO,CAwBhF;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAS/E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAOzE"}
@@ -1,75 +0,0 @@
1
- /**
2
- * Autopilot Signal Detection
3
- *
4
- * Detects phase completion signals in the session transcript,
5
- * similar to how ralph-loop/index.ts detects completion promises.
6
- */
7
- import { existsSync, readFileSync } from 'fs';
8
- import { join } from 'path';
9
- import { homedir } from 'os';
10
- /**
11
- * Signal patterns - each signal can appear in transcript
12
- */
13
- const SIGNAL_PATTERNS = {
14
- 'EXPANSION_COMPLETE': /EXPANSION_COMPLETE/i,
15
- 'PLANNING_COMPLETE': /PLANNING_COMPLETE/i,
16
- 'EXECUTION_COMPLETE': /EXECUTION_COMPLETE/i,
17
- 'QA_COMPLETE': /QA_COMPLETE/i,
18
- 'VALIDATION_COMPLETE': /VALIDATION_COMPLETE/i,
19
- 'AUTOPILOT_COMPLETE': /AUTOPILOT_COMPLETE/i,
20
- 'TRANSITION_TO_QA': /TRANSITION_TO_QA/i,
21
- 'TRANSITION_TO_VALIDATION': /TRANSITION_TO_VALIDATION/i,
22
- };
23
- /**
24
- * Detect a specific signal in the session transcript
25
- */
26
- export function detectSignal(sessionId, signal) {
27
- const claudeDir = join(homedir(), '.claude');
28
- const possiblePaths = [
29
- join(claudeDir, 'sessions', sessionId, 'transcript.md'),
30
- join(claudeDir, 'sessions', sessionId, 'messages.json'),
31
- join(claudeDir, 'transcripts', `${sessionId}.md`)
32
- ];
33
- const pattern = SIGNAL_PATTERNS[signal];
34
- if (!pattern)
35
- return false;
36
- for (const transcriptPath of possiblePaths) {
37
- if (existsSync(transcriptPath)) {
38
- try {
39
- const content = readFileSync(transcriptPath, 'utf-8');
40
- if (pattern.test(content)) {
41
- return true;
42
- }
43
- }
44
- catch {
45
- continue;
46
- }
47
- }
48
- }
49
- return false;
50
- }
51
- /**
52
- * Get the expected signal for the current phase
53
- */
54
- export function getExpectedSignalForPhase(phase) {
55
- switch (phase) {
56
- case 'expansion': return 'EXPANSION_COMPLETE';
57
- case 'planning': return 'PLANNING_COMPLETE';
58
- case 'execution': return 'EXECUTION_COMPLETE';
59
- case 'qa': return 'QA_COMPLETE';
60
- case 'validation': return 'VALIDATION_COMPLETE';
61
- default: return null;
62
- }
63
- }
64
- /**
65
- * Detect any autopilot signal in transcript (for phase advancement)
66
- */
67
- export function detectAnySignal(sessionId) {
68
- for (const signal of Object.keys(SIGNAL_PATTERNS)) {
69
- if (detectSignal(sessionId, signal)) {
70
- return signal;
71
- }
72
- }
73
- return null;
74
- }
75
- //# sourceMappingURL=signals.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/hooks/autopilot/signals.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAG7B;;GAEG;AACH,MAAM,eAAe,GAAoC;IACvD,oBAAoB,EAAE,qBAAqB;IAC3C,mBAAmB,EAAE,oBAAoB;IACzC,oBAAoB,EAAE,qBAAqB;IAC3C,aAAa,EAAE,cAAc;IAC7B,qBAAqB,EAAE,sBAAsB;IAC7C,oBAAoB,EAAE,qBAAqB;IAC3C,kBAAkB,EAAE,mBAAmB;IACvC,0BAA0B,EAAE,2BAA2B;CACxD,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,SAAiB,EAAE,MAAuB;IACrE,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;IAC7C,MAAM,aAAa,GAAG;QACpB,IAAI,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,CAAC;QACvD,IAAI,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,CAAC;QACvD,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,GAAG,SAAS,KAAK,CAAC;KAClD,CAAC;IAEF,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IACxC,IAAI,CAAC,OAAO;QAAE,OAAO,KAAK,CAAC;IAE3B,KAAK,MAAM,cAAc,IAAI,aAAa,EAAE,CAAC;QAC3C,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YAC/B,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,YAAY,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;gBACtD,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;oBAC1B,OAAO,IAAI,CAAC;gBACd,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,SAAS;YACX,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACrD,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,WAAW,CAAC,CAAC,OAAO,oBAAoB,CAAC;QAC9C,KAAK,UAAU,CAAC,CAAC,OAAO,mBAAmB,CAAC;QAC5C,KAAK,WAAW,CAAC,CAAC,OAAO,oBAAoB,CAAC;QAC9C,KAAK,IAAI,CAAC,CAAC,OAAO,aAAa,CAAC;QAChC,KAAK,YAAY,CAAC,CAAC,OAAO,qBAAqB,CAAC;QAChD,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC;IACvB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,SAAiB;IAC/C,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAsB,EAAE,CAAC;QACvE,IAAI,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC;YACpC,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Autopilot Summary Generator
3
- *
4
- * Generates human-readable summaries when autopilot completes.
5
- */
6
- import type { AutopilotState, AutopilotSummary } from './types.js';
7
- /**
8
- * Generate a summary of the autopilot run
9
- */
10
- export declare function generateSummary(directory: string): AutopilotSummary | null;
11
- /**
12
- * Generate formatted summary output
13
- */
14
- export declare function formatSummary(summary: AutopilotSummary): string;
15
- /**
16
- * Generate a compact summary for HUD display
17
- */
18
- export declare function formatCompactSummary(state: AutopilotState): string;
19
- /**
20
- * Generate failure summary
21
- */
22
- export declare function formatFailureSummary(state: AutopilotState, error?: string): string;
23
- /**
24
- * List files for detailed summary
25
- */
26
- export declare function formatFileList(files: string[], title: string, maxFiles?: number): string;
27
- //# sourceMappingURL=summary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../../../src/hooks/autopilot/summary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAkB,MAAM,YAAY,CAAC;AAEnF;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAsC1E;AAuBD;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAiC/D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAelE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAwBlF;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAW,GAAG,MAAM,CAiB5F"}