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

Function hookOutput

hooks_src/stop-failure.js:19–31  ·  view source on GitHub ↗
(hookName, action, message, data = {})

Source from the content-addressed store, hash-verified

17const CITADEL_UI = process.env.CITADEL_UI === 'true';
18
19function hookOutput(hookName, action, message, data = {}) {
20 if (CITADEL_UI) {
21 process.stdout.write(JSON.stringify({
22 hook: hookName,
23 action,
24 message,
25 timestamp: new Date().toISOString(),
26 data,
27 }));
28 } else {
29 process.stdout.write(message);
30 }
31}
32
33function main() {
34 let input = '';

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected