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 / managed-mods-only-refusal / managed-mods-only-refusal.ts
10 lines · 415 BRaw
1/**
2 * What a person reads when managed policy keeps a mod of theirs out: the
3 * rule, the option that set it, and the mod that was not loaded.
4 *
5 * @param name the refused plugin's name, as its own manifest gives it
6 * @returns the refusal line
7 */
8export const managedModsOnlyRefusal = (name: string) =>
9 "mods are limited to your organization's by policy " +
10 `(allowManagedModsOnly); ${name} was not loaded`