hunkdiff 0.3.0-beta.3 → 0.4.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 +30 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # hunk
2
2
 
3
+ <p align="center">
4
+ <a href="https://github.com/modem-dev/hunk/actions/workflows/ci.yml?branch=main"><img src="https://img.shields.io/github/actions/workflow/status/modem-dev/hunk/ci.yml?branch=main&style=for-the-badge&label=CI" alt="CI status"></a>
5
+ <a href="https://github.com/modem-dev/hunk/releases"><img src="https://img.shields.io/github/v/release/modem-dev/hunk?style=for-the-badge" alt="Latest release"></a>
6
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge" alt="MIT License"></a>
7
+ </p>
8
+
3
9
  Hunk is a terminal diff viewer for reviewing agent-authored changesets with a desktop-style UI.
4
10
 
5
11
  - full-screen multi-file review stream
@@ -98,6 +104,30 @@ Takeaway:
98
104
  - `hunk patch [file|-]` — review a patch file or stdin
99
105
  - `hunk pager` — act as a Git pager wrapper, opening Hunk for diff-like stdin and falling back to plain text paging otherwise
100
106
  - `hunk difftool <left> <right> [path]` — integrate with Git difftool
107
+ - `hunk mcp serve` — run the local MCP daemon for agent-to-diff communication
108
+
109
+ ## MCP daemon (experimental)
110
+
111
+ Hunk can run a local MCP daemon that brokers commands to live Hunk TUI sessions.
112
+
113
+ Opening a normal Hunk review session now tries to register with the daemon automatically and will auto-start it on loopback when needed. You can still run the daemon explicitly:
114
+
115
+ ```bash
116
+ hunk mcp serve
117
+ ```
118
+
119
+ Current v1 scope:
120
+
121
+ - local loopback daemon only
122
+ - live session discovery via `list_sessions` / `get_session`
123
+ - inline diff comments via `comment`
124
+ - Linux-first implementation, designed to stay portable to macOS later
125
+
126
+ Environment variables:
127
+
128
+ - `HUNK_MCP_HOST` — bind host for the daemon and session clients, default `127.0.0.1`
129
+ - `HUNK_MCP_PORT` — bind port for the daemon and session clients, default `47657`
130
+ - `HUNK_MCP_DISABLE=1` — disable background session registration for one Hunk process
101
131
 
102
132
  ## Interaction
103
133
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunkdiff",
3
- "version": "0.3.0-beta.3",
3
+ "version": "0.4.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.3",
34
- "hunkdiff-darwin-x64": "0.3.0-beta.3",
35
- "hunkdiff-linux-x64": "0.3.0-beta.3"
33
+ "hunkdiff-darwin-arm64": "0.4.0",
34
+ "hunkdiff-darwin-x64": "0.4.0",
35
+ "hunkdiff-linux-x64": "0.4.0"
36
36
  },
37
37
  "license": "MIT",
38
38
  "publishConfig": {