Skip to content

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.

TypeScript
453 B
Raw Blame
import type { Settings } from 'claude-code'

/**
 * Settings that carry this plugin's own `allowModsToOverrideDenyRules`
 * option with the value given, where managed settings hold it.
 *
 * @param value what the option is set to
 * @returns the settings
 */
export const overridePolicyOf = (value: unknown): Settings => ({
  pluginConfigs: {
    'cc-plugin-sec-default@builtin': {
      options: { allowModsToOverrideDenyRules: value },
    },
  },
})