p-dev-harness 0.3.0 → 0.4.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 (2294) hide show
  1. package/README.md +24 -5
  2. package/dist/agents/cursor-provider.d.ts.map +1 -1
  3. package/dist/agents/cursor-provider.js +9 -8
  4. package/dist/agents/cursor-provider.js.map +1 -1
  5. package/dist/agents/index.d.ts +3 -4
  6. package/dist/agents/index.d.ts.map +1 -1
  7. package/dist/agents/index.js +2 -5
  8. package/dist/agents/index.js.map +1 -1
  9. package/dist/agents/types.d.ts +36 -2
  10. package/dist/agents/types.d.ts.map +1 -1
  11. package/dist/artifacts/redact.d.ts +2 -0
  12. package/dist/artifacts/redact.d.ts.map +1 -1
  13. package/dist/artifacts/redact.js +15 -1
  14. package/dist/artifacts/redact.js.map +1 -1
  15. package/dist/artifacts/write-json-out-manifest.d.ts +17 -0
  16. package/dist/artifacts/write-json-out-manifest.d.ts.map +1 -0
  17. package/dist/artifacts/write-json-out-manifest.js +68 -0
  18. package/dist/artifacts/write-json-out-manifest.js.map +1 -0
  19. package/dist/cli/commands/canary-runner-config.d.ts +2 -0
  20. package/dist/cli/commands/canary-runner-config.d.ts.map +1 -0
  21. package/dist/cli/commands/canary-runner-config.js +6 -0
  22. package/dist/cli/commands/canary-runner-config.js.map +1 -0
  23. package/dist/cli/commands/doctor.d.ts.map +1 -1
  24. package/dist/cli/commands/doctor.js +129 -0
  25. package/dist/cli/commands/doctor.js.map +1 -1
  26. package/dist/cli/commands/resolve-route.d.ts.map +1 -1
  27. package/dist/cli/commands/resolve-route.js +5 -0
  28. package/dist/cli/commands/resolve-route.js.map +1 -1
  29. package/dist/cli/commands/run.d.ts +1 -0
  30. package/dist/cli/commands/run.d.ts.map +1 -1
  31. package/dist/cli/commands/run.js +54 -12
  32. package/dist/cli/commands/run.js.map +1 -1
  33. package/dist/cli/commands/sync-managed-runner.d.ts +7 -0
  34. package/dist/cli/commands/sync-managed-runner.d.ts.map +1 -0
  35. package/dist/cli/commands/sync-managed-runner.js +89 -0
  36. package/dist/cli/commands/sync-managed-runner.js.map +1 -0
  37. package/dist/cli/program.d.ts.map +1 -1
  38. package/dist/cli/program.js +27 -0
  39. package/dist/cli/program.js.map +1 -1
  40. package/dist/config/assert-cloud-config-fingerprint.d.ts +10 -0
  41. package/dist/config/assert-cloud-config-fingerprint.d.ts.map +1 -0
  42. package/dist/config/assert-cloud-config-fingerprint.js +26 -0
  43. package/dist/config/assert-cloud-config-fingerprint.js.map +1 -0
  44. package/dist/config/cloud-config-fingerprint.d.ts +26 -0
  45. package/dist/config/cloud-config-fingerprint.d.ts.map +1 -0
  46. package/dist/config/cloud-config-fingerprint.js +64 -0
  47. package/dist/config/cloud-config-fingerprint.js.map +1 -0
  48. package/dist/config/legacy-linear-top-level.d.ts +16 -0
  49. package/dist/config/legacy-linear-top-level.d.ts.map +1 -0
  50. package/dist/config/legacy-linear-top-level.js +42 -0
  51. package/dist/config/legacy-linear-top-level.js.map +1 -0
  52. package/dist/config/linear-association-gate.d.ts +26 -0
  53. package/dist/config/linear-association-gate.d.ts.map +1 -0
  54. package/dist/config/linear-association-gate.js +46 -0
  55. package/dist/config/linear-association-gate.js.map +1 -0
  56. package/dist/config/resolve-linear-team.d.ts +10 -0
  57. package/dist/config/resolve-linear-team.d.ts.map +1 -0
  58. package/dist/config/resolve-linear-team.js +24 -0
  59. package/dist/config/resolve-linear-team.js.map +1 -0
  60. package/dist/config/resolve-linear-workspace.d.ts +83 -0
  61. package/dist/config/resolve-linear-workspace.d.ts.map +1 -0
  62. package/dist/config/resolve-linear-workspace.js +244 -0
  63. package/dist/config/resolve-linear-workspace.js.map +1 -0
  64. package/dist/config/role-models.d.ts +160 -0
  65. package/dist/config/role-models.d.ts.map +1 -0
  66. package/dist/config/role-models.js +31 -0
  67. package/dist/config/role-models.js.map +1 -0
  68. package/dist/config/runner-upgrade-sync-gate.d.ts +10 -0
  69. package/dist/config/runner-upgrade-sync-gate.d.ts.map +1 -0
  70. package/dist/config/runner-upgrade-sync-gate.js +24 -0
  71. package/dist/config/runner-upgrade-sync-gate.js.map +1 -0
  72. package/dist/config/schema.d.ts +266 -0
  73. package/dist/config/schema.d.ts.map +1 -1
  74. package/dist/config/schema.js +14 -0
  75. package/dist/config/schema.js.map +1 -1
  76. package/dist/config/types.d.ts +1 -1
  77. package/dist/config/types.d.ts.map +1 -1
  78. package/dist/config/workspace-root.d.ts +7 -0
  79. package/dist/config/workspace-root.d.ts.map +1 -0
  80. package/dist/config/workspace-root.js +21 -0
  81. package/dist/config/workspace-root.js.map +1 -0
  82. package/dist/cursor/agent-factory.d.ts +8 -0
  83. package/dist/cursor/agent-factory.d.ts.map +1 -1
  84. package/dist/cursor/agent-factory.js +34 -5
  85. package/dist/cursor/agent-factory.js.map +1 -1
  86. package/dist/cursor/builder-resume-errors.d.ts +3 -0
  87. package/dist/cursor/builder-resume-errors.d.ts.map +1 -0
  88. package/dist/cursor/builder-resume-errors.js +32 -0
  89. package/dist/cursor/builder-resume-errors.js.map +1 -0
  90. package/dist/cursor/model.d.ts +18 -22
  91. package/dist/cursor/model.d.ts.map +1 -1
  92. package/dist/cursor/model.js +73 -25
  93. package/dist/cursor/model.js.map +1 -1
  94. package/dist/cursor/run-observer.d.ts +8 -1
  95. package/dist/cursor/run-observer.d.ts.map +1 -1
  96. package/dist/cursor/run-observer.js +9 -1
  97. package/dist/cursor/run-observer.js.map +1 -1
  98. package/dist/github/auth-verification-retry.d.ts +12 -0
  99. package/dist/github/auth-verification-retry.d.ts.map +1 -0
  100. package/dist/github/auth-verification-retry.js +47 -0
  101. package/dist/github/auth-verification-retry.js.map +1 -0
  102. package/dist/github/client.d.ts +140 -4
  103. package/dist/github/client.d.ts.map +1 -1
  104. package/dist/github/client.js +205 -13
  105. package/dist/github/client.js.map +1 -1
  106. package/dist/github/rate-limit-metadata.d.ts +16 -0
  107. package/dist/github/rate-limit-metadata.d.ts.map +1 -0
  108. package/dist/github/rate-limit-metadata.js +73 -0
  109. package/dist/github/rate-limit-metadata.js.map +1 -0
  110. package/dist/gui/configure-health.js +2 -2
  111. package/dist/gui/configure-health.js.map +1 -1
  112. package/dist/gui/repo-root.d.ts +3 -0
  113. package/dist/gui/repo-root.d.ts.map +1 -1
  114. package/dist/gui/repo-root.js +16 -1
  115. package/dist/gui/repo-root.js.map +1 -1
  116. package/dist/gui/start-configure-stable.js +6 -2
  117. package/dist/gui/start-configure-stable.js.map +1 -1
  118. package/dist/gui/start-gui.js +7 -3
  119. package/dist/gui/start-gui.js.map +1 -1
  120. package/dist/linear/client.d.ts +4 -0
  121. package/dist/linear/client.d.ts.map +1 -1
  122. package/dist/linear/client.js +7 -0
  123. package/dist/linear/client.js.map +1 -1
  124. package/dist/linear/comments.d.ts +9 -0
  125. package/dist/linear/comments.d.ts.map +1 -1
  126. package/dist/linear/comments.js +34 -0
  127. package/dist/linear/comments.js.map +1 -1
  128. package/dist/linear/issue-query.d.ts +1 -0
  129. package/dist/linear/issue-query.d.ts.map +1 -1
  130. package/dist/linear/issue-query.js +3 -0
  131. package/dist/linear/issue-query.js.map +1 -1
  132. package/dist/linear/markers.d.ts +7 -0
  133. package/dist/linear/markers.d.ts.map +1 -1
  134. package/dist/linear/markers.js +21 -0
  135. package/dist/linear/markers.js.map +1 -1
  136. package/dist/linear/parser.d.ts +2 -1
  137. package/dist/linear/parser.d.ts.map +1 -1
  138. package/dist/linear/parser.js +46 -0
  139. package/dist/linear/parser.js.map +1 -1
  140. package/dist/linear/project-harness-metadata.d.ts +10 -0
  141. package/dist/linear/project-harness-metadata.d.ts.map +1 -0
  142. package/dist/linear/project-harness-metadata.js +109 -0
  143. package/dist/linear/project-harness-metadata.js.map +1 -0
  144. package/dist/linear/project-metadata-sync.d.ts +29 -0
  145. package/dist/linear/project-metadata-sync.d.ts.map +1 -0
  146. package/dist/linear/project-metadata-sync.js +64 -0
  147. package/dist/linear/project-metadata-sync.js.map +1 -0
  148. package/dist/linear/run-status-comment.d.ts +49 -0
  149. package/dist/linear/run-status-comment.d.ts.map +1 -0
  150. package/dist/linear/run-status-comment.js +118 -0
  151. package/dist/linear/run-status-comment.js.map +1 -0
  152. package/dist/linear/writer.d.ts +8 -0
  153. package/dist/linear/writer.d.ts.map +1 -1
  154. package/dist/linear/writer.js +13 -0
  155. package/dist/linear/writer.js.map +1 -1
  156. package/dist/observability/adapters/fake.d.ts +17 -0
  157. package/dist/observability/adapters/fake.d.ts.map +1 -0
  158. package/dist/observability/adapters/fake.js +205 -0
  159. package/dist/observability/adapters/fake.js.map +1 -0
  160. package/dist/observability/adapters/noop.d.ts +5 -0
  161. package/dist/observability/adapters/noop.d.ts.map +1 -0
  162. package/dist/observability/adapters/noop.js +51 -0
  163. package/dist/observability/adapters/noop.js.map +1 -0
  164. package/dist/observability/adapters/posthog.d.ts +12 -0
  165. package/dist/observability/adapters/posthog.d.ts.map +1 -0
  166. package/dist/observability/adapters/posthog.js +142 -0
  167. package/dist/observability/adapters/posthog.js.map +1 -0
  168. package/dist/observability/adapters/sentry.d.ts +12 -0
  169. package/dist/observability/adapters/sentry.d.ts.map +1 -0
  170. package/dist/observability/adapters/sentry.js +217 -0
  171. package/dist/observability/adapters/sentry.js.map +1 -0
  172. package/dist/observability/analytics-schemas.d.ts +59 -0
  173. package/dist/observability/analytics-schemas.d.ts.map +1 -0
  174. package/dist/observability/analytics-schemas.js +119 -0
  175. package/dist/observability/analytics-schemas.js.map +1 -0
  176. package/dist/observability/consent.d.ts +14 -0
  177. package/dist/observability/consent.d.ts.map +1 -0
  178. package/dist/observability/consent.js +35 -0
  179. package/dist/observability/consent.js.map +1 -0
  180. package/dist/observability/constants.d.ts +18 -0
  181. package/dist/observability/constants.d.ts.map +1 -0
  182. package/dist/observability/constants.js +18 -0
  183. package/dist/observability/constants.js.map +1 -0
  184. package/dist/observability/context.d.ts +21 -0
  185. package/dist/observability/context.d.ts.map +1 -0
  186. package/dist/observability/context.js +105 -0
  187. package/dist/observability/context.js.map +1 -0
  188. package/dist/observability/facade-runtime-state.d.ts +17 -0
  189. package/dist/observability/facade-runtime-state.d.ts.map +1 -0
  190. package/dist/observability/facade-runtime-state.js +23 -0
  191. package/dist/observability/facade-runtime-state.js.map +1 -0
  192. package/dist/observability/facade.d.ts +44 -0
  193. package/dist/observability/facade.d.ts.map +1 -0
  194. package/dist/observability/facade.js +432 -0
  195. package/dist/observability/facade.js.map +1 -0
  196. package/dist/observability/fatal-handlers.d.ts +4 -0
  197. package/dist/observability/fatal-handlers.d.ts.map +1 -0
  198. package/dist/observability/fatal-handlers.js +54 -0
  199. package/dist/observability/fatal-handlers.js.map +1 -0
  200. package/dist/observability/identity.d.ts +4 -0
  201. package/dist/observability/identity.d.ts.map +1 -0
  202. package/dist/observability/identity.js +11 -0
  203. package/dist/observability/identity.js.map +1 -0
  204. package/dist/observability/index.d.ts +9 -0
  205. package/dist/observability/index.d.ts.map +1 -0
  206. package/dist/observability/index.js +6 -0
  207. package/dist/observability/index.js.map +1 -0
  208. package/dist/observability/local-state.d.ts +14 -0
  209. package/dist/observability/local-state.d.ts.map +1 -0
  210. package/dist/observability/local-state.js +107 -0
  211. package/dist/observability/local-state.js.map +1 -0
  212. package/dist/observability/package-config.d.ts +11 -0
  213. package/dist/observability/package-config.d.ts.map +1 -0
  214. package/dist/observability/package-config.js +117 -0
  215. package/dist/observability/package-config.js.map +1 -0
  216. package/dist/observability/posthog-dashboard-contract.d.ts +46 -0
  217. package/dist/observability/posthog-dashboard-contract.d.ts.map +1 -0
  218. package/dist/observability/posthog-dashboard-contract.js +200 -0
  219. package/dist/observability/posthog-dashboard-contract.js.map +1 -0
  220. package/dist/observability/privacy-schema.d.ts +13 -0
  221. package/dist/observability/privacy-schema.d.ts.map +1 -0
  222. package/dist/observability/privacy-schema.js +204 -0
  223. package/dist/observability/privacy-schema.js.map +1 -0
  224. package/dist/observability/product-error-messages.d.ts +2 -0
  225. package/dist/observability/product-error-messages.d.ts.map +1 -0
  226. package/dist/observability/product-error-messages.js +15 -0
  227. package/dist/observability/product-error-messages.js.map +1 -0
  228. package/dist/observability/product-errors.d.ts +12 -0
  229. package/dist/observability/product-errors.d.ts.map +1 -0
  230. package/dist/observability/product-errors.js +109 -0
  231. package/dist/observability/product-errors.js.map +1 -0
  232. package/dist/observability/provisioning-analytics.d.ts +12 -0
  233. package/dist/observability/provisioning-analytics.d.ts.map +1 -0
  234. package/dist/observability/provisioning-analytics.js +11 -0
  235. package/dist/observability/provisioning-analytics.js.map +1 -0
  236. package/dist/observability/redaction.d.ts +10 -0
  237. package/dist/observability/redaction.d.ts.map +1 -0
  238. package/dist/observability/redaction.js +72 -0
  239. package/dist/observability/redaction.js.map +1 -0
  240. package/dist/observability/runtime-eligibility.d.ts +6 -0
  241. package/dist/observability/runtime-eligibility.d.ts.map +1 -0
  242. package/dist/observability/runtime-eligibility.js +33 -0
  243. package/dist/observability/runtime-eligibility.js.map +1 -0
  244. package/dist/observability/sentry-outbound-privacy.d.ts +12 -0
  245. package/dist/observability/sentry-outbound-privacy.d.ts.map +1 -0
  246. package/dist/observability/sentry-outbound-privacy.js +168 -0
  247. package/dist/observability/sentry-outbound-privacy.js.map +1 -0
  248. package/dist/observability/session-dedupe.d.ts +8 -0
  249. package/dist/observability/session-dedupe.d.ts.map +1 -0
  250. package/dist/observability/session-dedupe.js +42 -0
  251. package/dist/observability/session-dedupe.js.map +1 -0
  252. package/dist/observability/session-handoff.d.ts +10 -0
  253. package/dist/observability/session-handoff.d.ts.map +1 -0
  254. package/dist/observability/session-handoff.js +25 -0
  255. package/dist/observability/session-handoff.js.map +1 -0
  256. package/dist/observability/transport-lifecycle.d.ts +20 -0
  257. package/dist/observability/transport-lifecycle.d.ts.map +1 -0
  258. package/dist/observability/transport-lifecycle.js +69 -0
  259. package/dist/observability/transport-lifecycle.js.map +1 -0
  260. package/dist/observability/types.d.ts +189 -0
  261. package/dist/observability/types.d.ts.map +1 -0
  262. package/dist/observability/types.js +2 -0
  263. package/dist/observability/types.js.map +1 -0
  264. package/dist/p-dev/cli.d.ts +1 -1
  265. package/dist/p-dev/cli.d.ts.map +1 -1
  266. package/dist/p-dev/cli.js +1 -1
  267. package/dist/p-dev/cli.js.map +1 -1
  268. package/dist/p-dev/git-object-plumbing.d.ts +39 -0
  269. package/dist/p-dev/git-object-plumbing.d.ts.map +1 -0
  270. package/dist/p-dev/git-object-plumbing.js +289 -0
  271. package/dist/p-dev/git-object-plumbing.js.map +1 -0
  272. package/dist/p-dev/launch.d.ts.map +1 -1
  273. package/dist/p-dev/launch.js +77 -15
  274. package/dist/p-dev/launch.js.map +1 -1
  275. package/dist/p-dev/main.js +9 -1
  276. package/dist/p-dev/main.js.map +1 -1
  277. package/dist/p-dev/package-paths.d.ts +13 -0
  278. package/dist/p-dev/package-paths.d.ts.map +1 -1
  279. package/dist/p-dev/package-paths.js +51 -2
  280. package/dist/p-dev/package-paths.js.map +1 -1
  281. package/dist/p-dev/workspace-snapshot-digest.d.ts +12 -0
  282. package/dist/p-dev/workspace-snapshot-digest.d.ts.map +1 -0
  283. package/dist/p-dev/workspace-snapshot-digest.js +34 -0
  284. package/dist/p-dev/workspace-snapshot-digest.js.map +1 -0
  285. package/dist/p-dev/workspace-snapshot-generator.d.ts +15 -0
  286. package/dist/p-dev/workspace-snapshot-generator.d.ts.map +1 -0
  287. package/dist/p-dev/workspace-snapshot-generator.js +87 -0
  288. package/dist/p-dev/workspace-snapshot-generator.js.map +1 -0
  289. package/dist/p-dev/workspace-snapshot-git.d.ts +26 -0
  290. package/dist/p-dev/workspace-snapshot-git.d.ts.map +1 -0
  291. package/dist/p-dev/workspace-snapshot-git.js +151 -0
  292. package/dist/p-dev/workspace-snapshot-git.js.map +1 -0
  293. package/dist/p-dev/workspace-snapshot-manifest.d.ts +18 -0
  294. package/dist/p-dev/workspace-snapshot-manifest.d.ts.map +1 -0
  295. package/dist/p-dev/workspace-snapshot-manifest.js +340 -0
  296. package/dist/p-dev/workspace-snapshot-manifest.js.map +1 -0
  297. package/dist/p-dev/workspace-snapshot-policy.d.ts +16 -0
  298. package/dist/p-dev/workspace-snapshot-policy.d.ts.map +1 -0
  299. package/dist/p-dev/workspace-snapshot-policy.js +168 -0
  300. package/dist/p-dev/workspace-snapshot-policy.js.map +1 -0
  301. package/dist/p-dev/workspace-snapshot-types.d.ts +62 -0
  302. package/dist/p-dev/workspace-snapshot-types.d.ts.map +1 -0
  303. package/dist/p-dev/workspace-snapshot-types.js +7 -0
  304. package/dist/p-dev/workspace-snapshot-types.js.map +1 -0
  305. package/dist/p-dev/workspace-snapshot-validation.d.ts +17 -0
  306. package/dist/p-dev/workspace-snapshot-validation.d.ts.map +1 -0
  307. package/dist/p-dev/workspace-snapshot-validation.js +115 -0
  308. package/dist/p-dev/workspace-snapshot-validation.js.map +1 -0
  309. package/dist/preview/preview-capability.d.ts +9 -0
  310. package/dist/preview/preview-capability.d.ts.map +1 -0
  311. package/dist/preview/preview-capability.js +15 -0
  312. package/dist/preview/preview-capability.js.map +1 -0
  313. package/dist/product/initialization-state.d.ts +15 -0
  314. package/dist/product/initialization-state.d.ts.map +1 -0
  315. package/dist/product/initialization-state.js +37 -0
  316. package/dist/product/initialization-state.js.map +1 -0
  317. package/dist/product/product-marker.d.ts +77 -0
  318. package/dist/product/product-marker.d.ts.map +1 -0
  319. package/dist/product/product-marker.js +62 -0
  320. package/dist/product/product-marker.js.map +1 -0
  321. package/dist/product/read-product-marker.d.ts +15 -0
  322. package/dist/product/read-product-marker.d.ts.map +1 -0
  323. package/dist/product/read-product-marker.js +28 -0
  324. package/dist/product/read-product-marker.js.map +1 -0
  325. package/dist/prompts/builder.d.ts +10 -1
  326. package/dist/prompts/builder.d.ts.map +1 -1
  327. package/dist/prompts/builder.js +16 -2
  328. package/dist/prompts/builder.js.map +1 -1
  329. package/dist/resolver/errors.d.ts +1 -1
  330. package/dist/resolver/errors.d.ts.map +1 -1
  331. package/dist/resolver/errors.js.map +1 -1
  332. package/dist/resolver/target-repo.d.ts +4 -1
  333. package/dist/resolver/target-repo.d.ts.map +1 -1
  334. package/dist/resolver/target-repo.js +40 -0
  335. package/dist/resolver/target-repo.js.map +1 -1
  336. package/dist/runner/builder-thread-acquire.d.ts +41 -0
  337. package/dist/runner/builder-thread-acquire.d.ts.map +1 -0
  338. package/dist/runner/builder-thread-acquire.js +224 -0
  339. package/dist/runner/builder-thread-acquire.js.map +1 -0
  340. package/dist/runner/builder-thread-evidence.d.ts +13 -0
  341. package/dist/runner/builder-thread-evidence.d.ts.map +1 -0
  342. package/dist/runner/builder-thread-evidence.js +23 -0
  343. package/dist/runner/builder-thread-evidence.js.map +1 -0
  344. package/dist/runner/builder-thread-idempotency.d.ts +17 -0
  345. package/dist/runner/builder-thread-idempotency.d.ts.map +1 -0
  346. package/dist/runner/builder-thread-idempotency.js +12 -0
  347. package/dist/runner/builder-thread-idempotency.js.map +1 -0
  348. package/dist/runner/builder-thread-lineage-errors.d.ts +7 -0
  349. package/dist/runner/builder-thread-lineage-errors.d.ts.map +1 -0
  350. package/dist/runner/builder-thread-lineage-errors.js +11 -0
  351. package/dist/runner/builder-thread-lineage-errors.js.map +1 -0
  352. package/dist/runner/builder-thread-lineage.d.ts +18 -0
  353. package/dist/runner/builder-thread-lineage.d.ts.map +1 -0
  354. package/dist/runner/builder-thread-lineage.js +342 -0
  355. package/dist/runner/builder-thread-lineage.js.map +1 -0
  356. package/dist/runner/builder-thread-types.d.ts +30 -0
  357. package/dist/runner/builder-thread-types.d.ts.map +1 -0
  358. package/dist/runner/builder-thread-types.js +2 -0
  359. package/dist/runner/builder-thread-types.js.map +1 -0
  360. package/dist/runner/delivery-dedup.d.ts +26 -0
  361. package/dist/runner/delivery-dedup.d.ts.map +1 -0
  362. package/dist/runner/delivery-dedup.js +44 -0
  363. package/dist/runner/delivery-dedup.js.map +1 -0
  364. package/dist/runner/failure-finalization.d.ts +34 -0
  365. package/dist/runner/failure-finalization.d.ts.map +1 -0
  366. package/dist/runner/failure-finalization.js +154 -0
  367. package/dist/runner/failure-finalization.js.map +1 -0
  368. package/dist/runner/fixture.d.ts +1 -1
  369. package/dist/runner/fixture.d.ts.map +1 -1
  370. package/dist/runner/fixture.js +3 -0
  371. package/dist/runner/fixture.js.map +1 -1
  372. package/dist/runner/phases/handoff.d.ts.map +1 -1
  373. package/dist/runner/phases/handoff.js +59 -32
  374. package/dist/runner/phases/handoff.js.map +1 -1
  375. package/dist/runner/phases/implementation.d.ts.map +1 -1
  376. package/dist/runner/phases/implementation.js +147 -24
  377. package/dist/runner/phases/implementation.js.map +1 -1
  378. package/dist/runner/phases/integration-repair.d.ts +18 -0
  379. package/dist/runner/phases/integration-repair.d.ts.map +1 -1
  380. package/dist/runner/phases/integration-repair.js +93 -7
  381. package/dist/runner/phases/integration-repair.js.map +1 -1
  382. package/dist/runner/phases/merge.d.ts.map +1 -1
  383. package/dist/runner/phases/merge.js +129 -51
  384. package/dist/runner/phases/merge.js.map +1 -1
  385. package/dist/runner/phases/planning.d.ts.map +1 -1
  386. package/dist/runner/phases/planning.js +46 -8
  387. package/dist/runner/phases/planning.js.map +1 -1
  388. package/dist/runner/phases/production-sync.d.ts.map +1 -1
  389. package/dist/runner/phases/production-sync.js +28 -4
  390. package/dist/runner/phases/production-sync.js.map +1 -1
  391. package/dist/runner/phases/revision.d.ts.map +1 -1
  392. package/dist/runner/phases/revision.js +112 -32
  393. package/dist/runner/phases/revision.js.map +1 -1
  394. package/dist/runner/preflight.d.ts +2 -0
  395. package/dist/runner/preflight.d.ts.map +1 -1
  396. package/dist/runner/preflight.js +112 -3
  397. package/dist/runner/preflight.js.map +1 -1
  398. package/dist/runner/resolve-route.d.ts +1 -0
  399. package/dist/runner/resolve-route.d.ts.map +1 -1
  400. package/dist/runner/resolve-route.js +26 -0
  401. package/dist/runner/resolve-route.js.map +1 -1
  402. package/dist/runner/run-generation.d.ts +2 -0
  403. package/dist/runner/run-generation.d.ts.map +1 -0
  404. package/dist/runner/run-generation.js +19 -0
  405. package/dist/runner/run-generation.js.map +1 -0
  406. package/dist/runner/uninitialized-product-routing.d.ts +24 -0
  407. package/dist/runner/uninitialized-product-routing.d.ts.map +1 -0
  408. package/dist/runner/uninitialized-product-routing.js +70 -0
  409. package/dist/runner/uninitialized-product-routing.js.map +1 -0
  410. package/dist/setup/config-builder.d.ts.map +1 -1
  411. package/dist/setup/config-builder.js +12 -0
  412. package/dist/setup/config-builder.js.map +1 -1
  413. package/dist/setup/control-plane-readiness.d.ts +8 -1
  414. package/dist/setup/control-plane-readiness.d.ts.map +1 -1
  415. package/dist/setup/control-plane-readiness.js +63 -19
  416. package/dist/setup/control-plane-readiness.js.map +1 -1
  417. package/dist/setup/control-plane-setup-state.d.ts +13 -3
  418. package/dist/setup/control-plane-setup-state.d.ts.map +1 -1
  419. package/dist/setup/control-plane-setup-state.js +30 -3
  420. package/dist/setup/control-plane-setup-state.js.map +1 -1
  421. package/dist/setup/control-plane-state-lock.d.ts +12 -0
  422. package/dist/setup/control-plane-state-lock.d.ts.map +1 -0
  423. package/dist/setup/control-plane-state-lock.js +79 -0
  424. package/dist/setup/control-plane-state-lock.js.map +1 -0
  425. package/dist/setup/control-plane-types.d.ts +72 -1
  426. package/dist/setup/control-plane-types.d.ts.map +1 -1
  427. package/dist/setup/first-run-readiness.d.ts +4 -0
  428. package/dist/setup/first-run-readiness.d.ts.map +1 -1
  429. package/dist/setup/first-run-readiness.js +2 -2
  430. package/dist/setup/first-run-readiness.js.map +1 -1
  431. package/dist/setup/git-askpass-credentials.d.ts +19 -0
  432. package/dist/setup/git-askpass-credentials.d.ts.map +1 -0
  433. package/dist/setup/git-askpass-credentials.js +60 -0
  434. package/dist/setup/git-askpass-credentials.js.map +1 -0
  435. package/dist/setup/github-dispatch-token.d.ts +4 -0
  436. package/dist/setup/github-dispatch-token.d.ts.map +1 -1
  437. package/dist/setup/github-dispatch-token.js +23 -3
  438. package/dist/setup/github-dispatch-token.js.map +1 -1
  439. package/dist/setup/github-remote-provider.d.ts +173 -0
  440. package/dist/setup/github-remote-provider.d.ts.map +1 -1
  441. package/dist/setup/github-remote-provider.js +234 -3
  442. package/dist/setup/github-remote-provider.js.map +1 -1
  443. package/dist/setup/github-remote-setup-live.d.ts +75 -1
  444. package/dist/setup/github-remote-setup-live.d.ts.map +1 -1
  445. package/dist/setup/github-remote-setup-live.js +189 -15
  446. package/dist/setup/github-remote-setup-live.js.map +1 -1
  447. package/dist/setup/github-repository-name.d.ts +15 -0
  448. package/dist/setup/github-repository-name.d.ts.map +1 -0
  449. package/dist/setup/github-repository-name.js +54 -0
  450. package/dist/setup/github-repository-name.js.map +1 -0
  451. package/dist/setup/github-secret-encryption.d.ts.map +1 -1
  452. package/dist/setup/github-secret-encryption.js +3 -1
  453. package/dist/setup/github-secret-encryption.js.map +1 -1
  454. package/dist/setup/github-target-repository-provider-live.d.ts +35 -0
  455. package/dist/setup/github-target-repository-provider-live.d.ts.map +1 -0
  456. package/dist/setup/github-target-repository-provider-live.js +236 -0
  457. package/dist/setup/github-target-repository-provider-live.js.map +1 -0
  458. package/dist/setup/github-target-repository-provider-mock.d.ts +47 -0
  459. package/dist/setup/github-target-repository-provider-mock.d.ts.map +1 -0
  460. package/dist/setup/github-target-repository-provider-mock.js +189 -0
  461. package/dist/setup/github-target-repository-provider-mock.js.map +1 -0
  462. package/dist/setup/github-target-repository-provider.d.ts +44 -0
  463. package/dist/setup/github-target-repository-provider.d.ts.map +1 -0
  464. package/dist/setup/github-target-repository-provider.js +7 -0
  465. package/dist/setup/github-target-repository-provider.js.map +1 -0
  466. package/dist/setup/github-upload-rate-limit-gate.d.ts +17 -0
  467. package/dist/setup/github-upload-rate-limit-gate.d.ts.map +1 -0
  468. package/dist/setup/github-upload-rate-limit-gate.js +42 -0
  469. package/dist/setup/github-upload-rate-limit-gate.js.map +1 -0
  470. package/dist/setup/github-workflow-permissions.d.ts +1 -1
  471. package/dist/setup/github-workflow-permissions.d.ts.map +1 -1
  472. package/dist/setup/github-workflow-permissions.js +1 -1
  473. package/dist/setup/github-workflow-permissions.js.map +1 -1
  474. package/dist/setup/gui-view-model.d.ts +5 -0
  475. package/dist/setup/gui-view-model.d.ts.map +1 -1
  476. package/dist/setup/gui-view-model.js +5 -0
  477. package/dist/setup/gui-view-model.js.map +1 -1
  478. package/dist/setup/harness-dispatch-repo.d.ts +16 -2
  479. package/dist/setup/harness-dispatch-repo.d.ts.map +1 -1
  480. package/dist/setup/harness-dispatch-repo.js +113 -22
  481. package/dist/setup/harness-dispatch-repo.js.map +1 -1
  482. package/dist/setup/harness-managed-repo-marker.d.ts +29 -1
  483. package/dist/setup/harness-managed-repo-marker.d.ts.map +1 -1
  484. package/dist/setup/harness-managed-repo-marker.js +183 -2
  485. package/dist/setup/harness-managed-repo-marker.js.map +1 -1
  486. package/dist/setup/harness-provisioning-context.d.ts +14 -12
  487. package/dist/setup/harness-provisioning-context.d.ts.map +1 -1
  488. package/dist/setup/harness-provisioning-context.js +54 -42
  489. package/dist/setup/harness-provisioning-context.js.map +1 -1
  490. package/dist/setup/harness-provisioning-last-run.d.ts +27 -0
  491. package/dist/setup/harness-provisioning-last-run.d.ts.map +1 -0
  492. package/dist/setup/harness-provisioning-last-run.js +94 -0
  493. package/dist/setup/harness-provisioning-last-run.js.map +1 -0
  494. package/dist/setup/harness-provisioning-pending-state.d.ts +33 -22
  495. package/dist/setup/harness-provisioning-pending-state.d.ts.map +1 -1
  496. package/dist/setup/harness-provisioning-pending-state.js +49 -30
  497. package/dist/setup/harness-provisioning-pending-state.js.map +1 -1
  498. package/dist/setup/harness-provisioning-progress.d.ts +58 -0
  499. package/dist/setup/harness-provisioning-progress.d.ts.map +1 -0
  500. package/dist/setup/harness-provisioning-progress.js +134 -0
  501. package/dist/setup/harness-provisioning-progress.js.map +1 -0
  502. package/dist/setup/harness-repo-provisioning.d.ts +21 -5
  503. package/dist/setup/harness-repo-provisioning.d.ts.map +1 -1
  504. package/dist/setup/harness-repo-provisioning.js +494 -334
  505. package/dist/setup/harness-repo-provisioning.js.map +1 -1
  506. package/dist/setup/harness-snapshot-git-transport.d.ts +92 -0
  507. package/dist/setup/harness-snapshot-git-transport.d.ts.map +1 -0
  508. package/dist/setup/harness-snapshot-git-transport.js +544 -0
  509. package/dist/setup/harness-snapshot-git-transport.js.map +1 -0
  510. package/dist/setup/harness-snapshot-provisioning-helpers.d.ts +21 -0
  511. package/dist/setup/harness-snapshot-provisioning-helpers.d.ts.map +1 -0
  512. package/dist/setup/harness-snapshot-provisioning-helpers.js +55 -0
  513. package/dist/setup/harness-snapshot-provisioning-helpers.js.map +1 -0
  514. package/dist/setup/harness-snapshot-provisioning.d.ts +122 -0
  515. package/dist/setup/harness-snapshot-provisioning.d.ts.map +1 -0
  516. package/dist/setup/harness-snapshot-provisioning.js +909 -0
  517. package/dist/setup/harness-snapshot-provisioning.js.map +1 -0
  518. package/dist/setup/harness-step-readiness-server.d.ts +11 -0
  519. package/dist/setup/harness-step-readiness-server.d.ts.map +1 -0
  520. package/dist/setup/harness-step-readiness-server.js +24 -0
  521. package/dist/setup/harness-step-readiness-server.js.map +1 -0
  522. package/dist/setup/harness-step-readiness.d.ts +21 -0
  523. package/dist/setup/harness-step-readiness.d.ts.map +1 -0
  524. package/dist/setup/harness-step-readiness.js +40 -0
  525. package/dist/setup/harness-step-readiness.js.map +1 -0
  526. package/dist/setup/harness-workspace-snapshot-loader.d.ts +20 -0
  527. package/dist/setup/harness-workspace-snapshot-loader.d.ts.map +1 -0
  528. package/dist/setup/harness-workspace-snapshot-loader.js +113 -0
  529. package/dist/setup/harness-workspace-snapshot-loader.js.map +1 -0
  530. package/dist/setup/initial-setup-lifecycle.d.ts +51 -0
  531. package/dist/setup/initial-setup-lifecycle.d.ts.map +1 -0
  532. package/dist/setup/initial-setup-lifecycle.js +93 -0
  533. package/dist/setup/initial-setup-lifecycle.js.map +1 -0
  534. package/dist/setup/linear-category-labels.d.ts +2 -0
  535. package/dist/setup/linear-category-labels.d.ts.map +1 -0
  536. package/dist/setup/linear-category-labels.js +19 -0
  537. package/dist/setup/linear-category-labels.js.map +1 -0
  538. package/dist/setup/linear-setup-apply.d.ts +1 -0
  539. package/dist/setup/linear-setup-apply.d.ts.map +1 -1
  540. package/dist/setup/linear-setup-apply.js +67 -16
  541. package/dist/setup/linear-setup-apply.js.map +1 -1
  542. package/dist/setup/linear-setup-client.d.ts +24 -0
  543. package/dist/setup/linear-setup-client.d.ts.map +1 -1
  544. package/dist/setup/linear-setup-client.js +61 -0
  545. package/dist/setup/linear-setup-client.js.map +1 -1
  546. package/dist/setup/linear-setup-plan.d.ts +22 -1
  547. package/dist/setup/linear-setup-plan.d.ts.map +1 -1
  548. package/dist/setup/linear-setup-plan.js +69 -6
  549. package/dist/setup/linear-setup-plan.js.map +1 -1
  550. package/dist/setup/linear-setup-progress.d.ts +30 -0
  551. package/dist/setup/linear-setup-progress.d.ts.map +1 -0
  552. package/dist/setup/linear-setup-progress.js +71 -0
  553. package/dist/setup/linear-setup-progress.js.map +1 -0
  554. package/dist/setup/linear-status-contract.d.ts +2 -1
  555. package/dist/setup/linear-status-contract.d.ts.map +1 -1
  556. package/dist/setup/linear-status-contract.js +26 -67
  557. package/dist/setup/linear-status-contract.js.map +1 -1
  558. package/dist/setup/linear-workflow-status-repair.d.ts +36 -0
  559. package/dist/setup/linear-workflow-status-repair.d.ts.map +1 -0
  560. package/dist/setup/linear-workflow-status-repair.js +187 -0
  561. package/dist/setup/linear-workflow-status-repair.js.map +1 -0
  562. package/dist/setup/linear-workspace-apply.d.ts +25 -0
  563. package/dist/setup/linear-workspace-apply.d.ts.map +1 -0
  564. package/dist/setup/linear-workspace-apply.js +212 -0
  565. package/dist/setup/linear-workspace-apply.js.map +1 -0
  566. package/dist/setup/linear-workspace-drift.d.ts +2 -0
  567. package/dist/setup/linear-workspace-drift.d.ts.map +1 -0
  568. package/dist/setup/linear-workspace-drift.js +2 -0
  569. package/dist/setup/linear-workspace-drift.js.map +1 -0
  570. package/dist/setup/linear-workspace-migration.d.ts +43 -0
  571. package/dist/setup/linear-workspace-migration.d.ts.map +1 -0
  572. package/dist/setup/linear-workspace-migration.js +212 -0
  573. package/dist/setup/linear-workspace-migration.js.map +1 -0
  574. package/dist/setup/linear-workspace-plan.d.ts +92 -0
  575. package/dist/setup/linear-workspace-plan.d.ts.map +1 -0
  576. package/dist/setup/linear-workspace-plan.js +283 -0
  577. package/dist/setup/linear-workspace-plan.js.map +1 -0
  578. package/dist/setup/local-readiness-checks.d.ts +17 -0
  579. package/dist/setup/local-readiness-checks.d.ts.map +1 -1
  580. package/dist/setup/local-readiness-checks.js +86 -23
  581. package/dist/setup/local-readiness-checks.js.map +1 -1
  582. package/dist/setup/mock-git-repository-store.d.ts +43 -0
  583. package/dist/setup/mock-git-repository-store.d.ts.map +1 -0
  584. package/dist/setup/mock-git-repository-store.js +232 -0
  585. package/dist/setup/mock-git-repository-store.js.map +1 -0
  586. package/dist/setup/mock-target-workflow-finalization.d.ts.map +1 -1
  587. package/dist/setup/mock-target-workflow-finalization.js +27 -4
  588. package/dist/setup/mock-target-workflow-finalization.js.map +1 -1
  589. package/dist/setup/packaged-default-route.d.ts +15 -0
  590. package/dist/setup/packaged-default-route.d.ts.map +1 -0
  591. package/dist/setup/packaged-default-route.js +17 -0
  592. package/dist/setup/packaged-default-route.js.map +1 -0
  593. package/dist/setup/release-sync-managed-runner.d.ts +61 -0
  594. package/dist/setup/release-sync-managed-runner.d.ts.map +1 -0
  595. package/dist/setup/release-sync-managed-runner.js +364 -0
  596. package/dist/setup/release-sync-managed-runner.js.map +1 -0
  597. package/dist/setup/remote-apply-actions.d.ts.map +1 -1
  598. package/dist/setup/remote-apply-actions.js +23 -0
  599. package/dist/setup/remote-apply-actions.js.map +1 -1
  600. package/dist/setup/runner-upgrade-canary-dispatch.d.ts +19 -0
  601. package/dist/setup/runner-upgrade-canary-dispatch.d.ts.map +1 -0
  602. package/dist/setup/runner-upgrade-canary-dispatch.js +38 -0
  603. package/dist/setup/runner-upgrade-canary-dispatch.js.map +1 -0
  604. package/dist/setup/runner-upgrade-canary.d.ts +23 -0
  605. package/dist/setup/runner-upgrade-canary.d.ts.map +1 -0
  606. package/dist/setup/runner-upgrade-canary.js +146 -0
  607. package/dist/setup/runner-upgrade-canary.js.map +1 -0
  608. package/dist/setup/runner-upgrade-evidence.d.ts +14 -0
  609. package/dist/setup/runner-upgrade-evidence.d.ts.map +1 -0
  610. package/dist/setup/runner-upgrade-evidence.js +9 -0
  611. package/dist/setup/runner-upgrade-evidence.js.map +1 -0
  612. package/dist/setup/runner-upgrade-pending-state.d.ts +30 -0
  613. package/dist/setup/runner-upgrade-pending-state.d.ts.map +1 -0
  614. package/dist/setup/runner-upgrade-pending-state.js +75 -0
  615. package/dist/setup/runner-upgrade-pending-state.js.map +1 -0
  616. package/dist/setup/runner-upgrade-progress.d.ts +38 -0
  617. package/dist/setup/runner-upgrade-progress.d.ts.map +1 -0
  618. package/dist/setup/runner-upgrade-progress.js +95 -0
  619. package/dist/setup/runner-upgrade-progress.js.map +1 -0
  620. package/dist/setup/runner-upgrade-provider-live.d.ts +5 -0
  621. package/dist/setup/runner-upgrade-provider-live.d.ts.map +1 -0
  622. package/dist/setup/runner-upgrade-provider-live.js +338 -0
  623. package/dist/setup/runner-upgrade-provider-live.js.map +1 -0
  624. package/dist/setup/runner-upgrade-provider.d.ts +231 -0
  625. package/dist/setup/runner-upgrade-provider.d.ts.map +1 -0
  626. package/dist/setup/runner-upgrade-provider.js +466 -0
  627. package/dist/setup/runner-upgrade-provider.js.map +1 -0
  628. package/dist/setup/runner-upgrade-status-cache.d.ts +13 -0
  629. package/dist/setup/runner-upgrade-status-cache.d.ts.map +1 -0
  630. package/dist/setup/runner-upgrade-status-cache.js +39 -0
  631. package/dist/setup/runner-upgrade-status-cache.js.map +1 -0
  632. package/dist/setup/runner-upgrade-three-way.d.ts +28 -0
  633. package/dist/setup/runner-upgrade-three-way.d.ts.map +1 -0
  634. package/dist/setup/runner-upgrade-three-way.js +102 -0
  635. package/dist/setup/runner-upgrade-three-way.js.map +1 -0
  636. package/dist/setup/runner-upgrade-timeouts.d.ts +72 -0
  637. package/dist/setup/runner-upgrade-timeouts.d.ts.map +1 -0
  638. package/dist/setup/runner-upgrade-timeouts.js +261 -0
  639. package/dist/setup/runner-upgrade-timeouts.js.map +1 -0
  640. package/dist/setup/runner-upgrade-types.d.ts +84 -0
  641. package/dist/setup/runner-upgrade-types.d.ts.map +1 -0
  642. package/dist/setup/runner-upgrade-types.js +64 -0
  643. package/dist/setup/runner-upgrade-types.js.map +1 -0
  644. package/dist/setup/runner-upgrade-worker.d.ts +17 -0
  645. package/dist/setup/runner-upgrade-worker.d.ts.map +1 -0
  646. package/dist/setup/runner-upgrade-worker.js +115 -0
  647. package/dist/setup/runner-upgrade-worker.js.map +1 -0
  648. package/dist/setup/runner-upgrade.d.ts +57 -0
  649. package/dist/setup/runner-upgrade.d.ts.map +1 -0
  650. package/dist/setup/runner-upgrade.js +1311 -0
  651. package/dist/setup/runner-upgrade.js.map +1 -0
  652. package/dist/setup/service-verification.d.ts +18 -1
  653. package/dist/setup/service-verification.d.ts.map +1 -1
  654. package/dist/setup/service-verification.js +110 -19
  655. package/dist/setup/service-verification.js.map +1 -1
  656. package/dist/setup/settings-config-patch.d.ts +69 -0
  657. package/dist/setup/settings-config-patch.d.ts.map +1 -0
  658. package/dist/setup/settings-config-patch.js +312 -0
  659. package/dist/setup/settings-config-patch.js.map +1 -0
  660. package/dist/setup/setup-state.d.ts +1 -0
  661. package/dist/setup/setup-state.d.ts.map +1 -1
  662. package/dist/setup/setup-state.js +11 -1
  663. package/dist/setup/setup-state.js.map +1 -1
  664. package/dist/setup/step6-automatic-control-state.d.ts +21 -0
  665. package/dist/setup/step6-automatic-control-state.d.ts.map +1 -0
  666. package/dist/setup/step6-automatic-control-state.js +28 -0
  667. package/dist/setup/step6-automatic-control-state.js.map +1 -0
  668. package/dist/setup/sync-harness-config-cloud.d.ts +23 -0
  669. package/dist/setup/sync-harness-config-cloud.d.ts.map +1 -0
  670. package/dist/setup/sync-harness-config-cloud.js +91 -0
  671. package/dist/setup/sync-harness-config-cloud.js.map +1 -0
  672. package/dist/setup/target-repo-provisioning-pending-state.d.ts +42 -0
  673. package/dist/setup/target-repo-provisioning-pending-state.d.ts.map +1 -0
  674. package/dist/setup/target-repo-provisioning-pending-state.js +95 -0
  675. package/dist/setup/target-repo-provisioning-pending-state.js.map +1 -0
  676. package/dist/setup/target-repo-provisioning.d.ts +67 -0
  677. package/dist/setup/target-repo-provisioning.d.ts.map +1 -0
  678. package/dist/setup/target-repo-provisioning.js +473 -0
  679. package/dist/setup/target-repo-provisioning.js.map +1 -0
  680. package/dist/setup/target-workflow-finalization-progress.d.ts +43 -0
  681. package/dist/setup/target-workflow-finalization-progress.d.ts.map +1 -0
  682. package/dist/setup/target-workflow-finalization-progress.js +83 -0
  683. package/dist/setup/target-workflow-finalization-progress.js.map +1 -0
  684. package/dist/setup/target-workflow-finalization-types.d.ts +21 -1
  685. package/dist/setup/target-workflow-finalization-types.d.ts.map +1 -1
  686. package/dist/setup/target-workflow-finalization-types.js +75 -0
  687. package/dist/setup/target-workflow-finalization-types.js.map +1 -1
  688. package/dist/setup/target-workflow-finalization.d.ts.map +1 -1
  689. package/dist/setup/target-workflow-finalization.js +618 -15
  690. package/dist/setup/target-workflow-finalization.js.map +1 -1
  691. package/dist/setup/target-workflow-setup.d.ts.map +1 -1
  692. package/dist/setup/target-workflow-setup.js +2 -0
  693. package/dist/setup/target-workflow-setup.js.map +1 -1
  694. package/dist/setup/test-only-runner-upgrade-provider.d.ts +11 -0
  695. package/dist/setup/test-only-runner-upgrade-provider.d.ts.map +1 -0
  696. package/dist/setup/test-only-runner-upgrade-provider.js +37 -0
  697. package/dist/setup/test-only-runner-upgrade-provider.js.map +1 -0
  698. package/dist/setup/test-only-target-repo-provisioning-provider.d.ts +7 -0
  699. package/dist/setup/test-only-target-repo-provisioning-provider.d.ts.map +1 -0
  700. package/dist/setup/test-only-target-repo-provisioning-provider.js +33 -0
  701. package/dist/setup/test-only-target-repo-provisioning-provider.js.map +1 -0
  702. package/dist/setup/vercel-bridge-artifact.d.ts +7 -0
  703. package/dist/setup/vercel-bridge-artifact.d.ts.map +1 -0
  704. package/dist/setup/vercel-bridge-artifact.js +164 -0
  705. package/dist/setup/vercel-bridge-artifact.js.map +1 -0
  706. package/dist/setup/vercel-bridge-deploy.d.ts +42 -0
  707. package/dist/setup/vercel-bridge-deploy.d.ts.map +1 -0
  708. package/dist/setup/vercel-bridge-deploy.js +138 -0
  709. package/dist/setup/vercel-bridge-deploy.js.map +1 -0
  710. package/dist/setup/vercel-bridge-diagnostics.js +1 -1
  711. package/dist/setup/vercel-bridge-diagnostics.js.map +1 -1
  712. package/dist/setup/vercel-bridge-options.d.ts +2 -0
  713. package/dist/setup/vercel-bridge-options.d.ts.map +1 -1
  714. package/dist/setup/vercel-bridge-options.js +2 -0
  715. package/dist/setup/vercel-bridge-options.js.map +1 -1
  716. package/dist/setup/vercel-bridge-orchestration-summary.d.ts +13 -0
  717. package/dist/setup/vercel-bridge-orchestration-summary.d.ts.map +1 -0
  718. package/dist/setup/vercel-bridge-orchestration-summary.js +22 -0
  719. package/dist/setup/vercel-bridge-orchestration-summary.js.map +1 -0
  720. package/dist/setup/vercel-bridge-project-marker.d.ts +5 -0
  721. package/dist/setup/vercel-bridge-project-marker.d.ts.map +1 -0
  722. package/dist/setup/vercel-bridge-project-marker.js +6 -0
  723. package/dist/setup/vercel-bridge-project-marker.js.map +1 -0
  724. package/dist/setup/vercel-bridge-readiness.d.ts +1 -0
  725. package/dist/setup/vercel-bridge-readiness.d.ts.map +1 -1
  726. package/dist/setup/vercel-bridge-readiness.js +1 -1
  727. package/dist/setup/vercel-bridge-readiness.js.map +1 -1
  728. package/dist/setup/vercel-bridge-redeploy-normalize.d.ts +18 -0
  729. package/dist/setup/vercel-bridge-redeploy-normalize.d.ts.map +1 -0
  730. package/dist/setup/vercel-bridge-redeploy-normalize.js +175 -0
  731. package/dist/setup/vercel-bridge-redeploy-normalize.js.map +1 -0
  732. package/dist/setup/vercel-bridge-redeploy-poll.d.ts +7 -1
  733. package/dist/setup/vercel-bridge-redeploy-poll.d.ts.map +1 -1
  734. package/dist/setup/vercel-bridge-redeploy-poll.js +329 -166
  735. package/dist/setup/vercel-bridge-redeploy-poll.js.map +1 -1
  736. package/dist/setup/vercel-bridge-redeploy-state.d.ts.map +1 -1
  737. package/dist/setup/vercel-bridge-redeploy-state.js +3 -0
  738. package/dist/setup/vercel-bridge-redeploy-state.js.map +1 -1
  739. package/dist/setup/vercel-bridge-structured-log.d.ts +5 -0
  740. package/dist/setup/vercel-bridge-structured-log.d.ts.map +1 -1
  741. package/dist/setup/vercel-bridge-structured-log.js.map +1 -1
  742. package/dist/setup/vercel-project-name.d.ts +7 -0
  743. package/dist/setup/vercel-project-name.d.ts.map +1 -0
  744. package/dist/setup/vercel-project-name.js +26 -0
  745. package/dist/setup/vercel-project-name.js.map +1 -0
  746. package/dist/setup/vercel-setup-apply.d.ts +7 -2
  747. package/dist/setup/vercel-setup-apply.d.ts.map +1 -1
  748. package/dist/setup/vercel-setup-apply.js +315 -38
  749. package/dist/setup/vercel-setup-apply.js.map +1 -1
  750. package/dist/setup/vercel-setup-client.d.ts +26 -1
  751. package/dist/setup/vercel-setup-client.d.ts.map +1 -1
  752. package/dist/setup/vercel-setup-client.js +50 -1
  753. package/dist/setup/vercel-setup-client.js.map +1 -1
  754. package/dist/setup/vercel-setup-plan.d.ts +5 -0
  755. package/dist/setup/vercel-setup-plan.d.ts.map +1 -1
  756. package/dist/setup/vercel-setup-plan.js +65 -13
  757. package/dist/setup/vercel-setup-plan.js.map +1 -1
  758. package/dist/setup/vercel-setup-summary.d.ts +3 -0
  759. package/dist/setup/vercel-setup-summary.d.ts.map +1 -1
  760. package/dist/setup/vercel-setup-summary.js +4 -0
  761. package/dist/setup/vercel-setup-summary.js.map +1 -1
  762. package/dist/setup/workflow-config-snapshot.d.ts +8 -0
  763. package/dist/setup/workflow-config-snapshot.d.ts.map +1 -0
  764. package/dist/setup/workflow-config-snapshot.js +13 -0
  765. package/dist/setup/workflow-config-snapshot.js.map +1 -0
  766. package/dist/setup/workflow-install-branch-recovery.d.ts +116 -0
  767. package/dist/setup/workflow-install-branch-recovery.d.ts.map +1 -0
  768. package/dist/setup/workflow-install-branch-recovery.js +385 -0
  769. package/dist/setup/workflow-install-branch-recovery.js.map +1 -0
  770. package/dist/setup/workflow-install-merge-errors.d.ts +5 -2
  771. package/dist/setup/workflow-install-merge-errors.d.ts.map +1 -1
  772. package/dist/setup/workflow-install-merge-errors.js +51 -17
  773. package/dist/setup/workflow-install-merge-errors.js.map +1 -1
  774. package/dist/setup/workflow-install-merge-gate.d.ts +10 -0
  775. package/dist/setup/workflow-install-merge-gate.d.ts.map +1 -0
  776. package/dist/setup/workflow-install-merge-gate.js +21 -0
  777. package/dist/setup/workflow-install-merge-gate.js.map +1 -0
  778. package/dist/setup/workflow-model-save-queue.d.ts +16 -0
  779. package/dist/setup/workflow-model-save-queue.d.ts.map +1 -0
  780. package/dist/setup/workflow-model-save-queue.js +174 -0
  781. package/dist/setup/workflow-model-save-queue.js.map +1 -0
  782. package/dist/setup/workflow-model-sync-lock.d.ts +12 -0
  783. package/dist/setup/workflow-model-sync-lock.d.ts.map +1 -0
  784. package/dist/setup/workflow-model-sync-lock.js +79 -0
  785. package/dist/setup/workflow-model-sync-lock.js.map +1 -0
  786. package/dist/setup/workflow-model-sync.d.ts +34 -0
  787. package/dist/setup/workflow-model-sync.d.ts.map +1 -0
  788. package/dist/setup/workflow-model-sync.js +163 -0
  789. package/dist/setup/workflow-model-sync.js.map +1 -0
  790. package/dist/setup/workflow-models-sync-evidence.d.ts +12 -0
  791. package/dist/setup/workflow-models-sync-evidence.d.ts.map +1 -0
  792. package/dist/setup/workflow-models-sync-evidence.js +15 -0
  793. package/dist/setup/workflow-models-sync-evidence.js.map +1 -0
  794. package/dist/types/parsed-issue.d.ts +8 -0
  795. package/dist/types/parsed-issue.d.ts.map +1 -1
  796. package/dist/types/run.d.ts +18 -3
  797. package/dist/types/run.d.ts.map +1 -1
  798. package/dist/validate/issue.d.ts +5 -0
  799. package/dist/validate/issue.d.ts.map +1 -1
  800. package/dist/validate/issue.js +23 -3
  801. package/dist/validate/issue.js.map +1 -1
  802. package/dist/validate/types.d.ts +3 -0
  803. package/dist/validate/types.d.ts.map +1 -1
  804. package/dist/webhook/dispatch-statuses.d.ts +1 -1
  805. package/dist/webhook/dispatch-statuses.d.ts.map +1 -1
  806. package/dist/webhook/dispatch-statuses.js +4 -13
  807. package/dist/webhook/dispatch-statuses.js.map +1 -1
  808. package/dist/webhook/filter.d.ts +5 -2
  809. package/dist/webhook/filter.d.ts.map +1 -1
  810. package/dist/webhook/filter.js +15 -1
  811. package/dist/webhook/filter.js.map +1 -1
  812. package/dist/webhook/handle-linear-webhook.d.ts.map +1 -1
  813. package/dist/webhook/handle-linear-webhook.js +15 -1
  814. package/dist/webhook/handle-linear-webhook.js.map +1 -1
  815. package/dist/webhook/parse-linear-issue-event.d.ts +6 -0
  816. package/dist/webhook/parse-linear-issue-event.d.ts.map +1 -1
  817. package/dist/webhook/parse-linear-issue-event.js +2 -0
  818. package/dist/webhook/parse-linear-issue-event.js.map +1 -1
  819. package/dist/webhook/types.d.ts +3 -1
  820. package/dist/webhook/types.d.ts.map +1 -1
  821. package/dist/workflow/canonical-product-development-workflow.d.ts +106 -0
  822. package/dist/workflow/canonical-product-development-workflow.d.ts.map +1 -0
  823. package/dist/workflow/canonical-product-development-workflow.js +425 -0
  824. package/dist/workflow/canonical-product-development-workflow.js.map +1 -0
  825. package/dist/workflow/canonical-workflow-gate.d.ts +33 -0
  826. package/dist/workflow/canonical-workflow-gate.d.ts.map +1 -0
  827. package/dist/workflow/canonical-workflow-gate.js +164 -0
  828. package/dist/workflow/canonical-workflow-gate.js.map +1 -0
  829. package/dist/workflow/canonical-workflow-validation.d.ts +44 -0
  830. package/dist/workflow/canonical-workflow-validation.d.ts.map +1 -0
  831. package/dist/workflow/canonical-workflow-validation.js +193 -0
  832. package/dist/workflow/canonical-workflow-validation.js.map +1 -0
  833. package/dist/workflow/finalize-harness-run.d.ts +2 -0
  834. package/dist/workflow/finalize-harness-run.d.ts.map +1 -0
  835. package/dist/workflow/finalize-harness-run.js +62 -0
  836. package/dist/workflow/finalize-harness-run.js.map +1 -0
  837. package/dist/workflow/preflight-canonical.d.ts +11 -0
  838. package/dist/workflow/preflight-canonical.d.ts.map +1 -0
  839. package/dist/workflow/preflight-canonical.js +20 -0
  840. package/dist/workflow/preflight-canonical.js.map +1 -0
  841. package/dist/workflow/write-fallback-manifest.d.ts +2 -0
  842. package/dist/workflow/write-fallback-manifest.d.ts.map +1 -0
  843. package/dist/workflow/write-fallback-manifest.js +30 -0
  844. package/dist/workflow/write-fallback-manifest.js.map +1 -0
  845. package/dist/workflow-page/bootstrap.d.ts +21 -0
  846. package/dist/workflow-page/bootstrap.d.ts.map +1 -0
  847. package/dist/workflow-page/bootstrap.js +185 -0
  848. package/dist/workflow-page/bootstrap.js.map +1 -0
  849. package/dist/workflow-page/catalog-validation.d.ts +33 -0
  850. package/dist/workflow-page/catalog-validation.d.ts.map +1 -0
  851. package/dist/workflow-page/catalog-validation.js +105 -0
  852. package/dist/workflow-page/catalog-validation.js.map +1 -0
  853. package/dist/workflow-page/constants.d.ts +7 -0
  854. package/dist/workflow-page/constants.d.ts.map +1 -0
  855. package/dist/workflow-page/constants.js +18 -0
  856. package/dist/workflow-page/constants.js.map +1 -0
  857. package/dist/workflow-page/current-workflow.d.ts +18 -0
  858. package/dist/workflow-page/current-workflow.d.ts.map +1 -0
  859. package/dist/workflow-page/current-workflow.js +142 -0
  860. package/dist/workflow-page/current-workflow.js.map +1 -0
  861. package/dist/workflow-page/fingerprint.d.ts +3 -0
  862. package/dist/workflow-page/fingerprint.d.ts.map +1 -0
  863. package/dist/workflow-page/fingerprint.js +8 -0
  864. package/dist/workflow-page/fingerprint.js.map +1 -0
  865. package/dist/workflow-page/fixture-definition.d.ts +13 -0
  866. package/dist/workflow-page/fixture-definition.d.ts.map +1 -0
  867. package/dist/workflow-page/fixture-definition.js +2 -0
  868. package/dist/workflow-page/fixture-definition.js.map +1 -0
  869. package/dist/workflow-page/fixture-role-models.d.ts +19 -0
  870. package/dist/workflow-page/fixture-role-models.d.ts.map +1 -0
  871. package/dist/workflow-page/fixture-role-models.js +32 -0
  872. package/dist/workflow-page/fixture-role-models.js.map +1 -0
  873. package/dist/workflow-page/fixtures/basic-current-workflow.d.ts +5 -0
  874. package/dist/workflow-page/fixtures/basic-current-workflow.d.ts.map +1 -0
  875. package/dist/workflow-page/fixtures/basic-current-workflow.js +36 -0
  876. package/dist/workflow-page/fixtures/basic-current-workflow.js.map +1 -0
  877. package/dist/workflow-page/fixtures/branching-pr-review.d.ts +3 -0
  878. package/dist/workflow-page/fixtures/branching-pr-review.d.ts.map +1 -0
  879. package/dist/workflow-page/fixtures/branching-pr-review.js +10 -0
  880. package/dist/workflow-page/fixtures/branching-pr-review.js.map +1 -0
  881. package/dist/workflow-page/fixtures/canonical-violations.d.ts +6 -0
  882. package/dist/workflow-page/fixtures/canonical-violations.d.ts.map +1 -0
  883. package/dist/workflow-page/fixtures/canonical-violations.js +19 -0
  884. package/dist/workflow-page/fixtures/canonical-violations.js.map +1 -0
  885. package/dist/workflow-page/fixtures/credential-errors.d.ts +3 -0
  886. package/dist/workflow-page/fixtures/credential-errors.d.ts.map +1 -0
  887. package/dist/workflow-page/fixtures/credential-errors.js +12 -0
  888. package/dist/workflow-page/fixtures/credential-errors.js.map +1 -0
  889. package/dist/workflow-page/fixtures/empty-linear-statuses.d.ts +3 -0
  890. package/dist/workflow-page/fixtures/empty-linear-statuses.d.ts.map +1 -0
  891. package/dist/workflow-page/fixtures/empty-linear-statuses.js +9 -0
  892. package/dist/workflow-page/fixtures/empty-linear-statuses.js.map +1 -0
  893. package/dist/workflow-page/fixtures/hundred-node-performance.d.ts +3 -0
  894. package/dist/workflow-page/fixtures/hundred-node-performance.d.ts.map +1 -0
  895. package/dist/workflow-page/fixtures/hundred-node-performance.js +21 -0
  896. package/dist/workflow-page/fixtures/hundred-node-performance.js.map +1 -0
  897. package/dist/workflow-page/fixtures/index.d.ts +6 -0
  898. package/dist/workflow-page/fixtures/index.d.ts.map +1 -0
  899. package/dist/workflow-page/fixtures/index.js +24 -0
  900. package/dist/workflow-page/fixtures/index.js.map +1 -0
  901. package/dist/workflow-page/fixtures/model-catalog-snapshot.d.ts +10 -0
  902. package/dist/workflow-page/fixtures/model-catalog-snapshot.d.ts.map +1 -0
  903. package/dist/workflow-page/fixtures/model-catalog-snapshot.js +29 -0
  904. package/dist/workflow-page/fixtures/model-catalog-snapshot.js.map +1 -0
  905. package/dist/workflow-page/fixtures/workflow-scopes.d.ts +4 -0
  906. package/dist/workflow-page/fixtures/workflow-scopes.d.ts.map +1 -0
  907. package/dist/workflow-page/fixtures/workflow-scopes.js +16 -0
  908. package/dist/workflow-page/fixtures/workflow-scopes.js.map +1 -0
  909. package/dist/workflow-page/linear-status-source.d.ts +15 -0
  910. package/dist/workflow-page/linear-status-source.d.ts.map +1 -0
  911. package/dist/workflow-page/linear-status-source.js +44 -0
  912. package/dist/workflow-page/linear-status-source.js.map +1 -0
  913. package/dist/workflow-page/model-catalog-lookup.d.ts +3 -0
  914. package/dist/workflow-page/model-catalog-lookup.d.ts.map +1 -0
  915. package/dist/workflow-page/model-catalog-lookup.js +4 -0
  916. package/dist/workflow-page/model-catalog-lookup.js.map +1 -0
  917. package/dist/workflow-page/model-catalog-utils.d.ts +19 -0
  918. package/dist/workflow-page/model-catalog-utils.d.ts.map +1 -0
  919. package/dist/workflow-page/model-catalog-utils.js +46 -0
  920. package/dist/workflow-page/model-catalog-utils.js.map +1 -0
  921. package/dist/workflow-page/model-catalog.d.ts +12 -0
  922. package/dist/workflow-page/model-catalog.d.ts.map +1 -0
  923. package/dist/workflow-page/model-catalog.js +40 -0
  924. package/dist/workflow-page/model-catalog.js.map +1 -0
  925. package/dist/workflow-page/scope-branches.d.ts +11 -0
  926. package/dist/workflow-page/scope-branches.d.ts.map +1 -0
  927. package/dist/workflow-page/scope-branches.js +18 -0
  928. package/dist/workflow-page/scope-branches.js.map +1 -0
  929. package/dist/workflow-page/source-context.d.ts +13 -0
  930. package/dist/workflow-page/source-context.d.ts.map +1 -0
  931. package/dist/workflow-page/source-context.js +61 -0
  932. package/dist/workflow-page/source-context.js.map +1 -0
  933. package/dist/workflow-page/types.d.ts +108 -0
  934. package/dist/workflow-page/types.d.ts.map +1 -0
  935. package/dist/workflow-page/types.js +2 -0
  936. package/dist/workflow-page/types.js.map +1 -0
  937. package/dist/workflow-page/workflow-scopes.d.ts +16 -0
  938. package/dist/workflow-page/workflow-scopes.d.ts.map +1 -0
  939. package/dist/workflow-page/workflow-scopes.js +55 -0
  940. package/dist/workflow-page/workflow-scopes.js.map +1 -0
  941. package/gui/.next/BUILD_ID +1 -1
  942. package/gui/.next/app-build-manifest.json +378 -117
  943. package/gui/.next/app-path-routes-manifest.json +45 -16
  944. package/gui/.next/build-manifest.json +12 -12
  945. package/gui/.next/next-minimal-server.js.nft.json +1 -1
  946. package/gui/.next/next-server.js.nft.json +1 -1
  947. package/gui/.next/prerender-manifest.json +0 -24
  948. package/gui/.next/required-server-files.json +4 -3
  949. package/gui/.next/routes-manifest.json +54 -0
  950. package/gui/.next/server/app/_not-found/page.js +2 -2
  951. package/gui/.next/server/app/_not-found/page.js.nft.json +1 -1
  952. package/gui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  953. package/gui/.next/server/app/_not-found.html +1 -1
  954. package/gui/.next/server/app/_not-found.rsc +3 -3
  955. package/gui/.next/server/app/api/observability/event/route.js +1 -0
  956. package/gui/.next/server/app/api/observability/event/route.js.nft.json +1 -0
  957. package/gui/.next/server/app/api/observability/event/route_client-reference-manifest.js +1 -0
  958. package/gui/.next/server/app/api/observability/preferences/route.js +1 -0
  959. package/gui/.next/server/app/api/observability/preferences/route.js.nft.json +1 -0
  960. package/gui/.next/server/app/api/observability/preferences/route_client-reference-manifest.js +1 -0
  961. package/gui/.next/server/app/api/operations/bootstrap/route.js +1 -0
  962. package/gui/.next/server/app/api/operations/bootstrap/route.js.nft.json +1 -0
  963. package/gui/.next/server/app/api/operations/bootstrap/route_client-reference-manifest.js +1 -0
  964. package/gui/.next/server/app/api/operations/draft/route.js +1 -0
  965. package/gui/.next/server/app/api/operations/draft/route.js.nft.json +1 -0
  966. package/gui/.next/server/app/api/operations/draft/route_client-reference-manifest.js +1 -0
  967. package/gui/.next/server/app/api/settings/apply-config-patch/route.js +8 -0
  968. package/gui/.next/server/app/api/settings/apply-config-patch/route.js.nft.json +1 -0
  969. package/gui/.next/server/app/api/settings/apply-config-patch/route_client-reference-manifest.js +1 -0
  970. package/gui/.next/server/app/api/settings/preview-config-patch/route.js +8 -0
  971. package/gui/.next/server/app/api/settings/preview-config-patch/route.js.nft.json +1 -0
  972. package/gui/.next/server/app/api/settings/preview-config-patch/route_client-reference-manifest.js +1 -0
  973. package/gui/.next/server/app/api/setup/apply-connect-services/route.js +1 -1
  974. package/gui/.next/server/app/api/setup/apply-connect-services/route.js.nft.json +1 -1
  975. package/gui/.next/server/app/api/setup/apply-connect-services/route_client-reference-manifest.js +1 -1
  976. package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route.js +1 -1
  977. package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route.js.nft.json +1 -1
  978. package/gui/.next/server/app/api/setup/apply-harness-repo-provisioning/route_client-reference-manifest.js +1 -1
  979. package/gui/.next/server/app/api/setup/apply-harness-secrets/route.js +1 -1
  980. package/gui/.next/server/app/api/setup/apply-harness-secrets/route.js.nft.json +1 -1
  981. package/gui/.next/server/app/api/setup/apply-harness-secrets/route_client-reference-manifest.js +1 -1
  982. package/gui/.next/server/app/api/setup/apply-linear-setup/route.js +1 -1
  983. package/gui/.next/server/app/api/setup/apply-linear-setup/route.js.nft.json +1 -1
  984. package/gui/.next/server/app/api/setup/apply-linear-setup/route_client-reference-manifest.js +1 -1
  985. package/gui/.next/server/app/api/setup/apply-linear-workspace/route.js +1 -0
  986. package/gui/.next/server/app/api/setup/apply-linear-workspace/route.js.nft.json +1 -0
  987. package/gui/.next/server/app/api/setup/apply-linear-workspace/route_client-reference-manifest.js +1 -0
  988. package/gui/.next/server/app/api/setup/apply-local-files/route.js +1 -1
  989. package/gui/.next/server/app/api/setup/apply-local-files/route.js.nft.json +1 -1
  990. package/gui/.next/server/app/api/setup/apply-local-files/route_client-reference-manifest.js +1 -1
  991. package/gui/.next/server/app/api/setup/apply-runner-upgrade/route.js +1 -0
  992. package/gui/.next/server/app/api/setup/apply-runner-upgrade/route.js.nft.json +1 -0
  993. package/gui/.next/server/app/api/setup/apply-runner-upgrade/route_client-reference-manifest.js +1 -0
  994. package/gui/.next/server/app/api/setup/apply-target-repo-provisioning/route.js +1 -0
  995. package/gui/.next/server/app/api/setup/apply-target-repo-provisioning/route.js.nft.json +1 -0
  996. package/gui/.next/server/app/api/setup/apply-target-repo-provisioning/route_client-reference-manifest.js +1 -0
  997. package/gui/.next/server/app/api/setup/apply-target-workflow/route.js +1 -1
  998. package/gui/.next/server/app/api/setup/apply-target-workflow/route.js.nft.json +1 -1
  999. package/gui/.next/server/app/api/setup/apply-target-workflow/route_client-reference-manifest.js +1 -1
  1000. package/gui/.next/server/app/api/setup/apply-vercel-bridge/route.js +1 -1
  1001. package/gui/.next/server/app/api/setup/apply-vercel-bridge/route.js.nft.json +1 -1
  1002. package/gui/.next/server/app/api/setup/apply-vercel-bridge/route_client-reference-manifest.js +1 -1
  1003. package/gui/.next/server/app/api/setup/complete-initial-setup/route.js +1 -0
  1004. package/gui/.next/server/app/api/setup/complete-initial-setup/route.js.nft.json +1 -0
  1005. package/gui/.next/server/app/api/setup/complete-initial-setup/route_client-reference-manifest.js +1 -0
  1006. package/gui/.next/server/app/api/setup/finalize-target-workflow/route.js +1 -1
  1007. package/gui/.next/server/app/api/setup/finalize-target-workflow/route.js.nft.json +1 -1
  1008. package/gui/.next/server/app/api/setup/finalize-target-workflow/route_client-reference-manifest.js +1 -1
  1009. package/gui/.next/server/app/api/setup/harness-provisioning-progress/route.js +1 -0
  1010. package/gui/.next/server/app/api/setup/harness-provisioning-progress/route.js.nft.json +1 -0
  1011. package/gui/.next/server/app/api/setup/harness-provisioning-progress/route_client-reference-manifest.js +1 -0
  1012. package/gui/.next/server/app/api/setup/harness-provisioning-summary/route.js +1 -1
  1013. package/gui/.next/server/app/api/setup/harness-provisioning-summary/route.js.nft.json +1 -1
  1014. package/gui/.next/server/app/api/setup/harness-provisioning-summary/route_client-reference-manifest.js +1 -1
  1015. package/gui/.next/server/app/api/setup/linear-options/route.js +1 -1
  1016. package/gui/.next/server/app/api/setup/linear-options/route.js.nft.json +1 -1
  1017. package/gui/.next/server/app/api/setup/linear-options/route_client-reference-manifest.js +1 -1
  1018. package/gui/.next/server/app/api/setup/linear-setup-progress/route.js +1 -0
  1019. package/gui/.next/server/app/api/setup/linear-setup-progress/route.js.nft.json +1 -0
  1020. package/gui/.next/server/app/api/setup/linear-setup-progress/route_client-reference-manifest.js +1 -0
  1021. package/gui/.next/server/app/api/setup/linear-summary/route.js +1 -1
  1022. package/gui/.next/server/app/api/setup/linear-summary/route.js.nft.json +1 -1
  1023. package/gui/.next/server/app/api/setup/linear-summary/route_client-reference-manifest.js +1 -1
  1024. package/gui/.next/server/app/api/setup/linear-workspace-editor-state/route.js +1 -0
  1025. package/gui/.next/server/app/api/setup/linear-workspace-editor-state/route.js.nft.json +1 -0
  1026. package/gui/.next/server/app/api/setup/linear-workspace-editor-state/route_client-reference-manifest.js +1 -0
  1027. package/gui/.next/server/app/api/setup/local-readiness/route.js +3 -1
  1028. package/gui/.next/server/app/api/setup/local-readiness/route.js.nft.json +1 -1
  1029. package/gui/.next/server/app/api/setup/local-readiness/route_client-reference-manifest.js +1 -1
  1030. package/gui/.next/server/app/api/setup/manual-harness-secret-values/route.js +1 -1
  1031. package/gui/.next/server/app/api/setup/manual-harness-secret-values/route.js.nft.json +1 -1
  1032. package/gui/.next/server/app/api/setup/manual-harness-secret-values/route_client-reference-manifest.js +1 -1
  1033. package/gui/.next/server/app/api/setup/preview-connect-services/route.js +1 -1
  1034. package/gui/.next/server/app/api/setup/preview-connect-services/route.js.nft.json +1 -1
  1035. package/gui/.next/server/app/api/setup/preview-connect-services/route_client-reference-manifest.js +1 -1
  1036. package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route.js +1 -1
  1037. package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route.js.nft.json +1 -1
  1038. package/gui/.next/server/app/api/setup/preview-harness-repo-provisioning/route_client-reference-manifest.js +1 -1
  1039. package/gui/.next/server/app/api/setup/preview-harness-secrets/route.js +1 -1
  1040. package/gui/.next/server/app/api/setup/preview-harness-secrets/route.js.nft.json +1 -1
  1041. package/gui/.next/server/app/api/setup/preview-harness-secrets/route_client-reference-manifest.js +1 -1
  1042. package/gui/.next/server/app/api/setup/preview-linear-setup/route.js +1 -1
  1043. package/gui/.next/server/app/api/setup/preview-linear-setup/route.js.nft.json +1 -1
  1044. package/gui/.next/server/app/api/setup/preview-linear-setup/route_client-reference-manifest.js +1 -1
  1045. package/gui/.next/server/app/api/setup/preview-linear-workspace/route.js +1 -0
  1046. package/gui/.next/server/app/api/setup/preview-linear-workspace/route.js.nft.json +1 -0
  1047. package/gui/.next/server/app/api/setup/preview-linear-workspace/route_client-reference-manifest.js +1 -0
  1048. package/gui/.next/server/app/api/setup/preview-local-files/route.js +1 -1
  1049. package/gui/.next/server/app/api/setup/preview-local-files/route.js.nft.json +1 -1
  1050. package/gui/.next/server/app/api/setup/preview-local-files/route_client-reference-manifest.js +1 -1
  1051. package/gui/.next/server/app/api/setup/preview-runner-upgrade/route.js +1 -0
  1052. package/gui/.next/server/app/api/setup/preview-runner-upgrade/route.js.nft.json +1 -0
  1053. package/gui/.next/server/app/api/setup/preview-runner-upgrade/route_client-reference-manifest.js +1 -0
  1054. package/gui/.next/server/app/api/setup/preview-target-repo-provisioning/route.js +1 -0
  1055. package/gui/.next/server/app/api/setup/preview-target-repo-provisioning/route.js.nft.json +1 -0
  1056. package/gui/.next/server/app/api/setup/preview-target-repo-provisioning/route_client-reference-manifest.js +1 -0
  1057. package/gui/.next/server/app/api/setup/preview-target-workflow/route.js +1 -1
  1058. package/gui/.next/server/app/api/setup/preview-target-workflow/route.js.nft.json +1 -1
  1059. package/gui/.next/server/app/api/setup/preview-target-workflow/route_client-reference-manifest.js +1 -1
  1060. package/gui/.next/server/app/api/setup/preview-vercel-bridge/route.js +1 -1
  1061. package/gui/.next/server/app/api/setup/preview-vercel-bridge/route.js.nft.json +1 -1
  1062. package/gui/.next/server/app/api/setup/preview-vercel-bridge/route_client-reference-manifest.js +1 -1
  1063. package/gui/.next/server/app/api/setup/remote-summary/route.js +1 -1
  1064. package/gui/.next/server/app/api/setup/remote-summary/route.js.nft.json +1 -1
  1065. package/gui/.next/server/app/api/setup/remote-summary/route_client-reference-manifest.js +1 -1
  1066. package/gui/.next/server/app/api/setup/runner-upgrade-progress/route.js +1 -0
  1067. package/gui/.next/server/app/api/setup/runner-upgrade-progress/route.js.nft.json +1 -0
  1068. package/gui/.next/server/app/api/setup/runner-upgrade-progress/route_client-reference-manifest.js +1 -0
  1069. package/gui/.next/server/app/api/setup/runner-upgrade-status/route.js +1 -0
  1070. package/gui/.next/server/app/api/setup/runner-upgrade-status/route.js.nft.json +1 -0
  1071. package/gui/.next/server/app/api/setup/runner-upgrade-status/route_client-reference-manifest.js +1 -0
  1072. package/gui/.next/server/app/api/setup/summary/route.js +1 -1
  1073. package/gui/.next/server/app/api/setup/summary/route.js.nft.json +1 -1
  1074. package/gui/.next/server/app/api/setup/summary/route_client-reference-manifest.js +1 -1
  1075. package/gui/.next/server/app/api/setup/vercel-bridge-options/route.js +1 -1
  1076. package/gui/.next/server/app/api/setup/vercel-bridge-options/route.js.nft.json +1 -1
  1077. package/gui/.next/server/app/api/setup/vercel-bridge-options/route_client-reference-manifest.js +1 -1
  1078. package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route.js +1 -1
  1079. package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route.js.nft.json +1 -1
  1080. package/gui/.next/server/app/api/setup/vercel-bridge-redeploy-status/route_client-reference-manifest.js +1 -1
  1081. package/gui/.next/server/app/api/setup/vercel-summary/route.js +1 -1
  1082. package/gui/.next/server/app/api/setup/vercel-summary/route.js.nft.json +1 -1
  1083. package/gui/.next/server/app/api/setup/vercel-summary/route_client-reference-manifest.js +1 -1
  1084. package/gui/.next/server/app/api/setup/verify-harness-repo/route.js +1 -1
  1085. package/gui/.next/server/app/api/setup/verify-harness-repo/route.js.nft.json +1 -1
  1086. package/gui/.next/server/app/api/setup/verify-harness-repo/route_client-reference-manifest.js +1 -1
  1087. package/gui/.next/server/app/api/setup/verify-service/route.js +1 -1
  1088. package/gui/.next/server/app/api/setup/verify-service/route.js.nft.json +1 -1
  1089. package/gui/.next/server/app/api/setup/verify-service/route_client-reference-manifest.js +1 -1
  1090. package/gui/.next/server/app/api/setup/verify-target-repo/route.js +1 -1
  1091. package/gui/.next/server/app/api/setup/verify-target-repo/route.js.nft.json +1 -1
  1092. package/gui/.next/server/app/api/setup/verify-target-repo/route_client-reference-manifest.js +1 -1
  1093. package/gui/.next/server/app/api/workflow/bootstrap/route.js +1 -0
  1094. package/gui/.next/server/app/api/workflow/bootstrap/route.js.nft.json +1 -0
  1095. package/gui/.next/server/app/api/workflow/bootstrap/route_client-reference-manifest.js +1 -0
  1096. package/gui/.next/server/app/api/workflow/models/route.js +1 -0
  1097. package/gui/.next/server/app/api/workflow/models/route.js.nft.json +1 -0
  1098. package/gui/.next/server/app/api/workflow/models/route_client-reference-manifest.js +1 -0
  1099. package/gui/.next/server/app/operations/page.js +2 -0
  1100. package/gui/.next/server/app/operations/page.js.nft.json +1 -0
  1101. package/gui/.next/server/app/operations/page_client-reference-manifest.js +1 -0
  1102. package/gui/.next/server/app/page.js +3 -2
  1103. package/gui/.next/server/app/page.js.nft.json +1 -1
  1104. package/gui/.next/server/app/page_client-reference-manifest.js +1 -1
  1105. package/gui/.next/server/app/settings/(console)/connections/page.js +2 -0
  1106. package/gui/.next/server/app/settings/(console)/connections/page.js.nft.json +1 -0
  1107. package/gui/.next/server/app/settings/(console)/connections/page_client-reference-manifest.js +1 -0
  1108. package/gui/.next/server/app/settings/(console)/data-sharing/page.js +2 -0
  1109. package/gui/.next/server/app/settings/(console)/data-sharing/page.js.nft.json +1 -0
  1110. package/gui/.next/server/app/settings/(console)/data-sharing/page_client-reference-manifest.js +1 -0
  1111. package/gui/.next/server/app/settings/(console)/deployments/page.js +2 -0
  1112. package/gui/.next/server/app/settings/(console)/deployments/page.js.nft.json +1 -0
  1113. package/gui/.next/server/app/settings/(console)/deployments/page_client-reference-manifest.js +1 -0
  1114. package/gui/.next/server/app/settings/(console)/linear/page.js +10 -0
  1115. package/gui/.next/server/app/settings/(console)/linear/page.js.nft.json +1 -0
  1116. package/gui/.next/server/app/settings/(console)/linear/page_client-reference-manifest.js +1 -0
  1117. package/gui/.next/server/app/settings/(console)/models/page.js +2 -0
  1118. package/gui/.next/server/app/settings/(console)/models/page.js.nft.json +1 -0
  1119. package/gui/.next/server/app/settings/(console)/models/page_client-reference-manifest.js +1 -0
  1120. package/gui/.next/server/app/settings/(console)/page.js +2 -0
  1121. package/gui/.next/server/app/settings/(console)/page.js.nft.json +1 -0
  1122. package/gui/.next/server/app/settings/(console)/page_client-reference-manifest.js +1 -0
  1123. package/gui/.next/server/app/settings/(console)/repositories/page.js +6 -0
  1124. package/gui/.next/server/app/settings/(console)/repositories/page.js.nft.json +1 -0
  1125. package/gui/.next/server/app/settings/(console)/repositories/page_client-reference-manifest.js +1 -0
  1126. package/gui/.next/server/app/settings/configure/page.js +4 -4
  1127. package/gui/.next/server/app/settings/configure/page.js.nft.json +1 -1
  1128. package/gui/.next/server/app/settings/configure/page_client-reference-manifest.js +1 -1
  1129. package/gui/.next/server/app/workflow/page.js +2 -0
  1130. package/gui/.next/server/app/workflow/page.js.nft.json +1 -0
  1131. package/gui/.next/server/app/workflow/page_client-reference-manifest.js +1 -0
  1132. package/gui/.next/server/app-paths-manifest.json +45 -16
  1133. package/gui/.next/server/chunks/105.js +2 -0
  1134. package/gui/.next/server/chunks/1304.js +200 -0
  1135. package/gui/.next/server/chunks/1536.js +1 -0
  1136. package/gui/.next/server/chunks/1948.js +59 -0
  1137. package/gui/.next/server/chunks/2470.js +3 -0
  1138. package/gui/.next/server/chunks/2581.js +2 -0
  1139. package/gui/.next/server/chunks/383.js +1 -1
  1140. package/gui/.next/server/chunks/521.js +1 -0
  1141. package/gui/.next/server/chunks/553.js +1 -0
  1142. package/gui/.next/server/chunks/5827.js +1 -0
  1143. package/gui/.next/server/chunks/6408.js +1 -0
  1144. package/gui/.next/server/chunks/641.js +1 -0
  1145. package/gui/.next/server/chunks/6482.js +1 -0
  1146. package/gui/.next/server/chunks/6801.js +1 -0
  1147. package/gui/.next/server/chunks/6890.js +1 -0
  1148. package/gui/.next/server/chunks/7201.js +1 -0
  1149. package/gui/.next/server/chunks/7221.js +1 -0
  1150. package/gui/.next/server/chunks/{332.js → 7332.js} +1 -1
  1151. package/gui/.next/server/chunks/7527.js +1 -0
  1152. package/gui/.next/server/chunks/8312.js +1 -0
  1153. package/gui/.next/server/chunks/8476.js +8 -0
  1154. package/gui/.next/server/chunks/8764.js +16 -0
  1155. package/gui/.next/server/chunks/8819.js +22 -0
  1156. package/gui/.next/server/chunks/8825.js +1 -0
  1157. package/gui/.next/server/chunks/9148.js +1 -0
  1158. package/gui/.next/server/chunks/9454.js +1 -0
  1159. package/gui/.next/server/instrumentation.js +1 -0
  1160. package/gui/.next/server/instrumentation.js.nft.json +1 -0
  1161. package/gui/.next/server/middleware-build-manifest.js +1 -1
  1162. package/gui/.next/server/pages/404.html +1 -1
  1163. package/gui/.next/server/pages/500.html +1 -1
  1164. package/gui/.next/server/pages/_document.js +1 -1
  1165. package/gui/.next/server/pages/_document.js.nft.json +1 -1
  1166. package/gui/.next/server/pages/_error.js +2 -2
  1167. package/gui/.next/server/pages/_error.js.nft.json +1 -1
  1168. package/gui/.next/server/pages-manifest.json +1 -1
  1169. package/gui/.next/server/webpack-runtime.js +1 -1
  1170. package/gui/.next/static/chunks/3800-379a4b854a7eb1dc.js +1 -0
  1171. package/gui/.next/static/chunks/464-7503c96bb839c213.js +1 -0
  1172. package/gui/.next/static/chunks/5567-672d065d2668f1ea.js +1 -0
  1173. package/gui/.next/static/chunks/6240-d3f8028539091853.js +1 -0
  1174. package/gui/.next/static/chunks/7420-cb03f2f94db611c4.js +1 -0
  1175. package/gui/.next/static/chunks/8002-528c2e589bc54111.js +1 -0
  1176. package/gui/.next/static/chunks/9188-540635591aa2baf5.js +1 -0
  1177. package/gui/.next/static/chunks/9289-00509b3e0c520cce.js +1 -0
  1178. package/gui/.next/static/chunks/9576-6d94e3d152f876e7.js +1 -0
  1179. package/gui/.next/static/chunks/app/_not-found/page-89865576110e31f0.js +1 -0
  1180. package/gui/.next/static/chunks/app/api/observability/event/route-08ffe80f6f4603f6.js +1 -0
  1181. package/gui/.next/static/chunks/app/api/observability/preferences/route-08ffe80f6f4603f6.js +1 -0
  1182. package/gui/.next/static/chunks/app/api/operations/bootstrap/route-08ffe80f6f4603f6.js +1 -0
  1183. package/gui/.next/static/chunks/app/api/operations/draft/route-08ffe80f6f4603f6.js +1 -0
  1184. package/gui/.next/static/chunks/app/api/settings/apply-config-patch/route-08ffe80f6f4603f6.js +1 -0
  1185. package/gui/.next/static/chunks/app/api/settings/preview-config-patch/route-08ffe80f6f4603f6.js +1 -0
  1186. package/gui/.next/static/chunks/app/api/setup/apply-connect-services/route-08ffe80f6f4603f6.js +1 -0
  1187. package/gui/.next/static/chunks/app/api/setup/apply-harness-repo-provisioning/route-08ffe80f6f4603f6.js +1 -0
  1188. package/gui/.next/static/chunks/app/api/setup/apply-harness-secrets/route-08ffe80f6f4603f6.js +1 -0
  1189. package/gui/.next/static/chunks/app/api/setup/apply-linear-setup/route-08ffe80f6f4603f6.js +1 -0
  1190. package/gui/.next/static/chunks/app/api/setup/apply-linear-workspace/route-08ffe80f6f4603f6.js +1 -0
  1191. package/gui/.next/static/chunks/app/api/setup/apply-local-files/route-08ffe80f6f4603f6.js +1 -0
  1192. package/gui/.next/static/chunks/app/api/setup/apply-runner-upgrade/route-08ffe80f6f4603f6.js +1 -0
  1193. package/gui/.next/static/chunks/app/api/setup/apply-target-repo-provisioning/route-08ffe80f6f4603f6.js +1 -0
  1194. package/gui/.next/static/chunks/app/api/setup/apply-target-workflow/route-08ffe80f6f4603f6.js +1 -0
  1195. package/gui/.next/static/chunks/app/api/setup/apply-vercel-bridge/route-08ffe80f6f4603f6.js +1 -0
  1196. package/gui/.next/static/chunks/app/api/setup/complete-initial-setup/route-08ffe80f6f4603f6.js +1 -0
  1197. package/gui/.next/static/chunks/app/api/setup/finalize-target-workflow/route-08ffe80f6f4603f6.js +1 -0
  1198. package/gui/.next/static/chunks/app/api/setup/harness-provisioning-progress/route-08ffe80f6f4603f6.js +1 -0
  1199. package/gui/.next/static/chunks/app/api/setup/harness-provisioning-summary/route-08ffe80f6f4603f6.js +1 -0
  1200. package/gui/.next/static/chunks/app/api/setup/linear-options/route-08ffe80f6f4603f6.js +1 -0
  1201. package/gui/.next/static/chunks/app/api/setup/linear-setup-progress/route-08ffe80f6f4603f6.js +1 -0
  1202. package/gui/.next/static/chunks/app/api/setup/linear-summary/route-08ffe80f6f4603f6.js +1 -0
  1203. package/gui/.next/static/chunks/app/api/setup/linear-workspace-editor-state/route-08ffe80f6f4603f6.js +1 -0
  1204. package/gui/.next/static/chunks/app/api/setup/local-readiness/route-08ffe80f6f4603f6.js +1 -0
  1205. package/gui/.next/static/chunks/app/api/setup/manual-harness-secret-values/route-08ffe80f6f4603f6.js +1 -0
  1206. package/gui/.next/static/chunks/app/api/setup/preview-connect-services/route-08ffe80f6f4603f6.js +1 -0
  1207. package/gui/.next/static/chunks/app/api/setup/preview-harness-repo-provisioning/route-08ffe80f6f4603f6.js +1 -0
  1208. package/gui/.next/static/chunks/app/api/setup/preview-harness-secrets/route-08ffe80f6f4603f6.js +1 -0
  1209. package/gui/.next/static/chunks/app/api/setup/preview-linear-setup/route-08ffe80f6f4603f6.js +1 -0
  1210. package/gui/.next/static/chunks/app/api/setup/preview-linear-workspace/route-08ffe80f6f4603f6.js +1 -0
  1211. package/gui/.next/static/chunks/app/api/setup/preview-local-files/route-08ffe80f6f4603f6.js +1 -0
  1212. package/gui/.next/static/chunks/app/api/setup/preview-runner-upgrade/route-08ffe80f6f4603f6.js +1 -0
  1213. package/gui/.next/static/chunks/app/api/setup/preview-target-repo-provisioning/route-08ffe80f6f4603f6.js +1 -0
  1214. package/gui/.next/static/chunks/app/api/setup/preview-target-workflow/route-08ffe80f6f4603f6.js +1 -0
  1215. package/gui/.next/static/chunks/app/api/setup/preview-vercel-bridge/route-08ffe80f6f4603f6.js +1 -0
  1216. package/gui/.next/static/chunks/app/api/setup/remote-summary/route-08ffe80f6f4603f6.js +1 -0
  1217. package/gui/.next/static/chunks/app/api/setup/runner-upgrade-progress/route-08ffe80f6f4603f6.js +1 -0
  1218. package/gui/.next/static/chunks/app/api/setup/runner-upgrade-status/route-08ffe80f6f4603f6.js +1 -0
  1219. package/gui/.next/static/chunks/app/api/setup/summary/route-08ffe80f6f4603f6.js +1 -0
  1220. package/gui/.next/static/chunks/app/api/setup/vercel-bridge-options/route-08ffe80f6f4603f6.js +1 -0
  1221. package/gui/.next/static/chunks/app/api/setup/vercel-bridge-redeploy-status/route-08ffe80f6f4603f6.js +1 -0
  1222. package/gui/.next/static/chunks/app/api/setup/vercel-summary/route-08ffe80f6f4603f6.js +1 -0
  1223. package/gui/.next/static/chunks/app/api/setup/verify-harness-repo/route-08ffe80f6f4603f6.js +1 -0
  1224. package/gui/.next/static/chunks/app/api/setup/verify-service/route-08ffe80f6f4603f6.js +1 -0
  1225. package/gui/.next/static/chunks/app/api/setup/verify-target-repo/route-08ffe80f6f4603f6.js +1 -0
  1226. package/gui/.next/static/chunks/app/api/workflow/bootstrap/route-08ffe80f6f4603f6.js +1 -0
  1227. package/gui/.next/static/chunks/app/api/workflow/models/route-08ffe80f6f4603f6.js +1 -0
  1228. package/gui/.next/static/chunks/app/layout-ec756afb9686f579.js +1 -0
  1229. package/gui/.next/static/chunks/app/operations/page-08ffe80f6f4603f6.js +1 -0
  1230. package/gui/.next/static/chunks/app/page-08ffe80f6f4603f6.js +1 -0
  1231. package/gui/.next/static/chunks/app/settings/(console)/connections/page-95847d89fc70089a.js +1 -0
  1232. package/gui/.next/static/chunks/app/settings/(console)/data-sharing/page-3e0d8fe941c7334e.js +1 -0
  1233. package/gui/.next/static/chunks/app/settings/(console)/deployments/page-e3aaff205f09b567.js +1 -0
  1234. package/gui/.next/static/chunks/app/settings/(console)/layout-74ce539ae02dc765.js +1 -0
  1235. package/gui/.next/static/chunks/app/settings/(console)/linear/page-0a1e73b5ec66af90.js +1 -0
  1236. package/gui/.next/static/chunks/app/settings/(console)/models/page-336406c2905983c9.js +1 -0
  1237. package/gui/.next/static/chunks/app/settings/(console)/page-08ffe80f6f4603f6.js +1 -0
  1238. package/gui/.next/static/chunks/app/settings/(console)/repositories/page-b1f7159c7771b16a.js +1 -0
  1239. package/gui/.next/static/chunks/app/settings/configure/loading-5f1e73b910fbd9da.js +1 -0
  1240. package/gui/.next/static/chunks/app/settings/configure/page-54b7572655b9f60f.js +1 -0
  1241. package/gui/.next/static/chunks/app/workflow/page-8087b342a6ece93c.js +1 -0
  1242. package/gui/.next/static/chunks/framework-dc88dc15d5e043e1.js +1 -0
  1243. package/gui/.next/static/chunks/main-5b390d9aaa7199a5.js +1 -0
  1244. package/gui/.next/static/chunks/main-app-7fbf1b54aaed0242.js +1 -0
  1245. package/gui/.next/static/chunks/pages/{_app-2e239ff05bfdf6d6.js → _app-50fa07b56b2d29ac.js} +1 -1
  1246. package/gui/.next/static/chunks/pages/_error-fed8688bdd23f211.js +1 -0
  1247. package/gui/.next/static/chunks/{webpack-1e50074b7e886e1b.js → webpack-b27d2f88ec3d35a4.js} +1 -1
  1248. package/gui/.next/static/css/b7b323a34ac09e0b.css +3 -0
  1249. package/gui/.next/static/wM7YWpWgyTcGc7H5h1u7U/_buildManifest.js +1 -0
  1250. package/gui/.next/trace +6 -4
  1251. package/gui/.next/types/app/api/observability/event/route.ts +347 -0
  1252. package/gui/.next/types/app/api/observability/preferences/route.ts +347 -0
  1253. package/gui/.next/types/app/api/operations/bootstrap/route.ts +347 -0
  1254. package/gui/.next/types/app/api/operations/draft/route.ts +347 -0
  1255. package/gui/.next/types/app/api/settings/apply-config-patch/route.ts +347 -0
  1256. package/gui/.next/types/app/api/settings/preview-config-patch/route.ts +347 -0
  1257. package/gui/.next/types/app/api/setup/apply-linear-workspace/route.ts +347 -0
  1258. package/gui/.next/types/app/api/setup/apply-runner-upgrade/route.ts +347 -0
  1259. package/gui/.next/types/app/api/setup/apply-target-repo-provisioning/route.ts +347 -0
  1260. package/gui/.next/types/app/api/setup/complete-initial-setup/route.ts +347 -0
  1261. package/gui/.next/types/app/api/setup/harness-provisioning-progress/route.ts +347 -0
  1262. package/gui/.next/types/app/api/setup/linear-setup-progress/route.ts +347 -0
  1263. package/gui/.next/types/app/api/setup/linear-workspace-editor-state/route.ts +347 -0
  1264. package/gui/.next/types/app/api/setup/preview-linear-workspace/route.ts +347 -0
  1265. package/gui/.next/types/app/api/setup/preview-runner-upgrade/route.ts +347 -0
  1266. package/gui/.next/types/app/api/setup/preview-target-repo-provisioning/route.ts +347 -0
  1267. package/gui/.next/types/app/api/setup/runner-upgrade-progress/route.ts +347 -0
  1268. package/gui/.next/types/app/api/setup/runner-upgrade-status/route.ts +347 -0
  1269. package/gui/.next/types/app/api/workflow/bootstrap/route.ts +347 -0
  1270. package/gui/.next/types/app/api/workflow/models/route.ts +347 -0
  1271. package/gui/.next/types/app/operations/page.ts +84 -0
  1272. package/gui/.next/types/app/settings/(console)/connections/page.ts +84 -0
  1273. package/gui/.next/types/app/settings/(console)/data-sharing/page.ts +84 -0
  1274. package/gui/.next/types/app/settings/(console)/deployments/page.ts +84 -0
  1275. package/gui/.next/types/app/settings/(console)/layout.ts +84 -0
  1276. package/gui/.next/types/app/settings/(console)/linear/page.ts +84 -0
  1277. package/gui/.next/types/app/settings/(console)/models/page.ts +84 -0
  1278. package/gui/.next/types/app/settings/(console)/page.ts +84 -0
  1279. package/gui/.next/types/app/settings/(console)/repositories/page.ts +84 -0
  1280. package/gui/.next/types/app/workflow/page.ts +84 -0
  1281. package/gui/.next/types/routes.d.ts +33 -3
  1282. package/gui/.next/types/validator.ts +270 -0
  1283. package/observability.public.json +6 -0
  1284. package/package.json +6 -1
  1285. package/templates/.harness/config.example.json +1 -0
  1286. package/workspace-snapshot/files/.agents/skills/architecture-evolution-audit/SKILL.md +282 -0
  1287. package/workspace-snapshot/files/.agents/skills/code-health-audit/SKILL.md +188 -0
  1288. package/workspace-snapshot/files/.agents/skills/implementation/SKILL.md +283 -0
  1289. package/workspace-snapshot/files/.agents/skills/issue-intake/SKILL.md +175 -0
  1290. package/workspace-snapshot/files/.agents/skills/issue-intake/examples.md +112 -0
  1291. package/workspace-snapshot/files/.agents/skills/planner/SKILL.md +263 -0
  1292. package/workspace-snapshot/files/.agents/skills/security-audit/SKILL.md +270 -0
  1293. package/workspace-snapshot/files/.env.example +37 -0
  1294. package/workspace-snapshot/files/.github/CODEOWNERS +4 -0
  1295. package/workspace-snapshot/files/.github/dependabot.yml +12 -0
  1296. package/workspace-snapshot/files/.github/workflows/ci.yml +32 -0
  1297. package/workspace-snapshot/files/.github/workflows/codeql.yml +35 -0
  1298. package/workspace-snapshot/files/.github/workflows/harness-auto-runner.yml +588 -0
  1299. package/workspace-snapshot/files/.github/workflows/p-dev-runner-config-canary.yml +24 -0
  1300. package/workspace-snapshot/files/.harness/config.example.json +84 -0
  1301. package/workspace-snapshot/files/AGENTS.md +141 -0
  1302. package/workspace-snapshot/files/ARCHITECTURE.md +402 -0
  1303. package/workspace-snapshot/files/CHANGELOG.md +211 -0
  1304. package/workspace-snapshot/files/LICENSE +21 -0
  1305. package/workspace-snapshot/files/README.md +116 -0
  1306. package/workspace-snapshot/files/ROADMAP.md +59 -0
  1307. package/workspace-snapshot/files/api/linear-webhook.ts +41 -0
  1308. package/workspace-snapshot/files/apps/gui/app/api/observability/event/route.ts +36 -0
  1309. package/workspace-snapshot/files/apps/gui/app/api/observability/preferences/route.ts +88 -0
  1310. package/workspace-snapshot/files/apps/gui/app/api/operations/bootstrap/route.ts +8 -0
  1311. package/workspace-snapshot/files/apps/gui/app/api/operations/draft/route.ts +15 -0
  1312. package/workspace-snapshot/files/apps/gui/app/api/settings/apply-config-patch/route.ts +52 -0
  1313. package/workspace-snapshot/files/apps/gui/app/api/settings/preview-config-patch/route.ts +40 -0
  1314. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-connect-services/route.ts +21 -0
  1315. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-harness-repo-provisioning/route.ts +36 -0
  1316. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-harness-secrets/route.ts +42 -0
  1317. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-linear-setup/route.ts +23 -0
  1318. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-linear-workspace/route.ts +23 -0
  1319. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-local-files/route.ts +42 -0
  1320. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-runner-upgrade/route.ts +33 -0
  1321. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-target-repo-provisioning/route.ts +38 -0
  1322. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-target-workflow/route.ts +49 -0
  1323. package/workspace-snapshot/files/apps/gui/app/api/setup/apply-vercel-bridge/route.ts +32 -0
  1324. package/workspace-snapshot/files/apps/gui/app/api/setup/complete-initial-setup/route.ts +49 -0
  1325. package/workspace-snapshot/files/apps/gui/app/api/setup/finalize-target-workflow/route.ts +32 -0
  1326. package/workspace-snapshot/files/apps/gui/app/api/setup/harness-provisioning-progress/route.ts +21 -0
  1327. package/workspace-snapshot/files/apps/gui/app/api/setup/harness-provisioning-summary/route.ts +17 -0
  1328. package/workspace-snapshot/files/apps/gui/app/api/setup/linear-options/route.ts +17 -0
  1329. package/workspace-snapshot/files/apps/gui/app/api/setup/linear-setup-progress/route.ts +17 -0
  1330. package/workspace-snapshot/files/apps/gui/app/api/setup/linear-summary/route.ts +15 -0
  1331. package/workspace-snapshot/files/apps/gui/app/api/setup/linear-workspace-editor-state/route.ts +17 -0
  1332. package/workspace-snapshot/files/apps/gui/app/api/setup/local-readiness/route.ts +57 -0
  1333. package/workspace-snapshot/files/apps/gui/app/api/setup/manual-harness-secret-values/route.ts +33 -0
  1334. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-connect-services/route.ts +17 -0
  1335. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-harness-repo-provisioning/route.ts +22 -0
  1336. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-harness-secrets/route.ts +19 -0
  1337. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-linear-setup/route.ts +20 -0
  1338. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-linear-workspace/route.ts +22 -0
  1339. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-local-files/route.ts +17 -0
  1340. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-runner-upgrade/route.ts +17 -0
  1341. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-target-repo-provisioning/route.ts +34 -0
  1342. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-target-workflow/route.ts +25 -0
  1343. package/workspace-snapshot/files/apps/gui/app/api/setup/preview-vercel-bridge/route.ts +23 -0
  1344. package/workspace-snapshot/files/apps/gui/app/api/setup/remote-summary/route.ts +15 -0
  1345. package/workspace-snapshot/files/apps/gui/app/api/setup/runner-upgrade-progress/route.ts +17 -0
  1346. package/workspace-snapshot/files/apps/gui/app/api/setup/runner-upgrade-status/route.ts +72 -0
  1347. package/workspace-snapshot/files/apps/gui/app/api/setup/summary/route.ts +10 -0
  1348. package/workspace-snapshot/files/apps/gui/app/api/setup/vercel-bridge-options/route.ts +29 -0
  1349. package/workspace-snapshot/files/apps/gui/app/api/setup/vercel-bridge-redeploy-status/route.ts +22 -0
  1350. package/workspace-snapshot/files/apps/gui/app/api/setup/vercel-summary/route.ts +15 -0
  1351. package/workspace-snapshot/files/apps/gui/app/api/setup/verify-harness-repo/route.ts +31 -0
  1352. package/workspace-snapshot/files/apps/gui/app/api/setup/verify-service/route.ts +41 -0
  1353. package/workspace-snapshot/files/apps/gui/app/api/setup/verify-target-repo/route.ts +40 -0
  1354. package/workspace-snapshot/files/apps/gui/app/api/workflow/bootstrap/route.ts +24 -0
  1355. package/workspace-snapshot/files/apps/gui/app/api/workflow/models/route.ts +86 -0
  1356. package/workspace-snapshot/files/apps/gui/app/layout.tsx +28 -0
  1357. package/workspace-snapshot/files/apps/gui/app/operations/page.tsx +23 -0
  1358. package/workspace-snapshot/files/apps/gui/app/page.tsx +11 -0
  1359. package/workspace-snapshot/files/apps/gui/app/settings/(console)/connections/page.tsx +27 -0
  1360. package/workspace-snapshot/files/apps/gui/app/settings/(console)/data-sharing/page.tsx +25 -0
  1361. package/workspace-snapshot/files/apps/gui/app/settings/(console)/deployments/page.tsx +28 -0
  1362. package/workspace-snapshot/files/apps/gui/app/settings/(console)/layout.tsx +45 -0
  1363. package/workspace-snapshot/files/apps/gui/app/settings/(console)/linear/page.tsx +20 -0
  1364. package/workspace-snapshot/files/apps/gui/app/settings/(console)/models/page.tsx +14 -0
  1365. package/workspace-snapshot/files/apps/gui/app/settings/(console)/page.tsx +7 -0
  1366. package/workspace-snapshot/files/apps/gui/app/settings/(console)/repositories/page.tsx +29 -0
  1367. package/workspace-snapshot/files/apps/gui/app/settings/configure/loading.tsx +25 -0
  1368. package/workspace-snapshot/files/apps/gui/app/settings/configure/page.tsx +103 -0
  1369. package/workspace-snapshot/files/apps/gui/app/workflow/page.tsx +24 -0
  1370. package/workspace-snapshot/files/apps/gui/components/custom/app-shell.tsx +33 -0
  1371. package/workspace-snapshot/files/apps/gui/components/custom/application-header.tsx +64 -0
  1372. package/workspace-snapshot/files/apps/gui/components/custom/configure-experience.tsx +933 -0
  1373. package/workspace-snapshot/files/apps/gui/components/custom/configure-page-content.tsx +60 -0
  1374. package/workspace-snapshot/files/apps/gui/components/custom/configure-workflow.tsx +1847 -0
  1375. package/workspace-snapshot/files/apps/gui/components/custom/connected-status.tsx +30 -0
  1376. package/workspace-snapshot/files/apps/gui/components/custom/data-sharing-preferences.tsx +159 -0
  1377. package/workspace-snapshot/files/apps/gui/components/custom/environment-config-form.tsx +418 -0
  1378. package/workspace-snapshot/files/apps/gui/components/custom/first-run-stepper.tsx +199 -0
  1379. package/workspace-snapshot/files/apps/gui/components/custom/github-token-help-disclosure.tsx +142 -0
  1380. package/workspace-snapshot/files/apps/gui/components/custom/guided-cloud-secrets-card.tsx +1046 -0
  1381. package/workspace-snapshot/files/apps/gui/components/custom/guided-linear-workspace-card.tsx +1352 -0
  1382. package/workspace-snapshot/files/apps/gui/components/custom/guided-local-readiness-card.tsx +250 -0
  1383. package/workspace-snapshot/files/apps/gui/components/custom/guided-operation-panel.tsx +102 -0
  1384. package/workspace-snapshot/files/apps/gui/components/custom/guided-progress-check.tsx +37 -0
  1385. package/workspace-snapshot/files/apps/gui/components/custom/guided-setup-progress.tsx +114 -0
  1386. package/workspace-snapshot/files/apps/gui/components/custom/guided-step-success-panel.tsx +50 -0
  1387. package/workspace-snapshot/files/apps/gui/components/custom/guided-step-transition.tsx +114 -0
  1388. package/workspace-snapshot/files/apps/gui/components/custom/guided-target-workflow-card.tsx +603 -0
  1389. package/workspace-snapshot/files/apps/gui/components/custom/guided-vercel-bridge-card.tsx +1023 -0
  1390. package/workspace-snapshot/files/apps/gui/components/custom/local-write-confirmation.tsx +91 -0
  1391. package/workspace-snapshot/files/apps/gui/components/custom/local-write-preview.tsx +52 -0
  1392. package/workspace-snapshot/files/apps/gui/components/custom/observability-settings-card.tsx +23 -0
  1393. package/workspace-snapshot/files/apps/gui/components/custom/preview-panel.tsx +19 -0
  1394. package/workspace-snapshot/files/apps/gui/components/custom/primary-setup-task-card.tsx +65 -0
  1395. package/workspace-snapshot/files/apps/gui/components/custom/readiness-banner.tsx +91 -0
  1396. package/workspace-snapshot/files/apps/gui/components/custom/remote-action-confirmation.tsx +157 -0
  1397. package/workspace-snapshot/files/apps/gui/components/custom/remote-action-preview.tsx +84 -0
  1398. package/workspace-snapshot/files/apps/gui/components/custom/remote-secret-form.tsx +123 -0
  1399. package/workspace-snapshot/files/apps/gui/components/custom/remote-setup-section.tsx +354 -0
  1400. package/workspace-snapshot/files/apps/gui/components/custom/review-cloud-secrets-disclosure.tsx +59 -0
  1401. package/workspace-snapshot/files/apps/gui/components/custom/review-generated-files-disclosure.tsx +67 -0
  1402. package/workspace-snapshot/files/apps/gui/components/custom/review-workflow-changes-disclosure.tsx +59 -0
  1403. package/workspace-snapshot/files/apps/gui/components/custom/section-card.tsx +33 -0
  1404. package/workspace-snapshot/files/apps/gui/components/custom/service-icons.tsx +30 -0
  1405. package/workspace-snapshot/files/apps/gui/components/custom/settings-menu.tsx +109 -0
  1406. package/workspace-snapshot/files/apps/gui/components/custom/setup-apply-result.tsx +52 -0
  1407. package/workspace-snapshot/files/apps/gui/components/custom/setup-checklist.tsx +224 -0
  1408. package/workspace-snapshot/files/apps/gui/components/custom/status-badge.tsx +22 -0
  1409. package/workspace-snapshot/files/apps/gui/components/custom/target-repo-config-form.tsx +667 -0
  1410. package/workspace-snapshot/files/apps/gui/components/custom/target-repo-create-connect.tsx +419 -0
  1411. package/workspace-snapshot/files/apps/gui/components/custom/target-workflow-pr-card.tsx +345 -0
  1412. package/workspace-snapshot/files/apps/gui/components/custom/theme-provider.tsx +11 -0
  1413. package/workspace-snapshot/files/apps/gui/components/custom/theme-toggle.tsx +36 -0
  1414. package/workspace-snapshot/files/apps/gui/components/custom/vercel-bridge-orchestration-status.tsx +65 -0
  1415. package/workspace-snapshot/files/apps/gui/components/custom/workflow-install-pending-panel.tsx +188 -0
  1416. package/workspace-snapshot/files/apps/gui/components/settings/editors/connections-settings-editor.tsx +261 -0
  1417. package/workspace-snapshot/files/apps/gui/components/settings/editors/deployments-settings-editor.tsx +397 -0
  1418. package/workspace-snapshot/files/apps/gui/components/settings/editors/linear-settings-editor.tsx +512 -0
  1419. package/workspace-snapshot/files/apps/gui/components/settings/editors/repositories-settings-editor.tsx +749 -0
  1420. package/workspace-snapshot/files/apps/gui/components/settings/editors/runner-upgrade-settings-card.tsx +533 -0
  1421. package/workspace-snapshot/files/apps/gui/components/settings/settings-models-client.tsx +102 -0
  1422. package/workspace-snapshot/files/apps/gui/components/settings/settings-mutation-panel.tsx +125 -0
  1423. package/workspace-snapshot/files/apps/gui/components/settings/settings-shell.tsx +46 -0
  1424. package/workspace-snapshot/files/apps/gui/components/ui/badge.tsx +40 -0
  1425. package/workspace-snapshot/files/apps/gui/components/ui/button.tsx +52 -0
  1426. package/workspace-snapshot/files/apps/gui/components/ui/card.tsx +64 -0
  1427. package/workspace-snapshot/files/apps/gui/components/ui/checkbox.tsx +21 -0
  1428. package/workspace-snapshot/files/apps/gui/components/ui/dropdown-menu.tsx +257 -0
  1429. package/workspace-snapshot/files/apps/gui/components/ui/guided-select.tsx +22 -0
  1430. package/workspace-snapshot/files/apps/gui/components/ui/input.tsx +22 -0
  1431. package/workspace-snapshot/files/apps/gui/components/ui/label.tsx +20 -0
  1432. package/workspace-snapshot/files/apps/gui/components/ui/separator.tsx +23 -0
  1433. package/workspace-snapshot/files/apps/gui/components/ui/skeleton.tsx +13 -0
  1434. package/workspace-snapshot/files/apps/gui/components/ui/textarea.tsx +22 -0
  1435. package/workspace-snapshot/files/apps/gui/components/workflow/workflow-cards-section.tsx +206 -0
  1436. package/workspace-snapshot/files/apps/gui/components/workflow/workflow-health-panel.tsx +43 -0
  1437. package/workspace-snapshot/files/apps/gui/components/workflow/workflow-model-control.tsx +111 -0
  1438. package/workspace-snapshot/files/apps/gui/components/workflow/workflow-page-client.tsx +161 -0
  1439. package/workspace-snapshot/files/apps/gui/components/workflow/workflow-scope-selector.tsx +41 -0
  1440. package/workspace-snapshot/files/apps/gui/components.json +21 -0
  1441. package/workspace-snapshot/files/apps/gui/instrumentation.ts +136 -0
  1442. package/workspace-snapshot/files/apps/gui/lib/configure-navigation-timing.ts +53 -0
  1443. package/workspace-snapshot/files/apps/gui/lib/constants/breakpoints.ts +13 -0
  1444. package/workspace-snapshot/files/apps/gui/lib/constants/form.ts +13 -0
  1445. package/workspace-snapshot/files/apps/gui/lib/constants/index.ts +4 -0
  1446. package/workspace-snapshot/files/apps/gui/lib/constants/layout.ts +16 -0
  1447. package/workspace-snapshot/files/apps/gui/lib/constants/spacing.ts +8 -0
  1448. package/workspace-snapshot/files/apps/gui/lib/guided-setup.ts +438 -0
  1449. package/workspace-snapshot/files/apps/gui/lib/linear-association-draft.ts +93 -0
  1450. package/workspace-snapshot/files/apps/gui/lib/local-readiness-visual-queue.ts +61 -0
  1451. package/workspace-snapshot/files/apps/gui/lib/observability-client.ts +21 -0
  1452. package/workspace-snapshot/files/apps/gui/lib/observability-preferences.ts +19 -0
  1453. package/workspace-snapshot/files/apps/gui/lib/observability-request-guard.ts +136 -0
  1454. package/workspace-snapshot/files/apps/gui/lib/observability-route.ts +75 -0
  1455. package/workspace-snapshot/files/apps/gui/lib/settings/load-harness-config-summary.ts +20 -0
  1456. package/workspace-snapshot/files/apps/gui/lib/settings/load-repositories-overview.ts +37 -0
  1457. package/workspace-snapshot/files/apps/gui/lib/settings/load-settings-editor-data.ts +51 -0
  1458. package/workspace-snapshot/files/apps/gui/lib/settings/load-target-repo-overview-fields.ts +124 -0
  1459. package/workspace-snapshot/files/apps/gui/lib/settings/runner-upgrade-feature-flag.ts +9 -0
  1460. package/workspace-snapshot/files/apps/gui/lib/settings/runner-upgrade-ssr.ts +13 -0
  1461. package/workspace-snapshot/files/apps/gui/lib/settings/runner-upgrade-ui-gates.ts +87 -0
  1462. package/workspace-snapshot/files/apps/gui/lib/settings/settings-mutation.ts +49 -0
  1463. package/workspace-snapshot/files/apps/gui/lib/settings/settings-navigation.ts +10 -0
  1464. package/workspace-snapshot/files/apps/gui/lib/settings/settings-setup-client.ts +312 -0
  1465. package/workspace-snapshot/files/apps/gui/lib/setup-json-response.ts +19 -0
  1466. package/workspace-snapshot/files/apps/gui/lib/setup-server.ts +1427 -0
  1467. package/workspace-snapshot/files/apps/gui/lib/step6-remote-state.ts +43 -0
  1468. package/workspace-snapshot/files/apps/gui/lib/use-theme-toggle.ts +26 -0
  1469. package/workspace-snapshot/files/apps/gui/lib/utils.ts +6 -0
  1470. package/workspace-snapshot/files/apps/gui/lib/vercel-bridge-polling-ui.ts +103 -0
  1471. package/workspace-snapshot/files/apps/gui/lib/verification-state.ts +266 -0
  1472. package/workspace-snapshot/files/apps/gui/lib/workflow/api-client.ts +84 -0
  1473. package/workspace-snapshot/files/apps/gui/lib/workflow/use-model-autosave.ts +90 -0
  1474. package/workspace-snapshot/files/apps/gui/lib/workflow/use-workflow-model-save.ts +265 -0
  1475. package/workspace-snapshot/files/apps/gui/lib/workflow/workflow-health.ts +53 -0
  1476. package/workspace-snapshot/files/apps/gui/lib/workflow/workflow-ownership.ts +47 -0
  1477. package/workspace-snapshot/files/apps/gui/lib/workflow/workflow-status-content.ts +149 -0
  1478. package/workspace-snapshot/files/apps/gui/lib/workflow/workflow-violation-messages.ts +49 -0
  1479. package/workspace-snapshot/files/apps/gui/lib/workflow-server.ts +307 -0
  1480. package/workspace-snapshot/files/apps/gui/next-env.d.ts +6 -0
  1481. package/workspace-snapshot/files/apps/gui/next.config.ts +39 -0
  1482. package/workspace-snapshot/files/apps/gui/postcss.config.mjs +8 -0
  1483. package/workspace-snapshot/files/apps/gui/public/setup/github-token/github-pat-generate-classic.png +0 -0
  1484. package/workspace-snapshot/files/apps/gui/public/setup/github-token/github-pat-generate-new-token.png +0 -0
  1485. package/workspace-snapshot/files/apps/gui/public/setup/github-token/github-pat-verify-email.png +0 -0
  1486. package/workspace-snapshot/files/apps/gui/styles/globals.css +86 -0
  1487. package/workspace-snapshot/files/apps/gui/tsconfig.json +24 -0
  1488. package/workspace-snapshot/files/apps/gui/tweetsodium.d.ts +14 -0
  1489. package/workspace-snapshot/files/docs/architecture/canonical-product-development-workflow.md +70 -0
  1490. package/workspace-snapshot/files/docs/architecture/linear-automation-state-machine.md +283 -0
  1491. package/workspace-snapshot/files/docs/decisions/0001-cursor-first-v0.1.md +59 -0
  1492. package/workspace-snapshot/files/docs/decisions/0003-automation-state-machine-and-auto-model-policy.md +65 -0
  1493. package/workspace-snapshot/files/docs/decisions/0004-agent-provider-boundary.md +109 -0
  1494. package/workspace-snapshot/files/docs/design/product-development-harness-gui.md +1023 -0
  1495. package/workspace-snapshot/files/docs/getting-started.md +123 -0
  1496. package/workspace-snapshot/files/docs/gui-local.md +151 -0
  1497. package/workspace-snapshot/files/docs/gui-remote-setup.md +106 -0
  1498. package/workspace-snapshot/files/docs/integration-repair.md +82 -0
  1499. package/workspace-snapshot/files/docs/issue-intake.md +136 -0
  1500. package/workspace-snapshot/files/docs/linear-watcher-setup.md +184 -0
  1501. package/workspace-snapshot/files/docs/milestones/m1-runner-foundation.md +51 -0
  1502. package/workspace-snapshot/files/docs/milestones/m2-planning-phase.md +129 -0
  1503. package/workspace-snapshot/files/docs/milestones/m3-implementation-phase.md +158 -0
  1504. package/workspace-snapshot/files/docs/milestones/m4-handoff-phase.md +122 -0
  1505. package/workspace-snapshot/files/docs/milestones/m5-revision-phase.md +101 -0
  1506. package/workspace-snapshot/files/docs/milestones/m6-merge-phase.md +143 -0
  1507. package/workspace-snapshot/files/docs/milestones/m7-issue-intake.md +72 -0
  1508. package/workspace-snapshot/files/docs/milestones/m8-linear-watcher.md +80 -0
  1509. package/workspace-snapshot/files/docs/npm-packaging-spike.md +52 -0
  1510. package/workspace-snapshot/files/docs/observability-and-privacy.md +247 -0
  1511. package/workspace-snapshot/files/docs/operator-config.md +202 -0
  1512. package/workspace-snapshot/files/docs/p-dev.md +247 -0
  1513. package/workspace-snapshot/files/docs/production-sync-automation.md +176 -0
  1514. package/workspace-snapshot/files/docs/provider-portability.md +131 -0
  1515. package/workspace-snapshot/files/docs/releases/release-process.md +400 -0
  1516. package/workspace-snapshot/files/docs/releases/v0.2.0.md +193 -0
  1517. package/workspace-snapshot/files/docs/releases/v0.3.0.md +188 -0
  1518. package/workspace-snapshot/files/docs/releases/v0.3.1.md +138 -0
  1519. package/workspace-snapshot/files/docs/releases/v0.4.0.md +93 -0
  1520. package/workspace-snapshot/files/docs/research/001-manual-run-retrospective.md +64 -0
  1521. package/workspace-snapshot/files/docs/research/002-linear-cursor-integration-smoke-test.md +64 -0
  1522. package/workspace-snapshot/files/docs/research/003-cursor-automation-planning-router-spike.md +104 -0
  1523. package/workspace-snapshot/files/docs/research/README.md +26 -0
  1524. package/workspace-snapshot/files/docs/security.md +198 -0
  1525. package/workspace-snapshot/files/docs/settings-console.md +44 -0
  1526. package/workspace-snapshot/files/docs/skills/README.md +7 -0
  1527. package/workspace-snapshot/files/docs/skills/skill-architecture.md +197 -0
  1528. package/workspace-snapshot/files/docs/target-repo-branch-setup.md +80 -0
  1529. package/workspace-snapshot/files/evals/README.md +31 -0
  1530. package/workspace-snapshot/files/examples/README.md +32 -0
  1531. package/workspace-snapshot/files/examples/runs/001-target-app-github-link/README.md +49 -0
  1532. package/workspace-snapshot/files/examples/runs/001-target-app-github-link/eval-scorecard.md +63 -0
  1533. package/workspace-snapshot/files/examples/runs/001-target-app-github-link/implementation-plan.md +79 -0
  1534. package/workspace-snapshot/files/examples/runs/001-target-app-github-link/linear-issue.md +74 -0
  1535. package/workspace-snapshot/files/examples/runs/001-target-app-github-link/pr-readiness-report.md +92 -0
  1536. package/workspace-snapshot/files/examples/runs/m5.5-live-sandbox-smoke/README.md +73 -0
  1537. package/workspace-snapshot/files/gpt/issue-intake/custom-gpt-instructions.md +112 -0
  1538. package/workspace-snapshot/files/gpt/issue-intake/knowledge.md +278 -0
  1539. package/workspace-snapshot/files/gpt/issue-intake/setup-guide.md +115 -0
  1540. package/workspace-snapshot/files/gpt/issue-intake/smoke-test.md +119 -0
  1541. package/workspace-snapshot/files/harness.config.json +92 -0
  1542. package/workspace-snapshot/files/harness.config.schema.json +466 -0
  1543. package/workspace-snapshot/files/package-lock.json +5502 -0
  1544. package/workspace-snapshot/files/package.json +68 -0
  1545. package/workspace-snapshot/files/packages/p-dev/LICENSE +21 -0
  1546. package/workspace-snapshot/files/packages/p-dev/README.md +72 -0
  1547. package/workspace-snapshot/files/packages/p-dev/gui.next.config.mjs +13 -0
  1548. package/workspace-snapshot/files/packages/p-dev/observability.public.json +6 -0
  1549. package/workspace-snapshot/files/packages/p-dev/package.json +67 -0
  1550. package/workspace-snapshot/files/prompts/issue-intake-chatgpt.md +268 -0
  1551. package/workspace-snapshot/files/scripts/configure-browser-matrix.config.ts +40 -0
  1552. package/workspace-snapshot/files/scripts/configure-browser-matrix.spec.ts +294 -0
  1553. package/workspace-snapshot/files/scripts/configure-step4-harness-readiness.config.ts +118 -0
  1554. package/workspace-snapshot/files/scripts/configure-step4-harness-readiness.spec.ts +80 -0
  1555. package/workspace-snapshot/files/scripts/generate-config-schema.ts +16 -0
  1556. package/workspace-snapshot/files/scripts/prepare-configure-browser-workspace.ts +138 -0
  1557. package/workspace-snapshot/files/scripts/prepare-p-dev-package.ts +164 -0
  1558. package/workspace-snapshot/files/scripts/workflow-browser-matrix.config.ts +27 -0
  1559. package/workspace-snapshot/files/scripts/workflow-browser-matrix.spec.ts +151 -0
  1560. package/workspace-snapshot/files/skills/README.md +7 -0
  1561. package/workspace-snapshot/files/skills/issue-intake/README.md +5 -0
  1562. package/workspace-snapshot/files/src/agents/cursor-provider.ts +107 -0
  1563. package/workspace-snapshot/files/src/agents/index.ts +64 -0
  1564. package/workspace-snapshot/files/src/agents/provider.ts +7 -0
  1565. package/workspace-snapshot/files/src/agents/types.ts +121 -0
  1566. package/workspace-snapshot/files/src/artifacts/events.ts +31 -0
  1567. package/workspace-snapshot/files/src/artifacts/manifest-fields.ts +9 -0
  1568. package/workspace-snapshot/files/src/artifacts/manifest.ts +20 -0
  1569. package/workspace-snapshot/files/src/artifacts/paths.ts +145 -0
  1570. package/workspace-snapshot/files/src/artifacts/redact.ts +66 -0
  1571. package/workspace-snapshot/files/src/artifacts/run-id.ts +4 -0
  1572. package/workspace-snapshot/files/src/artifacts/snapshot.ts +13 -0
  1573. package/workspace-snapshot/files/src/artifacts/summary.ts +116 -0
  1574. package/workspace-snapshot/files/src/artifacts/write-json-out-manifest.ts +90 -0
  1575. package/workspace-snapshot/files/src/cli/commands/canary-runner-config.ts +6 -0
  1576. package/workspace-snapshot/files/src/cli/commands/diagnose-vercel-bridge.ts +25 -0
  1577. package/workspace-snapshot/files/src/cli/commands/doctor.ts +353 -0
  1578. package/workspace-snapshot/files/src/cli/commands/inspect.ts +46 -0
  1579. package/workspace-snapshot/files/src/cli/commands/operator-init.ts +39 -0
  1580. package/workspace-snapshot/files/src/cli/commands/redact-output.ts +19 -0
  1581. package/workspace-snapshot/files/src/cli/commands/resolve-route.ts +86 -0
  1582. package/workspace-snapshot/files/src/cli/commands/run.ts +101 -0
  1583. package/workspace-snapshot/files/src/cli/commands/sync-managed-runner.ts +126 -0
  1584. package/workspace-snapshot/files/src/cli/commands/sync-production.ts +207 -0
  1585. package/workspace-snapshot/files/src/cli/commands/validate-issue.ts +72 -0
  1586. package/workspace-snapshot/files/src/cli/exit-codes.ts +4 -0
  1587. package/workspace-snapshot/files/src/cli/finalize-exit.ts +9 -0
  1588. package/workspace-snapshot/files/src/cli/program.ts +247 -0
  1589. package/workspace-snapshot/files/src/config/assert-cloud-config-fingerprint.ts +36 -0
  1590. package/workspace-snapshot/files/src/config/cloud-config-fingerprint.ts +90 -0
  1591. package/workspace-snapshot/files/src/config/defaults.ts +33 -0
  1592. package/workspace-snapshot/files/src/config/legacy-linear-top-level.ts +69 -0
  1593. package/workspace-snapshot/files/src/config/linear-association-gate.ts +80 -0
  1594. package/workspace-snapshot/files/src/config/load-config.ts +80 -0
  1595. package/workspace-snapshot/files/src/config/load-dotenv.ts +11 -0
  1596. package/workspace-snapshot/files/src/config/resolve-config.ts +127 -0
  1597. package/workspace-snapshot/files/src/config/resolve-linear-team.ts +41 -0
  1598. package/workspace-snapshot/files/src/config/resolve-linear-workspace.ts +391 -0
  1599. package/workspace-snapshot/files/src/config/role-models.ts +39 -0
  1600. package/workspace-snapshot/files/src/config/runner-upgrade-sync-gate.ts +26 -0
  1601. package/workspace-snapshot/files/src/config/schema.ts +146 -0
  1602. package/workspace-snapshot/files/src/config/status-names.ts +63 -0
  1603. package/workspace-snapshot/files/src/config/types.ts +5 -0
  1604. package/workspace-snapshot/files/src/config/workspace-root.ts +28 -0
  1605. package/workspace-snapshot/files/src/cursor/agent-factory.ts +172 -0
  1606. package/workspace-snapshot/files/src/cursor/builder-resume-errors.ts +41 -0
  1607. package/workspace-snapshot/files/src/cursor/errors.ts +18 -0
  1608. package/workspace-snapshot/files/src/cursor/git-result.ts +87 -0
  1609. package/workspace-snapshot/files/src/cursor/model.ts +128 -0
  1610. package/workspace-snapshot/files/src/cursor/revision-git-result.ts +80 -0
  1611. package/workspace-snapshot/files/src/cursor/run-cleanup.ts +30 -0
  1612. package/workspace-snapshot/files/src/cursor/run-observer.ts +380 -0
  1613. package/workspace-snapshot/files/src/cursor/urls.ts +19 -0
  1614. package/workspace-snapshot/files/src/fixture/frontmatter.ts +56 -0
  1615. package/workspace-snapshot/files/src/github/actions-url.ts +13 -0
  1616. package/workspace-snapshot/files/src/github/auth-verification-retry.ts +63 -0
  1617. package/workspace-snapshot/files/src/github/base-branch.ts +120 -0
  1618. package/workspace-snapshot/files/src/github/check-policy.ts +108 -0
  1619. package/workspace-snapshot/files/src/github/client.ts +995 -0
  1620. package/workspace-snapshot/files/src/github/commit-reachability.ts +184 -0
  1621. package/workspace-snapshot/files/src/github/links.ts +23 -0
  1622. package/workspace-snapshot/files/src/github/merge-result.ts +31 -0
  1623. package/workspace-snapshot/files/src/github/pr-discovery.ts +55 -0
  1624. package/workspace-snapshot/files/src/github/pr-inspector.ts +297 -0
  1625. package/workspace-snapshot/files/src/github/pr-url.ts +23 -0
  1626. package/workspace-snapshot/files/src/github/rate-limit-metadata.ts +105 -0
  1627. package/workspace-snapshot/files/src/gui/configure-health.ts +160 -0
  1628. package/workspace-snapshot/files/src/gui/dev-server-process.ts +213 -0
  1629. package/workspace-snapshot/files/src/gui/port.ts +78 -0
  1630. package/workspace-snapshot/files/src/gui/repo-root.ts +80 -0
  1631. package/workspace-snapshot/files/src/gui/start-configure-stable.ts +143 -0
  1632. package/workspace-snapshot/files/src/gui/start-gui.ts +131 -0
  1633. package/workspace-snapshot/files/src/index.ts +10 -0
  1634. package/workspace-snapshot/files/src/linear/client.ts +59 -0
  1635. package/workspace-snapshot/files/src/linear/comment-card.ts +74 -0
  1636. package/workspace-snapshot/files/src/linear/comments.ts +943 -0
  1637. package/workspace-snapshot/files/src/linear/handoff-comment.ts +19 -0
  1638. package/workspace-snapshot/files/src/linear/issue-query.ts +74 -0
  1639. package/workspace-snapshot/files/src/linear/markers.ts +266 -0
  1640. package/workspace-snapshot/files/src/linear/merge-source-comment.ts +46 -0
  1641. package/workspace-snapshot/files/src/linear/parser.ts +161 -0
  1642. package/workspace-snapshot/files/src/linear/phase-labels.ts +58 -0
  1643. package/workspace-snapshot/files/src/linear/planning-comment.ts +19 -0
  1644. package/workspace-snapshot/files/src/linear/pm-feedback-comment.ts +41 -0
  1645. package/workspace-snapshot/files/src/linear/project-harness-metadata.ts +147 -0
  1646. package/workspace-snapshot/files/src/linear/project-metadata-sync.ts +115 -0
  1647. package/workspace-snapshot/files/src/linear/revision-comment.ts +19 -0
  1648. package/workspace-snapshot/files/src/linear/run-status-comment.ts +197 -0
  1649. package/workspace-snapshot/files/src/linear/states.ts +20 -0
  1650. package/workspace-snapshot/files/src/linear/writer.ts +241 -0
  1651. package/workspace-snapshot/files/src/observability/adapters/fake.ts +267 -0
  1652. package/workspace-snapshot/files/src/observability/adapters/noop.ts +62 -0
  1653. package/workspace-snapshot/files/src/observability/adapters/posthog.ts +165 -0
  1654. package/workspace-snapshot/files/src/observability/adapters/sentry.ts +276 -0
  1655. package/workspace-snapshot/files/src/observability/analytics-schemas.ts +150 -0
  1656. package/workspace-snapshot/files/src/observability/consent.ts +70 -0
  1657. package/workspace-snapshot/files/src/observability/constants.ts +25 -0
  1658. package/workspace-snapshot/files/src/observability/context.ts +152 -0
  1659. package/workspace-snapshot/files/src/observability/facade-runtime-state.ts +47 -0
  1660. package/workspace-snapshot/files/src/observability/facade.ts +628 -0
  1661. package/workspace-snapshot/files/src/observability/fatal-handlers.ts +60 -0
  1662. package/workspace-snapshot/files/src/observability/identity.ts +13 -0
  1663. package/workspace-snapshot/files/src/observability/index.ts +47 -0
  1664. package/workspace-snapshot/files/src/observability/local-state.ts +142 -0
  1665. package/workspace-snapshot/files/src/observability/package-config.ts +180 -0
  1666. package/workspace-snapshot/files/src/observability/posthog-dashboard-contract.ts +277 -0
  1667. package/workspace-snapshot/files/src/observability/privacy-schema.ts +229 -0
  1668. package/workspace-snapshot/files/src/observability/product-error-messages.ts +19 -0
  1669. package/workspace-snapshot/files/src/observability/product-errors.ts +139 -0
  1670. package/workspace-snapshot/files/src/observability/provisioning-analytics.ts +28 -0
  1671. package/workspace-snapshot/files/src/observability/redaction.ts +85 -0
  1672. package/workspace-snapshot/files/src/observability/runtime-eligibility.ts +50 -0
  1673. package/workspace-snapshot/files/src/observability/sentry-outbound-privacy.ts +216 -0
  1674. package/workspace-snapshot/files/src/observability/session-dedupe.ts +73 -0
  1675. package/workspace-snapshot/files/src/observability/session-handoff.ts +47 -0
  1676. package/workspace-snapshot/files/src/observability/transport-lifecycle.ts +93 -0
  1677. package/workspace-snapshot/files/src/observability/types.ts +265 -0
  1678. package/workspace-snapshot/files/src/p-dev/browser.ts +26 -0
  1679. package/workspace-snapshot/files/src/p-dev/cli.ts +93 -0
  1680. package/workspace-snapshot/files/src/p-dev/git-object-plumbing.ts +396 -0
  1681. package/workspace-snapshot/files/src/p-dev/launch.ts +252 -0
  1682. package/workspace-snapshot/files/src/p-dev/main.ts +21 -0
  1683. package/workspace-snapshot/files/src/p-dev/next-bin.ts +8 -0
  1684. package/workspace-snapshot/files/src/p-dev/node-version.ts +46 -0
  1685. package/workspace-snapshot/files/src/p-dev/package-paths.ts +117 -0
  1686. package/workspace-snapshot/files/src/p-dev/package-version.ts +63 -0
  1687. package/workspace-snapshot/files/src/p-dev/runtime-mode.ts +28 -0
  1688. package/workspace-snapshot/files/src/p-dev/shutdown.ts +66 -0
  1689. package/workspace-snapshot/files/src/p-dev/workspace-snapshot-digest.ts +50 -0
  1690. package/workspace-snapshot/files/src/p-dev/workspace-snapshot-generator.ts +133 -0
  1691. package/workspace-snapshot/files/src/p-dev/workspace-snapshot-git.ts +221 -0
  1692. package/workspace-snapshot/files/src/p-dev/workspace-snapshot-manifest.ts +389 -0
  1693. package/workspace-snapshot/files/src/p-dev/workspace-snapshot-policy.ts +198 -0
  1694. package/workspace-snapshot/files/src/p-dev/workspace-snapshot-types.ts +67 -0
  1695. package/workspace-snapshot/files/src/p-dev/workspace-snapshot-validation.ts +137 -0
  1696. package/workspace-snapshot/files/src/p-dev/workspace.ts +114 -0
  1697. package/workspace-snapshot/files/src/preview/preview-capability.ts +21 -0
  1698. package/workspace-snapshot/files/src/preview/production-from-merge.ts +143 -0
  1699. package/workspace-snapshot/files/src/preview/urls.ts +28 -0
  1700. package/workspace-snapshot/files/src/preview/vercel-from-pr.ts +123 -0
  1701. package/workspace-snapshot/files/src/product/initialization-state.ts +65 -0
  1702. package/workspace-snapshot/files/src/product/product-marker.ts +76 -0
  1703. package/workspace-snapshot/files/src/product/read-product-marker.ts +63 -0
  1704. package/workspace-snapshot/files/src/prompts/branch-name.ts +22 -0
  1705. package/workspace-snapshot/files/src/prompts/builder.ts +118 -0
  1706. package/workspace-snapshot/files/src/prompts/implementation.md +83 -0
  1707. package/workspace-snapshot/files/src/prompts/integration-repair-builder.ts +65 -0
  1708. package/workspace-snapshot/files/src/prompts/integration-repair.md +117 -0
  1709. package/workspace-snapshot/files/src/prompts/planning.md +72 -0
  1710. package/workspace-snapshot/files/src/prompts/revision-builder.ts +61 -0
  1711. package/workspace-snapshot/files/src/prompts/revision.md +78 -0
  1712. package/workspace-snapshot/files/src/resolver/allowed-repos.ts +18 -0
  1713. package/workspace-snapshot/files/src/resolver/errors.ts +16 -0
  1714. package/workspace-snapshot/files/src/resolver/normalize-repo.ts +32 -0
  1715. package/workspace-snapshot/files/src/resolver/target-repo.ts +177 -0
  1716. package/workspace-snapshot/files/src/runner/builder-thread-acquire.ts +321 -0
  1717. package/workspace-snapshot/files/src/runner/builder-thread-evidence.ts +40 -0
  1718. package/workspace-snapshot/files/src/runner/builder-thread-idempotency.ts +27 -0
  1719. package/workspace-snapshot/files/src/runner/builder-thread-lineage-errors.ts +23 -0
  1720. package/workspace-snapshot/files/src/runner/builder-thread-lineage.ts +555 -0
  1721. package/workspace-snapshot/files/src/runner/builder-thread-types.ts +41 -0
  1722. package/workspace-snapshot/files/src/runner/building-recovery.ts +26 -0
  1723. package/workspace-snapshot/files/src/runner/delivery-dedup.ts +78 -0
  1724. package/workspace-snapshot/files/src/runner/dry-run.ts +137 -0
  1725. package/workspace-snapshot/files/src/runner/errors.ts +70 -0
  1726. package/workspace-snapshot/files/src/runner/execution-environment.ts +179 -0
  1727. package/workspace-snapshot/files/src/runner/failure-finalization.ts +234 -0
  1728. package/workspace-snapshot/files/src/runner/fixture.ts +30 -0
  1729. package/workspace-snapshot/files/src/runner/idempotency.ts +507 -0
  1730. package/workspace-snapshot/files/src/runner/orchestrator.ts +182 -0
  1731. package/workspace-snapshot/files/src/runner/phase-args.ts +49 -0
  1732. package/workspace-snapshot/files/src/runner/phase-infer.ts +67 -0
  1733. package/workspace-snapshot/files/src/runner/phases/handoff.ts +643 -0
  1734. package/workspace-snapshot/files/src/runner/phases/implementation.ts +763 -0
  1735. package/workspace-snapshot/files/src/runner/phases/integration-repair.ts +729 -0
  1736. package/workspace-snapshot/files/src/runner/phases/merge.ts +1280 -0
  1737. package/workspace-snapshot/files/src/runner/phases/planning.ts +499 -0
  1738. package/workspace-snapshot/files/src/runner/phases/production-sync.ts +341 -0
  1739. package/workspace-snapshot/files/src/runner/phases/revision.ts +881 -0
  1740. package/workspace-snapshot/files/src/runner/preflight.ts +345 -0
  1741. package/workspace-snapshot/files/src/runner/resolve-route.ts +183 -0
  1742. package/workspace-snapshot/files/src/runner/run-generation.ts +21 -0
  1743. package/workspace-snapshot/files/src/runner/uninitialized-product-routing.ts +121 -0
  1744. package/workspace-snapshot/files/src/setup/config-builder.ts +131 -0
  1745. package/workspace-snapshot/files/src/setup/config-local-editor.ts +260 -0
  1746. package/workspace-snapshot/files/src/setup/config-writer.ts +173 -0
  1747. package/workspace-snapshot/files/src/setup/control-plane-readiness-server.ts +16 -0
  1748. package/workspace-snapshot/files/src/setup/control-plane-readiness.ts +365 -0
  1749. package/workspace-snapshot/files/src/setup/control-plane-setup-state.ts +116 -0
  1750. package/workspace-snapshot/files/src/setup/control-plane-state-lock.ts +103 -0
  1751. package/workspace-snapshot/files/src/setup/control-plane-types.ts +220 -0
  1752. package/workspace-snapshot/files/src/setup/doctor-summary.ts +96 -0
  1753. package/workspace-snapshot/files/src/setup/env-merge.ts +266 -0
  1754. package/workspace-snapshot/files/src/setup/env-writer.ts +179 -0
  1755. package/workspace-snapshot/files/src/setup/first-run-readiness.ts +1438 -0
  1756. package/workspace-snapshot/files/src/setup/generated-instructions.ts +96 -0
  1757. package/workspace-snapshot/files/src/setup/git-askpass-credentials.ts +80 -0
  1758. package/workspace-snapshot/files/src/setup/github-dispatch-token.ts +119 -0
  1759. package/workspace-snapshot/files/src/setup/github-remote-provider.ts +1059 -0
  1760. package/workspace-snapshot/files/src/setup/github-remote-setup-live.ts +877 -0
  1761. package/workspace-snapshot/files/src/setup/github-repo-slug.ts +31 -0
  1762. package/workspace-snapshot/files/src/setup/github-repository-name.ts +63 -0
  1763. package/workspace-snapshot/files/src/setup/github-secret-encryption.ts +16 -0
  1764. package/workspace-snapshot/files/src/setup/github-target-repository-provider-live.ts +323 -0
  1765. package/workspace-snapshot/files/src/setup/github-target-repository-provider-mock.ts +284 -0
  1766. package/workspace-snapshot/files/src/setup/github-target-repository-provider.ts +86 -0
  1767. package/workspace-snapshot/files/src/setup/github-upload-rate-limit-gate.ts +58 -0
  1768. package/workspace-snapshot/files/src/setup/github-workflow-permissions.ts +175 -0
  1769. package/workspace-snapshot/files/src/setup/gui-view-model.ts +576 -0
  1770. package/workspace-snapshot/files/src/setup/guided-config-form.ts +52 -0
  1771. package/workspace-snapshot/files/src/setup/harness-dispatch-repo.ts +290 -0
  1772. package/workspace-snapshot/files/src/setup/harness-managed-repo-marker.ts +677 -0
  1773. package/workspace-snapshot/files/src/setup/harness-provisioning-context.ts +331 -0
  1774. package/workspace-snapshot/files/src/setup/harness-provisioning-last-run.ts +152 -0
  1775. package/workspace-snapshot/files/src/setup/harness-provisioning-pending-state.ts +285 -0
  1776. package/workspace-snapshot/files/src/setup/harness-provisioning-progress.ts +213 -0
  1777. package/workspace-snapshot/files/src/setup/harness-repo-provisioning.ts +1785 -0
  1778. package/workspace-snapshot/files/src/setup/harness-secret-fingerprint.ts +51 -0
  1779. package/workspace-snapshot/files/src/setup/harness-secret-setup.ts +439 -0
  1780. package/workspace-snapshot/files/src/setup/harness-snapshot-git-transport.ts +846 -0
  1781. package/workspace-snapshot/files/src/setup/harness-snapshot-provisioning-helpers.ts +95 -0
  1782. package/workspace-snapshot/files/src/setup/harness-snapshot-provisioning.ts +1278 -0
  1783. package/workspace-snapshot/files/src/setup/harness-step-readiness-server.ts +39 -0
  1784. package/workspace-snapshot/files/src/setup/harness-step-readiness.ts +72 -0
  1785. package/workspace-snapshot/files/src/setup/harness-template-identity.ts +151 -0
  1786. package/workspace-snapshot/files/src/setup/harness-workspace-snapshot-loader.ts +152 -0
  1787. package/workspace-snapshot/files/src/setup/initial-setup-lifecycle.ts +181 -0
  1788. package/workspace-snapshot/files/src/setup/linear-category-labels.ts +18 -0
  1789. package/workspace-snapshot/files/src/setup/linear-setup-apply.ts +350 -0
  1790. package/workspace-snapshot/files/src/setup/linear-setup-client.ts +372 -0
  1791. package/workspace-snapshot/files/src/setup/linear-setup-plan.ts +447 -0
  1792. package/workspace-snapshot/files/src/setup/linear-setup-progress.ts +113 -0
  1793. package/workspace-snapshot/files/src/setup/linear-setup-summary.ts +33 -0
  1794. package/workspace-snapshot/files/src/setup/linear-status-contract.ts +69 -0
  1795. package/workspace-snapshot/files/src/setup/linear-webhook-env-local.ts +104 -0
  1796. package/workspace-snapshot/files/src/setup/linear-webhook-secret.ts +441 -0
  1797. package/workspace-snapshot/files/src/setup/linear-workflow-status-repair.ts +278 -0
  1798. package/workspace-snapshot/files/src/setup/linear-workspace-apply.ts +309 -0
  1799. package/workspace-snapshot/files/src/setup/linear-workspace-drift.ts +4 -0
  1800. package/workspace-snapshot/files/src/setup/linear-workspace-migration.ts +314 -0
  1801. package/workspace-snapshot/files/src/setup/linear-workspace-plan.ts +407 -0
  1802. package/workspace-snapshot/files/src/setup/local-apply-actions.ts +524 -0
  1803. package/workspace-snapshot/files/src/setup/local-readiness-checks.ts +466 -0
  1804. package/workspace-snapshot/files/src/setup/mock-git-repository-store.ts +291 -0
  1805. package/workspace-snapshot/files/src/setup/mock-target-workflow-finalization.ts +471 -0
  1806. package/workspace-snapshot/files/src/setup/model-settings.ts +73 -0
  1807. package/workspace-snapshot/files/src/setup/packaged-default-route.ts +29 -0
  1808. package/workspace-snapshot/files/src/setup/permission-model.ts +79 -0
  1809. package/workspace-snapshot/files/src/setup/redact-secrets.ts +85 -0
  1810. package/workspace-snapshot/files/src/setup/release-sync-managed-runner.ts +604 -0
  1811. package/workspace-snapshot/files/src/setup/remote-actions.ts +214 -0
  1812. package/workspace-snapshot/files/src/setup/remote-apply-actions.ts +423 -0
  1813. package/workspace-snapshot/files/src/setup/remote-preview-fingerprint.ts +37 -0
  1814. package/workspace-snapshot/files/src/setup/remote-setup-summary.ts +143 -0
  1815. package/workspace-snapshot/files/src/setup/runner-upgrade-canary-dispatch.ts +69 -0
  1816. package/workspace-snapshot/files/src/setup/runner-upgrade-canary.ts +213 -0
  1817. package/workspace-snapshot/files/src/setup/runner-upgrade-evidence.ts +30 -0
  1818. package/workspace-snapshot/files/src/setup/runner-upgrade-pending-state.ts +116 -0
  1819. package/workspace-snapshot/files/src/setup/runner-upgrade-progress.ts +150 -0
  1820. package/workspace-snapshot/files/src/setup/runner-upgrade-provider-live.ts +520 -0
  1821. package/workspace-snapshot/files/src/setup/runner-upgrade-provider.ts +852 -0
  1822. package/workspace-snapshot/files/src/setup/runner-upgrade-status-cache.ts +61 -0
  1823. package/workspace-snapshot/files/src/setup/runner-upgrade-three-way.ts +162 -0
  1824. package/workspace-snapshot/files/src/setup/runner-upgrade-timeouts.ts +386 -0
  1825. package/workspace-snapshot/files/src/setup/runner-upgrade-types.ts +176 -0
  1826. package/workspace-snapshot/files/src/setup/runner-upgrade-worker.ts +149 -0
  1827. package/workspace-snapshot/files/src/setup/runner-upgrade.ts +1926 -0
  1828. package/workspace-snapshot/files/src/setup/secret-change-token.ts +14 -0
  1829. package/workspace-snapshot/files/src/setup/service-verification.ts +689 -0
  1830. package/workspace-snapshot/files/src/setup/settings-config-patch.ts +461 -0
  1831. package/workspace-snapshot/files/src/setup/setup-actions.ts +183 -0
  1832. package/workspace-snapshot/files/src/setup/setup-github-auth.ts +15 -0
  1833. package/workspace-snapshot/files/src/setup/setup-state.ts +85 -0
  1834. package/workspace-snapshot/files/src/setup/stale-smoke-repo.ts +141 -0
  1835. package/workspace-snapshot/files/src/setup/step6-automatic-control-state.ts +59 -0
  1836. package/workspace-snapshot/files/src/setup/sync-downstream-summaries.ts +105 -0
  1837. package/workspace-snapshot/files/src/setup/sync-harness-config-cloud.ts +128 -0
  1838. package/workspace-snapshot/files/src/setup/target-repo-provisioning-pending-state.ts +160 -0
  1839. package/workspace-snapshot/files/src/setup/target-repo-provisioning.ts +704 -0
  1840. package/workspace-snapshot/files/src/setup/target-workflow-finalization-lock.ts +95 -0
  1841. package/workspace-snapshot/files/src/setup/target-workflow-finalization-progress.ts +166 -0
  1842. package/workspace-snapshot/files/src/setup/target-workflow-finalization-types.ts +182 -0
  1843. package/workspace-snapshot/files/src/setup/target-workflow-finalization.ts +1688 -0
  1844. package/workspace-snapshot/files/src/setup/target-workflow-setup.ts +249 -0
  1845. package/workspace-snapshot/files/src/setup/test-only-provisioning-provider.ts +51 -0
  1846. package/workspace-snapshot/files/src/setup/test-only-remote-setup-provider.ts +51 -0
  1847. package/workspace-snapshot/files/src/setup/test-only-runner-upgrade-provider.ts +51 -0
  1848. package/workspace-snapshot/files/src/setup/test-only-target-repo-provisioning-provider.ts +47 -0
  1849. package/workspace-snapshot/files/src/setup/tweetsodium.d.ts +14 -0
  1850. package/workspace-snapshot/files/src/setup/vercel-bridge-artifact.ts +174 -0
  1851. package/workspace-snapshot/files/src/setup/vercel-bridge-deploy.ts +217 -0
  1852. package/workspace-snapshot/files/src/setup/vercel-bridge-diagnostics.ts +510 -0
  1853. package/workspace-snapshot/files/src/setup/vercel-bridge-options.ts +164 -0
  1854. package/workspace-snapshot/files/src/setup/vercel-bridge-orchestration-summary.ts +46 -0
  1855. package/workspace-snapshot/files/src/setup/vercel-bridge-project-marker.ts +8 -0
  1856. package/workspace-snapshot/files/src/setup/vercel-bridge-readiness.ts +151 -0
  1857. package/workspace-snapshot/files/src/setup/vercel-bridge-redeploy-normalize.ts +244 -0
  1858. package/workspace-snapshot/files/src/setup/vercel-bridge-redeploy-poll.ts +960 -0
  1859. package/workspace-snapshot/files/src/setup/vercel-bridge-redeploy-state.ts +49 -0
  1860. package/workspace-snapshot/files/src/setup/vercel-bridge-structured-log.ts +91 -0
  1861. package/workspace-snapshot/files/src/setup/vercel-bridge-verification.ts +63 -0
  1862. package/workspace-snapshot/files/src/setup/vercel-production-redeploy.ts +298 -0
  1863. package/workspace-snapshot/files/src/setup/vercel-project-name.ts +38 -0
  1864. package/workspace-snapshot/files/src/setup/vercel-setup-apply.ts +1404 -0
  1865. package/workspace-snapshot/files/src/setup/vercel-setup-client.ts +789 -0
  1866. package/workspace-snapshot/files/src/setup/vercel-setup-plan.ts +742 -0
  1867. package/workspace-snapshot/files/src/setup/vercel-setup-summary.ts +52 -0
  1868. package/workspace-snapshot/files/src/setup/vercel-webhook-probe.ts +161 -0
  1869. package/workspace-snapshot/files/src/setup/workflow-config-snapshot.ts +22 -0
  1870. package/workspace-snapshot/files/src/setup/workflow-install-branch-recovery.ts +660 -0
  1871. package/workspace-snapshot/files/src/setup/workflow-install-merge-errors.ts +216 -0
  1872. package/workspace-snapshot/files/src/setup/workflow-install-merge-gate.ts +25 -0
  1873. package/workspace-snapshot/files/src/setup/workflow-model-save-queue.ts +251 -0
  1874. package/workspace-snapshot/files/src/setup/workflow-model-sync-lock.ts +103 -0
  1875. package/workspace-snapshot/files/src/setup/workflow-model-sync.ts +259 -0
  1876. package/workspace-snapshot/files/src/setup/workflow-models-sync-evidence.ts +34 -0
  1877. package/workspace-snapshot/files/src/types/parsed-issue.ts +17 -0
  1878. package/workspace-snapshot/files/src/types/run.ts +200 -0
  1879. package/workspace-snapshot/files/src/validate/constants.ts +2 -0
  1880. package/workspace-snapshot/files/src/validate/issue.ts +332 -0
  1881. package/workspace-snapshot/files/src/validate/report.ts +68 -0
  1882. package/workspace-snapshot/files/src/validate/types.ts +32 -0
  1883. package/workspace-snapshot/files/src/webhook/dispatch-github.ts +44 -0
  1884. package/workspace-snapshot/files/src/webhook/dispatch-statuses.ts +18 -0
  1885. package/workspace-snapshot/files/src/webhook/extract-issue-key.ts +49 -0
  1886. package/workspace-snapshot/files/src/webhook/filter.ts +64 -0
  1887. package/workspace-snapshot/files/src/webhook/handle-linear-webhook.ts +215 -0
  1888. package/workspace-snapshot/files/src/webhook/parse-linear-issue-event.ts +109 -0
  1889. package/workspace-snapshot/files/src/webhook/redact-log.ts +26 -0
  1890. package/workspace-snapshot/files/src/webhook/types.ts +78 -0
  1891. package/workspace-snapshot/files/src/webhook/verify.ts +68 -0
  1892. package/workspace-snapshot/files/src/webhook/workflow-command.ts +10 -0
  1893. package/workspace-snapshot/files/src/workflow/canonical-product-development-workflow.ts +584 -0
  1894. package/workspace-snapshot/files/src/workflow/canonical-workflow-gate.ts +255 -0
  1895. package/workspace-snapshot/files/src/workflow/canonical-workflow-validation.ts +297 -0
  1896. package/workspace-snapshot/files/src/workflow/dispatch-metadata.ts +59 -0
  1897. package/workspace-snapshot/files/src/workflow/finalize-harness-run.ts +83 -0
  1898. package/workspace-snapshot/files/src/workflow/manifest-summary.ts +57 -0
  1899. package/workspace-snapshot/files/src/workflow/preflight-canonical.ts +40 -0
  1900. package/workspace-snapshot/files/src/workflow/production-sync-dispatch.ts +65 -0
  1901. package/workspace-snapshot/files/src/workflow/summarize-manifest.ts +20 -0
  1902. package/workspace-snapshot/files/src/workflow/validate.ts +43 -0
  1903. package/workspace-snapshot/files/src/workflow/write-dispatch-metadata.ts +8 -0
  1904. package/workspace-snapshot/files/src/workflow/write-fallback-manifest.ts +39 -0
  1905. package/workspace-snapshot/files/src/workflow-page/bootstrap.ts +277 -0
  1906. package/workspace-snapshot/files/src/workflow-page/catalog-validation.ts +158 -0
  1907. package/workspace-snapshot/files/src/workflow-page/constants.ts +22 -0
  1908. package/workspace-snapshot/files/src/workflow-page/current-workflow.ts +225 -0
  1909. package/workspace-snapshot/files/src/workflow-page/fingerprint.ts +9 -0
  1910. package/workspace-snapshot/files/src/workflow-page/fixture-definition.ts +16 -0
  1911. package/workspace-snapshot/files/src/workflow-page/fixture-role-models.ts +50 -0
  1912. package/workspace-snapshot/files/src/workflow-page/fixtures/basic-current-workflow.ts +39 -0
  1913. package/workspace-snapshot/files/src/workflow-page/fixtures/branching-pr-review.ts +11 -0
  1914. package/workspace-snapshot/files/src/workflow-page/fixtures/canonical-violations.ts +50 -0
  1915. package/workspace-snapshot/files/src/workflow-page/fixtures/credential-errors.ts +13 -0
  1916. package/workspace-snapshot/files/src/workflow-page/fixtures/empty-linear-statuses.ts +10 -0
  1917. package/workspace-snapshot/files/src/workflow-page/fixtures/hundred-node-performance.ts +23 -0
  1918. package/workspace-snapshot/files/src/workflow-page/fixtures/index.ts +37 -0
  1919. package/workspace-snapshot/files/src/workflow-page/fixtures/model-catalog-snapshot.ts +34 -0
  1920. package/workspace-snapshot/files/src/workflow-page/fixtures/workflow-scopes.ts +18 -0
  1921. package/workspace-snapshot/files/src/workflow-page/linear-status-source.ts +65 -0
  1922. package/workspace-snapshot/files/src/workflow-page/model-catalog-lookup.ts +8 -0
  1923. package/workspace-snapshot/files/src/workflow-page/model-catalog-utils.ts +83 -0
  1924. package/workspace-snapshot/files/src/workflow-page/model-catalog.ts +60 -0
  1925. package/workspace-snapshot/files/src/workflow-page/scope-branches.ts +27 -0
  1926. package/workspace-snapshot/files/src/workflow-page/source-context.ts +91 -0
  1927. package/workspace-snapshot/files/src/workflow-page/types.ts +134 -0
  1928. package/workspace-snapshot/files/src/workflow-page/workflow-scopes.ts +73 -0
  1929. package/workspace-snapshot/files/templates/eval-scorecard.md +54 -0
  1930. package/workspace-snapshot/files/templates/implementation-plan.md +59 -0
  1931. package/workspace-snapshot/files/templates/linear-issue.md +53 -0
  1932. package/workspace-snapshot/files/templates/pr-readiness-report.md +57 -0
  1933. package/workspace-snapshot/files/tests/agents/cursor-provider.test.ts +250 -0
  1934. package/workspace-snapshot/files/tests/artifacts/manifest.test.ts +54 -0
  1935. package/workspace-snapshot/files/tests/artifacts/redact.test.ts +58 -0
  1936. package/workspace-snapshot/files/tests/cli/doctor.test.ts +120 -0
  1937. package/workspace-snapshot/files/tests/cli/finalize-exit.test.ts +28 -0
  1938. package/workspace-snapshot/files/tests/cli/json-out-manifest.test.ts +96 -0
  1939. package/workspace-snapshot/files/tests/cli/operator-init.test.ts +146 -0
  1940. package/workspace-snapshot/files/tests/cli/sync-production-dispatch.test.ts +103 -0
  1941. package/workspace-snapshot/files/tests/cli/validate-issue.test.ts +99 -0
  1942. package/workspace-snapshot/files/tests/config/cloud-config-fingerprint.test.ts +62 -0
  1943. package/workspace-snapshot/files/tests/config/legacy-linear-top-level.test.ts +86 -0
  1944. package/workspace-snapshot/files/tests/config/load-dotenv.test.ts +64 -0
  1945. package/workspace-snapshot/files/tests/config/onboarding-cloud-runner-contract.test.ts +139 -0
  1946. package/workspace-snapshot/files/tests/config/resolve-config.test.ts +273 -0
  1947. package/workspace-snapshot/files/tests/config/resolve-linear-workspace.test.ts +314 -0
  1948. package/workspace-snapshot/files/tests/config/role-models.test.ts +35 -0
  1949. package/workspace-snapshot/files/tests/config/schema.test.ts +107 -0
  1950. package/workspace-snapshot/files/tests/cursor/agent-factory.test.ts +341 -0
  1951. package/workspace-snapshot/files/tests/cursor/git-result.test.ts +77 -0
  1952. package/workspace-snapshot/files/tests/cursor/model.test.ts +108 -0
  1953. package/workspace-snapshot/files/tests/cursor/revision-git-result.test.ts +68 -0
  1954. package/workspace-snapshot/files/tests/cursor/role-models.test.ts +52 -0
  1955. package/workspace-snapshot/files/tests/cursor/run-cleanup.test.ts +52 -0
  1956. package/workspace-snapshot/files/tests/cursor/run-observer.test.ts +316 -0
  1957. package/workspace-snapshot/files/tests/cursor/urls.test.ts +27 -0
  1958. package/workspace-snapshot/files/tests/fixtures/config/minimal.json +16 -0
  1959. package/workspace-snapshot/files/tests/fixtures/github/pr-4-vercel-comment.json +10 -0
  1960. package/workspace-snapshot/files/tests/fixtures/issues/broad-for-direct-impl.md +28 -0
  1961. package/workspace-snapshot/files/tests/fixtures/issues/context-target-repo.md +21 -0
  1962. package/workspace-snapshot/files/tests/fixtures/issues/explicit-target-repo.md +21 -0
  1963. package/workspace-snapshot/files/tests/fixtures/issues/gpt-broad-example.md +35 -0
  1964. package/workspace-snapshot/files/tests/fixtures/issues/gpt-narrow-example.md +30 -0
  1965. package/workspace-snapshot/files/tests/fixtures/issues/invalid-missing-task.md +16 -0
  1966. package/workspace-snapshot/files/tests/fixtures/issues/invalid-no-ac-bullets.md +20 -0
  1967. package/workspace-snapshot/files/tests/fixtures/issues/missing-acceptance-criteria.md +17 -0
  1968. package/workspace-snapshot/files/tests/fixtures/issues/unknown-repo.md +20 -0
  1969. package/workspace-snapshot/files/tests/fixtures/issues/valid-minimal.md +20 -0
  1970. package/workspace-snapshot/files/tests/fixtures/issues/valid-project-only.md +17 -0
  1971. package/workspace-snapshot/files/tests/fixtures/issues/valid-target-app.md +31 -0
  1972. package/workspace-snapshot/files/tests/fixtures/linear/implementation-comment-wes-13.md +16 -0
  1973. package/workspace-snapshot/files/tests/fixtures/linear/pm-feedback-wes-13.md +3 -0
  1974. package/workspace-snapshot/files/tests/fixtures/webhook/issue-building-to-pr-open.json +27 -0
  1975. package/workspace-snapshot/files/tests/fixtures/webhook/issue-pm-review.json +27 -0
  1976. package/workspace-snapshot/files/tests/fixtures/webhook/issue-ready-for-planning.json +27 -0
  1977. package/workspace-snapshot/files/tests/fixtures/webhook/issue-title-only-update.json +25 -0
  1978. package/workspace-snapshot/files/tests/fixtures/workflows/harness-auto-runner-with-production-sync.yml +586 -0
  1979. package/workspace-snapshot/files/tests/fixtures/workflows/trigger-harness-production-sync.yml +31 -0
  1980. package/workspace-snapshot/files/tests/github/actions-url.test.ts +45 -0
  1981. package/workspace-snapshot/files/tests/github/auth-verification-retry.test.ts +141 -0
  1982. package/workspace-snapshot/files/tests/github/base-branch.test.ts +156 -0
  1983. package/workspace-snapshot/files/tests/github/check-policy.test.ts +59 -0
  1984. package/workspace-snapshot/files/tests/github/client.test.ts +226 -0
  1985. package/workspace-snapshot/files/tests/github/commit-reachability.test.ts +148 -0
  1986. package/workspace-snapshot/files/tests/github/merge-result.test.ts +26 -0
  1987. package/workspace-snapshot/files/tests/github/pr-discovery.test.ts +55 -0
  1988. package/workspace-snapshot/files/tests/github/pr-inspector.test.ts +393 -0
  1989. package/workspace-snapshot/files/tests/github/pr-url.test.ts +30 -0
  1990. package/workspace-snapshot/files/tests/github/rate-limit-metadata.test.ts +92 -0
  1991. package/workspace-snapshot/files/tests/gui/app-shell-settings-menu.test.ts +115 -0
  1992. package/workspace-snapshot/files/tests/gui/configure-fix-loop.test.ts +473 -0
  1993. package/workspace-snapshot/files/tests/gui/configure-health.test.ts +67 -0
  1994. package/workspace-snapshot/files/tests/gui/configure-navigation-contract.test.ts +107 -0
  1995. package/workspace-snapshot/files/tests/gui/configure-target-repo-create.test.ts +103 -0
  1996. package/workspace-snapshot/files/tests/gui/configure-workflow-readiness.test.ts +117 -0
  1997. package/workspace-snapshot/files/tests/gui/data-sharing-preferences.test.ts +43 -0
  1998. package/workspace-snapshot/files/tests/gui/design-system.test.ts +146 -0
  1999. package/workspace-snapshot/files/tests/gui/dev-server-process.test.ts +22 -0
  2000. package/workspace-snapshot/files/tests/gui/guided-linear-workspace-card.test.ts +168 -0
  2001. package/workspace-snapshot/files/tests/gui/guided-operation-ux.test.ts +100 -0
  2002. package/workspace-snapshot/files/tests/gui/guided-setup-progress.test.ts +267 -0
  2003. package/workspace-snapshot/files/tests/gui/guided-setup.test.ts +246 -0
  2004. package/workspace-snapshot/files/tests/gui/guided-target-workflow-polling.test.ts +38 -0
  2005. package/workspace-snapshot/files/tests/gui/linear-association-draft.test.ts +93 -0
  2006. package/workspace-snapshot/files/tests/gui/local-readiness-stream.test.ts +154 -0
  2007. package/workspace-snapshot/files/tests/gui/local-readiness-visual-queue.test.ts +69 -0
  2008. package/workspace-snapshot/files/tests/gui/local-readiness-workspace.test.ts +299 -0
  2009. package/workspace-snapshot/files/tests/gui/m6-configure-boundaries.test.ts +1026 -0
  2010. package/workspace-snapshot/files/tests/gui/observability-preferences-route.test.ts +343 -0
  2011. package/workspace-snapshot/files/tests/gui/observability-request-guard.test.ts +177 -0
  2012. package/workspace-snapshot/files/tests/gui/packaged-harness-cloud-secrets-routes.test.ts +303 -0
  2013. package/workspace-snapshot/files/tests/gui/packaged-harness-provisioning-routes.test.ts +212 -0
  2014. package/workspace-snapshot/files/tests/gui/packaged-harness-target-workflow-routes.test.ts +227 -0
  2015. package/workspace-snapshot/files/tests/gui/packaged-runner-upgrade-routes.test.ts +532 -0
  2016. package/workspace-snapshot/files/tests/gui/packaged-target-repo-provisioning-routes.test.ts +108 -0
  2017. package/workspace-snapshot/files/tests/gui/port.test.ts +74 -0
  2018. package/workspace-snapshot/files/tests/gui/repo-root.test.ts +115 -0
  2019. package/workspace-snapshot/files/tests/gui/runner-upgrade-settings-card.test.ts +97 -0
  2020. package/workspace-snapshot/files/tests/gui/settings-cursor.test.ts +39 -0
  2021. package/workspace-snapshot/files/tests/gui/settings-deployments-autoload.test.ts +57 -0
  2022. package/workspace-snapshot/files/tests/gui/settings-mutation-editors.test.ts +154 -0
  2023. package/workspace-snapshot/files/tests/gui/settings-navigation.test.ts +95 -0
  2024. package/workspace-snapshot/files/tests/gui/settings-repositories-page.test.ts +54 -0
  2025. package/workspace-snapshot/files/tests/gui/setup-api.test.ts +181 -0
  2026. package/workspace-snapshot/files/tests/gui/setup-json-response.test.ts +34 -0
  2027. package/workspace-snapshot/files/tests/gui/step6-remote-state.test.ts +75 -0
  2028. package/workspace-snapshot/files/tests/gui/step7-settings-polish.test.ts +180 -0
  2029. package/workspace-snapshot/files/tests/gui/sync-downstream-summaries.test.ts +198 -0
  2030. package/workspace-snapshot/files/tests/gui/target-workflow-pr-card.test.ts +68 -0
  2031. package/workspace-snapshot/files/tests/gui/vercel-bridge-polling-ui.test.ts +74 -0
  2032. package/workspace-snapshot/files/tests/gui/verification-state.test.ts +217 -0
  2033. package/workspace-snapshot/files/tests/gui/workflow-bootstrap-route.test.ts +78 -0
  2034. package/workspace-snapshot/files/tests/gui/workflow-model-autosave.test.ts +36 -0
  2035. package/workspace-snapshot/files/tests/gui/workflow-source-ui.test.ts +22 -0
  2036. package/workspace-snapshot/files/tests/gui/workflow-violation-messages.test.ts +39 -0
  2037. package/workspace-snapshot/files/tests/gui/workflow-workspace.test.ts +188 -0
  2038. package/workspace-snapshot/files/tests/linear/comment-assertions.ts +24 -0
  2039. package/workspace-snapshot/files/tests/linear/comment-card.test.ts +73 -0
  2040. package/workspace-snapshot/files/tests/linear/comments.test.ts +185 -0
  2041. package/workspace-snapshot/files/tests/linear/handoff-comment.test.ts +34 -0
  2042. package/workspace-snapshot/files/tests/linear/markers.test.ts +126 -0
  2043. package/workspace-snapshot/files/tests/linear/merge-comment.test.ts +61 -0
  2044. package/workspace-snapshot/files/tests/linear/merge-source-comment.test.ts +49 -0
  2045. package/workspace-snapshot/files/tests/linear/parser.test.ts +83 -0
  2046. package/workspace-snapshot/files/tests/linear/planning-comment.test.ts +29 -0
  2047. package/workspace-snapshot/files/tests/linear/pm-feedback-comment.test.ts +63 -0
  2048. package/workspace-snapshot/files/tests/linear/run-status-comment.test.ts +143 -0
  2049. package/workspace-snapshot/files/tests/observability/analytics-schemas.test.ts +74 -0
  2050. package/workspace-snapshot/files/tests/observability/context.test.ts +132 -0
  2051. package/workspace-snapshot/files/tests/observability/fatal-process.test.ts +106 -0
  2052. package/workspace-snapshot/files/tests/observability/foundation.test.ts +229 -0
  2053. package/workspace-snapshot/files/tests/observability/instrumentation-dev-startup.test.ts +79 -0
  2054. package/workspace-snapshot/files/tests/observability/lifecycle.test.ts +348 -0
  2055. package/workspace-snapshot/files/tests/observability/package-config.test.ts +66 -0
  2056. package/workspace-snapshot/files/tests/observability/packaged-config.test.ts +47 -0
  2057. package/workspace-snapshot/files/tests/observability/posthog-dashboard-contract.test.ts +133 -0
  2058. package/workspace-snapshot/files/tests/observability/posthog-envelope.test.ts +167 -0
  2059. package/workspace-snapshot/files/tests/observability/posthog-shutdown.test.ts +68 -0
  2060. package/workspace-snapshot/files/tests/observability/privacy-schema.test.ts +83 -0
  2061. package/workspace-snapshot/files/tests/observability/provisioning-analytics.test.ts +54 -0
  2062. package/workspace-snapshot/files/tests/observability/public-config-enablement.test.ts +48 -0
  2063. package/workspace-snapshot/files/tests/observability/sentry-envelope.test.ts +289 -0
  2064. package/workspace-snapshot/files/tests/observability/sentry-outbound-privacy.test.ts +141 -0
  2065. package/workspace-snapshot/files/tests/observability/sentry-privacy-assertions.ts +52 -0
  2066. package/workspace-snapshot/files/tests/observability/sentry-server-only.test.ts +68 -0
  2067. package/workspace-snapshot/files/tests/observability/sentry-transport.test.ts +88 -0
  2068. package/workspace-snapshot/files/tests/observability/session-dedupe.test.ts +117 -0
  2069. package/workspace-snapshot/files/tests/observability/snapshot-exclusion.test.ts +9 -0
  2070. package/workspace-snapshot/files/tests/p-dev/browser.test.ts +38 -0
  2071. package/workspace-snapshot/files/tests/p-dev/cli.test.ts +39 -0
  2072. package/workspace-snapshot/files/tests/p-dev/git-object-plumbing.test.ts +188 -0
  2073. package/workspace-snapshot/files/tests/p-dev/installed-tarball-gui.test.ts +475 -0
  2074. package/workspace-snapshot/files/tests/p-dev/installed-tarball-loopback.test.ts +986 -0
  2075. package/workspace-snapshot/files/tests/p-dev/installed-tarball-snapshot-provisioning.test.ts +361 -0
  2076. package/workspace-snapshot/files/tests/p-dev/launch.test.ts +162 -0
  2077. package/workspace-snapshot/files/tests/p-dev/next-bin.test.ts +16 -0
  2078. package/workspace-snapshot/files/tests/p-dev/node-version.test.ts +20 -0
  2079. package/workspace-snapshot/files/tests/p-dev/package-manifest.test.ts +49 -0
  2080. package/workspace-snapshot/files/tests/p-dev/package-packed-artifact.test.ts +235 -0
  2081. package/workspace-snapshot/files/tests/p-dev/package-paths.test.ts +94 -0
  2082. package/workspace-snapshot/files/tests/p-dev/package-version.test.ts +55 -0
  2083. package/workspace-snapshot/files/tests/p-dev/packaged-workspace-setup.test.ts +87 -0
  2084. package/workspace-snapshot/files/tests/p-dev/runtime-mode.test.ts +18 -0
  2085. package/workspace-snapshot/files/tests/p-dev/workspace-snapshot-digest.test.ts +61 -0
  2086. package/workspace-snapshot/files/tests/p-dev/workspace-snapshot-generator.test.ts +76 -0
  2087. package/workspace-snapshot/files/tests/p-dev/workspace-snapshot-policy.test.ts +41 -0
  2088. package/workspace-snapshot/files/tests/p-dev/workspace-snapshot-validation.test.ts +158 -0
  2089. package/workspace-snapshot/files/tests/p-dev/workspace.test.ts +80 -0
  2090. package/workspace-snapshot/files/tests/preview/production-from-merge.test.ts +39 -0
  2091. package/workspace-snapshot/files/tests/preview/vercel-from-pr.test.ts +120 -0
  2092. package/workspace-snapshot/files/tests/product/initialization-state.test.ts +78 -0
  2093. package/workspace-snapshot/files/tests/product/read-product-marker.test.ts +46 -0
  2094. package/workspace-snapshot/files/tests/prompts/builder.test.ts +59 -0
  2095. package/workspace-snapshot/files/tests/prompts/implementation-builder.test.ts +77 -0
  2096. package/workspace-snapshot/files/tests/prompts/issue-intake-chatgpt.test.ts +106 -0
  2097. package/workspace-snapshot/files/tests/resolver/allowed-repos.test.ts +44 -0
  2098. package/workspace-snapshot/files/tests/resolver/normalize-repo.test.ts +44 -0
  2099. package/workspace-snapshot/files/tests/resolver/target-repo.test.ts +157 -0
  2100. package/workspace-snapshot/files/tests/runner/builder-thread-acquire.test.ts +288 -0
  2101. package/workspace-snapshot/files/tests/runner/builder-thread-idempotency.test.ts +42 -0
  2102. package/workspace-snapshot/files/tests/runner/builder-thread-lineage.test.ts +206 -0
  2103. package/workspace-snapshot/files/tests/runner/building-recovery.test.ts +30 -0
  2104. package/workspace-snapshot/files/tests/runner/delivery-dedup.test.ts +53 -0
  2105. package/workspace-snapshot/files/tests/runner/dry-run.test.ts +128 -0
  2106. package/workspace-snapshot/files/tests/runner/execution-environment.test.ts +114 -0
  2107. package/workspace-snapshot/files/tests/runner/failure-finalization-runner-upgrade.test.ts +112 -0
  2108. package/workspace-snapshot/files/tests/runner/failure-finalization.test.ts +203 -0
  2109. package/workspace-snapshot/files/tests/runner/handoff.test.ts +378 -0
  2110. package/workspace-snapshot/files/tests/runner/idempotency-handoff.test.ts +171 -0
  2111. package/workspace-snapshot/files/tests/runner/idempotency-implementation.test.ts +144 -0
  2112. package/workspace-snapshot/files/tests/runner/idempotency-merge.test.ts +118 -0
  2113. package/workspace-snapshot/files/tests/runner/idempotency-revision.test.ts +112 -0
  2114. package/workspace-snapshot/files/tests/runner/idempotency.test.ts +84 -0
  2115. package/workspace-snapshot/files/tests/runner/implementation.test.ts +215 -0
  2116. package/workspace-snapshot/files/tests/runner/integration-repair.test.ts +278 -0
  2117. package/workspace-snapshot/files/tests/runner/merge-linear-metadata.test.ts +90 -0
  2118. package/workspace-snapshot/files/tests/runner/merge.test.ts +839 -0
  2119. package/workspace-snapshot/files/tests/runner/orchestrator.test.ts +301 -0
  2120. package/workspace-snapshot/files/tests/runner/phase-args.test.ts +38 -0
  2121. package/workspace-snapshot/files/tests/runner/planning.test.ts +169 -0
  2122. package/workspace-snapshot/files/tests/runner/preflight-canonical.test.ts +73 -0
  2123. package/workspace-snapshot/files/tests/runner/preflight-fail-closed.integration.test.ts +418 -0
  2124. package/workspace-snapshot/files/tests/runner/preview-capability.test.ts +46 -0
  2125. package/workspace-snapshot/files/tests/runner/resolve-route.test.ts +255 -0
  2126. package/workspace-snapshot/files/tests/runner/revision.test.ts +434 -0
  2127. package/workspace-snapshot/files/tests/runner/uninitialized-product-routing.test.ts +120 -0
  2128. package/workspace-snapshot/files/tests/setup/config-builder.test.ts +136 -0
  2129. package/workspace-snapshot/files/tests/setup/config-local-editor.test.ts +164 -0
  2130. package/workspace-snapshot/files/tests/setup/connect-services-credential-availability.test.ts +151 -0
  2131. package/workspace-snapshot/files/tests/setup/connect-services-env.test.ts +84 -0
  2132. package/workspace-snapshot/files/tests/setup/control-plane-readiness.test.ts +145 -0
  2133. package/workspace-snapshot/files/tests/setup/control-plane-state-lock.test.ts +67 -0
  2134. package/workspace-snapshot/files/tests/setup/doctor-summary.test.ts +48 -0
  2135. package/workspace-snapshot/files/tests/setup/env-merge.test.ts +177 -0
  2136. package/workspace-snapshot/files/tests/setup/env-writer.test.ts +97 -0
  2137. package/workspace-snapshot/files/tests/setup/first-run-readiness.test.ts +1231 -0
  2138. package/workspace-snapshot/files/tests/setup/generated-instructions.test.ts +48 -0
  2139. package/workspace-snapshot/files/tests/setup/github-dispatch-token.test.ts +159 -0
  2140. package/workspace-snapshot/files/tests/setup/github-remote-provider.test.ts +66 -0
  2141. package/workspace-snapshot/files/tests/setup/github-remote-setup-live.test.ts +59 -0
  2142. package/workspace-snapshot/files/tests/setup/github-repository-name.test.ts +28 -0
  2143. package/workspace-snapshot/files/tests/setup/github-workflow-permissions.test.ts +71 -0
  2144. package/workspace-snapshot/files/tests/setup/gui-remote-storage.test.ts +41 -0
  2145. package/workspace-snapshot/files/tests/setup/gui-view-model.test.ts +251 -0
  2146. package/workspace-snapshot/files/tests/setup/guided-config-form.test.ts +54 -0
  2147. package/workspace-snapshot/files/tests/setup/harness-dispatch-repo.test.ts +394 -0
  2148. package/workspace-snapshot/files/tests/setup/harness-managed-repo-marker.test.ts +141 -0
  2149. package/workspace-snapshot/files/tests/setup/harness-provisioning-context.test.ts +89 -0
  2150. package/workspace-snapshot/files/tests/setup/harness-provisioning-pending-state.test.ts +88 -0
  2151. package/workspace-snapshot/files/tests/setup/harness-repo-provisioning.test.ts +897 -0
  2152. package/workspace-snapshot/files/tests/setup/harness-secret-setup.test.ts +255 -0
  2153. package/workspace-snapshot/files/tests/setup/harness-snapshot-bulk-fixture.ts +72 -0
  2154. package/workspace-snapshot/files/tests/setup/harness-snapshot-bulk-installed.test.ts +93 -0
  2155. package/workspace-snapshot/files/tests/setup/harness-snapshot-default-branch.test.ts +73 -0
  2156. package/workspace-snapshot/files/tests/setup/harness-snapshot-description-finalization.test.ts +136 -0
  2157. package/workspace-snapshot/files/tests/setup/harness-snapshot-git-transport.test.ts +518 -0
  2158. package/workspace-snapshot/files/tests/setup/harness-snapshot-marker-tree.test.ts +61 -0
  2159. package/workspace-snapshot/files/tests/setup/harness-snapshot-reconciliation.test.ts +132 -0
  2160. package/workspace-snapshot/files/tests/setup/harness-snapshot-structured-errors.test.ts +137 -0
  2161. package/workspace-snapshot/files/tests/setup/harness-snapshot-upload-rate-limit.test.ts +105 -0
  2162. package/workspace-snapshot/files/tests/setup/harness-step-readiness.test.ts +145 -0
  2163. package/workspace-snapshot/files/tests/setup/harness-workspace-snapshot-loader.test.ts +142 -0
  2164. package/workspace-snapshot/files/tests/setup/initial-setup-lifecycle.test.ts +220 -0
  2165. package/workspace-snapshot/files/tests/setup/linear-setup-apply.test.ts +134 -0
  2166. package/workspace-snapshot/files/tests/setup/linear-setup-plan.test.ts +149 -0
  2167. package/workspace-snapshot/files/tests/setup/linear-webhook-env-local.test.ts +95 -0
  2168. package/workspace-snapshot/files/tests/setup/linear-webhook-secret.test.ts +256 -0
  2169. package/workspace-snapshot/files/tests/setup/linear-workflow-status-repair.test.ts +314 -0
  2170. package/workspace-snapshot/files/tests/setup/linear-workspace-migration.test.ts +173 -0
  2171. package/workspace-snapshot/files/tests/setup/linear-workspace-plan.test.ts +247 -0
  2172. package/workspace-snapshot/files/tests/setup/live-provisioning-error-preservation.test.ts +98 -0
  2173. package/workspace-snapshot/files/tests/setup/local-apply-actions.test.ts +365 -0
  2174. package/workspace-snapshot/files/tests/setup/local-readiness-checks.test.ts +199 -0
  2175. package/workspace-snapshot/files/tests/setup/mock-canonical-preflight.ts +14 -0
  2176. package/workspace-snapshot/files/tests/setup/model-settings.test.ts +52 -0
  2177. package/workspace-snapshot/files/tests/setup/packaged-default-route.test.ts +85 -0
  2178. package/workspace-snapshot/files/tests/setup/packaged-provisioning-permissions.test.ts +41 -0
  2179. package/workspace-snapshot/files/tests/setup/permission-model.test.ts +38 -0
  2180. package/workspace-snapshot/files/tests/setup/redact-secrets.test.ts +78 -0
  2181. package/workspace-snapshot/files/tests/setup/release-sync-managed-runner.test.ts +385 -0
  2182. package/workspace-snapshot/files/tests/setup/remote-actions.test.ts +45 -0
  2183. package/workspace-snapshot/files/tests/setup/remote-apply-actions.test.ts +302 -0
  2184. package/workspace-snapshot/files/tests/setup/remote-preview-fingerprint.test.ts +121 -0
  2185. package/workspace-snapshot/files/tests/setup/runner-upgrade-canary.test.ts +201 -0
  2186. package/workspace-snapshot/files/tests/setup/runner-upgrade-three-way.test.ts +226 -0
  2187. package/workspace-snapshot/files/tests/setup/runner-upgrade.test.ts +702 -0
  2188. package/workspace-snapshot/files/tests/setup/service-verification.test.ts +491 -0
  2189. package/workspace-snapshot/files/tests/setup/settings-config-patch.test.ts +280 -0
  2190. package/workspace-snapshot/files/tests/setup/setup-actions.test.ts +96 -0
  2191. package/workspace-snapshot/files/tests/setup/setup-form-defaults.test.ts +35 -0
  2192. package/workspace-snapshot/files/tests/setup/setup-server-remote.test.ts +90 -0
  2193. package/workspace-snapshot/files/tests/setup/setup-state.test.ts +47 -0
  2194. package/workspace-snapshot/files/tests/setup/stale-smoke-repo.test.ts +84 -0
  2195. package/workspace-snapshot/files/tests/setup/step6-automatic-apply-outcome.test.ts +304 -0
  2196. package/workspace-snapshot/files/tests/setup/step6-automatic-control-state.test.ts +73 -0
  2197. package/workspace-snapshot/files/tests/setup/target-repo-provisioning.test.ts +307 -0
  2198. package/workspace-snapshot/files/tests/setup/target-workflow-finalization-lock.test.ts +51 -0
  2199. package/workspace-snapshot/files/tests/setup/target-workflow-finalization-progress.test.ts +71 -0
  2200. package/workspace-snapshot/files/tests/setup/target-workflow-finalization-step-github.test.ts +675 -0
  2201. package/workspace-snapshot/files/tests/setup/target-workflow-finalization.test.ts +222 -0
  2202. package/workspace-snapshot/files/tests/setup/target-workflow-setup.test.ts +62 -0
  2203. package/workspace-snapshot/files/tests/setup/test-workspace-snapshot-fixture.ts +100 -0
  2204. package/workspace-snapshot/files/tests/setup/vercel-bridge-diagnostics.test.ts +429 -0
  2205. package/workspace-snapshot/files/tests/setup/vercel-bridge-options.test.ts +135 -0
  2206. package/workspace-snapshot/files/tests/setup/vercel-bridge-preview-fingerprint.test.ts +52 -0
  2207. package/workspace-snapshot/files/tests/setup/vercel-bridge-redeploy-normalize.test.ts +106 -0
  2208. package/workspace-snapshot/files/tests/setup/vercel-bridge-redeploy-poll.test.ts +656 -0
  2209. package/workspace-snapshot/files/tests/setup/vercel-bridge-structured-log.test.ts +45 -0
  2210. package/workspace-snapshot/files/tests/setup/vercel-bridge-verification.test.ts +39 -0
  2211. package/workspace-snapshot/files/tests/setup/vercel-endpoint-reachability.test.ts +60 -0
  2212. package/workspace-snapshot/files/tests/setup/vercel-production-redeploy.test.ts +184 -0
  2213. package/workspace-snapshot/files/tests/setup/vercel-setup-apply.test.ts +1557 -0
  2214. package/workspace-snapshot/files/tests/setup/vercel-setup-client.test.ts +471 -0
  2215. package/workspace-snapshot/files/tests/setup/vercel-setup-plan.test.ts +319 -0
  2216. package/workspace-snapshot/files/tests/setup/vercel-webhook-probe.test.ts +78 -0
  2217. package/workspace-snapshot/files/tests/setup/workflow-install-branch-recovery-commit.test.ts +144 -0
  2218. package/workspace-snapshot/files/tests/setup/workflow-install-branch-recovery.test.ts +133 -0
  2219. package/workspace-snapshot/files/tests/setup/workflow-install-merge-errors.test.ts +103 -0
  2220. package/workspace-snapshot/files/tests/setup/workflow-install-merge-gate.test.ts +58 -0
  2221. package/workspace-snapshot/files/tests/setup/workflow-model-save-queue.test.ts +139 -0
  2222. package/workspace-snapshot/files/tests/setup/workflow-model-sync.test.ts +141 -0
  2223. package/workspace-snapshot/files/tests/validate-issue/report.test.ts +56 -0
  2224. package/workspace-snapshot/files/tests/validate-issue/uninitialized-product.test.ts +108 -0
  2225. package/workspace-snapshot/files/tests/validate-issue/validate-issue.test.ts +202 -0
  2226. package/workspace-snapshot/files/tests/webhook/dispatch-github.test.ts +193 -0
  2227. package/workspace-snapshot/files/tests/webhook/extract-issue-key.test.ts +65 -0
  2228. package/workspace-snapshot/files/tests/webhook/filter.test.ts +187 -0
  2229. package/workspace-snapshot/files/tests/webhook/harness-auto-runner-workflow.test.ts +176 -0
  2230. package/workspace-snapshot/files/tests/webhook/parse-linear-issue-event.test.ts +89 -0
  2231. package/workspace-snapshot/files/tests/webhook/verify.test.ts +125 -0
  2232. package/workspace-snapshot/files/tests/workflow/canonical-product-development-workflow.test.ts +193 -0
  2233. package/workspace-snapshot/files/tests/workflow/canonical-workflow-validation.test.ts +202 -0
  2234. package/workspace-snapshot/files/tests/workflow/dispatch-metadata.test.ts +38 -0
  2235. package/workspace-snapshot/files/tests/workflow/manifest-summary.test.ts +58 -0
  2236. package/workspace-snapshot/files/tests/workflow/production-sync-dispatch.test.ts +101 -0
  2237. package/workspace-snapshot/files/tests/workflow/validate.test.ts +70 -0
  2238. package/workspace-snapshot/files/tests/workflow/workflow-shell-safety.test.ts +95 -0
  2239. package/workspace-snapshot/files/tsconfig.json +22 -0
  2240. package/workspace-snapshot/files/vercel.json +10 -0
  2241. package/workspace-snapshot/files/vitest.config.ts +20 -0
  2242. package/workspace-snapshot/manifest.json +7679 -0
  2243. package/workspace-snapshot/object-pack/snapshot-2735d42c938e514f27a9b2aaf5fa2fcc68019075.idx +0 -0
  2244. package/workspace-snapshot/object-pack/snapshot-2735d42c938e514f27a9b2aaf5fa2fcc68019075.pack +0 -0
  2245. package/gui/.next/server/app/index.html +0 -1
  2246. package/gui/.next/server/app/index.meta +0 -9
  2247. package/gui/.next/server/app/index.rsc +0 -18
  2248. package/gui/.next/server/chunks/120.js +0 -81
  2249. package/gui/.next/server/chunks/200.js +0 -1
  2250. package/gui/.next/server/chunks/477.js +0 -16
  2251. package/gui/.next/server/chunks/585.js +0 -1
  2252. package/gui/.next/server/chunks/711.js +0 -1
  2253. package/gui/.next/server/chunks/900.js +0 -1
  2254. package/gui/.next/server/chunks/901.js +0 -22
  2255. package/gui/.next/static/7x8X_k4tESvkyqRnNCC9E/_buildManifest.js +0 -1
  2256. package/gui/.next/static/chunks/661-5fc9351358e2f084.js +0 -1
  2257. package/gui/.next/static/chunks/app/_not-found/page-f15332c94524c284.js +0 -1
  2258. package/gui/.next/static/chunks/app/api/setup/apply-connect-services/route-979ec1702bd9938a.js +0 -1
  2259. package/gui/.next/static/chunks/app/api/setup/apply-harness-repo-provisioning/route-979ec1702bd9938a.js +0 -1
  2260. package/gui/.next/static/chunks/app/api/setup/apply-harness-secrets/route-979ec1702bd9938a.js +0 -1
  2261. package/gui/.next/static/chunks/app/api/setup/apply-linear-setup/route-979ec1702bd9938a.js +0 -1
  2262. package/gui/.next/static/chunks/app/api/setup/apply-local-files/route-979ec1702bd9938a.js +0 -1
  2263. package/gui/.next/static/chunks/app/api/setup/apply-target-workflow/route-979ec1702bd9938a.js +0 -1
  2264. package/gui/.next/static/chunks/app/api/setup/apply-vercel-bridge/route-979ec1702bd9938a.js +0 -1
  2265. package/gui/.next/static/chunks/app/api/setup/finalize-target-workflow/route-979ec1702bd9938a.js +0 -1
  2266. package/gui/.next/static/chunks/app/api/setup/harness-provisioning-summary/route-979ec1702bd9938a.js +0 -1
  2267. package/gui/.next/static/chunks/app/api/setup/linear-options/route-979ec1702bd9938a.js +0 -1
  2268. package/gui/.next/static/chunks/app/api/setup/linear-summary/route-979ec1702bd9938a.js +0 -1
  2269. package/gui/.next/static/chunks/app/api/setup/local-readiness/route-979ec1702bd9938a.js +0 -1
  2270. package/gui/.next/static/chunks/app/api/setup/manual-harness-secret-values/route-979ec1702bd9938a.js +0 -1
  2271. package/gui/.next/static/chunks/app/api/setup/preview-connect-services/route-979ec1702bd9938a.js +0 -1
  2272. package/gui/.next/static/chunks/app/api/setup/preview-harness-repo-provisioning/route-979ec1702bd9938a.js +0 -1
  2273. package/gui/.next/static/chunks/app/api/setup/preview-harness-secrets/route-979ec1702bd9938a.js +0 -1
  2274. package/gui/.next/static/chunks/app/api/setup/preview-linear-setup/route-979ec1702bd9938a.js +0 -1
  2275. package/gui/.next/static/chunks/app/api/setup/preview-local-files/route-979ec1702bd9938a.js +0 -1
  2276. package/gui/.next/static/chunks/app/api/setup/preview-target-workflow/route-979ec1702bd9938a.js +0 -1
  2277. package/gui/.next/static/chunks/app/api/setup/preview-vercel-bridge/route-979ec1702bd9938a.js +0 -1
  2278. package/gui/.next/static/chunks/app/api/setup/remote-summary/route-979ec1702bd9938a.js +0 -1
  2279. package/gui/.next/static/chunks/app/api/setup/summary/route-979ec1702bd9938a.js +0 -1
  2280. package/gui/.next/static/chunks/app/api/setup/vercel-bridge-options/route-979ec1702bd9938a.js +0 -1
  2281. package/gui/.next/static/chunks/app/api/setup/vercel-bridge-redeploy-status/route-979ec1702bd9938a.js +0 -1
  2282. package/gui/.next/static/chunks/app/api/setup/vercel-summary/route-979ec1702bd9938a.js +0 -1
  2283. package/gui/.next/static/chunks/app/api/setup/verify-harness-repo/route-979ec1702bd9938a.js +0 -1
  2284. package/gui/.next/static/chunks/app/api/setup/verify-service/route-979ec1702bd9938a.js +0 -1
  2285. package/gui/.next/static/chunks/app/api/setup/verify-target-repo/route-979ec1702bd9938a.js +0 -1
  2286. package/gui/.next/static/chunks/app/layout-10445a363bff6a38.js +0 -1
  2287. package/gui/.next/static/chunks/app/page-979ec1702bd9938a.js +0 -1
  2288. package/gui/.next/static/chunks/app/settings/configure/page-25b2288ace2949a1.js +0 -1
  2289. package/gui/.next/static/chunks/framework-7318ce553e854ad6.js +0 -1
  2290. package/gui/.next/static/chunks/main-app-732547e2b1a794b6.js +0 -1
  2291. package/gui/.next/static/chunks/main-f7a784f5852cbbd1.js +0 -1
  2292. package/gui/.next/static/chunks/pages/_error-bda15e7831eec981.js +0 -1
  2293. package/gui/.next/static/css/cc2acc71c03f3b4b.css +0 -3
  2294. /package/gui/.next/static/{7x8X_k4tESvkyqRnNCC9E → wM7YWpWgyTcGc7H5h1u7U}/_ssgManifest.js +0 -0
