MCPcopy
hub / github.com/colbymchenry/codegraph / dbg

Function dbg

scripts/agent-eval/offload-eval-hook.mjs:23–23  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

21// log to count injections); off by default so the shipped hook writes nothing extra.
22const DBG = process.env.CG_FRONTLOAD_DEBUG;
23const dbg = (m) => { if (!DBG) return; try { appendFileSync(DBG, `[${new Date().toISOString()}] ${m}\n`); } catch { /* ignore */ } };
24
25let input = {};
26try { input = JSON.parse(readFileSync(0, 'utf8')); } catch (e) { dbg('stdin parse fail: ' + e.message); }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected