@mmmbuto/qwen-code-termux 0.7.1-termux → 0.10.3-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 +14 -160
- package/dist/cli.js +221982 -168274
- package/package.json +13 -20
- package/dist/LICENSE +0 -203
- package/dist/README.md +0 -254
- package/dist/locales/de.js +0 -1126
- package/dist/locales/en.js +0 -1099
- package/dist/locales/ru.js +0 -1119
- package/dist/locales/zh.js +0 -954
- package/dist/package.json +0 -35
- package/dist/tiktoken_bg.wasm +0 -0
- package/scripts/build.js +0 -55
- package/scripts/build_package.js +0 -37
- package/scripts/build_sandbox.js +0 -196
- package/scripts/build_vscode_companion.js +0 -30
- package/scripts/check-build-status.js +0 -148
- package/scripts/check-i18n.ts +0 -462
- package/scripts/check-lockfile.js +0 -74
- package/scripts/clean.js +0 -59
- package/scripts/copy_bundle_assets.js +0 -128
- package/scripts/copy_files.js +0 -86
- package/scripts/create_alias.sh +0 -39
- package/scripts/esbuild-shims.js +0 -29
- package/scripts/generate-git-commit-info.js +0 -71
- package/scripts/get-release-version.js +0 -411
- package/scripts/lint.js +0 -205
- package/scripts/local_telemetry.js +0 -219
- package/scripts/postinstall.cjs +0 -14
- package/scripts/pre-commit.js +0 -22
- package/scripts/prepare-package.js +0 -156
- package/scripts/prepare-termux.cjs +0 -33
- package/scripts/sandbox_command.js +0 -126
- package/scripts/start.js +0 -83
- package/scripts/telemetry.js +0 -85
- package/scripts/telemetry_gcp.js +0 -188
- package/scripts/telemetry_utils.js +0 -439
- package/scripts/termux-tools/call.sh +0 -206
- package/scripts/termux-tools/discovery.sh +0 -382
- package/scripts/test-windows-paths.js +0 -51
- package/scripts/tests/get-release-version.test.js +0 -186
- package/scripts/tests/test-setup.ts +0 -12
- package/scripts/tests/vitest.config.ts +0 -26
- package/scripts/unused-keys-only-in-locales.json +0 -62
- package/scripts/version.js +0 -112
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Termux Edition focuses on:
|
|
|
34
34
|
- **Android PTY support** via `@mmmbuto/node-pty-android-arm64` (optional dependency)
|
|
35
35
|
- **Termux runtime patches** (polyfills/quirks, clipboard behavior)
|
|
36
36
|
- **Termux-safe install** (avoid node-gyp/husky pitfalls where possible)
|
|
37
|
-
- **Tested on-device** — see [
|
|
37
|
+
- **Tested on-device** — see [test-reports/0.10.3-termux/](test-reports/0.10.3-termux/README.md)
|
|
38
38
|
|
|
39
39
|
## Installation (Termux / Android)
|
|
40
40
|
|
|
@@ -67,181 +67,35 @@ qwen --version
|
|
|
67
67
|
## Quick Start
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
|
-
#
|
|
71
|
-
qwen
|
|
72
|
-
|
|
73
|
-
#
|
|
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
|
|
70
|
+
qwen # Interactive
|
|
71
|
+
qwen -p "Hello" # Non-interactive
|
|
72
|
+
qwen /help # Commands
|
|
73
|
+
qwen /auth # Authentication
|
|
111
74
|
```
|
|
112
75
|
|
|
113
|
-
|
|
76
|
+
## Resources
|
|
114
77
|
|
|
115
|
-
|
|
78
|
+
- **Test Reports**: [test-reports/0.10.3-termux/](test-reports/0.10.3-termux/README.md)
|
|
79
|
+
- **Patches**: [patches/](patches/README.md)
|
|
80
|
+
- **Build**: [docs/developers/BUILDING.md](docs/developers/BUILDING.md)
|
|
81
|
+
- **Config**: [docs/users/configuration.md](docs/users/configuration.md)
|
|
116
82
|
|
|
117
|
-
|
|
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"
|
|
151
|
-
```
|
|
152
|
-
|
|
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`
|
|
199
|
-
|
|
200
|
-
See settings docs for available options and precedence:
|
|
201
|
-
https://qwenlm.github.io/qwen-code-docs/en/users/configuration/settings/
|
|
202
|
-
|
|
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.
|
|
83
|
+
---
|
|
221
84
|
|
|
222
85
|
## Changelog & Releases
|
|
223
86
|
|
|
224
87
|
- [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
88
|
|
|
227
89
|
## Troubleshooting
|
|
228
90
|
|
|
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
|
|
91
|
+
If you encounter issues, check the [upstream troubleshooting guide](https://qwenlm.github.io/qwen-code-docs/en/users/support/troubleshooting/).
|
|
240
92
|
|
|
93
|
+
To report a bug from within the CLI, run `/bug`.
|
|
241
94
|
|
|
242
95
|
## Support
|
|
243
96
|
|
|
244
97
|
If this Termux edition helps you, you can support the project on Ko-fi:
|
|
98
|
+
|
|
245
99
|
- https://ko-fi.com/dionanos
|
|
246
100
|
|
|
247
101
|
## Connect with Upstream
|