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-validation.js

rUv4a73bc1b5a18
diff --git a/.claude/checkpoints/1754066815.json b/.claude/checkpoints/1754066815.json
new file mode 100644
index 0000000000..b90b0dc33c
--- /dev/null
+++ b/.claude/checkpoints/1754066815.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250801-164655", "file": "/workspaces/claude-code-flow/src/agents/agent-loader.ts", "timestamp": "2025-08-01T16:46:55Z", "type": "pre-edit", "original_branch": "alpha-83"}
diff --git a/.claude/checkpoints/1754066817.json b/.claude/checkpoints/1754066817.json
new file mode 100644
index 0000000000..03383c633d
--- /dev/null
+++ b/.claude/checkpoints/1754066817.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250801-164657", "file": "/workspaces/claude-code-flow/src/agents/agent-loader.ts", "timestamp": "2025-08-01T16:46:57Z", "type": "post-edit", "branch": "alpha-83", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 60 ++++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 ++-- .claude/checkpoints/1754066783.json | 1 + .claude/checkpoints/1754066785.json | 1 + claude-flow-wiki | 0 src/agents/agent-loader.ts | 4 ++- 7 files changed, 69 insertions(+), 5 deletions(-) "}
diff --git a/test-agent-validation.js b/test-agent-validation.js
new file mode 100644
index 0000000000..27cf825369
--- /dev/null
+++ b/test-agent-validation.js
@@ -0,0 +1,25 @@
+const { isValidAgentType, getAvailableAgentTypes, getAgent } = require('./dist/agents/agent-loader.js');
+
+async function test() {
+ console.log('Testing agent validation...');
+
+ // Test if analyst is now valid
+ const isAnalystValid = await isValidAgentType('analyst');
+ console.log('Is analyst valid?', isAnalystValid);
+
+ // Test if code-analyzer is valid
+ const isCodeAnalyzerValid = await isValidAgentType('code-analyzer');
+ console.log('Is code-analyzer valid?', isCodeAnalyzerValid);
+
+ // Get available types
+ const types = await getAvailableAgentTypes();
+ console.log('Available types include analyst?', types.includes('analyst'));
+ console.log('Available types include code-analyzer?', types.includes('code-analyzer'));
+
+ // Try to get analyst agent (should return code-analyzer)
+ const analystAgent = await getAgent('analyst');
+ console.log('Analyst agent found?', !!analystAgent);
+ console.log('Analyst agent name:', analystAgent?.name);
+}
+
+test().catch(console.error);
\ No newline at end of file