hedgequantx 2.5.5 → 2.5.6

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.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -44,7 +44,7 @@ const dashboardMenu = async (service) => {
44
44
  console.log(makeLine(propfirmText, 'center'));
45
45
  }
46
46
 
47
- // Stats bar with yellow icons
47
+ // Stats bar with icons
48
48
  const statsInfo = getCachedStats();
49
49
  if (statsInfo) {
50
50
  console.log(chalk.cyan('╠' + '═'.repeat(W) + '╣'));
@@ -58,21 +58,22 @@ const dashboardMenu = async (service) => {
58
58
  ? aiConnection.provider.name.split(' ')[0] // Just "CLAUDE" or "OPENAI"
59
59
  : null;
60
60
 
61
- // Build stats line with simple ASCII icons (+ for connected, - for not)
62
- const statsContent = `+ CONNECTIONS: ${statsInfo.connections} + ACCOUNTS: ${statsInfo.accounts} + BALANCE: ${balStr} ${aiStatus ? '+' : '-'} AI: ${aiStatus || 'NONE'}`;
63
- const statsLen = statsContent.length;
61
+ // Build plain text for length calculation (unicode and are 1 char width each)
62
+ // Format: "✔ CONNECTIONS: X ACCOUNTS: X BALANCE: $X AI: NONE"
63
+ const plainText = `* CONNECTIONS: ${statsInfo.connections} * ACCOUNTS: ${statsInfo.accounts} * BALANCE: ${balStr} * AI: ${aiStatus || 'NONE'}`;
64
+ const statsLen = plainText.length;
64
65
  const statsLeftPad = Math.max(0, Math.floor((W - statsLen) / 2));
65
66
  const statsRightPad = Math.max(0, W - statsLen - statsLeftPad);
66
67
 
67
- // Now build with colors (use same text so length matches)
68
- const icon = chalk.yellow('+ ');
69
- const aiIcon = aiStatus ? chalk.magenta('+ ') : chalk.gray('- ');
68
+ // Build with unicode icons and colors
69
+ const checkIcon = chalk.yellow(' ');
70
+ const aiIcon = aiStatus ? chalk.magenta(' ') : chalk.gray(' ');
70
71
  const aiText = aiStatus ? chalk.magenta(aiStatus) : chalk.gray('NONE');
71
72
 
72
73
  console.log(chalk.cyan('║') + ' '.repeat(statsLeftPad) +
73
- icon + chalk.white(`CONNECTIONS: ${statsInfo.connections}`) + ' ' +
74
- icon + chalk.white(`ACCOUNTS: ${statsInfo.accounts}`) + ' ' +
75
- icon + chalk.white('BALANCE: ') + balColor(balStr) + ' ' +
74
+ checkIcon + chalk.white(`CONNECTIONS: ${statsInfo.connections}`) + ' ' +
75
+ checkIcon + chalk.white(`ACCOUNTS: ${statsInfo.accounts}`) + ' ' +
76
+ checkIcon + chalk.white('BALANCE: ') + balColor(balStr) + ' ' +
76
77
  aiIcon + chalk.white('AI: ') + aiText +
77
78
  ' '.repeat(statsRightPad) + chalk.cyan('║'));
78
79
  }