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

Function getManagedFdPath

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

Source from the content-addressed store, hash-verified

67}
68
69function getManagedFdPath(): string | null {
70 const binaryPath = getManagedFdBinaryPath();
71 if (!existsSync(binaryPath)) return null;
72 try {
73 const result = spawnSync(binaryPath, ['--version'], { stdio: 'ignore' });
74 return result.status === 0 ? binaryPath : null;
75 } catch {
76 return null;
77 }
78}
79
80function getManagedFdBinaryPath(): string {
81 return join(getBinDir(), platform() === 'win32' ? 'fd.exe' : 'fd');

Callers 1

detectFdPathFunction · 0.85

Calls 1

getManagedFdBinaryPathFunction · 0.85

Tested by

no test coverage detected