{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit|Write|ApplyEdit",
        "hooks": [
          {
            "type": "command",
            "command": "\"$QODER_PLUGIN_ROOT\"/bin/sprint-flow-guard.sh"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "\"$QODER_PLUGIN_ROOT\"/bin/xp-gate-check \"${TOOL_INPUT_FILE}\""
          }
        ]
      },
      {
        "matcher": ".*",
        "hooks": [
          {
            "type": "command",
            "command": "\"$QODER_PLUGIN_ROOT\"/bin/xp-gate-version-check.sh"
          }
        ]
      }
    ],
    "Stop": [
      {
        "matcher": ".*",
        "hooks": [
          {
            "type": "command",
            "command": "echo \"[XP-Gate] Session complete. Run 'xp-gate init' for full git hook integration.\""
          }
        ]
      }
    ]
  }
}
