You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugin system expects { "hooks": { "PostToolUse": [...] } } but both
java-core and java-security had PostToolUse at the top level, causing
"Invalid input: expected record, received undefined" on plugin load.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
"command": "echo '[java-security] Java file modified. Consider asking the java-security-reviewer agent to check for OWASP vulnerabilities, injection risks, or secrets in the new code.'"
9
-
}
10
-
]
11
-
}
12
-
]
2
+
"hooks": {
3
+
"PostToolUse": [
4
+
{
5
+
"matcher": "Write|Edit",
6
+
"hooks": [
7
+
{
8
+
"type": "command",
9
+
"command": "echo '[java-security] Java file modified. Consider asking the java-security-reviewer agent to check for OWASP vulnerabilities, injection risks, or secrets in the new code.'"
0 commit comments