# Example commands use repo-relative paths; copy this pack into your repo root or adjust paths.
hooks:
  - id: guard-risky-bash
    event: tool.before.bash
    actions:
      - bash: 'node ./examples/pre-tool-developer-guards/pre-tool-policy.mjs'

  - id: guard-protected-write
    event: tool.before.write
    actions:
      - bash: 'node ./examples/pre-tool-developer-guards/pre-tool-policy.mjs'

  - id: guard-protected-edit
    event: tool.before.edit
    actions:
      - bash: 'node ./examples/pre-tool-developer-guards/pre-tool-policy.mjs'

  - id: guard-package-install
    event: tool.before.bash
    actions:
      - bash: 'node ./examples/pre-tool-developer-guards/pre-tool-policy.mjs --package-install-only'
