@qwen-code/qwen-code 0.15.2 → 0.15.3

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 CHANGED
@@ -424,7 +424,7 @@ As an open-source terminal agent, you can use Qwen Code in four primary ways:
424
424
  1. Interactive mode (terminal UI)
425
425
  2. Headless mode (scripts, CI)
426
426
  3. IDE integration (VS Code, Zed)
427
- 4. TypeScript SDK
427
+ 4. SDKs (TypeScript, Python, Java)
428
428
 
429
429
  #### Interactive mode
430
430
 
@@ -452,11 +452,38 @@ Use Qwen Code inside your editor (VS Code, Zed, and JetBrains IDEs):
452
452
  - [Use in Zed](https://qwenlm.github.io/qwen-code-docs/en/users/integration-zed/)
453
453
  - [Use in JetBrains IDEs](https://qwenlm.github.io/qwen-code-docs/en/users/integration-jetbrains/)
454
454
 
455
- #### TypeScript SDK
455
+ #### SDKs
456
456
 
457
- Build on top of Qwen Code with the TypeScript SDK:
457
+ Build on top of Qwen Code with the available SDKs:
458
458
 
459
- - [Use the Qwen Code SDK](./packages/sdk-typescript/README.md)
459
+ - TypeScript: [Use the Qwen Code SDK](./packages/sdk-typescript/README.md)
460
+ - Python: [Use the Python SDK](./packages/sdk-python/README.md)
461
+ - Java: [Use the Java SDK](./packages/sdk-java/qwencode/README.md)
462
+
463
+ Python SDK example:
464
+
465
+ ```python
466
+ import asyncio
467
+
468
+ from qwen_code_sdk import is_sdk_result_message, query
469
+
470
+
471
+ async def main() -> None:
472
+ result = query(
473
+ "Summarize the repository layout.",
474
+ {
475
+ "cwd": "/path/to/project",
476
+ "path_to_qwen_executable": "qwen",
477
+ },
478
+ )
479
+
480
+ async for message in result:
481
+ if is_sdk_result_message(message):
482
+ print(message["result"])
483
+
484
+
485
+ asyncio.run(main())
486
+ ```
460
487
 
461
488
  ## Commands & Shortcuts
462
489
 
@@ -17,7 +17,7 @@ You are an expert code reviewer. Your job is to review code changes and provide
17
17
 
18
18
  **Critical rules (most commonly violated — read these first):**
19
19
 
20
- 1. **Match the language of the PR.** If the PR is in English, ALL your output (terminal + PR comments) MUST be in English. If in Chinese, use Chinese. Do NOT switch languages.
20
+ 1. **Match the language of the PR.** If the PR is in English, ALL your output (terminal + PR comments) MUST be in English. If in Chinese, use Chinese. Do NOT switch languages. For **local reviews** (no PR), if the system prompt includes an output language preference, use that language; otherwise follow the user's input language.
21
21
  2. **Step 9: use Create Review API** with `comments` array for inline comments. Do NOT use `gh api .../pulls/.../comments` to post individual comments. See Step 9 for the JSON format.
22
22
 
23
23
  **Design philosophy: Silence is better than noise.** Every comment you make should be worth the reader's time. If you're unsure whether something is a problem, DO NOT MENTION IT. Low-quality feedback causes "cry wolf" fatigue — developers stop reading all AI comments and miss real issues.
@@ -528,4 +528,4 @@ These criteria apply to both Step 4 (review agents) and Step 5 (verification age
528
528
  - Flag any exposed secrets, credentials, API keys, or tokens in the diff as **Critical**.
529
529
  - Silence is better than noise. If you have nothing important to say, say nothing.
530
530
  - **Do NOT use `#N` notation** (e.g., `#1`, `#2`) in PR comments or summaries — GitHub auto-links these to issues/PRs. Use `(1)`, `[1]`, or descriptive references instead.
531
- - **Match the language of the PR.** Write review comments, findings, and summaries in the same language as the PR title/description/code comments. If the PR is in English, write in English. If in Chinese, write in Chinese. Do NOT switch languages.
531
+ - **Match the language of the PR.** Write review comments, findings, and summaries in the same language as the PR title/description/code comments. If the PR is in English, write in English. If in Chinese, write in Chinese. Do NOT switch languages. For **local reviews** (no PR), respect the user's output language preference if set; otherwise follow the user's input language.