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 / rule-deny.ts
11 lines · 342 BRaw
1import type { EventResult } from 'claude-code'
2
3/**
4 * The engine's verdict when a deny rule in some settings file matched the
5 * call: the deny, its sentence, and the rule as written.
6 */
7export const RULE_DENY: EventResult<'tool.check'> = {
8 decision: 'deny',
9 reason: 'Permission to use Bash has been denied.',
10 rule: 'Bash(echo *)',
11}