hedgequantx 2.6.69 → 2.6.71
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
package/src/menus/ai-agent.js
CHANGED
|
@@ -841,28 +841,36 @@ const setupBrowserOAuth = async (provider, config) => {
|
|
|
841
841
|
|
|
842
842
|
if (browserOpened) {
|
|
843
843
|
console.log(makeLine(chalk.green('BROWSER OPENED')));
|
|
844
|
+
console.log(makeLine(''));
|
|
845
|
+
console.log(makeLine(chalk.white('AFTER LOGGING IN, YOU WILL SEE A CODE')));
|
|
846
|
+
console.log(makeLine(chalk.white('COPY THE ENTIRE CODE AND PASTE IT BELOW')));
|
|
847
|
+
console.log(makeLine(''));
|
|
848
|
+
if (config.codeFormat) {
|
|
849
|
+
console.log(makeLine(chalk.white(`THE CODE LOOKS LIKE: ${config.codeFormat}`)));
|
|
850
|
+
console.log(makeLine(''));
|
|
851
|
+
}
|
|
852
|
+
console.log(makeLine(chalk.white('TYPE < TO CANCEL')));
|
|
853
|
+
drawBoxFooter(boxWidth);
|
|
854
|
+
console.log();
|
|
844
855
|
} else {
|
|
845
856
|
console.log(makeLine(chalk.yellow('COULD NOT OPEN BROWSER (VPS/SSH?)')));
|
|
846
857
|
console.log(makeLine(''));
|
|
847
|
-
console.log(makeLine(chalk.white('
|
|
858
|
+
console.log(makeLine(chalk.white('AFTER LOGGING IN, YOU WILL SEE A CODE')));
|
|
859
|
+
console.log(makeLine(chalk.white('COPY THE ENTIRE CODE AND PASTE IT BELOW')));
|
|
848
860
|
console.log(makeLine(''));
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
console.log(makeLine(
|
|
861
|
+
if (config.codeFormat) {
|
|
862
|
+
console.log(makeLine(chalk.white(`THE CODE LOOKS LIKE: ${config.codeFormat}`)));
|
|
863
|
+
console.log(makeLine(''));
|
|
852
864
|
}
|
|
865
|
+
console.log(makeLine(chalk.white('TYPE < TO CANCEL')));
|
|
866
|
+
drawBoxFooter(boxWidth);
|
|
867
|
+
// Display URL outside the box for easy copy-paste (no line breaks)
|
|
868
|
+
console.log();
|
|
869
|
+
console.log(chalk.yellow(' OPEN THIS URL IN YOUR BROWSER:'));
|
|
870
|
+
console.log();
|
|
871
|
+
console.log(chalk.cyan(` ${url}`));
|
|
872
|
+
console.log();
|
|
853
873
|
}
|
|
854
|
-
console.log(makeLine(''));
|
|
855
|
-
console.log(makeLine(chalk.white('AFTER LOGGING IN, YOU WILL SEE A CODE')));
|
|
856
|
-
console.log(makeLine(chalk.white('COPY THE ENTIRE CODE AND PASTE IT BELOW')));
|
|
857
|
-
console.log(makeLine(''));
|
|
858
|
-
if (config.codeFormat) {
|
|
859
|
-
console.log(makeLine(chalk.white(`THE CODE LOOKS LIKE: ${config.codeFormat}`)));
|
|
860
|
-
console.log(makeLine(''));
|
|
861
|
-
}
|
|
862
|
-
console.log(makeLine(chalk.white('TYPE < TO CANCEL')));
|
|
863
|
-
|
|
864
|
-
drawBoxFooter(boxWidth);
|
|
865
|
-
console.log();
|
|
866
874
|
|
|
867
875
|
const code = await prompts.textInput(chalk.cyan('PASTE AUTHORIZATION CODE:'));
|
|
868
876
|
|
|
@@ -35,7 +35,7 @@ const PROVIDERS = {
|
|
|
35
35
|
anthropic: {
|
|
36
36
|
id: 'anthropic',
|
|
37
37
|
name: 'CLAUDE (ANTHROPIC)',
|
|
38
|
-
description: '
|
|
38
|
+
description: 'Pro/Max or API Key',
|
|
39
39
|
category: 'direct',
|
|
40
40
|
models: [], // Fetched from API at runtime
|
|
41
41
|
defaultModel: null, // Will use first model from API
|