import{v as i,r as t,e as r}from"./graphExplorationMessages.js";import{a7 as c}from"./index.js";const g=i("tools",()=>{const e=t([]),o=t(!1),a=t(!1);async function s(){if(!(o.value||a.value)){o.value=!0;try{e.value=(await c.getTools()).data.tools,a.value=!0}finally{o.value=!1}}}async function n(){a.value=!1,await s()}const u=r(()=>e.value.filter(l=>l.configured!==!1)),f=r(()=>e.value.filter(l=>l.configured===!1));return{tools:e,loading:o,loaded:a,configuredTools:u,unconfiguredTools:f,load:s,refresh:n}});export{g as useToolsStore};