@@ -0,0 +1,1280 @@
1
+ import { mkdir, writeFile } from "node:fs/promises";
2
+ import {
3
+ DEFAULT_MERGE_DEPLOYMENT_POLL_INTERVAL_SECONDS,
4
+ DEFAULT_MERGE_DEPLOYMENT_POLL_TIMEOUT_SECONDS,
5
+ DEFAULT_MERGE_CHECK_POLL_TIMEOUT_SECONDS,
6
+ DEFAULT_MERGE_DEPLOYMENT_REQUIRED,
7
+ DEFAULT_MERGE_METHOD,
8
+ MERGE_PROMPT_VERSION,
9
+ MILESTONE,
10
+ } from "../../config/defaults.js";
11
+ import {
12
+ getTransitionalStatus,
13
+ resolveMergeSuccessStatus,
14
+ } from "../../config/status-names.js";
15
+ import { writeManifest } from "../../artifacts/manifest.js";
16
+ import { writeRunSummary } from "../../artifacts/summary.js";
17
+ import {
18
+ getGithubChecksBeforeMergePath,
19
+ getGithubMergeResultPath,
20
+ getGithubPrAfterMergePath,
21
+ getGithubPrBeforeMergePath,
22
+ getIssueSnapshotAfterPath,
23
+ getMergeCompletionCommentPath,
24
+ getMergeRecoveryPath,
25
+ getMergeSourceCommentLoadedPath,
26
+ getProductionDeploymentPath,
27
+ } from "../../artifacts/paths.js";
28
+ import {
29
+ buildMergeCompletionCommentBody,
30
+ parsePrNumberFromUrl,
31
+ writeCommentsArtifact,
32
+ } from "../../linear/comments.js";
33
+ import { parseHarnessMarkers } from "../../linear/markers.js";
34
+ import { syncProjectHarnessMetadataAfterFoundationMerge } from "../../linear/project-metadata-sync.js";
35
+ import { runLinearAssociationGate } from "../../config/linear-association-gate.js";
36
+ import { getLinearProject } from "../../setup/linear-setup-client.js";
37
+ import { fetchLinearIssue } from "../../linear/client.js";
38
+ import { findLatestMergeSourceComment } from "../../linear/merge-source-comment.js";
39
+ import {
40
+ createLinearClient,
41
+ listIssueComments,
42
+ postErrorComment,
43
+ postMergeCompletionComment,
44
+ postPhaseStartCommentIfNeeded,
45
+ postIssueComment,
46
+ transitionIssueStatus,
47
+ } from "../../linear/writer.js";
48
+ import { GitHubClient } from "../../github/client.js";
49
+ import {
50
+ assertPrBaseBranchMatches,
51
+ assertPullRequestMergeable,
52
+ isIntegrationRepairEligible,
53
+ } from "../../github/base-branch.js";
54
+ import { evaluateChecksForMerge } from "../../github/check-policy.js";
55
+ import { classifyMergeError, isAlreadyMergedError } from "../../github/merge-result.js";
56
+ import {
57
+ classifyGitHubError,
58
+ inspectPullRequestForMerge,
59
+ inspectPullRequestPostMerge,
60
+ } from "../../github/pr-inspector.js";
61
+ import { parsePrUrl, type ParsedPrUrl } from "../../github/pr-url.js";
62
+ import { pollForProductionDeployment, inferVercelReadyFromComments } from "../../preview/production-from-merge.js";
63
+ import { shouldCaptureApplicationPreview } from "../../preview/preview-capability.js";
64
+ import { resolvePreviewLinks } from "../../preview/urls.js";
65
+ import { normalizeRepoUrl } from "../../resolver/normalize-repo.js";
66
+ import { manifestModelEvidence } from "../../cursor/model.js";
67
+ import { MergeError } from "../errors.js";
68
+ import { attemptIntegrationRepair } from "./integration-repair.js";
69
+ import { runPreflight } from "../preflight.js";
70
+ import {
71
+ assertMergeEligibleStatus,
72
+ checkMergeIdempotency,
73
+ } from "../idempotency.js";
74
+ import type { HarnessConfig } from "../../config/types.js";
75
+ import type { EventLogger } from "../../artifacts/events.js";
76
+ import type {
77
+ ErrorClassification,
78
+ FinalOutcome,
79
+ RunManifest,
80
+ } from "../../types/run.js";
81
+ import type { ParsedIssue } from "../../types/parsed-issue.js";
82
+ import type { ResolvedTarget } from "../../resolver/target-repo.js";
83
+
84
+ export interface MergePhaseOptions {
85
+ issueKey: string;
86
+ configPath: string;
87
+ force?: boolean;
88
+ }
89
+
90
+ export interface MergePhaseResult {
91
+ manifest: RunManifest;
92
+ runDirectory: string;
93
+ exitCode: number;
94
+ }
95
+
96
+ function requireEnv(name: string): string {
97
+ const value = process.env[name];
98
+ if (!value) {
99
+ throw new MergeError(
100
+ name === "LINEAR_API_KEY" ? "linear_auth_failure" : "github_auth_failure",
101
+ `${name} is required for live merge runs`,
102
+ );
103
+ }
104
+ return value;
105
+ }
106
+
107
+ function emptyMergeManifestFields() {
108
+ return {
109
+ changedFiles: null as string[] | null,
110
+ checkSummary: null as string | null,
111
+ previousImplementationRunId: null as string | null,
112
+ previousHandoffRunId: null as string | null,
113
+ pmFeedbackCommentId: null as string | null,
114
+ previousRevisionRunId: null as string | null,
115
+ mergeCommitSha: null as string | null,
116
+ mergeMethod: null as string | null,
117
+ mergedAt: null as string | null,
118
+ deploymentUrl: null as string | null,
119
+ };
120
+ }
121
+
122
+ function getProductionUrlReference(
123
+ config: HarnessConfig,
124
+ repoConfigId: string,
125
+ ): string | null {
126
+ const mapping = config.repos.find((repo) => repo.id === repoConfigId);
127
+ return mapping?.productionUrl ?? null;
128
+ }
129
+
130
+ const DRAFT_READY_POLL_TIMEOUT_MS = 30_000;
131
+ const DRAFT_READY_POLL_INTERVAL_MS = 2_000;
132
+ const MAX_REPAIR_FAILURES_PER_ISSUE = 3;
133
+
134
+ function countRepairFailuresForPr(
135
+ comments: Awaited<ReturnType<typeof listIssueComments>>,
136
+ orchestratorMarker: string,
137
+ prUrl: string,
138
+ ): number {
139
+ return comments.filter((comment) => {
140
+ const markers = parseHarnessMarkers(comment.body);
141
+ return (
142
+ markers.orchestratorMarker === orchestratorMarker &&
143
+ markers.phase === "repair_failed" &&
144
+ markers.prUrl === prUrl
145
+ );
146
+ }).length;
147
+ }
148
+
149
+ async function ensurePullRequestReadyForMerge(
150
+ github: GitHubClient,
151
+ parsedPr: ParsedPrUrl,
152
+ markerTargetRepo: string,
153
+ events: EventLogger,
154
+ prUrl: string,
155
+ initialInspection: Awaited<ReturnType<typeof inspectPullRequestForMerge>>,
156
+ ): Promise<Awaited<ReturnType<typeof inspectPullRequestForMerge>>> {
157
+ if (!initialInspection.isDraft) {
158
+ return initialInspection;
159
+ }
160
+
161
+ await github.markPullRequestReadyForReview(
162
+ parsedPr.owner,
163
+ parsedPr.repo,
164
+ parsedPr.pullNumber,
165
+ );
166
+
167
+ const deadline = Date.now() + DRAFT_READY_POLL_TIMEOUT_MS;
168
+ let pollCount = 0;
169
+ let lastDraft = true;
170
+ while (Date.now() < deadline) {
171
+ const inspection = await inspectPullRequestForMerge(
172
+ github,
173
+ parsedPr,
174
+ markerTargetRepo,
175
+ );
176
+ pollCount += 1;
177
+ lastDraft = inspection.isDraft;
178
+ if (!inspection.isDraft) {
179
+ await events.log("github_pr_marked_ready", "info", { prUrl, pollCount });
180
+ return inspection;
181
+ }
182
+ await new Promise((resolve) => setTimeout(resolve, DRAFT_READY_POLL_INTERVAL_MS));
183
+ }
184
+
185
+ throw new MergeError(
186
+ "github_merge_failure",
187
+ `Pull request remained draft after mark-ready request (pollCount=${pollCount}, lastDraft=${lastDraft})`,
188
+ );
189
+ }
190
+
191
+ async function writeErrorArtifact(
192
+ runDirectory: string,
193
+ message: string,
194
+ errorClassification: ErrorClassification,
195
+ ): Promise<void> {
196
+ await mkdir(`${runDirectory}/errors`, { recursive: true });
197
+ await writeFile(
198
+ `${runDirectory}/errors/error.json`,
199
+ `${JSON.stringify({ message, errorClassification }, null, 2)}\n`,
200
+ "utf8",
201
+ );
202
+ }
203
+
204
+ async function writeMergeRecoveryArtifact(
205
+ runDirectory: string,
206
+ recovery: Record<string, unknown>,
207
+ ): Promise<void> {
208
+ await mkdir(`${runDirectory}/outputs`, { recursive: true });
209
+ await writeFile(
210
+ getMergeRecoveryPath(runDirectory),
211
+ `${JSON.stringify(recovery, null, 2)}\n`,
212
+ "utf8",
213
+ );
214
+ }
215
+
216
+ async function writeFinalManifest(
217
+ manifest: RunManifest,
218
+ runDirectory: string,
219
+ parsed: ParsedIssue,
220
+ resolved: ResolvedTarget | null,
221
+ events: EventLogger | null,
222
+ finalOutcome: FinalOutcome,
223
+ errorClassification: ErrorClassification,
224
+ ): Promise<MergePhaseResult> {
225
+ if (runDirectory) {
226
+ await writeManifest(runDirectory, manifest);
227
+ await writeRunSummary(runDirectory, manifest, parsed, resolved);
228
+ await events?.log("run_finished", finalOutcome === "success" ? "info" : "error", {
229
+ finalOutcome,
230
+ errorClassification,
231
+ });
232
+ }
233
+
234
+ const exitCode =
235
+ finalOutcome === "success" || finalOutcome === "duplicate"
236
+ ? 0
237
+ : errorClassification &&
238
+ [
239
+ "ambiguous_issue",
240
+ "missing_target_repo",
241
+ "unknown_repo_denied",
242
+ "wrong_status",
243
+ "linear_auth_failure",
244
+ "github_auth_failure",
245
+ "missing_merge_source_marker",
246
+ "missing_pr_url",
247
+ "base_branch_missing",
248
+ "wrong_pr_base_branch",
249
+ "checks_failing",
250
+ "checks_pending",
251
+ "checks_unknown",
252
+ ].includes(errorClassification)
253
+ ? 2
254
+ : 3;
255
+
256
+ return { manifest, runDirectory, exitCode };
257
+ }
258
+
259
+ async function postCompletionAndTransition(
260
+ client: ReturnType<typeof createLinearClient>,
261
+ issue: import("../../linear/client.js").LinearIssueSnapshot,
262
+ mergeBody: string,
263
+ footer: Parameters<typeof postMergeCompletionComment>[3],
264
+ mergeSuccessStatus: string,
265
+ events: EventLogger,
266
+ linearStatusBefore: string | null,
267
+ ): Promise<string> {
268
+ const commentId = await postMergeCompletionComment(
269
+ client,
270
+ issue.id,
271
+ mergeBody,
272
+ footer,
273
+ );
274
+ await events.log("merge_comment_posted", "info", { commentId });
275
+ await events.log("linear_comment_posted", "info", {
276
+ phase: "merge",
277
+ commentId,
278
+ });
279
+ await transitionIssueStatus(client, issue, mergeSuccessStatus);
280
+ await events.log("linear_status_changed", "info", {
281
+ from: linearStatusBefore,
282
+ to: mergeSuccessStatus,
283
+ });
284
+ return mergeSuccessStatus;
285
+ }
286
+
287
+ export async function executeMergePhase(
288
+ options: MergePhaseOptions,
289
+ ): Promise<MergePhaseResult> {
290
+ let linearApiKey: string;
291
+ let githubToken: string;
292
+
293
+ try {
294
+ githubToken = requireEnv("GITHUB_TOKEN");
295
+ linearApiKey = requireEnv("LINEAR_API_KEY");
296
+ } catch (error) {
297
+ if (error instanceof MergeError) {
298
+ const startedAt = new Date().toISOString();
299
+ const manifest: RunManifest = {
300
+ runId: `auth-failure-${options.issueKey}`,
301
+ issueKey: options.issueKey,
302
+ phase: "merge",
303
+ phaseInferredFromStatus: null,
304
+ linearStatusBefore: null,
305
+ linearStatusAfter: null,
306
+ targetRepo: null,
307
+ baseBranch: null,
308
+ resolutionSource: null,
309
+ dryRun: false,
310
+ finalOutcome: "failed",
311
+ errorClassification: error.classification,
312
+ startedAt,
313
+ finishedAt: startedAt,
314
+ milestone: MILESTONE,
315
+ promptVersion: null,
316
+ cursorAgentId: null,
317
+ cursorRunId: null,
318
+ branch: null,
319
+ prUrl: null,
320
+ previewUrl: null,
321
+ validationSummary: null,
322
+ model: null,
323
+ ...emptyMergeManifestFields(),
324
+ };
325
+ return { manifest, runDirectory: "", exitCode: 2 };
326
+ }
327
+ throw error;
328
+ }
329
+
330
+ const preflight = await runPreflight({
331
+ issueKey: options.issueKey,
332
+ configPath: options.configPath,
333
+ linearApiKey,
334
+ });
335
+
336
+ if (!preflight.success) {
337
+ const manifest: RunManifest = {
338
+ runId: preflight.runId,
339
+ issueKey: options.issueKey,
340
+ phase: "merge",
341
+ phaseInferredFromStatus: preflight.phaseInferredFromStatus,
342
+ linearStatusBefore: preflight.issue?.status ?? null,
343
+ linearStatusAfter: preflight.issue?.status ?? null,
344
+ targetRepo: preflight.resolved?.targetRepo ?? null,
345
+ baseBranch: preflight.resolved?.baseBranch ?? null,
346
+ resolutionSource: preflight.resolved?.resolutionSource ?? null,
347
+ dryRun: false,
348
+ finalOutcome: "failed",
349
+ errorClassification: preflight.errorClassification,
350
+ startedAt: preflight.startedAt.toISOString(),
351
+ finishedAt: new Date().toISOString(),
352
+ milestone: MILESTONE,
353
+ promptVersion: null,
354
+ cursorAgentId: null,
355
+ cursorRunId: null,
356
+ branch: null,
357
+ prUrl: null,
358
+ previewUrl: null,
359
+ validationSummary: null,
360
+ model: null,
361
+ ...emptyMergeManifestFields(),
362
+ };
363
+ return writeFinalManifest(
364
+ manifest,
365
+ preflight.runDirectory,
366
+ preflight.parsed,
367
+ preflight.resolved,
368
+ preflight.events,
369
+ "failed",
370
+ preflight.errorClassification,
371
+ );
372
+ }
373
+
374
+ const {
375
+ config,
376
+ issue,
377
+ parsed,
378
+ resolved,
379
+ runId,
380
+ runDirectory,
381
+ events,
382
+ phase,
383
+ phaseInferredFromStatus,
384
+ startedAt,
385
+ } = preflight.context;
386
+
387
+ const linearStatusBefore = issue.status;
388
+ let linearStatusAfter = issue.status;
389
+ let finalOutcome: FinalOutcome = "failed";
390
+ let errorClassification: ErrorClassification = null;
391
+ let branch: string | null = null;
392
+ let prUrl: string | null = null;
393
+ let previewUrl: string | null = null;
394
+ let validationSummary: string | null = null;
395
+ let changedFiles: string[] | null = null;
396
+ let checkSummary: string | null = null;
397
+ let previousHandoffRunId: string | null = null;
398
+ let previousRevisionRunId: string | null = null;
399
+ let mergeCommitSha: string | null = null;
400
+ let mergeMethod: string | null =
401
+ config.merge?.mergeMethod ?? DEFAULT_MERGE_METHOD;
402
+ let mergedAt: string | null = null;
403
+ let deploymentUrl: string | null = null;
404
+ let enteredMerging = false;
405
+ let prMerged = false;
406
+ let manifestModel: string | null = null;
407
+ let manifestModelRole: "builder" | null = null;
408
+ let manifestModelParams: Array<{ id: string; value: string }> | null = null;
409
+ let repairCursorAgentId: string | null = null;
410
+ let repairCursorRunId: string | null = null;
411
+ const commentsWritten: string[] = [];
412
+
413
+ let footerModel = "";
414
+ const footerBase = {
415
+ orchestratorMarker: config.orchestratorMarker,
416
+ phase: "merge",
417
+ runId,
418
+ promptVersion: MERGE_PROMPT_VERSION,
419
+ targetRepo: resolved.targetRepo,
420
+ baseBranch: resolved.baseBranch,
421
+ };
422
+
423
+ const client = createLinearClient(linearApiKey);
424
+ const github = new GitHubClient({ token: githubToken });
425
+ const mergeSuccessStatus = resolveMergeSuccessStatus(resolved, config);
426
+ const mergingStatus = getTransitionalStatus(config, "mergingInProgress");
427
+
428
+ try {
429
+ const comments = await listIssueComments(client, issue.id);
430
+ const mergeSource = findLatestMergeSourceComment(
431
+ comments,
432
+ config.orchestratorMarker,
433
+ );
434
+ if (!mergeSource) {
435
+ throw new MergeError(
436
+ "missing_merge_source_marker",
437
+ "No durable handoff or revision marker comment found",
438
+ );
439
+ }
440
+
441
+ const sourceMarkers = mergeSource.markers;
442
+ if (!sourceMarkers.prUrl) {
443
+ throw new MergeError(
444
+ "missing_pr_url",
445
+ "Merge source marker is missing pr_url",
446
+ );
447
+ }
448
+
449
+ prUrl = sourceMarkers.prUrl;
450
+ branch = sourceMarkers.branch ?? null;
451
+ previewUrl = sourceMarkers.previewUrl ?? null;
452
+ previousHandoffRunId =
453
+ mergeSource.source === "revision"
454
+ ? sourceMarkers.previousHandoffRunId ?? null
455
+ : sourceMarkers.runId ?? null;
456
+ previousRevisionRunId =
457
+ mergeSource.source === "revision" ? sourceMarkers.runId ?? null : null;
458
+
459
+ const markerTargetRepo = normalizeRepoUrl(
460
+ sourceMarkers.targetRepo ?? resolved.targetRepo,
461
+ );
462
+
463
+ await mkdir(`${runDirectory}/linear`, { recursive: true });
464
+ await writeFile(
465
+ getMergeSourceCommentLoadedPath(runDirectory),
466
+ `${mergeSource.comment.body}\n`,
467
+ "utf8",
468
+ );
469
+ await events.log("merge_source_comment_loaded", "info", {
470
+ commentId: mergeSource.comment.id,
471
+ source: mergeSource.source,
472
+ });
473
+
474
+ const parsedPr = parsePrUrl(prUrl);
475
+ if (!parsedPr) {
476
+ throw new MergeError("missing_pr_url", `Invalid PR URL: ${prUrl}`);
477
+ }
478
+
479
+ const earlyIdempotency = checkMergeIdempotency(
480
+ config,
481
+ issue,
482
+ comments,
483
+ prUrl,
484
+ false,
485
+ Boolean(options.force),
486
+ );
487
+ if (earlyIdempotency.skip) {
488
+ await events.log("idempotency_skip", "info", { reason: earlyIdempotency.reason });
489
+ finalOutcome = "duplicate";
490
+ errorClassification = "duplicate_phase_completed";
491
+ const manifest: RunManifest = {
492
+ runId,
493
+ issueKey: options.issueKey,
494
+ phase,
495
+ phaseInferredFromStatus,
496
+ linearStatusBefore,
497
+ linearStatusAfter,
498
+ targetRepo: resolved.targetRepo,
499
+ baseBranch: resolved.baseBranch,
500
+ resolutionSource: resolved.resolutionSource,
501
+ dryRun: false,
502
+ finalOutcome,
503
+ errorClassification,
504
+ startedAt: startedAt.toISOString(),
505
+ finishedAt: new Date().toISOString(),
506
+ milestone: MILESTONE,
507
+ promptVersion: MERGE_PROMPT_VERSION,
508
+ cursorAgentId: null,
509
+ cursorRunId: null,
510
+ branch,
511
+ prUrl,
512
+ previewUrl,
513
+ validationSummary,
514
+ changedFiles,
515
+ checkSummary,
516
+ previousImplementationRunId: null,
517
+ previousHandoffRunId,
518
+ pmFeedbackCommentId: sourceMarkers.pmFeedbackCommentId ?? null,
519
+ previousRevisionRunId,
520
+ mergeCommitSha: null,
521
+ mergeMethod,
522
+ mergedAt: null,
523
+ deploymentUrl,
524
+ model: null,
525
+ };
526
+ return writeFinalManifest(
527
+ manifest,
528
+ runDirectory,
529
+ parsed,
530
+ resolved,
531
+ events,
532
+ finalOutcome,
533
+ errorClassification,
534
+ );
535
+ }
536
+
537
+ const readyToMerge = getTransitionalStatus(config, "readyToMerge");
538
+ const issueStatus = issue.status?.trim() ?? "";
539
+ if (issueStatus.toLowerCase() === readyToMerge.toLowerCase()) {
540
+ await transitionIssueStatus(client, issue, mergingStatus);
541
+ enteredMerging = true;
542
+ linearStatusAfter = mergingStatus;
543
+ await events.log("linear_status_changed", "info", {
544
+ from: linearStatusBefore,
545
+ to: mergingStatus,
546
+ });
547
+
548
+ const mergeStartCommentId = await postPhaseStartCommentIfNeeded(
549
+ client,
550
+ issue.id,
551
+ {
552
+ orchestratorMarker: config.orchestratorMarker,
553
+ phase: "merge_start",
554
+ runId,
555
+ issueKey: issue.identifier,
556
+ targetRepo: markerTargetRepo,
557
+ baseBranch: resolved.baseBranch,
558
+ model: footerModel,
559
+ promptVersion: MERGE_PROMPT_VERSION,
560
+ branch: branch ?? undefined,
561
+ prUrl,
562
+ },
563
+ );
564
+ if (mergeStartCommentId) {
565
+ await events.log("phase_start_comment_posted", "info", {
566
+ phase: "merge_start",
567
+ commentId: mergeStartCommentId,
568
+ });
569
+ await events.log("linear_comment_posted", "info", {
570
+ phase: "merge_start",
571
+ commentId: mergeStartCommentId,
572
+ });
573
+ }
574
+ }
575
+
576
+ let preInspection;
577
+ try {
578
+ preInspection = await inspectPullRequestForMerge(
579
+ github,
580
+ parsedPr,
581
+ markerTargetRepo,
582
+ );
583
+ } catch (error) {
584
+ const classification = classifyGitHubError(error);
585
+ const message = error instanceof Error ? error.message : String(error);
586
+ if (message.includes("wrong_target_repo")) {
587
+ throw new MergeError("wrong_target_repo", message);
588
+ }
589
+ if (message.includes("pr_closed")) {
590
+ throw new MergeError("pr_closed", message);
591
+ }
592
+ throw new MergeError(classification, message);
593
+ }
594
+
595
+ prMerged = preInspection.merged;
596
+ branch = preInspection.branch;
597
+ prUrl = preInspection.url;
598
+ try {
599
+ assertPrBaseBranchMatches({
600
+ prUrl,
601
+ actualBaseBranch: preInspection.baseBranch,
602
+ expectedBaseBranch: resolved.baseBranch,
603
+ });
604
+ } catch (error) {
605
+ throw new MergeError(
606
+ "wrong_pr_base_branch",
607
+ error instanceof Error ? error.message : String(error),
608
+ );
609
+ }
610
+ changedFiles = preInspection.changedFiles.map((f) => f.path);
611
+ checkSummary = preInspection.checkSummary;
612
+
613
+ const idempotency = checkMergeIdempotency(
614
+ config,
615
+ issue,
616
+ comments,
617
+ prUrl,
618
+ prMerged,
619
+ Boolean(options.force),
620
+ );
621
+
622
+ if (idempotency.skip) {
623
+ await events.log("idempotency_skip", "info", { reason: idempotency.reason });
624
+ finalOutcome = "duplicate";
625
+ errorClassification = "duplicate_phase_completed";
626
+ const manifest: RunManifest = {
627
+ runId,
628
+ issueKey: options.issueKey,
629
+ phase,
630
+ phaseInferredFromStatus,
631
+ linearStatusBefore,
632
+ linearStatusAfter,
633
+ targetRepo: resolved.targetRepo,
634
+ baseBranch: resolved.baseBranch,
635
+ resolutionSource: resolved.resolutionSource,
636
+ dryRun: false,
637
+ finalOutcome,
638
+ errorClassification,
639
+ startedAt: startedAt.toISOString(),
640
+ finishedAt: new Date().toISOString(),
641
+ milestone: MILESTONE,
642
+ promptVersion: MERGE_PROMPT_VERSION,
643
+ cursorAgentId: null,
644
+ cursorRunId: null,
645
+ branch,
646
+ prUrl,
647
+ previewUrl,
648
+ validationSummary,
649
+ changedFiles,
650
+ checkSummary,
651
+ previousImplementationRunId: null,
652
+ previousHandoffRunId,
653
+ pmFeedbackCommentId: sourceMarkers.pmFeedbackCommentId ?? null,
654
+ previousRevisionRunId,
655
+ mergeCommitSha: preInspection.mergeCommitSha,
656
+ mergeMethod,
657
+ mergedAt: preInspection.mergedAt,
658
+ deploymentUrl,
659
+ model: null,
660
+ };
661
+ return writeFinalManifest(
662
+ manifest,
663
+ runDirectory,
664
+ parsed,
665
+ resolved,
666
+ events,
667
+ finalOutcome,
668
+ errorClassification,
669
+ );
670
+ }
671
+
672
+ if (idempotency.reason?.startsWith("wrong_status")) {
673
+ throw new MergeError("wrong_status", idempotency.reason);
674
+ }
675
+
676
+ const isRecovery = idempotency.reason?.startsWith("recovery:");
677
+
678
+ if (!isRecovery) {
679
+ try {
680
+ assertMergeEligibleStatus(config, issue, Boolean(options.force));
681
+ } catch (error) {
682
+ throw new MergeError(
683
+ "wrong_status",
684
+ error instanceof Error ? error.message : String(error),
685
+ );
686
+ }
687
+ }
688
+
689
+ await mkdir(`${runDirectory}/github`, { recursive: true });
690
+ await writeFile(
691
+ getGithubPrBeforeMergePath(runDirectory),
692
+ `${JSON.stringify(preInspection, null, 2)}\n`,
693
+ "utf8",
694
+ );
695
+ if (preInspection.rawChecks) {
696
+ await writeFile(
697
+ getGithubChecksBeforeMergePath(runDirectory),
698
+ `${JSON.stringify({ check_runs: preInspection.rawChecks }, null, 2)}\n`,
699
+ "utf8",
700
+ );
701
+ }
702
+
703
+ if (!prMerged) {
704
+ const checkPollTimeout =
705
+ config.merge?.checkPollTimeoutSeconds ?? DEFAULT_MERGE_CHECK_POLL_TIMEOUT_SECONDS;
706
+ const checkPollInterval =
707
+ config.merge?.deploymentPollIntervalSeconds ??
708
+ DEFAULT_MERGE_DEPLOYMENT_POLL_INTERVAL_SECONDS;
709
+
710
+ let checkPolicy = evaluateChecksForMerge(preInspection.checks, config);
711
+ const pollDeadline = Date.now() + checkPollTimeout * 1000;
712
+
713
+ while (
714
+ checkPolicy.decision === "block" &&
715
+ checkPolicy.classification === "checks_pending" &&
716
+ Date.now() < pollDeadline
717
+ ) {
718
+ await new Promise((resolve) => setTimeout(resolve, checkPollInterval * 1000));
719
+ preInspection = await inspectPullRequestForMerge(
720
+ github,
721
+ parsedPr,
722
+ markerTargetRepo,
723
+ );
724
+ checkPolicy = evaluateChecksForMerge(preInspection.checks, config);
725
+ }
726
+
727
+ await events.log("merge_checks_evaluated", "info", {
728
+ decision: checkPolicy.decision,
729
+ reason: checkPolicy.reason,
730
+ });
731
+ if (
732
+ checkPolicy.decision === "block" &&
733
+ (checkPolicy.classification === "checks_pending" ||
734
+ checkPolicy.classification === "checks_unknown") &&
735
+ shouldCaptureApplicationPreview(resolved.previewProvider) &&
736
+ inferVercelReadyFromComments(preInspection.comments)
737
+ ) {
738
+ const warning =
739
+ "GitHub checks inconclusive; proceeding because Vercel deployment comment reports Ready";
740
+ validationSummary = [validationSummary, warning].filter(Boolean).join("; ");
741
+ checkPolicy = {
742
+ decision: "allow",
743
+ classification: null,
744
+ reason: warning,
745
+ warnings: [warning],
746
+ };
747
+ }
748
+ if (checkPolicy.decision === "block") {
749
+ throw new MergeError(
750
+ checkPolicy.classification ?? "checks_failing",
751
+ checkPolicy.reason,
752
+ );
753
+ }
754
+ if (checkPolicy.warnings.length > 0) {
755
+ validationSummary = checkPolicy.warnings.join("; ");
756
+ }
757
+
758
+ changedFiles = preInspection.changedFiles.map((f) => f.path);
759
+ checkSummary = preInspection.checkSummary;
760
+ await writeFile(
761
+ getGithubPrBeforeMergePath(runDirectory),
762
+ `${JSON.stringify(preInspection, null, 2)}\n`,
763
+ "utf8",
764
+ );
765
+ if (preInspection.rawChecks) {
766
+ await writeFile(
767
+ getGithubChecksBeforeMergePath(runDirectory),
768
+ `${JSON.stringify({ check_runs: preInspection.rawChecks }, null, 2)}\n`,
769
+ "utf8",
770
+ );
771
+ }
772
+
773
+ if (preInspection.isDraft) {
774
+ preInspection = await ensurePullRequestReadyForMerge(
775
+ github,
776
+ parsedPr,
777
+ markerTargetRepo,
778
+ events,
779
+ prUrl,
780
+ preInspection,
781
+ );
782
+ }
783
+
784
+ preInspection = await inspectPullRequestForMerge(
785
+ github,
786
+ parsedPr,
787
+ markerTargetRepo,
788
+ );
789
+ assertPrBaseBranchMatches({
790
+ prUrl: preInspection.url,
791
+ actualBaseBranch: preInspection.baseBranch,
792
+ expectedBaseBranch: resolved.baseBranch,
793
+ });
794
+ try {
795
+ assertPullRequestMergeable({
796
+ prUrl: preInspection.url,
797
+ merged: preInspection.merged,
798
+ mergeable: preInspection.mergeable,
799
+ mergeableState: preInspection.mergeableState,
800
+ baseBranch: resolved.baseBranch,
801
+ });
802
+ } catch (error) {
803
+ if (
804
+ isIntegrationRepairEligible({
805
+ mergeable: preInspection.mergeable,
806
+ mergeableState: preInspection.mergeableState,
807
+ })
808
+ ) {
809
+ const repairFailureCount = countRepairFailuresForPr(
810
+ comments,
811
+ config.orchestratorMarker,
812
+ preInspection.url,
813
+ );
814
+ if (repairFailureCount >= MAX_REPAIR_FAILURES_PER_ISSUE) {
815
+ throw new MergeError(
816
+ "github_merge_failure",
817
+ `Integration repair has already failed ${repairFailureCount} time(s) for this PR. Manual recovery is required.`,
818
+ );
819
+ }
820
+ const repair = await attemptIntegrationRepair({
821
+ github,
822
+ linearClient: client,
823
+ issue,
824
+ config,
825
+ parsedIssue: parsed,
826
+ resolved,
827
+ parsedPr,
828
+ markerTargetRepo,
829
+ runId,
830
+ runDirectory,
831
+ events,
832
+ model: manifestModelEvidence(config, "builder").model,
833
+ initialInspection: preInspection,
834
+ cursorApiKey: process.env.CURSOR_API_KEY,
835
+ });
836
+ preInspection = repair.inspection;
837
+ if (repair.agentEvidence) {
838
+ manifestModel = repair.agentEvidence.model;
839
+ manifestModelRole = repair.agentEvidence.modelRole;
840
+ manifestModelParams = repair.agentEvidence.modelParams;
841
+ repairCursorAgentId = repair.agentEvidence.cursorAgentId;
842
+ repairCursorRunId = repair.agentEvidence.cursorRunId;
843
+ footerModel = repair.agentEvidence.model;
844
+ }
845
+ changedFiles = preInspection.changedFiles.map((f) => f.path);
846
+ checkSummary = preInspection.checkSummary;
847
+ validationSummary = [validationSummary, repair.validationSummary]
848
+ .filter(Boolean)
849
+ .join("; ");
850
+ try {
851
+ assertPullRequestMergeable({
852
+ prUrl: preInspection.url,
853
+ merged: preInspection.merged,
854
+ mergeable: preInspection.mergeable,
855
+ mergeableState: preInspection.mergeableState,
856
+ baseBranch: resolved.baseBranch,
857
+ });
858
+ } catch (postRepairError) {
859
+ throw new MergeError(
860
+ "github_merge_failure",
861
+ postRepairError instanceof Error
862
+ ? postRepairError.message
863
+ : String(postRepairError),
864
+ );
865
+ }
866
+ } else {
867
+ throw new MergeError(
868
+ "github_merge_failure",
869
+ error instanceof Error ? error.message : String(error),
870
+ );
871
+ }
872
+ }
873
+
874
+ await events.log("github_merge_requested", "info", {
875
+ prUrl,
876
+ mergeMethod,
877
+ });
878
+
879
+ try {
880
+ const mergeResult = await github.mergePullRequest(
881
+ parsedPr.owner,
882
+ parsedPr.repo,
883
+ parsedPr.pullNumber,
884
+ { mergeMethod: mergeMethod as "squash", commitTitle: preInspection.title },
885
+ );
886
+ mergeCommitSha = mergeResult.sha;
887
+ prMerged = mergeResult.merged;
888
+ await writeFile(
889
+ getGithubMergeResultPath(runDirectory),
890
+ `${JSON.stringify(mergeResult, null, 2)}\n`,
891
+ "utf8",
892
+ );
893
+ await events.log("github_merge_completed", "info", {
894
+ mergeCommitSha,
895
+ merged: prMerged,
896
+ });
897
+ } catch (error) {
898
+ if (isAlreadyMergedError(error)) {
899
+ prMerged = true;
900
+ } else {
901
+ const classification = classifyMergeError(error);
902
+ throw new MergeError(
903
+ classification,
904
+ error instanceof Error ? error.message : String(error),
905
+ );
906
+ }
907
+ }
908
+ } else {
909
+ mergeCommitSha = preInspection.mergeCommitSha;
910
+ mergedAt = preInspection.mergedAt;
911
+ }
912
+
913
+ let postInspection;
914
+ try {
915
+ postInspection = await inspectPullRequestPostMerge(
916
+ github,
917
+ parsedPr,
918
+ markerTargetRepo,
919
+ );
920
+ } catch {
921
+ postInspection = preInspection;
922
+ }
923
+
924
+ mergeCommitSha = postInspection.mergeCommitSha ?? mergeCommitSha;
925
+ mergedAt = postInspection.mergedAt ?? mergedAt;
926
+ if (!changedFiles?.length) {
927
+ changedFiles = postInspection.changedFiles.map((f) => f.path);
928
+ }
929
+
930
+ await writeFile(
931
+ getGithubPrAfterMergePath(runDirectory),
932
+ `${JSON.stringify(postInspection, null, 2)}\n`,
933
+ "utf8",
934
+ );
935
+
936
+ if (enteredMerging && !postInspection.merged) {
937
+ throw new MergeError(
938
+ "github_merge_failure",
939
+ "Pull request was not merged after merge request",
940
+ );
941
+ }
942
+
943
+ const mergedToProduction = resolved.baseBranch === resolved.productionBranch;
944
+ const productionReference = getProductionUrlReference(
945
+ config,
946
+ resolved.repoConfigId,
947
+ );
948
+
949
+ if (mergedToProduction) {
950
+ if (shouldCaptureApplicationPreview(resolved.previewProvider)) {
951
+ const deploymentPollTimeout =
952
+ config.merge?.deploymentPollTimeoutSeconds ??
953
+ DEFAULT_MERGE_DEPLOYMENT_POLL_TIMEOUT_SECONDS;
954
+ const deploymentPollInterval =
955
+ config.merge?.deploymentPollIntervalSeconds ??
956
+ DEFAULT_MERGE_DEPLOYMENT_POLL_INTERVAL_SECONDS;
957
+
958
+ await events.log("deployment_poll_started", "info", {
959
+ pollTimeoutSeconds: deploymentPollTimeout,
960
+ mergedToProduction: true,
961
+ });
962
+
963
+ const deploymentResult = await pollForProductionDeployment(
964
+ async () => {
965
+ const latest = await inspectPullRequestPostMerge(
966
+ github,
967
+ parsedPr,
968
+ markerTargetRepo,
969
+ ).catch(() => postInspection);
970
+ return {
971
+ comments: latest.comments,
972
+ checks: latest.checks,
973
+ };
974
+ },
975
+ {
976
+ pollTimeoutSeconds: deploymentPollTimeout,
977
+ pollIntervalSeconds: deploymentPollInterval,
978
+ productionUrlReference: productionReference,
979
+ },
980
+ );
981
+
982
+ deploymentUrl = deploymentResult.deploymentUrl;
983
+ await mkdir(`${runDirectory}/vercel`, { recursive: true });
984
+ await writeFile(
985
+ getProductionDeploymentPath(runDirectory),
986
+ `${JSON.stringify(deploymentResult, null, 2)}\n`,
987
+ "utf8",
988
+ );
989
+
990
+ const deploymentRequired =
991
+ config.merge?.deploymentRequiredForSuccess ??
992
+ DEFAULT_MERGE_DEPLOYMENT_REQUIRED;
993
+
994
+ let deploymentWarning: string | null = null;
995
+ if (!deploymentUrl) {
996
+ deploymentWarning =
997
+ deploymentResult.warnings.join("; ") ||
998
+ "Production deployment URL not captured";
999
+ await events.log("deployment_not_found", "warn", {
1000
+ warnings: deploymentResult.warnings,
1001
+ });
1002
+ if (deploymentRequired) {
1003
+ throw new MergeError("deployment_not_found", deploymentWarning);
1004
+ }
1005
+ validationSummary = [validationSummary, deploymentWarning]
1006
+ .filter(Boolean)
1007
+ .join("; ");
1008
+ } else {
1009
+ await events.log("deployment_captured", "info", {
1010
+ deploymentUrl,
1011
+ source: deploymentResult.source,
1012
+ });
1013
+ }
1014
+ } else {
1015
+ await events.log("deployment_poll_skipped", "info", {
1016
+ reason: "application_preview_not_configured",
1017
+ previewProvider: resolved.previewProvider,
1018
+ baseBranch: resolved.baseBranch,
1019
+ productionBranch: resolved.productionBranch,
1020
+ });
1021
+ }
1022
+ } else {
1023
+ await events.log("deployment_poll_skipped", "info", {
1024
+ reason: "integration_merge",
1025
+ baseBranch: resolved.baseBranch,
1026
+ productionBranch: resolved.productionBranch,
1027
+ });
1028
+ }
1029
+
1030
+ const previewLinks = resolvePreviewLinks({
1031
+ prPreviewUrl: previewUrl,
1032
+ integrationPreviewUrl: resolved.integrationPreviewUrl,
1033
+ productionUrl: productionReference,
1034
+ capturedDeploymentUrl: deploymentUrl,
1035
+ mergedBaseBranch: postInspection.baseBranch,
1036
+ productionBranch: resolved.productionBranch,
1037
+ });
1038
+
1039
+ const mergeBody = buildMergeCompletionCommentBody({
1040
+ prUrl: postInspection.url,
1041
+ branch: postInspection.branch,
1042
+ targetRepo: markerTargetRepo,
1043
+ mergeMethod: mergeMethod ?? DEFAULT_MERGE_METHOD,
1044
+ mergeCommitSha,
1045
+ mergedAt,
1046
+ baseBranch: postInspection.baseBranch,
1047
+ productionBranch: resolved.productionBranch,
1048
+ previewLinks,
1049
+ deploymentWarning: validationSummary,
1050
+ changedFiles: changedFiles ?? [],
1051
+ checkSummary: checkSummary ?? postInspection.checkSummary,
1052
+ finalIssueStatus: mergeSuccessStatus,
1053
+ harnessRunId: runId,
1054
+ previousHandoffRunId,
1055
+ previousRevisionRunId,
1056
+ });
1057
+
1058
+ const mergeFooter = {
1059
+ ...footerBase,
1060
+ model: footerModel,
1061
+ issueKey: options.issueKey,
1062
+ productionBranch: resolved.productionBranch,
1063
+ integrationSuccessStatus:
1064
+ resolved.integrationSuccessStatus ??
1065
+ getTransitionalStatus(config, "mergedToDev"),
1066
+ branch: branch ?? undefined,
1067
+ prUrl: prUrl ?? undefined,
1068
+ prNumber: prUrl ? (parsePrNumberFromUrl(prUrl) ?? undefined) : undefined,
1069
+ previewUrl: previewUrl ?? undefined,
1070
+ previousHandoffRunId: previousHandoffRunId ?? undefined,
1071
+ previousRevisionRunId: previousRevisionRunId ?? undefined,
1072
+ pmFeedbackCommentId: sourceMarkers.pmFeedbackCommentId ?? undefined,
1073
+ mergeCommitSha: mergeCommitSha ?? undefined,
1074
+ deploymentUrl: deploymentUrl ?? undefined,
1075
+ };
1076
+
1077
+ if (!enteredMerging && !isRecovery) {
1078
+ await transitionIssueStatus(client, issue, mergingStatus);
1079
+ enteredMerging = true;
1080
+ linearStatusAfter = mergingStatus;
1081
+ }
1082
+
1083
+ linearStatusAfter = await postCompletionAndTransition(
1084
+ client,
1085
+ issue,
1086
+ mergeBody,
1087
+ mergeFooter,
1088
+ mergeSuccessStatus,
1089
+ events,
1090
+ linearStatusBefore,
1091
+ );
1092
+
1093
+ await writeFile(getMergeCompletionCommentPath(runDirectory), `${mergeBody}\n`, "utf8");
1094
+ commentsWritten.push(mergeBody);
1095
+
1096
+ const afterIssue = await fetchLinearIssue(options.issueKey, linearApiKey);
1097
+ await writeFile(
1098
+ getIssueSnapshotAfterPath(runDirectory),
1099
+ `${JSON.stringify(afterIssue, null, 2)}\n`,
1100
+ "utf8",
1101
+ );
1102
+
1103
+ if (commentsWritten.length > 0) {
1104
+ await writeCommentsArtifact(runDirectory, commentsWritten);
1105
+ }
1106
+
1107
+ if (issue.projectId && resolved.baseBranch !== resolved.productionBranch) {
1108
+ const associationGate = runLinearAssociationGate({
1109
+ config,
1110
+ teamId: issue.teamId,
1111
+ projectId: issue.projectId,
1112
+ });
1113
+ if (!associationGate.ok) {
1114
+ await events.log("project_metadata_sync", "info", {
1115
+ updated: false,
1116
+ skippedReason: associationGate.code,
1117
+ });
1118
+ } else {
1119
+ const project = await getLinearProject(client, issue.projectId);
1120
+ if (project) {
1121
+ const metadataSync = await syncProjectHarnessMetadataAfterFoundationMerge({
1122
+ linearClient: client,
1123
+ projectId: issue.projectId,
1124
+ currentDescription: project.description,
1125
+ targetRepo: resolved.targetRepo,
1126
+ developmentBranch: resolved.baseBranch,
1127
+ github,
1128
+ orchestratorMarker: config.orchestratorMarker,
1129
+ mergeRunId: runId,
1130
+ comments,
1131
+ });
1132
+ await events.log("project_metadata_sync", "info", {
1133
+ updated: metadataSync.updated,
1134
+ skippedReason: metadataSync.skippedReason,
1135
+ initializationState: metadataSync.productInitialization?.state,
1136
+ });
1137
+ if (metadataSync.updated) {
1138
+ const syncComment = [
1139
+ "Harness updated Linear project metadata to `Product initialization: initialized` after foundation merge.",
1140
+ "",
1141
+ "<!--",
1142
+ config.orchestratorMarker,
1143
+ "phase: project_metadata_initialized_sync",
1144
+ `run_id: ${runId}`,
1145
+ `target_repo: ${resolved.targetRepo}`,
1146
+ "-->",
1147
+ ].join("\n");
1148
+ await postIssueComment(client, issue.id, syncComment);
1149
+ }
1150
+ }
1151
+ }
1152
+ }
1153
+
1154
+ finalOutcome = "success";
1155
+ errorClassification = null;
1156
+ } catch (error) {
1157
+ if (error instanceof MergeError) {
1158
+ errorClassification = error.classification;
1159
+ } else {
1160
+ errorClassification = "linear_write_failure";
1161
+ }
1162
+
1163
+ const message = error instanceof Error ? error.message : String(error);
1164
+ await writeErrorArtifact(runDirectory, message, errorClassification);
1165
+
1166
+ const mergeFooter = {
1167
+ ...footerBase,
1168
+ model: footerModel,
1169
+ branch: branch ?? undefined,
1170
+ prUrl: prUrl ?? undefined,
1171
+ previewUrl: previewUrl ?? undefined,
1172
+ previousHandoffRunId: previousHandoffRunId ?? undefined,
1173
+ previousRevisionRunId: previousRevisionRunId ?? undefined,
1174
+ mergeCommitSha: mergeCommitSha ?? undefined,
1175
+ deploymentUrl: deploymentUrl ?? undefined,
1176
+ };
1177
+
1178
+ if (prMerged && errorClassification === "linear_write_failure") {
1179
+ const previewLinks = resolvePreviewLinks({
1180
+ prPreviewUrl: previewUrl,
1181
+ integrationPreviewUrl: resolved.integrationPreviewUrl,
1182
+ productionUrl: getProductionUrlReference(config, resolved.repoConfigId),
1183
+ capturedDeploymentUrl: deploymentUrl,
1184
+ mergedBaseBranch: resolved.baseBranch,
1185
+ productionBranch: resolved.productionBranch,
1186
+ });
1187
+ const mergeBody = buildMergeCompletionCommentBody({
1188
+ prUrl: prUrl ?? "unknown",
1189
+ branch: branch ?? "unknown",
1190
+ targetRepo: resolved.targetRepo,
1191
+ mergeMethod: mergeMethod ?? DEFAULT_MERGE_METHOD,
1192
+ mergeCommitSha,
1193
+ mergedAt,
1194
+ baseBranch: resolved.baseBranch,
1195
+ productionBranch: resolved.productionBranch,
1196
+ previewLinks,
1197
+ deploymentWarning: validationSummary,
1198
+ changedFiles: changedFiles ?? [],
1199
+ checkSummary: checkSummary ?? "n/a",
1200
+ finalIssueStatus: mergeSuccessStatus,
1201
+ harnessRunId: runId,
1202
+ previousHandoffRunId,
1203
+ previousRevisionRunId,
1204
+ });
1205
+
1206
+ await writeMergeRecoveryArtifact(runDirectory, {
1207
+ prUrl,
1208
+ merged: true,
1209
+ mergeCommitSha,
1210
+ intendedLinearStatus: mergeSuccessStatus,
1211
+ intendedCommentBody: mergeBody,
1212
+ mergeRunId: runId,
1213
+ error: message,
1214
+ });
1215
+ await events.log("merge_recovery_written", "warn", { prUrl, mergeCommitSha });
1216
+ linearStatusAfter = mergingStatus;
1217
+ } else if (enteredMerging) {
1218
+ try {
1219
+ await postErrorComment(client, issue.id, message, mergeFooter, "merge");
1220
+ const blocked = getTransitionalStatus(config, "blocked");
1221
+ await transitionIssueStatus(client, issue, blocked);
1222
+ linearStatusAfter = blocked;
1223
+ await events.log("linear_status_changed", "info", {
1224
+ to: blocked,
1225
+ reason: "failure",
1226
+ });
1227
+ } catch {
1228
+ // Best-effort blocker update.
1229
+ }
1230
+ }
1231
+ }
1232
+
1233
+ const manifest: RunManifest = {
1234
+ runId,
1235
+ issueKey: options.issueKey,
1236
+ phase: "merge",
1237
+ phaseInferredFromStatus,
1238
+ linearStatusBefore,
1239
+ linearStatusAfter,
1240
+ targetRepo: resolved.targetRepo,
1241
+ baseBranch: resolved.baseBranch,
1242
+ resolutionSource: resolved.resolutionSource,
1243
+ dryRun: false,
1244
+ finalOutcome,
1245
+ errorClassification,
1246
+ startedAt: startedAt.toISOString(),
1247
+ finishedAt: new Date().toISOString(),
1248
+ milestone: MILESTONE,
1249
+ promptVersion: MERGE_PROMPT_VERSION,
1250
+ cursorAgentId: repairCursorAgentId,
1251
+ cursorRunId: repairCursorRunId,
1252
+ branch,
1253
+ prUrl,
1254
+ previewUrl,
1255
+ validationSummary,
1256
+ changedFiles,
1257
+ checkSummary,
1258
+ previousImplementationRunId: null,
1259
+ previousHandoffRunId,
1260
+ pmFeedbackCommentId: null,
1261
+ previousRevisionRunId,
1262
+ mergeCommitSha,
1263
+ mergeMethod,
1264
+ mergedAt,
1265
+ deploymentUrl,
1266
+ model: manifestModel,
1267
+ modelRole: manifestModelRole,
1268
+ modelParams: manifestModelParams,
1269
+ };
1270
+
1271
+ return writeFinalManifest(
1272
+ manifest,
1273
+ runDirectory,
1274
+ parsed,
1275
+ resolved,
1276
+ events,
1277
+ finalOutcome,
1278
+ errorClassification,
1279
+ );
1280
+ }