hedgequantx 1.8.0 → 1.8.1

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": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Prop Futures Algo Trading CLI - Connect to Topstep, Alpha Futures, and other prop firms",
5
5
  "main": "src/app.js",
6
6
  "bin": {
package/src/app.js CHANGED
@@ -133,7 +133,15 @@ const banner = async () => {
133
133
  console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
134
134
  const tagline = isMobile ? `HQX v${version}` : `Prop Futures Algo Trading v${version}`;
135
135
  console.log(chalk.cyan('║') + chalk.white(centerText(tagline, innerWidth)) + chalk.cyan('║'));
136
- console.log(chalk.cyan('╚' + '═'.repeat(innerWidth) + '╝'));
136
+ };
137
+
138
+ /**
139
+ * Display banner with closing border (for loading states)
140
+ */
141
+ const bannerClosed = async () => {
142
+ await banner();
143
+ const boxWidth = process.stdout.columns < 60 ? Math.max(process.stdout.columns - 2, 40) : Math.max(getLogoWidth(), 98);
144
+ console.log(chalk.cyan('╚' + '═'.repeat(boxWidth - 2) + '╝'));
137
145
  };
138
146
 
139
147
  /**
@@ -152,7 +160,8 @@ const mainMenu = async () => {
152
160
  console.log(chalk.cyan('║') + leftPadded + rightPadded + chalk.cyan('║'));
153
161
  };
154
162
 
155
- console.log(chalk.cyan('╔' + '═'.repeat(innerWidth) + '╗'));
163
+ // Continue from banner (use not ╔)
164
+ console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
156
165
  console.log(chalk.cyan('║') + chalk.white.bold(centerText('SELECT PLATFORM', innerWidth)) + chalk.cyan('║'));
157
166
  console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
158
167
 
@@ -30,7 +30,8 @@ const dashboardMenu = async (service) => {
30
30
  return chalk.cyan('║') + content + ' '.repeat(Math.max(0, padding)) + chalk.cyan('║');
31
31
  };
32
32
 
33
- console.log(chalk.cyan('╔' + '═'.repeat(W) + '╗'));
33
+ // Continue from banner (use not ╔)
34
+ console.log(chalk.cyan('╠' + '═'.repeat(W) + '╣'));
34
35
  console.log(makeLine(chalk.yellow.bold('Welcome, HQX Trader!'), 'center'));
35
36
  console.log(chalk.cyan('╠' + '═'.repeat(W) + '╣'));
36
37