@koed-labs/server 0.11.1 → 1.0.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 +3 -3
- package/bin/koed.js +1 -1
- package/package.json +2 -2
- package/vendor/{chunk-VGIYSDNU.js → chunk-273NMYXE.js} +115 -32
- package/vendor/{chunk-4OO6VAU3.js → chunk-4DHYSJJT.js} +1 -1
- package/vendor/{chunk-WDFERJG3.js → chunk-54UL4U2E.js} +42 -23
- package/vendor/{chunk-W2OJZZ6X.js → chunk-64AST7WZ.js} +2 -2
- package/vendor/{chunk-ZIOKV2X6.js → chunk-7HLNJ2BI.js} +113 -33
- package/vendor/{chunk-2XKSVKQA.js → chunk-AOZ3LMTF.js} +2 -2
- package/vendor/{chunk-C5SNDPAP.js → chunk-BYN6KXNP.js} +4 -4
- package/vendor/{chunk-Z5WCAUA6.js → chunk-DWWMBGHX.js} +16 -16
- package/vendor/{chunk-ZOHNXUDY.js → chunk-E6YVGIEW.js} +25 -8
- package/vendor/{chunk-NVTMIAAF.js → chunk-EEBIYWTE.js} +16 -16
- package/vendor/{chunk-GFASBPV2.js → chunk-F77ZTTNS.js} +3 -3
- package/vendor/{chunk-TG26CZGQ.js → chunk-F7AMEDDU.js} +4 -4
- package/vendor/{chunk-EA4QDDQA.js → chunk-GY5GATZL.js} +1 -1
- package/vendor/{chunk-HC76426R.js → chunk-ILQVLZ2I.js} +7 -5
- package/vendor/{chunk-6KS67EQE.js → chunk-KG3RANR4.js} +1 -1
- package/vendor/{chunk-OCILJ737.js → chunk-KRBZZ6GS.js} +8 -8
- package/vendor/{chunk-SHLRINKO.js → chunk-L4RD3TAZ.js} +1 -1
- package/vendor/{chunk-SRKIBFOE.js → chunk-LHUMBHG7.js} +1 -1
- package/vendor/{chunk-CHMH4LH5.js → chunk-NGV45YWB.js} +3 -3
- package/vendor/{chunk-V67IQB7H.js → chunk-OG7G6DIR.js} +1 -1
- package/vendor/{chunk-NOU7RHYZ.js → chunk-OZU6JFB4.js} +4 -4
- package/vendor/chunk-QV3WPU7A.js +8 -0
- package/vendor/{chunk-BUIM2M4R.js → chunk-S6HD3MDU.js} +2 -2
- package/vendor/{chunk-SNKWETM5.js → chunk-SQZ2OSP6.js} +2 -2
- package/vendor/{chunk-WPIEF4LY.js → chunk-T7OGE5E5.js} +3 -3
- package/vendor/{chunk-FYYRFX4U.js → chunk-TIBYKMRW.js} +74 -38
- package/vendor/{chunk-FN3HUUO2.js → chunk-UCOHFZ77.js} +73 -13
- package/vendor/{chunk-LRP66XEY.js → chunk-UIMUUIH7.js} +13 -13
- package/vendor/{chunk-EDPNYIX5.js → chunk-USHFSJT7.js} +141 -86
- package/vendor/{chunk-QRKHHWJJ.js → chunk-VGL5AZN5.js} +51 -3
- package/vendor/{chunk-PL3LWC5C.js → chunk-VLP72QWX.js} +1 -1
- package/vendor/{chunk-O7DW2VAV.js → chunk-W6632NOX.js} +3 -3
- package/vendor/{chunk-RCR4XPE3.js → chunk-WBMO7YCO.js} +1 -1
- package/vendor/chunk-XCO3RV3Z.js +11 -0
- package/vendor/{chunk-TVYEB2GN.js → chunk-XKXSC6YS.js} +34 -4
- package/vendor/{chunk-C4V72GXC.js → chunk-Y6GE52OP.js} +17 -17
- package/vendor/{chunk-BGENSONI.js → chunk-ZKKWLLPU.js} +1 -1
- package/vendor/cli.js +1 -1
- package/vendor/component-manifest-catalog.js +1 -1
- package/vendor/control-plane.js +4 -4
- package/vendor/chunk-7EGSY3E4.js +0 -8
- package/vendor/chunk-ZUDSZGVO.js +0 -11
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-JYK6UL6D.js";
|
|
5
5
|
import {
|
|
6
6
|
compareNativeVersions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VGL5AZN5.js";
|
|
8
8
|
import {
|
|
9
9
|
external_exports
|
|
10
10
|
} from "./chunk-FSNLU46W.js";
|
|
@@ -132,6 +132,28 @@ async function requestProbeEmbeddings(socket, inputs2, signal) {
|
|
|
132
132
|
return JSON.parse(result.body);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
// packages/koed-server/dist/nvidia-smi.js
|
|
136
|
+
import { accessSync, constants, statSync } from "node:fs";
|
|
137
|
+
var candidates = [
|
|
138
|
+
"/usr/bin/nvidia-smi",
|
|
139
|
+
"/bin/nvidia-smi",
|
|
140
|
+
"/usr/local/bin/nvidia-smi",
|
|
141
|
+
"/usr/local/nvidia/bin/nvidia-smi",
|
|
142
|
+
"/usr/lib/wsl/lib/nvidia-smi"
|
|
143
|
+
];
|
|
144
|
+
function resolveNvidiaSmi() {
|
|
145
|
+
for (const candidate of candidates) {
|
|
146
|
+
try {
|
|
147
|
+
if (!statSync(candidate).isFile())
|
|
148
|
+
continue;
|
|
149
|
+
accessSync(candidate, constants.X_OK);
|
|
150
|
+
return candidate;
|
|
151
|
+
} catch {
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
|
|
135
157
|
// packages/koed-server/dist/runtime-release-validation.js
|
|
136
158
|
var minimumDriver = "550.54.14";
|
|
137
159
|
var minimumCosine = 0.999;
|
|
@@ -147,7 +169,7 @@ var NativeValidationError = class extends Error {
|
|
|
147
169
|
this.reason = reason;
|
|
148
170
|
}
|
|
149
171
|
};
|
|
150
|
-
async function checkCudaHost(signal) {
|
|
172
|
+
async function checkCudaHost(signal, nvidiaSmi = resolveNvidiaSmi()) {
|
|
151
173
|
const context = {
|
|
152
174
|
cwd: "/",
|
|
153
175
|
env: { PATH: "/usr/bin:/bin", LANG: "C", LC_ALL: "C" },
|
|
@@ -155,7 +177,9 @@ async function checkCudaHost(signal) {
|
|
|
155
177
|
};
|
|
156
178
|
let driverVersion;
|
|
157
179
|
try {
|
|
158
|
-
|
|
180
|
+
if (!nvidiaSmi)
|
|
181
|
+
throw new Error("NVIDIA driver tools are not available.");
|
|
182
|
+
const output = await nativeCommand(nvidiaSmi, ["--query-gpu=driver_version", "--format=csv,noheader"], context);
|
|
159
183
|
const versions = new Set(output.split(/\r?\n/).map((row) => row.trim()));
|
|
160
184
|
driverVersion = [...versions][0] ?? "";
|
|
161
185
|
if (versions.size !== 1 || !/^\d{1,4}\.\d{1,4}(\.\d{1,4})?$/.test(driverVersion))
|
|
@@ -172,7 +196,13 @@ async function checkCudaHost(signal) {
|
|
|
172
196
|
String.raw`process.report.getReport().sharedObjects.some(p => /\/libcuda\.so(?:\.\d+)*$/.test(p))`
|
|
173
197
|
], {
|
|
174
198
|
...context,
|
|
175
|
-
|
|
199
|
+
// Desktop also calls this probe from Electron main. Its executable must
|
|
200
|
+
// run as Node, just as it does for the private server supervisor.
|
|
201
|
+
env: {
|
|
202
|
+
...context.env,
|
|
203
|
+
ELECTRON_RUN_AS_NODE: "1",
|
|
204
|
+
LD_PRELOAD: "libcuda.so.1"
|
|
205
|
+
}
|
|
176
206
|
});
|
|
177
207
|
if (loaded !== "true")
|
|
178
208
|
throw new NativeValidationError("cuda_driver_library_unavailable", "The host loader could not load libcuda.so.1.");
|
|
@@ -2,40 +2,40 @@ import { createRequire as createKoedRequire } from "node:module"; const require
|
|
|
2
2
|
import {
|
|
3
3
|
createCliServiceContext,
|
|
4
4
|
printJson
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-54UL4U2E.js";
|
|
6
|
+
import "./chunk-L4RD3TAZ.js";
|
|
7
|
+
import "./chunk-NGV45YWB.js";
|
|
8
|
+
import "./chunk-GY5GATZL.js";
|
|
9
9
|
import "./chunk-JYK6UL6D.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-T7OGE5E5.js";
|
|
11
11
|
import {
|
|
12
12
|
connectAiClientAfterSetup,
|
|
13
13
|
disconnectAiClientThenRemove,
|
|
14
14
|
verifyAiClientIntegration
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KG3RANR4.js";
|
|
16
16
|
import {
|
|
17
17
|
evaluateAiClientReadiness
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-USHFSJT7.js";
|
|
19
19
|
import "./chunk-QT24SAW6.js";
|
|
20
20
|
import "./chunk-TISYUUEJ.js";
|
|
21
21
|
import "./chunk-ALJUSOF7.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-LHUMBHG7.js";
|
|
23
23
|
import "./chunk-7FSHVVTZ.js";
|
|
24
24
|
import "./chunk-TSAYTRX3.js";
|
|
25
25
|
import "./chunk-YZLQZU5E.js";
|
|
26
26
|
import "./chunk-W2HNI6AA.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-OG7G6DIR.js";
|
|
28
|
+
import "./chunk-UCOHFZ77.js";
|
|
29
29
|
import "./chunk-T6UB5PNX.js";
|
|
30
30
|
import "./chunk-7NXKPDF3.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-XCO3RV3Z.js";
|
|
32
|
+
import "./chunk-7HLNJ2BI.js";
|
|
33
|
+
import "./chunk-VGL5AZN5.js";
|
|
34
|
+
import "./chunk-QV3WPU7A.js";
|
|
35
35
|
import "./chunk-IY2HRXOZ.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-4DHYSJJT.js";
|
|
37
|
+
import "./chunk-WBMO7YCO.js";
|
|
38
|
+
import "./chunk-E6YVGIEW.js";
|
|
39
39
|
import "./chunk-FSNLU46W.js";
|
|
40
40
|
import "./chunk-BTS4ZTF3.js";
|
|
41
41
|
|
package/vendor/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
if (Number(process.versions.node.split(".")[0])
|
|
2
|
+
if (Number(process.versions.node.split(".")[0]) < 24 || Number(process.versions.node.split(".")[0]) >= 27) { console.error(`@koed-labs/server requires Node.js >=24 <27; found ${process.versions.node}.`); process.exit(1); }
|
|
3
3
|
const { runKoedServerCli, shouldExitPackagedSupervisor } = await import("./control-plane.js");
|
|
4
4
|
const args = process.argv.slice(2);
|
|
5
5
|
const exitCode = await runKoedServerCli(args);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as createKoedRequire } from "node:module"; const require = createKoedRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
productionComponentManifestCatalog
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XCO3RV3Z.js";
|
|
5
5
|
import "./chunk-IY2HRXOZ.js";
|
|
6
6
|
import "./chunk-BTS4ZTF3.js";
|
|
7
7
|
export {
|
package/vendor/control-plane.js
CHANGED
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
isKoedServerCliEntrypoint,
|
|
4
4
|
runKoedServerCli,
|
|
5
5
|
shouldExitPackagedSupervisor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TIBYKMRW.js";
|
|
7
7
|
import {
|
|
8
8
|
startKoedServerDaemon
|
|
9
9
|
} from "./chunk-7FSHVVTZ.js";
|
|
10
10
|
import "./chunk-TSAYTRX3.js";
|
|
11
11
|
import "./chunk-YZLQZU5E.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-OG7G6DIR.js";
|
|
13
13
|
import {
|
|
14
14
|
productionComponentManifestCatalog
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XCO3RV3Z.js";
|
|
16
16
|
import {
|
|
17
17
|
productionNativeRuntimeCatalog
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QV3WPU7A.js";
|
|
19
19
|
import "./chunk-IY2HRXOZ.js";
|
|
20
20
|
import "./chunk-BTS4ZTF3.js";
|
|
21
21
|
export {
|
package/vendor/chunk-7EGSY3E4.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createRequire as createKoedRequire } from "node:module"; const require = createKoedRequire(import.meta.url);
|
|
2
|
-
|
|
3
|
-
// packages/koed-server/dist/native-runtime-catalog-data.mjs
|
|
4
|
-
var productionNativeRuntimeCatalog = { "schemaVersion": 1, "minimumCoreVersion": "0.10.3", "core": { "recipeId": "3772839512c2caebac0f9d27b4d2da2bb345ac713dce414019068bcef2e008a5", "runtimeVersion": "0.11.1", "url": "https://github.com/koed-labs/koed/releases/download/v0.11.1/koed-native-core-3772839512c2caebac0f9d27b4d2da2bb345ac713dce414019068bcef2e008a5-linux-x64.tar.gz", "sha256": "eba95ee796f67c3d8f2468e2bb98a313a92f6180144e255a9b127d7783b7b8a7", "manifestSha256": "56da4b6e4870782dda6892e48dbef64226910d2862cfaf23585a71e0651418b6", "target": { "platform": "linux", "architecture": "x64", "libc": { "family": "glibc", "minimumVersion": "2.35" } }, "archiveBytes": 23988984, "expandedBytes": 56990680, "contracts": { "layout": 1, "embedding": 1, "postgres": 1 }, "components": { "postgres": { "major": 17, "version": "17.6" }, "pgvector": { "version": "0.8.3" }, "llamaCpp": { "version": "b10514", "revision": "7221e24f579efbb5fd2a2ced1fffaef1aff2fe0d" } } }, "cuda": { "recipeId": "5fc63b4396c94d35c3f9c30c1ca592e178357cbf1717dac10216c2de37dfda70", "runtimeVersion": "0.11.1", "url": "https://github.com/koed-labs/koed/releases/download/v0.11.1/koed-native-cuda-5fc63b4396c94d35c3f9c30c1ca592e178357cbf1717dac10216c2de37dfda70-linux-x64.tar.gz", "sha256": "da8423ddc84ce0e95b7857a799b2d542dbc188c154cbf6869aaa165dbdc02a86", "manifestSha256": "c4a0bfc9f908d7774009ee6d45e34a54393d23b53ca9b567da73f72e8225cb3e", "target": { "platform": "linux", "architecture": "x64", "libc": { "family": "glibc", "minimumVersion": "2.35" } }, "archiveBytes": 711229069, "expandedBytes": 1467863069, "contracts": { "layout": 1, "embedding": 1 }, "llamaCpp": { "version": "b10514", "revision": "7221e24f579efbb5fd2a2ced1fffaef1aff2fe0d" }, "cuda": { "toolkitVersion": "12.4", "minimumDriverLinux": "550.54.14", "architectures": [75, 80, 86, 89, 90] } } };
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
productionNativeRuntimeCatalog
|
|
8
|
-
};
|
package/vendor/chunk-ZUDSZGVO.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createRequire as createKoedRequire } from "node:module"; const require = createKoedRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
validateManifestCatalog
|
|
4
|
-
} from "./chunk-IY2HRXOZ.js";
|
|
5
|
-
|
|
6
|
-
// packages/koed-server/dist/component-manifest-catalog-data.js
|
|
7
|
-
var productionComponentManifestCatalog = validateManifestCatalog({ "schemaVersion": 2, "productVersion": "0.11.1", "entries": [{ "component": "base", "manifestSha256": "0b52721f86a781aed5d220ff15155dc1ba66cee6e9a1d0a08f0737d7dd4a341b", "target": { "platform": "linux", "architecture": "x64", "libc": { "family": "glibc", "minimumVersion": "2.35" } } }, { "component": "base", "manifestSha256": "16227b97790718bbc133746a6d18dc61e50d98eed3ff23ceaf4fd938f470e208", "target": { "platform": "macos", "architecture": "arm64" } }, { "component": "privacy", "variant": "cpu", "manifestSha256": "f2f0b951faefba2e8e6d756d27e7c352bad626011e07b617d2ed0bf5e3a4eea9", "target": { "platform": "linux", "architecture": "x64", "libc": { "family": "glibc", "minimumVersion": "2.35" } } }, { "component": "privacy", "variant": "cuda", "manifestSha256": "61178106c0b86eb4afb90b4cb27ceffaee25240224ca6820e3acb94394e6803a", "target": { "platform": "linux", "architecture": "x64", "libc": { "family": "glibc", "minimumVersion": "2.35" } } }, { "component": "privacy", "manifestSha256": "2fe30669f016e2934357f1a37f79fd2e03a91fbfe8a4b02769531d5a6c8cbc49", "target": { "platform": "macos", "architecture": "arm64" } }] });
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
productionComponentManifestCatalog
|
|
11
|
-
};
|