minode-mcp-setup 1.0.5 → 1.0.7

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 +13 -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,18 @@ 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
+ // 로그 출력
74
+ console.log(`압축 해제 시도: ${zipPath} -> ${outDir}`);
75
+
76
+ // -Force: 덮어쓰기, -ErrorAction SilentlyContinue 제거하여 에러 확인
77
+ const cmd = `powershell -Command "Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory('${zipPath}', '${outDir}', $true)"`;
78
+
79
+ try {
80
+ run(cmd, { silent: false });
81
+ console.log("압축 해제 명령 실행 완료");
82
+ } catch (e) {
83
+ console.error("압축 해제 실패:", e);
84
+ }
74
85
  }
75
86
 
76
87
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minode-mcp-setup",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Minode AI - MCP 서버 자동 설치 및 실행 도구",
5
5
  "bin": {
6
6
  "minode-mcp-setup": "./bin/cli.js"