vibecodingmachine-cli 1.0.4 ā 1.0.6
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 +2 -6
- package/src/utils/auth.js +13 -19
- package/src/utils/keyboard-handler.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibecodingmachine-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Command-line interface for Vibe Coding Machine - Autonomous development",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"author": "Vibe Coding Machine Team",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"vibecodingmachine-core": "^1.0.
|
|
29
|
-
"blessed": "^0.1.81",
|
|
28
|
+
"vibecodingmachine-core": "^1.0.1",
|
|
30
29
|
"boxen": "^5.1.2",
|
|
31
30
|
"chalk": "^4.1.2",
|
|
32
31
|
"chokidar": "^3.6.0",
|
|
@@ -43,9 +42,6 @@
|
|
|
43
42
|
"react": "^19.2.0",
|
|
44
43
|
"table": "^6.8.1"
|
|
45
44
|
},
|
|
46
|
-
"optionalDependencies": {
|
|
47
|
-
"node-pty": "^1.0.0"
|
|
48
|
-
},
|
|
49
45
|
"devDependencies": {
|
|
50
46
|
"eslint": "^8.57.0",
|
|
51
47
|
"jest": "^29.7.0",
|
package/src/utils/auth.js
CHANGED
|
@@ -240,10 +240,8 @@ class CLIAuth {
|
|
|
240
240
|
// VS Code Remote SSH - use optimized flow with instructions
|
|
241
241
|
if (isVSCodeRemote && !options.headless) {
|
|
242
242
|
console.log(chalk.cyan('\nš VS Code Remote SSH Detected!\n'));
|
|
243
|
-
console.log(chalk.gray('VS Code will automatically forward port 3000 to your laptop
|
|
244
|
-
console.log(chalk.
|
|
245
|
-
console.log(chalk.gray(' 1. VS Code will show "Port 3000 is now available"'));
|
|
246
|
-
console.log(chalk.gray(' 2. Click "Open in Browser" in the notification\n'));
|
|
243
|
+
console.log(chalk.gray('VS Code will automatically forward port 3000 to your laptop.'));
|
|
244
|
+
console.log(chalk.gray('The authentication URL will be shown below - click it to login.\n'));
|
|
247
245
|
}
|
|
248
246
|
|
|
249
247
|
// Standard browser-based login
|
|
@@ -417,29 +415,25 @@ class CLIAuth {
|
|
|
417
415
|
`identity_provider=Google&` +
|
|
418
416
|
`prompt=select_account`;
|
|
419
417
|
|
|
420
|
-
// Open browser -
|
|
418
|
+
// Open browser - VS Code Remote SSH users should click the URL
|
|
421
419
|
if (this._isVSCodeRemoteSSH()) {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
console.log(chalk.yellow('\nā ļø Could not open browser automatically.'));
|
|
428
|
-
console.log(chalk.gray('Please manually open this URL:\n'));
|
|
429
|
-
console.log(chalk.blue(` ${authUrl}\n`));
|
|
430
|
-
}
|
|
431
|
-
});
|
|
420
|
+
// For VS Code Remote SSH, just show the URL prominently
|
|
421
|
+
// Port forwarding will automatically work when they click it
|
|
422
|
+
console.log(chalk.green('š Click this URL to login:\n'));
|
|
423
|
+
console.log(chalk.blue.underline(` ${authUrl}\n`));
|
|
424
|
+
console.log(chalk.gray('(Ctrl+Click or Cmd+Click to open in your browser)\n'));
|
|
432
425
|
} else {
|
|
433
426
|
// Standard open for local or GUI environments
|
|
434
427
|
const open = (await import('open')).default;
|
|
435
428
|
try {
|
|
436
429
|
await open(authUrl);
|
|
437
|
-
console.log(chalk.gray('\
|
|
438
|
-
console.log(chalk.
|
|
430
|
+
console.log(chalk.gray('\nOpening browser for authentication...'));
|
|
431
|
+
console.log(chalk.gray('If it doesn\'t open, click this URL:\n'));
|
|
432
|
+
console.log(chalk.blue.underline(` ${authUrl}\n`));
|
|
439
433
|
} catch (error) {
|
|
440
434
|
console.log(chalk.yellow('\nā ļø Could not open browser automatically.'));
|
|
441
|
-
console.log(chalk.gray('Please
|
|
442
|
-
console.log(chalk.blue(` ${authUrl}\n`));
|
|
435
|
+
console.log(chalk.gray('Please click this URL to login:\n'));
|
|
436
|
+
console.log(chalk.blue.underline(` ${authUrl}\n`));
|
|
443
437
|
}
|
|
444
438
|
}
|
|
445
439
|
});
|