codexctl 0.5.1 → 0.5.3

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.
Binary file
package/codexctl.js CHANGED
@@ -12,11 +12,11 @@ const { spawn } = require('child_process');
12
12
  const VERSION = '0.5.0';
13
13
 
14
14
  const PLATFORMS = {
15
- 'linux-x64': { url: 'codexctl-x86_64-unknown-linux-gnu.tar.gz', ext: '.tar.gz' },
16
- 'linux-arm64': { url: 'codexctl-aarch64-unknown-linux-gnu.tar.gz', ext: '.tar.gz' },
17
- 'darwin-x64': { url: 'codexctl-x86_64-apple-darwin.tar.gz', ext: '.tar.gz' },
18
- 'darwin-arm64': { url: 'codexctl-aarch64-apple-darwin.tar.gz', ext: '.tar.gz' },
19
- 'win32-x64': { url: 'codexctl-x86_64-pc-windows-msvc.zip', ext: '.zip' }
15
+ 'linux-x64': { url: 'codexctl-x86_64-unknown-linux-gnu.tar.gz', ext: '.tar.gz', name: 'linux' },
16
+ 'linux-arm64': { url: 'codexctl-aarch64-unknown-linux-gnu.tar.gz', ext: '.tar.gz', name: 'linux' },
17
+ 'darwin-x64': { url: 'codexctl-x86_64-apple-darwin.tar.gz', ext: '.tar.gz', name: 'darwin' },
18
+ 'darwin-arm64': { url: 'codexctl-aarch64-apple-darwin.tar.gz', ext: '.tar.gz', name: 'darwin' },
19
+ 'win32-x64': { url: 'codexctl-x86_64-pc-windows-msvc.zip', ext: '.zip', name: 'win32' }
20
20
  };
21
21
 
22
22
  function getPlatform() {
@@ -27,7 +27,7 @@ function getPlatform() {
27
27
  const binDir = path.join(__dirname, 'bin');
28
28
  const platform = getPlatform();
29
29
  const binName = platform.ext === '.zip' ? 'codexctl.exe' : 'codexctl';
30
- const binPath = path.join(binDir, binName);
30
+ const binPath = path.join(binDir, platform.name, binName);
31
31
 
32
32
  async function download() {
33
33
  if (!fs.existsSync(binDir)) fs.mkdirSync(binDir, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexctl",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Codex CLI Profile Manager - Manage multiple AI CLI accounts",
5
5
  "main": "index.js",
6
6
  "bin": {
File without changes