Skip to content

Commit 551ea74

Browse files
committed
refactor: remove uv dependency from plugin hooks
- invoke workflow guard directly with python - keep CLAUDE_PLUGIN_ROOT-based paths and hook timeouts
1 parent 92490d9 commit 551ea74

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

hooks/hooks.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"hooks": [
77
{
88
"type": "command",
9-
"command": "python hooks/workflow_guard.py session"
9+
"command": "python \"${CLAUDE_PLUGIN_ROOT}/hooks/workflow_guard.py\" session",
10+
"timeout": 30
1011
}
1112
]
1213
}
@@ -17,7 +18,8 @@
1718
"hooks": [
1819
{
1920
"type": "command",
20-
"command": "python hooks/workflow_guard.py pre"
21+
"command": "python \"${CLAUDE_PLUGIN_ROOT}/hooks/workflow_guard.py\" pre",
22+
"timeout": 30
2123
}
2224
]
2325
}
@@ -28,7 +30,8 @@
2830
"hooks": [
2931
{
3032
"type": "command",
31-
"command": "python hooks/workflow_guard.py post"
33+
"command": "python \"${CLAUDE_PLUGIN_ROOT}/hooks/workflow_guard.py\" post",
34+
"timeout": 30
3235
}
3336
]
3437
}

0 commit comments

Comments
 (0)