(entry)
| 99 | // Was zwischen Seite und Modell-Worker hin und her geht: der echte Prompt. |
| 100 | window.__probeWorker = []; |
| 101 | const keep = (entry) => { |
| 102 | window.__probeWorker.push(entry); |
| 103 | if (window.__probeWorker.length > 4000) window.__probeWorker.splice(0, 1000); |
| 104 | }; |
| 105 | const safe = (value) => { |
| 106 | try { return JSON.parse(JSON.stringify(value, (key, item) => (typeof item === 'string' && item.length > 20000 ? `${item.slice(0, 20000)}...` : item))); } |
| 107 | catch { return String(value); } |
no test coverage detected