hedgequantx 1.2.126 → 1.2.127

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/app.js +9 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "1.2.126",
3
+ "version": "1.2.127",
4
4
  "description": "Prop Futures Algo Trading CLI - Connect to Topstep, Alpha Futures, and other prop firms",
5
5
  "main": "src/app.js",
6
6
  "bin": {
package/src/app.js CHANGED
@@ -709,13 +709,20 @@ const handleUpdate = async () => {
709
709
  console.log();
710
710
  console.log(chalk.green(` ✓ Updated: v${currentVersion} -> v${latestVersion}`));
711
711
  console.log();
712
- console.log(chalk.cyan(' Restarting HQX...'));
712
+ console.log(chalk.cyan(' Restarting HedgeQuantX CLI...'));
713
713
  console.log();
714
714
 
715
715
  // Small delay so user can see the message
716
716
  await new Promise(resolve => setTimeout(resolve, 1500));
717
717
 
718
- // Exit so user can restart
718
+ // Restart the CLI automatically
719
+ const { spawn } = require('child_process');
720
+ const child = spawn('hedgequantx', [], {
721
+ stdio: 'inherit',
722
+ detached: true,
723
+ shell: true
724
+ });
725
+ child.unref();
719
726
  process.exit(0);
720
727
 
721
728
  } catch (error) {