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 +1 -1
- package/public/app.js +8 -7
- package/public/style.css +1 -0
package/package.json
CHANGED
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
|
-
|
|
134
|
+
// 현재 모드에 따라 미리 로드
|
|
135
|
+
if (analyzeMode === "commit") {
|
|
136
|
+
await fetchCommitPreview();
|
|
137
|
+
} else {
|
|
138
|
+
await fetchStatusPreview();
|
|
139
|
+
}
|
|
139
140
|
}
|
|
140
141
|
|
|
141
142
|
// ── Projects ──
|