[devtool] copy decoded info of error details (#81735)
Change the copy button's content from the original error stack trace to a prompt template with error details from the error page and ask AI to fix it. You can copy it for either bug reporting or asking AI agent to explain/fix the errors for you.
### Example content
A runtime error prompt
```
Fix this error in Next.js app:
## Error Type
Runtime Error
## Error Message
Error on client
at Page (app/runtime-error/page.tsx:5:11)
## Code Frame
3 | export default function Page() {
4 | if (typeof window !== 'undefined') {
> 5 | throw new Error('Error on client')
| ^
6 | }
7 | return <p>page</p>
8 | }
Next.js version: 15.4.2-canary.3 (Webpack)
Explain what's wrong and fix it.
```
### Recordings
| build error | runtime error |
|:--|:--|
| <video src="https://github.com/user-attachments/assets/f31c935e-797c-48c7-8e80-5c1bdcde7c5c"> | <video src="https://github.com/user-attachments/assets/15987538-af32-4a32-90e7-1bbf08f1d57b"> |