{"agent":"claude","input":"Add replay tests to the Temporal workflows in this TypeScript project. Read package.json, .nvmrc, tsconfig.json, .eslintrc.js, src/workflows.ts, src/activities.ts, src/banking-client.ts, src/shared.ts and src/mocha/workflows.test.ts first. Write src/mocha/record-histories.ts that runs moneyTransfer in a TestWorkflowEnvironment for the success path with stubbed activities and for the deposit-failure refund path with the real activities, fetches each history with fetchHistory and writes it as JSON under src/mocha/histories, and commit those files. Write src/mocha/replay.test.ts that loads every history with historyFromJSON and replays it with Worker.runReplayHistory against src/workflows.ts, failing on DeterminismViolationError. Add test:replay and record-histories scripts. Prove the test catches a change by temporarily reordering the withdraw and deposit calls, quoting the failure, and reverting. Run npm test, npm run lint and npm run build, and open a pull request quoting the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}