@ai-development-environment/server 0.0.56 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/standalone/.next/BUILD_ID +1 -1
- package/standalone/.next/app-path-routes-manifest.json +2 -0
- package/standalone/.next/build-manifest.json +3 -3
- package/standalone/.next/prerender-manifest.json +3 -3
- package/standalone/.next/routes-manifest.json +18 -0
- package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/app-paths-manifest.json +3 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/build-manifest.json +9 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/server-reference-manifest.json +4 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js +12 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.map +5 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.nft.json +1 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route_client-reference-manifest.js +3 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/new/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/new/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/app-paths-manifest.json +3 -0
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/build-manifest.json +9 -0
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/server-reference-manifest.json +4 -0
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js +12 -0
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.map +5 -0
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.nft.json +1 -0
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route_client-reference-manifest.js +3 -0
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/new/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/new/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_global-error.html +1 -1
- package/standalone/.next/server/app/_global-error.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.html +1 -1
- package/standalone/.next/server/app/_not-found.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app-paths-manifest.json +2 -0
- package/standalone/.next/server/chunks/1oeh_server_app_[locale]_commands_runs_[runId]_output_route_actions_1cukkg_.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0690e_i._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0g-b1k_._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0jwejc1._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__19aveol._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1d8yo1w._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1gjcicg._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1kb6o8v._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1m-eb8h._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1tl064i._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1y28_j-._.js +3 -0
- package/standalone/.next/server/chunks/_04easfx._.js +1 -1
- package/standalone/.next/server/chunks/_060s_2_._.js +1 -1
- package/standalone/.next/server/chunks/_0mno1rd._.js +1 -1
- package/standalone/.next/server/chunks/_17vom8o._.js +1 -1
- package/standalone/.next/server/chunks/_1_97_xc._.js +1 -1
- package/standalone/.next/server/chunks/_1hmzed-._.js +1 -1
- package/standalone/.next/server/chunks/_1ua7367._.js +1 -1
- package/standalone/.next/server/chunks/_next-internal_server_app_[locale]_builds_[buildId]_output_route_actions_1taut05.js +3 -0
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__12ujp5k._.js → [root-of-the-server]__0lmk9bz._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__163pha9._.js → [root-of-the-server]__1102h2k._.js} +10 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__04vu2d2._.js → [root-of-the-server]__1246vo_._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1zdw3xq._.js → [root-of-the-server]__13y5te1._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__14x7em1._.js → [root-of-the-server]__15g2tdw._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1urzzjr._.js → [root-of-the-server]__1c5ldng._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0szkx1z._.js → [root-of-the-server]__1etlhw0._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_02c2d4f._.js +24 -0
- package/standalone/.next/server/chunks/ssr/{_0mpp4zy._.js → _046yruk._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/{_17qauas._.js → _04o65jz._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_1i8x-4q._.js → _0bobqfl._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/{_0u5fbj1._.js → _0lkknxk._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0ywojby._.js +24 -0
- package/standalone/.next/server/chunks/ssr/{_0ts0l7b._.js → _0zjisu4._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_182yko5._.js → _18cp9pu._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_1eryu4w._.js +19 -0
- package/standalone/.next/server/chunks/ssr/{_0cc1vi6._.js → _1l052-e._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_1lic210._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +10 -10
- package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
- package/standalone/.next/server/chunks/ssr/node_modules_0k28hjd._.js +3 -0
- package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +5 -5
- package/standalone/.next/server/functions-config-manifest.json +2 -0
- package/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/standalone/.next/server/pages/404.html +1 -1
- package/standalone/.next/server/pages/500.html +1 -1
- package/standalone/.next/server/server-reference-manifest.js +1 -1
- package/standalone/.next/server/server-reference-manifest.json +1 -1
- package/standalone/.next/static/chunks/{0n2u5wjjmaseb.js → 04zmk6cyju031.js} +1 -1
- package/standalone/.next/static/chunks/{09q-nz-e_tbiy.js → 0f6x_7136ws5e.js} +1 -1
- package/standalone/.next/static/chunks/{3tfj2uhflnkvu.js → 0fm8vlctux_d4.js} +7 -7
- package/standalone/.next/static/chunks/{27a270srtknzi.js → 0k-tj18pj2jw3.js} +3 -3
- package/standalone/.next/static/chunks/{3r2wqa5gcorck.js → 0ntu55tvqo74a.js} +7 -7
- package/standalone/.next/static/chunks/0qo8_-dnk-8es.js +22 -0
- package/standalone/.next/static/chunks/{1kwddx0lygohb.js → 12pz55savz83-.js} +1 -1
- package/standalone/.next/static/chunks/18-qgh9p9g9gn.js +17 -0
- package/standalone/.next/static/chunks/{0tm88xq1je0ik.js → 1ehd9ff-t9y4q.js} +1 -1
- package/standalone/.next/static/chunks/{3ege33ljteolq.js → 1gsma655t74si.js} +1 -1
- package/standalone/.next/static/chunks/{1mmo8lspdk0y2.js → 1kas2cg1m9t70.js} +8 -8
- package/standalone/.next/static/chunks/{446mel_yhca9u.js → 2a7-21p5ltjf0.js} +2 -2
- package/standalone/.next/static/chunks/{3_tux_4hkdpja.js → 2buxoh6cj1vav.js} +1 -1
- package/standalone/.next/static/chunks/{1-v397t7o9cqz.js → 2grj-b5r57kpq.js} +2 -2
- package/standalone/.next/static/chunks/2kc9nohdlg9t0.js +1 -0
- package/standalone/.next/static/chunks/{3o8__1my6dk1_.js → 2yqx6j1xnzns8.js} +1 -1
- package/standalone/.next/static/chunks/{2ne14u5xzix6t.js → 3atzn4uq1z4g-.js} +1 -1
- package/standalone/.next/static/chunks/3cuivj8-h9d2a.js +1 -0
- package/standalone/.next/static/chunks/{1y-end2fvx0wt.js → 3kz00cbmpyo2-.js} +1 -1
- package/standalone/.next/static/chunks/{26dvl4pn5yw16.js → 3nxz8k1j8fgad.js} +7 -7
- package/standalone/.next/static/chunks/3sr3c0rfmkyg2.js +23 -0
- package/standalone/.next/static/chunks/3xx3qtf7ebz58.css +1 -0
- package/standalone/.next/server/chunks/ssr/_03tz2ed._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0_7xzsn._.js +0 -19
- package/standalone/.next/server/chunks/ssr/_0brpuee._.js +0 -24
- package/standalone/.next/server/chunks/ssr/_0jklnn-._.js +0 -11
- package/standalone/.next/server/chunks/ssr/_0qppm0k._.js +0 -24
- package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_react-menu_dist_index_mjs_0r8d9ly._.js +0 -3
- package/standalone/.next/server/chunks/ssr/src_096v3r6._.js +0 -3
- package/standalone/.next/static/chunks/0oyi9lj201nul.css +0 -1
- package/standalone/.next/static/chunks/168hnxx43r6g0.js +0 -27
- package/standalone/.next/static/chunks/193zouh7q03-q.js +0 -22
- package/standalone/.next/static/chunks/19fy68juspikd.js +0 -23
- package/standalone/.next/static/chunks/1c42xu-oct3-l.js +0 -1
- package/standalone/.next/static/chunks/33u7b61cg10r7.js +0 -17
- /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_clientMiddlewareManifest.js +0 -0
- /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_ssgManifest.js +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),i=e.i(975157);let r=(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,i.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,i.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,i.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,i.cn)(r({variant:a,className:e})),...n})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,i.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},725981,e=>{"use strict";let t=(0,e.i(456420).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],725981)},624687,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Textarea",0,function({className:e,...i}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,a.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...i})}])},21357,e=>{"use strict";let t=(0,e.i(456420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],21357)},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)},671028,e=>{"use strict";let t=(0,e.i(456420).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,t],671028)},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,e=>{"use strict";var t=e.i(843476);e.i(688194);var a=e.i(636162),i=e.i(456420);let r=(0,i.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);var n=e.i(876561);let s=(0,i.default)("beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]),l=(0,i.default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),o=(0,i.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);var d=e.i(452330),c=e.i(671028),u=e.i(93384);let p=(0,i.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),m=(0,i.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var g=e.i(21357);let h=(0,i.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var f=e.i(584026),x=e.i(986206),v=e.i(328623),b=e.i(604139);let y=(0,i.default)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);var j=e.i(747925);let S={apple:a.Apple,"app-window":r,archive:n.Archive,beaker:s,box:l,bug:o,code:d.Code2,gauge:c.Gauge,hammer:u.Hammer,layers:p,package:m,play:g.Play,rocket:h,shield:f.ShieldCheck,smartphone:x.Smartphone,sparkles:v.Sparkles,terminal:b.Terminal,"test-tube":y,wrench:j.Wrench};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let a=S[e];return a?(0,t.jsx)(a,{"aria-hidden":!0,className:"size-4"}):null}],687862)},755838,(e,t,a)=>{"use strict";var i=e.r(271645),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=i.useState,s=i.useEffect,l=i.useLayoutEffect,o=i.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!r(e,a)}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 a=t(),i=n({inst:{value:a,getSnapshot:t}}),r=i[0].inst,c=i[1];return l(function(){r.value=a,r.getSnapshot=t,d(r)&&c({inst:r})},[e,a,t]),s(function(){return d(r)&&c({inst:r}),e(function(){d(r)&&c({inst:r})})},[e]),o(a),a};a.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},802239,(e,t,a)=>{"use strict";t.exports=e.r(755838)},776639,e=>{"use strict";var t=e.i(843476),a=e.i(560964),i=e.i(964053),r=e.i(519455),n=e.i(975157);function s({...e}){return(0,t.jsx)(i.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(i.Dialog.Overlay,{className:(0,n.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",...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(i.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)(i.Dialog.Content,{className:(0,n.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)(i.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)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(i.Dialog.Description,{className:(0,n.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...a})},"DialogFooter",0,function({className:e,showCloseButton:a=!1,children:s,...l}){return(0,t.jsxs)("div",{className:(0,n.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,a&&(0,t.jsx)(i.Dialog.Close,{asChild:!0,children:(0,t.jsx)(r.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...a})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(i.Dialog.Title,{className:(0,n.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...a})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(i.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),i=e.i(975157);let r=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,i.cn)(r({variant:a}),e),...n})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,i.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,i.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:i="default",...r}){return(0,t.jsx)("div",{"data-slot":"card","data-size":i,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...r})},"CardAction",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...i})},"CardContent",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...i})},"CardDescription",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...i})},"CardFooter",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...i})},"CardHeader",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...i})},"CardTitle",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...i})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...i})})},"TableBody",0,function({className:e,...i}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...i})},"TableCell",0,function({className:e,...i}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...i})},"TableFooter",0,function({className:e,...i}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...i})},"TableHead",0,function({className:e,...i}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...i})},"TableHeader",0,function({className:e,...i}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...i})},"TableRow",0,function({className:e,...i}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...i})}])},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])},635416,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,t],635416)},96892,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],96892)},506184,e=>{"use strict";let t=(0,e.i(456420).default)("paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);e.s(["Paintbrush",0,t],506184)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},515281,e=>{"use strict";let t=(0,e.i(456420).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],515281)},688194,e=>{"use strict";e.s(["BUILD_ACTIONS",0,["BUILD","TEST","ANALYZE","ARCHIVE","BUILD_FOR_TESTING","TEST_WITHOUT_BUILDING"],"BUILD_CONFIGURATION_ICON_KEYS",0,["apple","app-window","archive","beaker","box","bug","code","gauge","hammer","layers","package","play","rocket","shield","smartphone","sparkles","terminal","test-tube","wrench"],"BUILD_EXPORT_METHODS",0,["DEBUGGING","RELEASE_TESTING","ENTERPRISE","APP_STORE_CONNECT"],"EXPORT_METHOD_PROFILE_TYPES",0,{DEBUGGING:"DEVELOPMENT",RELEASE_TESTING:"AD_HOC",ENTERPRISE:"ENTERPRISE",APP_STORE_CONNECT:"APP_STORE"},"profileCoversBundle",0,function(e,t){return"*"===e||(e.endsWith(".*")?t.startsWith(e.slice(0,-1)):e===t)}])},997778,e=>{"use strict";var t=e.i(843476),a=e.i(948148),i=e.i(271645),r=e.i(755146);e.s(["WorkflowChoiceMenu",0,function({button:e,choices:n,hasPlainTrigger:s=!1,onRun:l}){let o=(0,a.useTranslations)("workflows");return n.length?(0,t.jsxs)(r.DropdownMenu,{children:[(0,t.jsx)(r.DropdownMenuTrigger,{asChild:!0,children:e}),(0,t.jsxs)(r.DropdownMenuContent,{align:"start",className:"max-w-64",children:[s&&(0,t.jsx)(r.DropdownMenuItem,{onSelect:()=>l(null),children:o("fullRun")}),n.map(e=>(0,t.jsx)(r.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,i.cloneElement)(e,{onClick:()=>l(null)})}])},225780,434322,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(716327);let r=(0,e.i(456420).default)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);e.s(["FileCode2",0,r],434322);var n=e.i(487486),s=e.i(975157);function l({patch:e,truncated:a=!1,truncatedLabel:i,className:r}){return(0,t.jsxs)("div",{className:(0,s.cn)("overflow-auto rounded-md border bg-neutral-950 font-mono text-xs text-neutral-100",r),children:[e.split("\n").map((e,a)=>(0,t.jsx)("div",{className:(0,s.cn)("min-w-max px-3 whitespace-pre",e.startsWith("+")&&!e.startsWith("+++")&&"bg-emerald-950/70 text-emerald-200",e.startsWith("-")&&!e.startsWith("---")&&"bg-red-950/70 text-red-200",e.startsWith("@@")&&"bg-blue-950/60 text-blue-200"),children:e||" "},`${a}:${e}`)),a&&i&&(0,t.jsx)("p",{className:"border-t p-2 text-amber-300",children:i})]})}e.s(["ExpandablePatchView",0,function({patch:e,className:o}){let d=(0,a.useMemo)(()=>(function(e){let t=e.split("\n"),a=[],i=[];for(let e of t)e.startsWith("diff --git ")&&i.length&&(a.push(i),i=[]),i.push(e);return i.some(Boolean)&&a.push(i),a.map((e,t)=>{let a=e.find(e=>e.startsWith("diff --git ")),i=a?.match(/^diff --git a\/(.+) b\/(.+)$/),r=i?.[1],n=i?.[2],s=e.some(e=>e.startsWith("new file mode")),l=e.some(e=>e.startsWith("deleted file mode")),o=e.some(e=>e.startsWith("rename from ")),d=n??e.find(e=>e.startsWith("+++ "))?.replace(/^\+\+\+ (?:b\/)?/,"")??r??`Patch ${t+1}`;return{key:`${r??""}:${d}:${t}`,path:d,patch:e.join("\n"),additions:e.filter(e=>e.startsWith("+")&&!e.startsWith("+++")).length,deletions:e.filter(e=>e.startsWith("-")&&!e.startsWith("---")).length,status:s?"A":l?"D":o?"R":"M"}})})(e),[e]),[c,u]=(0,a.useState)(new Set);return(0,t.jsx)("div",{className:(0,s.cn)("divide-y overflow-hidden rounded-md border",o),children:d.map(e=>{let a=c.has(e.key);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>u(t=>{let a=new Set(t);return a.has(e.key)?a.delete(e.key):a.add(e.key),a}),type:"button",children:[(0,t.jsx)(i.ChevronDown,{className:(0,s.cn)("size-3.5 shrink-0 transition-transform",a&&"rotate-180")}),(0,t.jsx)(r,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:e.path}),(0,t.jsx)(n.Badge,{className:"h-5 px-1.5",variant:"outline",children:e.status}),(0,t.jsxs)("span",{className:"text-xs text-emerald-600 tabular-nums",children:["+",e.additions]}),(0,t.jsxs)("span",{className:"text-xs text-red-600 tabular-nums",children:["−",e.deletions]})]}),a&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-3",children:(0,t.jsx)(l,{patch:e.patch})})]},e.key)})})},"PatchView",0,l],225780)},90969,771777,866026,e=>{"use strict";e.s(["buildDuration",0,function(e,t=Date.now()){let a=e.durationMs??(e.startedAt&&null!==t&&["QUEUED","PREPARING","RUNNING"].includes(e.status)?t-Date.parse(e.startedAt):null);if(null===a||!Number.isFinite(a))return"—";let i=Math.max(0,Math.floor(a/1e3)),r=Math.floor(i/3600),n=Math.floor(i%3600/60),s=i%60;return r>0?`${r}h${n>0?` ${n}m`:""}`:n>0?`${n}m${s>0?` ${s}s`:""}`:`${s}s`},"buildSnapshotName",0,function(e){let t=e.snapshot.repository,a=e.snapshot.worktree;return{repository:t?.name??"—",worktree:a?.branch??a?.folder??"—"}},"buildStatusVariant",0,function(e){return"FAILED"===e?"destructive":"SUCCEEDED"===e?"success":"secondary"}],90969);var t=e.i(843476),a=e.i(395925),i=e.i(948148),r=e.i(271645),n=e.i(519455),s=e.i(987968),l=e.i(462777),o=e.i(637611);e.s(["RebuildButton",0,function({buildId:e,onCompleted:d,onError:c,size:u="default"}){let p=(0,i.useTranslations)("builds"),[m,g]=(0,r.useState)(!1),h=async()=>{g(!0),c(null);try{let t=await (0,o.controlPlaneRequest)(`mutation RebuildBuild($id: ID!, $requestId: ID!) {
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),i=e.i(975157);let r=(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,i.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,i.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,i.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,i.cn)(r({variant:a,className:e})),...n})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,i.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},725981,e=>{"use strict";let t=(0,e.i(456420).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],725981)},624687,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Textarea",0,function({className:e,...i}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,a.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...i})}])},21357,e=>{"use strict";let t=(0,e.i(456420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],21357)},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)},671028,e=>{"use strict";let t=(0,e.i(456420).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,t],671028)},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,e=>{"use strict";var t=e.i(843476);e.i(688194);var a=e.i(636162),i=e.i(456420);let r=(0,i.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);var n=e.i(876561);let s=(0,i.default)("beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]),l=(0,i.default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),o=(0,i.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);var d=e.i(452330),u=e.i(671028),c=e.i(93384);let p=(0,i.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),m=(0,i.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var g=e.i(21357);let h=(0,i.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var f=e.i(584026),x=e.i(986206),v=e.i(328623),b=e.i(604139);let y=(0,i.default)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);var j=e.i(747925);let S={apple:a.Apple,"app-window":r,archive:n.Archive,beaker:s,box:l,bug:o,code:d.Code2,gauge:u.Gauge,hammer:c.Hammer,layers:p,package:m,play:g.Play,rocket:h,shield:f.ShieldCheck,smartphone:x.Smartphone,sparkles:v.Sparkles,terminal:b.Terminal,"test-tube":y,wrench:j.Wrench};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let a=S[e];return a?(0,t.jsx)(a,{"aria-hidden":!0,className:"size-4"}):null}],687862)},755838,(e,t,a)=>{"use strict";var i=e.r(271645),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=i.useState,s=i.useEffect,l=i.useLayoutEffect,o=i.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!r(e,a)}catch(e){return!0}}var u="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),i=n({inst:{value:a,getSnapshot:t}}),r=i[0].inst,u=i[1];return l(function(){r.value=a,r.getSnapshot=t,d(r)&&u({inst:r})},[e,a,t]),s(function(){return d(r)&&u({inst:r}),e(function(){d(r)&&u({inst:r})})},[e]),o(a),a};a.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:u},802239,(e,t,a)=>{"use strict";t.exports=e.r(755838)},776639,e=>{"use strict";var t=e.i(843476),a=e.i(560964),i=e.i(964053),r=e.i(519455),n=e.i(975157);function s({...e}){return(0,t.jsx)(i.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(i.Dialog.Overlay,{className:(0,n.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",...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(i.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,showCloseButton:d=!0,...u}){return(0,t.jsxs)(s,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(i.Dialog.Content,{className:(0,n.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",...u,children:[o,d&&(0,t.jsx)(i.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)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(i.Dialog.Description,{className:(0,n.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...a})},"DialogFooter",0,function({className:e,showCloseButton:a=!1,children:s,...l}){return(0,t.jsxs)("div",{className:(0,n.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,a&&(0,t.jsx)(i.Dialog.Close,{asChild:!0,children:(0,t.jsx)(r.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...a})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(i.Dialog.Title,{className:(0,n.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...a})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(i.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),i=e.i(975157);let r=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,i.cn)(r({variant:a}),e),...n})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,i.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,i.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:i="default",...r}){return(0,t.jsx)("div",{"data-slot":"card","data-size":i,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...r})},"CardAction",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...i})},"CardContent",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...i})},"CardDescription",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...i})},"CardFooter",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...i})},"CardHeader",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...i})},"CardTitle",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...i})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...i})})},"TableBody",0,function({className:e,...i}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...i})},"TableCell",0,function({className:e,...i}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...i})},"TableFooter",0,function({className:e,...i}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...i})},"TableHead",0,function({className:e,...i}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...i})},"TableHeader",0,function({className:e,...i}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...i})},"TableRow",0,function({className:e,...i}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...i})}])},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])},635416,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,t],635416)},96892,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],96892)},506184,e=>{"use strict";let t=(0,e.i(456420).default)("paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);e.s(["Paintbrush",0,t],506184)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},515281,e=>{"use strict";let t=(0,e.i(456420).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],515281)},688194,e=>{"use strict";e.s(["BUILD_ACTIONS",0,["BUILD","TEST","ANALYZE","ARCHIVE","BUILD_FOR_TESTING","TEST_WITHOUT_BUILDING"],"BUILD_CONFIGURATION_ICON_KEYS",0,["apple","app-window","archive","beaker","box","bug","code","gauge","hammer","layers","package","play","rocket","shield","smartphone","sparkles","terminal","test-tube","wrench"],"BUILD_EXPORT_METHODS",0,["DEBUGGING","RELEASE_TESTING","ENTERPRISE","APP_STORE_CONNECT"],"EXPORT_METHOD_PROFILE_TYPES",0,{DEBUGGING:"DEVELOPMENT",RELEASE_TESTING:"AD_HOC",ENTERPRISE:"ENTERPRISE",APP_STORE_CONNECT:"APP_STORE"},"profileCoversBundle",0,function(e,t){return"*"===e||(e.endsWith(".*")?t.startsWith(e.slice(0,-1)):e===t)}])},997778,e=>{"use strict";var t=e.i(843476),a=e.i(948148),i=e.i(271645),r=e.i(755146);e.s(["WorkflowChoiceMenu",0,function({button:e,choices:n,hasPlainTrigger:s=!1,onRun:l}){let o=(0,a.useTranslations)("workflows");return n.length?(0,t.jsxs)(r.DropdownMenu,{children:[(0,t.jsx)(r.DropdownMenuTrigger,{asChild:!0,children:e}),(0,t.jsxs)(r.DropdownMenuContent,{align:"start",className:"max-w-64",children:[s&&(0,t.jsx)(r.DropdownMenuItem,{onSelect:()=>l(null),children:o("fullRun")}),n.map(e=>(0,t.jsx)(r.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,i.cloneElement)(e,{onClick:()=>l(null)})}])},225780,434322,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(716327);let r=(0,e.i(456420).default)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);e.s(["FileCode2",0,r],434322);var n=e.i(487486),s=e.i(975157);function l({patch:e,truncated:a=!1,truncatedLabel:i,className:r}){return(0,t.jsxs)("div",{className:(0,s.cn)("overflow-auto rounded-md border bg-neutral-950 font-mono text-xs text-neutral-100",r),children:[e.split("\n").map((e,a)=>(0,t.jsx)("div",{className:(0,s.cn)("min-w-max px-3 whitespace-pre",e.startsWith("+")&&!e.startsWith("+++")&&"bg-emerald-950/70 text-emerald-200",e.startsWith("-")&&!e.startsWith("---")&&"bg-red-950/70 text-red-200",e.startsWith("@@")&&"bg-blue-950/60 text-blue-200"),children:e||" "},`${a}:${e}`)),a&&i&&(0,t.jsx)("p",{className:"border-t p-2 text-amber-300",children:i})]})}e.s(["ExpandablePatchView",0,function({patch:e,className:o}){let d=(0,a.useMemo)(()=>(function(e){let t=e.split("\n"),a=[],i=[];for(let e of t)e.startsWith("diff --git ")&&i.length&&(a.push(i),i=[]),i.push(e);return i.some(Boolean)&&a.push(i),a.map((e,t)=>{let a=e.find(e=>e.startsWith("diff --git ")),i=a?.match(/^diff --git a\/(.+) b\/(.+)$/),r=i?.[1],n=i?.[2],s=e.some(e=>e.startsWith("new file mode")),l=e.some(e=>e.startsWith("deleted file mode")),o=e.some(e=>e.startsWith("rename from ")),d=n??e.find(e=>e.startsWith("+++ "))?.replace(/^\+\+\+ (?:b\/)?/,"")??r??`Patch ${t+1}`;return{key:`${r??""}:${d}:${t}`,path:d,patch:e.join("\n"),additions:e.filter(e=>e.startsWith("+")&&!e.startsWith("+++")).length,deletions:e.filter(e=>e.startsWith("-")&&!e.startsWith("---")).length,status:s?"A":l?"D":o?"R":"M"}})})(e),[e]),[u,c]=(0,a.useState)(new Set);return(0,t.jsx)("div",{className:(0,s.cn)("divide-y overflow-hidden rounded-md border",o),children:d.map(e=>{let a=u.has(e.key);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>c(t=>{let a=new Set(t);return a.has(e.key)?a.delete(e.key):a.add(e.key),a}),type:"button",children:[(0,t.jsx)(i.ChevronDown,{className:(0,s.cn)("size-3.5 shrink-0 transition-transform",a&&"rotate-180")}),(0,t.jsx)(r,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:e.path}),(0,t.jsx)(n.Badge,{className:"h-5 px-1.5",variant:"outline",children:e.status}),(0,t.jsxs)("span",{className:"text-xs text-emerald-600 tabular-nums",children:["+",e.additions]}),(0,t.jsxs)("span",{className:"text-xs text-red-600 tabular-nums",children:["−",e.deletions]})]}),a&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-3",children:(0,t.jsx)(l,{patch:e.patch})})]},e.key)})})},"PatchView",0,l],225780)},90969,771777,866026,e=>{"use strict";e.s(["buildDuration",0,function(e,t=Date.now()){let a=e.durationMs??(e.startedAt&&null!==t&&["QUEUED","PREPARING","RUNNING"].includes(e.status)?t-Date.parse(e.startedAt):null);if(null===a||!Number.isFinite(a))return"—";let i=Math.max(0,Math.floor(a/1e3)),r=Math.floor(i/3600),n=Math.floor(i%3600/60),s=i%60;return r>0?`${r}h${n>0?` ${n}m`:""}`:n>0?`${n}m${s>0?` ${s}s`:""}`:`${s}s`},"buildSnapshotName",0,function(e){let t=e.snapshot.repository,a=e.snapshot.worktree;return{repository:t?.name??"—",worktree:a?.branch??a?.folder??"—"}},"buildStatusVariant",0,function(e){return"FAILED"===e?"destructive":"SUCCEEDED"===e?"success":"secondary"}],90969);var t=e.i(843476),a=e.i(395925),i=e.i(948148),r=e.i(271645),n=e.i(519455),s=e.i(987968),l=e.i(462777),o=e.i(637611);e.s(["RebuildButton",0,function({buildId:e,onCompleted:d,onError:u,size:c="default"}){let p=(0,i.useTranslations)("builds"),[m,g]=(0,r.useState)(!1),h=async()=>{g(!0),u(null);try{let t=await (0,o.controlPlaneRequest)(`mutation RebuildBuild($id: ID!, $requestId: ID!) {
|
|
2
2
|
rebuildBuild(id: $id, requestId: $requestId) { id status }
|
|
3
|
-
}`,{id:e,requestId:(0,l.createClientId)()});await d?.(t.rebuildBuild)}catch(e){
|
|
3
|
+
}`,{id:e,requestId:(0,l.createClientId)()});await d?.(t.rebuildBuild)}catch(e){u(e instanceof Error?e.message:String(e))}finally{g(!1)}};return(0,t.jsxs)(n.Button,{disabled:m,onClick:e=>{e.stopPropagation(),h()},onKeyDown:e=>e.stopPropagation(),size:c,type:"button",variant:"outline",children:[m?(0,t.jsx)(s.Spinner,{}):(0,t.jsx)(a.RotateCcw,{})," ",p("rebuild")]})}],771777);var d=e.i(716327),u=e.i(21357),c=e.i(755146);e.s(["RunBuildControls",0,function({buildId:e,destinationType:a,preferredDestination:p,onCompleted:m,onError:g,size:h="default"}){let f=(0,i.useTranslations)("builds"),x=p?.generic?null:p??null,[v,b]=(0,r.useState)(x?[x]:[]),[y,j]=(0,r.useState)(x?new Set([x.id]):new Set),[S,C]=(0,r.useState)(!1),[I,k]=(0,r.useState)(!1),[w,N]=(0,r.useState)(!1),E=(0,r.useMemo)(()=>v.filter(e=>y.has(e.id)).map(e=>e.name),[v,y]),T=async()=>{k(!0),g(null);try{let t=(await (0,o.controlPlaneRequest)(`mutation BuildRunDestinations($buildId: ID!, $requestId: ID!) {
|
|
4
4
|
inspectBuildRunDestinations(buildId: $buildId, requestId: $requestId)
|
|
5
5
|
}`,{buildId:e,requestId:(0,l.createClientId)()})).inspectBuildRunDestinations.filter(e=>e.type===a&&!e.generic);b(t),j(e=>{let a=new Set(t.map(e=>e.id));return new Set([...e].filter(e=>a.has(e)))}),C(!0)}catch(e){g(e instanceof Error?e.message:String(e))}finally{k(!1)}},A=async()=>{N(!0),g(null);try{await (0,o.controlPlaneRequest)(`mutation RunCompletedBuild($input: RunBuildInput!) {
|
|
6
6
|
runBuild(input: $input) { id status }
|
|
7
|
-
}`,{input:{buildId:e,destinations:v.filter(e=>y.has(e.id)),requestId:(0,l.createClientId)()}}),j(new Set),await m?.()}catch(e){g(e instanceof Error?e.message:String(e))}finally{N(!1)}};return(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,t.jsxs)(
|
|
7
|
+
}`,{input:{buildId:e,destinations:v.filter(e=>y.has(e.id)),requestId:(0,l.createClientId)()}}),j(new Set),await m?.()}catch(e){g(e instanceof Error?e.message:String(e))}finally{N(!1)}};return(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,t.jsxs)(c.DropdownMenu,{onOpenChange:e=>{e&&!S&&T()},children:[(0,t.jsx)(c.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{disabled:I,size:h,type:"button",variant:"outline",children:[I?(0,t.jsx)(s.Spinner,{}):(0,t.jsx)(u.Play,{}),E.length?f("selectedDevices",{count:E.length}):f("selectRunDevices"),(0,t.jsx)(d.ChevronDown,{})]})}),(0,t.jsxs)(c.DropdownMenuContent,{align:"end",className:"w-72",children:[v.map(e=>(0,t.jsxs)(c.DropdownMenuCheckboxItem,{checked:y.has(e.id),onCheckedChange:t=>j(a=>{let i=new Set(a);return t?i.add(e.id):i.delete(e.id),i}),children:[e.name,e.osVersion?` \xb7 ${e.osVersion}`:""]},e.id)),S&&!v.length&&(0,t.jsx)("p",{className:"p-2 text-xs text-muted-foreground",children:f("noCompatibleDevices")})]})]}),(0,t.jsxs)(n.Button,{disabled:w||0===y.size,onClick:()=>void A(),size:h,type:"button",children:[w?(0,t.jsx)(s.Spinner,{}):(0,t.jsx)(u.Play,{})," ",f("run")]})]})}],866026)},183691,e=>{"use strict";let t=`
|
|
8
8
|
id name description script targetKind targetAgentId targetRepositoryId
|
|
9
9
|
restartPolicy restartLimit quickActionEnabled quickActionIconKey quickActionButtonVariant
|
|
10
10
|
notificationsEnabled
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
agent { id name hostname connectionStatus capabilities }
|
|
23
23
|
worktree { id folder branch highlightColor }
|
|
24
24
|
attempts { id attempt status exitCode signal error startedAt finishedAt }
|
|
25
|
-
`;e.s(["COMMAND_DEFINITION_FIELDS",0,t,"COMMAND_RUN_FIELDS",0,a,"activeCommandRun",0,e=>["QUEUED","RUNNING","RESTARTING","CANCELLING"].includes(e),"commandOriginKey",0,e=>{switch(e){case"QUICK_ACTION":return"originQuickAction";case"WORKFLOW":return"originWorkflow";case"RERUN":return"originRerun";default:return"originManual"}},"commandRestartKey",0,e=>{switch(e){case"ON_FAILURE":return"onFailure";case"ALWAYS":return"always";default:return"never"}},"commandStatusKey",0,e=>{switch(e){case"QUEUED":return"statusQueued";case"RUNNING":return"statusRunning";case"RESTARTING":return"statusRestarting";case"CANCELLING":return"statusCancelling";case"SUCCEEDED":return"statusSucceeded";case"FAILED":return"statusFailed";case"CANCELLED":return"statusCancelled";case"TIMED_OUT":return"statusTimedOut";default:return"status"}},"commandTargetKey",0,e=>{switch(e){case"ANY_AGENT_HOME":return"anyAgentHome";case"SPECIFIC_AGENT_HOME":return"specificAgentHome";case"REPOSITORY_WORKTREE":return"repositoryWorktree";default:return"anyWorktree"}}])},653269,e=>{"use strict";var t=e.i(843476),a=e.i(948148),i=e.i(271645),r=e.i(687862),n=e.i(929592),s=e.i(519455),l=e.i(515288),o=e.i(987968),d=e.i(520133),
|
|
25
|
+
`;e.s(["COMMAND_DEFINITION_FIELDS",0,t,"COMMAND_RUN_FIELDS",0,a,"activeCommandRun",0,e=>["QUEUED","RUNNING","RESTARTING","CANCELLING"].includes(e),"commandOriginKey",0,e=>{switch(e){case"QUICK_ACTION":return"originQuickAction";case"WORKFLOW":return"originWorkflow";case"RERUN":return"originRerun";default:return"originManual"}},"commandRestartKey",0,e=>{switch(e){case"ON_FAILURE":return"onFailure";case"ALWAYS":return"always";default:return"never"}},"commandStatusKey",0,e=>{switch(e){case"QUEUED":return"statusQueued";case"RUNNING":return"statusRunning";case"RESTARTING":return"statusRestarting";case"CANCELLING":return"statusCancelling";case"SUCCEEDED":return"statusSucceeded";case"FAILED":return"statusFailed";case"CANCELLED":return"statusCancelled";case"TIMED_OUT":return"statusTimedOut";default:return"status"}},"commandTargetKey",0,e=>{switch(e){case"ANY_AGENT_HOME":return"anyAgentHome";case"SPECIFIC_AGENT_HOME":return"specificAgentHome";case"REPOSITORY_WORKTREE":return"repositoryWorktree";default:return"anyWorktree"}}])},653269,e=>{"use strict";var t=e.i(843476),a=e.i(948148),i=e.i(271645),r=e.i(687862),n=e.i(929592),s=e.i(519455),l=e.i(515288),o=e.i(987968),d=e.i(520133),u=e.i(637611),c=e.i(183691);e.s(["CommandQuickActions",0,function({agentId:e,worktreeId:p,agentCapabilities:m,title:g,description:h}){let f=(0,a.useTranslations)("commands"),[x,v]=(0,i.useState)([]),[b,y]=(0,i.useState)(null),[j,S]=(0,i.useState)({}),[C,I]=(0,i.useState)(null),k=m.includes("command.run");(0,i.useEffect)(()=>{let t=e?`query AgentCommandQuickActions($id: ID!) { eligibleCommandsForAgent(agentId: $id) { ${c.COMMAND_DEFINITION_FIELDS} } }`:`query WorktreeCommandQuickActions($id: ID!) { eligibleCommandsForWorktree(worktreeId: $id) { ${c.COMMAND_DEFINITION_FIELDS} } }`;Promise.resolve((0,u.controlPlaneRequest)(t,{id:e??p})).then(e=>{e&&v((e.eligibleCommandsForAgent??e.eligibleCommandsForWorktree??[]).filter(e=>e.quickActionEnabled))}).catch(e=>I(e instanceof Error?e.message:String(e)))},[e,p]);let w=async t=>{y(t.id);try{let a=await (0,u.controlPlaneRequest)("mutation RunCommandQuickAction($input: StartCommandRunInput!) { startCommandRun(input: $input) { id } }",{input:{commandId:t.id,origin:"QUICK_ACTION",...e?{agentId:e}:{worktreeId:p}}});S(e=>({...e,[t.id]:a.startCommandRun.id})),I(null)}catch(e){I(e instanceof Error?e.message:String(e))}finally{y(null)}};if(!x.length&&!C)return null;let N=(0,t.jsxs)("div",{className:"w-full space-y-2",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[x.map(e=>{let a=j[e.id];return(0,t.jsxs)("div",{className:"flex",children:[a&&(0,t.jsx)(s.Button,{asChild:!0,className:"rounded-r-none",size:"sm",variant:"outline",children:(0,t.jsxs)(d.Link,{href:`/commands/runs/${a}`,children:[(0,t.jsx)(o.Spinner,{}),f("view")]})}),(0,t.jsxs)(s.Button,{className:a?"-ml-px rounded-l-none":void 0,disabled:!k||null!==b,onClick:t=>{t.preventDefault(),t.stopPropagation(),w(e)},size:"sm",title:k?e.description||e.name:f("upgradeAgentTitle"),variant:["default","outline","secondary","destructive"].includes(e.quickActionButtonVariant)?e.quickActionButtonVariant:"default",children:[b===e.id?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(r.ConfigurationIcon,{iconKey:e.quickActionIconKey})," ",e.name]})]},e.id)}),!k&&x.length>0&&(0,t.jsx)("span",{className:"self-center text-xs text-muted-foreground",children:f("upgradeAgent")})]}),C&&(0,t.jsx)(n.Alert,{variant:"destructive",children:(0,t.jsx)(n.AlertDescription,{children:C})})]});return g?(0,t.jsxs)(l.Card,{children:[(0,t.jsxs)(l.CardHeader,{children:[(0,t.jsx)(l.CardTitle,{children:g}),h&&(0,t.jsx)(l.CardDescription,{children:h})]}),(0,t.jsx)(l.CardContent,{children:N})]}):N}])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},647776,e=>{"use strict";var t=e.i(843476),a=e.i(716327),i=e.i(482022),r=e.i(395925),n=e.i(948148),s=e.i(271645),l=e.i(487486),o=e.i(519455),d=e.i(755146),u=e.i(987968),c=e.i(746798),p=e.i(637611);function m({pipeline:e,repositoryId:a,onPipelineRetried:i,onError:l}){let d=(0,n.useTranslations)("pullRequests"),[g,h]=(0,s.useState)(!1),f=async t=>{if(t.stopPropagation(),e.canRetry&&e.checkSuiteId){h(!0);try{let t=await (0,p.controlPlaneRequest)(`mutation RetryGitHubPipeline(
|
|
26
26
|
$repositoryId: ID!
|
|
27
27
|
$checkSuiteId: ID!
|
|
28
28
|
) {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
repositoryId: $repositoryId
|
|
31
31
|
checkSuiteId: $checkSuiteId
|
|
32
32
|
) { id name status url checkSuiteId canRetry retryUnavailableReason jobs { id name status url canRetry retryUnavailableReason steps { number name status } } }
|
|
33
|
-
}`,{repositoryId:a,checkSuiteId:e.checkSuiteId});i?.(t.retryGitHubPipeline),l?.(null)}catch(e){l?.(e instanceof Error?e.message:String(e))}finally{h(!1)}}},x=(0,t.jsxs)(o.Button,{disabled:g||!e.canRetry||!e.checkSuiteId,onClick:e=>void f(e),size:"sm",variant:"outline",children:[g?(0,t.jsx)(
|
|
33
|
+
}`,{repositoryId:a,checkSuiteId:e.checkSuiteId});i?.(t.retryGitHubPipeline),l?.(null)}catch(e){l?.(e instanceof Error?e.message:String(e))}finally{h(!1)}}},x=(0,t.jsxs)(o.Button,{disabled:g||!e.canRetry||!e.checkSuiteId,onClick:e=>void f(e),size:"sm",variant:"outline",children:[g?(0,t.jsx)(u.Spinner,{}):(0,t.jsx)(r.RotateCcw,{}),d(g?"retrying":"retry")]});if(!e.retryUnavailableReason||g)return x;let v=d(`retryUnavailable.${e.retryUnavailableReason}`);return(0,t.jsx)(c.TooltipProvider,{children:(0,t.jsxs)(c.Tooltip,{children:[(0,t.jsx)(c.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{"aria-label":v,className:"inline-flex",tabIndex:0,children:x})}),(0,t.jsx)(c.TooltipContent,{children:v})]})})}function g(e){return"SUCCESS"===e?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"PENDING"===e||"EXPECTED"===e||"QUEUED"===e||"IN_PROGRESS"===e||"ACTION_REQUIRED"===e?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"FAILURE"===e||"ERROR"===e||"CANCELLED"===e||"STALE"===e||"STARTUP_FAILURE"===e||"TIMED_OUT"===e?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300"}e.s(["PipelineMenu",0,function({pipelineStatus:e,pipelines:r,repositoryId:u,onPipelineRetried:c}){let p=(0,n.useTranslations)("pullRequests"),[h,f]=(0,s.useState)(null),x=e=>e.stopPropagation();return(0,t.jsxs)(d.DropdownMenu,{children:[(0,t.jsx)(d.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{className:`h-5 rounded-full px-2 py-0.5 text-xs ${g(e)}`,onClick:x,variant:"outline",children:[p(`pipelineStates.${e}`),(0,t.jsx)(a.ChevronDown,{className:"size-3"})]})}),(0,t.jsxs)(d.DropdownMenuContent,{align:"end",className:"w-80",onClick:x,children:[(0,t.jsx)(d.DropdownMenuLabel,{children:p("pipelineMenuTitle")}),(0,t.jsx)(d.DropdownMenuSeparator,{}),h&&(0,t.jsx)("p",{className:"px-2 py-1.5 text-xs text-destructive",children:h}),0===r.length?(0,t.jsx)("p",{className:"px-2 py-3 text-sm text-muted-foreground",children:p("noPipelines")}):(0,t.jsx)("div",{className:"space-y-1 p-1",children:r.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md px-2 py-2 hover:bg-muted",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[e.url?(0,t.jsxs)("a",{className:"flex min-w-0 items-center gap-1 text-sm font-medium hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)("span",{className:"truncate",children:e.name}),(0,t.jsx)(i.ExternalLink,{className:"size-3 shrink-0"})]}):(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.name}),(0,t.jsx)(l.Badge,{className:`mt-1 ${g(e.status)}`,children:p(`pipelineStates.${e.status}`)})]}),e.checkSuiteId&&(0,t.jsx)(m,{onError:f,onPipelineRetried:c,pipeline:e,repositoryId:u})]},e.id))})]})]})},"pipelineStateClass",0,g])},346194,113030,e=>{"use strict";var t=e.i(843476);let a=(0,e.i(456420).default)("git-merge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);e.s(["GitMerge",0,a],113030);var i=e.i(948148),r=e.i(271645),n=e.i(929592),s=e.i(519455),l=e.i(776639),o=e.i(793479),d=e.i(110204),u=e.i(967489),c=e.i(987968),p=e.i(624687),m=e.i(637611);let g="__github_account_default__";e.s(["MergePullRequestButton",0,function({pullRequest:e,onMerged:h,size:f="sm",variant:x="outline",open:v,onOpenChange:b,showTrigger:y=!0}){let j=(0,i.useTranslations)("pullRequests"),[S,C]=(0,r.useState)(!1),[I,k]=(0,r.useState)(null),[w,N]=(0,r.useState)(""),[E,T]=(0,r.useState)(""),[A,M]=(0,r.useState)(""),[D,R]=(0,r.useState)(g),[P,O]=(0,r.useState)(!1),[_,z]=(0,r.useState)(!1),[B,q]=(0,r.useState)(null),[L="",$=""]=e.repositoryNameWithOwner.split("/",2),U=v??S,G=e=>{e||(O(!1),k(null),q(null)),void 0===v&&C(e),b?.(e)};(0,r.useEffect)(()=>{if(!U)return;let t=!0,a=window.setTimeout(()=>{O(!0),k(null),q(null),(0,m.controlPlaneRequest)(`query GitHubPullRequestMergeOptions(
|
|
34
34
|
$owner: String!
|
|
35
35
|
$name: String!
|
|
36
36
|
$number: Int!
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
mergeGitHubPullRequest(input: $input) {
|
|
55
55
|
id state url mergedAt
|
|
56
56
|
}
|
|
57
|
-
}`,{input:{owner:L,name:$,number:e.number,method:w,commitHeadline:E,commitBody:A,authorEmail:D===g?null:D}});G(!1),await h?.(t.mergeGitHubPullRequest)}catch(e){q(e instanceof Error?e.message:String(e))}finally{z(!1)}}},F=I?.blockedReason??null;return(0,t.jsxs)(t.Fragment,{children:[y&&(0,t.jsxs)(s.Button,{onClick:e=>{e.stopPropagation(),G(!0)},size:f,type:"button",variant:x,children:[(0,t.jsx)(a,{}),j("merge")]}),(0,t.jsx)(l.Dialog,{onOpenChange:e=>{_||G(e)},open:U,children:(0,t.jsxs)(l.DialogContent,{className:"sm:max-w-xl",children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:j("mergePullRequest")}),(0,t.jsx)(l.DialogDescription,{children:j("mergePullRequestDescription",{repository:e.repositoryNameWithOwner,number:e.number})})]}),!P&&(I||B)?(0,t.jsxs)("div",{className:"space-y-4",children:[(B||F)&&(0,t.jsx)(n.Alert,{variant:"destructive",children:(0,t.jsx)(n.AlertDescription,{children:B||F})}),I&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-method",children:j("mergeType")}),(0,t.jsxs)(c.Select,{disabled:_||0===I.availableMethods.length,onValueChange:e=>N(e),value:w,children:[(0,t.jsx)(c.SelectTrigger,{id:"merge-method",children:(0,t.jsx)(c.SelectValue,{placeholder:j("selectMergeType")})}),(0,t.jsx)(c.SelectContent,{children:I.availableMethods.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:j(`mergeTypes.${e}`)},e))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-headline",children:j("commitMessage")}),(0,t.jsx)(o.Input,{disabled:_,id:"merge-commit-headline",onChange:e=>T(e.target.value),value:E})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-body",children:j("commitDescription")}),(0,t.jsx)(p.Textarea,{className:"min-h-28",disabled:_,id:"merge-commit-body",onChange:e=>M(e.target.value),value:A})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-email",children:j("commitEmail")}),(0,t.jsxs)(c.Select,{disabled:_,onValueChange:R,value:D,children:[(0,t.jsx)(c.SelectTrigger,{id:"merge-email",children:(0,t.jsx)(c.SelectValue,{})}),(0,t.jsxs)(c.SelectContent,{children:[(0,t.jsx)(c.SelectItem,{value:g,children:j("githubDefaultEmail")}),I.commitEmails.map(e=>(0,t.jsx)(c.SelectItem,{value:e,children:e},e))]})]})]})]})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 py-6 text-sm text-muted-foreground",children:[(0,t.jsx)(u.Spinner,{})," ",j("loadingMergeOptions")]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(s.Button,{disabled:_,onClick:()=>G(!1),type:"button",variant:"outline",children:j("cancelMerge")}),(0,t.jsxs)(s.Button,{disabled:P||_||!I?.canMerge||!w||!E.trim(),onClick:()=>void V(),type:"button",children:[_?(0,t.jsx)(u.Spinner,{}):(0,t.jsx)(a,{}),_?j("merging"):j("mergePullRequest")]})]})]})})]})}],346194)},768877,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],768877)},808562,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(30030),r=e.i(248425),n=e.i(842727),s=e.i(981140),l=e.i(369340),o=Object.defineProperty,d=a.forwardRef(o(function(e,a){let{pressed:i,defaultPressed:n,onPressedChange:o,...d}=e,[c,u]=(0,l.useControllableState)({prop:i,onChange:o,defaultProp:n??!1,caller:"Toggle"});return(0,t.jsx)(r.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,s.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0})),c=e.i(586318),u=Object.defineProperty,p=(e,t)=>u(e,"name",{value:t,configurable:!0}),m="ToggleGroup",[g,h]=(0,i.createContextScope)(m,[n.createRovingFocusGroupScope]),f=(0,n.createRovingFocusGroupScope)(),x=a.forwardRef(p(function(e,a){let{type:i,...r}=e;if("single"===i)return(0,t.jsx)(y,{role:"radiogroup",...r,ref:a});if("multiple"===i)return(0,t.jsx)(j,{role:"toolbar",...r,ref:a});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[v,b]=g(m),y=a.forwardRef(p(function(e,i){let{value:r,defaultValue:n,onValueChange:s=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,l.useControllableState)({prop:r,defaultProp:n??"",onChange:s,caller:m});return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"single",value:a.useMemo(()=>d?[d]:[],[d]),onItemActivate:c,onItemDeactivate:a.useCallback(()=>c(""),[c]),children:(0,t.jsx)(I,{...o,ref:i})})},"ToggleGroupImplSingle")),j=a.forwardRef(p(function(e,i){let{value:r,defaultValue:n,onValueChange:s=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,l.useControllableState)({prop:r,defaultProp:n??[],onChange:s,caller:m}),u=a.useCallback(e=>c((t=[])=>[...t,e]),[c]),g=a.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:u,onItemDeactivate:g,children:(0,t.jsx)(I,{...o,ref:i})})},"ToggleGroupImplMultiple")),[S,C]=g(m),I=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:i,disabled:s=!1,rovingFocus:l=!0,orientation:o,dir:d,loop:u=!0,...p}=e,m=f(i),g=(0,c.useDirection)(d),h={dir:g,...p};return(0,t.jsx)(S,{scope:i,rovingFocus:l,disabled:s,children:l?(0,t.jsx)(n.Root,{asChild:!0,...m,orientation:o,dir:g,loop:u,children:(0,t.jsx)(r.Primitive.div,{...h,ref:a})}):(0,t.jsx)(r.Primitive.div,{...h,ref:a})})},"ToggleGroupImpl")),k="ToggleGroupItem",w=a.forwardRef(p(function(e,i){let r=b(k,e.__scopeToggleGroup),s=C(k,e.__scopeToggleGroup),l=f(e.__scopeToggleGroup),o=r.value.includes(e.value),d=s.disabled||e.disabled,c={...e,pressed:o,disabled:d},u=a.useRef(null);return s.rovingFocus?(0,t.jsx)(n.Item,{asChild:!0,...l,focusable:!d,active:o,ref:u,children:(0,t.jsx)(N,{...c,ref:i})}):(0,t.jsx)(N,{...c,ref:i})},"ToggleGroupItem")),N=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:i,value:r,...n}=e,s=b(k,i),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o="single"===s.type?l:void 0;return(0,t.jsx)(d,{...o,...n,ref:a,onPressedChange:e=>{e?s.onItemActivate(r):s.onItemDeactivate(r)}})},"ToggleGroupItemImpl"));e.s(["Item",0,w,"Root",0,x,"ToggleGroup",0,x,"ToggleGroupItem",0,w,"createToggleGroupScope",0,h],459881);var E=e.i(459881),E=E,T=e.i(975157),A=e.i(225913),M=Object.defineProperty,D=a.forwardRef(M(function(e,a){let{pressed:i,defaultPressed:n,onPressedChange:o,...d}=e,[c,u]=(0,l.useControllableState)({prop:i,onChange:o,defaultProp:n??!1,caller:"Toggle"});return(0,t.jsx)(r.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,s.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0}));e.s(["Root",0,D,"Toggle",0,D],864225),e.i(864225);let R=(0,A.cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),P=a.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:a,size:i,spacing:r=2,orientation:n="horizontal",children:s,...l}){return(0,t.jsx)(E.Root,{"data-slot":"toggle-group","data-variant":a,"data-size":i,"data-spacing":r,"data-orientation":n,style:{"--gap":r},className:(0,T.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...l,children:(0,t.jsx)(P.Provider,{value:{variant:a,size:i,spacing:r,orientation:n},children:s})})},"ToggleGroupItem",0,function({className:e,children:i,variant:r="default",size:n="default",...s}){let l=a.useContext(P);return(0,t.jsx)(E.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||r,"data-size":l.size||n,"data-spacing":l.spacing,className:(0,T.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",R({variant:l.variant||r,size:l.size||n}),e),...s,children:i})}],808562)},948812,e=>{"use strict";function t(e){return`${e.repositoryNameWithOwner}#${e.number}`}e.s(["pullRequestCommentsHref",0,function(e){return`/comments?pullRequest=${encodeURIComponent(t(e))}`},"pullRequestDetailHref",0,function(e){let[t="",a=""]=e.repositoryNameWithOwner.split("/");return`/pull-requests/${encodeURIComponent(t)}/${encodeURIComponent(a)}/${e.number}`},"pullRequestKey",0,t])},882505,e=>{"use strict";let t=(0,e.i(456420).default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["List",0,t],882505)},851817,e=>{"use strict";let t=(0,e.i(456420).default)("grid-2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);e.s(["Grid2X2",0,t],851817)},52253,e=>{"use strict";var t=e.i(843476),a=e.i(688194),i=e.i(77071),r=e.i(741120);let n=(0,e.i(456420).default)("scan-search",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);var s=e.i(573474),l=e.i(861745),o=e.i(948148),d=e.i(271645),c=e.i(929592),u=e.i(519455),p=e.i(257428),m=e.i(793479),g=e.i(110204),h=e.i(967489),f=e.i(987968),x=e.i(637611),v=e.i(360583);let b=new Set(["SUCCEEDED","FAILED","CANCELLED","TIMED_OUT"]);e.s(["DEFAULT_EXPORT_SETTINGS",0,{method:"DEBUGGING",signingStyle:"AUTOMATIC",teamId:null,signingCertificate:null,provisioningProfiles:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1,stripSwiftSymbols:!0,thinning:null,iCloudContainerEnvironment:null,distributionBundleIdentifier:null},"ExportSettingsForm",0,function({value:e,onChange:y,onParseSigningRequirements:j,disabled:S=!1}){let C=(0,o.useTranslations)("builds"),I=(0,o.useTranslations)("provisioningProfiles"),k=(0,l.useLocale)(),[w,N]=(0,d.useState)(()=>Object.keys(e.provisioningProfiles).map(e=>({bundleId:e,name:e,target:e,platform:null,teamId:null,provisioningProfileSpecifier:null}))),[E,T]=(0,d.useState)(!1),[A,M]=(0,d.useState)(!1),[D,R]=(0,d.useState)(null),[P,O]=(0,d.useState)(""),[_,z]=(0,d.useState)(()=>new Set(Object.keys(e.provisioningProfiles))),B=(0,d.useId)(),[q,L]=(0,d.useState)(null),[$,U]=(0,d.useState)(null),[G,V]=(0,d.useState)([]),[F,H]=(0,d.useState)(!1),W=(0,d.useCallback)(async()=>{try{let e=await (0,x.controlPlaneRequest)(`query ExportSigningInventory {
|
|
57
|
+
}`,{input:{owner:L,name:$,number:e.number,method:w,commitHeadline:E,commitBody:A,authorEmail:D===g?null:D}});G(!1),await h?.(t.mergeGitHubPullRequest)}catch(e){q(e instanceof Error?e.message:String(e))}finally{z(!1)}}},F=I?.blockedReason??null;return(0,t.jsxs)(t.Fragment,{children:[y&&(0,t.jsxs)(s.Button,{onClick:e=>{e.stopPropagation(),G(!0)},size:f,type:"button",variant:x,children:[(0,t.jsx)(a,{}),j("merge")]}),(0,t.jsx)(l.Dialog,{onOpenChange:e=>{_||G(e)},open:U,children:(0,t.jsxs)(l.DialogContent,{className:"sm:max-w-xl",children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:j("mergePullRequest")}),(0,t.jsx)(l.DialogDescription,{children:j("mergePullRequestDescription",{repository:e.repositoryNameWithOwner,number:e.number})})]}),!P&&(I||B)?(0,t.jsxs)("div",{className:"space-y-4",children:[(B||F)&&(0,t.jsx)(n.Alert,{variant:"destructive",children:(0,t.jsx)(n.AlertDescription,{children:B||F})}),I&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-method",children:j("mergeType")}),(0,t.jsxs)(u.Select,{disabled:_||0===I.availableMethods.length,onValueChange:e=>N(e),value:w,children:[(0,t.jsx)(u.SelectTrigger,{id:"merge-method",children:(0,t.jsx)(u.SelectValue,{placeholder:j("selectMergeType")})}),(0,t.jsx)(u.SelectContent,{children:I.availableMethods.map(e=>(0,t.jsx)(u.SelectItem,{value:e,children:j(`mergeTypes.${e}`)},e))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-headline",children:j("commitMessage")}),(0,t.jsx)(o.Input,{disabled:_,id:"merge-commit-headline",onChange:e=>T(e.target.value),value:E})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-body",children:j("commitDescription")}),(0,t.jsx)(p.Textarea,{className:"min-h-28",disabled:_,id:"merge-commit-body",onChange:e=>M(e.target.value),value:A})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Label,{className:"mb-1.5 block",htmlFor:"merge-email",children:j("commitEmail")}),(0,t.jsxs)(u.Select,{disabled:_,onValueChange:R,value:D,children:[(0,t.jsx)(u.SelectTrigger,{id:"merge-email",children:(0,t.jsx)(u.SelectValue,{})}),(0,t.jsxs)(u.SelectContent,{children:[(0,t.jsx)(u.SelectItem,{value:g,children:j("githubDefaultEmail")}),I.commitEmails.map(e=>(0,t.jsx)(u.SelectItem,{value:e,children:e},e))]})]})]})]})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 py-6 text-sm text-muted-foreground",children:[(0,t.jsx)(c.Spinner,{})," ",j("loadingMergeOptions")]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(s.Button,{disabled:_,onClick:()=>G(!1),type:"button",variant:"outline",children:j("cancelMerge")}),(0,t.jsxs)(s.Button,{disabled:P||_||!I?.canMerge||!w||!E.trim(),onClick:()=>void V(),type:"button",children:[_?(0,t.jsx)(c.Spinner,{}):(0,t.jsx)(a,{}),_?j("merging"):j("mergePullRequest")]})]})]})})]})}],346194)},768877,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],768877)},808562,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(30030),r=e.i(248425),n=e.i(842727),s=e.i(981140),l=e.i(369340),o=Object.defineProperty,d=a.forwardRef(o(function(e,a){let{pressed:i,defaultPressed:n,onPressedChange:o,...d}=e,[u,c]=(0,l.useControllableState)({prop:i,onChange:o,defaultProp:n??!1,caller:"Toggle"});return(0,t.jsx)(r.Primitive.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,s.composeEventHandlers)(e.onClick,()=>{e.disabled||c(!u)})})},"name",{value:"Toggle",configurable:!0})),u=e.i(586318),c=Object.defineProperty,p=(e,t)=>c(e,"name",{value:t,configurable:!0}),m="ToggleGroup",[g,h]=(0,i.createContextScope)(m,[n.createRovingFocusGroupScope]),f=(0,n.createRovingFocusGroupScope)(),x=a.forwardRef(p(function(e,a){let{type:i,...r}=e;if("single"===i)return(0,t.jsx)(y,{role:"radiogroup",...r,ref:a});if("multiple"===i)return(0,t.jsx)(j,{role:"toolbar",...r,ref:a});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[v,b]=g(m),y=a.forwardRef(p(function(e,i){let{value:r,defaultValue:n,onValueChange:s=p(()=>{},"onValueChange"),...o}=e,[d,u]=(0,l.useControllableState)({prop:r,defaultProp:n??"",onChange:s,caller:m});return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"single",value:a.useMemo(()=>d?[d]:[],[d]),onItemActivate:u,onItemDeactivate:a.useCallback(()=>u(""),[u]),children:(0,t.jsx)(I,{...o,ref:i})})},"ToggleGroupImplSingle")),j=a.forwardRef(p(function(e,i){let{value:r,defaultValue:n,onValueChange:s=p(()=>{},"onValueChange"),...o}=e,[d,u]=(0,l.useControllableState)({prop:r,defaultProp:n??[],onChange:s,caller:m}),c=a.useCallback(e=>u((t=[])=>[...t,e]),[u]),g=a.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:c,onItemDeactivate:g,children:(0,t.jsx)(I,{...o,ref:i})})},"ToggleGroupImplMultiple")),[S,C]=g(m),I=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:i,disabled:s=!1,rovingFocus:l=!0,orientation:o,dir:d,loop:c=!0,...p}=e,m=f(i),g=(0,u.useDirection)(d),h={dir:g,...p};return(0,t.jsx)(S,{scope:i,rovingFocus:l,disabled:s,children:l?(0,t.jsx)(n.Root,{asChild:!0,...m,orientation:o,dir:g,loop:c,children:(0,t.jsx)(r.Primitive.div,{...h,ref:a})}):(0,t.jsx)(r.Primitive.div,{...h,ref:a})})},"ToggleGroupImpl")),k="ToggleGroupItem",w=a.forwardRef(p(function(e,i){let r=b(k,e.__scopeToggleGroup),s=C(k,e.__scopeToggleGroup),l=f(e.__scopeToggleGroup),o=r.value.includes(e.value),d=s.disabled||e.disabled,u={...e,pressed:o,disabled:d},c=a.useRef(null);return s.rovingFocus?(0,t.jsx)(n.Item,{asChild:!0,...l,focusable:!d,active:o,ref:c,children:(0,t.jsx)(N,{...u,ref:i})}):(0,t.jsx)(N,{...u,ref:i})},"ToggleGroupItem")),N=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:i,value:r,...n}=e,s=b(k,i),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o="single"===s.type?l:void 0;return(0,t.jsx)(d,{...o,...n,ref:a,onPressedChange:e=>{e?s.onItemActivate(r):s.onItemDeactivate(r)}})},"ToggleGroupItemImpl"));e.s(["Item",0,w,"Root",0,x,"ToggleGroup",0,x,"ToggleGroupItem",0,w,"createToggleGroupScope",0,h],459881);var E=e.i(459881),E=E,T=e.i(975157),A=e.i(225913),M=Object.defineProperty,D=a.forwardRef(M(function(e,a){let{pressed:i,defaultPressed:n,onPressedChange:o,...d}=e,[u,c]=(0,l.useControllableState)({prop:i,onChange:o,defaultProp:n??!1,caller:"Toggle"});return(0,t.jsx)(r.Primitive.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,s.composeEventHandlers)(e.onClick,()=>{e.disabled||c(!u)})})},"name",{value:"Toggle",configurable:!0}));e.s(["Root",0,D,"Toggle",0,D],864225),e.i(864225);let R=(0,A.cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),P=a.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:a,size:i,spacing:r=2,orientation:n="horizontal",children:s,...l}){return(0,t.jsx)(E.Root,{"data-slot":"toggle-group","data-variant":a,"data-size":i,"data-spacing":r,"data-orientation":n,style:{"--gap":r},className:(0,T.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...l,children:(0,t.jsx)(P.Provider,{value:{variant:a,size:i,spacing:r,orientation:n},children:s})})},"ToggleGroupItem",0,function({className:e,children:i,variant:r="default",size:n="default",...s}){let l=a.useContext(P);return(0,t.jsx)(E.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||r,"data-size":l.size||n,"data-spacing":l.spacing,className:(0,T.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",R({variant:l.variant||r,size:l.size||n}),e),...s,children:i})}],808562)},948812,e=>{"use strict";function t(e){return`${e.repositoryNameWithOwner}#${e.number}`}e.s(["pullRequestCommentsHref",0,function(e){return`/comments?pullRequest=${encodeURIComponent(t(e))}`},"pullRequestDetailHref",0,function(e){let[t="",a=""]=e.repositoryNameWithOwner.split("/");return`/pull-requests/${encodeURIComponent(t)}/${encodeURIComponent(a)}/${e.number}`},"pullRequestKey",0,t])},882505,e=>{"use strict";let t=(0,e.i(456420).default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["List",0,t],882505)},851817,e=>{"use strict";let t=(0,e.i(456420).default)("grid-2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);e.s(["Grid2X2",0,t],851817)},52253,e=>{"use strict";var t=e.i(843476),a=e.i(688194),i=e.i(77071),r=e.i(741120);let n=(0,e.i(456420).default)("scan-search",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);var s=e.i(573474),l=e.i(861745),o=e.i(948148),d=e.i(271645),u=e.i(929592),c=e.i(519455),p=e.i(257428),m=e.i(793479),g=e.i(110204),h=e.i(967489),f=e.i(987968),x=e.i(637611),v=e.i(360583);let b=new Set(["SUCCEEDED","FAILED","CANCELLED","TIMED_OUT"]);e.s(["DEFAULT_EXPORT_SETTINGS",0,{method:"DEBUGGING",signingStyle:"AUTOMATIC",teamId:null,signingCertificate:null,provisioningProfiles:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1,stripSwiftSymbols:!0,thinning:null,iCloudContainerEnvironment:null,distributionBundleIdentifier:null},"ExportSettingsForm",0,function({value:e,onChange:y,onParseSigningRequirements:j,disabled:S=!1}){let C=(0,o.useTranslations)("builds"),I=(0,o.useTranslations)("provisioningProfiles"),k=(0,l.useLocale)(),[w,N]=(0,d.useState)(()=>Object.keys(e.provisioningProfiles).map(e=>({bundleId:e,name:e,target:e,platform:null,teamId:null,provisioningProfileSpecifier:null}))),[E,T]=(0,d.useState)(!1),[A,M]=(0,d.useState)(!1),[D,R]=(0,d.useState)(null),[P,O]=(0,d.useState)(""),[_,z]=(0,d.useState)(()=>new Set(Object.keys(e.provisioningProfiles))),B=(0,d.useId)(),[q,L]=(0,d.useState)(null),[$,U]=(0,d.useState)(null),[G,V]=(0,d.useState)([]),[F,H]=(0,d.useState)(!1),W=(0,d.useCallback)(async()=>{try{let e=await (0,x.controlPlaneRequest)(`query ExportSigningInventory {
|
|
58
58
|
signingAgents { supported }
|
|
59
59
|
signingCertificates { sha1 name teamId hasPrivateKey installedAgents { id } }
|
|
60
60
|
signingProfiles {
|
|
@@ -67,4 +67,4 @@
|
|
|
67
67
|
agentJob(id: $id) { id agentId status error }
|
|
68
68
|
}`,{id:e});t.agentJob&&K(t.agentJob)}catch{}}))};a();let i=window.setInterval(()=>void a(),2e3);return()=>{t.forEach(e=>e()),window.clearInterval(i)}},[K,Q]),(0,d.useEffect)(()=>{if(!G.length||!G.every(e=>b.has(e.status)))return;let e=window.setTimeout(()=>{W().then(()=>{let e=G.filter(e=>"SUCCEEDED"!==e.status);e.length&&U(e.map(e=>e.error||`${e.agentId}: ${e.status}`).join("; ")),V([])})},0);return()=>window.clearTimeout(e)},[W,G]);let J=async()=>{H(!0),U(null),V([]);try{let e=await (0,x.controlPlaneRequest)(`mutation RefreshExportSigningInventory {
|
|
69
69
|
refreshSigningAssets { id agentId status error }
|
|
70
|
-
}`);V(e.refreshSigningAssets),e.refreshSigningAssets.length||U(I("noRefreshAgents"))}catch(e){U(e instanceof Error?e.message:String(e))}finally{H(!1)}},X=F||G.some(e=>!b.has(e.status)),Y=G.filter(e=>b.has(e.status)).length,Z=(0,d.useMemo)(()=>[...new Set([...q?.certificates??[],...q?.profiles??[]].flatMap(e=>e.teamId??[]))],[q]),ee=q?.certificates.find(t=>t.sha1===e.signingCertificate),et=Object.values(e.provisioningProfiles),ea=et.flatMap(e=>{let t=q?.profiles.find(t=>t.uuid===e);return t?[t]:[]}),ei=et.length>0&&ea.length===et.length&&ea.every(e=>e.certificateSha1s.length>0),er=t=>ei?ea.every(e=>e.certificateSha1s.map(e=>e.toUpperCase()).includes(t.sha1.toUpperCase())):!e.teamId||t.teamId===e.teamId,en=(q?.certificates??[]).filter(e=>e.hasPrivateKey).sort((e,t)=>Number(er(t))-Number(er(e))||e.name.localeCompare(t.name)),es=en.some(t=>t.sha1===e.signingCertificate),el=(t,a)=>y({...e,[t]:a}),eo=(t,i=e.teamId)=>(q?.profiles??[]).filter(r=>{var n,s;return r.profileType===a.EXPORT_METHOD_PROFILE_TYPES[e.method]&&!r.expired&&(0,a.profileCoversBundle)(r.bundleId,t.bundleId)&&(n=r.platforms,!(s=t.platform)||0===n.length||("watchOS"===s?["watchOS","iOS"]:"visionOS"===s?["visionOS","xrOS"]:[s]).some(e=>n.includes(e)))&&(!i||!r.teamId||r.teamId===i)}).sort((e,t)=>(t.expiresAt??"").localeCompare(e.expiresAt??"")),ed=async()=>{if(j){M(!0),R(null);try{let t=await j(),a=new Set(t.map(e=>e.bundleId)),i=w.filter(e=>_.has(e.bundleId)&&!a.has(e.bundleId)),r=[...t,...i];N(r),z(e=>new Set([...e].filter(e=>!a.has(e)))),T(!0);let n=[...new Set(t.flatMap(e=>e.teamId??[]))],s=e.teamId??(1===n.length?n[0]:null),l=Object.fromEntries(r.flatMap(t=>{let a=eo(t,s),i=e.provisioningProfiles[t.bundleId],r=t.provisioningProfileSpecifier,n=(i?q?.profiles.find(e=>e.uuid===i&&!e.expired)??i:null)??a.find(e=>e.uuid===r||e.name===r)??a[0];return n?[[t.bundleId,"string"==typeof n?n:n.uuid]]:[]}));y({...e,teamId:s,provisioningProfiles:l})}catch(e){R(e instanceof Error?e.message:String(e))}finally{M(!1)}}};return(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 rounded-xl border p-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 sm:col-span-2 sm:grid-cols-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("distributionMethod")}),(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("method",e),value:e.method,children:[(0,t.jsx)(h.SelectTrigger,{children:(0,t.jsx)(h.SelectValue,{})}),(0,t.jsx)(h.SelectContent,{children:a.BUILD_EXPORT_METHODS.map(e=>(0,t.jsx)(h.SelectItem,{value:e,children:C(`exportMethod.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("signingStyle")}),(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("signingStyle",e),value:e.signingStyle,children:[(0,t.jsx)(h.SelectTrigger,{children:(0,t.jsx)(h.SelectValue,{})}),(0,t.jsxs)(h.SelectContent,{children:[(0,t.jsx)(h.SelectItem,{value:"AUTOMATIC",children:C("automatic")}),(0,t.jsx)(h.SelectItem,{value:"MANUAL",children:C("manual")})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("developmentTeam")}),Z.length?(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("teamId",e),value:e.teamId??"",children:[(0,t.jsx)(h.SelectTrigger,{children:(0,t.jsx)(h.SelectValue,{placeholder:"ABCDE12345"})}),(0,t.jsx)(h.SelectContent,{children:Z.map(e=>(0,t.jsx)(h.SelectItem,{value:e,children:e},e))})]}):(0,t.jsx)(m.Input,{disabled:S,onChange:e=>el("teamId",e.target.value||null),placeholder:"ABCDE12345",value:e.teamId??""})]})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsx)(g.Label,{children:C("signingCertificate")}),q?.certificates.length?(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("signingCertificate","AUTOMATIC"===e?null:e),value:e.signingCertificate??"AUTOMATIC",children:[(0,t.jsx)(h.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(h.SelectValue,{})}),(0,t.jsxs)(h.SelectContent,{children:[(0,t.jsx)(h.SelectItem,{value:"AUTOMATIC",children:C("certificateAutomatic")}),e.signingCertificate&&!es&&(0,t.jsxs)(h.SelectItem,{value:e.signingCertificate,children:[e.signingCertificate," · ",C("savedValueUnavailable")]}),en.map(e=>(0,t.jsxs)(h.SelectItem,{className:er(e)?void 0:"text-muted-foreground",value:e.sha1,children:[e.name," · ",e.sha1.slice(0,10),"…",!er(e)&&` \xb7 ${C("certificateMayNotMatch")}`]},e.sha1))]})]}):(0,t.jsx)(m.Input,{disabled:S,onChange:e=>el("signingCertificate",e.target.value||null),placeholder:C("certificateAutomatic"),value:e.signingCertificate??""})]}),ee&&q&&ee.installedAgents.length<q.agentCount&&(0,t.jsx)(c.Alert,{className:"sm:col-span-2",children:(0,t.jsx)(c.AlertDescription,{children:C("signingAssetCoverageWarning",{installed:ee.installedAgents.length,total:q.agentCount})})}),"MANUAL"===e.signingStyle&&(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(g.Label,{children:C("provisioningProfiles")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:C("parseProvisioningProfilesHelp")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(u.Button,{disabled:S||A||X||!q,onClick:()=>void J(),size:"sm",type:"button",variant:"outline",children:[(0,t.jsx)(r.RefreshCw,{className:X?"animate-spin":void 0}),I("refresh")]}),j&&(0,t.jsxs)(u.Button,{disabled:S||A||X||!q,onClick:()=>void ed(),size:"sm",type:"button",variant:"outline",children:[A?(0,t.jsx)(f.Spinner,{}):(0,t.jsx)(n,{}),C(E?"reparseProvisioningProfiles":"parseProvisioningProfiles")]})]})]}),G.length>0&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:I("refreshProgress",{complete:Y,total:G.length})}),$&&(0,t.jsx)(c.Alert,{variant:"destructive",children:(0,t.jsx)(c.AlertDescription,{children:$})}),(0,t.jsxs)("div",{className:"grid gap-2 rounded-lg border border-dashed p-3 sm:grid-cols-[minmax(0,1fr)_auto]",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{htmlFor:B,children:C("manualBundleIdentifier")}),(0,t.jsx)(m.Input,{disabled:S,id:B,onChange:e=>O(e.target.value),placeholder:C("manualBundleIdentifierPlaceholder"),value:P}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:C("manualBundleIdentifierHelp")})]}),(0,t.jsxs)(u.Button,{className:"sm:self-end",disabled:S||!P.trim()||w.some(e=>e.bundleId===P.trim()),onClick:()=>{let t=P.trim();!t||w.some(e=>e.bundleId===t)||(N(a=>[...a,{bundleId:t,name:t,target:t,platform:null,teamId:e.teamId,provisioningProfileSpecifier:null}]),z(e=>new Set(e).add(t)),O(""))},type:"button",variant:"outline",children:[(0,t.jsx)(i.Plus,{}),C("addBundleIdentifier")]})]}),D&&(0,t.jsx)(c.Alert,{variant:"destructive",children:(0,t.jsx)(c.AlertDescription,{children:D})}),!w.length&&E&&(0,t.jsx)("p",{className:"rounded-lg border border-dashed p-4 text-sm text-muted-foreground",children:C("noSigningRequirements")}),!w.length&&!E&&(0,t.jsx)("p",{className:"rounded-lg border border-dashed p-4 text-sm text-muted-foreground",children:C("parseProvisioningProfilesEmpty")}),w.map(a=>{let i,r=eo(a),n=new Set(r.map(e=>e.uuid)),l=(i=new Set(eo(a).map(e=>e.uuid)),(q?.profiles??[]).filter(e=>!e.expired).sort((e,t)=>Number(i.has(t.uuid))-Number(i.has(e.uuid))||(t.expiresAt??"").localeCompare(e.expiresAt??"")||e.name.localeCompare(t.name))),o=e.provisioningProfiles[a.bundleId]??"",d=l.some(e=>e.uuid===o);return(0,t.jsxs)("div",{className:"rounded-lg border p-3",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:a.name}),(0,t.jsx)("p",{className:"break-all font-mono text-xs text-muted-foreground",children:a.bundleId}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:[a.target,a.platform,a.teamId].filter(Boolean).join(" · ")})]}),_.has(a.bundleId)&&(0,t.jsx)(u.Button,{"aria-label":C("removeBundleIdentifier",{bundleId:a.bundleId}),disabled:S,onClick:()=>{var t;let i;return t=a.bundleId,N(e=>e.filter(e=>e.bundleId!==t)),z(e=>{let a=new Set(e);return a.delete(t),a}),i={...e.provisioningProfiles},void(delete i[t],el("provisioningProfiles",i))},size:"icon-sm",type:"button",variant:"ghost",children:(0,t.jsx)(s.Trash2,{})})]}),(0,t.jsxs)(h.Select,{disabled:S||!q,onValueChange:t=>el("provisioningProfiles",{...e.provisioningProfiles,[a.bundleId]:t}),value:o,children:[(0,t.jsx)(h.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(h.SelectValue,{placeholder:C("selectProfile")})}),(0,t.jsxs)(h.SelectContent,{children:[o&&!d&&(0,t.jsxs)(h.SelectItem,{value:o,children:[o," · ",C("savedValueUnavailable")]}),l.map(e=>{let a;return(0,t.jsxs)(h.SelectItem,{className:n.has(e.uuid)?void 0:"text-muted-foreground",value:e.uuid,children:[(a=e.expiresAt?(0,v.formatDateValue)(e.expiresAt,"short",{locale:k,showTime:!1}):null)?`${e.name} — ${a}`:e.name,!n.has(e.uuid)&&` \xb7 ${C("profileMayNotMatch")}`]},e.uuid)})]})]}),!r.length&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:C("noMatchingProfiles")})]},a.bundleId)})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("thinning")}),(0,t.jsx)(m.Input,{disabled:S,onChange:e=>el("thinning",e.target.value||null),placeholder:"<none> / <thin-for-all-variants>",value:e.thinning??""})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("iCloudEnvironment")}),(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("iCloudContainerEnvironment","NONE"===e?null:e),value:e.iCloudContainerEnvironment??"NONE",children:[(0,t.jsx)(h.SelectTrigger,{children:(0,t.jsx)(h.SelectValue,{})}),(0,t.jsxs)(h.SelectContent,{children:[(0,t.jsx)(h.SelectItem,{value:"NONE",children:"—"}),(0,t.jsx)(h.SelectItem,{value:"Development",children:"Development"}),(0,t.jsx)(h.SelectItem,{value:"Production",children:"Production"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsx)(g.Label,{children:C("distributionBundleIdentifier")}),(0,t.jsx)(m.Input,{disabled:S,onChange:e=>el("distributionBundleIdentifier",e.target.value||null),value:e.distributionBundleIdentifier??""})]}),[["uploadSymbols","uploadSymbols"],["manageAppVersionAndBuildNumber","manageBuildNumber"],["testFlightInternalTestingOnly","internalTestFlightOnly"],["stripSwiftSymbols","stripSwiftSymbols"]].map(([a,i])=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(p.Checkbox,{checked:e[a],disabled:S,onCheckedChange:e=>el(a,!!e)}),C(i)]},a)),(0,t.jsx)("p",{className:"text-xs text-muted-foreground sm:col-span-2",children:C("localExportOnly")})]})}],52253)}]);
|
|
70
|
+
}`);V(e.refreshSigningAssets),e.refreshSigningAssets.length||U(I("noRefreshAgents"))}catch(e){U(e instanceof Error?e.message:String(e))}finally{H(!1)}},X=F||G.some(e=>!b.has(e.status)),Y=G.filter(e=>b.has(e.status)).length,Z=(0,d.useMemo)(()=>[...new Set([...q?.certificates??[],...q?.profiles??[]].flatMap(e=>e.teamId??[]))],[q]),ee=q?.certificates.find(t=>t.sha1===e.signingCertificate),et=Object.values(e.provisioningProfiles),ea=et.flatMap(e=>{let t=q?.profiles.find(t=>t.uuid===e);return t?[t]:[]}),ei=et.length>0&&ea.length===et.length&&ea.every(e=>e.certificateSha1s.length>0),er=t=>ei?ea.every(e=>e.certificateSha1s.map(e=>e.toUpperCase()).includes(t.sha1.toUpperCase())):!e.teamId||t.teamId===e.teamId,en=(q?.certificates??[]).filter(e=>e.hasPrivateKey).sort((e,t)=>Number(er(t))-Number(er(e))||e.name.localeCompare(t.name)),es=en.some(t=>t.sha1===e.signingCertificate),el=(t,a)=>y({...e,[t]:a}),eo=(t,i=e.teamId)=>(q?.profiles??[]).filter(r=>{var n,s;return r.profileType===a.EXPORT_METHOD_PROFILE_TYPES[e.method]&&!r.expired&&(0,a.profileCoversBundle)(r.bundleId,t.bundleId)&&(n=r.platforms,!(s=t.platform)||0===n.length||("watchOS"===s?["watchOS","iOS"]:"visionOS"===s?["visionOS","xrOS"]:[s]).some(e=>n.includes(e)))&&(!i||!r.teamId||r.teamId===i)}).sort((e,t)=>(t.expiresAt??"").localeCompare(e.expiresAt??"")),ed=async()=>{if(j){M(!0),R(null);try{let t=await j(),a=new Set(t.map(e=>e.bundleId)),i=w.filter(e=>_.has(e.bundleId)&&!a.has(e.bundleId)),r=[...t,...i];N(r),z(e=>new Set([...e].filter(e=>!a.has(e)))),T(!0);let n=[...new Set(t.flatMap(e=>e.teamId??[]))],s=e.teamId??(1===n.length?n[0]:null),l=Object.fromEntries(r.flatMap(t=>{let a=eo(t,s),i=e.provisioningProfiles[t.bundleId],r=t.provisioningProfileSpecifier,n=(i?q?.profiles.find(e=>e.uuid===i&&!e.expired)??i:null)??a.find(e=>e.uuid===r||e.name===r)??a[0];return n?[[t.bundleId,"string"==typeof n?n:n.uuid]]:[]}));y({...e,teamId:s,provisioningProfiles:l})}catch(e){R(e instanceof Error?e.message:String(e))}finally{M(!1)}}};return(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 rounded-xl border p-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-4 sm:col-span-2 sm:grid-cols-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("distributionMethod")}),(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("method",e),value:e.method,children:[(0,t.jsx)(h.SelectTrigger,{children:(0,t.jsx)(h.SelectValue,{})}),(0,t.jsx)(h.SelectContent,{children:a.BUILD_EXPORT_METHODS.map(e=>(0,t.jsx)(h.SelectItem,{value:e,children:C(`exportMethod.${e}`)},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("signingStyle")}),(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("signingStyle",e),value:e.signingStyle,children:[(0,t.jsx)(h.SelectTrigger,{children:(0,t.jsx)(h.SelectValue,{})}),(0,t.jsxs)(h.SelectContent,{children:[(0,t.jsx)(h.SelectItem,{value:"AUTOMATIC",children:C("automatic")}),(0,t.jsx)(h.SelectItem,{value:"MANUAL",children:C("manual")})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("developmentTeam")}),Z.length?(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("teamId",e),value:e.teamId??"",children:[(0,t.jsx)(h.SelectTrigger,{children:(0,t.jsx)(h.SelectValue,{placeholder:"ABCDE12345"})}),(0,t.jsx)(h.SelectContent,{children:Z.map(e=>(0,t.jsx)(h.SelectItem,{value:e,children:e},e))})]}):(0,t.jsx)(m.Input,{disabled:S,onChange:e=>el("teamId",e.target.value||null),placeholder:"ABCDE12345",value:e.teamId??""})]})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsx)(g.Label,{children:C("signingCertificate")}),q?.certificates.length?(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("signingCertificate","AUTOMATIC"===e?null:e),value:e.signingCertificate??"AUTOMATIC",children:[(0,t.jsx)(h.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(h.SelectValue,{})}),(0,t.jsxs)(h.SelectContent,{children:[(0,t.jsx)(h.SelectItem,{value:"AUTOMATIC",children:C("certificateAutomatic")}),e.signingCertificate&&!es&&(0,t.jsxs)(h.SelectItem,{value:e.signingCertificate,children:[e.signingCertificate," · ",C("savedValueUnavailable")]}),en.map(e=>(0,t.jsxs)(h.SelectItem,{className:er(e)?void 0:"text-muted-foreground",value:e.sha1,children:[e.name," · ",e.sha1.slice(0,10),"…",!er(e)&&` \xb7 ${C("certificateMayNotMatch")}`]},e.sha1))]})]}):(0,t.jsx)(m.Input,{disabled:S,onChange:e=>el("signingCertificate",e.target.value||null),placeholder:C("certificateAutomatic"),value:e.signingCertificate??""})]}),ee&&q&&ee.installedAgents.length<q.agentCount&&(0,t.jsx)(u.Alert,{className:"sm:col-span-2",children:(0,t.jsx)(u.AlertDescription,{children:C("signingAssetCoverageWarning",{installed:ee.installedAgents.length,total:q.agentCount})})}),"MANUAL"===e.signingStyle&&(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(g.Label,{children:C("provisioningProfiles")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:C("parseProvisioningProfilesHelp")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(c.Button,{disabled:S||A||X||!q,onClick:()=>void J(),size:"sm",type:"button",variant:"outline",children:[(0,t.jsx)(r.RefreshCw,{className:X?"animate-spin":void 0}),I("refresh")]}),j&&(0,t.jsxs)(c.Button,{disabled:S||A||X||!q,onClick:()=>void ed(),size:"sm",type:"button",variant:"outline",children:[A?(0,t.jsx)(f.Spinner,{}):(0,t.jsx)(n,{}),C(E?"reparseProvisioningProfiles":"parseProvisioningProfiles")]})]})]}),G.length>0&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:I("refreshProgress",{complete:Y,total:G.length})}),$&&(0,t.jsx)(u.Alert,{variant:"destructive",children:(0,t.jsx)(u.AlertDescription,{children:$})}),(0,t.jsxs)("div",{className:"grid gap-2 rounded-lg border border-dashed p-3 sm:grid-cols-[minmax(0,1fr)_auto]",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{htmlFor:B,children:C("manualBundleIdentifier")}),(0,t.jsx)(m.Input,{disabled:S,id:B,onChange:e=>O(e.target.value),placeholder:C("manualBundleIdentifierPlaceholder"),value:P}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:C("manualBundleIdentifierHelp")})]}),(0,t.jsxs)(c.Button,{className:"sm:self-end",disabled:S||!P.trim()||w.some(e=>e.bundleId===P.trim()),onClick:()=>{let t=P.trim();!t||w.some(e=>e.bundleId===t)||(N(a=>[...a,{bundleId:t,name:t,target:t,platform:null,teamId:e.teamId,provisioningProfileSpecifier:null}]),z(e=>new Set(e).add(t)),O(""))},type:"button",variant:"outline",children:[(0,t.jsx)(i.Plus,{}),C("addBundleIdentifier")]})]}),D&&(0,t.jsx)(u.Alert,{variant:"destructive",children:(0,t.jsx)(u.AlertDescription,{children:D})}),!w.length&&E&&(0,t.jsx)("p",{className:"rounded-lg border border-dashed p-4 text-sm text-muted-foreground",children:C("noSigningRequirements")}),!w.length&&!E&&(0,t.jsx)("p",{className:"rounded-lg border border-dashed p-4 text-sm text-muted-foreground",children:C("parseProvisioningProfilesEmpty")}),w.map(a=>{let i,r=eo(a),n=new Set(r.map(e=>e.uuid)),l=(i=new Set(eo(a).map(e=>e.uuid)),(q?.profiles??[]).filter(e=>!e.expired).sort((e,t)=>Number(i.has(t.uuid))-Number(i.has(e.uuid))||(t.expiresAt??"").localeCompare(e.expiresAt??"")||e.name.localeCompare(t.name))),o=e.provisioningProfiles[a.bundleId]??"",d=l.some(e=>e.uuid===o);return(0,t.jsxs)("div",{className:"rounded-lg border p-3",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:a.name}),(0,t.jsx)("p",{className:"break-all font-mono text-xs text-muted-foreground",children:a.bundleId}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:[a.target,a.platform,a.teamId].filter(Boolean).join(" · ")})]}),_.has(a.bundleId)&&(0,t.jsx)(c.Button,{"aria-label":C("removeBundleIdentifier",{bundleId:a.bundleId}),disabled:S,onClick:()=>{var t;let i;return t=a.bundleId,N(e=>e.filter(e=>e.bundleId!==t)),z(e=>{let a=new Set(e);return a.delete(t),a}),i={...e.provisioningProfiles},void(delete i[t],el("provisioningProfiles",i))},size:"icon-sm",type:"button",variant:"ghost",children:(0,t.jsx)(s.Trash2,{})})]}),(0,t.jsxs)(h.Select,{disabled:S||!q,onValueChange:t=>el("provisioningProfiles",{...e.provisioningProfiles,[a.bundleId]:t}),value:o,children:[(0,t.jsx)(h.SelectTrigger,{className:"w-full min-w-0",children:(0,t.jsx)(h.SelectValue,{placeholder:C("selectProfile")})}),(0,t.jsxs)(h.SelectContent,{children:[o&&!d&&(0,t.jsxs)(h.SelectItem,{value:o,children:[o," · ",C("savedValueUnavailable")]}),l.map(e=>{let a;return(0,t.jsxs)(h.SelectItem,{className:n.has(e.uuid)?void 0:"text-muted-foreground",value:e.uuid,children:[(a=e.expiresAt?(0,v.formatDateValue)(e.expiresAt,"short",{locale:k,showTime:!1}):null)?`${e.name} — ${a}`:e.name,!n.has(e.uuid)&&` \xb7 ${C("profileMayNotMatch")}`]},e.uuid)})]})]}),!r.length&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:C("noMatchingProfiles")})]},a.bundleId)})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("thinning")}),(0,t.jsx)(m.Input,{disabled:S,onChange:e=>el("thinning",e.target.value||null),placeholder:"<none> / <thin-for-all-variants>",value:e.thinning??""})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(g.Label,{children:C("iCloudEnvironment")}),(0,t.jsxs)(h.Select,{disabled:S,onValueChange:e=>el("iCloudContainerEnvironment","NONE"===e?null:e),value:e.iCloudContainerEnvironment??"NONE",children:[(0,t.jsx)(h.SelectTrigger,{children:(0,t.jsx)(h.SelectValue,{})}),(0,t.jsxs)(h.SelectContent,{children:[(0,t.jsx)(h.SelectItem,{value:"NONE",children:"—"}),(0,t.jsx)(h.SelectItem,{value:"Development",children:"Development"}),(0,t.jsx)(h.SelectItem,{value:"Production",children:"Production"})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,t.jsx)(g.Label,{children:C("distributionBundleIdentifier")}),(0,t.jsx)(m.Input,{disabled:S,onChange:e=>el("distributionBundleIdentifier",e.target.value||null),value:e.distributionBundleIdentifier??""})]}),[["uploadSymbols","uploadSymbols"],["manageAppVersionAndBuildNumber","manageBuildNumber"],["testFlightInternalTestingOnly","internalTestFlightOnly"],["stripSwiftSymbols","stripSwiftSymbols"]].map(([a,i])=>(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(p.Checkbox,{checked:e[a],disabled:S,onCheckedChange:e=>el(a,!!e)}),C(i)]},a)),(0,t.jsx)("p",{className:"text-xs text-muted-foreground sm:col-span-2",children:C("localExportOnly")})]})}],52253)}]);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},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)},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},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)},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"}}])},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])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...s}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...s})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let s=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(s({variant:a}),e),...n})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},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])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},635416,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,t],635416)},320228,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["DetailItem",0,function({label:e,children:r,mono:s=!1,className:n,...i}){return(0,t.jsxs)("div",{className:(0,a.cn)("min-w-0",n),...i,children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:(0,a.cn)("mt-0.5 text-sm tabular-nums",s&&"break-all font-mono"),children:r})]})},"DetailList",0,function({className:e,...r}){return(0,t.jsx)("dl",{className:(0,a.cn)("grid gap-3 text-sm",e),...r})}])},456539,e=>{"use strict";var t=e.i(144716);e.s(["ChevronUp",()=>t.default])},119756,e=>{"use strict";var t=e.i(843476),a=e.i(635416),r=e.i(716327),s=e.i(867927),n=e.i(456539),i=e.i(762368),l=e.i(741120),d=e.i(566595),o=e.i(271645),c=e.i(519455),u=e.i(515288),m=e.i(793479),h=e.i(975157);let p={incremental:!0,decorations:{matchBackground:"#713f12",matchOverviewRuler:"#f59e0b",activeMatchBackground:"#f59e0b",activeMatchColorOverviewRuler:"#fbbf24"}};e.s(["TerminalOutputCard",0,function({sourceKey:x,title:f,entries:g,emptyText:b,followLabel:v,fitLabel:j,searchLabel:w,previousMatchLabel:y,nextMatchLabel:C,rawOutputHref:N,rawOutputLabel:k,ariaLabel:R,open:A=!0,onOpenChange:T,collapseLabel:I,expandLabel:E,className:D}){let[S,L]=(0,o.useState)(null),M=(0,o.useRef)(null),O=(0,o.useRef)(null),$=(0,o.useRef)(null),B=(0,o.useRef)(g),z=(0,o.useRef)(new Set),F=(0,o.useRef)(null),_=(0,o.useRef)(!0),[H,P]=(0,o.useState)(!0),U=(0,o.useRef)(""),[q,K]=(0,o.useState)(""),[Y,G]=(0,o.useState)({resultIndex:-1,resultCount:0}),W=(0,o.useCallback)((e,t="next")=>{U.current=e,K(e);let a=$.current;if(!e){a?.clearDecorations(),G({resultIndex:-1,resultCount:0});return}"previous"===t?a?.findPrevious(e,p):a?.findNext(e,p)},[]),V=(0,o.useCallback)(e=>{let t=M.current;if(t)for(let a of e){if(z.current.has(a.id))continue;let e=z.current.size>0;z.current.add(a.id);let r=a.dividerKey??a.divider;if(a.divider&&r!==F.current){F.current=r??null;let s=e?"\r\n":"";t.write(`${s}\x1b[90m── ${a.divider} ──\x1b[0m\r
|
|
20
|
+
`)}t.write(a.data,()=>{_.current&&t.scrollToBottom()})}},[]);(0,o.useEffect)(()=>{B.current=g,V(g)},[g,V]),(0,o.useEffect)(()=>{if(!S||!A)return;let t=!1,a=null,r=null,s=null,n=null,i=0,l=null,d=null,o=null;return z.current.clear(),F.current=null,_.current=!0,Promise.all([e.A(537138),e.A(359439),e.A(664183)]).then(([{Terminal:e},{FitAddon:c},{SearchAddon:u}])=>{if(t)return;P(!0);let m=new e({allowProposedApi:!0,convertEol:!0,cursorBlink:!1,disableStdin:!0,fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace',fontSize:13,scrollback:1e5,theme:{background:"#09090b",foreground:"#fafafa",cursor:"#a1a1aa",selectionBackground:"#3f3f46"}}),h=new c,x=new u;m.loadAddon(h),m.loadAddon(x),m.open(S),h.fit(),M.current=m,O.current=h,$.current=x,s=x.onDidChangeResults(e=>G(e)),r=m.onScroll(()=>{let e=m.buffer.active.viewportY>=m.buffer.active.baseY;_.current=e,P(e)}),(a=new ResizeObserver(()=>h.fit())).observe(S),l=()=>{n=null,i=0},d=e=>{1!==e.touches.length?l?.():(n=e.touches[0].clientY,i=0)},o=e=>{if(null===n||1!==e.touches.length)return;let t=e.touches[0].clientY,a=n-t;n=t;let r=m.buffer.active;if(!(a>0&&r.viewportY<r.baseY||a<0&&r.viewportY>0)){i=0;return}i+=a;let s=m.element?.querySelector(".xterm-screen")?.getBoundingClientRect().height??0,l=s>0&&m.rows>0?s/m.rows:16,d=i>0?Math.floor(i/l):Math.ceil(i/l);d&&(m.scrollLines(d),i-=d*l),e.preventDefault(),e.stopPropagation()},S.addEventListener("touchstart",d,{passive:!0}),S.addEventListener("touchmove",o,{passive:!1}),S.addEventListener("touchend",l,{passive:!0}),S.addEventListener("touchcancel",l,{passive:!0}),V(B.current),U.current&&x.findNext(U.current,p)}),()=>{t=!0,a?.disconnect(),r?.dispose(),s?.dispose(),d&&S.removeEventListener("touchstart",d),o&&S.removeEventListener("touchmove",o),l&&(S.removeEventListener("touchend",l),S.removeEventListener("touchcancel",l)),M.current?.dispose(),M.current=null,O.current=null,$.current=null}},[A,x,S,V]);let Q=Y.resultCount?`${Math.max(0,Y.resultIndex+1)}/${Y.resultCount}`:"0/0";return(0,t.jsxs)(u.Card,{className:(0,h.cn)("gap-0 py-0",D),children:[(0,t.jsxs)(u.CardHeader,{className:"grid-cols-1 has-data-[slot=card-action]:grid-cols-1 @md/card-header:has-data-[slot=card-action]:grid-cols-[1fr_auto]",children:[(0,t.jsx)(u.CardTitle,{className:"min-w-0",children:T?(0,t.jsx)(c.Button,{"aria-expanded":A,className:"-mx-2 -my-1 h-auto w-full min-w-0 justify-start px-2 py-1 font-heading text-base leading-snug font-medium aria-expanded:bg-transparent aria-expanded:hover:bg-muted dark:aria-expanded:bg-transparent dark:aria-expanded:hover:bg-muted/50",onClick:()=>T(!A),type:"button",variant:"ghost",children:(0,t.jsx)("span",{className:"truncate",children:f})}):f}),(0,t.jsxs)(u.CardAction,{className:"col-start-1 row-span-1 row-start-2 flex max-w-full flex-wrap items-center justify-start gap-1 justify-self-start @md/card-header:col-start-2 @md/card-header:row-span-2 @md/card-header:row-start-1 @md/card-header:justify-end @md/card-header:justify-self-end",children:[A&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(d.Search,{className:"pointer-events-none absolute top-1/2 left-2 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(m.Input,{"aria-label":w,className:"h-7 w-28 pr-10 pl-7 text-xs sm:w-52",onChange:e=>W(e.target.value),onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),W(q,e.shiftKey?"previous":"next")):"Escape"===e.key&&W("")},placeholder:w,type:"search",value:q}),(0,t.jsx)("span",{className:"pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 font-mono text-[10px] text-muted-foreground tabular-nums",children:Q})]}),(0,t.jsx)(c.Button,{"aria-label":y,disabled:!q||0===Y.resultCount,onClick:()=>W(q,"previous"),size:"icon-sm",title:y,type:"button",variant:"ghost",children:(0,t.jsx)(n.ChevronUp,{})}),(0,t.jsx)(c.Button,{"aria-label":C,disabled:!q||0===Y.resultCount,onClick:()=>W(q),size:"icon-sm",title:C,type:"button",variant:"ghost",children:(0,t.jsx)(r.ChevronDown,{})})]}),A&&N&&k&&(0,t.jsx)(c.Button,{asChild:!0,size:"icon-sm",variant:"outline",children:(0,t.jsx)("a",{"aria-label":k,href:N,title:k,children:(0,t.jsx)(i.Download,{})})}),A&&(0,t.jsx)(c.Button,{"aria-label":j,size:"icon-sm",title:j,variant:"outline",onClick:()=>O.current?.fit(),children:(0,t.jsx)(l.RefreshCw,{})}),T&&(0,t.jsx)(c.Button,{"aria-expanded":A,"aria-label":A?I:E,className:"aria-expanded:bg-transparent aria-expanded:hover:bg-muted dark:aria-expanded:bg-transparent dark:aria-expanded:hover:bg-muted/50",onClick:()=>T(!A),size:"icon-sm",title:A?I:E,type:"button",variant:"ghost",children:A?(0,t.jsx)(r.ChevronDown,{className:"size-5"}):(0,t.jsx)(s.ChevronRight,{className:"size-5"})})]})]}),A&&(0,t.jsxs)("div",{className:"relative bg-[#09090b]",children:[(0,t.jsx)("div",{"aria-label":R,className:"h-[min(60dvh,42rem)] px-2 pb-2",ref:L,role:"log"}),!g.length&&(0,t.jsx)("p",{className:"pointer-events-none absolute inset-0 p-4 font-mono text-xs text-neutral-400",children:b}),!H&&(0,t.jsx)(c.Button,{"aria-label":v,className:"absolute right-4 bottom-4 z-10 border-white/15 bg-neutral-800/70 text-white shadow-lg backdrop-blur-sm hover:bg-neutral-700/90 hover:text-white",onClick:()=>{_.current=!0,P(!0),M.current?.scrollToBottom()},size:"icon",title:v,type:"button",variant:"outline",children:(0,t.jsx)(a.ArrowDown,{})})]})]})},"decodeTerminalBase64",0,function(e){let t=atob(e),a=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)a[e]=t.charCodeAt(e);return a}])},173115,e=>{"use strict";var t=e.i(843476),a=e.i(711241),r=e.i(689664),s=e.i(489002),n=e.i(508734),i=e.i(482022),l=e.i(259911),d=e.i(395925),o=e.i(861745),c=e.i(948148),u=e.i(271645),m=e.i(816484),h=e.i(320228),p=e.i(119756),x=e.i(929592),f=e.i(487486),g=e.i(519455),b=e.i(515288),v=e.i(784774),j=e.i(520133),w=e.i(42308),y=e.i(462777),C=e.i(637611),N=e.i(975157),k=e.i(171502),R=e.i(183691);let A="id attemptId attemptNumber sequence stream dataBase64 byteLength createdAt",T=[];function I(e){let t=Math.max(0,Math.floor(e/1e3)),a=Math.floor(t/3600),r=Math.floor(t%3600/60),s=t%60;return a>0?`${a}h${r>0?` ${r}m`:""}`:r>0?`${r}m${s>0?` ${s}s`:""}`:`${s}s`}function E({startedAt:e}){let a=Date.parse(e),r=(0,w.useNow)(Number.isFinite(a)?a:null);return Number.isFinite(a)&&null!==r?(0,t.jsx)(t.Fragment,{children:I(r-a)}):(0,t.jsx)(t.Fragment,{children:"—"})}function D({startedAt:e,finishedAt:a}){if(!e)return(0,t.jsx)(t.Fragment,{children:"—"});if(!a)return(0,t.jsx)(E,{startedAt:e});let r=Date.parse(e),s=Date.parse(a);return Number.isFinite(r)&&Number.isFinite(s)?(0,t.jsx)(t.Fragment,{children:I(s-r)}):(0,t.jsx)(t.Fragment,{children:"—"})}function S(e,t){let a=new Map(e.map(e=>[e.id,e]));for(let e of t)a.set(e.id,e);return[...a.values()].sort((e,t)=>e.attemptNumber-t.attemptNumber||e.sequence-t.sequence||e.id.localeCompare(t.id))}e.s(["CommandRunPage",0,function({runId:e}){let w=(0,c.useTranslations)("commands"),I=(0,o.useLocale)(),E=(0,j.useRouter)(),[L,M]=(0,u.useState)(null),[O,$]=(0,u.useState)({runId:e,chunks:[]}),B=O.runId===e?O.chunks:T,[z,F]=(0,u.useState)(null),[_,H]=(0,u.useState)(!1),[P,U]=(0,u.useState)(!1),q=(0,u.useCallback)(async()=>{try{let t=await (0,C.controlPlaneRequest)(`query CommandRunDetail($id: ID!) { commandRun(id: $id) { ${R.COMMAND_RUN_FIELDS} predecessor { id displayNumber } successor { id displayNumber } } }`,{id:e});M(t.commandRun),F(t.commandRun?null:w("runNotFound"))}catch(e){F(e instanceof Error?e.message:String(e))}},[e,w]);(0,u.useEffect)(()=>{let t=!1,a=!0,r=[],s=(0,C.controlPlaneSubscriptions)().subscribe({query:`subscription CommandOutput($runId: ID!) { commandRunOutputAdded(runId: $runId) { ${A} } }`,variables:{runId:e}},{next:t=>{let s=t.data?.commandRunOutputAdded;s&&(a?r.push(s):$(t=>({runId:e,chunks:S(t.runId===e?t.chunks:[],[s])})))},error:()=>void 0,complete:()=>void 0});return(async()=>{let s=[],n=0,i=-1;for(;!t;){let{commandRunOutput:t}=await (0,C.controlPlaneRequest)(`query CommandOutput($runId: ID!, $afterAttempt: Int!, $afterSequence: Int!) {
|
|
21
|
+
commandRunOutput(runId: $runId, afterAttempt: $afterAttempt, afterSequence: $afterSequence, first: 1000) { ${A} }
|
|
22
|
+
}`,{runId:e,afterAttempt:n,afterSequence:i});if(s.push(...t),t.length<1e3)break;let a=t.at(-1);if(!a)break;n=a.attemptNumber,i=a.sequence}t||(a=!1,$({runId:e,chunks:S(s,r)}),r=[])})().catch(s=>{t||(a=!1,$(t=>({runId:e,chunks:S(t.runId===e?t.chunks:[],r)})),r=[],F(s instanceof Error?s.message:String(s)))}),()=>{t=!0,s()}},[e]),(0,u.useEffect)(()=>{let t=window.setTimeout(()=>void q(),0),a=(0,C.controlPlaneSubscriptions)().subscribe({query:"subscription CommandRunStatus($runId: ID!) { commandRunChanged(runId: $runId) { id status updatedAt } }",variables:{runId:e}},{next:()=>void q(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),a()}},[q,e]);let K=async t=>{H(!0);try{if("terminate"===t)await (0,C.controlPlaneRequest)("mutation TerminateCommandRun($id: ID!) { terminateCommandRun(id: $id) { id status } }",{id:e}),await q();else{let t=await (0,C.controlPlaneRequest)("mutation RerunCommandRun($id: ID!) { rerunCommandRun(id: $id) { id } }",{id:e});E.push(`/commands/runs/${t.rerunCommandRun.id}`)}}catch(e){F(e instanceof Error?e.message:String(e))}finally{H(!1)}},Y=async e=>{try{await (0,y.copyText)(e),U(!0)}catch{F(w("copyFailed"))}},G=(0,u.useMemo)(()=>B.map(e=>({id:e.id,data:(0,p.decodeTerminalBase64)(e.dataBase64),divider:w("attemptDivider",{number:e.attemptNumber}),dividerKey:String(e.attemptNumber)})),[B,w]);if(!L&&!z)return(0,t.jsx)(b.Card,{className:"h-96 animate-pulse"});if(!L)return(0,t.jsx)(x.Alert,{variant:"destructive",children:(0,t.jsx)(x.AlertDescription,{children:z})});let W=L.worktree?.highlightColor;return(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("div",{className:(0,N.cn)("flex flex-wrap items-center gap-3",W&&"rounded-lg border-l-4 p-4",W&&k.worktreeHighlightBackgroundClasses[W],W&&k.worktreeHighlightAccentClasses[W]),"data-testid":"command-run-summary",children:[(0,t.jsx)(g.Button,{asChild:!0,size:"icon",variant:"ghost",children:(0,t.jsx)(j.Link,{href:"/commands",children:(0,t.jsx)(a.ArrowLeft,{})})}),(0,t.jsxs)("div",{className:"mr-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:L.snapshotName}),(0,t.jsx)(f.Badge,{variant:"SUCCEEDED"===L.status?"default":"FAILED"===L.status?"destructive":"secondary",children:w((0,R.commandStatusKey)(L.status))})]}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[w("runNumber",{number:L.displayNumber})," ·"," ",w((0,R.commandOriginKey)(L.origin))]})]}),L.commandId&&(0,t.jsx)(g.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(j.Link,{href:`/commands/${L.commandId}/edit`,children:[(0,t.jsx)(l.FilePenLine,{}),w("editCommand")]})}),(0,t.jsxs)(g.Button,{disabled:_,variant:"outline",onClick:()=>void K("rerun"),children:[(0,t.jsx)(d.RotateCcw,{}),w("rerun")]}),(0,R.activeCommandRun)(L.status)&&(0,t.jsxs)(g.Button,{disabled:_,variant:"destructive",onClick:()=>void K("terminate"),children:[(0,t.jsx)(s.CircleStop,{}),w("terminate")]})]}),z&&(0,t.jsx)(x.Alert,{variant:"destructive",children:(0,t.jsx)(x.AlertDescription,{children:z})}),L.error&&(0,t.jsxs)(x.Alert,{variant:"destructive",children:[(0,t.jsx)(x.AlertTitle,{children:w("runError")}),(0,t.jsx)(x.AlertDescription,{children:L.error})]}),(0,t.jsxs)(b.Card,{children:[(0,t.jsx)(b.CardHeader,{children:(0,t.jsx)(b.CardTitle,{children:w("overview")})}),(0,t.jsx)(b.CardContent,{children:(0,t.jsxs)(h.DetailList,{className:"sm:grid-cols-6",children:[(0,t.jsxs)(h.DetailItem,{className:"sm:col-span-3",label:w("agent"),children:[L.agentId?(0,t.jsx)(g.Button,{asChild:!0,className:"h-auto w-full min-w-0 items-start justify-start px-0 text-left whitespace-normal",variant:"link",children:(0,t.jsxs)(j.Link,{href:`/agents/${L.agentId}`,children:[(0,t.jsx)("span",{className:"min-w-0 break-words",children:L.agentName}),(0,t.jsx)(i.ExternalLink,{})]})}):(0,t.jsx)("p",{className:"break-words",children:L.agentName}),(0,t.jsx)("p",{className:"break-words text-xs text-muted-foreground",children:L.agentHostname})]}),(0,t.jsx)(h.DetailItem,{className:"sm:col-span-3",label:w("worktree"),children:L.worktreeId?(0,t.jsx)(g.Button,{asChild:!0,className:"h-auto w-full min-w-0 items-start justify-start px-0 text-left whitespace-normal",variant:"link",children:(0,t.jsxs)(j.Link,{href:`/worktrees/${L.worktreeId}`,children:[(0,t.jsx)("span",{className:"min-w-0 break-words",children:L.worktreeBranch||L.worktreePath}),(0,t.jsx)(i.ExternalLink,{})]})}):L.snapshotTargetKind.includes("WORKTREE")?(0,t.jsx)("p",{className:"break-words",children:L.worktreeBranch||L.worktreePath||w("targetUnavailable")}):(0,t.jsx)("p",{children:w("agentHome")})}),(0,t.jsxs)(h.DetailItem,{className:"sm:col-span-2",label:w("restart"),children:[(0,t.jsxs)("p",{children:[w((0,R.commandRestartKey)(L.snapshotRestartPolicy)),"NEVER"!==L.snapshotRestartPolicy&&(0,t.jsxs)(t.Fragment,{children:[" · ",L.restartCount,"/",L.snapshotRestartLimit??"∞"]})]}),L.nextRestartAt&&(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[w("nextRestart")," ",(0,t.jsx)(m.DateTime,{value:L.nextRestartAt})]})]}),(0,t.jsx)(h.DetailItem,{className:"sm:col-span-2",label:w("started"),children:(0,t.jsx)(m.DateTime,{value:L.startedAt})}),(0,t.jsx)(h.DetailItem,{className:"sm:col-span-2",label:w("duration"),children:(0,t.jsx)(D,{finishedAt:L.finishedAt,startedAt:L.startedAt})})]})})]}),(0,t.jsx)(p.TerminalOutputCard,{ariaLabel:w("terminalOutput"),emptyText:w("noOutput"),entries:G,fitLabel:w("fitTerminal"),followLabel:w("followOutput"),nextMatchLabel:w("nextTerminalMatch"),previousMatchLabel:w("previousTerminalMatch"),rawOutputHref:`/${I}/commands/runs/${encodeURIComponent(e)}/output`,rawOutputLabel:w("viewRawOutput"),searchLabel:w("searchTerminal"),sourceKey:e,title:w("terminalOutput")},e),(0,t.jsxs)(b.Card,{className:"gap-0 py-0",children:[(0,t.jsx)(b.CardHeader,{children:(0,t.jsx)(b.CardTitle,{children:w("attempts")})}),(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableHead,{children:"#"}),(0,t.jsx)(v.TableHead,{children:w("status")}),(0,t.jsx)(v.TableHead,{children:w("started")}),(0,t.jsx)(v.TableHead,{children:w("finished")}),(0,t.jsx)(v.TableHead,{children:w("result")})]})}),(0,t.jsx)(v.TableBody,{children:L.attempts.map(e=>(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableCell,{children:e.attempt}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(f.Badge,{variant:"outline",children:w((0,R.commandStatusKey)(e.status))})}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(m.DateTime,{value:e.startedAt})}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(m.DateTime,{value:e.finishedAt})}),(0,t.jsx)(v.TableCell,{children:null!==e.exitCode?w("exitCode",{code:e.exitCode}):e.signal||e.error||"—"})]},e.id))})]})]}),(0,t.jsxs)(b.Card,{children:[(0,t.jsxs)(b.CardHeader,{children:[(0,t.jsx)(b.CardTitle,{children:w("snapshot")}),(0,t.jsx)(b.CardAction,{children:(0,t.jsxs)(g.Button,{onClick:()=>void Y(L.snapshotScript),size:"sm",type:"button",variant:"outline",children:[P?(0,t.jsx)(r.Check,{}):(0,t.jsx)(n.Copy,{}),P?w("commandCopied"):w("copyCommand")]})})]}),(0,t.jsx)(b.CardContent,{children:(0,t.jsx)("pre",{className:"overflow-x-auto whitespace-pre-wrap rounded-md bg-muted p-4 text-xs",children:L.snapshotScript})})]})]})}])},537138,e=>{e.v(t=>Promise.all(["static/chunks/3yddjzup-8go1.js"].map(t=>e.l(t))).then(()=>t(299894)))},359439,e=>{e.v(t=>Promise.all(["static/chunks/3btt4msbp4kvs.js"].map(t=>e.l(t))).then(()=>t(193309)))},664183,e=>{e.v(t=>Promise.all(["static/chunks/2kuorxz9bzz0w.js"].map(t=>e.l(t))).then(()=>t(306433)))}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(30030),n=e.i(820783),i=e.i(326999),r=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,s.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),p=o(e=>{let{__scopeAlertDialog:a,...s}=e,n=u(a);return(0,t.jsx)(i.Root,{...n,...s,modal:!0})},"AlertDialog"),x=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Trigger,{...r,...n,ref:a})},"AlertDialogTrigger")),m=o(e=>{let{__scopeAlertDialog:a,...s}=e,n=u(a);return(0,t.jsx)(i.Portal,{...n,...s})},"AlertDialogPortal"),h=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Overlay,{...r,...n,ref:a})},"AlertDialogOverlay")),[g,f]=d("AlertDialogContent"),E=a.forwardRef(o(function(e,s){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),p=a.useRef(null),x=(0,n.useComposedRefs)(s,p),m=a.useRef(null);return(0,t.jsx)(g,{scope:l,cancelRef:m,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:x,onOpenAutoFocus:(0,r.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Title,{...r,...n,ref:a})},"AlertDialogTitle")),j=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Description,{...r,...n,ref:a})},"AlertDialogDescription")),b=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Close,{...r,...n,ref:a})},"AlertDialogAction")),C=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,{cancelRef:l}=f("AlertDialogCancel",s),o=u(s),d=(0,n.useComposedRefs)(a,l);return(0,t.jsx)(i.Close,{...o,...r,ref:d})},"AlertDialogCancel"));e.s(["Action",0,b,"AlertDialog",0,p,"AlertDialogAction",0,b,"AlertDialogCancel",0,C,"AlertDialogContent",0,E,"AlertDialogDescription",0,j,"AlertDialogOverlay",0,h,"AlertDialogPortal",0,m,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,x,"Cancel",0,C,"Content",0,E,"Description",0,j,"Overlay",0,h,"Portal",0,m,"Root",0,p,"Title",0,v,"Trigger",0,x,"createAlertDialogScope",0,c],691162);var y=e.i(691162),y=y,S=e.i(975157),N=e.i(519455);function A({...e}){return(0,t.jsx)(y.Root,{"data-slot":"alert-dialog",...e})}function D({...e}){return(0,t.jsx)(y.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function _({...e}){return(0,t.jsx)(y.Portal,{"data-slot":"alert-dialog-portal",...e})}function R({className:e,...a}){return(0,t.jsx)(y.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,S.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 T({className:e,size:a="default",...s}){return(0,t.jsxs)(_,{children:[(0,t.jsx)(R,{}),(0,t.jsx)(y.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,S.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),...s})]})}function O({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,S.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 I({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,S.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 w({className:e,...a}){return(0,t.jsx)(y.Title,{"data-slot":"alert-dialog-title",className:(0,S.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 B({className:e,...a}){return(0,t.jsx)(y.Description,{"data-slot":"alert-dialog-description",className:(0,S.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function L({className:e,variant:a="default",size:s="default",...n}){return(0,t.jsx)(N.Button,{variant:a,size:s,asChild:!0,children:(0,t.jsx)(y.Action,{"data-slot":"alert-dialog-action",className:(0,S.cn)(e),...n})})}function k({className:e,variant:a="outline",size:s="default",...n}){return(0,t.jsx)(N.Button,{variant:a,size:s,asChild:!0,children:(0,t.jsx)(y.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,S.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:s,onConfirm:n,onOpenChange:i,open:r,title:l,trigger:o}){return(0,t.jsxs)(A,{onOpenChange:i,open:r,children:[o&&(0,t.jsx)(D,{asChild:!0,children:o}),(0,t.jsxs)(T,{children:[(0,t.jsxs)(O,{children:[(0,t.jsx)(w,{children:l}),(0,t.jsx)(B,{children:s})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(k,{children:a}),(0,t.jsx)(L,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),s=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,s.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,s.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,s.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,s.cn)(n({variant:a,className:e})),...i})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,s.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},624687,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Textarea",0,function({className:e,...s}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,a.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...s})}])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},755838,(e,t,a)=>{"use strict";var s=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=s.useState,r=s.useEffect,l=s.useLayoutEffect,o=s.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}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 a=t(),s=i({inst:{value:a,getSnapshot:t}}),n=s[0].inst,c=s[1];return l(function(){n.value=a,n.getSnapshot=t,d(n)&&c({inst:n})},[e,a,t]),r(function(){return d(n)&&c({inst:n}),e(function(){d(n)&&c({inst:n})})},[e]),o(a),a};a.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},802239,(e,t,a)=>{"use strict";t.exports=e.r(755838)},776639,e=>{"use strict";var t=e.i(843476),a=e.i(560964),s=e.i(964053),n=e.i(519455),i=e.i(975157);function r({...e}){return(0,t.jsx)(s.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(s.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",...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,showCloseButton:d=!0,...c}){return(0,t.jsxs)(r,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(s.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)(s.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)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(s.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",...a})},"DialogFooter",0,function({className:e,showCloseButton:a=!1,children:r,...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:[r,a&&(0,t.jsx)(s.Dialog.Close,{asChild:!0,children:(0,t.jsx)(n.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...a})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...a})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(s.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},515281,e=>{"use strict";let t=(0,e.i(456420).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],515281)},421645,e=>{"use strict";e.s(["CODEBASE_BROWSE_JOB_KIND",0,"codebase.browse","CODEBASE_FETCH_JOB_KIND",0,"codebase.fetch","CODEBASE_GIT_INSPECT_JOB_KIND",0,"codebase.git.inspect","CODEBASE_GIT_OPERATIONS",0,["SWITCH_BRANCH","DELETE_BRANCH","DELETE_REMOTE_BRANCH","PULL_BRANCH","APPLY_STASH","DELETE_STASH"],"CODEBASE_GIT_OPERATION_JOB_KIND",0,"codebase.git.operation","CODEBASE_INSPECT_JOB_KIND",0,"codebase.inspect","CODEBASE_RECONCILE_EVENT_CAPABILITY",0,"codebase.reconcile.requested","CODEBASE_REFRESH_JOB_KIND",0,"codebase.refresh","DEFAULT_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,30,"MAX_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,3600,"MIN_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,10])},434719,e=>{"use strict";let t=String.raw`\b([A-Z][A-Z0-9_]*-\d+)\b`;e.s(["DEFAULT_JIRA_BRANCH_REGEX",0,t,"DEFAULT_WORKTREE_FETCH_INTERVAL_SECONDS",0,300,"MAX_WORKTREE_FETCH_INTERVAL_SECONDS",0,86400,"MIN_WORKTREE_FETCH_INTERVAL_SECONDS",0,60,"WORKTREE_BRANCH_JOB_KIND",0,"worktree.branch","WORKTREE_DELETE_JOB_KIND",0,"worktree.delete","WORKTREE_GIT_INSPECT_JOB_KIND",0,"worktree.git.inspect","WORKTREE_GIT_OPERATIONS",0,["SWITCH_BRANCH","DELETE_BRANCH","DELETE_REMOTE_BRANCH","PULL_BRANCH","APPLY_STASH","DELETE_STASH"],"WORKTREE_GIT_OPERATION_JOB_KIND",0,"worktree.git.operation","WORKTREE_INSPECT_JOB_KIND",0,"worktree.inspect","WORKTREE_MOVE_CHECKOUT_JOB_KIND",0,"worktree.move.checkout","WORKTREE_MOVE_PUSH_JOB_KIND",0,"worktree.move.push","WORKTREE_OPERATIONS",0,["OPEN_EDITOR","FORCE_PUSH","SYNC","REBASE","CANCEL_REBASE","PUSH","RESET","STASH_ALL","STAGE_ALL","UNSTAGE_ALL"],"WORKTREE_OPERATION_JOB_KIND",0,"worktree.operation","WORKTREE_WATCH_JOB_KIND",0,"worktree.watch"])},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},768877,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],768877)},874801,e=>{"use strict";var t=e.i(843476),a=e.i(867927),s=e.i(456420);let n=(0,s.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"}]]),i=(0,s.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 r=e.i(902434),r=r,l=e.i(948148),o=e.i(271645),d=e.i(929592),c=e.i(519455),u=e.i(257428),p=e.i(110204),x=e.i(987968),m=e.i(462777),h=e.i(637611);e.s(["AgentDirectoryBrowser",0,function({agentId:e,browseLabel:s,disabled:g=!1,initialPath:f=null,onPathChange:E,onSelect:v,selectIcon:j,selectLabel:b}){var C;let y=(0,l.useTranslations)("codebases"),[S,N]=(0,o.useState)(null),[A,D]=(0,o.useState)(!1),[_,R]=(0,o.useState)(!1),[T,O]=(0,o.useState)(null),I=(0,o.useRef)(0),w=(0,o.useCallback)(async t=>{let a=++I.current;R(!0);try{let s=await (0,h.controlPlaneRequest)(`mutation BrowseAgentDirectory($input: BrowseAgentDirectoryInput!) {
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(30030),n=e.i(820783),i=e.i(326999),r=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,s.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),p=o(e=>{let{__scopeAlertDialog:a,...s}=e,n=u(a);return(0,t.jsx)(i.Root,{...n,...s,modal:!0})},"AlertDialog"),x=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Trigger,{...r,...n,ref:a})},"AlertDialogTrigger")),m=o(e=>{let{__scopeAlertDialog:a,...s}=e,n=u(a);return(0,t.jsx)(i.Portal,{...n,...s})},"AlertDialogPortal"),h=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Overlay,{...r,...n,ref:a})},"AlertDialogOverlay")),[g,f]=d("AlertDialogContent"),E=a.forwardRef(o(function(e,s){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),p=a.useRef(null),x=(0,n.useComposedRefs)(s,p),m=a.useRef(null);return(0,t.jsx)(g,{scope:l,cancelRef:m,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:x,onOpenAutoFocus:(0,r.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Title,{...r,...n,ref:a})},"AlertDialogTitle")),j=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Description,{...r,...n,ref:a})},"AlertDialogDescription")),b=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,r=u(s);return(0,t.jsx)(i.Close,{...r,...n,ref:a})},"AlertDialogAction")),C=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,{cancelRef:l}=f("AlertDialogCancel",s),o=u(s),d=(0,n.useComposedRefs)(a,l);return(0,t.jsx)(i.Close,{...o,...r,ref:d})},"AlertDialogCancel"));e.s(["Action",0,b,"AlertDialog",0,p,"AlertDialogAction",0,b,"AlertDialogCancel",0,C,"AlertDialogContent",0,E,"AlertDialogDescription",0,j,"AlertDialogOverlay",0,h,"AlertDialogPortal",0,m,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,x,"Cancel",0,C,"Content",0,E,"Description",0,j,"Overlay",0,h,"Portal",0,m,"Root",0,p,"Title",0,v,"Trigger",0,x,"createAlertDialogScope",0,c],691162);var y=e.i(691162),y=y,S=e.i(975157),N=e.i(519455);function A({...e}){return(0,t.jsx)(y.Root,{"data-slot":"alert-dialog",...e})}function D({...e}){return(0,t.jsx)(y.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function _({...e}){return(0,t.jsx)(y.Portal,{"data-slot":"alert-dialog-portal",...e})}function R({className:e,...a}){return(0,t.jsx)(y.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,S.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 T({className:e,size:a="default",...s}){return(0,t.jsxs)(_,{children:[(0,t.jsx)(R,{}),(0,t.jsx)(y.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,S.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),...s})]})}function O({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,S.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 I({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,S.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 w({className:e,...a}){return(0,t.jsx)(y.Title,{"data-slot":"alert-dialog-title",className:(0,S.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 B({className:e,...a}){return(0,t.jsx)(y.Description,{"data-slot":"alert-dialog-description",className:(0,S.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function L({className:e,variant:a="default",size:s="default",...n}){return(0,t.jsx)(N.Button,{variant:a,size:s,asChild:!0,children:(0,t.jsx)(y.Action,{"data-slot":"alert-dialog-action",className:(0,S.cn)(e),...n})})}function k({className:e,variant:a="outline",size:s="default",...n}){return(0,t.jsx)(N.Button,{variant:a,size:s,asChild:!0,children:(0,t.jsx)(y.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,S.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:s,onConfirm:n,onOpenChange:i,open:r,title:l,trigger:o}){return(0,t.jsxs)(A,{onOpenChange:i,open:r,children:[o&&(0,t.jsx)(D,{asChild:!0,children:o}),(0,t.jsxs)(T,{children:[(0,t.jsxs)(O,{children:[(0,t.jsx)(w,{children:l}),(0,t.jsx)(B,{children:s})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(k,{children:a}),(0,t.jsx)(L,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),s=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,s.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,s.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,s.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,s.cn)(n({variant:a,className:e})),...i})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,s.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},624687,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Textarea",0,function({className:e,...s}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,a.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...s})}])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},755838,(e,t,a)=>{"use strict";var s=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=s.useState,r=s.useEffect,l=s.useLayoutEffect,o=s.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}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 a=t(),s=i({inst:{value:a,getSnapshot:t}}),n=s[0].inst,c=s[1];return l(function(){n.value=a,n.getSnapshot=t,d(n)&&c({inst:n})},[e,a,t]),r(function(){return d(n)&&c({inst:n}),e(function(){d(n)&&c({inst:n})})},[e]),o(a),a};a.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},802239,(e,t,a)=>{"use strict";t.exports=e.r(755838)},776639,e=>{"use strict";var t=e.i(843476),a=e.i(560964),s=e.i(964053),n=e.i(519455),i=e.i(975157);function r({...e}){return(0,t.jsx)(s.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(s.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",...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,showCloseButton:d=!0,...c}){return(0,t.jsxs)(r,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(s.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)(s.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)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(s.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",...a})},"DialogFooter",0,function({className:e,showCloseButton:a=!1,children:r,...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:[r,a&&(0,t.jsx)(s.Dialog.Close,{asChild:!0,children:(0,t.jsx)(n.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...a})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...a})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(s.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},515281,e=>{"use strict";let t=(0,e.i(456420).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],515281)},421645,e=>{"use strict";e.s(["CODEBASE_BROWSE_JOB_KIND",0,"codebase.browse","CODEBASE_FETCH_JOB_KIND",0,"codebase.fetch","CODEBASE_GIT_INSPECT_JOB_KIND",0,"codebase.git.inspect","CODEBASE_GIT_OPERATIONS",0,["SWITCH_BRANCH","DELETE_BRANCH","DELETE_REMOTE_BRANCH","PULL_BRANCH","APPLY_STASH","DELETE_STASH"],"CODEBASE_GIT_OPERATION_JOB_KIND",0,"codebase.git.operation","CODEBASE_INSPECT_JOB_KIND",0,"codebase.inspect","CODEBASE_RECONCILE_EVENT_CAPABILITY",0,"codebase.reconcile.requested","CODEBASE_REFRESH_JOB_KIND",0,"codebase.refresh","DEFAULT_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,30,"MAX_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,3600,"MIN_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,10])},434719,e=>{"use strict";let t=String.raw`\b([A-Z][A-Z0-9_]*-\d+)\b`;e.s(["DEFAULT_JIRA_BRANCH_REGEX",0,t,"DEFAULT_WORKTREE_FETCH_INTERVAL_SECONDS",0,300,"MAX_WORKTREE_FETCH_INTERVAL_SECONDS",0,86400,"MIN_WORKTREE_FETCH_INTERVAL_SECONDS",0,60,"WORKTREE_BRANCH_JOB_KIND",0,"worktree.branch","WORKTREE_DELETE_JOB_KIND",0,"worktree.delete","WORKTREE_GIT_INSPECT_JOB_KIND",0,"worktree.git.inspect","WORKTREE_GIT_OPERATIONS",0,["SWITCH_BRANCH","DELETE_BRANCH","DELETE_REMOTE_BRANCH","PULL_BRANCH","APPLY_STASH","DELETE_STASH"],"WORKTREE_GIT_OPERATION_JOB_KIND",0,"worktree.git.operation","WORKTREE_INSPECT_JOB_KIND",0,"worktree.inspect","WORKTREE_MOVE_CHECKOUT_JOB_KIND",0,"worktree.move.checkout","WORKTREE_MOVE_PUSH_JOB_KIND",0,"worktree.move.push","WORKTREE_OPERATIONS",0,["OPEN_EDITOR","FORCE_PUSH","SYNC","REBASE","CANCEL_REBASE","PUSH","RESET","STASH_ALL","STAGE_ALL","UNSTAGE_ALL"],"WORKTREE_OPERATION_JOB_KIND",0,"worktree.operation","WORKTREE_WATCH_JOB_KIND",0,"worktree.watch"])},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},768877,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],768877)},874801,e=>{"use strict";var t=e.i(843476),a=e.i(867927),s=e.i(456420);let n=(0,s.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"}]]),i=(0,s.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 r=e.i(902434),r=r,l=e.i(948148),o=e.i(271645),d=e.i(929592),c=e.i(519455),u=e.i(257428),p=e.i(110204),x=e.i(987968),m=e.i(462777),h=e.i(637611);e.s(["AgentDirectoryBrowser",0,function({agentId:e,browseLabel:s,disabled:g=!1,initialPath:f=null,onPathChange:E,onSelect:v,selectIcon:j,selectLabel:b}){var C;let y=(0,l.useTranslations)("codebases"),[S,N]=(0,o.useState)(null),[A,D]=(0,o.useState)(!1),[_,R]=(0,o.useState)(!1),[T,O]=(0,o.useState)(null),I=(0,o.useRef)(0),w=(0,o.useCallback)(async t=>{let a=++I.current;R(!0);try{let s=await (0,h.controlPlaneRequest)(`mutation BrowseAgentDirectory($input: BrowseAgentDirectoryInput!) {
|
|
2
2
|
browseAgentDirectory(input: $input) {
|
|
3
3
|
path parentPath homePath truncated entries { name path hidden }
|
|
4
4
|
}
|