Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s
6 lines
264 B
JavaScript
6 lines
264 B
JavaScript
// Emit a PreToolUse "block" decision on stdout — the channel Claude Code reads to
|
|
// deny a tool call while surfacing `reason` to the agent.
|
|
export function decisionBlock(reason) {
|
|
process.stdout.write(JSON.stringify({ decision: "block", reason }) + "\n");
|
|
}
|