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

Function hookOutput

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

Source from the content-addressed store, hash-verified

26const CITADEL_UI = process.env.CITADEL_UI === 'true';
27
28function hookOutput(hookName, action, message, data = {}) {
29 if (CITADEL_UI) {
30 process.stdout.write(JSON.stringify({
31 hook: hookName,
32 action,
33 message,
34 timestamp: new Date().toISOString(),
35 data,
36 }));
37 } else {
38 process.stdout.write(message);
39 }
40}
41
42// Directories excluded from organization enforcement
43const EXCLUDED_PREFIXES = [

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected