{"agent":"claude","input":"Add structured logging to this Hono Worker and open a pull request. Read package.json, wrangler.toml, tsconfig.json, vitest.config.ts, src/index.ts and src/index.test.ts first. Add src/log.ts with one middleware that, after next(), calls console.log with a single object: level, method, path, status, durationMs, userAgent and colo when c.req.raw.cf is present. Replace the existing X-Response-Time timing middleware with it but keep setting that header. Change app.onError to console.error one object with level, message, stack, method and path, then the same 500 response. Add [observability] enabled = true and head_sampling_rate = 1 to wrangler.toml; check npx wrangler --version is at least 3.78.6 and raise the devDependency floor if not. Do not add a logging library. Add Vitest cases that spy on console.log and console.error: GET /entry/42 logs one object with method, path, status 200 and a numeric durationMs; GET /error logs one error object with message and stack and still answers 500; POST /api/posts logs status 201; X-Response-Time is still set. Run npm test and npx tsc --noEmit and paste the output. Do not change routes, the basicAuth credentials or the compatibility_date.","resources":[{"url":"https://github.com/your-org/your-app"}]}