@ai-development-environment/server 0.0.28 → 0.0.29

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 (243) hide show
  1. package/package.json +1 -1
  2. package/prisma-runtime/prisma/migrations/20260718220000_add_build_freshness/migration.sql +1 -0
  3. package/prisma-runtime/prisma/schema.prisma +1 -0
  4. package/standalone/.next/BUILD_ID +1 -1
  5. package/standalone/.next/build-manifest.json +3 -3
  6. package/standalone/.next/prerender-manifest.json +3 -3
  7. package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
  8. package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
  9. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  22. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  23. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  24. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  25. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  26. package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
  27. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  28. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  29. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  30. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  31. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  32. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  33. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  34. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  35. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  36. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  37. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  38. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  39. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  40. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  41. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  42. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  43. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  44. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  45. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  46. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  47. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  48. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  49. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  50. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  51. package/standalone/.next/server/app/_global-error.html +1 -1
  52. package/standalone/.next/server/app/_global-error.rsc +1 -1
  53. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  54. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  55. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  56. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  57. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  58. package/standalone/.next/server/app/_not-found.html +1 -1
  59. package/standalone/.next/server/app/_not-found.rsc +1 -1
  60. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  61. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  62. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  63. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  64. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  65. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  66. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +2 -2
  67. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
  68. package/standalone/.next/server/app/api/builds/[buildId]/artifacts/[artifactId]/route.js +2 -2
  69. package/standalone/.next/server/app/api/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
  70. package/standalone/.next/server/app/api/codebases/by-path/route.js +2 -2
  71. package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
  72. package/standalone/.next/server/app/api/codebases/route.js +2 -2
  73. package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
  74. package/standalone/.next/server/app/api/graphql/route.js +2 -2
  75. package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
  76. package/standalone/.next/server/app/api/mcp/route.js +2 -2
  77. package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
  78. package/standalone/.next/server/app/api/tools/call/route.js +2 -2
  79. package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
  80. package/standalone/.next/server/app/api/tools/catalog/route.js +2 -2
  81. package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
  82. package/standalone/.next/server/chunks/{[root-of-the-server]__1iv83x0._.js → [root-of-the-server]__0-ypkf7._.js} +1 -1
  83. package/standalone/.next/server/chunks/{[root-of-the-server]__08w_8a-._.js → [root-of-the-server]__00ku6-v._.js} +1 -1
  84. package/standalone/.next/server/chunks/{[root-of-the-server]__0yfvw4a._.js → [root-of-the-server]__0138gz-._.js} +1 -1
  85. package/standalone/.next/server/chunks/{[root-of-the-server]__0r5s0h6._.js → [root-of-the-server]__02vqwey._.js} +2 -2
  86. package/standalone/.next/server/chunks/{[root-of-the-server]__098f8w4._.js → [root-of-the-server]__056cnsc._.js} +1 -1
  87. package/standalone/.next/server/chunks/{[root-of-the-server]__1l6ed2g._.js → [root-of-the-server]__08mfybr._.js} +2 -2
  88. package/standalone/.next/server/chunks/{[root-of-the-server]__0cs2bfc._.js → [root-of-the-server]__08u874i._.js} +1 -1
  89. package/standalone/.next/server/chunks/{[root-of-the-server]__01h2pl1._.js → [root-of-the-server]__09skp6r._.js} +1 -1
  90. package/standalone/.next/server/chunks/{[root-of-the-server]__14-aq4c._.js → [root-of-the-server]__0cyubup._.js} +1 -1
  91. package/standalone/.next/server/chunks/{[root-of-the-server]__0_l5rqe._.js → [root-of-the-server]__0da1wsf._.js} +1 -1
  92. package/standalone/.next/server/chunks/{[root-of-the-server]__1mgcft0._.js → [root-of-the-server]__0e1fqyr._.js} +1 -1
  93. package/standalone/.next/server/chunks/{[root-of-the-server]__1frrx8s._.js → [root-of-the-server]__0f3ptor._.js} +2 -2
  94. package/standalone/.next/server/chunks/{[root-of-the-server]__0k01mi-._.js → [root-of-the-server]__0fih0li._.js} +1 -1
  95. package/standalone/.next/server/chunks/{[root-of-the-server]__02qjyhj._.js → [root-of-the-server]__0g0tnct._.js} +1 -1
  96. package/standalone/.next/server/chunks/{[root-of-the-server]__1ehdq4c._.js → [root-of-the-server]__0gbor-2._.js} +1 -1
  97. package/standalone/.next/server/chunks/{[root-of-the-server]__09lyzw2._.js → [root-of-the-server]__0mj6qcr._.js} +2 -2
  98. package/standalone/.next/server/chunks/{[root-of-the-server]__14uwobw._.js → [root-of-the-server]__0p_h088._.js} +1 -1
  99. package/standalone/.next/server/chunks/{[root-of-the-server]__0i4bd9d._.js → [root-of-the-server]__0vvjqp5._.js} +1 -1
  100. package/standalone/.next/server/chunks/{[root-of-the-server]__04rx7b9._.js → [root-of-the-server]__0w20bq-._.js} +2 -2
  101. package/standalone/.next/server/chunks/{[root-of-the-server]__0hmrx3m._.js → [root-of-the-server]__0wf0pka._.js} +1 -1
  102. package/standalone/.next/server/chunks/{[root-of-the-server]__0nxj1ky._.js → [root-of-the-server]__0wg2umj._.js} +1 -1
  103. package/standalone/.next/server/chunks/{[root-of-the-server]__17bgip6._.js → [root-of-the-server]__0xa_els._.js} +1 -1
  104. package/standalone/.next/server/chunks/{[root-of-the-server]__0wx4-1l._.js → [root-of-the-server]__0xukz2x._.js} +2 -2
  105. package/standalone/.next/server/chunks/[root-of-the-server]__1-z6lg_._.js +3 -0
  106. package/standalone/.next/server/chunks/{[root-of-the-server]__020ggc3._.js → [root-of-the-server]__15aat79._.js} +1 -1
  107. package/standalone/.next/server/chunks/{[root-of-the-server]__00_-x1w._.js → [root-of-the-server]__15bbm2q._.js} +2 -2
  108. package/standalone/.next/server/chunks/{[root-of-the-server]__09c7zmy._.js → [root-of-the-server]__16l4wed._.js} +1 -1
  109. package/standalone/.next/server/chunks/{[root-of-the-server]__04hrhu3._.js → [root-of-the-server]__19zwwdv._.js} +1 -1
  110. package/standalone/.next/server/chunks/{[root-of-the-server]__0d4_f1e._.js → [root-of-the-server]__1a5_am-._.js} +1 -1
  111. package/standalone/.next/server/chunks/{[root-of-the-server]__0kxltc8._.js → [root-of-the-server]__1ajaiy1._.js} +1 -1
  112. package/standalone/.next/server/chunks/[root-of-the-server]__1dtlzq1._.js +3 -0
  113. package/standalone/.next/server/chunks/[root-of-the-server]__1kpqohm._.js +3 -0
  114. package/standalone/.next/server/chunks/[root-of-the-server]__1l7234r._.js +3 -0
  115. package/standalone/.next/server/chunks/{[root-of-the-server]__0qjhcow._.js → [root-of-the-server]__1oahp4o._.js} +2 -2
  116. package/standalone/.next/server/chunks/[root-of-the-server]__1vip3sa._.js +3 -0
  117. package/standalone/.next/server/chunks/{[root-of-the-server]__0cryh-d._.js → [root-of-the-server]__1wtng3p._.js} +1 -1
  118. package/standalone/.next/server/chunks/[root-of-the-server]__1wu654b._.js +3 -0
  119. package/standalone/.next/server/chunks/[root-of-the-server]__1x2nph5._.js +3 -0
  120. package/standalone/.next/server/chunks/[root-of-the-server]__1xk-0be._.js +3 -0
  121. package/standalone/.next/server/chunks/{[root-of-the-server]__0h0mvv8._.js → [root-of-the-server]__210dhdj._.js} +1 -1
  122. package/standalone/.next/server/chunks/_0exkna-._.js +29 -8
  123. package/standalone/.next/server/chunks/{_0bru086._.js → _0jurkow._.js} +26 -26
  124. package/standalone/.next/server/chunks/{_00mzn-u._.js → _0rx5rfm._.js} +27 -27
  125. package/standalone/.next/server/chunks/_0tufgj0._.js +68 -47
  126. package/standalone/.next/server/chunks/_0w2eghf._.js +29 -8
  127. package/standalone/.next/server/chunks/_152rnkf._.js +3 -3
  128. package/standalone/.next/server/chunks/{_1_g2i-t._.js → _16x77b_._.js} +27 -27
  129. package/standalone/.next/server/chunks/_1dbqy8c._.js +3 -3
  130. package/standalone/.next/server/chunks/_1vrixpc._.js +3 -3
  131. package/standalone/.next/server/chunks/_1yfz-9u._.js +3 -3
  132. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1osx7qy._.js → [root-of-the-server]__0361lgt._.js} +8 -2
  133. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ay4_3d._.js +37 -0
  134. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0dm8osz._.js +3 -0
  135. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0oj1os4._.js → [root-of-the-server]__1xv798-._.js} +2 -2
  136. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1z955gh._.js +3 -0
  137. package/standalone/.next/server/chunks/ssr/_00ye62k._.js +35 -0
  138. package/standalone/.next/server/chunks/ssr/_07tglcd._.js +35 -0
  139. package/standalone/.next/server/chunks/ssr/_0bvpmhm._.js +29 -25
  140. package/standalone/.next/server/chunks/ssr/{_0hoc_fd._.js → _0ddgabq._.js} +2 -2
  141. package/standalone/.next/server/chunks/ssr/{_1x13g5y._.js → _0eb36qa._.js} +2 -2
  142. package/standalone/.next/server/chunks/ssr/{_1dnm1d4._.js → _0mr9u9p._.js} +2 -2
  143. package/standalone/.next/server/chunks/ssr/_0nm6upn._.js +3 -0
  144. package/standalone/.next/server/chunks/ssr/_0quhjav._.js +3 -0
  145. package/standalone/.next/server/chunks/ssr/_0w05v7m._.js +3 -0
  146. package/standalone/.next/server/chunks/ssr/_0xozjkz._.js +3 -0
  147. package/standalone/.next/server/chunks/ssr/_0xrpdyy._.js +3 -0
  148. package/standalone/.next/server/chunks/ssr/_1-2qcpf._.js +3 -0
  149. package/standalone/.next/server/chunks/ssr/{_1vhf014._.js → _1-grolz._.js} +2 -2
  150. package/standalone/.next/server/chunks/ssr/_12ws_f2._.js +11 -0
  151. package/standalone/.next/server/chunks/ssr/_17p59oz._.js +3 -0
  152. package/standalone/.next/server/chunks/ssr/_19fwji0._.js +11 -0
  153. package/standalone/.next/server/chunks/ssr/_1_1j9nd._.js +13 -0
  154. package/standalone/.next/server/chunks/ssr/_1g3i459._.js +15 -0
  155. package/standalone/.next/server/chunks/ssr/{_1oh35yj._.js → _1g_aflc._.js} +2 -2
  156. package/standalone/.next/server/chunks/ssr/{_1dsdn7w._.js → _1lcwubl._.js} +2 -2
  157. package/standalone/.next/server/chunks/ssr/{_0sp1ojg._.js → _1r2rmfp._.js} +8 -2
  158. package/standalone/.next/server/chunks/ssr/_1za3z6k._.js +28 -24
  159. package/standalone/.next/server/chunks/ssr/{_13jl9nw._.js → _1zyjq9y._.js} +2 -2
  160. package/standalone/.next/server/chunks/ssr/_20ufqtr._.js +3 -0
  161. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  162. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  163. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  164. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  165. package/standalone/.next/server/chunks/ssr/src_components_agents_agent-detail_tsx_0lfa4ui._.js +2 -2
  166. package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +9 -13
  167. package/standalone/.next/server/chunks/ssr/src_components_builds_builds-page_tsx_17qzmsl._.js +8 -12
  168. package/standalone/.next/server/chunks/ssr/src_components_github_actions-page_tsx_18434xt._.js +5 -5
  169. package/standalone/.next/server/chunks/ssr/src_components_github_pull-requests-page_tsx_1il3ga-._.js +12 -12
  170. package/standalone/.next/server/chunks/ssr/src_components_tools_tools-page_tsx_0k1jqcz._.js +2 -2
  171. package/standalone/.next/server/chunks/ssr/src_components_worktrees_worktree-detail-page_tsx_1oexgu_._.js +13 -4
  172. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  173. package/standalone/.next/server/pages/404.html +1 -1
  174. package/standalone/.next/server/pages/500.html +1 -1
  175. package/standalone/.next/server/server-reference-manifest.js +1 -1
  176. package/standalone/.next/server/server-reference-manifest.json +1 -1
  177. package/standalone/.next/static/chunks/{0sp_r-c6262te.js → 0newuocvg03xy.js} +1 -1
  178. package/standalone/.next/static/chunks/{3oyhf7rk2xr_g.js → 0rlomhlt6030e.js} +1 -1
  179. package/standalone/.next/static/chunks/16tfdsma_h0r5.js +33 -0
  180. package/standalone/.next/static/chunks/{1xjd6ye7mxyf5.js → 1802j8gq2g47d.js} +2 -2
  181. package/standalone/.next/static/chunks/1_tnhhn4f122y.js +9 -0
  182. package/standalone/.next/static/chunks/1eny65xy2ho48.js +1 -0
  183. package/standalone/.next/static/chunks/1l4bkigul15i3.js +25 -0
  184. package/standalone/.next/static/chunks/{3td_-1s61zkpa.js → 1nnp0crt0mi_-.js} +1 -1
  185. package/standalone/.next/static/chunks/1qd6cse_d9ae1.js +99 -0
  186. package/standalone/.next/static/chunks/{2dwchs_6y_o5f.js → 2-mxmazwsh-wz.js} +1 -1
  187. package/standalone/.next/static/chunks/2fzwgr2iq_783.css +1 -0
  188. package/standalone/.next/static/chunks/{278dxvyf095b_.js → 2jbygfc0lzu0t.js} +7 -7
  189. package/standalone/.next/static/chunks/2n7u72nxziv_5.js +7 -0
  190. package/standalone/.next/static/chunks/{1rivge68m21sm.js → 2rjf8o4g23no8.js} +10 -10
  191. package/standalone/.next/static/chunks/{42flok13o-l0b.js → 2x8qovg070057.js} +1 -1
  192. package/standalone/.next/static/chunks/{091l-ij_cv0b6.js → 3-u7pvogc5_bx.js} +12 -12
  193. package/standalone/.next/static/chunks/3-zh9b0tcttiw.js +33 -0
  194. package/standalone/.next/static/chunks/31wyih3wwkeid.js +1 -0
  195. package/standalone/.next/static/chunks/{1nqkxeuycfmrt.js → 36_1bjzx79v18.js} +5 -5
  196. package/standalone/.next/static/chunks/3ajj69p_sj615.js +1 -0
  197. package/standalone/.next/static/chunks/3jd8_7lna-j_x.js +40 -0
  198. package/standalone/.next/static/chunks/3jv2gnnn4vx-j.js +43 -0
  199. package/standalone/.next/static/chunks/3k0oakdayt9yt.js +40 -0
  200. package/standalone/.next/static/chunks/3pgngh8lg3be3.js +99 -0
  201. package/standalone/.next/static/chunks/{0w8rd_g6hnvmz.js → 4013cp3x6bvuw.js} +1 -1
  202. package/standalone/src/services/builds/build-freshness.test.ts +107 -0
  203. package/standalone/src/services/builds/build-freshness.ts +73 -0
  204. package/standalone/src/services/builds/builds.service.test.ts +167 -8
  205. package/standalone/src/services/builds/builds.service.ts +115 -3
  206. package/standalone/.next/server/chunks/[root-of-the-server]__1878s0b._.js +0 -3
  207. package/standalone/.next/server/chunks/[root-of-the-server]__18zrtty._.js +0 -3
  208. package/standalone/.next/server/chunks/[root-of-the-server]__1_xz_m2._.js +0 -3
  209. package/standalone/.next/server/chunks/[root-of-the-server]__1mx1hqe._.js +0 -3
  210. package/standalone/.next/server/chunks/[root-of-the-server]__1sjjkyp._.js +0 -3
  211. package/standalone/.next/server/chunks/[root-of-the-server]__1vk9266._.js +0 -3
  212. package/standalone/.next/server/chunks/[root-of-the-server]__1yn6pds._.js +0 -3
  213. package/standalone/.next/server/chunks/[root-of-the-server]__1zwpjfo._.js +0 -3
  214. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03m5q8h._.js +0 -27
  215. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__06bk7ik._.js +0 -3
  216. package/standalone/.next/server/chunks/ssr/_09l5w5d._.js +0 -3
  217. package/standalone/.next/server/chunks/ssr/_0_726fj._.js +0 -3
  218. package/standalone/.next/server/chunks/ssr/_0a1zku5._.js +0 -3
  219. package/standalone/.next/server/chunks/ssr/_0pu14lm._.js +0 -3
  220. package/standalone/.next/server/chunks/ssr/_1eol9we._.js +0 -3
  221. package/standalone/.next/server/chunks/ssr/_1h3t5g1._.js +0 -3
  222. package/standalone/.next/server/chunks/ssr/_1kemhyd._.js +0 -39
  223. package/standalone/.next/server/chunks/ssr/_1kmkrz5._.js +0 -3
  224. package/standalone/.next/server/chunks/ssr/_1r9ohdr._.js +0 -3
  225. package/standalone/.next/server/chunks/ssr/_1yzb5-u._.js +0 -11
  226. package/standalone/.next/server/chunks/ssr/src_components_0wvh73y._.js +0 -11
  227. package/standalone/.next/server/chunks/ssr/src_components_github_167_ydi._.js +0 -35
  228. package/standalone/.next/static/chunks/00dx8gu-2oyqe.js +0 -45
  229. package/standalone/.next/static/chunks/0j5n6p9i-vyzo.js +0 -9
  230. package/standalone/.next/static/chunks/0weklluydd2mf.js +0 -23
  231. package/standalone/.next/static/chunks/1eehbcjby4go8.js +0 -95
  232. package/standalone/.next/static/chunks/23_75iur2dq8p.js +0 -1
  233. package/standalone/.next/static/chunks/2lgsgstcvc7uk.css +0 -1
  234. package/standalone/.next/static/chunks/32agjzrkphjrl.js +0 -9
  235. package/standalone/.next/static/chunks/399uxexoo8x7f.js +0 -33
  236. package/standalone/.next/static/chunks/39ecics7n8z5m.js +0 -1
  237. package/standalone/.next/static/chunks/3_kaby2qep1pd.js +0 -34
  238. package/standalone/.next/static/chunks/3q7vh58-5dkv2.js +0 -25
  239. package/standalone/.next/static/chunks/3xkoiasuwi3ms.js +0 -95
  240. package/standalone/.next/static/chunks/41s57pssydrel.js +0 -43
  241. /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → 8uBWJ8MOV-OEPe88M3PhU}/_buildManifest.js +0 -0
  242. /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → 8uBWJ8MOV-OEPe88M3PhU}/_clientMiddlewareManifest.js +0 -0
  243. /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → 8uBWJ8MOV-OEPe88M3PhU}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},630299,e=>{"use strict";let t=(0,e.i(456420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},784774,e=>{"use strict";var t=e.i(843476),s=e.i(975157);e.s(["Table",0,function({className:e,containerClassName:r,...a}){return(0,t.jsx)("div",{className:(0,s.cn)("w-full overflow-x-auto",r),children:(0,t.jsx)("table",{className:(0,s.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{className:(0,s.cn)("divide-y",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{className:(0,s.cn)("whitespace-nowrap px-3 py-3 align-middle",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{className:(0,s.cn)("border-t bg-muted/50 font-medium",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{className:(0,s.cn)("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium text-muted-foreground",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{className:(0,s.cn)("border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{className:(0,s.cn)("transition-colors hover:bg-muted/40",e),...r})}])},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},986253,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},940276,e=>{"use strict";e.s(["findWorktreeOverviewEntry",0,function(e,t){for(let s of e.agents)for(let e of s.codebases){let r=e.worktrees.find(e=>e.id===t);if(r)return{agentGroup:s,group:e,worktree:r}}return null},"shouldNavigateWorktreeSurface",0,function(e){if(e.defaultPrevented||0!==e.button)return!1;let t=e.target;return t instanceof Element&&!!e.currentTarget.contains(t)&&!t.closest("a,button,input,select,textarea,[role='button'],[role='link'],[role='menuitem'],[data-worktree-navigation-ignore]")},"worktreeDetailHref",0,function(e){return`/worktrees/${encodeURIComponent(e)}`}])},346194,113030,e=>{"use strict";var t=e.i(843476);let s=(0,e.i(456420).default)("git-merge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);e.s(["GitMerge",0,s],113030);var r=e.i(948148),a=e.i(271645),i=e.i(929592),l=e.i(519455),n=e.i(776639),d=e.i(793479),o=e.i(110204),c=e.i(967489),u=e.i(987968),m=e.i(624687),x=e.i(637611);let h="__github_account_default__";e.s(["MergePullRequestButton",0,function({pullRequest:e,onMerged:p,size:b="sm",variant:j="outline",open:g,onOpenChange:v,showTrigger:f=!0}){let y=(0,r.useTranslations)("pullRequests"),[w,N]=(0,a.useState)(!1),[C,R]=(0,a.useState)(null),[k,T]=(0,a.useState)(""),[S,E]=(0,a.useState)(""),[D,I]=(0,a.useState)(""),[H,P]=(0,a.useState)(h),[A,B]=(0,a.useState)(!1),[$,q]=(0,a.useState)(!1),[M,L]=(0,a.useState)(null),[U="",G=""]=e.repositoryNameWithOwner.split("/",2),O=g??w,z=e=>{e||(B(!1),R(null),L(null)),void 0===g&&N(e),v?.(e)};(0,a.useEffect)(()=>{if(!O)return;let t=!0,s=window.setTimeout(()=>{B(!0),R(null),L(null),(0,x.controlPlaneRequest)(`query GitHubPullRequestMergeOptions(
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},346194,113030,e=>{"use strict";var t=e.i(843476);let s=(0,e.i(456420).default)("git-merge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);e.s(["GitMerge",0,s],113030);var r=e.i(948148),a=e.i(271645),i=e.i(929592),l=e.i(519455),n=e.i(776639),d=e.i(793479),o=e.i(110204),c=e.i(967489),u=e.i(987968),m=e.i(624687),x=e.i(637611);let h="__github_account_default__";e.s(["MergePullRequestButton",0,function({pullRequest:e,onMerged:p,size:b="sm",variant:j="outline",open:g,onOpenChange:v,showTrigger:y=!0}){let f=(0,r.useTranslations)("pullRequests"),[w,N]=(0,a.useState)(!1),[R,C]=(0,a.useState)(null),[k,S]=(0,a.useState)(""),[T,E]=(0,a.useState)(""),[D,I]=(0,a.useState)(""),[P,A]=(0,a.useState)(h),[H,B]=(0,a.useState)(!1),[$,q]=(0,a.useState)(!1),[L,M]=(0,a.useState)(null),[U="",G=""]=e.repositoryNameWithOwner.split("/",2),O=g??w,z=e=>{e||(B(!1),C(null),M(null)),void 0===g&&N(e),v?.(e)};(0,a.useEffect)(()=>{if(!O)return;let t=!0,s=window.setTimeout(()=>{B(!0),C(null),M(null),(0,x.controlPlaneRequest)(`query GitHubPullRequestMergeOptions(
2
2
  $owner: String!
3
3
  $name: String!
4
4
  $number: Int!
@@ -16,17 +16,17 @@
16
16
  canMerge
17
17
  blockedReason
18
18
  }
19
- }`,{owner:U,name:G,number:e.number}).then(e=>{if(!t)return;let s=e.githubPullRequestMergeOptions;R(s),T(s.availableMethods[0]??""),E(s.defaultCommitHeadline),I(s.defaultCommitBody),P(s.defaultCommitEmail??h)}).catch(e=>{t&&L(e instanceof Error?e.message:String(e))}).finally(()=>{t&&B(!1)})},0);return()=>{t=!1,window.clearTimeout(s)}},[G,O,U,e.number]);let F=async()=>{if(k&&C?.canMerge&&S.trim()){q(!0),L(null);try{let t=await (0,x.controlPlaneRequest)(`mutation MergeGitHubPullRequest(
19
+ }`,{owner:U,name:G,number:e.number}).then(e=>{if(!t)return;let s=e.githubPullRequestMergeOptions;C(s),S(s.availableMethods[0]??""),E(s.defaultCommitHeadline),I(s.defaultCommitBody),A(s.defaultCommitEmail??h)}).catch(e=>{t&&M(e instanceof Error?e.message:String(e))}).finally(()=>{t&&B(!1)})},0);return()=>{t=!1,window.clearTimeout(s)}},[G,O,U,e.number]);let F=async()=>{if(k&&R?.canMerge&&T.trim()){q(!0),M(null);try{let t=await (0,x.controlPlaneRequest)(`mutation MergeGitHubPullRequest(
20
20
  $input: MergeGitHubPullRequestInput!
21
21
  ) {
22
22
  mergeGitHubPullRequest(input: $input) {
23
23
  id state url mergedAt
24
24
  }
25
- }`,{input:{owner:U,name:G,number:e.number,method:k,commitHeadline:S,commitBody:D,authorEmail:H===h?null:H}});z(!1),await p?.(t.mergeGitHubPullRequest)}catch(e){L(e instanceof Error?e.message:String(e))}finally{q(!1)}}},_=C?.blockedReason??null;return(0,t.jsxs)(t.Fragment,{children:[f&&(0,t.jsxs)(l.Button,{onClick:e=>{e.stopPropagation(),z(!0)},size:b,type:"button",variant:j,children:[(0,t.jsx)(s,{}),y("merge")]}),(0,t.jsx)(n.Dialog,{onOpenChange:e=>{$||z(e)},open:O,children:(0,t.jsxs)(n.DialogContent,{className:"sm:max-w-xl",children:[(0,t.jsxs)(n.DialogHeader,{children:[(0,t.jsx)(n.DialogTitle,{children:y("mergePullRequest")}),(0,t.jsx)(n.DialogDescription,{children:y("mergePullRequestDescription",{repository:e.repositoryNameWithOwner,number:e.number})})]}),!A&&(C||M)?(0,t.jsxs)("div",{className:"space-y-4",children:[(M||_)&&(0,t.jsx)(i.Alert,{variant:"destructive",children:(0,t.jsx)(i.AlertDescription,{children:M||_})}),C&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Label,{className:"mb-1.5 block",htmlFor:"merge-method",children:y("mergeType")}),(0,t.jsxs)(c.Select,{disabled:$||0===C.availableMethods.length,onValueChange:e=>T(e),value:k,children:[(0,t.jsx)(c.SelectTrigger,{id:"merge-method",children:(0,t.jsx)(c.SelectValue,{placeholder:y("selectMergeType")})}),(0,t.jsx)(c.SelectContent,{children:C.availableMethods.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:y(`mergeTypes.${e}`)},e))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-headline",children:y("commitMessage")}),(0,t.jsx)(d.Input,{disabled:$,id:"merge-commit-headline",onChange:e=>E(e.target.value),value:S})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-body",children:y("commitDescription")}),(0,t.jsx)(m.Textarea,{className:"min-h-28",disabled:$,id:"merge-commit-body",onChange:e=>I(e.target.value),value:D})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Label,{className:"mb-1.5 block",htmlFor:"merge-email",children:y("commitEmail")}),(0,t.jsxs)(c.Select,{disabled:$,onValueChange:P,value:H,children:[(0,t.jsx)(c.SelectTrigger,{id:"merge-email",children:(0,t.jsx)(c.SelectValue,{})}),(0,t.jsxs)(c.SelectContent,{children:[(0,t.jsx)(c.SelectItem,{value:h,children:y("githubDefaultEmail")}),C.commitEmails.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:e},e))]})]})]})]})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 py-6 text-sm text-muted-foreground",children:[(0,t.jsx)(u.Spinner,{})," ",y("loadingMergeOptions")]}),(0,t.jsxs)(n.DialogFooter,{children:[(0,t.jsx)(l.Button,{disabled:$,onClick:()=>z(!1),type:"button",variant:"outline",children:y("cancelMerge")}),(0,t.jsxs)(l.Button,{disabled:A||$||!C?.canMerge||!k||!S.trim(),onClick:()=>void F(),type:"button",children:[$?(0,t.jsx)(u.Spinner,{}):(0,t.jsx)(s,{}),$?y("merging"):y("mergePullRequest")]})]})]})})]})}],346194)},142833,e=>{"use strict";var t=e.i(843476),s=e.i(159888),r=e.i(689664),a=e.i(508734),i=e.i(772382),l=e.i(948148),n=e.i(271645),d=e.i(519455),o=e.i(462777),c=e.i(975157);function u({bodyHtml:e,className:s}){return(0,t.jsx)("div",{className:(0,c.cn)("prose prose-sm max-w-none break-words dark:prose-invert prose-a:text-primary prose-pre:overflow-x-auto [&_details>summary]:cursor-pointer",s),dangerouslySetInnerHTML:{__html:e}})}e.s(["GitHubMarkdownBlock",0,function({body:e,bodyHtml:m,emptyLabel:x,header:h,headerActions:p,headerClassName:b}){let j=(0,l.useTranslations)("githubComments"),[g,v]=(0,n.useState)("RENDERED"),[f,y]=(0,n.useState)("IDLE");(0,n.useEffect)(()=>{if("COPIED"!==f)return;let e=window.setTimeout(()=>y("IDLE"),2e3);return()=>window.clearTimeout(e)},[f]);let w=async()=>{try{await (0,o.copyText)(e),y("COPIED")}catch{y("FAILED")}};return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:(0,c.cn)("flex flex-wrap items-center justify-between gap-2",b),children:[(0,t.jsx)("div",{className:"min-w-0",children:h}),(e||p)&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[p,e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.Button,{onClick:()=>v(e=>"RENDERED"===e?"MARKDOWN":"RENDERED"),size:"xs",type:"button",variant:"outline",children:["RENDERED"===g?(0,t.jsx)(s.Braces,{}):(0,t.jsx)(i.Eye,{}),j("RENDERED"===g?"viewRaw":"viewRendered")]}),(0,t.jsxs)(d.Button,{"aria-label":j("copy"),onClick:()=>void w(),size:"xs",type:"button",variant:"outline",children:["COPIED"===f?(0,t.jsx)(r.Check,{}):(0,t.jsx)(a.Copy,{}),j("COPIED"===f?"copied":"copy")]})]})]})]}),"FAILED"===f&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:j("copyFailed")}),e?"MARKDOWN"===g?(0,t.jsx)("pre",{className:"rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e}):(0,t.jsx)(u,{bodyHtml:m}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:x})]})}])},730274,e=>{"use strict";let t=(0,e.i(456420).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],730274)},16781,e=>{"use strict";var t=e.i(843476),s=e.i(482022),r=e.i(730274),a=e.i(948148),i=e.i(271645),l=e.i(142833),n=e.i(948812),d=e.i(929592),o=e.i(799676),c=e.i(487486),u=e.i(519455),m=e.i(515288),x=e.i(987968),h=e.i(624687),p=e.i(520133),b=e.i(637611);function j(e,t){let s=Math.round((Date.parse(e)-Date.now())/1e3),r=new Intl.RelativeTimeFormat(t,{numeric:"auto"});for(let[e,t]of[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]])if(Math.abs(s)>=t)return r.format(Math.round(s/t),e);return r.format(s,"second")}function g({actor:e,compact:s=!1}){let r=(0,a.useTranslations)("githubComments");return e?(0,t.jsxs)("a",{className:"inline-flex min-w-0 items-center gap-2 hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsxs)(o.Avatar,{className:s?"size-5":"size-7",children:[(0,t.jsx)(o.AvatarImage,{alt:"",src:e.avatarUrl}),(0,t.jsx)(o.AvatarFallback,{children:e.login.slice(0,1).toUpperCase()})]}),(0,t.jsxs)("span",{className:"truncate",children:["@",e.login]})]}):(0,t.jsx)("span",{children:r("unknownAuthor")})}function v(e,t){if("FILE"===e.subjectType)return`${e.path} \xb7 ${t}`;let s=e.line??e.originalLine,r=e.startLine??e.originalStartLine;return null===s?e.path:`${e.path} \xb7 L${r&&r!==s?`${r}–`:""}${s}`}function f({label:e,url:r}){return(0,t.jsx)(u.Button,{asChild:!0,size:"icon-xs",title:e,variant:"outline",children:(0,t.jsx)("a",{"aria-label":e,href:r,rel:"noreferrer",target:"_blank",children:(0,t.jsx)(s.ExternalLink,{})})})}e.s(["ReviewAuthor",0,g,"ReviewThreadCard",0,function({locale:e,onReplyAdded:s,onStateChanged:o,thread:y}){let w=(0,a.useTranslations)("githubComments"),[N,C]=(0,i.useState)(""),[R,k]=(0,i.useState)(!1),[T,S]=(0,i.useState)(!1),[E,D]=(0,i.useState)(null),I=async e=>{if(e.preventDefault(),N.trim()&&y.viewerCanReply){k(!0);try{let e=await (0,b.controlPlaneRequest)(`mutation ReplyToGitHubReviewThread($threadId: ID!, $body: String!) {
25
+ }`,{input:{owner:U,name:G,number:e.number,method:k,commitHeadline:T,commitBody:D,authorEmail:P===h?null:P}});z(!1),await p?.(t.mergeGitHubPullRequest)}catch(e){M(e instanceof Error?e.message:String(e))}finally{q(!1)}}},_=R?.blockedReason??null;return(0,t.jsxs)(t.Fragment,{children:[y&&(0,t.jsxs)(l.Button,{onClick:e=>{e.stopPropagation(),z(!0)},size:b,type:"button",variant:j,children:[(0,t.jsx)(s,{}),f("merge")]}),(0,t.jsx)(n.Dialog,{onOpenChange:e=>{$||z(e)},open:O,children:(0,t.jsxs)(n.DialogContent,{className:"sm:max-w-xl",children:[(0,t.jsxs)(n.DialogHeader,{children:[(0,t.jsx)(n.DialogTitle,{children:f("mergePullRequest")}),(0,t.jsx)(n.DialogDescription,{children:f("mergePullRequestDescription",{repository:e.repositoryNameWithOwner,number:e.number})})]}),!H&&(R||L)?(0,t.jsxs)("div",{className:"space-y-4",children:[(L||_)&&(0,t.jsx)(i.Alert,{variant:"destructive",children:(0,t.jsx)(i.AlertDescription,{children:L||_})}),R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Label,{className:"mb-1.5 block",htmlFor:"merge-method",children:f("mergeType")}),(0,t.jsxs)(c.Select,{disabled:$||0===R.availableMethods.length,onValueChange:e=>S(e),value:k,children:[(0,t.jsx)(c.SelectTrigger,{id:"merge-method",children:(0,t.jsx)(c.SelectValue,{placeholder:f("selectMergeType")})}),(0,t.jsx)(c.SelectContent,{children:R.availableMethods.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:f(`mergeTypes.${e}`)},e))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-headline",children:f("commitMessage")}),(0,t.jsx)(d.Input,{disabled:$,id:"merge-commit-headline",onChange:e=>E(e.target.value),value:T})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-body",children:f("commitDescription")}),(0,t.jsx)(m.Textarea,{className:"min-h-28",disabled:$,id:"merge-commit-body",onChange:e=>I(e.target.value),value:D})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(o.Label,{className:"mb-1.5 block",htmlFor:"merge-email",children:f("commitEmail")}),(0,t.jsxs)(c.Select,{disabled:$,onValueChange:A,value:P,children:[(0,t.jsx)(c.SelectTrigger,{id:"merge-email",children:(0,t.jsx)(c.SelectValue,{})}),(0,t.jsxs)(c.SelectContent,{children:[(0,t.jsx)(c.SelectItem,{value:h,children:f("githubDefaultEmail")}),R.commitEmails.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:e},e))]})]})]})]})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 py-6 text-sm text-muted-foreground",children:[(0,t.jsx)(u.Spinner,{})," ",f("loadingMergeOptions")]}),(0,t.jsxs)(n.DialogFooter,{children:[(0,t.jsx)(l.Button,{disabled:$,onClick:()=>z(!1),type:"button",variant:"outline",children:f("cancelMerge")}),(0,t.jsxs)(l.Button,{disabled:H||$||!R?.canMerge||!k||!T.trim(),onClick:()=>void F(),type:"button",children:[$?(0,t.jsx)(u.Spinner,{}):(0,t.jsx)(s,{}),$?f("merging"):f("mergePullRequest")]})]})]})})]})}],346194)},142833,e=>{"use strict";var t=e.i(843476),s=e.i(159888),r=e.i(689664),a=e.i(508734),i=e.i(772382),l=e.i(948148),n=e.i(271645),d=e.i(519455),o=e.i(462777),c=e.i(975157);function u({bodyHtml:e,className:s}){return(0,t.jsx)("div",{className:(0,c.cn)("prose prose-sm max-w-none break-words dark:prose-invert prose-a:text-primary prose-pre:overflow-x-auto [&_details>summary]:cursor-pointer",s),dangerouslySetInnerHTML:{__html:e}})}e.s(["GitHubMarkdownBlock",0,function({body:e,bodyHtml:m,emptyLabel:x,header:h,headerActions:p,headerClassName:b}){let j=(0,l.useTranslations)("githubComments"),[g,v]=(0,n.useState)("RENDERED"),[y,f]=(0,n.useState)("IDLE");(0,n.useEffect)(()=>{if("COPIED"!==y)return;let e=window.setTimeout(()=>f("IDLE"),2e3);return()=>window.clearTimeout(e)},[y]);let w=async()=>{try{await (0,o.copyText)(e),f("COPIED")}catch{f("FAILED")}};return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:(0,c.cn)("flex flex-wrap items-center justify-between gap-2",b),children:[(0,t.jsx)("div",{className:"min-w-0",children:h}),(e||p)&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[p,e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.Button,{onClick:()=>v(e=>"RENDERED"===e?"MARKDOWN":"RENDERED"),size:"xs",type:"button",variant:"outline",children:["RENDERED"===g?(0,t.jsx)(s.Braces,{}):(0,t.jsx)(i.Eye,{}),j("RENDERED"===g?"viewRaw":"viewRendered")]}),(0,t.jsxs)(d.Button,{"aria-label":j("copy"),onClick:()=>void w(),size:"xs",type:"button",variant:"outline",children:["COPIED"===y?(0,t.jsx)(r.Check,{}):(0,t.jsx)(a.Copy,{}),j("COPIED"===y?"copied":"copy")]})]})]})]}),"FAILED"===y&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:j("copyFailed")}),e?"MARKDOWN"===g?(0,t.jsx)("pre",{className:"rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e}):(0,t.jsx)(u,{bodyHtml:m}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:x})]})}])},730274,e=>{"use strict";let t=(0,e.i(456420).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],730274)},16781,e=>{"use strict";var t=e.i(843476),s=e.i(482022),r=e.i(730274),a=e.i(948148),i=e.i(271645),l=e.i(142833),n=e.i(948812),d=e.i(929592),o=e.i(799676),c=e.i(487486),u=e.i(519455),m=e.i(515288),x=e.i(987968),h=e.i(624687),p=e.i(520133),b=e.i(637611);function j(e,t){let s=Math.round((Date.parse(e)-Date.now())/1e3),r=new Intl.RelativeTimeFormat(t,{numeric:"auto"});for(let[e,t]of[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]])if(Math.abs(s)>=t)return r.format(Math.round(s/t),e);return r.format(s,"second")}function g({actor:e,compact:s=!1}){let r=(0,a.useTranslations)("githubComments");return e?(0,t.jsxs)("a",{className:"inline-flex min-w-0 items-center gap-2 hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsxs)(o.Avatar,{className:s?"size-5":"size-7",children:[(0,t.jsx)(o.AvatarImage,{alt:"",src:e.avatarUrl}),(0,t.jsx)(o.AvatarFallback,{children:e.login.slice(0,1).toUpperCase()})]}),(0,t.jsxs)("span",{className:"truncate",children:["@",e.login]})]}):(0,t.jsx)("span",{children:r("unknownAuthor")})}function v(e,t){if("FILE"===e.subjectType)return`${e.path} \xb7 ${t}`;let s=e.line??e.originalLine,r=e.startLine??e.originalStartLine;return null===s?e.path:`${e.path} \xb7 L${r&&r!==s?`${r}–`:""}${s}`}function y({label:e,url:r}){return(0,t.jsx)(u.Button,{asChild:!0,size:"icon-xs",title:e,variant:"outline",children:(0,t.jsx)("a",{"aria-label":e,href:r,rel:"noreferrer",target:"_blank",children:(0,t.jsx)(s.ExternalLink,{})})})}e.s(["ReviewAuthor",0,g,"ReviewThreadCard",0,function({locale:e,onReplyAdded:s,onStateChanged:o,thread:f}){let w=(0,a.useTranslations)("githubComments"),[N,R]=(0,i.useState)(""),[C,k]=(0,i.useState)(!1),[S,T]=(0,i.useState)(!1),[E,D]=(0,i.useState)(null),I=async e=>{if(e.preventDefault(),N.trim()&&f.viewerCanReply){k(!0);try{let e=await (0,b.controlPlaneRequest)(`mutation ReplyToGitHubReviewThread($threadId: ID!, $body: String!) {
26
26
  replyToGitHubReviewThread(threadId: $threadId, body: $body) {
27
27
  id body bodyText bodyHtml url author { login avatarUrl url } createdAt updatedAt
28
28
  }
29
- }`,{threadId:y.id,body:N});s(y.id,e.replyToGitHubReviewThread),C(""),D(null)}catch(e){D(e instanceof Error?e.message:String(e))}finally{k(!1)}}},H=async()=>{let e=!y.isResolved;if((!e||y.viewerCanResolve)&&(e||y.viewerCanUnresolve)){S(!0);try{let t=await (0,b.controlPlaneRequest)(`mutation SetGitHubReviewThreadResolved(
29
+ }`,{threadId:f.id,body:N});s(f.id,e.replyToGitHubReviewThread),R(""),D(null)}catch(e){D(e instanceof Error?e.message:String(e))}finally{k(!1)}}},P=async()=>{let e=!f.isResolved;if((!e||f.viewerCanResolve)&&(e||f.viewerCanUnresolve)){T(!0);try{let t=await (0,b.controlPlaneRequest)(`mutation SetGitHubReviewThreadResolved(
30
30
  $threadId: ID!
31
31
  $resolved: Boolean!
32
32
  ) {
@@ -34,7 +34,7 @@
34
34
  threadId: $threadId
35
35
  resolved: $resolved
36
36
  ) { id isResolved viewerCanResolve viewerCanUnresolve resolvedBy { login avatarUrl url } }
37
- }`,{threadId:y.id,resolved:e});o(t.setGitHubReviewThreadResolved),D(null)}catch(e){D(e instanceof Error?e.message:String(e))}finally{S(!1)}}},P=y.isResolved?y.viewerCanUnresolve:y.viewerCanResolve;return(0,t.jsx)(m.Card,{children:(0,t.jsxs)(m.CardContent,{className:"space-y-5",children:[(0,t.jsx)(l.GitHubMarkdownBlock,{body:y.rootComment.body,bodyHtml:y.rootComment.bodyHtml,emptyLabel:"—",header:(0,t.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[(0,t.jsx)(g,{actor:y.rootComment.author}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,t.jsx)("time",{className:"text-muted-foreground",dateTime:y.rootComment.createdAt,title:new Date(y.rootComment.createdAt).toLocaleString(e),children:j(y.rootComment.createdAt,e)})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,t.jsx)(c.Badge,{className:"max-w-full",title:v(y,w("fileComment")),variant:"outline",children:v(y,w("fileComment"))}),y.isOutdated&&(0,t.jsx)(c.Badge,{variant:"secondary",children:w("outdated")}),(0,t.jsx)(c.Badge,{variant:y.isResolved?"secondary":"outline",children:y.isResolved?w("resolved"):w("unresolved")}),(0,t.jsxs)(p.Link,{className:"font-medium text-primary hover:underline",href:(0,n.pullRequestDetailHref)(y.pullRequest),children:[y.pullRequest.repositoryNameWithOwner," #",y.pullRequest.number]})]})]}),headerActions:(0,t.jsx)(f,{label:w("openInGitHub"),url:y.rootComment.url}),headerClassName:"border-b pb-4"}),y.replies.length>0&&(0,t.jsx)("div",{className:"space-y-3",children:y.replies.map(s=>(0,t.jsx)(m.Card,{size:"sm",children:(0,t.jsx)(m.CardContent,{children:(0,t.jsx)(l.GitHubMarkdownBlock,{body:s.body,bodyHtml:s.bodyHtml,emptyLabel:"—",header:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,t.jsx)(g,{actor:s.author,compact:!0}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,t.jsx)("time",{className:"text-muted-foreground",dateTime:s.createdAt,children:j(s.createdAt,e)})]}),headerActions:(0,t.jsx)(f,{label:w("openReplyInGitHub"),url:s.url}),headerClassName:"border-b pb-3"})})},s.id))}),E&&(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:E})}),(0,t.jsxs)("form",{className:"space-y-3",onSubmit:I,children:[(0,t.jsx)(h.Textarea,{"aria-label":w("reply"),disabled:!y.viewerCanReply||R,onChange:e=>C(e.target.value),placeholder:y.viewerCanReply?w("replyPlaceholder"):w("replyUnavailable"),value:N}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[(0,t.jsxs)(u.Button,{disabled:!P||T,onClick:()=>void H(),type:"button",variant:"outline",children:[T&&(0,t.jsx)(x.Spinner,{}),y.isResolved?w("reopen"):w("resolve")]}),(0,t.jsxs)(u.Button,{disabled:!y.viewerCanReply||R||!N.trim(),type:"submit",children:[R?(0,t.jsx)(x.Spinner,{}):(0,t.jsx)(r.Send,{}),R?w("replying"):w("sendReply")]})]})]})]})})},"relativeAge",0,j])},337868,e=>{"use strict";var t=e.i(843476),s=e.i(711241),r=e.i(716327),a=e.i(867927),i=e.i(482022);let l=(0,e.i(456420).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);var n=e.i(634398),d=e.i(269846),o=e.i(741120),c=e.i(395925),u=e.i(861745),m=e.i(948148),x=e.i(618566),h=e.i(271645),p=e.i(647776),b=e.i(142833),j=e.i(346194),g=e.i(16781),v=e.i(356505),f=e.i(929592),y=e.i(799676),w=e.i(487486),N=e.i(519455),C=e.i(515288),R=e.i(82612),k=e.i(987968),T=e.i(784774),S=e.i(520133),E=e.i(637611),D=e.i(940276);function I(e){let t=new URLSearchParams(window.location.search);e?t.set("issue",e):t.delete("issue");let s=t.toString();window.history.pushState(null,"",`${window.location.pathname}${s?`?${s}`:""}`)}function H({job:e,repositoryId:s,checkSuiteId:l,onRetried:n,onError:d}){let o=(0,m.useTranslations)("pullRequestDetail"),c=(0,m.useTranslations)("pullRequests"),[u,x]=(0,h.useState)(!1);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[(0,t.jsxs)("button",{"aria-expanded":u,"aria-label":o(u?"hideJobSteps":"showJobSteps",{job:e.name}),className:"flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-2 text-left hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>x(e=>!e),type:"button",children:[u?(0,t.jsx)(r.ChevronDown,{className:"size-4 shrink-0"}):(0,t.jsx)(a.ChevronRight,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:e.name}),(0,t.jsx)(w.Badge,{className:(0,p.pipelineStateClass)(e.status),children:c(`pipelineStates.${e.status}`)})]}),e.url&&(0,t.jsx)(N.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{"aria-label":o("viewJob",{job:e.name}),href:e.url,rel:"noreferrer",target:"_blank",children:[o("viewPipeline"),(0,t.jsx)(i.ExternalLink,{})]})}),(0,t.jsx)(P,{checkSuiteId:l,job:e,onError:d,onRetried:n,repositoryId:s})]}),u&&(0,t.jsxs)("div",{className:"mb-3 w-full rounded-md border bg-background p-3",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:o("steps")}),0===e.steps.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:o("noSteps")}):(0,t.jsx)("ol",{className:"space-y-2",children:e.steps.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-3 text-sm",children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-full bg-muted text-[11px] text-muted-foreground",children:e.number}),(0,t.jsx)("span",{className:"min-w-0 flex-1",children:e.name}),(0,t.jsx)(w.Badge,{className:(0,p.pipelineStateClass)(e.status),children:c(`pipelineStates.${e.status}`)})]},e.number))})]})]})}function P({job:e,repositoryId:s,checkSuiteId:r,onRetried:a,onError:i}){let l=(0,m.useTranslations)("pullRequestDetail"),n=(0,m.useTranslations)("pullRequests"),[d,o]=(0,h.useState)(!1),u=async t=>{if(t.stopPropagation(),e.canRetry&&r){o(!0);try{await (0,E.controlPlaneRequest)(`mutation RetryGitHubWorkflowJob(
37
+ }`,{threadId:f.id,resolved:e});o(t.setGitHubReviewThreadResolved),D(null)}catch(e){D(e instanceof Error?e.message:String(e))}finally{T(!1)}}},A=f.isResolved?f.viewerCanUnresolve:f.viewerCanResolve;return(0,t.jsx)(m.Card,{children:(0,t.jsxs)(m.CardContent,{className:"space-y-5",children:[(0,t.jsx)(l.GitHubMarkdownBlock,{body:f.rootComment.body,bodyHtml:f.rootComment.bodyHtml,emptyLabel:"—",header:(0,t.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[(0,t.jsx)(g,{actor:f.rootComment.author}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,t.jsx)("time",{className:"text-muted-foreground",dateTime:f.rootComment.createdAt,title:new Date(f.rootComment.createdAt).toLocaleString(e),children:j(f.rootComment.createdAt,e)})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,t.jsx)(c.Badge,{className:"max-w-full",title:v(f,w("fileComment")),variant:"outline",children:v(f,w("fileComment"))}),f.isOutdated&&(0,t.jsx)(c.Badge,{variant:"secondary",children:w("outdated")}),(0,t.jsx)(c.Badge,{variant:f.isResolved?"secondary":"outline",children:f.isResolved?w("resolved"):w("unresolved")}),(0,t.jsxs)(p.Link,{className:"font-medium text-primary hover:underline",href:(0,n.pullRequestDetailHref)(f.pullRequest),children:[f.pullRequest.repositoryNameWithOwner," #",f.pullRequest.number]})]})]}),headerActions:(0,t.jsx)(y,{label:w("openInGitHub"),url:f.rootComment.url}),headerClassName:"border-b pb-4"}),f.replies.length>0&&(0,t.jsx)("div",{className:"space-y-3",children:f.replies.map(s=>(0,t.jsx)(m.Card,{size:"sm",children:(0,t.jsx)(m.CardContent,{children:(0,t.jsx)(l.GitHubMarkdownBlock,{body:s.body,bodyHtml:s.bodyHtml,emptyLabel:"—",header:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,t.jsx)(g,{actor:s.author,compact:!0}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,t.jsx)("time",{className:"text-muted-foreground",dateTime:s.createdAt,children:j(s.createdAt,e)})]}),headerActions:(0,t.jsx)(y,{label:w("openReplyInGitHub"),url:s.url}),headerClassName:"border-b pb-3"})})},s.id))}),E&&(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:E})}),(0,t.jsxs)("form",{className:"space-y-3",onSubmit:I,children:[(0,t.jsx)(h.Textarea,{"aria-label":w("reply"),disabled:!f.viewerCanReply||C,onChange:e=>R(e.target.value),placeholder:f.viewerCanReply?w("replyPlaceholder"):w("replyUnavailable"),value:N}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[(0,t.jsxs)(u.Button,{disabled:!A||S,onClick:()=>void P(),type:"button",variant:"outline",children:[S&&(0,t.jsx)(x.Spinner,{}),f.isResolved?w("reopen"):w("resolve")]}),(0,t.jsxs)(u.Button,{disabled:!f.viewerCanReply||C||!N.trim(),type:"submit",children:[C?(0,t.jsx)(x.Spinner,{}):(0,t.jsx)(r.Send,{}),C?w("replying"):w("sendReply")]})]})]})]})})},"relativeAge",0,j])},337868,e=>{"use strict";var t=e.i(843476),s=e.i(711241),r=e.i(716327),a=e.i(867927),i=e.i(482022);let l=(0,e.i(456420).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);var n=e.i(634398),d=e.i(269846),o=e.i(741120),c=e.i(395925),u=e.i(861745),m=e.i(948148),x=e.i(618566),h=e.i(271645),p=e.i(647776),b=e.i(142833),j=e.i(346194),g=e.i(16781),v=e.i(356505),y=e.i(929592),f=e.i(799676),w=e.i(487486),N=e.i(519455),R=e.i(515288),C=e.i(82612),k=e.i(987968),S=e.i(784774),T=e.i(520133),E=e.i(637611),D=e.i(940276);function I(e){let t=new URLSearchParams(window.location.search);e?t.set("issue",e):t.delete("issue");let s=t.toString();window.history.pushState(null,"",`${window.location.pathname}${s?`?${s}`:""}`)}function P({job:e,repositoryId:s,checkSuiteId:l,onRetried:n,onError:d}){let o=(0,m.useTranslations)("pullRequestDetail"),c=(0,m.useTranslations)("pullRequests"),[u,x]=(0,h.useState)(!1);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[(0,t.jsxs)("button",{"aria-expanded":u,"aria-label":o(u?"hideJobSteps":"showJobSteps",{job:e.name}),className:"flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-2 text-left hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>x(e=>!e),type:"button",children:[u?(0,t.jsx)(r.ChevronDown,{className:"size-4 shrink-0"}):(0,t.jsx)(a.ChevronRight,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:e.name}),(0,t.jsx)(w.Badge,{className:(0,p.pipelineStateClass)(e.status),children:c(`pipelineStates.${e.status}`)})]}),e.url&&(0,t.jsx)(N.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{"aria-label":o("viewJob",{job:e.name}),href:e.url,rel:"noreferrer",target:"_blank",children:[o("viewPipeline"),(0,t.jsx)(i.ExternalLink,{})]})}),(0,t.jsx)(A,{checkSuiteId:l,job:e,onError:d,onRetried:n,repositoryId:s})]}),u&&(0,t.jsxs)("div",{className:"mb-3 w-full rounded-md border bg-background p-3",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:o("steps")}),0===e.steps.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:o("noSteps")}):(0,t.jsx)("ol",{className:"space-y-2",children:e.steps.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-3 text-sm",children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-full bg-muted text-[11px] text-muted-foreground",children:e.number}),(0,t.jsx)("span",{className:"min-w-0 flex-1",children:e.name}),(0,t.jsx)(w.Badge,{className:(0,p.pipelineStateClass)(e.status),children:c(`pipelineStates.${e.status}`)})]},e.number))})]})]})}function A({job:e,repositoryId:s,checkSuiteId:r,onRetried:a,onError:i}){let l=(0,m.useTranslations)("pullRequestDetail"),n=(0,m.useTranslations)("pullRequests"),[d,o]=(0,h.useState)(!1),u=async t=>{if(t.stopPropagation(),e.canRetry&&r){o(!0);try{await (0,E.controlPlaneRequest)(`mutation RetryGitHubWorkflowJob(
38
38
  $repositoryId: ID!
39
39
  $checkSuiteId: ID!
40
40
  $jobId: ID!
@@ -44,7 +44,7 @@
44
44
  checkSuiteId: $checkSuiteId
45
45
  jobId: $jobId
46
46
  )
47
- }`,{repositoryId:s,checkSuiteId:r,jobId:e.id}),a(),i(null)}catch(e){i(e instanceof Error?e.message:String(e))}finally{o(!1)}}},x=e.retryUnavailableReason?n(`retryUnavailable.${e.retryUnavailableReason}`):void 0;return(0,t.jsxs)(N.Button,{"aria-label":l("retryJob",{job:e.name}),disabled:d||!e.canRetry||!r,onClick:e=>void u(e),size:"sm",title:x,variant:"outline",children:[d?(0,t.jsx)(k.Spinner,{}):(0,t.jsx)(c.RotateCcw,{}),n(d?"retrying":"retry")]})}function A({label:e,children:s}){return(0,t.jsxs)("div",{className:"grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-start gap-4",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"min-w-0 text-right font-medium break-words [overflow-wrap:anywhere]",children:s})]})}function B({label:e,person:s,unknownLabel:r}){return(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:e}),s?(0,t.jsxs)("a",{className:"flex items-center gap-2 text-sm hover:underline",href:s.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsxs)(y.Avatar,{className:"size-6",children:[(0,t.jsx)(y.AvatarImage,{alt:"",src:s.avatarUrl}),(0,t.jsx)(y.AvatarFallback,{children:s.login.slice(0,1).toUpperCase()})]}),"@",s.login]}):(0,t.jsx)("p",{className:"text-sm",children:r})]})}e.s(["PullRequestDetailPage",0,function({owner:e,repository:r,number:a}){var c;let y=(0,m.useTranslations)("pullRequestDetail"),P=(0,m.useTranslations)("pullRequests"),$=(0,u.useLocale)(),q=(0,x.useSearchParams)().get("issue"),[M,L]=(0,h.useState)(null),[U,G]=(0,h.useState)(!0),[O,z]=(0,h.useState)(null),F=(0,h.useCallback)(async()=>{G(!0);try{let t=await (0,E.controlPlaneRequest)(`query GitHubPullRequestDetail(
47
+ }`,{repositoryId:s,checkSuiteId:r,jobId:e.id}),a(),i(null)}catch(e){i(e instanceof Error?e.message:String(e))}finally{o(!1)}}},x=e.retryUnavailableReason?n(`retryUnavailable.${e.retryUnavailableReason}`):void 0;return(0,t.jsxs)(N.Button,{"aria-label":l("retryJob",{job:e.name}),disabled:d||!e.canRetry||!r,onClick:e=>void u(e),size:"sm",title:x,variant:"outline",children:[d?(0,t.jsx)(k.Spinner,{}):(0,t.jsx)(c.RotateCcw,{}),n(d?"retrying":"retry")]})}function H({label:e,children:s}){return(0,t.jsxs)("div",{className:"grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-start gap-4",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"min-w-0 text-right font-medium break-words [overflow-wrap:anywhere]",children:s})]})}function B({label:e,person:s,unknownLabel:r}){return(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:e}),s?(0,t.jsxs)("a",{className:"flex items-center gap-2 text-sm hover:underline",href:s.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsxs)(f.Avatar,{className:"size-6",children:[(0,t.jsx)(f.AvatarImage,{alt:"",src:s.avatarUrl}),(0,t.jsx)(f.AvatarFallback,{children:s.login.slice(0,1).toUpperCase()})]}),"@",s.login]}):(0,t.jsx)("p",{className:"text-sm",children:r})]})}e.s(["PullRequestDetailPage",0,function({owner:e,repository:r,number:a}){var c;let f=(0,m.useTranslations)("pullRequestDetail"),A=(0,m.useTranslations)("pullRequests"),$=(0,u.useLocale)(),q=(0,x.useSearchParams)().get("issue"),[L,M]=(0,h.useState)(null),[U,G]=(0,h.useState)(!0),[O,z]=(0,h.useState)(null),F=(0,h.useCallback)(async()=>{G(!0);try{let t=await (0,E.controlPlaneRequest)(`query GitHubPullRequestDetail(
48
48
  $owner: String!
49
49
  $name: String!
50
50
  $number: Int!
@@ -52,4 +52,4 @@
52
52
  githubPullRequest(owner: $owner, name: $name, number: $number) {
53
53
  id number title url repositoryGithubId repositoryNameWithOwner repositoryUrl labels jiraKey pipelineStatus pipelines { id name status url checkSuiteId canRetry retryUnavailableReason jobs { id name status url canRetry retryUnavailableReason steps { number name status } } } reviewDecision unresolvedReviewThreadCount headRefName createdAt body bodyHtml author { login avatarUrl url } assignees { login avatarUrl url } reviewThreads { id isResolved isOutdated subjectType path line startLine originalLine originalStartLine viewerCanReply viewerCanResolve viewerCanUnresolve resolvedBy { login avatarUrl url } pullRequest { id number title url repositoryNameWithOwner } rootComment { id body bodyText bodyHtml url author { login avatarUrl url } createdAt updatedAt } replies { id body bodyText bodyHtml url author { login avatarUrl url } createdAt updatedAt } } baseRefName state isDraft mergeable additions deletions changedFiles commitCount updatedAt mergedAt worktreeId
54
54
  }
55
- }`,{owner:e,name:r,number:a});L(t.githubPullRequest),z(null)}catch(e){z(e instanceof Error?e.message:String(e))}finally{G(!1)}},[a,e,r]);(0,h.useEffect)(()=>{let e=window.setTimeout(()=>void F(),0);return()=>window.clearTimeout(e)},[F]);let _=e=>{L(t=>t?{...t,pipelineStatus:"PENDING",pipelines:t.pipelines.map(t=>t.id===e.id?{...e,jobs:e.jobs??t.jobs}:t)}:t)},W=(e,t)=>{L(s=>s?{...s,reviewThreads:s.reviewThreads.map(s=>s.id===e?{...s,replies:[...s.replies,t]}:s)}:s)},K=e=>{L(t=>{if(!t)return t;let s=t.reviewThreads.find(t=>t.id===e.id),r=s&&s.isResolved!==e.isResolved?e.isResolved?-1:1:0;return{...t,unresolvedReviewThreadCount:Math.max(0,t.unresolvedReviewThreadCount+r),reviewThreads:t.reviewThreads.map(t=>t.id===e.id?{...t,...e}:t)}})};if(U&&!M)return(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(k.Spinner,{}),y("loading")]});if(!M)return(0,t.jsxs)("section",{className:"mx-auto w-full max-w-5xl space-y-5",children:[O&&(0,t.jsx)(f.Alert,{variant:"destructive",children:(0,t.jsx)(f.AlertDescription,{children:O})}),(0,t.jsxs)(R.Empty,{className:"border py-12",children:[(0,t.jsxs)(R.EmptyHeader,{children:[(0,t.jsx)(R.EmptyMedia,{variant:"icon",children:(0,t.jsx)(n.GitPullRequest,{})}),(0,t.jsx)(R.EmptyTitle,{children:y("notFound")}),(0,t.jsx)(R.EmptyDescription,{children:y("notFoundDescription")})]}),(0,t.jsx)(N.Button,{asChild:!0,className:"mt-4",variant:"outline",children:(0,t.jsx)(S.Link,{href:"/pull-requests",children:y("back")})})]})]});let J=new Intl.DateTimeFormat($,{dateStyle:"medium",timeStyle:"short"}),V=e=>e?J.format(new Date(e)):"—";return(0,t.jsxs)("section",{className:"mx-auto flex min-w-0 w-full max-w-6xl flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(N.Button,{asChild:!0,className:"mb-3 -ml-2",variant:"ghost",children:(0,t.jsxs)(S.Link,{href:"/pull-requests",children:[(0,t.jsx)(s.ArrowLeft,{}),y("back")]})}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[M.repositoryNameWithOwner," #",M.number]}),(0,t.jsx)("h1",{className:"mt-1 text-2xl font-semibold break-words tracking-tight [overflow-wrap:anywhere]",children:M.title}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[(0,t.jsx)(w.Badge,{children:P(`pullRequestStates.${M.state}`)}),M.isDraft&&(0,t.jsx)(w.Badge,{children:y("draft")}),(0,t.jsx)(w.Badge,{className:"APPROVED"===(c=M.reviewDecision)?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"CHANGES_REQUESTED"===c?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"REVIEW_REQUIRED"===c?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300",children:P(`reviewStates.${M.reviewDecision}`)}),M.jiraKey&&(0,t.jsx)(w.Badge,{asChild:!0,className:"cursor-pointer hover:bg-muted/80",children:(0,t.jsx)("button",{onClick:()=>I(M.jiraKey),type:"button",children:M.jiraKey})})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[M.worktreeId&&(0,t.jsx)(N.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(S.Link,{href:(0,D.worktreeDetailHref)(M.worktreeId),children:[(0,t.jsx)(d.GitBranch,{}),y("viewWorktree")]})}),"OPEN"===M.state&&(0,t.jsx)(j.MergePullRequestButton,{onMerged:F,pullRequest:M,size:"default"}),(0,t.jsxs)(N.Button,{disabled:U,onClick:()=>void F(),variant:"outline",children:[(0,t.jsx)(o.RefreshCw,{className:U?"animate-spin":void 0}),y("refresh")]}),(0,t.jsx)(N.Button,{asChild:!0,children:(0,t.jsxs)("a",{href:M.url,rel:"noreferrer",target:"_blank",children:[y("openInGitHub"),(0,t.jsx)(i.ExternalLink,{})]})})]})]}),O&&(0,t.jsx)(f.Alert,{variant:"destructive",children:(0,t.jsx)(f.AlertDescription,{children:O})}),(0,t.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsx)(C.Card,{className:"min-w-0 order-2 lg:col-span-2",children:(0,t.jsx)(C.CardContent,{children:(0,t.jsx)(b.GitHubMarkdownBlock,{body:M.body,bodyHtml:M.bodyHtml,emptyLabel:y("noDescription"),header:(0,t.jsx)(C.CardTitle,{children:y("description")}),headerClassName:"border-b pb-4"})})}),(0,t.jsxs)("div",{className:"min-w-0 order-3 space-y-4 lg:col-span-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:y("comments")}),(0,t.jsx)(w.Badge,{variant:"secondary",children:M.reviewThreads.length})]}),0===M.reviewThreads.length?(0,t.jsx)(R.Empty,{className:"border py-8",children:(0,t.jsxs)(R.EmptyHeader,{children:[(0,t.jsx)(R.EmptyTitle,{children:y("noComments")}),(0,t.jsx)(R.EmptyDescription,{children:y("noCommentsDescription")})]})}):(0,t.jsx)("div",{className:"space-y-5",children:M.reviewThreads.map(e=>(0,t.jsx)(g.ReviewThreadCard,{locale:$,onReplyAdded:W,onStateChanged:K,thread:e},e.id))})]}),(0,t.jsxs)(C.Card,{className:"min-w-0 order-4 gap-0 py-0 lg:col-span-2",children:[(0,t.jsxs)(C.CardHeader,{className:"flex grid-cols-none flex-row items-center justify-between gap-3 border-b py-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(C.CardTitle,{children:y("pipelines")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:y("pipelineCount",{count:M.pipelines.length})})]}),(0,t.jsx)(p.PipelineMenu,{onPipelineRetried:_,pipelineStatus:M.pipelineStatus,pipelines:M.pipelines,repositoryId:M.repositoryGithubId})]}),(0,t.jsx)(C.CardContent,{className:"px-0",children:0===M.pipelines.length?(0,t.jsx)("p",{className:"p-4 text-sm text-muted-foreground",children:P("noPipelines")}):(0,t.jsxs)(T.Table,{children:[(0,t.jsx)(T.TableHeader,{children:(0,t.jsxs)(T.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(T.TableHead,{children:y("pipelineName")}),(0,t.jsx)(T.TableHead,{children:y("pipelineStatus")}),(0,t.jsx)(T.TableHead,{className:"text-right",children:y("pipelineDetails")})]})}),(0,t.jsx)(T.TableBody,{children:M.pipelines.map(e=>(0,t.jsxs)(h.Fragment,{children:[(0,t.jsxs)(T.TableRow,{children:[(0,t.jsx)(T.TableCell,{className:"font-medium",children:e.name}),(0,t.jsx)(T.TableCell,{children:(0,t.jsx)(w.Badge,{className:(0,p.pipelineStateClass)(e.status),children:P(`pipelineStates.${e.status}`)})}),(0,t.jsx)(T.TableCell,{children:(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[e.url?(0,t.jsx)(N.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[y("viewPipeline"),(0,t.jsx)(i.ExternalLink,{})]})}):(0,t.jsxs)(N.Button,{disabled:!0,size:"sm",variant:"outline",children:[y("viewPipeline"),(0,t.jsx)(i.ExternalLink,{})]}),(0,t.jsx)(p.RetryPipelineButton,{onError:z,onPipelineRetried:_,pipeline:e,repositoryId:M.repositoryGithubId})]})})]}),(0,t.jsx)(T.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(T.TableCell,{className:"p-0",colSpan:3,children:(0,t.jsxs)("div",{className:"border-l-2 border-muted-foreground/20 px-4 py-1",children:[(0,t.jsx)("p",{className:"px-3 py-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:y("jobCount",{count:e.jobs.length})}),0===e.jobs.length?(0,t.jsx)("p",{className:"px-3 pb-3 text-sm text-muted-foreground",children:y("noJobs")}):(0,t.jsx)("div",{className:"divide-y",children:e.jobs.map(s=>(0,t.jsx)(H,{checkSuiteId:e.checkSuiteId,job:s,onError:z,onRetried:()=>{var t,r;return t=e.id,r=s.id,void L(e=>e?{...e,pipelineStatus:"PENDING",pipelines:e.pipelines.map(e=>e.id===t?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",jobs:e.jobs.map(e=>e.id===r?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",steps:[]}:{...e,canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"})}:e)}:e)},repositoryId:M.repositoryGithubId},s.id))})]})})})]},e.id))})]})})]})]}),(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsxs)(C.Card,{className:"min-w-0 order-1",children:[(0,t.jsx)(C.CardHeader,{className:"border-b",children:(0,t.jsx)(C.CardTitle,{children:y("details")})}),(0,t.jsx)(C.CardContent,{children:(0,t.jsxs)("dl",{className:"grid gap-4 text-sm",children:[(0,t.jsx)(A,{label:y("branches"),children:(0,t.jsxs)("span",{className:"font-mono text-xs break-all",children:[M.headRefName," → ",M.baseRefName]})}),(0,t.jsxs)(A,{label:y("changes"),children:[(0,t.jsxs)("span",{className:"text-emerald-600",children:["+",M.additions]})," ",(0,t.jsxs)("span",{className:"text-red-600",children:["−",M.deletions]})]}),(0,t.jsx)(A,{label:y("files"),children:M.changedFiles??"—"}),(0,t.jsx)(A,{label:y("commits"),children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(l,{className:"size-4"}),M.commitCount]})}),(0,t.jsx)(A,{label:y("mergeable"),children:P(`mergeableStates.${M.mergeable}`)}),(0,t.jsx)(A,{label:y("openComments"),children:M.unresolvedReviewThreadCount}),(0,t.jsx)(A,{label:y("created"),children:V(M.createdAt)}),(0,t.jsx)(A,{label:y("updated"),children:V(M.updatedAt)}),M.mergedAt&&(0,t.jsx)(A,{label:y("merged"),children:V(M.mergedAt)})]})})]}),(0,t.jsxs)(C.Card,{className:"min-w-0 order-1",children:[(0,t.jsx)(C.CardHeader,{className:"border-b",children:(0,t.jsx)(C.CardTitle,{children:y("people")})}),(0,t.jsxs)(C.CardContent,{className:"space-y-4",children:[(0,t.jsx)(B,{label:y("author"),person:M.author,unknownLabel:y("unknown")}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:y("assignees")}),0===M.assignees.length?(0,t.jsx)("p",{className:"text-sm",children:y("unassigned")}):(0,t.jsx)("div",{className:"space-y-2",children:M.assignees.map(e=>(0,t.jsx)(B,{person:e,unknownLabel:y("unknown")},e.login))})]})]})]})]})]}),(0,t.jsx)(v.JiraTicketDrawer,{issueKey:q,onClose:()=>I(null)})]})}],337868)}]);
55
+ }`,{owner:e,name:r,number:a});M(t.githubPullRequest),z(null)}catch(e){z(e instanceof Error?e.message:String(e))}finally{G(!1)}},[a,e,r]);(0,h.useEffect)(()=>{let e=window.setTimeout(()=>void F(),0);return()=>window.clearTimeout(e)},[F]);let _=e=>{M(t=>t?{...t,pipelineStatus:"PENDING",pipelines:t.pipelines.map(t=>t.id===e.id?{...e,jobs:e.jobs??t.jobs}:t)}:t)},W=(e,t)=>{M(s=>s?{...s,reviewThreads:s.reviewThreads.map(s=>s.id===e?{...s,replies:[...s.replies,t]}:s)}:s)},K=e=>{M(t=>{if(!t)return t;let s=t.reviewThreads.find(t=>t.id===e.id),r=s&&s.isResolved!==e.isResolved?e.isResolved?-1:1:0;return{...t,unresolvedReviewThreadCount:Math.max(0,t.unresolvedReviewThreadCount+r),reviewThreads:t.reviewThreads.map(t=>t.id===e.id?{...t,...e}:t)}})};if(U&&!L)return(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(k.Spinner,{}),f("loading")]});if(!L)return(0,t.jsxs)("section",{className:"mx-auto w-full max-w-5xl space-y-5",children:[O&&(0,t.jsx)(y.Alert,{variant:"destructive",children:(0,t.jsx)(y.AlertDescription,{children:O})}),(0,t.jsxs)(C.Empty,{className:"border py-12",children:[(0,t.jsxs)(C.EmptyHeader,{children:[(0,t.jsx)(C.EmptyMedia,{variant:"icon",children:(0,t.jsx)(n.GitPullRequest,{})}),(0,t.jsx)(C.EmptyTitle,{children:f("notFound")}),(0,t.jsx)(C.EmptyDescription,{children:f("notFoundDescription")})]}),(0,t.jsx)(N.Button,{asChild:!0,className:"mt-4",variant:"outline",children:(0,t.jsx)(T.Link,{href:"/pull-requests",children:f("back")})})]})]});let J=new Intl.DateTimeFormat($,{dateStyle:"medium",timeStyle:"short"}),V=e=>e?J.format(new Date(e)):"—";return(0,t.jsxs)("section",{className:"mx-auto flex min-w-0 w-full max-w-6xl flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(N.Button,{asChild:!0,className:"mb-3 -ml-2",variant:"ghost",children:(0,t.jsxs)(T.Link,{href:"/pull-requests",children:[(0,t.jsx)(s.ArrowLeft,{}),f("back")]})}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[L.repositoryNameWithOwner," #",L.number]}),(0,t.jsx)("h1",{className:"mt-1 text-2xl font-semibold break-words tracking-tight [overflow-wrap:anywhere]",children:L.title}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[(0,t.jsx)(w.Badge,{children:A(`pullRequestStates.${L.state}`)}),L.isDraft&&(0,t.jsx)(w.Badge,{children:f("draft")}),(0,t.jsx)(w.Badge,{className:"APPROVED"===(c=L.reviewDecision)?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"CHANGES_REQUESTED"===c?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"REVIEW_REQUIRED"===c?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300",children:A(`reviewStates.${L.reviewDecision}`)}),L.jiraKey&&(0,t.jsx)(w.Badge,{asChild:!0,className:"cursor-pointer hover:bg-muted/80",children:(0,t.jsx)("button",{onClick:()=>I(L.jiraKey),type:"button",children:L.jiraKey})})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[L.worktreeId&&(0,t.jsx)(N.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(T.Link,{href:(0,D.worktreeDetailHref)(L.worktreeId),children:[(0,t.jsx)(d.GitBranch,{}),f("viewWorktree")]})}),"OPEN"===L.state&&(0,t.jsx)(j.MergePullRequestButton,{onMerged:F,pullRequest:L,size:"default"}),(0,t.jsxs)(N.Button,{disabled:U,onClick:()=>void F(),variant:"outline",children:[(0,t.jsx)(o.RefreshCw,{className:U?"animate-spin":void 0}),f("refresh")]}),(0,t.jsx)(N.Button,{asChild:!0,children:(0,t.jsxs)("a",{href:L.url,rel:"noreferrer",target:"_blank",children:[f("openInGitHub"),(0,t.jsx)(i.ExternalLink,{})]})})]})]}),O&&(0,t.jsx)(y.Alert,{variant:"destructive",children:(0,t.jsx)(y.AlertDescription,{children:O})}),(0,t.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsx)(R.Card,{className:"min-w-0 order-2 lg:col-span-2",children:(0,t.jsx)(R.CardContent,{children:(0,t.jsx)(b.GitHubMarkdownBlock,{body:L.body,bodyHtml:L.bodyHtml,emptyLabel:f("noDescription"),header:(0,t.jsx)(R.CardTitle,{children:f("description")}),headerClassName:"border-b pb-4"})})}),(0,t.jsxs)("div",{className:"min-w-0 order-3 space-y-4 lg:col-span-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:f("comments")}),(0,t.jsx)(w.Badge,{variant:"secondary",children:L.reviewThreads.length})]}),0===L.reviewThreads.length?(0,t.jsx)(C.Empty,{className:"border py-8",children:(0,t.jsxs)(C.EmptyHeader,{children:[(0,t.jsx)(C.EmptyTitle,{children:f("noComments")}),(0,t.jsx)(C.EmptyDescription,{children:f("noCommentsDescription")})]})}):(0,t.jsx)("div",{className:"space-y-5",children:L.reviewThreads.map(e=>(0,t.jsx)(g.ReviewThreadCard,{locale:$,onReplyAdded:W,onStateChanged:K,thread:e},e.id))})]}),(0,t.jsxs)(R.Card,{className:"min-w-0 order-4 gap-0 py-0 lg:col-span-2",children:[(0,t.jsxs)(R.CardHeader,{className:"flex grid-cols-none flex-row items-center justify-between gap-3 border-b py-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(R.CardTitle,{children:f("pipelines")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:f("pipelineCount",{count:L.pipelines.length})})]}),(0,t.jsx)(p.PipelineMenu,{onPipelineRetried:_,pipelineStatus:L.pipelineStatus,pipelines:L.pipelines,repositoryId:L.repositoryGithubId})]}),(0,t.jsx)(R.CardContent,{className:"px-0",children:0===L.pipelines.length?(0,t.jsx)("p",{className:"p-4 text-sm text-muted-foreground",children:A("noPipelines")}):(0,t.jsxs)(S.Table,{children:[(0,t.jsx)(S.TableHeader,{children:(0,t.jsxs)(S.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(S.TableHead,{children:f("pipelineName")}),(0,t.jsx)(S.TableHead,{children:f("pipelineStatus")}),(0,t.jsx)(S.TableHead,{className:"text-right",children:f("pipelineDetails")})]})}),(0,t.jsx)(S.TableBody,{children:L.pipelines.map(e=>(0,t.jsxs)(h.Fragment,{children:[(0,t.jsxs)(S.TableRow,{children:[(0,t.jsx)(S.TableCell,{className:"font-medium",children:e.name}),(0,t.jsx)(S.TableCell,{children:(0,t.jsx)(w.Badge,{className:(0,p.pipelineStateClass)(e.status),children:A(`pipelineStates.${e.status}`)})}),(0,t.jsx)(S.TableCell,{children:(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[e.url?(0,t.jsx)(N.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[f("viewPipeline"),(0,t.jsx)(i.ExternalLink,{})]})}):(0,t.jsxs)(N.Button,{disabled:!0,size:"sm",variant:"outline",children:[f("viewPipeline"),(0,t.jsx)(i.ExternalLink,{})]}),(0,t.jsx)(p.RetryPipelineButton,{onError:z,onPipelineRetried:_,pipeline:e,repositoryId:L.repositoryGithubId})]})})]}),(0,t.jsx)(S.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(S.TableCell,{className:"p-0",colSpan:3,children:(0,t.jsxs)("div",{className:"border-l-2 border-muted-foreground/20 px-4 py-1",children:[(0,t.jsx)("p",{className:"px-3 py-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:f("jobCount",{count:e.jobs.length})}),0===e.jobs.length?(0,t.jsx)("p",{className:"px-3 pb-3 text-sm text-muted-foreground",children:f("noJobs")}):(0,t.jsx)("div",{className:"divide-y",children:e.jobs.map(s=>(0,t.jsx)(P,{checkSuiteId:e.checkSuiteId,job:s,onError:z,onRetried:()=>{var t,r;return t=e.id,r=s.id,void M(e=>e?{...e,pipelineStatus:"PENDING",pipelines:e.pipelines.map(e=>e.id===t?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",jobs:e.jobs.map(e=>e.id===r?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",steps:[]}:{...e,canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"})}:e)}:e)},repositoryId:L.repositoryGithubId},s.id))})]})})})]},e.id))})]})})]})]}),(0,t.jsxs)("div",{className:"contents",children:[(0,t.jsxs)(R.Card,{className:"min-w-0 order-1",children:[(0,t.jsx)(R.CardHeader,{className:"border-b",children:(0,t.jsx)(R.CardTitle,{children:f("details")})}),(0,t.jsx)(R.CardContent,{children:(0,t.jsxs)("dl",{className:"grid gap-4 text-sm",children:[(0,t.jsx)(H,{label:f("branches"),children:(0,t.jsxs)("span",{className:"font-mono text-xs break-all",children:[L.headRefName," → ",L.baseRefName]})}),(0,t.jsxs)(H,{label:f("changes"),children:[(0,t.jsxs)("span",{className:"text-emerald-600",children:["+",L.additions]})," ",(0,t.jsxs)("span",{className:"text-red-600",children:["−",L.deletions]})]}),(0,t.jsx)(H,{label:f("files"),children:L.changedFiles??"—"}),(0,t.jsx)(H,{label:f("commits"),children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(l,{className:"size-4"}),L.commitCount]})}),(0,t.jsx)(H,{label:f("mergeable"),children:A(`mergeableStates.${L.mergeable}`)}),(0,t.jsx)(H,{label:f("openComments"),children:L.unresolvedReviewThreadCount}),(0,t.jsx)(H,{label:f("created"),children:V(L.createdAt)}),(0,t.jsx)(H,{label:f("updated"),children:V(L.updatedAt)}),L.mergedAt&&(0,t.jsx)(H,{label:f("merged"),children:V(L.mergedAt)})]})})]}),(0,t.jsxs)(R.Card,{className:"min-w-0 order-1",children:[(0,t.jsx)(R.CardHeader,{className:"border-b",children:(0,t.jsx)(R.CardTitle,{children:f("people")})}),(0,t.jsxs)(R.CardContent,{className:"space-y-4",children:[(0,t.jsx)(B,{label:f("author"),person:L.author,unknownLabel:f("unknown")}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:f("assignees")}),0===L.assignees.length?(0,t.jsx)("p",{className:"text-sm",children:f("unassigned")}):(0,t.jsx)("div",{className:"space-y-2",children:L.assignees.map(e=>(0,t.jsx)(B,{person:e,unknownLabel:f("unknown")},e.login))})]})]})]})]})]}),(0,t.jsx)(v.JiraTicketDrawer,{issueKey:q,onClose:()=>I(null)})]})}],337868)}]);
@@ -0,0 +1,7 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},771777,866026,e=>{"use strict";var t=e.i(843476),r=e.i(395925),n=e.i(948148),a=e.i(271645),i=e.i(519455),o=e.i(987968),l=e.i(462777),s=e.i(637611);e.s(["RebuildButton",0,function({buildId:e,onCompleted:d,onError:u,size:c="default"}){let p=(0,n.useTranslations)("builds"),[f,g]=(0,a.useState)(!1),h=async()=>{g(!0),u(null);try{let t=await (0,s.controlPlaneRequest)(`mutation RebuildBuild($id: ID!, $requestId: ID!) {
2
+ rebuildBuild(id: $id, requestId: $requestId) { id status }
3
+ }`,{id:e,requestId:(0,l.createClientId)()});await d?.(t.rebuildBuild)}catch(e){u(e instanceof Error?e.message:String(e))}finally{g(!1)}};return(0,t.jsxs)(i.Button,{disabled:f,onClick:e=>{e.stopPropagation(),h()},onKeyDown:e=>e.stopPropagation(),size:c,type:"button",variant:"outline",children:[f?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(r.RotateCcw,{})," ",p("rebuild")]})}],771777);var d=e.i(716327),u=e.i(21357),c=e.i(755146);e.s(["RunBuildControls",0,function({buildId:e,destinationType:r,preferredDestination:p,onCompleted:f,onError:g,size:h="default"}){let m=(0,n.useTranslations)("builds"),v=p?.generic?null:p??null,[y,b]=(0,a.useState)(v?[v]:[]),[x,k]=(0,a.useState)(v?new Set([v.id]):new Set),[w,j]=(0,a.useState)(!1),[C,S]=(0,a.useState)(!1),[R,E]=(0,a.useState)(!1),I=(0,a.useMemo)(()=>y.filter(e=>x.has(e.id)).map(e=>e.name),[y,x]),D=async()=>{S(!0),g(null);try{let t=(await (0,s.controlPlaneRequest)(`mutation BuildRunDestinations($buildId: ID!, $requestId: ID!) {
4
+ inspectBuildRunDestinations(buildId: $buildId, requestId: $requestId)
5
+ }`,{buildId:e,requestId:(0,l.createClientId)()})).inspectBuildRunDestinations.filter(e=>e.type===r&&!e.generic);b(t),k(e=>{let r=new Set(t.map(e=>e.id));return new Set([...e].filter(e=>r.has(e)))}),j(!0)}catch(e){g(e instanceof Error?e.message:String(e))}finally{S(!1)}},z=async()=>{E(!0),g(null);try{await (0,s.controlPlaneRequest)(`mutation RunCompletedBuild($input: RunBuildInput!) {
6
+ runBuild(input: $input) { id status }
7
+ }`,{input:{buildId:e,destinations:y.filter(e=>x.has(e.id)),requestId:(0,l.createClientId)()}}),k(new Set),await f?.()}catch(e){g(e instanceof Error?e.message:String(e))}finally{E(!1)}};return(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,t.jsxs)(c.DropdownMenu,{onOpenChange:e=>{e&&!w&&D()},children:[(0,t.jsx)(c.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(i.Button,{disabled:C,size:h,type:"button",variant:"outline",children:[C?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(u.Play,{}),I.length?m("selectedDevices",{count:I.length}):m("selectRunDevices"),(0,t.jsx)(d.ChevronDown,{})]})}),(0,t.jsxs)(c.DropdownMenuContent,{align:"end",className:"w-72",children:[y.map(e=>(0,t.jsxs)(c.DropdownMenuCheckboxItem,{checked:x.has(e.id),onCheckedChange:t=>k(r=>{let n=new Set(r);return t?n.add(e.id):n.delete(e.id),n}),children:[e.name,e.osVersion?` \xb7 ${e.osVersion}`:""]},e.id)),w&&!y.length&&(0,t.jsx)("p",{className:"p-2 text-xs text-muted-foreground",children:m("noCompatibleDevices")})]})]}),(0,t.jsxs)(i.Button,{disabled:R||0===x.size,onClick:()=>void z(),size:h,type:"button",children:[R?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(u.Play,{})," ",m("run")]})]})}],866026)},452330,725981,e=>{"use strict";var t=e.i(456420);let r=(0,t.default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,r],452330);let n=(0,t.default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,n],725981)},21357,e=>{"use strict";let t=(0,e.i(456420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],21357)},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},920950,e=>{"use strict";var t=e.i(843476),r=e.i(876561),n=e.i(93384),a=e.i(21357),i=e.i(456420);let o=(0,i.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]),l=(0,i.default)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),s=(0,i.default)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]),d={archive:r.Archive,hammer:n.Hammer,play:a.Play,rocket:o,smartphone:l,"test-tube":s};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let r=d[e];return r?(0,t.jsx)(r,{"aria-hidden":!0,className:"size-4"}):null}],920950)},573474,e=>{"use strict";let t=(0,e.i(456420).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],573474)},59497,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return r.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=n(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}var i=e.i(30030);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)}}"u">typeof window&&window.document&&window.document.createElement;var l=globalThis?.document?r.useLayoutEffect:()=>{};r[" useEffectEvent ".trim().toString()],r[" useInsertionEffect ".trim().toString()];var s=r[" useInsertionEffect ".trim().toString()]||l;Symbol("RADIX:SYNC_STATE");var d=e.i(999682),u=e.i(635804),c=e.i(296626);e.i(174080);var p=Symbol.for("radix.slottable"),f=Symbol.for("react.lazy");function g(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===f&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var h=r[" use ".trim().toString()],m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var i;let o,l=(i=`Primitive.${n}`,(o=r.forwardRef((e,t)=>{var n;let o,l,{children:s,...d}=e,u=null,c=!1,f=[];g(s)&&"function"==typeof h&&(s=h(s._payload)),r.Children.forEach(s,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p){c=!0;let t="child"in e.props?e.props.child:e.props.children;g(t)&&"function"==typeof h&&(t=h(t._payload)),u=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),f.push(u?.props?.children)}else f.push(e)}),u?u=r.cloneElement(u,void 0,f):!c&&1===r.Children.count(s)&&r.isValidElement(s)&&(u=s);let m=u?(n=u,(l=(o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?n.ref:(l=(o=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?n.props.ref:n.props.ref||n.ref):void 0,v=a(t,m);if(!u){if(s||0===s){let e,t;throw Error(c?(e=i,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=i,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return s}let y=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(d,u.props??{});return u.type!==r.Fragment&&(y.ref=t?v:m),r.cloneElement(u,y)})).displayName=`${i}.Slot`,o),s=r.forwardRef((e,r)=>{let{asChild:a,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?l:n,{...i,ref:r})});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{}),v="Checkbox",[y,b]=(0,i.createContextScope)(v),[x,k]=y(v);function w(e){let{__scopeCheckbox:n,checked:a,children:i,defaultChecked:o,disabled:l,form:d,name:u,onCheckedChange:c,required:p,value:f="on",internal_do_not_use_render:g}=e,[h,m]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){let[i,o,l]=function({defaultProp:e,onChange:t}){let[n,a]=r.useState(e),i=r.useRef(n),o=r.useRef(t);return s(()=>{o.current=t},[t]),r.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,a,o]}({defaultProp:t,onChange:n}),d=void 0!==e,u=d?e:i;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,a])}return[u,r.useCallback(t=>{if(d){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else o(t)},[d,e,o,l])]}({prop:a,defaultProp:o??!1,onChange:c,caller:v}),[y,b]=r.useState(null),[k,w]=r.useState(null),j=r.useRef(!1),C=!y||!!d||!!y.closest("form"),S={checked:h,disabled:l,setChecked:m,control:y,setControl:b,name:u,form:d,value:f,hasConsumerStoppedPropagationRef:j,required:p,defaultChecked:!z(o)&&o,isFormControl:C,bubbleInput:k,setBubbleInput:w};return(0,t.jsx)(x,{scope:n,...S,children:"function"==typeof g?g(S):i})}var j="CheckboxTrigger",C=r.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:i,...l},s)=>{let{control:d,value:u,disabled:c,checked:p,required:f,setControl:g,setChecked:h,hasConsumerStoppedPropagationRef:v,isFormControl:y,bubbleInput:b}=k(j,e),x=a(s,g),w=r.useRef(p);return r.useEffect(()=>{let e=d?.form;if(e){let t=()=>h(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,h]),(0,t.jsx)(m.button,{type:"button",role:"checkbox","aria-checked":z(p)?"mixed":p,"aria-required":f,"data-state":_(p),"data-disabled":c?"":void 0,disabled:c,value:u,...l,ref:x,onKeyDown:o(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:o(i,e=>{h(e=>!!z(e)||!e),b&&y&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})});C.displayName=j;var S=r.forwardRef((e,r)=>{let{__scopeCheckbox:n,name:a,checked:i,defaultChecked:o,required:l,disabled:s,value:d,onCheckedChange:u,form:c,...p}=e;return(0,t.jsx)(w,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:s,required:l,onCheckedChange:u,name:a,form:c,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{...p,ref:r,__scopeCheckbox:n}),e&&(0,t.jsx)(D,{__scopeCheckbox:n})]})})});S.displayName=v;var R="CheckboxIndicator",E=r.forwardRef((e,r)=>{let{__scopeCheckbox:n,forceMount:a,...i}=e,o=k(R,n);return(0,t.jsx)(c.Presence,{present:a||z(o.checked)||!0===o.checked,children:(0,t.jsx)(m.span,{"data-state":_(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:r,style:{pointerEvents:"none",...e.style}})})});E.displayName=R;var I="CheckboxBubbleInput",D=r.forwardRef(({__scopeCheckbox:e,...n},i)=>{let{control:o,hasConsumerStoppedPropagationRef:l,checked:s,defaultChecked:c,required:p,disabled:f,name:g,value:h,form:v,bubbleInput:y,setBubbleInput:b}=k(I,e),x=a(i,b),w=(0,d.usePrevious)(s),j=(0,u.useSize)(o);r.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!l.current;if(w!==s&&e){let r=new Event("click",{bubbles:t});y.indeterminate=z(s),e.call(y,!z(s)&&s),y.dispatchEvent(r)}},[y,w,s,l]);let C=r.useRef(!z(s)&&s);return(0,t.jsx)(m.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??C.current,required:p,disabled:f,name:g,value:h,form:v,...n,tabIndex:-1,ref:x,style:{...n.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function z(e){return"indeterminate"===e}function _(e){return z(e)?"indeterminate":e?"checked":"unchecked"}D.displayName=I,e.s(["Checkbox",0,S,"CheckboxIndicator",0,E,"Indicator",0,E,"Root",0,S,"createCheckboxScope",0,b,"unstable_BubbleInput",0,D,"unstable_CheckboxBubbleInput",0,D,"unstable_CheckboxProvider",0,w,"unstable_CheckboxTrigger",0,C,"unstable_Provider",0,w,"unstable_Trigger",0,C],388474);var M=e.i(388474),M=M,P=e.i(975157),T=e.i(593698);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)(M.Root,{"data-slot":"checkbox",className:(0,P.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(M.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(T.CheckIcon,{})})})}],59497)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(560964),n=e.i(964053),a=e.i(519455),i=e.i(975157);function o({...e}){return(0,t.jsx)(n.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...r}){return(0,t.jsx)(n.Dialog.Overlay,{className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...r})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(n.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:s,showCloseButton:d=!0,...u}){return(0,t.jsxs)(o,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(n.Dialog.Content,{className:(0,i.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...u,children:[s,d&&(0,t.jsx)(n.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(a.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(n.Dialog.Description,{className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...r})},"DialogFooter",0,function({className:e,showCloseButton:r=!1,children:o,...l}){return(0,t.jsxs)("div",{className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...l,children:[o,r&&(0,t.jsx)(n.Dialog.Close,{asChild:!0,children:(0,t.jsx)(a.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(n.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...r})}])},77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},515281,e=>{"use strict";let t=(0,e.i(456420).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],515281)},768877,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],768877)},851817,882505,808562,e=>{"use strict";var t=e.i(456420);let r=(0,t.default)("grid-2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);e.s(["Grid2X2",0,r],851817);let n=(0,t.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["List",0,n],882505);var a=e.i(843476),i=e.i(271645),o=e.i(30030);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var s=Symbol.for("radix.slottable"),d=Symbol.for("react.lazy");function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===d&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=i[" use ".trim().toString()],p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r;let n,o=(r=`Primitive.${t}`,(n=i.forwardRef((e,t)=>{var n;let a,o,{children:d,...p}=e,f=null,g=!1,h=[];u(d)&&"function"==typeof c&&(d=c(d._payload)),i.Children.forEach(d,e=>{var t;if(t=e,i.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===s){g=!0;let t="child"in e.props?e.props.child:e.props.children;u(t)&&"function"==typeof c&&(t=c(t._payload)),f=((e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null})(e,t),h.push(f?.props?.children)}else h.push(e)}),f?f=i.cloneElement(f,void 0,h):!g&&1===i.Children.count(d)&&i.isValidElement(d)&&(f=d);let m=f?(n=f,(o=(a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.ref:(o=(a=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.props.ref:n.props.ref||n.ref):void 0,v=function(...e){return i.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=l(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():l(e[t],null)}}}}(...e),e)}(t,m);if(!f){if(d||0===d){let e,t;throw Error(g?(e=r,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=r,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return d}let y=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(p,f.props??{});return f.type!==i.Fragment&&(y.ref=t?v:m),i.cloneElement(f,y)})).displayName=`${r}.Slot`,n),d=i.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(n?o:t,{...i,ref:r})});return d.displayName=`Primitive.${t}`,{...e,[t]:d}},{}),f=e.i(842727);"u">typeof window&&window.document&&window.document.createElement;var g=globalThis?.document?i.useLayoutEffect:()=>{};i[" useEffectEvent ".trim().toString()],i[" useInsertionEffect ".trim().toString()];var h=i[" useInsertionEffect ".trim().toString()]||g;function m({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,o,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),a=i.useRef(r),o=i.useRef(t);return h(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}({defaultProp:t,onChange:r}),s=void 0!==e,d=s?e:a;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,n])}return[d,i.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else o(t)},[s,e,o,l])]}Symbol("RADIX:SYNC_STATE");var v="Toggle",y=i.forwardRef((e,t)=>{let{pressed:r,defaultPressed:n,onPressedChange:i,...o}=e,[l,s]=m({prop:r,onChange:i,defaultProp:n??!1,caller:v});return(0,a.jsx)(p.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)}}(e.onClick,()=>{e.disabled||s(!l)})})});y.displayName=v;var b=e.i(586318),x="ToggleGroup",[k,w]=(0,o.createContextScope)(x,[f.createRovingFocusGroupScope]),j=(0,f.createRovingFocusGroupScope)(),C=i.forwardRef((e,t)=>{let{type:r,...n}=e;if("single"===r)return(0,a.jsx)(E,{role:"radiogroup",...n,ref:t});if("multiple"===r)return(0,a.jsx)(I,{role:"toolbar",...n,ref:t});throw Error(`Missing prop \`type\` expected on \`${x}\``)});C.displayName=x;var[S,R]=k(x),E=i.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:o=()=>{},...l}=e,[s,d]=m({prop:r,defaultProp:n??"",onChange:o,caller:x});return(0,a.jsx)(S,{scope:e.__scopeToggleGroup,type:"single",value:i.useMemo(()=>s?[s]:[],[s]),onItemActivate:d,onItemDeactivate:i.useCallback(()=>d(""),[d]),children:(0,a.jsx)(_,{...l,ref:t})})}),I=i.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:o=()=>{},...l}=e,[s,d]=m({prop:r,defaultProp:n??[],onChange:o,caller:x}),u=i.useCallback(e=>d((t=[])=>[...t,e]),[d]),c=i.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,a.jsx)(S,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:u,onItemDeactivate:c,children:(0,a.jsx)(_,{...l,ref:t})})});C.displayName=x;var[D,z]=k(x),_=i.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:i=!0,orientation:o,dir:l,loop:s=!0,...d}=e,u=j(r),c=(0,b.useDirection)(l),g={dir:c,...d};return(0,a.jsx)(D,{scope:r,rovingFocus:i,disabled:n,children:i?(0,a.jsx)(f.Root,{asChild:!0,...u,orientation:o,dir:c,loop:s,children:(0,a.jsx)(p.div,{...g,ref:t})}):(0,a.jsx)(p.div,{...g,ref:t})})}),M="ToggleGroupItem",P=i.forwardRef((e,t)=>{let r=R(M,e.__scopeToggleGroup),n=z(M,e.__scopeToggleGroup),o=j(e.__scopeToggleGroup),l=r.value.includes(e.value),s=n.disabled||e.disabled,d={...e,pressed:l,disabled:s},u=i.useRef(null);return n.rovingFocus?(0,a.jsx)(f.Item,{asChild:!0,...o,focusable:!s,active:l,ref:u,children:(0,a.jsx)(T,{...d,ref:t})}):(0,a.jsx)(T,{...d,ref:t})});P.displayName=M;var T=i.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:n,...i}=e,o=R(M,r),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===o.type?l:void 0;return(0,a.jsx)(y,{...s,...i,ref:t,onPressedChange:e=>{e?o.onItemActivate(n):o.onItemDeactivate(n)}})});e.s(["Item",0,P,"Root",0,C,"ToggleGroup",0,C,"ToggleGroupItem",0,P,"createToggleGroupScope",0,w],459881);var $=e.i(459881),$=$,N=e.i(975157),B=e.i(225913);"u">typeof window&&window.document&&window.document.createElement;var A=globalThis?.document?i.useLayoutEffect:()=>{};i[" useEffectEvent ".trim().toString()],i[" useInsertionEffect ".trim().toString()];var q=i[" useInsertionEffect ".trim().toString()]||A;Symbol("RADIX:SYNC_STATE");var V=e.i(743556),G=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,V.createSlot)(`Primitive.${t}`),n=i.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),O="Toggle",L=i.forwardRef((e,t)=>{let{pressed:r,defaultPressed:n,onPressedChange:o,...l}=e,[s,d]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,o,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),a=i.useRef(r),o=i.useRef(t);return q(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}({defaultProp:t,onChange:r}),s=void 0!==e,d=s?e:a;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,n])}return[d,i.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else o(t)},[s,e,o,l])]}({prop:r,onChange:o,defaultProp:n??!1,caller:O});return(0,a.jsx)(G.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...l,ref:t,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)}}(e.onClick,()=>{e.disabled||d(!s)})})});L.displayName=O,e.s(["Root",0,L,"Toggle",0,L],864225),e.i(864225);let F=(0,B.cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),H=i.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:t,size:r,spacing:n=2,orientation:i="horizontal",children:o,...l}){return(0,a.jsx)($.Root,{"data-slot":"toggle-group","data-variant":t,"data-size":r,"data-spacing":n,"data-orientation":i,style:{"--gap":n},className:(0,N.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...l,children:(0,a.jsx)(H.Provider,{value:{variant:t,size:r,spacing:n,orientation:i},children:o})})},"ToggleGroupItem",0,function({className:e,children:t,variant:r="default",size:n="default",...o}){let l=i.useContext(H);return(0,a.jsx)($.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||r,"data-size":l.size||n,"data-spacing":l.spacing,className:(0,N.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",F({variant:l.variant||r,size:l.size||n}),e),...o,children:t})}],808562)}]);