{
  "permissions": {
    "allow": [
      "Bash(*)",
      "mcp__ide__getDiagnostics",
      "Read(//mnt/e/QtwCode/foodie/**)",
      "Bash(cat .gitignore)",
      "mcp__zai-mcp-server__extract_text_from_screenshot",
      "mcp__zai-mcp-server__analyze_image",
      "mcp__chrome_mcp_server__chrome_navigate",
      "Bash(xargs grep *)",
      "Bash(bash *)",
      "Bash(echo \".superpowers/\")",
      "Bash(sort -u -o \"E:\\\\QtwCode\\\\foodie\\\\foodie_server\\\\.gitignore\" \"E:\\\\QtwCode\\\\foodie\\\\foodie_server\\\\.gitignore\")",
      "mcp__chrome_mcp_server__chrome_screenshot",
      "mcp__chrome_mcp_server__chrome_computer",
      "WebSearch",
      "mcp__web-search-prime__web_search_prime",
      "mcp__zread__read_file",
      "mcp__web-reader__webReader",
      "Read(//c/Users/qmj/.claude/**)",
      "Bash(npm view *)",
      "Bash(npx playwright *)",
      "Bash(powershell -ExecutionPolicy Bypass -File \".specify/scripts/powershell/setup-plan.ps1\" -Json)",
      "Bash(grep -E \"\\\\.\\(json|js|ts|jsx|tsx|sql|py|java|go\\)$\")",
      "Bash(powershell -ExecutionPolicy Bypass -File \".specify/scripts/powershell/check-prerequisites.ps1\" -Json)",
      "Bash(powershell -ExecutionPolicy Bypass -File \".specify/scripts/powershell/check-prerequisites.ps1\" -Json -RequireTasks -IncludeTasks)",
      "Bash(mvn compile *)",
      "mcp__zread__get_repo_structure"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "bash -c 'FILE=\"$CLAUDE_FILE_PATH\"; if echo \"$FILE\" | grep -qiE \"\\.env$|\\.env\\.|application-prod|application-druid\"; then echo \"ERROR: 不允许直接编辑配置文件 $FILE\" >&2; exit 1; fi'"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "bash -c 'FILE=\"$CLAUDE_FILE_PATH\"; if echo \"$FILE\" | grep -qiE \"\\.java$\"; then cd /e/QtwCode/foodie/foodie_server && mvn compile -pl ruoyi-admin -q 2>&1 | tail -5; fi'"
          }
        ]
      }
    ]
  }
}
