@just-every/code 0.2.125 → 0.2.127

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.
Files changed (2) hide show
  1. package/bin/coder.js +4 -4
  2. package/package.json +6 -6
package/bin/coder.js CHANGED
@@ -126,10 +126,10 @@ const getCacheDir = (version) => {
126
126
  };
127
127
 
128
128
  const getCachedBinaryPath = (version) => {
129
- const isWin = nodePlatform() === "win32";
130
- const ext = isWin ? ".exe" : "";
129
+ // targetTriple already includes the proper extension on Windows ("...msvc.exe").
130
+ // Do not append another suffix; just use the exact targetTriple-derived name.
131
131
  const cacheDir = getCacheDir(version);
132
- return path.join(cacheDir, `code-${targetTriple}${ext}`);
132
+ return path.join(cacheDir, `code-${targetTriple}`);
133
133
  };
134
134
 
135
135
  let lastBootstrapError = null;
@@ -201,7 +201,7 @@ const tryBootstrapBinary = async () => {
201
201
  try {
202
202
  const pkgJson = req.resolve(`${name}/package.json`);
203
203
  const pkgDir = path.dirname(pkgJson);
204
- const src = path.join(pkgDir, "bin", `code-${targetTriple}${platform === "win32" ? ".exe" : ""}`);
204
+ const src = path.join(pkgDir, "bin", `code-${targetTriple}`);
205
205
  if (existsSync(src)) {
206
206
  // Always ensure cache has the binary; on Unix mirror into node_modules
207
207
  copyFileSync(src, cachePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@just-every/code",
3
- "version": "0.2.125",
3
+ "version": "0.2.127",
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.125",
39
- "@just-every/code-darwin-x64": "0.2.125",
40
- "@just-every/code-linux-x64-musl": "0.2.125",
41
- "@just-every/code-linux-arm64-musl": "0.2.125",
42
- "@just-every/code-win32-x64": "0.2.125"
38
+ "@just-every/code-darwin-arm64": "0.2.127",
39
+ "@just-every/code-darwin-x64": "0.2.127",
40
+ "@just-every/code-linux-x64-musl": "0.2.127",
41
+ "@just-every/code-linux-arm64-musl": "0.2.127",
42
+ "@just-every/code-win32-x64": "0.2.127"
43
43
  }
44
44
  }