pi-diff-widget 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project are documented here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
5
5
  adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.1.2] - 2026-10-12
8
+
9
+ ### Changed
10
+
11
+ - README: document the `/diff-widget` actions (`on`, `off`, `accept`, `reject`)
12
+ as a table, link them from the `/diff` usage section, and correct the
13
+ local-checkout path in the install block.
14
+
7
15
  ## [0.1.1] - 2026-09-25
8
16
 
9
17
  ### Fixed
package/README.md CHANGED
@@ -9,7 +9,7 @@ pi install npm:pi-diff-widget
9
9
  # straight from the repo, no npm required
10
10
  pi install git:github.com/omgzsa/pi-diff-widget
11
11
  # or from a local checkout
12
- pi install /absolute/path/to/pi-diff
12
+ pi install /absolute/path/to/pi-diff-widget
13
13
  ```
14
14
 
15
15
  ## Usage
@@ -38,6 +38,9 @@ Keys:
38
38
  - `g` / `G`: jump to top / bottom
39
39
  - `q` / `Esc`: close
40
40
 
41
+ See [Live edits widget](#live-edits-widget) for the `/diff-widget` actions
42
+ (`on`, `off`, `accept`, `reject`).
43
+
41
44
  ## Live edits widget
42
45
 
43
46
  Above the editor, pi-diff shows the net effect of the agent's edits this
@@ -55,14 +58,34 @@ touch and diffs it against the current content. Reverted files drop out and the
55
58
  counts are net, so it shows what the agent has actually changed, not cumulative
56
59
  churn. Committing a file drops it from the panel automatically, so what remains
57
60
  is the agent's work that is not yet committed. Paths are shown relative to the
58
- working directory. Baselines live in the session, capped at 256 KB per file.
59
-
60
- It hides itself when nothing differs. `/diff-widget` toggles it. `/diff-widget
61
- accept` (alias `keep`) makes the current state the new baseline, the equivalent of
62
- Zed's Keep All. `/diff-widget reject` restores every tracked file to its
63
- pre-agent content, deleting files the agent created and recreating ones it
64
- deleted. It asks for confirmation first, and cannot be undone. Unknown actions
65
- report a warning rather than toggling the widget.
61
+ working directory. Baselines live in the session, capped at 256 KB per file. A
62
+ baseline whose parent directory no longer exists is dropped, so a checkout you
63
+ move or delete stops counting as a whole-file deletion.
64
+
65
+ It hides itself when nothing differs.
66
+
67
+ ### `/diff-widget` actions
68
+
69
+ | Command | Effect |
70
+ |---|---|
71
+ | `/diff-widget` | Toggle the panel. With no argument it shows a hidden panel and hides a visible one |
72
+ | `/diff-widget on` | Show it |
73
+ | `/diff-widget off` | Hide it |
74
+ | `/diff-widget accept` | Keep the agent's edits: the current content becomes the baseline and the panel clears. Alias: `keep` |
75
+ | `/diff-widget reject` | Undo the agent's edits: restore every tracked file to its pre-agent content, delete the files the agent created, and recreate the ones it deleted |
76
+
77
+ `accept` is Zed's Keep All. `reject` asks for confirmation first, naming up to
78
+ five affected paths, and cannot be undone. Whole files only: there is no
79
+ hunk-level accept or reject. With nothing to reject it reports `Nothing to
80
+ reject`, and any unrecognized argument warns instead of toggling the panel, so a
81
+ typo never hides the widget by accident.
82
+
83
+ ```
84
+ /diff-widget
85
+ /diff-widget on
86
+ /diff-widget accept
87
+ /diff-widget reject
88
+ ```
66
89
 
67
90
  ## Status
68
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-diff-widget",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Interactive diff viewer for pi: uncommitted changes and per-turn diffs",
5
5
  "keywords": [
6
6
  "pi-package",