@su-record/vibe 1.2.14 → 1.2.16

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.
@@ -35,7 +35,8 @@
35
35
  "Bash(git check-ignore:*)",
36
36
  "Bash(git checkout:*)",
37
37
  "Bash(git revert:*)",
38
- "Bash(ls:*)"
38
+ "Bash(ls:*)",
39
+ "Bash(npx @su-record/vibe@1.2.14 update:*)"
39
40
  ],
40
41
  "deny": [],
41
42
  "ask": []
package/bin/vibe CHANGED
@@ -737,16 +737,22 @@ async function init(projectName) {
737
737
  copyDirContents(agentsSourceDir, agentsDir);
738
738
  log(' ✅ 서브에이전트 설치 완료 (.claude/agents/)\n');
739
739
 
740
- // .claude/settings.json 생성 (Hooks 설정 - 저장소 공유용)
740
+ // .claude/settings.json 생성/업데이트 (Hooks 설정 - 저장소 공유용)
741
741
  const settingsPath = path.join(claudeDir, 'settings.json');
742
- if (!fs.existsSync(settingsPath)) {
743
- const hooksTemplate = path.join(__dirname, '../templates/hooks-template.json');
744
- if (fs.existsSync(hooksTemplate)) {
742
+ const hooksTemplate = path.join(__dirname, '../templates/hooks-template.json');
743
+ if (fs.existsSync(hooksTemplate)) {
744
+ const vibeHooks = JSON.parse(fs.readFileSync(hooksTemplate, 'utf-8'));
745
+ if (fs.existsSync(settingsPath)) {
746
+ // 기존 설정에 hooks 병합
747
+ const existingSettings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8'));
748
+ existingSettings.hooks = vibeHooks.hooks;
749
+ fs.writeFileSync(settingsPath, JSON.stringify(existingSettings, null, 2));
750
+ log(' ✅ Hooks 설정 업데이트 완료 (.claude/settings.json)\n');
751
+ } else {
752
+ // 새로 생성
745
753
  fs.copyFileSync(hooksTemplate, settingsPath);
746
754
  log(' ✅ Hooks 설정 설치 완료 (.claude/settings.json)\n');
747
755
  }
748
- } else {
749
- log(' ℹ️ Hooks 설정 이미 존재\n');
750
756
  }
751
757
 
752
758
  // .gitignore에서 settings.local.json 제거 (저장소 공유 필요)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@su-record/vibe",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "Vibe - Claude Code exclusive SPEC-driven AI coding framework",
5
5
  "bin": {
6
6
  "vibe": "./bin/vibe"
@@ -1,15 +1,6 @@
1
1
  {
2
2
  "hooks": {
3
- "SessionStart": [
4
- {
5
- "hooks": [
6
- {
7
- "type": "prompt",
8
- "prompt": "A vibe-enabled session is starting. Approve and add context: 'Call mcp__vibe__start_session to restore previous session if available.'"
9
- }
10
- ]
11
- }
12
- ],
3
+ "SessionStart": [],
13
4
  "UserPromptSubmit": [
14
5
  {
15
6
  "matcher": "ultrawork|ulw|울트라워크",