hedgequantx 2.7.50 → 2.7.52

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.7.50",
3
+ "version": "2.7.52",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
package/src/app.js CHANGED
@@ -175,7 +175,8 @@ const run = async () => {
175
175
  await refreshStats();
176
176
  }
177
177
 
178
- // Don't stop spinner here - dashboardMenu will clear the screen
178
+ // Stop spinner before entering main loop
179
+ spinner.stop();
179
180
 
180
181
  // Main loop
181
182
  while (true) {
@@ -237,11 +237,19 @@ const handleCliProxyConnection = async (provider, config, boxWidth) => {
237
237
  try { loginResult.childProcess.kill(); } catch (e) { /* ignore */ }
238
238
  }
239
239
 
240
+ // Restart CLIProxy to load new tokens
241
+ const restartSpinner = ora({ text: 'RESTARTING CLIPROXY...', color: 'yellow' }).start();
242
+ await cliproxy.stop();
243
+ await new Promise(r => setTimeout(r, 1000));
244
+ await cliproxy.start();
245
+ await new Promise(r => setTimeout(r, 2000));
246
+ restartSpinner.stop();
247
+
240
248
  // Fetch models from CLIProxy (retry a few times if needed)
241
249
  let modelsResult = { success: false, models: [] };
242
250
  const spinner = ora({ text: 'LOADING MODELS...', color: 'yellow' }).start();
243
251
 
244
- for (let i = 0; i < 5; i++) {
252
+ for (let i = 0; i < 10; i++) {
245
253
  modelsResult = await cliproxy.fetchProviderModels(provider.id);
246
254
  if (modelsResult.success && modelsResult.models.length > 0) {
247
255
  spinner.stop();