start-vibing 2.0.33 → 2.0.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "start-vibing",
3
- "version": "2.0.33",
3
+ "version": "2.0.35",
4
4
  "description": "Setup Claude Code agents, skills, and hooks in your project. Smart copy that preserves your custom domains and configurations.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,9 +2,9 @@
2
2
 
3
3
  ## Last Update
4
4
 
5
- - **Date:** 2026-01-03
6
- - **Commit:** d429772
7
- - **Session:** Universal hook runner with multi-runtime fallback support
5
+ - **Date:** 2026-01-06
6
+ - **Commit:** 77e2263
7
+ - **Session:** Fixed stop hook exit code from 2 to 0 for proper JSON processing
8
8
 
9
9
  ## Files
10
10
 
@@ -86,14 +86,45 @@
86
86
 
87
87
  | Hash | Date | Description |
88
88
  | ------- | ---------- | --------------------------------------------------------------------- |
89
+ | 77e2263 | 2026-01-06 | fix: stop hook exit code from 2 to 0 for JSON processing |
89
90
  | d429772 | 2026-01-03 | feat(agents): restructure agent system with 82 specialized sub-agents |
90
91
  | 70ca50f | 2026-01-02 | feat(start-vibing): auto-install Claude Code and self-update |
91
92
  | 5c74c95 | 2026-01-02 | feat: add specialized agents and progressive disclosure to skills |
92
93
  | b5c483b | 2026-01-02 | docs: add agents/skills comparison research with industry benchmarks |
93
- | 0f2c1ff | 2026-01-02 | fix: block ALL changes on main branch, not just protected files |
94
94
 
95
95
  ## Problems & Solutions
96
96
 
97
+ ### 2026-01-06 - Stop Hook Exit Code Fix
98
+
99
+ **Problem:**
100
+ When stop hook blocked task completion, Claude was just stopping instead of continuing to fix the issues. The message "Stop hook prevented continuation" appeared but Claude didn't take action.
101
+
102
+ **Root Cause:**
103
+ Stop hook was using `process.exit(2)` which causes Claude Code to **ignore the JSON output**. The `decision: "block"` with `reason` was being sent correctly, but exit code 2 made Claude ignore it and only show stderr.
104
+
105
+ **Solution:**
106
+ Changed exit code from 2 to 0 in `stop-validator.ts`:
107
+
108
+ ```typescript
109
+ // Before: process.exit(2);
110
+ process.exit(0); // Must be 0 for JSON to be processed!
111
+ ```
112
+
113
+ **Key Insight:**
114
+ - Exit code 0: JSON stdout is processed (decision, reason fields work)
115
+ - Exit code 2: JSON stdout is IGNORED, only stderr shown
116
+
117
+ **Files Modified:**
118
+ - `.claude/hooks/stop-validator.ts` - Changed exit(2) to exit(0) on line 1228
119
+ - `.claude/skills/hook-development/SKILL.md` - Updated documentation with correct exit code guidance
120
+
121
+ **Prevention:**
122
+ - Always use exit(0) for Stop hooks that want Claude to continue
123
+ - Use `decision: "block"` in JSON to block, not exit code 2
124
+ - Exit code 2 is only for PreToolUse hooks (blocks specific tool call)
125
+
126
+ ---
127
+
97
128
  ### 2026-01-03 - Universal Hook Runner with Multi-Runtime Fallback
98
129
 
99
130
  **Problem:**