@inference/fast 0.0.56 → 0.0.58-beta.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/fast.cjs +5 -3
- package/package.json +9 -7
package/bin/fast.cjs
CHANGED
|
@@ -11,22 +11,24 @@ const PLATFORM_PACKAGES = {
|
|
|
11
11
|
darwin_x64: "@inference/fast-darwin-x64",
|
|
12
12
|
linux_x64: "@inference/fast-linux-x64",
|
|
13
13
|
linux_arm64: "@inference/fast-linux-arm64",
|
|
14
|
+
win32_x64: "@inference/fast-win32-x64",
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
function getBinaryPath() {
|
|
17
18
|
const platformKey = `${process.platform}_${process.arch}`;
|
|
18
19
|
const packageName = PLATFORM_PACKAGES[platformKey];
|
|
20
|
+
const binaryName = process.platform === "win32" ? "fast.exe" : "fast";
|
|
19
21
|
|
|
20
22
|
if (!packageName) {
|
|
21
23
|
console.error(
|
|
22
24
|
`Unsupported platform: ${process.platform} ${process.arch}\n` +
|
|
23
|
-
"@inference/fast supports macOS and Linux on arm64 and x64.",
|
|
25
|
+
"@inference/fast supports macOS and Linux on arm64 and x64, and Windows on x64.",
|
|
24
26
|
);
|
|
25
27
|
process.exit(1);
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
try {
|
|
29
|
-
return require.resolve(`${packageName}/bin
|
|
31
|
+
return require.resolve(`${packageName}/bin/${binaryName}`);
|
|
30
32
|
} catch {}
|
|
31
33
|
|
|
32
34
|
let directory = __dirname;
|
|
@@ -36,7 +38,7 @@ function getBinaryPath() {
|
|
|
36
38
|
"node_modules",
|
|
37
39
|
packageName,
|
|
38
40
|
"bin",
|
|
39
|
-
|
|
41
|
+
binaryName,
|
|
40
42
|
);
|
|
41
43
|
if (existsSync(candidate)) return candidate;
|
|
42
44
|
directory = path.dirname(directory);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inference/fast",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58-beta.115",
|
|
4
4
|
"description": "Connect coding agents to fast Inference.net models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
"pi"
|
|
25
25
|
],
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@inference/fast-darwin-arm64": "0.0.
|
|
28
|
-
"@inference/fast-darwin-x64": "0.0.
|
|
29
|
-
"@inference/fast-linux-x64": "0.0.
|
|
30
|
-
"@inference/fast-linux-arm64": "0.0.
|
|
27
|
+
"@inference/fast-darwin-arm64": "0.0.58-beta.115",
|
|
28
|
+
"@inference/fast-darwin-x64": "0.0.58-beta.115",
|
|
29
|
+
"@inference/fast-linux-x64": "0.0.58-beta.115",
|
|
30
|
+
"@inference/fast-linux-arm64": "0.0.58-beta.115",
|
|
31
|
+
"@inference/fast-win32-x64": "0.0.58-beta.115"
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
33
34
|
"build": "bun run clean:bin && bun run build:cli",
|
|
@@ -38,10 +39,11 @@
|
|
|
38
39
|
"build:npm:darwin-x64": "bun build src/index.ts --bundle --compile --minify --env=INFERENCE_FAST_* --target=bun-darwin-x64 --outfile npm/fast-darwin-x64/bin/fast",
|
|
39
40
|
"build:npm:linux-x64": "bun build src/index.ts --bundle --compile --minify --env=INFERENCE_FAST_* --target=bun-linux-x64 --outfile npm/fast-linux-x64/bin/fast",
|
|
40
41
|
"build:npm:linux-arm64": "bun build src/index.ts --bundle --compile --minify --env=INFERENCE_FAST_* --target=bun-linux-arm64 --outfile npm/fast-linux-arm64/bin/fast",
|
|
41
|
-
"build:npm:
|
|
42
|
+
"build:npm:win32-x64": "bun build src/index.ts --bundle --compile --minify --env=INFERENCE_FAST_* --target=bun-windows-x64 --outfile npm/fast-win32-x64/bin/fast.exe",
|
|
43
|
+
"build:npm:all": "bun run clean:npm && bun run build && bun run build:npm:darwin-arm64 && bun run build:npm:darwin-x64 && bun run build:npm:linux-x64 && bun run build:npm:linux-arm64 && bun run build:npm:win32-x64",
|
|
42
44
|
"ci:build-and-verify": "bash scripts/ci-build-and-verify.sh",
|
|
43
45
|
"clean:bin": "rm -f bin/fast",
|
|
44
|
-
"clean:npm": "rm -f npm/fast-darwin-arm64/bin/fast npm/fast-darwin-x64/bin/fast npm/fast-linux-x64/bin/fast npm/fast-linux-arm64/bin/fast",
|
|
46
|
+
"clean:npm": "rm -f npm/fast-darwin-arm64/bin/fast npm/fast-darwin-x64/bin/fast npm/fast-linux-x64/bin/fast npm/fast-linux-arm64/bin/fast npm/fast-win32-x64/bin/fast.exe",
|
|
45
47
|
"dev": "bun src/index.ts",
|
|
46
48
|
"format": "oxfmt --check .",
|
|
47
49
|
"format:fix": "oxfmt --write .",
|