kilhyeonjun
e0d611aefc
revert: remove incorrect claudeCodeHooks override in createHooks, add pre-tool-use tests
...
Revert the create-hooks.ts change — claudeCodeHooks is already created
in createTransformHooks() with proper config and contextCollector.
The previous commit overwrote it with a degraded instance (empty config,
no contextCollector).
Add 8 unit tests for executePreToolUseHooks covering:
- null/empty config handling
- exit code 2 (deny) and 1 (ask) behavior
- multiple merged hooks: allow continues to next hook (the actual bug)
- deny short-circuits remaining hooks
- modifiedInput propagation between hooks
TDD verified: tests fail with original code, pass with fix.
2026-04-10 10:23:05 +09:00
..
2026-04-09 15:15:30 +09:00
2026-03-27 10:56:49 +09:00
2026-04-05 14:12:30 +09:00
2026-03-30 10:33:38 +09:00
2026-04-08 16:18:26 +09:00
2026-04-04 17:08:53 +09:00
2026-04-09 07:29:07 +09:00
2026-04-04 18:48:03 +09:00
2026-02-16 20:43:09 +09:00
2026-04-10 10:23:05 +09:00
2026-04-04 00:34:03 +09:00
2026-04-08 16:18:26 +09:00
2026-04-04 00:34:03 +09:00
2026-02-11 14:23:37 +09:00
2026-04-04 00:34:03 +09:00
2026-04-04 00:34:03 +09:00
2026-02-13 18:52:18 +09:00
2026-02-23 02:43:08 +09:00
2026-02-24 18:21:05 +09:00
2026-02-26 21:00:40 +09:00
2026-02-17 15:46:21 +09:00
2026-04-09 15:15:30 +09:00
2026-04-04 19:52:25 +09:00
2026-04-07 11:20:42 +09:00
2026-04-08 16:18:26 +09:00
2026-04-08 16:18:26 +09:00
2026-04-03 18:26:24 +09:00
2026-04-07 15:44:31 +09:00
2026-02-08 13:57:26 +09:00
2026-04-08 13:33:09 +09:00
2026-04-07 15:29:11 +09:00
2026-04-05 14:12:30 +09:00
2026-04-09 15:14:40 +09:00
2026-04-07 15:10:38 +09:00
2026-02-23 02:42:30 +09:00
2026-02-16 16:13:40 +09:00
2026-04-08 17:18:23 +09:00
2026-04-09 21:36:10 +09:00
2026-02-21 17:07:39 +09:00
2026-03-31 17:02:56 -07:00
2026-04-03 18:32:12 +09:00
2026-03-27 13:59:06 +09:00
2026-04-03 21:37:16 +09:00
2026-04-08 16:18:26 +09:00
2026-04-04 01:27:51 +09:00
2026-04-02 13:31:48 +09:00
2026-04-07 15:10:38 +09:00
2026-03-24 23:59:57 +09:00
2026-04-03 21:37:16 +09:00
2026-04-05 09:30:19 +09:00
2026-04-05 11:24:10 +09:00
2026-04-04 18:56:42 +09:00
2026-04-05 09:30:19 +09:00
2026-04-05 11:24:10 +09:00
2026-04-05 14:12:30 +09:00
2026-03-23 20:15:20 +09:00
2026-04-04 14:35:49 +09:00
2026-04-04 01:27:40 +09:00
2026-04-04 01:27:40 +09:00
2026-02-06 21:35:30 +09:00
2026-04-02 13:31:48 +09:00
2026-04-06 17:40:12 +09:00
2026-04-08 13:20:01 +09:00
2026-03-18 19:08:05 +09:00
2026-03-13 12:36:07 +09:00
2026-04-04 00:34:03 +09:00
2026-04-04 00:34:03 +09:00
2026-04-08 20:10:25 +09:00
2026-04-08 20:10:25 +09:00
2026-03-12 15:29:21 +09:00
2026-03-12 15:29:21 +09:00
2026-02-08 16:23:56 +09:00
2026-02-24 21:43:47 +09:00
2026-03-12 15:29:21 +09:00
2026-03-12 18:37:10 +09:00
2026-04-03 21:37:16 +09:00
2026-04-03 21:37:16 +09:00
2026-03-12 18:19:06 +09:00
2026-03-12 15:29:21 +09:00
2026-02-16 18:20:19 +09:00
2026-03-08 02:10:56 +09:00
2026-03-08 02:10:56 +09:00