#!/usr/bin/env node
import"./chunk-KGOUQS5A.js";var g={name:"ag-list-agents",execute:async(a,t)=>{if(!t.bash)return{stdout:"",stderr:`ag-list-agents: no bash host available
`,exitCode:1};let e=t.bash.services.agentManager.listAgents();if(e.length===0)return{stdout:`No sub-agents registered.
`,stderr:"",exitCode:0};let s=`Active Sub-Agents:
`;for(let n of e)s+=`- ${n.id}: ${n.status}
`;return{stdout:s,stderr:"",exitCode:0}}};export{g as agListAgents};
