首页
This commit is contained in:
30
.cursor/hooks.json
Normal file
30
.cursor/hooks.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"version": 1,
|
||||
"hooks": {
|
||||
"preToolUse": [
|
||||
{
|
||||
"command": "python .cursor/hooks/inject-subagent-context.py",
|
||||
"matcher": "Task|Subagent",
|
||||
"timeout": 30
|
||||
}
|
||||
],
|
||||
"sessionStart": [
|
||||
{
|
||||
"command": "python .cursor/hooks/session-start.py",
|
||||
"timeout": 10
|
||||
}
|
||||
],
|
||||
"beforeSubmitPrompt": [
|
||||
{
|
||||
"command": "python .cursor/hooks/inject-workflow-state.py",
|
||||
"timeout": 5
|
||||
}
|
||||
],
|
||||
"beforeShellExecution": [
|
||||
{
|
||||
"command": "python .cursor/hooks/inject-shell-session-context.py",
|
||||
"timeout": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user