MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / deviceModel

Function deviceModel

packages/oauth/src/identity.ts:149–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149function deviceModel(): string {
150 const os = type();
151 const version = release();
152 const osArch = arch();
153 if (os === 'Darwin') return `macOS ${macOsProductVersion() ?? version} ${osArch}`;
154 if (os === 'Windows_NT') return `Windows ${version} ${osArch}`;
155 return `${os} ${version} ${osArch}`.trim();
156}
157
158function macOsProductVersion(): string | undefined {
159 try {

Callers 1

createKimiDeviceHeadersFunction · 0.70

Calls 2

macOsProductVersionFunction · 0.85
releaseFunction · 0.50

Tested by

no test coverage detected