forked from monk-io/monk-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhooks.json
More file actions
42 lines (42 loc) · 1.28 KB
/
Copy pathhooks.json
File metadata and controls
42 lines (42 loc) · 1.28 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
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "/bin/sh -c \"$PLUGIN_ROOT/scripts/start-monk-agent.sh\"",
"commandWindows": "C:\\Windows\\System32\\cmd.exe /c \"\"%PLUGIN_ROOT%\\scripts\\run-powershell.cmd\" \"%PLUGIN_ROOT%\\scripts\\start-monk-agent.ps1\"\"",
"timeout": 180
}
]
}
],
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "/bin/sh -c \"$PLUGIN_ROOT/hooks/block-monk.sh\"",
"commandWindows": "C:\\Windows\\System32\\cmd.exe /c \"\"%PLUGIN_ROOT%\\scripts\\run-powershell.cmd\" \"%PLUGIN_ROOT%\\hooks\\block-monk.ps1\"\"",
"timeout": 5
}
]
}
],
"PostToolUse": [
{
"matcher": "Edit|Write|MultiEdit|apply_patch",
"hooks": [
{
"type": "command",
"command": "/bin/sh -c \"$PLUGIN_ROOT/hooks/monk-diagnostics-codex.sh\"",
"commandWindows": "C:\\Windows\\System32\\cmd.exe /c \"\"%PLUGIN_ROOT%\\scripts\\run-powershell.cmd\" \"%PLUGIN_ROOT%\\hooks\\monk-diagnostics.ps1\" -Format codex\"",
"timeout": 30
}
]
}
]
}
}