hedgequantx 1.7.4 → 1.7.6

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": "1.7.4",
3
+ "version": "1.7.6",
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": {
@@ -98,36 +98,27 @@ const dashboardMenu = async (service) => {
98
98
  console.log(chalk.cyan('║') + leftPadded + rightPadded + chalk.cyan('║'));
99
99
  };
100
100
 
101
- // Display menu items in 2 columns inside the box
102
- menuRow(chalk.cyan('[1] View Accounts'), chalk.cyan('[2] View Stats'));
103
- menuRow(chalk.cyan('[+] Add Prop-Account'), chalk.magenta('[A] Algo-Trading'));
104
- menuRow(chalk.yellow('[U] Update HQX'), chalk.red('[X] Disconnect'));
105
-
106
101
  console.log(chalk.cyan('╚' + '═'.repeat(W) + '╝'));
107
- console.log();
108
102
 
109
- // Input prompt
110
- const { choice } = await inquirer.prompt([
103
+ // Use list type for stable input handling
104
+ const { action } = await inquirer.prompt([
111
105
  {
112
- type: 'input',
113
- name: 'choice',
106
+ type: 'list',
107
+ name: 'action',
114
108
  message: chalk.cyan('Select:'),
115
- prefix: ''
109
+ choices: [
110
+ { name: chalk.cyan('[1] View Accounts'), value: 'accounts' },
111
+ { name: chalk.cyan('[2] View Stats'), value: 'stats' },
112
+ { name: chalk.cyan('[+] Add Prop-Account'), value: 'add_prop_account' },
113
+ { name: chalk.magenta('[A] Algo-Trading'), value: 'algotrading' },
114
+ { name: chalk.yellow('[U] Update HQX'), value: 'update' },
115
+ { name: chalk.red('[X] Disconnect'), value: 'disconnect' }
116
+ ],
117
+ loop: false
116
118
  }
117
119
  ]);
118
120
 
119
- // Map input to action
120
- const input = (choice || '').toString().toLowerCase().trim();
121
- const actionMap = {
122
- '1': 'accounts',
123
- '2': 'stats',
124
- '+': 'add_prop_account',
125
- 'a': 'algotrading',
126
- 'u': 'update',
127
- 'x': 'disconnect'
128
- };
129
-
130
- return actionMap[input] || null;
121
+ return action;
131
122
  };
132
123
 
133
124
  /**