MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getHostPlatformForAnalytics

Function getHostPlatformForAnalytics

src/utils/env.ts:341–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected