@ai-development-environment/server 0.0.64 → 0.0.66

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 (813) hide show
  1. package/package.json +1 -1
  2. package/standalone/.next/BUILD_ID +1 -1
  3. package/standalone/.next/app-path-routes-manifest.json +1 -1
  4. package/standalone/.next/build-manifest.json +3 -3
  5. package/standalone/.next/prerender-manifest.json +7 -7
  6. package/standalone/.next/routes-manifest.json +3 -3
  7. package/standalone/.next/server/app/[locale]/actions/page.js +9 -8
  8. package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
  9. package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
  10. package/standalone/.next/server/app/[locale]/actions-cache/page.js +9 -8
  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 +9 -8
  14. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  15. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  16. package/standalone/.next/server/app/[locale]/agents/page.js +9 -8
  17. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/analytics-events/page.js +9 -8
  20. package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
  21. package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
  22. package/standalone/.next/server/app/[locale]/build-data/page.js +9 -8
  23. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  24. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  25. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js +9 -8
  26. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
  27. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
  28. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js +1 -1
  29. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.nft.json +1 -1
  30. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js +9 -8
  31. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  32. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  33. package/standalone/.next/server/app/[locale]/builds/page.js +9 -8
  34. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  35. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  36. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js +9 -8
  37. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  38. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  39. package/standalone/.next/server/app/[locale]/codebases/page.js +9 -8
  40. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  41. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  42. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js +9 -8
  43. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  44. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  45. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page.js +9 -8
  46. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page.js.nft.json +1 -1
  47. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page_client-reference-manifest.js +1 -1
  48. package/standalone/.next/server/app/[locale]/commands/new/page.js +9 -8
  49. package/standalone/.next/server/app/[locale]/commands/new/page.js.nft.json +1 -1
  50. package/standalone/.next/server/app/[locale]/commands/new/page_client-reference-manifest.js +1 -1
  51. package/standalone/.next/server/app/[locale]/commands/page.js +9 -8
  52. package/standalone/.next/server/app/[locale]/commands/page.js.nft.json +1 -1
  53. package/standalone/.next/server/app/[locale]/commands/page_client-reference-manifest.js +1 -1
  54. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js +1 -1
  55. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.nft.json +1 -1
  56. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page.js +9 -8
  57. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page.js.nft.json +1 -1
  58. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page_client-reference-manifest.js +1 -1
  59. package/standalone/.next/server/app/[locale]/comments/page.js +9 -8
  60. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  61. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  62. package/standalone/.next/server/app/[locale]/console-logs/page.js +9 -8
  63. package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
  64. package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
  65. package/standalone/.next/server/app/[locale]/costs/page.js +9 -8
  66. package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -1
  67. package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +1 -1
  68. package/standalone/.next/server/app/[locale]/credentials/page.js +9 -8
  69. package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
  70. package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
  71. package/standalone/.next/server/app/[locale]/devices/[id]/page.js +9 -8
  72. package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
  73. package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
  74. package/standalone/.next/server/app/[locale]/devices/enroll/page.js +9 -8
  75. package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
  76. package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
  77. package/standalone/.next/server/app/[locale]/devices/page.js +9 -8
  78. package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
  79. package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
  80. package/standalone/.next/server/app/[locale]/drafts/page.js +9 -8
  81. package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
  82. package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
  83. package/standalone/.next/server/app/[locale]/github-cache/entries/[id]/page.js +9 -8
  84. package/standalone/.next/server/app/[locale]/github-cache/entries/[id]/page.js.nft.json +1 -1
  85. package/standalone/.next/server/app/[locale]/github-cache/entries/[id]/page_client-reference-manifest.js +1 -1
  86. package/standalone/.next/server/app/[locale]/github-cache/page.js +9 -8
  87. package/standalone/.next/server/app/[locale]/github-cache/page.js.nft.json +1 -1
  88. package/standalone/.next/server/app/[locale]/github-cache/page_client-reference-manifest.js +1 -1
  89. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js +10 -9
  90. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  91. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  92. package/standalone/.next/server/app/[locale]/jira/tickets/page.js +9 -8
  93. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  94. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  95. package/standalone/.next/server/app/[locale]/jira-cache/page.js +9 -8
  96. package/standalone/.next/server/app/[locale]/jira-cache/page.js.nft.json +1 -1
  97. package/standalone/.next/server/app/[locale]/jira-cache/page_client-reference-manifest.js +1 -1
  98. package/standalone/.next/server/app/[locale]/jira-cache/tickets/[issueKey]/page.js +9 -8
  99. package/standalone/.next/server/app/[locale]/jira-cache/tickets/[issueKey]/page.js.nft.json +1 -1
  100. package/standalone/.next/server/app/[locale]/jira-cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  101. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js +9 -9
  102. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
  103. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  104. package/standalone/.next/server/app/[locale]/notifications/page.js +9 -8
  105. package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
  106. package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
  107. package/standalone/.next/server/app/[locale]/page.js +9 -8
  108. package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
  109. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  110. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js +9 -8
  111. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
  112. package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
  113. package/standalone/.next/server/app/[locale]/plans/page.js +9 -8
  114. package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
  115. package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
  116. package/standalone/.next/server/app/[locale]/polling/page.js +9 -8
  117. package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
  118. package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
  119. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js +9 -8
  120. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  121. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
  122. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js +9 -8
  123. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
  124. package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
  125. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js +9 -8
  126. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  127. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  128. package/standalone/.next/server/app/[locale]/pull-requests/page.js +9 -8
  129. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  130. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  131. package/standalone/.next/server/app/[locale]/push-notifications/page.js +9 -8
  132. package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
  133. package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
  134. package/standalone/.next/server/app/[locale]/runs/new/page.js +9 -8
  135. package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
  136. package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
  137. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js +9 -8
  138. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
  139. package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
  140. package/standalone/.next/server/app/[locale]/sessions/page.js +9 -8
  141. package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
  142. package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
  143. package/standalone/.next/server/app/[locale]/settings/page.js +9 -8
  144. package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
  145. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  146. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js +9 -8
  147. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
  148. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  149. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js +9 -8
  150. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
  151. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  152. package/standalone/.next/server/app/[locale]/skills/groups/page.js +9 -8
  153. package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
  154. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  155. package/standalone/.next/server/app/[locale]/skills/page.js +9 -8
  156. package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
  157. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  158. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js +9 -8
  159. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
  160. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  161. package/standalone/.next/server/app/[locale]/tools/page.js +9 -8
  162. package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
  163. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  164. package/standalone/.next/server/app/[locale]/unified-events/page.js +9 -8
  165. package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
  166. package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
  167. package/standalone/.next/server/app/[locale]/usage/page.js +9 -8
  168. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  169. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  170. package/standalone/.next/server/app/[locale]/webhooks/page.js +9 -8
  171. package/standalone/.next/server/app/[locale]/webhooks/page.js.nft.json +1 -1
  172. package/standalone/.next/server/app/[locale]/webhooks/page_client-reference-manifest.js +1 -1
  173. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page.js +9 -8
  174. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page.js.nft.json +1 -1
  175. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page_client-reference-manifest.js +1 -1
  176. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page.js +9 -8
  177. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page.js.nft.json +1 -1
  178. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page_client-reference-manifest.js +1 -1
  179. package/standalone/.next/server/app/[locale]/workflows/new/page.js +9 -8
  180. package/standalone/.next/server/app/[locale]/workflows/new/page.js.nft.json +1 -1
  181. package/standalone/.next/server/app/[locale]/workflows/new/page_client-reference-manifest.js +1 -1
  182. package/standalone/.next/server/app/[locale]/workflows/page.js +9 -8
  183. package/standalone/.next/server/app/[locale]/workflows/page.js.nft.json +1 -1
  184. package/standalone/.next/server/app/[locale]/workflows/page_client-reference-manifest.js +1 -1
  185. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page.js +9 -8
  186. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page.js.nft.json +1 -1
  187. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page_client-reference-manifest.js +1 -1
  188. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js +10 -9
  189. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  190. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  191. package/standalone/.next/server/app/[locale]/worktrees/page.js +9 -8
  192. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  193. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  194. package/standalone/.next/server/app/_global-error/page.js +5 -6
  195. package/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  196. package/standalone/.next/server/app/_global-error.html +1 -1
  197. package/standalone/.next/server/app/_global-error.rsc +2 -3
  198. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  199. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +2 -3
  200. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -2
  201. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  202. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  203. package/standalone/.next/server/app/_not-found/page.js +6 -6
  204. package/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  205. package/standalone/.next/server/app/_not-found.html +1 -1
  206. package/standalone/.next/server/app/_not-found.rsc +2 -2
  207. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  208. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  209. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  210. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  211. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  212. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  213. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js +1 -1
  214. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  215. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +1 -1
  216. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
  217. package/standalone/.next/server/app/api/codebases/by-path/route.js +1 -1
  218. package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
  219. package/standalone/.next/server/app/api/codebases/route.js +1 -1
  220. package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
  221. package/standalone/.next/server/app/api/graphql/route.js +1 -1
  222. package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
  223. package/standalone/.next/server/app/api/ios/apns-devices/route.js +1 -1
  224. package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
  225. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js +1 -1
  226. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
  227. package/standalone/.next/server/app/api/ios/enrollment/start/route.js +1 -1
  228. package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
  229. package/standalone/.next/server/app/api/mcp/route.js +1 -1
  230. package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
  231. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js +1 -1
  232. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
  233. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js +1 -1
  234. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
  235. package/standalone/.next/server/app/api/public/github/webhook/route.js +1 -1
  236. package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
  237. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js +1 -1
  238. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
  239. package/standalone/.next/server/app/api/public/ios/profile-response/route.js +1 -1
  240. package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
  241. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js +1 -1
  242. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
  243. package/standalone/.next/server/app/api/telemetry/console-logs/route.js +1 -1
  244. package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
  245. package/standalone/.next/server/app/api/telemetry/export/route.js +1 -1
  246. package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
  247. package/standalone/.next/server/app/api/tools/call/route.js +1 -1
  248. package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
  249. package/standalone/.next/server/app/api/tools/catalog/route.js +1 -1
  250. package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
  251. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +1 -1
  252. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -1
  253. package/standalone/.next/server/app/icon.svg/route/app-paths-manifest.json +3 -0
  254. package/standalone/.next/server/app/icon.svg/route.js +7 -0
  255. package/standalone/.next/server/app/{favicon.ico → icon.svg}/route.js.nft.json +1 -1
  256. package/standalone/.next/server/app/icon.svg.body +7 -0
  257. package/standalone/.next/server/app/icon.svg.meta +1 -0
  258. package/standalone/.next/server/app-paths-manifest.json +1 -1
  259. package/standalone/.next/server/chunks/{[root-of-the-server]__0yx69ig._.js → [root-of-the-server]__0-84fg8._.js} +2 -2
  260. package/standalone/.next/server/chunks/{[root-of-the-server]__05k_3_s._.js → [root-of-the-server]__009x0z2._.js} +1 -1
  261. package/standalone/.next/server/chunks/{[root-of-the-server]__0efv9_l._.js → [root-of-the-server]__00z8p9y._.js} +1 -1
  262. package/standalone/.next/server/chunks/{[root-of-the-server]__05rm8ki._.js → [root-of-the-server]__00zjx8v._.js} +1 -1
  263. package/standalone/.next/server/chunks/{[root-of-the-server]__06dz512._.js → [root-of-the-server]__0108ovu._.js} +1 -1
  264. package/standalone/.next/server/chunks/{[root-of-the-server]__0-b1prw._.js → [root-of-the-server]__026fuz3._.js} +1 -1
  265. package/standalone/.next/server/chunks/{[root-of-the-server]__03ov9dn._.js → [root-of-the-server]__02rtolt._.js} +1 -1
  266. package/standalone/.next/server/chunks/{[root-of-the-server]__0cqe8td._.js → [root-of-the-server]__03jsvik._.js} +1 -1
  267. package/standalone/.next/server/chunks/{[root-of-the-server]__0g-h70v._.js → [root-of-the-server]__03qoaib._.js} +1 -1
  268. package/standalone/.next/server/chunks/[root-of-the-server]__04dzkv1._.js +3 -0
  269. package/standalone/.next/server/chunks/{[root-of-the-server]__0-irvqy._.js → [root-of-the-server]__04qz0t4._.js} +1 -1
  270. package/standalone/.next/server/chunks/{[root-of-the-server]__0_1h4vu._.js → [root-of-the-server]__0525unf._.js} +1 -1
  271. package/standalone/.next/server/chunks/{[root-of-the-server]__0_ftuni._.js → [root-of-the-server]__05rg4l-._.js} +1 -1
  272. package/standalone/.next/server/chunks/{[root-of-the-server]__082w26v._.js → [root-of-the-server]__06hj05o._.js} +1 -1
  273. package/standalone/.next/server/chunks/{[root-of-the-server]__04x0a1c._.js → [root-of-the-server]__06ky77b._.js} +1 -1
  274. package/standalone/.next/server/chunks/[root-of-the-server]__07dl76m._.js +3 -0
  275. package/standalone/.next/server/chunks/{[root-of-the-server]__07lj58j._.js → [root-of-the-server]__080yx90._.js} +2 -2
  276. package/standalone/.next/server/chunks/{[root-of-the-server]__092univ._.js → [root-of-the-server]__09ahnvy._.js} +1 -1
  277. package/standalone/.next/server/chunks/[root-of-the-server]__0_15xc-._.js +3 -0
  278. package/standalone/.next/server/chunks/[root-of-the-server]__0ag7r5h._.js +3 -0
  279. package/standalone/.next/server/chunks/[root-of-the-server]__0auu4ur._.js +3 -0
  280. package/standalone/.next/server/chunks/{[root-of-the-server]__06h8dq4._.js → [root-of-the-server]__0b6u3hm._.js} +1 -1
  281. package/standalone/.next/server/chunks/[root-of-the-server]__0c7d4-l._.js +3 -0
  282. package/standalone/.next/server/chunks/{[root-of-the-server]__0e29qi2._.js → [root-of-the-server]__0clxa1e._.js} +1 -1
  283. package/standalone/.next/server/chunks/[root-of-the-server]__0ct8jx4._.js +3 -0
  284. package/standalone/.next/server/chunks/{[root-of-the-server]__0njzyae._.js → [root-of-the-server]__0f5i_w7._.js} +2 -2
  285. package/standalone/.next/server/chunks/[root-of-the-server]__0f5nrrj._.js +3 -0
  286. package/standalone/.next/server/chunks/[root-of-the-server]__0g6p_vk._.js +3 -0
  287. package/standalone/.next/server/chunks/[root-of-the-server]__0geo53e._.js +3 -0
  288. package/standalone/.next/server/chunks/[root-of-the-server]__0gm326z._.js +3 -0
  289. package/standalone/.next/server/chunks/{[root-of-the-server]__17v3iu3._.js → [root-of-the-server]__0h3ebj4._.js} +2 -2
  290. package/standalone/.next/server/chunks/[root-of-the-server]__0ikzng1._.js +3 -0
  291. package/standalone/.next/server/chunks/{[root-of-the-server]__0t_1g6x._.js → [root-of-the-server]__0j_nyf2._.js} +2 -2
  292. package/standalone/.next/server/chunks/[root-of-the-server]__0kdlmtc._.js +3 -0
  293. package/standalone/.next/server/chunks/[root-of-the-server]__0kee07e._.js +3 -0
  294. package/standalone/.next/server/chunks/[root-of-the-server]__0l1u1gn._.js +3 -0
  295. package/standalone/.next/server/chunks/[root-of-the-server]__0ml6lm4._.js +3 -0
  296. package/standalone/.next/server/chunks/[root-of-the-server]__0ml_vg1._.js +3 -0
  297. package/standalone/.next/server/chunks/{[root-of-the-server]__1amrm18._.js → [root-of-the-server]__0n_fyd7._.js} +2 -2
  298. package/standalone/.next/server/chunks/[root-of-the-server]__0ni1vsm._.js +3 -0
  299. package/standalone/.next/server/chunks/[root-of-the-server]__0op0ksd._.js +3 -0
  300. package/standalone/.next/server/chunks/{[root-of-the-server]__1r3djqb._.js → [root-of-the-server]__0or_-9-._.js} +2 -2
  301. package/standalone/.next/server/chunks/[root-of-the-server]__0qevkot._.js +3 -0
  302. package/standalone/.next/server/chunks/[root-of-the-server]__0qw7nbl._.js +3 -0
  303. package/standalone/.next/server/chunks/[root-of-the-server]__0r1_ixf._.js +3 -0
  304. package/standalone/.next/server/chunks/[root-of-the-server]__0r9tzc-._.js +3 -0
  305. package/standalone/.next/server/chunks/[root-of-the-server]__0rblf36._.js +3 -0
  306. package/standalone/.next/server/chunks/[root-of-the-server]__0t8w8s1._.js +3 -0
  307. package/standalone/.next/server/chunks/[root-of-the-server]__0tq7irh._.js +3 -0
  308. package/standalone/.next/server/chunks/[root-of-the-server]__0w92g7m._.js +3 -0
  309. package/standalone/.next/server/chunks/{[root-of-the-server]__1n2pfid._.js → [root-of-the-server]__0x-levx._.js} +2 -2
  310. package/standalone/.next/server/chunks/{[root-of-the-server]__0rwzlp5._.js → [root-of-the-server]__0x-op-8._.js} +2 -2
  311. package/standalone/.next/server/chunks/[root-of-the-server]__0xgvhjp._.js +3 -0
  312. package/standalone/.next/server/chunks/{[root-of-the-server]__0gedsnc._.js → [root-of-the-server]__0xh2c4w._.js} +2 -2
  313. package/standalone/.next/server/chunks/[root-of-the-server]__0y0slxx._.js +3 -0
  314. package/standalone/.next/server/chunks/{[root-of-the-server]__05nr3-b._.js → [root-of-the-server]__1-6j7m7._.js} +2 -2
  315. package/standalone/.next/server/chunks/[root-of-the-server]__10idyu-._.js +3 -0
  316. package/standalone/.next/server/chunks/[root-of-the-server]__10s4sox._.js +3 -0
  317. package/standalone/.next/server/chunks/[root-of-the-server]__11_o01g._.js +3 -0
  318. package/standalone/.next/server/chunks/[root-of-the-server]__11kac51._.js +3 -0
  319. package/standalone/.next/server/chunks/[root-of-the-server]__11kloxg._.js +3 -0
  320. package/standalone/.next/server/chunks/[root-of-the-server]__11l4ah2._.js +3 -0
  321. package/standalone/.next/server/chunks/[root-of-the-server]__144civ6._.js +3 -0
  322. package/standalone/.next/server/chunks/{[root-of-the-server]__0xl63a7._.js → [root-of-the-server]__15vk324._.js} +2 -2
  323. package/standalone/.next/server/chunks/{[root-of-the-server]__004x00m._.js → [root-of-the-server]__1612_6b._.js} +3 -3
  324. package/standalone/.next/server/chunks/{[root-of-the-server]__1w_r8ug._.js → [root-of-the-server]__16ctc_x._.js} +2 -2
  325. package/standalone/.next/server/chunks/[root-of-the-server]__16i9fgq._.js +3 -0
  326. package/standalone/.next/server/chunks/{[root-of-the-server]__0eplbf8._.js → [root-of-the-server]__16za65_._.js} +2 -2
  327. package/standalone/.next/server/chunks/{[root-of-the-server]__0su5xbh._.js → [root-of-the-server]__17uvvtp._.js} +2 -2
  328. package/standalone/.next/server/chunks/{[root-of-the-server]__1ca92tw._.js → [root-of-the-server]__181u-50._.js} +2 -2
  329. package/standalone/.next/server/chunks/[root-of-the-server]__19w7v-1._.js +3 -0
  330. package/standalone/.next/server/chunks/[root-of-the-server]__1_03ry9._.js +3 -0
  331. package/standalone/.next/server/chunks/[root-of-the-server]__1_0sxkf._.js +3 -0
  332. package/standalone/.next/server/chunks/[root-of-the-server]__1bz-ove._.js +3 -0
  333. package/standalone/.next/server/chunks/[root-of-the-server]__1d544vz._.js +3 -0
  334. package/standalone/.next/server/chunks/[root-of-the-server]__1eakyie._.js +3 -0
  335. package/standalone/.next/server/chunks/[root-of-the-server]__1ec06ra._.js +3 -0
  336. package/standalone/.next/server/chunks/[root-of-the-server]__1f4ll78._.js +3 -0
  337. package/standalone/.next/server/chunks/[root-of-the-server]__1fciim1._.js +3 -0
  338. package/standalone/.next/server/chunks/[root-of-the-server]__1fzguue._.js +3 -0
  339. package/standalone/.next/server/chunks/[root-of-the-server]__1g_pm2h._.js +3 -0
  340. package/standalone/.next/server/chunks/[root-of-the-server]__1hehuys._.js +3 -0
  341. package/standalone/.next/server/chunks/[root-of-the-server]__1hkesat._.js +3 -0
  342. package/standalone/.next/server/chunks/[root-of-the-server]__1igabyc._.js +3 -0
  343. package/standalone/.next/server/chunks/[root-of-the-server]__1j3p81t._.js +3 -0
  344. package/standalone/.next/server/chunks/{[root-of-the-server]__1fnlj9e._.js → [root-of-the-server]__1jiqzv7._.js} +2 -2
  345. package/standalone/.next/server/chunks/[root-of-the-server]__1khif08._.js +3 -0
  346. package/standalone/.next/server/chunks/[root-of-the-server]__1l7na8t._.js +3 -0
  347. package/standalone/.next/server/chunks/[root-of-the-server]__1lqk_1l._.js +3 -0
  348. package/standalone/.next/server/chunks/{[root-of-the-server]__1f0zhzz._.js → [root-of-the-server]__1ntp_8b._.js} +2 -2
  349. package/standalone/.next/server/chunks/[root-of-the-server]__1o735xr._.js +3 -0
  350. package/standalone/.next/server/chunks/[root-of-the-server]__1pbz-_z._.js +3 -0
  351. package/standalone/.next/server/chunks/[root-of-the-server]__1pc1fof._.js +3 -0
  352. package/standalone/.next/server/chunks/[root-of-the-server]__1pdsbcp._.js +3 -0
  353. package/standalone/.next/server/chunks/[root-of-the-server]__1rwxvwo._.js +3 -0
  354. package/standalone/.next/server/chunks/[root-of-the-server]__1scazi_._.js +3 -0
  355. package/standalone/.next/server/chunks/[root-of-the-server]__1tercjh._.js +3 -0
  356. package/standalone/.next/server/chunks/[root-of-the-server]__1tufkj3._.js +3 -0
  357. package/standalone/.next/server/chunks/{[root-of-the-server]__1em0xu9._.js → [root-of-the-server]__1tzp9l_._.js} +2 -2
  358. package/standalone/.next/server/chunks/[root-of-the-server]__1tzvm2c._.js +3 -0
  359. package/standalone/.next/server/chunks/{[root-of-the-server]__098thvo._.js → [root-of-the-server]__1u02b33._.js} +2 -2
  360. package/standalone/.next/server/chunks/[root-of-the-server]__1uktrb_._.js +3 -0
  361. package/standalone/.next/server/chunks/[root-of-the-server]__1uuljo2._.js +3 -0
  362. package/standalone/.next/server/chunks/[root-of-the-server]__1uzbfnh._.js +3 -0
  363. package/standalone/.next/server/chunks/[root-of-the-server]__1vo611v._.js +3 -0
  364. package/standalone/.next/server/chunks/{[root-of-the-server]__11_l9kh._.js → [root-of-the-server]__1vvbh64._.js} +2 -2
  365. package/standalone/.next/server/chunks/[root-of-the-server]__1w7xrap._.js +3 -0
  366. package/standalone/.next/server/chunks/[root-of-the-server]__1wf8j4j._.js +3 -0
  367. package/standalone/.next/server/chunks/[root-of-the-server]__1yh9ong._.js +3 -0
  368. package/standalone/.next/server/chunks/[root-of-the-server]__20kepfu._.js +3 -0
  369. package/standalone/.next/server/chunks/[root-of-the-server]__20zeh4u._.js +3 -0
  370. package/standalone/.next/server/chunks/_0_3-lke._.js +1 -0
  371. package/standalone/.next/server/chunks/_0d87yp6._.js +9 -9
  372. package/standalone/.next/server/chunks/_0rjgtla._.js +9 -9
  373. package/standalone/.next/server/chunks/_1_sa5xl._.js +9 -9
  374. package/standalone/.next/server/chunks/_1hmzed-._.js +10 -9
  375. package/standalone/.next/server/chunks/_1pc6dt_._.js +9 -9
  376. package/standalone/.next/server/chunks/_1xuucni._.js +9 -9
  377. package/standalone/.next/server/chunks/_1ya6q3e._.js +9 -9
  378. package/standalone/.next/server/chunks/_next-internal_server_app_icon_svg_route_actions_1r2h_ub.js +3 -0
  379. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0-nmpo4._.js +3 -0
  380. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__035ah95._.js +3 -0
  381. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03htoos._.js +3 -0
  382. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__07g-dcf._.js +3 -0
  383. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__07o9wxs._.js +3 -0
  384. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__07yba-3._.js +3 -0
  385. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0_h6gcn._.js +3 -0
  386. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0a2k3wl._.js +3 -0
  387. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0e2zd6a._.js +3 -0
  388. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ev3co8._.js +15 -0
  389. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0g97wq6._.js +3 -0
  390. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0hffslr._.js +3 -0
  391. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__08m_tud._.js → [root-of-the-server]__0hjxkdi._.js} +2 -2
  392. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0k4ez8d._.js +3 -0
  393. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ku4-gt._.js +3 -0
  394. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0m-hniz._.js +3 -0
  395. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0mz4xqn._.js +3 -0
  396. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0nrhlo1._.js +3 -0
  397. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0nwri5e._.js +3 -0
  398. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0pm0lfb._.js +3 -0
  399. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rz8uku._.js +3 -0
  400. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0teoe9r._.js +3 -0
  401. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0tqu_-g._.js +3 -0
  402. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0trbjua._.js +3 -0
  403. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0trd400._.js +3 -0
  404. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0uitlw_._.js +3 -0
  405. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0vf1nl9._.js +3 -0
  406. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0w7sf8p._.js +3 -0
  407. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0y7poop._.js +3 -0
  408. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0z44pow._.js +3 -0
  409. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0z8pyri._.js +3 -0
  410. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-ekcm6._.js +3 -0
  411. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-kuj-x._.js +3 -0
  412. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-l86k4._.js +3 -0
  413. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-stxfp._.js +3 -0
  414. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-y0-y1._.js +3 -0
  415. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-zjws7._.js +3 -0
  416. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__11_ura1._.js +3 -0
  417. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__11e_ush._.js +3 -0
  418. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__064h18r._.js → [root-of-the-server]__13beyr1._.js} +2 -2
  419. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__144o_m2._.js +3 -0
  420. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__14716hz._.js +3 -0
  421. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__15afg_k._.js +3 -0
  422. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1widz3b._.js → [root-of-the-server]__15i7cjm._.js} +2 -2
  423. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__18hn0ba._.js +3 -0
  424. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__18xaup0._.js +3 -0
  425. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1_kd0zp._.js +3 -0
  426. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1kzbjl5._.js → [root-of-the-server]__1ajyyyc._.js} +3 -3
  427. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1bqsv1x._.js +3 -0
  428. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1dky4g0._.js +33 -0
  429. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1e6s0dp._.js +3 -0
  430. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1eeinxy._.js +3 -0
  431. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1gicvs6._.js +3 -0
  432. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ig0mvn._.js +3 -0
  433. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1jul617._.js +3 -0
  434. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1kmmedb._.js +3 -0
  435. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1lcx3wl._.js +3 -0
  436. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1mkv95v._.js +3 -0
  437. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1mqo265._.js +3 -0
  438. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1n-_juh._.js +3 -0
  439. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1n2bb8k._.js +3 -0
  440. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1okxdoj._.js +3 -0
  441. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1oyf93w._.js +3 -0
  442. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1sibh0c._.js +3 -0
  443. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1u6u95-._.js +3 -0
  444. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ugkys4._.js +3 -0
  445. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1wt2qk7._.js +3 -0
  446. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1xkz789._.js +3 -0
  447. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1zee4_f._.js +3 -0
  448. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__200o9rg._.js +3 -0
  449. package/standalone/.next/server/chunks/ssr/_025obfj._.js +3 -0
  450. package/standalone/.next/server/chunks/ssr/{node_modules_02p3_1f._.js → _06847sj._.js} +2 -2
  451. package/standalone/.next/server/chunks/ssr/{_0158tm3._.js → _06qt0zv._.js} +3 -3
  452. package/standalone/.next/server/chunks/ssr/_07efxez._.js +3 -0
  453. package/standalone/.next/server/chunks/ssr/_09zgs6p._.js +5 -0
  454. package/standalone/.next/server/chunks/ssr/_0b1cffx._.js +3 -0
  455. package/standalone/.next/server/chunks/ssr/_0dk3o3t._.js +1 -1
  456. package/standalone/.next/server/chunks/ssr/{_1unm3n-._.js → _0e-0l2x._.js} +2 -2
  457. package/standalone/.next/server/chunks/ssr/_0g0tkbz._.js +25 -0
  458. package/standalone/.next/server/chunks/ssr/_0ic39-0._.js +3 -0
  459. package/standalone/.next/server/chunks/ssr/_0tdpr8l._.js +24 -0
  460. package/standalone/.next/server/chunks/ssr/{_154hqy7._.js → _0ts4sjm._.js} +3 -3
  461. package/standalone/.next/server/chunks/ssr/_1-hzwuw._.js +9 -0
  462. package/standalone/.next/server/chunks/ssr/{_1gn-87l._.js → _1-nj75c._.js} +2 -2
  463. package/standalone/.next/server/chunks/ssr/_13xt_zi._.js +3 -0
  464. package/standalone/.next/server/chunks/ssr/_147mao_._.js +3 -0
  465. package/standalone/.next/server/chunks/ssr/{_0sbsue7._.js → _1a1rayj._.js} +2 -2
  466. package/standalone/.next/server/chunks/ssr/_1chb2gj._.js +15 -0
  467. package/standalone/.next/server/chunks/ssr/{_1ez5-ch._.js → _1dlzyoe._.js} +2 -2
  468. package/standalone/.next/server/chunks/ssr/_1egb8wy._.js +24 -0
  469. package/standalone/.next/server/chunks/ssr/{_1nbvse5._.js → _1hbqlql._.js} +2 -2
  470. package/standalone/.next/server/chunks/ssr/_1i3r6hw._.js +3 -0
  471. package/standalone/.next/server/chunks/ssr/_1m3dqvf._.js +1 -1
  472. package/standalone/.next/server/chunks/ssr/{_1x300f_._.js → _1mq_tjd._.js} +2 -2
  473. package/standalone/.next/server/chunks/ssr/_1r0si5-._.js +12 -0
  474. package/standalone/.next/server/chunks/ssr/_1snpyu-._.js +37 -0
  475. package/standalone/.next/server/chunks/ssr/_1xwodxm._.js +1 -1
  476. package/standalone/.next/server/chunks/ssr/_1zcjc_c._.js +3 -0
  477. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  478. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  479. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  480. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  481. package/standalone/.next/server/chunks/ssr/{node_modules_1s0gh8q._.js → node_modules_0bu774t._.js} +2 -2
  482. package/standalone/.next/server/chunks/ssr/node_modules_1wi_9si._.js +5 -0
  483. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0tgylba.js → node_modules_next_dist_esm_build_templates_app-page_0-672k_.js} +3 -3
  484. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1o590o6.js → node_modules_next_dist_esm_build_templates_app-page_008b3o9.js} +3 -3
  485. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0zcmig1.js → node_modules_next_dist_esm_build_templates_app-page_01_4ytp.js} +3 -3
  486. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1jkj0iw.js → node_modules_next_dist_esm_build_templates_app-page_02pbsix.js} +3 -3
  487. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1zm3rvo.js → node_modules_next_dist_esm_build_templates_app-page_038kb-1.js} +3 -3
  488. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1hrd-wc.js → node_modules_next_dist_esm_build_templates_app-page_03leii_.js} +3 -3
  489. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1yuldl0.js → node_modules_next_dist_esm_build_templates_app-page_03pxgnn.js} +3 -3
  490. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_085xqtq.js → node_modules_next_dist_esm_build_templates_app-page_03wc4xw.js} +3 -3
  491. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0b6vak2.js → node_modules_next_dist_esm_build_templates_app-page_03zcfgn.js} +3 -3
  492. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1_y22iu.js → node_modules_next_dist_esm_build_templates_app-page_05q45c-.js} +3 -3
  493. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0f7l_36.js → node_modules_next_dist_esm_build_templates_app-page_090wz9v.js} +3 -3
  494. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1uzalot.js → node_modules_next_dist_esm_build_templates_app-page_09ftrsh.js} +3 -3
  495. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1by1zl2.js → node_modules_next_dist_esm_build_templates_app-page_0_bmqt9.js} +3 -3
  496. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_14hxy06.js → node_modules_next_dist_esm_build_templates_app-page_0_f2zhb.js} +3 -3
  497. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_02yxr3j.js → node_modules_next_dist_esm_build_templates_app-page_0aqsfh3.js} +3 -3
  498. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1pb-1cn.js → node_modules_next_dist_esm_build_templates_app-page_0e1ok_t.js} +3 -3
  499. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0fwjf6f.js +4 -0
  500. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0h5b-v-.js +4 -0
  501. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1mbarvg.js → node_modules_next_dist_esm_build_templates_app-page_0lw_a7e.js} +3 -3
  502. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0bdeexv.js → node_modules_next_dist_esm_build_templates_app-page_0ot1zwk.js} +3 -3
  503. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0eoo_7a.js → node_modules_next_dist_esm_build_templates_app-page_0r8c-fl.js} +3 -3
  504. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_077f8c6.js → node_modules_next_dist_esm_build_templates_app-page_0t4zreu.js} +3 -3
  505. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_112wr3q.js → node_modules_next_dist_esm_build_templates_app-page_0uo3ucb.js} +3 -3
  506. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1y93n5x.js → node_modules_next_dist_esm_build_templates_app-page_0vvyt46.js} +3 -3
  507. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1tba1z3.js → node_modules_next_dist_esm_build_templates_app-page_0wq6t0o.js} +3 -3
  508. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1eiqiym.js → node_modules_next_dist_esm_build_templates_app-page_0yg1q4k.js} +3 -3
  509. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0yi50ls.js +4 -0
  510. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0z83u9u.js +4 -0
  511. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0g6u3lp.js → node_modules_next_dist_esm_build_templates_app-page_1-l0_ay.js} +3 -3
  512. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1-mj6vh.js +4 -0
  513. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_14579sb.js → node_modules_next_dist_esm_build_templates_app-page_10kqj-k.js} +3 -3
  514. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1202lax.js +4 -0
  515. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_20q4xrk.js → node_modules_next_dist_esm_build_templates_app-page_134gin2.js} +3 -3
  516. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1iih5li.js → node_modules_next_dist_esm_build_templates_app-page_137fy-f.js} +3 -3
  517. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13fikjq.js +4 -0
  518. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_16t_8tn.js +4 -0
  519. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_17hery2.js +4 -0
  520. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_17mj1uf.js +4 -0
  521. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1xurbbr.js → node_modules_next_dist_esm_build_templates_app-page_18gxi2v.js} +3 -3
  522. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0smv41j.js → node_modules_next_dist_esm_build_templates_app-page_18wj4pk.js} +3 -3
  523. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_19--w_z.js +4 -0
  524. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0wtrya9.js → node_modules_next_dist_esm_build_templates_app-page_1akkj3k.js} +3 -3
  525. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1ydi2cy.js → node_modules_next_dist_esm_build_templates_app-page_1ay9jji.js} +3 -3
  526. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_04__ja9.js → node_modules_next_dist_esm_build_templates_app-page_1bv5aj3.js} +3 -3
  527. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1czk_n8.js +4 -0
  528. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0hzxyia.js → node_modules_next_dist_esm_build_templates_app-page_1gn9yzd.js} +3 -3
  529. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_06zp_1r.js → node_modules_next_dist_esm_build_templates_app-page_1h-bpa4.js} +3 -3
  530. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1dcfsab.js → node_modules_next_dist_esm_build_templates_app-page_1h3cvzp.js} +3 -3
  531. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1hn67of.js +4 -0
  532. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1ho8mq2.js +4 -0
  533. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0hdr4hv.js → node_modules_next_dist_esm_build_templates_app-page_1j761x5.js} +3 -3
  534. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1nmk-3a.js → node_modules_next_dist_esm_build_templates_app-page_1k1-c4m.js} +3 -3
  535. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0ff_50d.js → node_modules_next_dist_esm_build_templates_app-page_1l5_y50.js} +3 -3
  536. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1dbvyom.js → node_modules_next_dist_esm_build_templates_app-page_1mxz5lj.js} +3 -3
  537. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_02wqjcn.js → node_modules_next_dist_esm_build_templates_app-page_1otau14.js} +3 -3
  538. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1pqky12.js +4 -0
  539. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_1se5x-k.js → node_modules_next_dist_esm_build_templates_app-page_1r14hz3.js} +3 -3
  540. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0kifgf3.js → node_modules_next_dist_esm_build_templates_app-page_1slttwv.js} +3 -3
  541. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0skd7bt.js → node_modules_next_dist_esm_build_templates_app-page_1xb7_k7.js} +3 -3
  542. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1xn5cst.js +4 -0
  543. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0f1uh0v.js → node_modules_next_dist_esm_build_templates_app-page_1z_gt73.js} +3 -3
  544. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1zkfifw.js +4 -0
  545. package/standalone/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_05_mrcu.js → node_modules_next_dist_esm_build_templates_app-page_20s0f-i.js} +3 -3
  546. package/standalone/.next/server/chunks/ssr/src_components_agents_agent-detail_tsx_0lfa4ui._.js +18 -18
  547. package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +1 -1
  548. package/standalone/.next/server/chunks/ssr/src_components_builds_coverage-report-page_tsx_1nhwba1._.js +1 -1
  549. package/standalone/.next/server/chunks/ssr/src_components_codebases_codebase-detail-page_tsx_0qfum00._.js +1 -1
  550. package/standalone/.next/server/chunks/ssr/src_components_codebases_repository-detail-page_tsx_20_7wk_._.js +1 -1
  551. package/standalone/.next/server/chunks/ssr/src_components_commands_command-editor_tsx_1xv-unm._.js +3 -3
  552. package/standalone/.next/server/chunks/ssr/src_components_devices_device-detail-page_tsx_1mut_l4._.js +1 -1
  553. package/standalone/.next/server/chunks/ssr/src_components_github_pull-request-detail-page_tsx_1etlamp._.js +2 -2
  554. package/standalone/.next/server/chunks/ssr/src_components_jira_ticket-detail-page_tsx_0vmf8nk._.js +7 -7
  555. package/standalone/.next/server/chunks/ssr/src_components_runs_run-detail-page_tsx_0eje87-._.js +1 -1
  556. package/standalone/.next/server/chunks/ssr/src_components_skills_skill-sync-page_tsx_15sidhb._.js +12 -12
  557. package/standalone/.next/server/chunks/ssr/src_components_skills_skills-page_tsx_0o1nlbg._.js +1 -1
  558. package/standalone/.next/server/chunks/ssr/src_components_workflows_workflow-detail-page_tsx_11_poqr._.js +7 -7
  559. package/standalone/.next/server/chunks/ssr/src_components_workflows_workflow-editor_tsx_1eo69h2._.js +7 -7
  560. package/standalone/.next/server/chunks/ssr/src_components_workflows_workflow-run-page_tsx_03cgynn._.js +4 -4
  561. package/standalone/.next/server/chunks/ssr/src_components_worktrees_worktree-detail-page_tsx_1oexgu_._.js +1 -1
  562. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  563. package/standalone/.next/server/pages/404.html +1 -1
  564. package/standalone/.next/server/pages/500.html +1 -1
  565. package/standalone/.next/server/server-reference-manifest.js +1 -1
  566. package/standalone/.next/server/server-reference-manifest.json +1 -1
  567. package/standalone/.next/static/chunks/01q2vyen_ce8a.js +1 -0
  568. package/standalone/.next/static/chunks/{2k5n-lawvi3o1.js → 04jsbc3dt_7ts.js} +3 -3
  569. package/standalone/.next/static/chunks/06tyjb620cbtm.js +39 -0
  570. package/standalone/.next/static/chunks/{1kas2cg1m9t70.js → 07qig47782u92.js} +6 -6
  571. package/standalone/.next/static/chunks/{1popvhaprqxtf.js → 0__52m82mb813.js} +1 -1
  572. package/standalone/.next/static/chunks/0amptqqp7g_4p.js +70 -0
  573. package/standalone/.next/static/chunks/0dvxk1d0c5efv.js +7 -0
  574. package/standalone/.next/static/chunks/{127vn4wn5xo9p.js → 0fn-0e786o11o.js} +3 -3
  575. package/standalone/.next/static/chunks/0hnb8r3udr7oj.js +25 -0
  576. package/standalone/.next/static/chunks/{2aacfhrhmknxw.js → 0hvalyqqhd-4o.js} +2 -2
  577. package/standalone/.next/static/chunks/{2lfmdc3eqlsl4.js → 0l0h3yubj1bdg.js} +16 -16
  578. package/standalone/.next/static/chunks/0mjbaieh2cw9c.js +57 -0
  579. package/standalone/.next/static/chunks/0rpvchqvbm098.js +23 -0
  580. package/standalone/.next/static/chunks/0y62m0sntgzlm.js +53 -0
  581. package/standalone/.next/static/chunks/{0p13j9urobwc7.js → 1-ndkr7vsh2gq.js} +7 -7
  582. package/standalone/.next/static/chunks/11vbtbe3bdmib.js +3 -0
  583. package/standalone/.next/static/chunks/18_207ca9ukri.js +1 -0
  584. package/standalone/.next/static/chunks/{1z4uktkhpz4vk.js → 1_-2dp_akd95c.js} +1 -1
  585. package/standalone/.next/static/chunks/1c-_4oyuwq6p3.js +44 -0
  586. package/standalone/.next/static/chunks/{0wrm-zqne-dc8.js → 1hc0heoo_7i6w.js} +2 -2
  587. package/standalone/.next/static/chunks/{1-byqle1eur_a.js → 1vju42dbb-gss.js} +3 -3
  588. package/standalone/.next/static/chunks/1wsg5uvoyqzsp.css +1 -0
  589. package/standalone/.next/static/chunks/{3ye3zhdcg2lbq.js → 1z6o-8xmt_zvj.js} +1 -1
  590. package/standalone/.next/static/chunks/20z0cvtyjnn0k.js +43 -0
  591. package/standalone/.next/static/chunks/21bdd18tijh33.js +13 -0
  592. package/standalone/.next/static/chunks/2g1ief1a6roxm.js +1 -0
  593. package/standalone/.next/static/chunks/{2wsr9efe8r8ng.js → 2k0lm6xr9n_ig.js} +3 -3
  594. package/standalone/.next/static/chunks/2laye-cbzd0tg.js +1 -0
  595. package/standalone/.next/static/chunks/2nw1o_yz_umap.js +55 -0
  596. package/standalone/.next/static/chunks/{3uhr-ha19zo61.js → 2y09df4g71_oa.js} +2 -2
  597. package/standalone/.next/static/chunks/34g6qbzum3s6q.js +1 -0
  598. package/standalone/.next/static/chunks/374hkjjfwde07.js +32 -0
  599. package/standalone/.next/static/chunks/{21xk5pyunaike.js → 377pgxfs8c9y-.js} +3 -3
  600. package/standalone/.next/static/chunks/3fellkr6r7h3t.js +51 -0
  601. package/standalone/.next/static/chunks/3ky4kw_4ew238.js +1 -0
  602. package/standalone/.next/static/chunks/3n_vmfpc6xzx9.js +1 -0
  603. package/standalone/.next/static/chunks/3q1klrvg32u6u.js +30 -0
  604. package/standalone/.next/static/chunks/{34wlxu_g_2g1y.js → 3stdfz7pphow6.js} +2 -2
  605. package/standalone/.next/static/media/icon.2eq-kzgm9x62k.svg +7 -0
  606. package/standalone/package.json +10 -0
  607. package/standalone/public/icon-192.png +0 -0
  608. package/standalone/public/icon-512.png +0 -0
  609. package/standalone/.next/server/app/favicon.ico/route/app-paths-manifest.json +0 -3
  610. package/standalone/.next/server/app/favicon.ico/route.js +0 -8
  611. package/standalone/.next/server/app/favicon.ico.body +0 -0
  612. package/standalone/.next/server/app/favicon.ico.meta +0 -1
  613. package/standalone/.next/server/chunks/[root-of-the-server]__0b-lts3._.js +0 -3
  614. package/standalone/.next/server/chunks/[root-of-the-server]__0ckici0._.js +0 -3
  615. package/standalone/.next/server/chunks/[root-of-the-server]__0dsyjgc._.js +0 -3
  616. package/standalone/.next/server/chunks/[root-of-the-server]__0fv-9n6._.js +0 -3
  617. package/standalone/.next/server/chunks/[root-of-the-server]__0gorac4._.js +0 -3
  618. package/standalone/.next/server/chunks/[root-of-the-server]__0hd0i41._.js +0 -3
  619. package/standalone/.next/server/chunks/[root-of-the-server]__0hyrrl3._.js +0 -3
  620. package/standalone/.next/server/chunks/[root-of-the-server]__0kxris6._.js +0 -3
  621. package/standalone/.next/server/chunks/[root-of-the-server]__0lbyvuf._.js +0 -3
  622. package/standalone/.next/server/chunks/[root-of-the-server]__0lmlzy2._.js +0 -3
  623. package/standalone/.next/server/chunks/[root-of-the-server]__0lpn3y3._.js +0 -3
  624. package/standalone/.next/server/chunks/[root-of-the-server]__0o1f0q0._.js +0 -3
  625. package/standalone/.next/server/chunks/[root-of-the-server]__0o2vsff._.js +0 -3
  626. package/standalone/.next/server/chunks/[root-of-the-server]__0o__n8q._.js +0 -3
  627. package/standalone/.next/server/chunks/[root-of-the-server]__0r4layw._.js +0 -3
  628. package/standalone/.next/server/chunks/[root-of-the-server]__0r6qwbg._.js +0 -3
  629. package/standalone/.next/server/chunks/[root-of-the-server]__0r_1lyd._.js +0 -3
  630. package/standalone/.next/server/chunks/[root-of-the-server]__0umrmgu._.js +0 -3
  631. package/standalone/.next/server/chunks/[root-of-the-server]__0xxlq9f._.js +0 -3
  632. package/standalone/.next/server/chunks/[root-of-the-server]__0ynqgwd._.js +0 -3
  633. package/standalone/.next/server/chunks/[root-of-the-server]__0yo97yw._.js +0 -3
  634. package/standalone/.next/server/chunks/[root-of-the-server]__0yukdx0._.js +0 -3
  635. package/standalone/.next/server/chunks/[root-of-the-server]__0zdquaj._.js +0 -3
  636. package/standalone/.next/server/chunks/[root-of-the-server]__0zl_7f0._.js +0 -3
  637. package/standalone/.next/server/chunks/[root-of-the-server]__1-6ac7x._.js +0 -3
  638. package/standalone/.next/server/chunks/[root-of-the-server]__10ax2y3._.js +0 -3
  639. package/standalone/.next/server/chunks/[root-of-the-server]__111axgx._.js +0 -3
  640. package/standalone/.next/server/chunks/[root-of-the-server]__112_ym-._.js +0 -3
  641. package/standalone/.next/server/chunks/[root-of-the-server]__13atbqs._.js +0 -3
  642. package/standalone/.next/server/chunks/[root-of-the-server]__13f0rv7._.js +0 -3
  643. package/standalone/.next/server/chunks/[root-of-the-server]__13ghplc._.js +0 -3
  644. package/standalone/.next/server/chunks/[root-of-the-server]__13y3ap6._.js +0 -3
  645. package/standalone/.next/server/chunks/[root-of-the-server]__145854p._.js +0 -3
  646. package/standalone/.next/server/chunks/[root-of-the-server]__156bqk6._.js +0 -3
  647. package/standalone/.next/server/chunks/[root-of-the-server]__15anbvu._.js +0 -3
  648. package/standalone/.next/server/chunks/[root-of-the-server]__15fe1ky._.js +0 -3
  649. package/standalone/.next/server/chunks/[root-of-the-server]__16gno9l._.js +0 -3
  650. package/standalone/.next/server/chunks/[root-of-the-server]__16y0jw6._.js +0 -3
  651. package/standalone/.next/server/chunks/[root-of-the-server]__17xi013._.js +0 -3
  652. package/standalone/.next/server/chunks/[root-of-the-server]__19yjsxi._.js +0 -3
  653. package/standalone/.next/server/chunks/[root-of-the-server]__1__181r._.js +0 -3
  654. package/standalone/.next/server/chunks/[root-of-the-server]__1_j58hk._.js +0 -3
  655. package/standalone/.next/server/chunks/[root-of-the-server]__1_u7utj._.js +0 -3
  656. package/standalone/.next/server/chunks/[root-of-the-server]__1_xypu8._.js +0 -3
  657. package/standalone/.next/server/chunks/[root-of-the-server]__1a9n6nb._.js +0 -3
  658. package/standalone/.next/server/chunks/[root-of-the-server]__1ahn_s1._.js +0 -3
  659. package/standalone/.next/server/chunks/[root-of-the-server]__1c93he1._.js +0 -3
  660. package/standalone/.next/server/chunks/[root-of-the-server]__1d2p5s7._.js +0 -3
  661. package/standalone/.next/server/chunks/[root-of-the-server]__1e-y964._.js +0 -3
  662. package/standalone/.next/server/chunks/[root-of-the-server]__1fjzpw8._.js +0 -3
  663. package/standalone/.next/server/chunks/[root-of-the-server]__1gg0deb._.js +0 -3
  664. package/standalone/.next/server/chunks/[root-of-the-server]__1isy66r._.js +0 -3
  665. package/standalone/.next/server/chunks/[root-of-the-server]__1iueadp._.js +0 -3
  666. package/standalone/.next/server/chunks/[root-of-the-server]__1lgrdmb._.js +0 -3
  667. package/standalone/.next/server/chunks/[root-of-the-server]__1ltxl89._.js +0 -3
  668. package/standalone/.next/server/chunks/[root-of-the-server]__1pchrv1._.js +0 -3
  669. package/standalone/.next/server/chunks/[root-of-the-server]__1q3qhn3._.js +0 -3
  670. package/standalone/.next/server/chunks/[root-of-the-server]__1r6cfp_._.js +0 -3
  671. package/standalone/.next/server/chunks/[root-of-the-server]__1rkrr9y._.js +0 -3
  672. package/standalone/.next/server/chunks/[root-of-the-server]__1s_oovo._.js +0 -3
  673. package/standalone/.next/server/chunks/[root-of-the-server]__1syfm5l._.js +0 -3
  674. package/standalone/.next/server/chunks/[root-of-the-server]__1t_2g9l._.js +0 -3
  675. package/standalone/.next/server/chunks/[root-of-the-server]__1ug9sy_._.js +0 -3
  676. package/standalone/.next/server/chunks/[root-of-the-server]__1v6-hkq._.js +0 -3
  677. package/standalone/.next/server/chunks/[root-of-the-server]__1va_ptf._.js +0 -3
  678. package/standalone/.next/server/chunks/[root-of-the-server]__1w83ks0._.js +0 -3
  679. package/standalone/.next/server/chunks/[root-of-the-server]__1wgorxu._.js +0 -3
  680. package/standalone/.next/server/chunks/[root-of-the-server]__1xh8f1z._.js +0 -3
  681. package/standalone/.next/server/chunks/[root-of-the-server]__1xqq0j2._.js +0 -3
  682. package/standalone/.next/server/chunks/[root-of-the-server]__1z1b8w4._.js +0 -3
  683. package/standalone/.next/server/chunks/[root-of-the-server]__1z8eo0j._.js +0 -3
  684. package/standalone/.next/server/chunks/[root-of-the-server]__20zebdq._.js +0 -3
  685. package/standalone/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js +0 -3
  686. package/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_12f2k_b.js +0 -3
  687. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__00uq46v._.js +0 -3
  688. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__02elc4g._.js +0 -3
  689. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__04c97bb._.js +0 -3
  690. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__04xf3ag._.js +0 -3
  691. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__07ll4k6._.js +0 -3
  692. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__07n9grt._.js +0 -33
  693. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__07tjxzu._.js +0 -3
  694. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__08ejrsg._.js +0 -3
  695. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bma97u._.js +0 -3
  696. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0eit075._.js +0 -3
  697. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0fna0ss._.js +0 -3
  698. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0fr4t3a._.js +0 -3
  699. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0je1dve._.js +0 -15
  700. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0kpe44c._.js +0 -3
  701. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0luabbk._.js +0 -3
  702. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0lx9l_f._.js +0 -3
  703. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0mz8y_c._.js +0 -3
  704. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0n_5fva._.js +0 -3
  705. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0nk-dzm._.js +0 -3
  706. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rz06z_._.js +0 -3
  707. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0sb9d8p._.js +0 -3
  708. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0thf6sn._.js +0 -3
  709. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0v12ijp._.js +0 -3
  710. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0v1983v._.js +0 -3
  711. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0vcitsv._.js +0 -3
  712. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0w5ulwk._.js +0 -3
  713. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0xkr833._.js +0 -3
  714. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0yzhwyk._.js +0 -3
  715. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0zec7p7._.js +0 -3
  716. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-90lov._.js +0 -3
  717. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-_p_qq._.js +0 -3
  718. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__11awuie._.js +0 -3
  719. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__12ku6cw._.js +0 -3
  720. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__14-uizx._.js +0 -3
  721. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__14chm3s._.js +0 -3
  722. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__16x-dmx._.js +0 -3
  723. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__17wdy3b._.js +0 -3
  724. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__19_10zh._.js +0 -3
  725. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__19ax-rn._.js +0 -3
  726. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1_2wurn._.js +0 -3
  727. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1_9pu1p._.js +0 -3
  728. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1anikxb._.js +0 -3
  729. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1apyr4v._.js +0 -3
  730. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1b7x-gi._.js +0 -3
  731. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1d2v_4j._.js +0 -3
  732. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1drn6gh._.js +0 -3
  733. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1e24bk6._.js +0 -3
  734. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1elw11q._.js +0 -3
  735. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1etaslh._.js +0 -3
  736. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ffhy4j._.js +0 -3
  737. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1fvxa1t._.js +0 -3
  738. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1gx_mk6._.js +0 -3
  739. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1iccye4._.js +0 -3
  740. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1j9gekm._.js +0 -3
  741. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1jn7aum._.js +0 -3
  742. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ls11kh._.js +0 -3
  743. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1mo8hpx._.js +0 -3
  744. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1nqgwrd._.js +0 -3
  745. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1o0ywwj._.js +0 -3
  746. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1rq6nd_._.js +0 -3
  747. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1t-qpvq._.js +0 -3
  748. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1w5imbd._.js +0 -3
  749. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1x1khxx._.js +0 -3
  750. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1yedlq7._.js +0 -3
  751. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1yqj3eh._.js +0 -3
  752. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1z8_be-._.js +0 -3
  753. package/standalone/.next/server/chunks/ssr/_0-20-v5._.js +0 -3
  754. package/standalone/.next/server/chunks/ssr/_022u7lb._.js +0 -15
  755. package/standalone/.next/server/chunks/ssr/_0aif1-g._.js +0 -3
  756. package/standalone/.next/server/chunks/ssr/_0q5nll1._.js +0 -3
  757. package/standalone/.next/server/chunks/ssr/_0ro_o-3._.js +0 -24
  758. package/standalone/.next/server/chunks/ssr/_1-etco5._.js +0 -12
  759. package/standalone/.next/server/chunks/ssr/_1boywnc._.js +0 -9
  760. package/standalone/.next/server/chunks/ssr/_1i-_huq._.js +0 -5
  761. package/standalone/.next/server/chunks/ssr/_1njj5e5._.js +0 -25
  762. package/standalone/.next/server/chunks/ssr/_1nzjoqj._.js +0 -3
  763. package/standalone/.next/server/chunks/ssr/_1slu_v-._.js +0 -3
  764. package/standalone/.next/server/chunks/ssr/_1vx8nbn._.js +0 -3
  765. package/standalone/.next/server/chunks/ssr/_1wpqpq_._.js +0 -3
  766. package/standalone/.next/server/chunks/ssr/_1ws3tm8._.js +0 -24
  767. package/standalone/.next/server/chunks/ssr/_1ylzm6_._.js +0 -37
  768. package/standalone/.next/server/chunks/ssr/node_modules_0obs0k7._.js +0 -5
  769. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_038at4x.js +0 -4
  770. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_09bttv_.js +0 -4
  771. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0_5tfxq.js +0 -4
  772. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0nkrcoy.js +0 -4
  773. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ogmjlq.js +0 -4
  774. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0s--as4.js +0 -4
  775. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0tagqyx.js +0 -4
  776. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0umjl9n.js +0 -4
  777. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1fpliw9.js +0 -4
  778. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1j8f218.js +0 -4
  779. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1qpzaji.js +0 -4
  780. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1tdf2_q.js +0 -4
  781. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1u5u2q0.js +0 -4
  782. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1vejq7c.js +0 -4
  783. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1wdd1jv.js +0 -4
  784. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1yri3x5.js +0 -4
  785. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1yvxa-k.js +0 -4
  786. package/standalone/.next/static/chunks/04tejuwcye2k_.js +0 -30
  787. package/standalone/.next/static/chunks/0_wr9h6ckp7r5.js +0 -1
  788. package/standalone/.next/static/chunks/0d3rasr6tb96l.js +0 -23
  789. package/standalone/.next/static/chunks/0mcuo36rz9j57.js +0 -55
  790. package/standalone/.next/static/chunks/0mpcmi3wv5r7o.js +0 -53
  791. package/standalone/.next/static/chunks/0sjb80e36gqfr.js +0 -32
  792. package/standalone/.next/static/chunks/0tm0ig453t45q.js +0 -25
  793. package/standalone/.next/static/chunks/1gkhfdfmj-oh0.js +0 -43
  794. package/standalone/.next/static/chunks/1rcjbru7lya3t.js +0 -7
  795. package/standalone/.next/static/chunks/2-m873nllx-qf.js +0 -1
  796. package/standalone/.next/static/chunks/26ae644jaqnvj.js +0 -70
  797. package/standalone/.next/static/chunks/26nqjwc9aov2w.js +0 -1
  798. package/standalone/.next/static/chunks/28wabrg9wpe9k.js +0 -1
  799. package/standalone/.next/static/chunks/28xkjksksnsd_.css +0 -1
  800. package/standalone/.next/static/chunks/2aehz_h31je08.js +0 -1
  801. package/standalone/.next/static/chunks/2d6gk7-wy11nz.js +0 -13
  802. package/standalone/.next/static/chunks/2i5bog52_4l9l.js +0 -57
  803. package/standalone/.next/static/chunks/2m8956anouml3.js +0 -51
  804. package/standalone/.next/static/chunks/2svylmgfm08d9.js +0 -44
  805. package/standalone/.next/static/chunks/3nme8562ujl6t.js +0 -1
  806. package/standalone/.next/static/chunks/3vcuwpsqnytof.js +0 -3
  807. package/standalone/.next/static/chunks/41s0n0dd89v1t.js +0 -39
  808. package/standalone/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
  809. /package/standalone/.next/server/app/{favicon.ico → icon.svg}/route/build-manifest.json +0 -0
  810. /package/standalone/.next/server/app/{favicon.ico → icon.svg}/route.js.map +0 -0
  811. /package/standalone/.next/static/{d77QrJpn4kUxmG3bXgnZw → ceEq0H86em_AtOEUk-8ni}/_buildManifest.js +0 -0
  812. /package/standalone/.next/static/{d77QrJpn4kUxmG3bXgnZw → ceEq0H86em_AtOEUk-8ni}/_clientMiddlewareManifest.js +0 -0
  813. /package/standalone/.next/static/{d77QrJpn4kUxmG3bXgnZw → ceEq0H86em_AtOEUk-8ni}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,885325,e=>{"use strict";var t=e.i(843476),i=e.i(876561),s=e.i(711241),a=e.i(689664),n=e.i(508734),l=e.i(762368),r=e.i(456420);let d=(0,r.default)("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),o=(0,r.default)("chart-no-axes-column",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]]);var c=e.i(716327),u=e.i(867927),m=e.i(489002),x=e.i(573474),p=e.i(861745),h=e.i(948148),g=e.i(271645),f=e.i(340953),j=e.i(119756),b=e.i(929592),v=e.i(487486),y=e.i(519455),C=e.i(515288),S=e.i(816484),T=e.i(320228),w=e.i(82612),N=e.i(987968),I=e.i(677572),A=e.i(784774),k=e.i(520133),E=e.i(462777),P=e.i(637611),D=e.i(975157),B=e.i(171502),R=e.i(90969),L=e.i(688194),$=e.i(776639),O=e.i(110204),U=e.i(967489),F=e.i(360583);let M=`query BuildSigningOptions($buildId: ID!) {
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,885325,e=>{"use strict";var t=e.i(843476),i=e.i(876561),s=e.i(711241),a=e.i(689664),n=e.i(508734),l=e.i(762368),r=e.i(456420);let d=(0,r.default)("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),o=(0,r.default)("chart-no-axes-column",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]]);var c=e.i(716327),u=e.i(867927),m=e.i(489002),x=e.i(573474),p=e.i(861745),h=e.i(948148),g=e.i(271645),f=e.i(340953),j=e.i(119756),b=e.i(929592),v=e.i(487486),y=e.i(519455),S=e.i(515288),C=e.i(816484),T=e.i(320228),w=e.i(82612),N=e.i(987968),I=e.i(677572),A=e.i(784774),k=e.i(520133),E=e.i(462777),P=e.i(637611),D=e.i(975157),R=e.i(171502),B=e.i(90969),L=e.i(688194),$=e.i(776639),O=e.i(110204),U=e.i(967489),F=e.i(360583);let M=`query BuildSigningOptions($buildId: ID!) {
2
2
  buildSigningOptions(buildId: $buildId) {
3
3
  teams { id name }
4
4
  identities { sha1 name teamId }
@@ -8,9 +8,9 @@
8
8
  }
9
9
  bundles { bundleId name relativePath embeddedProfileUuid embeddedProfileName }
10
10
  }
11
- }`;function q(e,t,i,s){let a=L.EXPORT_METHOD_PROFILE_TYPES[i];return e.filter(e=>e.type===a&&!e.expired&&(0===e.platforms.length||e.platforms.includes("iOS"))&&(0,L.profileCoversBundle)(e.bundleId,t)&&(!s||!e.teamId||e.teamId===s))}function V({buildId:e,open:i,onOpenChange:s,onSaved:a}){let n=(0,h.useTranslations)("builds"),l=(0,p.useLocale)(),[r,d]=(0,g.useState)("DEBUGGING"),[o,c]=(0,g.useState)("AUTOMATIC"),[u,m]=(0,g.useState)(""),[x,f]=(0,g.useState)(""),[j,v]=(0,g.useState)({}),[C,S]=(0,g.useState)(!1),[T,w]=(0,g.useState)(null),[I,A]=(0,g.useState)(!1),[k,D]=(0,g.useState)(!1),[B,R]=(0,g.useState)(null),[_,H]=(0,g.useState)(null),z=(0,g.useCallback)(async()=>{A(!0),H(null);try{let t=await (0,P.controlPlaneRequest)(M,{buildId:e});w(t.buildSigningOptions);let i=t.buildSigningOptions.bundles.map(e=>t.buildSigningOptions.profiles.find(t=>t.uuid===e.embeddedProfileUuid)).find(e=>e?.teamId);i?.teamId?m(i.teamId):1===t.buildSigningOptions.teams.length&&m(t.buildSigningOptions.teams[0].id)}catch(e){H(e instanceof Error?e.message:String(e))}finally{A(!1)}},[e]);(0,g.useEffect)(()=>{if(!i)return;let e=window.setTimeout(()=>void z(),0);return()=>window.clearTimeout(e)},[i,z]);let G=`${r}:${u}`,[W,X]=(0,g.useState)(G);G!==W&&(X(G),v({}),f(""));let K="MANUAL"===o,J=Object.fromEntries((T?.bundles??[]).flatMap(e=>{let t=q(T?.profiles??[],e.bundleId,r,u),i=j[e.bundleId]??function(e,t){if(!e.length)return null;let i=e.find(e=>e.uuid===t.embeddedProfileUuid);return i||[...e].sort((e,t)=>(t.expiresAt??"").localeCompare(e.expiresAt??""))[0]}(t,e)?.uuid;return i?[[e.bundleId,i]]:[]})),Q=Object.values(J).flatMap(e=>{let t=T?.profiles.find(t=>t.uuid===e);return t?[t]:[]}),Y=Q.length>0&&Q.every(e=>e.certificateSha1s?.length),Z=(T?.identities??[]).filter(e=>Y?Q.every(t=>t.certificateSha1s.includes(e.sha1.toUpperCase())):!u||!e.teamId||e.teamId===u),ee=Z.some(e=>e.sha1===x)?x:"",et=async()=>{D(!0);try{await (0,P.controlPlaneRequest)(`mutation ExportArchive($input: ExportBuildArchiveInput!) {
11
+ }`;function q(e,t,i,s){let a=L.EXPORT_METHOD_PROFILE_TYPES[i];return e.filter(e=>e.type===a&&!e.expired&&(0===e.platforms.length||e.platforms.includes("iOS"))&&(0,L.profileCoversBundle)(e.bundleId,t)&&(!s||!e.teamId||e.teamId===s))}function V({buildId:e,open:i,onOpenChange:s,onSaved:a}){let n=(0,h.useTranslations)("builds"),l=(0,p.useLocale)(),[r,d]=(0,g.useState)("DEBUGGING"),[o,c]=(0,g.useState)("AUTOMATIC"),[u,m]=(0,g.useState)(""),[x,f]=(0,g.useState)(""),[j,v]=(0,g.useState)({}),[S,C]=(0,g.useState)(!1),[T,w]=(0,g.useState)(null),[I,A]=(0,g.useState)(!1),[k,D]=(0,g.useState)(!1),[R,B]=(0,g.useState)(null),[_,H]=(0,g.useState)(null),G=(0,g.useCallback)(async()=>{A(!0),H(null);try{let t=await (0,P.controlPlaneRequest)(M,{buildId:e});w(t.buildSigningOptions);let i=t.buildSigningOptions.bundles.map(e=>t.buildSigningOptions.profiles.find(t=>t.uuid===e.embeddedProfileUuid)).find(e=>e?.teamId);i?.teamId?m(i.teamId):1===t.buildSigningOptions.teams.length&&m(t.buildSigningOptions.teams[0].id)}catch(e){H(e instanceof Error?e.message:String(e))}finally{A(!1)}},[e]);(0,g.useEffect)(()=>{if(!i)return;let e=window.setTimeout(()=>void G(),0);return()=>window.clearTimeout(e)},[i,G]);let z=`${r}:${u}`,[W,X]=(0,g.useState)(z);z!==W&&(X(z),v({}),f(""));let K="MANUAL"===o,J=Object.fromEntries((T?.bundles??[]).flatMap(e=>{let t=q(T?.profiles??[],e.bundleId,r,u),i=j[e.bundleId]??function(e,t){if(!e.length)return null;let i=e.find(e=>e.uuid===t.embeddedProfileUuid);return i||[...e].sort((e,t)=>(t.expiresAt??"").localeCompare(e.expiresAt??""))[0]}(t,e)?.uuid;return i?[[e.bundleId,i]]:[]})),Q=Object.values(J).flatMap(e=>{let t=T?.profiles.find(t=>t.uuid===e);return t?[t]:[]}),Y=Q.length>0&&Q.every(e=>e.certificateSha1s?.length),Z=(T?.identities??[]).filter(e=>Y?Q.every(t=>t.certificateSha1s.includes(e.sha1.toUpperCase())):!u||!e.teamId||e.teamId===u),ee=Z.some(e=>e.sha1===x)?x:"",et=async()=>{D(!0);try{await (0,P.controlPlaneRequest)(`mutation ExportArchive($input: ExportBuildArchiveInput!) {
12
12
  exportBuildArchive(input: $input) { id status }
13
- }`,{input:{buildId:e,requestId:(0,E.createClientId)(),settings:{method:r,signingStyle:o,teamId:u||null,signingCertificate:ee?Z.find(e=>e.sha1===ee)?.name??null:null,provisioningProfiles:K?J:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1,stripSwiftSymbols:!0,thinning:null,iCloudContainerEnvironment:null,distributionBundleIdentifier:null}}}),await a(),s(!1)}catch(e){R(e instanceof Error?e.message:String(e))}finally{D(!1)}},ei=K&&(T?.bundles??[]).some(e=>!J[e.bundleId]);return(0,t.jsx)($.Dialog,{onOpenChange:s,open:i,children:(0,t.jsxs)($.DialogContent,{className:"max-h-[85vh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsxs)($.DialogHeader,{children:[(0,t.jsx)($.DialogTitle,{children:n("exportArchive")}),(0,t.jsx)($.DialogDescription,{children:n("exportArchiveDescription")})]}),B&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:B})}),_&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsxs)(b.AlertDescription,{children:[n("signingOptionsFailed")," ",_]})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("distributionMethod")}),(0,t.jsxs)(U.Select,{onValueChange:e=>d(e),value:r,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{})}),(0,t.jsx)(U.SelectContent,{children:L.BUILD_EXPORT_METHODS.map(e=>(0,t.jsx)(U.SelectItem,{value:e,children:n(`exportMethod.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("developmentTeam")}),(0,t.jsxs)(U.Select,{disabled:I||!T?.teams.length,onValueChange:m,value:u,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:I?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(U.SelectValue,{placeholder:n("selectTeam")})}),(0,t.jsx)(U.SelectContent,{children:(T?.teams??[]).map(e=>(0,t.jsxs)(U.SelectItem,{value:e.id,children:[e.name," (",e.id,")"]},e.id))})]}),!I&&T&&!T.teams.length&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("noTeams")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("signingStyle")}),(0,t.jsxs)(U.Select,{onValueChange:c,value:o,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{})}),(0,t.jsxs)(U.SelectContent,{children:[(0,t.jsx)(U.SelectItem,{value:"AUTOMATIC",children:n("automatic")}),(0,t.jsx)(U.SelectItem,{value:"MANUAL",children:n("manual")})]})]})]}),K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("signingCertificate")}),(0,t.jsxs)(U.Select,{disabled:I||!Z.length,onValueChange:f,value:ee,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{placeholder:n("certificateAutomatic")})}),(0,t.jsx)(U.SelectContent,{children:Z.map(e=>(0,t.jsx)(U.SelectItem,{value:e.sha1,children:e.name},e.sha1))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(O.Label,{children:n("provisioningProfiles")}),(0,t.jsx)(y.Button,{onClick:()=>S(e=>!e),size:"sm",type:"button",variant:"ghost",children:C?n("showMatching"):n("showAllProfiles")})]}),I&&(0,t.jsx)(N.Spinner,{}),!I&&!T?.bundles.length&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("noArchiveBundles")}),(T?.bundles??[]).map(e=>{let i=q(T?.profiles??[],e.bundleId,r,u),s=C?(T?.profiles??[]).filter(t=>(0,L.profileCoversBundle)(t.bundleId,e.bundleId)):i;return(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,t.jsx)("p",{className:"mb-2 break-all font-mono text-xs text-muted-foreground",children:e.bundleId}),(0,t.jsxs)(U.Select,{onValueChange:t=>v(i=>({...i,[e.bundleId]:t})),value:J[e.bundleId]??"",children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{placeholder:n("selectProfile")})}),(0,t.jsx)(U.SelectContent,{children:s.map(e=>{let i;return(0,t.jsxs)(U.SelectItem,{value:e.uuid,children:[(i=e.expiresAt?(0,F.formatDateValue)(e.expiresAt,"short",{locale:l,showTime:!1}):null)?`${e.name} — ${i}`:e.name,e.expired?` (${n("profileExpired")})`:""]},e.uuid)})})]}),!i.length&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("noMatchingProfiles")})]},e.bundleId)})]})]})]}),(0,t.jsxs)($.DialogFooter,{children:[(0,t.jsx)(y.Button,{onClick:()=>s(!1),variant:"outline",children:n("cancel")}),(0,t.jsxs)(y.Button,{disabled:k||ei,onClick:()=>void et(),children:[k&&(0,t.jsx)(N.Spinner,{})," ",n("exportArchive")]})]})]})})}let _=(0,r.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var H=e.i(986206);let z=null;function G(){return z??={origin:window.location.origin,secure:"https:"===window.location.protocol,apple:/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&(navigator.maxTouchPoints??0)>1}}let W=()=>()=>{};function X({buildId:e,artifactId:i,metadata:s,publicOrigin:a}){let n=(0,h.useTranslations)("builds"),l=(0,g.useSyncExternalStore)(W,G,()=>null),[r,d]=(0,g.useState)(!1),[o,c]=(0,g.useState)(!1),u=`/api/public/builds/${encodeURIComponent(e)}/artifacts/${encodeURIComponent(i)}`,m=a??l,x=m?`${m.origin}${u}/manifest.plist`:null,p=l?m?.secure?"APP_STORE_CONNECT"===s.exportMethod?n("installNotSupportedForAppStore"):"string"!=typeof s.bundleIdentifier?n("installMissingBundleIdentifier"):null:n("installRequiresHttps"):null,f=!l||!l.apple||null!==p||r,j=async()=>{if(x){d(!0);try{await fetch(u,{method:"HEAD"}).catch(()=>{}),window.location.href=`itms-services://?action=download-manifest&url=${encodeURIComponent(x)}`}finally{d(!1)}}},b=async()=>{let e=m?.origin??window.location.origin;await (0,E.copyText)(`${e}${window.location.pathname}${window.location.search}${window.location.hash}`),c(!0),setTimeout(()=>c(!1),2e3)};return(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[l&&!l.apple&&!p&&(0,t.jsxs)(y.Button,{onClick:()=>void b(),size:"sm",type:"button",variant:"ghost",children:[(0,t.jsx)(_,{})," ",n(o?"installLinkCopied":"copyInstallLink")]}),(0,t.jsxs)(y.Button,{disabled:f,onClick:()=>void j(),size:"sm",type:"button",variant:"outline",children:[r?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(H.Smartphone,{}),n(r?"installPreparing":"installOnDevice")]})]}),p&&(0,t.jsx)("p",{className:"text-right text-xs text-muted-foreground",children:p}),!p&&l&&!l.apple&&(0,t.jsx)("p",{className:"text-right text-xs text-muted-foreground",children:n("installOpenOnDevice")})]})}var K=e.i(771777),J=e.i(866026);let Q=`
13
+ }`,{input:{buildId:e,requestId:(0,E.createClientId)(),settings:{method:r,signingStyle:o,teamId:u||null,signingCertificate:ee?Z.find(e=>e.sha1===ee)?.name??null:null,provisioningProfiles:K?J:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1,stripSwiftSymbols:!0,thinning:null,iCloudContainerEnvironment:null,distributionBundleIdentifier:null}}}),await a(),s(!1)}catch(e){B(e instanceof Error?e.message:String(e))}finally{D(!1)}},ei=K&&(T?.bundles??[]).some(e=>!J[e.bundleId]);return(0,t.jsx)($.Dialog,{onOpenChange:s,open:i,children:(0,t.jsxs)($.DialogContent,{className:"max-h-[85vh] grid-cols-[minmax(0,1fr)] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsxs)($.DialogHeader,{children:[(0,t.jsx)($.DialogTitle,{children:n("exportArchive")}),(0,t.jsx)($.DialogDescription,{children:n("exportArchiveDescription")})]}),R&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:R})}),_&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsxs)(b.AlertDescription,{children:[n("signingOptionsFailed")," ",_]})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("distributionMethod")}),(0,t.jsxs)(U.Select,{onValueChange:e=>d(e),value:r,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{})}),(0,t.jsx)(U.SelectContent,{children:L.BUILD_EXPORT_METHODS.map(e=>(0,t.jsx)(U.SelectItem,{value:e,children:n(`exportMethod.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("developmentTeam")}),(0,t.jsxs)(U.Select,{disabled:I||!T?.teams.length,onValueChange:m,value:u,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:I?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(U.SelectValue,{placeholder:n("selectTeam")})}),(0,t.jsx)(U.SelectContent,{children:(T?.teams??[]).map(e=>(0,t.jsxs)(U.SelectItem,{value:e.id,children:[e.name," (",e.id,")"]},e.id))})]}),!I&&T&&!T.teams.length&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("noTeams")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("signingStyle")}),(0,t.jsxs)(U.Select,{onValueChange:c,value:o,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{})}),(0,t.jsxs)(U.SelectContent,{children:[(0,t.jsx)(U.SelectItem,{value:"AUTOMATIC",children:n("automatic")}),(0,t.jsx)(U.SelectItem,{value:"MANUAL",children:n("manual")})]})]})]}),K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(O.Label,{children:n("signingCertificate")}),(0,t.jsxs)(U.Select,{disabled:I||!Z.length,onValueChange:f,value:ee,children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{placeholder:n("certificateAutomatic")})}),(0,t.jsx)(U.SelectContent,{children:Z.map(e=>(0,t.jsx)(U.SelectItem,{value:e.sha1,children:e.name},e.sha1))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(O.Label,{children:n("provisioningProfiles")}),(0,t.jsx)(y.Button,{onClick:()=>C(e=>!e),size:"sm",type:"button",variant:"ghost",children:S?n("showMatching"):n("showAllProfiles")})]}),I&&(0,t.jsx)(N.Spinner,{}),!I&&!T?.bundles.length&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("noArchiveBundles")}),(T?.bundles??[]).map(e=>{let i=q(T?.profiles??[],e.bundleId,r,u),s=S?(T?.profiles??[]).filter(t=>(0,L.profileCoversBundle)(t.bundleId,e.bundleId)):i;return(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,t.jsx)("p",{className:"mb-2 break-all font-mono text-xs text-muted-foreground",children:e.bundleId}),(0,t.jsxs)(U.Select,{onValueChange:t=>v(i=>({...i,[e.bundleId]:t})),value:J[e.bundleId]??"",children:[(0,t.jsx)(U.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(U.SelectValue,{placeholder:n("selectProfile")})}),(0,t.jsx)(U.SelectContent,{children:s.map(e=>{let i;return(0,t.jsxs)(U.SelectItem,{value:e.uuid,children:[(i=e.expiresAt?(0,F.formatDateValue)(e.expiresAt,"short",{locale:l,showTime:!1}):null)?`${e.name} — ${i}`:e.name,e.expired?` (${n("profileExpired")})`:""]},e.uuid)})})]}),!i.length&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:n("noMatchingProfiles")})]},e.bundleId)})]})]})]}),(0,t.jsxs)($.DialogFooter,{children:[(0,t.jsx)(y.Button,{onClick:()=>s(!1),variant:"outline",children:n("cancel")}),(0,t.jsxs)(y.Button,{disabled:k||ei,onClick:()=>void et(),children:[k&&(0,t.jsx)(N.Spinner,{})," ",n("exportArchive")]})]})]})})}let _=(0,r.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var H=e.i(986206);let G=null;function z(){return G??={origin:window.location.origin,secure:"https:"===window.location.protocol,apple:/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&(navigator.maxTouchPoints??0)>1}}let W=()=>()=>{};function X({buildId:e,artifactId:i,metadata:s,publicOrigin:a}){let n=(0,h.useTranslations)("builds"),l=(0,g.useSyncExternalStore)(W,z,()=>null),[r,d]=(0,g.useState)(!1),[o,c]=(0,g.useState)(!1),u=`/api/public/builds/${encodeURIComponent(e)}/artifacts/${encodeURIComponent(i)}`,m=a??l,x=m?`${m.origin}${u}/manifest.plist`:null,p=l?m?.secure?"APP_STORE_CONNECT"===s.exportMethod?n("installNotSupportedForAppStore"):"string"!=typeof s.bundleIdentifier?n("installMissingBundleIdentifier"):null:n("installRequiresHttps"):null,f=!l||!l.apple||null!==p||r,j=async()=>{if(x){d(!0);try{await fetch(u,{method:"HEAD"}).catch(()=>{}),window.location.href=`itms-services://?action=download-manifest&url=${encodeURIComponent(x)}`}finally{d(!1)}}},b=async()=>{let e=m?.origin??window.location.origin;await (0,E.copyText)(`${e}${window.location.pathname}${window.location.search}${window.location.hash}`),c(!0),setTimeout(()=>c(!1),2e3)};return(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[l&&!l.apple&&!p&&(0,t.jsxs)(y.Button,{onClick:()=>void b(),size:"sm",type:"button",variant:"ghost",children:[(0,t.jsx)(_,{})," ",n(o?"installLinkCopied":"copyInstallLink")]}),(0,t.jsxs)(y.Button,{disabled:f,onClick:()=>void j(),size:"sm",type:"button",variant:"outline",children:[r?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(H.Smartphone,{}),n(r?"installPreparing":"installOnDevice")]})]}),p&&(0,t.jsx)("p",{className:"text-right text-xs text-muted-foreground",children:p}),!p&&l&&!l.apple&&(0,t.jsx)("p",{className:"text-right text-xs text-muted-foreground",children:n("installOpenOnDevice")})]})}var K=e.i(771777),J=e.i(866026);let Q=`
14
14
  id requestId jobId status action destinationType destination snapshot commandSummary artifactDirectory errorCode error outOfDate
15
15
  createdAt startedAt finishedAt durationMs updatedAt
16
16
  worktree { id highlightColor }
@@ -26,12 +26,12 @@
26
26
  scriptExecutions { id phase position nameSnapshot status exitCode durationMs causedBuildFailure outputRelativePath error }
27
27
  deployments { id batchId destination status commandSummary outputRelativePath error createdAt startedAt finishedAt }
28
28
  exports { id status settings commandSummary outputRelativePath error createdAt startedAt finishedAt }
29
- `,Y="id scope scopeId sequence phase stream dataBase64 byteLength createdAt",Z=[],ee=new Set(["IPA"]);function et(e){return e.split("_").filter(Boolean).map(e=>ee.has(e)?e:`${e.charAt(0).toLocaleUpperCase()}${e.slice(1).toLocaleLowerCase()}`).join(" ")}let ei=["packageResolution","disablePackageRepositoryCache","signingStyle","developmentTeam","codeSignIdentity","provisioningProfileSpecifier","productBundleIdentifier","allowProvisioningUpdates","allowProvisioningDeviceRegistration","testPlan","codeCoverage","parseTestResults","parallelTesting","parallelTestingWorkers","onlyTesting","skipTesting","buildSettingOverrides","priorBuildForTestingId","priorTestProductsPath","priorXctestrunPath"],es={packageResolution:"DEFAULT",disablePackageRepositoryCache:!1,signingStyle:"PROJECT_DEFAULT",developmentTeam:null,codeSignIdentity:null,provisioningProfileSpecifier:null,productBundleIdentifier:null,allowProvisioningUpdates:!1,allowProvisioningDeviceRegistration:!1,testPlan:null,codeCoverage:!1,parseTestResults:!0,parallelTesting:null,parallelTestingWorkers:null,onlyTesting:[],skipTesting:[],buildSettingOverrides:{},priorBuildForTestingId:null,priorTestProductsPath:null,priorXctestrunPath:null};function ea({settings:e}){let i=(0,h.useTranslations)("builds"),s={packageResolution:i("packageResolution"),disablePackageRepositoryCache:i("disablePackageRepositoryCache"),signingStyle:i("signingStyle"),developmentTeam:i("developmentTeam"),codeSignIdentity:i("codeSignIdentity"),provisioningProfileSpecifier:i("provisioningProfileSpecifier"),productBundleIdentifier:i("productBundleIdentifier"),allowProvisioningUpdates:i("allowProvisioningUpdates"),allowProvisioningDeviceRegistration:i("allowProvisioningDeviceRegistration"),testPlan:i("testPlan"),codeCoverage:i("codeCoverage"),parseTestResults:i("parseTestResults"),parallelTesting:i("parallelTesting"),parallelTestingWorkers:i("parallelTestingWorkers"),onlyTesting:i("onlyTesting"),skipTesting:i("skipTesting"),buildSettingOverrides:i("buildSettingOverrides"),priorBuildForTestingId:i("priorBuildForTesting"),priorTestProductsPath:i("priorTestProductsPath"),priorXctestrunPath:i("priorXctestrunPath")},a=new Set(ei),n=e?[...ei.filter(t=>Object.hasOwn(e,t)),...Object.keys(e).filter(e=>!a.has(e)).sort()].filter(t=>{var i;return i=e[t],Object.hasOwn(es,t)?JSON.stringify(i)!==JSON.stringify(es[t]):null!=i&&""!==i&&!1!==i&&(Array.isArray(i)?i.length>0:"object"!=typeof i||Object.keys(i).length>0)}):[];return e&&n.length?(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:i("advancedSettings")})}),(0,t.jsx)(C.CardContent,{children:(0,t.jsx)(T.DetailList,{className:"gap-3",children:n.map(i=>(0,t.jsx)(T.DetailItem,{label:s[i]??et(i.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replaceAll("-","_")),children:(0,t.jsx)(en,{value:e[i]})},i))})})]}):null}function en({value:e}){let i=(0,h.useTranslations)("builds");if("boolean"==typeof e)return(0,t.jsx)(v.Badge,{variant:e?"default":"secondary",children:i(e?"settingsEnabled":"settingsDisabled")});if(null==e||""===e)return(0,t.jsx)(t.Fragment,{children:"—"});if(Array.isArray(e))return e.length?(0,t.jsx)("span",{className:"break-words font-mono",children:e.map(String).join(", ")}):(0,t.jsx)(t.Fragment,{children:"—"});if("object"==typeof e){let i=JSON.stringify(e);return i&&"{}"!==i?(0,t.jsx)("span",{className:"break-all font-mono",children:i}):(0,t.jsx)(t.Fragment,{children:"—"})}return"string"==typeof e&&/^[A-Z][A-Z0-9_]*$/.test(e)?(0,t.jsx)(t.Fragment,{children:et(e)}):(0,t.jsx)("span",{className:"break-words font-mono",children:String(e)})}function el(e){return"string"==typeof e&&e.trim()?e:null}function er(e,t){return"ALL"===t||String(e.result??"unknown").toLocaleUpperCase()===t}function ed({report:e}){let i=(0,h.useTranslations)("builds"),[s,a]=(0,g.useState)("ALL"),n=Array.isArray(e.data.tests)?e.data.tests:[],l=Array.isArray(e.data.devices)?e.data.devices:[],r=t=>"number"==typeof e.summary[t]?Number(e.summary[t]):0,d=(function(e){let t=new Map;for(let i of e){let e=el(i.bundle),s=el(i.suite),a=el(i.plan),n=el(i.configuration),l=s??e,r=JSON.stringify([a,n,e,l]),d=t.get(r)??{key:r,name:l,bundle:e,plan:a,configuration:n,tests:[]};d.tests.push(i),t.set(r,d)}return[...t.values()].sort((e,t)=>(e.name??"").localeCompare(t.name??"",void 0,{numeric:!0,sensitivity:"base"}))})(n).filter(e=>e.tests.some(e=>er(e,s)));return(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:i("testResults")})}),(0,t.jsx)(C.CardContent,{className:"space-y-4",children:"FAILED"===e.status?(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:e.error??i("testResultsFailed")})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(v.Badge,{variant:"outline",children:i("testTotal",{count:r("total")})}),(0,t.jsx)(v.Badge,{className:"bg-emerald-600 text-white dark:bg-emerald-700",children:i("testPassed",{count:r("passed")})}),(0,t.jsx)(v.Badge,{variant:r("failed")?"destructive":"outline",children:i("testFailed",{count:r("failed")})}),(0,t.jsx)(v.Badge,{className:"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300",variant:"outline",children:i("testSkipped",{count:r("skipped")})}),l.map((e,i)=>(0,t.jsxs)(v.Badge,{variant:"outline",children:[String(e.deviceName??e.modelName??"Device")," ·"," ",String(e.osVersion??"—")]},i))]}),(0,t.jsx)("div",{className:"overflow-x-auto pb-1",children:(0,t.jsx)(I.Tabs,{onValueChange:e=>a(e),value:s,children:(0,t.jsxs)(I.TabsList,{"aria-label":i("testResultFilters"),children:[(0,t.jsx)(I.TabsTrigger,{value:"ALL",children:i("testFilterAll",{count:n.length})}),(0,t.jsx)(I.TabsTrigger,{value:"PASSED",children:i("testFilterPassed",{count:r("passed")})}),(0,t.jsx)(I.TabsTrigger,{value:"FAILED",children:i("testFilterFailed",{count:r("failed")})}),(0,t.jsx)(I.TabsTrigger,{value:"SKIPPED",children:i("testFilterSkipped",{count:r("skipped")})})]})})}),(0,t.jsx)("div",{className:"divide-y rounded-md border",children:d.map(e=>(0,t.jsx)(eo,{filter:s,group:e},e.key))})]})})]})}function eo({filter:e,group:i}){let s=(0,h.useTranslations)("builds"),a=(0,p.useLocale)(),[n,l]=(0,g.useState)(!1),r=i.name??s("testsWithoutSuite"),d=i.tests.filter(e=>"Passed"===e.result).length,o=i.tests.length?d/i.tests.length:0,m=new Intl.NumberFormat(a,{style:"percent",maximumFractionDigits:1}).format(o),x=i.tests.filter(t=>er(t,e)),f=new Map;for(let e of x){let t=function(e){let t=el(e.file);if(t)return t;let i=el(e.suite);return i||(el(e.identifier)?.split("/")[0]??null)}(e)??s("testsWithoutFile");f.set(t,[...f.get(t)??[],e])}let j=[i.bundle,i.configuration,i.plan].filter(Boolean).join(" · ");return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":n,"aria-label":s(n?"collapseTestSuite":"expandTestSuite",{suite:r}),className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>l(e=>!e),type:"button",children:[n?(0,t.jsx)(c.ChevronDown,{className:"size-3.5 shrink-0"}):(0,t.jsx)(u.ChevronRight,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:r}),j&&(0,t.jsx)("span",{className:"hidden shrink-0 text-xs text-muted-foreground sm:inline",children:j}),(0,t.jsx)(v.Badge,{className:1===o?"border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":o>=.5?"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300":"",variant:o<.5?"destructive":"outline",children:s("testSuitePassed",{passed:d,total:i.tests.length,percent:m})})]}),n&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-2",children:(0,t.jsx)("div",{className:"divide-y rounded-md border bg-background",children:[...f.entries()].sort(([e],[t])=>e.localeCompare(t,a,{numeric:!0,sensitivity:"base"})).map(([e,i])=>(0,t.jsx)(ec,{file:e,tests:i},e))})})]})}function ec({file:e,tests:i}){let s=(0,h.useTranslations)("builds"),[a,n]=(0,g.useState)(!1);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,"aria-label":s(a?"collapseTestFile":"expandTestFile",{file:e}),className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>n(e=>!e),type:"button",children:[a?(0,t.jsx)(c.ChevronDown,{className:"size-3.5 shrink-0"}):(0,t.jsx)(u.ChevronRight,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",title:e,children:e}),(0,t.jsx)(v.Badge,{variant:"outline",children:s("testTotal",{count:i.length})})]}),a&&(0,t.jsx)("div",{className:"border-t overflow-auto",children:(0,t.jsxs)(A.Table,{"aria-label":e,className:"min-w-[38rem] text-xs",children:[(0,t.jsx)(A.TableHeader,{children:(0,t.jsxs)(A.TableRow,{children:[(0,t.jsx)(A.TableHead,{className:"h-8 px-2",children:s("testStatus")}),(0,t.jsx)(A.TableHead,{className:"h-8 px-2",children:s("testName")}),(0,t.jsx)(A.TableHead,{className:"h-8 px-2 text-right",children:s("testDuration")})]})}),(0,t.jsx)(A.TableBody,{children:i.map((e,i)=>{let s=Array.isArray(e.details)?e.details.filter(e=>"string"==typeof e):[],a=Array.isArray(e.tags)?e.tags.filter(e=>"string"==typeof e):[],n=String(e.name??"—"),l=el(e.identifier);return(0,t.jsxs)(A.TableRow,{children:[(0,t.jsx)(A.TableCell,{className:"px-2 py-1.5",children:(0,t.jsx)(eu,{result:String(e.result??"unknown")})}),(0,t.jsxs)(A.TableCell,{className:"max-w-xl px-2 py-1.5 whitespace-normal",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)("span",{className:"font-mono font-medium",children:n}),a.map(e=>(0,t.jsx)(v.Badge,{variant:"outline",children:e},e))]}),l&&l!==n&&(0,t.jsx)("p",{className:"truncate font-mono text-muted-foreground",title:l,children:l}),s.map((e,i)=>(0,t.jsx)("p",{className:"mt-1 text-destructive",children:e},i))]}),(0,t.jsx)(A.TableCell,{className:"px-2 py-1.5 text-right tabular-nums",children:"number"==typeof e.durationSeconds?`${e.durationSeconds.toFixed(3)}s`:"—"})]},`${l??n}:${i}`)})})]})})]})}function eu({result:e}){let i=e.toLocaleLowerCase();return(0,t.jsx)(v.Badge,{className:"passed"===i?"border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"skipped"===i?"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300":"expected failure"===i?"border-violet-500/40 bg-violet-500/10 text-violet-700 dark:text-violet-300":"",variant:"failed"===i?"destructive":"outline",children:e})}function em({label:e,value:i,mono:s=!1}){return(0,t.jsx)(T.DetailItem,{label:e,mono:s,children:i})}e.s(["BuildDetailPage",0,function({buildId:e,publicOrigin:r}){let c=(0,h.useTranslations)("builds"),u=(0,p.useLocale)(),I=(0,k.useRouter)(),[A,L]=(0,g.useState)(null),[$,O]=(0,g.useState)({buildId:e,chunks:[]}),U=$.buildId===e?$.chunks:Z,F=(0,g.useRef)([]),M=(0,g.useRef)(!1),[q,_]=(0,g.useState)(!0),[H,z]=(0,g.useState)(null),[G,W]=(0,g.useState)(!1),[ee,ei]=(0,g.useState)(null),[es,en]=(0,g.useState)(!1),[el,er]=(0,g.useState)(!1),[eo,ec]=(0,g.useState)(!1),[eu,ex]=(0,g.useState)(!0),ep=(0,g.useCallback)(async()=>{try{let t=await (0,P.controlPlaneRequest)(`query BuildDetail($id: ID!) { build(id: $id) { ${Q} } }`,{id:e});L(t.build),z(null)}catch(e){z(e instanceof Error?e.message:String(e))}finally{_(!1)}},[e]),eh=(0,g.useCallback)(t=>{O(i=>{let s=function(e,t){let i=new Map(e.map(e=>[e.id,e]));for(let e of t)i.set(e.id,e);return[...i.values()].sort((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.sequence-t.sequence||e.id.localeCompare(t.id))}(i.buildId===e?i.chunks:[],t);return F.current=s,{buildId:e,chunks:s}})},[e]),eg=(0,g.useCallback)(async()=>{if(!M.current)return;let t=F.current.at(-1)?.id??null,i=[];for(;;){let s=await (0,P.controlPlaneRequest)(`query BuildLogChunks($buildId: ID!, $after: ID) {
29
+ `,Y="id scope scopeId sequence phase stream dataBase64 byteLength createdAt",Z=[],ee=new Set(["IPA"]);function et(e){return e.split("_").filter(Boolean).map(e=>ee.has(e)?e:`${e.charAt(0).toLocaleUpperCase()}${e.slice(1).toLocaleLowerCase()}`).join(" ")}let ei=["packageResolution","disablePackageRepositoryCache","signingStyle","developmentTeam","codeSignIdentity","provisioningProfileSpecifier","productBundleIdentifier","allowProvisioningUpdates","allowProvisioningDeviceRegistration","testPlan","codeCoverage","parseTestResults","parallelTesting","parallelTestingWorkers","onlyTesting","skipTesting","buildSettingOverrides","priorBuildForTestingId","priorTestProductsPath","priorXctestrunPath"],es={packageResolution:"DEFAULT",disablePackageRepositoryCache:!1,signingStyle:"PROJECT_DEFAULT",developmentTeam:null,codeSignIdentity:null,provisioningProfileSpecifier:null,productBundleIdentifier:null,allowProvisioningUpdates:!1,allowProvisioningDeviceRegistration:!1,testPlan:null,codeCoverage:!1,parseTestResults:!0,parallelTesting:null,parallelTestingWorkers:null,onlyTesting:[],skipTesting:[],buildSettingOverrides:{},priorBuildForTestingId:null,priorTestProductsPath:null,priorXctestrunPath:null};function ea({settings:e}){let i=(0,h.useTranslations)("builds"),s={packageResolution:i("packageResolution"),disablePackageRepositoryCache:i("disablePackageRepositoryCache"),signingStyle:i("signingStyle"),developmentTeam:i("developmentTeam"),codeSignIdentity:i("codeSignIdentity"),provisioningProfileSpecifier:i("provisioningProfileSpecifier"),productBundleIdentifier:i("productBundleIdentifier"),allowProvisioningUpdates:i("allowProvisioningUpdates"),allowProvisioningDeviceRegistration:i("allowProvisioningDeviceRegistration"),testPlan:i("testPlan"),codeCoverage:i("codeCoverage"),parseTestResults:i("parseTestResults"),parallelTesting:i("parallelTesting"),parallelTestingWorkers:i("parallelTestingWorkers"),onlyTesting:i("onlyTesting"),skipTesting:i("skipTesting"),buildSettingOverrides:i("buildSettingOverrides"),priorBuildForTestingId:i("priorBuildForTesting"),priorTestProductsPath:i("priorTestProductsPath"),priorXctestrunPath:i("priorXctestrunPath")},a=new Set(ei),n=e?[...ei.filter(t=>Object.hasOwn(e,t)),...Object.keys(e).filter(e=>!a.has(e)).sort()].filter(t=>{var i;return i=e[t],Object.hasOwn(es,t)?JSON.stringify(i)!==JSON.stringify(es[t]):null!=i&&""!==i&&!1!==i&&(Array.isArray(i)?i.length>0:"object"!=typeof i||Object.keys(i).length>0)}):[];return e&&n.length?(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:i("advancedSettings")})}),(0,t.jsx)(S.CardContent,{children:(0,t.jsx)(T.DetailList,{className:"gap-3",children:n.map(i=>(0,t.jsx)(T.DetailItem,{label:s[i]??et(i.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replaceAll("-","_")),children:(0,t.jsx)(en,{value:e[i]})},i))})})]}):null}function en({value:e}){let i=(0,h.useTranslations)("builds");if("boolean"==typeof e)return(0,t.jsx)(v.Badge,{variant:e?"default":"secondary",children:i(e?"settingsEnabled":"settingsDisabled")});if(null==e||""===e)return(0,t.jsx)(t.Fragment,{children:"—"});if(Array.isArray(e))return e.length?(0,t.jsx)("span",{className:"break-words font-mono",children:e.map(String).join(", ")}):(0,t.jsx)(t.Fragment,{children:"—"});if("object"==typeof e){let i=JSON.stringify(e);return i&&"{}"!==i?(0,t.jsx)("span",{className:"break-all font-mono",children:i}):(0,t.jsx)(t.Fragment,{children:"—"})}return"string"==typeof e&&/^[A-Z][A-Z0-9_]*$/.test(e)?(0,t.jsx)(t.Fragment,{children:et(e)}):(0,t.jsx)("span",{className:"break-words font-mono",children:String(e)})}function el(e){return"string"==typeof e&&e.trim()?e:null}function er(e,t){return"ALL"===t||String(e.result??"unknown").toLocaleUpperCase()===t}function ed({report:e}){let i=(0,h.useTranslations)("builds"),[s,a]=(0,g.useState)("ALL"),n=Array.isArray(e.data.tests)?e.data.tests:[],l=Array.isArray(e.data.devices)?e.data.devices:[],r=t=>"number"==typeof e.summary[t]?Number(e.summary[t]):0,d=(function(e){let t=new Map;for(let i of e){let e=el(i.bundle),s=el(i.suite),a=el(i.plan),n=el(i.configuration),l=s??e,r=JSON.stringify([a,n,e,l]),d=t.get(r)??{key:r,name:l,bundle:e,plan:a,configuration:n,tests:[]};d.tests.push(i),t.set(r,d)}return[...t.values()].sort((e,t)=>(e.name??"").localeCompare(t.name??"",void 0,{numeric:!0,sensitivity:"base"}))})(n).filter(e=>e.tests.some(e=>er(e,s)));return(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:i("testResults")})}),(0,t.jsx)(S.CardContent,{className:"space-y-4",children:"FAILED"===e.status?(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:e.error??i("testResultsFailed")})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(v.Badge,{variant:"outline",children:i("testTotal",{count:r("total")})}),(0,t.jsx)(v.Badge,{className:"bg-emerald-600 text-white dark:bg-emerald-700",children:i("testPassed",{count:r("passed")})}),(0,t.jsx)(v.Badge,{variant:r("failed")?"destructive":"outline",children:i("testFailed",{count:r("failed")})}),(0,t.jsx)(v.Badge,{className:"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300",variant:"outline",children:i("testSkipped",{count:r("skipped")})}),l.map((e,i)=>(0,t.jsxs)(v.Badge,{variant:"outline",children:[String(e.deviceName??e.modelName??"Device")," ·"," ",String(e.osVersion??"—")]},i))]}),(0,t.jsx)("div",{className:"overflow-x-auto pb-1",children:(0,t.jsx)(I.Tabs,{onValueChange:e=>a(e),value:s,children:(0,t.jsxs)(I.TabsList,{"aria-label":i("testResultFilters"),children:[(0,t.jsx)(I.TabsTrigger,{value:"ALL",children:i("testFilterAll",{count:n.length})}),(0,t.jsx)(I.TabsTrigger,{value:"PASSED",children:i("testFilterPassed",{count:r("passed")})}),(0,t.jsx)(I.TabsTrigger,{value:"FAILED",children:i("testFilterFailed",{count:r("failed")})}),(0,t.jsx)(I.TabsTrigger,{value:"SKIPPED",children:i("testFilterSkipped",{count:r("skipped")})})]})})}),(0,t.jsx)("div",{className:"divide-y rounded-md border",children:d.map(e=>(0,t.jsx)(eo,{filter:s,group:e},e.key))})]})})]})}function eo({filter:e,group:i}){let s=(0,h.useTranslations)("builds"),a=(0,p.useLocale)(),[n,l]=(0,g.useState)(!1),r=i.name??s("testsWithoutSuite"),d=i.tests.filter(e=>"Passed"===e.result).length,o=i.tests.length?d/i.tests.length:0,m=new Intl.NumberFormat(a,{style:"percent",maximumFractionDigits:1}).format(o),x=i.tests.filter(t=>er(t,e)),f=new Map;for(let e of x){let t=function(e){let t=el(e.file);if(t)return t;let i=el(e.suite);return i||(el(e.identifier)?.split("/")[0]??null)}(e)??s("testsWithoutFile");f.set(t,[...f.get(t)??[],e])}let j=[i.bundle,i.configuration,i.plan].filter(Boolean).join(" · ");return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":n,"aria-label":s(n?"collapseTestSuite":"expandTestSuite",{suite:r}),className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>l(e=>!e),type:"button",children:[n?(0,t.jsx)(c.ChevronDown,{className:"size-3.5 shrink-0"}):(0,t.jsx)(u.ChevronRight,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:r}),j&&(0,t.jsx)("span",{className:"hidden shrink-0 text-xs text-muted-foreground sm:inline",children:j}),(0,t.jsx)(v.Badge,{className:1===o?"border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":o>=.5?"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300":"",variant:o<.5?"destructive":"outline",children:s("testSuitePassed",{passed:d,total:i.tests.length,percent:m})})]}),n&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-2",children:(0,t.jsx)("div",{className:"divide-y rounded-md border bg-background",children:[...f.entries()].sort(([e],[t])=>e.localeCompare(t,a,{numeric:!0,sensitivity:"base"})).map(([e,i])=>(0,t.jsx)(ec,{file:e,tests:i},e))})})]})}function ec({file:e,tests:i}){let s=(0,h.useTranslations)("builds"),[a,n]=(0,g.useState)(!1);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,"aria-label":s(a?"collapseTestFile":"expandTestFile",{file:e}),className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>n(e=>!e),type:"button",children:[a?(0,t.jsx)(c.ChevronDown,{className:"size-3.5 shrink-0"}):(0,t.jsx)(u.ChevronRight,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",title:e,children:e}),(0,t.jsx)(v.Badge,{variant:"outline",children:s("testTotal",{count:i.length})})]}),a&&(0,t.jsx)("div",{className:"border-t overflow-auto",children:(0,t.jsxs)(A.Table,{"aria-label":e,className:"min-w-[38rem] text-xs",children:[(0,t.jsx)(A.TableHeader,{children:(0,t.jsxs)(A.TableRow,{children:[(0,t.jsx)(A.TableHead,{className:"h-8 px-2",children:s("testStatus")}),(0,t.jsx)(A.TableHead,{className:"h-8 px-2",children:s("testName")}),(0,t.jsx)(A.TableHead,{className:"h-8 px-2 text-right",children:s("testDuration")})]})}),(0,t.jsx)(A.TableBody,{children:i.map((e,i)=>{let s=Array.isArray(e.details)?e.details.filter(e=>"string"==typeof e):[],a=Array.isArray(e.tags)?e.tags.filter(e=>"string"==typeof e):[],n=String(e.name??"—"),l=el(e.identifier);return(0,t.jsxs)(A.TableRow,{children:[(0,t.jsx)(A.TableCell,{className:"px-2 py-1.5",children:(0,t.jsx)(eu,{result:String(e.result??"unknown")})}),(0,t.jsxs)(A.TableCell,{className:"max-w-xl px-2 py-1.5 whitespace-normal",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)("span",{className:"font-mono font-medium",children:n}),a.map(e=>(0,t.jsx)(v.Badge,{variant:"outline",children:e},e))]}),l&&l!==n&&(0,t.jsx)("p",{className:"truncate font-mono text-muted-foreground",title:l,children:l}),s.map((e,i)=>(0,t.jsx)("p",{className:"mt-1 text-destructive",children:e},i))]}),(0,t.jsx)(A.TableCell,{className:"px-2 py-1.5 text-right tabular-nums",children:"number"==typeof e.durationSeconds?`${e.durationSeconds.toFixed(3)}s`:"—"})]},`${l??n}:${i}`)})})]})})]})}function eu({result:e}){let i=e.toLocaleLowerCase();return(0,t.jsx)(v.Badge,{className:"passed"===i?"border-emerald-500/40 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"skipped"===i?"border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300":"expected failure"===i?"border-violet-500/40 bg-violet-500/10 text-violet-700 dark:text-violet-300":"",variant:"failed"===i?"destructive":"outline",children:e})}function em({label:e,value:i,mono:s=!1}){return(0,t.jsx)(T.DetailItem,{label:e,mono:s,children:i})}e.s(["BuildDetailPage",0,function({buildId:e,publicOrigin:r}){let c=(0,h.useTranslations)("builds"),u=(0,p.useLocale)(),I=(0,k.useRouter)(),[A,L]=(0,g.useState)(null),[$,O]=(0,g.useState)({buildId:e,chunks:[]}),U=$.buildId===e?$.chunks:Z,F=(0,g.useRef)([]),M=(0,g.useRef)(!1),[q,_]=(0,g.useState)(!0),[H,G]=(0,g.useState)(null),[z,W]=(0,g.useState)(!1),[ee,ei]=(0,g.useState)(null),[es,en]=(0,g.useState)(!1),[el,er]=(0,g.useState)(!1),[eo,ec]=(0,g.useState)(!1),[eu,ex]=(0,g.useState)(!0),ep=(0,g.useCallback)(async()=>{try{let t=await (0,P.controlPlaneRequest)(`query BuildDetail($id: ID!) { build(id: $id) { ${Q} } }`,{id:e});L(t.build),G(null)}catch(e){G(e instanceof Error?e.message:String(e))}finally{_(!1)}},[e]),eh=(0,g.useCallback)(t=>{O(i=>{let s=function(e,t){let i=new Map(e.map(e=>[e.id,e]));for(let e of t)i.set(e.id,e);return[...i.values()].sort((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.sequence-t.sequence||e.id.localeCompare(t.id))}(i.buildId===e?i.chunks:[],t);return F.current=s,{buildId:e,chunks:s}})},[e]),eg=(0,g.useCallback)(async()=>{if(!M.current)return;let t=F.current.at(-1)?.id??null,i=[];for(;;){let s=await (0,P.controlPlaneRequest)(`query BuildLogChunks($buildId: ID!, $after: ID) {
30
30
  buildLogChunks(buildId: $buildId, after: $after, first: 1000) { ${Y} }
31
31
  }`,{buildId:e,after:t});if(i.push(...s.buildLogChunks),s.buildLogChunks.length<1e3)break;let a=s.buildLogChunks.at(-1);if(!a)break;t=a.id}i.length&&eh(i)},[e,eh]);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>void ep(),0);return()=>window.clearTimeout(e)},[ep]),(0,g.useEffect)(()=>(0,P.controlPlaneSubscriptions)().subscribe({query:"subscription BuildChanged($id: ID!) { buildChanged(id: $id) { id } }",variables:{id:e}},{next:()=>void ep(),error:()=>void 0,complete:()=>void 0}),[e,ep]),(0,g.useEffect)(()=>{let t=!1,i=!0,s=[];F.current=[],M.current=!1;let a=(0,P.controlPlaneSubscriptions)().subscribe({query:`subscription BuildLogChunkAdded($buildId: ID!) {
32
32
  buildLogChunkAdded(buildId: $buildId) { ${Y} }
33
33
  }`,variables:{buildId:e}},{next:e=>{let t=e.data?.buildLogChunkAdded;t&&(i?s.push(t):eh([t]))},error:()=>void 0,complete:()=>void 0});return(async()=>{let a=[],n=null;for(;!t;){let t=await (0,P.controlPlaneRequest)(`query BuildLogChunks($buildId: ID!, $after: ID) {
34
34
  buildLogChunks(buildId: $buildId, after: $after, first: 1000) { ${Y} }
35
- }`,{buildId:e,after:n});if(a.push(...t.buildLogChunks),t.buildLogChunks.length<1e3)break;let i=t.buildLogChunks.at(-1);if(!i)break;n=i.id}t||(i=!1,M.current=!0,eh([...a,...s]),s=[])})().catch(e=>{t||(i=!1,M.current=!0,eh(s),s=[],z(e instanceof Error?e.message:String(e)))}),()=>{t=!0,a()}},[e,eh]);let ef=null!==A&&(["QUEUED","PREPARING","RUNNING"].includes(A.status)||A.deployments.some(e=>["QUEUED","RUNNING"].includes(e.status))||A.exports.some(e=>["QUEUED","RUNNING"].includes(e.status)));(0,g.useEffect)(()=>{if(!ef)return;let e=window.setInterval(()=>{ep(),eg().catch(e=>z(e instanceof Error?e.message:String(e)))},2e3);return()=>window.clearInterval(e)},[ef,eg,ep]),(0,g.useEffect)(()=>{if(!eo)return;let e=window.setTimeout(()=>ec(!1),2e3);return()=>window.clearTimeout(e)},[eo]);let ej=async()=>{W(!0);try{await (0,P.controlPlaneRequest)("mutation CancelBuild($id: ID!) { cancelBuild(id: $id) { id status } }",{id:e}),await ep()}catch(e){z(e instanceof Error?e.message:String(e))}finally{W(!1)}},eb=async()=>{W(!0),z(null);try{await (0,P.controlPlaneRequest)("mutation DeleteBuild($ids: [ID!]!) { deleteBuilds(ids: $ids) }",{ids:[e]}),I.replace("/builds")}catch(e){z(e instanceof Error?e.message:String(e)),er(!1)}finally{W(!1)}},ev=A?.artifacts.some(e=>"RUNNABLE_APP"===e.kind),ey=A?.artifacts.some(e=>"ARCHIVE"===e.kind),eC=A?.reports?.find(e=>"TEST_RESULTS"===e.kind),eS=A?.reports?.find(e=>"CODE_COVERAGE"===e.kind),eT=A?.artifacts.find(e=>"RESULT_BUNDLE"===e.kind),ew=!!A&&["TEST","TEST_WITHOUT_BUILDING"].includes(A.action),eN=A?.snapshot??{},eI=eN.repository,eA=eN.worktree,ek=eN.configuration,eE=eT?.metadata.coverageAvailable===!0||ek?.advancedSettings?.codeCoverage===!0,eP=A?.worktree?.highlightColor,eD=async e=>{try{await (0,E.copyText)(e),ec(!0)}catch{z(c("copyFailed"))}},eB=async t=>{ei(t),z(null);try{let i="TEST_RESULTS"===t?"parseBuildTestResults":"generateBuildCoverageReport";await (0,P.controlPlaneRequest)(`mutation GenerateBuildReport($buildId: ID!, $requestId: ID!) {
35
+ }`,{buildId:e,after:n});if(a.push(...t.buildLogChunks),t.buildLogChunks.length<1e3)break;let i=t.buildLogChunks.at(-1);if(!i)break;n=i.id}t||(i=!1,M.current=!0,eh([...a,...s]),s=[])})().catch(e=>{t||(i=!1,M.current=!0,eh(s),s=[],G(e instanceof Error?e.message:String(e)))}),()=>{t=!0,a()}},[e,eh]);let ef=null!==A&&(["QUEUED","PREPARING","RUNNING"].includes(A.status)||A.deployments.some(e=>["QUEUED","RUNNING"].includes(e.status))||A.exports.some(e=>["QUEUED","RUNNING"].includes(e.status)));(0,g.useEffect)(()=>{if(!ef)return;let e=window.setInterval(()=>{ep(),eg().catch(e=>G(e instanceof Error?e.message:String(e)))},2e3);return()=>window.clearInterval(e)},[ef,eg,ep]),(0,g.useEffect)(()=>{if(!eo)return;let e=window.setTimeout(()=>ec(!1),2e3);return()=>window.clearTimeout(e)},[eo]);let ej=async()=>{W(!0);try{await (0,P.controlPlaneRequest)("mutation CancelBuild($id: ID!) { cancelBuild(id: $id) { id status } }",{id:e}),await ep()}catch(e){G(e instanceof Error?e.message:String(e))}finally{W(!1)}},eb=async()=>{W(!0),G(null);try{await (0,P.controlPlaneRequest)("mutation DeleteBuild($ids: [ID!]!) { deleteBuilds(ids: $ids) }",{ids:[e]}),I.replace("/builds")}catch(e){G(e instanceof Error?e.message:String(e)),er(!1)}finally{W(!1)}},ev=A?.artifacts.some(e=>"RUNNABLE_APP"===e.kind),ey=A?.artifacts.some(e=>"ARCHIVE"===e.kind),eS=A?.reports?.find(e=>"TEST_RESULTS"===e.kind),eC=A?.reports?.find(e=>"CODE_COVERAGE"===e.kind),eT=A?.artifacts.find(e=>"RESULT_BUNDLE"===e.kind),ew=!!A&&["TEST","TEST_WITHOUT_BUILDING"].includes(A.action),eN=A?.snapshot??{},eI=eN.repository,eA=eN.worktree,ek=eN.configuration,eE=eT?.metadata.coverageAvailable===!0||ek?.advancedSettings?.codeCoverage===!0,eP=A?.worktree?.highlightColor,eD=async e=>{try{await (0,E.copyText)(e),ec(!0)}catch{G(c("copyFailed"))}},eR=async t=>{ei(t),G(null);try{let i="TEST_RESULTS"===t?"parseBuildTestResults":"generateBuildCoverageReport";await (0,P.controlPlaneRequest)(`mutation GenerateBuildReport($buildId: ID!, $requestId: ID!) {
36
36
  ${i}(buildId: $buildId, requestId: $requestId) { id status error }
37
- }`,{buildId:e,requestId:(0,E.createClientId)()}),await ep()}catch(e){z(e instanceof Error?e.message:String(e))}finally{ei(null)}},eR=(0,g.useMemo)(()=>U.map(e=>{let t=et(e.phase),i=t;if("DEPLOYMENT"===e.scope){let s=A?.deployments.find(t=>t.id===e.scopeId)?.destination.name;i=`${s??et(e.scope)} \xb7 ${t}`}else"EXPORT"===e.scope&&(i=`${c("archiveExport")} \xb7 ${t}`);return{id:e.id,data:(0,j.decodeTerminalBase64)(e.dataBase64),divider:i,dividerKey:`${e.scope}:${e.scopeId}:${e.phase}`}}),[A?.deployments,U,c]);return q?(0,t.jsxs)("p",{className:"mx-auto flex w-full max-w-[1500px] items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{})," ",c("loading")]}):A?(0,t.jsxs)("section",{className:"mx-auto flex min-w-0 w-full max-w-[1500px] flex-col gap-5",children:[(0,t.jsx)("div",{children:(0,t.jsx)(y.Button,{asChild:!0,className:"-ml-2",size:"sm",variant:"ghost",children:(0,t.jsxs)(k.Link,{href:"/builds",children:[(0,t.jsx)(s.ArrowLeft,{})," ",c("backToBuilds")]})})}),H&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:H})}),A.error&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsxs)(b.AlertDescription,{children:[A.errorCode?`${A.errorCode}: `:"",A.error]})}),(0,t.jsxs)("div",{"data-testid":"build-summary",className:(0,D.cn)("flex flex-wrap items-start justify-between gap-4",eP&&"rounded-lg border-l-4 px-4 py-3",eP&&B.worktreeHighlightBackgroundClasses[eP],eP&&B.worktreeHighlightAccentClasses[eP]),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:eI?.name??"—"}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:ek?.name??A.id}),(0,t.jsx)(v.Badge,{variant:(0,R.buildStatusVariant)(A.status),children:c(`statuses.${A.status}`)}),(0,t.jsx)(v.Badge,{variant:"outline",children:c(`actions.${A.action}`)}),A.outOfDate&&(0,t.jsx)(v.Badge,{className:"border-amber-500/40 text-amber-700 dark:text-amber-300",variant:"outline",children:c("outOfDate")})]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[eA?.branch??eA?.folder??"—"," ·"," ",A.destination.name]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[c("buildId"),": ",A.id]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(K.RebuildButton,{buildId:A.id,onCompleted:e=>I.push(`/builds/${e.id}`),onError:z}),["QUEUED","PREPARING","RUNNING"].includes(A.status)&&(0,t.jsxs)(y.Button,{disabled:G,onClick:()=>void ej(),variant:"destructive",children:[G?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(m.CircleStop,{})," ",c("cancelBuild")]}),"SUCCEEDED"===A.status&&ev&&(0,t.jsx)(J.RunBuildControls,{buildId:A.id,destinationType:A.destinationType,onCompleted:ep,onError:z,preferredDestination:A.destination}),"SUCCEEDED"===A.status&&ey&&(0,t.jsxs)(y.Button,{onClick:()=>en(!0),variant:"outline",children:[(0,t.jsx)(i.Archive,{})," ",c("exportArchive")]}),!ef&&ew&&eT&&eC?.status!=="READY"&&(0,t.jsxs)(y.Button,{disabled:null!==ee,onClick:()=>void eB("TEST_RESULTS"),variant:"outline",children:["TEST_RESULTS"===ee?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(d,{}),eC?.status==="FAILED"?c("retryParseTestResults"):c("parseTestResultsAction")]}),!ef&&eT&&eE&&eS?.status!=="READY"&&(0,t.jsxs)(y.Button,{disabled:null!==ee,onClick:()=>void eB("CODE_COVERAGE"),variant:"outline",children:["CODE_COVERAGE"===ee?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(o,{}),eS?.status==="FAILED"?c("retryCoverageReport"):c("generateCoverageReport")]}),eS?.status==="READY"&&(0,t.jsx)(y.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(k.Link,{href:`/builds/${A.id}/coverage`,children:[(0,t.jsx)(o,{})," ",c("viewCoverageReport")]})}),(0,t.jsxs)(y.Button,{disabled:G||["QUEUED","PREPARING","RUNNING"].includes(A.status),onClick:()=>er(!0),variant:"destructive",children:[(0,t.jsx)(x.Trash2,{})," ",c("deleteBuild")]})]})]}),eC&&(0,t.jsx)(ed,{report:eC}),(0,t.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]",children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-5",children:[(0,t.jsx)(j.TerminalOutputCard,{ariaLabel:c("logs"),collapseLabel:c("collapseLogs"),emptyText:c("noLogs"),entries:eR,expandLabel:c("expandLogs"),fitLabel:c("fitTerminal"),followLabel:c("followOutput"),nextMatchLabel:c("nextTerminalMatch"),onOpenChange:ex,open:eu,previousMatchLabel:c("previousTerminalMatch"),rawOutputHref:`/${u}/builds/${encodeURIComponent(e)}/output`,rawOutputLabel:c("viewRawOutput"),searchLabel:c("searchTerminal"),sourceKey:e,title:c("logs")},e),(0,t.jsxs)(C.Card,{children:[(0,t.jsxs)(C.CardHeader,{children:[(0,t.jsx)(C.CardTitle,{children:c("commandSummary")}),(0,t.jsx)(C.CardAction,{children:(0,t.jsx)(y.Button,{"aria-label":eo?c("commandCopied"):c("copyCommand"),onClick:()=>void eD(A.commandSummary),size:"icon-sm",type:"button",variant:"ghost",children:eo?(0,t.jsx)(a.Check,{}):(0,t.jsx)(n.Copy,{})})})]}),(0,t.jsx)(C.CardContent,{children:(0,t.jsx)("pre",{className:"w-full min-w-0 max-w-full overflow-x-auto rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap [overflow-wrap:anywhere]",children:A.commandSummary})})]}),(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:c("scripts")})}),(0,t.jsx)(C.CardContent,{className:"space-y-2",children:A.scriptExecutions.length?A.scriptExecutions.map(e=>(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border p-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[e.nameSnapshot," ·"," ",et(e.phase)]}),e.error&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:e.error})]}),(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)})]},e.id)):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noScriptExecutions")})})]})]}),(0,t.jsxs)("div",{className:"min-w-0 space-y-5",children:[(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:c("overview")})}),(0,t.jsx)(C.CardContent,{children:(0,t.jsxs)(T.DetailList,{className:"gap-3",children:[(0,t.jsx)(em,{label:c("buildId"),value:A.id,mono:!0}),(0,t.jsx)(em,{label:c("scheme"),value:ek?.scheme??"—",mono:!0}),(0,t.jsx)(em,{label:c("configuration"),value:ek?.buildConfiguration??"—",mono:!0}),(0,t.jsx)(em,{label:c("head"),value:eA?.headSha??"—",mono:!0}),(0,t.jsx)(em,{label:c("startedAt"),value:(0,t.jsx)(S.DateTime,{value:A.startedAt})}),(0,t.jsx)(em,{label:c("finishedAt"),value:(0,t.jsx)(S.DateTime,{value:A.finishedAt})}),(0,t.jsx)(em,{label:c("artifactDirectory"),value:A.artifactDirectory,mono:!0})]})})]}),(0,t.jsx)(ea,{settings:ek?.advancedSettings}),(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:c("artifacts")})}),(0,t.jsx)(C.CardContent,{className:"space-y-2",children:A.artifacts.length?A.artifacts.map(e=>{let i="IPA"===e.kind,s=e.metadata??{};return(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(v.Badge,{variant:"outline",children:et(e.kind)}),(0,t.jsx)(y.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{download:!0,href:`/api/public/builds/${encodeURIComponent(A.id)}/artifacts/${encodeURIComponent(e.id)}`,children:[(0,t.jsx)(l.Download,{})," ",i?c("downloadIpa"):c("downloadArtifact")]})})]}),(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs text-muted-foreground",children:e.relativePath}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("dl",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:["string"==typeof s.bundleIdentifier&&(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)("dt",{children:c("ipaBundleIdentifier")}),(0,t.jsx)("dd",{className:"break-all font-mono",children:s.bundleIdentifier})]}),"string"==typeof s.bundleShortVersion&&(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)("dt",{children:c("ipaBundleVersion")}),(0,t.jsx)("dd",{className:"font-mono",children:s.bundleShortVersion})]})]}),(0,t.jsx)("div",{className:"mt-2 flex justify-end",children:(0,t.jsx)(X,{artifactId:e.id,buildId:A.id,metadata:s,publicOrigin:r})})]})]},e.id)}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noArtifacts")})})]}),(0,t.jsxs)(C.Card,{children:[(0,t.jsx)(C.CardHeader,{children:(0,t.jsx)(C.CardTitle,{children:c("runsAndExports")})}),(0,t.jsxs)(C.CardContent,{className:"space-y-2",children:[A.deployments.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.destination.name}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)}),(0,t.jsx)(S.DateTime,{className:"text-xs text-muted-foreground",value:e.finishedAt??e.startedAt??e.createdAt})]})]}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),A.exports.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:c("archiveExport")}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)}),(0,t.jsx)(S.DateTime,{className:"text-xs text-muted-foreground",value:e.finishedAt??e.startedAt??e.createdAt})]})]}),e.outputRelativePath&&(0,t.jsx)("p",{className:"mt-1 font-mono text-xs",children:e.outputRelativePath}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),!A.deployments.length&&!A.exports.length&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noRunsOrExports")})]})]})]})]}),es&&(0,t.jsx)(V,{buildId:A.id,onOpenChange:en,onSaved:ep,open:es}),(0,t.jsx)(f.ConfirmationDialog,{actionLabel:c("deleteBuild"),cancelLabel:c("cancel"),description:c("deleteBuildDescription"),onConfirm:eb,onOpenChange:er,open:el,title:c("deleteBuildTitle")})]}):(0,t.jsxs)(w.Empty,{className:"mx-auto w-full max-w-[1500px] border py-12",children:[(0,t.jsxs)(w.EmptyHeader,{children:[(0,t.jsx)(w.EmptyTitle,{children:c("buildNotFound")}),(0,t.jsx)(w.EmptyDescription,{children:c("buildNotFoundDescription")})]}),(0,t.jsx)(y.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(k.Link,{href:"/builds",children:[(0,t.jsx)(s.ArrowLeft,{})," ",c("backToBuilds")]})})]})}],885325)}]);
37
+ }`,{buildId:e,requestId:(0,E.createClientId)()}),await ep()}catch(e){G(e instanceof Error?e.message:String(e))}finally{ei(null)}},eB=(0,g.useMemo)(()=>U.map(e=>{let t=et(e.phase),i=t;if("DEPLOYMENT"===e.scope){let s=A?.deployments.find(t=>t.id===e.scopeId)?.destination.name;i=`${s??et(e.scope)} \xb7 ${t}`}else"EXPORT"===e.scope&&(i=`${c("archiveExport")} \xb7 ${t}`);return{id:e.id,data:(0,j.decodeTerminalBase64)(e.dataBase64),divider:i,dividerKey:`${e.scope}:${e.scopeId}:${e.phase}`}}),[A?.deployments,U,c]);return q?(0,t.jsxs)("p",{className:"mx-auto flex w-full max-w-[1500px] items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{})," ",c("loading")]}):A?(0,t.jsxs)("section",{className:"mx-auto flex min-w-0 w-full max-w-[1500px] flex-col gap-5",children:[H&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:H})}),A.error&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsxs)(b.AlertDescription,{children:[A.errorCode?`${A.errorCode}: `:"",A.error]})}),(0,t.jsxs)("div",{"data-testid":"build-summary",className:(0,D.cn)("flex flex-wrap items-start justify-between gap-4",eP&&"rounded-lg border-l-4 px-4 py-3",eP&&R.worktreeHighlightBackgroundClasses[eP],eP&&R.worktreeHighlightAccentClasses[eP]),children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:ek?.name??A.id}),(0,t.jsx)(v.Badge,{variant:(0,B.buildStatusVariant)(A.status),children:c(`statuses.${A.status}`)}),(0,t.jsx)(v.Badge,{variant:"outline",children:c(`actions.${A.action}`)}),A.outOfDate&&(0,t.jsx)(v.Badge,{className:"border-amber-500/40 text-amber-700 dark:text-amber-300",variant:"outline",children:c("outOfDate")})]}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:eI?.name??"—"}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[eA?.branch??eA?.folder??"—"," ·"," ",A.destination.name]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[c("buildId"),": ",A.id]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(K.RebuildButton,{buildId:A.id,onCompleted:e=>I.push(`/builds/${e.id}`),onError:G}),["QUEUED","PREPARING","RUNNING"].includes(A.status)&&(0,t.jsxs)(y.Button,{disabled:z,onClick:()=>void ej(),variant:"destructive",children:[z?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(m.CircleStop,{})," ",c("cancelBuild")]}),"SUCCEEDED"===A.status&&ev&&(0,t.jsx)(J.RunBuildControls,{buildId:A.id,destinationType:A.destinationType,onCompleted:ep,onError:G,preferredDestination:A.destination}),"SUCCEEDED"===A.status&&ey&&(0,t.jsxs)(y.Button,{onClick:()=>en(!0),variant:"outline",children:[(0,t.jsx)(i.Archive,{})," ",c("exportArchive")]}),!ef&&ew&&eT&&eS?.status!=="READY"&&(0,t.jsxs)(y.Button,{disabled:null!==ee,onClick:()=>void eR("TEST_RESULTS"),variant:"outline",children:["TEST_RESULTS"===ee?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(d,{}),eS?.status==="FAILED"?c("retryParseTestResults"):c("parseTestResultsAction")]}),!ef&&eT&&eE&&eC?.status!=="READY"&&(0,t.jsxs)(y.Button,{disabled:null!==ee,onClick:()=>void eR("CODE_COVERAGE"),variant:"outline",children:["CODE_COVERAGE"===ee?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(o,{}),eC?.status==="FAILED"?c("retryCoverageReport"):c("generateCoverageReport")]}),eC?.status==="READY"&&(0,t.jsx)(y.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(k.Link,{href:`/builds/${A.id}/coverage`,children:[(0,t.jsx)(o,{})," ",c("viewCoverageReport")]})}),(0,t.jsxs)(y.Button,{disabled:z||["QUEUED","PREPARING","RUNNING"].includes(A.status),onClick:()=>er(!0),variant:"destructive",children:[(0,t.jsx)(x.Trash2,{})," ",c("deleteBuild")]})]})]}),eS&&(0,t.jsx)(ed,{report:eS}),(0,t.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]",children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-5",children:[(0,t.jsx)(j.TerminalOutputCard,{ariaLabel:c("logs"),collapseLabel:c("collapseLogs"),emptyText:c("noLogs"),entries:eB,expandLabel:c("expandLogs"),fitLabel:c("fitTerminal"),followLabel:c("followOutput"),nextMatchLabel:c("nextTerminalMatch"),onOpenChange:ex,open:eu,previousMatchLabel:c("previousTerminalMatch"),rawOutputHref:`/${u}/builds/${encodeURIComponent(e)}/output`,rawOutputLabel:c("viewRawOutput"),searchLabel:c("searchTerminal"),sourceKey:e,title:c("logs")},e),(0,t.jsxs)(S.Card,{children:[(0,t.jsxs)(S.CardHeader,{children:[(0,t.jsx)(S.CardTitle,{children:c("commandSummary")}),(0,t.jsx)(S.CardAction,{children:(0,t.jsx)(y.Button,{"aria-label":eo?c("commandCopied"):c("copyCommand"),onClick:()=>void eD(A.commandSummary),size:"icon-sm",type:"button",variant:"ghost",children:eo?(0,t.jsx)(a.Check,{}):(0,t.jsx)(n.Copy,{})})})]}),(0,t.jsx)(S.CardContent,{children:(0,t.jsx)("pre",{className:"w-full min-w-0 max-w-full overflow-x-auto rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap [overflow-wrap:anywhere]",children:A.commandSummary})})]}),(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:c("scripts")})}),(0,t.jsx)(S.CardContent,{className:"space-y-2",children:A.scriptExecutions.length?A.scriptExecutions.map(e=>(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border p-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[e.nameSnapshot," ·"," ",et(e.phase)]}),e.error&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:e.error})]}),(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)})]},e.id)):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noScriptExecutions")})})]})]}),(0,t.jsxs)("div",{className:"min-w-0 space-y-5",children:[(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:c("overview")})}),(0,t.jsx)(S.CardContent,{children:(0,t.jsxs)(T.DetailList,{className:"gap-3",children:[(0,t.jsx)(em,{label:c("buildId"),value:A.id,mono:!0}),(0,t.jsx)(em,{label:c("scheme"),value:ek?.scheme??"—",mono:!0}),(0,t.jsx)(em,{label:c("configuration"),value:ek?.buildConfiguration??"—",mono:!0}),(0,t.jsx)(em,{label:c("head"),value:eA?.headSha??"—",mono:!0}),(0,t.jsx)(em,{label:c("startedAt"),value:(0,t.jsx)(C.DateTime,{value:A.startedAt})}),(0,t.jsx)(em,{label:c("finishedAt"),value:(0,t.jsx)(C.DateTime,{value:A.finishedAt})}),(0,t.jsx)(em,{label:c("artifactDirectory"),value:A.artifactDirectory,mono:!0})]})})]}),(0,t.jsx)(ea,{settings:ek?.advancedSettings}),(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:c("artifacts")})}),(0,t.jsx)(S.CardContent,{className:"space-y-2",children:A.artifacts.length?A.artifacts.map(e=>{let i="IPA"===e.kind,s=e.metadata??{};return(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(v.Badge,{variant:"outline",children:et(e.kind)}),(0,t.jsx)(y.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{download:!0,href:`/api/public/builds/${encodeURIComponent(A.id)}/artifacts/${encodeURIComponent(e.id)}`,children:[(0,t.jsx)(l.Download,{})," ",i?c("downloadIpa"):c("downloadArtifact")]})})]}),(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs text-muted-foreground",children:e.relativePath}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("dl",{className:"mt-2 space-y-1 text-xs text-muted-foreground",children:["string"==typeof s.bundleIdentifier&&(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)("dt",{children:c("ipaBundleIdentifier")}),(0,t.jsx)("dd",{className:"break-all font-mono",children:s.bundleIdentifier})]}),"string"==typeof s.bundleShortVersion&&(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)("dt",{children:c("ipaBundleVersion")}),(0,t.jsx)("dd",{className:"font-mono",children:s.bundleShortVersion})]})]}),(0,t.jsx)("div",{className:"mt-2 flex justify-end",children:(0,t.jsx)(X,{artifactId:e.id,buildId:A.id,metadata:s,publicOrigin:r})})]})]},e.id)}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noArtifacts")})})]}),(0,t.jsxs)(S.Card,{children:[(0,t.jsx)(S.CardHeader,{children:(0,t.jsx)(S.CardTitle,{children:c("runsAndExports")})}),(0,t.jsxs)(S.CardContent,{className:"space-y-2",children:[A.deployments.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.destination.name}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)}),(0,t.jsx)(C.DateTime,{className:"text-xs text-muted-foreground",value:e.finishedAt??e.startedAt??e.createdAt})]})]}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),A.exports.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:c("archiveExport")}),(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)(v.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:et(e.status)}),(0,t.jsx)(C.DateTime,{className:"text-xs text-muted-foreground",value:e.finishedAt??e.startedAt??e.createdAt})]})]}),e.outputRelativePath&&(0,t.jsx)("p",{className:"mt-1 font-mono text-xs",children:e.outputRelativePath}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),!A.deployments.length&&!A.exports.length&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noRunsOrExports")})]})]})]})]}),es&&(0,t.jsx)(V,{buildId:A.id,onOpenChange:en,onSaved:ep,open:es}),(0,t.jsx)(f.ConfirmationDialog,{actionLabel:c("deleteBuild"),cancelLabel:c("cancel"),description:c("deleteBuildDescription"),onConfirm:eb,onOpenChange:er,open:el,title:c("deleteBuildTitle")})]}):(0,t.jsxs)(w.Empty,{className:"mx-auto w-full max-w-[1500px] border py-12",children:[(0,t.jsxs)(w.EmptyHeader,{children:[(0,t.jsx)(w.EmptyTitle,{children:c("buildNotFound")}),(0,t.jsx)(w.EmptyDescription,{children:c("buildNotFoundDescription")})]}),(0,t.jsx)(y.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(k.Link,{href:"/builds",children:[(0,t.jsx)(s.ArrowLeft,{})," ",c("backToBuilds")]})})]})}],885325)}]);
@@ -1,3 +1,3 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,725981,e=>{"use strict";let t=(0,e.i(456420).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],725981)},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},636162,e=>{"use strict";let t=(0,e.i(456420).default)("apple",[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]]);e.s(["Apple",0,t],636162)},452330,e=>{"use strict";let t=(0,e.i(456420).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,t],452330)},687862,671028,e=>{"use strict";var t=e.i(843476);e.i(688194);var a=e.i(636162),n=e.i(456420);let r=(0,n.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);var s=e.i(876561);let i=(0,n.default)("beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]),l=(0,n.default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),o=(0,n.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);var d=e.i(452330);let c=(0,n.default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);e.s(["Gauge",0,c],671028);var h=e.i(93384);let u=(0,n.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),m=(0,n.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var p=e.i(21357);let f=(0,n.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var x=e.i(584026),g=e.i(986206),v=e.i(328623),y=e.i(604139);let j=(0,n.default)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);var w=e.i(747925);let b={apple:a.Apple,"app-window":r,archive:s.Archive,beaker:i,box:l,bug:o,code:d.Code2,gauge:c,hammer:h.Hammer,layers:u,package:m,play:p.Play,rocket:f,shield:x.ShieldCheck,smartphone:g.Smartphone,sparkles:v.Sparkles,terminal:y.Terminal,"test-tube":j,wrench:w.Wrench};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let a=b[e];return a?(0,t.jsx)(a,{"aria-hidden":!0,className:"size-4"}):null}],687862)},266136,e=>{"use strict";var t=e.i(843476),a=e.i(948148),n=e.i(271645),r=e.i(687862),s=e.i(487486),i=e.i(257428),l=e.i(987968),o=e.i(637611),d=e.i(975157);let c="id name description iconKey enabledForPlans enabledForSessions toolNames createdAt updatedAt";async function h(e){return(await (0,o.controlPlaneRequest)(`query McpToolPresets($kind: RunKind) {
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,725981,e=>{"use strict";let t=(0,e.i(456420).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],725981)},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},452330,e=>{"use strict";let t=(0,e.i(456420).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,t],452330)},636162,e=>{"use strict";let t=(0,e.i(456420).default)("apple",[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]]);e.s(["Apple",0,t],636162)},687862,671028,e=>{"use strict";var t=e.i(843476);e.i(688194);var a=e.i(636162),n=e.i(456420);let r=(0,n.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);var s=e.i(876561);let i=(0,n.default)("beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]),l=(0,n.default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),o=(0,n.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);var d=e.i(452330);let c=(0,n.default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);e.s(["Gauge",0,c],671028);var h=e.i(93384);let u=(0,n.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),m=(0,n.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var p=e.i(21357);let f=(0,n.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var x=e.i(584026),g=e.i(986206),v=e.i(328623),y=e.i(604139);let j=(0,n.default)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);var w=e.i(747925);let b={apple:a.Apple,"app-window":r,archive:s.Archive,beaker:i,box:l,bug:o,code:d.Code2,gauge:c,hammer:h.Hammer,layers:u,package:m,play:p.Play,rocket:f,shield:x.ShieldCheck,smartphone:g.Smartphone,sparkles:v.Sparkles,terminal:y.Terminal,"test-tube":j,wrench:w.Wrench};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let a=b[e];return a?(0,t.jsx)(a,{"aria-hidden":!0,className:"size-4"}):null}],687862)},266136,e=>{"use strict";var t=e.i(843476),a=e.i(948148),n=e.i(271645),r=e.i(687862),s=e.i(487486),i=e.i(257428),l=e.i(987968),o=e.i(637611),d=e.i(975157);let c="id name description iconKey enabledForPlans enabledForSessions toolNames createdAt updatedAt";async function h(e){return(await (0,o.controlPlaneRequest)(`query McpToolPresets($kind: RunKind) {
2
2
  mcpToolPresets(kind: $kind) { ${c} }
3
3
  }`,{kind:e??null})).mcpToolPresets??[]}e.s(["MCP_PRESET_FIELDS",0,c,"McpPresetPicker",0,function({kind:e,selectedIds:o,onChange:c,disabled:u=!1,showAvailability:m=null==e,className:p}){let f=(0,a.useTranslations)("mcpPresets"),[x,g]=(0,n.useState)([]),[v,y]=(0,n.useState)(!0),[j,w]=(0,n.useState)(null);if((0,n.useEffect)(()=>{let t=!1,a=window.setTimeout(()=>{y(!0),h(e).then(e=>{t||(g(e),w(null))}).catch(e=>{t||w(e instanceof Error?e.message:String(e))}).finally(()=>{t||y(!1)})},0);return()=>{t=!0,window.clearTimeout(a)}},[e]),v&&!x.length)return(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(l.Spinner,{})," ",f("loading")]});if(j)return(0,t.jsx)("p",{className:"text-sm text-destructive",children:j});if(!x.length)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:f("noneAvailable")});let b=new Set(o);return(0,t.jsx)("div",{className:(0,d.cn)("grid gap-2 md:grid-cols-2",p),children:x.map(e=>(0,t.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 has-disabled:cursor-not-allowed has-aria-checked:border-primary/50",children:[(0,t.jsx)(i.Checkbox,{checked:b.has(e.id),disabled:u,onCheckedChange:t=>c(t?[...o,e.id]:o.filter(t=>t!==e.id))}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(r.ConfigurationIcon,{iconKey:e.iconKey}),(0,t.jsx)("span",{className:"truncate",children:e.name})]}),e.description&&(0,t.jsx)("span",{className:"mt-1 block text-xs text-muted-foreground",children:e.description}),m&&(0,t.jsxs)("span",{className:"mt-2 flex flex-wrap gap-1",children:[e.enabledForPlans&&(0,t.jsx)(s.Badge,{variant:"outline",children:f("plans")}),e.enabledForSessions&&(0,t.jsx)(s.Badge,{variant:"outline",children:f("sessions")}),!e.enabledForPlans&&!e.enabledForSessions&&(0,t.jsx)(s.Badge,{variant:"secondary",children:f("directOnly")})]})]})]},e.id))})},"loadMcpToolPresets",0,h])},633785,555291,e=>{"use strict";var t,a,n,r=e.i(843476),s=e.i(397142),i=e.i(975157);let l=["low","medium","high","xhigh","max","ultra"],o=["#38bdf8","#818cf8","#a78bfa","#e879f9","#fb7185","#fb923c"];e.s(["EffortIcon",0,function({className:e,effort:t,efforts:a}){let n=t?.toLowerCase()??"auto",d=(a??l).map(e=>e.toLowerCase()).filter(e=>"auto"!==e),c=d.indexOf(n)+1;if(!c)return(0,r.jsx)(s.Cpu,{"aria-hidden":"true",className:(0,i.cn)("h-4 w-5 shrink-0",e)});let h=d.length-1,u=Math.min(5,(17-h)/d.length),m=(20-(d.length*u+ +h))/2,p=Math.max(2.5,12.5/(d.length+1));return(0,r.jsx)("svg",{"aria-hidden":"true",className:(0,i.cn)("h-4 w-5 shrink-0",e),viewBox:"0 0 20 16",xmlns:"http://www.w3.org/2000/svg",children:d.map((e,t)=>{let a=h?p+(12.5-p)*t/h:12.5,s=t<c;return(0,r.jsx)("rect",{fill:s&&"ultra"===n?o[Math.round(t/(h||1)*(o.length-1))]:"currentColor",height:a,opacity:s?1:.25,rx:.6,width:u,x:m+t*(u+1),y:14-a},e)})})}],633785);var d=e.i(271645);function c(){return(c=Object.assign.bind()).apply(null,arguments)}function h(){return(h=Object.assign.bind()).apply(null,arguments)}function u(){return(u=Object.assign.bind()).apply(null,arguments)}let m={CODEX:function(e){return d.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24"},e),a||(a=d.createElement("path",{d:"M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.8.8 0 0 0-.856 0zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.43.43 0 0 1 .476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142a.45.45 0 0 1-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.48 4.48 0 0 1 4.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.43.43 0 0 1-.476 0m-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71a.79.79 0 0 0 .856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523m5.899 2.83a5.95 5.95 0 0 0 5.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947a5.7 5.7 0 0 0-1.88.31A5.96 5.96 0 0 0 10.205 0a5.95 5.95 0 0 0-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 0 0 4.162 1.713z"})))},CLAUDE:function(e){return d.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24"},e),t||(t=d.createElement("path",{d:"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0v-3.1h3V5h17.998zM6 10.949h1.488V8.102H6zm10.51 0H18V8.102h-1.49z",clipRule:"evenodd"})))},OPENCODE:function(e){return d.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24"},e),n||(n=d.createElement("path",{d:"M16 6H8v12h8zm4 16H4V2h16z"})))}};e.s(["ProviderIcon",0,function({className:e,provider:t}){let a=m[t];return a?(0,r.jsx)(a,{"aria-hidden":"true",className:(0,i.cn)("size-4 shrink-0",e)}):null}],555291)},814760,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(563707),r=e.i(456420);let s=(0,r.default)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),i=(0,r.default)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);var l=e.i(948148),o=e.i(519455),d=e.i(317056),c=e.i(337822),h=e.i(746798),u=e.i(767648),m=e.i(975157),p=e.i(633785);let f="aide.model-presets.v1",x="aide:model-presets";function g({provider:e,model:t,effort:a}){return`${e}\u0000${t}\u0000${a}`}function v(e,t){return g(e)===g(t)}function y(){try{let e=window.localStorage.getItem(f)??"",t=window.localStorage.getItem("aide.favorite-models.v1")??"";return`${e}\u0000${t}`}catch{return"\0"}}function j(e){return window.addEventListener("storage",e),window.addEventListener(x,e),()=>{window.removeEventListener("storage",e),window.removeEventListener(x,e)}}function w(e){try{return e?JSON.parse(e):null}catch{return null}}function b(e){return Array.isArray(e)?e.flatMap(e=>{if(!e||"object"!=typeof e)return[];let{provider:t,model:a,effort:n}=e;return"string"!=typeof t||"string"!=typeof a?[]:[{provider:t,model:a,effort:"string"==typeof n?n:"auto"}]}):[]}function k(e){try{window.localStorage.setItem(f,JSON.stringify(e)),window.dispatchEvent(new Event(x))}catch{}}var M=e.i(555291);let N=["CODEX","CLAUDE","OPENCODE"];function z({label:e}){let{name:a,qualifier:n}=(0,u.splitModelLabel)(e);return(0,t.jsxs)(t.Fragment,{children:[a,n&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:n})]})]})}let C="data-[checked=true]:ring-1 data-[checked=true]:ring-inset data-[checked=true]:ring-primary/40";e.s(["ModelEffortPicker",0,function({catalog:e,provider:r,model:u,effort:f,onProviderChange:x,onModelChange:E,onEffortChange:A,isProviderDisabled:P,fullWidth:T}){let S,$,V,H=(0,l.useTranslations)("runs"),{rail:I,pinned:O,recent:L,isPinned:B,togglePin:D,remember:q}=(S=function(e){var t;let[a="",n=""]=e.split("\0"),r=w(a);if(r&&"object"==typeof r){let{pinned:e,recent:t}=r;return{pinned:b(e),recent:b(t)}}return{pinned:!(t=w(n))||"object"!=typeof t||Array.isArray(t)?[]:Object.entries(t).flatMap(([e,t])=>Array.isArray(t)?t.filter(e=>"string"==typeof e).map(t=>({provider:e,model:t,effort:"auto"})):[]),recent:[]}}((0,a.useSyncExternalStore)(j,y,()=>"\0")),$=e=>S.pinned.some(t=>v(t,e)),V=S.recent.filter(e=>!$(e)),{isPinned:$,pinned:S.pinned,recent:V,rail:[...S.pinned,...V],togglePin:e=>k({pinned:$(e)?S.pinned.filter(t=>!v(t,e)):[...S.pinned,e],recent:S.recent.filter(t=>!v(t,e))}),remember:e=>{$(e)||k({pinned:S.pinned,recent:[e,...S.recent.filter(t=>!v(t,e))].slice(0,6)})}}),[F,R]=(0,a.useState)(!1),K=[...e].sort((e,t)=>{let a=N.indexOf(e.key),n=N.indexOf(t.key);return(a<0?N.length:a)-(n<0?N.length:n)}),U=e=>!e.available||!!P?.(e),_=K.find(({key:e})=>e===r),G=_?.models.find(({id:e})=>e===u),W=G?{provider:r,model:u,effort:f}:null,J=G?.efforts.length?G.efforts:["auto"],X=e=>e.flatMap(e=>{let t=K.find(({key:t})=>t===e.provider),a=t?.models.find(({id:t})=>t===e.model);return!t||!a||U(t)?[]:[{preset:e,entry:t,model:a}]}),Z=X(I).filter(({preset:e})=>!W||!v(e,W)),Q=X(O),Y=X(L).slice(0,5),ee=e=>{e.provider!==r&&x(e.provider),E(e.model),A(e.effort),q(e)},et=e=>{ee(e),R(!1)},ea=({preset:e,entry:a,model:n})=>(0,t.jsxs)(d.CommandItem,{className:C,"data-checked":!!(W&&v(e,W)),onSelect:()=>et(e),value:`${a.label} ${n.label} ${n.id} ${e.effort}`,children:[(0,t.jsx)(M.ProviderIcon,{provider:a.key}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:(0,t.jsx)(z,{label:n.label})}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-muted-foreground","data-slot":"command-shortcut",children:[(0,t.jsx)(p.EffortIcon,{effort:e.effort,efforts:n.efforts}),(0,t.jsx)("span",{className:"text-xs",children:e.effort})]})]},g(e)),en=Z.slice(0,6),{railRef:er,visible:es}=function(e){let t=(0,a.useRef)(null),[n,r]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=t.current;if(!e)return;let a=()=>{let[t,...a]=[...e.children];if(!t)return;let n=Number.parseFloat(getComputedStyle(e).columnGap)||0,s=t.offsetWidth,i=0;for(let t of a){let a=s+n+t.offsetWidth;if(a>e.clientWidth)break;s=a,i+=1}r(i)},n="u"<typeof ResizeObserver?null:new ResizeObserver(a);if(n?.observe(e),n)for(let t of e.children)n.observe(t);return window.addEventListener("resize",a),a(),()=>{n?.disconnect(),window.removeEventListener("resize",a)}},[e]),{railRef:t,visible:n}}([W&&g(W),...en.map(({preset:e})=>g(e))].join("|"));return(0,t.jsxs)("div",{className:(0,m.cn)("flex items-center gap-2 overflow-hidden",T&&"w-full"),ref:er,children:[(0,t.jsxs)(c.Popover,{onOpenChange:R,open:F,children:[(0,t.jsx)(c.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{className:(0,m.cn)("h-8 min-w-0 font-normal",T?"w-full justify-between":"max-w-full shrink-0"),type:"button",variant:"outline",children:[(0,t.jsx)("span",{className:"flex min-w-0 items-center gap-2",children:_&&G?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.ProviderIcon,{provider:_.key}),(0,t.jsx)("span",{className:"max-w-48 truncate",children:(0,t.jsx)(z,{label:G.label})}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,t.jsx)(p.EffortIcon,{effort:f,efforts:G.efforts}),(0,t.jsx)("span",{className:"text-muted-foreground",children:f})]}):(0,t.jsx)("span",{className:"text-muted-foreground",children:H("chooseModel")})}),(0,t.jsx)(n.ChevronsUpDown,{className:"text-muted-foreground"})]})}),(0,t.jsxs)(c.PopoverContent,{align:"start",className:"w-max max-w-[min(32rem,calc(100vw-2rem))] gap-0 p-0",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"h-0 overflow-hidden",children:K.flatMap(e=>e.models.map(a=>{var n;return(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 text-sm whitespace-nowrap",children:[(0,t.jsx)("span",{className:"size-4"}),(0,t.jsx)("span",{children:(0,t.jsx)(z,{label:a.label})}),(0,t.jsx)("span",{style:{width:24*(n=Math.max(a.efforts.length,1))+2*Math.max(n-1,0)}})]},`${e.key}/${a.id}`)}))}),(0,t.jsxs)(d.Command,{children:[(0,t.jsx)(d.CommandInput,{placeholder:H("search",{kind:H("model").toLowerCase()})}),(0,t.jsxs)(d.CommandList,{children:[(0,t.jsx)(d.CommandEmpty,{children:H("empty",{kind:H("model")})}),Q.length>0&&(0,t.jsx)(d.CommandGroup,{heading:H("presets"),children:Q.map(ea)}),Y.length>0&&(0,t.jsx)(d.CommandGroup,{heading:H("recentModels"),children:Y.map(ea)}),K.flatMap(e=>(function(e){let t=new Map;for(let a of e.models){let n=a.group||e.label;t.set(n,[...t.get(n)??[],a])}return[...t].map(([e,t])=>({heading:e,models:t}))})(e).map(({heading:a,models:n})=>(0,t.jsx)(d.CommandGroup,{heading:a,children:n.map(n=>{let s=e.key===r&&n.id===u,i=n.efforts.length?n.efforts:["auto"];return(0,t.jsxs)(d.CommandItem,{className:C,"data-checked":s,disabled:U(e),onSelect:()=>et({provider:e.key,model:n.id,effort:n.efforts.includes(f)?f:n.efforts.includes("auto")?"auto":n.efforts[0]??"auto"}),value:`${a} ${n.label} ${n.id}`,children:[(0,t.jsx)(M.ProviderIcon,{provider:e.key}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:(0,t.jsx)(z,{label:n.label})}),(0,t.jsx)("span",{"aria-hidden":"true",className:"invisible flex items-center gap-0.5 group-data-[selected=true]/command-item:visible pointer-coarse:visible","data-slot":"command-shortcut",children:i.map(a=>(0,t.jsx)("button",{className:(0,m.cn)("rounded p-0.5 text-muted-foreground hover:bg-background hover:text-foreground",s&&f===a&&"bg-background text-foreground"),onClick:t=>{t.preventDefault(),t.stopPropagation(),et({provider:e.key,model:n.id,effort:a})},onPointerDown:e=>e.stopPropagation(),tabIndex:-1,title:a,type:"button",children:(0,t.jsx)(p.EffortIcon,{effort:a,efforts:i})},a))})]},`${e.key}/${n.id}`)})},`${e.key}/${a}`)))]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 border-t p-2",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:H("effort")}),(0,t.jsxs)(h.TooltipProvider,{children:[(0,t.jsx)("div",{className:"flex items-center gap-0.5",children:J.map(e=>(0,t.jsxs)(h.Tooltip,{children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(o.Button,{"aria-label":`${H("effort")}: ${e}`,disabled:!G,onClick:()=>{A(e),W&&q({...W,effort:e})},size:"icon-xs",type:"button",variant:f===e?"secondary":"ghost",children:(0,t.jsx)(p.EffortIcon,{effort:e,efforts:J})})}),(0,t.jsx)(h.TooltipContent,{children:e})]},e))}),(0,t.jsxs)(h.Tooltip,{children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(o.Button,{"aria-label":W&&B(W)?H("unpinPreset"):H("pinPreset"),className:"ml-auto",disabled:!W,onClick:()=>W&&D(W),size:"icon-xs",type:"button",variant:"ghost",children:W&&B(W)?(0,t.jsx)(i,{}):(0,t.jsx)(s,{})})}),(0,t.jsx)(h.TooltipContent,{children:W&&B(W)?H("unpinPreset"):H("pinPreset")})]})]})]})]})]}),!T&&en.map(({preset:e,entry:a,model:n},r)=>{let s=r<es;return(0,t.jsxs)(o.Button,{"aria-hidden":!s,className:(0,m.cn)("h-8 shrink-0 font-normal",!s&&"invisible"),onClick:()=>ee(e),tabIndex:s?void 0:-1,type:"button",variant:"ghost",children:[(0,t.jsx)(M.ProviderIcon,{provider:a.key}),(0,t.jsx)("span",{className:"max-w-32 truncate",children:(0,t.jsx)(z,{label:n.label})}),(0,t.jsx)(p.EffortIcon,{className:"text-muted-foreground",effort:e.effort,efforts:n.efforts})]},g(e))})]})}],814760)},95417,829600,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let n=(0,e.i(456420).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["File",0,n],829600);var r=e.i(573474),s=e.i(725981),i=e.i(948148),l=e.i(225913);e.i(586011);var o=e.i(519455),d=e.i(975157);let c=(0,l.cva)("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed",{variants:{size:{default:"gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2",sm:"gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5",xs:"gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1"},orientation:{horizontal:"min-w-40 items-center",vertical:"w-24 flex-col has-data-[slot=attachment-content]:w-30"}}});function h({className:e,state:a="done",size:n="default",orientation:r="horizontal",...s}){return(0,t.jsx)("div",{className:(0,d.cn)(c({size:n,orientation:r}),e),"data-orientation":r,"data-size":n,"data-slot":"attachment","data-state":a,...s})}let u=(0,l.cva)("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5",{variants:{variant:{icon:"",image:"opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover"}},defaultVariants:{variant:"icon"}});function m({className:e,variant:a="icon",...n}){return(0,t.jsx)("div",{className:(0,d.cn)(u({variant:a}),e),"data-slot":"attachment-media","data-variant":a,...n})}function p({className:e,...a}){return(0,t.jsx)("div",{className:(0,d.cn)("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1",e),"data-slot":"attachment-content",...a})}function f({className:e,...a}){return(0,t.jsx)("span",{className:(0,d.cn)("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer",e),"data-slot":"attachment-title",...a})}function x({className:e,...a}){return(0,t.jsx)("span",{className:(0,d.cn)("mt-0.5 block max-w-full min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive/80",e),"data-slot":"attachment-description",...a})}function g({className:e,...a}){return(0,t.jsx)("div",{className:(0,d.cn)("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1",e),"data-slot":"attachment-actions",...a})}function v({className:e,variant:a,size:n="icon-xs",...r}){return(0,t.jsx)(o.Button,{className:(0,d.cn)(e),"data-slot":"attachment-action",size:n,variant:a??"ghost",...r})}function y({className:e,...a}){return(0,t.jsx)("div",{className:(0,d.cn)("scroll-fade-x scrollbar-none flex min-w-0 snap-x snap-mandatory scroll-px-1 gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start",e),"data-slot":"attachment-group",...a})}var j=e.i(987968);e.s(["AttachmentPicker",0,function({attachments:e,uploading:l=!1,onFiles:o,onRemove:c,compact:u=!1}){let w=(0,i.useTranslations)("runs"),[b,k]=(0,a.useState)(!1);return(0,t.jsxs)("div",{className:"space-y-2",children:[e.length>0&&(0,t.jsx)(y,{className:"flex-wrap overflow-visible",children:e.map(e=>{var a;return(0,t.jsxs)(h,{size:u?"xs":"sm",children:[(0,t.jsx)(m,{children:(0,t.jsx)(n,{})}),(0,t.jsxs)(p,{children:[(0,t.jsx)(f,{title:e.filename,children:e.filename}),!u&&(0,t.jsx)(x,{children:(a=e.size)<1024?`${a} B`:a<1048576?`${Math.ceil(a/1024)} KB`:`${(a/1048576).toFixed(1)} MB`})]}),(0,t.jsx)(g,{children:(0,t.jsx)(v,{"aria-label":w("removeAttachment",{name:e.filename}),onClick:()=>c(e.id),type:"button",children:(0,t.jsx)(r.Trash2,{})})})]},e.id)})}),(0,t.jsxs)("label",{className:(0,d.cn)("relative flex cursor-pointer items-center justify-center gap-2 rounded-lg border border-dashed px-4 text-sm text-muted-foreground transition-colors hover:border-foreground/30 hover:bg-muted/40 hover:text-foreground",u?"min-h-9":"min-h-20",b&&"border-primary bg-primary/5 text-primary",l&&"pointer-events-none opacity-60"),onDragEnter:e=>{e.preventDefault(),k(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||k(!1)},onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),k(!1),o(Array.from(e.dataTransfer.files))},children:[l?(0,t.jsx)(j.Spinner,{}):(0,t.jsx)(s.Upload,{}),(0,t.jsx)("span",{children:w("attachFiles")}),(0,t.jsxs)("span",{className:"hidden text-xs sm:inline",children:["· ",w("attachmentLimits")]}),(0,t.jsx)("input",{className:"sr-only",disabled:l,multiple:!0,onChange:e=>{let t=Array.from(e.currentTarget.files??[]);e.currentTarget.value="",o(t)},type:"file"})]})]})}],95417)}]);
@@ -0,0 +1,70 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,106134,e=>{"use strict";var l=e.i(843476),t=e.i(154548),s=e.i(508734),i=e.i(762368),a=e.i(772382),r=e.i(580860),n=e.i(456420);let o=(0,n.default)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);var d=e.i(895065);let c=(0,n.default)("mouse-pointer-2-off",[["path",{d:"m15.55 8.45 5.138 2.087a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063L8.45 15.551",key:"1qoshx"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"m6.816 11.528-2.779-6.84a.495.495 0 0 1 .651-.651l6.84 2.779",key:"mymuvk"}]]);var u=e.i(77071),p=e.i(566595),h=e.i(856522),x=e.i(730274),m=e.i(166794),f=e.i(573474),g=e.i(725981),j=e.i(948148),v=e.i(271645),b=e.i(929592),y=e.i(487486),w=e.i(519455),k=e.i(515288),C=e.i(776639),N=e.i(82612),S=e.i(542450),T=e.i(793479),I=e.i(950594),F=e.i(906197),A=e.i(967489),E=e.i(302747),O=e.i(759684),P=e.i(980376),L=e.i(987968),R=e.i(677572),D=e.i(624687),M=e.i(746798),W=e.i(520133),$=e.i(637611),q=e.i(672510),B=e.i(274757),z=e.i(716327),V=e.i(983913),G=e.i(814760),U=e.i(266136);let H=`query RunProviderCatalog($worktreeId: ID) {
2
+ runProviderCatalog(worktreeId: $worktreeId) {
3
+ key
4
+ label
5
+ available
6
+ supportsWebSearch
7
+ models { id label efforts group }
8
+ }
9
+ }`;var K=e.i(257428),_=e.i(981140),J=e.i(30030),X=e.i(369340),Q=e.i(934620),Y=e.i(820783),Z=e.i(248425),ee=e.i(296626),el=e.i(610772),et=Object.defineProperty,es=(e,l)=>et(e,"name",{value:l,configurable:!0}),ei="Collapsible",[ea,er]=(0,J.createContextScope)(ei),[en,eo]=ea(ei),ed=v.forwardRef(es(function(e,t){let{__scopeCollapsible:s,open:i,defaultOpen:a,disabled:r,onOpenChange:n,...o}=e,[d,c]=(0,X.useControllableState)({prop:i,defaultProp:a??!1,onChange:n,caller:ei});return(0,l.jsx)(en,{scope:s,disabled:r,contentId:(0,el.useId)(),open:d,onOpenToggle:v.useCallback(()=>c(e=>!e),[c]),children:(0,l.jsx)(Z.Primitive.div,{"data-state":ex(d),"data-disabled":r?"":void 0,...o,ref:t})})},"Collapsible")),ec=v.forwardRef(es(function(e,t){let{__scopeCollapsible:s,...i}=e,a=eo("CollapsibleTrigger",s);return(0,l.jsx)(Z.Primitive.button,{type:"button","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open||!1,"data-state":ex(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...i,ref:t,onClick:(0,_.composeEventHandlers)(e.onClick,a.onOpenToggle)})},"CollapsibleTrigger")),eu="CollapsibleContent",ep=v.forwardRef(es(function(e,t){let{forceMount:s,...i}=e,a=eo(eu,e.__scopeCollapsible);return(0,l.jsx)(ee.Presence,{present:s||a.open,children:({present:e})=>(0,l.jsx)(eh,{...i,ref:t,present:e})})},"CollapsibleContent")),eh=v.forwardRef(es(function(e,t){let{__scopeCollapsible:s,present:i,children:a,...r}=e,n=eo(eu,s),[o,d]=v.useState(i),c=v.useRef(null),u=(0,Y.useComposedRefs)(t,c),p=v.useRef(0),h=p.current,x=v.useRef(0),m=x.current,f=n.open||o,g=v.useRef(f),j=v.useRef(void 0);return v.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,Q.useLayoutEffect)(()=>{let e=c.current;if(e){j.current=j.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let l=e.getBoundingClientRect();p.current=l.height,x.current=l.width,g.current||(e.style.transitionDuration=j.current.transitionDuration,e.style.animationName=j.current.animationName),d(i)}},[n.open,i]),(0,l.jsx)(Z.Primitive.div,{"data-state":ex(n.open),"data-disabled":n.disabled?"":void 0,id:n.contentId,hidden:!f,...r,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:f&&a})},"CollapsibleContentImpl"));function ex(e){return e?"open":"closed"}es(ex,"getState"),e.s(["Collapsible",0,ed,"CollapsibleContent",0,ep,"CollapsibleTrigger",0,ec,"Content",0,ep,"Root",0,ed,"Trigger",0,ec,"createCollapsibleScope",0,er],687607);var em=e.i(687607),em=em;function ef({...e}){return(0,l.jsx)(em.Root,{"data-slot":"collapsible",...e})}function eg({...e}){return(0,l.jsx)(em.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function ej({...e}){return(0,l.jsx)(em.CollapsibleContent,{"data-slot":"collapsible-content",...e})}function ev(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,64)}let eb=[{value:"EQ",op:"EQ",negate:!1},{value:"NE",op:"NE",negate:!1},{value:"CONTAINS",op:"CONTAINS",negate:!1},{value:"NOT_CONTAINS",op:"CONTAINS",negate:!0},{value:"MATCHES",op:"MATCHES",negate:!1},{value:"NOT_MATCHES",op:"MATCHES",negate:!0},{value:"GT",op:"GT",negate:!1},{value:"GTE",op:"GTE",negate:!1},{value:"LT",op:"LT",negate:!1},{value:"LTE",op:"LTE",negate:!1},{value:"EXISTS",op:"EXISTS",negate:!1},{value:"NOT_EXISTS",op:"EXISTS",negate:!0}];function ey(e){return"EXISTS"!==e&&"NOT_EXISTS"!==e}let ew={mode:"ALL",rows:[]};function ek(e){var l;if(!e||"object"!=typeof e||Array.isArray(e))return null;let t="NOT"===e.op,s=t?e.condition:e;if(!s||"object"!=typeof s)return null;let i=eb.find(({op:e,negate:l})=>e===s.op&&l===t);if(!i)return null;let a=!(l=s.left)||"object"!=typeof l||Array.isArray(l)||"SESSION"!==l.source||"string"!=typeof l.path?null:l.path;return null===a?null:{path:a,operator:i.value,value:s.right}}function eC(e){let l=eb.find(({value:l})=>l===e.operator),t={op:l.op,left:{source:"SESSION",path:e.path},...ey(e.operator)?{right:e.value}:null};return l.negate?{op:"NOT",condition:t}:t}function eN(e){if(""===e)return"";try{return JSON.parse(e)}catch{return e}}var eS=e.i(450220);let eT={iosConfiguration:!0,jiraUser:!0,agentRun:!0,githubWorkflowRun:!0};function eI(e,l){let t=(0,v.useMemo)(()=>eT[e]&&!l?null:function(e,l){switch(e){case"agent":return{query:`query WorkflowAgentOptions {
10
+ agents { id name hostname connectionStatus }
11
+ }`,variables:{},map:e=>e.agents?.map(e=>({value:e.id,label:e.name,description:`${e.hostname} \xb7 ${e.connectionStatus}`}))??[]};case"codebase":return{query:`query WorkflowCodebaseOptions {
12
+ codebaseOverview { repositories { name codebases { id folder } } }
13
+ }`,variables:{},map:e=>e.codebaseOverview?.repositories.flatMap(e=>e.codebases.map(l=>({value:l.id,label:l.folder||e.name,description:e.name})))??[]};case"worktree":return{query:`query WorkflowWorktreeOptions {
14
+ worktreeOverview {
15
+ agents { codebases { codebase { folder } worktrees { id branch folder } } }
16
+ }
17
+ hiddenWorktrees { id branch folder }
18
+ }`,variables:{},map:e=>[...e.worktreeOverview?.agents.flatMap(e=>e.codebases.flatMap(e=>e.worktrees.map(l=>({value:l.id,label:l.branch||l.folder,description:e.codebase.folder}))))??[],...e.hiddenWorktrees?.map(e=>({value:e.id,label:e.branch||e.folder}))??[]]};case"githubRepository":return{query:`query WorkflowRepositoryOptions {
19
+ githubRepositories { githubId nameWithOwner }
20
+ }`,variables:{},map:e=>e.githubRepositories?.map(e=>({value:e.githubId,label:e.nameWithOwner}))??[]};case"githubPullRequest":return{query:`query WorkflowPullRequestOptions($scope: GitHubPullRequestScope!, $repositoryId: ID) {
21
+ githubPullRequests(source: WORKFLOW_AUTOMATION, scope: $scope, repositoryId: $repositoryId, first: 25) {
22
+ items { number title }
23
+ }
24
+ }`,variables:l?{scope:"REPOSITORY",repositoryId:l}:{scope:"MINE",repositoryId:null},map:e=>e.githubPullRequests?.items.map(e=>({value:String(e.number),label:`#${e.number} ${e.title}`}))??[]};case"jiraTicket":return{query:`query WorkflowTicketOptions {
25
+ jiraCachedTickets(limit: 100) { key summary }
26
+ }`,variables:{},map:e=>e.jiraCachedTickets?.map(e=>({value:e.key,label:e.key,description:e.summary}))??[]};case"jiraUser":if(!l)return null;return{query:`query WorkflowAssignableUsers($issueKey: String!) {
27
+ jiraAssignableUsers(issueKey: $issueKey) { accountId displayName }
28
+ }`,variables:{issueKey:l},map:e=>e.jiraAssignableUsers?.flatMap(e=>e.accountId?[{value:e.accountId,label:e.displayName}]:[])??[]};case"apnsChannel":return{query:`query WorkflowChannelOptions {
29
+ apnsBroadcastChannels { channelId bundleId }
30
+ }`,variables:{},map:e=>e.apnsBroadcastChannels?.map(e=>({value:e.channelId,label:e.channelId,description:e.bundleId}))??[]};case"apnsRegistration":return{query:`query WorkflowRegistrationOptions {
31
+ apnsRegistrations { id displayName topic }
32
+ }`,variables:{},map:e=>e.apnsRegistrations?.map(e=>({value:e.id,label:e.displayName,description:e.topic}))??[]};case"skillGroup":return{query:`query WorkflowSkillGroupOptions {
33
+ skillsOverview { groups { id name } }
34
+ }`,variables:{},map:e=>e.skillsOverview?.groups.map(e=>({value:e.id,label:e.name}))??[]};case"mcpServer":return{query:`query WorkflowMcpServerOptions {
35
+ externalMcpServers { id name }
36
+ }`,variables:{},map:e=>e.externalMcpServers?.map(e=>({value:e.id,label:e.name}))??[]};case"iosConfiguration":if(!l)return null;return{query:`query WorkflowConfigurationOptions($codebaseId: ID!) {
37
+ iosAppProject(codebaseId: $codebaseId) { configurations { id name } }
38
+ }`,variables:{codebaseId:l},map:e=>e.iosAppProject?.configurations.map(e=>({value:e.id,label:e.name}))??[]};case"buildScript":return{query:`query WorkflowBuildScriptOptions {
39
+ buildScripts { id name }
40
+ }`,variables:{},map:e=>e.buildScripts?.map(e=>({value:e.id,label:e.name}))??[]};case"agentRun":if(!l)return null;return{query:`query WorkflowAgentRunOptions($kind: RunKind!) {
41
+ agentRuns(kind: $kind, first: 50) { items { id displayNumber initialPrompt } }
42
+ }`,variables:{kind:l},map:e=>e.agentRuns?.items.map(e=>({value:e.id,label:`#${e.displayNumber}`,description:e.initialPrompt}))??[]};case"githubWorkflowRun":if(!l)return null;return{query:`query WorkflowActionsRunOptions($codebaseRepositoryId: ID) {
43
+ githubActionsWorkflowRuns(source: WORKFLOW_AUTOMATION, codebaseRepositoryId: $codebaseRepositoryId, first: 25) {
44
+ items { id displayTitle headBranch }
45
+ }
46
+ }`,variables:{codebaseRepositoryId:l},map:e=>e.githubActionsWorkflowRuns?.items.map(e=>({value:e.id,label:e.displayTitle||e.id,description:e.headBranch??void 0}))??[]};default:return null}}(e,l),[e,l]),s=t?JSON.stringify({query:t.query,variables:t.variables}):null,[i,a]=(0,v.useState)({key:"",options:[],error:!1});return((0,v.useEffect)(()=>{if(!t||!s)return;let e=!1;return(0,$.controlPlaneRequest)(t.query,t.variables).then(l=>{e||a({key:s,options:t.map(l),error:!1})}).catch(()=>{e||a({key:s,options:[],error:!0})}),()=>{e=!0}},[t,s]),t&&s)?i.key!==s?{options:[],loading:!0,fallback:!1}:{options:i.options,loading:!1,fallback:i.error||0===i.options.length}:{options:[],loading:!1,fallback:!0}}var eF=e.i(159888);let eA=(0,n.default)("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["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"}]]);var eE=e.i(808562);function eO(e){return!!e&&"object"==typeof e&&!Array.isArray(e)&&"SESSION"===e.source}function eP(e){return e&&"object"==typeof e&&!Array.isArray(e)&&"LITERAL"===e.source?e.value:e}function eL(){let e=(0,j.useTranslations)("workflows");return(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e("interpolationHelp",{token:"{{path}}",example:"{{worktree.baseBranch}}"})})}function eR({mode:e,onValueChange:t}){let s=(0,j.useTranslations)("workflows");return(0,l.jsxs)(eE.ToggleGroup,{"aria-label":s("valueModeToggle"),onValueChange:e=>{("literal"===e||"session"===e)&&t(e)},size:"sm",spacing:0,type:"single",value:e,variant:"outline",children:[(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(eE.ToggleGroupItem,{"aria-label":s("valueModeLiteral"),className:"size-7 px-0 aria-checked:bg-accent aria-checked:text-accent-foreground",value:"literal",children:(0,l.jsx)(eA,{className:"size-3.5"})})}),(0,l.jsx)(M.TooltipContent,{children:s("valueModeLiteral")})]}),(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(eE.ToggleGroupItem,{"aria-label":s("valueModeSession"),className:"size-7 px-0 aria-checked:bg-accent aria-checked:text-accent-foreground",value:"session",children:(0,l.jsx)(eF.Braces,{className:"size-3.5"})})}),(0,l.jsx)(M.TooltipContent,{children:s("valueModeSession")})]})]})}function eD({label:e,help:t,allowCustomSessionPath:s=!0,defaultSessionPath:i,sessionEnabled:a,interpolationEnabled:r=!1,value:n,onChange:o,sessionPaths:d,children:c}){let u=(0,j.useTranslations)("workflows"),p=(0,v.useId)(),h=eO(n)?"session":"literal",x=d.map(({path:e,description:l})=>({value:e,label:e,description:l}));return(0,l.jsxs)(S.Field,{children:[(0,l.jsxs)("div",{className:"flex items-end justify-between gap-2",children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",htmlFor:p,children:e}),a&&(0,l.jsx)(eR,{mode:h,onValueChange:e=>o("session"===e?{source:"SESSION",path:d.find(({path:e})=>e===i)?.path??d[0]?.path??""}:"")})]}),"session"===h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(V.SearchableSelect,{allowCustomValue:s,ariaLabel:u("sessionBindingLabel"),emptyMessage:u("noOptions"),onValueChange:e=>o({source:"SESSION",path:e}),options:x,placeholder:u("sessionPathPlaceholder"),searchPlaceholder:u("searchPlaceholder"),value:eO(n)?n.path:""}),(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:u("sessionBindingHelp")})]}):(0,l.jsxs)(l.Fragment,{children:[c(eP(n),o,p),t&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:t}),r&&(0,l.jsx)(eL,{})]})]})}function eM(e){return"string"==typeof e?e:""}function eW(e,l){if(!l)return null;let t=e[l];return"string"==typeof t&&t.length>0?t:null}function e$(e){return!!e.valueModes?.includes("session")}function eq(e){return!!e.valueModes?.includes("interpolation")}function eB({field:e,value:t,onChange:s}){let i=(0,j.useTranslations)("workflows"),a=(0,v.useId)(),r=e.options?.kind==="static"?e.options.options:[];return(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",htmlFor:a,children:e.label}),(0,l.jsxs)(A.Select,{onValueChange:e=>s(e),value:eM(eP(t)),children:[(0,l.jsx)(A.SelectTrigger,{className:"w-full",id:a,children:(0,l.jsx)(A.SelectValue,{placeholder:i("selectPlaceholder")})}),(0,l.jsx)(A.SelectContent,{children:r.map(e=>(0,l.jsx)(A.SelectItem,{value:e.value,children:e.label??e.value},e.value))})]}),e.help&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e.help})]})}function ez({field:e,value:t,onChange:s,sessionPaths:i}){return(0,l.jsx)(eD,{help:e.help,interpolationEnabled:eq(e),label:e.label,onChange:s,sessionEnabled:e$(e),sessionPaths:i,value:t,children:(t,s,i)=>e.multiline?(0,l.jsx)(D.Textarea,{className:"min-h-20 text-sm",id:i,onChange:e=>s(e.target.value),placeholder:e.placeholder,value:eM(t)}):(0,l.jsx)(T.Input,{id:i,onChange:e=>s(e.target.value),placeholder:e.placeholder,value:eM(t)})})}function eV({field:e,value:t,onChange:s,sessionPaths:i}){return(0,l.jsx)(eD,{help:e.help,label:e.label,onChange:s,sessionEnabled:e$(e),sessionPaths:i,value:t,children:(t,s,i)=>(0,l.jsx)(T.Input,{id:i,onChange:e=>s(""===e.target.value?void 0:Number(e.target.value)),placeholder:e.placeholder,type:"number",value:"number"==typeof t&&Number.isFinite(t)?String(t):""})})}function eG({field:e,value:t,onChange:s}){let i=(0,v.useId)();return(0,l.jsxs)(S.Field,{orientation:"horizontal",children:[(0,l.jsx)(K.Checkbox,{checked:!0===eP(t),id:i,onCheckedChange:e=>s(!0===e)}),(0,l.jsxs)(S.FieldContent,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",htmlFor:i,children:e.label}),e.help&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e.help})]})]})}function eU({field:e,value:t,onChange:s}){let i=Array.isArray(t)?t.map(String):[];return(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",children:e.label}),(0,l.jsx)(U.McpPresetPicker,{kind:e.presetKind,onChange:s,selectedIds:i,showAvailability:null==e.presetKind}),e.help&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e.help})]})}function eH({field:e,config:t,value:s,onChange:i,sessionPaths:a}){let r=(0,j.useTranslations)("workflows"),n=e.options?.kind==="resource"?e.options:null,o=eW(t,n?.scopeFrom),{options:d,loading:c}=eI(n?.resource??"codebase",o),u=n?.sessionPath,p=u?a.filter(({path:e})=>{let[l,t]=u.split(".");return e===u||e.startsWith(`${l}.`)&&e.endsWith(`.${t}`)}):a;return(0,l.jsx)(eD,{allowCustomSessionPath:!u,defaultSessionPath:u,help:e.help,interpolationEnabled:eq(e),label:e.label,onChange:i,sessionEnabled:e$(e),sessionPaths:p,value:s,children:(t,s)=>(0,l.jsx)(V.SearchableSelect,{allowCustomValue:!0,ariaLabel:e.label,disabled:c,emptyMessage:r("noOptions"),onValueChange:s,options:d,placeholder:e.placeholder??r("selectPlaceholder"),searchPlaceholder:r("searchPlaceholder"),value:eM(t)})})}function eK({field:e,config:t,value:s,onChange:i}){let a=(0,j.useTranslations)("workflows"),r=e.options?.kind==="resource"?e.options:null,n=eW(t,r?.scopeFrom),{options:o,loading:d}=eI(r?.resource??"codebase",n),c=Array.isArray(s)?s.map(String):[],u=o.filter(e=>!c.includes(e.value));return(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",children:e.label}),(0,l.jsx)(F.ItemGroup,{className:"gap-1.5",children:c.map(e=>(0,l.jsxs)(F.Item,{size:"xs",variant:"muted",children:[(0,l.jsx)(F.ItemContent,{className:"min-w-0",children:(0,l.jsx)(F.ItemTitle,{className:"block truncate text-xs",children:o.find(l=>l.value===e)?.label??e})}),(0,l.jsx)(F.ItemActions,{children:(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(w.Button,{"aria-label":a("removeRow"),className:"size-7",onClick:()=>{i(c.filter(l=>l!==e))},size:"icon",type:"button",variant:"ghost",children:(0,l.jsx)(f.Trash2,{className:"size-3.5"})})}),(0,l.jsx)(M.TooltipContent,{children:a("removeRow")})]})})]},e))}),(0,l.jsx)(V.SearchableSelect,{allowCustomValue:!0,ariaLabel:e.label,disabled:d,emptyMessage:a("noOptions"),onValueChange:e=>{e&&!c.includes(e)&&i([...c,e])},options:u,placeholder:e.placeholder??a("addRow"),searchPlaceholder:a("searchPlaceholder"),value:""}),e.help&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e.help}),eq(e)&&(0,l.jsx)(eL,{})]})}function e_({field:e,value:t,onChange:s}){let i=(0,j.useTranslations)("workflows"),a=Array.isArray(t)?t.map(String):[];return(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",children:e.label}),(0,l.jsx)(S.FieldGroup,{className:"gap-1.5",children:a.map((t,r)=>(0,l.jsxs)(I.InputGroup,{children:[(0,l.jsx)(I.InputGroupInput,{onChange:e=>{let l;return l=e.target.value,s(a.map((e,t)=>t===r?l:e))},placeholder:e.placeholder,value:t}),(0,l.jsx)(I.InputGroupAddon,{align:"inline-end",children:(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(I.InputGroupButton,{"aria-label":i("removeRow"),onClick:()=>s(a.filter((e,l)=>l!==r)),size:"icon-xs",children:(0,l.jsx)(f.Trash2,{className:"size-3.5"})})}),(0,l.jsx)(M.TooltipContent,{children:i("removeRow")})]})})]},r))}),(0,l.jsxs)(w.Button,{onClick:()=>s([...a,""]),size:"sm",type:"button",variant:"outline",children:[(0,l.jsx)(u.Plus,{className:"size-3.5"})," ",i("addRow")]}),e.help&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e.help}),eq(e)&&(0,l.jsx)(eL,{})]})}function eJ({field:e,value:t,onChange:s}){let i=(0,j.useTranslations)("workflows"),a=t&&"object"==typeof t&&!Array.isArray(t)?Object.entries(t).map(([e,l])=>[e,l]):[],r=e=>{let l={};for(let[t,s]of e)t&&(l[t]=s);s(l)};return(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",children:e.label}),(0,l.jsx)(S.FieldGroup,{className:"gap-1.5",children:a.map(([e,t],s)=>(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(T.Input,{className:"w-2/5",onChange:e=>r(a.map((l,t)=>t===s?[e.target.value,l[1]]:l)),placeholder:i("recordKeyPlaceholder"),value:e}),(0,l.jsx)(T.Input,{className:"min-w-0 flex-1",onChange:e=>r(a.map((l,t)=>t===s?[l[0],e.target.value]:l)),placeholder:i("recordValuePlaceholder"),value:eM(t)}),(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(w.Button,{"aria-label":i("removeRow"),className:"size-7 shrink-0",onClick:()=>r(a.filter((e,l)=>l!==s)),size:"icon",type:"button",variant:"ghost",children:(0,l.jsx)(f.Trash2,{className:"size-3.5"})})}),(0,l.jsx)(M.TooltipContent,{children:i("removeRow")})]})]},s))}),(0,l.jsxs)(w.Button,{onClick:()=>r([...a,["",""]]),size:"sm",type:"button",variant:"outline",children:[(0,l.jsx)(u.Plus,{className:"size-3.5"})," ",i("addRow")]}),e.help&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e.help}),eq(e)&&(0,l.jsx)(eL,{})]})}function eX({field:e,value:t,onChange:s}){let i=(0,v.useId)(),[a,r]=(0,v.useState)(()=>void 0===t?"":JSON.stringify(t,null,2)),[n,o]=(0,v.useState)(null),d=(0,v.useRef)(a);return(0,v.useEffect)(()=>{let e=void 0===t?"":JSON.stringify(t,null,2);e!==d.current&&(r(e),d.current=e,o(null))},[t]),(0,l.jsxs)(S.Field,{"data-invalid":!!n,children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",htmlFor:i,children:e.label}),(0,l.jsx)(D.Textarea,{"aria-invalid":!!n,className:"min-h-24 font-mono text-xs",id:i,onChange:e=>(e=>{if(r(e),""===e.trim()){d.current="",o(null),s(void 0);return}try{let l=JSON.parse(e);d.current=JSON.stringify(l,null,2),o(null),s(l)}catch(e){o(e instanceof Error?e.message:String(e))}})(e.target.value),placeholder:e.placeholder,value:a}),n?(0,l.jsx)(S.FieldError,{className:"text-[10px]",children:n}):(0,l.jsxs)(l.Fragment,{children:[e.help&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e.help}),eq(e)&&(0,l.jsx)(eL,{})]})]})}function eQ(e){let{field:t,value:s,onChange:i,sessionPaths:a}=e,r=(0,j.useTranslations)("workflows"),n=function(e){if(null==e)return ew;if("object"!=typeof e||Array.isArray(e))return null;if("ALL"===e.op||"ANY"===e.op){let l=e.conditions;if(!Array.isArray(l))return null;let t=[];for(let e of l){let l=ek(e);if(!l)return null;t.push(l)}return{mode:e.op,rows:t}}let l=ek(e);return l?{mode:"ALL",rows:[l]}:null}(s),o=a.map(({path:e,description:l})=>({value:e,label:e,description:l}));if(!n)return(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)(eX,{...e}),(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:r("conditionAdvanced")})]});let d=e=>i(function(e){if(0!==e.rows.length)return 1===e.rows.length?eC(e.rows[0]):{op:e.mode,conditions:e.rows.map(eC)}}(e)),c=(e,l)=>d({...n,rows:n.rows.map((t,s)=>s===e?{...t,...l}:t)});return(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",children:t.label}),n.rows.length>1&&(0,l.jsxs)(A.Select,{onValueChange:e=>d({...n,mode:"ANY"===e?"ANY":"ALL"}),value:n.mode,children:[(0,l.jsx)(A.SelectTrigger,{"aria-label":r("conditionMatchMode"),className:"w-full",children:(0,l.jsx)(A.SelectValue,{})}),(0,l.jsxs)(A.SelectContent,{children:[(0,l.jsx)(A.SelectItem,{value:"ALL",children:r("conditionMatchAll")}),(0,l.jsx)(A.SelectItem,{value:"ANY",children:r("conditionMatchAny")})]})]}),(0,l.jsx)(S.FieldGroup,{className:"gap-1.5",children:n.rows.map((e,t)=>{var s;return(0,l.jsxs)("div",{className:"space-y-1.5 rounded-lg border p-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"min-w-0 flex-1",children:(0,l.jsx)(V.SearchableSelect,{allowCustomValue:!0,ariaLabel:r("conditionField"),emptyMessage:r("noOptions"),onValueChange:e=>c(t,{path:e}),options:o,placeholder:r("sessionPathPlaceholder"),searchPlaceholder:r("searchPlaceholder"),value:e.path})}),(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(w.Button,{"aria-label":r("removeRow"),className:"size-7 shrink-0",onClick:()=>d({...n,rows:n.rows.filter((e,l)=>l!==t)}),size:"icon",type:"button",variant:"ghost",children:(0,l.jsx)(f.Trash2,{className:"size-3.5"})})}),(0,l.jsx)(M.TooltipContent,{children:r("removeRow")})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsxs)(A.Select,{onValueChange:e=>c(t,{operator:e}),value:e.operator,children:[(0,l.jsx)(A.SelectTrigger,{"aria-label":r("conditionOperator"),className:"w-40 shrink-0",children:(0,l.jsx)(A.SelectValue,{})}),(0,l.jsx)(A.SelectContent,{children:eb.map(e=>(0,l.jsx)(A.SelectItem,{value:e.value,children:r(`conditionOperators.${e.value}`)},e.value))})]}),ey(e.operator)&&(0,l.jsxs)(l.Fragment,{children:[eO(e.value)?(0,l.jsx)("div",{className:"min-w-0 flex-1",children:(0,l.jsx)(V.SearchableSelect,{allowCustomValue:!0,ariaLabel:r("sessionBindingLabel"),emptyMessage:r("noOptions"),onValueChange:e=>c(t,{value:{source:"SESSION",path:e}}),options:o,placeholder:r("sessionPathPlaceholder"),searchPlaceholder:r("searchPlaceholder"),value:e.value.path})}):(0,l.jsx)(T.Input,{"aria-label":r("conditionValue"),className:"min-w-0 flex-1",onChange:e=>c(t,{value:eN(e.target.value)}),placeholder:r("conditionValuePlaceholder"),value:void 0===(s=e.value)?"":"string"==typeof s?eN(s)===s?s:JSON.stringify(s):JSON.stringify(s)??""}),(0,l.jsx)(eR,{mode:eO(e.value)?"session":"literal",onValueChange:e=>c(t,{value:"session"===e?{source:"SESSION",path:""}:""})})]})]})]},t)})}),(0,l.jsxs)(w.Button,{onClick:()=>d({...n,rows:[...n.rows,{path:"",operator:"EQ",value:""}]}),size:"sm",type:"button",variant:"outline",children:[(0,l.jsx)(u.Plus,{className:"size-3.5"})," ",r("addCondition")]}),(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:n.rows.length?r("conditionHelp"):r("conditionEmpty")}),eq(t)&&(0,l.jsx)(eL,{})]})}function eY(e){let{field:t,value:s,onChange:i}=e,a=(0,j.useTranslations)("workflows"),r=function(e){if(null==e)return[];if(!Array.isArray(e))return null;let l=[];for(let t of e){if(!t||"object"!=typeof t||Array.isArray(t)||Object.keys(t).filter(e=>"label"!==e&&"description"!==e).length>0||"string"!=typeof t.label||void 0!==t.description&&"string"!=typeof t.description)return null;l.push({label:t.label,description:t.description??""})}return l}(s);if(!r)return(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)(eX,{...e}),(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:a("choiceOptionsAdvanced")})]});let n=e=>i(function(e){if(0!==e.length)return e.map(({label:e,description:l})=>l?{label:e,description:l}:{label:e})}(e)),o=(e,l)=>n(r.map((t,s)=>s===e?{...t,...l}:t));return(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",children:t.label}),(0,l.jsx)(S.FieldGroup,{className:"gap-1.5",children:r.map((e,t)=>(0,l.jsxs)("div",{className:"space-y-1.5 rounded-lg border p-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(T.Input,{"aria-label":a("choiceOptionLabel"),className:"min-w-0 flex-1",onChange:e=>o(t,{label:e.target.value}),placeholder:a("choiceOptionLabel"),value:e.label}),(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(w.Button,{"aria-label":a("removeRow"),className:"size-7 shrink-0",onClick:()=>n(r.filter((e,l)=>l!==t)),size:"icon",type:"button",variant:"ghost",children:(0,l.jsx)(f.Trash2,{className:"size-3.5"})})}),(0,l.jsx)(M.TooltipContent,{children:a("removeRow")})]})]}),(0,l.jsx)(T.Input,{"aria-label":a("choiceOptionDescription"),className:"text-xs",onChange:e=>o(t,{description:e.target.value}),placeholder:a("choiceOptionDescription"),value:e.description})]},t))}),(0,l.jsxs)(w.Button,{onClick:()=>n([...r,{label:"",description:""}]),size:"sm",type:"button",variant:"outline",children:[(0,l.jsx)(u.Plus,{className:"size-3.5"})," ",a("addChoiceOption")]}),(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:r.length?a("choiceOptionsHelp"):a("choiceOptionsEmpty")}),eq(t)&&(0,l.jsx)(eL,{})]})}function eZ(e){let{field:t,value:s,onChange:i}=e,a=(0,j.useTranslations)("workflows"),r=function(e){if(null==e)return[];if(!Array.isArray(e))return null;let l=[];for(let t of e){if(!t||"object"!=typeof t||Array.isArray(t)||Object.keys(t).filter(e=>"key"!==e&&"label"!==e&&"description"!==e).length>0||"string"!=typeof t.key||void 0!==t.label&&"string"!=typeof t.label||void 0!==t.description&&"string"!=typeof t.description)return null;l.push({key:t.key,label:t.label??"",description:t.description??""})}return l}(s);if(!r)return(0,l.jsxs)("div",{className:"space-y-1.5",children:[(0,l.jsx)(eX,{...e}),(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:a("triggerChoicesAdvanced")})]});let n=e=>i(function(e){if(0!==e.length)return e.map(({key:e,label:l,description:t})=>t?{key:e,label:l,description:t}:{key:e,label:l})}(e)),o=(e,l)=>n(r.map((t,s)=>s===e?{...t,...l}:t));return(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",children:t.label}),(0,l.jsx)(S.FieldGroup,{className:"gap-1.5",children:r.map((e,t)=>(0,l.jsxs)("div",{className:"space-y-1.5 rounded-lg border p-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(T.Input,{"aria-label":a("triggerChoiceLabel"),className:"min-w-0 flex-1",onChange:e=>{var l;let s;return l=e.target.value,s=r[t],void o(t,{label:l,...!s.key||s.key===ev(s.label)?{key:ev(l)}:{}})},placeholder:a("triggerChoiceLabel"),value:e.label}),(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(w.Button,{"aria-label":a("removeRow"),className:"size-7 shrink-0",onClick:()=>n(r.filter((e,l)=>l!==t)),size:"icon",type:"button",variant:"ghost",children:(0,l.jsx)(f.Trash2,{className:"size-3.5"})})}),(0,l.jsx)(M.TooltipContent,{children:a("removeRow")})]})]}),(0,l.jsx)(T.Input,{"aria-label":a("triggerChoiceKey"),className:"font-mono text-xs",onChange:e=>o(t,{key:e.target.value}),placeholder:a("triggerChoiceKey"),value:e.key}),r.some((e,l)=>l!==t&&e.key===r[t].key)&&(0,l.jsx)(S.FieldError,{className:"text-[10px]",children:a("triggerChoiceKeyDuplicate")}),(0,l.jsx)(T.Input,{"aria-label":a("triggerChoiceDescription"),className:"text-xs",onChange:e=>o(t,{description:e.target.value}),placeholder:a("triggerChoiceDescription"),value:e.description})]},t))}),(0,l.jsxs)(w.Button,{onClick:()=>n([...r,{key:"",label:"",description:""}]),size:"sm",type:"button",variant:"outline",children:[(0,l.jsx)(u.Plus,{className:"size-3.5"})," ",a("addTriggerChoice")]}),(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:r.length?a("triggerChoicesHelp"):a("triggerChoicesEmpty")})]})}let e0={provider:"provider",model:"model",effort:"effort"};function e1({field:e,config:t,onChange:s,sessionPaths:i}){let a=(0,j.useTranslations)("workflows"),r=e.modelKeys??e0,n=(0,v.useRef)(t);(0,v.useEffect)(()=>{n.current=t},[t]);let o=e=>{let l={...n.current};for(let[t,s]of Object.entries(e))void 0===s?delete l[t]:l[t]=s;n.current=l,s(l)},d=t[r.provider],c=t[r.model],u=t[r.effort],p=eO(d)||eO(c)||eO(u),h=function(e){let[l,t]=(0,v.useState)([]);return(0,v.useEffect)(()=>{let l=!1;return(0,$.controlPlaneRequest)(H,{worktreeId:e||null}).then(e=>{l||t(e.runProviderCatalog)}).catch(()=>{l||t([])}),()=>{l=!0}},[e]),l}(eW(t,r.scopeFrom)),x=[{key:r.provider,label:a("modelProvider"),value:d},{key:r.model,label:a("modelModel"),value:c},{key:r.effort,label:a("modelEffort"),value:u}],m=i.map(({path:e,description:l})=>({value:e,label:e,description:l}));return(0,l.jsxs)(S.Field,{children:[(0,l.jsxs)("div",{className:"flex items-end justify-between gap-2",children:[(0,l.jsx)(S.FieldLabel,{className:"text-xs",children:e.label}),(0,l.jsx)(eR,{mode:p?"session":"literal",onValueChange:e=>"session"===e?o({[r.provider]:{source:"SESSION",path:""},[r.model]:{source:"SESSION",path:""},[r.effort]:{source:"SESSION",path:""}}):o({[r.provider]:void 0,[r.model]:void 0,[r.effort]:void 0})})]}),p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S.FieldGroup,{className:"gap-1.5",children:x.map(({key:e,label:t,value:s})=>(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{className:"text-[10px] text-muted-foreground",children:t}),(0,l.jsx)(V.SearchableSelect,{allowCustomValue:!0,ariaLabel:t,emptyMessage:a("noOptions"),onValueChange:l=>o({[e]:{source:"SESSION",path:l}}),options:m,placeholder:a("sessionPathPlaceholder"),searchPlaceholder:a("searchPlaceholder"),value:eO(s)?s.path:""})]},e))}),(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:a("sessionBindingHelp")})]}):(0,l.jsx)(G.ModelEffortPicker,{catalog:h,effort:eM(eP(u)),fullWidth:!0,model:eM(eP(c)),onEffortChange:e=>o({[r.effort]:e}),onModelChange:e=>o({[r.model]:e}),onProviderChange:e=>o({[r.provider]:e}),provider:eM(eP(d))}),e.help&&(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:e.help})]})}function e2(e){switch(e.field.control){case"enum":return(0,l.jsx)(eB,{...e});case"text":return(0,l.jsx)(ez,{...e});case"number":return(0,l.jsx)(eV,{...e});case"boolean":return(0,l.jsx)(eG,{...e});case"resource":return(0,l.jsx)(eH,{...e});case"resourceMulti":return(0,l.jsx)(eK,{...e});case"stringList":return(0,l.jsx)(e_,{...e});case"record":return(0,l.jsx)(eJ,{...e});case"condition":return(0,l.jsx)(eQ,{...e});case"choiceOptions":return(0,l.jsx)(eY,{...e});case"triggerChoices":return(0,l.jsx)(eZ,{...e});case"mcpPresetMulti":return(0,l.jsx)(eU,{...e});case"json":return(0,l.jsx)(eX,{...e});default:return null}}function e5({config:e,onChange:t,defaultOpen:s,extraKeyCount:i}){let a=(0,j.useTranslations)("workflows"),[r,n]=(0,v.useState)(s),[o,d]=(0,v.useState)(()=>JSON.stringify(e,null,2)),[c,u]=(0,v.useState)(null),p=(0,v.useRef)(o);return(0,v.useEffect)(()=>{let l=JSON.stringify(e,null,2);l!==p.current&&(d(l),p.current=l,u(null))},[e]),(0,l.jsxs)(ef,{onOpenChange:n,open:r,children:[(0,l.jsx)(eg,{asChild:!0,children:(0,l.jsxs)(w.Button,{className:"w-full justify-between px-0 text-xs font-medium text-muted-foreground",type:"button",variant:"ghost",children:[(0,l.jsxs)("span",{children:[a("advancedJson"),i?` \xb7 ${a("extraKeys",{count:i})}`:""]}),(0,l.jsx)(z.ChevronDown,{className:`size-4 transition-transform ${r?"rotate-180":""}`})]})}),(0,l.jsxs)(ej,{className:"space-y-1.5 pt-1.5",children:[(0,l.jsx)(D.Textarea,{"aria-label":a("advancedJson"),"aria-invalid":!!c,className:"min-h-40 font-mono text-xs",onChange:e=>(e=>{d(e);try{let l=JSON.parse(e);if(!l||"object"!=typeof l||Array.isArray(l))throw Error(a("configMustBeObject"));p.current=JSON.stringify(l,null,2),u(null),t(l)}catch(e){u(e instanceof Error?e.message:String(e))}})(e.target.value),value:o}),c?(0,l.jsx)(S.FieldError,{className:"text-[10px]",children:c}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S.FieldDescription,{className:"text-[10px]",children:a("advancedJsonHelp")}),(0,l.jsx)(eL,{})]})]})]})}function e3({kind:e,scope:t,config:s,onChange:i,sessionPaths:a}){let r=(0,j.useTranslations)("workflows"),n=(0,eS.getConfigDescriptor)(e,t);if(!n)return null;let o=new Set(n.fields.flatMap(e=>"model"===e.control&&e.modelKeys?[e.modelKeys.provider,e.modelKeys.model,e.modelKeys.effort]:[e.key])),d=Object.keys(s).filter(e=>!o.has(e));return(0,l.jsxs)(S.FieldGroup,{className:"gap-3",children:[(0,l.jsx)(S.FieldTitle,{className:"text-xs text-muted-foreground",children:r("configuration")}),n.fields.map(e=>e.visibleWhen&&s[e.visibleWhen.key]!==e.visibleWhen.equals?null:"model"===e.control?(0,l.jsx)(e1,{config:s,field:e,onChange:i,sessionPaths:a},e.key):(0,l.jsx)(e2,{config:s,field:e,onChange:l=>((e,l)=>{if(void 0===l){let l={...s};delete l[e],i(l);return}i({...s,[e]:l})})(e.key,l),sessionPaths:a,value:s[e.key]},e.key)),(0,l.jsx)(e5,{config:s,defaultOpen:!1,extraKeyCount:d.length,onChange:i})]})}var e6=e.i(895673),e7=e.i(349049),e8=e.i(399668);function e4(e="Untitled workflow"){return{format:"aide.workflow",schemaVersion:1,name:e,description:"",triggers:[{id:"manual",kind:"MANUAL",name:"Manual",position:{x:0,y:160},config:{}}],nodes:[],edges:[],editor:{}}}var e9=e.i(681735),le=e.i(18718);let ll=`
47
+ query WorkflowEditorCatalog($id: ID!) {
48
+ workflowCatalog {
49
+ schemaVersion globalConcurrency
50
+ steps { kind category label description details execution configSchema capabilityFlags requiredPaths providedPaths sourceHandles mutatesExternal mutatesWorktree }
51
+ triggers { kind category label description details configSchema capabilityFlags seedPaths sourceHandles }
52
+ }
53
+ workflow(id: $id) {
54
+ id name description draftDefinition activeVersionId enabled overlapPolicy maxConcurrentRuns archivedAt
55
+ versionCount runCount createdAt updatedAt
56
+ }
57
+ }
58
+ `;function lt(e){return`${e}-${crypto.randomUUID()}`}function ls(e){let l=new Map;for(let t of e)l.set(t.category,[...l.get(t.category)??[],t]);return l}function li({children:e,details:t}){return(0,l.jsxs)(M.Tooltip,{children:[(0,l.jsx)(M.TooltipTrigger,{asChild:!0,children:(0,l.jsx)(F.Item,{asChild:!0,className:"gap-1.5 px-1.5 py-1",size:"xs",variant:"outline",children:e})}),(0,l.jsx)(M.TooltipContent,{className:"max-w-80 text-xs leading-relaxed",side:"right",children:t})]})}function la(){let e=(0,j.useTranslations)("workflows"),s=(0,t.useStoreApi)(),i=(0,t.useStore)(e=>e.nodesDraggable||e.nodesConnectable||e.elementsSelectable),a=e(i?"lockSteps":"unlockSteps"),r="fill-none!";return(0,l.jsx)(t.ControlButton,{"aria-label":a,onClick:()=>s.setState({elementsSelectable:!i,nodesConnectable:!i,nodesDraggable:!i}),title:a,children:i?(0,l.jsx)(c,{className:r}):(0,l.jsx)(d.MousePointer2,{className:r})})}function lr({onToggle:e,shown:s}){let i=(0,j.useTranslations)("workflows")(s?"hideSessionData":"showSessionData"),n="fill-none!";return(0,l.jsx)(t.ControlButton,{"aria-label":i,onClick:e,title:i,children:s?(0,l.jsx)(r.EyeOff,{className:n}):(0,l.jsx)(a.Eye,{className:n})})}function ln({workflowId:e}){let n=(0,j.useTranslations)("workflows"),d=(0,e8.useWorkflowLabels)(),c=(0,W.useRouter)(),M=(0,v.useRef)(null),z=(0,v.useRef)(null),[V,G]=(0,v.useState)(null),[U,H]=(0,v.useState)(()=>e4()),[K,_]=(0,v.useState)(null),[J,X,Q]=(0,t.useNodesState)([]),[Y,Z,ee]=(0,t.useEdgesState)([]),[el,et]=(0,v.useState)(null),[es,ei]=(0,v.useState)(null),[ea,er]=(0,v.useState)(null),[en,eo]=(0,v.useState)(!1),[ed,ec]=(0,v.useState)("palette"),[eu,ep]=(0,v.useState)(""),[eh,ex]=(0,v.useState)(!0),[em,ef]=(0,v.useState)(!1),[eg,ej]=(0,v.useState)(null),[ev,eb]=(0,v.useState)(null),[ey,ew]=(0,v.useState)([]),[ek,eC]=(0,v.useState)("QUEUE"),[eN,eT]=(0,v.useState)(1),[eI,eF]=(0,v.useState)(!1),[eA,eE]=(0,v.useState)(!1),[eO,eP]=(0,v.useState)(!1),[eL,eR]=(0,v.useState)(null),eD=(0,v.useMemo)(()=>new Map(K?.steps.map(({kind:e,category:l})=>[e,l])??[]),[K]),eM=(0,v.useMemo)(()=>(0,q.computeWorkflowPathAvailability)(U,(0,e9.buildPathLookup)(K)),[K,U]),eW=(0,v.useCallback)((e,l=ey)=>{let t=(0,e7.workflowFlowElements)(e,{diagnostics:l,categories:eD,provides:(0,e9.providesByNodeMap)((0,q.computeWorkflowPathAvailability)(e,(0,e9.buildPathLookup)(K)))});X(t.nodes),Z(t.edges)},[K,eD,ey,Z,X]);(0,v.useEffect)(()=>{let l=!1;return(0,$.controlPlaneRequest)(ll,{id:e??"__new__"}).then(e=>{if(l)return;let t=e.workflow?.draftDefinition??e4();_(e.workflowCatalog),G(e.workflow),H(t),eC(e.workflow?.overlapPolicy??"QUEUE"),eT(e.workflow?.maxConcurrentRuns??1);let s=new Map(e.workflowCatalog.steps.map(({kind:e,category:l})=>[e,l])),i=(0,e7.workflowFlowElements)(t,{categories:s,provides:(0,e9.providesByNodeMap)((0,q.computeWorkflowPathAvailability)(t,(0,e9.buildPathLookup)(e.workflowCatalog)))});X(i.nodes),Z(i.edges)}).catch(e=>ej(e instanceof Error?e.message:String(e))).finally(()=>ex(!1)),()=>{l=!0}},[Z,X,e]);let e$=U.nodes.find(({id:e})=>e===es)??null,eq=U.triggers.find(({id:e})=>e===es)??null,eB=e$??eq,ez=(0,v.useMemo)(()=>e$?K?.steps.find(({kind:e})=>e===e$.kind):eq?K?.triggers.find(({kind:e})=>e===eq.kind):void 0,[K,e$,eq]),eV=(0,v.useMemo)(()=>{let e=new Set,l=new Map(K?.triggers.map(e=>[e.kind,e])??[]);for(let t of U.triggers){for(let s of l.get(t.kind)?.seedPaths??[])e.add(s);for(let l of(0,q.resourceManualSeedPaths)(t.kind,t.config))e.add(l)}for(let l of eM.provides.values())for(let t of l)e.add(t);return[...e]},[eM,K,U]),eG=(0,v.useMemo)(()=>{let e=e$?eM.availableBefore.get(e$.id):void 0;return(0,B.expandSessionPaths)(e??eV)},[eM,eV,e$]),eU=(0,v.useMemo)(()=>{if(e$)return(0,e9.displayProvidedPaths)(e$.id,eM.provides);if(eq){let e=[...K?.triggers.find(e=>e.kind===eq.kind)?.seedPaths??[],...(0,q.resourceManualSeedPaths)(eq.kind,eq.config)];return(0,B.expandSessionPaths)(e)}return[]},[eM,K,e$,eq]),eH=(0,v.useCallback)(e=>{H(e),eW(e)},[eW]),eK=(0,v.useCallback)((e,l)=>{var t;let s=32*U.nodes.length,i=(t=l??{x:320+s,y:120+s},{id:lt("node"),kind:e.kind,name:e.label,position:t,config:{},requiredPaths:[],providedPaths:[],retry:{maxAttempts:1,strategy:"EXPONENTIAL",delaySeconds:5},failurePolicy:"FAIL"});eH({...U,nodes:[...U.nodes,i]}),ei(i.id)},[eH,U]),e_=(0,v.useCallback)(e=>{let l={id:lt("trigger"),kind:e.kind,name:e.label,position:{x:0,y:100+140*U.triggers.length},config:{}};eH({...U,triggers:[...U.triggers,l]}),ei(l.id)},[eH,U]),eJ=(0,v.useCallback)(e=>{let l=new Set(e);eH({...U,nodes:U.nodes.filter(({id:e})=>!l.has(e)),triggers:U.triggers.filter(({id:e})=>!l.has(e)),edges:U.edges.filter(({source:e,target:t})=>!l.has(e)&&!l.has(t))}),es&&l.has(es)&&ei(null)},[eH,U,es]),eX=(0,v.useCallback)(e=>{let l=U.nodes.find(l=>l.id===e);if(!l)return;let t={...structuredClone(l),id:lt("node"),name:`${l.name??l.kind} copy`,position:{x:l.position.x+36,y:l.position.y+36}};eH({...U,nodes:[...U.nodes,t]}),ei(t.id)},[eH,U]),eQ=(0,v.useCallback)(()=>eX(es),[eX,es]),eY=(0,v.useCallback)(()=>{eX(el?.getNodes().find(({selected:e})=>e)?.id??null??es)},[eX,el,es]),eZ=(0,v.useMemo)(()=>({onDelete:e=>eJ([e]),onDuplicate:e=>eX(e),onEdit:e=>{er(null),ei(e)}}),[eX,eJ]);(0,v.useEffect)(()=>{let e=e=>{if((e.metaKey||e.ctrlKey)&&"d"===e.key.toLowerCase()){let l=e.target;l?.matches("input, textarea, [contenteditable=true]")||(e.preventDefault(),eY())}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[eY]);let e0=(0,v.useCallback)(e=>{if(!e.source||!e.target)return;let l={id:lt("edge"),source:e.source,target:e.target,sourceHandle:e.sourceHandle??"success",targetHandle:e.targetHandle??"input"};Z(e=>(0,t.addEdge)(l,e)),H(e=>({...e,edges:[...e.edges,l]}))},[Z]),e1=(0,v.useCallback)(e=>{ee(e);let l=new Set(e.flatMap(e=>"remove"===e.type?[e.id]:[]));0!==l.size&&(H(e=>({...e,edges:e.edges.filter(({id:e})=>!l.has(e))})),er(e=>e&&l.has(e)?null:e))},[ee]),e2=(0,v.useCallback)(e=>{let l=new Set(e);Z(e=>e.filter(({id:e})=>!l.has(e))),H(e=>({...e,edges:e.edges.filter(({id:e})=>!l.has(e))})),er(e=>e&&l.has(e)?null:e)},[Z]),lo=async()=>{ef(!0),ej(null),eb(null);try{if(V){let e=await (0,$.controlPlaneRequest)(`mutation SaveWorkflow($input: SaveWorkflowDraftInput!) {
59
+ saveWorkflowDraft(input: $input) {
60
+ id name description draftDefinition activeVersionId enabled overlapPolicy maxConcurrentRuns archivedAt
61
+ versionCount runCount createdAt updatedAt
62
+ }
63
+ }`,{input:{id:V.id,definition:U,overlapPolicy:ek,maxConcurrentRuns:eN}});G(e.saveWorkflowDraft),H(e.saveWorkflowDraft.draftDefinition),eb(n("saved"))}else{let e=await (0,$.controlPlaneRequest)(`mutation CreateWorkflow($input: CreateWorkflowInput!) {
64
+ createWorkflow(input: $input) {
65
+ id name description draftDefinition activeVersionId enabled overlapPolicy maxConcurrentRuns archivedAt
66
+ versionCount runCount createdAt updatedAt
67
+ }
68
+ }`,{input:{name:U.name,description:U.description,definition:U,overlapPolicy:ek,maxConcurrentRuns:eN}});G(e.createWorkflow),H(e.createWorkflow.draftDefinition),eb(n("saved")),c.replace(`/workflows/${e.createWorkflow.id}/edit`)}return!0}catch(e){return ej(e instanceof Error?e.message:String(e)),!1}finally{ef(!1)}},ld=async()=>{if(!V)return void await lo();try{let e=await (0,$.controlPlaneRequest)(`query ValidateWorkflow($id: ID!) {
69
+ validateWorkflowDraft(id: $id) { valid diagnostics { severity code message nodeId triggerId path } }
70
+ }`,{id:V.id});ew(e.validateWorkflowDraft.diagnostics),eW(U,e.validateWorkflowDraft.diagnostics),eb(e.validateWorkflowDraft.valid?n("validationPassed"):n("validationFailed"))}catch(e){ej(e instanceof Error?e.message:String(e))}},lc=async()=>{if(!V)return void ej(n("saveBeforePublish"));ef(!0);try{if(!await lo())return;await (0,$.controlPlaneRequest)("mutation PublishWorkflow($id: ID!) { publishWorkflow(id: $id) { id version contentHash } }",{id:V.id}),eb(n("published")),c.push(`/workflows/${V.id}`)}catch(e){ej(e instanceof Error?e.message:String(e))}finally{ef(!1)}},lu=async()=>{try{let e=await (0,$.controlPlaneRequest)("mutation DuplicateWorkflow($input: CreateWorkflowInput!) { createWorkflow(input: $input) { id } }",{input:{name:`${U.name} copy`,description:U.description,definition:{...U,name:`${U.name} copy`},overlapPolicy:ek,maxConcurrentRuns:eN}});c.push(`/workflows/${e.createWorkflow.id}/edit`)}catch(e){ej(e instanceof Error?e.message:String(e))}},lp=async()=>{try{var e,l;let t,s;e=V?(await (0,$.controlPlaneRequest)("query ExportWorkflow($id: ID!) { exportWorkflow(id: $id) }",{id:V.id})).exportWorkflow:{format:"aide.workflow.export",schemaVersion:1,workflow:{name:U.name,description:U.description,overlapPolicy:ek,maxConcurrentRuns:eN,definition:U}},l=`${U.name.replaceAll(/[^a-z0-9]+/gi,"-").toLowerCase()}.workflow.json`,t=URL.createObjectURL(new Blob([JSON.stringify(e,null,2)],{type:"application/json"})),(s=document.createElement("a")).href=t,s.download=l,s.click(),URL.revokeObjectURL(t)}catch(e){ej(e instanceof Error?e.message:String(e))}},lh=async e=>{try{let l=JSON.parse(await e.text()),t="aide.workflow.export"===l.format&&l.workflow&&"object"==typeof l.workflow?l.workflow.definition:l;if(!t||"object"!=typeof t)throw Error(n("invalidImport"));eP(!1),eR(null),H(t),eW(t),eb(n("importLoaded"))}catch(e){ej(e instanceof Error?e.message:String(e))}},lx=e=>{eH({...U,nodes:U.nodes.map(l=>l.id===es?{...l,...e}:l),triggers:U.triggers.map(l=>l.id===es?{...l,...e}:l)})},lm=(0,v.useMemo)(()=>K?.steps.filter(e=>`${e.label} ${e.kind} ${e.category} ${e.description}`.toLowerCase().includes(eu.toLowerCase()))??[],[K,eu]),lf=(0,v.useMemo)(()=>K?.triggers.filter(e=>`${e.label} ${e.kind} ${e.category} ${e.description}`.toLowerCase().includes(eu.toLowerCase()))??[],[K,eu]),lg=(0,v.useMemo)(()=>`${U.triggers.map(({id:e})=>e).join()}|${U.nodes.map(({id:e})=>e).join()}|${U.edges.map(({id:e})=>e).join()}|${U.editor.handleLayout??"SIDES"}|${eA}`,[U,eA]),lj=(0,v.useMemo)(()=>eA?J:J.map(e=>e.data.provides.length?{...e,data:{...e.data,provides:[]}}:e),[J,eA]),lv=(0,v.useMemo)(()=>[...ls(lm)],[lm]),lb=(0,v.useMemo)(()=>[...ls(lf)],[lf]),ly=U.editor.displayLayout??"REGULAR";return eh?(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(E.Skeleton,{className:"h-8 w-52"}),(0,l.jsx)(E.Skeleton,{className:"h-4 w-96"})]}),(0,l.jsxs)("div",{className:"grid gap-4 xl:grid-cols-[280px_minmax(0,1fr)]",children:[(0,l.jsx)(E.Skeleton,{className:"h-[min(78vh,860px)] min-h-[520px]"}),(0,l.jsx)(E.Skeleton,{className:"h-[min(78vh,860px)] min-h-[520px]"})]})]}):K?(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,l.jsx)("div",{className:"flex min-w-0 items-start gap-2",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:n("editor")}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:n("editorDescription")})]})}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,l.jsx)("input",{accept:"application/json,.json",className:"hidden",onChange:e=>{let l=e.target.files?.[0];l&&lh(l),e.target.value=""},ref:z,type:"file"}),(0,l.jsxs)(w.Button,{onClick:()=>eo(!0),variant:"outline",children:[(0,l.jsx)(m.Settings,{})," ",n("settings")]}),"BASIC"===ly&&(0,l.jsxs)(w.Button,{"aria-pressed":eO,onClick:()=>{eP(e=>!e),ei(null),er(null),eR(null)},variant:eO?"secondary":"outline",children:[eO?(0,l.jsx)(r.EyeOff,{}):(0,l.jsx)(a.Eye,{}),eO?n("exitBasicPreview"):n("previewBasicLayout")]}),(0,l.jsxs)(w.Button,{onClick:()=>z.current?.click(),variant:"outline",children:[(0,l.jsx)(g.Upload,{})," ",n("import")]}),(0,l.jsxs)(w.Button,{onClick:()=>void lp(),variant:"outline",children:[(0,l.jsx)(i.Download,{})," ",n("export")]}),V&&(0,l.jsxs)(w.Button,{onClick:()=>void lu(),variant:"outline",children:[(0,l.jsx)(s.Copy,{})," ",n("duplicate")]}),(0,l.jsxs)(w.Button,{disabled:em,onClick:()=>void lo(),variant:"outline",children:[em?(0,l.jsx)(L.Spinner,{}):(0,l.jsx)(h.Save,{})," ",n("saveDraft")]}),(0,l.jsxs)(w.Button,{disabled:em,onClick:()=>void lc(),children:[(0,l.jsx)(x.Send,{})," ",n("publish")]})]})]}),eg&&(0,l.jsx)(b.Alert,{variant:"destructive",children:(0,l.jsx)(b.AlertDescription,{children:eg})}),ev&&(0,l.jsx)(b.Alert,{children:(0,l.jsx)(b.AlertDescription,{children:ev})}),(0,l.jsxs)("div",{className:"grid gap-4 xl:grid-cols-[280px_minmax(0,1fr)]",children:[(0,l.jsx)(k.Card,{"aria-disabled":eO,className:`flex h-[min(78vh,860px)] min-h-[520px] flex-col gap-0 py-0 ${eO?"pointer-events-none opacity-60":""}`,size:"sm",children:(0,l.jsxs)(R.Tabs,{className:"flex min-h-0 flex-1 gap-0",onValueChange:e=>ec(e),value:ed,children:[(0,l.jsx)("div",{className:"border-b p-2",children:(0,l.jsxs)(R.TabsList,{className:"w-full",children:[(0,l.jsx)(R.TabsTrigger,{value:"palette",children:n("steps")}),(0,l.jsx)(R.TabsTrigger,{value:"outline",children:n("outline")})]})}),(0,l.jsxs)(k.CardContent,{className:"flex min-h-0 flex-1 flex-col p-2",children:[(0,l.jsxs)(R.TabsContent,{className:"flex min-h-0 flex-1 flex-col gap-2",value:"palette",children:[(0,l.jsxs)(I.InputGroup,{children:[(0,l.jsx)(I.InputGroupAddon,{children:(0,l.jsx)(p.Search,{})}),(0,l.jsx)(I.InputGroupInput,{"aria-label":n("searchSteps"),onChange:e=>ep(e.target.value),placeholder:n("searchSteps"),value:eu})]}),lv.length||lb.length?(0,l.jsx)(O.ScrollArea,{className:"-mr-2 min-h-0 flex-1",children:(0,l.jsxs)("div",{className:"space-y-3 pr-2 pb-1",children:[lv.map(([e,t])=>(0,l.jsxs)("section",{children:[(0,l.jsx)("div",{className:"px-1 pb-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase",children:e}),(0,l.jsx)(F.ItemGroup,{className:"gap-1",children:t.map(e=>(0,l.jsx)(li,{details:e.details,children:(0,l.jsxs)("button",{className:"cursor-grab text-left",draggable:!0,onClick:()=>eK(e),onDragStart:l=>{l.dataTransfer.setData("application/aide-workflow-step",e.kind),l.dataTransfer.effectAllowed="copy"},type:"button",children:[(0,l.jsx)(F.ItemMedia,{children:(0,l.jsx)(o,{className:"size-3.5 text-muted-foreground"})}),(0,l.jsxs)(F.ItemContent,{className:"min-w-0",children:[(0,l.jsx)(F.ItemTitle,{className:"text-xs",children:e.label}),(0,l.jsx)(F.ItemDescription,{className:"line-clamp-2 text-[10px] leading-snug",children:e.description})]}),(0,l.jsxs)(F.ItemActions,{className:"flex-col items-end gap-0.5",children:[(0,l.jsx)(y.Badge,{className:"text-[9px]",variant:"outline",children:e.execution}),(e.mutatesExternal||e.mutatesWorktree)&&(0,l.jsx)(y.Badge,{className:"text-[9px]",variant:"outline",children:n("mutates")})]})]})},e.kind))})]},`step:${e}`)),lb.map(([e,t])=>(0,l.jsxs)("section",{children:[(0,l.jsxs)("div",{className:"px-1 pb-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase",children:[n("triggers")," · ",e]}),(0,l.jsx)(F.ItemGroup,{className:"gap-1",children:t.map(e=>(0,l.jsx)(li,{details:e.details,children:(0,l.jsxs)("button",{className:"text-left",onClick:()=>e_(e),type:"button",children:[(0,l.jsx)(F.ItemMedia,{children:(0,l.jsx)(u.Plus,{className:"size-3.5 text-muted-foreground"})}),(0,l.jsxs)(F.ItemContent,{className:"min-w-0",children:[(0,l.jsx)(F.ItemTitle,{className:"text-xs",children:e.label}),(0,l.jsx)(F.ItemDescription,{className:"line-clamp-2 text-[10px] leading-snug",children:e.description})]})]})},e.kind))})]},`trigger:${e}`))]})}):(0,l.jsx)(N.Empty,{className:"py-10",children:(0,l.jsx)(N.EmptyHeader,{children:(0,l.jsx)(N.EmptyTitle,{children:n("noOptions")})})})]}),(0,l.jsx)(R.TabsContent,{className:"min-h-0",value:"outline",children:(0,l.jsx)(O.ScrollArea,{className:"-mr-2 h-full",children:(0,l.jsx)(F.ItemGroup,{className:"gap-1 pr-2 pb-1",children:[...U.triggers,...U.nodes].map(e=>(0,l.jsx)(F.Item,{asChild:!0,className:"px-1.5 py-1",size:"xs",variant:e.id===es?"muted":"outline",children:(0,l.jsx)("button",{"aria-current":e.id===es,onClick:()=>ei(e.id),type:"button",children:(0,l.jsxs)(F.ItemContent,{children:[(0,l.jsx)(F.ItemTitle,{children:e.name??d.kind(e.kind)}),(0,l.jsx)(F.ItemDescription,{children:d.kind(e.kind)})]})})},e.id))})})})]})]})}),(0,l.jsxs)("div",{className:"min-w-0 space-y-3",children:[eO?(0,l.jsx)(e7.WorkflowGraph,{categories:eD,definition:U,diagnostics:ey,onNodeClick:e=>eR(e),selectedNodeId:eL}):(0,l.jsxs)("div",{className:"relative h-[min(78vh,860px)] min-h-[520px] overflow-hidden rounded-xl border bg-muted/20",onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{e.preventDefault();let l=e.dataTransfer.getData("application/aide-workflow-step"),t=K.steps.find(e=>e.kind===l);t&&el&&eK(t,el.screenToFlowPosition({x:e.clientX,y:e.clientY}))},ref:M,children:[ea&&(0,l.jsxs)(w.Button,{className:"absolute top-3 right-3 z-10 shadow-md",onClick:()=>e2([ea]),size:"sm",variant:"destructive",children:[(0,l.jsx)(f.Trash2,{})," ",n("deleteConnection")]}),(0,l.jsx)(e7.WorkflowNodeActionsContext,{value:eZ,children:(0,l.jsxs)(t.ReactFlow,{className:eI?e6.workflowFitLockPaneClass:void 0,colorMode:"system",deleteKeyCode:["Backspace","Delete"],edges:Y,fitView:!0,nodeTypes:e7.workflowNodeTypes,nodes:lj,onConnect:e0,onEdgeClick:(e,l)=>{ei(null),er(l.id)},onEdgesChange:e1,onInit:e=>et(e),onNodeClick:(e,l)=>{let t;er(null),void 0!==(t=e.nativeEvent.pointerType)&&"mouse"!==t&&ei(l.id)},onNodeDoubleClick:(e,l)=>{er(null),ei(l.id)},onNodeDragStop:(e,l)=>{H(e=>({...e,nodes:e.nodes.map(e=>e.id===l.id?{...e,position:l.position}:e),triggers:e.triggers.map(e=>e.id===l.id?{...e,position:l.position}:e)}))},onNodesChange:Q,onNodesDelete:e=>eJ(e.map(({id:e})=>e)),onPaneClick:()=>er(null),panOnDrag:!eI,preventScrolling:!eI,proOptions:{hideAttribution:!0},zoomOnDoubleClick:!1,zoomOnPinch:!eI,zoomOnScroll:!eI,children:[(0,l.jsx)(t.Background,{gap:20,size:1}),(0,l.jsxs)(t.Controls,{className:"overflow-hidden rounded-lg",showFitView:!eI,showInteractive:!1,showZoom:!eI,children:[(0,l.jsx)(e6.WorkflowFitLockButton,{locked:eI,onToggle:()=>eF(e=>!e)}),(0,l.jsx)(la,{}),(0,l.jsx)(lr,{onToggle:()=>eE(e=>!e),shown:eA})]}),(0,l.jsx)(e6.WorkflowFitLock,{locked:eI,signature:lg}),!eI&&(0,l.jsx)(t.MiniMap,{className:"overflow-hidden rounded-xl border",maskColor:"transparent",nodeBorderRadius:e7.MINIMAP_NODE_RADIUS,pannable:!0,zoomable:!0})]})})]}),ey.length>0&&(0,l.jsxs)(k.Card,{children:[(0,l.jsx)(k.CardHeader,{children:(0,l.jsx)(k.CardTitle,{children:n("diagnostics")})}),(0,l.jsx)(k.CardContent,{children:(0,l.jsx)(F.ItemGroup,{className:"gap-2",children:ey.map((e,t)=>(0,l.jsx)(F.Item,{asChild:!0,size:"sm",variant:"outline",children:(0,l.jsxs)("button",{className:"text-left",onClick:()=>(eO?eR:ei)(e.nodeId??e.triggerId),type:"button",children:[(0,l.jsx)(F.ItemContent,{children:(0,l.jsx)(F.ItemTitle,{children:e.message})}),(0,l.jsx)(F.ItemActions,{children:(0,l.jsx)(y.Badge,{variant:"ERROR"===e.severity?"destructive":"outline",children:d.diagnosticCode(e.code)})})]})},`${e.code}-${t}`))})})]})]})]}),(0,l.jsx)(C.Dialog,{onOpenChange:eo,open:en,children:(0,l.jsxs)(C.DialogContent,{children:[(0,l.jsxs)(C.DialogHeader,{children:[(0,l.jsx)(C.DialogTitle,{children:n("workflowSettings")}),(0,l.jsx)(C.DialogDescription,{children:n("editorDescription")})]}),(0,l.jsxs)(S.FieldGroup,{className:"gap-3",children:[(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"workflow-name",children:n("name")}),(0,l.jsx)(T.Input,{id:"workflow-name",onChange:e=>H(l=>({...l,name:e.target.value})),value:U.name})]}),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"workflow-description",children:n("description")}),(0,l.jsx)(D.Textarea,{id:"workflow-description",onChange:e=>H(l=>({...l,description:e.target.value})),value:U.description})]}),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"workflow-overlap-policy",children:n("overlapPolicy")}),(0,l.jsxs)(A.Select,{onValueChange:eC,value:ek,children:[(0,l.jsx)(A.SelectTrigger,{className:"w-full",id:"workflow-overlap-policy",children:(0,l.jsx)(A.SelectValue,{})}),(0,l.jsxs)(A.SelectContent,{children:[(0,l.jsx)(A.SelectItem,{value:"QUEUE",children:n("overlap.QUEUE")}),(0,l.jsx)(A.SelectItem,{value:"CONCURRENT",children:n("overlap.CONCURRENT")}),(0,l.jsx)(A.SelectItem,{value:"COALESCE_LATEST",children:n("overlap.COALESCE_LATEST")})]})]})]}),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"workflow-display-layout",children:n("displayLayout")}),(0,l.jsxs)(A.Select,{onValueChange:e=>{eH({...U,editor:{...U.editor,displayLayout:e}}),"REGULAR"===e&&(eP(!1),eR(null))},value:ly,children:[(0,l.jsx)(A.SelectTrigger,{className:"w-full",id:"workflow-display-layout",children:(0,l.jsx)(A.SelectValue,{})}),(0,l.jsxs)(A.SelectContent,{children:[(0,l.jsx)(A.SelectItem,{value:"REGULAR",children:n("displayLayouts.REGULAR")}),(0,l.jsx)(A.SelectItem,{value:"BASIC",children:n("displayLayouts.BASIC")})]})]}),(0,l.jsx)("p",{className:"text-xs text-muted-foreground",children:n(`displayLayoutHelp.${ly}`)})]}),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"workflow-handle-layout",children:n("connectorLayout")}),(0,l.jsxs)(A.Select,{onValueChange:e=>eH({...U,editor:{...U.editor,handleLayout:e}}),value:U.editor.handleLayout??"SIDES",children:[(0,l.jsx)(A.SelectTrigger,{className:"w-full",id:"workflow-handle-layout",children:(0,l.jsx)(A.SelectValue,{})}),(0,l.jsxs)(A.SelectContent,{children:[(0,l.jsx)(A.SelectItem,{value:"SIDES",children:n("connectorLayouts.SIDES")}),(0,l.jsx)(A.SelectItem,{value:"TOP_BOTTOM",children:n("connectorLayouts.TOP_BOTTOM")})]})]})]}),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"workflow-concurrency",children:n("maxConcurrentRuns")}),(0,l.jsx)(T.Input,{id:"workflow-concurrency",max:32,min:1,onChange:e=>eT(Number(e.target.value)),type:"number",value:eN})]}),(0,l.jsx)(w.Button,{className:"w-full",onClick:()=>void ld(),variant:"outline",children:n("validate")})]})]})}),(0,l.jsx)(P.Sheet,{onOpenChange:e=>{e||ei(null)},open:!!eB,children:(0,l.jsx)(P.SheetContent,{className:"overflow-y-auto sm:max-w-lg",children:eB&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(P.SheetHeader,{children:[(0,l.jsx)(P.SheetTitle,{children:eB.name??d.kind(eB.kind)}),(0,l.jsx)(P.SheetDescription,{children:ez?.description??d.kind(eB.kind)})]}),(0,l.jsxs)(S.FieldGroup,{className:"gap-4 px-4",children:[ez&&(0,l.jsx)("p",{className:"rounded-lg border bg-muted/30 p-3 text-xs leading-relaxed text-muted-foreground",children:ez.details}),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"node-name",children:n("name")}),(0,l.jsx)(T.Input,{id:"node-name",onChange:e=>lx({name:e.target.value}),value:eB.name??""})]}),(0,eS.hasConfigDescriptor)(eB.kind,e$?"step":"trigger")?(0,l.jsx)(e3,{config:eB.config,kind:eB.kind,onChange:e=>lx({config:e}),scope:e$?"step":"trigger",sessionPaths:eG},eB.id):(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldTitle,{children:n("configuration")}),(0,l.jsx)(e5,{config:eB.config,defaultOpen:!0,onChange:e=>lx({config:e})})]},eB.id),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldTitle,{children:e$?n("addsToSession"):n("seedsSession")}),eU.length>0?(0,l.jsx)(F.ItemGroup,{className:"gap-1 rounded-lg border bg-muted/30 p-2",children:eU.map(e=>(0,l.jsx)(F.Item,{className:"px-1 py-0",size:"xs",children:(0,l.jsxs)(F.ItemContent,{children:[(0,l.jsx)(F.ItemTitle,{children:(0,l.jsx)("code",{className:"text-[11px]",children:e.path})}),e.description&&(0,l.jsx)(F.ItemDescription,{className:"text-[10px]",children:e.description})]})},e.path))}):(0,l.jsx)(N.Empty,{className:"py-6",children:(0,l.jsx)(N.EmptyHeader,{children:(0,l.jsx)(N.EmptyTitle,{children:n("addsToSessionEmpty")})})})]}),e$&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"required-paths",children:n("requiredPaths")}),(0,l.jsx)(T.Input,{id:"required-paths",onChange:e=>lx({requiredPaths:e.target.value.split(",").map(e=>e.trim()).filter(Boolean)}),value:e$.requiredPaths.join(", ")})]}),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"provided-paths",children:n("providedPaths")}),(0,l.jsx)(T.Input,{id:"provided-paths",onChange:e=>lx({providedPaths:e.target.value.split(",").map(e=>e.trim()).filter(Boolean)}),value:e$.providedPaths.join(", ")})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"retry-count",children:n("maxAttempts")}),(0,l.jsx)(T.Input,{id:"retry-count",max:20,min:1,onChange:e=>lx({retry:{...e$.retry,maxAttempts:Number(e.target.value)}}),type:"number",value:e$.retry.maxAttempts})]}),(0,l.jsxs)(S.Field,{children:[(0,l.jsx)(S.FieldLabel,{htmlFor:"failure-policy",children:n("failurePolicy")}),(0,l.jsxs)(A.Select,{onValueChange:e=>lx({failurePolicy:e}),value:e$.failurePolicy,children:[(0,l.jsx)(A.SelectTrigger,{className:"w-full",id:"failure-policy",children:(0,l.jsx)(A.SelectValue,{})}),(0,l.jsxs)(A.SelectContent,{children:[(0,l.jsx)(A.SelectItem,{value:"FAIL",children:n("failure.FAIL")}),(0,l.jsx)(A.SelectItem,{value:"CONTINUE",children:n("failure.CONTINUE")})]})]})]})]}),K.steps.find(({kind:e})=>e===e$.kind)?.mutatesExternal&&(0,l.jsx)(b.Alert,{variant:"destructive",children:(0,l.jsx)(b.AlertDescription,{children:n("idempotencyWarning")})})]})]}),(0,l.jsxs)(P.SheetFooter,{children:[e$&&(0,l.jsxs)(w.Button,{onClick:eQ,variant:"outline",children:[(0,l.jsx)(s.Copy,{})," ",n("duplicateNode")]}),(0,l.jsxs)(w.Button,{onClick:()=>eJ([eB.id]),variant:"destructive",children:[(0,l.jsx)(f.Trash2,{})," ",n("deleteNode")]})]})]})})}),(0,l.jsx)(le.WorkflowReadonlyInspector,{catalog:K,definition:U,onOpenChange:e=>{e||eR(null)},selectedId:eO?eL:null})]}):(0,l.jsx)(b.Alert,{variant:"destructive",children:(0,l.jsx)(b.AlertDescription,{children:eg})})}e.s(["WorkflowEditor",0,function(e){return(0,l.jsx)(t.ReactFlowProvider,{children:(0,l.jsx)(ln,{...e})})}],106134)}]);
@@ -0,0 +1,7 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,784774,e=>{"use strict";var l=e.i(843476),s=e.i(975157);e.s(["Table",0,function({className:e,...t}){return(0,l.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,l.jsx)("table",{"data-slot":"table",className:(0,s.cn)("w-full caption-bottom text-sm",e),...t})})},"TableBody",0,function({className:e,...t}){return(0,l.jsx)("tbody",{"data-slot":"table-body",className:(0,s.cn)("[&_tr:last-child]:border-0",e),...t})},"TableCell",0,function({className:e,...t}){return(0,l.jsx)("td",{"data-slot":"table-cell",className:(0,s.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...t})},"TableFooter",0,function({className:e,...t}){return(0,l.jsx)("tfoot",{"data-slot":"table-footer",className:(0,s.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})},"TableHead",0,function({className:e,...t}){return(0,l.jsx)("th",{"data-slot":"table-head",className:(0,s.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...t})},"TableHeader",0,function({className:e,...t}){return(0,l.jsx)("thead",{"data-slot":"table-header",className:(0,s.cn)("[&_tr]:border-b",e),...t})},"TableRow",0,function({className:e,...t}){return(0,l.jsx)("tr",{"data-slot":"table-row",className:(0,s.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...t})}])},669253,e=>{"use strict";let l=(0,e.i(456420).default)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);e.s(["FolderTree",0,l],669253)},326099,e=>{"use strict";var l=e.i(843476),s=e.i(669253),t=e.i(77071),a=e.i(948148),i=e.i(271645),r=e.i(929592),n=e.i(519455),o=e.i(515288),d=e.i(816484),c=e.i(776639),u=e.i(793479),p=e.i(110204),h=e.i(987968),x=e.i(784774),m=e.i(520133),b=e.i(637611);e.s(["SkillGroupsPage",0,function(){let e=(0,a.useTranslations)("skills"),j=(0,m.useRouter)(),[g,f]=(0,i.useState)([]),[v,T]=(0,i.useState)(!1),[k,w]=(0,i.useState)(""),[y,C]=(0,i.useState)(!0),[N,S]=(0,i.useState)(!1),[D,G]=(0,i.useState)(null),H=(0,i.useCallback)(async()=>{try{let e=await (0,b.controlPlaneRequest)(`query SkillGroups { skillsOverview { groups {
2
+ id name createdAt updatedAt
3
+ skills { id name }
4
+ repositories { id name displayOrigin }
5
+ } } }`);f(e.skillsOverview.groups),G(null)}catch(e){G(e instanceof Error?e.message:String(e))}finally{C(!1)}},[]);(0,i.useEffect)(()=>{let e=window.setTimeout(()=>void H(),0);return()=>window.clearTimeout(e)},[H]);let R=async()=>{S(!0);try{let e=await (0,b.controlPlaneRequest)(`mutation CreateSkillGroup($input: SaveSkillGroupInput!) {
6
+ saveSkillGroup(input: $input) { id name }
7
+ }`,{input:{name:k,skillIds:[],repositoryIds:[]}});T(!1),j.push(`/skills/groups/${e.saveSkillGroup.id}`)}catch(e){G(e instanceof Error?e.message:String(e))}finally{S(!1)}};return(0,l.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-2xl font-semibold",children:e("skillGroups")}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:e("groupsDescription")})]})}),(0,l.jsxs)(n.Button,{onClick:()=>T(!0),children:[(0,l.jsx)(t.Plus,{})," ",e("addGroup")]})]}),D&&(0,l.jsx)(r.Alert,{variant:"destructive",children:(0,l.jsx)(r.AlertDescription,{children:D})}),y?(0,l.jsxs)("div",{className:"flex gap-2 text-sm text-muted-foreground",children:[(0,l.jsx)(h.Spinner,{})," ",e("loadingGroups")]}):(0,l.jsxs)(o.Card,{className:"gap-0 py-0",children:[(0,l.jsxs)(o.CardHeader,{children:[(0,l.jsx)(o.CardTitle,{children:e("skillGroups")}),(0,l.jsx)(o.CardDescription,{children:e("groupsTableDescription")})]}),(0,l.jsx)(o.CardContent,{className:"px-0",children:(0,l.jsxs)(x.Table,{children:[(0,l.jsx)(x.TableHeader,{children:(0,l.jsxs)(x.TableRow,{children:[(0,l.jsx)(x.TableHead,{children:e("name")}),(0,l.jsx)(x.TableHead,{children:e("skillsCount")}),(0,l.jsx)(x.TableHead,{children:e("repositoriesCount")}),(0,l.jsx)(x.TableHead,{children:e("updated")})]})}),(0,l.jsxs)(x.TableBody,{children:[g.map(e=>(0,l.jsxs)(x.TableRow,{className:"cursor-pointer focus-visible:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",onClick:()=>j.push(`/skills/groups/${e.id}`),onKeyDown:l=>{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),j.push(`/skills/groups/${e.id}`))},role:"link",tabIndex:0,children:[(0,l.jsx)(x.TableCell,{children:(0,l.jsxs)("span",{className:"inline-flex items-center gap-2 font-medium text-primary",children:[(0,l.jsx)(s.FolderTree,{})," ",e.name]})}),(0,l.jsx)(x.TableCell,{children:e.skills?.length??0}),(0,l.jsx)(x.TableCell,{children:e.repositories?.length??0}),(0,l.jsx)(x.TableCell,{children:(0,l.jsx)(d.DateTime,{value:e.updatedAt})})]},e.id)),!g.length&&(0,l.jsx)(x.TableRow,{children:(0,l.jsx)(x.TableCell,{className:"py-10 text-center text-muted-foreground",colSpan:4,children:e("noGroups")})})]})]})})]}),(0,l.jsx)(c.Dialog,{onOpenChange:T,open:v,children:(0,l.jsxs)(c.DialogContent,{children:[(0,l.jsxs)(c.DialogHeader,{children:[(0,l.jsx)(c.DialogTitle,{children:e("newGroup")}),(0,l.jsx)(c.DialogDescription,{children:e("newGroupDescription")})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(p.Label,{htmlFor:"new-skill-group",children:e("name")}),(0,l.jsx)(u.Input,{id:"new-skill-group",maxLength:80,onChange:e=>w(e.target.value),value:k})]}),(0,l.jsx)(c.DialogFooter,{children:(0,l.jsxs)(n.Button,{disabled:N||!k.trim(),onClick:()=>void R(),children:[N&&(0,l.jsx)(h.Spinner,{})," ",e("createGroup")]})})]})})]})}])}]);