(options: {
readonly homeDir: string;
readonly version: string;
})
| 68 | } |
| 69 | |
| 70 | export function createKimiDeviceHeaders(options: { |
| 71 | readonly homeDir: string; |
| 72 | readonly version: string; |
| 73 | }): DeviceHeaders { |
| 74 | return { |
| 75 | 'X-Msh-Platform': KIMI_CODE_PLATFORM, |
| 76 | 'X-Msh-Version': requiredAsciiHeader(options.version, 'Kimi identity version'), |
| 77 | 'X-Msh-Device-Name': asciiHeader(hostname()), |
| 78 | 'X-Msh-Device-Model': asciiHeader(deviceModel()), |
| 79 | 'X-Msh-Os-Version': asciiHeader(release()), |
| 80 | 'X-Msh-Device-Id': createKimiDeviceId(options.homeDir), |
| 81 | }; |
| 82 | } |
| 83 | |
| 84 | export function createKimiUserAgent(options: { |
| 85 | readonly userAgentProduct: string; |
no test coverage detected