hedgequantx 2.7.66 → 2.7.67

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.66",
3
+ "version": "2.7.67",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -232,22 +232,27 @@ const handleCliProxyConnection = async (provider, config, boxWidth) => {
232
232
  await prompts.waitForEnter();
233
233
  }
234
234
 
235
- // Wait for login process to save the auth file (it exits on its own after saving)
235
+ // Wait for login process to save the auth file
236
236
  const spinner = ora({ text: 'SAVING CREDENTIALS...', color: 'yellow' }).start();
237
+
238
+ // Wait for child process to exit (it saves auth file before exiting)
237
239
  if (loginResult.childProcess) {
238
240
  await new Promise((resolve) => {
239
241
  const timeout = setTimeout(() => {
240
242
  try { loginResult.childProcess.kill(); } catch (e) { /* ignore */ }
241
243
  resolve();
242
- }, 10000);
244
+ }, 15000);
243
245
  loginResult.childProcess.on('exit', () => {
244
246
  clearTimeout(timeout);
245
247
  resolve();
246
248
  });
247
249
  });
248
250
  }
251
+
252
+ // Wait for CLIProxy to detect the new auth file
249
253
  spinner.text = 'LOADING MODELS...';
250
- await new Promise(r => setTimeout(r, 1000));
254
+ await new Promise(r => setTimeout(r, 3000));
255
+
251
256
  const modelsResult = await cliproxy.fetchProviderModels(provider.id);
252
257
  spinner.stop();
253
258