(text)
| 118 | // invalid. renderSessionsSpawnCall emits strict JSON.stringify output, so a |
| 119 | // plain JSON.parse is correct and sufficient — no unquoted-key fixup needed. |
| 120 | function parseFirstSpawnCall(text) { |
| 121 | const raw = extractFirstSpawnPayload(text); |
| 122 | if (raw === null) return null; |
| 123 | try { |
| 124 | const obj = JSON.parse(raw); |
| 125 | return obj && typeof obj === 'object' ? obj : null; |
| 126 | } catch (_) { |
| 127 | return null; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | module.exports = { |
| 132 | clip, |
no test coverage detected