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 / telemetry / hooks / environment / environment.ts
23 lines · 959 BRaw
1/**
2 * What the plugin reads of the environment before each batch: the
3 * build's user type and every switch that turns the CLI's analytics off.
4 *
5 * Each field is the variable's value as `$.env.get` answers it, undefined
6 * when unset; is-analytics-off/ decides what they mean together.
7 */
8export type Environment = {
9 readonly userType: string | undefined
10 readonly nodeEnv: string | undefined
11 readonly disableTelemetry: string | undefined
12 readonly disableNonessentialTraffic: string | undefined
13 readonly doNotTrack: string | undefined
14 readonly customOauthUrl: string | undefined
15 readonly useGateway: string | undefined
16 readonly providerManagedByHost: string | undefined
17 readonly useBedrock: string | undefined
18 readonly useVertex: string | undefined
19 readonly useFoundry: string | undefined
20 readonly useAnthropicAws: string | undefined
21 readonly useAnthropicGoogleCloud: string | undefined
22 readonly useMantle: string | undefined
23}