@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 +4 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agents/compiler.ts +10 -4
package/package.json
CHANGED
package/src/agents/compiler.ts
CHANGED
|
@@ -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
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
}
|