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

Function blockOutput

hooks_src/protect-files.js:67–70  ·  view source on GitHub ↗
(hookName, action, message, data = {})

Source from the content-addressed store, hash-verified

65// CITADEL_UI JSON consumers, and mirror the human-readable reason to stderr
66// because some runtimes only surface stderr for blocking hooks.
67function blockOutput(hookName, action, message, data = {}) {
68 hookOutput(hookName, action, message, data);
69 process.stderr.write(message.endsWith('\n') ? message : message + '\n');
70}
71
72function main() {
73 let input = '';

Callers 2

mainFunction · 0.85
runFunction · 0.85

Calls 1

hookOutputFunction · 0.70

Tested by

no test coverage detected