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 / tests / fixtures / tool-check / override-policy-of.ts
16 lines · 453 BRaw
1import type { Settings } from 'claude-code'
2
3/**
4 * Settings that carry this plugin's own `allowModsToOverrideDenyRules`
5 * option with the value given, where managed settings hold it.
6 *
7 * @param value what the option is set to
8 * @returns the settings
9 */
10export const overridePolicyOf = (value: unknown): Settings => ({
11 pluginConfigs: {
12 'cc-plugin-sec-default@builtin': {
13 options: { allowModsToOverrideDenyRules: value },
14 },
15 },
16})