@generacy-ai/workflow-engine 0.0.0-preview-20260304013206

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 (347) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +265 -0
  3. package/dist/actions/base-action.d.ts +63 -0
  4. package/dist/actions/base-action.d.ts.map +1 -0
  5. package/dist/actions/base-action.js +130 -0
  6. package/dist/actions/base-action.js.map +1 -0
  7. package/dist/actions/builtin/agent-invoke.d.ts +16 -0
  8. package/dist/actions/builtin/agent-invoke.d.ts.map +1 -0
  9. package/dist/actions/builtin/agent-invoke.js +108 -0
  10. package/dist/actions/builtin/agent-invoke.js.map +1 -0
  11. package/dist/actions/builtin/humancy-api-handler.d.ts +191 -0
  12. package/dist/actions/builtin/humancy-api-handler.d.ts.map +1 -0
  13. package/dist/actions/builtin/humancy-api-handler.js +521 -0
  14. package/dist/actions/builtin/humancy-api-handler.js.map +1 -0
  15. package/dist/actions/builtin/humancy-review.d.ts +83 -0
  16. package/dist/actions/builtin/humancy-review.d.ts.map +1 -0
  17. package/dist/actions/builtin/humancy-review.js +250 -0
  18. package/dist/actions/builtin/humancy-review.js.map +1 -0
  19. package/dist/actions/builtin/pr-create.d.ts +16 -0
  20. package/dist/actions/builtin/pr-create.d.ts.map +1 -0
  21. package/dist/actions/builtin/pr-create.js +110 -0
  22. package/dist/actions/builtin/pr-create.js.map +1 -0
  23. package/dist/actions/builtin/shell.d.ts +16 -0
  24. package/dist/actions/builtin/shell.d.ts.map +1 -0
  25. package/dist/actions/builtin/shell.js +80 -0
  26. package/dist/actions/builtin/shell.js.map +1 -0
  27. package/dist/actions/builtin/speckit/index.d.ts +47 -0
  28. package/dist/actions/builtin/speckit/index.d.ts.map +1 -0
  29. package/dist/actions/builtin/speckit/index.js +347 -0
  30. package/dist/actions/builtin/speckit/index.js.map +1 -0
  31. package/dist/actions/builtin/speckit/lib/feature.d.ts +17 -0
  32. package/dist/actions/builtin/speckit/lib/feature.d.ts.map +1 -0
  33. package/dist/actions/builtin/speckit/lib/feature.js +430 -0
  34. package/dist/actions/builtin/speckit/lib/feature.js.map +1 -0
  35. package/dist/actions/builtin/speckit/lib/fs.d.ts +62 -0
  36. package/dist/actions/builtin/speckit/lib/fs.d.ts.map +1 -0
  37. package/dist/actions/builtin/speckit/lib/fs.js +181 -0
  38. package/dist/actions/builtin/speckit/lib/fs.js.map +1 -0
  39. package/dist/actions/builtin/speckit/lib/paths.d.ts +7 -0
  40. package/dist/actions/builtin/speckit/lib/paths.d.ts.map +1 -0
  41. package/dist/actions/builtin/speckit/lib/paths.js +161 -0
  42. package/dist/actions/builtin/speckit/lib/paths.js.map +1 -0
  43. package/dist/actions/builtin/speckit/lib/prereqs.d.ts +8 -0
  44. package/dist/actions/builtin/speckit/lib/prereqs.d.ts.map +1 -0
  45. package/dist/actions/builtin/speckit/lib/prereqs.js +194 -0
  46. package/dist/actions/builtin/speckit/lib/prereqs.js.map +1 -0
  47. package/dist/actions/builtin/speckit/lib/stream-batcher.d.ts +14 -0
  48. package/dist/actions/builtin/speckit/lib/stream-batcher.d.ts.map +1 -0
  49. package/dist/actions/builtin/speckit/lib/stream-batcher.js +31 -0
  50. package/dist/actions/builtin/speckit/lib/stream-batcher.js.map +1 -0
  51. package/dist/actions/builtin/speckit/lib/templates.d.ts +15 -0
  52. package/dist/actions/builtin/speckit/lib/templates.d.ts.map +1 -0
  53. package/dist/actions/builtin/speckit/lib/templates.js +176 -0
  54. package/dist/actions/builtin/speckit/lib/templates.js.map +1 -0
  55. package/dist/actions/builtin/speckit/operations/check-prereqs.d.ts +11 -0
  56. package/dist/actions/builtin/speckit/operations/check-prereqs.d.ts.map +1 -0
  57. package/dist/actions/builtin/speckit/operations/check-prereqs.js +22 -0
  58. package/dist/actions/builtin/speckit/operations/check-prereqs.js.map +1 -0
  59. package/dist/actions/builtin/speckit/operations/clarify.d.ts +7 -0
  60. package/dist/actions/builtin/speckit/operations/clarify.d.ts.map +1 -0
  61. package/dist/actions/builtin/speckit/operations/clarify.js +302 -0
  62. package/dist/actions/builtin/speckit/operations/clarify.js.map +1 -0
  63. package/dist/actions/builtin/speckit/operations/copy-template.d.ts +11 -0
  64. package/dist/actions/builtin/speckit/operations/copy-template.d.ts.map +1 -0
  65. package/dist/actions/builtin/speckit/operations/copy-template.js +23 -0
  66. package/dist/actions/builtin/speckit/operations/copy-template.js.map +1 -0
  67. package/dist/actions/builtin/speckit/operations/create-feature.d.ts +11 -0
  68. package/dist/actions/builtin/speckit/operations/create-feature.d.ts.map +1 -0
  69. package/dist/actions/builtin/speckit/operations/create-feature.js +25 -0
  70. package/dist/actions/builtin/speckit/operations/create-feature.js.map +1 -0
  71. package/dist/actions/builtin/speckit/operations/get-paths.d.ts +11 -0
  72. package/dist/actions/builtin/speckit/operations/get-paths.d.ts.map +1 -0
  73. package/dist/actions/builtin/speckit/operations/get-paths.js +17 -0
  74. package/dist/actions/builtin/speckit/operations/get-paths.js.map +1 -0
  75. package/dist/actions/builtin/speckit/operations/implement.d.ts +7 -0
  76. package/dist/actions/builtin/speckit/operations/implement.d.ts.map +1 -0
  77. package/dist/actions/builtin/speckit/operations/implement.js +246 -0
  78. package/dist/actions/builtin/speckit/operations/implement.js.map +1 -0
  79. package/dist/actions/builtin/speckit/operations/plan.d.ts +7 -0
  80. package/dist/actions/builtin/speckit/operations/plan.d.ts.map +1 -0
  81. package/dist/actions/builtin/speckit/operations/plan.js +253 -0
  82. package/dist/actions/builtin/speckit/operations/plan.js.map +1 -0
  83. package/dist/actions/builtin/speckit/operations/specify.d.ts +7 -0
  84. package/dist/actions/builtin/speckit/operations/specify.d.ts.map +1 -0
  85. package/dist/actions/builtin/speckit/operations/specify.js +178 -0
  86. package/dist/actions/builtin/speckit/operations/specify.js.map +1 -0
  87. package/dist/actions/builtin/speckit/operations/tasks-to-issues.d.ts +42 -0
  88. package/dist/actions/builtin/speckit/operations/tasks-to-issues.d.ts.map +1 -0
  89. package/dist/actions/builtin/speckit/operations/tasks-to-issues.js +386 -0
  90. package/dist/actions/builtin/speckit/operations/tasks-to-issues.js.map +1 -0
  91. package/dist/actions/builtin/speckit/operations/tasks.d.ts +7 -0
  92. package/dist/actions/builtin/speckit/operations/tasks.d.ts.map +1 -0
  93. package/dist/actions/builtin/speckit/operations/tasks.js +234 -0
  94. package/dist/actions/builtin/speckit/operations/tasks.js.map +1 -0
  95. package/dist/actions/builtin/speckit/types.d.ts +268 -0
  96. package/dist/actions/builtin/speckit/types.d.ts.map +1 -0
  97. package/dist/actions/builtin/speckit/types.js +11 -0
  98. package/dist/actions/builtin/speckit/types.js.map +1 -0
  99. package/dist/actions/builtin/verification-check.d.ts +16 -0
  100. package/dist/actions/builtin/verification-check.d.ts.map +1 -0
  101. package/dist/actions/builtin/verification-check.js +99 -0
  102. package/dist/actions/builtin/verification-check.js.map +1 -0
  103. package/dist/actions/builtin/workspace-prepare.d.ts +16 -0
  104. package/dist/actions/builtin/workspace-prepare.d.ts.map +1 -0
  105. package/dist/actions/builtin/workspace-prepare.js +108 -0
  106. package/dist/actions/builtin/workspace-prepare.js.map +1 -0
  107. package/dist/actions/cli-utils.d.ts +76 -0
  108. package/dist/actions/cli-utils.d.ts.map +1 -0
  109. package/dist/actions/cli-utils.js +278 -0
  110. package/dist/actions/cli-utils.js.map +1 -0
  111. package/dist/actions/epic/check-completion.d.ts +14 -0
  112. package/dist/actions/epic/check-completion.d.ts.map +1 -0
  113. package/dist/actions/epic/check-completion.js +57 -0
  114. package/dist/actions/epic/check-completion.js.map +1 -0
  115. package/dist/actions/epic/close.d.ts +18 -0
  116. package/dist/actions/epic/close.d.ts.map +1 -0
  117. package/dist/actions/epic/close.js +76 -0
  118. package/dist/actions/epic/close.js.map +1 -0
  119. package/dist/actions/epic/create-pr.d.ts +22 -0
  120. package/dist/actions/epic/create-pr.d.ts.map +1 -0
  121. package/dist/actions/epic/create-pr.js +140 -0
  122. package/dist/actions/epic/create-pr.js.map +1 -0
  123. package/dist/actions/epic/dispatch-children.d.ts +16 -0
  124. package/dist/actions/epic/dispatch-children.d.ts.map +1 -0
  125. package/dist/actions/epic/dispatch-children.js +95 -0
  126. package/dist/actions/epic/dispatch-children.js.map +1 -0
  127. package/dist/actions/epic/find-children.d.ts +16 -0
  128. package/dist/actions/epic/find-children.d.ts.map +1 -0
  129. package/dist/actions/epic/find-children.js +92 -0
  130. package/dist/actions/epic/find-children.js.map +1 -0
  131. package/dist/actions/epic/index.d.ts +20 -0
  132. package/dist/actions/epic/index.d.ts.map +1 -0
  133. package/dist/actions/epic/index.js +35 -0
  134. package/dist/actions/epic/index.js.map +1 -0
  135. package/dist/actions/epic/post-tasks-summary.d.ts +18 -0
  136. package/dist/actions/epic/post-tasks-summary.d.ts.map +1 -0
  137. package/dist/actions/epic/post-tasks-summary.js +123 -0
  138. package/dist/actions/epic/post-tasks-summary.js.map +1 -0
  139. package/dist/actions/epic/update-status.d.ts +22 -0
  140. package/dist/actions/epic/update-status.d.ts.map +1 -0
  141. package/dist/actions/epic/update-status.js +105 -0
  142. package/dist/actions/epic/update-status.js.map +1 -0
  143. package/dist/actions/github/add-comment.d.ts +14 -0
  144. package/dist/actions/github/add-comment.d.ts.map +1 -0
  145. package/dist/actions/github/add-comment.js +44 -0
  146. package/dist/actions/github/add-comment.js.map +1 -0
  147. package/dist/actions/github/client/gh-cli.d.ts +68 -0
  148. package/dist/actions/github/client/gh-cli.d.ts.map +1 -0
  149. package/dist/actions/github/client/gh-cli.js +781 -0
  150. package/dist/actions/github/client/gh-cli.js.map +1 -0
  151. package/dist/actions/github/client/index.d.ts +12 -0
  152. package/dist/actions/github/client/index.d.ts.map +1 -0
  153. package/dist/actions/github/client/index.js +10 -0
  154. package/dist/actions/github/client/index.js.map +1 -0
  155. package/dist/actions/github/client/interface.d.ts +270 -0
  156. package/dist/actions/github/client/interface.d.ts.map +1 -0
  157. package/dist/actions/github/client/interface.js +2 -0
  158. package/dist/actions/github/client/interface.js.map +1 -0
  159. package/dist/actions/github/commit-and-push.d.ts +19 -0
  160. package/dist/actions/github/commit-and-push.d.ts.map +1 -0
  161. package/dist/actions/github/commit-and-push.js +86 -0
  162. package/dist/actions/github/commit-and-push.js.map +1 -0
  163. package/dist/actions/github/create-draft-pr.d.ts +18 -0
  164. package/dist/actions/github/create-draft-pr.d.ts.map +1 -0
  165. package/dist/actions/github/create-draft-pr.js +76 -0
  166. package/dist/actions/github/create-draft-pr.js.map +1 -0
  167. package/dist/actions/github/get-context.d.ts +23 -0
  168. package/dist/actions/github/get-context.d.ts.map +1 -0
  169. package/dist/actions/github/get-context.js +109 -0
  170. package/dist/actions/github/get-context.js.map +1 -0
  171. package/dist/actions/github/index.d.ts +32 -0
  172. package/dist/actions/github/index.d.ts.map +1 -0
  173. package/dist/actions/github/index.js +67 -0
  174. package/dist/actions/github/index.js.map +1 -0
  175. package/dist/actions/github/label-definitions.d.ts +19 -0
  176. package/dist/actions/github/label-definitions.d.ts.map +1 -0
  177. package/dist/actions/github/label-definitions.js +71 -0
  178. package/dist/actions/github/label-definitions.js.map +1 -0
  179. package/dist/actions/github/mark-pr-ready.d.ts +14 -0
  180. package/dist/actions/github/mark-pr-ready.d.ts.map +1 -0
  181. package/dist/actions/github/mark-pr-ready.js +43 -0
  182. package/dist/actions/github/mark-pr-ready.js.map +1 -0
  183. package/dist/actions/github/merge-from-base.d.ts +15 -0
  184. package/dist/actions/github/merge-from-base.d.ts.map +1 -0
  185. package/dist/actions/github/merge-from-base.js +120 -0
  186. package/dist/actions/github/merge-from-base.js.map +1 -0
  187. package/dist/actions/github/preflight.d.ts +36 -0
  188. package/dist/actions/github/preflight.d.ts.map +1 -0
  189. package/dist/actions/github/preflight.js +292 -0
  190. package/dist/actions/github/preflight.js.map +1 -0
  191. package/dist/actions/github/read-pr-feedback.d.ts +14 -0
  192. package/dist/actions/github/read-pr-feedback.d.ts.map +1 -0
  193. package/dist/actions/github/read-pr-feedback.js +53 -0
  194. package/dist/actions/github/read-pr-feedback.js.map +1 -0
  195. package/dist/actions/github/respond-pr-feedback.d.ts +14 -0
  196. package/dist/actions/github/respond-pr-feedback.d.ts.map +1 -0
  197. package/dist/actions/github/respond-pr-feedback.js +58 -0
  198. package/dist/actions/github/respond-pr-feedback.js.map +1 -0
  199. package/dist/actions/github/review-changes.d.ts +19 -0
  200. package/dist/actions/github/review-changes.d.ts.map +1 -0
  201. package/dist/actions/github/review-changes.js +95 -0
  202. package/dist/actions/github/review-changes.js.map +1 -0
  203. package/dist/actions/github/sync-labels.d.ts +14 -0
  204. package/dist/actions/github/sync-labels.d.ts.map +1 -0
  205. package/dist/actions/github/sync-labels.js +81 -0
  206. package/dist/actions/github/sync-labels.js.map +1 -0
  207. package/dist/actions/github/update-pr.d.ts +14 -0
  208. package/dist/actions/github/update-pr.d.ts.map +1 -0
  209. package/dist/actions/github/update-pr.js +63 -0
  210. package/dist/actions/github/update-pr.js.map +1 -0
  211. package/dist/actions/index.d.ts +109 -0
  212. package/dist/actions/index.d.ts.map +1 -0
  213. package/dist/actions/index.js +233 -0
  214. package/dist/actions/index.js.map +1 -0
  215. package/dist/actions/workflow/check-gate.d.ts +15 -0
  216. package/dist/actions/workflow/check-gate.d.ts.map +1 -0
  217. package/dist/actions/workflow/check-gate.js +75 -0
  218. package/dist/actions/workflow/check-gate.js.map +1 -0
  219. package/dist/actions/workflow/index.d.ts +21 -0
  220. package/dist/actions/workflow/index.d.ts.map +1 -0
  221. package/dist/actions/workflow/index.js +31 -0
  222. package/dist/actions/workflow/index.js.map +1 -0
  223. package/dist/actions/workflow/update-phase.d.ts +15 -0
  224. package/dist/actions/workflow/update-phase.d.ts.map +1 -0
  225. package/dist/actions/workflow/update-phase.js +143 -0
  226. package/dist/actions/workflow/update-phase.js.map +1 -0
  227. package/dist/actions/workflow/update-stage.d.ts +19 -0
  228. package/dist/actions/workflow/update-stage.d.ts.map +1 -0
  229. package/dist/actions/workflow/update-stage.js +137 -0
  230. package/dist/actions/workflow/update-stage.js.map +1 -0
  231. package/dist/errors/base-workflow-not-found.d.ts +10 -0
  232. package/dist/errors/base-workflow-not-found.d.ts.map +1 -0
  233. package/dist/errors/base-workflow-not-found.js +18 -0
  234. package/dist/errors/base-workflow-not-found.js.map +1 -0
  235. package/dist/errors/circular-extends.d.ts +9 -0
  236. package/dist/errors/circular-extends.d.ts.map +1 -0
  237. package/dist/errors/circular-extends.js +13 -0
  238. package/dist/errors/circular-extends.js.map +1 -0
  239. package/dist/errors/correlation-timeout.d.ts +9 -0
  240. package/dist/errors/correlation-timeout.d.ts.map +1 -0
  241. package/dist/errors/correlation-timeout.js +13 -0
  242. package/dist/errors/correlation-timeout.js.map +1 -0
  243. package/dist/errors/workflow-override.d.ts +9 -0
  244. package/dist/errors/workflow-override.d.ts.map +1 -0
  245. package/dist/errors/workflow-override.js +12 -0
  246. package/dist/errors/workflow-override.js.map +1 -0
  247. package/dist/executor/events.d.ts +55 -0
  248. package/dist/executor/events.d.ts.map +1 -0
  249. package/dist/executor/events.js +72 -0
  250. package/dist/executor/events.js.map +1 -0
  251. package/dist/executor/gate-handler.d.ts +55 -0
  252. package/dist/executor/gate-handler.d.ts.map +1 -0
  253. package/dist/executor/gate-handler.js +139 -0
  254. package/dist/executor/gate-handler.js.map +1 -0
  255. package/dist/executor/index.d.ts +140 -0
  256. package/dist/executor/index.d.ts.map +1 -0
  257. package/dist/executor/index.js +681 -0
  258. package/dist/executor/index.js.map +1 -0
  259. package/dist/index.d.ts +24 -0
  260. package/dist/index.d.ts.map +1 -0
  261. package/dist/index.js +34 -0
  262. package/dist/index.js.map +1 -0
  263. package/dist/interpolation/context.d.ts +117 -0
  264. package/dist/interpolation/context.d.ts.map +1 -0
  265. package/dist/interpolation/context.js +256 -0
  266. package/dist/interpolation/context.js.map +1 -0
  267. package/dist/interpolation/index.d.ts +76 -0
  268. package/dist/interpolation/index.d.ts.map +1 -0
  269. package/dist/interpolation/index.js +264 -0
  270. package/dist/interpolation/index.js.map +1 -0
  271. package/dist/loader/extends.d.ts +48 -0
  272. package/dist/loader/extends.d.ts.map +1 -0
  273. package/dist/loader/extends.js +140 -0
  274. package/dist/loader/extends.js.map +1 -0
  275. package/dist/loader/index.d.ts +50 -0
  276. package/dist/loader/index.d.ts.map +1 -0
  277. package/dist/loader/index.js +190 -0
  278. package/dist/loader/index.js.map +1 -0
  279. package/dist/loader/schema.d.ts +506 -0
  280. package/dist/loader/schema.d.ts.map +1 -0
  281. package/dist/loader/schema.js +63 -0
  282. package/dist/loader/schema.js.map +1 -0
  283. package/dist/loader/validator.d.ts +33 -0
  284. package/dist/loader/validator.d.ts.map +1 -0
  285. package/dist/loader/validator.js +135 -0
  286. package/dist/loader/validator.js.map +1 -0
  287. package/dist/registry/index.d.ts +42 -0
  288. package/dist/registry/index.d.ts.map +1 -0
  289. package/dist/registry/index.js +77 -0
  290. package/dist/registry/index.js.map +1 -0
  291. package/dist/retry/index.d.ts +37 -0
  292. package/dist/retry/index.d.ts.map +1 -0
  293. package/dist/retry/index.js +225 -0
  294. package/dist/retry/index.js.map +1 -0
  295. package/dist/retry/strategies.d.ts +74 -0
  296. package/dist/retry/strategies.d.ts.map +1 -0
  297. package/dist/retry/strategies.js +136 -0
  298. package/dist/retry/strategies.js.map +1 -0
  299. package/dist/store/filesystem-store.d.ts +52 -0
  300. package/dist/store/filesystem-store.d.ts.map +1 -0
  301. package/dist/store/filesystem-store.js +230 -0
  302. package/dist/store/filesystem-store.js.map +1 -0
  303. package/dist/store/index.d.ts +7 -0
  304. package/dist/store/index.d.ts.map +1 -0
  305. package/dist/store/index.js +6 -0
  306. package/dist/store/index.js.map +1 -0
  307. package/dist/types/action.d.ts +358 -0
  308. package/dist/types/action.d.ts.map +1 -0
  309. package/dist/types/action.js +96 -0
  310. package/dist/types/action.js.map +1 -0
  311. package/dist/types/events.d.ts +25 -0
  312. package/dist/types/events.d.ts.map +1 -0
  313. package/dist/types/events.js +6 -0
  314. package/dist/types/events.js.map +1 -0
  315. package/dist/types/execution.d.ts +145 -0
  316. package/dist/types/execution.d.ts.map +1 -0
  317. package/dist/types/execution.js +2 -0
  318. package/dist/types/execution.js.map +1 -0
  319. package/dist/types/gate.d.ts +98 -0
  320. package/dist/types/gate.d.ts.map +1 -0
  321. package/dist/types/gate.js +41 -0
  322. package/dist/types/gate.js.map +1 -0
  323. package/dist/types/github.d.ts +706 -0
  324. package/dist/types/github.d.ts.map +1 -0
  325. package/dist/types/github.js +6 -0
  326. package/dist/types/github.js.map +1 -0
  327. package/dist/types/index.d.ts +17 -0
  328. package/dist/types/index.d.ts.map +1 -0
  329. package/dist/types/index.js +8 -0
  330. package/dist/types/index.js.map +1 -0
  331. package/dist/types/logger.d.ts +60 -0
  332. package/dist/types/logger.d.ts.map +1 -0
  333. package/dist/types/logger.js +66 -0
  334. package/dist/types/logger.js.map +1 -0
  335. package/dist/types/retry.d.ts +36 -0
  336. package/dist/types/retry.d.ts.map +1 -0
  337. package/dist/types/retry.js +6 -0
  338. package/dist/types/retry.js.map +1 -0
  339. package/dist/types/store.d.ts +88 -0
  340. package/dist/types/store.d.ts.map +1 -0
  341. package/dist/types/store.js +6 -0
  342. package/dist/types/store.js.map +1 -0
  343. package/dist/types/workflow.d.ts +105 -0
  344. package/dist/types/workflow.d.ts.map +1 -0
  345. package/dist/types/workflow.js +6 -0
  346. package/dist/types/workflow.js.map +1 -0
  347. package/package.json +69 -0
