@su-record/vibe 0.1.2 β 0.1.3
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 +1 -1
- package/scripts/install-mcp.js +17 -1
package/package.json
CHANGED
package/scripts/install-mcp.js
CHANGED
|
@@ -25,7 +25,7 @@ try {
|
|
|
25
25
|
console.log('π μ€ν:', command);
|
|
26
26
|
console.log('');
|
|
27
27
|
|
|
28
|
-
execSync(command, { stdio: '
|
|
28
|
+
execSync(command, { stdio: 'pipe' });
|
|
29
29
|
|
|
30
30
|
console.log('\nβ
vibe MCP μλ² λ±λ‘ μλ£!');
|
|
31
31
|
console.log('');
|
|
@@ -38,11 +38,27 @@ try {
|
|
|
38
38
|
console.log('');
|
|
39
39
|
|
|
40
40
|
} catch (error) {
|
|
41
|
+
// stderr μΆλ ₯ νμΈ
|
|
42
|
+
const stderrOutput = error.stderr ? error.stderr.toString() : '';
|
|
43
|
+
const stdoutOutput = error.stdout ? error.stdout.toString() : '';
|
|
44
|
+
const fullOutput = error.message + stderrOutput + stdoutOutput;
|
|
45
|
+
|
|
46
|
+
// "already exists" μλ¬λ μ±κ³΅μΌλ‘ κ°μ£Ό
|
|
47
|
+
if (fullOutput.includes('already exists')) {
|
|
48
|
+
console.log('βΉοΈ vibe MCP μλ²κ° μ΄λ―Έ λ±λ‘λμ΄ μμ΅λλ€.');
|
|
49
|
+
console.log('');
|
|
50
|
+
console.log('λ€μ λͺ
λ Ήμ΄λ‘ νμΈ:');
|
|
51
|
+
console.log(' claude mcp list');
|
|
52
|
+
console.log('');
|
|
53
|
+
process.exit(0);
|
|
54
|
+
}
|
|
55
|
+
|
|
41
56
|
console.error('β MCP μλ² λ±λ‘ μ€ν¨');
|
|
42
57
|
console.error('');
|
|
43
58
|
console.error('μλ λ±λ‘ λ°©λ²:');
|
|
44
59
|
console.error(` claude mcp add vibe node "${mcpIndexPath}"`);
|
|
45
60
|
console.error('');
|
|
46
61
|
console.error('μλ¬:', error.message);
|
|
62
|
+
if (stderrOutput) console.error('stderr:', stderrOutput);
|
|
47
63
|
process.exit(1);
|
|
48
64
|
}
|