UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

1 lines 356 B
import{listAuthoredChannels}from"#setup/scaffold/index.js";async function runChannelsListCommand(e,t,n){let r=await listAuthoredChannels(t.agentRoot);if(n.json){e.log(JSON.stringify({channels:r},null,2));return}if(r.length===0){e.log("No channels defined. Run `eve add <channel>` to add one.");return}for(let t of r)e.log(t)}export{runChannelsListCommand};