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

rUva3abd94253de
diff --git a/v3/@claude-flow/cli/src/commands/doctor.ts b/v3/@claude-flow/cli/src/commands/doctor.ts
index 9f7b8c607f..a54b7b43dc 100644
--- a/v3/@claude-flow/cli/src/commands/doctor.ts
+++ b/v3/@claude-flow/cli/src/commands/doctor.ts
@@ -201,16 +201,14 @@ 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 (async)
+// Check disk space (async with proper env inheritance)
async function checkDiskSpace(): Promise<HealthCheck> {
try {
if (process.platform === 'win32') {
return { name: 'Disk Space', status: 'pass', message: 'Check skipped on Windows' };
}
- 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 output_str = await runCommand('df -h . | tail -1');
+ const parts = output_str.split(/\s+/);
const available = parts[3];
const usePercent = parseInt(parts[4]?.replace('%', '') || '0', 10);