@mmmbuto/codex-cli-termux 0.57.0-termux โ†’ 0.58.1-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 (4) hide show
  1. package/README.md +136 -46
  2. package/bin/codex +0 -0
  3. package/bin/codex.js +19 -0
  4. package/package.json +21 -16
package/README.md CHANGED
@@ -1,80 +1,170 @@
1
- # @mmmbuto/codex-cli-termux
1
+ # ๐Ÿค– Codex CLI - Termux Edition
2
2
 
3
- OpenAI Codex CLI v0.57.0 pre-compiled for Android Termux (ARM64)
3
+ > **Pre-compiled OpenAI Codex for Android Termux (ARM64)**
4
4
 
5
- ## ๐Ÿš€ v0.57.0 - Latest Release
5
+ ## What This Is
6
6
 
7
- **Synced with upstream OpenAI Codex rust-v0.57.0 (25 commits)**
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.
8
8
 
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)
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
15
15
 
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)
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).
23
31
 
24
32
  ---
25
33
 
26
- ## Installation
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
53
+
54
+ ---
55
+
56
+ ## ๐Ÿ“ฆ Installation
57
+
58
+ ### Via npm (Recommended)
27
59
 
28
60
  ```bash
29
61
  npm install -g @mmmbuto/codex-cli-termux
30
62
  ```
31
63
 
32
- ## Usage
64
+ ### Verify Installation
33
65
 
34
66
  ```bash
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
67
+ codex --version
68
+ # Output: codex-cli 0.58.0
69
+
70
+ codex login
71
+ # Opens browser for authentication
40
72
  ```
41
73
 
42
- ### New in 0.57.0
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:
43
84
 
44
85
  ```bash
45
- # Try new TUI navigation
86
+ # Login to OpenAI
87
+ codex login
88
+
89
+ # Start chat
46
90
  codex
47
- # Press CTRL-n / CTRL-p to navigate slash commands, files, history
91
+
92
+ # Help
93
+ codex --help
48
94
  ```
49
95
 
50
- ## Requirements
96
+ For full documentation, see [OpenAI Codex docs](https://github.com/openai/codex).
51
97
 
52
- - **Platform**: Android with Termux
53
- - **Architecture**: ARM64
54
- - **Node.js**: โ‰ฅ 14.0.0
55
- - **Storage**: ~50MB
98
+ ---
56
99
 
57
- ## Source
100
+ ## ๐Ÿ”จ Building from Source
58
101
 
59
- This package contains a pre-compiled binary of [OpenAI Codex](https://github.com/openai/codex) for ARM64 Termux.
102
+ See [BUILDING.md](./BUILDING.md) for compilation instructions.
60
103
 
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
104
+ ---
64
105
 
65
- ## Compatibility
106
+ ## ๐Ÿ“ License
66
107
 
67
- Fully compatible with official OpenAI Codex. Only minimal patches for Android/Termux compatibility. No behavior modifications.
108
+ This project maintains full compliance with the Apache 2.0 license from OpenAI Codex.
68
109
 
69
- ## License
110
+ **Original work**: Copyright OpenAI (https://github.com/openai/codex)
111
+ **Termux port**: Minimal patches for Android compatibility
70
112
 
71
- Apache 2.0 - See [LICENSE](https://github.com/DioNanos/codex-termux/blob/main/LICENSE)
113
+ See [LICENSE](./LICENSE) file for details.
72
114
 
73
- **Original work**: Copyright OpenAI
74
- **Termux port**: Minimal patches for Android compatibility
115
+ ---
116
+
117
+ ## ๐Ÿ™ Credits
118
+
119
+ - **OpenAI** for the amazing Codex CLI
120
+ - **Termux** community for Android terminal environment
121
+ - All contributors to upstream Codex project
122
+
123
+ ---
124
+
125
+ **Version**: Based on OpenAI Codex 0.58.0 (includes GPT-5.1 support)
126
+ **Platform**: Android Termux ARM64
127
+ **Maintained**: Community-driven, not affiliated with OpenAI
128
+
129
+ ---
130
+
131
+ ## ๐Ÿ“œ Changelog
132
+
133
+ ### v0.58.0-termux (2025-11-13)
134
+
135
+ Synced with upstream OpenAI Codex rust-v0.58.0 (62 commits)
75
136
 
76
- ## Maintainer
137
+ **Major features:**
138
+ - ๐Ÿค– **GPT-5.1 Support**: New model family (gpt-5.1-codex, gpt-5.1-codex-mini, gpt-5.1)
139
+ - ๐Ÿง  **Adaptive Reasoning**: Configurable effort levels (Low, Medium, High)
140
+ - โŒจ๏ธ **Enhanced TUI**: Job control, improved navigation, better model picker
141
+ - ๐Ÿ”ง **Shell Detection**: Centralized command generation for unified exec
142
+ - ๐Ÿ“Š **App-server v2**: Thread/Turn APIs improvements
77
143
 
78
- Davide A. Guglielmi <dev@mmmbuto.com>
144
+ **Termux-specific:**
145
+ - โœ… All Android patches preserved and verified working
146
+ - โœ… Browser login fix (termux-open-url)
147
+ - โœ… RAM optimizations (lto=false, codegen-units=16)
148
+ - โœ… Auto-update for @mmmbuto/codex-cli-termux
149
+
150
+ Full upstream changelog: https://github.com/openai/codex/compare/rust-v0.57.0...rust-v0.58.0
151
+
152
+ ---
153
+
154
+ ### v0.57.0-termux (2025-11-10)
155
+
156
+ Synced with upstream OpenAI Codex rust-v0.57.0 (25 commits)
157
+
158
+ **Upstream improvements:**
159
+ - โŒจ๏ธ **TUI Navigation**: CTRL-n / CTRL-p for navigating slash commands, files, history
160
+ - ๐Ÿ”ง **Unified Exec**: Improved safe commands handling, process group timeout fixes
161
+ - ๐ŸชŸ **WSL Support**: Path normalization for Windows Subsystem for Linux
162
+ - ๐Ÿš€ **App-server v2**: New Thread/Turn APIs, account endpoints
163
+ - ๐Ÿงน **Refactoring**: Terminal cleanup (deprecated flush logic removed)
164
+
165
+ **Termux-specific:**
166
+ - โœ… Android auto-update disabled (manual update instructions shown)
167
+ - โœ… `termux-open-url` for browser login (ndk-context crash fix maintained)
168
+ - โœ… RAM optimizations for 16GB devices (lto=false, codegen-units=16)
79
169
 
80
- **Last updated**: 2025-11-10
170
+ Full upstream changelog: https://github.com/openai/codex/compare/rust-v0.56.0...rust-v0.57.0
package/bin/codex CHANGED
Binary file
package/bin/codex.js ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawn } from 'child_process';
4
+ import { fileURLToPath } from 'url';
5
+ import { dirname, join } from 'path';
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = dirname(__filename);
9
+
10
+ const binaryPath = join(__dirname, 'codex');
11
+
12
+ const child = spawn(binaryPath, process.argv.slice(2), {
13
+ stdio: 'inherit',
14
+ env: { ...process.env, CODEX_MANAGED_BY_NPM: '1' }
15
+ });
16
+
17
+ child.on('exit', (code) => {
18
+ process.exit(code);
19
+ });
package/package.json CHANGED
@@ -1,40 +1,45 @@
1
1
  {
2
2
  "name": "@mmmbuto/codex-cli-termux",
3
- "version": "0.57.0-termux",
4
- "description": "OpenAI Codex CLI v0.57.0 - Termux build (Android ARM64)",
5
- "main": "bin/codex",
3
+ "version": "0.58.1-termux",
4
+ "description": "OpenAI Codex CLI v0.58.0 with GPT-5.1 support, pre-compiled for Android Termux (ARM64)",
5
+ "type": "module",
6
+ "main": "bin/codex.js",
6
7
  "bin": {
7
- "codex": "./bin/codex"
8
- },
9
- "scripts": {
10
- "postinstall": "echo 'โœ… @mmmbuto/codex-cli-termux installed successfully'"
8
+ "codex": "bin/codex.js"
11
9
  },
10
+ "files": [
11
+ "bin/codex.js",
12
+ "bin/codex",
13
+ "README.md"
14
+ ],
12
15
  "keywords": [
13
16
  "codex",
14
17
  "openai",
15
18
  "termux",
16
19
  "android",
17
20
  "arm64",
18
- "cli"
21
+ "cli",
22
+ "ai",
23
+ "coding-agent"
19
24
  ],
20
- "author": "Davide A. Guglielmi <dev@mmmbuto.com>",
25
+ "author": "DioNanos",
21
26
  "license": "Apache-2.0",
22
27
  "repository": {
23
28
  "type": "git",
24
29
  "url": "https://github.com/DioNanos/codex-termux.git"
25
30
  },
31
+ "homepage": "https://github.com/DioNanos/codex-termux#readme",
26
32
  "bugs": {
27
33
  "url": "https://github.com/DioNanos/codex-termux/issues"
28
34
  },
29
- "homepage": "https://github.com/DioNanos/codex-termux#readme",
35
+ "engines": {
36
+ "node": ">=14.0.0"
37
+ },
30
38
  "os": [
31
- "linux",
32
- "android"
39
+ "android",
40
+ "linux"
33
41
  ],
34
42
  "cpu": [
35
43
  "arm64"
36
- ],
37
- "engines": {
38
- "node": ">=14.0.0"
39
- }
44
+ ]
40
45
  }