()
| 39 | } |
| 40 | |
| 41 | export function getVersion(): string { |
| 42 | if (KIMI_BUILD_INFO.version !== undefined) { |
| 43 | return KIMI_BUILD_INFO.version; |
| 44 | } |
| 45 | const pkg = JSON.parse(readFileSync(getHostPackageJsonPath(), 'utf-8')) as { |
| 46 | version: string; |
| 47 | }; |
| 48 | return pkg.version; |
| 49 | } |
| 50 | |
| 51 | export function createKimiCodeHostIdentity(version = getVersion()): KimiHostIdentity { |
| 52 | return { |
no test coverage detected