commit-ai-agent 1.0.7 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commit-ai-agent",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "AI-powered git commit & working status analyzer with web UI",
5
5
  "type": "module",
6
6
  "main": "src/server.js",
package/public/app.js CHANGED
@@ -116,26 +116,27 @@ async function checkConfig() {
116
116
 
117
117
  // ── Single Project Mode ──
118
118
  async function enterSingleProjectMode() {
119
- // 프로젝트 선택 UI 숨김
119
+ // 프로젝트 선택 UI 숨김 (모드 토글은 유지)
120
120
  const header = document.querySelector(".selector-card .card-header");
121
- const modeToggle = document.querySelector(".mode-toggle");
122
121
  const projectGrid = document.getElementById("project-grid");
123
122
  const selectedHint = document.getElementById("selected-hint");
124
123
  if (header) header.style.display = "none";
125
- if (modeToggle) modeToggle.style.display = "none";
126
124
  if (projectGrid) projectGrid.style.display = "none";
127
125
  if (selectedHint) selectedHint.style.display = "none";
128
126
 
129
127
  // 현재 디렉토리를 프로젝트로 자동 선택
130
128
  selectedProject = "__self__";
131
- analyzeMode = "status";
132
129
 
133
130
  document.getElementById("analyze-btn").disabled = false;
134
131
  const btnText = document.getElementById("analyze-btn-text");
135
- if (btnText) btnText.textContent = "Hanni에게 리뷰 요청";
132
+ if (btnText) btnText.textContent = "Hanni에게 분석 요청";
136
133
 
137
- // 변경사항 미리 로드
138
- await fetchStatusPreview();
134
+ // 현재 모드에 따라 미리 로드
135
+ if (analyzeMode === "commit") {
136
+ await fetchCommitPreview();
137
+ } else {
138
+ await fetchStatusPreview();
139
+ }
139
140
  }
140
141
 
141
142
  // ── Projects ──
package/public/style.css CHANGED
@@ -191,6 +191,7 @@ body {
191
191
  justify-content: space-between;
192
192
  margin-top: 20px;
193
193
  padding-top: 16px;
194
+ border-top: 1px solid var(--border);
194
195
  }
195
196
 
196
197
  /* ── Mode Toggle ── */