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
461 B
Raw Blame
import type { Settings } from 'claude-code'

/**
 * Whether the policy read is one the person could have written: the host
 * marks it where no administrator's document composes it.
 *
 * Such a policy may hold; no grant is taken from it.
 *
 * @param policy the managed settings, as `$.settings.read` answers them
 * @returns true for a policy so marked
 */
export const isPersonWritable = (policy: Settings): boolean =>
  policy.personWritablePolicy === true