@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.
@@ -36,7 +36,8 @@
36
36
  "Bash(npm config set:*)",
37
37
  "Bash(node:*)",
38
38
  "Bash(xargs basename:*)",
39
- "Bash(git restore:*)"
39
+ "Bash(git restore:*)",
40
+ "Bash(npm version:*)"
40
41
  ],
41
42
  "deny": [],
42
43
  "ask": []
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
- └── agents/ # 서브에이전트 (simplifier)
175
+ ├── agents/ # 서브에이전트 (simplifier)
176
+ └── settings.local.json # Hooks 설정 (자동 품질 검증)
164
177
  .agent/rules/ # 코딩 규칙
165
178
  ├── core/ # 핵심 원칙
166
179
  ├── quality/ # 품질 체크리스트
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@su-record/vibe",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Vibe - Claude Code exclusive SPEC-driven AI coding framework",
5
5
  "bin": {
6
6
  "vibe": "./bin/vibe"
@@ -43,4 +43,4 @@
43
43
  "README.md",
44
44
  "LICENSE"
45
45
  ]
46
- }
46
+ }
@@ -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
- "tools": ["Write", "Edit"],
8
- "description": "코드 작성/수정 후 품질 검증",
9
- "command": "echo '📋 품질 검증 중...' && claude --agent simplifier --file $CHANGED_FILE",
10
- "enabled": true
11
- }
12
- ],
13
- "PreCommit": [
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
  }