@ai-development-environment/server 0.0.56 → 0.0.57

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 (240) hide show
  1. package/package.json +1 -1
  2. package/standalone/.next/BUILD_ID +1 -1
  3. package/standalone/.next/app-path-routes-manifest.json +2 -0
  4. package/standalone/.next/build-manifest.json +3 -3
  5. package/standalone/.next/prerender-manifest.json +3 -3
  6. package/standalone/.next/routes-manifest.json +18 -0
  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]/actions-cache/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/app-paths-manifest.json +3 -0
  22. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/build-manifest.json +9 -0
  23. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/server-reference-manifest.json +4 -0
  24. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js +12 -0
  25. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.map +5 -0
  26. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.nft.json +1 -0
  27. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route_client-reference-manifest.js +3 -0
  28. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  29. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  30. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  31. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  32. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  33. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  34. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  35. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  36. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  37. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  38. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page.js.nft.json +1 -1
  39. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page_client-reference-manifest.js +1 -1
  40. package/standalone/.next/server/app/[locale]/commands/new/page.js.nft.json +1 -1
  41. package/standalone/.next/server/app/[locale]/commands/new/page_client-reference-manifest.js +1 -1
  42. package/standalone/.next/server/app/[locale]/commands/page.js.nft.json +1 -1
  43. package/standalone/.next/server/app/[locale]/commands/page_client-reference-manifest.js +1 -1
  44. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/app-paths-manifest.json +3 -0
  45. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/build-manifest.json +9 -0
  46. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/server-reference-manifest.json +4 -0
  47. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js +12 -0
  48. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.map +5 -0
  49. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.nft.json +1 -0
  50. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route_client-reference-manifest.js +3 -0
  51. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page.js.nft.json +1 -1
  52. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page_client-reference-manifest.js +1 -1
  53. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  54. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  55. package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
  56. package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
  57. package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -1
  58. package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +1 -1
  59. package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
  60. package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
  61. package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
  62. package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
  63. package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
  64. package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
  65. package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
  66. package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
  67. package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
  68. package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
  69. package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
  70. package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
  71. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
  72. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  73. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  74. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  75. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  76. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  77. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
  78. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  79. package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
  80. package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
  81. package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
  82. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  83. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
  84. package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
  85. package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
  86. package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
  87. package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
  88. package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
  89. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  90. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
  91. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
  92. package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
  93. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  94. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  95. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  96. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  97. package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
  98. package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
  99. package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
  100. package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
  101. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
  102. package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
  103. package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
  104. package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
  105. package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
  106. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  107. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
  108. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  109. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
  110. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  111. package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
  112. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  113. package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
  114. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  115. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
  116. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  117. package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
  118. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  119. package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
  120. package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
  121. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  122. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  123. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page.js.nft.json +1 -1
  124. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page_client-reference-manifest.js +1 -1
  125. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page.js.nft.json +1 -1
  126. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page_client-reference-manifest.js +1 -1
  127. package/standalone/.next/server/app/[locale]/workflows/new/page.js.nft.json +1 -1
  128. package/standalone/.next/server/app/[locale]/workflows/new/page_client-reference-manifest.js +1 -1
  129. package/standalone/.next/server/app/[locale]/workflows/page.js.nft.json +1 -1
  130. package/standalone/.next/server/app/[locale]/workflows/page_client-reference-manifest.js +1 -1
  131. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page.js.nft.json +1 -1
  132. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page_client-reference-manifest.js +1 -1
  133. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  134. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  135. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  136. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  137. package/standalone/.next/server/app/_global-error.html +1 -1
  138. package/standalone/.next/server/app/_global-error.rsc +1 -1
  139. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  140. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  141. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  142. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  143. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  144. package/standalone/.next/server/app/_not-found.html +1 -1
  145. package/standalone/.next/server/app/_not-found.rsc +1 -1
  146. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  147. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  148. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  149. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  150. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  151. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  152. package/standalone/.next/server/app-paths-manifest.json +2 -0
  153. package/standalone/.next/server/chunks/1oeh_server_app_[locale]_commands_runs_[runId]_output_route_actions_1cukkg_.js +3 -0
  154. package/standalone/.next/server/chunks/[root-of-the-server]__0690e_i._.js +3 -0
  155. package/standalone/.next/server/chunks/[root-of-the-server]__0g-b1k_._.js +3 -0
  156. package/standalone/.next/server/chunks/[root-of-the-server]__0jwejc1._.js +3 -0
  157. package/standalone/.next/server/chunks/[root-of-the-server]__19aveol._.js +3 -0
  158. package/standalone/.next/server/chunks/[root-of-the-server]__1d8yo1w._.js +3 -0
  159. package/standalone/.next/server/chunks/[root-of-the-server]__1gjcicg._.js +3 -0
  160. package/standalone/.next/server/chunks/[root-of-the-server]__1kb6o8v._.js +3 -0
  161. package/standalone/.next/server/chunks/[root-of-the-server]__1m-eb8h._.js +3 -0
  162. package/standalone/.next/server/chunks/[root-of-the-server]__1tl064i._.js +3 -0
  163. package/standalone/.next/server/chunks/[root-of-the-server]__1y28_j-._.js +3 -0
  164. package/standalone/.next/server/chunks/_04easfx._.js +1 -1
  165. package/standalone/.next/server/chunks/_060s_2_._.js +1 -1
  166. package/standalone/.next/server/chunks/_0mno1rd._.js +1 -1
  167. package/standalone/.next/server/chunks/_17vom8o._.js +1 -1
  168. package/standalone/.next/server/chunks/_1_97_xc._.js +1 -1
  169. package/standalone/.next/server/chunks/_1hmzed-._.js +1 -1
  170. package/standalone/.next/server/chunks/_1ua7367._.js +1 -1
  171. package/standalone/.next/server/chunks/_next-internal_server_app_[locale]_builds_[buildId]_output_route_actions_1taut05.js +3 -0
  172. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__12ujp5k._.js → [root-of-the-server]__0lmk9bz._.js} +2 -2
  173. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__163pha9._.js → [root-of-the-server]__1102h2k._.js} +10 -2
  174. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__04vu2d2._.js → [root-of-the-server]__1246vo_._.js} +2 -2
  175. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1zdw3xq._.js → [root-of-the-server]__13y5te1._.js} +2 -2
  176. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__14x7em1._.js → [root-of-the-server]__15g2tdw._.js} +2 -2
  177. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1urzzjr._.js → [root-of-the-server]__1c5ldng._.js} +2 -2
  178. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0szkx1z._.js → [root-of-the-server]__1etlhw0._.js} +2 -2
  179. package/standalone/.next/server/chunks/ssr/_02c2d4f._.js +24 -0
  180. package/standalone/.next/server/chunks/ssr/{_0mpp4zy._.js → _046yruk._.js} +3 -3
  181. package/standalone/.next/server/chunks/ssr/{_17qauas._.js → _04o65jz._.js} +2 -2
  182. package/standalone/.next/server/chunks/ssr/{_1i8x-4q._.js → _0bobqfl._.js} +3 -3
  183. package/standalone/.next/server/chunks/ssr/{_0u5fbj1._.js → _0lkknxk._.js} +2 -2
  184. package/standalone/.next/server/chunks/ssr/_0ywojby._.js +24 -0
  185. package/standalone/.next/server/chunks/ssr/{_0ts0l7b._.js → _0zjisu4._.js} +2 -2
  186. package/standalone/.next/server/chunks/ssr/{_182yko5._.js → _18cp9pu._.js} +2 -2
  187. package/standalone/.next/server/chunks/ssr/_1eryu4w._.js +19 -0
  188. package/standalone/.next/server/chunks/ssr/{_0cc1vi6._.js → _1l052-e._.js} +2 -2
  189. package/standalone/.next/server/chunks/ssr/_1lic210._.js +3 -0
  190. package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +10 -10
  191. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  192. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  193. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  194. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  195. package/standalone/.next/server/chunks/ssr/node_modules_0k28hjd._.js +3 -0
  196. package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +5 -5
  197. package/standalone/.next/server/functions-config-manifest.json +2 -0
  198. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  199. package/standalone/.next/server/pages/404.html +1 -1
  200. package/standalone/.next/server/pages/500.html +1 -1
  201. package/standalone/.next/server/server-reference-manifest.js +1 -1
  202. package/standalone/.next/server/server-reference-manifest.json +1 -1
  203. package/standalone/.next/static/chunks/{0n2u5wjjmaseb.js → 04zmk6cyju031.js} +1 -1
  204. package/standalone/.next/static/chunks/{09q-nz-e_tbiy.js → 0f6x_7136ws5e.js} +1 -1
  205. package/standalone/.next/static/chunks/{3tfj2uhflnkvu.js → 0fm8vlctux_d4.js} +7 -7
  206. package/standalone/.next/static/chunks/{27a270srtknzi.js → 0k-tj18pj2jw3.js} +3 -3
  207. package/standalone/.next/static/chunks/{3r2wqa5gcorck.js → 0ntu55tvqo74a.js} +7 -7
  208. package/standalone/.next/static/chunks/0qo8_-dnk-8es.js +22 -0
  209. package/standalone/.next/static/chunks/{1kwddx0lygohb.js → 12pz55savz83-.js} +1 -1
  210. package/standalone/.next/static/chunks/18-qgh9p9g9gn.js +17 -0
  211. package/standalone/.next/static/chunks/{0tm88xq1je0ik.js → 1ehd9ff-t9y4q.js} +1 -1
  212. package/standalone/.next/static/chunks/{3ege33ljteolq.js → 1gsma655t74si.js} +1 -1
  213. package/standalone/.next/static/chunks/{1mmo8lspdk0y2.js → 1kas2cg1m9t70.js} +8 -8
  214. package/standalone/.next/static/chunks/{446mel_yhca9u.js → 2a7-21p5ltjf0.js} +2 -2
  215. package/standalone/.next/static/chunks/{3_tux_4hkdpja.js → 2buxoh6cj1vav.js} +1 -1
  216. package/standalone/.next/static/chunks/{1-v397t7o9cqz.js → 2grj-b5r57kpq.js} +2 -2
  217. package/standalone/.next/static/chunks/2kc9nohdlg9t0.js +1 -0
  218. package/standalone/.next/static/chunks/{3o8__1my6dk1_.js → 2yqx6j1xnzns8.js} +1 -1
  219. package/standalone/.next/static/chunks/{2ne14u5xzix6t.js → 3atzn4uq1z4g-.js} +1 -1
  220. package/standalone/.next/static/chunks/3cuivj8-h9d2a.js +1 -0
  221. package/standalone/.next/static/chunks/{1y-end2fvx0wt.js → 3kz00cbmpyo2-.js} +1 -1
  222. package/standalone/.next/static/chunks/{26dvl4pn5yw16.js → 3nxz8k1j8fgad.js} +7 -7
  223. package/standalone/.next/static/chunks/3sr3c0rfmkyg2.js +23 -0
  224. package/standalone/.next/static/chunks/3xx3qtf7ebz58.css +1 -0
  225. package/standalone/.next/server/chunks/ssr/_03tz2ed._.js +0 -3
  226. package/standalone/.next/server/chunks/ssr/_0_7xzsn._.js +0 -19
  227. package/standalone/.next/server/chunks/ssr/_0brpuee._.js +0 -24
  228. package/standalone/.next/server/chunks/ssr/_0jklnn-._.js +0 -11
  229. package/standalone/.next/server/chunks/ssr/_0qppm0k._.js +0 -24
  230. package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_react-menu_dist_index_mjs_0r8d9ly._.js +0 -3
  231. package/standalone/.next/server/chunks/ssr/src_096v3r6._.js +0 -3
  232. package/standalone/.next/static/chunks/0oyi9lj201nul.css +0 -1
  233. package/standalone/.next/static/chunks/168hnxx43r6g0.js +0 -27
  234. package/standalone/.next/static/chunks/193zouh7q03-q.js +0 -22
  235. package/standalone/.next/static/chunks/19fy68juspikd.js +0 -23
  236. package/standalone/.next/static/chunks/1c42xu-oct3-l.js +0 -1
  237. package/standalone/.next/static/chunks/33u7b61cg10r7.js +0 -17
  238. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_buildManifest.js +0 -0
  239. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_clientMiddlewareManifest.js +0 -0
  240. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_ssgManifest.js +0 -0
