@su-record/vibe 1.2.15 → 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.
- package/bin/vibe +12 -6
- package/package.json +1 -1
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
|
|
740
|
+
// .claude/settings.json 생성/업데이트 (Hooks 설정 - 저장소 공유용)
|
|
741
741
|
const settingsPath = path.join(claudeDir, 'settings.json');
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
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 제거 (저장소 공유 필요)
|