@deimoscloud/coreai 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -537,9 +537,10 @@ function filterAgentsByTeam(agents2, config) {
537
537
  return agents2;
538
538
  }
539
539
  const filtered = /* @__PURE__ */ new Map();
540
- for (const role of config.team.agents) {
541
- const metadata = agents2.get(role);
542
- if (metadata) {
540
+ for (const [role, metadata] of agents2) {
541
+ if (metadata.source === "custom" || metadata.source === "override") {
542
+ filtered.set(role, metadata);
543
+ } else if (config.team.agents.includes(role)) {
543
544
  filtered.set(role, metadata);
544
545
  }
545
546
  }