|
1 | 1 | { |
2 | 2 | "context": { |
3 | | - "fileName": ["AGENTS.md"] |
| 3 | + "fileName": [ |
| 4 | + "AGENTS.md" |
| 5 | + ] |
4 | 6 | }, |
5 | 7 | "hooks": { |
6 | | - "SessionStart": [ |
| 8 | + "AfterAgent": [ |
7 | 9 | { |
8 | 10 | "hooks": [ |
9 | 11 | { |
10 | | - "name": "entire-session-start", |
| 12 | + "name": "entire-after-agent", |
11 | 13 | "type": "command", |
12 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-start" |
| 14 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini after-agent" |
13 | 15 | } |
14 | 16 | ] |
15 | 17 | } |
16 | 18 | ], |
17 | | - "SessionEnd": [ |
| 19 | + "AfterModel": [ |
18 | 20 | { |
19 | | - "matcher": "exit", |
20 | 21 | "hooks": [ |
21 | 22 | { |
22 | | - "name": "entire-session-end-exit", |
| 23 | + "name": "entire-after-model", |
23 | 24 | "type": "command", |
24 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-end" |
| 25 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini after-model" |
25 | 26 | } |
26 | 27 | ] |
27 | | - }, |
| 28 | + } |
| 29 | + ], |
| 30 | + "AfterTool": [ |
28 | 31 | { |
29 | | - "matcher": "logout", |
| 32 | + "matcher": "*", |
30 | 33 | "hooks": [ |
31 | 34 | { |
32 | | - "name": "entire-session-end-logout", |
| 35 | + "name": "entire-after-tool", |
33 | 36 | "type": "command", |
34 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini session-end" |
| 37 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini after-tool" |
35 | 38 | } |
36 | 39 | ] |
37 | 40 | } |
|
42 | 45 | { |
43 | 46 | "name": "entire-before-agent", |
44 | 47 | "type": "command", |
45 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-agent" |
| 48 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini before-agent" |
46 | 49 | } |
47 | 50 | ] |
48 | 51 | } |
49 | 52 | ], |
50 | | - "AfterAgent": [ |
| 53 | + "BeforeModel": [ |
51 | 54 | { |
52 | 55 | "hooks": [ |
53 | 56 | { |
54 | | - "name": "entire-after-agent", |
| 57 | + "name": "entire-before-model", |
55 | 58 | "type": "command", |
56 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-agent" |
| 59 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini before-model" |
57 | 60 | } |
58 | 61 | ] |
59 | 62 | } |
60 | 63 | ], |
61 | | - "BeforeModel": [ |
| 64 | + "BeforeTool": [ |
62 | 65 | { |
| 66 | + "matcher": "*", |
63 | 67 | "hooks": [ |
64 | 68 | { |
65 | | - "name": "entire-before-model", |
| 69 | + "name": "entire-before-tool", |
66 | 70 | "type": "command", |
67 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-model" |
| 71 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini before-tool" |
68 | 72 | } |
69 | 73 | ] |
70 | 74 | } |
71 | 75 | ], |
72 | | - "AfterModel": [ |
| 76 | + "BeforeToolSelection": [ |
73 | 77 | { |
74 | 78 | "hooks": [ |
75 | 79 | { |
76 | | - "name": "entire-after-model", |
| 80 | + "name": "entire-before-tool-selection", |
77 | 81 | "type": "command", |
78 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-model" |
| 82 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini before-tool-selection" |
79 | 83 | } |
80 | 84 | ] |
81 | 85 | } |
82 | 86 | ], |
83 | | - "BeforeToolSelection": [ |
| 87 | + "Notification": [ |
84 | 88 | { |
85 | 89 | "hooks": [ |
86 | 90 | { |
87 | | - "name": "entire-before-tool-selection", |
| 91 | + "name": "entire-notification", |
88 | 92 | "type": "command", |
89 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-tool-selection" |
| 93 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini notification" |
90 | 94 | } |
91 | 95 | ] |
92 | 96 | } |
93 | 97 | ], |
94 | | - "BeforeTool": [ |
| 98 | + "PreCompress": [ |
95 | 99 | { |
96 | | - "matcher": "*", |
97 | 100 | "hooks": [ |
98 | 101 | { |
99 | | - "name": "entire-before-tool", |
| 102 | + "name": "entire-pre-compress", |
100 | 103 | "type": "command", |
101 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini before-tool" |
| 104 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini pre-compress" |
102 | 105 | } |
103 | 106 | ] |
104 | 107 | } |
105 | 108 | ], |
106 | | - "AfterTool": [ |
| 109 | + "SessionEnd": [ |
107 | 110 | { |
108 | | - "matcher": "*", |
| 111 | + "matcher": "exit", |
109 | 112 | "hooks": [ |
110 | 113 | { |
111 | | - "name": "entire-after-tool", |
| 114 | + "name": "entire-session-end-exit", |
112 | 115 | "type": "command", |
113 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini after-tool" |
| 116 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini session-end" |
114 | 117 | } |
115 | 118 | ] |
116 | | - } |
117 | | - ], |
118 | | - "PreCompress": [ |
| 119 | + }, |
119 | 120 | { |
| 121 | + "matcher": "logout", |
120 | 122 | "hooks": [ |
121 | 123 | { |
122 | | - "name": "entire-pre-compress", |
| 124 | + "name": "entire-session-end-logout", |
123 | 125 | "type": "command", |
124 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini pre-compress" |
| 126 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini session-end" |
125 | 127 | } |
126 | 128 | ] |
127 | 129 | } |
128 | 130 | ], |
129 | | - "Notification": [ |
| 131 | + "SessionStart": [ |
130 | 132 | { |
131 | 133 | "hooks": [ |
132 | 134 | { |
133 | | - "name": "entire-notification", |
| 135 | + "name": "entire-session-start", |
134 | 136 | "type": "command", |
135 | | - "command": "go run \"$(git rev-parse --show-toplevel)\"/cmd/entire/main.go hooks gemini notification" |
| 137 | + "command": "\"$(git rev-parse --show-toplevel)\"/scripts/entire-dev hooks gemini session-start" |
136 | 138 | } |
137 | 139 | ] |
138 | 140 | } |
139 | 141 | ] |
140 | 142 | }, |
| 143 | + "hooksConfig": { |
| 144 | + "enabled": true |
| 145 | + }, |
141 | 146 | "tools": { |
142 | 147 | "enableHooks": true |
143 | 148 | } |
|
0 commit comments