@ai-development-environment/server 0.0.48 → 0.0.49

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 (575) hide show
  1. package/package.json +1 -1
  2. package/prisma-runtime/prisma/migrations/20260723214432_add_model_costs/migration.sql +28 -0
  3. package/prisma-runtime/prisma/schema.prisma +30 -0
  4. package/standalone/.next/BUILD_ID +1 -1
  5. package/standalone/.next/app-path-routes-manifest.json +1 -0
  6. package/standalone/.next/build-manifest.json +3 -3
  7. package/standalone/.next/prerender-manifest.json +3 -3
  8. package/standalone/.next/routes-manifest.json +8 -0
  9. package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
  22. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
  23. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  24. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  25. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  26. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  27. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  28. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  29. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  30. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  31. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  32. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  33. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  34. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  35. package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
  36. package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
  37. package/standalone/.next/server/app/[locale]/costs/page/app-paths-manifest.json +3 -0
  38. package/standalone/.next/server/app/[locale]/costs/page/build-manifest.json +16 -0
  39. package/standalone/.next/server/app/[locale]/costs/page/next-font-manifest.json +11 -0
  40. package/standalone/.next/server/app/[locale]/costs/page/react-loadable-manifest.json +1 -0
  41. package/standalone/.next/server/app/[locale]/costs/page/server-reference-manifest.json +4 -0
  42. package/standalone/.next/server/app/[locale]/costs/page.js +17 -0
  43. package/standalone/.next/server/app/[locale]/costs/page.js.map +5 -0
  44. package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -0
  45. package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +3 -0
  46. package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
  47. package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
  48. package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
  49. package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
  50. package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
  51. package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
  52. package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
  53. package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
  54. package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
  55. package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
  56. package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
  57. package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
  58. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
  59. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  60. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  61. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  62. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  63. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  64. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
  65. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  66. package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
  67. package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
  68. package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
  69. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  70. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
  71. package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
  72. package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
  73. package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
  74. package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
  75. package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
  76. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  77. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
  78. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
  79. package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
  80. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  81. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  82. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  83. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  84. package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
  85. package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
  86. package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
  87. package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
  88. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
  89. package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
  90. package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
  91. package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
  92. package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
  93. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  94. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
  95. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  96. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
  97. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  98. package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
  99. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  100. package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
  101. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  102. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
  103. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  104. package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
  105. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  106. package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
  107. package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
  108. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  109. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  110. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  111. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  112. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  113. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  114. package/standalone/.next/server/app/_global-error.html +1 -1
  115. package/standalone/.next/server/app/_global-error.rsc +1 -1
  116. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  117. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  118. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  119. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  120. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  121. package/standalone/.next/server/app/_not-found.html +1 -1
  122. package/standalone/.next/server/app/_not-found.rsc +1 -1
  123. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  124. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  125. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  126. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  127. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  128. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  129. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js +1 -1
  130. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  131. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +1 -1
  132. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
  133. package/standalone/.next/server/app/api/codebases/by-path/route.js +1 -1
  134. package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
  135. package/standalone/.next/server/app/api/codebases/route.js +1 -1
  136. package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
  137. package/standalone/.next/server/app/api/graphql/route.js +1 -1
  138. package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
  139. package/standalone/.next/server/app/api/ios/apns-devices/route.js +1 -1
  140. package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
  141. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js +1 -1
  142. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
  143. package/standalone/.next/server/app/api/ios/enrollment/start/route.js +1 -1
  144. package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
  145. package/standalone/.next/server/app/api/mcp/route.js +1 -1
  146. package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
  147. package/standalone/.next/server/app/api/openapi.json/route.js +1 -1
  148. package/standalone/.next/server/app/api/openapi.json/route.js.nft.json +1 -1
  149. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js +1 -1
  150. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
  151. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js +1 -1
  152. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
  153. package/standalone/.next/server/app/api/public/github/webhook/route.js +1 -1
  154. package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
  155. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js +1 -1
  156. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
  157. package/standalone/.next/server/app/api/public/ios/profile-response/route.js +1 -1
  158. package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
  159. package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js +1 -1
  160. package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  161. package/standalone/.next/server/app/api/run-attachments/route.js +1 -1
  162. package/standalone/.next/server/app/api/run-attachments/route.js.nft.json +1 -1
  163. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js +1 -1
  164. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
  165. package/standalone/.next/server/app/api/telemetry/console-logs/route.js +1 -1
  166. package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
  167. package/standalone/.next/server/app/api/telemetry/export/route.js +1 -1
  168. package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
  169. package/standalone/.next/server/app/api/tools/call/route.js +1 -1
  170. package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
  171. package/standalone/.next/server/app/api/tools/catalog/route.js +1 -1
  172. package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
  173. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +1 -1
  174. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -1
  175. package/standalone/.next/server/app-paths-manifest.json +1 -0
  176. package/standalone/.next/server/chunks/{[root-of-the-server]__0m6-kcg._.js → [root-of-the-server]__0-ktevp._.js} +2 -2
  177. package/standalone/.next/server/chunks/{[root-of-the-server]__06tm4sl._.js → [root-of-the-server]__0-zj-yf._.js} +1 -1
  178. package/standalone/.next/server/chunks/{[root-of-the-server]__0eili-e._.js → [root-of-the-server]__01nvzbq._.js} +2 -2
  179. package/standalone/.next/server/chunks/{[root-of-the-server]__0_87b17._.js → [root-of-the-server]__03orm-i._.js} +1 -1
  180. package/standalone/.next/server/chunks/{[root-of-the-server]__039ccw_._.js → [root-of-the-server]__04_a-p8._.js} +1 -1
  181. package/standalone/.next/server/chunks/{[root-of-the-server]__045avxp._.js → [root-of-the-server]__04sca_q._.js} +1 -1
  182. package/standalone/.next/server/chunks/{[root-of-the-server]__09vpqml._.js → [root-of-the-server]__04wnjxs._.js} +1 -1
  183. package/standalone/.next/server/chunks/{[root-of-the-server]__0dvn5ie._.js → [root-of-the-server]__04xapi4._.js} +1 -1
  184. package/standalone/.next/server/chunks/{[root-of-the-server]__00kk4vq._.js → [root-of-the-server]__04xwt6o._.js} +1 -1
  185. package/standalone/.next/server/chunks/{[root-of-the-server]__00rus46._.js → [root-of-the-server]__051yqe-._.js} +1 -1
  186. package/standalone/.next/server/chunks/{[root-of-the-server]__1tw_3no._.js → [root-of-the-server]__05pgm03._.js} +2 -2
  187. package/standalone/.next/server/chunks/{[root-of-the-server]__05vesnq._.js → [root-of-the-server]__05uug8c._.js} +1 -1
  188. package/standalone/.next/server/chunks/{[root-of-the-server]__026cujx._.js → [root-of-the-server]__064xuoi._.js} +1 -1
  189. package/standalone/.next/server/chunks/{[root-of-the-server]__0hwgatq._.js → [root-of-the-server]__06bc7-t._.js} +2 -2
  190. package/standalone/.next/server/chunks/{[root-of-the-server]__05iw4b6._.js → [root-of-the-server]__06hz_5m._.js} +1 -1
  191. package/standalone/.next/server/chunks/{[root-of-the-server]__079vs-o._.js → [root-of-the-server]__06qqqz4._.js} +1 -1
  192. package/standalone/.next/server/chunks/[root-of-the-server]__073_7pr._.js +3 -0
  193. package/standalone/.next/server/chunks/[root-of-the-server]__07ezodj._.js +3 -0
  194. package/standalone/.next/server/chunks/{[root-of-the-server]__0ammric._.js → [root-of-the-server]__07gz69e._.js} +1 -1
  195. package/standalone/.next/server/chunks/{[root-of-the-server]__0avv--n._.js → [root-of-the-server]__08ekn_k._.js} +1 -1
  196. package/standalone/.next/server/chunks/{[root-of-the-server]__06qq-80._.js → [root-of-the-server]__09v822g._.js} +1 -1
  197. package/standalone/.next/server/chunks/[root-of-the-server]__0_2v0r6._.js +3 -0
  198. package/standalone/.next/server/chunks/{[root-of-the-server]__0ev57uq._.js → [root-of-the-server]__0_elwh5._.js} +1 -1
  199. package/standalone/.next/server/chunks/[root-of-the-server]__0_uti3p._.js +3 -0
  200. package/standalone/.next/server/chunks/{[root-of-the-server]__04iwwa-._.js → [root-of-the-server]__0av34cc._.js} +2 -2
  201. package/standalone/.next/server/chunks/[root-of-the-server]__0be93bj._.js +3 -0
  202. package/standalone/.next/server/chunks/[root-of-the-server]__0bzypkl._.js +3 -0
  203. package/standalone/.next/server/chunks/{[root-of-the-server]__0lfudmf._.js → [root-of-the-server]__0ccm4vp._.js} +1 -1
  204. package/standalone/.next/server/chunks/{[root-of-the-server]__212svca._.js → [root-of-the-server]__0cfp7rm._.js} +2 -2
  205. package/standalone/.next/server/chunks/[root-of-the-server]__0d3jwu8._.js +3 -0
  206. package/standalone/.next/server/chunks/[root-of-the-server]__0dqd2cd._.js +3 -0
  207. package/standalone/.next/server/chunks/[root-of-the-server]__0e3sw2f._.js +3 -0
  208. package/standalone/.next/server/chunks/[root-of-the-server]__0ehmsw5._.js +3 -0
  209. package/standalone/.next/server/chunks/[root-of-the-server]__0ey9b8q._.js +3 -0
  210. package/standalone/.next/server/chunks/[root-of-the-server]__0hxwzy5._.js +3 -0
  211. package/standalone/.next/server/chunks/{[root-of-the-server]__00pn80i._.js → [root-of-the-server]__0i46cc8._.js} +2 -2
  212. package/standalone/.next/server/chunks/{[root-of-the-server]__1mkh-uu._.js → [root-of-the-server]__0ii54f8._.js} +2 -2
  213. package/standalone/.next/server/chunks/[root-of-the-server]__0k5hi4x._.js +3 -0
  214. package/standalone/.next/server/chunks/[root-of-the-server]__0lk6mxj._.js +3 -0
  215. package/standalone/.next/server/chunks/{[root-of-the-server]__1nozyf6._.js → [root-of-the-server]__0miujba._.js} +2 -2
  216. package/standalone/.next/server/chunks/[root-of-the-server]__0qbgbqj._.js +3 -0
  217. package/standalone/.next/server/chunks/[root-of-the-server]__0qc5tar._.js +3 -0
  218. package/standalone/.next/server/chunks/[root-of-the-server]__0rland0._.js +3 -0
  219. package/standalone/.next/server/chunks/{[root-of-the-server]__1_sflnn._.js → [root-of-the-server]__0rsjbt9._.js} +2 -2
  220. package/standalone/.next/server/chunks/[root-of-the-server]__0u67sg7._.js +3 -0
  221. package/standalone/.next/server/chunks/[root-of-the-server]__0ubhe7w._.js +3 -0
  222. package/standalone/.next/server/chunks/[root-of-the-server]__0ue-6s0._.js +3 -0
  223. package/standalone/.next/server/chunks/[root-of-the-server]__0uyhbd8._.js +3 -0
  224. package/standalone/.next/server/chunks/[root-of-the-server]__0v_qn14._.js +3 -0
  225. package/standalone/.next/server/chunks/{[root-of-the-server]__0oef7yv._.js → [root-of-the-server]__0vgjzu_._.js} +2 -2
  226. package/standalone/.next/server/chunks/{[root-of-the-server]__0t1ryja._.js → [root-of-the-server]__0vs63nv._.js} +2 -2
  227. package/standalone/.next/server/chunks/{[root-of-the-server]__0ujfqqn._.js → [root-of-the-server]__0vuegxj._.js} +1 -1
  228. package/standalone/.next/server/chunks/[root-of-the-server]__0wc19bn._.js +3 -0
  229. package/standalone/.next/server/chunks/[root-of-the-server]__0xhhfqn._.js +3 -0
  230. package/standalone/.next/server/chunks/[root-of-the-server]__0xuga9u._.js +3 -0
  231. package/standalone/.next/server/chunks/[root-of-the-server]__1-b8mhr._.js +3 -0
  232. package/standalone/.next/server/chunks/[root-of-the-server]__1-vesoj._.js +3 -0
  233. package/standalone/.next/server/chunks/[root-of-the-server]__10jq5fz._.js +3 -0
  234. package/standalone/.next/server/chunks/[root-of-the-server]__11adyal._.js +3 -0
  235. package/standalone/.next/server/chunks/[root-of-the-server]__11v9z03._.js +3 -0
  236. package/standalone/.next/server/chunks/{[root-of-the-server]__03yxfwh._.js → [root-of-the-server]__12qoy0t._.js} +2 -2
  237. package/standalone/.next/server/chunks/{[root-of-the-server]__0uq2mf_._.js → [root-of-the-server]__13olq7t._.js} +2 -2
  238. package/standalone/.next/server/chunks/[root-of-the-server]__13z4o0y._.js +3 -0
  239. package/standalone/.next/server/chunks/[root-of-the-server]__14flk9w._.js +3 -0
  240. package/standalone/.next/server/chunks/[root-of-the-server]__14p4_xo._.js +3 -0
  241. package/standalone/.next/server/chunks/{[root-of-the-server]__1attksp._.js → [root-of-the-server]__14x4hy5._.js} +2 -2
  242. package/standalone/.next/server/chunks/[root-of-the-server]__16yif_j._.js +3 -0
  243. package/standalone/.next/server/chunks/[root-of-the-server]__17_i51a._.js +3 -0
  244. package/standalone/.next/server/chunks/[root-of-the-server]__17fmydy._.js +3 -0
  245. package/standalone/.next/server/chunks/[root-of-the-server]__17uilh6._.js +3 -0
  246. package/standalone/.next/server/chunks/{[root-of-the-server]__11hjzc0._.js → [root-of-the-server]__183_4dj._.js} +2 -2
  247. package/standalone/.next/server/chunks/[root-of-the-server]__18p4ewi._.js +3 -0
  248. package/standalone/.next/server/chunks/[root-of-the-server]__190kf-7._.js +3 -0
  249. package/standalone/.next/server/chunks/[root-of-the-server]__1_t7_qf._.js +3 -0
  250. package/standalone/.next/server/chunks/[root-of-the-server]__1_tq9n2._.js +3 -0
  251. package/standalone/.next/server/chunks/[root-of-the-server]__1b8ar_b._.js +3 -0
  252. package/standalone/.next/server/chunks/[root-of-the-server]__1b_j3xv._.js +3 -0
  253. package/standalone/.next/server/chunks/[root-of-the-server]__1cj96fo._.js +3 -0
  254. package/standalone/.next/server/chunks/[root-of-the-server]__1dvcmqw._.js +3 -0
  255. package/standalone/.next/server/chunks/[root-of-the-server]__1gcfshm._.js +3 -0
  256. package/standalone/.next/server/chunks/[root-of-the-server]__1gen-el._.js +3 -0
  257. package/standalone/.next/server/chunks/[root-of-the-server]__1gonl53._.js +3 -0
  258. package/standalone/.next/server/chunks/[root-of-the-server]__1hst7ec._.js +3 -0
  259. package/standalone/.next/server/chunks/[root-of-the-server]__1hvcd1x._.js +3 -0
  260. package/standalone/.next/server/chunks/[root-of-the-server]__1kajbb_._.js +3 -0
  261. package/standalone/.next/server/chunks/[root-of-the-server]__1kj1ln5._.js +3 -0
  262. package/standalone/.next/server/chunks/[root-of-the-server]__1l9-hc6._.js +3 -0
  263. package/standalone/.next/server/chunks/[root-of-the-server]__1lgant0._.js +3 -0
  264. package/standalone/.next/server/chunks/[root-of-the-server]__1na8-n6._.js +3 -0
  265. package/standalone/.next/server/chunks/[root-of-the-server]__1ottisz._.js +3 -0
  266. package/standalone/.next/server/chunks/[root-of-the-server]__1shxc8n._.js +3 -0
  267. package/standalone/.next/server/chunks/[root-of-the-server]__1tvvhzn._.js +3 -0
  268. package/standalone/.next/server/chunks/{[root-of-the-server]__1yam92a._.js → [root-of-the-server]__1ummn4p._.js} +2 -2
  269. package/standalone/.next/server/chunks/[root-of-the-server]__1v-dnat._.js +3 -0
  270. package/standalone/.next/server/chunks/[root-of-the-server]__1wdw3t2._.js +3 -0
  271. package/standalone/.next/server/chunks/[root-of-the-server]__1wdye-x._.js +3 -0
  272. package/standalone/.next/server/chunks/[root-of-the-server]__1wjvdyz._.js +3 -0
  273. package/standalone/.next/server/chunks/{[root-of-the-server]__06dbyo-._.js → [root-of-the-server]__1xnwo73._.js} +2 -2
  274. package/standalone/.next/server/chunks/{[root-of-the-server]__0v0oh52._.js → [root-of-the-server]__1yi_2qs._.js} +2 -2
  275. package/standalone/.next/server/chunks/{[root-of-the-server]__0axi_lh._.js → [root-of-the-server]__1yim97_._.js} +1 -1
  276. package/standalone/.next/server/chunks/[root-of-the-server]__1zcjrka._.js +3 -0
  277. package/standalone/.next/server/chunks/{[root-of-the-server]__08bpdlj._.js → [root-of-the-server]__1zrp8nv._.js} +2 -2
  278. package/standalone/.next/server/chunks/[root-of-the-server]__2125ewz._.js +3 -0
  279. package/standalone/.next/server/chunks/_0151la8._.js +1 -1
  280. package/standalone/.next/server/chunks/_01p5vu2._.js +1 -1
  281. package/standalone/.next/server/chunks/_07bbzzn._.js +1 -1
  282. package/standalone/.next/server/chunks/_0_3-lke._.js +88 -1
  283. package/standalone/.next/server/chunks/_0g1xb8v._.js +1 -1
  284. package/standalone/.next/server/chunks/_11p_tgb._.js +1 -1
  285. package/standalone/.next/server/chunks/_17e45g_._.js +1 -1
  286. package/standalone/.next/server/chunks/_1hmzed-._.js +192 -105
  287. package/standalone/.next/server/chunks/_1ioi8na._.js +1 -1
  288. package/standalone/.next/server/chunks/_1m96-gv._.js +1 -1
  289. package/standalone/.next/server/chunks/_1r_e2vq._.js +1 -1
  290. package/standalone/.next/server/chunks/_1xr-3kb._.js +1 -1
  291. package/standalone/.next/server/chunks/src_services_runs_index_ts_0_l1wkt._.js +5 -5
  292. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03mx68i._.js +35 -0
  293. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__06_k1v8._.js +55 -0
  294. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ik85du._.js +35 -0
  295. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1wsrjus._.js → [root-of-the-server]__0lavdf4._.js} +2 -2
  296. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0lgqolk._.js +3 -0
  297. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0o4j_p7._.js +3 -0
  298. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0usqx1k._.js +3 -0
  299. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1bpbvfj._.js +3 -0
  300. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1iccye4._.js +3 -0
  301. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1m28j8h._.js +50 -0
  302. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qatu4i._.js +55 -0
  303. package/standalone/.next/server/chunks/ssr/_0-zp1-t._.js +24 -0
  304. package/standalone/.next/server/chunks/ssr/_01gprkf._.js +3 -0
  305. package/standalone/.next/server/chunks/ssr/_02ku0-d._.js +3 -0
  306. package/standalone/.next/server/chunks/ssr/_04de9zy._.js +22 -0
  307. package/standalone/.next/server/chunks/ssr/_06iu0wl._.js +14 -0
  308. package/standalone/.next/server/chunks/ssr/_09fzzrw._.js +3 -0
  309. package/standalone/.next/server/chunks/ssr/_0_l0f-3._.js +3 -0
  310. package/standalone/.next/server/chunks/ssr/_0c0xiut._.js +3 -3
  311. package/standalone/.next/server/chunks/ssr/{_1-kqme0._.js → _0egs9gy._.js} +2 -2
  312. package/standalone/.next/server/chunks/ssr/_0f77vgb._.js +3 -3
  313. package/standalone/.next/server/chunks/ssr/_0fxzy4k._.js +25 -0
  314. package/standalone/.next/server/chunks/ssr/_0kp9tyy._.js +3 -0
  315. package/standalone/.next/server/chunks/ssr/_0mbgqw2._.js +3 -0
  316. package/standalone/.next/server/chunks/ssr/_0nlc7lw._.js +3 -0
  317. package/standalone/.next/server/chunks/ssr/_0o60joc._.js +3 -0
  318. package/standalone/.next/server/chunks/ssr/_0o6a-0c._.js +3 -0
  319. package/standalone/.next/server/chunks/ssr/_0p296dl._.js +3 -0
  320. package/standalone/.next/server/chunks/ssr/_0qilx29._.js +3 -0
  321. package/standalone/.next/server/chunks/ssr/_0qt0tus._.js +34 -0
  322. package/standalone/.next/server/chunks/ssr/_0vyqwim._.js +3 -0
  323. package/standalone/.next/server/chunks/ssr/_0xquvzm._.js +3 -0
  324. package/standalone/.next/server/chunks/ssr/_0y39xwb._.js +11 -0
  325. package/standalone/.next/server/chunks/ssr/_0zush3e._.js +3 -0
  326. package/standalone/.next/server/chunks/ssr/_12xqut4._.js +3 -0
  327. package/standalone/.next/server/chunks/ssr/_1337yek._.js +3 -0
  328. package/standalone/.next/server/chunks/ssr/_15cf0-b._.js +3 -0
  329. package/standalone/.next/server/chunks/ssr/_15p60kc._.js +3 -0
  330. package/standalone/.next/server/chunks/ssr/_17dj9--._.js +3 -0
  331. package/standalone/.next/server/chunks/ssr/_1_z-mrp._.js +3 -0
  332. package/standalone/.next/server/chunks/ssr/_1btalzp._.js +3 -0
  333. package/standalone/.next/server/chunks/ssr/_1bxaf69._.js +3 -0
  334. package/standalone/.next/server/chunks/ssr/_1dwrw9s._.js +3 -0
  335. package/standalone/.next/server/chunks/ssr/{_0ov6iy1._.js → _1ejg55c._.js} +2 -2
  336. package/standalone/.next/server/chunks/ssr/_1glp2ss._.js +24 -0
  337. package/standalone/.next/server/chunks/ssr/_1hisxge._.js +3 -0
  338. package/standalone/.next/server/chunks/ssr/_1kstox-._.js +3 -0
  339. package/standalone/.next/server/chunks/ssr/_1m5s4f8._.js +3 -0
  340. package/standalone/.next/server/chunks/ssr/_1qtzca_._.js +3 -0
  341. package/standalone/.next/server/chunks/ssr/{_1kysa5a._.js → _1s5bp9h._.js} +2 -2
  342. package/standalone/.next/server/chunks/ssr/_1wb78d8._.js +34 -0
  343. package/standalone/.next/server/chunks/ssr/_1y5d9t8._.js +6 -0
  344. package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +7 -7
  345. package/standalone/.next/server/chunks/ssr/{_1j_ku-q._.js → _20lnu8x._.js} +2 -2
  346. package/standalone/.next/server/chunks/ssr/{_03lk450._.js → _20wicqx._.js} +3 -3
  347. package/standalone/.next/server/chunks/ssr/_next-internal_server_app_[locale]_costs_page_actions_16fdpkb.js +3 -0
  348. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  349. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  350. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  351. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  352. package/standalone/.next/server/chunks/ssr/node_modules_0j8c3kh._.js +3 -0
  353. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1ghuygj._.js +3 -0
  354. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1x2xg00._.js +3 -0
  355. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0kifgf3.js +4 -0
  356. package/standalone/.next/server/chunks/ssr/src_components_builds_configuration-icon_tsx_1v42ztc._.js +1 -1
  357. package/standalone/.next/server/chunks/ssr/src_components_builds_coverage-report-page_tsx_1nhwba1._.js +2 -2
  358. package/standalone/.next/server/chunks/ssr/src_components_notifications_notifications-page_tsx_19f4ztg._.js +1 -1
  359. package/standalone/.next/server/chunks/ssr/src_components_push-notifications_push-notifications-page_tsx_1c_b-t4._.js +2 -2
  360. package/standalone/.next/server/chunks/ssr/src_components_runs_attachment-picker_tsx_0netm9l._.js +1 -1
  361. package/standalone/.next/server/chunks/ssr/src_components_runs_run-detail-page_tsx_0eje87-._.js +1 -1
  362. package/standalone/.next/server/chunks/ssr/src_components_runs_runs-page_tsx_0l5-7eu._.js +1 -1
  363. package/standalone/.next/server/chunks/ssr/src_components_settings-page_tsx_06dxqc7._.js +5 -5
  364. package/standalone/.next/server/chunks/ssr/src_components_tools_tools-page_tsx_0k1jqcz._.js +2 -2
  365. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  366. package/standalone/.next/server/next-font-manifest.js +1 -1
  367. package/standalone/.next/server/next-font-manifest.json +4 -0
  368. package/standalone/.next/server/pages/404.html +1 -1
  369. package/standalone/.next/server/pages/500.html +1 -1
  370. package/standalone/.next/server/server-reference-manifest.js +1 -1
  371. package/standalone/.next/server/server-reference-manifest.json +1 -1
  372. package/standalone/.next/static/chunks/{3b8uo25m50np4.js → 00-wgagfa3jgw.js} +6 -6
  373. package/standalone/.next/static/chunks/{1_zvnvft13-co.js → 0269se70im5oy.js} +1 -1
  374. package/standalone/.next/static/chunks/06ww4smr4x1rf.js +46 -0
  375. package/standalone/.next/static/chunks/0ad6f15x10087.js +31 -0
  376. package/standalone/.next/static/chunks/{04gmuff_hq-a2.js → 0gi1rut09px9z.js} +1 -1
  377. package/standalone/.next/static/chunks/0hhv79fjnhx0r.js +1 -0
  378. package/standalone/.next/static/chunks/0koiigzfqaaxm.js +6 -0
  379. package/standalone/.next/static/chunks/0lz2yyevf796v.js +57 -0
  380. package/standalone/.next/static/chunks/{12rdpylf5_1s1.js → 0n_3nenvq-cdq.js} +1 -1
  381. package/standalone/.next/static/chunks/{2g3hfv0bu6-ac.js → 0nsdo6d126qko.js} +1 -1
  382. package/standalone/.next/static/chunks/0tydvosk1yzd3.js +9 -0
  383. package/standalone/.next/static/chunks/{11rdgo_6b41l1.js → 0vh2j_0-i7_4a.js} +2 -2
  384. package/standalone/.next/static/chunks/0x7ht_1kzfirv.js +3 -0
  385. package/standalone/.next/static/chunks/{2lgln0a2k277h.js → 0xge_x1_gyy-7.js} +1 -1
  386. package/standalone/.next/static/chunks/0y9oq83e4ty93.js +29 -0
  387. package/standalone/.next/static/chunks/10ugqh884daci.js +67 -0
  388. package/standalone/.next/static/chunks/167jr5pbpylis.js +7 -0
  389. package/standalone/.next/static/chunks/{2vjc_-wvtw1hf.js → 18rpe2d8mq3kd.js} +3 -3
  390. package/standalone/.next/static/chunks/1c285hxt_qxlx.js +46 -0
  391. package/standalone/.next/static/chunks/1f3ggqgs3erm7.js +41 -0
  392. package/standalone/.next/static/chunks/1f3hspf4q04c7.js +1 -0
  393. package/standalone/.next/static/chunks/1g8c1oh-w22rr.js +54 -0
  394. package/standalone/.next/static/chunks/1h680dhlld_lc.js +33 -0
  395. package/standalone/.next/static/chunks/1hymkpu62xhp8.js +33 -0
  396. package/standalone/.next/static/chunks/{12kemc9g02r2c.js → 1l-ift-80ao1c.js} +1 -1
  397. package/standalone/.next/static/chunks/1nz8ddeplq5hs.js +1 -0
  398. package/standalone/.next/static/chunks/1qecuivo6a47u.css +1 -0
  399. package/standalone/.next/static/chunks/1r9r_g25rp8ak.js +23 -0
  400. package/standalone/.next/static/chunks/{0x7pt5btcphku.js → 1uwz2ko2jqwtz.js} +1 -1
  401. package/standalone/.next/static/chunks/1v5zb8ln1rz2d.js +1 -0
  402. package/standalone/.next/static/chunks/{0ai0x7vc1931l.js → 1xjs526g101xh.js} +1 -1
  403. package/standalone/.next/static/chunks/{3369nhs1_otwi.js → 2-duyp_kl5qx9.js} +1 -1
  404. package/standalone/.next/static/chunks/{3roht5nbja0a_.js → 21di8-zv-5qvx.js} +18 -18
  405. package/standalone/.next/static/chunks/22d7hj9vwqj9p.js +1 -0
  406. package/standalone/.next/static/chunks/{1lnlrcypmvv5h.js → 24jkxx9dbxh1h.js} +1 -1
  407. package/standalone/.next/static/chunks/{3pj0v38s6yr9s.js → 28vxarecfoquo.js} +4 -4
  408. package/standalone/.next/static/chunks/28z95ky0z7tkb.js +10 -0
  409. package/standalone/.next/static/chunks/2ayopd7367rqs.js +41 -0
  410. package/standalone/.next/static/chunks/2azupfg2-5j-p.js +1 -0
  411. package/standalone/.next/static/chunks/2brlnpt__4ftd.js +1 -0
  412. package/standalone/.next/static/chunks/2k_pfyxmtuoy5.js +1 -0
  413. package/standalone/.next/static/chunks/2km-n4_gmq7cl.js +1 -0
  414. package/standalone/.next/static/chunks/2llvq19x9do52.js +9 -0
  415. package/standalone/.next/static/chunks/{1biwep24jyw3_.js → 2qedr2wefau4t.js} +1 -1
  416. package/standalone/.next/static/chunks/2wb15vf48-edn.js +92 -0
  417. package/standalone/.next/static/chunks/{0b33bs18huezl.js → 2x2_7-5jm0gme.js} +15 -15
  418. package/standalone/.next/static/chunks/2yjrhue4lxrng.js +1 -0
  419. package/standalone/.next/static/chunks/324kabhuasm-p.js +53 -0
  420. package/standalone/.next/static/chunks/34jvsrj9xubhb.js +1 -0
  421. package/standalone/.next/static/chunks/38oh9ov0j80rj.js +12 -0
  422. package/standalone/.next/static/chunks/{42n596b3nvu1d.js → 38z6ydb1jtugp.js} +9 -9
  423. package/standalone/.next/static/chunks/{06ko8c02ly6ua.js → 3b7o_8v0u__4p.js} +1 -1
  424. package/standalone/.next/static/chunks/3e31jo--0j7bd.js +1 -0
  425. package/standalone/.next/static/chunks/3llt9fqdrs6_3.js +7 -0
  426. package/standalone/.next/static/chunks/3m3riu0uoz_w0.js +64 -0
  427. package/standalone/.next/static/chunks/3s_cg15bmegsq.js +64 -0
  428. package/standalone/.next/static/chunks/{1il4firsh2p_o.js → 3tulld0sh2yxv.js} +1 -1
  429. package/standalone/.next/static/chunks/3zr5h7dm94-d3.js +1 -0
  430. package/standalone/.next/server/chunks/[root-of-the-server]__082mwbz._.js +0 -3
  431. package/standalone/.next/server/chunks/[root-of-the-server]__08rs4kl._.js +0 -3
  432. package/standalone/.next/server/chunks/[root-of-the-server]__0ejd120._.js +0 -3
  433. package/standalone/.next/server/chunks/[root-of-the-server]__0epw197._.js +0 -3
  434. package/standalone/.next/server/chunks/[root-of-the-server]__0erekw9._.js +0 -3
  435. package/standalone/.next/server/chunks/[root-of-the-server]__0l8fuzs._.js +0 -3
  436. package/standalone/.next/server/chunks/[root-of-the-server]__0m09s9s._.js +0 -3
  437. package/standalone/.next/server/chunks/[root-of-the-server]__0o4kf3w._.js +0 -3
  438. package/standalone/.next/server/chunks/[root-of-the-server]__0q7pwvx._.js +0 -3
  439. package/standalone/.next/server/chunks/[root-of-the-server]__0quwt4e._.js +0 -3
  440. package/standalone/.next/server/chunks/[root-of-the-server]__0r2qqym._.js +0 -3
  441. package/standalone/.next/server/chunks/[root-of-the-server]__0rafxyp._.js +0 -3
  442. package/standalone/.next/server/chunks/[root-of-the-server]__0rxa3sz._.js +0 -3
  443. package/standalone/.next/server/chunks/[root-of-the-server]__0sxnukz._.js +0 -3
  444. package/standalone/.next/server/chunks/[root-of-the-server]__0tck2gw._.js +0 -3
  445. package/standalone/.next/server/chunks/[root-of-the-server]__0upntz8._.js +0 -3
  446. package/standalone/.next/server/chunks/[root-of-the-server]__0w7u33h._.js +0 -3
  447. package/standalone/.next/server/chunks/[root-of-the-server]__0wccpuq._.js +0 -3
  448. package/standalone/.next/server/chunks/[root-of-the-server]__0wq5_-0._.js +0 -3
  449. package/standalone/.next/server/chunks/[root-of-the-server]__0x8p1h0._.js +0 -3
  450. package/standalone/.next/server/chunks/[root-of-the-server]__0yq7gle._.js +0 -3
  451. package/standalone/.next/server/chunks/[root-of-the-server]__0yvl0kj._.js +0 -3
  452. package/standalone/.next/server/chunks/[root-of-the-server]__0yyj4bs._.js +0 -3
  453. package/standalone/.next/server/chunks/[root-of-the-server]__1-q8hnm._.js +0 -3
  454. package/standalone/.next/server/chunks/[root-of-the-server]__11i-u3m._.js +0 -3
  455. package/standalone/.next/server/chunks/[root-of-the-server]__11wdfkm._.js +0 -3
  456. package/standalone/.next/server/chunks/[root-of-the-server]__13-bmbg._.js +0 -3
  457. package/standalone/.next/server/chunks/[root-of-the-server]__14sr2n9._.js +0 -3
  458. package/standalone/.next/server/chunks/[root-of-the-server]__15zrchx._.js +0 -3
  459. package/standalone/.next/server/chunks/[root-of-the-server]__17im3wm._.js +0 -3
  460. package/standalone/.next/server/chunks/[root-of-the-server]__17j6ax7._.js +0 -3
  461. package/standalone/.next/server/chunks/[root-of-the-server]__19bpnrg._.js +0 -3
  462. package/standalone/.next/server/chunks/[root-of-the-server]__19y6-lp._.js +0 -3
  463. package/standalone/.next/server/chunks/[root-of-the-server]__1_8gar4._.js +0 -3
  464. package/standalone/.next/server/chunks/[root-of-the-server]__1_m78-y._.js +0 -3
  465. package/standalone/.next/server/chunks/[root-of-the-server]__1_osj_0._.js +0 -3
  466. package/standalone/.next/server/chunks/[root-of-the-server]__1_xtyhp._.js +0 -3
  467. package/standalone/.next/server/chunks/[root-of-the-server]__1ba1y6w._.js +0 -3
  468. package/standalone/.next/server/chunks/[root-of-the-server]__1d-p62y._.js +0 -3
  469. package/standalone/.next/server/chunks/[root-of-the-server]__1e2tfpn._.js +0 -3
  470. package/standalone/.next/server/chunks/[root-of-the-server]__1fw5scf._.js +0 -3
  471. package/standalone/.next/server/chunks/[root-of-the-server]__1g0rhrl._.js +0 -3
  472. package/standalone/.next/server/chunks/[root-of-the-server]__1h6a01c._.js +0 -3
  473. package/standalone/.next/server/chunks/[root-of-the-server]__1i54hfr._.js +0 -3
  474. package/standalone/.next/server/chunks/[root-of-the-server]__1ismp8w._.js +0 -3
  475. package/standalone/.next/server/chunks/[root-of-the-server]__1kgh2tn._.js +0 -3
  476. package/standalone/.next/server/chunks/[root-of-the-server]__1l0a05x._.js +0 -3
  477. package/standalone/.next/server/chunks/[root-of-the-server]__1levtv0._.js +0 -3
  478. package/standalone/.next/server/chunks/[root-of-the-server]__1mk80rh._.js +0 -3
  479. package/standalone/.next/server/chunks/[root-of-the-server]__1n58dbx._.js +0 -3
  480. package/standalone/.next/server/chunks/[root-of-the-server]__1nxvyuj._.js +0 -3
  481. package/standalone/.next/server/chunks/[root-of-the-server]__1o4ho5v._.js +0 -3
  482. package/standalone/.next/server/chunks/[root-of-the-server]__1osqj7h._.js +0 -3
  483. package/standalone/.next/server/chunks/[root-of-the-server]__1oxgsjg._.js +0 -3
  484. package/standalone/.next/server/chunks/[root-of-the-server]__1r9m70u._.js +0 -3
  485. package/standalone/.next/server/chunks/[root-of-the-server]__1t1-ozx._.js +0 -3
  486. package/standalone/.next/server/chunks/[root-of-the-server]__1tj3th9._.js +0 -3
  487. package/standalone/.next/server/chunks/[root-of-the-server]__1v_176-._.js +0 -3
  488. package/standalone/.next/server/chunks/[root-of-the-server]__1wnx190._.js +0 -3
  489. package/standalone/.next/server/chunks/[root-of-the-server]__1wsm3gj._.js +0 -3
  490. package/standalone/.next/server/chunks/[root-of-the-server]__1ygwh5f._.js +0 -3
  491. package/standalone/.next/server/chunks/[root-of-the-server]__205s18n._.js +0 -3
  492. package/standalone/.next/server/chunks/[root-of-the-server]__20m339t._.js +0 -3
  493. package/standalone/.next/server/chunks/[root-of-the-server]__216tiae._.js +0 -3
  494. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0__ku3o._.js +0 -35
  495. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f7usu6._.js +0 -3
  496. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0fa4g67._.js +0 -3
  497. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ybu1dj._.js +0 -3
  498. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ywelz9._.js +0 -55
  499. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__114998b._.js +0 -3
  500. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__144jx4y._.js +0 -35
  501. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__17mewsc._.js +0 -3
  502. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1lx9kov._.js +0 -50
  503. package/standalone/.next/server/chunks/ssr/_03edwuc._.js +0 -3
  504. package/standalone/.next/server/chunks/ssr/_03mo_w3._.js +0 -3
  505. package/standalone/.next/server/chunks/ssr/_065924f._.js +0 -3
  506. package/standalone/.next/server/chunks/ssr/_0a8xyjk._.js +0 -34
  507. package/standalone/.next/server/chunks/ssr/_0dsosms._.js +0 -34
  508. package/standalone/.next/server/chunks/ssr/_0kx9ux4._.js +0 -3
  509. package/standalone/.next/server/chunks/ssr/_0la2zju._.js +0 -3
  510. package/standalone/.next/server/chunks/ssr/_0mcyq3z._.js +0 -3
  511. package/standalone/.next/server/chunks/ssr/_0ocxapn._.js +0 -3
  512. package/standalone/.next/server/chunks/ssr/_0p03tt8._.js +0 -3
  513. package/standalone/.next/server/chunks/ssr/_0qi9ubx._.js +0 -3
  514. package/standalone/.next/server/chunks/ssr/_0s55i9k._.js +0 -3
  515. package/standalone/.next/server/chunks/ssr/_0w5dl6y._.js +0 -3
  516. package/standalone/.next/server/chunks/ssr/_1-3kr_6._.js +0 -3
  517. package/standalone/.next/server/chunks/ssr/_1-h8fzh._.js +0 -24
  518. package/standalone/.next/server/chunks/ssr/_15_tlq_._.js +0 -6
  519. package/standalone/.next/server/chunks/ssr/_1_-b2as._.js +0 -24
  520. package/standalone/.next/server/chunks/ssr/_1ax0n4o._.js +0 -3
  521. package/standalone/.next/server/chunks/ssr/_1bedv0f._.js +0 -3
  522. package/standalone/.next/server/chunks/ssr/_1cg5e7d._.js +0 -55
  523. package/standalone/.next/server/chunks/ssr/_1dre7jj._.js +0 -9
  524. package/standalone/.next/server/chunks/ssr/_1h8h0mh._.js +0 -3
  525. package/standalone/.next/server/chunks/ssr/_1j6x49s._.js +0 -3
  526. package/standalone/.next/server/chunks/ssr/_1m3mq_d._.js +0 -42
  527. package/standalone/.next/server/chunks/ssr/_1q7k2_j._.js +0 -3
  528. package/standalone/.next/server/chunks/ssr/_1qanfz-._.js +0 -3
  529. package/standalone/.next/server/chunks/ssr/_1qu6yg5._.js +0 -3
  530. package/standalone/.next/server/chunks/ssr/_1rgxkh5._.js +0 -3
  531. package/standalone/.next/server/chunks/ssr/_1rqv83r._.js +0 -3
  532. package/standalone/.next/server/chunks/ssr/_1sn2hfw._.js +0 -14
  533. package/standalone/.next/server/chunks/ssr/_1w9iqqu._.js +0 -3
  534. package/standalone/.next/server/chunks/ssr/_1y1-frz._.js +0 -22
  535. package/standalone/.next/server/chunks/ssr/_1zfs9qf._.js +0 -3
  536. package/standalone/.next/server/chunks/ssr/_1zxg4ba._.js +0 -3
  537. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0qgkxbt._.js +0 -3
  538. package/standalone/.next/static/chunks/08q6vr-p-cstj.js +0 -29
  539. package/standalone/.next/static/chunks/0_zeonk2mtnf-.js +0 -1
  540. package/standalone/.next/static/chunks/0buuj5lld90he.css +0 -1
  541. package/standalone/.next/static/chunks/0bviczmoov5a2.js +0 -1
  542. package/standalone/.next/static/chunks/0ff5gudlpx2v5.js +0 -1
  543. package/standalone/.next/static/chunks/0piy74xklzjfr.js +0 -62
  544. package/standalone/.next/static/chunks/1-eifwvqj9be1.js +0 -1
  545. package/standalone/.next/static/chunks/11jwq4xw0a435.js +0 -64
  546. package/standalone/.next/static/chunks/17uchsfglg1ck.js +0 -73
  547. package/standalone/.next/static/chunks/1_82pgfh8i49s.js +0 -1
  548. package/standalone/.next/static/chunks/1t3vla-ambxbp.js +0 -6
  549. package/standalone/.next/static/chunks/1uc144yy_2oye.js +0 -3
  550. package/standalone/.next/static/chunks/2358pwl17z6qf.js +0 -41
  551. package/standalone/.next/static/chunks/25ugyd34t2mrk.js +0 -1
  552. package/standalone/.next/static/chunks/28lukaj4hpvlk.js +0 -63
  553. package/standalone/.next/static/chunks/2efb8ggk_k58p.js +0 -53
  554. package/standalone/.next/static/chunks/2eidepo22ts0u.js +0 -1
  555. package/standalone/.next/static/chunks/2hd3kczfekev9.js +0 -12
  556. package/standalone/.next/static/chunks/2k1pvryqz_c4u.js +0 -1
  557. package/standalone/.next/static/chunks/2nzg7au4ezqgc.js +0 -109
  558. package/standalone/.next/static/chunks/2ub8d_20l7ahg.js +0 -54
  559. package/standalone/.next/static/chunks/2v3vffkcv30_q.js +0 -8
  560. package/standalone/.next/static/chunks/2y3inehs64srx.js +0 -39
  561. package/standalone/.next/static/chunks/2z2vm371tkfeo.js +0 -39
  562. package/standalone/.next/static/chunks/3-8aipql92ik4.js +0 -46
  563. package/standalone/.next/static/chunks/3-doerwkk9tw0.js +0 -57
  564. package/standalone/.next/static/chunks/300j0k53l2xf4.js +0 -7
  565. package/standalone/.next/static/chunks/38cr_upvs02u3.js +0 -10
  566. package/standalone/.next/static/chunks/3ev0nt_zzxoc6.js +0 -1
  567. package/standalone/.next/static/chunks/3he_se7z8qr9v.js +0 -1
  568. package/standalone/.next/static/chunks/3w11s4sn96-rw.js +0 -1
  569. package/standalone/.next/static/chunks/3ylqdy-23qzuz.js +0 -54
  570. package/standalone/.next/static/chunks/3yvgowlcy4bok.js +0 -7
  571. package/standalone/.next/static/chunks/43-yobagq1112.js +0 -1
  572. package/standalone/.next/static/chunks/44v5iw1qe3el2.js +0 -9
  573. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_buildManifest.js +0 -0
  574. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_clientMiddlewareManifest.js +0 -0
  575. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_ssgManifest.js +0 -0
