vibecodingmachine-cli 2025.12.1-534 → 2025.12.22-2230

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.
@@ -10,6 +10,30 @@ const chalk = require('chalk');
10
10
  const path = require('path');
11
11
  const fs = require('fs');
12
12
 
13
+ /**
14
+ * Detect if user is using asdf for Node.js version management
15
+ */
16
+ function detectAsdf() {
17
+ try {
18
+ const nodePath = execSync('which node 2>/dev/null || true', { encoding: 'utf8' }).trim();
19
+ return nodePath.includes('/.asdf/');
20
+ } catch (error) {
21
+ return false;
22
+ }
23
+ }
24
+
25
+ /**
26
+ * Attempt to reshim asdf to make vcm command immediately available
27
+ */
28
+ function reshimAsdf() {
29
+ try {
30
+ execSync('asdf reshim nodejs 2>/dev/null', { encoding: 'utf8' });
31
+ return true;
32
+ } catch (error) {
33
+ return false;
34
+ }
35
+ }
36
+
13
37
  function checkForExistingAna() {
14
38
  try {
15
39
  // Check if 'vcm' command exists in PATH before installation
@@ -22,6 +46,20 @@ function checkForExistingAna() {
22
46
  console.log(chalk.green('\n✓ Vibe Coding Machine CLI installed successfully!'));
23
47
  console.log(chalk.gray(' You can use either:'));
24
48
  console.log(chalk.cyan(' vibecodingmachine') + chalk.gray(' or ') + chalk.cyan('vcm'));
49
+
50
+ // Check if user is using asdf and attempt to reshim
51
+ const isAsdf = detectAsdf();
52
+ if (isAsdf) {
53
+ const reshimSuccess = reshimAsdf();
54
+ if (reshimSuccess) {
55
+ console.log(chalk.gray(' ✓ asdf reshimmed successfully'));
56
+ } else {
57
+ console.log(chalk.yellow('\n ⚠️ Note: You appear to be using asdf.'));
58
+ console.log(chalk.yellow(' If "vcm" command is not found, run:'));
59
+ console.log(chalk.cyan(' asdf reshim nodejs'));
60
+ }
61
+ }
62
+
25
63
  console.log();
26
64
  return;
27
65
  }
@@ -39,6 +77,20 @@ function checkForExistingAna() {
39
77
  console.log(chalk.green('\n✓ Vibe Coding Machine CLI installed successfully!'));
40
78
  console.log(chalk.gray(' You can use either:'));
41
79
  console.log(chalk.cyan(' vibecodingmachine') + chalk.gray(' or ') + chalk.cyan('vcm'));
80
+
81
+ // Check if user is using asdf and attempt to reshim
82
+ const isAsdf = detectAsdf();
83
+ if (isAsdf) {
84
+ const reshimSuccess = reshimAsdf();
85
+ if (reshimSuccess) {
86
+ console.log(chalk.gray(' ✓ asdf reshimmed successfully'));
87
+ } else {
88
+ console.log(chalk.yellow('\n ⚠️ Note: You appear to be using asdf.'));
89
+ console.log(chalk.yellow(' If "vcm" command is not found, run:'));
90
+ console.log(chalk.cyan(' asdf reshim nodejs'));
91
+ }
92
+ }
93
+
42
94
  console.log();
43
95
  return;
44
96
  }
@@ -64,6 +116,20 @@ function checkForExistingAna() {
64
116
  console.log(chalk.green('\n✓ Vibe Coding Machine CLI installed successfully!'));
65
117
  console.log(chalk.gray(' You can use either:'));
66
118
  console.log(chalk.cyan(' vibecodingmachine') + chalk.gray(' or ') + chalk.cyan('vcm'));
119
+
120
+ // Check if user is using asdf and attempt to reshim
121
+ const isAsdf = detectAsdf();
122
+ if (isAsdf) {
123
+ const reshimSuccess = reshimAsdf();
124
+ if (reshimSuccess) {
125
+ console.log(chalk.gray(' ✓ asdf reshimmed successfully'));
126
+ } else {
127
+ console.log(chalk.yellow('\n ⚠️ Note: You appear to be using asdf.'));
128
+ console.log(chalk.yellow(' If "vcm" command is not found, run:'));
129
+ console.log(chalk.cyan(' asdf reshim nodejs'));
130
+ }
131
+ }
132
+
67
133
  console.log();
68
134
  }
69
135
  } catch (error) {
@@ -71,6 +137,20 @@ function checkForExistingAna() {
71
137
  console.log(chalk.green('\n✓ Vibe Coding Machine CLI installed successfully!'));
72
138
  console.log(chalk.gray(' You can use either:'));
73
139
  console.log(chalk.cyan(' vibecodingmachine') + chalk.gray(' or ') + chalk.cyan('vcm'));
140
+
141
+ // Check if user is using asdf and attempt to reshim
142
+ const isAsdf = detectAsdf();
143
+ if (isAsdf) {
144
+ const reshimSuccess = reshimAsdf();
145
+ if (reshimSuccess) {
146
+ console.log(chalk.gray(' ✓ asdf reshimmed successfully'));
147
+ } else {
148
+ console.log(chalk.yellow('\n ⚠️ Note: You appear to be using asdf.'));
149
+ console.log(chalk.yellow(' If "vcm" command is not found, run:'));
150
+ console.log(chalk.cyan(' asdf reshim nodejs'));
151
+ }
152
+ }
153
+
74
154
  console.log();
75
155
  }
76
156
  }
@@ -58,7 +58,6 @@ async function status() {
58
58
  }
59
59
 
60
60
  const profile = await auth.getUserProfile();
61
- const token = await auth.getToken();
62
61
 
63
62
  // Get usage stats
64
63
  const canRun = await auth.canRunAutoMode();