@ai-development-environment/server 0.0.27 → 0.0.29
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/prisma-runtime/prisma/migrations/20260718220000_add_build_freshness/migration.sql +1 -0
- package/prisma-runtime/prisma/schema.prisma +1 -0
- package/standalone/.next/BUILD_ID +1 -1
- package/standalone/.next/build-manifest.json +3 -3
- package/standalone/.next/prerender-manifest.json +3 -3
- 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]/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]/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]/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_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]/jira/cache/page_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/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]/settings/page_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_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]/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/api/build-artifact-uploads/[uploadId]/route.js +2 -2
- package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/builds/[buildId]/artifacts/[artifactId]/route.js +2 -2
- package/standalone/.next/server/app/api/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/codebases/by-path/route.js +2 -2
- package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/codebases/route.js +2 -2
- package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/graphql/route.js +2 -2
- package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/mcp/route.js +2 -2
- package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/tools/call/route.js +2 -2
- package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/tools/catalog/route.js +2 -2
- package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__1iv83x0._.js → [root-of-the-server]__0-ypkf7._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__08w_8a-._.js → [root-of-the-server]__00ku6-v._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0yfvw4a._.js → [root-of-the-server]__0138gz-._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0r5s0h6._.js → [root-of-the-server]__02vqwey._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__098f8w4._.js → [root-of-the-server]__056cnsc._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__1l6ed2g._.js → [root-of-the-server]__08mfybr._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0cs2bfc._.js → [root-of-the-server]__08u874i._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__01h2pl1._.js → [root-of-the-server]__09skp6r._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__14-aq4c._.js → [root-of-the-server]__0cyubup._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0_l5rqe._.js → [root-of-the-server]__0da1wsf._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__1mgcft0._.js → [root-of-the-server]__0e1fqyr._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__1frrx8s._.js → [root-of-the-server]__0f3ptor._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0k01mi-._.js → [root-of-the-server]__0fih0li._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__02qjyhj._.js → [root-of-the-server]__0g0tnct._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__1ehdq4c._.js → [root-of-the-server]__0gbor-2._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__09lyzw2._.js → [root-of-the-server]__0mj6qcr._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__14uwobw._.js → [root-of-the-server]__0p_h088._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0i4bd9d._.js → [root-of-the-server]__0vvjqp5._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__04rx7b9._.js → [root-of-the-server]__0w20bq-._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0hmrx3m._.js → [root-of-the-server]__0wf0pka._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0nxj1ky._.js → [root-of-the-server]__0wg2umj._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__17bgip6._.js → [root-of-the-server]__0xa_els._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0wx4-1l._.js → [root-of-the-server]__0xukz2x._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1-z6lg_._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__020ggc3._.js → [root-of-the-server]__15aat79._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__00_-x1w._.js → [root-of-the-server]__15bbm2q._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__09c7zmy._.js → [root-of-the-server]__16l4wed._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__04hrhu3._.js → [root-of-the-server]__19zwwdv._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0d4_f1e._.js → [root-of-the-server]__1a5_am-._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0kxltc8._.js → [root-of-the-server]__1ajaiy1._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__1dtlzq1._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1kpqohm._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1l7234r._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0qjhcow._.js → [root-of-the-server]__1oahp4o._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1vip3sa._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0cryh-d._.js → [root-of-the-server]__1wtng3p._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__1wu654b._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1x2nph5._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1xk-0be._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0h0mvv8._.js → [root-of-the-server]__210dhdj._.js} +1 -1
- package/standalone/.next/server/chunks/_0exkna-._.js +29 -8
- package/standalone/.next/server/chunks/{_0bru086._.js → _0jurkow._.js} +26 -26
- package/standalone/.next/server/chunks/{_00mzn-u._.js → _0rx5rfm._.js} +27 -27
- package/standalone/.next/server/chunks/_0tufgj0._.js +68 -47
- package/standalone/.next/server/chunks/_0w2eghf._.js +29 -8
- package/standalone/.next/server/chunks/_152rnkf._.js +3 -3
- package/standalone/.next/server/chunks/{_1_g2i-t._.js → _16x77b_._.js} +27 -27
- package/standalone/.next/server/chunks/_1dbqy8c._.js +3 -3
- package/standalone/.next/server/chunks/_1vrixpc._.js +3 -3
- package/standalone/.next/server/chunks/_1yfz-9u._.js +3 -3
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1osx7qy._.js → [root-of-the-server]__0361lgt._.js} +8 -2
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ay4_3d._.js +37 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0dm8osz._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0oj1os4._.js → [root-of-the-server]__1xv798-._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1z955gh._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_00ye62k._.js +35 -0
- package/standalone/.next/server/chunks/ssr/_07tglcd._.js +35 -0
- package/standalone/.next/server/chunks/ssr/_0bvpmhm._.js +29 -25
- package/standalone/.next/server/chunks/ssr/{_0hoc_fd._.js → _0ddgabq._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_1x13g5y._.js → _0eb36qa._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_1dnm1d4._.js → _0mr9u9p._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0nm6upn._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0quhjav._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0w05v7m._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0xozjkz._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0xrpdyy._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1-2qcpf._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_1vhf014._.js → _1-grolz._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_12ws_f2._.js +11 -0
- package/standalone/.next/server/chunks/ssr/_17p59oz._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_19fwji0._.js +11 -0
- package/standalone/.next/server/chunks/ssr/_1_1j9nd._.js +13 -0
- package/standalone/.next/server/chunks/ssr/_1g3i459._.js +15 -0
- package/standalone/.next/server/chunks/ssr/{_1oh35yj._.js → _1g_aflc._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_1dsdn7w._.js → _1lcwubl._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_0sp1ojg._.js → _1r2rmfp._.js} +8 -2
- package/standalone/.next/server/chunks/ssr/_1za3z6k._.js +28 -24
- package/standalone/.next/server/chunks/ssr/{_13jl9nw._.js → _1zyjq9y._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_20ufqtr._.js +3 -0
- 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/src_components_agents_agent-detail_tsx_0lfa4ui._.js +2 -2
- package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +9 -13
- package/standalone/.next/server/chunks/ssr/src_components_builds_builds-page_tsx_17qzmsl._.js +8 -12
- package/standalone/.next/server/chunks/ssr/src_components_github_actions-page_tsx_18434xt._.js +5 -5
- package/standalone/.next/server/chunks/ssr/src_components_github_pull-requests-page_tsx_1il3ga-._.js +12 -12
- package/standalone/.next/server/chunks/ssr/src_components_tools_tools-page_tsx_0k1jqcz._.js +2 -2
- package/standalone/.next/server/chunks/ssr/src_components_worktrees_worktree-detail-page_tsx_1oexgu_._.js +13 -4
- 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/{0sp_r-c6262te.js → 0newuocvg03xy.js} +1 -1
- package/standalone/.next/static/chunks/{3oyhf7rk2xr_g.js → 0rlomhlt6030e.js} +1 -1
- package/standalone/.next/static/chunks/16tfdsma_h0r5.js +33 -0
- package/standalone/.next/static/chunks/{1xjd6ye7mxyf5.js → 1802j8gq2g47d.js} +2 -2
- package/standalone/.next/static/chunks/1_tnhhn4f122y.js +9 -0
- package/standalone/.next/static/chunks/1eny65xy2ho48.js +1 -0
- package/standalone/.next/static/chunks/1l4bkigul15i3.js +25 -0
- package/standalone/.next/static/chunks/{3td_-1s61zkpa.js → 1nnp0crt0mi_-.js} +1 -1
- package/standalone/.next/static/chunks/1qd6cse_d9ae1.js +99 -0
- package/standalone/.next/static/chunks/{2dwchs_6y_o5f.js → 2-mxmazwsh-wz.js} +1 -1
- package/standalone/.next/static/chunks/2fzwgr2iq_783.css +1 -0
- package/standalone/.next/static/chunks/{278dxvyf095b_.js → 2jbygfc0lzu0t.js} +7 -7
- package/standalone/.next/static/chunks/2n7u72nxziv_5.js +7 -0
- package/standalone/.next/static/chunks/{1rivge68m21sm.js → 2rjf8o4g23no8.js} +10 -10
- package/standalone/.next/static/chunks/{42flok13o-l0b.js → 2x8qovg070057.js} +1 -1
- package/standalone/.next/static/chunks/{091l-ij_cv0b6.js → 3-u7pvogc5_bx.js} +12 -12
- package/standalone/.next/static/chunks/3-zh9b0tcttiw.js +33 -0
- package/standalone/.next/static/chunks/31wyih3wwkeid.js +1 -0
- package/standalone/.next/static/chunks/{1nqkxeuycfmrt.js → 36_1bjzx79v18.js} +5 -5
- package/standalone/.next/static/chunks/3ajj69p_sj615.js +1 -0
- package/standalone/.next/static/chunks/3jd8_7lna-j_x.js +40 -0
- package/standalone/.next/static/chunks/3jv2gnnn4vx-j.js +43 -0
- package/standalone/.next/static/chunks/3k0oakdayt9yt.js +40 -0
- package/standalone/.next/static/chunks/3pgngh8lg3be3.js +99 -0
- package/standalone/.next/static/chunks/{0w8rd_g6hnvmz.js → 4013cp3x6bvuw.js} +1 -1
- package/standalone/src/services/builds/build-freshness.test.ts +107 -0
- package/standalone/src/services/builds/build-freshness.ts +73 -0
- package/standalone/src/services/builds/builds.service.test.ts +167 -8
- package/standalone/src/services/builds/builds.service.ts +115 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1878s0b._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__18zrtty._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1_xz_m2._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1mx1hqe._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1sjjkyp._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1vk9266._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1yn6pds._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1zwpjfo._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03m5q8h._.js +0 -27
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__06bk7ik._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_09l5w5d._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0_726fj._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0a1zku5._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0pu14lm._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1eol9we._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1h3t5g1._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1kemhyd._.js +0 -39
- package/standalone/.next/server/chunks/ssr/_1kmkrz5._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1r9ohdr._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1yzb5-u._.js +0 -11
- package/standalone/.next/server/chunks/ssr/src_components_0wvh73y._.js +0 -11
- package/standalone/.next/server/chunks/ssr/src_components_github_167_ydi._.js +0 -35
- package/standalone/.next/static/chunks/00dx8gu-2oyqe.js +0 -45
- package/standalone/.next/static/chunks/0j5n6p9i-vyzo.js +0 -9
- package/standalone/.next/static/chunks/0weklluydd2mf.js +0 -23
- package/standalone/.next/static/chunks/1eehbcjby4go8.js +0 -95
- package/standalone/.next/static/chunks/23_75iur2dq8p.js +0 -1
- package/standalone/.next/static/chunks/2lgsgstcvc7uk.css +0 -1
- package/standalone/.next/static/chunks/32agjzrkphjrl.js +0 -9
- package/standalone/.next/static/chunks/399uxexoo8x7f.js +0 -33
- package/standalone/.next/static/chunks/39ecics7n8z5m.js +0 -1
- package/standalone/.next/static/chunks/3_kaby2qep1pd.js +0 -34
- package/standalone/.next/static/chunks/3q7vh58-5dkv2.js +0 -25
- package/standalone/.next/static/chunks/3xkoiasuwi3ms.js +0 -95
- package/standalone/.next/static/chunks/41s57pssydrel.js +0 -43
- /package/standalone/.next/static/{AxIbPSeZUHq852SCBMR8d → 8uBWJ8MOV-OEPe88M3PhU}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{AxIbPSeZUHq852SCBMR8d → 8uBWJ8MOV-OEPe88M3PhU}/_clientMiddlewareManifest.js +0 -0
- /package/standalone/.next/static/{AxIbPSeZUHq852SCBMR8d → 8uBWJ8MOV-OEPe88M3PhU}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59497,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}(...e),e)}var l=e.i(30030);function i(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}"u">typeof window&&window.document&&window.document.createElement;var o=globalThis?.document?r.useLayoutEffect:()=>{};r[" useEffectEvent ".trim().toString()],r[" useInsertionEffect ".trim().toString()];var s=r[" useInsertionEffect ".trim().toString()]||o;Symbol("RADIX:SYNC_STATE");var d=e.i(999682),c=e.i(635804),u=e.i(296626);e.i(174080);var f=Symbol.for("radix.slottable"),h=Symbol.for("react.lazy");function m(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var p=r[" use ".trim().toString()],x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{var l;let i,o=(l=`Primitive.${a}`,(i=r.forwardRef((e,t)=>{var a;let i,o,{children:s,...d}=e,c=null,u=!1,h=[];m(s)&&"function"==typeof p&&(s=p(s._payload)),r.Children.forEach(s,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===f){u=!0;let t="child"in e.props?e.props.child:e.props.children;m(t)&&"function"==typeof p&&(t=p(t._payload)),c=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),h.push(c?.props?.children)}else h.push(e)}),c?c=r.cloneElement(c,void 0,h):!u&&1===r.Children.count(s)&&r.isValidElement(s)&&(c=s);let x=c?(a=c,(o=(i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?a.ref:(o=(i=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,g=n(t,x);if(!c){if(s||0===s){let e,t;throw Error(u?(e=l,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=l,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return s}let y=function(e,t){let r={...t};for(let a in t){let n=e[a],l=t[a];/^on[A-Z]/.test(a)?n&&l?r[a]=(...e)=>{let t=l(...e);return n(...e),t}:n&&(r[a]=n):"style"===a?r[a]={...n,...l}:"className"===a&&(r[a]=[n,l].filter(Boolean).join(" "))}return{...e,...r}}(d,c.props??{});return c.type!==r.Fragment&&(y.ref=t?g:x),r.cloneElement(c,y)})).displayName=`${l}.Slot`,i),s=r.forwardRef((e,r)=>{let{asChild:n,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(n?o:a,{...l,ref:r})});return s.displayName=`Primitive.${a}`,{...e,[a]:s}},{}),g="Checkbox",[y,v]=(0,l.createContextScope)(g),[b,j]=y(g);function w(e){let{__scopeCheckbox:a,checked:n,children:l,defaultChecked:i,disabled:o,form:d,name:c,onCheckedChange:u,required:f,value:h="on",internal_do_not_use_render:m}=e,[p,x]=function({prop:e,defaultProp:t,onChange:a=()=>{},caller:n}){let[l,i,o]=function({defaultProp:e,onChange:t}){let[a,n]=r.useState(e),l=r.useRef(a),i=r.useRef(t);return s(()=>{i.current=t},[t]),r.useEffect(()=>{l.current!==a&&(i.current?.(a),l.current=a)},[a,l]),[a,n,i]}({defaultProp:t,onChange:a}),d=void 0!==e,c=d?e:l;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,n])}return[c,r.useCallback(t=>{if(d){let r="function"==typeof t?t(e):t;r!==e&&o.current?.(r)}else i(t)},[d,e,i,o])]}({prop:n,defaultProp:i??!1,onChange:u,caller:g}),[y,v]=r.useState(null),[j,w]=r.useState(null),D=r.useRef(!1),C=!y||!!d||!!y.closest("form"),k={checked:p,disabled:o,setChecked:x,control:y,setControl:v,name:c,form:d,value:h,hasConsumerStoppedPropagationRef:D,required:f,defaultChecked:!I(i)&&i,isFormControl:C,bubbleInput:j,setBubbleInput:w};return(0,t.jsx)(b,{scope:a,...k,children:"function"==typeof m?m(k):l})}var D="CheckboxTrigger",C=r.forwardRef(({__scopeCheckbox:e,onKeyDown:a,onClick:l,...o},s)=>{let{control:d,value:c,disabled:u,checked:f,required:h,setControl:m,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:y,bubbleInput:v}=j(D,e),b=n(s,m),w=r.useRef(f);return r.useEffect(()=>{let e=d?.form;if(e){let t=()=>p(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,p]),(0,t.jsx)(x.button,{type:"button",role:"checkbox","aria-checked":I(f)?"mixed":f,"aria-required":h,"data-state":A(f),"data-disabled":u?"":void 0,disabled:u,value:c,...o,ref:b,onKeyDown:i(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:i(l,e=>{p(e=>!!I(e)||!e),v&&y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})})});C.displayName=D;var k=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,name:n,checked:l,defaultChecked:i,required:o,disabled:s,value:d,onCheckedChange:c,form:u,...f}=e;return(0,t.jsx)(w,{__scopeCheckbox:a,checked:l,defaultChecked:i,disabled:s,required:o,onCheckedChange:c,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{...f,ref:r,__scopeCheckbox:a}),e&&(0,t.jsx)(E,{__scopeCheckbox:a})]})})});k.displayName=g;var T="CheckboxIndicator",N=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,forceMount:n,...l}=e,i=j(T,a);return(0,t.jsx)(u.Presence,{present:n||I(i.checked)||!0===i.checked,children:(0,t.jsx)(x.span,{"data-state":A(i.checked),"data-disabled":i.disabled?"":void 0,...l,ref:r,style:{pointerEvents:"none",...e.style}})})});N.displayName=T;var S="CheckboxBubbleInput",E=r.forwardRef(({__scopeCheckbox:e,...a},l)=>{let{control:i,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:u,required:f,disabled:h,name:m,value:p,form:g,bubbleInput:y,setBubbleInput:v}=j(S,e),b=n(l,v),w=(0,d.usePrevious)(s),D=(0,c.useSize)(i);r.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!o.current;if(w!==s&&e){let r=new Event("click",{bubbles:t});y.indeterminate=I(s),e.call(y,!I(s)&&s),y.dispatchEvent(r)}},[y,w,s,o]);let C=r.useRef(!I(s)&&s);return(0,t.jsx)(x.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??C.current,required:f,disabled:h,name:m,value:p,form:g,...a,tabIndex:-1,ref:b,style:{...a.style,...D,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function I(e){return"indeterminate"===e}function A(e){return I(e)?"indeterminate":e?"checked":"unchecked"}E.displayName=S,e.s(["Checkbox",0,k,"CheckboxIndicator",0,N,"Indicator",0,N,"Root",0,k,"createCheckboxScope",0,v,"unstable_BubbleInput",0,E,"unstable_CheckboxBubbleInput",0,E,"unstable_CheckboxProvider",0,w,"unstable_CheckboxTrigger",0,C,"unstable_Provider",0,w,"unstable_Trigger",0,C],388474);var $=e.i(388474),$=$,R=e.i(975157),P=e.i(593698);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)($.Root,{"data-slot":"checkbox",className:(0,R.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)($.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(P.CheckIcon,{})})})}],59497)},573474,e=>{"use strict";let t=(0,e.i(456420).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],573474)},340953,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return r.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=n(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}var i=e.i(326999);"u">typeof window&&window.document&&window.document.createElement;var o="AlertDialog",[s,d]=(0,a.createContextScope)(o,[i.createDialogScope]),c=(0,i.createDialogScope)(),u=e=>{let{__scopeAlertDialog:r,...a}=e,n=c(r);return(0,t.jsx)(i.Root,{...n,...a,modal:!0})};u.displayName=o;var f=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Trigger,{...l,...n,ref:r})});f.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:r,...a}=e,n=c(r);return(0,t.jsx)(i.Portal,{...n,...a})};h.displayName="AlertDialogPortal";var m=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Overlay,{...l,...n,ref:r})});m.displayName="AlertDialogOverlay";var p="AlertDialogContent",[x,g]=s(p),y=r.forwardRef((e,a)=>{let{__scopeAlertDialog:n,children:o,...s}=e,d=c(n),u=l(a,r.useRef(null)),f=r.useRef(null);return(0,t.jsx)(x,{scope:n,cancelRef:f,children:(0,t.jsx)(i.Content,{role:"alertdialog",...d,...s,ref:u,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}(s.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})});y.displayName=p;var v=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Title,{...l,...n,ref:r})});v.displayName="AlertDialogTitle";var b=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Description,{...l,...n,ref:r})});b.displayName="AlertDialogDescription";var j=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Close,{...l,...n,ref:r})});j.displayName="AlertDialogAction";var w="AlertDialogCancel",D=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,{cancelRef:o}=g(w,a),s=c(a),d=l(r,o);return(0,t.jsx)(i.Close,{...s,...n,ref:d})});D.displayName=w,e.s(["Action",0,j,"AlertDialog",0,u,"AlertDialogAction",0,j,"AlertDialogCancel",0,D,"AlertDialogContent",0,y,"AlertDialogDescription",0,b,"AlertDialogOverlay",0,m,"AlertDialogPortal",0,h,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,f,"Cancel",0,D,"Content",0,y,"Description",0,b,"Overlay",0,m,"Portal",0,h,"Root",0,u,"Title",0,v,"Trigger",0,f,"createAlertDialogScope",0,d],691162);var C=e.i(691162),C=C,k=e.i(975157),T=e.i(519455);function N({...e}){return(0,t.jsx)(C.Root,{"data-slot":"alert-dialog",...e})}function S({...e}){return(0,t.jsx)(C.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function E({...e}){return(0,t.jsx)(C.Portal,{"data-slot":"alert-dialog-portal",...e})}function I({className:e,...r}){return(0,t.jsx)(C.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,k.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}function A({className:e,size:r="default",...a}){return(0,t.jsxs)(E,{children:[(0,t.jsx)(I,{}),(0,t.jsx)(C.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,k.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})]})}function $({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,k.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function R({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,k.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function P({className:e,...r}){return(0,t.jsx)(C.Title,{"data-slot":"alert-dialog-title",className:(0,k.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function B({className:e,...r}){return(0,t.jsx)(C.Description,{"data-slot":"alert-dialog-description",className:(0,k.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function M({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(T.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(C.Action,{"data-slot":"alert-dialog-action",className:(0,k.cn)(e),...n})})}function z({className:e,variant:r="outline",size:a="default",...n}){return(0,t.jsx)(T.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(C.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,k.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:a,onConfirm:n,onOpenChange:l,open:i,title:o,trigger:s}){return(0,t.jsxs)(N,{onOpenChange:l,open:i,children:[s&&(0,t.jsx)(S,{asChild:!0,children:s}),(0,t.jsxs)(A,{children:[(0,t.jsxs)($,{children:[(0,t.jsx)(P,{children:o}),(0,t.jsx)(B,{children:a})]}),(0,t.jsxs)(R,{children:[(0,t.jsx)(z,{children:r}),(0,t.jsx)(M,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},955862,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);var a=e.i(689664),n=e.i(648119),l=e.i(741120),i=e.i(573474),o=e.i(861745),s=e.i(948148),d=e.i(271645),c=e.i(778434),u=e.i(340953),f=e.i(929592),h=e.i(487486),m=e.i(519455),p=e.i(515288),x=e.i(59497),g=e.i(755146),y=e.i(82612),v=e.i(987968),b=e.i(784774),j=e.i(520133),w=e.i(462777),D=e.i(637611);let C=`
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59497,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}(...e),e)}var l=e.i(30030);function i(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}"u">typeof window&&window.document&&window.document.createElement;var o=globalThis?.document?r.useLayoutEffect:()=>{};r[" useEffectEvent ".trim().toString()],r[" useInsertionEffect ".trim().toString()];var s=r[" useInsertionEffect ".trim().toString()]||o;Symbol("RADIX:SYNC_STATE");var d=e.i(999682),c=e.i(635804),u=e.i(296626);e.i(174080);var f=Symbol.for("radix.slottable"),h=Symbol.for("react.lazy");function m(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var p=r[" use ".trim().toString()],x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{var l;let i,o=(l=`Primitive.${a}`,(i=r.forwardRef((e,t)=>{var a;let i,o,{children:s,...d}=e,c=null,u=!1,h=[];m(s)&&"function"==typeof p&&(s=p(s._payload)),r.Children.forEach(s,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===f){u=!0;let t="child"in e.props?e.props.child:e.props.children;m(t)&&"function"==typeof p&&(t=p(t._payload)),c=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),h.push(c?.props?.children)}else h.push(e)}),c?c=r.cloneElement(c,void 0,h):!u&&1===r.Children.count(s)&&r.isValidElement(s)&&(c=s);let x=c?(a=c,(o=(i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?a.ref:(o=(i=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,g=n(t,x);if(!c){if(s||0===s){let e,t;throw Error(u?(e=l,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=l,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return s}let y=function(e,t){let r={...t};for(let a in t){let n=e[a],l=t[a];/^on[A-Z]/.test(a)?n&&l?r[a]=(...e)=>{let t=l(...e);return n(...e),t}:n&&(r[a]=n):"style"===a?r[a]={...n,...l}:"className"===a&&(r[a]=[n,l].filter(Boolean).join(" "))}return{...e,...r}}(d,c.props??{});return c.type!==r.Fragment&&(y.ref=t?g:x),r.cloneElement(c,y)})).displayName=`${l}.Slot`,i),s=r.forwardRef((e,r)=>{let{asChild:n,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(n?o:a,{...l,ref:r})});return s.displayName=`Primitive.${a}`,{...e,[a]:s}},{}),g="Checkbox",[y,b]=(0,l.createContextScope)(g),[v,j]=y(g);function w(e){let{__scopeCheckbox:a,checked:n,children:l,defaultChecked:i,disabled:o,form:d,name:c,onCheckedChange:u,required:f,value:h="on",internal_do_not_use_render:m}=e,[p,x]=function({prop:e,defaultProp:t,onChange:a=()=>{},caller:n}){let[l,i,o]=function({defaultProp:e,onChange:t}){let[a,n]=r.useState(e),l=r.useRef(a),i=r.useRef(t);return s(()=>{i.current=t},[t]),r.useEffect(()=>{l.current!==a&&(i.current?.(a),l.current=a)},[a,l]),[a,n,i]}({defaultProp:t,onChange:a}),d=void 0!==e,c=d?e:l;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,n])}return[c,r.useCallback(t=>{if(d){let r="function"==typeof t?t(e):t;r!==e&&o.current?.(r)}else i(t)},[d,e,i,o])]}({prop:n,defaultProp:i??!1,onChange:u,caller:g}),[y,b]=r.useState(null),[j,w]=r.useState(null),D=r.useRef(!1),C=!y||!!d||!!y.closest("form"),k={checked:p,disabled:o,setChecked:x,control:y,setControl:b,name:c,form:d,value:h,hasConsumerStoppedPropagationRef:D,required:f,defaultChecked:!I(i)&&i,isFormControl:C,bubbleInput:j,setBubbleInput:w};return(0,t.jsx)(v,{scope:a,...k,children:"function"==typeof m?m(k):l})}var D="CheckboxTrigger",C=r.forwardRef(({__scopeCheckbox:e,onKeyDown:a,onClick:l,...o},s)=>{let{control:d,value:c,disabled:u,checked:f,required:h,setControl:m,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:y,bubbleInput:b}=j(D,e),v=n(s,m),w=r.useRef(f);return r.useEffect(()=>{let e=d?.form;if(e){let t=()=>p(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,p]),(0,t.jsx)(x.button,{type:"button",role:"checkbox","aria-checked":I(f)?"mixed":f,"aria-required":h,"data-state":A(f),"data-disabled":u?"":void 0,disabled:u,value:c,...o,ref:v,onKeyDown:i(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:i(l,e=>{p(e=>!!I(e)||!e),b&&y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})})});C.displayName=D;var k=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,name:n,checked:l,defaultChecked:i,required:o,disabled:s,value:d,onCheckedChange:c,form:u,...f}=e;return(0,t.jsx)(w,{__scopeCheckbox:a,checked:l,defaultChecked:i,disabled:s,required:o,onCheckedChange:c,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{...f,ref:r,__scopeCheckbox:a}),e&&(0,t.jsx)(E,{__scopeCheckbox:a})]})})});k.displayName=g;var T="CheckboxIndicator",N=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,forceMount:n,...l}=e,i=j(T,a);return(0,t.jsx)(u.Presence,{present:n||I(i.checked)||!0===i.checked,children:(0,t.jsx)(x.span,{"data-state":A(i.checked),"data-disabled":i.disabled?"":void 0,...l,ref:r,style:{pointerEvents:"none",...e.style}})})});N.displayName=T;var S="CheckboxBubbleInput",E=r.forwardRef(({__scopeCheckbox:e,...a},l)=>{let{control:i,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:u,required:f,disabled:h,name:m,value:p,form:g,bubbleInput:y,setBubbleInput:b}=j(S,e),v=n(l,b),w=(0,d.usePrevious)(s),D=(0,c.useSize)(i);r.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!o.current;if(w!==s&&e){let r=new Event("click",{bubbles:t});y.indeterminate=I(s),e.call(y,!I(s)&&s),y.dispatchEvent(r)}},[y,w,s,o]);let C=r.useRef(!I(s)&&s);return(0,t.jsx)(x.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??C.current,required:f,disabled:h,name:m,value:p,form:g,...a,tabIndex:-1,ref:v,style:{...a.style,...D,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function I(e){return"indeterminate"===e}function A(e){return I(e)?"indeterminate":e?"checked":"unchecked"}E.displayName=S,e.s(["Checkbox",0,k,"CheckboxIndicator",0,N,"Indicator",0,N,"Root",0,k,"createCheckboxScope",0,b,"unstable_BubbleInput",0,E,"unstable_CheckboxBubbleInput",0,E,"unstable_CheckboxProvider",0,w,"unstable_CheckboxTrigger",0,C,"unstable_Provider",0,w,"unstable_Trigger",0,C],388474);var R=e.i(388474),R=R,$=e.i(975157),M=e.i(593698);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)(R.Root,{"data-slot":"checkbox",className:(0,$.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(R.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(M.CheckIcon,{})})})}],59497)},573474,e=>{"use strict";let t=(0,e.i(456420).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],573474)},340953,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return r.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=n(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}var i=e.i(326999);"u">typeof window&&window.document&&window.document.createElement;var o="AlertDialog",[s,d]=(0,a.createContextScope)(o,[i.createDialogScope]),c=(0,i.createDialogScope)(),u=e=>{let{__scopeAlertDialog:r,...a}=e,n=c(r);return(0,t.jsx)(i.Root,{...n,...a,modal:!0})};u.displayName=o;var f=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Trigger,{...l,...n,ref:r})});f.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:r,...a}=e,n=c(r);return(0,t.jsx)(i.Portal,{...n,...a})};h.displayName="AlertDialogPortal";var m=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Overlay,{...l,...n,ref:r})});m.displayName="AlertDialogOverlay";var p="AlertDialogContent",[x,g]=s(p),y=r.forwardRef((e,a)=>{let{__scopeAlertDialog:n,children:o,...s}=e,d=c(n),u=l(a,r.useRef(null)),f=r.useRef(null);return(0,t.jsx)(x,{scope:n,cancelRef:f,children:(0,t.jsx)(i.Content,{role:"alertdialog",...d,...s,ref:u,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}(s.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})});y.displayName=p;var b=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Title,{...l,...n,ref:r})});b.displayName="AlertDialogTitle";var v=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Description,{...l,...n,ref:r})});v.displayName="AlertDialogDescription";var j=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=c(a);return(0,t.jsx)(i.Close,{...l,...n,ref:r})});j.displayName="AlertDialogAction";var w="AlertDialogCancel",D=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,{cancelRef:o}=g(w,a),s=c(a),d=l(r,o);return(0,t.jsx)(i.Close,{...s,...n,ref:d})});D.displayName=w,e.s(["Action",0,j,"AlertDialog",0,u,"AlertDialogAction",0,j,"AlertDialogCancel",0,D,"AlertDialogContent",0,y,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,m,"AlertDialogPortal",0,h,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,f,"Cancel",0,D,"Content",0,y,"Description",0,v,"Overlay",0,m,"Portal",0,h,"Root",0,u,"Title",0,b,"Trigger",0,f,"createAlertDialogScope",0,d],691162);var C=e.i(691162),C=C,k=e.i(975157),T=e.i(519455);function N({...e}){return(0,t.jsx)(C.Root,{"data-slot":"alert-dialog",...e})}function S({...e}){return(0,t.jsx)(C.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function E({...e}){return(0,t.jsx)(C.Portal,{"data-slot":"alert-dialog-portal",...e})}function I({className:e,...r}){return(0,t.jsx)(C.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,k.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}function A({className:e,size:r="default",...a}){return(0,t.jsxs)(E,{children:[(0,t.jsx)(I,{}),(0,t.jsx)(C.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,k.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})]})}function R({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,k.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function $({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,k.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function M({className:e,...r}){return(0,t.jsx)(C.Title,{"data-slot":"alert-dialog-title",className:(0,k.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function B({className:e,...r}){return(0,t.jsx)(C.Description,{"data-slot":"alert-dialog-description",className:(0,k.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function P({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(T.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(C.Action,{"data-slot":"alert-dialog-action",className:(0,k.cn)(e),...n})})}function H({className:e,variant:r="outline",size:a="default",...n}){return(0,t.jsx)(T.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(C.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,k.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:a,onConfirm:n,onOpenChange:l,open:i,title:o,trigger:s}){return(0,t.jsxs)(N,{onOpenChange:l,open:i,children:[s&&(0,t.jsx)(S,{asChild:!0,children:s}),(0,t.jsxs)(A,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(M,{children:o}),(0,t.jsx)(B,{children:a})]}),(0,t.jsxs)($,{children:[(0,t.jsx)(H,{children:r}),(0,t.jsx)(P,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},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"])},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)},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,containerClassName:a,...n}){return(0,t.jsx)("div",{className:(0,r.cn)("w-full overflow-x-auto",a),children:(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...n})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{className:(0,r.cn)("divide-y",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{className:(0,r.cn)("whitespace-nowrap px-3 py-3 align-middle",e),...a})},"TableFooter",0,function({className:e,...a}){return(0,t.jsx)("tfoot",{className:(0,r.cn)("border-t bg-muted/50 font-medium",e),...a})},"TableHead",0,function({className:e,...a}){return(0,t.jsx)("th",{className:(0,r.cn)("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium text-muted-foreground",e),...a})},"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{className:(0,r.cn)("border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{className:(0,r.cn)("transition-colors hover:bg-muted/40",e),...a})}])},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])},560972,e=>{"use strict";let t=(0,e.i(456420).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["default",0,t])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},955862,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);var a=e.i(689664),n=e.i(648119),l=e.i(741120),i=e.i(573474),o=e.i(861745),s=e.i(948148),d=e.i(271645),c=e.i(778434),u=e.i(340953),f=e.i(929592),h=e.i(487486),m=e.i(519455),p=e.i(515288),x=e.i(59497),g=e.i(755146),y=e.i(82612),b=e.i(987968),v=e.i(784774),j=e.i(520133),w=e.i(462777),D=e.i(637611);let C=`
|
|
2
2
|
id status createdAt deadlineAt finishedAt
|
|
3
3
|
progress {
|
|
4
4
|
eligibleCount finishedCount successfulCount
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
id name status workspacePath worktreeId worktreePath sizeBytes operation error
|
|
9
9
|
agent { ${c.AGENT_FIELDS} }
|
|
10
10
|
}
|
|
11
|
-
`;function k({collection:e}){let r=(0,s.useTranslations)("buildData"),a=e.progress.agents.filter(e=>"SUCCEEDED"!==e.status||e.warnings.length>0);return"COMPLETED"===e.status&&0===a.length?null:(0,t.jsx)(f.Alert,{children:(0,t.jsxs)(f.AlertDescription,{className:"space-y-1",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 font-medium",children:["COLLECTING"===e.status&&(0,t.jsx)(
|
|
11
|
+
`;function k({collection:e}){let r=(0,s.useTranslations)("buildData"),a=e.progress.agents.filter(e=>"SUCCEEDED"!==e.status||e.warnings.length>0);return"COMPLETED"===e.status&&0===a.length?null:(0,t.jsx)(f.Alert,{children:(0,t.jsxs)(f.AlertDescription,{className:"space-y-1",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 font-medium",children:["COLLECTING"===e.status&&(0,t.jsx)(b.Spinner,{}),r("progress",{complete:e.progress.finishedCount,total:e.progress.eligibleCount})]}),a.map(e=>(0,t.jsxs)("p",{children:[e.agent.name,": ",r(`agentStatus.${e.status}`),e.error?` — ${e.error}`:"",e.warnings.length?` — ${e.warnings.join("; ")}`:""]},e.agent.id))]})})}e.s(["BuildDataPage",0,function(){let e=(0,s.useTranslations)("buildData"),c=(0,s.useTranslations)("common"),T=(0,o.useLocale)(),[N,S]=(0,d.useState)(w.createClientId),[E,I]=(0,d.useState)(null),[A,R]=(0,d.useState)(!0),[$,M]=(0,d.useState)(null),[B,P]=(0,d.useState)(new Set),[H,z]=(0,d.useState)(null),_=(0,d.useRef)(null),[L,O]=(0,d.useState)(!1),[q,F]=(0,d.useState)([]),[V,G]=(0,d.useState)(null),[K,W]=(0,d.useState)(!0),[U,Y]=(0,d.useState)(0),[J,X]=(0,d.useState)(null),Z=(0,d.useCallback)(e=>{I(e),R(!1),M(null)},[]);(0,d.useEffect)(()=>{let e=!1,t=(0,D.controlPlaneSubscriptions)().subscribe({query:`subscription DerivedDataCollectionChanged($id: ID!) {
|
|
12
12
|
derivedDataCollectionChanged(id: $id) { ${C} }
|
|
13
13
|
}`,variables:{id:N}},{next:e=>{e.data?.derivedDataCollectionChanged&&Z(e.data.derivedDataCollectionChanged)},error:()=>void 0,complete:()=>void 0}),r=async()=>{try{let t=await (0,D.controlPlaneRequest)(`query DerivedDataCollection($id: ID!) {
|
|
14
14
|
derivedDataCollection(id: $id) { ${C} }
|
|
15
15
|
}`,{id:N});!e&&t.derivedDataCollection&&Z(t.derivedDataCollection)}catch{}};(0,D.controlPlaneRequest)(`mutation RefreshDerivedData($requestId: ID!) {
|
|
16
16
|
refreshDerivedData(requestId: $requestId) { ${C} }
|
|
17
|
-
}`,{requestId:N}).then(t=>!e&&Z(t.refreshDerivedData)).catch(t=>{e||(
|
|
17
|
+
}`,{requestId:N}).then(t=>!e&&Z(t.refreshDerivedData)).catch(t=>{e||(M(t instanceof Error?t.message:String(t)),R(!1))}),r();let a=window.setInterval(()=>void r(),2e3);return()=>{e=!0,t(),window.clearInterval(a)}},[Z,N]);let Q=(0,d.useCallback)(async e=>{W(!0);try{let t=await (0,D.controlPlaneRequest)(`query DerivedDataDeletionHistory($after: ID) {
|
|
18
18
|
derivedDataDeletionHistory(first: 100, after: $after) {
|
|
19
19
|
items { id agentId agentName folderName worktreeId worktreePath source deletedAt }
|
|
20
20
|
nextCursor
|
|
21
21
|
}
|
|
22
|
-
}`,{after:e??null});F(r=>e?[...r,...t.derivedDataDeletionHistory.items]:t.derivedDataDeletionHistory.items),G(t.derivedDataDeletionHistory.nextCursor)}catch(e){
|
|
22
|
+
}`,{after:e??null});F(r=>e?[...r,...t.derivedDataDeletionHistory.items]:t.derivedDataDeletionHistory.items),G(t.derivedDataDeletionHistory.nextCursor)}catch(e){M(e instanceof Error?e.message:String(e))}finally{W(!1)}},[]);(0,d.useEffect)(()=>()=>{_.current&&window.clearTimeout(_.current)},[]),(0,d.useEffect)(()=>{let e=window.setTimeout(()=>void Q(),0);return()=>window.clearTimeout(e)},[U,Q]),(0,d.useEffect)(()=>{let e=()=>X(Date.now()),t=window.setTimeout(e,0),r=window.setInterval(e,3e4);return()=>{window.clearTimeout(t),window.clearInterval(r)}},[]);let ee=E?.entries??[],et=ee.some(e=>"IDLE"!==e.operation),er=ee.filter(e=>B.has(e.id)),ea=ee.length>0&&er.length===ee.length,en=er.length>0&&!ea,el=async(e,t)=>{if(E){O(!0),M(null);try{let r=await (0,D.controlPlaneRequest)(`mutation BuildDataOperation($collectionId: ID!, $entryIds: [ID!]!, $requestId: ID!) {
|
|
23
23
|
${e}(collectionId: $collectionId, entryIds: $entryIds, requestId: $requestId) {
|
|
24
24
|
${C}
|
|
25
25
|
}
|
|
26
|
-
}`,{collectionId:E.id,entryIds:t,requestId:(0,w.createClientId)()});Z(r[e]),"deleteDerivedDataEntries"===e&&(
|
|
26
|
+
}`,{collectionId:E.id,entryIds:t,requestId:(0,w.createClientId)()});Z(r[e]),"deleteDerivedDataEntries"===e&&(P(new Set),z(null))}catch(e){M(e instanceof Error?e.message:String(e))}finally{O(!1)}}},ei=(0,d.useMemo)(()=>ee.length,[ee.length]);(0,d.useEffect)(()=>{let e=window.setTimeout(()=>{et||A||Y(e=>e+1)},0);return()=>window.clearTimeout(e)},[et,A,ei]);let eo=(e,t)=>{if(H!==e){z(e),_.current&&window.clearTimeout(_.current),_.current=window.setTimeout(()=>z(null),5e3);return}_.current&&(window.clearTimeout(_.current),_.current=null),z(null),el("deleteDerivedDataEntries",t)},es=(0,d.useMemo)(()=>{let e=new Map,t=new Intl.DateTimeFormat(T,{dateStyle:"full"});for(let r of q){let a=new Date(r.deletedAt),n=`${a.getFullYear()}-${a.getMonth()}-${a.getDate()}`,l=e.get(n)??{label:t.format(a),items:[]};l.items.push(r),e.set(n,l)}return[...e.values()]},[q,T]),ed=`bulk:${er.map(e=>e.id).sort().join(":")}`,ec=H===ed;return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(m.Button,{disabled:!ee.length||A||et||L,onClick:()=>void el("calculateDerivedDataSizes",ee.map(e=>e.id)),variant:"outline",children:[(0,t.jsx)(r,{})," ",e("calculateSizes")]}),(0,t.jsxs)(m.Button,{disabled:A||et,onClick:()=>{R(!0),M(null),P(new Set),z(null),S((0,w.createClientId)())},variant:"outline",children:[(0,t.jsx)(l.RefreshCw,{className:A?"animate-spin":void 0}),e("refresh")]})]})]}),$&&(0,t.jsx)(f.Alert,{variant:"destructive",children:(0,t.jsx)(f.AlertDescription,{children:$})}),E&&(0,t.jsx)(k,{collection:E}),A&&!E?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(b.Spinner,{})," ",e("loading")]}):0===ee.length?(0,t.jsx)(y.Empty,{children:(0,t.jsxs)(y.EmptyHeader,{children:[(0,t.jsx)(y.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(y.EmptyDescription,{children:e("emptyDescription")})]})}):(0,t.jsxs)(p.Card,{className:"gap-0 py-0",children:[er.length>0&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b p-3",children:[(0,t.jsx)("p",{className:"text-sm",children:e("selected",{count:er.length})}),(0,t.jsxs)(m.Button,{className:"w-40",disabled:et||L,onClick:()=>eo(ed,er.map(e=>e.id)),size:"sm",variant:ec?"destructive":"outline",children:[ec?(0,t.jsx)(a.Check,{}):(0,t.jsx)(i.Trash2,{}),ec?e("confirmDelete"):e("deleteSelected")]})]}),(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableHead,{className:"w-12",children:(0,t.jsx)(x.Checkbox,{"aria-label":e("selectAll"),checked:!!ea||!!en&&"indeterminate",onCheckedChange:e=>{z(null),P(!0===e?new Set(ee.map(e=>e.id)):new Set)}})}),(0,t.jsx)(v.TableHead,{children:e("folder")}),(0,t.jsx)(v.TableHead,{children:e("worktree")}),(0,t.jsx)(v.TableHead,{children:e("size")}),(0,t.jsx)(v.TableHead,{children:e("agent")}),(0,t.jsx)(v.TableHead,{className:"w-12 text-right",children:(0,t.jsx)("span",{className:"sr-only",children:e("actions")})})]})}),(0,t.jsx)(v.TableBody,{children:ee.map(r=>{var l;let o,s;return(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(x.Checkbox,{"aria-label":e("selectEntry",{name:r.name}),checked:B.has(r.id),onCheckedChange:e=>{z(null),P(t=>{let a=new Set(t);return!0===e?a.add(r.id):a.delete(r.id),a})}})}),(0,t.jsxs)(v.TableCell,{children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"break-all font-mono text-xs",children:r.name}),"READY"!==r.status&&(0,t.jsx)(h.Badge,{variant:"secondary",children:e(`status.${r.status}`)}),"IDLE"!==r.operation&&(0,t.jsx)(b.Spinner,{})]}),r.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:r.error})]}),(0,t.jsx)(v.TableCell,{className:"font-mono text-xs",children:r.worktreeId&&r.worktreePath?(0,t.jsx)(j.Link,{className:"underline-offset-4 hover:underline",href:`/worktrees/${r.worktreeId}`,children:r.worktreePath}):"—"}),(0,t.jsx)(v.TableCell,{className:"tabular-nums",children:null===r.sizeBytes?"—":(l=r.sizeBytes,s=Math.min(Math.floor(Math.log(Math.max(l,1))/Math.log(1024)),(o=["B","KiB","MiB","GiB","TiB"]).length-1),`${new Intl.NumberFormat(T,{maximumFractionDigits:1}).format(l/1024**s)} ${o[s]}`)}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(j.Link,{className:"underline-offset-4 hover:underline",href:`/agents/${r.agent.id}`,children:r.agent.name})}),(0,t.jsx)(v.TableCell,{className:"w-12 text-right",children:(0,t.jsxs)(g.DropdownMenu,{onOpenChange:e=>{e||H!==`row:${r.id}`||(_.current&&(window.clearTimeout(_.current),_.current=null),z(null))},children:[(0,t.jsx)(g.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(m.Button,{"aria-label":e("entryActions",{name:r.name}),className:"ml-auto",disabled:et||L,size:"icon-sm",variant:"ghost",children:(0,t.jsx)(n.MoreHorizontal,{})})}),(0,t.jsx)(g.DropdownMenuContent,{align:"end",className:"w-40",children:(0,t.jsxs)(g.DropdownMenuItem,{onSelect:e=>{H!==`row:${r.id}`&&e.preventDefault(),eo(`row:${r.id}`,[r.id])},variant:H===`row:${r.id}`?"destructive":"default",children:[H===`row:${r.id}`?(0,t.jsx)(a.Check,{}):(0,t.jsx)(i.Trash2,{}),H===`row:${r.id}`?e("confirmDelete"):e("delete")]})})]})})]},r.id)})})]})]}),(0,t.jsxs)(p.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(p.CardHeader,{className:"border-b py-4",children:[(0,t.jsx)(p.CardTitle,{children:e("history")}),(0,t.jsx)(p.CardDescription,{children:e("historyDescription")}),q.length>0&&(0,t.jsx)(p.CardAction,{children:(0,t.jsx)(u.ConfirmationDialog,{actionLabel:e("clearHistory"),cancelLabel:c("cancel"),description:e("clearHistoryDescription"),onConfirm:async()=>{await (0,D.controlPlaneRequest)("mutation { clearDerivedDataDeletionHistory }"),Y(e=>e+1)},title:e("clearHistoryTitle"),trigger:(0,t.jsxs)(m.Button,{size:"sm",variant:"outline",children:[(0,t.jsx)(i.Trash2,{})," ",e("clearHistory")]})})})]}),K&&0===q.length?(0,t.jsxs)("p",{className:"flex items-center gap-2 p-6 text-sm text-muted-foreground",children:[(0,t.jsx)(b.Spinner,{})," ",e("loadingHistory")]}):0===q.length?(0,t.jsx)(y.Empty,{className:"py-8",children:(0,t.jsx)(y.EmptyHeader,{children:(0,t.jsx)(y.EmptyDescription,{children:e("noHistory")})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableHead,{children:e("folder")}),(0,t.jsx)(v.TableHead,{children:e("worktree")}),(0,t.jsx)(v.TableHead,{children:e("agent")}),(0,t.jsx)(v.TableHead,{children:e("deleted")}),(0,t.jsx)(v.TableHead,{children:e("sourceLabel")})]})}),(0,t.jsx)(v.TableBody,{children:es.map(r=>(0,t.jsxs)(d.Fragment,{children:[(0,t.jsx)(v.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(v.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:5,children:r.label})}),r.items.map(r=>(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableCell,{className:"font-mono text-xs",children:r.folderName}),(0,t.jsx)(v.TableCell,{className:"font-mono text-xs",children:r.worktreePath??"—"}),(0,t.jsx)(v.TableCell,{children:r.agentName}),(0,t.jsx)(v.TableCell,{title:new Date(r.deletedAt).toLocaleString(T),children:function(e,t,r){let a=Math.round((Date.parse(e)-r)/1e3),n=new Intl.RelativeTimeFormat(t,{numeric:"auto"});for(let[e,t]of[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]])if(Math.abs(a)>=t)return n.format(Math.round(a/t),e);return n.format(a,"second")}(r.deletedAt,T,J??Date.parse(r.deletedAt))}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)(h.Badge,{variant:"secondary",children:e(`source.${r.source}`)})})]},r.id))]},r.label))})]}),V&&(0,t.jsx)("div",{className:"border-t p-3 text-center",children:(0,t.jsxs)(m.Button,{disabled:K,onClick:()=>void Q(V),variant:"outline",children:[K&&(0,t.jsx)(b.Spinner,{})," ",e("loadMore")]})})]})]})]})}],955862)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,337822,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)}}function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}(...e),e)}"u">typeof window&&window.document&&window.document.createElement;var l=e.i(30030),i=e.i(726330),s=e.i(303536),u=e.i(765491),c=e.i(610772),d=e.i(853660),p=e.i(774606),f=e.i(296626);function m(e){let t=r.forwardRef((t,n)=>{var a;let l,i,{children:s,...u}=t,c=null,d=!1,p=[];b(s)&&"function"==typeof w&&(s=w(s._payload)),r.Children.forEach(s,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===v){d=!0;let t="child"in e.props?e.props.child:e.props.children;b(t)&&"function"==typeof w&&(t=w(t._payload)),c=g(e,t),p.push(c?.props?.children)}else p.push(e)}),c?c=r.cloneElement(c,void 0,p):!d&&1===r.Children.count(s)&&r.isValidElement(s)&&(c=s);let f=c?(a=c,(i=(l=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?a.ref:(i=(l=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,m=o(n,f);if(!c){if(s||0===s)throw Error(d?y(e):x(e));return s}let h=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(u,c.props??{});return c.type!==r.Fragment&&(h.ref=n?m:f),r.cloneElement(c,h)});return t.displayName=`${e}.Slot`,t}e.i(174080);var v=Symbol.for("radix.slottable"),g=(e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null},h=Symbol.for("react.lazy");function b(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var x=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,y=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,w=r[" use ".trim().toString()],E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let a=m(`Primitive.${n}`),o=r.forwardRef((e,r)=>{let{asChild:o,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?a:n,{...l,ref:r})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{}),C=globalThis?.document?r.useLayoutEffect:()=>{};r[" useEffectEvent ".trim().toString()],r[" useInsertionEffect ".trim().toString()];var j=r[" useInsertionEffect ".trim().toString()]||C;Symbol("RADIX:SYNC_STATE");var k=e.i(186312),S=e.i(985369),R="Popover",[I,P]=(0,l.createContextScope)(R,[d.createPopperScope]),A=(0,d.createPopperScope)(),[N,z]=I(R),O=e=>{let{__scopePopover:n,children:a,open:o,defaultOpen:l,onOpenChange:i,modal:s=!1}=e,u=A(n),p=r.useRef(null),[f,m]=r.useState(!1),[v,g]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){let[o,l,i]=function({defaultProp:e,onChange:t}){let[n,a]=r.useState(e),o=r.useRef(n),l=r.useRef(t);return j(()=>{l.current=t},[t]),r.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,a,l]}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:o;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,a])}return[u,r.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&i.current?.(r)}else l(t)},[s,e,l,i])]}({prop:o,defaultProp:l??!1,onChange:i,caller:R});return(0,t.jsx)(d.Root,{...u,children:(0,t.jsx)(N,{scope:n,contentId:(0,c.useId)(),triggerRef:p,open:v,onOpenChange:g,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>m(!0),[]),onCustomAnchorRemove:r.useCallback(()=>m(!1),[]),modal:s,children:a})})};O.displayName=R;var D="PopoverAnchor",_=r.forwardRef((e,n)=>{let{__scopePopover:a,...o}=e,l=z(D,a),i=A(a),{onCustomAnchorAdd:s,onCustomAnchorRemove:u}=l;return r.useEffect(()=>(s(),()=>u()),[s,u]),(0,t.jsx)(d.Anchor,{...i,...o,ref:n})});_.displayName=D;var $="PopoverTrigger",F=r.forwardRef((e,r)=>{let{__scopePopover:a,...l}=e,i=z($,a),s=A(a),u=o(r,i.triggerRef),c=(0,t.jsx)(E.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Y(i.open),...l,ref:u,onClick:n(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,t.jsx)(d.Anchor,{asChild:!0,...s,children:c})});F.displayName=$;var M="PopoverPortal",[V,T]=I(M,{forceMount:void 0}),L=e=>{let{__scopePopover:r,forceMount:n,children:a,container:o}=e,l=z(M,r);return(0,t.jsx)(V,{scope:r,forceMount:n,children:(0,t.jsx)(f.Presence,{present:n||l.open,children:(0,t.jsx)(p.Portal,{asChild:!0,container:o,children:a})})})};L.displayName=M;var W="PopoverContent",B=r.forwardRef((e,r)=>{let n=T(W,e.__scopePopover),{forceMount:a=n.forceMount,...o}=e,l=z(W,e.__scopePopover);return(0,t.jsx)(f.Presence,{present:a||l.open,children:l.modal?(0,t.jsx)(q,{...o,ref:r}):(0,t.jsx)(U,{...o,ref:r})})});B.displayName=W;var K=m("PopoverContent.RemoveScroll"),q=r.forwardRef((e,a)=>{let l=z(W,e.__scopePopover),i=r.useRef(null),s=o(a,i),u=r.useRef(!1);return r.useEffect(()=>{let e=i.current;if(e)return(0,k.hideOthers)(e)},[]),(0,t.jsx)(S.RemoveScroll,{as:K,allowPinchZoom:!0,children:(0,t.jsx)(G,{...e,ref:s,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:n(e.onCloseAutoFocus,e=>{e.preventDefault(),u.current||l.triggerRef.current?.focus()}),onPointerDownOutside:n(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:n(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),U=r.forwardRef((e,n)=>{let a=z(W,e.__scopePopover),o=r.useRef(!1),l=r.useRef(!1);return(0,t.jsx)(G,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||a.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let r=t.target;a.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),G=r.forwardRef((e,r)=>{let{__scopePopover:n,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:v,...g}=e,h=z(W,n),b=A(n);return(0,s.useFocusGuards)(),(0,t.jsx)(u.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:v,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>h.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,t.jsx)(d.Content,{"data-state":Y(h.open),role:"dialog",id:h.contentId,...b,...g,ref:r,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Z="PopoverClose",H=r.forwardRef((e,r)=>{let{__scopePopover:a,...o}=e,l=z(Z,a);return(0,t.jsx)(E.button,{type:"button",...o,ref:r,onClick:n(e.onClick,()=>l.onOpenChange(!1))})});H.displayName=Z;var X=r.forwardRef((e,r)=>{let{__scopePopover:n,...a}=e,o=A(n);return(0,t.jsx)(d.Arrow,{...o,...a,ref:r})});function Y(e){return e?"open":"closed"}X.displayName="PopoverArrow",e.s(["Anchor",0,_,"Arrow",0,X,"Close",0,H,"Content",0,B,"Popover",0,O,"PopoverAnchor",0,_,"PopoverArrow",0,X,"PopoverClose",0,H,"PopoverContent",0,B,"PopoverPortal",0,L,"PopoverTrigger",0,F,"Portal",0,L,"Root",0,O,"Trigger",0,F,"createPopoverScope",0,P],178761);var J=e.i(178761),J=J,Q=e.i(975157);e.s(["Popover",0,function(e){return(0,t.jsx)(J.Root,{"data-slot":"popover",...e})},"PopoverAnchor",0,function(e){return(0,t.jsx)(J.Anchor,{"data-slot":"popover-anchor",...e})},"PopoverContent",0,function({className:e,align:r="center",sideOffset:n=4,...a}){return(0,t.jsx)(J.Portal,{children:(0,t.jsx)(J.Content,{align:r,className:(0,Q.cn)("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg bg-popover p-4 text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),"data-slot":"popover-content",sideOffset:n,...a})})},"PopoverTrigger",0,function(e){return(0,t.jsx)(J.Trigger,{"data-slot":"popover-trigger",...e})}],337822)},799676,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(30030),a=e.i(30207),o=globalThis?.document?r.useLayoutEffect:()=>{};function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var i=Symbol.for("radix.slottable"),s=Symbol.for("react.lazy");function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=r[" use ".trim().toString()],d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var a;let o,s=(a=`Primitive.${n}`,(o=r.forwardRef((e,t)=>{var n;let o,s,{children:d,...p}=e,f=null,m=!1,v=[];u(d)&&"function"==typeof c&&(d=c(d._payload)),r.Children.forEach(d,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===i){m=!0;let t="child"in e.props?e.props.child:e.props.children;u(t)&&"function"==typeof c&&(t=c(t._payload)),f=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),v.push(f?.props?.children)}else v.push(e)}),f?f=r.cloneElement(f,void 0,v):!m&&1===r.Children.count(d)&&r.isValidElement(d)&&(f=d);let g=f?(n=f,(s=(o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?n.ref:(s=(o=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?n.props.ref:n.props.ref||n.ref):void 0,h=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=l(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():l(e[t],null)}}}}(...e),e)}(t,g);if(!f){if(d||0===d){let e,t;throw Error(m?(e=a,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=a,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return d}let b=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(p,f.props??{});return f.type!==r.Fragment&&(b.ref=t?h:g),r.cloneElement(f,b)})).displayName=`${a}.Slot`,o),d=r.forwardRef((e,r)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?s:n,{...o,ref:r})});return d.displayName=`Primitive.${n}`,{...e,[n]:d}},{}),p="Avatar",[f,m]=(0,n.createContextScope)(p),v=[0,()=>void 0],[g,h]=f(p),b=r.forwardRef((e,n)=>{let{__scopeAvatar:a,...o}=e,[l,i]=r.useState("idle"),[s,u]=function(){let e=v;{let[t]=e=r.useState(0),n=r.useRef(!1);r.useEffect(()=>{t>1&&!n.current&&(n.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}();return(0,t.jsx)(g,{scope:a,imageLoadingStatus:l,setImageLoadingStatus:i,imageCount:s,setImageCount:u,children:(0,t.jsx)(d.span,{...o,ref:n})})});b.displayName=p;var x="AvatarImage",y=r.forwardRef((e,n)=>{var l;let{__scopeAvatar:i,src:s,onLoadingStatusChange:u,...c}=e,p=h(x,i);l=p.setImageCount,r.useEffect(()=>(l(e=>e+1),()=>{l(e=>e-1)}),[l]);let f=function(e,{loadingStatus:t,setLoadingStatus:r,referrerPolicy:n,crossOrigin:a}){return o(()=>{if(!e)return void r("error");let t=new window.Image,o=e=>{r(C(e.currentTarget))},l=()=>r("error");return t.addEventListener("load",o),t.addEventListener("error",l),n&&(t.referrerPolicy=n),t.crossOrigin=a??null,t.src=e,r(C(t)),()=>{t.removeEventListener("load",o),t.removeEventListener("error",l),r("idle")}},[e,a,n,r]),t}(s,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:p.imageLoadingStatus,setLoadingStatus:p.setImageLoadingStatus}),m=(0,a.useCallbackRef)(e=>{u?.(e)}),v=r.useRef(f);return o(()=>{let e=v.current;v.current=f,f!==e&&m(f)},[f,m]),"loaded"===f?(0,t.jsx)(d.img,{...c,ref:n,src:s}):null});y.displayName=x;var w="AvatarFallback",E=r.forwardRef((e,n)=>{let{__scopeAvatar:a,delayMs:o,...l}=e,i=h(w,a),[s,u]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>u(!0),o);return()=>window.clearTimeout(e)}},[o]),s&&"loaded"!==i.imageLoadingStatus?(0,t.jsx)(d.span,{...l,ref:n}):null});function C(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}E.displayName=w,e.s(["Avatar",0,b,"AvatarFallback",0,E,"AvatarImage",0,y,"Fallback",0,E,"Image",0,y,"Root",0,b,"createAvatarScope",0,m],97456);var j=e.i(97456),j=j,k=e.i(975157);e.s(["Avatar",0,function({className:e,size:r="default",...n}){return(0,t.jsx)(j.Root,{className:(0,k.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),"data-size":r,"data-slot":"avatar",...n})},"AvatarFallback",0,function({className:e,...r}){return(0,t.jsx)(j.Fallback,{className:(0,k.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),"data-slot":"avatar-fallback",...r})},"AvatarImage",0,function({className:e,...r}){return(0,t.jsx)(j.Image,{className:(0,k.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...r})}],799676)},159888,772382,e=>{"use strict";var t=e.i(456420);let r=(0,t.default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,r],159888);let n=(0,t.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,n],772382)},563707,e=>{"use strict";let t=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,t],563707)},906197,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(709840),a=e.i(975157);e.i(772436);let o=(0,r.cva)("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",{variants:{variant:{default:"border-transparent",outline:"border-border",muted:"border-transparent bg-muted/50"},size:{default:"gap-2.5 px-3 py-2.5",sm:"gap-2.5 px-3 py-2.5",xs:"gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"}},defaultVariants:{variant:"default",size:"default"}}),l=(0,r.cva)("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"[&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});e.s(["Item",0,function({className:e,variant:r="default",size:l="default",asChild:i=!1,...s}){let u=i?n.Slot.Root:"div";return(0,t.jsx)(u,{"data-slot":"item","data-variant":r,"data-size":l,className:(0,a.cn)(o({variant:r,size:l,className:e})),...s})},"ItemActions",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-actions",className:(0,a.cn)("flex items-center gap-2",e),...r})},"ItemContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-content",className:(0,a.cn)("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",e),...r})},"ItemDescription",0,function({className:e,...r}){return(0,t.jsx)("p",{"data-slot":"item-description",className:(0,a.cn)("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"ItemGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{role:"list","data-slot":"item-group",className:(0,a.cn)("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",e),...r})},"ItemMedia",0,function({className:e,variant:r="default",...n}){return(0,t.jsx)("div",{"data-slot":"item-media","data-variant":r,className:(0,a.cn)(l({variant:r,className:e})),...n})},"ItemTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-title",className:(0,a.cn)("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",e),...r})}])},317056,e=>{"use strict";var t=e.i(843476),r=/[\\\/_+.#"@\[\(\{&]/,n=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,o=/[\s-]/g;function l(e){return e.toLowerCase().replace(o," ")}var i=e.i(326999),s=e.i(271645);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}e.i(174080);var d=Symbol("radix.slottable");function p(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var n,a;let o,l,i,u=(a=n=`Primitive.${r}`,(o=s.forwardRef((e,t)=>{let{children:r,...n}=e;if(s.isValidElement(r)){var a;let e,o,l=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),i=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==s.Fragment&&(i.ref=t?c(t,l):l),s.cloneElement(r,i)}return s.Children.count(r)>1?s.Children.only(null):null})).displayName=`${a}.SlotClone`,l=o,(i=s.forwardRef((e,r)=>{let{children:n,...a}=e,o=s.Children.toArray(n),i=o.find(p);if(i){let e=i.props.children,n=o.map(t=>t!==i?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,t.jsx)(l,{...a,ref:r,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,t.jsx)(l,{...a,ref:r,children:n})})).displayName=`${n}.Slot`,i),d=s.forwardRef((e,n)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?u:r,{...o,ref:n})});return d.displayName=`Primitive.${r}`,{...e,[r]:d}},{}),m=e.i(610772),v='[cmdk-group=""]',g='[cmdk-group-items=""]',h='[cmdk-item=""]',b=`${h}:not([aria-disabled="true"])`,x="cmdk-item-select",y="data-value",w=(e,t,i)=>{var s;return s=e,function e(t,l,i,s,u,c,d){if(c===l.length)return u===t.length?1:.99;var p=`${u},${c}`;if(void 0!==d[p])return d[p];for(var f,m,v,g,h=s.charAt(c),b=i.indexOf(h,u),x=0;b>=0;)(f=e(t,l,i,s,b+1,c+1,d))>x&&(b===u?f*=1:r.test(t.charAt(b-1))?(f*=.8,(v=t.slice(u,b-1).match(n))&&u>0&&(f*=Math.pow(.999,v.length))):a.test(t.charAt(b-1))?(f*=.9,(g=t.slice(u,b-1).match(o))&&u>0&&(f*=Math.pow(.999,g.length))):(f*=.17,u>0&&(f*=Math.pow(.999,b-u))),t.charAt(b)!==l.charAt(c)&&(f*=.9999)),(f<.1&&i.charAt(b-1)===s.charAt(c+1)||s.charAt(c+1)===s.charAt(c)&&i.charAt(b-1)!==s.charAt(c))&&.1*(m=e(t,l,i,s,b+1,c+2,d))>f&&(f=.1*m),f>x&&(x=f),b=i.indexOf(h,b+1);return d[p]=x,x}(s=i&&i.length>0?`${s+" "+i.join(" ")}`:s,t,l(s),l(t),0,0,{})},E=s.createContext(void 0),C=s.createContext(void 0),j=s.createContext(void 0),k=s.forwardRef((e,t)=>{let r=_(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=_(()=>new Set),a=_(()=>new Map),o=_(()=>new Map),l=_(()=>new Set),i=O(e),{label:u,children:c,value:d,onValueChange:p,filter:j,shouldFilter:k,loop:S,disablePointerSelection:R=!1,vimBindings:I=!0,...P}=e,A=(0,m.useId)(),N=(0,m.useId)(),z=(0,m.useId)(),$=s.useRef(null),F=M();D(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,L.emit()}},[d]),D(()=>{F(6,G)},[]);let L=s.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,o,l,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)U(),K(),F(1,q);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(z);e?e.focus():null==(a=document.getElementById(A))||a.focus()}if(F(7,()=>{var e;r.current.selectedItemId=null==(e=Z())?void 0:e.id,L.emit()}),n||F(5,G),(null==(o=i.current)?void 0:o.value)!==void 0){null==(s=(l=i.current).onValueChange)||s.call(l,null!=t?t:"");return}}L.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),W=s.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,B(t,n)),F(2,()=>{K(),L.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),F(3,()=>{U(),K(),r.current.value||q(),L.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=Z();F(4,()=>{U(),(null==t?void 0:t.getAttribute("id"))===e&&q(),L.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:A,inputId:z,labelId:N,listInnerRef:$}),[]);function B(e,t){var n,a;let o=null!=(a=null==(n=i.current)?void 0:n.filter)?a:w;return e?o(e,r.current.search,t):0}function K(){if(!r.current.search||!1===i.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=$.current;H().sort((t,r)=>{var n,a;let o=t.getAttribute("id"),l=r.getAttribute("id");return(null!=(n=e.get(l))?n:0)-(null!=(a=e.get(o))?a:0)}).forEach(e=>{let t=e.closest(g);t?t.appendChild(e.parentElement===t?e:e.closest(`${g} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${g} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=$.current)?void 0:t.querySelector(`${v}[${y}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function q(){let e=H().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(y);L.setState("value",t||void 0)}function U(){var e,t,l,s;if(!r.current.search||!1===i.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let u=0;for(let a of n.current){let n=B(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(s=null==(l=o.current.get(a))?void 0:l.keywords)?s:[]);r.current.filtered.items.set(a,n),n>0&&u++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=u}function G(){var e,t,r;let n=Z();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(v))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function Z(){var e;return null==(e=$.current)?void 0:e.querySelector(`${h}[aria-selected="true"]`)}function H(){var e;return Array.from((null==(e=$.current)?void 0:e.querySelectorAll(b))||[])}function X(e){let t=H()[e];t&&L.setState("value",t.getAttribute(y))}function Y(e){var t;let r=Z(),n=H(),a=n.findIndex(e=>e===r),o=n[a+e];null!=(t=i.current)&&t.loop&&(o=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),o&&L.setState("value",o.getAttribute(y))}function J(e){let t=Z(),r=null==t?void 0:t.closest(v),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,v):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,v))?void 0:r.querySelector(b);n?L.setState("value",n.getAttribute(y)):Y(e)}let Q=()=>X(H().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?J(-1):Y(-1)};return s.createElement(f.div,{ref:t,tabIndex:-1,...P,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=P.onKeyDown)||t.call(P,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":I&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":I&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),X(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=Z();if(t){let e=new Event(x);t.dispatchEvent(e)}}}}},s.createElement("label",{"cmdk-label":"",htmlFor:W.inputId,id:W.labelId,style:T},u),V(e,e=>s.createElement(C.Provider,{value:L},s.createElement(E.Provider,{value:W},e))))}),S=s.forwardRef((e,t)=>{var r,n;let a=(0,m.useId)(),o=s.useRef(null),l=s.useContext(j),i=s.useContext(E),u=O(e),d=null!=(n=null==(r=u.current)?void 0:r.forceMount)?n:null==l?void 0:l.forceMount;D(()=>{if(!d)return i.item(a,null==l?void 0:l.id)},[d]);let p=F(a,o,[e.value,e.children,o],e.keywords),v=s.useContext(C),g=$(e=>e.value&&e.value===p.current),h=$(e=>!!d||!1===i.filter()||!e.search||e.filtered.items.get(a)>0);function b(){var e,t;y(),null==(t=(e=u.current).onSelect)||t.call(e,p.current)}function y(){v.setState("value",p.current,!0)}if(s.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(x,b),()=>t.removeEventListener(x,b)},[h,e.onSelect,e.disabled]),!h)return null;let{disabled:w,value:k,onSelect:S,forceMount:R,keywords:I,...P}=e;return s.createElement(f.div,{ref:c(o,t),...P,id:a,"cmdk-item":"",role:"option","aria-disabled":!!w,"aria-selected":!!g,"data-disabled":!!w,"data-selected":!!g,onPointerMove:w||i.getDisablePointerSelection()?void 0:y,onClick:w?void 0:b},e.children)}),R=s.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...o}=e,l=(0,m.useId)(),i=s.useRef(null),u=s.useRef(null),d=(0,m.useId)(),p=s.useContext(E),v=$(e=>!!a||!1===p.filter()||!e.search||e.filtered.groups.has(l));D(()=>p.group(l),[]),F(l,i,[e.value,e.heading,u]);let g=s.useMemo(()=>({id:l,forceMount:a}),[a]);return s.createElement(f.div,{ref:c(i,t),...o,"cmdk-group":"",role:"presentation",hidden:!v||void 0},r&&s.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),V(e,e=>s.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},s.createElement(j.Provider,{value:g},e))))}),I=s.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=s.useRef(null),o=$(e=>!e.search);return r||o?s.createElement(f.div,{ref:c(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),P=s.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,o=s.useContext(C),l=$(e=>e.search),i=$(e=>e.selectedItemId),u=s.useContext(E);return s.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),s.createElement(f.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":i,id:u.inputId,type:"text",value:a?e.value:l,onChange:e=>{a||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),A=s.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,o=s.useRef(null),l=s.useRef(null),i=$(e=>e.selectedItemId),u=s.useContext(E);return s.useEffect(()=>{if(l.current&&o.current){let e=l.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),s.createElement(f.div,{ref:c(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:u.listId},V(e,e=>s.createElement("div",{ref:c(l,u.listInnerRef),"cmdk-list-sizer":""},e)))}),N=s.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:o,container:l,...u}=e;return s.createElement(i.Root,{open:r,onOpenChange:n},s.createElement(i.Portal,{container:l},s.createElement(i.Overlay,{"cmdk-overlay":"",className:a}),s.createElement(i.Content,{"aria-label":e.label,"cmdk-dialog":"",className:o},s.createElement(k,{ref:t,...u}))))}),z=Object.assign(k,{List:A,Item:S,Input:P,Group:R,Separator:I,Dialog:N,Empty:s.forwardRef((e,t)=>$(e=>0===e.filtered.count)?s.createElement(f.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:s.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...o}=e;return s.createElement(f.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},V(e,e=>s.createElement("div",{"aria-hidden":!0},e)))})});function O(e){let t=s.useRef(e);return D(()=>{t.current=e}),t}var D="u"<typeof window?s.useEffect:s.useLayoutEffect;function _(e){let t=s.useRef();return void 0===t.current&&(t.current=e()),t}function $(e){let t=s.useContext(C),r=()=>e(t.snapshot());return s.useSyncExternalStore(t.subscribe,r,r)}function F(e,t,r,n=[]){let a=s.useRef(),o=s.useContext(E);return D(()=>{var l;let i=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),s=n.map(e=>e.trim());o.value(e,i,s),null==(l=t.current)||l.setAttribute(y,i),a.current=i}),a}var M=()=>{let[e,t]=s.useState(),r=_(()=>new Map);return D(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function V({asChild:e,children:t},r){let n;return e&&s.isValidElement(t)?s.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var T={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},L=e.i(975157);e.i(776639);var W=e.i(225913);function B({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,L.cn)("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...r})}e.i(519455),e.i(793479),e.i(624687);let K=(0,W.cva)("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function q({className:e,align:r="inline-start",...n}){return(0,t.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":r,className:(0,L.cn)(K({align:r}),e),onClick:e=>{e.target.closest("button")||e.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}(0,W.cva)("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});var U=e.i(630299),U=U,G=e.i(593698);e.s(["Command",0,function({className:e,...r}){return(0,t.jsx)(z,{"data-slot":"command",className:(0,L.cn)("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",e),...r})},"CommandEmpty",0,function({className:e,...r}){return(0,t.jsx)(z.Empty,{"data-slot":"command-empty",className:(0,L.cn)("py-6 text-center text-sm",e),...r})},"CommandGroup",0,function({className:e,...r}){return(0,t.jsx)(z.Group,{"data-slot":"command-group",className:(0,L.cn)("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",e),...r})},"CommandInput",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:(0,t.jsxs)(B,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,t.jsx)(z.Input,{"data-slot":"command-input",className:(0,L.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r}),(0,t.jsx)(q,{children:(0,t.jsx)(U.default,{className:"size-4 shrink-0 opacity-50"})})]})})},"CommandItem",0,function({className:e,children:r,...n}){return(0,t.jsxs)(z.Item,{"data-slot":"command-item",className:(0,L.cn)("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",e),...n,children:[r,(0,t.jsx)(G.CheckIcon,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})},"CommandList",0,function({className:e,...r}){return(0,t.jsx)(z.List,{"data-slot":"command-list",className:(0,L.cn)("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...r})}],317056)},337355,e=>{"use strict";var t=e.i(843476),r=e.i(563707),n=e.i(271645),a=e.i(519455),o=e.i(317056),l=e.i(906197),i=e.i(337822),s=e.i(975157);e.s(["SearchableSelect",0,function({value:e,onValueChange:u,options:c,placeholder:d,searchPlaceholder:p,emptyMessage:f,ariaLabel:m,disabled:v,className:g,showSelectedDetails:h=!1}){let[b,x]=(0,n.useState)(!1),y=c.find(t=>t.value===e);return(0,t.jsxs)(i.Popover,{onOpenChange:x,open:b,children:[(0,t.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(a.Button,{"aria-expanded":b,"aria-label":m,className:(0,s.cn)("min-w-0 w-full justify-between font-normal",h&&y&&"h-auto min-h-8 py-2",g),disabled:v,role:"combobox",type:"button",variant:"outline",children:[h&&y?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:y.label}),y.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:y.description}),y.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:y.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:y?.label??d}),(0,t.jsx)(r.ChevronsUpDown,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(i.PopoverContent,{align:"start",className:"z-70 w-(--radix-popover-trigger-width) p-0",children:(0,t.jsxs)(o.Command,{label:p,children:[(0,t.jsx)(o.CommandInput,{"aria-label":p,autoFocus:!0,placeholder:p}),(0,t.jsxs)(o.CommandList,{children:[(0,t.jsx)(o.CommandEmpty,{children:f}),(0,t.jsx)(o.CommandGroup,{children:c.map(r=>(0,t.jsx)(o.CommandItem,{"aria-label":[r.label,r.description,r.secondaryDescription].filter(Boolean).join(", "),"aria-selected":r.value===e,className:"items-start py-2","data-checked":r.value===e,disabled:r.disabled,keywords:[r.label,r.description??"",r.secondaryDescription??"",r.keywords??""],onSelect:()=>{u(r.value),x(!1)},value:r.value,children:(0,t.jsx)(l.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(l.ItemContent,{className:"min-w-0",children:[(0,t.jsx)(l.ItemTitle,{className:"block truncate",children:r.label}),r.description&&(0,t.jsx)(l.ItemDescription,{className:"block truncate",children:r.description}),r.secondaryDescription&&(0,t.jsx)(l.ItemDescription,{className:"block truncate",children:r.secondaryDescription})]})})},r.value))})]})]})})]})}])}]);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},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"])},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)},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},771777,866026,e=>{"use strict";var t=e.i(843476),r=e.i(395925),a=e.i(948148),n=e.i(271645),i=e.i(519455),o=e.i(987968),s=e.i(462777),l=e.i(637611);e.s(["RebuildButton",0,function({buildId:e,onCompleted:d,onError:c,size:u="default"}){let p=(0,a.useTranslations)("builds"),[f,h]=(0,n.useState)(!1),g=async()=>{h(!0),c(null);try{let t=await (0,l.controlPlaneRequest)(`mutation RebuildBuild($id: ID!, $requestId: ID!) {
|
|
2
|
+
rebuildBuild(id: $id, requestId: $requestId) { id status }
|
|
3
|
+
}`,{id:e,requestId:(0,s.createClientId)()});await d?.(t.rebuildBuild)}catch(e){c(e instanceof Error?e.message:String(e))}finally{h(!1)}};return(0,t.jsxs)(i.Button,{disabled:f,onClick:e=>{e.stopPropagation(),g()},onKeyDown:e=>e.stopPropagation(),size:u,type:"button",variant:"outline",children:[f?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(r.RotateCcw,{})," ",p("rebuild")]})}],771777);var d=e.i(716327),c=e.i(21357),u=e.i(755146);e.s(["RunBuildControls",0,function({buildId:e,destinationType:r,preferredDestination:p,onCompleted:f,onError:h,size:g="default"}){let m=(0,a.useTranslations)("builds"),x=p?.generic?null:p??null,[v,b]=(0,n.useState)(x?[x]:[]),[y,w]=(0,n.useState)(x?new Set([x.id]):new Set),[k,j]=(0,n.useState)(!1),[C,E]=(0,n.useState)(!1),[S,I]=(0,n.useState)(!1),R=(0,n.useMemo)(()=>v.filter(e=>y.has(e.id)).map(e=>e.name),[v,y]),D=async()=>{E(!0),h(null);try{let t=(await (0,l.controlPlaneRequest)(`mutation BuildRunDestinations($buildId: ID!, $requestId: ID!) {
|
|
4
|
+
inspectBuildRunDestinations(buildId: $buildId, requestId: $requestId)
|
|
5
|
+
}`,{buildId:e,requestId:(0,s.createClientId)()})).inspectBuildRunDestinations.filter(e=>e.type===r&&!e.generic);b(t),w(e=>{let r=new Set(t.map(e=>e.id));return new Set([...e].filter(e=>r.has(e)))}),j(!0)}catch(e){h(e instanceof Error?e.message:String(e))}finally{E(!1)}},T=async()=>{I(!0),h(null);try{await (0,l.controlPlaneRequest)(`mutation RunCompletedBuild($input: RunBuildInput!) {
|
|
6
|
+
runBuild(input: $input) { id status }
|
|
7
|
+
}`,{input:{buildId:e,destinations:v.filter(e=>y.has(e.id)),requestId:(0,s.createClientId)()}}),w(new Set),await f?.()}catch(e){h(e instanceof Error?e.message:String(e))}finally{I(!1)}};return(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,t.jsxs)(u.DropdownMenu,{onOpenChange:e=>{e&&!k&&D()},children:[(0,t.jsx)(u.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(i.Button,{disabled:C,size:g,type:"button",variant:"outline",children:[C?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(c.Play,{}),R.length?m("selectedDevices",{count:R.length}):m("selectRunDevices"),(0,t.jsx)(d.ChevronDown,{})]})}),(0,t.jsxs)(u.DropdownMenuContent,{align:"end",className:"w-72",children:[v.map(e=>(0,t.jsxs)(u.DropdownMenuCheckboxItem,{checked:y.has(e.id),onCheckedChange:t=>w(r=>{let a=new Set(r);return t?a.add(e.id):a.delete(e.id),a}),children:[e.name,e.osVersion?` \xb7 ${e.osVersion}`:""]},e.id)),k&&!v.length&&(0,t.jsx)("p",{className:"p-2 text-xs text-muted-foreground",children:m("noCompatibleDevices")})]})]}),(0,t.jsxs)(i.Button,{disabled:S||0===y.size,onClick:()=>void T(),size:g,type:"button",children:[S?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(c.Play,{})," ",m("run")]})]})}],866026)},452330,725981,e=>{"use strict";var t=e.i(456420);let r=(0,t.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,r],452330);let a=(0,t.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,a],725981)},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)},920950,e=>{"use strict";var t=e.i(843476),r=e.i(876561),a=e.i(93384),n=e.i(21357),i=e.i(456420);let o=(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"}]]),s=(0,i.default)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),l=(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"}]]),d={archive:r.Archive,hammer:a.Hammer,play:n.Play,rocket:o,smartphone:s,"test-tube":l};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let r=d[e];return r?(0,t.jsx)(r,{"aria-hidden":!0,className:"size-4"}):null}],920950)},434719,e=>{"use strict";let t=String.raw`\b([A-Z][A-Z0-9_]*-\d+)\b`;e.s(["DEFAULT_JIRA_BRANCH_REGEX",0,t,"DEFAULT_WORKTREE_FETCH_INTERVAL_SECONDS",0,300,"MAX_WORKTREE_FETCH_INTERVAL_SECONDS",0,86400,"MIN_WORKTREE_FETCH_INTERVAL_SECONDS",0,60,"WORKTREE_BRANCH_JOB_KIND",0,"worktree.branch","WORKTREE_DELETE_JOB_KIND",0,"worktree.delete","WORKTREE_INSPECT_JOB_KIND",0,"worktree.inspect","WORKTREE_MOVE_CHECKOUT_JOB_KIND",0,"worktree.move.checkout","WORKTREE_MOVE_PUSH_JOB_KIND",0,"worktree.move.push","WORKTREE_OPERATION_JOB_KIND",0,"worktree.operation","WORKTREE_WATCH_JOB_KIND",0,"worktree.watch"])},573474,e=>{"use strict";let t=(0,e.i(456420).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],573474)},59497,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}(...e),e)}var i=e.i(30030);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}"u">typeof window&&window.document&&window.document.createElement;var s=globalThis?.document?r.useLayoutEffect:()=>{};r[" useEffectEvent ".trim().toString()],r[" useInsertionEffect ".trim().toString()];var l=r[" useInsertionEffect ".trim().toString()]||s;Symbol("RADIX:SYNC_STATE");var d=e.i(999682),c=e.i(635804),u=e.i(296626);e.i(174080);var p=Symbol.for("radix.slottable"),f=Symbol.for("react.lazy");function h(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===f&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var g=r[" use ".trim().toString()],m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{var i;let o,s=(i=`Primitive.${a}`,(o=r.forwardRef((e,t)=>{var a;let o,s,{children:l,...d}=e,c=null,u=!1,f=[];h(l)&&"function"==typeof g&&(l=g(l._payload)),r.Children.forEach(l,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p){u=!0;let t="child"in e.props?e.props.child:e.props.children;h(t)&&"function"==typeof g&&(t=g(t._payload)),c=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),f.push(c?.props?.children)}else f.push(e)}),c?c=r.cloneElement(c,void 0,f):!u&&1===r.Children.count(l)&&r.isValidElement(l)&&(c=l);let m=c?(a=c,(s=(o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?a.ref:(s=(o=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,x=n(t,m);if(!c){if(l||0===l){let e,t;throw Error(u?(e=i,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=i,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return l}let v=function(e,t){let r={...t};for(let a in t){let n=e[a],i=t[a];/^on[A-Z]/.test(a)?n&&i?r[a]=(...e)=>{let t=i(...e);return n(...e),t}:n&&(r[a]=n):"style"===a?r[a]={...n,...i}:"className"===a&&(r[a]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}(d,c.props??{});return c.type!==r.Fragment&&(v.ref=t?x:m),r.cloneElement(c,v)})).displayName=`${i}.Slot`,o),l=r.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(n?s:a,{...i,ref:r})});return l.displayName=`Primitive.${a}`,{...e,[a]:l}},{}),x="Checkbox",[v,b]=(0,i.createContextScope)(x),[y,w]=v(x);function k(e){let{__scopeCheckbox:a,checked:n,children:i,defaultChecked:o,disabled:s,form:d,name:c,onCheckedChange:u,required:p,value:f="on",internal_do_not_use_render:h}=e,[g,m]=function({prop:e,defaultProp:t,onChange:a=()=>{},caller:n}){let[i,o,s]=function({defaultProp:e,onChange:t}){let[a,n]=r.useState(e),i=r.useRef(a),o=r.useRef(t);return l(()=>{o.current=t},[t]),r.useEffect(()=>{i.current!==a&&(o.current?.(a),i.current=a)},[a,i]),[a,n,o]}({defaultProp:t,onChange:a}),d=void 0!==e,c=d?e:i;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,n])}return[c,r.useCallback(t=>{if(d){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[d,e,o,s])]}({prop:n,defaultProp:o??!1,onChange:u,caller:x}),[v,b]=r.useState(null),[w,k]=r.useState(null),j=r.useRef(!1),C=!v||!!d||!!v.closest("form"),E={checked:g,disabled:s,setChecked:m,control:v,setControl:b,name:c,form:d,value:f,hasConsumerStoppedPropagationRef:j,required:p,defaultChecked:!T(o)&&o,isFormControl:C,bubbleInput:w,setBubbleInput:k};return(0,t.jsx)(y,{scope:a,...E,children:"function"==typeof h?h(E):i})}var j="CheckboxTrigger",C=r.forwardRef(({__scopeCheckbox:e,onKeyDown:a,onClick:i,...s},l)=>{let{control:d,value:c,disabled:u,checked:p,required:f,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:x,isFormControl:v,bubbleInput:b}=w(j,e),y=n(l,h),k=r.useRef(p);return r.useEffect(()=>{let e=d?.form;if(e){let t=()=>g(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,g]),(0,t.jsx)(m.button,{type:"button",role:"checkbox","aria-checked":T(p)?"mixed":p,"aria-required":f,"data-state":N(p),"data-disabled":u?"":void 0,disabled:u,value:c,...s,ref:y,onKeyDown:o(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:o(i,e=>{g(e=>!!T(e)||!e),b&&v&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})})});C.displayName=j;var E=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,name:n,checked:i,defaultChecked:o,required:s,disabled:l,value:d,onCheckedChange:c,form:u,...p}=e;return(0,t.jsx)(k,{__scopeCheckbox:a,checked:i,defaultChecked:o,disabled:l,required:s,onCheckedChange:c,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{...p,ref:r,__scopeCheckbox:a}),e&&(0,t.jsx)(D,{__scopeCheckbox:a})]})})});E.displayName=x;var S="CheckboxIndicator",I=r.forwardRef((e,r)=>{let{__scopeCheckbox:a,forceMount:n,...i}=e,o=w(S,a);return(0,t.jsx)(u.Presence,{present:n||T(o.checked)||!0===o.checked,children:(0,t.jsx)(m.span,{"data-state":N(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:r,style:{pointerEvents:"none",...e.style}})})});I.displayName=S;var R="CheckboxBubbleInput",D=r.forwardRef(({__scopeCheckbox:e,...a},i)=>{let{control:o,hasConsumerStoppedPropagationRef:s,checked:l,defaultChecked:u,required:p,disabled:f,name:h,value:g,form:x,bubbleInput:v,setBubbleInput:b}=w(R,e),y=n(i,b),k=(0,d.usePrevious)(l),j=(0,c.useSize)(o);r.useEffect(()=>{if(!v)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!s.current;if(k!==l&&e){let r=new Event("click",{bubbles:t});v.indeterminate=T(l),e.call(v,!T(l)&&l),v.dispatchEvent(r)}},[v,k,l,s]);let C=r.useRef(!T(l)&&l);return(0,t.jsx)(m.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??C.current,required:p,disabled:f,name:h,value:g,form:x,...a,tabIndex:-1,ref:y,style:{...a.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function T(e){return"indeterminate"===e}function N(e){return T(e)?"indeterminate":e?"checked":"unchecked"}D.displayName=R,e.s(["Checkbox",0,E,"CheckboxIndicator",0,I,"Indicator",0,I,"Root",0,E,"createCheckboxScope",0,b,"unstable_BubbleInput",0,D,"unstable_CheckboxBubbleInput",0,D,"unstable_CheckboxProvider",0,k,"unstable_CheckboxTrigger",0,C,"unstable_Provider",0,k,"unstable_Trigger",0,C],388474);var _=e.i(388474),_=_,A=e.i(975157),B=e.i(593698);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)(_.Root,{"data-slot":"checkbox",className:(0,A.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(_.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(B.CheckIcon,{})})})}],59497)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(560964),a=e.i(964053),n=e.i(519455),i=e.i(975157);function o({...e}){return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function s({className:e,...r}){return(0,t.jsx)(a.Dialog.Overlay,{className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...r})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:l,showCloseButton:d=!0,...c}){return(0,t.jsxs)(o,{children:[(0,t.jsx)(s,{}),(0,t.jsxs)(a.Dialog.Content,{className:(0,i.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...c,children:[l,d&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(n.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Description,{className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...r})},"DialogFooter",0,function({className:e,showCloseButton:r=!1,children:o,...s}){return(0,t.jsxs)("div",{className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...s,children:[o,r&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,children:(0,t.jsx)(n.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...r})}])},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)},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)},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)},851817,882505,808562,e=>{"use strict";var t=e.i(456420);let r=(0,t.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,r],851817);let a=(0,t.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,a],882505);var n=e.i(843476),i=e.i(271645),o=e.i(30030);function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var l=Symbol.for("radix.slottable"),d=Symbol.for("react.lazy");function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===d&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var u=i[" use ".trim().toString()],p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r;let a,o=(r=`Primitive.${t}`,(a=i.forwardRef((e,t)=>{var a;let n,o,{children:d,...p}=e,f=null,h=!1,g=[];c(d)&&"function"==typeof u&&(d=u(d._payload)),i.Children.forEach(d,e=>{var t;if(t=e,i.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===l){h=!0;let t="child"in e.props?e.props.child:e.props.children;c(t)&&"function"==typeof u&&(t=u(t._payload)),f=((e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null})(e,t),g.push(f?.props?.children)}else g.push(e)}),f?f=i.cloneElement(f,void 0,g):!h&&1===i.Children.count(d)&&i.isValidElement(d)&&(f=d);let m=f?(a=f,(o=(n=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?a.ref:(o=(n=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,x=function(...e){return i.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=s(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():s(e[t],null)}}}}(...e),e)}(t,m);if(!f){if(d||0===d){let e,t;throw Error(h?(e=r,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=r,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return d}let v=function(e,t){let r={...t};for(let a in t){let n=e[a],i=t[a];/^on[A-Z]/.test(a)?n&&i?r[a]=(...e)=>{let t=i(...e);return n(...e),t}:n&&(r[a]=n):"style"===a?r[a]={...n,...i}:"className"===a&&(r[a]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}(p,f.props??{});return f.type!==i.Fragment&&(v.ref=t?x:m),i.cloneElement(f,v)})).displayName=`${r}.Slot`,a),d=i.forwardRef((e,r)=>{let{asChild:a,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(a?o:t,{...i,ref:r})});return d.displayName=`Primitive.${t}`,{...e,[t]:d}},{}),f=e.i(842727);"u">typeof window&&window.document&&window.document.createElement;var h=globalThis?.document?i.useLayoutEffect:()=>{};i[" useEffectEvent ".trim().toString()],i[" useInsertionEffect ".trim().toString()];var g=i[" useInsertionEffect ".trim().toString()]||h;function m({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){let[n,o,s]=function({defaultProp:e,onChange:t}){let[r,a]=i.useState(e),n=i.useRef(r),o=i.useRef(t);return g(()=>{o.current=t},[t]),i.useEffect(()=>{n.current!==r&&(o.current?.(r),n.current=r)},[r,n]),[r,a,o]}({defaultProp:t,onChange:r}),l=void 0!==e,d=l?e:n;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,a])}return[d,i.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[l,e,o,s])]}Symbol("RADIX:SYNC_STATE");var x="Toggle",v=i.forwardRef((e,t)=>{let{pressed:r,defaultPressed:a,onPressedChange:i,...o}=e,[s,l]=m({prop:r,onChange:i,defaultProp:a??!1,caller:x});return(0,n.jsx)(p.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}(e.onClick,()=>{e.disabled||l(!s)})})});v.displayName=x;var b=e.i(586318),y="ToggleGroup",[w,k]=(0,o.createContextScope)(y,[f.createRovingFocusGroupScope]),j=(0,f.createRovingFocusGroupScope)(),C=i.forwardRef((e,t)=>{let{type:r,...a}=e;if("single"===r)return(0,n.jsx)(I,{role:"radiogroup",...a,ref:t});if("multiple"===r)return(0,n.jsx)(R,{role:"toolbar",...a,ref:t});throw Error(`Missing prop \`type\` expected on \`${y}\``)});C.displayName=y;var[E,S]=w(y),I=i.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:o=()=>{},...s}=e,[l,d]=m({prop:r,defaultProp:a??"",onChange:o,caller:y});return(0,n.jsx)(E,{scope:e.__scopeToggleGroup,type:"single",value:i.useMemo(()=>l?[l]:[],[l]),onItemActivate:d,onItemDeactivate:i.useCallback(()=>d(""),[d]),children:(0,n.jsx)(N,{...s,ref:t})})}),R=i.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:o=()=>{},...s}=e,[l,d]=m({prop:r,defaultProp:a??[],onChange:o,caller:y}),c=i.useCallback(e=>d((t=[])=>[...t,e]),[d]),u=i.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,n.jsx)(E,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:c,onItemDeactivate:u,children:(0,n.jsx)(N,{...s,ref:t})})});C.displayName=y;var[D,T]=w(y),N=i.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:i=!0,orientation:o,dir:s,loop:l=!0,...d}=e,c=j(r),u=(0,b.useDirection)(s),h={dir:u,...d};return(0,n.jsx)(D,{scope:r,rovingFocus:i,disabled:a,children:i?(0,n.jsx)(f.Root,{asChild:!0,...c,orientation:o,dir:u,loop:l,children:(0,n.jsx)(p.div,{...h,ref:t})}):(0,n.jsx)(p.div,{...h,ref:t})})}),_="ToggleGroupItem",A=i.forwardRef((e,t)=>{let r=S(_,e.__scopeToggleGroup),a=T(_,e.__scopeToggleGroup),o=j(e.__scopeToggleGroup),s=r.value.includes(e.value),l=a.disabled||e.disabled,d={...e,pressed:s,disabled:l},c=i.useRef(null);return a.rovingFocus?(0,n.jsx)(f.Item,{asChild:!0,...o,focusable:!l,active:s,ref:c,children:(0,n.jsx)(B,{...d,ref:t})}):(0,n.jsx)(B,{...d,ref:t})});A.displayName=_;var B=i.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:a,...i}=e,o=S(_,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===o.type?s:void 0;return(0,n.jsx)(v,{...l,...i,ref:t,onPressedChange:e=>{e?o.onItemActivate(a):o.onItemDeactivate(a)}})});e.s(["Item",0,A,"Root",0,C,"ToggleGroup",0,C,"ToggleGroupItem",0,A,"createToggleGroupScope",0,k],459881);var M=e.i(459881),M=M,O=e.i(975157),$=e.i(225913);"u">typeof window&&window.document&&window.document.createElement;var L=globalThis?.document?i.useLayoutEffect:()=>{};i[" useEffectEvent ".trim().toString()],i[" useInsertionEffect ".trim().toString()];var P=i[" useInsertionEffect ".trim().toString()]||L;Symbol("RADIX:SYNC_STATE");var z=e.i(743556),W=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,z.createSlot)(`Primitive.${t}`),a=i.forwardRef((e,a)=>{let{asChild:i,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(i?r:t,{...o,ref:a})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),F="Toggle",G=i.forwardRef((e,t)=>{let{pressed:r,defaultPressed:a,onPressedChange:o,...s}=e,[l,d]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){let[n,o,s]=function({defaultProp:e,onChange:t}){let[r,a]=i.useState(e),n=i.useRef(r),o=i.useRef(t);return P(()=>{o.current=t},[t]),i.useEffect(()=>{n.current!==r&&(o.current?.(r),n.current=r)},[r,n]),[r,a,o]}({defaultProp:t,onChange:r}),l=void 0!==e,d=l?e:n;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,a])}return[d,i.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[l,e,o,s])]}({prop:r,onChange:o,defaultProp:a??!1,caller:F});return(0,n.jsx)(W.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}(e.onClick,()=>{e.disabled||d(!l)})})});G.displayName=F,e.s(["Root",0,G,"Toggle",0,G],864225),e.i(864225);let K=(0,$.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"}}),H=i.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:t,size:r,spacing:a=2,orientation:i="horizontal",children:o,...s}){return(0,n.jsx)(M.Root,{"data-slot":"toggle-group","data-variant":t,"data-size":r,"data-spacing":a,"data-orientation":i,style:{"--gap":a},className:(0,O.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...s,children:(0,n.jsx)(H.Provider,{value:{variant:t,size:r,spacing:a,orientation:i},children:o})})},"ToggleGroupItem",0,function({className:e,children:t,variant:r="default",size:a="default",...o}){let s=i.useContext(H);return(0,n.jsx)(M.Item,{"data-slot":"toggle-group-item","data-variant":s.variant||r,"data-size":s.size||a,"data-spacing":s.spacing,className:(0,O.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",K({variant:s.variant||r,size:s.size||a}),e),...o,children:t})}],808562)},90969,747047,111530,e=>{"use strict";e.s(["buildDuration",0,function(e,t=Date.now()){let r=e.durationMs??(e.startedAt&&null!==t&&["QUEUED","PREPARING","RUNNING"].includes(e.status)?t-Date.parse(e.startedAt):null);if(null===r||!Number.isFinite(r))return"—";let a=Math.max(0,Math.floor(r/1e3)),n=Math.floor(a/3600),i=Math.floor(a%3600/60),o=a%60;return n>0?`${n}h${i>0?` ${i}m`:""}`:i>0?`${i}m${o>0?` ${o}s`:""}`:`${o}s`},"buildSnapshotName",0,function(e){let t=e.snapshot.repository,r=e.snapshot.worktree;return{repository:t?.name??"—",worktree:r?.branch??r?.folder??"—"}},"buildStatusVariant",0,function(e){return"FAILED"===e?"destructive":"SUCCEEDED"===e?"default":"secondary"},"relativeBuildAge",0,function(e,t,r=Date.now()){if(null===r)return"—";let a=Math.round((Date.parse(e)-r)/1e3),n=new Intl.RelativeTimeFormat(t,{numeric:"auto"});for(let[e,t]of[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]])if(Math.abs(a)>=t)return n.format(Math.round(a/t),e);return n.format(a,"second")}],90969);let t=`
|
|
8
|
+
id requestId jobId status action destinationType destination snapshot commandSummary artifactDirectory errorCode error outOfDate
|
|
9
|
+
createdAt startedAt finishedAt durationMs updatedAt
|
|
10
|
+
artifacts { id kind relativePath sizeBytes checksum metadata createdAt }
|
|
11
|
+
`;e.s(["BUILD_LIST_FIELDS",0,t],747047);var r=e.i(271645);e.s(["useBuildTimeTicker",0,function(){let[e,t]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=()=>t(Date.now()),r=window.setTimeout(e,0),a=window.setInterval(e,1e3);return()=>{window.clearTimeout(r),window.clearInterval(a)}},[]),e}],111530)},547,e=>{"use strict";var t=e.i(843476),r=e.i(434719),a=e.i(711241),n=e.i(269846),i=e.i(741120),o=e.i(861745),s=e.i(948148),l=e.i(271645),d=e.i(778434),c=e.i(90969),u=e.i(747047),p=e.i(771777),f=e.i(866026),h=e.i(111530),g=e.i(356505),m=e.i(929592),x=e.i(487486),v=e.i(519455),b=e.i(515288),y=e.i(82612),w=e.i(987968),k=e.i(784774),j=e.i(520133),C=e.i(637611),E=e.i(942230),S=e.i(455329),I=e.i(756283),R=e.i(940276),D=e.i(267572);let T=`query WorktreeDetailOverview($worktreeId: ID!) {
|
|
12
|
+
worktreeOverview {
|
|
13
|
+
hiddenCount
|
|
14
|
+
settings { editorVariant updatedAt }
|
|
15
|
+
tags { id name color createdAt updatedAt }
|
|
16
|
+
activeMoves {
|
|
17
|
+
id sourceWorktreeId sourceCodebaseId targetCodebaseId targetWorktreeId destinationMode
|
|
18
|
+
branch headSha deleteSource status sourceJobId targetJobId cleanupJobId error warning
|
|
19
|
+
createdAt updatedAt finishedAt
|
|
20
|
+
}
|
|
21
|
+
agents {
|
|
22
|
+
agent { ${d.AGENT_FIELDS} }
|
|
23
|
+
codebases {
|
|
24
|
+
iosBuildConfigured
|
|
25
|
+
repository { id canonicalOrigin displayOrigin name description jiraBranchRegex keepBaseBranchUpToDate createdAt updatedAt }
|
|
26
|
+
codebase { ${S.CODEBASE_FIELDS} }
|
|
27
|
+
worktrees { ${S.WORKTREE_FIELDS} }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
builds(first: 50, worktreeId: $worktreeId) {
|
|
32
|
+
items { ${u.BUILD_LIST_FIELDS} }
|
|
33
|
+
nextCursor
|
|
34
|
+
}
|
|
35
|
+
}`;function N({builds:e,buildsLoadingMore:n,buildsNextCursor:d,entry:c,overview:u,loadError:p,onLoadMoreBuilds:f,onReload:h,onUpdate:y}){let k=(0,s.useTranslations)("worktreeDetail"),S=(0,s.useTranslations)("worktrees"),T=(0,o.useLocale)(),B=(0,j.useRouter)(),[M,O]=(0,l.useState)(()=>new URLSearchParams(window.location.search).get("issue")),[$,L]=(0,l.useState)(null),[P,z]=(0,l.useState)(!1),[W,F]=(0,l.useState)(!1),[G,K]=(0,l.useState)(!1),[H,V]=(0,l.useState)(null),q=(0,l.useRef)(0),{worktree:U,applyActivity:J,setUnstagedChanges:X}=(0,I.useLiveWorktree)(c.worktree),Z=u.activeMoves.some(e=>e.sourceCodebaseId===c.group.codebase.id||e.targetCodebaseId===c.group.codebase.id),Y="ONLINE"===c.agentGroup.agent.connectionStatus&&c.agentGroup.agent.capabilities.includes(r.WORKTREE_INSPECT_JOB_KIND)&&"AVAILABLE"===U.availability&&!U.activeJob&&!Z,Q="ONLINE"===c.agentGroup.agent.connectionStatus&&c.agentGroup.agent.capabilities.includes(r.WORKTREE_WATCH_JOB_KIND),ee=(0,l.useCallback)(async()=>{if(!Y)return;let e=++q.current;F(!0);try{let t=await (0,I.inspectWorktree)(U.id);if(e!==q.current)return;L(t),X(t.changes.some(e=>e.unstaged||e.untracked||e.conflicted)),V(null)}catch(t){e===q.current&&V(t instanceof Error?t.message:String(t))}finally{e===q.current&&F(!1)}},[Y,X,U.id]),et=(0,I.useQueuedWorktreeInspection)(ee);(0,l.useEffect)(()=>{if(!Y)return;let e=window.setTimeout(()=>void et(),0);return()=>window.clearTimeout(e)},[Y,et]);let er=(0,l.useCallback)(e=>{J(e),Y&&et()},[J,Y,et]);(0,I.useWorktreeActivitySubscription)(U.id,Q&&"AVAILABLE"===U.availability,er),(0,l.useEffect)(()=>{let e=()=>O(new URLSearchParams(window.location.search).get("issue"));return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let ea=e=>{let t,r;t=new URLSearchParams(window.location.search),e?t.set("issue",e):t.delete("issue"),r=t.toString(),window.history.pushState(null,"",`${window.location.pathname}${r?`?${r}`:""}`),O(e)},en=(0,l.useCallback)(async()=>{await h(),Y&&await et()},[Y,h,et]),ei=async()=>{K(!0);try{await (0,C.controlPlaneRequest)("mutation RefreshWorktrees { refreshWorktrees }"),await en(),V(null)}catch(e){V(e instanceof Error?e.message:String(e))}finally{K(!1)}},eo={worktree:U,group:c.group,allTags:u.tags,baseRepoDirectory:c.agentGroup.agent.baseRepoDirectory,branchManagementEnabled:"ONLINE"===c.agentGroup.agent.connectionStatus&&c.agentGroup.agent.capabilities.includes("worktree.branch"),editorVariant:u.settings.editorVariant,inspectionRefreshToken:0,liveUpdatesEnabled:Q,onReload:en,onUpdate:y,onError:V,onManageTags:()=>z(!0),onOpenTicket:e=>ea(e),onDeleted:()=>B.push("/worktrees"),onMoved:e=>{e.targetWorktreeId&&B.push((0,R.worktreeDetailHref)(e.targetWorktreeId))},overview:u},es=new Intl.DateTimeFormat(T,{dateStyle:"medium",timeStyle:"short"}),el=e=>e?es.format(new Date(e)):"—",ed=Y?null:"OFFLINE"===c.agentGroup.agent.connectionStatus?k("inspectionOffline"):"AVAILABLE"!==U.availability?U.statusError||k("inspectionUnavailable"):k(U.activeJob||Z?"inspectionBusy":"inspectionUnsupported");return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-6xl flex-col gap-5",children:[(0,t.jsx)("div",{children:(0,t.jsx)(v.Button,{asChild:!0,className:"-ml-2",size:"sm",variant:"ghost",children:(0,t.jsxs)(j.Link,{href:"/worktrees",children:[(0,t.jsx)(a.ArrowLeft,{})," ",k("back")]})})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[c.group.repository.name," · ",c.agentGroup.agent.name]}),(0,t.jsx)("h1",{className:"mt-1 truncate font-mono text-2xl font-semibold tracking-tight",children:U.branch??U.headSha?.slice(0,10)??S("detached")}),(0,t.jsx)("p",{className:"mt-1 truncate font-mono text-xs text-muted-foreground",title:U.folder,children:(0,D.displayedWorktreePath)(U.folder,c.agentGroup.agent.baseRepoDirectory)}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[(0,t.jsx)(x.Badge,{variant:"secondary",children:U.primary?S("primary"):k("linked")}),(0,t.jsx)(D.OriginStatusBadges,{worktree:U}),U.hasStagedChanges||U.hasUnstagedChanges?(0,t.jsx)(x.Badge,{variant:"destructive",children:S("dirty")}):null,"AVAILABLE"!==U.availability&&(0,t.jsx)(x.Badge,{variant:"destructive",children:U.availability})]}),(U.ticketKey||U.ticketTitle)&&(0,t.jsx)(D.WorktreeTicketLink,{...eo})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(v.Button,{disabled:G,onClick:()=>void ei(),variant:"outline",children:[(0,t.jsx)(i.RefreshCw,{className:G?"animate-spin":void 0}),k("refresh")]}),(0,t.jsx)(D.WorktreeMenus,{...eo})]})]}),(p||H||U.statusError)&&(0,t.jsx)(m.Alert,{variant:"destructive",children:(0,t.jsx)(m.AlertDescription,{children:H||p||U.statusError})}),ed&&(0,t.jsx)(m.Alert,{children:(0,t.jsx)(m.AlertDescription,{children:ed})}),(0,t.jsxs)(b.Card,{children:[(0,t.jsx)(b.CardHeader,{className:"border-b",children:(0,t.jsx)(b.CardTitle,{children:k("actions")})}),(0,t.jsx)(b.CardContent,{children:(0,t.jsx)(D.ActionRow,{...eo,onCompleted:en})})]}),(0,t.jsx)(_,{builds:e,loadingMore:n,nextCursor:d,onError:V,onLoadMore:f,onReload:h}),(0,t.jsxs)("div",{className:"grid gap-5 lg:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]",children:[(0,t.jsxs)(b.Card,{className:"min-w-0",children:[(0,t.jsx)(b.CardHeader,{className:"border-b",children:(0,t.jsx)(b.CardTitle,{children:k("workingTree")})}),(0,t.jsx)(b.CardContent,{children:W&&!$?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(w.Spinner,{})," ",S("loadingDetails")]}):$?(0,t.jsx)(E.WorktreeDetailPanel,{detail:$}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:Y?k("inspectionFailed"):"—"})})]}),(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)(b.Card,{children:[(0,t.jsx)(b.CardHeader,{className:"border-b",children:(0,t.jsx)(b.CardTitle,{children:k("overview")})}),(0,t.jsx)(b.CardContent,{children:(0,t.jsxs)("dl",{className:"space-y-3 text-sm",children:[(0,t.jsx)(A,{label:k("repository"),children:(0,t.jsx)(j.Link,{className:"text-primary hover:underline",href:`/codebases/${c.group.codebase.id}`,children:c.group.repository.name})}),(0,t.jsx)(A,{label:k("origin"),mono:!0,children:c.group.repository.displayOrigin}),(0,t.jsxs)(A,{label:k("agent"),children:[c.agentGroup.agent.name," ·"," ",c.agentGroup.agent.hostname]}),(0,t.jsx)(A,{label:k("folder"),mono:!0,children:U.folder}),(0,t.jsx)(A,{label:k("head"),mono:!0,children:U.headSha??"—"}),(0,t.jsx)(A,{label:k("upstream"),mono:!0,children:U.upstream??"—"}),(0,t.jsx)(A,{label:k("originStatus"),children:(0,t.jsx)(D.OriginStatusBadges,{worktree:U})}),(0,t.jsx)(A,{label:k("baseStatus"),children:(0,t.jsx)(D.BaseFreshnessBadge,{worktree:U})}),(0,t.jsx)(A,{label:k("lastChecked"),children:el(U.lastCheckedAt)}),(0,t.jsx)(A,{label:k("lastFetched"),children:el(c.group.codebase.lastFetchedAt)})]})})]}),(0,t.jsxs)(b.Card,{children:[(0,t.jsx)(b.CardHeader,{className:"border-b",children:(0,t.jsx)(b.CardTitle,{children:k("management")})}),(0,t.jsx)(b.CardContent,{children:(0,t.jsx)(D.WorktreeMetadata,{...eo})})]})]})]}),(0,t.jsx)(g.JiraTicketDrawer,{issueKey:M,onClose:()=>ea(null)}),(0,t.jsx)(D.TagManagerDialog,{onChanged:h,onOpenChange:z,open:P,tags:u.tags})]})}function _({builds:e,loadingMore:r,nextCursor:a,onError:n,onLoadMore:i,onReload:l}){let d=(0,s.useTranslations)("builds"),u=(0,o.useLocale)(),g=(0,j.useRouter)(),m=(0,h.useBuildTimeTicker)();return(0,t.jsxs)(b.Card,{className:"gap-0 py-0",children:[(0,t.jsx)(b.CardHeader,{className:"border-b py-4",children:(0,t.jsx)(b.CardTitle,{children:d("title")})}),e.length?(0,t.jsxs)(k.Table,{children:[(0,t.jsx)(k.TableHeader,{children:(0,t.jsxs)(k.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(k.TableHead,{children:d("build")}),(0,t.jsx)(k.TableHead,{children:d("status")}),(0,t.jsx)(k.TableHead,{children:d("action")}),(0,t.jsx)(k.TableHead,{children:d("destination")}),(0,t.jsx)(k.TableHead,{children:d("startedAt")}),(0,t.jsx)(k.TableHead,{className:"text-right",children:d("actionsLabel")})]})}),(0,t.jsx)(k.TableBody,{children:e.map(e=>{let r=e.snapshot.configuration,a=e.startedAt??e.createdAt,i="SUCCEEDED"===e.status&&e.artifacts.some(e=>"RUNNABLE_APP"===e.kind);return(0,t.jsxs)(k.TableRow,{"aria-label":d("viewBuild"),className:"cursor-pointer focus-visible:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",onClick:()=>g.push(`/builds/${e.id}`),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),g.push(`/builds/${e.id}`))},role:"link",tabIndex:0,children:[(0,t.jsxs)(k.TableCell,{className:"min-w-52 whitespace-normal",children:[(0,t.jsx)(j.Link,{className:"font-medium hover:underline",href:`/builds/${e.id}`,onClick:e=>e.stopPropagation(),children:r?.name??e.id}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:e.id})]}),(0,t.jsx)(k.TableCell,{children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsx)(x.Badge,{variant:(0,c.buildStatusVariant)(e.status),children:d(`statuses.${e.status}`)}),e.outOfDate&&(0,t.jsx)(x.Badge,{className:"border-amber-500/40 text-amber-700 dark:text-amber-300",variant:"outline",children:d("outOfDate")})]})}),(0,t.jsx)(k.TableCell,{children:(0,t.jsx)(x.Badge,{variant:"outline",children:d(`actions.${e.action}`)})}),(0,t.jsx)(k.TableCell,{children:e.destination.name}),(0,t.jsx)(k.TableCell,{className:"text-muted-foreground",children:(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("time",{dateTime:a,title:new Date(a).toLocaleString(u),children:(0,c.relativeBuildAge)(a,u,m)}),(0,t.jsx)("span",{className:"text-xs",children:d("durationValue",{duration:(0,c.buildDuration)(e,m)})})]})}),(0,t.jsx)(k.TableCell,{className:"text-right",children:(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,t.jsx)(p.RebuildButton,{buildId:e.id,onCompleted:()=>l(),onError:n,size:"sm"}),i&&(0,t.jsx)(f.RunBuildControls,{buildId:e.id,destinationType:e.destinationType,onCompleted:l,onError:n,preferredDestination:e.destination,size:"sm"})]})})]},e.id)})})]}):(0,t.jsx)(b.CardContent,{className:"py-6 text-sm text-muted-foreground",children:d("emptyTitle")}),a&&(0,t.jsx)("div",{className:"flex justify-center border-t p-3",children:(0,t.jsxs)(v.Button,{disabled:r,onClick:()=>void i(),variant:"outline",children:[r&&(0,t.jsx)(w.Spinner,{})," ",d("loadMore")]})})]})}function A({label:e,children:r,mono:a=!1}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:a?"mt-0.5 break-all font-mono text-xs":"mt-0.5",children:r})]})}e.s(["WorktreeDetailPage",0,function({worktreeId:e}){let r=(0,s.useTranslations)("worktreeDetail"),[i,o]=(0,l.useState)(null),[d,c]=(0,l.useState)([]),[p,f]=(0,l.useState)(null),[h,g]=(0,l.useState)(!1),[x,b]=(0,l.useState)(!0),[k,E]=(0,l.useState)(null),S=(0,l.useRef)(0),I=(0,l.useRef)(null),D=(0,l.useCallback)(async()=>{let t=++S.current;try{let r=await (0,C.controlPlaneRequest)(T,{worktreeId:e});if(t!==S.current)return;I.current=(0,R.findWorktreeOverviewEntry)(r.worktreeOverview,e)?.group.codebase.id??null,o(r.worktreeOverview),c(r.builds?.items??[]),f(r.builds?.nextCursor??null),E(null)}catch(e){t===S.current&&E(e instanceof Error?e.message:String(e))}finally{t===S.current&&b(!1)}},[e]),_=(0,l.useCallback)(async()=>{if(p){g(!0);try{let t=await (0,C.controlPlaneRequest)(`query WorktreeDetailBuilds($worktreeId: ID!, $after: ID!) {
|
|
36
|
+
builds(first: 50, after: $after, worktreeId: $worktreeId) {
|
|
37
|
+
items { ${u.BUILD_LIST_FIELDS} }
|
|
38
|
+
nextCursor
|
|
39
|
+
}
|
|
40
|
+
}`,{worktreeId:e,after:p});c(e=>{let r=new Set(e.map(e=>e.id));return[...e,...t.builds.items.filter(e=>!r.has(e.id))]}),f(t.builds.nextCursor),E(null)}catch(e){E(e instanceof Error?e.message:String(e))}finally{g(!1)}}},[p,e]);(0,l.useEffect)(()=>{I.current=null;let t=window.setTimeout(()=>void D(),0),r=window.setInterval(()=>void D(),3e4),a=(0,C.controlPlaneSubscriptions)(),n=a.subscribe({query:"subscription WorktreeDetailChanged { worktreeOverviewChanged { worktreeId codebaseId } }"},{next:t=>{let r=t.data?.worktreeOverviewChanged;r&&null!==r.worktreeId&&r.worktreeId!==e&&(null===r.codebaseId||r.codebaseId!==I.current)||D()},error:()=>void 0,complete:()=>void 0}),i=a.subscribe({query:"subscription WorktreeDetailBuildsChanged { buildsChanged { id } }"},{next:()=>void D(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),window.clearInterval(r),S.current+=1,n(),i()}},[D,e]);let A=(0,l.useMemo)(()=>i?(0,R.findWorktreeOverviewEntry)(i,e):null,[i,e]),B=(0,l.useCallback)(e=>{o(t=>t?{...t,agents:t.agents.map(t=>({...t,codebases:t.codebases.map(t=>({...t,worktrees:t.worktrees.map(t=>t.id===e.id?{...t,...e,ticketKey:e.ticketKey??t.ticketKey,ticketTitle:e.ticketTitle??t.ticketTitle,ticketStatus:e.ticketStatus??t.ticketStatus,pullRequest:e.pullRequest??t.pullRequest}:t)}))}))}:t)},[]);return x&&!i?(0,t.jsxs)("p",{className:"mx-auto flex max-w-6xl items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(w.Spinner,{})," ",r("loading")]}):i&&A?(0,t.jsx)(N,{builds:d,buildsLoadingMore:h,buildsNextCursor:p,entry:A,loadError:k,onLoadMoreBuilds:_,onReload:D,onUpdate:B,overview:i},A.worktree.id):(0,t.jsxs)("section",{className:"mx-auto w-full max-w-6xl space-y-5",children:[k&&(0,t.jsx)(m.Alert,{variant:"destructive",children:(0,t.jsx)(m.AlertDescription,{children:k})}),(0,t.jsxs)(y.Empty,{className:"border py-12",children:[(0,t.jsxs)(y.EmptyHeader,{children:[(0,t.jsx)(y.EmptyMedia,{variant:"icon",children:(0,t.jsx)(n.GitBranch,{})}),(0,t.jsx)(y.EmptyTitle,{children:r("notFound")}),(0,t.jsx)(y.EmptyDescription,{children:r("notFoundDescription")})]}),(0,t.jsx)(v.Button,{asChild:!0,className:"mt-4",variant:"outline",children:(0,t.jsxs)(j.Link,{href:"/worktrees",children:[(0,t.jsx)(a.ArrowLeft,{})," ",r("back")]})})]})]})}])}]);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},487179,e=>{"use strict";var t=e.i(843476),s=e.i(716327),r=e.i(867927),n=e.i(482022),a=e.i(269846),i=e.i(648119),l=e.i(966473),o=e.i(741120),d=e.i(395925),c=e.i(861745),u=e.i(948148),m=e.i(618566),h=e.i(271645),p=e.i(647776),x=e.i(948812),b=e.i(356505),j=e.i(929592),f=e.i(487486),g=e.i(519455),y=e.i(515288),w=e.i(755146),R=e.i(82612),v=e.i(337355),N=e.i(987968),k=e.i(784774),S=e.i(520133),I=e.i(637611),C=e.i(940276);function T(e){return`${e.codebaseRepositoryId}:${e.id}`}function E(e){let t=new URLSearchParams(window.location.search);e?t.set("issue",e):t.delete("issue");let s=t.toString();window.history.pushState(null,"",`${window.location.pathname}${s?`?${s}`:""}`)}function D({runs:e,expandedRuns:a,jobStates:i,onToggleRun:l,onLoadJobs:o,onRunRetried:d,onJobRetried:m,onError:b}){let j=(0,u.useTranslations)("actionsPage"),w=(0,u.useTranslations)("pullRequests"),R=(0,c.useLocale)(),v=(0,h.useMemo)(()=>{let t=new Map,s=new Intl.DateTimeFormat(R,{dateStyle:"full"});for(let r of e){let e=new Date(r.createdAt),n=`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,a=t.get(n)??{label:s.format(e),items:[]};a.items.push(r),t.set(n,a)}return[...t.entries()].map(([e,t])=>({key:e,...t}))},[R,e]);return(0,t.jsx)(y.Card,{className:"gap-0 py-0",children:(0,t.jsxs)(k.Table,{children:[(0,t.jsx)(k.TableHeader,{children:(0,t.jsxs)(k.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(k.TableHead,{className:"w-10",children:(0,t.jsx)("span",{className:"sr-only",children:j("expand")})}),(0,t.jsxs)(k.TableHead,{children:[j("workflowRun")," / ",j("repository")]}),(0,t.jsx)(k.TableHead,{children:j("trigger")}),(0,t.jsx)(k.TableHead,{children:j("status")}),(0,t.jsx)(k.TableHead,{children:j("pullRequest")}),(0,t.jsx)(k.TableHead,{children:j("ticket")}),(0,t.jsx)(k.TableHead,{children:j("started")}),(0,t.jsx)(k.TableHead,{className:"text-right",children:j("actions")})]})}),(0,t.jsx)(k.TableBody,{children:v.map(e=>(0,t.jsxs)(h.Fragment,{children:[(0,t.jsx)(k.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(k.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:8,children:e.label})}),e.items.map(e=>{let c=T(e),u=a.has(c),y=i[c];return(0,t.jsxs)(h.Fragment,{children:[(0,t.jsxs)(k.TableRow,{className:"cursor-pointer",onClick:t=>{(function(e){if(e.defaultPrevented||0!==e.button)return!1;let t=e.target;return t instanceof Element&&!!e.currentTarget.contains(t)&&!t.closest("a, button, input, select, textarea, [role='button'], [role='link'], [role='menuitem']")})(t)&&l(e)},children:[(0,t.jsx)(k.TableCell,{className:"pr-0",children:(0,t.jsx)(g.Button,{"aria-expanded":u,"aria-label":j(u?"hideJobs":"showJobs",{run:e.displayTitle}),onClick:()=>l(e),size:"icon-sm",variant:"ghost",children:u?(0,t.jsx)(s.ChevronDown,{}):(0,t.jsx)(r.ChevronRight,{})})}),(0,t.jsx)(k.TableCell,{className:"min-w-72 whitespace-normal",children:(0,t.jsxs)("a",{className:"block rounded-md px-2 py-1.5 transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1 font-medium text-primary",children:[e.name,(0,t.jsx)(n.ExternalLink,{className:"size-3.5 shrink-0"})]}),(0,t.jsx)("span",{className:"mt-0.5 block text-sm text-foreground",children:e.displayTitle}),(0,t.jsxs)("span",{className:"mt-1 block text-xs text-muted-foreground",children:[e.repositoryNameWithOwner," ·"," ",j("runNumber",{number:e.runNumber}),e.runAttempt>1?` \xb7 ${j("attempt",{attempt:e.runAttempt})}`:""]})]})}),(0,t.jsxs)(k.TableCell,{className:"min-w-48 whitespace-normal",children:[(0,t.jsx)("p",{children:e.event}),(0,t.jsx)("p",{className:"mt-1 font-mono text-xs break-all text-muted-foreground",children:e.headBranch??e.headSha.slice(0,7)})]}),(0,t.jsx)(k.TableCell,{children:(0,t.jsx)(f.Badge,{className:(0,p.pipelineStateClass)(e.status),children:w(`pipelineStates.${e.status}`)})}),(0,t.jsx)(k.TableCell,{children:0===e.pullRequests.length?"—":(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.pullRequests.map(s=>(0,t.jsx)(f.Badge,{asChild:!0,className:"cursor-pointer hover:bg-muted/80",children:(0,t.jsxs)(S.Link,{href:(0,x.pullRequestDetailHref)({repositoryNameWithOwner:e.repositoryNameWithOwner,number:s.number}),children:["#",s.number]})},s.number))})}),(0,t.jsx)(k.TableCell,{children:e.jiraKey?(0,t.jsx)(f.Badge,{asChild:!0,className:"cursor-pointer hover:bg-primary/80",children:(0,t.jsx)("button",{onClick:()=>E(e.jiraKey),type:"button",children:e.jiraKey})}):"—"}),(0,t.jsx)(k.TableCell,{className:"text-muted-foreground",children:(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("time",{dateTime:e.startedAt,title:e.startedAt,children:function(e,t){let s=Math.round((Date.parse(e)-Date.now())/1e3),r=new Intl.RelativeTimeFormat(t,{numeric:"auto"});for(let[e,t]of[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]])if(Math.abs(s)>=t)return r.format(Math.round(s/t),e);return r.format(s,"second")}(e.startedAt,R)}),(0,t.jsx)("span",{className:"text-xs",children:j("duration",{duration:function(e){let t=Date.parse(e.startedAt),s="ACTION_REQUIRED"===e.status||"EXPECTED"===e.status||"IN_PROGRESS"===e.status||"PENDING"===e.status||"QUEUED"===e.status?Date.now():Date.parse(e.updatedAt);if(!Number.isFinite(t)||!Number.isFinite(s))return"—";let r=Math.max(0,Math.floor((s-t)/1e3)),n=Math.floor(r/3600),a=Math.floor(r%3600/60),i=r%60;return n>0?`${n}h${a>0?` ${a}m`:""}`:a>0?`${a}m${i>0?` ${i}s`:""}`:`${i}s`}(e)})})]})}),(0,t.jsx)(k.TableCell,{children:(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)($,{onError:b,onRetried:()=>d(e),run:e})})})]}),u&&(0,t.jsx)(k.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(k.TableCell,{className:"p-0",colSpan:8,children:(0,t.jsx)(A,{onError:b,onReload:()=>o(e),onRetried:t=>m(e,t),run:e,state:y})})})]},c)})]},e.key))})]})})}function $({run:e,onRetried:s,onError:r}){let l=(0,u.useTranslations)("actionsPage"),o=(0,u.useTranslations)("pullRequests"),[c,m]=(0,h.useState)(!1),p=async()=>{if(e.canRetry&&e.checkSuiteId){m(!0);try{await (0,I.controlPlaneRequest)(`mutation RetryGitHubPipeline(
|
|
2
|
+
$repositoryId: ID!
|
|
3
|
+
$checkSuiteId: ID!
|
|
4
|
+
) {
|
|
5
|
+
retryGitHubPipeline(
|
|
6
|
+
repositoryId: $repositoryId
|
|
7
|
+
checkSuiteId: $checkSuiteId
|
|
8
|
+
) { id }
|
|
9
|
+
}`,{repositoryId:e.repositoryGithubId,checkSuiteId:e.checkSuiteId}),s(),r(null)}catch(e){r(e instanceof Error?e.message:String(e))}finally{m(!1)}}},x=e.retryUnavailableReason?o(`retryUnavailable.${e.retryUnavailableReason}`):void 0;return(0,t.jsxs)(w.DropdownMenu,{children:[(0,t.jsx)(w.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(g.Button,{"aria-label":`${l("actions")}: ${e.displayTitle}`,size:"icon-sm",variant:"outline",children:(0,t.jsx)(i.MoreHorizontal,{})})}),(0,t.jsxs)(w.DropdownMenuContent,{align:"end",className:"w-40",children:[(0,t.jsx)(w.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(n.ExternalLink,{}),l("view")]})}),e.worktreeId?(0,t.jsx)(w.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(S.Link,{href:(0,C.worktreeDetailHref)(e.worktreeId),children:[(0,t.jsx)(a.GitBranch,{}),l("worktree")]})}):(0,t.jsxs)(w.DropdownMenuItem,{disabled:!0,children:[(0,t.jsx)(a.GitBranch,{}),l("worktree")]}),(0,t.jsx)(w.DropdownMenuSeparator,{}),(0,t.jsxs)(w.DropdownMenuItem,{disabled:c||!e.canRetry||!e.checkSuiteId,onSelect:()=>void p(),title:x,children:[c?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(d.RotateCcw,{}),o(c?"retrying":"retry")]})]})]})}function A({run:e,state:s,onReload:r,onRetried:n,onError:a}){let i=(0,u.useTranslations)("actionsPage");return(0,t.jsxs)("div",{className:"border-l-2 border-muted-foreground/20 px-4 py-3",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:s?.jobs?i("jobCount",{count:s.jobs.length}):i("jobs")}),s?.loading&&!s.jobs?(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-3 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{})," ",i("loadingJobs")]}):s?.error?(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsxs)(j.AlertDescription,{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{children:s.error}),(0,t.jsxs)(g.Button,{onClick:r,size:"sm",variant:"outline",children:[(0,t.jsx)(o.RefreshCw,{})," ",i("retryLoad")]})]})}):s?.jobs?.length===0?(0,t.jsx)("p",{className:"px-2 py-3 text-sm text-muted-foreground",children:i("noJobs")}):s?.jobs?(0,t.jsx)("div",{className:"divide-y",children:s.jobs.map(s=>(0,t.jsx)(P,{checkSuiteId:e.checkSuiteId,job:s,onError:a,onRetried:()=>n(s.id),repositoryId:e.repositoryGithubId},s.id))}):null]})}function P({job:e,repositoryId:a,checkSuiteId:i,onRetried:l,onError:o}){let c=(0,u.useTranslations)("actionsPage"),m=(0,u.useTranslations)("pullRequests"),[x,b]=(0,h.useState)(!1),[j,y]=(0,h.useState)(!1),w=async t=>{if(t.stopPropagation(),e.canRetry&&i){y(!0);try{await (0,I.controlPlaneRequest)(`mutation RetryGitHubWorkflowJob(
|
|
10
|
+
$repositoryId: ID!
|
|
11
|
+
$checkSuiteId: ID!
|
|
12
|
+
$jobId: ID!
|
|
13
|
+
) {
|
|
14
|
+
retryGitHubWorkflowJob(
|
|
15
|
+
repositoryId: $repositoryId
|
|
16
|
+
checkSuiteId: $checkSuiteId
|
|
17
|
+
jobId: $jobId
|
|
18
|
+
)
|
|
19
|
+
}`,{repositoryId:a,checkSuiteId:i,jobId:e.id}),l(),o(null)}catch(e){o(e instanceof Error?e.message:String(e))}finally{y(!1)}}},R=e.retryUnavailableReason?m(`retryUnavailable.${e.retryUnavailableReason}`):void 0;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[(0,t.jsxs)("button",{"aria-expanded":x,"aria-label":c(x?"hideJobSteps":"showJobSteps",{job:e.name}),className:"flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-2 text-left hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>b(e=>!e),type:"button",children:[x?(0,t.jsx)(s.ChevronDown,{className:"size-4 shrink-0"}):(0,t.jsx)(r.ChevronRight,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:e.name}),(0,t.jsx)(f.Badge,{className:(0,p.pipelineStateClass)(e.status),children:m(`pipelineStates.${e.status}`)})]}),e.url?(0,t.jsx)(g.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[c("view"),(0,t.jsx)(n.ExternalLink,{})]})}):(0,t.jsxs)(g.Button,{disabled:!0,size:"sm",variant:"outline",children:[c("view"),(0,t.jsx)(n.ExternalLink,{})]}),(0,t.jsxs)(g.Button,{"aria-label":c("retryJob",{job:e.name}),disabled:j||!e.canRetry||!i,onClick:e=>void w(e),size:"sm",title:R,variant:"outline",children:[j?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(d.RotateCcw,{}),j?m("retrying"):m("retry")]})]}),x&&(0,t.jsxs)("div",{className:"mb-3 w-full rounded-md border bg-background p-3",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:c("steps")}),0===e.steps.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c("noSteps")}):(0,t.jsx)("ol",{className:"space-y-2",children:e.steps.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-3 text-sm",children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-full bg-muted text-[11px] text-muted-foreground",children:e.number}),(0,t.jsx)("span",{className:"min-w-0 flex-1",children:e.name}),(0,t.jsx)(f.Badge,{className:(0,p.pipelineStateClass)(e.status),children:m(`pipelineStates.${e.status}`)})]},e.number))})]})]})}e.s(["ActionsPage",0,function(){let e=(0,u.useTranslations)("actionsPage"),s=(0,m.useSearchParams)().get("issue"),[r,n]=(0,h.useState)(null),[a,i]=(0,h.useState)(!0),[d,c]=(0,h.useState)([]),[p,x]=(0,h.useState)([]),[f,y]=(0,h.useState)([]),[w,k]=(0,h.useState)("all"),[C,$]=(0,h.useState)(null),[A,P]=(0,h.useState)(!1),[M,U]=(0,h.useState)(!1),[H,O]=(0,h.useState)(!1),[B,q]=(0,h.useState)(null),[L,W]=(0,h.useState)(null),[J,G]=(0,h.useState)(new Set),[z,F]=(0,h.useState)({}),_=(0,h.useRef)(null),K=(0,h.useRef)(0),Q=(0,h.useRef)(null),V=(0,h.useCallback)(async(e,t={append:!1})=>{let s=t.append?K.current:++K.current;if(t.append){if(!t.cursor||Q.current===s)return;Q.current=s,O(!0),q(null)}else Q.current=null,U(!0),O(!1),q(null),c([]),y([]),$(null),P(!1),G(new Set),F({});try{let r=await (0,I.controlPlaneRequest)(`query GitHubActionsWorkflowRuns(
|
|
20
|
+
$codebaseRepositoryId: ID
|
|
21
|
+
$first: Int!
|
|
22
|
+
$after: String
|
|
23
|
+
) {
|
|
24
|
+
githubActionsWorkflowRuns(
|
|
25
|
+
codebaseRepositoryId: $codebaseRepositoryId
|
|
26
|
+
first: $first
|
|
27
|
+
after: $after
|
|
28
|
+
) {
|
|
29
|
+
items { id repositoryGithubId codebaseRepositoryId repositoryNameWithOwner repositoryUrl name displayTitle runNumber runAttempt event status url headBranch headSha checkSuiteId canRetry retryUnavailableReason pullRequests { number url } jiraKey worktreeId startedAt createdAt updatedAt }
|
|
30
|
+
repositories { id nameWithOwner url }
|
|
31
|
+
repositoryErrors { codebaseRepositoryId nameWithOwner message }
|
|
32
|
+
hasNextPage
|
|
33
|
+
endCursor
|
|
34
|
+
}
|
|
35
|
+
}`,{codebaseRepositoryId:"all"===e?null:e,first:25,after:t.cursor??null});if(s!==K.current)return;let n=r.githubActionsWorkflowRuns;c(e=>t.append?[...e,...n.items.filter(t=>!e.some(e=>T(e)===T(t)))]:n.items),x(n.repositories),y(n.repositoryErrors),$(n.endCursor),P(n.hasNextPage),W(null),q(null)}catch(r){if(s!==K.current)return;let e=r instanceof Error?r.message:String(r);t.append?q(e):W(e)}finally{t.append?Q.current===s&&(Q.current=null,O(!1)):s===K.current&&U(!1)}},[]);(0,h.useEffect)(()=>{let e=window.setTimeout(async()=>{try{let e=await (0,I.controlPlaneRequest)("query GitHubActionsConfiguration { githubSettings { tokenConfigured defaultJiraKeyRegex updatedAt } }");n(e.githubSettings),W(null),e.githubSettings.tokenConfigured&&await V("all")}catch(e){W(e instanceof Error?e.message:String(e))}finally{i(!1)}},0);return()=>window.clearTimeout(e)},[V]),(0,h.useEffect)(()=>{if(!r?.tokenConfigured||!A||!C||M||H||B)return;let e=_.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&V(w,{append:!0,cursor:C})},{rootMargin:"400px 0px"});return t.observe(e),()=>t.disconnect()},[C,A,V,M,H,B,w,r?.tokenConfigured]);let X=(0,h.useCallback)(async e=>{let t=T(e);F(e=>({...e,[t]:{loading:!0,error:null,jobs:e[t]?.jobs??null}}));try{let s=await (0,I.controlPlaneRequest)(`query GitHubActionsWorkflowJobs(
|
|
36
|
+
$codebaseRepositoryId: ID!
|
|
37
|
+
$workflowRunId: ID!
|
|
38
|
+
) {
|
|
39
|
+
githubActionsWorkflowJobs(
|
|
40
|
+
codebaseRepositoryId: $codebaseRepositoryId
|
|
41
|
+
workflowRunId: $workflowRunId
|
|
42
|
+
) { id name status url canRetry retryUnavailableReason steps { number name status } }
|
|
43
|
+
}`,{codebaseRepositoryId:e.codebaseRepositoryId,workflowRunId:e.id});F(e=>({...e,[t]:{loading:!1,error:null,jobs:s.githubActionsWorkflowJobs}}))}catch(e){F(s=>({...s,[t]:{loading:!1,error:e instanceof Error?e.message:String(e),jobs:s[t]?.jobs??null}}))}},[]),Y=[{value:"all",label:e("allRepositories"),keywords:e("allRepositories")},...p.map(e=>({value:e.id,label:e.nameWithOwner,keywords:e.nameWithOwner}))];return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)(g.Button,{disabled:!r?.tokenConfigured||M,onClick:()=>void V(w),variant:"outline",children:[(0,t.jsx)(o.RefreshCw,{className:M?"animate-spin":void 0}),e("refresh")]})]}),L&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:L})}),a?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),e("loadingConfiguration")]}):r?.tokenConfigured?(0,t.jsxs)(t.Fragment,{children:[p.length>0&&(0,t.jsx)("div",{className:"max-w-lg",children:(0,t.jsx)(v.SearchableSelect,{ariaLabel:e("repositoryFilter"),emptyMessage:e("noRepositoryMatches"),onValueChange:e=>{k(e),V(e)},options:Y,placeholder:e("repositoryFilter"),searchPlaceholder:e("searchRepositories"),value:w})}),f.map(e=>(0,t.jsx)(j.Alert,{children:(0,t.jsxs)(j.AlertDescription,{children:[(0,t.jsxs)("span",{className:"font-medium",children:[e.nameWithOwner,":"]})," ",e.message]})},e.codebaseRepositoryId)),M&&0===d.length?(0,t.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),e("loadingRuns")]}):0===p.length?(0,t.jsx)(R.Empty,{className:"border py-12",children:(0,t.jsxs)(R.EmptyHeader,{children:[(0,t.jsx)(R.EmptyTitle,{children:e("noCodebases")}),(0,t.jsx)(R.EmptyDescription,{children:e("noCodebasesDescription")})]})}):0===d.length?(0,t.jsx)(R.Empty,{className:"border py-12",children:(0,t.jsxs)(R.EmptyHeader,{children:[(0,t.jsx)(R.EmptyTitle,{children:e("empty")}),(0,t.jsx)(R.EmptyDescription,{children:e("emptyDescription")})]})}):(0,t.jsx)(D,{expandedRuns:J,jobStates:z,onError:W,onJobRetried:(e,t)=>{let s=T(e);c(e=>e.map(e=>T(e)===s?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"}:e)),F(e=>{let r=e[s];return r?.jobs?{...e,[s]:{...r,jobs:r.jobs.map(e=>e.id===t?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",steps:[]}:{...e,canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"})}}:e})},onLoadJobs:X,onRunRetried:e=>{let t=T(e);c(e=>e.map(e=>T(e)===t?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"}:e)),F(e=>{let s={...e};return delete s[t],s}),G(e=>{let s=new Set(e);return s.delete(t),s})},onToggleRun:e=>{let t=T(e);G(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s}),J.has(t)||z[t]||X(e)},runs:d}),B&&A?(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsxs)(j.AlertDescription,{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{children:B}),(0,t.jsxs)(g.Button,{disabled:H||!C,onClick:()=>void V(w,{append:!0,cursor:C}),size:"sm",variant:"outline",children:[(0,t.jsx)(o.RefreshCw,{})," ",e("retryLoad")]})]})}):A?(0,t.jsx)("div",{className:"flex min-h-10 items-center justify-center gap-2 text-sm text-muted-foreground",ref:_,role:"status",children:H&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Spinner,{})," ",e("loadingMore")]})}):null]}):(0,t.jsxs)(R.Empty,{className:"border py-12",children:[(0,t.jsxs)(R.EmptyHeader,{children:[(0,t.jsx)(R.EmptyMedia,{variant:"icon",children:(0,t.jsx)(l.PlayCircle,{})}),(0,t.jsx)(R.EmptyTitle,{children:e("credentialsRequired")}),(0,t.jsx)(R.EmptyDescription,{children:e("credentialsRequiredDescription")})]}),(0,t.jsx)(g.Button,{asChild:!0,className:"mt-4",children:(0,t.jsx)(S.Link,{href:"/settings",children:e("openSettings")})})]}),(0,t.jsx)(b.JiraTicketDrawer,{issueKey:s,onClose:()=>E(null)})]})}])}]);
|