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/test-agent-mapping.js

rUva30ac3daee5b
diff --git a/.claude/checkpoints/1754066900.json b/.claude/checkpoints/1754066900.json
new file mode 100644
index 0000000000..00a6e6dae8
--- /dev/null
+++ b/.claude/checkpoints/1754066900.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250801-164820", "file": "/workspaces/claude-code-flow/test-agent-validation.js", "timestamp": "2025-08-01T16:48:20Z", "type": "pre-edit", "original_branch": "alpha-83"}
diff --git a/.claude/checkpoints/1754066904.json b/.claude/checkpoints/1754066904.json
new file mode 100644
index 0000000000..78cb5a5284
--- /dev/null
+++ b/.claude/checkpoints/1754066904.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250801-164824", "file": "/workspaces/claude-code-flow/test-agent-validation.js", "timestamp": "2025-08-01T16:48:24Z", "type": "post-edit", "branch": "alpha-83", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 96 ++++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754066815.json | 1 + .claude/checkpoints/1754066817.json | 1 + claude-flow-wiki | 0 test-agent-validation.js | 25 +++++++++ 7 files changed, 127 insertions(+), 4 deletions(-) "}
diff --git a/test-agent-mapping.js b/test-agent-mapping.js
new file mode 100644
index 0000000000..02670f8e47
--- /dev/null
+++ b/test-agent-mapping.js
@@ -0,0 +1,28 @@
+import { isValidAgentType, getAvailableAgentTypes, getAgent } from './src/agents/agent-loader.js';
+
+async function test() {
+ console.log('Testing agent validation...');
+
+ try {
+ const isAnalystValid = await isValidAgentType('analyst');
+ console.log('Is analyst valid?', isAnalystValid);
+
+ const isCodeAnalyzerValid = await isValidAgentType('code-analyzer');
+ console.log('Is code-analyzer valid?', isCodeAnalyzerValid);
+
+ const types = await getAvailableAgentTypes();
+ console.log('Available types include analyst?', types.includes('analyst'));
+ console.log('Available types include code-analyzer?', types.includes('code-analyzer'));
+ console.log('Total types:', types.length);
+
+ const analystAgent = await getAgent('analyst');
+ console.log('Analyst agent found?', Boolean(analystAgent));
+ if (analystAgent) {
+ console.log('Analyst agent name:', analystAgent.name);
+ }
+ } catch (error) {
+ console.error('Error:', error.message);
+ }
+}
+
+test();
\ No newline at end of file