hedgequantx 2.9.43 → 2.9.44

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.9.43",
3
+ "version": "2.9.44",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -86,9 +86,10 @@ const oneAccountMenu = async (service) => {
86
86
  const config = await configureAlgo(selectedAccount, contract, strategy);
87
87
  if (!config) return;
88
88
 
89
- // Check for AI Supervision
89
+ // Check for AI Supervision BEFORE asking to start
90
90
  const agentCount = getActiveAgentCount();
91
91
  let supervisionConfig = null;
92
+ let aiEnabled = false;
92
93
 
93
94
  if (agentCount > 0) {
94
95
  console.log();
@@ -122,13 +123,16 @@ const oneAccountMenu = async (service) => {
122
123
  }
123
124
 
124
125
  supervisionConfig = getSupervisionConfig();
126
+ aiEnabled = true;
125
127
  console.log(chalk.green(` ✓ AI Supervision ready with ${agentCount} agent(s)`));
126
-
127
- const proceedWithAI = await prompts.confirmPrompt('Start algo with AI supervision?', true);
128
- if (!proceedWithAI) return;
129
128
  }
130
129
  }
131
130
 
131
+ // Final confirmation to start
132
+ const startPrompt = aiEnabled ? 'Start algo with AI supervision?' : 'Start algo trading?';
133
+ const proceed = await prompts.confirmPrompt(startPrompt, true);
134
+ if (!proceed) return;
135
+
132
136
  await executeAlgo({
133
137
  service: accountService,
134
138
  account: selectedAccount,
@@ -237,9 +241,6 @@ const configureAlgo = async (account, contract, strategy) => {
237
241
  const showName = await prompts.confirmPrompt('Show account name?', false);
238
242
  if (showName === null) return null;
239
243
 
240
- const confirm = await prompts.confirmPrompt('Start algo trading?', true);
241
- if (!confirm) return null;
242
-
243
244
  return { contracts, dailyTarget, maxRisk, showName };
244
245
  };
245
246