hedgequantx 2.7.27 → 2.7.28

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/app.js +9 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.7.27",
3
+ "version": "2.7.28",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
package/src/app.js CHANGED
@@ -161,19 +161,21 @@ const getMobileLogo = () => [
161
161
  const run = async () => {
162
162
  try {
163
163
  log.info('Starting HQX CLI');
164
- await bannerClosed();
165
-
166
- // Restore session
167
- const spinner = ora({ text: 'Restoring session...', color: 'yellow' }).start();
164
+
165
+ // First launch - show banner with loading spinner
166
+ await banner();
167
+ const boxWidth = getLogoWidth();
168
+ const innerWidth = boxWidth - 2;
169
+ console.log(chalk.cyan('╠' + '═'.repeat(innerWidth) + '╣'));
170
+
171
+ const spinner = ora({ text: ' Loading...', color: 'yellow' }).start();
168
172
  const restored = await connections.restoreFromStorage();
169
173
 
170
174
  if (restored) {
171
- spinner.succeed('Session restored');
172
175
  currentService = connections.getAll()[0].service;
173
176
  await refreshStats();
174
- } else {
175
- spinner.info('No active session');
176
177
  }
178
+ spinner.stop();
177
179
 
178
180
  // Main loop
179
181
  while (true) {