{
  "$comment": "项目级设置示例（.claude/settings.json，入版本控制）。字段以 settings-reference 为准：https://code.claude.com/docs/en/settings-reference（2026-08-30）",
  "permissions": {
    "allow": [
      "Read(./**)",
      "Bash(pnpm test:*)",
      "Bash(pnpm lint:*)",
      "WebFetch(docs.claude.com)"
    ],
    "deny": [
      "Bash(rm -rf:*)",
      "Read(./secrets/**)",
      "WebFetch(*)"
    ],
    "defaultMode": "default"
  },
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "echo \"[lint] would run on $CLAUDE_FILE_PATHS\""
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "python3 ../../pretooluse_guard.py"
          }
        ]
      }
    ]
  },
  "env": {
    "EXAMPLE_ONLY": "never put real secrets here"
  }
}
