chore(.claude): update claude settings permissions and adjust config order

1. 调整statusLine配置项的位置到文件末尾
2. 新增WebSearch、git add/commit、npm install的权限许可
This commit is contained in:
panFD
2026-06-21 17:33:17 +08:00
parent bfa434634c
commit d60b66350a

View File

@@ -1,9 +1,5 @@
{ {
"$schema": "https://json.schemastore.org/claude-code-settings.json", "$schema": "https://json.schemastore.org/claude-code-settings.json",
"statusLine": {
"type": "command",
"command": "bash .claude/statusline.sh"
},
"permissions": { "permissions": {
"allow": [ "allow": [
"Bash(git status*)", "Bash(git status*)",
@@ -15,7 +11,11 @@
"Bash(dir *)", "Bash(dir *)",
"Bash(python -m json.tool*)", "Bash(python -m json.tool*)",
"Bash(python -m pytest*)", "Bash(python -m pytest*)",
"Bash(py -m pytest*)" "Bash(py -m pytest*)",
"WebSearch",
"Bash(git add *)",
"Bash(git commit *)",
"Bash(npm install *)"
], ],
"deny": [ "deny": [
"Bash(rm -rf *)", "Bash(rm -rf *)",
@@ -155,5 +155,9 @@
] ]
} }
] ]
},
"statusLine": {
"type": "command",
"command": "bash .claude/statusline.sh"
} }
} }