@mmmbuto/codex-cli-termux 0.55.4-termux → 0.55.5-termux

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 (3) hide show
  1. package/README.md +28 -24
  2. package/package.json +15 -19
  3. package/bin/codex.js +0 -18
package/README.md CHANGED
@@ -1,16 +1,24 @@
1
1
  # @mmmbuto/codex-cli-termux
2
2
 
3
- > OpenAI Codex CLI v0.55.0 pre-compiled for Android Termux (ARM64)
3
+ OpenAI Codex CLI v0.55.4 pre-compiled for Android Termux (ARM64)
4
4
 
5
- ## 🔧 v0.55.1 - Auto-Update Detection Fix
5
+ ## 🔧 v0.55.4 - Agent Mode Bash Execution Fix (Patch #8)
6
6
 
7
- **Critical fix**: Version parser now correctly detects updates with `-termux` suffix
7
+ **Critical fix for Termux/Android**: Codex Agent can now execute bash commands correctly
8
8
 
9
9
  ### What was broken
10
- Users on 0.53.x versions never saw update notifications for 0.55.0-termux
10
+ - Bash commands in Agent mode failed with "Permission denied"
11
+ - Affected all Termux installations (issue existed since upstream)
11
12
 
12
13
  ### What's fixed
13
- Auto-update detection now works correctly across all version ranges
14
+ - Disabled unsupported sandbox on Android (landlock/seccomp)
15
+ - ✅ Preserved LD_* environment variables required by Termux
16
+ - ✅ Fixed shell detection to use $SHELL instead of getpwuid()
17
+
18
+ ### Impact
19
+ Agent mode now works fully on Termux - can execute pkg, git, npm, and all bash commands.
20
+
21
+ ---
14
22
 
15
23
  ## Installation
16
24
 
@@ -21,33 +29,29 @@ npm install -g @mmmbuto/codex-cli-termux
21
29
  ## Usage
22
30
 
23
31
  ```bash
24
- codex login
25
- codex
32
+ codex --help
33
+ codex --version
34
+ codex login # Authenticate with OpenAI
35
+ codex # Start interactive Agent mode
26
36
  ```
27
37
 
28
38
  ## Requirements
29
39
 
30
- - Android 7+ (Termux)
31
- - ARM64 architecture
32
- - Node.js ≥ 14.0.0
40
+ - **Platform**: Android with Termux
41
+ - **Architecture**: ARM64
42
+ - **Node.js**: ≥ 14.0.0
33
43
 
34
- ## About
44
+ ## Source
35
45
 
36
- This is a pre-compiled build of the official OpenAI Codex CLI with minimal patches for Termux compatibility.
46
+ This package contains a pre-compiled binary of [OpenAI Codex](https://github.com/openai/codex) for ARM64 Termux.
37
47
 
38
- ### Total Patches Applied: 5
39
- 1. Browser login fix (termux-open-url)
40
- 2. RAM optimizations (compilation settings)
41
- 3. Version alignment
42
- 4. Auto-update URL redirect
43
- 5. **Version parser fix** (NEW in 0.55.1)
48
+ - **Upstream**: [github.com/openai/codex](https://github.com/openai/codex)
49
+ - **Fork**: [github.com/DioNanos/codex-termux](https://github.com/DioNanos/codex-termux)
44
50
 
45
- ## Links
51
+ ## License
46
52
 
47
- - **GitHub**: https://github.com/DioNanos/codex-termux
48
- - **Upstream**: https://github.com/openai/codex
49
- - **Patches**: https://github.com/DioNanos/codex-termux/blob/main/patches/README.md
53
+ Apache 2.0 - See [LICENSE](https://github.com/DioNanos/codex-termux/blob/main/LICENSE)
50
54
 
51
- ## License
55
+ ## Maintainer
52
56
 
53
- Apache-2.0 (same as upstream OpenAI Codex)
57
+ Davide A. Guglielmi <dev@mmmbuto.com>
package/package.json CHANGED
@@ -1,25 +1,21 @@
1
1
  {
2
2
  "name": "@mmmbuto/codex-cli-termux",
3
- "version": "0.55.4-termux",
4
- "description": "OpenAI Codex CLI v0.55.4 - Fix bash execution in Agent mode for Termux (Android ARM64)",
5
- "type": "module",
6
- "main": "bin/codex.js",
3
+ "version": "0.55.5-termux",
4
+ "description": "OpenAI Codex CLI v0.55.5 - Agent mode fully working on Termux (Android ARM64)",
5
+ "main": "bin/codex",
7
6
  "bin": {
8
- "codex": "bin/codex.js"
7
+ "codex": "./bin/codex"
8
+ },
9
+ "scripts": {
10
+ "postinstall": "echo '✅ @mmmbuto/codex-cli-termux installed successfully'"
9
11
  },
10
- "files": [
11
- "bin/codex.js",
12
- "bin/codex"
13
- ],
14
12
  "keywords": [
15
13
  "codex",
16
14
  "openai",
17
15
  "termux",
18
16
  "android",
19
17
  "arm64",
20
- "cli",
21
- "ai",
22
- "coding-agent"
18
+ "cli"
23
19
  ],
24
20
  "author": "Davide A. Guglielmi <dev@mmmbuto.com>",
25
21
  "license": "Apache-2.0",
@@ -27,18 +23,18 @@
27
23
  "type": "git",
28
24
  "url": "https://github.com/DioNanos/codex-termux.git"
29
25
  },
30
- "homepage": "https://github.com/DioNanos/codex-termux#readme",
31
26
  "bugs": {
32
27
  "url": "https://github.com/DioNanos/codex-termux/issues"
33
28
  },
34
- "engines": {
35
- "node": ">=14.0.0"
36
- },
29
+ "homepage": "https://github.com/DioNanos/codex-termux#readme",
37
30
  "os": [
38
- "android",
39
- "linux"
31
+ "linux",
32
+ "android"
40
33
  ],
41
34
  "cpu": [
42
35
  "arm64"
43
- ]
36
+ ],
37
+ "engines": {
38
+ "node": ">=14.0.0"
39
+ }
44
40
  }
package/bin/codex.js DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- import { spawn } from 'child_process';
3
- import { fileURLToPath } from 'url';
4
- import { dirname, join } from 'path';
5
-
6
- const __filename = fileURLToPath(import.meta.url);
7
- const __dirname = dirname(__filename);
8
-
9
- const binaryPath = join(__dirname, 'codex');
10
-
11
- const child = spawn(binaryPath, process.argv.slice(2), {
12
- stdio: 'inherit',
13
- windowsHide: true,
14
- });
15
-
16
- child.on('exit', (code) => {
17
- process.exit(code);
18
- });