@kreuzberg/liter-llm-node 1.4.0-rc.59 → 1.4.0-rc.60
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
CHANGED
|
@@ -46,13 +46,14 @@
|
|
|
46
46
|
<img src="https://img.shields.io/badge/C-FFI-007ec6" alt="C FFI" />
|
|
47
47
|
</a>
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
<!-- Project Info -->
|
|
50
|
+
<a href="https://github.com/kreuzberg-dev/liter-llm/blob/main/LICENSE">
|
|
51
|
+
<img src="https://img.shields.io/badge/License-MIT-007ec6" alt="License" />
|
|
52
|
+
</a>
|
|
53
|
+
<a href="https://docs.liter-llm.kreuzberg.dev">
|
|
54
|
+
<img src="https://img.shields.io/badge/Docs-liter--llm-007ec6" alt="Docs" />
|
|
55
|
+
</a>
|
|
56
|
+
|
|
56
57
|
</div>
|
|
57
58
|
<div align="center" style="margin: 24px 0 0">
|
|
58
59
|
<a href="https://kreuzberg.dev">
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:561e842050a4e0df6de070b0fde43848f2789ddf3578ad6a364633032c565b61
|
|
3
3
|
// To regenerate: alef generate
|
|
4
4
|
// To verify freshness: alef verify --exit-code
|
|
5
5
|
/* eslint-disable */
|
package/index.js
CHANGED
|
@@ -10,16 +10,9 @@ const isMusl = () => {
|
|
|
10
10
|
// "is musl" positive. Fall through to the filesystem heuristic instead: on
|
|
11
11
|
// glibc systems `/lib64/ld-musl-x86_64.so.1` does not exist; on musl systems
|
|
12
12
|
// it always does. statSync errors → not musl.
|
|
13
|
-
if (
|
|
14
|
-
typeof process.report === "object" &&
|
|
15
|
-
typeof process.report.getReport === "function"
|
|
16
|
-
) {
|
|
13
|
+
if (typeof process.report === "object" && typeof process.report.getReport === "function") {
|
|
17
14
|
const report = process.report.getReport();
|
|
18
|
-
if (
|
|
19
|
-
report &&
|
|
20
|
-
report.header &&
|
|
21
|
-
typeof report.header.glibcVersion === "string"
|
|
22
|
-
) {
|
|
15
|
+
if (report && report.header && typeof report.header.glibcVersion === "string") {
|
|
23
16
|
return false;
|
|
24
17
|
}
|
|
25
18
|
}
|
|
@@ -48,12 +41,48 @@ const tryLoadBinding = () => {
|
|
|
48
41
|
// Optional-dep packages are named after `napi.packageName` (npm subpackage names),
|
|
49
42
|
// which inherits any scope prefix from the parent package.
|
|
50
43
|
const targets = [
|
|
51
|
-
[
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
[
|
|
45
|
+
"linux",
|
|
46
|
+
"x64",
|
|
47
|
+
"gnu",
|
|
48
|
+
"./liter-llm-node.linux-x64-gnu.node",
|
|
49
|
+
"@kreuzberg/liter-llm-node-linux-x64-gnu",
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
"linux",
|
|
53
|
+
"arm64",
|
|
54
|
+
"gnu",
|
|
55
|
+
"./liter-llm-node.linux-arm64-gnu.node",
|
|
56
|
+
"@kreuzberg/liter-llm-node-linux-arm64-gnu",
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"darwin",
|
|
60
|
+
"x64",
|
|
61
|
+
null,
|
|
62
|
+
"./liter-llm-node.darwin-x64.node",
|
|
63
|
+
"@kreuzberg/liter-llm-node-darwin-x64",
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
"darwin",
|
|
67
|
+
"arm64",
|
|
68
|
+
null,
|
|
69
|
+
"./liter-llm-node.darwin-arm64.node",
|
|
70
|
+
"@kreuzberg/liter-llm-node-darwin-arm64",
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
"win32",
|
|
74
|
+
"x64",
|
|
75
|
+
null,
|
|
76
|
+
"./liter-llm-node.win32-x64-msvc.node",
|
|
77
|
+
"@kreuzberg/liter-llm-node-win32-x64-msvc",
|
|
78
|
+
],
|
|
79
|
+
[
|
|
80
|
+
"win32",
|
|
81
|
+
"arm64",
|
|
82
|
+
null,
|
|
83
|
+
"./liter-llm-node.win32-arm64-msvc.node",
|
|
84
|
+
"@kreuzberg/liter-llm-node-win32-arm64-msvc",
|
|
85
|
+
],
|
|
57
86
|
];
|
|
58
87
|
|
|
59
88
|
for (const [plat, a, abi, localPath, optionalDep] of targets) {
|
|
@@ -93,7 +122,7 @@ tryLoadBinding();
|
|
|
93
122
|
|
|
94
123
|
if (!nativeBinding) {
|
|
95
124
|
throw new Error(
|
|
96
|
-
`Failed to load native binding for ${platform}-${arch}. Errors: ${loadErrors.join(", ")}
|
|
125
|
+
`Failed to load native binding for ${platform}-${arch}. Errors: ${loadErrors.join(", ")}`,
|
|
97
126
|
);
|
|
98
127
|
}
|
|
99
128
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kreuzberg/liter-llm-node",
|
|
3
|
-
"version": "1.4.0-rc.
|
|
3
|
+
"version": "1.4.0-rc.60",
|
|
4
4
|
"description": "Universal LLM API client with Rust-powered polyglot bindings.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/kreuzberg-dev/liter-llm.git"
|
|
9
9
|
},
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js",
|
|
12
|
+
"index.d.ts",
|
|
13
|
+
"*.node"
|
|
14
|
+
],
|
|
10
15
|
"main": "index.js",
|
|
11
16
|
"types": "index.d.ts",
|
|
12
17
|
"exports": {
|
|
@@ -16,18 +21,28 @@
|
|
|
16
21
|
"default": "./index.js"
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
|
-
"
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "napi build --platform --release",
|
|
29
|
+
"artifacts": "napi artifacts",
|
|
30
|
+
"prepublishOnly": "napi prepublish -t npm --skip-optional-publish"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@napi-rs/cli": "^3.6.2"
|
|
34
|
+
},
|
|
20
35
|
"optionalDependencies": {
|
|
21
|
-
"@kreuzberg/liter-llm-node-
|
|
22
|
-
"@kreuzberg/liter-llm-node-
|
|
23
|
-
"@kreuzberg/liter-llm-node-
|
|
24
|
-
"@kreuzberg/liter-llm-node-
|
|
25
|
-
"@kreuzberg/liter-llm-node-win32-
|
|
26
|
-
"@kreuzberg/liter-llm-node-win32-
|
|
36
|
+
"@kreuzberg/liter-llm-node-darwin-arm64": "1.4.0-rc.60",
|
|
37
|
+
"@kreuzberg/liter-llm-node-darwin-x64": "1.4.0-rc.60",
|
|
38
|
+
"@kreuzberg/liter-llm-node-linux-arm64-gnu": "1.4.0-rc.60",
|
|
39
|
+
"@kreuzberg/liter-llm-node-linux-x64-gnu": "1.4.0-rc.60",
|
|
40
|
+
"@kreuzberg/liter-llm-node-win32-arm64-msvc": "1.4.0-rc.60",
|
|
41
|
+
"@kreuzberg/liter-llm-node-win32-x64-msvc": "1.4.0-rc.60"
|
|
27
42
|
},
|
|
28
43
|
"napi": {
|
|
29
|
-
"packageName": "@kreuzberg/liter-llm-node",
|
|
30
44
|
"binaryName": "liter-llm-node",
|
|
45
|
+
"packageName": "@kreuzberg/liter-llm-node",
|
|
31
46
|
"targets": [
|
|
32
47
|
"x86_64-unknown-linux-gnu",
|
|
33
48
|
"aarch64-unknown-linux-gnu",
|
|
@@ -37,12 +52,7 @@
|
|
|
37
52
|
"aarch64-pc-windows-msvc"
|
|
38
53
|
]
|
|
39
54
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
"prepublishOnly": "napi prepublish -t npm --skip-optional-publish"
|
|
44
|
-
},
|
|
45
|
-
"engines": { "node": ">= 18" },
|
|
46
|
-
"publishConfig": { "access": "public" },
|
|
47
|
-
"devDependencies": { "@napi-rs/cli": "^3.6.2" }
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">= 18"
|
|
57
|
+
}
|
|
48
58
|
}
|