commit-ai-agent 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.
package/.env.example CHANGED
@@ -1,3 +1,4 @@
1
1
  GEMINI_API_KEY=your_gemini_api_key_here
2
2
  PORT=3000
3
- DEV_ROOT=C:/dev // 절대경로 입력
3
+ # Optional: 미설정 시 실행 디렉토리(process.cwd())를 자동 사용
4
+ # DEV_ROOT=C:/dev
package/README.md CHANGED
@@ -14,7 +14,7 @@ AI가 git 커밋과 현재 변경사항을 한국어로 자동 분석해주는
14
14
 
15
15
  ### 방법 A — npx (설치 없이 바로 실행)
16
16
 
17
- - 프로젝트가 모여있는 디렉토리에서 아래 명령어 실행
17
+ - 프로젝트가 모여있는 디렉토리 or 프로젝트 루트에서 명령어 실행
18
18
  - 해당 디렉토리에서 .env 파일 생성(.env.example 참고)
19
19
 
20
20
  ```bash
@@ -24,7 +24,7 @@ npx commit-ai-agent
24
24
  ### 방법 B — 전역 설치 후 명령어로 실행
25
25
 
26
26
  - 전역으로 설치하면 어느 위치에서든 `commit-ai-agent` 명령어로 실행 가능
27
- - 프로젝트가 모여있는 디렉토리에서 명령어 실행
27
+ - 프로젝트가 모여있는 디렉토리 or 프로젝트 루트에서 명령어 실행
28
28
  - 해당 디렉토리에서 .env 파일 생성(.env.example 참고)
29
29
 
30
30
  ```bash
@@ -34,6 +34,8 @@ commit-ai-agent
34
34
 
35
35
  ### 방법 C — 직접 클론
36
36
 
37
+ 프로젝트가 모여있는 디렉토리에 클론한 후, 해당 디렉토리에서 명령어 실행
38
+
37
39
  ```bash
38
40
  git clone https://github.com/cjy3458/commit-ai-agent.git
39
41
  cd commit-ai-agent
@@ -50,16 +52,16 @@ npm start 대신 Windows 사용자는 `start.bat`파일을 더블클릭하여
50
52
  처음 실행 전, 실행할 디렉토리에 `.env` 파일을 만드세요.
51
53
 
52
54
  ```env
53
- GEMINI_API_KEY=여기에_API_키_입력
54
- DEV_ROOT=C:/Users/projects => 절대경로 입력
55
- PORT=3000
55
+ GEMINI_API_KEY=여기에_API_키_입력 => 필수값
56
+ PORT=원하는 PORT 입력 (예: 3000, 50324 등) => 선택 사항(미설정 시 기본값 50324)
57
+ DEV_ROOT=C:/Users/projects => 선택 사항(미설정 시 현재 실행 디렉토리를 자동 사용)
56
58
  ```
57
59
 
58
- | 변수 | 설명 |
59
- | ---------------- | ---------------------------------------------------------------------- |
60
- | `GEMINI_API_KEY` | [Google AI Studio](https://aistudio.google.com/apikey)에서 발급 (무료) |
61
- | `DEV_ROOT` | 분석할 git 프로젝트들이 모여 있는 루트 폴더 |
62
- | `PORT` | 서버 포트 (기본값 3000) |
60
+ | 변수 | 설명 |
61
+ | ---------------- | ----------------------------------------------------------------------- |
62
+ | `GEMINI_API_KEY` | [Google AI Studio](https://aistudio.google.com/apikey)에서 발급 (무료) |
63
+ | `DEV_ROOT` | (선택) 분석할 git 프로젝트 루트 폴더. 미설정 시 실행 디렉토리 자동 사용 |
64
+ | `PORT` | (선택) 서버 포트 (기본값 50324) |
63
65
 
64
66
  > Windows 경로는 `\` 대신 `/` 또는 `\\` 사용: `C:/dev`, `D:/projects`
65
67
 
@@ -87,7 +89,10 @@ PORT=3000
87
89
  → Gemini 무료 티어 한도 도달. 잠시 후 재시도하거나 [유료 플랜](https://ai.google.dev)으로 업그레이드하세요.
88
90
 
89
91
  **프로젝트 목록이 안 뜸**
90
- → `DEV_ROOT`가 git 저장소가 들어 있는 상위 폴더인지 확인하세요.
92
+ 기본값은 실행 디렉토리입니다. 필요 시 `DEV_ROOT`를 git 저장소가 모인 상위 폴더로 지정하세요.
93
+
94
+ **`[DEP0190] DeprecationWarning` 경고 (Node.js 22+)**
95
+ → `shell: true` 옵션과 args 배열을 함께 전달할 때 Node.js 22 이상에서 발생하는 보안 경고입니다. v1.0.7 이상으로 업데이트하면 해결됩니다.
91
96
 
92
97
  ---
93
98
 
@@ -123,7 +128,7 @@ npm install
123
128
 
124
129
  # 3. 환경 설정
125
130
  cp .env.example .env
126
- # .env에 GEMINI_API_KEY, DEV_ROOT 입력
131
+ # .env에 GEMINI_API_KEY 입력 (DEV_ROOT 필요할 때만 설정)
127
132
 
128
133
  # 4. 개발 서버 실행 (파일 변경 시 자동 재시작)
129
134
  npm run dev
package/bin/cli.js CHANGED
@@ -27,13 +27,12 @@ console.log("");
27
27
  setTimeout(async () => {
28
28
  const url = `http://localhost:${PORT}`;
29
29
  const platform = process.platform;
30
- const cmd =
31
- platform === "win32"
32
- ? "start"
33
- : platform === "darwin"
34
- ? "open"
35
- : "xdg-open";
36
- spawn(cmd, [url], { shell: true, stdio: "ignore", detached: true });
30
+ if (platform === "win32") {
31
+ spawn("cmd", ["/c", "start", url], { stdio: "ignore", detached: true });
32
+ } else {
33
+ const cmd = platform === "darwin" ? "open" : "xdg-open";
34
+ spawn(cmd, [url], { stdio: "ignore", detached: true });
35
+ }
37
36
  }, 1200);
38
37
 
39
38
  // 서버 시작
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commit-ai-agent",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "AI-powered git commit & working status analyzer with web UI",
5
5
  "type": "module",
6
6
  "main": "src/server.js",