@ai-development-environment/server 0.0.99 → 0.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/standalone/.next/BUILD_ID +1 -1
- package/standalone/.next/build-manifest.json +3 -3
- package/standalone/.next/prerender-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/(dashboard)/actions/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/actions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/apps/[appId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/apps/[appId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/builds/[buildId]/output/route.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/changes/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/changes/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/commands/runs/[runId]/output/route.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/comments/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/comments/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/github-cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/github-cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/jira/tickets/[issueKey]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/jira/tickets/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/jira/tickets/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/plans/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/plans/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/plans/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/plans/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/pull-requests/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/pull-requests/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/sessions/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/sessions/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/sessions/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/sessions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/usage/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/usage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/workflows/[workflowId]/edit/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/workflows/[workflowId]/edit/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/workflows/new/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/workflows/new/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/worktrees/[worktreeId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/worktrees/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/(dashboard)/worktrees/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_global-error.html +1 -1
- package/standalone/.next/server/app/_global-error.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.html +1 -1
- package/standalone/.next/server/app/_not-found.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/api/agent/build-artifact-transfers/[transferId]/complete/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/agent/build-artifact-transfers/[transferId]/download/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/agent/build-artifact-transfers/[transferId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/agent/build-artifact-transfers/[transferId]/upload/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/notification-devices/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/gitlab/webhook/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/jira/webhook/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/sse/[token]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/sse/history/export/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
- 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.js.nft.json +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__03aos_4._.js +1 -1
- package/standalone/.next/server/chunks/_0e8lp3p._.js +1 -1
- package/standalone/.next/server/chunks/_0fwwxlu._.js +1 -1
- package/standalone/.next/server/chunks/_0h78qjg._.js +1 -1
- package/standalone/.next/server/chunks/_0ndnc91._.js +1 -1
- package/standalone/.next/server/chunks/_0wpfe7q._.js +1 -1
- package/standalone/.next/server/chunks/_1-vdyhc._.js +1 -1
- package/standalone/.next/server/chunks/_1gt6607._.js +1 -1
- package/standalone/.next/server/chunks/_1jwsn5v._.js +1 -1
- package/standalone/.next/server/chunks/_1qjb83a._.js +1 -1
- package/standalone/.next/server/chunks/_1zwfwcs._.js +1 -1
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03lyeon._.js +1 -1
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0y7gd01._.js +1 -1
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__10jrizr._.js +1 -1
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1rcvzx1._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0gsta10._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0k25g0q._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0mbr53g._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0p8nq_k._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_1gn4tn4._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_workflows_workflow-editor_tsx_1eo69h2._.js +1 -1
- package/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/standalone/.next/server/pages/404.html +1 -1
- package/standalone/.next/server/pages/500.html +1 -1
- package/standalone/.next/server/server-reference-manifest.js +1 -1
- package/standalone/.next/server/server-reference-manifest.json +1 -1
- package/standalone/.next/static/chunks/{436x7m1mvj6hx.js → 0a2njf53y1b_a.js} +5 -5
- package/standalone/.next/static/chunks/{3rg_-g4l65tdm.js → 0ih1_jixkezy9.js} +1 -1
- package/standalone/.next/static/chunks/{1y_k2l4tani4i.js → 1-95dtd9sp1ri.js} +1 -1
- package/standalone/.next/static/chunks/117mbxzvbdo5r.js +38 -0
- package/standalone/.next/static/chunks/{1fvp3ex0gde7v.js → 1e_b3ymyt3673.js} +1 -1
- package/standalone/.next/static/chunks/{13dmoqt_x5qg3.js → 1hlskd2wydmjh.js} +1 -1
- package/standalone/.next/static/chunks/{28xljttzejclr.js → 1s-wwfg3sdyjh.js} +4 -4
- package/standalone/.next/static/chunks/2hviq_ydapgns.js +3 -0
- package/standalone/.next/static/chunks/33pqqy7c3sgg7.js +38 -0
- package/standalone/.next/static/chunks/{3fps7kmx8mnhr.js → 3oslbazmmg72z.js} +5 -5
- package/standalone/.next/static/chunks/{19o8lqhow_wle.js → 3psu0owhqo5ri.js} +6 -6
- package/standalone/.next/static/chunks/{3_08sih2rcs9k.js → 3swi28-0k8olm.js} +1 -1
- package/standalone/.next/static/chunks/{2lod_i2dzh949.js → 42ywmggw6zx17.js} +2 -2
- package/standalone/.next/static/chunks/0lriz5ed2mmt1.js +0 -3
- package/standalone/.next/static/chunks/3-pqgzhb67rrw.js +0 -38
- package/standalone/.next/static/chunks/3plqps194w7h1.js +0 -38
- /package/standalone/.next/static/{Pro8D0Hv2IhphMUT1Ihzv → y9Hi8CBWpu_MxfgH-bM8Z}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{Pro8D0Hv2IhphMUT1Ihzv → y9Hi8CBWpu_MxfgH-bM8Z}/_clientMiddlewareManifest.js +0 -0
- /package/standalone/.next/static/{Pro8D0Hv2IhphMUT1Ihzv → y9Hi8CBWpu_MxfgH-bM8Z}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,636162,e=>{"use strict";let t=(0,e.i(456420).default)("apple",[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]]);e.s(["Apple",0,t],636162)},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},159888,e=>{"use strict";let t=(0,e.i(456420).default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,t],159888)},563707,e=>{"use strict";let t=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,t],563707)},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)},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)},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},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)},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)},687862,671028,e=>{"use strict";var t=e.i(843476);e.i(688194);var a=e.i(636162),r=e.i(456420);let n=(0,r.default)("app-window",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);var i=e.i(876561);let l=(0,r.default)("beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]),s=(0,r.default)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),o=(0,r.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);var d=e.i(452330);let c=(0,r.default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);e.s(["Gauge",0,c],671028);var u=e.i(93384);let p=(0,r.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),m=(0,r.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var h=e.i(21357);let f=(0,r.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var g=e.i(584026),x=e.i(986206),v=e.i(328623),b=e.i(604139);let y=(0,r.default)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]);var j=e.i(747925);let k={apple:a.Apple,"app-window":n,archive:i.Archive,beaker:l,box:s,bug:o,code:d.Code2,gauge:c,hammer:u.Hammer,layers:p,package:m,play:h.Play,rocket:f,shield:g.ShieldCheck,smartphone:x.Smartphone,sparkles:v.Sparkles,terminal:b.Terminal,"test-tube":y,wrench:j.Wrench};e.s(["ConfigurationIcon",0,function({iconKey:e}){if(!e)return null;let a=k[e];return a?(0,t.jsx)(a,{"aria-hidden":!0,className:"size-4"}):null}],687862)},983913,e=>{"use strict";var t=e.i(843476),a=e.i(563707),r=e.i(271645),n=e.i(519455),i=e.i(317056),l=e.i(906197),s=e.i(337822),o=e.i(975157);e.s(["SearchableSelect",0,function({value:e,onValueChange:d,options:c,placeholder:u,searchPlaceholder:p,emptyMessage:m,ariaLabel:h,disabled:f,className:g,showSelectedDetails:x=!1,allowCustomValue:v=!1,clearLabel:b}){let[y,j]=(0,r.useState)(!1),[k,w]=(0,r.useState)(""),C=(0,r.useCallback)(e=>{e&&e.addEventListener("wheel",e=>e.stopPropagation())},[]),M=c.find(t=>t.value===e),N=M?.label??(e||u),z=k.trim(),P=v&&z.length>0&&!c.some(e=>e.value.toLowerCase()===z.toLowerCase()||e.label.toLowerCase()===z.toLowerCase());return(0,t.jsxs)(s.Popover,{onOpenChange:e=>{j(e),e||w("")},open:y,children:[(0,t.jsx)(s.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{"aria-expanded":y,"aria-label":h,className:(0,o.cn)("min-w-0 w-full justify-between font-normal",x&&M&&"h-auto min-h-8 py-2",g),disabled:f,role:"combobox",type:"button",variant:"outline",children:[x&&M?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:M.label}),M.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:M.description}),M.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:M.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:N}),(0,t.jsx)(a.ChevronsUpDown,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(s.PopoverContent,{ref:C,align:"start",className:"z-70 max-h-[min(24rem,var(--radix-popover-content-available-height))] w-(--radix-popover-trigger-width) overflow-hidden p-0",children:(0,t.jsxs)(i.Command,{className:"min-h-0",label:p,children:[(0,t.jsx)(i.CommandInput,{"aria-label":p,autoFocus:!0,onValueChange:w,placeholder:p,value:k}),(0,t.jsxs)(i.CommandList,{className:"min-h-0 flex-1 max-h-64 overscroll-contain [scrollbar-width:thin] [&::-webkit-scrollbar]:block [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border",children:[(0,t.jsx)(i.CommandEmpty,{children:m}),(0,t.jsxs)(i.CommandGroup,{children:[b&&e&&(0,t.jsx)(i.CommandItem,{"aria-label":b,onSelect:()=>{d(""),w(""),j(!1)},value:"__clear_selection__",children:b}),P&&(0,t.jsx)(i.CommandItem,{"aria-label":z,onSelect:()=>{d(z),w(""),j(!1)},value:z,children:(0,t.jsx)(l.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsx)(l.ItemContent,{className:"min-w-0",children:(0,t.jsx)(l.ItemTitle,{className:"block truncate",children:z})})})}),c.map(a=>(0,t.jsx)(i.CommandItem,{"aria-label":[a.label,a.description,a.secondaryDescription].filter(Boolean).join(", "),"aria-selected":a.value===e,className:"items-start py-2","data-checked":a.value===e,disabled:a.disabled,keywords:[a.label,a.description??"",a.secondaryDescription??"",a.keywords??""],onSelect:()=>{d(a.value),w(""),j(!1)},value:a.value,children:(0,t.jsx)(l.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(l.ItemContent,{className:"min-w-0",children:[(0,t.jsx)(l.ItemTitle,{className:"block truncate",children:a.label}),a.description&&(0,t.jsx)(l.ItemDescription,{className:"block truncate",children:a.description}),a.secondaryDescription&&(0,t.jsx)(l.ItemDescription,{className:"block truncate",children:a.secondaryDescription})]})})},a.value))]})]})]})})]})}])},633785,555291,e=>{"use strict";var t,a,r,n=e.i(843476),i=e.i(397142),l=e.i(975157);let s=["low","medium","high","xhigh","max","ultra"],o=["#38bdf8","#818cf8","#a78bfa","#e879f9","#fb7185","#fb923c"];e.s(["EffortIcon",0,function({className:e,effort:t,efforts:a}){let r=t?.toLowerCase()??"auto",d=(a??s).map(e=>e.toLowerCase()).filter(e=>"auto"!==e),c=d.indexOf(r)+1;if(!c)return(0,n.jsx)(i.Cpu,{"aria-hidden":"true",className:(0,l.cn)("h-4 w-5 shrink-0",e)});let u=d.length-1,p=Math.min(5,(17-u)/d.length),m=(20-(d.length*p+ +u))/2,h=Math.max(2.5,12.5/(d.length+1));return(0,n.jsx)("svg",{"aria-hidden":"true",className:(0,l.cn)("h-4 w-5 shrink-0",e),viewBox:"0 0 20 16",xmlns:"http://www.w3.org/2000/svg",children:d.map((e,t)=>{let a=u?h+(12.5-h)*t/u:12.5,i=t<c;return(0,n.jsx)("rect",{fill:i&&"ultra"===r?o[Math.round(t/(u||1)*(o.length-1))]:"currentColor",height:a,opacity:i?1:.25,rx:.6,width:p,x:m+t*(p+1),y:14-a},e)})})}],633785);var d=e.i(271645);function c(){return(c=Object.assign.bind()).apply(null,arguments)}function u(){return(u=Object.assign.bind()).apply(null,arguments)}function p(){return(p=Object.assign.bind()).apply(null,arguments)}let m={CODEX:function(e){return d.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24"},e),a||(a=d.createElement("path",{d:"M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.8.8 0 0 0-.856 0zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.43.43 0 0 1 .476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142a.45.45 0 0 1-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.48 4.48 0 0 1 4.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.43.43 0 0 1-.476 0m-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71a.79.79 0 0 0 .856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523m5.899 2.83a5.95 5.95 0 0 0 5.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947a5.7 5.7 0 0 0-1.88.31A5.96 5.96 0 0 0 10.205 0a5.95 5.95 0 0 0-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 0 0 4.162 1.713z"})))},CLAUDE:function(e){return d.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24"},e),t||(t=d.createElement("path",{d:"M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0v-3.1h3V5h17.998zM6 10.949h1.488V8.102H6zm10.51 0H18V8.102h-1.49z",clipRule:"evenodd"})))},OPENCODE:function(e){return d.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24"},e),r||(r=d.createElement("path",{d:"M16 6H8v12h8zm4 16H4V2h16z"})))}};e.s(["ProviderIcon",0,function({className:e,provider:t}){let a=m[t];return a?(0,n.jsx)(a,{"aria-hidden":"true",className:(0,l.cn)("size-4 shrink-0",e)}):null}],555291)},814760,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(563707),n=e.i(456420);let i=(0,n.default)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),l=(0,n.default)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);var s=e.i(948148),o=e.i(519455),d=e.i(317056),c=e.i(337822),u=e.i(746798),p=e.i(767648),m=e.i(975157),h=e.i(633785);let f="aide.model-presets.v1",g="aide:model-presets";function x({provider:e,model:t,effort:a}){return`${e}\u0000${t}\u0000${a}`}function v(e,t){return x(e)===x(t)}function b(){try{let e=window.localStorage.getItem(f)??"",t=window.localStorage.getItem("aide.favorite-models.v1")??"";return`${e}\u0000${t}`}catch{return"\0"}}function y(e){return window.addEventListener("storage",e),window.addEventListener(g,e),()=>{window.removeEventListener("storage",e),window.removeEventListener(g,e)}}function j(e){try{return e?JSON.parse(e):null}catch{return null}}function k(e){return Array.isArray(e)?e.flatMap(e=>{if(!e||"object"!=typeof e)return[];let{provider:t,model:a,effort:r}=e;return"string"!=typeof t||"string"!=typeof a?[]:[{provider:t,model:a,effort:"string"==typeof r?r:"auto"}]}):[]}function w(e){try{window.localStorage.setItem(f,JSON.stringify(e)),window.dispatchEvent(new Event(g))}catch{}}var C=e.i(555291);let M=["CODEX","CLAUDE","OPENCODE"];function N({label:e}){let{name:a,qualifier:r}=(0,p.splitModelLabel)(e);return(0,t.jsxs)(t.Fragment,{children:[a,r&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:r})]})]})}let z="data-[checked=true]:ring-1 data-[checked=true]:ring-inset data-[checked=true]:ring-primary/40";e.s(["ModelEffortPicker",0,function({catalog:e,provider:n,model:p,effort:f,onProviderChange:g,onModelChange:P,onEffortChange:I,isProviderDisabled:T,fullWidth:E}){let S,A,V,H=(0,s.useTranslations)("runs"),{rail:R,pinned:D,recent:G,isPinned:O,togglePin:$,remember:_}=(S=function(e){var t;let[a="",r=""]=e.split("\0"),n=j(a);if(n&&"object"==typeof n){let{pinned:e,recent:t}=n;return{pinned:k(e),recent:k(t)}}return{pinned:!(t=j(r))||"object"!=typeof t||Array.isArray(t)?[]:Object.entries(t).flatMap(([e,t])=>Array.isArray(t)?t.filter(e=>"string"==typeof e).map(t=>({provider:e,model:t,effort:"auto"})):[]),recent:[]}}((0,a.useSyncExternalStore)(y,b,()=>"\0")),A=e=>S.pinned.some(t=>v(t,e)),V=S.recent.filter(e=>!A(e)),{isPinned:A,pinned:S.pinned,recent:V,rail:[...S.pinned,...V],togglePin:e=>w({pinned:A(e)?S.pinned.filter(t=>!v(t,e)):[...S.pinned,e],recent:S.recent.filter(t=>!v(t,e))}),remember:e=>{A(e)||w({pinned:S.pinned,recent:[e,...S.recent.filter(t=>!v(t,e))].slice(0,6)})}}),[L,B]=(0,a.useState)(!1),q=[...e].sort((e,t)=>{let a=M.indexOf(e.key),r=M.indexOf(t.key);return(a<0?M.length:a)-(r<0?M.length:r)}),F=e=>!e.available||!!T?.(e),U=q.find(({key:e})=>e===n),K=U?.models.find(({id:e})=>e===p),W=K?{provider:n,model:p,effort:f}:null,J=K?.efforts.length?K.efforts:["auto"],X=e=>e.flatMap(e=>{let t=q.find(({key:t})=>t===e.provider),a=t?.models.find(({id:t})=>t===e.model);return!t||!a||F(t)?[]:[{preset:e,entry:t,model:a}]}),Z=X(R).filter(({preset:e})=>!W||!v(e,W)),Q=X(D),Y=X(G).slice(0,5),ee=e=>{e.provider!==n&&g(e.provider),P(e.model),I(e.effort),_(e)},et=e=>{ee(e),B(!1)},ea=({preset:e,entry:a,model:r})=>(0,t.jsxs)(d.CommandItem,{className:z,"data-checked":!!(W&&v(e,W)),onSelect:()=>et(e),value:`${a.label} ${r.label} ${r.id} ${e.effort}`,children:[(0,t.jsx)(C.ProviderIcon,{provider:a.key}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:(0,t.jsx)(N,{label:r.label})}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-muted-foreground","data-slot":"command-shortcut",children:[(0,t.jsx)(h.EffortIcon,{effort:e.effort,efforts:r.efforts}),(0,t.jsx)("span",{className:"text-xs",children:e.effort})]})]},x(e)),er=Z.slice(0,6),{railRef:en,visible:ei}=function(e){let t=(0,a.useRef)(null),[r,n]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=t.current;if(!e)return;let a=()=>{let[t,...a]=[...e.children];if(!t)return;let r=Number.parseFloat(getComputedStyle(e).columnGap)||0,i=t.offsetWidth,l=0;for(let t of a){let a=i+r+t.offsetWidth;if(a>e.clientWidth)break;i=a,l+=1}n(l)},r="u"<typeof ResizeObserver?null:new ResizeObserver(a);if(r?.observe(e),r)for(let t of e.children)r.observe(t);return window.addEventListener("resize",a),a(),()=>{r?.disconnect(),window.removeEventListener("resize",a)}},[e]),{railRef:t,visible:r}}([W&&x(W),...er.map(({preset:e})=>x(e))].join("|"));return(0,t.jsxs)("div",{className:(0,m.cn)("flex items-center gap-2 overflow-hidden",E&&"w-full"),ref:en,children:[(0,t.jsxs)(c.Popover,{onOpenChange:B,open:L,children:[(0,t.jsx)(c.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{className:(0,m.cn)("h-8 min-w-0 font-normal",E?"w-full justify-between":"max-w-full shrink-0"),type:"button",variant:"outline",children:[(0,t.jsx)("span",{className:"flex min-w-0 items-center gap-2",children:U&&K?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C.ProviderIcon,{provider:U.key}),(0,t.jsx)("span",{className:"max-w-48 truncate",children:(0,t.jsx)(N,{label:K.label})}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,t.jsx)(h.EffortIcon,{effort:f,efforts:K.efforts}),(0,t.jsx)("span",{className:"text-muted-foreground",children:f})]}):(0,t.jsx)("span",{className:"text-muted-foreground",children:H("chooseModel")})}),(0,t.jsx)(r.ChevronsUpDown,{className:"text-muted-foreground"})]})}),(0,t.jsxs)(c.PopoverContent,{align:"start",className:"w-max max-w-[min(32rem,calc(100vw-2rem))] gap-0 p-0",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"h-0 overflow-hidden",children:q.flatMap(e=>e.models.map(a=>{var r;return(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 text-sm whitespace-nowrap",children:[(0,t.jsx)("span",{className:"size-4"}),(0,t.jsx)("span",{children:(0,t.jsx)(N,{label:a.label})}),(0,t.jsx)("span",{style:{width:24*(r=Math.max(a.efforts.length,1))+2*Math.max(r-1,0)}})]},`${e.key}/${a.id}`)}))}),(0,t.jsxs)(d.Command,{children:[(0,t.jsx)(d.CommandInput,{placeholder:H("search",{kind:H("model").toLowerCase()})}),(0,t.jsxs)(d.CommandList,{children:[(0,t.jsx)(d.CommandEmpty,{children:H("empty",{kind:H("model")})}),Q.length>0&&(0,t.jsx)(d.CommandGroup,{heading:H("presets"),children:Q.map(ea)}),Y.length>0&&(0,t.jsx)(d.CommandGroup,{heading:H("recentModels"),children:Y.map(ea)}),q.flatMap(e=>(function(e){let t=new Map;for(let a of e.models){let r=a.group||e.label;t.set(r,[...t.get(r)??[],a])}return[...t].map(([e,t])=>({heading:e,models:t}))})(e).map(({heading:a,models:r})=>(0,t.jsx)(d.CommandGroup,{heading:a,children:r.map(r=>{let i=e.key===n&&r.id===p,l=r.efforts.length?r.efforts:["auto"];return(0,t.jsxs)(d.CommandItem,{className:z,"data-checked":i,disabled:F(e),onSelect:()=>et({provider:e.key,model:r.id,effort:r.efforts.includes(f)?f:r.efforts.includes("auto")?"auto":r.efforts[0]??"auto"}),value:`${a} ${r.label} ${r.id}`,children:[(0,t.jsx)(C.ProviderIcon,{provider:e.key}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:(0,t.jsx)(N,{label:r.label})}),(0,t.jsx)("span",{"aria-hidden":"true",className:"invisible flex items-center gap-0.5 group-data-[selected=true]/command-item:visible pointer-coarse:visible","data-slot":"command-shortcut",children:l.map(a=>(0,t.jsx)("button",{className:(0,m.cn)("rounded p-0.5 text-muted-foreground hover:bg-background hover:text-foreground",i&&f===a&&"bg-background text-foreground"),onClick:t=>{t.preventDefault(),t.stopPropagation(),et({provider:e.key,model:r.id,effort:a})},onPointerDown:e=>e.stopPropagation(),tabIndex:-1,title:a,type:"button",children:(0,t.jsx)(h.EffortIcon,{effort:a,efforts:l})},a))})]},`${e.key}/${r.id}`)})},`${e.key}/${a}`)))]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 border-t p-2",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:H("effort")}),(0,t.jsxs)(u.TooltipProvider,{children:[(0,t.jsx)("div",{className:"flex items-center gap-0.5",children:J.map(e=>(0,t.jsxs)(u.Tooltip,{children:[(0,t.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(o.Button,{"aria-label":`${H("effort")}: ${e}`,disabled:!K,onClick:()=>{I(e),W&&_({...W,effort:e})},size:"icon-xs",type:"button",variant:f===e?"secondary":"ghost",children:(0,t.jsx)(h.EffortIcon,{effort:e,efforts:J})})}),(0,t.jsx)(u.TooltipContent,{children:e})]},e))}),(0,t.jsxs)(u.Tooltip,{children:[(0,t.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(o.Button,{"aria-label":W&&O(W)?H("unpinPreset"):H("pinPreset"),className:"ml-auto",disabled:!W,onClick:()=>W&&$(W),size:"icon-xs",type:"button",variant:"ghost",children:W&&O(W)?(0,t.jsx)(l,{}):(0,t.jsx)(i,{})})}),(0,t.jsx)(u.TooltipContent,{children:W&&O(W)?H("unpinPreset"):H("pinPreset")})]})]})]})]})]}),!E&&er.map(({preset:e,entry:a,model:r},n)=>{let i=n<ei;return(0,t.jsxs)(o.Button,{"aria-hidden":!i,className:(0,m.cn)("h-8 shrink-0 font-normal",!i&&"invisible"),onClick:()=>ee(e),tabIndex:i?void 0:-1,type:"button",variant:"ghost",children:[(0,t.jsx)(C.ProviderIcon,{provider:a.key}),(0,t.jsx)("span",{className:"max-w-32 truncate",children:(0,t.jsx)(N,{label:r.label})}),(0,t.jsx)(h.EffortIcon,{className:"text-muted-foreground",effort:e.effort,efforts:r.efforts})]},x(e))})]})}],814760)},266136,e=>{"use strict";var t=e.i(843476),a=e.i(948148),r=e.i(271645),n=e.i(687862),i=e.i(487486),l=e.i(257428),s=e.i(987968),o=e.i(637611),d=e.i(975157);let c="id name description iconKey enabledForPlans enabledForSessions toolNames createdAt updatedAt";async function u(e){return(await (0,o.controlPlaneRequest)(`query McpToolPresets($kind: RunKind) {
|
|
2
|
+
mcpToolPresets(kind: $kind) { ${c} }
|
|
3
|
+
}`,{kind:e??null})).mcpToolPresets??[]}e.s(["MCP_PRESET_FIELDS",0,c,"McpPresetPicker",0,function({kind:e,selectedIds:o,onChange:c,disabled:p=!1,showAvailability:m=null==e,className:h}){let f=(0,a.useTranslations)("mcpPresets"),[g,x]=(0,r.useState)([]),[v,b]=(0,r.useState)(!0),[y,j]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let t=!1,a=window.setTimeout(()=>{b(!0),u(e).then(e=>{t||(x(e),j(null))}).catch(e=>{t||j(e instanceof Error?e.message:String(e))}).finally(()=>{t||b(!1)})},0);return()=>{t=!0,window.clearTimeout(a)}},[e]),v&&!g.length)return(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(s.Spinner,{})," ",f("loading")]});if(y)return(0,t.jsx)("p",{className:"text-sm text-destructive",children:y});if(!g.length)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:f("noneAvailable")});let k=new Set(o);return(0,t.jsx)("div",{className:(0,d.cn)("grid gap-2 md:grid-cols-2",h),children:g.map(e=>(0,t.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 has-disabled:cursor-not-allowed has-aria-checked:border-primary/50",children:[(0,t.jsx)(l.Checkbox,{checked:k.has(e.id),disabled:p,onCheckedChange:t=>c(t?[...o,e.id]:o.filter(t=>t!==e.id))}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(n.ConfigurationIcon,{iconKey:e.iconKey}),(0,t.jsx)("span",{className:"truncate",children:e.name})]}),e.description&&(0,t.jsx)("span",{className:"mt-1 block text-xs text-muted-foreground",children:e.description}),m&&(0,t.jsxs)("span",{className:"mt-2 flex flex-wrap gap-1",children:[e.enabledForPlans&&(0,t.jsx)(i.Badge,{variant:"outline",children:f("plans")}),e.enabledForSessions&&(0,t.jsx)(i.Badge,{variant:"outline",children:f("sessions")}),!e.enabledForPlans&&!e.enabledForSessions&&(0,t.jsx)(i.Badge,{variant:"secondary",children:f("directOnly")})]})]})]},e.id))})},"loadMcpToolPresets",0,u])},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})}])},808562,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),n=e.i(248425),i=e.i(842727),l=e.i(981140),s=e.i(369340),o=Object.defineProperty,d=a.forwardRef(o(function(e,a){let{pressed:r,defaultPressed:i,onPressedChange:o,...d}=e,[c,u]=(0,s.useControllableState)({prop:r,onChange:o,defaultProp:i??!1,caller:"Toggle"});return(0,t.jsx)(n.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,l.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0})),c=e.i(586318),u=Object.defineProperty,p=(e,t)=>u(e,"name",{value:t,configurable:!0}),m="ToggleGroup",[h,f]=(0,r.createContextScope)(m,[i.createRovingFocusGroupScope]),g=(0,i.createRovingFocusGroupScope)(),x=a.forwardRef(p(function(e,a){let{type:r,...n}=e;if("single"===r)return(0,t.jsx)(y,{role:"radiogroup",...n,ref:a});if("multiple"===r)return(0,t.jsx)(j,{role:"toolbar",...n,ref:a});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[v,b]=h(m),y=a.forwardRef(p(function(e,r){let{value:n,defaultValue:i,onValueChange:l=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,s.useControllableState)({prop:n,defaultProp:i??"",onChange:l,caller:m});return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"single",value:a.useMemo(()=>d?[d]:[],[d]),onItemActivate:c,onItemDeactivate:a.useCallback(()=>c(""),[c]),children:(0,t.jsx)(C,{...o,ref:r})})},"ToggleGroupImplSingle")),j=a.forwardRef(p(function(e,r){let{value:n,defaultValue:i,onValueChange:l=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,s.useControllableState)({prop:n,defaultProp:i??[],onChange:l,caller:m}),u=a.useCallback(e=>c((t=[])=>[...t,e]),[c]),h=a.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:u,onItemDeactivate:h,children:(0,t.jsx)(C,{...o,ref:r})})},"ToggleGroupImplMultiple")),[k,w]=h(m),C=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:r,disabled:l=!1,rovingFocus:s=!0,orientation:o,dir:d,loop:u=!0,...p}=e,m=g(r),h=(0,c.useDirection)(d),f={dir:h,...p};return(0,t.jsx)(k,{scope:r,rovingFocus:s,disabled:l,children:s?(0,t.jsx)(i.Root,{asChild:!0,...m,orientation:o,dir:h,loop:u,children:(0,t.jsx)(n.Primitive.div,{...f,ref:a})}):(0,t.jsx)(n.Primitive.div,{...f,ref:a})})},"ToggleGroupImpl")),M="ToggleGroupItem",N=a.forwardRef(p(function(e,r){let n=b(M,e.__scopeToggleGroup),l=w(M,e.__scopeToggleGroup),s=g(e.__scopeToggleGroup),o=n.value.includes(e.value),d=l.disabled||e.disabled,c={...e,pressed:o,disabled:d},u=a.useRef(null);return l.rovingFocus?(0,t.jsx)(i.Item,{asChild:!0,...s,focusable:!d,active:o,ref:u,children:(0,t.jsx)(z,{...c,ref:r})}):(0,t.jsx)(z,{...c,ref:r})},"ToggleGroupItem")),z=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:r,value:n,...i}=e,l=b(M,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o="single"===l.type?s:void 0;return(0,t.jsx)(d,{...o,...i,ref:a,onPressedChange:e=>{e?l.onItemActivate(n):l.onItemDeactivate(n)}})},"ToggleGroupItemImpl"));e.s(["Item",0,N,"Root",0,x,"ToggleGroup",0,x,"ToggleGroupItem",0,N,"createToggleGroupScope",0,f],459881);var P=e.i(459881),P=P,I=e.i(975157),T=e.i(225913),E=Object.defineProperty,S=a.forwardRef(E(function(e,a){let{pressed:r,defaultPressed:i,onPressedChange:o,...d}=e,[c,u]=(0,s.useControllableState)({prop:r,onChange:o,defaultProp:i??!1,caller:"Toggle"});return(0,t.jsx)(n.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,l.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0}));e.s(["Root",0,S,"Toggle",0,S],864225),e.i(864225);let A=(0,T.cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),V=a.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:a,size:r,spacing:n=2,orientation:i="horizontal",children:l,...s}){return(0,t.jsx)(P.Root,{"data-slot":"toggle-group","data-variant":a,"data-size":r,"data-spacing":n,"data-orientation":i,style:{"--gap":n},className:(0,I.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...s,children:(0,t.jsx)(V.Provider,{value:{variant:a,size:r,spacing:n,orientation:i},children:l})})},"ToggleGroupItem",0,function({className:e,children:r,variant:n="default",size:i="default",...l}){let s=a.useContext(V);return(0,t.jsx)(P.Item,{"data-slot":"toggle-group-item","data-variant":s.variant||n,"data-size":s.size||i,"data-spacing":s.spacing,className:(0,I.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",A({variant:s.variant||n,size:s.size||i}),e),...l,children:r})}],808562)}]);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,159888,e=>{"use strict";let t=(0,e.i(456420).default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,t],159888)},563707,e=>{"use strict";let t=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,t],563707)},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},755566,e=>{"use strict";let t=(0,e.i(456420).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},853138,e=>{"use strict";var t=e.i(755566);e.s(["AlertTriangle",()=>t.default])},765649,e=>{"use strict";let t=(0,e.i(456420).default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);e.s(["UserRound",0,t],765649)},983913,e=>{"use strict";var t=e.i(843476),a=e.i(563707),r=e.i(271645),s=e.i(519455),i=e.i(317056),n=e.i(906197),l=e.i(337822),o=e.i(975157);e.s(["SearchableSelect",0,function({value:e,onValueChange:d,options:c,placeholder:u,searchPlaceholder:m,emptyMessage:x,ariaLabel:f,disabled:p,className:g,showSelectedDetails:h=!1,allowCustomValue:j=!1,clearLabel:v}){let[b,k]=(0,r.useState)(!1),[w,y]=(0,r.useState)(""),C=(0,r.useCallback)(e=>{e&&e.addEventListener("wheel",e=>e.stopPropagation())},[]),A=c.find(t=>t.value===e),I=A?.label??(e||u),N=w.trim(),D=j&&N.length>0&&!c.some(e=>e.value.toLowerCase()===N.toLowerCase()||e.label.toLowerCase()===N.toLowerCase());return(0,t.jsxs)(l.Popover,{onOpenChange:e=>{k(e),e||y("")},open:b,children:[(0,t.jsx)(l.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(s.Button,{"aria-expanded":b,"aria-label":f,className:(0,o.cn)("min-w-0 w-full justify-between font-normal",h&&A&&"h-auto min-h-8 py-2",g),disabled:p,role:"combobox",type:"button",variant:"outline",children:[h&&A?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:A.label}),A.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:A.description}),A.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:A.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:I}),(0,t.jsx)(a.ChevronsUpDown,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(l.PopoverContent,{ref:C,align:"start",className:"z-70 max-h-[min(24rem,var(--radix-popover-content-available-height))] w-(--radix-popover-trigger-width) overflow-hidden p-0",children:(0,t.jsxs)(i.Command,{className:"min-h-0",label:m,children:[(0,t.jsx)(i.CommandInput,{"aria-label":m,autoFocus:!0,onValueChange:y,placeholder:m,value:w}),(0,t.jsxs)(i.CommandList,{className:"min-h-0 flex-1 max-h-64 overscroll-contain [scrollbar-width:thin] [&::-webkit-scrollbar]:block [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border",children:[(0,t.jsx)(i.CommandEmpty,{children:x}),(0,t.jsxs)(i.CommandGroup,{children:[v&&e&&(0,t.jsx)(i.CommandItem,{"aria-label":v,onSelect:()=>{d(""),y(""),k(!1)},value:"__clear_selection__",children:v}),D&&(0,t.jsx)(i.CommandItem,{"aria-label":N,onSelect:()=>{d(N),y(""),k(!1)},value:N,children:(0,t.jsx)(n.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsx)(n.ItemContent,{className:"min-w-0",children:(0,t.jsx)(n.ItemTitle,{className:"block truncate",children:N})})})}),c.map(a=>(0,t.jsx)(i.CommandItem,{"aria-label":[a.label,a.description,a.secondaryDescription].filter(Boolean).join(", "),"aria-selected":a.value===e,className:"items-start py-2","data-checked":a.value===e,disabled:a.disabled,keywords:[a.label,a.description??"",a.secondaryDescription??"",a.keywords??""],onSelect:()=>{d(a.value),y(""),k(!1)},value:a.value,children:(0,t.jsx)(n.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(n.ItemContent,{className:"min-w-0",children:[(0,t.jsx)(n.ItemTitle,{className:"block truncate",children:a.label}),a.description&&(0,t.jsx)(n.ItemDescription,{className:"block truncate",children:a.description}),a.secondaryDescription&&(0,t.jsx)(n.ItemDescription,{className:"block truncate",children:a.secondaryDescription})]})})},a.value))]})]})]})})]})}])},340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),s=e.i(820783),i=e.i(326999),n=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),m=o(e=>{let{__scopeAlertDialog:a,...r}=e,s=u(a);return(0,t.jsx)(i.Root,{...s,...r,modal:!0})},"AlertDialog"),x=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,n=u(r);return(0,t.jsx)(i.Trigger,{...n,...s,ref:a})},"AlertDialogTrigger")),f=o(e=>{let{__scopeAlertDialog:a,...r}=e,s=u(a);return(0,t.jsx)(i.Portal,{...s,...r})},"AlertDialogPortal"),p=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,n=u(r);return(0,t.jsx)(i.Overlay,{...n,...s,ref:a})},"AlertDialogOverlay")),[g,h]=d("AlertDialogContent"),j=a.forwardRef(o(function(e,r){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),m=a.useRef(null),x=(0,s.useComposedRefs)(r,m),f=a.useRef(null);return(0,t.jsx)(g,{scope:l,cancelRef:f,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:x,onOpenAutoFocus:(0,n.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,n=u(r);return(0,t.jsx)(i.Title,{...n,...s,ref:a})},"AlertDialogTitle")),b=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,n=u(r);return(0,t.jsx)(i.Description,{...n,...s,ref:a})},"AlertDialogDescription")),k=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,n=u(r);return(0,t.jsx)(i.Close,{...n,...s,ref:a})},"AlertDialogAction")),w=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,{cancelRef:l}=h("AlertDialogCancel",r),o=u(r),d=(0,s.useComposedRefs)(a,l);return(0,t.jsx)(i.Close,{...o,...n,ref:d})},"AlertDialogCancel"));e.s(["Action",0,k,"AlertDialog",0,m,"AlertDialogAction",0,k,"AlertDialogCancel",0,w,"AlertDialogContent",0,j,"AlertDialogDescription",0,b,"AlertDialogOverlay",0,p,"AlertDialogPortal",0,f,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,x,"Cancel",0,w,"Content",0,j,"Description",0,b,"Overlay",0,p,"Portal",0,f,"Root",0,m,"Title",0,v,"Trigger",0,x,"createAlertDialogScope",0,c],691162);var y=e.i(691162),y=y,C=e.i(975157),A=e.i(519455);function I({...e}){return(0,t.jsx)(y.Root,{"data-slot":"alert-dialog",...e})}function N({...e}){return(0,t.jsx)(y.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function D({...e}){return(0,t.jsx)(y.Portal,{"data-slot":"alert-dialog-portal",...e})}function T({className:e,...a}){return(0,t.jsx)(y.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,C.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function E({className:e,size:a="default",...r}){return(0,t.jsxs)(D,{children:[(0,t.jsx)(T,{}),(0,t.jsx)(y.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,C.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})]})}function S({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,C.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function z({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,C.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function R({className:e,...a}){return(0,t.jsx)(y.Title,{"data-slot":"alert-dialog-title",className:(0,C.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function L({className:e,...a}){return(0,t.jsx)(y.Description,{"data-slot":"alert-dialog-description",className:(0,C.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function _({className:e,variant:a="default",size:r="default",...s}){return(0,t.jsx)(A.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(y.Action,{"data-slot":"alert-dialog-action",className:(0,C.cn)(e),...s})})}function P({className:e,variant:a="outline",size:r="default",...s}){return(0,t.jsx)(A.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(y.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,C.cn)(e),...s})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:s,onOpenChange:i,open:n,title:l,trigger:o}){return(0,t.jsxs)(I,{onOpenChange:i,open:n,children:[o&&(0,t.jsx)(N,{asChild:!0,children:o}),(0,t.jsxs)(E,{children:[(0,t.jsxs)(S,{children:[(0,t.jsx)(R,{children:l}),(0,t.jsx)(L,{children:r})]}),(0,t.jsxs)(z,{children:[(0,t.jsx)(P,{children:a}),(0,t.jsx)(_,{onClick:()=>void s(),variant:"destructive",children:e})]})]})]})}],340953)},356505,e=>{"use strict";var t=e.i(843476),a=e.i(853138),r=e.i(482022),s=e.i(269846);let i=(0,e.i(456420).default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);var n=e.i(948148),l=e.i(271645),o=e.i(653090),d=e.i(278015),c=e.i(762279),u=e.i(456743),m=e.i(929592),x=e.i(487486),f=e.i(519455),p=e.i(515288),g=e.i(816484),h=e.i(906197),j=e.i(980376),v=e.i(987968),b=e.i(520133),k=e.i(637611),w=e.i(741725),y=e.i(467511);let C={highest:"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300",high:"border-orange-500/30 bg-orange-500/10 text-orange-700 dark:text-orange-300",medium:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",low:"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300",lowest:"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300"};function A({ticket:e}){let a=(0,n.useTranslations)("jiraTickets"),r=[[a("assignee"),(0,t.jsx)(o.JiraUser,{avatarUrl:e.assigneeAvatarUrl,name:e.assignee??a("unassigned")},"assignee")],[a("reporter"),e.reporter?(0,t.jsx)(o.JiraUser,{avatarUrl:e.reporter.avatarUrl,name:e.reporter.displayName},"reporter"):"—"],[a("created"),(0,t.jsx)(g.DateTime,{value:e.createdAt},"created")],[a("updated"),(0,t.jsx)(g.DateTime,{value:e.updatedAt},"updated")],[a("due"),(0,t.jsx)(g.DateTime,{value:e.dueAt},"due")],[a("resolved"),(0,t.jsx)(g.DateTime,{value:e.resolvedAt},"resolved")]];return(0,t.jsx)("dl",{className:"grid gap-3 rounded-lg bg-muted/50 p-4 text-sm sm:grid-cols-2",children:r.map(([e,a])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"mt-0.5 font-medium",children:a})]},e))})}function I({label:e,values:a}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"mt-1",children:a.join(", ")})]})}e.s(["JiraTicketDrawer",0,function({issueKey:e,onClose:o,onTicketChange:g}){let N=(0,n.useTranslations)("jiraTickets"),[D,T]=(0,l.useState)(null),[E,S]=(0,l.useState)(null),[z,R]=(0,l.useState)(!1),[L,_]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!e){let e=window.setTimeout(()=>T(null),0);return()=>window.clearTimeout(e)}let t=window.setTimeout(async()=>{R(!0);try{let t=await (0,k.controlPlaneRequest)(`query JiraTicket($issueKey: ID!) { jiraTicket(issueKey: $issueKey) { ${y.JIRA_TICKET_DETAIL_FIELDS} } }`,{issueKey:e});T(t.jiraTicket),S(null)}catch(e){S(e instanceof Error?e.message:String(e))}finally{R(!1)}},0);return()=>window.clearTimeout(t)},[e]);let P=e=>{T(e),g?.(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.Sheet,{onOpenChange:e=>{e||o()},open:!!e,children:(0,t.jsxs)(j.SheetContent,{className:"w-[min(48rem,95vw)] overflow-y-auto sm:max-w-3xl",children:[(0,t.jsxs)(j.SheetHeader,{className:"border-b pr-12",children:[(0,t.jsx)(j.SheetTitle,{children:D?.key??e??N("ticket")}),(0,t.jsx)(j.SheetDescription,{children:D?.summary??N("loadingTicket")})]}),(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-6",children:[z&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(v.Spinner,{}),N("loadingTicket")]}),E&&(0,t.jsx)(m.Alert,{variant:"destructive",children:(0,t.jsx)(m.AlertDescription,{children:E})}),D&&(0,t.jsxs)(t.Fragment,{children:[(D.cache.stale||D.commentsCache.stale)&&(0,t.jsxs)(m.Alert,{className:"border-amber-500/30 bg-amber-500/10",children:[(0,t.jsx)(a.AlertTriangle,{}),(0,t.jsx)(m.AlertDescription,{children:N("staleTicket")})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(x.Badge,{children:D.status}),D.issueType&&(0,t.jsx)(x.Badge,{children:D.issueType}),D.priority&&(0,t.jsx)(x.Badge,{className:C[D.priority.trim().toLowerCase()],children:D.priority})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(f.Button,{onClick:()=>_(!0),size:"sm",variant:"outline",children:[(0,t.jsx)(s.GitBranch,{})," ",N("worktreeAction")]}),(0,t.jsx)(f.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)(b.Link,{href:`/jira/tickets/${encodeURIComponent(D.key)}`,children:[(0,t.jsx)(i,{})," ",N("openFullDetails")]})}),(0,t.jsx)(f.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{href:D.jiraUrl,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(r.ExternalLink,{})," ",N("openInJira")]})})]})]}),(0,t.jsx)(c.JiraTicketActions,{onTicketChange:P,ticket:D}),(0,t.jsx)(A,{ticket:D}),(0,t.jsx)("section",{children:(0,t.jsx)(p.Card,{size:"sm",children:(0,t.jsx)(p.CardContent,{children:(0,t.jsx)(d.JiraRichTextBlock,{content:D.descriptionContent,header:(0,t.jsx)("h3",{className:"font-semibold",children:N("descriptionTitle")}),headerClassName:"border-b pb-2",value:D.description})})})}),(D.labels.length>0||D.components.length>0||D.fixVersions.length>0||D.sprintNames.length>0)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("classification")}),(0,t.jsxs)("dl",{className:"grid gap-3 text-sm sm:grid-cols-2",children:[D.labels.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:N("labels")}),(0,t.jsx)("dd",{className:"mt-1 flex flex-wrap gap-1",children:D.labels.map(e=>(0,t.jsx)(x.Badge,{children:e},e))})]}),D.components.length>0&&(0,t.jsx)(I,{label:N("components"),values:D.components.map(e=>e.name)}),D.fixVersions.length>0&&(0,t.jsx)(I,{label:N("fixVersions"),values:D.fixVersions.map(e=>e.name)}),D.sprintNames.length>0&&(0,t.jsx)(I,{label:N("sprints"),values:D.sprintNames})]})]}),(D.parent||D.subtasks.length>0||D.issueLinks.length>0)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("relatedIssues")}),(0,t.jsx)(h.ItemGroup,{className:"gap-2",children:[...D.parent?[D.parent]:[],...D.subtasks,...D.issueLinks].map((e,a)=>(0,t.jsx)(h.Item,{asChild:!0,size:"xs",variant:"outline",children:(0,t.jsxs)(b.Link,{href:`/jira/tickets/${encodeURIComponent(e.key)}`,children:[(0,t.jsxs)(h.ItemContent,{children:[(0,t.jsxs)(h.ItemTitle,{className:"leading-tight",children:[e.key," · ",e.summary]}),(0,t.jsx)(h.ItemDescription,{className:"leading-tight",children:e.relationship})]}),(0,t.jsx)(h.ItemActions,{children:e.status&&(0,t.jsx)(x.Badge,{children:e.status})})]})},`${e.key}-${a}`))})]}),D.attachments.length>0&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("attachments")}),(0,t.jsx)(h.ItemGroup,{className:"gap-2",children:D.attachments.map(e=>(0,t.jsx)(h.Item,{asChild:!0,variant:"outline",children:(0,t.jsxs)("a",{href:e.contentUrl??"#",rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(h.ItemContent,{children:(0,t.jsx)(h.ItemTitle,{children:e.filename})}),(0,t.jsx)(h.ItemActions,{className:"text-xs text-muted-foreground",children:e.size?`${Math.round(e.size/1024)} KB`:""})]})},e.id))})]}),(0,t.jsx)(u.JiraTicketComments,{onTicketChange:P,ticket:D})]})]})]})}),D&&(0,t.jsx)(w.TicketWorktreeDialog,{issueKey:D.key,onOpenChange:_,open:L})]})}],356505)},467511,e=>{"use strict";let t="format raw rawText markdown wikiMarkup",a="accountId displayName avatarUrl",r="source stale fetchedAt",s="relationship key summary status",i="id key summary statusId status statusCategory issueType priority assignee assigneeAccountId assigneeAvatarUrl projectKey updatedAt",n=`${i}
|
|
2
|
+
jiraUrl description
|
|
3
|
+
descriptionContent { ${t} }
|
|
4
|
+
reporter { ${a} }
|
|
5
|
+
creator { ${a} }
|
|
6
|
+
labels components { id name } fixVersions { id name }
|
|
7
|
+
affectedVersions { id name } sprintNames
|
|
8
|
+
parent { ${s} }
|
|
9
|
+
subtasks { ${s} }
|
|
10
|
+
issueLinks { ${s} }
|
|
11
|
+
attachments {
|
|
12
|
+
id filename contentUrl mimeType size
|
|
13
|
+
author { ${a} }
|
|
14
|
+
createdAt
|
|
15
|
+
}
|
|
16
|
+
comments {
|
|
17
|
+
id author { ${a} } body
|
|
18
|
+
content { ${t} }
|
|
19
|
+
createdAt updatedAt
|
|
20
|
+
}
|
|
21
|
+
createdAt dueAt resolvedAt timeTracking
|
|
22
|
+
allFields {
|
|
23
|
+
id name schemaType custom value
|
|
24
|
+
content { ${t} }
|
|
25
|
+
}
|
|
26
|
+
cache { ${r} }
|
|
27
|
+
commentsCache { ${r} }`;e.s(["JIRA_CACHE_FIELDS",0,r,"JIRA_PERSON_FIELDS",0,a,"JIRA_RICH_TEXT_FIELDS",0,t,"JIRA_SUMMARY_FIELDS",0,i,"JIRA_TICKET_DETAIL_FIELDS",0,n])},799676,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(705844),s=e.i(30030),i=e.i(30207),n=e.i(934620),l=e.i(248425),o=Object.defineProperty,d=(e,t)=>o(e,"name",{value:t,configurable:!0}),c="Avatar",[u,m]=(0,s.createContextScope)(c),x=[0,()=>void 0],[f,p]=u(c),g=a.forwardRef(d(function(e,r){let{__scopeAvatar:s,...i}=e,[n,o]=a.useState("idle"),[d,c]=k();return(0,t.jsx)(f,{scope:s,imageLoadingStatus:n,setImageLoadingStatus:o,imageCount:d,setImageCount:c,children:(0,t.jsx)(l.Primitive.span,{...i,ref:r})})},"Avatar")),h=a.forwardRef(d(function(e,r){let{__scopeAvatar:s,src:o,onLoadingStatusChange:d,...c}=e,u=p("AvatarImage",s);w(u.setImageCount);let m=v(o,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:u.imageLoadingStatus,setLoadingStatus:u.setImageLoadingStatus}),x=(0,i.useCallbackRef)(e=>{d?.(e)}),f=a.useRef(m);return(0,n.useLayoutEffect)(()=>{let e=f.current;f.current=m,m!==e&&x(m)},[m,x]),"loaded"===m?(0,t.jsx)(l.Primitive.img,{...c,ref:r,src:o}):null},"AvatarImage")),j=a.forwardRef(d(function(e,r){let{__scopeAvatar:s,delayMs:i,...n}=e,o=p("AvatarFallback",s),[d,c]=a.useState(void 0===i);return a.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>c(!0),i);return()=>window.clearTimeout(e)}},[i]),d&&"loaded"!==o.imageLoadingStatus?(0,t.jsx)(l.Primitive.span,{...n,ref:r}):null},"AvatarFallback"));function v(e,{loadingStatus:t,setLoadingStatus:a,referrerPolicy:r,crossOrigin:s}){return(0,n.useLayoutEffect)(()=>{if(!e)return void a("error");let t=new window.Image,i=d(e=>{a(b(e.currentTarget))},"handleLoad"),n=d(()=>a("error"),"handleError");return t.addEventListener("load",i),t.addEventListener("error",n),r&&(t.referrerPolicy=r),t.crossOrigin=s??null,t.src=e,a(b(t)),()=>{t.removeEventListener("load",i),t.removeEventListener("error",n),a("idle")}},[e,s,r,a]),t}function b(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function k(){let e=x;if(r.IS_DEVELOPMENT){let[t]=e=a.useState(0),r=a.useRef(!1);a.useEffect(()=>{t>1&&!r.current&&(r.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}function w(e){r.IS_DEVELOPMENT&&a.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])}d(v,"useImageLoadingStatus"),d(b,"getImageLoadingStatus"),d(k,"useImageCount"),d(w,"useUpdateImageCount"),e.s(["Avatar",0,g,"AvatarFallback",0,j,"AvatarImage",0,h,"Fallback",0,j,"Image",0,h,"Root",0,g,"createAvatarScope",0,m],97456);var y=e.i(97456),y=y,C=e.i(975157);e.s(["Avatar",0,function({className:e,size:a="default",...r}){return(0,t.jsx)(y.Root,{className:(0,C.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),"data-size":a,"data-slot":"avatar",...r})},"AvatarFallback",0,function({className:e,...a}){return(0,t.jsx)(y.Fallback,{className:(0,C.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),"data-slot":"avatar-fallback",...a})},"AvatarImage",0,function({className:e,...a}){return(0,t.jsx)(y.Image,{className:(0,C.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...a})}],799676)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let s=(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)(s({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})}])},440289,e=>{"use strict";var t=e.i(637611);async function a(e){let a=Date.now()+6e5;for(;Date.now()<a;){await new Promise(e=>window.setTimeout(e,750));let a=(await (0,t.controlPlaneRequest)(`query WorktreeJob($id: ID!) {
|
|
28
|
+
agentJob(id: $id) {
|
|
29
|
+
status error
|
|
30
|
+
worktreeOperationResult { outcome preparationConflictPaths }
|
|
31
|
+
}
|
|
32
|
+
}`,{id:e})).agentJob;if(!(!a||["QUEUED","RUNNING"].includes(a.status))){if("SUCCEEDED"!==a.status)throw Error(a.error||`Worktree operation ${a.status.toLowerCase()}`);return a.worktreeOperationResult}}throw Error("Worktree operation is still running; check the agent job history")}async function r(e){await a(e)}async function s(e){let a=Date.now()+12e5;for(;Date.now()<a;){await new Promise(e=>window.setTimeout(e,750));let a=(await (0,t.controlPlaneRequest)(`query WorktreeMove($id: ID!) {
|
|
33
|
+
worktreeMove(id: $id) {
|
|
34
|
+
id sourceWorktreeId sourceCodebaseId targetCodebaseId targetWorktreeId destinationMode
|
|
35
|
+
branch headSha deleteSource status sourceJobId targetJobId cleanupJobId error warning
|
|
36
|
+
createdAt updatedAt finishedAt
|
|
37
|
+
}
|
|
38
|
+
}`,{id:e})).worktreeMove;if(!a)throw Error("Worktree move disappeared");if(!["PUSHING","CHECKING_OUT","CLEANING_UP"].includes(a.status))return a}throw Error("Worktree move is still running; it will continue in the background")}e.s(["waitForWorktreeJob",0,r,"waitForWorktreeMove",0,s,"waitForWorktreeOperationJob",0,a])}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,159888,e=>{"use strict";let t=(0,e.i(456420).default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,t],159888)},563707,e=>{"use strict";let t=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,t],563707)},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},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)},755566,e=>{"use strict";let t=(0,e.i(456420).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},853138,e=>{"use strict";var t=e.i(755566);e.s(["AlertTriangle",()=>t.default])},765649,e=>{"use strict";let t=(0,e.i(456420).default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);e.s(["UserRound",0,t],765649)},983913,e=>{"use strict";var t=e.i(843476),r=e.i(563707),a=e.i(271645),s=e.i(519455),i=e.i(317056),n=e.i(906197),l=e.i(337822),o=e.i(975157);e.s(["SearchableSelect",0,function({value:e,onValueChange:c,options:d,placeholder:u,searchPlaceholder:m,emptyMessage:h,ariaLabel:
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,159888,e=>{"use strict";let t=(0,e.i(456420).default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,t],159888)},563707,e=>{"use strict";let t=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,t],563707)},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},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)},755566,e=>{"use strict";let t=(0,e.i(456420).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},853138,e=>{"use strict";var t=e.i(755566);e.s(["AlertTriangle",()=>t.default])},765649,e=>{"use strict";let t=(0,e.i(456420).default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);e.s(["UserRound",0,t],765649)},983913,e=>{"use strict";var t=e.i(843476),r=e.i(563707),a=e.i(271645),s=e.i(519455),i=e.i(317056),n=e.i(906197),l=e.i(337822),o=e.i(975157);e.s(["SearchableSelect",0,function({value:e,onValueChange:c,options:d,placeholder:u,searchPlaceholder:m,emptyMessage:h,ariaLabel:x,disabled:p,className:g,showSelectedDetails:b=!1,allowCustomValue:j=!1,clearLabel:f}){let[v,k]=(0,a.useState)(!1),[y,w]=(0,a.useState)(""),I=(0,a.useCallback)(e=>{e&&e.addEventListener("wheel",e=>e.stopPropagation())},[]),S=d.find(t=>t.value===e),C=S?.label??(e||u),N=y.trim(),T=j&&N.length>0&&!d.some(e=>e.value.toLowerCase()===N.toLowerCase()||e.label.toLowerCase()===N.toLowerCase());return(0,t.jsxs)(l.Popover,{onOpenChange:e=>{k(e),e||w("")},open:v,children:[(0,t.jsx)(l.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(s.Button,{"aria-expanded":v,"aria-label":x,className:(0,o.cn)("min-w-0 w-full justify-between font-normal",b&&S&&"h-auto min-h-8 py-2",g),disabled:p,role:"combobox",type:"button",variant:"outline",children:[b&&S?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:S.label}),S.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:S.description}),S.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:S.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:C}),(0,t.jsx)(r.ChevronsUpDown,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(l.PopoverContent,{ref:I,align:"start",className:"z-70 max-h-[min(24rem,var(--radix-popover-content-available-height))] w-(--radix-popover-trigger-width) overflow-hidden p-0",children:(0,t.jsxs)(i.Command,{className:"min-h-0",label:m,children:[(0,t.jsx)(i.CommandInput,{"aria-label":m,autoFocus:!0,onValueChange:w,placeholder:m,value:y}),(0,t.jsxs)(i.CommandList,{className:"min-h-0 flex-1 max-h-64 overscroll-contain [scrollbar-width:thin] [&::-webkit-scrollbar]:block [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border",children:[(0,t.jsx)(i.CommandEmpty,{children:h}),(0,t.jsxs)(i.CommandGroup,{children:[f&&e&&(0,t.jsx)(i.CommandItem,{"aria-label":f,onSelect:()=>{c(""),w(""),k(!1)},value:"__clear_selection__",children:f}),T&&(0,t.jsx)(i.CommandItem,{"aria-label":N,onSelect:()=>{c(N),w(""),k(!1)},value:N,children:(0,t.jsx)(n.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsx)(n.ItemContent,{className:"min-w-0",children:(0,t.jsx)(n.ItemTitle,{className:"block truncate",children:N})})})}),d.map(r=>(0,t.jsx)(i.CommandItem,{"aria-label":[r.label,r.description,r.secondaryDescription].filter(Boolean).join(", "),"aria-selected":r.value===e,className:"items-start py-2","data-checked":r.value===e,disabled:r.disabled,keywords:[r.label,r.description??"",r.secondaryDescription??"",r.keywords??""],onSelect:()=>{c(r.value),w(""),k(!1)},value:r.value,children:(0,t.jsx)(n.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(n.ItemContent,{className:"min-w-0",children:[(0,t.jsx)(n.ItemTitle,{className:"block truncate",children:r.label}),r.description&&(0,t.jsx)(n.ItemDescription,{className:"block truncate",children:r.description}),r.secondaryDescription&&(0,t.jsx)(n.ItemDescription,{className:"block truncate",children:r.secondaryDescription})]})})},r.value))]})]})]})})]})}])},346194,e=>{"use strict";var t=e.i(843476),r=e.i(113030),a=e.i(948148),s=e.i(271645),i=e.i(929592),n=e.i(519455),l=e.i(776639),o=e.i(793479),c=e.i(110204),d=e.i(967489),u=e.i(987968),m=e.i(624687),h=e.i(637611);let x="__github_account_default__";e.s(["MergePullRequestButton",0,function({pullRequest:e,onMerged:p,size:g="sm",variant:b="outline",open:j,onOpenChange:f,showTrigger:v=!0,requestSource:k}){let y=(0,a.useTranslations)("pullRequests"),[w,I]=(0,s.useState)(!1),[S,C]=(0,s.useState)(null),[N,T]=(0,s.useState)(""),[E,R]=(0,s.useState)(""),[A,D]=(0,s.useState)(""),[P,M]=(0,s.useState)(x),[$,L]=(0,s.useState)(!1),[U,_]=(0,s.useState)(!1),[q,z]=(0,s.useState)(null),[F="",O=""]=e.repositoryNameWithOwner.split("/",2),G=j??w,B=e=>{e||(L(!1),C(null),z(null)),void 0===j&&I(e),f?.(e)};(0,s.useEffect)(()=>{if(!G)return;let t=!0,r=window.setTimeout(()=>{L(!0),C(null),z(null),(0,h.controlPlaneRequest)(`query GitHubPullRequestMergeOptions(
|
|
2
2
|
$owner: String!
|
|
3
3
|
$name: String!
|
|
4
4
|
$number: Int!
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
canMerge
|
|
19
19
|
blockedReason
|
|
20
20
|
}
|
|
21
|
-
}`,{owner:F,name:O,number:e.number,source:k}).then(e=>{if(!t)return;let r=e.githubPullRequestMergeOptions;C(r),T(r.availableMethods[0]??""),R(r.defaultCommitHeadline),D(r.defaultCommitBody),M(r.defaultCommitEmail??
|
|
21
|
+
}`,{owner:F,name:O,number:e.number,source:k}).then(e=>{if(!t)return;let r=e.githubPullRequestMergeOptions;C(r),T(r.availableMethods[0]??""),R(r.defaultCommitHeadline),D(r.defaultCommitBody),M(r.defaultCommitEmail??x)}).catch(e=>{t&&z(e instanceof Error?e.message:String(e))}).finally(()=>{t&&L(!1)})},0);return()=>{t=!1,window.clearTimeout(r)}},[O,G,F,e.number,k]);let H=async()=>{if(N&&S?.canMerge&&E.trim()){_(!0),z(null);try{let t=await (0,h.controlPlaneRequest)(`mutation MergeGitHubPullRequest(
|
|
22
22
|
$input: MergeGitHubPullRequestInput!
|
|
23
23
|
$source: GitHubRequestSource!
|
|
24
24
|
) {
|
|
25
25
|
mergeGitHubPullRequest(input: $input, source: $source) {
|
|
26
26
|
id state url mergedAt
|
|
27
27
|
}
|
|
28
|
-
}`,{input:{owner:F,name:O,number:e.number,method:N,commitHeadline:E,commitBody:A,authorEmail:P===
|
|
28
|
+
}`,{input:{owner:F,name:O,number:e.number,method:N,commitHeadline:E,commitBody:A,authorEmail:P===x?null:P},source:k});B(!1),await p?.(t.mergeGitHubPullRequest)}catch(e){z(e instanceof Error?e.message:String(e))}finally{_(!1)}}},J=S?.blockedReason??null;return(0,t.jsxs)(t.Fragment,{children:[v&&(0,t.jsxs)(n.Button,{onClick:e=>{e.stopPropagation(),B(!0)},size:g,type:"button",variant:b,children:[(0,t.jsx)(r.GitMerge,{}),y("merge")]}),(0,t.jsx)(l.Dialog,{onOpenChange:e=>{U||B(e)},open:G,children:(0,t.jsxs)(l.DialogContent,{className:"sm:max-w-xl",children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:y("mergePullRequest")}),(0,t.jsx)(l.DialogDescription,{children:y("mergePullRequestDescription",{repository:e.repositoryNameWithOwner,number:e.number})})]}),!$&&(S||q)?(0,t.jsxs)("div",{className:"space-y-4",children:[(q||J)&&(0,t.jsx)(i.Alert,{variant:"destructive",children:(0,t.jsx)(i.AlertDescription,{children:q||J})}),S&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Label,{className:"mb-1.5 block",htmlFor:"merge-method",children:y("mergeType")}),(0,t.jsxs)(d.Select,{disabled:U||0===S.availableMethods.length,onValueChange:e=>T(e),value:N,children:[(0,t.jsx)(d.SelectTrigger,{id:"merge-method",children:(0,t.jsx)(d.SelectValue,{placeholder:y("selectMergeType")})}),(0,t.jsx)(d.SelectContent,{children:S.availableMethods.map(e=>(0,t.jsx)(d.SelectItem,{value:e,children:y(`mergeTypes.${e}`)},e))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-headline",children:y("commitMessage")}),(0,t.jsx)(o.Input,{disabled:U,id:"merge-commit-headline",onChange:e=>R(e.target.value),value:E})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Label,{className:"mb-1.5 block",htmlFor:"merge-commit-body",children:y("commitDescription")}),(0,t.jsx)(m.Textarea,{className:"min-h-28",disabled:U,id:"merge-commit-body",onChange:e=>D(e.target.value),value:A})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Label,{className:"mb-1.5 block",htmlFor:"merge-email",children:y("commitEmail")}),(0,t.jsxs)(d.Select,{disabled:U,onValueChange:M,value:P,children:[(0,t.jsx)(d.SelectTrigger,{id:"merge-email",children:(0,t.jsx)(d.SelectValue,{})}),(0,t.jsxs)(d.SelectContent,{children:[(0,t.jsx)(d.SelectItem,{value:x,children:y("githubDefaultEmail")}),S.commitEmails.map(e=>(0,t.jsx)(d.SelectItem,{value:e,children:e},e))]})]})]})]})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 py-6 text-sm text-muted-foreground",children:[(0,t.jsx)(u.Spinner,{})," ",y("loadingMergeOptions")]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(n.Button,{disabled:U,onClick:()=>B(!1),type:"button",variant:"outline",children:y("cancelMerge")}),(0,t.jsxs)(n.Button,{disabled:$||U||!S?.canMerge||!N||!E.trim(),onClick:()=>void H(),type:"button",children:[U?(0,t.jsx)(u.Spinner,{}):(0,t.jsx)(r.GitMerge,{}),U?y("merging"):y("mergePullRequest")]})]})]})})]})}])},647776,e=>{"use strict";var t=e.i(843476),r=e.i(716327),a=e.i(482022),s=e.i(395925),i=e.i(948148),n=e.i(271645),l=e.i(487486),o=e.i(519455),c=e.i(755146),d=e.i(987968),u=e.i(746798),m=e.i(637611),h=e.i(961112);function x({pipeline:e,repositoryId:r,requestSource:a,onPipelineRetried:l,onError:c}){let h=(0,i.useTranslations)("pullRequests"),[p,g]=(0,n.useState)(!1),b=async t=>{if(t.stopPropagation(),e.canRetry&&e.checkSuiteId){g(!0);try{let t=await (0,m.controlPlaneRequest)(`mutation RetryGitHubPipeline(
|
|
29
29
|
$repositoryId: ID!
|
|
30
30
|
$checkSuiteId: ID!
|
|
31
31
|
$source: GitHubRequestSource!
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
checkSuiteId: $checkSuiteId
|
|
36
36
|
source: $source
|
|
37
37
|
) { id name status url checkSuiteId canRetry retryUnavailableReason jobs { id name status url canRetry retryUnavailableReason steps { number name status } } }
|
|
38
|
-
}`,{repositoryId:r,checkSuiteId:e.checkSuiteId,source:a});l?.(t.retryGitHubPipeline),c?.(null)}catch(e){c?.(e instanceof Error?e.message:String(e))}finally{g(!1)}}},j=(0,t.jsxs)(o.Button,{disabled:x||!e.canRetry||!e.checkSuiteId,onClick:e=>void b(e),size:"sm",variant:"outline",children:[x?(0,t.jsx)(d.Spinner,{}):(0,t.jsx)(s.RotateCcw,{}),h(x?"retrying":"retry")]});if(!e.retryUnavailableReason||x)return j;let f=h(`retryUnavailable.${e.retryUnavailableReason}`);return(0,t.jsx)(u.TooltipProvider,{children:(0,t.jsxs)(u.Tooltip,{children:[(0,t.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{"aria-label":f,className:"inline-flex",tabIndex:0,children:j})}),(0,t.jsx)(u.TooltipContent,{children:f})]})})}function x(e){return"SUCCESS"===e?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"PENDING"===e||"EXPECTED"===e||"QUEUED"===e||"IN_PROGRESS"===e||"ACTION_REQUIRED"===e?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"FAILURE"===e||"ERROR"===e||"CANCELLED"===e||"STALE"===e||"STARTUP_FAILURE"===e||"TIMED_OUT"===e?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300"}e.s(["PipelineMenu",0,function({pipelineStatus:e,pipelines:s,pipelineRevision:d=0,headSha:u,repositoryId:m,repositoryNameWithOwner:g,repositoryUrl:b,requestSource:j,onPipelineRetried:f}){let v=(0,i.useTranslations)("pullRequests"),[k,y]=(0,n.useState)(null),w=(0,n.useMemo)(()=>u?{repositoryGithubId:m,headSha:u}:null,[u,m]),I=(0,n.useMemo)(()=>u?{repositoryGithubId:m,repositoryNameWithOwner:g??"",repositoryUrl:b??"",headSha:u,pipelineStatus:e,pipelines:s,revision:d,updatedAt:""}:null,[u,d,e,s,m,g,b]),S=(0,h.useGitHubPipelineSnapshot)(w,I),C=S?.pipelineStatus??e,N=S?.pipelines??s,T=e=>e.stopPropagation();return(0,t.jsxs)(c.DropdownMenu,{children:[(0,t.jsx)(c.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{className:`h-5 rounded-full px-2 py-0.5 text-xs ${x(C)}`,onClick:T,variant:"outline",children:[v(`pipelineStates.${C}`),(0,t.jsx)(r.ChevronDown,{className:"size-3"})]})}),(0,t.jsxs)(c.DropdownMenuContent,{align:"end",className:"w-80",onClick:T,children:[(0,t.jsx)(c.DropdownMenuLabel,{children:v("pipelineMenuTitle")}),(0,t.jsx)(c.DropdownMenuSeparator,{}),k&&(0,t.jsx)("p",{className:"px-2 py-1.5 text-xs text-destructive",children:k}),0===N.length?(0,t.jsx)("p",{className:"px-2 py-3 text-sm text-muted-foreground",children:v("noPipelines")}):(0,t.jsx)("div",{className:"space-y-1 p-1",children:N.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md px-2 py-2 hover:bg-muted",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[e.url?(0,t.jsxs)("a",{className:"flex min-w-0 items-center gap-1 text-sm font-medium hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)("span",{className:"truncate",children:e.name}),(0,t.jsx)(a.ExternalLink,{className:"size-3 shrink-0"})]}):(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.name}),(0,t.jsx)(l.Badge,{className:`mt-1 ${x(e.status)}`,children:v(`pipelineStates.${e.status}`)})]}),e.checkSuiteId&&(0,t.jsx)(p,{onError:y,onPipelineRetried:f,pipeline:e,repositoryId:m,requestSource:j})]},e.id))})]})]})},"pipelineStateClass",0,x])},356505,e=>{"use strict";var t=e.i(843476),r=e.i(853138),a=e.i(482022),s=e.i(269846);let i=(0,e.i(456420).default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);var n=e.i(948148),l=e.i(271645),o=e.i(653090),c=e.i(278015),d=e.i(762279),u=e.i(456743),m=e.i(929592),h=e.i(487486),p=e.i(519455),x=e.i(515288),g=e.i(816484),b=e.i(906197),j=e.i(980376),f=e.i(987968),v=e.i(520133),k=e.i(637611),y=e.i(741725),w=e.i(467511);let I={highest:"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300",high:"border-orange-500/30 bg-orange-500/10 text-orange-700 dark:text-orange-300",medium:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",low:"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300",lowest:"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300"};function S({ticket:e}){let r=(0,n.useTranslations)("jiraTickets"),a=[[r("assignee"),(0,t.jsx)(o.JiraUser,{avatarUrl:e.assigneeAvatarUrl,name:e.assignee??r("unassigned")},"assignee")],[r("reporter"),e.reporter?(0,t.jsx)(o.JiraUser,{avatarUrl:e.reporter.avatarUrl,name:e.reporter.displayName},"reporter"):"—"],[r("created"),(0,t.jsx)(g.DateTime,{value:e.createdAt},"created")],[r("updated"),(0,t.jsx)(g.DateTime,{value:e.updatedAt},"updated")],[r("due"),(0,t.jsx)(g.DateTime,{value:e.dueAt},"due")],[r("resolved"),(0,t.jsx)(g.DateTime,{value:e.resolvedAt},"resolved")]];return(0,t.jsx)("dl",{className:"grid gap-3 rounded-lg bg-muted/50 p-4 text-sm sm:grid-cols-2",children:a.map(([e,r])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"mt-0.5 font-medium",children:r})]},e))})}function C({label:e,values:r}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"mt-1",children:r.join(", ")})]})}e.s(["JiraTicketDrawer",0,function({issueKey:e,onClose:o,onTicketChange:g}){let N=(0,n.useTranslations)("jiraTickets"),[T,E]=(0,l.useState)(null),[R,A]=(0,l.useState)(null),[D,P]=(0,l.useState)(!1),[M,$]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!e){let e=window.setTimeout(()=>E(null),0);return()=>window.clearTimeout(e)}let t=window.setTimeout(async()=>{P(!0);try{let t=await (0,k.controlPlaneRequest)(`query JiraTicket($issueKey: ID!) { jiraTicket(issueKey: $issueKey) { ${w.JIRA_TICKET_DETAIL_FIELDS} } }`,{issueKey:e});E(t.jiraTicket),A(null)}catch(e){A(e instanceof Error?e.message:String(e))}finally{P(!1)}},0);return()=>window.clearTimeout(t)},[e]);let L=e=>{E(e),g?.(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.Sheet,{onOpenChange:e=>{e||o()},open:!!e,children:(0,t.jsxs)(j.SheetContent,{className:"w-[min(48rem,95vw)] overflow-y-auto sm:max-w-3xl",children:[(0,t.jsxs)(j.SheetHeader,{className:"border-b pr-12",children:[(0,t.jsx)(j.SheetTitle,{children:T?.key??e??N("ticket")}),(0,t.jsx)(j.SheetDescription,{children:T?.summary??N("loadingTicket")})]}),(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-6",children:[D&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(f.Spinner,{}),N("loadingTicket")]}),R&&(0,t.jsx)(m.Alert,{variant:"destructive",children:(0,t.jsx)(m.AlertDescription,{children:R})}),T&&(0,t.jsxs)(t.Fragment,{children:[(T.cache.stale||T.commentsCache.stale)&&(0,t.jsxs)(m.Alert,{className:"border-amber-500/30 bg-amber-500/10",children:[(0,t.jsx)(r.AlertTriangle,{}),(0,t.jsx)(m.AlertDescription,{children:N("staleTicket")})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(h.Badge,{children:T.status}),T.issueType&&(0,t.jsx)(h.Badge,{children:T.issueType}),T.priority&&(0,t.jsx)(h.Badge,{className:I[T.priority.trim().toLowerCase()],children:T.priority})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(p.Button,{onClick:()=>$(!0),size:"sm",variant:"outline",children:[(0,t.jsx)(s.GitBranch,{})," ",N("worktreeAction")]}),(0,t.jsx)(p.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)(v.Link,{href:`/jira/tickets/${encodeURIComponent(T.key)}`,children:[(0,t.jsx)(i,{})," ",N("openFullDetails")]})}),(0,t.jsx)(p.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{href:T.jiraUrl,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(a.ExternalLink,{})," ",N("openInJira")]})})]})]}),(0,t.jsx)(d.JiraTicketActions,{onTicketChange:L,ticket:T}),(0,t.jsx)(S,{ticket:T}),(0,t.jsx)("section",{children:(0,t.jsx)(x.Card,{size:"sm",children:(0,t.jsx)(x.CardContent,{children:(0,t.jsx)(c.JiraRichTextBlock,{content:T.descriptionContent,header:(0,t.jsx)("h3",{className:"font-semibold",children:N("descriptionTitle")}),headerClassName:"border-b pb-2",value:T.description})})})}),(T.labels.length>0||T.components.length>0||T.fixVersions.length>0||T.sprintNames.length>0)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("classification")}),(0,t.jsxs)("dl",{className:"grid gap-3 text-sm sm:grid-cols-2",children:[T.labels.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:N("labels")}),(0,t.jsx)("dd",{className:"mt-1 flex flex-wrap gap-1",children:T.labels.map(e=>(0,t.jsx)(h.Badge,{children:e},e))})]}),T.components.length>0&&(0,t.jsx)(C,{label:N("components"),values:T.components.map(e=>e.name)}),T.fixVersions.length>0&&(0,t.jsx)(C,{label:N("fixVersions"),values:T.fixVersions.map(e=>e.name)}),T.sprintNames.length>0&&(0,t.jsx)(C,{label:N("sprints"),values:T.sprintNames})]})]}),(T.parent||T.subtasks.length>0||T.issueLinks.length>0)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("relatedIssues")}),(0,t.jsx)(b.ItemGroup,{className:"gap-2",children:[...T.parent?[T.parent]:[],...T.subtasks,...T.issueLinks].map((e,r)=>(0,t.jsx)(b.Item,{asChild:!0,size:"xs",variant:"outline",children:(0,t.jsxs)(v.Link,{href:`/jira/tickets/${encodeURIComponent(e.key)}`,children:[(0,t.jsxs)(b.ItemContent,{children:[(0,t.jsxs)(b.ItemTitle,{className:"leading-tight",children:[e.key," · ",e.summary]}),(0,t.jsx)(b.ItemDescription,{className:"leading-tight",children:e.relationship})]}),(0,t.jsx)(b.ItemActions,{children:e.status&&(0,t.jsx)(h.Badge,{children:e.status})})]})},`${e.key}-${r}`))})]}),T.attachments.length>0&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("attachments")}),(0,t.jsx)(b.ItemGroup,{className:"gap-2",children:T.attachments.map(e=>(0,t.jsx)(b.Item,{asChild:!0,variant:"outline",children:(0,t.jsxs)("a",{href:e.contentUrl??"#",rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(b.ItemContent,{children:(0,t.jsx)(b.ItemTitle,{children:e.filename})}),(0,t.jsx)(b.ItemActions,{className:"text-xs text-muted-foreground",children:e.size?`${Math.round(e.size/1024)} KB`:""})]})},e.id))})]}),(0,t.jsx)(u.JiraTicketComments,{onTicketChange:L,ticket:T})]})]})]})}),T&&(0,t.jsx)(y.TicketWorktreeDialog,{issueKey:T.key,onOpenChange:$,open:M})]})}],356505)},467511,e=>{"use strict";let t="format raw rawText markdown wikiMarkup",r="accountId displayName avatarUrl",a="source stale fetchedAt",s="relationship key summary status",i="id key summary statusId status statusCategory issueType priority assignee assigneeAccountId assigneeAvatarUrl projectKey updatedAt",n=`${i}
|
|
38
|
+
}`,{repositoryId:r,checkSuiteId:e.checkSuiteId,source:a});l?.(t.retryGitHubPipeline),c?.(null)}catch(e){c?.(e instanceof Error?e.message:String(e))}finally{g(!1)}}},j=(0,t.jsxs)(o.Button,{disabled:p||!e.canRetry||!e.checkSuiteId,onClick:e=>void b(e),size:"sm",variant:"outline",children:[p?(0,t.jsx)(d.Spinner,{}):(0,t.jsx)(s.RotateCcw,{}),h(p?"retrying":"retry")]});if(!e.retryUnavailableReason||p)return j;let f=h(`retryUnavailable.${e.retryUnavailableReason}`);return(0,t.jsx)(u.TooltipProvider,{children:(0,t.jsxs)(u.Tooltip,{children:[(0,t.jsx)(u.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{"aria-label":f,className:"inline-flex",tabIndex:0,children:j})}),(0,t.jsx)(u.TooltipContent,{children:f})]})})}function p(e){return"SUCCESS"===e?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"PENDING"===e||"EXPECTED"===e||"QUEUED"===e||"IN_PROGRESS"===e||"ACTION_REQUIRED"===e?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"FAILURE"===e||"ERROR"===e||"CANCELLED"===e||"STALE"===e||"STARTUP_FAILURE"===e||"TIMED_OUT"===e?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300"}e.s(["PipelineMenu",0,function({pipelineStatus:e,pipelines:s,pipelineRevision:d=0,headSha:u,repositoryId:m,repositoryNameWithOwner:g,repositoryUrl:b,requestSource:j,onPipelineRetried:f}){let v=(0,i.useTranslations)("pullRequests"),[k,y]=(0,n.useState)(null),w=(0,n.useMemo)(()=>u?{repositoryGithubId:m,headSha:u}:null,[u,m]),I=(0,n.useMemo)(()=>u?{repositoryGithubId:m,repositoryNameWithOwner:g??"",repositoryUrl:b??"",headSha:u,pipelineStatus:e,pipelines:s,revision:d,updatedAt:""}:null,[u,d,e,s,m,g,b]),S=(0,h.useGitHubPipelineSnapshot)(w,I),C=S?.pipelineStatus??e,N=S?.pipelines??s,T=e=>e.stopPropagation();return(0,t.jsxs)(c.DropdownMenu,{children:[(0,t.jsx)(c.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{className:`h-5 rounded-full px-2 py-0.5 text-xs ${p(C)}`,onClick:T,variant:"outline",children:[v(`pipelineStates.${C}`),(0,t.jsx)(r.ChevronDown,{className:"size-3"})]})}),(0,t.jsxs)(c.DropdownMenuContent,{align:"end",className:"w-80",onClick:T,children:[(0,t.jsx)(c.DropdownMenuLabel,{children:v("pipelineMenuTitle")}),(0,t.jsx)(c.DropdownMenuSeparator,{}),k&&(0,t.jsx)("p",{className:"px-2 py-1.5 text-xs text-destructive",children:k}),0===N.length?(0,t.jsx)("p",{className:"px-2 py-3 text-sm text-muted-foreground",children:v("noPipelines")}):(0,t.jsx)("div",{className:"space-y-1 p-1",children:N.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md px-2 py-2 hover:bg-muted",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[e.url?(0,t.jsxs)("a",{className:"flex min-w-0 items-center gap-1 text-sm font-medium hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)("span",{className:"truncate",children:e.name}),(0,t.jsx)(a.ExternalLink,{className:"size-3 shrink-0"})]}):(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.name}),(0,t.jsx)(l.Badge,{className:`mt-1 ${p(e.status)}`,children:v(`pipelineStates.${e.status}`)})]}),e.checkSuiteId&&(0,t.jsx)(x,{onError:y,onPipelineRetried:f,pipeline:e,repositoryId:m,requestSource:j})]},e.id))})]})]})},"pipelineStateClass",0,p])},356505,e=>{"use strict";var t=e.i(843476),r=e.i(853138),a=e.i(482022),s=e.i(269846);let i=(0,e.i(456420).default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);var n=e.i(948148),l=e.i(271645),o=e.i(653090),c=e.i(278015),d=e.i(762279),u=e.i(456743),m=e.i(929592),h=e.i(487486),x=e.i(519455),p=e.i(515288),g=e.i(816484),b=e.i(906197),j=e.i(980376),f=e.i(987968),v=e.i(520133),k=e.i(637611),y=e.i(741725),w=e.i(467511);let I={highest:"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300",high:"border-orange-500/30 bg-orange-500/10 text-orange-700 dark:text-orange-300",medium:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",low:"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300",lowest:"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300"};function S({ticket:e}){let r=(0,n.useTranslations)("jiraTickets"),a=[[r("assignee"),(0,t.jsx)(o.JiraUser,{avatarUrl:e.assigneeAvatarUrl,name:e.assignee??r("unassigned")},"assignee")],[r("reporter"),e.reporter?(0,t.jsx)(o.JiraUser,{avatarUrl:e.reporter.avatarUrl,name:e.reporter.displayName},"reporter"):"—"],[r("created"),(0,t.jsx)(g.DateTime,{value:e.createdAt},"created")],[r("updated"),(0,t.jsx)(g.DateTime,{value:e.updatedAt},"updated")],[r("due"),(0,t.jsx)(g.DateTime,{value:e.dueAt},"due")],[r("resolved"),(0,t.jsx)(g.DateTime,{value:e.resolvedAt},"resolved")]];return(0,t.jsx)("dl",{className:"grid gap-3 rounded-lg bg-muted/50 p-4 text-sm sm:grid-cols-2",children:a.map(([e,r])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"mt-0.5 font-medium",children:r})]},e))})}function C({label:e,values:r}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"mt-1",children:r.join(", ")})]})}e.s(["JiraTicketDrawer",0,function({issueKey:e,onClose:o,onTicketChange:g}){let N=(0,n.useTranslations)("jiraTickets"),[T,E]=(0,l.useState)(null),[R,A]=(0,l.useState)(null),[D,P]=(0,l.useState)(!1),[M,$]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!e){let e=window.setTimeout(()=>E(null),0);return()=>window.clearTimeout(e)}let t=window.setTimeout(async()=>{P(!0);try{let t=await (0,k.controlPlaneRequest)(`query JiraTicket($issueKey: ID!) { jiraTicket(issueKey: $issueKey) { ${w.JIRA_TICKET_DETAIL_FIELDS} } }`,{issueKey:e});E(t.jiraTicket),A(null)}catch(e){A(e instanceof Error?e.message:String(e))}finally{P(!1)}},0);return()=>window.clearTimeout(t)},[e]);let L=e=>{E(e),g?.(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.Sheet,{onOpenChange:e=>{e||o()},open:!!e,children:(0,t.jsxs)(j.SheetContent,{className:"w-[min(48rem,95vw)] overflow-y-auto sm:max-w-3xl",children:[(0,t.jsxs)(j.SheetHeader,{className:"border-b pr-12",children:[(0,t.jsx)(j.SheetTitle,{children:T?.key??e??N("ticket")}),(0,t.jsx)(j.SheetDescription,{children:T?.summary??N("loadingTicket")})]}),(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-6",children:[D&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(f.Spinner,{}),N("loadingTicket")]}),R&&(0,t.jsx)(m.Alert,{variant:"destructive",children:(0,t.jsx)(m.AlertDescription,{children:R})}),T&&(0,t.jsxs)(t.Fragment,{children:[(T.cache.stale||T.commentsCache.stale)&&(0,t.jsxs)(m.Alert,{className:"border-amber-500/30 bg-amber-500/10",children:[(0,t.jsx)(r.AlertTriangle,{}),(0,t.jsx)(m.AlertDescription,{children:N("staleTicket")})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(h.Badge,{children:T.status}),T.issueType&&(0,t.jsx)(h.Badge,{children:T.issueType}),T.priority&&(0,t.jsx)(h.Badge,{className:I[T.priority.trim().toLowerCase()],children:T.priority})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(x.Button,{onClick:()=>$(!0),size:"sm",variant:"outline",children:[(0,t.jsx)(s.GitBranch,{})," ",N("worktreeAction")]}),(0,t.jsx)(x.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)(v.Link,{href:`/jira/tickets/${encodeURIComponent(T.key)}`,children:[(0,t.jsx)(i,{})," ",N("openFullDetails")]})}),(0,t.jsx)(x.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{href:T.jiraUrl,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(a.ExternalLink,{})," ",N("openInJira")]})})]})]}),(0,t.jsx)(d.JiraTicketActions,{onTicketChange:L,ticket:T}),(0,t.jsx)(S,{ticket:T}),(0,t.jsx)("section",{children:(0,t.jsx)(p.Card,{size:"sm",children:(0,t.jsx)(p.CardContent,{children:(0,t.jsx)(c.JiraRichTextBlock,{content:T.descriptionContent,header:(0,t.jsx)("h3",{className:"font-semibold",children:N("descriptionTitle")}),headerClassName:"border-b pb-2",value:T.description})})})}),(T.labels.length>0||T.components.length>0||T.fixVersions.length>0||T.sprintNames.length>0)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("classification")}),(0,t.jsxs)("dl",{className:"grid gap-3 text-sm sm:grid-cols-2",children:[T.labels.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:N("labels")}),(0,t.jsx)("dd",{className:"mt-1 flex flex-wrap gap-1",children:T.labels.map(e=>(0,t.jsx)(h.Badge,{children:e},e))})]}),T.components.length>0&&(0,t.jsx)(C,{label:N("components"),values:T.components.map(e=>e.name)}),T.fixVersions.length>0&&(0,t.jsx)(C,{label:N("fixVersions"),values:T.fixVersions.map(e=>e.name)}),T.sprintNames.length>0&&(0,t.jsx)(C,{label:N("sprints"),values:T.sprintNames})]})]}),(T.parent||T.subtasks.length>0||T.issueLinks.length>0)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("relatedIssues")}),(0,t.jsx)(b.ItemGroup,{className:"gap-2",children:[...T.parent?[T.parent]:[],...T.subtasks,...T.issueLinks].map((e,r)=>(0,t.jsx)(b.Item,{asChild:!0,size:"xs",variant:"outline",children:(0,t.jsxs)(v.Link,{href:`/jira/tickets/${encodeURIComponent(e.key)}`,children:[(0,t.jsxs)(b.ItemContent,{children:[(0,t.jsxs)(b.ItemTitle,{className:"leading-tight",children:[e.key," · ",e.summary]}),(0,t.jsx)(b.ItemDescription,{className:"leading-tight",children:e.relationship})]}),(0,t.jsx)(b.ItemActions,{children:e.status&&(0,t.jsx)(h.Badge,{children:e.status})})]})},`${e.key}-${r}`))})]}),T.attachments.length>0&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("attachments")}),(0,t.jsx)(b.ItemGroup,{className:"gap-2",children:T.attachments.map(e=>(0,t.jsx)(b.Item,{asChild:!0,variant:"outline",children:(0,t.jsxs)("a",{href:e.contentUrl??"#",rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(b.ItemContent,{children:(0,t.jsx)(b.ItemTitle,{children:e.filename})}),(0,t.jsx)(b.ItemActions,{className:"text-xs text-muted-foreground",children:e.size?`${Math.round(e.size/1024)} KB`:""})]})},e.id))})]}),(0,t.jsx)(u.JiraTicketComments,{onTicketChange:L,ticket:T})]})]})]})}),T&&(0,t.jsx)(y.TicketWorktreeDialog,{issueKey:T.key,onOpenChange:$,open:M})]})}],356505)},467511,e=>{"use strict";let t="format raw rawText markdown wikiMarkup",r="accountId displayName avatarUrl",a="source stale fetchedAt",s="relationship key summary status",i="id key summary statusId status statusCategory issueType priority assignee assigneeAccountId assigneeAvatarUrl projectKey updatedAt",n=`${i}
|
|
39
39
|
jiraUrl description
|
|
40
40
|
descriptionContent { ${t} }
|
|
41
41
|
reporter { ${r} }
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
content { ${t} }
|
|
62
62
|
}
|
|
63
63
|
cache { ${a} }
|
|
64
|
-
commentsCache { ${a} }`;e.s(["JIRA_CACHE_FIELDS",0,a,"JIRA_PERSON_FIELDS",0,r,"JIRA_RICH_TEXT_FIELDS",0,t,"JIRA_SUMMARY_FIELDS",0,i,"JIRA_TICKET_DETAIL_FIELDS",0,n])},799676,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(705844),s=e.i(30030),i=e.i(30207),n=e.i(934620),l=e.i(248425),o=Object.defineProperty,c=(e,t)=>o(e,"name",{value:t,configurable:!0}),d="Avatar",[u,m]=(0,s.createContextScope)(d),h=[0,()=>void 0],[p
|
|
64
|
+
commentsCache { ${a} }`;e.s(["JIRA_CACHE_FIELDS",0,a,"JIRA_PERSON_FIELDS",0,r,"JIRA_RICH_TEXT_FIELDS",0,t,"JIRA_SUMMARY_FIELDS",0,i,"JIRA_TICKET_DETAIL_FIELDS",0,n])},799676,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(705844),s=e.i(30030),i=e.i(30207),n=e.i(934620),l=e.i(248425),o=Object.defineProperty,c=(e,t)=>o(e,"name",{value:t,configurable:!0}),d="Avatar",[u,m]=(0,s.createContextScope)(d),h=[0,()=>void 0],[x,p]=u(d),g=r.forwardRef(c(function(e,a){let{__scopeAvatar:s,...i}=e,[n,o]=r.useState("idle"),[c,d]=k();return(0,t.jsx)(x,{scope:s,imageLoadingStatus:n,setImageLoadingStatus:o,imageCount:c,setImageCount:d,children:(0,t.jsx)(l.Primitive.span,{...i,ref:a})})},"Avatar")),b=r.forwardRef(c(function(e,a){let{__scopeAvatar:s,src:o,onLoadingStatusChange:c,...d}=e,u=p("AvatarImage",s);y(u.setImageCount);let m=f(o,{referrerPolicy:d.referrerPolicy,crossOrigin:d.crossOrigin,loadingStatus:u.imageLoadingStatus,setLoadingStatus:u.setImageLoadingStatus}),h=(0,i.useCallbackRef)(e=>{c?.(e)}),x=r.useRef(m);return(0,n.useLayoutEffect)(()=>{let e=x.current;x.current=m,m!==e&&h(m)},[m,h]),"loaded"===m?(0,t.jsx)(l.Primitive.img,{...d,ref:a,src:o}):null},"AvatarImage")),j=r.forwardRef(c(function(e,a){let{__scopeAvatar:s,delayMs:i,...n}=e,o=p("AvatarFallback",s),[c,d]=r.useState(void 0===i);return r.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>d(!0),i);return()=>window.clearTimeout(e)}},[i]),c&&"loaded"!==o.imageLoadingStatus?(0,t.jsx)(l.Primitive.span,{...n,ref:a}):null},"AvatarFallback"));function f(e,{loadingStatus:t,setLoadingStatus:r,referrerPolicy:a,crossOrigin:s}){return(0,n.useLayoutEffect)(()=>{if(!e)return void r("error");let t=new window.Image,i=c(e=>{r(v(e.currentTarget))},"handleLoad"),n=c(()=>r("error"),"handleError");return t.addEventListener("load",i),t.addEventListener("error",n),a&&(t.referrerPolicy=a),t.crossOrigin=s??null,t.src=e,r(v(t)),()=>{t.removeEventListener("load",i),t.removeEventListener("error",n),r("idle")}},[e,s,a,r]),t}function v(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function k(){let e=h;if(a.IS_DEVELOPMENT){let[t]=e=r.useState(0),a=r.useRef(!1);r.useEffect(()=>{t>1&&!a.current&&(a.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}function y(e){a.IS_DEVELOPMENT&&r.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])}c(f,"useImageLoadingStatus"),c(v,"getImageLoadingStatus"),c(k,"useImageCount"),c(y,"useUpdateImageCount"),e.s(["Avatar",0,g,"AvatarFallback",0,j,"AvatarImage",0,b,"Fallback",0,j,"Image",0,b,"Root",0,g,"createAvatarScope",0,m],97456);var w=e.i(97456),w=w,I=e.i(975157);e.s(["Avatar",0,function({className:e,size:r="default",...a}){return(0,t.jsx)(w.Root,{className:(0,I.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),"data-size":r,"data-slot":"avatar",...a})},"AvatarFallback",0,function({className:e,...r}){return(0,t.jsx)(w.Fallback,{className:(0,I.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),"data-slot":"avatar-fallback",...r})},"AvatarImage",0,function({className:e,...r}){return(0,t.jsx)(w.Image,{className:(0,I.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...r})}],799676)},440289,e=>{"use strict";var t=e.i(637611);async function r(e){let r=Date.now()+6e5;for(;Date.now()<r;){await new Promise(e=>window.setTimeout(e,750));let r=(await (0,t.controlPlaneRequest)(`query WorktreeJob($id: ID!) {
|
|
65
65
|
agentJob(id: $id) {
|
|
66
66
|
status error
|
|
67
67
|
worktreeOperationResult { outcome preparationConflictPaths }
|