hedgequantx 2.9.217 → 2.9.218

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.9.217",
3
+ "version": "2.9.218",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -11,6 +11,7 @@ const { getLogoWidth, centerText, prepareStdin, displayBanner, clearScreen } = r
11
11
  const { getCachedStats } = require('../services/stats-cache');
12
12
  const { prompts } = require('../utils');
13
13
  const { getActiveAgentCount } = require('../pages/ai-agents');
14
+ const { isDaemonRunning } = require('../services/daemon');
14
15
 
15
16
  /**
16
17
  * Dashboard menu after login
@@ -67,9 +68,14 @@ const dashboardMenu = async (service) => {
67
68
  const agentDisplay = agentCount > 0 ? 'ON' : 'OFF';
68
69
  const agentColor = agentCount > 0 ? chalk.green : chalk.red;
69
70
 
70
- // Fixed width columns for alignment (3 columns)
71
+ // Daemon status
72
+ const daemonOn = isDaemonRunning();
73
+ const daemonDisplay = daemonOn ? 'ON' : 'OFF';
74
+ const daemonColor = daemonOn ? chalk.green : chalk.gray;
75
+
76
+ // Fixed width columns for alignment (4 columns)
71
77
  const icon = chalk.yellow('✔ ');
72
- const colWidth = Math.floor(W / 3);
78
+ const colWidth = Math.floor(W / 4);
73
79
 
74
80
  const formatCol = (label, value, valueColor = chalk.white) => {
75
81
  const text = `✔ ${label}: ${value}`;
@@ -81,9 +87,10 @@ const dashboardMenu = async (service) => {
81
87
 
82
88
  const col1 = formatCol('Accounts', String(statsInfo.accounts));
83
89
  const col2 = formatCol('Balance', balStr, balColor);
84
- const col3 = formatCol('AI Agents', agentDisplay, agentColor);
90
+ const col3 = formatCol('Daemon', daemonDisplay, daemonColor);
91
+ const col4 = formatCol('AI', agentDisplay, agentColor);
85
92
 
86
- const statsLine = col1 + col2 + col3;
93
+ const statsLine = col1 + col2 + col3 + col4;
87
94
  const statsPlainLen = statsLine.replace(/\x1b\[[0-9;]*m/g, '').length;
88
95
  const extraPad = W - statsPlainLen;
89
96