start-vibing 2.0.10 → 2.0.11
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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* THIS HOOK BLOCKS TASK COMPLETION IF ANY OF THESE CONDITIONS FAIL:
|
|
6
6
|
*
|
|
7
|
-
* 1. BRANCH CHECK: Must be on 'main' branch (
|
|
7
|
+
* 1. BRANCH CHECK: Must be on 'main' branch (work must be merged)
|
|
8
8
|
* 2. GIT TREE CHECK: Working tree must be clean (no uncommitted changes)
|
|
9
9
|
* 3. CLAUDE.MD CHECK: Must be updated with session changes
|
|
10
10
|
* 4. CLAUDE.MD STRUCTURE: Must have required sections
|
|
@@ -227,51 +227,50 @@ REQUIRED STEPS (execute in order):
|
|
|
227
227
|
2. COMMIT with conventional message:
|
|
228
228
|
git commit -m "feat: description of changes"
|
|
229
229
|
|
|
230
|
-
3.
|
|
231
|
-
git
|
|
230
|
+
3. SWITCH to main:
|
|
231
|
+
git checkout main
|
|
232
232
|
|
|
233
|
-
4.
|
|
234
|
-
|
|
235
|
-
## Summary
|
|
236
|
-
- What was changed
|
|
233
|
+
4. MERGE branch:
|
|
234
|
+
git merge ${currentBranch}
|
|
237
235
|
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
5. SYNC with remote (if exists):
|
|
237
|
+
git pull origin main --rebase || true
|
|
238
|
+
git push origin main || true
|
|
240
239
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
)"
|
|
244
|
-
|
|
245
|
-
5. MERGE the PR (auto-delete branch):
|
|
246
|
-
gh pr merge --merge --delete-branch
|
|
247
|
-
|
|
248
|
-
6. SWITCH to main and pull:
|
|
249
|
-
git checkout main && git pull
|
|
240
|
+
6. DELETE branch (cleanup):
|
|
241
|
+
git branch -d ${currentBranch}
|
|
250
242
|
|
|
251
243
|
THEN the task can complete. The stop hook will verify main branch + clean tree.
|
|
252
244
|
================================================================================`,
|
|
253
245
|
};
|
|
254
246
|
}
|
|
255
247
|
|
|
256
|
-
// Case 2: On feature branch with clean tree - just need to
|
|
248
|
+
// Case 2: On feature branch with clean tree - just need to merge
|
|
257
249
|
if (!isMainBranch && modifiedFiles.length === 0) {
|
|
258
250
|
return {
|
|
259
251
|
type: 'NOT_ON_MAIN_BRANCH',
|
|
260
252
|
message: `Currently on branch '${currentBranch}'. Task completion requires being on 'main'.`,
|
|
261
253
|
action: `
|
|
262
254
|
================================================================================
|
|
263
|
-
|
|
255
|
+
MERGE TO MAIN BRANCH
|
|
264
256
|
================================================================================
|
|
265
257
|
|
|
266
258
|
The working tree is clean but you're on branch '${currentBranch}'.
|
|
267
259
|
|
|
268
|
-
|
|
269
|
-
|
|
260
|
+
REQUIRED STEPS:
|
|
261
|
+
|
|
262
|
+
1. SWITCH to main:
|
|
263
|
+
git checkout main
|
|
264
|
+
|
|
265
|
+
2. MERGE branch:
|
|
266
|
+
git merge ${currentBranch}
|
|
267
|
+
|
|
268
|
+
3. SYNC with remote (if exists):
|
|
269
|
+
git pull origin main --rebase || true
|
|
270
|
+
git push origin main || true
|
|
270
271
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
gh pr merge --merge --delete-branch (to merge)
|
|
274
|
-
git checkout main && git pull
|
|
272
|
+
4. DELETE branch (cleanup):
|
|
273
|
+
git branch -d ${currentBranch}
|
|
275
274
|
|
|
276
275
|
IMPORTANT: Task completion is BLOCKED until you are on 'main' with a clean tree.
|
|
277
276
|
================================================================================`,
|
|
@@ -305,7 +304,7 @@ REQUIRED STEPS:
|
|
|
305
304
|
|
|
306
305
|
2. CONTINUE your work on the new branch
|
|
307
306
|
|
|
308
|
-
3. When done,
|
|
307
|
+
3. When done, merge back to main
|
|
309
308
|
|
|
310
309
|
NEVER commit directly to main. The stop hook will BLOCK this.
|
|
311
310
|
================================================================================`,
|