@ai-development-environment/server 0.0.28 → 0.0.30
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/migrations/20260719010000_add_build_reports/migration.sql +29 -0
- package/prisma-runtime/prisma/schema.prisma +24 -0
- package/standalone/.next/BUILD_ID +1 -1
- package/standalone/.next/app-path-routes-manifest.json +2 -0
- package/standalone/.next/build-manifest.json +6 -6
- package/standalone/.next/prerender-manifest.json +3 -3
- package/standalone/.next/routes-manifest.json +17 -0
- package/standalone/.next/server/app/[locale]/actions/page/build-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/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page/app-paths-manifest.json +3 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page/build-manifest.json +16 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page/next-font-manifest.json +11 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page/react-loadable-manifest.json +1 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page/server-reference-manifest.json +4 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js +16 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.map +5 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +3 -0
- package/standalone/.next/server/app/[locale]/builds/[buildId]/page/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/comments/page/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/page/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/page/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/tools/page/build-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/usage/page/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- 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/build-manifest.json +3 -3
- 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/page/build-manifest.json +3 -3
- 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/page/build-manifest.json +3 -3
- 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/app/api/worktrees/[worktreeId]/diff-image/route/app-paths-manifest.json +3 -0
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route/build-manifest.json +9 -0
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route/server-reference-manifest.json +4 -0
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +10 -0
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.map +5 -0
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -0
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route_client-reference-manifest.js +3 -0
- package/standalone/.next/server/app-paths-manifest.json +2 -0
- package/standalone/.next/server/chunks/1oeh_server_app_api_worktrees_[worktreeId]_diff-image_route_actions_0nie5n3.js +3 -0
- 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]__1mgcft0._.js → [root-of-the-server]__09v6swg._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0h0mvv8._.js → [root-of-the-server]__0aiyd05._.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]__0e1fqyr._.js +3 -0
- 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]__0rwpsai._.js +3 -0
- 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]__0zyqmd4._.js +122 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1-z6lg_._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0kxltc8._.js → [root-of-the-server]__15_clsj._.js} +1 -1
- 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]__1ajaiy1._.js +3 -0
- 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]__0c02fce._.js → [root-of-the-server]__1oa-sy6._.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]__1vxtcsq._.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]__210dhdj._.js +3 -0
- package/standalone/.next/server/chunks/_0exkna-._.js +164 -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 +234 -78
- package/standalone/.next/server/chunks/_0w2eghf._.js +164 -8
- package/standalone/.next/server/chunks/_152rnkf._.js +17 -17
- package/standalone/.next/server/chunks/{_1_g2i-t._.js → _16x77b_._.js} +27 -27
- package/standalone/.next/server/chunks/_1dbqy8c._.js +17 -17
- package/standalone/.next/server/chunks/_1vrixpc._.js +17 -17
- package/standalone/.next/server/chunks/_1yfz-9u._.js +17 -17
- package/standalone/.next/server/chunks/src_0o4-snj._.js +1 -1
- package/standalone/.next/server/chunks/ssr/1oeh_server_app_[locale]_builds_[buildId]_coverage_page_actions_20i_0zd.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__08bbv6z._.js +9 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ckj6wg._.js +13 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0eit075._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0tsac-e._.js +15 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0uo4dhz._.js +11 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__10-ftkj._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__15v1geo._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qm_j4s._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1s6_fta._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0-o77zz._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_00m30gw._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_03961l6._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_08q5hnx._.js +35 -0
- package/standalone/.next/server/chunks/ssr/_093--4s._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_1kaz2gq._.js → _09lh67h._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0a1ligo._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_1h3p6oi._.js → _0cw_tqx._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_0hoc_fd._.js → _0ddgabq._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0dq-84j._.js +22 -0
- package/standalone/.next/server/chunks/ssr/_0dy1ovj._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0ezo890._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0id1774._.js +13 -0
- package/standalone/.next/server/chunks/ssr/_0j48up8._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0nhtqty._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0oh246z._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_1r9ohdr._.js → _0q8sy0w._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0qra30j._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0t2jwg3._.js +109 -0
- package/standalone/.next/server/chunks/ssr/{_13jl9nw._.js → _0ufkrvm._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_0sp1ojg._.js → _0vjihfb._.js} +26 -2
- package/standalone/.next/server/chunks/ssr/_0xh-lyy._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1-2qcpf._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_15erjna._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_17a3xuq._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_17p59oz._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1bzibio._.js +109 -0
- package/standalone/.next/server/chunks/ssr/_1c2fde9._.js +11 -0
- package/standalone/.next/server/chunks/ssr/_1ekznx8._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1k1tyz4._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_1dsdn7w._.js → _1n9rteq._.js} +8 -2
- package/standalone/.next/server/chunks/ssr/_1och_zk._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1tpguta._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1v1lo7c._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1vv-dg-._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1uzalot.js +4 -0
- 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 +15 -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_builds_coverage-report-page_tsx_1nhwba1._.js +11 -0
- package/standalone/.next/server/chunks/ssr/src_components_codebases_repository-detail-page_tsx_20_7wk_._.js +5 -5
- 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_jira_cache-page_tsx_1znt1yl._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_skills_skill-sync-page_tsx_15sidhb._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_skills_skills-page_tsx_0o1nlbg._.js +3 -3
- 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 +21 -4
- package/standalone/.next/server/functions-config-manifest.json +3 -0
- package/standalone/.next/server/middleware-build-manifest.js +6 -6
- package/standalone/.next/server/next-font-manifest.js +1 -1
- package/standalone/.next/server/next-font-manifest.json +4 -0
- 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/041g9raf1naqv.js +48 -0
- package/standalone/.next/static/chunks/08ujwkhzkokhf.js +1 -0
- package/standalone/.next/static/chunks/0a82bgw37ev__.js +33 -0
- package/standalone/.next/static/chunks/0cw4z7_m01m5f.js +31 -0
- package/standalone/.next/static/chunks/0emxr8tr7kji0.js +33 -0
- package/standalone/.next/static/chunks/0h8zu6aywqh1-.js +27 -0
- package/standalone/.next/static/chunks/0ng892ycfzv2q.js +1 -0
- package/standalone/.next/static/chunks/0tgtji0dbbefa.js +107 -0
- package/standalone/.next/static/chunks/15_8kla24ff9f.js +1 -0
- package/standalone/.next/static/chunks/16-l4kp9o217d.js +1 -0
- package/standalone/.next/static/chunks/1c7ci5ai5qyfo.js +1 -0
- package/standalone/.next/static/chunks/1egccqmgk3kbi.js +1 -0
- package/standalone/.next/static/chunks/1gwvywh0e6i17.js +3 -0
- package/standalone/.next/static/chunks/1hehq94hslvbl.js +7 -0
- package/standalone/.next/static/chunks/1k5cw41bd4e5r.js +51 -0
- package/standalone/.next/static/chunks/{1rivge68m21sm.js → 1mprxk0uebv70.js} +10 -10
- package/standalone/.next/static/chunks/1rus13s58mkxy.js +1 -0
- package/standalone/.next/static/chunks/{2fzxwi39odugq.js → 1rwqeg_l_plzt.js} +1 -1
- package/standalone/.next/static/chunks/1u_jwc-bo10k3.js +1 -0
- package/standalone/.next/static/chunks/1ut0xkaqsykm4.js +7 -0
- package/standalone/.next/static/chunks/1w_zvfx_jdyv_.js +29 -0
- package/standalone/.next/static/chunks/2-wrd12dmwbo-.js +1 -0
- package/standalone/.next/static/chunks/23kut2_l2y2-w.js +9 -0
- package/standalone/.next/static/chunks/23xyv764-kx8z.js +38 -0
- package/standalone/.next/static/chunks/{1wihkuyju-wa-.js → 25haryfoj4x3h.js} +1 -1
- package/standalone/.next/static/chunks/{0fr0zp4cwlyrr.js → 28ljy-uz6n_g9.js} +2 -2
- package/standalone/.next/static/chunks/29zl8lgsa28tb.js +1 -0
- package/standalone/.next/static/chunks/{0w8rd_g6hnvmz.js → 2__bi79el56lb.js} +5 -5
- package/standalone/.next/static/chunks/2aq80hyo4l8a2.js +7 -0
- package/standalone/.next/static/chunks/{24a_ux27e8jj4.js → 2l_wayk-ioguc.js} +1 -1
- package/standalone/.next/static/chunks/2swvzbwm_dr9y.js +1 -0
- package/standalone/.next/static/chunks/{0m26h4h36cb_0.js → 3120xcqaqci82.js} +1 -1
- package/standalone/.next/static/chunks/315cis1es_5t3.js +41 -0
- package/standalone/.next/static/chunks/321feys_9vp2v.js +33 -0
- package/standalone/.next/static/chunks/{0d-e51sawr2y8.js → 34oyci46fsc5w.js} +1 -1
- package/standalone/.next/static/chunks/{1nqkxeuycfmrt.js → 36_1bjzx79v18.js} +5 -5
- package/standalone/.next/static/chunks/37mczlawlcx5l.js +1 -0
- package/standalone/.next/static/chunks/3ajj69p_sj615.js +1 -0
- package/standalone/.next/static/chunks/{1tcqtaedz7922.js → 3d4ijy7zglgv5.js} +1 -1
- package/standalone/.next/static/chunks/3ir4b8po439x7.js +40 -0
- package/standalone/.next/static/chunks/3p7wbgo7qd6_m.css +1 -0
- package/standalone/.next/static/chunks/3q0q6_ntq8aa5.js +51 -0
- package/standalone/.next/static/chunks/3r-6igcofcwxj.js +107 -0
- package/standalone/.next/static/chunks/{0m--47yk9j-ec.js → 3tycetq7o8g3h.js} +1 -1
- package/standalone/.next/static/chunks/3vg6y29m047x9.js +31 -0
- package/standalone/.next/static/chunks/{0biu8z1f8c42u.js → 40ovzayigkz_-.js} +1 -1
- package/standalone/.next/static/chunks/41wq-96yyl0uw.js +1 -0
- package/standalone/.next/static/chunks/44xu63hsh11xp.js +1 -0
- package/standalone/.next/static/chunks/{turbopack-1rw7om86c18dg.js → turbopack-1v9ogj_5hv56l.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 +222 -8
- package/standalone/src/services/builds/builds.service.ts +514 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0qjhcow._.js +0 -122
- 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/[root-of-the-server]__06f05jg._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oj1os4._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1349-us._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1osx7qy._.js +0 -27
- 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/_0bvpmhm._.js +0 -97
- package/standalone/.next/server/chunks/ssr/_0ndnmkz._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0pe56xv._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0pu14lm._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1-1mnp6._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1-7r8vu._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_10evhql._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_142x9wn._.js +0 -22
- package/standalone/.next/server/chunks/ssr/_1_ta7g1._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1eol9we._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1ey5mmy._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1fdyu2w._.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/_1lseili._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1oh35yj._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1vhf014._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1x13g5y._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1yzb5-u._.js +0 -11
- package/standalone/.next/server/chunks/ssr/_1za3z6k._.js +0 -97
- 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/091l-ij_cv0b6.js +0 -41
- package/standalone/.next/static/chunks/0a3s519wuzjet.js +0 -1
- package/standalone/.next/static/chunks/0j5n6p9i-vyzo.js +0 -9
- package/standalone/.next/static/chunks/0sp_r-c6262te.js +0 -3
- package/standalone/.next/static/chunks/0weklluydd2mf.js +0 -23
- package/standalone/.next/static/chunks/1eehbcjby4go8.js +0 -95
- package/standalone/.next/static/chunks/1joeb4m-mmn69.js +0 -7
- package/standalone/.next/static/chunks/1xjd6ye7mxyf5.js +0 -7
- package/standalone/.next/static/chunks/23_75iur2dq8p.js +0 -1
- package/standalone/.next/static/chunks/24sd_kmnetibb.js +0 -1
- package/standalone/.next/static/chunks/278dxvyf095b_.js +0 -55
- package/standalone/.next/static/chunks/27k7_zc-iuppd.js +0 -1
- package/standalone/.next/static/chunks/2baaj4mpr6i-i.js +0 -1
- package/standalone/.next/static/chunks/2cj2ndz_e0hbz.js +0 -1
- package/standalone/.next/static/chunks/2dwchs_6y_o5f.js +0 -1
- package/standalone/.next/static/chunks/2hv6pkoloju0g.js +0 -33
- package/standalone/.next/static/chunks/2lgsgstcvc7uk.css +0 -1
- package/standalone/.next/static/chunks/2sqprazdqp7f7.js +0 -1
- package/standalone/.next/static/chunks/32agjzrkphjrl.js +0 -9
- package/standalone/.next/static/chunks/33y_b6dqfx3tk.js +0 -1
- 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/3h1pxh5fd97ym.js +0 -27
- package/standalone/.next/static/chunks/3jbfibit05k5o.js +0 -29
- package/standalone/.next/static/chunks/3oyhf7rk2xr_g.js +0 -1
- package/standalone/.next/static/chunks/3q7vh58-5dkv2.js +0 -25
- package/standalone/.next/static/chunks/3td_-1s61zkpa.js +0 -38
- package/standalone/.next/static/chunks/3xkoiasuwi3ms.js +0 -95
- package/standalone/.next/static/chunks/41s57pssydrel.js +0 -43
- package/standalone/.next/static/chunks/42flok13o-l0b.js +0 -1
- package/standalone/.next/static/chunks/43gw6_6hbw18w.js +0 -51
- /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → ePu377E66yy0icQx3ykQJ}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → ePu377E66yy0icQx3ykQJ}/_clientMiddlewareManifest.js +0 -0
- /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → ePu377E66yy0icQx3ykQJ}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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),a=e.i(271645),r=e.i(30030);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return a.useCallback(function(...e){return t=>{let a=!1,r=e.map(e=>{let r=n(e,t);return a||"function"!=typeof r||(a=!0),r});if(a)return()=>{for(let t=0;t<r.length;t++){let a=r[t];"function"==typeof a?a():n(e[t],null)}}}}(...e),e)}var s=e.i(326999);"u">typeof window&&window.document&&window.document.createElement;var l="AlertDialog",[o,d]=(0,r.createContextScope)(l,[s.createDialogScope]),c=(0,s.createDialogScope)(),u=e=>{let{__scopeAlertDialog:a,...r}=e,n=c(a);return(0,t.jsx)(s.Root,{...n,...r,modal:!0})};u.displayName=l;var p=a.forwardRef((e,a)=>{let{__scopeAlertDialog:r,...n}=e,i=c(r);return(0,t.jsx)(s.Trigger,{...i,...n,ref:a})});p.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:a,...r}=e,n=c(a);return(0,t.jsx)(s.Portal,{...n,...r})};h.displayName="AlertDialogPortal";var m=a.forwardRef((e,a)=>{let{__scopeAlertDialog:r,...n}=e,i=c(r);return(0,t.jsx)(s.Overlay,{...i,...n,ref:a})});m.displayName="AlertDialogOverlay";var f="AlertDialogContent",[x,g]=o(f),v=a.forwardRef((e,r)=>{let{__scopeAlertDialog:n,children:l,...o}=e,d=c(n),u=i(r,a.useRef(null)),p=a.useRef(null);return(0,t.jsx)(x,{scope:n,cancelRef:p,children:(0,t.jsx)(s.Content,{role:"alertdialog",...d,...o,ref:u,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),!1===a||!r||!r.defaultPrevented)return t?.(r)}}(o.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:l})})});v.displayName=f;var b=a.forwardRef((e,a)=>{let{__scopeAlertDialog:r,...n}=e,i=c(r);return(0,t.jsx)(s.Title,{...i,...n,ref:a})});b.displayName="AlertDialogTitle";var y=a.forwardRef((e,a)=>{let{__scopeAlertDialog:r,...n}=e,i=c(r);return(0,t.jsx)(s.Description,{...i,...n,ref:a})});y.displayName="AlertDialogDescription";var E=a.forwardRef((e,a)=>{let{__scopeAlertDialog:r,...n}=e,i=c(r);return(0,t.jsx)(s.Close,{...i,...n,ref:a})});E.displayName="AlertDialogAction";var j="AlertDialogCancel",C=a.forwardRef((e,a)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:l}=g(j,r),o=c(r),d=i(a,l);return(0,t.jsx)(s.Close,{...o,...n,ref:d})});C.displayName=j,e.s(["Action",0,E,"AlertDialog",0,u,"AlertDialogAction",0,E,"AlertDialogCancel",0,C,"AlertDialogContent",0,v,"AlertDialogDescription",0,y,"AlertDialogOverlay",0,m,"AlertDialogPortal",0,h,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,p,"Cancel",0,C,"Content",0,v,"Description",0,y,"Overlay",0,m,"Portal",0,h,"Root",0,u,"Title",0,b,"Trigger",0,p,"createAlertDialogScope",0,d],691162);var N=e.i(691162),N=N,S=e.i(975157),_=e.i(519455);function A({...e}){return(0,t.jsx)(N.Root,{"data-slot":"alert-dialog",...e})}function D({...e}){return(0,t.jsx)(N.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function R({...e}){return(0,t.jsx)(N.Portal,{"data-slot":"alert-dialog-portal",...e})}function w({className:e,...a}){return(0,t.jsx)(N.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,S.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function I({className:e,size:a="default",...r}){return(0,t.jsxs)(R,{children:[(0,t.jsx)(w,{}),(0,t.jsx)(N.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,S.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})]})}function O({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,S.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function T({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,S.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function k({className:e,...a}){return(0,t.jsx)(N.Title,{"data-slot":"alert-dialog-title",className:(0,S.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function B({className:e,...a}){return(0,t.jsx)(N.Description,{"data-slot":"alert-dialog-description",className:(0,S.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function L({className:e,variant:a="default",size:r="default",...n}){return(0,t.jsx)(_.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(N.Action,{"data-slot":"alert-dialog-action",className:(0,S.cn)(e),...n})})}function F({className:e,variant:a="outline",size:r="default",...n}){return(0,t.jsx)(_.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(N.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,S.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:n,onOpenChange:i,open:s,title:l,trigger:o}){return(0,t.jsxs)(A,{onOpenChange:i,open:s,children:[o&&(0,t.jsx)(D,{asChild:!0,children:o}),(0,t.jsxs)(I,{children:[(0,t.jsxs)(O,{children:[(0,t.jsx)(k,{children:l}),(0,t.jsx)(B,{children:r})]}),(0,t.jsxs)(T,{children:[(0,t.jsx)(F,{children:a}),(0,t.jsx)(L,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let n=(0,a.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,r.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...a})},"EmptyDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,r.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})},"EmptyHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,r.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,r.cn)(n({variant:a,className:e})),...i})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,r.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},59497,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return a.useCallback(function(...e){return t=>{let a=!1,n=e.map(e=>{let n=r(e,t);return a||"function"!=typeof n||(a=!0),n});if(a)return()=>{for(let t=0;t<n.length;t++){let a=n[t];"function"==typeof a?a():r(e[t],null)}}}}(...e),e)}var i=e.i(30030);function s(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),!1===a||!r||!r.defaultPrevented)return t?.(r)}}"u">typeof window&&window.document&&window.document.createElement;var l=globalThis?.document?a.useLayoutEffect:()=>{};a[" useEffectEvent ".trim().toString()],a[" useInsertionEffect ".trim().toString()];var o=a[" useInsertionEffect ".trim().toString()]||l;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"),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 f=a[" use ".trim().toString()],x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var i;let s,l=(i=`Primitive.${r}`,(s=a.forwardRef((e,t)=>{var r;let s,l,{children:o,...d}=e,c=null,u=!1,h=[];m(o)&&"function"==typeof f&&(o=f(o._payload)),a.Children.forEach(o,e=>{var t;if(t=e,a.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;m(t)&&"function"==typeof f&&(t=f(t._payload)),c=((e,t)=>{if("child"in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null})(e,t),h.push(c?.props?.children)}else h.push(e)}),c?c=a.cloneElement(c,void 0,h):!u&&1===a.Children.count(o)&&a.isValidElement(o)&&(c=o);let x=c?(r=c,(l=(s=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?r.ref:(l=(s=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,g=n(t,x);if(!c){if(o||0===o){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 o}let v=function(e,t){let a={...t};for(let r in t){let n=e[r],i=t[r];/^on[A-Z]/.test(r)?n&&i?a[r]=(...e)=>{let t=i(...e);return n(...e),t}:n&&(a[r]=n):"style"===r?a[r]={...n,...i}:"className"===r&&(a[r]=[n,i].filter(Boolean).join(" "))}return{...e,...a}}(d,c.props??{});return c.type!==a.Fragment&&(v.ref=t?g:x),a.cloneElement(c,v)})).displayName=`${i}.Slot`,s),o=a.forwardRef((e,a)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(n?l:r,{...i,ref:a})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),g="Checkbox",[v,b]=(0,i.createContextScope)(g),[y,E]=v(g);function j(e){let{__scopeCheckbox:r,checked:n,children:i,defaultChecked:s,disabled:l,form:d,name:c,onCheckedChange:u,required:p,value:h="on",internal_do_not_use_render:m}=e,[f,x]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,s,l]=function({defaultProp:e,onChange:t}){let[r,n]=a.useState(e),i=a.useRef(r),s=a.useRef(t);return o(()=>{s.current=t},[t]),a.useEffect(()=>{i.current!==r&&(s.current?.(r),i.current=r)},[r,i]),[r,n,s]}({defaultProp:t,onChange:r}),d=void 0!==e,c=d?e:i;{let t=a.useRef(void 0!==e);a.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,a.useCallback(t=>{if(d){let a="function"==typeof t?t(e):t;a!==e&&l.current?.(a)}else s(t)},[d,e,s,l])]}({prop:n,defaultProp:s??!1,onChange:u,caller:g}),[v,b]=a.useState(null),[E,j]=a.useState(null),C=a.useRef(!1),N=!v||!!d||!!v.closest("form"),S={checked:f,disabled:l,setChecked:x,control:v,setControl:b,name:c,form:d,value:h,hasConsumerStoppedPropagationRef:C,required:p,defaultChecked:!w(s)&&s,isFormControl:N,bubbleInput:E,setBubbleInput:j};return(0,t.jsx)(y,{scope:r,...S,children:"function"==typeof m?m(S):i})}var C="CheckboxTrigger",N=a.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:i,...l},o)=>{let{control:d,value:c,disabled:u,checked:p,required:h,setControl:m,setChecked:f,hasConsumerStoppedPropagationRef:g,isFormControl:v,bubbleInput:b}=E(C,e),y=n(o,m),j=a.useRef(p);return a.useEffect(()=>{let e=d?.form;if(e){let t=()=>f(j.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,f]),(0,t.jsx)(x.button,{type:"button",role:"checkbox","aria-checked":w(p)?"mixed":p,"aria-required":h,"data-state":I(p),"data-disabled":u?"":void 0,disabled:u,value:c,...l,ref:y,onKeyDown:s(r,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:s(i,e=>{f(e=>!!w(e)||!e),b&&v&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})})});N.displayName=C;var S=a.forwardRef((e,a)=>{let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:l,disabled:o,value:d,onCheckedChange:c,form:u,...p}=e;return(0,t.jsx)(j,{__scopeCheckbox:r,checked:i,defaultChecked:s,disabled:o,required:l,onCheckedChange:c,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N,{...p,ref:a,__scopeCheckbox:r}),e&&(0,t.jsx)(R,{__scopeCheckbox:r})]})})});S.displayName=g;var _="CheckboxIndicator",A=a.forwardRef((e,a)=>{let{__scopeCheckbox:r,forceMount:n,...i}=e,s=E(_,r);return(0,t.jsx)(u.Presence,{present:n||w(s.checked)||!0===s.checked,children:(0,t.jsx)(x.span,{"data-state":I(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a,style:{pointerEvents:"none",...e.style}})})});A.displayName=_;var D="CheckboxBubbleInput",R=a.forwardRef(({__scopeCheckbox:e,...r},i)=>{let{control:s,hasConsumerStoppedPropagationRef:l,checked:o,defaultChecked:u,required:p,disabled:h,name:m,value:f,form:g,bubbleInput:v,setBubbleInput:b}=E(D,e),y=n(i,b),j=(0,d.usePrevious)(o),C=(0,c.useSize)(s);a.useEffect(()=>{if(!v)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!l.current;if(j!==o&&e){let a=new Event("click",{bubbles:t});v.indeterminate=w(o),e.call(v,!w(o)&&o),v.dispatchEvent(a)}},[v,j,o,l]);let N=a.useRef(!w(o)&&o);return(0,t.jsx)(x.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??N.current,required:p,disabled:h,name:m,value:f,form:g,...r,tabIndex:-1,ref:y,style:{...r.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function w(e){return"indeterminate"===e}function I(e){return w(e)?"indeterminate":e?"checked":"unchecked"}R.displayName=D,e.s(["Checkbox",0,S,"CheckboxIndicator",0,A,"Indicator",0,A,"Root",0,S,"createCheckboxScope",0,b,"unstable_BubbleInput",0,R,"unstable_CheckboxBubbleInput",0,R,"unstable_CheckboxProvider",0,j,"unstable_CheckboxTrigger",0,N,"unstable_Provider",0,j,"unstable_Trigger",0,N],388474);var O=e.i(388474),O=O,T=e.i(975157),k=e.i(593698);e.s(["Checkbox",0,function({className:e,...a}){return(0,t.jsx)(O.Root,{"data-slot":"checkbox",className:(0,T.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),...a,children:(0,t.jsx)(O.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(k.CheckIcon,{})})})}],59497)},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)},986253,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},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)},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"])},421645,e=>{"use strict";e.s(["CODEBASE_BROWSE_JOB_KIND",0,"codebase.browse","CODEBASE_FETCH_JOB_KIND",0,"codebase.fetch","CODEBASE_GIT_INSPECT_JOB_KIND",0,"codebase.git.inspect","CODEBASE_GIT_OPERATION_JOB_KIND",0,"codebase.git.operation","CODEBASE_INSPECT_JOB_KIND",0,"codebase.inspect","CODEBASE_RECONCILE_EVENT_CAPABILITY",0,"codebase.reconcile.requested","CODEBASE_REFRESH_JOB_KIND",0,"codebase.refresh","DEFAULT_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,30,"MAX_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,3600,"MIN_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,10])},874801,e=>{"use strict";var t=e.i(843476),a=e.i(867927),r=e.i(456420);let n=(0,r.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),i=(0,r.default)("folder-check",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]]);var s=e.i(902434),s=s,l=e.i(948148),o=e.i(271645),d=e.i(929592),c=e.i(519455),u=e.i(59497),p=e.i(110204),h=e.i(987968),m=e.i(462777),f=e.i(637611);e.s(["AgentDirectoryBrowser",0,function({agentId:e,browseLabel:r,disabled:x=!1,initialPath:g=null,onPathChange:v,onSelect:b,selectIcon:y,selectLabel:E}){var j;let C=(0,l.useTranslations)("codebases"),[N,S]=(0,o.useState)(null),[_,A]=(0,o.useState)(!1),[D,R]=(0,o.useState)(!1),[w,I]=(0,o.useState)(null),O=(0,o.useRef)(0),T=(0,o.useCallback)(async t=>{let a=++O.current;R(!0);try{let r=await (0,f.controlPlaneRequest)(`mutation BrowseAgentDirectory($input: BrowseAgentDirectoryInput!) {
|
|
2
|
+
browseAgentDirectory(input: $input) {
|
|
3
|
+
path parentPath homePath truncated entries { name path hidden }
|
|
4
|
+
}
|
|
5
|
+
}`,{input:{agentId:e,path:t,requestId:(0,m.createClientId)()}});if(a!==O.current)return;S(r.browseAgentDirectory),v?.(r.browseAgentDirectory.path),I(null)}catch(e){if(a!==O.current)return;I(e instanceof Error?e.message:String(e))}finally{a===O.current&&R(!1)}},[e,v]);if((0,o.useEffect)(()=>{if(!g)return;let e=window.setTimeout(()=>void T(g),0);return()=>window.clearTimeout(e)},[T,g]),(0,o.useEffect)(()=>()=>{O.current+=1},[]),!N)return(0,t.jsxs)("div",{className:"space-y-3",children:[w&&(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:w})}),(0,t.jsxs)(c.Button,{disabled:D||x,onClick:()=>void T(null),type:"button",variant:"outline",children:[D?(0,t.jsx)(h.Spinner,{}):(0,t.jsx)(n,{})," ",r??C("browseHome")]})]});let k="/"===(j=N.path)?[{label:"/",path:"/"}]:[{label:"/",path:"/"},...j.split("/").filter(Boolean).map((e,t,a)=>({label:e,path:`/${a.slice(0,t+1).join("/")}`}))];return(0,t.jsxs)("div",{className:"space-y-3 rounded-lg border p-3",children:[w&&(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:w})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[(0,t.jsx)(c.Button,{"aria-label":C("home"),disabled:D||x,onClick:()=>void T(N.homePath),size:"icon-sm",type:"button",variant:"ghost",children:(0,t.jsx)(s.default,{})}),k.map((e,r)=>(0,t.jsxs)("span",{className:"flex items-center",children:[r>0&&(0,t.jsx)(a.ChevronRight,{className:"size-3 text-muted-foreground"}),(0,t.jsx)(c.Button,{disabled:D||x,onClick:()=>void T(e.path),size:"sm",type:"button",variant:"ghost",children:e.label})]},e.path))]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(u.Checkbox,{checked:_,id:`show-hidden-${e}`,onCheckedChange:e=>A(!!e)}),(0,t.jsx)(p.Label,{htmlFor:`show-hidden-${e}`,children:C("showHidden")})]}),(0,t.jsx)("div",{className:"max-h-64 overflow-y-auto rounded-md border",children:N.entries.filter(e=>_||!e.hidden).map(e=>(0,t.jsxs)(c.Button,{className:"h-auto w-full justify-start rounded-none border-b px-3 py-2 last:border-0",disabled:D||x,onClick:()=>void T(e.path),size:"sm",type:"button",variant:"ghost",children:[(0,t.jsx)(n,{className:"size-4"})," ",e.name]},e.path))}),N.truncated&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:C("truncated")}),b&&E&&(0,t.jsxs)(c.Button,{disabled:D||x,onClick:()=>void b(N.path),type:"button",children:[x?(0,t.jsx)(h.Spinner,{}):y??(0,t.jsx)(i,{})," ",E]})]})}],874801)},274730,e=>{"use strict";var t=e.i(843476),a=e.i(421645),r=e.i(434719),n=e.i(768877),i=e.i(762368),s=e.i(835079),l=e.i(515281),o=e.i(77071),d=e.i(741120),c=e.i(250832),u=e.i(573474),p=e.i(861745),h=e.i(948148),m=e.i(271645),f=e.i(778434),x=e.i(874801),g=e.i(340953),v=e.i(929592),b=e.i(487486),y=e.i(519455),E=e.i(515288),j=e.i(776639),C=e.i(82612),N=e.i(793479),S=e.i(110204),_=e.i(967489),A=e.i(987968),D=e.i(677572),R=e.i(624687),w=e.i(462777),I=e.i(520133),O=e.i(637611),T=e.i(975157);let k=`
|
|
6
|
+
id folder observedOrigin branch headSha upstream ahead behind syncState availability
|
|
7
|
+
statusError defaultBranch localBranches remoteBranches lastCheckedAt lastFetchedAt lastFetchAttemptAt lastFetchError
|
|
8
|
+
agent { ${f.AGENT_FIELDS} }
|
|
9
|
+
activeJob { id agentId kind payload status idempotencyKey result error timeoutSeconds createdAt startedAt finishedAt updatedAt }
|
|
10
|
+
`,B=`
|
|
11
|
+
id canonicalOrigin displayOrigin name description jiraBranchRegex keepBaseBranchUpToDate createdAt updatedAt
|
|
12
|
+
codebases { ${k} }
|
|
13
|
+
`;function L({open:e,settings:n,onOpenChange:i,onSaved:s}){let l=(0,h.useTranslations)("codebases"),[o,d]=(0,m.useState)(String(n?.refreshIntervalSeconds??a.DEFAULT_CODEBASE_RECONCILE_INTERVAL_SECONDS)),[c,u]=(0,m.useState)(String(n?.fetchIntervalSeconds??r.DEFAULT_WORKTREE_FETCH_INTERVAL_SECONDS)),[p,f]=(0,m.useState)(n?.defaultJiraBranchRegex??r.DEFAULT_JIRA_BRANCH_REGEX),[x,g]=(0,m.useState)(!1),[b,E]=(0,m.useState)(null),C=Number(o),_=Number.isInteger(C)&&C>=a.MIN_CODEBASE_RECONCILE_INTERVAL_SECONDS&&C<=a.MAX_CODEBASE_RECONCILE_INTERVAL_SECONDS,D=Number(c),R=Number.isInteger(D)&&D>=r.MIN_WORKTREE_FETCH_INTERVAL_SECONDS&&D<=r.MAX_WORKTREE_FETCH_INTERVAL_SECONDS,w=!0;try{p&&RegExp(p,"i")}catch{w=!1}let I=async e=>{if(e.preventDefault(),_&&R&&w){g(!0);try{let e=await (0,O.controlPlaneRequest)(`mutation UpdateCodebaseSettings($input: UpdateCodebaseSettingsInput!) {
|
|
14
|
+
updateCodebaseSettings(input: $input) {
|
|
15
|
+
refreshIntervalSeconds fetchIntervalSeconds defaultJiraBranchRegex updatedAt
|
|
16
|
+
}
|
|
17
|
+
}`,{input:{refreshIntervalSeconds:C,fetchIntervalSeconds:D,defaultJiraBranchRegex:p}});s(e.updateCodebaseSettings)}catch(e){E(e instanceof Error?e.message:String(e))}finally{g(!1)}}};return(0,t.jsx)(j.Dialog,{open:e,onOpenChange:i,children:(0,t.jsxs)(j.DialogContent,{children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsx)(j.DialogTitle,{children:l("settingsTitle")}),(0,t.jsx)(j.DialogDescription,{children:l("settingsDescription")})]}),(0,t.jsxs)("form",{className:"space-y-4",onSubmit:I,children:[b&&(0,t.jsx)(v.Alert,{variant:"destructive",children:(0,t.jsx)(v.AlertDescription,{children:b})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(S.Label,{htmlFor:"codebase-refresh-interval",children:l("refreshInterval")}),(0,t.jsx)(N.Input,{id:"codebase-refresh-interval",inputMode:"numeric",max:a.MAX_CODEBASE_RECONCILE_INTERVAL_SECONDS,min:a.MIN_CODEBASE_RECONCILE_INTERVAL_SECONDS,onChange:e=>d(e.target.value),required:!0,step:1,type:"number",value:o}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("refreshIntervalHelp",{min:a.MIN_CODEBASE_RECONCILE_INTERVAL_SECONDS,max:a.MAX_CODEBASE_RECONCILE_INTERVAL_SECONDS})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(S.Label,{htmlFor:"codebase-fetch-interval",children:l("fetchInterval")}),(0,t.jsx)(N.Input,{id:"codebase-fetch-interval",inputMode:"numeric",max:r.MAX_WORKTREE_FETCH_INTERVAL_SECONDS,min:r.MIN_WORKTREE_FETCH_INTERVAL_SECONDS,onChange:e=>u(e.target.value),required:!0,step:1,type:"number",value:c}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("fetchIntervalHelp",{min:r.MIN_WORKTREE_FETCH_INTERVAL_SECONDS,max:r.MAX_WORKTREE_FETCH_INTERVAL_SECONDS})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(S.Label,{htmlFor:"default-jira-branch-regex",children:l("defaultJiraBranchRegex")}),(0,t.jsx)(N.Input,{id:"default-jira-branch-regex",onChange:e=>f(e.target.value),value:p}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("jiraBranchRegexHelp")})]}),(0,t.jsxs)(j.DialogFooter,{children:[(0,t.jsx)(y.Button,{onClick:()=>i(!1),type:"button",variant:"outline",children:l("cancel")}),(0,t.jsxs)(y.Button,{disabled:x||!_||!R||!w,type:"submit",children:[x&&(0,t.jsx)(A.Spinner,{})," ",l("save")]})]})]})]})})}function F({agents:e,entries:a,onFetch:r,onRemove:n}){let i=(0,h.useTranslations)("codebases");return(0,t.jsx)("div",{className:"space-y-6",children:e.map(e=>({agent:e,entries:a.filter(({codebase:t})=>t.agent.id===e.id)})).filter(({entries:e})=>e.length>0).map(({agent:e,entries:a})=>(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:e.name}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:e.hostname}),(0,t.jsx)(b.Badge,{children:"ONLINE"===e.connectionStatus?i("online"):i("offline")})]}),(0,t.jsx)("div",{className:"grid gap-3 xl:grid-cols-2",children:a.map(({codebase:e,repository:a})=>(0,t.jsx)(M,{codebase:e,onFetch:r,onRemove:n,repository:a,showAgent:!1},e.id))})]},e.id))})}function P({repositories:e,onFetch:a,onRemove:r}){let n=(0,h.useTranslations)("codebases");return(0,t.jsx)("div",{className:"space-y-6",children:e.map(e=>(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:e.name}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:e.displayOrigin}),e.description&&(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e.description})]}),(0,t.jsx)(y.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)(I.Link,{href:`/codebases/repositories/${e.id}`,children:[(0,t.jsx)(l.Pencil,{})," ",n("edit")]})})]}),(0,t.jsx)("div",{className:"grid gap-3 xl:grid-cols-2",children:e.codebases.map(n=>(0,t.jsx)(M,{codebase:n,onFetch:a,onRemove:r,repository:e,showAgent:!0,showMetadata:!1},n.id))})]},e.id))})}function M({codebase:e,repository:r,onFetch:s,onRemove:l,showAgent:o,showMetadata:d=!0}){let c=(0,h.useTranslations)("codebases"),m=(0,p.useLocale)(),f=e.activeJob,x="ONLINE"===e.agent.connectionStatus&&e.agent.capabilities.includes(a.CODEBASE_FETCH_JOB_KIND)&&"AVAILABLE"===e.availability&&!f,j=e=>e?new Date(e).toLocaleString(m):c("never"),C="AHEAD"===e.syncState||"BEHIND"===e.syncState?c(e.syncState.toLowerCase(),{count:"AHEAD"===e.syncState?e.ahead??0:e.behind??0}):c(`sync.${e.syncState}`);return(0,t.jsx)(E.Card,{children:(0,t.jsxs)(E.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[d&&(0,t.jsx)("h3",{className:"font-medium",children:r.name}),o&&(0,t.jsx)("h3",{className:"font-medium",children:e.agent.name}),d&&r.description&&(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:r.description})]}),(0,t.jsx)(b.Badge,{className:(0,T.cn)("IN_SYNC"===e.syncState&&"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:C})]}),(0,t.jsxs)("dl",{className:"grid gap-3 text-sm sm:grid-cols-2",children:[(0,t.jsx)(V,{label:c("folder"),value:e.folder,mono:!0}),(0,t.jsx)(V,{label:c("origin"),value:e.observedOrigin,mono:!0}),(0,t.jsx)(V,{label:c("branch"),value:e.branch??e.headSha?.slice(0,10)??c("unknown"),mono:!0}),(0,t.jsx)(V,{label:c("upstream"),value:e.upstream??c("none"),mono:!0}),(0,t.jsx)(V,{label:c("lastChecked"),value:j(e.lastCheckedAt)}),(0,t.jsx)(V,{label:c("lastFetched"),value:j(e.lastFetchedAt)})]}),(e.statusError||"AVAILABLE"!==e.availability)&&(0,t.jsx)(v.Alert,{variant:"destructive",children:(0,t.jsx)(v.AlertDescription,{children:e.statusError??c(`availability.${e.availability}`)})}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:f?c("operationRunning"):"OFFLINE"===e.agent.connectionStatus?c("offline"):""}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(y.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)(I.Link,{href:`/codebases/${e.id}`,children:[c("view")," ",(0,t.jsx)(n.ArrowRight,{})]})}),(0,t.jsx)(g.ConfirmationDialog,{actionLabel:c("remove"),cancelLabel:c("cancel"),description:c("confirmRemoveDescription",{folder:e.folder}),onConfirm:()=>l(e.id),title:c("confirmRemoveTitle"),trigger:(0,t.jsxs)(y.Button,{disabled:!!f,size:"sm",variant:"destructive",children:[(0,t.jsx)(u.Trash2,{})," ",c("remove")]})}),(0,t.jsxs)(y.Button,{disabled:!x,onClick:()=>void s(e.id),size:"sm",variant:"outline",children:[f?(0,t.jsx)(A.Spinner,{}):(0,t.jsx)(i.Download,{})," ",c("fetch")]})]})]})]})})}function V({label:e,value:a,mono:r=!1}){return(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:(0,T.cn)("truncate",r&&"font-mono text-xs"),title:a,children:a})]})}function $({agents:e,open:r,onOpenChange:n,onAdded:i}){let l=(0,h.useTranslations)("codebases"),[o,d]=(0,m.useState)(""),[c,u]=(0,m.useState)(null),[p,f]=(0,m.useState)(null),[g,b]=(0,m.useState)(""),[E,C]=(0,m.useState)(""),[D,I]=(0,m.useState)(!1),[T,k]=(0,m.useState)(null),B=(0,m.useRef)(0),L=e.filter(e=>"ONLINE"===e.connectionStatus&&e.capabilities.includes(a.CODEBASE_BROWSE_JOB_KIND)&&e.capabilities.includes(a.CODEBASE_INSPECT_JOB_KIND)),F=L.find(e=>e.id===o),P=()=>{B.current+=1,d(""),u(null),f(null),b(""),C(""),k(null),I(!1)},M=e=>{e||P(),n(e)},H=async e=>{let t=++B.current;I(!0);try{let a=await (0,O.controlPlaneRequest)(`mutation InspectAgentCodebase($input: InspectAgentCodebaseInput!) {
|
|
18
|
+
inspectAgentCodebase(input: $input) {
|
|
19
|
+
jobId
|
|
20
|
+
snapshot { folder observedOrigin canonicalOrigin displayOrigin branch syncState }
|
|
21
|
+
existingRepository { id canonicalOrigin displayOrigin name description createdAt updatedAt }
|
|
22
|
+
}
|
|
23
|
+
}`,{input:{agentId:o,folder:e,requestId:(0,w.createClientId)()}});if(t!==B.current)return;let r=a.inspectAgentCodebase;f(r);let n=r.snapshot.displayOrigin.split("/").at(-1)??"";b(r.existingRepository?.name??n),C(r.existingRepository?.description??""),k(null)}catch(e){if(t!==B.current)return;k(e instanceof Error?e.message:String(e))}finally{t===B.current&&I(!1)}},K=async e=>{if(e.preventDefault(),p){I(!0);try{await (0,O.controlPlaneRequest)(`mutation ConfirmCodebase($input: ConfirmCodebaseInput!) {
|
|
24
|
+
confirmCodebase(input: $input) { id }
|
|
25
|
+
}`,{input:{inspectionJobId:p.jobId,name:g,description:E}}),P(),await i()}catch(e){k(e instanceof Error?e.message:String(e))}finally{I(!1)}}};return(0,t.jsx)(j.Dialog,{open:r,onOpenChange:M,children:(0,t.jsxs)(j.DialogContent,{className:"sm:max-w-2xl",children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsx)(j.DialogTitle,{children:l("addTitle")}),(0,t.jsx)(j.DialogDescription,{children:l("addDescription")})]}),(0,t.jsxs)("form",{className:"space-y-4",onSubmit:K,children:[T&&(0,t.jsx)(v.Alert,{variant:"destructive",children:(0,t.jsx)(v.AlertDescription,{children:T})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(S.Label,{htmlFor:"codebase-agent",children:l("agent")}),(0,t.jsxs)(_.Select,{onValueChange:e=>{B.current+=1,d(e),u(null),f(null),I(!1),k(null)},value:o,children:[(0,t.jsx)(_.SelectTrigger,{className:"w-full",id:"codebase-agent",children:(0,t.jsx)(_.SelectValue,{placeholder:l("selectAgent")})}),(0,t.jsx)(_.SelectContent,{children:L.map(e=>(0,t.jsxs)(_.SelectItem,{value:e.id,children:[e.name," · ",e.hostname]},e.id))})]})]}),o&&!p&&(0,t.jsx)(x.AgentDirectoryBrowser,{agentId:o,disabled:D,initialPath:F?.baseRepoDirectory,onPathChange:u},o),p&&(0,t.jsxs)("div",{className:"space-y-4 rounded-lg border p-4",children:[(0,t.jsx)(V,{label:l("folder"),value:p.snapshot.folder,mono:!0}),(0,t.jsx)(V,{label:l("origin"),value:p.snapshot.displayOrigin,mono:!0}),(0,t.jsx)(V,{label:l("branch"),value:p.snapshot.branch??l("detached"),mono:!0}),p.existingRepository?(0,t.jsx)(v.Alert,{children:(0,t.jsx)(v.AlertDescription,{children:l("existingOrigin",{name:p.existingRepository.name})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(S.Label,{htmlFor:"codebase-name",children:l("name")}),(0,t.jsx)(N.Input,{id:"codebase-name",maxLength:120,onChange:e=>b(e.target.value),required:!0,value:g})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(S.Label,{htmlFor:"codebase-description",children:l("repositoryDescription")}),(0,t.jsx)(R.Textarea,{id:"codebase-description",maxLength:2e3,onChange:e=>C(e.target.value),value:E})]})]})]}),(0,t.jsxs)(j.DialogFooter,{className:"flex-row items-center justify-between sm:justify-between",children:[c&&!p&&(0,t.jsxs)(y.Button,{disabled:D,onClick:()=>void H(c),type:"button",children:[D?(0,t.jsx)(A.Spinner,{}):(0,t.jsx)(s.FolderGit2,{})," ",l("addFolder")]}),(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,t.jsx)(y.Button,{onClick:()=>M(!1),type:"button",variant:"outline",children:l("cancel")}),p&&(0,t.jsxs)(y.Button,{disabled:D||!p.existingRepository&&!g.trim(),type:"submit",children:[D&&(0,t.jsx)(A.Spinner,{})," ",l("confirm")]})]})]})]})]})})}e.s(["CodebasesPage",0,function(){let e=(0,h.useTranslations)("codebases"),[r,n]=(0,m.useState)([]),[l,u]=(0,m.useState)([]),[p,x]=(0,m.useState)(null),[g,b]=(0,m.useState)("agents"),[E,j]=(0,m.useState)(!0),[N,S]=(0,m.useState)(!1),[_,R]=(0,m.useState)(null),[I,T]=(0,m.useState)(null),[k,M]=(0,m.useState)(!1),[V,H]=(0,m.useState)(!1),K=(0,m.useRef)(0),z=(0,m.useCallback)(async()=>{let e=++K.current;try{let t=await (0,O.controlPlaneRequest)(`query CodebaseOverview {
|
|
26
|
+
codebaseOverview { repositories { ${B} } }
|
|
27
|
+
codebaseSettings { refreshIntervalSeconds fetchIntervalSeconds defaultJiraBranchRegex updatedAt }
|
|
28
|
+
agents { ${f.AGENT_FIELDS} }
|
|
29
|
+
}`);if(e!==K.current)return;n(t.codebaseOverview.repositories),x(t.codebaseSettings),u(t.agents),R(null)}catch(t){if(e!==K.current)return;R(t instanceof Error?t.message:String(t))}finally{e===K.current&&j(!1)}},[]);(0,m.useEffect)(()=>{let e=null,t=window.setTimeout(()=>void z(),0),a=window.setInterval(()=>void z(),3e4),r=(0,O.controlPlaneSubscriptions)().subscribe({query:`subscription CodebaseOverviewChanged {
|
|
30
|
+
codebaseOverviewChanged { codebaseId repositoryId }
|
|
31
|
+
}`},{next:()=>{null!==e&&window.clearTimeout(e),e=window.setTimeout(()=>{e=null,z()},100)},error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),window.clearInterval(a),null!==e&&window.clearTimeout(e),K.current+=1,r()}},[z]);let J=(0,m.useMemo)(()=>r.flatMap(e=>e.codebases.map(t=>({codebase:t,repository:e}))),[r]),W=async(t,a=J.map(({codebase:e})=>e.id))=>{S(!0);try{let r=(await (0,O.controlPlaneRequest)(`mutation RunCodebaseOperation($input: RunCodebaseOperationInput!) {
|
|
32
|
+
${t}(input: $input) {
|
|
33
|
+
jobs { id }
|
|
34
|
+
skipped { codebaseId reason }
|
|
35
|
+
}
|
|
36
|
+
}`,{input:{codebaseIds:a,requestId:(0,w.createClientId)()}}))[t];T(r?.skipped.length?e("skipped",{count:r.skipped.length}):"fetchCodebases"===t?e("fetchQueued"):e("refreshQueued")),R(null),await z()}catch(e){R(e instanceof Error?e.message:String(e)),T(null)}finally{S(!1)}},q=async t=>{S(!0);try{await (0,O.controlPlaneRequest)(`mutation RemoveCodebase($id: ID!) {
|
|
37
|
+
removeCodebase(id: $id) { id repositoryId repositoryRemoved }
|
|
38
|
+
}`,{id:t}),T(e("removed")),R(null),await z()}catch(e){R(e instanceof Error?e.message:String(e)),T(null)}finally{S(!1)}};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)(y.Button,{disabled:N||0===J.length,onClick:()=>void W("refreshCodebases"),variant:"outline",children:[(0,t.jsx)(d.RefreshCw,{className:N?"animate-spin":void 0}),e("refreshAll")]}),(0,t.jsxs)(y.Button,{disabled:N||0===J.length,onClick:()=>void W("fetchCodebases"),variant:"outline",children:[(0,t.jsx)(i.Download,{}),e("fetchAll")]}),(0,t.jsxs)(y.Button,{disabled:!p,onClick:()=>H(!0),variant:"outline",children:[(0,t.jsx)(c.Settings2,{}),e("settings")]}),(0,t.jsxs)(y.Button,{onClick:()=>M(!0),children:[(0,t.jsx)(o.Plus,{}),e("add")]})]})]}),_&&(0,t.jsx)(v.Alert,{variant:"destructive",children:(0,t.jsx)(v.AlertDescription,{children:_})}),I&&(0,t.jsx)(v.Alert,{children:(0,t.jsx)(v.AlertDescription,{children:I})}),(0,t.jsx)(D.Tabs,{onValueChange:e=>b(e),value:g,children:(0,t.jsxs)(D.TabsList,{"aria-label":e("groupBy"),children:[(0,t.jsx)(D.TabsTrigger,{value:"agents",children:e("agents")}),(0,t.jsx)(D.TabsTrigger,{value:"repositories",children:e("repositories")})]})}),E?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(A.Spinner,{})," ",e("loading")]}):0===J.length?(0,t.jsx)(C.Empty,{className:"border py-12",children:(0,t.jsxs)(C.EmptyHeader,{children:[(0,t.jsx)(C.EmptyMedia,{variant:"icon",children:(0,t.jsx)(s.FolderGit2,{})}),(0,t.jsx)(C.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(C.EmptyDescription,{children:e("emptyDescription")})]})}):"agents"===g?(0,t.jsx)(F,{agents:l,entries:J,onFetch:e=>W("fetchCodebases",[e]),onRemove:q}):(0,t.jsx)(P,{repositories:r,onFetch:e=>W("fetchCodebases",[e]),onRemove:q}),(0,t.jsx)($,{agents:l,onAdded:async()=>{M(!1),await z()},onOpenChange:M,open:k}),(0,t.jsx)(L,{onOpenChange:H,onSaved:t=>{x(t),H(!1),T(e("settingsSaved")),R(null)},open:V,settings:p},`${V?"open":"closed"}-${p?.refreshIntervalSeconds??a.DEFAULT_CODEBASE_RECONCILE_INTERVAL_SECONDS}`)]})}])}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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),a=e.i(271645),n=e.i(30030);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return a.useCallback(function(...e){return t=>{let a=!1,n=e.map(e=>{let n=r(e,t);return a||"function"!=typeof n||(a=!0),n});if(a)return()=>{for(let t=0;t<n.length;t++){let a=n[t];"function"==typeof a?a():r(e[t],null)}}}}(...e),e)}var i=e.i(326999);"u">typeof window&&window.document&&window.document.createElement;var s="AlertDialog",[o,d]=(0,n.createContextScope)(s,[i.createDialogScope]),c=(0,i.createDialogScope)(),u=e=>{let{__scopeAlertDialog:a,...n}=e,r=c(a);return(0,t.jsx)(i.Root,{...r,...n,modal:!0})};u.displayName=s;var m=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Trigger,{...l,...r,ref:a})});m.displayName="AlertDialogTrigger";var p=e=>{let{__scopeAlertDialog:a,...n}=e,r=c(a);return(0,t.jsx)(i.Portal,{...r,...n})};p.displayName="AlertDialogPortal";var x=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Overlay,{...l,...r,ref:a})});x.displayName="AlertDialogOverlay";var g="AlertDialogContent",[f,h]=o(g),j=a.forwardRef((e,n)=>{let{__scopeAlertDialog:r,children:s,...o}=e,d=c(r),u=l(n,a.useRef(null)),m=a.useRef(null);return(0,t.jsx)(f,{scope:r,cancelRef:m,children:(0,t.jsx)(i.Content,{role:"alertdialog",...d,...o,ref:u,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:a=!0}={}){return function(n){if(e?.(n),!1===a||!n||!n.defaultPrevented)return t?.(n)}}(o.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:s})})});j.displayName=g;var v=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Title,{...l,...r,ref:a})});v.displayName="AlertDialogTitle";var b=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Description,{...l,...r,ref:a})});b.displayName="AlertDialogDescription";var y=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Close,{...l,...r,ref:a})});y.displayName="AlertDialogAction";var S="AlertDialogCancel",C=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:s}=h(S,n),o=c(n),d=l(a,s);return(0,t.jsx)(i.Close,{...o,...r,ref:d})});C.displayName=S,e.s(["Action",0,y,"AlertDialog",0,u,"AlertDialogAction",0,y,"AlertDialogCancel",0,C,"AlertDialogContent",0,j,"AlertDialogDescription",0,b,"AlertDialogOverlay",0,x,"AlertDialogPortal",0,p,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,m,"Cancel",0,C,"Content",0,j,"Description",0,b,"Overlay",0,x,"Portal",0,p,"Root",0,u,"Title",0,v,"Trigger",0,m,"createAlertDialogScope",0,d],691162);var k=e.i(691162),k=k,N=e.i(975157),w=e.i(519455);function A({...e}){return(0,t.jsx)(k.Root,{"data-slot":"alert-dialog",...e})}function D({...e}){return(0,t.jsx)(k.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(k.Portal,{"data-slot":"alert-dialog-portal",...e})}function R({className:e,...a}){return(0,t.jsx)(k.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,N.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function E({className:e,size:a="default",...n}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(R,{}),(0,t.jsx)(k.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,N.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),...n})]})}function I({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,N.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function P({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,N.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function H({className:e,...a}){return(0,t.jsx)(k.Title,{"data-slot":"alert-dialog-title",className:(0,N.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function q({className:e,...a}){return(0,t.jsx)(k.Description,{"data-slot":"alert-dialog-description",className:(0,N.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function z({className:e,variant:a="default",size:n="default",...r}){return(0,t.jsx)(w.Button,{variant:a,size:n,asChild:!0,children:(0,t.jsx)(k.Action,{"data-slot":"alert-dialog-action",className:(0,N.cn)(e),...r})})}function L({className:e,variant:a="outline",size:n="default",...r}){return(0,t.jsx)(w.Button,{variant:a,size:n,asChild:!0,children:(0,t.jsx)(k.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,N.cn)(e),...r})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:n,onConfirm:r,onOpenChange:l,open:i,title:s,trigger:o}){return(0,t.jsxs)(A,{onOpenChange:l,open:i,children:[o&&(0,t.jsx)(D,{asChild:!0,children:o}),(0,t.jsxs)(E,{children:[(0,t.jsxs)(I,{children:[(0,t.jsx)(H,{children:s}),(0,t.jsx)(q,{children:n})]}),(0,t.jsxs)(P,{children:[(0,t.jsx)(L,{children:a}),(0,t.jsx)(z,{onClick:()=>void r(),variant:"destructive",children:e})]})]})]})}],340953)},482022,e=>{"use strict";let t=(0,e.i(456420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],482022)},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)},452330,725981,e=>{"use strict";var t=e.i(456420);let a=(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,a],452330);let n=(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,n],725981)},825398,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);e.s(["RotateCw",0,t],825398)},534710,e=>{"use strict";var t=e.i(843476),a=e.i(456420);let n=(0,a.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var r=e.i(452330),l=e.i(482022),i=e.i(634398);let s=(0,a.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);var o=e.i(825398),d=e.i(856522);let c=(0,a.default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var u=e.i(573474);let m=(0,a.default)("unplug",[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]);var p=e.i(725981),x=e.i(948148),g=e.i(271645),f=e.i(340953),h=e.i(929592),j=e.i(487486),v=e.i(519455),b=e.i(515288),y=e.i(793479),S=e.i(110204),C=e.i(987968),k=e.i(637611);let N="siteUrl email tokenConfigured cacheTtlSeconds updatedAt";function w({embedded:e=!1}={}){let a=(0,x.useTranslations)("jiraSettings"),r=(0,x.useTranslations)("common"),[l,i]=(0,g.useState)(null),[o,c]=(0,g.useState)(""),[p,A]=(0,g.useState)(""),[D,T]=(0,g.useState)(""),[R,E]=(0,g.useState)(null),[I,P]=(0,g.useState)(!0),[H,q]=(0,g.useState)(!1),[z,L]=(0,g.useState)(null),[G,M]=(0,g.useState)(null),[B,$]=(0,g.useState)(!1),F=e=>{i(e),c(e.siteUrl??""),A(e.email??""),T("")},K=(0,g.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query { jiraSettings { ${N} } }`);F(e.jiraSettings)}catch(e){L(e instanceof Error?e.message:String(e))}finally{P(!1)}},[]);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>void K(),0);return()=>window.clearTimeout(e)},[K]);let O=async e=>{q(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveJiraSettings($input: SaveJiraSettingsInput!) { saveJiraSettings(input: $input) { ${N} } }`,{input:{siteUrl:o,email:p,apiToken:D||null,resetSite:e}});F(t.saveJiraSettings),E(null),L(null),M(a("saved"))}catch(e){L(e instanceof Error?e.message:String(e)),M(null)}finally{q(!1)}},V=async()=>{q(!0);try{let e=await (0,k.controlPlaneRequest)("mutation { testJiraConnection { accountId displayName emailAddress } }");E(e.testJiraConnection),L(null),M(a("connectionSucceeded"))}catch(e){E(null),L(e instanceof Error?e.message:String(e)),M(null)}finally{q(!1)}},U=async()=>{q(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation { clearJiraCredentials { ${N} } }`);F(e.clearJiraCredentials),E(null),L(null),M(a("removed"))}catch(e){L(e instanceof Error?e.message:String(e))}finally{q(!1)}};return(0,t.jsxs)("section",{className:e?"flex w-full flex-col gap-6":"mx-auto flex w-full max-w-3xl flex-col gap-6",children:[!e&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:a("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:a("description")})]}),I?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(C.Spinner,{}),a("loading")]}):(0,t.jsx)("form",{onSubmit:e=>{(e.preventDefault(),l?.siteUrl&&l.siteUrl!==o.trim().replace(/\/$/,""))?$(!0):O(!1)},children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s,{className:"size-5"}),(0,t.jsx)("h2",{className:"font-semibold",children:a("credentials")})]}),(0,t.jsx)(j.Badge,{className:l?.tokenConfigured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:l?.tokenConfigured?a("configured"):a("notConfigured")})]}),z&&(0,t.jsx)(h.Alert,{variant:"destructive",children:(0,t.jsx)(h.AlertDescription,{children:z})}),G&&(0,t.jsxs)(h.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(n,{}),(0,t.jsx)(h.AlertDescription,{className:"text-current",children:G})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(S.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-site-url",children:a("siteUrl")}),(0,t.jsx)(y.Input,{autoComplete:"url",id:"jira-site-url",onChange:e=>c(e.target.value),placeholder:"https://example.atlassian.net",required:!0,type:"url",value:o}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:a("siteUrlHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(S.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-email",children:a("email")}),(0,t.jsx)(y.Input,{autoComplete:"username",id:"jira-email",onChange:e=>A(e.target.value),required:!0,type:"email",value:p})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(S.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-token",children:a("apiToken")}),(0,t.jsx)(y.Input,{autoComplete:"new-password",id:"jira-token",onChange:e=>T(e.target.value),placeholder:l?.tokenConfigured?a("tokenPlaceholderConfigured"):a("tokenPlaceholder"),required:!l?.tokenConfigured,type:"password",value:D}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:l?.tokenConfigured?a("tokenKeepHelp"):a("tokenHelp")})]}),R&&(0,t.jsx)(h.Alert,{className:"bg-muted",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:R.displayName}),(0,t.jsx)("p",{className:"text-muted-foreground",children:R.emailAddress??R.accountId})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(f.ConfirmationDialog,{actionLabel:a("remove"),cancelLabel:r("cancel"),description:r("cannotBeUndone"),onConfirm:U,title:a("confirmRemove"),trigger:(0,t.jsxs)(v.Button,{disabled:H||!l?.tokenConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(u.Trash2,{}),a("remove")]})}),(0,t.jsxs)(v.Button,{disabled:H||!l?.tokenConfigured,onClick:()=>void V(),type:"button",variant:"outline",children:[(0,t.jsx)(m,{}),a("test")]}),(0,t.jsxs)(v.Button,{disabled:H,type:"submit",children:[H?(0,t.jsx)(C.Spinner,{}):(0,t.jsx)(d.Save,{}),a("save")]})]})]})})}),(0,t.jsx)(f.ConfirmationDialog,{actionLabel:r("continue"),cancelLabel:r("cancel"),description:r("cannotBeUndone"),onConfirm:()=>O(!0),onOpenChange:$,open:B,title:a("confirmSiteChange")})]})}var A=e.i(967489),D=e.i(624687);let T="tokenConfigured defaultJiraKeyRegex updatedAt",R="configured appId installationId privateKeyConfigured keyFingerprint appSlug accountLogin repositorySelection actionsPermission verifiedAt updatedAt";function E(){let e=(0,x.useTranslations)("editorSettings"),[a,n]=(0,g.useState)("CODE"),[l,i]=(0,g.useState)(!0),[s,o]=(0,g.useState)(!1),[c,u]=(0,g.useState)(null),[m,p]=(0,g.useState)(null);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>{(0,k.controlPlaneRequest)("query EditorSettings { worktreeSettings { editorVariant } }").then(e=>n(e.worktreeSettings.editorVariant)).catch(e=>p(e instanceof Error?e.message:String(e))).finally(()=>i(!1))},0);return()=>window.clearTimeout(e)},[]);let f=async()=>{o(!0);try{await (0,k.controlPlaneRequest)(`mutation SaveEditorSettings($editorVariant: WorktreeEditorVariant!) {
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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),a=e.i(271645),n=e.i(30030);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return a.useCallback(function(...e){return t=>{let a=!1,n=e.map(e=>{let n=r(e,t);return a||"function"!=typeof n||(a=!0),n});if(a)return()=>{for(let t=0;t<n.length;t++){let a=n[t];"function"==typeof a?a():r(e[t],null)}}}}(...e),e)}var i=e.i(326999);"u">typeof window&&window.document&&window.document.createElement;var s="AlertDialog",[o,d]=(0,n.createContextScope)(s,[i.createDialogScope]),c=(0,i.createDialogScope)(),u=e=>{let{__scopeAlertDialog:a,...n}=e,r=c(a);return(0,t.jsx)(i.Root,{...r,...n,modal:!0})};u.displayName=s;var m=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Trigger,{...l,...r,ref:a})});m.displayName="AlertDialogTrigger";var p=e=>{let{__scopeAlertDialog:a,...n}=e,r=c(a);return(0,t.jsx)(i.Portal,{...r,...n})};p.displayName="AlertDialogPortal";var x=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Overlay,{...l,...r,ref:a})});x.displayName="AlertDialogOverlay";var g="AlertDialogContent",[f,h]=o(g),j=a.forwardRef((e,n)=>{let{__scopeAlertDialog:r,children:s,...o}=e,d=c(r),u=l(n,a.useRef(null)),m=a.useRef(null);return(0,t.jsx)(f,{scope:r,cancelRef:m,children:(0,t.jsx)(i.Content,{role:"alertdialog",...d,...o,ref:u,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:a=!0}={}){return function(n){if(e?.(n),!1===a||!n||!n.defaultPrevented)return t?.(n)}}(o.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:s})})});j.displayName=g;var v=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Title,{...l,...r,ref:a})});v.displayName="AlertDialogTitle";var b=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Description,{...l,...r,ref:a})});b.displayName="AlertDialogDescription";var y=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,l=c(n);return(0,t.jsx)(i.Close,{...l,...r,ref:a})});y.displayName="AlertDialogAction";var S="AlertDialogCancel",C=a.forwardRef((e,a)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:s}=h(S,n),o=c(n),d=l(a,s);return(0,t.jsx)(i.Close,{...o,...r,ref:d})});C.displayName=S,e.s(["Action",0,y,"AlertDialog",0,u,"AlertDialogAction",0,y,"AlertDialogCancel",0,C,"AlertDialogContent",0,j,"AlertDialogDescription",0,b,"AlertDialogOverlay",0,x,"AlertDialogPortal",0,p,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,m,"Cancel",0,C,"Content",0,j,"Description",0,b,"Overlay",0,x,"Portal",0,p,"Root",0,u,"Title",0,v,"Trigger",0,m,"createAlertDialogScope",0,d],691162);var k=e.i(691162),k=k,N=e.i(975157),w=e.i(519455);function A({...e}){return(0,t.jsx)(k.Root,{"data-slot":"alert-dialog",...e})}function D({...e}){return(0,t.jsx)(k.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(k.Portal,{"data-slot":"alert-dialog-portal",...e})}function R({className:e,...a}){return(0,t.jsx)(k.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,N.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function E({className:e,size:a="default",...n}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(R,{}),(0,t.jsx)(k.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,N.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),...n})]})}function I({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,N.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function P({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,N.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function H({className:e,...a}){return(0,t.jsx)(k.Title,{"data-slot":"alert-dialog-title",className:(0,N.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function q({className:e,...a}){return(0,t.jsx)(k.Description,{"data-slot":"alert-dialog-description",className:(0,N.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function z({className:e,variant:a="default",size:n="default",...r}){return(0,t.jsx)(w.Button,{variant:a,size:n,asChild:!0,children:(0,t.jsx)(k.Action,{"data-slot":"alert-dialog-action",className:(0,N.cn)(e),...r})})}function L({className:e,variant:a="outline",size:n="default",...r}){return(0,t.jsx)(w.Button,{variant:a,size:n,asChild:!0,children:(0,t.jsx)(k.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,N.cn)(e),...r})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:n,onConfirm:r,onOpenChange:l,open:i,title:s,trigger:o}){return(0,t.jsxs)(A,{onOpenChange:l,open:i,children:[o&&(0,t.jsx)(D,{asChild:!0,children:o}),(0,t.jsxs)(E,{children:[(0,t.jsxs)(I,{children:[(0,t.jsx)(H,{children:s}),(0,t.jsx)(q,{children:n})]}),(0,t.jsxs)(P,{children:[(0,t.jsx)(L,{children:a}),(0,t.jsx)(z,{onClick:()=>void r(),variant:"destructive",children:e})]})]})]})}],340953)},482022,e=>{"use strict";let t=(0,e.i(456420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],482022)},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)},452330,e=>{"use strict";let t=(0,e.i(456420).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,t],452330)},725981,e=>{"use strict";let t=(0,e.i(456420).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],725981)},825398,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);e.s(["RotateCw",0,t],825398)},534710,e=>{"use strict";var t=e.i(843476),a=e.i(456420);let n=(0,a.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var r=e.i(452330),l=e.i(482022),i=e.i(634398);let s=(0,a.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);var o=e.i(825398),d=e.i(856522);let c=(0,a.default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var u=e.i(573474);let m=(0,a.default)("unplug",[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]);var p=e.i(725981),x=e.i(948148),g=e.i(271645),f=e.i(340953),h=e.i(929592),j=e.i(487486),v=e.i(519455),b=e.i(515288),y=e.i(793479),S=e.i(110204),C=e.i(987968),k=e.i(637611);let N="siteUrl email tokenConfigured cacheTtlSeconds updatedAt";function w({embedded:e=!1}={}){let a=(0,x.useTranslations)("jiraSettings"),r=(0,x.useTranslations)("common"),[l,i]=(0,g.useState)(null),[o,c]=(0,g.useState)(""),[p,A]=(0,g.useState)(""),[D,T]=(0,g.useState)(""),[R,E]=(0,g.useState)(null),[I,P]=(0,g.useState)(!0),[H,q]=(0,g.useState)(!1),[z,L]=(0,g.useState)(null),[G,M]=(0,g.useState)(null),[B,$]=(0,g.useState)(!1),F=e=>{i(e),c(e.siteUrl??""),A(e.email??""),T("")},K=(0,g.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query { jiraSettings { ${N} } }`);F(e.jiraSettings)}catch(e){L(e instanceof Error?e.message:String(e))}finally{P(!1)}},[]);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>void K(),0);return()=>window.clearTimeout(e)},[K]);let O=async e=>{q(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveJiraSettings($input: SaveJiraSettingsInput!) { saveJiraSettings(input: $input) { ${N} } }`,{input:{siteUrl:o,email:p,apiToken:D||null,resetSite:e}});F(t.saveJiraSettings),E(null),L(null),M(a("saved"))}catch(e){L(e instanceof Error?e.message:String(e)),M(null)}finally{q(!1)}},V=async()=>{q(!0);try{let e=await (0,k.controlPlaneRequest)("mutation { testJiraConnection { accountId displayName emailAddress } }");E(e.testJiraConnection),L(null),M(a("connectionSucceeded"))}catch(e){E(null),L(e instanceof Error?e.message:String(e)),M(null)}finally{q(!1)}},U=async()=>{q(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation { clearJiraCredentials { ${N} } }`);F(e.clearJiraCredentials),E(null),L(null),M(a("removed"))}catch(e){L(e instanceof Error?e.message:String(e))}finally{q(!1)}};return(0,t.jsxs)("section",{className:e?"flex w-full flex-col gap-6":"mx-auto flex w-full max-w-3xl flex-col gap-6",children:[!e&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:a("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:a("description")})]}),I?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(C.Spinner,{}),a("loading")]}):(0,t.jsx)("form",{onSubmit:e=>{(e.preventDefault(),l?.siteUrl&&l.siteUrl!==o.trim().replace(/\/$/,""))?$(!0):O(!1)},children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s,{className:"size-5"}),(0,t.jsx)("h2",{className:"font-semibold",children:a("credentials")})]}),(0,t.jsx)(j.Badge,{className:l?.tokenConfigured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:l?.tokenConfigured?a("configured"):a("notConfigured")})]}),z&&(0,t.jsx)(h.Alert,{variant:"destructive",children:(0,t.jsx)(h.AlertDescription,{children:z})}),G&&(0,t.jsxs)(h.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(n,{}),(0,t.jsx)(h.AlertDescription,{className:"text-current",children:G})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(S.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-site-url",children:a("siteUrl")}),(0,t.jsx)(y.Input,{autoComplete:"url",id:"jira-site-url",onChange:e=>c(e.target.value),placeholder:"https://example.atlassian.net",required:!0,type:"url",value:o}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:a("siteUrlHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(S.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-email",children:a("email")}),(0,t.jsx)(y.Input,{autoComplete:"username",id:"jira-email",onChange:e=>A(e.target.value),required:!0,type:"email",value:p})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(S.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-token",children:a("apiToken")}),(0,t.jsx)(y.Input,{autoComplete:"new-password",id:"jira-token",onChange:e=>T(e.target.value),placeholder:l?.tokenConfigured?a("tokenPlaceholderConfigured"):a("tokenPlaceholder"),required:!l?.tokenConfigured,type:"password",value:D}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:l?.tokenConfigured?a("tokenKeepHelp"):a("tokenHelp")})]}),R&&(0,t.jsx)(h.Alert,{className:"bg-muted",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:R.displayName}),(0,t.jsx)("p",{className:"text-muted-foreground",children:R.emailAddress??R.accountId})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(f.ConfirmationDialog,{actionLabel:a("remove"),cancelLabel:r("cancel"),description:r("cannotBeUndone"),onConfirm:U,title:a("confirmRemove"),trigger:(0,t.jsxs)(v.Button,{disabled:H||!l?.tokenConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(u.Trash2,{}),a("remove")]})}),(0,t.jsxs)(v.Button,{disabled:H||!l?.tokenConfigured,onClick:()=>void V(),type:"button",variant:"outline",children:[(0,t.jsx)(m,{}),a("test")]}),(0,t.jsxs)(v.Button,{disabled:H,type:"submit",children:[H?(0,t.jsx)(C.Spinner,{}):(0,t.jsx)(d.Save,{}),a("save")]})]})]})})}),(0,t.jsx)(f.ConfirmationDialog,{actionLabel:r("continue"),cancelLabel:r("cancel"),description:r("cannotBeUndone"),onConfirm:()=>O(!0),onOpenChange:$,open:B,title:a("confirmSiteChange")})]})}var A=e.i(967489),D=e.i(624687);let T="tokenConfigured defaultJiraKeyRegex updatedAt",R="configured appId installationId privateKeyConfigured keyFingerprint appSlug accountLogin repositorySelection actionsPermission verifiedAt updatedAt";function E(){let e=(0,x.useTranslations)("editorSettings"),[a,n]=(0,g.useState)("CODE"),[l,i]=(0,g.useState)(!0),[s,o]=(0,g.useState)(!1),[c,u]=(0,g.useState)(null),[m,p]=(0,g.useState)(null);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>{(0,k.controlPlaneRequest)("query EditorSettings { worktreeSettings { editorVariant } }").then(e=>n(e.worktreeSettings.editorVariant)).catch(e=>p(e instanceof Error?e.message:String(e))).finally(()=>i(!1))},0);return()=>window.clearTimeout(e)},[]);let f=async()=>{o(!0);try{await (0,k.controlPlaneRequest)(`mutation SaveEditorSettings($editorVariant: WorktreeEditorVariant!) {
|
|
2
2
|
saveWorktreeSettings(editorVariant: $editorVariant) { editorVariant }
|
|
3
3
|
}`,{editorVariant:a}),u(e("saved")),p(null)}catch(e){p(e instanceof Error?e.message:String(e)),u(null)}finally{o(!1)}};return(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.Code2,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),m&&(0,t.jsx)(h.Alert,{variant:"destructive",children:(0,t.jsx)(h.AlertDescription,{children:m})}),c&&(0,t.jsx)(h.Alert,{children:(0,t.jsx)(h.AlertDescription,{children:c})}),l?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(C.Spinner,{})," ",e("loading")]}):(0,t.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,t.jsxs)("div",{className:"min-w-64 flex-1 space-y-2",children:[(0,t.jsx)(S.Label,{htmlFor:"editor-variant",children:e("label")}),(0,t.jsxs)(A.Select,{onValueChange:e=>n(e),value:a,children:[(0,t.jsx)(A.SelectTrigger,{className:"w-full",id:"editor-variant",children:(0,t.jsx)(A.SelectValue,{})}),(0,t.jsxs)(A.SelectContent,{children:[(0,t.jsx)(A.SelectItem,{value:"CODE",children:e("code")}),(0,t.jsx)(A.SelectItem,{value:"CODE_INSIDERS",children:e("insiders")}),(0,t.jsx)(A.SelectItem,{value:"NONE",children:e("none")})]})]})]}),(0,t.jsxs)(v.Button,{disabled:s,onClick:()=>void f(),children:[s?(0,t.jsx)(C.Spinner,{}):(0,t.jsx)(d.Save,{})," ",e("save")]})]})]})})}function I(){let e=(0,x.useTranslations)("githubAppSettings"),a=(0,x.useTranslations)("common"),[r,i]=(0,g.useState)(null),[N,w]=(0,g.useState)(""),[A,T]=(0,g.useState)(""),[E,I]=(0,g.useState)(""),[P,H]=(0,g.useState)(""),[q,z]=(0,g.useState)(!1),[L,G]=(0,g.useState)(!0),[M,B]=(0,g.useState)(!1),[$,F]=(0,g.useState)(null),[K,O]=(0,g.useState)(null),V=(0,g.useCallback)(e=>{i(e),w(e.appId??""),T(e.installationId??""),I("")},[]),U=(0,g.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query GitHubAppSettings { githubAppSettings { ${R} } }`);V(e.githubAppSettings)}catch(e){F(e instanceof Error?e.message:String(e))}finally{G(!1)}},[V]);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>{H(window.location.origin),U()},0);return()=>window.clearTimeout(e)},[U]);let J=async t=>{t.preventDefault(),B(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveGitHubAppSettings($input: SaveGitHubAppSettingsInput!) {
|
|
4
4
|
saveGitHubAppSettings(input: $input) { ${R} }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,110204,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)}e.i(174080);var n=Symbol.for("radix.slottable"),i=Symbol.for("react.lazy");function s(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var o=r[" use ".trim().toString()],l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,i)=>{var l;let c,d=(l=`Primitive.${i}`,(c=r.forwardRef((e,t)=>{var i;let c,d,{children:u,...p}=e,m=null,f=!1,g=[];s(u)&&"function"==typeof o&&(u=o(u._payload)),r.Children.forEach(u,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===n){f=!0;let t="child"in e.props?e.props.child:e.props.children;s(t)&&"function"==typeof o&&(t=o(t._payload)),m=((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),g.push(m?.props?.children)}else g.push(e)}),m?m=r.cloneElement(m,void 0,g):!f&&1===r.Children.count(u)&&r.isValidElement(u)&&(m=u);let x=m?(i=m,(d=(c=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in c&&c.isReactWarning)?i.ref:(d=(c=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in c&&c.isReactWarning)?i.props.ref:i.props.ref||i.ref):void 0,h=function(...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)}(t,x);if(!m){if(u||0===u){let e,t;throw Error(f?(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 u}let y=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,m.props??{});return m.type!==r.Fragment&&(y.ref=t?h:x),r.cloneElement(m,y)})).displayName=`${l}.Slot`,c),u=r.forwardRef((e,r)=>{let{asChild:a,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?d:i,{...n,ref:r})});return u.displayName=`Primitive.${i}`,{...e,[i]:u}},{}),c=r.forwardRef((e,r)=>(0,t.jsx)(l.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));c.displayName="Label",e.s(["Label",0,c,"Root",0,c],973741);var d=e.i(973741),d=d,u=e.i(975157);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(d.Root,{"data-slot":"label",className:(0,u.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],110204)},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 i(...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 s=e.i(326999);"u">typeof window&&window.document&&window.document.createElement;var o="AlertDialog",[l,c]=(0,a.createContextScope)(o,[s.createDialogScope]),d=(0,s.createDialogScope)(),u=e=>{let{__scopeAlertDialog:r,...a}=e,n=d(r);return(0,t.jsx)(s.Root,{...n,...a,modal:!0})};u.displayName=o;var p=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Trigger,{...i,...n,ref:r})});p.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:r,...a}=e,n=d(r);return(0,t.jsx)(s.Portal,{...n,...a})};m.displayName="AlertDialogPortal";var f=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Overlay,{...i,...n,ref:r})});f.displayName="AlertDialogOverlay";var g="AlertDialogContent",[x,h]=l(g),y=r.forwardRef((e,a)=>{let{__scopeAlertDialog:n,children:o,...l}=e,c=d(n),u=i(a,r.useRef(null)),p=r.useRef(null);return(0,t.jsx)(x,{scope:n,cancelRef:p,children:(0,t.jsx)(s.Content,{role:"alertdialog",...c,...l,ref:u,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}(l.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})});y.displayName=g;var b=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Title,{...i,...n,ref:r})});b.displayName="AlertDialogTitle";var v=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Description,{...i,...n,ref:r})});v.displayName="AlertDialogDescription";var j=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Close,{...i,...n,ref:r})});j.displayName="AlertDialogAction";var w="AlertDialogCancel",C=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,{cancelRef:o}=h(w,a),l=d(a),c=i(r,o);return(0,t.jsx)(s.Close,{...l,...n,ref:c})});C.displayName=w,e.s(["Action",0,j,"AlertDialog",0,u,"AlertDialogAction",0,j,"AlertDialogCancel",0,C,"AlertDialogContent",0,y,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,f,"AlertDialogPortal",0,m,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,p,"Cancel",0,C,"Content",0,y,"Description",0,v,"Overlay",0,f,"Portal",0,m,"Root",0,u,"Title",0,b,"Trigger",0,p,"createAlertDialogScope",0,c],691162);var T=e.i(691162),T=T,N=e.i(975157),E=e.i(519455);function k({...e}){return(0,t.jsx)(T.Root,{"data-slot":"alert-dialog",...e})}function S({...e}){return(0,t.jsx)(T.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function A({...e}){return(0,t.jsx)(T.Portal,{"data-slot":"alert-dialog-portal",...e})}function $({className:e,...r}){return(0,t.jsx)(T.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,N.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 R({className:e,size:r="default",...a}){return(0,t.jsxs)(A,{children:[(0,t.jsx)($,{}),(0,t.jsx)(T.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,N.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 D({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,N.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 M({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,N.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 z({className:e,...r}){return(0,t.jsx)(T.Title,{"data-slot":"alert-dialog-title",className:(0,N.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 P({className:e,...r}){return(0,t.jsx)(T.Description,{"data-slot":"alert-dialog-description",className:(0,N.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function O({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(E.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(T.Action,{"data-slot":"alert-dialog-action",className:(0,N.cn)(e),...n})})}function I({className:e,variant:r="outline",size:a="default",...n}){return(0,t.jsx)(E.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(T.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,N.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:a,onConfirm:n,onOpenChange:i,open:s,title:o,trigger:l}){return(0,t.jsxs)(k,{onOpenChange:i,open:s,children:[l&&(0,t.jsx)(S,{asChild:!0,children:l}),(0,t.jsxs)(R,{children:[(0,t.jsxs)(D,{children:[(0,t.jsx)(z,{children:o}),(0,t.jsx)(P,{children:a})]}),(0,t.jsxs)(M,{children:[(0,t.jsx)(I,{children:r}),(0,t.jsx)(O,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},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})}])},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)},929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,a.cn)(n({variant:r}),e),...i})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,a.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),a=e.i(758379),a=a;e.s(["Spinner",0,function({className:e,...n}){return(0,t.jsx)(a.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...n})}],987968)},637611,e=>{"use strict";var t,r,a=e.i(247167);function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===n(e)}function s(e,t){return e.length<124?e:t}var o=((t=o||{})[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t),l=((r=l||{}).ConnectionInit="connection_init",r.ConnectionAck="connection_ack",r.Ping="ping",r.Pong="pong",r.Subscribe="subscribe",r.Next="next",r.Error="error",r.Complete="complete",r);function c(e){if(!i(e))throw Error(`Message is expected to be an object, but got ${n(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${n(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${n(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${n(e.payload.query)}`);if(null!=e.payload.variables&&!i(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${n(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==n(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${n(e.payload.operationName)}`);if(null!=e.payload.extensions&&!i(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${n(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${n(e.payload)}`);break;case"error":var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function d(e,t){return c(e),JSON.stringify(e,t)}class u extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function p(e){return i(e)&&"code"in e&&"reason"in e}async function m(e,t){let r=await fetch("/api/graphql",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e,variables:t})}),a=await r.json();if(!r.ok||a.errors?.length||!a.data)throw Error(a.errors?.map(e=>e.message).join("; ")||`HTTP ${r.status}`);return a.data}let f=null;function g(){let e=a.default.env.NEXT_PUBLIC_AGENT_WS_URL;return e||("https:"===window.location.protocol?`wss://${window.location.host}/graphql`:`ws://${window.location.hostname}:3091/graphql`)}e.s(["controlPlaneRequest",0,m,"controlPlaneSubscriptions",0,function(){return f??=function(t){let r,a,n,i,{url:m,connectionParams:f,lazy:g=!0,onNonLazyError:x=console.error,lazyCloseTimeout:h=0,keepAlive:y=0,disablePong:b,connectionAckWaitTimeout:v=0,retryAttempts:j=5,retryWait:w=async function(e){let t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:C=p,on:T,webSocketImpl:N,generateID:E=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:k,jsonMessageReviver:S}=t;if(N){var A;if(!("function"==typeof(A=N)&&"constructor"in A&&"CLOSED"in A&&"CLOSING"in A&&"CONNECTING"in A&&"OPEN"in A))throw Error("Invalid WebSocket implementation provided");r=N}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let $=r,R=(a={},n={on:(e,t)=>(a[e]=t,()=>{delete a[e]}),emit(e){"id"in e&&a[e.id]?.(e)}},i={connecting:T?.connecting?[T.connecting]:[],opened:T?.opened?[T.opened]:[],connected:T?.connected?[T.connected]:[],ping:T?.ping?[T.ping]:[],pong:T?.pong?[T.pong]:[],message:T?.message?[n.emit,T.message]:[n.emit],closed:T?.closed?[T.closed]:[],error:T?.error?[T.error]:[]},{onMessage:n.on,on(e,t){let r=i[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...i[e]])r(...t)}});function D(e){let t=[R.on("error",r=>{t.forEach(e=>e()),e(r)}),R.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let M,z=0,P,O=!1,I=0,_=!1;async function q(){clearTimeout(P);let[e,t]=await (M??(M=new Promise((e,t)=>(async()=>{let r,a;if(O){if(await w(I),!z)return M=void 0,t({code:1e3,reason:"All Subscriptions Gone"});I++}R.emit("connecting",O);let n=new $("function"==typeof m?await m():m,"graphql-transport-ws");function i(){isFinite(y)&&y>0&&(clearTimeout(a),a=setTimeout(()=>{n.readyState===$.OPEN&&(n.send(d({type:l.Ping})),R.emit("ping",!1,void 0))},y))}D(e=>{M=void 0,clearTimeout(r),clearTimeout(a),t(e),e instanceof u&&(n.close(4499,"Terminated"),n.onerror=null,n.onclose=null)}),n.onerror=e=>R.emit("error",e),n.onclose=e=>R.emit("closed",e),n.onopen=async()=>{try{R.emit("opened",n);let e="function"==typeof f?await f():f;if(n.readyState!==$.OPEN)return;n.send(d(e?{type:l.ConnectionInit,payload:e}:{type:l.ConnectionInit},k)),isFinite(v)&&v>0&&(r=setTimeout(()=>{n.close(o.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},v)),i()}catch(e){R.emit("error",e),n.close(o.InternalClientError,s(e instanceof Error?e.message:String(e),"Internal client error"))}};let p=!1;n.onmessage=({data:t})=>{try{let a=c("string"==typeof t?JSON.parse(t,S):t);if(R.emit("message",a),"ping"===a.type||"pong"===a.type){R.emit(a.type,!0,a.payload),"pong"===a.type?i():b||(n.send(d(a.payload?{type:l.Pong,payload:a.payload}:{type:l.Pong})),R.emit("pong",!1,a.payload));return}if(p)return;if(a.type!==l.ConnectionAck)throw Error(`First message cannot be of type ${a.type}`);clearTimeout(r),p=!0,R.emit("connected",n,a.payload,O),O=!1,I=0,e([n,new Promise((e,t)=>D(t))])}catch(e){n.onmessage=null,R.emit("error",e),n.close(o.BadResponse,s(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===$.CLOSING&&await t;let r=()=>{},a=new Promise(e=>r=e);return[e,r,Promise.race([a.then(()=>{z||(isFinite(h)&&h>0?P=setTimeout(()=>{e.readyState===$.OPEN&&e.close(1e3,"Normal Closure")},h):e.close(1e3,"Normal Closure"))}),t])]}function B(e){var t;if(p(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[o.InternalServerError,o.InternalClientError,o.BadRequest,o.BadResponse,o.Unauthorized,o.SubprotocolNotAcceptable,o.SubscriberAlreadyExists,o.TooManyInitialisationRequests].includes(e.code)))throw e;if(_)return!1;if(p(e)&&1e3===e.code)return z>0;if(!j||I>=j||!C(e))throw e;return O=!0}function H(e,t){let r=E(e),a=!1,n=!1,i=()=>{z--,a=!0};return(async()=>{for(z++;;)try{let[s,o,c]=await q();if(a)return o();let u=R.onMessage(r,e=>{switch(e.type){case l.Next:return void t.next(e.payload);case l.Error:n=!0,a=!0,t.error(e.payload),i();return;case l.Complete:a=!0,i();return}});s.send(d({id:r,type:l.Subscribe,payload:e},k)),i=()=>{a||s.readyState!==$.OPEN||s.send(d({id:r,type:l.Complete},k)),z--,a=!0,o()},await c.finally(u);return}catch(e){if(!B(e))return}})().then(()=>{n||t.complete()}).catch(e=>{t.error(e)}),()=>{a||i()}}return g||(async()=>{for(z++;;)try{let[,,e]=await q();await e}catch(e){try{if(!B(e))return}catch(e){return x?.(e)}}})(),{on:R.on,subscribe:H,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},a=H(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),n=async function*(){for(;;){for(t.length||await new Promise(e=>r.resolve=e);t.length;)yield t.shift();if(r.error)throw r.error;if(r.done)return}}();return n.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),n.return=async()=>(a(),{done:!0,value:void 0}),n},async dispose(){if(_=!0,M){let[e]=await M;e.close(1e3,"Normal Closure")}},terminate(){M&&R.emit("closed",new u)}}}({url:g,lazy:!0,retryAttempts:1/0,shouldRetry:()=>!0})}],637611)},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(709840),n=e.i(975157);let i=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:s=!1,...o}){let l=s?a.Slot.Root:"span";return(0,t.jsx)(l,{className:(0,n.cn)(i({variant:r}),e),"data-slot":"badge","data-variant":r,...o})}])},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,a.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,a.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,a.cn)(n({variant:r,className:e})),...i})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},482022,e=>{"use strict";let t=(0,e.i(456420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],482022)},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)},617946,e=>{"use strict";var t=e.i(843476),r=e.i(809584),a=e.i(482022),n=e.i(741120),i=e.i(856522),s=e.i(573474),o=e.i(948148),l=e.i(271645),c=e.i(340953),d=e.i(929592),u=e.i(487486),p=e.i(519455),m=e.i(515288),f=e.i(82612),g=e.i(793479),x=e.i(110204),h=e.i(987968),y=e.i(784774),b=e.i(520133),v=e.i(637611);let j="window total live cache errors averageMs";function w(e){return e?new Date(e).toLocaleString():"—"}function C(e){return"LIVE"===e?"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300":"ERROR"===e?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"}function T({metric:e}){let a=(0,o.useTranslations)("jiraCache");return(0,t.jsx)(m.Card,{children:(0,t.jsxs)(m.CardContent,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"font-medium",children:e.window}),(0,t.jsx)(r.Database,{className:"size-4 text-muted-foreground"})]}),(0,t.jsx)("p",{className:"mt-3 text-3xl font-semibold",children:e.total}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:a("average",{ms:e.averageMs})}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-3 gap-2 text-xs",children:[(0,t.jsxs)("span",{children:[a("live")," ",e.live]}),(0,t.jsxs)("span",{children:[a("cache")," ",e.cache]}),(0,t.jsxs)("span",{children:[a("errors")," ",e.errors]})]})]})})}function N({title:e,description:r,children:a}){return(0,t.jsxs)(m.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(m.CardHeader,{className:"border-b py-4",children:[(0,t.jsx)(m.CardTitle,{children:e}),(0,t.jsx)(m.CardDescription,{children:r})]}),a]})}function E({children:e}){return(0,t.jsx)(f.Empty,{className:"py-8",children:(0,t.jsx)(f.EmptyHeader,{children:(0,t.jsx)(f.EmptyDescription,{children:e})})})}function k({offset:e,setOffset:r,total:a}){let n=(0,o.useTranslations)("jiraCache");return(0,t.jsxs)("div",{className:"flex items-center justify-between border-t p-3 text-sm",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:n("showing",{start:0===a?0:e+1,end:Math.min(e+50,a),total:a})}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(p.Button,{disabled:0===e,onClick:()=>r(Math.max(0,e-50)),size:"sm",variant:"outline",children:n("previous")}),(0,t.jsx)(p.Button,{disabled:e+50>=a,onClick:()=>r(e+50),size:"sm",variant:"outline",children:n("next")})]})]})}e.s(["JiraCachePage",0,function(){let e=(0,o.useTranslations)("jiraCache"),r=(0,o.useTranslations)("common"),[m,f]=(0,l.useState)(null),[S,A]=(0,l.useState)("5"),[$,R]=(0,l.useState)(0),[D,M]=(0,l.useState)(0),[z,P]=(0,l.useState)(!0),[O,I]=(0,l.useState)(null),[_,q]=(0,l.useState)(null),B=(0,l.useCallback)(async()=>{P(!0);try{let e=await (0,v.controlPlaneRequest)(`query JiraCachePage($limit: Int!, $callOffset: Int!, $ticketOffset: Int!) {
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,110204,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)}e.i(174080);var n=Symbol.for("radix.slottable"),i=Symbol.for("react.lazy");function s(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var o=r[" use ".trim().toString()],l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,i)=>{var l;let c,d=(l=`Primitive.${i}`,(c=r.forwardRef((e,t)=>{var i;let c,d,{children:u,...p}=e,m=null,f=!1,g=[];s(u)&&"function"==typeof o&&(u=o(u._payload)),r.Children.forEach(u,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===n){f=!0;let t="child"in e.props?e.props.child:e.props.children;s(t)&&"function"==typeof o&&(t=o(t._payload)),m=((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),g.push(m?.props?.children)}else g.push(e)}),m?m=r.cloneElement(m,void 0,g):!f&&1===r.Children.count(u)&&r.isValidElement(u)&&(m=u);let x=m?(i=m,(d=(c=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in c&&c.isReactWarning)?i.ref:(d=(c=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in c&&c.isReactWarning)?i.props.ref:i.props.ref||i.ref):void 0,h=function(...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)}(t,x);if(!m){if(u||0===u){let e,t;throw Error(f?(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 u}let y=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,m.props??{});return m.type!==r.Fragment&&(y.ref=t?h:x),r.cloneElement(m,y)})).displayName=`${l}.Slot`,c),u=r.forwardRef((e,r)=>{let{asChild:a,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?d:i,{...n,ref:r})});return u.displayName=`Primitive.${i}`,{...e,[i]:u}},{}),c=r.forwardRef((e,r)=>(0,t.jsx)(l.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));c.displayName="Label",e.s(["Label",0,c,"Root",0,c],973741);var d=e.i(973741),d=d,u=e.i(975157);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(d.Root,{"data-slot":"label",className:(0,u.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],110204)},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 i(...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 s=e.i(326999);"u">typeof window&&window.document&&window.document.createElement;var o="AlertDialog",[l,c]=(0,a.createContextScope)(o,[s.createDialogScope]),d=(0,s.createDialogScope)(),u=e=>{let{__scopeAlertDialog:r,...a}=e,n=d(r);return(0,t.jsx)(s.Root,{...n,...a,modal:!0})};u.displayName=o;var p=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Trigger,{...i,...n,ref:r})});p.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:r,...a}=e,n=d(r);return(0,t.jsx)(s.Portal,{...n,...a})};m.displayName="AlertDialogPortal";var f=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Overlay,{...i,...n,ref:r})});f.displayName="AlertDialogOverlay";var g="AlertDialogContent",[x,h]=l(g),y=r.forwardRef((e,a)=>{let{__scopeAlertDialog:n,children:o,...l}=e,c=d(n),u=i(a,r.useRef(null)),p=r.useRef(null);return(0,t.jsx)(x,{scope:n,cancelRef:p,children:(0,t.jsx)(s.Content,{role:"alertdialog",...c,...l,ref:u,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),!1===r||!a||!a.defaultPrevented)return t?.(a)}}(l.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})});y.displayName=g;var b=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Title,{...i,...n,ref:r})});b.displayName="AlertDialogTitle";var v=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Description,{...i,...n,ref:r})});v.displayName="AlertDialogDescription";var j=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,i=d(a);return(0,t.jsx)(s.Close,{...i,...n,ref:r})});j.displayName="AlertDialogAction";var w="AlertDialogCancel",C=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,{cancelRef:o}=h(w,a),l=d(a),c=i(r,o);return(0,t.jsx)(s.Close,{...l,...n,ref:c})});C.displayName=w,e.s(["Action",0,j,"AlertDialog",0,u,"AlertDialogAction",0,j,"AlertDialogCancel",0,C,"AlertDialogContent",0,y,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,f,"AlertDialogPortal",0,m,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,p,"Cancel",0,C,"Content",0,y,"Description",0,v,"Overlay",0,f,"Portal",0,m,"Root",0,u,"Title",0,b,"Trigger",0,p,"createAlertDialogScope",0,c],691162);var T=e.i(691162),T=T,N=e.i(975157),k=e.i(519455);function E({...e}){return(0,t.jsx)(T.Root,{"data-slot":"alert-dialog",...e})}function S({...e}){return(0,t.jsx)(T.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function A({...e}){return(0,t.jsx)(T.Portal,{"data-slot":"alert-dialog-portal",...e})}function $({className:e,...r}){return(0,t.jsx)(T.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,N.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 R({className:e,size:r="default",...a}){return(0,t.jsxs)(A,{children:[(0,t.jsx)($,{}),(0,t.jsx)(T.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,N.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 D({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,N.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 M({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,N.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 z({className:e,...r}){return(0,t.jsx)(T.Title,{"data-slot":"alert-dialog-title",className:(0,N.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 P({className:e,...r}){return(0,t.jsx)(T.Description,{"data-slot":"alert-dialog-description",className:(0,N.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function O({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(k.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(T.Action,{"data-slot":"alert-dialog-action",className:(0,N.cn)(e),...n})})}function I({className:e,variant:r="outline",size:a="default",...n}){return(0,t.jsx)(k.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(T.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,N.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:a,onConfirm:n,onOpenChange:i,open:s,title:o,trigger:l}){return(0,t.jsxs)(E,{onOpenChange:i,open:s,children:[l&&(0,t.jsx)(S,{asChild:!0,children:l}),(0,t.jsxs)(R,{children:[(0,t.jsxs)(D,{children:[(0,t.jsx)(z,{children:o}),(0,t.jsx)(P,{children:a})]}),(0,t.jsxs)(M,{children:[(0,t.jsx)(I,{children:r}),(0,t.jsx)(O,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},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})}])},929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,a.cn)(n({variant:r}),e),...i})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,a.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),a=e.i(758379),a=a;e.s(["Spinner",0,function({className:e,...n}){return(0,t.jsx)(a.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...n})}],987968)},637611,e=>{"use strict";var t,r,a=e.i(247167);function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===n(e)}function s(e,t){return e.length<124?e:t}var o=((t=o||{})[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t),l=((r=l||{}).ConnectionInit="connection_init",r.ConnectionAck="connection_ack",r.Ping="ping",r.Pong="pong",r.Subscribe="subscribe",r.Next="next",r.Error="error",r.Complete="complete",r);function c(e){if(!i(e))throw Error(`Message is expected to be an object, but got ${n(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${n(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${n(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${n(e.payload.query)}`);if(null!=e.payload.variables&&!i(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${n(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==n(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${n(e.payload.operationName)}`);if(null!=e.payload.extensions&&!i(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${n(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${n(e.payload)}`);break;case"error":var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function d(e,t){return c(e),JSON.stringify(e,t)}class u extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function p(e){return i(e)&&"code"in e&&"reason"in e}async function m(e,t){let r=await fetch("/api/graphql",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e,variables:t})}),a=await r.json();if(!r.ok||a.errors?.length||!a.data)throw Error(a.errors?.map(e=>e.message).join("; ")||`HTTP ${r.status}`);return a.data}let f=null;function g(){let e=a.default.env.NEXT_PUBLIC_AGENT_WS_URL;return e||("https:"===window.location.protocol?`wss://${window.location.host}/graphql`:`ws://${window.location.hostname}:3091/graphql`)}e.s(["controlPlaneRequest",0,m,"controlPlaneSubscriptions",0,function(){return f??=function(t){let r,a,n,i,{url:m,connectionParams:f,lazy:g=!0,onNonLazyError:x=console.error,lazyCloseTimeout:h=0,keepAlive:y=0,disablePong:b,connectionAckWaitTimeout:v=0,retryAttempts:j=5,retryWait:w=async function(e){let t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:C=p,on:T,webSocketImpl:N,generateID:k=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:E,jsonMessageReviver:S}=t;if(N){var A;if(!("function"==typeof(A=N)&&"constructor"in A&&"CLOSED"in A&&"CLOSING"in A&&"CONNECTING"in A&&"OPEN"in A))throw Error("Invalid WebSocket implementation provided");r=N}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let $=r,R=(a={},n={on:(e,t)=>(a[e]=t,()=>{delete a[e]}),emit(e){"id"in e&&a[e.id]?.(e)}},i={connecting:T?.connecting?[T.connecting]:[],opened:T?.opened?[T.opened]:[],connected:T?.connected?[T.connected]:[],ping:T?.ping?[T.ping]:[],pong:T?.pong?[T.pong]:[],message:T?.message?[n.emit,T.message]:[n.emit],closed:T?.closed?[T.closed]:[],error:T?.error?[T.error]:[]},{onMessage:n.on,on(e,t){let r=i[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...i[e]])r(...t)}});function D(e){let t=[R.on("error",r=>{t.forEach(e=>e()),e(r)}),R.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let M,z=0,P,O=!1,I=0,_=!1;async function q(){clearTimeout(P);let[e,t]=await (M??(M=new Promise((e,t)=>(async()=>{let r,a;if(O){if(await w(I),!z)return M=void 0,t({code:1e3,reason:"All Subscriptions Gone"});I++}R.emit("connecting",O);let n=new $("function"==typeof m?await m():m,"graphql-transport-ws");function i(){isFinite(y)&&y>0&&(clearTimeout(a),a=setTimeout(()=>{n.readyState===$.OPEN&&(n.send(d({type:l.Ping})),R.emit("ping",!1,void 0))},y))}D(e=>{M=void 0,clearTimeout(r),clearTimeout(a),t(e),e instanceof u&&(n.close(4499,"Terminated"),n.onerror=null,n.onclose=null)}),n.onerror=e=>R.emit("error",e),n.onclose=e=>R.emit("closed",e),n.onopen=async()=>{try{R.emit("opened",n);let e="function"==typeof f?await f():f;if(n.readyState!==$.OPEN)return;n.send(d(e?{type:l.ConnectionInit,payload:e}:{type:l.ConnectionInit},E)),isFinite(v)&&v>0&&(r=setTimeout(()=>{n.close(o.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},v)),i()}catch(e){R.emit("error",e),n.close(o.InternalClientError,s(e instanceof Error?e.message:String(e),"Internal client error"))}};let p=!1;n.onmessage=({data:t})=>{try{let a=c("string"==typeof t?JSON.parse(t,S):t);if(R.emit("message",a),"ping"===a.type||"pong"===a.type){R.emit(a.type,!0,a.payload),"pong"===a.type?i():b||(n.send(d(a.payload?{type:l.Pong,payload:a.payload}:{type:l.Pong})),R.emit("pong",!1,a.payload));return}if(p)return;if(a.type!==l.ConnectionAck)throw Error(`First message cannot be of type ${a.type}`);clearTimeout(r),p=!0,R.emit("connected",n,a.payload,O),O=!1,I=0,e([n,new Promise((e,t)=>D(t))])}catch(e){n.onmessage=null,R.emit("error",e),n.close(o.BadResponse,s(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===$.CLOSING&&await t;let r=()=>{},a=new Promise(e=>r=e);return[e,r,Promise.race([a.then(()=>{z||(isFinite(h)&&h>0?P=setTimeout(()=>{e.readyState===$.OPEN&&e.close(1e3,"Normal Closure")},h):e.close(1e3,"Normal Closure"))}),t])]}function B(e){var t;if(p(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[o.InternalServerError,o.InternalClientError,o.BadRequest,o.BadResponse,o.Unauthorized,o.SubprotocolNotAcceptable,o.SubscriberAlreadyExists,o.TooManyInitialisationRequests].includes(e.code)))throw e;if(_)return!1;if(p(e)&&1e3===e.code)return z>0;if(!j||I>=j||!C(e))throw e;return O=!0}function H(e,t){let r=k(e),a=!1,n=!1,i=()=>{z--,a=!0};return(async()=>{for(z++;;)try{let[s,o,c]=await q();if(a)return o();let u=R.onMessage(r,e=>{switch(e.type){case l.Next:return void t.next(e.payload);case l.Error:n=!0,a=!0,t.error(e.payload),i();return;case l.Complete:a=!0,i();return}});s.send(d({id:r,type:l.Subscribe,payload:e},E)),i=()=>{a||s.readyState!==$.OPEN||s.send(d({id:r,type:l.Complete},E)),z--,a=!0,o()},await c.finally(u);return}catch(e){if(!B(e))return}})().then(()=>{n||t.complete()}).catch(e=>{t.error(e)}),()=>{a||i()}}return g||(async()=>{for(z++;;)try{let[,,e]=await q();await e}catch(e){try{if(!B(e))return}catch(e){return x?.(e)}}})(),{on:R.on,subscribe:H,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},a=H(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),n=async function*(){for(;;){for(t.length||await new Promise(e=>r.resolve=e);t.length;)yield t.shift();if(r.error)throw r.error;if(r.done)return}}();return n.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),n.return=async()=>(a(),{done:!0,value:void 0}),n},async dispose(){if(_=!0,M){let[e]=await M;e.close(1e3,"Normal Closure")}},terminate(){M&&R.emit("closed",new u)}}}({url:g,lazy:!0,retryAttempts:1/0,shouldRetry:()=>!0})}],637611)},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(709840),n=e.i(975157);let i=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 [a]:hover:bg-emerald-500/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:s=!1,...o}){let l=s?a.Slot.Root:"span";return(0,t.jsx)(l,{className:(0,n.cn)(i({variant:r}),e),"data-slot":"badge","data-variant":r,...o})}])},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,a.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,a.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,a.cn)(n({variant:r,className:e})),...i})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},482022,e=>{"use strict";let t=(0,e.i(456420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],482022)},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)},617946,e=>{"use strict";var t=e.i(843476),r=e.i(809584),a=e.i(482022),n=e.i(741120),i=e.i(856522),s=e.i(573474),o=e.i(948148),l=e.i(271645),c=e.i(340953),d=e.i(929592),u=e.i(487486),p=e.i(519455),m=e.i(515288),f=e.i(82612),g=e.i(793479),x=e.i(110204),h=e.i(987968),y=e.i(784774),b=e.i(520133),v=e.i(637611);let j="window total live cache errors averageMs";function w(e){return e?new Date(e).toLocaleString():"—"}function C(e){return"LIVE"===e?"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300":"ERROR"===e?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"}function T({metric:e}){let a=(0,o.useTranslations)("jiraCache");return(0,t.jsx)(m.Card,{children:(0,t.jsxs)(m.CardContent,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"font-medium",children:e.window}),(0,t.jsx)(r.Database,{className:"size-4 text-muted-foreground"})]}),(0,t.jsx)("p",{className:"mt-3 text-3xl font-semibold",children:e.total}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:a("average",{ms:e.averageMs})}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-3 gap-2 text-xs",children:[(0,t.jsxs)("span",{children:[a("live")," ",e.live]}),(0,t.jsxs)("span",{children:[a("cache")," ",e.cache]}),(0,t.jsxs)("span",{children:[a("errors")," ",e.errors]})]})]})})}function N({title:e,description:r,children:a}){return(0,t.jsxs)(m.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(m.CardHeader,{className:"border-b py-4",children:[(0,t.jsx)(m.CardTitle,{children:e}),(0,t.jsx)(m.CardDescription,{children:r})]}),a]})}function k({children:e}){return(0,t.jsx)(f.Empty,{className:"py-8",children:(0,t.jsx)(f.EmptyHeader,{children:(0,t.jsx)(f.EmptyDescription,{children:e})})})}function E({offset:e,setOffset:r,total:a}){let n=(0,o.useTranslations)("jiraCache");return(0,t.jsxs)("div",{className:"flex items-center justify-between border-t p-3 text-sm",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:n("showing",{start:0===a?0:e+1,end:Math.min(e+50,a),total:a})}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(p.Button,{disabled:0===e,onClick:()=>r(Math.max(0,e-50)),size:"sm",variant:"outline",children:n("previous")}),(0,t.jsx)(p.Button,{disabled:e+50>=a,onClick:()=>r(e+50),size:"sm",variant:"outline",children:n("next")})]})]})}e.s(["JiraCachePage",0,function(){let e=(0,o.useTranslations)("jiraCache"),r=(0,o.useTranslations)("common"),[m,f]=(0,l.useState)(null),[S,A]=(0,l.useState)("5"),[$,R]=(0,l.useState)(0),[D,M]=(0,l.useState)(0),[z,P]=(0,l.useState)(!0),[O,I]=(0,l.useState)(null),[_,q]=(0,l.useState)(null),B=(0,l.useCallback)(async()=>{P(!0);try{let e=await (0,v.controlPlaneRequest)(`query JiraCachePage($limit: Int!, $callOffset: Int!, $ticketOffset: Int!) {
|
|
2
2
|
jiraSettings { siteUrl email tokenConfigured cacheTtlSeconds updatedAt }
|
|
3
3
|
jiraCacheMetrics { windows { ${j} } operations { operation windows { ${j} } } }
|
|
4
4
|
jiraApiCalls(limit: $limit, offset: $callOffset) { items { id operation requestSummary source durationMs statusCode error itemCount servedStale createdAt } total limit offset }
|
|
5
5
|
jiraCachedTickets(limit: $limit, offset: $ticketOffset) { items { issueKey projectKey summary status coverage stale summaryFetchedAt detailFetchedAt commentsFetchedAt updatedAt } total limit offset }
|
|
6
|
-
}`,{limit:50,callOffset:$,ticketOffset:D});f(e),A(String(Math.round(e.jiraSettings.cacheTtlSeconds/60))),q(null)}catch(e){q(e instanceof Error?e.message:String(e))}finally{P(!1)}},[$,D]);(0,l.useEffect)(()=>{let e=window.setTimeout(()=>void B(),0);return()=>window.clearTimeout(e)},[B]);let H=async e=>{e.preventDefault(),I("ttl");try{await (0,v.controlPlaneRequest)("mutation UpdateJiraCacheTtl($ttlMinutes: Int!) { updateJiraCacheTtl(ttlMinutes: $ttlMinutes) { cacheTtlSeconds } }",{ttlMinutes:Number(S)}),await B()}catch(e){q(e instanceof Error?e.message:String(e))}finally{I(null)}},L=async()=>{I("clear");try{await (0,v.controlPlaneRequest)("mutation { clearJiraCache }"),M(0),await B()}catch(e){q(e instanceof Error?e.message:String(e))}finally{I(null)}},F=async e=>{I(e);try{await (0,v.controlPlaneRequest)("mutation RefreshCachedTicket($issueKey: ID!) { refreshJiraCachedTicket(issueKey: $issueKey) { key } }",{issueKey:e}),await B()}catch(e){q(e instanceof Error?e.message:String(e))}finally{I(null)}},K=async e=>{I(e);try{await (0,v.controlPlaneRequest)("mutation DeleteCachedTicket($issueKey: ID!) { deleteJiraCachedTicket(issueKey: $issueKey) }",{issueKey:e}),await B()}catch(e){q(e instanceof Error?e.message:String(e))}finally{I(null)}};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)("form",{className:"flex gap-2",onSubmit:e=>void H(e),children:[(0,t.jsx)(x.Label,{className:"sr-only",htmlFor:"cache-ttl",children:e("ttl")}),(0,t.jsx)(g.Input,{className:"w-28",id:"cache-ttl",max:1440,min:1,onChange:e=>A(e.target.value),required:!0,type:"number",value:S}),(0,t.jsxs)(p.Button,{disabled:"ttl"===O,type:"submit",variant:"outline",children:[(0,t.jsx)(i.Save,{}),e("saveTtl")]})]}),(0,t.jsx)(c.ConfirmationDialog,{actionLabel:e("clearCache"),cancelLabel:r("cancel"),description:r("cannotBeUndone"),onConfirm:L,title:e("confirmClear"),trigger:(0,t.jsxs)(p.Button,{disabled:"clear"===O,variant:"destructive",children:[(0,t.jsx)(s.Trash2,{}),e("clearCache")]})})]})]}),_&&(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:_})}),z&&!m?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(h.Spinner,{}),e("loading")]}):m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:m.jiraCacheMetrics.windows.map(e=>(0,t.jsx)(T,{metric:e},e.window))}),(0,t.jsx)(N,{title:e("operationsTitle"),description:e("operationsDescription"),children:0===m.jiraCacheMetrics.operations.length?(0,t.jsx)(
|
|
6
|
+
}`,{limit:50,callOffset:$,ticketOffset:D});f(e),A(String(Math.round(e.jiraSettings.cacheTtlSeconds/60))),q(null)}catch(e){q(e instanceof Error?e.message:String(e))}finally{P(!1)}},[$,D]);(0,l.useEffect)(()=>{let e=window.setTimeout(()=>void B(),0);return()=>window.clearTimeout(e)},[B]);let H=async e=>{e.preventDefault(),I("ttl");try{await (0,v.controlPlaneRequest)("mutation UpdateJiraCacheTtl($ttlMinutes: Int!) { updateJiraCacheTtl(ttlMinutes: $ttlMinutes) { cacheTtlSeconds } }",{ttlMinutes:Number(S)}),await B()}catch(e){q(e instanceof Error?e.message:String(e))}finally{I(null)}},L=async()=>{I("clear");try{await (0,v.controlPlaneRequest)("mutation { clearJiraCache }"),M(0),await B()}catch(e){q(e instanceof Error?e.message:String(e))}finally{I(null)}},F=async e=>{I(e);try{await (0,v.controlPlaneRequest)("mutation RefreshCachedTicket($issueKey: ID!) { refreshJiraCachedTicket(issueKey: $issueKey) { key } }",{issueKey:e}),await B()}catch(e){q(e instanceof Error?e.message:String(e))}finally{I(null)}},K=async e=>{I(e);try{await (0,v.controlPlaneRequest)("mutation DeleteCachedTicket($issueKey: ID!) { deleteJiraCachedTicket(issueKey: $issueKey) }",{issueKey:e}),await B()}catch(e){q(e instanceof Error?e.message:String(e))}finally{I(null)}};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)("form",{className:"flex gap-2",onSubmit:e=>void H(e),children:[(0,t.jsx)(x.Label,{className:"sr-only",htmlFor:"cache-ttl",children:e("ttl")}),(0,t.jsx)(g.Input,{className:"w-28",id:"cache-ttl",max:1440,min:1,onChange:e=>A(e.target.value),required:!0,type:"number",value:S}),(0,t.jsxs)(p.Button,{disabled:"ttl"===O,type:"submit",variant:"outline",children:[(0,t.jsx)(i.Save,{}),e("saveTtl")]})]}),(0,t.jsx)(c.ConfirmationDialog,{actionLabel:e("clearCache"),cancelLabel:r("cancel"),description:r("cannotBeUndone"),onConfirm:L,title:e("confirmClear"),trigger:(0,t.jsxs)(p.Button,{disabled:"clear"===O,variant:"destructive",children:[(0,t.jsx)(s.Trash2,{}),e("clearCache")]})})]})]}),_&&(0,t.jsx)(d.Alert,{variant:"destructive",children:(0,t.jsx)(d.AlertDescription,{children:_})}),z&&!m?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(h.Spinner,{}),e("loading")]}):m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-4",children:m.jiraCacheMetrics.windows.map(e=>(0,t.jsx)(T,{metric:e},e.window))}),(0,t.jsx)(N,{title:e("operationsTitle"),description:e("operationsDescription"),children:0===m.jiraCacheMetrics.operations.length?(0,t.jsx)(k,{children:e("noMetrics")}):(0,t.jsxs)(y.Table,{children:[(0,t.jsx)(y.TableHeader,{children:(0,t.jsxs)(y.TableRow,{children:[(0,t.jsx)(y.TableHead,{children:e("operation")}),m.jiraCacheMetrics.windows.map(e=>(0,t.jsx)(y.TableHead,{children:e.window},e.window))]})}),(0,t.jsx)(y.TableBody,{children:m.jiraCacheMetrics.operations.map(e=>(0,t.jsxs)(y.TableRow,{children:[(0,t.jsx)(y.TableCell,{className:"font-medium",children:e.operation.replaceAll("_"," ")}),e.windows.map(e=>(0,t.jsxs)(y.TableCell,{children:[(0,t.jsx)("span",{className:"font-medium",children:e.total}),(0,t.jsxs)("span",{className:"ml-2 text-xs text-muted-foreground",children:["L ",e.live," · C ",e.cache," · E"," ",e.errors]})]},e.window))]},e.operation))})]})}),(0,t.jsx)(N,{title:e("recentTitle"),description:e("recentDescription"),children:0===m.jiraApiCalls.items.length?(0,t.jsx)(k,{children:e("noCalls")}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(y.Table,{children:[(0,t.jsx)(y.TableHeader,{children:(0,t.jsxs)(y.TableRow,{children:[(0,t.jsx)(y.TableHead,{children:e("time")}),(0,t.jsx)(y.TableHead,{children:e("operation")}),(0,t.jsx)(y.TableHead,{children:e("fetched")}),(0,t.jsx)(y.TableHead,{children:e("source")}),(0,t.jsx)(y.TableHead,{children:e("duration")}),(0,t.jsx)(y.TableHead,{children:e("error")})]})}),(0,t.jsx)(y.TableBody,{children:m.jiraApiCalls.items.map(r=>(0,t.jsxs)(y.TableRow,{children:[(0,t.jsx)(y.TableCell,{children:w(r.createdAt)}),(0,t.jsx)(y.TableCell,{className:"font-medium",children:r.operation.replaceAll("_"," ")}),(0,t.jsxs)(y.TableCell,{className:"max-w-sm whitespace-normal",children:[r.requestSummary,null!==r.itemCount?` \xb7 ${r.itemCount}`:""]}),(0,t.jsx)(y.TableCell,{children:(0,t.jsxs)(u.Badge,{className:C(r.source),children:[e(`sources.${r.source}`),r.servedStale?` \xb7 ${e("stale")}`:""]})}),(0,t.jsxs)(y.TableCell,{children:[r.durationMs," ms"]}),(0,t.jsx)(y.TableCell,{className:"max-w-sm whitespace-normal text-destructive",children:r.error??"—"})]},r.id))})]}),(0,t.jsx)(E,{offset:$,setOffset:R,total:m.jiraApiCalls.total})]})}),(0,t.jsx)(N,{title:e("ticketsTitle"),description:e("ticketsDescription"),children:0===m.jiraCachedTickets.items.length?(0,t.jsx)(k,{children:e("noTickets")}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(y.Table,{children:[(0,t.jsx)(y.TableHeader,{children:(0,t.jsxs)(y.TableRow,{children:[(0,t.jsx)(y.TableHead,{children:e("ticket")}),(0,t.jsx)(y.TableHead,{children:e("status")}),(0,t.jsx)(y.TableHead,{children:e("coverage")}),(0,t.jsx)(y.TableHead,{children:e("freshness")}),(0,t.jsx)(y.TableHead,{children:e("lastFetched")}),(0,t.jsx)(y.TableHead,{className:"text-right",children:e("actions")})]})}),(0,t.jsx)(y.TableBody,{children:m.jiraCachedTickets.items.map(i=>(0,t.jsxs)(y.TableRow,{children:[(0,t.jsxs)(y.TableCell,{children:[(0,t.jsxs)("p",{className:"font-medium",children:[i.issueKey," · ",i.summary]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i.projectKey})]}),(0,t.jsx)(y.TableCell,{children:i.status??"—"}),(0,t.jsx)(y.TableCell,{children:(0,t.jsx)(u.Badge,{children:i.coverage})}),(0,t.jsx)(y.TableCell,{children:(0,t.jsx)(u.Badge,{className:i.stale?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":C("CACHE"),children:i.stale?e("stale"):e("fresh")})}),(0,t.jsx)(y.TableCell,{children:w(i.detailFetchedAt??i.summaryFetchedAt)}),(0,t.jsx)(y.TableCell,{children:(0,t.jsxs)("div",{className:"flex justify-end gap-1",children:[(0,t.jsx)(p.Button,{asChild:!0,size:"icon-sm",variant:"ghost",children:(0,t.jsxs)(b.Link,{href:`/jira/cache/tickets/${i.issueKey}`,children:[(0,t.jsx)(a.ExternalLink,{}),(0,t.jsx)("span",{className:"sr-only",children:e("open")})]})}),(0,t.jsxs)(p.Button,{disabled:O===i.issueKey,onClick:()=>void F(i.issueKey),size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(n.RefreshCw,{className:O===i.issueKey?"animate-spin":void 0}),(0,t.jsx)("span",{className:"sr-only",children:e("refresh")})]}),(0,t.jsx)(c.ConfirmationDialog,{actionLabel:e("delete"),cancelLabel:r("cancel"),description:r("cannotBeUndone"),onConfirm:()=>K(i.issueKey),title:e("confirmDeleteTicket",{issueKey:i.issueKey}),trigger:(0,t.jsxs)(p.Button,{disabled:O===i.issueKey,size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(s.Trash2,{}),(0,t.jsx)("span",{className:"sr-only",children:e("delete")})]})})]})})]},i.issueKey))})]}),(0,t.jsx)(E,{offset:D,setOffset:M,total:m.jiraCachedTickets.total})]})})]})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,634398,e=>{"use strict";let a=(0,e.i(456420).default)("git-pull-request",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]);e.s(["GitPullRequest",0,a],634398)},93384,e=>{"use strict";let a=(0,e.i(456420).default)("hammer",[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]);e.s(["Hammer",0,a],93384)},902434,e=>{"use strict";let a=(0,e.i(456420).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["default",0,a])},835079,e=>{"use strict";let a=(0,e.i(456420).default)("folder-git-2",[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);e.s(["FolderGit2",0,a],835079)},966473,e=>{"use strict";let a=(0,e.i(456420).default)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["PlayCircle",0,a],966473)},927735,e=>{"use strict";let a=(0,e.i(456420).default)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]);e.s(["MessageSquareText",0,a],927735)},747925,e=>{"use strict";let a=(0,e.i(456420).default)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);e.s(["Wrench",0,a],747925)},263676,e=>{"use strict";var a=e.i(814387);e.s(["X",()=>a.default])},809584,e=>{"use strict";let a=(0,e.i(456420).default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",0,a],809584)},166794,328623,e=>{"use strict";var a=e.i(456420);let i=(0,a.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,i],166794);let t=(0,a.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],328623)},175696,e=>{"use strict";var a=e.i(861745),i=e.i(843476);e.s(["default",0,function({locale:e,...t}){if(!e)throw Error(void 0);return(0,i.jsx)(a.IntlProvider,{locale:e,...t})}])},763141,e=>{"use strict";var a=e.i(843476),i=e.i(456420);let t=(0,i.default)("blocks",[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]),s=(0,i.default)("chart-no-axes-combined",[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14.639V21",key:"1s85h0"}],["path",{d:"M20 10.656V21",key:"q45596"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18.463V21",key:"1otddq"}],["path",{d:"M8 14.656V21",key:"1t2idw"}]]),r=(0,i.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);var l=e.i(809584),n=e.i(634398),d=e.i(269846);let c=(0,i.default)("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]);var o=e.i(93384),h=e.i(835079),u=e.i(902434),u=u,x=e.i(927735);let p=(0,i.default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),b=(0,i.default)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);var f=e.i(966473),m=e.i(166794),g=e.i(328623);let j=(0,i.default)("ticket-check",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var v=e.i(747925),k=e.i(263676),y=e.i(948148),w=e.i(519455),M=e.i(271645),C=e.i(225913),N=e.i(709840);let z="(max-width: 767px)";function L(e){let a=window.matchMedia(z);return a.addEventListener("change",e),()=>a.removeEventListener("change",e)}function A(){return window.matchMedia(z).matches}function S(){return!1}var q=e.i(975157);e.i(793479),e.i(772436);var W=e.i(980376),_=e.i(746798);let T=M.createContext(null);function H(){let e=M.useContext(T);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function V({defaultOpen:e=!0,open:i,onOpenChange:t,cookieName:s="sidebar_state",keyboardShortcut:r="b",className:l,style:n,children:d,...c}){let o=M.useSyncExternalStore(L,A,S),[h,u]=M.useState(!1),[x,p]=M.useState(e),b=i??x,f=M.useCallback(e=>{let a="function"==typeof e?e(b):e;t?t(a):p(a),document.cookie=`${s}=${a}; path=/; max-age=604800`},[s,t,b]),m=M.useCallback(()=>o?u(e=>!e):f(e=>!e),[o,f,u]);M.useEffect(()=>{if(null===r)return;let e=e=>{e.key.toLowerCase()===r.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r,m]);let g=b?"expanded":"collapsed",j=M.useMemo(()=>({state:g,open:b,setOpen:f,isMobile:o,openMobile:h,setOpenMobile:u,toggleSidebar:m}),[g,b,f,o,h,u,m]);return(0,a.jsx)(T.Provider,{value:j,children:(0,a.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...n},className:(0,q.cn)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",l),...c,children:d})})}function D({side:e="left",variant:i="sidebar",collapsible:t="offcanvas",mobileTitle:s="Sidebar",mobileDescription:r="Displays the mobile sidebar.",className:l,children:n,dir:d,...c}){let{isMobile:o,state:h,openMobile:u,setOpenMobile:x}=H();return"none"===t?(0,a.jsx)("div",{"data-slot":"sidebar",className:(0,q.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",l),...c,children:n}):o?(0,a.jsx)(W.Sheet,{open:u,onOpenChange:x,...c,children:(0,a.jsxs)(W.SheetContent,{dir:d,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,a.jsxs)(W.SheetHeader,{className:"sr-only",children:[(0,a.jsx)(W.SheetTitle,{children:s}),(0,a.jsx)(W.SheetDescription,{children:r})]}),(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,a.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":h,"data-collapsible":"collapsed"===h?t:"","data-variant":i,"data-side":e,"data-slot":"sidebar",children:[(0,a.jsx)("div",{"data-slot":"sidebar-gap",className:(0,q.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===i||"inset"===i?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,a.jsx)("div",{"data-slot":"sidebar-container","data-side":e,className:(0,q.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex","floating"===i||"inset"===i?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",l),...c,children:(0,a.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:n})})]})}function P({className:e,...i}){return(0,a.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,q.cn)("flex flex-col gap-2 p-2",e),...i})}function E({className:e,...i}){return(0,a.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,q.cn)("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...i})}function O({className:e,...i}){return(0,a.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,q.cn)("relative flex w-full min-w-0 flex-col p-2",e),...i})}function R({className:e,asChild:i=!1,...t}){let s=i?N.Slot.Root:"div";return(0,a.jsx)(s,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,q.cn)("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",e),...t})}function B({className:e,...i}){return(0,a.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:(0,q.cn)("w-full text-sm",e),...i})}function G({className:e,...i}){return(0,a.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,q.cn)("flex w-full min-w-0 flex-col gap-0",e),...i})}function K({className:e,...i}){return(0,a.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,q.cn)("group/menu-item relative",e),...i})}let F=(0,C.cva)("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function U({asChild:e=!1,isActive:i=!1,variant:t="default",size:s="default",tooltip:r,className:l,...n}){let d=e?N.Slot.Root:"button",{isMobile:c,state:o}=H(),h=(0,a.jsx)(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":s,"data-active":i,className:(0,q.cn)(F({variant:t,size:s}),l),...n});return r?("string"==typeof r&&(r={children:r}),(0,a.jsxs)(_.Tooltip,{children:[(0,a.jsx)(_.TooltipTrigger,{asChild:!0,children:h}),(0,a.jsx)(_.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==o||c,...r})]})):h}var X=e.i(520133);function $({children:e,rightDefaultOpen:i}){let t=H();return(0,a.jsx)(V,{cookieName:"ade_sidebar_right",defaultOpen:i,keyboardShortcut:null,className:"h-full min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,a.jsx)(I,{leftSidebar:t,children:e})})}function I({children:e,leftSidebar:i}){let t=H();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative flex h-full min-h-0 min-w-0 w-full flex-1 flex-col bg-background","data-slot":"sidebar-inset",children:[(0,a.jsx)(Z,{leftSidebar:i,rightSidebar:t}),(0,a.jsx)("main",{className:"min-h-0 w-full flex-1 overflow-y-auto overscroll-contain [-webkit-overflow-scrolling:touch]",children:(0,a.jsx)("div",{className:"w-full p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:p-6 sm:pb-[calc(1.5rem+env(safe-area-inset-bottom))]",children:e})})]}),(0,a.jsx)(ee,{})]})}function Z({leftSidebar:e,rightSidebar:i}){let t=(0,y.useTranslations)("shell"),s=e.isMobile?e.openMobile:e.open,r=i.isMobile?i.openMobile:i.open;return(0,a.jsxs)("header",{className:"sticky top-0 z-30 shrink-0 border-b bg-background/90 backdrop-blur-xl backdrop-saturate-150 supports-backdrop-filter:bg-background/70",children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"h-[env(safe-area-inset-top)]"}),(0,a.jsxs)("div",{className:"grid h-14 grid-cols-[2.5rem_minmax(0,1fr)_2.5rem] items-center pr-[max(0.75rem,env(safe-area-inset-right))] pl-[max(0.75rem,env(safe-area-inset-left))] sm:pr-[max(1rem,env(safe-area-inset-right))] sm:pl-[max(1rem,env(safe-area-inset-left))]",children:[(0,a.jsx)(J,{expanded:s,hideLabel:t("hideNavigation"),onClick:e.toggleSidebar,showLabel:t("showNavigation"),side:"left"}),(0,a.jsx)("p",{className:"truncate px-3 text-center text-sm font-medium",children:t("welcome")}),(0,a.jsx)(J,{expanded:r,hideLabel:t("hideNotifications"),onClick:i.toggleSidebar,showLabel:t("showNotifications"),side:"right"})]})]})}function J({expanded:e,hideLabel:i,onClick:t,showLabel:s,side:r}){let l=e?i:s;return(0,a.jsx)(w.Button,{"aria-expanded":e,"aria-label":l,className:"size-10 touch-manipulation",onClick:t,size:"icon-lg",title:l,type:"button",variant:"ghost",children:(0,a.jsx)("left"===r?p:b,{})})}function Q({label:e}){let{setOpenMobile:i}=H();return(0,a.jsx)(w.Button,{"aria-label":e,className:"ml-auto size-10 touch-manipulation md:hidden",onClick:()=>i(!1),size:"icon-lg",title:e,type:"button",variant:"ghost",children:(0,a.jsx)(k.X,{})})}function Y(){let e=(0,y.useTranslations)("shell"),{isMobile:i,setOpenMobile:p}=H(),b=(0,X.usePathname)();return(0,a.jsxs)(D,{collapsible:"offcanvas",mobileDescription:e("navigationDescription"),mobileTitle:e("navigation"),side:"left",children:[(0,a.jsx)(P,{className:"border-b border-sidebar-border pt-[max(0.5rem,env(safe-area-inset-top))] md:pt-2",children:(0,a.jsxs)("div",{className:"flex min-h-10 items-center gap-2 px-2",children:[(0,a.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground",children:(0,a.jsx)(t,{className:"size-4"})}),(0,a.jsx)("span",{className:"text-sm leading-tight font-semibold",children:e("productName")}),(0,a.jsx)(Q,{label:e("closeNavigation")})]})}),(0,a.jsxs)(E,{children:[(0,a.jsxs)(O,{children:[(0,a.jsx)(R,{children:e("dashboard")}),(0,a.jsx)(B,{children:(0,a.jsxs)(G,{children:[(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:"/"===b,children:(0,a.jsxs)(X.Link,{href:"/",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(u.default,{}),(0,a.jsx)("span",{children:e("welcome")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/build-data"),children:(0,a.jsxs)(X.Link,{href:"/build-data",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(c,{}),(0,a.jsx)("span",{children:e("buildData")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/builds"),children:(0,a.jsxs)(X.Link,{href:"/builds",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(o.Hammer,{}),(0,a.jsx)("span",{children:e("builds")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/worktrees"),children:(0,a.jsxs)(X.Link,{href:"/worktrees",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(d.GitBranch,{}),(0,a.jsx)("span",{children:e("worktrees")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/codebases"),children:(0,a.jsxs)(X.Link,{href:"/codebases",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(h.FolderGit2,{}),(0,a.jsx)("span",{children:e("codebases")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/agents")||b.startsWith("/jobs"),children:(0,a.jsxs)(X.Link,{href:"/agents",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(r,{}),(0,a.jsx)("span",{children:e("agents")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/usage"),children:(0,a.jsxs)(X.Link,{href:"/usage",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(s,{}),(0,a.jsx)("span",{children:e("usage")})]})})})]})})]}),(0,a.jsxs)(O,{children:[(0,a.jsx)(R,{children:e("github")}),(0,a.jsx)(B,{children:(0,a.jsxs)(G,{children:[(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/pull-requests"),children:(0,a.jsxs)(X.Link,{href:"/pull-requests",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(n.GitPullRequest,{}),(0,a.jsx)("span",{children:e("pullRequests")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/actions"),children:(0,a.jsxs)(X.Link,{href:"/actions",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(f.PlayCircle,{}),(0,a.jsx)("span",{children:e("actions")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/comments"),children:(0,a.jsxs)(X.Link,{href:"/comments",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(x.MessageSquareText,{}),(0,a.jsx)("span",{children:e("comments")})]})})})]})})]}),(0,a.jsxs)(O,{children:[(0,a.jsx)(R,{children:e("jira")}),(0,a.jsx)(B,{children:(0,a.jsxs)(G,{children:[(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/jira/tickets"),children:(0,a.jsxs)(X.Link,{href:"/jira/tickets",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(j,{}),(0,a.jsx)("span",{children:e("tickets")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/jira/cache"),children:(0,a.jsxs)(X.Link,{href:"/jira/cache",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(l.Database,{}),(0,a.jsx)("span",{children:e("cache")})]})})})]})})]}),(0,a.jsxs)(O,{children:[(0,a.jsx)(R,{children:e("system")}),(0,a.jsx)(B,{children:(0,a.jsxs)(G,{children:[(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/skills"),children:(0,a.jsxs)(X.Link,{href:"/skills",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(g.Sparkles,{}),(0,a.jsx)("span",{children:e("skills")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/tools"),children:(0,a.jsxs)(X.Link,{href:"/tools",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(v.Wrench,{}),(0,a.jsx)("span",{children:e("tools")})]})})}),(0,a.jsx)(K,{children:(0,a.jsx)(U,{asChild:!0,isActive:b.startsWith("/settings"),children:(0,a.jsxs)(X.Link,{href:"/settings",onClick:()=>{i&&p(!1)},children:[(0,a.jsx)(m.Settings,{}),(0,a.jsx)("span",{children:e("settings")})]})})})]})})]})]})]})}function ee(){let e=(0,y.useTranslations)("shell");return(0,a.jsxs)(D,{collapsible:"offcanvas",mobileDescription:e("notificationsDescription"),mobileTitle:e("notifications"),side:"right",children:[(0,a.jsx)(P,{className:"border-b border-sidebar-border pt-[max(0.5rem,env(safe-area-inset-top))] md:pt-2",children:(0,a.jsxs)("div",{className:"flex min-h-10 items-center px-2",children:[(0,a.jsx)("h2",{className:"text-sm font-semibold",children:e("notifications")}),(0,a.jsx)(Q,{label:e("closeNotifications")})]})}),(0,a.jsx)(E,{})]})}e.s(["AppShell",0,function({children:e,leftDefaultOpen:i,rightDefaultOpen:t}){return(0,a.jsxs)(V,{cookieName:"ade_sidebar_left",defaultOpen:i,className:"h-dvh min-h-0 overflow-hidden",children:[(0,a.jsx)(Y,{}),(0,a.jsx)($,{rightDefaultOpen:t,children:e})]})}],763141)}]);
|