{"agent":"claude","input":"Add security headers to this Cloudflare Worker and open a pull request. Read wrangler.json, package.json, tsconfig.json, src/index.ts, src/renderHtml.ts and the migrations directory first, and list every external host, inline style and script the HTML uses. Add src/securityHeaders.ts with a function that returns a copy of a Response with Content-Security-Policy built only from what the page loads (default-src 'none', the exact style and image hosts, base-uri 'none', form-action 'none', frame-ancestors 'none'), plus X-Content-Type-Options nosniff, Referrer-Policy strict-origin-when-cross-origin, a Permissions-Policy denying camera, microphone and geolocation, Strict-Transport-Security with a one-year max-age, and Cross-Origin-Opener-Policy same-origin. Wrap the handler's response in src/index.ts with it. Add vitest and @cloudflare/vitest-pool-workers, a vitest.config.ts pointing at wrangler.json, a test script, and test/index.test.ts that fetches the page through SELF and asserts each header and that every https host in renderHtml.ts appears in the CSP. Run tsc, vitest --run and wrangler dev with the seeded local D1, open the page in a browser and check the console for CSP violations, and paste the test output and curl -I headers in the pull request. Do not change wrangler.json, the migration or renderHtml.ts.","resources":[{"url":"https://github.com/your-org/your-app"}]}