[CmdletBinding()] param() # Best effort: without Python 3.11+ this hook is a silent no-op; doctor reports that case. try { $ErrorActionPreference = 'Stop' . (Join-Path $PSScriptRoot 'Resolve-Python.ps1') $python = Get-PythonCommand if ($python) { & $python.Path @($python.Arguments) (Join-Path $PSScriptRoot 'agent-guards.py') search 2>$null } } catch {} exit 0