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 / pinned-variable-refusal / pinned-variable-refusal.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 12 days ago History
12 lines · 472 BRaw
1/**
2 * Why a plugin a person installed may not set or unset an environment
3 * variable their organization pins: the setting, then the rule.
4 *
5 * Said too when the policy cannot be read and every variable counts as
6 * pinned, so it does not say who set this one.
7 *
8 * @param name the variable, as the plugin named it
9 * @returns the refusal
10 */
11export const pinnedVariableRefusal = (name: string) =>
12 `env (managed): ${name} is not for plugins outside policy to change`