@shipworthy/ai-sdk-llama-cpp 0.2.0 → 0.2.2
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/package.json +2 -1
- package/scripts/postinstall.cjs +8 -8
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipworthy/ai-sdk-llama-cpp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A minimal llama.cpp provider for the Vercel AI SDK implementing LanguageModelV3 and EmbeddingModelV3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"default": "./dist/index.js",
|
|
10
11
|
"import": "./dist/index.js",
|
|
11
12
|
"types": "./dist/index.d.ts"
|
|
12
13
|
}
|
package/scripts/postinstall.cjs
CHANGED
|
@@ -3,14 +3,14 @@ const fs = require("fs");
|
|
|
3
3
|
const path = require("path");
|
|
4
4
|
|
|
5
5
|
// Step 1: Check platform is macOS
|
|
6
|
-
if (process.platform !== "darwin") {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
6
|
+
// if (process.platform !== "darwin") {
|
|
7
|
+
// console.error("\n===========================================");
|
|
8
|
+
// console.error("ERROR: ai-sdk-llama-cpp only supports macOS");
|
|
9
|
+
// console.error("===========================================\n");
|
|
10
|
+
// console.error(`Detected platform: ${process.platform}`);
|
|
11
|
+
// console.error("This package requires macOS for native compilation.\n");
|
|
12
|
+
// process.exit(1);
|
|
13
|
+
// }
|
|
14
14
|
|
|
15
15
|
// Step 2: Check if git is available
|
|
16
16
|
try {
|