🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/agents/agent-loader.ts

This commit is contained in:
rUv committed 2025-08-01 16:45:16 +00:00
1 parent b3b3fea370
commit b42e39a720
2 files changed
+19

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"checkpoint": "task-20250801-164439", "task": "{{user_prompt}} ", "timestamp": "2025-08-01T16:44:41Z", "commit": "b3b3fea3708bb40074e457ada2e8caaca7e3d48d", "github_release": "true"}
+18
View File
@@ -8,6 +8,24 @@ import { glob } from 'glob';
import { resolve, dirname } from 'node:path';
import { parse as parseYaml } from 'yaml';
// Legacy agent type mapping for backward compatibility
const LEGACY_AGENT_MAPPING = {
analyst: 'code-analyzer',
coordinator: 'task-orchestrator',
optimizer: 'perf-analyzer',
documenter: 'api-docs',
monitor: 'performance-benchmarker',
specialist: 'system-architect',
architect: 'system-architect',
} as const;
/**
* Resolve legacy agent types to current equivalents
*/
function resolveLegacyAgentType(legacyType: string): string {
return LEGACY_AGENT_MAPPING[legacyType as keyof typeof LEGACY_AGENT_MAPPING] || legacyType;
}
export interface AgentDefinition {
name: string;
type?: string;