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 / mods-policy-of.ts
16 lines · 481 BRaw
1import type { Settings } from 'claude-code'
2
3/**
4 * Managed settings holding `allowManagedModsOnly` at the value given, where
5 * an administrator writes it: the built-in's own `pluginConfigs` entry.
6 *
7 * @param value what the option is set to
8 * @returns the managed settings
9 */
10export const modsPolicyOf = (value: boolean | number | string): Settings => ({
11 pluginConfigs: {
12 'cc-plugin-sec-default@builtin': {
13 options: { allowManagedModsOnly: value },
14 },
15 },
16})