@ai-development-environment/server 0.0.63 → 0.0.64

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 (611) 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 +0 -1
  4. package/standalone/.next/build-manifest.json +3 -3
  5. package/standalone/.next/prerender-manifest.json +3 -3
  6. package/standalone/.next/routes-manifest.json +0 -8
  7. package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
  8. package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
  9. package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js +1 -1
  22. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.nft.json +1 -1
  23. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  24. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  25. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  26. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  27. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  28. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  29. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  30. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  31. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  32. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  33. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page.js.nft.json +1 -1
  34. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page_client-reference-manifest.js +1 -1
  35. package/standalone/.next/server/app/[locale]/commands/new/page.js.nft.json +1 -1
  36. package/standalone/.next/server/app/[locale]/commands/new/page_client-reference-manifest.js +1 -1
  37. package/standalone/.next/server/app/[locale]/commands/page.js.nft.json +1 -1
  38. package/standalone/.next/server/app/[locale]/commands/page_client-reference-manifest.js +1 -1
  39. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js +1 -1
  40. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.nft.json +1 -1
  41. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page.js.nft.json +1 -1
  42. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page_client-reference-manifest.js +1 -1
  43. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  44. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  45. package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
  46. package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
  47. package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -1
  48. package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +1 -1
  49. package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
  50. package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
  51. package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
  52. package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
  53. package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
  54. package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
  55. package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
  56. package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
  57. package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
  58. package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
  59. package/standalone/.next/server/app/[locale]/github-cache/entries/[id]/page.js.nft.json +1 -1
  60. package/standalone/.next/server/app/[locale]/github-cache/entries/[id]/page_client-reference-manifest.js +1 -1
  61. package/standalone/.next/server/app/[locale]/github-cache/page.js.nft.json +1 -1
  62. package/standalone/.next/server/app/[locale]/github-cache/page_client-reference-manifest.js +1 -1
  63. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  64. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  65. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  66. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  67. package/standalone/.next/server/app/[locale]/jira-cache/page.js.nft.json +1 -1
  68. package/standalone/.next/server/app/[locale]/jira-cache/page_client-reference-manifest.js +1 -1
  69. package/standalone/.next/server/app/[locale]/jira-cache/tickets/[issueKey]/page.js.nft.json +1 -1
  70. package/standalone/.next/server/app/[locale]/jira-cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  71. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
  72. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  73. package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
  74. package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
  75. package/standalone/.next/server/app/[locale]/page.js +2 -3
  76. package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
  77. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  78. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
  79. package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
  80. package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
  81. package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
  82. package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
  83. package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
  84. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  85. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
  86. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
  87. package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
  88. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  89. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  90. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  91. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  92. package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
  93. package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
  94. package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
  95. package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
  96. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
  97. package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
  98. package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
  99. package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
  100. package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
  101. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  102. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
  103. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  104. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
  105. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  106. package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
  107. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  108. package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
  109. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  110. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
  111. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  112. package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
  113. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  114. package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
  115. package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
  116. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  117. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  118. package/standalone/.next/server/app/[locale]/webhooks/page.js.nft.json +1 -1
  119. package/standalone/.next/server/app/[locale]/webhooks/page_client-reference-manifest.js +1 -1
  120. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page.js.nft.json +1 -1
  121. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page_client-reference-manifest.js +1 -1
  122. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page.js.nft.json +1 -1
  123. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page_client-reference-manifest.js +1 -1
  124. package/standalone/.next/server/app/[locale]/workflows/new/page.js.nft.json +1 -1
  125. package/standalone/.next/server/app/[locale]/workflows/new/page_client-reference-manifest.js +1 -1
  126. package/standalone/.next/server/app/[locale]/workflows/page.js.nft.json +1 -1
  127. package/standalone/.next/server/app/[locale]/workflows/page_client-reference-manifest.js +1 -1
  128. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page.js.nft.json +1 -1
  129. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page_client-reference-manifest.js +1 -1
  130. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  131. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  132. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  133. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  134. package/standalone/.next/server/app/_global-error.html +1 -1
  135. package/standalone/.next/server/app/_global-error.rsc +1 -1
  136. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  137. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  138. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  139. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  140. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  141. package/standalone/.next/server/app/_not-found.html +1 -1
  142. package/standalone/.next/server/app/_not-found.rsc +1 -1
  143. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  144. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  145. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  146. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  147. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  148. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  149. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js +1 -1
  150. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  151. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +1 -1
  152. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
  153. package/standalone/.next/server/app/api/codebases/by-path/route.js +1 -1
  154. package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
  155. package/standalone/.next/server/app/api/codebases/route.js +1 -1
  156. package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
  157. package/standalone/.next/server/app/api/graphql/route.js +1 -1
  158. package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
  159. package/standalone/.next/server/app/api/ios/apns-devices/route.js +1 -1
  160. package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
  161. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js +1 -1
  162. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
  163. package/standalone/.next/server/app/api/ios/enrollment/start/route.js +1 -1
  164. package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
  165. package/standalone/.next/server/app/api/mcp/route.js +1 -1
  166. package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
  167. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js +1 -1
  168. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
  169. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js +1 -1
  170. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
  171. package/standalone/.next/server/app/api/public/github/webhook/route.js +1 -1
  172. package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
  173. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js +1 -1
  174. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
  175. package/standalone/.next/server/app/api/public/ios/profile-response/route.js +1 -1
  176. package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
  177. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js +1 -1
  178. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
  179. package/standalone/.next/server/app/api/telemetry/console-logs/route.js +1 -1
  180. package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
  181. package/standalone/.next/server/app/api/telemetry/export/route.js +1 -1
  182. package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
  183. package/standalone/.next/server/app/api/tools/call/route.js +1 -1
  184. package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
  185. package/standalone/.next/server/app/api/tools/catalog/route.js +1 -1
  186. package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
  187. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +1 -1
  188. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -1
  189. package/standalone/.next/server/app-paths-manifest.json +0 -1
  190. package/standalone/.next/server/chunks/{[root-of-the-server]__06u4xcm._.js → [root-of-the-server]__0-b1prw._.js} +1 -1
  191. package/standalone/.next/server/chunks/{[root-of-the-server]__09am6v3._.js → [root-of-the-server]__0-irvqy._.js} +1 -1
  192. package/standalone/.next/server/chunks/{[root-of-the-server]__0191hj1._.js → [root-of-the-server]__004x00m._.js} +3 -3
  193. package/standalone/.next/server/chunks/{[root-of-the-server]__0-tmw39._.js → [root-of-the-server]__03ov9dn._.js} +1 -1
  194. package/standalone/.next/server/chunks/{[root-of-the-server]__0eyltex._.js → [root-of-the-server]__04x0a1c._.js} +1 -1
  195. package/standalone/.next/server/chunks/{[root-of-the-server]__0595xpp._.js → [root-of-the-server]__05k_3_s._.js} +1 -1
  196. package/standalone/.next/server/chunks/{[root-of-the-server]__0by5o61._.js → [root-of-the-server]__05nr3-b._.js} +2 -2
  197. package/standalone/.next/server/chunks/{[root-of-the-server]__09cczk9._.js → [root-of-the-server]__05rm8ki._.js} +1 -1
  198. package/standalone/.next/server/chunks/{[root-of-the-server]__05yutuh._.js → [root-of-the-server]__06dz512._.js} +1 -1
  199. package/standalone/.next/server/chunks/{[root-of-the-server]__0-upwch._.js → [root-of-the-server]__06h8dq4._.js} +1 -1
  200. package/standalone/.next/server/chunks/{[root-of-the-server]__21815pw._.js → [root-of-the-server]__07lj58j._.js} +2 -2
  201. package/standalone/.next/server/chunks/{[root-of-the-server]__01s4hkv._.js → [root-of-the-server]__082w26v._.js} +1 -1
  202. package/standalone/.next/server/chunks/{[root-of-the-server]__06dvajv._.js → [root-of-the-server]__092univ._.js} +1 -1
  203. package/standalone/.next/server/chunks/{[root-of-the-server]__03arvyv._.js → [root-of-the-server]__098thvo._.js} +2 -2
  204. package/standalone/.next/server/chunks/{[root-of-the-server]__09ormhu._.js → [root-of-the-server]__0_1h4vu._.js} +1 -1
  205. package/standalone/.next/server/chunks/{[root-of-the-server]__0l4juv1._.js → [root-of-the-server]__0_ftuni._.js} +1 -1
  206. package/standalone/.next/server/chunks/[root-of-the-server]__0b-lts3._.js +3 -0
  207. package/standalone/.next/server/chunks/[root-of-the-server]__0ckici0._.js +3 -0
  208. package/standalone/.next/server/chunks/{[root-of-the-server]__02chrc6._.js → [root-of-the-server]__0cqe8td._.js} +1 -1
  209. package/standalone/.next/server/chunks/[root-of-the-server]__0dsyjgc._.js +3 -0
  210. package/standalone/.next/server/chunks/{[root-of-the-server]__02z6ofq._.js → [root-of-the-server]__0e29qi2._.js} +1 -1
  211. package/standalone/.next/server/chunks/{[root-of-the-server]__0bcw4i1._.js → [root-of-the-server]__0efv9_l._.js} +1 -1
  212. package/standalone/.next/server/chunks/{[root-of-the-server]__0dsr079._.js → [root-of-the-server]__0eplbf8._.js} +2 -2
  213. package/standalone/.next/server/chunks/[root-of-the-server]__0fv-9n6._.js +3 -0
  214. package/standalone/.next/server/chunks/{[root-of-the-server]__0e1uxby._.js → [root-of-the-server]__0g-h70v._.js} +1 -1
  215. package/standalone/.next/server/chunks/{[root-of-the-server]__0fzwzem._.js → [root-of-the-server]__0gedsnc._.js} +2 -2
  216. package/standalone/.next/server/chunks/[root-of-the-server]__0gorac4._.js +3 -0
  217. package/standalone/.next/server/chunks/[root-of-the-server]__0hd0i41._.js +3 -0
  218. package/standalone/.next/server/chunks/[root-of-the-server]__0hyrrl3._.js +3 -0
  219. package/standalone/.next/server/chunks/[root-of-the-server]__0kxris6._.js +3 -0
  220. package/standalone/.next/server/chunks/[root-of-the-server]__0lbyvuf._.js +3 -0
  221. package/standalone/.next/server/chunks/[root-of-the-server]__0lmlzy2._.js +3 -0
  222. package/standalone/.next/server/chunks/[root-of-the-server]__0lpn3y3._.js +3 -0
  223. package/standalone/.next/server/chunks/{[root-of-the-server]__0deutn6._.js → [root-of-the-server]__0njzyae._.js} +2 -2
  224. package/standalone/.next/server/chunks/[root-of-the-server]__0o1f0q0._.js +3 -0
  225. package/standalone/.next/server/chunks/[root-of-the-server]__0o2vsff._.js +3 -0
  226. package/standalone/.next/server/chunks/[root-of-the-server]__0o__n8q._.js +3 -0
  227. package/standalone/.next/server/chunks/[root-of-the-server]__0r4layw._.js +3 -0
  228. package/standalone/.next/server/chunks/[root-of-the-server]__0r6qwbg._.js +3 -0
  229. package/standalone/.next/server/chunks/[root-of-the-server]__0r_1lyd._.js +3 -0
  230. package/standalone/.next/server/chunks/{[root-of-the-server]__1sgz5xe._.js → [root-of-the-server]__0rwzlp5._.js} +2 -2
  231. package/standalone/.next/server/chunks/{[root-of-the-server]__0n9n0wa._.js → [root-of-the-server]__0su5xbh._.js} +2 -2
  232. package/standalone/.next/server/chunks/{[root-of-the-server]__1g5ehjo._.js → [root-of-the-server]__0t_1g6x._.js} +2 -2
  233. package/standalone/.next/server/chunks/[root-of-the-server]__0umrmgu._.js +3 -0
  234. package/standalone/.next/server/chunks/{[root-of-the-server]__119lu0l._.js → [root-of-the-server]__0xl63a7._.js} +2 -2
  235. package/standalone/.next/server/chunks/[root-of-the-server]__0xxlq9f._.js +3 -0
  236. package/standalone/.next/server/chunks/[root-of-the-server]__0ynqgwd._.js +3 -0
  237. package/standalone/.next/server/chunks/[root-of-the-server]__0yo97yw._.js +3 -0
  238. package/standalone/.next/server/chunks/[root-of-the-server]__0yukdx0._.js +3 -0
  239. package/standalone/.next/server/chunks/{[root-of-the-server]__0m09s1f._.js → [root-of-the-server]__0yx69ig._.js} +2 -2
  240. package/standalone/.next/server/chunks/[root-of-the-server]__0zdquaj._.js +3 -0
  241. package/standalone/.next/server/chunks/[root-of-the-server]__0zl_7f0._.js +3 -0
  242. package/standalone/.next/server/chunks/[root-of-the-server]__1-6ac7x._.js +3 -0
  243. package/standalone/.next/server/chunks/[root-of-the-server]__10ax2y3._.js +3 -0
  244. package/standalone/.next/server/chunks/[root-of-the-server]__111axgx._.js +3 -0
  245. package/standalone/.next/server/chunks/[root-of-the-server]__112_ym-._.js +3 -0
  246. package/standalone/.next/server/chunks/{[root-of-the-server]__03lh83x._.js → [root-of-the-server]__11_l9kh._.js} +2 -2
  247. package/standalone/.next/server/chunks/[root-of-the-server]__13atbqs._.js +3 -0
  248. package/standalone/.next/server/chunks/[root-of-the-server]__13f0rv7._.js +3 -0
  249. package/standalone/.next/server/chunks/[root-of-the-server]__13ghplc._.js +3 -0
  250. package/standalone/.next/server/chunks/[root-of-the-server]__13y3ap6._.js +3 -0
  251. package/standalone/.next/server/chunks/[root-of-the-server]__145854p._.js +3 -0
  252. package/standalone/.next/server/chunks/[root-of-the-server]__156bqk6._.js +3 -0
  253. package/standalone/.next/server/chunks/[root-of-the-server]__15anbvu._.js +3 -0
  254. package/standalone/.next/server/chunks/[root-of-the-server]__15fe1ky._.js +3 -0
  255. package/standalone/.next/server/chunks/[root-of-the-server]__16gno9l._.js +3 -0
  256. package/standalone/.next/server/chunks/[root-of-the-server]__16y0jw6._.js +3 -0
  257. package/standalone/.next/server/chunks/{[root-of-the-server]__1inrvz6._.js → [root-of-the-server]__17v3iu3._.js} +2 -2
  258. package/standalone/.next/server/chunks/[root-of-the-server]__17xi013._.js +3 -0
  259. package/standalone/.next/server/chunks/[root-of-the-server]__19yjsxi._.js +3 -0
  260. package/standalone/.next/server/chunks/[root-of-the-server]__1__181r._.js +3 -0
  261. package/standalone/.next/server/chunks/[root-of-the-server]__1_j58hk._.js +3 -0
  262. package/standalone/.next/server/chunks/[root-of-the-server]__1_u7utj._.js +3 -0
  263. package/standalone/.next/server/chunks/[root-of-the-server]__1_xypu8._.js +3 -0
  264. package/standalone/.next/server/chunks/[root-of-the-server]__1a9n6nb._.js +3 -0
  265. package/standalone/.next/server/chunks/[root-of-the-server]__1ahn_s1._.js +3 -0
  266. package/standalone/.next/server/chunks/{[root-of-the-server]__1v9pr22._.js → [root-of-the-server]__1amrm18._.js} +2 -2
  267. package/standalone/.next/server/chunks/[root-of-the-server]__1c93he1._.js +3 -0
  268. package/standalone/.next/server/chunks/{[root-of-the-server]__1ghtk-u._.js → [root-of-the-server]__1ca92tw._.js} +2 -2
  269. package/standalone/.next/server/chunks/[root-of-the-server]__1d2p5s7._.js +3 -0
  270. package/standalone/.next/server/chunks/[root-of-the-server]__1e-y964._.js +3 -0
  271. package/standalone/.next/server/chunks/{[root-of-the-server]__0jin988._.js → [root-of-the-server]__1em0xu9._.js} +2 -2
  272. package/standalone/.next/server/chunks/{[root-of-the-server]__1yt6tih._.js → [root-of-the-server]__1f0zhzz._.js} +2 -2
  273. package/standalone/.next/server/chunks/[root-of-the-server]__1fjzpw8._.js +3 -0
  274. package/standalone/.next/server/chunks/{[root-of-the-server]__046c9w0._.js → [root-of-the-server]__1fnlj9e._.js} +2 -2
  275. package/standalone/.next/server/chunks/[root-of-the-server]__1gg0deb._.js +3 -0
  276. package/standalone/.next/server/chunks/[root-of-the-server]__1isy66r._.js +3 -0
  277. package/standalone/.next/server/chunks/[root-of-the-server]__1iueadp._.js +3 -0
  278. package/standalone/.next/server/chunks/[root-of-the-server]__1lgrdmb._.js +3 -0
  279. package/standalone/.next/server/chunks/[root-of-the-server]__1ltxl89._.js +3 -0
  280. package/standalone/.next/server/chunks/{[root-of-the-server]__0w9qwef._.js → [root-of-the-server]__1n2pfid._.js} +2 -2
  281. package/standalone/.next/server/chunks/[root-of-the-server]__1pchrv1._.js +3 -0
  282. package/standalone/.next/server/chunks/[root-of-the-server]__1q3qhn3._.js +3 -0
  283. package/standalone/.next/server/chunks/{[root-of-the-server]__1l0i6bt._.js → [root-of-the-server]__1r3djqb._.js} +2 -2
  284. package/standalone/.next/server/chunks/[root-of-the-server]__1r6cfp_._.js +3 -0
  285. package/standalone/.next/server/chunks/[root-of-the-server]__1rkrr9y._.js +3 -0
  286. package/standalone/.next/server/chunks/[root-of-the-server]__1s_oovo._.js +3 -0
  287. package/standalone/.next/server/chunks/[root-of-the-server]__1syfm5l._.js +3 -0
  288. package/standalone/.next/server/chunks/[root-of-the-server]__1t_2g9l._.js +3 -0
  289. package/standalone/.next/server/chunks/[root-of-the-server]__1ug9sy_._.js +3 -0
  290. package/standalone/.next/server/chunks/[root-of-the-server]__1v6-hkq._.js +3 -0
  291. package/standalone/.next/server/chunks/[root-of-the-server]__1va_ptf._.js +3 -0
  292. package/standalone/.next/server/chunks/[root-of-the-server]__1w83ks0._.js +3 -0
  293. package/standalone/.next/server/chunks/{[root-of-the-server]__04z6da6._.js → [root-of-the-server]__1w_r8ug._.js} +2 -2
  294. package/standalone/.next/server/chunks/[root-of-the-server]__1wgorxu._.js +3 -0
  295. package/standalone/.next/server/chunks/[root-of-the-server]__1xh8f1z._.js +3 -0
  296. package/standalone/.next/server/chunks/[root-of-the-server]__1xqq0j2._.js +3 -0
  297. package/standalone/.next/server/chunks/[root-of-the-server]__1z1b8w4._.js +3 -0
  298. package/standalone/.next/server/chunks/[root-of-the-server]__1z8eo0j._.js +3 -0
  299. package/standalone/.next/server/chunks/[root-of-the-server]__20zebdq._.js +3 -0
  300. package/standalone/.next/server/chunks/_0_3-lke._.js +70 -9
  301. package/standalone/.next/server/chunks/_0d87yp6._.js +2 -2
  302. package/standalone/.next/server/chunks/_0rjgtla._.js +2 -2
  303. package/standalone/.next/server/chunks/_1_sa5xl._.js +2 -2
  304. package/standalone/.next/server/chunks/_1hmzed-._.js +63 -2
  305. package/standalone/.next/server/chunks/_1pc6dt_._.js +2 -2
  306. package/standalone/.next/server/chunks/_1xuucni._.js +2 -2
  307. package/standalone/.next/server/chunks/_1ya6q3e._.js +2 -2
  308. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0-guq-9._.js +3 -0
  309. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__064h18r._.js +3 -0
  310. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0js6wx9._.js → [root-of-the-server]__07ll4k6._.js} +2 -2
  311. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0ljh3ky._.js → [root-of-the-server]__08m_tud._.js} +2 -2
  312. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0qvg807._.js → [root-of-the-server]__0iulojy._.js} +2 -2
  313. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0je1dve._.js +15 -0
  314. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1vww3f6._.js → [root-of-the-server]__0mpg4qq._.js} +2 -2
  315. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__10rfw-t._.js +3 -0
  316. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__08vwbx7._.js → [root-of-the-server]__1gemlo_._.js} +2 -2
  317. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1bd2arr._.js → [root-of-the-server]__1kzbjl5._.js} +3 -3
  318. package/standalone/.next/server/chunks/ssr/{_14leuy3._.js → _0-o8qp9._.js} +2 -2
  319. package/standalone/.next/server/chunks/ssr/_0158tm3._.js +22 -0
  320. package/standalone/.next/server/chunks/ssr/_01qjv4h._.js +10 -0
  321. package/standalone/.next/server/chunks/ssr/_022u7lb._.js +15 -0
  322. package/standalone/.next/server/chunks/ssr/_08p6s05._.js +1 -1
  323. package/standalone/.next/server/chunks/ssr/_0_6-vje._.js +3 -0
  324. package/standalone/.next/server/chunks/ssr/{_16kl8gr._.js → _0ecoxf6._.js} +2 -2
  325. package/standalone/.next/server/chunks/ssr/{_08g6bix._.js → _0ibt6d5._.js} +3 -3
  326. package/standalone/.next/server/chunks/ssr/{_18xrhsg._.js → _0ixrbdr._.js} +2 -2
  327. package/standalone/.next/server/chunks/ssr/_0k-c9_2._.js +3 -0
  328. package/standalone/.next/server/chunks/ssr/_0kp37lj._.js +3 -0
  329. package/standalone/.next/server/chunks/ssr/_0mwg_m-._.js +3 -0
  330. package/standalone/.next/server/chunks/ssr/_0qi2sb7._.js +3 -0
  331. package/standalone/.next/server/chunks/ssr/_0rewrau._.js +3 -0
  332. package/standalone/.next/server/chunks/ssr/{_09bcjtq._.js → _0ro_o-3._.js} +2 -2
  333. package/standalone/.next/server/chunks/ssr/{_0n86f1m._.js → _0sbsue7._.js} +2 -2
  334. package/standalone/.next/server/chunks/ssr/_0u04ikp._.js +3 -0
  335. package/standalone/.next/server/chunks/ssr/_0wc8st5._.js +3 -0
  336. package/standalone/.next/server/chunks/ssr/_0wdqa08._.js +24 -0
  337. package/standalone/.next/server/chunks/ssr/_13c2e2e._.js +3 -0
  338. package/standalone/.next/server/chunks/ssr/{_16lbtbj._.js → _154hqy7._.js} +3 -3
  339. package/standalone/.next/server/chunks/ssr/_184gcf9._.js +3 -0
  340. package/standalone/.next/server/chunks/ssr/{_15l7ork._.js → _18ql1ra._.js} +2 -2
  341. package/standalone/.next/server/chunks/ssr/{_1oc_qeb._.js → _18y675s._.js} +2 -2
  342. package/standalone/.next/server/chunks/ssr/_19uhr89._.js +3 -0
  343. package/standalone/.next/server/chunks/ssr/_1at-ti0._.js +5 -0
  344. package/standalone/.next/server/chunks/ssr/_1b-tglm._.js +3 -0
  345. package/standalone/.next/server/chunks/ssr/_1boywnc._.js +9 -0
  346. package/standalone/.next/server/chunks/ssr/{_0u_x0oc._.js → _1btl6f6._.js} +2 -2
  347. package/standalone/.next/server/chunks/ssr/_1cbynbc._.js +21 -0
  348. package/standalone/.next/server/chunks/ssr/_1hjrtvv._.js +3 -0
  349. package/standalone/.next/server/chunks/ssr/_1i-_huq._.js +5 -0
  350. package/standalone/.next/server/chunks/ssr/_1j9bac7._.js +57 -0
  351. package/standalone/.next/server/chunks/ssr/{_13boc9b._.js → _1m3dqvf._.js} +2 -2
  352. package/standalone/.next/server/chunks/ssr/_1nbvse5._.js +3 -0
  353. package/standalone/.next/server/chunks/ssr/_1njj5e5._.js +25 -0
  354. package/standalone/.next/server/chunks/ssr/_1q_8hby._.js +3 -0
  355. package/standalone/.next/server/chunks/ssr/_1t1ka5b._.js +3 -0
  356. package/standalone/.next/server/chunks/ssr/_1unm3n-._.js +3 -0
  357. package/standalone/.next/server/chunks/ssr/_1vx8nbn._.js +3 -0
  358. package/standalone/.next/server/chunks/ssr/_1wpqpq_._.js +3 -0
  359. package/standalone/.next/server/chunks/ssr/{_0s-_f4k._.js → _1ws3tm8._.js} +3 -3
  360. package/standalone/.next/server/chunks/ssr/_1xoejuo._.js +3 -0
  361. package/standalone/.next/server/chunks/ssr/_1xwodxm._.js +26 -0
  362. package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +24 -17
  363. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  364. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  365. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  366. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  367. package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_1up2wai._.js +3 -0
  368. package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_react-menu_dist_index_mjs_0r8d9ly._.js +3 -0
  369. package/standalone/.next/server/chunks/ssr/src_components_runs_run-detail-page_tsx_0eje87-._.js +1 -1
  370. package/standalone/.next/server/chunks/ssr/src_components_ui_195oosa._.js +3 -0
  371. package/standalone/.next/server/chunks/ssr/src_components_ui_198y4_o._.js +3 -0
  372. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  373. package/standalone/.next/server/next-font-manifest.js +1 -1
  374. package/standalone/.next/server/next-font-manifest.json +0 -4
  375. package/standalone/.next/server/pages/404.html +1 -1
  376. package/standalone/.next/server/pages/500.html +1 -1
  377. package/standalone/.next/server/server-reference-manifest.js +1 -1
  378. package/standalone/.next/server/server-reference-manifest.json +1 -1
  379. package/standalone/.next/static/chunks/{1_2kx7s8a2159.js → 06vdflmowpip6.js} +6 -6
  380. package/standalone/.next/static/chunks/07vuhvr-qtb7x.js +28 -0
  381. package/standalone/.next/static/chunks/{3z1isz179y8rv.js → 0_uexv6neli5u.js} +7 -7
  382. package/standalone/.next/static/chunks/0eo18i30uko5v.js +15 -0
  383. package/standalone/.next/static/chunks/0kmg7qlu8ytwf.js +59 -0
  384. package/standalone/.next/static/chunks/0knpwbhdkzti0.js +1 -0
  385. package/standalone/.next/static/chunks/{1jn5l9964tm_t.js → 0m5tuf_eivume.js} +5 -5
  386. package/standalone/.next/static/chunks/0mcuo36rz9j57.js +55 -0
  387. package/standalone/.next/static/chunks/0mpcmi3wv5r7o.js +53 -0
  388. package/standalone/.next/static/chunks/0n0dnronw8ezg.js +85 -0
  389. package/standalone/.next/static/chunks/0pn4p6w3w-j20.js +1 -0
  390. package/standalone/.next/static/chunks/{2yg_hcy-xlokr.js → 0pv0lqmzjn6ar.js} +11 -11
  391. package/standalone/.next/static/chunks/0wrm-zqne-dc8.js +9 -0
  392. package/standalone/.next/static/chunks/0xe08f4_etyy8.js +3 -0
  393. package/standalone/.next/static/chunks/1-byqle1eur_a.js +75 -0
  394. package/standalone/.next/static/chunks/127vn4wn5xo9p.js +49 -0
  395. package/standalone/.next/static/chunks/12te8dyw3x2bn.js +1 -0
  396. package/standalone/.next/static/chunks/17bq0x-xdn9o4.js +88 -0
  397. package/standalone/.next/static/chunks/19dkpj43f8v40.js +42 -0
  398. package/standalone/.next/static/chunks/1c42xu-oct3-l.js +1 -0
  399. package/standalone/.next/static/chunks/1g2nga-bvjlja.js +88 -0
  400. package/standalone/.next/static/chunks/1gkhfdfmj-oh0.js +43 -0
  401. package/standalone/.next/static/chunks/1k-_4gvcm-pyb.js +1 -0
  402. package/standalone/.next/static/chunks/1kjs_7sxvaxng.js +27 -0
  403. package/standalone/.next/static/chunks/1p730oe_-y1hj.js +1 -0
  404. package/standalone/.next/static/chunks/1pcc30ztgbtfp.js +34 -0
  405. package/standalone/.next/static/chunks/{0__52m82mb813.js → 1popvhaprqxtf.js} +1 -1
  406. package/standalone/.next/static/chunks/1rcjbru7lya3t.js +7 -0
  407. package/standalone/.next/static/chunks/1vgurgb3_kw0d.js +33 -0
  408. package/standalone/.next/static/chunks/{0s60he_e08soe.js → 1vhe4q0cd7aqp.js} +2 -2
  409. package/standalone/.next/static/chunks/1z4uktkhpz4vk.js +3 -0
  410. package/standalone/.next/static/chunks/21xk5pyunaike.js +120 -0
  411. package/standalone/.next/static/chunks/26nqjwc9aov2w.js +1 -0
  412. package/standalone/.next/static/chunks/28xkjksksnsd_.css +1 -0
  413. package/standalone/.next/static/chunks/299mqzsp8p9u8.js +1 -0
  414. package/standalone/.next/static/chunks/2aacfhrhmknxw.js +90 -0
  415. package/standalone/.next/static/chunks/2d6gk7-wy11nz.js +13 -0
  416. package/standalone/.next/static/chunks/2k5n-lawvi3o1.js +29 -0
  417. package/standalone/.next/static/chunks/{104wb_0lixxfp.js → 2lfmdc3eqlsl4.js} +17 -17
  418. package/standalone/.next/static/chunks/2m0zo09ce60t-.js +1 -0
  419. package/standalone/.next/static/chunks/2ouwnzrx0591e.js +54 -0
  420. package/standalone/.next/static/chunks/{24alljtl2n1j_.js → 2svylmgfm08d9.js} +6 -6
  421. package/standalone/.next/static/chunks/2ucnry1pj6sw1.js +64 -0
  422. package/standalone/.next/static/chunks/{0o8_x0u4fxie7.js → 2wgg-jr0osw4i.js} +2 -2
  423. package/standalone/.next/static/chunks/{3018mq1s5v8kz.js → 2wsr9efe8r8ng.js} +4 -4
  424. package/standalone/.next/static/chunks/2z1q99_-1kg93.js +3 -0
  425. package/standalone/.next/static/chunks/31809uzps9w9e.js +64 -0
  426. package/standalone/.next/static/chunks/31is47ulkcw19.js +37 -0
  427. package/standalone/.next/static/chunks/34_yps6ppoo5k.js +1 -0
  428. package/standalone/.next/static/chunks/34wlxu_g_2g1y.js +26 -0
  429. package/standalone/.next/static/chunks/3gsir-iueghp2.js +23 -0
  430. package/standalone/.next/static/chunks/3jkg8wqh5nnam.js +29 -0
  431. package/standalone/.next/static/chunks/3kly0o0iaeig-.js +24 -0
  432. package/standalone/.next/static/chunks/3nme8562ujl6t.js +1 -0
  433. package/standalone/.next/static/chunks/3sgrm30gdqnhj.js +1 -0
  434. package/standalone/.next/static/chunks/3txqwzevvzjhy.js +42 -0
  435. package/standalone/.next/static/chunks/3uhr-ha19zo61.js +23 -0
  436. package/standalone/.next/static/chunks/{1pjy8b30-wkw9.js → 3umkd0xpssc3q.js} +3 -3
  437. package/standalone/.next/static/chunks/43wopct538msd.js +1 -0
  438. package/standalone/.next/server/app/[locale]/action-center/page/app-paths-manifest.json +0 -3
  439. package/standalone/.next/server/app/[locale]/action-center/page/build-manifest.json +0 -16
  440. package/standalone/.next/server/app/[locale]/action-center/page/next-font-manifest.json +0 -11
  441. package/standalone/.next/server/app/[locale]/action-center/page/react-loadable-manifest.json +0 -1
  442. package/standalone/.next/server/app/[locale]/action-center/page/server-reference-manifest.json +0 -4
  443. package/standalone/.next/server/app/[locale]/action-center/page.js +0 -17
  444. package/standalone/.next/server/app/[locale]/action-center/page.js.map +0 -5
  445. package/standalone/.next/server/app/[locale]/action-center/page.js.nft.json +0 -1
  446. package/standalone/.next/server/app/[locale]/action-center/page_client-reference-manifest.js +0 -3
  447. package/standalone/.next/server/chunks/[root-of-the-server]__0d21gjd._.js +0 -3
  448. package/standalone/.next/server/chunks/[root-of-the-server]__0gq25kr._.js +0 -3
  449. package/standalone/.next/server/chunks/[root-of-the-server]__0h05dmh._.js +0 -3
  450. package/standalone/.next/server/chunks/[root-of-the-server]__0h1j7no._.js +0 -3
  451. package/standalone/.next/server/chunks/[root-of-the-server]__0kprqh4._.js +0 -3
  452. package/standalone/.next/server/chunks/[root-of-the-server]__0m0ckek._.js +0 -3
  453. package/standalone/.next/server/chunks/[root-of-the-server]__0m8pxlb._.js +0 -3
  454. package/standalone/.next/server/chunks/[root-of-the-server]__0nu8ev9._.js +0 -3
  455. package/standalone/.next/server/chunks/[root-of-the-server]__0p-zaud._.js +0 -3
  456. package/standalone/.next/server/chunks/[root-of-the-server]__0p0u8fq._.js +0 -3
  457. package/standalone/.next/server/chunks/[root-of-the-server]__0p6gqiv._.js +0 -3
  458. package/standalone/.next/server/chunks/[root-of-the-server]__0p7s2k3._.js +0 -3
  459. package/standalone/.next/server/chunks/[root-of-the-server]__0rq8991._.js +0 -3
  460. package/standalone/.next/server/chunks/[root-of-the-server]__0sogo1p._.js +0 -3
  461. package/standalone/.next/server/chunks/[root-of-the-server]__0to2fqa._.js +0 -3
  462. package/standalone/.next/server/chunks/[root-of-the-server]__0uhlj3h._.js +0 -3
  463. package/standalone/.next/server/chunks/[root-of-the-server]__0v6d64m._.js +0 -3
  464. package/standalone/.next/server/chunks/[root-of-the-server]__0vs241l._.js +0 -3
  465. package/standalone/.next/server/chunks/[root-of-the-server]__0wzgw0m._.js +0 -3
  466. package/standalone/.next/server/chunks/[root-of-the-server]__0x5d6lo._.js +0 -3
  467. package/standalone/.next/server/chunks/[root-of-the-server]__0xazzjb._.js +0 -3
  468. package/standalone/.next/server/chunks/[root-of-the-server]__0xqm3n9._.js +0 -3
  469. package/standalone/.next/server/chunks/[root-of-the-server]__0zorfix._.js +0 -3
  470. package/standalone/.next/server/chunks/[root-of-the-server]__1-ljnib._.js +0 -3
  471. package/standalone/.next/server/chunks/[root-of-the-server]__11-o845._.js +0 -3
  472. package/standalone/.next/server/chunks/[root-of-the-server]__13_u_ro._.js +0 -3
  473. package/standalone/.next/server/chunks/[root-of-the-server]__13qagj_._.js +0 -3
  474. package/standalone/.next/server/chunks/[root-of-the-server]__14yfzp0._.js +0 -3
  475. package/standalone/.next/server/chunks/[root-of-the-server]__15h5kmz._.js +0 -3
  476. package/standalone/.next/server/chunks/[root-of-the-server]__18eaxef._.js +0 -3
  477. package/standalone/.next/server/chunks/[root-of-the-server]__18fpgua._.js +0 -3
  478. package/standalone/.next/server/chunks/[root-of-the-server]__1_e5221._.js +0 -3
  479. package/standalone/.next/server/chunks/[root-of-the-server]__1_pozkw._.js +0 -3
  480. package/standalone/.next/server/chunks/[root-of-the-server]__1amawad._.js +0 -3
  481. package/standalone/.next/server/chunks/[root-of-the-server]__1b2duzg._.js +0 -3
  482. package/standalone/.next/server/chunks/[root-of-the-server]__1b5470b._.js +0 -3
  483. package/standalone/.next/server/chunks/[root-of-the-server]__1cvxm3-._.js +0 -3
  484. package/standalone/.next/server/chunks/[root-of-the-server]__1dhuc2g._.js +0 -3
  485. package/standalone/.next/server/chunks/[root-of-the-server]__1dx2vmk._.js +0 -3
  486. package/standalone/.next/server/chunks/[root-of-the-server]__1ekrk8d._.js +0 -3
  487. package/standalone/.next/server/chunks/[root-of-the-server]__1el0rwx._.js +0 -3
  488. package/standalone/.next/server/chunks/[root-of-the-server]__1ex9wz4._.js +0 -3
  489. package/standalone/.next/server/chunks/[root-of-the-server]__1ez1qjo._.js +0 -3
  490. package/standalone/.next/server/chunks/[root-of-the-server]__1flzhuq._.js +0 -3
  491. package/standalone/.next/server/chunks/[root-of-the-server]__1hgzt9m._.js +0 -3
  492. package/standalone/.next/server/chunks/[root-of-the-server]__1i48xcq._.js +0 -3
  493. package/standalone/.next/server/chunks/[root-of-the-server]__1im_7cr._.js +0 -3
  494. package/standalone/.next/server/chunks/[root-of-the-server]__1jypemo._.js +0 -3
  495. package/standalone/.next/server/chunks/[root-of-the-server]__1l9m5vm._.js +0 -3
  496. package/standalone/.next/server/chunks/[root-of-the-server]__1lc23sg._.js +0 -3
  497. package/standalone/.next/server/chunks/[root-of-the-server]__1m14-al._.js +0 -3
  498. package/standalone/.next/server/chunks/[root-of-the-server]__1m2x6-i._.js +0 -3
  499. package/standalone/.next/server/chunks/[root-of-the-server]__1mlmrbg._.js +0 -3
  500. package/standalone/.next/server/chunks/[root-of-the-server]__1mttyay._.js +0 -3
  501. package/standalone/.next/server/chunks/[root-of-the-server]__1obl6rm._.js +0 -3
  502. package/standalone/.next/server/chunks/[root-of-the-server]__1oh_afd._.js +0 -3
  503. package/standalone/.next/server/chunks/[root-of-the-server]__1ph5-o-._.js +0 -3
  504. package/standalone/.next/server/chunks/[root-of-the-server]__1qcqxk2._.js +0 -3
  505. package/standalone/.next/server/chunks/[root-of-the-server]__1qnaf-5._.js +0 -3
  506. package/standalone/.next/server/chunks/[root-of-the-server]__1s8pdh3._.js +0 -3
  507. package/standalone/.next/server/chunks/[root-of-the-server]__1sav-w6._.js +0 -3
  508. package/standalone/.next/server/chunks/[root-of-the-server]__1sb1p64._.js +0 -3
  509. package/standalone/.next/server/chunks/[root-of-the-server]__1trf87b._.js +0 -3
  510. package/standalone/.next/server/chunks/[root-of-the-server]__1v0kdi4._.js +0 -3
  511. package/standalone/.next/server/chunks/[root-of-the-server]__1vgd_cg._.js +0 -3
  512. package/standalone/.next/server/chunks/[root-of-the-server]__1w9gjd5._.js +0 -3
  513. package/standalone/.next/server/chunks/[root-of-the-server]__1wey7bg._.js +0 -3
  514. package/standalone/.next/server/chunks/[root-of-the-server]__1xcsuq_._.js +0 -3
  515. package/standalone/.next/server/chunks/[root-of-the-server]__1zo0vbv._.js +0 -3
  516. package/standalone/.next/server/chunks/[root-of-the-server]__1zshyzr._.js +0 -3
  517. package/standalone/.next/server/chunks/[root-of-the-server]__1zv9v9b._.js +0 -3
  518. package/standalone/.next/server/chunks/[root-of-the-server]__201fjv-._.js +0 -3
  519. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0-_5urd._.js +0 -57
  520. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0cej3c3._.js +0 -3
  521. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rxp26l._.js +0 -3
  522. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-mk318._.js +0 -15
  523. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ct2_y9._.js +0 -3
  524. package/standalone/.next/server/chunks/ssr/_02hx02h._.js +0 -25
  525. package/standalone/.next/server/chunks/ssr/_08_kyiv._.js +0 -15
  526. package/standalone/.next/server/chunks/ssr/_0cz9xwo._.js +0 -3
  527. package/standalone/.next/server/chunks/ssr/_0ec1szn._.js +0 -3
  528. package/standalone/.next/server/chunks/ssr/_0ix0h2m._.js +0 -3
  529. package/standalone/.next/server/chunks/ssr/_0j-5kz6._.js +0 -3
  530. package/standalone/.next/server/chunks/ssr/_0le21ue._.js +0 -3
  531. package/standalone/.next/server/chunks/ssr/_0uuh5ne._.js +0 -9
  532. package/standalone/.next/server/chunks/ssr/_0wo43jn._.js +0 -3
  533. package/standalone/.next/server/chunks/ssr/_0wt_-w_._.js +0 -3
  534. package/standalone/.next/server/chunks/ssr/_0y-bz5b._.js +0 -3
  535. package/standalone/.next/server/chunks/ssr/_0yk3h5c._.js +0 -3
  536. package/standalone/.next/server/chunks/ssr/_0zfjp5l._.js +0 -26
  537. package/standalone/.next/server/chunks/ssr/_1-3pbk9._.js +0 -3
  538. package/standalone/.next/server/chunks/ssr/_1-s8jib._.js +0 -10
  539. package/standalone/.next/server/chunks/ssr/_11-g9w5._.js +0 -3
  540. package/standalone/.next/server/chunks/ssr/_12ekas6._.js +0 -3
  541. package/standalone/.next/server/chunks/ssr/_16zlatv._.js +0 -21
  542. package/standalone/.next/server/chunks/ssr/_1a-x7w1._.js +0 -3
  543. package/standalone/.next/server/chunks/ssr/_1bgz3gf._.js +0 -29
  544. package/standalone/.next/server/chunks/ssr/_1c5bgm_._.js +0 -3
  545. package/standalone/.next/server/chunks/ssr/_1dwtoxe._.js +0 -3
  546. package/standalone/.next/server/chunks/ssr/_1fy4o1o._.js +0 -22
  547. package/standalone/.next/server/chunks/ssr/_1jqp1me._.js +0 -3
  548. package/standalone/.next/server/chunks/ssr/_1lcmi6f._.js +0 -3
  549. package/standalone/.next/server/chunks/ssr/_1lxr3mb._.js +0 -24
  550. package/standalone/.next/server/chunks/ssr/_1opkxfb._.js +0 -5
  551. package/standalone/.next/server/chunks/ssr/_1xbulhi._.js +0 -5
  552. package/standalone/.next/server/chunks/ssr/_1yctl8w._.js +0 -3
  553. package/standalone/.next/server/chunks/ssr/_210pgrk._.js +0 -3
  554. package/standalone/.next/server/chunks/ssr/_next-internal_server_app_[locale]_action-center_page_actions_13rr4o6.js +0 -3
  555. package/standalone/.next/server/chunks/ssr/node_modules_0k28hjd._.js +0 -3
  556. package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_0zzd3o1._.js +0 -3
  557. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1gjv--k.js +0 -4
  558. package/standalone/.next/server/chunks/ssr/src_app_[locale]_page_tsx_00h-a9t._.js +0 -3
  559. package/standalone/.next/server/chunks/ssr/src_components_ui_0wr97kq._.js +0 -3
  560. package/standalone/.next/static/chunks/01oxnu86_we4m.js +0 -27
  561. package/standalone/.next/static/chunks/04bs8b3m4jjfr.js +0 -1
  562. package/standalone/.next/static/chunks/0556n0z5a2tir.js +0 -75
  563. package/standalone/.next/static/chunks/05r79mew_ttoh.js +0 -3
  564. package/standalone/.next/static/chunks/09jeps1e4upyd.js +0 -27
  565. package/standalone/.next/static/chunks/0f01o_texfoo2.js +0 -3
  566. package/standalone/.next/static/chunks/0g6kioy8mgt7g.js +0 -1
  567. package/standalone/.next/static/chunks/0mv6tgkxvot06.css +0 -1
  568. package/standalone/.next/static/chunks/0o6ubiw38_cix.js +0 -1
  569. package/standalone/.next/static/chunks/0qj_41gt1wo57.js +0 -1
  570. package/standalone/.next/static/chunks/0qq_ney086s74.js +0 -26
  571. package/standalone/.next/static/chunks/0tpuj0br2ze72.js +0 -1
  572. package/standalone/.next/static/chunks/0vetr9kzsvj8y.js +0 -27
  573. package/standalone/.next/static/chunks/0wegc5r-um7u_.js +0 -49
  574. package/standalone/.next/static/chunks/0xcxze4dn_g4k.js +0 -1
  575. package/standalone/.next/static/chunks/0z9rkj63eff65.js +0 -98
  576. package/standalone/.next/static/chunks/1-c5wiq8svvl6.js +0 -1
  577. package/standalone/.next/static/chunks/16vhqh6nwwd7k.js +0 -92
  578. package/standalone/.next/static/chunks/17sqvm2t_n5w8.js +0 -71
  579. package/standalone/.next/static/chunks/1fgowguozghfx.js +0 -7
  580. package/standalone/.next/static/chunks/1fkbsex7h55uj.js +0 -26
  581. package/standalone/.next/static/chunks/1qd5oxoewa3-m.js +0 -23
  582. package/standalone/.next/static/chunks/1sd9kcg_rkzsu.js +0 -1
  583. package/standalone/.next/static/chunks/1vnglbvh2-2hk.js +0 -1
  584. package/standalone/.next/static/chunks/1zejpj9ig77ly.js +0 -3
  585. package/standalone/.next/static/chunks/26gi3xhwq--4r.js +0 -59
  586. package/standalone/.next/static/chunks/29xjwnfybrwxv.js +0 -1
  587. package/standalone/.next/static/chunks/2gepmmzvedd5t.js +0 -79
  588. package/standalone/.next/static/chunks/2ib66g1yoqcp0.js +0 -80
  589. package/standalone/.next/static/chunks/2kc9nohdlg9t0.js +0 -1
  590. package/standalone/.next/static/chunks/2pbe_7ml0_4a_.js +0 -24
  591. package/standalone/.next/static/chunks/2ratgipwpyy-4.js +0 -54
  592. package/standalone/.next/static/chunks/2vwr8tr2n27dp.js +0 -28
  593. package/standalone/.next/static/chunks/2w3pt99tr43fi.js +0 -1
  594. package/standalone/.next/static/chunks/2yf79r7q699-j.js +0 -29
  595. package/standalone/.next/static/chunks/2zx_h2f_a9r1j.js +0 -1
  596. package/standalone/.next/static/chunks/2zy-2tckw0276.js +0 -23
  597. package/standalone/.next/static/chunks/3-f9ycmnsbdq8.js +0 -55
  598. package/standalone/.next/static/chunks/34vrejlxl0pra.js +0 -59
  599. package/standalone/.next/static/chunks/3_6xtrl0kow9e.js +0 -1
  600. package/standalone/.next/static/chunks/3bn48ltoik3ze.js +0 -27
  601. package/standalone/.next/static/chunks/3c5mb2oebs86p.js +0 -53
  602. package/standalone/.next/static/chunks/3d7uu4x6cmams.js +0 -15
  603. package/standalone/.next/static/chunks/3g2-dbo8jvfd9.js +0 -1
  604. package/standalone/.next/static/chunks/3n4fg78e0htw8.js +0 -13
  605. package/standalone/.next/static/chunks/3r79mip8vpj0u.js +0 -88
  606. package/standalone/.next/static/chunks/3t347msjxauue.js +0 -42
  607. package/standalone/.next/static/chunks/3xme7jwjj_ntj.js +0 -157
  608. package/standalone/.next/static/chunks/44xkvdnq-prf1.js +0 -9
  609. /package/standalone/.next/static/{oamIXqlqBEvesdGgUx6UB → d77QrJpn4kUxmG3bXgnZw}/_buildManifest.js +0 -0
  610. /package/standalone/.next/static/{oamIXqlqBEvesdGgUx6UB → d77QrJpn4kUxmG3bXgnZw}/_clientMiddlewareManifest.js +0 -0
  611. /package/standalone/.next/static/{oamIXqlqBEvesdGgUx6UB → d77QrJpn4kUxmG3bXgnZw}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,144716,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},967489,470152,e=>{"use strict";var t=e.i(843476),n=e.i(271645),o=e.i(174080);function r(e,[t,n]){return Math.min(n,Math.max(t,e))}e.s(["clamp",0,r],470152);var l=e.i(981140),a=e.i(75830),i=e.i(820783),s=e.i(30030),c=e.i(586318),d=e.i(726330),u=e.i(303536),p=e.i(765491),f=e.i(610772),m=e.i(853660),v=e.i(774606),g=e.i(296626),h=e.i(248425),x=e.i(991918),w=e.i(30207),S=e.i(369340),b=e.i(934620),y=e.i(959411),C=e.i(186312),j=e.i(985369),I=Object.defineProperty,P=(e,t)=>I(e,"name",{value:t,configurable:!0}),E=[" ","Enter","ArrowUp","ArrowDown"],R=[" ","Enter"],T="Select",[D,k,L]=(0,a.createCollection)(T),[H,M]=(0,s.createContextScope)(T,[L,m.createPopperScope]),_=(0,m.createPopperScope)(),[B,z]=H(T),[N,A]=H(T);function V(e){let{__scopeSelect:o,children:r,open:l,defaultOpen:a,onOpenChange:i,value:s,defaultValue:d,onValueChange:u,dir:p,name:v,autoComplete:g,disabled:h,required:x,form:w,internal_do_not_use_render:b}=e,y=_(o),[C,j]=n.useState(null),[I,E]=n.useState(null),[R,k]=n.useState(!1),L=(0,c.useDirection)(p),[H,M]=(0,S.useControllableState)({prop:l,defaultProp:a??!1,onChange:i,caller:T}),[z,A]=(0,S.useControllableState)({prop:s,defaultProp:d,onChange:u,caller:T}),V=n.useRef(null),F=n.useRef(z);n.useEffect(()=>{let e=w?C?.ownerDocument.getElementById(w):C?.form;if(e instanceof HTMLFormElement){let t=P(()=>A(F.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[w,C,A]);let O=!C||!!w||!!C.closest("form"),[U,K]=n.useState(new Set),W=(0,f.useId)(),G=Array.from(U).map(e=>e.props.value).join(";"),Y=n.useCallback(e=>{K(t=>new Set(t).add(e))},[]),q=n.useCallback(e=>{K(t=>{let n=new Set(t);return n.delete(e),n})},[]),X={required:x,trigger:C,onTriggerChange:j,valueNode:I,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:k,contentId:W,value:z,onValueChange:A,open:H,onOpenChange:M,dir:L,triggerPointerDownPosRef:V,disabled:h,name:v,autoComplete:g,form:w,nativeOptions:U,nativeSelectKey:G,isFormControl:O};return(0,t.jsx)(m.Root,{...y,children:(0,t.jsx)(B,{scope:o,...X,children:(0,t.jsx)(D.Provider,{scope:o,children:(0,t.jsx)(N,{scope:o,onNativeOptionAdd:Y,onNativeOptionRemove:q,children:eP(b)?b(X):r})})})})}P(V,"SelectProvider");var F=P(e=>{let{__scopeSelect:n,children:o,...r}=e;return(0,t.jsx)(V,{__scopeSelect:n,...r,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[o,e?(0,t.jsx)(eI,{__scopeSelect:n}):null]})})},"Select"),O=n.forwardRef(P(function(e,o){let{__scopeSelect:r,disabled:a=!1,...s}=e,c=_(r),d=z("SelectTrigger",r),u=d.disabled||a,p=(0,i.useComposedRefs)(o,d.onTriggerChange),f=k(r),v=n.useRef("touch"),[g,x,w]=eR(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===d.value),o=eT(t,e,n);void 0!==o&&d.onValueChange(o.value)}),S=P(e=>{u||(d.onOpenChange(!0),w()),e&&(d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,t.jsx)(m.Anchor,{asChild:!0,...c,children:(0,t.jsx)(h.Primitive.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":eE(d.value)?"":void 0,...s,ref:p,onClick:(0,l.composeEventHandlers)(s.onClick,e=>{e.currentTarget.focus(),"mouse"!==v.current&&S(e)}),onPointerDown:(0,l.composeEventHandlers)(s.onPointerDown,e=>{v.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(S(e),e.preventDefault())}),onKeyDown:(0,l.composeEventHandlers)(s.onKeyDown,e=>{let t=""!==g.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||x(e.key),(!t||" "!==e.key)&&E.includes(e.key)&&(S(),e.preventDefault())})})})},"SelectTrigger")),U=n.forwardRef(P(function(e,o){let{__scopeSelect:r,className:l,style:a,children:s,placeholder:c="",...d}=e,u=z("SelectValue",r),{onValueNodeHasChildrenChange:p}=u,f=void 0!==s,m=(0,i.useComposedRefs)(o,u.onValueNodeChange);(0,b.useLayoutEffect)(()=>{p(f)},[p,f]);let v=eE(u.value);return(0,t.jsx)(h.Primitive.span,{...d,asChild:!v&&d.asChild,ref:m,style:{pointerEvents:"none"},children:(0,t.jsx)(n.Fragment,{children:v?c:s},v?"placeholder":"value")})},"SelectValue")),K=n.forwardRef(P(function(e,n){let{__scopeSelect:o,children:r,...l}=e;return(0,t.jsx)(h.Primitive.span,{"aria-hidden":!0,...l,ref:n,children:r||"▼"})},"SelectIcon")),[W,G]=H("SelectPortal",{forceMount:void 0}),Y=P(e=>{let{__scopeSelect:n,forceMount:o,...r}=e;return(0,t.jsx)(W,{scope:e.__scopeSelect,forceMount:o,children:(0,t.jsx)(v.Portal,{asChild:!0,...r})})},"SelectPortal"),q="SelectContent",X=n.forwardRef(P(function(e,o){let r=G(q,e.__scopeSelect),{forceMount:l=r.forceMount,...a}=e,i=z(q,e.__scopeSelect),[s,c]=n.useState();return(0,b.useLayoutEffect)(()=>{c(new DocumentFragment)},[]),(0,t.jsx)(g.Presence,{present:l||i.open,children:({present:e})=>e?(0,t.jsx)(ee,{...a,ref:o}):(0,t.jsx)(Z,{...a,fragment:s})})},"SelectContent")),Z=n.forwardRef(P(function(e,n){let{__scopeSelect:r,children:l,fragment:a}=e;return a?o.createPortal((0,t.jsx)(J,{scope:r,children:(0,t.jsx)(D.Slot,{scope:r,children:(0,t.jsx)("div",{ref:n,children:l})})}),a):null},"SelectContentFragment")),[J,Q]=H(q),$=(0,x.createSlot)("SelectContent.RemoveScroll"),ee=n.forwardRef(P(function(e,o){let{__scopeSelect:r}=e,{position:a="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:f,side:m,sideOffset:v,align:g,alignOffset:h,arrowPadding:x,collisionBoundary:w,collisionPadding:S,sticky:b,hideWhenDetached:y,avoidCollisions:I,...E}=e,R=z(q,r),[T,D]=n.useState(null),[L,H]=n.useState(null),M=(0,i.useComposedRefs)(o,D),[_,B]=n.useState(null),[N,A]=n.useState(null),V=k(r),[F,O]=n.useState(!1),U=n.useRef(!1);n.useEffect(()=>{if(T)return(0,C.hideOthers)(T)},[T]),(0,u.useFocusGuards)();let K=n.useCallback(e=>{let[t,...n]=V().map(e=>e.ref.current),[o]=n.slice(-1),r=document.activeElement;for(let n of e)if(n===r||(n?.scrollIntoView({block:"nearest"}),n===t&&L&&(L.scrollTop=0),n===o&&L&&(L.scrollTop=L.scrollHeight),n?.focus(),document.activeElement!==r))return},[V,L]),W=n.useCallback(()=>K([_,T]),[K,_,T]);n.useEffect(()=>{F&&W()},[F,W]);let{onOpenChange:G,triggerPointerDownPosRef:Y}=R;n.useEffect(()=>{if(T){let e={x:0,y:0},t=P(t=>{e={x:Math.abs(Math.round(t.pageX)-(Y.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(Y.current?.y??0))}},"handlePointerMove"),n=P(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(T)||G(!1),document.removeEventListener("pointermove",t),Y.current=null},"handlePointerUp");return null!==Y.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[T,G,Y]),n.useEffect(()=>{let e=P(()=>G(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[G]);let[X,Z]=eR(e=>{let t=V().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),o=eT(t,e,n);o&&setTimeout(()=>o.ref.current?.focus())}),Q=n.useCallback((e,t,n)=>{let o=!U.current&&!n;(void 0!==R.value&&R.value===t||o)&&(B(e),o&&(U.current=!0))},[R.value]),ee=n.useCallback(()=>T?.focus(),[T]),eo=n.useCallback((e,t,n)=>{let o=!U.current&&!n;(void 0!==R.value&&R.value===t||o)&&A(e)},[R.value]),er="popper"===a?en:et;return(0,t.jsx)(J,{scope:r,content:T,viewport:L,onViewportChange:H,itemRefCallback:Q,selectedItem:_,onItemLeave:ee,itemTextRefCallback:eo,focusSelectedItem:W,selectedItemText:N,position:a,isPositioned:F,searchRef:X,children:(0,t.jsx)(j.RemoveScroll,{as:$,allowPinchZoom:!0,children:(0,t.jsx)(p.FocusScope,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,l.composeEventHandlers)(s,e=>{R.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,t.jsx)(d.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:(0,t.jsx)(er,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault(),...E,...er===en?{side:m,sideOffset:v,align:g,alignOffset:h,arrowPadding:x,collisionBoundary:w,collisionPadding:S,sticky:b,hideWhenDetached:y,avoidCollisions:I}:{},onPlaced:()=>O(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,l.composeEventHandlers)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,o=t.indexOf(n);t=t.slice(o+1)}setTimeout(()=>K(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),et=n.forwardRef(P(function(e,o){let{__scopeSelect:l,onPlaced:a,...s}=e,c=z(q,l),d=Q(q,l),[u,p]=n.useState(null),[f,m]=n.useState(null),v=(0,i.useComposedRefs)(o,m),g=k(l),x=n.useRef(!1),w=n.useRef(!0),{viewport:S,selectedItem:y,selectedItemText:C,focusSelectedItem:j}=d,I=n.useCallback(()=>{if(c.trigger&&c.valueNode&&u&&f&&S&&y&&C){let e=c.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=c.valueNode.getBoundingClientRect(),o=C.getBoundingClientRect();if("rtl"!==c.dir){let l=o.left-t.left,a=n.left-l,i=e.left-a,s=e.width+i,c=Math.max(s,t.width),d=r(a,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{let l=t.right-o.right,a=window.innerWidth-n.right-l,i=window.innerWidth-e.right-a,s=e.width+i,c=Math.max(s,t.width),d=r(a,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=s+"px",u.style.right=d+"px"}let l=g(),i=window.innerHeight-20,s=S.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),h=p+m+s+parseInt(d.paddingBottom,10)+v,w=Math.min(5*y.offsetHeight,h),b=window.getComputedStyle(S),j=parseInt(b.paddingTop,10),I=parseInt(b.paddingBottom,10),P=e.top+e.height/2-10,E=y.offsetHeight/2,R=p+m+(y.offsetTop+E);if(R<=P){let e=l.length>0&&y===l[l.length-1].ref.current;u.style.bottom="0px";let t=Math.max(i-P,E+(e?I:0)+(f.clientHeight-S.offsetTop-S.offsetHeight)+v);u.style.height=R+t+"px"}else{let e=l.length>0&&y===l[0].ref.current;u.style.top="0px";let t=Math.max(P,p+S.offsetTop+(e?j:0)+E);u.style.height=t+(h-R)+"px",S.scrollTop=R-P+S.offsetTop}u.style.margin="10px 0",u.style.minHeight=w+"px",u.style.maxHeight=i+"px",a?.(),requestAnimationFrame(()=>x.current=!0)}},[g,c.trigger,c.valueNode,u,f,S,y,C,c.dir,a]);(0,b.useLayoutEffect)(()=>I(),[I]);let[P,E]=n.useState();(0,b.useLayoutEffect)(()=>{f&&E(window.getComputedStyle(f).zIndex)},[f]);let R=n.useCallback(e=>{e&&!0===w.current&&(I(),j?.(),w.current=!1)},[I,j]);return(0,t.jsx)(eo,{scope:l,contentWrapper:u,shouldExpandOnScrollRef:x,onScrollButtonChange:R,children:(0,t.jsx)("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:(0,t.jsx)(h.Primitive.div,{...s,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})},"SelectItemAlignedPosition")),en=n.forwardRef(P(function(e,n){let{__scopeSelect:o,align:r="start",collisionPadding:l=10,...a}=e,i=_(o);return(0,t.jsx)(m.Content,{...i,...a,ref:n,align:r,collisionPadding:l,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[eo,er]=H(q,{}),el="SelectViewport",ea=n.forwardRef(P(function(e,o){let{__scopeSelect:r,nonce:a,...s}=e,c=Q(el,r),d=er(el,r),u=(0,i.useComposedRefs)(o,c.onViewportChange),p=n.useRef(0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,t.jsx)(D.Slot,{scope:r,children:(0,t.jsx)(h.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:(0,l.composeEventHandlers)(s.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:o}=d;if(o?.current&&n){let e=Math.abs(p.current-t.scrollTop);if(e>0){let o=window.innerHeight-20,r=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(r<o){let l=r+e,a=Math.min(o,l),i=l-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=i>0?i:0,n.style.justifyContent="flex-end")}}}p.current=t.scrollTop})})})]})},"SelectViewport")),[ei,es]=H("SelectGroup"),ec=n.forwardRef(P(function(e,n){let{__scopeSelect:o,...r}=e,l=(0,f.useId)();return(0,t.jsx)(ei,{scope:o,id:l,children:(0,t.jsx)(h.Primitive.div,{role:"group","aria-labelledby":l,...r,ref:n})})},"SelectGroup")),ed=n.forwardRef(P(function(e,n){let{__scopeSelect:o,...r}=e,l=es("SelectLabel",o);return(0,t.jsx)(h.Primitive.div,{id:l.id,...r,ref:n})},"SelectLabel")),eu="SelectItem",[ep,ef]=H(eu),em=n.forwardRef(P(function(e,o){let{__scopeSelect:r,value:a,disabled:s=!1,textValue:c,...d}=e,u=z(eu,r),p=Q(eu,r),m=u.value===a,[v,g]=n.useState(c??""),[x,S]=n.useState(!1),b=(0,w.useCallbackRef)(e=>p.itemRefCallback?.(e,a,s)),y=(0,i.useComposedRefs)(o,b),C=(0,f.useId)(),j=n.useRef("touch"),I=P(()=>{s||(u.onValueChange(a),u.onOpenChange(!1))},"handleSelect");return(0,t.jsx)(ep,{scope:r,value:a,disabled:s,textId:C,isSelected:m,onItemTextChange:n.useCallback(e=>{g(t=>t||(e?.textContent??"").trim())},[]),children:(0,t.jsx)(D.ItemSlot,{scope:r,value:a,disabled:s,textValue:v,children:(0,t.jsx)(h.Primitive.div,{role:"option","aria-labelledby":C,"data-highlighted":x?"":void 0,"aria-selected":m&&x,"data-state":m?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...d,ref:y,onFocus:(0,l.composeEventHandlers)(d.onFocus,()=>S(!0)),onBlur:(0,l.composeEventHandlers)(d.onBlur,()=>S(!1)),onClick:(0,l.composeEventHandlers)(d.onClick,()=>{"mouse"!==j.current&&I()}),onPointerUp:(0,l.composeEventHandlers)(d.onPointerUp,()=>{"mouse"===j.current&&I()}),onPointerDown:(0,l.composeEventHandlers)(d.onPointerDown,e=>{j.current=e.pointerType}),onPointerMove:(0,l.composeEventHandlers)(d.onPointerMove,e=>{j.current=e.pointerType,s?p.onItemLeave?.():"mouse"===j.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,l.composeEventHandlers)(d.onPointerLeave,e=>{e.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:(0,l.composeEventHandlers)(d.onKeyDown,e=>{s||e.target!==e.currentTarget||(p.searchRef?.current===""||" "!==e.key)&&(R.includes(e.key)&&I()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),ev="SelectItemText",eg=n.forwardRef(P(function(e,r){let{__scopeSelect:l,className:a,style:s,...c}=e,d=z(ev,l),u=Q(ev,l),p=ef(ev,l),f=A(ev,l),[m,v]=n.useState(null),g=(0,w.useCallbackRef)(e=>u.itemTextRefCallback?.(e,p.value,p.disabled)),x=(0,i.useComposedRefs)(r,v,p.onItemTextChange,g),S=m?.textContent,y=n.useMemo(()=>(0,t.jsx)("option",{value:p.value,disabled:p.disabled,children:S},p.value),[p.disabled,p.value,S]),{onNativeOptionAdd:C,onNativeOptionRemove:j}=f;return(0,b.useLayoutEffect)(()=>(C(y),()=>j(y)),[C,j,y]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Primitive.span,{id:p.textId,...c,ref:x}),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!eE(d.value)?o.createPortal(c.children,d.valueNode):null]})},"SelectItemText")),eh=n.forwardRef(P(function(e,n){let{__scopeSelect:o,...r}=e;return ef("SelectItemIndicator",o).isSelected?(0,t.jsx)(h.Primitive.span,{"aria-hidden":!0,...r,ref:n}):null},"SelectItemIndicator")),ex="SelectScrollUpButton",ew=n.forwardRef(P(function(e,o){let r=Q(ex,e.__scopeSelect),l=er(ex,e.__scopeSelect),[a,s]=n.useState(!1),c=(0,i.useComposedRefs)(o,l.onScrollButtonChange);return(0,b.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){s(t.scrollTop>0)};P(e,"handleScroll");let t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,t.jsx)(ey,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null},"SelectScrollUpButton")),eS="SelectScrollDownButton",eb=n.forwardRef(P(function(e,o){let r=Q(eS,e.__scopeSelect),l=er(eS,e.__scopeSelect),[a,s]=n.useState(!1),c=(0,i.useComposedRefs)(o,l.onScrollButtonChange);return(0,b.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)};P(e,"handleScroll");let t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,t.jsx)(ey,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null},"SelectScrollDownButton")),ey=n.forwardRef(P(function(e,o){let{__scopeSelect:r,onAutoScroll:a,...i}=e,s=Q("SelectScrollButton",r),c=n.useRef(null),d=k(r),u=n.useCallback(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]);return n.useEffect(()=>()=>u(),[u]),(0,b.useLayoutEffect)(()=>{let e=d().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[d]),(0,t.jsx)(h.Primitive.div,{"aria-hidden":!0,...i,ref:o,style:{flexShrink:0,...i.style},onPointerDown:(0,l.composeEventHandlers)(i.onPointerDown,()=>{null===c.current&&(c.current=window.setInterval(a,50))}),onPointerMove:(0,l.composeEventHandlers)(i.onPointerMove,()=>{s.onItemLeave?.(),null===c.current&&(c.current=window.setInterval(a,50))}),onPointerLeave:(0,l.composeEventHandlers)(i.onPointerLeave,()=>{u()})})},"SelectScrollButtonImpl")),eC=n.forwardRef(P(function(e,n){let{__scopeSelect:o,...r}=e;return(0,t.jsx)(h.Primitive.div,{"aria-hidden":!0,...r,ref:n})},"SelectSeparator")),ej=n.forwardRef(P(function(e,n){let{__scopeSelect:o,...r}=e,l=_(o);return"popper"===Q("SelectArrow",o).position?(0,t.jsx)(m.Arrow,{...l,...r,ref:n}):null},"SelectArrow")),eI=n.forwardRef(P(function({__scopeSelect:e,...o},r){let l,a=z("SelectBubbleInput",e),{value:s,onValueChange:c,required:d,disabled:u,name:p,autoComplete:f,form:m}=a,{nativeOptions:v,nativeSelectKey:g}=a,x=n.useRef(null),w=(0,i.useComposedRefs)(r,x),S=s??"",b=(l=n.useRef({value:S,previous:S}),n.useMemo(()=>(l.current.value!==S&&(l.current.previous=l.current.value,l.current.value=S),l.current.previous),[S])),C=Array.from(v).some(e=>(e.props.value??"")==="");return n.useEffect(()=>{let e=x.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(b!==S&&t){let n=new Event("change",{bubbles:!0});t.call(e,S),e.dispatchEvent(n)}},[b,S]),(0,t.jsxs)(h.Primitive.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:p,autoComplete:f,disabled:u,form:m,onChange:e=>c(e.target.value),...o,style:{...y.VISUALLY_HIDDEN_STYLES,...o.style},ref:w,defaultValue:S,children:[eE(s)&&!C?(0,t.jsx)("option",{value:""}):null,Array.from(v)]},g)},"SelectBubbleInput"));function eP(e){return"function"==typeof e}function eE(e){return""===e||void 0===e}function eR(e){let t=(0,w.useCallbackRef)(e),o=n.useRef(""),r=n.useRef(0),l=n.useCallback(e=>{t(o.current+e)},[t]),a=n.useCallback(()=>{o.current="",window.clearTimeout(r.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(r.current),[]),[o,l,a]}function eT(e,t,n){let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,r=n?e.indexOf(n):-1,l=eD(e,Math.max(r,0));1===o.length&&(l=l.filter(e=>e!==n));let a=l.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function eD(e,t){return e.map((n,o)=>e[(t+o)%e.length])}P(eP,"isFunction"),P(eE,"shouldShowPlaceholder"),P(eR,"useTypeaheadSearch"),P(eT,"findNextItem"),P(eD,"wrapArray"),e.s(["Arrow",0,ej,"Content",0,X,"Group",0,ec,"Icon",0,K,"Item",0,em,"ItemIndicator",0,eh,"ItemText",0,eg,"Label",0,ed,"Portal",0,Y,"Root",0,F,"ScrollDownButton",0,eb,"ScrollUpButton",0,ew,"Select",0,F,"SelectArrow",0,ej,"SelectContent",0,X,"SelectGroup",0,ec,"SelectIcon",0,K,"SelectItem",0,em,"SelectItemIndicator",0,eh,"SelectItemText",0,eg,"SelectLabel",0,ed,"SelectPortal",0,Y,"SelectScrollDownButton",0,eb,"SelectScrollUpButton",0,ew,"SelectSeparator",0,eC,"SelectTrigger",0,O,"SelectValue",0,U,"SelectViewport",0,ea,"Separator",0,eC,"Trigger",0,O,"Value",0,U,"Viewport",0,ea,"createSelectScope",0,M,"unstable_BubbleInput",0,eI,"unstable_Provider",0,V,"unstable_SelectBubbleInput",0,eI,"unstable_SelectProvider",0,V],129402);var ek=e.i(129402),ek=ek,eL=e.i(975157),eH=e.i(26495),eH=eH,eM=e.i(593698),e_=e.i(144716),e_=e_;function eB({className:e,...n}){return(0,t.jsx)(ek.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:(0,eL.cn)("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...n,children:(0,t.jsx)(e_.default,{})})}function ez({className:e,...n}){return(0,t.jsx)(ek.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:(0,eL.cn)("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...n,children:(0,t.jsx)(eH.default,{})})}e.s(["Select",0,function({...e}){return(0,t.jsx)(ek.Root,{"data-slot":"select",...e})},"SelectContent",0,function({className:e,children:n,position:o="item-aligned",align:r="center",...l}){return(0,t.jsx)(ek.Portal,{children:(0,t.jsxs)(ek.Content,{"data-slot":"select-content","data-align-trigger":"item-aligned"===o,className:(0,eL.cn)("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,align:r,...l,children:[(0,t.jsx)(eB,{}),(0,t.jsx)(ek.Viewport,{"data-position":o,className:(0,eL.cn)("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)","popper"===o&&""),children:n}),(0,t.jsx)(ez,{})]})})},"SelectItem",0,function({className:e,children:n,...o}){return(0,t.jsxs)(ek.Item,{"data-slot":"select-item",className:(0,eL.cn)("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...o,children:[(0,t.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:(0,t.jsx)(ek.ItemIndicator,{children:(0,t.jsx)(eM.CheckIcon,{className:"pointer-events-none"})})}),(0,t.jsx)(ek.ItemText,{children:n})]})},"SelectTrigger",0,function({className:e,size:n="default",children:o,...r}){return(0,t.jsxs)(ek.Trigger,{"data-slot":"select-trigger","data-size":n,className:(0,eL.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[o,(0,t.jsx)(ek.Icon,{asChild:!0,children:(0,t.jsx)(eH.default,{className:"pointer-events-none size-4 text-muted-foreground"})})]})},"SelectValue",0,function({...e}){return(0,t.jsx)(ek.Value,{"data-slot":"select-value",...e})}],967489)},776639,e=>{"use strict";var t=e.i(843476),n=e.i(560964),o=e.i(964053),r=e.i(519455),l=e.i(975157);function a({...e}){return(0,t.jsx)(o.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function i({className:e,...n}){return(0,t.jsx)(o.Dialog.Overlay,{className:(0,l.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...n})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(o.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:s,showCloseButton:c=!0,...d}){return(0,t.jsxs)(a,{children:[(0,t.jsx)(i,{}),(0,t.jsxs)(o.Dialog.Content,{className:(0,l.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...d,children:[s,c&&(0,t.jsx)(o.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(r.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(n.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...n}){return(0,t.jsx)(o.Dialog.Description,{className:(0,l.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...n})},"DialogFooter",0,function({className:e,showCloseButton:n=!1,children:a,...i}){return(0,t.jsxs)("div",{className:(0,l.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...i,children:[a,n&&(0,t.jsx)(o.Dialog.Close,{asChild:!0,children:(0,t.jsx)(r.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{className:(0,l.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...n})},"DialogTitle",0,function({className:e,...n}){return(0,t.jsx)(o.Dialog.Title,{className:(0,l.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...n})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(o.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])}]);
@@ -1,23 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,630299,e=>{"use strict";let t=(0,e.i(456420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let n=(0,a.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,r.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...a})},"EmptyDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,r.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})},"EmptyHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,r.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...s}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,r.cn)(n({variant:a,className:e})),...s})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,r.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),n=e.i(820783),s=e.i(326999),i=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[s.createDialogScope]),u=(0,s.createDialogScope)(),m=o(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(s.Root,{...n,...r,modal:!0})},"AlertDialog"),h=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Trigger,{...i,...n,ref:a})},"AlertDialogTrigger")),p=o(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(s.Portal,{...n,...r})},"AlertDialogPortal"),g=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Overlay,{...i,...n,ref:a})},"AlertDialogOverlay")),[x,f]=d("AlertDialogContent"),j=a.forwardRef(o(function(e,r){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),m=a.useRef(null),h=(0,n.useComposedRefs)(r,m),p=a.useRef(null);return(0,t.jsx)(x,{scope:l,cancelRef:p,children:(0,t.jsx)(s.Content,{role:"alertdialog",...c,...d,ref:h,onOpenAutoFocus:(0,i.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Title,{...i,...n,ref:a})},"AlertDialogTitle")),y=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Description,{...i,...n,ref:a})},"AlertDialogDescription")),A=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,i=u(r);return(0,t.jsx)(s.Close,{...i,...n,ref:a})},"AlertDialogAction")),b=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,{cancelRef:l}=f("AlertDialogCancel",r),o=u(r),d=(0,n.useComposedRefs)(a,l);return(0,t.jsx)(s.Close,{...o,...i,ref:d})},"AlertDialogCancel"));e.s(["Action",0,A,"AlertDialog",0,m,"AlertDialogAction",0,A,"AlertDialogCancel",0,b,"AlertDialogContent",0,j,"AlertDialogDescription",0,y,"AlertDialogOverlay",0,g,"AlertDialogPortal",0,p,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,h,"Cancel",0,b,"Content",0,j,"Description",0,y,"Overlay",0,g,"Portal",0,p,"Root",0,m,"Title",0,v,"Trigger",0,h,"createAlertDialogScope",0,c],691162);var N=e.i(691162),N=N,C=e.i(975157),k=e.i(519455);function D({...e}){return(0,t.jsx)(N.Root,{"data-slot":"alert-dialog",...e})}function I({...e}){return(0,t.jsx)(N.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function E({...e}){return(0,t.jsx)(N.Portal,{"data-slot":"alert-dialog-portal",...e})}function w({className:e,...a}){return(0,t.jsx)(N.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,C.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function S({className:e,size:a="default",...r}){return(0,t.jsxs)(E,{children:[(0,t.jsx)(w,{}),(0,t.jsx)(N.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,C.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})]})}function R({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,C.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function M({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,C.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function T({className:e,...a}){return(0,t.jsx)(N.Title,{"data-slot":"alert-dialog-title",className:(0,C.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function O({className:e,...a}){return(0,t.jsx)(N.Description,{"data-slot":"alert-dialog-description",className:(0,C.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function _({className:e,variant:a="default",size:r="default",...n}){return(0,t.jsx)(k.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(N.Action,{"data-slot":"alert-dialog-action",className:(0,C.cn)(e),...n})})}function L({className:e,variant:a="outline",size:r="default",...n}){return(0,t.jsx)(k.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(N.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,C.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:n,onOpenChange:s,open:i,title:l,trigger:o}){return(0,t.jsxs)(D,{onOpenChange:s,open:i,children:[o&&(0,t.jsx)(I,{asChild:!0,children:o}),(0,t.jsxs)(S,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(T,{children:l}),(0,t.jsx)(O,{children:r})]}),(0,t.jsxs)(M,{children:[(0,t.jsx)(L,{children:a}),(0,t.jsx)(_,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},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),r=e.i(456420);let n=(0,r.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,r.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,r.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,r.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,r.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 u=e.i(93384);let m=(0,r.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),h=(0,r.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 g=(0,r.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),f=e.i(986206),j=e.i(328623),v=e.i(604139);let y=(0,r.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 A=e.i(747925);let b={apple:a.Apple,"app-window":n,archive:s.Archive,beaker:i,box:l,bug:o,code:d.Code2,gauge:c,hammer:u.Hammer,layers:m,package:h,play:p.Play,rocket:g,shield:x.ShieldCheck,smartphone:f.Smartphone,sparkles:j.Sparkles,terminal:v.Terminal,"test-tube":y,wrench:A.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)},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},489002,e=>{"use strict";let t=(0,e.i(456420).default)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);e.s(["CircleStop",0,t],489002)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},183691,e=>{"use strict";let t=`
2
- id name description script targetKind targetAgentId targetRepositoryId
3
- restartPolicy restartLimit quickActionEnabled quickActionIconKey quickActionButtonVariant
4
- notificationsEnabled
5
- archivedAt createdAt updatedAt
6
- targetAgent { id name hostname connectionStatus capabilities }
7
- targetRepository { id name displayOrigin }
8
- `,a=`
9
- id displayNumber commandId origin status snapshotName snapshotDescription
10
- snapshotScript snapshotTargetKind snapshotRestartPolicy snapshotRestartLimit
11
- snapshotNotificationsEnabled snapshot
12
- agentId worktreeId agentName agentHostname worktreePath worktreeBranch
13
- restartCount stopRequested nextRestartAt predecessorRunId error exitCode signal
14
- queuedAt startedAt finishedAt archivedAt createdAt updatedAt
15
- command { id name }
16
- agent { id name hostname connectionStatus capabilities }
17
- worktree { id folder branch highlightColor }
18
- attempts { id attempt status exitCode signal error startedAt finishedAt }
19
- `;e.s(["COMMAND_DEFINITION_FIELDS",0,t,"COMMAND_RUN_FIELDS",0,a,"activeCommandRun",0,e=>["QUEUED","RUNNING","RESTARTING","CANCELLING"].includes(e),"commandOriginKey",0,e=>{switch(e){case"QUICK_ACTION":return"originQuickAction";case"WORKFLOW":return"originWorkflow";case"RERUN":return"originRerun";default:return"originManual"}},"commandRestartKey",0,e=>{switch(e){case"ON_FAILURE":return"onFailure";case"ALWAYS":return"always";default:return"never"}},"commandStatusKey",0,e=>{switch(e){case"QUEUED":return"statusQueued";case"RUNNING":return"statusRunning";case"RESTARTING":return"statusRestarting";case"CANCELLING":return"statusCancelling";case"SUCCEEDED":return"statusSucceeded";case"FAILED":return"statusFailed";case"CANCELLED":return"statusCancelled";case"TIMED_OUT":return"statusTimedOut";default:return"status"}},"commandTargetKey",0,e=>{switch(e){case"ANY_AGENT_HOME":return"anyAgentHome";case"SPECIFIC_AGENT_HOME":return"specificAgentHome";case"REPOSITORY_WORKTREE":return"repositoryWorktree";default:return"anyWorktree"}}])},653269,e=>{"use strict";var t=e.i(843476),a=e.i(948148),r=e.i(271645),n=e.i(687862),s=e.i(929592),i=e.i(519455),l=e.i(515288),o=e.i(987968),d=e.i(520133),c=e.i(637611),u=e.i(183691);e.s(["CommandQuickActions",0,function({agentId:e,worktreeId:m,agentCapabilities:h,title:p,description:g}){let x=(0,a.useTranslations)("commands"),[f,j]=(0,r.useState)([]),[v,y]=(0,r.useState)(null),[A,b]=(0,r.useState)({}),[N,C]=(0,r.useState)(null),k=h.includes("command.run");(0,r.useEffect)(()=>{let t=e?`query AgentCommandQuickActions($id: ID!) { eligibleCommandsForAgent(agentId: $id) { ${u.COMMAND_DEFINITION_FIELDS} } }`:`query WorktreeCommandQuickActions($id: ID!) { eligibleCommandsForWorktree(worktreeId: $id) { ${u.COMMAND_DEFINITION_FIELDS} } }`;Promise.resolve((0,c.controlPlaneRequest)(t,{id:e??m})).then(e=>{e&&j((e.eligibleCommandsForAgent??e.eligibleCommandsForWorktree??[]).filter(e=>e.quickActionEnabled))}).catch(e=>C(e instanceof Error?e.message:String(e)))},[e,m]);let D=async t=>{y(t.id);try{let a=await (0,c.controlPlaneRequest)("mutation RunCommandQuickAction($input: StartCommandRunInput!) { startCommandRun(input: $input) { id } }",{input:{commandId:t.id,origin:"QUICK_ACTION",...e?{agentId:e}:{worktreeId:m}}});b(e=>({...e,[t.id]:a.startCommandRun.id})),C(null)}catch(e){C(e instanceof Error?e.message:String(e))}finally{y(null)}};if(!f.length&&!N)return null;let I=(0,t.jsxs)("div",{className:"w-full space-y-2",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[f.map(e=>{let a=A[e.id];return(0,t.jsxs)("div",{className:"flex",children:[a&&(0,t.jsx)(i.Button,{asChild:!0,className:"rounded-r-none",size:"sm",variant:"outline",children:(0,t.jsxs)(d.Link,{href:`/commands/runs/${a}`,children:[(0,t.jsx)(o.Spinner,{}),x("view")]})}),(0,t.jsxs)(i.Button,{className:a?"-ml-px rounded-l-none":void 0,disabled:!k||null!==v,onClick:t=>{t.preventDefault(),t.stopPropagation(),D(e)},size:"sm",title:k?e.description||e.name:x("upgradeAgentTitle"),variant:["default","outline","secondary","destructive"].includes(e.quickActionButtonVariant)?e.quickActionButtonVariant:"default",children:[v===e.id?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(n.ConfigurationIcon,{iconKey:e.quickActionIconKey})," ",e.name]})]},e.id)}),!k&&f.length>0&&(0,t.jsx)("span",{className:"self-center text-xs text-muted-foreground",children:x("upgradeAgent")})]}),N&&(0,t.jsx)(s.Alert,{variant:"destructive",children:(0,t.jsx)(s.AlertDescription,{children:N})})]});return p?(0,t.jsxs)(l.Card,{children:[(0,t.jsxs)(l.CardHeader,{children:[(0,t.jsx)(l.CardTitle,{children:p}),g&&(0,t.jsx)(l.CardDescription,{children:g})]}),(0,t.jsx)(l.CardContent,{children:I})]}):I}])},990142,e=>{"use strict";e.s(["CCUSAGE_REPORT_JOB_KIND",0,"ccusage.report","MAX_AGENT_HEARTBEAT_INTERVAL_SECONDS",0,300,"MAX_AGENT_JOB_RECONCILIATION_INTERVAL_SECONDS",0,3600,"MIN_AGENT_HEARTBEAT_INTERVAL_SECONDS",0,5,"MIN_AGENT_JOB_RECONCILIATION_INTERVAL_SECONDS",0,5])},675926,e=>{"use strict";var t=e.i(843476),a=e.i(948148),r=e.i(487486),n=e.i(975157);e.s(["StatusBadge",0,function({status:e}){let s=(0,a.useTranslations)("status"),i="ONLINE"===e||"RUNNING"===e||"SUCCEEDED"===e,l="FAILED"===e||"TIMED_OUT"===e;return(0,t.jsx)(r.Badge,{className:(0,n.cn)(i&&"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",l&&"border-destructive/30 bg-destructive/10 text-destructive"),variant:i||l?"outline":"secondary",children:s(e.toLowerCase())})}])},362806,e=>{"use strict";var t=e.i(843476);function a(e,t){let a=["B","KiB","MiB","GiB","TiB"],r=Math.min(Math.floor(Math.log(Math.max(e,1))/Math.log(1024)),a.length-1);return`${new Intl.NumberFormat(t,{maximumFractionDigits:1}).format(e/1024**r)} ${a[r]}`}e.s(["ResourceUsage",0,function({label:e,total:r,free:n,locale:s,unavailable:i,usedLabel:l,freeLabel:o,compact:d=!1}){if(null==r||null==n||r<=0)return(0,t.jsxs)("div",{className:"rounded-lg border p-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:i})]});let c=Math.max(0,Math.min(n,r)),u=r-c,m=u/r*100;return(0,t.jsxs)("div",{className:`rounded-lg border ${d?"p-3":"p-4"}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{className:d?"text-sm font-medium":"font-medium",children:e}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[Math.round(m),"%"]})]}),(0,t.jsx)("div",{className:"mt-2 h-2 overflow-hidden rounded-full bg-muted",children:(0,t.jsx)("div",{"aria-label":`${e}: ${Math.round(m)}%`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":Math.round(m),className:"h-full rounded-full bg-primary transition-[width]",role:"progressbar",style:{width:`${m}%`}})}),(0,t.jsxs)("dl",{className:"mt-2 grid grid-cols-2 gap-3 text-xs",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:l}),(0,t.jsx)("dd",{children:a(u,s)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:o}),(0,t.jsx)("dd",{children:a(c,s)})]})]})]})}])},334490,e=>{"use strict";var t=e.i(843476),a=e.i(21357),r=e.i(948148),n=e.i(271645),s=e.i(816484),i=e.i(929592),l=e.i(487486),o=e.i(519455),d=e.i(515288),c=e.i(520133),u=e.i(637611),m=e.i(183691);e.s(["CommandResourcePanel",0,function({agentId:e,worktreeId:h,agentCapabilities:p}){let g=(0,r.useTranslations)("commands"),x=(0,c.useRouter)(),[f,j]=(0,n.useState)([]),[v,y]=(0,n.useState)([]),[A,b]=(0,n.useState)(null),[N,C]=(0,n.useState)(null),k=p.includes("command.run");(0,n.useEffect)(()=>{let t=e?`eligibleCommandsForAgent(agentId: $id) { ${m.COMMAND_DEFINITION_FIELDS} }`:`eligibleCommandsForWorktree(worktreeId: $id) { ${m.COMMAND_DEFINITION_FIELDS} }`;Promise.resolve((0,u.controlPlaneRequest)(`query CommandResource($id: ID!) { ${t} commandRuns(${e?"agentId":"worktreeId"}: $id, first: 8) { nodes { ${m.COMMAND_RUN_FIELDS} } } }`,{id:e??h})).then(e=>{e&&(j(e.eligibleCommandsForAgent??e.eligibleCommandsForWorktree??[]),y(e.commandRuns.nodes))}).catch(e=>C(e instanceof Error?e.message:String(e)))},[e,h]);let D=async t=>{b(t.id);try{let a=await (0,u.controlPlaneRequest)("mutation StartResourceCommand($input: StartCommandRunInput!) { startCommandRun(input: $input) { id } }",{input:{commandId:t.id,origin:"MANUAL",...e?{agentId:e}:{worktreeId:h}}});x.push(`/commands/runs/${a.startCommandRun.id}`)}catch(e){C(e instanceof Error?e.message:String(e))}finally{b(null)}};return(0,t.jsxs)(d.Card,{children:[(0,t.jsx)(d.CardHeader,{children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(d.CardTitle,{children:g("title")}),(0,t.jsx)(d.CardDescription,{children:g(e?"resourceDescriptionAgent":"resourceDescriptionWorktree")})]}),(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(c.Link,{href:"/commands",children:g("manage")})})]})}),(0,t.jsxs)(d.CardContent,{className:"space-y-5",children:[N&&(0,t.jsx)(i.Alert,{variant:"destructive",children:(0,t.jsx)(i.AlertDescription,{children:N})}),!k&&(0,t.jsx)(i.Alert,{children:(0,t.jsx)(i.AlertDescription,{children:g("upgradeAgentDescription")})}),(0,t.jsxs)("div",{className:"grid gap-2 md:grid-cols-2",children:[f.map(e=>(0,t.jsxs)(o.Button,{className:"h-auto justify-start py-3 text-left",disabled:!k||null!==A,onClick:()=>void D(e),variant:"outline",children:[(0,t.jsx)(a.Play,{}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block truncate font-medium",children:e.name}),(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:e.description||g((0,m.commandTargetKey)(e.targetKind))})]})]},e.id)),0===f.length&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:g("noEligibleCommands")})]}),v.length>0&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h3",{className:"text-sm font-medium",children:g("recentRuns")}),v.map(e=>(0,t.jsxs)(c.Link,{className:"flex items-center gap-3 rounded-md border px-3 py-2 text-sm hover:bg-muted/40",href:`/commands/runs/${e.id}`,children:[(0,t.jsxs)("span",{className:"font-mono text-xs",children:["#",e.displayNumber]}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.snapshotName}),(0,t.jsx)(l.Badge,{variant:"outline",children:g((0,m.commandStatusKey)(e.status))}),(0,t.jsx)(s.DateTime,{className:"hidden text-xs text-muted-foreground sm:block",value:e.createdAt})]},e.id))]})]})]})}])},997695,e=>{"use strict";var t=e.i(843476),a=e.i(489002),r=e.i(948148),n=e.i(271645),s=e.i(929592),i=e.i(519455),l=e.i(515288),o=e.i(987968),d=e.i(520133),c=e.i(637611),u=e.i(975157),m=e.i(778434),h=e.i(675926);e.s(["JobMonitor",0,function({jobId:e,compact:p=!1}){let g=(0,r.useTranslations)("jobs"),[x,f]=(0,n.useState)(null),[j,v]=(0,n.useState)([]),[y,A]=(0,n.useState)(!0),[b,N]=(0,n.useState)(null),C=(0,n.useRef)(null),k=(0,n.useRef)(!0),D=(0,n.useCallback)(async()=>{try{let t=await (0,c.controlPlaneRequest)(`query Job($id: ID!) { agentJob(id: $id) { ${m.JOB_FIELDS} } agentJobLogs(jobId: $id) { ${m.JOB_LOG_FIELDS} } }`,{id:e});f(t.agentJob),v(t.agentJobLogs),N(null)}catch(e){N(e instanceof Error?e.message:String(e))}finally{A(!1)}},[e]);(0,n.useEffect)(()=>{let t=window.setTimeout(()=>void D(),0),a=(0,c.controlPlaneSubscriptions)(),r=a.subscribe({query:`subscription JobChanged($jobId: ID!) { agentJobChanged(jobId: $jobId) { ${m.JOB_FIELDS} } }`,variables:{jobId:e}},{next:e=>e.data?.agentJobChanged&&f(e.data.agentJobChanged),error:()=>void 0,complete:()=>void 0}),n=a.subscribe({query:`subscription JobLog($jobId: ID!) { agentJobLogAdded(jobId: $jobId) { ${m.JOB_LOG_FIELDS} } }`,variables:{jobId:e}},{next:e=>{let t=e.data?.agentJobLogAdded;t&&v(e=>e.some(e=>e.sequence===t.sequence)?e:[...e,t].sort((e,t)=>e.sequence-t.sequence))},error:()=>void 0,complete:()=>void 0});return()=>{r(),n(),window.clearTimeout(t)}},[e,D]),(0,n.useEffect)(()=>{k.current&&C.current?.scrollTo({top:C.current.scrollHeight})},[j]);let I=async()=>{try{let t=await (0,c.controlPlaneRequest)(`mutation Cancel($jobId: ID!) { cancelAgentJob(jobId: $jobId) { ${m.JOB_FIELDS} } }`,{jobId:e});f(t.cancelAgentJob),N(null)}catch(e){N(e instanceof Error?e.message:String(e))}};return b?(0,t.jsx)(s.Alert,{variant:"destructive",children:(0,t.jsx)(s.AlertDescription,{children:b})}):y?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(o.Spinner,{}),g("loading")]}):x?(0,t.jsx)(l.Card,{className:(0,u.cn)(p?"[--card-spacing:--spacing(4)]":void 0),children:(0,t.jsxs)(l.CardContent,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{className:"font-medium",children:x.kind}),(0,t.jsx)(h.StatusBadge,{status:x.status})]}),(0,t.jsx)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:x.id})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[p&&(0,t.jsx)(i.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(d.Link,{href:`/jobs/${x.id}`,children:g("open")})}),("QUEUED"===x.status||"RUNNING"===x.status)&&(0,t.jsxs)(i.Button,{onClick:()=>void I(),size:"sm",variant:"destructive",children:[(0,t.jsx)(a.CircleStop,{}),g("cancel")]})]})]}),x.error&&(0,t.jsx)(s.Alert,{className:"mt-3",variant:"destructive",children:(0,t.jsx)(s.AlertDescription,{children:x.error})}),(0,t.jsx)("div",{ref:C,className:(0,u.cn)("mt-4 overflow-auto rounded-lg border bg-zinc-950 p-3 font-mono text-xs leading-5 text-zinc-100",p?"h-80":"h-[32rem]"),onScroll:e=>{let t=e.currentTarget;k.current=t.scrollHeight-t.scrollTop-t.clientHeight<24},children:0===j.length?(0,t.jsx)("span",{className:"text-zinc-500",children:g("waiting")}):j.map(e=>(0,t.jsxs)("div",{className:(0,u.cn)("whitespace-pre-wrap break-all","STDERR"===e.stream&&"text-amber-300","SYSTEM"===e.stream&&"text-sky-300"),children:[(0,t.jsx)("span",{className:"mr-2 select-none text-zinc-600",children:String(e.sequence).padStart(4,"0")}),e.message]},e.id))})]})}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:g("notFound")})}])},874801,e=>{"use strict";var t=e.i(843476),a=e.i(867927),r=e.i(456420);let n=(0,r.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),s=(0,r.default)("folder-check",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]]);var i=e.i(902434),i=i,l=e.i(948148),o=e.i(271645),d=e.i(929592),c=e.i(519455),u=e.i(257428),m=e.i(110204),h=e.i(987968),p=e.i(462777),g=e.i(637611);e.s(["AgentDirectoryBrowser",0,function({agentId:e,browseLabel:r,disabled:x=!1,initialPath:f=null,onPathChange:j,onSelect:v,selectIcon:y,selectLabel:A}){var b;let N=(0,l.useTranslations)("codebases"),[C,k]=(0,o.useState)(null),[D,I]=(0,o.useState)(!1),[E,w]=(0,o.useState)(!1),[S,R]=(0,o.useState)(null),M=(0,o.useRef)(0),T=(0,o.useCallback)(async t=>{let a=++M.current;w(!0);try{let r=await (0,g.controlPlaneRequest)(`mutation BrowseAgentDirectory($input: BrowseAgentDirectoryInput!) {
20
- browseAgentDirectory(input: $input) {
21
- path parentPath homePath truncated entries { name path hidden }
22
- }
23
- }`,{input:{agentId:e,path:t,requestId:(0,p.createClientId)()}});if(a!==M.current)return;k(r.browseAgentDirectory),j?.(r.browseAgentDirectory.path),R(null)}catch(e){if(a!==M.current)return;R(e instanceof Error?e.message:String(e))}finally{a===M.current&&w(!1)}},[e,j]);if((0,o.useEffect)(()=>{if(!f)return;let e=window.setTimeout(()=>void T(f),0);return()=>window.clearTimeout(e)},[T,f]),(0,o.useEffect)(()=>()=>{M.current+=1},[]),!C)return(0,t.jsxs)("div",{className:"space-y-3",children:[S&&(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:S})}),(0,t.jsxs)(c.Button,{disabled:E||x,onClick:()=>void T(null),type:"button",variant:"outline",children:[E?(0,t.jsx)(h.Spinner,{}):(0,t.jsx)(n,{})," ",r??N("browseHome")]})]});let O="/"===(b=C.path)?[{label:"/",path:"/"}]:[{label:"/",path:"/"},...b.split("/").filter(Boolean).map((e,t,a)=>({label:e,path:`/${a.slice(0,t+1).join("/")}`}))];return(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[S&&(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:S})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[(0,t.jsx)(c.Button,{"aria-label":N("home"),disabled:E||x,onClick:()=>void T(C.homePath),size:"icon-sm",type:"button",variant:"ghost",children:(0,t.jsx)(i.default,{})}),O.map((e,r)=>(0,t.jsxs)("span",{className:"flex items-center",children:[r>0&&(0,t.jsx)(a.ChevronRight,{className:"size-3 text-muted-foreground"}),(0,t.jsx)(c.Button,{disabled:E||x,onClick:()=>void T(e.path),size:"sm",type:"button",variant:"ghost",children:e.label})]},e.path))]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(u.Checkbox,{checked:D,id:`show-hidden-${e}`,onCheckedChange:e=>I(!!e)}),(0,t.jsx)(m.Label,{htmlFor:`show-hidden-${e}`,children:N("showHidden")})]}),(0,t.jsx)("div",{className:"max-h-64 overflow-y-auto rounded-md border",children:C.entries.filter(e=>D||!e.hidden).map(e=>(0,t.jsxs)(c.Button,{className:"h-auto w-full justify-start rounded-none border-b px-3 py-2 last:border-0",disabled:E||x,onClick:()=>void T(e.path),size:"sm",type:"button",variant:"ghost",children:[(0,t.jsx)(n,{className:"size-4"})," ",e.name]},e.path))}),C.truncated&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:N("truncated")}),v&&A&&(0,t.jsxs)(c.Button,{disabled:E||x,onClick:()=>void v(C.path),type:"button",children:[x?(0,t.jsx)(h.Spinner,{}):y??(0,t.jsx)(s,{})," ",A]})]})}],874801)}]);
@@ -1,55 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},784774,e=>{"use strict";var t=e.i(843476),n=e.i(975157);e.s(["Table",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,n.cn)("w-full caption-bottom text-sm",e),...s})})},"TableBody",0,function({className:e,...s}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,n.cn)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,n.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...s})},"TableFooter",0,function({className:e,...s}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,n.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...s})},"TableHead",0,function({className:e,...s}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...s})},"TableHeader",0,function({className:e,...s}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,n.cn)("[&_tr]:border-b",e),...s})},"TableRow",0,function({className:e,...s}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,n.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...s})}])},755838,(e,t,n)=>{"use strict";var s=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=s.useState,r=s.useEffect,l=s.useLayoutEffect,o=s.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=a({inst:{value:n,getSnapshot:t}}),i=s[0].inst,c=s[1];return l(function(){i.value=n,i.getSnapshot=t,d(i)&&c({inst:i})},[e,n,t]),r(function(){return d(i)&&c({inst:i}),e(function(){d(i)&&c({inst:i})})},[e]),o(n),n};n.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},802239,(e,t,n)=>{"use strict";t.exports=e.r(755838)},832297,e=>{"use strict";var t=e.i(187921);e.s(["CirclePlay",()=>t.default])},997778,e=>{"use strict";var t=e.i(843476),n=e.i(948148),s=e.i(271645),i=e.i(755146);e.s(["WorkflowChoiceMenu",0,function({button:e,choices:a,hasPlainTrigger:r=!1,onRun:l}){let o=(0,n.useTranslations)("workflows");return a.length?(0,t.jsxs)(i.DropdownMenu,{children:[(0,t.jsx)(i.DropdownMenuTrigger,{asChild:!0,children:e}),(0,t.jsxs)(i.DropdownMenuContent,{align:"start",className:"max-w-64",children:[r&&(0,t.jsx)(i.DropdownMenuItem,{onSelect:()=>l(null),children:o("fullRun")}),a.map(e=>(0,t.jsx)(i.DropdownMenuItem,{onSelect:()=>l(e.key),children:(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate",children:e.label}),e.description&&(0,t.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:e.description})]})},e.key))]})]}):(0,s.cloneElement)(e,{onClick:()=>l(null)})}])},880181,596930,505624,e=>{"use strict";function t(e){return encodeURIComponent(e.trim())}function n(e){var n;let s=(n=e.url,!n?.startsWith("/")||n.startsWith("//")?null:n);if(s)return{href:s,external:!1};let i=e.kind.trim().toUpperCase(),a=e.resourceId.trim();if(!a)return null;let r="string"==typeof e.metadata?.runKind?e.metadata.runKind.toUpperCase():null,l="BUILD"===i?`/builds/${t(a)}`:"CODEBASE"===i?`/codebases/${t(a)}`:"JIRA_TICKET"===i?`/jira/tickets/${t(a)}`:"WORKTREE"===i?`/worktrees/${t(a)}`:"AGENT_RUN"===i&&"PLAN"===r?`/plans/${t(a)}`:"AGENT_RUN"===i&&"SESSION"===r?`/sessions/${t(a)}`:"PULL_REQUEST"===i?function(e){let n=e.lastIndexOf("#");if(n<1)return null;let s=e.slice(0,n),i=s.indexOf("/");if(i<1||i===s.length-1)return null;let a=Number(e.slice(n+1));return!Number.isInteger(a)||a<1?null:`/pull-requests/${t(s.slice(0,i))}/${t(s.slice(i+1))}/${a}`}(a):"AGENT_JOB"===i?`/jobs/${t(a)}`:"COMMAND_RUN"===i?`/commands/runs/${t(a)}`:"WORKFLOW_RUN"===i?`/workflows/runs/${t(a)}`:"SKILL_SYNC"===i?`/skills/sync/${t(a)}`:"SKILL"===i?`/skills/${t(a)}`:"IOS_DEVICE"===i?`/devices/${t(a)}`:"SIGNING_PROFILE"===i?`/provisioning-profiles/${t(a)}`:"PUSH_NOTIFICATION_BATCH"===i?"/push-notifications":"BUILD_DATA_COLLECTION"===i?"/build-data":"AGENT"===i?`/agents/${t(a)}`:"CODEBASE_REPOSITORY"===i?`/codebases/repositories/${t(a)}`:null;if(l)return{href:l,external:!1};let o=function(e){if(!e)return null;try{let t=new URL(e);return new Set(["http:","https:"]).has(t.protocol)?t.href:null}catch{return null}}(e.url);return o?{href:o,external:!0}:null}function s(e){let t=e.kind.trim().toUpperCase();return"AGENT_JOB"===t||"COMMAND_RUN"===t?30:"GITHUB_WORKFLOW_RUN"===t?20:10}function i(e){return e.map((e,t)=>({destination:n(e),index:t,link:e,time:e.createdAt instanceof Date?e.createdAt.getTime():Date.parse(e.createdAt??"")||0})).filter(e=>null!==e.destination).sort((e,t)=>s(e.link)-s(t.link)||t.time-e.time||t.index-e.index)[0]?.destination??null}function a(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:{}}function r(e){return"string"!=typeof e&&"number"!=typeof e?null:String(e).trim()||null}function l(e,t,n){return e.kind.trim().toUpperCase()===t.trim().toUpperCase()&&e.resourceId.trim()===n.trim()}e.i(672510),e.s(["githubJobResourceId",0,function(e,t){let n=e.trim(),s=t.trim();if(!n||!s)throw Error("GitHub job repository and job ID are required");return`${n}:job:${s}`},"githubPipelineResourceId",0,function(e,t,n){let s=e.trim(),i=t?.trim(),a=n.trim();if(!s||!i&&!a)throw Error("GitHub pipeline repository and provider ID are required");return`${s}:${i?"run":"check"}:${i||a}`},"preferredWorkflowResourceDestination",0,i,"workflowResourceDestination",0,n],596930),e.s(["currentPageWorkflowNodeIds",0,function(e,t,n){let s=new Set,i=new Map(e.attempts.map(e=>[e.id,e.nodeId]));for(let i of e.attempts)i.resourceLinks.some(e=>l(e,t,n))&&s.add(i.nodeId);for(let a of e.resourceLinks){if(!l(a,t,n))continue;let r=a.attemptId?i.get(a.attemptId):e.trigger?.nodeId;r&&s.add(r)}return s},"workflowRunNodeDestinations",0,function(e){let t=new Map;for(let n of[...e.attempts].sort((t,n)=>Number(n.generation===e.generation)-Number(t.generation===e.generation)||n.generation-t.generation||n.attempt-t.attempt||Number(!!t.iterationKey)-Number(!!n.iterationKey))){if(t.has(n.nodeId))continue;let e=function(e){let t=e.kind?.trim().toUpperCase()??"",n=a(e.output),s=a(n.value),i={...a(s.sessionPatch),...a(n.sessionPatch)};if(t.startsWith("JIRA_")){let e=r(s.key)??r(a(s.ticket).key)??r(a(i.ticket).key);return e?{kind:"JIRA_TICKET",resourceId:e}:null}if(t.startsWith("RUN_")){let e=r(s.id),t=r(s.kind)?.toUpperCase();return e&&("PLAN"===t||"SESSION"===t)?{kind:"AGENT_RUN",resourceId:e,metadata:{runKind:t}}:null}if(t.startsWith("WORKTREE_")){let e=r(a(i.worktree).id);return e?{kind:"WORKTREE",resourceId:e}:null}if(t.startsWith("CODEBASE_")){let e=r(a(i.codebase).id)??r(s.id);return e?{kind:"CODEBASE",resourceId:e}:null}if(t.startsWith("BUILD_")){let e=r(a(i.build).id)??r(s.id);return e?{kind:"BUILD",resourceId:e}:null}return null}(n),s=i(e?[...n.resourceLinks,e]:n.resourceLinks);s&&t.set(n.nodeId,s)}let n=i(e.resourceLinks.filter(({attemptId:e})=>!e));return e.trigger?.nodeId&&n&&t.set(e.trigger.nodeId,n),t}],880181);var o=e.i(271645),d=e.i(520133);e.s(["useOpenWorkflowDestination",0,function(){let e=(0,d.useRouter)();return(0,o.useCallback)(t=>{if(t){if(t.external)return void window.open(t.href,"_blank","noopener,noreferrer");e.push(t.href)}},[e])}],505624)},586592,e=>{"use strict";var t=e.i(843476),n=e.i(832297),s=e.i(482022),i=e.i(948148),a=e.i(271645),r=e.i(929592),l=e.i(487486),o=e.i(519455),d=e.i(515288),c=e.i(906197),u=e.i(520133),m=e.i(637611),h=e.i(880181),p=e.i(997778),x=e.i(505624),f=e.i(349049),g=e.i(399668);function j(e){return"string"==typeof e&&e.length>0?e:null}function b({run:e,onAnswered:n}){let s=(0,i.useTranslations)("workflows"),l=(0,g.useWorkflowLabels)(),[d,c]=(0,a.useState)({}),[h,p]=(0,a.useState)(!1),[x,f]=(0,a.useState)(null),k=(0,a.useMemo)(()=>e.attempts.flatMap(e=>(e.questionBatches??[]).flatMap(t=>{let n=j(t.id);if(!n||"PENDING"!==t.status)return[];let s=(Array.isArray(t.questions)?t.questions:[]).flatMap(e=>(function(e){if(!e||"object"!=typeof e||Array.isArray(e))return null;let t=j(e.id);if(!t)return null;let n=Array.isArray(e.options)?e.options:[];return{id:t,header:j(e.header),prompt:j(e.prompt)??"",multiSelect:!!e.multiSelect,options:n.flatMap(e=>{if(!e||"object"!=typeof e)return[];let t=j(e.label);return t?[{id:j(e.id)??t,label:t,description:j(e.description)}]:[]})}})(e)??[]);return s.length?[{id:n,kind:e.kind,questions:s}]:[]})),[e]);if(0===k.length)return null;let w=(e,t)=>`${e}:${t}`,y=async(e,t)=>{p(!0);try{await (0,m.controlPlaneRequest)("mutation AnswerWorkflowQuestion($batchId: ID!, $answers: JSON!) { answerWorkflowQuestion(batchId: $batchId, answers: $answers) { id status } }",{batchId:e.id,answers:Object.fromEntries(e.questions.map(e=>[e.id,{answers:t[e.id]??[]}]))}),c(t=>{let n={...t};for(let t of e.questions)delete n[w(e.id,t.id)];return n}),f(null),await n()}catch(e){f(e instanceof Error?e.message:String(e))}finally{p(!1)}};return(0,t.jsxs)("div",{className:"space-y-2",children:[x&&(0,t.jsx)(r.Alert,{variant:"destructive",children:(0,t.jsx)(r.AlertDescription,{children:x})}),k.map(n=>{let i=1===n.questions.length&&!n.questions[0].multiSelect,a=n.questions.every(e=>(d[w(n.id,e.id)]??[]).length>0);return(0,t.jsxs)("div",{className:"space-y-3 rounded-xl border border-amber-500/50 bg-amber-500/5 p-3",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:s("questionFrom",{step:l.kind(n.kind)})}),n.questions.every(({options:e})=>e.length>0)?(0,t.jsxs)(t.Fragment,{children:[n.questions.map(e=>{let s=d[w(n.id,e.id)]??[];return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.header||e.prompt}),e.header&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.prompt}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.options.map((a,r)=>(0,t.jsx)(o.Button,{"aria-pressed":i?void 0:s.includes(a.label),disabled:h,onClick:()=>{i?y(n,{[e.id]:[a.label]}):c(t=>{let s=new Set(t[w(n.id,e.id)]??[]);return e.multiSelect?s.has(a.label)?s.delete(a.label):s.add(a.label):(s.clear(),s.add(a.label)),{...t,[w(n.id,e.id)]:[...s]}})},size:"sm",title:a.description??void 0,variant:s.includes(a.label)||i&&0===r?"default":"outline",children:a.label},a.id))})]},e.id)}),!i&&(0,t.jsx)(o.Button,{disabled:h||!a,onClick:()=>void y(n,Object.fromEntries(n.questions.map(e=>[e.id,d[w(n.id,e.id)]??[]]))),size:"sm",children:s("answer")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:n.questions[0].header||n.questions[0].prompt}),(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(u.Link,{href:`/workflows/runs/${e.id}`,children:s("answerOnRunPage")})})]})]},n.id)})]})}let k=`
2
- id displayNumber workflowId triggerKind triggerSubjectKey status phase generation
3
- sessionData sessionRevision blockedReason error queuedAt startedAt pausedAt finishedAt
4
- workflow { id name }
5
- trigger { nodeId }
6
- version { id workflowId version name description schemaVersion definition contentHash publishedAt }
7
- attempts {
8
- id nodeId kind generation iterationKey attempt status phase input output error startedAt finishedAt supersededAt
9
- resourceLinks { id attemptId kind resourceId label url metadata createdAt }
10
- questionBatches {
11
- id status
12
- questions { id header prompt multiSelect options { id label description } }
13
- }
14
- }
15
- resourceLinks { id attemptId kind resourceId label url metadata createdAt }
16
- `;e.s(["WorkflowResourcePanel",0,function({resourceKind:e,resourceId:j,sessionData:w}){let y=(0,i.useTranslations)("workflows"),v=(0,g.useWorkflowLabels)(),S=(0,x.useOpenWorkflowDestination)(),[C,N]=(0,a.useState)([]),[I,T]=(0,a.useState)([]),[A,L]=(0,a.useState)(null),[R,E]=(0,a.useState)(null),D=(0,a.useCallback)(async()=>{try{let t=await (0,m.controlPlaneRequest)(`query ResourceWorkflows($kind: String!, $resourceId: ID!) {
17
- workflowRunsForResource(kind: $kind, resourceId: $resourceId) { ${k} }
18
- workflowsAcceptingResource(kind: $kind) {
19
- id name description enabled
20
- hasPlainTrigger(resourceKind: $kind)
21
- triggerChoices(resourceKind: $kind) { key label description }
22
- }
23
- }`,{kind:e,resourceId:j});N(t.workflowRunsForResource),T(t.workflowsAcceptingResource),E(null)}catch(e){E(e instanceof Error?e.message:String(e))}},[j,e]);(0,a.useEffect)(()=>{let e=window.setTimeout(()=>void D(),0),t=(0,m.controlPlaneSubscriptions)().subscribe({query:"subscription ResourceWorkflowChanges { workflowsChanged { id } }"},{next:()=>void D(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(e),t()}},[D]);let P=async(t,n)=>{L(t);try{await (0,m.controlPlaneRequest)("mutation TriggerResourceWorkflow($input: TriggerWorkflowInput!) { triggerWorkflow(input: $input) { id } }",{input:{workflowId:t,sessionData:w,resourceKind:e,resourceId:j,subjectKey:`${e}:${j}`,choice:n}}),await D()}catch(e){E(e instanceof Error?e.message:String(e))}finally{L(null)}},B=C[0],$=(0,a.useMemo)(()=>B?(0,h.currentPageWorkflowNodeIds)(B,e,j):new Set,[B,j,e]),_=(0,a.useMemo)(()=>B?(0,h.workflowRunNodeDestinations)(B):new Map,[B]);return C.length||I.length||R?(0,t.jsxs)(d.Card,{children:[(0,t.jsxs)(d.CardHeader,{children:[(0,t.jsx)(d.CardTitle,{children:y("resourceWorkflows")}),(0,t.jsx)(d.CardDescription,{children:y("resourceWorkflowsDescription")}),(0,t.jsx)(d.CardAction,{children:(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(u.Link,{href:"/workflows",children:y("manageWorkflows")})})})]}),(0,t.jsxs)(d.CardContent,{className:"space-y-4",children:[R&&(0,t.jsx)(r.Alert,{variant:"destructive",children:(0,t.jsx)(r.AlertDescription,{children:R})}),I.length>0&&(0,t.jsx)(c.ItemGroup,{className:"gap-2",children:I.map(e=>(0,t.jsxs)(c.Item,{size:"sm",variant:"outline",children:[(0,t.jsxs)(c.ItemContent,{children:[(0,t.jsx)(c.ItemTitle,{children:e.name}),e.description&&(0,t.jsx)(c.ItemDescription,{children:e.description})]}),(0,t.jsx)(c.ItemActions,{children:(0,t.jsx)(p.WorkflowChoiceMenu,{button:(0,t.jsxs)(o.Button,{disabled:!e.enabled||null!==A,size:"sm",variant:"outline",children:[(0,t.jsx)(n.CirclePlay,{})," ",y("run")]}),choices:e.triggerChoices,hasPlainTrigger:e.hasPlainTrigger,onRun:t=>void P(e.id,t)})})]},e.id))}),B&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(u.Link,{className:"font-medium hover:underline",href:`/workflows/runs/${B.id}`,children:[B.workflow.name," #",B.displayNumber]}),(0,t.jsx)(l.Badge,{variant:(0,f.workflowStatusVariant)(B.status),children:v.status(B.status)})]}),(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"ghost",children:(0,t.jsxs)(u.Link,{href:`/workflows/runs/${B.id}`,children:[(0,t.jsx)(s.ExternalLink,{})," ",y("fullRun")]})})]}),(0,t.jsx)(b,{onAnswered:D,run:B}),(0,t.jsx)(f.WorkflowGraph,{attempts:B.attempts,compact:!0,currentPageNodeIds:$,definition:B.version.definition,destinations:_,generation:B.generation,onNodeClick:(e,{destination:t,locked:n})=>{n&&S(t)}}),C.length>1&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:C.slice(1,6).map(e=>(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"ghost",children:(0,t.jsxs)(u.Link,{className:"gap-2",href:`/workflows/runs/${e.id}`,children:[(0,t.jsxs)("span",{children:["#",e.displayNumber," · ",e.workflow.name]}),(0,t.jsx)(l.Badge,{variant:(0,f.workflowStatusVariant)(e.status),children:v.status(e.status)})]})},e.id))})]})]})]}):null}],586592)},131460,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-down-to-line",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);e.s(["ArrowDownToLine",0,t],131460)},702143,e=>{"use strict";let t=`
24
- id name description syncGlobally packageHash createdAt updatedAt
25
- files { id path contentsBase64 executable contentHash createdAt updatedAt }
26
- groups { id name createdAt updatedAt }
27
- `,n=`
28
- id kind status error createdAt updatedAt finishedAt
29
- group { id name }
30
- items {
31
- id direction status sourceHash targetHash resolution candidatePackage error createdAt updatedAt
32
- skill { id name description }
33
- agent { id name hostname connectionStatus }
34
- installation {
35
- id scope rootKind rootPath skillName description packageHash fileCount totalBytes tracked consumers lastSeenAt
36
- agent { id name hostname connectionStatus }
37
- codebase { id folder repository { id name displayOrigin } }
38
- worktree { id folder }
39
- skill { id name packageHash }
40
- }
41
- }
42
- `;e.s(["SKILL_FIELDS",0,t,"SKILL_SYNC_RUN_FIELDS",0,n])},170428,e=>{"use strict";let t=(0,e.i(456420).default)("git-compare-arrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);e.s(["GitCompareArrows",0,t],170428)},629864,e=>{"use strict";var t=e.i(843476),n=e.i(131460),s=e.i(711241),i=e.i(456420);let a=(0,i.default)("arrow-up-from-line",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]);var r=e.i(689664),l=e.i(170428),o=e.i(21357);let d=(0,i.default)("skip-forward",[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]]);var c=e.i(573474),u=e.i(948148),m=e.i(271645),h=e.i(929592),p=e.i(487486),x=e.i(519455),f=e.i(515288),g=e.i(257428),j=e.i(776639),b=e.i(793479),k=e.i(110204),w=e.i(967489),y=e.i(987968),v=e.i(784774),S=e.i(624687),C=e.i(520133),N=e.i(637611),I=e.i(702143);let T="__none__",A={SCAN:0,READ:1,APPLY:2};function L(e){let t=window.atob(e);return Uint8Array.from(t,e=>e.charCodeAt(0))}function R(e){if(!e)return null;let t=L(e.contentsBase64);if(t.includes(0))return null;try{return new TextDecoder("utf-8",{fatal:!0}).decode(t)}catch{return null}}function E(e){return e.toLocaleLowerCase().split("_").map(e=>e.charAt(0).toLocaleUpperCase()+e.slice(1)).join(" ")}function D({file:e,missingLabel:n,binaryLabel:s,executableLabel:i}){if(!e)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:n});let a=R(e);return null===a?(0,t.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,t.jsx)("p",{children:s}),(0,t.jsxs)("p",{children:[L(e.contentsBase64).byteLength.toLocaleString()," B"]}),e.executable&&(0,t.jsx)(p.Badge,{variant:"outline",children:i})]}):(0,t.jsx)("pre",{className:"max-h-64 overflow-auto whitespace-pre-wrap rounded-md border bg-muted/30 p-3 font-mono text-xs",children:a})}e.s(["SkillSyncPage",0,function({runId:e}){let i=(0,u.useTranslations)("skills"),P=(0,u.useTranslations)("status"),[B,$]=(0,m.useState)(null),[_,O]=(0,m.useState)([]),[M,K]=(0,m.useState)(!0),[U,q]=(0,m.useState)(!1),[F,W]=(0,m.useState)(null),[H,G]=(0,m.useState)(null),[z,Y]=(0,m.useState)([]),[V,J]=(0,m.useState)([]),[Q,X]=(0,m.useState)("SKILL.md"),[Z,ee]=(0,m.useState)("SKILL.md"),[et,en]=(0,m.useState)(!1),[es,ei]=(0,m.useState)({}),ea=(0,m.useCallback)(async()=>{try{let t=await (0,N.controlPlaneRequest)(`query SkillSyncRun($id: ID!) {
43
- skillSyncRun(id: $id) { ${I.SKILL_SYNC_RUN_FIELDS} }
44
- skillsOverview { groups { id name } }
45
- }`,{id:e});if(!t.skillSyncRun)throw Error(i("syncRunNotFound"));$(t.skillSyncRun),O(t.skillsOverview.groups),W(null)}catch(e){W(e instanceof Error?e.message:String(e))}finally{K(!1)}},[e,i]);(0,m.useEffect)(()=>{let t=window.setTimeout(()=>void ea(),0),n=window.setInterval(()=>void ea(),1e4),s=(0,N.controlPlaneSubscriptions)().subscribe({query:`subscription SkillSyncRunChanged($runId: ID!) {
46
- skillSyncRunChanged(runId: $runId) { ${I.SKILL_SYNC_RUN_FIELDS} }
47
- }`,variables:{runId:e}},{next:e=>e.data?.skillSyncRunChanged&&$(e.data.skillSyncRunChanged),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),window.clearInterval(n),s()}},[ea,e]);let er=(0,m.useMemo)(()=>B?.items.filter(e=>!["SCAN","READ","APPLY"].includes(e.direction))??[],[B]),el=(0,m.useMemo)(()=>{let e=new Map;for(let t of B?.items??[]){if(!["SCAN","READ","APPLY"].includes(t.direction))continue;let n=t.agent?.id??t.id,s=e.get(n),i=A[t.direction]??0,a=s?A[s.direction]??0:-1;(!s||i>a||i===a&&t.updatedAt>s.updatedAt)&&e.set(n,t)}return[...e.values()]},[B]),eo=(0,m.useMemo)(()=>el.filter(e=>"PENDING"===e.status),[el]),ed=(0,m.useMemo)(()=>H?.candidatePackage?.package?.files??[],[H]),ec=(0,m.useMemo)(()=>[...new Set([...z,...ed,...V].map(e=>e.path))].sort((e,t)=>e.localeCompare(t)),[z,V,ed]),eu=z.find(e=>e.path===Q),em=ed.find(e=>e.path===Q),eh=V.find(e=>e.path===Q),ep=async(e,t,n)=>{q(!0);try{let s=n?.package,i=await (0,N.controlPlaneRequest)(`mutation ResolveSkillSyncItem($input: ResolveSkillSyncItemInput!) {
48
- resolveSkillSyncItem(input: $input) { ${I.SKILL_SYNC_RUN_FIELDS} }
49
- }`,{input:{itemId:e.id,resolution:t,groupId:es[e.id]||null,package:s?{name:s.name,description:s.description,files:s.files}:null}});$(i.resolveSkillSyncItem),G(null),W(null)}catch(e){W(e instanceof Error?e.message:String(e))}finally{q(!1)}},ex=async()=>{q(!0);try{let t=await (0,N.controlPlaneRequest)(`mutation ApplySkillSync($runId: ID!) {
50
- applySkillSync(runId: $runId) { ${I.SKILL_SYNC_RUN_FIELDS} }
51
- }`,{runId:e});$(t.applySkillSync)}catch(e){W(e instanceof Error?e.message:String(e))}finally{q(!1)}},ef=async()=>{q(!0);try{let t=await (0,N.controlPlaneRequest)(`mutation SkipPendingSkillSync($runId: ID!) {
52
- skipPendingSkillSync(runId: $runId) { ${I.SKILL_SYNC_RUN_FIELDS} }
53
- }`,{runId:e});$(t.skipPendingSkillSync),W(null)}catch(e){W(e instanceof Error?e.message:String(e))}finally{q(!1)}},eg=async e=>{let t=e.candidatePackage?.package;if(t&&(G(e),J(t.files.map(e=>({...e}))),X("SKILL.md"),ee("SKILL.md"),Y([]),e.skill)){en(!0);try{let t=await (0,N.controlPlaneRequest)(`query ConflictDatabasePackage($id: ID!) {
54
- skill(id: $id) { files { path contentsBase64 executable } }
55
- }`,{id:e.skill.id});Y(t.skill?.files??[])}catch(e){W(e instanceof Error?e.message:String(e))}finally{en(!1)}}},ej=async()=>{if(!H?.candidatePackage?.package)return;let e=H.candidatePackage.package;await ep(H,"MANUAL",{...H.candidatePackage,package:{...e,files:V}})},eb=async e=>{if(!e)return;let t=await Promise.all([...e].map(async e=>({path:e.name,contentsBase64:function(e){let t="";for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return window.btoa(t)}(new Uint8Array(await e.arrayBuffer())),executable:!1})));J(e=>[...e.filter(e=>!t.some(t=>t.path===e.path)),...t]),t[0]&&(X(t[0].path),ee(t[0].path))};return M||!B?(0,t.jsxs)("div",{className:"flex gap-2 p-6 text-sm text-muted-foreground",children:[(0,t.jsx)(y.Spinner,{})," ",i("loadingSync")]}):(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-4 overflow-auto p-4 sm:p-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(x.Button,{asChild:!0,size:"icon",variant:"ghost",children:(0,t.jsx)(C.Link,{"aria-label":i("backToSkills"),href:"/skills",children:(0,t.jsx)(s.ArrowLeft,{})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:i("syncTitle")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:B.group?i("syncGroupName",{name:B.group.name}):i("syncAllDescription")})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Badge,{variant:"SUCCEEDED"===B.status?"secondary":"outline",children:E(B.status)}),eo.length>0&&(0,t.jsxs)(x.Button,{disabled:U,onClick:()=>void ef(),variant:"outline",children:[U?(0,t.jsx)(y.Spinner,{}):(0,t.jsx)(d,{})," ",i("skipPendingClients")]}),(0,t.jsxs)(x.Button,{disabled:U||!["READY","PARTIAL"].includes(B.status),onClick:()=>void ex(),children:[U?(0,t.jsx)(y.Spinner,{}):(0,t.jsx)(o.Play,{})," ",i("applySync")]})]})]}),F&&(0,t.jsx)(h.Alert,{variant:"destructive",children:(0,t.jsx)(h.AlertDescription,{children:F})}),el.length>0&&(0,t.jsxs)(f.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:i("syncAgents")}),(0,t.jsx)(f.CardDescription,{children:i("syncAgentsDescription")})]}),(0,t.jsx)(f.CardContent,{className:"px-0",children:(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableHead,{children:i("agent")}),(0,t.jsx)(v.TableHead,{children:i("connection")}),(0,t.jsx)(v.TableHead,{children:i("operation")}),(0,t.jsx)(v.TableHead,{children:i("syncStatus")})]})}),(0,t.jsx)(v.TableBody,{children:el.map(e=>{let n=e.agent?.connectionStatus==="ONLINE";return(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableCell,{className:"font-medium",children:e.agent?.name??i("unknownAgent")}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(p.Badge,{className:n?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,variant:n?"outline":"secondary",children:P(n?"online":"offline")})}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(p.Badge,{variant:"outline",children:E(e.direction)})}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(p.Badge,{variant:"FAILED"===e.status?"destructive":"COMPLETE"===e.status||"SUCCEEDED"===e.status?"secondary":"outline",children:E(e.status)})})]},e.id)})})]})})]}),(0,t.jsxs)(f.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:i("syncChanges")}),(0,t.jsx)(f.CardDescription,{children:i("syncChangesDescription")})]}),(0,t.jsx)(f.CardContent,{className:"px-0",children:(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableHead,{children:i("change")}),(0,t.jsx)(v.TableHead,{children:i("name")}),(0,t.jsx)(v.TableHead,{children:i("agent")}),(0,t.jsx)(v.TableHead,{children:i("location")}),(0,t.jsx)(v.TableHead,{children:i("status")}),(0,t.jsx)(v.TableHead,{children:i("resolution")})]})}),(0,t.jsxs)(v.TableBody,{children:[er.map(e=>{var s;let o=e.candidatePackage?.projectGroupRequired,d="IMPORT"===e.direction&&e.installation&&!e.installation.tracked;return(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableCell,{children:(0,t.jsxs)(p.Badge,{className:"gap-1",variant:"CONFLICT"===e.direction?"destructive":"outline",children:["IMPORT"===(s=e.direction)?(0,t.jsx)(n.ArrowDownToLine,{}):"EXPORT"===s?(0,t.jsx)(a,{}):"DELETE_REDUNDANT"===s?(0,t.jsx)(c.Trash2,{}):"CONFLICT"===s?(0,t.jsx)(l.GitCompareArrows,{}):(0,t.jsx)(r.Check,{})," ",E(e.direction)]})}),(0,t.jsx)(v.TableCell,{className:"font-medium",children:e.skill?.name??e.installation?.skillName??"—"}),(0,t.jsx)(v.TableCell,{children:e.agent?.name??e.installation?.agent.name??"—"}),(0,t.jsx)(v.TableCell,{className:"max-w-md whitespace-normal font-mono text-xs",children:e.installation?.rootPath??i("newSharedLocation")}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(p.Badge,{variant:"BLOCKED"===e.status?"destructive":"READY"===e.status||"COMPLETE"===e.status?"secondary":"outline",children:E(e.status)})}),(0,t.jsxs)(v.TableCell,{children:[o&&"BLOCKED"===e.status&&(0,t.jsxs)(w.Select,{onValueChange:t=>ei(n=>({...n,[e.id]:t===T?"":t})),value:es[e.id]||T,children:[(0,t.jsx)(w.SelectTrigger,{className:"mb-1 w-full min-w-48",size:"sm",children:(0,t.jsx)(w.SelectValue,{placeholder:i("chooseGroup")})}),(0,t.jsxs)(w.SelectContent,{align:"start",children:[(0,t.jsx)(w.SelectItem,{value:T,children:i("chooseGroup")}),_.map(e=>(0,t.jsx)(w.SelectItem,{value:e.id,children:e.name},e.id))]})]}),"BLOCKED"===e.status?(0,t.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.skill&&(0,t.jsx)(x.Button,{disabled:U,onClick:()=>void ep(e,"DATABASE"),size:"sm",variant:"outline",children:i("useDatabase")}),e.candidatePackage?.package&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.Button,{disabled:U||o&&!es[e.id],onClick:()=>void ep(e,"TARGET"),size:"sm",variant:"outline",children:i("useTarget")}),(0,t.jsxs)(x.Button,{disabled:U,onClick:()=>void eg(e),size:"sm",variant:"outline",children:[(0,t.jsx)(l.GitCompareArrows,{})," ",i("compareAndResolve")]})]}),d&&(0,t.jsxs)(x.Button,{disabled:U,onClick:()=>void ep(e,"DELETE"),size:"sm",variant:"destructive",children:[(0,t.jsx)(c.Trash2,{})," ",i("deleteClientCopy")]}),(0,t.jsx)(x.Button,{disabled:U,onClick:()=>void ep(e,"SKIP"),size:"sm",variant:"outline",children:i("skip")})]}):d&&"READY"===e.status?(0,t.jsxs)(x.Button,{disabled:U,onClick:()=>void ep(e,"DELETE"),size:"sm",variant:"destructive",children:[(0,t.jsx)(c.Trash2,{})," ",i("deleteClientCopy")]}):e.resolution?E(e.resolution):"—"]})]},e.id)}),!er.length&&(0,t.jsx)(v.TableRow,{children:(0,t.jsx)(v.TableCell,{className:"py-10 text-center text-muted-foreground",colSpan:6,children:"PREPARING"===B.status?i("scanningAgents"):i("noSyncChanges")})})]})]})})]}),(0,t.jsx)(j.Dialog,{onOpenChange:e=>{e||(G(null),Y([]),J([]))},open:!!H,children:(0,t.jsxs)(j.DialogContent,{className:"flex max-h-[92vh] flex-col overflow-hidden sm:max-w-6xl",children:[(0,t.jsxs)(j.DialogHeader,{className:"shrink-0",children:[(0,t.jsx)(j.DialogTitle,{children:i("manualResolution")}),(0,t.jsx)(j.DialogDescription,{children:i("manualResolutionDescription")})]}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap gap-2",children:[(0,t.jsxs)(x.Button,{disabled:!z.length||et,onClick:()=>J(z.map(e=>({...e}))),size:"sm",variant:"outline",children:[et?(0,t.jsx)(y.Spinner,{}):(0,t.jsx)(n.ArrowDownToLine,{})," ",i("startFromDatabase")]}),(0,t.jsxs)(x.Button,{disabled:!ed.length,onClick:()=>J(ed.map(e=>({...e}))),size:"sm",variant:"outline",children:[(0,t.jsx)(n.ArrowDownToLine,{})," ",i("startFromTarget")]}),(0,t.jsx)(x.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(k.Label,{className:"cursor-pointer",htmlFor:"manual-package-upload",children:i("addFiles")})}),(0,t.jsx)(b.Input,{className:"sr-only",id:"manual-package-upload",multiple:!0,onChange:e=>void eb(e.currentTarget.files),type:"file"})]}),(0,t.jsxs)("div",{className:"grid min-h-0 flex-1 gap-4 overflow-y-auto lg:grid-cols-[14rem_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"space-y-1 rounded-md border p-2",children:[(0,t.jsx)("p",{className:"px-2 py-1 text-xs font-medium text-muted-foreground",children:i("packageFiles")}),ec.map(e=>(0,t.jsx)("button",{className:`block w-full truncate rounded px-2 py-1.5 text-left font-mono text-xs ${e===Q?"bg-accent text-accent-foreground":"hover:bg-muted"}`,onClick:()=>{X(e),ee(e)},type:"button",children:e},e))]}),(0,t.jsxs)("div",{className:"min-w-0 space-y-4",children:[(0,t.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,t.jsx)(k.Label,{children:i("databaseVersion")}),et?(0,t.jsx)(y.Spinner,{}):(0,t.jsx)(D,{binaryLabel:i("binaryPreview"),executableLabel:i("executable"),file:eu,missingLabel:i("missingFile")})]}),(0,t.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,t.jsx)(k.Label,{children:i("targetVersion")}),(0,t.jsx)(D,{binaryLabel:i("binaryPreview"),executableLabel:i("executable"),file:em,missingLabel:i("missingFile")})]})]}),(0,t.jsxs)("div",{className:"space-y-3 rounded-md border p-3",children:[(0,t.jsx)(k.Label,{children:i("resultVersion")}),eh?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end gap-2",children:[(0,t.jsxs)("div",{className:"min-w-64 flex-1 space-y-1",children:[(0,t.jsx)(k.Label,{htmlFor:"manual-file-path",children:i("filePath")}),(0,t.jsx)(b.Input,{id:"manual-file-path",onChange:e=>ee(e.target.value),value:Z})]}),(0,t.jsx)(x.Button,{disabled:!Z.trim()||Z.trim()!==eh.path&&V.some(e=>e.path===Z.trim()),onClick:()=>{let e=Z.trim().replaceAll("\\","/");!eh||!e||e!==eh.path&&V.some(t=>t.path===e)||(J(t=>t.map(t=>t.path===eh.path?{...t,path:e}:t)),X(e),ee(e))},variant:"outline",children:i("rename")}),(0,t.jsxs)(k.Label,{className:"flex h-8 items-center gap-2 rounded-lg border px-3",children:[(0,t.jsx)(g.Checkbox,{checked:eh.executable,onCheckedChange:e=>J(t=>t.map(t=>t.path===eh.path?{...t,executable:!0===e}:t))}),i("executable")]}),(0,t.jsxs)(x.Button,{disabled:"SKILL.md"===eh.path,onClick:()=>{J(e=>e.filter(e=>e.path!==eh.path));let e=ec.find(e=>e!==eh.path);X(e??"SKILL.md"),ee(e??"SKILL.md")},variant:"destructive",children:[(0,t.jsx)(c.Trash2,{})," ",i("removeFile")]})]}),null===R(eh)?(0,t.jsxs)("div",{className:"space-y-2 rounded-md bg-muted/30 p-3 text-sm text-muted-foreground",children:[(0,t.jsx)("p",{children:i("binaryFile")}),(0,t.jsxs)("p",{children:[L(eh.contentsBase64).byteLength.toLocaleString()," ","B"]})]}):(0,t.jsx)(S.Textarea,{className:"min-h-48 font-mono text-xs",onChange:e=>J(t=>t.map(t=>t.path===eh.path?{...t,contentsBase64:function(e){let t=new TextEncoder().encode(e),n="";for(let e of t)n+=String.fromCharCode(e);return window.btoa(n)}(e.target.value)}:t)),value:R(eh)??""})]}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:i("missingResultFile")})]})]})]}),(0,t.jsx)(j.DialogFooter,{className:"shrink-0",children:(0,t.jsxs)(x.Button,{disabled:U||!V.some(e=>"SKILL.md"===e.path)||H?.candidatePackage?.projectGroupRequired===!0&&!es[H.id],onClick:()=>void ej(),children:[U&&(0,t.jsx)(y.Spinner,{})," ",i("useManualVersion")]})})]})})]})}],629864)}]);
@@ -1,59 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030),n=e.i(820783),i=e.i(326999),s=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,a.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),m=o(e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(i.Root,{...n,...a,modal:!0})},"AlertDialog"),h=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Trigger,{...s,...n,ref:r})},"AlertDialogTrigger")),x=o(e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(i.Portal,{...n,...a})},"AlertDialogPortal"),p=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Overlay,{...s,...n,ref:r})},"AlertDialogOverlay")),[g,f]=d("AlertDialogContent"),j=r.forwardRef(o(function(e,a){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),m=r.useRef(null),h=(0,n.useComposedRefs)(a,m),x=r.useRef(null);return(0,t.jsx)(g,{scope:l,cancelRef:x,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:h,onOpenAutoFocus:(0,s.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),b=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Title,{...s,...n,ref:r})},"AlertDialogTitle")),v=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Description,{...s,...n,ref:r})},"AlertDialogDescription")),w=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Close,{...s,...n,ref:r})},"AlertDialogAction")),D=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...s}=e,{cancelRef:l}=f("AlertDialogCancel",a),o=u(a),d=(0,n.useComposedRefs)(r,l);return(0,t.jsx)(i.Close,{...o,...s,ref:d})},"AlertDialogCancel"));e.s(["Action",0,w,"AlertDialog",0,m,"AlertDialogAction",0,w,"AlertDialogCancel",0,D,"AlertDialogContent",0,j,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,p,"AlertDialogPortal",0,x,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,h,"Cancel",0,D,"Content",0,j,"Description",0,v,"Overlay",0,p,"Portal",0,x,"Root",0,m,"Title",0,b,"Trigger",0,h,"createAlertDialogScope",0,c],691162);var k=e.i(691162),k=k,y=e.i(975157),C=e.i(519455);function T({...e}){return(0,t.jsx)(k.Root,{"data-slot":"alert-dialog",...e})}function N({...e}){return(0,t.jsx)(k.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function S({...e}){return(0,t.jsx)(k.Portal,{"data-slot":"alert-dialog-portal",...e})}function I({className:e,...r}){return(0,t.jsx)(k.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,y.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}function A({className:e,size:r="default",...a}){return(0,t.jsxs)(S,{children:[(0,t.jsx)(I,{}),(0,t.jsx)(k.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,y.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})]})}function E({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,y.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function $({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,y.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function R({className:e,...r}){return(0,t.jsx)(k.Title,{"data-slot":"alert-dialog-title",className:(0,y.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function B({className:e,...r}){return(0,t.jsx)(k.Description,{"data-slot":"alert-dialog-description",className:(0,y.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function L({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(C.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(k.Action,{"data-slot":"alert-dialog-action",className:(0,y.cn)(e),...n})})}function M({className:e,variant:r="outline",size:a="default",...n}){return(0,t.jsx)(C.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(k.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,y.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:a,onConfirm:n,onOpenChange:i,open:s,title:l,trigger:o}){return(0,t.jsxs)(T,{onOpenChange:i,open:s,children:[o&&(0,t.jsx)(N,{asChild:!0,children:o}),(0,t.jsxs)(A,{children:[(0,t.jsxs)(E,{children:[(0,t.jsx)(R,{children:l}),(0,t.jsx)(B,{children:a})]}),(0,t.jsxs)($,{children:[(0,t.jsx)(M,{children:r}),(0,t.jsx)(L,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,a.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,a.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,a.cn)(n({variant:r,className:e})),...i})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,r.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...a})},"TableFooter",0,function({className:e,...a}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,r.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a})},"TableHead",0,function({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...a})},"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...a})}])},755838,(e,t,r)=>{"use strict";var a=e.r(271645),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useState,s=a.useEffect,l=a.useLayoutEffect,o=a.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),a=i({inst:{value:r,getSnapshot:t}}),n=a[0].inst,c=a[1];return l(function(){n.value=r,n.getSnapshot=t,d(n)&&c({inst:n})},[e,r,t]),s(function(){return d(n)&&c({inst:n}),e(function(){d(n)&&c({inst:n})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:c},802239,(e,t,r)=>{"use strict";t.exports=e.r(755838)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(560964),a=e.i(964053),n=e.i(519455),i=e.i(975157);function s({...e}){return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...r}){return(0,t.jsx)(a.Dialog.Overlay,{className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...r})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,showCloseButton:d=!0,...c}){return(0,t.jsxs)(s,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(a.Dialog.Content,{className:(0,i.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...c,children:[o,d&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(n.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Description,{className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...r})},"DialogFooter",0,function({className:e,showCloseButton:r=!1,children:s,...l}){return(0,t.jsxs)("div",{className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...l,children:[s,r&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,children:(0,t.jsx)(n.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...r})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},832297,e=>{"use strict";var t=e.i(187921);e.s(["CirclePlay",()=>t.default])},997778,e=>{"use strict";var t=e.i(843476),r=e.i(948148),a=e.i(271645),n=e.i(755146);e.s(["WorkflowChoiceMenu",0,function({button:e,choices:i,hasPlainTrigger:s=!1,onRun:l}){let o=(0,r.useTranslations)("workflows");return i.length?(0,t.jsxs)(n.DropdownMenu,{children:[(0,t.jsx)(n.DropdownMenuTrigger,{asChild:!0,children:e}),(0,t.jsxs)(n.DropdownMenuContent,{align:"start",className:"max-w-64",children:[s&&(0,t.jsx)(n.DropdownMenuItem,{onSelect:()=>l(null),children:o("fullRun")}),i.map(e=>(0,t.jsx)(n.DropdownMenuItem,{onSelect:()=>l(e.key),children:(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate",children:e.label}),e.description&&(0,t.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:e.description})]})},e.key))]})]}):(0,a.cloneElement)(e,{onClick:()=>l(null)})}])},880181,596930,505624,e=>{"use strict";function t(e){return encodeURIComponent(e.trim())}function r(e){var r;let a=(r=e.url,!r?.startsWith("/")||r.startsWith("//")?null:r);if(a)return{href:a,external:!1};let n=e.kind.trim().toUpperCase(),i=e.resourceId.trim();if(!i)return null;let s="string"==typeof e.metadata?.runKind?e.metadata.runKind.toUpperCase():null,l="BUILD"===n?`/builds/${t(i)}`:"CODEBASE"===n?`/codebases/${t(i)}`:"JIRA_TICKET"===n?`/jira/tickets/${t(i)}`:"WORKTREE"===n?`/worktrees/${t(i)}`:"AGENT_RUN"===n&&"PLAN"===s?`/plans/${t(i)}`:"AGENT_RUN"===n&&"SESSION"===s?`/sessions/${t(i)}`:"PULL_REQUEST"===n?function(e){let r=e.lastIndexOf("#");if(r<1)return null;let a=e.slice(0,r),n=a.indexOf("/");if(n<1||n===a.length-1)return null;let i=Number(e.slice(r+1));return!Number.isInteger(i)||i<1?null:`/pull-requests/${t(a.slice(0,n))}/${t(a.slice(n+1))}/${i}`}(i):"AGENT_JOB"===n?`/jobs/${t(i)}`:"COMMAND_RUN"===n?`/commands/runs/${t(i)}`:"WORKFLOW_RUN"===n?`/workflows/runs/${t(i)}`:"SKILL_SYNC"===n?`/skills/sync/${t(i)}`:"SKILL"===n?`/skills/${t(i)}`:"IOS_DEVICE"===n?`/devices/${t(i)}`:"SIGNING_PROFILE"===n?`/provisioning-profiles/${t(i)}`:"PUSH_NOTIFICATION_BATCH"===n?"/push-notifications":"BUILD_DATA_COLLECTION"===n?"/build-data":"AGENT"===n?`/agents/${t(i)}`:"CODEBASE_REPOSITORY"===n?`/codebases/repositories/${t(i)}`:null;if(l)return{href:l,external:!1};let o=function(e){if(!e)return null;try{let t=new URL(e);return new Set(["http:","https:"]).has(t.protocol)?t.href:null}catch{return null}}(e.url);return o?{href:o,external:!0}:null}function a(e){let t=e.kind.trim().toUpperCase();return"AGENT_JOB"===t||"COMMAND_RUN"===t?30:"GITHUB_WORKFLOW_RUN"===t?20:10}function n(e){return e.map((e,t)=>({destination:r(e),index:t,link:e,time:e.createdAt instanceof Date?e.createdAt.getTime():Date.parse(e.createdAt??"")||0})).filter(e=>null!==e.destination).sort((e,t)=>a(e.link)-a(t.link)||t.time-e.time||t.index-e.index)[0]?.destination??null}function i(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:{}}function s(e){return"string"!=typeof e&&"number"!=typeof e?null:String(e).trim()||null}function l(e,t,r){return e.kind.trim().toUpperCase()===t.trim().toUpperCase()&&e.resourceId.trim()===r.trim()}e.i(672510),e.s(["githubJobResourceId",0,function(e,t){let r=e.trim(),a=t.trim();if(!r||!a)throw Error("GitHub job repository and job ID are required");return`${r}:job:${a}`},"githubPipelineResourceId",0,function(e,t,r){let a=e.trim(),n=t?.trim(),i=r.trim();if(!a||!n&&!i)throw Error("GitHub pipeline repository and provider ID are required");return`${a}:${n?"run":"check"}:${n||i}`},"preferredWorkflowResourceDestination",0,n,"workflowResourceDestination",0,r],596930),e.s(["currentPageWorkflowNodeIds",0,function(e,t,r){let a=new Set,n=new Map(e.attempts.map(e=>[e.id,e.nodeId]));for(let n of e.attempts)n.resourceLinks.some(e=>l(e,t,r))&&a.add(n.nodeId);for(let i of e.resourceLinks){if(!l(i,t,r))continue;let s=i.attemptId?n.get(i.attemptId):e.trigger?.nodeId;s&&a.add(s)}return a},"workflowRunNodeDestinations",0,function(e){let t=new Map;for(let r of[...e.attempts].sort((t,r)=>Number(r.generation===e.generation)-Number(t.generation===e.generation)||r.generation-t.generation||r.attempt-t.attempt||Number(!!t.iterationKey)-Number(!!r.iterationKey))){if(t.has(r.nodeId))continue;let e=function(e){let t=e.kind?.trim().toUpperCase()??"",r=i(e.output),a=i(r.value),n={...i(a.sessionPatch),...i(r.sessionPatch)};if(t.startsWith("JIRA_")){let e=s(a.key)??s(i(a.ticket).key)??s(i(n.ticket).key);return e?{kind:"JIRA_TICKET",resourceId:e}:null}if(t.startsWith("RUN_")){let e=s(a.id),t=s(a.kind)?.toUpperCase();return e&&("PLAN"===t||"SESSION"===t)?{kind:"AGENT_RUN",resourceId:e,metadata:{runKind:t}}:null}if(t.startsWith("WORKTREE_")){let e=s(i(n.worktree).id);return e?{kind:"WORKTREE",resourceId:e}:null}if(t.startsWith("CODEBASE_")){let e=s(i(n.codebase).id)??s(a.id);return e?{kind:"CODEBASE",resourceId:e}:null}if(t.startsWith("BUILD_")){let e=s(i(n.build).id)??s(a.id);return e?{kind:"BUILD",resourceId:e}:null}return null}(r),a=n(e?[...r.resourceLinks,e]:r.resourceLinks);a&&t.set(r.nodeId,a)}let r=n(e.resourceLinks.filter(({attemptId:e})=>!e));return e.trigger?.nodeId&&r&&t.set(e.trigger.nodeId,r),t}],880181);var o=e.i(271645),d=e.i(520133);e.s(["useOpenWorkflowDestination",0,function(){let e=(0,d.useRouter)();return(0,o.useCallback)(t=>{if(t){if(t.external)return void window.open(t.href,"_blank","noopener,noreferrer");e.push(t.href)}},[e])}],505624)},586592,e=>{"use strict";var t=e.i(843476),r=e.i(832297),a=e.i(482022),n=e.i(948148),i=e.i(271645),s=e.i(929592),l=e.i(487486),o=e.i(519455),d=e.i(515288),c=e.i(906197),u=e.i(520133),m=e.i(637611),h=e.i(880181),x=e.i(997778),p=e.i(505624),g=e.i(349049),f=e.i(399668);function j(e){return"string"==typeof e&&e.length>0?e:null}function b({run:e,onAnswered:r}){let a=(0,n.useTranslations)("workflows"),l=(0,f.useWorkflowLabels)(),[d,c]=(0,i.useState)({}),[h,x]=(0,i.useState)(!1),[p,g]=(0,i.useState)(null),v=(0,i.useMemo)(()=>e.attempts.flatMap(e=>(e.questionBatches??[]).flatMap(t=>{let r=j(t.id);if(!r||"PENDING"!==t.status)return[];let a=(Array.isArray(t.questions)?t.questions:[]).flatMap(e=>(function(e){if(!e||"object"!=typeof e||Array.isArray(e))return null;let t=j(e.id);if(!t)return null;let r=Array.isArray(e.options)?e.options:[];return{id:t,header:j(e.header),prompt:j(e.prompt)??"",multiSelect:!!e.multiSelect,options:r.flatMap(e=>{if(!e||"object"!=typeof e)return[];let t=j(e.label);return t?[{id:j(e.id)??t,label:t,description:j(e.description)}]:[]})}})(e)??[]);return a.length?[{id:r,kind:e.kind,questions:a}]:[]})),[e]);if(0===v.length)return null;let w=(e,t)=>`${e}:${t}`,D=async(e,t)=>{x(!0);try{await (0,m.controlPlaneRequest)("mutation AnswerWorkflowQuestion($batchId: ID!, $answers: JSON!) { answerWorkflowQuestion(batchId: $batchId, answers: $answers) { id status } }",{batchId:e.id,answers:Object.fromEntries(e.questions.map(e=>[e.id,{answers:t[e.id]??[]}]))}),c(t=>{let r={...t};for(let t of e.questions)delete r[w(e.id,t.id)];return r}),g(null),await r()}catch(e){g(e instanceof Error?e.message:String(e))}finally{x(!1)}};return(0,t.jsxs)("div",{className:"space-y-2",children:[p&&(0,t.jsx)(s.Alert,{variant:"destructive",children:(0,t.jsx)(s.AlertDescription,{children:p})}),v.map(r=>{let n=1===r.questions.length&&!r.questions[0].multiSelect,i=r.questions.every(e=>(d[w(r.id,e.id)]??[]).length>0);return(0,t.jsxs)("div",{className:"space-y-3 rounded-xl border border-amber-500/50 bg-amber-500/5 p-3",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:a("questionFrom",{step:l.kind(r.kind)})}),r.questions.every(({options:e})=>e.length>0)?(0,t.jsxs)(t.Fragment,{children:[r.questions.map(e=>{let a=d[w(r.id,e.id)]??[];return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.header||e.prompt}),e.header&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.prompt}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.options.map((i,s)=>(0,t.jsx)(o.Button,{"aria-pressed":n?void 0:a.includes(i.label),disabled:h,onClick:()=>{n?D(r,{[e.id]:[i.label]}):c(t=>{let a=new Set(t[w(r.id,e.id)]??[]);return e.multiSelect?a.has(i.label)?a.delete(i.label):a.add(i.label):(a.clear(),a.add(i.label)),{...t,[w(r.id,e.id)]:[...a]}})},size:"sm",title:i.description??void 0,variant:a.includes(i.label)||n&&0===s?"default":"outline",children:i.label},i.id))})]},e.id)}),!n&&(0,t.jsx)(o.Button,{disabled:h||!i,onClick:()=>void D(r,Object.fromEntries(r.questions.map(e=>[e.id,d[w(r.id,e.id)]??[]]))),size:"sm",children:a("answer")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:r.questions[0].header||r.questions[0].prompt}),(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(u.Link,{href:`/workflows/runs/${e.id}`,children:a("answerOnRunPage")})})]})]},r.id)})]})}let v=`
2
- id displayNumber workflowId triggerKind triggerSubjectKey status phase generation
3
- sessionData sessionRevision blockedReason error queuedAt startedAt pausedAt finishedAt
4
- workflow { id name }
5
- trigger { nodeId }
6
- version { id workflowId version name description schemaVersion definition contentHash publishedAt }
7
- attempts {
8
- id nodeId kind generation iterationKey attempt status phase input output error startedAt finishedAt supersededAt
9
- resourceLinks { id attemptId kind resourceId label url metadata createdAt }
10
- questionBatches {
11
- id status
12
- questions { id header prompt multiSelect options { id label description } }
13
- }
14
- }
15
- resourceLinks { id attemptId kind resourceId label url metadata createdAt }
16
- `;e.s(["WorkflowResourcePanel",0,function({resourceKind:e,resourceId:j,sessionData:w}){let D=(0,n.useTranslations)("workflows"),k=(0,f.useWorkflowLabels)(),y=(0,p.useOpenWorkflowDestination)(),[C,T]=(0,i.useState)([]),[N,S]=(0,i.useState)([]),[I,A]=(0,i.useState)(null),[E,$]=(0,i.useState)(null),R=(0,i.useCallback)(async()=>{try{let t=await (0,m.controlPlaneRequest)(`query ResourceWorkflows($kind: String!, $resourceId: ID!) {
17
- workflowRunsForResource(kind: $kind, resourceId: $resourceId) { ${v} }
18
- workflowsAcceptingResource(kind: $kind) {
19
- id name description enabled
20
- hasPlainTrigger(resourceKind: $kind)
21
- triggerChoices(resourceKind: $kind) { key label description }
22
- }
23
- }`,{kind:e,resourceId:j});T(t.workflowRunsForResource),S(t.workflowsAcceptingResource),$(null)}catch(e){$(e instanceof Error?e.message:String(e))}},[j,e]);(0,i.useEffect)(()=>{let e=window.setTimeout(()=>void R(),0),t=(0,m.controlPlaneSubscriptions)().subscribe({query:"subscription ResourceWorkflowChanges { workflowsChanged { id } }"},{next:()=>void R(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(e),t()}},[R]);let B=async(t,r)=>{A(t);try{await (0,m.controlPlaneRequest)("mutation TriggerResourceWorkflow($input: TriggerWorkflowInput!) { triggerWorkflow(input: $input) { id } }",{input:{workflowId:t,sessionData:w,resourceKind:e,resourceId:j,subjectKey:`${e}:${j}`,choice:r}}),await R()}catch(e){$(e instanceof Error?e.message:String(e))}finally{A(null)}},L=C[0],M=(0,i.useMemo)(()=>L?(0,h.currentPageWorkflowNodeIds)(L,e,j):new Set,[L,j,e]),P=(0,i.useMemo)(()=>L?(0,h.workflowRunNodeDestinations)(L):new Map,[L]);return C.length||N.length||E?(0,t.jsxs)(d.Card,{children:[(0,t.jsxs)(d.CardHeader,{children:[(0,t.jsx)(d.CardTitle,{children:D("resourceWorkflows")}),(0,t.jsx)(d.CardDescription,{children:D("resourceWorkflowsDescription")}),(0,t.jsx)(d.CardAction,{children:(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(u.Link,{href:"/workflows",children:D("manageWorkflows")})})})]}),(0,t.jsxs)(d.CardContent,{className:"space-y-4",children:[E&&(0,t.jsx)(s.Alert,{variant:"destructive",children:(0,t.jsx)(s.AlertDescription,{children:E})}),N.length>0&&(0,t.jsx)(c.ItemGroup,{className:"gap-2",children:N.map(e=>(0,t.jsxs)(c.Item,{size:"sm",variant:"outline",children:[(0,t.jsxs)(c.ItemContent,{children:[(0,t.jsx)(c.ItemTitle,{children:e.name}),e.description&&(0,t.jsx)(c.ItemDescription,{children:e.description})]}),(0,t.jsx)(c.ItemActions,{children:(0,t.jsx)(x.WorkflowChoiceMenu,{button:(0,t.jsxs)(o.Button,{disabled:!e.enabled||null!==I,size:"sm",variant:"outline",children:[(0,t.jsx)(r.CirclePlay,{})," ",D("run")]}),choices:e.triggerChoices,hasPlainTrigger:e.hasPlainTrigger,onRun:t=>void B(e.id,t)})})]},e.id))}),L&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(u.Link,{className:"font-medium hover:underline",href:`/workflows/runs/${L.id}`,children:[L.workflow.name," #",L.displayNumber]}),(0,t.jsx)(l.Badge,{variant:(0,g.workflowStatusVariant)(L.status),children:k.status(L.status)})]}),(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"ghost",children:(0,t.jsxs)(u.Link,{href:`/workflows/runs/${L.id}`,children:[(0,t.jsx)(a.ExternalLink,{})," ",D("fullRun")]})})]}),(0,t.jsx)(b,{onAnswered:R,run:L}),(0,t.jsx)(g.WorkflowGraph,{attempts:L.attempts,compact:!0,currentPageNodeIds:M,definition:L.version.definition,destinations:P,generation:L.generation,onNodeClick:(e,{destination:t,locked:r})=>{r&&y(t)}}),C.length>1&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:C.slice(1,6).map(e=>(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"ghost",children:(0,t.jsxs)(u.Link,{className:"gap-2",href:`/workflows/runs/${e.id}`,children:[(0,t.jsxs)("span",{children:["#",e.displayNumber," · ",e.workflow.name]}),(0,t.jsx)(l.Badge,{variant:(0,g.workflowStatusVariant)(e.status),children:k.status(e.status)})]})},e.id))})]})]})]}):null}],586592)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},37332,e=>{"use strict";e.s(["isRowActivation",0,function(e){if(e.defaultPrevented||0!==e.button)return!1;let t=e.target;return t instanceof Element&&!!e.currentTarget.contains(t)&&!t.closest("a, button, input, select, textarea, [role='button'], [role='link'], [role='menuitem']")},"rowLinkClass",0,"-mx-1.5 rounded-md px-1.5 py-0.5 transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"])},955862,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);var a=e.i(689664),n=e.i(806537),i=e.i(648119),s=e.i(741120),l=e.i(573474),o=e.i(466328),o=o,d=e.i(861745),c=e.i(948148),u=e.i(271645),m=e.i(778434),h=e.i(340953),x=e.i(856522),p=e.i(816484),g=e.i(929592),f=e.i(487486),j=e.i(519455),b=e.i(515288),v=e.i(776639),w=e.i(793479),D=e.i(110204),k=e.i(987968),y=e.i(746798),C=e.i(520133),T=e.i(637611),N=e.i(539494),S=e.i(261751);let I="border-amber-500/30 bg-amber-500/10 text-amber-700 hover:bg-amber-500/20 hover:text-amber-700 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-300 dark:hover:bg-amber-500/20 dark:hover:text-amber-300";function A(){let e=(0,c.useTranslations)("diskSpace"),[r,a]=(0,u.useState)(null),[n,i]=(0,u.useState)("40"),[s,l]=(0,u.useState)("10"),[o,d]=(0,u.useState)(!1),[m,h]=(0,u.useState)(null),[A,E]=(0,u.useState)(null),$=(0,u.useCallback)(async()=>{try{let e=await (0,T.controlPlaneRequest)(`query DiskSpaceOverview { diskSpaceOverview { ${N.DISK_SPACE_FIELDS} } }`);a(e.diskSpaceOverview),i(String(e.diskSpaceOverview.settings.normalThresholdGiB)),l(String(e.diskSpaceOverview.settings.pressureThresholdGiB)),E(null)}catch(e){E(e instanceof Error?e.message:String(e))}},[]);(0,u.useEffect)(()=>{let e=window.setTimeout(()=>void $(),0),t=(0,T.controlPlaneSubscriptions)().subscribe({query:"subscription DiskSpaceChanged { diskSpaceChanged }"},{next:()=>void $(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(e),t()}},[$]);let R=async(e,t,r)=>{h(e),E(null);try{return await (0,T.controlPlaneRequest)(t,r),await $(),!0}catch(e){return E(e instanceof Error?e.message:String(e)),!1}finally{h(null)}};return(0,t.jsxs)(b.Card,{children:[(0,t.jsxs)(b.CardHeader,{children:[(0,t.jsx)(b.CardTitle,{children:e("title")}),(0,t.jsx)(b.CardDescription,{children:e("description")}),(0,t.jsxs)(v.Dialog,{onOpenChange:e=>{e&&r&&(i(String(r.settings.normalThresholdGiB)),l(String(r.settings.pressureThresholdGiB))),d(e)},open:o,children:[(0,t.jsx)(b.CardAction,{children:(0,t.jsx)(v.DialogTrigger,{asChild:!0,children:(0,t.jsx)(j.Button,{disabled:!r,size:"sm",variant:"outline",children:e("settings")})})}),(0,t.jsxs)(v.DialogContent,{children:[(0,t.jsxs)(v.DialogHeader,{children:[(0,t.jsx)(v.DialogTitle,{children:e("settings")}),(0,t.jsx)(v.DialogDescription,{children:e("description")})]}),(0,t.jsxs)("form",{className:"space-y-4",onSubmit:async e=>{e.preventDefault(),await R("settings",`mutation UpdateDiskSpaceSettings($input: UpdateDiskSpaceSettingsInput!) {
24
- updateDiskSpaceSettings(input: $input) { normalThresholdGiB }
25
- }`,{input:{normalThresholdGiB:Number(n),pressureThresholdGiB:Number(s)}})&&d(!1)},children:[A&&(0,t.jsx)(g.Alert,{variant:"destructive",children:(0,t.jsx)(g.AlertDescription,{children:A})}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(D.Label,{htmlFor:"disk-normal-threshold",children:e("normalThreshold")}),(0,t.jsx)(w.Input,{id:"disk-normal-threshold",min:"0.1",onChange:e=>i(e.target.value),step:"0.1",type:"number",value:n})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(D.Label,{htmlFor:"disk-pressure-threshold",children:e("pressureThreshold")}),(0,t.jsx)(w.Input,{id:"disk-pressure-threshold",min:"0.1",onChange:e=>l(e.target.value),step:"0.1",type:"number",value:s})]}),(0,t.jsx)(v.DialogFooter,{children:(0,t.jsxs)(j.Button,{disabled:null!==m,type:"submit",children:["settings"===m?(0,t.jsx)(k.Spinner,{}):(0,t.jsx)(x.Save,{})," ",e("saveThresholds")]})})]})]})]})]}),(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[A&&(0,t.jsx)(g.Alert,{variant:"destructive",children:(0,t.jsx)(g.AlertDescription,{children:A})}),r?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:r.agents.map(r=>(0,t.jsxs)("div",{className:"space-y-4 rounded-lg border p-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(C.Link,{className:"font-medium hover:underline",href:`/agents/${r.agent.id}`,children:r.agent.name}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[(0,t.jsx)(f.Badge,{className:"PRESSURE"===r.status?I:void 0,variant:"PRESSURE"===r.status?"outline":"secondary",children:e(`status.${r.status}`)}),"NORMAL"!==r.pressureMode&&(0,t.jsx)(f.Badge,{className:I,variant:"outline",children:e(`pressureMode.${r.pressureMode}`)})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,t.jsx)(j.Button,{"aria-pressed":r.enabled,className:r.enabled?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 hover:bg-emerald-500/20 hover:text-emerald-700 dark:border-emerald-500/30 dark:bg-emerald-500/10 dark:text-emerald-300 dark:hover:bg-emerald-500/20 dark:hover:text-emerald-300":void 0,disabled:null!==m,onClick:()=>void R(`monitor:${r.agent.id}`,`mutation SetAgentDiskSpaceMonitoring($agentId: ID!, $enabled: Boolean!) {
26
- setAgentDiskSpaceMonitoring(agentId: $agentId, enabled: $enabled) { enabled }
27
- }`,{agentId:r.agent.id,enabled:!r.enabled}),size:"sm",type:"button",variant:"outline",children:e("monitorAgent")}),(0,t.jsx)(j.Button,{"aria-pressed":r.manualPressureMode,className:r.manualPressureMode?I:void 0,disabled:!r.enabled||null!==m,onClick:()=>void R(`pressure:${r.agent.id}`,`mutation SetAgentDiskSpacePressureMode($agentId: ID!, $enabled: Boolean!) {
28
- setAgentDiskSpacePressureMode(agentId: $agentId, enabled: $enabled) { manualPressureMode }
29
- }`,{agentId:r.agent.id,enabled:!r.manualPressureMode}),size:"sm",type:"button",variant:"outline",children:e("pressureModeControl")})]})]}),r.volumes.length?(0,t.jsx)("div",{className:"space-y-3",children:r.volumes.map(r=>(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring",tabIndex:0,children:(0,t.jsx)(S.VolumeBar,{hideStatus:!0,volume:r})})}),(0,t.jsx)(y.TooltipContent,{children:r.monitored?e(`status.${r.status}`):e("notMonitored")})]},r.id))}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("noReport")}),r.lastReportedAt&&(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e("observedAt",{value:""}),(0,t.jsx)(p.DateTime,{value:r.lastReportedAt})]}),(r.lastError||r.warnings.length>0)&&(0,t.jsx)(g.Alert,{variant:r.lastError?"destructive":"default",children:(0,t.jsx)(g.AlertDescription,{children:[r.lastError,...r.warnings].filter(Boolean).join(" · ")})})]},r.agent.id))})}):(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(k.Spinner,{})," ",e("loading")]})]})]})}var E=e.i(586592),$=e.i(257428),R=e.i(755146),B=e.i(82612),L=e.i(784774),M=e.i(462777),P=e.i(360583),O=e.i(975157),H=e.i(37332);let z=`
30
- id status createdAt deadlineAt finishedAt
31
- progress {
32
- eligibleCount finishedCount successfulCount
33
- agents { agent { ${m.AGENT_FIELDS} } status jobId error warnings }
34
- }
35
- entries {
36
- id name kind status workspacePath worktreeId worktreePath sizeBytes operation error
37
- modifiedAt volumeId locked activeResources { kind id label href }
38
- agent { ${m.AGENT_FIELDS} }
39
- }
40
- `;function q(e,t){let r=["B","KiB","MiB","GiB","TiB"],a=Math.min(Math.floor(Math.log(Math.max(e,1))/Math.log(1024)),r.length-1);return`${new Intl.NumberFormat(t,{maximumFractionDigits:1}).format(e/1024**a)} ${r[a]}`}function _({entries:e,selected:r,activeOperation:a,locale:n,onSelectionChange:i,onDelete:s,onDeleteMany:o}){let d=(0,c.useTranslations)("buildData"),u=(0,c.useTranslations)("common"),m=e.filter(e=>r.has(e.id)),x=e.length>0&&m.length===e.length;return(0,t.jsxs)(b.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(b.CardHeader,{className:"max-sm:has-data-[slot=card-action]:grid-cols-1",children:[(0,t.jsx)(b.CardTitle,{children:d("deviceSupportTitle")}),(0,t.jsx)(b.CardDescription,{children:d("deviceSupportDescription")}),m.length>0&&(0,t.jsx)(b.CardAction,{className:"max-sm:col-start-1 max-sm:row-start-3 max-sm:row-span-1 max-sm:mt-3 max-sm:justify-self-stretch",children:(0,t.jsx)(h.ConfirmationDialog,{actionLabel:d("deleteSelected"),cancelLabel:u("cancel"),description:d("deleteDeviceSupportDescription",{count:m.length}),onConfirm:()=>o(m.map(e=>e.id)),title:d("deleteDeviceSupportTitle"),trigger:(0,t.jsxs)(j.Button,{disabled:a,size:"sm",variant:"outline",children:[(0,t.jsx)(l.Trash2,{})," ",d("deleteSelected")]})})})]}),0===e.length?(0,t.jsx)(B.Empty,{className:"py-8",children:(0,t.jsx)(B.EmptyHeader,{children:(0,t.jsx)(B.EmptyDescription,{children:d("noDeviceSupport")})})}):(0,t.jsxs)(L.Table,{children:[(0,t.jsx)(L.TableHeader,{children:(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableHead,{className:"w-12",children:(0,t.jsx)($.Checkbox,{"aria-label":d("selectAllDeviceSupport"),checked:!!x||!!m.length&&"indeterminate",onCheckedChange:t=>{for(let r of e)i(r.id,!0===t)}})}),(0,t.jsx)(L.TableHead,{children:d("deviceSupportVersion")}),(0,t.jsx)(L.TableHead,{children:d("size")}),(0,t.jsx)(L.TableHead,{children:d("agent")}),(0,t.jsx)(L.TableHead,{className:"w-12",children:(0,t.jsx)("span",{className:"sr-only",children:d("actions")})})]})}),(0,t.jsx)(L.TableBody,{children:e.map(e=>(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableCell,{children:(0,t.jsx)($.Checkbox,{"aria-label":d("selectEntry",{name:e.name}),checked:r.has(e.id),onCheckedChange:t=>i(e.id,!0===t)})}),(0,t.jsxs)(L.TableCell,{children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:e.name}),"IDLE"!==e.operation&&(0,t.jsx)(k.Spinner,{className:"ml-2"}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]}),(0,t.jsx)(L.TableCell,{className:"tabular-nums",children:null===e.sizeBytes?"—":q(e.sizeBytes,n)}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(C.Link,{className:(0,O.cn)(H.rowLinkClass,"inline-block"),href:`/agents/${e.agent.id}`,children:e.agent.name})}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(h.ConfirmationDialog,{actionLabel:d("delete"),cancelLabel:u("cancel"),description:d("deleteDeviceSupportDescription",{count:1}),onConfirm:()=>s(e.id),title:d("deleteDeviceSupportTitle"),trigger:(0,t.jsx)(j.Button,{"aria-label":d("entryActions",{name:e.name}),disabled:a,size:"icon-sm",variant:"ghost",children:(0,t.jsx)(l.Trash2,{})})})})]},e.id))})]})]})}function W({collection:e}){let r=(0,c.useTranslations)("buildData"),a=e.progress.agents.filter(e=>"SUCCEEDED"!==e.status||e.warnings.length>0);return"COMPLETED"===e.status&&0===a.length?null:(0,t.jsx)(g.Alert,{children:(0,t.jsxs)(g.AlertDescription,{className:"space-y-1",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 font-medium",children:["COLLECTING"===e.status&&(0,t.jsx)(k.Spinner,{}),r("progress",{complete:e.progress.finishedCount,total:e.progress.eligibleCount})]}),a.map(e=>(0,t.jsxs)("p",{children:[e.agent.name,": ",r(`agentStatus.${e.status}`),e.error?` — ${e.error}`:"",e.warnings.length?` — ${e.warnings.join("; ")}`:""]},e.agent.id))]})})}e.s(["BuildDataPage",0,function(){let e=(0,c.useTranslations)("buildData"),m=(0,c.useTranslations)("common"),x=(0,d.useLocale)(),[v,w]=(0,u.useState)(M.createClientId),[D,y]=(0,u.useState)(null),[N,S]=(0,u.useState)(!0),[I,U]=(0,u.useState)(null),[F,G]=(0,u.useState)(new Set),[K,V]=(0,u.useState)(null),J=(0,u.useRef)(null),[Q,Y]=(0,u.useState)(!1),[X,Z]=(0,u.useState)([]),[ee,et]=(0,u.useState)(null),[er,ea]=(0,u.useState)(!0),[en,ei]=(0,u.useState)(0),es=(0,u.useCallback)(e=>{y(e),S(!1),U(null)},[]);(0,u.useEffect)(()=>{let e=!1,t=(0,T.controlPlaneSubscriptions)().subscribe({query:`subscription DerivedDataCollectionChanged($id: ID!) {
41
- derivedDataCollectionChanged(id: $id) { ${z} }
42
- }`,variables:{id:v}},{next:e=>{e.data?.derivedDataCollectionChanged&&es(e.data.derivedDataCollectionChanged)},error:()=>void 0,complete:()=>void 0}),r=async()=>{try{let t=await (0,T.controlPlaneRequest)(`query DerivedDataCollection($id: ID!) {
43
- derivedDataCollection(id: $id) { ${z} }
44
- }`,{id:v});!e&&t.derivedDataCollection&&es(t.derivedDataCollection)}catch{}};(0,T.controlPlaneRequest)(`mutation RefreshDerivedData($requestId: ID!) {
45
- refreshDerivedData(requestId: $requestId) { ${z} }
46
- }`,{requestId:v}).then(t=>!e&&es(t.refreshDerivedData)).catch(t=>{e||(U(t instanceof Error?t.message:String(t)),S(!1))}),r();let a=window.setInterval(()=>void r(),2e3);return()=>{e=!0,t(),window.clearInterval(a)}},[es,v]);let el=(0,u.useCallback)(async e=>{ea(!0);try{let t=await (0,T.controlPlaneRequest)(`query DerivedDataDeletionHistory($after: ID) {
47
- derivedDataDeletionHistory(first: 100, after: $after) {
48
- items { id agentId agentName folderName worktreeId worktreePath source entryKind deletedAt }
49
- nextCursor
50
- }
51
- }`,{after:e??null});Z(r=>e?[...r,...t.derivedDataDeletionHistory.items]:t.derivedDataDeletionHistory.items),et(t.derivedDataDeletionHistory.nextCursor)}catch(e){U(e instanceof Error?e.message:String(e))}finally{ea(!1)}},[]);(0,u.useEffect)(()=>()=>{J.current&&window.clearTimeout(J.current)},[]),(0,u.useEffect)(()=>{let e=window.setTimeout(()=>void el(),0);return()=>window.clearTimeout(e)},[en,el]);let eo=D?.entries??[],ed=eo.filter(e=>"DEVICE_SUPPORT"!==e.kind),ec=eo.filter(e=>"DEVICE_SUPPORT"===e.kind),eu=eo.some(e=>"IDLE"!==e.operation),em=eo.filter(e=>F.has(e.id)),eh=eo.length>0&&em.length===eo.length,ex=em.length>0&&!eh,ep=async(e,t,r=!1)=>{if(D){Y(!0),U(null);try{let a=await (0,T.controlPlaneRequest)(`mutation BuildDataOperation($collectionId: ID!, $entryIds: [ID!]!, $requestId: ID!${"deleteDerivedDataEntries"===e?", $overrideProtection: Boolean":""}) {
52
- ${e}(collectionId: $collectionId, entryIds: $entryIds, requestId: $requestId${"deleteDerivedDataEntries"===e?", overrideProtection: $overrideProtection":""}) {
53
- ${z}
54
- }
55
- }`,{collectionId:D.id,entryIds:t,requestId:(0,M.createClientId)(),overrideProtection:r});es(a[e]),"deleteDerivedDataEntries"===e&&(G(new Set),V(null))}catch(e){U(e instanceof Error?e.message:String(e))}finally{Y(!1)}}},eg=(0,u.useMemo)(()=>eo.length,[eo.length]);(0,u.useEffect)(()=>{let e=window.setTimeout(()=>{eu||N||ei(e=>e+1)},0);return()=>window.clearTimeout(e)},[eu,N,eg]);let ef=(t,r)=>{if(K!==t){V(t),J.current&&window.clearTimeout(J.current),J.current=window.setTimeout(()=>V(null),5e3);return}J.current&&(window.clearTimeout(J.current),J.current=null),V(null);let a=eo.filter(e=>r.includes(e.id)&&(e.locked||(e.activeResources?.length??0)>0));if(a.length){let t=a.map(e=>{let t=e.activeResources?.map(e=>e.label).join(", ");return`${e.name}${e.locked?" (locked)":""}${t?` (${t})`:""}`}).join("\n");if(!window.confirm(e("protectedDeleteWarning",{details:t})))return}ep("deleteDerivedDataEntries",r,a.length>0)},ej=async(e,t)=>{if(D){Y(!0);try{let r=await (0,T.controlPlaneRequest)(`mutation SetDerivedDataEntryLocked($collectionId: ID!, $entryId: ID!, $locked: Boolean!) {
56
- setDerivedDataEntryLocked(collectionId: $collectionId, entryId: $entryId, locked: $locked) {
57
- ${z}
58
- }
59
- }`,{collectionId:D.id,entryId:e.id,locked:t});es(r.setDerivedDataEntryLocked)}catch(e){U(e instanceof Error?e.message:String(e))}finally{Y(!1)}}},eb=(0,u.useMemo)(()=>{let e=new Map;for(let t of X){let r=new Date(t.deletedAt),a=(0,P.dayKey)(r)??t.deletedAt,n=e.get(a)??{label:(0,P.formatDateValue)(r,"long",{locale:x,showTime:!1}),items:[]};n.items.push(t),e.set(a,n)}return[...e.values()]},[X,x]),ev=`bulk:${em.map(e=>e.id).sort().join(":")}`,ew=K===ev;return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(j.Button,{disabled:!eo.length||N||eu||Q,onClick:()=>void ep("calculateDerivedDataSizes",eo.map(e=>e.id)),variant:"outline",children:[(0,t.jsx)(r,{})," ",e("calculateSizes")]}),(0,t.jsxs)(j.Button,{disabled:N||eu,onClick:()=>{S(!0),U(null),G(new Set),V(null),w((0,M.createClientId)())},variant:"outline",children:[(0,t.jsx)(s.RefreshCw,{className:N?"animate-spin":void 0}),e("refresh")]})]})]}),I&&(0,t.jsx)(g.Alert,{variant:"destructive",children:(0,t.jsx)(g.AlertDescription,{children:I})}),(0,t.jsx)(A,{}),D&&(0,t.jsx)(W,{collection:D}),D&&(0,t.jsx)(E.WorkflowResourcePanel,{resourceId:D.id,resourceKind:"BUILD_DATA_COLLECTION",sessionData:{buildData:{id:D.id}}}),N&&!D?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(k.Spinner,{})," ",e("loading")]}):0===eo.length?(0,t.jsx)(B.Empty,{children:(0,t.jsxs)(B.EmptyHeader,{children:[(0,t.jsx)(B.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(B.EmptyDescription,{children:e("emptyDescription")})]})}):(0,t.jsxs)(t.Fragment,{children:[ed.length>0&&(0,t.jsxs)(b.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(b.CardHeader,{children:[(0,t.jsx)(b.CardTitle,{children:e("derivedDataTitle")}),(0,t.jsx)(b.CardDescription,{children:e("derivedDataDescription")})]}),em.length>0&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b p-3",children:[(0,t.jsx)("p",{className:"text-sm",children:e("selected",{count:em.length})}),(0,t.jsxs)(j.Button,{className:"w-40",disabled:eu||Q,onClick:()=>ef(ev,em.map(e=>e.id)),size:"sm",variant:ew?"destructive":"outline",children:[ew?(0,t.jsx)(a.Check,{}):(0,t.jsx)(l.Trash2,{}),ew?e("confirmDelete"):e("deleteSelected")]})]}),(0,t.jsxs)(L.Table,{children:[(0,t.jsx)(L.TableHeader,{children:(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableHead,{className:"w-12",children:(0,t.jsx)($.Checkbox,{"aria-label":e("selectAll"),checked:!!eh||!!ex&&"indeterminate",onCheckedChange:e=>{V(null),G(!0===e?new Set(eo.map(e=>e.id)):new Set)}})}),(0,t.jsx)(L.TableHead,{children:e("folder")}),(0,t.jsx)(L.TableHead,{children:e("worktree")}),(0,t.jsx)(L.TableHead,{children:e("modified")}),(0,t.jsx)(L.TableHead,{children:e("size")}),(0,t.jsx)(L.TableHead,{children:e("agent")}),(0,t.jsx)(L.TableHead,{className:"w-12 text-right",children:(0,t.jsx)("span",{className:"sr-only",children:e("actions")})})]})}),(0,t.jsx)(L.TableBody,{children:ed.map(r=>(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableCell,{children:(0,t.jsx)($.Checkbox,{"aria-label":e("selectEntry",{name:r.name}),checked:F.has(r.id),onCheckedChange:e=>{V(null),G(t=>{let a=new Set(t);return!0===e?a.add(r.id):a.delete(r.id),a})}})}),(0,t.jsxs)(L.TableCell,{children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"break-all font-mono text-xs",children:r.name}),"READY"!==r.status&&(0,t.jsx)(f.Badge,{variant:"secondary",children:e(`status.${r.status}`)}),"IDLE"!==r.operation&&(0,t.jsx)(k.Spinner,{}),r.locked&&(0,t.jsxs)(f.Badge,{variant:"success",children:[(0,t.jsx)(n.Lock,{})," ",e("locked")]})]}),(r.activeResources?.length??0)>0&&(0,t.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:r.activeResources?.map(e=>(0,t.jsx)(C.Link,{href:e.href,children:(0,t.jsx)(f.Badge,{variant:"secondary",children:e.label})},`${e.kind}:${e.id}`))}),r.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:r.error})]}),(0,t.jsx)(L.TableCell,{className:"font-mono text-xs",children:r.worktreeId&&r.worktreePath?(0,t.jsx)(C.Link,{className:"underline-offset-4 hover:underline",href:`/worktrees/${r.worktreeId}`,children:r.worktreePath}):"—"}),(0,t.jsx)(L.TableCell,{className:"whitespace-nowrap text-xs",children:r.modifiedAt?(0,t.jsx)(p.DateTime,{value:r.modifiedAt}):"—"}),(0,t.jsx)(L.TableCell,{className:"tabular-nums",children:null===r.sizeBytes?"—":q(r.sizeBytes,x)}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(C.Link,{className:(0,O.cn)(H.rowLinkClass,"inline-block"),href:`/agents/${r.agent.id}`,children:r.agent.name})}),(0,t.jsx)(L.TableCell,{className:"w-12 text-right",children:(0,t.jsx)("div",{className:"flex items-center justify-end gap-1.5",children:(0,t.jsxs)(R.DropdownMenu,{onOpenChange:e=>{e||K!==`row:${r.id}`||(J.current&&(window.clearTimeout(J.current),J.current=null),V(null))},children:[(0,t.jsx)(R.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(j.Button,{"aria-label":e("entryActions",{name:r.name}),disabled:eu||Q,size:"icon-sm",variant:"ghost",children:(0,t.jsx)(i.MoreHorizontal,{})})}),(0,t.jsxs)(R.DropdownMenuContent,{align:"end",className:"w-48",children:[(0,t.jsxs)(R.DropdownMenuItem,{onSelect:()=>void ej(r,!r.locked),children:[r.locked?(0,t.jsx)(o.default,{}):(0,t.jsx)(n.Lock,{}),r.locked?e("unlock"):e("lock")]}),(0,t.jsxs)(R.DropdownMenuItem,{onSelect:e=>{K!==`row:${r.id}`&&e.preventDefault(),ef(`row:${r.id}`,[r.id])},variant:K===`row:${r.id}`?"destructive":"default",children:[K===`row:${r.id}`?(0,t.jsx)(a.Check,{}):(0,t.jsx)(l.Trash2,{}),K===`row:${r.id}`?e("confirmDelete"):e("delete")]})]})]})})})]},r.id))})]})]}),(0,t.jsx)(_,{activeOperation:eu||Q,entries:ec,locale:x,onDelete:e=>void ep("deleteDerivedDataEntries",[e]),onDeleteMany:e=>void ep("deleteDerivedDataEntries",e),onSelectionChange:(e,t)=>{V(null),G(r=>{let a=new Set(r);return t?a.add(e):a.delete(e),a})},selected:F})]}),(0,t.jsxs)(b.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(b.CardHeader,{className:"max-sm:has-data-[slot=card-action]:grid-cols-1",children:[(0,t.jsx)(b.CardTitle,{children:e("history")}),(0,t.jsx)(b.CardDescription,{children:e("historyDescription")}),X.length>0&&(0,t.jsx)(b.CardAction,{className:"max-sm:col-start-1 max-sm:row-start-3 max-sm:row-span-1 max-sm:mt-3 max-sm:justify-self-stretch",children:(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("clearHistory"),cancelLabel:m("cancel"),description:e("clearHistoryDescription"),onConfirm:async()=>{await (0,T.controlPlaneRequest)("mutation { clearDerivedDataDeletionHistory }"),ei(e=>e+1)},title:e("clearHistoryTitle"),trigger:(0,t.jsxs)(j.Button,{size:"sm",variant:"outline",children:[(0,t.jsx)(l.Trash2,{})," ",e("clearHistory")]})})})]}),er&&0===X.length?(0,t.jsxs)("p",{className:"flex items-center gap-2 p-6 text-sm text-muted-foreground",children:[(0,t.jsx)(k.Spinner,{})," ",e("loadingHistory")]}):0===X.length?(0,t.jsx)(B.Empty,{className:"py-8",children:(0,t.jsx)(B.EmptyHeader,{children:(0,t.jsx)(B.EmptyDescription,{children:e("noHistory")})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(L.Table,{children:[(0,t.jsx)(L.TableHeader,{children:(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableHead,{children:e("folder")}),(0,t.jsx)(L.TableHead,{children:e("worktree")}),(0,t.jsx)(L.TableHead,{children:e("agent")}),(0,t.jsx)(L.TableHead,{children:e("deleted")}),(0,t.jsx)(L.TableHead,{children:e("sourceLabel")})]})}),(0,t.jsx)(L.TableBody,{children:eb.map(r=>(0,t.jsxs)(u.Fragment,{children:[(0,t.jsx)(L.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(L.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:5,children:r.label})}),r.items.map(r=>(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableCell,{className:"font-mono text-xs",children:r.folderName}),(0,t.jsx)(L.TableCell,{className:"font-mono text-xs",children:r.worktreePath??"—"}),(0,t.jsx)(L.TableCell,{children:r.agentName}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(p.DateTime,{kind:"time",relativeToday:!0,value:r.deletedAt})}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(f.Badge,{variant:"secondary",children:e(`source.${r.source}`)})})]},r.id))]},r.label))})]}),ee&&(0,t.jsx)("div",{className:"border-t p-3 text-center",children:(0,t.jsxs)(j.Button,{disabled:er,onClick:()=>void el(ee),variant:"outline",children:[er&&(0,t.jsx)(k.Spinner,{})," ",e("loadMore")]})})]})]})]})}],955862)}]);