hunkdiff 0.3.0-beta.2 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +22 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -98,6 +98,28 @@ Takeaway:
98
98
  - `hunk patch [file|-]` — review a patch file or stdin
99
99
  - `hunk pager` — act as a Git pager wrapper, opening Hunk for diff-like stdin and falling back to plain text paging otherwise
100
100
  - `hunk difftool <left> <right> [path]` — integrate with Git difftool
101
+ - `hunk mcp serve` — run the local MCP daemon for agent-to-diff communication
102
+
103
+ ## MCP daemon (experimental)
104
+
105
+ Hunk can run a local MCP daemon that brokers commands to live Hunk TUI sessions.
106
+
107
+ ```bash
108
+ hunk mcp serve
109
+ ```
110
+
111
+ Current v1 scope:
112
+
113
+ - local loopback daemon only
114
+ - live session discovery via `list_sessions` / `get_session`
115
+ - inline diff comments via `comment`
116
+ - Linux-first implementation, designed to stay portable to macOS later
117
+
118
+ Environment variables:
119
+
120
+ - `HUNK_MCP_HOST` — bind host for the daemon and session clients, default `127.0.0.1`
121
+ - `HUNK_MCP_PORT` — bind port for the daemon and session clients, default `47657`
122
+ - `HUNK_MCP_DISABLE=1` — disable background session registration for one Hunk process
101
123
 
102
124
  ## Interaction
103
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunkdiff",
3
- "version": "0.3.0-beta.2",
3
+ "version": "0.3.0",
4
4
  "description": "Desktop-inspired terminal diff viewer for understanding agent-authored changesets.",
5
5
  "bin": {
6
6
  "hunk": "./bin/hunk.cjs"
@@ -30,9 +30,9 @@
30
30
  "node": ">=18"
31
31
  },
32
32
  "optionalDependencies": {
33
- "hunkdiff-darwin-arm64": "0.3.0-beta.2",
34
- "hunkdiff-darwin-x64": "0.3.0-beta.2",
35
- "hunkdiff-linux-x64": "0.3.0-beta.2"
33
+ "hunkdiff-darwin-arm64": "0.3.0",
34
+ "hunkdiff-darwin-x64": "0.3.0",
35
+ "hunkdiff-linux-x64": "0.3.0"
36
36
  },
37
37
  "license": "MIT",
38
38
  "publishConfig": {