From d60b66350abd21837d82fcf52e9ee1cbf078c0a3 Mon Sep 17 00:00:00 2001 From: panFD Date: Sun, 21 Jun 2026 17:33:17 +0800 Subject: [PATCH] chore(.claude): update claude settings permissions and adjust config order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 调整statusLine配置项的位置到文件末尾 2. 新增WebSearch、git add/commit、npm install的权限许可 --- .claude/settings.json | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index ee755fa4..9fb27991 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,9 +1,5 @@ { "$schema": "https://json.schemastore.org/claude-code-settings.json", - "statusLine": { - "type": "command", - "command": "bash .claude/statusline.sh" - }, "permissions": { "allow": [ "Bash(git status*)", @@ -15,7 +11,11 @@ "Bash(dir *)", "Bash(python -m json.tool*)", "Bash(python -m pytest*)", - "Bash(py -m pytest*)" + "Bash(py -m pytest*)", + "WebSearch", + "Bash(git add *)", + "Bash(git commit *)", + "Bash(npm install *)" ], "deny": [ "Bash(rm -rf *)", @@ -155,5 +155,9 @@ ] } ] + }, + "statusLine": { + "type": "command", + "command": "bash .claude/statusline.sh" } }