|
3 | 3 | "hooks": { |
4 | 4 | "PostToolUse": [ |
5 | 5 | { |
6 | | - "name": "edit-validation", |
7 | | - "script": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/edit-validation.ts", |
8 | | - "description": "Validates TypeScript and Biome compliance after file edits" |
| 6 | + "matcher": "Edit|Write", |
| 7 | + "hooks": [ |
| 8 | + { |
| 9 | + "type": "command", |
| 10 | + "command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/edit-validation.ts" |
| 11 | + } |
| 12 | + ] |
9 | 13 | } |
10 | 14 | ], |
11 | 15 | "PreToolUse": [ |
12 | 16 | { |
13 | | - "name": "pre-tool-validation", |
14 | | - "script": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-validation.ts", |
15 | | - "description": "Validates branch protection and task file integrity before tool use" |
| 17 | + "matcher": "Edit|Write|Bash", |
| 18 | + "hooks": [ |
| 19 | + { |
| 20 | + "type": "command", |
| 21 | + "command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-validation.ts" |
| 22 | + } |
| 23 | + ] |
16 | 24 | }, |
17 | 25 | { |
18 | | - "name": "powershell-guidance", |
19 | | - "script": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/powershell-guidance.ts", |
20 | | - "description": "Windows only: Converts Linux commands to PowerShell or provides guidance" |
| 26 | + "matcher": "Bash", |
| 27 | + "hooks": [ |
| 28 | + { |
| 29 | + "type": "command", |
| 30 | + "command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/powershell-guidance.ts" |
| 31 | + } |
| 32 | + ] |
21 | 33 | } |
22 | 34 | ], |
23 | 35 | "UserPromptSubmit": [ |
24 | 36 | { |
25 | | - "name": "autoflow-control", |
26 | | - "script": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/user-message.ts", |
27 | | - "description": "Detects autoflow mode activation and deactivation" |
| 37 | + "matcher": "*", |
| 38 | + "hooks": [ |
| 39 | + { |
| 40 | + "type": "command", |
| 41 | + "command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/user-message.ts" |
| 42 | + } |
| 43 | + ] |
28 | 44 | } |
29 | 45 | ], |
30 | 46 | "PermissionRequest": [ |
31 | 47 | { |
32 | | - "name": "autoflow-permissions", |
33 | | - "script": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/permission-request.ts", |
34 | | - "description": "Denies permissions in autoflow mode with helpful message" |
| 48 | + "matcher": "*", |
| 49 | + "hooks": [ |
| 50 | + { |
| 51 | + "type": "command", |
| 52 | + "command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/permission-request.ts" |
| 53 | + } |
| 54 | + ] |
35 | 55 | } |
36 | 56 | ], |
37 | 57 | "Stop": [ |
38 | 58 | { |
39 | | - "name": "autoflow-evaluator", |
40 | | - "script": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/stop.ts", |
41 | | - "description": "Evaluates if Claude should continue working in autoflow mode" |
| 59 | + "matcher": "*", |
| 60 | + "hooks": [ |
| 61 | + { |
| 62 | + "type": "command", |
| 63 | + "command": "bun run ${CLAUDE_PLUGIN_ROOT}/hooks/stop.ts" |
| 64 | + } |
| 65 | + ] |
42 | 66 | } |
43 | 67 | ] |
44 | 68 | } |
|
0 commit comments