{"agent":"claude","input":"Add activity heartbeats to this Temporal TypeScript project. Read src/workflows.ts, src/activities.ts, src/banking-client.ts, src/worker.ts, the Mocha tests, package.json and .eslintrc.js first, and note the retry policy and timeouts in force. In each activity call heartbeat with a step detail before and after the bank call, pass the activity's cancellation signal into the banking client and make the mock honour it, and on retry read heartbeatDetails so a step already recorded returns its transaction id instead of charging again. Add a heartbeatTimeout to the activity options that is well under the start-to-close timeout and explain the value. Extend the activity tests with MockActivityEnvironment to assert the heartbeat sequence, the resume-from-details path and cancellation, and add a time-skipping workflow test where a deposit stub that never heartbeats is retried after a heartbeat timeout. Run lint, build and the test suite and open a pull request that explains the timeout chosen and what each test proves.","resources":[{"url":"https://github.com/your-org/your-app"}]}