@mmmbuto/qwen-code-termux 0.7.1-termux → 0.11.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 (44) hide show
  1. package/README.md +24 -162
  2. package/dist/cli.js +214884 -159476
  3. package/package.json +17 -22
  4. package/dist/LICENSE +0 -203
  5. package/dist/README.md +0 -254
  6. package/dist/locales/de.js +0 -1126
  7. package/dist/locales/en.js +0 -1099
  8. package/dist/locales/ru.js +0 -1119
  9. package/dist/locales/zh.js +0 -954
  10. package/dist/package.json +0 -35
  11. package/dist/tiktoken_bg.wasm +0 -0
  12. package/scripts/build.js +0 -55
  13. package/scripts/build_package.js +0 -37
  14. package/scripts/build_sandbox.js +0 -196
  15. package/scripts/build_vscode_companion.js +0 -30
  16. package/scripts/check-build-status.js +0 -148
  17. package/scripts/check-i18n.ts +0 -462
  18. package/scripts/check-lockfile.js +0 -74
  19. package/scripts/clean.js +0 -59
  20. package/scripts/copy_bundle_assets.js +0 -128
  21. package/scripts/copy_files.js +0 -86
  22. package/scripts/create_alias.sh +0 -39
  23. package/scripts/esbuild-shims.js +0 -29
  24. package/scripts/generate-git-commit-info.js +0 -71
  25. package/scripts/get-release-version.js +0 -411
  26. package/scripts/lint.js +0 -205
  27. package/scripts/local_telemetry.js +0 -219
  28. package/scripts/postinstall.cjs +0 -14
  29. package/scripts/pre-commit.js +0 -22
  30. package/scripts/prepare-package.js +0 -156
  31. package/scripts/prepare-termux.cjs +0 -33
  32. package/scripts/sandbox_command.js +0 -126
  33. package/scripts/start.js +0 -83
  34. package/scripts/telemetry.js +0 -85
  35. package/scripts/telemetry_gcp.js +0 -188
  36. package/scripts/telemetry_utils.js +0 -439
  37. package/scripts/termux-tools/call.sh +0 -206
  38. package/scripts/termux-tools/discovery.sh +0 -382
  39. package/scripts/test-windows-paths.js +0 -51
  40. package/scripts/tests/get-release-version.test.js +0 -186
  41. package/scripts/tests/test-setup.ts +0 -12
  42. package/scripts/tests/vitest.config.ts +0 -26
  43. package/scripts/unused-keys-only-in-locales.json +0 -62
  44. package/scripts/version.js +0 -112
