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 / hooks / held-verdict / verdicts / ranking / ceiling-verdict / ceiling-verdict.ts
11 lines · 461 BRaw
1/**
2 * The verdict a ceiling holds a call at: the ceiling itself when it is one
3 * of the three verdicts, else a deny.
4 *
5 * So a ceiling this plugin does not know lifts nothing: it fails closed.
6 *
7 * @param ceiling the question's `ceiling`, as the engine names it
8 * @returns the most permissive verdict within the ceiling
9 */
10export const ceilingVerdict = (ceiling: string) =>
11 (['allow', 'ask', 'deny'] as const).find(known => known === ceiling) ?? 'deny'