# Spurvik EU AI Act Local Pre-Commit Guardrails (https://spurvik.com)
# Save as `.pre-commit-config.yaml` and activate:
#   curl -fsSL https://spurvik.com/r/pre-commit-config.yaml -o .pre-commit-config.yaml
#   pre-commit install
#
# Both default hooks run 100% locally with 0 network calls and 0 source bytes transmitted:
# - `spurvik-audit`: blocks commits introducing unwrapped OpenAI, Anthropic, Gemini, Mistral,
#   Vercel AI SDK, LangChain, or PydanticAI model calls (`file:line` only, GDPR Art. 5(1)(c)).
# - `spurvik-gate-test`: runs the 6-vector Art. 14 cryptographic human-oversight self-test.
#
# White-label badge + 90d Frankfurt vault + Slack/Teams approval queue (Pro EUR 19/mo or EUR 190/yr):
#   https://console.spurvik.com/signup?plan=pro
# Team 12-mo retention + Annex IV Technical Documentation (EUR 79/mo or EUR 790/yr):
#   https://console.spurvik.com/signup?plan=team
# 24h Done-For-You Engineer Setup (EUR 199 once, incl. 1 yr Pro):
#   https://console.spurvik.com/signup?plan=concierge

repos:
  - repo: https://github.com/spurvik/spurvik
    rev: v1
    hooks:
      - id: spurvik-audit
      - id: spurvik-gate-test
      # Optional ahead of 2 December 2026 Art. 50(2): verify live hero image C2PA JUMBF manifest
      # - id: spurvik-c2pa-check
      #   args: ["https://yourdomain.eu/hero.webp", "--fail-on-missing"]
