101 lines
2.1 KiB
JSON
101 lines
2.1 KiB
JSON
{
|
|
"hooks": {
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/resolve-symlinks.sh",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/restore-symlinks.sh",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SessionEnd": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/restore-symlinks.sh",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(ls:*)",
|
|
"Bash(grep:*)",
|
|
"Bash(cat:*)",
|
|
"Bash(head:*)",
|
|
"Bash(tail:*)",
|
|
"Bash(less:*)",
|
|
"Bash(more:*)",
|
|
"Bash(find:*)",
|
|
"Bash(wc:*)",
|
|
"Bash(diff:*)",
|
|
"Bash(file:*)",
|
|
"Bash(stat:*)",
|
|
"Bash(tree:*)",
|
|
"Bash(pwd)",
|
|
"Bash(which:*)",
|
|
"Bash(whereis:*)",
|
|
"Bash(echo:*)",
|
|
"Bash(git status:*)",
|
|
"Bash(git diff:*)",
|
|
"Bash(git log:*)",
|
|
"Bash(git branch:*)",
|
|
"Bash(git show:*)",
|
|
"Bash(git blame:*)"
|
|
],
|
|
"deny": [
|
|
"Read(.env)",
|
|
"Read(.env.*)",
|
|
"Read(**/.env)",
|
|
"Read(**/.env.*)",
|
|
"Read(**/secrets/**)",
|
|
"Read(**/*.pem)",
|
|
"Read(**/*.key)",
|
|
"Read(**/credentials.json)",
|
|
"Read(**/*secret*)",
|
|
"Edit(.env)",
|
|
"Edit(.env.*)",
|
|
"Edit(**/.env)",
|
|
"Edit(**/.env.*)"
|
|
],
|
|
"ask": [
|
|
"Bash(rm:*)",
|
|
"Bash(rmdir:*)",
|
|
"Bash(mv:*)",
|
|
"Bash(chmod:*)",
|
|
"Bash(chown:*)",
|
|
"Bash(truncate:*)",
|
|
"Bash(shred:*)",
|
|
"Bash(unlink:*)",
|
|
"Bash(git push:*)",
|
|
"Bash(git reset:*)",
|
|
"Bash(git revert:*)",
|
|
"Bash(git checkout:*)",
|
|
"Bash(git merge:*)",
|
|
"Bash(git rebase:*)"
|
|
]
|
|
},
|
|
"enableAllProjectMcpServers": true,
|
|
"enabledPlugins": {
|
|
"rust-analyzer-lsp@claude-plugins-official": true,
|
|
"typescript-lsp@claude-plugins-official": true
|
|
}
|
|
}
|