Repository navigation
Expand file tree
/
Copy pathhooks.json
More file actions
50 lines (50 loc) · 1.88 KB
/
Copy pathhooks.json
File metadata and controls
50 lines (50 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"legion": {
"enabled": true,
"SessionStart": [
{
"type": "command",
"timeout": 10,
"command": "if [ -f ./.antigravity-plugin/plugin.json ] && [ -f ./core/hooks/run.py ]; then exec sh ./core/hooks/lg-hook agy session_start; else exec sh \"$HOME/.gemini/config/plugins/legion/core/hooks/lg-hook\" agy session_start; fi"
}
],
"PreInvocation": [
{
"type": "command",
"timeout": 8,
"command": "if [ -f ./.antigravity-plugin/plugin.json ] && [ -f ./core/hooks/run.py ]; then exec sh ./core/hooks/lg-hook agy pre_invocation; else exec sh \"$HOME/.gemini/config/plugins/legion/core/hooks/lg-hook\" agy pre_invocation; fi"
}
],
"PreToolUse": [
{
"matcher": "run_command|write_file|edit_file",
"hooks": [
{
"type": "command",
"timeout": 8,
"command": "if [ -f ./.antigravity-plugin/plugin.json ] && [ -f ./core/hooks/run.py ]; then exec sh ./core/hooks/lg-hook agy pre_tool; else exec sh \"$HOME/.gemini/config/plugins/legion/core/hooks/lg-hook\" agy pre_tool; fi"
}
]
}
],
"PostToolUse": [
{
"matcher": "run_command|write_file|edit_file",
"hooks": [
{
"type": "command",
"timeout": 8,
"command": "if [ -f ./.antigravity-plugin/plugin.json ] && [ -f ./core/hooks/run.py ]; then exec sh ./core/hooks/lg-hook agy post_tool; else exec sh \"$HOME/.gemini/config/plugins/legion/core/hooks/lg-hook\" agy post_tool; fi"
}
]
}
],
"Stop": [
{
"type": "command",
"timeout": 20,
"command": "if [ -f ./.antigravity-plugin/plugin.json ] && [ -f ./core/hooks/run.py ]; then exec sh ./core/hooks/lg-hook agy stop; else exec sh \"$HOME/.gemini/config/plugins/legion/core/hooks/lg-hook\" agy stop; fi"
}
]
}
}