import{a as e,n as t}from"./chunk-DR8-3Aex.js";import{_l as n,cl as r,gl as i,ll as a}from"./paths-Ci1iwL5Y.js";import{Ow as o,RE as s,kw as c,zE as l}from"./loadAgentsDir-C_wFhytF.js";import{s as u,u as d}from"./prompt-6ZKyqv6z.js";function f(e){return h.some(t=>e.endsWith(t))}function p(e){return e.filter(e=>u.has(e.name)||f(e.name))}function m(e,t,r){let[i,o]=n(a([...e,...t],`name`),c),s=(e,t)=>e.name.localeCompare(t.name),l=[...o.sort(s),...i.sort(s)];return g&&g.isCoordinatorMode()?p(l):l}var h,g,_=t((()=>{i(),r(),d(),o(),h=[`subscribe_pr_activity`,`unsubscribe_pr_activity`],g=(l(),e(s))}));export{m as i,_ as n,f as r,p as t};