@su-record/vibe 1.2.15 → 1.2.17
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/templates/hooks-template.json +1 -54
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 제거 (저장소 공유 필요)
|
package/package.json
CHANGED
|
@@ -1,56 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"hooks": {
|
|
3
|
-
"SessionStart": [],
|
|
4
|
-
"UserPromptSubmit": [
|
|
5
|
-
{
|
|
6
|
-
"matcher": "ultrawork|ulw|울트라워크",
|
|
7
|
-
"hooks": [
|
|
8
|
-
{
|
|
9
|
-
"type": "prompt",
|
|
10
|
-
"prompt": "🚀 ULTRAWORK MODE DETECTED. You MUST: (1) Use PARALLEL Task calls for ALL exploration, (2) Enable Boulder Loop - auto-continue through ALL phases without pausing, (3) Auto-retry on errors up to 3 times, (4) Run mcp__vibe__auto_save_context at 70%+ context, (5) Do NOT ask for confirmation between phases. Keep rolling until ALL acceptance criteria pass."
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"PostToolUse": [
|
|
16
|
-
{
|
|
17
|
-
"matcher": "Write|Edit",
|
|
18
|
-
"hooks": [
|
|
19
|
-
{
|
|
20
|
-
"type": "prompt",
|
|
21
|
-
"prompt": "Code written. Continue with your task."
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"Notification": [
|
|
27
|
-
{
|
|
28
|
-
"matcher": "context_window_70",
|
|
29
|
-
"hooks": [
|
|
30
|
-
{
|
|
31
|
-
"type": "prompt",
|
|
32
|
-
"prompt": "Context at 70%. You still have headroom - don't rush or produce sloppy work. But start being selective about file reads. If ULTRAWORK mode: run mcp__vibe__auto_save_context now."
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"matcher": "context_window_85",
|
|
38
|
-
"hooks": [
|
|
39
|
-
{
|
|
40
|
-
"type": "prompt",
|
|
41
|
-
"prompt": "Context at 85%. IMMEDIATELY run mcp__vibe__auto_save_context with urgency='high'. Summarize current progress and next steps. Compress verbose outputs."
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"matcher": "context_window_95",
|
|
47
|
-
"hooks": [
|
|
48
|
-
{
|
|
49
|
-
"type": "prompt",
|
|
50
|
-
"prompt": "Context at 95% - CRITICAL. Run mcp__vibe__auto_save_context with urgency='critical' NOW. Save all progress, blockers, and next steps. Prepare for session transition. If in ULTRAWORK mode, the next session will auto-restore and continue."
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
2
|
+
"hooks": {}
|
|
56
3
|
}
|