local-diff-reviewer 1.0.5 → 1.0.6

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 (3) hide show
  1. package/README.md +1 -1
  2. package/SKILL.md +4 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -83,7 +83,7 @@ local-diff-reviewer --repo /path/to/project staged
83
83
  npx skills add Mone-Lee/diff-review
84
84
  ```
85
85
 
86
- skill 会针对目标 workspace 运行 `npx --yes local-diff-reviewer --repo <workspace> [args...]`。
86
+ skill 会以目标 workspace 作为命令工作目录运行 `npx --yes local-diff-reviewer [args...]`,因此 `/diff-review` 会审查当前项目,而不是 skill 安装目录。
87
87
 
88
88
  ### 预置 agent 评论
89
89
 
package/SKILL.md CHANGED
@@ -16,18 +16,18 @@ Use this skill when the user asks for `/diff-review`, wants to inspect current w
16
16
  - `/diff-review staged`: review staged diff.
17
17
  - `/diff-review <base> <target>`: review diff between two Git revisions.
18
18
 
19
- Do not ask the user to run a shell CLI manually. Determine the target workspace/repository from the user's active environment context, then pass it explicitly with `--repo`:
19
+ Do not ask the user to run a shell CLI manually. Determine the target workspace/repository from the user's active environment context, then run the package command with that repository as the command working directory:
20
20
 
21
21
  ```bash
22
- npx --yes local-diff-reviewer --repo /absolute/path/to/target/workspace [args...]
22
+ npx --yes local-diff-reviewer [args...]
23
23
  ```
24
24
 
25
- Do not use the skill package directory or this skill's install directory as the review target unless that is the workspace the user asked to review.
25
+ Set the shell/tool `cwd` to `/absolute/path/to/target/workspace` before running the command. Do not pass `--repo` from this skill; older published CLI versions treat unknown args as revision args. Do not use the skill package directory or this skill's install directory as the review target unless that is the workspace the user asked to review.
26
26
 
27
27
  When you have concrete review findings or answers to existing review comments, preload them with one `--comment` JSON argument per comment before launching the viewer:
28
28
 
29
29
  ```bash
30
- npx --yes local-diff-reviewer --repo /absolute/path/to/target/workspace [args...] \
30
+ npx --yes local-diff-reviewer [args...] \
31
31
  --comment '{"type":"thread","filePath":"src/foo.ts","position":{"side":"new","line":36},"body":"Explain the finding in the user language."}' \
32
32
  --comment '{"type":"reply","threadId":"existing-thread-id","body":"Answer the existing thread as the agent."}'
33
33
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-diff-reviewer",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "private": false,
5
5
  "description": "Open a local GitHub-style diff review Web UI for the current repository.",
6
6
  "repository": {