@@ -1,109 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),a=e.i(975157),r=e.i(758379),r=r;e.s(["Spinner",0,function({className:e,...i}){return(0,t.jsx)(r.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,a.cn)("size-4 animate-spin",e),...i})}],987968)},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let i=(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)(i({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",...i}){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),...i})},"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})}])},487486,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(586011),i=e.i(975157);let s=(0,a.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 [a]:hover:bg-emerald-500/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:a="default",asChild:n=!1,...l}){let o=n?r.Slot.Root:"span";return(0,t.jsx)(o,{className:(0,i.cn)(s({variant:a}),e),"data-slot":"badge","data-variant":a,...l})}])},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})}])},26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},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])},711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),i=e.i(820783),s=e.i(326999),n=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[s.createDialogScope]),u=(0,s.createDialogScope)(),p=o(e=>{let{__scopeAlertDialog:a,...r}=e,i=u(a);return(0,t.jsx)(s.Root,{...i,...r,modal:!0})},"AlertDialog"),m=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,n=u(r);return(0,t.jsx)(s.Trigger,{...n,...i,ref:a})},"AlertDialogTrigger")),h=o(e=>{let{__scopeAlertDialog:a,...r}=e,i=u(a);return(0,t.jsx)(s.Portal,{...i,...r})},"AlertDialogPortal"),g=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,n=u(r);return(0,t.jsx)(s.Overlay,{...n,...i,ref:a})},"AlertDialogOverlay")),[x,f]=d("AlertDialogContent"),b=a.forwardRef(o(function(e,r){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),p=a.useRef(null),m=(0,i.useComposedRefs)(r,p),h=a.useRef(null);return(0,t.jsx)(x,{scope:l,cancelRef:h,children:(0,t.jsx)(s.Content,{role:"alertdialog",...c,...d,ref:m,onOpenAutoFocus:(0,n.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,n=u(r);return(0,t.jsx)(s.Title,{...n,...i,ref:a})},"AlertDialogTitle")),j=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,n=u(r);return(0,t.jsx)(s.Description,{...n,...i,ref:a})},"AlertDialogDescription")),y=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,n=u(r);return(0,t.jsx)(s.Close,{...n,...i,ref:a})},"AlertDialogAction")),w=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,{cancelRef:l}=f("AlertDialogCancel",r),o=u(r),d=(0,i.useComposedRefs)(a,l);return(0,t.jsx)(s.Close,{...o,...n,ref:d})},"AlertDialogCancel"));e.s(["Action",0,y,"AlertDialog",0,p,"AlertDialogAction",0,y,"AlertDialogCancel",0,w,"AlertDialogContent",0,b,"AlertDialogDescription",0,j,"AlertDialogOverlay",0,g,"AlertDialogPortal",0,h,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,m,"Cancel",0,w,"Content",0,b,"Description",0,j,"Overlay",0,g,"Portal",0,h,"Root",0,p,"Title",0,v,"Trigger",0,m,"createAlertDialogScope",0,c],691162);var k=e.i(691162),k=k,C=e.i(975157),I=e.i(519455);function S({...e}){return(0,t.jsx)(k.Root,{"data-slot":"alert-dialog",...e})}function T({...e}){return(0,t.jsx)(k.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function N({...e}){return(0,t.jsx)(k.Portal,{"data-slot":"alert-dialog-portal",...e})}function R({className:e,...a}){return(0,t.jsx)(k.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,C.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 E({className:e,size:a="default",...r}){return(0,t.jsxs)(N,{children:[(0,t.jsx)(R,{}),(0,t.jsx)(k.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,C.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 D({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,C.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 A({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,C.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 M({className:e,...a}){return(0,t.jsx)(k.Title,{"data-slot":"alert-dialog-title",className:(0,C.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 P({className:e,...a}){return(0,t.jsx)(k.Description,{"data-slot":"alert-dialog-description",className:(0,C.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function O({className:e,variant:a="default",size:r="default",...i}){return(0,t.jsx)(I.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(k.Action,{"data-slot":"alert-dialog-action",className:(0,C.cn)(e),...i})})}function B({className:e,variant:a="outline",size:r="default",...i}){return(0,t.jsx)(I.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(k.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,C.cn)(e),...i})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:i,onOpenChange:s,open:n,title:l,trigger:o}){return(0,t.jsxs)(S,{onOpenChange:s,open:n,children:[o&&(0,t.jsx)(T,{asChild:!0,children:o}),(0,t.jsxs)(E,{children:[(0,t.jsxs)(D,{children:[(0,t.jsx)(M,{children:l}),(0,t.jsx)(P,{children:r})]}),(0,t.jsxs)(A,{children:[(0,t.jsx)(B,{children:a}),(0,t.jsx)(O,{onClick:()=>void i(),variant:"destructive",children:e})]})]})]})}],340953)},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},808562,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),i=e.i(248425),s=e.i(842727),n=e.i(981140),l=e.i(369340),o=Object.defineProperty,d=a.forwardRef(o(function(e,a){let{pressed:r,defaultPressed:s,onPressedChange:o,...d}=e,[c,u]=(0,l.useControllableState)({prop:r,onChange:o,defaultProp:s??!1,caller:"Toggle"});return(0,t.jsx)(i.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,n.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0})),c=e.i(586318),u=Object.defineProperty,p=(e,t)=>u(e,"name",{value:t,configurable:!0}),m="ToggleGroup",[h,g]=(0,r.createContextScope)(m,[s.createRovingFocusGroupScope]),x=(0,s.createRovingFocusGroupScope)(),f=a.forwardRef(p(function(e,a){let{type:r,...i}=e;if("single"===r)return(0,t.jsx)(j,{role:"radiogroup",...i,ref:a});if("multiple"===r)return(0,t.jsx)(y,{role:"toolbar",...i,ref:a});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[b,v]=h(m),j=a.forwardRef(p(function(e,r){let{value:i,defaultValue:s,onValueChange:n=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,l.useControllableState)({prop:i,defaultProp:s??"",onChange:n,caller:m});return(0,t.jsx)(b,{scope:e.__scopeToggleGroup,type:"single",value:a.useMemo(()=>d?[d]:[],[d]),onItemActivate:c,onItemDeactivate:a.useCallback(()=>c(""),[c]),children:(0,t.jsx)(C,{...o,ref:r})})},"ToggleGroupImplSingle")),y=a.forwardRef(p(function(e,r){let{value:i,defaultValue:s,onValueChange:n=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,l.useControllableState)({prop:i,defaultProp:s??[],onChange:n,caller:m}),u=a.useCallback(e=>c((t=[])=>[...t,e]),[c]),h=a.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(b,{scope:e.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:u,onItemDeactivate:h,children:(0,t.jsx)(C,{...o,ref:r})})},"ToggleGroupImplMultiple")),[w,k]=h(m),C=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:l=!0,orientation:o,dir:d,loop:u=!0,...p}=e,m=x(r),h=(0,c.useDirection)(d),g={dir:h,...p};return(0,t.jsx)(w,{scope:r,rovingFocus:l,disabled:n,children:l?(0,t.jsx)(s.Root,{asChild:!0,...m,orientation:o,dir:h,loop:u,children:(0,t.jsx)(i.Primitive.div,{...g,ref:a})}):(0,t.jsx)(i.Primitive.div,{...g,ref:a})})},"ToggleGroupImpl")),I="ToggleGroupItem",S=a.forwardRef(p(function(e,r){let i=v(I,e.__scopeToggleGroup),n=k(I,e.__scopeToggleGroup),l=x(e.__scopeToggleGroup),o=i.value.includes(e.value),d=n.disabled||e.disabled,c={...e,pressed:o,disabled:d},u=a.useRef(null);return n.rovingFocus?(0,t.jsx)(s.Item,{asChild:!0,...l,focusable:!d,active:o,ref:u,children:(0,t.jsx)(T,{...c,ref:r})}):(0,t.jsx)(T,{...c,ref:r})},"ToggleGroupItem")),T=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:r,value:i,...s}=e,n=v(I,r),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o="single"===n.type?l:void 0;return(0,t.jsx)(d,{...o,...s,ref:a,onPressedChange:e=>{e?n.onItemActivate(i):n.onItemDeactivate(i)}})},"ToggleGroupItemImpl"));e.s(["Item",0,S,"Root",0,f,"ToggleGroup",0,f,"ToggleGroupItem",0,S,"createToggleGroupScope",0,g],459881);var N=e.i(459881),N=N,R=e.i(975157),E=e.i(225913),D=Object.defineProperty,A=a.forwardRef(D(function(e,a){let{pressed:r,defaultPressed:s,onPressedChange:o,...d}=e,[c,u]=(0,l.useControllableState)({prop:r,onChange:o,defaultProp:s??!1,caller:"Toggle"});return(0,t.jsx)(i.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,n.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0}));e.s(["Root",0,A,"Toggle",0,A],864225),e.i(864225);let M=(0,E.cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),P=a.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:a,size:r,spacing:i=2,orientation:s="horizontal",children:n,...l}){return(0,t.jsx)(N.Root,{"data-slot":"toggle-group","data-variant":a,"data-size":r,"data-spacing":i,"data-orientation":s,style:{"--gap":i},className:(0,R.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...l,children:(0,t.jsx)(P.Provider,{value:{variant:a,size:r,spacing:i,orientation:s},children:n})})},"ToggleGroupItem",0,function({className:e,children:r,variant:i="default",size:s="default",...n}){let l=a.useContext(P);return(0,t.jsx)(N.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||i,"data-size":l.size||s,"data-spacing":l.spacing,className:(0,R.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",M({variant:l.variant||i,size:l.size||s}),e),...n,children:r})}],808562)},635416,96892,e=>{"use strict";var t=e.i(456420);let a=(0,t.default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,a],635416);let r=(0,t.default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,r],96892)},506184,e=>{"use strict";let t=(0,e.i(456420).default)("paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);e.s(["Paintbrush",0,t],506184)},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},725981,e=>{"use strict";let t=(0,e.i(456420).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],725981)},452330,e=>{"use strict";let t=(0,e.i(456420).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,t],452330)},225780,434322,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(716327);let i=(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,i],434322);var s=e.i(487486),n=e.i(975157);function l({patch:e,truncated:a=!1,truncatedLabel:r,className:i}){return(0,t.jsxs)("div",{className:(0,n.cn)("overflow-auto rounded-md border bg-neutral-950 font-mono text-xs text-neutral-100",i),children:[e.split("\n").map((e,a)=>(0,t.jsx)("div",{className:(0,n.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:o}){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\/(.+)$/),i=r?.[1],s=r?.[2],n=e.some(e=>e.startsWith("new file mode")),l=e.some(e=>e.startsWith("deleted file mode")),o=e.some(e=>e.startsWith("rename from ")),d=s??e.find(e=>e.startsWith("+++ "))?.replace(/^\+\+\+ (?:b\/)?/,"")??i??`Patch ${t+1}`;return{key:`${i??""}:${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:n?"A":l?"D":o?"R":"M"}})})(e),[e]),[c,u]=(0,a.useState)(new Set);return(0,t.jsx)("div",{className:(0,n.cn)("divide-y overflow-hidden rounded-md border",o),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,n.cn)("size-3.5 shrink-0 transition-transform",a&&"rotate-180")}),(0,t.jsx)(i,{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)(l,{patch:e.patch})})]},e.key)})})},"PatchView",0,l],225780)},90969,771777,866026,e=>{"use strict";e.s(["buildDuration",0,function(e,t=Date.now()){let a=e.durationMs??(e.startedAt&&null!==t&&["QUEUED","PREPARING","RUNNING"].includes(e.status)?t-Date.parse(e.startedAt):null);if(null===a||!Number.isFinite(a))return"—";let r=Math.max(0,Math.floor(a/1e3)),i=Math.floor(r/3600),s=Math.floor(r%3600/60),n=r%60;return i>0?`${i}h${s>0?` ${s}m`:""}`:s>0?`${s}m${n>0?` ${n}s`:""}`:`${n}s`},"buildSnapshotName",0,function(e){let t=e.snapshot.repository,a=e.snapshot.worktree;return{repository:t?.name??"—",worktree:a?.branch??a?.folder??"—"}},"buildStatusVariant",0,function(e){return"FAILED"===e?"destructive":"SUCCEEDED"===e?"success":"secondary"}],90969);var t=e.i(843476),a=e.i(395925),r=e.i(948148),i=e.i(271645),s=e.i(519455),n=e.i(987968),l=e.i(462777),o=e.i(637611);e.s(["RebuildButton",0,function({buildId:e,onCompleted:d,onError:c,size:u="default"}){let p=(0,r.useTranslations)("builds"),[m,h]=(0,i.useState)(!1),g=async()=>{h(!0),c(null);try{let t=await (0,o.controlPlaneRequest)(`mutation RebuildBuild($id: ID!, $requestId: ID!) {
2
- rebuildBuild(id: $id, requestId: $requestId) { id status }
3
- }`,{id:e,requestId:(0,l.createClientId)()});await d?.(t.rebuildBuild)}catch(e){c(e instanceof Error?e.message:String(e))}finally{h(!1)}};return(0,t.jsxs)(s.Button,{disabled:m,onClick:e=>{e.stopPropagation(),g()},onKeyDown:e=>e.stopPropagation(),size:u,type:"button",variant:"outline",children:[m?(0,t.jsx)(n.Spinner,{}):(0,t.jsx)(a.RotateCcw,{})," ",p("rebuild")]})}],771777);var d=e.i(716327),c=e.i(21357),u=e.i(755146);e.s(["RunBuildControls",0,function({buildId:e,destinationType:a,preferredDestination:p,onCompleted:m,onError:h,size:g="default"}){let x=(0,r.useTranslations)("builds"),f=p?.generic?null:p??null,[b,v]=(0,i.useState)(f?[f]:[]),[j,y]=(0,i.useState)(f?new Set([f.id]):new Set),[w,k]=(0,i.useState)(!1),[C,I]=(0,i.useState)(!1),[S,T]=(0,i.useState)(!1),N=(0,i.useMemo)(()=>b.filter(e=>j.has(e.id)).map(e=>e.name),[b,j]),R=async()=>{I(!0),h(null);try{let t=(await (0,o.controlPlaneRequest)(`mutation BuildRunDestinations($buildId: ID!, $requestId: ID!) {
4
- inspectBuildRunDestinations(buildId: $buildId, requestId: $requestId)
5
- }`,{buildId:e,requestId:(0,l.createClientId)()})).inspectBuildRunDestinations.filter(e=>e.type===a&&!e.generic);v(t),y(e=>{let a=new Set(t.map(e=>e.id));return new Set([...e].filter(e=>a.has(e)))}),k(!0)}catch(e){h(e instanceof Error?e.message:String(e))}finally{I(!1)}},E=async()=>{T(!0),h(null);try{await (0,o.controlPlaneRequest)(`mutation RunCompletedBuild($input: RunBuildInput!) {
6
- runBuild(input: $input) { id status }
7
- }`,{input:{buildId:e,destinations:b.filter(e=>j.has(e.id)),requestId:(0,l.createClientId)()}}),y(new Set),await m?.()}catch(e){h(e instanceof Error?e.message:String(e))}finally{T(!1)}};return(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,t.jsxs)(u.DropdownMenu,{onOpenChange:e=>{e&&!w&&R()},children:[(0,t.jsx)(u.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(s.Button,{disabled:C,size:g,type:"button",variant:"outline",children:[C?(0,t.jsx)(n.Spinner,{}):(0,t.jsx)(c.Play,{}),N.length?x("selectedDevices",{count:N.length}):x("selectRunDevices"),(0,t.jsx)(d.ChevronDown,{})]})}),(0,t.jsxs)(u.DropdownMenuContent,{align:"end",className:"w-72",children:[b.map(e=>(0,t.jsxs)(u.DropdownMenuCheckboxItem,{checked:j.has(e.id),onCheckedChange:t=>y(a=>{let r=new Set(a);return t?r.add(e.id):r.delete(e.id),r}),children:[e.name,e.osVersion?` \xb7 ${e.osVersion}`:""]},e.id)),w&&!b.length&&(0,t.jsx)("p",{className:"p-2 text-xs text-muted-foreground",children:x("noCompatibleDevices")})]})]}),(0,t.jsxs)(s.Button,{disabled:S||0===j.size,onClick:()=>void E(),size:g,type:"button",children:[S?(0,t.jsx)(n.Spinner,{}):(0,t.jsx)(c.Play,{})," ",x("run")]})]})}],866026)},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),s=e.i(948148),n=e.i(271645),l=e.i(487486),o=e.i(519455),d=e.i(755146),c=e.i(987968),u=e.i(746798),p=e.i(637611);function m({pipeline:e,repositoryId:a,onPipelineRetried:r,onError:l}){let d=(0,s.useTranslations)("pullRequests"),[h,g]=(0,n.useState)(!1),x=async t=>{if(t.stopPropagation(),e.canRetry&&e.checkSuiteId){g(!0);try{let t=await (0,p.controlPlaneRequest)(`mutation RetryGitHubPipeline(
8
- $repositoryId: ID!
9
- $checkSuiteId: ID!
10
- ) {
11
- retryGitHubPipeline(
12
- repositoryId: $repositoryId
13
- checkSuiteId: $checkSuiteId
14
- ) { id name status url checkSuiteId canRetry retryUnavailableReason jobs { id name status url canRetry retryUnavailableReason steps { number name status } } }
15
- }`,{repositoryId:a,checkSuiteId:e.checkSuiteId});r?.(t.retryGitHubPipeline),l?.(null)}catch(e){l?.(e instanceof Error?e.message:String(e))}finally{g(!1)}}},f=(0,t.jsxs)(o.Button,{disabled:h||!e.canRetry||!e.checkSuiteId,onClick:e=>void x(e),size:"sm",variant:"outline",children:[h?(0,t.jsx)(c.Spinner,{}):(0,t.jsx)(i.RotateCcw,{}),d(h?"retrying":"retry")]});if(!e.retryUnavailableReason||h)return f;let b=d(`retryUnavailable.${e.retryUnavailableReason}`);return(0,t.jsx)(u.TooltipProvider,{children:(0,t.jsxs)(u.Tooltip,{children:[(0,t.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{"aria-label":b,className:"inline-flex",tabIndex:0,children:f})}),(0,t.jsx)(u.TooltipContent,{children:b})]})})}function h(e){return"SUCCESS"===e?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"PENDING"===e||"EXPECTED"===e||"QUEUED"===e||"IN_PROGRESS"===e||"ACTION_REQUIRED"===e?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"FAILURE"===e||"ERROR"===e||"CANCELLED"===e||"STALE"===e||"STARTUP_FAILURE"===e||"TIMED_OUT"===e?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300"}e.s(["PipelineMenu",0,function({pipelineStatus:e,pipelines:i,repositoryId:c,onPipelineRetried:u}){let p=(0,s.useTranslations)("pullRequests"),[g,x]=(0,n.useState)(null),f=e=>e.stopPropagation();return(0,t.jsxs)(d.DropdownMenu,{children:[(0,t.jsx)(d.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{className:`h-5 rounded-full px-2 py-0.5 text-xs ${h(e)}`,onClick:f,variant:"outline",children:[p(`pipelineStates.${e}`),(0,t.jsx)(a.ChevronDown,{className:"size-3"})]})}),(0,t.jsxs)(d.DropdownMenuContent,{align:"end",className:"w-80",onClick:f,children:[(0,t.jsx)(d.DropdownMenuLabel,{children:p("pipelineMenuTitle")}),(0,t.jsx)(d.DropdownMenuSeparator,{}),g&&(0,t.jsx)("p",{className:"px-2 py-1.5 text-xs text-destructive",children:g}),0===i.length?(0,t.jsx)("p",{className:"px-2 py-3 text-sm text-muted-foreground",children:p("noPipelines")}):(0,t.jsx)("div",{className:"space-y-1 p-1",children:i.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md px-2 py-2 hover:bg-muted",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[e.url?(0,t.jsxs)("a",{className:"flex min-w-0 items-center gap-1 text-sm font-medium hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)("span",{className:"truncate",children:e.name}),(0,t.jsx)(r.ExternalLink,{className:"size-3 shrink-0"})]}):(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.name}),(0,t.jsx)(l.Badge,{className:`mt-1 ${h(e.status)}`,children:p(`pipelineStates.${e.status}`)})]}),e.checkSuiteId&&(0,t.jsx)(m,{onError:x,onPipelineRetried:u,pipeline:e,repositoryId:c})]},e.id))})]})]})},"pipelineStateClass",0,h])},346194,113030,e=>{"use strict";var t=e.i(843476);let a=(0,e.i(456420).default)("git-merge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);e.s(["GitMerge",0,a],113030);var r=e.i(948148),i=e.i(271645),s=e.i(929592),n=e.i(519455),l=e.i(776639),o=e.i(793479),d=e.i(110204),c=e.i(967489),u=e.i(987968),p=e.i(624687),m=e.i(637611);let h="__github_account_default__";e.s(["MergePullRequestButton",0,function({pullRequest:e,onMerged:g,size:x="sm",variant:f="outline",open:b,onOpenChange:v,showTrigger:j=!0}){let y=(0,r.useTranslations)("pullRequests"),[w,k]=(0,i.useState)(!1),[C,I]=(0,i.useState)(null),[S,T]=(0,i.useState)(""),[N,R]=(0,i.useState)(""),[E,D]=(0,i.useState)(""),[A,M]=(0,i.useState)(h),[P,O]=(0,i.useState)(!1),[B,_]=(0,i.useState)(!1),[L,z]=(0,i.useState)(null),[$="",U=""]=e.repositoryNameWithOwner.split("/",2),H=b??w,q=e=>{e||(O(!1),I(null),z(null)),void 0===b&&k(e),v?.(e)};(0,i.useEffect)(()=>{if(!H)return;let t=!0,a=window.setTimeout(()=>{O(!0),I(null),z(null),(0,m.controlPlaneRequest)(`query GitHubPullRequestMergeOptions(
16
- $owner: String!
17
- $name: String!
18
- $number: Int!
19
- ) {
20
- githubPullRequestMergeOptions(
21
- owner: $owner
22
- name: $name
23
- number: $number
24
- ) {
25
- availableMethods
26
- commitEmails
27
- defaultCommitEmail
28
- defaultCommitHeadline
29
- defaultCommitBody
30
- canMerge
31
- blockedReason
32
- }
33
- }`,{owner:$,name:U,number:e.number}).then(e=>{if(!t)return;let a=e.githubPullRequestMergeOptions;I(a),T(a.availableMethods[0]??""),R(a.defaultCommitHeadline),D(a.defaultCommitBody),M(a.defaultCommitEmail??h)}).catch(e=>{t&&z(e instanceof Error?e.message:String(e))}).finally(()=>{t&&O(!1)})},0);return()=>{t=!1,window.clearTimeout(a)}},[U,H,$,e.number]);let W=async()=>{if(S&&C?.canMerge&&N.trim()){_(!0),z(null);try{let t=await (0,m.controlPlaneRequest)(`mutation MergeGitHubPullRequest(
34
- $input: MergeGitHubPullRequestInput!
35
- ) {
36
- mergeGitHubPullRequest(input: $input) {
37
- id state url mergedAt
38
- }
39
- }`,{input:{owner:$,name:U,number:e.number,method:S,commitHeadline:N,commitBody:E,authorEmail:A===h?null:A}});q(!1),await g?.(t.mergeGitHubPullRequest)}catch(e){z(e instanceof Error?e.message:String(e))}finally{_(!1)}}},G=C?.blockedReason??null;return(0,t.jsxs)(t.Fragment,{children:[j&&(0,t.jsxs)(n.Button,{onClick:e=>{e.stopPropagation(),q(!0)},size:x,type:"button",variant:f,children:[(0,t.jsx)(a,{}),y("merge")]}),(0,t.jsx)(l.Dialog,{onOpenChange:e=>{B||q(e)},open:H,children:(0,t.jsxs)(l.DialogContent,{className:"sm:max-w-xl",children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:y("mergePullRequest")}),(0,t.jsx)(l.DialogDescription,{children:y("mergePullRequestDescription",{repository:e.repositoryNameWithOwner,number:e.number})})]}),!P&&(C||L)?(0,t.jsxs)("div",{className:"space-y-4",children:[(L||G)&&(0,t.jsx)(s.Alert,{variant:"destructive",children:(0,t.jsx)(s.AlertDescription,{children:L||G})}),C&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-method",children:y("mergeType")}),(0,t.jsxs)(c.Select,{disabled:B||0===C.availableMethods.length,onValueChange:e=>T(e),value:S,children:[(0,t.jsx)(c.SelectTrigger,{id:"merge-method",children:(0,t.jsx)(c.SelectValue,{placeholder:y("selectMergeType")})}),(0,t.jsx)(c.SelectContent,{children:C.availableMethods.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:y(`mergeTypes.${e}`)},e))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-headline",children:y("commitMessage")}),(0,t.jsx)(o.Input,{disabled:B,id:"merge-commit-headline",onChange:e=>R(e.target.value),value:N})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-body",children:y("commitDescription")}),(0,t.jsx)(p.Textarea,{className:"min-h-28",disabled:B,id:"merge-commit-body",onChange:e=>D(e.target.value),value:E})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-email",children:y("commitEmail")}),(0,t.jsxs)(c.Select,{disabled:B,onValueChange:M,value:A,children:[(0,t.jsx)(c.SelectTrigger,{id:"merge-email",children:(0,t.jsx)(c.SelectValue,{})}),(0,t.jsxs)(c.SelectContent,{children:[(0,t.jsx)(c.SelectItem,{value:h,children:y("githubDefaultEmail")}),C.commitEmails.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:e},e))]})]})]})]})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 py-6 text-sm text-muted-foreground",children:[(0,t.jsx)(u.Spinner,{})," ",y("loadingMergeOptions")]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(n.Button,{disabled:B,onClick:()=>q(!1),type:"button",variant:"outline",children:y("cancelMerge")}),(0,t.jsxs)(n.Button,{disabled:P||B||!C?.canMerge||!S||!N.trim(),onClick:()=>void W(),type:"button",children:[B?(0,t.jsx)(u.Spinner,{}):(0,t.jsx)(a,{}),B?y("merging"):y("mergePullRequest")]})]})]})})]})}],346194)},768877,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],768877)},948812,e=>{"use strict";function t(e){return`${e.repositoryNameWithOwner}#${e.number}`}e.s(["pullRequestCommentsHref",0,function(e){return`/comments?pullRequest=${encodeURIComponent(t(e))}`},"pullRequestDetailHref",0,function(e){let[t="",a=""]=e.repositoryNameWithOwner.split("/");return`/pull-requests/${encodeURIComponent(t)}/${encodeURIComponent(a)}/${e.number}`},"pullRequestKey",0,t])},882505,e=>{"use strict";let t=(0,e.i(456420).default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["List",0,t],882505)},851817,e=>{"use strict";let t=(0,e.i(456420).default)("grid-2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);e.s(["Grid2X2",0,t],851817)},434719,e=>{"use strict";let t=String.raw`\b([A-Z][A-Z0-9_]*-\d+)\b`;e.s(["DEFAULT_JIRA_BRANCH_REGEX",0,t,"DEFAULT_WORKTREE_FETCH_INTERVAL_SECONDS",0,300,"MAX_WORKTREE_FETCH_INTERVAL_SECONDS",0,86400,"MIN_WORKTREE_FETCH_INTERVAL_SECONDS",0,60,"WORKTREE_BRANCH_JOB_KIND",0,"worktree.branch","WORKTREE_DELETE_JOB_KIND",0,"worktree.delete","WORKTREE_INSPECT_JOB_KIND",0,"worktree.inspect","WORKTREE_MOVE_CHECKOUT_JOB_KIND",0,"worktree.move.checkout","WORKTREE_MOVE_PUSH_JOB_KIND",0,"worktree.move.push","WORKTREE_OPERATION_JOB_KIND",0,"worktree.operation","WORKTREE_WATCH_JOB_KIND",0,"worktree.watch"])},636162,e=>{"use strict";let t=(0,e.i(456420).default)("apple",[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]]);e.s(["Apple",0,t],636162)},688194,e=>{"use strict";e.s(["BUILD_CONFIGURATION_ICON_KEYS",0,["apple","app-window","archive","beaker","box","bug","code","gauge","hammer","layers","package","play","rocket","shield","smartphone","sparkles","terminal","test-tube","wrench"],"BUILD_EXPORT_METHODS",0,["DEBUGGING","RELEASE_TESTING","ENTERPRISE","APP_STORE_CONNECT"],"EXPORT_METHOD_PROFILE_TYPES",0,{DEBUGGING:"DEVELOPMENT",RELEASE_TESTING:"AD_HOC",ENTERPRISE:"ENTERPRISE",APP_STORE_CONNECT:"APP_STORE"},"profileCoversBundle",0,function(e,t){return"*"===e||(e.endsWith(".*")?t.startsWith(e.slice(0,-1)):e===t)}])},687862,52253,e=>{"use strict";var t=e.i(843476),a=e.i(688194),r=e.i(636162),i=e.i(456420);let s=(0,i.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);var n=e.i(876561);let l=(0,i.default)("beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]),o=(0,i.default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),d=(0,i.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);var c=e.i(452330);let u=(0,i.default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var p=e.i(93384);let m=(0,i.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),h=(0,i.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var g=e.i(21357);let x=(0,i.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var f=e.i(584026),b=e.i(986206),v=e.i(328623),j=e.i(604139);let y=(0,i.default)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);var w=e.i(747925);let k={apple:r.Apple,"app-window":s,archive:n.Archive,beaker:l,box:o,bug:d,code:c.Code2,gauge:u,hammer:p.Hammer,layers:m,package:h,play:g.Play,rocket:x,shield:f.ShieldCheck,smartphone:b.Smartphone,sparkles:v.Sparkles,terminal:j.Terminal,"test-tube":y,wrench:w.Wrench};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let a=k[e];return a?(0,t.jsx)(a,{"aria-hidden":!0,className:"size-4"}):null}],687862);var C=e.i(77071);let I=(0,i.default)("scan-search",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);var S=e.i(573474),T=e.i(861745),N=e.i(948148),R=e.i(271645),E=e.i(929592),D=e.i(519455),A=e.i(257428),M=e.i(793479),P=e.i(110204),O=e.i(967489),B=e.i(987968),_=e.i(637611),L=e.i(360583);e.s(["DEFAULT_EXPORT_SETTINGS",0,{method:"DEBUGGING",signingStyle:"AUTOMATIC",teamId:null,signingCertificate:null,provisioningProfiles:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1,stripSwiftSymbols:!0,thinning:null,iCloudContainerEnvironment:null,distributionBundleIdentifier:null},"ExportSettingsForm",0,function({value:e,onChange:r,onParseSigningRequirements:i,disabled:s=!1}){let n=(0,N.useTranslations)("builds"),l=(0,T.useLocale)(),[o,d]=(0,R.useState)(()=>Object.keys(e.provisioningProfiles).map(e=>({bundleId:e,name:e,target:e,platform:null,teamId:null,provisioningProfileSpecifier:null}))),[c,u]=(0,R.useState)(!1),[p,m]=(0,R.useState)(!1),[h,g]=(0,R.useState)(null),[x,f]=(0,R.useState)(""),[b,v]=(0,R.useState)(()=>new Set(Object.keys(e.provisioningProfiles))),j=(0,R.useId)(),[y,w]=(0,R.useState)(null);(0,R.useEffect)(()=>{let e=!1;return(0,_.controlPlaneRequest)(`query ExportSigningInventory {
40
- signingAgents { supported }
41
- signingCertificates { sha1 name teamId hasPrivateKey installedAgents { id } }
42
- signingProfiles {
43
- uuid name profileType bundleId teamId platforms expiresAt expired
44
- certificateSha1s installedAgents { id }
45
- }
46
- }`).then(t=>{e||w({agentCount:t.signingAgents.filter(e=>e.supported).length,certificates:t.signingCertificates,profiles:t.signingProfiles})}).catch(()=>{e||w({agentCount:0,certificates:[],profiles:[]})}),()=>{e=!0}},[]);let k=(0,R.useMemo)(()=>[...new Set([...y?.certificates??[],...y?.profiles??[]].flatMap(e=>e.teamId??[]))],[y]),z=y?.certificates.find(t=>t.sha1===e.signingCertificate),$=Object.values(e.provisioningProfiles),U=$.flatMap(e=>{let t=y?.profiles.find(t=>t.uuid===e);return t?[t]:[]}),H=$.length>0&&U.length===$.length&&U.every(e=>e.certificateSha1s.length>0),q=t=>H?U.every(e=>e.certificateSha1s.map(e=>e.toUpperCase()).includes(t.sha1.toUpperCase())):!e.teamId||t.teamId===e.teamId,W=(y?.certificates??[]).filter(e=>e.hasPrivateKey).sort((e,t)=>Number(q(t))-Number(q(e))||e.name.localeCompare(t.name)),G=W.some(t=>t.sha1===e.signingCertificate),V=(t,a)=>r({...e,[t]:a}),F=(t,r=e.teamId)=>(y?.profiles??[]).filter(i=>{var s,n;return i.profileType===a.EXPORT_METHOD_PROFILE_TYPES[e.method]&&!i.expired&&(0,a.profileCoversBundle)(i.bundleId,t.bundleId)&&(s=i.platforms,!(n=t.platform)||0===s.length||("watchOS"===n?["watchOS","iOS"]:"visionOS"===n?["visionOS","xrOS"]:[n]).some(e=>s.includes(e)))&&(!r||!i.teamId||i.teamId===r)}).sort((e,t)=>(t.expiresAt??"").localeCompare(e.expiresAt??"")),K=async()=>{if(i){m(!0),g(null);try{let t=await i(),a=new Set(t.map(e=>e.bundleId)),s=o.filter(e=>b.has(e.bundleId)&&!a.has(e.bundleId)),n=[...t,...s];d(n),v(e=>new Set([...e].filter(e=>!a.has(e)))),u(!0);let l=[...new Set(t.flatMap(e=>e.teamId??[]))],c=e.teamId??(1===l.length?l[0]:null),p=Object.fromEntries(n.flatMap(t=>{let a=F(t,c),r=e.provisioningProfiles[t.bundleId],i=t.provisioningProfileSpecifier,s=(r?y?.profiles.find(e=>e.uuid===r&&!e.expired)??r:null)??a.find(e=>e.uuid===i||e.name===i)??a[0];return s?[[t.bundleId,"string"==typeof s?s:s.uuid]]:[]}));r({...e,teamId:c,provisioningProfiles:p})}catch(e){g(e instanceof Error?e.message:String(e))}finally{m(!1)}}};return(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 rounded-xl border p-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 sm:col-span-2 sm:grid-cols-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(P.Label,{children:n("distributionMethod")}),(0,t.jsxs)(O.Select,{disabled:s,onValueChange:e=>V("method",e),value:e.method,children:[(0,t.jsx)(O.SelectTrigger,{children:(0,t.jsx)(O.SelectValue,{})}),(0,t.jsx)(O.SelectContent,{children:a.BUILD_EXPORT_METHODS.map(e=>(0,t.jsx)(O.SelectItem,{value:e,children:n(`exportMethod.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(P.Label,{children:n("signingStyle")}),(0,t.jsxs)(O.Select,{disabled:s,onValueChange:e=>V("signingStyle",e),value:e.signingStyle,children:[(0,t.jsx)(O.SelectTrigger,{children:(0,t.jsx)(O.SelectValue,{})}),(0,t.jsxs)(O.SelectContent,{children:[(0,t.jsx)(O.SelectItem,{value:"AUTOMATIC",children:n("automatic")}),(0,t.jsx)(O.SelectItem,{value:"MANUAL",children:n("manual")})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(P.Label,{children:n("developmentTeam")}),k.length?(0,t.jsxs)(O.Select,{disabled:s,onValueChange:e=>V("teamId",e),value:e.teamId??"",children:[(0,t.jsx)(O.SelectTrigger,{children:(0,t.jsx)(O.SelectValue,{placeholder:"ABCDE12345"})}),(0,t.jsx)(O.SelectContent,{children:k.map(e=>(0,t.jsx)(O.SelectItem,{value:e,children:e},e))})]}):(0,t.jsx)(M.Input,{disabled:s,onChange:e=>V("teamId",e.target.value||null),placeholder:"ABCDE12345",value:e.teamId??""})]})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsx)(P.Label,{children:n("signingCertificate")}),y?.certificates.length?(0,t.jsxs)(O.Select,{disabled:s,onValueChange:e=>V("signingCertificate","AUTOMATIC"===e?null:e),value:e.signingCertificate??"AUTOMATIC",children:[(0,t.jsx)(O.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(O.SelectValue,{})}),(0,t.jsxs)(O.SelectContent,{children:[(0,t.jsx)(O.SelectItem,{value:"AUTOMATIC",children:n("certificateAutomatic")}),e.signingCertificate&&!G&&(0,t.jsxs)(O.SelectItem,{value:e.signingCertificate,children:[e.signingCertificate," · ",n("savedValueUnavailable")]}),W.map(e=>(0,t.jsxs)(O.SelectItem,{className:q(e)?void 0:"text-muted-foreground",value:e.sha1,children:[e.name," · ",e.sha1.slice(0,10),"…",!q(e)&&` \xb7 ${n("certificateMayNotMatch")}`]},e.sha1))]})]}):(0,t.jsx)(M.Input,{disabled:s,onChange:e=>V("signingCertificate",e.target.value||null),placeholder:n("certificateAutomatic"),value:e.signingCertificate??""})]}),z&&y&&z.installedAgents.length<y.agentCount&&(0,t.jsx)(E.Alert,{className:"sm:col-span-2",children:(0,t.jsx)(E.AlertDescription,{children:n("signingAssetCoverageWarning",{installed:z.installedAgents.length,total:y.agentCount})})}),"MANUAL"===e.signingStyle&&(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(P.Label,{children:n("provisioningProfiles")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:n("parseProvisioningProfilesHelp")})]}),i&&(0,t.jsxs)(D.Button,{disabled:s||p||!y,onClick:()=>void K(),size:"sm",type:"button",variant:"outline",children:[p?(0,t.jsx)(B.Spinner,{}):(0,t.jsx)(I,{}),n(c?"reparseProvisioningProfiles":"parseProvisioningProfiles")]})]}),(0,t.jsxs)("div",{className:"grid gap-2 rounded-lg border border-dashed p-3 sm:grid-cols-[minmax(0,1fr)_auto]",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(P.Label,{htmlFor:j,children:n("manualBundleIdentifier")}),(0,t.jsx)(M.Input,{disabled:s,id:j,onChange:e=>f(e.target.value),placeholder:n("manualBundleIdentifierPlaceholder"),value:x}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("manualBundleIdentifierHelp")})]}),(0,t.jsxs)(D.Button,{className:"sm:self-end",disabled:s||!x.trim()||o.some(e=>e.bundleId===x.trim()),onClick:()=>{let t=x.trim();!t||o.some(e=>e.bundleId===t)||(d(a=>[...a,{bundleId:t,name:t,target:t,platform:null,teamId:e.teamId,provisioningProfileSpecifier:null}]),v(e=>new Set(e).add(t)),f(""))},type:"button",variant:"outline",children:[(0,t.jsx)(C.Plus,{}),n("addBundleIdentifier")]})]}),h&&(0,t.jsx)(E.Alert,{variant:"destructive",children:(0,t.jsx)(E.AlertDescription,{children:h})}),!o.length&&c&&(0,t.jsx)("p",{className:"rounded-lg border border-dashed p-4 text-sm text-muted-foreground",children:n("noSigningRequirements")}),!o.length&&!c&&(0,t.jsx)("p",{className:"rounded-lg border border-dashed p-4 text-sm text-muted-foreground",children:n("parseProvisioningProfilesEmpty")}),o.map(a=>{let r,i=F(a),o=new Set(i.map(e=>e.uuid)),c=(r=new Set(F(a).map(e=>e.uuid)),(y?.profiles??[]).filter(e=>!e.expired).sort((e,t)=>Number(r.has(t.uuid))-Number(r.has(e.uuid))||(t.expiresAt??"").localeCompare(e.expiresAt??"")||e.name.localeCompare(t.name))),u=e.provisioningProfiles[a.bundleId]??"",p=c.some(e=>e.uuid===u);return(0,t.jsxs)("div",{className:"rounded-lg border p-3",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:a.name}),(0,t.jsx)("p",{className:"break-all font-mono text-xs text-muted-foreground",children:a.bundleId}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:[a.target,a.platform,a.teamId].filter(Boolean).join(" · ")})]}),b.has(a.bundleId)&&(0,t.jsx)(D.Button,{"aria-label":n("removeBundleIdentifier",{bundleId:a.bundleId}),disabled:s,onClick:()=>{var t;let r;return t=a.bundleId,d(e=>e.filter(e=>e.bundleId!==t)),v(e=>{let a=new Set(e);return a.delete(t),a}),r={...e.provisioningProfiles},void(delete r[t],V("provisioningProfiles",r))},size:"icon-sm",type:"button",variant:"ghost",children:(0,t.jsx)(S.Trash2,{})})]}),(0,t.jsxs)(O.Select,{disabled:s||!y,onValueChange:t=>V("provisioningProfiles",{...e.provisioningProfiles,[a.bundleId]:t}),value:u,children:[(0,t.jsx)(O.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(O.SelectValue,{placeholder:n("selectProfile")})}),(0,t.jsxs)(O.SelectContent,{children:[u&&!p&&(0,t.jsxs)(O.SelectItem,{value:u,children:[u," · ",n("savedValueUnavailable")]}),c.map(e=>{let a;return(0,t.jsxs)(O.SelectItem,{className:o.has(e.uuid)?void 0:"text-muted-foreground",value:e.uuid,children:[(a=e.expiresAt?(0,L.formatDateValue)(e.expiresAt,"short",{locale:l,showTime:!1}):null)?`${e.name} — ${a}`:e.name,!o.has(e.uuid)&&` \xb7 ${n("profileMayNotMatch")}`]},e.uuid)})]})]}),!i.length&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("noMatchingProfiles")})]},a.bundleId)})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(P.Label,{children:n("thinning")}),(0,t.jsx)(M.Input,{disabled:s,onChange:e=>V("thinning",e.target.value||null),placeholder:"<none> / <thin-for-all-variants>",value:e.thinning??""})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(P.Label,{children:n("iCloudEnvironment")}),(0,t.jsxs)(O.Select,{disabled:s,onValueChange:e=>V("iCloudContainerEnvironment","NONE"===e?null:e),value:e.iCloudContainerEnvironment??"NONE",children:[(0,t.jsx)(O.SelectTrigger,{children:(0,t.jsx)(O.SelectValue,{})}),(0,t.jsxs)(O.SelectContent,{children:[(0,t.jsx)(O.SelectItem,{value:"NONE",children:"—"}),(0,t.jsx)(O.SelectItem,{value:"Development",children:"Development"}),(0,t.jsx)(O.SelectItem,{value:"Production",children:"Production"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsx)(P.Label,{children:n("distributionBundleIdentifier")}),(0,t.jsx)(M.Input,{disabled:s,onChange:e=>V("distributionBundleIdentifier",e.target.value||null),value:e.distributionBundleIdentifier??""})]}),[["uploadSymbols","uploadSymbols"],["manageAppVersionAndBuildNumber","manageBuildNumber"],["testFlightInternalTestingOnly","internalTestFlightOnly"],["stripSwiftSymbols","stripSwiftSymbols"]].map(([a,r])=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(A.Checkbox,{checked:e[a],disabled:s,onCheckedChange:e=>V(a,!!e)}),n(r)]},a)),(0,t.jsx)("p",{className:"text-xs text-muted-foreground sm:col-span-2",children:n("localExportOnly")})]})}],52253)},747047,111530,e=>{"use strict";let t=`
47
- id requestId jobId status action destinationType destination snapshot commandSummary artifactDirectory errorCode error outOfDate
48
- createdAt startedAt finishedAt durationMs updatedAt
49
- worktree { id highlightColor }
50
- artifacts { id kind relativePath sizeBytes checksum metadata createdAt }
51
- `;e.s(["BUILD_LIST_FIELDS",0,t],747047);var a=e.i(271645);e.s(["useBuildTimeTicker",0,function(){let[e,t]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=()=>t(Date.now()),a=window.setTimeout(e,0),r=window.setInterval(e,1e3);return()=>{window.clearTimeout(a),window.clearInterval(r)}},[]),e}],111530)},320228,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["DetailItem",0,function({label:e,children:r,mono:i=!1,className:s,...n}){return(0,t.jsxs)("div",{className:(0,a.cn)("min-w-0",s),...n,children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:(0,a.cn)("mt-0.5 text-sm tabular-nums",i&&"break-all font-mono"),children:r})]})},"DetailList",0,function({className:e,...r}){return(0,t.jsx)("dl",{className:(0,a.cn)("grid gap-3 text-sm",e),...r})}])},975856,e=>{"use strict";var t=e.i(843476),a=e.i(716327),r=e.i(867927),i=e.i(482022),s=e.i(395925),n=e.i(948148),l=e.i(271645),o=e.i(647776),d=e.i(487486),c=e.i(519455),u=e.i(987968),p=e.i(637611);function m({job:e,repositoryId:a,checkSuiteId:r,onRetried:i,onError:o}){let d=(0,n.useTranslations)("pullRequestDetail"),h=(0,n.useTranslations)("pullRequests"),[g,x]=(0,l.useState)(!1),f=async t=>{if(t.stopPropagation(),e.canRetry&&r){x(!0);try{await (0,p.controlPlaneRequest)(`mutation RetryGitHubWorkflowJob(
52
- $repositoryId: ID!
53
- $checkSuiteId: ID!
54
- $jobId: ID!
55
- ) {
56
- retryGitHubWorkflowJob(
57
- repositoryId: $repositoryId
58
- checkSuiteId: $checkSuiteId
59
- jobId: $jobId
60
- )
61
- }`,{repositoryId:a,checkSuiteId:r,jobId:e.id}),i(),o(null)}catch(e){o(e instanceof Error?e.message:String(e))}finally{x(!1)}}},b=e.retryUnavailableReason?h(`retryUnavailable.${e.retryUnavailableReason}`):void 0;return(0,t.jsxs)(c.Button,{"aria-label":d("retryJob",{job:e.name}),disabled:g||!e.canRetry||!r,onClick:e=>void f(e),size:"sm",title:b,variant:"outline",children:[g?(0,t.jsx)(u.Spinner,{}):(0,t.jsx)(s.RotateCcw,{}),h(g?"retrying":"retry")]})}e.s(["WorkflowJob",0,function({job:e,repositoryId:s,checkSuiteId:u,onRetried:p,onError:h}){let g=(0,n.useTranslations)("pullRequestDetail"),x=(0,n.useTranslations)("pullRequests"),[f,b]=(0,l.useState)(!1);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[(0,t.jsxs)("button",{"aria-expanded":f,"aria-label":g(f?"hideJobSteps":"showJobSteps",{job:e.name}),className:"flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-2 text-left hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>b(e=>!e),type:"button",children:[f?(0,t.jsx)(a.ChevronDown,{className:"size-4 shrink-0"}):(0,t.jsx)(r.ChevronRight,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:e.name}),(0,t.jsx)(d.Badge,{className:(0,o.pipelineStateClass)(e.status),children:x(`pipelineStates.${e.status}`)})]}),e.url&&(0,t.jsx)(c.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{"aria-label":g("viewJob",{job:e.name}),href:e.url,rel:"noreferrer",target:"_blank",children:[g("viewPipeline"),(0,t.jsx)(i.ExternalLink,{})]})}),(0,t.jsx)(m,{checkSuiteId:u,job:e,onError:h,onRetried:p,repositoryId:s})]}),f&&(0,t.jsxs)("div",{className:"mb-3 w-full rounded-md border bg-background p-3",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:g("steps")}),0===e.steps.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:g("noSteps")}):(0,t.jsx)("ol",{className:"space-y-2",children:e.steps.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-3 text-sm",children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-full bg-muted text-[11px] text-muted-foreground",children:e.number}),(0,t.jsx)("span",{className:"min-w-0 flex-1",children:e.name}),(0,t.jsx)(d.Badge,{className:(0,o.pipelineStateClass)(e.status),children:x(`pipelineStates.${e.status}`)})]},e.number))})]})]})}])},547,e=>{"use strict";var t=e.i(843476),a=e.i(434719),r=e.i(711241),i=e.i(269846),s=e.i(741120),n=e.i(861745),l=e.i(948148),o=e.i(271645),d=e.i(778434),c=e.i(90969),u=e.i(747047),p=e.i(771777),m=e.i(866026),h=e.i(448295),g=e.i(111530),x=e.i(9197),f=e.i(647776),b=e.i(321194),v=e.i(975856),j=e.i(567153),y=e.i(929592),w=e.i(487486),k=e.i(519455),C=e.i(515288),I=e.i(784774),S=e.i(520133),T=e.i(637611);let N=new Set(["CANCELLED","ERROR","FAILURE","STALE","STARTUP_FAILURE","TIMED_OUT"]),R=new Set(["ACTION_REQUIRED","EXPECTED","IN_PROGRESS","PENDING","QUEUED"]);function E({runs:e,error:a,worktreeId:r,branch:i,onCancelled:s,onError:n,onRetried:d}){let c=(0,l.useTranslations)("pullRequestDetail"),u=(0,l.useTranslations)("pullRequests"),[p,m]=(0,o.useState)({}),[h,g]=(0,o.useState)({});(0,o.useEffect)(()=>{let t=!1;return Promise.all(e.map(async e=>{try{let t=await (0,T.controlPlaneRequest)(`query WorktreePipelineJobs($repositoryId: ID!, $workflowRunId: ID!) {
62
- githubActionsWorkflowJobs(
63
- codebaseRepositoryId: $repositoryId
64
- workflowRunId: $workflowRunId
65
- ) { id name status url canRetry retryUnavailableReason runAttempt steps { number name status } }
66
- }`,{repositoryId:e.codebaseRepositoryId,workflowRunId:e.id});return[e.id,t.githubActionsWorkflowJobs]}catch{return[e.id,[]]}})).then(e=>{t||m(Object.fromEntries(e))}),()=>{t=!0}},[e]);let D=(0,o.useMemo)(()=>e.map(e=>{var t;return t=p[e.id]??[],{id:e.id,name:e.name,status:e.status,url:e.url,checkSuiteId:e.checkSuiteId,canRetry:e.canRetry,retryUnavailableReason:e.retryUnavailableReason,jobs:t,workflowRunId:e.id,workflowId:e.workflowId,runNumber:e.runNumber,runAttempt:e.runAttempt}}),[p,e]);return e.length||a?(0,t.jsxs)(C.Card,{className:"min-w-0 gap-0 py-0",children:[(0,t.jsxs)(C.CardHeader,{className:"flex grid-cols-none flex-row items-center justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(C.CardTitle,{children:c("pipelines")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:c("pipelineCount",{count:e.length})})]}),e.length?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[i?(0,t.jsx)(k.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(S.Link,{href:(0,j.actionsForBranchHref)(e[0].codebaseRepositoryId,i),children:c("viewAll")})}):null,(0,t.jsx)(x.AutoRetryDialog,{allowFuture:!!i,branch:i,codebaseRepositoryId:e[0].codebaseRepositoryId,currentRuns:e.map(e=>({id:e.id,workflowId:e.workflowId,name:e.name,jobs:p[e.id]})),repositoryGithubId:e[0].repositoryGithubId,worktreeId:r}),(0,t.jsx)(f.PipelineMenu,{pipelineStatus:e.some(e=>N.has(e.status))?"FAILURE":e.some(e=>R.has(e.status))?"PENDING":e.length&&e.every(e=>"SUCCESS"===e.status)?"SUCCESS":"NONE",pipelines:D,repositoryId:e[0].repositoryGithubId})]}):null]}),(0,t.jsxs)(C.CardContent,{className:"px-0",children:[a?(0,t.jsx)(y.Alert,{className:"m-4",variant:"destructive",children:(0,t.jsx)(y.AlertDescription,{children:a})}):null,e.length?(0,t.jsxs)(I.Table,{children:[(0,t.jsx)(I.TableHeader,{children:(0,t.jsxs)(I.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(I.TableHead,{children:c("pipelineName")}),(0,t.jsx)(I.TableHead,{children:c("pipelineStatus")}),(0,t.jsx)(I.TableHead,{className:"text-right",children:c("pipelineDetails")})]})}),(0,t.jsx)(I.TableBody,{children:e.map(e=>{let a=h[e.id]??null,r=a?.jobs??p[e.id]??[];return(0,t.jsxs)(o.Fragment,{children:[(0,t.jsxs)(I.TableRow,{children:[(0,t.jsxs)(I.TableCell,{className:"font-medium",children:[e.name,(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(b.WorkflowAttemptSelect,{latestAttempt:e.runAttempt,onAttemptChange:t=>g(a=>({...a,[e.id]:t})),repositoryId:e.codebaseRepositoryId,workflowRunId:e.id})})]}),(0,t.jsx)(I.TableCell,{children:(0,t.jsx)(w.Badge,{className:(0,f.pipelineStateClass)(a?.status??e.status),children:u(`pipelineStates.${a?.status??e.status}`)})}),(0,t.jsx)(I.TableCell,{children:(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(j.WorkflowRunActionsMenu,{onCancelled:()=>s(e.id),onError:n,onRetried:()=>d(e.id),run:a?{...e,status:a.status,url:a.url,checkSuiteId:null,canRetry:!1}:e,viewAllHref:i?(0,j.actionsForBranchHref)(e.codebaseRepositoryId,i,e.workflowId):null})})})]}),(0,t.jsx)(I.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(I.TableCell,{className:"p-0",colSpan:3,children:(0,t.jsxs)("div",{className:"border-l-2 border-muted-foreground/20 px-4 py-1",children:[(0,t.jsx)("p",{className:"px-3 py-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:c("jobCount",{count:r.length})}),0===r.length?(0,t.jsx)("p",{className:"px-3 pb-3 text-sm text-muted-foreground",children:c("noJobs")}):(0,t.jsx)("div",{className:"divide-y",children:r.map(a=>(0,t.jsx)(v.WorkflowJob,{checkSuiteId:e.checkSuiteId,job:a,onError:n,onRetried:()=>{var t,r;return t=e.id,r=a.id,void m(e=>({...e,[t]:(e[t]??[]).map(e=>e.id===r?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",steps:[]}:{...e,canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"})}))},repositoryId:e.repositoryGithubId},a.id))})]})})})]},e.id)})})]}):null]})]}):null}var D=e.i(356505),A=e.i(816484),M=e.i(320228),P=e.i(82612),O=e.i(987968),B=e.i(975157),_=e.i(171502),L=e.i(942230),z=e.i(455329),$=e.i(756283),U=e.i(940276),H=e.i(267572);let q=`query WorktreeDetailOverview($worktreeId: ID!) {
67
- worktreeOverview {
68
- hiddenCount
69
- settings { editorVariant updatedAt }
70
- tags { id name color createdAt updatedAt }
71
- activeMoves {
72
- id sourceWorktreeId sourceCodebaseId targetCodebaseId targetWorktreeId destinationMode
73
- branch headSha deleteSource status sourceJobId targetJobId cleanupJobId error warning
74
- createdAt updatedAt finishedAt
75
- }
76
- agents {
77
- agent { ${d.AGENT_FIELDS} }
78
- codebases {
79
- iosBuildConfigured
80
- repository { id canonicalOrigin displayOrigin name description jiraBranchRegex keepBaseBranchUpToDate createdAt updatedAt }
81
- codebase { ${z.CODEBASE_FIELDS} }
82
- worktrees { ${z.WORKTREE_FIELDS} }
83
- }
84
- }
85
- }
86
- builds(first: 50, worktreeId: $worktreeId) {
87
- items { ${u.BUILD_LIST_FIELDS} }
88
- nextCursor
89
- }
90
- worktreeCoverageReports(worktreeId: $worktreeId) {
91
- id kind source status summary error createdAt updatedAt finishedAt
92
- artifact { id kind relativePath sizeBytes checksum metadata createdAt }
93
- build {
94
- id status action destinationType destination snapshot createdAt startedAt finishedAt durationMs updatedAt outOfDate
95
- artifacts { id kind relativePath sizeBytes checksum metadata createdAt }
96
- }
97
- }
98
- }`;function W({builds:e,coverageReports:i,buildsLoadingMore:n,buildsNextCursor:d,entry:c,overview:u,pipelines:p,pipelinesError:m,loadError:h,onLoadMoreBuilds:g,onPipelineCancelled:x,onPipelineRetried:f,onReload:b,onUpdate:v}){let j=(0,l.useTranslations)("worktreeDetail"),I=(0,l.useTranslations)("worktrees"),N=(0,S.useRouter)(),[R,P]=(0,o.useState)(()=>new URLSearchParams(window.location.search).get("issue")),[z,q]=(0,o.useState)(null),[V,K]=(0,o.useState)(!1),[J,X]=(0,o.useState)(!1),[Q,Y]=(0,o.useState)(!1),[Z,ee]=(0,o.useState)(null),et=(0,o.useRef)(0),{worktree:ea,applyActivity:er,setUnstagedChanges:ei}=(0,$.useLiveWorktree)(c.worktree),es=u.activeMoves.some(e=>e.sourceCodebaseId===c.group.codebase.id||e.targetCodebaseId===c.group.codebase.id),en="ONLINE"===c.agentGroup.agent.connectionStatus&&c.agentGroup.agent.capabilities.includes(a.WORKTREE_INSPECT_JOB_KIND)&&"AVAILABLE"===ea.availability&&!ea.activeJob&&!es,el="ONLINE"===c.agentGroup.agent.connectionStatus&&c.agentGroup.agent.capabilities.includes(a.WORKTREE_WATCH_JOB_KIND),eo=(0,o.useCallback)(async()=>{if(!en)return;let e=++et.current;X(!0);try{let t=await (0,$.inspectWorktree)(ea.id);if(e!==et.current)return;q(t),ei(t.changes.some(e=>e.unstaged||e.untracked||e.conflicted)),ee(null)}catch(t){e===et.current&&ee(t instanceof Error?t.message:String(t))}finally{e===et.current&&X(!1)}},[en,ei,ea.id]),ed=(0,$.useQueuedWorktreeInspection)(eo);(0,o.useEffect)(()=>{if(!en)return;let e=window.setTimeout(()=>void ed(),0);return()=>window.clearTimeout(e)},[en,ed]);let ec=(0,o.useCallback)(e=>{er(e),en&&ed()},[er,en,ed]);(0,$.useWorktreeActivitySubscription)(ea.id,el&&"AVAILABLE"===ea.availability,ec),(0,o.useEffect)(()=>{let e=()=>P(new URLSearchParams(window.location.search).get("issue"));return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let eu=e=>{let t,a;t=new URLSearchParams(window.location.search),e?t.set("issue",e):t.delete("issue"),a=t.toString(),window.history.pushState(null,"",`${window.location.pathname}${a?`?${a}`:""}`),P(e)},ep=(0,o.useCallback)(async()=>{await b(),en&&await ed()},[en,b,ed]),em=async()=>{Y(!0);try{await (0,T.controlPlaneRequest)("mutation RefreshWorktrees { refreshWorktrees }"),await ep(),ee(null)}catch(e){ee(e instanceof Error?e.message:String(e))}finally{Y(!1)}},eh={worktree:ea,group:c.group,allTags:u.tags,baseRepoDirectory:c.agentGroup.agent.baseRepoDirectory,branchManagementEnabled:"ONLINE"===c.agentGroup.agent.connectionStatus&&c.agentGroup.agent.capabilities.includes("worktree.branch"),editorVariant:u.settings.editorVariant,inspectionRefreshToken:0,liveUpdatesEnabled:el,onReload:ep,onUpdate:v,onError:ee,onManageTags:()=>K(!0),onOpenTicket:e=>eu(e),onDeleted:()=>N.push("/worktrees"),onMoved:e=>{e.targetWorktreeId&&N.push((0,U.worktreeDetailHref)(e.targetWorktreeId))},overview:u},eg=en?null:"OFFLINE"===c.agentGroup.agent.connectionStatus?j("inspectionOffline"):"AVAILABLE"!==ea.availability?ea.statusError||j("inspectionUnavailable"):j(ea.activeJob||es?"inspectionBusy":"inspectionUnsupported");return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-6xl flex-col gap-5",children:[(0,t.jsx)("div",{children:(0,t.jsx)(k.Button,{asChild:!0,className:"-ml-2",size:"sm",variant:"ghost",children:(0,t.jsxs)(S.Link,{href:"/worktrees",children:[(0,t.jsx)(r.ArrowLeft,{})," ",j("back")]})})}),(0,t.jsxs)("div",{className:(0,B.cn)("flex flex-wrap items-start justify-between gap-4",ea.highlightColor&&"rounded-lg border-l-4 px-4 py-3",ea.highlightColor&&_.worktreeHighlightBackgroundClasses[ea.highlightColor],ea.highlightColor&&_.worktreeHighlightAccentClasses[ea.highlightColor]),"data-testid":"worktree-summary",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[c.group.repository.name," · ",c.agentGroup.agent.name]}),(0,t.jsx)("h1",{className:"mt-1 truncate font-mono text-2xl font-semibold tracking-tight",children:ea.branch??ea.headSha?.slice(0,10)??I("detached")}),(0,t.jsx)("p",{className:"mt-1 truncate font-mono text-xs text-muted-foreground",title:ea.folder,children:(0,H.displayedWorktreePath)(ea.folder,c.agentGroup.agent.baseRepoDirectory)}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[(0,t.jsx)(w.Badge,{variant:"secondary",children:ea.primary?I("primary"):j("linked")}),(0,t.jsx)(H.OriginStatusBadges,{worktree:ea}),ea.hasStagedChanges||ea.hasUnstagedChanges?(0,t.jsx)(w.Badge,{variant:"destructive",children:I("dirty")}):null,"AVAILABLE"!==ea.availability&&(0,t.jsx)(w.Badge,{variant:"destructive",children:ea.availability})]}),(ea.ticketKey||ea.ticketTitle)&&(0,t.jsx)(H.WorktreeTicketLink,{...eh})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(k.Button,{disabled:Q,onClick:()=>void em(),variant:"outline",children:[(0,t.jsx)(s.RefreshCw,{className:Q?"animate-spin":void 0}),j("refresh")]}),(0,t.jsx)(H.WorktreeMenus,{...eh})]})]}),(h||Z||ea.statusError)&&(0,t.jsx)(y.Alert,{variant:"destructive",children:(0,t.jsx)(y.AlertDescription,{children:Z||h||ea.statusError})}),eg&&(0,t.jsx)(y.Alert,{children:(0,t.jsx)(y.AlertDescription,{children:eg})}),(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:j("actions")})}),(0,t.jsx)(C.CardContent,{children:(0,t.jsx)(H.ActionRow,{...eh,onCompleted:ep})})]}),(0,t.jsx)(E,{branch:ea.branch,error:m,onCancelled:x,onError:ee,onRetried:f,runs:p,worktreeId:ea.id}),(0,t.jsxs)("div",{className:"grid gap-5 lg:grid-cols-2",children:[(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:j("overview")})}),(0,t.jsx)(C.CardContent,{children:(0,t.jsxs)(M.DetailList,{className:"sm:grid-cols-2",children:[(0,t.jsx)(M.DetailItem,{label:j("repository"),children:(0,t.jsx)(S.Link,{className:"text-primary hover:underline",href:`/codebases/${c.group.codebase.id}`,children:c.group.repository.name})}),(0,t.jsx)(M.DetailItem,{label:j("origin"),mono:!0,children:c.group.repository.displayOrigin}),(0,t.jsxs)(M.DetailItem,{label:j("agent"),children:[c.agentGroup.agent.name," ·"," ",c.agentGroup.agent.hostname]}),(0,t.jsx)(M.DetailItem,{label:j("folder"),mono:!0,children:ea.folder}),(0,t.jsx)(M.DetailItem,{label:j("head"),mono:!0,children:ea.headSha??"—"}),(0,t.jsx)(M.DetailItem,{label:j("upstream"),mono:!0,children:ea.upstream??"—"}),(0,t.jsx)(M.DetailItem,{label:j("originStatus"),children:(0,t.jsx)(H.OriginStatusBadges,{worktree:ea})}),(0,t.jsx)(M.DetailItem,{label:j("baseStatus"),children:(0,t.jsx)(H.BaseFreshnessBadge,{worktree:ea})}),(0,t.jsx)(M.DetailItem,{label:j("lastChecked"),children:(0,t.jsx)(A.DateTime,{value:ea.lastCheckedAt})}),(0,t.jsx)(M.DetailItem,{label:j("lastFetched"),children:(0,t.jsx)(A.DateTime,{value:c.group.codebase.lastFetchedAt})})]})})]}),(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:j("management")})}),(0,t.jsx)(C.CardContent,{children:(0,t.jsx)(H.WorktreeMetadata,{...eh})})]})]}),c.group.iosBuildConfigured&&(0,t.jsx)(G,{codebaseId:c.group.codebase.id,disabled:!en,onReload:b,reports:i,worktreeId:ea.id}),(0,t.jsx)(F,{builds:e,loadingMore:n,nextCursor:d,onError:ee,onLoadMore:g,onReload:b}),(0,t.jsxs)(C.Card,{className:"min-w-0",children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:j("workingTree")})}),(0,t.jsx)(C.CardContent,{children:J&&!z?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(O.Spinner,{})," ",I("loadingDetails")]}):z?(0,t.jsx)(L.WorktreeDetailPanel,{detail:z,worktreeId:ea.id}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:en?j("inspectionFailed"):"—"})})]}),(0,t.jsxs)(C.Card,{className:"min-w-0",children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:j("branchChanges")})}),(0,t.jsx)(C.CardContent,{children:z?(0,t.jsx)(L.BranchChangesPanel,{files:z.branchChanges??[],truncated:!0===z.branchChangesTruncated,worktreeId:ea.id}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"—"})})]}),(0,t.jsx)(D.JiraTicketDrawer,{issueKey:R,onClose:()=>eu(null)}),(0,t.jsx)(H.TagManagerDialog,{onChanged:b,onOpenChange:K,open:V,tags:u.tags})]})}function G({codebaseId:e,worktreeId:a,reports:r,disabled:i,onReload:s}){let o=(0,l.useTranslations)("worktreeDetail"),d=(0,n.useLocale)(),c=e=>"number"==typeof e?new Intl.NumberFormat(d,{style:"percent",maximumFractionDigits:1}).format(e):"—";return(0,t.jsxs)(C.Card,{className:"gap-0 py-0",children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsx)(C.CardTitle,{children:o("codeCoverage")}),(0,t.jsx)("div",{className:"sm:ml-auto",children:(0,t.jsx)(h.WorktreeCoverageButton,{codebaseId:e,disabled:i,onStarted:()=>void s(),worktreeId:a})})]})}),r.length?(0,t.jsxs)(I.Table,{children:[(0,t.jsx)(I.TableHeader,{children:(0,t.jsxs)(I.TableRow,{children:[(0,t.jsx)(I.TableHead,{children:o("coverageBuild")}),(0,t.jsx)(I.TableHead,{children:o("coverageStatus")}),(0,t.jsx)(I.TableHead,{children:o("overallCoverage")}),(0,t.jsx)(I.TableHead,{children:o("changedCoverage")}),(0,t.jsx)(I.TableHead,{children:o("generated")}),(0,t.jsx)(I.TableHead,{className:"text-right",children:o("viewReport")})]})}),(0,t.jsx)(I.TableBody,{children:r.map(e=>{let a=e.build.snapshot.configuration;return(0,t.jsxs)(I.TableRow,{children:[(0,t.jsxs)(I.TableCell,{children:[(0,t.jsx)("p",{className:"font-medium",children:a?.name??e.build.id}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:e.build.id.slice(0,8)})]}),(0,t.jsx)(I.TableCell,{children:(0,t.jsx)(w.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:o(`coverageStatuses.${e.status}`)})}),(0,t.jsx)(I.TableCell,{children:(0,t.jsx)(V,{percent:c,value:e.summary.lineCoverage})}),(0,t.jsx)(I.TableCell,{children:(0,t.jsx)(V,{percent:c,value:e.summary.changedLineCoverage})}),(0,t.jsx)(I.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(A.DateTime,{value:e.finishedAt??e.createdAt})}),(0,t.jsx)(I.TableCell,{className:"text-right",children:"READY"===e.status&&(0,t.jsx)(k.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(S.Link,{href:`/builds/${e.build.id}/coverage`,children:o("viewReport")})})})]},e.id)})})]}):(0,t.jsx)(C.CardContent,{className:"py-6 text-sm text-muted-foreground",children:o("noCoverageReports")})]})}function V({percent:e,value:a}){if("number"!=typeof a)return(0,t.jsx)(t.Fragment,{children:"—"});let r=Math.max(0,Math.min(1,a));return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 tabular-nums",children:[e(a),(0,t.jsx)("span",{"aria-hidden":"true",className:`size-3.5 shrink-0 rounded-full ring-1 ring-foreground/10 ${r>=.8?"text-emerald-500":r>=.5?"text-amber-500":"text-red-500"}`,"data-coverage-indicator":!0,style:{background:`conic-gradient(currentColor ${360*r}deg, var(--muted) 0deg)`}})]})}function F({builds:e,loadingMore:a,nextCursor:r,onError:i,onLoadMore:s,onReload:n}){let o=(0,l.useTranslations)("builds"),d=(0,S.useRouter)(),u=(0,g.useBuildTimeTicker)();return(0,t.jsxs)(C.Card,{className:"gap-0 py-0",children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:o("title")})}),e.length?(0,t.jsxs)(I.Table,{children:[(0,t.jsx)(I.TableHeader,{children:(0,t.jsxs)(I.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(I.TableHead,{children:o("build")}),(0,t.jsx)(I.TableHead,{children:o("status")}),(0,t.jsx)(I.TableHead,{children:o("action")}),(0,t.jsx)(I.TableHead,{children:o("destination")}),(0,t.jsx)(I.TableHead,{children:o("startedAt")}),(0,t.jsx)(I.TableHead,{className:"text-right",children:o("actionsLabel")})]})}),(0,t.jsx)(I.TableBody,{children:e.map(e=>{let a=e.snapshot.configuration,r=e.startedAt??e.createdAt,s="SUCCEEDED"===e.status&&e.artifacts.some(e=>"RUNNABLE_APP"===e.kind);return(0,t.jsxs)(I.TableRow,{"aria-label":o("viewBuild"),className:"cursor-pointer focus-visible:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",onClick:()=>d.push(`/builds/${e.id}`),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),d.push(`/builds/${e.id}`))},role:"link",tabIndex:0,children:[(0,t.jsxs)(I.TableCell,{className:"min-w-52 whitespace-normal",children:[(0,t.jsx)(S.Link,{className:"font-medium hover:underline",href:`/builds/${e.id}`,onClick:e=>e.stopPropagation(),children:a?.name??e.id}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:e.id})]}),(0,t.jsx)(I.TableCell,{children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsx)(w.Badge,{variant:(0,c.buildStatusVariant)(e.status),children:o(`statuses.${e.status}`)}),e.outOfDate&&(0,t.jsx)(w.Badge,{className:"border-amber-500/40 text-amber-700 dark:text-amber-300",variant:"outline",children:o("outOfDate")})]})}),(0,t.jsx)(I.TableCell,{children:(0,t.jsx)(w.Badge,{variant:"outline",children:o(`actions.${e.action}`)})}),(0,t.jsx)(I.TableCell,{children:e.destination.name}),(0,t.jsx)(I.TableCell,{className:"text-muted-foreground",children:(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)(A.DateTime,{kind:"relative",value:r}),(0,t.jsx)("span",{className:"text-xs",children:o("durationValue",{duration:(0,c.buildDuration)(e,u)})})]})}),(0,t.jsx)(I.TableCell,{className:"text-right",children:(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,t.jsx)(p.RebuildButton,{buildId:e.id,onCompleted:()=>n(),onError:i,size:"sm"}),s&&(0,t.jsx)(m.RunBuildControls,{buildId:e.id,destinationType:e.destinationType,onCompleted:n,onError:i,preferredDestination:e.destination,size:"sm"})]})})]},e.id)})})]}):(0,t.jsx)(C.CardContent,{className:"py-6 text-sm text-muted-foreground",children:o("emptyTitle")}),r&&(0,t.jsx)("div",{className:"flex justify-center border-t p-3",children:(0,t.jsxs)(k.Button,{disabled:a,onClick:()=>void s(),variant:"outline",children:[a&&(0,t.jsx)(O.Spinner,{})," ",o("loadMore")]})})]})}e.s(["WorktreeDetailPage",0,function({worktreeId:e}){let a=(0,l.useTranslations)("worktreeDetail"),[s,n]=(0,o.useState)(null),[d,c]=(0,o.useState)([]),[p,m]=(0,o.useState)(null),[h,g]=(0,o.useState)(!1),[x,f]=(0,o.useState)([]),[b,v]=(0,o.useState)(!0),[j,w]=(0,o.useState)(null),[C,I]=(0,o.useState)([]),[N,R]=(0,o.useState)(null),E=(0,o.useRef)(0),D=(0,o.useRef)(null),A=(0,o.useCallback)(async()=>{let t=++E.current;try{let a=await (0,T.controlPlaneRequest)(q,{worktreeId:e});if(t!==E.current)return;D.current=(0,U.findWorktreeOverviewEntry)(a.worktreeOverview,e)?.group.codebase.id??null,n(a.worktreeOverview),c(a.builds?.items??[]),m(a.builds?.nextCursor??null),f(a.worktreeCoverageReports??[]),w(null);try{let a=await (0,T.controlPlaneRequest)(`query GitHubWorktreeWorkflowRuns($worktreeId: ID!) {
99
- githubWorktreeWorkflowRuns(worktreeId: $worktreeId) {
100
- id workflowId repositoryGithubId codebaseRepositoryId repositoryNameWithOwner repositoryUrl
101
- name displayTitle runNumber runAttempt event status url headBranch headSha checkSuiteId
102
- canRetry retryUnavailableReason pullRequests { number url } jiraKey worktreeId startedAt createdAt updatedAt
103
- }
104
- }`,{worktreeId:e});t===E.current&&(I(a.githubWorktreeWorkflowRuns??[]),R(null))}catch(e){t===E.current&&R(e instanceof Error?e.message:String(e))}}catch(e){t===E.current&&w(e instanceof Error?e.message:String(e))}finally{t===E.current&&v(!1)}},[e]),M=(0,o.useCallback)(async()=>{if(p){g(!0);try{let t=await (0,T.controlPlaneRequest)(`query WorktreeDetailBuilds($worktreeId: ID!, $after: ID!) {
105
- builds(first: 50, after: $after, worktreeId: $worktreeId) {
106
- items { ${u.BUILD_LIST_FIELDS} }
107
- nextCursor
108
- }
109
- }`,{worktreeId:e,after:p});c(e=>{let a=new Set(e.map(e=>e.id));return[...e,...t.builds.items.filter(e=>!a.has(e.id))]}),m(t.builds.nextCursor),w(null)}catch(e){w(e instanceof Error?e.message:String(e))}finally{g(!1)}}},[p,e]);(0,o.useEffect)(()=>{D.current=null;let t=window.setTimeout(()=>void A(),0),a=window.setInterval(()=>void A(),3e4),r=(0,T.controlPlaneSubscriptions)(),i=r.subscribe({query:"subscription WorktreeDetailChanged { worktreeOverviewChanged { worktreeId codebaseId } }"},{next:t=>{let a=t.data?.worktreeOverviewChanged;a&&null!==a.worktreeId&&a.worktreeId!==e&&(null===a.codebaseId||a.codebaseId!==D.current)||A()},error:()=>void 0,complete:()=>void 0}),s=r.subscribe({query:"subscription WorktreeDetailBuildsChanged { buildsChanged { id } }"},{next:()=>void A(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),window.clearInterval(a),E.current+=1,i(),s()}},[A,e]);let B=(0,o.useMemo)(()=>s?(0,U.findWorktreeOverviewEntry)(s,e):null,[s,e]),_=(0,o.useCallback)(e=>{n(t=>t?{...t,agents:t.agents.map(t=>({...t,codebases:t.codebases.map(t=>({...t,worktrees:t.worktrees.map(t=>t.id===e.id?{...t,...e,ticketKey:e.ticketKey??t.ticketKey,ticketTitle:e.ticketTitle??t.ticketTitle,ticketStatus:e.ticketStatus??t.ticketStatus,pullRequest:e.pullRequest??t.pullRequest}:t)}))}))}:t)},[]);return b&&!s?(0,t.jsxs)("p",{className:"mx-auto flex max-w-6xl items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(O.Spinner,{})," ",a("loading")]}):s&&B?(0,t.jsx)(W,{builds:d,coverageReports:x,buildsLoadingMore:h,buildsNextCursor:p,entry:B,loadError:j,onLoadMoreBuilds:M,onPipelineCancelled:e=>I(t=>t.map(t=>t.id===e?{...t,status:"CANCELLED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",updatedAt:new Date().toISOString()}:t)),onPipelineRetried:e=>I(t=>t.map(t=>t.id===e?{...t,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"}:t)),onReload:A,onUpdate:_,overview:s,pipelines:C,pipelinesError:N},B.worktree.id):(0,t.jsxs)("section",{className:"mx-auto w-full max-w-6xl space-y-5",children:[j&&(0,t.jsx)(y.Alert,{variant:"destructive",children:(0,t.jsx)(y.AlertDescription,{children:j})}),(0,t.jsxs)(P.Empty,{className:"border py-12",children:[(0,t.jsxs)(P.EmptyHeader,{children:[(0,t.jsx)(P.EmptyMedia,{variant:"icon",children:(0,t.jsx)(i.GitBranch,{})}),(0,t.jsx)(P.EmptyTitle,{children:a("notFound")}),(0,t.jsx)(P.EmptyDescription,{children:a("notFoundDescription")})]}),(0,t.jsx)(k.Button,{asChild:!0,className:"mt-4",variant:"outline",children:(0,t.jsxs)(S.Link,{href:"/worktrees",children:[(0,t.jsx)(r.ArrowLeft,{})," ",a("back")]})})]})]})}],547)}]);
@@ -1,54 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,489002,e=>{"use strict";let t=(0,e.i(456420).default)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);e.s(["CircleStop",0,t],489002)},257428,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(820783),n=e.i(30030),i=e.i(981140),o=e.i(369340),s=e.i(635804),l=e.i(296626),d=e.i(248425),c=Object.defineProperty,u=(e,t)=>c(e,"name",{value:t,configurable:!0}),p="Checkbox",[g,f]=(0,n.createContextScope)(p),[m,h]=g(p);function x(e){let{__scopeCheckbox:a,checked:n,children:i,defaultChecked:s,disabled:l,form:d,name:c,onCheckedChange:u,required:g,value:f="on",internal_do_not_use_render:h}=e,[x,b]=(0,o.useControllableState)({prop:n,defaultProp:s??!1,onChange:u,caller:p}),[v,y]=r.useState(null),[w,R]=r.useState(null),I=r.useRef(!1),[C,S]=r.useReducer(e=>e+1,0),N=!v||!!d||!!v.closest("form"),D={checked:x,disabled:l,setChecked:b,control:v,setControl:y,name:c,form:d,value:f,hasConsumerStoppedPropagationRef:I,userInteractionCount:C,onUserInteraction:S,required:g,defaultChecked:!k(s)&&s,isFormControl:N,bubbleInput:w,setBubbleInput:R};return(0,t.jsx)(m,{scope:a,...D,children:j(h)?h(D):i})}u(x,"CheckboxProvider");var b=r.forwardRef(u(function({__scopeCheckbox:e,onKeyDown:n,onClick:o,...s},l){let{control:c,value:p,disabled:g,checked:f,required:m,setControl:x,setChecked:b,hasConsumerStoppedPropagationRef:v,onUserInteraction:y,isFormControl:w,bubbleInput:j}=h("CheckboxTrigger",e),I=(0,a.useComposedRefs)(l,x),C=r.useRef(f);return r.useEffect(()=>{let e=c?.form;if(e){let t=u(()=>b(C.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,b]),(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":k(f)?"mixed":f,"aria-required":m,"data-state":R(f),"data-disabled":g?"":void 0,disabled:g,value:p,...s,ref:I,onKeyDown:(0,i.composeEventHandlers)(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.composeEventHandlers)(o,e=>{y(),b(e=>!!k(e)||!e),j&&w&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})},"CheckboxTrigger")),v=r.forwardRef(u(function(e,r){let{__scopeCheckbox:a,name:n,checked:i,defaultChecked:o,required:s,disabled:l,value:d,onCheckedChange:c,form:u,...p}=e;return(0,t.jsx)(x,{__scopeCheckbox:a,checked:i,defaultChecked:o,disabled:l,required:s,onCheckedChange:c,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{...p,ref:r,__scopeCheckbox:a}),e&&(0,t.jsx)(w,{__scopeCheckbox:a})]})})},"Checkbox")),y=r.forwardRef(u(function(e,r){let{__scopeCheckbox:a,forceMount:n,...i}=e,o=h("CheckboxIndicator",a);return(0,t.jsx)(l.Presence,{present:n||k(o.checked)||!0===o.checked,children:(0,t.jsx)(d.Primitive.span,{"data-state":R(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:r,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),w=r.forwardRef(u(function({__scopeCheckbox:e,onClick:n,...o},l){let{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:p,checked:g,defaultChecked:f,required:m,disabled:x,name:b,value:v,form:y,bubbleInput:w,setBubbleInput:j}=h("CheckboxBubbleInput",e),R=(0,a.useComposedRefs)(l,j),I=(0,s.useSize)(c),C=r.useRef(!1),S=r.useRef(g),N=r.useRef(p);r.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=p!==N.current;N.current=p;let r=S.current!==g;S.current=g;let a=!(t&&u.current);if(r&&e){C.current=!t;let r=new Event("click",{bubbles:a});w.indeterminate=k(g),e.call(w,!k(g)&&g),w.dispatchEvent(r),C.current=!1}},[w,g,u,p]);let D=r.useRef(!k(g)&&g);return(0,t.jsx)(d.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??D.current,required:m,disabled:x,name:b,value:v,form:y,...o,tabIndex:-1,ref:R,onClick:(0,i.composeEventHandlers)(n,e=>{C.current&&e.stopPropagation()}),style:{...o.style,...I,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function j(e){return"function"==typeof e}function k(e){return"indeterminate"===e}function R(e){return k(e)?"indeterminate":e?"checked":"unchecked"}u(j,"isFunction"),u(k,"isIndeterminate"),u(R,"getState"),e.s(["Checkbox",0,v,"CheckboxIndicator",0,y,"Indicator",0,y,"Root",0,v,"createCheckboxScope",0,f,"unstable_BubbleInput",0,w,"unstable_CheckboxBubbleInput",0,w,"unstable_CheckboxProvider",0,x,"unstable_CheckboxTrigger",0,b,"unstable_Provider",0,x,"unstable_Trigger",0,b],388474);var I=e.i(388474),I=I,C=e.i(975157),S=e.i(593698);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)(I.Root,{"data-slot":"checkbox",className:(0,C.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(I.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(S.CheckIcon,{})})})}],257428)},110204,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(248425),n=Object.defineProperty,i=r.forwardRef(n(function(e,r){return(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0}));e.s(["Label",0,i,"Root",0,i],973741);var o=e.i(973741),o=o,s=e.i(975157);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(o.Root,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],110204)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(560964),a=e.i(964053),n=e.i(519455),i=e.i(975157);function o({...e}){return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function s({className:e,...r}){return(0,t.jsx)(a.Dialog.Overlay,{className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...r})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:l,showCloseButton:d=!0,...c}){return(0,t.jsxs)(o,{children:[(0,t.jsx)(s,{}),(0,t.jsxs)(a.Dialog.Content,{className:(0,i.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...c,children:[l,d&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(n.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Description,{className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...r})},"DialogFooter",0,function({className:e,showCloseButton:r=!1,children:o,...s}){return(0,t.jsxs)("div",{className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...s,children:[o,r&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,children:(0,t.jsx)(n.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...r})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},624687,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Textarea",0,function({className:e,...a}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,r.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}])},21357,e=>{"use strict";let t=(0,e.i(456420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],21357)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},328523,e=>{"use strict";let t=(0,e.i(456420).default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);e.s(["Pause",0,t],328523)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,a.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,a.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,a.cn)(n({variant:r,className:e})),...i})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},515281,e=>{"use strict";let t=(0,e.i(456420).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],515281)},9197,e=>{"use strict";var t=e.i(843476),r=e.i(328523),a=e.i(515281),n=e.i(21357),i=e.i(395925),o=e.i(856522),s=e.i(573474),l=e.i(948148),d=e.i(271645),c=e.i(929592),u=e.i(487486),p=e.i(519455),g=e.i(257428),f=e.i(776639),m=e.i(793479),h=e.i(110204),x=e.i(967489),b=e.i(987968),v=e.i(808562),y=e.i(637611);let w=`
2
- id scope codebaseRepositoryId repositoryGithubId worktreeId branch pullRequestNumber
3
- allWorkflows mode retryLimit failureStrategy status enabled lastError createdAt updatedAt
4
- targets { id workflowId workflowRunId jobName }
5
- executions { id workflowRunId workflowId targetKey status observedAttempt automaticRetries lastStatus lastError updatedAt }
6
- `;e.s(["AutoRetryDialog",0,function({codebaseRepositoryId:e,repositoryGithubId:j,currentRuns:k=[],allowFuture:R=!1,worktreeId:I,branch:C,pullRequestNumber:S,repositoryMode:N=!1,trigger:D}){let T=(0,l.useTranslations)("githubAutomation"),[A,E]=(0,d.useState)(!1),[$,P]=(0,d.useState)(!0),[z,_]=(0,d.useState)(!1),[L,G]=(0,d.useState)(null),[M,U]=(0,d.useState)([]),[H,O]=(0,d.useState)(null),[q,B]=(0,d.useState)(!1),[W,F]=(0,d.useState)([]),[V,K]=(0,d.useState)(k),[J,Q]=(0,d.useState)(N),[X,Y]=(0,d.useState)(N),[Z,ee]=(0,d.useState)(new Set),[et,er]=(0,d.useState)("FAILURE"),[ea,en]=(0,d.useState)("3"),[ei,eo]=(0,d.useState)(!1),[es,el]=(0,d.useState)("FAILED_JOBS"),ed=(0,d.useRef)(k),ec=(0,d.useRef)(!1);(0,d.useEffect)(()=>{ed.current=k},[k]);let eu=(0,d.useCallback)(async()=>{let t=await (0,y.controlPlaneRequest)(`query GitHubAutoRetryRules($codebaseRepositoryId: ID) {
7
- githubSettings { tokenConfigured }
8
- githubAppSettings { configured actionsPermission }
9
- githubAutoRetryRules(codebaseRepositoryId: $codebaseRepositoryId) { ${w} }
10
- }`,{codebaseRepositoryId:e});U(t.githubAutoRetryRules),B(t.githubSettings.tokenConfigured&&t.githubAppSettings.configured&&"write"===t.githubAppSettings.actionsPermission)},[e]),ep=(0,d.useCallback)(async()=>{F((await (0,y.controlPlaneRequest)(`query GitHubRepositoryWorkflows($codebaseRepositoryId: ID!) {
11
- githubRepositoryWorkflows(codebaseRepositoryId: $codebaseRepositoryId) {
12
- id name path state url jobNames
13
- }
14
- }`,{codebaseRepositoryId:e})).githubRepositoryWorkflows)},[e]),eg=(0,d.useCallback)(async()=>{ec.current||P(!0),G(null);try{await eu(),N&&await ep();let t=await Promise.all(ed.current.map(async t=>{if(t.jobs?.length)return t;try{let r=await (0,y.controlPlaneRequest)(`query AutoRetryWorkflowJobs($repositoryId: ID!, $workflowRunId: ID!) {
15
- githubActionsWorkflowJobs(
16
- codebaseRepositoryId: $repositoryId
17
- workflowRunId: $workflowRunId
18
- ) { id name status url canRetry retryUnavailableReason runAttempt steps { number name status } }
19
- }`,{repositoryId:e,workflowRunId:t.id});return{...t,jobs:r.githubActionsWorkflowJobs}}catch{return t}}));K(t),N||ee(e=>e.size?e:new Set(t.map(e=>`workflow:${e.id}`)))}catch(e){G(e instanceof Error?e.message:String(e))}finally{ec.current=!0,P(!1)}},[e,ep,eu,N]);(0,d.useEffect)(()=>{if(!A)return;let e=window.setTimeout(()=>void eg(),0),t=window.setInterval(()=>void eu().catch(()=>void 0),1e4);return()=>{window.clearTimeout(e),window.clearInterval(t)}},[eg,A,eu]);let ef=(0,d.useMemo)(()=>J?W.map(e=>({id:e.id,workflowId:e.id,name:e.name,jobNames:e.jobNames})):V.map(e=>({id:e.id,workflowId:e.workflowId,name:e.name,jobNames:e.jobs?.map(e=>e.name)??[]})),[J,V,W]),em=(0,d.useMemo)(()=>{let e=new Set(V.map(e=>e.id));return M.filter(t=>"WORKFLOW_RUN"===t.scope?t.targets.some(t=>t.workflowRunId&&e.has(t.workflowRunId)):N?"REPOSITORY"===t.scope:S?"PULL_REQUEST"===t.scope&&t.pullRequestNumber===S:"WORKTREE_BRANCH"===t.scope&&t.worktreeId===I)},[V,S,N,M,I]),eh=async()=>{let t=ei&&"FAILURE"===et?null:Number(ea);if(null!==t&&(!Number.isInteger(t)||t<1||t>100))return void G(T("limitError"));let r=[];for(let e of ef){let t=`workflow:${e.id}`;if(Z.has(t)){r.push({workflowId:e.workflowId,workflowRunId:J?null:e.id,jobName:null});continue}for(let t of e.jobNames)Z.has(`job:${e.id}:${t}`)&&r.push({workflowId:e.workflowId,workflowRunId:J?null:e.id,jobName:t})}if(!X&&0===r.length)return void G(T("targetRequired"));let a=N?"REPOSITORY":J&&S?"PULL_REQUEST":J?"WORKTREE_BRANCH":"WORKFLOW_RUN";_(!0);try{await (0,y.controlPlaneRequest)(`mutation SaveGitHubAutoRetryRule($input: SaveGitHubAutoRetryRuleInput!) {
20
- saveGitHubAutoRetryRule(input: $input) { ${w} }
21
- }`,{input:{id:H,scope:a,codebaseRepositoryId:e,repositoryGithubId:j??null,worktreeId:J?I??null:null,branch:J?C??null:null,pullRequestNumber:J?S??null:null,allWorkflows:J&&X,mode:et,retryLimit:t,failureStrategy:es,targets:r}}),G(null),O(null),await eu()}catch(e){G(e instanceof Error?e.message:String(e))}finally{_(!1)}},ex=async e=>{try{await (0,y.controlPlaneRequest)(`mutation SetGitHubAutoRetryRuleEnabled($id: ID!, $enabled: Boolean!) {
22
- setGitHubAutoRetryRuleEnabled(id: $id, enabled: $enabled) { id enabled status }
23
- }`,{id:e.id,enabled:!e.enabled}),await eu()}catch(e){G(e instanceof Error?e.message:String(e))}},eb=async e=>{try{await (0,y.controlPlaneRequest)("mutation DeleteGitHubAutoRetryRule($id: ID!) { deleteGitHubAutoRetryRule(id: $id) }",{id:e}),await eu()}catch(e){G(e instanceof Error?e.message:String(e))}},ev=async e=>{let t="WORKFLOW_RUN"!==e.scope;if(t&&0===W.length){P(!0),G(null);try{await ep()}catch(e){G(e instanceof Error?e.message:String(e));return}finally{P(!1)}}O(e.id),Q(t),Y(e.allWorkflows),er(e.mode),en(String(e.retryLimit??3)),eo("FAILURE"===e.mode&&null===e.retryLimit),el(e.failureStrategy),ee(new Set(e.targets.map(e=>{let r=t?e.workflowId:e.workflowRunId;return e.jobName?`job:${r}:${e.jobName}`:`workflow:${r}`})))};return(0,t.jsxs)(f.Dialog,{onOpenChange:E,open:A,children:[(0,t.jsx)(f.DialogTrigger,{asChild:!0,children:D??(0,t.jsxs)(p.Button,{size:"sm",variant:"outline",children:[(0,t.jsx)(i.RotateCcw,{})," ",T("autoRetry")]})}),(0,t.jsxs)(f.DialogContent,{className:"max-h-[90vh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsxs)(f.DialogHeader,{children:[(0,t.jsx)(f.DialogTitle,{children:T("title")}),(0,t.jsx)(f.DialogDescription,{children:T("description")})]}),L?(0,t.jsx)(c.Alert,{variant:"destructive",children:(0,t.jsx)(c.AlertDescription,{children:L})}):null,$?(0,t.jsxs)("div",{className:"flex items-center gap-2 py-6 text-sm text-muted-foreground",children:[(0,t.jsx)(b.Spinner,{})," ",T("loading")]}):(0,t.jsxs)("div",{className:"space-y-5",children:[q?null:(0,t.jsx)(c.Alert,{children:(0,t.jsx)(c.AlertDescription,{children:T("credentialsRequired")})}),R&&!N?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(h.Label,{children:T("scope")}),(0,t.jsxs)(v.ToggleGroup,{onValueChange:e=>{if(!e)return;let t="future"===e;Q(t),Y(t),t&&0===W.length&&ep().catch(e=>G(e instanceof Error?e.message:String(e))),ee(t?new Set:new Set(V.map(e=>`workflow:${e.id}`)))},type:"single",value:J?"future":"current",variant:"outline",children:[(0,t.jsx)(v.ToggleGroupItem,{value:"current",children:T("currentRuns")}),(0,t.jsx)(v.ToggleGroupItem,{value:"future",children:T("futureRuns")})]})]}):null,(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(h.Label,{children:T("targets")}),J?(0,t.jsxs)("label",{className:"flex items-center gap-2 rounded-md border p-3",children:[(0,t.jsx)(g.Checkbox,{checked:X,onCheckedChange:e=>Y(!0===e)}),(0,t.jsx)("span",{className:"font-medium",children:T("allWorkflows")})]}):null,X?null:(0,t.jsxs)("div",{className:"max-h-64 space-y-2 overflow-y-auto rounded-md border p-2",children:[ef.map(e=>(0,t.jsxs)("div",{className:"rounded-md border p-2",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(g.Checkbox,{checked:Z.has(`workflow:${e.id}`),onCheckedChange:t=>{var r,a;return r=e.id,a=!0===t,void ee(e=>{let t=new Set(e),n=`workflow:${r}`;if(a)for(let e of(t.add(n),t))e.startsWith(`job:${r}:`)&&t.delete(e);else t.delete(n);return t})}}),e.name]}),e.jobNames.length?(0,t.jsx)("div",{className:"ml-6 mt-2 space-y-1",children:e.jobNames.map(r=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(g.Checkbox,{checked:Z.has(`job:${e.id}:${r}`),onCheckedChange:t=>{var a,n;return a=e.id,n=!0===t,void ee(e=>{let t=new Set(e);t.delete(`workflow:${a}`);let i=`job:${a}:${r}`;return n?t.add(i):t.delete(i),t})}}),r]},r))}):null]},e.id)),ef.length?null:(0,t.jsx)("p",{className:"p-2 text-sm text-muted-foreground",children:T("noWorkflows")})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(h.Label,{children:T("mode")}),(0,t.jsxs)(x.Select,{value:et,onValueChange:e=>er(e),children:[(0,t.jsx)(x.SelectTrigger,{children:(0,t.jsx)(x.SelectValue,{})}),(0,t.jsxs)(x.SelectContent,{children:[(0,t.jsx)(x.SelectItem,{value:"FAILURE",children:T("failureMode")}),(0,t.jsx)(x.SelectItem,{value:"COUNT",children:T("countMode")})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(h.Label,{htmlFor:"auto-retry-limit",children:T("retryLimit")}),(0,t.jsx)(m.Input,{disabled:"FAILURE"===et&&ei,id:"auto-retry-limit",max:100,min:1,onChange:e=>en(e.target.value),type:"number",value:ea}),"FAILURE"===et?(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(g.Checkbox,{checked:ei,onCheckedChange:e=>eo(!0===e)}),T("unlimited")]}):null]})]}),"FAILURE"===et?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(h.Label,{children:T("failureStrategy")}),(0,t.jsxs)(x.Select,{value:es,onValueChange:e=>el(e),children:[(0,t.jsx)(x.SelectTrigger,{children:(0,t.jsx)(x.SelectValue,{})}),(0,t.jsxs)(x.SelectContent,{children:[(0,t.jsx)(x.SelectItem,{value:"FAILED_JOBS",children:T("failedJobs")}),(0,t.jsx)(x.SelectItem,{value:"ALL_JOBS",children:T("allJobs")})]})]})]}):null,em.length?(0,t.jsxs)("div",{className:"space-y-2 border-t pt-4",children:[(0,t.jsx)(h.Label,{children:T("savedRules")}),em.map(e=>(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-md border p-3",children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(u.Badge,{variant:e.enabled?"default":"secondary",children:T(`statuses.${e.status}`)}),(0,t.jsx)("span",{className:"text-sm font-medium",children:T(`scopes.${e.scope}`)})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:T("ruleProgress",{retries:e.executions.reduce((e,t)=>e+t.automaticRetries,0),executions:e.executions.length})}),e.lastError?(0,t.jsx)("p",{className:"text-xs text-destructive",children:e.lastError}):null]}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(p.Button,{"aria-label":T("edit"),onClick:()=>void ev(e),size:"icon-sm",variant:"ghost",children:(0,t.jsx)(a.Pencil,{})}),(0,t.jsx)(p.Button,{"aria-label":e.enabled?T("pause"):T("resume"),onClick:()=>void ex(e),size:"icon-sm",variant:"ghost",children:e.enabled?(0,t.jsx)(r.Pause,{}):(0,t.jsx)(n.Play,{})}),(0,t.jsx)(p.Button,{"aria-label":T("delete"),onClick:()=>void eb(e.id),size:"icon-sm",variant:"ghost",children:(0,t.jsx)(s.Trash2,{})})]})]},e.id))]}):null]}),(0,t.jsxs)(f.DialogFooter,{children:[(0,t.jsx)(p.Button,{onClick:()=>E(!1),variant:"outline",children:T("close")}),(0,t.jsxs)(p.Button,{disabled:$||z||!q,onClick:()=>void eh(),children:[z?(0,t.jsx)(b.Spinner,{}):(0,t.jsx)(o.Save,{})," ",T("save")]})]})]})]})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),a=e.i(758379),a=a;e.s(["Spinner",0,function({className:e,...n}){return(0,t.jsx)(a.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...n})}],987968)},929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.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:r,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,a.cn)(n({variant:r}),e),...i})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,a.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),...r})},"AlertTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,a.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.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,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.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),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(586011),n=e.i(975157);let i=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 [a]:hover:bg-emerald-500/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:o=!1,...s}){let l=o?a.Slot.Root:"span";return(0,t.jsx)(l,{className:(0,n.cn)(i({variant:r}),e),"data-slot":"badge","data-variant":r,...s})}])},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,...a}){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,r.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...a})},"TableFooter",0,function({className:e,...a}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,r.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a})},"TableHead",0,function({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...a})},"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...a})}])},26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},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])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let r=document.execCommand("copy");if(t.remove(),!r)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},808562,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030),n=e.i(248425),i=e.i(842727),o=e.i(981140),s=e.i(369340),l=Object.defineProperty,d=r.forwardRef(l(function(e,r){let{pressed:a,defaultPressed:i,onPressedChange:l,...d}=e,[c,u]=(0,s.useControllableState)({prop:a,onChange:l,defaultProp:i??!1,caller:"Toggle"});return(0,t.jsx)(n.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:r,onClick:(0,o.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0})),c=e.i(586318),u=Object.defineProperty,p=(e,t)=>u(e,"name",{value:t,configurable:!0}),g="ToggleGroup",[f,m]=(0,a.createContextScope)(g,[i.createRovingFocusGroupScope]),h=(0,i.createRovingFocusGroupScope)(),x=r.forwardRef(p(function(e,r){let{type:a,...n}=e;if("single"===a)return(0,t.jsx)(y,{role:"radiogroup",...n,ref:r});if("multiple"===a)return(0,t.jsx)(w,{role:"toolbar",...n,ref:r});throw Error(`Missing prop \`type\` expected on \`${g}\``)},"ToggleGroup")),[b,v]=f(g),y=r.forwardRef(p(function(e,a){let{value:n,defaultValue:i,onValueChange:o=p(()=>{},"onValueChange"),...l}=e,[d,c]=(0,s.useControllableState)({prop:n,defaultProp:i??"",onChange:o,caller:g});return(0,t.jsx)(b,{scope:e.__scopeToggleGroup,type:"single",value:r.useMemo(()=>d?[d]:[],[d]),onItemActivate:c,onItemDeactivate:r.useCallback(()=>c(""),[c]),children:(0,t.jsx)(R,{...l,ref:a})})},"ToggleGroupImplSingle")),w=r.forwardRef(p(function(e,a){let{value:n,defaultValue:i,onValueChange:o=p(()=>{},"onValueChange"),...l}=e,[d,c]=(0,s.useControllableState)({prop:n,defaultProp:i??[],onChange:o,caller:g}),u=r.useCallback(e=>c((t=[])=>[...t,e]),[c]),f=r.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(b,{scope:e.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:u,onItemDeactivate:f,children:(0,t.jsx)(R,{...l,ref:a})})},"ToggleGroupImplMultiple")),[j,k]=f(g),R=r.forwardRef(p(function(e,r){let{__scopeToggleGroup:a,disabled:o=!1,rovingFocus:s=!0,orientation:l,dir:d,loop:u=!0,...p}=e,g=h(a),f=(0,c.useDirection)(d),m={dir:f,...p};return(0,t.jsx)(j,{scope:a,rovingFocus:s,disabled:o,children:s?(0,t.jsx)(i.Root,{asChild:!0,...g,orientation:l,dir:f,loop:u,children:(0,t.jsx)(n.Primitive.div,{...m,ref:r})}):(0,t.jsx)(n.Primitive.div,{...m,ref:r})})},"ToggleGroupImpl")),I="ToggleGroupItem",C=r.forwardRef(p(function(e,a){let n=v(I,e.__scopeToggleGroup),o=k(I,e.__scopeToggleGroup),s=h(e.__scopeToggleGroup),l=n.value.includes(e.value),d=o.disabled||e.disabled,c={...e,pressed:l,disabled:d},u=r.useRef(null);return o.rovingFocus?(0,t.jsx)(i.Item,{asChild:!0,...s,focusable:!d,active:l,ref:u,children:(0,t.jsx)(S,{...c,ref:a})}):(0,t.jsx)(S,{...c,ref:a})},"ToggleGroupItem")),S=r.forwardRef(p(function(e,r){let{__scopeToggleGroup:a,value:n,...i}=e,o=v(I,a),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===o.type?s:void 0;return(0,t.jsx)(d,{...l,...i,ref:r,onPressedChange:e=>{e?o.onItemActivate(n):o.onItemDeactivate(n)}})},"ToggleGroupItemImpl"));e.s(["Item",0,C,"Root",0,x,"ToggleGroup",0,x,"ToggleGroupItem",0,C,"createToggleGroupScope",0,m],459881);var N=e.i(459881),N=N,D=e.i(975157),T=e.i(225913),A=Object.defineProperty,E=r.forwardRef(A(function(e,r){let{pressed:a,defaultPressed:i,onPressedChange:l,...d}=e,[c,u]=(0,s.useControllableState)({prop:a,onChange:l,defaultProp:i??!1,caller:"Toggle"});return(0,t.jsx)(n.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:r,onClick:(0,o.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0}));e.s(["Root",0,E,"Toggle",0,E],864225),e.i(864225);let $=(0,T.cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),P=r.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:r,size:a,spacing:n=2,orientation:i="horizontal",children:o,...s}){return(0,t.jsx)(N.Root,{"data-slot":"toggle-group","data-variant":r,"data-size":a,"data-spacing":n,"data-orientation":i,style:{"--gap":n},className:(0,D.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...s,children:(0,t.jsx)(P.Provider,{value:{variant:r,size:a,spacing:n,orientation:i},children:o})})},"ToggleGroupItem",0,function({className:e,children:a,variant:n="default",size:i="default",...o}){let s=r.useContext(P);return(0,t.jsx)(N.Item,{"data-slot":"toggle-group-item","data-variant":s.variant||n,"data-size":s.size||i,"data-spacing":s.spacing,className:(0,D.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",$({variant:s.variant||n,size:s.size||i}),e),...o,children:a})}],808562)},948812,e=>{"use strict";function t(e){return`${e.repositoryNameWithOwner}#${e.number}`}e.s(["pullRequestCommentsHref",0,function(e){return`/comments?pullRequest=${encodeURIComponent(t(e))}`},"pullRequestDetailHref",0,function(e){let[t="",r=""]=e.repositoryNameWithOwner.split("/");return`/pull-requests/${encodeURIComponent(t)}/${encodeURIComponent(r)}/${e.number}`},"pullRequestKey",0,t])},882505,e=>{"use strict";let t=(0,e.i(456420).default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["List",0,t],882505)},321194,567153,e=>{"use strict";var t=e.i(843476),r=e.i(861745),a=e.i(948148),n=e.i(271645),i=e.i(647776),o=e.i(799676),s=e.i(487486),l=e.i(987968),d=e.i(967489),c=e.i(637611),u=e.i(360583);e.s(["WorkflowAttemptSelect",0,function({repositoryId:e,workflowRunId:p,latestAttempt:g,onAttemptChange:f}){let m=(0,a.useTranslations)("githubAutomation"),h=(0,a.useTranslations)("pullRequests"),x=(0,r.useLocale)(),[b,v]=(0,n.useState)("latest"),[y,w]=(0,n.useState)(!1),[j,k]=(0,n.useState)(!1),[R,I]=(0,n.useState)(null),[C,S]=(0,n.useState)({}),N=(0,n.useRef)({}),D=(0,n.useRef)({}),T=(0,n.useRef)({}),A=(0,n.useRef)({});if(g<=1)return null;let E=(t,r)=>{let a=r?D:N,n=r?A:T,i=a.current[t];if(i)return Promise.resolve(i);let o=n.current[t];if(o)return o;let s=(0,c.controlPlaneRequest)(`query GitHubActionsWorkflowRunAttempt(
24
- $repositoryId: ID!
25
- $workflowRunId: ID!
26
- $attempt: Int!
27
- ) {
28
- githubActionsWorkflowRunAttempt(
29
- repositoryId: $repositoryId
30
- workflowRunId: $workflowRunId
31
- attempt: $attempt
32
- ) {
33
- workflowRunId runAttempt status url triggeringActor { login avatarUrl url } startedAt createdAt updatedAt
34
- ${r?"jobs { id name status url canRetry retryUnavailableReason runAttempt steps { number name status } }":""}
35
- }
36
- }`,{repositoryId:e,workflowRunId:p,attempt:t}).then(e=>{let n=e.githubActionsWorkflowRunAttempt;return a.current[t]=n,N.current[t]=n,r&&(D.current[t]=n),S(e=>({...e,[t]:n})),n});return n.current[t]=s,s.then(()=>delete n.current[t],()=>delete n.current[t]),s},$=async()=>{if(Array.from({length:g},(e,t)=>t+1).every(e=>N.current[e]))return;k(!0),I(null);let e=(await Promise.allSettled(Array.from({length:g},(e,t)=>E(g-t,!1)))).find(e=>"rejected"===e.status);e&&I(e.reason instanceof Error?e.reason.message:String(e.reason)),k(!1)},P=async e=>{if(v(e),I(null),"latest"===e)return void f(null);let t=Number(e);w(!0);try{f(await E(t,!0))}catch(e){I(e instanceof Error?e.message:String(e)),v("latest"),f(null)}finally{w(!1)}};return(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)(d.Select,{disabled:y,onOpenChange:e=>{e&&$()},onValueChange:e=>void P(e),value:b,children:[(0,t.jsxs)(d.SelectTrigger,{"aria-label":m("attemptSelector"),className:"h-8 w-48",children:[y?(0,t.jsx)(l.Spinner,{}):null,(0,t.jsx)(d.SelectValue,{children:"latest"===b?m("latestAttempt",{attempt:g}):m("attempt",{attempt:Number(b)})})]}),(0,t.jsx)(d.SelectContent,{align:"start",className:"w-80",position:"popper",children:Array.from({length:g},(e,t)=>g-t).map(e=>{var r;let a,n=C[e],c=n?.triggeringActor;return(0,t.jsx)(d.SelectItem,{className:"py-2",textValue:m("attempt",{attempt:e}),value:e===g?"latest":String(e),children:(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col items-start gap-1",children:[(0,t.jsxs)("span",{className:"flex w-full items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:e===g?m("latestAttempt",{attempt:e}):m("attempt",{attempt:e})}),n?(0,t.jsx)(s.Badge,{className:(0,i.pipelineStateClass)(n.status),children:h(`pipelineStates.${n.status}`)}):j?(0,t.jsx)(l.Spinner,{className:"ml-auto"}):null]}),n?(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:(r=n.startedAt,Number.isFinite((a=new Date(r)).getTime())?(0,u.formatDateValue)(a,"short",{locale:x}):r)}):null,c?(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",children:[(0,t.jsxs)(o.Avatar,{className:"size-4",children:[(0,t.jsx)(o.AvatarImage,{alt:"",src:c.avatarUrl}),(0,t.jsx)(o.AvatarFallback,{children:c.login.slice(0,1).toUpperCase()})]}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:m("attemptStartedBy",{actor:c.login})})]}):null]})},e)})})]}),R?(0,t.jsx)("p",{className:"text-xs text-destructive",children:R}):null]})}],321194);let p=(0,e.i(456420).default)("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]);var g=e.i(489002),f=e.i(482022),m=e.i(269846),h=e.i(882505),x=e.i(648119),b=e.i(395925),v=e.i(340953),y=e.i(9197),w=e.i(519455),j=e.i(755146),k=e.i(520133),R=e.i(940276);let I=new Set(["ACTION_REQUIRED","EXPECTED","IN_PROGRESS","PENDING","QUEUED"]);e.s(["WorkflowRunActionsMenu",0,function({run:e,jobs:r=[],includeAutoRetry:i=!1,includeWorktree:o=!1,onCancelled:s,onRetried:d,onError:u,viewAllHref:C}){let S=(0,a.useTranslations)("actionsPage"),N=(0,a.useTranslations)("pullRequestDetail"),D=(0,a.useTranslations)("pullRequests"),[T,A]=(0,n.useState)(!1),[E,$]=(0,n.useState)(null),[P,z]=(0,n.useState)(!1),_=async()=>{if(e.canRetry&&e.checkSuiteId){A(!0);try{await (0,c.controlPlaneRequest)(`mutation RetryGitHubPipeline(
37
- $repositoryId: ID!
38
- $checkSuiteId: ID!
39
- ) {
40
- retryGitHubPipeline(
41
- repositoryId: $repositoryId
42
- checkSuiteId: $checkSuiteId
43
- ) { id }
44
- }`,{repositoryId:e.repositoryGithubId,checkSuiteId:e.checkSuiteId}),d(),u(null)}catch(e){u(e instanceof Error?e.message:String(e))}finally{A(!1)}}},L=async t=>{if(e.codebaseRepositoryId&&I.has(e.status)&&!E){$(t?"force":"cancel");try{await (0,c.controlPlaneRequest)(`mutation CancelGitHubActionsWorkflowRun(
45
- $codebaseRepositoryId: ID!
46
- $workflowRunId: ID!
47
- $force: Boolean!
48
- ) {
49
- cancelGitHubActionsWorkflowRun(
50
- codebaseRepositoryId: $codebaseRepositoryId
51
- workflowRunId: $workflowRunId
52
- force: $force
53
- )
54
- }`,{codebaseRepositoryId:e.codebaseRepositoryId,workflowRunId:e.id,force:t}),s(),u(null)}catch(e){u(e instanceof Error?e.message:String(e))}finally{$(null)}}},G=e.retryUnavailableReason?D(`retryUnavailable.${e.retryUnavailableReason}`):void 0,M=!!e.codebaseRepositoryId&&I.has(e.status);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.DropdownMenu,{children:[(0,t.jsx)(j.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(w.Button,{"aria-label":`${S("actions")}: ${e.displayTitle}`,size:"icon-sm",variant:"outline",children:(0,t.jsx)(x.MoreHorizontal,{})})}),(0,t.jsxs)(j.DropdownMenuContent,{align:"end",className:"w-44",children:[e.url?(0,t.jsx)(j.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(f.ExternalLink,{}),S("view")]})}):(0,t.jsxs)(j.DropdownMenuItem,{disabled:!0,children:[(0,t.jsx)(f.ExternalLink,{}),S("view")]}),C?(0,t.jsx)(j.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(k.Link,{href:C,children:[(0,t.jsx)(h.List,{}),N("viewAll")]})}):null,o?e.worktreeId?(0,t.jsx)(j.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(k.Link,{href:(0,R.worktreeDetailHref)(e.worktreeId),children:[(0,t.jsx)(m.GitBranch,{}),S("worktree")]})}):(0,t.jsxs)(j.DropdownMenuItem,{disabled:!0,children:[(0,t.jsx)(m.GitBranch,{}),S("worktree")]}):null,(0,t.jsx)(j.DropdownMenuSeparator,{}),(0,t.jsxs)(j.DropdownMenuItem,{disabled:!!E||!M,onSelect:()=>void L(!1),children:["cancel"===E?(0,t.jsx)(l.Spinner,{}):(0,t.jsx)(g.CircleStop,{}),S("cancel"===E?"cancelling":"cancel")]}),(0,t.jsxs)(j.DropdownMenuItem,{disabled:!!E||!M,onSelect:()=>z(!0),variant:"destructive",children:["force"===E?(0,t.jsx)(l.Spinner,{}):(0,t.jsx)(p,{}),S("force"===E?"forceCancelling":"forceCancel")]}),(0,t.jsx)(j.DropdownMenuSeparator,{}),(0,t.jsxs)(j.DropdownMenuItem,{disabled:T||!e.canRetry||!e.checkSuiteId,onSelect:()=>void _(),title:G,children:[T?(0,t.jsx)(l.Spinner,{}):(0,t.jsx)(b.RotateCcw,{}),D(T?"retrying":"retry")]}),i&&e.codebaseRepositoryId?(0,t.jsx)(y.AutoRetryDialog,{codebaseRepositoryId:e.codebaseRepositoryId,currentRuns:[{id:e.id,workflowId:e.workflowId,name:e.name,jobs:r}],repositoryGithubId:e.repositoryGithubId,trigger:(0,t.jsxs)(j.DropdownMenuItem,{onSelect:e=>e.preventDefault(),children:[(0,t.jsx)(b.RotateCcw,{}),S("autoRetry")]})}):null]})]}),(0,t.jsx)(v.ConfirmationDialog,{actionLabel:S("forceCancel"),cancelLabel:S("keepRunning"),description:S("forceCancelDescription"),onConfirm:()=>L(!0),onOpenChange:z,open:P,title:S("forceCancelTitle")})]})},"actionsForBranchHref",0,function(e,t,r){let a=new URLSearchParams({repository:e,branch:t});return r&&a.set("pipeline",r),`/actions?${a.toString()}`}],567153)}]);
@@ -1,8 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,636162,e=>{"use strict";let t=(0,e.i(456420).default)("apple",[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]]);e.s(["Apple",0,t],636162)},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},688194,e=>{"use strict";e.s(["BUILD_CONFIGURATION_ICON_KEYS",0,["apple","app-window","archive","beaker","box","bug","code","gauge","hammer","layers","package","play","rocket","shield","smartphone","sparkles","terminal","test-tube","wrench"],"BUILD_EXPORT_METHODS",0,["DEBUGGING","RELEASE_TESTING","ENTERPRISE","APP_STORE_CONNECT"],"EXPORT_METHOD_PROFILE_TYPES",0,{DEBUGGING:"DEVELOPMENT",RELEASE_TESTING:"AD_HOC",ENTERPRISE:"ENTERPRISE",APP_STORE_CONNECT:"APP_STORE"},"profileCoversBundle",0,function(e,t){return"*"===e||(e.endsWith(".*")?t.startsWith(e.slice(0,-1)):e===t)}])},687862,52253,e=>{"use strict";var t=e.i(843476),i=e.i(688194),l=e.i(636162),a=e.i(456420);let n=(0,a.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);var s=e.i(876561);let r=(0,a.default)("beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]),d=(0,a.default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),o=(0,a.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);var c=e.i(452330);let u=(0,a.default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var h=e.i(93384);let p=(0,a.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),m=(0,a.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var g=e.i(21357);let x=(0,a.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var f=e.i(584026),v=e.i(986206),y=e.i(328623),b=e.i(604139);let j=(0,a.default)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);var S=e.i(747925);let I={apple:l.Apple,"app-window":n,archive:s.Archive,beaker:r,box:d,bug:o,code:c.Code2,gauge:u,hammer:h.Hammer,layers:p,package:m,play:g.Play,rocket:x,shield:f.ShieldCheck,smartphone:v.Smartphone,sparkles:y.Sparkles,terminal:b.Terminal,"test-tube":j,wrench:S.Wrench};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let i=I[e];return i?(0,t.jsx)(i,{"aria-hidden":!0,className:"size-4"}):null}],687862);var C=e.i(77071);let k=(0,a.default)("scan-search",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);var N=e.i(573474),A=e.i(861745),M=e.i(948148),E=e.i(271645),T=e.i(929592),P=e.i(519455),O=e.i(257428),w=e.i(793479),B=e.i(110204),V=e.i(967489),_=e.i(987968),R=e.i(637611),L=e.i(360583);e.s(["DEFAULT_EXPORT_SETTINGS",0,{method:"DEBUGGING",signingStyle:"AUTOMATIC",teamId:null,signingCertificate:null,provisioningProfiles:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1,stripSwiftSymbols:!0,thinning:null,iCloudContainerEnvironment:null,distributionBundleIdentifier:null},"ExportSettingsForm",0,function({value:e,onChange:l,onParseSigningRequirements:a,disabled:n=!1}){let s=(0,M.useTranslations)("builds"),r=(0,A.useLocale)(),[d,o]=(0,E.useState)(()=>Object.keys(e.provisioningProfiles).map(e=>({bundleId:e,name:e,target:e,platform:null,teamId:null,provisioningProfileSpecifier:null}))),[c,u]=(0,E.useState)(!1),[h,p]=(0,E.useState)(!1),[m,g]=(0,E.useState)(null),[x,f]=(0,E.useState)(""),[v,y]=(0,E.useState)(()=>new Set(Object.keys(e.provisioningProfiles))),b=(0,E.useId)(),[j,S]=(0,E.useState)(null);(0,E.useEffect)(()=>{let e=!1;return(0,R.controlPlaneRequest)(`query ExportSigningInventory {
2
- signingAgents { supported }
3
- signingCertificates { sha1 name teamId hasPrivateKey installedAgents { id } }
4
- signingProfiles {
5
- uuid name profileType bundleId teamId platforms expiresAt expired
6
- certificateSha1s installedAgents { id }
7
- }
8
- }`).then(t=>{e||S({agentCount:t.signingAgents.filter(e=>e.supported).length,certificates:t.signingCertificates,profiles:t.signingProfiles})}).catch(()=>{e||S({agentCount:0,certificates:[],profiles:[]})}),()=>{e=!0}},[]);let I=(0,E.useMemo)(()=>[...new Set([...j?.certificates??[],...j?.profiles??[]].flatMap(e=>e.teamId??[]))],[j]),U=j?.certificates.find(t=>t.sha1===e.signingCertificate),D=Object.values(e.provisioningProfiles),z=D.flatMap(e=>{let t=j?.profiles.find(t=>t.uuid===e);return t?[t]:[]}),q=D.length>0&&z.length===D.length&&z.every(e=>e.certificateSha1s.length>0),G=t=>q?z.every(e=>e.certificateSha1s.map(e=>e.toUpperCase()).includes(t.sha1.toUpperCase())):!e.teamId||t.teamId===e.teamId,H=(j?.certificates??[]).filter(e=>e.hasPrivateKey).sort((e,t)=>Number(G(t))-Number(G(e))||e.name.localeCompare(t.name)),F=H.some(t=>t.sha1===e.signingCertificate),K=(t,i)=>l({...e,[t]:i}),X=(t,l=e.teamId)=>(j?.profiles??[]).filter(a=>{var n,s;return a.profileType===i.EXPORT_METHOD_PROFILE_TYPES[e.method]&&!a.expired&&(0,i.profileCoversBundle)(a.bundleId,t.bundleId)&&(n=a.platforms,!(s=t.platform)||0===n.length||("watchOS"===s?["watchOS","iOS"]:"visionOS"===s?["visionOS","xrOS"]:[s]).some(e=>n.includes(e)))&&(!l||!a.teamId||a.teamId===l)}).sort((e,t)=>(t.expiresAt??"").localeCompare(e.expiresAt??"")),$=async()=>{if(a){p(!0),g(null);try{let t=await a(),i=new Set(t.map(e=>e.bundleId)),n=d.filter(e=>v.has(e.bundleId)&&!i.has(e.bundleId)),s=[...t,...n];o(s),y(e=>new Set([...e].filter(e=>!i.has(e)))),u(!0);let r=[...new Set(t.flatMap(e=>e.teamId??[]))],c=e.teamId??(1===r.length?r[0]:null),h=Object.fromEntries(s.flatMap(t=>{let i=X(t,c),l=e.provisioningProfiles[t.bundleId],a=t.provisioningProfileSpecifier,n=(l?j?.profiles.find(e=>e.uuid===l&&!e.expired)??l:null)??i.find(e=>e.uuid===a||e.name===a)??i[0];return n?[[t.bundleId,"string"==typeof n?n:n.uuid]]:[]}));l({...e,teamId:c,provisioningProfiles:h})}catch(e){g(e instanceof Error?e.message:String(e))}finally{p(!1)}}};return(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 rounded-xl border p-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 sm:col-span-2 sm:grid-cols-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(B.Label,{children:s("distributionMethod")}),(0,t.jsxs)(V.Select,{disabled:n,onValueChange:e=>K("method",e),value:e.method,children:[(0,t.jsx)(V.SelectTrigger,{children:(0,t.jsx)(V.SelectValue,{})}),(0,t.jsx)(V.SelectContent,{children:i.BUILD_EXPORT_METHODS.map(e=>(0,t.jsx)(V.SelectItem,{value:e,children:s(`exportMethod.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(B.Label,{children:s("signingStyle")}),(0,t.jsxs)(V.Select,{disabled:n,onValueChange:e=>K("signingStyle",e),value:e.signingStyle,children:[(0,t.jsx)(V.SelectTrigger,{children:(0,t.jsx)(V.SelectValue,{})}),(0,t.jsxs)(V.SelectContent,{children:[(0,t.jsx)(V.SelectItem,{value:"AUTOMATIC",children:s("automatic")}),(0,t.jsx)(V.SelectItem,{value:"MANUAL",children:s("manual")})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(B.Label,{children:s("developmentTeam")}),I.length?(0,t.jsxs)(V.Select,{disabled:n,onValueChange:e=>K("teamId",e),value:e.teamId??"",children:[(0,t.jsx)(V.SelectTrigger,{children:(0,t.jsx)(V.SelectValue,{placeholder:"ABCDE12345"})}),(0,t.jsx)(V.SelectContent,{children:I.map(e=>(0,t.jsx)(V.SelectItem,{value:e,children:e},e))})]}):(0,t.jsx)(w.Input,{disabled:n,onChange:e=>K("teamId",e.target.value||null),placeholder:"ABCDE12345",value:e.teamId??""})]})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsx)(B.Label,{children:s("signingCertificate")}),j?.certificates.length?(0,t.jsxs)(V.Select,{disabled:n,onValueChange:e=>K("signingCertificate","AUTOMATIC"===e?null:e),value:e.signingCertificate??"AUTOMATIC",children:[(0,t.jsx)(V.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(V.SelectValue,{})}),(0,t.jsxs)(V.SelectContent,{children:[(0,t.jsx)(V.SelectItem,{value:"AUTOMATIC",children:s("certificateAutomatic")}),e.signingCertificate&&!F&&(0,t.jsxs)(V.SelectItem,{value:e.signingCertificate,children:[e.signingCertificate," · ",s("savedValueUnavailable")]}),H.map(e=>(0,t.jsxs)(V.SelectItem,{className:G(e)?void 0:"text-muted-foreground",value:e.sha1,children:[e.name," · ",e.sha1.slice(0,10),"…",!G(e)&&` \xb7 ${s("certificateMayNotMatch")}`]},e.sha1))]})]}):(0,t.jsx)(w.Input,{disabled:n,onChange:e=>K("signingCertificate",e.target.value||null),placeholder:s("certificateAutomatic"),value:e.signingCertificate??""})]}),U&&j&&U.installedAgents.length<j.agentCount&&(0,t.jsx)(T.Alert,{className:"sm:col-span-2",children:(0,t.jsx)(T.AlertDescription,{children:s("signingAssetCoverageWarning",{installed:U.installedAgents.length,total:j.agentCount})})}),"MANUAL"===e.signingStyle&&(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(B.Label,{children:s("provisioningProfiles")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:s("parseProvisioningProfilesHelp")})]}),a&&(0,t.jsxs)(P.Button,{disabled:n||h||!j,onClick:()=>void $(),size:"sm",type:"button",variant:"outline",children:[h?(0,t.jsx)(_.Spinner,{}):(0,t.jsx)(k,{}),s(c?"reparseProvisioningProfiles":"parseProvisioningProfiles")]})]}),(0,t.jsxs)("div",{className:"grid gap-2 rounded-lg border border-dashed p-3 sm:grid-cols-[minmax(0,1fr)_auto]",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(B.Label,{htmlFor:b,children:s("manualBundleIdentifier")}),(0,t.jsx)(w.Input,{disabled:n,id:b,onChange:e=>f(e.target.value),placeholder:s("manualBundleIdentifierPlaceholder"),value:x}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:s("manualBundleIdentifierHelp")})]}),(0,t.jsxs)(P.Button,{className:"sm:self-end",disabled:n||!x.trim()||d.some(e=>e.bundleId===x.trim()),onClick:()=>{let t=x.trim();!t||d.some(e=>e.bundleId===t)||(o(i=>[...i,{bundleId:t,name:t,target:t,platform:null,teamId:e.teamId,provisioningProfileSpecifier:null}]),y(e=>new Set(e).add(t)),f(""))},type:"button",variant:"outline",children:[(0,t.jsx)(C.Plus,{}),s("addBundleIdentifier")]})]}),m&&(0,t.jsx)(T.Alert,{variant:"destructive",children:(0,t.jsx)(T.AlertDescription,{children:m})}),!d.length&&c&&(0,t.jsx)("p",{className:"rounded-lg border border-dashed p-4 text-sm text-muted-foreground",children:s("noSigningRequirements")}),!d.length&&!c&&(0,t.jsx)("p",{className:"rounded-lg border border-dashed p-4 text-sm text-muted-foreground",children:s("parseProvisioningProfilesEmpty")}),d.map(i=>{let l,a=X(i),d=new Set(a.map(e=>e.uuid)),c=(l=new Set(X(i).map(e=>e.uuid)),(j?.profiles??[]).filter(e=>!e.expired).sort((e,t)=>Number(l.has(t.uuid))-Number(l.has(e.uuid))||(t.expiresAt??"").localeCompare(e.expiresAt??"")||e.name.localeCompare(t.name))),u=e.provisioningProfiles[i.bundleId]??"",h=c.some(e=>e.uuid===u);return(0,t.jsxs)("div",{className:"rounded-lg border p-3",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:i.name}),(0,t.jsx)("p",{className:"break-all font-mono text-xs text-muted-foreground",children:i.bundleId}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:[i.target,i.platform,i.teamId].filter(Boolean).join(" · ")})]}),v.has(i.bundleId)&&(0,t.jsx)(P.Button,{"aria-label":s("removeBundleIdentifier",{bundleId:i.bundleId}),disabled:n,onClick:()=>{var t;let l;return t=i.bundleId,o(e=>e.filter(e=>e.bundleId!==t)),y(e=>{let i=new Set(e);return i.delete(t),i}),l={...e.provisioningProfiles},void(delete l[t],K("provisioningProfiles",l))},size:"icon-sm",type:"button",variant:"ghost",children:(0,t.jsx)(N.Trash2,{})})]}),(0,t.jsxs)(V.Select,{disabled:n||!j,onValueChange:t=>K("provisioningProfiles",{...e.provisioningProfiles,[i.bundleId]:t}),value:u,children:[(0,t.jsx)(V.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(V.SelectValue,{placeholder:s("selectProfile")})}),(0,t.jsxs)(V.SelectContent,{children:[u&&!h&&(0,t.jsxs)(V.SelectItem,{value:u,children:[u," · ",s("savedValueUnavailable")]}),c.map(e=>{let i;return(0,t.jsxs)(V.SelectItem,{className:d.has(e.uuid)?void 0:"text-muted-foreground",value:e.uuid,children:[(i=e.expiresAt?(0,L.formatDateValue)(e.expiresAt,"short",{locale:r,showTime:!1}):null)?`${e.name} — ${i}`:e.name,!d.has(e.uuid)&&` \xb7 ${s("profileMayNotMatch")}`]},e.uuid)})]})]}),!a.length&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:s("noMatchingProfiles")})]},i.bundleId)})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(B.Label,{children:s("thinning")}),(0,t.jsx)(w.Input,{disabled:n,onChange:e=>K("thinning",e.target.value||null),placeholder:"<none> / <thin-for-all-variants>",value:e.thinning??""})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(B.Label,{children:s("iCloudEnvironment")}),(0,t.jsxs)(V.Select,{disabled:n,onValueChange:e=>K("iCloudContainerEnvironment","NONE"===e?null:e),value:e.iCloudContainerEnvironment??"NONE",children:[(0,t.jsx)(V.SelectTrigger,{children:(0,t.jsx)(V.SelectValue,{})}),(0,t.jsxs)(V.SelectContent,{children:[(0,t.jsx)(V.SelectItem,{value:"NONE",children:"—"}),(0,t.jsx)(V.SelectItem,{value:"Development",children:"Development"}),(0,t.jsx)(V.SelectItem,{value:"Production",children:"Production"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsx)(B.Label,{children:s("distributionBundleIdentifier")}),(0,t.jsx)(w.Input,{disabled:n,onChange:e=>K("distributionBundleIdentifier",e.target.value||null),value:e.distributionBundleIdentifier??""})]}),[["uploadSymbols","uploadSymbols"],["manageAppVersionAndBuildNumber","manageBuildNumber"],["testFlightInternalTestingOnly","internalTestFlightOnly"],["stripSwiftSymbols","stripSwiftSymbols"]].map(([i,l])=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(O.Checkbox,{checked:e[i],disabled:n,onCheckedChange:e=>K(i,!!e)}),s(l)]},i)),(0,t.jsx)("p",{className:"text-xs text-muted-foreground sm:col-span-2",children:s("localExportOnly")})]})}],52253)}]);