@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deimoscloud/coreai",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "A configurable, team-ready AI agent orchestration platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -328,7 +328,8 @@ export function loadAllAgents(options: CompileOptions = {}): Map<string, AgentMe
328
328
  }
329
329
 
330
330
  /**
331
- * Filter agents based on team configuration
331
+ * Filter agents based on team configuration.
332
+ * Custom and override agents are always included regardless of team filter.
332
333
  */
333
334
  export function filterAgentsByTeam(
334
335
  agents: Map<string, AgentMetadata>,
@@ -340,9 +341,14 @@ export function filterAgentsByTeam(
340
341
  }
341
342
 
342
343
  const filtered = new Map<string, AgentMetadata>();
343
- for (const role of config.team.agents) {
344
- const metadata = agents.get(role);
345
- if (metadata) {
344
+
345
+ for (const [role, metadata] of agents) {
346
+ // Always include custom and override agents
347
+ if (metadata.source === 'custom' || metadata.source === 'override') {
348
+ filtered.set(role, metadata);
349
+ }
350
+ // Include core agents only if they're in the team list
351
+ else if (config.team.agents.includes(role)) {
346
352
  filtered.set(role, metadata);
347
353
  }
348
354
  }