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

Function candidateGlobalPackageDirs

apps/kimi-code/src/cli/update/source.ts:106–117  ·  view source on GitHub ↗
(
  globalPrefix: string,
  platform: NodeJS.Platform,
)

Source from the content-addressed store, hash-verified

104}
105
106function candidateGlobalPackageDirs(
107 globalPrefix: string,
108 platform: NodeJS.Platform,
109): readonly string[] {
110 if (platform === 'win32') {
111 return [join(globalPrefix, 'node_modules', NPM_PACKAGE_NAME)];
112 }
113 return [
114 join(globalPrefix, 'lib', 'node_modules', NPM_PACKAGE_NAME),
115 join(globalPrefix, 'node_modules', NPM_PACKAGE_NAME),
116 ];
117}
118
119export function classifyInstallSource(
120 packageRoot: string,

Callers 1

classifyInstallSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected