@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/dist/index.d.ts
CHANGED
|
@@ -410,7 +410,8 @@ declare function compileAgent(agent: AgentDefinition, config?: CoreAIConfig, mcp
|
|
|
410
410
|
*/
|
|
411
411
|
declare function loadAllAgents(options?: CompileOptions): Map<string, AgentMetadata>;
|
|
412
412
|
/**
|
|
413
|
-
* Filter agents based on team configuration
|
|
413
|
+
* Filter agents based on team configuration.
|
|
414
|
+
* Custom and override agents are always included regardless of team filter.
|
|
414
415
|
*/
|
|
415
416
|
declare function filterAgentsByTeam(agents: Map<string, AgentMetadata>, config?: CoreAIConfig): Map<string, AgentMetadata>;
|
|
416
417
|
/**
|
package/dist/index.js
CHANGED
|
@@ -546,9 +546,10 @@ function filterAgentsByTeam(agents, config) {
|
|
|
546
546
|
return agents;
|
|
547
547
|
}
|
|
548
548
|
const filtered = /* @__PURE__ */ new Map();
|
|
549
|
-
for (const role of
|
|
550
|
-
|
|
551
|
-
|
|
549
|
+
for (const [role, metadata] of agents) {
|
|
550
|
+
if (metadata.source === "custom" || metadata.source === "override") {
|
|
551
|
+
filtered.set(role, metadata);
|
|
552
|
+
} else if (config.team.agents.includes(role)) {
|
|
552
553
|
filtered.set(role, metadata);
|
|
553
554
|
}
|
|
554
555
|
}
|