MCPcopy Create free account
hub / github.com/SethGammon/Citadel / parseJson

Function parseJson

scripts/codex-install.js:32–40  ·  view source on GitHub ↗
(stdout)

Source from the content-addressed store, hash-verified

30}
31
32function parseJson(stdout) {
33 const text = String(stdout || '').trim();
34 if (!text.startsWith('{') && !text.startsWith('[')) return null;
35 try {
36 return JSON.parse(text);
37 } catch {
38 return null;
39 }
40}
41
42function runStep({ name, command, args, cwd, dryRun, timeout = 60000, required = true }) {
43 const rendered = display(command, args);

Callers 1

runStepFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected