hedgequantx 2.6.71 → 2.6.73
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 +13 -5
package/package.json
CHANGED
package/src/menus/ai-agent.js
CHANGED
|
@@ -984,9 +984,7 @@ const setupDeviceFlowOAuth = async (provider, config) => {
|
|
|
984
984
|
|
|
985
985
|
console.log(makeLine(chalk.yellow('DEVICE FLOW AUTHENTICATION')));
|
|
986
986
|
console.log(makeLine(''));
|
|
987
|
-
console.log(makeLine(chalk.white('1. OPEN
|
|
988
|
-
console.log(makeLine(''));
|
|
989
|
-
console.log(makeLine(chalk.cyan(deviceResult.verificationUri || deviceResult.verificationUriComplete)));
|
|
987
|
+
console.log(makeLine(chalk.white('1. OPEN THE URL BELOW IN YOUR BROWSER')));
|
|
990
988
|
console.log(makeLine(''));
|
|
991
989
|
console.log(makeLine(chalk.white('2. ENTER THIS CODE WHEN PROMPTED:')));
|
|
992
990
|
console.log(makeLine(''));
|
|
@@ -999,6 +997,14 @@ const setupDeviceFlowOAuth = async (provider, config) => {
|
|
|
999
997
|
|
|
1000
998
|
drawBoxFooter(boxWidth);
|
|
1001
999
|
|
|
1000
|
+
// Display URL outside the box for easy copy-paste
|
|
1001
|
+
const verificationUrl = deviceResult.verificationUriComplete || deviceResult.verificationUri;
|
|
1002
|
+
console.log();
|
|
1003
|
+
console.log(chalk.yellow(' OPEN THIS URL IN YOUR BROWSER:'));
|
|
1004
|
+
console.log();
|
|
1005
|
+
console.log(chalk.cyan(` ${verificationUrl}`));
|
|
1006
|
+
console.log();
|
|
1007
|
+
|
|
1002
1008
|
// Poll for token
|
|
1003
1009
|
const pollSpinner = ora({ text: 'WAITING FOR AUTHORIZATION...', color: 'cyan' }).start();
|
|
1004
1010
|
|
|
@@ -1139,8 +1145,10 @@ const setupConnection = async (provider, option) => {
|
|
|
1139
1145
|
case 'endpoint':
|
|
1140
1146
|
const defaultEndpoint = option.defaultEndpoint || '';
|
|
1141
1147
|
value = await prompts.textInput(chalk.cyan(`ENDPOINT [${defaultEndpoint || 'required'}]:`));
|
|
1142
|
-
if (value
|
|
1143
|
-
|
|
1148
|
+
if (!value || value.trim() === '<' || value.trim() === '') {
|
|
1149
|
+
if (!defaultEndpoint) return await selectProviderOption(provider);
|
|
1150
|
+
}
|
|
1151
|
+
credentials.endpoint = (value && value.trim() !== '<' ? value : defaultEndpoint).trim();
|
|
1144
1152
|
if (!credentials.endpoint) return await selectProviderOption(provider);
|
|
1145
1153
|
break;
|
|
1146
1154
|
|