@@ -0,0 +1,706 @@
1
+ /**
2
+ * GitHub types for workflow actions.
3
+ * Defines interfaces for GitHub entities used by github.*, workflow.*, and epic.* actions.
4
+ */
5
+ /**
6
+ * GitHub label representation
7
+ */
8
+ export interface Label {
9
+ name: string;
10
+ color: string;
11
+ description?: string;
12
+ }
13
+ /**
14
+ * GitHub milestone representation
15
+ */
16
+ export interface Milestone {
17
+ number: number;
18
+ title: string;
19
+ state: 'open' | 'closed';
20
+ }
21
+ /**
22
+ * GitHub issue representation
23
+ */
24
+ export interface Issue {
25
+ number: number;
26
+ title: string;
27
+ body: string;
28
+ state: 'open' | 'closed';
29
+ labels: Label[];
30
+ assignees: string[];
31
+ milestone?: Milestone;
32
+ created_at: string;
33
+ updated_at: string;
34
+ }
35
+ /**
36
+ * Branch reference for PRs
37
+ */
38
+ export interface BranchRef {
39
+ ref: string;
40
+ sha: string;
41
+ repo: string;
42
+ }
43
+ /**
44
+ * GitHub pull request representation
45
+ */
46
+ export interface PullRequest {
47
+ number: number;
48
+ title: string;
49
+ body: string;
50
+ state: 'open' | 'closed' | 'merged';
51
+ draft: boolean;
52
+ head: BranchRef;
53
+ base: BranchRef;
54
+ labels: Label[];
55
+ mergeable?: boolean;
56
+ created_at: string;
57
+ updated_at: string;
58
+ }
59
+ /**
60
+ * Issue or PR comment representation
61
+ */
62
+ export interface Comment {
63
+ id: number;
64
+ body: string;
65
+ author: string;
66
+ created_at: string;
67
+ updated_at: string;
68
+ path?: string;
69
+ line?: number;
70
+ in_reply_to_id?: number;
71
+ resolved?: boolean;
72
+ }
73
+ /**
74
+ * Review gate types
75
+ */
76
+ export type ReviewGate = 'spec-review' | 'clarification' | 'clarification-review' | 'plan-review' | 'tasks-review' | 'implementation-review' | 'manual-validation' | 'address-pr-feedback' | 'children-complete';
77
+ /**
78
+ * Core workflow phases
79
+ */
80
+ export type CorePhase = 'specify' | 'clarify' | 'plan' | 'tasks' | 'implement' | 'validate';
81
+ /**
82
+ * Workflow stages for stage comments
83
+ */
84
+ export type WorkflowStage = 'specification' | 'planning' | 'implementation';
85
+ /**
86
+ * Label status tracking for workflow
87
+ */
88
+ export interface LabelStatus {
89
+ currentLabels: string[];
90
+ configuredGates: ReviewGate[];
91
+ waitingFor: string[];
92
+ completed: string[];
93
+ blockedByGate: boolean;
94
+ blockingGate?: string;
95
+ }
96
+ /**
97
+ * Stage progress item for stage comments
98
+ */
99
+ export interface StageProgress {
100
+ command: string;
101
+ status: 'pending' | 'in_progress' | 'complete';
102
+ summary?: string;
103
+ }
104
+ /**
105
+ * Stage comment data structure
106
+ */
107
+ export interface StageCommentData {
108
+ issue_number: number;
109
+ stage: WorkflowStage;
110
+ status: 'in_progress' | 'complete' | 'blocked';
111
+ progress: StageProgress[];
112
+ branch?: string;
113
+ pr_number?: number;
114
+ next_step?: string;
115
+ blocked_reason?: string;
116
+ }
117
+ /**
118
+ * Epic child issue summary
119
+ */
120
+ export interface EpicChild {
121
+ issue_number: number;
122
+ title: string;
123
+ state: 'open' | 'closed';
124
+ pr_merged: boolean;
125
+ labels: string[];
126
+ }
127
+ /**
128
+ * Epic context information
129
+ */
130
+ export interface EpicContext {
131
+ is_epic: boolean;
132
+ is_epic_child: boolean;
133
+ parent_epic_number?: number;
134
+ parent_epic_branch?: string;
135
+ children?: EpicChild[];
136
+ }
137
+ /**
138
+ * Epic completion status
139
+ */
140
+ export interface EpicCompletionStatus {
141
+ percentage: number;
142
+ ready_for_pr: boolean;
143
+ total_children: number;
144
+ completed_children: number;
145
+ in_progress_children: number;
146
+ blocked_children: number;
147
+ children: EpicChild[];
148
+ }
149
+ /**
150
+ * Branch information
151
+ */
152
+ export interface BranchInfo {
153
+ name: string;
154
+ issueNumber?: string;
155
+ shortName?: string;
156
+ isRemote: boolean;
157
+ lastCommitDate?: string;
158
+ }
159
+ /**
160
+ * Branch lookup result
161
+ */
162
+ export interface BranchLookupResult {
163
+ found: boolean;
164
+ branches: BranchInfo[];
165
+ recommended?: BranchInfo;
166
+ has_multiple: boolean;
167
+ }
168
+ /**
169
+ * Speckit artifact status
170
+ */
171
+ export interface SpeckitStatus {
172
+ spec_exists: boolean;
173
+ plan_exists: boolean;
174
+ tasks_exists: boolean;
175
+ }
176
+ /**
177
+ * Cleaned labels result
178
+ */
179
+ export interface CleanedLabels {
180
+ cleaned: string[];
181
+ failed: string[];
182
+ skipped: string[];
183
+ }
184
+ /**
185
+ * github.preflight input
186
+ */
187
+ export interface PreflightInput {
188
+ issue_url: string;
189
+ expected_branch?: string;
190
+ }
191
+ /**
192
+ * github.preflight output
193
+ */
194
+ export interface PreflightOutput {
195
+ issue_number: number;
196
+ issue_title: string;
197
+ issue_body: string;
198
+ issue_type: 'feature' | 'bug' | 'epic' | 'unknown';
199
+ issue_labels: string[];
200
+ current_branch: string;
201
+ expected_branch: string;
202
+ branch_exists: boolean;
203
+ on_correct_branch: boolean;
204
+ pr_exists: boolean;
205
+ pr_number?: number;
206
+ uncommitted_changes: boolean;
207
+ unresolved_comments: number;
208
+ speckit_status: SpeckitStatus;
209
+ label_status: LabelStatus;
210
+ existing_branches?: BranchLookupResult;
211
+ epic_context: EpicContext;
212
+ next_command?: string;
213
+ artifact_warnings: string[];
214
+ cleaned_labels?: CleanedLabels;
215
+ }
216
+ /**
217
+ * github.get_context input
218
+ */
219
+ export interface GetContextInput {
220
+ issue_number: number;
221
+ parent_epic_number?: number;
222
+ issue_body?: string;
223
+ }
224
+ /**
225
+ * github.get_context output
226
+ */
227
+ export interface GetContextOutput {
228
+ spec?: string;
229
+ plan?: string;
230
+ tasks?: string;
231
+ phase: CorePhase;
232
+ feature_dir: string;
233
+ epic_context?: {
234
+ parent_spec?: string;
235
+ parent_plan?: string;
236
+ parent_tasks?: string;
237
+ };
238
+ }
239
+ /**
240
+ * github.review_changes input
241
+ */
242
+ export interface ReviewChangesInput {
243
+ include_untracked?: boolean;
244
+ }
245
+ /**
246
+ * File change info
247
+ */
248
+ export interface FileChange {
249
+ path: string;
250
+ status: 'modified' | 'added' | 'deleted' | 'renamed' | 'untracked';
251
+ staged: boolean;
252
+ }
253
+ /**
254
+ * github.review_changes output
255
+ */
256
+ export interface ReviewChangesOutput {
257
+ has_changes: boolean;
258
+ files: FileChange[];
259
+ summary: string;
260
+ }
261
+ /**
262
+ * github.commit_and_push input
263
+ */
264
+ export interface CommitAndPushInput {
265
+ message: string;
266
+ issue_number: number;
267
+ files?: string[];
268
+ }
269
+ /**
270
+ * github.commit_and_push output
271
+ */
272
+ export interface CommitAndPushOutput {
273
+ commit_sha: string;
274
+ pushed: boolean;
275
+ files_committed: string[];
276
+ }
277
+ /**
278
+ * Conflict information for merge operations
279
+ */
280
+ export interface ConflictInfo {
281
+ path: string;
282
+ ours: string;
283
+ theirs: string;
284
+ resolved?: boolean;
285
+ }
286
+ /**
287
+ * github.merge_from_base input
288
+ */
289
+ export interface MergeFromBaseInput {
290
+ abort_on_conflict?: boolean;
291
+ auto_resolve?: boolean;
292
+ parent_epic_number?: number;
293
+ }
294
+ /**
295
+ * github.merge_from_base output
296
+ */
297
+ export interface MergeFromBaseOutput {
298
+ success: boolean;
299
+ base_branch: string;
300
+ merged_from_epic: boolean;
301
+ commits_merged: number;
302
+ already_up_to_date: boolean;
303
+ conflicts_resolved: number;
304
+ conflicts_remaining: ConflictInfo[];
305
+ stash_created: boolean;
306
+ summary: string;
307
+ }
308
+ /**
309
+ * github.create_draft_pr input
310
+ */
311
+ export interface CreateDraftPRInput {
312
+ issue_number: number;
313
+ title: string;
314
+ body?: string;
315
+ base_branch?: string;
316
+ }
317
+ /**
318
+ * github.create_draft_pr output
319
+ */
320
+ export interface CreateDraftPROutput {
321
+ pr_number: number;
322
+ pr_url: string;
323
+ state: 'draft';
324
+ head_branch: string;
325
+ base_branch: string;
326
+ }
327
+ /**
328
+ * github.mark_pr_ready input
329
+ */
330
+ export interface MarkPRReadyInput {
331
+ pr_number: number;
332
+ }
333
+ /**
334
+ * github.mark_pr_ready output
335
+ */
336
+ export interface MarkPRReadyOutput {
337
+ success: boolean;
338
+ pr_number: number;
339
+ pr_url: string;
340
+ }
341
+ /**
342
+ * github.update_pr input
343
+ */
344
+ export interface UpdatePRInput {
345
+ issue_number?: number;
346
+ pr_number?: number;
347
+ title?: string;
348
+ body?: string;
349
+ }
350
+ /**
351
+ * github.update_pr output
352
+ */
353
+ export interface UpdatePROutput {
354
+ pr_number: number;
355
+ pr_url: string;
356
+ updated: boolean;
357
+ }
358
+ /**
359
+ * github.read_pr_feedback input
360
+ */
361
+ export interface ReadPRFeedbackInput {
362
+ pr_number: number;
363
+ include_resolved?: boolean;
364
+ }
365
+ /**
366
+ * github.read_pr_feedback output
367
+ */
368
+ export interface ReadPRFeedbackOutput {
369
+ comments: Comment[];
370
+ has_unresolved: boolean;
371
+ unresolved_count: number;
372
+ }
373
+ /**
374
+ * Response to post for PR feedback
375
+ */
376
+ export interface FeedbackResponse {
377
+ comment_id: number;
378
+ body: string;
379
+ }
380
+ /**
381
+ * github.respond_pr_feedback input
382
+ */
383
+ export interface RespondPRFeedbackInput {
384
+ pr_number: number;
385
+ responses: FeedbackResponse[];
386
+ }
387
+ /**
388
+ * Posted response result
389
+ */
390
+ export interface PostedResponse {
391
+ comment_id: number;
392
+ reply_id: number;
393
+ success: boolean;
394
+ }
395
+ /**
396
+ * github.respond_pr_feedback output
397
+ */
398
+ export interface RespondPRFeedbackOutput {
399
+ posted: PostedResponse[];
400
+ failed: number[];
401
+ }
402
+ /**
403
+ * github.add_comment input
404
+ */
405
+ export interface AddCommentInput {
406
+ issue_number: number;
407
+ body: string;
408
+ phase?: CorePhase;
409
+ }
410
+ /**
411
+ * github.add_comment output
412
+ */
413
+ export interface AddCommentOutput {
414
+ comment_id: number;
415
+ comment_url: string;
416
+ }
417
+ /**
418
+ * workflow.update_phase input
419
+ */
420
+ export interface UpdatePhaseInput {
421
+ issue_number: number;
422
+ phase: CorePhase | ReviewGate;
423
+ action: 'start' | 'complete' | 'block' | 'set_current' | 'add_completion';
424
+ }
425
+ /**
426
+ * workflow.update_phase output
427
+ */
428
+ export interface UpdatePhaseOutput {
429
+ success: boolean;
430
+ phase: string;
431
+ action: string;
432
+ labels_added: string[];
433
+ labels_removed: string[];
434
+ }
435
+ /**
436
+ * workflow.check_gate input
437
+ */
438
+ export interface CheckGateInput {
439
+ issue_number: number;
440
+ phase: ReviewGate;
441
+ }
442
+ /**
443
+ * workflow.check_gate output
444
+ */
445
+ export interface CheckGateOutput {
446
+ can_proceed: boolean;
447
+ gate_active: boolean;
448
+ waiting_for?: string;
449
+ completed?: string;
450
+ blocked_reason?: string;
451
+ }
452
+ /**
453
+ * workflow.update_stage input
454
+ */
455
+ export interface UpdateStageInput {
456
+ issue_number: number;
457
+ stage: WorkflowStage;
458
+ status: 'in_progress' | 'complete' | 'blocked';
459
+ progress: StageProgress[];
460
+ branch?: string;
461
+ pr_number?: number;
462
+ next_step?: string;
463
+ blocked_reason?: string;
464
+ }
465
+ /**
466
+ * workflow.update_stage output
467
+ */
468
+ export interface UpdateStageOutput {
469
+ success: boolean;
470
+ comment_id: number;
471
+ comment_url: string;
472
+ created: boolean;
473
+ }
474
+ /**
475
+ * A single task parsed from tasks.md
476
+ */
477
+ export interface ParsedTask {
478
+ /** Task identifier (e.g., 'T007') */
479
+ task_id: string;
480
+ /** Task title */
481
+ title: string;
482
+ /** Task description body */
483
+ description: string;
484
+ /** Issue type label (e.g., 'feature', 'bugfix') */
485
+ type?: string;
486
+ /** Additional labels to apply to the created issue */
487
+ labels?: string[];
488
+ }
489
+ /**
490
+ * speckit.tasks_to_issues input
491
+ */
492
+ export interface TasksToIssuesInput {
493
+ /** Path to the feature directory containing tasks.md */
494
+ feature_dir: string;
495
+ /** The epic issue number (parent) */
496
+ epic_issue_number: number;
497
+ /** The epic branch name for child issues to reference */
498
+ epic_branch: string;
499
+ /** Trigger label to apply to created child issues (default: 'process:speckit-feature') */
500
+ trigger_label?: string;
501
+ }
502
+ /**
503
+ * A successfully created child issue
504
+ */
505
+ export interface CreatedIssue {
506
+ /** The created issue number */
507
+ issue_number: number;
508
+ /** The issue title */
509
+ title: string;
510
+ /** The task ID this issue was created from */
511
+ task_id: string;
512
+ }
513
+ /**
514
+ * A skipped child issue (already existed)
515
+ */
516
+ export interface SkippedIssue {
517
+ /** The existing issue number */
518
+ issue_number: number;
519
+ /** The issue title */
520
+ title: string;
521
+ /** The task ID this issue corresponds to */
522
+ task_id: string;
523
+ }
524
+ /**
525
+ * A task that failed to create an issue
526
+ */
527
+ export interface FailedTask {
528
+ /** The task ID that failed */
529
+ task_id: string;
530
+ /** The task title */
531
+ title: string;
532
+ /** Reason for failure */
533
+ reason: string;
534
+ }
535
+ /**
536
+ * speckit.tasks_to_issues output
537
+ */
538
+ export interface TasksToIssuesOutput {
539
+ /** Issues that were successfully created */
540
+ created_issues: CreatedIssue[];
541
+ /** Issues that were skipped (already existed) */
542
+ skipped_issues: SkippedIssue[];
543
+ /** Tasks that failed to create issues */
544
+ failed_tasks: FailedTask[];
545
+ /** Total number of tasks parsed from tasks.md */
546
+ total_tasks: number;
547
+ }
548
+ /**
549
+ * epic.post_tasks_summary input
550
+ */
551
+ export interface PostTasksSummaryInput {
552
+ issue_number: number;
553
+ feature_dir?: string;
554
+ grouping_strategy?: 'per-task' | 'per-story' | 'per-phase';
555
+ }
556
+ /**
557
+ * epic.post_tasks_summary output
558
+ */
559
+ export interface PostTasksSummaryOutput {
560
+ comment_id: number;
561
+ comment_url: string;
562
+ task_count: number;
563
+ grouping_used: string;
564
+ }
565
+ /**
566
+ * epic.check_completion input
567
+ */
568
+ export interface CheckCompletionInput {
569
+ epic_issue_number: number;
570
+ }
571
+ /**
572
+ * epic.check_completion output
573
+ */
574
+ export interface CheckCompletionOutput {
575
+ percentage: number;
576
+ ready_for_pr: boolean;
577
+ total_children: number;
578
+ completed_children: number;
579
+ in_progress_children: number;
580
+ blocked_children: number;
581
+ children: EpicChild[];
582
+ }
583
+ /**
584
+ * epic.update_status input
585
+ */
586
+ export interface UpdateStatusInput {
587
+ epic_issue_number: number;
588
+ force_update?: boolean;
589
+ }
590
+ /**
591
+ * epic.update_status output
592
+ */
593
+ export interface UpdateStatusOutput {
594
+ comment_id: number;
595
+ comment_url: string;
596
+ updated: boolean;
597
+ }
598
+ /**
599
+ * epic.create_pr input
600
+ */
601
+ export interface CreateEpicPRInput {
602
+ epic_issue_number: number;
603
+ title?: string;
604
+ skip_approval_label?: boolean;
605
+ }
606
+ /**
607
+ * epic.create_pr output
608
+ */
609
+ export interface CreateEpicPROutput {
610
+ pr_number: number;
611
+ pr_url: string;
612
+ commits_included: number;
613
+ children_merged: number;
614
+ }
615
+ /**
616
+ * epic.close input
617
+ */
618
+ export interface CloseEpicInput {
619
+ epic_issue_number: number;
620
+ pr_number?: number;
621
+ }
622
+ /**
623
+ * epic.close output
624
+ */
625
+ export interface CloseEpicOutput {
626
+ closed: boolean;
627
+ issue_url: string;
628
+ }
629
+ /**
630
+ * Dispatch failure info
631
+ */
632
+ export interface DispatchFailure {
633
+ issue_number: number;
634
+ reason: string;
635
+ }
636
+ /**
637
+ * epic.dispatch_children input
638
+ */
639
+ export interface DispatchChildrenInput {
640
+ epic_issue_number: number;
641
+ child_issues: number[];
642
+ }
643
+ /**
644
+ * epic.dispatch_children output
645
+ */
646
+ export interface DispatchChildrenOutput {
647
+ dispatched: number[];
648
+ failed: DispatchFailure[];
649
+ agent_account: string;
650
+ }
651
+ /**
652
+ * github.sync_labels input
653
+ */
654
+ export interface SyncLabelsInput {
655
+ dry_run?: boolean;
656
+ }
657
+ /**
658
+ * Label sync result
659
+ */
660
+ export interface LabelSyncResult {
661
+ name: string;
662
+ action: 'created' | 'updated' | 'unchanged';
663
+ }
664
+ /**
665
+ * github.sync_labels output
666
+ */
667
+ export interface SyncLabelsOutput {
668
+ created: string[];
669
+ updated: string[];
670
+ unchanged: string[];
671
+ results: LabelSyncResult[];
672
+ }
673
+ /**
674
+ * Action error codes
675
+ */
676
+ export type ActionErrorCode = 'VALIDATION_ERROR' | 'GITHUB_NOT_FOUND' | 'GITHUB_RATE_LIMIT' | 'GITHUB_AUTH_ERROR' | 'GITHUB_CONFLICT' | 'MERGE_CONFLICT' | 'NETWORK_ERROR' | 'GIT_ERROR' | 'UNKNOWN_ERROR';
677
+ /**
678
+ * Structured action error
679
+ */
680
+ export interface ActionError {
681
+ code: ActionErrorCode;
682
+ message: string;
683
+ recoverable: boolean;
684
+ retryAfter?: number;
685
+ details?: {
686
+ conflicts?: string[];
687
+ missing?: string[];
688
+ };
689
+ }
690
+ /**
691
+ * GitHub issue URL parsing result
692
+ */
693
+ export interface ParsedIssueUrl {
694
+ owner: string;
695
+ repo: string;
696
+ number: number;
697
+ }
698
+ /**
699
+ * GitHub repository info
700
+ */
701
+ export interface RepoInfo {
702
+ owner: string;
703
+ repo: string;
704
+ default_branch: string;
705
+ }
706
+ //# sourceMappingURL=github.d.ts.map