hedgequantx 2.6.107 → 2.6.109

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.107",
3
+ "version": "2.6.109",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -1034,9 +1034,9 @@ const setupProxyOAuth = async (provider, config) => {
1034
1034
 
1035
1035
  let authSuccess = false;
1036
1036
 
1037
- // First try: wait 45 seconds for automatic callback
1037
+ // First try: wait 3 seconds for automatic callback (instant for local, very fast fallback for VPS)
1038
1038
  try {
1039
- await proxyManager.waitForAuth(authState, 45000, (status) => {
1039
+ await proxyManager.waitForAuth(authState, 3000, (status) => {
1040
1040
  waitSpinner.text = status;
1041
1041
  });
1042
1042
  authSuccess = true;
@@ -1046,13 +1046,8 @@ const setupProxyOAuth = async (provider, config) => {
1046
1046
  if (error.message === 'Authentication timeout') {
1047
1047
  waitSpinner.stop();
1048
1048
  console.log();
1049
- console.log(chalk.yellow(' Callback not received automatically.'));
1050
- console.log(chalk.gray(' If you\'re on a remote server (VPS), the callback cannot reach this machine.'));
1051
- console.log();
1052
- console.log(chalk.white(' After authorizing, you should see a page with URL like:'));
1053
- console.log(chalk.cyan(' http://localhost:54545/callback?code=xxx&state=yyy'));
1054
- console.log();
1055
- console.log(chalk.white(' Paste that full URL below (or press Enter to cancel):'));
1049
+ console.log(chalk.yellow(' Paste the callback URL from your browser:'));
1050
+ console.log(chalk.gray(' (The page showing http://localhost:54545/callback?code=...)'));
1056
1051
  console.log();
1057
1052
 
1058
1053
  const callbackUrl = await prompts.input(' Callback URL: ');