@qwen-code/qwen-code 0.15.9 → 0.15.10-nightly.20260511.0a05ea800
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/bundled/qc-helper/docs/configuration/settings.md +6 -0
- package/bundled/qc-helper/docs/features/commands.md +8 -7
- package/bundled/qc-helper/docs/features/language.md +25 -0
- package/cli.js +25832 -20893
- package/locales/ca.js +205 -508
- package/locales/de.js +265 -462
- package/locales/en.js +168 -390
- package/locales/fr.js +245 -482
- package/locales/ja.js +464 -384
- package/locales/pt.js +240 -439
- package/locales/ru.js +221 -436
- package/locales/zh-TW.js +207 -359
- package/locales/zh.js +213 -410
- package/package.json +2 -2
- package/sandbox-macos-permissive-closed.sb +2 -1
- package/sandbox-macos-permissive-open.sb +2 -1
- package/sandbox-macos-permissive-proxied.sb +2 -1
- package/sandbox-macos-restrictive-closed.sb +2 -1
- package/sandbox-macos-restrictive-open.sb +2 -1
- package/sandbox-macos-restrictive-proxied.sb +2 -1
|
@@ -570,6 +570,8 @@ For authentication-related variables (like `OPENAI_*`) and the recommended `.qwe
|
|
|
570
570
|
|
|
571
571
|
| Variable | Description | Notes |
|
|
572
572
|
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
573
|
+
| `QWEN_HOME` | Customizes the global configuration directory (default: `~/.qwen`). Accepts an absolute or relative path (relative paths are resolved from the current working directory). Leading `~` is expanded to the user's home directory. | Stores credentials, settings, memory, skills, and other global state. When set, project-level `.qwen/` directories are unaffected. An empty string is treated as unset. |
|
|
574
|
+
| `QWEN_RUNTIME_DIR` | Overrides the runtime output directory (conversations, logs, todos). When unset, defaults to the `QWEN_HOME` directory. | Use this to separate ephemeral runtime data from persistent config. Useful when `QWEN_HOME` is on a shared/slow filesystem. |
|
|
573
575
|
| `QWEN_TELEMETRY_ENABLED` | Set to `true` or `1` to enable telemetry. Any other value is treated as disabling it. | Overrides the `telemetry.enabled` setting. |
|
|
574
576
|
| `QWEN_TELEMETRY_TARGET` | Sets the telemetry target (`local` or `gcp`). | Overrides the `telemetry.target` setting. |
|
|
575
577
|
| `QWEN_TELEMETRY_OTLP_ENDPOINT` | Sets the OTLP endpoint for telemetry. | Overrides the `telemetry.otlpEndpoint` setting. |
|
|
@@ -589,6 +591,10 @@ For authentication-related variables (like `OPENAI_*`) and the recommended `.qwe
|
|
|
589
591
|
| `QWEN_CODE_UNATTENDED_RETRY` | Set to `true` or `1` to enable persistent retry mode. When enabled, transient API capacity errors (HTTP 429 Rate Limit and 529 Overloaded) are retried indefinitely with exponential backoff (capped at 5 minutes per retry) and heartbeat keepalives every 30 seconds on stderr. | Designed for CI/CD pipelines and background automation where long-running tasks should survive temporary API outages. Must be set explicitly — `CI=true` alone does **not** activate this mode. See [Headless Mode](../features/headless#persistent-retry-mode) for details. Example: `export QWEN_CODE_UNATTENDED_RETRY=1` |
|
|
590
592
|
| `QWEN_CODE_PROFILE_STARTUP` | Set to `1` to enable startup performance profiling. Writes a JSON timing report to `~/.qwen/startup-perf/` with per-phase durations. | Only active inside the sandbox child process. Zero overhead when not set. Example: `export QWEN_CODE_PROFILE_STARTUP=1` |
|
|
591
593
|
|
|
594
|
+
When both user-level `.env` files define the same variable, the Qwen-specific
|
|
595
|
+
file wins: `<QWEN_HOME>/.env` (or `~/.qwen/.env` when `QWEN_HOME` is unset) is
|
|
596
|
+
loaded before `~/.env`, and existing environment values are not overwritten.
|
|
597
|
+
|
|
592
598
|
## Command-Line Arguments
|
|
593
599
|
|
|
594
600
|
Arguments passed directly when running the CLI can override other configurations for that specific session.
|
|
@@ -45,13 +45,14 @@ Commands for adjusting interface appearance and work environment.
|
|
|
45
45
|
|
|
46
46
|
Commands specifically for controlling interface and output language.
|
|
47
47
|
|
|
48
|
-
| Command | Description
|
|
49
|
-
| --------------------- |
|
|
50
|
-
| `/language` | View or change language settings
|
|
51
|
-
| → `ui [language]` | Set UI interface language
|
|
52
|
-
| → `output [language]` | Set LLM output language
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
| Command | Description | Usage Examples |
|
|
49
|
+
| --------------------- | --------------------------------------------------------------------------- | -------------------------- |
|
|
50
|
+
| `/language` | View or change language settings | `/language` |
|
|
51
|
+
| → `ui [language]` | Set UI interface language | `/language ui zh-CN` |
|
|
52
|
+
| → `output [language]` | Set LLM output language | `/language output Chinese` |
|
|
53
|
+
| → `translate on/off` | Toggle AI translation for dynamic slash command descriptions (default: off) | `/language translate on` |
|
|
54
|
+
|
|
55
|
+
- Available built-in UI languages: `zh-CN` (Simplified Chinese), `en-US` (English), `ru-RU` (Russian), `de-DE` (German), `ja-JP` (Japanese), `pt-BR` (Portuguese - Brazil), `fr-FR` (French), `ca-ES` (Catalan)
|
|
55
56
|
- Output language examples: `Chinese`, `English`, `Japanese`, etc.
|
|
56
57
|
|
|
57
58
|
### 1.4 Tool and Model Management
|
|
@@ -26,6 +26,9 @@ Use the `/language ui` command:
|
|
|
26
26
|
/language ui ru-RU # Russian
|
|
27
27
|
/language ui de-DE # German
|
|
28
28
|
/language ui ja-JP # Japanese
|
|
29
|
+
/language ui pt-BR # Portuguese (Brazil)
|
|
30
|
+
/language ui fr-FR # French
|
|
31
|
+
/language ui ca-ES # Catalan
|
|
29
32
|
```
|
|
30
33
|
|
|
31
34
|
Aliases are also supported:
|
|
@@ -36,6 +39,9 @@ Aliases are also supported:
|
|
|
36
39
|
/language ui ru # Russian
|
|
37
40
|
/language ui de # German
|
|
38
41
|
/language ui ja # Japanese
|
|
42
|
+
/language ui pt # Portuguese
|
|
43
|
+
/language ui fr # French
|
|
44
|
+
/language ui ca # Catalan
|
|
39
45
|
```
|
|
40
46
|
|
|
41
47
|
### Auto-detection
|
|
@@ -49,6 +55,22 @@ Detection priority:
|
|
|
49
55
|
3. System locale via JavaScript Intl API
|
|
50
56
|
4. Default: English
|
|
51
57
|
|
|
58
|
+
### Dynamic Command Translation
|
|
59
|
+
|
|
60
|
+
Dynamic slash command descriptions from skills, extensions, file commands, and
|
|
61
|
+
MCP prompts can be translated with AI. This is **off by default** to avoid
|
|
62
|
+
unexpected model calls, latency, and token usage.
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
/language translate status # Show current status
|
|
66
|
+
/language translate on # Enable AI translation for dynamic descriptions
|
|
67
|
+
/language translate off # Disable AI translation
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Use `/language translate cache refresh` to re-translate cached dynamic
|
|
71
|
+
descriptions after enabling translation, or `/language translate cache clear` to
|
|
72
|
+
remove cached translations.
|
|
73
|
+
|
|
52
74
|
## LLM Output Language
|
|
53
75
|
|
|
54
76
|
The LLM output language controls what language the AI assistant responds in, regardless of what language you type your questions in.
|
|
@@ -66,6 +88,9 @@ On first startup, if no `output-language.md` file exists, Qwen Code automaticall
|
|
|
66
88
|
- System locale `ru` creates a rule for Russian responses
|
|
67
89
|
- System locale `de` creates a rule for German responses
|
|
68
90
|
- System locale `ja` creates a rule for Japanese responses
|
|
91
|
+
- System locale `pt` creates a rule for Portuguese responses
|
|
92
|
+
- System locale `fr` creates a rule for French responses
|
|
93
|
+
- System locale `ca` creates a rule for Catalan responses
|
|
69
94
|
|
|
70
95
|
### Manual Setting
|
|
71
96
|
|