spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / tests / fixtures / tool-check / plain-deny.ts
10 lines · 288 BRaw
1import type { EventResult } from 'claude-code'
2
3/**
4 * A deny no settings rule decided (a tool's own check, a setting that is no
5 * rule, a plugin's answer): it names none.
6 */
7export const PLAIN_DENY: EventResult<'tool.check'> = {
8 decision: 'deny',
9 reason: 'echo is refused here',
10}