hedgequantx 2.9.27 → 2.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.9.27",
3
+ "version": "2.9.28",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -334,33 +334,25 @@ const drawConnectionTest = async (agents, boxWidth, clearWithBanner) => {
334
334
 
335
335
  const W = boxWidth - 2;
336
336
 
337
- // Show loading state with spinner inside closed box (centered vertically)
337
+ // Show loading box with centered spinner text
338
338
  clearWithBanner();
339
339
  console.log(chalk.cyan('╔' + '═'.repeat(W) + '╗'));
340
340
  console.log(chalk.cyan('║') + chalk.yellow.bold(centerText('AI AGENTS CONNECTION TEST', W)) + chalk.cyan('║'));
341
341
  console.log(chalk.cyan('╠' + '═'.repeat(W) + '╣'));
342
-
343
- // Empty lines for vertical centering (top)
344
- console.log(chalk.cyan('║') + ' '.repeat(W) + chalk.cyan('║'));
345
342
  console.log(chalk.cyan('║') + ' '.repeat(W) + chalk.cyan('║'));
346
343
  console.log(chalk.cyan('║') + ' '.repeat(W) + chalk.cyan('║'));
344
+ console.log(chalk.cyan('╚' + '═'.repeat(W) + '╝'));
345
+ console.log('');
347
346
 
348
- // Centered spinner text inside box
347
+ // Spinner with text - centered below the box
349
348
  const spinnerText = 'Testing connections...';
350
- const paddedText = centerText(spinnerText, W);
351
- console.log(chalk.cyan('║') + chalk.yellow(paddedText) + chalk.cyan('║'));
352
-
353
- // Empty lines for vertical centering (bottom)
354
- console.log(chalk.cyan('║') + ' '.repeat(W) + chalk.cyan('║'));
355
- console.log(chalk.cyan('║') + ' '.repeat(W) + chalk.cyan('║'));
356
- console.log(chalk.cyan('║') + ' '.repeat(W) + chalk.cyan('║'));
357
- console.log(chalk.cyan('╚' + '═'.repeat(W) + '╝'));
349
+ const spinnerLeftPad = Math.floor((W - spinnerText.length - 2) / 2);
358
350
 
359
- // Start spinner below the box
360
351
  const spinner = ora({
361
- text: '',
352
+ text: chalk.yellow(spinnerText),
362
353
  spinner: 'dots',
363
- color: 'yellow'
354
+ color: 'yellow',
355
+ indent: spinnerLeftPad
364
356
  }).start();
365
357
 
366
358
  // Run pre-flight check