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 / policy / policy-source-variables.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 13 days ago History
24 lines · 908 BRaw
1/**
2 * The variables that move where policy and sign-in are read from, or how
3 * policy's tiers compose.
4 *
5 * The managed settings folder, the remote settings file and its mock, the
6 * opt-out of the administrator tiers' union, the configuration and
7 * credential folders, and the three that choose which server sign-in goes
8 * to. All nine are pinned on every build.
9 *
10 * Not pinned: proxy and certificate, credential, provider and home
11 * variables. A person sets the same ones in their own settings and shell,
12 * so a pin here would not close that road.
13 */
14export const POLICY_SOURCE_VARIABLES = [
15 'CLAUDE_CODE_MANAGED_SETTINGS_PATH',
16 'CLAUDE_CODE_REMOTE_SETTINGS_PATH',
17 'CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION',
18 'CLAUDE_CODE_MOCK_REMOTE_SETTINGS',
19 'CLAUDE_CONFIG_DIR',
20 'CLAUDE_SECURESTORAGE_CONFIG_DIR',
21 'USE_LOCAL_OAUTH',
22 'USE_STAGING_OAUTH',
23 'CLAUDE_LOCAL_OAUTH_API_BASE',
24] as const