MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / debug

Function debug

packages/opencode-atomic-hooks/src/index.ts:80–86  ·  view source on GitHub ↗
(label: string, data?: unknown)

Source from the content-addressed store, hash-verified

78
79 // DEBUG: Separate debug log with full object inspection
80 const debug = (label: string, data?: unknown) => {
81 const ts = new Date().toISOString();
82 const body = data !== undefined ? `\n${inspect(data)}` : "";
83 try {
84 appendFileSync(debugFile, `${ts} [${label}]${body}\n---\n`);
85 } catch {}
86 };
87
88 const hook = async (
89 sessionID: string,

Callers 1

AtomicHooksPluginFunction · 0.85

Calls 1

inspectFunction · 0.70

Tested by

no test coverage detected