@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
@@ -0,0 +1,92 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},37332,e=>{"use strict";e.s(["isRowActivation",0,function(e){if(e.defaultPrevented||0!==e.button)return!1;let t=e.target;return t instanceof Element&&!!e.currentTarget.contains(t)&&!t.closest("a, button, input, select, textarea, [role='button'], [role='link'], [role='menuitem']")},"rowLinkClass",0,"-mx-1.5 rounded-md px-1.5 py-0.5 transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"])},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)},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),s=e.i(225913),r=e.i(975157);let a=(0,s.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,...s}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,r.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),...s})},"EmptyDescription",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,r.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...s})},"EmptyHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,r.cn)("flex max-w-sm flex-col items-center gap-2",e),...s})},"EmptyMedia",0,function({className:e,variant:s="default",...l}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":s,className:(0,r.cn)(a({variant:s,className:e})),...l})},"EmptyTitle",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,r.cn)("font-heading text-sm font-medium tracking-tight",e),...s})}])},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),s=e.i(328523),r=e.i(515281),a=e.i(21357),l=e.i(395925),n=e.i(856522),i=e.i(573474),o=e.i(948148),c=e.i(271645),d=e.i(929592),u=e.i(487486),m=e.i(519455),p=e.i(257428),h=e.i(776639),x=e.i(793479),f=e.i(110204),b=e.i(967489),j=e.i(987968),g=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:R,currentRuns:v=[],allowFuture:k=!1,worktreeId:S,branch:I,pullRequestNumber:N,repositoryMode:C=!1,trigger:A}){let E=(0,o.useTranslations)("githubAutomation"),[$,D]=(0,c.useState)(!1),[T,P]=(0,c.useState)(!0),[L,M]=(0,c.useState)(!1),[U,O]=(0,c.useState)(null),[W,B]=(0,c.useState)([]),[H,q]=(0,c.useState)(null),[G,F]=(0,c.useState)(!1),[z,_]=(0,c.useState)([]),[J,K]=(0,c.useState)(v),[V,Q]=(0,c.useState)(C),[X,Y]=(0,c.useState)(C),[Z,ee]=(0,c.useState)(new Set),[et,es]=(0,c.useState)("FAILURE"),[er,ea]=(0,c.useState)("3"),[el,en]=(0,c.useState)(!1),[ei,eo]=(0,c.useState)("FAILED_JOBS"),ec=(0,c.useRef)(v),ed=(0,c.useRef)(!1);(0,c.useEffect)(()=>{ec.current=v},[v]);let eu=(0,c.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});B(t.githubAutoRetryRules),F(t.githubSettings.tokenConfigured&&t.githubAppSettings.configured&&"write"===t.githubAppSettings.actionsPermission)},[e]),em=(0,c.useCallback)(async()=>{_((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]),ep=(0,c.useCallback)(async()=>{ed.current||P(!0),O(null);try{await eu(),C&&await em();let t=await Promise.all(ec.current.map(async t=>{if(t.jobs?.length)return t;try{let s=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:s.githubActionsWorkflowJobs}}catch{return t}}));K(t),C||ee(e=>e.size?e:new Set(t.map(e=>`workflow:${e.id}`)))}catch(e){O(e instanceof Error?e.message:String(e))}finally{ed.current=!0,P(!1)}},[e,em,eu,C]);(0,c.useEffect)(()=>{if(!$)return;let e=window.setTimeout(()=>void ep(),0),t=window.setInterval(()=>void eu().catch(()=>void 0),1e4);return()=>{window.clearTimeout(e),window.clearInterval(t)}},[ep,$,eu]);let eh=(0,c.useMemo)(()=>V?z.map(e=>({id:e.id,workflowId:e.id,name:e.name,jobNames:e.jobNames})):J.map(e=>({id:e.id,workflowId:e.workflowId,name:e.name,jobNames:e.jobs?.map(e=>e.name)??[]})),[V,J,z]),ex=(0,c.useMemo)(()=>{let e=new Set(J.map(e=>e.id));return W.filter(t=>"WORKFLOW_RUN"===t.scope?t.targets.some(t=>t.workflowRunId&&e.has(t.workflowRunId)):C?"REPOSITORY"===t.scope:N?"PULL_REQUEST"===t.scope&&t.pullRequestNumber===N:"WORKTREE_BRANCH"===t.scope&&t.worktreeId===S)},[J,N,C,W,S]),ef=async()=>{let t=el&&"FAILURE"===et?null:Number(er);if(null!==t&&(!Number.isInteger(t)||t<1||t>100))return void O(E("limitError"));let s=[];for(let e of eh){let t=`workflow:${e.id}`;if(Z.has(t)){s.push({workflowId:e.workflowId,workflowRunId:V?null:e.id,jobName:null});continue}for(let t of e.jobNames)Z.has(`job:${e.id}:${t}`)&&s.push({workflowId:e.workflowId,workflowRunId:V?null:e.id,jobName:t})}if(!X&&0===s.length)return void O(E("targetRequired"));let r=C?"REPOSITORY":V&&N?"PULL_REQUEST":V?"WORKTREE_BRANCH":"WORKFLOW_RUN";M(!0);try{await (0,y.controlPlaneRequest)(`mutation SaveGitHubAutoRetryRule($input: SaveGitHubAutoRetryRuleInput!) {
20
+ saveGitHubAutoRetryRule(input: $input) { ${w} }
21
+ }`,{input:{id:H,scope:r,codebaseRepositoryId:e,repositoryGithubId:R??null,worktreeId:V?S??null:null,branch:V?I??null:null,pullRequestNumber:V?N??null:null,allWorkflows:V&&X,mode:et,retryLimit:t,failureStrategy:ei,targets:s}}),O(null),q(null),await eu()}catch(e){O(e instanceof Error?e.message:String(e))}finally{M(!1)}},eb=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){O(e instanceof Error?e.message:String(e))}},ej=async e=>{try{await (0,y.controlPlaneRequest)("mutation DeleteGitHubAutoRetryRule($id: ID!) { deleteGitHubAutoRetryRule(id: $id) }",{id:e}),await eu()}catch(e){O(e instanceof Error?e.message:String(e))}},eg=async e=>{let t="WORKFLOW_RUN"!==e.scope;if(t&&0===z.length){P(!0),O(null);try{await em()}catch(e){O(e instanceof Error?e.message:String(e));return}finally{P(!1)}}q(e.id),Q(t),Y(e.allWorkflows),es(e.mode),ea(String(e.retryLimit??3)),en("FAILURE"===e.mode&&null===e.retryLimit),eo(e.failureStrategy),ee(new Set(e.targets.map(e=>{let s=t?e.workflowId:e.workflowRunId;return e.jobName?`job:${s}:${e.jobName}`:`workflow:${s}`})))};return(0,t.jsxs)(h.Dialog,{onOpenChange:D,open:$,children:[(0,t.jsx)(h.DialogTrigger,{asChild:!0,children:A??(0,t.jsxs)(m.Button,{size:"sm",variant:"outline",children:[(0,t.jsx)(l.RotateCcw,{})," ",E("autoRetry")]})}),(0,t.jsxs)(h.DialogContent,{className:"max-h-[90vh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsxs)(h.DialogHeader,{children:[(0,t.jsx)(h.DialogTitle,{children:E("title")}),(0,t.jsx)(h.DialogDescription,{children:E("description")})]}),U?(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:U})}):null,T?(0,t.jsxs)("div",{className:"flex items-center gap-2 py-6 text-sm text-muted-foreground",children:[(0,t.jsx)(j.Spinner,{})," ",E("loading")]}):(0,t.jsxs)("div",{className:"space-y-5",children:[G?null:(0,t.jsx)(d.Alert,{children:(0,t.jsx)(d.AlertDescription,{children:E("credentialsRequired")})}),k&&!C?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{children:E("scope")}),(0,t.jsxs)(g.ToggleGroup,{onValueChange:e=>{if(!e)return;let t="future"===e;Q(t),Y(t),t&&0===z.length&&em().catch(e=>O(e instanceof Error?e.message:String(e))),ee(t?new Set:new Set(J.map(e=>`workflow:${e.id}`)))},type:"single",value:V?"future":"current",variant:"outline",children:[(0,t.jsx)(g.ToggleGroupItem,{value:"current",children:E("currentRuns")}),(0,t.jsx)(g.ToggleGroupItem,{value:"future",children:E("futureRuns")})]})]}):null,(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{children:E("targets")}),V?(0,t.jsxs)("label",{className:"flex items-center gap-2 rounded-md border p-3",children:[(0,t.jsx)(p.Checkbox,{checked:X,onCheckedChange:e=>Y(!0===e)}),(0,t.jsx)("span",{className:"font-medium",children:E("allWorkflows")})]}):null,X?null:(0,t.jsxs)("div",{className:"max-h-64 space-y-2 overflow-y-auto rounded-md border p-2",children:[eh.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)(p.Checkbox,{checked:Z.has(`workflow:${e.id}`),onCheckedChange:t=>{var s,r;return s=e.id,r=!0===t,void ee(e=>{let t=new Set(e),a=`workflow:${s}`;if(r)for(let e of(t.add(a),t))e.startsWith(`job:${s}:`)&&t.delete(e);else t.delete(a);return t})}}),e.name]}),e.jobNames.length?(0,t.jsx)("div",{className:"ml-6 mt-2 space-y-1",children:e.jobNames.map(s=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(p.Checkbox,{checked:Z.has(`job:${e.id}:${s}`),onCheckedChange:t=>{var r,a;return r=e.id,a=!0===t,void ee(e=>{let t=new Set(e);t.delete(`workflow:${r}`);let l=`job:${r}:${s}`;return a?t.add(l):t.delete(l),t})}}),s]},s))}):null]},e.id)),eh.length?null:(0,t.jsx)("p",{className:"p-2 text-sm text-muted-foreground",children:E("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)(f.Label,{children:E("mode")}),(0,t.jsxs)(b.Select,{value:et,onValueChange:e=>es(e),children:[(0,t.jsx)(b.SelectTrigger,{children:(0,t.jsx)(b.SelectValue,{})}),(0,t.jsxs)(b.SelectContent,{children:[(0,t.jsx)(b.SelectItem,{value:"FAILURE",children:E("failureMode")}),(0,t.jsx)(b.SelectItem,{value:"COUNT",children:E("countMode")})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{htmlFor:"auto-retry-limit",children:E("retryLimit")}),(0,t.jsx)(x.Input,{disabled:"FAILURE"===et&&el,id:"auto-retry-limit",max:100,min:1,onChange:e=>ea(e.target.value),type:"number",value:er}),"FAILURE"===et?(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(p.Checkbox,{checked:el,onCheckedChange:e=>en(!0===e)}),E("unlimited")]}):null]})]}),"FAILURE"===et?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{children:E("failureStrategy")}),(0,t.jsxs)(b.Select,{value:ei,onValueChange:e=>eo(e),children:[(0,t.jsx)(b.SelectTrigger,{children:(0,t.jsx)(b.SelectValue,{})}),(0,t.jsxs)(b.SelectContent,{children:[(0,t.jsx)(b.SelectItem,{value:"FAILED_JOBS",children:E("failedJobs")}),(0,t.jsx)(b.SelectItem,{value:"ALL_JOBS",children:E("allJobs")})]})]})]}):null,ex.length?(0,t.jsxs)("div",{className:"space-y-2 border-t pt-4",children:[(0,t.jsx)(f.Label,{children:E("savedRules")}),ex.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:E(`statuses.${e.status}`)}),(0,t.jsx)("span",{className:"text-sm font-medium",children:E(`scopes.${e.scope}`)})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:E("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)(m.Button,{"aria-label":E("edit"),onClick:()=>void eg(e),size:"icon-sm",variant:"ghost",children:(0,t.jsx)(r.Pencil,{})}),(0,t.jsx)(m.Button,{"aria-label":e.enabled?E("pause"):E("resume"),onClick:()=>void eb(e),size:"icon-sm",variant:"ghost",children:e.enabled?(0,t.jsx)(s.Pause,{}):(0,t.jsx)(a.Play,{})}),(0,t.jsx)(m.Button,{"aria-label":E("delete"),onClick:()=>void ej(e.id),size:"icon-sm",variant:"ghost",children:(0,t.jsx)(i.Trash2,{})})]})]},e.id))]}):null]}),(0,t.jsxs)(h.DialogFooter,{children:[(0,t.jsx)(m.Button,{onClick:()=>D(!1),variant:"outline",children:E("close")}),(0,t.jsxs)(m.Button,{disabled:T||L||!G,onClick:()=>void ef(),children:[L?(0,t.jsx)(j.Spinner,{}):(0,t.jsx)(n.Save,{})," ",E("save")]})]})]})]})}])},321194,567153,e=>{"use strict";var t=e.i(843476),s=e.i(861745),r=e.i(948148),a=e.i(271645),l=e.i(647776),n=e.i(799676),i=e.i(487486),o=e.i(987968),c=e.i(967489),d=e.i(637611),u=e.i(360583);e.s(["WorkflowAttemptSelect",0,function({repositoryId:e,workflowRunId:m,latestAttempt:p,onAttemptChange:h}){let x=(0,r.useTranslations)("githubAutomation"),f=(0,r.useTranslations)("pullRequests"),b=(0,s.useLocale)(),[j,g]=(0,a.useState)("latest"),[y,w]=(0,a.useState)(!1),[R,v]=(0,a.useState)(!1),[k,S]=(0,a.useState)(null),[I,N]=(0,a.useState)({}),C=(0,a.useRef)({}),A=(0,a.useRef)({}),E=(0,a.useRef)({}),$=(0,a.useRef)({});if(p<=1)return null;let D=(t,s)=>{let r=s?A:C,a=s?$:E,l=r.current[t];if(l)return Promise.resolve(l);let n=a.current[t];if(n)return n;let i=(0,d.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
+ ${s?"jobs { id name status url canRetry retryUnavailableReason runAttempt steps { number name status } }":""}
35
+ }
36
+ }`,{repositoryId:e,workflowRunId:m,attempt:t}).then(e=>{let a=e.githubActionsWorkflowRunAttempt;return r.current[t]=a,C.current[t]=a,s&&(A.current[t]=a),N(e=>({...e,[t]:a})),a});return a.current[t]=i,i.then(()=>delete a.current[t],()=>delete a.current[t]),i},T=async()=>{if(Array.from({length:p},(e,t)=>t+1).every(e=>C.current[e]))return;v(!0),S(null);let e=(await Promise.allSettled(Array.from({length:p},(e,t)=>D(p-t,!1)))).find(e=>"rejected"===e.status);e&&S(e.reason instanceof Error?e.reason.message:String(e.reason)),v(!1)},P=async e=>{if(g(e),S(null),"latest"===e)return void h(null);let t=Number(e);w(!0);try{h(await D(t,!0))}catch(e){S(e instanceof Error?e.message:String(e)),g("latest"),h(null)}finally{w(!1)}};return(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)(c.Select,{disabled:y,onOpenChange:e=>{e&&T()},onValueChange:e=>void P(e),value:j,children:[(0,t.jsxs)(c.SelectTrigger,{"aria-label":x("attemptSelector"),className:"h-8 w-48",children:[y?(0,t.jsx)(o.Spinner,{}):null,(0,t.jsx)(c.SelectValue,{children:"latest"===j?x("latestAttempt",{attempt:p}):x("attempt",{attempt:Number(j)})})]}),(0,t.jsx)(c.SelectContent,{align:"start",className:"w-80",position:"popper",children:Array.from({length:p},(e,t)=>p-t).map(e=>{var s;let r,a=I[e],d=a?.triggeringActor;return(0,t.jsx)(c.SelectItem,{className:"py-2",textValue:x("attempt",{attempt:e}),value:e===p?"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===p?x("latestAttempt",{attempt:e}):x("attempt",{attempt:e})}),a?(0,t.jsx)(i.Badge,{className:(0,l.pipelineStateClass)(a.status),children:f(`pipelineStates.${a.status}`)}):R?(0,t.jsx)(o.Spinner,{className:"ml-auto"}):null]}),a?(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:(s=a.startedAt,Number.isFinite((r=new Date(s)).getTime())?(0,u.formatDateValue)(r,"short",{locale:b}):s)}):null,d?(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground",children:[(0,t.jsxs)(n.Avatar,{className:"size-4",children:[(0,t.jsx)(n.AvatarImage,{alt:"",src:d.avatarUrl}),(0,t.jsx)(n.AvatarFallback,{children:d.login.slice(0,1).toUpperCase()})]}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:x("attemptStartedBy",{actor:d.login})})]}):null]})},e)})})]}),k?(0,t.jsx)("p",{className:"text-xs text-destructive",children:k}):null]})}],321194);let m=(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 p=e.i(489002),h=e.i(482022),x=e.i(269846),f=e.i(882505),b=e.i(648119),j=e.i(395925),g=e.i(340953),y=e.i(9197),w=e.i(519455),R=e.i(755146),v=e.i(520133),k=e.i(940276);let S=new Set(["ACTION_REQUIRED","EXPECTED","IN_PROGRESS","PENDING","QUEUED"]);e.s(["WorkflowRunActionsMenu",0,function({run:e,jobs:s=[],includeAutoRetry:l=!1,includeWorktree:n=!1,onCancelled:i,onRetried:c,onError:u,viewAllHref:I}){let N=(0,r.useTranslations)("actionsPage"),C=(0,r.useTranslations)("pullRequestDetail"),A=(0,r.useTranslations)("pullRequests"),[E,$]=(0,a.useState)(!1),[D,T]=(0,a.useState)(null),[P,L]=(0,a.useState)(!1),M=async()=>{if(e.canRetry&&e.checkSuiteId){$(!0);try{await (0,d.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}),c(),u(null)}catch(e){u(e instanceof Error?e.message:String(e))}finally{$(!1)}}},U=async t=>{if(e.codebaseRepositoryId&&S.has(e.status)&&!D){T(t?"force":"cancel");try{await (0,d.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}),i(),u(null)}catch(e){u(e instanceof Error?e.message:String(e))}finally{T(null)}}},O=e.retryUnavailableReason?A(`retryUnavailable.${e.retryUnavailableReason}`):void 0,W=!!e.codebaseRepositoryId&&S.has(e.status);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(R.DropdownMenu,{children:[(0,t.jsx)(R.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(w.Button,{"aria-label":`${N("actions")}: ${e.displayTitle}`,size:"icon-sm",variant:"outline",children:(0,t.jsx)(b.MoreHorizontal,{})})}),(0,t.jsxs)(R.DropdownMenuContent,{align:"end",className:"w-44",children:[e.url?(0,t.jsx)(R.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(h.ExternalLink,{}),N("view")]})}):(0,t.jsxs)(R.DropdownMenuItem,{disabled:!0,children:[(0,t.jsx)(h.ExternalLink,{}),N("view")]}),I?(0,t.jsx)(R.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(v.Link,{href:I,children:[(0,t.jsx)(f.List,{}),C("viewAll")]})}):null,n?e.worktreeId?(0,t.jsx)(R.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(v.Link,{href:(0,k.worktreeDetailHref)(e.worktreeId),children:[(0,t.jsx)(x.GitBranch,{}),N("worktree")]})}):(0,t.jsxs)(R.DropdownMenuItem,{disabled:!0,children:[(0,t.jsx)(x.GitBranch,{}),N("worktree")]}):null,(0,t.jsx)(R.DropdownMenuSeparator,{}),(0,t.jsxs)(R.DropdownMenuItem,{disabled:!!D||!W,onSelect:()=>void U(!1),children:["cancel"===D?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(p.CircleStop,{}),N("cancel"===D?"cancelling":"cancel")]}),(0,t.jsxs)(R.DropdownMenuItem,{disabled:!!D||!W,onSelect:()=>L(!0),variant:"destructive",children:["force"===D?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(m,{}),N("force"===D?"forceCancelling":"forceCancel")]}),(0,t.jsx)(R.DropdownMenuSeparator,{}),(0,t.jsxs)(R.DropdownMenuItem,{disabled:E||!e.canRetry||!e.checkSuiteId,onSelect:()=>void M(),title:O,children:[E?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(j.RotateCcw,{}),A(E?"retrying":"retry")]}),l&&e.codebaseRepositoryId?(0,t.jsx)(y.AutoRetryDialog,{codebaseRepositoryId:e.codebaseRepositoryId,currentRuns:[{id:e.id,workflowId:e.workflowId,name:e.name,jobs:s}],repositoryGithubId:e.repositoryGithubId,trigger:(0,t.jsxs)(R.DropdownMenuItem,{onSelect:e=>e.preventDefault(),children:[(0,t.jsx)(j.RotateCcw,{}),N("autoRetry")]})}):null]})]}),(0,t.jsx)(g.ConfirmationDialog,{actionLabel:N("forceCancel"),cancelLabel:N("keepRunning"),description:N("forceCancelDescription"),onConfirm:()=>U(!0),onOpenChange:L,open:P,title:N("forceCancelTitle")})]})},"actionsForBranchHref",0,function(e,t,s){let r=new URLSearchParams({repository:e,branch:t});return s&&r.set("pipeline",s),`/actions?${r.toString()}`}],567153)},487179,e=>{"use strict";var t=e.i(843476),s=e.i(716327),r=e.i(867927),a=e.i(482022),l=e.i(966473),n=e.i(741120),i=e.i(395925),o=e.i(263676),c=e.i(861745),d=e.i(948148),u=e.i(618566),m=e.i(271645),p=e.i(647776),h=e.i(321194),x=e.i(567153),f=e.i(948812),b=e.i(356505),j=e.i(929592),g=e.i(487486),y=e.i(519455),w=e.i(515288),R=e.i(816484),v=e.i(793479),k=e.i(82612),S=e.i(983913),I=e.i(987968),N=e.i(784774),C=e.i(520133),A=e.i(637611),E=e.i(360583),$=e.i(37332);function D(e){return`${e.codebaseRepositoryId}:${e.id}`}function T(e){let t=new URLSearchParams(window.location.search);e?t.set("issue",e):t.delete("issue");let s=t.toString();window.history.pushState(null,"",`${window.location.pathname}${s?`?${s}`:""}`)}function P(e,t,s){let r=new URLSearchParams(window.location.search);"all"===e?(r.delete("repository"),r.delete("branch"),r.delete("pipeline")):(r.set("repository",e),t?r.set("branch",t):r.delete("branch"),s&&"all"!==s?r.set("pipeline",s):r.delete("pipeline"));let a=r.toString();window.history.replaceState(null,"",`${window.location.pathname}${a?`?${a}`:""}`)}function L({runs:e,expandedRuns:l,jobStates:n,onToggleRun:i,onLoadJobs:o,onRunRetried:u,onRunCancelled:b,onJobRetried:j,onError:v}){let k=(0,d.useTranslations)("actionsPage"),S=(0,d.useTranslations)("pullRequests"),I=(0,c.useLocale)(),[A,P]=(0,m.useState)({}),U=(0,m.useMemo)(()=>{let t=new Map;for(let s of e){let e=new Date(s.createdAt),r=(0,E.dayKey)(e)??s.createdAt,a=t.get(r)??{label:(0,E.formatDateValue)(e,"long",{locale:I,showTime:!1}),items:[]};a.items.push(s),t.set(r,a)}return[...t.entries()].map(([e,t])=>({key:e,...t}))},[I,e]);return(0,t.jsx)(w.Card,{className:"gap-0 py-0",children:(0,t.jsxs)(N.Table,{children:[(0,t.jsx)(N.TableHeader,{children:(0,t.jsxs)(N.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(N.TableHead,{className:"w-10",children:(0,t.jsx)("span",{className:"sr-only",children:k("expand")})}),(0,t.jsxs)(N.TableHead,{children:[k("workflowRun")," / ",k("repository")]}),(0,t.jsx)(N.TableHead,{children:k("trigger")}),(0,t.jsx)(N.TableHead,{children:k("status")}),(0,t.jsx)(N.TableHead,{children:k("pullRequest")}),(0,t.jsx)(N.TableHead,{children:k("ticket")}),(0,t.jsx)(N.TableHead,{children:k("started")}),(0,t.jsx)(N.TableHead,{className:"text-right",children:k("actions")})]})}),(0,t.jsx)(N.TableBody,{children:U.map(e=>(0,t.jsxs)(m.Fragment,{children:[(0,t.jsx)(N.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(N.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:8,children:e.label})}),e.items.map(e=>{let c=D(e),d=l.has(c),w=n[c],I=A[c]??null,E=I?{...e,status:I.status,url:I.url,startedAt:I.startedAt,createdAt:I.createdAt,updatedAt:I.updatedAt}:e;return(0,t.jsxs)(m.Fragment,{children:[(0,t.jsxs)(N.TableRow,{className:"cursor-pointer",onClick:t=>{(0,$.isRowActivation)(t)&&i(e)},children:[(0,t.jsx)(N.TableCell,{className:"pr-0",children:(0,t.jsx)(y.Button,{"aria-expanded":d,"aria-label":k(d?"hideJobs":"showJobs",{run:e.displayTitle}),onClick:()=>i(e),size:"icon-sm",variant:"ghost",children:d?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(r.ChevronRight,{})})}),(0,t.jsxs)(N.TableCell,{className:"min-w-72 whitespace-normal",children:[(0,t.jsxs)("a",{className:"block rounded-md px-2 py-1.5 transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",href:E.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1 font-medium text-primary",children:[e.name,(0,t.jsx)(a.ExternalLink,{className:"size-3.5 shrink-0"})]}),(0,t.jsx)("span",{className:"mt-0.5 block text-sm text-foreground",children:e.displayTitle}),(0,t.jsxs)("span",{className:"mt-1 block text-xs text-muted-foreground",children:[e.repositoryNameWithOwner," ·"," ",k("runNumber",{number:e.runNumber}),e.runAttempt>1?` \xb7 ${k("attempt",{attempt:e.runAttempt})}`:""]})]}),(0,t.jsx)("div",{className:"mt-1 px-2",children:(0,t.jsx)(h.WorkflowAttemptSelect,{latestAttempt:e.runAttempt,onAttemptChange:e=>P(t=>({...t,[c]:e})),repositoryId:e.codebaseRepositoryId,workflowRunId:e.id})})]}),(0,t.jsxs)(N.TableCell,{className:"min-w-48 whitespace-normal",children:[(0,t.jsx)("p",{children:e.event}),(0,t.jsx)("p",{className:"mt-1 font-mono text-xs break-all text-muted-foreground",children:e.headBranch??e.headSha.slice(0,7)})]}),(0,t.jsx)(N.TableCell,{children:(0,t.jsx)(g.Badge,{className:(0,p.pipelineStateClass)(E.status),children:S(`pipelineStates.${E.status}`)})}),(0,t.jsx)(N.TableCell,{children:0===e.pullRequests.length?"—":(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.pullRequests.map(s=>(0,t.jsx)(g.Badge,{asChild:!0,className:"cursor-pointer hover:bg-muted/80",children:(0,t.jsxs)(C.Link,{href:(0,f.pullRequestDetailHref)({repositoryNameWithOwner:e.repositoryNameWithOwner,number:s.number}),children:["#",s.number]})},s.number))})}),(0,t.jsx)(N.TableCell,{children:e.jiraKey?(0,t.jsx)(g.Badge,{asChild:!0,className:"cursor-pointer hover:bg-primary/80",children:(0,t.jsx)("button",{onClick:()=>T(e.jiraKey),type:"button",children:e.jiraKey})}):"—"}),(0,t.jsx)(N.TableCell,{className:"text-muted-foreground",children:(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)(R.DateTime,{kind:"time",relativeToday:!0,value:E.startedAt}),(0,t.jsx)("span",{className:"text-xs",children:k("duration",{duration:function(e){let t=Date.parse(e.startedAt),s="ACTION_REQUIRED"===e.status||"EXPECTED"===e.status||"IN_PROGRESS"===e.status||"PENDING"===e.status||"QUEUED"===e.status?Date.now():Date.parse(e.updatedAt);if(!Number.isFinite(t)||!Number.isFinite(s))return"—";let r=Math.max(0,Math.floor((s-t)/1e3)),a=Math.floor(r/3600),l=Math.floor(r%3600/60),n=r%60;return a>0?`${a}h${l>0?` ${l}m`:""}`:l>0?`${l}m${n>0?` ${n}s`:""}`:`${n}s`}(E)})})]})}),(0,t.jsx)(N.TableCell,{children:(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(x.WorkflowRunActionsMenu,{includeAutoRetry:!0,includeWorktree:!0,onCancelled:()=>b(e),onError:v,onRetried:()=>u(e),run:e,jobs:w?.jobs??[]})})})]}),d&&(0,t.jsx)(N.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(N.TableCell,{className:"p-0",colSpan:8,children:(0,t.jsx)(M,{onError:v,onReload:()=>o(e),onRetried:t=>j(e,t),run:e,state:I?{loading:!1,error:null,jobs:I.jobs}:w})})})]},c)})]},e.key))})]})})}function M({run:e,state:s,onReload:r,onRetried:a,onError:l}){let i=(0,d.useTranslations)("actionsPage");return(0,t.jsxs)("div",{className:"border-l-2 border-muted-foreground/20 px-4 py-3",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:s?.jobs?i("jobCount",{count:s.jobs.length}):i("jobs")}),s?.loading&&!s.jobs?(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-3 text-sm text-muted-foreground",children:[(0,t.jsx)(I.Spinner,{})," ",i("loadingJobs")]}):s?.error?(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsxs)(j.AlertDescription,{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{children:s.error}),(0,t.jsxs)(y.Button,{onClick:r,size:"sm",variant:"outline",children:[(0,t.jsx)(n.RefreshCw,{})," ",i("retryLoad")]})]})}):s?.jobs?.length===0?(0,t.jsx)("p",{className:"px-2 py-3 text-sm text-muted-foreground",children:i("noJobs")}):s?.jobs?(0,t.jsx)("div",{className:"divide-y",children:s.jobs.map(s=>(0,t.jsx)(U,{checkSuiteId:e.checkSuiteId,job:s,onError:l,onRetried:()=>a(s.id),repositoryId:e.repositoryGithubId},s.id))}):null]})}function U({job:e,repositoryId:l,checkSuiteId:n,onRetried:o,onError:c}){let u=(0,d.useTranslations)("actionsPage"),h=(0,d.useTranslations)("pullRequests"),[x,f]=(0,m.useState)(!1),[b,j]=(0,m.useState)(!1),w=async t=>{if(t.stopPropagation(),e.canRetry&&n){j(!0);try{await (0,A.controlPlaneRequest)(`mutation RetryGitHubWorkflowJob(
55
+ $repositoryId: ID!
56
+ $checkSuiteId: ID!
57
+ $jobId: ID!
58
+ ) {
59
+ retryGitHubWorkflowJob(
60
+ repositoryId: $repositoryId
61
+ checkSuiteId: $checkSuiteId
62
+ jobId: $jobId
63
+ )
64
+ }`,{repositoryId:l,checkSuiteId:n,jobId:e.id}),o(),c(null)}catch(e){c(e instanceof Error?e.message:String(e))}finally{j(!1)}}},R=e.retryUnavailableReason?h(`retryUnavailable.${e.retryUnavailableReason}`):void 0;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":x,"aria-label":u(x?"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:()=>f(e=>!e),type:"button",children:[x?(0,t.jsx)(s.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)(g.Badge,{className:(0,p.pipelineStateClass)(e.status),children:h(`pipelineStates.${e.status}`)})]}),e.url?(0,t.jsx)(y.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[u("view"),(0,t.jsx)(a.ExternalLink,{})]})}):(0,t.jsxs)(y.Button,{disabled:!0,size:"sm",variant:"outline",children:[u("view"),(0,t.jsx)(a.ExternalLink,{})]}),(0,t.jsxs)(y.Button,{"aria-label":u("retryJob",{job:e.name}),disabled:b||!e.canRetry||!n,onClick:e=>void w(e),size:"sm",title:R,variant:"outline",children:[b?(0,t.jsx)(I.Spinner,{}):(0,t.jsx)(i.RotateCcw,{}),b?h("retrying"):h("retry")]})]}),x&&(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:u("steps")}),0===e.steps.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:u("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)(g.Badge,{className:(0,p.pipelineStateClass)(e.status),children:h(`pipelineStates.${e.status}`)})]},e.number))})]})]})}e.s(["ActionsPage",0,function(){let e=(0,d.useTranslations)("actionsPage"),s=(0,u.useSearchParams)(),r=s.get("issue"),a=(0,m.useRef)({repositoryId:s.get("repository")?.trim()||"all",branch:s.get("branch")?.trim()||"",pipeline:s.get("pipeline")?.trim()||"all"}),[i,c]=(0,m.useState)(null),[p,h]=(0,m.useState)(!0),[x,f]=(0,m.useState)([]),[g,w]=(0,m.useState)([]),[R,N]=(0,m.useState)([]),[E,$]=(0,m.useState)(a.current.repositoryId),[M,U]=(0,m.useState)("all"===a.current.repositoryId?"":a.current.branch),[O,W]=(0,m.useState)("all"===a.current.repositoryId?"":a.current.branch),[B,H]=(0,m.useState)("all"===a.current.repositoryId?"all":a.current.pipeline),[q,G]=(0,m.useState)({}),[F,z]=(0,m.useState)(null),[_,J]=(0,m.useState)(!1),[K,V]=(0,m.useState)(!1),[Q,X]=(0,m.useState)(!1),[Y,Z]=(0,m.useState)(null),[ee,et]=(0,m.useState)(null),[es,er]=(0,m.useState)(new Set),[ea,el]=(0,m.useState)({}),en=(0,m.useRef)(null),ei=(0,m.useRef)(0),eo=(0,m.useRef)(null),ec=(0,m.useCallback)(async(e,t,s,r={append:!1})=>{let a=r.append?ei.current:++ei.current;if(r.append){if(!r.cursor||eo.current===a)return;eo.current=a,X(!0),Z(null)}else eo.current=null,V(!0),X(!1),Z(null),f([]),N([]),z(null),J(!1),er(new Set),el({});try{let l=await (0,A.controlPlaneRequest)(`query GitHubActionsWorkflowRuns(
65
+ $codebaseRepositoryId: ID
66
+ $branch: String
67
+ $workflowId: ID
68
+ $first: Int!
69
+ $after: String
70
+ ) {
71
+ githubActionsWorkflowRuns(
72
+ codebaseRepositoryId: $codebaseRepositoryId
73
+ branch: $branch
74
+ workflowId: $workflowId
75
+ first: $first
76
+ after: $after
77
+ ) {
78
+ items { id workflowId repositoryGithubId codebaseRepositoryId repositoryNameWithOwner repositoryUrl name displayTitle runNumber runAttempt event status url headBranch headSha checkSuiteId canRetry retryUnavailableReason pullRequests { number url } jiraKey worktreeId startedAt createdAt updatedAt }
79
+ repositories { id nameWithOwner url }
80
+ repositoryErrors { codebaseRepositoryId nameWithOwner message }
81
+ hasNextPage
82
+ endCursor
83
+ }
84
+ }`,{codebaseRepositoryId:"all"===e?null:e,branch:"all"!==e&&t?t:null,workflowId:"all"===e||"all"===s?null:s,first:25,after:r.cursor??null});if(a!==ei.current)return;let n=l.githubActionsWorkflowRuns;if("all"!==e){let e=Object.fromEntries(n.items.map(e=>[e.workflowId,e.name]));G(t=>r.append||"all"!==s?{...t,...e}:e)}f(e=>r.append?[...e,...n.items.filter(t=>!e.some(e=>D(e)===D(t)))]:n.items),w(n.repositories),N(n.repositoryErrors),z(n.endCursor),J(n.hasNextPage),et(null),Z(null)}catch(t){if(a!==ei.current)return;let e=t instanceof Error?t.message:String(t);r.append?Z(e):et(e)}finally{r.append?eo.current===a&&(eo.current=null,X(!1)):a===ei.current&&V(!1)}},[]);(0,m.useEffect)(()=>{let e=window.setTimeout(async()=>{try{let e=await (0,A.controlPlaneRequest)("query GitHubActionsConfiguration { githubSettings { tokenConfigured defaultJiraKeyRegex updatedAt } }");if(c(e.githubSettings),et(null),e.githubSettings.tokenConfigured){let e=a.current;await ec(e.repositoryId,"all"===e.repositoryId?"":e.branch,"all"===e.repositoryId?"all":e.pipeline)}}catch(e){et(e instanceof Error?e.message:String(e))}finally{h(!1)}},0);return()=>window.clearTimeout(e)},[ec]),(0,m.useEffect)(()=>{if(!i?.tokenConfigured||!_||!F||K||Q||Y)return;let e=en.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&ec(E,M,B,{append:!0,cursor:F})},{rootMargin:"400px 0px"});return t.observe(e),()=>t.disconnect()},[F,_,ec,K,Q,Y,E,M,B,i?.tokenConfigured]);let ed=(0,m.useCallback)(async e=>{let t=D(e);el(e=>({...e,[t]:{loading:!0,error:null,jobs:e[t]?.jobs??null}}));try{let s=await (0,A.controlPlaneRequest)(`query GitHubActionsWorkflowJobs(
85
+ $codebaseRepositoryId: ID!
86
+ $workflowRunId: ID!
87
+ ) {
88
+ githubActionsWorkflowJobs(
89
+ codebaseRepositoryId: $codebaseRepositoryId
90
+ workflowRunId: $workflowRunId
91
+ ) { id name status url canRetry retryUnavailableReason steps { number name status } }
92
+ }`,{codebaseRepositoryId:e.codebaseRepositoryId,workflowRunId:e.id});el(e=>({...e,[t]:{loading:!1,error:null,jobs:s.githubActionsWorkflowJobs}}))}catch(e){el(s=>({...s,[t]:{loading:!1,error:e instanceof Error?e.message:String(e),jobs:s[t]?.jobs??null}}))}},[]),eu=[{value:"all",label:e("allRepositories"),keywords:e("allRepositories")},...g.map(e=>({value:e.id,label:e.nameWithOwner,keywords:e.nameWithOwner}))],em=new Map(Object.entries(q));"all"===B||em.has(B)||em.set(B,B);let ep=[{value:"all",label:e("allPipelines"),keywords:e("allPipelines")},...[...em.entries()].sort((e,t)=>e[1].localeCompare(t[1])).map(([e,t])=>({value:e,label:t,keywords:t}))];return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)(y.Button,{disabled:!i?.tokenConfigured||K,onClick:()=>void ec(E,M,B),variant:"outline",children:[(0,t.jsx)(n.RefreshCw,{className:K?"animate-spin":void 0}),e("refresh")]})]}),ee&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:ee})}),p?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(I.Spinner,{}),e("loadingConfiguration")]}):i?.tokenConfigured?(0,t.jsxs)(t.Fragment,{children:[g.length>0&&(0,t.jsxs)("div",{className:"grid max-w-6xl gap-3 sm:grid-cols-3",children:[(0,t.jsx)(S.SearchableSelect,{ariaLabel:e("repositoryFilter"),emptyMessage:e("noRepositoryMatches"),onValueChange:e=>{$(e),U(""),W(""),H("all"),G({}),P(e,"","all"),ec(e,"","all")},options:eu,placeholder:e("repositoryFilter"),searchPlaceholder:e("searchRepositories"),value:E}),"all"!==E&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("form",{className:"flex gap-2",onSubmit:e=>{e.preventDefault();let t=O.trim();W(t),U(t),P(E,t,B),ec(E,t,B)},children:[(0,t.jsx)(v.Input,{"aria-label":e("branchFilter"),autoCapitalize:"none",onChange:e=>W(e.target.value),placeholder:e("branchFilterPlaceholder"),spellCheck:!1,value:O}),(0,t.jsx)(y.Button,{disabled:K,type:"submit",variant:"outline",children:e("applyBranchFilter")}),(O||M)&&(0,t.jsx)(y.Button,{"aria-label":e("clearBranchFilter"),disabled:K,onClick:()=>{W(""),M&&(U(""),P(E,"",B),ec(E,"",B))},size:"icon",title:e("clearBranchFilter"),type:"button",variant:"ghost",children:(0,t.jsx)(o.X,{})})]}),(0,t.jsx)(S.SearchableSelect,{ariaLabel:e("pipelineFilter"),emptyMessage:e("noPipelineMatches"),onValueChange:e=>{H(e),P(E,M,e),ec(E,M,e)},options:ep,placeholder:e("pipelineFilter"),searchPlaceholder:e("searchPipelines"),value:B})]})]}),R.map(e=>(0,t.jsx)(j.Alert,{children:(0,t.jsxs)(j.AlertDescription,{children:[(0,t.jsxs)("span",{className:"font-medium",children:[e.nameWithOwner,":"]})," ",e.message]})},e.codebaseRepositoryId)),K&&0===x.length?(0,t.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,t.jsx)(I.Spinner,{}),e("loadingRuns")]}):0===g.length?(0,t.jsx)(k.Empty,{className:"border py-12",children:(0,t.jsxs)(k.EmptyHeader,{children:[(0,t.jsx)(k.EmptyTitle,{children:e("noCodebases")}),(0,t.jsx)(k.EmptyDescription,{children:e("noCodebasesDescription")})]})}):0===x.length?(0,t.jsx)(k.Empty,{className:"border py-12",children:(0,t.jsxs)(k.EmptyHeader,{children:[(0,t.jsx)(k.EmptyTitle,{children:e("empty")}),(0,t.jsx)(k.EmptyDescription,{children:e("emptyDescription")})]})}):(0,t.jsx)(L,{expandedRuns:es,jobStates:ea,onError:et,onRunCancelled:e=>{let t=D(e);f(e=>e.map(e=>D(e)===t?{...e,status:"CANCELLED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",updatedAt:new Date().toISOString()}:e)),el(e=>{let s={...e};return delete s[t],s}),er(e=>{let s=new Set(e);return s.delete(t),s})},onJobRetried:(e,t)=>{let s=D(e);f(e=>e.map(e=>D(e)===s?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"}:e)),el(e=>{let r=e[s];return r?.jobs?{...e,[s]:{...r,jobs:r.jobs.map(e=>e.id===t?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",steps:[]}:{...e,canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"})}}:e})},onLoadJobs:ed,onRunRetried:e=>{let t=D(e);f(e=>e.map(e=>D(e)===t?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"}:e)),el(e=>{let s={...e};return delete s[t],s}),er(e=>{let s=new Set(e);return s.delete(t),s})},onToggleRun:e=>{let t=D(e);er(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s}),es.has(t)||ea[t]||ed(e)},runs:x}),Y&&_?(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsxs)(j.AlertDescription,{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{children:Y}),(0,t.jsxs)(y.Button,{disabled:Q||!F,onClick:()=>void ec(E,M,B,{append:!0,cursor:F}),size:"sm",variant:"outline",children:[(0,t.jsx)(n.RefreshCw,{})," ",e("retryLoad")]})]})}):_?(0,t.jsx)("div",{className:"flex min-h-10 items-center justify-center gap-2 text-sm text-muted-foreground",ref:en,role:"status",children:Q&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Spinner,{})," ",e("loadingMore")]})}):null]}):(0,t.jsxs)(k.Empty,{className:"border py-12",children:[(0,t.jsxs)(k.EmptyHeader,{children:[(0,t.jsx)(k.EmptyMedia,{variant:"icon",children:(0,t.jsx)(l.PlayCircle,{})}),(0,t.jsx)(k.EmptyTitle,{children:e("credentialsRequired")}),(0,t.jsx)(k.EmptyDescription,{children:e("credentialsRequiredDescription")})]}),(0,t.jsx)(y.Button,{asChild:!0,className:"mt-4",children:(0,t.jsx)(C.Link,{href:"/settings",children:e("openSettings")})})]}),(0,t.jsx)(b.JiraTicketDrawer,{issueKey:r,onClose:()=>T(null)})]})}])}]);
@@ -1,4 +1,4 @@
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)},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)},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"])},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},390615,e=>{"use strict";var t=e.i(843476),s=e.i(711241),a=e.i(835079),i=e.i(856522),r=e.i(948148),n=e.i(271645),l=e.i(778434);let o=(0,e.i(456420).default)("circle-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]);var d=e.i(716327),c=e.i(93384),u=e.i(77071),h=e.i(741120),x=e.i(250832),p=e.i(573474),m=e.i(861745),j=e.i(929592),g=e.i(487486),v=e.i(519455),f=e.i(515288),S=e.i(257428),b=e.i(755146),y=e.i(776639),I=e.i(82612),C=e.i(793479),D=e.i(110204),N=e.i(967489),w=e.i(987968),k=e.i(624687),B=e.i(462777),T=e.i(637611),A=e.i(360583),E=e.i(687862),P=e.i(688194),R=e.i(52253);let $=`
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)},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),s=e.i(225913),a=e.i(975157);let i=(0,s.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,...s}){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),...s})},"EmptyDescription",0,function({className:e,...s}){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),...s})},"EmptyHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2",e),...s})},"EmptyMedia",0,function({className:e,variant:s="default",...r}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":s,className:(0,a.cn)(i({variant:s,className:e})),...r})},"EmptyTitle",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("font-heading text-sm font-medium tracking-tight",e),...s})}])},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)},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"])},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},390615,e=>{"use strict";var t=e.i(843476),s=e.i(711241),a=e.i(835079),i=e.i(856522),r=e.i(948148),n=e.i(271645),l=e.i(778434);let o=(0,e.i(456420).default)("circle-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]);var d=e.i(716327),c=e.i(93384),u=e.i(77071),h=e.i(741120),x=e.i(250832),p=e.i(573474),m=e.i(861745),g=e.i(929592),j=e.i(487486),v=e.i(519455),f=e.i(515288),y=e.i(257428),S=e.i(755146),b=e.i(776639),I=e.i(82612),C=e.i(793479),k=e.i(110204),N=e.i(967489),w=e.i(987968),D=e.i(624687),B=e.i(462777),T=e.i(637611),E=e.i(360583),A=e.i(687862),R=e.i(688194),P=e.i(52253);let $=`
2
2
  id type
3
3
  configurations {
4
4
  id name iconKey scheme buildConfiguration defaultAction advancedSettings autoExport exportSettings createdAt updatedAt
@@ -9,21 +9,21 @@
9
9
  position
10
10
  script { id name preBuildScript postBuildScript enabledByDefault timeoutSeconds failureBehavior }
11
11
  }
12
- `;function L({codebaseId:e,checkouts:s}){let a=(0,r.useTranslations)("builds"),i=(0,m.useLocale)(),[l,o]=(0,n.useState)(s?.find(e=>e.available)?.codebaseId??e),[d,b]=(0,n.useState)(null),[y,C]=(0,n.useState)([]),[D,k]=(0,n.useState)(null),[P,R]=(0,n.useState)(!0),[q,O]=(0,n.useState)(!1),[V,F]=(0,n.useState)(null),[U,H]=(0,n.useState)(null),[M,G]=(0,n.useState)(!1),K=(0,n.useCallback)(async()=>{try{let e=await (0,T.controlPlaneRequest)(`query IosProjectSection($codebaseId: ID!) {
12
+ `;function L({codebaseId:e,checkouts:s}){let a=(0,r.useTranslations)("builds"),i=(0,m.useLocale)(),[l,o]=(0,n.useState)(s?.find(e=>e.available)?.codebaseId??e),[d,S]=(0,n.useState)(null),[b,C]=(0,n.useState)([]),[k,D]=(0,n.useState)(null),[R,P]=(0,n.useState)(!0),[q,O]=(0,n.useState)(!1),[V,F]=(0,n.useState)(null),[H,M]=(0,n.useState)(null),[U,G]=(0,n.useState)(!1),z=(0,n.useCallback)(async()=>{try{let e=await (0,T.controlPlaneRequest)(`query IosProjectSection($codebaseId: ID!) {
13
13
  iosAppProject(codebaseId: $codebaseId) { ${$} }
14
14
  buildScripts { id name preBuildScript postBuildScript enabledByDefault timeoutSeconds failureBehavior }
15
15
  worktreeOverview {
16
16
  agents { codebases { codebase { id } worktrees { id primary } } }
17
17
  }
18
- }`,{codebaseId:l});b(e.iosAppProject),C(e.buildScripts);let t=e.worktreeOverview.agents.flatMap(e=>e.codebases).find(e=>e.codebase.id===l);k(t?.worktrees.find(e=>e.primary)?.id??t?.worktrees[0]?.id??null),F(null)}catch(e){F(e instanceof Error?e.message:String(e))}finally{R(!1)}},[l]);(0,n.useEffect)(()=>{let e=window.setTimeout(()=>void K(),0);return()=>window.clearTimeout(e)},[K]);let z=async()=>{O(!0);try{await (0,T.controlPlaneRequest)(`mutation CreateIosProject($codebaseId: ID!) {
18
+ }`,{codebaseId:l});S(e.iosAppProject),C(e.buildScripts);let t=e.worktreeOverview.agents.flatMap(e=>e.codebases).find(e=>e.codebase.id===l);D(t?.worktrees.find(e=>e.primary)?.id??t?.worktrees[0]?.id??null),F(null)}catch(e){F(e instanceof Error?e.message:String(e))}finally{P(!1)}},[l]);(0,n.useEffect)(()=>{let e=window.setTimeout(()=>void z(),0);return()=>window.clearTimeout(e)},[z]);let K=async()=>{O(!0);try{await (0,T.controlPlaneRequest)(`mutation CreateIosProject($codebaseId: ID!) {
19
19
  createIosAppProject(codebaseId: $codebaseId) { id }
20
- }`,{codebaseId:l}),await K()}catch(e){F(e instanceof Error?e.message:String(e))}finally{O(!1)}},J=async e=>{if(D){O(!0);try{await (0,T.controlPlaneRequest)(`mutation ReparseProjectConfiguration($configurationId: ID!, $worktreeId: ID!, $requestId: ID!) {
20
+ }`,{codebaseId:l}),await z()}catch(e){F(e instanceof Error?e.message:String(e))}finally{O(!1)}},J=async e=>{if(k){O(!0);try{await (0,T.controlPlaneRequest)(`mutation ReparseProjectConfiguration($configurationId: ID!, $worktreeId: ID!, $requestId: ID!) {
21
21
  reparseBuildConfiguration(configurationId: $configurationId, worktreeId: $worktreeId, requestId: $requestId) { id status }
22
- }`,{configurationId:e.id,worktreeId:D,requestId:(0,B.createClientId)()}),await K()}catch(e){F(e instanceof Error?e.message:String(e))}finally{O(!1)}}},W=async e=>{O(!0);try{await (0,T.controlPlaneRequest)("mutation DeleteBuildConfiguration($id: ID!) { deleteBuildConfiguration(id: $id) }",{id:e}),await K()}catch(e){F(e instanceof Error?e.message:String(e))}finally{O(!1)}},Y=async(e,t)=>{let s=d?.allowedScripts.map(e=>e.script.id)??[],a=t?[...s,e]:s.filter(t=>t!==e);try{await (0,T.controlPlaneRequest)(`mutation SetAllowedBuildScripts($codebaseId: ID!, $scriptIds: [ID!]!) {
22
+ }`,{configurationId:e.id,worktreeId:k,requestId:(0,B.createClientId)()}),await z()}catch(e){F(e instanceof Error?e.message:String(e))}finally{O(!1)}}},W=async e=>{O(!0);try{await (0,T.controlPlaneRequest)("mutation DeleteBuildConfiguration($id: ID!) { deleteBuildConfiguration(id: $id) }",{id:e}),await z()}catch(e){F(e instanceof Error?e.message:String(e))}finally{O(!1)}},Y=async(e,t)=>{let s=d?.allowedScripts.map(e=>e.script.id)??[],a=t?[...s,e]:s.filter(t=>t!==e);try{await (0,T.controlPlaneRequest)(`mutation SetAllowedBuildScripts($codebaseId: ID!, $scriptIds: [ID!]!) {
23
23
  setCodebaseBuildScripts(codebaseId: $codebaseId, scriptIds: $scriptIds) { id }
24
- }`,{codebaseId:l,scriptIds:a}),await K()}catch(e){F(e instanceof Error?e.message:String(e))}};return P?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(w.Spinner,{})," ",a("loading")]}):(0,t.jsxs)("div",{className:"space-y-5",children:[V&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:V})}),s&&s.length>0&&(0,t.jsxs)(f.Card,{children:[(0,t.jsx)(f.CardHeader,{children:(0,t.jsx)(f.CardTitle,{children:a("parseCheckout")})}),(0,t.jsxs)(f.CardContent,{className:"space-y-2",children:[(0,t.jsxs)(N.Select,{disabled:q,onValueChange:e=>{R(!0),o(e)},value:l,children:[(0,t.jsx)(N.SelectTrigger,{"aria-label":a("parseCheckout"),className:"w-full min-w-0",children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsx)(N.SelectContent,{children:s.map(e=>(0,t.jsxs)(N.SelectItem,{disabled:!e.available,value:e.codebaseId,children:[e.label,e.available?"":` \xb7 ${a("checkoutUnavailable")}`]},e.codebaseId))})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:a("parseCheckoutDescription")})]})]}),d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.Alert,{children:(0,t.jsx)(j.AlertDescription,{children:a("sharedProjectDescription")})}),(0,t.jsxs)(f.Card,{children:[(0,t.jsxs)(f.CardHeader,{className:"flex-row items-center justify-between",children:[(0,t.jsx)(f.CardTitle,{children:a("buildConfigurations")}),(0,t.jsxs)(v.Button,{disabled:!D,onClick:()=>{H(null),G(!0)},size:"sm",children:[(0,t.jsx)(u.Plus,{})," ",a("newConfiguration")]})]}),(0,t.jsx)(f.CardContent,{children:d.configurations.length?(0,t.jsx)("div",{className:"grid gap-3 lg:grid-cols-2",children:d.configurations.map(e=>(0,t.jsx)(f.Card,{children:(0,t.jsxs)(f.CardContent,{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(E.ConfigurationIcon,{iconKey:e.iconKey}),e.name]}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:e.source.relativePath})]}),(0,t.jsx)(g.Badge,{variant:e.observation?.status==="ERROR"||e.observation?.status==="INVALID"?"destructive":"outline",children:a(`parseStatuses.${e.observation?.status??"UNPARSED"}`)})]}),(0,t.jsxs)("div",{className:"rounded-lg border bg-muted/20 p-3 text-sm",children:[(0,t.jsxs)("p",{children:[e.scheme," ·"," ",e.buildConfiguration]}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e.observation?.lastParsedAt?a("lastParsed",{value:(0,A.formatDateValue)(e.observation.lastParsedAt,"short",{locale:i})}):a("neverParsed"),e.observation?.stale?` \xb7 ${a("stale")}`:""]}),e.observation?.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.observation.error})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsxs)(v.Button,{disabled:q||!D,onClick:()=>void J(e),size:"sm",variant:"outline",children:[(0,t.jsx)(h.RefreshCw,{})," ",a("reparse")]}),(0,t.jsxs)(v.Button,{onClick:()=>{H(e),G(!0)},size:"sm",variant:"outline",children:[(0,t.jsx)(x.Settings2,{})," ",a("edit")]}),(0,t.jsx)(v.Button,{"aria-label":a("deleteConfiguration"),disabled:q,onClick:()=>void W(e.id),size:"icon-sm",variant:"destructive",children:(0,t.jsx)(p.Trash2,{})})]})]})},e.id))}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:a("noConfigurations")})})]}),(0,t.jsxs)(f.Card,{children:[(0,t.jsx)(f.CardHeader,{children:(0,t.jsx)(f.CardTitle,{children:a("allowedScripts")})}),(0,t.jsx)(f.CardContent,{className:"space-y-2",children:y.length?y.map(e=>{let s=d.allowedScripts.some(t=>t.script.id===e.id);return(0,t.jsxs)("label",{className:"flex items-center gap-2 rounded-lg border p-2",children:[(0,t.jsx)(S.Checkbox,{checked:s,onCheckedChange:t=>void Y(e.id,!!t)}),(0,t.jsx)("span",{className:"text-sm",children:e.name}),e.enabledByDefault&&(0,t.jsx)(g.Badge,{variant:"outline",children:a("defaultEnabled")})]},e.id)}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:a("createScriptsOnBuildsPage")})})]})]}):(0,t.jsxs)(I.Empty,{className:"border py-12",children:[(0,t.jsxs)(I.EmptyHeader,{children:[(0,t.jsx)(I.EmptyMedia,{variant:"icon",children:(0,t.jsx)(c.Hammer,{})}),(0,t.jsx)(I.EmptyTitle,{children:a("addIosProject")}),(0,t.jsx)(I.EmptyDescription,{children:a("addIosProjectDescription")})]}),(0,t.jsxs)(v.Button,{disabled:q,onClick:()=>void z(),children:[q?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(u.Plus,{})," ",a("addIosProject")]})]}),M&&D&&(0,t.jsx)(_,{codebaseId:l,configuration:U,onOpenChange:G,onSaved:K,open:M,worktreeId:D})]})}function _({codebaseId:e,worktreeId:s,configuration:a,open:i,onOpenChange:l,onSaved:c}){let u=(0,r.useTranslations)("builds"),[x,p]=(0,n.useState)(a?.name??""),[m,I]=(0,n.useState)(a?.iconKey??"none"),[A,$]=(0,n.useState)([]),[L,q]=(0,n.useState)(a?.source.relativePath??""),[O,V]=(0,n.useState)(a?.source.kind??"PROJECT"),[F,U]=(0,n.useState)(a?.observation?{source:a.source,schemes:a.observation.schemes,configurations:a.observation.configurations,testPlans:a.observation.testPlans,signingRequirements:[],headSha:a.observation.headSha,xcodeVersion:a.observation.xcodeVersion}:null),[H,M]=(0,n.useState)(a?.observation?.status??"UNPARSED"),[G,K]=(0,n.useState)(a?.observation?.stale??!1),[z,J]=(0,n.useState)(a?.scheme??""),[W,Y]=(0,n.useState)(a?.buildConfiguration??""),[X,Z]=(0,n.useState)(a?.defaultAction??"BUILD"),[Q,ee]=(0,n.useState)(a?.defaultAction==="ARCHIVE"&&a.autoExport),[et,es]=(0,n.useState)({...R.DEFAULT_EXPORT_SETTINGS,...a?.exportSettings??{}}),[ea,ei]=(0,n.useState)(JSON.stringify(a?.advancedSettings??{},null,2)),[er,en]=(0,n.useState)(a?.advancedSettings?.parseTestResults!==!1),[el,eo]=(0,n.useState)("string"==typeof a?.advancedSettings?.testPlan?a.advancedSettings.testPlan:"__SCHEME_DEFAULT__"),[ed,ec]=(0,n.useState)(!1),[eu,eh]=(0,n.useState)(!1),[ex,ep]=(0,n.useState)(!1),[em,ej]=(0,n.useState)(null),eg=(0,n.useCallback)(async()=>{ec(!0);try{let e=await (0,T.controlPlaneRequest)(`mutation DiscoverBuildSources($worktreeId: ID!, $requestId: ID!) {
24
+ }`,{codebaseId:l,scriptIds:a}),await z()}catch(e){F(e instanceof Error?e.message:String(e))}};return R?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(w.Spinner,{})," ",a("loading")]}):(0,t.jsxs)("div",{className:"space-y-5",children:[V&&(0,t.jsx)(g.Alert,{variant:"destructive",children:(0,t.jsx)(g.AlertDescription,{children:V})}),s&&s.length>0&&(0,t.jsxs)(f.Card,{children:[(0,t.jsx)(f.CardHeader,{children:(0,t.jsx)(f.CardTitle,{children:a("parseCheckout")})}),(0,t.jsxs)(f.CardContent,{className:"space-y-2",children:[(0,t.jsxs)(N.Select,{disabled:q,onValueChange:e=>{P(!0),o(e)},value:l,children:[(0,t.jsx)(N.SelectTrigger,{"aria-label":a("parseCheckout"),className:"w-full min-w-0",children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsx)(N.SelectContent,{children:s.map(e=>(0,t.jsxs)(N.SelectItem,{disabled:!e.available,value:e.codebaseId,children:[e.label,e.available?"":` \xb7 ${a("checkoutUnavailable")}`]},e.codebaseId))})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:a("parseCheckoutDescription")})]})]}),d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.Alert,{children:(0,t.jsx)(g.AlertDescription,{children:a("sharedProjectDescription")})}),(0,t.jsxs)(f.Card,{children:[(0,t.jsxs)(f.CardHeader,{className:"flex-row items-center justify-between",children:[(0,t.jsx)(f.CardTitle,{children:a("buildConfigurations")}),(0,t.jsxs)(v.Button,{disabled:!k,onClick:()=>{M(null),G(!0)},size:"sm",children:[(0,t.jsx)(u.Plus,{})," ",a("newConfiguration")]})]}),(0,t.jsx)(f.CardContent,{children:d.configurations.length?(0,t.jsx)("div",{className:"grid gap-3 lg:grid-cols-2",children:d.configurations.map(e=>(0,t.jsx)(f.Card,{children:(0,t.jsxs)(f.CardContent,{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(A.ConfigurationIcon,{iconKey:e.iconKey}),e.name]}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:e.source.relativePath})]}),(0,t.jsx)(j.Badge,{variant:e.observation?.status==="ERROR"||e.observation?.status==="INVALID"?"destructive":"outline",children:a(`parseStatuses.${e.observation?.status??"UNPARSED"}`)})]}),(0,t.jsxs)("div",{className:"rounded-lg border bg-muted/20 p-3 text-sm",children:[(0,t.jsxs)("p",{children:[e.scheme," ·"," ",e.buildConfiguration]}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e.observation?.lastParsedAt?a("lastParsed",{value:(0,E.formatDateValue)(e.observation.lastParsedAt,"short",{locale:i})}):a("neverParsed"),e.observation?.stale?` \xb7 ${a("stale")}`:""]}),e.observation?.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.observation.error})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsxs)(v.Button,{disabled:q||!k,onClick:()=>void J(e),size:"sm",variant:"outline",children:[(0,t.jsx)(h.RefreshCw,{})," ",a("reparse")]}),(0,t.jsxs)(v.Button,{onClick:()=>{M(e),G(!0)},size:"sm",variant:"outline",children:[(0,t.jsx)(x.Settings2,{})," ",a("edit")]}),(0,t.jsx)(v.Button,{"aria-label":a("deleteConfiguration"),disabled:q,onClick:()=>void W(e.id),size:"icon-sm",variant:"destructive",children:(0,t.jsx)(p.Trash2,{})})]})]})},e.id))}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:a("noConfigurations")})})]}),(0,t.jsxs)(f.Card,{children:[(0,t.jsx)(f.CardHeader,{children:(0,t.jsx)(f.CardTitle,{children:a("allowedScripts")})}),(0,t.jsx)(f.CardContent,{className:"space-y-2",children:b.length?b.map(e=>{let s=d.allowedScripts.some(t=>t.script.id===e.id);return(0,t.jsxs)("label",{className:"flex items-center gap-2 rounded-lg border p-2",children:[(0,t.jsx)(y.Checkbox,{checked:s,onCheckedChange:t=>void Y(e.id,!!t)}),(0,t.jsx)("span",{className:"text-sm",children:e.name}),e.enabledByDefault&&(0,t.jsx)(j.Badge,{variant:"outline",children:a("defaultEnabled")})]},e.id)}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:a("createScriptsOnBuildsPage")})})]})]}):(0,t.jsxs)(I.Empty,{className:"border py-12",children:[(0,t.jsxs)(I.EmptyHeader,{children:[(0,t.jsx)(I.EmptyMedia,{variant:"icon",children:(0,t.jsx)(c.Hammer,{})}),(0,t.jsx)(I.EmptyTitle,{children:a("addIosProject")}),(0,t.jsx)(I.EmptyDescription,{children:a("addIosProjectDescription")})]}),(0,t.jsxs)(v.Button,{disabled:q,onClick:()=>void K(),children:[q?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(u.Plus,{})," ",a("addIosProject")]})]}),U&&k&&(0,t.jsx)(_,{codebaseId:l,configuration:H,onOpenChange:G,onSaved:z,open:U,worktreeId:k})]})}function _({codebaseId:e,worktreeId:s,configuration:a,open:i,onOpenChange:l,onSaved:c}){let u=(0,r.useTranslations)("builds"),[x,p]=(0,n.useState)(a?.name??""),[m,I]=(0,n.useState)(a?.iconKey??"none"),[E,$]=(0,n.useState)([]),[L,q]=(0,n.useState)(a?.source.relativePath??""),[O,V]=(0,n.useState)(a?.source.kind??"PROJECT"),[F,H]=(0,n.useState)(a?.observation?{source:a.source,schemes:a.observation.schemes,configurations:a.observation.configurations,testPlans:a.observation.testPlans,signingRequirements:[],headSha:a.observation.headSha,xcodeVersion:a.observation.xcodeVersion}:null),[M,U]=(0,n.useState)(a?.observation?.status??"UNPARSED"),[G,z]=(0,n.useState)(a?.observation?.stale??!1),[K,J]=(0,n.useState)(a?.scheme??""),[W,Y]=(0,n.useState)(a?.buildConfiguration??""),[X,Z]=(0,n.useState)(a?.defaultAction??"BUILD"),[Q,ee]=(0,n.useState)(a?.defaultAction==="ARCHIVE"&&a.autoExport),[et,es]=(0,n.useState)({...P.DEFAULT_EXPORT_SETTINGS,...a?.exportSettings??{}}),[ea,ei]=(0,n.useState)(JSON.stringify(a?.advancedSettings??{},null,2)),[er,en]=(0,n.useState)(a?.advancedSettings?.parseTestResults!==!1),[el,eo]=(0,n.useState)("string"==typeof a?.advancedSettings?.testPlan?a.advancedSettings.testPlan:"__SCHEME_DEFAULT__"),[ed,ec]=(0,n.useState)(!1),[eu,eh]=(0,n.useState)(!1),[ex,ep]=(0,n.useState)(!1),[em,eg]=(0,n.useState)(null),ej=(0,n.useCallback)(async()=>{ec(!0);try{let e=await (0,T.controlPlaneRequest)(`mutation DiscoverBuildSources($worktreeId: ID!, $requestId: ID!) {
25
25
  discoverBuildSources(worktreeId: $worktreeId, requestId: $requestId) { kind relativePath }
26
- }`,{worktreeId:s,requestId:(0,B.createClientId)()});$(e.discoverBuildSources)}catch(e){ej(e instanceof Error?e.message:String(e))}finally{ec(!1)}},[s]);(0,n.useEffect)(()=>{let e=window.setTimeout(()=>void eg(),0);return()=>window.clearTimeout(e)},[eg]);let ev=async(e,t)=>{eh(!0),ej(null);try{let a=await (0,T.controlPlaneRequest)(`mutation InspectBuildSource($input: InspectBuildSourceInput!) {
26
+ }`,{worktreeId:s,requestId:(0,B.createClientId)()});$(e.discoverBuildSources)}catch(e){eg(e instanceof Error?e.message:String(e))}finally{ec(!1)}},[s]);(0,n.useEffect)(()=>{let e=window.setTimeout(()=>void ej(),0);return()=>window.clearTimeout(e)},[ej]);let ev=async(e,t)=>{eh(!0),eg(null);try{let a=await (0,T.controlPlaneRequest)(`mutation InspectBuildSource($input: InspectBuildSourceInput!) {
27
27
  inspectBuildSource(input: $input) {
28
28
  source { kind relativePath }
29
29
  schemes configurations testPlans headSha xcodeVersion
@@ -31,17 +31,17 @@
31
31
  bundleId name target platform teamId provisioningProfileSpecifier
32
32
  }
33
33
  }
34
- }`,{input:{worktreeId:s,sourceKind:e.kind,sourcePath:e.relativePath,scheme:t||null,configuration:null,requestId:(0,B.createClientId)()}});U(a.inspectBuildSource),M("VALID"),K(!1),q(e.relativePath),V(e.kind),t||(J(a.inspectBuildSource.schemes[0]??z),Y(a.inspectBuildSource.configurations[0]??W))}catch(e){M("ERROR"),K(!!F),ej(e instanceof Error?e.message:String(e))}finally{eh(!1)}},ef=async()=>{if(!L||!z||!W)throw Error(u("selectSigningSourceFirst"));return(await (0,T.controlPlaneRequest)(`mutation InspectBuildSigningRequirements($input: InspectBuildSourceInput!) {
34
+ }`,{input:{worktreeId:s,sourceKind:e.kind,sourcePath:e.relativePath,scheme:t||null,configuration:null,requestId:(0,B.createClientId)()}});H(a.inspectBuildSource),U("VALID"),z(!1),q(e.relativePath),V(e.kind),t||(J(a.inspectBuildSource.schemes[0]??K),Y(a.inspectBuildSource.configurations[0]??W))}catch(e){U("ERROR"),z(!!F),eg(e instanceof Error?e.message:String(e))}finally{eh(!1)}},ef=async()=>{if(!L||!K||!W)throw Error(u("selectSigningSourceFirst"));return(await (0,T.controlPlaneRequest)(`mutation InspectBuildSigningRequirements($input: InspectBuildSourceInput!) {
35
35
  inspectBuildSource(input: $input) {
36
36
  signingRequirements {
37
37
  bundleId name target platform teamId provisioningProfileSpecifier
38
38
  }
39
39
  }
40
- }`,{input:{worktreeId:s,sourceKind:O,sourcePath:L,scheme:z,configuration:W,requestId:(0,B.createClientId)()}})).inspectBuildSource.signingRequirements},eS=async()=>{ep(!0),ej(null);try{let t;try{if(!(t=JSON.parse(ea))||"object"!=typeof t||Array.isArray(t))throw Error()}catch{throw Error(u("advancedJsonInvalid"))}t={...t,testPlan:"__SCHEME_DEFAULT__"===el?null:el,parseTestResults:er};let i=await (0,T.controlPlaneRequest)(`mutation SaveBuildConfiguration($input: SaveBuildConfigurationInput!) {
40
+ }`,{input:{worktreeId:s,sourceKind:O,sourcePath:L,scheme:K,configuration:W,requestId:(0,B.createClientId)()}})).inspectBuildSource.signingRequirements},ey=async()=>{ep(!0),eg(null);try{let t;try{if(!(t=JSON.parse(ea))||"object"!=typeof t||Array.isArray(t))throw Error()}catch{throw Error(u("advancedJsonInvalid"))}t={...t,testPlan:"__SCHEME_DEFAULT__"===el?null:el,parseTestResults:er};let i=await (0,T.controlPlaneRequest)(`mutation SaveBuildConfiguration($input: SaveBuildConfigurationInput!) {
41
41
  saveBuildConfiguration(input: $input) { id }
42
- }`,{input:{id:a?.id??null,codebaseId:e,name:x,iconKey:"none"===m?null:m,sourceKind:O,sourcePath:L,scheme:z,buildConfiguration:W,defaultAction:X,advancedSettings:t,autoExport:"ARCHIVE"===X&&Q,exportSettings:et}});await (0,T.controlPlaneRequest)(`mutation ReparseSavedBuildConfiguration($configurationId: ID!, $worktreeId: ID!, $requestId: ID!) {
42
+ }`,{input:{id:a?.id??null,codebaseId:e,name:x,iconKey:"none"===m?null:m,sourceKind:O,sourcePath:L,scheme:K,buildConfiguration:W,defaultAction:X,advancedSettings:t,autoExport:"ARCHIVE"===X&&Q,exportSettings:et}});await (0,T.controlPlaneRequest)(`mutation ReparseSavedBuildConfiguration($configurationId: ID!, $worktreeId: ID!, $requestId: ID!) {
43
43
  reparseBuildConfiguration(configurationId: $configurationId, worktreeId: $worktreeId, requestId: $requestId) { id status }
44
- }`,{configurationId:i.saveBuildConfiguration.id,worktreeId:s,requestId:(0,B.createClientId)()}),await c(),l(!1)}catch(e){ej(e instanceof Error?e.message:String(e))}finally{ep(!1)}};return(0,t.jsx)(y.Dialog,{onOpenChange:l,open:i,children:(0,t.jsxs)(y.DialogContent,{className:"max-h-[90vh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-5xl",children:[(0,t.jsxs)(y.DialogHeader,{children:[(0,t.jsx)(y.DialogTitle,{children:a?u("editConfiguration"):u("newConfiguration")}),(0,t.jsx)(y.DialogDescription,{children:u("configurationDescription")})]}),em&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:em})}),(0,t.jsxs)("div",{className:"space-y-5",children:[(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)(D.Label,{htmlFor:"configuration-name",children:u("name")}),(0,t.jsx)(C.Input,{id:"configuration-name",onChange:e=>p(e.target.value),value:x})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(D.Label,{htmlFor:"configuration-icon",children:u("icon")}),(0,t.jsxs)(b.DropdownMenu,{children:[(0,t.jsx)(b.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(v.Button,{"aria-label":`${u("icon")}: ${u(`configurationIcons.${m}`)}`,className:"justify-between",id:"configuration-icon",type:"button",variant:"outline",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:["none"===m?(0,t.jsx)(o,{className:"size-4 shrink-0"}):(0,t.jsx)(E.ConfigurationIcon,{iconKey:m}),(0,t.jsx)("span",{className:"truncate",children:u(`configurationIcons.${m}`)})]}),(0,t.jsx)(d.ChevronDown,{className:"text-muted-foreground"})]})}),(0,t.jsx)(b.DropdownMenuContent,{align:"start",className:"min-w-56",children:(0,t.jsx)(b.DropdownMenuRadioGroup,{onValueChange:I,value:m,children:["none",...P.BUILD_CONFIGURATION_ICON_KEYS].map(e=>(0,t.jsxs)(b.DropdownMenuRadioItem,{value:e,children:["none"===e?(0,t.jsx)(o,{className:"size-4"}):(0,t.jsx)(E.ConfigurationIcon,{iconKey:e}),u(`configurationIcons.${e}`)]},e))})})]})]})]}),(0,t.jsx)(f.Card,{children:(0,t.jsxs)(f.CardContent,{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:u("source")}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:L||u("selectSource")})]}),F&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[G&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:u("stale")}),(0,t.jsx)(g.Badge,{variant:"VALID"===H?"outline":"destructive",children:u(`parseStatuses.${H}`)})]})]}),(0,t.jsxs)(N.Select,{disabled:ed||eu,onValueChange:e=>{let t=A.find(t=>t.relativePath===e);t&&ev(t)},value:A.some(e=>e.relativePath===L)?L:"",children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{placeholder:ed?u("loadingSources"):u("selectSource")})}),(0,t.jsx)(N.SelectContent,{children:A.map(e=>(0,t.jsx)(N.SelectItem,{value:e.relativePath,children:e.relativePath},e.relativePath))})]}),F&&(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)(D.Label,{children:u("scheme")}),(0,t.jsxs)(N.Select,{onValueChange:e=>{J(e),ev(F.source,e)},value:z,children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsxs)(N.SelectContent,{children:[z&&!F.schemes.includes(z)&&(0,t.jsxs)(N.SelectItem,{value:z,children:[z," · ",u("savedValueUnavailable")]}),F.schemes.map(e=>(0,t.jsx)(N.SelectItem,{value:e,children:e},e))]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(D.Label,{children:u("configuration")}),(0,t.jsxs)(N.Select,{onValueChange:Y,value:W,children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsxs)(N.SelectContent,{children:[W&&!F.configurations.includes(W)&&(0,t.jsxs)(N.SelectItem,{value:W,children:[W," ·"," ",u("savedValueUnavailable")]}),F.configurations.map(e=>(0,t.jsx)(N.SelectItem,{value:e,children:e},e))]})]})]})]}),(0,t.jsxs)(v.Button,{disabled:!L||eu,onClick:()=>void ev({kind:O,relativePath:L},z),size:"sm",variant:"outline",children:[eu?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(h.RefreshCw,{})," ",u("reparse")]})]})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(D.Label,{children:u("defaultAction")}),(0,t.jsxs)(N.Select,{onValueChange:e=>{Z(e),"ARCHIVE"!==e&&ee(!1)},value:X,children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsx)(N.SelectContent,{children:["BUILD","TEST","ANALYZE","ARCHIVE","BUILD_FOR_TESTING","TEST_WITHOUT_BUILDING"].map(e=>(0,t.jsx)(N.SelectItem,{value:e,children:u(`actions.${e}`)},e))})]})]}),"ARCHIVE"===X&&(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(S.Checkbox,{checked:Q,onCheckedChange:e=>ee(!!e)}),u("autoExport")]}),Q&&(0,t.jsx)(R.ExportSettingsForm,{onChange:es,onParseSigningRequirements:ef,value:et},`${O}:${L}:${z}:${W}`)]}),["TEST","BUILD_FOR_TESTING","TEST_WITHOUT_BUILDING"].includes(X)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(D.Label,{children:u("testPlan")}),(0,t.jsxs)(N.Select,{onValueChange:eo,value:el,children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsxs)(N.SelectContent,{children:[(0,t.jsx)(N.SelectItem,{value:"__SCHEME_DEFAULT__",children:u("schemeDefaultTestPlan")}),"__SCHEME_DEFAULT__"!==el&&!F?.testPlans.includes(el)&&(0,t.jsxs)(N.SelectItem,{value:el,children:[el," · ",u("savedValueUnavailable")]}),F?.testPlans.map(e=>(0,t.jsx)(N.SelectItem,{value:e,children:e},e))]})]})]}),(0,t.jsxs)("details",{className:"rounded-xl border p-3",children:[(0,t.jsx)("summary",{className:"cursor-pointer font-medium",children:u("advancedSettings")}),(0,t.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 pb-2",children:[(0,t.jsx)(S.Checkbox,{checked:er,onCheckedChange:e=>en(!!e)}),u("parseTestResults")]}),(0,t.jsx)(D.Label,{htmlFor:"configuration-advanced-json",children:u("advancedJson")}),(0,t.jsx)(k.Textarea,{className:"font-mono text-xs",id:"configuration-advanced-json",onChange:e=>ei(e.target.value),rows:10,value:ea})]})]})]}),(0,t.jsxs)(y.DialogFooter,{children:[(0,t.jsx)(v.Button,{onClick:()=>l(!1),variant:"outline",children:u("cancel")}),(0,t.jsxs)(v.Button,{disabled:ex||eu||!x.trim()||!L||!z||!W,onClick:()=>void eS(),children:[ex&&(0,t.jsx)(w.Spinner,{})," ",u("save")]})]})]})})}var q=e.i(9197),O=e.i(677572),V=e.i(520133);let F=`
44
+ }`,{configurationId:i.saveBuildConfiguration.id,worktreeId:s,requestId:(0,B.createClientId)()}),await c(),l(!1)}catch(e){eg(e instanceof Error?e.message:String(e))}finally{ep(!1)}};return(0,t.jsx)(b.Dialog,{onOpenChange:l,open:i,children:(0,t.jsxs)(b.DialogContent,{className:"max-h-[90vh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-5xl",children:[(0,t.jsxs)(b.DialogHeader,{children:[(0,t.jsx)(b.DialogTitle,{children:a?u("editConfiguration"):u("newConfiguration")}),(0,t.jsx)(b.DialogDescription,{children:u("configurationDescription")})]}),em&&(0,t.jsx)(g.Alert,{variant:"destructive",children:(0,t.jsx)(g.AlertDescription,{children:em})}),(0,t.jsxs)("div",{className:"space-y-5",children:[(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)(k.Label,{htmlFor:"configuration-name",children:u("name")}),(0,t.jsx)(C.Input,{id:"configuration-name",onChange:e=>p(e.target.value),value:x})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Label,{htmlFor:"configuration-icon",children:u("icon")}),(0,t.jsxs)(S.DropdownMenu,{children:[(0,t.jsx)(S.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(v.Button,{"aria-label":`${u("icon")}: ${u(`configurationIcons.${m}`)}`,className:"justify-between",id:"configuration-icon",type:"button",variant:"outline",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:["none"===m?(0,t.jsx)(o,{className:"size-4 shrink-0"}):(0,t.jsx)(A.ConfigurationIcon,{iconKey:m}),(0,t.jsx)("span",{className:"truncate",children:u(`configurationIcons.${m}`)})]}),(0,t.jsx)(d.ChevronDown,{className:"text-muted-foreground"})]})}),(0,t.jsx)(S.DropdownMenuContent,{align:"start",className:"min-w-56",children:(0,t.jsx)(S.DropdownMenuRadioGroup,{onValueChange:I,value:m,children:["none",...R.BUILD_CONFIGURATION_ICON_KEYS].map(e=>(0,t.jsxs)(S.DropdownMenuRadioItem,{value:e,children:["none"===e?(0,t.jsx)(o,{className:"size-4"}):(0,t.jsx)(A.ConfigurationIcon,{iconKey:e}),u(`configurationIcons.${e}`)]},e))})})]})]})]}),(0,t.jsx)(f.Card,{children:(0,t.jsxs)(f.CardContent,{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:u("source")}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:L||u("selectSource")})]}),F&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[G&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:u("stale")}),(0,t.jsx)(j.Badge,{variant:"VALID"===M?"outline":"destructive",children:u(`parseStatuses.${M}`)})]})]}),(0,t.jsxs)(N.Select,{disabled:ed||eu,onValueChange:e=>{let t=E.find(t=>t.relativePath===e);t&&ev(t)},value:E.some(e=>e.relativePath===L)?L:"",children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{placeholder:ed?u("loadingSources"):u("selectSource")})}),(0,t.jsx)(N.SelectContent,{children:E.map(e=>(0,t.jsx)(N.SelectItem,{value:e.relativePath,children:e.relativePath},e.relativePath))})]}),F&&(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)(k.Label,{children:u("scheme")}),(0,t.jsxs)(N.Select,{onValueChange:e=>{J(e),ev(F.source,e)},value:K,children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsxs)(N.SelectContent,{children:[K&&!F.schemes.includes(K)&&(0,t.jsxs)(N.SelectItem,{value:K,children:[K," · ",u("savedValueUnavailable")]}),F.schemes.map(e=>(0,t.jsx)(N.SelectItem,{value:e,children:e},e))]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Label,{children:u("configuration")}),(0,t.jsxs)(N.Select,{onValueChange:Y,value:W,children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsxs)(N.SelectContent,{children:[W&&!F.configurations.includes(W)&&(0,t.jsxs)(N.SelectItem,{value:W,children:[W," ·"," ",u("savedValueUnavailable")]}),F.configurations.map(e=>(0,t.jsx)(N.SelectItem,{value:e,children:e},e))]})]})]})]}),(0,t.jsxs)(v.Button,{disabled:!L||eu,onClick:()=>void ev({kind:O,relativePath:L},K),size:"sm",variant:"outline",children:[eu?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(h.RefreshCw,{})," ",u("reparse")]})]})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Label,{children:u("defaultAction")}),(0,t.jsxs)(N.Select,{onValueChange:e=>{Z(e),"ARCHIVE"!==e&&ee(!1)},value:X,children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsx)(N.SelectContent,{children:["BUILD","TEST","ANALYZE","ARCHIVE","BUILD_FOR_TESTING","TEST_WITHOUT_BUILDING"].map(e=>(0,t.jsx)(N.SelectItem,{value:e,children:u(`actions.${e}`)},e))})]})]}),"ARCHIVE"===X&&(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(y.Checkbox,{checked:Q,onCheckedChange:e=>ee(!!e)}),u("autoExport")]}),Q&&(0,t.jsx)(P.ExportSettingsForm,{onChange:es,onParseSigningRequirements:ef,value:et},`${O}:${L}:${K}:${W}`)]}),["TEST","BUILD_FOR_TESTING","TEST_WITHOUT_BUILDING"].includes(X)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Label,{children:u("testPlan")}),(0,t.jsxs)(N.Select,{onValueChange:eo,value:el,children:[(0,t.jsx)(N.SelectTrigger,{children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsxs)(N.SelectContent,{children:[(0,t.jsx)(N.SelectItem,{value:"__SCHEME_DEFAULT__",children:u("schemeDefaultTestPlan")}),"__SCHEME_DEFAULT__"!==el&&!F?.testPlans.includes(el)&&(0,t.jsxs)(N.SelectItem,{value:el,children:[el," · ",u("savedValueUnavailable")]}),F?.testPlans.map(e=>(0,t.jsx)(N.SelectItem,{value:e,children:e},e))]})]})]}),(0,t.jsxs)("details",{className:"rounded-xl border p-3",children:[(0,t.jsx)("summary",{className:"cursor-pointer font-medium",children:u("advancedSettings")}),(0,t.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 pb-2",children:[(0,t.jsx)(y.Checkbox,{checked:er,onCheckedChange:e=>en(!!e)}),u("parseTestResults")]}),(0,t.jsx)(k.Label,{htmlFor:"configuration-advanced-json",children:u("advancedJson")}),(0,t.jsx)(D.Textarea,{className:"font-mono text-xs",id:"configuration-advanced-json",onChange:e=>ei(e.target.value),rows:10,value:ea})]})]})]}),(0,t.jsxs)(b.DialogFooter,{children:[(0,t.jsx)(v.Button,{onClick:()=>l(!1),variant:"outline",children:u("cancel")}),(0,t.jsxs)(v.Button,{disabled:ex||eu||!x.trim()||!L||!K||!W,onClick:()=>void ey(),children:[ex&&(0,t.jsx)(w.Spinner,{})," ",u("save")]})]})]})})}var q=e.i(9197),O=e.i(677572),V=e.i(520133);let F=`
45
45
  id canonicalOrigin displayOrigin name description jiraBranchRegex keepBaseBranchUpToDate createdAt updatedAt
46
46
  skillGroups { id name }
47
47
  codebases {
@@ -50,11 +50,11 @@
50
50
  agent { ${l.AGENT_FIELDS} }
51
51
  activeJob { ${l.JOB_FIELDS} }
52
52
  }
53
- `;e.s(["RepositoryDetailPage",0,function({repositoryId:e}){let l=(0,r.useTranslations)("codebases"),o=(0,r.useTranslations)("builds"),[d,c]=(0,n.useState)(null),[u,h]=(0,n.useState)([]),[x,p]=(0,n.useState)(!0),[m,g]=(0,n.useState)(!1),[b,y]=(0,n.useState)(null),[N,B]=(0,n.useState)(null),[A,E]=(0,n.useState)(""),[P,R]=(0,n.useState)(""),[$,_]=(0,n.useState)(""),[U,H]=(0,n.useState)(!0),[M,G]=(0,n.useState)([]),K=(0,n.useCallback)(e=>{c(e),E(e.name),R(e.description),_(e.jiraBranchRegex??""),H(e.keepBaseBranchUpToDate),G(e.skillGroups?.map(e=>e.id)??[])},[]),z=(0,n.useCallback)(async()=>{try{let t=await (0,T.controlPlaneRequest)(`query RepositoryDetail($id: ID!) {
53
+ `;e.s(["RepositoryDetailPage",0,function({repositoryId:e}){let l=(0,r.useTranslations)("codebases"),o=(0,r.useTranslations)("builds"),[d,c]=(0,n.useState)(null),[u,h]=(0,n.useState)([]),[x,p]=(0,n.useState)(!0),[m,j]=(0,n.useState)(!1),[S,b]=(0,n.useState)(null),[N,B]=(0,n.useState)(null),[E,A]=(0,n.useState)(""),[R,P]=(0,n.useState)(""),[$,_]=(0,n.useState)(""),[H,M]=(0,n.useState)(!0),[U,G]=(0,n.useState)([]),z=(0,n.useCallback)(e=>{c(e),A(e.name),P(e.description),_(e.jiraBranchRegex??""),M(e.keepBaseBranchUpToDate),G(e.skillGroups?.map(e=>e.id)??[])},[]),K=(0,n.useCallback)(async()=>{try{let t=await (0,T.controlPlaneRequest)(`query RepositoryDetail($id: ID!) {
54
54
  codebaseRepository(id: $id) { ${F} }
55
55
  skillsOverview { groups { id name } }
56
- }`,{id:e});t.codebaseRepository?K(t.codebaseRepository):c(null),h(t.skillsOverview?.groups??[]),y(null)}catch(e){y(e instanceof Error?e.message:String(e))}finally{p(!1)}},[K,e]);(0,n.useEffect)(()=>{let t=window.setTimeout(()=>void z(),0),s=(0,T.controlPlaneSubscriptions)().subscribe({query:`subscription RepositoryDetailChanged {
56
+ }`,{id:e});t.codebaseRepository?z(t.codebaseRepository):c(null),h(t.skillsOverview?.groups??[]),b(null)}catch(e){b(e instanceof Error?e.message:String(e))}finally{p(!1)}},[z,e]);(0,n.useEffect)(()=>{let t=window.setTimeout(()=>void K(),0),s=(0,T.controlPlaneSubscriptions)().subscribe({query:`subscription RepositoryDetailChanged {
57
57
  codebaseOverviewChanged { repositoryId }
58
- }`},{next:t=>{let s=t.data?.codebaseOverviewChanged;s&&s.repositoryId!==e||z()},error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),s()}},[z,e]);let J=async e=>{if(e.preventDefault(),d){g(!0),y(null),B(null);try{await (0,T.controlPlaneRequest)(`mutation UpdateCodebaseRepository($input: UpdateCodebaseRepositoryInput!) {
58
+ }`},{next:t=>{let s=t.data?.codebaseOverviewChanged;s&&s.repositoryId!==e||K()},error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),s()}},[K,e]);let J=async e=>{if(e.preventDefault(),d){j(!0),b(null),B(null);try{await (0,T.controlPlaneRequest)(`mutation UpdateCodebaseRepository($input: UpdateCodebaseRepositoryInput!) {
59
59
  updateCodebaseRepository(input: $input) { id }
60
- }`,{input:{id:d.id,name:A,description:P,jiraBranchRegex:$||null,keepBaseBranchUpToDate:U,skillGroupIds:M}}),await z(),B(l("repositorySaved"))}catch(e){y(e instanceof Error?e.message:String(e))}finally{g(!1)}}};if(x)return(0,t.jsxs)("p",{className:"mx-auto flex max-w-6xl items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(w.Spinner,{})," ",l("loadingRepository")]});if(!d)return(0,t.jsxs)(I.Empty,{className:"mx-auto max-w-6xl border py-12",children:[(0,t.jsxs)(I.EmptyHeader,{children:[(0,t.jsx)(I.EmptyMedia,{variant:"icon",children:(0,t.jsx)(a.FolderGit2,{})}),(0,t.jsx)(I.EmptyTitle,{children:l("repositoryNotFound")}),(0,t.jsx)(I.EmptyDescription,{children:l("repositoryNotFoundDescription")})]}),(0,t.jsx)(v.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(V.Link,{href:"/codebases",children:[(0,t.jsx)(s.ArrowLeft,{})," ",l("backToCodebases")]})})]});let W=d.codebases.map(e=>({codebaseId:e.id,label:`${e.agent.name} \xb7 ${e.folder}`,available:"ONLINE"===e.agent.connectionStatus&&"AVAILABLE"===e.availability}));return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-6xl flex-col gap-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)(v.Button,{asChild:!0,className:"-ml-2",size:"sm",variant:"ghost",children:(0,t.jsxs)(V.Link,{href:"/codebases",children:[(0,t.jsx)(s.ArrowLeft,{})," ",l("backToCodebases")]})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:l("editTitle")}),(0,t.jsx)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:d.displayOrigin}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:l("repositorySharedDescription")})]}),b&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:b})}),N&&(0,t.jsx)(j.Alert,{children:(0,t.jsx)(j.AlertDescription,{children:N})}),(0,t.jsxs)(O.Tabs,{defaultValue:"details",children:[(0,t.jsxs)(O.TabsList,{children:[(0,t.jsx)(O.TabsTrigger,{value:"details",children:l("repositoryDetails")}),(0,t.jsx)(O.TabsTrigger,{value:"ios-app",children:o("iosApp")}),(0,t.jsx)(O.TabsTrigger,{value:"auto-retry",children:l("autoRetry")})]}),(0,t.jsx)(O.TabsContent,{value:"details",children:(0,t.jsx)("form",{className:"space-y-5",onSubmit:J,children:(0,t.jsxs)(f.Card,{children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:l("repositoryDetails")}),(0,t.jsx)(f.CardDescription,{children:l("repositoryDetailsDescription")})]}),(0,t.jsxs)(f.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(D.Label,{htmlFor:"repository-name",children:l("name")}),(0,t.jsx)(C.Input,{id:"repository-name",maxLength:120,onChange:e=>E(e.target.value),required:!0,value:A})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(D.Label,{htmlFor:"repository-jira-regex",children:l("jiraBranchRegex")}),(0,t.jsx)(C.Input,{id:"repository-jira-regex",onChange:e=>_(e.target.value),placeholder:l("inheritDefaultRegex"),value:$}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("jiraBranchRegexHelp")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(D.Label,{htmlFor:"repository-description",children:l("repositoryDescription")}),(0,t.jsx)(k.Textarea,{id:"repository-description",maxLength:2e3,onChange:e=>R(e.target.value),value:P})]}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border p-3",children:[(0,t.jsx)(S.Checkbox,{checked:U,className:"mt-0.5",id:"repository-keep-base-branch-up-to-date",onCheckedChange:e=>H(!0===e)}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(D.Label,{htmlFor:"repository-keep-base-branch-up-to-date",children:l("keepBaseBranchUpToDate")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("keepBaseBranchUpToDateHelp")})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(D.Label,{children:l("skillGroups")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("skillGroupsHelp")}),(0,t.jsxs)("div",{className:"max-h-56 space-y-1 overflow-auto rounded-lg border p-2",children:[u.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-muted",children:[(0,t.jsx)(S.Checkbox,{checked:M.includes(e.id),onCheckedChange:t=>G(s=>!0===t?[...new Set([...s,e.id])]:s.filter(t=>t!==e.id))}),e.name]},e.id)),!u.length&&(0,t.jsx)("p",{className:"px-2 py-1 text-sm text-muted-foreground",children:l("noSkillGroups")})]})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(v.Button,{disabled:m||!A.trim(),type:"submit",children:[m?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(i.Save,{})," ",l("save")]})})]})]})})}),(0,t.jsx)(O.TabsContent,{value:"ios-app",children:(0,t.jsx)(L,{checkouts:W,codebaseId:W[0]?.codebaseId??""})}),(0,t.jsx)(O.TabsContent,{value:"auto-retry",children:(0,t.jsxs)(f.Card,{children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:l("autoRetry")}),(0,t.jsx)(f.CardDescription,{children:l("autoRetryDescription")})]}),(0,t.jsx)(f.CardContent,{children:d.canonicalOrigin.startsWith("github.com/")?(0,t.jsx)(q.AutoRetryDialog,{codebaseRepositoryId:d.id,repositoryMode:!0}):(0,t.jsx)(j.Alert,{children:(0,t.jsx)(j.AlertDescription,{children:l("autoRetryGitHubOnly")})})})]})})]})]})}],390615)}]);
60
+ }`,{input:{id:d.id,name:E,description:R,jiraBranchRegex:$||null,keepBaseBranchUpToDate:H,skillGroupIds:U}}),await K(),B(l("repositorySaved"))}catch(e){b(e instanceof Error?e.message:String(e))}finally{j(!1)}}};if(x)return(0,t.jsxs)("p",{className:"mx-auto flex max-w-6xl items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(w.Spinner,{})," ",l("loadingRepository")]});if(!d)return(0,t.jsxs)(I.Empty,{className:"mx-auto max-w-6xl border py-12",children:[(0,t.jsxs)(I.EmptyHeader,{children:[(0,t.jsx)(I.EmptyMedia,{variant:"icon",children:(0,t.jsx)(a.FolderGit2,{})}),(0,t.jsx)(I.EmptyTitle,{children:l("repositoryNotFound")}),(0,t.jsx)(I.EmptyDescription,{children:l("repositoryNotFoundDescription")})]}),(0,t.jsx)(v.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(V.Link,{href:"/codebases",children:[(0,t.jsx)(s.ArrowLeft,{})," ",l("backToCodebases")]})})]});let W=d.codebases.map(e=>({codebaseId:e.id,label:`${e.agent.name} \xb7 ${e.folder}`,available:"ONLINE"===e.agent.connectionStatus&&"AVAILABLE"===e.availability}));return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-6xl flex-col gap-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)(v.Button,{asChild:!0,className:"-ml-2",size:"sm",variant:"ghost",children:(0,t.jsxs)(V.Link,{href:"/codebases",children:[(0,t.jsx)(s.ArrowLeft,{})," ",l("backToCodebases")]})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:l("editTitle")}),(0,t.jsx)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:d.displayOrigin}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:l("repositorySharedDescription")})]}),S&&(0,t.jsx)(g.Alert,{variant:"destructive",children:(0,t.jsx)(g.AlertDescription,{children:S})}),N&&(0,t.jsx)(g.Alert,{children:(0,t.jsx)(g.AlertDescription,{children:N})}),(0,t.jsxs)(O.Tabs,{defaultValue:"details",children:[(0,t.jsxs)(O.TabsList,{children:[(0,t.jsx)(O.TabsTrigger,{value:"details",children:l("repositoryDetails")}),(0,t.jsx)(O.TabsTrigger,{value:"ios-app",children:o("iosApp")}),(0,t.jsx)(O.TabsTrigger,{value:"auto-retry",children:l("autoRetry")})]}),(0,t.jsx)(O.TabsContent,{value:"details",children:(0,t.jsx)("form",{className:"space-y-5",onSubmit:J,children:(0,t.jsxs)(f.Card,{children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:l("repositoryDetails")}),(0,t.jsx)(f.CardDescription,{children:l("repositoryDetailsDescription")})]}),(0,t.jsxs)(f.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Label,{htmlFor:"repository-name",children:l("name")}),(0,t.jsx)(C.Input,{id:"repository-name",maxLength:120,onChange:e=>A(e.target.value),required:!0,value:E})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Label,{htmlFor:"repository-jira-regex",children:l("jiraBranchRegex")}),(0,t.jsx)(C.Input,{id:"repository-jira-regex",onChange:e=>_(e.target.value),placeholder:l("inheritDefaultRegex"),value:$}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("jiraBranchRegexHelp")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Label,{htmlFor:"repository-description",children:l("repositoryDescription")}),(0,t.jsx)(D.Textarea,{id:"repository-description",maxLength:2e3,onChange:e=>P(e.target.value),value:R})]}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border p-3",children:[(0,t.jsx)(y.Checkbox,{checked:H,className:"mt-0.5",id:"repository-keep-base-branch-up-to-date",onCheckedChange:e=>M(!0===e)}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(k.Label,{htmlFor:"repository-keep-base-branch-up-to-date",children:l("keepBaseBranchUpToDate")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("keepBaseBranchUpToDateHelp")})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Label,{children:l("skillGroups")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("skillGroupsHelp")}),(0,t.jsxs)("div",{className:"max-h-56 space-y-1 overflow-auto rounded-lg border p-2",children:[u.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 rounded-md px-2 py-1.5 hover:bg-muted",children:[(0,t.jsx)(y.Checkbox,{checked:U.includes(e.id),onCheckedChange:t=>G(s=>!0===t?[...new Set([...s,e.id])]:s.filter(t=>t!==e.id))}),e.name]},e.id)),!u.length&&(0,t.jsx)("p",{className:"px-2 py-1 text-sm text-muted-foreground",children:l("noSkillGroups")})]})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(v.Button,{disabled:m||!E.trim(),type:"submit",children:[m?(0,t.jsx)(w.Spinner,{}):(0,t.jsx)(i.Save,{})," ",l("save")]})})]})]})})}),(0,t.jsx)(O.TabsContent,{value:"ios-app",children:(0,t.jsx)(L,{checkouts:W,codebaseId:W[0]?.codebaseId??""})}),(0,t.jsx)(O.TabsContent,{value:"auto-retry",children:(0,t.jsxs)(f.Card,{children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:l("autoRetry")}),(0,t.jsx)(f.CardDescription,{children:l("autoRetryDescription")})]}),(0,t.jsx)(f.CardContent,{children:d.canonicalOrigin.startsWith("github.com/")?(0,t.jsx)(q.AutoRetryDialog,{codebaseRepositoryId:d.id,repositoryMode:!0}):(0,t.jsx)(g.Alert,{children:(0,t.jsx)(g.AlertDescription,{children:l("autoRetryGitHubOnly")})})})]})})]})]})}],390615)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},624687,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Textarea",0,function({className:e,...n}){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),...n})}])},337822,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(981140),a=e.i(820783),o=e.i(30030),i=e.i(726330),l=e.i(303536),s=e.i(765491),u=e.i(610772),d=e.i(853660),c=e.i(774606),p=e.i(296626),f=e.i(248425),m=e.i(991918),v=e.i(369340),g=e.i(186312),h=e.i(985369),x=Object.defineProperty,b=(e,t)=>x(e,"name",{value:t,configurable:!0}),w="Popover",[y,k]=(0,o.createContextScope)(w,[d.createPopperScope]),C=(0,d.createPopperScope)(),[j,P]=y(w),E=b(e=>{let{__scopePopover:n,children:a,open:o,defaultOpen:i,onOpenChange:l,modal:s=!1}=e,c=C(n),p=r.useRef(null),[f,m]=r.useState(!1),[g,h]=(0,v.useControllableState)({prop:o,defaultProp:i??!1,onChange:l,caller:w});return(0,t.jsx)(d.Root,{...c,children:(0,t.jsx)(j,{scope:n,contentId:(0,u.useId)(),triggerRef:p,open:g,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>m(!0),[]),onCustomAnchorRemove:r.useCallback(()=>m(!1),[]),modal:s,children:a})})},"Popover"),I=r.forwardRef(b(function(e,n){let{__scopePopover:a,...o}=e,i=P("PopoverAnchor",a),l=C(a),{onCustomAnchorAdd:s,onCustomAnchorRemove:u}=i;return r.useEffect(()=>(s(),()=>u()),[s,u]),(0,t.jsx)(d.Anchor,{...l,...o,ref:n})},"PopoverAnchor")),A=r.forwardRef(b(function(e,r){let{__scopePopover:o,...i}=e,l=P("PopoverTrigger",o),s=C(o),u=(0,a.useComposedRefs)(r,l.triggerRef),c=(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":K(l.open),...i,ref:u,onClick:(0,n.composeEventHandlers)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?c:(0,t.jsx)(d.Anchor,{asChild:!0,...s,children:c})},"PopoverTrigger")),S="PopoverPortal",[R,z]=y(S,{forceMount:void 0}),N=b(e=>{let{__scopePopover:r,forceMount:n,children:a,container:o}=e,i=P(S,r);return(0,t.jsx)(R,{scope:r,forceMount:n,children:(0,t.jsx)(p.Presence,{present:n||i.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:o,children:a})})})},"PopoverPortal"),O="PopoverContent",D=r.forwardRef(b(function(e,r){let n=z(O,e.__scopePopover),{forceMount:a=n.forceMount,...o}=e,i=P(O,e.__scopePopover);return(0,t.jsx)(p.Presence,{present:a||i.open,children:i.modal?(0,t.jsx)(F,{...o,ref:r}):(0,t.jsx)(L,{...o,ref:r})})},"PopoverContent")),M=(0,m.createSlot)("PopoverContent.RemoveScroll"),F=r.forwardRef(b(function(e,o){let i=P(O,e.__scopePopover),l=r.useRef(null),s=(0,a.useComposedRefs)(o,l),u=r.useRef(!1);return r.useEffect(()=>{let e=l.current;if(e)return(0,g.hideOthers)(e)},[]),(0,t.jsx)(h.RemoveScroll,{as:M,allowPinchZoom:!0,children:(0,t.jsx)(T,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),u.current||i.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),L=r.forwardRef(b(function(e,n){let a=P(O,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,t.jsx)(T,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||a.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;a.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),T=r.forwardRef(b(function(e,r){let{__scopePopover:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:v,...g}=e,h=P(O,n),x=C(n);return(0,l.useFocusGuards)(),(0,t.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:u,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:v,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>h.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,t.jsx)(d.Content,{"data-state":K(h.open),role:"dialog",id:h.contentId,...x,...g,ref:r,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),_=r.forwardRef(b(function(e,r){let{__scopePopover:a,...o}=e,i=P("PopoverClose",a);return(0,t.jsx)(f.Primitive.button,{type:"button",...o,ref:r,onClick:(0,n.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})},"PopoverClose")),V=r.forwardRef(b(function(e,r){let{__scopePopover:n,...a}=e,o=C(n);return(0,t.jsx)(d.Arrow,{...o,...a,ref:r})},"PopoverArrow"));function K(e){return e?"open":"closed"}b(K,"getState"),e.s(["Anchor",0,I,"Arrow",0,V,"Close",0,_,"Content",0,D,"Popover",0,E,"PopoverAnchor",0,I,"PopoverArrow",0,V,"PopoverClose",0,_,"PopoverContent",0,D,"PopoverPortal",0,N,"PopoverTrigger",0,A,"Portal",0,N,"Root",0,E,"Trigger",0,A,"createPopoverScope",0,k],178761);var $=e.i(178761),$=$,q=e.i(975157);e.s(["Popover",0,function({...e}){return(0,t.jsx)($.Root,{"data-slot":"popover",...e})},"PopoverAnchor",0,function({...e}){return(0,t.jsx)($.Anchor,{"data-slot":"popover-anchor",...e})},"PopoverContent",0,function({className:e,align:r="center",sideOffset:n=4,...a}){return(0,t.jsx)($.Portal,{children:(0,t.jsx)($.Content,{"data-slot":"popover-content",align:r,sideOffset:n,className:(0,q.cn)("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)($.Trigger,{"data-slot":"popover-trigger",...e})}],337822)},317056,e=>{"use strict";var t=e.i(843476),r=/[\\\/_+.#"@\[\(\{&]/,n=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,o=/[\s-]/g;function i(e){return e.toLowerCase().replace(o," ")}var l=e.i(326999),s=e.i(271645),u=e.i(248425),d=e.i(610772),c=e.i(820783),p='[cmdk-group=""]',f='[cmdk-group-items=""]',m='[cmdk-item=""]',v=`${m}:not([aria-disabled="true"])`,g="cmdk-item-select",h="data-value",x=(e,t,l)=>{var s;return s=e,function e(t,i,l,s,u,d,c){if(d===i.length)return u===t.length?1:.99;var p=`${u},${d}`;if(void 0!==c[p])return c[p];for(var f,m,v,g,h=s.charAt(d),x=l.indexOf(h,u),b=0;x>=0;)(f=e(t,i,l,s,x+1,d+1,c))>b&&(x===u?f*=1:r.test(t.charAt(x-1))?(f*=.8,(v=t.slice(u,x-1).match(n))&&u>0&&(f*=Math.pow(.999,v.length))):a.test(t.charAt(x-1))?(f*=.9,(g=t.slice(u,x-1).match(o))&&u>0&&(f*=Math.pow(.999,g.length))):(f*=.17,u>0&&(f*=Math.pow(.999,x-u))),t.charAt(x)!==i.charAt(d)&&(f*=.9999)),(f<.1&&l.charAt(x-1)===s.charAt(d+1)||s.charAt(d+1)===s.charAt(d)&&l.charAt(x-1)!==s.charAt(d))&&.1*(m=e(t,i,l,s,x+1,d+2,c))>f&&(f=.1*m),f>b&&(b=f),x=l.indexOf(h,x+1);return c[p]=b,b}(s=l&&l.length>0?`${s+" "+l.join(" ")}`:s,t,i(s),i(t),0,0,{})},b=s.createContext(void 0),w=s.createContext(void 0),y=s.createContext(void 0),k=s.forwardRef((e,t)=>{let r=N(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=N(()=>new Set),a=N(()=>new Map),o=N(()=>new Map),i=N(()=>new Set),l=R(e),{label:c,children:y,value:k,onValueChange:C,filter:j,shouldFilter:P,loop:E,disablePointerSelection:I=!1,vimBindings:A=!0,...S}=e,O=(0,d.useId)(),D=(0,d.useId)(),T=(0,d.useId)(),_=s.useRef(null),V=M();z(()=>{if(void 0!==k){let e=k.trim();r.current.value=e,K.emit()}},[k]),z(()=>{V(6,G)},[]);let K=s.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,o,i,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)U(),B(),V(1,H);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(T);e?e.focus():null==(a=document.getElementById(O))||a.focus()}if(V(7,()=>{var e;r.current.selectedItemId=null==(e=W())?void 0:e.id,K.emit()}),n||V(5,G),(null==(o=l.current)?void 0:o.value)!==void 0){null==(s=(i=l.current).onValueChange)||s.call(i,null!=t?t:"");return}}K.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),$=s.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,q(t,n)),V(2,()=>{B(),K.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),V(3,()=>{U(),B(),r.current.value||H(),K.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=W();V(4,()=>{U(),(null==t?void 0:t.getAttribute("id"))===e&&H(),K.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:O,inputId:T,labelId:D,listInnerRef:_}),[]);function q(e,t){var n,a;let o=null!=(a=null==(n=l.current)?void 0:n.filter)?a:x;return e?o(e,r.current.search,t):0}function B(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=_.current;Z().sort((t,r)=>{var n,a;let o=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(n=e.get(i))?n:0)-(null!=(a=e.get(o))?a:0)}).forEach(e=>{let t=e.closest(f);t?t.appendChild(e.parentElement===t?e:e.closest(`${f} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${f} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=_.current)?void 0:t.querySelector(`${p}[${h}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function H(){let e=Z().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(h);K.setState("value",t||void 0)}function U(){var e,t,i,s;if(!r.current.search||!1===l.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let a of n.current){let n=q(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(s=null==(i=o.current.get(a))?void 0:i.keywords)?s:[]);r.current.filtered.items.set(a,n),n>0&&u++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function G(){var e,t,r;let n=W();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(p))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function W(){var e;return null==(e=_.current)?void 0:e.querySelector(`${m}[aria-selected="true"]`)}function Z(){var e;return Array.from((null==(e=_.current)?void 0:e.querySelectorAll(v))||[])}function J(e){let t=Z()[e];t&&K.setState("value",t.getAttribute(h))}function Q(e){var t;let r=W(),n=Z(),a=n.findIndex(e=>e===r),o=n[a+e];null!=(t=l.current)&&t.loop&&(o=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),o&&K.setState("value",o.getAttribute(h))}function X(e){let t=W(),r=null==t?void 0:t.closest(p),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,p):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,p))?void 0:r.querySelector(v);n?K.setState("value",n.getAttribute(h)):Q(e)}let Y=()=>J(Z().length-1),ee=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?X(1):Q(1)},et=e=>{e.preventDefault(),e.metaKey?J(0):e.altKey?X(-1):Q(-1)};return s.createElement(u.Primitive.div,{ref:t,tabIndex:-1,...S,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=S.onKeyDown)||t.call(S,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":A&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":A&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),J(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=W();if(t){let e=new Event(g);t.dispatchEvent(e)}}}}},s.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:L},c),F(e,e=>s.createElement(w.Provider,{value:K},s.createElement(b.Provider,{value:$},e))))}),C=s.forwardRef((e,t)=>{var r,n;let a=(0,d.useId)(),o=s.useRef(null),i=s.useContext(y),l=s.useContext(b),p=R(e),f=null!=(n=null==(r=p.current)?void 0:r.forceMount)?n:null==i?void 0:i.forceMount;z(()=>{if(!f)return l.item(a,null==i?void 0:i.id)},[f]);let m=D(a,o,[e.value,e.children,o],e.keywords),v=s.useContext(w),h=O(e=>e.value&&e.value===m.current),x=O(e=>!!f||!1===l.filter()||!e.search||e.filtered.items.get(a)>0);function k(){var e,t;C(),null==(t=(e=p.current).onSelect)||t.call(e,m.current)}function C(){v.setState("value",m.current,!0)}if(s.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(g,k),()=>t.removeEventListener(g,k)},[x,e.onSelect,e.disabled]),!x)return null;let{disabled:j,value:P,onSelect:E,forceMount:I,keywords:A,...S}=e;return s.createElement(u.Primitive.div,{ref:(0,c.composeRefs)(o,t),...S,id:a,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!h,"data-disabled":!!j,"data-selected":!!h,onPointerMove:j||l.getDisablePointerSelection()?void 0:C,onClick:j?void 0:k},e.children)}),j=s.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...o}=e,i=(0,d.useId)(),l=s.useRef(null),p=s.useRef(null),f=(0,d.useId)(),m=s.useContext(b),v=O(e=>!!a||!1===m.filter()||!e.search||e.filtered.groups.has(i));z(()=>m.group(i),[]),D(i,l,[e.value,e.heading,p]);let g=s.useMemo(()=>({id:i,forceMount:a}),[a]);return s.createElement(u.Primitive.div,{ref:(0,c.composeRefs)(l,t),...o,"cmdk-group":"",role:"presentation",hidden:!v||void 0},r&&s.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:f},r),F(e,e=>s.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?f:void 0},s.createElement(y.Provider,{value:g},e))))}),P=s.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=s.useRef(null),o=O(e=>!e.search);return r||o?s.createElement(u.Primitive.div,{ref:(0,c.composeRefs)(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),E=s.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,o=s.useContext(w),i=O(e=>e.search),l=O(e=>e.selectedItemId),d=s.useContext(b);return s.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),s.createElement(u.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":l,id:d.inputId,type:"text",value:a?e.value:i,onChange:e=>{a||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),I=s.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,o=s.useRef(null),i=s.useRef(null),l=O(e=>e.selectedItemId),d=s.useContext(b);return s.useEffect(()=>{if(i.current&&o.current){let e=i.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),s.createElement(u.Primitive.div,{ref:(0,c.composeRefs)(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:d.listId},F(e,e=>s.createElement("div",{ref:(0,c.composeRefs)(i,d.listInnerRef),"cmdk-list-sizer":""},e)))}),A=s.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:o,container:i,...u}=e;return s.createElement(l.Root,{open:r,onOpenChange:n},s.createElement(l.Portal,{container:i},s.createElement(l.Overlay,{"cmdk-overlay":"",className:a}),s.createElement(l.Content,{"aria-label":e.label,"cmdk-dialog":"",className:o},s.createElement(k,{ref:t,...u}))))}),S=Object.assign(k,{List:I,Item:C,Input:E,Group:j,Separator:P,Dialog:A,Empty:s.forwardRef((e,t)=>O(e=>0===e.filtered.count)?s.createElement(u.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:s.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...o}=e;return s.createElement(u.Primitive.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},F(e,e=>s.createElement("div",{"aria-hidden":!0},e)))})});function R(e){let t=s.useRef(e);return z(()=>{t.current=e}),t}var z="u"<typeof window?s.useEffect:s.useLayoutEffect;function N(e){let t=s.useRef();return void 0===t.current&&(t.current=e()),t}function O(e){let t=s.useContext(w),r=()=>e(t.snapshot());return s.useSyncExternalStore(t.subscribe,r,r)}function D(e,t,r,n=[]){let a=s.useRef(),o=s.useContext(b);return z(()=>{var i;let l=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),s=n.map(e=>e.trim());o.value(e,l,s),null==(i=t.current)||i.setAttribute(h,l),a.current=l}),a}var M=()=>{let[e,t]=s.useState(),r=N(()=>new Map);return z(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function F({asChild:e,children:t},r){let n;return e&&s.isValidElement(t)?s.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var L={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},T=e.i(975157);e.i(776639);var _=e.i(225913);function V({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,T.cn)("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...r})}e.i(519455),e.i(793479),e.i(624687);let K=(0,_.cva)("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function $({className:e,align:r="inline-start",...n}){return(0,t.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":r,className:(0,T.cn)(K({align:r}),e),onClick:e=>{e.target.closest("button")||e.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}(0,_.cva)("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});var q=e.i(630299),q=q,B=e.i(593698);e.s(["Command",0,function({className:e,...r}){return(0,t.jsx)(S,{"data-slot":"command",className:(0,T.cn)("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",e),...r})},"CommandEmpty",0,function({className:e,...r}){return(0,t.jsx)(S.Empty,{"data-slot":"command-empty",className:(0,T.cn)("py-6 text-center text-sm",e),...r})},"CommandGroup",0,function({className:e,...r}){return(0,t.jsx)(S.Group,{"data-slot":"command-group",className:(0,T.cn)("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",e),...r})},"CommandInput",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:(0,t.jsxs)(V,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,t.jsx)(S.Input,{"data-slot":"command-input",className:(0,T.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r}),(0,t.jsx)($,{children:(0,t.jsx)(q.default,{className:"size-4 shrink-0 opacity-50"})})]})})},"CommandItem",0,function({className:e,children:r,...n}){return(0,t.jsxs)(S.Item,{"data-slot":"command-item",className:(0,T.cn)("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",e),...n,children:[r,(0,t.jsx)(B.CheckIcon,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})},"CommandList",0,function({className:e,...r}){return(0,t.jsx)(S.List,{"data-slot":"command-list",className:(0,T.cn)("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...r})}],317056)},563707,e=>{"use strict";let t=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,t],563707)},799676,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(705844),a=e.i(30030),o=e.i(30207),i=e.i(934620),l=e.i(248425),s=Object.defineProperty,u=(e,t)=>s(e,"name",{value:t,configurable:!0}),d="Avatar",[c,p]=(0,a.createContextScope)(d),f=[0,()=>void 0],[m,v]=c(d),g=r.forwardRef(u(function(e,n){let{__scopeAvatar:a,...o}=e,[i,s]=r.useState("idle"),[u,d]=y();return(0,t.jsx)(m,{scope:a,imageLoadingStatus:i,setImageLoadingStatus:s,imageCount:u,setImageCount:d,children:(0,t.jsx)(l.Primitive.span,{...o,ref:n})})},"Avatar")),h=r.forwardRef(u(function(e,n){let{__scopeAvatar:a,src:s,onLoadingStatusChange:u,...d}=e,c=v("AvatarImage",a);k(c.setImageCount);let p=b(s,{referrerPolicy:d.referrerPolicy,crossOrigin:d.crossOrigin,loadingStatus:c.imageLoadingStatus,setLoadingStatus:c.setImageLoadingStatus}),f=(0,o.useCallbackRef)(e=>{u?.(e)}),m=r.useRef(p);return(0,i.useLayoutEffect)(()=>{let e=m.current;m.current=p,p!==e&&f(p)},[p,f]),"loaded"===p?(0,t.jsx)(l.Primitive.img,{...d,ref:n,src:s}):null},"AvatarImage")),x=r.forwardRef(u(function(e,n){let{__scopeAvatar:a,delayMs:o,...i}=e,s=v("AvatarFallback",a),[u,d]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>d(!0),o);return()=>window.clearTimeout(e)}},[o]),u&&"loaded"!==s.imageLoadingStatus?(0,t.jsx)(l.Primitive.span,{...i,ref:n}):null},"AvatarFallback"));function b(e,{loadingStatus:t,setLoadingStatus:r,referrerPolicy:n,crossOrigin:a}){return(0,i.useLayoutEffect)(()=>{if(!e)return void r("error");let t=new window.Image,o=u(e=>{r(w(e.currentTarget))},"handleLoad"),i=u(()=>r("error"),"handleError");return t.addEventListener("load",o),t.addEventListener("error",i),n&&(t.referrerPolicy=n),t.crossOrigin=a??null,t.src=e,r(w(t)),()=>{t.removeEventListener("load",o),t.removeEventListener("error",i),r("idle")}},[e,a,n,r]),t}function w(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function y(){let e=f;if(n.IS_DEVELOPMENT){let[t]=e=r.useState(0),n=r.useRef(!1);r.useEffect(()=>{t>1&&!n.current&&(n.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}function k(e){n.IS_DEVELOPMENT&&r.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])}u(b,"useImageLoadingStatus"),u(w,"getImageLoadingStatus"),u(y,"useImageCount"),u(k,"useUpdateImageCount"),e.s(["Avatar",0,g,"AvatarFallback",0,x,"AvatarImage",0,h,"Fallback",0,x,"Image",0,h,"Root",0,g,"createAvatarScope",0,p],97456);var C=e.i(97456),C=C,j=e.i(975157);e.s(["Avatar",0,function({className:e,size:r="default",...n}){return(0,t.jsx)(C.Root,{className:(0,j.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),"data-size":r,"data-slot":"avatar",...n})},"AvatarFallback",0,function({className:e,...r}){return(0,t.jsx)(C.Fallback,{className:(0,j.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),"data-slot":"avatar-fallback",...r})},"AvatarImage",0,function({className:e,...r}){return(0,t.jsx)(C.Image,{className:(0,j.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...r})}],799676)},159888,e=>{"use strict";let t=(0,e.i(456420).default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,t],159888)},983913,906197,e=>{"use strict";var t=e.i(843476),r=e.i(563707),n=e.i(271645),a=e.i(519455),o=e.i(317056),i=e.i(225913),l=e.i(586011),s=e.i(975157);e.i(772436);let u=(0,i.cva)("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",{variants:{variant:{default:"border-transparent",outline:"border-border",muted:"border-transparent bg-muted/50"},size:{default:"gap-2.5 px-3 py-2.5",sm:"gap-2.5 px-3 py-2.5",xs:"gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:r="default",size:n="default",asChild:a=!1,...o}){let i=a?l.Slot.Root:"div";return(0,t.jsx)(i,{"data-slot":"item","data-variant":r,"data-size":n,className:(0,s.cn)(u({variant:r,size:n,className:e})),...o})}let c=(0,i.cva)("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"[&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function p({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-content",className:(0,s.cn)("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",e),...r})}function f({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-title",className:(0,s.cn)("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",e),...r})}function m({className:e,...r}){return(0,t.jsx)("p",{"data-slot":"item-description",className:(0,s.cn)("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})}e.s(["Item",0,d,"ItemActions",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-actions",className:(0,s.cn)("flex items-center gap-2",e),...r})},"ItemContent",0,p,"ItemDescription",0,m,"ItemGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{role:"list","data-slot":"item-group",className:(0,s.cn)("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",e),...r})},"ItemMedia",0,function({className:e,variant:r="default",...n}){return(0,t.jsx)("div",{"data-slot":"item-media","data-variant":r,className:(0,s.cn)(c({variant:r,className:e})),...n})},"ItemTitle",0,f],906197);var v=e.i(337822);e.s(["SearchableSelect",0,function({value:e,onValueChange:i,options:l,placeholder:u,searchPlaceholder:c,emptyMessage:g,ariaLabel:h,disabled:x,className:b,showSelectedDetails:w=!1}){let[y,k]=(0,n.useState)(!1),C=l.find(t=>t.value===e);return(0,t.jsxs)(v.Popover,{onOpenChange:k,open:y,children:[(0,t.jsx)(v.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(a.Button,{"aria-expanded":y,"aria-label":h,className:(0,s.cn)("min-w-0 w-full justify-between font-normal",w&&C&&"h-auto min-h-8 py-2",b),disabled:x,role:"combobox",type:"button",variant:"outline",children:[w&&C?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:C.label}),C.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:C.description}),C.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:C.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:C?.label??u}),(0,t.jsx)(r.ChevronsUpDown,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(v.PopoverContent,{align:"start",className:"z-70 w-(--radix-popover-trigger-width) p-0",children:(0,t.jsxs)(o.Command,{label:c,children:[(0,t.jsx)(o.CommandInput,{"aria-label":c,autoFocus:!0,placeholder:c}),(0,t.jsxs)(o.CommandList,{children:[(0,t.jsx)(o.CommandEmpty,{children:g}),(0,t.jsx)(o.CommandGroup,{children:l.map(r=>(0,t.jsx)(o.CommandItem,{"aria-label":[r.label,r.description,r.secondaryDescription].filter(Boolean).join(", "),"aria-selected":r.value===e,className:"items-start py-2","data-checked":r.value===e,disabled:r.disabled,keywords:[r.label,r.description??"",r.secondaryDescription??"",r.keywords??""],onSelect:()=>{i(r.value),k(!1)},value:r.value,children:(0,t.jsx)(d,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(p,{className:"min-w-0",children:[(0,t.jsx)(f,{className:"block truncate",children:r.label}),r.description&&(0,t.jsx)(m,{className:"block truncate",children:r.description}),r.secondaryDescription&&(0,t.jsx)(m,{className:"block truncate",children:r.secondaryDescription})]})})},r.value))})]})]})})]})}],983913)}]);