{"agent":"claude","input":"Add request id logging to this Cloudflare Worker and open a pull request. Read wrangler.jsonc, package.json, tsconfig.json, worker-configuration.d.ts and src/index.ts first. Add src/request-id.ts with a pure function that returns the incoming x-request-id when it is at most 64 URL-safe characters and otherwise a fresh crypto.randomUUID(). In the request listener, set x-request-id on every response before writeHead and, on the response finish event, write one console.log of a JSON string with the request id, the cf-ray header, method, path, status and duration in milliseconds, so Workers Logs indexes the fields. Do not change the routes or their bodies and do not add a logging library. Add vitest with a test script and tests for the echoed, replaced and generated id cases. Run npm run check and the tests, then start wrangler dev and show the header and the log line for each route with and without an incoming id. Quote the outputs in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}