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 / held-notice.ts
15 lines · 682 BRaw
1/**
2 * What a person reads, once for each plugin in a session, when a plugin they
3 * installed answered allow or ask over a deny rule in their settings.
4 *
5 * It names the option an administrator sets to let such plugins override.
6 *
7 * @param plugin the plugin's name, or its batch's, as the trace names it
8 * @param tool the tool the call named
9 * @param rule the deny rule that decided, as written
10 * @returns the line
11 */
12export const heldNotice = (plugin: string, tool: string, rule: string) =>
13 `${plugin} tried to lift a deny rule in your settings from a ${tool} ` +
14 `call (${rule}); the deny rule holds over the plugins you install ` +
15 '(allowModsToOverrideDenyRules)'