@deimoscloud/coreai 0.1.8 → 0.1.9
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 +5 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agents/compiler.test.ts +12 -1
- package/src/agents/compiler.ts +2 -0
package/package.json
CHANGED
|
@@ -376,15 +376,26 @@ description: A test agent
|
|
|
376
376
|
});
|
|
377
377
|
|
|
378
378
|
expect(result.errors.length).toBe(0);
|
|
379
|
-
expect(result.compiled.length).toBe(
|
|
379
|
+
expect(result.compiled.length).toBe(15);
|
|
380
380
|
|
|
381
381
|
// Verify each agent was compiled
|
|
382
382
|
const roles = result.compiled.map((c) => c.role).sort();
|
|
383
383
|
expect(roles).toEqual([
|
|
384
|
+
'android-engineer',
|
|
384
385
|
'backend-engineer',
|
|
386
|
+
'database-administrator',
|
|
385
387
|
'devops-engineer',
|
|
386
388
|
'engineering-manager',
|
|
387
389
|
'frontend-engineer',
|
|
390
|
+
'react-engineer',
|
|
391
|
+
'react-native-engineer',
|
|
392
|
+
'software-security-engineer',
|
|
393
|
+
'software-solutions-architect',
|
|
394
|
+
'sre-huawei-cloud-architect',
|
|
395
|
+
'sre-iac-specialist',
|
|
396
|
+
'sre-kubernetes-specialist',
|
|
397
|
+
'sre-network-specialist',
|
|
398
|
+
'wearos-engineer',
|
|
388
399
|
]);
|
|
389
400
|
|
|
390
401
|
// Verify files exist and have content
|
package/src/agents/compiler.ts
CHANGED
|
@@ -362,6 +362,7 @@ export function filterAgentsByTeam(
|
|
|
362
362
|
export function compileAgents(config?: CoreAIConfig, options: CompileOptions = {}): CompileResult {
|
|
363
363
|
const projectRoot = options.projectRoot ?? process.cwd();
|
|
364
364
|
const outputDir = options.outputDir ?? join(projectRoot, '.claude', 'agents');
|
|
365
|
+
const coreAgentsDir = options.coreAgentsDir ?? getCoreAgentsDir();
|
|
365
366
|
const customAgentsDir = options.customAgentsDir ?? join(projectRoot, 'coreai', 'agents');
|
|
366
367
|
|
|
367
368
|
const result: CompileResult = {
|
|
@@ -372,6 +373,7 @@ export function compileAgents(config?: CoreAIConfig, options: CompileOptions = {
|
|
|
372
373
|
// Load all agents
|
|
373
374
|
const allAgents = loadAllAgents({
|
|
374
375
|
...options,
|
|
376
|
+
coreAgentsDir,
|
|
375
377
|
customAgentsDir,
|
|
376
378
|
});
|
|
377
379
|
|