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

Function getHostPlatformForAnalytics

source code/utils/env.ts:343–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

341 * process.platform reports the container OS but the actual host platform differs.
342 */
343export function getHostPlatformForAnalytics(): Platform {
344 const override = process.env.CLAUDE_CODE_HOST_PLATFORM
345 if (override === 'win32' || override === 'darwin' || override === 'linux') {
346 return override
347 }
348 return env.platform
349}

Callers 3

logUnaryPermissionEventFunction · 0.85
user.tsFile · 0.85
metadata.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected