name: Check Tools Consistency

# Runs on every PR (no path filter on purpose): a new or renamed tool must trip
# this check even when nobody touched tools.json or the install/convert scripts.
on:
  pull_request:
  push:
    branches: [main]

jobs:
  check-tools:
    name: tools.json is the single source of truth
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Validate tool set
        run: |
          chmod +x scripts/check-tools.sh
          ./scripts/check-tools.sh

      - name: Validate generated Hermes plugin
        run: python3 scripts/check-hermes-plugin.py
