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

Function hookOutput

hooks_src/intake-scanner.js:16–28  ·  view source on GitHub ↗
(hookName, action, message, data = {})

Source from the content-addressed store, hash-verified

14const CITADEL_UI = process.env.CITADEL_UI === 'true';
15
16function hookOutput(hookName, action, message, data = {}) {
17 if (CITADEL_UI) {
18 process.stdout.write(JSON.stringify({
19 hook: hookName,
20 action,
21 message,
22 timestamp: new Date().toISOString(),
23 data,
24 }));
25 } else {
26 process.stdout.write(message);
27 }
28}
29
30const PROJECT_ROOT = health.PROJECT_ROOT;
31const INTAKE_DIR = path.join(PROJECT_ROOT, '.planning', 'intake');

Callers 2

mainFunction · 0.70
runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected