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: File edits

rUvf13dfb872b6d
diff --git a/v3/@claude-flow/cli/src/mcp-tools/security-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/security-tools.ts
index 064501085b..5bfa81f130 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/security-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/security-tools.ts
@@ -70,9 +70,13 @@ async function getAIDefence(): Promise<AIDefenceInstance> {
clearRequireCache(packageName);
try {
const aidefence = require(packageName);
- aidefenceInstance = aidefence.createAIDefence({ enableLearning: true });
+ const instance = aidefence.createAIDefence({ enableLearning: true });
+ if (!instance) {
+ throw new Error('createAIDefence returned null after install');
+ }
+ aidefenceInstance = instance;
console.error(`[claude-flow] ${packageName} loaded successfully after install`);
- return aidefenceInstance;
+ return instance;
} catch (retryError) {
throw new Error(`AIDefence installed but failed to load: ${retryError}. Try restarting the MCP server.`);
}