- Add scripts/check-license-headers.mjs — walks src/**/*.{ts,tsx},
detects missing headers, exits 1 in CI; --fix mode auto-prepends
- Add .githooks/pre-commit — runs pnpm lint:license before every commit
- Register .githooks via git config core.hooksPath in package.json prepare
(runs automatically on pnpm install, zero extra dependencies)
- Update pnpm lint to include license check — enforced in every CI pipeline
- Add pnpm lint:license and pnpm lint:license:fix convenience scripts
- Apply Apache 2.0 header to all 227 existing src/ files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>