@chief-clancy/core 0.1.0 → 0.1.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 (308) hide show
  1. package/README.md +17 -14
  2. package/dist/board/azdo/azdo-board.d.ts.map +1 -1
  3. package/dist/board/azdo/azdo-board.js +1 -0
  4. package/dist/board/azdo/azdo-board.js.map +1 -1
  5. package/dist/board/github/api/api.d.ts.map +1 -1
  6. package/dist/board/github/api/api.js +5 -2
  7. package/dist/board/github/api/api.js.map +1 -1
  8. package/dist/board/github/github-board.d.ts.map +1 -1
  9. package/dist/board/github/github-board.js +2 -1
  10. package/dist/board/github/github-board.js.map +1 -1
  11. package/dist/board/github/relations/relations.js +2 -2
  12. package/dist/board/github/relations/relations.js.map +1 -1
  13. package/dist/board/jira/jira-board.d.ts.map +1 -1
  14. package/dist/board/jira/jira-board.js +1 -0
  15. package/dist/board/jira/jira-board.js.map +1 -1
  16. package/dist/board/linear/linear-board.d.ts.map +1 -1
  17. package/dist/board/linear/linear-board.js +1 -0
  18. package/dist/board/linear/linear-board.js.map +1 -1
  19. package/dist/board/notion/notion-board.d.ts.map +1 -1
  20. package/dist/board/notion/notion-board.js +2 -1
  21. package/dist/board/notion/notion-board.js.map +1 -1
  22. package/dist/board/shortcut/shortcut-board.d.ts.map +1 -1
  23. package/dist/board/shortcut/shortcut-board.js +1 -0
  24. package/dist/board/shortcut/shortcut-board.js.map +1 -1
  25. package/dist/index.d.ts +1 -31
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +1 -23
  28. package/dist/index.js.map +1 -1
  29. package/dist/shared/remote/remote.js.map +1 -1
  30. package/dist/types/board.d.ts +2 -0
  31. package/dist/types/board.d.ts.map +1 -1
  32. package/package.json +6 -2
  33. package/dist/dev/lifecycle/branch/branch.d.ts +0 -35
  34. package/dist/dev/lifecycle/branch/branch.d.ts.map +0 -1
  35. package/dist/dev/lifecycle/branch/branch.js +0 -48
  36. package/dist/dev/lifecycle/branch/branch.js.map +0 -1
  37. package/dist/dev/lifecycle/branch/index.d.ts +0 -2
  38. package/dist/dev/lifecycle/branch/index.d.ts.map +0 -1
  39. package/dist/dev/lifecycle/branch/index.js +0 -2
  40. package/dist/dev/lifecycle/branch/index.js.map +0 -1
  41. package/dist/dev/lifecycle/commit-type/commit-type.d.ts +0 -22
  42. package/dist/dev/lifecycle/commit-type/commit-type.d.ts.map +0 -1
  43. package/dist/dev/lifecycle/commit-type/commit-type.js +0 -50
  44. package/dist/dev/lifecycle/commit-type/commit-type.js.map +0 -1
  45. package/dist/dev/lifecycle/commit-type/index.d.ts +0 -2
  46. package/dist/dev/lifecycle/commit-type/index.d.ts.map +0 -1
  47. package/dist/dev/lifecycle/commit-type/index.js +0 -2
  48. package/dist/dev/lifecycle/commit-type/index.js.map +0 -1
  49. package/dist/dev/lifecycle/cost/cost.d.ts +0 -28
  50. package/dist/dev/lifecycle/cost/cost.d.ts.map +0 -1
  51. package/dist/dev/lifecycle/cost/cost.js +0 -36
  52. package/dist/dev/lifecycle/cost/cost.js.map +0 -1
  53. package/dist/dev/lifecycle/deliver-epic/deliver-epic.d.ts +0 -44
  54. package/dist/dev/lifecycle/deliver-epic/deliver-epic.d.ts.map +0 -1
  55. package/dist/dev/lifecycle/deliver-epic/deliver-epic.js +0 -75
  56. package/dist/dev/lifecycle/deliver-epic/deliver-epic.js.map +0 -1
  57. package/dist/dev/lifecycle/deliver-ticket/deliver-ticket.d.ts +0 -51
  58. package/dist/dev/lifecycle/deliver-ticket/deliver-ticket.d.ts.map +0 -1
  59. package/dist/dev/lifecycle/deliver-ticket/deliver-ticket.js +0 -132
  60. package/dist/dev/lifecycle/deliver-ticket/deliver-ticket.js.map +0 -1
  61. package/dist/dev/lifecycle/epic/epic.d.ts +0 -66
  62. package/dist/dev/lifecycle/epic/epic.d.ts.map +0 -1
  63. package/dist/dev/lifecycle/epic/epic.js +0 -91
  64. package/dist/dev/lifecycle/epic/epic.js.map +0 -1
  65. package/dist/dev/lifecycle/epic/index.d.ts +0 -2
  66. package/dist/dev/lifecycle/epic/index.d.ts.map +0 -1
  67. package/dist/dev/lifecycle/epic/index.js +0 -2
  68. package/dist/dev/lifecycle/epic/index.js.map +0 -1
  69. package/dist/dev/lifecycle/feasibility/feasibility.d.ts +0 -55
  70. package/dist/dev/lifecycle/feasibility/feasibility.d.ts.map +0 -1
  71. package/dist/dev/lifecycle/feasibility/feasibility.js +0 -75
  72. package/dist/dev/lifecycle/feasibility/feasibility.js.map +0 -1
  73. package/dist/dev/lifecycle/fetch-ticket/fetch-ticket.d.ts +0 -49
  74. package/dist/dev/lifecycle/fetch-ticket/fetch-ticket.d.ts.map +0 -1
  75. package/dist/dev/lifecycle/fetch-ticket/fetch-ticket.js +0 -81
  76. package/dist/dev/lifecycle/fetch-ticket/fetch-ticket.js.map +0 -1
  77. package/dist/dev/lifecycle/format/format.d.ts +0 -11
  78. package/dist/dev/lifecycle/format/format.d.ts.map +0 -1
  79. package/dist/dev/lifecycle/format/format.js +0 -23
  80. package/dist/dev/lifecycle/format/format.js.map +0 -1
  81. package/dist/dev/lifecycle/lock/index.d.ts +0 -3
  82. package/dist/dev/lifecycle/lock/index.d.ts.map +0 -1
  83. package/dist/dev/lifecycle/lock/index.js +0 -2
  84. package/dist/dev/lifecycle/lock/index.js.map +0 -1
  85. package/dist/dev/lifecycle/lock/lock.d.ts +0 -68
  86. package/dist/dev/lifecycle/lock/lock.d.ts.map +0 -1
  87. package/dist/dev/lifecycle/lock/lock.js +0 -125
  88. package/dist/dev/lifecycle/lock/lock.js.map +0 -1
  89. package/dist/dev/lifecycle/outcome/index.d.ts +0 -2
  90. package/dist/dev/lifecycle/outcome/index.d.ts.map +0 -1
  91. package/dist/dev/lifecycle/outcome/index.js +0 -2
  92. package/dist/dev/lifecycle/outcome/index.js.map +0 -1
  93. package/dist/dev/lifecycle/outcome/outcome.d.ts +0 -65
  94. package/dist/dev/lifecycle/outcome/outcome.d.ts.map +0 -1
  95. package/dist/dev/lifecycle/outcome/outcome.js +0 -61
  96. package/dist/dev/lifecycle/outcome/outcome.js.map +0 -1
  97. package/dist/dev/lifecycle/pr-creation/index.d.ts +0 -3
  98. package/dist/dev/lifecycle/pr-creation/index.d.ts.map +0 -1
  99. package/dist/dev/lifecycle/pr-creation/index.js +0 -2
  100. package/dist/dev/lifecycle/pr-creation/index.js.map +0 -1
  101. package/dist/dev/lifecycle/pr-creation/pr-creation.d.ts +0 -47
  102. package/dist/dev/lifecycle/pr-creation/pr-creation.d.ts.map +0 -1
  103. package/dist/dev/lifecycle/pr-creation/pr-creation.js +0 -143
  104. package/dist/dev/lifecycle/pr-creation/pr-creation.js.map +0 -1
  105. package/dist/dev/lifecycle/preflight/preflight.d.ts +0 -42
  106. package/dist/dev/lifecycle/preflight/preflight.d.ts.map +0 -1
  107. package/dist/dev/lifecycle/preflight/preflight.js +0 -101
  108. package/dist/dev/lifecycle/preflight/preflight.js.map +0 -1
  109. package/dist/dev/lifecycle/progress/index.d.ts +0 -3
  110. package/dist/dev/lifecycle/progress/index.d.ts.map +0 -1
  111. package/dist/dev/lifecycle/progress/index.js +0 -2
  112. package/dist/dev/lifecycle/progress/index.js.map +0 -1
  113. package/dist/dev/lifecycle/progress/progress.d.ts +0 -98
  114. package/dist/dev/lifecycle/progress/progress.d.ts.map +0 -1
  115. package/dist/dev/lifecycle/progress/progress.js +0 -212
  116. package/dist/dev/lifecycle/progress/progress.js.map +0 -1
  117. package/dist/dev/lifecycle/pull-request/azdo/azdo.d.ts +0 -86
  118. package/dist/dev/lifecycle/pull-request/azdo/azdo.d.ts.map +0 -1
  119. package/dist/dev/lifecycle/pull-request/azdo/azdo.js +0 -198
  120. package/dist/dev/lifecycle/pull-request/azdo/azdo.js.map +0 -1
  121. package/dist/dev/lifecycle/pull-request/azdo/index.d.ts +0 -2
  122. package/dist/dev/lifecycle/pull-request/azdo/index.d.ts.map +0 -1
  123. package/dist/dev/lifecycle/pull-request/azdo/index.js +0 -2
  124. package/dist/dev/lifecycle/pull-request/azdo/index.js.map +0 -1
  125. package/dist/dev/lifecycle/pull-request/bitbucket/cloud.d.ts +0 -85
  126. package/dist/dev/lifecycle/pull-request/bitbucket/cloud.d.ts.map +0 -1
  127. package/dist/dev/lifecycle/pull-request/bitbucket/cloud.js +0 -158
  128. package/dist/dev/lifecycle/pull-request/bitbucket/cloud.js.map +0 -1
  129. package/dist/dev/lifecycle/pull-request/bitbucket/index.d.ts +0 -3
  130. package/dist/dev/lifecycle/pull-request/bitbucket/index.d.ts.map +0 -1
  131. package/dist/dev/lifecycle/pull-request/bitbucket/index.js +0 -3
  132. package/dist/dev/lifecycle/pull-request/bitbucket/index.js.map +0 -1
  133. package/dist/dev/lifecycle/pull-request/bitbucket/server.d.ts +0 -85
  134. package/dist/dev/lifecycle/pull-request/bitbucket/server.d.ts.map +0 -1
  135. package/dist/dev/lifecycle/pull-request/bitbucket/server.js +0 -168
  136. package/dist/dev/lifecycle/pull-request/bitbucket/server.js.map +0 -1
  137. package/dist/dev/lifecycle/pull-request/github/github.d.ts +0 -107
  138. package/dist/dev/lifecycle/pull-request/github/github.d.ts.map +0 -1
  139. package/dist/dev/lifecycle/pull-request/github/github.js +0 -225
  140. package/dist/dev/lifecycle/pull-request/github/github.js.map +0 -1
  141. package/dist/dev/lifecycle/pull-request/github/index.d.ts +0 -2
  142. package/dist/dev/lifecycle/pull-request/github/index.d.ts.map +0 -1
  143. package/dist/dev/lifecycle/pull-request/github/index.js +0 -2
  144. package/dist/dev/lifecycle/pull-request/github/index.js.map +0 -1
  145. package/dist/dev/lifecycle/pull-request/gitlab/gitlab.d.ts +0 -103
  146. package/dist/dev/lifecycle/pull-request/gitlab/gitlab.d.ts.map +0 -1
  147. package/dist/dev/lifecycle/pull-request/gitlab/gitlab.js +0 -215
  148. package/dist/dev/lifecycle/pull-request/gitlab/gitlab.js.map +0 -1
  149. package/dist/dev/lifecycle/pull-request/gitlab/index.d.ts +0 -2
  150. package/dist/dev/lifecycle/pull-request/gitlab/index.d.ts.map +0 -1
  151. package/dist/dev/lifecycle/pull-request/gitlab/index.js +0 -2
  152. package/dist/dev/lifecycle/pull-request/gitlab/index.js.map +0 -1
  153. package/dist/dev/lifecycle/pull-request/post-pr/post-pr.d.ts +0 -44
  154. package/dist/dev/lifecycle/pull-request/post-pr/post-pr.d.ts.map +0 -1
  155. package/dist/dev/lifecycle/pull-request/post-pr/post-pr.js +0 -64
  156. package/dist/dev/lifecycle/pull-request/post-pr/post-pr.js.map +0 -1
  157. package/dist/dev/lifecycle/pull-request/pr-body/index.d.ts +0 -3
  158. package/dist/dev/lifecycle/pull-request/pr-body/index.d.ts.map +0 -1
  159. package/dist/dev/lifecycle/pull-request/pr-body/index.js +0 -2
  160. package/dist/dev/lifecycle/pull-request/pr-body/index.js.map +0 -1
  161. package/dist/dev/lifecycle/pull-request/pr-body/pr-body.d.ts +0 -65
  162. package/dist/dev/lifecycle/pull-request/pr-body/pr-body.d.ts.map +0 -1
  163. package/dist/dev/lifecycle/pull-request/pr-body/pr-body.js +0 -144
  164. package/dist/dev/lifecycle/pull-request/pr-body/pr-body.js.map +0 -1
  165. package/dist/dev/lifecycle/pull-request/rework-comment/rework-comment.d.ts +0 -30
  166. package/dist/dev/lifecycle/pull-request/rework-comment/rework-comment.d.ts.map +0 -1
  167. package/dist/dev/lifecycle/pull-request/rework-comment/rework-comment.js +0 -39
  168. package/dist/dev/lifecycle/pull-request/rework-comment/rework-comment.js.map +0 -1
  169. package/dist/dev/lifecycle/quality/quality.d.ts +0 -99
  170. package/dist/dev/lifecycle/quality/quality.d.ts.map +0 -1
  171. package/dist/dev/lifecycle/quality/quality.js +0 -213
  172. package/dist/dev/lifecycle/quality/quality.js.map +0 -1
  173. package/dist/dev/lifecycle/resume/resume.d.ts +0 -64
  174. package/dist/dev/lifecycle/resume/resume.d.ts.map +0 -1
  175. package/dist/dev/lifecycle/resume/resume.js +0 -171
  176. package/dist/dev/lifecycle/resume/resume.js.map +0 -1
  177. package/dist/dev/lifecycle/rework/rework-builders.d.ts +0 -20
  178. package/dist/dev/lifecycle/rework/rework-builders.d.ts.map +0 -1
  179. package/dist/dev/lifecycle/rework/rework-builders.js +0 -203
  180. package/dist/dev/lifecycle/rework/rework-builders.js.map +0 -1
  181. package/dist/dev/lifecycle/rework/rework-handlers.d.ts +0 -50
  182. package/dist/dev/lifecycle/rework/rework-handlers.d.ts.map +0 -1
  183. package/dist/dev/lifecycle/rework/rework-handlers.js +0 -41
  184. package/dist/dev/lifecycle/rework/rework-handlers.js.map +0 -1
  185. package/dist/dev/lifecycle/rework/rework.d.ts +0 -63
  186. package/dist/dev/lifecycle/rework/rework.d.ts.map +0 -1
  187. package/dist/dev/lifecycle/rework/rework.js +0 -141
  188. package/dist/dev/lifecycle/rework/rework.js.map +0 -1
  189. package/dist/dev/pipeline/context.d.ts +0 -105
  190. package/dist/dev/pipeline/context.d.ts.map +0 -1
  191. package/dist/dev/pipeline/context.js +0 -107
  192. package/dist/dev/pipeline/context.js.map +0 -1
  193. package/dist/dev/pipeline/index.d.ts +0 -6
  194. package/dist/dev/pipeline/index.d.ts.map +0 -1
  195. package/dist/dev/pipeline/index.js +0 -5
  196. package/dist/dev/pipeline/index.js.map +0 -1
  197. package/dist/dev/pipeline/phases/branch-setup/branch-setup.d.ts +0 -62
  198. package/dist/dev/pipeline/phases/branch-setup/branch-setup.d.ts.map +0 -1
  199. package/dist/dev/pipeline/phases/branch-setup/branch-setup.js +0 -128
  200. package/dist/dev/pipeline/phases/branch-setup/branch-setup.js.map +0 -1
  201. package/dist/dev/pipeline/phases/branch-setup/index.d.ts +0 -3
  202. package/dist/dev/pipeline/phases/branch-setup/index.d.ts.map +0 -1
  203. package/dist/dev/pipeline/phases/branch-setup/index.js +0 -2
  204. package/dist/dev/pipeline/phases/branch-setup/index.js.map +0 -1
  205. package/dist/dev/pipeline/phases/cleanup-phase/cleanup-phase.d.ts +0 -32
  206. package/dist/dev/pipeline/phases/cleanup-phase/cleanup-phase.d.ts.map +0 -1
  207. package/dist/dev/pipeline/phases/cleanup-phase/cleanup-phase.js +0 -32
  208. package/dist/dev/pipeline/phases/cleanup-phase/cleanup-phase.js.map +0 -1
  209. package/dist/dev/pipeline/phases/cleanup-phase/index.d.ts +0 -3
  210. package/dist/dev/pipeline/phases/cleanup-phase/index.d.ts.map +0 -1
  211. package/dist/dev/pipeline/phases/cleanup-phase/index.js +0 -2
  212. package/dist/dev/pipeline/phases/cleanup-phase/index.js.map +0 -1
  213. package/dist/dev/pipeline/phases/cost-phase/cost-phase.d.ts +0 -40
  214. package/dist/dev/pipeline/phases/cost-phase/cost-phase.d.ts.map +0 -1
  215. package/dist/dev/pipeline/phases/cost-phase/cost-phase.js +0 -43
  216. package/dist/dev/pipeline/phases/cost-phase/cost-phase.js.map +0 -1
  217. package/dist/dev/pipeline/phases/cost-phase/index.d.ts +0 -3
  218. package/dist/dev/pipeline/phases/cost-phase/index.d.ts.map +0 -1
  219. package/dist/dev/pipeline/phases/cost-phase/index.js +0 -2
  220. package/dist/dev/pipeline/phases/cost-phase/index.js.map +0 -1
  221. package/dist/dev/pipeline/phases/deliver-phase/deliver-phase.d.ts +0 -68
  222. package/dist/dev/pipeline/phases/deliver-phase/deliver-phase.d.ts.map +0 -1
  223. package/dist/dev/pipeline/phases/deliver-phase/deliver-phase.js +0 -125
  224. package/dist/dev/pipeline/phases/deliver-phase/deliver-phase.js.map +0 -1
  225. package/dist/dev/pipeline/phases/deliver-phase/index.d.ts +0 -3
  226. package/dist/dev/pipeline/phases/deliver-phase/index.d.ts.map +0 -1
  227. package/dist/dev/pipeline/phases/deliver-phase/index.js +0 -2
  228. package/dist/dev/pipeline/phases/deliver-phase/index.js.map +0 -1
  229. package/dist/dev/pipeline/phases/dry-run/dry-run.d.ts +0 -38
  230. package/dist/dev/pipeline/phases/dry-run/dry-run.d.ts.map +0 -1
  231. package/dist/dev/pipeline/phases/dry-run/dry-run.js +0 -33
  232. package/dist/dev/pipeline/phases/dry-run/dry-run.js.map +0 -1
  233. package/dist/dev/pipeline/phases/dry-run/index.d.ts +0 -2
  234. package/dist/dev/pipeline/phases/dry-run/index.d.ts.map +0 -1
  235. package/dist/dev/pipeline/phases/dry-run/index.js +0 -2
  236. package/dist/dev/pipeline/phases/dry-run/index.js.map +0 -1
  237. package/dist/dev/pipeline/phases/epic-completion/epic-completion.d.ts +0 -48
  238. package/dist/dev/pipeline/phases/epic-completion/epic-completion.d.ts.map +0 -1
  239. package/dist/dev/pipeline/phases/epic-completion/epic-completion.js +0 -42
  240. package/dist/dev/pipeline/phases/epic-completion/epic-completion.js.map +0 -1
  241. package/dist/dev/pipeline/phases/epic-completion/index.d.ts +0 -3
  242. package/dist/dev/pipeline/phases/epic-completion/index.d.ts.map +0 -1
  243. package/dist/dev/pipeline/phases/epic-completion/index.js +0 -2
  244. package/dist/dev/pipeline/phases/epic-completion/index.js.map +0 -1
  245. package/dist/dev/pipeline/phases/feasibility/feasibility.d.ts +0 -52
  246. package/dist/dev/pipeline/phases/feasibility/feasibility.d.ts.map +0 -1
  247. package/dist/dev/pipeline/phases/feasibility/feasibility.js +0 -34
  248. package/dist/dev/pipeline/phases/feasibility/feasibility.js.map +0 -1
  249. package/dist/dev/pipeline/phases/feasibility/index.d.ts +0 -3
  250. package/dist/dev/pipeline/phases/feasibility/index.d.ts.map +0 -1
  251. package/dist/dev/pipeline/phases/feasibility/index.js +0 -2
  252. package/dist/dev/pipeline/phases/feasibility/index.js.map +0 -1
  253. package/dist/dev/pipeline/phases/index.d.ts +0 -26
  254. package/dist/dev/pipeline/phases/index.d.ts.map +0 -1
  255. package/dist/dev/pipeline/phases/index.js +0 -14
  256. package/dist/dev/pipeline/phases/index.js.map +0 -1
  257. package/dist/dev/pipeline/phases/lock-check/index.d.ts +0 -3
  258. package/dist/dev/pipeline/phases/lock-check/index.d.ts.map +0 -1
  259. package/dist/dev/pipeline/phases/lock-check/index.js +0 -2
  260. package/dist/dev/pipeline/phases/lock-check/index.js.map +0 -1
  261. package/dist/dev/pipeline/phases/lock-check/lock-check.d.ts +0 -55
  262. package/dist/dev/pipeline/phases/lock-check/lock-check.d.ts.map +0 -1
  263. package/dist/dev/pipeline/phases/lock-check/lock-check.js +0 -60
  264. package/dist/dev/pipeline/phases/lock-check/lock-check.js.map +0 -1
  265. package/dist/dev/pipeline/phases/pr-retry/index.d.ts +0 -3
  266. package/dist/dev/pipeline/phases/pr-retry/index.d.ts.map +0 -1
  267. package/dist/dev/pipeline/phases/pr-retry/index.js +0 -2
  268. package/dist/dev/pipeline/phases/pr-retry/index.js.map +0 -1
  269. package/dist/dev/pipeline/phases/pr-retry/pr-retry.d.ts +0 -58
  270. package/dist/dev/pipeline/phases/pr-retry/pr-retry.d.ts.map +0 -1
  271. package/dist/dev/pipeline/phases/pr-retry/pr-retry.js +0 -82
  272. package/dist/dev/pipeline/phases/pr-retry/pr-retry.js.map +0 -1
  273. package/dist/dev/pipeline/phases/preflight-phase/index.d.ts +0 -3
  274. package/dist/dev/pipeline/phases/preflight-phase/index.d.ts.map +0 -1
  275. package/dist/dev/pipeline/phases/preflight-phase/index.js +0 -2
  276. package/dist/dev/pipeline/phases/preflight-phase/index.js.map +0 -1
  277. package/dist/dev/pipeline/phases/preflight-phase/preflight-phase.d.ts +0 -42
  278. package/dist/dev/pipeline/phases/preflight-phase/preflight-phase.d.ts.map +0 -1
  279. package/dist/dev/pipeline/phases/preflight-phase/preflight-phase.js +0 -41
  280. package/dist/dev/pipeline/phases/preflight-phase/preflight-phase.js.map +0 -1
  281. package/dist/dev/pipeline/phases/rework-detection/index.d.ts +0 -3
  282. package/dist/dev/pipeline/phases/rework-detection/index.d.ts.map +0 -1
  283. package/dist/dev/pipeline/phases/rework-detection/index.js +0 -2
  284. package/dist/dev/pipeline/phases/rework-detection/index.js.map +0 -1
  285. package/dist/dev/pipeline/phases/rework-detection/rework-detection.d.ts +0 -40
  286. package/dist/dev/pipeline/phases/rework-detection/rework-detection.d.ts.map +0 -1
  287. package/dist/dev/pipeline/phases/rework-detection/rework-detection.js +0 -38
  288. package/dist/dev/pipeline/phases/rework-detection/rework-detection.js.map +0 -1
  289. package/dist/dev/pipeline/phases/ticket-fetch/index.d.ts +0 -3
  290. package/dist/dev/pipeline/phases/ticket-fetch/index.d.ts.map +0 -1
  291. package/dist/dev/pipeline/phases/ticket-fetch/index.js +0 -2
  292. package/dist/dev/pipeline/phases/ticket-fetch/index.js.map +0 -1
  293. package/dist/dev/pipeline/phases/ticket-fetch/ticket-fetch.d.ts +0 -46
  294. package/dist/dev/pipeline/phases/ticket-fetch/ticket-fetch.d.ts.map +0 -1
  295. package/dist/dev/pipeline/phases/ticket-fetch/ticket-fetch.js +0 -64
  296. package/dist/dev/pipeline/phases/ticket-fetch/ticket-fetch.js.map +0 -1
  297. package/dist/dev/pipeline/phases/transition/index.d.ts +0 -3
  298. package/dist/dev/pipeline/phases/transition/index.d.ts.map +0 -1
  299. package/dist/dev/pipeline/phases/transition/index.js +0 -2
  300. package/dist/dev/pipeline/phases/transition/index.js.map +0 -1
  301. package/dist/dev/pipeline/phases/transition/transition.d.ts +0 -30
  302. package/dist/dev/pipeline/phases/transition/transition.d.ts.map +0 -1
  303. package/dist/dev/pipeline/phases/transition/transition.js +0 -27
  304. package/dist/dev/pipeline/phases/transition/transition.js.map +0 -1
  305. package/dist/dev/pipeline/run-pipeline.d.ts +0 -98
  306. package/dist/dev/pipeline/run-pipeline.d.ts.map +0 -1
  307. package/dist/dev/pipeline/run-pipeline.js +0 -106
  308. package/dist/dev/pipeline/run-pipeline.js.map +0 -1
