hedgequantx 1.8.19 → 1.8.20

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.8.19",
3
+ "version": "1.8.20",
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": {
@@ -68,6 +68,7 @@ const textInput = async (message, defaultVal = '') => {
68
68
  * Password input
69
69
  */
70
70
  const passwordInput = async (message) => {
71
+ if (rl && !rl.closed) { rl.close(); rl = null; }
71
72
  prepareStdin();
72
73
  const { value } = await inquirer.prompt([{
73
74
  type: 'password',
@@ -83,6 +84,7 @@ const passwordInput = async (message) => {
83
84
  * Confirm - arrow keys selection
84
85
  */
85
86
  const confirmPrompt = async (message, defaultVal = true) => {
87
+ if (rl && !rl.closed) { rl.close(); rl = null; }
86
88
  prepareStdin();
87
89
  const choices = defaultVal
88
90
  ? [{ name: 'Yes', value: true }, { name: 'No', value: false }]
@@ -103,6 +105,7 @@ const confirmPrompt = async (message, defaultVal = true) => {
103
105
  * Number input
104
106
  */
105
107
  const numberInput = async (message, defaultVal = 1, min = 1, max = 1000) => {
108
+ if (rl && !rl.closed) { rl.close(); rl = null; }
106
109
  prepareStdin();
107
110
  const { value } = await inquirer.prompt([{
108
111
  type: 'input',
@@ -125,6 +128,11 @@ const numberInput = async (message, defaultVal = 1, min = 1, max = 1000) => {
125
128
  * Select - arrow keys navigation
126
129
  */
127
130
  const selectOption = async (message, options) => {
131
+ // Close shared readline before inquirer to avoid conflicts
132
+ if (rl && !rl.closed) {
133
+ rl.close();
134
+ rl = null;
135
+ }
128
136
  prepareStdin();
129
137
 
130
138
  const choices = options.map(opt => ({