hedgequantx 2.7.69 → 2.7.71

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.69",
3
+ "version": "2.7.71",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -242,24 +242,10 @@ const handleUpdate = async () => {
242
242
 
243
243
  spinner.succeed(`UPDATED TO V${latestVersion}!`);
244
244
  console.log(chalk.green('\n ✓ UPDATE SUCCESSFUL!'));
245
- console.log(chalk.cyan(' RESTARTING HQX...'));
246
-
247
- await new Promise(r => setTimeout(r, 1000));
248
-
249
- // Restart HQX
250
- try {
251
- const child = spawn('hqx', [], {
252
- stdio: 'inherit',
253
- detached: true,
254
- shell: true
255
- });
256
- child.unref();
257
- process.exit(0);
258
- } catch (e) {
259
- console.log(chalk.yellow('\n PLEASE RESTART HQX MANUALLY:'));
260
- console.log(chalk.white(' hqx'));
261
- await prompts.waitForEnter();
262
- }
245
+ console.log(chalk.yellow('\n PLEASE RESTART HQX TO USE THE NEW VERSION:'));
246
+ console.log(chalk.white(' hqx'));
247
+ await prompts.waitForEnter();
248
+ process.exit(0);
263
249
 
264
250
  } catch (error) {
265
251
  if (spinner) spinner.fail('UPDATE ERROR');
@@ -242,9 +242,6 @@ const handleCliProxyConnection = async (provider, config, boxWidth) => {
242
242
  const modelsResult = await cliproxy.fetchProviderModels(provider.id);
243
243
  spinner.stop();
244
244
 
245
- // DEBUG
246
- console.log(chalk.gray(` DEBUG: success=${modelsResult.success}, count=${modelsResult.models?.length || 0}, error=${modelsResult.error || 'none'}`));
247
-
248
245
  if (modelsResult.success && modelsResult.models.length > 0) {
249
246
  const selectedModel = await selectModelFromList(provider, modelsResult.models, boxWidth);
250
247
  if (selectedModel) {
@@ -354,9 +354,9 @@ const getLoginUrl = async (provider) => {
354
354
 
355
355
  const headless = isHeadless();
356
356
 
357
- // For headless/VPS, use -no-browser flag and specify config (which contains auth-dir)
357
+ // For headless/VPS, use -no-browser flag only (don't pass config to avoid port conflict)
358
358
  return new Promise((resolve) => {
359
- const args = [flag, '-no-browser', '-config', CONFIG_PATH];
359
+ const args = [flag, '-no-browser'];
360
360
  const child = spawn(BINARY_PATH, args, {
361
361
  cwd: INSTALL_DIR
362
362
  });