@grantx/fleet-cli 0.1.2 → 0.1.3
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 +1 -1
- package/src/generate.js +11 -0
package/package.json
CHANGED
package/src/generate.js
CHANGED
|
@@ -229,6 +229,17 @@ export function generateRoster(scanResult, maxAgents = 5) {
|
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
// If no specific candidates but we detected languages, add a general-purpose dev agent
|
|
233
|
+
if (candidates.length === 0 && languages.length > 0) {
|
|
234
|
+
candidates.push({
|
|
235
|
+
name: 'dev',
|
|
236
|
+
role: `General development: ${languages.join(', ')}`,
|
|
237
|
+
keywords: ['feature', 'bug', 'refactor', 'implement', 'fix', 'update', 'code'],
|
|
238
|
+
filePatterns: ['src/**', 'lib/**', 'app/**'],
|
|
239
|
+
score: 5,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
|
|
232
243
|
// Sort by score, take top (maxAgents - 1) to leave room for conductor
|
|
233
244
|
candidates.sort((a, b) => b.score - a.score);
|
|
234
245
|
const workerSlots = maxAgents - 1; // conductor takes one slot
|