import{Hr as e}from"./src-BOCweS1p.js";import{Ho as t,Wo as n,ia as r,is as i}from"./app-server-manager-signals-Yn0WSnoY.js";import{L as a,R as o,a as s,et as c,h as l,i as u,u as d}from"./vscode-api-DjORcpSo.js";var f=a(l,({get:e})=>i(e,`host_config`)??null),p=a(l,({get:e})=>[...i(e,`remote_ssh_connections`)??[],...i(e,`remote_control_connections`)??[]]),m=u(l,`codex-home`,()=>({staleTime:d.FIVE_SECONDS})),h=a(l,({get:e})=>e(m,void 0)),g=u(l,`home-directory`,()=>({staleTime:d.FIVE_SECONDS})),_=s(l,`active-workspace-roots`,{placeholderData:c,staleTime:d.FIVE_SECONDS}),v=u(l,`workspace-root-options`,()=>({placeholderData:c,staleTime:d.INFINITE})),y=s(l,`workspace-root-options`,{params:{hostId:n},placeholderData:c,staleTime:d.INFINITE}),b=a(l,({get:t})=>r(t,e.REMOTE_PROJECTS)??[]),x=a(l,({get:t})=>{let n=t(b),i=r(t,e.ACTIVE_REMOTE_PROJECT_ID);return i==null?null:n.find(e=>e.id===i)??null}),S=a(l,({get:t})=>r(t,e.THREAD_PROJECT_ASSIGNMENTS)),C=o(l,(e,{get:n})=>{let r=n(f);return r!=null&&e===r.id?r:t(e,n(p))});export{C as a,x as c,y as d,g as i,S as l,m as n,p as o,h as r,b as s,_ as t,v as u};
//# sourceMappingURL=thread-context-inputs-C9hcxtXy.js.map