@mmmbuto/codex-cli-termux 0.62.0-termux โ 0.62.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 +42 -13
- package/bin/codex +0 -0
- package/package.json +2 -2
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-
|
|
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`
|
|
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
|
-
|
|
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
|
-
- โ
**
|
|
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.
|
|
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.
|
|
212
|
-
Total Tests:
|
|
213
|
-
โ
Passed:
|
|
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:
|
|
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.
|
|
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
|
|
|
@@ -275,6 +302,8 @@ See [LICENSE](./LICENSE) file for details.
|
|
|
275
302
|
|
|
276
303
|
**Update**: Synced with upstream OpenAI Codex rust-v0.62.0 (40+ commits from v0.61.0)
|
|
277
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
|
+
|
|
278
307
|
**Upstream Features**:
|
|
279
308
|
- ๐ **codex-shell-tool-mcp**: New MCP server for shell tools
|
|
280
309
|
- ๐ **execpolicycheck**: New CLI command for exec policy debugging
|
package/bin/codex
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmmbuto/codex-cli-termux",
|
|
3
|
-
"version": "0.62.
|
|
4
|
-
"description": "OpenAI Codex CLI v0.62.0
|
|
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.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/codex.js",
|
|
7
7
|
"bin": {
|