hedgequantx 2.6.117 → 2.6.118

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.6.117",
3
+ "version": "2.6.118",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -1065,17 +1065,11 @@ const setupProxyOAuth = async (provider, config) => {
1065
1065
  });
1066
1066
  }
1067
1067
 
1068
- // Debug: show what we got
1069
- console.log(chalk.yellow(` [DEBUG] Got: "${callbackUrl || 'EMPTY'}"`));
1070
- console.log(chalk.yellow(` [DEBUG] Length: ${callbackUrl ? callbackUrl.length : 0}`));
1071
- await prompts.waitForEnter(' [DEBUG] Press Enter to continue...');
1072
-
1073
1068
  if (callbackUrl && callbackUrl.trim()) {
1074
1069
  const submitSpinner = ora({ text: 'Submitting callback...', color: 'cyan' }).start();
1075
1070
  try {
1076
1071
  await proxyManager.submitCallback(callbackUrl.trim(), provider.id);
1077
1072
  // Callback succeeded - CLIProxyAPI handles the token exchange
1078
- // No need to poll waitForAuth, the callback endpoint already did everything
1079
1073
  await new Promise(resolve => setTimeout(resolve, 500));
1080
1074
  authSuccess = true;
1081
1075
  submitSpinner.succeed('Authorization successful!');
@@ -1111,14 +1105,14 @@ const setupProxyOAuth = async (provider, config) => {
1111
1105
  }
1112
1106
 
1113
1107
  // Step 5: Fetch models from CLIProxyAPI
1114
- waitSpinner.text = 'Fetching available models from API...';
1115
- waitSpinner.start();
1108
+ const modelSpinner = ora({ text: 'Fetching available models from API...', color: 'cyan' }).start();
1116
1109
 
1117
1110
  let models = [];
1118
1111
  try {
1119
1112
  models = await proxyManager.getModels();
1113
+ modelSpinner.succeed(`Found ${models.length} models`);
1120
1114
  } catch (error) {
1121
- waitSpinner.fail(`Failed to fetch models: ${error.message}`);
1115
+ modelSpinner.fail(`Failed to fetch models: ${error.message}`);
1122
1116
  await prompts.waitForEnter();
1123
1117
  return await selectProviderOption(provider);
1124
1118
  }