sloppycode 0.2.142 → 0.2.145
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/android-runtime/arm64/bin/slopcode +0 -0
- package/android-runtime/arm64/bin/slopcode-android-host +0 -0
- package/android-runtime/x64/bin/slopcode +0 -0
- package/android-runtime/x64/bin/slopcode-android-host +0 -0
- package/bin/slopcode +71 -17
- package/bundle/index.js +87 -9
- package/bundle/worker.js +78 -4
- package/package.json +13 -12
- package/postinstall.mjs +17 -3
package/package.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"bin",
|
|
30
30
|
"bundle",
|
|
31
31
|
"android-modules",
|
|
32
|
+
"android-runtime",
|
|
32
33
|
"postinstall.mjs",
|
|
33
34
|
"README.md",
|
|
34
35
|
"LICENSE"
|
|
@@ -36,20 +37,20 @@
|
|
|
36
37
|
"scripts": {
|
|
37
38
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
38
39
|
},
|
|
39
|
-
"version": "0.2.
|
|
40
|
+
"version": "0.2.145",
|
|
40
41
|
"license": "MIT",
|
|
41
42
|
"optionalDependencies": {
|
|
42
|
-
"slopcode-bin-darwin-x64-baseline": "0.2.
|
|
43
|
-
"slopcode-bin-linux-x64-baseline": "0.2.
|
|
44
|
-
"slopcode-bin-linux-x64-musl": "0.2.
|
|
45
|
-
"slopcode-bin-windows-x64": "0.2.
|
|
46
|
-
"slopcode-bin-darwin-x64": "0.2.
|
|
47
|
-
"slopcode-bin-windows-x64-baseline": "0.2.
|
|
48
|
-
"slopcode-bin-darwin-arm64": "0.2.
|
|
49
|
-
"slopcode-bin-linux-x64-baseline-musl": "0.2.
|
|
50
|
-
"slopcode-bin-linux-x64": "0.2.
|
|
51
|
-
"slopcode-bin-linux-arm64-musl": "0.2.
|
|
52
|
-
"slopcode-bin-linux-arm64": "0.2.
|
|
43
|
+
"slopcode-bin-darwin-x64-baseline": "0.2.145",
|
|
44
|
+
"slopcode-bin-linux-x64-baseline": "0.2.145",
|
|
45
|
+
"slopcode-bin-linux-x64-musl": "0.2.145",
|
|
46
|
+
"slopcode-bin-windows-x64": "0.2.145",
|
|
47
|
+
"slopcode-bin-darwin-x64": "0.2.145",
|
|
48
|
+
"slopcode-bin-windows-x64-baseline": "0.2.145",
|
|
49
|
+
"slopcode-bin-darwin-arm64": "0.2.145",
|
|
50
|
+
"slopcode-bin-linux-x64-baseline-musl": "0.2.145",
|
|
51
|
+
"slopcode-bin-linux-x64": "0.2.145",
|
|
52
|
+
"slopcode-bin-linux-arm64-musl": "0.2.145",
|
|
53
|
+
"slopcode-bin-linux-arm64": "0.2.145",
|
|
53
54
|
"@oven/bun-linux-aarch64-android": "1.3.14",
|
|
54
55
|
"@oven/bun-linux-x64-android": "1.3.14"
|
|
55
56
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -94,7 +94,7 @@ function supportsAvx2(platform, arch) {
|
|
|
94
94
|
function names(platform, arch) {
|
|
95
95
|
const libc = detectLibc(platform, arch)
|
|
96
96
|
const base = `slopcode-bin-${libc === "bionic" ? "android" : platform}-${arch}`
|
|
97
|
-
if (libc === "bionic") return [`@slopcode-ai/slopcode-android-${arch}`,
|
|
97
|
+
if (libc === "bionic") return [base, `@slopcode-ai/slopcode-android-${arch}`, `slopcode-android-${arch}`]
|
|
98
98
|
const avx2 = supportsAvx2(platform, arch)
|
|
99
99
|
const baseline = arch === "x64" && !avx2
|
|
100
100
|
|
|
@@ -152,11 +152,11 @@ function termuxMessage() {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
function androidPackage(arch) {
|
|
155
|
-
return
|
|
155
|
+
return `slopcode-bin-android-${arch}`
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
function androidTarget(arch) {
|
|
159
|
-
return path.join(__dirname, "node_modules",
|
|
159
|
+
return path.join(__dirname, "node_modules", androidPackage(arch))
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
function androidUrl(arch) {
|
|
@@ -280,6 +280,20 @@ function findBinary() {
|
|
|
280
280
|
continue
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
+
|
|
284
|
+
if (detectLibc(platform, arch) === "bionic") {
|
|
285
|
+
const binaryPath = path.join(__dirname, "android-runtime", arch, "bin", binaryName)
|
|
286
|
+
if (fs.existsSync(binaryPath)) {
|
|
287
|
+
return {
|
|
288
|
+
binaryPath,
|
|
289
|
+
binaryName,
|
|
290
|
+
packageName: `slopcode-embedded-android-${arch}`,
|
|
291
|
+
platform,
|
|
292
|
+
arch,
|
|
293
|
+
libc: "bionic",
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
283
297
|
}
|
|
284
298
|
|
|
285
299
|
function cacheSidecar(sourcePath) {
|