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

Function detectSystemFdPath

apps/kimi-code/src/utils/process/fd-detect.ts:57–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57function detectSystemFdPath(): string | null {
58 for (const name of CANDIDATES) {
59 try {
60 const result = spawnSync(name, ['--version'], { stdio: 'ignore' });
61 if (result.status === 0) return name;
62 } catch {
63 // ENOENT, EACCES, etc. — try next candidate.
64 }
65 }
66 return null;
67}
68
69function getManagedFdPath(): string | null {
70 const binaryPath = getManagedFdBinaryPath();

Callers 1

detectFdPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected