@mmmbuto/codex-cli-termux 0.62.1-termux → 0.64.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.
package/README.md CHANGED
@@ -78,7 +78,7 @@ npm install -g @mmmbuto/codex-cli-termux
78
78
 
79
79
  ```bash
80
80
  codex --version
81
- # Output: codex-cli 0.62.1
81
+ # Output: codex-cli 0.64.1 (latest) or use @stable for 0.62.1
82
82
 
83
83
  codex login
84
84
  # Opens browser for authentication
@@ -174,7 +174,7 @@ This project includes a comprehensive test suite specifically designed for Termu
174
174
  **Test Suite**: [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
175
175
 
176
176
  **Coverage**:
177
- - ✅ **82 automated tests** across 12 categories
177
+ - ✅ **82 automated tests** across 12 categories (v1.2)
178
178
  - ✅ **10 Termux-specific tests** validating all 8 compatibility patches
179
179
  - ✅ **8 Package & Binary tests** for npm installation verification
180
180
  - ✅ File operations, shell execution, environment detection
@@ -192,7 +192,7 @@ codex
192
192
  ```
193
193
 
194
194
  Codex will automatically:
195
- 1. Execute all 74 tests sequentially
195
+ 1. Execute all 82 tests sequentially
196
196
  2. Report PASS/FAIL for each test
197
197
  3. Generate a final summary with:
198
198
  - Total passed/failed counts
@@ -229,16 +229,16 @@ Codex will automatically:
229
229
  - At least 80% overall pass rate
230
230
  - No critical crashes
231
231
 
