@just-every/code 0.1.5 → 0.1.6

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 CHANGED
@@ -56,7 +56,11 @@ if (!targetTriple) {
56
56
  throw new Error(`Unsupported platform: ${platform} (${arch})`);
57
57
  }
58
58
 
59
- const binaryPath = path.join(__dirname, "..", "bin", `coder-${targetTriple}`);
59
+ // Prefer new 'code-*' binary names; fall back to legacy 'coder-*' if missing.
60
+ let binaryPath = path.join(__dirname, "..", "bin", `code-${targetTriple}`);
61
+ if (!existsSync(binaryPath)) {
62
+ binaryPath = path.join(__dirname, "..", "bin", `coder-${targetTriple}`);
63
+ }
60
64
 
61
65
  // Check if binary exists and try to fix permissions if needed
62
66
  import { existsSync, chmodSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@just-every/code",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lightweight coding agent that runs in your terminal - fork of OpenAI Codex",
6
6
  "bin": {
package/postinstall.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ // Non-functional change to trigger release workflow
2
3
 
3
4
  import { existsSync, mkdirSync, createWriteStream, chmodSync, readFileSync, readSync, writeFileSync } from 'fs';
4
5
  import { join, dirname } from 'path';
@@ -93,8 +94,8 @@ async function main() {
93
94
  const packageJson = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf8'));
94
95
  const version = packageJson.version;
95
96
 
96
- // Binary names to download (Rust artifacts remain named 'coder*')
97
- const binaries = ['coder', 'coder-tui', 'coder-exec'];
97
+ // Binary names to download (new naming is 'code*')
98
+ const binaries = ['code', 'code-tui', 'code-exec'];
98
99
 
99
100
  console.log(`Installing @just-every/code v${version} for ${targetTriple}...`);
100
101
 
@@ -138,17 +139,17 @@ async function main() {
138
139
  }
139
140
 
140
141
  // Create platform-specific symlink/copy for main binary
141
- const mainBinary = `coder-${targetTriple}${binaryExt}`;
142
+ const mainBinary = `code-${targetTriple}${binaryExt}`;
142
143
  const mainBinaryPath = join(binDir, mainBinary);
143
144
 
144
145
  if (existsSync(mainBinaryPath)) {
145
- console.log('Setting up main coder binary...');
146
+ console.log('Setting up main code binary...');
146
147
 
147
148
  // On Windows, we can't use symlinks easily, so update the JS wrapper
148
149
  // On Unix, the JS wrapper will find the correct binary
149
150
  console.log('✓ Installation complete!');
150
151
  } else {
151
- console.warn('⚠ Main coder binary not found. You may need to build from source.');
152
+ console.warn('⚠ Main code binary not found. You may need to build from source.');
152
153
  }
153
154
 
154
155
  // With bin name = 'code', handle collisions with existing 'code' (e.g., VS Code)