vibekit-auth 1.0.3 → 1.0.5

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/dist/index.js CHANGED
@@ -31,10 +31,11 @@ async function main() {
31
31
  if (!credentials) {
32
32
  extractSpinner.fail(chalk_1.default.red('Claude credentials not found'));
33
33
  console.log();
34
- console.log(chalk_1.default.yellow(' Make sure you have Claude Code installed and logged in:'));
35
- console.log(chalk_1.default.gray(' 1. Install: npm install -g @anthropic-ai/claude-code'));
36
- console.log(chalk_1.default.gray(' 2. Run: claude'));
37
- console.log(chalk_1.default.gray(' 3. Complete the login flow in your browser'));
34
+ console.log(chalk_1.default.yellow(' Log into Claude Code first:'));
35
+ console.log(chalk_1.default.gray(' 1. Run: claude'));
36
+ console.log(chalk_1.default.gray(' 2. Type: /login'));
37
+ console.log(chalk_1.default.gray(' 3. Complete browser authentication'));
38
+ console.log(chalk_1.default.gray(' 4. Then run: npx vibekit-auth'));
38
39
  console.log();
39
40
  process.exit(1);
40
41
  }
@@ -43,8 +44,11 @@ async function main() {
43
44
  if (expiry.expired) {
44
45
  extractSpinner.fail(chalk_1.default.red('Claude credentials have expired'));
45
46
  console.log();
46
- console.log(chalk_1.default.yellow(' Please re-authenticate with Claude Code:'));
47
- console.log(chalk_1.default.gray(' Run: claude --logout && claude'));
47
+ console.log(chalk_1.default.yellow(' Re-authenticate with Claude:'));
48
+ console.log(chalk_1.default.gray(' 1. Run: claude'));
49
+ console.log(chalk_1.default.gray(' 2. Type: /login'));
50
+ console.log(chalk_1.default.gray(' 3. Complete browser authentication'));
51
+ console.log(chalk_1.default.gray(' 4. Then run: npx vibekit-auth'));
48
52
  console.log();
49
53
  process.exit(1);
50
54
  }
@@ -53,6 +57,10 @@ async function main() {
53
57
  // Show expiry info
54
58
  if (expiry.expiringSoon) {
55
59
  console.log(chalk_1.default.yellow(` ⚠ Expires in ${expiry.daysUntilExpiry} days (${expiry.expiresAt.toLocaleDateString()})`));
60
+ console.log(chalk_1.default.gray(' Re-run /login in Claude Code when expired'));
61
+ }
62
+ else if (expiry.daysUntilExpiry < 30) {
63
+ console.log(chalk_1.default.gray(` Expires: ${expiry.expiresAt.toLocaleDateString()} (${expiry.daysUntilExpiry} days)`));
56
64
  }
57
65
  else {
58
66
  console.log(chalk_1.default.gray(` Expires: ${expiry.expiresAt.toLocaleDateString()} (${expiry.daysUntilExpiry} days)`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibekit-auth",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Upload your Claude credentials to VibeKit for Auto Mode",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -35,10 +35,11 @@ async function main() {
35
35
  if (!credentials) {
36
36
  extractSpinner.fail(chalk.red('Claude credentials not found'));
37
37
  console.log();
38
- console.log(chalk.yellow(' Make sure you have Claude Code installed and logged in:'));
39
- console.log(chalk.gray(' 1. Install: npm install -g @anthropic-ai/claude-code'));
40
- console.log(chalk.gray(' 2. Run: claude'));
41
- console.log(chalk.gray(' 3. Complete the login flow in your browser'));
38
+ console.log(chalk.yellow(' Log into Claude Code first:'));
39
+ console.log(chalk.gray(' 1. Run: claude'));
40
+ console.log(chalk.gray(' 2. Type: /login'));
41
+ console.log(chalk.gray(' 3. Complete browser authentication'));
42
+ console.log(chalk.gray(' 4. Then run: npx vibekit-auth'));
42
43
  console.log();
43
44
  process.exit(1);
44
45
  }
@@ -49,8 +50,11 @@ async function main() {
49
50
  if (expiry.expired) {
50
51
  extractSpinner.fail(chalk.red('Claude credentials have expired'));
51
52
  console.log();
52
- console.log(chalk.yellow(' Please re-authenticate with Claude Code:'));
53
- console.log(chalk.gray(' Run: claude --logout && claude'));
53
+ console.log(chalk.yellow(' Re-authenticate with Claude:'));
54
+ console.log(chalk.gray(' 1. Run: claude'));
55
+ console.log(chalk.gray(' 2. Type: /login'));
56
+ console.log(chalk.gray(' 3. Complete browser authentication'));
57
+ console.log(chalk.gray(' 4. Then run: npx vibekit-auth'));
54
58
  console.log();
55
59
  process.exit(1);
56
60
  }
@@ -61,6 +65,9 @@ async function main() {
61
65
  // Show expiry info
62
66
  if (expiry.expiringSoon) {
63
67
  console.log(chalk.yellow(` ⚠ Expires in ${expiry.daysUntilExpiry} days (${expiry.expiresAt.toLocaleDateString()})`));
68
+ console.log(chalk.gray(' Re-run /login in Claude Code when expired'));
69
+ } else if (expiry.daysUntilExpiry < 30) {
70
+ console.log(chalk.gray(` Expires: ${expiry.expiresAt.toLocaleDateString()} (${expiry.daysUntilExpiry} days)`));
64
71
  } else {
65
72
  console.log(chalk.gray(` Expires: ${expiry.expiresAt.toLocaleDateString()} (${expiry.daysUntilExpiry} days)`));
66
73
  }