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 / capped-rule-deny.ts
12 lines · 344 BRaw
1import type { EventResult } from 'claude-code'
2
3import { RULE_DENY } from './rule-deny.js'
4
5/**
6 * The engine's verdict when a deny rule matched a call of a tool under an
7 * organization's ask ceiling: the rule's deny, naming the ceiling too.
8 */
9export const CAPPED_RULE_DENY: EventResult<'tool.check'> = {
10 ...RULE_DENY,
11 ceiling: 'ask',
12}