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

Function debug

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

Source from the content-addressed store, hash-verified

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

Callers 1

AtomicHooksPluginFunction · 0.85

Calls 1

inspectFunction · 0.85

Tested by

no test coverage detected