hedgequantx 2.7.67 → 2.7.69

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.67",
3
+ "version": "2.7.69",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -232,30 +232,19 @@ 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
236
- const spinner = ora({ text: 'SAVING CREDENTIALS...', color: 'yellow' }).start();
237
-
238
- // Wait for child process to exit (it saves auth file before exiting)
235
+ // Kill login process - we don't need to wait for it
239
236
  if (loginResult.childProcess) {
240
- await new Promise((resolve) => {
241
- const timeout = setTimeout(() => {
242
- try { loginResult.childProcess.kill(); } catch (e) { /* ignore */ }
243
- resolve();
244
- }, 15000);
245
- loginResult.childProcess.on('exit', () => {
246
- clearTimeout(timeout);
247
- resolve();
248
- });
249
- });
237
+ try { loginResult.childProcess.kill(); } catch (e) { /* ignore */ }
250
238
  }
251
239
 
252
- // Wait for CLIProxy to detect the new auth file
253
- spinner.text = 'LOADING MODELS...';
254
- await new Promise(r => setTimeout(r, 3000));
255
-
240
+ // Fetch models directly from CLIProxy API (models are already available)
241
+ const spinner = ora({ text: 'LOADING MODELS...', color: 'yellow' }).start();
256
242
  const modelsResult = await cliproxy.fetchProviderModels(provider.id);
257
243
  spinner.stop();
258
244
 
245
+ // DEBUG
246
+ console.log(chalk.gray(` DEBUG: success=${modelsResult.success}, count=${modelsResult.models?.length || 0}, error=${modelsResult.error || 'none'}`));
247
+
259
248
  if (modelsResult.success && modelsResult.models.length > 0) {
260
249
  const selectedModel = await selectModelFromList(provider, modelsResult.models, boxWidth);
261
250
  if (selectedModel) {