hedgequantx 2.5.33 → 2.5.34

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/pages/stats.js +7 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.5.33",
3
+ "version": "2.5.34",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -394,11 +394,7 @@ const showStats = async (service) => {
394
394
  drawBoxHeader('AI SUPERVISION', boxWidth);
395
395
  draw2ColHeader('AGENTS', 'PERFORMANCE', boxWidth);
396
396
 
397
- // Agent info
398
- const activeAgent = aiService.getActiveAgent();
399
- const agentNames = aiAgents.map(a => a.name).join(', ');
400
- const agentMode = aiAgents.length >= 2 ? 'CONSENSUS' : 'INDIVIDUAL';
401
- const modeColor = aiAgents.length >= 2 ? chalk.magenta : chalk.cyan;
397
+ // Agent info (removed unused: activeAgent, agentNames, agentMode, modeColor)
402
398
 
403
399
  // Supervision metrics
404
400
  let totalDecisions = 0;
@@ -438,23 +434,19 @@ const showStats = async (service) => {
438
434
  { label: 'TRADES TODAY:', value: chalk.white(String(supervisionData.totalTrades)) }
439
435
  ];
440
436
 
441
- // Agents column data (left side) - each agent on its own line
437
+ // Agents column data (left side) - each agent on its own line with ● indicator
442
438
  const agentsData = [
443
- { label: 'CONNECTED AGENTS:', value: chalk.green(String(aiAgents.length)) },
444
- { label: 'MODE:', value: modeColor(agentMode) },
445
- { label: 'SESSION TIME:', value: sessionTimeStr === 'INACTIVE' ? chalk.yellow(sessionTimeStr) : chalk.white(sessionTimeStr) }
439
+ { label: 'CONNECTED:', value: chalk.green(String(aiAgents.length) + ' AGENT' + (aiAgents.length > 1 ? 'S' : '')) },
440
+ { label: 'SESSION:', value: sessionTimeStr === 'INACTIVE' ? chalk.yellow(sessionTimeStr) : chalk.white(sessionTimeStr) }
446
441
  ];
447
442
 
448
- // Add each agent as a separate line
443
+ // Add each agent as a separate line with ● indicator
449
444
  aiAgents.forEach((agent, idx) => {
450
445
  const agentLabel = idx === 0 ? 'AGENTS:' : '';
451
- const isActive = activeAgent && agent.id === activeAgent.id;
452
446
  const agentName = agent.name.length > maxAgentNameLen
453
- ? agent.name.substring(0, maxAgentNameLen - 2) + '..'
447
+ ? agent.name.substring(0, maxAgentNameLen - 4) + '..'
454
448
  : agent.name;
455
- const agentDisplay = isActive
456
- ? chalk.green('● ') + chalk.green(agentName)
457
- : chalk.white('○ ') + chalk.white(agentName);
449
+ const agentDisplay = chalk.green('● ') + chalk.white(agentName);
458
450
  agentsData.push({ label: agentLabel, value: agentDisplay });
459
451
  });
460
452