MCPcopy Create free account
hub / github.com/EvoMap/evolver / parseFirstSpawnCall

Function parseFirstSpawnCall

src/gep/bridge.js:120–129  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

118// invalid. renderSessionsSpawnCall emits strict JSON.stringify output, so a
119// plain JSON.parse is correct and sufficient — no unquoted-key fixup needed.
120function 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
131module.exports = {
132 clip,

Callers 1

bridge.test.jsFile · 0.85

Calls 2

extractFirstSpawnPayloadFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected