()
| 18 | type PrivacyLevel = 'default' | 'no-telemetry' | 'essential-traffic' |
| 19 | |
| 20 | export 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. |
no outgoing calls
no test coverage detected