@mmmbuto/codex-cli-termux 0.77.0-termux → 0.78.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.
Files changed (3) hide show
  1. package/README.md +88 -95
  2. package/bin/codex +0 -0
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -31,11 +31,11 @@ We only apply patches for issues that:
31
31
  - **Are not addressed by upstream** (Termux is not officially supported)
32
32
  - **Are minimal and well-documented**
33
33
 
34
- **Current patches**: See [patches/](./patches/) directory for full documentation.
34
+ **Current patches**: See [patches/](../patches/) directory for full documentation.
35
35
 
36
- Serve aiuto per debuggare gli avvisi di upgrade? Consulta
37
- [docs/termux-upgrade-checks.md](./docs/termux-upgrade-checks.md) per cause note e
38
- strategie di fix.
36
+ Need help debugging upgrade alerts? See
37
+ [docs/termux-upgrade-checks.md](../docs/termux-upgrade-checks.md) for known causes
38
+ and fix strategies.
39
39
 
40
40
  **Found an issue?** Well-documented bug reports with reproduction steps are welcome! Open an [issue](https://github.com/DioNanos/codex-termux/issues).
41
41
 
@@ -75,7 +75,7 @@ npm install -g @mmmbuto/codex-cli-termux
75
75
 
76
76
  ```bash
77
77
  codex --version
78
- # Output: codex-cli 0.77.0-termux
78
+ # Output: codex-cli 0.78.0-termux
79
79
 
80
80
  codex login
81
81
  # Opens browser for authentication
@@ -89,6 +89,34 @@ codex login
89
89
 
90
90
  ---
91
91
 
92
+ ## ⚡ 2-Minute Quickstart / ⚡ 2分钟快速开始
93
+ Get a first session running fast. Choose the path that matches your account.
94
+ 快速完成首次运行。选择与你的账号/网关匹配的路径。
95
+
96
+ ### Path 1 — OpenAI (default)
97
+ ```bash
98
+ codex login
99
+ codex
100
+ ```
101
+
102
+ ### Path 2 — For friends using OpenRouter / gateways / OpenAI-compatible providers / 给使用 OpenRouter 或兼容网关的朋友
103
+ Set an API key and a minimal config, then run with a profile:
104
+ [docs/openrouter-quickstart.md](../docs/openrouter-quickstart.md)
105
+
106
+ ```bash
107
+ source ~/.codex/.env
108
+ codex --profile or-fast
109
+ ```
110
+
111
+ Caution: model slugs/names can change on providers—verify the current model list first.
112
+ 注意:模型名称可能变化,请以提供商模型列表为准。
113
+
114
+ ## 🧭 OpenRouter & gateways note / 🧭 OpenRouter 与兼容网关说明
115
+ This Termux port only adds Android compatibility; it does not change Codex behavior.
116
+ 本 Termux 版本仅提供 Android 兼容性,不改变 Codex 行为。
117
+ Providers/models are determined by your own config and backend.
118
+ 提供商与模型由你的配置与后端决定。
119
+
92
120
  ## 🚀 Usage
93
121
 
94
122
  Same as official Codex CLI:
@@ -104,7 +132,7 @@ codex
104
132
  codex --help
105
133
  ```
106
134
 
107
- For full documentation, see [OpenAI Codex docs](https://github.com/openai/codex).
135
+ For full documentation, see [OpenAI Codex docs](https://developers.openai.com/codex).
108
136
 
109
137
  ### Non-Interactive Mode (Automation)
110
138
 
@@ -135,15 +163,29 @@ codex exec --json -o output.json "describe this project"
135
163
 
136
164
  ### Execpolicy
137
165
 
138
- See the [Execpolicy quickstart](./docs/execpolicy.md) to set up rules that govern what commands Codex can execute.
166
+ See the [Execpolicy quickstart](../docs/execpolicy.md) to set up rules that govern what commands Codex can execute.
167
+
168
+ ## 🔧 Troubleshooting (Termux) / 🔧 故障排查(Termux)
169
+ Common Termux issues and the fastest places to check.
170
+ 常见 Termux 问题与最快排查入口。
171
+
172
+ - Upgrade alerts or shared library errors: see [docs/termux-upgrade-checks.md](../docs/termux-upgrade-checks.md)
173
+ - Basic usage/setup: see [docs/getting-started.md](../docs/getting-started.md)
174
+ - Authentication/login problems: see [docs/authentication.md](../docs/authentication.md)
175
+ - Still stuck? Open an issue with repro steps: [GitHub Issues](https://github.com/DioNanos/codex-termux/issues)
139
176
 
140
177
  ## 🧪 Testing & Validation
141
178
 
179
+ Latest validation (2026-01-06): 47 passed / 0 failed / 2 skipped — see [CODEX_TEST_SUITE.md](../CODEX_TEST_SUITE.md).
180
+
181
+ <details>
182
+ <summary>Details: automated test suite, coverage, and sample report</summary>
183
+
142
184
  ### Automated Test Suite
143
185
 
144
186
  This project includes a comprehensive test suite specifically designed for Termux validation:
145
187
 
146
- **Test Suite**: [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
188
+ **Test Suite**: [`CODEX_TEST_SUITE.md`](../CODEX_TEST_SUITE.md)
147
189
 
148
190
  **Coverage**:
149
191
  - ✅ **82 automated tests** across 12 categories (including prep/cleanup)
@@ -196,64 +238,62 @@ Codex will automatically:
196
238
  - ✅ Browser opener availability (Patch #1 validation)
197
239
  - ✅ Architecture detection (aarch64/ARM64)
198
240
 
199
- **Suite size**: 82 tests defined (includes optional/manual). Automated run on Termux executes 50 applicable tests; last run (2025-12-21) completed with 48 ✅ / 0 ❌ / 2 ⚠️ skipped (WebSearch tool absent, git info in non-repo workspace).
241
+ **Suite size**: 82 tests defined (includes optional/manual). Automated run on Termux executes 49 applicable tests; last run (2026-01-06) completed with 47 ✅ / 0 ❌ / 2 ⚠️ skipped (WebSearch unavailable, git info skipped in non-repo workspace).
200
242
 
201
243
  **Success Criteria**:
202
244
  - All System, Files, Shell, and Termux tests must pass
203
245
  - At least 80% overall pass rate
204
246
  - No critical crashes
205
247
 
206
- **Example Report** (v0.77.0-termux, 2025-12-21):
248
+ **Example Report** (v0.78.0-termux, 2026-01-06):
207
249
  ```
208
250
  CODEX CLI TEST SUITE - FINAL REPORT
209
251
  ====================================
210
252
  Platform: Android Termux ARM64 (reference device)
211
- Codex Version: 0.77.0-termux
212
- Total Tests: 50
213
- ✅ Passed: 48
253
+ Codex Version: 0.78.0-termux
254
+ Total Tests: 49
255
+ ✅ Passed: 47
214
256
  ❌ Failed: 0
215
- ⚠️ Skipped: 2 (WebSearch disabled, git info skipped in non-repo workspace)
257
+ ⚠️ Skipped: 2 (WebSearch unavailable, git info skipped in non-repo workspace)
216
258
 
217
259
  Termux-Specific: 10/10 passed ✅
218
260
  Package & Binary: 8/8 passed ✅
219
261
 
220
262
  VERDICT: ✅ PASS
221
263
  ```
222
- - [**Getting started**](./docs/getting-started.md)
223
- - [CLI usage](./docs/getting-started.md#cli-usage)
224
- - [Slash Commands](./docs/slash_commands.md)
225
- - [Running with a prompt as input](./docs/getting-started.md#running-with-a-prompt-as-input)
226
- - [Example prompts](./docs/getting-started.md#example-prompts)
227
- - [Custom prompts](./docs/prompts.md)
228
- - [Memory with AGENTS.md](./docs/getting-started.md#memory-with-agentsmd)
229
- - [**Configuration**](./docs/config.md)
230
- - [Example config](./docs/example-config.md)
231
- - [**Sandbox & approvals**](./docs/sandbox.md)
232
- - [**Execpolicy quickstart**](./docs/execpolicy.md)
233
- - [**Authentication**](./docs/authentication.md)
234
- - [Auth methods](./docs/authentication.md#forcing-a-specific-auth-method-advanced)
235
- - [Login on a "Headless" machine](./docs/authentication.md#connecting-on-a-headless-machine)
264
+ - [**Getting started**](../docs/getting-started.md)
265
+ - [CLI usage](../docs/getting-started.md#cli-usage)
266
+ - [Slash Commands](../docs/slash_commands.md)
267
+ - [Running with a prompt as input](../docs/getting-started.md#running-with-a-prompt-as-input)
268
+ - [Example prompts](../docs/getting-started.md#example-prompts)
269
+ - [Custom prompts](../docs/prompts.md)
270
+ - [Memory with AGENTS.md](../docs/getting-started.md#memory-with-agentsmd)
271
+ - [**Configuration**](../docs/config.md)
272
+ - [Example config](../docs/example-config.md)
273
+ - [**Sandbox & approvals**](../docs/sandbox.md)
274
+ - [**Execpolicy quickstart**](../docs/execpolicy.md)
275
+ - [**Authentication**](../docs/authentication.md)
276
+ - [Auth methods](../docs/authentication.md#forcing-a-specific-auth-method-advanced)
277
+ - [Login on a "Headless" machine](../docs/authentication.md#connecting-on-a-headless-machine)
236
278
  - **Automating Codex**
237
279
  - [GitHub Action](https://github.com/openai/codex-action)
238
- - [TypeScript SDK](./sdk/typescript/README.md)
239
- - [Non-interactive mode (`codex exec`)](./docs/exec.md)
240
- - [**Advanced**](./docs/advanced.md)
241
- - [Tracing / verbose logging](./docs/advanced.md#tracing--verbose-logging)
242
- - [Model Context Protocol (MCP)](./docs/advanced.md#model-context-protocol-mcp)
243
- - [**Zero data retention (ZDR)**](./docs/zdr.md)
244
- - [**Contributing**](./docs/contributing.md)
245
- - [**Install & build**](./docs/install.md)
246
- - [System Requirements](./docs/install.md#system-requirements)
247
- - [DotSlash](./docs/install.md#dotslash)
248
- - [Build from source](./docs/install.md#build-from-source)
249
- - [**FAQ**](./docs/faq.md)
250
- - [**Open source fund**](./docs/open-source-fund.md)
280
+ - [TypeScript SDK](../sdk/typescript/README.md)
281
+ - [Non-interactive mode (`codex exec`)](../docs/exec.md)
282
+ - [**Skills**](../docs/skills.md)
283
+ - [**Installing & building**](../docs/install.md)
284
+ - [System Requirements](../docs/install.md#system-requirements)
285
+ - [DotSlash](../docs/install.md#dotslash)
286
+ - [Build from source](../docs/install.md#build-from-source)
287
+ - [**Contributing**](../docs/contributing.md)
288
+ - [**Open source fund**](../docs/open-source-fund.md)
289
+
290
+ </details>
251
291
 
252
292
  ---
253
293
 
254
294
  ## 🔨 Building from Source
255
295
 
256
- See [BUILDING.md](./BUILDING.md) for compilation instructions.
296
+ See [BUILDING.md](../BUILDING.md) for compilation instructions.
257
297
 
258
298
  ---
259
299
 
@@ -281,7 +321,7 @@ This project maintains full compliance with the Apache 2.0 license from OpenAI C
281
321
  **Original work**: Copyright OpenAI (https://github.com/openai/codex)
282
322
  **Termux port**: Minimal patches for Android compatibility
283
323
 
284
- See [LICENSE](./LICENSE) file for details.
324
+ See [LICENSE](../LICENSE) file for details.
285
325
 
286
326
  ---
287
327
 
@@ -293,7 +333,7 @@ See [LICENSE](./LICENSE) file for details.
293
333
 
294
334
  ---
295
335
 
296
- **Version**: Based on OpenAI Codex 0.77.0 (Termux build refresh, package/bin verification updated)
336
+ **Version**: Based on OpenAI Codex main (post rust-v0.78.0) with Termux compatibility patches
297
337
  **Platform**: Android Termux ARM64
298
338
  **Maintained**: Community-driven, not affiliated with OpenAI
299
339
 
@@ -301,57 +341,10 @@ See [LICENSE](./LICENSE) file for details.
301
341
 
302
342
  ## 📜 Changelog
303
343
 
304
- ### v0.77.0-termux (2025-12-21) – latest
305
- **Dist-tag**: `latest`
306
-
307
- - ⬆️ Upstream bump to OpenAI Codex rust-v0.77.0.
308
- - 🧭 Single entrypoint confirmed: `codex` with no args opens TUI; `codex <prompt>` routes to exec; `codex-exec` kept as JS wrapper (no symlink).
309
- - 🔧 Termux patches #1–6, #8, #9 revalidated after merge (`verify-patches.sh`).
310
- - 📦 npm package bumped to 0.77.0-termux; packaged binary includes `codex` plus `codex-exec` wrapper (no symlink).
311
- - ✅ Tests: CODEX_TEST_SUITE v1.2 on Termux (2025-12-21) → 48 passed / 0 failed / 2 skipped (WebSearch disabled, git info skipped in non-repo workspace); Package & Binary 8/8 passed; Termux-Specific 10/10 passed.
312
- - 🌟 **Official Upstream Highlights**:
313
- - Introducing gpt-5.2-codex our latest frontier model
314
- - Projects are now collapsed to a single folder in the file explorer
315
- - Hide collapsed folders from the file explorer
316
- - Initial support for desktop notifications on macOS and Linux
317
- - MCP improvements: Better error handling and resource management
318
- - TUI improvements: Better visual feedback and performance
319
-
320
- ### v0.73.0-termux (2025-12-16)
321
- **Dist-tag**: `latest`
322
-
323
- - ⬆️ Upstream bump to OpenAI Codex rust-v0.73.0 (skills manager rework, ghost snapshots v2, config ghost commits, wrap algorithm now FirstFit, OTEL tracing).
324
- - 🧭 Single entrypoint confirmed: `codex` with no args opens TUI; `codex <prompt>` routes to exec; `codex-exec` kept as alias wrapper.
325
- - 🔧 Termux patches #1–6, #8, #9 revalidated after merge (verify-patches.sh).
326
- - 📦 npm package bumped to 0.73.0-termux; binary rebuilt and packaged once with symlinked `codex-exec`.
327
- - ✅ Build: `cargo build -p codex-cli --release --locked` on Termux; npm wrapper binary updated. Install + test suite run still pending.
328
-
329
-
330
- ### v0.72.0-termux (2025-12-13) – stable
331
- **Dist-tag**: `stable`
332
-
333
- - ⬆️ Upstream bump to OpenAI Codex rust-v0.72.0 (OTEL tracing, config loader rewrite, notifications).
334
- - 🧭 Single entrypoint confirmed: `codex` with no args opens TUI; `codex <prompt>` routes to exec; `codex-exec` kept as alias wrapper.
335
- - 🔧 Termux patches #1–6, #8, #9 revalidated after merge (verify-patches.sh).
336
- - 📦 npm package bumped to 0.72.0-termux; binary packaged once with symlinked `codex-exec`.
337
- - ✅ Tests: build + install on Termux pending (will run in this session).
338
-
339
- ### v0.71.0-termux (2025-12-12) – stable
340
- **Dist-tag**: `stable`
341
-
342
- - ⬆️ Upstream bump to OpenAI Codex rust-v0.71.0 (gpt-5.2 models, TUI2 refinements, policy refresh).
343
- - 🔧 Termux patches #1–6, #8, #9 revalidated; release profile kept RAM-friendly (lto=false, codegen-units=16).
344
- - 🖥️ Single entrypoint confirmed: `codex` serves both TUI and automation; `codex-exec` remains alias wrapper (JS launcher unchanged).
345
- - 📦 Package verification: bin includes `codex`, symlinked `codex-exec`, JS wrappers; `LD_LIBRARY_PATH` preserved; termux-open-url login path intact.
346
- - ✅ Tests: CODEX_TEST_SUITE v1.2 quick run → 37 passed / 0 failed / 12 skipped (web search, AI, some git/Termux-API); critical package checks 8/8.
347
-
348
- ### v0.64.1-termux (2025-12-03) – stable
349
- **Dist-tag**: `stable`
350
-
351
- - Maintenance follow-up to 0.64.0: docs/test report refresh and npm package verification (codex-exec symlink + bin entries).
352
- - Base upstream: rust-v0.64.0; Termux patches #1-6, #8, #9 revalidated.
353
- - ✅ Tests: CODEX_TEST_SUITE v1.2 → 47/49 pass (Git optional skipped), Package & Binary 8/8 pass, Termux-Specific 10/10 pass.
344
+ Upstream Codex releases: https://github.com/openai/codex/releases
345
+
346
+ Termux-specific changes: see [CHANGELOG.md](../CHANGELOG.md).
354
347
 
355
348
  ---
356
349
 
357
- **Testing**: Comprehensive test suite v1.2 with 82 tests (incl. Termux + Package) in [`CODEX_TEST_SUITE.md`](./CODEX_TEST_SUITE.md)
350
+ **Testing**: Comprehensive test suite v1.2 with 82 tests (incl. Termux + Package) in [`CODEX_TEST_SUITE.md`](../CODEX_TEST_SUITE.md)
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.77.0-termux",
4
- "description": "OpenAI Codex CLI (upstream rust-v0.77.0) packaged as 0.77.0-termux – TUI + automation for Android Termux (ARM64). Use 'codex' for TUI, 'codex exec --json' for automation.",
3
+ "version": "0.78.0-termux",
4
+ "description": "OpenAI Codex CLI (upstream main, post rust-v0.78.0) packaged as 0.78.0-termux – TUI + automation 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": {
@@ -29,7 +29,7 @@
29
29
  "license": "Apache-2.0",
30
30
  "repository": {
31
31
  "type": "git",
32
- "url": "https://github.com/DioNanos/codex-termux.git"
32
+ "url": "git+https://github.com/DioNanos/codex-termux.git"
33
33
  },
34
34
  "homepage": "https://github.com/DioNanos/codex-termux#readme",
35
35
  "bugs": {