hedgequantx 2.6.67 → 2.6.68
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 +2 -17
package/package.json
CHANGED
package/src/menus/ai-agent.js
CHANGED
|
@@ -891,24 +891,9 @@ const setupConnection = async (provider, option) => {
|
|
|
891
891
|
|
|
892
892
|
console.log(makeLine(''));
|
|
893
893
|
|
|
894
|
-
// Show URL
|
|
894
|
+
// Show URL for reference (no browser needed - user already has API key)
|
|
895
895
|
if (option.url && (field === 'apiKey' || field === 'sessionKey' || field === 'accessToken')) {
|
|
896
|
-
|
|
897
|
-
if (browserOpened) {
|
|
898
|
-
console.log(makeLine(chalk.green('BROWSER OPENED')));
|
|
899
|
-
console.log(makeLine(''));
|
|
900
|
-
console.log(makeLine(chalk.cyan('LINK: ') + chalk.white(option.url)));
|
|
901
|
-
} else {
|
|
902
|
-
console.log(makeLine(chalk.yellow('COULD NOT OPEN BROWSER (VPS/SSH?)')));
|
|
903
|
-
console.log(makeLine(''));
|
|
904
|
-
console.log(makeLine(chalk.white('OPEN THIS URL IN YOUR BROWSER:')));
|
|
905
|
-
console.log(makeLine(''));
|
|
906
|
-
// Split URL into chunks that fit the box width
|
|
907
|
-
const maxUrlLen = W - 4;
|
|
908
|
-
for (let i = 0; i < option.url.length; i += maxUrlLen) {
|
|
909
|
-
console.log(makeLine(chalk.cyan(option.url.substring(i, i + maxUrlLen))));
|
|
910
|
-
}
|
|
911
|
-
}
|
|
896
|
+
console.log(makeLine(chalk.cyan('GET KEY: ') + chalk.white(option.url)));
|
|
912
897
|
}
|
|
913
898
|
|
|
914
899
|
// Show default for endpoint
|