({ filename, text, mime = 'text/plain;charset=utf-8' })
| 3544 | }; |
| 3545 | |
| 3546 | const downloadText = ({ filename, text, mime = 'text/plain;charset=utf-8' }) => { |
| 3547 | const blob = new Blob([String(text || '')], { type: mime }); |
| 3548 | const url = URL.createObjectURL(blob); |
| 3549 | const a = document.createElement('a'); |
| 3550 | a.href = url; |
| 3551 | a.download = filename; |
| 3552 | document.body.appendChild(a); |
| 3553 | a.click(); |
| 3554 | a.remove(); |
| 3555 | URL.revokeObjectURL(url); |
| 3556 | }; |
| 3557 | |
| 3558 | const buildMcpTemplateSnippets = ({ mcpUrl, token, folder, openAiModel }) => { |
| 3559 | const safeToken = token || 'PASTE_MCP_TOKEN'; |
no outgoing calls
no test coverage detected