🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/constants/agent-types.ts

This commit is contained in:
rUv committed 2025-08-01 16:46:17 +00:00
1 parent acf22acc9f
commit 4ef57bda32
3 files changed
+10 -11

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250801-164600", "file": "/workspaces/claude-code-flow/src/agents/agent-loader.ts", "timestamp": "2025-08-01T16:46:01Z", "type": "pre-edit", "original_branch": "alpha-83"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250801-164602", "file": "/workspaces/claude-code-flow/src/agents/agent-loader.ts", "timestamp": "2025-08-01T16:46:02Z", "type": "post-edit", "branch": "alpha-83", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 36 ++++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/1754066750.json | 1 + .claude/checkpoints/1754066751.json | 1 + claude-flow-wiki | 0 src/agents/agent-loader.ts | 5 ++++- 7 files changed, 46 insertions(+), 5 deletions(-) "}
+8 -11
View File
@@ -3,21 +3,18 @@
* This file provides type-safe access to dynamically loaded agent definitions
*/
import { getAvailableAgentTypes, isValidAgentType as validateAgentType } from '../agents/agent-loader.js';
import {
getAvailableAgentTypes,
isValidAgentType as validateAgentType,
resolveLegacyAgentType as resolveLegacy,
LEGACY_AGENT_MAPPING as LEGACY_MAPPING
} from '../agents/agent-loader.js';
// Dynamic agent type - will be a string that matches available agents
export type AgentType = string;
// Legacy agent type mapping for backward compatibility
export 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;
// Re-export legacy mapping from agent-loader
export const LEGACY_AGENT_MAPPING = LEGACY_MAPPING;
/**
* Get all valid agent types dynamically