{"agent":"claude","input":"Add crash reporting to this Electron app. Read package.json, src/main/main.ts, src/main/updates.ts, src/main/preload.ts, src/main/util.ts, src/renderer/index.tsx, src/renderer/index.html, src/renderer/preload.d.ts, src/__tests__/updates.test.ts, jest.config.js, electron.vite.config.ts, .erb/scripts/smoke-test.cjs and .github/workflows/test.yml first. Add src/main/crashes.ts with a startCrashReporting function that calls crashReporter.start before app.whenReady: submitURL from an environment variable, uploadToServer only when the URL is set and app.isPackaged, rateLimit true, globalExtra with the app version; guard against a second start like updates.ts does. Add uncaughtException and unhandledRejection handlers in the main process that log through electron-log and call crashReporter.addExtraParameter. Add a typed report-error channel to the Channels union in preload.ts, and window error and unhandledrejection listeners in the renderer that send through it; keep the Content-Security-Policy meta tag unchanged. Write src/__tests__/crashes.test.ts in the style of updates.test.ts covering no URL, a URL when packaged, and a repeated call. Run npm run lint, npm exec tsc -- --noEmit, npm test, npm run package and the smoke test, then open a pull request with the output and a README section on configuring the submit URL.","resources":[{"url":"https://github.com/your-org/your-app"}]}