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 +1 -1
- package/src/menus/ai-agent.js +4 -9
package/package.json
CHANGED
package/src/menus/ai-agent.js
CHANGED
|
@@ -1034,9 +1034,9 @@ const setupProxyOAuth = async (provider, config) => {
|
|
|
1034
1034
|
|
|
1035
1035
|
let authSuccess = false;
|
|
1036
1036
|
|
|
1037
|
-
// First try: wait
|
|
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,
|
|
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('
|
|
1050
|
-
console.log(chalk.gray('
|
|
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: ');
|