{"agent":"claude","input":"Add CSRF protection to this Hono Worker and open a pull request. Read package.json, wrangler.jsonc, vite.config.ts, api/index.ts, api/TodoAPI.ts, api/TodoService.ts and src/Todos.tsx first. Use the csrf middleware from hono/csrf, no new runtime dependency. Register it on /api/* after cors() and before the TodoAPI route, with origin as a function that matches the request origin against a comma-separated ALLOWED_ORIGINS var; add ALLOWED_ORIGINS under vars in wrangler.jsonc with the local dev origin, run cf-typegen so the binding is typed, and type the root app with Bindings. Do not change the cors() call, the asset mount or the Stytch handlers; note in the pull request what the wildcard cors() allows. Add vitest as a dev dependency with a test script and write api/index.test.ts using app.request with an env object: a form-encoded POST /api/todos from a foreign origin answers 403, one with no Origin and no Sec-Fetch-Site answers 403, one from an allowed origin is not answered 403 by the middleware, a GET /api/todos from a foreign origin is not blocked, and GET / still reaches the assets. Run npm test, npm run build and npx wrangler deploy --dry-run and paste the output in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}