hedgequantx 2.9.17 → 2.9.18
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 +1 -1
- package/src/pages/ai-agents-ui.js +13 -5
package/package.json
CHANGED
|
@@ -334,19 +334,27 @@ const drawConnectionTest = async (agents, boxWidth, clearWithBanner) => {
|
|
|
334
334
|
|
|
335
335
|
const W = boxWidth - 2;
|
|
336
336
|
|
|
337
|
-
// Show loading state with
|
|
337
|
+
// Show loading state with spinner
|
|
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
342
|
console.log(chalk.cyan('║') + ' '.repeat(W) + chalk.cyan('║'));
|
|
343
|
-
console.log(chalk.cyan('║') + chalk.yellow(centerText('Testing connections... Please wait', W)) + chalk.cyan('║'));
|
|
344
|
-
console.log(chalk.cyan('║') + ' '.repeat(W) + chalk.cyan('║'));
|
|
345
|
-
console.log(chalk.cyan('╚' + '═'.repeat(W) + '╝'));
|
|
346
343
|
|
|
347
|
-
//
|
|
344
|
+
// Start spinner on the loading line
|
|
345
|
+
const spinnerText = 'Testing connections... Please wait';
|
|
346
|
+
const spinner = ora({
|
|
347
|
+
text: spinnerText,
|
|
348
|
+
spinner: 'dots',
|
|
349
|
+
color: 'yellow'
|
|
350
|
+
}).start();
|
|
351
|
+
|
|
352
|
+
// Run pre-flight check
|
|
348
353
|
const results = await runPreflightCheck(agents);
|
|
349
354
|
|
|
355
|
+
// Stop spinner
|
|
356
|
+
spinner.stop();
|
|
357
|
+
|
|
350
358
|
// Clear and redraw with results
|
|
351
359
|
clearWithBanner();
|
|
352
360
|
console.log(chalk.cyan('╔' + '═'.repeat(W) + '╗'));
|