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 / ceiling-notice.ts
15 lines · 657 BRaw
1import type { Args } from 'claude-code'
2
3/**
4 * What a person reads, once for each plugin in a session, when a plugin they
5 * installed answered over the ceiling their organization set on a tool.
6 *
7 * No option lifts it: an administrator changes the ceiling where it is set.
8 *
9 * @param plugin the plugin's name, or its batch's, as the trace names it
10 * @param e the question: the tool the call named and its ceiling
11 * @returns the line
12 */
13export const ceilingNotice = (plugin: string, e: Args<'tool.check'>) =>
14 `${plugin} tried to lift the limit your organization set on ${e.tool} ` +
15 `(${e.ceiling}); the limit holds over the plugins you install`