{"agent":"claude","input":"Add a right-click context menu to this Electron app and open a pull request. Read package.json, electron.vite.config.ts, src/main/main.ts, src/main/menu.ts, src/main/preload.ts, src/renderer/App.tsx, src/__tests__/App.test.tsx, .erb/scripts/smoke-test.cjs and .github/workflows/test.yml first. Write src/main/context-menu.ts with a pure buildContextMenuTemplate(params, isDebug) and an attachContextMenu(window) that listens to context-menu on webContents and pops the built menu. Show cut, copy, paste and selectAll roles for editable fields with each enabled from params.editFlags, copy alone for a plain selection, Copy Link Address and Open Link in Browser through shell.openExternal for links, Copy Image through webContents.copyImageAt for images, and Inspect element only when isDebug. Remove the development-only context-menu listener from menu.ts so only one handler is registered, and call attachContextMenu from main.ts after the application menu is built. Do not change the preload or the renderer. Add src/__tests__/context-menu.test.ts mocking electron and covering each case and the disabled paste. Run npm run package, npm run lint, npm exec tsc -- --noEmit, npm test and the smoke test under xvfb-run, and paste the Jest output in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}