{"agent":"claude","input":"Add a Shopify Functions discount extension to this app in TypeScript. Read shopify.app.toml, package.json, app/shopify.server.ts, the extensions directory, .github/workflows/ci.yml and AGENTS.md first. Try shopify app generate extension --template discount --flavor typescript; if the CLI cannot sign in, create the same files by hand from Shopify's discount function template: shopify.extension.toml with the two discount targets, package.json with typegen, build, preview and test scripts, schema.graphql, the input queries, src/index.ts and the two run modules. Implement a volume discount: a percentage off each cart line whose quantity reaches a threshold, both read from a metafield on the discount; return no operations for classes the discount does not have. Write Vitest tests for under-threshold, at-threshold, missing metafield and shipping-only cases. Run npm install, shopify app function typegen, the tests and shopify app function build, keep the output, and add the extension's tests to ci.yml. Open a pull request that also lists the discountAutomaticAppCreate mutation and the metafield definition the reader must create.","resources":[{"url":"https://github.com/your-org/your-app"}]}