MCPcopy
hub / github.com/codeaashu/claude-code / getPrivacyLevel

Function getPrivacyLevel

src/utils/privacyLevel.ts:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18type PrivacyLevel = 'default' | 'no-telemetry' | 'essential-traffic'
19
20export function getPrivacyLevel(): PrivacyLevel {
21 if (process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) {
22 return 'essential-traffic'
23 }
24 if (process.env.DISABLE_TELEMETRY) {
25 return 'no-telemetry'
26 }
27 return 'default'
28}
29
30/**
31 * True when all nonessential network traffic should be suppressed.

Callers 2

isEssentialTrafficOnlyFunction · 0.85
isTelemetryDisabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected