minode-mcp-setup 1.0.6 → 1.0.8

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.
Files changed (2) hide show
  1. package/bin/cli.js +14 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -50,7 +50,7 @@ function run(cmd, opts = {}) {
50
50
  }
51
51
 
52
52
  function hasCmd(cmd) {
53
- try { run(`${cmd} --version`, { silent: true }); return true; }
53
+ try { run(`${cmd} --version`, { silent: false }); return true; }
54
54
  catch { return false; }
55
55
  }
56
56
 
@@ -70,7 +70,19 @@ function download(url, dest) {
70
70
  }
71
71
 
72
72
  function extractZip(zipPath, outDir) {
73
- run(`powershell -Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${outDir}' -Force"`, { silent: true });
73
+ console.log(`압축 해제 시도: ${zipPath} -> ${outDir}`);
74
+
75
+ // -Force: 덮어쓰기
76
+ // -ErrorAction Stop: 에러 발생 시 즉시 중단
77
+ const cmd = `powershell -Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${outDir}' -Force"`;
78
+
79
+ try {
80
+ run(cmd, { silent: false });
81
+ console.log("압축 해제 명령 실행 완료");
82
+ } catch (e) {
83
+ console.error("압축 해제 실패:", e);
84
+ process.exit(1); // 에러 발생 시 프로세스를 종료하여 설치 중단
85
+ }
74
86
  }
75
87
 
76
88
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minode-mcp-setup",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Minode AI - MCP 서버 자동 설치 및 실행 도구",
5
5
  "bin": {
6
6
  "minode-mcp-setup": "./bin/cli.js"