@kendoo.agentdesk/agentdesk 0.5.1 → 0.5.2
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/cli/agents.mjs +24 -1
- package/package.json +1 -1
package/cli/agents.mjs
CHANGED
|
@@ -148,6 +148,7 @@ export const BUILT_IN_AGENTS = {
|
|
|
148
148
|
*/
|
|
149
149
|
export function resolveTeam(config) {
|
|
150
150
|
const teamConfig = config.team || null;
|
|
151
|
+
const customAgents = config.projectAgents || [];
|
|
151
152
|
|
|
152
153
|
// Default: all 7 agents
|
|
153
154
|
if (!teamConfig) {
|
|
@@ -162,7 +163,29 @@ export function resolveTeam(config) {
|
|
|
162
163
|
if (agent) {
|
|
163
164
|
team.push({ name: entry, ...agent });
|
|
164
165
|
} else {
|
|
165
|
-
|
|
166
|
+
// Check if it's a custom project agent
|
|
167
|
+
const custom = customAgents.find(a => a.name === entry);
|
|
168
|
+
if (custom) {
|
|
169
|
+
team.push({
|
|
170
|
+
name: custom.name,
|
|
171
|
+
badge: `** ${custom.name.toUpperCase()} **`,
|
|
172
|
+
role: custom.role || "Team Member",
|
|
173
|
+
description: custom.role || "Custom team member",
|
|
174
|
+
groundRules: custom.when ? `${custom.name} is invoked: ${custom.when}. How to use: ${custom.how || "as needed"}.` : "",
|
|
175
|
+
brainstorm: { tag: "SAY", focus: custom.role || "general input" },
|
|
176
|
+
planning: `${custom.role || custom.name} Review`,
|
|
177
|
+
execution: custom.when ? {
|
|
178
|
+
step: `${custom.name} reviews`,
|
|
179
|
+
tasks: [
|
|
180
|
+
`Review changes relevant to ${custom.role || "this agent's scope"}.`,
|
|
181
|
+
custom.how ? `Interaction: ${custom.how}` : "Provide feedback on the changes.",
|
|
182
|
+
],
|
|
183
|
+
order: 2.5,
|
|
184
|
+
} : null,
|
|
185
|
+
});
|
|
186
|
+
} else {
|
|
187
|
+
console.warn(`Warning: Unknown agent "${entry}" — skipping`);
|
|
188
|
+
}
|
|
166
189
|
}
|
|
167
190
|
} else if (typeof entry === "object" && entry.name) {
|
|
168
191
|
// Custom agent
|