import{u as a}from"./useQuery-CEwGD94N.js";import{a as o,b as i,d as u}from"./index-DXI13nSQ.js";const t={all:["workspace"],files:(e,s)=>["workspace","files",e,s]};function y(){return a({queryKey:["agents","status"],queryFn:()=>u.getAgentsStatus()})}function f(e,s,r={}){return a({queryKey:t.files(e,s),queryFn:()=>u.getWorkspaceFiles({agent:e,...s?{path:s}:{}}),enabled:r.enabled!==!1&&!!e})}function p(){const e=o();return i({mutationFn:({agent:s,path:r,body:n})=>u.writeWorkspaceFile({agent:s,path:r},n),onSuccess:()=>e.invalidateQueries({queryKey:t.all})})}export{f as a,p as b,y as u};
//# sourceMappingURL=use-workspace-BJZUfkqw.js.map
