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

Function hookOutput

hooks_src/post-edit.js:34–46  ·  view source on GitHub ↗
(hookName, action, message, data = {})

Source from the content-addressed store, hash-verified

32const CITADEL_UI = process.env.CITADEL_UI === 'true';
33
34function hookOutput(hookName, action, message, data = {}) {
35 if (CITADEL_UI) {
36 process.stdout.write(JSON.stringify({
37 hook: hookName,
38 action,
39 message,
40 timestamp: new Date().toISOString(),
41 data,
42 }));
43 } else {
44 process.stdout.write(message);
45 }
46}
47
48// ── Main ─────────────────────────────────────────────────────────────────────
49

Callers 10

structuralLintFunction · 0.70
typeCheckFunction · 0.70
reportTypecheckNotRunFunction · 0.70
typecheckTypeScriptFunction · 0.70
typecheckPythonFunction · 0.70
typecheckGoFunction · 0.70
typecheckRustFunction · 0.70
performanceLintFunction · 0.70
dependencyPatternLintFunction · 0.70
designManifestLintFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected