Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

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

rUv4ef57bda3246
diff --git a/.claude/checkpoints/1754066761.json b/.claude/checkpoints/1754066761.json
new file mode 100644
index 0000000000..8577a88fbe
--- /dev/null
+++ b/.claude/checkpoints/1754066761.json
@@ -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"}
diff --git a/.claude/checkpoints/1754066762.json b/.claude/checkpoints/1754066762.json
new file mode 100644
index 0000000000..d0e20c23ec
--- /dev/null
+++ b/.claude/checkpoints/1754066762.json
@@ -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(-) "}
diff --git a/src/constants/agent-types.ts b/src/constants/agent-types.ts
index c325f25924..aef10244f5 100644
--- a/src/constants/agent-types.ts
+++ b/src/constants/agent-types.ts
@@ -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