diffx-cli 0.1.0 → 0.2.0
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 +15 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ Examples:
|
|
|
41
41
|
- **Syntax highlighting** — Powered by Shiki with GitHub themes
|
|
42
42
|
- **File tree** — Hierarchical file browser with search filter
|
|
43
43
|
- **Inline comments** — Click the `+` button on any line to add a review comment
|
|
44
|
-
- **Copy comments** — One-click copy all comments as structured
|
|
44
|
+
- **Copy comments** — One-click copy all comments as structured XML for AI coding agents
|
|
45
45
|
- **Viewed tracking** — Mark files as reviewed to track progress
|
|
46
46
|
- **Staged / Untracked toggles** — Choose which changes to include
|
|
47
47
|
- **Custom diff commands** — Pass any `git diff` arguments after `--`
|
|
@@ -49,20 +49,25 @@ Examples:
|
|
|
49
49
|
|
|
50
50
|
## Comment Output Format
|
|
51
51
|
|
|
52
|
-
When you click "Copy comments", the output is
|
|
52
|
+
When you click "Copy comments", the output is structured XML optimized for AI agents:
|
|
53
53
|
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Line 42 (additions)
|
|
54
|
+
```xml
|
|
55
|
+
<code-review-comments>
|
|
56
|
+
<file path="src/utils/parser.ts">
|
|
57
|
+
<comment line="42">
|
|
58
|
+
<code>+ const parsedToken = tokenize(input)</code>
|
|
60
59
|
Rename `x` to `parsedToken` for clarity.
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
</comment>
|
|
61
|
+
<comment line="15">
|
|
62
|
+
<code>- if (input != null) {</code>
|
|
63
63
|
This null check removal may cause a bug when `input` is undefined.
|
|
64
|
+
</comment>
|
|
65
|
+
</file>
|
|
66
|
+
</code-review-comments>
|
|
64
67
|
```
|
|
65
68
|
|
|
69
|
+
Each comment includes the commented code line with a `+`/`-` prefix indicating whether it's an added or removed line.
|
|
70
|
+
|
|
66
71
|
## License
|
|
67
72
|
|
|
68
73
|
MIT
|