diff --git a/llama/CMakeLists.txt b/llama/CMakeLists.txt index efd8fce4..76949abe 100644 --- a/llama/CMakeLists.txt +++ b/llama/CMakeLists.txt @@ -129,7 +129,7 @@ add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${CMAKE_JS_SRC} ${GPU_INFO_HE set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node") target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB}) target_link_libraries(${PROJECT_NAME} "llama") -target_link_libraries(${PROJECT_NAME} "common") +target_link_libraries(${PROJECT_NAME} "llama-common") if (DEFINED GPU_INFO_EXTRA_LIBS) target_link_libraries(${PROJECT_NAME} ${GPU_INFO_EXTRA_LIBS}) diff --git a/llama/addon/addon.cpp b/llama/addon/addon.cpp index eb1f35bf..cda2681a 100644 --- a/llama/addon/addon.cpp +++ b/llama/addon/addon.cpp @@ -236,7 +236,7 @@ Napi::Value addonSetNuma(const Napi::CallbackInfo& info) { } Napi::Value markLoaded(const Napi::CallbackInfo& info) { - static std::atomic_bool loaded = false; + static std::atomic_bool loaded{false}; return Napi::Boolean::New(info.Env(), loaded.exchange(true)); } diff --git a/package-lock.json b/package-lock.json index 34dbed59..7cab250f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -993,11 +993,13 @@ "cpu": [ "ppc64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "aix" ], + "peer": true, "engines": { "node": ">=18" } @@ -1009,11 +1011,13 @@ "cpu": [ "arm" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "android" ], + "peer": true, "engines": { "node": ">=18" } @@ -1025,11 +1029,13 @@ "cpu": [ "arm64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "android" ], + "peer": true, "engines": { "node": ">=18" } @@ -1041,11 +1047,13 @@ "cpu": [ "x64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "android" ], + "peer": true, "engines": { "node": ">=18" } @@ -1057,11 +1065,13 @@ "cpu": [ "arm64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=18" } @@ -1073,11 +1083,13 @@ "cpu": [ "x64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=18" } @@ -1089,11 +1101,13 @@ "cpu": [ "arm64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -1105,11 +1119,13 @@ "cpu": [ "x64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -1121,11 +1137,13 @@ "cpu": [ "arm" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1137,11 +1155,13 @@ "cpu": [ "arm64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1153,11 +1173,13 @@ "cpu": [ "ia32" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1169,11 +1191,13 @@ "cpu": [ "loong64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1185,11 +1209,13 @@ "cpu": [ "mips64el" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1201,11 +1227,13 @@ "cpu": [ "ppc64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1217,11 +1245,13 @@ "cpu": [ "riscv64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1233,11 +1263,13 @@ "cpu": [ "s390x" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1249,11 +1281,13 @@ "cpu": [ "x64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "linux" ], + "peer": true, "engines": { "node": ">=18" } @@ -1265,11 +1299,13 @@ "cpu": [ "arm64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "netbsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -1281,11 +1317,13 @@ "cpu": [ "x64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "netbsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -1297,11 +1335,13 @@ "cpu": [ "arm64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "openbsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -1313,11 +1353,13 @@ "cpu": [ "x64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "openbsd" ], + "peer": true, "engines": { "node": ">=18" } @@ -1329,11 +1371,13 @@ "cpu": [ "arm64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "openharmony" ], + "peer": true, "engines": { "node": ">=18" } @@ -1345,11 +1389,13 @@ "cpu": [ "x64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "sunos" ], + "peer": true, "engines": { "node": ">=18" } @@ -1361,11 +1407,13 @@ "cpu": [ "arm64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "win32" ], + "peer": true, "engines": { "node": ">=18" } @@ -1377,11 +1425,13 @@ "cpu": [ "ia32" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "win32" ], + "peer": true, "engines": { "node": ">=18" } @@ -1393,11 +1443,13 @@ "cpu": [ "x64" ], - "extraneous": true, + "dev": true, "license": "MIT", + "optional": true, "os": [ "win32" ], + "peer": true, "engines": { "node": ">=18" } @@ -1864,9 +1916,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1884,9 +1933,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1904,9 +1950,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1924,9 +1967,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1944,9 +1984,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1964,9 +2001,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -1984,9 +2018,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2004,9 +2035,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -2024,9 +2052,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2050,9 +2075,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2076,9 +2098,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2102,9 +2121,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2128,9 +2144,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2154,9 +2167,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2180,9 +2190,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2206,9 +2213,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "Apache-2.0", "optional": true, "os": [ @@ -2372,45 +2376,6 @@ "@tybys/wasm-util": "^0.10.0" } }, - "node_modules/@node-llama-cpp/linux-arm64": { - "optional": true - }, - "node_modules/@node-llama-cpp/linux-armv7l": { - "optional": true - }, - "node_modules/@node-llama-cpp/linux-x64": { - "optional": true - }, - "node_modules/@node-llama-cpp/linux-x64-cuda": { - "optional": true - }, - "node_modules/@node-llama-cpp/linux-x64-cuda-ext": { - "optional": true - }, - "node_modules/@node-llama-cpp/linux-x64-vulkan": { - "optional": true - }, - "node_modules/@node-llama-cpp/mac-arm64-metal": { - "optional": true - }, - "node_modules/@node-llama-cpp/mac-x64": { - "optional": true - }, - "node_modules/@node-llama-cpp/win-arm64": { - "optional": true - }, - "node_modules/@node-llama-cpp/win-x64": { - "optional": true - }, - "node_modules/@node-llama-cpp/win-x64-cuda": { - "optional": true - }, - "node_modules/@node-llama-cpp/win-x64-cuda-ext": { - "optional": true - }, - "node_modules/@node-llama-cpp/win-x64-vulkan": { - "optional": true - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2886,9 +2851,6 @@ "cpu": [ "arm64" ], - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -2905,9 +2867,6 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -2924,9 +2883,6 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -2943,9 +2899,6 @@ "cpu": [ "x64" ], - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3104,9 +3057,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3124,9 +3074,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3144,9 +3091,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3164,9 +3108,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3330,9 +3271,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3350,9 +3288,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3370,9 +3305,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3390,9 +3322,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3410,9 +3339,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3430,9 +3356,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3626,9 +3549,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3643,9 +3563,6 @@ "arm" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3660,9 +3577,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3677,9 +3591,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3694,9 +3605,6 @@ "loong64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3711,9 +3619,6 @@ "loong64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3728,9 +3633,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3745,9 +3647,6 @@ "ppc64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3762,9 +3661,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3779,9 +3675,6 @@ "riscv64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -3796,9 +3689,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3813,9 +3703,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -3830,9 +3717,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -5295,9 +5179,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5312,9 +5193,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -5329,9 +5207,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5346,9 +5221,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5363,9 +5235,6 @@ "riscv64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -5380,9 +5249,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5397,9 +5263,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -5414,9 +5277,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -8164,9 +8024,11 @@ "version": "0.27.4", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.4.tgz", "integrity": "sha512-Rq4vbHnYkK5fws5NF7MYTU68FPRE1ajX7heQ/8QXXWqNgqqJ/GkmmyxIzUnf2Sr/bakf8l54716CcMGHYhMrrQ==", - "extraneous": true, + "dev": true, "hasInstallScript": true, "license": "MIT", + "optional": true, + "peer": true, "bin": { "esbuild": "bin/esbuild" }, @@ -11445,9 +11307,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -11469,9 +11328,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -11493,9 +11349,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -11517,9 +11370,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [