24 lines
718 B
JSON
24 lines
718 B
JSON
{
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"command": "node -e \"let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const i=JSON.parse(d);const cmd=(i.tool_input||{}).command||'';if(cmd.includes('git commit')){process.stderr.write('\\n📋 提交前检查清单:\\n complexity S → /code-review\\n complexity M → /Dev-edge-case → /code-review\\n\\n');}}catch(e){}});\"",
|
|
"type": "command"
|
|
}
|
|
],
|
|
"matcher": "Bash"
|
|
}
|
|
]
|
|
},
|
|
"mcpServers": {
|
|
"lian-jing": {
|
|
"type": "sse",
|
|
"url": "http://127.0.0.1:27190/mcp"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"defaultMode": "bypassPermissions"
|
|
}
|
|
} |