@just-every/code 0.2.123 → 0.2.124

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 +7 -1
  2. package/package.json +7 -7
package/bin/coder.js CHANGED
@@ -132,6 +132,8 @@ const getCachedBinaryPath = (version) => {
132
132
  return path.join(cacheDir, `code-${targetTriple}${ext}`);
133
133
  };
134
134
 
135
+ let lastBootstrapError = null;
136
+
135
137
  const httpsDownload = (url, dest) => new Promise((resolve, reject) => {
136
138
  const req = httpsGet(url, (res) => {
137
139
  const status = res.statusCode || 0;
@@ -255,7 +257,7 @@ const tryBootstrapBinary = async () => {
255
257
  if (platform !== "win32") try { chmodSync(binaryPath, 0o755); } catch {}
256
258
  return true;
257
259
  })
258
- .catch((_e) => false);
260
+ .catch((e) => { lastBootstrapError = e; return false; });
259
261
  } catch {
260
262
  return false;
261
263
  }
@@ -301,6 +303,10 @@ if (existsSync(binaryPath)) {
301
303
  }
302
304
  } else {
303
305
  console.error(`Binary not found: ${binaryPath}`);
306
+ if (lastBootstrapError) {
307
+ const msg = (lastBootstrapError && (lastBootstrapError.message || String(lastBootstrapError))) || 'unknown bootstrap error';
308
+ console.error(`Bootstrap error: ${msg}`);
309
+ }
304
310
  console.error(`Please try reinstalling the package:`);
305
311
  console.error(` npm uninstall -g @just-every/code`);
306
312
  console.error(` npm install -g @just-every/code`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@just-every/code",
3
- "version": "0.2.123",
3
+ "version": "0.2.124",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lightweight coding agent that runs in your terminal - fork of OpenAI Codex",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  "scripts": {
22
22
  "preinstall": "node scripts/preinstall.js",
23
23
  "postinstall": "node postinstall.js",
24
- "prepublishOnly": "node -e \"const fs=require('fs'),path=require('path'); const repoGit=path.join(__dirname,'..','.git'); const inCi=process.env.GITHUB_ACTIONS==='true'||process.env.CI==='true'; if(fs.existsSync(repoGit) && !inCi){ console.error('Refusing to publish from codex-cli. Use codex-cli/scripts/stage_release.sh to stage a release.'); process.exit(1);} else { console.log(inCi ? 'CI publish detected.' : 'Publishing staged package...'); }\""
24
+ "prepublishOnly": "node -e \"const fs=require('fs'),path=require('path'); const repoGit=path.join(__dirname,'..','.git'); const inCi=process.env.GITHUB_ACTIONS==='true'||process.env.CI==='true'; if(fs.existsSync(repoGit) && !inCi){ console.error('Refusing to publish from codex-cli. Publishing happens via release.yml.'); process.exit(1);} else { console.log(inCi ? 'CI publish detected.' : 'Publishing staged package...'); }\""
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
@@ -35,10 +35,10 @@
35
35
  "prettier": "^3.3.3"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@just-every/code-darwin-arm64": "0.2.123",
39
- "@just-every/code-darwin-x64": "0.2.123",
40
- "@just-every/code-linux-x64-musl": "0.2.123",
41
- "@just-every/code-linux-arm64-musl": "0.2.123",
42
- "@just-every/code-win32-x64": "0.2.123"
38
+ "@just-every/code-darwin-arm64": "0.2.124",
39
+ "@just-every/code-darwin-x64": "0.2.124",
40
+ "@just-every/code-linux-x64-musl": "0.2.124",
41
+ "@just-every/code-linux-arm64-musl": "0.2.124",
42
+ "@just-every/code-win32-x64": "0.2.124"
43
43
  }
44
44
  }