@su-record/vibe 0.4.1 → 0.4.2
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/.claude/settings.local.json +2 -1
- package/bin/vibe +14 -1
- package/package.json +2 -2
- package/templates/hooks-template.json +7 -18
package/bin/vibe
CHANGED
|
@@ -149,6 +149,18 @@ async function init(projectName) {
|
|
|
149
149
|
copyDirContents(agentsSourceDir, agentsDir);
|
|
150
150
|
console.log(' ✅ 서브에이전트 설치 완료 (.claude/agents/)\n');
|
|
151
151
|
|
|
152
|
+
// .claude/settings.local.json 생성 (Hooks 설정)
|
|
153
|
+
const settingsPath = path.join(claudeDir, 'settings.local.json');
|
|
154
|
+
if (!fs.existsSync(settingsPath)) {
|
|
155
|
+
const hooksTemplate = path.join(__dirname, '../templates/hooks-template.json');
|
|
156
|
+
if (fs.existsSync(hooksTemplate)) {
|
|
157
|
+
fs.copyFileSync(hooksTemplate, settingsPath);
|
|
158
|
+
console.log(' ✅ Hooks 설정 설치 완료 (.claude/settings.local.json)\n');
|
|
159
|
+
}
|
|
160
|
+
} else {
|
|
161
|
+
console.log(' ℹ️ Hooks 설정 이미 존재\n');
|
|
162
|
+
}
|
|
163
|
+
|
|
152
164
|
// 완료 메시지
|
|
153
165
|
console.log(`
|
|
154
166
|
✅ vibe 초기화 완료!
|
|
@@ -160,7 +172,8 @@ ${isNewProject ? `프로젝트 위치:
|
|
|
160
172
|
CLAUDE.md # 프로젝트 컨텍스트
|
|
161
173
|
.claude/
|
|
162
174
|
├── commands/ # 슬래시 커맨드 (7개)
|
|
163
|
-
|
|
175
|
+
├── agents/ # 서브에이전트 (simplifier)
|
|
176
|
+
└── settings.local.json # Hooks 설정 (자동 품질 검증)
|
|
164
177
|
.agent/rules/ # 코딩 규칙
|
|
165
178
|
├── core/ # 핵심 원칙
|
|
166
179
|
├── quality/ # 품질 체크리스트
|
package/package.json
CHANGED
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://claude.ai/schemas/hooks.json",
|
|
3
|
-
"description": "VIBE 프레임워크 자동 품질 검증 훅",
|
|
4
2
|
"hooks": {
|
|
5
3
|
"PostToolUse": [
|
|
6
4
|
{
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
"description": "커밋 전 전체 품질 체크",
|
|
16
|
-
"command": "npm run lint && npm run type-check",
|
|
17
|
-
"enabled": true
|
|
5
|
+
"matcher": "Write|Edit",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "prompt",
|
|
9
|
+
"prompt": ".agent/rules/quality/checklist.md 기준으로 방금 수정한 코드를 검토해주세요. 문제가 있으면 간단히 알려주세요."
|
|
10
|
+
}
|
|
11
|
+
]
|
|
18
12
|
}
|
|
19
13
|
]
|
|
20
|
-
},
|
|
21
|
-
"settings": {
|
|
22
|
-
"autoFix": true,
|
|
23
|
-
"minGrade": "B",
|
|
24
|
-
"reportPath": ".vibe/reports/"
|
|
25
14
|
}
|
|
26
15
|
}
|