@eliya-oss/agent-diff 0.1.0-alpha.179 → 0.1.0-alpha.180
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 +14 -0
- package/dist/main.js +724 -101
- package/package.json +1 -1
- package/skills/adiff/SKILL.md +29 -6
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"bin": {
|
|
24
24
|
"adiff": "./bin/adiff.js"
|
|
25
25
|
},
|
|
26
|
-
"version": "0.1.0-alpha.
|
|
26
|
+
"version": "0.1.0-alpha.180",
|
|
27
27
|
"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.",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"repository": {
|
package/skills/adiff/SKILL.md
CHANGED
|
@@ -301,11 +301,21 @@ first of the next.
|
|
|
301
301
|
|
|
302
302
|
## Helping draft a review of somebody else's pull request
|
|
303
303
|
|
|
304
|
-
Sometimes the reviewer is not reading your work — they are reading a stranger's pull request
|
|
305
|
-
want you to think it through with them before they say anything
|
|
306
|
-
|
|
304
|
+
Sometimes the reviewer is not reading your work — they are reading a stranger's pull request,
|
|
305
|
+
checked out into this worktree, and want you to think it through with them before they say anything
|
|
306
|
+
on it. You learn that from the comment itself: a comment written on somebody else's pull request
|
|
307
|
+
carries `"theirs": true`. Read it before anything else you do with the comment.
|
|
307
308
|
|
|
308
|
-
|
|
309
|
+
```json
|
|
310
|
+
{"id":"c7","file":"src/retry.ts","start":40,"end":52,"snippet":"…","body":"is this retry loop safe?","theirs":true}
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
On such a branch the code is not yours to change. **Never edit, commit or push.** A comment that
|
|
314
|
+
reads like a fix request is a point the reviewer wants made to the author: answer it with
|
|
315
|
+
`comment answer`, in prose, and put the wording the author should read in a draft. A comment with
|
|
316
|
+
no `theirs` is your own work, and the rest of this skill applies.
|
|
317
|
+
|
|
318
|
+
A note to the author is **held** as a draft. Nothing reaches the forge until the reviewer sends it.
|
|
309
319
|
|
|
310
320
|
```bash
|
|
311
321
|
adiff draft list --repo . --branch their-change
|
|
@@ -315,11 +325,24 @@ adiff draft drop --repo . --branch their-change --id d1
|
|
|
315
325
|
```
|
|
316
326
|
|
|
317
327
|
`draft add` anchors the same way `comment send` does, so `--side old` is the version being replaced.
|
|
328
|
+
The `id` you pass to `draft edit` and `draft drop` is the one `draft list` reports.
|
|
329
|
+
|
|
330
|
+
A comment can ask you to rewrite one draft in particular. It carries `"draft": "<id>"` beside
|
|
331
|
+
`theirs`, and its body is the instruction:
|
|
332
|
+
|
|
333
|
+
```json
|
|
334
|
+
{"id":"c8","body":"shorter, and less sure","theirs":true,"draft":"4f1c…"}
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Rewrite that draft with `draft edit`, then answer the comment by its id, saying what you changed. A
|
|
338
|
+
draft you wrote or rewrote reads as unread in the review until the reviewer opens it, and the review
|
|
339
|
+
will not send while one is unread, so say you rewrote it rather than leaving the reviewer to notice.
|
|
318
340
|
|
|
319
341
|
Rules for drafting on somebody else's behalf:
|
|
320
342
|
|
|
321
|
-
- **You never
|
|
322
|
-
the review, so the reviewer sends
|
|
343
|
+
- **You never write to the pull request.** `draft send`, `remark reply` and `remark accept` all do,
|
|
344
|
+
and every one is the reviewer's, not yours. The reviewer signs the review, so the reviewer sends
|
|
345
|
+
it. Anything that must reach the pull request goes through a draft.
|
|
323
346
|
- **Write what the reviewer meant, not what you would say.** They told you the point; your job is
|
|
324
347
|
the wording. If you are not sure what the point is, ask rather than inventing one.
|
|
325
348
|
- **One draft per point.** A held comment that covers three things cannot be dropped in part.
|