@@ -0,0 +1,17 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,487812,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(705844),n=e.i(981140),o=e.i(30030),i=e.i(248425),s=e.i(832006),l=e.i(369340),d=Object.defineProperty,u=(e,t)=>d(e,"name",{value:t,configurable:!0}),c="ContextMenu",[h,p]=(0,o.createContextScope)(c,[s.createMenuScope]),f=(0,s.createMenuScope)(),[x,m]=h(c),y=u(e=>{let{__scopeContextMenu:n,children:o,onOpenChange:i,open:d,dir:u,modal:h=!0}=e,p=a.useRef(!1);if(r.IS_DEVELOPMENT){let e=a.useRef(!1);a.useEffect(()=>{!0!==d||p.current||e.current||(e.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."))},[d])}let[m,y]=(0,l.useControllableState)({prop:d,defaultProp:!1,onChange:i,caller:c}),g=f(n);return(0,t.jsx)(x,{scope:n,open:m,onOpenChange:y,modal:h,hasInteractedRef:p,children:(0,t.jsx)(s.Root,{...g,dir:u,open:m,onOpenChange:y,modal:h,children:o})})},"ContextMenu"),g=a.forwardRef(u(function(e,r){let{__scopeContextMenu:o,disabled:l=!1,...d}=e,c=m("ContextMenuTrigger",o),h=f(o),[p,x]=a.useState({x:0,y:0}),y=a.useMemo(()=>({current:{getBoundingClientRect:u(()=>DOMRect.fromRect({width:0,height:0,...p}),"getBoundingClientRect")}}),[p]),g=a.useRef(0),k=a.useCallback(()=>window.clearTimeout(g.current),[]),v=u(e=>{c.hasInteractedRef.current=!0,x({x:e.clientX,y:e.clientY}),c.onOpenChange(!0)},"handleOpen");return a.useEffect(()=>k,[k]),a.useEffect(()=>void(l&&k()),[l,k]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Anchor,{...h,virtualRef:y}),(0,t.jsx)(i.Primitive.span,{"data-state":c.open?"open":"closed","data-disabled":l?"":void 0,...d,ref:r,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:l?e.onContextMenu:(0,n.composeEventHandlers)(e.onContextMenu,e=>{k(),v(e),e.preventDefault()}),onPointerDown:l?e.onPointerDown:(0,n.composeEventHandlers)(e.onPointerDown,E(e=>{k(),c.open&&c.onOpenChange(!1),g.current=window.setTimeout(()=>v(e),700)})),onPointerMove:l?e.onPointerMove:(0,n.composeEventHandlers)(e.onPointerMove,E(k)),onPointerCancel:l?e.onPointerCancel:(0,n.composeEventHandlers)(e.onPointerCancel,E(k)),onPointerUp:l?e.onPointerUp:(0,n.composeEventHandlers)(e.onPointerUp,E(k))})]})},"ContextMenuTrigger")),k=u(e=>{let{__scopeContextMenu:a,...r}=e,n=f(a);return(0,t.jsx)(s.Portal,{...n,...r})},"ContextMenuPortal"),v=a.forwardRef(u(function(e,r){let{__scopeContextMenu:n,...o}=e,i=m("ContextMenuContent",n),l=f(n),d=a.useRef(!1);return(0,t.jsx)(s.Content,{...l,...o,ref:r,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&d.current&&t.preventDefault(),d.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||i.modal||(d.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"ContextMenuContent")),M=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.Group,{...o,...n,ref:a})},"ContextMenuGroup")),b=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.Label,{...o,...n,ref:a})},"ContextMenuLabel")),C=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.Item,{...o,...n,ref:a})},"ContextMenuItem")),w=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.CheckboxItem,{...o,...n,ref:a})},"ContextMenuCheckboxItem")),R=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.RadioGroup,{...o,...n,ref:a})},"ContextMenuRadioGroup")),S=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.RadioItem,{...o,...n,ref:a})},"ContextMenuRadioItem")),j=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.ItemIndicator,{...o,...n,ref:a})},"ContextMenuItemIndicator")),I=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.Separator,{...o,...n,ref:a})},"ContextMenuSeparator")),P=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.Arrow,{...o,...n,ref:a})},"ContextMenuArrow")),A=u(e=>{let{__scopeContextMenu:a,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,d=f(a),[u,c]=(0,l.useControllableState)({prop:o,defaultProp:i??!1,onChange:n,caller:"ContextMenuSub"});return(0,t.jsx)(s.Sub,{...d,open:u,onOpenChange:c,children:r})},"ContextMenuSub"),T=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.SubTrigger,{...o,...n,ref:a})},"ContextMenuSubTrigger")),z=a.forwardRef(u(function(e,a){let{__scopeContextMenu:r,...n}=e,o=f(r);return(0,t.jsx)(s.SubContent,{...o,...n,ref:a,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"ContextMenuSubContent"));function E(e){return t=>"mouse"!==t.pointerType?e(t):void 0}u(E,"whenTouchOrPen"),e.s(["Arrow",0,P,"CheckboxItem",0,w,"Content",0,v,"ContextMenu",0,y,"ContextMenuArrow",0,P,"ContextMenuCheckboxItem",0,w,"ContextMenuContent",0,v,"ContextMenuGroup",0,M,"ContextMenuItem",0,C,"ContextMenuItemIndicator",0,j,"ContextMenuLabel",0,b,"ContextMenuPortal",0,k,"ContextMenuRadioGroup",0,R,"ContextMenuRadioItem",0,S,"ContextMenuSeparator",0,I,"ContextMenuSub",0,A,"ContextMenuSubContent",0,z,"ContextMenuSubTrigger",0,T,"ContextMenuTrigger",0,g,"Group",0,M,"Item",0,C,"ItemIndicator",0,j,"Label",0,b,"Portal",0,k,"RadioGroup",0,R,"RadioItem",0,S,"Root",0,y,"Separator",0,I,"Sub",0,A,"SubContent",0,z,"SubTrigger",0,T,"Trigger",0,g,"createContextMenuScope",0,p],79602);var B=e.i(79602),B=B,L=e.i(975157);e.i(746336),e.i(593698),e.s(["ContextMenu",0,function({...e}){return(0,t.jsx)(B.Root,{"data-slot":"context-menu",...e})},"ContextMenuContent",0,function({className:e,...a}){return(0,t.jsx)(B.Portal,{children:(0,t.jsx)(B.Content,{"data-slot":"context-menu-content",className:(0,L.cn)("z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 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),...a})})},"ContextMenuItem",0,function({className:e,inset:a,variant:r="default",...n}){return(0,t.jsx)(B.Item,{"data-slot":"context-menu-item","data-inset":a,"data-variant":r,className:(0,L.cn)("group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",e),...n})},"ContextMenuLabel",0,function({className:e,inset:a,...r}){return(0,t.jsx)(B.Label,{"data-slot":"context-menu-label","data-inset":a,className:(0,L.cn)("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",e),...r})},"ContextMenuSeparator",0,function({className:e,...a}){return(0,t.jsx)(B.Separator,{"data-slot":"context-menu-separator",className:(0,L.cn)("-mx-1 my-1 h-px bg-border",e),...a})},"ContextMenuTrigger",0,function({className:e,...a}){return(0,t.jsx)(B.Trigger,{"data-slot":"context-menu-trigger",className:(0,L.cn)("select-none",e),...a})}],487812)},634398,e=>{"use strict";let t=(0,e.i(456420).default)("git-pull-request",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);e.s(["GitPullRequest",0,t],634398)},328623,e=>{"use strict";let t=(0,e.i(456420).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],328623)},93384,e=>{"use strict";let t=(0,e.i(456420).default)("hammer",[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]);e.s(["Hammer",0,t],93384)},835079,e=>{"use strict";let t=(0,e.i(456420).default)("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);e.s(["FolderGit2",0,t],835079)},397142,e=>{"use strict";let t=(0,e.i(456420).default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);e.s(["Cpu",0,t],397142)},55677,e=>{"use strict";let t=(0,e.i(456420).default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);e.s(["ClipboardList",0,t],55677)},42693,549676,443537,932333,e=>{"use strict";var t=e.i(456420);let a=(0,t.default)("blocks",[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]);e.s(["Blocks",0,a],42693);let r=(0,t.default)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]);e.s(["MousePointerClick",0,r],549676);let n=(0,t.default)("ticket-check",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["TicketCheck",0,n],443537);let o=(0,t.default)("waypoints",[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]]);e.s(["Waypoints",0,o],932333)},187921,e=>{"use strict";let t=(0,e.i(456420).default)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",0,t])},263676,e=>{"use strict";var t=e.i(814387);e.s(["X",()=>t.default])},302747,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Skeleton",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("animate-pulse rounded-md bg-muted",e),...r})}])},166794,e=>{"use strict";let t=(0,e.i(456420).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,t],166794)},259911,e=>{"use strict";let t=(0,e.i(456420).default)("file-pen-line",[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]]);e.s(["FilePenLine",0,t],259911)},986206,e=>{"use strict";let t=(0,e.i(456420).default)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);e.s(["Smartphone",0,t],986206)},584026,e=>{"use strict";let t=(0,e.i(456420).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],584026)},747925,e=>{"use strict";let t=(0,e.i(456420).default)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);e.s(["Wrench",0,t],747925)},604139,e=>{"use strict";let t=(0,e.i(456420).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",0,t],604139)},940276,e=>{"use strict";e.s(["findWorktreeOverviewEntry",0,function(e,t){for(let a of e.agents)for(let e of a.codebases){let r=e.worktrees.find(e=>e.id===t);if(r)return{agentGroup:a,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)}`}])},758925,e=>{"use strict";let t=(0,e.i(456420).default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",0,t],758925)},902434,e=>{"use strict";let t=(0,e.i(456420).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["default",0,t])},567745,e=>{"use strict";let t=(0,e.i(456420).default)("database-zap",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]]);e.s(["DatabaseZap",0,t],567745)},809584,e=>{"use strict";let t=(0,e.i(456420).default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",0,t],809584)},539494,261751,e=>{"use strict";let t=`
2
+ settings { normalThresholdGiB pressureThresholdGiB pollIntervalSeconds staleAfterSeconds }
3
+ agents {
4
+ agent { id name hostname connectionStatus }
5
+ enabled status pressureMode manualPressureMode automaticPressureMode
6
+ lastReportedAt lastError warnings
7
+ volumes { id totalBytes freeBytes roles paths status effectiveThresholdBytes monitored }
8
+ }
9
+ `,a=`
10
+ agent { id name hostname connectionStatus }
11
+ enabled status pressureMode manualPressureMode automaticPressureMode
12
+ lastReportedAt lastError warnings
13
+ volumes { id totalBytes freeBytes roles paths status effectiveThresholdBytes monitored }
14
+ `;e.s(["AGENT_DISK_SPACE_FIELDS",0,a,"DISK_SPACE_FIELDS",0,t,"monitoredVolume",0,function(e){return e.volumes.filter(e=>e.monitored).sort((e,t)=>e.freeBytes-t.freeBytes)[0]??null}],539494);var r=e.i(843476),n=e.i(861745),o=e.i(948148),i=e.i(487486),s=e.i(975157);function l(e,t){return`${new Intl.NumberFormat(t,{maximumFractionDigits:1}).format(e/0x40000000)} GiB`}function d(e){return"CRITICAL"===e||"ERROR"===e?"bg-destructive":"PRESSURE"===e||"CLEANUP_REQUIRED"===e||"DELETING"===e?"bg-amber-500":"DISABLED"===e||"STALE"===e?"bg-muted-foreground":"bg-emerald-500"}e.s(["VolumeBar",0,function({volume:e,compact:t=!1,hideLabel:a=!1,hideStatus:u=!1}){let c=(0,n.useLocale)(),h=(0,o.useTranslations)("diskSpace"),p=e.totalBytes>0?Math.max(0,Math.min(100,(e.totalBytes-e.freeBytes)/e.totalBytes*100)):0,f=e.roles.map(e=>h(`role.${e}`)).join(", ");return(0,r.jsxs)("div",{className:(0,s.cn)("space-y-1.5",t&&"space-y-1"),children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2 text-xs",children:[!a&&(0,r.jsx)("span",{className:"truncate font-medium",children:f||h("volume")}),(0,r.jsxs)("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:[l(e.freeBytes,c)," ",h("freeOf")," ",l(e.totalBytes,c)]})]}),(0,r.jsx)("div",{"aria-label":h("usageLabel",{percent:Math.round(p)}),className:"h-2 overflow-hidden rounded-full bg-muted",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(p),children:(0,r.jsx)("div",{className:(0,s.cn)("h-full rounded-full transition-[width]",e.monitored?d(e.status):"bg-muted-foreground/40"),style:{width:`${p}%`}})}),!t&&(!u||e.paths.length>0)&&(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[!u&&(0,r.jsx)(i.Badge,{variant:e.monitored?"secondary":"outline",children:e.monitored?h(`status.${e.status}`):h("notMonitored")}),e.paths.map(e=>(0,r.jsx)("span",{className:"break-all font-mono text-[11px] text-muted-foreground",children:e},e))]})]})},"diskStatusColor",0,d,"formatDiskBytes",0,l],261751)},966473,e=>{"use strict";var t=e.i(187921);e.s(["PlayCircle",()=>t.default])},927735,e=>{"use strict";let t=(0,e.i(456420).default)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]);e.s(["MessageSquareText",0,t],927735)},150285,e=>{"use strict";let t=(0,e.i(456420).default)("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]);e.s(["HardDrive",0,t],150285)},97194,302493,e=>{"use strict";let t=(0,e.i(456420).default)("bell-ring",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]]);e.s(["BellRing",0,t],97194);let a=`
15
+ id typeKey title body href resourceKind resourceId worktreeId highlightColor
16
+ sidebarRequested browserRequested webPushRequested sidebarDismissedAt createdAt updatedAt
17
+ `;e.s(["APP_NOTIFICATION_FIELDS",0,a],302493)}]);
@@ -22,7 +22,7 @@
22
22
  agent { id name hostname connectionStatus capabilities }
23
23
  worktree { id folder branch highlightColor }
24
24
  attempts { id attempt status exitCode signal error startedAt finishedAt }
25
- `;e.s(["COMMAND_DEFINITION_FIELDS",0,t,"COMMAND_RUN_FIELDS",0,a,"activeCommandRun",0,e=>["QUEUED","RUNNING","RESTARTING","CANCELLING"].includes(e),"commandOriginKey",0,e=>{switch(e){case"QUICK_ACTION":return"originQuickAction";case"WORKFLOW":return"originWorkflow";case"RERUN":return"originRerun";default:return"originManual"}},"commandRestartKey",0,e=>{switch(e){case"ON_FAILURE":return"onFailure";case"ALWAYS":return"always";default:return"never"}},"commandStatusKey",0,e=>{switch(e){case"QUEUED":return"statusQueued";case"RUNNING":return"statusRunning";case"RESTARTING":return"statusRestarting";case"CANCELLING":return"statusCancelling";case"SUCCEEDED":return"statusSucceeded";case"FAILED":return"statusFailed";case"CANCELLED":return"statusCancelled";case"TIMED_OUT":return"statusTimedOut";default:return"status"}},"commandTargetKey",0,e=>{switch(e){case"ANY_AGENT_HOME":return"anyAgentHome";case"SPECIFIC_AGENT_HOME":return"specificAgentHome";case"REPOSITORY_WORKTREE":return"repositoryWorktree";default:return"anyWorktree"}}])},653269,e=>{"use strict";var t=e.i(843476),a=e.i(948148),r=e.i(271645),i=e.i(687862),n=e.i(929592),s=e.i(519455),l=e.i(515288),o=e.i(987968),d=e.i(520133),c=e.i(637611),u=e.i(183691);e.s(["CommandQuickActions",0,function({agentId:e,worktreeId:m,agentCapabilities:g,title:p,description:h}){let x=(0,a.useTranslations)("commands"),[f,b]=(0,r.useState)([]),[v,j]=(0,r.useState)(null),[y,C]=(0,r.useState)({}),[w,I]=(0,r.useState)(null),k=g.includes("command.run");(0,r.useEffect)(()=>{let t=e?`query AgentCommandQuickActions($id: ID!) { eligibleCommandsForAgent(agentId: $id) { ${u.COMMAND_DEFINITION_FIELDS} } }`:`query WorktreeCommandQuickActions($id: ID!) { eligibleCommandsForWorktree(worktreeId: $id) { ${u.COMMAND_DEFINITION_FIELDS} } }`;Promise.resolve((0,c.controlPlaneRequest)(t,{id:e??m})).then(e=>{e&&b((e.eligibleCommandsForAgent??e.eligibleCommandsForWorktree??[]).filter(e=>e.quickActionEnabled))}).catch(e=>I(e instanceof Error?e.message:String(e)))},[e,m]);let S=async t=>{j(t.id);try{let a=await (0,c.controlPlaneRequest)("mutation RunCommandQuickAction($input: StartCommandRunInput!) { startCommandRun(input: $input) { id } }",{input:{commandId:t.id,origin:"QUICK_ACTION",...e?{agentId:e}:{worktreeId:m}}});C(e=>({...e,[t.id]:a.startCommandRun.id})),I(null)}catch(e){I(e instanceof Error?e.message:String(e))}finally{j(null)}};if(!f.length&&!w)return null;let N=(0,t.jsxs)("div",{className:"w-full space-y-2",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[f.map(e=>{let a=y[e.id];return(0,t.jsxs)("div",{className:"flex",children:[a&&(0,t.jsx)(s.Button,{asChild:!0,className:"rounded-r-none",size:"sm",variant:"outline",children:(0,t.jsxs)(d.Link,{href:`/commands/runs/${a}`,children:[(0,t.jsx)(o.Spinner,{}),x("view")]})}),(0,t.jsxs)(s.Button,{className:a?"-ml-px rounded-l-none":void 0,disabled:!k||null!==v,onClick:t=>{t.preventDefault(),t.stopPropagation(),S(e)},size:"sm",title:k?e.description||e.name:x("upgradeAgentTitle"),variant:["default","outline","secondary","destructive"].includes(e.quickActionButtonVariant)?e.quickActionButtonVariant:"default",children:[v===e.id?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(i.ConfigurationIcon,{iconKey:e.quickActionIconKey})," ",e.name]})]},e.id)}),!k&&f.length>0&&(0,t.jsx)("span",{className:"self-center text-xs text-muted-foreground",children:x("upgradeAgent")})]}),w&&(0,t.jsx)(n.Alert,{variant:"destructive",children:(0,t.jsx)(n.AlertDescription,{children:w})})]});return p?(0,t.jsxs)(l.Card,{children:[(0,t.jsxs)(l.CardHeader,{children:[(0,t.jsx)(l.CardTitle,{children:p}),h&&(0,t.jsx)(l.CardDescription,{children:h})]}),(0,t.jsx)(l.CardContent,{children:N})]}):N}])},560972,e=>{"use strict";let t=(0,e.i(456420).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["default",0,t])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},647776,e=>{"use strict";var t=e.i(843476),a=e.i(716327),r=e.i(482022),i=e.i(395925),n=e.i(948148),s=e.i(271645),l=e.i(487486),o=e.i(519455),d=e.i(755146),c=e.i(987968),u=e.i(746798),m=e.i(637611);function g({pipeline:e,repositoryId:a,onPipelineRetried:r,onError:l}){let d=(0,n.useTranslations)("pullRequests"),[p,h]=(0,s.useState)(!1),x=async t=>{if(t.stopPropagation(),e.canRetry&&e.checkSuiteId){h(!0);try{let t=await (0,m.controlPlaneRequest)(`mutation RetryGitHubPipeline(
25
+ `;e.s(["COMMAND_DEFINITION_FIELDS",0,t,"COMMAND_RUN_FIELDS",0,a,"activeCommandRun",0,e=>["QUEUED","RUNNING","RESTARTING","CANCELLING"].includes(e),"commandOriginKey",0,e=>{switch(e){case"QUICK_ACTION":return"originQuickAction";case"WORKFLOW":return"originWorkflow";case"RERUN":return"originRerun";default:return"originManual"}},"commandRestartKey",0,e=>{switch(e){case"ON_FAILURE":return"onFailure";case"ALWAYS":return"always";default:return"never"}},"commandStatusKey",0,e=>{switch(e){case"QUEUED":return"statusQueued";case"RUNNING":return"statusRunning";case"RESTARTING":return"statusRestarting";case"CANCELLING":return"statusCancelling";case"SUCCEEDED":return"statusSucceeded";case"FAILED":return"statusFailed";case"CANCELLED":return"statusCancelled";case"TIMED_OUT":return"statusTimedOut";default:return"status"}},"commandTargetKey",0,e=>{switch(e){case"ANY_AGENT_HOME":return"anyAgentHome";case"SPECIFIC_AGENT_HOME":return"specificAgentHome";case"REPOSITORY_WORKTREE":return"repositoryWorktree";default:return"anyWorktree"}}])},653269,e=>{"use strict";var t=e.i(843476),a=e.i(948148),r=e.i(271645),i=e.i(687862),n=e.i(929592),s=e.i(519455),l=e.i(515288),o=e.i(987968),d=e.i(520133),c=e.i(637611),u=e.i(183691);e.s(["CommandQuickActions",0,function({agentId:e,worktreeId:m,agentCapabilities:g,title:p,description:h}){let x=(0,a.useTranslations)("commands"),[f,b]=(0,r.useState)([]),[v,j]=(0,r.useState)(null),[y,C]=(0,r.useState)({}),[w,I]=(0,r.useState)(null),k=g.includes("command.run");(0,r.useEffect)(()=>{let t=e?`query AgentCommandQuickActions($id: ID!) { eligibleCommandsForAgent(agentId: $id) { ${u.COMMAND_DEFINITION_FIELDS} } }`:`query WorktreeCommandQuickActions($id: ID!) { eligibleCommandsForWorktree(worktreeId: $id) { ${u.COMMAND_DEFINITION_FIELDS} } }`;Promise.resolve((0,c.controlPlaneRequest)(t,{id:e??m})).then(e=>{e&&b((e.eligibleCommandsForAgent??e.eligibleCommandsForWorktree??[]).filter(e=>e.quickActionEnabled))}).catch(e=>I(e instanceof Error?e.message:String(e)))},[e,m]);let S=async t=>{j(t.id);try{let a=await (0,c.controlPlaneRequest)("mutation RunCommandQuickAction($input: StartCommandRunInput!) { startCommandRun(input: $input) { id } }",{input:{commandId:t.id,origin:"QUICK_ACTION",...e?{agentId:e}:{worktreeId:m}}});C(e=>({...e,[t.id]:a.startCommandRun.id})),I(null)}catch(e){I(e instanceof Error?e.message:String(e))}finally{j(null)}};if(!f.length&&!w)return null;let N=(0,t.jsxs)("div",{className:"w-full space-y-2",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[f.map(e=>{let a=y[e.id];return(0,t.jsxs)("div",{className:"flex",children:[a&&(0,t.jsx)(s.Button,{asChild:!0,className:"rounded-r-none",size:"sm",variant:"outline",children:(0,t.jsxs)(d.Link,{href:`/commands/runs/${a}`,children:[(0,t.jsx)(o.Spinner,{}),x("view")]})}),(0,t.jsxs)(s.Button,{className:a?"-ml-px rounded-l-none":void 0,disabled:!k||null!==v,onClick:t=>{t.preventDefault(),t.stopPropagation(),S(e)},size:"sm",title:k?e.description||e.name:x("upgradeAgentTitle"),variant:["default","outline","secondary","destructive"].includes(e.quickActionButtonVariant)?e.quickActionButtonVariant:"default",children:[v===e.id?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(i.ConfigurationIcon,{iconKey:e.quickActionIconKey})," ",e.name]})]},e.id)}),!k&&f.length>0&&(0,t.jsx)("span",{className:"self-center text-xs text-muted-foreground",children:x("upgradeAgent")})]}),w&&(0,t.jsx)(n.Alert,{variant:"destructive",children:(0,t.jsx)(n.AlertDescription,{children:w})})]});return p?(0,t.jsxs)(l.Card,{children:[(0,t.jsxs)(l.CardHeader,{children:[(0,t.jsx)(l.CardTitle,{children:p}),h&&(0,t.jsx)(l.CardDescription,{children:h})]}),(0,t.jsx)(l.CardContent,{children:N})]}):N}])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},647776,e=>{"use strict";var t=e.i(843476),a=e.i(716327),r=e.i(482022),i=e.i(395925),n=e.i(948148),s=e.i(271645),l=e.i(487486),o=e.i(519455),d=e.i(755146),c=e.i(987968),u=e.i(746798),m=e.i(637611);function g({pipeline:e,repositoryId:a,onPipelineRetried:r,onError:l}){let d=(0,n.useTranslations)("pullRequests"),[p,h]=(0,s.useState)(!1),x=async t=>{if(t.stopPropagation(),e.canRetry&&e.checkSuiteId){h(!0);try{let t=await (0,m.controlPlaneRequest)(`mutation RetryGitHubPipeline(
26
26
  $repositoryId: ID!
27
27
  $checkSuiteId: ID!
28
28
  ) {
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),n=e.i(820783),s=e.i(326999),i=e.i(981140),o=Object.defineProperty,l=(e,t)=>o(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[s.createDialogScope]),u=(0,s.createDialogScope)(),m=l(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(s.Root,{...n,...r,modal:!0})},"AlertDialog"),f=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Trigger,{...i,...n,ref:a})},"AlertDialogTrigger")),h=l(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(s.Portal,{...n,...r})},"AlertDialogPortal"),p=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Overlay,{...i,...n,ref:a})},"AlertDialogOverlay")),[x,g]=d("AlertDialogContent"),v=a.forwardRef(l(function(e,r){let{__scopeAlertDialog:o,children:l,...d}=e,c=u(o),m=a.useRef(null),f=(0,n.useComposedRefs)(r,m),h=a.useRef(null);return(0,t.jsx)(x,{scope:o,cancelRef:h,children:(0,t.jsx)(s.Content,{role:"alertdialog",...c,...d,ref:f,onOpenAutoFocus:(0,i.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:l})})},"AlertDialogContent")),b=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Title,{...i,...n,ref:a})},"AlertDialogTitle")),j=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Description,{...i,...n,ref:a})},"AlertDialogDescription")),y=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Close,{...i,...n,ref:a})},"AlertDialogAction")),w=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...i}=e,{cancelRef:o}=g("AlertDialogCancel",r),l=u(r),d=(0,n.useComposedRefs)(a,o);return(0,t.jsx)(s.Close,{...l,...i,ref:d})},"AlertDialogCancel"));e.s(["Action",0,y,"AlertDialog",0,m,"AlertDialogAction",0,y,"AlertDialogCancel",0,w,"AlertDialogContent",0,v,"AlertDialogDescription",0,j,"AlertDialogOverlay",0,p,"AlertDialogPortal",0,h,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,f,"Cancel",0,w,"Content",0,v,"Description",0,j,"Overlay",0,p,"Portal",0,h,"Root",0,m,"Title",0,b,"Trigger",0,f,"createAlertDialogScope",0,c],691162);var k=e.i(691162),k=k,N=e.i(975157),C=e.i(519455);function A({...e}){return(0,t.jsx)(k.Root,{"data-slot":"alert-dialog",...e})}function z({...e}){return(0,t.jsx)(k.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(k.Portal,{"data-slot":"alert-dialog-portal",...e})}function D({className:e,...a}){return(0,t.jsx)(k.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,N.cn)("fixed inset-0 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),...a})}function M({className:e,size:a="default",...r}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(D,{}),(0,t.jsx)(k.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,N.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]: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),...r})]})}function E({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,N.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function S({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,N.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function P({className:e,...a}){return(0,t.jsx)(k.Title,{"data-slot":"alert-dialog-title",className:(0,N.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function R({className:e,...a}){return(0,t.jsx)(k.Description,{"data-slot":"alert-dialog-description",className:(0,N.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function I({className:e,variant:a="default",size:r="default",...n}){return(0,t.jsx)(C.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(k.Action,{"data-slot":"alert-dialog-action",className:(0,N.cn)(e),...n})})}function $({className:e,variant:a="outline",size:r="default",...n}){return(0,t.jsx)(C.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(k.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,N.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:n,onOpenChange:s,open:i,title:o,trigger:l}){return(0,t.jsxs)(A,{onOpenChange:s,open:i,children:[l&&(0,t.jsx)(z,{asChild:!0,children:l}),(0,t.jsxs)(M,{children:[(0,t.jsxs)(E,{children:[(0,t.jsx)(P,{children:o}),(0,t.jsx)(R,{children:r})]}),(0,t.jsxs)(S,{children:[(0,t.jsx)($,{children:a}),(0,t.jsx)(I,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let n=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...s}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(n({variant:a}),e),...s})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},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])},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},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)},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},275043,e=>{"use strict";let t=(0,e.i(456420).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},235056,e=>{"use strict";var t=e.i(275043);e.s(["CircleHelp",()=>t.default])},569936,e=>{"use strict";let t=(0,e.i(456420).default)("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);e.s(["Clipboard",0,t],569936)},225780,434322,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(716327);let n=(0,e.i(456420).default)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);e.s(["FileCode2",0,n],434322);var s=e.i(487486),i=e.i(975157);function o({patch:e,truncated:a=!1,truncatedLabel:r,className:n}){return(0,t.jsxs)("div",{className:(0,i.cn)("overflow-auto rounded-md border bg-neutral-950 font-mono text-xs text-neutral-100",n),children:[e.split("\n").map((e,a)=>(0,t.jsx)("div",{className:(0,i.cn)("min-w-max px-3 whitespace-pre",e.startsWith("+")&&!e.startsWith("+++")&&"bg-emerald-950/70 text-emerald-200",e.startsWith("-")&&!e.startsWith("---")&&"bg-red-950/70 text-red-200",e.startsWith("@@")&&"bg-blue-950/60 text-blue-200"),children:e||" "},`${a}:${e}`)),a&&r&&(0,t.jsx)("p",{className:"border-t p-2 text-amber-300",children:r})]})}e.s(["ExpandablePatchView",0,function({patch:e,className:l}){let d=(0,a.useMemo)(()=>(function(e){let t=e.split("\n"),a=[],r=[];for(let e of t)e.startsWith("diff --git ")&&r.length&&(a.push(r),r=[]),r.push(e);return r.some(Boolean)&&a.push(r),a.map((e,t)=>{let a=e.find(e=>e.startsWith("diff --git ")),r=a?.match(/^diff --git a\/(.+) b\/(.+)$/),n=r?.[1],s=r?.[2],i=e.some(e=>e.startsWith("new file mode")),o=e.some(e=>e.startsWith("deleted file mode")),l=e.some(e=>e.startsWith("rename from ")),d=s??e.find(e=>e.startsWith("+++ "))?.replace(/^\+\+\+ (?:b\/)?/,"")??n??`Patch ${t+1}`;return{key:`${n??""}:${d}:${t}`,path:d,patch:e.join("\n"),additions:e.filter(e=>e.startsWith("+")&&!e.startsWith("+++")).length,deletions:e.filter(e=>e.startsWith("-")&&!e.startsWith("---")).length,status:i?"A":o?"D":l?"R":"M"}})})(e),[e]),[c,u]=(0,a.useState)(new Set);return(0,t.jsx)("div",{className:(0,i.cn)("divide-y overflow-hidden rounded-md border",l),children:d.map(e=>{let a=c.has(e.key);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>u(t=>{let a=new Set(t);return a.has(e.key)?a.delete(e.key):a.add(e.key),a}),type:"button",children:[(0,t.jsx)(r.ChevronDown,{className:(0,i.cn)("size-3.5 shrink-0 transition-transform",a&&"rotate-180")}),(0,t.jsx)(n,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:e.path}),(0,t.jsx)(s.Badge,{className:"h-5 px-1.5",variant:"outline",children:e.status}),(0,t.jsxs)("span",{className:"text-xs text-emerald-600 tabular-nums",children:["+",e.additions]}),(0,t.jsxs)("span",{className:"text-xs text-red-600 tabular-nums",children:["−",e.deletions]})]}),a&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-3",children:(0,t.jsx)(o,{patch:e.patch})})]},e.key)})})},"PatchView",0,o],225780)},42629,e=>{"use strict";let t=`
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),n=e.i(820783),s=e.i(326999),i=e.i(981140),o=Object.defineProperty,l=(e,t)=>o(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[s.createDialogScope]),u=(0,s.createDialogScope)(),m=l(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(s.Root,{...n,...r,modal:!0})},"AlertDialog"),f=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Trigger,{...i,...n,ref:a})},"AlertDialogTrigger")),h=l(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(s.Portal,{...n,...r})},"AlertDialogPortal"),p=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Overlay,{...i,...n,ref:a})},"AlertDialogOverlay")),[x,g]=d("AlertDialogContent"),v=a.forwardRef(l(function(e,r){let{__scopeAlertDialog:o,children:l,...d}=e,c=u(o),m=a.useRef(null),f=(0,n.useComposedRefs)(r,m),h=a.useRef(null);return(0,t.jsx)(x,{scope:o,cancelRef:h,children:(0,t.jsx)(s.Content,{role:"alertdialog",...c,...d,ref:f,onOpenAutoFocus:(0,i.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:l})})},"AlertDialogContent")),b=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Title,{...i,...n,ref:a})},"AlertDialogTitle")),j=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Description,{...i,...n,ref:a})},"AlertDialogDescription")),y=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Close,{...i,...n,ref:a})},"AlertDialogAction")),w=a.forwardRef(l(function(e,a){let{__scopeAlertDialog:r,...i}=e,{cancelRef:o}=g("AlertDialogCancel",r),l=u(r),d=(0,n.useComposedRefs)(a,o);return(0,t.jsx)(s.Close,{...l,...i,ref:d})},"AlertDialogCancel"));e.s(["Action",0,y,"AlertDialog",0,m,"AlertDialogAction",0,y,"AlertDialogCancel",0,w,"AlertDialogContent",0,v,"AlertDialogDescription",0,j,"AlertDialogOverlay",0,p,"AlertDialogPortal",0,h,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,f,"Cancel",0,w,"Content",0,v,"Description",0,j,"Overlay",0,p,"Portal",0,h,"Root",0,m,"Title",0,b,"Trigger",0,f,"createAlertDialogScope",0,c],691162);var k=e.i(691162),k=k,N=e.i(975157),C=e.i(519455);function A({...e}){return(0,t.jsx)(k.Root,{"data-slot":"alert-dialog",...e})}function z({...e}){return(0,t.jsx)(k.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(k.Portal,{"data-slot":"alert-dialog-portal",...e})}function D({className:e,...a}){return(0,t.jsx)(k.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,N.cn)("fixed inset-0 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),...a})}function M({className:e,size:a="default",...r}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(D,{}),(0,t.jsx)(k.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,N.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]: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),...r})]})}function E({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,N.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function S({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,N.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function P({className:e,...a}){return(0,t.jsx)(k.Title,{"data-slot":"alert-dialog-title",className:(0,N.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function R({className:e,...a}){return(0,t.jsx)(k.Description,{"data-slot":"alert-dialog-description",className:(0,N.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function I({className:e,variant:a="default",size:r="default",...n}){return(0,t.jsx)(C.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(k.Action,{"data-slot":"alert-dialog-action",className:(0,N.cn)(e),...n})})}function $({className:e,variant:a="outline",size:r="default",...n}){return(0,t.jsx)(C.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(k.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,N.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:n,onOpenChange:s,open:i,title:o,trigger:l}){return(0,t.jsxs)(A,{onOpenChange:s,open:i,children:[l&&(0,t.jsx)(z,{asChild:!0,children:l}),(0,t.jsxs)(M,{children:[(0,t.jsxs)(E,{children:[(0,t.jsx)(P,{children:o}),(0,t.jsx)(R,{children:r})]}),(0,t.jsxs)(S,{children:[(0,t.jsx)($,{children:a}),(0,t.jsx)(I,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let n=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...s}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(n({variant:a}),e),...s})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},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])},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},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)},275043,e=>{"use strict";let t=(0,e.i(456420).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},235056,e=>{"use strict";var t=e.i(275043);e.s(["CircleHelp",()=>t.default])},569936,e=>{"use strict";let t=(0,e.i(456420).default)("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);e.s(["Clipboard",0,t],569936)},225780,434322,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(716327);let n=(0,e.i(456420).default)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);e.s(["FileCode2",0,n],434322);var s=e.i(487486),i=e.i(975157);function o({patch:e,truncated:a=!1,truncatedLabel:r,className:n}){return(0,t.jsxs)("div",{className:(0,i.cn)("overflow-auto rounded-md border bg-neutral-950 font-mono text-xs text-neutral-100",n),children:[e.split("\n").map((e,a)=>(0,t.jsx)("div",{className:(0,i.cn)("min-w-max px-3 whitespace-pre",e.startsWith("+")&&!e.startsWith("+++")&&"bg-emerald-950/70 text-emerald-200",e.startsWith("-")&&!e.startsWith("---")&&"bg-red-950/70 text-red-200",e.startsWith("@@")&&"bg-blue-950/60 text-blue-200"),children:e||" "},`${a}:${e}`)),a&&r&&(0,t.jsx)("p",{className:"border-t p-2 text-amber-300",children:r})]})}e.s(["ExpandablePatchView",0,function({patch:e,className:l}){let d=(0,a.useMemo)(()=>(function(e){let t=e.split("\n"),a=[],r=[];for(let e of t)e.startsWith("diff --git ")&&r.length&&(a.push(r),r=[]),r.push(e);return r.some(Boolean)&&a.push(r),a.map((e,t)=>{let a=e.find(e=>e.startsWith("diff --git ")),r=a?.match(/^diff --git a\/(.+) b\/(.+)$/),n=r?.[1],s=r?.[2],i=e.some(e=>e.startsWith("new file mode")),o=e.some(e=>e.startsWith("deleted file mode")),l=e.some(e=>e.startsWith("rename from ")),d=s??e.find(e=>e.startsWith("+++ "))?.replace(/^\+\+\+ (?:b\/)?/,"")??n??`Patch ${t+1}`;return{key:`${n??""}:${d}:${t}`,path:d,patch:e.join("\n"),additions:e.filter(e=>e.startsWith("+")&&!e.startsWith("+++")).length,deletions:e.filter(e=>e.startsWith("-")&&!e.startsWith("---")).length,status:i?"A":o?"D":l?"R":"M"}})})(e),[e]),[c,u]=(0,a.useState)(new Set);return(0,t.jsx)("div",{className:(0,i.cn)("divide-y overflow-hidden rounded-md border",l),children:d.map(e=>{let a=c.has(e.key);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>u(t=>{let a=new Set(t);return a.has(e.key)?a.delete(e.key):a.add(e.key),a}),type:"button",children:[(0,t.jsx)(r.ChevronDown,{className:(0,i.cn)("size-3.5 shrink-0 transition-transform",a&&"rotate-180")}),(0,t.jsx)(n,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:e.path}),(0,t.jsx)(s.Badge,{className:"h-5 px-1.5",variant:"outline",children:e.status}),(0,t.jsxs)("span",{className:"text-xs text-emerald-600 tabular-nums",children:["+",e.additions]}),(0,t.jsxs)("span",{className:"text-xs text-red-600 tabular-nums",children:["−",e.deletions]})]}),a&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-3",children:(0,t.jsx)(o,{patch:e.patch})})]},e.key)})})},"PatchView",0,o],225780)},42629,e=>{"use strict";let t=`
2
2
  id kind displayNumber status provider followUpMode
3
3
  `,a=`
4
4
  id kind displayNumber status phase origin provider providerVersion
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,885325,e=>{"use strict";var t=e.i(843476),i=e.i(876561),s=e.i(711241),a=e.i(689664),n=e.i(508734),l=e.i(762368),r=e.i(456420);let d=(0,r.default)("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),o=(0,r.default)("chart-no-axes-column",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]]);var c=e.i(716327),u=e.i(867927),m=e.i(489002),x=e.i(573474),p=e.i(861745),h=e.i(948148),g=e.i(271645),f=e.i(340953),j=e.i(119756),b=e.i(929592),v=e.i(487486),y=e.i(519455),S=e.i(515288),C=e.i(816484),T=e.i(320228),N=e.i(82612),w=e.i(987968),I=e.i(677572),A=e.i(784774),k=e.i(520133),E=e.i(462777),P=e.i(637611),D=e.i(975157),B=e.i(171502),R=e.i(90969),L=e.i(688194),$=e.i(776639),O=e.i(110204),U=e.i(967489),F=e.i(360583);let M=`query BuildSigningOptions($buildId: ID!) {
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,885325,e=>{"use strict";var t=e.i(843476),i=e.i(876561),s=e.i(711241),a=e.i(689664),n=e.i(508734),l=e.i(762368),r=e.i(456420);let d=(0,r.default)("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),o=(0,r.default)("chart-no-axes-column",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]]);var c=e.i(716327),u=e.i(867927),m=e.i(489002),x=e.i(573474),p=e.i(861745),h=e.i(948148),g=e.i(271645),f=e.i(340953),j=e.i(119756),b=e.i(929592),v=e.i(487486),y=e.i(519455),C=e.i(515288),S=e.i(816484),T=e.i(320228),w=e.i(82612),N=e.i(987968),I=e.i(677572),A=e.i(784774),k=e.i(520133),E=e.i(462777),P=e.i(637611),D=e.i(975157),B=e.i(171502),R=e.i(90969),L=e.i(688194),$=e.i(776639),O=e.i(110204),U=e.i(967489),F=e.i(360583);let M=`query BuildSigningOptions($buildId: ID!) {
2
2
  buildSigningOptions(buildId: $buildId) {
3
3
  teams { id name }
4
4
  identities { sha1 name teamId }
@@ -8,9 +8,9 @@
8
8
  }
9
9
  bundles { bundleId name relativePath embeddedProfileUuid embeddedProfileName }
10
10
  }
11
- }`;function q(e,t,i,s){let a=L.EXPORT_METHOD_PROFILE_TYPES[i];return e.filter(e=>e.type===a&&!e.expired&&(0===e.platforms.length||e.platforms.includes("iOS"))&&(0,L.profileCoversBundle)(e.bundleId,t)&&(!s||!e.teamId||e.teamId===s))}function V({buildId:e,open:i,onOpenChange:s,onSaved:a}){let n=(0,h.useTranslations)("builds"),l=(0,p.useLocale)(),[r,d]=(0,g.useState)("DEBUGGING"),[o,c]=(0,g.useState)("AUTOMATIC"),[u,m]=(0,g.useState)(""),[x,f]=(0,g.useState)(""),[j,v]=(0,g.useState)({}),[S,C]=(0,g.useState)(!1),[T,N]=(0,g.useState)(null),[I,A]=(0,g.useState)(!1),[k,D]=(0,g.useState)(!1),[B,R]=(0,g.useState)(null),[_,H]=(0,g.useState)(null),z=(0,g.useCallback)(async()=>{A(!0),H(null);try{let t=await (0,P.controlPlaneRequest)(M,{buildId:e});N(t.buildSigningOptions);let i=t.buildSigningOptions.bundles.map(e=>t.buildSigningOptions.profiles.find(t=>t.uuid===e.embeddedProfileUuid)).find(e=>e?.teamId);i?.teamId?m(i.teamId):1===t.buildSigningOptions.teams.length&&m(t.buildSigningOptions.teams[0].id)}catch(e){H(e instanceof Error?e.message:String(e))}finally{A(!1)}},[e]);(0,g.useEffect)(()=>{if(!i)return;let e=window.setTimeout(()=>void z(),0);return()=>window.clearTimeout(e)},[i,z]);let G=`${r}:${u}`,[W,X]=(0,g.useState)(G);G!==W&&(X(G),v({}),f(""));let K="MANUAL"===o,J=Object.fromEntries((T?.bundles??[]).flatMap(e=>{let t=q(T?.profiles??[],e.bundleId,r,u),i=j[e.bundleId]??function(e,t){if(!e.length)return null;let i=e.find(e=>e.uuid===t.embeddedProfileUuid);return i||[...e].sort((e,t)=>(t.expiresAt??"").localeCompare(e.expiresAt??""))[0]}(t,e)?.uuid;return i?[[e.bundleId,i]]:[]})),Q=Object.values(J).flatMap(e=>{let t=T?.profiles.find(t=>t.uuid===e);return t?[t]:[]}),Y=Q.length>0&&Q.every(e=>e.certificateSha1s?.length),Z=(T?.identities??[]).filter(e=>Y?Q.every(t=>t.certificateSha1s.includes(e.sha1.toUpperCase())):!u||!e.teamId||e.teamId===u),ee=Z.some(e=>e.sha1===x)?x:"",et=async()=>{D(!0);try{await (0,P.controlPlaneRequest)(`mutation ExportArchive($input: ExportBuildArchiveInput!) {
11
+ }`;function q(e,t,i,s){let a=L.EXPORT_METHOD_PROFILE_TYPES[i];return e.filter(e=>e.type===a&&!e.expired&&(0===e.platforms.length||e.platforms.includes("iOS"))&&(0,L.profileCoversBundle)(e.bundleId,t)&&(!s||!e.teamId||e.teamId===s))}function V({buildId:e,open:i,onOpenChange:s,onSaved:a}){let n=(0,h.useTranslations)("builds"),l=(0,p.useLocale)(),[r,d]=(0,g.useState)("DEBUGGING"),[o,c]=(0,g.useState)("AUTOMATIC"),[u,m]=(0,g.useState)(""),[x,f]=(0,g.useState)(""),[j,v]=(0,g.useState)({}),[C,S]=(0,g.useState)(!1),[T,w]=(0,g.useState)(null),[I,A]=(0,g.useState)(!1),[k,D]=(0,g.useState)(!1),[B,R]=(0,g.useState)(null),[_,H]=(0,g.useState)(null),z=(0,g.useCallback)(async()=>{A(!0),H(null);try{let t=await (0,P.controlPlaneRequest)(M,{buildId:e});w(t.buildSigningOptions);let i=t.buildSigningOptions.bundles.map(e=>t.buildSigningOptions.profiles.find(t=>t.uuid===e.embeddedProfileUuid)).find(e=>e?.teamId);i?.teamId?m(i.teamId):1===t.buildSigningOptions.teams.length&&m(t.buildSigningOptions.teams[0].id)}catch(e){H(e instanceof Error?e.message:String(e))}finally{A(!1)}},[e]);(0,g.useEffect)(()=>{if(!i)return;let e=window.setTimeout(()=>void z(),0);return()=>window.clearTimeout(e)},[i,z]);let G=`${r}:${u}`,[W,X]=(0,g.useState)(G);G!==W&&(X(G),v({}),f(""));let K="MANUAL"===o,J=Object.fromEntries((T?.bundles??[]).flatMap(e=>{let t=q(T?.profiles??[],e.bundleId,r,u),i=j[e.bundleId]??function(e,t){if(!e.length)return null;let i=e.find(e=>e.uuid===t.embeddedProfileUuid);return i||[...e].sort((e,t)=>(t.expiresAt??"").localeCompare(e.expiresAt??""))[0]}(t,e)?.uuid;return i?[[e.bundleId,i]]:[]})),Q=Object.values(J).flatMap(e=>{let t=T?.profiles.find(t=>t.uuid===e);return t?[t]:[]}),Y=Q.length>0&&Q.every(e=>e.certificateSha1s?.length),Z=(T?.identities??[]).filter(e=>Y?Q.every(t=>t.certificateSha1s.includes(e.sha1.toUpperCase())):!u||!e.teamId||e.teamId===u),ee=Z.some(e=>e.sha1===x)?x:"",et=async()=>{D(!0);try{await (0,P.controlPlaneRequest)(`mutation ExportArchive($input: ExportBuildArchiveInput!) {
12
12
  exportBuildArchive(input: $input) { id status }
13
- }`,{input:{buildId:e,requestId:(0,E.createClientId)(),settings:{method:r,signingStyle:o,teamId:u||null,signingCertificate:ee?Z.find(e=>e.sha1===ee)?.name??null:null,provisioningProfiles:K?J:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1,stripSwiftSymbols:!0,thinning:null,iCloudContainerEnvironment:null,distributionBundleIdentifier:null}}}),await a(),s(!1)}catch(e){R(e instanceof Error?e.message:String(e))}finally{D(!1)}},ei=K&&(T?.bundles??[]).some(e=>!J[e.bundleId]);return(0,t.jsx)($.Dialog,{onOpenChange:s,open:i,children:(0,t.jsxs)($.DialogContent,{className:"max-h-[85vh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsxs)($.DialogHeader,{children:[(0,t.jsx)($.DialogTitle,{children:n("exportArchive")}),(0,t.jsx)($.DialogDescription,{children:n("exportArchiveDescription")})]}),B&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:B})}),_&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsxs)(b.AlertDescription,{children:[n("signingOptionsFailed")," ",_]})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("distributionMethod")}),(0,t.jsxs)(U.Select,{onValueChange:e=>d(e),value:r,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{})}),(0,t.jsx)(U.SelectContent,{children:L.BUILD_EXPORT_METHODS.map(e=>(0,t.jsx)(U.SelectItem,{value:e,children:n(`exportMethod.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("developmentTeam")}),(0,t.jsxs)(U.Select,{disabled:I||!T?.teams.length,onValueChange:m,value:u,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:I?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(U.SelectValue,{placeholder:n("selectTeam")})}),(0,t.jsx)(U.SelectContent,{children:(T?.teams??[]).map(e=>(0,t.jsxs)(U.SelectItem,{value:e.id,children:[e.name," (",e.id,")"]},e.id))})]}),!I&&T&&!T.teams.length&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("noTeams")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("signingStyle")}),(0,t.jsxs)(U.Select,{onValueChange:c,value:o,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{})}),(0,t.jsxs)(U.SelectContent,{children:[(0,t.jsx)(U.SelectItem,{value:"AUTOMATIC",children:n("automatic")}),(0,t.jsx)(U.SelectItem,{value:"MANUAL",children:n("manual")})]})]})]}),K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("signingCertificate")}),(0,t.jsxs)(U.Select,{disabled:I||!Z.length,onValueChange:f,value:ee,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{placeholder:n("certificateAutomatic")})}),(0,t.jsx)(U.SelectContent,{children:Z.map(e=>(0,t.jsx)(U.SelectItem,{value:e.sha1,children:e.name},e.sha1))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(O.Label,{children:n("provisioningProfiles")}),(0,t.jsx)(y.Button,{onClick:()=>C(e=>!e),size:"sm",type:"button",variant:"ghost",children:S?n("showMatching"):n("showAllProfiles")})]}),I&&(0,t.jsx)(w.Spinner,{}),!I&&!T?.bundles.length&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("noArchiveBundles")}),(T?.bundles??[]).map(e=>{let i=q(T?.profiles??[],e.bundleId,r,u),s=S?(T?.profiles??[]).filter(t=>(0,L.profileCoversBundle)(t.bundleId,e.bundleId)):i;return(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,t.jsx)("p",{className:"mb-2 break-all font-mono text-xs text-muted-foreground",children:e.bundleId}),(0,t.jsxs)(U.Select,{onValueChange:t=>v(i=>({...i,[e.bundleId]:t})),value:J[e.bundleId]??"",children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{placeholder:n("selectProfile")})}),(0,t.jsx)(U.SelectContent,{children:s.map(e=>{let i;return(0,t.jsxs)(U.SelectItem,{value:e.uuid,children:[(i=e.expiresAt?(0,F.formatDateValue)(e.expiresAt,"short",{locale:l,showTime:!1}):null)?`${e.name} — ${i}`:e.name,e.expired?` (${n("profileExpired")})`:""]},e.uuid)})})]}),!i.length&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("noMatchingProfiles")})]},e.bundleId)})]})]})]}),(0,t.jsxs)($.DialogFooter,{children:[(0,t.jsx)(y.Button,{onClick:()=>s(!1),variant:"outline",children:n("cancel")}),(0,t.jsxs)(y.Button,{disabled:k||ei,onClick:()=>void et(),children:[k&&(0,t.jsx)(w.Spinner,{})," ",n("exportArchive")]})]})]})})}let _=(0,r.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var H=e.i(986206);let z=null;function G(){return z??={origin:window.location.origin,secure:"https:"===window.location.protocol,apple:/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&(navigator.maxTouchPoints??0)>1}}let W=()=>()=>{};function X({buildId:e,artifactId:i,metadata:s,publicOrigin:a}){let n=(0,h.useTranslations)("builds"),l=(0,g.useSyncExternalStore)(W,G,()=>null),[r,d]=(0,g.useState)(!1),[o,c]=(0,g.useState)(!1),u=`/api/public/builds/${encodeURIComponent(e)}/artifacts/${encodeURIComponent(i)}`,m=a??l,x=m?`${m.origin}${u}/manifest.plist`:null,p=l?m?.secure?"APP_STORE_CONNECT"===s.exportMethod?n("installNotSupportedForAppStore"):"string"!=typeof s.bundleIdentifier?n("installMissingBundleIdentifier"):null:n("installRequiresHttps"):null,f=!l||!l.apple||null!==p||r,j=async()=>{if(x){d(!0);try{await fetch(u,{method:"HEAD"}).catch(()=>{}),window.location.href=`itms-services://?action=download-manifest&url=${encodeURIComponent(x)}`}finally{d(!1)}}},b=async()=>{let e=m?.origin??window.location.origin;await (0,E.copyText)(`${e}${window.location.pathname}${window.location.search}${window.location.hash}`),c(!0),setTimeout(()=>c(!1),2e3)};return(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[l&&!l.apple&&!p&&(0,t.jsxs)(y.Button,{onClick:()=>void b(),size:"sm",type:"button",variant:"ghost",children:[(0,t.jsx)(_,{})," ",n(o?"installLinkCopied":"copyInstallLink")]}),(0,t.jsxs)(y.Button,{disabled:f,onClick:()=>void j(),size:"sm",type:"button",variant:"outline",children:[r?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(H.Smartphone,{}),n(r?"installPreparing":"installOnDevice")]})]}),p&&(0,t.jsx)("p",{className:"text-right text-xs text-muted-foreground",children:p}),!p&&l&&!l.apple&&(0,t.jsx)("p",{className:"text-right text-xs text-muted-foreground",children:n("installOpenOnDevice")})]})}var K=e.i(771777),J=e.i(866026);let Q=`
13
+ }`,{input:{buildId:e,requestId:(0,E.createClientId)(),settings:{method:r,signingStyle:o,teamId:u||null,signingCertificate:ee?Z.find(e=>e.sha1===ee)?.name??null:null,provisioningProfiles:K?J:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1,stripSwiftSymbols:!0,thinning:null,iCloudContainerEnvironment:null,distributionBundleIdentifier:null}}}),await a(),s(!1)}catch(e){R(e instanceof Error?e.message:String(e))}finally{D(!1)}},ei=K&&(T?.bundles??[]).some(e=>!J[e.bundleId]);return(0,t.jsx)($.Dialog,{onOpenChange:s,open:i,children:(0,t.jsxs)($.DialogContent,{className:"max-h-[85vh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsxs)($.DialogHeader,{children:[(0,t.jsx)($.DialogTitle,{children:n("exportArchive")}),(0,t.jsx)($.DialogDescription,{children:n("exportArchiveDescription")})]}),B&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:B})}),_&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsxs)(b.AlertDescription,{children:[n("signingOptionsFailed")," ",_]})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("distributionMethod")}),(0,t.jsxs)(U.Select,{onValueChange:e=>d(e),value:r,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{})}),(0,t.jsx)(U.SelectContent,{children:L.BUILD_EXPORT_METHODS.map(e=>(0,t.jsx)(U.SelectItem,{value:e,children:n(`exportMethod.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("developmentTeam")}),(0,t.jsxs)(U.Select,{disabled:I||!T?.teams.length,onValueChange:m,value:u,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:I?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(U.SelectValue,{placeholder:n("selectTeam")})}),(0,t.jsx)(U.SelectContent,{children:(T?.teams??[]).map(e=>(0,t.jsxs)(U.SelectItem,{value:e.id,children:[e.name," (",e.id,")"]},e.id))})]}),!I&&T&&!T.teams.length&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("noTeams")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("signingStyle")}),(0,t.jsxs)(U.Select,{onValueChange:c,value:o,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{})}),(0,t.jsxs)(U.SelectContent,{children:[(0,t.jsx)(U.SelectItem,{value:"AUTOMATIC",children:n("automatic")}),(0,t.jsx)(U.SelectItem,{value:"MANUAL",children:n("manual")})]})]})]}),K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("signingCertificate")}),(0,t.jsxs)(U.Select,{disabled:I||!Z.length,onValueChange:f,value:ee,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{placeholder:n("certificateAutomatic")})}),(0,t.jsx)(U.SelectContent,{children:Z.map(e=>(0,t.jsx)(U.SelectItem,{value:e.sha1,children:e.name},e.sha1))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(O.Label,{children:n("provisioningProfiles")}),(0,t.jsx)(y.Button,{onClick:()=>S(e=>!e),size:"sm",type:"button",variant:"ghost",children:C?n("showMatching"):n("showAllProfiles")})]}),I&&(0,t.jsx)(N.Spinner,{}),!I&&!T?.bundles.length&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("noArchiveBundles")}),(T?.bundles??[]).map(e=>{let i=q(T?.profiles??[],e.bundleId,r,u),s=C?(T?.profiles??[]).filter(t=>(0,L.profileCoversBundle)(t.bundleId,e.bundleId)):i;return(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,t.jsx)("p",{className:"mb-2 break-all font-mono text-xs text-muted-foreground",children:e.bundleId}),(0,t.jsxs)(U.Select,{onValueChange:t=>v(i=>({...i,[e.bundleId]:t})),value:J[e.bundleId]??"",children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{placeholder:n("selectProfile")})}),(0,t.jsx)(U.SelectContent,{children:s.map(e=>{let i;return(0,t.jsxs)(U.SelectItem,{value:e.uuid,children:[(i=e.expiresAt?(0,F.formatDateValue)(e.expiresAt,"short",{locale:l,showTime:!1}):null)?`${e.name} — ${i}`:e.name,e.expired?` (${n("profileExpired")})`:""]},e.uuid)})})]}),!i.length&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("noMatchingProfiles")})]},e.bundleId)})]})]})]}),(0,t.jsxs)($.DialogFooter,{children:[(0,t.jsx)(y.Button,{onClick:()=>s(!1),variant:"outline",children:n("cancel")}),(0,t.jsxs)(y.Button,{disabled:k||ei,onClick:()=>void et(),children:[k&&(0,t.jsx)(N.Spinner,{})," ",n("exportArchive")]})]})]})})}let _=(0,r.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var H=e.i(986206);let z=null;function G(){return z??={origin:window.location.origin,secure:"https:"===window.location.protocol,apple:/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&(navigator.maxTouchPoints??0)>1}}let W=()=>()=>{};function X({buildId:e,artifactId:i,metadata:s,publicOrigin:a}){let n=(0,h.useTranslations)("builds"),l=(0,g.useSyncExternalStore)(W,G,()=>null),[r,d]=(0,g.useState)(!1),[o,c]=(0,g.useState)(!1),u=`/api/public/builds/${encodeURIComponent(e)}/artifacts/${encodeURIComponent(i)}`,m=a??l,x=m?`${m.origin}${u}/manifest.plist`:null,p=l?m?.secure?"APP_STORE_CONNECT"===s.exportMethod?n("installNotSupportedForAppStore"):"string"!=typeof s.bundleIdentifier?n("installMissingBundleIdentifier"):null:n("installRequiresHttps"):null,f=!l||!l.apple||null!==p||r,j=async()=>{if(x){d(!0);try{await fetch(u,{method:"HEAD"}).catch(()=>{}),window.location.href=`itms-services://?action=download-manifest&url=${encodeURIComponent(x)}`}finally{d(!1)}}},b=async()=>{let e=m?.origin??window.location.origin;await (0,E.copyText)(`${e}${window.location.pathname}${window.location.search}${window.location.hash}`),c(!0),setTimeout(()=>c(!1),2e3)};return(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[l&&!l.apple&&!p&&(0,t.jsxs)(y.Button,{onClick:()=>void b(),size:"sm",type:"button",variant:"ghost",children:[(0,t.jsx)(_,{})," ",n(o?"installLinkCopied":"copyInstallLink")]}),(0,t.jsxs)(y.Button,{disabled:f,onClick:()=>void j(),size:"sm",type:"button",variant:"outline",children:[r?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(H.Smartphone,{}),n(r?"installPreparing":"installOnDevice")]})]}),p&&(0,t.jsx)("p",{className:"text-right text-xs text-muted-foreground",children:p}),!p&&l&&!l.apple&&(0,t.jsx)("p",{className:"text-right text-xs text-muted-foreground",children:n("installOpenOnDevice")})]})}var K=e.i(771777),J=e.i(866026);let Q=`
14
14
  id requestId jobId status action destinationType destination snapshot commandSummary artifactDirectory errorCode error outOfDate
15
15
  createdAt startedAt finishedAt durationMs updatedAt
16
16
  worktree { id highlightColor }
@@ -26,12 +26,12 @@
26
26
  scriptExecutions { id phase position nameSnapshot status exitCode durationMs causedBuildFailure outputRelativePath error }
27
27
  deployments { id batchId destination status commandSummary outputRelativePath error createdAt startedAt finishedAt }
28
28
  exports { id status settings commandSummary outputRelativePath error createdAt startedAt finishedAt }
29
- `,Y="id scope scopeId sequence phase stream dataBase64 byteLength createdAt",Z=[],ee=new Set(["IPA"]);function et(e){return e.split("_").filter(Boolean).map(e=>ee.has(e)?e:`${e.charAt(0).toLocaleUpperCase()}${e.slice(1).toLocaleLowerCase()}`).join(" ")}let ei=["packageResolution","disablePackageRepositoryCache","signingStyle","developmentTeam","codeSignIdentity","provisioningProfileSpecifier","productBundleIdentifier","allowProvisioningUpdates","allowProvisioningDeviceRegistration","testPlan","codeCoverage","parseTestResults","parallelTesting","parallelTestingWorkers","onlyTesting","skipTesting","buildSettingOverrides","priorBuildForTestingId","priorTestProductsPath","priorXctestrunPath"],es={packageResolution:"DEFAULT",disablePackageRepositoryCache:!1,signingStyle:"PROJECT_DEFAULT",developmentTeam:null,codeSignIdentity:null,provisioningProfileSpecifier:null,productBundleIdentifier:null,allowProvisioningUpdates:!1,allowProvisioningDeviceRegistration:!1,testPlan:null,codeCoverage:!1,parseTestResults:!0,parallelTesting:null,parallelTestingWorkers:null,onlyTesting:[],skipTesting:[],buildSettingOverrides:{},priorBuildForTestingId:null,priorTestProductsPath:null,priorXctestrunPath:null};function ea({settings:e}){let i=(0,h.useTranslations)("builds"),s={packageResolution:i("packageResolution"),disablePackageRepositoryCache:i("disablePackageRepositoryCache"),signingStyle:i("signingStyle"),developmentTeam:i("developmentTeam"),codeSignIdentity:i("codeSignIdentity"),provisioningProfileSpecifier:i("provisioningProfileSpecifier"),productBundleIdentifier:i("productBundleIdentifier"),allowProvisioningUpdates:i("allowProvisioningUpdates"),allowProvisioningDeviceRegistration:i("allowProvisioningDeviceRegistration"),testPlan:i("testPlan"),codeCoverage:i("codeCoverage"),parseTestResults:i("parseTestResults"),parallelTesting:i("parallelTesting"),parallelTestingWorkers:i("parallelTestingWorkers"),onlyTesting:i("onlyTesting"),skipTesting:i("skipTesting"),buildSettingOverrides:i("buildSettingOverrides"),priorBuildForTestingId:i("priorBuildForTesting"),priorTestProductsPath:i("priorTestProductsPath"),priorXctestrunPath:i("priorXctestrunPath")},a=new Set(ei),n=e?[...ei.filter(t=>Object.hasOwn(e,t)),...Object.keys(e).filter(e=>!a.has(e)).sort()].filter(t=>{var i;return i=e[t],Object.hasOwn(es,t)?JSON.stringify(i)!==JSON.stringify(es[t]):null!=i&&""!==i&&!1!==i&&(Array.isArray(i)?i.length>0:"object"!=typeof i||Object.keys(i).length>0)}):[];return e&&n.length?(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:i("advancedSettings")})}),(0,t.jsx)(S.CardContent,{children:(0,t.jsx)(T.DetailList,{className:"gap-3",children:n.map(i=>(0,t.jsx)(T.DetailItem,{label:s[i]??et(i.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replaceAll("-","_")),children:(0,t.jsx)(en,{value:e[i]})},i))})})]}):null}function en({value:e}){let i=(0,h.useTranslations)("builds");if("boolean"==typeof e)return(0,t.jsx)(v.Badge,{variant:e?"default":"secondary",children:i(e?"settingsEnabled":"settingsDisabled")});if(null==e||""===e)return(0,t.jsx)(t.Fragment,{children:"—"});if(Array.isArray(e))return e.length?(0,t.jsx)("span",{className:"break-words font-mono",children:e.map(String).join(", ")}):(0,t.jsx)(t.Fragment,{children:"—"});if("object"==typeof e){let i=JSON.stringify(e);return i&&"{}"!==i?(0,t.jsx)("span",{className:"break-all font-mono",children:i}):(0,t.jsx)(t.Fragment,{children:"—"})}return"string"==typeof e&&/^[A-Z][A-Z0-9_]*$/.test(e)?(0,t.jsx)(t.Fragment,{children:et(e)}):(0,t.jsx)("span",{className:"break-words font-mono",children:String(e)})}function el(e){return"string"==typeof e&&e.trim()?e:null}function er(e,t){return"ALL"===t||String(e.result??"unknown").toLocaleUpperCase()===t}function ed({report:e}){let i=(0,h.useTranslations)("builds"),[s,a]=(0,g.useState)("ALL"),n=Array.isArray(e.data.tests)?e.data.tests:[],l=Array.isArray(e.data.devices)?e.data.devices:[],r=t=>"number"==typeof e.summary[t]?Number(e.summary[t]):0,d=(function(e){let t=new Map;for(let i of e){let e=el(i.bundle),s=el(i.suite),a=el(i.plan),n=el(i.configuration),l=s??e,r=JSON.stringify([a,n,e,l]),d=t.get(r)??{key:r,name:l,bundle:e,plan:a,configuration:n,tests:[]};d.tests.push(i),t.set(r,d)}return[...t.values()].sort((e,t)=>(e.name??"").localeCompare(t.name??"",void 0,{numeric:!0,sensitivity:"base"}))})(n).filter(e=>e.tests.some(e=>er(e,s)));return(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:i("testResults")})}),(0,t.jsx)(S.CardContent,{className:"space-y-4",children:"FAILED"===e.status?(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:e.error??i("testResultsFailed")})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(v.Badge,{variant:"outline",children:i("testTotal",{count:r("total")})}),(0,t.jsx)(v.Badge,{className:"bg-emerald-600 text-white dark:bg-emerald-700",children:i("testPassed",{count:r("passed")})}),(0,t.jsx)(v.Badge,{variant:r("failed")?"destructive":"outline",children:i("testFailed",{count:r("failed")})}),(0,t.jsx)(v.Badge,{className:"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300",variant:"outline",children:i("testSkipped",{count:r("skipped")})}),l.map((e,i)=>(0,t.jsxs)(v.Badge,{variant:"outline",children:[String(e.deviceName??e.modelName??"Device")," ·"," ",String(e.osVersion??"—")]},i))]}),(0,t.jsx)("div",{className:"overflow-x-auto pb-1",children:(0,t.jsx)(I.Tabs,{onValueChange:e=>a(e),value:s,children:(0,t.jsxs)(I.TabsList,{"aria-label":i("testResultFilters"),children:[(0,t.jsx)(I.TabsTrigger,{value:"ALL",children:i("testFilterAll",{count:n.length})}),(0,t.jsx)(I.TabsTrigger,{value:"PASSED",children:i("testFilterPassed",{count:r("passed")})}),(0,t.jsx)(I.TabsTrigger,{value:"FAILED",children:i("testFilterFailed",{count:r("failed")})}),(0,t.jsx)(I.TabsTrigger,{value:"SKIPPED",children:i("testFilterSkipped",{count:r("skipped")})})]})})}),(0,t.jsx)("div",{className:"divide-y rounded-md border",children:d.map(e=>(0,t.jsx)(eo,{filter:s,group:e},e.key))})]})})]})}function eo({filter:e,group:i}){let s=(0,h.useTranslations)("builds"),a=(0,p.useLocale)(),[n,l]=(0,g.useState)(!1),r=i.name??s("testsWithoutSuite"),d=i.tests.filter(e=>"Passed"===e.result).length,o=i.tests.length?d/i.tests.length:0,m=new Intl.NumberFormat(a,{style:"percent",maximumFractionDigits:1}).format(o),x=i.tests.filter(t=>er(t,e)),f=new Map;for(let e of x){let t=function(e){let t=el(e.file);if(t)return t;let i=el(e.suite);return i||(el(e.identifier)?.split("/")[0]??null)}(e)??s("testsWithoutFile");f.set(t,[...f.get(t)??[],e])}let j=[i.bundle,i.configuration,i.plan].filter(Boolean).join(" · ");return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":n,"aria-label":s(n?"collapseTestSuite":"expandTestSuite",{suite:r}),className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>l(e=>!e),type:"button",children:[n?(0,t.jsx)(c.ChevronDown,{className:"size-3.5 shrink-0"}):(0,t.jsx)(u.ChevronRight,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:r}),j&&(0,t.jsx)("span",{className:"hidden shrink-0 text-xs text-muted-foreground sm:inline",children:j}),(0,t.jsx)(v.Badge,{className:1===o?"border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":o>=.5?"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300":"",variant:o<.5?"destructive":"outline",children:s("testSuitePassed",{passed:d,total:i.tests.length,percent:m})})]}),n&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-2",children:(0,t.jsx)("div",{className:"divide-y rounded-md border bg-background",children:[...f.entries()].sort(([e],[t])=>e.localeCompare(t,a,{numeric:!0,sensitivity:"base"})).map(([e,i])=>(0,t.jsx)(ec,{file:e,tests:i},e))})})]})}function ec({file:e,tests:i}){let s=(0,h.useTranslations)("builds"),[a,n]=(0,g.useState)(!1);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,"aria-label":s(a?"collapseTestFile":"expandTestFile",{file:e}),className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>n(e=>!e),type:"button",children:[a?(0,t.jsx)(c.ChevronDown,{className:"size-3.5 shrink-0"}):(0,t.jsx)(u.ChevronRight,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",title:e,children:e}),(0,t.jsx)(v.Badge,{variant:"outline",children:s("testTotal",{count:i.length})})]}),a&&(0,t.jsx)("div",{className:"border-t overflow-auto",children:(0,t.jsxs)(A.Table,{"aria-label":e,className:"min-w-[38rem] text-xs",children:[(0,t.jsx)(A.TableHeader,{children:(0,t.jsxs)(A.TableRow,{children:[(0,t.jsx)(A.TableHead,{className:"h-8 px-2",children:s("testStatus")}),(0,t.jsx)(A.TableHead,{className:"h-8 px-2",children:s("testName")}),(0,t.jsx)(A.TableHead,{className:"h-8 px-2 text-right",children:s("testDuration")})]})}),(0,t.jsx)(A.TableBody,{children:i.map((e,i)=>{let s=Array.isArray(e.details)?e.details.filter(e=>"string"==typeof e):[],a=Array.isArray(e.tags)?e.tags.filter(e=>"string"==typeof e):[],n=String(e.name??"—"),l=el(e.identifier);return(0,t.jsxs)(A.TableRow,{children:[(0,t.jsx)(A.TableCell,{className:"px-2 py-1.5",children:(0,t.jsx)(eu,{result:String(e.result??"unknown")})}),(0,t.jsxs)(A.TableCell,{className:"max-w-xl px-2 py-1.5 whitespace-normal",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)("span",{className:"font-mono font-medium",children:n}),a.map(e=>(0,t.jsx)(v.Badge,{variant:"outline",children:e},e))]}),l&&l!==n&&(0,t.jsx)("p",{className:"truncate font-mono text-muted-foreground",title:l,children:l}),s.map((e,i)=>(0,t.jsx)("p",{className:"mt-1 text-destructive",children:e},i))]}),(0,t.jsx)(A.TableCell,{className:"px-2 py-1.5 text-right tabular-nums",children:"number"==typeof e.durationSeconds?`${e.durationSeconds.toFixed(3)}s`:"—"})]},`${l??n}:${i}`)})})]})})]})}function eu({result:e}){let i=e.toLocaleLowerCase();return(0,t.jsx)(v.Badge,{className:"passed"===i?"border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"skipped"===i?"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300":"expected failure"===i?"border-violet-500/40 bg-violet-500/10 text-violet-700 dark:text-violet-300":"",variant:"failed"===i?"destructive":"outline",children:e})}function em({label:e,value:i,mono:s=!1}){return(0,t.jsx)(T.DetailItem,{label:e,mono:s,children:i})}e.s(["BuildDetailPage",0,function({buildId:e,publicOrigin:r}){let c=(0,h.useTranslations)("builds"),u=(0,k.useRouter)(),[p,I]=(0,g.useState)(null),[A,L]=(0,g.useState)({buildId:e,chunks:[]}),$=A.buildId===e?A.chunks:Z,O=(0,g.useRef)([]),U=(0,g.useRef)(!1),[F,M]=(0,g.useState)(!0),[q,_]=(0,g.useState)(null),[H,z]=(0,g.useState)(!1),[G,W]=(0,g.useState)(null),[ee,ei]=(0,g.useState)(!1),[es,en]=(0,g.useState)(!1),[el,er]=(0,g.useState)(!1),[eo,ec]=(0,g.useState)(!0),eu=(0,g.useCallback)(async()=>{try{let t=await (0,P.controlPlaneRequest)(`query BuildDetail($id: ID!) { build(id: $id) { ${Q} } }`,{id:e});I(t.build),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{M(!1)}},[e]),ex=(0,g.useCallback)(t=>{L(i=>{let s=function(e,t){let i=new Map(e.map(e=>[e.id,e]));for(let e of t)i.set(e.id,e);return[...i.values()].sort((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.sequence-t.sequence||e.id.localeCompare(t.id))}(i.buildId===e?i.chunks:[],t);return O.current=s,{buildId:e,chunks:s}})},[e]),ep=(0,g.useCallback)(async()=>{if(!U.current)return;let t=O.current.at(-1)?.id??null,i=[];for(;;){let s=await (0,P.controlPlaneRequest)(`query BuildLogChunks($buildId: ID!, $after: ID) {
29
+ `,Y="id scope scopeId sequence phase stream dataBase64 byteLength createdAt",Z=[],ee=new Set(["IPA"]);function et(e){return e.split("_").filter(Boolean).map(e=>ee.has(e)?e:`${e.charAt(0).toLocaleUpperCase()}${e.slice(1).toLocaleLowerCase()}`).join(" ")}let ei=["packageResolution","disablePackageRepositoryCache","signingStyle","developmentTeam","codeSignIdentity","provisioningProfileSpecifier","productBundleIdentifier","allowProvisioningUpdates","allowProvisioningDeviceRegistration","testPlan","codeCoverage","parseTestResults","parallelTesting","parallelTestingWorkers","onlyTesting","skipTesting","buildSettingOverrides","priorBuildForTestingId","priorTestProductsPath","priorXctestrunPath"],es={packageResolution:"DEFAULT",disablePackageRepositoryCache:!1,signingStyle:"PROJECT_DEFAULT",developmentTeam:null,codeSignIdentity:null,provisioningProfileSpecifier:null,productBundleIdentifier:null,allowProvisioningUpdates:!1,allowProvisioningDeviceRegistration:!1,testPlan:null,codeCoverage:!1,parseTestResults:!0,parallelTesting:null,parallelTestingWorkers:null,onlyTesting:[],skipTesting:[],buildSettingOverrides:{},priorBuildForTestingId:null,priorTestProductsPath:null,priorXctestrunPath:null};function ea({settings:e}){let i=(0,h.useTranslations)("builds"),s={packageResolution:i("packageResolution"),disablePackageRepositoryCache:i("disablePackageRepositoryCache"),signingStyle:i("signingStyle"),developmentTeam:i("developmentTeam"),codeSignIdentity:i("codeSignIdentity"),provisioningProfileSpecifier:i("provisioningProfileSpecifier"),productBundleIdentifier:i("productBundleIdentifier"),allowProvisioningUpdates:i("allowProvisioningUpdates"),allowProvisioningDeviceRegistration:i("allowProvisioningDeviceRegistration"),testPlan:i("testPlan"),codeCoverage:i("codeCoverage"),parseTestResults:i("parseTestResults"),parallelTesting:i("parallelTesting"),parallelTestingWorkers:i("parallelTestingWorkers"),onlyTesting:i("onlyTesting"),skipTesting:i("skipTesting"),buildSettingOverrides:i("buildSettingOverrides"),priorBuildForTestingId:i("priorBuildForTesting"),priorTestProductsPath:i("priorTestProductsPath"),priorXctestrunPath:i("priorXctestrunPath")},a=new Set(ei),n=e?[...ei.filter(t=>Object.hasOwn(e,t)),...Object.keys(e).filter(e=>!a.has(e)).sort()].filter(t=>{var i;return i=e[t],Object.hasOwn(es,t)?JSON.stringify(i)!==JSON.stringify(es[t]):null!=i&&""!==i&&!1!==i&&(Array.isArray(i)?i.length>0:"object"!=typeof i||Object.keys(i).length>0)}):[];return e&&n.length?(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:i("advancedSettings")})}),(0,t.jsx)(C.CardContent,{children:(0,t.jsx)(T.DetailList,{className:"gap-3",children:n.map(i=>(0,t.jsx)(T.DetailItem,{label:s[i]??et(i.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replaceAll("-","_")),children:(0,t.jsx)(en,{value:e[i]})},i))})})]}):null}function en({value:e}){let i=(0,h.useTranslations)("builds");if("boolean"==typeof e)return(0,t.jsx)(v.Badge,{variant:e?"default":"secondary",children:i(e?"settingsEnabled":"settingsDisabled")});if(null==e||""===e)return(0,t.jsx)(t.Fragment,{children:"—"});if(Array.isArray(e))return e.length?(0,t.jsx)("span",{className:"break-words font-mono",children:e.map(String).join(", ")}):(0,t.jsx)(t.Fragment,{children:"—"});if("object"==typeof e){let i=JSON.stringify(e);return i&&"{}"!==i?(0,t.jsx)("span",{className:"break-all font-mono",children:i}):(0,t.jsx)(t.Fragment,{children:"—"})}return"string"==typeof e&&/^[A-Z][A-Z0-9_]*$/.test(e)?(0,t.jsx)(t.Fragment,{children:et(e)}):(0,t.jsx)("span",{className:"break-words font-mono",children:String(e)})}function el(e){return"string"==typeof e&&e.trim()?e:null}function er(e,t){return"ALL"===t||String(e.result??"unknown").toLocaleUpperCase()===t}function ed({report:e}){let i=(0,h.useTranslations)("builds"),[s,a]=(0,g.useState)("ALL"),n=Array.isArray(e.data.tests)?e.data.tests:[],l=Array.isArray(e.data.devices)?e.data.devices:[],r=t=>"number"==typeof e.summary[t]?Number(e.summary[t]):0,d=(function(e){let t=new Map;for(let i of e){let e=el(i.bundle),s=el(i.suite),a=el(i.plan),n=el(i.configuration),l=s??e,r=JSON.stringify([a,n,e,l]),d=t.get(r)??{key:r,name:l,bundle:e,plan:a,configuration:n,tests:[]};d.tests.push(i),t.set(r,d)}return[...t.values()].sort((e,t)=>(e.name??"").localeCompare(t.name??"",void 0,{numeric:!0,sensitivity:"base"}))})(n).filter(e=>e.tests.some(e=>er(e,s)));return(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:i("testResults")})}),(0,t.jsx)(C.CardContent,{className:"space-y-4",children:"FAILED"===e.status?(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:e.error??i("testResultsFailed")})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(v.Badge,{variant:"outline",children:i("testTotal",{count:r("total")})}),(0,t.jsx)(v.Badge,{className:"bg-emerald-600 text-white dark:bg-emerald-700",children:i("testPassed",{count:r("passed")})}),(0,t.jsx)(v.Badge,{variant:r("failed")?"destructive":"outline",children:i("testFailed",{count:r("failed")})}),(0,t.jsx)(v.Badge,{className:"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300",variant:"outline",children:i("testSkipped",{count:r("skipped")})}),l.map((e,i)=>(0,t.jsxs)(v.Badge,{variant:"outline",children:[String(e.deviceName??e.modelName??"Device")," ·"," ",String(e.osVersion??"—")]},i))]}),(0,t.jsx)("div",{className:"overflow-x-auto pb-1",children:(0,t.jsx)(I.Tabs,{onValueChange:e=>a(e),value:s,children:(0,t.jsxs)(I.TabsList,{"aria-label":i("testResultFilters"),children:[(0,t.jsx)(I.TabsTrigger,{value:"ALL",children:i("testFilterAll",{count:n.length})}),(0,t.jsx)(I.TabsTrigger,{value:"PASSED",children:i("testFilterPassed",{count:r("passed")})}),(0,t.jsx)(I.TabsTrigger,{value:"FAILED",children:i("testFilterFailed",{count:r("failed")})}),(0,t.jsx)(I.TabsTrigger,{value:"SKIPPED",children:i("testFilterSkipped",{count:r("skipped")})})]})})}),(0,t.jsx)("div",{className:"divide-y rounded-md border",children:d.map(e=>(0,t.jsx)(eo,{filter:s,group:e},e.key))})]})})]})}function eo({filter:e,group:i}){let s=(0,h.useTranslations)("builds"),a=(0,p.useLocale)(),[n,l]=(0,g.useState)(!1),r=i.name??s("testsWithoutSuite"),d=i.tests.filter(e=>"Passed"===e.result).length,o=i.tests.length?d/i.tests.length:0,m=new Intl.NumberFormat(a,{style:"percent",maximumFractionDigits:1}).format(o),x=i.tests.filter(t=>er(t,e)),f=new Map;for(let e of x){let t=function(e){let t=el(e.file);if(t)return t;let i=el(e.suite);return i||(el(e.identifier)?.split("/")[0]??null)}(e)??s("testsWithoutFile");f.set(t,[...f.get(t)??[],e])}let j=[i.bundle,i.configuration,i.plan].filter(Boolean).join(" · ");return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":n,"aria-label":s(n?"collapseTestSuite":"expandTestSuite",{suite:r}),className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>l(e=>!e),type:"button",children:[n?(0,t.jsx)(c.ChevronDown,{className:"size-3.5 shrink-0"}):(0,t.jsx)(u.ChevronRight,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:r}),j&&(0,t.jsx)("span",{className:"hidden shrink-0 text-xs text-muted-foreground sm:inline",children:j}),(0,t.jsx)(v.Badge,{className:1===o?"border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":o>=.5?"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300":"",variant:o<.5?"destructive":"outline",children:s("testSuitePassed",{passed:d,total:i.tests.length,percent:m})})]}),n&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-2",children:(0,t.jsx)("div",{className:"divide-y rounded-md border bg-background",children:[...f.entries()].sort(([e],[t])=>e.localeCompare(t,a,{numeric:!0,sensitivity:"base"})).map(([e,i])=>(0,t.jsx)(ec,{file:e,tests:i},e))})})]})}function ec({file:e,tests:i}){let s=(0,h.useTranslations)("builds"),[a,n]=(0,g.useState)(!1);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,"aria-label":s(a?"collapseTestFile":"expandTestFile",{file:e}),className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>n(e=>!e),type:"button",children:[a?(0,t.jsx)(c.ChevronDown,{className:"size-3.5 shrink-0"}):(0,t.jsx)(u.ChevronRight,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",title:e,children:e}),(0,t.jsx)(v.Badge,{variant:"outline",children:s("testTotal",{count:i.length})})]}),a&&(0,t.jsx)("div",{className:"border-t overflow-auto",children:(0,t.jsxs)(A.Table,{"aria-label":e,className:"min-w-[38rem] text-xs",children:[(0,t.jsx)(A.TableHeader,{children:(0,t.jsxs)(A.TableRow,{children:[(0,t.jsx)(A.TableHead,{className:"h-8 px-2",children:s("testStatus")}),(0,t.jsx)(A.TableHead,{className:"h-8 px-2",children:s("testName")}),(0,t.jsx)(A.TableHead,{className:"h-8 px-2 text-right",children:s("testDuration")})]})}),(0,t.jsx)(A.TableBody,{children:i.map((e,i)=>{let s=Array.isArray(e.details)?e.details.filter(e=>"string"==typeof e):[],a=Array.isArray(e.tags)?e.tags.filter(e=>"string"==typeof e):[],n=String(e.name??"—"),l=el(e.identifier);return(0,t.jsxs)(A.TableRow,{children:[(0,t.jsx)(A.TableCell,{className:"px-2 py-1.5",children:(0,t.jsx)(eu,{result:String(e.result??"unknown")})}),(0,t.jsxs)(A.TableCell,{className:"max-w-xl px-2 py-1.5 whitespace-normal",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)("span",{className:"font-mono font-medium",children:n}),a.map(e=>(0,t.jsx)(v.Badge,{variant:"outline",children:e},e))]}),l&&l!==n&&(0,t.jsx)("p",{className:"truncate font-mono text-muted-foreground",title:l,children:l}),s.map((e,i)=>(0,t.jsx)("p",{className:"mt-1 text-destructive",children:e},i))]}),(0,t.jsx)(A.TableCell,{className:"px-2 py-1.5 text-right tabular-nums",children:"number"==typeof e.durationSeconds?`${e.durationSeconds.toFixed(3)}s`:"—"})]},`${l??n}:${i}`)})})]})})]})}function eu({result:e}){let i=e.toLocaleLowerCase();return(0,t.jsx)(v.Badge,{className:"passed"===i?"border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"skipped"===i?"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300":"expected failure"===i?"border-violet-500/40 bg-violet-500/10 text-violet-700 dark:text-violet-300":"",variant:"failed"===i?"destructive":"outline",children:e})}function em({label:e,value:i,mono:s=!1}){return(0,t.jsx)(T.DetailItem,{label:e,mono:s,children:i})}e.s(["BuildDetailPage",0,function({buildId:e,publicOrigin:r}){let c=(0,h.useTranslations)("builds"),u=(0,p.useLocale)(),I=(0,k.useRouter)(),[A,L]=(0,g.useState)(null),[$,O]=(0,g.useState)({buildId:e,chunks:[]}),U=$.buildId===e?$.chunks:Z,F=(0,g.useRef)([]),M=(0,g.useRef)(!1),[q,_]=(0,g.useState)(!0),[H,z]=(0,g.useState)(null),[G,W]=(0,g.useState)(!1),[ee,ei]=(0,g.useState)(null),[es,en]=(0,g.useState)(!1),[el,er]=(0,g.useState)(!1),[eo,ec]=(0,g.useState)(!1),[eu,ex]=(0,g.useState)(!0),ep=(0,g.useCallback)(async()=>{try{let t=await (0,P.controlPlaneRequest)(`query BuildDetail($id: ID!) { build(id: $id) { ${Q} } }`,{id:e});L(t.build),z(null)}catch(e){z(e instanceof Error?e.message:String(e))}finally{_(!1)}},[e]),eh=(0,g.useCallback)(t=>{O(i=>{let s=function(e,t){let i=new Map(e.map(e=>[e.id,e]));for(let e of t)i.set(e.id,e);return[...i.values()].sort((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.sequence-t.sequence||e.id.localeCompare(t.id))}(i.buildId===e?i.chunks:[],t);return F.current=s,{buildId:e,chunks:s}})},[e]),eg=(0,g.useCallback)(async()=>{if(!M.current)return;let t=F.current.at(-1)?.id??null,i=[];for(;;){let s=await (0,P.controlPlaneRequest)(`query BuildLogChunks($buildId: ID!, $after: ID) {
30
30
  buildLogChunks(buildId: $buildId, after: $after, first: 1000) { ${Y} }
31
- }`,{buildId:e,after:t});if(i.push(...s.buildLogChunks),s.buildLogChunks.length<1e3)break;let a=s.buildLogChunks.at(-1);if(!a)break;t=a.id}i.length&&ex(i)},[e,ex]);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>void eu(),0);return()=>window.clearTimeout(e)},[eu]),(0,g.useEffect)(()=>(0,P.controlPlaneSubscriptions)().subscribe({query:"subscription BuildChanged($id: ID!) { buildChanged(id: $id) { id } }",variables:{id:e}},{next:()=>void eu(),error:()=>void 0,complete:()=>void 0}),[e,eu]),(0,g.useEffect)(()=>{let t=!1,i=!0,s=[];O.current=[],U.current=!1;let a=(0,P.controlPlaneSubscriptions)().subscribe({query:`subscription BuildLogChunkAdded($buildId: ID!) {
31
+ }`,{buildId:e,after:t});if(i.push(...s.buildLogChunks),s.buildLogChunks.length<1e3)break;let a=s.buildLogChunks.at(-1);if(!a)break;t=a.id}i.length&&eh(i)},[e,eh]);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>void ep(),0);return()=>window.clearTimeout(e)},[ep]),(0,g.useEffect)(()=>(0,P.controlPlaneSubscriptions)().subscribe({query:"subscription BuildChanged($id: ID!) { buildChanged(id: $id) { id } }",variables:{id:e}},{next:()=>void ep(),error:()=>void 0,complete:()=>void 0}),[e,ep]),(0,g.useEffect)(()=>{let t=!1,i=!0,s=[];F.current=[],M.current=!1;let a=(0,P.controlPlaneSubscriptions)().subscribe({query:`subscription BuildLogChunkAdded($buildId: ID!) {
32
32
  buildLogChunkAdded(buildId: $buildId) { ${Y} }
33
- }`,variables:{buildId:e}},{next:e=>{let t=e.data?.buildLogChunkAdded;t&&(i?s.push(t):ex([t]))},error:()=>void 0,complete:()=>void 0});return(async()=>{let a=[],n=null;for(;!t;){let t=await (0,P.controlPlaneRequest)(`query BuildLogChunks($buildId: ID!, $after: ID) {
33
+ }`,variables:{buildId:e}},{next:e=>{let t=e.data?.buildLogChunkAdded;t&&(i?s.push(t):eh([t]))},error:()=>void 0,complete:()=>void 0});return(async()=>{let a=[],n=null;for(;!t;){let t=await (0,P.controlPlaneRequest)(`query BuildLogChunks($buildId: ID!, $after: ID) {
34
34
  buildLogChunks(buildId: $buildId, after: $after, first: 1000) { ${Y} }
35
- }`,{buildId:e,after:n});if(a.push(...t.buildLogChunks),t.buildLogChunks.length<1e3)break;let i=t.buildLogChunks.at(-1);if(!i)break;n=i.id}t||(i=!1,U.current=!0,ex([...a,...s]),s=[])})().catch(e=>{t||(i=!1,U.current=!0,ex(s),s=[],_(e instanceof Error?e.message:String(e)))}),()=>{t=!0,a()}},[e,ex]);let eh=null!==p&&(["QUEUED","PREPARING","RUNNING"].includes(p.status)||p.deployments.some(e=>["QUEUED","RUNNING"].includes(e.status))||p.exports.some(e=>["QUEUED","RUNNING"].includes(e.status)));(0,g.useEffect)(()=>{if(!eh)return;let e=window.setInterval(()=>{eu(),ep().catch(e=>_(e instanceof Error?e.message:String(e)))},2e3);return()=>window.clearInterval(e)},[eh,ep,eu]),(0,g.useEffect)(()=>{if(!el)return;let e=window.setTimeout(()=>er(!1),2e3);return()=>window.clearTimeout(e)},[el]);let eg=async()=>{z(!0);try{await (0,P.controlPlaneRequest)("mutation CancelBuild($id: ID!) { cancelBuild(id: $id) { id status } }",{id:e}),await eu()}catch(e){_(e instanceof Error?e.message:String(e))}finally{z(!1)}},ef=async()=>{z(!0),_(null);try{await (0,P.controlPlaneRequest)("mutation DeleteBuild($ids: [ID!]!) { deleteBuilds(ids: $ids) }",{ids:[e]}),u.replace("/builds")}catch(e){_(e instanceof Error?e.message:String(e)),en(!1)}finally{z(!1)}},ej=p?.artifacts.some(e=>"RUNNABLE_APP"===e.kind),eb=p?.artifacts.some(e=>"ARCHIVE"===e.kind),ev=p?.reports?.find(e=>"TEST_RESULTS"===e.kind),ey=p?.reports?.find(e=>"CODE_COVERAGE"===e.kind),eS=p?.artifacts.find(e=>"RESULT_BUNDLE"===e.kind),eC=!!p&&["TEST","TEST_WITHOUT_BUILDING"].includes(p.action),eT=p?.snapshot??{},eN=eT.repository,ew=eT.worktree,eI=eT.configuration,eA=eS?.metadata.coverageAvailable===!0||eI?.advancedSettings?.codeCoverage===!0,ek=p?.worktree?.highlightColor,eE=async e=>{try{await (0,E.copyText)(e),er(!0)}catch{_(c("copyFailed"))}},eP=async t=>{W(t),_(null);try{let i="TEST_RESULTS"===t?"parseBuildTestResults":"generateBuildCoverageReport";await (0,P.controlPlaneRequest)(`mutation GenerateBuildReport($buildId: ID!, $requestId: ID!) {
35
+ }`,{buildId:e,after:n});if(a.push(...t.buildLogChunks),t.buildLogChunks.length<1e3)break;let i=t.buildLogChunks.at(-1);if(!i)break;n=i.id}t||(i=!1,M.current=!0,eh([...a,...s]),s=[])})().catch(e=>{t||(i=!1,M.current=!0,eh(s),s=[],z(e instanceof Error?e.message:String(e)))}),()=>{t=!0,a()}},[e,eh]);let ef=null!==A&&(["QUEUED","PREPARING","RUNNING"].includes(A.status)||A.deployments.some(e=>["QUEUED","RUNNING"].includes(e.status))||A.exports.some(e=>["QUEUED","RUNNING"].includes(e.status)));(0,g.useEffect)(()=>{if(!ef)return;let e=window.setInterval(()=>{ep(),eg().catch(e=>z(e instanceof Error?e.message:String(e)))},2e3);return()=>window.clearInterval(e)},[ef,eg,ep]),(0,g.useEffect)(()=>{if(!eo)return;let e=window.setTimeout(()=>ec(!1),2e3);return()=>window.clearTimeout(e)},[eo]);let ej=async()=>{W(!0);try{await (0,P.controlPlaneRequest)("mutation CancelBuild($id: ID!) { cancelBuild(id: $id) { id status } }",{id:e}),await ep()}catch(e){z(e instanceof Error?e.message:String(e))}finally{W(!1)}},eb=async()=>{W(!0),z(null);try{await (0,P.controlPlaneRequest)("mutation DeleteBuild($ids: [ID!]!) { deleteBuilds(ids: $ids) }",{ids:[e]}),I.replace("/builds")}catch(e){z(e instanceof Error?e.message:String(e)),er(!1)}finally{W(!1)}},ev=A?.artifacts.some(e=>"RUNNABLE_APP"===e.kind),ey=A?.artifacts.some(e=>"ARCHIVE"===e.kind),eC=A?.reports?.find(e=>"TEST_RESULTS"===e.kind),eS=A?.reports?.find(e=>"CODE_COVERAGE"===e.kind),eT=A?.artifacts.find(e=>"RESULT_BUNDLE"===e.kind),ew=!!A&&["TEST","TEST_WITHOUT_BUILDING"].includes(A.action),eN=A?.snapshot??{},eI=eN.repository,eA=eN.worktree,ek=eN.configuration,eE=eT?.metadata.coverageAvailable===!0||ek?.advancedSettings?.codeCoverage===!0,eP=A?.worktree?.highlightColor,eD=async e=>{try{await (0,E.copyText)(e),ec(!0)}catch{z(c("copyFailed"))}},eB=async t=>{ei(t),z(null);try{let i="TEST_RESULTS"===t?"parseBuildTestResults":"generateBuildCoverageReport";await (0,P.controlPlaneRequest)(`mutation GenerateBuildReport($buildId: ID!, $requestId: ID!) {
36
36
  ${i}(buildId: $buildId, requestId: $requestId) { id status error }
37
- }`,{buildId:e,requestId:(0,E.createClientId)()}),await eu()}catch(e){_(e instanceof Error?e.message:String(e))}finally{W(null)}},eD=(0,g.useMemo)(()=>$.map(e=>{let t=et(e.phase),i=t;if("DEPLOYMENT"===e.scope){let s=p?.deployments.find(t=>t.id===e.scopeId)?.destination.name;i=`${s??et(e.scope)} \xb7 ${t}`}else"EXPORT"===e.scope&&(i=`${c("archiveExport")} \xb7 ${t}`);return{id:e.id,data:(0,j.decodeTerminalBase64)(e.dataBase64),divider:i,dividerKey:`${e.scope}:${e.scopeId}:${e.phase}`}}),[p?.deployments,$,c]);return F?(0,t.jsxs)("p",{className:"mx-auto flex w-full max-w-[1500px] items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(w.Spinner,{})," ",c("loading")]}):p?(0,t.jsxs)("section",{className:"mx-auto flex min-w-0 w-full max-w-[1500px] flex-col gap-5",children:[(0,t.jsx)("div",{children:(0,t.jsx)(y.Button,{asChild:!0,className:"-ml-2",size:"sm",variant:"ghost",children:(0,t.jsxs)(k.Link,{href:"/builds",children:[(0,t.jsx)(s.ArrowLeft,{})," ",c("backToBuilds")]})})}),q&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:q})}),p.error&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsxs)(b.AlertDescription,{children:[p.errorCode?`${p.errorCode}: `:"",p.error]})}),(0,t.jsxs)("div",{"data-testid":"build-summary",className:(0,D.cn)("flex flex-wrap items-start justify-between gap-4",ek&&"rounded-lg border-l-4 px-4 py-3",ek&&B.worktreeHighlightBackgroundClasses[ek],ek&&B.worktreeHighlightAccentClasses[ek]),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:eN?.name??"—"}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:eI?.name??p.id}),(0,t.jsx)(v.Badge,{variant:(0,R.buildStatusVariant)(p.status),children:c(`statuses.${p.status}`)}),(0,t.jsx)(v.Badge,{variant:"outline",children:c(`actions.${p.action}`)}),p.outOfDate&&(0,t.jsx)(v.Badge,{className:"border-amber-500/40 text-amber-700 dark:text-amber-300",variant:"outline",children:c("outOfDate")})]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[ew?.branch??ew?.folder??"—"," ·"," ",p.destination.name]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[c("buildId"),": ",p.id]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(K.RebuildButton,{buildId:p.id,onCompleted:e=>u.push(`/builds/${e.id}`),onError:_}),["QUEUED","PREPARING","RUNNING"].includes(p.status)&&(0,t.jsxs)(y.Button,{disabled:H,onClick:()=>void eg(),variant:"destructive",children:[H?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(m.CircleStop,{})," ",c("cancelBuild")]}),"SUCCEEDED"===p.status&&ej&&(0,t.jsx)(J.RunBuildControls,{buildId:p.id,destinationType:p.destinationType,onCompleted:eu,onError:_,preferredDestination:p.destination}),"SUCCEEDED"===p.status&&eb&&(0,t.jsxs)(y.Button,{onClick:()=>ei(!0),variant:"outline",children:[(0,t.jsx)(i.Archive,{})," ",c("exportArchive")]}),!eh&&eC&&eS&&ev?.status!=="READY"&&(0,t.jsxs)(y.Button,{disabled:null!==G,onClick:()=>void eP("TEST_RESULTS"),variant:"outline",children:["TEST_RESULTS"===G?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(d,{}),ev?.status==="FAILED"?c("retryParseTestResults"):c("parseTestResultsAction")]}),!eh&&eS&&eA&&ey?.status!=="READY"&&(0,t.jsxs)(y.Button,{disabled:null!==G,onClick:()=>void eP("CODE_COVERAGE"),variant:"outline",children:["CODE_COVERAGE"===G?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(o,{}),ey?.status==="FAILED"?c("retryCoverageReport"):c("generateCoverageReport")]}),ey?.status==="READY"&&(0,t.jsx)(y.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(k.Link,{href:`/builds/${p.id}/coverage`,children:[(0,t.jsx)(o,{})," ",c("viewCoverageReport")]})}),(0,t.jsxs)(y.Button,{disabled:H||["QUEUED","PREPARING","RUNNING"].includes(p.status),onClick:()=>en(!0),variant:"destructive",children:[(0,t.jsx)(x.Trash2,{})," ",c("deleteBuild")]})]})]}),ev&&(0,t.jsx)(ed,{report:ev}),(0,t.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]",children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-5",children:[(0,t.jsx)(j.TerminalOutputCard,{ariaLabel:c("logs"),collapseLabel:c("collapseLogs"),emptyText:c("noLogs"),entries:eD,expandLabel:c("expandLogs"),fitLabel:c("fitTerminal"),followLabel:c("followOutput"),nextMatchLabel:c("nextTerminalMatch"),onOpenChange:ec,open:eo,previousMatchLabel:c("previousTerminalMatch"),searchLabel:c("searchTerminal"),sourceKey:e,title:c("logs")},e),(0,t.jsxs)(S.Card,{children:[(0,t.jsxs)(S.CardHeader,{children:[(0,t.jsx)(S.CardTitle,{children:c("commandSummary")}),(0,t.jsx)(S.CardAction,{children:(0,t.jsx)(y.Button,{"aria-label":el?c("commandCopied"):c("copyCommand"),onClick:()=>void eE(p.commandSummary),size:"icon-sm",type:"button",variant:"ghost",children:el?(0,t.jsx)(a.Check,{}):(0,t.jsx)(n.Copy,{})})})]}),(0,t.jsx)(S.CardContent,{children:(0,t.jsx)("pre",{className:"w-full min-w-0 max-w-full overflow-x-auto rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap [overflow-wrap:anywhere]",children:p.commandSummary})})]}),(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:c("scripts")})}),(0,t.jsx)(S.CardContent,{className:"space-y-2",children:p.scriptExecutions.length?p.scriptExecutions.map(e=>(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border p-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[e.nameSnapshot," ·"," ",et(e.phase)]}),e.error&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:e.error})]}),(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)})]},e.id)):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noScriptExecutions")})})]})]}),(0,t.jsxs)("div",{className:"min-w-0 space-y-5",children:[(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:c("overview")})}),(0,t.jsx)(S.CardContent,{children:(0,t.jsxs)(T.DetailList,{className:"gap-3",children:[(0,t.jsx)(em,{label:c("buildId"),value:p.id,mono:!0}),(0,t.jsx)(em,{label:c("scheme"),value:eI?.scheme??"—",mono:!0}),(0,t.jsx)(em,{label:c("configuration"),value:eI?.buildConfiguration??"—",mono:!0}),(0,t.jsx)(em,{label:c("head"),value:ew?.headSha??"—",mono:!0}),(0,t.jsx)(em,{label:c("startedAt"),value:(0,t.jsx)(C.DateTime,{value:p.startedAt})}),(0,t.jsx)(em,{label:c("finishedAt"),value:(0,t.jsx)(C.DateTime,{value:p.finishedAt})}),(0,t.jsx)(em,{label:c("artifactDirectory"),value:p.artifactDirectory,mono:!0})]})})]}),(0,t.jsx)(ea,{settings:eI?.advancedSettings}),(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:c("artifacts")})}),(0,t.jsx)(S.CardContent,{className:"space-y-2",children:p.artifacts.length?p.artifacts.map(e=>{let i="IPA"===e.kind,s=e.metadata??{};return(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(v.Badge,{variant:"outline",children:et(e.kind)}),(0,t.jsx)(y.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{download:!0,href:`/api/public/builds/${encodeURIComponent(p.id)}/artifacts/${encodeURIComponent(e.id)}`,children:[(0,t.jsx)(l.Download,{})," ",i?c("downloadIpa"):c("downloadArtifact")]})})]}),(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs text-muted-foreground",children:e.relativePath}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("dl",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:["string"==typeof s.bundleIdentifier&&(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)("dt",{children:c("ipaBundleIdentifier")}),(0,t.jsx)("dd",{className:"break-all font-mono",children:s.bundleIdentifier})]}),"string"==typeof s.bundleShortVersion&&(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)("dt",{children:c("ipaBundleVersion")}),(0,t.jsx)("dd",{className:"font-mono",children:s.bundleShortVersion})]})]}),(0,t.jsx)("div",{className:"mt-2 flex justify-end",children:(0,t.jsx)(X,{artifactId:e.id,buildId:p.id,metadata:s,publicOrigin:r})})]})]},e.id)}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noArtifacts")})})]}),(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:c("runsAndExports")})}),(0,t.jsxs)(S.CardContent,{className:"space-y-2",children:[p.deployments.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.destination.name}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)}),(0,t.jsx)(C.DateTime,{className:"text-xs text-muted-foreground",value:e.finishedAt??e.startedAt??e.createdAt})]})]}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),p.exports.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:c("archiveExport")}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)}),(0,t.jsx)(C.DateTime,{className:"text-xs text-muted-foreground",value:e.finishedAt??e.startedAt??e.createdAt})]})]}),e.outputRelativePath&&(0,t.jsx)("p",{className:"mt-1 font-mono text-xs",children:e.outputRelativePath}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),!p.deployments.length&&!p.exports.length&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noRunsOrExports")})]})]})]})]}),ee&&(0,t.jsx)(V,{buildId:p.id,onOpenChange:ei,onSaved:eu,open:ee}),(0,t.jsx)(f.ConfirmationDialog,{actionLabel:c("deleteBuild"),cancelLabel:c("cancel"),description:c("deleteBuildDescription"),onConfirm:ef,onOpenChange:en,open:es,title:c("deleteBuildTitle")})]}):(0,t.jsxs)(N.Empty,{className:"mx-auto w-full max-w-[1500px] border py-12",children:[(0,t.jsxs)(N.EmptyHeader,{children:[(0,t.jsx)(N.EmptyTitle,{children:c("buildNotFound")}),(0,t.jsx)(N.EmptyDescription,{children:c("buildNotFoundDescription")})]}),(0,t.jsx)(y.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(k.Link,{href:"/builds",children:[(0,t.jsx)(s.ArrowLeft,{})," ",c("backToBuilds")]})})]})}],885325)}]);
37
+ }`,{buildId:e,requestId:(0,E.createClientId)()}),await ep()}catch(e){z(e instanceof Error?e.message:String(e))}finally{ei(null)}},eR=(0,g.useMemo)(()=>U.map(e=>{let t=et(e.phase),i=t;if("DEPLOYMENT"===e.scope){let s=A?.deployments.find(t=>t.id===e.scopeId)?.destination.name;i=`${s??et(e.scope)} \xb7 ${t}`}else"EXPORT"===e.scope&&(i=`${c("archiveExport")} \xb7 ${t}`);return{id:e.id,data:(0,j.decodeTerminalBase64)(e.dataBase64),divider:i,dividerKey:`${e.scope}:${e.scopeId}:${e.phase}`}}),[A?.deployments,U,c]);return q?(0,t.jsxs)("p",{className:"mx-auto flex w-full max-w-[1500px] items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{})," ",c("loading")]}):A?(0,t.jsxs)("section",{className:"mx-auto flex min-w-0 w-full max-w-[1500px] flex-col gap-5",children:[(0,t.jsx)("div",{children:(0,t.jsx)(y.Button,{asChild:!0,className:"-ml-2",size:"sm",variant:"ghost",children:(0,t.jsxs)(k.Link,{href:"/builds",children:[(0,t.jsx)(s.ArrowLeft,{})," ",c("backToBuilds")]})})}),H&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:H})}),A.error&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsxs)(b.AlertDescription,{children:[A.errorCode?`${A.errorCode}: `:"",A.error]})}),(0,t.jsxs)("div",{"data-testid":"build-summary",className:(0,D.cn)("flex flex-wrap items-start justify-between gap-4",eP&&"rounded-lg border-l-4 px-4 py-3",eP&&B.worktreeHighlightBackgroundClasses[eP],eP&&B.worktreeHighlightAccentClasses[eP]),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:eI?.name??"—"}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:ek?.name??A.id}),(0,t.jsx)(v.Badge,{variant:(0,R.buildStatusVariant)(A.status),children:c(`statuses.${A.status}`)}),(0,t.jsx)(v.Badge,{variant:"outline",children:c(`actions.${A.action}`)}),A.outOfDate&&(0,t.jsx)(v.Badge,{className:"border-amber-500/40 text-amber-700 dark:text-amber-300",variant:"outline",children:c("outOfDate")})]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[eA?.branch??eA?.folder??"—"," ·"," ",A.destination.name]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[c("buildId"),": ",A.id]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(K.RebuildButton,{buildId:A.id,onCompleted:e=>I.push(`/builds/${e.id}`),onError:z}),["QUEUED","PREPARING","RUNNING"].includes(A.status)&&(0,t.jsxs)(y.Button,{disabled:G,onClick:()=>void ej(),variant:"destructive",children:[G?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(m.CircleStop,{})," ",c("cancelBuild")]}),"SUCCEEDED"===A.status&&ev&&(0,t.jsx)(J.RunBuildControls,{buildId:A.id,destinationType:A.destinationType,onCompleted:ep,onError:z,preferredDestination:A.destination}),"SUCCEEDED"===A.status&&ey&&(0,t.jsxs)(y.Button,{onClick:()=>en(!0),variant:"outline",children:[(0,t.jsx)(i.Archive,{})," ",c("exportArchive")]}),!ef&&ew&&eT&&eC?.status!=="READY"&&(0,t.jsxs)(y.Button,{disabled:null!==ee,onClick:()=>void eB("TEST_RESULTS"),variant:"outline",children:["TEST_RESULTS"===ee?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(d,{}),eC?.status==="FAILED"?c("retryParseTestResults"):c("parseTestResultsAction")]}),!ef&&eT&&eE&&eS?.status!=="READY"&&(0,t.jsxs)(y.Button,{disabled:null!==ee,onClick:()=>void eB("CODE_COVERAGE"),variant:"outline",children:["CODE_COVERAGE"===ee?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(o,{}),eS?.status==="FAILED"?c("retryCoverageReport"):c("generateCoverageReport")]}),eS?.status==="READY"&&(0,t.jsx)(y.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(k.Link,{href:`/builds/${A.id}/coverage`,children:[(0,t.jsx)(o,{})," ",c("viewCoverageReport")]})}),(0,t.jsxs)(y.Button,{disabled:G||["QUEUED","PREPARING","RUNNING"].includes(A.status),onClick:()=>er(!0),variant:"destructive",children:[(0,t.jsx)(x.Trash2,{})," ",c("deleteBuild")]})]})]}),eC&&(0,t.jsx)(ed,{report:eC}),(0,t.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]",children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-5",children:[(0,t.jsx)(j.TerminalOutputCard,{ariaLabel:c("logs"),collapseLabel:c("collapseLogs"),emptyText:c("noLogs"),entries:eR,expandLabel:c("expandLogs"),fitLabel:c("fitTerminal"),followLabel:c("followOutput"),nextMatchLabel:c("nextTerminalMatch"),onOpenChange:ex,open:eu,previousMatchLabel:c("previousTerminalMatch"),rawOutputHref:`/${u}/builds/${encodeURIComponent(e)}/output`,rawOutputLabel:c("viewRawOutput"),searchLabel:c("searchTerminal"),sourceKey:e,title:c("logs")},e),(0,t.jsxs)(C.Card,{children:[(0,t.jsxs)(C.CardHeader,{children:[(0,t.jsx)(C.CardTitle,{children:c("commandSummary")}),(0,t.jsx)(C.CardAction,{children:(0,t.jsx)(y.Button,{"aria-label":eo?c("commandCopied"):c("copyCommand"),onClick:()=>void eD(A.commandSummary),size:"icon-sm",type:"button",variant:"ghost",children:eo?(0,t.jsx)(a.Check,{}):(0,t.jsx)(n.Copy,{})})})]}),(0,t.jsx)(C.CardContent,{children:(0,t.jsx)("pre",{className:"w-full min-w-0 max-w-full overflow-x-auto rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap [overflow-wrap:anywhere]",children:A.commandSummary})})]}),(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:c("scripts")})}),(0,t.jsx)(C.CardContent,{className:"space-y-2",children:A.scriptExecutions.length?A.scriptExecutions.map(e=>(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border p-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[e.nameSnapshot," ·"," ",et(e.phase)]}),e.error&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:e.error})]}),(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)})]},e.id)):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noScriptExecutions")})})]})]}),(0,t.jsxs)("div",{className:"min-w-0 space-y-5",children:[(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:c("overview")})}),(0,t.jsx)(C.CardContent,{children:(0,t.jsxs)(T.DetailList,{className:"gap-3",children:[(0,t.jsx)(em,{label:c("buildId"),value:A.id,mono:!0}),(0,t.jsx)(em,{label:c("scheme"),value:ek?.scheme??"—",mono:!0}),(0,t.jsx)(em,{label:c("configuration"),value:ek?.buildConfiguration??"—",mono:!0}),(0,t.jsx)(em,{label:c("head"),value:eA?.headSha??"—",mono:!0}),(0,t.jsx)(em,{label:c("startedAt"),value:(0,t.jsx)(S.DateTime,{value:A.startedAt})}),(0,t.jsx)(em,{label:c("finishedAt"),value:(0,t.jsx)(S.DateTime,{value:A.finishedAt})}),(0,t.jsx)(em,{label:c("artifactDirectory"),value:A.artifactDirectory,mono:!0})]})})]}),(0,t.jsx)(ea,{settings:ek?.advancedSettings}),(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:c("artifacts")})}),(0,t.jsx)(C.CardContent,{className:"space-y-2",children:A.artifacts.length?A.artifacts.map(e=>{let i="IPA"===e.kind,s=e.metadata??{};return(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(v.Badge,{variant:"outline",children:et(e.kind)}),(0,t.jsx)(y.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{download:!0,href:`/api/public/builds/${encodeURIComponent(A.id)}/artifacts/${encodeURIComponent(e.id)}`,children:[(0,t.jsx)(l.Download,{})," ",i?c("downloadIpa"):c("downloadArtifact")]})})]}),(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs text-muted-foreground",children:e.relativePath}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("dl",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:["string"==typeof s.bundleIdentifier&&(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)("dt",{children:c("ipaBundleIdentifier")}),(0,t.jsx)("dd",{className:"break-all font-mono",children:s.bundleIdentifier})]}),"string"==typeof s.bundleShortVersion&&(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)("dt",{children:c("ipaBundleVersion")}),(0,t.jsx)("dd",{className:"font-mono",children:s.bundleShortVersion})]})]}),(0,t.jsx)("div",{className:"mt-2 flex justify-end",children:(0,t.jsx)(X,{artifactId:e.id,buildId:A.id,metadata:s,publicOrigin:r})})]})]},e.id)}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noArtifacts")})})]}),(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:c("runsAndExports")})}),(0,t.jsxs)(C.CardContent,{className:"space-y-2",children:[A.deployments.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.destination.name}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)}),(0,t.jsx)(S.DateTime,{className:"text-xs text-muted-foreground",value:e.finishedAt??e.startedAt??e.createdAt})]})]}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),A.exports.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:c("archiveExport")}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)}),(0,t.jsx)(S.DateTime,{className:"text-xs text-muted-foreground",value:e.finishedAt??e.startedAt??e.createdAt})]})]}),e.outputRelativePath&&(0,t.jsx)("p",{className:"mt-1 font-mono text-xs",children:e.outputRelativePath}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),!A.deployments.length&&!A.exports.length&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noRunsOrExports")})]})]})]})]}),es&&(0,t.jsx)(V,{buildId:A.id,onOpenChange:en,onSaved:ep,open:es}),(0,t.jsx)(f.ConfirmationDialog,{actionLabel:c("deleteBuild"),cancelLabel:c("cancel"),description:c("deleteBuildDescription"),onConfirm:eb,onOpenChange:er,open:el,title:c("deleteBuildTitle")})]}):(0,t.jsxs)(w.Empty,{className:"mx-auto w-full max-w-[1500px] border py-12",children:[(0,t.jsxs)(w.EmptyHeader,{children:[(0,t.jsx)(w.EmptyTitle,{children:c("buildNotFound")}),(0,t.jsx)(w.EmptyDescription,{children:c("buildNotFoundDescription")})]}),(0,t.jsx)(y.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(k.Link,{href:"/builds",children:[(0,t.jsx)(s.ArrowLeft,{})," ",c("backToBuilds")]})})]})}],885325)}]);