@mmmbuto/codex-cli-termux 0.62.0-termux โ†’ 0.64.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
@@ -78,7 +78,7 @@ npm install -g @mmmbuto/codex-cli-termux
78
78
 
79
79
  ```bash
80
80
  codex --version
81
- # Output: codex-tui 0.62.0
81
+ # Output: codex-cli 0.62.1
82
82
 
83
83
  codex login
84
84
  # Opens browser for authentication
@@ -108,6 +108,30 @@ codex --help
108
108
 
109
109
  For full documentation, see [OpenAI Codex docs](https://github.com/openai/codex).
110
110
 
111
+ ### Non-Interactive Mode (Automation)
112
+
113
+ The `codex` binary is a multitool that includes the `exec` subcommand for automation and scripting:
114
+
115
+ ```bash
116
+ # Run non-interactively with JSON output
117
+ codex exec --json "list files in current directory"
118
+
119
+ # With custom sandbox mode
120
+ codex exec --json -s danger-full-access "run npm test"
121
+
122
+ # Skip git repo check for non-repo directories
123
+ codex exec --json --skip-git-repo-check "echo hello"
124
+
125
+ # Output to file
126
+ codex exec --json -o output.json "describe this project"
127
+ ```
128
+
129
+ **Key flags:**
130
+ - `--json` - Output events as JSONL (for parsing)
131
+ - `-s, --sandbox` - Sandbox mode: `read-only`, `workspace-write`, `danger-full-access`
132
+ - `--skip-git-repo-check` - Run outside git repositories
133
+ - `-o, --output-last-message` - Save final response to file
134
+
111
135
  ### Execpolicy Quickstart
112
136
 
113
137
  Codex can enforce your own rules-based execution policy before it runs shell commands.
@@ -131,15 +155,15 @@ prefix_rule(
131
155
 
132
156
  In this example rule, if Codex wants to run commands with the prefix `git push` or `git fetch`, it will first ask for user approval.
133
157
 
134
- Use [`execpolicy` CLI](./codex-rs/execpolicy/README.md) to preview decisions for policy files:
158
+ Use the `codex execpolicy check` subcommand to preview decisions before you save a rule (see the [`codex-execpolicy` README](./codex-rs/execpolicy/README.md) for syntax details):
135
159
 
136
160
  ```shell
137
- cargo run -p codex-execpolicy -- check --policy ~/.codex/policy/default.codexpolicy git push origin main
161
+ codex execpolicy check --policy ~/.codex/policy/default.codexpolicy git push origin main
138
162
  ```
139
163
 
140
- Pass multiple `--policy` flags to test how several files combine. See the [`codex-rs/execpolicy` README](./codex-rs/execpolicy/README.md) for a more detailed walkthrough of the available syntax.
164
+ Pass multiple `--policy` flags to test how several files combine, and use `--pretty` for formatted JSON output. See the [`codex-rs/execpolicy` README](./codex-rs/execpolicy/README.md) for a more detailed walkthrough of the available syntax.
141
165
 
142
- ---
166
+ ## Note: `execpolicy` commands are still in preview. The API may have breaking changes in the future.
143
167
 
144
168
  ## ๐Ÿงช Testing & Validation
145
169
 
@@ -150,8 +174,9 @@ This project includes a comprehensive test suite specifically designed for Termu
150
174
  **Test Suite**: [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
151
175
 
152
176
  **Coverage**:
153
- - โœ… **74 automated tests** across 11 categories
177
+ - โœ… **82 automated tests** across 12 categories
154
178
  - โœ… **10 Termux-specific tests** validating all 8 compatibility patches
179
+ - โœ… **8 Package & Binary tests** for npm installation verification
155
180
  - โœ… File operations, shell execution, environment detection
156
181
  - โœ… Android permissions, library paths, package manager
157
182
  - โœ… Error handling and edge cases
@@ -187,6 +212,7 @@ Codex will automatically:
187
212
  9. Error Handling (3 tests)
188
213
  10. **Termux-Specific (10 tests)** โญ - Validates all Android patches
189
214
  11. Cleanup (1 test)
215
+ 12. **Package & Binary (8 tests)** โญ - Validates npm installation and binaries
190
216
 
191
217
  **Termux-Specific Tests Include**:
192
218
  - โœ… Environment paths (`$PREFIX`, `$HOME`, `$LD_LIBRARY_PATH`)
@@ -203,18 +229,19 @@ Codex will automatically:
203
229
  - At least 80% overall pass rate
204
230
  - No critical crashes
205
231
 
206
- **Example Report** (v0.61.0):
232
+ **Example Report** (v0.62.1):
207
233
  ```
208
234
  CODEX CLI TEST SUITE - FINAL REPORT
209
235
  ====================================
210
- Platform: Android Termux ARM64
211
- Codex Version: 0.61.0
212
- Total Tests: 42
213
- โœ… Passed: 40
236
+ Platform: Android Termux ARM64 (ROG Phone 3)
237
+ Codex Version: 0.62.1
238
+ Total Tests: 49
239
+ โœ… Passed: 46
214
240
  โŒ Failed: 0
215
- โš ๏ธ Skipped: 2 (WebSearch, Git - optional)
241
+ โš ๏ธ Skipped: 3 (WebSearch, Git - optional)
216
242
 
217
243
  Termux-Specific: 10/10 passed โœ…
244
+ Package & Binary: 8/8 passed โœ…
218
245
 
219
246
  VERDICT: โš ๏ธ PASS WITH WARNINGS
220
247
  ```
@@ -263,7 +290,7 @@ See [LICENSE](./LICENSE) file for details.
263
290
 
264
291
  ---
265
292
 
266
- **Version**: Based on OpenAI Codex 0.62.0 (includes GPT-5.1 MAX support)
293
+ **Version**: Based on OpenAI Codex 0.62.1 (includes GPT-5.1 MAX support)
267
294
  **Platform**: Android Termux ARM64
268
295
  **Maintained**: Community-driven, not affiliated with OpenAI
269
296
 
@@ -271,10 +298,18 @@ See [LICENSE](./LICENSE) file for details.
271
298
 
272
299
  ## ๐Ÿ“œ Changelog
273
300
 
301
+ ### v0.62.1-termux (2025-11-22)
302
+
303
+ **Fix**: Switched to multitool binary with `exec` subcommand integrated. Use `codex exec --json` for automation instead of separate `codex-exec` binary.
304
+
305
+ ---
306
+
274
307
  ### v0.62.0-termux (2025-11-21)
275
308
 
276
309
  **Update**: Synced with upstream OpenAI Codex rust-v0.62.0 (40+ commits from v0.61.0)
277
310
 
311
+ > **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.
312
+
278
313
  **Upstream Features**:
279
314
  - ๐Ÿ†• **codex-shell-tool-mcp**: New MCP server for shell tools
280
315
  - ๐Ÿ†• **execpolicycheck**: New CLI command for exec policy debugging
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.0-termux",
4
- "description": "OpenAI Codex CLI v0.62.0 with GPT-5.1 MAX support, pre-compiled for Android Termux (ARM64)",
3
+ "version": "0.64.0-termux",
4
+ "description": "OpenAI Codex CLI v0.64.0 - 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": [