v1.1.1: theme-token diff card with old/new line-number gutter; hunks carry oldStart/newStart/rows
This commit is contained in:
1 parent
0dae0ee53d
commit
583aa9a10b
5 files changed
+137
-45
No files matched your search
@@ -94,7 +94,12 @@ Turn the guard off with `guard: false`, or change the list of blocked tools with
|
||||
|
||||
## Diff cards in the Web UI
|
||||
|
||||
The plugin ships a web client (`client.js`) that registers an `edit` tool view. Hashline, sloppy and apply_patch calls then render as DSH's native green/red diff card (from the applied hunks in `meta.diffs`), with `+N -M` counts, instead of raw patch text.
|
||||
The plugin ships a web client (`client.js`) that registers an `edit` tool view. Hashline, sloppy and apply_patch calls render as a diff card instead of raw patch text:
|
||||
- green added rows, red removed rows and gray context, using only DSH's theme tokens (`--dsw-alias-code-diff-added/-deleted`, `--dsw-alias-state-success/error-primary`, the code-block font), so it follows the active theme like the stock diff view;
|
||||
- a **line-number gutter** with the old and new file line of every row;
|
||||
- `+N -M` counts in the header, plus Wrap and Copy buttons.
|
||||
|
||||
The host attaches `oldStart`, `newStart` and `rows` to every hunk in `meta.diffs`, next to the standard `path`/`oldText`/`newText` fields. Older results without them still render, just without numbers.
|
||||
|
||||
## Edit modes
|
||||
|
||||
|
||||
Reference in new issue
Block a user