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

Function getVersion

apps/kimi-code/src/cli/version.ts:41–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41export 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
51export function createKimiCodeHostIdentity(version = getVersion()): KimiHostIdentity {
52 return {

Callers 7

version.test.tsFile · 0.90
mainFunction · 0.90
registerAcpCommandFunction · 0.90
runServerInProcessFunction · 0.90
formatReadyBannerFunction · 0.90

Calls 1

getHostPackageJsonPathFunction · 0.85

Tested by

no test coverage detected