@@ -1,125 +0,0 @@
1
- // ─── Phase ───────────────────────────────────────────────────────────────────
2
- /**
3
- * Deliver the ticket via PR (rework or fresh path).
4
- *
5
- * Decomposed into {@link deliverRework} and {@link deliverFresh} based on
6
- * `ctx.isRework`. Parent key computation is shared via {@link computeParentKeys}.
7
- *
8
- * @param ctx - Pipeline context (requires ticket + branches + rework state).
9
- * @param deps - Injected dependencies.
10
- * @returns Structured result indicating delivery success.
11
- */
12
- export async function deliverPhase(ctx, deps) {
13
- return ctx.isRework === true
14
- ? deliverRework(ctx, deps)
15
- : deliverFresh(ctx, deps);
16
- }
17
- // ─── Internal helpers ────────────────────────────────────────────────────────
18
- /** Deliver a rework ticket: push, log REWORK, quality, post-rework actions. */
19
- async function deliverRework(ctx, deps) {
20
- // Safe: pipeline ordering guarantees these fields are populated
21
- const ticket = ctx.ticket;
22
- const ticketBranch = ctx.ticketBranch;
23
- const effectiveTarget = ctx.effectiveTarget;
24
- const { parentKey } = computeParentKeys(ctx);
25
- const result = await deps.deliverViaPullRequest({
26
- ticketBranch,
27
- targetBranch: effectiveTarget,
28
- skipLog: true,
29
- parent: parentKey,
30
- });
31
- if (!result.pushed) {
32
- deps.appendProgress({
33
- key: ticket.key,
34
- summary: ticket.title,
35
- status: 'PUSH_FAILED',
36
- parent: parentKey,
37
- });
38
- return { ok: false };
39
- }
40
- deps.appendProgress({
41
- key: ticket.key,
42
- summary: ticket.title,
43
- status: 'REWORK',
44
- prNumber: ctx.reworkPrNumber,
45
- parent: parentKey,
46
- });
47
- deps.recordRework();
48
- await safeRemoveBuildLabel(ticket.key, deps);
49
- if (ctx.reworkPrNumber != null) {
50
- try {
51
- await deps.postReworkActions({
52
- prNumber: ctx.reworkPrNumber,
53
- feedback: ctx.prFeedback ?? [],
54
- discussionIds: ctx.reworkDiscussionIds,
55
- reviewers: ctx.reworkReviewers,
56
- });
57
- }
58
- catch {
59
- // Best-effort — post-rework actions failure never blocks delivery
60
- }
61
- }
62
- return { ok: true };
63
- }
64
- /** Deliver a fresh ticket: push + PR, quality tracking. */
65
- async function deliverFresh(ctx, deps) {
66
- // Safe: pipeline ordering guarantees these fields are populated
67
- const ticket = ctx.ticket;
68
- const ticketBranch = ctx.ticketBranch;
69
- const effectiveTarget = ctx.effectiveTarget;
70
- const { parentKey, singleChildParent } = computeParentKeys(ctx);
71
- const result = await deps.deliverViaPullRequest({
72
- ticketBranch,
73
- targetBranch: effectiveTarget,
74
- parent: parentKey,
75
- singleChildParent,
76
- });
77
- if (!result.pushed) {
78
- deps.appendProgress({
79
- key: ticket.key,
80
- summary: ticket.title,
81
- status: 'PUSH_FAILED',
82
- parent: parentKey,
83
- });
84
- return { ok: false };
85
- }
86
- deps.recordDelivery();
87
- await safeRemoveBuildLabel(ticket.key, deps);
88
- return { ok: true };
89
- }
90
- /** Remove build label after delivery. Best-effort — never blocks. */
91
- async function safeRemoveBuildLabel(ticketKey, deps) {
92
- try {
93
- await deps.removeBuildLabel(ticketKey);
94
- }
95
- catch {
96
- // Best-effort — label cleanup failure never blocks delivery
97
- }
98
- }
99
- /** Compute parentKey and singleChildParent from context. */
100
- function computeParentKeys(ctx) {
101
- // Safe: pipeline ordering guarantees config + ticket are populated
102
- const ticket = ctx.ticket;
103
- const hasParent = ctx.hasParent === true;
104
- const skipEpicBranch = ctx.skipEpicBranch === true;
105
- const provider = ctx.config.provider;
106
- const parentKey = hasParent && !skipEpicBranch ? ticket.parentInfo : undefined;
107
- const rawParent = hasParent && skipEpicBranch ? ticket.parentInfo : undefined;
108
- const singleChildParent = resolveSingleChildParent(rawParent, provider);
109
- return { parentKey, singleChildParent };
110
- }
111
- /**
112
- * Resolve the single-child parent for PR body "Closes" lines.
113
- *
114
- * GitHub: only use if parentInfo is a valid issue ref (`#N`).
115
- * Milestone titles like "Sprint 3" would produce invalid "Closes Sprint 3".
116
- * Non-GitHub: use the raw parent directly.
117
- */
118
- function resolveSingleChildParent(rawParent, provider) {
119
- if (rawParent == null)
120
- return undefined;
121
- if (provider !== 'github')
122
- return rawParent;
123
- return /^#\d+$/.test(rawParent) ? rawParent : undefined;
124
- }
125
- //# sourceMappingURL=deliver-phase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deliver-phase.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/deliver-phase/deliver-phase.ts"],"names":[],"mappings":"AAkEA,gFAAgF;AAEhF;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,GAAe,E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CAAC,SAAS,CAAC;AAC1D,CAAC"}
@@ -1,3 +0,0 @@
1
- export type { DeliverPhaseDeps } from './deliver-phase.js';
2
- export { deliverPhase } from './deliver-phase.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/deliver-phase/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { deliverPhase } from './deliver-phase.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/deliver-phase/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,38 +0,0 @@
1
- /**
2
- * Dry-run gate — returns ticket info for display and signals
3
- * early exit when `--dry-run` is active.
4
- *
5
- * No dependencies — all data comes from context. No console output.
6
- */
7
- import type { RunContext } from '../../context.js';
8
- import type { BoardProvider } from '../../../../types/board.js';
9
- /** Ticket details surfaced in a dry-run result. */
10
- type DryRunTicketInfo = {
11
- readonly key: string;
12
- readonly title: string;
13
- readonly description: string;
14
- readonly parentInfo: string;
15
- readonly blockers: string;
16
- readonly ticketBranch: string;
17
- readonly targetBranch: string;
18
- readonly isRework: boolean;
19
- readonly provider: BoardProvider;
20
- };
21
- /** Structured result of the dry-run phase. */
22
- type DryRunResult = {
23
- readonly isDryRun: boolean;
24
- readonly ticketInfo?: DryRunTicketInfo;
25
- };
26
- /**
27
- * Check the dry-run flag and return ticket info for display.
28
- *
29
- * When `ctx.dryRun` is `true`, returns ticket details so the terminal
30
- * layer can display them and exit. When `false`, returns a pass-through
31
- * result to continue the pipeline.
32
- *
33
- * @param ctx - Pipeline context (requires ticket + branches from prior phases).
34
- * @returns Structured result with ticket info if dry-run, or pass-through.
35
- */
36
- export declare function dryRun(ctx: RunContext): DryRunResult;
37
- export {};
38
- //# sourceMappingURL=dry-run.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dry-run.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/dry-run/dry-run.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD,mDAAmD;AACnD,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;CAClC,CAAC;AAEF,8CAA8C;AAC9C,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACxC,CAAC;AAIF;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,YAAY,CAqBpD"}
@@ -1,33 +0,0 @@
1
- // ─── Phase ───────────────────────────────────────────────────────────────────
2
- /**
3
- * Check the dry-run flag and return ticket info for display.
4
- *
5
- * When `ctx.dryRun` is `true`, returns ticket details so the terminal
6
- * layer can display them and exit. When `false`, returns a pass-through
7
- * result to continue the pipeline.
8
- *
9
- * @param ctx - Pipeline context (requires ticket + branches from prior phases).
10
- * @returns Structured result with ticket info if dry-run, or pass-through.
11
- */
12
- export function dryRun(ctx) {
13
- if (!ctx.dryRun)
14
- return { isDryRun: false };
15
- // Safe: pipeline ordering guarantees prior phases populate these fields
16
- const ticket = ctx.ticket;
17
- const config = ctx.config;
18
- return {
19
- isDryRun: true,
20
- ticketInfo: {
21
- key: ticket.key,
22
- title: ticket.title,
23
- description: ticket.description,
24
- parentInfo: ticket.parentInfo,
25
- blockers: ticket.blockers,
26
- ticketBranch: ctx.ticketBranch,
27
- targetBranch: ctx.targetBranch,
28
- isRework: ctx.isRework === true,
29
- provider: config.provider,
30
- },
31
- };
32
- }
33
- //# sourceMappingURL=dry-run.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dry-run.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/dry-run/dry-run.ts"],"names":[],"mappings":"AA8BA,gFAAgF;AAEhF;;;;;;;;;GASG;AACH,MAAM,UAAU,MAAM,CAAC,GAAe;IACpC,IAAI,CAAC,GAAG,CAAC,MAAM;QAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAE5C,wEAAwE;IACxE,MAAM,MAAM,GAAG,GAAG,CAAC,MAAO,CAAC;IAC3B,MAAM,MAAM,GAAG,GAAG,CAAC,MAAO,CAAC;IAE3B,OAAO;QACL,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE;YACV,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,YAAY,EAAE,GAAG,CAAC,YAAa;YAC/B,YAAY,EAAE,GAAG,CAAC,YAAa;YAC/B,QAAQ,EAAE,GAAG,CAAC,QAAQ,KAAK,IAAI;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B;KACF,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- export { dryRun } from './dry-run.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/dry-run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
@@ -1,2 +0,0 @@
1
- export { dryRun } from './dry-run.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/dry-run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC"}
@@ -1,48 +0,0 @@
1
- /**
2
- * Epic completion — scan progress for completed epics and
3
- * auto-create epic PRs.
4
- *
5
- * Best-effort: wrapped in try/catch. Never blocks the pipeline.
6
- * Returns structured results — no console output.
7
- */
8
- import type { RunContext } from '../../context.js';
9
- /** Result of a single epic delivery attempt. */
10
- type EpicDeliveryEntry = {
11
- readonly epicKey: string;
12
- readonly ok: boolean;
13
- };
14
- /** Structured result of the epic-completion phase. */
15
- type EpicCompletionResult = {
16
- readonly results: readonly EpicDeliveryEntry[];
17
- };
18
- /** Pre-wired epic delivery function. I/O deps (exec, fetchFn, progressFs) are bound by the terminal layer. */
19
- type DeliverEpicFn = (opts: {
20
- readonly projectRoot: string;
21
- readonly config: RunContext['config'];
22
- readonly epicKey: string;
23
- readonly epicTitle: string;
24
- readonly epicBranch: string;
25
- readonly baseBranch: string;
26
- }) => Promise<{
27
- readonly ok: boolean;
28
- }>;
29
- /** Injected dependencies for epic-completion. */
30
- export type EpicCompletionDeps = {
31
- /** Find epics whose children are all complete. Returns Map<epicKey, epicBranch>. */
32
- readonly findCompletedEpics: (ctx: RunContext) => ReadonlyMap<string, string>;
33
- /** Deliver the epic PR to base branch. Pre-wired with exec/fetchFn/progressFs. */
34
- readonly deliverEpicToBase: DeliverEpicFn;
35
- };
36
- /**
37
- * Scan progress for completed epics and create epic PRs.
38
- *
39
- * Best-effort — errors are caught and an empty result is returned.
40
- * Never blocks the pipeline.
41
- *
42
- * @param ctx - Pipeline context (requires config + board from preflight).
43
- * @param deps - Injected dependencies.
44
- * @returns Structured result with per-epic delivery outcomes.
45
- */
46
- export declare function epicCompletion(ctx: RunContext, deps: EpicCompletionDeps): Promise<EpicCompletionResult>;
47
- export {};
48
- //# sourceMappingURL=epic-completion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"epic-completion.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/epic-completion/epic-completion.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAInD,gDAAgD;AAChD,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,sDAAsD;AACtD,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAChD,CAAC;AAEF,8GAA8G;AAC9G,KAAK,aAAa,GAAG,CAAC,IAAI,EAAE;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B,KAAK,OAAO,CAAC;IAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAExC,iDAAiD;AACjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,oFAAoF;IACpF,QAAQ,CAAC,kBAAkB,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9E,kFAAkF;IAClF,QAAQ,CAAC,iBAAiB,EAAE,aAAa,CAAC;CAC3C,CAAC;AAIF;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,UAAU,EACf,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,oBAAoB,CAAC,CAM/B"}
@@ -1,42 +0,0 @@
1
- // ─── Phase ───────────────────────────────────────────────────────────────────
2
- /**
3
- * Scan progress for completed epics and create epic PRs.
4
- *
5
- * Best-effort — errors are caught and an empty result is returned.
6
- * Never blocks the pipeline.
7
- *
8
- * @param ctx - Pipeline context (requires config + board from preflight).
9
- * @param deps - Injected dependencies.
10
- * @returns Structured result with per-epic delivery outcomes.
11
- */
12
- export async function epicCompletion(ctx, deps) {
13
- try {
14
- return await deliverCompletedEpics(ctx, deps);
15
- }
16
- catch {
17
- return { results: [] };
18
- }
19
- }
20
- // ─── Internal helpers ────────────────────────────────────────────────────────
21
- /** Find and deliver all completed epics. */
22
- async function deliverCompletedEpics(ctx, deps) {
23
- // Safe: pipeline ordering guarantees preflight runs before epic-completion
24
- const config = ctx.config;
25
- const baseBranch = config.env.CLANCY_BASE_BRANCH ?? 'main';
26
- const completedEpics = deps.findCompletedEpics(ctx);
27
- const deliver = async (epicKey, epicBranch) => {
28
- const delivery = await deps.deliverEpicToBase({
29
- projectRoot: ctx.projectRoot,
30
- config,
31
- epicKey,
32
- epicTitle: epicKey, // title not available from progress — key is the fallback
33
- epicBranch,
34
- baseBranch,
35
- });
36
- return { epicKey, ok: delivery.ok };
37
- };
38
- const entries = [...completedEpics.entries()];
39
- const results = await Promise.all(entries.map(([key, branch]) => deliver(key, branch)));
40
- return { results };
41
- }
42
- //# sourceMappingURL=epic-completion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"epic-completion.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/epic-completion/epic-completion.ts"],"names":[],"mappings":"AAwCA,gFAAgF;AAEhF;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,GAAe,EACf,IAAwB;IAExB,IAAI,CAAC;QACH,OAAO,MAAM,qBAAqB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC;AACH,CAAC;AAED,gFAAgF;AAEhF,4CAA4C;AAC5C,KAAK,UAAU,qBAAqB,CAClC,GAAe,EACf,IAAwB;IAExB,2EAA2E;IAC3E,MAAM,MAAM,GAAG,GAAG,CAAC,MAAO,CAAC;IAC3B,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,kBAAkB,IAAI,MAAM,CAAC;IAC3D,MAAM,cAAc,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAEpD,MAAM,OAAO,GAAG,KAAK,EACnB,OAAe,EACf,UAAkB,EACU,EAAE;QAC9B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC;YAC5C,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,MAAM;YACN,OAAO;YACP,SAAS,EAAE,OAAO,EAAE,0DAA0D;YAC9E,UAAU;YACV,UAAU;SACX,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC;IACtC,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,CAAC,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CACrD,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC"}
@@ -1,3 +0,0 @@
1
- export type { EpicCompletionDeps } from './epic-completion.js';
2
- export { epicCompletion } from './epic-completion.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/epic-completion/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { epicCompletion } from './epic-completion.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/epic-completion/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Feasibility check — evaluate whether a ticket can be
3
- * implemented as pure code changes.
4
- *
5
- * Skipped for rework tickets and when `--skip-feasibility` flag is set.
6
- * Returns structured results — no console output.
7
- */
8
- import type { RunContext } from '../../context.js';
9
- import type { ProgressStatus } from '../../../../types/progress.js';
10
- /** Ticket metadata passed to the feasibility check. */
11
- type FeasibilityTicket = {
12
- readonly key: string;
13
- readonly title: string;
14
- readonly description: string;
15
- };
16
- /** Result from the feasibility check function. */
17
- type FeasibilityCheckResult = {
18
- readonly feasible: boolean;
19
- readonly reason?: string;
20
- };
21
- /** Structured result of the feasibility phase. */
22
- type FeasibilityPhaseResult = {
23
- readonly ok: boolean;
24
- readonly skipped: boolean;
25
- readonly reason?: string;
26
- };
27
- /** Progress append function (pre-wired with fs + projectRoot by terminal). */
28
- type AppendFn = (opts: {
29
- readonly key: string;
30
- readonly summary: string;
31
- readonly status: ProgressStatus;
32
- }) => void;
33
- /** Injected dependencies for feasibility. */
34
- export type FeasibilityPhaseDeps = {
35
- /** Run the feasibility check. Pre-wired with Claude invocation. Async — spawns a subprocess. */
36
- readonly checkFeasibility: (ticket: FeasibilityTicket, model?: string) => Promise<FeasibilityCheckResult>;
37
- /** Append a progress entry. Pre-wired with progressFs + projectRoot. */
38
- readonly appendProgress: AppendFn;
39
- };
40
- /**
41
- * Evaluate whether a ticket is feasible as pure code changes.
42
- *
43
- * Skipped for rework tickets (already vetted) and when the
44
- * `--skip-feasibility` flag is set.
45
- *
46
- * @param ctx - Pipeline context (requires ticket from ticket-fetch).
47
- * @param deps - Injected dependencies.
48
- * @returns Structured result indicating feasibility or skip.
49
- */
50
- export declare function feasibilityPhase(ctx: RunContext, deps: FeasibilityPhaseDeps): Promise<FeasibilityPhaseResult>;
51
- export {};
52
- //# sourceMappingURL=feasibility.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feasibility.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/feasibility/feasibility.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D,uDAAuD;AACvD,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,kDAAkD;AAClD,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,kDAAkD;AAClD,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,8EAA8E;AAC9E,KAAK,QAAQ,GAAG,CAAC,IAAI,EAAE;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC,KAAK,IAAI,CAAC;AAEX,6CAA6C;AAC7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,gGAAgG;IAChG,QAAQ,CAAC,gBAAgB,EAAE,CACzB,MAAM,EAAE,iBAAiB,EACzB,KAAK,CAAC,EAAE,MAAM,KACX,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACrC,wEAAwE;IACxE,QAAQ,CAAC,cAAc,EAAE,QAAQ,CAAC;CACnC,CAAC;AAIF;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,UAAU,EACf,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,sBAAsB,CAAC,CA4BjC"}
@@ -1,34 +0,0 @@
1
- // ─── Phase ───────────────────────────────────────────────────────────────────
2
- /**
3
- * Evaluate whether a ticket is feasible as pure code changes.
4
- *
5
- * Skipped for rework tickets (already vetted) and when the
6
- * `--skip-feasibility` flag is set.
7
- *
8
- * @param ctx - Pipeline context (requires ticket from ticket-fetch).
9
- * @param deps - Injected dependencies.
10
- * @returns Structured result indicating feasibility or skip.
11
- */
12
- export async function feasibilityPhase(ctx, deps) {
13
- if (ctx.isRework === true || ctx.skipFeasibility) {
14
- return { ok: true, skipped: true };
15
- }
16
- // Safe: pipeline ordering guarantees prior phases populate these fields
17
- const ticket = ctx.ticket;
18
- const config = ctx.config;
19
- const result = await deps.checkFeasibility({ key: ticket.key, title: ticket.title, description: ticket.description }, config.env.CLANCY_MODEL);
20
- if (!result.feasible) {
21
- deps.appendProgress({
22
- key: ticket.key,
23
- summary: ticket.title,
24
- status: 'SKIPPED',
25
- });
26
- return {
27
- ok: false,
28
- skipped: false,
29
- reason: result.reason ?? 'not implementable as code changes',
30
- };
31
- }
32
- return { ok: true, skipped: false };
33
- }
34
- //# sourceMappingURL=feasibility.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feasibility.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/feasibility/feasibility.ts"],"names":[],"mappings":"AAkDA,gFAAgF;AAEhF;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,GAAe,EACf,IAA0B;IAE1B,IAAI,GAAG,CAAC,QAAQ,KAAK,IAAI,IAAI,GAAG,CAAC,eAAe,EAAE,CAAC;QACjD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACrC,CAAC;IAED,wEAAwE;IACxE,MAAM,MAAM,GAAG,GAAG,CAAC,MAAO,CAAC;IAC3B,MAAM,MAAM,GAAG,GAAG,CAAC,MAAO,CAAC;IAE3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CACxC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,EACzE,MAAM,CAAC,GAAG,CAAC,YAAY,CACxB,CAAC;IAEF,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QACrB,IAAI,CAAC,cAAc,CAAC;YAClB,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,OAAO,EAAE,MAAM,CAAC,KAAK;YACrB,MAAM,EAAE,SAAS;SAClB,CAAC,CAAC;QACH,OAAO;YACL,EAAE,EAAE,KAAK;YACT,OAAO,EAAE,KAAK;YACd,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,mCAAmC;SAC7D,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AACtC,CAAC"}
@@ -1,3 +0,0 @@
1
- export type { FeasibilityPhaseDeps } from './feasibility.js';
2
- export { feasibilityPhase } from './feasibility.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/feasibility/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { feasibilityPhase } from './feasibility.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/feasibility/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,26 +0,0 @@
1
- export type { BranchSetupDeps } from './branch-setup/index.js';
2
- export { branchSetup } from './branch-setup/index.js';
3
- export type { CleanupDeps } from './cleanup-phase/index.js';
4
- export { cleanupPhase } from './cleanup-phase/index.js';
5
- export type { CostPhaseDeps } from './cost-phase/index.js';
6
- export { costPhase } from './cost-phase/index.js';
7
- export type { DeliverPhaseDeps } from './deliver-phase/index.js';
8
- export { deliverPhase } from './deliver-phase/index.js';
9
- export { dryRun } from './dry-run/index.js';
10
- export type { EpicCompletionDeps } from './epic-completion/index.js';
11
- export { epicCompletion } from './epic-completion/index.js';
12
- export type { FeasibilityPhaseDeps } from './feasibility/index.js';
13
- export { feasibilityPhase } from './feasibility/index.js';
14
- export type { LockCheckDeps } from './lock-check/index.js';
15
- export { lockCheck } from './lock-check/index.js';
16
- export type { PrRetryDeps } from './pr-retry/index.js';
17
- export { prRetry } from './pr-retry/index.js';
18
- export type { PreflightPhaseDeps } from './preflight-phase/index.js';
19
- export { preflightPhase } from './preflight-phase/index.js';
20
- export type { ReworkDetectionDeps } from './rework-detection/index.js';
21
- export { reworkDetection } from './rework-detection/index.js';
22
- export type { TicketFetchDeps } from './ticket-fetch/index.js';
23
- export { ticketFetch } from './ticket-fetch/index.js';
24
- export type { TransitionDeps } from './transition/index.js';
25
- export { transition } from './transition/index.js';
26
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dev/pipeline/phases/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,14 +0,0 @@
1
- export { branchSetup } from './branch-setup/index.js';
2
- export { cleanupPhase } from './cleanup-phase/index.js';
3
- export { costPhase } from './cost-phase/index.js';
4
- export { deliverPhase } from './deliver-phase/index.js';
5
- export { dryRun } from './dry-run/index.js';
6
- export { epicCompletion } from './epic-completion/index.js';
7
- export { feasibilityPhase } from './feasibility/index.js';
8
- export { lockCheck } from './lock-check/index.js';
9
- export { prRetry } from './pr-retry/index.js';
10
- export { preflightPhase } from './preflight-phase/index.js';
11
- export { reworkDetection } from './rework-detection/index.js';
12
- export { ticketFetch } from './ticket-fetch/index.js';
13
- export { transition } from './transition/index.js';
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dev/pipeline/phases/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,3 +0,0 @@
1
- export type { LockCheckDeps } from './lock-check.js';
2
- export { lockCheck } from './lock-check.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/lock-check/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { lockCheck } from './lock-check.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/lock-check/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,55 +0,0 @@
1
- /**
2
- * Lock check — startup lock detection, stale cleanup, and resume.
3
- *
4
- * Returns structured results — no console output. The terminal layer
5
- * handles display. Decomposed into helpers to stay under 50-line limit.
6
- */
7
- import type { RunContext } from '../../context.js';
8
- import type { LockData, LockFs } from '../../../../dev/lifecycle/lock/lock.js';
9
- import type { ProgressFs } from '../../../../dev/lifecycle/progress/index.js';
10
- import type { ExecGit } from '../../../../shared/git-ops/index.js';
11
- /** Structured result of the lock-check phase. */
12
- type LockCheckResult = {
13
- /** `continue` = proceed to next phase, `abort` = stop, `resumed` = session resumed. */
14
- readonly action: 'continue' | 'abort' | 'resumed';
15
- /** Human-readable reason for the action. */
16
- readonly reason?: string;
17
- };
18
- /** Resume detection info returned by detectResume. */
19
- type ResumeInfo = {
20
- readonly branch: string;
21
- readonly hasUncommitted: boolean;
22
- readonly hasUnpushed: boolean;
23
- readonly alreadyDelivered: boolean;
24
- };
25
- /** Resume detection options. */
26
- type DetectResumeOpts = {
27
- readonly exec: ExecGit;
28
- readonly progressFs: ProgressFs;
29
- readonly projectRoot: string;
30
- readonly lock: LockData;
31
- };
32
- /** Resume execution result. */
33
- type ResumeExecResult = {
34
- readonly ok: boolean;
35
- };
36
- /** Injected dependencies for lock-check. */
37
- export type LockCheckDeps = {
38
- readonly lockFs: LockFs;
39
- readonly exec: ExecGit;
40
- readonly progressFs: ProgressFs;
41
- readonly detectResume: (opts: DetectResumeOpts) => ResumeInfo | undefined;
42
- readonly executeResume: (opts: DetectResumeOpts & {
43
- readonly resumeInfo: ResumeInfo;
44
- }) => Promise<ResumeExecResult>;
45
- };
46
- /**
47
- * Check for an existing lock file and handle stale/active sessions.
48
- *
49
- * @param ctx - Pipeline context.
50
- * @param deps - Injected dependencies.
51
- * @returns Structured result indicating whether to continue, abort, or mark as resumed.
52
- */
53
- export declare function lockCheck(ctx: RunContext, deps: LockCheckDeps): Promise<LockCheckResult>;
54
- export {};
55
- //# sourceMappingURL=lock-check.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lock-check.d.ts","sourceRoot":"","sources":["../../../../../src/dev/pipeline/phases/lock-check/lock-check.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,M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