hedgequantx 2.7.72 → 2.7.73

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.72",
3
+ "version": "2.7.73",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -242,9 +242,18 @@ 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.yellow('\n PLEASE RESTART HQX TO USE THE NEW VERSION:'));
246
- console.log(chalk.white(' hqx'));
247
- await prompts.waitForEnter();
245
+ console.log(chalk.cyan('\n RESTARTING HQX...'));
246
+
247
+ // Restart CLI with new version using spawn detached
248
+ const { spawn } = require('child_process');
249
+ const child = spawn('hqx', [], {
250
+ detached: true,
251
+ stdio: 'inherit',
252
+ shell: true
253
+ });
254
+ child.unref();
255
+
256
+ // Exit current process to let new one take over
248
257
  process.exit(0);
249
258
 
250
259
  } catch (error) {