@mmmbuto/codex-cli-termux 0.56.3-termux โ†’ 0.57.0-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.
package/README.md CHANGED
@@ -1,127 +1,80 @@
1
- # ๐Ÿค– Codex CLI - Termux Edition
1
+ # @mmmbuto/codex-cli-termux
2
2
 
3
- > **Pre-compiled OpenAI Codex for Android Termux (ARM64)**
3
+ OpenAI Codex CLI v0.57.0 pre-compiled for Android Termux (ARM64)
4
4
 
5
- ## What This Is
5
+ ## ๐Ÿš€ v0.57.0 - Latest Release
6
6
 
7
- Official OpenAI Codex CLI compiled for Android Termux. Since Termux is not officially supported by upstream, we apply minimal patches only for critical compatibility issues.
7
+ **Synced with upstream OpenAI Codex rust-v0.57.0 (25 commits)**
8
8
 
9
- ### What We Do:
10
- โœ… **Use official OpenAI Codex source** (https://github.com/openai/codex)
11
- โœ… **Compile for ARM64** (Android Termux native)
12
- โœ… **Apply minimal patches** only for Termux-specific issues not addressed upstream
13
- โœ… **Package as npm** for easy installation
14
- โœ… **Maintain full Apache 2.0 compliance** with OpenAI attribution
9
+ ### Upstream improvements
10
+ - โŒจ๏ธ **TUI Navigation**: CTRL-n / CTRL-p for navigating slash commands, files, history
11
+ - ๐Ÿ”ง **Unified Exec**: Improved safe commands handling, process group timeout fixes
12
+ - ๐ŸชŸ **WSL Support**: Path normalization for Windows Subsystem for Linux
13
+ - ๐Ÿš€ **App-server v2**: New Thread/Turn APIs, account endpoints
14
+ - ๐Ÿงน **Refactoring**: Terminal cleanup (deprecated flush logic removed)
15
15
 
16
- ### What We DON'T Do:
17
- โŒ **NO new features**
18
- โŒ **NO behavior modifications** (works exactly like upstream)
19
- โŒ **NO replacement** of official Codex
20
-
21
- ### ๐Ÿ”ง Compatibility Patches
22
-
23
- We only apply patches for issues that:
24
- - **Prevent Codex from working on Termux**
25
- - **Are not addressed by upstream** (Termux is not officially supported)
26
- - **Are minimal and well-documented**
27
-
28
- **Current patches**: See [patches/](./patches/) directory for full documentation.
29
-
30
- **Found an issue?** Well-documented bug reports with reproduction steps are welcome! Open an [issue](https://github.com/DioNanos/codex-termux/issues).
31
-
32
- ---
33
-
34
- ## ๐Ÿ“‹ Prerequisites
35
-
36
- ```bash
37
- # Update Termux packages
38
- pkg update && pkg upgrade -y
39
-
40
- # Install Node.js
41
- pkg install nodejs-lts -y
42
-
43
- # Verify
44
- node --version # v14+
45
- npm --version # v6+
46
- ```
47
-
48
- **Requirements:**
49
- - Android 7+ (Termux)
50
- - ARM64 architecture
51
- - Node.js โ‰ฅ 14.0.0
52
- - ~50MB storage
16
+ ### Termux-specific patches (maintained)
17
+ - โœ… Android auto-update disabled (manual update instructions shown)
18
+ - โœ… `termux-open-url` for browser login (avoids ndk-context crash)
19
+ - โœ… RAM optimizations for 16GB devices (lto=false, codegen-units=16)
20
+ - โœ… Disabled unsupported sandbox on Android (landlock/seccomp)
21
+ - โœ… Preserved LD_* environment variables required by Termux
22
+ - โœ… Fixed shell detection ($SHELL instead of getpwuid)
53
23
 
54
24
  ---
55
25
 
56
- ## ๐Ÿ“ฆ Installation
57
-
58
- ### Via npm (Recommended)
26
+ ## Installation
59
27
 
60
28
  ```bash
61
29
  npm install -g @mmmbuto/codex-cli-termux
62
30
  ```
63
31
 
64
- ### Verify Installation
32
+ ## Usage
65
33
 
66
34
  ```bash
67
- codex --version
68
- # Output: codex-cli 0.56.0
69
-
70
- codex login
71
- # Opens browser for authentication
35
+ codex --version # Show version (0.57.0)
36
+ codex login # Authenticate with OpenAI
37
+ codex # Start interactive TUI
38
+ codex exec "prompt" # Non-interactive mode
39
+ codex --help # Full documentation
72
40
  ```
73
41
 
74
- **Links:**
75
- - npm: https://www.npmjs.com/package/@mmmbuto/codex-cli-termux
76
- - Releases: https://github.com/DioNanos/codex-termux/releases
77
- - Upstream: https://github.com/openai/codex
78
-
79
- ---
80
-
81
- ## ๐Ÿš€ Usage
82
-
83
- Same as official Codex CLI:
42
+ ### New in 0.57.0
84
43
 
85
44
  ```bash
86
- # Login to OpenAI
87
- codex login
88
-
89
- # Start chat
45
+ # Try new TUI navigation
90
46
  codex
91
-
92
- # Help
93
- codex --help
47
+ # Press CTRL-n / CTRL-p to navigate slash commands, files, history
94
48
  ```
95
49
 
96
- For full documentation, see [OpenAI Codex docs](https://github.com/openai/codex).
50
+ ## Requirements
97
51
 
98
- ---
52
+ - **Platform**: Android with Termux
53
+ - **Architecture**: ARM64
54
+ - **Node.js**: โ‰ฅ 14.0.0
55
+ - **Storage**: ~50MB
99
56
 
100
- ## ๐Ÿ”จ Building from Source
57
+ ## Source
101
58
 
102
- See [BUILDING.md](./BUILDING.md) for compilation instructions.
59
+ This package contains a pre-compiled binary of [OpenAI Codex](https://github.com/openai/codex) for ARM64 Termux.
103
60
 
104
- ---
61
+ - **Upstream**: [github.com/openai/codex](https://github.com/openai/codex) (rust-v0.57.0)
62
+ - **Fork**: [github.com/DioNanos/codex-termux](https://github.com/DioNanos/codex-termux)
63
+ - **Changelog**: https://github.com/openai/codex/compare/rust-v0.56.0...rust-v0.57.0
105
64
 
106
- ## ๐Ÿ“ License
65
+ ## Compatibility
107
66
 
108
- This project maintains full compliance with the Apache 2.0 license from OpenAI Codex.
67
+ Fully compatible with official OpenAI Codex. Only minimal patches for Android/Termux compatibility. No behavior modifications.
109
68
 
110
- **Original work**: Copyright OpenAI (https://github.com/openai/codex)
111
- **Termux port**: Minimal patches for Android compatibility
69
+ ## License
112
70
 
113
- See [LICENSE](./LICENSE) file for details.
71
+ Apache 2.0 - See [LICENSE](https://github.com/DioNanos/codex-termux/blob/main/LICENSE)
114
72
 
115
- ---
116
-
117
- ## ๐Ÿ™ Credits
73
+ **Original work**: Copyright OpenAI
74
+ **Termux port**: Minimal patches for Android compatibility
118
75
 
119
- - **OpenAI** for the amazing Codex CLI
120
- - **Termux** community for Android terminal environment
121
- - All contributors to upstream Codex project
76
+ ## Maintainer
122
77
 
123
- ---
78
+ Davide A. Guglielmi <dev@mmmbuto.com>
124
79
 
125
- **Version**: Based on OpenAI Codex 0.56.0
126
- **Platform**: Android Termux ARM64
127
- **Maintained**: Community-driven, not affiliated with OpenAI
80
+ **Last updated**: 2025-11-10
package/bin/codex CHANGED
Binary file
package/package.json CHANGED
@@ -1,25 +1,21 @@
1
1
  {
2
2
  "name": "@mmmbuto/codex-cli-termux",
3
- "version": "0.56.3-termux",
4
- "description": "OpenAI Codex CLI v0.56.0 pre-compiled for Android Termux (ARM64)",
5
- "type": "module",
6
- "main": "bin/codex.js",
3
+ "version": "0.57.0-termux",
4
+ "description": "OpenAI Codex CLI v0.57.0 - Termux build (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
- });