hunkdiff 0.9.0-beta.0 → 0.9.0-beta.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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -164,7 +164,7 @@ Use it to:
164
164
  - optionally include raw patch text when an agent truly needs it
165
165
  - jump to a file, hunk, or line
166
166
  - reload the current window with a different `diff` or `show` command
167
- - add, list, and remove inline comments
167
+ - add, batch-apply, list, and remove inline comments
168
168
 
169
169
  Most users only need `hunk session ...`. Use `hunk mcp serve` only for manual startup or debugging of the local daemon.
170
170
 
@@ -181,6 +181,8 @@ hunk session reload --session-path /path/to/live-window --source /path/to/other-
181
181
  hunk session reload --repo . -- show HEAD~1 -- README.md
182
182
  hunk session comment add --repo . --file README.md --new-line 103 --summary "Tighten this wording"
183
183
  hunk session comment add --repo . --file README.md --new-line 103 --summary "Tighten this wording" --focus
184
+ printf '%s\n' '{"comments":[{"filePath":"README.md","newLine":103,"summary":"Tighten this wording"}]}' | hunk session comment apply --repo . --stdin
185
+ printf '%s\n' '{"comments":[{"filePath":"README.md","hunk":2,"summary":"Explain this hunk"}]}' | hunk session comment apply --repo . --stdin --focus
184
186
  hunk session comment list --repo .
185
187
  hunk session comment rm --repo . <comment-id>
186
188
  hunk session comment clear --repo . --file README.md --yes
@@ -189,7 +191,9 @@ hunk session comment clear --repo . --file README.md --yes
189
191
  `hunk session review --json` returns file and hunk structure by default. Add `--include-patch` only when a caller truly needs raw unified diff text in the response.
190
192
 
191
193
  `hunk session reload ... -- <hunk command>` swaps what a live session is showing without opening a new TUI window.
192
- Pass `--focus` to jump the live session to the new note.
194
+ Pass `--focus` to jump the live session to the new note, or to the first note in a batch apply.
195
+
196
+ `hunk session comment apply` reads one stdin JSON object with a top-level `comments` array. Each item needs `filePath`, `summary`, and exactly one target such as `hunk`, `hunkNumber`, `oldLine`, or `newLine`.
193
197
 
194
198
  - `--repo <path>` selects the live session by its current loaded repo root.
195
199
  - `--source <path>` is reload-only: it changes where the nested `diff` / `show` command runs, but does not select the session.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunkdiff",
3
- "version": "0.9.0-beta.0",
3
+ "version": "0.9.0-beta.2",
4
4
  "description": "Desktop-inspired terminal diff viewer for understanding agent-authored changesets.",
5
5
  "bin": {
6
6
  "hunk": "./bin/hunk.cjs"
@@ -30,10 +30,10 @@
30
30
  "node": ">=18"
31
31
  },
32
32
  "optionalDependencies": {
33
- "hunkdiff-darwin-arm64": "0.9.0-beta.0",
34
- "hunkdiff-darwin-x64": "0.9.0-beta.0",
35
- "hunkdiff-linux-arm64": "0.9.0-beta.0",
36
- "hunkdiff-linux-x64": "0.9.0-beta.0"
33
+ "hunkdiff-darwin-arm64": "0.9.0-beta.2",
34
+ "hunkdiff-darwin-x64": "0.9.0-beta.2",
35
+ "hunkdiff-linux-arm64": "0.9.0-beta.2",
36
+ "hunkdiff-linux-x64": "0.9.0-beta.2"
37
37
  },
38
38
  "license": "MIT",
39
39
  "publishConfig": {