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

Function resolveFileCandidate

apps/kimi-code/scripts/native/assets.mjs:92–103  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

90}
91
92function resolveFileCandidate(path) {
93 if (existsSync(path)) return path;
94 for (const extension of jsExtensions) {
95 const candidate = `${path}${extension}`;
96 if (existsSync(candidate)) return candidate;
97 }
98 for (const entryName of runtimeEntryNames) {
99 const candidate = join(path, entryName);
100 if (existsSync(candidate)) return candidate;
101 }
102 return null;
103}
104
105function resolvePackageEntry(packageRoot, packageJson) {
106 const rawMain =

Callers 2

resolvePackageEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected