vibekit-auth 1.0.4 → 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,10 +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(' 1. Run: security delete-generic-password -s "Claude Code-credentials"'));
48
- console.log(chalk_1.default.gray(' 2. Run: claude'));
49
- console.log(chalk_1.default.gray(' 3. Complete the login flow in your browser'));
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'));
50
52
  console.log();
51
53
  process.exit(1);
52
54
  }
@@ -55,6 +57,10 @@ async function main() {
55
57
  // Show expiry info
56
58
  if (expiry.expiringSoon) {
57
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)`));
58
64
  }
59
65
  else {
60
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.4",
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,12 +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(' Set up Claude Code with long-lived tokens (recommended):'));
39
- console.log(chalk.gray(' 1. Install: npm install -g @anthropic-ai/claude-code'));
40
- console.log(chalk.gray(' 2. Run: claude setup-token'));
41
- console.log(chalk.gray(' 3. Follow the prompts to authenticate'));
42
- console.log();
43
- console.log(chalk.gray(' This creates tokens valid for 1 year.'));
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'));
44
43
  console.log();
45
44
  process.exit(1);
46
45
  }
@@ -51,12 +50,11 @@ async function main() {
51
50
  if (expiry.expired) {
52
51
  extractSpinner.fail(chalk.red('Claude credentials have expired'));
53
52
  console.log();
54
- console.log(chalk.yellow(' For long-lived tokens (1 year), run:'));
55
- console.log(chalk.white(' claude setup-token'));
56
- console.log();
57
- console.log(chalk.gray(' Or for short-lived tokens, re-authenticate:'));
58
- console.log(chalk.gray(' 1. Run: security delete-generic-password -s "Claude Code-credentials"'));
59
- console.log(chalk.gray(' 2. Run: claude, then /login'));
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'));
60
58
  console.log();
61
59
  process.exit(1);
62
60
  }
@@ -67,10 +65,9 @@ async function main() {
67
65
  // Show expiry info
68
66
  if (expiry.expiringSoon) {
69
67
  console.log(chalk.yellow(` ⚠ Expires in ${expiry.daysUntilExpiry} days (${expiry.expiresAt.toLocaleDateString()})`));
70
- console.log(chalk.gray(' Tip: Run `claude setup-token` for 1-year tokens'));
68
+ console.log(chalk.gray(' Re-run /login in Claude Code when expired'));
71
69
  } else if (expiry.daysUntilExpiry < 30) {
72
70
  console.log(chalk.gray(` Expires: ${expiry.expiresAt.toLocaleDateString()} (${expiry.daysUntilExpiry} days)`));
73
- console.log(chalk.gray(' Tip: Run `claude setup-token` for 1-year tokens'));
74
71
  } else {
75
72
  console.log(chalk.gray(` Expires: ${expiry.expiresAt.toLocaleDateString()} (${expiry.daysUntilExpiry} days)`));
76
73
  }