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,779 @@
1
+ import { updateControlPlaneSetupState, readControlPlaneSetupState, } from "./control-plane-setup-state.js";
2
+ import { ensureLinearIssueWebhook, generateLinearWebhookSecret, reconcileLinearWebhookUrlForVerification, resolveLinearWebhookCandidateSecret, } from "./linear-webhook-secret.js";
3
+ import { summarizeLinearWebhookReadiness } from "./linear-setup-plan.js";
4
+ import { assertRemoteSetupConfirmed, assertRemoteSetupFingerprint, assertRemoteSetupPermissionScope, } from "./remote-actions.js";
5
+ import { SETUP_PERMISSIONS } from "./permission-model.js";
6
+ import { collectRemoteSecretInputs } from "./redact-secrets.js";
7
+ import { createVercelProject, createVercelTeam, findExistingProjectByName, findExistingTeamBySlug, listVercelProjectEnvVars, listVercelProjects, listVercelTeams, summarizeRequiredEnvPresence, upsertVercelProjectEnvVar, VercelEnvVarTypeError, } from "./vercel-setup-client.js";
8
+ import { buildVercelBridgeVerificationFingerprint, tokenizeCandidateWebhookSecret, } from "./vercel-bridge-verification.js";
9
+ import { runSignedWebhookProbe } from "./vercel-webhook-probe.js";
10
+ import { isAutoRedeployEligible, isStaleDeploymentSignatureProbeFailure, triggerProductionRedeployOnce, findLatestReadyProductionDeploymentId, } from "./vercel-production-redeploy.js";
11
+ import { createPendingRedeployVerification } from "./vercel-bridge-redeploy-state.js";
12
+ import { persistGeneratedLinearWebhookSecret } from "./linear-webhook-env-local.js";
13
+ import { REQUIRED_VERCEL_BRIDGE_ENV_VARS } from "./vercel-bridge-readiness.js";
14
+ import { VERCEL_SETUP_ACTIONS, buildDeploymentRequiredDetail, buildVercelBridgePreviewFingerprintInput, normalizeVercelBridgePlanInput, previewVercelBridgeSetup, resolveVercelBridgeEnvValue, } from "./vercel-setup-plan.js";
15
+ import { logVercelBridgeEvent } from "./vercel-bridge-structured-log.js";
16
+ async function resolveVercelTeamForApply(input) {
17
+ const normalized = normalizeVercelBridgePlanInput(input.plan);
18
+ if (normalized.team?.mode !== "create") {
19
+ const teamId = normalized.teamId?.trim() ? normalized.teamId : undefined;
20
+ const teams = await listVercelTeams(normalized.vercelToken);
21
+ const existing = teamId
22
+ ? teams.find((team) => team.id === teamId)
23
+ : undefined;
24
+ if (existing) {
25
+ input.reused.push(`team:${existing.slug}`);
26
+ return {
27
+ teamId: existing.id,
28
+ teamName: existing.name,
29
+ team: {
30
+ id: existing.id,
31
+ name: existing.name,
32
+ outcome: "reused",
33
+ },
34
+ };
35
+ }
36
+ return {
37
+ teamId,
38
+ };
39
+ }
40
+ const slug = normalized.team.teamSlug?.trim();
41
+ if (!slug) {
42
+ throw new Error("New Vercel team requires a team slug.");
43
+ }
44
+ const teams = await listVercelTeams(normalized.vercelToken);
45
+ const existing = findExistingTeamBySlug(teams, slug);
46
+ if (existing) {
47
+ input.reused.push(`team:${existing.slug}`);
48
+ return {
49
+ teamId: existing.id,
50
+ teamName: existing.name,
51
+ team: {
52
+ id: existing.id,
53
+ name: existing.name,
54
+ outcome: "reused",
55
+ },
56
+ };
57
+ }
58
+ const createdTeam = await createVercelTeam(normalized.vercelToken, {
59
+ slug,
60
+ name: normalized.team.teamName,
61
+ });
62
+ input.created.push(`team:${createdTeam.slug}`);
63
+ return {
64
+ teamId: createdTeam.id,
65
+ teamName: createdTeam.name,
66
+ team: {
67
+ id: createdTeam.id,
68
+ name: createdTeam.name,
69
+ outcome: "created",
70
+ },
71
+ };
72
+ }
73
+ async function resolveVercelProjectForApply(input) {
74
+ const normalized = normalizeVercelBridgePlanInput(input.plan);
75
+ const projects = await listVercelProjects(normalized.vercelToken, input.teamId);
76
+ if (normalized.project?.mode === "existing") {
77
+ const projectId = normalized.projectId ?? normalized.project.projectId;
78
+ const existing = projects.find((project) => project.id === projectId);
79
+ if (!existing) {
80
+ throw new Error("Selected Vercel project is required for apply.");
81
+ }
82
+ input.reused.push(`project:${existing.name}`);
83
+ return {
84
+ project: existing,
85
+ projectResult: {
86
+ id: existing.id,
87
+ name: existing.name,
88
+ outcome: "reused",
89
+ },
90
+ };
91
+ }
92
+ const projectName = normalized.project?.projectName?.trim();
93
+ if (!projectName) {
94
+ throw new Error("New Vercel project requires a project name.");
95
+ }
96
+ const existing = findExistingProjectByName(projects, projectName);
97
+ if (existing) {
98
+ input.reused.push(`project:${existing.name}`);
99
+ return {
100
+ project: existing,
101
+ projectResult: {
102
+ id: existing.id,
103
+ name: existing.name,
104
+ outcome: "reused",
105
+ },
106
+ };
107
+ }
108
+ const created = await createVercelProject(normalized.vercelToken, {
109
+ name: projectName,
110
+ teamId: input.teamId,
111
+ });
112
+ input.created.push(`project:${created.name}`);
113
+ return {
114
+ project: created,
115
+ projectResult: {
116
+ id: created.id,
117
+ name: created.name,
118
+ outcome: "created",
119
+ },
120
+ };
121
+ }
122
+ function buildSetupBlockedForMissingDeployment() {
123
+ return {
124
+ message: "No READY production deployment was found to redeploy after env var changes.",
125
+ nextSteps: [
126
+ "Deploy the project in Vercel so it has a production deployment.",
127
+ "Return here and apply Vercel settings again.",
128
+ ],
129
+ };
130
+ }
131
+ function buildManualRedeployRecoveryMessage(redeployStatus, redeployMessage) {
132
+ if (redeployStatus === "timeout") {
133
+ return (redeployMessage ??
134
+ "Automatic production redeploy timed out before READY. Redeploy production in Vercel, then use Retry verification.");
135
+ }
136
+ if (redeployStatus === "failed") {
137
+ return (redeployMessage ??
138
+ "Automatic production redeploy failed. Redeploy production in Vercel, then use Retry verification.");
139
+ }
140
+ return "Redeploy production in Vercel, then use Retry verification (this will not rotate secrets or rewrite env vars).";
141
+ }
142
+ async function maybeOrchestrateAutoRedeploy(input) {
143
+ const orchestrationSteps = [
144
+ {
145
+ phase: "writing_env_vars",
146
+ status: input.baseResult.writtenEnvKeys.length > 0 ? "completed" : "failed",
147
+ message: "Writing Vercel env vars…",
148
+ },
149
+ {
150
+ phase: "verifying_webhook",
151
+ status: "failed",
152
+ message: "Initial signed probe failed due to stale deployment.",
153
+ },
154
+ ];
155
+ const envVarsWritten = input.baseResult.writtenEnvKeys.length > 0;
156
+ const signedProbeInitialResult = input.signedProbe;
157
+ if (!envVarsWritten ||
158
+ !isStaleDeploymentSignatureProbeFailure(signedProbeInitialResult)) {
159
+ return {
160
+ ...input.baseResult,
161
+ envVarsWritten,
162
+ signedProbeInitialResult,
163
+ signedProbe: signedProbeInitialResult,
164
+ productionRedeployTriggered: false,
165
+ productionRedeployStatus: "not_triggered",
166
+ orchestrationSteps: orchestrationSteps.slice(0, 1),
167
+ };
168
+ }
169
+ const latestState = await readControlPlaneSetupState(input.applyInput.cwd);
170
+ const existingPending = latestState?.vercel?.redeployVerification ??
171
+ input.priorSelection.redeployVerification;
172
+ if (existingPending?.newDeploymentId &&
173
+ existingPending.fingerprint === input.fingerprint &&
174
+ !["verified", "verify_failed", "failed", "timeout", "no_source_deployment"].includes(existingPending.status)) {
175
+ orchestrationSteps.push({
176
+ phase: "redeploying_production",
177
+ status: "completed",
178
+ message: "Redeploying production so new env vars take effect…",
179
+ });
180
+ return {
181
+ ...input.baseResult,
182
+ envVarsWritten,
183
+ signedProbeInitialResult,
184
+ signedProbe: signedProbeInitialResult,
185
+ productionRedeployTriggered: true,
186
+ productionRedeployStatus: existingPending.status === "building" ? "building" : "triggered",
187
+ setupPending: true,
188
+ pollActionId: existingPending.actionId,
189
+ orchestrationSteps,
190
+ };
191
+ }
192
+ const sourceDeploymentId = await findLatestReadyProductionDeploymentId({
193
+ vercelToken: input.vercelToken,
194
+ projectId: input.projectId,
195
+ teamId: input.teamId,
196
+ });
197
+ if (!isAutoRedeployEligible({
198
+ writtenEnvKeys: input.baseResult.writtenEnvKeys,
199
+ signedProbe: signedProbeInitialResult,
200
+ sourceDeploymentId,
201
+ })) {
202
+ if (!sourceDeploymentId) {
203
+ return {
204
+ ...input.baseResult,
205
+ envVarsWritten,
206
+ signedProbeInitialResult,
207
+ signedProbe: signedProbeInitialResult,
208
+ productionRedeployTriggered: false,
209
+ productionRedeployStatus: "no_source_deployment",
210
+ setupBlocked: buildSetupBlockedForMissingDeployment(),
211
+ orchestrationSteps,
212
+ };
213
+ }
214
+ return {
215
+ ...input.baseResult,
216
+ envVarsWritten,
217
+ signedProbeInitialResult,
218
+ signedProbe: signedProbeInitialResult,
219
+ productionRedeployTriggered: false,
220
+ productionRedeployStatus: "not_triggered",
221
+ orchestrationSteps: orchestrationSteps.slice(0, 1),
222
+ };
223
+ }
224
+ const redeployResult = await triggerProductionRedeployOnce({
225
+ vercelToken: input.vercelToken,
226
+ projectId: input.projectId,
227
+ projectName: input.projectName,
228
+ teamId: input.teamId,
229
+ sourceDeploymentId,
230
+ });
231
+ if (redeployResult.status !== "triggered" || !redeployResult.newDeploymentId) {
232
+ orchestrationSteps.push({
233
+ phase: "redeploying_production",
234
+ status: "failed",
235
+ message: redeployResult.message ??
236
+ "Redeploying production so new env vars take effect…",
237
+ });
238
+ const setupBlocked = redeployResult.status === "no_source_deployment"
239
+ ? buildSetupBlockedForMissingDeployment()
240
+ : {
241
+ message: buildManualRedeployRecoveryMessage(redeployResult.status, redeployResult.message),
242
+ nextSteps: [
243
+ "Redeploy production in Vercel manually if needed.",
244
+ "Use Retry verification without rewriting env vars or rotating secrets.",
245
+ ],
246
+ };
247
+ logVercelBridgeEvent({
248
+ phase: "blocked",
249
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
250
+ pollStatus: redeployResult.status,
251
+ projectId: input.projectId,
252
+ fingerprint: input.fingerprint,
253
+ setupBlockedMessage: setupBlocked.message,
254
+ setupBlockedNextSteps: setupBlocked.nextSteps,
255
+ });
256
+ return {
257
+ ...input.baseResult,
258
+ envVarsWritten,
259
+ signedProbeInitialResult,
260
+ signedProbe: signedProbeInitialResult,
261
+ productionRedeployTriggered: false,
262
+ productionRedeployStatus: redeployResult.status,
263
+ setupBlocked,
264
+ orchestrationSteps,
265
+ };
266
+ }
267
+ const pendingVerification = createPendingRedeployVerification({
268
+ projectId: input.projectId,
269
+ projectName: input.projectName,
270
+ teamId: input.teamId,
271
+ webhookUrl: input.webhookUrl,
272
+ fingerprint: input.fingerprint,
273
+ fingerprintInputs: input.fingerprintInputs,
274
+ candidateSecretSource: input.baseResult.candidateSecretSource,
275
+ sourceDeploymentId: redeployResult.sourceDeploymentId,
276
+ newDeploymentId: redeployResult.newDeploymentId,
277
+ message: redeployResult.message,
278
+ writtenEnvKeys: input.baseResult.writtenEnvKeys,
279
+ skippedEnvKeys: input.baseResult.skippedEnvKeys,
280
+ });
281
+ await updateControlPlaneSetupState({
282
+ vercel: {
283
+ ...input.priorSelection,
284
+ redeployVerification: pendingVerification,
285
+ },
286
+ }, input.applyInput.cwd);
287
+ logVercelBridgeEvent({
288
+ phase: "redeploy_trigger",
289
+ actionId: pendingVerification.actionId,
290
+ pollStatus: "triggered",
291
+ projectId: input.projectId,
292
+ projectName: input.projectName,
293
+ teamId: input.teamId,
294
+ fingerprint: input.fingerprint,
295
+ candidateSecretSource: input.baseResult.candidateSecretSource,
296
+ });
297
+ orchestrationSteps.push({
298
+ phase: "redeploying_production",
299
+ status: "completed",
300
+ message: "Redeploying production so new env vars take effect…",
301
+ });
302
+ return {
303
+ ...input.baseResult,
304
+ envVarsWritten,
305
+ signedProbeInitialResult,
306
+ signedProbe: signedProbeInitialResult,
307
+ productionRedeployTriggered: true,
308
+ productionRedeployStatus: "triggered",
309
+ setupPending: true,
310
+ pollActionId: pendingVerification.actionId,
311
+ orchestrationSteps,
312
+ };
313
+ }
314
+ export async function applyVercelBridgeSetup(input) {
315
+ assertRemoteSetupConfirmed(input.confirmed);
316
+ assertRemoteSetupPermissionScope(VERCEL_SETUP_ACTIONS.apply.permission.scope, SETUP_PERMISSIONS.remoteSecretWrite.scope);
317
+ const normalized = normalizeVercelBridgePlanInput(input.plan);
318
+ logVercelBridgeEvent({
319
+ phase: "apply_start",
320
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
321
+ verifyOnly: input.verifyOnly === true,
322
+ fingerprint: input.fingerprint,
323
+ projectId: normalized.projectId,
324
+ projectName: normalized.projectName,
325
+ teamId: normalized.teamId,
326
+ });
327
+ const initialPreview = await previewVercelBridgeSetup(normalized);
328
+ assertRemoteSetupFingerprint(input.fingerprint, initialPreview.fingerprint);
329
+ if (initialPreview.validationError) {
330
+ throw new Error(initialPreview.validationError);
331
+ }
332
+ const created = [];
333
+ const reused = [];
334
+ const resolvedTeam = await resolveVercelTeamForApply({
335
+ plan: normalized,
336
+ created,
337
+ reused,
338
+ });
339
+ const resolvedProject = await resolveVercelProjectForApply({
340
+ plan: {
341
+ ...normalized,
342
+ teamId: resolvedTeam.teamId,
343
+ projectId: normalized.project?.mode === "existing"
344
+ ? (normalized.projectId ?? normalized.project?.projectId)
345
+ : undefined,
346
+ },
347
+ teamId: resolvedTeam.teamId,
348
+ created,
349
+ reused,
350
+ });
351
+ const planForApply = {
352
+ ...normalized,
353
+ teamId: resolvedTeam.teamId,
354
+ projectId: resolvedProject.project.id,
355
+ projectName: resolvedProject.project.name,
356
+ team: {
357
+ mode: "existing",
358
+ teamId: resolvedTeam.teamId ?? "",
359
+ },
360
+ project: {
361
+ mode: "existing",
362
+ projectId: resolvedProject.project.id,
363
+ projectName: resolvedProject.project.name,
364
+ },
365
+ };
366
+ const preview = await previewVercelBridgeSetup(planForApply);
367
+ if (preview.validationError) {
368
+ throw new Error(preview.validationError);
369
+ }
370
+ if (!preview.selectedProject) {
371
+ throw new Error("Vercel project must be selected before apply.");
372
+ }
373
+ if (!preview.webhookUrl) {
374
+ const projectJustCreated = resolvedProject.projectResult.outcome === "created";
375
+ const deploymentRequired = buildDeploymentRequiredDetail({
376
+ projectName: preview.selectedProject.name,
377
+ projectJustCreated,
378
+ });
379
+ return {
380
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
381
+ status: "deployment-required",
382
+ projectId: preview.selectedProject.id,
383
+ projectName: preview.selectedProject.name,
384
+ team: resolvedTeam.team,
385
+ project: resolvedProject.projectResult,
386
+ writtenEnvKeys: [],
387
+ skippedEnvKeys: [],
388
+ linearWebhookSetup: {
389
+ mode: "manual-copy",
390
+ manualSteps: deploymentRequired.nextSteps,
391
+ },
392
+ deploymentRequired: {
393
+ ...deploymentRequired,
394
+ projectJustCreated,
395
+ },
396
+ verified: false,
397
+ signedProbeVerified: false,
398
+ deploymentRedeployRequired: false,
399
+ fingerprint: preview.fingerprint,
400
+ permission: VERCEL_SETUP_ACTIONS.apply.permission,
401
+ };
402
+ }
403
+ const priorState = await readControlPlaneSetupState(input.cwd);
404
+ const activePendingRedeploy = Boolean(priorState?.vercel?.redeployVerification?.newDeploymentId &&
405
+ priorState.vercel.redeployVerification.status !== "verified" &&
406
+ priorState.vercel.redeployVerification.status !== "verify_failed" &&
407
+ priorState.vercel.redeployVerification.status !== "failed" &&
408
+ priorState.vercel.redeployVerification.status !== "timeout" &&
409
+ priorState.vercel.redeployVerification.status !== "no_source_deployment");
410
+ const isVerificationRetry = input.verifyOnly === true ||
411
+ Boolean(!activePendingRedeploy &&
412
+ priorState?.vercel?.deploymentRedeployRequired &&
413
+ priorState.vercel.projectId === preview.selectedProject.id &&
414
+ priorState.vercel.appliedFingerprint === preview.fingerprint);
415
+ const persistedWebhookUrl = priorState?.vercel?.webhookUrl?.trim();
416
+ const canonicalWebhookUrl = preview.webhookUrl?.trim();
417
+ const hasWebhookUrlDrift = Boolean(isVerificationRetry &&
418
+ persistedWebhookUrl &&
419
+ canonicalWebhookUrl &&
420
+ persistedWebhookUrl !== canonicalWebhookUrl);
421
+ const candidateResolution = await resolveLinearWebhookCandidateSecret({
422
+ linearApiKey: normalized.linearApiKey,
423
+ webhookUrl: preview.webhookUrl,
424
+ linearTeamId: normalized.linearTeamId,
425
+ operatorSecret: normalized.envInput?.LINEAR_WEBHOOK_SECRET,
426
+ });
427
+ const savedVerificationSecret = normalized.verificationLinearWebhookSecret?.trim();
428
+ const useSavedVerificationSecret = Boolean(savedVerificationSecret &&
429
+ (isVerificationRetry || normalized.preserveGeneratedWebhookSecretFingerprint));
430
+ let candidateWebhookSecret = candidateResolution.secret;
431
+ if (useSavedVerificationSecret) {
432
+ candidateWebhookSecret = savedVerificationSecret;
433
+ }
434
+ else if (!candidateWebhookSecret?.trim() && candidateResolution.source === "generated") {
435
+ candidateWebhookSecret = generateLinearWebhookSecret();
436
+ }
437
+ if (candidateResolution.source === "unreadable" &&
438
+ !isVerificationRetry &&
439
+ !candidateWebhookSecret?.trim()) {
440
+ candidateWebhookSecret = generateLinearWebhookSecret();
441
+ }
442
+ if (!isVerificationRetry &&
443
+ candidateWebhookSecret?.trim() &&
444
+ !useSavedVerificationSecret &&
445
+ (candidateResolution.source === "generated" ||
446
+ candidateResolution.source === "unreadable")) {
447
+ await persistGeneratedLinearWebhookSecret({
448
+ cwd: input.cwd,
449
+ secret: candidateWebhookSecret,
450
+ });
451
+ }
452
+ let linearWebhookSetup = {
453
+ mode: "manual-copy",
454
+ manualSteps: candidateResolution.manualSteps,
455
+ manualCopySecret: undefined,
456
+ };
457
+ let webhookUrlReconciliation;
458
+ if (hasWebhookUrlDrift &&
459
+ candidateWebhookSecret?.trim() &&
460
+ useSavedVerificationSecret &&
461
+ normalized.linearApiKey?.trim()) {
462
+ webhookUrlReconciliation = await reconcileLinearWebhookUrlForVerification({
463
+ linearApiKey: normalized.linearApiKey,
464
+ linearTeamId: normalized.linearTeamId,
465
+ previousWebhookUrl: persistedWebhookUrl,
466
+ canonicalWebhookUrl: canonicalWebhookUrl,
467
+ secret: candidateWebhookSecret,
468
+ });
469
+ logVercelBridgeEvent({
470
+ phase: "linear_webhook_url_reconcile",
471
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
472
+ verifyOnly: input.verifyOnly === true,
473
+ projectId: preview.selectedProject.id,
474
+ fingerprint: preview.fingerprint,
475
+ webhookUrlDrift: true,
476
+ reconciliationAttempted: webhookUrlReconciliation.attempted,
477
+ reconciliationSucceeded: webhookUrlReconciliation.reconciled,
478
+ matchingPreviousWebhookFound: webhookUrlReconciliation.matchingPreviousWebhookFound,
479
+ canonicalWebhookExists: webhookUrlReconciliation.canonicalWebhookExists,
480
+ });
481
+ }
482
+ if (candidateResolution.source === "unreadable" &&
483
+ isVerificationRetry) {
484
+ linearWebhookSetup = {
485
+ mode: "existing-unverified",
486
+ manualSteps: candidateResolution.manualSteps,
487
+ manualCopySecret: undefined,
488
+ };
489
+ }
490
+ else if (webhookUrlReconciliation?.attempted &&
491
+ !webhookUrlReconciliation.reconciled) {
492
+ linearWebhookSetup = {
493
+ mode: "existing-unverified",
494
+ manualSteps: webhookUrlReconciliation.manualSteps,
495
+ manualCopySecret: undefined,
496
+ };
497
+ }
498
+ else if (!candidateWebhookSecret?.trim()) {
499
+ linearWebhookSetup = {
500
+ mode: "manual-copy",
501
+ manualSteps: candidateResolution.manualSteps,
502
+ manualCopySecret: undefined,
503
+ };
504
+ }
505
+ else if (normalized.linearApiKey?.trim()) {
506
+ const ensured = await ensureLinearIssueWebhook({
507
+ linearApiKey: normalized.linearApiKey,
508
+ webhookUrl: preview.webhookUrl,
509
+ linearTeamId: normalized.linearTeamId,
510
+ secret: candidateWebhookSecret,
511
+ mutatePolicy: isVerificationRetry ? "verify-only" : "setup",
512
+ });
513
+ linearWebhookSetup = {
514
+ mode: ensured.mode,
515
+ manualSteps: ensured.manualSteps,
516
+ manualCopySecret: ensured.mode === "automated" ? undefined : ensured.secret,
517
+ };
518
+ if (!useSavedVerificationSecret) {
519
+ candidateWebhookSecret = ensured.secret;
520
+ }
521
+ }
522
+ else {
523
+ linearWebhookSetup = {
524
+ mode: "manual-copy",
525
+ manualSteps: [
526
+ "Add LINEAR_API_KEY in Step 1 before automated Linear webhook setup can run.",
527
+ "Copy the generated webhook secret into Linear when prompted.",
528
+ ],
529
+ manualCopySecret: candidateWebhookSecret,
530
+ };
531
+ }
532
+ const knownSecrets = collectRemoteSecretInputs({
533
+ linearApiKey: normalized.linearApiKey,
534
+ githubToken: normalized.envInput?.GITHUB_DISPATCH_TOKEN ??
535
+ normalized.derivedGithubDispatchToken,
536
+ });
537
+ if (candidateWebhookSecret?.trim()) {
538
+ knownSecrets.push(candidateWebhookSecret);
539
+ }
540
+ if (normalized.envInput?.GITHUB_DISPATCH_TOKEN) {
541
+ knownSecrets.push(normalized.envInput.GITHUB_DISPATCH_TOKEN);
542
+ }
543
+ if (normalized.derivedGithubDispatchToken) {
544
+ knownSecrets.push(normalized.derivedGithubDispatchToken);
545
+ }
546
+ const existingEnv = await listVercelProjectEnvVars(normalized.vercelToken, preview.selectedProject.id, resolvedTeam.teamId);
547
+ const existingByKey = new Map(existingEnv.map((env) => [env.key, env]));
548
+ const shouldWriteWebhookSecret = !isVerificationRetry && Boolean(candidateWebhookSecret?.trim());
549
+ const writtenEnvKeys = [];
550
+ const skippedEnvKeys = [];
551
+ for (const entry of preview.envWritePlan) {
552
+ if (entry.action === "skip") {
553
+ skippedEnvKeys.push(entry.key);
554
+ continue;
555
+ }
556
+ if (entry.key === "LINEAR_WEBHOOK_SECRET" && !shouldWriteWebhookSecret) {
557
+ skippedEnvKeys.push(entry.key);
558
+ continue;
559
+ }
560
+ const value = resolveVercelBridgeEnvValue({
561
+ key: entry.key,
562
+ envInput: normalized.envInput,
563
+ derivedHarnessTeamKey: normalized.derivedHarnessTeamKey,
564
+ derivedGithubDispatchToken: normalized.derivedGithubDispatchToken,
565
+ generatedLinearWebhookSecret: candidateWebhookSecret,
566
+ });
567
+ if (!value?.trim()) {
568
+ skippedEnvKeys.push(entry.key);
569
+ continue;
570
+ }
571
+ const existing = existingByKey.get(entry.key);
572
+ try {
573
+ await upsertVercelProjectEnvVar(normalized.vercelToken, {
574
+ projectId: preview.selectedProject.id,
575
+ teamId: resolvedTeam.teamId,
576
+ key: entry.key,
577
+ value: value.trim(),
578
+ existingEnv: existing,
579
+ });
580
+ }
581
+ catch (error) {
582
+ if (error instanceof VercelEnvVarTypeError) {
583
+ throw error;
584
+ }
585
+ throw error;
586
+ }
587
+ writtenEnvKeys.push(entry.key);
588
+ }
589
+ if (shouldWriteWebhookSecret &&
590
+ !writtenEnvKeys.includes("LINEAR_WEBHOOK_SECRET") &&
591
+ candidateWebhookSecret?.trim()) {
592
+ const existing = existingByKey.get("LINEAR_WEBHOOK_SECRET");
593
+ await upsertVercelProjectEnvVar(normalized.vercelToken, {
594
+ projectId: preview.selectedProject.id,
595
+ teamId: resolvedTeam.teamId,
596
+ key: "LINEAR_WEBHOOK_SECRET",
597
+ value: candidateWebhookSecret,
598
+ existingEnv: existing,
599
+ });
600
+ writtenEnvKeys.push("LINEAR_WEBHOOK_SECRET");
601
+ }
602
+ const postWriteEnv = await listVercelProjectEnvVars(normalized.vercelToken, preview.selectedProject.id, resolvedTeam.teamId);
603
+ const requiredEnvPresence = summarizeRequiredEnvPresence(postWriteEnv);
604
+ let linearWebhookVerified = false;
605
+ if (normalized.linearApiKey?.trim()) {
606
+ const webhookSummary = await summarizeLinearWebhookReadiness({
607
+ linearApiKey: normalized.linearApiKey,
608
+ webhookUrl: preview.webhookUrl,
609
+ teamId: normalized.linearTeamId,
610
+ });
611
+ linearWebhookVerified =
612
+ linearWebhookSetup.mode === "automated" &&
613
+ Boolean(webhookSummary.matchingWebhook);
614
+ }
615
+ const verificationFingerprint = buildVercelBridgeVerificationFingerprint({
616
+ projectId: preview.selectedProject.id,
617
+ linearTeamId: normalized.linearTeamId,
618
+ productionUrl: preview.productionUrl,
619
+ webhookUrl: preview.webhookUrl,
620
+ envWritePlan: preview.envWritePlan,
621
+ candidateSecretToken: tokenizeCandidateWebhookSecret(candidateWebhookSecret),
622
+ });
623
+ const signedProbe = candidateWebhookSecret?.trim()
624
+ ? await runSignedWebhookProbe({
625
+ webhookUrl: preview.webhookUrl,
626
+ secret: candidateWebhookSecret,
627
+ })
628
+ : {
629
+ passed: false,
630
+ result: "error",
631
+ reason: "missing_candidate_secret",
632
+ probedAt: new Date().toISOString(),
633
+ };
634
+ const signedProbeVerified = signedProbe.passed;
635
+ const deploymentRedeployRequired = writtenEnvKeys.length > 0 && !signedProbeVerified;
636
+ logVercelBridgeEvent({
637
+ phase: "signed_probe",
638
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
639
+ verifyOnly: input.verifyOnly === true,
640
+ projectId: preview.selectedProject.id,
641
+ projectName: preview.selectedProject.name,
642
+ teamId: resolvedTeam.teamId,
643
+ fingerprint: preview.fingerprint,
644
+ candidateSecretSource: candidateResolution.source,
645
+ hasLocalWebhookSecret: Boolean(normalized.verificationLinearWebhookSecret?.trim() ||
646
+ normalized.envInput?.LINEAR_WEBHOOK_SECRET?.trim()),
647
+ envWritePlan: preview.envWritePlan.map((entry) => ({
648
+ key: entry.key,
649
+ action: entry.action,
650
+ source: entry.source,
651
+ })),
652
+ signedProbeResult: signedProbe.result,
653
+ signedProbeReason: signedProbe.reason,
654
+ signedProbeStatusCode: signedProbe.statusCode,
655
+ });
656
+ const verified = REQUIRED_VERCEL_BRIDGE_ENV_VARS.every((key) => requiredEnvPresence[key] === "present") &&
657
+ preview.endpointReachable &&
658
+ linearWebhookVerified &&
659
+ signedProbeVerified &&
660
+ !deploymentRedeployRequired;
661
+ const selection = {
662
+ teamId: resolvedTeam.teamId,
663
+ teamName: resolvedTeam.teamName,
664
+ projectId: preview.selectedProject.id,
665
+ projectName: preview.selectedProject.name,
666
+ productionUrl: preview.productionUrl ?? "",
667
+ webhookUrl: preview.webhookUrl ?? "",
668
+ endpointReachable: preview.endpointReachable,
669
+ envVarPresence: requiredEnvPresence,
670
+ linearWebhookVerified,
671
+ signedProbeVerified,
672
+ signedProbe,
673
+ verificationFingerprint,
674
+ deploymentRedeployRequired,
675
+ appliedFingerprint: preview.fingerprint,
676
+ appliedAt: new Date().toISOString(),
677
+ manualComplete: input.manualComplete,
678
+ };
679
+ await updateControlPlaneSetupState({ vercel: selection }, input.cwd);
680
+ const resultPayload = {
681
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
682
+ writtenEnvKeys,
683
+ skippedEnvKeys,
684
+ linearWebhookSetup: {
685
+ mode: linearWebhookSetup.mode,
686
+ manualSteps: linearWebhookSetup.manualSteps,
687
+ },
688
+ signedProbeVerified,
689
+ verified,
690
+ };
691
+ const serialized = JSON.stringify(resultPayload);
692
+ for (const secret of knownSecrets) {
693
+ if (serialized.includes(secret)) {
694
+ throw new Error("Vercel bridge apply result leaked secret material");
695
+ }
696
+ }
697
+ const baseResult = {
698
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
699
+ status: "applied",
700
+ projectId: preview.selectedProject.id,
701
+ projectName: preview.selectedProject.name,
702
+ team: resolvedTeam.team,
703
+ project: resolvedProject.projectResult,
704
+ writtenEnvKeys,
705
+ skippedEnvKeys,
706
+ linearWebhookSetup,
707
+ signedProbeVerified,
708
+ signedProbeReason: signedProbe.reason,
709
+ signedProbe,
710
+ deploymentRedeployRequired,
711
+ verificationRetry: isVerificationRetry,
712
+ candidateSecretSource: candidateResolution.source,
713
+ verified,
714
+ fingerprint: preview.fingerprint,
715
+ permission: VERCEL_SETUP_ACTIONS.apply.permission,
716
+ envVarsWritten: writtenEnvKeys.length > 0,
717
+ productionRedeployTriggered: false,
718
+ productionRedeployStatus: "not_triggered",
719
+ };
720
+ if (input.verifyOnly ||
721
+ isVerificationRetry ||
722
+ !deploymentRedeployRequired ||
723
+ baseResult.verified) {
724
+ logVercelBridgeEvent({
725
+ phase: "apply_complete",
726
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
727
+ verifyOnly: input.verifyOnly === true,
728
+ projectId: preview.selectedProject.id,
729
+ projectName: preview.selectedProject.name,
730
+ teamId: resolvedTeam.teamId,
731
+ fingerprint: preview.fingerprint,
732
+ signedProbeResult: signedProbe.result,
733
+ signedProbeReason: signedProbe.reason,
734
+ pollStatus: baseResult.verified ? "verified" : undefined,
735
+ });
736
+ return baseResult;
737
+ }
738
+ logVercelBridgeEvent({
739
+ phase: "redeploy_trigger",
740
+ actionId: VERCEL_SETUP_ACTIONS.apply.id,
741
+ projectId: preview.selectedProject.id,
742
+ projectName: preview.selectedProject.name,
743
+ teamId: resolvedTeam.teamId,
744
+ fingerprint: preview.fingerprint,
745
+ candidateSecretSource: candidateResolution.source,
746
+ signedProbeResult: signedProbe.result,
747
+ signedProbeReason: signedProbe.reason,
748
+ });
749
+ return maybeOrchestrateAutoRedeploy({
750
+ applyInput: input,
751
+ baseResult,
752
+ signedProbe,
753
+ vercelToken: normalized.vercelToken,
754
+ projectId: preview.selectedProject.id,
755
+ projectName: preview.selectedProject.name,
756
+ teamId: resolvedTeam.teamId,
757
+ webhookUrl: preview.webhookUrl ?? "",
758
+ fingerprint: preview.fingerprint,
759
+ fingerprintInputs: buildVercelBridgePreviewFingerprintInput({
760
+ teamId: resolvedTeam.teamId,
761
+ teamMode: planForApply.team?.mode,
762
+ teamSlug: planForApply.team?.teamSlug,
763
+ projectId: preview.selectedProject.id,
764
+ projectMode: planForApply.project?.mode,
765
+ projectName: planForApply.project?.projectName,
766
+ envWritePlan: preview.envWritePlan,
767
+ willGenerateLinearWebhookSecret: planForApply.willGenerateLinearWebhookSecret ??
768
+ !planForApply.envInput?.LINEAR_WEBHOOK_SECRET?.trim(),
769
+ linearWebhookSecretFromEnv: planForApply.envInput?.LINEAR_WEBHOOK_SECRET,
770
+ githubDispatchTokenFromEnv: planForApply.envInput?.GITHUB_DISPATCH_TOKEN,
771
+ derivedGithubDispatchToken: planForApply.derivedGithubDispatchToken,
772
+ harnessTeamKey: planForApply.envInput?.HARNESS_TEAM_KEY,
773
+ derivedHarnessTeamKey: planForApply.derivedHarnessTeamKey,
774
+ vercelToken: normalized.vercelToken,
775
+ }),
776
+ priorSelection: selection,
777
+ });
778
+ }
779
+ //# sourceMappingURL=vercel-setup-apply.js.map