@eliya-oss/agent-diff 0.1.0-alpha.207 → 0.1.0-alpha.208

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/package.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "devDependencies": {
5
5
  "@effect/tsgo": "^0.31.0",
6
6
  "@effect/vitest": "^4.0.0-rc.110",
7
+ "@modelcontextprotocol/server": "2.4.0",
7
8
  "@types/node": "^26.1.2",
8
9
  "effect": "^4.0.0-rc.110",
9
10
  "oxlint": "1.77.0",
@@ -24,7 +25,7 @@
24
25
  "bin": {
25
26
  "adiff": "./bin/adiff.js"
26
27
  },
27
- "version": "0.1.0-alpha.207",
28
+ "version": "0.1.0-alpha.208",
28
29
  "description": "Review the work an agent left you without losing the thread: comments live on the lines, the agent answers them, and each point stays open until you settle it.",
29
30
  "license": "MIT",
30
31
  "repository": {
@@ -107,6 +107,28 @@ A backgrounded wait that is killed rather than expiring is not the reviewer goin
107
107
  reason to stop listening. A kill loses nothing: taking is what records a comment as handed over, so a
108
108
  comment that arrived after the kill is still new to the next wait. Arm a new one.
109
109
 
110
+ ## When adiff is connected as an MCP server
111
+
112
+ Your client may list adiff's tools: `comment_take`, `comment_answer`, `comment_doing`,
113
+ `comment_list`, `layers_show`, `layers_set`, `layers_ask`, `review_progress`, `patch_show` and
114
+ `patch_since`. Each is the command of the same name. It takes the command's options as fields and
115
+ answers with the same JSON as structured content, so there is nothing to parse and nothing to trim
116
+ but `fields`. With no address a tool acts on the worktree the server started in. Prefer a tool to
117
+ the same command in a shell. Every other command in this skill is still a shell command.
118
+
119
+ No tool waits. `comment_take` is the plain take, which collects everything still owed an answer.
120
+
121
+ When the server was started with `--push` and your session loaded its channel, a new comment
122
+ arrives on its own as a `<channel source="adiff">` event. Its first line says how many comments it
123
+ carries, and the JSON under it holds them in the shape `comment take` answers. The event is the
124
+ hand-over, so act on each comment and answer it by its id. What changes for you:
125
+
126
+ - Run no background wait. The server is listening for this worktree, and a wait you start takes
127
+ the listening away from it.
128
+ - Start the session with one `comment_take`, as you would with a plain take.
129
+ - If the user says they left a comment and no event came, call `comment_take`. The session was
130
+ probably started without the channel, so arm the background wait as described above.
131
+
110
132
  ## Answering a comment
111
133
 
112
134
  Say what you did, against the comment you were handed: