Skip to content

[Windows port] 6/8: Convert the hook scripts to Python #13

Description

Part of #7. Phase 6 of 8.

Replace the two bash hook scripts with Python bodies and switch the hook templates to an OS-aware launcher (the runner selects bash or powershell per OS), so the hooks no longer hard-depend on bash. The bash fail-open machinery is retired in favor of a simple Python guard.

Changes: add Python check-init and pre-tool hooks, update the Copilot and Claude hook templates, port the hook tests, remove the bash hooks and the bash-specific lint.
Acceptance: hook tests pass on both OSes; a failing hook never blocks a tool call.
Depends on: Phase 5.

Drafted with Copilot 🤖

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requestwindows-portCross-platform Windows/PowerShell port: convert shell scripts to Python (umbrella #7)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions