import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Aut as t,H3 as n,Mvt as r,Nut as i,R3 as a,V3 as o,X_ as s,Z_ as c,cdt as l,ldt as u,lvt as d,npt as f,xpt as p,xvt as m,z3 as h}from"./app-initial-BHB6SClA.js";function g(e,t){let r=(0,_.c)(7),o=a(e),c=i(p.worktreeRoot),u=e.kind===`local`?c:null,d=s(o,u),f;r[0]!==e||r[1]!==t||r[2]!==u?(f=r=>{let{signal:i}=r;return n(`git`).request({method:`codex-worktrees`,params:{hostConfig:e,operationSource:t,worktreesRoot:u},signal:i})},r[0]=e,r[1]=t,r[2]=u,r[3]=f):f=r[3];let h;return r[4]!==d||r[5]!==f?(h={queryKey:d,queryFn:f,staleTime:l.INFINITE,gcTime:18e5},r[4]=d,r[5]=f,r[6]=h):h=r[6],m(h)}var _,v=e((()=>{_=r(),d(),f(),t(),u(),o(),c(),h()}));export{g as n,v as t};
//# sourceMappingURL=use-codex-worktrees-BCat2O_G.js.map