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

Function getFdAssetName

apps/kimi-code/src/utils/process/fd-detect.ts:84–101  ·  view source on GitHub ↗
(plat = platform(), architecture = arch())

Source from the content-addressed store, hash-verified

82}
83
84export function getFdAssetName(plat = platform(), architecture = arch()): string | null {
85 if (plat === 'darwin') {
86 if (architecture === 'arm64') return 'fd-v10.4.2-aarch64-apple-darwin.tar.gz';
87 if (architecture === 'x64') return 'fd-v10.3.0-x86_64-apple-darwin.tar.gz';
88 return null;
89 }
90 if (plat === 'linux') {
91 if (architecture === 'arm64') return 'fd-v10.4.2-aarch64-unknown-linux-gnu.tar.gz';
92 if (architecture === 'x64') return 'fd-v10.4.2-x86_64-unknown-linux-musl.tar.gz';
93 return null;
94 }
95 if (plat === 'win32') {
96 if (architecture === 'arm64') return 'fd-v10.4.2-aarch64-pc-windows-msvc.zip';
97 if (architecture === 'x64') return 'fd-v10.4.2-x86_64-pc-windows-msvc.zip';
98 return null;
99 }
100 return null;
101}
102
103async function downloadFd(): Promise<string | null> {
104 const assetName = getFdAssetName();

Callers 2

fd-detect.test.tsFile · 0.90
downloadFdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected