{"agent":"claude","input":"Add staging and production environments to this Cloudflare Worker. Read wrangler.json (or wrangler.jsonc/toml), package.json, src/*, migrations/*, worker-configuration.d.ts and the README first. Add env.staging and env.production to the Wrangler config, each with its own d1_databases binding named DB (staging gets a new database name and a placeholder database_id; production keeps the existing database) and a vars.ENVIRONMENT value, leaving the top-level config as the local default. Add deploy:staging, deploy:production, migrate:staging and migrate:production scripts, and make the check script run wrangler deploy --dry-run for the default, staging and production. Read env.ENVIRONMENT in the Worker and show it in the rendered page without changing the existing heading. Regenerate worker-configuration.d.ts with wrangler types. Document in the README how to create the staging database with wrangler d1 create and paste its id. Run tsc and the three dry runs, do not deploy, and open a pull request listing the files, the environment table and the dry-run output.","resources":[{"url":"https://github.com/your-org/your-app"}]}