p-dev-harness 0.3.0

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 (1068) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +53 -0
  3. package/bin/p-dev.js +2 -0
  4. package/dist/agents/cursor-provider.d.ts +3 -0
  5. package/dist/agents/cursor-provider.d.ts.map +1 -0
  6. package/dist/agents/cursor-provider.js +60 -0
  7. package/dist/agents/cursor-provider.js.map +1 -0
  8. package/dist/agents/index.d.ts +12 -0
  9. package/dist/agents/index.d.ts.map +1 -0
  10. package/dist/agents/index.js +24 -0
  11. package/dist/agents/index.js.map +1 -0
  12. package/dist/agents/provider.d.ts +4 -0
  13. package/dist/agents/provider.d.ts.map +1 -0
  14. package/dist/agents/provider.js +5 -0
  15. package/dist/agents/provider.js.map +1 -0
  16. package/dist/agents/types.d.ts +59 -0
  17. package/dist/agents/types.d.ts.map +1 -0
  18. package/dist/agents/types.js +2 -0
  19. package/dist/agents/types.js.map +1 -0
  20. package/dist/artifacts/events.d.ts +8 -0
  21. package/dist/artifacts/events.d.ts.map +1 -0
  22. package/dist/artifacts/events.js +23 -0
  23. package/dist/artifacts/events.js.map +1 -0
  24. package/dist/artifacts/manifest-fields.d.ts +8 -0
  25. package/dist/artifacts/manifest-fields.d.ts.map +1 -0
  26. package/dist/artifacts/manifest-fields.js +10 -0
  27. package/dist/artifacts/manifest-fields.js.map +1 -0
  28. package/dist/artifacts/manifest.d.ts +4 -0
  29. package/dist/artifacts/manifest.d.ts.map +1 -0
  30. package/dist/artifacts/manifest.js +11 -0
  31. package/dist/artifacts/manifest.js.map +1 -0
  32. package/dist/artifacts/paths.d.ts +36 -0
  33. package/dist/artifacts/paths.d.ts.map +1 -0
  34. package/dist/artifacts/paths.js +107 -0
  35. package/dist/artifacts/paths.js.map +1 -0
  36. package/dist/artifacts/redact.d.ts +3 -0
  37. package/dist/artifacts/redact.d.ts.map +1 -0
  38. package/dist/artifacts/redact.js +45 -0
  39. package/dist/artifacts/redact.js.map +1 -0
  40. package/dist/artifacts/run-id.d.ts +2 -0
  41. package/dist/artifacts/run-id.d.ts.map +1 -0
  42. package/dist/artifacts/run-id.js +5 -0
  43. package/dist/artifacts/run-id.js.map +1 -0
  44. package/dist/artifacts/snapshot.d.ts +3 -0
  45. package/dist/artifacts/snapshot.d.ts.map +1 -0
  46. package/dist/artifacts/snapshot.js +9 -0
  47. package/dist/artifacts/snapshot.js.map +1 -0
  48. package/dist/artifacts/summary.d.ts +9 -0
  49. package/dist/artifacts/summary.d.ts.map +1 -0
  50. package/dist/artifacts/summary.js +68 -0
  51. package/dist/artifacts/summary.js.map +1 -0
  52. package/dist/cli/commands/diagnose-vercel-bridge.d.ts +5 -0
  53. package/dist/cli/commands/diagnose-vercel-bridge.d.ts.map +1 -0
  54. package/dist/cli/commands/diagnose-vercel-bridge.js +20 -0
  55. package/dist/cli/commands/diagnose-vercel-bridge.js.map +1 -0
  56. package/dist/cli/commands/doctor.d.ts +6 -0
  57. package/dist/cli/commands/doctor.d.ts.map +1 -0
  58. package/dist/cli/commands/doctor.js +190 -0
  59. package/dist/cli/commands/doctor.js.map +1 -0
  60. package/dist/cli/commands/inspect.d.ts +5 -0
  61. package/dist/cli/commands/inspect.d.ts.map +1 -0
  62. package/dist/cli/commands/inspect.js +39 -0
  63. package/dist/cli/commands/inspect.js.map +1 -0
  64. package/dist/cli/commands/operator-init.d.ts +5 -0
  65. package/dist/cli/commands/operator-init.d.ts.map +1 -0
  66. package/dist/cli/commands/operator-init.js +30 -0
  67. package/dist/cli/commands/operator-init.js.map +1 -0
  68. package/dist/cli/commands/redact-output.d.ts +2 -0
  69. package/dist/cli/commands/redact-output.d.ts.map +1 -0
  70. package/dist/cli/commands/redact-output.js +18 -0
  71. package/dist/cli/commands/redact-output.js.map +1 -0
  72. package/dist/cli/commands/resolve-route.d.ts +10 -0
  73. package/dist/cli/commands/resolve-route.d.ts.map +1 -0
  74. package/dist/cli/commands/resolve-route.js +67 -0
  75. package/dist/cli/commands/resolve-route.js.map +1 -0
  76. package/dist/cli/commands/run.d.ts +12 -0
  77. package/dist/cli/commands/run.d.ts.map +1 -0
  78. package/dist/cli/commands/run.js +36 -0
  79. package/dist/cli/commands/run.js.map +1 -0
  80. package/dist/cli/commands/sync-production.d.ts +25 -0
  81. package/dist/cli/commands/sync-production.d.ts.map +1 -0
  82. package/dist/cli/commands/sync-production.js +147 -0
  83. package/dist/cli/commands/sync-production.js.map +1 -0
  84. package/dist/cli/commands/validate-issue.d.ts +9 -0
  85. package/dist/cli/commands/validate-issue.d.ts.map +1 -0
  86. package/dist/cli/commands/validate-issue.js +53 -0
  87. package/dist/cli/commands/validate-issue.js.map +1 -0
  88. package/dist/cli/exit-codes.d.ts +5 -0
  89. package/dist/cli/exit-codes.d.ts.map +1 -0
  90. package/dist/cli/exit-codes.js +5 -0
  91. package/dist/cli/exit-codes.js.map +1 -0
  92. package/dist/cli/finalize-exit.d.ts +6 -0
  93. package/dist/cli/finalize-exit.d.ts.map +1 -0
  94. package/dist/cli/finalize-exit.js +9 -0
  95. package/dist/cli/finalize-exit.js.map +1 -0
  96. package/dist/cli/program.d.ts +3 -0
  97. package/dist/cli/program.d.ts.map +1 -0
  98. package/dist/cli/program.js +150 -0
  99. package/dist/cli/program.js.map +1 -0
  100. package/dist/config/defaults.d.ts +31 -0
  101. package/dist/config/defaults.d.ts.map +1 -0
  102. package/dist/config/defaults.js +34 -0
  103. package/dist/config/defaults.js.map +1 -0
  104. package/dist/config/load-config.d.ts +17 -0
  105. package/dist/config/load-config.d.ts.map +1 -0
  106. package/dist/config/load-config.js +57 -0
  107. package/dist/config/load-config.js.map +1 -0
  108. package/dist/config/load-dotenv.d.ts +2 -0
  109. package/dist/config/load-dotenv.d.ts.map +1 -0
  110. package/dist/config/load-dotenv.js +11 -0
  111. package/dist/config/load-dotenv.js.map +1 -0
  112. package/dist/config/resolve-config.d.ts +12 -0
  113. package/dist/config/resolve-config.d.ts.map +1 -0
  114. package/dist/config/resolve-config.js +98 -0
  115. package/dist/config/resolve-config.js.map +1 -0
  116. package/dist/config/schema.d.ts +505 -0
  117. package/dist/config/schema.d.ts.map +1 -0
  118. package/dist/config/schema.js +110 -0
  119. package/dist/config/schema.js.map +1 -0
  120. package/dist/config/status-names.d.ts +25 -0
  121. package/dist/config/status-names.d.ts.map +1 -0
  122. package/dist/config/status-names.js +41 -0
  123. package/dist/config/status-names.js.map +1 -0
  124. package/dist/config/types.d.ts +2 -0
  125. package/dist/config/types.d.ts.map +1 -0
  126. package/dist/config/types.js +2 -0
  127. package/dist/config/types.js.map +1 -0
  128. package/dist/cursor/agent-factory.d.ts +24 -0
  129. package/dist/cursor/agent-factory.d.ts.map +1 -0
  130. package/dist/cursor/agent-factory.js +91 -0
  131. package/dist/cursor/agent-factory.js.map +1 -0
  132. package/dist/cursor/errors.d.ts +4 -0
  133. package/dist/cursor/errors.d.ts.map +1 -0
  134. package/dist/cursor/errors.js +14 -0
  135. package/dist/cursor/errors.js.map +1 -0
  136. package/dist/cursor/git-result.d.ts +8 -0
  137. package/dist/cursor/git-result.d.ts.map +1 -0
  138. package/dist/cursor/git-result.js +43 -0
  139. package/dist/cursor/git-result.js.map +1 -0
  140. package/dist/cursor/model.d.ts +31 -0
  141. package/dist/cursor/model.d.ts.map +1 -0
  142. package/dist/cursor/model.js +41 -0
  143. package/dist/cursor/model.js.map +1 -0
  144. package/dist/cursor/revision-git-result.d.ts +4 -0
  145. package/dist/cursor/revision-git-result.d.ts.map +1 -0
  146. package/dist/cursor/revision-git-result.js +43 -0
  147. package/dist/cursor/revision-git-result.js.map +1 -0
  148. package/dist/cursor/run-cleanup.d.ts +6 -0
  149. package/dist/cursor/run-cleanup.d.ts.map +1 -0
  150. package/dist/cursor/run-cleanup.js +22 -0
  151. package/dist/cursor/run-cleanup.js.map +1 -0
  152. package/dist/cursor/run-observer.d.ts +45 -0
  153. package/dist/cursor/run-observer.d.ts.map +1 -0
  154. package/dist/cursor/run-observer.js +228 -0
  155. package/dist/cursor/run-observer.js.map +1 -0
  156. package/dist/cursor/urls.d.ts +3 -0
  157. package/dist/cursor/urls.d.ts.map +1 -0
  158. package/dist/cursor/urls.js +12 -0
  159. package/dist/cursor/urls.js.map +1 -0
  160. package/dist/fixture/frontmatter.d.ts +11 -0
  161. package/dist/fixture/frontmatter.d.ts.map +1 -0
  162. package/dist/fixture/frontmatter.js +45 -0
  163. package/dist/fixture/frontmatter.js.map +1 -0
  164. package/dist/github/actions-url.d.ts +3 -0
  165. package/dist/github/actions-url.d.ts.map +1 -0
  166. package/dist/github/actions-url.js +13 -0
  167. package/dist/github/actions-url.js.map +1 -0
  168. package/dist/github/base-branch.d.ts +25 -0
  169. package/dist/github/base-branch.d.ts.map +1 -0
  170. package/dist/github/base-branch.js +73 -0
  171. package/dist/github/base-branch.js.map +1 -0
  172. package/dist/github/check-policy.d.ts +12 -0
  173. package/dist/github/check-policy.d.ts.map +1 -0
  174. package/dist/github/check-policy.js +71 -0
  175. package/dist/github/check-policy.js.map +1 -0
  176. package/dist/github/client.d.ts +227 -0
  177. package/dist/github/client.d.ts.map +1 -0
  178. package/dist/github/client.js +244 -0
  179. package/dist/github/client.js.map +1 -0
  180. package/dist/github/commit-reachability.d.ts +34 -0
  181. package/dist/github/commit-reachability.d.ts.map +1 -0
  182. package/dist/github/commit-reachability.js +85 -0
  183. package/dist/github/commit-reachability.js.map +1 -0
  184. package/dist/github/links.d.ts +5 -0
  185. package/dist/github/links.d.ts.map +1 -0
  186. package/dist/github/links.js +17 -0
  187. package/dist/github/links.js.map +1 -0
  188. package/dist/github/merge-result.d.ts +8 -0
  189. package/dist/github/merge-result.d.ts.map +1 -0
  190. package/dist/github/merge-result.js +22 -0
  191. package/dist/github/merge-result.js.map +1 -0
  192. package/dist/github/pr-discovery.d.ts +12 -0
  193. package/dist/github/pr-discovery.d.ts.map +1 -0
  194. package/dist/github/pr-discovery.js +33 -0
  195. package/dist/github/pr-discovery.js.map +1 -0
  196. package/dist/github/pr-inspector.d.ts +48 -0
  197. package/dist/github/pr-inspector.d.ts.map +1 -0
  198. package/dist/github/pr-inspector.js +190 -0
  199. package/dist/github/pr-inspector.js.map +1 -0
  200. package/dist/github/pr-url.d.ts +8 -0
  201. package/dist/github/pr-url.d.ts.map +1 -0
  202. package/dist/github/pr-url.js +15 -0
  203. package/dist/github/pr-url.js.map +1 -0
  204. package/dist/gui/configure-health.d.ts +15 -0
  205. package/dist/gui/configure-health.d.ts.map +1 -0
  206. package/dist/gui/configure-health.js +124 -0
  207. package/dist/gui/configure-health.js.map +1 -0
  208. package/dist/gui/dev-server-process.d.ts +25 -0
  209. package/dist/gui/dev-server-process.d.ts.map +1 -0
  210. package/dist/gui/dev-server-process.js +165 -0
  211. package/dist/gui/dev-server-process.js.map +1 -0
  212. package/dist/gui/port.d.ts +17 -0
  213. package/dist/gui/port.d.ts.map +1 -0
  214. package/dist/gui/port.js +50 -0
  215. package/dist/gui/port.js.map +1 -0
  216. package/dist/gui/repo-root.d.ts +4 -0
  217. package/dist/gui/repo-root.d.ts.map +1 -0
  218. package/dist/gui/repo-root.js +49 -0
  219. package/dist/gui/repo-root.js.map +1 -0
  220. package/dist/gui/start-configure-stable.d.ts +3 -0
  221. package/dist/gui/start-configure-stable.d.ts.map +1 -0
  222. package/dist/gui/start-configure-stable.js +92 -0
  223. package/dist/gui/start-configure-stable.js.map +1 -0
  224. package/dist/gui/start-gui.d.ts +3 -0
  225. package/dist/gui/start-gui.d.ts.map +1 -0
  226. package/dist/gui/start-gui.js +90 -0
  227. package/dist/gui/start-gui.js.map +1 -0
  228. package/dist/index.d.ts +3 -0
  229. package/dist/index.d.ts.map +1 -0
  230. package/dist/index.js +9 -0
  231. package/dist/index.js.map +1 -0
  232. package/dist/linear/client.d.ts +14 -0
  233. package/dist/linear/client.d.ts.map +1 -0
  234. package/dist/linear/client.js +30 -0
  235. package/dist/linear/client.js.map +1 -0
  236. package/dist/linear/comment-card.d.ts +24 -0
  237. package/dist/linear/comment-card.d.ts.map +1 -0
  238. package/dist/linear/comment-card.js +45 -0
  239. package/dist/linear/comment-card.js.map +1 -0
  240. package/dist/linear/comments.d.ts +179 -0
  241. package/dist/linear/comments.d.ts.map +1 -0
  242. package/dist/linear/comments.js +551 -0
  243. package/dist/linear/comments.js.map +1 -0
  244. package/dist/linear/handoff-comment.d.ts +3 -0
  245. package/dist/linear/handoff-comment.d.ts.map +1 -0
  246. package/dist/linear/handoff-comment.js +11 -0
  247. package/dist/linear/handoff-comment.js.map +1 -0
  248. package/dist/linear/implementation-comment.d.ts +3 -0
  249. package/dist/linear/implementation-comment.d.ts.map +1 -0
  250. package/dist/linear/implementation-comment.js +11 -0
  251. package/dist/linear/implementation-comment.js.map +1 -0
  252. package/dist/linear/issue-query.d.ts +14 -0
  253. package/dist/linear/issue-query.d.ts.map +1 -0
  254. package/dist/linear/issue-query.js +47 -0
  255. package/dist/linear/issue-query.js.map +1 -0
  256. package/dist/linear/markers.d.ts +46 -0
  257. package/dist/linear/markers.d.ts.map +1 -0
  258. package/dist/linear/markers.js +179 -0
  259. package/dist/linear/markers.js.map +1 -0
  260. package/dist/linear/merge-source-comment.d.ts +10 -0
  261. package/dist/linear/merge-source-comment.d.ts.map +1 -0
  262. package/dist/linear/merge-source-comment.js +29 -0
  263. package/dist/linear/merge-source-comment.js.map +1 -0
  264. package/dist/linear/parser.d.ts +4 -0
  265. package/dist/linear/parser.d.ts.map +1 -0
  266. package/dist/linear/parser.js +86 -0
  267. package/dist/linear/parser.js.map +1 -0
  268. package/dist/linear/phase-labels.d.ts +8 -0
  269. package/dist/linear/phase-labels.d.ts.map +1 -0
  270. package/dist/linear/phase-labels.js +38 -0
  271. package/dist/linear/phase-labels.js.map +1 -0
  272. package/dist/linear/planning-comment.d.ts +3 -0
  273. package/dist/linear/planning-comment.d.ts.map +1 -0
  274. package/dist/linear/planning-comment.js +11 -0
  275. package/dist/linear/planning-comment.js.map +1 -0
  276. package/dist/linear/pm-feedback-comment.d.ts +3 -0
  277. package/dist/linear/pm-feedback-comment.d.ts.map +1 -0
  278. package/dist/linear/pm-feedback-comment.js +29 -0
  279. package/dist/linear/pm-feedback-comment.js.map +1 -0
  280. package/dist/linear/revision-comment.d.ts +3 -0
  281. package/dist/linear/revision-comment.d.ts.map +1 -0
  282. package/dist/linear/revision-comment.js +11 -0
  283. package/dist/linear/revision-comment.js.map +1 -0
  284. package/dist/linear/states.d.ts +3 -0
  285. package/dist/linear/states.d.ts.map +1 -0
  286. package/dist/linear/states.js +13 -0
  287. package/dist/linear/states.js.map +1 -0
  288. package/dist/linear/writer.d.ts +36 -0
  289. package/dist/linear/writer.d.ts.map +1 -0
  290. package/dist/linear/writer.js +105 -0
  291. package/dist/linear/writer.js.map +1 -0
  292. package/dist/p-dev/browser.d.ts +9 -0
  293. package/dist/p-dev/browser.d.ts.map +1 -0
  294. package/dist/p-dev/browser.js +15 -0
  295. package/dist/p-dev/browser.js.map +1 -0
  296. package/dist/p-dev/cli.d.ts +10 -0
  297. package/dist/p-dev/cli.d.ts.map +1 -0
  298. package/dist/p-dev/cli.js +73 -0
  299. package/dist/p-dev/cli.js.map +1 -0
  300. package/dist/p-dev/launch.d.ts +20 -0
  301. package/dist/p-dev/launch.d.ts.map +1 -0
  302. package/dist/p-dev/launch.js +107 -0
  303. package/dist/p-dev/launch.js.map +1 -0
  304. package/dist/p-dev/main.d.ts +3 -0
  305. package/dist/p-dev/main.d.ts.map +1 -0
  306. package/dist/p-dev/main.js +10 -0
  307. package/dist/p-dev/main.js.map +1 -0
  308. package/dist/p-dev/next-bin.d.ts +2 -0
  309. package/dist/p-dev/next-bin.d.ts.map +1 -0
  310. package/dist/p-dev/next-bin.js +8 -0
  311. package/dist/p-dev/next-bin.js.map +1 -0
  312. package/dist/p-dev/node-version.d.ts +9 -0
  313. package/dist/p-dev/node-version.d.ts.map +1 -0
  314. package/dist/p-dev/node-version.js +31 -0
  315. package/dist/p-dev/node-version.js.map +1 -0
  316. package/dist/p-dev/package-paths.d.ts +5 -0
  317. package/dist/p-dev/package-paths.d.ts.map +1 -0
  318. package/dist/p-dev/package-paths.js +34 -0
  319. package/dist/p-dev/package-paths.js.map +1 -0
  320. package/dist/p-dev/package-version.d.ts +6 -0
  321. package/dist/p-dev/package-version.d.ts.map +1 -0
  322. package/dist/p-dev/package-version.js +40 -0
  323. package/dist/p-dev/package-version.js.map +1 -0
  324. package/dist/p-dev/runtime-mode.d.ts +6 -0
  325. package/dist/p-dev/runtime-mode.d.ts.map +1 -0
  326. package/dist/p-dev/runtime-mode.js +18 -0
  327. package/dist/p-dev/runtime-mode.js.map +1 -0
  328. package/dist/p-dev/shutdown.d.ts +7 -0
  329. package/dist/p-dev/shutdown.d.ts.map +1 -0
  330. package/dist/p-dev/shutdown.js +55 -0
  331. package/dist/p-dev/shutdown.js.map +1 -0
  332. package/dist/p-dev/workspace.d.ts +22 -0
  333. package/dist/p-dev/workspace.d.ts.map +1 -0
  334. package/dist/p-dev/workspace.js +74 -0
  335. package/dist/p-dev/workspace.js.map +1 -0
  336. package/dist/preview/production-from-merge.d.ts +34 -0
  337. package/dist/preview/production-from-merge.d.ts.map +1 -0
  338. package/dist/preview/production-from-merge.js +94 -0
  339. package/dist/preview/production-from-merge.js.map +1 -0
  340. package/dist/preview/urls.d.ts +16 -0
  341. package/dist/preview/urls.d.ts.map +1 -0
  342. package/dist/preview/urls.js +13 -0
  343. package/dist/preview/urls.js.map +1 -0
  344. package/dist/preview/vercel-from-pr.d.ts +19 -0
  345. package/dist/preview/vercel-from-pr.d.ts.map +1 -0
  346. package/dist/preview/vercel-from-pr.js +91 -0
  347. package/dist/preview/vercel-from-pr.js.map +1 -0
  348. package/dist/prompts/branch-name.d.ts +3 -0
  349. package/dist/prompts/branch-name.d.ts.map +1 -0
  350. package/dist/prompts/branch-name.js +15 -0
  351. package/dist/prompts/branch-name.js.map +1 -0
  352. package/dist/prompts/builder.d.ts +21 -0
  353. package/dist/prompts/builder.d.ts.map +1 -0
  354. package/dist/prompts/builder.js +51 -0
  355. package/dist/prompts/builder.js.map +1 -0
  356. package/dist/prompts/integration-repair-builder.d.ts +20 -0
  357. package/dist/prompts/integration-repair-builder.d.ts.map +1 -0
  358. package/dist/prompts/integration-repair-builder.js +37 -0
  359. package/dist/prompts/integration-repair-builder.js.map +1 -0
  360. package/dist/prompts/revision-builder.d.ts +19 -0
  361. package/dist/prompts/revision-builder.d.ts.map +1 -0
  362. package/dist/prompts/revision-builder.js +34 -0
  363. package/dist/prompts/revision-builder.js.map +1 -0
  364. package/dist/resolver/allowed-repos.d.ts +3 -0
  365. package/dist/resolver/allowed-repos.d.ts.map +1 -0
  366. package/dist/resolver/allowed-repos.js +10 -0
  367. package/dist/resolver/allowed-repos.js.map +1 -0
  368. package/dist/resolver/errors.d.ts +6 -0
  369. package/dist/resolver/errors.d.ts.map +1 -0
  370. package/dist/resolver/errors.js +9 -0
  371. package/dist/resolver/errors.js.map +1 -0
  372. package/dist/resolver/normalize-repo.d.ts +4 -0
  373. package/dist/resolver/normalize-repo.d.ts.map +1 -0
  374. package/dist/resolver/normalize-repo.js +25 -0
  375. package/dist/resolver/normalize-repo.js.map +1 -0
  376. package/dist/resolver/target-repo.d.ts +20 -0
  377. package/dist/resolver/target-repo.d.ts.map +1 -0
  378. package/dist/resolver/target-repo.js +73 -0
  379. package/dist/resolver/target-repo.js.map +1 -0
  380. package/dist/runner/building-recovery.d.ts +5 -0
  381. package/dist/runner/building-recovery.d.ts.map +1 -0
  382. package/dist/runner/building-recovery.js +18 -0
  383. package/dist/runner/building-recovery.js.map +1 -0
  384. package/dist/runner/dry-run.d.ts +13 -0
  385. package/dist/runner/dry-run.d.ts.map +1 -0
  386. package/dist/runner/dry-run.js +108 -0
  387. package/dist/runner/dry-run.js.map +1 -0
  388. package/dist/runner/errors.d.ts +22 -0
  389. package/dist/runner/errors.d.ts.map +1 -0
  390. package/dist/runner/errors.js +41 -0
  391. package/dist/runner/errors.js.map +1 -0
  392. package/dist/runner/execution-environment.d.ts +25 -0
  393. package/dist/runner/execution-environment.d.ts.map +1 -0
  394. package/dist/runner/execution-environment.js +122 -0
  395. package/dist/runner/execution-environment.js.map +1 -0
  396. package/dist/runner/fixture.d.ts +4 -0
  397. package/dist/runner/fixture.d.ts.map +1 -0
  398. package/dist/runner/fixture.js +18 -0
  399. package/dist/runner/fixture.js.map +1 -0
  400. package/dist/runner/idempotency.d.ts +29 -0
  401. package/dist/runner/idempotency.d.ts.map +1 -0
  402. package/dist/runner/idempotency.js +295 -0
  403. package/dist/runner/idempotency.js.map +1 -0
  404. package/dist/runner/orchestrator.d.ts +19 -0
  405. package/dist/runner/orchestrator.d.ts.map +1 -0
  406. package/dist/runner/orchestrator.js +149 -0
  407. package/dist/runner/orchestrator.js.map +1 -0
  408. package/dist/runner/phase-args.d.ts +11 -0
  409. package/dist/runner/phase-args.d.ts.map +1 -0
  410. package/dist/runner/phase-args.js +35 -0
  411. package/dist/runner/phase-args.js.map +1 -0
  412. package/dist/runner/phase-infer.d.ts +7 -0
  413. package/dist/runner/phase-infer.d.ts.map +1 -0
  414. package/dist/runner/phase-infer.js +45 -0
  415. package/dist/runner/phase-infer.js.map +1 -0
  416. package/dist/runner/phases/handoff.d.ts +13 -0
  417. package/dist/runner/phases/handoff.d.ts.map +1 -0
  418. package/dist/runner/phases/handoff.js +422 -0
  419. package/dist/runner/phases/handoff.js.map +1 -0
  420. package/dist/runner/phases/implementation.d.ts +13 -0
  421. package/dist/runner/phases/implementation.d.ts.map +1 -0
  422. package/dist/runner/phases/implementation.js +435 -0
  423. package/dist/runner/phases/implementation.js.map +1 -0
  424. package/dist/runner/phases/integration-repair.d.ts +31 -0
  425. package/dist/runner/phases/integration-repair.d.ts.map +1 -0
  426. package/dist/runner/phases/integration-repair.js +379 -0
  427. package/dist/runner/phases/integration-repair.js.map +1 -0
  428. package/dist/runner/phases/merge.d.ts +13 -0
  429. package/dist/runner/phases/merge.d.ts.map +1 -0
  430. package/dist/runner/phases/merge.js +816 -0
  431. package/dist/runner/phases/merge.js.map +1 -0
  432. package/dist/runner/phases/planning.d.ts +13 -0
  433. package/dist/runner/phases/planning.d.ts.map +1 -0
  434. package/dist/runner/phases/planning.js +306 -0
  435. package/dist/runner/phases/planning.js.map +1 -0
  436. package/dist/runner/phases/production-sync.d.ts +16 -0
  437. package/dist/runner/phases/production-sync.d.ts.map +1 -0
  438. package/dist/runner/phases/production-sync.js +215 -0
  439. package/dist/runner/phases/production-sync.js.map +1 -0
  440. package/dist/runner/phases/revision.d.ts +13 -0
  441. package/dist/runner/phases/revision.d.ts.map +1 -0
  442. package/dist/runner/phases/revision.js +565 -0
  443. package/dist/runner/phases/revision.js.map +1 -0
  444. package/dist/runner/preflight.d.ts +45 -0
  445. package/dist/runner/preflight.d.ts.map +1 -0
  446. package/dist/runner/preflight.js +148 -0
  447. package/dist/runner/preflight.js.map +1 -0
  448. package/dist/runner/resolve-route.d.ts +25 -0
  449. package/dist/runner/resolve-route.d.ts.map +1 -0
  450. package/dist/runner/resolve-route.js +81 -0
  451. package/dist/runner/resolve-route.js.map +1 -0
  452. package/dist/setup/config-builder.d.ts +7 -0
  453. package/dist/setup/config-builder.d.ts.map +1 -0
  454. package/dist/setup/config-builder.js +109 -0
  455. package/dist/setup/config-builder.js.map +1 -0
  456. package/dist/setup/config-local-editor.d.ts +37 -0
  457. package/dist/setup/config-local-editor.d.ts.map +1 -0
  458. package/dist/setup/config-local-editor.js +187 -0
  459. package/dist/setup/config-local-editor.js.map +1 -0
  460. package/dist/setup/config-writer.d.ts +20 -0
  461. package/dist/setup/config-writer.d.ts.map +1 -0
  462. package/dist/setup/config-writer.js +132 -0
  463. package/dist/setup/config-writer.js.map +1 -0
  464. package/dist/setup/control-plane-readiness-server.d.ts +5 -0
  465. package/dist/setup/control-plane-readiness-server.d.ts.map +1 -0
  466. package/dist/setup/control-plane-readiness-server.js +9 -0
  467. package/dist/setup/control-plane-readiness-server.js.map +1 -0
  468. package/dist/setup/control-plane-readiness.d.ts +23 -0
  469. package/dist/setup/control-plane-readiness.d.ts.map +1 -0
  470. package/dist/setup/control-plane-readiness.js +216 -0
  471. package/dist/setup/control-plane-readiness.js.map +1 -0
  472. package/dist/setup/control-plane-setup-state.d.ts +6 -0
  473. package/dist/setup/control-plane-setup-state.d.ts.map +1 -0
  474. package/dist/setup/control-plane-setup-state.js +41 -0
  475. package/dist/setup/control-plane-setup-state.js.map +1 -0
  476. package/dist/setup/control-plane-types.d.ts +97 -0
  477. package/dist/setup/control-plane-types.d.ts.map +1 -0
  478. package/dist/setup/control-plane-types.js +2 -0
  479. package/dist/setup/control-plane-types.js.map +1 -0
  480. package/dist/setup/doctor-summary.d.ts +16 -0
  481. package/dist/setup/doctor-summary.d.ts.map +1 -0
  482. package/dist/setup/doctor-summary.js +62 -0
  483. package/dist/setup/doctor-summary.js.map +1 -0
  484. package/dist/setup/env-merge.d.ts +26 -0
  485. package/dist/setup/env-merge.d.ts.map +1 -0
  486. package/dist/setup/env-merge.js +201 -0
  487. package/dist/setup/env-merge.js.map +1 -0
  488. package/dist/setup/env-writer.d.ts +17 -0
  489. package/dist/setup/env-writer.d.ts.map +1 -0
  490. package/dist/setup/env-writer.js +129 -0
  491. package/dist/setup/env-writer.js.map +1 -0
  492. package/dist/setup/first-run-readiness.d.ts +204 -0
  493. package/dist/setup/first-run-readiness.d.ts.map +1 -0
  494. package/dist/setup/first-run-readiness.js +911 -0
  495. package/dist/setup/first-run-readiness.js.map +1 -0
  496. package/dist/setup/generated-instructions.d.ts +19 -0
  497. package/dist/setup/generated-instructions.d.ts.map +1 -0
  498. package/dist/setup/generated-instructions.js +70 -0
  499. package/dist/setup/generated-instructions.js.map +1 -0
  500. package/dist/setup/github-dispatch-token.d.ts +12 -0
  501. package/dist/setup/github-dispatch-token.d.ts.map +1 -0
  502. package/dist/setup/github-dispatch-token.js +66 -0
  503. package/dist/setup/github-dispatch-token.js.map +1 -0
  504. package/dist/setup/github-remote-provider.d.ts +192 -0
  505. package/dist/setup/github-remote-provider.d.ts.map +1 -0
  506. package/dist/setup/github-remote-provider.js +302 -0
  507. package/dist/setup/github-remote-provider.js.map +1 -0
  508. package/dist/setup/github-remote-setup-live.d.ts +49 -0
  509. package/dist/setup/github-remote-setup-live.d.ts.map +1 -0
  510. package/dist/setup/github-remote-setup-live.js +400 -0
  511. package/dist/setup/github-remote-setup-live.js.map +1 -0
  512. package/dist/setup/github-repo-slug.d.ts +3 -0
  513. package/dist/setup/github-repo-slug.d.ts.map +1 -0
  514. package/dist/setup/github-repo-slug.js +23 -0
  515. package/dist/setup/github-repo-slug.js.map +1 -0
  516. package/dist/setup/github-secret-encryption.d.ts +2 -0
  517. package/dist/setup/github-secret-encryption.d.ts.map +1 -0
  518. package/dist/setup/github-secret-encryption.js +8 -0
  519. package/dist/setup/github-secret-encryption.js.map +1 -0
  520. package/dist/setup/github-workflow-permissions.d.ts +54 -0
  521. package/dist/setup/github-workflow-permissions.d.ts.map +1 -0
  522. package/dist/setup/github-workflow-permissions.js +110 -0
  523. package/dist/setup/github-workflow-permissions.js.map +1 -0
  524. package/dist/setup/gui-view-model.d.ts +85 -0
  525. package/dist/setup/gui-view-model.d.ts.map +1 -0
  526. package/dist/setup/gui-view-model.js +404 -0
  527. package/dist/setup/gui-view-model.js.map +1 -0
  528. package/dist/setup/guided-config-form.d.ts +8 -0
  529. package/dist/setup/guided-config-form.d.ts.map +1 -0
  530. package/dist/setup/guided-config-form.js +36 -0
  531. package/dist/setup/guided-config-form.js.map +1 -0
  532. package/dist/setup/harness-dispatch-repo.d.ts +23 -0
  533. package/dist/setup/harness-dispatch-repo.d.ts.map +1 -0
  534. package/dist/setup/harness-dispatch-repo.js +110 -0
  535. package/dist/setup/harness-dispatch-repo.js.map +1 -0
  536. package/dist/setup/harness-managed-repo-marker.d.ts +59 -0
  537. package/dist/setup/harness-managed-repo-marker.d.ts.map +1 -0
  538. package/dist/setup/harness-managed-repo-marker.js +289 -0
  539. package/dist/setup/harness-managed-repo-marker.js.map +1 -0
  540. package/dist/setup/harness-provisioning-context.d.ts +58 -0
  541. package/dist/setup/harness-provisioning-context.d.ts.map +1 -0
  542. package/dist/setup/harness-provisioning-context.js +204 -0
  543. package/dist/setup/harness-provisioning-context.js.map +1 -0
  544. package/dist/setup/harness-provisioning-pending-state.d.ts +59 -0
  545. package/dist/setup/harness-provisioning-pending-state.d.ts.map +1 -0
  546. package/dist/setup/harness-provisioning-pending-state.js +167 -0
  547. package/dist/setup/harness-provisioning-pending-state.js.map +1 -0
  548. package/dist/setup/harness-repo-provisioning.d.ts +61 -0
  549. package/dist/setup/harness-repo-provisioning.d.ts.map +1 -0
  550. package/dist/setup/harness-repo-provisioning.js +1106 -0
  551. package/dist/setup/harness-repo-provisioning.js.map +1 -0
  552. package/dist/setup/harness-secret-fingerprint.d.ts +21 -0
  553. package/dist/setup/harness-secret-fingerprint.d.ts.map +1 -0
  554. package/dist/setup/harness-secret-fingerprint.js +25 -0
  555. package/dist/setup/harness-secret-fingerprint.js.map +1 -0
  556. package/dist/setup/harness-secret-setup.d.ts +81 -0
  557. package/dist/setup/harness-secret-setup.d.ts.map +1 -0
  558. package/dist/setup/harness-secret-setup.js +290 -0
  559. package/dist/setup/harness-secret-setup.js.map +1 -0
  560. package/dist/setup/harness-template-identity.d.ts +48 -0
  561. package/dist/setup/harness-template-identity.d.ts.map +1 -0
  562. package/dist/setup/harness-template-identity.js +114 -0
  563. package/dist/setup/harness-template-identity.js.map +1 -0
  564. package/dist/setup/linear-setup-apply.d.ts +30 -0
  565. package/dist/setup/linear-setup-apply.d.ts.map +1 -0
  566. package/dist/setup/linear-setup-apply.js +192 -0
  567. package/dist/setup/linear-setup-apply.js.map +1 -0
  568. package/dist/setup/linear-setup-client.d.ts +70 -0
  569. package/dist/setup/linear-setup-client.d.ts.map +1 -0
  570. package/dist/setup/linear-setup-client.js +180 -0
  571. package/dist/setup/linear-setup-client.js.map +1 -0
  572. package/dist/setup/linear-setup-plan.d.ts +88 -0
  573. package/dist/setup/linear-setup-plan.d.ts.map +1 -0
  574. package/dist/setup/linear-setup-plan.js +239 -0
  575. package/dist/setup/linear-setup-plan.js.map +1 -0
  576. package/dist/setup/linear-setup-summary.d.ts +12 -0
  577. package/dist/setup/linear-setup-summary.d.ts.map +1 -0
  578. package/dist/setup/linear-setup-summary.js +21 -0
  579. package/dist/setup/linear-setup-summary.js.map +1 -0
  580. package/dist/setup/linear-status-contract.d.ts +15 -0
  581. package/dist/setup/linear-status-contract.d.ts.map +1 -0
  582. package/dist/setup/linear-status-contract.js +79 -0
  583. package/dist/setup/linear-status-contract.js.map +1 -0
  584. package/dist/setup/linear-webhook-env-local.d.ts +10 -0
  585. package/dist/setup/linear-webhook-env-local.d.ts.map +1 -0
  586. package/dist/setup/linear-webhook-env-local.js +74 -0
  587. package/dist/setup/linear-webhook-env-local.js.map +1 -0
  588. package/dist/setup/linear-webhook-secret.d.ts +63 -0
  589. package/dist/setup/linear-webhook-secret.d.ts.map +1 -0
  590. package/dist/setup/linear-webhook-secret.js +335 -0
  591. package/dist/setup/linear-webhook-secret.js.map +1 -0
  592. package/dist/setup/local-apply-actions.d.ts +85 -0
  593. package/dist/setup/local-apply-actions.d.ts.map +1 -0
  594. package/dist/setup/local-apply-actions.js +303 -0
  595. package/dist/setup/local-apply-actions.js.map +1 -0
  596. package/dist/setup/local-readiness-checks.d.ts +16 -0
  597. package/dist/setup/local-readiness-checks.d.ts.map +1 -0
  598. package/dist/setup/local-readiness-checks.js +164 -0
  599. package/dist/setup/local-readiness-checks.js.map +1 -0
  600. package/dist/setup/mock-target-workflow-finalization.d.ts +24 -0
  601. package/dist/setup/mock-target-workflow-finalization.d.ts.map +1 -0
  602. package/dist/setup/mock-target-workflow-finalization.js +367 -0
  603. package/dist/setup/mock-target-workflow-finalization.js.map +1 -0
  604. package/dist/setup/model-settings.d.ts +17 -0
  605. package/dist/setup/model-settings.d.ts.map +1 -0
  606. package/dist/setup/model-settings.js +46 -0
  607. package/dist/setup/model-settings.js.map +1 -0
  608. package/dist/setup/permission-model.d.ts +46 -0
  609. package/dist/setup/permission-model.d.ts.map +1 -0
  610. package/dist/setup/permission-model.js +56 -0
  611. package/dist/setup/permission-model.js.map +1 -0
  612. package/dist/setup/redact-secrets.d.ts +17 -0
  613. package/dist/setup/redact-secrets.d.ts.map +1 -0
  614. package/dist/setup/redact-secrets.js +51 -0
  615. package/dist/setup/redact-secrets.js.map +1 -0
  616. package/dist/setup/remote-actions.d.ts +136 -0
  617. package/dist/setup/remote-actions.d.ts.map +1 -0
  618. package/dist/setup/remote-actions.js +75 -0
  619. package/dist/setup/remote-actions.js.map +1 -0
  620. package/dist/setup/remote-apply-actions.d.ts +32 -0
  621. package/dist/setup/remote-apply-actions.d.ts.map +1 -0
  622. package/dist/setup/remote-apply-actions.js +242 -0
  623. package/dist/setup/remote-apply-actions.js.map +1 -0
  624. package/dist/setup/remote-preview-fingerprint.d.ts +15 -0
  625. package/dist/setup/remote-preview-fingerprint.d.ts.map +1 -0
  626. package/dist/setup/remote-preview-fingerprint.js +20 -0
  627. package/dist/setup/remote-preview-fingerprint.js.map +1 -0
  628. package/dist/setup/remote-setup-summary.d.ts +28 -0
  629. package/dist/setup/remote-setup-summary.d.ts.map +1 -0
  630. package/dist/setup/remote-setup-summary.js +93 -0
  631. package/dist/setup/remote-setup-summary.js.map +1 -0
  632. package/dist/setup/secret-change-token.d.ts +2 -0
  633. package/dist/setup/secret-change-token.d.ts.map +1 -0
  634. package/dist/setup/secret-change-token.js +14 -0
  635. package/dist/setup/secret-change-token.js.map +1 -0
  636. package/dist/setup/service-verification.d.ts +60 -0
  637. package/dist/setup/service-verification.d.ts.map +1 -0
  638. package/dist/setup/service-verification.js +419 -0
  639. package/dist/setup/service-verification.js.map +1 -0
  640. package/dist/setup/setup-actions.d.ts +126 -0
  641. package/dist/setup/setup-actions.d.ts.map +1 -0
  642. package/dist/setup/setup-actions.js +128 -0
  643. package/dist/setup/setup-actions.js.map +1 -0
  644. package/dist/setup/setup-github-auth.d.ts +5 -0
  645. package/dist/setup/setup-github-auth.d.ts.map +1 -0
  646. package/dist/setup/setup-github-auth.js +12 -0
  647. package/dist/setup/setup-github-auth.js.map +1 -0
  648. package/dist/setup/setup-state.d.ts +51 -0
  649. package/dist/setup/setup-state.d.ts.map +1 -0
  650. package/dist/setup/setup-state.js +19 -0
  651. package/dist/setup/setup-state.js.map +1 -0
  652. package/dist/setup/stale-smoke-repo.d.ts +40 -0
  653. package/dist/setup/stale-smoke-repo.d.ts.map +1 -0
  654. package/dist/setup/stale-smoke-repo.js +77 -0
  655. package/dist/setup/stale-smoke-repo.js.map +1 -0
  656. package/dist/setup/sync-downstream-summaries.d.ts +22 -0
  657. package/dist/setup/sync-downstream-summaries.d.ts.map +1 -0
  658. package/dist/setup/sync-downstream-summaries.js +54 -0
  659. package/dist/setup/sync-downstream-summaries.js.map +1 -0
  660. package/dist/setup/target-workflow-finalization-lock.d.ts +17 -0
  661. package/dist/setup/target-workflow-finalization-lock.d.ts.map +1 -0
  662. package/dist/setup/target-workflow-finalization-lock.js +72 -0
  663. package/dist/setup/target-workflow-finalization-lock.js.map +1 -0
  664. package/dist/setup/target-workflow-finalization-types.d.ts +32 -0
  665. package/dist/setup/target-workflow-finalization-types.d.ts.map +1 -0
  666. package/dist/setup/target-workflow-finalization-types.js +4 -0
  667. package/dist/setup/target-workflow-finalization-types.js.map +1 -0
  668. package/dist/setup/target-workflow-finalization.d.ts +19 -0
  669. package/dist/setup/target-workflow-finalization.d.ts.map +1 -0
  670. package/dist/setup/target-workflow-finalization.js +690 -0
  671. package/dist/setup/target-workflow-finalization.js.map +1 -0
  672. package/dist/setup/target-workflow-setup.d.ts +63 -0
  673. package/dist/setup/target-workflow-setup.d.ts.map +1 -0
  674. package/dist/setup/target-workflow-setup.js +167 -0
  675. package/dist/setup/target-workflow-setup.js.map +1 -0
  676. package/dist/setup/test-only-provisioning-provider.d.ts +11 -0
  677. package/dist/setup/test-only-provisioning-provider.d.ts.map +1 -0
  678. package/dist/setup/test-only-provisioning-provider.js +37 -0
  679. package/dist/setup/test-only-provisioning-provider.js.map +1 -0
  680. package/dist/setup/test-only-remote-setup-provider.d.ts +11 -0
  681. package/dist/setup/test-only-remote-setup-provider.d.ts.map +1 -0
  682. package/dist/setup/test-only-remote-setup-provider.js +37 -0
  683. package/dist/setup/test-only-remote-setup-provider.js.map +1 -0
  684. package/dist/setup/vercel-bridge-diagnostics.d.ts +101 -0
  685. package/dist/setup/vercel-bridge-diagnostics.d.ts.map +1 -0
  686. package/dist/setup/vercel-bridge-diagnostics.js +353 -0
  687. package/dist/setup/vercel-bridge-diagnostics.js.map +1 -0
  688. package/dist/setup/vercel-bridge-options.d.ts +35 -0
  689. package/dist/setup/vercel-bridge-options.d.ts.map +1 -0
  690. package/dist/setup/vercel-bridge-options.js +95 -0
  691. package/dist/setup/vercel-bridge-options.js.map +1 -0
  692. package/dist/setup/vercel-bridge-readiness.d.ts +38 -0
  693. package/dist/setup/vercel-bridge-readiness.d.ts.map +1 -0
  694. package/dist/setup/vercel-bridge-readiness.js +85 -0
  695. package/dist/setup/vercel-bridge-readiness.js.map +1 -0
  696. package/dist/setup/vercel-bridge-redeploy-poll.d.ts +46 -0
  697. package/dist/setup/vercel-bridge-redeploy-poll.d.ts.map +1 -0
  698. package/dist/setup/vercel-bridge-redeploy-poll.js +571 -0
  699. package/dist/setup/vercel-bridge-redeploy-poll.js.map +1 -0
  700. package/dist/setup/vercel-bridge-redeploy-state.d.ts +16 -0
  701. package/dist/setup/vercel-bridge-redeploy-state.d.ts.map +1 -0
  702. package/dist/setup/vercel-bridge-redeploy-state.js +27 -0
  703. package/dist/setup/vercel-bridge-redeploy-state.js.map +1 -0
  704. package/dist/setup/vercel-bridge-structured-log.d.ts +34 -0
  705. package/dist/setup/vercel-bridge-structured-log.d.ts.map +1 -0
  706. package/dist/setup/vercel-bridge-structured-log.js +30 -0
  707. package/dist/setup/vercel-bridge-structured-log.js.map +1 -0
  708. package/dist/setup/vercel-bridge-verification.d.ts +22 -0
  709. package/dist/setup/vercel-bridge-verification.d.ts.map +1 -0
  710. package/dist/setup/vercel-bridge-verification.js +38 -0
  711. package/dist/setup/vercel-bridge-verification.js.map +1 -0
  712. package/dist/setup/vercel-production-redeploy.d.ts +57 -0
  713. package/dist/setup/vercel-production-redeploy.d.ts.map +1 -0
  714. package/dist/setup/vercel-production-redeploy.js +180 -0
  715. package/dist/setup/vercel-production-redeploy.js.map +1 -0
  716. package/dist/setup/vercel-setup-apply.d.ts +69 -0
  717. package/dist/setup/vercel-setup-apply.d.ts.map +1 -0
  718. package/dist/setup/vercel-setup-apply.js +779 -0
  719. package/dist/setup/vercel-setup-apply.js.map +1 -0
  720. package/dist/setup/vercel-setup-client.d.ts +134 -0
  721. package/dist/setup/vercel-setup-client.d.ts.map +1 -0
  722. package/dist/setup/vercel-setup-client.js +416 -0
  723. package/dist/setup/vercel-setup-client.js.map +1 -0
  724. package/dist/setup/vercel-setup-plan.d.ts +132 -0
  725. package/dist/setup/vercel-setup-plan.d.ts.map +1 -0
  726. package/dist/setup/vercel-setup-plan.js +452 -0
  727. package/dist/setup/vercel-setup-plan.js.map +1 -0
  728. package/dist/setup/vercel-setup-summary.d.ts +11 -0
  729. package/dist/setup/vercel-setup-summary.d.ts.map +1 -0
  730. package/dist/setup/vercel-setup-summary.js +29 -0
  731. package/dist/setup/vercel-setup-summary.js.map +1 -0
  732. package/dist/setup/vercel-webhook-probe.d.ts +17 -0
  733. package/dist/setup/vercel-webhook-probe.d.ts.map +1 -0
  734. package/dist/setup/vercel-webhook-probe.js +125 -0
  735. package/dist/setup/vercel-webhook-probe.js.map +1 -0
  736. package/dist/setup/workflow-install-merge-errors.d.ts +12 -0
  737. package/dist/setup/workflow-install-merge-errors.d.ts.map +1 -0
  738. package/dist/setup/workflow-install-merge-errors.js +130 -0
  739. package/dist/setup/workflow-install-merge-errors.js.map +1 -0
  740. package/dist/types/parsed-issue.d.ts +9 -0
  741. package/dist/types/parsed-issue.d.ts.map +1 -0
  742. package/dist/types/parsed-issue.js +2 -0
  743. package/dist/types/parsed-issue.js.map +1 -0
  744. package/dist/types/run.d.ts +46 -0
  745. package/dist/types/run.d.ts.map +1 -0
  746. package/dist/types/run.js +2 -0
  747. package/dist/types/run.js.map +1 -0
  748. package/dist/validate/constants.d.ts +3 -0
  749. package/dist/validate/constants.d.ts.map +1 -0
  750. package/dist/validate/constants.js +3 -0
  751. package/dist/validate/constants.js.map +1 -0
  752. package/dist/validate/issue.d.ts +15 -0
  753. package/dist/validate/issue.d.ts.map +1 -0
  754. package/dist/validate/issue.js +177 -0
  755. package/dist/validate/issue.js.map +1 -0
  756. package/dist/validate/report.d.ts +3 -0
  757. package/dist/validate/report.d.ts.map +1 -0
  758. package/dist/validate/report.js +62 -0
  759. package/dist/validate/report.js.map +1 -0
  760. package/dist/validate/types.d.ts +30 -0
  761. package/dist/validate/types.d.ts.map +1 -0
  762. package/dist/validate/types.js +2 -0
  763. package/dist/validate/types.js.map +1 -0
  764. package/dist/webhook/dispatch-github.d.ts +6 -0
  765. package/dist/webhook/dispatch-github.d.ts.map +1 -0
  766. package/dist/webhook/dispatch-github.js +33 -0
  767. package/dist/webhook/dispatch-github.js.map +1 -0
  768. package/dist/webhook/dispatch-statuses.d.ts +8 -0
  769. package/dist/webhook/dispatch-statuses.d.ts.map +1 -0
  770. package/dist/webhook/dispatch-statuses.js +19 -0
  771. package/dist/webhook/dispatch-statuses.js.map +1 -0
  772. package/dist/webhook/extract-issue-key.d.ts +10 -0
  773. package/dist/webhook/extract-issue-key.d.ts.map +1 -0
  774. package/dist/webhook/extract-issue-key.js +33 -0
  775. package/dist/webhook/extract-issue-key.js.map +1 -0
  776. package/dist/webhook/filter.d.ts +9 -0
  777. package/dist/webhook/filter.d.ts.map +1 -0
  778. package/dist/webhook/filter.js +27 -0
  779. package/dist/webhook/filter.js.map +1 -0
  780. package/dist/webhook/handle-linear-webhook.d.ts +20 -0
  781. package/dist/webhook/handle-linear-webhook.d.ts.map +1 -0
  782. package/dist/webhook/handle-linear-webhook.js +139 -0
  783. package/dist/webhook/handle-linear-webhook.js.map +1 -0
  784. package/dist/webhook/parse-linear-issue-event.d.ts +31 -0
  785. package/dist/webhook/parse-linear-issue-event.d.ts.map +1 -0
  786. package/dist/webhook/parse-linear-issue-event.js +60 -0
  787. package/dist/webhook/parse-linear-issue-event.js.map +1 -0
  788. package/dist/webhook/redact-log.d.ts +15 -0
  789. package/dist/webhook/redact-log.d.ts.map +1 -0
  790. package/dist/webhook/redact-log.js +13 -0
  791. package/dist/webhook/redact-log.js.map +1 -0
  792. package/dist/webhook/types.d.ts +61 -0
  793. package/dist/webhook/types.d.ts.map +1 -0
  794. package/dist/webhook/types.js +2 -0
  795. package/dist/webhook/types.js.map +1 -0
  796. package/dist/webhook/verify.d.ts +16 -0
  797. package/dist/webhook/verify.d.ts.map +1 -0
  798. package/dist/webhook/verify.js +36 -0
  799. package/dist/webhook/verify.js.map +1 -0
  800. package/dist/webhook/workflow-command.d.ts +3 -0
  801. package/dist/webhook/workflow-command.d.ts.map +1 -0
  802. package/dist/webhook/workflow-command.js +7 -0
  803. package/dist/webhook/workflow-command.js.map +1 -0
  804. package/dist/workflow/dispatch-metadata.d.ts +4 -0
  805. package/dist/workflow/dispatch-metadata.d.ts.map +1 -0
  806. package/dist/workflow/dispatch-metadata.js +50 -0
  807. package/dist/workflow/dispatch-metadata.js.map +1 -0
  808. package/dist/workflow/manifest-summary.d.ts +10 -0
  809. package/dist/workflow/manifest-summary.d.ts.map +1 -0
  810. package/dist/workflow/manifest-summary.js +47 -0
  811. package/dist/workflow/manifest-summary.js.map +1 -0
  812. package/dist/workflow/production-sync-dispatch.d.ts +13 -0
  813. package/dist/workflow/production-sync-dispatch.d.ts.map +1 -0
  814. package/dist/workflow/production-sync-dispatch.js +38 -0
  815. package/dist/workflow/production-sync-dispatch.js.map +1 -0
  816. package/dist/workflow/summarize-manifest.d.ts +2 -0
  817. package/dist/workflow/summarize-manifest.d.ts.map +1 -0
  818. package/dist/workflow/summarize-manifest.js +15 -0
  819. package/dist/workflow/summarize-manifest.js.map +1 -0
  820. package/dist/workflow/validate.d.ts +7 -0
  821. package/dist/workflow/validate.d.ts.map +1 -0
  822. package/dist/workflow/validate.js +32 -0
  823. package/dist/workflow/validate.js.map +1 -0
  824. package/dist/workflow/write-dispatch-metadata.d.ts +2 -0
  825. package/dist/workflow/write-dispatch-metadata.d.ts.map +1 -0
  826. package/dist/workflow/write-dispatch-metadata.js +4 -0
  827. package/dist/workflow/write-dispatch-metadata.js.map +1 -0
  828. package/gui/.next/BUILD_ID +1 -0
  829. package/gui/.next/app-build-manifest.json +232 -0
  830. package/gui/.next/app-path-routes-manifest.json +33 -0
  831. package/gui/.next/build-manifest.json +33 -0
  832. package/gui/.next/diagnostics/build-diagnostics.json +6 -0
  833. package/gui/.next/diagnostics/framework.json +1 -0
  834. package/gui/.next/export-marker.json +6 -0
  835. package/gui/.next/images-manifest.json +58 -0
  836. package/gui/.next/next-minimal-server.js.nft.json +1 -0
  837. package/gui/.next/next-server.js.nft.json +1 -0
  838. package/gui/.next/package.json +1 -0
  839. package/gui/.next/prerender-manifest.json +61 -0
  840. package/gui/.next/react-loadable-manifest.json +1 -0
  841. package/gui/.next/required-server-files.json +333 -0
  842. package/gui/.next/routes-manifest.json +59 -0
  843. package/gui/.next/server/app/_not-found/page.js +2 -0
  844. package/gui/.next/server/app/_not-found/page.js.nft.json +1 -0
  845. package/gui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  846. package/gui/.next/server/app/_not-found.html +1 -0
  847. package/gui/.next/server/app/_not-found.meta +8 -0
  848. package/gui/.next/server/app/_not-found.rsc +17 -0
  849. package/gui/.next/server/app/api/setup/apply-connect-services/route.js +1 -0
  850. package/gui/.next/server/app/api/setup/apply-connect-services/route.js.nft.json +1 -0
  851. package/gui/.next/server/app/api/setup/apply-connect-services/route_client-reference-manifest.js +1 -0
  852. package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route.js +1 -0
  853. package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route.js.nft.json +1 -0
  854. package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route_client-reference-manifest.js +1 -0
  855. package/gui/.next/server/app/api/setup/apply-harness-secrets/route.js +1 -0
  856. package/gui/.next/server/app/api/setup/apply-harness-secrets/route.js.nft.json +1 -0
  857. package/gui/.next/server/app/api/setup/apply-harness-secrets/route_client-reference-manifest.js +1 -0
  858. package/gui/.next/server/app/api/setup/apply-linear-setup/route.js +1 -0
  859. package/gui/.next/server/app/api/setup/apply-linear-setup/route.js.nft.json +1 -0
  860. package/gui/.next/server/app/api/setup/apply-linear-setup/route_client-reference-manifest.js +1 -0
  861. package/gui/.next/server/app/api/setup/apply-local-files/route.js +1 -0
  862. package/gui/.next/server/app/api/setup/apply-local-files/route.js.nft.json +1 -0
  863. package/gui/.next/server/app/api/setup/apply-local-files/route_client-reference-manifest.js +1 -0
  864. package/gui/.next/server/app/api/setup/apply-target-workflow/route.js +1 -0
  865. package/gui/.next/server/app/api/setup/apply-target-workflow/route.js.nft.json +1 -0
  866. package/gui/.next/server/app/api/setup/apply-target-workflow/route_client-reference-manifest.js +1 -0
  867. package/gui/.next/server/app/api/setup/apply-vercel-bridge/route.js +1 -0
  868. package/gui/.next/server/app/api/setup/apply-vercel-bridge/route.js.nft.json +1 -0
  869. package/gui/.next/server/app/api/setup/apply-vercel-bridge/route_client-reference-manifest.js +1 -0
  870. package/gui/.next/server/app/api/setup/finalize-target-workflow/route.js +1 -0
  871. package/gui/.next/server/app/api/setup/finalize-target-workflow/route.js.nft.json +1 -0
  872. package/gui/.next/server/app/api/setup/finalize-target-workflow/route_client-reference-manifest.js +1 -0
  873. package/gui/.next/server/app/api/setup/harness-provisioning-summary/route.js +1 -0
  874. package/gui/.next/server/app/api/setup/harness-provisioning-summary/route.js.nft.json +1 -0
  875. package/gui/.next/server/app/api/setup/harness-provisioning-summary/route_client-reference-manifest.js +1 -0
  876. package/gui/.next/server/app/api/setup/linear-options/route.js +1 -0
  877. package/gui/.next/server/app/api/setup/linear-options/route.js.nft.json +1 -0
  878. package/gui/.next/server/app/api/setup/linear-options/route_client-reference-manifest.js +1 -0
  879. package/gui/.next/server/app/api/setup/linear-summary/route.js +1 -0
  880. package/gui/.next/server/app/api/setup/linear-summary/route.js.nft.json +1 -0
  881. package/gui/.next/server/app/api/setup/linear-summary/route_client-reference-manifest.js +1 -0
  882. package/gui/.next/server/app/api/setup/local-readiness/route.js +1 -0
  883. package/gui/.next/server/app/api/setup/local-readiness/route.js.nft.json +1 -0
  884. package/gui/.next/server/app/api/setup/local-readiness/route_client-reference-manifest.js +1 -0
  885. package/gui/.next/server/app/api/setup/manual-harness-secret-values/route.js +1 -0
  886. package/gui/.next/server/app/api/setup/manual-harness-secret-values/route.js.nft.json +1 -0
  887. package/gui/.next/server/app/api/setup/manual-harness-secret-values/route_client-reference-manifest.js +1 -0
  888. package/gui/.next/server/app/api/setup/preview-connect-services/route.js +1 -0
  889. package/gui/.next/server/app/api/setup/preview-connect-services/route.js.nft.json +1 -0
  890. package/gui/.next/server/app/api/setup/preview-connect-services/route_client-reference-manifest.js +1 -0
  891. package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route.js +1 -0
  892. package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route.js.nft.json +1 -0
  893. package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route_client-reference-manifest.js +1 -0
  894. package/gui/.next/server/app/api/setup/preview-harness-secrets/route.js +1 -0
  895. package/gui/.next/server/app/api/setup/preview-harness-secrets/route.js.nft.json +1 -0
  896. package/gui/.next/server/app/api/setup/preview-harness-secrets/route_client-reference-manifest.js +1 -0
  897. package/gui/.next/server/app/api/setup/preview-linear-setup/route.js +1 -0
  898. package/gui/.next/server/app/api/setup/preview-linear-setup/route.js.nft.json +1 -0
  899. package/gui/.next/server/app/api/setup/preview-linear-setup/route_client-reference-manifest.js +1 -0
  900. package/gui/.next/server/app/api/setup/preview-local-files/route.js +1 -0
  901. package/gui/.next/server/app/api/setup/preview-local-files/route.js.nft.json +1 -0
  902. package/gui/.next/server/app/api/setup/preview-local-files/route_client-reference-manifest.js +1 -0
  903. package/gui/.next/server/app/api/setup/preview-target-workflow/route.js +1 -0
  904. package/gui/.next/server/app/api/setup/preview-target-workflow/route.js.nft.json +1 -0
  905. package/gui/.next/server/app/api/setup/preview-target-workflow/route_client-reference-manifest.js +1 -0
  906. package/gui/.next/server/app/api/setup/preview-vercel-bridge/route.js +1 -0
  907. package/gui/.next/server/app/api/setup/preview-vercel-bridge/route.js.nft.json +1 -0
  908. package/gui/.next/server/app/api/setup/preview-vercel-bridge/route_client-reference-manifest.js +1 -0
  909. package/gui/.next/server/app/api/setup/remote-summary/route.js +1 -0
  910. package/gui/.next/server/app/api/setup/remote-summary/route.js.nft.json +1 -0
  911. package/gui/.next/server/app/api/setup/remote-summary/route_client-reference-manifest.js +1 -0
  912. package/gui/.next/server/app/api/setup/summary/route.js +1 -0
  913. package/gui/.next/server/app/api/setup/summary/route.js.nft.json +1 -0
  914. package/gui/.next/server/app/api/setup/summary/route_client-reference-manifest.js +1 -0
  915. package/gui/.next/server/app/api/setup/vercel-bridge-options/route.js +1 -0
  916. package/gui/.next/server/app/api/setup/vercel-bridge-options/route.js.nft.json +1 -0
  917. package/gui/.next/server/app/api/setup/vercel-bridge-options/route_client-reference-manifest.js +1 -0
  918. package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route.js +1 -0
  919. package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route.js.nft.json +1 -0
  920. package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route_client-reference-manifest.js +1 -0
  921. package/gui/.next/server/app/api/setup/vercel-summary/route.js +1 -0
  922. package/gui/.next/server/app/api/setup/vercel-summary/route.js.nft.json +1 -0
  923. package/gui/.next/server/app/api/setup/vercel-summary/route_client-reference-manifest.js +1 -0
  924. package/gui/.next/server/app/api/setup/verify-harness-repo/route.js +1 -0
  925. package/gui/.next/server/app/api/setup/verify-harness-repo/route.js.nft.json +1 -0
  926. package/gui/.next/server/app/api/setup/verify-harness-repo/route_client-reference-manifest.js +1 -0
  927. package/gui/.next/server/app/api/setup/verify-service/route.js +1 -0
  928. package/gui/.next/server/app/api/setup/verify-service/route.js.nft.json +1 -0
  929. package/gui/.next/server/app/api/setup/verify-service/route_client-reference-manifest.js +1 -0
  930. package/gui/.next/server/app/api/setup/verify-target-repo/route.js +1 -0
  931. package/gui/.next/server/app/api/setup/verify-target-repo/route.js.nft.json +1 -0
  932. package/gui/.next/server/app/api/setup/verify-target-repo/route_client-reference-manifest.js +1 -0
  933. package/gui/.next/server/app/index.html +1 -0
  934. package/gui/.next/server/app/index.meta +9 -0
  935. package/gui/.next/server/app/index.rsc +18 -0
  936. package/gui/.next/server/app/page.js +2 -0
  937. package/gui/.next/server/app/page.js.nft.json +1 -0
  938. package/gui/.next/server/app/page_client-reference-manifest.js +1 -0
  939. package/gui/.next/server/app/settings/configure/page.js +10 -0
  940. package/gui/.next/server/app/settings/configure/page.js.nft.json +1 -0
  941. package/gui/.next/server/app/settings/configure/page_client-reference-manifest.js +1 -0
  942. package/gui/.next/server/app-paths-manifest.json +33 -0
  943. package/gui/.next/server/chunks/120.js +81 -0
  944. package/gui/.next/server/chunks/200.js +1 -0
  945. package/gui/.next/server/chunks/332.js +9 -0
  946. package/gui/.next/server/chunks/383.js +6 -0
  947. package/gui/.next/server/chunks/477.js +16 -0
  948. package/gui/.next/server/chunks/585.js +1 -0
  949. package/gui/.next/server/chunks/711.js +1 -0
  950. package/gui/.next/server/chunks/900.js +1 -0
  951. package/gui/.next/server/chunks/901.js +22 -0
  952. package/gui/.next/server/functions-config-manifest.json +4 -0
  953. package/gui/.next/server/interception-route-rewrite-manifest.js +1 -0
  954. package/gui/.next/server/middleware-build-manifest.js +1 -0
  955. package/gui/.next/server/middleware-manifest.json +6 -0
  956. package/gui/.next/server/middleware-react-loadable-manifest.js +1 -0
  957. package/gui/.next/server/next-font-manifest.js +1 -0
  958. package/gui/.next/server/next-font-manifest.json +1 -0
  959. package/gui/.next/server/pages/404.html +1 -0
  960. package/gui/.next/server/pages/500.html +1 -0
  961. package/gui/.next/server/pages/_app.js +1 -0
  962. package/gui/.next/server/pages/_app.js.nft.json +1 -0
  963. package/gui/.next/server/pages/_document.js +1 -0
  964. package/gui/.next/server/pages/_document.js.nft.json +1 -0
  965. package/gui/.next/server/pages/_error.js +19 -0
  966. package/gui/.next/server/pages/_error.js.nft.json +1 -0
  967. package/gui/.next/server/pages-manifest.json +6 -0
  968. package/gui/.next/server/server-reference-manifest.js +1 -0
  969. package/gui/.next/server/server-reference-manifest.json +1 -0
  970. package/gui/.next/server/webpack-runtime.js +1 -0
  971. package/gui/.next/static/7x8X_k4tESvkyqRnNCC9E/_buildManifest.js +1 -0
  972. package/gui/.next/static/7x8X_k4tESvkyqRnNCC9E/_ssgManifest.js +1 -0
  973. package/gui/.next/static/chunks/17a9af85-3150126cc8b0fbba.js +1 -0
  974. package/gui/.next/static/chunks/18-7be73bec2ceaa744.js +1 -0
  975. package/gui/.next/static/chunks/51af2d27-9a58e6b5db9a3047.js +1 -0
  976. package/gui/.next/static/chunks/661-5fc9351358e2f084.js +1 -0
  977. package/gui/.next/static/chunks/87c73c54-24122e7b92478d00.js +1 -0
  978. package/gui/.next/static/chunks/app/_not-found/page-f15332c94524c284.js +1 -0
  979. package/gui/.next/static/chunks/app/api/setup/apply-connect-services/route-979ec1702bd9938a.js +1 -0
  980. package/gui/.next/static/chunks/app/api/setup/apply-harness-repo-provisioning/route-979ec1702bd9938a.js +1 -0
  981. package/gui/.next/static/chunks/app/api/setup/apply-harness-secrets/route-979ec1702bd9938a.js +1 -0
  982. package/gui/.next/static/chunks/app/api/setup/apply-linear-setup/route-979ec1702bd9938a.js +1 -0
  983. package/gui/.next/static/chunks/app/api/setup/apply-local-files/route-979ec1702bd9938a.js +1 -0
  984. package/gui/.next/static/chunks/app/api/setup/apply-target-workflow/route-979ec1702bd9938a.js +1 -0
  985. package/gui/.next/static/chunks/app/api/setup/apply-vercel-bridge/route-979ec1702bd9938a.js +1 -0
  986. package/gui/.next/static/chunks/app/api/setup/finalize-target-workflow/route-979ec1702bd9938a.js +1 -0
  987. package/gui/.next/static/chunks/app/api/setup/harness-provisioning-summary/route-979ec1702bd9938a.js +1 -0
  988. package/gui/.next/static/chunks/app/api/setup/linear-options/route-979ec1702bd9938a.js +1 -0
  989. package/gui/.next/static/chunks/app/api/setup/linear-summary/route-979ec1702bd9938a.js +1 -0
  990. package/gui/.next/static/chunks/app/api/setup/local-readiness/route-979ec1702bd9938a.js +1 -0
  991. package/gui/.next/static/chunks/app/api/setup/manual-harness-secret-values/route-979ec1702bd9938a.js +1 -0
  992. package/gui/.next/static/chunks/app/api/setup/preview-connect-services/route-979ec1702bd9938a.js +1 -0
  993. package/gui/.next/static/chunks/app/api/setup/preview-harness-repo-provisioning/route-979ec1702bd9938a.js +1 -0
  994. package/gui/.next/static/chunks/app/api/setup/preview-harness-secrets/route-979ec1702bd9938a.js +1 -0
  995. package/gui/.next/static/chunks/app/api/setup/preview-linear-setup/route-979ec1702bd9938a.js +1 -0
  996. package/gui/.next/static/chunks/app/api/setup/preview-local-files/route-979ec1702bd9938a.js +1 -0
  997. package/gui/.next/static/chunks/app/api/setup/preview-target-workflow/route-979ec1702bd9938a.js +1 -0
  998. package/gui/.next/static/chunks/app/api/setup/preview-vercel-bridge/route-979ec1702bd9938a.js +1 -0
  999. package/gui/.next/static/chunks/app/api/setup/remote-summary/route-979ec1702bd9938a.js +1 -0
  1000. package/gui/.next/static/chunks/app/api/setup/summary/route-979ec1702bd9938a.js +1 -0
  1001. package/gui/.next/static/chunks/app/api/setup/vercel-bridge-options/route-979ec1702bd9938a.js +1 -0
  1002. package/gui/.next/static/chunks/app/api/setup/vercel-bridge-redeploy-status/route-979ec1702bd9938a.js +1 -0
  1003. package/gui/.next/static/chunks/app/api/setup/vercel-summary/route-979ec1702bd9938a.js +1 -0
  1004. package/gui/.next/static/chunks/app/api/setup/verify-harness-repo/route-979ec1702bd9938a.js +1 -0
  1005. package/gui/.next/static/chunks/app/api/setup/verify-service/route-979ec1702bd9938a.js +1 -0
  1006. package/gui/.next/static/chunks/app/api/setup/verify-target-repo/route-979ec1702bd9938a.js +1 -0
  1007. package/gui/.next/static/chunks/app/layout-10445a363bff6a38.js +1 -0
  1008. package/gui/.next/static/chunks/app/page-979ec1702bd9938a.js +1 -0
  1009. package/gui/.next/static/chunks/app/settings/configure/page-25b2288ace2949a1.js +1 -0
  1010. package/gui/.next/static/chunks/framework-7318ce553e854ad6.js +1 -0
  1011. package/gui/.next/static/chunks/main-app-732547e2b1a794b6.js +1 -0
  1012. package/gui/.next/static/chunks/main-f7a784f5852cbbd1.js +1 -0
  1013. package/gui/.next/static/chunks/pages/_app-2e239ff05bfdf6d6.js +1 -0
  1014. package/gui/.next/static/chunks/pages/_error-bda15e7831eec981.js +1 -0
  1015. package/gui/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  1016. package/gui/.next/static/chunks/webpack-1e50074b7e886e1b.js +1 -0
  1017. package/gui/.next/static/css/cc2acc71c03f3b4b.css +3 -0
  1018. package/gui/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  1019. package/gui/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  1020. package/gui/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  1021. package/gui/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  1022. package/gui/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  1023. package/gui/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  1024. package/gui/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  1025. package/gui/.next/trace +4 -0
  1026. package/gui/.next/types/app/api/setup/apply-connect-services/route.ts +347 -0
  1027. package/gui/.next/types/app/api/setup/apply-harness-repo-provisioning/route.ts +347 -0
  1028. package/gui/.next/types/app/api/setup/apply-harness-secrets/route.ts +347 -0
  1029. package/gui/.next/types/app/api/setup/apply-linear-setup/route.ts +347 -0
  1030. package/gui/.next/types/app/api/setup/apply-local-files/route.ts +347 -0
  1031. package/gui/.next/types/app/api/setup/apply-target-workflow/route.ts +347 -0
  1032. package/gui/.next/types/app/api/setup/apply-vercel-bridge/route.ts +347 -0
  1033. package/gui/.next/types/app/api/setup/finalize-target-workflow/route.ts +347 -0
  1034. package/gui/.next/types/app/api/setup/harness-provisioning-summary/route.ts +347 -0
  1035. package/gui/.next/types/app/api/setup/linear-options/route.ts +347 -0
  1036. package/gui/.next/types/app/api/setup/linear-summary/route.ts +347 -0
  1037. package/gui/.next/types/app/api/setup/local-readiness/route.ts +347 -0
  1038. package/gui/.next/types/app/api/setup/manual-harness-secret-values/route.ts +347 -0
  1039. package/gui/.next/types/app/api/setup/preview-connect-services/route.ts +347 -0
  1040. package/gui/.next/types/app/api/setup/preview-harness-repo-provisioning/route.ts +347 -0
  1041. package/gui/.next/types/app/api/setup/preview-harness-secrets/route.ts +347 -0
  1042. package/gui/.next/types/app/api/setup/preview-linear-setup/route.ts +347 -0
  1043. package/gui/.next/types/app/api/setup/preview-local-files/route.ts +347 -0
  1044. package/gui/.next/types/app/api/setup/preview-target-workflow/route.ts +347 -0
  1045. package/gui/.next/types/app/api/setup/preview-vercel-bridge/route.ts +347 -0
  1046. package/gui/.next/types/app/api/setup/remote-summary/route.ts +347 -0
  1047. package/gui/.next/types/app/api/setup/summary/route.ts +347 -0
  1048. package/gui/.next/types/app/api/setup/vercel-bridge-options/route.ts +347 -0
  1049. package/gui/.next/types/app/api/setup/vercel-bridge-redeploy-status/route.ts +347 -0
  1050. package/gui/.next/types/app/api/setup/vercel-summary/route.ts +347 -0
  1051. package/gui/.next/types/app/api/setup/verify-harness-repo/route.ts +347 -0
  1052. package/gui/.next/types/app/api/setup/verify-service/route.ts +347 -0
  1053. package/gui/.next/types/app/api/setup/verify-target-repo/route.ts +347 -0
  1054. package/gui/.next/types/app/layout.ts +84 -0
  1055. package/gui/.next/types/app/page.ts +84 -0
  1056. package/gui/.next/types/app/settings/configure/page.ts +84 -0
  1057. package/gui/.next/types/cache-life.d.ts +141 -0
  1058. package/gui/.next/types/package.json +1 -0
  1059. package/gui/.next/types/routes.d.ts +101 -0
  1060. package/gui/.next/types/validator.ts +331 -0
  1061. package/gui/next.config.mjs +13 -0
  1062. package/gui/postcss.config.mjs +8 -0
  1063. package/gui/public/setup/github-token/github-pat-generate-classic.png +0 -0
  1064. package/gui/public/setup/github-token/github-pat-generate-new-token.png +0 -0
  1065. package/gui/public/setup/github-token/github-pat-verify-email.png +0 -0
  1066. package/package.json +62 -0
  1067. package/templates/.env.example +37 -0
  1068. package/templates/.harness/config.example.json +83 -0
