@vibe-db/cli 1.2.0 → 1.2.2

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/bin/vibedb.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  const { Command } = require('commander');
4
4
  const chalk = require('chalk');
5
+ const { version } = require('../package.json');
5
6
  const signupCommand = require('../src/commands/signup');
6
7
  const loginCommand = require('../src/commands/login');
7
8
  const logoutCommand = require('../src/commands/logout');
@@ -17,7 +18,7 @@ const program = new Command();
17
18
  program
18
19
  .name('vibedb')
19
20
  .description('VibeDB CLI - Instant database provisioning for AI-assisted development')
20
- .version('1.1.0');
21
+ .version(version);
21
22
 
22
23
  program
23
24
  .command('signup')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-db/cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Command-line interface for VibeDB - instant database provisioning for AI-assisted development",
5
5
  "main": "bin/vibedb.js",
6
6
  "bin": {
@@ -18,15 +18,19 @@ async function signupWithGitHub() {
18
18
  const data = await api.startDeviceAuth();
19
19
  const { device_code, user_code, verification_uri, interval } = data;
20
20
 
21
+ // Build URL with pre-populated code for better UX
22
+ const urlWithCode = `${verification_uri}?code=${formatUserCode(user_code)}`;
23
+
21
24
  console.log(chalk.bold('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'));
22
- console.log(chalk.cyan.bold(` Open: ${verification_uri}`));
23
- console.log(chalk.yellow.bold(` Enter code: ${formatUserCode(user_code)}`));
25
+ console.log(chalk.cyan.bold(` Open: ${urlWithCode}`));
26
+ console.log(chalk.yellow.bold(` Your code: ${formatUserCode(user_code)}`));
24
27
  console.log(chalk.bold('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n'));
25
28
 
29
+ // Try to open browser automatically with pre-populated code
26
30
  try {
27
31
  const open = (await import('open')).default;
28
- await open(verification_uri);
29
- console.log(chalk.gray('Opened browser automatically...\n'));
32
+ await open(urlWithCode);
33
+ console.log(chalk.gray('Opened browser with code pre-filled...\n'));
30
34
  } catch (err) {
31
35
  console.log(chalk.gray('Please open the URL manually\n'));
32
36
  }