@jaydennleemc/qwen-code-local 0.12.6 → 0.13.1

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
@@ -125,11 +125,11 @@ Use this if you want more flexibility over which provider and model to use. Supp
125
125
  - **Anthropic**: Claude models
126
126
  - **Google GenAI**: Gemini models
127
127
 
128
- The **recommended** way to configure models and providers is by editing `~/.qwen_local/settings.json` (create it if it doesn't exist). This file lets you define all available models, API keys, and default settings in one place.
128
+ The **recommended** way to configure models and providers is by editing `~/.qwen/settings.json` (create it if it doesn't exist). This file lets you define all available models, API keys, and default settings in one place.
129
129
 
130
130
  ##### Quick Setup in 3 Steps
131
131
 
132
- **Step 1:** Create or edit `~/.qwen_local/settings.json`
132
+ **Step 1:** Create or edit `~/.qwen/settings.json`
133
133
 
134
134
  Here is a complete example:
135
135
 
@@ -349,7 +349,7 @@ Use the `/model` command at any time to switch between all configured models.
349
349
 
350
350
  > **Tip:** You can also set API keys via `export` in your shell or `.env` files, which take higher priority than `settings.json` → `env`. See the [authentication guide](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/auth/) for full details.
351
351
 
352
- > **Security note:** Never commit API keys to version control. The `~/.qwen_local/settings.json` file is in your home directory and should stay private.
352
+ > **Security note:** Never commit API keys to version control. The `~/.qwen/settings.json` file is in your home directory and should stay private.
353
353
 
354
354
  ## Usage
355
355
 
@@ -417,10 +417,10 @@ Build on top of Qwen Code with the TypeScript SDK:
417
417
 
418
418
  Qwen Code can be configured via `settings.json`, environment variables, and CLI flags.
419
419
 
420
- | File | Scope | Description |
421
- | ----------------------------- | ------------- | --------------------------------------------------------------------------------------- |
422
- | `~/.qwen_local/settings.json` | User (global) | Applies to all your Qwen Code sessions. **Recommended for `modelProviders` and `env`.** |
423
- | `.qwen/settings.json` | Project | Applies only when running Qwen Code in this project. Overrides user settings. |
420
+ | File | Scope | Description |
421
+ | ----------------------- | ------------- | --------------------------------------------------------------------------------------- |
422
+ | `~/.qwen/settings.json` | User (global) | Applies to all your Qwen Code sessions. **Recommended for `modelProviders` and `env`.** |
423
+ | `.qwen/settings.json` | Project | Applies only when running Qwen Code in this project. Overrides user settings. |
424
424
 
425
425
  The most commonly used top-level fields in `settings.json`:
426
426
 
@@ -457,7 +457,7 @@ To report a bug from within the CLI, run `/bug` and include a short title and re
457
457
 
458
458
  ## Connect with Us
459
459
 
460
- - Discord: https://discord.gg/ycKBjdNd
460
+ - Discord: https://discord.gg/RN7tqZCeDK
461
461
  - Dingtalk: https://qr.dingtalk.com/action/joingroup?code=v1,k1,+FX6Gf/ZDlTahTIRi8AEQhIaBlqykA0j+eBKKdhLeAE=&_dt_no_comment=1&origin=1
462
462
 
463
463
  ## Acknowledgments
@@ -15,15 +15,16 @@ You are an expert code reviewer. Your job is to review code changes and provide
15
15
 
16
16
  ## Step 1: Determine what to review
17
17
 
18
- Based on the arguments provided:
18
+ Your goal here is to understand the scope of changes so you can dispatch agents effectively in Step 2. Based on the arguments provided:
19
19
 
20
20
  - **No arguments**: Review local uncommitted changes
21
21
  - Run `git diff` and `git diff --staged` to get all changes
22
22
  - If both diffs are empty, inform the user there are no changes to review and stop here — do not proceed to the review agents
23
23
 
24
24
  - **PR number or URL** (e.g., `123` or `https://github.com/.../pull/123`):
25
- - Run `gh pr view <number>` to get PR details
26
- - Run `gh pr diff <number>` to get the diff
25
+ - Save the current branch name, stash any local changes (`git stash --include-untracked`), then `gh pr checkout <number>`
26
+ - Run `gh pr view <number>` and save the output (title, description, base branch, etc.) to a temp file (e.g., `/tmp/pr-review-context.md`) so agents can read it without you repeating it in each prompt
27
+ - Note the base branch (e.g., `main`) — agents will use `git diff <base>...HEAD` to get the diff and can read files directly
27
28
 
28
29
  - **File path** (e.g., `src/foo.ts`):
29
30
  - Run `git diff HEAD -- <file>` to get recent changes
@@ -33,6 +34,8 @@ Based on the arguments provided:
33
34
 
34
35
  Launch **four parallel review agents** to analyze the changes from different angles. Each agent should focus exclusively on its dimension.
35
36
 
37
+ **IMPORTANT**: Do NOT paste the full diff into each agent's prompt — this duplicates it 4x. Instead, give each agent the command to obtain the diff, a concise summary of what the changes are about, and its review focus. Each agent can read files and search the codebase on its own.
38
+
36
39
  ### Agent 1: Correctness & Security
37
40
 
38
41
  Focus areas:
@@ -77,9 +80,11 @@ Focus areas:
77
80
  - Unexpected side effects or hidden coupling
78
81
  - Anything else that looks off — trust your instincts
79
82
 
80
- ## Step 3: Aggregate and present findings
83
+ ## Step 3: Restore environment and present findings
84
+
85
+ If you checked out a PR branch in Step 1, restore the original state first: check out the original branch, `git stash pop` if changes were stashed, and remove the temp file.
81
86
 
82
- Combine results from all four agents into a single, well-organized review. Use this format:
87
+ Then combine results from all four agents into a single, well-organized review. Use this format:
83
88
 
84
89
  ### Summary
85
90