package/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENSE)
5
5
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen.svg)](https://nodejs.org/)
6
6
  [![Downloads](https://img.shields.io/npm/dm/@mmmbuto/qwen-code-termux.svg)](https://www.npmjs.com/package/@mmmbuto/qwen-code-termux)
7
- [![Ko-fi](https://img.shields.io/badge/Ko--fi-Support%20me-ff5e5b?logo=ko-fi&logoColor=white)](https://ko-fi.com/dionanos)
8
7
 
9
8
  **An open-source AI agent that lives in your terminal — Termux Edition (Android).**
10
9
 
@@ -31,10 +30,10 @@ Upstream Qwen Code targets macOS/Linux/Windows. On Android/Termux, installs may
31
30
 
32
31
  Termux Edition focuses on:
33
32
 
34
- - **Android PTY support** via `@mmmbuto/node-pty-android-arm64` (optional dependency)
33
+ - **Android PTY support** via `node-pty-android-arm64` (optional dependency)
35
34
  - **Termux runtime patches** (polyfills/quirks, clipboard behavior)
36
35
  - **Termux-safe install** (avoid node-gyp/husky pitfalls where possible)
37
- - **Tested on-device** — see [QWEN_TEST_REPORT_v0.7.1-termux.md](./QWEN_TEST_REPORT_v0.7.1-termux.md)
36
+ - **Tested on-device** — see [test-reports/0.11.0-termux/](test-reports/0.11.0-termux/README.md)
38
37
 
39
38
  ## Installation (Termux / Android)
40
39
 
@@ -67,181 +66,35 @@ qwen --version
67
66
  ## Quick Start
68
67
 
69
68
  ```bash
70
- # Start Qwen Code (interactive)
71
- qwen
72
-
73
- # Then, in the session:
74
- /help
75
- /auth
76
- ```
77
-
78
- On first use, you'll be prompted to sign in. You can run `/auth` anytime to switch authentication methods.
79
-
80
- Example prompts:
81
-
82
- ```text
83
- What does this project do?
84
- Explain the codebase structure.
85
- Help me refactor this function.
86
- Generate unit tests for this module.
87
- ```
88
-
89
- <details>
90
- <summary>Click to watch a demo video (upstream)</summary>
91
-
92
- <video src="https://cloud.video.taobao.com/vod/HLfyppnCHplRV9Qhz2xSqeazHeRzYtG-EYJnHAqtzkQ.mp4" controls>
93
- Your browser does not support the video tag.
94
- </video>
95
-
96
- </details>
97
-
98
- ## Authentication
99
-
100
- Qwen Code supports two authentication methods:
101
-
102
- - **Qwen OAuth (recommended & free)**: sign in with your `qwen.ai` account in a browser.
103
- - **OpenAI-compatible API**: use `OPENAI_API_KEY` (and optionally a custom base URL / model).
104
-
105
- ### Qwen OAuth (recommended)
106
-
107
- Start `qwen`, then run:
108
-
109
- ```bash
110
- /auth
111
- ```
112
-
113
- Choose **Qwen OAuth** and complete the browser flow. Your credentials are cached locally so you usually won't need to log in again.
114
-
115
- ### OpenAI-compatible API (API key)
116
-
117
- Environment variables (recommended for CI / headless environments):
118
-
119
- ```bash
120
- export OPENAI_API_KEY="your-api-key-here"
121
- export OPENAI_BASE_URL="https://api.openai.com/v1" # optional
122
- export OPENAI_MODEL="gpt-4o" # optional
123
- ```
124
-
125
- For details (including `.qwen/.env` loading and security notes), see the upstream authentication guide:
126
- https://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/
127
-
128
- ## Usage
129
-
130
- As an open-source terminal agent, you can use Qwen Code in four primary ways:
131
-
132
- 1. Interactive mode (terminal UI)
133
- 2. Headless mode (scripts, CI)
134
- 3. IDE integration (VS Code, Zed)
135
- 4. TypeScript SDK
136
-
137
- ### Interactive mode
138
-
139
- ```bash
140
- cd your-project/
141
- qwen
142
- ```
143
-
144
- Run `qwen` in your project folder to launch the interactive terminal UI. Use `@` to reference local files (for example `@src/main.ts`).
145
-
146
- ### Headless mode
147
-
148
- ```bash
149
- cd your-project/
150
- qwen -p "your question"
69
+ qwen # Interactive
70
+ qwen -p "Hello" # Non-interactive
71
+ qwen /help # Commands
72
+ qwen /auth # Authentication
151
73
  ```
152
74
 
153
- Use `-p` to run Qwen Code without the interactive UI—ideal for scripts, automation, and CI/CD. Learn more:
154
- https://qwenlm.github.io/qwen-code-docs/en/users/features/headless
155
-
156
- ### IDE integration
157
-
158
- Use Qwen Code inside your editor (VS Code, Zed, and JetBrains IDEs):
159
-
160
- - https://qwenlm.github.io/qwen-code-docs/en/users/integration-vscode/
161
- - https://qwenlm.github.io/qwen-code-docs/en/users/integration-zed/
162
- - https://qwenlm.github.io/qwen-code-docs/en/users/integration-jetbrains/
163
-
164
- ### TypeScript SDK
165
-
166
- Build on top of Qwen Code with the TypeScript SDK:
167
-
168
- - [Use the Qwen Code SDK](./packages/sdk-typescript/README.md)
169
-
170
- ## Commands & Shortcuts
171
-
172
- ### Session Commands
173
-
174
- - `/help` - Display available commands
175
- - `/clear` - Clear conversation history
176
- - `/compress` - Compress history to save tokens
177
- - `/stats` - Show current session information
178
- - `/bug` - Submit a bug report
179
- - `/exit` or `/quit` - Exit Qwen Code
180
-
181
- ### Keyboard Shortcuts
182
-
183
- - `Ctrl+C` - Cancel current operation
184
- - `Ctrl+D` - Exit (on empty line)
185
- - `Up/Down` - Navigate command history
186
-
187
- > Learn more about Commands:
188
- > https://qwenlm.github.io/qwen-code-docs/en/users/features/commands/
189
- >
190
- > **Tip**: In YOLO mode (`--yolo`), vision switching happens automatically without prompts when images are detected. Learn more about Approval Mode:
191
- > https://qwenlm.github.io/qwen-code-docs/en/users/features/approval-mode/
192
-
193
- ## Configuration
194
-
195
- Qwen Code can be configured via `settings.json`, environment variables, and CLI flags.
196
-
197
- - **User settings**: `~/.qwen/settings.json`
198
- - **Project settings**: `.qwen/settings.json`
75
+ ## Resources
199
76
 
200
- See settings docs for available options and precedence:
201
- https://qwenlm.github.io/qwen-code-docs/en/users/configuration/settings/
77
+ - **Test Reports**: [test-reports/0.11.0-termux/](test-reports/0.11.0-termux/README.md)
78
+ - **Patches**: [patches/](patches/README.md)
79
+ - **Build**: [docs/developers/BUILDING.md](docs/developers/BUILDING.md)
80
+ - **Config**: [docs/users/configuration.md](docs/users/configuration.md)
202
81
 
203
- ## Termux Notes
204
-
205
- ### Storage access
206
-
207
- To work with files under `/sdcard`, run once:
208
-
209
- ```bash
210
- termux-setup-storage
211
- ```
212
-
213
- ### Clipboard
214
-
215
- If you installed `termux-api` + the Termux:API app, clipboard actions can use Termux-native commands.
216
-
217
- ### PTY
218
-
219
- On ARM64 Termux, PTY support is provided by `@mmmbuto/node-pty-android-arm64` (optional dependency).
220
- If PTY isn't available, Qwen Code falls back to non-PTY execution where possible.
82
+ ---
221
83
 
222
84
  ## Changelog & Releases
223
85
 
224
86
  - [CHANGELOG.md](./CHANGELOG.md)
225
- - Latest Termux test report: [QWEN_TEST_REPORT_v0.7.1-termux.md](./QWEN_TEST_REPORT_v0.7.1-termux.md)
226
87
 
227
88
  ## Troubleshooting
228
89
 
229
- If you encounter issues, check the upstream troubleshooting guide:
230
- https://qwenlm.github.io/qwen-code-docs/en/users/support/troubleshooting/
231
-
232
- To report a bug from within the CLI, run `/bug` and include a short title and repro steps.
233
-
234
- ### Termux-specific troubleshooting
235
-
236
- - Make sure you are on **Node 20+** (`node -v`)
237
- - Update packages (`pkg upgrade -y`)
238
- - If OAuth browser flow fails, try again after `termux-open-url https://qwen.ai` (ensures the bridge is working)
239
- - If you need Termux tools, install `termux-api` and the Android companion app
90
+ If you encounter issues, check the [upstream troubleshooting guide](https://qwenlm.github.io/qwen-code-docs/en/users/support/troubleshooting/).
240
91
 
92
+ To report a bug from within the CLI, run `/bug`.
241
93
 
242
94
  ## Support
243
95
 
244
96
  If this Termux edition helps you, you can support the project on Ko-fi:
97
+
245
98
  - https://ko-fi.com/dionanos
246
99
 
247
100
  ## Connect with Upstream
@@ -252,3 +105,12 @@ If this Termux edition helps you, you can support the project on Ko-fi:
252
105
  ## Acknowledgments
253
106
 
254
107
  This project is based on [Google Gemini CLI](https://github.com/google-gemini/gemini-cli). We acknowledge and appreciate the excellent work of the Gemini CLI team. Our main contribution focuses on parser-level adaptations to better support Qwen-Coder models.
108
+
109
+ ---
110
+
111
+ ## License
112
+
113
+ Apache License 2.0 (upstream Qwen Code) with Termux-port maintenance by Davide A. Guglielmi.<br>
114
+ Original project by Qwen Team: https://github.com/QwenLM/qwen-code<br>
115
+ See [LICENSE](./LICENSE) for details and upstream terms.<br>
116
+ Made in Italy 🇮🇹