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-ask.ts
11 lines · 348 BRaw
1import type { EventResult } from 'claude-code'
2
3/**
4 * The engine's verdict for a call of a tool under an organization's ask
5 * ceiling that no rule decided: the ask, naming the ceiling.
6 */
7export const CAPPED_ASK: EventResult<'tool.check'> = {
8 decision: 'ask',
9 reason: 'Your organization requires approval for this tool',
10 ceiling: 'ask',
11}