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

fix(security): restore @claude-flow/aidefence optionalDep + fix swallowed output.error

Michael Perez9049e9578e3d
diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json
index d33e12187e..14f509a3b6 100644
--- a/v3/@claude-flow/cli/package.json
+++ b/v3/@claude-flow/cli/package.json
@@ -111,6 +111,7 @@
"yaml": "^2.8.0"
},
"optionalDependencies": {
+ "@claude-flow/aidefence": "~3.0.2",
"@claude-flow/memory": "^3.0.0-alpha.21",
"@claude-flow/security": "^3.0.0-alpha.10",
"agentdb": "^3.0.0-alpha.17",
diff --git a/v3/@claude-flow/cli/src/commands/security.ts b/v3/@claude-flow/cli/src/commands/security.ts
index f4c087af11..ddd4c40a0a 100644
--- a/v3/@claude-flow/cli/src/commands/security.ts
+++ b/v3/@claude-flow/cli/src/commands/security.ts
@@ -897,7 +897,7 @@ const defendCommand: Command = {
const aidefence = await import('@claude-flow/aidefence');
createAIDefence = aidefence.createAIDefence;
} catch {
- output.error('AIDefence package not installed. Run: npm install @claude-flow/aidefence');
+ output.printError('AIDefence package not installed', 'Run: npm install @claude-flow/aidefence');
return { success: false, message: 'AIDefence not available' };
}
@@ -925,7 +925,7 @@ const defendCommand: Command = {
textToScan = await fs.readFile(filePath, 'utf-8');
output.writeln(output.dim(`Reading file: ${filePath}`));
} catch (err) {
- output.error(`Failed to read file: ${filePath}`);
+ output.printError(`Failed to read file: ${filePath}`);
return { success: false, message: 'File not found' };
}
}
diff --git a/v3/pnpm-lock.yaml b/v3/pnpm-lock.yaml
index a167707abc..52659788a0 100644
--- a/v3/pnpm-lock.yaml
+++ b/v3/pnpm-lock.yaml
@@ -141,6 +141,9 @@ importers:
specifier: ^2.8.0
version: 2.8.2
optionalDependencies:
+ '@claude-flow/aidefence':
+ specifier: ~3.0.2
+ version: 3.0.3([email protected])
'@claude-flow/memory':
specifier: ^3.0.0-alpha.21
version: link:../memory
@@ -734,6 +737,20 @@ packages:
resolution: {integrity: sha512-k7vvKPbf7J2fZ5klGRD9AeKfUvojuZIQ3BT5u7Jfv+puwXkUBUT5PVyMDfJZpy30CBDXGMgw7fguK/lpOMBvgw==}
requiresBuild: true
+ resolution: {integrity: sha512-KP2kgopV9EeicXtIhxhjZJaALg5arqf8h9fPpFDACBfyM8gI7s+zk6TDoL9VWC9eHWtRB/a/cBnq80rjA79ihA==}
+ engines: {node: '>=18.0.0'}
+ requiresBuild: true
+ peerDependencies:
+ agentdb: '>=2.0.0-alpha.1'
+ peerDependenciesMeta:
+ agentdb:
+ optional: true
+ dependencies:
+ agentdb: 3.0.0-alpha.17(@types/[email protected])([email protected])
+ dev: false
+ optional: true
+
/@claude-flow/[email protected]:
resolution: {integrity: sha512-lP1t8GMWDl9RxnwMZrjMukZkyglhge7Znhj1PbUiUQ94kHcN+dAxUkA75HM1n7BONbIDcE/CS8qN2ril5KgzNg==}
dependencies: