@just-every/code 0.2.120 → 0.2.122
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/bin/coder.js +3 -7
- package/package.json +6 -6
package/bin/coder.js
CHANGED
|
@@ -20,11 +20,7 @@ const { platform, arch } = process;
|
|
|
20
20
|
const isWSL = () => {
|
|
21
21
|
if (platform !== "linux") return false;
|
|
22
22
|
try {
|
|
23
|
-
const
|
|
24
|
-
const rel = os.release().toLowerCase();
|
|
25
|
-
if (rel.includes("microsoft")) return true;
|
|
26
|
-
const fs = require("fs");
|
|
27
|
-
const txt = fs.readFileSync("/proc/version", "utf8").toLowerCase();
|
|
23
|
+
const txt = readFileSync("/proc/version", "utf8").toLowerCase();
|
|
28
24
|
return txt.includes("microsoft");
|
|
29
25
|
} catch {
|
|
30
26
|
return false;
|
|
@@ -82,7 +78,7 @@ let binaryPath = path.join(__dirname, "..", "bin", `code-${targetTriple}`);
|
|
|
82
78
|
let legacyBinaryPath = path.join(__dirname, "..", "bin", `coder-${targetTriple}`);
|
|
83
79
|
|
|
84
80
|
// --- Bootstrap helper (runs if the binary is missing, e.g. Bun blocked postinstall) ---
|
|
85
|
-
import { existsSync, chmodSync, statSync, openSync, readSync, closeSync, mkdirSync, copyFileSync, readFileSync, unlinkSync } from "fs";
|
|
81
|
+
import { existsSync, chmodSync, statSync, openSync, readSync, closeSync, mkdirSync, copyFileSync, readFileSync, unlinkSync, createWriteStream } from "fs";
|
|
86
82
|
|
|
87
83
|
const validateBinary = (p) => {
|
|
88
84
|
try {
|
|
@@ -146,7 +142,7 @@ const httpsDownload = (url, dest) => new Promise((resolve, reject) => {
|
|
|
146
142
|
if (status !== 200) {
|
|
147
143
|
return reject(new Error(`HTTP ${status}`));
|
|
148
144
|
}
|
|
149
|
-
const out =
|
|
145
|
+
const out = createWriteStream(dest);
|
|
150
146
|
res.pipe(out);
|
|
151
147
|
out.on("finish", () => out.close(resolve));
|
|
152
148
|
out.on("error", (e) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@just-every/code",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.122",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lightweight coding agent that runs in your terminal - fork of OpenAI Codex",
|
|
6
6
|
"bin": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"prettier": "^3.3.3"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@just-every/code-darwin-arm64": "0.2.
|
|
39
|
-
"@just-every/code-darwin-x64": "0.2.
|
|
40
|
-
"@just-every/code-linux-x64-musl": "0.2.
|
|
41
|
-
"@just-every/code-linux-arm64-musl": "0.2.
|
|
42
|
-
"@just-every/code-win32-x64": "0.2.
|
|
38
|
+
"@just-every/code-darwin-arm64": "0.2.122",
|
|
39
|
+
"@just-every/code-darwin-x64": "0.2.122",
|
|
40
|
+
"@just-every/code-linux-x64-musl": "0.2.122",
|
|
41
|
+
"@just-every/code-linux-arm64-musl": "0.2.122",
|
|
42
|
+
"@just-every/code-win32-x64": "0.2.122"
|
|
43
43
|
}
|
|
44
44
|
}
|