import{lr as e,sr as t}from"./app-server-manager-signals-Yn0WSnoY.js";import{lt as n,u as r,v as i}from"./vscode-api-DjORcpSo.js";import{t as a}from"./worktree-query-keys-BT7X-Utw.js";var o=n();function s(n,s){let c=(0,o.c)(9),l,u;if(c[0]!==n){let e=t(n);u=i,l=a(e),c[0]=n,c[1]=l,c[2]=u}else l=c[1],u=c[2];let d;c[3]!==n||c[4]!==s?(d=t=>{let{signal:r}=t;return e(`git`).request({method:`codex-worktrees`,params:{hostConfig:n,operationSource:s},signal:r})},c[3]=n,c[4]=s,c[5]=d):d=c[5];let f;return c[6]!==l||c[7]!==d?(f={queryKey:l,queryFn:d,staleTime:r.INFINITE,gcTime:18e5},c[6]=l,c[7]=d,c[8]=f):f=c[8],u(f)}export{s as t};
//# sourceMappingURL=use-codex-worktrees-DUShfKDR.js.map