{"agent":"claude","input":"Add security headers to this chi service. Read api/api.go, api/server.go, cmd/root.go, cmd/serve.go, .env.example, auth/pwdless/api_test.go, routes.md and .github/workflows/test.yml first. Write api/headers.go with a securityHeaders middleware that sets X-Content-Type-Options nosniff, X-Frame-Options DENY, Referrer-Policy strict-origin-when-cross-origin, a Permissions-Policy that denies camera, microphone and geolocation, Cross-Origin-Opener-Policy same-origin, and Content-Security-Policy default-src 'none'; frame-ancestors 'none' for the JSON routes. Set Strict-Transport-Security only when the request came over TLS (r.TLS or X-Forwarded-Proto https) and a new viper key enable_hsts is true. Register it right after Recoverer. Put the /* SPA route in its own group whose policy comes from a csp_spa viper key and is set only when non-empty. Add ENABLE_HSTS and CSP_SPA to .env.example. Write api/headers_test.go with httptest covering every header, HSTS absent on plain HTTP and present behind X-Forwarded-Proto with enable_hsts set, and the SPA group's separate policy. Regenerate routes.md with the gendoc command, run go vet ./... and go test -v ./..., and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}