@xberg-io/liter-llm 1.9.2 → 1.10.0
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/README.md +7 -7
- package/index.d.ts +600 -398
- package/index.js +12 -4
- package/liter-llm-node.darwin-arm64.node +0 -0
- package/liter-llm-node.linux-arm64-gnu.node +0 -0
- package/liter-llm-node.linux-x64-gnu.node +0 -0
- package/liter-llm-node.win32-arm64-msvc.node +0 -0
- package/liter-llm-node.win32-x64-msvc.node +0 -0
- package/package.json +11 -11
package/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { platform, arch } = process;
|
|
4
|
-
const isWindows = platform === "win32";
|
|
5
4
|
const isMusl = () => {
|
|
6
5
|
// Prefer the report-header `glibcVersion` string when present — fastest and
|
|
7
6
|
// unambiguous on Node builds that populate it. On Node 22+, certain CI
|
|
@@ -10,9 +9,16 @@ const isMusl = () => {
|
|
|
10
9
|
// "is musl" positive. Fall through to the filesystem heuristic instead: on
|
|
11
10
|
// glibc systems `/lib64/ld-musl-x86_64.so.1` does not exist; on musl systems
|
|
12
11
|
// it always does. statSync errors → not musl.
|
|
13
|
-
if (
|
|
12
|
+
if (
|
|
13
|
+
typeof process.report === "object" &&
|
|
14
|
+
typeof process.report.getReport === "function"
|
|
15
|
+
) {
|
|
14
16
|
const report = process.report.getReport();
|
|
15
|
-
if (
|
|
17
|
+
if (
|
|
18
|
+
report &&
|
|
19
|
+
report.header &&
|
|
20
|
+
typeof report.header.glibcVersion === "string"
|
|
21
|
+
) {
|
|
16
22
|
return false;
|
|
17
23
|
}
|
|
18
24
|
}
|
|
@@ -85,7 +91,9 @@ const tryLoadBinding = () => {
|
|
|
85
91
|
tryLoadBinding();
|
|
86
92
|
|
|
87
93
|
if (!nativeBinding) {
|
|
88
|
-
throw new Error(
|
|
94
|
+
throw new Error(
|
|
95
|
+
`Failed to load native binding for ${platform}-${arch}. Errors: ${loadErrors.join(", ")}`
|
|
96
|
+
);
|
|
89
97
|
}
|
|
90
98
|
|
|
91
99
|
module.exports = nativeBinding;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xberg-io/liter-llm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Universal LLM API client with Rust-powered polyglot bindings.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"files": ["index.js", "index.d.ts", "*.node"],
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@xberg-io/liter-llm-linux-x64-gnu": "1.
|
|
22
|
-
"@xberg-io/liter-llm-linux-arm64-gnu": "1.
|
|
23
|
-
"@xberg-io/liter-llm-darwin-x64": "1.
|
|
24
|
-
"@xberg-io/liter-llm-darwin-arm64": "1.
|
|
25
|
-
"@xberg-io/liter-llm-win32-x64-msvc": "1.
|
|
26
|
-
"@xberg-io/liter-llm-win32-arm64-msvc": "1.
|
|
21
|
+
"@xberg-io/liter-llm-linux-x64-gnu": "1.10.0",
|
|
22
|
+
"@xberg-io/liter-llm-linux-arm64-gnu": "1.10.0",
|
|
23
|
+
"@xberg-io/liter-llm-darwin-x64": "1.10.0",
|
|
24
|
+
"@xberg-io/liter-llm-darwin-arm64": "1.10.0",
|
|
25
|
+
"@xberg-io/liter-llm-win32-x64-msvc": "1.10.0",
|
|
26
|
+
"@xberg-io/liter-llm-win32-arm64-msvc": "1.10.0"
|
|
27
27
|
},
|
|
28
28
|
"napi": {
|
|
29
29
|
"packageName": "@xberg-io/liter-llm",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
-
"build": "npx --yes -p @napi-rs/cli@^3.
|
|
42
|
-
"artifacts": "npx --yes -p @napi-rs/cli@^3.
|
|
43
|
-
"prepublishOnly": "npx --yes -p @napi-rs/cli@^3.
|
|
41
|
+
"build": "npx --yes -p @napi-rs/cli@^3.7.3 napi build --platform --release",
|
|
42
|
+
"artifacts": "npx --yes -p @napi-rs/cli@^3.7.3 napi artifacts",
|
|
43
|
+
"prepublishOnly": "npx --yes -p @napi-rs/cli@^3.7.3 napi prepublish -t npm --skip-optional-publish"
|
|
44
44
|
},
|
|
45
45
|
"engines": { "node": ">= 22" },
|
|
46
46
|
"publishConfig": { "access": "public" },
|
|
47
|
-
"devDependencies": { "@napi-rs/cli": "^3.
|
|
47
|
+
"devDependencies": { "@napi-rs/cli": "^3.7.3" }
|
|
48
48
|
}
|