@claude-flow/cli 3.5.81 → 3.5.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3365,14 +3365,14 @@ const statuslineCommand = {
3365
3365
  const isWindows = process.platform === 'win32';
3366
3366
  try {
3367
3367
  const psCmd = isWindows
3368
- ? 'tasklist /FI "IMAGENAME eq node.exe" 2>NUL | findstr /I /C:"node" >NUL && echo 1 || echo 0'
3368
+ ? 'tasklist /FI "IMAGENAME eq node.exe" /NH 2>NUL | find /c /v "" 2>NUL || echo 0'
3369
3369
  : 'ps aux 2>/dev/null | grep -c agentic-flow || echo "0"';
3370
- const ps = execSync(psCmd, { encoding: 'utf-8' });
3370
+ const ps = execSync(psCmd, { encoding: 'utf-8', timeout: 3000 });
3371
3371
  activeAgents = Math.max(0, parseInt(ps.trim()) - 1);
3372
3372
  coordinationActive = activeAgents > 0;
3373
3373
  }
3374
3374
  catch {
3375
- // Ignore
3375
+ // ps/tasklist unavailable or timed out — report zero
3376
3376
  }
3377
3377
  return { activeAgents, maxAgents, coordinationActive };
3378
3378
  }