feat(cursor): add native PowerShell hooks on Windows#617
Conversation
Detect the host OS during Cursor hook installation and generate .ps1 scripts with PowerShell-native JSON output on Windows, while keeping the existing Bash hooks unchanged on Linux and macOS. hooks.json now invokes PowerShell with -ExecutionPolicy Bypass on Windows.
|
Thanks — native PowerShell wrappers are the right direction for Cursor on Windows, but head b227de1 needs changes before review can pass:
Please update this existing PR when those are ready. This is Cursor-specific and is not superseded by the separate Codex hook work in #626. |
|
Thanks again, MfDevNet. Final disposition: the maintained replacement, draft PR #651, carries the native PowerShell Cursor-hook intent and credits your contribution. Its current head is This source is not being merged directly because the PowerShell Closing only this source PR as superseded; PR #651 remains open for that validation. |
Detect the host OS during Cursor hook installation and generate .ps1 scripts with PowerShell-native JSON output on Windows, while keeping the existing Bash hooks unchanged on Linux and macOS. hooks.json now invokes PowerShell with -ExecutionPolicy Bypass on Windows.
Pull Request
Linked issue
Closes #
What & why
How it was tested
Checklist
uv run pytest tests/ --tb=short -quv run ruff check code_review_graph/uv run mypy code_review_graph/ --ignore-missing-imports --no-strict-optionaldocs/, docstrings)