MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getPrivacyLevel

Function getPrivacyLevel

source code/utils/privacyLevel.ts:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20type PrivacyLevel = 'default' | 'no-telemetry' | 'essential-traffic'
21
22export function getPrivacyLevel(): PrivacyLevel {
23 if (process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) {
24 return 'essential-traffic'
25 }
26 if (process.env.DISABLE_TELEMETRY) {
27 return 'no-telemetry'
28 }
29 return 'default'
30}
31
32/**
33 * 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