Skip to content

feat(cursor): add native PowerShell hooks on Windows#617

Open
MfDevNet wants to merge 1 commit into
tirth8205:mainfrom
MfDevNet:feature/windows-powershell-hooks
Open

feat(cursor): add native PowerShell hooks on Windows#617
MfDevNet wants to merge 1 commit into
tirth8205:mainfrom
MfDevNet:feature/windows-powershell-hooks

Conversation

@MfDevNet

Copy link
Copy Markdown

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

uv run pytest tests/ --tb=short -q
uv run ruff check code_review_graph/
uv run mypy code_review_graph/ --ignore-missing-imports --no-strict-optional

Checklist

  • Tests added for new functionality
  • All tests pass: uv run pytest tests/ --tb=short -q
  • Linting passes: uv run ruff check code_review_graph/
  • Type checking passes: uv run mypy code_review_graph/ --ignore-missing-imports --no-strict-optional
  • Lines are at most 100 characters
  • Docs updated where behavior changed (README, docs/, docstrings)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant