oh-my-customcode 1.1.90 → 1.1.92
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/README.md +1 -1
- package/dist/cli/index.js +118 -2
- package/dist/index.js +118 -2
- package/package.json +3 -2
- package/templates/.claude/hooks/hooks.json +46 -46
- package/templates/.claude/hooks/scripts/rule-deletion-guard.sh +1 -1
- package/templates/.claude/hooks/scripts/schema-validator.sh +5 -1
- package/templates/.claude/hooks/skill-count-reminder.sh +5 -1
- package/templates/.claude/rules/MAY-optimization.md +2 -0
- package/templates/.claude/rules/MUST-enforcement-policy.md +1 -1
- package/templates/.claude/rules/MUST-sync-verification.md +2 -0
- package/templates/.claude/settings.json +46 -46
- package/templates/.claude/skills/pipeline/workflows/auto-dev.yaml +11 -4
- package/templates/guides/hook-data-flow/README.md +4 -2
- package/templates/manifest.json +1 -1
- package/templates/workflows/auto-dev.yaml +11 -4
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"hooks": [
|
|
9
9
|
{
|
|
10
10
|
"type": "command",
|
|
11
|
-
"command": "bash
|
|
11
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/stage-blocker.sh\""
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"matcher": "Write|Edit",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"hooks": [
|
|
69
69
|
{
|
|
70
70
|
"type": "command",
|
|
71
|
-
"command": "bash
|
|
71
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/content-hash-validator.sh\""
|
|
72
72
|
}
|
|
73
73
|
],
|
|
74
74
|
"matcher": "Edit",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"hooks": [
|
|
79
79
|
{
|
|
80
80
|
"type": "command",
|
|
81
|
-
"command": "bash
|
|
81
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/schema-validator.sh\""
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
84
|
"matcher": "Write|Edit|Bash",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"hooks": [
|
|
89
89
|
{
|
|
90
90
|
"type": "command",
|
|
91
|
-
"command": "bash
|
|
91
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/rtk-intercept.sh\""
|
|
92
92
|
}
|
|
93
93
|
],
|
|
94
94
|
"matcher": "Bash",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"hooks": [
|
|
99
99
|
{
|
|
100
100
|
"type": "command",
|
|
101
|
-
"command": "bash
|
|
101
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/destructive-git-guard.sh\""
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"matcher": "Bash",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"hooks": [
|
|
109
109
|
{
|
|
110
110
|
"type": "command",
|
|
111
|
-
"command": "bash
|
|
111
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/rule-deletion-guard.sh\""
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
114
|
"matcher": "Bash",
|
|
@@ -122,15 +122,15 @@
|
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"type": "command",
|
|
125
|
-
"command": "bash
|
|
125
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/git-delegation-guard.sh\""
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"type": "command",
|
|
129
|
-
"command": "bash
|
|
129
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/agent-teams-advisor.sh\""
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"type": "command",
|
|
133
|
-
"command": "bash
|
|
133
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/model-escalation-advisor.sh\""
|
|
134
134
|
}
|
|
135
135
|
],
|
|
136
136
|
"matcher": "Task|Agent",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"hooks": [
|
|
143
143
|
{
|
|
144
144
|
"type": "command",
|
|
145
|
-
"command": "
|
|
145
|
+
"command": "\"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/omcustom-auto-update.sh\""
|
|
146
146
|
}
|
|
147
147
|
],
|
|
148
148
|
"matcher": "*",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"hooks": [
|
|
153
153
|
{
|
|
154
154
|
"type": "command",
|
|
155
|
-
"command": "bash
|
|
155
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/session-env-check.sh\""
|
|
156
156
|
}
|
|
157
157
|
],
|
|
158
158
|
"matcher": "*",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"hooks": [
|
|
163
163
|
{
|
|
164
164
|
"type": "command",
|
|
165
|
-
"command": "bash
|
|
165
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/stale-todo-scanner.sh\""
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
168
|
"matcher": "*",
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"hooks": [
|
|
173
173
|
{
|
|
174
174
|
"type": "command",
|
|
175
|
-
"command": "bash
|
|
175
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/adaptive-harness-scan.sh\""
|
|
176
176
|
}
|
|
177
177
|
],
|
|
178
178
|
"matcher": "*",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"hooks": [
|
|
183
183
|
{
|
|
184
184
|
"type": "command",
|
|
185
|
-
"command": "bash
|
|
185
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/session-autofix.sh\""
|
|
186
186
|
}
|
|
187
187
|
],
|
|
188
188
|
"matcher": "*",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"hooks": [
|
|
193
193
|
{
|
|
194
194
|
"type": "command",
|
|
195
|
-
"command": "bash
|
|
195
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/plugin-cache-check.sh\""
|
|
196
196
|
}
|
|
197
197
|
],
|
|
198
198
|
"matcher": "*",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"hooks": [
|
|
203
203
|
{
|
|
204
204
|
"type": "command",
|
|
205
|
-
"command": "bash
|
|
205
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/claude-md-reinject.sh\""
|
|
206
206
|
}
|
|
207
207
|
],
|
|
208
208
|
"matcher": "compact",
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"hooks": [
|
|
215
215
|
{
|
|
216
216
|
"type": "command",
|
|
217
|
-
"command": "bash
|
|
217
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/user-prompt-preprocessor.sh\""
|
|
218
218
|
}
|
|
219
219
|
],
|
|
220
220
|
"matcher": "*",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"hooks": [
|
|
225
225
|
{
|
|
226
226
|
"type": "command",
|
|
227
|
-
"command": "bash
|
|
227
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/r007-r008-drift-advisor.sh\""
|
|
228
228
|
}
|
|
229
229
|
],
|
|
230
230
|
"matcher": "*",
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"hooks": [
|
|
235
235
|
{
|
|
236
236
|
"type": "command",
|
|
237
|
-
"command": "bash
|
|
237
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/session-autofix-prompt.sh\""
|
|
238
238
|
}
|
|
239
239
|
],
|
|
240
240
|
"matcher": "*",
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
"hooks": [
|
|
245
245
|
{
|
|
246
246
|
"type": "command",
|
|
247
|
-
"command": "bash
|
|
247
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/fail-axis-cause-advisor.sh\""
|
|
248
248
|
}
|
|
249
249
|
],
|
|
250
250
|
"matcher": "*",
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
"type": "command",
|
|
263
|
-
"command": "bash
|
|
263
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/agent-start-recorder.sh\""
|
|
264
264
|
}
|
|
265
265
|
],
|
|
266
266
|
"matcher": "*",
|
|
@@ -272,23 +272,23 @@
|
|
|
272
272
|
"hooks": [
|
|
273
273
|
{
|
|
274
274
|
"type": "command",
|
|
275
|
-
"command": "bash
|
|
275
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/task-outcome-recorder.sh\""
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"type": "command",
|
|
279
|
-
"command": "bash
|
|
279
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/stall-detection-advisor.sh\""
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
"type": "command",
|
|
283
|
-
"command": "bash
|
|
283
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/auto-continue-guard.sh\""
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"type": "command",
|
|
287
|
-
"command": "bash
|
|
287
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/r007-r008-drift-advisor.sh\""
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
"type": "command",
|
|
291
|
-
"command": "bash
|
|
291
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/subagent-failure-advisor.sh\""
|
|
292
292
|
}
|
|
293
293
|
],
|
|
294
294
|
"matcher": "*",
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"hooks": [
|
|
301
301
|
{
|
|
302
302
|
"type": "command",
|
|
303
|
-
"command": "bash
|
|
303
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/cwd-change-detector.sh\""
|
|
304
304
|
}
|
|
305
305
|
],
|
|
306
306
|
"matcher": "*",
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
"hooks": [
|
|
313
313
|
{
|
|
314
314
|
"type": "command",
|
|
315
|
-
"command": "bash
|
|
315
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/file-change-validator.sh\""
|
|
316
316
|
}
|
|
317
317
|
],
|
|
318
318
|
"matcher": "*",
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
"hooks": [
|
|
373
373
|
{
|
|
374
374
|
"type": "command",
|
|
375
|
-
"command": "bash
|
|
375
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/task-state-precompact.sh\""
|
|
376
376
|
}
|
|
377
377
|
],
|
|
378
378
|
"matcher": "*",
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
"hooks": [
|
|
471
471
|
{
|
|
472
472
|
"type": "command",
|
|
473
|
-
"command": "bash
|
|
473
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/context-budget-advisor.sh\"",
|
|
474
474
|
"continueOnBlock": true
|
|
475
475
|
}
|
|
476
476
|
],
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
"hooks": [
|
|
482
482
|
{
|
|
483
483
|
"type": "command",
|
|
484
|
-
"command": "bash
|
|
484
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/r007-r008-drift-advisor.sh\"",
|
|
485
485
|
"continueOnBlock": true
|
|
486
486
|
}
|
|
487
487
|
],
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
"hooks": [
|
|
493
493
|
{
|
|
494
494
|
"type": "command",
|
|
495
|
-
"command": "bash
|
|
495
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/stuck-detector.sh\"",
|
|
496
496
|
"continueOnBlock": true
|
|
497
497
|
}
|
|
498
498
|
],
|
|
@@ -503,7 +503,7 @@
|
|
|
503
503
|
"hooks": [
|
|
504
504
|
{
|
|
505
505
|
"type": "command",
|
|
506
|
-
"command": "bash
|
|
506
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/cost-cap-advisor.sh\"",
|
|
507
507
|
"continueOnBlock": true
|
|
508
508
|
}
|
|
509
509
|
],
|
|
@@ -514,7 +514,7 @@
|
|
|
514
514
|
"hooks": [
|
|
515
515
|
{
|
|
516
516
|
"type": "command",
|
|
517
|
-
"command": "bash
|
|
517
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/content-hash-validator.sh\""
|
|
518
518
|
}
|
|
519
519
|
],
|
|
520
520
|
"matcher": "Read",
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
"hooks": [
|
|
525
525
|
{
|
|
526
526
|
"type": "command",
|
|
527
|
-
"command": "bash
|
|
527
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/secret-filter.sh\""
|
|
528
528
|
}
|
|
529
529
|
],
|
|
530
530
|
"matcher": "Bash|Read|Grep",
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
"hooks": [
|
|
535
535
|
{
|
|
536
536
|
"type": "command",
|
|
537
|
-
"command": "bash
|
|
537
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/audit-log.sh\""
|
|
538
538
|
}
|
|
539
539
|
],
|
|
540
540
|
"matcher": "Edit|Write|Bash|Agent",
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
"hooks": [
|
|
545
545
|
{
|
|
546
546
|
"type": "command",
|
|
547
|
-
"command": "bash
|
|
547
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/skill-count-reminder.sh\"",
|
|
548
548
|
"continueOnBlock": true
|
|
549
549
|
}
|
|
550
550
|
],
|
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
"hooks": [
|
|
556
556
|
{
|
|
557
557
|
"type": "command",
|
|
558
|
-
"command": "bash
|
|
558
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/playwright-compress.sh\""
|
|
559
559
|
}
|
|
560
560
|
],
|
|
561
561
|
"matcher": "mcp__playwright__.*|mcp__claude-in-chrome__.*",
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
"hooks": [
|
|
566
566
|
{
|
|
567
567
|
"type": "command",
|
|
568
|
-
"command": "bash
|
|
568
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/auto-dev-token-tracker.sh\""
|
|
569
569
|
}
|
|
570
570
|
],
|
|
571
571
|
"matcher": "Task|Agent",
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
"hooks": [
|
|
578
578
|
{
|
|
579
579
|
"type": "command",
|
|
580
|
-
"command": "bash
|
|
580
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/stop-console-audit.sh\""
|
|
581
581
|
}
|
|
582
582
|
],
|
|
583
583
|
"matcher": "*",
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"hooks": [
|
|
588
588
|
{
|
|
589
589
|
"type": "command",
|
|
590
|
-
"command": "bash
|
|
590
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/eval-core-batch-save.sh\""
|
|
591
591
|
}
|
|
592
592
|
],
|
|
593
593
|
"matcher": "*",
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
"hooks": [
|
|
598
598
|
{
|
|
599
599
|
"type": "command",
|
|
600
|
-
"command": "bash
|
|
600
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/feedback-collector.sh\""
|
|
601
601
|
}
|
|
602
602
|
],
|
|
603
603
|
"matcher": "*",
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
"hooks": [
|
|
608
608
|
{
|
|
609
609
|
"type": "command",
|
|
610
|
-
"command": "bash
|
|
610
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/session-reflection.sh\""
|
|
611
611
|
}
|
|
612
612
|
],
|
|
613
613
|
"matcher": "*",
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"hooks": [
|
|
618
618
|
{
|
|
619
619
|
"type": "command",
|
|
620
|
-
"command": "bash
|
|
620
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/skill-extractor-analyzer.sh\""
|
|
621
621
|
}
|
|
622
622
|
],
|
|
623
623
|
"matcher": "*",
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
"hooks": [
|
|
628
628
|
{
|
|
629
629
|
"type": "command",
|
|
630
|
-
"command": "bash
|
|
630
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/auto-dev-token-summary.sh\""
|
|
631
631
|
}
|
|
632
632
|
],
|
|
633
633
|
"matcher": "*",
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
"hooks": [
|
|
640
640
|
{
|
|
641
641
|
"type": "command",
|
|
642
|
-
"command": "bash
|
|
642
|
+
"command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/failure-ledger.sh\""
|
|
643
643
|
}
|
|
644
644
|
],
|
|
645
645
|
"matcher": "*",
|
|
@@ -455,7 +455,12 @@ steps:
|
|
|
455
455
|
combined commit lands. DEADLINE: the combined commit MUST land — with the
|
|
456
456
|
`.husky/pre-commit` gate passing — before the release step begins; release step
|
|
457
457
|
1.a requires a clean working tree, so a deferred commit cannot cross into release.
|
|
458
|
-
|
|
458
|
+
LABEL TIMING: when this OPTION is used, the moment right after the combined commit
|
|
459
|
+
lands is the per-issue "success" point — run lifecycle item 6 (`gh issue edit <N>
|
|
460
|
+
--remove-label in-progress --add-label verify-ready`) there for every issue in the
|
|
461
|
+
commit, at that point rather than deferring it to ci-check, whose step 5 remains the
|
|
462
|
+
safety net (통합 커밋 직후에 이슈별 라벨 전환을 실행합니다, #1760 찐빠 #6).
|
|
463
|
+
6. On success: remove in-progress, add verify-ready (combined-commit OPTION: right after the combined commit lands, #1760 찐빠 #6)
|
|
459
464
|
7. On failure: remove in-progress, add needs-review, comment error summary
|
|
460
465
|
|
|
461
466
|
Rules:
|
|
@@ -488,11 +493,13 @@ steps:
|
|
|
488
493
|
criteria MUST include THREE deterministic checks, scoped to edited text files (md/yaml)
|
|
489
494
|
and restricted to added lines only (`git diff -U0 -- <edited md/yaml files> | grep
|
|
490
495
|
'^+'`): family check `grep -cE '(한다|된다|않는다|따른다|했다|있다|없다|넣는다|이다)[.。 "]'`
|
|
491
|
-
= 0, line-final auxiliary check `grep -E '다[.。"]?$' | grep -
|
|
496
|
+
= 0, line-final auxiliary check `grep -E '다[.。"]?$' | grep -vcE '니다[.。"]?$'` = 0
|
|
492
497
|
(the family list alone misses endings such as 따른다/했다/있다 and unpunctuated
|
|
493
498
|
line-final endings; the line-final check excludes 합쇼체 `-니다` endings so it does not
|
|
494
|
-
flag correct sentences —
|
|
495
|
-
|
|
499
|
+
flag correct sentences — the second grep MUST use `-E`: in BRE `?` is a literal
|
|
500
|
+
character, so the original `grep -vc` form flagged all 6 합쇼체 negatives (6/12 correct,
|
|
501
|
+
re-measured #1760); with `-vcE` the 6 반말/평서형 positive and 6 합쇼체 negative samples
|
|
502
|
+
give 12/12 correct) (#1711 찐빠 #3), AND line-final noun-ending check
|
|
496
503
|
`grep -E '(함|됨|필요)[.。"]?$'` = 0 (반말/명사 종결 endings such as 확인함·정정
|
|
497
504
|
필요·완료됨 fall entirely outside the 다-ending regexes above and were previously
|
|
498
505
|
undetectable — verified against 4 명사 종결 positive samples and 4 합쇼체 negative
|
|
@@ -85,12 +85,14 @@ The SubagentStop hook array in `hooks.json` defines a strict ordering:
|
|
|
85
85
|
|
|
86
86
|
```json
|
|
87
87
|
"SubagentStop": [
|
|
88
|
-
{ "command": "bash
|
|
89
|
-
{ "command": "bash
|
|
88
|
+
{ "command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/task-outcome-recorder.sh\"" },
|
|
89
|
+
{ "command": "bash \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/scripts/stall-detection-advisor.sh\"" },
|
|
90
90
|
...
|
|
91
91
|
]
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
+
Hook commands are anchored to the project root with `${CLAUDE_PROJECT_DIR:-.}`: hooks run in the session cwd, Claude Code injects `CLAUDE_PROJECT_DIR` into hook processes, and the `:-.` fallback keeps the relative-path behavior when it is unset. `hooks.json` is the source; the tracked `settings.json` hooks blocks are generated from it by `bun run sync:hooks` (also run at the end of `bun run build`) — never hand-edit them.
|
|
95
|
+
|
|
94
96
|
**task-outcome-recorder MUST run before stall-detection-advisor.**
|
|
95
97
|
|
|
96
98
|
Reason: `stall-detection-advisor.sh` removes the matching start entry from `.claude-agent-starts-$PPID` after reading it (to prevent re-matching on the next SubagentStop). If the order were reversed, `task-outcome-recorder.sh` would find no start entry for the agent and would always record `duration_seconds=0`.
|
package/templates/manifest.json
CHANGED
|
@@ -455,7 +455,12 @@ steps:
|
|
|
455
455
|
combined commit lands. DEADLINE: the combined commit MUST land — with the
|
|
456
456
|
`.husky/pre-commit` gate passing — before the release step begins; release step
|
|
457
457
|
1.a requires a clean working tree, so a deferred commit cannot cross into release.
|
|
458
|
-
|
|
458
|
+
LABEL TIMING: when this OPTION is used, the moment right after the combined commit
|
|
459
|
+
lands is the per-issue "success" point — run lifecycle item 6 (`gh issue edit <N>
|
|
460
|
+
--remove-label in-progress --add-label verify-ready`) there for every issue in the
|
|
461
|
+
commit, at that point rather than deferring it to ci-check, whose step 5 remains the
|
|
462
|
+
safety net (통합 커밋 직후에 이슈별 라벨 전환을 실행합니다, #1760 찐빠 #6).
|
|
463
|
+
6. On success: remove in-progress, add verify-ready (combined-commit OPTION: right after the combined commit lands, #1760 찐빠 #6)
|
|
459
464
|
7. On failure: remove in-progress, add needs-review, comment error summary
|
|
460
465
|
|
|
461
466
|
Rules:
|
|
@@ -488,11 +493,13 @@ steps:
|
|
|
488
493
|
criteria MUST include THREE deterministic checks, scoped to edited text files (md/yaml)
|
|
489
494
|
and restricted to added lines only (`git diff -U0 -- <edited md/yaml files> | grep
|
|
490
495
|
'^+'`): family check `grep -cE '(한다|된다|않는다|따른다|했다|있다|없다|넣는다|이다)[.。 "]'`
|
|
491
|
-
= 0, line-final auxiliary check `grep -E '다[.。"]?$' | grep -
|
|
496
|
+
= 0, line-final auxiliary check `grep -E '다[.。"]?$' | grep -vcE '니다[.。"]?$'` = 0
|
|
492
497
|
(the family list alone misses endings such as 따른다/했다/있다 and unpunctuated
|
|
493
498
|
line-final endings; the line-final check excludes 합쇼체 `-니다` endings so it does not
|
|
494
|
-
flag correct sentences —
|
|
495
|
-
|
|
499
|
+
flag correct sentences — the second grep MUST use `-E`: in BRE `?` is a literal
|
|
500
|
+
character, so the original `grep -vc` form flagged all 6 합쇼체 negatives (6/12 correct,
|
|
501
|
+
re-measured #1760); with `-vcE` the 6 반말/평서형 positive and 6 합쇼체 negative samples
|
|
502
|
+
give 12/12 correct) (#1711 찐빠 #3), AND line-final noun-ending check
|
|
496
503
|
`grep -E '(함|됨|필요)[.。"]?$'` = 0 (반말/명사 종결 endings such as 확인함·정정
|
|
497
504
|
필요·완료됨 fall entirely outside the 다-ending regexes above and were previously
|
|
498
505
|
undetectable — verified against 4 명사 종결 positive samples and 4 합쇼체 negative
|