Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonshotAI/kimi-code
/ getHostPackageRoot
Function
getHostPackageRoot
apps/kimi-code/src/cli/version.ts:37–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
export
function
getHostPackageRoot(): string {
38
return
dirname(getHostPackageJsonPath());
39
}
40
41
export
function
getVersion(): string {
42
if
(KIMI_BUILD_INFO.version !== undefined) {
Callers
2
version.test.ts
File · 0.90
resolveServerWebAssetsDir
Function · 0.90
Calls
1
getHostPackageJsonPath
Function · 0.85
Tested by
no test coverage detected