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

rUv6a15d99daa0b
diff --git a/v3/@claude-flow/cli/src/commands/doctor.ts b/v3/@claude-flow/cli/src/commands/doctor.ts
index 7976f4fed1..8c1abde052 100644
--- a/v3/@claude-flow/cli/src/commands/doctor.ts
+++ b/v3/@claude-flow/cli/src/commands/doctor.ts
@@ -189,14 +189,16 @@ async function checkMcpServers(): Promise<HealthCheck> {
return { name: 'MCP Servers', status: 'warn', message: 'No MCP config found', fix: 'claude mcp add claude-flow npx @claude-flow/cli@v3alpha mcp start' };
}
-// Check disk space
+// Check disk space (async)
async function checkDiskSpace(): Promise<HealthCheck> {
try {
if (process.platform === 'win32') {
return { name: 'Disk Space', status: 'pass', message: 'Check skipped on Windows' };
}
- const output_str = execSync('df -h . | tail -1', { encoding: 'utf8' });
- const parts = output_str.split(/\s+/);
+ const { promisify } = require('util');
+ const execAsync = promisify(require('child_process').exec);
+ const { stdout } = await execAsync('df -h . | tail -1', { encoding: 'utf8', timeout: 5000 });
+ const parts = stdout.split(/\s+/);
const available = parts[3];
const usePercent = parseInt(parts[4]?.replace('%', '') || '0', 10);