import{l as e,p as t}from"./debug-otxXY3j-.js";e();async function n(){let{fetchCodeSessionsFromSessionsAPI:e}=await import(`./api-BdbBnz5c.js`),n;try{n=await e()}catch(e){throw t(`[assistant:discovery] fetchCodeSessionsFromSessionsAPI failed: ${e}`),e}return n.filter(e=>e.status===`idle`||e.status===`working`||e.status===`waiting`).map(e=>({id:e.id,title:e.title||`Untitled`,status:e.status,created_at:e.created_at??``}))}export{n as discoverAssistantSessions};