test:
    uv run pytest tests/ -q

lint:
    uv run ruff check src/

format:
    uv run ruff format src/ tests/

registry:
    uv run python scripts/generate_registry.py

check: lint test

# Build the JS library and launch the browser demo at http://127.0.0.1:8000
demo:
    #!/usr/bin/env bash
    set -euo pipefail
    (cd js && npm install && npm run build)
    (cd demo && npm install && echo "→ open http://127.0.0.1:8000" && npm run dev)
