{"agent":"codex","input":"The GitHub Actions workflow on this branch failed; the workflow_run event is at the end of this prompt. Read the failed job's log with gh run view <run id> --log-failed, name the job and step that failed, and quote the first real error (a TypeScript error from next build, a Prettier diff, or a fetch failure from lib/shopify). Read the workflow file to see which package.json scripts it runs and on which Node. Install with pnpm from the lockfile, set the SHOPIFY_* variables from .env.example to placeholder values if the step needs them to start, and reproduce the failure with the same script. Fix the cause in the code (fix a type error against lib/shopify/types.ts and the fragments rather than with a cast; change a test or config only if it is wrong, and say so), then run pnpm prettier:check and pnpm build until both pass, and open a pull request against the failing branch that quotes the error it fixed. If the failure is a missing secret or a Shopify outage rather than code, say so and open no pull request.\n\nEvent: <workflow_run payload>","resources":[{"url":"https://github.com/your-org/your-app"}]}