232
- **Example Report** (v0.62.1):
232
+ **Example Report** (v0.64.1):
233
233
  ```
234
234
  CODEX CLI TEST SUITE - FINAL REPORT
235
235
  ====================================
236
236
  Platform: Android Termux ARM64 (ROG Phone 3)
237
- Codex Version: 0.62.1
237
+ Codex Version: 0.64.1
238
238
  Total Tests: 49
239
- ✅ Passed: 46
239
+ ✅ Passed: 47
240
240
  ❌ Failed: 0
241
- ⚠️ Skipped: 3 (WebSearch, Git - optional)
241
+ ⚠️ Skipped: 2 (Git optional)
242
242
 
243
243
  Termux-Specific: 10/10 passed ✅
244
244
  Package & Binary: 8/8 passed ✅
@@ -290,7 +290,8 @@ See [LICENSE](./LICENSE) file for details.
290
290
 
291
291
  ---
292
292
 
293
- **Version**: Based on OpenAI Codex 0.62.1 (includes GPT-5.1 MAX support)
293
+ **Version (latest)**: Based on OpenAI Codex 0.64.0-alpha.9 (includes GPT-5.1 MAX support)
294
+ **Dist-tags**: `latest` = 0.64.1-termux · `stable` = 0.62.1-termux
294
295
  **Platform**: Android Termux ARM64
295
296
  **Maintained**: Community-driven, not affiliated with OpenAI
296
297
 
@@ -298,103 +299,20 @@ See [LICENSE](./LICENSE) file for details.
298
299
 
299
300
  ## 📜 Changelog
300
301
 
301
- ### v0.62.0-termux (2025-11-21)
302
-
303
- **Update**: Synced with upstream OpenAI Codex rust-v0.62.0 (40+ commits from v0.61.0)
304
-
305
- > **Note**: Upstream rust-v0.63.0 skipped - only 3 minor commits (duplicate bash fix, drop unused param, declined status). Will sync with next significant release.
306
-
307
- **Upstream Features**:
308
- - 🆕 **codex-shell-tool-mcp**: New MCP server for shell tools
309
- - 🆕 **execpolicycheck**: New CLI command for exec policy debugging
310
- - 🎯 **TUI reasoning default**: Changed to "medium" level
311
- - ⏱️ **Shell timeout**: Increased to 1 hour for long-running commands
312
- - 🎬 **TUI animations toggle**: Feature switch to disable animations
313
- - 🔄 **resume --last**: Allow reading prompt from last session
314
-
315
- **Breaking Changes**:
316
- - `execpolicy` migration: `execpolicy2` `execpolicy`, old → `execpolicy-legacy`
317
- - Removed `tiktoken-rs` dependency
318
- - `ExecParams.timeout_ms` replaced with `ExecExpiration` enum
319
-
320
- **Termux-Specific**:
321
- - ✅ **All 9 patches preserved and verified** (no conflicts)
322
- - ✅ **Build optimized for 8GB RAM**: Compiled in 10m 35s on ROG Phone 3
323
- - ✅ **Binary size**: 35MB
324
- - ✅ **Test Suite**: 39/42 passed (92.9%), 9/10 Termux-specific
325
-
326
- **Stats**: 195 files changed, +5915 insertions, -2293 deletions
327
-
328
- Full upstream changelog: https://github.com/openai/codex/compare/rust-v0.61.0...rust-v0.62.0
329
-
330
- ---
331
-
332
- ### v0.61.0-termux (2025-11-20)
333
-
334
- **Update**: Synced with upstream OpenAI Codex rust-v0.61.0 (13 commits from v0.60.1)
335
-
336
- **Upstream Features**:
337
- - 🚀 **Single Pass Truncation**: Improved performance for context management
338
- - 🔐 **execpolicy2 Integration**: Enhanced security with new execution policy system
339
- - 🐚 **Shell Fallback Improvements**: Better shell detection with automatic fallbacks (bash → zsh)
340
- - 🎨 **Model Migration UX**: Stop showing migration screen after first time
341
- - 🪟 **World-Writable Warnings**: Reduced false positives on Android
342
-
343
- **Termux-Specific**:
344
- - ✅ **All 8 patches preserved and verified**
345
- - ✅ **Shell fallback compatible**: Android `$SHELL` detection enhanced with upstream fallbacks
346
- - ✅ **Build optimized for 8GB RAM**: Compiled successfully on ROG Phone 3 (9m 06s)
347
- - ✅ **Binary size**: 42MB (+13% vs 0.60.1 due to execpolicy2)
348
- - ✅ **Test Suite**: 40/42 tests PASSED (95.2%), 10/10 Termux-specific tests
349
-
350
- **Patches Validated**:
351
- 1. ✅ Browser login (`termux-open-url`)
352
- 2. ✅ RAM optimizations (`lto=false`, `codegen-units=16`)
353
- 3. ✅ Android shell detection (`$SHELL` env var)
354
- 4. ✅ Android sandbox disabled
355
- 5. ✅ LD_* environment variables preserved
356
- 6. ✅ Auto-update URL (`DioNanos/codex-termux`)
357
- 7. ✅ Version parser (`-termux` suffix support)
358
- 8. ✅ NPM package name (`@mmmbuto/codex-cli-termux`)
359
-
360
- **Breaking Changes**: None - fully backward compatible
361
-
362
- **Testing**: Comprehensive test suite with 74 tests available at [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
363
-
364
- Full upstream changelog: https://github.com/openai/codex/compare/rust-v0.60.1...rust-v0.61.0
365
-
366
- ---
367
-
368
- ### v0.60.1-termux (2025-11-20)
369
-
370
- **Major Update**: Synced with upstream OpenAI Codex rust-v0.60.1 (250+ commits)
371
-
372
- **Upstream Features**:
373
- - 🤖 **GPT-5.1 MAX Support**: New MAX model with enhanced capabilities and performance
374
- - 🔧 **App-Server Protocol**: Enhanced v2 APIs for thread management
375
- - ⚡ **Performance Optimizations**: Improved TUI responsiveness and memory usage
376
- - 🪟 **Windows Sandbox**: Enhanced security features (not applicable to Termux)
377
- - 🐛 **Bug Fixes**: 250+ commits with stability improvements and fixes
378
-
379
- **Termux-Specific**:
380
- - ✅ **All 8 patches preserved and verified**
381
- - ✅ **Patch #8 updated**: Shell detection refactored for upstream changes
382
- - ✅ **Build optimized for 8GB RAM**: Compiled successfully on ROG Phone 3
383
- - ✅ **Binary size**: 37MB (24% smaller than 0.58.4)
384
- - ✅ **Test Suite**: 74 automated tests including 10 Termux-specific validations
385
-
386
- **Patches Validated**:
387
- 1. ✅ Browser login (`termux-open-url`)
388
- 2. ✅ RAM optimizations (`lto=false`, `codegen-units=16`)
389
- 3. ✅ Android shell detection (`$SHELL` env var)
390
- 4. ✅ Android sandbox disabled
391
- 5. ✅ LD_* environment variables preserved
392
- 6. ✅ Auto-update URL (`DioNanos/codex-termux`)
393
- 7. ✅ Version parser (`-termux` suffix support)
394
- 8. ✅ NPM package name (`@mmmbuto/codex-cli-termux`)
395
-
396
- **Breaking Changes**: None - fully backward compatible
397
-
398
- **Testing**: Comprehensive test suite with 74 tests available at [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
399
-
400
- Full upstream changelog: https://github.com/openai/codex/compare/rust-v0.58.0...rust-v0.60.1
302
+ ### v0.64.1-termux (2025-12-03) — latest
303
+ - **Binary**: single multitool `codex`; `codex-exec` remains wrapper/symlink to the same ~47 MB binary.
304
+ - **Package**: `package.json` exposes `codex` and `codex-exec`; `bin/` ships JS wrappers + symlink.
305
+ - **Termux runtime**: LD_LIBRARY_PATH enforced to `$PREFIX/lib` via `~/.zshenv` (preserves libs for bash/exec).
306
+ - **Tests**: Suite v1.2 47/49 pass (10/10 Termux, 8/8 Package), Git optional skipped; wifi Termux-API warning non-blocking.
307
+ - **Upstream (rust-v0.64.0-alpha.9) highlights**: app-server turn/diff/updated events; thread_id/turn_id in notifications; unified exec custom env + pruning; MCP elicitations support; shell-tool-mcp login; config management; skip-upgrade option; Windows sandbox treats `.git` as read-only; TTY fail-fast; macOS 13 dropped.
308
+ - **Install**: `npm i -g @mmmbuto/codex-cli-termux` (dist-tag `latest`)
309
+ - **Verify**: `codex --version` → `codex-cli 0.64.1`; `codex-exec --version` `codex-cli 0.64.1`
310
+ - **Report**: see `CODEX_TEST_REPORT_v0.64.1.md` (47/49 pass)
311
+
312
+ ### v0.62.1-termux (2025-11-22) stable
313
+ - **Dist-tag**: `stable` (install with `npm i -g @mmmbuto/codex-cli-termux@stable`)
314
+ - **Upstream highlights (rust-v0.62.0)**: codex-shell-tool-mcp; `execpolicycheck`; TUI reasoning default → medium; shell timeout 1h; TUI animations toggle; `resume --last`; `execpolicy` rename (`execpolicy2`→`execpolicy`, old→`execpolicy-legacy`); `ExecParams.timeout_ms`→`ExecExpiration`; removal of `tiktoken-rs`.
315
+ - ✅ **Termux patches**: all 9 verified (browser login, RAM opts, version parser/URL/npm name, LD_* preservation + sandbox disable + shell detection, auto-update execution).
316
+ - ✅ **Build**: optimized for 8GB (ROG Phone 3), binary ~35MB.
317
+ - **Tests**: 39/42 pass (92.9%), 9/10 Termux-specific.
318
+ - 🔖 Upstream compare: https://github.com/openai/codex/compare/rust-v0.61.0...rust-v0.62.0
package/bin/codex CHANGED
Binary file
@@ -0,0 +1,20 @@
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
+ const args = ['exec', ...process.argv.slice(2)];
12
+
13
+ const child = spawn(binaryPath, args, {
14
+ stdio: 'inherit',
15
+ env: { ...process.env, CODEX_MANAGED_BY_NPM: '1' }
16
+ });
17
+
18
+ child.on('exit', (code) => {
19
+ process.exit(code);
20
+ });
package/package.json CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "@mmmbuto/codex-cli-termux",
3
- "version": "0.62.1-termux",
4
- "description": "OpenAI Codex CLI v0.62.0 multitool - TUI + exec subcommand + login/mcp. Pre-compiled for Android Termux (ARM64). Use 'codex' for TUI, 'codex exec --json' for automation.",
3
+ "version": "0.64.1-termux",
4
+ "description": "OpenAI Codex CLI v0.64.1 - Multitool with TUI + automation mode. Pre-compiled for Android Termux (ARM64). Use 'codex' for TUI, 'codex exec --json' for automation.",
5
5
  "type": "module",
6
6
  "main": "bin/codex.js",
7
7
  "bin": {
8
- "codex": "bin/codex.js"
8
+ "codex": "bin/codex.js",
9
+ "codex-exec": "bin/codex-exec.js"
9
10
  },
10
11
  "files": [
11
12
  "bin/codex.js",
13
+ "bin/codex-exec.js",
12
14
  "bin/codex",
15
+ "bin/codex-exec",
13
16
  "README.md"
14
17
  ],
15
18
  "keywords": [