@@ -0,0 +1,816 @@
1
+ import { mkdir, writeFile } from "node:fs/promises";
2
+ import { DEFAULT_MERGE_DEPLOYMENT_POLL_INTERVAL_SECONDS, DEFAULT_MERGE_DEPLOYMENT_POLL_TIMEOUT_SECONDS, DEFAULT_MERGE_CHECK_POLL_TIMEOUT_SECONDS, DEFAULT_MERGE_DEPLOYMENT_REQUIRED, DEFAULT_MERGE_METHOD, MERGE_PROMPT_VERSION, MILESTONE, } from "../../config/defaults.js";
3
+ import { getTransitionalStatus, resolveMergeSuccessStatus, } from "../../config/status-names.js";
4
+ import { writeManifest } from "../../artifacts/manifest.js";
5
+ import { writeRunSummary } from "../../artifacts/summary.js";
6
+ import { getGithubChecksBeforeMergePath, getGithubMergeResultPath, getGithubPrAfterMergePath, getGithubPrBeforeMergePath, getIssueSnapshotAfterPath, getMergeCompletionCommentPath, getMergeRecoveryPath, getMergeSourceCommentLoadedPath, getProductionDeploymentPath, } from "../../artifacts/paths.js";
7
+ import { buildMergeCompletionCommentBody, parsePrNumberFromUrl, writeCommentsArtifact, } from "../../linear/comments.js";
8
+ import { parseHarnessMarkers } from "../../linear/markers.js";
9
+ import { fetchLinearIssue } from "../../linear/client.js";
10
+ import { findLatestMergeSourceComment } from "../../linear/merge-source-comment.js";
11
+ import { createLinearClient, listIssueComments, postErrorComment, postMergeCompletionComment, postPhaseStartCommentIfNeeded, transitionIssueStatus, } from "../../linear/writer.js";
12
+ import { GitHubClient } from "../../github/client.js";
13
+ import { assertPrBaseBranchMatches, assertPullRequestMergeable, isIntegrationRepairEligible, } from "../../github/base-branch.js";
14
+ import { evaluateChecksForMerge } from "../../github/check-policy.js";
15
+ import { classifyMergeError, isAlreadyMergedError } from "../../github/merge-result.js";
16
+ import { classifyGitHubError, inspectPullRequestForMerge, inspectPullRequestPostMerge, } from "../../github/pr-inspector.js";
17
+ import { parsePrUrl } from "../../github/pr-url.js";
18
+ import { pollForProductionDeployment, inferVercelReadyFromComments } from "../../preview/production-from-merge.js";
19
+ import { resolvePreviewLinks } from "../../preview/urls.js";
20
+ import { normalizeRepoUrl } from "../../resolver/normalize-repo.js";
21
+ import { resolveModelId } from "../../agents/index.js";
22
+ import { MergeError } from "../errors.js";
23
+ import { attemptIntegrationRepair } from "./integration-repair.js";
24
+ import { runPreflight } from "../preflight.js";
25
+ import { assertMergeEligibleStatus, checkMergeIdempotency, } from "../idempotency.js";
26
+ function requireEnv(name) {
27
+ const value = process.env[name];
28
+ if (!value) {
29
+ throw new MergeError(name === "LINEAR_API_KEY" ? "linear_auth_failure" : "github_auth_failure", `${name} is required for live merge runs`);
30
+ }
31
+ return value;
32
+ }
33
+ function emptyMergeManifestFields() {
34
+ return {
35
+ changedFiles: null,
36
+ checkSummary: null,
37
+ previousImplementationRunId: null,
38
+ previousHandoffRunId: null,
39
+ pmFeedbackCommentId: null,
40
+ previousRevisionRunId: null,
41
+ mergeCommitSha: null,
42
+ mergeMethod: null,
43
+ mergedAt: null,
44
+ deploymentUrl: null,
45
+ };
46
+ }
47
+ function getProductionUrlReference(config, repoConfigId) {
48
+ const mapping = config.repos.find((repo) => repo.id === repoConfigId);
49
+ return mapping?.productionUrl ?? null;
50
+ }
51
+ const DRAFT_READY_POLL_TIMEOUT_MS = 30_000;
52
+ const DRAFT_READY_POLL_INTERVAL_MS = 2_000;
53
+ const MAX_REPAIR_FAILURES_PER_ISSUE = 3;
54
+ function countRepairFailuresForPr(comments, orchestratorMarker, prUrl) {
55
+ return comments.filter((comment) => {
56
+ const markers = parseHarnessMarkers(comment.body);
57
+ return (markers.orchestratorMarker === orchestratorMarker &&
58
+ markers.phase === "repair_failed" &&
59
+ markers.prUrl === prUrl);
60
+ }).length;
61
+ }
62
+ async function ensurePullRequestReadyForMerge(github, parsedPr, markerTargetRepo, events, prUrl, initialInspection) {
63
+ if (!initialInspection.isDraft) {
64
+ return initialInspection;
65
+ }
66
+ await github.markPullRequestReadyForReview(parsedPr.owner, parsedPr.repo, parsedPr.pullNumber);
67
+ const deadline = Date.now() + DRAFT_READY_POLL_TIMEOUT_MS;
68
+ let pollCount = 0;
69
+ let lastDraft = true;
70
+ while (Date.now() < deadline) {
71
+ const inspection = await inspectPullRequestForMerge(github, parsedPr, markerTargetRepo);
72
+ pollCount += 1;
73
+ lastDraft = inspection.isDraft;
74
+ if (!inspection.isDraft) {
75
+ await events.log("github_pr_marked_ready", "info", { prUrl, pollCount });
76
+ return inspection;
77
+ }
78
+ await new Promise((resolve) => setTimeout(resolve, DRAFT_READY_POLL_INTERVAL_MS));
79
+ }
80
+ throw new MergeError("github_merge_failure", `Pull request remained draft after mark-ready request (pollCount=${pollCount}, lastDraft=${lastDraft})`);
81
+ }
82
+ async function writeErrorArtifact(runDirectory, message, errorClassification) {
83
+ await mkdir(`${runDirectory}/errors`, { recursive: true });
84
+ await writeFile(`${runDirectory}/errors/error.json`, `${JSON.stringify({ message, errorClassification }, null, 2)}\n`, "utf8");
85
+ }
86
+ async function writeMergeRecoveryArtifact(runDirectory, recovery) {
87
+ await mkdir(`${runDirectory}/outputs`, { recursive: true });
88
+ await writeFile(getMergeRecoveryPath(runDirectory), `${JSON.stringify(recovery, null, 2)}\n`, "utf8");
89
+ }
90
+ async function writeFinalManifest(manifest, runDirectory, parsed, resolved, events, finalOutcome, errorClassification) {
91
+ if (runDirectory) {
92
+ await writeManifest(runDirectory, manifest);
93
+ await writeRunSummary(runDirectory, manifest, parsed, resolved);
94
+ await events?.log("run_finished", finalOutcome === "success" ? "info" : "error", {
95
+ finalOutcome,
96
+ errorClassification,
97
+ });
98
+ }
99
+ const exitCode = finalOutcome === "success" || finalOutcome === "duplicate"
100
+ ? 0
101
+ : errorClassification &&
102
+ [
103
+ "ambiguous_issue",
104
+ "missing_target_repo",
105
+ "unknown_repo_denied",
106
+ "wrong_status",
107
+ "linear_auth_failure",
108
+ "github_auth_failure",
109
+ "missing_merge_source_marker",
110
+ "missing_pr_url",
111
+ "base_branch_missing",
112
+ "wrong_pr_base_branch",
113
+ "checks_failing",
114
+ "checks_pending",
115
+ "checks_unknown",
116
+ ].includes(errorClassification)
117
+ ? 2
118
+ : 3;
119
+ return { manifest, runDirectory, exitCode };
120
+ }
121
+ async function postCompletionAndTransition(client, issue, mergeBody, footer, mergeSuccessStatus, events, linearStatusBefore) {
122
+ const commentId = await postMergeCompletionComment(client, issue.id, mergeBody, footer);
123
+ await events.log("merge_comment_posted", "info", { commentId });
124
+ await events.log("linear_comment_posted", "info", {
125
+ phase: "merge",
126
+ commentId,
127
+ });
128
+ await transitionIssueStatus(client, issue, mergeSuccessStatus);
129
+ await events.log("linear_status_changed", "info", {
130
+ from: linearStatusBefore,
131
+ to: mergeSuccessStatus,
132
+ });
133
+ return mergeSuccessStatus;
134
+ }
135
+ export async function executeMergePhase(options) {
136
+ let linearApiKey;
137
+ let githubToken;
138
+ try {
139
+ githubToken = requireEnv("GITHUB_TOKEN");
140
+ linearApiKey = requireEnv("LINEAR_API_KEY");
141
+ }
142
+ catch (error) {
143
+ if (error instanceof MergeError) {
144
+ const startedAt = new Date().toISOString();
145
+ const manifest = {
146
+ runId: `auth-failure-${options.issueKey}`,
147
+ issueKey: options.issueKey,
148
+ phase: "merge",
149
+ phaseInferredFromStatus: null,
150
+ linearStatusBefore: null,
151
+ linearStatusAfter: null,
152
+ targetRepo: null,
153
+ baseBranch: null,
154
+ resolutionSource: null,
155
+ dryRun: false,
156
+ finalOutcome: "failed",
157
+ errorClassification: error.classification,
158
+ startedAt,
159
+ finishedAt: startedAt,
160
+ milestone: MILESTONE,
161
+ promptVersion: null,
162
+ cursorAgentId: null,
163
+ cursorRunId: null,
164
+ branch: null,
165
+ prUrl: null,
166
+ previewUrl: null,
167
+ validationSummary: null,
168
+ model: null,
169
+ ...emptyMergeManifestFields(),
170
+ };
171
+ return { manifest, runDirectory: "", exitCode: 2 };
172
+ }
173
+ throw error;
174
+ }
175
+ const preflight = await runPreflight({
176
+ issueKey: options.issueKey,
177
+ configPath: options.configPath,
178
+ linearApiKey,
179
+ });
180
+ if (!preflight.success) {
181
+ const manifest = {
182
+ runId: preflight.runId,
183
+ issueKey: options.issueKey,
184
+ phase: "merge",
185
+ phaseInferredFromStatus: preflight.phaseInferredFromStatus,
186
+ linearStatusBefore: preflight.issue?.status ?? null,
187
+ linearStatusAfter: preflight.issue?.status ?? null,
188
+ targetRepo: preflight.resolved?.targetRepo ?? null,
189
+ baseBranch: preflight.resolved?.baseBranch ?? null,
190
+ resolutionSource: preflight.resolved?.resolutionSource ?? null,
191
+ dryRun: false,
192
+ finalOutcome: "failed",
193
+ errorClassification: preflight.errorClassification,
194
+ startedAt: preflight.startedAt.toISOString(),
195
+ finishedAt: new Date().toISOString(),
196
+ milestone: MILESTONE,
197
+ promptVersion: null,
198
+ cursorAgentId: null,
199
+ cursorRunId: null,
200
+ branch: null,
201
+ prUrl: null,
202
+ previewUrl: null,
203
+ validationSummary: null,
204
+ model: preflight.config ? resolveModelId(preflight.config) : null,
205
+ ...emptyMergeManifestFields(),
206
+ };
207
+ return writeFinalManifest(manifest, preflight.runDirectory, preflight.parsed, preflight.resolved, preflight.events, "failed", preflight.errorClassification);
208
+ }
209
+ const { config, issue, parsed, resolved, runId, runDirectory, events, phase, phaseInferredFromStatus, startedAt, } = preflight.context;
210
+ const linearStatusBefore = issue.status;
211
+ let linearStatusAfter = issue.status;
212
+ let finalOutcome = "failed";
213
+ let errorClassification = null;
214
+ let branch = null;
215
+ let prUrl = null;
216
+ let previewUrl = null;
217
+ let validationSummary = null;
218
+ let changedFiles = null;
219
+ let checkSummary = null;
220
+ let previousHandoffRunId = null;
221
+ let previousRevisionRunId = null;
222
+ let mergeCommitSha = null;
223
+ let mergeMethod = config.merge?.mergeMethod ?? DEFAULT_MERGE_METHOD;
224
+ let mergedAt = null;
225
+ let deploymentUrl = null;
226
+ let enteredMerging = false;
227
+ let prMerged = false;
228
+ const model = resolveModelId(config);
229
+ const commentsWritten = [];
230
+ const footerBase = {
231
+ orchestratorMarker: config.orchestratorMarker,
232
+ phase: "merge",
233
+ runId,
234
+ model,
235
+ promptVersion: MERGE_PROMPT_VERSION,
236
+ targetRepo: resolved.targetRepo,
237
+ baseBranch: resolved.baseBranch,
238
+ };
239
+ const client = createLinearClient(linearApiKey);
240
+ const github = new GitHubClient({ token: githubToken });
241
+ const mergeSuccessStatus = resolveMergeSuccessStatus(resolved, config);
242
+ const mergingStatus = getTransitionalStatus(config, "mergingInProgress");
243
+ try {
244
+ const comments = await listIssueComments(client, issue.id);
245
+ const mergeSource = findLatestMergeSourceComment(comments, config.orchestratorMarker);
246
+ if (!mergeSource) {
247
+ throw new MergeError("missing_merge_source_marker", "No durable handoff or revision marker comment found");
248
+ }
249
+ const sourceMarkers = mergeSource.markers;
250
+ if (!sourceMarkers.prUrl) {
251
+ throw new MergeError("missing_pr_url", "Merge source marker is missing pr_url");
252
+ }
253
+ prUrl = sourceMarkers.prUrl;
254
+ branch = sourceMarkers.branch ?? null;
255
+ previewUrl = sourceMarkers.previewUrl ?? null;
256
+ previousHandoffRunId =
257
+ mergeSource.source === "revision"
258
+ ? sourceMarkers.previousHandoffRunId ?? null
259
+ : sourceMarkers.runId ?? null;
260
+ previousRevisionRunId =
261
+ mergeSource.source === "revision" ? sourceMarkers.runId ?? null : null;
262
+ const markerTargetRepo = normalizeRepoUrl(sourceMarkers.targetRepo ?? resolved.targetRepo);
263
+ await mkdir(`${runDirectory}/linear`, { recursive: true });
264
+ await writeFile(getMergeSourceCommentLoadedPath(runDirectory), `${mergeSource.comment.body}\n`, "utf8");
265
+ await events.log("merge_source_comment_loaded", "info", {
266
+ commentId: mergeSource.comment.id,
267
+ source: mergeSource.source,
268
+ });
269
+ const parsedPr = parsePrUrl(prUrl);
270
+ if (!parsedPr) {
271
+ throw new MergeError("missing_pr_url", `Invalid PR URL: ${prUrl}`);
272
+ }
273
+ const earlyIdempotency = checkMergeIdempotency(config, issue, comments, prUrl, false, Boolean(options.force));
274
+ if (earlyIdempotency.skip) {
275
+ await events.log("idempotency_skip", "info", { reason: earlyIdempotency.reason });
276
+ finalOutcome = "duplicate";
277
+ errorClassification = "duplicate_phase_completed";
278
+ const manifest = {
279
+ runId,
280
+ issueKey: options.issueKey,
281
+ phase,
282
+ phaseInferredFromStatus,
283
+ linearStatusBefore,
284
+ linearStatusAfter,
285
+ targetRepo: resolved.targetRepo,
286
+ baseBranch: resolved.baseBranch,
287
+ resolutionSource: resolved.resolutionSource,
288
+ dryRun: false,
289
+ finalOutcome,
290
+ errorClassification,
291
+ startedAt: startedAt.toISOString(),
292
+ finishedAt: new Date().toISOString(),
293
+ milestone: MILESTONE,
294
+ promptVersion: MERGE_PROMPT_VERSION,
295
+ cursorAgentId: null,
296
+ cursorRunId: null,
297
+ branch,
298
+ prUrl,
299
+ previewUrl,
300
+ validationSummary,
301
+ changedFiles,
302
+ checkSummary,
303
+ previousImplementationRunId: null,
304
+ previousHandoffRunId,
305
+ pmFeedbackCommentId: sourceMarkers.pmFeedbackCommentId ?? null,
306
+ previousRevisionRunId,
307
+ mergeCommitSha: null,
308
+ mergeMethod,
309
+ mergedAt: null,
310
+ deploymentUrl,
311
+ model,
312
+ };
313
+ return writeFinalManifest(manifest, runDirectory, parsed, resolved, events, finalOutcome, errorClassification);
314
+ }
315
+ const readyToMerge = getTransitionalStatus(config, "readyToMerge");
316
+ const issueStatus = issue.status?.trim() ?? "";
317
+ if (issueStatus.toLowerCase() === readyToMerge.toLowerCase()) {
318
+ await transitionIssueStatus(client, issue, mergingStatus);
319
+ enteredMerging = true;
320
+ linearStatusAfter = mergingStatus;
321
+ await events.log("linear_status_changed", "info", {
322
+ from: linearStatusBefore,
323
+ to: mergingStatus,
324
+ });
325
+ const mergeStartCommentId = await postPhaseStartCommentIfNeeded(client, issue.id, {
326
+ orchestratorMarker: config.orchestratorMarker,
327
+ phase: "merge_start",
328
+ runId,
329
+ issueKey: issue.identifier,
330
+ targetRepo: markerTargetRepo,
331
+ baseBranch: resolved.baseBranch,
332
+ model,
333
+ promptVersion: MERGE_PROMPT_VERSION,
334
+ branch: branch ?? undefined,
335
+ prUrl,
336
+ });
337
+ if (mergeStartCommentId) {
338
+ await events.log("phase_start_comment_posted", "info", {
339
+ phase: "merge_start",
340
+ commentId: mergeStartCommentId,
341
+ });
342
+ await events.log("linear_comment_posted", "info", {
343
+ phase: "merge_start",
344
+ commentId: mergeStartCommentId,
345
+ });
346
+ }
347
+ }
348
+ let preInspection;
349
+ try {
350
+ preInspection = await inspectPullRequestForMerge(github, parsedPr, markerTargetRepo);
351
+ }
352
+ catch (error) {
353
+ const classification = classifyGitHubError(error);
354
+ const message = error instanceof Error ? error.message : String(error);
355
+ if (message.includes("wrong_target_repo")) {
356
+ throw new MergeError("wrong_target_repo", message);
357
+ }
358
+ if (message.includes("pr_closed")) {
359
+ throw new MergeError("pr_closed", message);
360
+ }
361
+ throw new MergeError(classification, message);
362
+ }
363
+ prMerged = preInspection.merged;
364
+ branch = preInspection.branch;
365
+ prUrl = preInspection.url;
366
+ try {
367
+ assertPrBaseBranchMatches({
368
+ prUrl,
369
+ actualBaseBranch: preInspection.baseBranch,
370
+ expectedBaseBranch: resolved.baseBranch,
371
+ });
372
+ }
373
+ catch (error) {
374
+ throw new MergeError("wrong_pr_base_branch", error instanceof Error ? error.message : String(error));
375
+ }
376
+ changedFiles = preInspection.changedFiles.map((f) => f.path);
377
+ checkSummary = preInspection.checkSummary;
378
+ const idempotency = checkMergeIdempotency(config, issue, comments, prUrl, prMerged, Boolean(options.force));
379
+ if (idempotency.skip) {
380
+ await events.log("idempotency_skip", "info", { reason: idempotency.reason });
381
+ finalOutcome = "duplicate";
382
+ errorClassification = "duplicate_phase_completed";
383
+ const manifest = {
384
+ runId,
385
+ issueKey: options.issueKey,
386
+ phase,
387
+ phaseInferredFromStatus,
388
+ linearStatusBefore,
389
+ linearStatusAfter,
390
+ targetRepo: resolved.targetRepo,
391
+ baseBranch: resolved.baseBranch,
392
+ resolutionSource: resolved.resolutionSource,
393
+ dryRun: false,
394
+ finalOutcome,
395
+ errorClassification,
396
+ startedAt: startedAt.toISOString(),
397
+ finishedAt: new Date().toISOString(),
398
+ milestone: MILESTONE,
399
+ promptVersion: MERGE_PROMPT_VERSION,
400
+ cursorAgentId: null,
401
+ cursorRunId: null,
402
+ branch,
403
+ prUrl,
404
+ previewUrl,
405
+ validationSummary,
406
+ changedFiles,
407
+ checkSummary,
408
+ previousImplementationRunId: null,
409
+ previousHandoffRunId,
410
+ pmFeedbackCommentId: sourceMarkers.pmFeedbackCommentId ?? null,
411
+ previousRevisionRunId,
412
+ mergeCommitSha: preInspection.mergeCommitSha,
413
+ mergeMethod,
414
+ mergedAt: preInspection.mergedAt,
415
+ deploymentUrl,
416
+ model,
417
+ };
418
+ return writeFinalManifest(manifest, runDirectory, parsed, resolved, events, finalOutcome, errorClassification);
419
+ }
420
+ if (idempotency.reason?.startsWith("wrong_status")) {
421
+ throw new MergeError("wrong_status", idempotency.reason);
422
+ }
423
+ const isRecovery = idempotency.reason?.startsWith("recovery:");
424
+ if (!isRecovery) {
425
+ try {
426
+ assertMergeEligibleStatus(config, issue, Boolean(options.force));
427
+ }
428
+ catch (error) {
429
+ throw new MergeError("wrong_status", error instanceof Error ? error.message : String(error));
430
+ }
431
+ }
432
+ await mkdir(`${runDirectory}/github`, { recursive: true });
433
+ await writeFile(getGithubPrBeforeMergePath(runDirectory), `${JSON.stringify(preInspection, null, 2)}\n`, "utf8");
434
+ if (preInspection.rawChecks) {
435
+ await writeFile(getGithubChecksBeforeMergePath(runDirectory), `${JSON.stringify({ check_runs: preInspection.rawChecks }, null, 2)}\n`, "utf8");
436
+ }
437
+ if (!prMerged) {
438
+ const checkPollTimeout = config.merge?.checkPollTimeoutSeconds ?? DEFAULT_MERGE_CHECK_POLL_TIMEOUT_SECONDS;
439
+ const checkPollInterval = config.merge?.deploymentPollIntervalSeconds ??
440
+ DEFAULT_MERGE_DEPLOYMENT_POLL_INTERVAL_SECONDS;
441
+ let checkPolicy = evaluateChecksForMerge(preInspection.checks, config);
442
+ const pollDeadline = Date.now() + checkPollTimeout * 1000;
443
+ while (checkPolicy.decision === "block" &&
444
+ checkPolicy.classification === "checks_pending" &&
445
+ Date.now() < pollDeadline) {
446
+ await new Promise((resolve) => setTimeout(resolve, checkPollInterval * 1000));
447
+ preInspection = await inspectPullRequestForMerge(github, parsedPr, markerTargetRepo);
448
+ checkPolicy = evaluateChecksForMerge(preInspection.checks, config);
449
+ }
450
+ await events.log("merge_checks_evaluated", "info", {
451
+ decision: checkPolicy.decision,
452
+ reason: checkPolicy.reason,
453
+ });
454
+ if (checkPolicy.decision === "block" &&
455
+ (checkPolicy.classification === "checks_pending" ||
456
+ checkPolicy.classification === "checks_unknown") &&
457
+ inferVercelReadyFromComments(preInspection.comments)) {
458
+ const warning = "GitHub checks inconclusive; proceeding because Vercel deployment comment reports Ready";
459
+ validationSummary = [validationSummary, warning].filter(Boolean).join("; ");
460
+ checkPolicy = {
461
+ decision: "allow",
462
+ classification: null,
463
+ reason: warning,
464
+ warnings: [warning],
465
+ };
466
+ }
467
+ if (checkPolicy.decision === "block") {
468
+ throw new MergeError(checkPolicy.classification ?? "checks_failing", checkPolicy.reason);
469
+ }
470
+ if (checkPolicy.warnings.length > 0) {
471
+ validationSummary = checkPolicy.warnings.join("; ");
472
+ }
473
+ changedFiles = preInspection.changedFiles.map((f) => f.path);
474
+ checkSummary = preInspection.checkSummary;
475
+ await writeFile(getGithubPrBeforeMergePath(runDirectory), `${JSON.stringify(preInspection, null, 2)}\n`, "utf8");
476
+ if (preInspection.rawChecks) {
477
+ await writeFile(getGithubChecksBeforeMergePath(runDirectory), `${JSON.stringify({ check_runs: preInspection.rawChecks }, null, 2)}\n`, "utf8");
478
+ }
479
+ if (preInspection.isDraft) {
480
+ preInspection = await ensurePullRequestReadyForMerge(github, parsedPr, markerTargetRepo, events, prUrl, preInspection);
481
+ }
482
+ preInspection = await inspectPullRequestForMerge(github, parsedPr, markerTargetRepo);
483
+ assertPrBaseBranchMatches({
484
+ prUrl: preInspection.url,
485
+ actualBaseBranch: preInspection.baseBranch,
486
+ expectedBaseBranch: resolved.baseBranch,
487
+ });
488
+ try {
489
+ assertPullRequestMergeable({
490
+ prUrl: preInspection.url,
491
+ merged: preInspection.merged,
492
+ mergeable: preInspection.mergeable,
493
+ mergeableState: preInspection.mergeableState,
494
+ baseBranch: resolved.baseBranch,
495
+ });
496
+ }
497
+ catch (error) {
498
+ if (isIntegrationRepairEligible({
499
+ mergeable: preInspection.mergeable,
500
+ mergeableState: preInspection.mergeableState,
501
+ })) {
502
+ const repairFailureCount = countRepairFailuresForPr(comments, config.orchestratorMarker, preInspection.url);
503
+ if (repairFailureCount >= MAX_REPAIR_FAILURES_PER_ISSUE) {
504
+ throw new MergeError("github_merge_failure", `Integration repair has already failed ${repairFailureCount} time(s) for this PR. Manual recovery is required.`);
505
+ }
506
+ const repair = await attemptIntegrationRepair({
507
+ github,
508
+ linearClient: client,
509
+ issue,
510
+ config,
511
+ parsedIssue: parsed,
512
+ resolved,
513
+ parsedPr,
514
+ markerTargetRepo,
515
+ runId,
516
+ runDirectory,
517
+ events,
518
+ model,
519
+ initialInspection: preInspection,
520
+ cursorApiKey: process.env.CURSOR_API_KEY,
521
+ });
522
+ preInspection = repair.inspection;
523
+ changedFiles = preInspection.changedFiles.map((f) => f.path);
524
+ checkSummary = preInspection.checkSummary;
525
+ validationSummary = [validationSummary, repair.validationSummary]
526
+ .filter(Boolean)
527
+ .join("; ");
528
+ try {
529
+ assertPullRequestMergeable({
530
+ prUrl: preInspection.url,
531
+ merged: preInspection.merged,
532
+ mergeable: preInspection.mergeable,
533
+ mergeableState: preInspection.mergeableState,
534
+ baseBranch: resolved.baseBranch,
535
+ });
536
+ }
537
+ catch (postRepairError) {
538
+ throw new MergeError("github_merge_failure", postRepairError instanceof Error
539
+ ? postRepairError.message
540
+ : String(postRepairError));
541
+ }
542
+ }
543
+ else {
544
+ throw new MergeError("github_merge_failure", error instanceof Error ? error.message : String(error));
545
+ }
546
+ }
547
+ await events.log("github_merge_requested", "info", {
548
+ prUrl,
549
+ mergeMethod,
550
+ });
551
+ try {
552
+ const mergeResult = await github.mergePullRequest(parsedPr.owner, parsedPr.repo, parsedPr.pullNumber, { mergeMethod: mergeMethod, commitTitle: preInspection.title });
553
+ mergeCommitSha = mergeResult.sha;
554
+ prMerged = mergeResult.merged;
555
+ await writeFile(getGithubMergeResultPath(runDirectory), `${JSON.stringify(mergeResult, null, 2)}\n`, "utf8");
556
+ await events.log("github_merge_completed", "info", {
557
+ mergeCommitSha,
558
+ merged: prMerged,
559
+ });
560
+ }
561
+ catch (error) {
562
+ if (isAlreadyMergedError(error)) {
563
+ prMerged = true;
564
+ }
565
+ else {
566
+ const classification = classifyMergeError(error);
567
+ throw new MergeError(classification, error instanceof Error ? error.message : String(error));
568
+ }
569
+ }
570
+ }
571
+ else {
572
+ mergeCommitSha = preInspection.mergeCommitSha;
573
+ mergedAt = preInspection.mergedAt;
574
+ }
575
+ let postInspection;
576
+ try {
577
+ postInspection = await inspectPullRequestPostMerge(github, parsedPr, markerTargetRepo);
578
+ }
579
+ catch {
580
+ postInspection = preInspection;
581
+ }
582
+ mergeCommitSha = postInspection.mergeCommitSha ?? mergeCommitSha;
583
+ mergedAt = postInspection.mergedAt ?? mergedAt;
584
+ if (!changedFiles?.length) {
585
+ changedFiles = postInspection.changedFiles.map((f) => f.path);
586
+ }
587
+ await writeFile(getGithubPrAfterMergePath(runDirectory), `${JSON.stringify(postInspection, null, 2)}\n`, "utf8");
588
+ if (enteredMerging && !postInspection.merged) {
589
+ throw new MergeError("github_merge_failure", "Pull request was not merged after merge request");
590
+ }
591
+ const mergedToProduction = resolved.baseBranch === resolved.productionBranch;
592
+ const productionReference = getProductionUrlReference(config, resolved.repoConfigId);
593
+ if (mergedToProduction) {
594
+ const deploymentPollTimeout = config.merge?.deploymentPollTimeoutSeconds ??
595
+ DEFAULT_MERGE_DEPLOYMENT_POLL_TIMEOUT_SECONDS;
596
+ const deploymentPollInterval = config.merge?.deploymentPollIntervalSeconds ??
597
+ DEFAULT_MERGE_DEPLOYMENT_POLL_INTERVAL_SECONDS;
598
+ await events.log("deployment_poll_started", "info", {
599
+ pollTimeoutSeconds: deploymentPollTimeout,
600
+ mergedToProduction: true,
601
+ });
602
+ const deploymentResult = await pollForProductionDeployment(async () => {
603
+ const latest = await inspectPullRequestPostMerge(github, parsedPr, markerTargetRepo).catch(() => postInspection);
604
+ return {
605
+ comments: latest.comments,
606
+ checks: latest.checks,
607
+ };
608
+ }, {
609
+ pollTimeoutSeconds: deploymentPollTimeout,
610
+ pollIntervalSeconds: deploymentPollInterval,
611
+ productionUrlReference: productionReference,
612
+ });
613
+ deploymentUrl = deploymentResult.deploymentUrl;
614
+ await mkdir(`${runDirectory}/vercel`, { recursive: true });
615
+ await writeFile(getProductionDeploymentPath(runDirectory), `${JSON.stringify(deploymentResult, null, 2)}\n`, "utf8");
616
+ const deploymentRequired = config.merge?.deploymentRequiredForSuccess ??
617
+ DEFAULT_MERGE_DEPLOYMENT_REQUIRED;
618
+ let deploymentWarning = null;
619
+ if (!deploymentUrl) {
620
+ deploymentWarning =
621
+ deploymentResult.warnings.join("; ") ||
622
+ "Production deployment URL not captured";
623
+ await events.log("deployment_not_found", "warn", {
624
+ warnings: deploymentResult.warnings,
625
+ });
626
+ if (deploymentRequired) {
627
+ throw new MergeError("deployment_not_found", deploymentWarning);
628
+ }
629
+ validationSummary = [validationSummary, deploymentWarning]
630
+ .filter(Boolean)
631
+ .join("; ");
632
+ }
633
+ else {
634
+ await events.log("deployment_captured", "info", {
635
+ deploymentUrl,
636
+ source: deploymentResult.source,
637
+ });
638
+ }
639
+ }
640
+ else {
641
+ await events.log("deployment_poll_skipped", "info", {
642
+ reason: "integration_merge",
643
+ baseBranch: resolved.baseBranch,
644
+ productionBranch: resolved.productionBranch,
645
+ });
646
+ }
647
+ const previewLinks = resolvePreviewLinks({
648
+ prPreviewUrl: previewUrl,
649
+ integrationPreviewUrl: resolved.integrationPreviewUrl,
650
+ productionUrl: productionReference,
651
+ capturedDeploymentUrl: deploymentUrl,
652
+ mergedBaseBranch: postInspection.baseBranch,
653
+ productionBranch: resolved.productionBranch,
654
+ });
655
+ const mergeBody = buildMergeCompletionCommentBody({
656
+ prUrl: postInspection.url,
657
+ branch: postInspection.branch,
658
+ targetRepo: markerTargetRepo,
659
+ mergeMethod: mergeMethod ?? DEFAULT_MERGE_METHOD,
660
+ mergeCommitSha,
661
+ mergedAt,
662
+ baseBranch: postInspection.baseBranch,
663
+ productionBranch: resolved.productionBranch,
664
+ previewLinks,
665
+ deploymentWarning: validationSummary,
666
+ changedFiles: changedFiles ?? [],
667
+ checkSummary: checkSummary ?? postInspection.checkSummary,
668
+ finalIssueStatus: mergeSuccessStatus,
669
+ harnessRunId: runId,
670
+ previousHandoffRunId,
671
+ previousRevisionRunId,
672
+ });
673
+ const mergeFooter = {
674
+ ...footerBase,
675
+ issueKey: options.issueKey,
676
+ productionBranch: resolved.productionBranch,
677
+ integrationSuccessStatus: resolved.integrationSuccessStatus ??
678
+ getTransitionalStatus(config, "mergedToDev"),
679
+ branch: branch ?? undefined,
680
+ prUrl: prUrl ?? undefined,
681
+ prNumber: prUrl ? (parsePrNumberFromUrl(prUrl) ?? undefined) : undefined,
682
+ previewUrl: previewUrl ?? undefined,
683
+ previousHandoffRunId: previousHandoffRunId ?? undefined,
684
+ previousRevisionRunId: previousRevisionRunId ?? undefined,
685
+ pmFeedbackCommentId: sourceMarkers.pmFeedbackCommentId ?? undefined,
686
+ mergeCommitSha: mergeCommitSha ?? undefined,
687
+ deploymentUrl: deploymentUrl ?? undefined,
688
+ };
689
+ if (!enteredMerging && !isRecovery) {
690
+ await transitionIssueStatus(client, issue, mergingStatus);
691
+ enteredMerging = true;
692
+ linearStatusAfter = mergingStatus;
693
+ }
694
+ linearStatusAfter = await postCompletionAndTransition(client, issue, mergeBody, mergeFooter, mergeSuccessStatus, events, linearStatusBefore);
695
+ await writeFile(getMergeCompletionCommentPath(runDirectory), `${mergeBody}\n`, "utf8");
696
+ commentsWritten.push(mergeBody);
697
+ const afterIssue = await fetchLinearIssue(options.issueKey, linearApiKey);
698
+ await writeFile(getIssueSnapshotAfterPath(runDirectory), `${JSON.stringify(afterIssue, null, 2)}\n`, "utf8");
699
+ if (commentsWritten.length > 0) {
700
+ await writeCommentsArtifact(runDirectory, commentsWritten);
701
+ }
702
+ finalOutcome = "success";
703
+ errorClassification = null;
704
+ }
705
+ catch (error) {
706
+ if (error instanceof MergeError) {
707
+ errorClassification = error.classification;
708
+ }
709
+ else {
710
+ errorClassification = "linear_write_failure";
711
+ }
712
+ const message = error instanceof Error ? error.message : String(error);
713
+ await writeErrorArtifact(runDirectory, message, errorClassification);
714
+ const mergeFooter = {
715
+ ...footerBase,
716
+ branch: branch ?? undefined,
717
+ prUrl: prUrl ?? undefined,
718
+ previewUrl: previewUrl ?? undefined,
719
+ previousHandoffRunId: previousHandoffRunId ?? undefined,
720
+ previousRevisionRunId: previousRevisionRunId ?? undefined,
721
+ mergeCommitSha: mergeCommitSha ?? undefined,
722
+ deploymentUrl: deploymentUrl ?? undefined,
723
+ };
724
+ if (prMerged && errorClassification === "linear_write_failure") {
725
+ const previewLinks = resolvePreviewLinks({
726
+ prPreviewUrl: previewUrl,
727
+ integrationPreviewUrl: resolved.integrationPreviewUrl,
728
+ productionUrl: getProductionUrlReference(config, resolved.repoConfigId),
729
+ capturedDeploymentUrl: deploymentUrl,
730
+ mergedBaseBranch: resolved.baseBranch,
731
+ productionBranch: resolved.productionBranch,
732
+ });
733
+ const mergeBody = buildMergeCompletionCommentBody({
734
+ prUrl: prUrl ?? "unknown",
735
+ branch: branch ?? "unknown",
736
+ targetRepo: resolved.targetRepo,
737
+ mergeMethod: mergeMethod ?? DEFAULT_MERGE_METHOD,
738
+ mergeCommitSha,
739
+ mergedAt,
740
+ baseBranch: resolved.baseBranch,
741
+ productionBranch: resolved.productionBranch,
742
+ previewLinks,
743
+ deploymentWarning: validationSummary,
744
+ changedFiles: changedFiles ?? [],
745
+ checkSummary: checkSummary ?? "n/a",
746
+ finalIssueStatus: mergeSuccessStatus,
747
+ harnessRunId: runId,
748
+ previousHandoffRunId,
749
+ previousRevisionRunId,
750
+ });
751
+ await writeMergeRecoveryArtifact(runDirectory, {
752
+ prUrl,
753
+ merged: true,
754
+ mergeCommitSha,
755
+ intendedLinearStatus: mergeSuccessStatus,
756
+ intendedCommentBody: mergeBody,
757
+ mergeRunId: runId,
758
+ error: message,
759
+ });
760
+ await events.log("merge_recovery_written", "warn", { prUrl, mergeCommitSha });
761
+ linearStatusAfter = mergingStatus;
762
+ }
763
+ else if (enteredMerging) {
764
+ try {
765
+ await postErrorComment(client, issue.id, message, mergeFooter, "merge");
766
+ const blocked = getTransitionalStatus(config, "blocked");
767
+ await transitionIssueStatus(client, issue, blocked);
768
+ linearStatusAfter = blocked;
769
+ await events.log("linear_status_changed", "info", {
770
+ to: blocked,
771
+ reason: "failure",
772
+ });
773
+ }
774
+ catch {
775
+ // Best-effort blocker update.
776
+ }
777
+ }
778
+ }
779
+ const manifest = {
780
+ runId,
781
+ issueKey: options.issueKey,
782
+ phase: "merge",
783
+ phaseInferredFromStatus,
784
+ linearStatusBefore,
785
+ linearStatusAfter,
786
+ targetRepo: resolved.targetRepo,
787
+ baseBranch: resolved.baseBranch,
788
+ resolutionSource: resolved.resolutionSource,
789
+ dryRun: false,
790
+ finalOutcome,
791
+ errorClassification,
792
+ startedAt: startedAt.toISOString(),
793
+ finishedAt: new Date().toISOString(),
794
+ milestone: MILESTONE,
795
+ promptVersion: MERGE_PROMPT_VERSION,
796
+ cursorAgentId: null,
797
+ cursorRunId: null,
798
+ branch,
799
+ prUrl,
800
+ previewUrl,
801
+ validationSummary,
802
+ changedFiles,
803
+ checkSummary,
804
+ previousImplementationRunId: null,
805
+ previousHandoffRunId,
806
+ pmFeedbackCommentId: null,
807
+ previousRevisionRunId,
808
+ mergeCommitSha,
809
+ mergeMethod,
810
+ mergedAt,
811
+ deploymentUrl,
812
+ model,
813
+ };
814
+ return writeFinalManifest(manifest, runDirectory, parsed, resolved, events, finalOutcome, errorClassification);
815
+ }
816
+ //# sourceMappingURL=merge.js.map